hive-react-kit 0.0.19 → 0.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,25 +1,33 @@
1
- "use strict";var Af=Object.defineProperty;var kf=(t,e,r)=>e in t?Af(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Gn=(t,e,r)=>kf(t,typeof e!="symbol"?e+"":e,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("react"),q=require("lucide-react"),Xs=require("date-fns"),Ks=require("@hiveio/dhive"),an=require("hls.js"),Rc=require("zustand"),Bc=require("react-router-dom");function Vc(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const Os=Vc(T),jf=Vc(Ks);var J=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ru(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var a=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return t[n]}})}),r}var Co={exports:{}},Jn={};/**
1
+ "use strict";var Af=Object.defineProperty;var kf=(t,e,r)=>e in t?Af(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var ga=(t,e,r)=>kf(t,typeof e!="symbol"?e+"":e,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react"),q=require("lucide-react"),si=require("date-fns"),ii=require("@hiveio/dhive"),Sn=require("hls.js"),Rc=require("zustand"),Bc=require("react-router-dom");function Vc(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const Bs=Vc(C),jf=Vc(ii);var J=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ru(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var a=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return t[n]}})}),r}var Co={exports:{}},ba={};/**
2
2
  * @license React
3
- * react-jsx-runtime.production.js
3
+ * react-jsx-runtime.production.min.js
4
4
  *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var ul;function Sf(){if(ul)return Jn;ul=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function r(n,a,s){var o=null;if(s!==void 0&&(o=""+s),a.key!==void 0&&(o=""+a.key),"key"in a){s={};for(var c in a)c!=="key"&&(s[c]=a[c])}else s=a;return a=s.ref,{$$typeof:t,type:n,key:o,ref:a!==void 0?a:null,props:s}}return Jn.Fragment=e,Jn.jsx=r,Jn.jsxs=r,Jn}var Yn={};/**
9
+ */var ul;function Sf(){if(ul)return ba;ul=1;var t=C,e=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function o(c,u,f){var l,h={},d=null,m=null;f!==void 0&&(d=""+f),u.key!==void 0&&(d=""+u.key),u.ref!==void 0&&(m=u.ref);for(l in u)n.call(u,l)&&!s.hasOwnProperty(l)&&(h[l]=u[l]);if(c&&c.defaultProps)for(l in u=c.defaultProps,u)h[l]===void 0&&(h[l]=u[l]);return{$$typeof:e,type:c,key:d,ref:m,props:h,_owner:a.current}}return ba.Fragment=r,ba.jsx=o,ba.jsxs=o,ba}var xa={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var ll;function Df(){return ll||(ll=1,process.env.NODE_ENV!=="production"&&function(){function t(P){if(P==null)return null;if(typeof P=="function")return P.$$typeof===j?null:P.displayName||P.name||null;if(typeof P=="string")return P;switch(P){case y:return"Fragment";case E:return"Profiler";case g:return"StrictMode";case p:return"Suspense";case N:return"SuspenseList";case z:return"Activity"}if(typeof P=="object")switch(typeof P.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),P.$$typeof){case x:return"Portal";case w:return P.displayName||"Context";case S:return(P._context.displayName||"Context")+".Consumer";case k:var G=P.render;return P=P.displayName,P||(P=G.displayName||G.name||"",P=P!==""?"ForwardRef("+P+")":"ForwardRef"),P;case A:return G=P.displayName||null,G!==null?G:t(P.type)||"Memo";case V:G=P._payload,P=P._init;try{return t(P(G))}catch{}}return null}function e(P){return""+P}function r(P){try{e(P);var G=!1}catch{G=!0}if(G){G=console;var ne=G.error,$=typeof Symbol=="function"&&Symbol.toStringTag&&P[Symbol.toStringTag]||P.constructor.name||"Object";return ne.call(G,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",$),e(P)}}function n(P){if(P===y)return"<>";if(typeof P=="object"&&P!==null&&P.$$typeof===V)return"<...>";try{var G=t(P);return G?"<"+G+">":"<...>"}catch{return"<...>"}}function a(){var P=L.A;return P===null?null:P.getOwner()}function s(){return Error("react-stack-top-frame")}function o(P){if(I.call(P,"key")){var G=Object.getOwnPropertyDescriptor(P,"key").get;if(G&&G.isReactWarning)return!1}return P.key!==void 0}function c(P,G){function ne(){M||(M=!0,console.error("%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://react.dev/link/special-props)",G))}ne.isReactWarning=!0,Object.defineProperty(P,"key",{get:ne,configurable:!0})}function u(){var P=t(this.type);return C[P]||(C[P]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),P=this.props.ref,P!==void 0?P:null}function f(P,G,ne,$,B,re){var X=ne.ref;return P={$$typeof:b,type:P,key:G,props:ne,_owner:$},(X!==void 0?X:null)!==null?Object.defineProperty(P,"ref",{enumerable:!1,get:u}):Object.defineProperty(P,"ref",{enumerable:!1,value:null}),P._store={},Object.defineProperty(P._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(P,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(P,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:B}),Object.defineProperty(P,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:re}),Object.freeze&&(Object.freeze(P.props),Object.freeze(P)),P}function l(P,G,ne,$,B,re){var X=G.children;if(X!==void 0)if($)if(H(X)){for($=0;$<X.length;$++)h(X[$]);Object.freeze&&Object.freeze(X)}else console.error("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 h(X);if(I.call(G,"key")){X=t(P);var te=Object.keys(G).filter(function(De){return De!=="key"});$=0<te.length?"{key: someKey, "+te.join(": ..., ")+": ...}":"{key: someKey}",Z[X+$]||(te=0<te.length?"{"+te.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var ll;function Df(){return ll||(ll=1,process.env.NODE_ENV!=="production"&&function(){var t=C,e=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),b=Symbol.iterator,x="@@iterator";function y(N){if(N===null||typeof N!="object")return null;var z=b&&N[b]||N[x];return typeof z=="function"?z:null}var g=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(N){{for(var z=arguments.length,Z=new Array(z>1?z-1:0),ie=1;ie<z;ie++)Z[ie-1]=arguments[ie];D("error",N,Z)}}function D(N,z,Z){{var ie=g.ReactDebugCurrentFrame,ue=ie.getStackAddendum();ue!==""&&(z+="%s",Z=Z.concat([ue]));var fe=Z.map(function(oe){return String(oe)});fe.unshift("Warning: "+z),Function.prototype.apply.call(console[N],console,fe)}}var w=!1,j=!1,p=!1,A=!1,k=!1,V;V=Symbol.for("react.module.reference");function H(N){return!!(typeof N=="string"||typeof N=="function"||N===n||N===s||k||N===a||N===f||N===l||A||N===m||w||j||p||typeof N=="object"&&N!==null&&(N.$$typeof===d||N.$$typeof===h||N.$$typeof===o||N.$$typeof===c||N.$$typeof===u||N.$$typeof===V||N.getModuleId!==void 0))}function S(N,z,Z){var ie=N.displayName;if(ie)return ie;var ue=z.displayName||z.name||"";return ue!==""?Z+"("+ue+")":Z}function P(N){return N.displayName||"Context"}function I(N){if(N==null)return null;if(typeof N.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof N=="function")return N.displayName||N.name||null;if(typeof N=="string")return N;switch(N){case n:return"Fragment";case r:return"Portal";case s:return"Profiler";case a:return"StrictMode";case f:return"Suspense";case l:return"SuspenseList"}if(typeof N=="object")switch(N.$$typeof){case c:var z=N;return P(z)+".Consumer";case o:var Z=N;return P(Z._context)+".Provider";case u:return S(N,N.render,"ForwardRef");case h:var ie=N.displayName||null;return ie!==null?ie:I(N.type)||"Memo";case d:{var ue=N,fe=ue._payload,oe=ue._init;try{return I(oe(fe))}catch{return null}}}return null}var W=Object.assign,_=0,M,O,G,R,K,X,ae;function ke(){}ke.__reactDisabledLog=!0;function L(){{if(_===0){M=console.log,O=console.info,G=console.warn,R=console.error,K=console.group,X=console.groupCollapsed,ae=console.groupEnd;var N={configurable:!0,enumerable:!0,value:ke,writable:!0};Object.defineProperties(console,{info:N,log:N,warn:N,error:N,group:N,groupCollapsed:N,groupEnd:N})}_++}}function B(){{if(_--,_===0){var N={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:W({},N,{value:M}),info:W({},N,{value:O}),warn:W({},N,{value:G}),error:W({},N,{value:R}),group:W({},N,{value:K}),groupCollapsed:W({},N,{value:X}),groupEnd:W({},N,{value:ae})})}_<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var re=g.ReactCurrentDispatcher,se;function ne(N,z,Z){{if(se===void 0)try{throw Error()}catch(ue){var ie=ue.stack.trim().match(/\n( *(at )?)/);se=ie&&ie[1]||""}return`
18
+ `+se+N}}var Ee=!1,Le;{var Et=typeof WeakMap=="function"?WeakMap:Map;Le=new Et}function Nt(N,z){if(!N||Ee)return"";{var Z=Le.get(N);if(Z!==void 0)return Z}var ie;Ee=!0;var ue=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var fe;fe=re.current,re.current=null,L();try{if(z){var oe=function(){throw Error()};if(Object.defineProperty(oe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(oe,[])}catch(Oe){ie=Oe}Reflect.construct(N,[],oe)}else{try{oe.call()}catch(Oe){ie=Oe}N.call(oe.prototype)}}else{try{throw Error()}catch(Oe){ie=Oe}N()}}catch(Oe){if(Oe&&ie&&typeof Oe.stack=="string"){for(var le=Oe.stack.split(`
19
+ `),ze=ie.stack.split(`
20
+ `),we=le.length-1,Ae=ze.length-1;we>=1&&Ae>=0&&le[we]!==ze[Ae];)Ae--;for(;we>=1&&Ae>=0;we--,Ae--)if(le[we]!==ze[Ae]){if(we!==1||Ae!==1)do if(we--,Ae--,Ae<0||le[we]!==ze[Ae]){var Te=`
21
+ `+le[we].replace(" at new "," at ");return N.displayName&&Te.includes("<anonymous>")&&(Te=Te.replace("<anonymous>",N.displayName)),typeof N=="function"&&Le.set(N,Te),Te}while(we>=1&&Ae>=0);break}}}finally{Ee=!1,re.current=fe,B(),Error.prepareStackTrace=ue}var Mt=N?N.displayName||N.name:"",St=Mt?ne(Mt):"";return typeof N=="function"&&Le.set(N,St),St}function ar(N,z,Z){return Nt(N,!1)}function sr(N){var z=N.prototype;return!!(z&&z.isReactComponent)}function ve(N,z,Z){if(N==null)return"";if(typeof N=="function")return Nt(N,sr(N));if(typeof N=="string")return ne(N);switch(N){case f:return ne("Suspense");case l:return ne("SuspenseList")}if(typeof N=="object")switch(N.$$typeof){case u:return ar(N.render);case h:return ve(N.type,z,Z);case d:{var ie=N,ue=ie._payload,fe=ie._init;try{return ve(fe(ue),z,Z)}catch{}}}return""}var Ue=Object.prototype.hasOwnProperty,Xe={},Be=g.ReactDebugCurrentFrame;function At(N){if(N){var z=N._owner,Z=ve(N.type,N._source,z?z.type:null);Be.setExtraStackFrame(Z)}else Be.setExtraStackFrame(null)}function ir(N,z,Z,ie,ue){{var fe=Function.call.bind(Ue);for(var oe in N)if(fe(N,oe)){var le=void 0;try{if(typeof N[oe]!="function"){var ze=Error((ie||"React class")+": "+Z+" type `"+oe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof N[oe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ze.name="Invariant Violation",ze}le=N[oe](z,oe,ie,Z,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(we){le=we}le&&!(le instanceof Error)&&(At(ue),E("%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).",ie||"React class",Z,oe,typeof le),At(null)),le instanceof Error&&!(le.message in Xe)&&(Xe[le.message]=!0,At(ue),E("Failed %s type: %s",Z,le.message),At(null))}}}var la=Array.isArray;function _r(N){return la(N)}function Er(N){{var z=typeof Symbol=="function"&&Symbol.toStringTag,Z=z&&N[Symbol.toStringTag]||N.constructor.name||"Object";return Z}}function yn(N){try{return zr(N),!1}catch{return!0}}function zr(N){return""+N}function vn(N){if(yn(N))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Er(N)),zr(N)}var it=g.ReactCurrentOwner,Nr={key:!0,ref:!0,__self:!0,__source:!0},Hr,ot;function Ar(N){if(Ue.call(N,"ref")){var z=Object.getOwnPropertyDescriptor(N,"ref").get;if(z&&z.isReactWarning)return!1}return N.ref!==void 0}function Ht(N){if(Ue.call(N,"key")){var z=Object.getOwnPropertyDescriptor(N,"key").get;if(z&&z.isReactWarning)return!1}return N.key!==void 0}function Wr(N,z){typeof N.ref=="string"&&it.current}function kr(N,z){{var Z=function(){Hr||(Hr=!0,E("%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)",z))};Z.isReactWarning=!0,Object.defineProperty(N,"key",{get:Z,configurable:!0})}}function Wt(N,z){{var Z=function(){ot||(ot=!0,E("%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)",z))};Z.isReactWarning=!0,Object.defineProperty(N,"ref",{get:Z,configurable:!0})}}var Gt=function(N,z,Z,ie,ue,fe,oe){var le={$$typeof:e,type:N,key:z,ref:Z,props:oe,_owner:fe};return le._store={},Object.defineProperty(le._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(le,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ie}),Object.defineProperty(le,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ue}),Object.freeze&&(Object.freeze(le.props),Object.freeze(le)),le};function wn(N,z,Z,ie,ue){{var fe,oe={},le=null,ze=null;Z!==void 0&&(vn(Z),le=""+Z),Ht(z)&&(vn(z.key),le=""+z.key),Ar(z)&&(ze=z.ref,Wr(z,ue));for(fe in z)Ue.call(z,fe)&&!Nr.hasOwnProperty(fe)&&(oe[fe]=z[fe]);if(N&&N.defaultProps){var we=N.defaultProps;for(fe in we)oe[fe]===void 0&&(oe[fe]=we[fe])}if(le||ze){var Ae=typeof N=="function"?N.displayName||N.name||"Unknown":N;le&&kr(oe,Ae),ze&&Wt(oe,Ae)}return Gt(N,le,ze,ue,ie,it.current,oe)}}var Gr=g.ReactCurrentOwner,kt=g.ReactDebugCurrentFrame;function Pt(N){if(N){var z=N._owner,Z=ve(N.type,N._source,z?z.type:null);kt.setExtraStackFrame(Z)}else kt.setExtraStackFrame(null)}var Jr;Jr=!1;function jr(N){return typeof N=="object"&&N!==null&&N.$$typeof===e}function Jt(){{if(Gr.current){var N=I(Gr.current.type);if(N)return`
22
+
23
+ Check the render method of \``+N+"`."}return""}}function ut(N){return""}var tt={};function yt(N){{var z=Jt();if(!z){var Z=typeof N=="string"?N:N.displayName||N.name;Z&&(z=`
24
+
25
+ Check the top-level render call using <`+Z+">.")}return z}}function Lt(N,z){{if(!N._store||N._store.validated||N.key!=null)return;N._store.validated=!0;var Z=yt(z);if(tt[Z])return;tt[Z]=!0;var ie="";N&&N._owner&&N._owner!==Gr.current&&(ie=" It was passed a child from "+I(N._owner.type)+"."),Pt(N),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Z,ie),Pt(null)}}function Ke(N,z){{if(typeof N!="object")return;if(_r(N))for(var Z=0;Z<N.length;Z++){var ie=N[Z];jr(ie)&&Lt(ie,z)}else if(jr(N))N._store&&(N._store.validated=!0);else if(N){var ue=y(N);if(typeof ue=="function"&&ue!==N.entries)for(var fe=ue.call(N),oe;!(oe=fe.next()).done;)jr(oe.value)&&Lt(oe.value,z)}}}function ca(N){{var z=N.type;if(z==null||typeof z=="string")return;var Z;if(typeof z=="function")Z=z.propTypes;else if(typeof z=="object"&&(z.$$typeof===u||z.$$typeof===h))Z=z.propTypes;else return;if(Z){var ie=I(z);ir(Z,N.props,"prop",ie,N)}else if(z.PropTypes!==void 0&&!Jr){Jr=!0;var ue=I(z);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ue||"Unknown")}typeof z.getDefaultProps=="function"&&!z.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Sr(N){{for(var z=Object.keys(N.props),Z=0;Z<z.length;Z++){var ie=z[Z];if(ie!=="children"&&ie!=="key"){Pt(N),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ie),Pt(null);break}}N.ref!==null&&(Pt(N),E("Invalid attribute `ref` supplied to `React.Fragment`."),Pt(null))}}var Yt={};function Yr(N,z,Z,ie,ue,fe){{var oe=H(N);if(!oe){var le="";(N===void 0||typeof N=="object"&&N!==null&&Object.keys(N).length===0)&&(le+=" 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 ze=ut();ze?le+=ze:le+=Jt();var we;N===null?we="null":_r(N)?we="array":N!==void 0&&N.$$typeof===e?(we="<"+(I(N.type)||"Unknown")+" />",le=" Did you accidentally export a JSX literal instead of a component?"):we=typeof N,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",we,le)}var Ae=wn(N,z,Z,ue,fe);if(Ae==null)return Ae;if(oe){var Te=z.children;if(Te!==void 0)if(ie)if(_r(Te)){for(var Mt=0;Mt<Te.length;Mt++)Ke(Te[Mt],N);Object.freeze&&Object.freeze(Te)}else E("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 Ke(Te,N)}if(Ue.call(z,"key")){var St=I(N),Oe=Object.keys(z).filter(function(T){return T!=="key"}),Dr=Oe.length>0?"{key: someKey, "+Oe.join(": ..., ")+": ...}":"{key: someKey}";if(!Yt[St+Dr]){var da=Oe.length>0?"{"+Oe.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
18
26
  let props = %s;
19
27
  <%s {...props} />
20
28
  React keys must be passed directly to JSX without using spread:
21
29
  let props = %s;
22
- <%s key={someKey} {...props} />`,$,X,te,X),Z[X+$]=!0)}if(X=null,ne!==void 0&&(r(ne),X=""+ne),o(G)&&(r(G.key),X=""+G.key),"key"in G){ne={};for(var pe in G)pe!=="key"&&(ne[pe]=G[pe])}else ne=G;return X&&c(ne,typeof P=="function"?P.displayName||P.name||"Unknown":P),f(P,X,ne,a(),B,re)}function h(P){d(P)?P._store&&(P._store.validated=1):typeof P=="object"&&P!==null&&P.$$typeof===V&&(P._payload.status==="fulfilled"?d(P._payload.value)&&P._payload.value._store&&(P._payload.value._store.validated=1):P._store&&(P._store.validated=1))}function d(P){return typeof P=="object"&&P!==null&&P.$$typeof===b}var m=T,b=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),S=Symbol.for("react.consumer"),w=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),j=Symbol.for("react.client.reference"),L=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=Object.prototype.hasOwnProperty,H=Array.isArray,_=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(P){return P()}};var M,C={},W=m.react_stack_bottom_frame.bind(m,s)(),R=_(n(s)),Z={};Yn.Fragment=y,Yn.jsx=function(P,G,ne){var $=1e4>L.recentlyCreatedOwnerStacks++;return l(P,G,ne,!1,$?Error("react-stack-top-frame"):W,$?_(n(P)):R)},Yn.jsxs=function(P,G,ne){var $=1e4>L.recentlyCreatedOwnerStacks++;return l(P,G,ne,!0,$?Error("react-stack-top-frame"):W,$?_(n(P)):R)}}()),Yn}process.env.NODE_ENV==="production"?Co.exports=Sf():Co.exports=Df();var i=Co.exports;const qt={domain:"https://studio.3speak.tv",kThreeSpeakApiUrl:"https://studio.3speak.tv/mobile/api",userOwnerThumb:t=>`https://images.hive.blog/u/${t}/avatar`,graphQLServerUrl:"https://union.us-02.infra.3speak.tv"},ns=new Ks.Client(["https://api.hive.blog","https://api.syncad.com","https://api.deathwing.me"]);class Tf{constructor(){Gn(this,"commonFields",`
30
+ <%s key={someKey} {...props} />`,Dr,St,da,St),Yt[St+Dr]=!0}}return N===n?Sr(Ae):ca(Ae),Ae}}function _n(N,z,Z){return Yr(N,z,Z,!0)}function En(N,z,Z){return Yr(N,z,Z,!1)}var Zr=En,jt=_n;xa.Fragment=n,xa.jsx=Zr,xa.jsxs=jt}()),xa}process.env.NODE_ENV==="production"?Co.exports=Sf():Co.exports=Df();var i=Co.exports;const cr={domain:"https://studio.3speak.tv",kThreeSpeakApiUrl:"https://studio.3speak.tv/mobile/api",userOwnerThumb:t=>`https://images.hive.blog/u/${t}/avatar`,graphQLServerUrl:"https://union.us-02.infra.3speak.tv"},ds=new ii.Client(["https://api.hive.blog","https://api.syncad.com","https://api.deathwing.me"]);class Tf{constructor(){ga(this,"commonFields",`
23
31
  items {
24
32
  created_at
25
33
  title
@@ -47,7 +55,7 @@ React keys must be passed directly to JSX without using spread:
47
55
  spkvideo
48
56
  }
49
57
  }
50
- `)}async getGQLFeed(e,r){var a,s,o;const n=`${qt.graphQLServerUrl}/api/v2/graphql`;try{const c=await fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:r,operationName:e})});if(!c.ok)throw new Error(`GraphQL request failed: ${c.statusText}`);const u=await c.json();if(u.errors)throw new Error(`GraphQL error: ${u.errors.map(l=>l.message).join(", ")}`);const f=u.data;return(a=f.socialFeed)!=null&&a.items?f.socialFeed.items:(s=f.trendingFeed)!=null&&s.items?f.trendingFeed.items:(o=f.searchFeed)!=null&&o.items?f.searchFeed.items:[]}catch(c){throw console.error(`Failed to fetch ${e}:`,c),c}}async handleLogin(e){const r=`${qt.domain}/mobile/login`,n=await fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({challenge:e.challenge,proof:e.proof,publicKey:e.publicKey,username:e.username})});if(n.ok)return await n.json();throw new Error(`Login API error: ${await n.text()}`)}async handleUpvote({author:e,permlink:r,weight:n,authToken:a}){const s=`${qt.domain}/mobile/vote`,o=await fetch(s,{method:"POST",headers:{"Content-Type":"application/json",authorization:a},body:JSON.stringify({author:e,permlink:r,weight:n})});if(o.ok)return await o.json();{const c=await o.json();throw new Error(c.error||"Unknown API error")}}async handleComment({author:e,permlink:r,body:n,authToken:a}){const s=`${qt.domain}/mobile/comment`,o=await fetch(s,{method:"POST",headers:{"Content-Type":"application/json",authorization:a},body:JSON.stringify({author:e,permlink:r,comment:n})});if(o.ok)return await o.json();{const c=await o.json();throw new Error(c.error||"Unknown API error")}}async getVideoDetails(e,r){const n=`${qt.kThreeSpeakApiUrl}/video/@${e}/${r}`,a=await fetch(n);if(a.ok)return await a.json();console.error("Failed to fetch video details:",a.statusText)}async fetchFeed(e,r,n,a,s={limit:50,skip:0}){const{limit:o=50,skip:c=0}=s,u=`
58
+ `)}async getGQLFeed(e,r){var a,s,o;const n=`${cr.graphQLServerUrl}/api/v2/graphql`;try{const c=await fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:r,operationName:e})});if(!c.ok)throw new Error(`GraphQL request failed: ${c.statusText}`);const u=await c.json();if(u.errors)throw new Error(`GraphQL error: ${u.errors.map(l=>l.message).join(", ")}`);const f=u.data;return(a=f.socialFeed)!=null&&a.items?f.socialFeed.items:(s=f.trendingFeed)!=null&&s.items?f.trendingFeed.items:(o=f.searchFeed)!=null&&o.items?f.searchFeed.items:[]}catch(c){throw console.error(`Failed to fetch ${e}:`,c),c}}async handleLogin(e){const r=`${cr.domain}/mobile/login`,n=await fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({challenge:e.challenge,proof:e.proof,publicKey:e.publicKey,username:e.username})});if(n.ok)return await n.json();throw new Error(`Login API error: ${await n.text()}`)}async handleUpvote({author:e,permlink:r,weight:n,authToken:a}){const s=`${cr.domain}/mobile/vote`,o=await fetch(s,{method:"POST",headers:{"Content-Type":"application/json",authorization:a},body:JSON.stringify({author:e,permlink:r,weight:n})});if(o.ok)return await o.json();{const c=await o.json();throw new Error(c.error||"Unknown API error")}}async handleComment({author:e,permlink:r,body:n,authToken:a}){const s=`${cr.domain}/mobile/comment`,o=await fetch(s,{method:"POST",headers:{"Content-Type":"application/json",authorization:a},body:JSON.stringify({author:e,permlink:r,comment:n})});if(o.ok)return await o.json();{const c=await o.json();throw new Error(c.error||"Unknown API error")}}async getVideoDetails(e,r){const n=`${cr.kThreeSpeakApiUrl}/video/@${e}/${r}`,a=await fetch(n);if(a.ok)return await a.json();console.error("Failed to fetch video details:",a.statusText)}async fetchFeed(e,r,n,a,s={limit:50,skip:0}){const{limit:o=50,skip:c=0}=s,u=`
51
59
  query ${e} {
52
60
  ${r}(
53
61
  spkvideo: { ${n} }
@@ -57,7 +65,7 @@ React keys must be passed directly to JSX without using spread:
57
65
  ${this.commonFields}
58
66
  }
59
67
  }
60
- `,f=await this.getGQLFeed(e,u);return this.convertGQLItemsToThreeSpeakVideos(f)}async getUserVideos(e,r=0){return await this.fetchFeed("UserChannelFeed","socialFeed","only: true",`{ byCreator: { _in: ["${e}"] } }`,{skip:r})}async getHomeVideos(e=0){const r=`${qt.kThreeSpeakApiUrl}/feed/home?skip=${e}`,n=await fetch(r);if(n.ok){const a=await n.json();return Array.isArray(a)?a:[]}else return console.error("Failed to fetch home videos:",n.statusText),[]}async getTrendingVideos(e=0){return await this.fetchFeed("TrendingFeed","trendingFeed","only: true","{}",{skip:e})}async getNewVideos(e=0){return await this.fetchFeed("NewUploadsFeed","socialFeed","only: true","{}",{skip:e})}async getFirstUploadsVideos(e=0){return await this.fetchFeed("FirstUploadsFeed","trendingFeed","only: true, firstUpload: true","{}",{skip:e})}async getCommunityVideos(e,r=0){return await this.fetchFeed("CommunityFeed","socialFeed","only: true",`{ byCommunity: { _eq: "${e}" } }`,{skip:r})}async getRelatedVideos(e,r=0){return await this.fetchFeed("RelatedFeed","socialFeed","only: true",`{ byCreator: { _in: ["${e}"] } }`,{skip:r})}async getTaggedVideos(e,r=0){return await this.fetchFeed("TrendingTagFeed","trendingFeed","only: true",`{ byTag: { _eq: "${e}" } }`,{skip:r})}async getSearchFeed(e,r=0,n){const a=n?`{ byLang: { _eq: "${n}" } }`:"{}",s=`
68
+ `,f=await this.getGQLFeed(e,u);return this.convertGQLItemsToThreeSpeakVideos(f)}async getUserVideos(e,r=0){return await this.fetchFeed("UserChannelFeed","socialFeed","only: true",`{ byCreator: { _in: ["${e}"] } }`,{skip:r})}async getHomeVideos(e=0){const r=`${cr.kThreeSpeakApiUrl}/feed/home?skip=${e}`,n=await fetch(r);if(n.ok){const a=await n.json();return Array.isArray(a)?a:[]}else return console.error("Failed to fetch home videos:",n.statusText),[]}async getTrendingVideos(e=0){return await this.fetchFeed("TrendingFeed","trendingFeed","only: true","{}",{skip:e})}async getNewVideos(e=0){return await this.fetchFeed("NewUploadsFeed","socialFeed","only: true","{}",{skip:e})}async getFirstUploadsVideos(e=0){return await this.fetchFeed("FirstUploadsFeed","trendingFeed","only: true, firstUpload: true","{}",{skip:e})}async getCommunityVideos(e,r=0){return await this.fetchFeed("CommunityFeed","socialFeed","only: true",`{ byCommunity: { _eq: "${e}" } }`,{skip:r})}async getRelatedVideos(e,r=0){return await this.fetchFeed("RelatedFeed","socialFeed","only: true",`{ byCreator: { _in: ["${e}"] } }`,{skip:r})}async getTaggedVideos(e,r=0){return await this.fetchFeed("TrendingTagFeed","trendingFeed","only: true",`{ byTag: { _eq: "${e}" } }`,{skip:r})}async getSearchFeed(e,r=0,n){const a=n?`{ byLang: { _eq: "${n}" } }`:"{}",s=`
61
69
  query SearchFeed {
62
70
  searchFeed(
63
71
  searchTerm: "${e}"
@@ -68,7 +76,7 @@ React keys must be passed directly to JSX without using spread:
68
76
  ${this.commonFields}
69
77
  }
70
78
  }
71
- `,o=await this.getGQLFeed("SearchFeed",s);return this.convertGQLItemsToThreeSpeakVideos(o)}async getTrendingTags(){var n,a;const e=`${qt.graphQLServerUrl}/api/v2/graphql`,r=`
79
+ `,o=await this.getGQLFeed("SearchFeed",s);return this.convertGQLItemsToThreeSpeakVideos(o)}async getTrendingTags(){var n,a;const e=`${cr.graphQLServerUrl}/api/v2/graphql`,r=`
72
80
  query TrendingTags {
73
81
  trendingTags(limit: 50) {
74
82
  tags {
@@ -77,64 +85,64 @@ React keys must be passed directly to JSX without using spread:
77
85
  }
78
86
  }
79
87
  }
80
- `;try{const s=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:r,operationName:"TrendingTags"})});if(!s.ok)throw new Error(`GraphQL request failed: ${s.statusText}`);const o=await s.json();if(o.errors)throw new Error(`GraphQL error: ${o.errors.map(c=>c.message).join(", ")}`);return((a=(n=o.data)==null?void 0:n.trendingTags)==null?void 0:a.tags)||[]}catch(s){throw console.error("Failed to fetch trending tags:",s),s}}convertGQLItemsToThreeSpeakVideos(e){return e.map(r=>{var a,s,o,c,u,f,l,h,d,m,b,x,y,g;let n=null;try{typeof r.spkvideo=="string"?n=JSON.parse(r.spkvideo):n=r.spkvideo}catch(E){console.error("Error parsing spkvideo JSON",E)}return{title:r.title||"Untitled",owner:((a=r.author)==null?void 0:a.username)||"",permlink:r.permlink||"",created:new Date(r.created_at),category:r.tags&&r.tags.length>0?r.tags[0]:"general",duration:(n==null?void 0:n.duration)||((u=(c=(o=(s=r.json_metadata)==null?void 0:s.raw)==null?void 0:o.video)==null?void 0:c.info)==null?void 0:u.duration)||0,thumbnail:(n==null?void 0:n.thumbnail_url)||((d=(h=(l=(f=r.json_metadata)==null?void 0:f.raw)==null?void 0:l.video)==null?void 0:h.info)==null?void 0:d.thumbnail),numOfUpvotes:(m=r.stats)==null?void 0:m.num_votes,numOfComments:(b=r.stats)==null?void 0:b.num_comments,hiveValue:(x=r.stats)==null?void 0:x.total_hive_reward,active_votes:((g=(y=r.stats)==null?void 0:y.active_voters)==null?void 0:g.map(E=>({voter:E.voter,percent:E.percent,rshares:E.rshares,weight:E.weight})))||[]}})}async getContentStats(e,r){try{const n=await ns.call("condenser_api","get_content",[e,r]);return{numOfUpvotes:(n==null?void 0:n.net_votes)??0,numOfComments:(n==null?void 0:n.children)??0,hiveValue:n!=null&&n.pending_payout_value?parseFloat(n.pending_payout_value):0}}catch{return{numOfUpvotes:0,numOfComments:0,hiveValue:0}}}async getActiveVotes(e,r){try{return await ns.call("condenser_api","get_active_votes",[e,r])}catch(n){return console.error("Error calling get_active_votes:",n),[]}}async getCommentsList(e,r){try{const n=await ns.call("bridge","get_discussion",[e,r]);return(Array.isArray(n)?n:n&&typeof n=="object"?Object.values(n):[]).map(s=>{const o=s.depth;if(typeof o=="string"){const u=parseInt(o,10);s.depth=Number.isFinite(u)?u:0}else(typeof o!="number"||!Number.isFinite(o))&&(s.depth=s.depth??0);const c=s.json_metadata;try{if(c&&typeof c=="string"){const u=c.trim();(u.startsWith("{")&&u.endsWith("}")||u.startsWith("[")&&u.endsWith("]"))&&(s.json_metadata_parsed=JSON.parse(u))}else c&&typeof c=="object"&&(s.json_metadata_parsed=c)}catch{console.warn(`Skipped invalid json_metadata for ${s.author}/${s.permlink}`)}return s})}catch(n){return console.error("Error fetching comments list:",n),[]}}async getMyVideos(e){const r=`${qt.domain}/mobile/api/my-videos`,n=await fetch(r,{method:"GET",headers:{"Content-Type":"application/json",Authorization:e}});if(n.ok){const a=await n.json();return Array.isArray(a)?a:[]}else throw console.error("Failed to fetch my videos:",n.statusText),new Error(`Failed to fetch my videos: ${n.status}`)}async getRankedPosts(e="trending",r="",n="hive.blog",a=20,s,o){try{const c={sort:e,tag:r,observer:n,limit:a};return s&&o&&(c.start_author=s,c.start_permlink=o),await ns.call("bridge","get_ranked_posts",c)}catch(c){return console.error("Error fetching ranked posts:",c),[]}}}const Fe=new Tf,Lr=t=>t?t.startsWith("Qm")||t.startsWith("baf")?`https://ipfs-3speak.b-cdn.net/ipfs/${t}`:t.startsWith("http")?t:t.startsWith("/")?`https://3speak.tv${t}`:t:"/placeholder.svg",qc=({video:t,onVideoClick:e,onAuthorClick:r,isGrid:n=!1})=>{const[a,s]=T.useState({numOfUpvotes:t.numOfUpvotes,numOfComments:t.numOfComments,hiveValue:t.hiveValue});T.useEffect(()=>{if(a.numOfUpvotes===void 0&&t.numOfUpvotes===void 0){let u=!0;return(async()=>{try{const f=await Fe.getContentStats(t.author||"",t.permlink||"");u&&s(f)}catch(f){console.error("Error fetching content stats for VideoCard:",f)}})(),()=>{u=!1}}else t.numOfUpvotes!==void 0&&s({numOfUpvotes:t.numOfUpvotes,numOfComments:t.numOfComments||0,hiveValue:t.hiveValue||0})},[t.author,t.permlink,a.numOfUpvotes,t.numOfUpvotes,t.numOfComments,t.hiveValue]);const o=u=>{if(!u)return"00:00";const f=Math.floor(u),l=Math.floor(f/3600),h=Math.floor(f%3600/60),d=f%60,m=b=>b.toString().padStart(2,"0");return f<60?`00:${m(d)}`:l===0?`${m(h)}:${m(d)}`:`${m(l)}:${m(h)}:${m(d)}`},c=u=>u==null?"":u>=1e6?`${(u/1e6).toFixed(1)}M`:u>=1e3?`${(u/1e3).toFixed(1)}K`:u.toString();return i.jsxs("div",{className:"group bg-card border border-border rounded-xl overflow-hidden shadow-card hover:shadow-card-hover transition-all duration-200 hover:-translate-y-1 cursor-pointer",children:[i.jsxs("div",{className:"relative aspect-video bg-muted overflow-hidden",onClick:()=>e(t),children:[i.jsx("img",{src:Lr(t.thumbnail),alt:t.title,onError:u=>{u.target.src=`https://images.hive.blog/u/${t.author}/avatar`},className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"}),t.duration&&i.jsxs("div",{className:"absolute bottom-3 right-3 bg-black/80 text-white text-xs px-2 py-1 rounded-md flex items-center gap-1 backdrop-blur-sm",children:[i.jsx(q.Clock,{className:"w-3 h-3"}),o(t.duration)]}),i.jsx("div",{className:"absolute inset-0 flex items-center justify-center opacity-0 group-hover:opacity-100 transition-all duration-300 bg-black/20",children:i.jsx("div",{className:"bg-primary hover:bg-primary-hover rounded-full p-4 transform scale-75 group-hover:scale-100 transition-all duration-300 shadow-lg",children:i.jsx(q.Play,{className:"w-6 h-6 text-primary-foreground ml-0.5",fill:"currentColor"})})}),i.jsx("div",{className:"absolute inset-0 bg-gradient-overlay opacity-0 group-hover:opacity-30 transition-opacity duration-300"})]}),i.jsxs("div",{className:"p-4 space-y-3",children:[i.jsx("h3",{className:"font-semibold text-card-foreground line-clamp-2 group-hover:text-primary transition-colors cursor-pointer leading-tight",onClick:()=>e(t),children:t.title}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center gap-2 cursor-pointer hover:text-primary transition-colors group/author",onClick:()=>r(t.author),children:[i.jsx("img",{src:`https://images.hive.blog/u/${t.author}/avatar`,alt:t.author,className:"w-8 h-8 rounded-full object-cover border-2 border-border group-hover/author:border-primary transition-colors",onError:u=>{u.target.src="https://images.hive.blog/u/null/avatar"}}),i.jsxs("span",{className:"font-medium text-sm text-muted-foreground group-hover/author:text-primary transition-colors",children:["@",t.author]})]}),i.jsx("span",{className:"text-xs text-muted-foreground",children:Xs.formatDistanceToNow(t.created,{addSuffix:!0})})]}),i.jsxs("div",{className:"flex items-center justify-between text-sm",children:[i.jsxs("div",{className:"flex items-center gap-4",children:[a.numOfUpvotes!=null&&i.jsxs("div",{className:"flex items-center gap-1 text-muted-foreground hover:text-primary transition-colors cursor-pointer",children:[i.jsx(q.ThumbsUp,{className:"w-4 h-4"}),i.jsx("span",{children:c(a.numOfUpvotes)})]}),a.numOfComments!=null&&i.jsxs("div",{className:"flex items-center gap-1 text-muted-foreground hover:text-primary transition-colors cursor-pointer",children:[i.jsx(q.MessageCircle,{className:"w-4 h-4"}),i.jsx("span",{children:c(a.numOfComments)})]})]}),a.hiveValue!=null&&a.hiveValue>0&&i.jsxs("div",{className:"text-primary font-semibold",children:["$",a.hiveValue.toFixed(2)]})]}),t.category&&i.jsx("div",{className:"flex items-center gap-2",children:i.jsx("span",{className:"inline-block bg-primary/10 text-primary text-xs px-2 py-1 rounded-full font-medium",children:t.category})})]})]})};var $e=(t=>(t.HOME="home",t.TRENDING="trending",t.NEW_VIDEOS="newVideos",t.FIRST_UPLOADS="firstUploads",t.USER="user",t.COMMUNITY="community",t.RELATED="related",t.TAG_FEED="tag_feed",t.SEARCH="search",t))($e||{});const cl=new Map,Uc=({title:t,author:e,permlink:r,createdAt:n,video:a,currentUser:s,isContentVoted:o=!1,description:c,onTapComment:u,onTapUpvote:f,onTapShare:l,onTapBookmark:h,onTapAuthor:d,onTapInfo:m})=>{const[b,x]=T.useState(a.numOfComments||0),[y,g]=T.useState(a.numOfUpvotes||0),[E,S]=T.useState(!1),[w,k]=T.useState(!1),[p,N]=T.useState(""),A=M=>{N(M),k(!0),setTimeout(()=>k(!1),3e3)},V=(M,C)=>`${M}:${C}`;T.useEffect(()=>{const M=V(e,r),C=cl.get(M);C?(x(C.comments),g(C.upvotes)):(async()=>{const R=await Fe.getContentStats(e,r);g(R.numOfUpvotes),x(R.numOfComments),cl.set(V(e,r),{comments:R.numOfComments,upvotes:R.numOfUpvotes})})()},[e,r]);const z=()=>{u?u(e,r):A("Comments feature coming soon!")},j=()=>{f?f(e,r):A("Upvote feature requires authentication!")},L=()=>{if(l)l(e,r);else{const M=`https://3speak.tv/user/${e}/${r}`;navigator.share?navigator.share({title:t,url:M}):(navigator.clipboard.writeText(M),A("Link copied to clipboard!"))}},I=()=>{h?h(e,r):(S(!E),A(E?"Removed from bookmarks":"Added to bookmarks"))},H=()=>d==null?void 0:d(e,r),_=()=>{m?m(e,r):A("Video details coming soon!")};return i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"p-6 bg-card border-b border-border",children:[i.jsx("h1",{className:"text-xl font-bold text-card-foreground mb-4 line-clamp-2",children:t}),i.jsxs("div",{className:"flex items-start gap-4",children:[i.jsx("button",{onClick:H,className:"flex-shrink-0 group",children:i.jsx("img",{src:`https://images.hive.blog/u/${e}/avatar`,alt:e,className:"w-12 h-12 rounded-full object-cover border-2 border-border group-hover:border-primary transition-all duration-200",onError:M=>{M.target.src=`https://ui-avatars.com/api/?name=${e}&background=random`}})}),i.jsxs("div",{className:"flex-1",children:[i.jsx("div",{className:"flex items-center justify-between mb-4",children:i.jsxs("div",{children:[i.jsxs("button",{onClick:H,className:"font-semibold text-card-foreground hover:text-primary transition-colors text-base",children:["@",e]}),i.jsxs("div",{className:"flex items-center gap-4 mt-1 text-sm text-muted-foreground",children:[a.views&&i.jsxs("div",{className:"flex items-center gap-1",children:[i.jsx(q.Eye,{className:"w-4 h-4"}),i.jsxs("span",{children:[a.views.toLocaleString()," views"]})]}),n&&i.jsx("span",{children:Xs.formatDistanceToNow(n,{addSuffix:!0})})]})]})}),i.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[i.jsxs("button",{type:"button",onClick:_,className:"inline-flex items-center gap-2 px-3 py-2 rounded-lg bg-muted text-muted-foreground hover:bg-primary/10 hover:text-primary transition-all duration-200","aria-label":"Show description",children:[i.jsx(q.Info,{className:"w-4 h-4"}),i.jsx("span",{className:"text-sm font-medium",children:"Info"})]}),i.jsxs("button",{type:"button",onClick:z,className:"inline-flex items-center gap-2 px-3 py-2 rounded-lg bg-muted text-muted-foreground hover:bg-primary/10 hover:text-primary transition-all duration-200","aria-label":"Show comments",children:[i.jsx(q.MessageCircle,{className:"w-4 h-4"}),i.jsx("span",{className:"text-sm font-medium",children:b})]}),i.jsxs("button",{type:"button",onClick:j,className:`inline-flex items-center gap-2 px-3 py-2 rounded-lg transition-all duration-200 ${o?"bg-primary/10 text-primary":"bg-muted text-muted-foreground hover:bg-primary/10 hover:text-primary"}`,"aria-label":"Show upvotes",children:[i.jsx(q.ThumbsUp,{className:`w-4 h-4 ${o?"fill-current":""}`}),i.jsx("span",{className:"text-sm font-medium",children:y})]}),i.jsxs("button",{type:"button",onClick:L,className:"inline-flex items-center gap-2 px-3 py-2 rounded-lg bg-muted text-muted-foreground hover:bg-secondary/10 hover:text-secondary transition-all duration-200","aria-label":"Share video",children:[i.jsx(q.Share2,{className:"w-4 h-4"}),i.jsx("span",{className:"text-sm font-medium",children:"Share"})]}),i.jsxs("button",{type:"button",onClick:I,className:`inline-flex items-center gap-2 px-3 py-2 rounded-lg transition-all duration-200 ${E?"bg-error/10 text-error":"bg-muted text-muted-foreground hover:bg-error/10 hover:text-error"}`,"aria-label":"Bookmark video",children:[i.jsx(q.Heart,{className:`w-4 h-4 ${E?"fill-current":""}`}),i.jsx("span",{className:"text-sm font-medium",children:E?"Saved":"Save"})]})]}),(a.hiveValue||a.category)&&i.jsxs("div",{className:"flex items-center gap-4 mt-4 pt-4 border-t border-border",children:[a.hiveValue&&a.hiveValue>0&&i.jsx("div",{className:"flex items-center gap-1 text-success font-semibold",children:i.jsxs("span",{children:["$",a.hiveValue.toFixed(2)," earned"]})}),a.category&&i.jsxs("div",{className:"flex items-center gap-1",children:[i.jsx(q.Users,{className:"w-4 h-4 text-muted-foreground"}),i.jsx("span",{className:"text-sm text-muted-foreground capitalize",children:a.category})]})]})]})]})]}),w&&i.jsx("div",{className:"fixed bottom-4 right-4 z-50 animate-slide-up",children:i.jsx("div",{className:"bg-card border border-border text-card-foreground rounded-lg px-4 py-3 shadow-lg max-w-sm",children:i.jsx("div",{className:"font-medium",children:p})})})]})},as=new Map,Qs=({feedType:t,username:e,communityId:r,tag:n,onVideoClick:a,onAuthorClick:s})=>{const[o,c]=T.useState([]),[u,f]=T.useState(!0),[l,h]=T.useState(!1),[d,m]=T.useState(null),[b,x]=T.useState(!0),[y,g]=T.useState(0),E=T.useMemo(()=>{switch(t){case $e.USER:return`user:${e||""}`;case $e.COMMUNITY:return`community:${r||""}`;case $e.TAG_FEED:return`tag:${n||""}`;case $e.SEARCH:return`search:${n||""}`;default:return t}},[t,e,r,n]),S=T.useCallback(async A=>{var V,z,j,L,I,H,_,M,C,W,R,Z;if((V=A.author)!=null&&V.username){if(!A.permlink)return null;let P=null;try{typeof A.spkvideo=="string"?P=JSON.parse(A.spkvideo):P=A.spkvideo}catch($){console.error("Error parsing spkvideo JSON",$)}const G=Lr(P==null?void 0:P.thumbnail_url)||Lr((I=(L=(j=(z=A.json_metadata)==null?void 0:z.raw)==null?void 0:j.video)==null?void 0:L.info)==null?void 0:I.thumbnail),ne=(P==null?void 0:P.duration)||((C=(M=(_=(H=A.json_metadata)==null?void 0:H.raw)==null?void 0:_.video)==null?void 0:M.info)==null?void 0:C.duration)||0;return{title:A.title||"Untitled",author:A.author.username,permlink:A.permlink,created:new Date(A.created_at),category:A.tags&&A.tags.length>0?A.tags[0]:"general",duration:ne,thumbnail:G,numOfUpvotes:((W=A.stats)==null?void 0:W.num_votes)||A.numOfUpvotes,numOfComments:((R=A.stats)==null?void 0:R.num_comments)||A.numOfComments,hiveValue:((Z=A.stats)==null?void 0:Z.total_hive_reward)||A.hiveValue}}return A.owner?{title:A.title||"Untitled",author:A.owner,permlink:A.permlink||"",created:new Date(A.created||Date.now()),category:A.category||"general",duration:A.duration,thumbnail:Lr(A.thumbnail),numOfUpvotes:A.numOfUpvotes,numOfComments:A.numOfComments,hiveValue:A.hiveValue}:null},[]),w=T.useCallback(async(A,V=!1)=>{try{let z=[];switch(t){case $e.SEARCH:n&&(z=await Fe.getSearchFeed(n,A));break;case $e.TAG_FEED:n&&(z=await Fe.getTaggedVideos(n,A));break;case $e.HOME:z=await Fe.getHomeVideos(A);break;case $e.TRENDING:z=await Fe.getTrendingVideos(A);break;case $e.NEW_VIDEOS:z=await Fe.getNewVideos(A);break;case $e.FIRST_UPLOADS:z=await Fe.getFirstUploadsVideos(A);break;case $e.USER:e&&(z=await Fe.getUserVideos(e,A));break;case $e.COMMUNITY:r&&(z=await Fe.getCommunityVideos(r,A));break;case $e.RELATED:e&&(z=await Fe.getRelatedVideos(e,A));break}const L=(await Promise.all(z.map(S))).filter(I=>I!==null);V?(c(L),as.set(E,L)):c(I=>{const H=[...I,...L];return as.set(E,H),H}),x(z.length>=20),g(A+z.length),m(null)}catch(z){m(z instanceof Error?z.message:"Failed to load videos")}},[t,e,r,n,E,S]);T.useEffect(()=>{(async()=>{f(!0),c([]),g(0);const V=as.get(E);V!=null&&V.length&&(c(V),f(!1)),await w(0,!0),f(!1)})()},[E,w]);const k=T.useCallback(async()=>{l||!b||(h(!0),await w(y),h(!1))},[l,b,y,w]),p=T.useCallback(async()=>{as.delete(E),f(!0),g(0),await w(0,!0),f(!1)},[E,w]);T.useEffect(()=>{const A=()=>{window.innerHeight+document.documentElement.scrollTop>=document.documentElement.offsetHeight-1e3&&k()};return window.addEventListener("scroll",A),()=>window.removeEventListener("scroll",A)},[k]);const N=()=>i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:Array.from({length:8}).map((A,V)=>i.jsxs("div",{className:"bg-card border border-border rounded-xl overflow-hidden animate-pulse",children:[i.jsx("div",{className:"aspect-video bg-muted"}),i.jsxs("div",{className:"p-4 space-y-3",children:[i.jsx("div",{className:"h-4 bg-muted rounded w-3/4"}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("div",{className:"w-8 h-8 bg-muted rounded-full"}),i.jsx("div",{className:"h-3 bg-muted rounded w-20"})]}),i.jsxs("div",{className:"flex justify-between",children:[i.jsx("div",{className:"h-3 bg-muted rounded w-16"}),i.jsx("div",{className:"h-3 bg-muted rounded w-12"})]})]})]},V))});return u&&o.length===0?i.jsx(N,{}):d&&o.length===0?i.jsx("div",{className:"flex flex-col items-center justify-center min-h-[400px] space-y-4",children:i.jsxs("div",{className:"text-center",children:[i.jsx("h3",{className:"text-lg font-semibold text-card-foreground mb-2",children:"Failed to load videos"}),i.jsx("p",{className:"text-muted-foreground mb-4",children:d}),i.jsxs("button",{onClick:p,className:"inline-flex items-center justify-center rounded-md border border-border bg-card px-4 py-2 text-sm font-medium text-card-foreground shadow-sm transition-colors hover:bg-card-hover focus:outline-none focus:ring-2 focus:ring-primary",children:[i.jsx(q.RefreshCw,{className:"w-4 h-4 mr-2"}),"Try Again"]})]})}):o.length===0?i.jsx("div",{className:"flex flex-col items-center justify-center min-h-[400px] space-y-4",children:i.jsxs("div",{className:"text-center",children:[i.jsx("h3",{className:"text-lg font-semibold text-card-foreground mb-2",children:"No videos found"}),i.jsx("p",{className:"text-muted-foreground mb-4",children:"Check back later for new content"}),i.jsxs("button",{onClick:p,className:"inline-flex items-center justify-center rounded-md border border-border bg-card px-4 py-2 text-sm font-medium text-card-foreground shadow-sm transition-colors hover:bg-card-hover focus:outline-none focus:ring-2 focus:ring-primary",children:[i.jsx(q.RefreshCw,{className:"w-4 h-4 mr-2"}),"Refresh"]})]})}):i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{className:"flex justify-between items-center",children:[i.jsxs("h2",{className:"text-2xl font-bold text-card-foreground capitalize",children:[t.replace(/([A-Z])/g," $1").toLowerCase()," Videos"]}),i.jsxs("button",{onClick:p,className:"inline-flex items-center justify-center rounded-md border border-border bg-card px-3 py-2 text-sm font-medium text-card-foreground shadow-sm transition-colors hover:bg-card-hover focus:outline-none focus:ring-2 focus:ring-primary",children:[i.jsx(q.RefreshCw,{className:"w-4 h-4 mr-2"}),"Refresh"]})]}),i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:o.map((A,V)=>i.jsx(qc,{video:A,onVideoClick:a,onAuthorClick:s,isGrid:!0},`${A.author}-${A.permlink}-${V}`))}),b&&i.jsx("div",{className:"flex justify-center pt-8",children:l?i.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[i.jsx(q.Loader2,{className:"w-4 h-4 animate-spin"}),"Loading more videos..."]}):i.jsx("button",{onClick:k,className:"inline-flex items-center justify-center rounded-md border border-border bg-card px-4 py-2 text-sm font-medium text-card-foreground shadow-sm transition-colors hover:bg-card-hover focus:outline-none focus:ring-2 focus:ring-primary",children:"Load More Videos"})})]})},ei=({isOpen:t,onClose:e,title:r,children:n,maxWidth:a="max-w-2xl"})=>t?i.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[i.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:e}),i.jsxs("div",{className:`relative bg-card border border-border rounded-xl shadow-xl w-full mx-4 ${a} max-h-[90vh] overflow-hidden animate-scale-in`,children:[i.jsxs("div",{className:"flex items-center justify-between p-6 border-b border-border",children:[i.jsx("h2",{className:"text-xl font-bold text-card-foreground",children:r}),i.jsx("button",{onClick:e,className:"p-2 rounded-lg hover:bg-muted transition-colors",children:i.jsx(q.X,{className:"w-5 h-5 text-muted-foreground"})})]}),i.jsx("div",{className:"overflow-y-auto max-h-[calc(90vh-80px)] custom-scrollbar",children:n})]})]}):null,zc=({author:t,permlink:e,currentUser:r,onClose:n})=>{const[a,s]=T.useState([]),[o,c]=T.useState(!0),[u,f]=T.useState(null),[l,h]=T.useState(""),[d,m]=T.useState(!1);T.useEffect(()=>{(async()=>{try{c(!0);const E=(await Fe.getCommentsList(t,e)).filter(S=>S.depth&&S.depth>0).sort((S,w)=>new Date(w.created||0).getTime()-new Date(S.created||0).getTime());s(E)}catch(g){f(g instanceof Error?g.message:"Failed to load comments")}finally{c(!1)}})()},[t,e]);const b=async()=>{if(!(!l.trim()||!r))try{m(!0),console.log("Would submit comment:",l),h("")}catch(y){console.error("Failed to submit comment:",y)}finally{m(!1)}},x=y=>{const g=Math.min(y.depth||0,5);return i.jsx("div",{className:`border-l-2 border-border ${g>0?`ml-${g*4}`:""}`,children:i.jsxs("div",{className:"p-4 bg-muted/30 rounded-r-lg",children:[i.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[i.jsx("img",{src:`https://images.hive.blog/u/${y.author}/avatar`,alt:y.author,className:"w-6 h-6 rounded-full object-cover border border-border",onError:E=>{E.target.src=`https://ui-avatars.com/api/?name=${y.author}&background=random`}}),i.jsxs("span",{className:"font-medium text-card-foreground text-sm",children:["@",y.author]}),y.created&&i.jsx("span",{className:"text-xs text-muted-foreground",children:Xs.formatDistanceToNow(new Date(y.created),{addSuffix:!0})})]}),i.jsx("div",{className:"text-sm text-card-foreground leading-relaxed",children:y.body||"No content"}),y.net_votes&&y.net_votes>0&&i.jsx("div",{className:"flex items-center gap-1 mt-2",children:i.jsxs("span",{className:"text-xs text-muted-foreground",children:[y.net_votes," votes"]})})]})},`${y.author}-${y.permlink}`)};return i.jsx(ei,{isOpen:!0,onClose:n,title:`Comments (${a.length})`,maxWidth:"max-w-2xl",children:i.jsxs("div",{className:"p-6",children:[r&&i.jsx("div",{className:"mb-6 p-4 bg-muted/50 rounded-lg",children:i.jsxs("div",{className:"flex items-start gap-3",children:[i.jsx("img",{src:`https://images.hive.blog/u/${r}/avatar`,alt:r,className:"w-8 h-8 rounded-full object-cover border border-border"}),i.jsxs("div",{className:"flex-1",children:[i.jsx("textarea",{value:l,onChange:y=>h(y.target.value),placeholder:"Write a comment...",className:"w-full p-3 bg-background border border-border rounded-lg resize-none focus:outline-none focus:ring-2 focus:ring-primary",rows:3}),i.jsx("div",{className:"flex justify-end mt-2",children:i.jsxs("button",{onClick:b,disabled:!l.trim()||d,className:"inline-flex items-center gap-2 px-4 py-2 bg-primary text-primary-foreground rounded-lg hover:bg-primary-hover disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:[d?i.jsx(q.Loader2,{className:"w-4 h-4 animate-spin"}):i.jsx(q.Send,{className:"w-4 h-4"}),i.jsx("span",{className:"text-sm font-medium",children:d?"Posting...":"Post Comment"})]})})]})]})}),o?i.jsxs("div",{className:"flex items-center justify-center py-8",children:[i.jsx(q.Loader2,{className:"w-6 h-6 animate-spin text-primary"}),i.jsx("span",{className:"ml-2 text-muted-foreground",children:"Loading comments..."})]}):u?i.jsx("div",{className:"text-center py-8",children:i.jsx("p",{className:"text-error",children:u})}):a.length===0?i.jsxs("div",{className:"text-center py-8",children:[i.jsx(q.MessageCircle,{className:"w-12 h-12 text-muted-foreground mx-auto mb-2"}),i.jsx("p",{className:"text-muted-foreground",children:"No comments yet"}),i.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Be the first to share your thoughts!"})]}):i.jsx("div",{className:"space-y-4",children:a.map(x)})]})})},Hc=({author:t,permlink:e,onClose:r})=>{const[n,a]=T.useState([]),[s,o]=T.useState(!0),[c,u]=T.useState(null);T.useEffect(()=>{(async()=>{try{o(!0);const d=(await Fe.getActiveVotes(t,e)).sort((m,b)=>b.rshares-m.rshares);a(d)}catch(h){u(h instanceof Error?h.message:"Failed to load votes")}finally{o(!1)}})()},[t,e]);const f=l=>l>=1e9?`${(l/1e9).toFixed(1)}B`:l>=1e6?`${(l/1e6).toFixed(1)}M`:l>=1e3?`${(l/1e3).toFixed(1)}K`:l.toString();return i.jsx(ei,{isOpen:!0,onClose:r,title:`Votes (${n.length})`,maxWidth:"max-w-md",children:i.jsx("div",{className:"p-6",children:s?i.jsxs("div",{className:"flex items-center justify-center py-8",children:[i.jsx(q.Loader2,{className:"w-6 h-6 animate-spin text-primary"}),i.jsx("span",{className:"ml-2 text-muted-foreground",children:"Loading votes..."})]}):c?i.jsx("div",{className:"text-center py-8",children:i.jsx("p",{className:"text-error",children:c})}):n.length===0?i.jsxs("div",{className:"text-center py-8",children:[i.jsx(q.ThumbsUp,{className:"w-12 h-12 text-muted-foreground mx-auto mb-2"}),i.jsx("p",{className:"text-muted-foreground",children:"No votes yet"})]}):i.jsx("div",{className:"space-y-3",children:n.map((l,h)=>i.jsxs("div",{className:"flex items-center justify-between p-3 rounded-lg bg-muted/50 hover:bg-muted transition-colors",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("img",{src:`https://images.hive.blog/u/${l.voter}/avatar`,alt:l.voter,className:"w-8 h-8 rounded-full object-cover border border-border",onError:d=>{d.target.src=`https://ui-avatars.com/api/?name=${l.voter}&background=random`}}),i.jsxs("div",{children:[i.jsxs("div",{className:"font-medium text-card-foreground",children:["@",l.voter]}),l.time&&i.jsx("div",{className:"text-sm text-muted-foreground",children:new Date(l.time).toLocaleDateString()})]})]}),i.jsxs("div",{className:"text-right",children:[l.percent&&i.jsxs("div",{className:"text-sm font-medium text-primary",children:[(l.percent/100).toFixed(1),"%"]}),i.jsxs("div",{className:"text-xs text-muted-foreground",children:[f(l.rshares)," rshares"]})]})]},`${l.voter}-${h}`))})})})},Wc=({author:t,permlink:e,content:r,onClose:n})=>i.jsx(ei,{isOpen:!0,onClose:n,title:"Video Description",maxWidth:"max-w-2xl",children:i.jsxs("div",{className:"p-6",children:[r?i.jsx("div",{className:"prose prose-sm max-w-none",children:i.jsx("div",{className:"bg-muted/30 rounded-lg p-4",children:i.jsx("pre",{className:"whitespace-pre-wrap text-sm text-card-foreground font-sans leading-relaxed",children:r})})}):i.jsxs("div",{className:"text-center py-8",children:[i.jsx(q.FileText,{className:"w-12 h-12 text-muted-foreground mx-auto mb-2"}),i.jsx("p",{className:"text-muted-foreground",children:"No description available"}),i.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"This video doesn't have a description yet."})]}),i.jsx("div",{className:"mt-6 pt-4 border-t border-border",children:i.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[i.jsxs("span",{children:["By @",t]}),i.jsx("span",{children:"•"}),i.jsxs("span",{children:["/",e]})]})})]})}),Cf=({username:t,permlink:e,onAuthorClick:r,onVideoClick:n,onTagClick:a,onBack:s,onCommentsModal:o,onUpvotesModal:c,onDescriptionModal:u,onVideoInfo:f,onShare:l,onBookmark:h}={})=>{const d=t,m=e,[b,x]=T.useState(null),[y,g]=T.useState(!0),[E,S]=T.useState(null),[w,k]=T.useState(!1),[p,N]=T.useState(null),[A,V]=T.useState(!1),[z,j]=T.useState(!1),[L,I]=T.useState(!1),[H,_]=T.useState(!1),M=T.useRef(null),C=T.useRef(null),W=T.useRef(null);T.useEffect(()=>{(async()=>{if(!(!d||!m))try{g(!0),S(null);const B=await Fe.getVideoDetails(d,m);x(B),k(!1),N(null)}catch(B){S(B instanceof Error?B.message:"Failed to load video")}finally{g(!1)}})()},[d,m]);const R=$=>$?$.startsWith("ipfs://")?`https://ipfs-3speak.b-cdn.net/ipfs/${$.replace("ipfs://","").split("/")[0]}/manifest.m3u8`:$:"";T.useEffect(()=>((async()=>{const B=b==null?void 0:b.video_v2;if(!w||!B||!M.current)return;const re=M.current,X=R(B);C.current&&(C.current.destroy(),C.current=null),re.src="",re.load();try{let te=!1;const pe=()=>{te||(te=!0,re.play().then(()=>N(null)).catch(ye=>N(`Playback failed: ${ye.message}`)))};if(an.isSupported()){const ye=new an({debug:!1,enableWorker:!1,lowLatencyMode:!1,backBufferLength:90,maxLoadingDelay:4,maxBufferLength:30,maxMaxBufferLength:600,startLevel:-1});C.current=ye,ye.on(an.Events.MANIFEST_PARSED,()=>{}),ye.on(an.Events.ERROR,(tt,We)=>{if(We.fatal)switch(We.type){case an.ErrorTypes.NETWORK_ERROR:N("Network error, retrying..."),setTimeout(()=>ye.startLoad(),1e3);break;case an.ErrorTypes.MEDIA_ERROR:N("Media error, retrying..."),setTimeout(()=>ye.recoverMediaError(),1e3);break;default:N(`Fatal error: ${We.details}`),ye.destroy(),C.current=null;break}}),ye.attachMedia(re),ye.loadSource(X)}else if(re.canPlayType("application/vnd.apple.mpegurl"))re.src=X;else{const ye=X.replace("/manifest.m3u8","/480p/index.m3u8");re.src=ye}const De=()=>V(!0),Nt=()=>{V(!1),pe()},Mt=ye=>{var We;const tt=ye.target;N(`Video error: ${((We=tt.error)==null?void 0:We.message)||"Unknown error"}`),V(!1)},yr=()=>V(!1);re.addEventListener("loadstart",De),re.addEventListener("canplay",Nt),re.addEventListener("error",Mt),re.addEventListener("loadeddata",yr);const vr=async()=>{var tt,We,Me,wr;const ye=!!document.fullscreenElement;try{ye?"orientation"in screen&&await(((We=(tt=screen.orientation)==null?void 0:tt.lock)==null?void 0:We.call(tt,"landscape"))??Promise.resolve()):"orientation"in screen&&((wr=(Me=screen.orientation)==null?void 0:Me.unlock)==null||wr.call(Me))}catch{}};return document.addEventListener("fullscreenchange",vr),W.current=()=>{document.removeEventListener("fullscreenchange",vr)},()=>{re.removeEventListener("loadstart",De),re.removeEventListener("canplay",Nt),re.removeEventListener("error",Mt),re.removeEventListener("loadeddata",yr),W.current&&W.current()}}catch(te){N(`Setup error: ${te instanceof Error?te.message:"Unknown"}`)}})(),()=>{C.current&&(C.current.destroy(),C.current=null)}),[w,b==null?void 0:b.video_v2]);const Z=()=>{if(!(b==null?void 0:b.video_v2)){N("No video source available");return}k(!0),N(null),V(!0)},P=$=>{n&&n($)},G=$=>{r&&r($)},ne=$=>{if(!$)return"00:00";const B=Math.floor($),re=Math.floor(B/3600),X=Math.floor(B%3600/60),te=B%60,pe=De=>De.toString().padStart(2,"0");return B<60?`00:${pe(te)}`:re===0?`${pe(X)}:${pe(te)}`:`${pe(re)}:${pe(X)}:${pe(te)}`};return y?i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx("div",{className:"sticky top-0 z-50 w-full bg-background border-b border-border",children:i.jsx("div",{className:"container mx-auto px-4 py-3",children:i.jsx("div",{className:"h-8 w-24 bg-muted rounded-full animate-pulse"})})}),i.jsx("div",{className:"container mx-auto px-4 py-8 max-w-6xl",children:i.jsxs("div",{className:"animate-pulse space-y-6",children:[i.jsx("div",{className:"aspect-video bg-muted rounded-xl"}),i.jsxs("div",{className:"space-y-3",children:[i.jsx("div",{className:"h-6 bg-muted rounded w-3/4"}),i.jsx("div",{className:"h-4 bg-muted rounded w-1/2"})]})]})})]}):E||!b?i.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:i.jsxs("div",{className:"text-center max-w-md mx-auto px-4",children:[i.jsx("h2",{className:"text-xl font-semibold text-card-foreground mb-2",children:"Failed to Load Video"}),i.jsx("p",{className:"text-muted-foreground mb-4",children:E||"Video not found"}),i.jsxs("button",{onClick:()=>{s&&s()},className:"inline-flex items-center gap-2 px-4 py-2 bg-card border border-border text-card-foreground rounded-lg hover:bg-card-hover transition-colors",children:[i.jsx(q.ArrowLeft,{className:"w-4 h-4"}),"Go Back"]})]})}):i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx("div",{className:"sticky top-0 z-50 w-full bg-background/95 backdrop-blur-sm border-b border-border",children:i.jsx("div",{className:"container mx-auto px-4 py-3",children:i.jsxs("button",{onClick:()=>{s&&s()},className:"inline-flex items-center gap-2 text-muted-foreground hover:text-card-foreground transition-colors",children:[i.jsx(q.ArrowLeft,{className:"w-4 h-4"}),"Back"]})})}),i.jsx("div",{className:"container mx-auto px-4 py-8 max-w-6xl",children:i.jsxs("div",{className:"flex flex-col gap-8",children:[i.jsxs("div",{className:"lg:col-span-2 space-y-6",children:[i.jsx("div",{className:"w-full aspect-video bg-black rounded-xl overflow-hidden relative shadow-card",children:w?i.jsxs("div",{className:"relative w-full h-full",children:[i.jsx("video",{ref:M,controls:!0,poster:Lr(b.thumbnail),className:"w-full h-full object-contain bg-black",onDoubleClick:async $=>{const B=$.currentTarget;try{document.fullscreenElement?await document.exitFullscreen():await B.requestFullscreen()}catch{}}}),A&&i.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-black/50",children:i.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary"})}),p&&i.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-black/80",children:i.jsxs("div",{className:"text-center text-white",children:[i.jsx("p",{className:"mb-4",children:p}),i.jsx("button",{onClick:()=>{k(!1),N(null)},className:"px-4 py-2 bg-primary text-primary-foreground rounded-lg hover:bg-primary-hover transition-colors",children:"Try Again"})]})})]}):i.jsxs(i.Fragment,{children:[i.jsx("img",{src:Lr(b.thumbnail)||`https://images.hive.blog/u/${b.owner}/avatar`,alt:b.title,className:"w-full h-full object-cover",onError:$=>{$.target.src=`https://images.hive.blog/u/${b.owner}/avatar`}}),i.jsx("div",{className:"absolute inset-0 bg-gradient-overlay opacity-30"}),i.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:i.jsx("button",{onClick:Z,className:"bg-primary hover:bg-primary-hover rounded-full p-6 transform hover:scale-110 transition-all duration-300 shadow-lg",children:i.jsx(q.Play,{className:"w-8 h-8 text-primary-foreground ml-1",fill:"currentColor"})})}),b.duration&&i.jsxs("div",{className:"absolute bottom-4 right-4 bg-black/80 text-white text-sm px-3 py-1 rounded-md flex items-center gap-1 backdrop-blur-sm",children:[i.jsx(q.Clock,{className:"w-3 h-3"}),ne(b.duration)]}),b.views&&i.jsxs("div",{className:"absolute bottom-4 left-4 bg-black/80 text-white text-sm px-3 py-1 rounded-md flex items-center gap-1 backdrop-blur-sm",children:[i.jsx(q.Eye,{className:"w-3 h-3"}),b.views.toLocaleString()," views"]})]})}),i.jsx(Uc,{title:b.title||"",author:b.owner||"",permlink:b.permlink||"",createdAt:b.created,description:b.description||"",video:{title:b.title||"",author:b.owner||"",permlink:b.permlink||"",created:b.created||new Date,category:b.category||"",numOfUpvotes:void 0,numOfComments:void 0,hiveValue:void 0,duration:b.duration,thumbnail:b.thumbnail,views:b.views},onTapComment:()=>{o?o(d,m):j(!0)},onTapUpvote:()=>{c?c(d,m):I(!0)},onTapInfo:()=>{u?u(d,m,b.description||""):_(!0)},onTapAuthor:()=>{r&&r(b.owner)},onTapShare:()=>{l&&l(d,m)},onTapBookmark:()=>{h&&h(d,m)}}),b.tags&&i.jsx("div",{className:"flex flex-wrap gap-2",children:b.tags.split(",").map(($,B)=>i.jsxs("span",{className:"bg-primary/10 text-primary px-3 py-1 rounded-full text-sm font-medium hover:bg-primary/20 transition-colors cursor-pointer",onClick:()=>{a&&a($.trim())},children:["#",$.trim()]},B))})]}),i.jsxs("div",{className:"bg-card border border-border rounded-xl p-6 sticky top-24",children:[i.jsx("h3",{className:"font-semibold text-card-foreground mb-4 text-lg",children:"Related Videos"}),i.jsx("div",{className:"space-y-4",children:i.jsx(Qs,{feedType:$e.RELATED,username:b.owner,onVideoClick:P,onAuthorClick:G})})]})]})}),z&&d&&m&&i.jsx(zc,{author:d,permlink:m,onClose:()=>j(!1)}),L&&d&&m&&i.jsx(Hc,{author:d,permlink:m,onClose:()=>I(!1)}),H&&d&&m&&i.jsx(Wc,{author:d,permlink:m,content:b.description||"",onClose:()=>_(!1)})]})};var Gc={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},dl=T.createContext&&T.createContext(Gc),Of=["attr","size","title"];function $f(t,e){if(t==null)return{};var r=Pf(t,e),n,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(a=0;a<s.length;a++)n=s[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Pf(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function $s(){return $s=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},$s.apply(this,arguments)}function fl(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Ps(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?fl(Object(r),!0).forEach(function(n){Lf(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fl(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Lf(t,e,r){return e=Mf(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Mf(t){var e=If(t,"string");return typeof e=="symbol"?e:e+""}function If(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Jc(t){return t&&t.map((e,r)=>T.createElement(e.tag,Ps({key:r},e.attr),Jc(e.child)))}function Sn(t){return e=>T.createElement(Ff,$s({attr:Ps({},t.attr)},e),Jc(t.child))}function Ff(t){var e=r=>{var{attr:n,size:a,title:s}=t,o=$f(t,Of),c=a||r.size||"1em",u;return r.className&&(u=r.className),t.className&&(u=(u?u+" ":"")+t.className),T.createElement("svg",$s({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,o,{className:u,style:Ps(Ps({color:t.color||r.color},r.style),t.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),s&&T.createElement("title",null,s),t.children)};return dl!==void 0?T.createElement(dl.Consumer,null,r=>e(r)):e(Gc)}function Rf(t){return Sn({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M296 160H180.6l42.6-129.8C227.2 15 215.7 0 200 0H56C44 0 33.8 8.9 32.2 20.8l-32 240C-1.7 275.2 9.5 288 24 288h118.7L96.6 482.5c-3.6 15.2 8 29.5 23.3 29.5 8.4 0 16.4-4.4 20.8-12l176-304c9.3-15.9-2.2-36-20.7-36z"},child:[]}]})(t)}function Bf(t){return Sn({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M0 405.3V448c0 35.3 86 64 192 64s192-28.7 192-64v-42.7C342.7 434.4 267.2 448 192 448S41.3 434.4 0 405.3zM320 128c106 0 192-28.7 192-64S426 0 320 0 128 28.7 128 64s86 64 192 64zM0 300.4V352c0 35.3 86 64 192 64s192-28.7 192-64v-51.6c-41.3 34-116.9 51.6-192 51.6S41.3 334.4 0 300.4zm416 11c57.3-11.1 96-31.7 96-55.4v-42.7c-23.2 16.4-57.3 27.6-96 34.5v63.6zM192 160C86 160 0 195.8 0 240s86 80 192 80 192-35.8 192-80-86-80-192-80zm219.3 56.3c60-10.8 100.7-32 100.7-56.3v-42.7c-35.5 25.1-96.5 38.6-160.7 41.8 29.5 14.3 51.2 33.5 60 57.2z"},child:[]}]})(t)}function Vf(t){return Sn({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},child:[]}]})(t)}function qf(t){return Sn({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M608 64H32C14.33 64 0 78.33 0 96v320c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V96c0-17.67-14.33-32-32-32zM48 400v-64c35.35 0 64 28.65 64 64H48zm0-224v-64h64c0 35.35-28.65 64-64 64zm272 176c-44.19 0-80-42.99-80-96 0-53.02 35.82-96 80-96s80 42.98 80 96c0 53.03-35.83 96-80 96zm272 48h-64c0-35.35 28.65-64 64-64v64zm0-224c-35.35 0-64-28.65-64-64h64v64z"},child:[]}]})(t)}function Uf(t){return Sn({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M560 224h-29.5c-8.8-20-21.6-37.7-37.4-52.5L512 96h-32c-29.4 0-55.4 13.5-73 34.3-7.6-1.1-15.1-2.3-23-2.3H256c-77.4 0-141.9 55-156.8 128H56c-14.8 0-26.5-13.5-23.5-28.8C34.7 215.8 45.4 208 57 208h1c3.3 0 6-2.7 6-6v-20c0-3.3-2.7-6-6-6-28.5 0-53.9 20.4-57.5 48.6C-3.9 258.8 22.7 288 56 288h40c0 52.2 25.4 98.1 64 127.3V496c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16v-48h128v48c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16v-80.7c11.8-8.9 22.3-19.4 31.3-31.3H560c8.8 0 16-7.2 16-16V240c0-8.8-7.2-16-16-16zm-128 64c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zM256 96h128c5.4 0 10.7.4 15.9.8 0-.3.1-.5.1-.8 0-53-43-96-96-96s-96 43-96 96c0 2.1.5 4.1.6 6.2 15.2-3.9 31-6.2 47.4-6.2z"},child:[]}]})(t)}function zf(t){return Sn({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M461.2 128H80c-8.84 0-16-7.16-16-16s7.16-16 16-16h384c8.84 0 16-7.16 16-16 0-26.51-21.49-48-48-48H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h397.2c28.02 0 50.8-21.53 50.8-48V176c0-26.47-22.78-48-50.8-48zM416 336c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"},child:[]}]})(t)}const nu=new jf.Client(["https://api.hive.blog"]),Hf=async t=>{try{const e=await nu.database.getAccounts([t]);if(!e||e.length===0)throw new Error("Account not found");return e[0]}catch(e){return console.error("Error in getWalletDataDetail:",e),{error:e instanceof Error?e.message:"Unknown error"}}},Wf=async t=>{try{const e=await nu.database.getDynamicGlobalProperties(),r=parseFloat(t.split(" ")[0]),n=parseFloat(String(e.total_vesting_shares).split(" ")[0]),a=parseFloat(String(e.total_vesting_fund_hive).split(" ")[0]);return(r*a/n).toFixed(3)}catch(e){return console.error("Error in convertVestingSharesToHiveData:",e),"0"}},Gf=async t=>{try{const r=(await nu.database.call("get_feed_history",[])).current_median_history,n=parseFloat(r.base.split(" ")[0]),a=typeof t=="string"?parseFloat(t):t;return(n*a).toFixed(2)}catch(e){return console.error("Error in convertHivetoUSDData:",e),"0"}},Yc=Rc.create(t=>({walletData:null,isLoading:!1,error:null,setWalletData:e=>t({walletData:e}),clearWalletData:()=>t({walletData:null,error:null}),fetchWalletData:async e=>{t({isLoading:!0,error:null});try{const r=await Hf(e),n=x=>"error"in x;if(!r||n(r))throw new Error(n(r)?r.error:"Account not found");const a=typeof r.vesting_shares=="string"?r.vesting_shares:"0.000000 VESTS",s=typeof r.balance=="string"?r.balance:r.balance.toString(),o=typeof r.hbd_balance=="string"?r.hbd_balance:r.hbd_balance.toString(),c=typeof r.savings_balance=="string"?r.savings_balance:r.savings_balance.toString(),u=typeof r.savings_hbd_balance=="string"?r.savings_hbd_balance:r.savings_hbd_balance.toString(),f=await Wf(a),l=parseFloat(s.split(" ")[0]||"0"),h=parseFloat(f),d=(l+h).toFixed(3),m=await Gf(d),b={balance:s,hbd_balance:o,savings_balance:c,savings_hbd_balance:u,hive_power:`${f} HP`,estimated_value:`$${m}`};return t({walletData:b}),b}catch(r){const n=r instanceof Error?r.message:"Failed to fetch wallet data";console.error("Wallet fetch error:",n);const a={balance:"0.000 HIVE",hbd_balance:"0.000 HBD",savings_balance:"0.000 HIVE",savings_hbd_balance:"0.000 HBD",hive_power:"0 HP",estimated_value:"$0.00",error:n};return t({walletData:a,error:n}),a}finally{t({isLoading:!1})}}})),Jf=({username:t,className:e=""})=>{const{walletData:r,fetchWalletData:n,isLoading:a,error:s}=Yc();T.useEffect(()=>{t&&n(t)},[t,n]);const o=({label:c,value:u,icon:f,colorClass:l="bg-primary/10"})=>i.jsxs("div",{className:"flex items-center justify-between p-4 rounded-lg bg-card border border-border shadow-sm mb-3 transition-all duration-200 hover:shadow-md",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[f&&i.jsx("div",{className:`p-2 rounded-full flex items-center justify-center ${l} text-primary`,children:f}),i.jsx("span",{className:"font-semibold text-card-foreground",children:c})]}),i.jsx("span",{className:"font-medium text-muted-foreground",children:u??"-"})]});return i.jsx("div",{className:`min-h-screen bg-gradient-elegant p-4 transition-all duration-300 ${e}`,children:i.jsxs("div",{className:"max-w-md mx-auto",children:[i.jsxs("div",{className:"flex flex-col items-center p-6 mb-6 rounded-xl bg-card border border-border shadow-elegant",children:[t&&i.jsx("img",{src:`https://images.hive.blog/u/${t}/avatar`,alt:`${t} avatar`,className:"w-20 h-20 rounded-full border-4 border-primary/20 mb-3 transition-transform hover:scale-105",onError:c=>{c.target.src=`https://ui-avatars.com/api/?name=${t}&background=random`}}),i.jsx("div",{className:"text-lg font-bold text-card-foreground",children:t}),i.jsx("div",{className:"text-sm text-muted-foreground",children:"Hive Wallet Overview"})]}),i.jsxs("div",{className:"text-center rounded-xl bg-gradient-primary shadow-glow p-6 mb-6 transition-all duration-300 hover:shadow-elegant",children:[i.jsx("div",{className:"text-sm font-semibold text-primary-foreground/80",children:"Estimated Value"}),i.jsx("div",{className:"text-3xl font-bold mt-2 text-primary-foreground",children:a?i.jsxs("div",{className:"flex items-center justify-center gap-2",children:[i.jsx("div",{className:"w-6 h-6 border-2 border-primary-foreground/30 border-t-primary-foreground rounded-full animate-spin"}),"Loading..."]}):(r==null?void 0:r.estimated_value)??"-"})]}),s&&i.jsxs("div",{className:"flex items-center p-3 rounded-lg bg-destructive/10 border border-destructive/20 text-destructive mb-4",children:[i.jsx(Vf,{className:"mr-2"}),i.jsx("span",{children:s})]}),i.jsx(o,{label:"Balance",value:r==null?void 0:r.balance,icon:i.jsx(zf,{}),colorClass:"bg-blue-500/10"}),i.jsx(o,{label:"HBD Balance",value:r==null?void 0:r.hbd_balance,icon:i.jsx(qf,{}),colorClass:"bg-green-500/10"}),i.jsx(o,{label:"Savings Balance",value:r==null?void 0:r.savings_balance,icon:i.jsx(Uf,{}),colorClass:"bg-yellow-500/10"}),i.jsx(o,{label:"Savings HBD Balance",value:r==null?void 0:r.savings_hbd_balance,icon:i.jsx(Bf,{}),colorClass:"bg-purple-500/10"}),i.jsx(o,{label:"Hive Power",value:r==null?void 0:r.hive_power,icon:i.jsx(Rf,{}),colorClass:"bg-orange-500/10"})]})})};var Zc={},ua={},Dn={},au={exports:{}};const Xc=()=>{const t=Error.prepareStackTrace;Error.prepareStackTrace=(r,n)=>n;const e=new Error().stack.slice(1);return Error.prepareStackTrace=t,e};au.exports=Xc;au.exports.default=Xc;var Yf=au.exports,ti={};Object.defineProperty(ti,"__esModule",{value:!0});ti.inferLabel=void 0;const Zf=()=>{};ti.inferLabel=Zf;var co={},Oo={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});const r=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function n(p){return r.includes(p)}const a=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Blob","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","FormData","URLSearchParams","HTMLElement",...r];function s(p){return a.includes(p)}const o=["null","undefined","string","number","bigint","boolean","symbol"];function c(p){return o.includes(p)}function u(p){return N=>typeof N===p}const{toString:f}=Object.prototype,l=p=>{const N=f.call(p).slice(8,-1);if(/HTML\w+Element/.test(N)&&d.domElement(p))return"HTMLElement";if(s(N))return N},h=p=>N=>l(N)===p;function d(p){if(p===null)return"null";switch(typeof p){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"boolean":return"boolean";case"function":return"Function";case"bigint":return"bigint";case"symbol":return"symbol"}if(d.observable(p))return"Observable";if(d.array(p))return"Array";if(d.buffer(p))return"Buffer";const N=l(p);if(N)return N;if(p instanceof String||p instanceof Boolean||p instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}d.undefined=u("undefined"),d.string=u("string");const m=u("number");d.number=p=>m(p)&&!d.nan(p),d.bigint=u("bigint"),d.function_=u("function"),d.null_=p=>p===null,d.class_=p=>d.function_(p)&&p.toString().startsWith("class "),d.boolean=p=>p===!0||p===!1,d.symbol=u("symbol"),d.numericString=p=>d.string(p)&&!d.emptyStringOrWhitespace(p)&&!Number.isNaN(Number(p)),d.array=(p,N)=>Array.isArray(p)?d.function_(N)?p.every(N):!0:!1,d.buffer=p=>{var N,A,V,z;return(z=(V=(A=(N=p)===null||N===void 0?void 0:N.constructor)===null||A===void 0?void 0:A.isBuffer)===null||V===void 0?void 0:V.call(A,p))!==null&&z!==void 0?z:!1},d.blob=p=>h("Blob")(p),d.nullOrUndefined=p=>d.null_(p)||d.undefined(p),d.object=p=>!d.null_(p)&&(typeof p=="object"||d.function_(p)),d.iterable=p=>{var N;return d.function_((N=p)===null||N===void 0?void 0:N[Symbol.iterator])},d.asyncIterable=p=>{var N;return d.function_((N=p)===null||N===void 0?void 0:N[Symbol.asyncIterator])},d.generator=p=>{var N,A;return d.iterable(p)&&d.function_((N=p)===null||N===void 0?void 0:N.next)&&d.function_((A=p)===null||A===void 0?void 0:A.throw)},d.asyncGenerator=p=>d.asyncIterable(p)&&d.function_(p.next)&&d.function_(p.throw),d.nativePromise=p=>h("Promise")(p);const b=p=>{var N,A;return d.function_((N=p)===null||N===void 0?void 0:N.then)&&d.function_((A=p)===null||A===void 0?void 0:A.catch)};d.promise=p=>d.nativePromise(p)||b(p),d.generatorFunction=h("GeneratorFunction"),d.asyncGeneratorFunction=p=>l(p)==="AsyncGeneratorFunction",d.asyncFunction=p=>l(p)==="AsyncFunction",d.boundFunction=p=>d.function_(p)&&!p.hasOwnProperty("prototype"),d.regExp=h("RegExp"),d.date=h("Date"),d.error=h("Error"),d.map=p=>h("Map")(p),d.set=p=>h("Set")(p),d.weakMap=p=>h("WeakMap")(p),d.weakSet=p=>h("WeakSet")(p),d.int8Array=h("Int8Array"),d.uint8Array=h("Uint8Array"),d.uint8ClampedArray=h("Uint8ClampedArray"),d.int16Array=h("Int16Array"),d.uint16Array=h("Uint16Array"),d.int32Array=h("Int32Array"),d.uint32Array=h("Uint32Array"),d.float32Array=h("Float32Array"),d.float64Array=h("Float64Array"),d.bigInt64Array=h("BigInt64Array"),d.bigUint64Array=h("BigUint64Array"),d.arrayBuffer=h("ArrayBuffer"),d.sharedArrayBuffer=h("SharedArrayBuffer"),d.dataView=h("DataView"),d.enumCase=(p,N)=>Object.values(N).includes(p),d.directInstanceOf=(p,N)=>Object.getPrototypeOf(p)===N.prototype,d.urlInstance=p=>h("URL")(p),d.urlString=p=>{if(!d.string(p))return!1;try{return new URL(p),!0}catch{return!1}},d.truthy=p=>!!p,d.falsy=p=>!p,d.nan=p=>Number.isNaN(p),d.primitive=p=>d.null_(p)||c(typeof p),d.integer=p=>Number.isInteger(p),d.safeInteger=p=>Number.isSafeInteger(p),d.plainObject=p=>{if(f.call(p)!=="[object Object]")return!1;const N=Object.getPrototypeOf(p);return N===null||N===Object.getPrototypeOf({})},d.typedArray=p=>n(l(p));const x=p=>d.safeInteger(p)&&p>=0;d.arrayLike=p=>!d.nullOrUndefined(p)&&!d.function_(p)&&x(p.length),d.inRange=(p,N)=>{if(d.number(N))return p>=Math.min(0,N)&&p<=Math.max(N,0);if(d.array(N)&&N.length===2)return p>=Math.min(...N)&&p<=Math.max(...N);throw new TypeError(`Invalid range: ${JSON.stringify(N)}`)};const y=1,g=["innerHTML","ownerDocument","style","attributes","nodeValue"];d.domElement=p=>d.object(p)&&p.nodeType===y&&d.string(p.nodeName)&&!d.plainObject(p)&&g.every(N=>N in p),d.observable=p=>{var N,A,V,z;return p?p===((A=(N=p)[Symbol.observable])===null||A===void 0?void 0:A.call(N))||p===((z=(V=p)["@@observable"])===null||z===void 0?void 0:z.call(V)):!1},d.nodeStream=p=>d.object(p)&&d.function_(p.pipe)&&!d.observable(p),d.infinite=p=>p===1/0||p===-1/0;const E=p=>N=>d.integer(N)&&Math.abs(N%2)===p;d.evenInteger=E(0),d.oddInteger=E(1),d.emptyArray=p=>d.array(p)&&p.length===0,d.nonEmptyArray=p=>d.array(p)&&p.length>0,d.emptyString=p=>d.string(p)&&p.length===0;const S=p=>d.string(p)&&!/\S/.test(p);d.emptyStringOrWhitespace=p=>d.emptyString(p)||S(p),d.nonEmptyString=p=>d.string(p)&&p.length>0,d.nonEmptyStringAndNotWhitespace=p=>d.string(p)&&!d.emptyStringOrWhitespace(p),d.emptyObject=p=>d.object(p)&&!d.map(p)&&!d.set(p)&&Object.keys(p).length===0,d.nonEmptyObject=p=>d.object(p)&&!d.map(p)&&!d.set(p)&&Object.keys(p).length>0,d.emptySet=p=>d.set(p)&&p.size===0,d.nonEmptySet=p=>d.set(p)&&p.size>0,d.emptyMap=p=>d.map(p)&&p.size===0,d.nonEmptyMap=p=>d.map(p)&&p.size>0,d.propertyKey=p=>d.any([d.string,d.number,d.symbol],p),d.formData=p=>h("FormData")(p),d.urlSearchParams=p=>h("URLSearchParams")(p);const w=(p,N,A)=>{if(!d.function_(N))throw new TypeError(`Invalid predicate: ${JSON.stringify(N)}`);if(A.length===0)throw new TypeError("Invalid number of values");return p.call(A,N)};d.any=(p,...N)=>(d.array(p)?p:[p]).some(V=>w(Array.prototype.some,V,N)),d.all=(p,...N)=>w(Array.prototype.every,p,N);const k=(p,N,A,V={})=>{if(!p){const{multipleValues:z}=V,j=z?`received values of types ${[...new Set(A.map(L=>`\`${d(L)}\``))].join(", ")}`:`received value of type \`${d(A)}\``;throw new TypeError(`Expected value which is \`${N}\`, ${j}.`)}};e.assert={undefined:p=>k(d.undefined(p),"undefined",p),string:p=>k(d.string(p),"string",p),number:p=>k(d.number(p),"number",p),bigint:p=>k(d.bigint(p),"bigint",p),function_:p=>k(d.function_(p),"Function",p),null_:p=>k(d.null_(p),"null",p),class_:p=>k(d.class_(p),"Class",p),boolean:p=>k(d.boolean(p),"boolean",p),symbol:p=>k(d.symbol(p),"symbol",p),numericString:p=>k(d.numericString(p),"string with a number",p),array:(p,N)=>{k(d.array(p),"Array",p),N&&p.forEach(N)},buffer:p=>k(d.buffer(p),"Buffer",p),blob:p=>k(d.blob(p),"Blob",p),nullOrUndefined:p=>k(d.nullOrUndefined(p),"null or undefined",p),object:p=>k(d.object(p),"Object",p),iterable:p=>k(d.iterable(p),"Iterable",p),asyncIterable:p=>k(d.asyncIterable(p),"AsyncIterable",p),generator:p=>k(d.generator(p),"Generator",p),asyncGenerator:p=>k(d.asyncGenerator(p),"AsyncGenerator",p),nativePromise:p=>k(d.nativePromise(p),"native Promise",p),promise:p=>k(d.promise(p),"Promise",p),generatorFunction:p=>k(d.generatorFunction(p),"GeneratorFunction",p),asyncGeneratorFunction:p=>k(d.asyncGeneratorFunction(p),"AsyncGeneratorFunction",p),asyncFunction:p=>k(d.asyncFunction(p),"AsyncFunction",p),boundFunction:p=>k(d.boundFunction(p),"Function",p),regExp:p=>k(d.regExp(p),"RegExp",p),date:p=>k(d.date(p),"Date",p),error:p=>k(d.error(p),"Error",p),map:p=>k(d.map(p),"Map",p),set:p=>k(d.set(p),"Set",p),weakMap:p=>k(d.weakMap(p),"WeakMap",p),weakSet:p=>k(d.weakSet(p),"WeakSet",p),int8Array:p=>k(d.int8Array(p),"Int8Array",p),uint8Array:p=>k(d.uint8Array(p),"Uint8Array",p),uint8ClampedArray:p=>k(d.uint8ClampedArray(p),"Uint8ClampedArray",p),int16Array:p=>k(d.int16Array(p),"Int16Array",p),uint16Array:p=>k(d.uint16Array(p),"Uint16Array",p),int32Array:p=>k(d.int32Array(p),"Int32Array",p),uint32Array:p=>k(d.uint32Array(p),"Uint32Array",p),float32Array:p=>k(d.float32Array(p),"Float32Array",p),float64Array:p=>k(d.float64Array(p),"Float64Array",p),bigInt64Array:p=>k(d.bigInt64Array(p),"BigInt64Array",p),bigUint64Array:p=>k(d.bigUint64Array(p),"BigUint64Array",p),arrayBuffer:p=>k(d.arrayBuffer(p),"ArrayBuffer",p),sharedArrayBuffer:p=>k(d.sharedArrayBuffer(p),"SharedArrayBuffer",p),dataView:p=>k(d.dataView(p),"DataView",p),enumCase:(p,N)=>k(d.enumCase(p,N),"EnumCase",p),urlInstance:p=>k(d.urlInstance(p),"URL",p),urlString:p=>k(d.urlString(p),"string with a URL",p),truthy:p=>k(d.truthy(p),"truthy",p),falsy:p=>k(d.falsy(p),"falsy",p),nan:p=>k(d.nan(p),"NaN",p),primitive:p=>k(d.primitive(p),"primitive",p),integer:p=>k(d.integer(p),"integer",p),safeInteger:p=>k(d.safeInteger(p),"integer",p),plainObject:p=>k(d.plainObject(p),"plain object",p),typedArray:p=>k(d.typedArray(p),"TypedArray",p),arrayLike:p=>k(d.arrayLike(p),"array-like",p),domElement:p=>k(d.domElement(p),"HTMLElement",p),observable:p=>k(d.observable(p),"Observable",p),nodeStream:p=>k(d.nodeStream(p),"Node.js Stream",p),infinite:p=>k(d.infinite(p),"infinite number",p),emptyArray:p=>k(d.emptyArray(p),"empty array",p),nonEmptyArray:p=>k(d.nonEmptyArray(p),"non-empty array",p),emptyString:p=>k(d.emptyString(p),"empty string",p),emptyStringOrWhitespace:p=>k(d.emptyStringOrWhitespace(p),"empty string or whitespace",p),nonEmptyString:p=>k(d.nonEmptyString(p),"non-empty string",p),nonEmptyStringAndNotWhitespace:p=>k(d.nonEmptyStringAndNotWhitespace(p),"non-empty string and not whitespace",p),emptyObject:p=>k(d.emptyObject(p),"empty object",p),nonEmptyObject:p=>k(d.nonEmptyObject(p),"non-empty object",p),emptySet:p=>k(d.emptySet(p),"empty set",p),nonEmptySet:p=>k(d.nonEmptySet(p),"non-empty set",p),emptyMap:p=>k(d.emptyMap(p),"empty map",p),nonEmptyMap:p=>k(d.nonEmptyMap(p),"non-empty map",p),propertyKey:p=>k(d.propertyKey(p),"PropertyKey",p),formData:p=>k(d.formData(p),"FormData",p),urlSearchParams:p=>k(d.urlSearchParams(p),"URLSearchParams",p),evenInteger:p=>k(d.evenInteger(p),"even integer",p),oddInteger:p=>k(d.oddInteger(p),"odd integer",p),directInstanceOf:(p,N)=>k(d.directInstanceOf(p,N),"T",p),inRange:(p,N)=>k(d.inRange(p,N),"in range",p),any:(p,...N)=>k(d.any(p,...N),"predicate returns truthy for any value",N,{multipleValues:!0}),all:(p,...N)=>k(d.all(p,...N),"predicate returns truthy for all values",N,{multipleValues:!0})},Object.defineProperties(d,{class:{value:d.class_},function:{value:d.function_},null:{value:d.null_}}),Object.defineProperties(e.assert,{class:{value:e.assert.class_},function:{value:e.assert.function_},null:{value:e.assert.null_}}),e.default=d,t.exports=d,t.exports.default=d,t.exports.assert=e.assert})(Oo,Oo.exports);var Tn=Oo.exports,Cn={},ri={};Object.defineProperty(ri,"__esModule",{value:!0});ri.generateStackTrace=void 0;const Xf=()=>new RangeError("INTERNAL_OW_ERROR").stack;ri.generateStackTrace=Xf;Object.defineProperty(Cn,"__esModule",{value:!0});Cn.ArgumentError=void 0;const Kf=ri,Qf=(t,e)=>`${t.name}: ${t.message}
81
- ${e}`;class eh extends Error{constructor(e,r,n=new Map){super(e),Object.defineProperty(this,"validationErrors",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name="ArgumentError",Error.captureStackTrace?Error.captureStackTrace(this,r):this.stack=Qf(this,(0,Kf.generateStackTrace)()),this.validationErrors=n}}Cn.ArgumentError=eh;var Zn={},su={};Object.defineProperty(su,"__esModule",{value:!0});su.default=()=>Math.random().toString(16).slice(2);var hl;function th(){if(hl)return Zn;hl=1,Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.not=void 0;const t=su,e=Le(),r=n=>{const a=n.addValidator;return n.addValidator=s=>{const{validator:o,message:c,negatedMessage:u}=s,f=(0,t.default)();return s.message=(l,h)=>u?u(l,h):c(l,f).replace(/ to /,"$&not ").replace(f,h),s.validator=l=>!o(l),n[e.validatorSymbol].push(s),n.addValidator=a,n},n};return Zn.not=r,Zn}var On={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.isPredicate=t.testSymbol=void 0,t.testSymbol=Symbol("test");const e=r=>!!r[t.testSymbol];t.isPredicate=e})(On);var Na={};Object.defineProperty(Na,"__esModule",{value:!0});Na.generateArgumentErrorMessage=void 0;const rh=(t,e=!1)=>{const r=[],n=[...t.entries()],a=n.some(([,s])=>s.size!==1);if(n.length===1){const[,s]=n[0];if(!e&&s.size===1){const[o]=s;return o}for(const o of s)r.push(`${e?" - ":""}${o}`);return r.join(`
88
+ `;try{const s=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:r,operationName:"TrendingTags"})});if(!s.ok)throw new Error(`GraphQL request failed: ${s.statusText}`);const o=await s.json();if(o.errors)throw new Error(`GraphQL error: ${o.errors.map(c=>c.message).join(", ")}`);return((a=(n=o.data)==null?void 0:n.trendingTags)==null?void 0:a.tags)||[]}catch(s){throw console.error("Failed to fetch trending tags:",s),s}}convertGQLItemsToThreeSpeakVideos(e){return e.map(r=>{var a,s,o,c,u,f,l,h,d,m,b,x,y,g;let n=null;try{typeof r.spkvideo=="string"?n=JSON.parse(r.spkvideo):n=r.spkvideo}catch(E){console.error("Error parsing spkvideo JSON",E)}return{title:r.title||"Untitled",owner:((a=r.author)==null?void 0:a.username)||"",permlink:r.permlink||"",created:new Date(r.created_at),category:r.tags&&r.tags.length>0?r.tags[0]:"general",duration:(n==null?void 0:n.duration)||((u=(c=(o=(s=r.json_metadata)==null?void 0:s.raw)==null?void 0:o.video)==null?void 0:c.info)==null?void 0:u.duration)||0,thumbnail:(n==null?void 0:n.thumbnail_url)||((d=(h=(l=(f=r.json_metadata)==null?void 0:f.raw)==null?void 0:l.video)==null?void 0:h.info)==null?void 0:d.thumbnail),numOfUpvotes:(m=r.stats)==null?void 0:m.num_votes,numOfComments:(b=r.stats)==null?void 0:b.num_comments,hiveValue:(x=r.stats)==null?void 0:x.total_hive_reward,active_votes:((g=(y=r.stats)==null?void 0:y.active_voters)==null?void 0:g.map(E=>({voter:E.voter,percent:E.percent,rshares:E.rshares,weight:E.weight})))||[]}})}async getContentStats(e,r){try{const n=await ds.call("condenser_api","get_content",[e,r]);return{numOfUpvotes:(n==null?void 0:n.net_votes)??0,numOfComments:(n==null?void 0:n.children)??0,hiveValue:n!=null&&n.pending_payout_value?parseFloat(n.pending_payout_value):0}}catch{return{numOfUpvotes:0,numOfComments:0,hiveValue:0}}}async getActiveVotes(e,r){try{return await ds.call("condenser_api","get_active_votes",[e,r])}catch(n){return console.error("Error calling get_active_votes:",n),[]}}async getCommentsList(e,r){try{const n=await ds.call("bridge","get_discussion",[e,r]);return(Array.isArray(n)?n:n&&typeof n=="object"?Object.values(n):[]).map(s=>{const o=s.depth;if(typeof o=="string"){const u=parseInt(o,10);s.depth=Number.isFinite(u)?u:0}else(typeof o!="number"||!Number.isFinite(o))&&(s.depth=s.depth??0);const c=s.json_metadata;try{if(c&&typeof c=="string"){const u=c.trim();(u.startsWith("{")&&u.endsWith("}")||u.startsWith("[")&&u.endsWith("]"))&&(s.json_metadata_parsed=JSON.parse(u))}else c&&typeof c=="object"&&(s.json_metadata_parsed=c)}catch{console.warn(`Skipped invalid json_metadata for ${s.author}/${s.permlink}`)}return s})}catch(n){return console.error("Error fetching comments list:",n),[]}}async getMyVideos(e){const r=`${cr.domain}/mobile/api/my-videos`,n=await fetch(r,{method:"GET",headers:{"Content-Type":"application/json",Authorization:e}});if(n.ok){const a=await n.json();return Array.isArray(a)?a:[]}else throw console.error("Failed to fetch my videos:",n.statusText),new Error(`Failed to fetch my videos: ${n.status}`)}async getRankedPosts(e="trending",r="",n="hive.blog",a=20,s,o){try{const c={sort:e,tag:r,observer:n,limit:a};return s&&o&&(c.start_author=s,c.start_permlink=o),await ds.call("bridge","get_ranked_posts",c)}catch(c){return console.error("Error fetching ranked posts:",c),[]}}}const et=new Tf,on=t=>t?t.startsWith("Qm")||t.startsWith("baf")?`https://ipfs-3speak.b-cdn.net/ipfs/${t}`:t.startsWith("http")?t:t.startsWith("/")?`https://3speak.tv${t}`:t:"/placeholder.svg",qc=({video:t,onVideoClick:e,onAuthorClick:r,isGrid:n=!1})=>{const[a,s]=C.useState({numOfUpvotes:t.numOfUpvotes,numOfComments:t.numOfComments,hiveValue:t.hiveValue});C.useEffect(()=>{if(a.numOfUpvotes===void 0&&t.numOfUpvotes===void 0){let u=!0;return(async()=>{try{const f=await et.getContentStats(t.author||"",t.permlink||"");u&&s(f)}catch(f){console.error("Error fetching content stats for VideoCard:",f)}})(),()=>{u=!1}}else t.numOfUpvotes!==void 0&&s({numOfUpvotes:t.numOfUpvotes,numOfComments:t.numOfComments||0,hiveValue:t.hiveValue||0})},[t.author,t.permlink,a.numOfUpvotes,t.numOfUpvotes,t.numOfComments,t.hiveValue]);const o=u=>{if(!u)return"00:00";const f=Math.floor(u),l=Math.floor(f/3600),h=Math.floor(f%3600/60),d=f%60,m=b=>b.toString().padStart(2,"0");return f<60?`00:${m(d)}`:l===0?`${m(h)}:${m(d)}`:`${m(l)}:${m(h)}:${m(d)}`},c=u=>u==null?"":u>=1e6?`${(u/1e6).toFixed(1)}M`:u>=1e3?`${(u/1e3).toFixed(1)}K`:u.toString();return i.jsxs("div",{className:"group bg-card border border-border rounded-xl overflow-hidden shadow-card hover:shadow-card-hover transition-all duration-200 hover:-translate-y-1 cursor-pointer",children:[i.jsxs("div",{className:"relative aspect-video bg-muted overflow-hidden",onClick:()=>e(t),children:[i.jsx("img",{src:on(t.thumbnail),alt:t.title,onError:u=>{u.target.src=`https://images.hive.blog/u/${t.author}/avatar`},className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"}),t.duration&&i.jsxs("div",{className:"absolute bottom-3 right-3 bg-black/80 text-white text-xs px-2 py-1 rounded-md flex items-center gap-1 backdrop-blur-sm",children:[i.jsx(q.Clock,{className:"w-3 h-3"}),o(t.duration)]}),i.jsx("div",{className:"absolute inset-0 flex items-center justify-center opacity-0 group-hover:opacity-100 transition-all duration-300 bg-black/20",children:i.jsx("div",{className:"bg-primary hover:bg-primary-hover rounded-full p-4 transform scale-75 group-hover:scale-100 transition-all duration-300 shadow-lg",children:i.jsx(q.Play,{className:"w-6 h-6 text-primary-foreground ml-0.5",fill:"currentColor"})})}),i.jsx("div",{className:"absolute inset-0 bg-gradient-overlay opacity-0 group-hover:opacity-30 transition-opacity duration-300"})]}),i.jsxs("div",{className:"p-4 space-y-3",children:[i.jsx("h3",{className:"font-semibold text-card-foreground line-clamp-2 group-hover:text-primary transition-colors cursor-pointer leading-tight",onClick:()=>e(t),children:t.title}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center gap-2 cursor-pointer hover:text-primary transition-colors group/author",onClick:()=>r(t.author),children:[i.jsx("img",{src:`https://images.hive.blog/u/${t.author}/avatar`,alt:t.author,className:"w-8 h-8 rounded-full object-cover border-2 border-border group-hover/author:border-primary transition-colors",onError:u=>{u.target.src="https://images.hive.blog/u/null/avatar"}}),i.jsxs("span",{className:"font-medium text-sm text-muted-foreground group-hover/author:text-primary transition-colors",children:["@",t.author]})]}),i.jsx("span",{className:"text-xs text-muted-foreground",children:si.formatDistanceToNow(t.created,{addSuffix:!0})})]}),i.jsxs("div",{className:"flex items-center justify-between text-sm",children:[i.jsxs("div",{className:"flex items-center gap-4",children:[a.numOfUpvotes!=null&&i.jsxs("div",{className:"flex items-center gap-1 text-muted-foreground hover:text-primary transition-colors cursor-pointer",children:[i.jsx(q.ThumbsUp,{className:"w-4 h-4"}),i.jsx("span",{children:c(a.numOfUpvotes)})]}),a.numOfComments!=null&&i.jsxs("div",{className:"flex items-center gap-1 text-muted-foreground hover:text-primary transition-colors cursor-pointer",children:[i.jsx(q.MessageCircle,{className:"w-4 h-4"}),i.jsx("span",{children:c(a.numOfComments)})]})]}),a.hiveValue!=null&&a.hiveValue>0&&i.jsxs("div",{className:"text-primary font-semibold",children:["$",a.hiveValue.toFixed(2)]})]}),t.category&&i.jsx("div",{className:"flex items-center gap-2",children:i.jsx("span",{className:"inline-block bg-primary/10 text-primary text-xs px-2 py-1 rounded-full font-medium",children:t.category})})]})]})};var Je=(t=>(t.HOME="home",t.TRENDING="trending",t.NEW_VIDEOS="newVideos",t.FIRST_UPLOADS="firstUploads",t.USER="user",t.COMMUNITY="community",t.RELATED="related",t.TAG_FEED="tag_feed",t.SEARCH="search",t))(Je||{});const cl=new Map,Uc=({title:t,author:e,permlink:r,createdAt:n,video:a,currentUser:s,isContentVoted:o=!1,description:c,onTapComment:u,onTapUpvote:f,onTapShare:l,onTapBookmark:h,onTapAuthor:d,onTapInfo:m})=>{const[b,x]=C.useState(a.numOfComments||0),[y,g]=C.useState(a.numOfUpvotes||0),[E,D]=C.useState(!1),[w,j]=C.useState(!1),[p,A]=C.useState(""),k=M=>{A(M),j(!0),setTimeout(()=>j(!1),3e3)},V=(M,O)=>`${M}:${O}`;C.useEffect(()=>{const M=V(e,r),O=cl.get(M);O?(x(O.comments),g(O.upvotes)):(async()=>{const R=await et.getContentStats(e,r);g(R.numOfUpvotes),x(R.numOfComments),cl.set(V(e,r),{comments:R.numOfComments,upvotes:R.numOfUpvotes})})()},[e,r]);const H=()=>{u?u(e,r):k("Comments feature coming soon!")},S=()=>{f?f(e,r):k("Upvote feature requires authentication!")},P=()=>{if(l)l(e,r);else{const M=`https://3speak.tv/user/${e}/${r}`;navigator.share?navigator.share({title:t,url:M}):(navigator.clipboard.writeText(M),k("Link copied to clipboard!"))}},I=()=>{h?h(e,r):(D(!E),k(E?"Removed from bookmarks":"Added to bookmarks"))},W=()=>d==null?void 0:d(e,r),_=()=>{m?m(e,r):k("Video details coming soon!")};return i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"p-6 bg-card border-b border-border",children:[i.jsx("h1",{className:"text-xl font-bold text-card-foreground mb-4 line-clamp-2",children:t}),i.jsxs("div",{className:"flex items-start gap-4",children:[i.jsx("button",{onClick:W,className:"flex-shrink-0 group",children:i.jsx("img",{src:`https://images.hive.blog/u/${e}/avatar`,alt:e,className:"w-12 h-12 rounded-full object-cover border-2 border-border group-hover:border-primary transition-all duration-200",onError:M=>{M.target.src=`https://ui-avatars.com/api/?name=${e}&background=random`}})}),i.jsxs("div",{className:"flex-1",children:[i.jsx("div",{className:"flex items-center justify-between mb-4",children:i.jsxs("div",{children:[i.jsxs("button",{onClick:W,className:"font-semibold text-card-foreground hover:text-primary transition-colors text-base",children:["@",e]}),i.jsxs("div",{className:"flex items-center gap-4 mt-1 text-sm text-muted-foreground",children:[a.views&&i.jsxs("div",{className:"flex items-center gap-1",children:[i.jsx(q.Eye,{className:"w-4 h-4"}),i.jsxs("span",{children:[a.views.toLocaleString()," views"]})]}),n&&i.jsx("span",{children:si.formatDistanceToNow(n,{addSuffix:!0})})]})]})}),i.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[i.jsxs("button",{type:"button",onClick:_,className:"inline-flex items-center gap-2 px-3 py-2 rounded-lg bg-muted text-muted-foreground hover:bg-primary/10 hover:text-primary transition-all duration-200","aria-label":"Show description",children:[i.jsx(q.Info,{className:"w-4 h-4"}),i.jsx("span",{className:"text-sm font-medium",children:"Info"})]}),i.jsxs("button",{type:"button",onClick:H,className:"inline-flex items-center gap-2 px-3 py-2 rounded-lg bg-muted text-muted-foreground hover:bg-primary/10 hover:text-primary transition-all duration-200","aria-label":"Show comments",children:[i.jsx(q.MessageCircle,{className:"w-4 h-4"}),i.jsx("span",{className:"text-sm font-medium",children:b})]}),i.jsxs("button",{type:"button",onClick:S,className:`inline-flex items-center gap-2 px-3 py-2 rounded-lg transition-all duration-200 ${o?"bg-primary/10 text-primary":"bg-muted text-muted-foreground hover:bg-primary/10 hover:text-primary"}`,"aria-label":"Show upvotes",children:[i.jsx(q.ThumbsUp,{className:`w-4 h-4 ${o?"fill-current":""}`}),i.jsx("span",{className:"text-sm font-medium",children:y})]}),i.jsxs("button",{type:"button",onClick:P,className:"inline-flex items-center gap-2 px-3 py-2 rounded-lg bg-muted text-muted-foreground hover:bg-secondary/10 hover:text-secondary transition-all duration-200","aria-label":"Share video",children:[i.jsx(q.Share2,{className:"w-4 h-4"}),i.jsx("span",{className:"text-sm font-medium",children:"Share"})]}),i.jsxs("button",{type:"button",onClick:I,className:`inline-flex items-center gap-2 px-3 py-2 rounded-lg transition-all duration-200 ${E?"bg-error/10 text-error":"bg-muted text-muted-foreground hover:bg-error/10 hover:text-error"}`,"aria-label":"Bookmark video",children:[i.jsx(q.Heart,{className:`w-4 h-4 ${E?"fill-current":""}`}),i.jsx("span",{className:"text-sm font-medium",children:E?"Saved":"Save"})]})]}),(a.hiveValue||a.category)&&i.jsxs("div",{className:"flex items-center gap-4 mt-4 pt-4 border-t border-border",children:[a.hiveValue&&a.hiveValue>0&&i.jsx("div",{className:"flex items-center gap-1 text-success font-semibold",children:i.jsxs("span",{children:["$",a.hiveValue.toFixed(2)," earned"]})}),a.category&&i.jsxs("div",{className:"flex items-center gap-1",children:[i.jsx(q.Users,{className:"w-4 h-4 text-muted-foreground"}),i.jsx("span",{className:"text-sm text-muted-foreground capitalize",children:a.category})]})]})]})]})]}),w&&i.jsx("div",{className:"fixed bottom-4 right-4 z-50 animate-slide-up",children:i.jsx("div",{className:"bg-card border border-border text-card-foreground rounded-lg px-4 py-3 shadow-lg max-w-sm",children:i.jsx("div",{className:"font-medium",children:p})})})]})},fs=new Map,oi=({feedType:t,username:e,communityId:r,tag:n,onVideoClick:a,onAuthorClick:s})=>{const[o,c]=C.useState([]),[u,f]=C.useState(!0),[l,h]=C.useState(!1),[d,m]=C.useState(null),[b,x]=C.useState(!0),[y,g]=C.useState(0),E=C.useMemo(()=>{switch(t){case Je.USER:return`user:${e||""}`;case Je.COMMUNITY:return`community:${r||""}`;case Je.TAG_FEED:return`tag:${n||""}`;case Je.SEARCH:return`search:${n||""}`;default:return t}},[t,e,r,n]),D=C.useCallback(async k=>{var V,H,S,P,I,W,_,M,O,G,R,K;if((V=k.author)!=null&&V.username){if(!k.permlink)return null;let X=null;try{typeof k.spkvideo=="string"?X=JSON.parse(k.spkvideo):X=k.spkvideo}catch(L){console.error("Error parsing spkvideo JSON",L)}const ae=on(X==null?void 0:X.thumbnail_url)||on((I=(P=(S=(H=k.json_metadata)==null?void 0:H.raw)==null?void 0:S.video)==null?void 0:P.info)==null?void 0:I.thumbnail),ke=(X==null?void 0:X.duration)||((O=(M=(_=(W=k.json_metadata)==null?void 0:W.raw)==null?void 0:_.video)==null?void 0:M.info)==null?void 0:O.duration)||0;return{title:k.title||"Untitled",author:k.author.username,permlink:k.permlink,created:new Date(k.created_at),category:k.tags&&k.tags.length>0?k.tags[0]:"general",duration:ke,thumbnail:ae,numOfUpvotes:((G=k.stats)==null?void 0:G.num_votes)||k.numOfUpvotes,numOfComments:((R=k.stats)==null?void 0:R.num_comments)||k.numOfComments,hiveValue:((K=k.stats)==null?void 0:K.total_hive_reward)||k.hiveValue}}return k.owner?{title:k.title||"Untitled",author:k.owner,permlink:k.permlink||"",created:new Date(k.created||Date.now()),category:k.category||"general",duration:k.duration,thumbnail:on(k.thumbnail),numOfUpvotes:k.numOfUpvotes,numOfComments:k.numOfComments,hiveValue:k.hiveValue}:null},[]),w=C.useCallback(async(k,V=!1)=>{try{let H=[];switch(t){case Je.SEARCH:n&&(H=await et.getSearchFeed(n,k));break;case Je.TAG_FEED:n&&(H=await et.getTaggedVideos(n,k));break;case Je.HOME:H=await et.getHomeVideos(k);break;case Je.TRENDING:H=await et.getTrendingVideos(k);break;case Je.NEW_VIDEOS:H=await et.getNewVideos(k);break;case Je.FIRST_UPLOADS:H=await et.getFirstUploadsVideos(k);break;case Je.USER:e&&(H=await et.getUserVideos(e,k));break;case Je.COMMUNITY:r&&(H=await et.getCommunityVideos(r,k));break;case Je.RELATED:e&&(H=await et.getRelatedVideos(e,k));break}const P=(await Promise.all(H.map(D))).filter(I=>I!==null);V?(c(P),fs.set(E,P)):c(I=>{const W=[...I,...P];return fs.set(E,W),W}),x(H.length>=20),g(k+H.length),m(null)}catch(H){m(H instanceof Error?H.message:"Failed to load videos")}},[t,e,r,n,E,D]);C.useEffect(()=>{(async()=>{f(!0),c([]),g(0);const V=fs.get(E);V!=null&&V.length&&(c(V),f(!1)),await w(0,!0),f(!1)})()},[E,w]);const j=C.useCallback(async()=>{l||!b||(h(!0),await w(y),h(!1))},[l,b,y,w]),p=C.useCallback(async()=>{fs.delete(E),f(!0),g(0),await w(0,!0),f(!1)},[E,w]);C.useEffect(()=>{const k=()=>{window.innerHeight+document.documentElement.scrollTop>=document.documentElement.offsetHeight-1e3&&j()};return window.addEventListener("scroll",k),()=>window.removeEventListener("scroll",k)},[j]);const A=()=>i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:Array.from({length:8}).map((k,V)=>i.jsxs("div",{className:"bg-card border border-border rounded-xl overflow-hidden animate-pulse",children:[i.jsx("div",{className:"aspect-video bg-muted"}),i.jsxs("div",{className:"p-4 space-y-3",children:[i.jsx("div",{className:"h-4 bg-muted rounded w-3/4"}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("div",{className:"w-8 h-8 bg-muted rounded-full"}),i.jsx("div",{className:"h-3 bg-muted rounded w-20"})]}),i.jsxs("div",{className:"flex justify-between",children:[i.jsx("div",{className:"h-3 bg-muted rounded w-16"}),i.jsx("div",{className:"h-3 bg-muted rounded w-12"})]})]})]},V))});return u&&o.length===0?i.jsx(A,{}):d&&o.length===0?i.jsx("div",{className:"flex flex-col items-center justify-center min-h-[400px] space-y-4",children:i.jsxs("div",{className:"text-center",children:[i.jsx("h3",{className:"text-lg font-semibold text-card-foreground mb-2",children:"Failed to load videos"}),i.jsx("p",{className:"text-muted-foreground mb-4",children:d}),i.jsxs("button",{onClick:p,className:"inline-flex items-center justify-center rounded-md border border-border bg-card px-4 py-2 text-sm font-medium text-card-foreground shadow-sm transition-colors hover:bg-card-hover focus:outline-none focus:ring-2 focus:ring-primary",children:[i.jsx(q.RefreshCw,{className:"w-4 h-4 mr-2"}),"Try Again"]})]})}):o.length===0?i.jsx("div",{className:"flex flex-col items-center justify-center min-h-[400px] space-y-4",children:i.jsxs("div",{className:"text-center",children:[i.jsx("h3",{className:"text-lg font-semibold text-card-foreground mb-2",children:"No videos found"}),i.jsx("p",{className:"text-muted-foreground mb-4",children:"Check back later for new content"}),i.jsxs("button",{onClick:p,className:"inline-flex items-center justify-center rounded-md border border-border bg-card px-4 py-2 text-sm font-medium text-card-foreground shadow-sm transition-colors hover:bg-card-hover focus:outline-none focus:ring-2 focus:ring-primary",children:[i.jsx(q.RefreshCw,{className:"w-4 h-4 mr-2"}),"Refresh"]})]})}):i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{className:"flex justify-between items-center",children:[i.jsxs("h2",{className:"text-2xl font-bold text-card-foreground capitalize",children:[t.replace(/([A-Z])/g," $1").toLowerCase()," Videos"]}),i.jsxs("button",{onClick:p,className:"inline-flex items-center justify-center rounded-md border border-border bg-card px-3 py-2 text-sm font-medium text-card-foreground shadow-sm transition-colors hover:bg-card-hover focus:outline-none focus:ring-2 focus:ring-primary",children:[i.jsx(q.RefreshCw,{className:"w-4 h-4 mr-2"}),"Refresh"]})]}),i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:o.map((k,V)=>i.jsx(qc,{video:k,onVideoClick:a,onAuthorClick:s,isGrid:!0},`${k.author}-${k.permlink}-${V}`))}),b&&i.jsx("div",{className:"flex justify-center pt-8",children:l?i.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[i.jsx(q.Loader2,{className:"w-4 h-4 animate-spin"}),"Loading more videos..."]}):i.jsx("button",{onClick:j,className:"inline-flex items-center justify-center rounded-md border border-border bg-card px-4 py-2 text-sm font-medium text-card-foreground shadow-sm transition-colors hover:bg-card-hover focus:outline-none focus:ring-2 focus:ring-primary",children:"Load More Videos"})})]})},ui=({isOpen:t,onClose:e,title:r,children:n,maxWidth:a="max-w-2xl"})=>t?i.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[i.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:e}),i.jsxs("div",{className:`relative bg-card border border-border rounded-xl shadow-xl w-full mx-4 ${a} max-h-[90vh] overflow-hidden animate-scale-in`,children:[i.jsxs("div",{className:"flex items-center justify-between p-6 border-b border-border",children:[i.jsx("h2",{className:"text-xl font-bold text-card-foreground",children:r}),i.jsx("button",{onClick:e,className:"p-2 rounded-lg hover:bg-muted transition-colors",children:i.jsx(q.X,{className:"w-5 h-5 text-muted-foreground"})})]}),i.jsx("div",{className:"overflow-y-auto max-h-[calc(90vh-80px)] custom-scrollbar",children:n})]})]}):null,zc=({author:t,permlink:e,currentUser:r,onClose:n})=>{const[a,s]=C.useState([]),[o,c]=C.useState(!0),[u,f]=C.useState(null),[l,h]=C.useState(""),[d,m]=C.useState(!1);C.useEffect(()=>{(async()=>{try{c(!0);const E=(await et.getCommentsList(t,e)).filter(D=>D.depth&&D.depth>0).sort((D,w)=>new Date(w.created||0).getTime()-new Date(D.created||0).getTime());s(E)}catch(g){f(g instanceof Error?g.message:"Failed to load comments")}finally{c(!1)}})()},[t,e]);const b=async()=>{if(!(!l.trim()||!r))try{m(!0),console.log("Would submit comment:",l),h("")}catch(y){console.error("Failed to submit comment:",y)}finally{m(!1)}},x=y=>{const g=Math.min(y.depth||0,5);return i.jsx("div",{className:`border-l-2 border-border ${g>0?`ml-${g*4}`:""}`,children:i.jsxs("div",{className:"p-4 bg-muted/30 rounded-r-lg",children:[i.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[i.jsx("img",{src:`https://images.hive.blog/u/${y.author}/avatar`,alt:y.author,className:"w-6 h-6 rounded-full object-cover border border-border",onError:E=>{E.target.src=`https://ui-avatars.com/api/?name=${y.author}&background=random`}}),i.jsxs("span",{className:"font-medium text-card-foreground text-sm",children:["@",y.author]}),y.created&&i.jsx("span",{className:"text-xs text-muted-foreground",children:si.formatDistanceToNow(new Date(y.created),{addSuffix:!0})})]}),i.jsx("div",{className:"text-sm text-card-foreground leading-relaxed",children:y.body||"No content"}),y.net_votes&&y.net_votes>0&&i.jsx("div",{className:"flex items-center gap-1 mt-2",children:i.jsxs("span",{className:"text-xs text-muted-foreground",children:[y.net_votes," votes"]})})]})},`${y.author}-${y.permlink}`)};return i.jsx(ui,{isOpen:!0,onClose:n,title:`Comments (${a.length})`,maxWidth:"max-w-2xl",children:i.jsxs("div",{className:"p-6",children:[r&&i.jsx("div",{className:"mb-6 p-4 bg-muted/50 rounded-lg",children:i.jsxs("div",{className:"flex items-start gap-3",children:[i.jsx("img",{src:`https://images.hive.blog/u/${r}/avatar`,alt:r,className:"w-8 h-8 rounded-full object-cover border border-border"}),i.jsxs("div",{className:"flex-1",children:[i.jsx("textarea",{value:l,onChange:y=>h(y.target.value),placeholder:"Write a comment...",className:"w-full p-3 bg-background border border-border rounded-lg resize-none focus:outline-none focus:ring-2 focus:ring-primary",rows:3}),i.jsx("div",{className:"flex justify-end mt-2",children:i.jsxs("button",{onClick:b,disabled:!l.trim()||d,className:"inline-flex items-center gap-2 px-4 py-2 bg-primary text-primary-foreground rounded-lg hover:bg-primary-hover disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:[d?i.jsx(q.Loader2,{className:"w-4 h-4 animate-spin"}):i.jsx(q.Send,{className:"w-4 h-4"}),i.jsx("span",{className:"text-sm font-medium",children:d?"Posting...":"Post Comment"})]})})]})]})}),o?i.jsxs("div",{className:"flex items-center justify-center py-8",children:[i.jsx(q.Loader2,{className:"w-6 h-6 animate-spin text-primary"}),i.jsx("span",{className:"ml-2 text-muted-foreground",children:"Loading comments..."})]}):u?i.jsx("div",{className:"text-center py-8",children:i.jsx("p",{className:"text-error",children:u})}):a.length===0?i.jsxs("div",{className:"text-center py-8",children:[i.jsx(q.MessageCircle,{className:"w-12 h-12 text-muted-foreground mx-auto mb-2"}),i.jsx("p",{className:"text-muted-foreground",children:"No comments yet"}),i.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Be the first to share your thoughts!"})]}):i.jsx("div",{className:"space-y-4",children:a.map(x)})]})})},Hc=({author:t,permlink:e,onClose:r})=>{const[n,a]=C.useState([]),[s,o]=C.useState(!0),[c,u]=C.useState(null);C.useEffect(()=>{(async()=>{try{o(!0);const d=(await et.getActiveVotes(t,e)).sort((m,b)=>b.rshares-m.rshares);a(d)}catch(h){u(h instanceof Error?h.message:"Failed to load votes")}finally{o(!1)}})()},[t,e]);const f=l=>l>=1e9?`${(l/1e9).toFixed(1)}B`:l>=1e6?`${(l/1e6).toFixed(1)}M`:l>=1e3?`${(l/1e3).toFixed(1)}K`:l.toString();return i.jsx(ui,{isOpen:!0,onClose:r,title:`Votes (${n.length})`,maxWidth:"max-w-md",children:i.jsx("div",{className:"p-6",children:s?i.jsxs("div",{className:"flex items-center justify-center py-8",children:[i.jsx(q.Loader2,{className:"w-6 h-6 animate-spin text-primary"}),i.jsx("span",{className:"ml-2 text-muted-foreground",children:"Loading votes..."})]}):c?i.jsx("div",{className:"text-center py-8",children:i.jsx("p",{className:"text-error",children:c})}):n.length===0?i.jsxs("div",{className:"text-center py-8",children:[i.jsx(q.ThumbsUp,{className:"w-12 h-12 text-muted-foreground mx-auto mb-2"}),i.jsx("p",{className:"text-muted-foreground",children:"No votes yet"})]}):i.jsx("div",{className:"space-y-3",children:n.map((l,h)=>i.jsxs("div",{className:"flex items-center justify-between p-3 rounded-lg bg-muted/50 hover:bg-muted transition-colors",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("img",{src:`https://images.hive.blog/u/${l.voter}/avatar`,alt:l.voter,className:"w-8 h-8 rounded-full object-cover border border-border",onError:d=>{d.target.src=`https://ui-avatars.com/api/?name=${l.voter}&background=random`}}),i.jsxs("div",{children:[i.jsxs("div",{className:"font-medium text-card-foreground",children:["@",l.voter]}),l.time&&i.jsx("div",{className:"text-sm text-muted-foreground",children:new Date(l.time).toLocaleDateString()})]})]}),i.jsxs("div",{className:"text-right",children:[l.percent&&i.jsxs("div",{className:"text-sm font-medium text-primary",children:[(l.percent/100).toFixed(1),"%"]}),i.jsxs("div",{className:"text-xs text-muted-foreground",children:[f(l.rshares)," rshares"]})]})]},`${l.voter}-${h}`))})})})},Wc=({author:t,permlink:e,content:r,onClose:n})=>i.jsx(ui,{isOpen:!0,onClose:n,title:"Video Description",maxWidth:"max-w-2xl",children:i.jsxs("div",{className:"p-6",children:[r?i.jsx("div",{className:"prose prose-sm max-w-none",children:i.jsx("div",{className:"bg-muted/30 rounded-lg p-4",children:i.jsx("pre",{className:"whitespace-pre-wrap text-sm text-card-foreground font-sans leading-relaxed",children:r})})}):i.jsxs("div",{className:"text-center py-8",children:[i.jsx(q.FileText,{className:"w-12 h-12 text-muted-foreground mx-auto mb-2"}),i.jsx("p",{className:"text-muted-foreground",children:"No description available"}),i.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"This video doesn't have a description yet."})]}),i.jsx("div",{className:"mt-6 pt-4 border-t border-border",children:i.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[i.jsxs("span",{children:["By @",t]}),i.jsx("span",{children:"•"}),i.jsxs("span",{children:["/",e]})]})})]})}),Cf=({username:t,permlink:e,onAuthorClick:r,onVideoClick:n,onTagClick:a,onBack:s,onCommentsModal:o,onUpvotesModal:c,onDescriptionModal:u,onVideoInfo:f,onShare:l,onBookmark:h}={})=>{const d=t,m=e,[b,x]=C.useState(null),[y,g]=C.useState(!0),[E,D]=C.useState(null),[w,j]=C.useState(!1),[p,A]=C.useState(null),[k,V]=C.useState(!1),[H,S]=C.useState(!1),[P,I]=C.useState(!1),[W,_]=C.useState(!1),M=C.useRef(null),O=C.useRef(null),G=C.useRef(null);C.useEffect(()=>{(async()=>{if(!(!d||!m))try{g(!0),D(null);const B=await et.getVideoDetails(d,m);x(B),j(!1),A(null)}catch(B){D(B instanceof Error?B.message:"Failed to load video")}finally{g(!1)}})()},[d,m]);const R=L=>L?L.startsWith("ipfs://")?`https://ipfs-3speak.b-cdn.net/ipfs/${L.replace("ipfs://","").split("/")[0]}/manifest.m3u8`:L:"";C.useEffect(()=>((async()=>{const B=b==null?void 0:b.video_v2;if(!w||!B||!M.current)return;const re=M.current,se=R(B);O.current&&(O.current.destroy(),O.current=null),re.src="",re.load();try{let ne=!1;const Ee=()=>{ne||(ne=!0,re.play().then(()=>A(null)).catch(ve=>A(`Playback failed: ${ve.message}`)))};if(Sn.isSupported()){const ve=new Sn({debug:!1,enableWorker:!1,lowLatencyMode:!1,backBufferLength:90,maxLoadingDelay:4,maxBufferLength:30,maxMaxBufferLength:600,startLevel:-1});O.current=ve,ve.on(Sn.Events.MANIFEST_PARSED,()=>{}),ve.on(Sn.Events.ERROR,(Ue,Xe)=>{if(Xe.fatal)switch(Xe.type){case Sn.ErrorTypes.NETWORK_ERROR:A("Network error, retrying..."),setTimeout(()=>ve.startLoad(),1e3);break;case Sn.ErrorTypes.MEDIA_ERROR:A("Media error, retrying..."),setTimeout(()=>ve.recoverMediaError(),1e3);break;default:A(`Fatal error: ${Xe.details}`),ve.destroy(),O.current=null;break}}),ve.attachMedia(re),ve.loadSource(se)}else if(re.canPlayType("application/vnd.apple.mpegurl"))re.src=se;else{const ve=se.replace("/manifest.m3u8","/480p/index.m3u8");re.src=ve}const Le=()=>V(!0),Et=()=>{V(!1),Ee()},Nt=ve=>{var Xe;const Ue=ve.target;A(`Video error: ${((Xe=Ue.error)==null?void 0:Xe.message)||"Unknown error"}`),V(!1)},ar=()=>V(!1);re.addEventListener("loadstart",Le),re.addEventListener("canplay",Et),re.addEventListener("error",Nt),re.addEventListener("loadeddata",ar);const sr=async()=>{var Ue,Xe,Be,At;const ve=!!document.fullscreenElement;try{ve?"orientation"in screen&&await(((Xe=(Ue=screen.orientation)==null?void 0:Ue.lock)==null?void 0:Xe.call(Ue,"landscape"))??Promise.resolve()):"orientation"in screen&&((At=(Be=screen.orientation)==null?void 0:Be.unlock)==null||At.call(Be))}catch{}};return document.addEventListener("fullscreenchange",sr),G.current=()=>{document.removeEventListener("fullscreenchange",sr)},()=>{re.removeEventListener("loadstart",Le),re.removeEventListener("canplay",Et),re.removeEventListener("error",Nt),re.removeEventListener("loadeddata",ar),G.current&&G.current()}}catch(ne){A(`Setup error: ${ne instanceof Error?ne.message:"Unknown"}`)}})(),()=>{O.current&&(O.current.destroy(),O.current=null)}),[w,b==null?void 0:b.video_v2]);const K=()=>{if(!(b==null?void 0:b.video_v2)){A("No video source available");return}j(!0),A(null),V(!0)},X=L=>{n&&n(L)},ae=L=>{r&&r(L)},ke=L=>{if(!L)return"00:00";const B=Math.floor(L),re=Math.floor(B/3600),se=Math.floor(B%3600/60),ne=B%60,Ee=Le=>Le.toString().padStart(2,"0");return B<60?`00:${Ee(ne)}`:re===0?`${Ee(se)}:${Ee(ne)}`:`${Ee(re)}:${Ee(se)}:${Ee(ne)}`};return y?i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx("div",{className:"sticky top-0 z-50 w-full bg-background border-b border-border",children:i.jsx("div",{className:"container mx-auto px-4 py-3",children:i.jsx("div",{className:"h-8 w-24 bg-muted rounded-full animate-pulse"})})}),i.jsx("div",{className:"container mx-auto px-4 py-8 max-w-6xl",children:i.jsxs("div",{className:"animate-pulse space-y-6",children:[i.jsx("div",{className:"aspect-video bg-muted rounded-xl"}),i.jsxs("div",{className:"space-y-3",children:[i.jsx("div",{className:"h-6 bg-muted rounded w-3/4"}),i.jsx("div",{className:"h-4 bg-muted rounded w-1/2"})]})]})})]}):E||!b?i.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:i.jsxs("div",{className:"text-center max-w-md mx-auto px-4",children:[i.jsx("h2",{className:"text-xl font-semibold text-card-foreground mb-2",children:"Failed to Load Video"}),i.jsx("p",{className:"text-muted-foreground mb-4",children:E||"Video not found"}),i.jsxs("button",{onClick:()=>{s&&s()},className:"inline-flex items-center gap-2 px-4 py-2 bg-card border border-border text-card-foreground rounded-lg hover:bg-card-hover transition-colors",children:[i.jsx(q.ArrowLeft,{className:"w-4 h-4"}),"Go Back"]})]})}):i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx("div",{className:"sticky top-0 z-50 w-full bg-background/95 backdrop-blur-sm border-b border-border",children:i.jsx("div",{className:"container mx-auto px-4 py-3",children:i.jsxs("button",{onClick:()=>{s&&s()},className:"inline-flex items-center gap-2 text-muted-foreground hover:text-card-foreground transition-colors",children:[i.jsx(q.ArrowLeft,{className:"w-4 h-4"}),"Back"]})})}),i.jsx("div",{className:"container mx-auto px-4 py-8 max-w-6xl",children:i.jsxs("div",{className:"flex flex-col gap-8",children:[i.jsxs("div",{className:"lg:col-span-2 space-y-6",children:[i.jsx("div",{className:"w-full aspect-video bg-black rounded-xl overflow-hidden relative shadow-card",children:w?i.jsxs("div",{className:"relative w-full h-full",children:[i.jsx("video",{ref:M,controls:!0,poster:on(b.thumbnail),className:"w-full h-full object-contain bg-black",onDoubleClick:async L=>{const B=L.currentTarget;try{document.fullscreenElement?await document.exitFullscreen():await B.requestFullscreen()}catch{}}}),k&&i.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-black/50",children:i.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary"})}),p&&i.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-black/80",children:i.jsxs("div",{className:"text-center text-white",children:[i.jsx("p",{className:"mb-4",children:p}),i.jsx("button",{onClick:()=>{j(!1),A(null)},className:"px-4 py-2 bg-primary text-primary-foreground rounded-lg hover:bg-primary-hover transition-colors",children:"Try Again"})]})})]}):i.jsxs(i.Fragment,{children:[i.jsx("img",{src:on(b.thumbnail)||`https://images.hive.blog/u/${b.owner}/avatar`,alt:b.title,className:"w-full h-full object-cover",onError:L=>{L.target.src=`https://images.hive.blog/u/${b.owner}/avatar`}}),i.jsx("div",{className:"absolute inset-0 bg-gradient-overlay opacity-30"}),i.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:i.jsx("button",{onClick:K,className:"bg-primary hover:bg-primary-hover rounded-full p-6 transform hover:scale-110 transition-all duration-300 shadow-lg",children:i.jsx(q.Play,{className:"w-8 h-8 text-primary-foreground ml-1",fill:"currentColor"})})}),b.duration&&i.jsxs("div",{className:"absolute bottom-4 right-4 bg-black/80 text-white text-sm px-3 py-1 rounded-md flex items-center gap-1 backdrop-blur-sm",children:[i.jsx(q.Clock,{className:"w-3 h-3"}),ke(b.duration)]}),b.views&&i.jsxs("div",{className:"absolute bottom-4 left-4 bg-black/80 text-white text-sm px-3 py-1 rounded-md flex items-center gap-1 backdrop-blur-sm",children:[i.jsx(q.Eye,{className:"w-3 h-3"}),b.views.toLocaleString()," views"]})]})}),i.jsx(Uc,{title:b.title||"",author:b.owner||"",permlink:b.permlink||"",createdAt:b.created,description:b.description||"",video:{title:b.title||"",author:b.owner||"",permlink:b.permlink||"",created:b.created||new Date,category:b.category||"",numOfUpvotes:void 0,numOfComments:void 0,hiveValue:void 0,duration:b.duration,thumbnail:b.thumbnail,views:b.views},onTapComment:()=>{o?o(d,m):S(!0)},onTapUpvote:()=>{c?c(d,m):I(!0)},onTapInfo:()=>{u?u(d,m,b.description||""):_(!0)},onTapAuthor:()=>{r&&r(b.owner)},onTapShare:()=>{l&&l(d,m)},onTapBookmark:()=>{h&&h(d,m)}}),b.tags&&i.jsx("div",{className:"flex flex-wrap gap-2",children:b.tags.split(",").map((L,B)=>i.jsxs("span",{className:"bg-primary/10 text-primary px-3 py-1 rounded-full text-sm font-medium hover:bg-primary/20 transition-colors cursor-pointer",onClick:()=>{a&&a(L.trim())},children:["#",L.trim()]},B))})]}),i.jsxs("div",{className:"bg-card border border-border rounded-xl p-6 sticky top-24",children:[i.jsx("h3",{className:"font-semibold text-card-foreground mb-4 text-lg",children:"Related Videos"}),i.jsx("div",{className:"space-y-4",children:i.jsx(oi,{feedType:Je.RELATED,username:b.owner,onVideoClick:X,onAuthorClick:ae})})]})]})}),H&&d&&m&&i.jsx(zc,{author:d,permlink:m,onClose:()=>S(!1)}),P&&d&&m&&i.jsx(Hc,{author:d,permlink:m,onClose:()=>I(!1)}),W&&d&&m&&i.jsx(Wc,{author:d,permlink:m,content:b.description||"",onClose:()=>_(!1)})]})};var Gc={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},dl=C.createContext&&C.createContext(Gc),Of=["attr","size","title"];function $f(t,e){if(t==null)return{};var r=Pf(t,e),n,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(a=0;a<s.length;a++)n=s[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Pf(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function Vs(){return Vs=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Vs.apply(this,arguments)}function fl(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function qs(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?fl(Object(r),!0).forEach(function(n){Lf(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fl(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Lf(t,e,r){return e=Mf(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Mf(t){var e=If(t,"string");return typeof e=="symbol"?e:e+""}function If(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Jc(t){return t&&t.map((e,r)=>C.createElement(e.tag,qs({key:r},e.attr),Jc(e.child)))}function Xn(t){return e=>C.createElement(Ff,Vs({attr:qs({},t.attr)},e),Jc(t.child))}function Ff(t){var e=r=>{var{attr:n,size:a,title:s}=t,o=$f(t,Of),c=a||r.size||"1em",u;return r.className&&(u=r.className),t.className&&(u=(u?u+" ":"")+t.className),C.createElement("svg",Vs({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,o,{className:u,style:qs(qs({color:t.color||r.color},r.style),t.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),s&&C.createElement("title",null,s),t.children)};return dl!==void 0?C.createElement(dl.Consumer,null,r=>e(r)):e(Gc)}function Rf(t){return Xn({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M296 160H180.6l42.6-129.8C227.2 15 215.7 0 200 0H56C44 0 33.8 8.9 32.2 20.8l-32 240C-1.7 275.2 9.5 288 24 288h118.7L96.6 482.5c-3.6 15.2 8 29.5 23.3 29.5 8.4 0 16.4-4.4 20.8-12l176-304c9.3-15.9-2.2-36-20.7-36z"},child:[]}]})(t)}function Bf(t){return Xn({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M0 405.3V448c0 35.3 86 64 192 64s192-28.7 192-64v-42.7C342.7 434.4 267.2 448 192 448S41.3 434.4 0 405.3zM320 128c106 0 192-28.7 192-64S426 0 320 0 128 28.7 128 64s86 64 192 64zM0 300.4V352c0 35.3 86 64 192 64s192-28.7 192-64v-51.6c-41.3 34-116.9 51.6-192 51.6S41.3 334.4 0 300.4zm416 11c57.3-11.1 96-31.7 96-55.4v-42.7c-23.2 16.4-57.3 27.6-96 34.5v63.6zM192 160C86 160 0 195.8 0 240s86 80 192 80 192-35.8 192-80-86-80-192-80zm219.3 56.3c60-10.8 100.7-32 100.7-56.3v-42.7c-35.5 25.1-96.5 38.6-160.7 41.8 29.5 14.3 51.2 33.5 60 57.2z"},child:[]}]})(t)}function Vf(t){return Xn({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},child:[]}]})(t)}function qf(t){return Xn({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M608 64H32C14.33 64 0 78.33 0 96v320c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V96c0-17.67-14.33-32-32-32zM48 400v-64c35.35 0 64 28.65 64 64H48zm0-224v-64h64c0 35.35-28.65 64-64 64zm272 176c-44.19 0-80-42.99-80-96 0-53.02 35.82-96 80-96s80 42.98 80 96c0 53.03-35.83 96-80 96zm272 48h-64c0-35.35 28.65-64 64-64v64zm0-224c-35.35 0-64-28.65-64-64h64v64z"},child:[]}]})(t)}function Uf(t){return Xn({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M560 224h-29.5c-8.8-20-21.6-37.7-37.4-52.5L512 96h-32c-29.4 0-55.4 13.5-73 34.3-7.6-1.1-15.1-2.3-23-2.3H256c-77.4 0-141.9 55-156.8 128H56c-14.8 0-26.5-13.5-23.5-28.8C34.7 215.8 45.4 208 57 208h1c3.3 0 6-2.7 6-6v-20c0-3.3-2.7-6-6-6-28.5 0-53.9 20.4-57.5 48.6C-3.9 258.8 22.7 288 56 288h40c0 52.2 25.4 98.1 64 127.3V496c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16v-48h128v48c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16v-80.7c11.8-8.9 22.3-19.4 31.3-31.3H560c8.8 0 16-7.2 16-16V240c0-8.8-7.2-16-16-16zm-128 64c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zM256 96h128c5.4 0 10.7.4 15.9.8 0-.3.1-.5.1-.8 0-53-43-96-96-96s-96 43-96 96c0 2.1.5 4.1.6 6.2 15.2-3.9 31-6.2 47.4-6.2z"},child:[]}]})(t)}function zf(t){return Xn({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M461.2 128H80c-8.84 0-16-7.16-16-16s7.16-16 16-16h384c8.84 0 16-7.16 16-16 0-26.51-21.49-48-48-48H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h397.2c28.02 0 50.8-21.53 50.8-48V176c0-26.47-22.78-48-50.8-48zM416 336c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"},child:[]}]})(t)}const nu=new jf.Client(["https://api.hive.blog"]),Hf=async t=>{try{const e=await nu.database.getAccounts([t]);if(!e||e.length===0)throw new Error("Account not found");return e[0]}catch(e){return console.error("Error in getWalletDataDetail:",e),{error:e instanceof Error?e.message:"Unknown error"}}},Wf=async t=>{try{const e=await nu.database.getDynamicGlobalProperties(),r=parseFloat(t.split(" ")[0]),n=parseFloat(String(e.total_vesting_shares).split(" ")[0]),a=parseFloat(String(e.total_vesting_fund_hive).split(" ")[0]);return(r*a/n).toFixed(3)}catch(e){return console.error("Error in convertVestingSharesToHiveData:",e),"0"}},Gf=async t=>{try{const r=(await nu.database.call("get_feed_history",[])).current_median_history,n=parseFloat(r.base.split(" ")[0]),a=typeof t=="string"?parseFloat(t):t;return(n*a).toFixed(2)}catch(e){return console.error("Error in convertHivetoUSDData:",e),"0"}},Yc=Rc.create(t=>({walletData:null,isLoading:!1,error:null,setWalletData:e=>t({walletData:e}),clearWalletData:()=>t({walletData:null,error:null}),fetchWalletData:async e=>{t({isLoading:!0,error:null});try{const r=await Hf(e),n=x=>"error"in x;if(!r||n(r))throw new Error(n(r)?r.error:"Account not found");const a=typeof r.vesting_shares=="string"?r.vesting_shares:"0.000000 VESTS",s=typeof r.balance=="string"?r.balance:r.balance.toString(),o=typeof r.hbd_balance=="string"?r.hbd_balance:r.hbd_balance.toString(),c=typeof r.savings_balance=="string"?r.savings_balance:r.savings_balance.toString(),u=typeof r.savings_hbd_balance=="string"?r.savings_hbd_balance:r.savings_hbd_balance.toString(),f=await Wf(a),l=parseFloat(s.split(" ")[0]||"0"),h=parseFloat(f),d=(l+h).toFixed(3),m=await Gf(d),b={balance:s,hbd_balance:o,savings_balance:c,savings_hbd_balance:u,hive_power:`${f} HP`,estimated_value:`$${m}`};return t({walletData:b}),b}catch(r){const n=r instanceof Error?r.message:"Failed to fetch wallet data";console.error("Wallet fetch error:",n);const a={balance:"0.000 HIVE",hbd_balance:"0.000 HBD",savings_balance:"0.000 HIVE",savings_hbd_balance:"0.000 HBD",hive_power:"0 HP",estimated_value:"$0.00",error:n};return t({walletData:a,error:n}),a}finally{t({isLoading:!1})}}})),Jf=({username:t,className:e=""})=>{const{walletData:r,fetchWalletData:n,isLoading:a,error:s}=Yc();C.useEffect(()=>{t&&n(t)},[t,n]);const o=({label:c,value:u,icon:f,colorClass:l="bg-primary/10"})=>i.jsxs("div",{className:"flex items-center justify-between p-4 rounded-lg bg-card border border-border shadow-sm mb-3 transition-all duration-200 hover:shadow-md",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[f&&i.jsx("div",{className:`p-2 rounded-full flex items-center justify-center ${l} text-primary`,children:f}),i.jsx("span",{className:"font-semibold text-card-foreground",children:c})]}),i.jsx("span",{className:"font-medium text-muted-foreground",children:u??"-"})]});return i.jsx("div",{className:`min-h-screen bg-gradient-elegant p-4 transition-all duration-300 ${e}`,children:i.jsxs("div",{className:"max-w-md mx-auto",children:[i.jsxs("div",{className:"flex flex-col items-center p-6 mb-6 rounded-xl bg-card border border-border shadow-elegant",children:[t&&i.jsx("img",{src:`https://images.hive.blog/u/${t}/avatar`,alt:`${t} avatar`,className:"w-20 h-20 rounded-full border-4 border-primary/20 mb-3 transition-transform hover:scale-105",onError:c=>{c.target.src=`https://ui-avatars.com/api/?name=${t}&background=random`}}),i.jsx("div",{className:"text-lg font-bold text-card-foreground",children:t}),i.jsx("div",{className:"text-sm text-muted-foreground",children:"Hive Wallet Overview"})]}),i.jsxs("div",{className:"text-center rounded-xl bg-gradient-primary shadow-glow p-6 mb-6 transition-all duration-300 hover:shadow-elegant",children:[i.jsx("div",{className:"text-sm font-semibold text-primary-foreground/80",children:"Estimated Value"}),i.jsx("div",{className:"text-3xl font-bold mt-2 text-primary-foreground",children:a?i.jsxs("div",{className:"flex items-center justify-center gap-2",children:[i.jsx("div",{className:"w-6 h-6 border-2 border-primary-foreground/30 border-t-primary-foreground rounded-full animate-spin"}),"Loading..."]}):(r==null?void 0:r.estimated_value)??"-"})]}),s&&i.jsxs("div",{className:"flex items-center p-3 rounded-lg bg-destructive/10 border border-destructive/20 text-destructive mb-4",children:[i.jsx(Vf,{className:"mr-2"}),i.jsx("span",{children:s})]}),i.jsx(o,{label:"Balance",value:r==null?void 0:r.balance,icon:i.jsx(zf,{}),colorClass:"bg-blue-500/10"}),i.jsx(o,{label:"HBD Balance",value:r==null?void 0:r.hbd_balance,icon:i.jsx(qf,{}),colorClass:"bg-green-500/10"}),i.jsx(o,{label:"Savings Balance",value:r==null?void 0:r.savings_balance,icon:i.jsx(Uf,{}),colorClass:"bg-yellow-500/10"}),i.jsx(o,{label:"Savings HBD Balance",value:r==null?void 0:r.savings_hbd_balance,icon:i.jsx(Bf,{}),colorClass:"bg-purple-500/10"}),i.jsx(o,{label:"Hive Power",value:r==null?void 0:r.hive_power,icon:i.jsx(Rf,{}),colorClass:"bg-orange-500/10"})]})})};var Zc={},Ca={},Kn={},au={exports:{}};const Xc=()=>{const t=Error.prepareStackTrace;Error.prepareStackTrace=(r,n)=>n;const e=new Error().stack.slice(1);return Error.prepareStackTrace=t,e};au.exports=Xc;au.exports.default=Xc;var Yf=au.exports,li={};Object.defineProperty(li,"__esModule",{value:!0});li.inferLabel=void 0;const Zf=()=>{};li.inferLabel=Zf;var co={},Oo={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});const r=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function n(p){return r.includes(p)}const a=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Blob","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","FormData","URLSearchParams","HTMLElement",...r];function s(p){return a.includes(p)}const o=["null","undefined","string","number","bigint","boolean","symbol"];function c(p){return o.includes(p)}function u(p){return A=>typeof A===p}const{toString:f}=Object.prototype,l=p=>{const A=f.call(p).slice(8,-1);if(/HTML\w+Element/.test(A)&&d.domElement(p))return"HTMLElement";if(s(A))return A},h=p=>A=>l(A)===p;function d(p){if(p===null)return"null";switch(typeof p){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"boolean":return"boolean";case"function":return"Function";case"bigint":return"bigint";case"symbol":return"symbol"}if(d.observable(p))return"Observable";if(d.array(p))return"Array";if(d.buffer(p))return"Buffer";const A=l(p);if(A)return A;if(p instanceof String||p instanceof Boolean||p instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}d.undefined=u("undefined"),d.string=u("string");const m=u("number");d.number=p=>m(p)&&!d.nan(p),d.bigint=u("bigint"),d.function_=u("function"),d.null_=p=>p===null,d.class_=p=>d.function_(p)&&p.toString().startsWith("class "),d.boolean=p=>p===!0||p===!1,d.symbol=u("symbol"),d.numericString=p=>d.string(p)&&!d.emptyStringOrWhitespace(p)&&!Number.isNaN(Number(p)),d.array=(p,A)=>Array.isArray(p)?d.function_(A)?p.every(A):!0:!1,d.buffer=p=>{var A,k,V,H;return(H=(V=(k=(A=p)===null||A===void 0?void 0:A.constructor)===null||k===void 0?void 0:k.isBuffer)===null||V===void 0?void 0:V.call(k,p))!==null&&H!==void 0?H:!1},d.blob=p=>h("Blob")(p),d.nullOrUndefined=p=>d.null_(p)||d.undefined(p),d.object=p=>!d.null_(p)&&(typeof p=="object"||d.function_(p)),d.iterable=p=>{var A;return d.function_((A=p)===null||A===void 0?void 0:A[Symbol.iterator])},d.asyncIterable=p=>{var A;return d.function_((A=p)===null||A===void 0?void 0:A[Symbol.asyncIterator])},d.generator=p=>{var A,k;return d.iterable(p)&&d.function_((A=p)===null||A===void 0?void 0:A.next)&&d.function_((k=p)===null||k===void 0?void 0:k.throw)},d.asyncGenerator=p=>d.asyncIterable(p)&&d.function_(p.next)&&d.function_(p.throw),d.nativePromise=p=>h("Promise")(p);const b=p=>{var A,k;return d.function_((A=p)===null||A===void 0?void 0:A.then)&&d.function_((k=p)===null||k===void 0?void 0:k.catch)};d.promise=p=>d.nativePromise(p)||b(p),d.generatorFunction=h("GeneratorFunction"),d.asyncGeneratorFunction=p=>l(p)==="AsyncGeneratorFunction",d.asyncFunction=p=>l(p)==="AsyncFunction",d.boundFunction=p=>d.function_(p)&&!p.hasOwnProperty("prototype"),d.regExp=h("RegExp"),d.date=h("Date"),d.error=h("Error"),d.map=p=>h("Map")(p),d.set=p=>h("Set")(p),d.weakMap=p=>h("WeakMap")(p),d.weakSet=p=>h("WeakSet")(p),d.int8Array=h("Int8Array"),d.uint8Array=h("Uint8Array"),d.uint8ClampedArray=h("Uint8ClampedArray"),d.int16Array=h("Int16Array"),d.uint16Array=h("Uint16Array"),d.int32Array=h("Int32Array"),d.uint32Array=h("Uint32Array"),d.float32Array=h("Float32Array"),d.float64Array=h("Float64Array"),d.bigInt64Array=h("BigInt64Array"),d.bigUint64Array=h("BigUint64Array"),d.arrayBuffer=h("ArrayBuffer"),d.sharedArrayBuffer=h("SharedArrayBuffer"),d.dataView=h("DataView"),d.enumCase=(p,A)=>Object.values(A).includes(p),d.directInstanceOf=(p,A)=>Object.getPrototypeOf(p)===A.prototype,d.urlInstance=p=>h("URL")(p),d.urlString=p=>{if(!d.string(p))return!1;try{return new URL(p),!0}catch{return!1}},d.truthy=p=>!!p,d.falsy=p=>!p,d.nan=p=>Number.isNaN(p),d.primitive=p=>d.null_(p)||c(typeof p),d.integer=p=>Number.isInteger(p),d.safeInteger=p=>Number.isSafeInteger(p),d.plainObject=p=>{if(f.call(p)!=="[object Object]")return!1;const A=Object.getPrototypeOf(p);return A===null||A===Object.getPrototypeOf({})},d.typedArray=p=>n(l(p));const x=p=>d.safeInteger(p)&&p>=0;d.arrayLike=p=>!d.nullOrUndefined(p)&&!d.function_(p)&&x(p.length),d.inRange=(p,A)=>{if(d.number(A))return p>=Math.min(0,A)&&p<=Math.max(A,0);if(d.array(A)&&A.length===2)return p>=Math.min(...A)&&p<=Math.max(...A);throw new TypeError(`Invalid range: ${JSON.stringify(A)}`)};const y=1,g=["innerHTML","ownerDocument","style","attributes","nodeValue"];d.domElement=p=>d.object(p)&&p.nodeType===y&&d.string(p.nodeName)&&!d.plainObject(p)&&g.every(A=>A in p),d.observable=p=>{var A,k,V,H;return p?p===((k=(A=p)[Symbol.observable])===null||k===void 0?void 0:k.call(A))||p===((H=(V=p)["@@observable"])===null||H===void 0?void 0:H.call(V)):!1},d.nodeStream=p=>d.object(p)&&d.function_(p.pipe)&&!d.observable(p),d.infinite=p=>p===1/0||p===-1/0;const E=p=>A=>d.integer(A)&&Math.abs(A%2)===p;d.evenInteger=E(0),d.oddInteger=E(1),d.emptyArray=p=>d.array(p)&&p.length===0,d.nonEmptyArray=p=>d.array(p)&&p.length>0,d.emptyString=p=>d.string(p)&&p.length===0;const D=p=>d.string(p)&&!/\S/.test(p);d.emptyStringOrWhitespace=p=>d.emptyString(p)||D(p),d.nonEmptyString=p=>d.string(p)&&p.length>0,d.nonEmptyStringAndNotWhitespace=p=>d.string(p)&&!d.emptyStringOrWhitespace(p),d.emptyObject=p=>d.object(p)&&!d.map(p)&&!d.set(p)&&Object.keys(p).length===0,d.nonEmptyObject=p=>d.object(p)&&!d.map(p)&&!d.set(p)&&Object.keys(p).length>0,d.emptySet=p=>d.set(p)&&p.size===0,d.nonEmptySet=p=>d.set(p)&&p.size>0,d.emptyMap=p=>d.map(p)&&p.size===0,d.nonEmptyMap=p=>d.map(p)&&p.size>0,d.propertyKey=p=>d.any([d.string,d.number,d.symbol],p),d.formData=p=>h("FormData")(p),d.urlSearchParams=p=>h("URLSearchParams")(p);const w=(p,A,k)=>{if(!d.function_(A))throw new TypeError(`Invalid predicate: ${JSON.stringify(A)}`);if(k.length===0)throw new TypeError("Invalid number of values");return p.call(k,A)};d.any=(p,...A)=>(d.array(p)?p:[p]).some(V=>w(Array.prototype.some,V,A)),d.all=(p,...A)=>w(Array.prototype.every,p,A);const j=(p,A,k,V={})=>{if(!p){const{multipleValues:H}=V,S=H?`received values of types ${[...new Set(k.map(P=>`\`${d(P)}\``))].join(", ")}`:`received value of type \`${d(k)}\``;throw new TypeError(`Expected value which is \`${A}\`, ${S}.`)}};e.assert={undefined:p=>j(d.undefined(p),"undefined",p),string:p=>j(d.string(p),"string",p),number:p=>j(d.number(p),"number",p),bigint:p=>j(d.bigint(p),"bigint",p),function_:p=>j(d.function_(p),"Function",p),null_:p=>j(d.null_(p),"null",p),class_:p=>j(d.class_(p),"Class",p),boolean:p=>j(d.boolean(p),"boolean",p),symbol:p=>j(d.symbol(p),"symbol",p),numericString:p=>j(d.numericString(p),"string with a number",p),array:(p,A)=>{j(d.array(p),"Array",p),A&&p.forEach(A)},buffer:p=>j(d.buffer(p),"Buffer",p),blob:p=>j(d.blob(p),"Blob",p),nullOrUndefined:p=>j(d.nullOrUndefined(p),"null or undefined",p),object:p=>j(d.object(p),"Object",p),iterable:p=>j(d.iterable(p),"Iterable",p),asyncIterable:p=>j(d.asyncIterable(p),"AsyncIterable",p),generator:p=>j(d.generator(p),"Generator",p),asyncGenerator:p=>j(d.asyncGenerator(p),"AsyncGenerator",p),nativePromise:p=>j(d.nativePromise(p),"native Promise",p),promise:p=>j(d.promise(p),"Promise",p),generatorFunction:p=>j(d.generatorFunction(p),"GeneratorFunction",p),asyncGeneratorFunction:p=>j(d.asyncGeneratorFunction(p),"AsyncGeneratorFunction",p),asyncFunction:p=>j(d.asyncFunction(p),"AsyncFunction",p),boundFunction:p=>j(d.boundFunction(p),"Function",p),regExp:p=>j(d.regExp(p),"RegExp",p),date:p=>j(d.date(p),"Date",p),error:p=>j(d.error(p),"Error",p),map:p=>j(d.map(p),"Map",p),set:p=>j(d.set(p),"Set",p),weakMap:p=>j(d.weakMap(p),"WeakMap",p),weakSet:p=>j(d.weakSet(p),"WeakSet",p),int8Array:p=>j(d.int8Array(p),"Int8Array",p),uint8Array:p=>j(d.uint8Array(p),"Uint8Array",p),uint8ClampedArray:p=>j(d.uint8ClampedArray(p),"Uint8ClampedArray",p),int16Array:p=>j(d.int16Array(p),"Int16Array",p),uint16Array:p=>j(d.uint16Array(p),"Uint16Array",p),int32Array:p=>j(d.int32Array(p),"Int32Array",p),uint32Array:p=>j(d.uint32Array(p),"Uint32Array",p),float32Array:p=>j(d.float32Array(p),"Float32Array",p),float64Array:p=>j(d.float64Array(p),"Float64Array",p),bigInt64Array:p=>j(d.bigInt64Array(p),"BigInt64Array",p),bigUint64Array:p=>j(d.bigUint64Array(p),"BigUint64Array",p),arrayBuffer:p=>j(d.arrayBuffer(p),"ArrayBuffer",p),sharedArrayBuffer:p=>j(d.sharedArrayBuffer(p),"SharedArrayBuffer",p),dataView:p=>j(d.dataView(p),"DataView",p),enumCase:(p,A)=>j(d.enumCase(p,A),"EnumCase",p),urlInstance:p=>j(d.urlInstance(p),"URL",p),urlString:p=>j(d.urlString(p),"string with a URL",p),truthy:p=>j(d.truthy(p),"truthy",p),falsy:p=>j(d.falsy(p),"falsy",p),nan:p=>j(d.nan(p),"NaN",p),primitive:p=>j(d.primitive(p),"primitive",p),integer:p=>j(d.integer(p),"integer",p),safeInteger:p=>j(d.safeInteger(p),"integer",p),plainObject:p=>j(d.plainObject(p),"plain object",p),typedArray:p=>j(d.typedArray(p),"TypedArray",p),arrayLike:p=>j(d.arrayLike(p),"array-like",p),domElement:p=>j(d.domElement(p),"HTMLElement",p),observable:p=>j(d.observable(p),"Observable",p),nodeStream:p=>j(d.nodeStream(p),"Node.js Stream",p),infinite:p=>j(d.infinite(p),"infinite number",p),emptyArray:p=>j(d.emptyArray(p),"empty array",p),nonEmptyArray:p=>j(d.nonEmptyArray(p),"non-empty array",p),emptyString:p=>j(d.emptyString(p),"empty string",p),emptyStringOrWhitespace:p=>j(d.emptyStringOrWhitespace(p),"empty string or whitespace",p),nonEmptyString:p=>j(d.nonEmptyString(p),"non-empty string",p),nonEmptyStringAndNotWhitespace:p=>j(d.nonEmptyStringAndNotWhitespace(p),"non-empty string and not whitespace",p),emptyObject:p=>j(d.emptyObject(p),"empty object",p),nonEmptyObject:p=>j(d.nonEmptyObject(p),"non-empty object",p),emptySet:p=>j(d.emptySet(p),"empty set",p),nonEmptySet:p=>j(d.nonEmptySet(p),"non-empty set",p),emptyMap:p=>j(d.emptyMap(p),"empty map",p),nonEmptyMap:p=>j(d.nonEmptyMap(p),"non-empty map",p),propertyKey:p=>j(d.propertyKey(p),"PropertyKey",p),formData:p=>j(d.formData(p),"FormData",p),urlSearchParams:p=>j(d.urlSearchParams(p),"URLSearchParams",p),evenInteger:p=>j(d.evenInteger(p),"even integer",p),oddInteger:p=>j(d.oddInteger(p),"odd integer",p),directInstanceOf:(p,A)=>j(d.directInstanceOf(p,A),"T",p),inRange:(p,A)=>j(d.inRange(p,A),"in range",p),any:(p,...A)=>j(d.any(p,...A),"predicate returns truthy for any value",A,{multipleValues:!0}),all:(p,...A)=>j(d.all(p,...A),"predicate returns truthy for all values",A,{multipleValues:!0})},Object.defineProperties(d,{class:{value:d.class_},function:{value:d.function_},null:{value:d.null_}}),Object.defineProperties(e.assert,{class:{value:e.assert.class_},function:{value:e.assert.function_},null:{value:e.assert.null_}}),e.default=d,t.exports=d,t.exports.default=d,t.exports.assert=e.assert})(Oo,Oo.exports);var Qn=Oo.exports,ea={},ci={};Object.defineProperty(ci,"__esModule",{value:!0});ci.generateStackTrace=void 0;const Xf=()=>new RangeError("INTERNAL_OW_ERROR").stack;ci.generateStackTrace=Xf;Object.defineProperty(ea,"__esModule",{value:!0});ea.ArgumentError=void 0;const Kf=ci,Qf=(t,e)=>`${t.name}: ${t.message}
89
+ ${e}`;class eh extends Error{constructor(e,r,n=new Map){super(e),Object.defineProperty(this,"validationErrors",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name="ArgumentError",Error.captureStackTrace?Error.captureStackTrace(this,r):this.stack=Qf(this,(0,Kf.generateStackTrace)()),this.validationErrors=n}}ea.ArgumentError=eh;var ya={},su={};Object.defineProperty(su,"__esModule",{value:!0});su.default=()=>Math.random().toString(16).slice(2);var hl;function th(){if(hl)return ya;hl=1,Object.defineProperty(ya,"__esModule",{value:!0}),ya.not=void 0;const t=su,e=Ze(),r=n=>{const a=n.addValidator;return n.addValidator=s=>{const{validator:o,message:c,negatedMessage:u}=s,f=(0,t.default)();return s.message=(l,h)=>u?u(l,h):c(l,f).replace(/ to /,"$&not ").replace(f,h),s.validator=l=>!o(l),n[e.validatorSymbol].push(s),n.addValidator=a,n},n};return ya.not=r,ya}var ta={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.isPredicate=t.testSymbol=void 0,t.testSymbol=Symbol("test");const e=r=>!!r[t.testSymbol];t.isPredicate=e})(ta);var Ga={};Object.defineProperty(Ga,"__esModule",{value:!0});Ga.generateArgumentErrorMessage=void 0;const rh=(t,e=!1)=>{const r=[],n=[...t.entries()],a=n.some(([,s])=>s.size!==1);if(n.length===1){const[,s]=n[0];if(!e&&s.size===1){const[o]=s;return o}for(const o of s)r.push(`${e?" - ":""}${o}`);return r.join(`
82
90
  `)}if(!a)return n.map(([,[s]])=>` - ${s}`).join(`
83
91
  `);for(const[s,o]of n){r.push(`Errors from the "${s}" predicate:`);for(const c of o)r.push(` - ${c}`)}return r.join(`
84
- `)};Na.generateArgumentErrorMessage=rh;var pl;function Le(){return pl||(pl=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Predicate=t.validatorSymbol=void 0;const e=Tn,r=Cn,n=th(),a=On,s=Na;t.validatorSymbol=Symbol("validators");class o{constructor(u,f={}){Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:u}),Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:f}),Object.defineProperty(this,"context",{enumerable:!0,configurable:!0,writable:!0,value:{validators:[]}}),this.context={...this.context,...this.options};const l=this.type.charAt(0).toLowerCase()+this.type.slice(1);this.addValidator({message:(h,d)=>`Expected ${(d==null?void 0:d.slice(this.type.length+1))||"argument"} to be of type \`${this.type}\` but received type \`${(0,e.default)(h)}\``,validator:h=>e.default[l](h)})}[a.testSymbol](u,f,l,h){const d=new Map;for(const{validator:m,message:b}of this.context.validators){if(this.options.optional===!0&&u===void 0)continue;let x;try{x=m(u)}catch(p){x=p}if(x===!0)continue;const y=e.default.function_(l)?l():l,g=y&&h?`\`${y}\``:y,E=g?`${this.type} ${g}`:this.type,S=y||this.type,w=d.get(S),k=b(u,E,x);w?w.add(k):d.set(S,new Set([k]))}if(d.size>0){const m=(0,s.generateArgumentErrorMessage)(d);throw new r.ArgumentError(m,f,d)}}get[t.validatorSymbol](){return this.context.validators}get not(){return(0,n.not)(this)}validate(u){return this.addValidator({message:(f,l,h)=>typeof h=="string"?`(${l}) ${h}`:h(l),validator:f=>{const{message:l,validator:h}=u(f);return h?!0:l}})}is(u){return this.addValidator({message:(f,l,h)=>h?`(${l}) ${h}`:`Expected ${l} \`${f}\` to pass custom validation function`,validator:u})}message(u){const{validators:f}=this.context;return f[f.length-1].message=(l,h)=>typeof u=="function"?u(l,h):u,this}addValidator(u){return this.context.validators.push(u),this}}t.Predicate=o}(co)),co}var iu={},Ls={},ni={},nh=function(t){return!isNaN(Date.parse(t))};Object.defineProperty(ni,"__esModule",{value:!0});ni.StringPredicate=void 0;const ah=Tn,sh=nh,ih=Le();class oh extends ih.Predicate{constructor(e){super("string",e)}length(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have length \`${e}\`, got \`${r}\``,validator:r=>r.length===e})}minLength(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have a minimum length of \`${e}\`, got \`${r}\``,validator:r=>r.length>=e,negatedMessage:(r,n)=>`Expected ${n} to have a maximum length of \`${e-1}\`, got \`${r}\``})}maxLength(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have a maximum length of \`${e}\`, got \`${r}\``,validator:r=>r.length<=e,negatedMessage:(r,n)=>`Expected ${n} to have a minimum length of \`${e+1}\`, got \`${r}\``})}matches(e){return this.addValidator({message:(r,n)=>`Expected ${n} to match \`${e}\`, got \`${r}\``,validator:r=>e.test(r)})}startsWith(e){return this.addValidator({message:(r,n)=>`Expected ${n} to start with \`${e}\`, got \`${r}\``,validator:r=>r.startsWith(e)})}endsWith(e){return this.addValidator({message:(r,n)=>`Expected ${n} to end with \`${e}\`, got \`${r}\``,validator:r=>r.endsWith(e)})}includes(e){return this.addValidator({message:(r,n)=>`Expected ${n} to include \`${e}\`, got \`${r}\``,validator:r=>r.includes(e)})}oneOf(e){return this.addValidator({message:(r,n)=>{let a=JSON.stringify(e);if(e.length>10){const s=e.length-10;a=JSON.stringify(e.slice(0,10)).replace(/]$/,`,…+${s} more]`)}return`Expected ${n} to be one of \`${a}\`, got \`${r}\``},validator:r=>e.includes(r)})}get empty(){return this.addValidator({message:(e,r)=>`Expected ${r} to be empty, got \`${e}\``,validator:e=>e===""})}get nonEmpty(){return this.addValidator({message:(e,r)=>`Expected ${r} to not be empty`,validator:e=>e!==""})}equals(e){return this.addValidator({message:(r,n)=>`Expected ${n} to be equal to \`${e}\`, got \`${r}\``,validator:r=>r===e})}get alphanumeric(){return this.addValidator({message:(e,r)=>`Expected ${r} to be alphanumeric, got \`${e}\``,validator:e=>/^[a-z\d]+$/i.test(e)})}get alphabetical(){return this.addValidator({message:(e,r)=>`Expected ${r} to be alphabetical, got \`${e}\``,validator:e=>/^[a-z]+$/gi.test(e)})}get numeric(){return this.addValidator({message:(e,r)=>`Expected ${r} to be numeric, got \`${e}\``,validator:e=>/^[+-]?\d+$/i.test(e)})}get date(){return this.addValidator({message:(e,r)=>`Expected ${r} to be a date, got \`${e}\``,validator:sh})}get lowercase(){return this.addValidator({message:(e,r)=>`Expected ${r} to be lowercase, got \`${e}\``,validator:e=>e.trim()!==""&&e===e.toLowerCase()})}get uppercase(){return this.addValidator({message:(e,r)=>`Expected ${r} to be uppercase, got \`${e}\``,validator:e=>e.trim()!==""&&e===e.toUpperCase()})}get url(){return this.addValidator({message:(e,r)=>`Expected ${r} to be a URL, got \`${e}\``,validator:ah.default.urlString})}}ni.StringPredicate=oh;var ai={};Object.defineProperty(ai,"__esModule",{value:!0});ai.NumberPredicate=void 0;const sn=Tn,uh=Le();class lh extends uh.Predicate{constructor(e){super("number",e)}inRange(e,r){return this.addValidator({message:(n,a)=>`Expected ${a} to be in range [${e}..${r}], got ${n}`,validator:n=>sn.default.inRange(n,[e,r])})}greaterThan(e){return this.addValidator({message:(r,n)=>`Expected ${n} to be greater than ${e}, got ${r}`,validator:r=>r>e})}greaterThanOrEqual(e){return this.addValidator({message:(r,n)=>`Expected ${n} to be greater than or equal to ${e}, got ${r}`,validator:r=>r>=e})}lessThan(e){return this.addValidator({message:(r,n)=>`Expected ${n} to be less than ${e}, got ${r}`,validator:r=>r<e})}lessThanOrEqual(e){return this.addValidator({message:(r,n)=>`Expected ${n} to be less than or equal to ${e}, got ${r}`,validator:r=>r<=e})}equal(e){return this.addValidator({message:(r,n)=>`Expected ${n} to be equal to ${e}, got ${r}`,validator:r=>r===e})}oneOf(e){return this.addValidator({message:(r,n)=>{let a=JSON.stringify(e);if(e.length>10){const s=e.length-10;a=JSON.stringify(e.slice(0,10)).replace(/]$/,`,…+${s} more]`)}return`Expected ${n} to be one of \`${a}\`, got ${r}`},validator:r=>e.includes(r)})}get integer(){return this.addValidator({message:(e,r)=>`Expected ${r} to be an integer, got ${e}`,validator:e=>sn.default.integer(e)})}get finite(){return this.addValidator({message:(e,r)=>`Expected ${r} to be finite, got ${e}`,validator:e=>!sn.default.infinite(e)})}get infinite(){return this.addValidator({message:(e,r)=>`Expected ${r} to be infinite, got ${e}`,validator:e=>sn.default.infinite(e)})}get positive(){return this.addValidator({message:(e,r)=>`Expected ${r} to be positive, got ${e}`,validator:e=>e>0})}get negative(){return this.addValidator({message:(e,r)=>`Expected ${r} to be negative, got ${e}`,validator:e=>e<0})}get integerOrInfinite(){return this.addValidator({message:(e,r)=>`Expected ${r} to be an integer or infinite, got ${e}`,validator:e=>sn.default.integer(e)||sn.default.infinite(e)})}get uint8(){return this.integer.inRange(0,255)}get uint16(){return this.integer.inRange(0,65535)}get uint32(){return this.integer.inRange(0,4294967295)}get int8(){return this.integer.inRange(-128,127)}get int16(){return this.integer.inRange(-32768,32767)}get int32(){return this.integer.inRange(-2147483648,2147483647)}}ai.NumberPredicate=lh;var si={};Object.defineProperty(si,"__esModule",{value:!0});si.BigIntPredicate=void 0;const ch=Le();class dh extends ch.Predicate{constructor(e){super("bigint",e)}}si.BigIntPredicate=dh;var ii={};Object.defineProperty(ii,"__esModule",{value:!0});ii.BooleanPredicate=void 0;const fh=Le();class hh extends fh.Predicate{constructor(e){super("boolean",e)}get true(){return this.addValidator({message:(e,r)=>`Expected ${r} to be true, got ${e}`,validator:e=>e})}get false(){return this.addValidator({message:(e,r)=>`Expected ${r} to be false, got ${e}`,validator:e=>!e})}}ii.BooleanPredicate=hh;var oi={},Ms={exports:{}};Ms.exports;(function(t,e){var r=200,n="__lodash_hash_undefined__",a=1,s=2,o=9007199254740991,c="[object Arguments]",u="[object Array]",f="[object AsyncFunction]",l="[object Boolean]",h="[object Date]",d="[object Error]",m="[object Function]",b="[object GeneratorFunction]",x="[object Map]",y="[object Number]",g="[object Null]",E="[object Object]",S="[object Promise]",w="[object Proxy]",k="[object RegExp]",p="[object Set]",N="[object String]",A="[object Symbol]",V="[object Undefined]",z="[object WeakMap]",j="[object ArrayBuffer]",L="[object DataView]",I="[object Float32Array]",H="[object Float64Array]",_="[object Int8Array]",M="[object Int16Array]",C="[object Int32Array]",W="[object Uint8Array]",R="[object Uint8ClampedArray]",Z="[object Uint16Array]",P="[object Uint32Array]",G=/[\\^$.*+?()[\]{}|]/g,ne=/^\[object .+?Constructor\]$/,$=/^(?:0|[1-9]\d*)$/,B={};B[I]=B[H]=B[_]=B[M]=B[C]=B[W]=B[R]=B[Z]=B[P]=!0,B[c]=B[u]=B[j]=B[l]=B[L]=B[h]=B[d]=B[m]=B[x]=B[y]=B[E]=B[k]=B[p]=B[N]=B[z]=!1;var re=typeof J=="object"&&J&&J.Object===Object&&J,X=typeof self=="object"&&self&&self.Object===Object&&self,te=re||X||Function("return this")(),pe=e&&!e.nodeType&&e,De=pe&&!0&&t&&!t.nodeType&&t,Nt=De&&De.exports===pe,Mt=Nt&&re.process,yr=function(){try{return Mt&&Mt.binding&&Mt.binding("util")}catch{}}(),vr=yr&&yr.isTypedArray;function ye(v,O){for(var U=-1,Q=v==null?0:v.length,ge=0,ae=[];++U<Q;){var _e=v[U];O(_e,U,v)&&(ae[ge++]=_e)}return ae}function tt(v,O){for(var U=-1,Q=O.length,ge=v.length;++U<Q;)v[ge+U]=O[U];return v}function We(v,O){for(var U=-1,Q=v==null?0:v.length;++U<Q;)if(O(v[U],U,v))return!0;return!1}function Me(v,O){for(var U=-1,Q=Array(v);++U<v;)Q[U]=O(U);return Q}function wr(v){return function(O){return v(O)}}function _r(v,O){return v.has(O)}function eo(v,O){return v==null?void 0:v[O]}function Ra(v){var O=-1,U=Array(v.size);return v.forEach(function(Q,ge){U[++O]=[ge,Q]}),U}function Gr(v,O){return function(U){return v(O(U))}}function Ba(v){var O=-1,U=Array(v.size);return v.forEach(function(Q){U[++O]=Q}),U}var Va=Array.prototype,to=Function.prototype,ot=Object.prototype,Jr=te["__core-js_shared__"],qa=to.toString,ut=ot.hasOwnProperty,Yr=function(){var v=/[^.]+$/.exec(Jr&&Jr.keys&&Jr.keys.IE_PROTO||"");return v?"Symbol(src)_1."+v:""}(),er=ot.toString,Bn=RegExp("^"+qa.call(ut).replace(G,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Zr=Nt?te.Buffer:void 0,tr=te.Symbol,rr=te.Uint8Array,Ua=ot.propertyIsEnumerable,ro=Va.splice,It=tr?tr.toStringTag:void 0,za=Object.getOwnPropertySymbols,no=Zr?Zr.isBuffer:void 0,Ha=Gr(Object.keys,Object),Er=gt(te,"DataView"),rt=gt(te,"Map"),nt=gt(te,"Promise"),pt=gt(te,"Set"),nr=gt(te,"WeakMap"),Ge=gt(Object,"create"),ao=Re(Er),Xr=Re(rt),Nr=Re(nt),Wa=Re(pt),Ga=Re(nr),Ja=tr?tr.prototype:void 0,Vn=Ja?Ja.valueOf:void 0;function At(v){var O=-1,U=v==null?0:v.length;for(this.clear();++O<U;){var Q=v[O];this.set(Q[0],Q[1])}}function Ya(){this.__data__=Ge?Ge(null):{},this.size=0}function Kr(v){var O=this.has(v)&&delete this.__data__[v];return this.size-=O?1:0,O}function ar(v){var O=this.__data__;if(Ge){var U=O[v];return U===n?void 0:U}return ut.call(O,v)?O[v]:void 0}function so(v){var O=this.__data__;return Ge?O[v]!==void 0:ut.call(O,v)}function kt(v,O){var U=this.__data__;return this.size+=this.has(v)?0:1,U[v]=Ge&&O===void 0?n:O,this}At.prototype.clear=Ya,At.prototype.delete=Kr,At.prototype.get=ar,At.prototype.has=so,At.prototype.set=kt;function mt(v){var O=-1,U=v==null?0:v.length;for(this.clear();++O<U;){var Q=v[O];this.set(Q[0],Q[1])}}function Ft(){this.__data__=[],this.size=0}function Za(v){var O=this.__data__,U=xe(O,v);if(U<0)return!1;var Q=O.length-1;return U==Q?O.pop():ro.call(O,U,1),--this.size,!0}function io(v){var O=this.__data__,U=xe(O,v);return U<0?void 0:O[U][1]}function Qr(v){return xe(this.__data__,v)>-1}function qn(v,O){var U=this.__data__,Q=xe(U,v);return Q<0?(++this.size,U.push([v,O])):U[Q][1]=O,this}mt.prototype.clear=Ft,mt.prototype.delete=Za,mt.prototype.get=io,mt.prototype.has=Qr,mt.prototype.set=qn;function jt(v){var O=-1,U=v==null?0:v.length;for(this.clear();++O<U;){var Q=v[O];this.set(Q[0],Q[1])}}function Xa(){this.size=0,this.__data__={hash:new At,map:new(rt||mt),string:new At}}function Ka(v){var O=le(this,v).delete(v);return this.size-=O?1:0,O}function Ar(v){return le(this,v).get(v)}function Qa(v){return le(this,v).has(v)}function oo(v,O){var U=le(this,v),Q=U.size;return U.set(v,O),this.size+=U.size==Q?0:1,this}jt.prototype.clear=Xa,jt.prototype.delete=Ka,jt.prototype.get=Ar,jt.prototype.has=Qa,jt.prototype.set=oo;function D(v){var O=-1,U=v==null?0:v.length;for(this.__data__=new jt;++O<U;)this.add(v[O])}function F(v){return this.__data__.set(v,n),this}function Y(v){return this.__data__.has(v)}D.prototype.add=D.prototype.push=F,D.prototype.has=Y;function K(v){var O=this.__data__=new mt(v);this.size=O.size}function me(){this.__data__=new mt,this.size=0}function ie(v){var O=this.__data__,U=O.delete(v);return this.size=O.size,U}function be(v){return this.__data__.get(v)}function we(v){return this.__data__.has(v)}function at(v,O){var U=this.__data__;if(U instanceof mt){var Q=U.__data__;if(!rt||Q.length<r-1)return Q.push([v,O]),this.size=++U.size,this;U=this.__data__=new jt(Q)}return U.set(v,O),this.size=U.size,this}K.prototype.clear=me,K.prototype.delete=ie,K.prototype.get=be,K.prototype.has=we,K.prototype.set=at;function Ee(v,O){var U=ur(v),Q=!U&&rn(v),ge=!U&&!Q&&lr(v),ae=!U&&!Q&&!ge&&il(v),_e=U||Q||ge||ae,Ce=_e?Me(v.length,String):[],Ie=Ce.length;for(var ve in v)ut.call(v,ve)&&!(_e&&(ve=="length"||ge&&(ve=="offset"||ve=="parent")||ae&&(ve=="buffer"||ve=="byteLength"||ve=="byteOffset")||bt(ve,Ie)))&&Ce.push(ve);return Ce}function xe(v,O){for(var U=v.length;U--;)if(Hn(v[U][0],O))return U;return-1}function lt(v,O,U){var Q=O(v);return ur(v)?Q:tt(Q,U(v))}function Ue(v){return v==null?v===void 0?V:g:It&&It in Object(v)?St(v):or(v)}function Te(v){return Wn(v)&&Ue(v)==c}function ct(v,O,U,Q,ge){return v===O?!0:v==null||O==null||!Wn(v)&&!Wn(O)?v!==v&&O!==O:sr(v,O,U,Q,ct,ge)}function sr(v,O,U,Q,ge,ae){var _e=ur(v),Ce=ur(O),Ie=_e?u:Ne(v),ve=Ce?u:Ne(O);Ie=Ie==c?E:Ie,ve=ve==c?E:ve;var st=Ie==E,xt=ve==E,Be=Ie==ve;if(Be&&lr(v)){if(!lr(O))return!1;_e=!0,st=!1}if(Be&&!st)return ae||(ae=new K),_e||il(v)?Un(v,O,U,Q,ge,ae):uo(v,O,Ie,U,Q,ge,ae);if(!(U&a)){var dt=st&&ut.call(v,"__wrapped__"),ft=xt&&ut.call(O,"__wrapped__");if(dt||ft){var cr=dt?v.value():v,Rt=ft?O.value():O;return ae||(ae=new K),ge(cr,Rt,U,Q,ae)}}return Be?(ae||(ae=new K),lo(v,O,U,Q,ge,ae)):!1}function en(v){if(!sl(v)||jr(v))return!1;var O=Sr(v)?Bn:ne;return O.test(Re(v))}function ir(v){return Wn(v)&&Dr(v.length)&&!!B[Ue(v)]}function kr(v){if(!tn(v))return Ha(v);var O=[];for(var U in Object(v))ut.call(v,U)&&U!="constructor"&&O.push(U);return O}function Un(v,O,U,Q,ge,ae){var _e=U&a,Ce=v.length,Ie=O.length;if(Ce!=Ie&&!(_e&&Ie>Ce))return!1;var ve=ae.get(v);if(ve&&ae.get(O))return ve==O;var st=-1,xt=!0,Be=U&s?new D:void 0;for(ae.set(v,O),ae.set(O,v);++st<Ce;){var dt=v[st],ft=O[st];if(Q)var cr=_e?Q(ft,dt,st,O,v,ae):Q(dt,ft,st,v,O,ae);if(cr!==void 0){if(cr)continue;xt=!1;break}if(Be){if(!We(O,function(Rt,Tr){if(!_r(Be,Tr)&&(dt===Rt||ge(dt,Rt,U,Q,ae)))return Be.push(Tr)})){xt=!1;break}}else if(!(dt===ft||ge(dt,ft,U,Q,ae))){xt=!1;break}}return ae.delete(v),ae.delete(O),xt}function uo(v,O,U,Q,ge,ae,_e){switch(U){case L:if(v.byteLength!=O.byteLength||v.byteOffset!=O.byteOffset)return!1;v=v.buffer,O=O.buffer;case j:return!(v.byteLength!=O.byteLength||!ae(new rr(v),new rr(O)));case l:case h:case y:return Hn(+v,+O);case d:return v.name==O.name&&v.message==O.message;case k:case N:return v==O+"";case x:var Ce=Ra;case p:var Ie=Q&a;if(Ce||(Ce=Ba),v.size!=O.size&&!Ie)return!1;var ve=_e.get(v);if(ve)return ve==O;Q|=s,_e.set(v,O);var st=Un(Ce(v),Ce(O),Q,ge,ae,_e);return _e.delete(v),st;case A:if(Vn)return Vn.call(v)==Vn.call(O)}return!1}function lo(v,O,U,Q,ge,ae){var _e=U&a,Ce=ce(v),Ie=Ce.length,ve=ce(O),st=ve.length;if(Ie!=st&&!_e)return!1;for(var xt=Ie;xt--;){var Be=Ce[xt];if(!(_e?Be in O:ut.call(O,Be)))return!1}var dt=ae.get(v);if(dt&&ae.get(O))return dt==O;var ft=!0;ae.set(v,O),ae.set(O,v);for(var cr=_e;++xt<Ie;){Be=Ce[xt];var Rt=v[Be],Tr=O[Be];if(Q)var ol=_e?Q(Tr,Rt,Be,O,v,ae):Q(Rt,Tr,Be,v,O,ae);if(!(ol===void 0?Rt===Tr||ge(Rt,Tr,U,Q,ae):ol)){ft=!1;break}cr||(cr=Be=="constructor")}if(ft&&!cr){var ts=v.constructor,rs=O.constructor;ts!=rs&&"constructor"in v&&"constructor"in O&&!(typeof ts=="function"&&ts instanceof ts&&typeof rs=="function"&&rs instanceof rs)&&(ft=!1)}return ae.delete(v),ae.delete(O),ft}function ce(v){return lt(v,_f,zn)}function le(v,O){var U=v.__data__;return Dt(O)?U[typeof O=="string"?"string":"hash"]:U.map}function gt(v,O){var U=eo(v,O);return en(U)?U:void 0}function St(v){var O=ut.call(v,It),U=v[It];try{v[It]=void 0;var Q=!0}catch{}var ge=er.call(v);return Q&&(O?v[It]=U:delete v[It]),ge}var zn=za?function(v){return v==null?[]:(v=Object(v),ye(za(v),function(O){return Ua.call(v,O)}))}:Ef,Ne=Ue;(Er&&Ne(new Er(new ArrayBuffer(1)))!=L||rt&&Ne(new rt)!=x||nt&&Ne(nt.resolve())!=S||pt&&Ne(new pt)!=p||nr&&Ne(new nr)!=z)&&(Ne=function(v){var O=Ue(v),U=O==E?v.constructor:void 0,Q=U?Re(U):"";if(Q)switch(Q){case ao:return L;case Xr:return x;case Nr:return S;case Wa:return p;case Ga:return z}return O});function bt(v,O){return O=O??o,!!O&&(typeof v=="number"||$.test(v))&&v>-1&&v%1==0&&v<O}function Dt(v){var O=typeof v;return O=="string"||O=="number"||O=="symbol"||O=="boolean"?v!=="__proto__":v===null}function jr(v){return!!Yr&&Yr in v}function tn(v){var O=v&&v.constructor,U=typeof O=="function"&&O.prototype||ot;return v===U}function or(v){return er.call(v)}function Re(v){if(v!=null){try{return qa.call(v)}catch{}try{return v+""}catch{}}return""}function Hn(v,O){return v===O||v!==v&&O!==O}var rn=Te(function(){return arguments}())?Te:function(v){return Wn(v)&&ut.call(v,"callee")&&!Ua.call(v,"callee")},ur=Array.isArray;function nn(v){return v!=null&&Dr(v.length)&&!Sr(v)}var lr=no||Nf;function es(v,O){return ct(v,O)}function Sr(v){if(!sl(v))return!1;var O=Ue(v);return O==m||O==b||O==f||O==w}function Dr(v){return typeof v=="number"&&v>-1&&v%1==0&&v<=o}function sl(v){var O=typeof v;return v!=null&&(O=="object"||O=="function")}function Wn(v){return v!=null&&typeof v=="object"}var il=vr?wr(vr):ir;function _f(v){return nn(v)?Ee(v):kr(v)}function Ef(){return[]}function Nf(){return!1}t.exports=es})(Ms,Ms.exports);var ui=Ms.exports,Ir={},$n={};Object.defineProperty($n,"__esModule",{value:!0});const ph=On;function Kc(t,e,r,n=!0){r[ph.testSymbol](t,Kc,e,n)}$n.default=Kc;Object.defineProperty(Ir,"__esModule",{value:!0});Ir.exact=Ir.partial=void 0;const Qc=Tn,ed=$n,td=On;function rd(t,e,r){try{for(const n of Object.keys(e)){const a=r?`${r}.${n}`:n;if((0,td.isPredicate)(e[n]))(0,ed.default)(t[n],a,e[n]);else if(Qc.default.plainObject(e[n])){const s=rd(t[n],e[n],a);if(s!==!0)return s}}return!0}catch(n){return n.message}}Ir.partial=rd;function nd(t,e,r,n){try{const a=new Set(Object.keys(t));for(const s of Object.keys(e)){a.delete(s);const o=r?`${r}.${s}`:s;if((0,td.isPredicate)(e[s]))(0,ed.default)(t[s],o,e[s]);else if(Qc.default.plainObject(e[s])){if(!Object.prototype.hasOwnProperty.call(t,s))return`Expected \`${o}\` to exist`;const c=nd(t[s],e[s],o);if(c!==!0)return c}}if(a.size>0){const s=[...a.keys()][0],o=r?`${r}.${s}`:s;return`Did not expect ${n?"element":"property"} \`${o}\` to exist, got \`${t[s]}\``}return!0}catch(a){return a.message}}Ir.exact=nd;var Pn={};Object.defineProperty(Pn,"__esModule",{value:!0});const mh=$n;Pn.default=(t,e,r)=>{try{for(const n of t)(0,mh.default)(n,e,r,!1);return!0}catch(n){return n.message}};Object.defineProperty(oi,"__esModule",{value:!0});oi.ArrayPredicate=void 0;const gh=ui,bh=Le(),xh=Ir,yh=Pn;class vh extends bh.Predicate{constructor(e){super("array",e)}length(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have length \`${e}\`, got \`${r.length}\``,validator:r=>r.length===e})}minLength(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have a minimum length of \`${e}\`, got \`${r.length}\``,validator:r=>r.length>=e,negatedMessage:(r,n)=>`Expected ${n} to have a maximum length of \`${e-1}\`, got \`${r.length}\``})}maxLength(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have a maximum length of \`${e}\`, got \`${r.length}\``,validator:r=>r.length<=e,negatedMessage:(r,n)=>`Expected ${n} to have a minimum length of \`${e+1}\`, got \`${r.length}\``})}startsWith(e){return this.addValidator({message:(r,n)=>`Expected ${n} to start with \`${e}\`, got \`${r[0]}\``,validator:r=>r[0]===e})}endsWith(e){return this.addValidator({message:(r,n)=>`Expected ${n} to end with \`${e}\`, got \`${r[r.length-1]}\``,validator:r=>r[r.length-1]===e})}includes(...e){return this.addValidator({message:(r,n)=>`Expected ${n} to include all elements of \`${JSON.stringify(e)}\`, got \`${JSON.stringify(r)}\``,validator:r=>e.every(n=>r.includes(n))})}includesAny(...e){return this.addValidator({message:(r,n)=>`Expected ${n} to include any element of \`${JSON.stringify(e)}\`, got \`${JSON.stringify(r)}\``,validator:r=>e.some(n=>r.includes(n))})}get empty(){return this.addValidator({message:(e,r)=>`Expected ${r} to be empty, got \`${JSON.stringify(e)}\``,validator:e=>e.length===0})}get nonEmpty(){return this.addValidator({message:(e,r)=>`Expected ${r} to not be empty`,validator:e=>e.length>0})}deepEqual(e){return this.addValidator({message:(r,n)=>`Expected ${n} to be deeply equal to \`${JSON.stringify(e)}\`, got \`${JSON.stringify(r)}\``,validator:r=>gh(r,e)})}ofType(e){return this.addValidator({message:(r,n,a)=>`(${n}) ${a}`,validator:r=>(0,yh.default)(r,"values",e)})}exactShape(e){const r=e;return this.addValidator({message:(n,a,s)=>`${s.replace("Expected","Expected element")} in ${a}`,validator:n=>(0,xh.exact)(n,r,void 0,!0)})}}oi.ArrayPredicate=vh;var li={},wh=t=>{const e=typeof t;return t!==null&&(e==="object"||e==="function")};const Cr=wh,_h=new Set(["__proto__","prototype","constructor"]),Eh=t=>!t.some(e=>_h.has(e));function ss(t){const e=t.split("."),r=[];for(let n=0;n<e.length;n++){let a=e[n];for(;a[a.length-1]==="\\"&&e[n+1]!==void 0;)a=a.slice(0,-1)+".",a+=e[++n];r.push(a)}return Eh(r)?r:[]}var Nh={get(t,e,r){if(!Cr(t)||typeof e!="string")return r===void 0?t:r;const n=ss(e);if(n.length!==0){for(let a=0;a<n.length;a++)if(t=t[n[a]],t==null){if(a!==n.length-1)return r;break}return t===void 0?r:t}},set(t,e,r){if(!Cr(t)||typeof e!="string")return t;const n=t,a=ss(e);for(let s=0;s<a.length;s++){const o=a[s];Cr(t[o])||(t[o]={}),s===a.length-1&&(t[o]=r),t=t[o]}return n},delete(t,e){if(!Cr(t)||typeof e!="string")return!1;const r=ss(e);for(let n=0;n<r.length;n++){const a=r[n];if(n===r.length-1)return delete t[a],!0;if(t=t[a],!Cr(t))return!1}},has(t,e){if(!Cr(t)||typeof e!="string")return!1;const r=ss(e);if(r.length===0)return!1;for(let n=0;n<r.length;n++)if(Cr(t)){if(!(r[n]in t))return!1;t=t[r[n]]}else return!1;return!0}},Vr={};Object.defineProperty(Vr,"__esModule",{value:!0});Vr.default=(t,e,r=5)=>{const n=[];for(const a of e)if(!t.has(a)&&(n.push(a),n.length===r))return n;return n.length===0?!0:n};var ou={};Object.defineProperty(ou,"__esModule",{value:!0});const Ah=Tn,kh=$n,ad=(t,e)=>Ah.default.plainObject(t)?Object.values(t).every(r=>ad(r,e)):((0,kh.default)(t,"deep values",e,!1),!0);ou.default=(t,e)=>{try{return ad(t,e)}catch(r){return r.message}};Object.defineProperty(li,"__esModule",{value:!0});li.ObjectPredicate=void 0;const jh=Tn,ml=Nh,Sh=ui,Dh=Vr,Th=Pn,Ch=ou,gl=Ir,Oh=Le();class $h extends Oh.Predicate{constructor(e){super("object",e)}get plain(){return this.addValidator({message:(e,r)=>`Expected ${r} to be a plain object`,validator:e=>jh.default.plainObject(e)})}get empty(){return this.addValidator({message:(e,r)=>`Expected ${r} to be empty, got \`${JSON.stringify(e)}\``,validator:e=>Object.keys(e).length===0})}get nonEmpty(){return this.addValidator({message:(e,r)=>`Expected ${r} to not be empty`,validator:e=>Object.keys(e).length>0})}valuesOfType(e){return this.addValidator({message:(r,n,a)=>`(${n}) ${a}`,validator:r=>(0,Th.default)(Object.values(r),"values",e)})}deepValuesOfType(e){return this.addValidator({message:(r,n,a)=>`(${n}) ${a}`,validator:r=>(0,Ch.default)(r,e)})}deepEqual(e){return this.addValidator({message:(r,n)=>`Expected ${n} to be deeply equal to \`${JSON.stringify(e)}\`, got \`${JSON.stringify(r)}\``,validator:r=>Sh(r,e)})}instanceOf(e){return this.addValidator({message:(r,n)=>{var a;let{name:s}=(a=r==null?void 0:r.constructor)!==null&&a!==void 0?a:{};return(!s||s==="Object")&&(s=JSON.stringify(r)),`Expected ${n} \`${s}\` to be of type \`${e.name}\``},validator:r=>r instanceof e})}hasKeys(...e){return this.addValidator({message:(r,n,a)=>`Expected ${n} to have keys \`${JSON.stringify(a)}\``,validator:r=>(0,Dh.default)({has:n=>ml.has(r,n)},e)})}hasAnyKeys(...e){return this.addValidator({message:(r,n)=>`Expected ${n} to have any key of \`${JSON.stringify(e)}\``,validator:r=>e.some(n=>ml.has(r,n))})}partialShape(e){return this.addValidator({message:(r,n,a)=>`${a.replace("Expected","Expected property")} in ${n}`,validator:r=>(0,gl.partial)(r,e)})}exactShape(e){return this.addValidator({message:(r,n,a)=>`${a.replace("Expected","Expected property")} in ${n}`,validator:r=>(0,gl.exact)(r,e)})}}li.ObjectPredicate=$h;var ci={};Object.defineProperty(ci,"__esModule",{value:!0});ci.DatePredicate=void 0;const Ph=Le();class Lh extends Ph.Predicate{constructor(e){super("date",e)}before(e){return this.addValidator({message:(r,n)=>`Expected ${n} ${r.toISOString()} to be before ${e.toISOString()}`,validator:r=>r.getTime()<e.getTime()})}after(e){return this.addValidator({message:(r,n)=>`Expected ${n} ${r.toISOString()} to be after ${e.toISOString()}`,validator:r=>r.getTime()>e.getTime()})}}ci.DatePredicate=Lh;var di={};Object.defineProperty(di,"__esModule",{value:!0});di.ErrorPredicate=void 0;const Mh=Le();class Ih extends Mh.Predicate{constructor(e){super("error",e)}name(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have name \`${e}\`, got \`${r.name}\``,validator:r=>r.name===e})}message(e){return this.addValidator({message:(r,n)=>`Expected ${n} message to be \`${e}\`, got \`${r.message}\``,validator:r=>r.message===e})}messageIncludes(e){return this.addValidator({message:(r,n)=>`Expected ${n} message to include \`${e}\`, got \`${r.message}\``,validator:r=>r.message.includes(e)})}hasKeys(...e){return this.addValidator({message:(r,n)=>`Expected ${n} message to have keys \`${e.join("`, `")}\``,validator:r=>e.every(n=>Object.prototype.hasOwnProperty.call(r,n))})}instanceOf(e){return this.addValidator({message:(r,n)=>`Expected ${n} \`${r.name}\` to be of type \`${e.name}\``,validator:r=>r instanceof e})}get typeError(){return this.instanceOf(TypeError)}get evalError(){return this.instanceOf(EvalError)}get rangeError(){return this.instanceOf(RangeError)}get referenceError(){return this.instanceOf(ReferenceError)}get syntaxError(){return this.instanceOf(SyntaxError)}get uriError(){return this.instanceOf(URIError)}}di.ErrorPredicate=Ih;var fi={};Object.defineProperty(fi,"__esModule",{value:!0});fi.MapPredicate=void 0;const Fh=ui,bl=Vr,xl=Pn,Rh=Le();class Bh extends Rh.Predicate{constructor(e){super("Map",e)}size(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have size \`${e}\`, got \`${r.size}\``,validator:r=>r.size===e})}minSize(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have a minimum size of \`${e}\`, got \`${r.size}\``,validator:r=>r.size>=e,negatedMessage:(r,n)=>`Expected ${n} to have a maximum size of \`${e-1}\`, got \`${r.size}\``})}maxSize(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have a maximum size of \`${e}\`, got \`${r.size}\``,validator:r=>r.size<=e,negatedMessage:(r,n)=>`Expected ${n} to have a minimum size of \`${e+1}\`, got \`${r.size}\``})}hasKeys(...e){return this.addValidator({message:(r,n,a)=>`Expected ${n} to have keys \`${JSON.stringify(a)}\``,validator:r=>(0,bl.default)(r,e)})}hasAnyKeys(...e){return this.addValidator({message:(r,n)=>`Expected ${n} to have any key of \`${JSON.stringify(e)}\``,validator:r=>e.some(n=>r.has(n))})}hasValues(...e){return this.addValidator({message:(r,n,a)=>`Expected ${n} to have values \`${JSON.stringify(a)}\``,validator:r=>(0,bl.default)(new Set(r.values()),e)})}hasAnyValues(...e){return this.addValidator({message:(r,n)=>`Expected ${n} to have any value of \`${JSON.stringify(e)}\``,validator:r=>{const n=new Set(r.values());return e.some(a=>n.has(a))}})}keysOfType(e){return this.addValidator({message:(r,n,a)=>`(${n}) ${a}`,validator:r=>(0,xl.default)(r.keys(),"keys",e)})}valuesOfType(e){return this.addValidator({message:(r,n,a)=>`(${n}) ${a}`,validator:r=>(0,xl.default)(r.values(),"values",e)})}get empty(){return this.addValidator({message:(e,r)=>`Expected ${r} to be empty, got \`${JSON.stringify([...e])}\``,validator:e=>e.size===0})}get nonEmpty(){return this.addValidator({message:(e,r)=>`Expected ${r} to not be empty`,validator:e=>e.size>0})}deepEqual(e){return this.addValidator({message:(r,n)=>`Expected ${n} to be deeply equal to \`${JSON.stringify([...e])}\`, got \`${JSON.stringify([...r])}\``,validator:r=>Fh(r,e)})}}fi.MapPredicate=Bh;var hi={};Object.defineProperty(hi,"__esModule",{value:!0});hi.WeakMapPredicate=void 0;const Vh=Vr,qh=Le();class Uh extends qh.Predicate{constructor(e){super("WeakMap",e)}hasKeys(...e){return this.addValidator({message:(r,n,a)=>`Expected ${n} to have keys \`${JSON.stringify(a)}\``,validator:r=>(0,Vh.default)(r,e)})}hasAnyKeys(...e){return this.addValidator({message:(r,n)=>`Expected ${n} to have any key of \`${JSON.stringify(e)}\``,validator:r=>e.some(n=>r.has(n))})}}hi.WeakMapPredicate=Uh;var pi={};Object.defineProperty(pi,"__esModule",{value:!0});pi.SetPredicate=void 0;const zh=ui,Hh=Vr,Wh=Pn,Gh=Le();class Jh extends Gh.Predicate{constructor(e){super("Set",e)}size(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have size \`${e}\`, got \`${r.size}\``,validator:r=>r.size===e})}minSize(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have a minimum size of \`${e}\`, got \`${r.size}\``,validator:r=>r.size>=e,negatedMessage:(r,n)=>`Expected ${n} to have a maximum size of \`${e-1}\`, got \`${r.size}\``})}maxSize(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have a maximum size of \`${e}\`, got \`${r.size}\``,validator:r=>r.size<=e,negatedMessage:(r,n)=>`Expected ${n} to have a minimum size of \`${e+1}\`, got \`${r.size}\``})}has(...e){return this.addValidator({message:(r,n,a)=>`Expected ${n} to have items \`${JSON.stringify(a)}\``,validator:r=>(0,Hh.default)(r,e)})}hasAny(...e){return this.addValidator({message:(r,n)=>`Expected ${n} to have any item of \`${JSON.stringify(e)}\``,validator:r=>e.some(n=>r.has(n))})}ofType(e){return this.addValidator({message:(r,n,a)=>`(${n}) ${a}`,validator:r=>(0,Wh.default)(r,"values",e)})}get empty(){return this.addValidator({message:(e,r)=>`Expected ${r} to be empty, got \`${JSON.stringify([...e])}\``,validator:e=>e.size===0})}get nonEmpty(){return this.addValidator({message:(e,r)=>`Expected ${r} to not be empty`,validator:e=>e.size>0})}deepEqual(e){return this.addValidator({message:(r,n)=>`Expected ${n} to be deeply equal to \`${JSON.stringify([...e])}\`, got \`${JSON.stringify([...r])}\``,validator:r=>zh(r,e)})}}pi.SetPredicate=Jh;var mi={};Object.defineProperty(mi,"__esModule",{value:!0});mi.WeakSetPredicate=void 0;const Yh=Vr,Zh=Le();class Xh extends Zh.Predicate{constructor(e){super("WeakSet",e)}has(...e){return this.addValidator({message:(r,n,a)=>`Expected ${n} to have items \`${JSON.stringify(a)}\``,validator:r=>(0,Yh.default)(r,e)})}hasAny(...e){return this.addValidator({message:(r,n)=>`Expected ${n} to have any item of \`${JSON.stringify(e)}\``,validator:r=>e.some(n=>r.has(n))})}}mi.WeakSetPredicate=Xh;var gi={};Object.defineProperty(gi,"__esModule",{value:!0});gi.TypedArrayPredicate=void 0;const Kh=Le();class Qh extends Kh.Predicate{byteLength(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have byte length of \`${e}\`, got \`${r.byteLength}\``,validator:r=>r.byteLength===e})}minByteLength(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have a minimum byte length of \`${e}\`, got \`${r.byteLength}\``,validator:r=>r.byteLength>=e,negatedMessage:(r,n)=>`Expected ${n} to have a maximum byte length of \`${e-1}\`, got \`${r.byteLength}\``})}maxByteLength(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have a maximum byte length of \`${e}\`, got \`${r.byteLength}\``,validator:r=>r.byteLength<=e,negatedMessage:(r,n)=>`Expected ${n} to have a minimum byte length of \`${e+1}\`, got \`${r.byteLength}\``})}length(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have length \`${e}\`, got \`${r.length}\``,validator:r=>r.length===e})}minLength(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have a minimum length of \`${e}\`, got \`${r.length}\``,validator:r=>r.length>=e,negatedMessage:(r,n)=>`Expected ${n} to have a maximum length of \`${e-1}\`, got \`${r.length}\``})}maxLength(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have a maximum length of \`${e}\`, got \`${r.length}\``,validator:r=>r.length<=e,negatedMessage:(r,n)=>`Expected ${n} to have a minimum length of \`${e+1}\`, got \`${r.length}\``})}}gi.TypedArrayPredicate=Qh;var bi={};Object.defineProperty(bi,"__esModule",{value:!0});bi.ArrayBufferPredicate=void 0;const ep=Le();class tp extends ep.Predicate{byteLength(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have byte length of \`${e}\`, got \`${r.byteLength}\``,validator:r=>r.byteLength===e})}minByteLength(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have a minimum byte length of \`${e}\`, got \`${r.byteLength}\``,validator:r=>r.byteLength>=e,negatedMessage:(r,n)=>`Expected ${n} to have a maximum byte length of \`${e-1}\`, got \`${r.byteLength}\``})}maxByteLength(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have a maximum byte length of \`${e}\`, got \`${r.byteLength}\``,validator:r=>r.byteLength<=e,negatedMessage:(r,n)=>`Expected ${n} to have a minimum byte length of \`${e+1}\`, got \`${r.byteLength}\``})}}bi.ArrayBufferPredicate=tp;var xi={};Object.defineProperty(xi,"__esModule",{value:!0});xi.DataViewPredicate=void 0;const rp=Le();class np extends rp.Predicate{constructor(e){super("DataView",e)}byteLength(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have byte length of \`${e}\`, got \`${r.byteLength}\``,validator:r=>r.byteLength===e})}minByteLength(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have a minimum byte length of \`${e}\`, got \`${r.byteLength}\``,validator:r=>r.byteLength>=e,negatedMessage:(r,n)=>`Expected ${n} to have a maximum byte length of \`${e-1}\`, got \`${r.byteLength}\``})}maxByteLength(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have a maximum byte length of \`${e}\`, got \`${r.byteLength}\``,validator:r=>r.byteLength<=e,negatedMessage:(r,n)=>`Expected ${n} to have a minimum byte length of \`${e+1}\`, got \`${r.byteLength}\``})}}xi.DataViewPredicate=np;var yi={};Object.defineProperty(yi,"__esModule",{value:!0});yi.AnyPredicate=void 0;const yl=Cn,ap=On,sp=Na;class ip{constructor(e,r={}){Object.defineProperty(this,"predicates",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:r})}[ap.testSymbol](e,r,n,a){const s=new Map;for(const o of this.predicates)try{r(e,n,o,a);return}catch(c){if(e===void 0&&this.options.optional===!0)return;if(c instanceof yl.ArgumentError)for(const[u,f]of c.validationErrors.entries()){const l=s.get(u);s.set(u,new Set([...l??[],...f]))}}if(s.size>0){const o=(0,sp.generateArgumentErrorMessage)(s,!0);throw new yl.ArgumentError(`Any predicate failed with the following errors:
85
- ${o}`,r,s)}}}yi.AnyPredicate=ip;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.AnyPredicate=t.DataViewPredicate=t.ArrayBufferPredicate=t.TypedArrayPredicate=t.WeakSetPredicate=t.SetPredicate=t.WeakMapPredicate=t.MapPredicate=t.ErrorPredicate=t.DatePredicate=t.ObjectPredicate=t.ArrayPredicate=t.BooleanPredicate=t.BigIntPredicate=t.NumberPredicate=t.StringPredicate=void 0;const e=ni;Object.defineProperty(t,"StringPredicate",{enumerable:!0,get:function(){return e.StringPredicate}});const r=ai;Object.defineProperty(t,"NumberPredicate",{enumerable:!0,get:function(){return r.NumberPredicate}});const n=si;Object.defineProperty(t,"BigIntPredicate",{enumerable:!0,get:function(){return n.BigIntPredicate}});const a=ii;Object.defineProperty(t,"BooleanPredicate",{enumerable:!0,get:function(){return a.BooleanPredicate}});const s=Le(),o=oi;Object.defineProperty(t,"ArrayPredicate",{enumerable:!0,get:function(){return o.ArrayPredicate}});const c=li;Object.defineProperty(t,"ObjectPredicate",{enumerable:!0,get:function(){return c.ObjectPredicate}});const u=ci;Object.defineProperty(t,"DatePredicate",{enumerable:!0,get:function(){return u.DatePredicate}});const f=di;Object.defineProperty(t,"ErrorPredicate",{enumerable:!0,get:function(){return f.ErrorPredicate}});const l=fi;Object.defineProperty(t,"MapPredicate",{enumerable:!0,get:function(){return l.MapPredicate}});const h=hi;Object.defineProperty(t,"WeakMapPredicate",{enumerable:!0,get:function(){return h.WeakMapPredicate}});const d=pi;Object.defineProperty(t,"SetPredicate",{enumerable:!0,get:function(){return d.SetPredicate}});const m=mi;Object.defineProperty(t,"WeakSetPredicate",{enumerable:!0,get:function(){return m.WeakSetPredicate}});const b=gi;Object.defineProperty(t,"TypedArrayPredicate",{enumerable:!0,get:function(){return b.TypedArrayPredicate}});const x=bi;Object.defineProperty(t,"ArrayBufferPredicate",{enumerable:!0,get:function(){return x.ArrayBufferPredicate}});const y=xi;Object.defineProperty(t,"DataViewPredicate",{enumerable:!0,get:function(){return y.DataViewPredicate}});const g=yi;Object.defineProperty(t,"AnyPredicate",{enumerable:!0,get:function(){return g.AnyPredicate}}),t.default=(E,S)=>(Object.defineProperties(E,{string:{get:()=>new e.StringPredicate(S)},number:{get:()=>new r.NumberPredicate(S)},bigint:{get:()=>new n.BigIntPredicate(S)},boolean:{get:()=>new a.BooleanPredicate(S)},undefined:{get:()=>new s.Predicate("undefined",S)},null:{get:()=>new s.Predicate("null",S)},nullOrUndefined:{get:()=>new s.Predicate("nullOrUndefined",S)},nan:{get:()=>new s.Predicate("nan",S)},symbol:{get:()=>new s.Predicate("symbol",S)},array:{get:()=>new o.ArrayPredicate(S)},object:{get:()=>new c.ObjectPredicate(S)},date:{get:()=>new u.DatePredicate(S)},error:{get:()=>new f.ErrorPredicate(S)},map:{get:()=>new l.MapPredicate(S)},weakMap:{get:()=>new h.WeakMapPredicate(S)},set:{get:()=>new d.SetPredicate(S)},weakSet:{get:()=>new m.WeakSetPredicate(S)},function:{get:()=>new s.Predicate("Function",S)},buffer:{get:()=>new s.Predicate("Buffer",S)},regExp:{get:()=>new s.Predicate("RegExp",S)},promise:{get:()=>new s.Predicate("Promise",S)},typedArray:{get:()=>new b.TypedArrayPredicate("TypedArray",S)},int8Array:{get:()=>new b.TypedArrayPredicate("Int8Array",S)},uint8Array:{get:()=>new b.TypedArrayPredicate("Uint8Array",S)},uint8ClampedArray:{get:()=>new b.TypedArrayPredicate("Uint8ClampedArray",S)},int16Array:{get:()=>new b.TypedArrayPredicate("Int16Array",S)},uint16Array:{get:()=>new b.TypedArrayPredicate("Uint16Array",S)},int32Array:{get:()=>new b.TypedArrayPredicate("Int32Array",S)},uint32Array:{get:()=>new b.TypedArrayPredicate("Uint32Array",S)},float32Array:{get:()=>new b.TypedArrayPredicate("Float32Array",S)},float64Array:{get:()=>new b.TypedArrayPredicate("Float64Array",S)},arrayBuffer:{get:()=>new x.ArrayBufferPredicate("ArrayBuffer",S)},sharedArrayBuffer:{get:()=>new x.ArrayBufferPredicate("SharedArrayBuffer",S)},dataView:{get:()=>new y.DataViewPredicate(S)},iterable:{get:()=>new s.Predicate("Iterable",S)},any:{value:(...w)=>new g.AnyPredicate(w,S)}}),E)})(Ls);Object.defineProperty(iu,"__esModule",{value:!0});const op=Ls;iu.default=t=>(Object.defineProperties(t,{optional:{get:()=>(0,op.default)({},{optional:!0})}}),t);(function(t){var e=J&&J.__createBinding||(Object.create?function(m,b,x,y){y===void 0&&(y=x);var g=Object.getOwnPropertyDescriptor(b,x);(!g||("get"in g?!b.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return b[x]}}),Object.defineProperty(m,y,g)}:function(m,b,x,y){y===void 0&&(y=x),m[y]=b[x]}),r=J&&J.__exportStar||function(m,b){for(var x in m)x!=="default"&&!Object.prototype.hasOwnProperty.call(b,x)&&e(b,m,x)};Object.defineProperty(t,"__esModule",{value:!0}),t.ArgumentError=t.Predicate=void 0;const n=Yf,a=ti,s=Le();Object.defineProperty(t,"Predicate",{enumerable:!0,get:function(){return s.Predicate}});const o=On,c=iu,u=Ls,f=$n,l=(m,b,x)=>{if(!(0,o.isPredicate)(b)&&typeof b!="string")throw new TypeError(`Expected second argument to be a predicate or a string, got \`${typeof b}\``);if((0,o.isPredicate)(b)){const y=(0,n.default)();(0,f.default)(m,()=>(0,a.inferLabel)(y),b);return}(0,f.default)(m,b,x)};Object.defineProperties(l,{isValid:{value:(m,b)=>{try{return(0,f.default)(m,"",b),!0}catch{return!1}}},create:{value:(m,b)=>(x,y)=>{if((0,o.isPredicate)(m)){const g=(0,n.default)();(0,f.default)(x,y??(()=>(0,a.inferLabel)(g)),m);return}(0,f.default)(x,y??m,b)}}});const h=(0,u.default)((0,c.default)(l));t.default=h,r(Ls,t);var d=Cn;Object.defineProperty(t,"ArgumentError",{enumerable:!0,get:function(){return d.ArgumentError}})})(Dn);var is;function sd(t){return is=is||document.createElement("textarea"),is.innerHTML="&"+t+";",is.value}function up(t){return Object.prototype.toString.call(t)}function lp(t){return up(t)==="[object String]"}var cp=Object.prototype.hasOwnProperty;function id(t,e){return t?cp.call(t,e):!1}function uu(t){var e=[].slice.call(arguments,1);return e.forEach(function(r){if(r){if(typeof r!="object")throw new TypeError(r+"must be object");Object.keys(r).forEach(function(n){t[n]=r[n]})}}),t}var dp=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function gn(t){return t.indexOf("\\")<0?t:t.replace(dp,"$1")}function lu(t){return!(t>=55296&&t<=57343||t>=64976&&t<=65007||(t&65535)===65535||(t&65535)===65534||t>=0&&t<=8||t===11||t>=14&&t<=31||t>=127&&t<=159||t>1114111)}function Is(t){if(t>65535){t-=65536;var e=55296+(t>>10),r=56320+(t&1023);return String.fromCharCode(e,r)}return String.fromCharCode(t)}var fp=/&([a-z#][a-z0-9]{1,31});/gi,hp=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;function pp(t,e){var r=0,n=sd(e);return e!==n?n:e.charCodeAt(0)===35&&hp.test(e)&&(r=e[1].toLowerCase()==="x"?parseInt(e.slice(2),16):parseInt(e.slice(1),10),lu(r))?Is(r):t}function hr(t){return t.indexOf("&")<0?t:t.replace(fp,pp)}var mp=/[&<>"]/,gp=/[&<>"]/g,bp={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function xp(t){return bp[t]}function He(t){return mp.test(t)?t.replace(gp,xp):t}var yp=Object.freeze({isString:lp,has:id,assign:uu,unescapeMd:gn,isValidEntityCode:lu,fromCodePoint:Is,replaceEntities:hr,escapeHtml:He}),ee={};ee.blockquote_open=function(){return`<blockquote>
86
- `};ee.blockquote_close=function(t,e){return"</blockquote>"+qr(t,e)};ee.code=function(t,e){return t[e].block?"<pre><code>"+He(t[e].content)+"</code></pre>"+qr(t,e):"<code>"+He(t[e].content)+"</code>"};ee.fence=function(t,e,r,n,a){var s=t[e],o="",c=r.langPrefix,u="",f,l,h;if(s.params){if(f=s.params.split(/\s+/g),l=f.join(" "),id(a.rules.fence_custom,f[0]))return a.rules.fence_custom[f[0]](t,e,r,n,a);u=He(hr(gn(l))),o=' class="'+c+u+'"'}return r.highlight?h=r.highlight.apply(r.highlight,[s.content].concat(f))||He(s.content):h=He(s.content),"<pre><code"+o+">"+h+"</code></pre>"+qr(t,e)};ee.fence_custom={};ee.heading_open=function(t,e){return"<h"+t[e].hLevel+">"};ee.heading_close=function(t,e){return"</h"+t[e].hLevel+`>
87
- `};ee.hr=function(t,e,r){return(r.xhtmlOut?"<hr />":"<hr>")+qr(t,e)};ee.bullet_list_open=function(){return`<ul>
88
- `};ee.bullet_list_close=function(t,e){return"</ul>"+qr(t,e)};ee.list_item_open=function(){return"<li>"};ee.list_item_close=function(){return`</li>
89
- `};ee.ordered_list_open=function(t,e){var r=t[e],n=r.order>1?' start="'+r.order+'"':"";return"<ol"+n+`>
90
- `};ee.ordered_list_close=function(t,e){return"</ol>"+qr(t,e)};ee.paragraph_open=function(t,e){return t[e].tight?"":"<p>"};ee.paragraph_close=function(t,e){var r=!(t[e].tight&&e&&t[e-1].type==="inline"&&!t[e-1].content);return(t[e].tight?"":"</p>")+(r?qr(t,e):"")};ee.link_open=function(t,e,r){var n=t[e].title?' title="'+He(hr(t[e].title))+'"':"",a=r.linkTarget?' target="'+r.linkTarget+'"':"";return'<a href="'+He(t[e].href)+'"'+n+a+">"};ee.link_close=function(){return"</a>"};ee.image=function(t,e,r){var n=' src="'+He(t[e].src)+'"',a=t[e].title?' title="'+He(hr(t[e].title))+'"':"",s=' alt="'+(t[e].alt?He(hr(gn(t[e].alt))):"")+'"',o=r.xhtmlOut?" /":"";return"<img"+n+s+a+o+">"};ee.table_open=function(){return`<table>
91
- `};ee.table_close=function(){return`</table>
92
- `};ee.thead_open=function(){return`<thead>
93
- `};ee.thead_close=function(){return`</thead>
94
- `};ee.tbody_open=function(){return`<tbody>
95
- `};ee.tbody_close=function(){return`</tbody>
96
- `};ee.tr_open=function(){return"<tr>"};ee.tr_close=function(){return`</tr>
97
- `};ee.th_open=function(t,e){var r=t[e];return"<th"+(r.align?' style="text-align:'+r.align+'"':"")+">"};ee.th_close=function(){return"</th>"};ee.td_open=function(t,e){var r=t[e];return"<td"+(r.align?' style="text-align:'+r.align+'"':"")+">"};ee.td_close=function(){return"</td>"};ee.strong_open=function(){return"<strong>"};ee.strong_close=function(){return"</strong>"};ee.em_open=function(){return"<em>"};ee.em_close=function(){return"</em>"};ee.del_open=function(){return"<del>"};ee.del_close=function(){return"</del>"};ee.ins_open=function(){return"<ins>"};ee.ins_close=function(){return"</ins>"};ee.mark_open=function(){return"<mark>"};ee.mark_close=function(){return"</mark>"};ee.sub=function(t,e){return"<sub>"+He(t[e].content)+"</sub>"};ee.sup=function(t,e){return"<sup>"+He(t[e].content)+"</sup>"};ee.hardbreak=function(t,e,r){return r.xhtmlOut?`<br />
92
+ `)};Ga.generateArgumentErrorMessage=rh;var pl;function Ze(){return pl||(pl=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Predicate=t.validatorSymbol=void 0;const e=Qn,r=ea,n=th(),a=ta,s=Ga;t.validatorSymbol=Symbol("validators");class o{constructor(u,f={}){Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:u}),Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:f}),Object.defineProperty(this,"context",{enumerable:!0,configurable:!0,writable:!0,value:{validators:[]}}),this.context={...this.context,...this.options};const l=this.type.charAt(0).toLowerCase()+this.type.slice(1);this.addValidator({message:(h,d)=>`Expected ${(d==null?void 0:d.slice(this.type.length+1))||"argument"} to be of type \`${this.type}\` but received type \`${(0,e.default)(h)}\``,validator:h=>e.default[l](h)})}[a.testSymbol](u,f,l,h){const d=new Map;for(const{validator:m,message:b}of this.context.validators){if(this.options.optional===!0&&u===void 0)continue;let x;try{x=m(u)}catch(p){x=p}if(x===!0)continue;const y=e.default.function_(l)?l():l,g=y&&h?`\`${y}\``:y,E=g?`${this.type} ${g}`:this.type,D=y||this.type,w=d.get(D),j=b(u,E,x);w?w.add(j):d.set(D,new Set([j]))}if(d.size>0){const m=(0,s.generateArgumentErrorMessage)(d);throw new r.ArgumentError(m,f,d)}}get[t.validatorSymbol](){return this.context.validators}get not(){return(0,n.not)(this)}validate(u){return this.addValidator({message:(f,l,h)=>typeof h=="string"?`(${l}) ${h}`:h(l),validator:f=>{const{message:l,validator:h}=u(f);return h?!0:l}})}is(u){return this.addValidator({message:(f,l,h)=>h?`(${l}) ${h}`:`Expected ${l} \`${f}\` to pass custom validation function`,validator:u})}message(u){const{validators:f}=this.context;return f[f.length-1].message=(l,h)=>typeof u=="function"?u(l,h):u,this}addValidator(u){return this.context.validators.push(u),this}}t.Predicate=o}(co)),co}var iu={},Us={},di={},nh=function(t){return!isNaN(Date.parse(t))};Object.defineProperty(di,"__esModule",{value:!0});di.StringPredicate=void 0;const ah=Qn,sh=nh,ih=Ze();class oh extends ih.Predicate{constructor(e){super("string",e)}length(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have length \`${e}\`, got \`${r}\``,validator:r=>r.length===e})}minLength(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have a minimum length of \`${e}\`, got \`${r}\``,validator:r=>r.length>=e,negatedMessage:(r,n)=>`Expected ${n} to have a maximum length of \`${e-1}\`, got \`${r}\``})}maxLength(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have a maximum length of \`${e}\`, got \`${r}\``,validator:r=>r.length<=e,negatedMessage:(r,n)=>`Expected ${n} to have a minimum length of \`${e+1}\`, got \`${r}\``})}matches(e){return this.addValidator({message:(r,n)=>`Expected ${n} to match \`${e}\`, got \`${r}\``,validator:r=>e.test(r)})}startsWith(e){return this.addValidator({message:(r,n)=>`Expected ${n} to start with \`${e}\`, got \`${r}\``,validator:r=>r.startsWith(e)})}endsWith(e){return this.addValidator({message:(r,n)=>`Expected ${n} to end with \`${e}\`, got \`${r}\``,validator:r=>r.endsWith(e)})}includes(e){return this.addValidator({message:(r,n)=>`Expected ${n} to include \`${e}\`, got \`${r}\``,validator:r=>r.includes(e)})}oneOf(e){return this.addValidator({message:(r,n)=>{let a=JSON.stringify(e);if(e.length>10){const s=e.length-10;a=JSON.stringify(e.slice(0,10)).replace(/]$/,`,…+${s} more]`)}return`Expected ${n} to be one of \`${a}\`, got \`${r}\``},validator:r=>e.includes(r)})}get empty(){return this.addValidator({message:(e,r)=>`Expected ${r} to be empty, got \`${e}\``,validator:e=>e===""})}get nonEmpty(){return this.addValidator({message:(e,r)=>`Expected ${r} to not be empty`,validator:e=>e!==""})}equals(e){return this.addValidator({message:(r,n)=>`Expected ${n} to be equal to \`${e}\`, got \`${r}\``,validator:r=>r===e})}get alphanumeric(){return this.addValidator({message:(e,r)=>`Expected ${r} to be alphanumeric, got \`${e}\``,validator:e=>/^[a-z\d]+$/i.test(e)})}get alphabetical(){return this.addValidator({message:(e,r)=>`Expected ${r} to be alphabetical, got \`${e}\``,validator:e=>/^[a-z]+$/gi.test(e)})}get numeric(){return this.addValidator({message:(e,r)=>`Expected ${r} to be numeric, got \`${e}\``,validator:e=>/^[+-]?\d+$/i.test(e)})}get date(){return this.addValidator({message:(e,r)=>`Expected ${r} to be a date, got \`${e}\``,validator:sh})}get lowercase(){return this.addValidator({message:(e,r)=>`Expected ${r} to be lowercase, got \`${e}\``,validator:e=>e.trim()!==""&&e===e.toLowerCase()})}get uppercase(){return this.addValidator({message:(e,r)=>`Expected ${r} to be uppercase, got \`${e}\``,validator:e=>e.trim()!==""&&e===e.toUpperCase()})}get url(){return this.addValidator({message:(e,r)=>`Expected ${r} to be a URL, got \`${e}\``,validator:ah.default.urlString})}}di.StringPredicate=oh;var fi={};Object.defineProperty(fi,"__esModule",{value:!0});fi.NumberPredicate=void 0;const Dn=Qn,uh=Ze();class lh extends uh.Predicate{constructor(e){super("number",e)}inRange(e,r){return this.addValidator({message:(n,a)=>`Expected ${a} to be in range [${e}..${r}], got ${n}`,validator:n=>Dn.default.inRange(n,[e,r])})}greaterThan(e){return this.addValidator({message:(r,n)=>`Expected ${n} to be greater than ${e}, got ${r}`,validator:r=>r>e})}greaterThanOrEqual(e){return this.addValidator({message:(r,n)=>`Expected ${n} to be greater than or equal to ${e}, got ${r}`,validator:r=>r>=e})}lessThan(e){return this.addValidator({message:(r,n)=>`Expected ${n} to be less than ${e}, got ${r}`,validator:r=>r<e})}lessThanOrEqual(e){return this.addValidator({message:(r,n)=>`Expected ${n} to be less than or equal to ${e}, got ${r}`,validator:r=>r<=e})}equal(e){return this.addValidator({message:(r,n)=>`Expected ${n} to be equal to ${e}, got ${r}`,validator:r=>r===e})}oneOf(e){return this.addValidator({message:(r,n)=>{let a=JSON.stringify(e);if(e.length>10){const s=e.length-10;a=JSON.stringify(e.slice(0,10)).replace(/]$/,`,…+${s} more]`)}return`Expected ${n} to be one of \`${a}\`, got ${r}`},validator:r=>e.includes(r)})}get integer(){return this.addValidator({message:(e,r)=>`Expected ${r} to be an integer, got ${e}`,validator:e=>Dn.default.integer(e)})}get finite(){return this.addValidator({message:(e,r)=>`Expected ${r} to be finite, got ${e}`,validator:e=>!Dn.default.infinite(e)})}get infinite(){return this.addValidator({message:(e,r)=>`Expected ${r} to be infinite, got ${e}`,validator:e=>Dn.default.infinite(e)})}get positive(){return this.addValidator({message:(e,r)=>`Expected ${r} to be positive, got ${e}`,validator:e=>e>0})}get negative(){return this.addValidator({message:(e,r)=>`Expected ${r} to be negative, got ${e}`,validator:e=>e<0})}get integerOrInfinite(){return this.addValidator({message:(e,r)=>`Expected ${r} to be an integer or infinite, got ${e}`,validator:e=>Dn.default.integer(e)||Dn.default.infinite(e)})}get uint8(){return this.integer.inRange(0,255)}get uint16(){return this.integer.inRange(0,65535)}get uint32(){return this.integer.inRange(0,4294967295)}get int8(){return this.integer.inRange(-128,127)}get int16(){return this.integer.inRange(-32768,32767)}get int32(){return this.integer.inRange(-2147483648,2147483647)}}fi.NumberPredicate=lh;var hi={};Object.defineProperty(hi,"__esModule",{value:!0});hi.BigIntPredicate=void 0;const ch=Ze();class dh extends ch.Predicate{constructor(e){super("bigint",e)}}hi.BigIntPredicate=dh;var pi={};Object.defineProperty(pi,"__esModule",{value:!0});pi.BooleanPredicate=void 0;const fh=Ze();class hh extends fh.Predicate{constructor(e){super("boolean",e)}get true(){return this.addValidator({message:(e,r)=>`Expected ${r} to be true, got ${e}`,validator:e=>e})}get false(){return this.addValidator({message:(e,r)=>`Expected ${r} to be false, got ${e}`,validator:e=>!e})}}pi.BooleanPredicate=hh;var mi={},zs={exports:{}};zs.exports;(function(t,e){var r=200,n="__lodash_hash_undefined__",a=1,s=2,o=9007199254740991,c="[object Arguments]",u="[object Array]",f="[object AsyncFunction]",l="[object Boolean]",h="[object Date]",d="[object Error]",m="[object Function]",b="[object GeneratorFunction]",x="[object Map]",y="[object Number]",g="[object Null]",E="[object Object]",D="[object Promise]",w="[object Proxy]",j="[object RegExp]",p="[object Set]",A="[object String]",k="[object Symbol]",V="[object Undefined]",H="[object WeakMap]",S="[object ArrayBuffer]",P="[object DataView]",I="[object Float32Array]",W="[object Float64Array]",_="[object Int8Array]",M="[object Int16Array]",O="[object Int32Array]",G="[object Uint8Array]",R="[object Uint8ClampedArray]",K="[object Uint16Array]",X="[object Uint32Array]",ae=/[\\^$.*+?()[\]{}|]/g,ke=/^\[object .+?Constructor\]$/,L=/^(?:0|[1-9]\d*)$/,B={};B[I]=B[W]=B[_]=B[M]=B[O]=B[G]=B[R]=B[K]=B[X]=!0,B[c]=B[u]=B[S]=B[l]=B[P]=B[h]=B[d]=B[m]=B[x]=B[y]=B[E]=B[j]=B[p]=B[A]=B[H]=!1;var re=typeof J=="object"&&J&&J.Object===Object&&J,se=typeof self=="object"&&self&&self.Object===Object&&self,ne=re||se||Function("return this")(),Ee=e&&!e.nodeType&&e,Le=Ee&&!0&&t&&!t.nodeType&&t,Et=Le&&Le.exports===Ee,Nt=Et&&re.process,ar=function(){try{return Nt&&Nt.binding&&Nt.binding("util")}catch{}}(),sr=ar&&ar.isTypedArray;function ve(v,$){for(var U=-1,ee=v==null?0:v.length,je=0,ce=[];++U<ee;){var Pe=v[U];$(Pe,U,v)&&(ce[je++]=Pe)}return ce}function Ue(v,$){for(var U=-1,ee=$.length,je=v.length;++U<ee;)v[je+U]=$[U];return v}function Xe(v,$){for(var U=-1,ee=v==null?0:v.length;++U<ee;)if($(v[U],U,v))return!0;return!1}function Be(v,$){for(var U=-1,ee=Array(v);++U<v;)ee[U]=$(U);return ee}function At(v){return function($){return v($)}}function ir(v,$){return v.has($)}function la(v,$){return v==null?void 0:v[$]}function _r(v){var $=-1,U=Array(v.size);return v.forEach(function(ee,je){U[++$]=[je,ee]}),U}function Er(v,$){return function(U){return v($(U))}}function yn(v){var $=-1,U=Array(v.size);return v.forEach(function(ee){U[++$]=ee}),U}var zr=Array.prototype,vn=Function.prototype,it=Object.prototype,Nr=ne["__core-js_shared__"],Hr=vn.toString,ot=it.hasOwnProperty,Ar=function(){var v=/[^.]+$/.exec(Nr&&Nr.keys&&Nr.keys.IE_PROTO||"");return v?"Symbol(src)_1."+v:""}(),Ht=it.toString,Wr=RegExp("^"+Hr.call(ot).replace(ae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),kr=Et?ne.Buffer:void 0,Wt=ne.Symbol,Gt=ne.Uint8Array,wn=it.propertyIsEnumerable,Gr=zr.splice,kt=Wt?Wt.toStringTag:void 0,Pt=Object.getOwnPropertySymbols,Jr=kr?kr.isBuffer:void 0,jr=Er(Object.keys,Object),Jt=It(ne,"DataView"),ut=It(ne,"Map"),tt=It(ne,"Promise"),yt=It(ne,"Set"),Lt=It(ne,"WeakMap"),Ke=It(Object,"create"),ca=rt(Jt),Sr=rt(ut),Yt=rt(tt),Yr=rt(yt),_n=rt(Lt),En=Wt?Wt.prototype:void 0,Zr=En?En.valueOf:void 0;function jt(v){var $=-1,U=v==null?0:v.length;for(this.clear();++$<U;){var ee=v[$];this.set(ee[0],ee[1])}}function N(){this.__data__=Ke?Ke(null):{},this.size=0}function z(v){var $=this.has(v)&&delete this.__data__[v];return this.size-=$?1:0,$}function Z(v){var $=this.__data__;if(Ke){var U=$[v];return U===n?void 0:U}return ot.call($,v)?$[v]:void 0}function ie(v){var $=this.__data__;return Ke?$[v]!==void 0:ot.call($,v)}function ue(v,$){var U=this.__data__;return this.size+=this.has(v)?0:1,U[v]=Ke&&$===void 0?n:$,this}jt.prototype.clear=N,jt.prototype.delete=z,jt.prototype.get=Z,jt.prototype.has=ie,jt.prototype.set=ue;function fe(v){var $=-1,U=v==null?0:v.length;for(this.clear();++$<U;){var ee=v[$];this.set(ee[0],ee[1])}}function oe(){this.__data__=[],this.size=0}function le(v){var $=this.__data__,U=De($,v);if(U<0)return!1;var ee=$.length-1;return U==ee?$.pop():Gr.call($,U,1),--this.size,!0}function ze(v){var $=this.__data__,U=De($,v);return U<0?void 0:$[U][1]}function we(v){return De(this.__data__,v)>-1}function Ae(v,$){var U=this.__data__,ee=De(U,v);return ee<0?(++this.size,U.push([v,$])):U[ee][1]=$,this}fe.prototype.clear=oe,fe.prototype.delete=le,fe.prototype.get=ze,fe.prototype.has=we,fe.prototype.set=Ae;function Te(v){var $=-1,U=v==null?0:v.length;for(this.clear();++$<U;){var ee=v[$];this.set(ee[0],ee[1])}}function Mt(){this.size=0,this.__data__={hash:new jt,map:new(ut||fe),string:new jt}}function St(v){var $=ge(this,v).delete(v);return this.size-=$?1:0,$}function Oe(v){return ge(this,v).get(v)}function Dr(v){return ge(this,v).has(v)}function da(v,$){var U=ge(this,v),ee=U.size;return U.set(v,$),this.size+=U.size==ee?0:1,this}Te.prototype.clear=Mt,Te.prototype.delete=St,Te.prototype.get=Oe,Te.prototype.has=Dr,Te.prototype.set=da;function T(v){var $=-1,U=v==null?0:v.length;for(this.__data__=new Te;++$<U;)this.add(v[$])}function F(v){return this.__data__.set(v,n),this}function Y(v){return this.__data__.has(v)}T.prototype.add=T.prototype.push=F,T.prototype.has=Y;function Q(v){var $=this.__data__=new fe(v);this.size=$.size}function Ne(){this.__data__=new fe,this.size=0}function he(v){var $=this.__data__,U=$.delete(v);return this.size=$.size,U}function Se(v){return this.__data__.get(v)}function $e(v){return this.__data__.has(v)}function vt(v,$){var U=this.__data__;if(U instanceof fe){var ee=U.__data__;if(!ut||ee.length<r-1)return ee.push([v,$]),this.size=++U.size,this;U=this.__data__=new Te(ee)}return U.set(v,$),this.size=U.size,this}Q.prototype.clear=Ne,Q.prototype.delete=he,Q.prototype.get=Se,Q.prototype.has=$e,Q.prototype.set=vt;function Me(v,$){var U=$r(v),ee=!U&&kn(v),je=!U&&!ee&&Pr(v),ce=!U&&!ee&&!je&&il(v),Pe=U||ee||je||ce,We=Pe?Be(v.length,String):[],Qe=We.length;for(var Ce in v)ot.call(v,Ce)&&!(Pe&&(Ce=="length"||je&&(Ce=="offset"||Ce=="parent")||ce&&(Ce=="buffer"||Ce=="byteLength"||Ce=="byteOffset")||Ft(Ce,Qe)))&&We.push(Ce);return We}function De(v,$){for(var U=v.length;U--;)if(pa(v[U][0],$))return U;return-1}function Dt(v,$,U){var ee=$(v);return $r(v)?ee:Ue(ee,U(v))}function lt(v){return v==null?v===void 0?V:g:kt&&kt in Object(v)?Zt(v):Or(v)}function He(v){return ma(v)&&lt(v)==c}function Tt(v,$,U,ee,je){return v===$?!0:v==null||$==null||!ma(v)&&!ma($)?v!==v&&$!==$:Tr(v,$,U,ee,Tt,je)}function Tr(v,$,U,ee,je,ce){var Pe=$r(v),We=$r($),Qe=Pe?u:Ie(v),Ce=We?u:Ie($);Qe=Qe==c?E:Qe,Ce=Ce==c?E:Ce;var wt=Qe==E,Rt=Ce==E,nt=Qe==Ce;if(nt&&Pr(v)){if(!Pr($))return!1;Pe=!0,wt=!1}if(nt&&!wt)return ce||(ce=new Q),Pe||il(v)?fa(v,$,U,ee,je,ce):uo(v,$,Qe,U,ee,je,ce);if(!(U&a)){var Ct=wt&&ot.call(v,"__wrapped__"),Ot=Rt&&ot.call($,"__wrapped__");if(Ct||Ot){var Lr=Ct?v.value():v,or=Ot?$.value():$;return ce||(ce=new Q),je(Lr,or,U,ee,ce)}}return nt?(ce||(ce=new Q),lo(v,$,U,ee,je,ce)):!1}function Nn(v){if(!sl(v)||Kr(v))return!1;var $=Qr(v)?Wr:ke;return $.test(rt(v))}function Cr(v){return ma(v)&&en(v.length)&&!!B[lt(v)]}function Xr(v){if(!An(v))return jr(v);var $=[];for(var U in Object(v))ot.call(v,U)&&U!="constructor"&&$.push(U);return $}function fa(v,$,U,ee,je,ce){var Pe=U&a,We=v.length,Qe=$.length;if(We!=Qe&&!(Pe&&Qe>We))return!1;var Ce=ce.get(v);if(Ce&&ce.get($))return Ce==$;var wt=-1,Rt=!0,nt=U&s?new T:void 0;for(ce.set(v,$),ce.set($,v);++wt<We;){var Ct=v[wt],Ot=$[wt];if(ee)var Lr=Pe?ee(Ot,Ct,wt,$,v,ce):ee(Ct,Ot,wt,v,$,ce);if(Lr!==void 0){if(Lr)continue;Rt=!1;break}if(nt){if(!Xe($,function(or,tn){if(!ir(nt,tn)&&(Ct===or||je(Ct,or,U,ee,ce)))return nt.push(tn)})){Rt=!1;break}}else if(!(Ct===Ot||je(Ct,Ot,U,ee,ce))){Rt=!1;break}}return ce.delete(v),ce.delete($),Rt}function uo(v,$,U,ee,je,ce,Pe){switch(U){case P:if(v.byteLength!=$.byteLength||v.byteOffset!=$.byteOffset)return!1;v=v.buffer,$=$.buffer;case S:return!(v.byteLength!=$.byteLength||!ce(new Gt(v),new Gt($)));case l:case h:case y:return pa(+v,+$);case d:return v.name==$.name&&v.message==$.message;case j:case A:return v==$+"";case x:var We=_r;case p:var Qe=ee&a;if(We||(We=yn),v.size!=$.size&&!Qe)return!1;var Ce=Pe.get(v);if(Ce)return Ce==$;ee|=s,Pe.set(v,$);var wt=fa(We(v),We($),ee,je,ce,Pe);return Pe.delete(v),wt;case k:if(Zr)return Zr.call(v)==Zr.call($)}return!1}function lo(v,$,U,ee,je,ce){var Pe=U&a,We=be(v),Qe=We.length,Ce=be($),wt=Ce.length;if(Qe!=wt&&!Pe)return!1;for(var Rt=Qe;Rt--;){var nt=We[Rt];if(!(Pe?nt in $:ot.call($,nt)))return!1}var Ct=ce.get(v);if(Ct&&ce.get($))return Ct==$;var Ot=!0;ce.set(v,$),ce.set($,v);for(var Lr=Pe;++Rt<Qe;){nt=We[Rt];var or=v[nt],tn=$[nt];if(ee)var ol=Pe?ee(tn,or,nt,$,v,ce):ee(or,tn,nt,v,$,ce);if(!(ol===void 0?or===tn||je(or,tn,U,ee,ce):ol)){Ot=!1;break}Lr||(Lr=nt=="constructor")}if(Ot&&!Lr){var ls=v.constructor,cs=$.constructor;ls!=cs&&"constructor"in v&&"constructor"in $&&!(typeof ls=="function"&&ls instanceof ls&&typeof cs=="function"&&cs instanceof cs)&&(Ot=!1)}return ce.delete(v),ce.delete($),Ot}function be(v){return Dt(v,_f,ha)}function ge(v,$){var U=v.__data__;return Xt($)?U[typeof $=="string"?"string":"hash"]:U.map}function It(v,$){var U=la(v,$);return Nn(U)?U:void 0}function Zt(v){var $=ot.call(v,kt),U=v[kt];try{v[kt]=void 0;var ee=!0}catch{}var je=Ht.call(v);return ee&&($?v[kt]=U:delete v[kt]),je}var ha=Pt?function(v){return v==null?[]:(v=Object(v),ve(Pt(v),function($){return wn.call(v,$)}))}:Ef,Ie=lt;(Jt&&Ie(new Jt(new ArrayBuffer(1)))!=P||ut&&Ie(new ut)!=x||tt&&Ie(tt.resolve())!=D||yt&&Ie(new yt)!=p||Lt&&Ie(new Lt)!=H)&&(Ie=function(v){var $=lt(v),U=$==E?v.constructor:void 0,ee=U?rt(U):"";if(ee)switch(ee){case ca:return P;case Sr:return x;case Yt:return D;case Yr:return p;case _n:return H}return $});function Ft(v,$){return $=$??o,!!$&&(typeof v=="number"||L.test(v))&&v>-1&&v%1==0&&v<$}function Xt(v){var $=typeof v;return $=="string"||$=="number"||$=="symbol"||$=="boolean"?v!=="__proto__":v===null}function Kr(v){return!!Ar&&Ar in v}function An(v){var $=v&&v.constructor,U=typeof $=="function"&&$.prototype||it;return v===U}function Or(v){return Ht.call(v)}function rt(v){if(v!=null){try{return Hr.call(v)}catch{}try{return v+""}catch{}}return""}function pa(v,$){return v===$||v!==v&&$!==$}var kn=He(function(){return arguments}())?He:function(v){return ma(v)&&ot.call(v,"callee")&&!wn.call(v,"callee")},$r=Array.isArray;function jn(v){return v!=null&&en(v.length)&&!Qr(v)}var Pr=Jr||Nf;function us(v,$){return Tt(v,$)}function Qr(v){if(!sl(v))return!1;var $=lt(v);return $==m||$==b||$==f||$==w}function en(v){return typeof v=="number"&&v>-1&&v%1==0&&v<=o}function sl(v){var $=typeof v;return v!=null&&($=="object"||$=="function")}function ma(v){return v!=null&&typeof v=="object"}var il=sr?At(sr):Cr;function _f(v){return jn(v)?Me(v):Xr(v)}function Ef(){return[]}function Nf(){return!1}t.exports=us})(zs,zs.exports);var gi=zs.exports,ln={},ra={};Object.defineProperty(ra,"__esModule",{value:!0});const ph=ta;function Kc(t,e,r,n=!0){r[ph.testSymbol](t,Kc,e,n)}ra.default=Kc;Object.defineProperty(ln,"__esModule",{value:!0});ln.exact=ln.partial=void 0;const Qc=Qn,ed=ra,td=ta;function rd(t,e,r){try{for(const n of Object.keys(e)){const a=r?`${r}.${n}`:n;if((0,td.isPredicate)(e[n]))(0,ed.default)(t[n],a,e[n]);else if(Qc.default.plainObject(e[n])){const s=rd(t[n],e[n],a);if(s!==!0)return s}}return!0}catch(n){return n.message}}ln.partial=rd;function nd(t,e,r,n){try{const a=new Set(Object.keys(t));for(const s of Object.keys(e)){a.delete(s);const o=r?`${r}.${s}`:s;if((0,td.isPredicate)(e[s]))(0,ed.default)(t[s],o,e[s]);else if(Qc.default.plainObject(e[s])){if(!Object.prototype.hasOwnProperty.call(t,s))return`Expected \`${o}\` to exist`;const c=nd(t[s],e[s],o);if(c!==!0)return c}}if(a.size>0){const s=[...a.keys()][0],o=r?`${r}.${s}`:s;return`Did not expect ${n?"element":"property"} \`${o}\` to exist, got \`${t[s]}\``}return!0}catch(a){return a.message}}ln.exact=nd;var na={};Object.defineProperty(na,"__esModule",{value:!0});const mh=ra;na.default=(t,e,r)=>{try{for(const n of t)(0,mh.default)(n,e,r,!1);return!0}catch(n){return n.message}};Object.defineProperty(mi,"__esModule",{value:!0});mi.ArrayPredicate=void 0;const gh=gi,bh=Ze(),xh=ln,yh=na;class vh extends bh.Predicate{constructor(e){super("array",e)}length(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have length \`${e}\`, got \`${r.length}\``,validator:r=>r.length===e})}minLength(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have a minimum length of \`${e}\`, got \`${r.length}\``,validator:r=>r.length>=e,negatedMessage:(r,n)=>`Expected ${n} to have a maximum length of \`${e-1}\`, got \`${r.length}\``})}maxLength(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have a maximum length of \`${e}\`, got \`${r.length}\``,validator:r=>r.length<=e,negatedMessage:(r,n)=>`Expected ${n} to have a minimum length of \`${e+1}\`, got \`${r.length}\``})}startsWith(e){return this.addValidator({message:(r,n)=>`Expected ${n} to start with \`${e}\`, got \`${r[0]}\``,validator:r=>r[0]===e})}endsWith(e){return this.addValidator({message:(r,n)=>`Expected ${n} to end with \`${e}\`, got \`${r[r.length-1]}\``,validator:r=>r[r.length-1]===e})}includes(...e){return this.addValidator({message:(r,n)=>`Expected ${n} to include all elements of \`${JSON.stringify(e)}\`, got \`${JSON.stringify(r)}\``,validator:r=>e.every(n=>r.includes(n))})}includesAny(...e){return this.addValidator({message:(r,n)=>`Expected ${n} to include any element of \`${JSON.stringify(e)}\`, got \`${JSON.stringify(r)}\``,validator:r=>e.some(n=>r.includes(n))})}get empty(){return this.addValidator({message:(e,r)=>`Expected ${r} to be empty, got \`${JSON.stringify(e)}\``,validator:e=>e.length===0})}get nonEmpty(){return this.addValidator({message:(e,r)=>`Expected ${r} to not be empty`,validator:e=>e.length>0})}deepEqual(e){return this.addValidator({message:(r,n)=>`Expected ${n} to be deeply equal to \`${JSON.stringify(e)}\`, got \`${JSON.stringify(r)}\``,validator:r=>gh(r,e)})}ofType(e){return this.addValidator({message:(r,n,a)=>`(${n}) ${a}`,validator:r=>(0,yh.default)(r,"values",e)})}exactShape(e){const r=e;return this.addValidator({message:(n,a,s)=>`${s.replace("Expected","Expected element")} in ${a}`,validator:n=>(0,xh.exact)(n,r,void 0,!0)})}}mi.ArrayPredicate=vh;var bi={},wh=t=>{const e=typeof t;return t!==null&&(e==="object"||e==="function")};const rn=wh,_h=new Set(["__proto__","prototype","constructor"]),Eh=t=>!t.some(e=>_h.has(e));function hs(t){const e=t.split("."),r=[];for(let n=0;n<e.length;n++){let a=e[n];for(;a[a.length-1]==="\\"&&e[n+1]!==void 0;)a=a.slice(0,-1)+".",a+=e[++n];r.push(a)}return Eh(r)?r:[]}var Nh={get(t,e,r){if(!rn(t)||typeof e!="string")return r===void 0?t:r;const n=hs(e);if(n.length!==0){for(let a=0;a<n.length;a++)if(t=t[n[a]],t==null){if(a!==n.length-1)return r;break}return t===void 0?r:t}},set(t,e,r){if(!rn(t)||typeof e!="string")return t;const n=t,a=hs(e);for(let s=0;s<a.length;s++){const o=a[s];rn(t[o])||(t[o]={}),s===a.length-1&&(t[o]=r),t=t[o]}return n},delete(t,e){if(!rn(t)||typeof e!="string")return!1;const r=hs(e);for(let n=0;n<r.length;n++){const a=r[n];if(n===r.length-1)return delete t[a],!0;if(t=t[a],!rn(t))return!1}},has(t,e){if(!rn(t)||typeof e!="string")return!1;const r=hs(e);if(r.length===0)return!1;for(let n=0;n<r.length;n++)if(rn(t)){if(!(r[n]in t))return!1;t=t[r[n]]}else return!1;return!0}},hn={};Object.defineProperty(hn,"__esModule",{value:!0});hn.default=(t,e,r=5)=>{const n=[];for(const a of e)if(!t.has(a)&&(n.push(a),n.length===r))return n;return n.length===0?!0:n};var ou={};Object.defineProperty(ou,"__esModule",{value:!0});const Ah=Qn,kh=ra,ad=(t,e)=>Ah.default.plainObject(t)?Object.values(t).every(r=>ad(r,e)):((0,kh.default)(t,"deep values",e,!1),!0);ou.default=(t,e)=>{try{return ad(t,e)}catch(r){return r.message}};Object.defineProperty(bi,"__esModule",{value:!0});bi.ObjectPredicate=void 0;const jh=Qn,ml=Nh,Sh=gi,Dh=hn,Th=na,Ch=ou,gl=ln,Oh=Ze();class $h extends Oh.Predicate{constructor(e){super("object",e)}get plain(){return this.addValidator({message:(e,r)=>`Expected ${r} to be a plain object`,validator:e=>jh.default.plainObject(e)})}get empty(){return this.addValidator({message:(e,r)=>`Expected ${r} to be empty, got \`${JSON.stringify(e)}\``,validator:e=>Object.keys(e).length===0})}get nonEmpty(){return this.addValidator({message:(e,r)=>`Expected ${r} to not be empty`,validator:e=>Object.keys(e).length>0})}valuesOfType(e){return this.addValidator({message:(r,n,a)=>`(${n}) ${a}`,validator:r=>(0,Th.default)(Object.values(r),"values",e)})}deepValuesOfType(e){return this.addValidator({message:(r,n,a)=>`(${n}) ${a}`,validator:r=>(0,Ch.default)(r,e)})}deepEqual(e){return this.addValidator({message:(r,n)=>`Expected ${n} to be deeply equal to \`${JSON.stringify(e)}\`, got \`${JSON.stringify(r)}\``,validator:r=>Sh(r,e)})}instanceOf(e){return this.addValidator({message:(r,n)=>{var a;let{name:s}=(a=r==null?void 0:r.constructor)!==null&&a!==void 0?a:{};return(!s||s==="Object")&&(s=JSON.stringify(r)),`Expected ${n} \`${s}\` to be of type \`${e.name}\``},validator:r=>r instanceof e})}hasKeys(...e){return this.addValidator({message:(r,n,a)=>`Expected ${n} to have keys \`${JSON.stringify(a)}\``,validator:r=>(0,Dh.default)({has:n=>ml.has(r,n)},e)})}hasAnyKeys(...e){return this.addValidator({message:(r,n)=>`Expected ${n} to have any key of \`${JSON.stringify(e)}\``,validator:r=>e.some(n=>ml.has(r,n))})}partialShape(e){return this.addValidator({message:(r,n,a)=>`${a.replace("Expected","Expected property")} in ${n}`,validator:r=>(0,gl.partial)(r,e)})}exactShape(e){return this.addValidator({message:(r,n,a)=>`${a.replace("Expected","Expected property")} in ${n}`,validator:r=>(0,gl.exact)(r,e)})}}bi.ObjectPredicate=$h;var xi={};Object.defineProperty(xi,"__esModule",{value:!0});xi.DatePredicate=void 0;const Ph=Ze();class Lh extends Ph.Predicate{constructor(e){super("date",e)}before(e){return this.addValidator({message:(r,n)=>`Expected ${n} ${r.toISOString()} to be before ${e.toISOString()}`,validator:r=>r.getTime()<e.getTime()})}after(e){return this.addValidator({message:(r,n)=>`Expected ${n} ${r.toISOString()} to be after ${e.toISOString()}`,validator:r=>r.getTime()>e.getTime()})}}xi.DatePredicate=Lh;var yi={};Object.defineProperty(yi,"__esModule",{value:!0});yi.ErrorPredicate=void 0;const Mh=Ze();class Ih extends Mh.Predicate{constructor(e){super("error",e)}name(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have name \`${e}\`, got \`${r.name}\``,validator:r=>r.name===e})}message(e){return this.addValidator({message:(r,n)=>`Expected ${n} message to be \`${e}\`, got \`${r.message}\``,validator:r=>r.message===e})}messageIncludes(e){return this.addValidator({message:(r,n)=>`Expected ${n} message to include \`${e}\`, got \`${r.message}\``,validator:r=>r.message.includes(e)})}hasKeys(...e){return this.addValidator({message:(r,n)=>`Expected ${n} message to have keys \`${e.join("`, `")}\``,validator:r=>e.every(n=>Object.prototype.hasOwnProperty.call(r,n))})}instanceOf(e){return this.addValidator({message:(r,n)=>`Expected ${n} \`${r.name}\` to be of type \`${e.name}\``,validator:r=>r instanceof e})}get typeError(){return this.instanceOf(TypeError)}get evalError(){return this.instanceOf(EvalError)}get rangeError(){return this.instanceOf(RangeError)}get referenceError(){return this.instanceOf(ReferenceError)}get syntaxError(){return this.instanceOf(SyntaxError)}get uriError(){return this.instanceOf(URIError)}}yi.ErrorPredicate=Ih;var vi={};Object.defineProperty(vi,"__esModule",{value:!0});vi.MapPredicate=void 0;const Fh=gi,bl=hn,xl=na,Rh=Ze();class Bh extends Rh.Predicate{constructor(e){super("Map",e)}size(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have size \`${e}\`, got \`${r.size}\``,validator:r=>r.size===e})}minSize(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have a minimum size of \`${e}\`, got \`${r.size}\``,validator:r=>r.size>=e,negatedMessage:(r,n)=>`Expected ${n} to have a maximum size of \`${e-1}\`, got \`${r.size}\``})}maxSize(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have a maximum size of \`${e}\`, got \`${r.size}\``,validator:r=>r.size<=e,negatedMessage:(r,n)=>`Expected ${n} to have a minimum size of \`${e+1}\`, got \`${r.size}\``})}hasKeys(...e){return this.addValidator({message:(r,n,a)=>`Expected ${n} to have keys \`${JSON.stringify(a)}\``,validator:r=>(0,bl.default)(r,e)})}hasAnyKeys(...e){return this.addValidator({message:(r,n)=>`Expected ${n} to have any key of \`${JSON.stringify(e)}\``,validator:r=>e.some(n=>r.has(n))})}hasValues(...e){return this.addValidator({message:(r,n,a)=>`Expected ${n} to have values \`${JSON.stringify(a)}\``,validator:r=>(0,bl.default)(new Set(r.values()),e)})}hasAnyValues(...e){return this.addValidator({message:(r,n)=>`Expected ${n} to have any value of \`${JSON.stringify(e)}\``,validator:r=>{const n=new Set(r.values());return e.some(a=>n.has(a))}})}keysOfType(e){return this.addValidator({message:(r,n,a)=>`(${n}) ${a}`,validator:r=>(0,xl.default)(r.keys(),"keys",e)})}valuesOfType(e){return this.addValidator({message:(r,n,a)=>`(${n}) ${a}`,validator:r=>(0,xl.default)(r.values(),"values",e)})}get empty(){return this.addValidator({message:(e,r)=>`Expected ${r} to be empty, got \`${JSON.stringify([...e])}\``,validator:e=>e.size===0})}get nonEmpty(){return this.addValidator({message:(e,r)=>`Expected ${r} to not be empty`,validator:e=>e.size>0})}deepEqual(e){return this.addValidator({message:(r,n)=>`Expected ${n} to be deeply equal to \`${JSON.stringify([...e])}\`, got \`${JSON.stringify([...r])}\``,validator:r=>Fh(r,e)})}}vi.MapPredicate=Bh;var wi={};Object.defineProperty(wi,"__esModule",{value:!0});wi.WeakMapPredicate=void 0;const Vh=hn,qh=Ze();class Uh extends qh.Predicate{constructor(e){super("WeakMap",e)}hasKeys(...e){return this.addValidator({message:(r,n,a)=>`Expected ${n} to have keys \`${JSON.stringify(a)}\``,validator:r=>(0,Vh.default)(r,e)})}hasAnyKeys(...e){return this.addValidator({message:(r,n)=>`Expected ${n} to have any key of \`${JSON.stringify(e)}\``,validator:r=>e.some(n=>r.has(n))})}}wi.WeakMapPredicate=Uh;var _i={};Object.defineProperty(_i,"__esModule",{value:!0});_i.SetPredicate=void 0;const zh=gi,Hh=hn,Wh=na,Gh=Ze();class Jh extends Gh.Predicate{constructor(e){super("Set",e)}size(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have size \`${e}\`, got \`${r.size}\``,validator:r=>r.size===e})}minSize(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have a minimum size of \`${e}\`, got \`${r.size}\``,validator:r=>r.size>=e,negatedMessage:(r,n)=>`Expected ${n} to have a maximum size of \`${e-1}\`, got \`${r.size}\``})}maxSize(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have a maximum size of \`${e}\`, got \`${r.size}\``,validator:r=>r.size<=e,negatedMessage:(r,n)=>`Expected ${n} to have a minimum size of \`${e+1}\`, got \`${r.size}\``})}has(...e){return this.addValidator({message:(r,n,a)=>`Expected ${n} to have items \`${JSON.stringify(a)}\``,validator:r=>(0,Hh.default)(r,e)})}hasAny(...e){return this.addValidator({message:(r,n)=>`Expected ${n} to have any item of \`${JSON.stringify(e)}\``,validator:r=>e.some(n=>r.has(n))})}ofType(e){return this.addValidator({message:(r,n,a)=>`(${n}) ${a}`,validator:r=>(0,Wh.default)(r,"values",e)})}get empty(){return this.addValidator({message:(e,r)=>`Expected ${r} to be empty, got \`${JSON.stringify([...e])}\``,validator:e=>e.size===0})}get nonEmpty(){return this.addValidator({message:(e,r)=>`Expected ${r} to not be empty`,validator:e=>e.size>0})}deepEqual(e){return this.addValidator({message:(r,n)=>`Expected ${n} to be deeply equal to \`${JSON.stringify([...e])}\`, got \`${JSON.stringify([...r])}\``,validator:r=>zh(r,e)})}}_i.SetPredicate=Jh;var Ei={};Object.defineProperty(Ei,"__esModule",{value:!0});Ei.WeakSetPredicate=void 0;const Yh=hn,Zh=Ze();class Xh extends Zh.Predicate{constructor(e){super("WeakSet",e)}has(...e){return this.addValidator({message:(r,n,a)=>`Expected ${n} to have items \`${JSON.stringify(a)}\``,validator:r=>(0,Yh.default)(r,e)})}hasAny(...e){return this.addValidator({message:(r,n)=>`Expected ${n} to have any item of \`${JSON.stringify(e)}\``,validator:r=>e.some(n=>r.has(n))})}}Ei.WeakSetPredicate=Xh;var Ni={};Object.defineProperty(Ni,"__esModule",{value:!0});Ni.TypedArrayPredicate=void 0;const Kh=Ze();class Qh extends Kh.Predicate{byteLength(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have byte length of \`${e}\`, got \`${r.byteLength}\``,validator:r=>r.byteLength===e})}minByteLength(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have a minimum byte length of \`${e}\`, got \`${r.byteLength}\``,validator:r=>r.byteLength>=e,negatedMessage:(r,n)=>`Expected ${n} to have a maximum byte length of \`${e-1}\`, got \`${r.byteLength}\``})}maxByteLength(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have a maximum byte length of \`${e}\`, got \`${r.byteLength}\``,validator:r=>r.byteLength<=e,negatedMessage:(r,n)=>`Expected ${n} to have a minimum byte length of \`${e+1}\`, got \`${r.byteLength}\``})}length(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have length \`${e}\`, got \`${r.length}\``,validator:r=>r.length===e})}minLength(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have a minimum length of \`${e}\`, got \`${r.length}\``,validator:r=>r.length>=e,negatedMessage:(r,n)=>`Expected ${n} to have a maximum length of \`${e-1}\`, got \`${r.length}\``})}maxLength(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have a maximum length of \`${e}\`, got \`${r.length}\``,validator:r=>r.length<=e,negatedMessage:(r,n)=>`Expected ${n} to have a minimum length of \`${e+1}\`, got \`${r.length}\``})}}Ni.TypedArrayPredicate=Qh;var Ai={};Object.defineProperty(Ai,"__esModule",{value:!0});Ai.ArrayBufferPredicate=void 0;const ep=Ze();class tp extends ep.Predicate{byteLength(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have byte length of \`${e}\`, got \`${r.byteLength}\``,validator:r=>r.byteLength===e})}minByteLength(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have a minimum byte length of \`${e}\`, got \`${r.byteLength}\``,validator:r=>r.byteLength>=e,negatedMessage:(r,n)=>`Expected ${n} to have a maximum byte length of \`${e-1}\`, got \`${r.byteLength}\``})}maxByteLength(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have a maximum byte length of \`${e}\`, got \`${r.byteLength}\``,validator:r=>r.byteLength<=e,negatedMessage:(r,n)=>`Expected ${n} to have a minimum byte length of \`${e+1}\`, got \`${r.byteLength}\``})}}Ai.ArrayBufferPredicate=tp;var ki={};Object.defineProperty(ki,"__esModule",{value:!0});ki.DataViewPredicate=void 0;const rp=Ze();class np extends rp.Predicate{constructor(e){super("DataView",e)}byteLength(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have byte length of \`${e}\`, got \`${r.byteLength}\``,validator:r=>r.byteLength===e})}minByteLength(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have a minimum byte length of \`${e}\`, got \`${r.byteLength}\``,validator:r=>r.byteLength>=e,negatedMessage:(r,n)=>`Expected ${n} to have a maximum byte length of \`${e-1}\`, got \`${r.byteLength}\``})}maxByteLength(e){return this.addValidator({message:(r,n)=>`Expected ${n} to have a maximum byte length of \`${e}\`, got \`${r.byteLength}\``,validator:r=>r.byteLength<=e,negatedMessage:(r,n)=>`Expected ${n} to have a minimum byte length of \`${e+1}\`, got \`${r.byteLength}\``})}}ki.DataViewPredicate=np;var ji={};Object.defineProperty(ji,"__esModule",{value:!0});ji.AnyPredicate=void 0;const yl=ea,ap=ta,sp=Ga;class ip{constructor(e,r={}){Object.defineProperty(this,"predicates",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:r})}[ap.testSymbol](e,r,n,a){const s=new Map;for(const o of this.predicates)try{r(e,n,o,a);return}catch(c){if(e===void 0&&this.options.optional===!0)return;if(c instanceof yl.ArgumentError)for(const[u,f]of c.validationErrors.entries()){const l=s.get(u);s.set(u,new Set([...l??[],...f]))}}if(s.size>0){const o=(0,sp.generateArgumentErrorMessage)(s,!0);throw new yl.ArgumentError(`Any predicate failed with the following errors:
93
+ ${o}`,r,s)}}}ji.AnyPredicate=ip;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.AnyPredicate=t.DataViewPredicate=t.ArrayBufferPredicate=t.TypedArrayPredicate=t.WeakSetPredicate=t.SetPredicate=t.WeakMapPredicate=t.MapPredicate=t.ErrorPredicate=t.DatePredicate=t.ObjectPredicate=t.ArrayPredicate=t.BooleanPredicate=t.BigIntPredicate=t.NumberPredicate=t.StringPredicate=void 0;const e=di;Object.defineProperty(t,"StringPredicate",{enumerable:!0,get:function(){return e.StringPredicate}});const r=fi;Object.defineProperty(t,"NumberPredicate",{enumerable:!0,get:function(){return r.NumberPredicate}});const n=hi;Object.defineProperty(t,"BigIntPredicate",{enumerable:!0,get:function(){return n.BigIntPredicate}});const a=pi;Object.defineProperty(t,"BooleanPredicate",{enumerable:!0,get:function(){return a.BooleanPredicate}});const s=Ze(),o=mi;Object.defineProperty(t,"ArrayPredicate",{enumerable:!0,get:function(){return o.ArrayPredicate}});const c=bi;Object.defineProperty(t,"ObjectPredicate",{enumerable:!0,get:function(){return c.ObjectPredicate}});const u=xi;Object.defineProperty(t,"DatePredicate",{enumerable:!0,get:function(){return u.DatePredicate}});const f=yi;Object.defineProperty(t,"ErrorPredicate",{enumerable:!0,get:function(){return f.ErrorPredicate}});const l=vi;Object.defineProperty(t,"MapPredicate",{enumerable:!0,get:function(){return l.MapPredicate}});const h=wi;Object.defineProperty(t,"WeakMapPredicate",{enumerable:!0,get:function(){return h.WeakMapPredicate}});const d=_i;Object.defineProperty(t,"SetPredicate",{enumerable:!0,get:function(){return d.SetPredicate}});const m=Ei;Object.defineProperty(t,"WeakSetPredicate",{enumerable:!0,get:function(){return m.WeakSetPredicate}});const b=Ni;Object.defineProperty(t,"TypedArrayPredicate",{enumerable:!0,get:function(){return b.TypedArrayPredicate}});const x=Ai;Object.defineProperty(t,"ArrayBufferPredicate",{enumerable:!0,get:function(){return x.ArrayBufferPredicate}});const y=ki;Object.defineProperty(t,"DataViewPredicate",{enumerable:!0,get:function(){return y.DataViewPredicate}});const g=ji;Object.defineProperty(t,"AnyPredicate",{enumerable:!0,get:function(){return g.AnyPredicate}}),t.default=(E,D)=>(Object.defineProperties(E,{string:{get:()=>new e.StringPredicate(D)},number:{get:()=>new r.NumberPredicate(D)},bigint:{get:()=>new n.BigIntPredicate(D)},boolean:{get:()=>new a.BooleanPredicate(D)},undefined:{get:()=>new s.Predicate("undefined",D)},null:{get:()=>new s.Predicate("null",D)},nullOrUndefined:{get:()=>new s.Predicate("nullOrUndefined",D)},nan:{get:()=>new s.Predicate("nan",D)},symbol:{get:()=>new s.Predicate("symbol",D)},array:{get:()=>new o.ArrayPredicate(D)},object:{get:()=>new c.ObjectPredicate(D)},date:{get:()=>new u.DatePredicate(D)},error:{get:()=>new f.ErrorPredicate(D)},map:{get:()=>new l.MapPredicate(D)},weakMap:{get:()=>new h.WeakMapPredicate(D)},set:{get:()=>new d.SetPredicate(D)},weakSet:{get:()=>new m.WeakSetPredicate(D)},function:{get:()=>new s.Predicate("Function",D)},buffer:{get:()=>new s.Predicate("Buffer",D)},regExp:{get:()=>new s.Predicate("RegExp",D)},promise:{get:()=>new s.Predicate("Promise",D)},typedArray:{get:()=>new b.TypedArrayPredicate("TypedArray",D)},int8Array:{get:()=>new b.TypedArrayPredicate("Int8Array",D)},uint8Array:{get:()=>new b.TypedArrayPredicate("Uint8Array",D)},uint8ClampedArray:{get:()=>new b.TypedArrayPredicate("Uint8ClampedArray",D)},int16Array:{get:()=>new b.TypedArrayPredicate("Int16Array",D)},uint16Array:{get:()=>new b.TypedArrayPredicate("Uint16Array",D)},int32Array:{get:()=>new b.TypedArrayPredicate("Int32Array",D)},uint32Array:{get:()=>new b.TypedArrayPredicate("Uint32Array",D)},float32Array:{get:()=>new b.TypedArrayPredicate("Float32Array",D)},float64Array:{get:()=>new b.TypedArrayPredicate("Float64Array",D)},arrayBuffer:{get:()=>new x.ArrayBufferPredicate("ArrayBuffer",D)},sharedArrayBuffer:{get:()=>new x.ArrayBufferPredicate("SharedArrayBuffer",D)},dataView:{get:()=>new y.DataViewPredicate(D)},iterable:{get:()=>new s.Predicate("Iterable",D)},any:{value:(...w)=>new g.AnyPredicate(w,D)}}),E)})(Us);Object.defineProperty(iu,"__esModule",{value:!0});const op=Us;iu.default=t=>(Object.defineProperties(t,{optional:{get:()=>(0,op.default)({},{optional:!0})}}),t);(function(t){var e=J&&J.__createBinding||(Object.create?function(m,b,x,y){y===void 0&&(y=x);var g=Object.getOwnPropertyDescriptor(b,x);(!g||("get"in g?!b.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return b[x]}}),Object.defineProperty(m,y,g)}:function(m,b,x,y){y===void 0&&(y=x),m[y]=b[x]}),r=J&&J.__exportStar||function(m,b){for(var x in m)x!=="default"&&!Object.prototype.hasOwnProperty.call(b,x)&&e(b,m,x)};Object.defineProperty(t,"__esModule",{value:!0}),t.ArgumentError=t.Predicate=void 0;const n=Yf,a=li,s=Ze();Object.defineProperty(t,"Predicate",{enumerable:!0,get:function(){return s.Predicate}});const o=ta,c=iu,u=Us,f=ra,l=(m,b,x)=>{if(!(0,o.isPredicate)(b)&&typeof b!="string")throw new TypeError(`Expected second argument to be a predicate or a string, got \`${typeof b}\``);if((0,o.isPredicate)(b)){const y=(0,n.default)();(0,f.default)(m,()=>(0,a.inferLabel)(y),b);return}(0,f.default)(m,b,x)};Object.defineProperties(l,{isValid:{value:(m,b)=>{try{return(0,f.default)(m,"",b),!0}catch{return!1}}},create:{value:(m,b)=>(x,y)=>{if((0,o.isPredicate)(m)){const g=(0,n.default)();(0,f.default)(x,y??(()=>(0,a.inferLabel)(g)),m);return}(0,f.default)(x,y??m,b)}}});const h=(0,u.default)((0,c.default)(l));t.default=h,r(Us,t);var d=ea;Object.defineProperty(t,"ArgumentError",{enumerable:!0,get:function(){return d.ArgumentError}})})(Kn);var ps;function sd(t){return ps=ps||document.createElement("textarea"),ps.innerHTML="&"+t+";",ps.value}function up(t){return Object.prototype.toString.call(t)}function lp(t){return up(t)==="[object String]"}var cp=Object.prototype.hasOwnProperty;function id(t,e){return t?cp.call(t,e):!1}function uu(t){var e=[].slice.call(arguments,1);return e.forEach(function(r){if(r){if(typeof r!="object")throw new TypeError(r+"must be object");Object.keys(r).forEach(function(n){t[n]=r[n]})}}),t}var dp=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function Rn(t){return t.indexOf("\\")<0?t:t.replace(dp,"$1")}function lu(t){return!(t>=55296&&t<=57343||t>=64976&&t<=65007||(t&65535)===65535||(t&65535)===65534||t>=0&&t<=8||t===11||t>=14&&t<=31||t>=127&&t<=159||t>1114111)}function Hs(t){if(t>65535){t-=65536;var e=55296+(t>>10),r=56320+(t&1023);return String.fromCharCode(e,r)}return String.fromCharCode(t)}var fp=/&([a-z#][a-z0-9]{1,31});/gi,hp=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;function pp(t,e){var r=0,n=sd(e);return e!==n?n:e.charCodeAt(0)===35&&hp.test(e)&&(r=e[1].toLowerCase()==="x"?parseInt(e.slice(2),16):parseInt(e.slice(1),10),lu(r))?Hs(r):t}function Fr(t){return t.indexOf("&")<0?t:t.replace(fp,pp)}var mp=/[&<>"]/,gp=/[&<>"]/g,bp={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function xp(t){return bp[t]}function dt(t){return mp.test(t)?t.replace(gp,xp):t}var yp=Object.freeze({isString:lp,has:id,assign:uu,unescapeMd:Rn,isValidEntityCode:lu,fromCodePoint:Hs,replaceEntities:Fr,escapeHtml:dt}),te={};te.blockquote_open=function(){return`<blockquote>
94
+ `};te.blockquote_close=function(t,e){return"</blockquote>"+pn(t,e)};te.code=function(t,e){return t[e].block?"<pre><code>"+dt(t[e].content)+"</code></pre>"+pn(t,e):"<code>"+dt(t[e].content)+"</code>"};te.fence=function(t,e,r,n,a){var s=t[e],o="",c=r.langPrefix,u="",f,l,h;if(s.params){if(f=s.params.split(/\s+/g),l=f.join(" "),id(a.rules.fence_custom,f[0]))return a.rules.fence_custom[f[0]](t,e,r,n,a);u=dt(Fr(Rn(l))),o=' class="'+c+u+'"'}return r.highlight?h=r.highlight.apply(r.highlight,[s.content].concat(f))||dt(s.content):h=dt(s.content),"<pre><code"+o+">"+h+"</code></pre>"+pn(t,e)};te.fence_custom={};te.heading_open=function(t,e){return"<h"+t[e].hLevel+">"};te.heading_close=function(t,e){return"</h"+t[e].hLevel+`>
95
+ `};te.hr=function(t,e,r){return(r.xhtmlOut?"<hr />":"<hr>")+pn(t,e)};te.bullet_list_open=function(){return`<ul>
96
+ `};te.bullet_list_close=function(t,e){return"</ul>"+pn(t,e)};te.list_item_open=function(){return"<li>"};te.list_item_close=function(){return`</li>
97
+ `};te.ordered_list_open=function(t,e){var r=t[e],n=r.order>1?' start="'+r.order+'"':"";return"<ol"+n+`>
98
+ `};te.ordered_list_close=function(t,e){return"</ol>"+pn(t,e)};te.paragraph_open=function(t,e){return t[e].tight?"":"<p>"};te.paragraph_close=function(t,e){var r=!(t[e].tight&&e&&t[e-1].type==="inline"&&!t[e-1].content);return(t[e].tight?"":"</p>")+(r?pn(t,e):"")};te.link_open=function(t,e,r){var n=t[e].title?' title="'+dt(Fr(t[e].title))+'"':"",a=r.linkTarget?' target="'+r.linkTarget+'"':"";return'<a href="'+dt(t[e].href)+'"'+n+a+">"};te.link_close=function(){return"</a>"};te.image=function(t,e,r){var n=' src="'+dt(t[e].src)+'"',a=t[e].title?' title="'+dt(Fr(t[e].title))+'"':"",s=' alt="'+(t[e].alt?dt(Fr(Rn(t[e].alt))):"")+'"',o=r.xhtmlOut?" /":"";return"<img"+n+s+a+o+">"};te.table_open=function(){return`<table>
99
+ `};te.table_close=function(){return`</table>
100
+ `};te.thead_open=function(){return`<thead>
101
+ `};te.thead_close=function(){return`</thead>
102
+ `};te.tbody_open=function(){return`<tbody>
103
+ `};te.tbody_close=function(){return`</tbody>
104
+ `};te.tr_open=function(){return"<tr>"};te.tr_close=function(){return`</tr>
105
+ `};te.th_open=function(t,e){var r=t[e];return"<th"+(r.align?' style="text-align:'+r.align+'"':"")+">"};te.th_close=function(){return"</th>"};te.td_open=function(t,e){var r=t[e];return"<td"+(r.align?' style="text-align:'+r.align+'"':"")+">"};te.td_close=function(){return"</td>"};te.strong_open=function(){return"<strong>"};te.strong_close=function(){return"</strong>"};te.em_open=function(){return"<em>"};te.em_close=function(){return"</em>"};te.del_open=function(){return"<del>"};te.del_close=function(){return"</del>"};te.ins_open=function(){return"<ins>"};te.ins_close=function(){return"</ins>"};te.mark_open=function(){return"<mark>"};te.mark_close=function(){return"</mark>"};te.sub=function(t,e){return"<sub>"+dt(t[e].content)+"</sub>"};te.sup=function(t,e){return"<sup>"+dt(t[e].content)+"</sup>"};te.hardbreak=function(t,e,r){return r.xhtmlOut?`<br />
98
106
  `:`<br>
99
- `};ee.softbreak=function(t,e,r){return r.breaks?r.xhtmlOut?`<br />
107
+ `};te.softbreak=function(t,e,r){return r.breaks?r.xhtmlOut?`<br />
100
108
  `:`<br>
101
109
  `:`
102
- `};ee.text=function(t,e){return He(t[e].content)};ee.htmlblock=function(t,e){return t[e].content};ee.htmltag=function(t,e){return t[e].content};ee.abbr_open=function(t,e){return'<abbr title="'+He(hr(t[e].title))+'">'};ee.abbr_close=function(){return"</abbr>"};ee.footnote_ref=function(t,e){var r=Number(t[e].id+1).toString(),n="fnref"+r;return t[e].subId>0&&(n+=":"+t[e].subId),'<sup class="footnote-ref"><a href="#fn'+r+'" id="'+n+'">['+r+"]</a></sup>"};ee.footnote_block_open=function(t,e,r){var n=r.xhtmlOut?`<hr class="footnotes-sep" />
110
+ `};te.text=function(t,e){return dt(t[e].content)};te.htmlblock=function(t,e){return t[e].content};te.htmltag=function(t,e){return t[e].content};te.abbr_open=function(t,e){return'<abbr title="'+dt(Fr(t[e].title))+'">'};te.abbr_close=function(){return"</abbr>"};te.footnote_ref=function(t,e){var r=Number(t[e].id+1).toString(),n="fnref"+r;return t[e].subId>0&&(n+=":"+t[e].subId),'<sup class="footnote-ref"><a href="#fn'+r+'" id="'+n+'">['+r+"]</a></sup>"};te.footnote_block_open=function(t,e,r){var n=r.xhtmlOut?`<hr class="footnotes-sep" />
103
111
  `:`<hr class="footnotes-sep">
104
112
  `;return n+`<section class="footnotes">
105
113
  <ol class="footnotes-list">
106
- `};ee.footnote_block_close=function(){return`</ol>
114
+ `};te.footnote_block_close=function(){return`</ol>
107
115
  </section>
108
- `};ee.footnote_open=function(t,e){var r=Number(t[e].id+1).toString();return'<li id="fn'+r+'" class="footnote-item">'};ee.footnote_close=function(){return`</li>
109
- `};ee.footnote_anchor=function(t,e){var r=Number(t[e].id+1).toString(),n="fnref"+r;return t[e].subId>0&&(n+=":"+t[e].subId),' <a href="#'+n+'" class="footnote-backref">↩</a>'};ee.dl_open=function(){return`<dl>
110
- `};ee.dt_open=function(){return"<dt>"};ee.dd_open=function(){return"<dd>"};ee.dl_close=function(){return`</dl>
111
- `};ee.dt_close=function(){return`</dt>
112
- `};ee.dd_close=function(){return`</dd>
113
- `};function od(t,e){return++e>=t.length-2?e:t[e].type==="paragraph_open"&&t[e].tight&&t[e+1].type==="inline"&&t[e+1].content.length===0&&t[e+2].type==="paragraph_close"&&t[e+2].tight?od(t,e+2):e}var qr=ee.getBreak=function(e,r){return r=od(e,r),r<e.length&&e[r].type==="list_item_close"?"":`
114
- `};function cu(){this.rules=uu({},ee),this.getBreak=ee.getBreak}cu.prototype.renderInline=function(t,e,r){for(var n=this.rules,a=t.length,s=0,o="";a--;)o+=n[t[s].type](t,s++,e,r,this);return o};cu.prototype.render=function(t,e,r){for(var n=this.rules,a=t.length,s=-1,o="";++s<a;)t[s].type==="inline"?o+=this.renderInline(t[s].children,e,r):o+=n[t[s].type](t,s,e,r,this);return o};function it(){this.__rules__=[],this.__cache__=null}it.prototype.__find__=function(t){for(var e=this.__rules__.length,r=-1;e--;)if(this.__rules__[++r].name===t)return r;return-1};it.prototype.__compile__=function(){var t=this,e=[""];t.__rules__.forEach(function(r){r.enabled&&r.alt.forEach(function(n){e.indexOf(n)<0&&e.push(n)})}),t.__cache__={},e.forEach(function(r){t.__cache__[r]=[],t.__rules__.forEach(function(n){n.enabled&&(r&&n.alt.indexOf(r)<0||t.__cache__[r].push(n.fn))})})};it.prototype.at=function(t,e,r){var n=this.__find__(t),a=r||{};if(n===-1)throw new Error("Parser rule not found: "+t);this.__rules__[n].fn=e,this.__rules__[n].alt=a.alt||[],this.__cache__=null};it.prototype.before=function(t,e,r,n){var a=this.__find__(t),s=n||{};if(a===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(a,0,{name:e,enabled:!0,fn:r,alt:s.alt||[]}),this.__cache__=null};it.prototype.after=function(t,e,r,n){var a=this.__find__(t),s=n||{};if(a===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(a+1,0,{name:e,enabled:!0,fn:r,alt:s.alt||[]}),this.__cache__=null};it.prototype.push=function(t,e,r){var n=r||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:n.alt||[]}),this.__cache__=null};it.prototype.enable=function(t,e){t=Array.isArray(t)?t:[t],e&&this.__rules__.forEach(function(r){r.enabled=!1}),t.forEach(function(r){var n=this.__find__(r);if(n<0)throw new Error("Rules manager: invalid rule name "+r);this.__rules__[n].enabled=!0},this),this.__cache__=null};it.prototype.disable=function(t){t=Array.isArray(t)?t:[t],t.forEach(function(e){var r=this.__find__(e);if(r<0)throw new Error("Rules manager: invalid rule name "+e);this.__rules__[r].enabled=!1},this),this.__cache__=null};it.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};function vp(t){t.inlineMode?t.tokens.push({type:"inline",content:t.src.replace(/\n/g," ").trim(),level:0,lines:[0,1],children:[]}):t.block.parse(t.src,t.options,t.env,t.tokens)}function Ur(t,e,r,n,a){this.src=t,this.env=n,this.options=r,this.parser=e,this.tokens=a,this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache=[],this.isInLabel=!1,this.linkLevel=0,this.linkContent="",this.labelUnmatchedScopes=0}Ur.prototype.pushPending=function(){this.tokens.push({type:"text",content:this.pending,level:this.pendingLevel}),this.pending=""};Ur.prototype.push=function(t){this.pending&&this.pushPending(),this.tokens.push(t),this.pendingLevel=this.level};Ur.prototype.cacheSet=function(t,e){for(var r=this.cache.length;r<=t;r++)this.cache.push(0);this.cache[t]=e};Ur.prototype.cacheGet=function(t){return t<this.cache.length?this.cache[t]:0};function la(t,e){var r,n,a,s=-1,o=t.posMax,c=t.pos,u=t.isInLabel;if(t.isInLabel)return-1;if(t.labelUnmatchedScopes)return t.labelUnmatchedScopes--,-1;for(t.pos=e+1,t.isInLabel=!0,r=1;t.pos<o;){if(a=t.src.charCodeAt(t.pos),a===91)r++;else if(a===93&&(r--,r===0)){n=!0;break}t.parser.skipToken(t)}return n?(s=t.pos,t.labelUnmatchedScopes=0):t.labelUnmatchedScopes=r-1,t.pos=c,t.isInLabel=u,s}function wp(t,e,r,n){var a,s,o,c,u,f;if(t.charCodeAt(0)!==42||t.charCodeAt(1)!==91||t.indexOf("]:")===-1||(a=new Ur(t,e,r,n,[]),s=la(a,1),s<0||t.charCodeAt(s+1)!==58))return-1;for(c=a.posMax,o=s+2;o<c&&a.src.charCodeAt(o)!==10;o++);return u=t.slice(2,s),f=t.slice(s+2,o).trim(),f.length===0?-1:(n.abbreviations||(n.abbreviations={}),typeof n.abbreviations[":"+u]>"u"&&(n.abbreviations[":"+u]=f),o)}function _p(t){var e=t.tokens,r,n,a,s;if(!t.inlineMode){for(r=1,n=e.length-1;r<n;r++)if(e[r-1].type==="paragraph_open"&&e[r].type==="inline"&&e[r+1].type==="paragraph_close"){for(a=e[r].content;a.length&&(s=wp(a,t.inline,t.options,t.env),!(s<0));)a=a.slice(s).trim();e[r].content=a,a.length||(e[r-1].tight=!0,e[r+1].tight=!0)}}}function $o(t){var e=hr(t);try{e=decodeURI(e)}catch{}return encodeURI(e)}function ud(t,e){var r,n,a,s=e,o=t.posMax;if(t.src.charCodeAt(e)===60){for(e++;e<o;){if(r=t.src.charCodeAt(e),r===10)return!1;if(r===62)return a=$o(gn(t.src.slice(s+1,e))),t.parser.validateLink(a)?(t.pos=e+1,t.linkContent=a,!0):!1;if(r===92&&e+1<o){e+=2;continue}e++}return!1}for(n=0;e<o&&(r=t.src.charCodeAt(e),!(r===32||r<32||r===127));){if(r===92&&e+1<o){e+=2;continue}if(r===40&&(n++,n>1)||r===41&&(n--,n<0))break;e++}return s===e||(a=gn(t.src.slice(s,e)),!t.parser.validateLink(a))?!1:(t.linkContent=a,t.pos=e,!0)}function ld(t,e){var r,n=e,a=t.posMax,s=t.src.charCodeAt(e);if(s!==34&&s!==39&&s!==40)return!1;for(e++,s===40&&(s=41);e<a;){if(r=t.src.charCodeAt(e),r===s)return t.pos=e+1,t.linkContent=gn(t.src.slice(n+1,e)),!0;if(r===92&&e+1<a){e+=2;continue}e++}return!1}function cd(t){return t.trim().replace(/\s+/g," ").toUpperCase()}function Ep(t,e,r,n){var a,s,o,c,u,f,l,h,d;if(t.charCodeAt(0)!==91||t.indexOf("]:")===-1||(a=new Ur(t,e,r,n,[]),s=la(a,0),s<0||t.charCodeAt(s+1)!==58))return-1;for(c=a.posMax,o=s+2;o<c&&(u=a.src.charCodeAt(o),!(u!==32&&u!==10));o++);if(!ud(a,o))return-1;for(l=a.linkContent,o=a.pos,f=o,o=o+1;o<c&&(u=a.src.charCodeAt(o),!(u!==32&&u!==10));o++);for(o<c&&f!==o&&ld(a,o)?(h=a.linkContent,o=a.pos):(h="",o=f);o<c&&a.src.charCodeAt(o)===32;)o++;return o<c&&a.src.charCodeAt(o)!==10?-1:(d=cd(t.slice(1,s)),typeof n.references[d]>"u"&&(n.references[d]={title:h,href:l}),o)}function Np(t){var e=t.tokens,r,n,a,s;if(t.env.references=t.env.references||{},!t.inlineMode){for(r=1,n=e.length-1;r<n;r++)if(e[r].type==="inline"&&e[r-1].type==="paragraph_open"&&e[r+1].type==="paragraph_close"){for(a=e[r].content;a.length&&(s=Ep(a,t.inline,t.options,t.env),!(s<0));)a=a.slice(s).trim();e[r].content=a,a.length||(e[r-1].tight=!0,e[r+1].tight=!0)}}}function Ap(t){var e=t.tokens,r,n,a;for(n=0,a=e.length;n<a;n++)r=e[n],r.type==="inline"&&t.inline.parse(r.content,t.options,t.env,r.children)}function kp(t){var e,r,n,a,s,o,c,u,f,l=0,h=!1,d={};if(t.env.footnotes&&(t.tokens=t.tokens.filter(function(m){return m.type==="footnote_reference_open"?(h=!0,u=[],f=m.label,!1):m.type==="footnote_reference_close"?(h=!1,d[":"+f]=u,!1):(h&&u.push(m),!h)}),!!t.env.footnotes.list)){for(o=t.env.footnotes.list,t.tokens.push({type:"footnote_block_open",level:l++}),e=0,r=o.length;e<r;e++){for(t.tokens.push({type:"footnote_open",id:e,level:l++}),o[e].tokens?(c=[],c.push({type:"paragraph_open",tight:!1,level:l++}),c.push({type:"inline",content:"",level:l,children:o[e].tokens}),c.push({type:"paragraph_close",tight:!1,level:--l})):o[e].label&&(c=d[":"+o[e].label]),t.tokens=t.tokens.concat(c),t.tokens[t.tokens.length-1].type==="paragraph_close"?s=t.tokens.pop():s=null,a=o[e].count>0?o[e].count:1,n=0;n<a;n++)t.tokens.push({type:"footnote_anchor",id:e,subId:n,level:l});s&&t.tokens.push(s),t.tokens.push({type:"footnote_close",level:--l})}t.tokens.push({type:"footnote_block_close",level:--l})}}var vl=`
115
- ()[]'".,!?-`;function fo(t){return t.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1")}function jp(t){var e,r,n,a,s,o,c,u,f,l,h,d,m=t.tokens;if(t.env.abbreviations){for(t.env.abbrRegExp||(d="(^|["+vl.split("").map(fo).join("")+"])("+Object.keys(t.env.abbreviations).map(function(b){return b.substr(1)}).sort(function(b,x){return x.length-b.length}).map(fo).join("|")+")($|["+vl.split("").map(fo).join("")+"])",t.env.abbrRegExp=new RegExp(d,"g")),l=t.env.abbrRegExp,r=0,n=m.length;r<n;r++)if(m[r].type==="inline"){for(a=m[r].children,e=a.length-1;e>=0;e--)if(s=a[e],s.type==="text"){for(u=0,o=s.content,l.lastIndex=0,f=s.level,c=[];h=l.exec(o);)l.lastIndex>u&&c.push({type:"text",content:o.slice(u,h.index+h[1].length),level:f}),c.push({type:"abbr_open",title:t.env.abbreviations[":"+h[2]],level:f++}),c.push({type:"text",content:h[2],level:f}),c.push({type:"abbr_close",level:--f}),u=l.lastIndex-h[3].length;c.length&&(u<o.length&&c.push({type:"text",content:o.slice(u),level:f}),m[r].children=a=[].concat(a.slice(0,e),c,a.slice(e+1)))}}}}var Sp=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Dp=/\((c|tm|r|p)\)/ig,Tp={c:"©",r:"®",p:"§",tm:"™"};function Cp(t){return t.indexOf("(")<0?t:t.replace(Dp,function(e,r){return Tp[r.toLowerCase()]})}function Op(t){var e,r,n,a,s;if(t.options.typographer){for(s=t.tokens.length-1;s>=0;s--)if(t.tokens[s].type==="inline")for(a=t.tokens[s].children,e=a.length-1;e>=0;e--)r=a[e],r.type==="text"&&(n=r.content,n=Cp(n),Sp.test(n)&&(n=n.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/mg,"$1—$2").replace(/(^|\s)--(\s|$)/mg,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/mg,"$1–$2")),r.content=n)}}var $p=/['"]/,wl=/['"]/g,Pp=/[-\s()\[\]]/,_l="’";function El(t,e){return e<0||e>=t.length?!1:!Pp.test(t[e])}function on(t,e,r){return t.substr(0,e)+r+t.substr(e+1)}function Lp(t){var e,r,n,a,s,o,c,u,f,l,h,d,m,b,x,y,g;if(t.options.typographer){for(g=[],x=t.tokens.length-1;x>=0;x--)if(t.tokens[x].type==="inline"){for(y=t.tokens[x].children,g.length=0,e=0;e<y.length;e++)if(r=y[e],!(r.type!=="text"||$p.test(r.text))){for(c=y[e].level,m=g.length-1;m>=0&&!(g[m].level<=c);m--);g.length=m+1,n=r.content,s=0,o=n.length;e:for(;s<o&&(wl.lastIndex=s,a=wl.exec(n),!!a);){if(u=!El(n,a.index-1),s=a.index+1,b=a[0]==="'",f=!El(n,s),!f&&!u){b&&(r.content=on(r.content,a.index,_l));continue}if(h=!f,d=!u,d){for(m=g.length-1;m>=0&&(l=g[m],!(g[m].level<c));m--)if(l.single===b&&g[m].level===c){l=g[m],b?(y[l.token].content=on(y[l.token].content,l.pos,t.options.quotes[2]),r.content=on(r.content,a.index,t.options.quotes[3])):(y[l.token].content=on(y[l.token].content,l.pos,t.options.quotes[0]),r.content=on(r.content,a.index,t.options.quotes[1])),g.length=m;continue e}}h?g.push({token:e,pos:a.index,single:b,level:c}):d&&b&&(r.content=on(r.content,a.index,_l))}}}}}var ho=[["block",vp],["abbr",_p],["references",Np],["inline",Ap],["footnote_tail",kp],["abbr2",jp],["replacements",Op],["smartquotes",Lp]];function dd(){this.options={},this.ruler=new it;for(var t=0;t<ho.length;t++)this.ruler.push(ho[t][0],ho[t][1])}dd.prototype.process=function(t){var e,r,n;for(n=this.ruler.getRules(""),e=0,r=n.length;e<r;e++)n[e](t)};function zr(t,e,r,n,a){var s,o,c,u,f,l,h;for(this.src=t,this.parser=e,this.options=r,this.env=n,this.tokens=a,this.bMarks=[],this.eMarks=[],this.tShift=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.parentType="root",this.ddIndent=-1,this.level=0,this.result="",o=this.src,l=0,h=!1,c=u=l=0,f=o.length;u<f;u++){if(s=o.charCodeAt(u),!h)if(s===32){l++;continue}else h=!0;(s===10||u===f-1)&&(s!==10&&u++,this.bMarks.push(c),this.eMarks.push(u),this.tShift.push(l),h=!1,l=0,c=u+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.lineMax=this.bMarks.length-1}zr.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};zr.prototype.skipEmptyLines=function(e){for(var r=this.lineMax;e<r&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};zr.prototype.skipSpaces=function(e){for(var r=this.src.length;e<r&&this.src.charCodeAt(e)===32;e++);return e};zr.prototype.skipChars=function(e,r){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===r;e++);return e};zr.prototype.skipCharsBack=function(e,r,n){if(e<=n)return e;for(;e>n;)if(r!==this.src.charCodeAt(--e))return e+1;return e};zr.prototype.getLines=function(e,r,n,a){var s,o,c,u,f,l=e;if(e>=r)return"";if(l+1===r)return o=this.bMarks[l]+Math.min(this.tShift[l],n),c=a?this.eMarks[l]+1:this.eMarks[l],this.src.slice(o,c);for(u=new Array(r-e),s=0;l<r;l++,s++)f=this.tShift[l],f>n&&(f=n),f<0&&(f=0),o=this.bMarks[l]+f,l+1<r||a?c=this.eMarks[l]+1:c=this.eMarks[l],u[s]=this.src.slice(o,c);return u.join("")};function Mp(t,e,r){var n,a;if(t.tShift[e]-t.blkIndent<4)return!1;for(a=n=e+1;n<r;){if(t.isEmpty(n)){n++;continue}if(t.tShift[n]-t.blkIndent>=4){n++,a=n;continue}break}return t.line=n,t.tokens.push({type:"code",content:t.getLines(e,a,4+t.blkIndent,!0),block:!0,lines:[e,t.line],level:t.level}),!0}function Ip(t,e,r,n){var a,s,o,c,u,f=!1,l=t.bMarks[e]+t.tShift[e],h=t.eMarks[e];if(l+3>h||(a=t.src.charCodeAt(l),a!==126&&a!==96)||(u=l,l=t.skipChars(l,a),s=l-u,s<3)||(o=t.src.slice(l,h).trim(),o.indexOf("`")>=0))return!1;if(n)return!0;for(c=e;c++,!(c>=r||(l=u=t.bMarks[c]+t.tShift[c],h=t.eMarks[c],l<h&&t.tShift[c]<t.blkIndent));)if(t.src.charCodeAt(l)===a&&!(t.tShift[c]-t.blkIndent>=4)&&(l=t.skipChars(l,a),!(l-u<s)&&(l=t.skipSpaces(l),!(l<h)))){f=!0;break}return s=t.tShift[e],t.line=c+(f?1:0),t.tokens.push({type:"fence",params:o,content:t.getLines(e+1,c,s,!0),lines:[e,t.line],level:t.level}),!0}function Fp(t,e,r,n){var a,s,o,c,u,f,l,h,d,m,b,x=t.bMarks[e]+t.tShift[e],y=t.eMarks[e];if(x>y||t.src.charCodeAt(x++)!==62||t.level>=t.options.maxNesting)return!1;if(n)return!0;for(t.src.charCodeAt(x)===32&&x++,u=t.blkIndent,t.blkIndent=0,c=[t.bMarks[e]],t.bMarks[e]=x,x=x<y?t.skipSpaces(x):x,s=x>=y,o=[t.tShift[e]],t.tShift[e]=x-t.bMarks[e],h=t.parser.ruler.getRules("blockquote"),a=e+1;a<r&&(x=t.bMarks[a]+t.tShift[a],y=t.eMarks[a],!(x>=y));a++){if(t.src.charCodeAt(x++)===62){t.src.charCodeAt(x)===32&&x++,c.push(t.bMarks[a]),t.bMarks[a]=x,x=x<y?t.skipSpaces(x):x,s=x>=y,o.push(t.tShift[a]),t.tShift[a]=x-t.bMarks[a];continue}if(s)break;for(b=!1,d=0,m=h.length;d<m;d++)if(h[d](t,a,r,!0)){b=!0;break}if(b)break;c.push(t.bMarks[a]),o.push(t.tShift[a]),t.tShift[a]=-1337}for(f=t.parentType,t.parentType="blockquote",t.tokens.push({type:"blockquote_open",lines:l=[e,0],level:t.level++}),t.parser.tokenize(t,e,a),t.tokens.push({type:"blockquote_close",level:--t.level}),t.parentType=f,l[1]=t.line,d=0;d<o.length;d++)t.bMarks[d+e]=c[d],t.tShift[d+e]=o[d];return t.blkIndent=u,!0}function Rp(t,e,r,n){var a,s,o,c=t.bMarks[e],u=t.eMarks[e];if(c+=t.tShift[e],c>u||(a=t.src.charCodeAt(c++),a!==42&&a!==45&&a!==95))return!1;for(s=1;c<u;){if(o=t.src.charCodeAt(c++),o!==a&&o!==32)return!1;o===a&&s++}return s<3?!1:(n||(t.line=e+1,t.tokens.push({type:"hr",lines:[e,t.line],level:t.level})),!0)}function Nl(t,e){var r,n,a;return n=t.bMarks[e]+t.tShift[e],a=t.eMarks[e],n>=a||(r=t.src.charCodeAt(n++),r!==42&&r!==45&&r!==43)||n<a&&t.src.charCodeAt(n)!==32?-1:n}function Al(t,e){var r,n=t.bMarks[e]+t.tShift[e],a=t.eMarks[e];if(n+1>=a||(r=t.src.charCodeAt(n++),r<48||r>57))return-1;for(;;){if(n>=a)return-1;if(r=t.src.charCodeAt(n++),!(r>=48&&r<=57)){if(r===41||r===46)break;return-1}}return n<a&&t.src.charCodeAt(n)!==32?-1:n}function Bp(t,e){var r,n,a=t.level+2;for(r=e+2,n=t.tokens.length-2;r<n;r++)t.tokens[r].level===a&&t.tokens[r].type==="paragraph_open"&&(t.tokens[r+2].tight=!0,t.tokens[r].tight=!0,r+=2)}function Vp(t,e,r,n){var a,s,o,c,u,f,l,h,d,m,b,x,y,g,E,S,w,k,p=!0,N,A,V,z;if((h=Al(t,e))>=0)y=!0;else if((h=Nl(t,e))>=0)y=!1;else return!1;if(t.level>=t.options.maxNesting)return!1;if(x=t.src.charCodeAt(h-1),n)return!0;for(E=t.tokens.length,y?(l=t.bMarks[e]+t.tShift[e],b=Number(t.src.substr(l,h-l-1)),t.tokens.push({type:"ordered_list_open",order:b,lines:w=[e,0],level:t.level++})):t.tokens.push({type:"bullet_list_open",lines:w=[e,0],level:t.level++}),a=e,S=!1,N=t.parser.ruler.getRules("list");a<r&&(g=t.skipSpaces(h),d=t.eMarks[a],g>=d?m=1:m=g-h,m>4&&(m=1),m<1&&(m=1),s=h-t.bMarks[a]+m,t.tokens.push({type:"list_item_open",lines:k=[e,0],level:t.level++}),c=t.blkIndent,u=t.tight,o=t.tShift[e],f=t.parentType,t.tShift[e]=g-t.bMarks[e],t.blkIndent=s,t.tight=!0,t.parentType="list",t.parser.tokenize(t,e,r,!0),(!t.tight||S)&&(p=!1),S=t.line-e>1&&t.isEmpty(t.line-1),t.blkIndent=c,t.tShift[e]=o,t.tight=u,t.parentType=f,t.tokens.push({type:"list_item_close",level:--t.level}),a=e=t.line,k[1]=a,g=t.bMarks[e],!(a>=r||t.isEmpty(a)||t.tShift[a]<t.blkIndent));){for(z=!1,A=0,V=N.length;A<V;A++)if(N[A](t,a,r,!0)){z=!0;break}if(z)break;if(y){if(h=Al(t,a),h<0)break}else if(h=Nl(t,a),h<0)break;if(x!==t.src.charCodeAt(h-1))break}return t.tokens.push({type:y?"ordered_list_close":"bullet_list_close",level:--t.level}),w[1]=a,t.line=a,p&&Bp(t,E),!0}function qp(t,e,r,n){var a,s,o,c,u,f=t.bMarks[e]+t.tShift[e],l=t.eMarks[e];if(f+4>l||t.src.charCodeAt(f)!==91||t.src.charCodeAt(f+1)!==94||t.level>=t.options.maxNesting)return!1;for(c=f+2;c<l;c++){if(t.src.charCodeAt(c)===32)return!1;if(t.src.charCodeAt(c)===93)break}return c===f+2||c+1>=l||t.src.charCodeAt(++c)!==58?!1:(n||(c++,t.env.footnotes||(t.env.footnotes={}),t.env.footnotes.refs||(t.env.footnotes.refs={}),u=t.src.slice(f+2,c-2),t.env.footnotes.refs[":"+u]=-1,t.tokens.push({type:"footnote_reference_open",label:u,level:t.level++}),a=t.bMarks[e],s=t.tShift[e],o=t.parentType,t.tShift[e]=t.skipSpaces(c)-c,t.bMarks[e]=c,t.blkIndent+=4,t.parentType="footnote",t.tShift[e]<t.blkIndent&&(t.tShift[e]+=t.blkIndent,t.bMarks[e]-=t.blkIndent),t.parser.tokenize(t,e,r,!0),t.parentType=o,t.blkIndent-=4,t.tShift[e]=s,t.bMarks[e]=a,t.tokens.push({type:"footnote_reference_close",level:--t.level})),!0)}function Up(t,e,r,n){var a,s,o,c=t.bMarks[e]+t.tShift[e],u=t.eMarks[e];if(c>=u||(a=t.src.charCodeAt(c),a!==35||c>=u))return!1;for(s=1,a=t.src.charCodeAt(++c);a===35&&c<u&&s<=6;)s++,a=t.src.charCodeAt(++c);return s>6||c<u&&a!==32?!1:(n||(u=t.skipCharsBack(u,32,c),o=t.skipCharsBack(u,35,c),o>c&&t.src.charCodeAt(o-1)===32&&(u=o),t.line=e+1,t.tokens.push({type:"heading_open",hLevel:s,lines:[e,t.line],level:t.level}),c<u&&t.tokens.push({type:"inline",content:t.src.slice(c,u).trim(),level:t.level+1,lines:[e,t.line],children:[]}),t.tokens.push({type:"heading_close",hLevel:s,level:t.level})),!0)}function zp(t,e,r){var n,a,s,o=e+1;return o>=r||t.tShift[o]<t.blkIndent||t.tShift[o]-t.blkIndent>3||(a=t.bMarks[o]+t.tShift[o],s=t.eMarks[o],a>=s)||(n=t.src.charCodeAt(a),n!==45&&n!==61)||(a=t.skipChars(a,n),a=t.skipSpaces(a),a<s)?!1:(a=t.bMarks[e]+t.tShift[e],t.line=o+1,t.tokens.push({type:"heading_open",hLevel:n===61?1:2,lines:[e,t.line],level:t.level}),t.tokens.push({type:"inline",content:t.src.slice(a,t.eMarks[e]).trim(),level:t.level+1,lines:[e,t.line-1],children:[]}),t.tokens.push({type:"heading_close",hLevel:n===61?1:2,level:t.level}),!0)}var fd={};["article","aside","button","blockquote","body","canvas","caption","col","colgroup","dd","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","iframe","li","map","object","ol","output","p","pre","progress","script","section","style","table","tbody","td","textarea","tfoot","th","tr","thead","ul","video"].forEach(function(t){fd[t]=!0});var Hp=/^<([a-zA-Z]{1,15})[\s\/>]/,Wp=/^<\/([a-zA-Z]{1,15})[\s>]/;function Gp(t){var e=t|32;return e>=97&&e<=122}function Jp(t,e,r,n){var a,s,o,c=t.bMarks[e],u=t.eMarks[e],f=t.tShift[e];if(c+=f,!t.options.html||f>3||c+2>=u||t.src.charCodeAt(c)!==60)return!1;if(a=t.src.charCodeAt(c+1),a===33||a===63){if(n)return!0}else if(a===47||Gp(a)){if(a===47){if(s=t.src.slice(c,u).match(Wp),!s)return!1}else if(s=t.src.slice(c,u).match(Hp),!s)return!1;if(fd[s[1].toLowerCase()]!==!0)return!1;if(n)return!0}else return!1;for(o=e+1;o<t.lineMax&&!t.isEmpty(o);)o++;return t.line=o,t.tokens.push({type:"htmlblock",level:t.level,lines:[e,t.line],content:t.getLines(e,o,0,!0)}),!0}function po(t,e){var r=t.bMarks[e]+t.blkIndent,n=t.eMarks[e];return t.src.substr(r,n-r)}function Yp(t,e,r,n){var a,s,o,c,u,f,l,h,d,m,b;if(e+2>r||(u=e+1,t.tShift[u]<t.blkIndent)||(o=t.bMarks[u]+t.tShift[u],o>=t.eMarks[u])||(a=t.src.charCodeAt(o),a!==124&&a!==45&&a!==58)||(s=po(t,e+1),!/^[-:| ]+$/.test(s))||(f=s.split("|"),f<=2))return!1;for(h=[],c=0;c<f.length;c++){if(d=f[c].trim(),!d){if(c===0||c===f.length-1)continue;return!1}if(!/^:?-+:?$/.test(d))return!1;d.charCodeAt(d.length-1)===58?h.push(d.charCodeAt(0)===58?"center":"right"):d.charCodeAt(0)===58?h.push("left"):h.push("")}if(s=po(t,e).trim(),s.indexOf("|")===-1||(f=s.replace(/^\||\|$/g,"").split("|"),h.length!==f.length))return!1;if(n)return!0;for(t.tokens.push({type:"table_open",lines:m=[e,0],level:t.level++}),t.tokens.push({type:"thead_open",lines:[e,e+1],level:t.level++}),t.tokens.push({type:"tr_open",lines:[e,e+1],level:t.level++}),c=0;c<f.length;c++)t.tokens.push({type:"th_open",align:h[c],lines:[e,e+1],level:t.level++}),t.tokens.push({type:"inline",content:f[c].trim(),lines:[e,e+1],level:t.level,children:[]}),t.tokens.push({type:"th_close",level:--t.level});for(t.tokens.push({type:"tr_close",level:--t.level}),t.tokens.push({type:"thead_close",level:--t.level}),t.tokens.push({type:"tbody_open",lines:b=[e+2,0],level:t.level++}),u=e+2;u<r&&!(t.tShift[u]<t.blkIndent||(s=po(t,u).trim(),s.indexOf("|")===-1));u++){for(f=s.replace(/^\||\|$/g,"").split("|"),t.tokens.push({type:"tr_open",level:t.level++}),c=0;c<f.length;c++)t.tokens.push({type:"td_open",align:h[c],level:t.level++}),l=f[c].substring(f[c].charCodeAt(0)===124?1:0,f[c].charCodeAt(f[c].length-1)===124?f[c].length-1:f[c].length).trim(),t.tokens.push({type:"inline",content:l,level:t.level,children:[]}),t.tokens.push({type:"td_close",level:--t.level});t.tokens.push({type:"tr_close",level:--t.level})}return t.tokens.push({type:"tbody_close",level:--t.level}),t.tokens.push({type:"table_close",level:--t.level}),m[1]=b[1]=u,t.line=u,!0}function os(t,e){var r,n,a=t.bMarks[e]+t.tShift[e],s=t.eMarks[e];return a>=s||(n=t.src.charCodeAt(a++),n!==126&&n!==58)||(r=t.skipSpaces(a),a===r)||r>=s?-1:r}function Zp(t,e){var r,n,a=t.level+2;for(r=e+2,n=t.tokens.length-2;r<n;r++)t.tokens[r].level===a&&t.tokens[r].type==="paragraph_open"&&(t.tokens[r+2].tight=!0,t.tokens[r].tight=!0,r+=2)}function Xp(t,e,r,n){var a,s,o,c,u,f,l,h,d,m,b,x,y,g;if(n)return t.ddIndent<0?!1:os(t,e)>=0;if(l=e+1,t.isEmpty(l)&&++l>r||t.tShift[l]<t.blkIndent||(a=os(t,l),a<0)||t.level>=t.options.maxNesting)return!1;f=t.tokens.length,t.tokens.push({type:"dl_open",lines:u=[e,0],level:t.level++}),o=e,s=l;e:for(;;){for(g=!0,y=!1,t.tokens.push({type:"dt_open",lines:[o,o],level:t.level++}),t.tokens.push({type:"inline",content:t.getLines(o,o+1,t.blkIndent,!1).trim(),level:t.level+1,lines:[o,o],children:[]}),t.tokens.push({type:"dt_close",level:--t.level});;){if(t.tokens.push({type:"dd_open",lines:c=[l,0],level:t.level++}),x=t.tight,d=t.ddIndent,h=t.blkIndent,b=t.tShift[s],m=t.parentType,t.blkIndent=t.ddIndent=t.tShift[s]+2,t.tShift[s]=a-t.bMarks[s],t.tight=!0,t.parentType="deflist",t.parser.tokenize(t,s,r,!0),(!t.tight||y)&&(g=!1),y=t.line-s>1&&t.isEmpty(t.line-1),t.tShift[s]=b,t.tight=x,t.parentType=m,t.blkIndent=h,t.ddIndent=d,t.tokens.push({type:"dd_close",level:--t.level}),c[1]=l=t.line,l>=r||t.tShift[l]<t.blkIndent)break e;if(a=os(t,l),a<0)break;s=l}if(l>=r||(o=l,t.isEmpty(o))||t.tShift[o]<t.blkIndent||(s=o+1,s>=r)||(t.isEmpty(s)&&s++,s>=r)||t.tShift[s]<t.blkIndent||(a=os(t,s),a<0))break}return t.tokens.push({type:"dl_close",level:--t.level}),u[1]=l,t.line=l,g&&Zp(t,f),!0}function Kp(t,e){var r,n,a,s,o,c=e+1,u;if(r=t.lineMax,c<r&&!t.isEmpty(c)){for(u=t.parser.ruler.getRules("paragraph");c<r&&!t.isEmpty(c);c++)if(!(t.tShift[c]-t.blkIndent>3)){for(a=!1,s=0,o=u.length;s<o;s++)if(u[s](t,c,r,!0)){a=!0;break}if(a)break}}return n=t.getLines(e,c,t.blkIndent,!1).trim(),t.line=c,n.length&&(t.tokens.push({type:"paragraph_open",tight:!1,lines:[e,t.line],level:t.level}),t.tokens.push({type:"inline",content:n,level:t.level+1,lines:[e,t.line],children:[]}),t.tokens.push({type:"paragraph_close",tight:!1,level:t.level})),!0}var us=[["code",Mp],["fences",Ip,["paragraph","blockquote","list"]],["blockquote",Fp,["paragraph","blockquote","list"]],["hr",Rp,["paragraph","blockquote","list"]],["list",Vp,["paragraph","blockquote"]],["footnote",qp,["paragraph"]],["heading",Up,["paragraph","blockquote"]],["lheading",zp],["htmlblock",Jp,["paragraph","blockquote"]],["table",Yp,["paragraph"]],["deflist",Xp,["paragraph"]],["paragraph",Kp]];function du(){this.ruler=new it;for(var t=0;t<us.length;t++)this.ruler.push(us[t][0],us[t][1],{alt:(us[t][2]||[]).slice()})}du.prototype.tokenize=function(t,e,r){for(var n=this.ruler.getRules(""),a=n.length,s=e,o=!1,c,u;s<r&&(t.line=s=t.skipEmptyLines(s),!(s>=r||t.tShift[s]<t.blkIndent));){for(u=0;u<a&&(c=n[u](t,s,r,!1),!c);u++);if(t.tight=!o,t.isEmpty(t.line-1)&&(o=!0),s=t.line,s<r&&t.isEmpty(s)){if(o=!0,s++,s<r&&t.parentType==="list"&&t.isEmpty(s))break;t.line=s}}};var Qp=/[\n\t]/g,em=/\r[\n\u0085]|[\u2424\u2028\u0085]/g,tm=/\u00a0/g;du.prototype.parse=function(t,e,r,n){var a,s=0,o=0;if(!t)return[];t=t.replace(tm," "),t=t.replace(em,`
116
- `),t.indexOf(" ")>=0&&(t=t.replace(Qp,function(c,u){var f;return t.charCodeAt(u)===10?(s=u+1,o=0,c):(f=" ".slice((u-s-o)%4),o=u-s+1,f)})),a=new zr(t,this,e,r,n),this.tokenize(a,a.line,a.lineMax)};function rm(t){switch(t){case 10:case 92:case 96:case 42:case 95:case 94:case 91:case 93:case 33:case 38:case 60:case 62:case 123:case 125:case 36:case 37:case 64:case 126:case 43:case 61:case 58:return!0;default:return!1}}function nm(t,e){for(var r=t.pos;r<t.posMax&&!rm(t.src.charCodeAt(r));)r++;return r===t.pos?!1:(e||(t.pending+=t.src.slice(t.pos,r)),t.pos=r,!0)}function am(t,e){var r,n,a=t.pos;if(t.src.charCodeAt(a)!==10)return!1;if(r=t.pending.length-1,n=t.posMax,!e)if(r>=0&&t.pending.charCodeAt(r)===32)if(r>=1&&t.pending.charCodeAt(r-1)===32){for(var s=r-2;s>=0;s--)if(t.pending.charCodeAt(s)!==32){t.pending=t.pending.substring(0,s+1);break}t.push({type:"hardbreak",level:t.level})}else t.pending=t.pending.slice(0,-1),t.push({type:"softbreak",level:t.level});else t.push({type:"softbreak",level:t.level});for(a++;a<n&&t.src.charCodeAt(a)===32;)a++;return t.pos=a,!0}var fu=[];for(var kl=0;kl<256;kl++)fu.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){fu[t.charCodeAt(0)]=1});function sm(t,e){var r,n=t.pos,a=t.posMax;if(t.src.charCodeAt(n)!==92)return!1;if(n++,n<a){if(r=t.src.charCodeAt(n),r<256&&fu[r]!==0)return e||(t.pending+=t.src[n]),t.pos+=2,!0;if(r===10){for(e||t.push({type:"hardbreak",level:t.level}),n++;n<a&&t.src.charCodeAt(n)===32;)n++;return t.pos=n,!0}}return e||(t.pending+="\\"),t.pos++,!0}function im(t,e){var r,n,a,s,o,c=t.pos,u=t.src.charCodeAt(c);if(u!==96)return!1;for(r=c,c++,n=t.posMax;c<n&&t.src.charCodeAt(c)===96;)c++;for(a=t.src.slice(r,c),s=o=c;(s=t.src.indexOf("`",o))!==-1;){for(o=s+1;o<n&&t.src.charCodeAt(o)===96;)o++;if(o-s===a.length)return e||t.push({type:"code",content:t.src.slice(c,s).replace(/[ \n]+/g," ").trim(),block:!1,level:t.level}),t.pos=o,!0}return e||(t.pending+=a),t.pos+=a.length,!0}function om(t,e){var r,n,a,s=t.posMax,o=t.pos,c,u;if(t.src.charCodeAt(o)!==126||e||o+4>=s||t.src.charCodeAt(o+1)!==126||t.level>=t.options.maxNesting||(c=o>0?t.src.charCodeAt(o-1):-1,u=t.src.charCodeAt(o+2),c===126)||u===126||u===32||u===10)return!1;for(n=o+2;n<s&&t.src.charCodeAt(n)===126;)n++;if(n>o+3)return t.pos+=n-o,e||(t.pending+=t.src.slice(o,n)),!0;for(t.pos=o+2,a=1;t.pos+1<s;){if(t.src.charCodeAt(t.pos)===126&&t.src.charCodeAt(t.pos+1)===126&&(c=t.src.charCodeAt(t.pos-1),u=t.pos+2<s?t.src.charCodeAt(t.pos+2):-1,u!==126&&c!==126&&(c!==32&&c!==10?a--:u!==32&&u!==10&&a++,a<=0))){r=!0;break}t.parser.skipToken(t)}return r?(t.posMax=t.pos,t.pos=o+2,e||(t.push({type:"del_open",level:t.level++}),t.parser.tokenize(t),t.push({type:"del_close",level:--t.level})),t.pos=t.posMax+2,t.posMax=s,!0):(t.pos=o,!1)}function um(t,e){var r,n,a,s=t.posMax,o=t.pos,c,u;if(t.src.charCodeAt(o)!==43||e||o+4>=s||t.src.charCodeAt(o+1)!==43||t.level>=t.options.maxNesting||(c=o>0?t.src.charCodeAt(o-1):-1,u=t.src.charCodeAt(o+2),c===43)||u===43||u===32||u===10)return!1;for(n=o+2;n<s&&t.src.charCodeAt(n)===43;)n++;if(n!==o+2)return t.pos+=n-o,e||(t.pending+=t.src.slice(o,n)),!0;for(t.pos=o+2,a=1;t.pos+1<s;){if(t.src.charCodeAt(t.pos)===43&&t.src.charCodeAt(t.pos+1)===43&&(c=t.src.charCodeAt(t.pos-1),u=t.pos+2<s?t.src.charCodeAt(t.pos+2):-1,u!==43&&c!==43&&(c!==32&&c!==10?a--:u!==32&&u!==10&&a++,a<=0))){r=!0;break}t.parser.skipToken(t)}return r?(t.posMax=t.pos,t.pos=o+2,e||(t.push({type:"ins_open",level:t.level++}),t.parser.tokenize(t),t.push({type:"ins_close",level:--t.level})),t.pos=t.posMax+2,t.posMax=s,!0):(t.pos=o,!1)}function lm(t,e){var r,n,a,s=t.posMax,o=t.pos,c,u;if(t.src.charCodeAt(o)!==61||e||o+4>=s||t.src.charCodeAt(o+1)!==61||t.level>=t.options.maxNesting||(c=o>0?t.src.charCodeAt(o-1):-1,u=t.src.charCodeAt(o+2),c===61)||u===61||u===32||u===10)return!1;for(n=o+2;n<s&&t.src.charCodeAt(n)===61;)n++;if(n!==o+2)return t.pos+=n-o,e||(t.pending+=t.src.slice(o,n)),!0;for(t.pos=o+2,a=1;t.pos+1<s;){if(t.src.charCodeAt(t.pos)===61&&t.src.charCodeAt(t.pos+1)===61&&(c=t.src.charCodeAt(t.pos-1),u=t.pos+2<s?t.src.charCodeAt(t.pos+2):-1,u!==61&&c!==61&&(c!==32&&c!==10?a--:u!==32&&u!==10&&a++,a<=0))){r=!0;break}t.parser.skipToken(t)}return r?(t.posMax=t.pos,t.pos=o+2,e||(t.push({type:"mark_open",level:t.level++}),t.parser.tokenize(t),t.push({type:"mark_close",level:--t.level})),t.pos=t.posMax+2,t.posMax=s,!0):(t.pos=o,!1)}function jl(t){return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122}function Sl(t,e){var r=e,n,a,s,o=!0,c=!0,u=t.posMax,f=t.src.charCodeAt(e);for(n=e>0?t.src.charCodeAt(e-1):-1;r<u&&t.src.charCodeAt(r)===f;)r++;return r>=u&&(o=!1),s=r-e,s>=4?o=c=!1:(a=r<u?t.src.charCodeAt(r):-1,(a===32||a===10)&&(o=!1),(n===32||n===10)&&(c=!1),f===95&&(jl(n)&&(o=!1),jl(a)&&(c=!1))),{can_open:o,can_close:c,delims:s}}function cm(t,e){var r,n,a,s,o,c,u,f=t.posMax,l=t.pos,h=t.src.charCodeAt(l);if(h!==95&&h!==42||e)return!1;if(u=Sl(t,l),r=u.delims,!u.can_open)return t.pos+=r,e||(t.pending+=t.src.slice(l,t.pos)),!0;if(t.level>=t.options.maxNesting)return!1;for(t.pos=l+r,c=[r];t.pos<f;){if(t.src.charCodeAt(t.pos)===h){if(u=Sl(t,t.pos),n=u.delims,u.can_close){for(s=c.pop(),o=n;s!==o;){if(o<s){c.push(s-o);break}if(o-=s,c.length===0)break;t.pos+=s,s=c.pop()}if(c.length===0){r=s,a=!0;break}t.pos+=n;continue}u.can_open&&c.push(n),t.pos+=n;continue}t.parser.skipToken(t)}return a?(t.posMax=t.pos,t.pos=l+r,e||((r===2||r===3)&&t.push({type:"strong_open",level:t.level++}),(r===1||r===3)&&t.push({type:"em_open",level:t.level++}),t.parser.tokenize(t),(r===1||r===3)&&t.push({type:"em_close",level:--t.level}),(r===2||r===3)&&t.push({type:"strong_close",level:--t.level})),t.pos=t.posMax+r,t.posMax=f,!0):(t.pos=l,!1)}var dm=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function fm(t,e){var r,n,a=t.posMax,s=t.pos;if(t.src.charCodeAt(s)!==126||e||s+2>=a||t.level>=t.options.maxNesting)return!1;for(t.pos=s+1;t.pos<a;){if(t.src.charCodeAt(t.pos)===126){r=!0;break}t.parser.skipToken(t)}return!r||s+1===t.pos||(n=t.src.slice(s+1,t.pos),n.match(/(^|[^\\])(\\\\)*\s/))?(t.pos=s,!1):(t.posMax=t.pos,t.pos=s+1,e||t.push({type:"sub",level:t.level,content:n.replace(dm,"$1")}),t.pos=t.posMax+1,t.posMax=a,!0)}var hm=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function pm(t,e){var r,n,a=t.posMax,s=t.pos;if(t.src.charCodeAt(s)!==94||e||s+2>=a||t.level>=t.options.maxNesting)return!1;for(t.pos=s+1;t.pos<a;){if(t.src.charCodeAt(t.pos)===94){r=!0;break}t.parser.skipToken(t)}return!r||s+1===t.pos||(n=t.src.slice(s+1,t.pos),n.match(/(^|[^\\])(\\\\)*\s/))?(t.pos=s,!1):(t.posMax=t.pos,t.pos=s+1,e||t.push({type:"sup",level:t.level,content:n.replace(hm,"$1")}),t.pos=t.posMax+1,t.posMax=a,!0)}function mm(t,e){var r,n,a,s,o,c,u,f,l=!1,h=t.pos,d=t.posMax,m=t.pos,b=t.src.charCodeAt(m);if(b===33&&(l=!0,b=t.src.charCodeAt(++m)),b!==91||t.level>=t.options.maxNesting||(r=m+1,n=la(t,m),n<0))return!1;if(c=n+1,c<d&&t.src.charCodeAt(c)===40){for(c++;c<d&&(f=t.src.charCodeAt(c),!(f!==32&&f!==10));c++);if(c>=d)return!1;for(m=c,ud(t,c)?(s=t.linkContent,c=t.pos):s="",m=c;c<d&&(f=t.src.charCodeAt(c),!(f!==32&&f!==10));c++);if(c<d&&m!==c&&ld(t,c))for(o=t.linkContent,c=t.pos;c<d&&(f=t.src.charCodeAt(c),!(f!==32&&f!==10));c++);else o="";if(c>=d||t.src.charCodeAt(c)!==41)return t.pos=h,!1;c++}else{if(t.linkLevel>0)return!1;for(;c<d&&(f=t.src.charCodeAt(c),!(f!==32&&f!==10));c++);if(c<d&&t.src.charCodeAt(c)===91&&(m=c+1,c=la(t,c),c>=0?a=t.src.slice(m,c++):c=m-1),a||(typeof a>"u"&&(c=n+1),a=t.src.slice(r,n)),u=t.env.references[cd(a)],!u)return t.pos=h,!1;s=u.href,o=u.title}return e||(t.pos=r,t.posMax=n,l?t.push({type:"image",src:s,title:o,alt:t.src.substr(r,n-r),level:t.level}):(t.push({type:"link_open",href:s,title:o,level:t.level++}),t.linkLevel++,t.parser.tokenize(t),t.linkLevel--,t.push({type:"link_close",level:--t.level}))),t.pos=c,t.posMax=d,!0}function gm(t,e){var r,n,a,s,o=t.posMax,c=t.pos;return c+2>=o||t.src.charCodeAt(c)!==94||t.src.charCodeAt(c+1)!==91||t.level>=t.options.maxNesting||(r=c+2,n=la(t,c+1),n<0)?!1:(e||(t.env.footnotes||(t.env.footnotes={}),t.env.footnotes.list||(t.env.footnotes.list=[]),a=t.env.footnotes.list.length,t.pos=r,t.posMax=n,t.push({type:"footnote_ref",id:a,level:t.level}),t.linkLevel++,s=t.tokens.length,t.parser.tokenize(t),t.env.footnotes.list[a]={tokens:t.tokens.splice(s)},t.linkLevel--),t.pos=n+1,t.posMax=o,!0)}function bm(t,e){var r,n,a,s,o=t.posMax,c=t.pos;if(c+3>o||!t.env.footnotes||!t.env.footnotes.refs||t.src.charCodeAt(c)!==91||t.src.charCodeAt(c+1)!==94||t.level>=t.options.maxNesting)return!1;for(n=c+2;n<o;n++){if(t.src.charCodeAt(n)===32||t.src.charCodeAt(n)===10)return!1;if(t.src.charCodeAt(n)===93)break}return n===c+2||n>=o||(n++,r=t.src.slice(c+2,n-1),typeof t.env.footnotes.refs[":"+r]>"u")?!1:(e||(t.env.footnotes.list||(t.env.footnotes.list=[]),t.env.footnotes.refs[":"+r]<0?(a=t.env.footnotes.list.length,t.env.footnotes.list[a]={label:r,count:0},t.env.footnotes.refs[":"+r]=a):a=t.env.footnotes.refs[":"+r],s=t.env.footnotes.list[a].count,t.env.footnotes.list[a].count++,t.push({type:"footnote_ref",id:a,subId:s,level:t.level})),t.pos=n,t.posMax=o,!0)}var xm=["coap","doi","javascript","aaa","aaas","about","acap","cap","cid","crid","data","dav","dict","dns","file","ftp","geo","go","gopher","h323","http","https","iax","icap","im","imap","info","ipp","iris","iris.beep","iris.xpc","iris.xpcs","iris.lwz","ldap","mailto","mid","msrp","msrps","mtqp","mupdate","news","nfs","ni","nih","nntp","opaquelocktoken","pop","pres","rtsp","service","session","shttp","sieve","sip","sips","sms","snmp","soap.beep","soap.beeps","tag","tel","telnet","tftp","thismessage","tn3270","tip","tv","urn","vemmi","ws","wss","xcon","xcon-userid","xmlrpc.beep","xmlrpc.beeps","xmpp","z39.50r","z39.50s","adiumxtra","afp","afs","aim","apt","attachment","aw","beshare","bitcoin","bolo","callto","chrome","chrome-extension","com-eventbrite-attendee","content","cvs","dlna-playsingle","dlna-playcontainer","dtn","dvb","ed2k","facetime","feed","finger","fish","gg","git","gizmoproject","gtalk","hcp","icon","ipn","irc","irc6","ircs","itms","jar","jms","keyparc","lastfm","ldaps","magnet","maps","market","message","mms","ms-help","msnim","mumble","mvn","notes","oid","palm","paparazzi","platform","proxy","psyc","query","res","resource","rmi","rsync","rtmp","secondlife","sftp","sgn","skype","smb","soldat","spotify","ssh","steam","svn","teamspeak","things","udp","unreal","ut2004","ventrilo","view-source","webcal","wtai","wyciwyg","xfire","xri","ymsgr"],ym=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,vm=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;function wm(t,e){var r,n,a,s,o,c=t.pos;return t.src.charCodeAt(c)!==60||(r=t.src.slice(c),r.indexOf(">")<0)?!1:(n=r.match(vm),n?xm.indexOf(n[1].toLowerCase())<0||(s=n[0].slice(1,-1),o=$o(s),!t.parser.validateLink(s))?!1:(e||(t.push({type:"link_open",href:o,level:t.level}),t.push({type:"text",content:s,level:t.level+1}),t.push({type:"link_close",level:t.level})),t.pos+=n[0].length,!0):(a=r.match(ym),a?(s=a[0].slice(1,-1),o=$o("mailto:"+s),t.parser.validateLink(o)?(e||(t.push({type:"link_open",href:o,level:t.level}),t.push({type:"text",content:s,level:t.level+1}),t.push({type:"link_close",level:t.level})),t.pos+=a[0].length,!0):!1):!1))}function vi(t,e){return t=t.source,e=e||"",function r(n,a){return n?(a=a.source||a,t=t.replace(n,a),r):new RegExp(t,e)}}var _m=/[a-zA-Z_:][a-zA-Z0-9:._-]*/,Em=/[^"'=<>`\x00-\x20]+/,Nm=/'[^']*'/,Am=/"[^"]*"/,km=vi(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",Em)("single_quoted",Nm)("double_quoted",Am)(),jm=vi(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",_m)("attr_value",km)(),Sm=vi(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",jm)(),Dm=/<\/[A-Za-z][A-Za-z0-9]*\s*>/,Tm=/<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->/,Cm=/<[?].*?[?]>/,Om=/<![A-Z]+\s+[^>]*>/,$m=/<!\[CDATA\[[\s\S]*?\]\]>/,Pm=vi(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",Sm)("close_tag",Dm)("comment",Tm)("processing",Cm)("declaration",Om)("cdata",$m)();function Lm(t){var e=t|32;return e>=97&&e<=122}function Mm(t,e){var r,n,a,s=t.pos;return!t.options.html||(a=t.posMax,t.src.charCodeAt(s)!==60||s+2>=a)||(r=t.src.charCodeAt(s+1),r!==33&&r!==63&&r!==47&&!Lm(r))||(n=t.src.slice(s).match(Pm),!n)?!1:(e||t.push({type:"htmltag",content:t.src.slice(s,s+n[0].length),level:t.level}),t.pos+=n[0].length,!0)}var Im=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,Fm=/^&([a-z][a-z0-9]{1,31});/i;function Rm(t,e){var r,n,a,s=t.pos,o=t.posMax;if(t.src.charCodeAt(s)!==38)return!1;if(s+1<o){if(r=t.src.charCodeAt(s+1),r===35){if(a=t.src.slice(s).match(Im),a)return e||(n=a[1][0].toLowerCase()==="x"?parseInt(a[1].slice(1),16):parseInt(a[1],10),t.pending+=lu(n)?Is(n):Is(65533)),t.pos+=a[0].length,!0}else if(a=t.src.slice(s).match(Fm),a){var c=sd(a[1]);if(a[1]!==c)return e||(t.pending+=c),t.pos+=a[0].length,!0}}return e||(t.pending+="&"),t.pos++,!0}var mo=[["text",nm],["newline",am],["escape",sm],["backticks",im],["del",om],["ins",um],["mark",lm],["emphasis",cm],["sub",fm],["sup",pm],["links",mm],["footnote_inline",gm],["footnote_ref",bm],["autolink",wm],["htmltag",Mm],["entity",Rm]];function wi(){this.ruler=new it;for(var t=0;t<mo.length;t++)this.ruler.push(mo[t][0],mo[t][1]);this.validateLink=Bm}wi.prototype.skipToken=function(t){var e=this.ruler.getRules(""),r=e.length,n=t.pos,a,s;if((s=t.cacheGet(n))>0){t.pos=s;return}for(a=0;a<r;a++)if(e[a](t,!0)){t.cacheSet(n,t.pos);return}t.pos++,t.cacheSet(n,t.pos)};wi.prototype.tokenize=function(t){for(var e=this.ruler.getRules(""),r=e.length,n=t.posMax,a,s;t.pos<n;){for(s=0;s<r&&(a=e[s](t,!1),!a);s++);if(a){if(t.pos>=n)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()};wi.prototype.parse=function(t,e,r,n){var a=new Ur(t,this,e,r,n);this.tokenize(a)};function Bm(t){var e=["vbscript","javascript","file","data"],r=t.trim().toLowerCase();return r=hr(r),!(r.indexOf(":")!==-1&&e.indexOf(r.split(":")[0])!==-1)}var Vm={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","replacements","smartquotes","references","abbr2","footnote_tail"]},block:{rules:["blockquote","code","fences","footnote","heading","hr","htmlblock","lheading","list","paragraph","table"]},inline:{rules:["autolink","backticks","del","emphasis","entity","escape","footnote_ref","htmltag","links","newline","text"]}}},qm={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{},block:{},inline:{}}},Um={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","abbr2"]},block:{rules:["blockquote","code","fences","heading","hr","htmlblock","lheading","list","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","htmltag","links","newline","text"]}}},zm={default:Vm,full:qm,commonmark:Um};function hd(t,e,r){this.src=e,this.env=r,this.options=t.options,this.tokens=[],this.inlineMode=!1,this.inline=t.inline,this.block=t.block,this.renderer=t.renderer,this.typographer=t.typographer}function pr(t,e){typeof t!="string"&&(e=t,t="default"),e&&e.linkify!=null&&console.warn(`linkify option is removed. Use linkify plugin instead:
116
+ `};te.footnote_open=function(t,e){var r=Number(t[e].id+1).toString();return'<li id="fn'+r+'" class="footnote-item">'};te.footnote_close=function(){return`</li>
117
+ `};te.footnote_anchor=function(t,e){var r=Number(t[e].id+1).toString(),n="fnref"+r;return t[e].subId>0&&(n+=":"+t[e].subId),' <a href="#'+n+'" class="footnote-backref">↩</a>'};te.dl_open=function(){return`<dl>
118
+ `};te.dt_open=function(){return"<dt>"};te.dd_open=function(){return"<dd>"};te.dl_close=function(){return`</dl>
119
+ `};te.dt_close=function(){return`</dt>
120
+ `};te.dd_close=function(){return`</dd>
121
+ `};function od(t,e){return++e>=t.length-2?e:t[e].type==="paragraph_open"&&t[e].tight&&t[e+1].type==="inline"&&t[e+1].content.length===0&&t[e+2].type==="paragraph_close"&&t[e+2].tight?od(t,e+2):e}var pn=te.getBreak=function(e,r){return r=od(e,r),r<e.length&&e[r].type==="list_item_close"?"":`
122
+ `};function cu(){this.rules=uu({},te),this.getBreak=te.getBreak}cu.prototype.renderInline=function(t,e,r){for(var n=this.rules,a=t.length,s=0,o="";a--;)o+=n[t[s].type](t,s++,e,r,this);return o};cu.prototype.render=function(t,e,r){for(var n=this.rules,a=t.length,s=-1,o="";++s<a;)t[s].type==="inline"?o+=this.renderInline(t[s].children,e,r):o+=n[t[s].type](t,s,e,r,this);return o};function _t(){this.__rules__=[],this.__cache__=null}_t.prototype.__find__=function(t){for(var e=this.__rules__.length,r=-1;e--;)if(this.__rules__[++r].name===t)return r;return-1};_t.prototype.__compile__=function(){var t=this,e=[""];t.__rules__.forEach(function(r){r.enabled&&r.alt.forEach(function(n){e.indexOf(n)<0&&e.push(n)})}),t.__cache__={},e.forEach(function(r){t.__cache__[r]=[],t.__rules__.forEach(function(n){n.enabled&&(r&&n.alt.indexOf(r)<0||t.__cache__[r].push(n.fn))})})};_t.prototype.at=function(t,e,r){var n=this.__find__(t),a=r||{};if(n===-1)throw new Error("Parser rule not found: "+t);this.__rules__[n].fn=e,this.__rules__[n].alt=a.alt||[],this.__cache__=null};_t.prototype.before=function(t,e,r,n){var a=this.__find__(t),s=n||{};if(a===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(a,0,{name:e,enabled:!0,fn:r,alt:s.alt||[]}),this.__cache__=null};_t.prototype.after=function(t,e,r,n){var a=this.__find__(t),s=n||{};if(a===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(a+1,0,{name:e,enabled:!0,fn:r,alt:s.alt||[]}),this.__cache__=null};_t.prototype.push=function(t,e,r){var n=r||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:n.alt||[]}),this.__cache__=null};_t.prototype.enable=function(t,e){t=Array.isArray(t)?t:[t],e&&this.__rules__.forEach(function(r){r.enabled=!1}),t.forEach(function(r){var n=this.__find__(r);if(n<0)throw new Error("Rules manager: invalid rule name "+r);this.__rules__[n].enabled=!0},this),this.__cache__=null};_t.prototype.disable=function(t){t=Array.isArray(t)?t:[t],t.forEach(function(e){var r=this.__find__(e);if(r<0)throw new Error("Rules manager: invalid rule name "+e);this.__rules__[r].enabled=!1},this),this.__cache__=null};_t.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};function vp(t){t.inlineMode?t.tokens.push({type:"inline",content:t.src.replace(/\n/g," ").trim(),level:0,lines:[0,1],children:[]}):t.block.parse(t.src,t.options,t.env,t.tokens)}function mn(t,e,r,n,a){this.src=t,this.env=n,this.options=r,this.parser=e,this.tokens=a,this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache=[],this.isInLabel=!1,this.linkLevel=0,this.linkContent="",this.labelUnmatchedScopes=0}mn.prototype.pushPending=function(){this.tokens.push({type:"text",content:this.pending,level:this.pendingLevel}),this.pending=""};mn.prototype.push=function(t){this.pending&&this.pushPending(),this.tokens.push(t),this.pendingLevel=this.level};mn.prototype.cacheSet=function(t,e){for(var r=this.cache.length;r<=t;r++)this.cache.push(0);this.cache[t]=e};mn.prototype.cacheGet=function(t){return t<this.cache.length?this.cache[t]:0};function Oa(t,e){var r,n,a,s=-1,o=t.posMax,c=t.pos,u=t.isInLabel;if(t.isInLabel)return-1;if(t.labelUnmatchedScopes)return t.labelUnmatchedScopes--,-1;for(t.pos=e+1,t.isInLabel=!0,r=1;t.pos<o;){if(a=t.src.charCodeAt(t.pos),a===91)r++;else if(a===93&&(r--,r===0)){n=!0;break}t.parser.skipToken(t)}return n?(s=t.pos,t.labelUnmatchedScopes=0):t.labelUnmatchedScopes=r-1,t.pos=c,t.isInLabel=u,s}function wp(t,e,r,n){var a,s,o,c,u,f;if(t.charCodeAt(0)!==42||t.charCodeAt(1)!==91||t.indexOf("]:")===-1||(a=new mn(t,e,r,n,[]),s=Oa(a,1),s<0||t.charCodeAt(s+1)!==58))return-1;for(c=a.posMax,o=s+2;o<c&&a.src.charCodeAt(o)!==10;o++);return u=t.slice(2,s),f=t.slice(s+2,o).trim(),f.length===0?-1:(n.abbreviations||(n.abbreviations={}),typeof n.abbreviations[":"+u]>"u"&&(n.abbreviations[":"+u]=f),o)}function _p(t){var e=t.tokens,r,n,a,s;if(!t.inlineMode){for(r=1,n=e.length-1;r<n;r++)if(e[r-1].type==="paragraph_open"&&e[r].type==="inline"&&e[r+1].type==="paragraph_close"){for(a=e[r].content;a.length&&(s=wp(a,t.inline,t.options,t.env),!(s<0));)a=a.slice(s).trim();e[r].content=a,a.length||(e[r-1].tight=!0,e[r+1].tight=!0)}}}function $o(t){var e=Fr(t);try{e=decodeURI(e)}catch{}return encodeURI(e)}function ud(t,e){var r,n,a,s=e,o=t.posMax;if(t.src.charCodeAt(e)===60){for(e++;e<o;){if(r=t.src.charCodeAt(e),r===10)return!1;if(r===62)return a=$o(Rn(t.src.slice(s+1,e))),t.parser.validateLink(a)?(t.pos=e+1,t.linkContent=a,!0):!1;if(r===92&&e+1<o){e+=2;continue}e++}return!1}for(n=0;e<o&&(r=t.src.charCodeAt(e),!(r===32||r<32||r===127));){if(r===92&&e+1<o){e+=2;continue}if(r===40&&(n++,n>1)||r===41&&(n--,n<0))break;e++}return s===e||(a=Rn(t.src.slice(s,e)),!t.parser.validateLink(a))?!1:(t.linkContent=a,t.pos=e,!0)}function ld(t,e){var r,n=e,a=t.posMax,s=t.src.charCodeAt(e);if(s!==34&&s!==39&&s!==40)return!1;for(e++,s===40&&(s=41);e<a;){if(r=t.src.charCodeAt(e),r===s)return t.pos=e+1,t.linkContent=Rn(t.src.slice(n+1,e)),!0;if(r===92&&e+1<a){e+=2;continue}e++}return!1}function cd(t){return t.trim().replace(/\s+/g," ").toUpperCase()}function Ep(t,e,r,n){var a,s,o,c,u,f,l,h,d;if(t.charCodeAt(0)!==91||t.indexOf("]:")===-1||(a=new mn(t,e,r,n,[]),s=Oa(a,0),s<0||t.charCodeAt(s+1)!==58))return-1;for(c=a.posMax,o=s+2;o<c&&(u=a.src.charCodeAt(o),!(u!==32&&u!==10));o++);if(!ud(a,o))return-1;for(l=a.linkContent,o=a.pos,f=o,o=o+1;o<c&&(u=a.src.charCodeAt(o),!(u!==32&&u!==10));o++);for(o<c&&f!==o&&ld(a,o)?(h=a.linkContent,o=a.pos):(h="",o=f);o<c&&a.src.charCodeAt(o)===32;)o++;return o<c&&a.src.charCodeAt(o)!==10?-1:(d=cd(t.slice(1,s)),typeof n.references[d]>"u"&&(n.references[d]={title:h,href:l}),o)}function Np(t){var e=t.tokens,r,n,a,s;if(t.env.references=t.env.references||{},!t.inlineMode){for(r=1,n=e.length-1;r<n;r++)if(e[r].type==="inline"&&e[r-1].type==="paragraph_open"&&e[r+1].type==="paragraph_close"){for(a=e[r].content;a.length&&(s=Ep(a,t.inline,t.options,t.env),!(s<0));)a=a.slice(s).trim();e[r].content=a,a.length||(e[r-1].tight=!0,e[r+1].tight=!0)}}}function Ap(t){var e=t.tokens,r,n,a;for(n=0,a=e.length;n<a;n++)r=e[n],r.type==="inline"&&t.inline.parse(r.content,t.options,t.env,r.children)}function kp(t){var e,r,n,a,s,o,c,u,f,l=0,h=!1,d={};if(t.env.footnotes&&(t.tokens=t.tokens.filter(function(m){return m.type==="footnote_reference_open"?(h=!0,u=[],f=m.label,!1):m.type==="footnote_reference_close"?(h=!1,d[":"+f]=u,!1):(h&&u.push(m),!h)}),!!t.env.footnotes.list)){for(o=t.env.footnotes.list,t.tokens.push({type:"footnote_block_open",level:l++}),e=0,r=o.length;e<r;e++){for(t.tokens.push({type:"footnote_open",id:e,level:l++}),o[e].tokens?(c=[],c.push({type:"paragraph_open",tight:!1,level:l++}),c.push({type:"inline",content:"",level:l,children:o[e].tokens}),c.push({type:"paragraph_close",tight:!1,level:--l})):o[e].label&&(c=d[":"+o[e].label]),t.tokens=t.tokens.concat(c),t.tokens[t.tokens.length-1].type==="paragraph_close"?s=t.tokens.pop():s=null,a=o[e].count>0?o[e].count:1,n=0;n<a;n++)t.tokens.push({type:"footnote_anchor",id:e,subId:n,level:l});s&&t.tokens.push(s),t.tokens.push({type:"footnote_close",level:--l})}t.tokens.push({type:"footnote_block_close",level:--l})}}var vl=`
123
+ ()[]'".,!?-`;function fo(t){return t.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1")}function jp(t){var e,r,n,a,s,o,c,u,f,l,h,d,m=t.tokens;if(t.env.abbreviations){for(t.env.abbrRegExp||(d="(^|["+vl.split("").map(fo).join("")+"])("+Object.keys(t.env.abbreviations).map(function(b){return b.substr(1)}).sort(function(b,x){return x.length-b.length}).map(fo).join("|")+")($|["+vl.split("").map(fo).join("")+"])",t.env.abbrRegExp=new RegExp(d,"g")),l=t.env.abbrRegExp,r=0,n=m.length;r<n;r++)if(m[r].type==="inline"){for(a=m[r].children,e=a.length-1;e>=0;e--)if(s=a[e],s.type==="text"){for(u=0,o=s.content,l.lastIndex=0,f=s.level,c=[];h=l.exec(o);)l.lastIndex>u&&c.push({type:"text",content:o.slice(u,h.index+h[1].length),level:f}),c.push({type:"abbr_open",title:t.env.abbreviations[":"+h[2]],level:f++}),c.push({type:"text",content:h[2],level:f}),c.push({type:"abbr_close",level:--f}),u=l.lastIndex-h[3].length;c.length&&(u<o.length&&c.push({type:"text",content:o.slice(u),level:f}),m[r].children=a=[].concat(a.slice(0,e),c,a.slice(e+1)))}}}}var Sp=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Dp=/\((c|tm|r|p)\)/ig,Tp={c:"©",r:"®",p:"§",tm:"™"};function Cp(t){return t.indexOf("(")<0?t:t.replace(Dp,function(e,r){return Tp[r.toLowerCase()]})}function Op(t){var e,r,n,a,s;if(t.options.typographer){for(s=t.tokens.length-1;s>=0;s--)if(t.tokens[s].type==="inline")for(a=t.tokens[s].children,e=a.length-1;e>=0;e--)r=a[e],r.type==="text"&&(n=r.content,n=Cp(n),Sp.test(n)&&(n=n.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/mg,"$1—$2").replace(/(^|\s)--(\s|$)/mg,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/mg,"$1–$2")),r.content=n)}}var $p=/['"]/,wl=/['"]/g,Pp=/[-\s()\[\]]/,_l="’";function El(t,e){return e<0||e>=t.length?!1:!Pp.test(t[e])}function Tn(t,e,r){return t.substr(0,e)+r+t.substr(e+1)}function Lp(t){var e,r,n,a,s,o,c,u,f,l,h,d,m,b,x,y,g;if(t.options.typographer){for(g=[],x=t.tokens.length-1;x>=0;x--)if(t.tokens[x].type==="inline"){for(y=t.tokens[x].children,g.length=0,e=0;e<y.length;e++)if(r=y[e],!(r.type!=="text"||$p.test(r.text))){for(c=y[e].level,m=g.length-1;m>=0&&!(g[m].level<=c);m--);g.length=m+1,n=r.content,s=0,o=n.length;e:for(;s<o&&(wl.lastIndex=s,a=wl.exec(n),!!a);){if(u=!El(n,a.index-1),s=a.index+1,b=a[0]==="'",f=!El(n,s),!f&&!u){b&&(r.content=Tn(r.content,a.index,_l));continue}if(h=!f,d=!u,d){for(m=g.length-1;m>=0&&(l=g[m],!(g[m].level<c));m--)if(l.single===b&&g[m].level===c){l=g[m],b?(y[l.token].content=Tn(y[l.token].content,l.pos,t.options.quotes[2]),r.content=Tn(r.content,a.index,t.options.quotes[3])):(y[l.token].content=Tn(y[l.token].content,l.pos,t.options.quotes[0]),r.content=Tn(r.content,a.index,t.options.quotes[1])),g.length=m;continue e}}h?g.push({token:e,pos:a.index,single:b,level:c}):d&&b&&(r.content=Tn(r.content,a.index,_l))}}}}}var ho=[["block",vp],["abbr",_p],["references",Np],["inline",Ap],["footnote_tail",kp],["abbr2",jp],["replacements",Op],["smartquotes",Lp]];function dd(){this.options={},this.ruler=new _t;for(var t=0;t<ho.length;t++)this.ruler.push(ho[t][0],ho[t][1])}dd.prototype.process=function(t){var e,r,n;for(n=this.ruler.getRules(""),e=0,r=n.length;e<r;e++)n[e](t)};function gn(t,e,r,n,a){var s,o,c,u,f,l,h;for(this.src=t,this.parser=e,this.options=r,this.env=n,this.tokens=a,this.bMarks=[],this.eMarks=[],this.tShift=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.parentType="root",this.ddIndent=-1,this.level=0,this.result="",o=this.src,l=0,h=!1,c=u=l=0,f=o.length;u<f;u++){if(s=o.charCodeAt(u),!h)if(s===32){l++;continue}else h=!0;(s===10||u===f-1)&&(s!==10&&u++,this.bMarks.push(c),this.eMarks.push(u),this.tShift.push(l),h=!1,l=0,c=u+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.lineMax=this.bMarks.length-1}gn.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};gn.prototype.skipEmptyLines=function(e){for(var r=this.lineMax;e<r&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};gn.prototype.skipSpaces=function(e){for(var r=this.src.length;e<r&&this.src.charCodeAt(e)===32;e++);return e};gn.prototype.skipChars=function(e,r){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===r;e++);return e};gn.prototype.skipCharsBack=function(e,r,n){if(e<=n)return e;for(;e>n;)if(r!==this.src.charCodeAt(--e))return e+1;return e};gn.prototype.getLines=function(e,r,n,a){var s,o,c,u,f,l=e;if(e>=r)return"";if(l+1===r)return o=this.bMarks[l]+Math.min(this.tShift[l],n),c=a?this.eMarks[l]+1:this.eMarks[l],this.src.slice(o,c);for(u=new Array(r-e),s=0;l<r;l++,s++)f=this.tShift[l],f>n&&(f=n),f<0&&(f=0),o=this.bMarks[l]+f,l+1<r||a?c=this.eMarks[l]+1:c=this.eMarks[l],u[s]=this.src.slice(o,c);return u.join("")};function Mp(t,e,r){var n,a;if(t.tShift[e]-t.blkIndent<4)return!1;for(a=n=e+1;n<r;){if(t.isEmpty(n)){n++;continue}if(t.tShift[n]-t.blkIndent>=4){n++,a=n;continue}break}return t.line=n,t.tokens.push({type:"code",content:t.getLines(e,a,4+t.blkIndent,!0),block:!0,lines:[e,t.line],level:t.level}),!0}function Ip(t,e,r,n){var a,s,o,c,u,f=!1,l=t.bMarks[e]+t.tShift[e],h=t.eMarks[e];if(l+3>h||(a=t.src.charCodeAt(l),a!==126&&a!==96)||(u=l,l=t.skipChars(l,a),s=l-u,s<3)||(o=t.src.slice(l,h).trim(),o.indexOf("`")>=0))return!1;if(n)return!0;for(c=e;c++,!(c>=r||(l=u=t.bMarks[c]+t.tShift[c],h=t.eMarks[c],l<h&&t.tShift[c]<t.blkIndent));)if(t.src.charCodeAt(l)===a&&!(t.tShift[c]-t.blkIndent>=4)&&(l=t.skipChars(l,a),!(l-u<s)&&(l=t.skipSpaces(l),!(l<h)))){f=!0;break}return s=t.tShift[e],t.line=c+(f?1:0),t.tokens.push({type:"fence",params:o,content:t.getLines(e+1,c,s,!0),lines:[e,t.line],level:t.level}),!0}function Fp(t,e,r,n){var a,s,o,c,u,f,l,h,d,m,b,x=t.bMarks[e]+t.tShift[e],y=t.eMarks[e];if(x>y||t.src.charCodeAt(x++)!==62||t.level>=t.options.maxNesting)return!1;if(n)return!0;for(t.src.charCodeAt(x)===32&&x++,u=t.blkIndent,t.blkIndent=0,c=[t.bMarks[e]],t.bMarks[e]=x,x=x<y?t.skipSpaces(x):x,s=x>=y,o=[t.tShift[e]],t.tShift[e]=x-t.bMarks[e],h=t.parser.ruler.getRules("blockquote"),a=e+1;a<r&&(x=t.bMarks[a]+t.tShift[a],y=t.eMarks[a],!(x>=y));a++){if(t.src.charCodeAt(x++)===62){t.src.charCodeAt(x)===32&&x++,c.push(t.bMarks[a]),t.bMarks[a]=x,x=x<y?t.skipSpaces(x):x,s=x>=y,o.push(t.tShift[a]),t.tShift[a]=x-t.bMarks[a];continue}if(s)break;for(b=!1,d=0,m=h.length;d<m;d++)if(h[d](t,a,r,!0)){b=!0;break}if(b)break;c.push(t.bMarks[a]),o.push(t.tShift[a]),t.tShift[a]=-1337}for(f=t.parentType,t.parentType="blockquote",t.tokens.push({type:"blockquote_open",lines:l=[e,0],level:t.level++}),t.parser.tokenize(t,e,a),t.tokens.push({type:"blockquote_close",level:--t.level}),t.parentType=f,l[1]=t.line,d=0;d<o.length;d++)t.bMarks[d+e]=c[d],t.tShift[d+e]=o[d];return t.blkIndent=u,!0}function Rp(t,e,r,n){var a,s,o,c=t.bMarks[e],u=t.eMarks[e];if(c+=t.tShift[e],c>u||(a=t.src.charCodeAt(c++),a!==42&&a!==45&&a!==95))return!1;for(s=1;c<u;){if(o=t.src.charCodeAt(c++),o!==a&&o!==32)return!1;o===a&&s++}return s<3?!1:(n||(t.line=e+1,t.tokens.push({type:"hr",lines:[e,t.line],level:t.level})),!0)}function Nl(t,e){var r,n,a;return n=t.bMarks[e]+t.tShift[e],a=t.eMarks[e],n>=a||(r=t.src.charCodeAt(n++),r!==42&&r!==45&&r!==43)||n<a&&t.src.charCodeAt(n)!==32?-1:n}function Al(t,e){var r,n=t.bMarks[e]+t.tShift[e],a=t.eMarks[e];if(n+1>=a||(r=t.src.charCodeAt(n++),r<48||r>57))return-1;for(;;){if(n>=a)return-1;if(r=t.src.charCodeAt(n++),!(r>=48&&r<=57)){if(r===41||r===46)break;return-1}}return n<a&&t.src.charCodeAt(n)!==32?-1:n}function Bp(t,e){var r,n,a=t.level+2;for(r=e+2,n=t.tokens.length-2;r<n;r++)t.tokens[r].level===a&&t.tokens[r].type==="paragraph_open"&&(t.tokens[r+2].tight=!0,t.tokens[r].tight=!0,r+=2)}function Vp(t,e,r,n){var a,s,o,c,u,f,l,h,d,m,b,x,y,g,E,D,w,j,p=!0,A,k,V,H;if((h=Al(t,e))>=0)y=!0;else if((h=Nl(t,e))>=0)y=!1;else return!1;if(t.level>=t.options.maxNesting)return!1;if(x=t.src.charCodeAt(h-1),n)return!0;for(E=t.tokens.length,y?(l=t.bMarks[e]+t.tShift[e],b=Number(t.src.substr(l,h-l-1)),t.tokens.push({type:"ordered_list_open",order:b,lines:w=[e,0],level:t.level++})):t.tokens.push({type:"bullet_list_open",lines:w=[e,0],level:t.level++}),a=e,D=!1,A=t.parser.ruler.getRules("list");a<r&&(g=t.skipSpaces(h),d=t.eMarks[a],g>=d?m=1:m=g-h,m>4&&(m=1),m<1&&(m=1),s=h-t.bMarks[a]+m,t.tokens.push({type:"list_item_open",lines:j=[e,0],level:t.level++}),c=t.blkIndent,u=t.tight,o=t.tShift[e],f=t.parentType,t.tShift[e]=g-t.bMarks[e],t.blkIndent=s,t.tight=!0,t.parentType="list",t.parser.tokenize(t,e,r,!0),(!t.tight||D)&&(p=!1),D=t.line-e>1&&t.isEmpty(t.line-1),t.blkIndent=c,t.tShift[e]=o,t.tight=u,t.parentType=f,t.tokens.push({type:"list_item_close",level:--t.level}),a=e=t.line,j[1]=a,g=t.bMarks[e],!(a>=r||t.isEmpty(a)||t.tShift[a]<t.blkIndent));){for(H=!1,k=0,V=A.length;k<V;k++)if(A[k](t,a,r,!0)){H=!0;break}if(H)break;if(y){if(h=Al(t,a),h<0)break}else if(h=Nl(t,a),h<0)break;if(x!==t.src.charCodeAt(h-1))break}return t.tokens.push({type:y?"ordered_list_close":"bullet_list_close",level:--t.level}),w[1]=a,t.line=a,p&&Bp(t,E),!0}function qp(t,e,r,n){var a,s,o,c,u,f=t.bMarks[e]+t.tShift[e],l=t.eMarks[e];if(f+4>l||t.src.charCodeAt(f)!==91||t.src.charCodeAt(f+1)!==94||t.level>=t.options.maxNesting)return!1;for(c=f+2;c<l;c++){if(t.src.charCodeAt(c)===32)return!1;if(t.src.charCodeAt(c)===93)break}return c===f+2||c+1>=l||t.src.charCodeAt(++c)!==58?!1:(n||(c++,t.env.footnotes||(t.env.footnotes={}),t.env.footnotes.refs||(t.env.footnotes.refs={}),u=t.src.slice(f+2,c-2),t.env.footnotes.refs[":"+u]=-1,t.tokens.push({type:"footnote_reference_open",label:u,level:t.level++}),a=t.bMarks[e],s=t.tShift[e],o=t.parentType,t.tShift[e]=t.skipSpaces(c)-c,t.bMarks[e]=c,t.blkIndent+=4,t.parentType="footnote",t.tShift[e]<t.blkIndent&&(t.tShift[e]+=t.blkIndent,t.bMarks[e]-=t.blkIndent),t.parser.tokenize(t,e,r,!0),t.parentType=o,t.blkIndent-=4,t.tShift[e]=s,t.bMarks[e]=a,t.tokens.push({type:"footnote_reference_close",level:--t.level})),!0)}function Up(t,e,r,n){var a,s,o,c=t.bMarks[e]+t.tShift[e],u=t.eMarks[e];if(c>=u||(a=t.src.charCodeAt(c),a!==35||c>=u))return!1;for(s=1,a=t.src.charCodeAt(++c);a===35&&c<u&&s<=6;)s++,a=t.src.charCodeAt(++c);return s>6||c<u&&a!==32?!1:(n||(u=t.skipCharsBack(u,32,c),o=t.skipCharsBack(u,35,c),o>c&&t.src.charCodeAt(o-1)===32&&(u=o),t.line=e+1,t.tokens.push({type:"heading_open",hLevel:s,lines:[e,t.line],level:t.level}),c<u&&t.tokens.push({type:"inline",content:t.src.slice(c,u).trim(),level:t.level+1,lines:[e,t.line],children:[]}),t.tokens.push({type:"heading_close",hLevel:s,level:t.level})),!0)}function zp(t,e,r){var n,a,s,o=e+1;return o>=r||t.tShift[o]<t.blkIndent||t.tShift[o]-t.blkIndent>3||(a=t.bMarks[o]+t.tShift[o],s=t.eMarks[o],a>=s)||(n=t.src.charCodeAt(a),n!==45&&n!==61)||(a=t.skipChars(a,n),a=t.skipSpaces(a),a<s)?!1:(a=t.bMarks[e]+t.tShift[e],t.line=o+1,t.tokens.push({type:"heading_open",hLevel:n===61?1:2,lines:[e,t.line],level:t.level}),t.tokens.push({type:"inline",content:t.src.slice(a,t.eMarks[e]).trim(),level:t.level+1,lines:[e,t.line-1],children:[]}),t.tokens.push({type:"heading_close",hLevel:n===61?1:2,level:t.level}),!0)}var fd={};["article","aside","button","blockquote","body","canvas","caption","col","colgroup","dd","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","iframe","li","map","object","ol","output","p","pre","progress","script","section","style","table","tbody","td","textarea","tfoot","th","tr","thead","ul","video"].forEach(function(t){fd[t]=!0});var Hp=/^<([a-zA-Z]{1,15})[\s\/>]/,Wp=/^<\/([a-zA-Z]{1,15})[\s>]/;function Gp(t){var e=t|32;return e>=97&&e<=122}function Jp(t,e,r,n){var a,s,o,c=t.bMarks[e],u=t.eMarks[e],f=t.tShift[e];if(c+=f,!t.options.html||f>3||c+2>=u||t.src.charCodeAt(c)!==60)return!1;if(a=t.src.charCodeAt(c+1),a===33||a===63){if(n)return!0}else if(a===47||Gp(a)){if(a===47){if(s=t.src.slice(c,u).match(Wp),!s)return!1}else if(s=t.src.slice(c,u).match(Hp),!s)return!1;if(fd[s[1].toLowerCase()]!==!0)return!1;if(n)return!0}else return!1;for(o=e+1;o<t.lineMax&&!t.isEmpty(o);)o++;return t.line=o,t.tokens.push({type:"htmlblock",level:t.level,lines:[e,t.line],content:t.getLines(e,o,0,!0)}),!0}function po(t,e){var r=t.bMarks[e]+t.blkIndent,n=t.eMarks[e];return t.src.substr(r,n-r)}function Yp(t,e,r,n){var a,s,o,c,u,f,l,h,d,m,b;if(e+2>r||(u=e+1,t.tShift[u]<t.blkIndent)||(o=t.bMarks[u]+t.tShift[u],o>=t.eMarks[u])||(a=t.src.charCodeAt(o),a!==124&&a!==45&&a!==58)||(s=po(t,e+1),!/^[-:| ]+$/.test(s))||(f=s.split("|"),f<=2))return!1;for(h=[],c=0;c<f.length;c++){if(d=f[c].trim(),!d){if(c===0||c===f.length-1)continue;return!1}if(!/^:?-+:?$/.test(d))return!1;d.charCodeAt(d.length-1)===58?h.push(d.charCodeAt(0)===58?"center":"right"):d.charCodeAt(0)===58?h.push("left"):h.push("")}if(s=po(t,e).trim(),s.indexOf("|")===-1||(f=s.replace(/^\||\|$/g,"").split("|"),h.length!==f.length))return!1;if(n)return!0;for(t.tokens.push({type:"table_open",lines:m=[e,0],level:t.level++}),t.tokens.push({type:"thead_open",lines:[e,e+1],level:t.level++}),t.tokens.push({type:"tr_open",lines:[e,e+1],level:t.level++}),c=0;c<f.length;c++)t.tokens.push({type:"th_open",align:h[c],lines:[e,e+1],level:t.level++}),t.tokens.push({type:"inline",content:f[c].trim(),lines:[e,e+1],level:t.level,children:[]}),t.tokens.push({type:"th_close",level:--t.level});for(t.tokens.push({type:"tr_close",level:--t.level}),t.tokens.push({type:"thead_close",level:--t.level}),t.tokens.push({type:"tbody_open",lines:b=[e+2,0],level:t.level++}),u=e+2;u<r&&!(t.tShift[u]<t.blkIndent||(s=po(t,u).trim(),s.indexOf("|")===-1));u++){for(f=s.replace(/^\||\|$/g,"").split("|"),t.tokens.push({type:"tr_open",level:t.level++}),c=0;c<f.length;c++)t.tokens.push({type:"td_open",align:h[c],level:t.level++}),l=f[c].substring(f[c].charCodeAt(0)===124?1:0,f[c].charCodeAt(f[c].length-1)===124?f[c].length-1:f[c].length).trim(),t.tokens.push({type:"inline",content:l,level:t.level,children:[]}),t.tokens.push({type:"td_close",level:--t.level});t.tokens.push({type:"tr_close",level:--t.level})}return t.tokens.push({type:"tbody_close",level:--t.level}),t.tokens.push({type:"table_close",level:--t.level}),m[1]=b[1]=u,t.line=u,!0}function ms(t,e){var r,n,a=t.bMarks[e]+t.tShift[e],s=t.eMarks[e];return a>=s||(n=t.src.charCodeAt(a++),n!==126&&n!==58)||(r=t.skipSpaces(a),a===r)||r>=s?-1:r}function Zp(t,e){var r,n,a=t.level+2;for(r=e+2,n=t.tokens.length-2;r<n;r++)t.tokens[r].level===a&&t.tokens[r].type==="paragraph_open"&&(t.tokens[r+2].tight=!0,t.tokens[r].tight=!0,r+=2)}function Xp(t,e,r,n){var a,s,o,c,u,f,l,h,d,m,b,x,y,g;if(n)return t.ddIndent<0?!1:ms(t,e)>=0;if(l=e+1,t.isEmpty(l)&&++l>r||t.tShift[l]<t.blkIndent||(a=ms(t,l),a<0)||t.level>=t.options.maxNesting)return!1;f=t.tokens.length,t.tokens.push({type:"dl_open",lines:u=[e,0],level:t.level++}),o=e,s=l;e:for(;;){for(g=!0,y=!1,t.tokens.push({type:"dt_open",lines:[o,o],level:t.level++}),t.tokens.push({type:"inline",content:t.getLines(o,o+1,t.blkIndent,!1).trim(),level:t.level+1,lines:[o,o],children:[]}),t.tokens.push({type:"dt_close",level:--t.level});;){if(t.tokens.push({type:"dd_open",lines:c=[l,0],level:t.level++}),x=t.tight,d=t.ddIndent,h=t.blkIndent,b=t.tShift[s],m=t.parentType,t.blkIndent=t.ddIndent=t.tShift[s]+2,t.tShift[s]=a-t.bMarks[s],t.tight=!0,t.parentType="deflist",t.parser.tokenize(t,s,r,!0),(!t.tight||y)&&(g=!1),y=t.line-s>1&&t.isEmpty(t.line-1),t.tShift[s]=b,t.tight=x,t.parentType=m,t.blkIndent=h,t.ddIndent=d,t.tokens.push({type:"dd_close",level:--t.level}),c[1]=l=t.line,l>=r||t.tShift[l]<t.blkIndent)break e;if(a=ms(t,l),a<0)break;s=l}if(l>=r||(o=l,t.isEmpty(o))||t.tShift[o]<t.blkIndent||(s=o+1,s>=r)||(t.isEmpty(s)&&s++,s>=r)||t.tShift[s]<t.blkIndent||(a=ms(t,s),a<0))break}return t.tokens.push({type:"dl_close",level:--t.level}),u[1]=l,t.line=l,g&&Zp(t,f),!0}function Kp(t,e){var r,n,a,s,o,c=e+1,u;if(r=t.lineMax,c<r&&!t.isEmpty(c)){for(u=t.parser.ruler.getRules("paragraph");c<r&&!t.isEmpty(c);c++)if(!(t.tShift[c]-t.blkIndent>3)){for(a=!1,s=0,o=u.length;s<o;s++)if(u[s](t,c,r,!0)){a=!0;break}if(a)break}}return n=t.getLines(e,c,t.blkIndent,!1).trim(),t.line=c,n.length&&(t.tokens.push({type:"paragraph_open",tight:!1,lines:[e,t.line],level:t.level}),t.tokens.push({type:"inline",content:n,level:t.level+1,lines:[e,t.line],children:[]}),t.tokens.push({type:"paragraph_close",tight:!1,level:t.level})),!0}var gs=[["code",Mp],["fences",Ip,["paragraph","blockquote","list"]],["blockquote",Fp,["paragraph","blockquote","list"]],["hr",Rp,["paragraph","blockquote","list"]],["list",Vp,["paragraph","blockquote"]],["footnote",qp,["paragraph"]],["heading",Up,["paragraph","blockquote"]],["lheading",zp],["htmlblock",Jp,["paragraph","blockquote"]],["table",Yp,["paragraph"]],["deflist",Xp,["paragraph"]],["paragraph",Kp]];function du(){this.ruler=new _t;for(var t=0;t<gs.length;t++)this.ruler.push(gs[t][0],gs[t][1],{alt:(gs[t][2]||[]).slice()})}du.prototype.tokenize=function(t,e,r){for(var n=this.ruler.getRules(""),a=n.length,s=e,o=!1,c,u;s<r&&(t.line=s=t.skipEmptyLines(s),!(s>=r||t.tShift[s]<t.blkIndent));){for(u=0;u<a&&(c=n[u](t,s,r,!1),!c);u++);if(t.tight=!o,t.isEmpty(t.line-1)&&(o=!0),s=t.line,s<r&&t.isEmpty(s)){if(o=!0,s++,s<r&&t.parentType==="list"&&t.isEmpty(s))break;t.line=s}}};var Qp=/[\n\t]/g,em=/\r[\n\u0085]|[\u2424\u2028\u0085]/g,tm=/\u00a0/g;du.prototype.parse=function(t,e,r,n){var a,s=0,o=0;if(!t)return[];t=t.replace(tm," "),t=t.replace(em,`
124
+ `),t.indexOf(" ")>=0&&(t=t.replace(Qp,function(c,u){var f;return t.charCodeAt(u)===10?(s=u+1,o=0,c):(f=" ".slice((u-s-o)%4),o=u-s+1,f)})),a=new gn(t,this,e,r,n),this.tokenize(a,a.line,a.lineMax)};function rm(t){switch(t){case 10:case 92:case 96:case 42:case 95:case 94:case 91:case 93:case 33:case 38:case 60:case 62:case 123:case 125:case 36:case 37:case 64:case 126:case 43:case 61:case 58:return!0;default:return!1}}function nm(t,e){for(var r=t.pos;r<t.posMax&&!rm(t.src.charCodeAt(r));)r++;return r===t.pos?!1:(e||(t.pending+=t.src.slice(t.pos,r)),t.pos=r,!0)}function am(t,e){var r,n,a=t.pos;if(t.src.charCodeAt(a)!==10)return!1;if(r=t.pending.length-1,n=t.posMax,!e)if(r>=0&&t.pending.charCodeAt(r)===32)if(r>=1&&t.pending.charCodeAt(r-1)===32){for(var s=r-2;s>=0;s--)if(t.pending.charCodeAt(s)!==32){t.pending=t.pending.substring(0,s+1);break}t.push({type:"hardbreak",level:t.level})}else t.pending=t.pending.slice(0,-1),t.push({type:"softbreak",level:t.level});else t.push({type:"softbreak",level:t.level});for(a++;a<n&&t.src.charCodeAt(a)===32;)a++;return t.pos=a,!0}var fu=[];for(var kl=0;kl<256;kl++)fu.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){fu[t.charCodeAt(0)]=1});function sm(t,e){var r,n=t.pos,a=t.posMax;if(t.src.charCodeAt(n)!==92)return!1;if(n++,n<a){if(r=t.src.charCodeAt(n),r<256&&fu[r]!==0)return e||(t.pending+=t.src[n]),t.pos+=2,!0;if(r===10){for(e||t.push({type:"hardbreak",level:t.level}),n++;n<a&&t.src.charCodeAt(n)===32;)n++;return t.pos=n,!0}}return e||(t.pending+="\\"),t.pos++,!0}function im(t,e){var r,n,a,s,o,c=t.pos,u=t.src.charCodeAt(c);if(u!==96)return!1;for(r=c,c++,n=t.posMax;c<n&&t.src.charCodeAt(c)===96;)c++;for(a=t.src.slice(r,c),s=o=c;(s=t.src.indexOf("`",o))!==-1;){for(o=s+1;o<n&&t.src.charCodeAt(o)===96;)o++;if(o-s===a.length)return e||t.push({type:"code",content:t.src.slice(c,s).replace(/[ \n]+/g," ").trim(),block:!1,level:t.level}),t.pos=o,!0}return e||(t.pending+=a),t.pos+=a.length,!0}function om(t,e){var r,n,a,s=t.posMax,o=t.pos,c,u;if(t.src.charCodeAt(o)!==126||e||o+4>=s||t.src.charCodeAt(o+1)!==126||t.level>=t.options.maxNesting||(c=o>0?t.src.charCodeAt(o-1):-1,u=t.src.charCodeAt(o+2),c===126)||u===126||u===32||u===10)return!1;for(n=o+2;n<s&&t.src.charCodeAt(n)===126;)n++;if(n>o+3)return t.pos+=n-o,e||(t.pending+=t.src.slice(o,n)),!0;for(t.pos=o+2,a=1;t.pos+1<s;){if(t.src.charCodeAt(t.pos)===126&&t.src.charCodeAt(t.pos+1)===126&&(c=t.src.charCodeAt(t.pos-1),u=t.pos+2<s?t.src.charCodeAt(t.pos+2):-1,u!==126&&c!==126&&(c!==32&&c!==10?a--:u!==32&&u!==10&&a++,a<=0))){r=!0;break}t.parser.skipToken(t)}return r?(t.posMax=t.pos,t.pos=o+2,e||(t.push({type:"del_open",level:t.level++}),t.parser.tokenize(t),t.push({type:"del_close",level:--t.level})),t.pos=t.posMax+2,t.posMax=s,!0):(t.pos=o,!1)}function um(t,e){var r,n,a,s=t.posMax,o=t.pos,c,u;if(t.src.charCodeAt(o)!==43||e||o+4>=s||t.src.charCodeAt(o+1)!==43||t.level>=t.options.maxNesting||(c=o>0?t.src.charCodeAt(o-1):-1,u=t.src.charCodeAt(o+2),c===43)||u===43||u===32||u===10)return!1;for(n=o+2;n<s&&t.src.charCodeAt(n)===43;)n++;if(n!==o+2)return t.pos+=n-o,e||(t.pending+=t.src.slice(o,n)),!0;for(t.pos=o+2,a=1;t.pos+1<s;){if(t.src.charCodeAt(t.pos)===43&&t.src.charCodeAt(t.pos+1)===43&&(c=t.src.charCodeAt(t.pos-1),u=t.pos+2<s?t.src.charCodeAt(t.pos+2):-1,u!==43&&c!==43&&(c!==32&&c!==10?a--:u!==32&&u!==10&&a++,a<=0))){r=!0;break}t.parser.skipToken(t)}return r?(t.posMax=t.pos,t.pos=o+2,e||(t.push({type:"ins_open",level:t.level++}),t.parser.tokenize(t),t.push({type:"ins_close",level:--t.level})),t.pos=t.posMax+2,t.posMax=s,!0):(t.pos=o,!1)}function lm(t,e){var r,n,a,s=t.posMax,o=t.pos,c,u;if(t.src.charCodeAt(o)!==61||e||o+4>=s||t.src.charCodeAt(o+1)!==61||t.level>=t.options.maxNesting||(c=o>0?t.src.charCodeAt(o-1):-1,u=t.src.charCodeAt(o+2),c===61)||u===61||u===32||u===10)return!1;for(n=o+2;n<s&&t.src.charCodeAt(n)===61;)n++;if(n!==o+2)return t.pos+=n-o,e||(t.pending+=t.src.slice(o,n)),!0;for(t.pos=o+2,a=1;t.pos+1<s;){if(t.src.charCodeAt(t.pos)===61&&t.src.charCodeAt(t.pos+1)===61&&(c=t.src.charCodeAt(t.pos-1),u=t.pos+2<s?t.src.charCodeAt(t.pos+2):-1,u!==61&&c!==61&&(c!==32&&c!==10?a--:u!==32&&u!==10&&a++,a<=0))){r=!0;break}t.parser.skipToken(t)}return r?(t.posMax=t.pos,t.pos=o+2,e||(t.push({type:"mark_open",level:t.level++}),t.parser.tokenize(t),t.push({type:"mark_close",level:--t.level})),t.pos=t.posMax+2,t.posMax=s,!0):(t.pos=o,!1)}function jl(t){return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122}function Sl(t,e){var r=e,n,a,s,o=!0,c=!0,u=t.posMax,f=t.src.charCodeAt(e);for(n=e>0?t.src.charCodeAt(e-1):-1;r<u&&t.src.charCodeAt(r)===f;)r++;return r>=u&&(o=!1),s=r-e,s>=4?o=c=!1:(a=r<u?t.src.charCodeAt(r):-1,(a===32||a===10)&&(o=!1),(n===32||n===10)&&(c=!1),f===95&&(jl(n)&&(o=!1),jl(a)&&(c=!1))),{can_open:o,can_close:c,delims:s}}function cm(t,e){var r,n,a,s,o,c,u,f=t.posMax,l=t.pos,h=t.src.charCodeAt(l);if(h!==95&&h!==42||e)return!1;if(u=Sl(t,l),r=u.delims,!u.can_open)return t.pos+=r,e||(t.pending+=t.src.slice(l,t.pos)),!0;if(t.level>=t.options.maxNesting)return!1;for(t.pos=l+r,c=[r];t.pos<f;){if(t.src.charCodeAt(t.pos)===h){if(u=Sl(t,t.pos),n=u.delims,u.can_close){for(s=c.pop(),o=n;s!==o;){if(o<s){c.push(s-o);break}if(o-=s,c.length===0)break;t.pos+=s,s=c.pop()}if(c.length===0){r=s,a=!0;break}t.pos+=n;continue}u.can_open&&c.push(n),t.pos+=n;continue}t.parser.skipToken(t)}return a?(t.posMax=t.pos,t.pos=l+r,e||((r===2||r===3)&&t.push({type:"strong_open",level:t.level++}),(r===1||r===3)&&t.push({type:"em_open",level:t.level++}),t.parser.tokenize(t),(r===1||r===3)&&t.push({type:"em_close",level:--t.level}),(r===2||r===3)&&t.push({type:"strong_close",level:--t.level})),t.pos=t.posMax+r,t.posMax=f,!0):(t.pos=l,!1)}var dm=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function fm(t,e){var r,n,a=t.posMax,s=t.pos;if(t.src.charCodeAt(s)!==126||e||s+2>=a||t.level>=t.options.maxNesting)return!1;for(t.pos=s+1;t.pos<a;){if(t.src.charCodeAt(t.pos)===126){r=!0;break}t.parser.skipToken(t)}return!r||s+1===t.pos||(n=t.src.slice(s+1,t.pos),n.match(/(^|[^\\])(\\\\)*\s/))?(t.pos=s,!1):(t.posMax=t.pos,t.pos=s+1,e||t.push({type:"sub",level:t.level,content:n.replace(dm,"$1")}),t.pos=t.posMax+1,t.posMax=a,!0)}var hm=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function pm(t,e){var r,n,a=t.posMax,s=t.pos;if(t.src.charCodeAt(s)!==94||e||s+2>=a||t.level>=t.options.maxNesting)return!1;for(t.pos=s+1;t.pos<a;){if(t.src.charCodeAt(t.pos)===94){r=!0;break}t.parser.skipToken(t)}return!r||s+1===t.pos||(n=t.src.slice(s+1,t.pos),n.match(/(^|[^\\])(\\\\)*\s/))?(t.pos=s,!1):(t.posMax=t.pos,t.pos=s+1,e||t.push({type:"sup",level:t.level,content:n.replace(hm,"$1")}),t.pos=t.posMax+1,t.posMax=a,!0)}function mm(t,e){var r,n,a,s,o,c,u,f,l=!1,h=t.pos,d=t.posMax,m=t.pos,b=t.src.charCodeAt(m);if(b===33&&(l=!0,b=t.src.charCodeAt(++m)),b!==91||t.level>=t.options.maxNesting||(r=m+1,n=Oa(t,m),n<0))return!1;if(c=n+1,c<d&&t.src.charCodeAt(c)===40){for(c++;c<d&&(f=t.src.charCodeAt(c),!(f!==32&&f!==10));c++);if(c>=d)return!1;for(m=c,ud(t,c)?(s=t.linkContent,c=t.pos):s="",m=c;c<d&&(f=t.src.charCodeAt(c),!(f!==32&&f!==10));c++);if(c<d&&m!==c&&ld(t,c))for(o=t.linkContent,c=t.pos;c<d&&(f=t.src.charCodeAt(c),!(f!==32&&f!==10));c++);else o="";if(c>=d||t.src.charCodeAt(c)!==41)return t.pos=h,!1;c++}else{if(t.linkLevel>0)return!1;for(;c<d&&(f=t.src.charCodeAt(c),!(f!==32&&f!==10));c++);if(c<d&&t.src.charCodeAt(c)===91&&(m=c+1,c=Oa(t,c),c>=0?a=t.src.slice(m,c++):c=m-1),a||(typeof a>"u"&&(c=n+1),a=t.src.slice(r,n)),u=t.env.references[cd(a)],!u)return t.pos=h,!1;s=u.href,o=u.title}return e||(t.pos=r,t.posMax=n,l?t.push({type:"image",src:s,title:o,alt:t.src.substr(r,n-r),level:t.level}):(t.push({type:"link_open",href:s,title:o,level:t.level++}),t.linkLevel++,t.parser.tokenize(t),t.linkLevel--,t.push({type:"link_close",level:--t.level}))),t.pos=c,t.posMax=d,!0}function gm(t,e){var r,n,a,s,o=t.posMax,c=t.pos;return c+2>=o||t.src.charCodeAt(c)!==94||t.src.charCodeAt(c+1)!==91||t.level>=t.options.maxNesting||(r=c+2,n=Oa(t,c+1),n<0)?!1:(e||(t.env.footnotes||(t.env.footnotes={}),t.env.footnotes.list||(t.env.footnotes.list=[]),a=t.env.footnotes.list.length,t.pos=r,t.posMax=n,t.push({type:"footnote_ref",id:a,level:t.level}),t.linkLevel++,s=t.tokens.length,t.parser.tokenize(t),t.env.footnotes.list[a]={tokens:t.tokens.splice(s)},t.linkLevel--),t.pos=n+1,t.posMax=o,!0)}function bm(t,e){var r,n,a,s,o=t.posMax,c=t.pos;if(c+3>o||!t.env.footnotes||!t.env.footnotes.refs||t.src.charCodeAt(c)!==91||t.src.charCodeAt(c+1)!==94||t.level>=t.options.maxNesting)return!1;for(n=c+2;n<o;n++){if(t.src.charCodeAt(n)===32||t.src.charCodeAt(n)===10)return!1;if(t.src.charCodeAt(n)===93)break}return n===c+2||n>=o||(n++,r=t.src.slice(c+2,n-1),typeof t.env.footnotes.refs[":"+r]>"u")?!1:(e||(t.env.footnotes.list||(t.env.footnotes.list=[]),t.env.footnotes.refs[":"+r]<0?(a=t.env.footnotes.list.length,t.env.footnotes.list[a]={label:r,count:0},t.env.footnotes.refs[":"+r]=a):a=t.env.footnotes.refs[":"+r],s=t.env.footnotes.list[a].count,t.env.footnotes.list[a].count++,t.push({type:"footnote_ref",id:a,subId:s,level:t.level})),t.pos=n,t.posMax=o,!0)}var xm=["coap","doi","javascript","aaa","aaas","about","acap","cap","cid","crid","data","dav","dict","dns","file","ftp","geo","go","gopher","h323","http","https","iax","icap","im","imap","info","ipp","iris","iris.beep","iris.xpc","iris.xpcs","iris.lwz","ldap","mailto","mid","msrp","msrps","mtqp","mupdate","news","nfs","ni","nih","nntp","opaquelocktoken","pop","pres","rtsp","service","session","shttp","sieve","sip","sips","sms","snmp","soap.beep","soap.beeps","tag","tel","telnet","tftp","thismessage","tn3270","tip","tv","urn","vemmi","ws","wss","xcon","xcon-userid","xmlrpc.beep","xmlrpc.beeps","xmpp","z39.50r","z39.50s","adiumxtra","afp","afs","aim","apt","attachment","aw","beshare","bitcoin","bolo","callto","chrome","chrome-extension","com-eventbrite-attendee","content","cvs","dlna-playsingle","dlna-playcontainer","dtn","dvb","ed2k","facetime","feed","finger","fish","gg","git","gizmoproject","gtalk","hcp","icon","ipn","irc","irc6","ircs","itms","jar","jms","keyparc","lastfm","ldaps","magnet","maps","market","message","mms","ms-help","msnim","mumble","mvn","notes","oid","palm","paparazzi","platform","proxy","psyc","query","res","resource","rmi","rsync","rtmp","secondlife","sftp","sgn","skype","smb","soldat","spotify","ssh","steam","svn","teamspeak","things","udp","unreal","ut2004","ventrilo","view-source","webcal","wtai","wyciwyg","xfire","xri","ymsgr"],ym=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,vm=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;function wm(t,e){var r,n,a,s,o,c=t.pos;return t.src.charCodeAt(c)!==60||(r=t.src.slice(c),r.indexOf(">")<0)?!1:(n=r.match(vm),n?xm.indexOf(n[1].toLowerCase())<0||(s=n[0].slice(1,-1),o=$o(s),!t.parser.validateLink(s))?!1:(e||(t.push({type:"link_open",href:o,level:t.level}),t.push({type:"text",content:s,level:t.level+1}),t.push({type:"link_close",level:t.level})),t.pos+=n[0].length,!0):(a=r.match(ym),a?(s=a[0].slice(1,-1),o=$o("mailto:"+s),t.parser.validateLink(o)?(e||(t.push({type:"link_open",href:o,level:t.level}),t.push({type:"text",content:s,level:t.level+1}),t.push({type:"link_close",level:t.level})),t.pos+=a[0].length,!0):!1):!1))}function Si(t,e){return t=t.source,e=e||"",function r(n,a){return n?(a=a.source||a,t=t.replace(n,a),r):new RegExp(t,e)}}var _m=/[a-zA-Z_:][a-zA-Z0-9:._-]*/,Em=/[^"'=<>`\x00-\x20]+/,Nm=/'[^']*'/,Am=/"[^"]*"/,km=Si(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",Em)("single_quoted",Nm)("double_quoted",Am)(),jm=Si(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",_m)("attr_value",km)(),Sm=Si(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",jm)(),Dm=/<\/[A-Za-z][A-Za-z0-9]*\s*>/,Tm=/<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->/,Cm=/<[?].*?[?]>/,Om=/<![A-Z]+\s+[^>]*>/,$m=/<!\[CDATA\[[\s\S]*?\]\]>/,Pm=Si(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",Sm)("close_tag",Dm)("comment",Tm)("processing",Cm)("declaration",Om)("cdata",$m)();function Lm(t){var e=t|32;return e>=97&&e<=122}function Mm(t,e){var r,n,a,s=t.pos;return!t.options.html||(a=t.posMax,t.src.charCodeAt(s)!==60||s+2>=a)||(r=t.src.charCodeAt(s+1),r!==33&&r!==63&&r!==47&&!Lm(r))||(n=t.src.slice(s).match(Pm),!n)?!1:(e||t.push({type:"htmltag",content:t.src.slice(s,s+n[0].length),level:t.level}),t.pos+=n[0].length,!0)}var Im=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,Fm=/^&([a-z][a-z0-9]{1,31});/i;function Rm(t,e){var r,n,a,s=t.pos,o=t.posMax;if(t.src.charCodeAt(s)!==38)return!1;if(s+1<o){if(r=t.src.charCodeAt(s+1),r===35){if(a=t.src.slice(s).match(Im),a)return e||(n=a[1][0].toLowerCase()==="x"?parseInt(a[1].slice(1),16):parseInt(a[1],10),t.pending+=lu(n)?Hs(n):Hs(65533)),t.pos+=a[0].length,!0}else if(a=t.src.slice(s).match(Fm),a){var c=sd(a[1]);if(a[1]!==c)return e||(t.pending+=c),t.pos+=a[0].length,!0}}return e||(t.pending+="&"),t.pos++,!0}var mo=[["text",nm],["newline",am],["escape",sm],["backticks",im],["del",om],["ins",um],["mark",lm],["emphasis",cm],["sub",fm],["sup",pm],["links",mm],["footnote_inline",gm],["footnote_ref",bm],["autolink",wm],["htmltag",Mm],["entity",Rm]];function Di(){this.ruler=new _t;for(var t=0;t<mo.length;t++)this.ruler.push(mo[t][0],mo[t][1]);this.validateLink=Bm}Di.prototype.skipToken=function(t){var e=this.ruler.getRules(""),r=e.length,n=t.pos,a,s;if((s=t.cacheGet(n))>0){t.pos=s;return}for(a=0;a<r;a++)if(e[a](t,!0)){t.cacheSet(n,t.pos);return}t.pos++,t.cacheSet(n,t.pos)};Di.prototype.tokenize=function(t){for(var e=this.ruler.getRules(""),r=e.length,n=t.posMax,a,s;t.pos<n;){for(s=0;s<r&&(a=e[s](t,!1),!a);s++);if(a){if(t.pos>=n)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()};Di.prototype.parse=function(t,e,r,n){var a=new mn(t,this,e,r,n);this.tokenize(a)};function Bm(t){var e=["vbscript","javascript","file","data"],r=t.trim().toLowerCase();return r=Fr(r),!(r.indexOf(":")!==-1&&e.indexOf(r.split(":")[0])!==-1)}var Vm={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","replacements","smartquotes","references","abbr2","footnote_tail"]},block:{rules:["blockquote","code","fences","footnote","heading","hr","htmlblock","lheading","list","paragraph","table"]},inline:{rules:["autolink","backticks","del","emphasis","entity","escape","footnote_ref","htmltag","links","newline","text"]}}},qm={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{},block:{},inline:{}}},Um={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","abbr2"]},block:{rules:["blockquote","code","fences","heading","hr","htmlblock","lheading","list","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","htmltag","links","newline","text"]}}},zm={default:Vm,full:qm,commonmark:Um};function hd(t,e,r){this.src=e,this.env=r,this.options=t.options,this.tokens=[],this.inlineMode=!1,this.inline=t.inline,this.block=t.block,this.renderer=t.renderer,this.typographer=t.typographer}function Rr(t,e){typeof t!="string"&&(e=t,t="default"),e&&e.linkify!=null&&console.warn(`linkify option is removed. Use linkify plugin instead:
117
125
 
118
126
  import Remarkable from 'remarkable';
119
127
  import linkify from 'remarkable/linkify';
120
128
  new Remarkable().use(linkify)
121
- `),this.inline=new wi,this.block=new du,this.core=new dd,this.renderer=new cu,this.ruler=new it,this.options={},this.configure(zm[t]),this.set(e||{})}pr.prototype.set=function(t){uu(this.options,t)};pr.prototype.configure=function(t){var e=this;if(!t)throw new Error("Wrong `remarkable` preset, check name/content");t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(r){t.components[r].rules&&e[r].ruler.enable(t.components[r].rules,!0)})};pr.prototype.use=function(t,e){return t(this,e),this};pr.prototype.parse=function(t,e){var r=new hd(this,t,e);return this.core.process(r),r.tokens};pr.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};pr.prototype.parseInline=function(t,e){var r=new hd(this,t,e);return r.inlineMode=!0,this.core.process(r),r.tokens};pr.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};const Hm=Object.freeze(Object.defineProperty({__proto__:null,Remarkable:pr,utils:yp},Symbol.toStringTag,{value:"Module"})),Wm=ru(Hm);var bn={},mr={};function Gm(t,e){var r=Object.setPrototypeOf;r?r(t,e):t.__proto__=e}function pd(t,e){e===void 0&&(e=t.constructor);var r=Error.captureStackTrace;r&&r(t,e)}var Jm=function(){var t=function(r,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(a[o]=s[o])},t(r,n)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ym=function(t){Jm(e,t);function e(r,n){var a=this.constructor,s=t.call(this,r,n)||this;return Object.defineProperty(s,"name",{value:a.name,enumerable:!1,configurable:!0}),Gm(s,a.prototype),pd(s),s}return e}(Error),Zm=function(t,e,r){if(r||arguments.length===2)for(var n=0,a=e.length,s;n<a;n++)(s||!(n in e))&&(s||(s=Array.prototype.slice.call(e,0,n)),s[n]=e[n]);return t.concat(s||Array.prototype.slice.call(e))};function Xm(t,e){e===void 0&&(e=Error);function r(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(!(this instanceof r))return new(r.bind.apply(r,Zm([void 0],n,!1)));e.apply(this,n),Object.defineProperty(this,"name",{value:t.name||e.name,enumerable:!1,configurable:!0}),t.apply(this,n),pd(this,r)}return Object.defineProperties(r,{prototype:{value:Object.create(e.prototype,{constructor:{value:r,writable:!0,configurable:!0}})}})}const Km=Object.freeze(Object.defineProperty({__proto__:null,CustomError:Ym,customErrorFactory:Xm},Symbol.toStringTag,{value:"Module"})),Qm=ru(Km);var hu={};const eg={},tg=Object.freeze(Object.defineProperty({__proto__:null,default:eg},Symbol.toStringTag,{value:"Module"})),Ke=ru(tg),Dl=Ke,Tl=/\s+at.*(?:\(|\s)(.*)\)?/,rg=/^(?:(?:(?:node|(?:internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)\.js:\d+:\d+)|native)/,ng=typeof Dl.homedir>"u"?"":Dl.homedir();var ag=(t,e)=>(e=Object.assign({pretty:!1},e),t.replace(/\\/g,"/").split(`
129
+ `),this.inline=new Di,this.block=new du,this.core=new dd,this.renderer=new cu,this.ruler=new _t,this.options={},this.configure(zm[t]),this.set(e||{})}Rr.prototype.set=function(t){uu(this.options,t)};Rr.prototype.configure=function(t){var e=this;if(!t)throw new Error("Wrong `remarkable` preset, check name/content");t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(r){t.components[r].rules&&e[r].ruler.enable(t.components[r].rules,!0)})};Rr.prototype.use=function(t,e){return t(this,e),this};Rr.prototype.parse=function(t,e){var r=new hd(this,t,e);return this.core.process(r),r.tokens};Rr.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};Rr.prototype.parseInline=function(t,e){var r=new hd(this,t,e);return r.inlineMode=!0,this.core.process(r),r.tokens};Rr.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};const Hm=Object.freeze(Object.defineProperty({__proto__:null,Remarkable:Rr,utils:yp},Symbol.toStringTag,{value:"Module"})),Wm=ru(Hm);var Bn={},Br={};function Gm(t,e){var r=Object.setPrototypeOf;r?r(t,e):t.__proto__=e}function pd(t,e){e===void 0&&(e=t.constructor);var r=Error.captureStackTrace;r&&r(t,e)}var Jm=function(){var t=function(r,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(a[o]=s[o])},t(r,n)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ym=function(t){Jm(e,t);function e(r,n){var a=this.constructor,s=t.call(this,r,n)||this;return Object.defineProperty(s,"name",{value:a.name,enumerable:!1,configurable:!0}),Gm(s,a.prototype),pd(s),s}return e}(Error),Zm=function(t,e,r){if(r||arguments.length===2)for(var n=0,a=e.length,s;n<a;n++)(s||!(n in e))&&(s||(s=Array.prototype.slice.call(e,0,n)),s[n]=e[n]);return t.concat(s||Array.prototype.slice.call(e))};function Xm(t,e){e===void 0&&(e=Error);function r(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(!(this instanceof r))return new(r.bind.apply(r,Zm([void 0],n,!1)));e.apply(this,n),Object.defineProperty(this,"name",{value:t.name||e.name,enumerable:!1,configurable:!0}),t.apply(this,n),pd(this,r)}return Object.defineProperties(r,{prototype:{value:Object.create(e.prototype,{constructor:{value:r,writable:!0,configurable:!0}})}})}const Km=Object.freeze(Object.defineProperty({__proto__:null,CustomError:Ym,customErrorFactory:Xm},Symbol.toStringTag,{value:"Module"})),Qm=ru(Km);var hu={};const eg={},tg=Object.freeze(Object.defineProperty({__proto__:null,default:eg},Symbol.toStringTag,{value:"Module"})),gt=ru(tg),Dl=gt,Tl=/\s+at.*(?:\(|\s)(.*)\)?/,rg=/^(?:(?:(?:node|(?:internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)\.js:\d+:\d+)|native)/,ng=typeof Dl.homedir>"u"?"":Dl.homedir();var ag=(t,e)=>(e=Object.assign({pretty:!1},e),t.replace(/\\/g,"/").split(`
122
130
  `).filter(r=>{const n=r.match(Tl);if(n===null||!n[1])return!0;const a=n[1];return a.includes(".app/Contents/Resources/electron.asar")||a.includes(".app/Contents/Resources/default_app.asar")?!1:!rg.test(a)}).filter(r=>r.trim()!=="").map(r=>e.pretty?r.replace(Tl,(n,a)=>n.replace(a,a.replace(ng,"~"))):r).join(`
123
- `)),sg=function(e){return ig(e)&&!og(e)};function ig(t){return!!t&&typeof t=="object"}function og(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||cg(t)}var ug=typeof Symbol=="function"&&Symbol.for,lg=ug?Symbol.for("react.element"):60103;function cg(t){return t.$$typeof===lg}function dg(t){return Array.isArray(t)?[]:{}}function ca(t,e){return e.clone!==!1&&e.isMergeableObject(t)?xn(dg(t),t,e):t}function fg(t,e,r){return t.concat(e).map(function(n){return ca(n,r)})}function hg(t,e){if(!e.customMerge)return xn;var r=e.customMerge(t);return typeof r=="function"?r:xn}function pg(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function Cl(t){return Object.keys(t).concat(pg(t))}function md(t,e){try{return e in t}catch{return!1}}function mg(t,e){return md(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function gg(t,e,r){var n={};return r.isMergeableObject(t)&&Cl(t).forEach(function(a){n[a]=ca(t[a],r)}),Cl(e).forEach(function(a){mg(t,a)||(md(t,a)&&r.isMergeableObject(e[a])?n[a]=hg(a,r)(t[a],e[a],r):n[a]=ca(e[a],r))}),n}function xn(t,e,r){r=r||{},r.arrayMerge=r.arrayMerge||fg,r.isMergeableObject=r.isMergeableObject||sg,r.cloneUnlessOtherwiseSpecified=ca;var n=Array.isArray(e),a=Array.isArray(t),s=n===a;return s?n?r.arrayMerge(t,e,r):gg(t,e,r):ca(e,r)}xn.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,a){return xn(n,a,r)},{})};var bg=xn,gd=bg,_i={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.DEFAULT={cleanStack:!0}}(t.Options||(t.Options={}))})(_i);(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=ag,r=gd,n=_i;(function(a){function s(u,f,l,h){h===void 0&&(h=n.Options.DEFAULT);var d=u;return f&&(d.cause=f),d.stack=o(d.stack,f,h),l&&c(d,l),d}a.make=s;function o(u,f,l){var h=u||"";f&&(h+=`
124
- Caused by: `+(f.stack||f));function d(m){return e(m,{pretty:!0})}return l&&l.cleanStack&&(h=d(h)),h}a.appendToStack=o;function c(u,f){for(var l in f)if(f.hasOwnProperty(l)){var h=u.hasOwnProperty(l)&&typeof u[l]=="object";u[l]=h?r(u[l],f[l]):f[l]}}})(t.ChainedErrorFactory||(t.ChainedErrorFactory={}))})(hu);var xg=J&&J.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var s in a)a.hasOwnProperty(s)&&(n[s]=a[s])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(mr,"__esModule",{value:!0});var yg=Qm,vg=hu,wg=_i,_g=function(t){xg(e,t);function e(r,n,a){a===void 0&&(a=wg.Options.DEFAULT);var s=t.call(this,r)||this;return s.cause=n,s.stack=vg.ChainedErrorFactory.appendToStack(s.stack,n,a),s}return e}(yg.CustomError);mr.default=_g;var Eg=hu;mr.ChainedErrorFactory=Eg.ChainedErrorFactory;var Ng=_i;mr.Options=Ng.Options;var Ag=J&&J.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(bn,"__esModule",{value:!0});bn.SecurityError=bn.SecurityChecker=void 0;const kg=Ag(mr);class jg{static checkSecurity(e,r){if(!r.allowScriptTag&&this.containsScriptTag(e))throw new bd("Renderer rejected the input because of insecure content: text contains script tag")}static containsScriptTag(e){return/<\s*script/gi.test(e)}}bn.SecurityChecker=jg;class bd extends kg.default{constructor(e,r){super(e,r)}}bn.SecurityError=bd;var yn={},Ei={},Zt={},Xt={};function Sg(t,e,r){if(r===void 0&&(r=Array.prototype),t&&typeof r.find=="function")return r.find.call(t,e);for(var n=0;n<t.length;n++)if(Object.prototype.hasOwnProperty.call(t,n)){var a=t[n];if(e.call(void 0,a,n,t))return a}}function pu(t,e){return e===void 0&&(e=Object),e&&typeof e.freeze=="function"?e.freeze(t):t}function Dg(t,e){if(t===null||typeof t!="object")throw new TypeError("target is not an object");for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}var xd=pu({HTML:"text/html",isHTML:function(t){return t===xd.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),yd=pu({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(t){return t===yd.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});Xt.assign=Dg;Xt.find=Sg;Xt.freeze=pu;Xt.MIME_TYPE=xd;Xt.NAMESPACE=yd;var vd=Xt,Ct=vd.find,da=vd.NAMESPACE;function Tg(t){return t!==""}function Cg(t){return t?t.split(/[\t\n\f\r ]+/).filter(Tg):[]}function Og(t,e){return t.hasOwnProperty(e)||(t[e]=!0),t}function Ol(t){if(!t)return[];var e=Cg(t);return Object.keys(e.reduce(Og,{}))}function $g(t){return function(e){return t&&t.indexOf(e)!==-1}}function Aa(t,e){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}function Qe(t,e){var r=t.prototype;if(!(r instanceof e)){let n=function(){};n.prototype=e.prototype,n=new n,Aa(r,n),t.prototype=r=n}r.constructor!=t&&(typeof t!="function"&&console.error("unknown Class:"+t),r.constructor=t)}var et={},_t=et.ELEMENT_NODE=1,vn=et.ATTRIBUTE_NODE=2,Fs=et.TEXT_NODE=3,wd=et.CDATA_SECTION_NODE=4,_d=et.ENTITY_REFERENCE_NODE=5,Pg=et.ENTITY_NODE=6,Ed=et.PROCESSING_INSTRUCTION_NODE=7,Nd=et.COMMENT_NODE=8,Ad=et.DOCUMENT_NODE=9,kd=et.DOCUMENT_TYPE_NODE=10,Ht=et.DOCUMENT_FRAGMENT_NODE=11,Lg=et.NOTATION_NODE=12,qe={},Pe={};qe.INDEX_SIZE_ERR=(Pe[1]="Index size error",1);qe.DOMSTRING_SIZE_ERR=(Pe[2]="DOMString size error",2);var Ze=qe.HIERARCHY_REQUEST_ERR=(Pe[3]="Hierarchy request error",3);qe.WRONG_DOCUMENT_ERR=(Pe[4]="Wrong document",4);qe.INVALID_CHARACTER_ERR=(Pe[5]="Invalid character",5);qe.NO_DATA_ALLOWED_ERR=(Pe[6]="No data allowed",6);qe.NO_MODIFICATION_ALLOWED_ERR=(Pe[7]="No modification allowed",7);var jd=qe.NOT_FOUND_ERR=(Pe[8]="Not found",8);qe.NOT_SUPPORTED_ERR=(Pe[9]="Not supported",9);var $l=qe.INUSE_ATTRIBUTE_ERR=(Pe[10]="Attribute in use",10);qe.INVALID_STATE_ERR=(Pe[11]="Invalid state",11);qe.SYNTAX_ERR=(Pe[12]="Syntax error",12);qe.INVALID_MODIFICATION_ERR=(Pe[13]="Invalid modification",13);qe.NAMESPACE_ERR=(Pe[14]="Invalid namespace",14);qe.INVALID_ACCESS_ERR=(Pe[15]="Invalid access",15);function Ae(t,e){if(e instanceof Error)var r=e;else r=this,Error.call(this,Pe[t]),this.message=Pe[t],Error.captureStackTrace&&Error.captureStackTrace(this,Ae);return r.code=t,e&&(this.message=this.message+": "+e),r}Ae.prototype=Error.prototype;Aa(qe,Ae);function zt(){}zt.prototype={length:0,item:function(t){return t>=0&&t<this.length?this[t]:null},toString:function(t,e){for(var r=[],n=0;n<this.length;n++)pn(this[n],r,t,e);return r.join("")},filter:function(t){return Array.prototype.filter.call(this,t)},indexOf:function(t){return Array.prototype.indexOf.call(this,t)}};function wn(t,e){this._node=t,this._refresh=e,mu(this)}function mu(t){var e=t._node._inc||t._node.ownerDocument._inc;if(t._inc!==e){var r=t._refresh(t._node);if(Rd(t,"length",r.length),!t.$$length||r.length<t.$$length)for(var n=r.length;n in t;n++)Object.prototype.hasOwnProperty.call(t,n)&&delete t[n];Aa(r,t),t._inc=e}}wn.prototype.item=function(t){return mu(this),this[t]||null};Qe(wn,zt);function Rs(){}function Sd(t,e){for(var r=t.length;r--;)if(t[r]===e)return r}function Pl(t,e,r,n){if(n?e[Sd(e,n)]=r:e[e.length++]=r,t){r.ownerElement=t;var a=t.ownerDocument;a&&(n&&Cd(a,t,n),Mg(a,t,r))}}function Ll(t,e,r){var n=Sd(e,r);if(n>=0){for(var a=e.length-1;n<a;)e[n]=e[++n];if(e.length=a,t){var s=t.ownerDocument;s&&(Cd(s,t,r),r.ownerElement=null)}}else throw new Ae(jd,new Error(t.tagName+"@"+r))}Rs.prototype={length:0,item:zt.prototype.item,getNamedItem:function(t){for(var e=this.length;e--;){var r=this[e];if(r.nodeName==t)return r}},setNamedItem:function(t){var e=t.ownerElement;if(e&&e!=this._ownerElement)throw new Ae($l);var r=this.getNamedItem(t.nodeName);return Pl(this._ownerElement,this,t,r),r},setNamedItemNS:function(t){var e=t.ownerElement,r;if(e&&e!=this._ownerElement)throw new Ae($l);return r=this.getNamedItemNS(t.namespaceURI,t.localName),Pl(this._ownerElement,this,t,r),r},removeNamedItem:function(t){var e=this.getNamedItem(t);return Ll(this._ownerElement,this,e),e},removeNamedItemNS:function(t,e){var r=this.getNamedItemNS(t,e);return Ll(this._ownerElement,this,r),r},getNamedItemNS:function(t,e){for(var r=this.length;r--;){var n=this[r];if(n.localName==e&&n.namespaceURI==t)return n}return null}};function Dd(){}Dd.prototype={hasFeature:function(t,e){return!0},createDocument:function(t,e,r){var n=new ka;if(n.implementation=this,n.childNodes=new zt,n.doctype=r||null,r&&n.appendChild(r),e){var a=n.createElementNS(t,e);n.appendChild(a)}return n},createDocumentType:function(t,e,r){var n=new Ni;return n.name=t,n.nodeName=t,n.publicId=e||"",n.systemId=r||"",n}};function de(){}de.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(t,e){return Bs(this,t,e)},replaceChild:function(t,e){Bs(this,t,e,$d),e&&this.removeChild(e)},removeChild:function(t){return Od(this,t)},appendChild:function(t){return this.insertBefore(t,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(t){return Po(this.ownerDocument||this,this,t)},normalize:function(){for(var t=this.firstChild;t;){var e=t.nextSibling;e&&e.nodeType==Fs&&t.nodeType==Fs?(this.removeChild(e),t.appendData(e.data)):(t.normalize(),t=e)}},isSupported:function(t,e){return this.ownerDocument.implementation.hasFeature(t,e)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(t){for(var e=this;e;){var r=e._nsMap;if(r){for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n)&&r[n]===t)return n}e=e.nodeType==vn?e.ownerDocument:e.parentNode}return null},lookupNamespaceURI:function(t){for(var e=this;e;){var r=e._nsMap;if(r&&Object.prototype.hasOwnProperty.call(r,t))return r[t];e=e.nodeType==vn?e.ownerDocument:e.parentNode}return null},isDefaultNamespace:function(t){var e=this.lookupPrefix(t);return e==null}};function Td(t){return t=="<"&&"&lt;"||t==">"&&"&gt;"||t=="&"&&"&amp;"||t=='"'&&"&quot;"||"&#"+t.charCodeAt()+";"}Aa(et,de);Aa(et,de.prototype);function fa(t,e){if(e(t))return!0;if(t=t.firstChild)do if(fa(t,e))return!0;while(t=t.nextSibling)}function ka(){this.ownerDocument=this}function Mg(t,e,r){t&&t._inc++;var n=r.namespaceURI;n===da.XMLNS&&(e._nsMap[r.prefix?r.localName:""]=r.value)}function Cd(t,e,r,n){t&&t._inc++;var a=r.namespaceURI;a===da.XMLNS&&delete e._nsMap[r.prefix?r.localName:""]}function gu(t,e,r){if(t&&t._inc){t._inc++;var n=e.childNodes;if(r)n[n.length++]=r;else{for(var a=e.firstChild,s=0;a;)n[s++]=a,a=a.nextSibling;n.length=s,delete n[n.length]}}}function Od(t,e){var r=e.previousSibling,n=e.nextSibling;return r?r.nextSibling=n:t.firstChild=n,n?n.previousSibling=r:t.lastChild=r,e.parentNode=null,e.previousSibling=null,e.nextSibling=null,gu(t.ownerDocument,t),e}function Ig(t){return t&&(t.nodeType===de.DOCUMENT_NODE||t.nodeType===de.DOCUMENT_FRAGMENT_NODE||t.nodeType===de.ELEMENT_NODE)}function Fg(t){return t&&(Ot(t)||bu(t)||Wt(t)||t.nodeType===de.DOCUMENT_FRAGMENT_NODE||t.nodeType===de.COMMENT_NODE||t.nodeType===de.PROCESSING_INSTRUCTION_NODE)}function Wt(t){return t&&t.nodeType===de.DOCUMENT_TYPE_NODE}function Ot(t){return t&&t.nodeType===de.ELEMENT_NODE}function bu(t){return t&&t.nodeType===de.TEXT_NODE}function Ml(t,e){var r=t.childNodes||[];if(Ct(r,Ot)||Wt(e))return!1;var n=Ct(r,Wt);return!(e&&n&&r.indexOf(n)>r.indexOf(e))}function Il(t,e){var r=t.childNodes||[];function n(s){return Ot(s)&&s!==e}if(Ct(r,n))return!1;var a=Ct(r,Wt);return!(e&&a&&r.indexOf(a)>r.indexOf(e))}function Rg(t,e,r){if(!Ig(t))throw new Ae(Ze,"Unexpected parent node type "+t.nodeType);if(r&&r.parentNode!==t)throw new Ae(jd,"child not in parent");if(!Fg(e)||Wt(e)&&t.nodeType!==de.DOCUMENT_NODE)throw new Ae(Ze,"Unexpected node type "+e.nodeType+" for parent node type "+t.nodeType)}function Bg(t,e,r){var n=t.childNodes||[],a=e.childNodes||[];if(e.nodeType===de.DOCUMENT_FRAGMENT_NODE){var s=a.filter(Ot);if(s.length>1||Ct(a,bu))throw new Ae(Ze,"More than one element or text in fragment");if(s.length===1&&!Ml(t,r))throw new Ae(Ze,"Element in fragment can not be inserted before doctype")}if(Ot(e)&&!Ml(t,r))throw new Ae(Ze,"Only one element can be added and only after doctype");if(Wt(e)){if(Ct(n,Wt))throw new Ae(Ze,"Only one doctype is allowed");var o=Ct(n,Ot);if(r&&n.indexOf(o)<n.indexOf(r))throw new Ae(Ze,"Doctype can only be inserted before an element");if(!r&&o)throw new Ae(Ze,"Doctype can not be appended since element is present")}}function $d(t,e,r){var n=t.childNodes||[],a=e.childNodes||[];if(e.nodeType===de.DOCUMENT_FRAGMENT_NODE){var s=a.filter(Ot);if(s.length>1||Ct(a,bu))throw new Ae(Ze,"More than one element or text in fragment");if(s.length===1&&!Il(t,r))throw new Ae(Ze,"Element in fragment can not be inserted before doctype")}if(Ot(e)&&!Il(t,r))throw new Ae(Ze,"Only one element can be added and only after doctype");if(Wt(e)){if(Ct(n,function(u){return Wt(u)&&u!==r}))throw new Ae(Ze,"Only one doctype is allowed");var o=Ct(n,Ot);if(r&&n.indexOf(o)<n.indexOf(r))throw new Ae(Ze,"Doctype can only be inserted before an element")}}function Bs(t,e,r,n){Rg(t,e,r),t.nodeType===de.DOCUMENT_NODE&&(n||Bg)(t,e,r);var a=e.parentNode;if(a&&a.removeChild(e),e.nodeType===Ht){var s=e.firstChild;if(s==null)return e;var o=e.lastChild}else s=o=e;var c=r?r.previousSibling:t.lastChild;s.previousSibling=c,o.nextSibling=r,c?c.nextSibling=s:t.firstChild=s,r==null?t.lastChild=o:r.previousSibling=o;do s.parentNode=t;while(s!==o&&(s=s.nextSibling));return gu(t.ownerDocument||t,t),e.nodeType==Ht&&(e.firstChild=e.lastChild=null),e}function Vg(t,e){return e.parentNode&&e.parentNode.removeChild(e),e.parentNode=t,e.previousSibling=t.lastChild,e.nextSibling=null,e.previousSibling?e.previousSibling.nextSibling=e:t.firstChild=e,t.lastChild=e,gu(t.ownerDocument,t,e),e}ka.prototype={nodeName:"#document",nodeType:Ad,doctype:null,documentElement:null,_inc:1,insertBefore:function(t,e){if(t.nodeType==Ht){for(var r=t.firstChild;r;){var n=r.nextSibling;this.insertBefore(r,e),r=n}return t}return Bs(this,t,e),t.ownerDocument=this,this.documentElement===null&&t.nodeType===_t&&(this.documentElement=t),t},removeChild:function(t){return this.documentElement==t&&(this.documentElement=null),Od(this,t)},replaceChild:function(t,e){Bs(this,t,e,$d),t.ownerDocument=this,e&&this.removeChild(e),Ot(t)&&(this.documentElement=t)},importNode:function(t,e){return Fd(this,t,e)},getElementById:function(t){var e=null;return fa(this.documentElement,function(r){if(r.nodeType==_t&&r.getAttribute("id")==t)return e=r,!0}),e},getElementsByClassName:function(t){var e=Ol(t);return new wn(this,function(r){var n=[];return e.length>0&&fa(r.documentElement,function(a){if(a!==r&&a.nodeType===_t){var s=a.getAttribute("class");if(s){var o=t===s;if(!o){var c=Ol(s);o=e.every($g(c))}o&&n.push(a)}}}),n})},createElement:function(t){var e=new Fr;e.ownerDocument=this,e.nodeName=t,e.tagName=t,e.localName=t,e.childNodes=new zt;var r=e.attributes=new Rs;return r._ownerElement=e,e},createDocumentFragment:function(){var t=new Ai;return t.ownerDocument=this,t.childNodes=new zt,t},createTextNode:function(t){var e=new xu;return e.ownerDocument=this,e.appendData(t),e},createComment:function(t){var e=new yu;return e.ownerDocument=this,e.appendData(t),e},createCDATASection:function(t){var e=new vu;return e.ownerDocument=this,e.appendData(t),e},createProcessingInstruction:function(t,e){var r=new _u;return r.ownerDocument=this,r.tagName=r.nodeName=r.target=t,r.nodeValue=r.data=e,r},createAttribute:function(t){var e=new Vs;return e.ownerDocument=this,e.name=t,e.nodeName=t,e.localName=t,e.specified=!0,e},createEntityReference:function(t){var e=new wu;return e.ownerDocument=this,e.nodeName=t,e},createElementNS:function(t,e){var r=new Fr,n=e.split(":"),a=r.attributes=new Rs;return r.childNodes=new zt,r.ownerDocument=this,r.nodeName=e,r.tagName=e,r.namespaceURI=t,n.length==2?(r.prefix=n[0],r.localName=n[1]):r.localName=e,a._ownerElement=r,r},createAttributeNS:function(t,e){var r=new Vs,n=e.split(":");return r.ownerDocument=this,r.nodeName=e,r.name=e,r.namespaceURI=t,r.specified=!0,n.length==2?(r.prefix=n[0],r.localName=n[1]):r.localName=e,r}};Qe(ka,de);function Fr(){this._nsMap={}}Fr.prototype={nodeType:_t,hasAttribute:function(t){return this.getAttributeNode(t)!=null},getAttribute:function(t){var e=this.getAttributeNode(t);return e&&e.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,e){var r=this.ownerDocument.createAttribute(t);r.value=r.nodeValue=""+e,this.setAttributeNode(r)},removeAttribute:function(t){var e=this.getAttributeNode(t);e&&this.removeAttributeNode(e)},appendChild:function(t){return t.nodeType===Ht?this.insertBefore(t,null):Vg(this,t)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,e){var r=this.getAttributeNodeNS(t,e);r&&this.removeAttributeNode(r)},hasAttributeNS:function(t,e){return this.getAttributeNodeNS(t,e)!=null},getAttributeNS:function(t,e){var r=this.getAttributeNodeNS(t,e);return r&&r.value||""},setAttributeNS:function(t,e,r){var n=this.ownerDocument.createAttributeNS(t,e);n.value=n.nodeValue=""+r,this.setAttributeNode(n)},getAttributeNodeNS:function(t,e){return this.attributes.getNamedItemNS(t,e)},getElementsByTagName:function(t){return new wn(this,function(e){var r=[];return fa(e,function(n){n!==e&&n.nodeType==_t&&(t==="*"||n.tagName==t)&&r.push(n)}),r})},getElementsByTagNameNS:function(t,e){return new wn(this,function(r){var n=[];return fa(r,function(a){a!==r&&a.nodeType===_t&&(t==="*"||a.namespaceURI===t)&&(e==="*"||a.localName==e)&&n.push(a)}),n})}};ka.prototype.getElementsByTagName=Fr.prototype.getElementsByTagName;ka.prototype.getElementsByTagNameNS=Fr.prototype.getElementsByTagNameNS;Qe(Fr,de);function Vs(){}Vs.prototype.nodeType=vn;Qe(Vs,de);function ja(){}ja.prototype={data:"",substringData:function(t,e){return this.data.substring(t,t+e)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,e){this.replaceData(t,0,e)},appendChild:function(t){throw new Error(Pe[Ze])},deleteData:function(t,e){this.replaceData(t,e,"")},replaceData:function(t,e,r){var n=this.data.substring(0,t),a=this.data.substring(t+e);r=n+r+a,this.nodeValue=this.data=r,this.length=r.length}};Qe(ja,de);function xu(){}xu.prototype={nodeName:"#text",nodeType:Fs,splitText:function(t){var e=this.data,r=e.substring(t);e=e.substring(0,t),this.data=this.nodeValue=e,this.length=e.length;var n=this.ownerDocument.createTextNode(r);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}};Qe(xu,ja);function yu(){}yu.prototype={nodeName:"#comment",nodeType:Nd};Qe(yu,ja);function vu(){}vu.prototype={nodeName:"#cdata-section",nodeType:wd};Qe(vu,ja);function Ni(){}Ni.prototype.nodeType=kd;Qe(Ni,de);function Pd(){}Pd.prototype.nodeType=Lg;Qe(Pd,de);function Ld(){}Ld.prototype.nodeType=Pg;Qe(Ld,de);function wu(){}wu.prototype.nodeType=_d;Qe(wu,de);function Ai(){}Ai.prototype.nodeName="#document-fragment";Ai.prototype.nodeType=Ht;Qe(Ai,de);function _u(){}_u.prototype.nodeType=Ed;Qe(_u,de);function Md(){}Md.prototype.serializeToString=function(t,e,r){return Id.call(t,e,r)};de.prototype.toString=Id;function Id(t,e){var r=[],n=this.nodeType==9&&this.documentElement||this,a=n.prefix,s=n.namespaceURI;if(s&&a==null){var a=n.lookupPrefix(s);if(a==null)var o=[{namespace:s,prefix:null}]}return pn(this,r,t,e,o),r.join("")}function Fl(t,e,r){var n=t.prefix||"",a=t.namespaceURI;if(!a||n==="xml"&&a===da.XML||a===da.XMLNS)return!1;for(var s=r.length;s--;){var o=r[s];if(o.prefix===n)return o.namespace!==a}return!0}function go(t,e,r){t.push(" ",e,'="',r.replace(/[<>&"\t\n\r]/g,Td),'"')}function pn(t,e,r,n,a){if(a||(a=[]),n)if(t=n(t),t){if(typeof t=="string"){e.push(t);return}}else return;switch(t.nodeType){case _t:var s=t.attributes,o=s.length,g=t.firstChild,c=t.tagName;r=da.isHTML(t.namespaceURI)||r;var u=c;if(!r&&!t.prefix&&t.namespaceURI){for(var f,l=0;l<s.length;l++)if(s.item(l).name==="xmlns"){f=s.item(l).value;break}if(!f)for(var h=a.length-1;h>=0;h--){var d=a[h];if(d.prefix===""&&d.namespace===t.namespaceURI){f=d.namespace;break}}if(f!==t.namespaceURI)for(var h=a.length-1;h>=0;h--){var d=a[h];if(d.namespace===t.namespaceURI){d.prefix&&(u=d.prefix+":"+c);break}}}e.push("<",u);for(var m=0;m<o;m++){var b=s.item(m);b.prefix=="xmlns"?a.push({prefix:b.localName,namespace:b.value}):b.nodeName=="xmlns"&&a.push({prefix:"",namespace:b.value})}for(var m=0;m<o;m++){var b=s.item(m);if(Fl(b,r,a)){var x=b.prefix||"",y=b.namespaceURI;go(e,x?"xmlns:"+x:"xmlns",y),a.push({prefix:x,namespace:y})}pn(b,e,r,n,a)}if(c===u&&Fl(t,r,a)){var x=t.prefix||"",y=t.namespaceURI;go(e,x?"xmlns:"+x:"xmlns",y),a.push({prefix:x,namespace:y})}if(g||r&&!/^(?:meta|link|img|br|hr|input)$/i.test(c)){if(e.push(">"),r&&/^script$/i.test(c))for(;g;)g.data?e.push(g.data):pn(g,e,r,n,a.slice()),g=g.nextSibling;else for(;g;)pn(g,e,r,n,a.slice()),g=g.nextSibling;e.push("</",u,">")}else e.push("/>");return;case Ad:case Ht:for(var g=t.firstChild;g;)pn(g,e,r,n,a.slice()),g=g.nextSibling;return;case vn:return go(e,t.name,t.value);case Fs:return e.push(t.data.replace(/[<&>]/g,Td));case wd:return e.push("<![CDATA[",t.data,"]]>");case Nd:return e.push("<!--",t.data,"-->");case kd:var E=t.publicId,S=t.systemId;if(e.push("<!DOCTYPE ",t.name),E)e.push(" PUBLIC ",E),S&&S!="."&&e.push(" ",S),e.push(">");else if(S&&S!=".")e.push(" SYSTEM ",S,">");else{var w=t.internalSubset;w&&e.push(" [",w,"]"),e.push(">")}return;case Ed:return e.push("<?",t.target," ",t.data,"?>");case _d:return e.push("&",t.nodeName,";");default:e.push("??",t.nodeName)}}function Fd(t,e,r){var n;switch(e.nodeType){case _t:n=e.cloneNode(!1),n.ownerDocument=t;case Ht:break;case vn:r=!0;break}if(n||(n=e.cloneNode(!1)),n.ownerDocument=t,n.parentNode=null,r)for(var a=e.firstChild;a;)n.appendChild(Fd(t,a,r)),a=a.nextSibling;return n}function Po(t,e,r){var n=new e.constructor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=e[a];typeof s!="object"&&s!=n[a]&&(n[a]=s)}switch(e.childNodes&&(n.childNodes=new zt),n.ownerDocument=t,n.nodeType){case _t:var o=e.attributes,c=n.attributes=new Rs,u=o.length;c._ownerElement=n;for(var f=0;f<u;f++)n.setAttributeNode(Po(t,o.item(f),!0));break;case vn:r=!0}if(r)for(var l=e.firstChild;l;)n.appendChild(Po(t,l,r)),l=l.nextSibling;return n}function Rd(t,e,r){t[e]=r}try{if(Object.defineProperty){let t=function(e){switch(e.nodeType){case _t:case Ht:var r=[];for(e=e.firstChild;e;)e.nodeType!==7&&e.nodeType!==8&&r.push(t(e)),e=e.nextSibling;return r.join("");default:return e.nodeValue}};Object.defineProperty(wn.prototype,"length",{get:function(){return mu(this),this.$$length}}),Object.defineProperty(de.prototype,"textContent",{get:function(){return t(this)},set:function(e){switch(this.nodeType){case _t:case Ht:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),Rd=function(e,r,n){e["$$"+r]=n}}}catch{}Zt.DocumentType=Ni;Zt.DOMException=Ae;Zt.DOMImplementation=Dd;Zt.Element=Fr;Zt.Node=de;Zt.NodeList=zt;Zt.XMLSerializer=Md;var ki={},Bd={};(function(t){var e=Xt.freeze;t.XML_ENTITIES=e({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=e({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
125
- `,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}),t.entityMap=t.HTML_ENTITIES})(Bd);var Eu={},ha=Xt.NAMESPACE,Lo=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Rl=new RegExp("[\\-\\.0-9"+Lo.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),Bl=new RegExp("^"+Lo.source+Rl.source+"*(?::"+Lo.source+Rl.source+"*)?$"),Xn=0,dr=1,un=2,Kn=3,ln=4,cn=5,Qn=6,ls=7;function _n(t,e){this.message=t,this.locator=e,Error.captureStackTrace&&Error.captureStackTrace(this,_n)}_n.prototype=new Error;_n.prototype.name=_n.name;function Vd(){}Vd.prototype={parse:function(t,e,r){var n=this.domBuilder;n.startDocument(),qd(e,e={}),qg(t,e,r,n,this.errorHandler),n.endDocument()}};function qg(t,e,r,n,a){function s(M){if(M>65535){M-=65536;var C=55296+(M>>10),W=56320+(M&1023);return String.fromCharCode(C,W)}else return String.fromCharCode(M)}function o(M){var C=M.slice(1,-1);return Object.hasOwnProperty.call(r,C)?r[C]:C.charAt(0)==="#"?s(parseInt(C.substr(1).replace("x","0x"))):(a.error("entity not found:"+M),M)}function c(M){if(M>x){var C=t.substring(x,M).replace(/&#?\w+;/g,o);d&&u(x),n.characters(C,0,M-x),x=M}}function u(M,C){for(;M>=l&&(C=h.exec(t));)f=C.index,l=f+C[0].length,d.lineNumber++;d.columnNumber=M-f+1}for(var f=0,l=0,h=/.*(?:\r\n?|\n)|.*$/g,d=n.locator,m=[{currentNSMap:e}],b={},x=0;;){try{var y=t.indexOf("<",x);if(y<0){if(!t.substr(x).match(/^\s*$/)){var g=n.doc,E=g.createTextNode(t.substr(x));g.appendChild(E),n.currentElement=E}return}switch(y>x&&c(y),t.charAt(y+1)){case"/":var j=t.indexOf(">",y+3),S=t.substring(y+2,j).replace(/[ \t\n\r]+$/g,""),w=m.pop();j<0?(S=t.substring(y+2).replace(/[\s<].*/,""),a.error("end tag name: "+S+" is not complete:"+w.tagName),j=y+1+S.length):S.match(/\s</)&&(S=S.replace(/[\s<].*/,""),a.error("end tag name: "+S+" maybe not complete"),j=y+1+S.length);var k=w.localNSMap,p=w.tagName==S,N=p||w.tagName&&w.tagName.toLowerCase()==S.toLowerCase();if(N){if(n.endElement(w.uri,w.localName,S),k)for(var A in k)Object.prototype.hasOwnProperty.call(k,A)&&n.endPrefixMapping(A);p||a.fatalError("end tag name: "+S+" is not match the current start tagName:"+w.tagName)}else m.push(w);j++;break;case"?":d&&u(y),j=Gg(t,y,n);break;case"!":d&&u(y),j=Wg(t,y,n,a);break;default:d&&u(y);var V=new Ud,z=m[m.length-1].currentNSMap,j=Ug(t,y,V,z,o,a),L=V.length;if(!V.closed&&Hg(t,j,V.tagName,b)&&(V.closed=!0,r.nbsp||a.warning("unclosed xml attribute")),d&&L){for(var I=Vl(d,{}),H=0;H<L;H++){var _=V[H];u(_.offset),_.locator=Vl(d,{})}n.locator=I,ql(V,n,z)&&m.push(V),n.locator=d}else ql(V,n,z)&&m.push(V);ha.isHTML(V.uri)&&!V.closed?j=zg(t,j,V.tagName,o,n):j++}}catch(M){if(M instanceof _n)throw M;a.error("element parse error: "+M),j=-1}j>x?x=j:c(Math.max(y,x)+1)}}function Vl(t,e){return e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber,e}function Ug(t,e,r,n,a,s){function o(d,m,b){r.attributeNames.hasOwnProperty(d)&&s.fatalError("Attribute "+d+" redefined"),r.addValue(d,m.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,a),b)}for(var c,u,f=++e,l=Xn;;){var h=t.charAt(f);switch(h){case"=":if(l===dr)c=t.slice(e,f),l=Kn;else if(l===un)l=Kn;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(l===Kn||l===dr)if(l===dr&&(s.warning('attribute value must after "="'),c=t.slice(e,f)),e=f+1,f=t.indexOf(h,e),f>0)u=t.slice(e,f),o(c,u,e-1),l=cn;else throw new Error("attribute value no end '"+h+"' match");else if(l==ln)u=t.slice(e,f),o(c,u,e),s.warning('attribute "'+c+'" missed start quot('+h+")!!"),e=f+1,l=cn;else throw new Error('attribute value must after "="');break;case"/":switch(l){case Xn:r.setTagName(t.slice(e,f));case cn:case Qn:case ls:l=ls,r.closed=!0;case ln:case dr:break;case un:r.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return s.error("unexpected end of input"),l==Xn&&r.setTagName(t.slice(e,f)),f;case">":switch(l){case Xn:r.setTagName(t.slice(e,f));case cn:case Qn:case ls:break;case ln:case dr:u=t.slice(e,f),u.slice(-1)==="/"&&(r.closed=!0,u=u.slice(0,-1));case un:l===un&&(u=c),l==ln?(s.warning('attribute "'+u+'" missed quot(")!'),o(c,u,e)):((!ha.isHTML(n[""])||!u.match(/^(?:disabled|checked|selected)$/i))&&s.warning('attribute "'+u+'" missed value!! "'+u+'" instead!!'),o(u,u,e));break;case Kn:throw new Error("attribute value missed!!")}return f;case"€":h=" ";default:if(h<=" ")switch(l){case Xn:r.setTagName(t.slice(e,f)),l=Qn;break;case dr:c=t.slice(e,f),l=un;break;case ln:var u=t.slice(e,f);s.warning('attribute "'+u+'" missed quot(")!!'),o(c,u,e);case cn:l=Qn;break}else switch(l){case un:r.tagName,(!ha.isHTML(n[""])||!c.match(/^(?:disabled|checked|selected)$/i))&&s.warning('attribute "'+c+'" missed value!! "'+c+'" instead2!!'),o(c,c,e),e=f,l=dr;break;case cn:s.warning('attribute space is required"'+c+'"!!');case Qn:l=dr,e=f;break;case Kn:l=ln,e=f;break;case ls:throw new Error("elements closed character '/' and '>' must be connected to")}}f++}}function ql(t,e,r){for(var n=t.tagName,a=null,h=t.length;h--;){var s=t[h],o=s.qName,c=s.value,d=o.indexOf(":");if(d>0)var u=s.prefix=o.slice(0,d),f=o.slice(d+1),l=u==="xmlns"&&f;else f=o,u=null,l=o==="xmlns"&&"";s.localName=f,l!==!1&&(a==null&&(a={},qd(r,r={})),r[l]=a[l]=c,s.uri=ha.XMLNS,e.startPrefixMapping(l,c))}for(var h=t.length;h--;){s=t[h];var u=s.prefix;u&&(u==="xml"&&(s.uri=ha.XML),u!=="xmlns"&&(s.uri=r[u||""]))}var d=n.indexOf(":");d>0?(u=t.prefix=n.slice(0,d),f=t.localName=n.slice(d+1)):(u=null,f=t.localName=n);var m=t.uri=r[u||""];if(e.startElement(m,f,n,t),t.closed){if(e.endElement(m,f,n),a)for(u in a)Object.prototype.hasOwnProperty.call(a,u)&&e.endPrefixMapping(u)}else return t.currentNSMap=r,t.localNSMap=a,!0}function zg(t,e,r,n,a){if(/^(?:script|textarea)$/i.test(r)){var s=t.indexOf("</"+r+">",e),o=t.substring(e+1,s);if(/[&<]/.test(o))return/^script$/i.test(r)?(a.characters(o,0,o.length),s):(o=o.replace(/&#?\w+;/g,n),a.characters(o,0,o.length),s)}return e+1}function Hg(t,e,r,n){var a=n[r];return a==null&&(a=t.lastIndexOf("</"+r+">"),a<e&&(a=t.lastIndexOf("</"+r)),n[r]=a),a<e}function qd(t,e){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}function Wg(t,e,r,n){var a=t.charAt(e+2);switch(a){case"-":if(t.charAt(e+3)==="-"){var s=t.indexOf("-->",e+4);return s>e?(r.comment(t,e+4,s-e-4),s+3):(n.error("Unclosed comment"),-1)}else return-1;default:if(t.substr(e+3,6)=="CDATA["){var s=t.indexOf("]]>",e+9);return r.startCDATA(),r.characters(t,e+9,s-e-9),r.endCDATA(),s+3}var o=Jg(t,e),c=o.length;if(c>1&&/!doctype/i.test(o[0][0])){var u=o[1][0],f=!1,l=!1;c>3&&(/^public$/i.test(o[2][0])?(f=o[3][0],l=c>4&&o[4][0]):/^system$/i.test(o[2][0])&&(l=o[3][0]));var h=o[c-1];return r.startDTD(u,f,l),r.endDTD(),h.index+h[0].length}}return-1}function Gg(t,e,r){var n=t.indexOf("?>",e);if(n){var a=t.substring(e,n).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return a?(a[0].length,r.processingInstruction(a[1],a[2]),n+2):-1}return-1}function Ud(){this.attributeNames={}}Ud.prototype={setTagName:function(t){if(!Bl.test(t))throw new Error("invalid tagName:"+t);this.tagName=t},addValue:function(t,e,r){if(!Bl.test(t))throw new Error("invalid attribute:"+t);this.attributeNames[t]=this.length,this[this.length++]={qName:t,value:e,offset:r}},length:0,getLocalName:function(t){return this[t].localName},getLocator:function(t){return this[t].locator},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}};function Jg(t,e){var r,n=[],a=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(a.lastIndex=e,a.exec(t);r=a.exec(t);)if(n.push(r),r[1])return n}Eu.XMLReader=Vd;Eu.ParseError=_n;var Yg=Xt,Zg=Zt,Ul=Bd,zd=Eu,Xg=Zg.DOMImplementation,zl=Yg.NAMESPACE,Kg=zd.ParseError,Qg=zd.XMLReader;function Hd(t){return t.replace(/\r[\n\u0085]/g,`
131
+ `)),sg=function(e){return ig(e)&&!og(e)};function ig(t){return!!t&&typeof t=="object"}function og(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||cg(t)}var ug=typeof Symbol=="function"&&Symbol.for,lg=ug?Symbol.for("react.element"):60103;function cg(t){return t.$$typeof===lg}function dg(t){return Array.isArray(t)?[]:{}}function $a(t,e){return e.clone!==!1&&e.isMergeableObject(t)?Vn(dg(t),t,e):t}function fg(t,e,r){return t.concat(e).map(function(n){return $a(n,r)})}function hg(t,e){if(!e.customMerge)return Vn;var r=e.customMerge(t);return typeof r=="function"?r:Vn}function pg(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function Cl(t){return Object.keys(t).concat(pg(t))}function md(t,e){try{return e in t}catch{return!1}}function mg(t,e){return md(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function gg(t,e,r){var n={};return r.isMergeableObject(t)&&Cl(t).forEach(function(a){n[a]=$a(t[a],r)}),Cl(e).forEach(function(a){mg(t,a)||(md(t,a)&&r.isMergeableObject(e[a])?n[a]=hg(a,r)(t[a],e[a],r):n[a]=$a(e[a],r))}),n}function Vn(t,e,r){r=r||{},r.arrayMerge=r.arrayMerge||fg,r.isMergeableObject=r.isMergeableObject||sg,r.cloneUnlessOtherwiseSpecified=$a;var n=Array.isArray(e),a=Array.isArray(t),s=n===a;return s?n?r.arrayMerge(t,e,r):gg(t,e,r):$a(e,r)}Vn.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,a){return Vn(n,a,r)},{})};var bg=Vn,gd=bg,Ti={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.DEFAULT={cleanStack:!0}}(t.Options||(t.Options={}))})(Ti);(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=ag,r=gd,n=Ti;(function(a){function s(u,f,l,h){h===void 0&&(h=n.Options.DEFAULT);var d=u;return f&&(d.cause=f),d.stack=o(d.stack,f,h),l&&c(d,l),d}a.make=s;function o(u,f,l){var h=u||"";f&&(h+=`
132
+ Caused by: `+(f.stack||f));function d(m){return e(m,{pretty:!0})}return l&&l.cleanStack&&(h=d(h)),h}a.appendToStack=o;function c(u,f){for(var l in f)if(f.hasOwnProperty(l)){var h=u.hasOwnProperty(l)&&typeof u[l]=="object";u[l]=h?r(u[l],f[l]):f[l]}}})(t.ChainedErrorFactory||(t.ChainedErrorFactory={}))})(hu);var xg=J&&J.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var s in a)a.hasOwnProperty(s)&&(n[s]=a[s])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Br,"__esModule",{value:!0});var yg=Qm,vg=hu,wg=Ti,_g=function(t){xg(e,t);function e(r,n,a){a===void 0&&(a=wg.Options.DEFAULT);var s=t.call(this,r)||this;return s.cause=n,s.stack=vg.ChainedErrorFactory.appendToStack(s.stack,n,a),s}return e}(yg.CustomError);Br.default=_g;var Eg=hu;Br.ChainedErrorFactory=Eg.ChainedErrorFactory;var Ng=Ti;Br.Options=Ng.Options;var Ag=J&&J.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Bn,"__esModule",{value:!0});Bn.SecurityError=Bn.SecurityChecker=void 0;const kg=Ag(Br);class jg{static checkSecurity(e,r){if(!r.allowScriptTag&&this.containsScriptTag(e))throw new bd("Renderer rejected the input because of insecure content: text contains script tag")}static containsScriptTag(e){return/<\s*script/gi.test(e)}}Bn.SecurityChecker=jg;class bd extends kg.default{constructor(e,r){super(e,r)}}Bn.SecurityError=bd;var qn={},Ci={},xr={},yr={};function Sg(t,e,r){if(r===void 0&&(r=Array.prototype),t&&typeof r.find=="function")return r.find.call(t,e);for(var n=0;n<t.length;n++)if(Object.prototype.hasOwnProperty.call(t,n)){var a=t[n];if(e.call(void 0,a,n,t))return a}}function pu(t,e){return e===void 0&&(e=Object),e&&typeof e.freeze=="function"?e.freeze(t):t}function Dg(t,e){if(t===null||typeof t!="object")throw new TypeError("target is not an object");for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}var xd=pu({HTML:"text/html",isHTML:function(t){return t===xd.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),yd=pu({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(t){return t===yd.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});yr.assign=Dg;yr.find=Sg;yr.freeze=pu;yr.MIME_TYPE=xd;yr.NAMESPACE=yd;var vd=yr,Qt=vd.find,Pa=vd.NAMESPACE;function Tg(t){return t!==""}function Cg(t){return t?t.split(/[\t\n\f\r ]+/).filter(Tg):[]}function Og(t,e){return t.hasOwnProperty(e)||(t[e]=!0),t}function Ol(t){if(!t)return[];var e=Cg(t);return Object.keys(e.reduce(Og,{}))}function $g(t){return function(e){return t&&t.indexOf(e)!==-1}}function Ja(t,e){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}function bt(t,e){var r=t.prototype;if(!(r instanceof e)){let n=function(){};n.prototype=e.prototype,n=new n,Ja(r,n),t.prototype=r=n}r.constructor!=t&&(typeof t!="function"&&console.error("unknown Class:"+t),r.constructor=t)}var xt={},Ut=xt.ELEMENT_NODE=1,Un=xt.ATTRIBUTE_NODE=2,Ws=xt.TEXT_NODE=3,wd=xt.CDATA_SECTION_NODE=4,_d=xt.ENTITY_REFERENCE_NODE=5,Pg=xt.ENTITY_NODE=6,Ed=xt.PROCESSING_INSTRUCTION_NODE=7,Nd=xt.COMMENT_NODE=8,Ad=xt.DOCUMENT_NODE=9,kd=xt.DOCUMENT_TYPE_NODE=10,hr=xt.DOCUMENT_FRAGMENT_NODE=11,Lg=xt.NOTATION_NODE=12,st={},Ye={};st.INDEX_SIZE_ERR=(Ye[1]="Index size error",1);st.DOMSTRING_SIZE_ERR=(Ye[2]="DOMString size error",2);var pt=st.HIERARCHY_REQUEST_ERR=(Ye[3]="Hierarchy request error",3);st.WRONG_DOCUMENT_ERR=(Ye[4]="Wrong document",4);st.INVALID_CHARACTER_ERR=(Ye[5]="Invalid character",5);st.NO_DATA_ALLOWED_ERR=(Ye[6]="No data allowed",6);st.NO_MODIFICATION_ALLOWED_ERR=(Ye[7]="No modification allowed",7);var jd=st.NOT_FOUND_ERR=(Ye[8]="Not found",8);st.NOT_SUPPORTED_ERR=(Ye[9]="Not supported",9);var $l=st.INUSE_ATTRIBUTE_ERR=(Ye[10]="Attribute in use",10);st.INVALID_STATE_ERR=(Ye[11]="Invalid state",11);st.SYNTAX_ERR=(Ye[12]="Syntax error",12);st.INVALID_MODIFICATION_ERR=(Ye[13]="Invalid modification",13);st.NAMESPACE_ERR=(Ye[14]="Invalid namespace",14);st.INVALID_ACCESS_ERR=(Ye[15]="Invalid access",15);function Fe(t,e){if(e instanceof Error)var r=e;else r=this,Error.call(this,Ye[t]),this.message=Ye[t],Error.captureStackTrace&&Error.captureStackTrace(this,Fe);return r.code=t,e&&(this.message=this.message+": "+e),r}Fe.prototype=Error.prototype;Ja(st,Fe);function fr(){}fr.prototype={length:0,item:function(t){return t>=0&&t<this.length?this[t]:null},toString:function(t,e){for(var r=[],n=0;n<this.length;n++)In(this[n],r,t,e);return r.join("")},filter:function(t){return Array.prototype.filter.call(this,t)},indexOf:function(t){return Array.prototype.indexOf.call(this,t)}};function zn(t,e){this._node=t,this._refresh=e,mu(this)}function mu(t){var e=t._node._inc||t._node.ownerDocument._inc;if(t._inc!==e){var r=t._refresh(t._node);if(Rd(t,"length",r.length),!t.$$length||r.length<t.$$length)for(var n=r.length;n in t;n++)Object.prototype.hasOwnProperty.call(t,n)&&delete t[n];Ja(r,t),t._inc=e}}zn.prototype.item=function(t){return mu(this),this[t]||null};bt(zn,fr);function Gs(){}function Sd(t,e){for(var r=t.length;r--;)if(t[r]===e)return r}function Pl(t,e,r,n){if(n?e[Sd(e,n)]=r:e[e.length++]=r,t){r.ownerElement=t;var a=t.ownerDocument;a&&(n&&Cd(a,t,n),Mg(a,t,r))}}function Ll(t,e,r){var n=Sd(e,r);if(n>=0){for(var a=e.length-1;n<a;)e[n]=e[++n];if(e.length=a,t){var s=t.ownerDocument;s&&(Cd(s,t,r),r.ownerElement=null)}}else throw new Fe(jd,new Error(t.tagName+"@"+r))}Gs.prototype={length:0,item:fr.prototype.item,getNamedItem:function(t){for(var e=this.length;e--;){var r=this[e];if(r.nodeName==t)return r}},setNamedItem:function(t){var e=t.ownerElement;if(e&&e!=this._ownerElement)throw new Fe($l);var r=this.getNamedItem(t.nodeName);return Pl(this._ownerElement,this,t,r),r},setNamedItemNS:function(t){var e=t.ownerElement,r;if(e&&e!=this._ownerElement)throw new Fe($l);return r=this.getNamedItemNS(t.namespaceURI,t.localName),Pl(this._ownerElement,this,t,r),r},removeNamedItem:function(t){var e=this.getNamedItem(t);return Ll(this._ownerElement,this,e),e},removeNamedItemNS:function(t,e){var r=this.getNamedItemNS(t,e);return Ll(this._ownerElement,this,r),r},getNamedItemNS:function(t,e){for(var r=this.length;r--;){var n=this[r];if(n.localName==e&&n.namespaceURI==t)return n}return null}};function Dd(){}Dd.prototype={hasFeature:function(t,e){return!0},createDocument:function(t,e,r){var n=new Ya;if(n.implementation=this,n.childNodes=new fr,n.doctype=r||null,r&&n.appendChild(r),e){var a=n.createElementNS(t,e);n.appendChild(a)}return n},createDocumentType:function(t,e,r){var n=new Oi;return n.name=t,n.nodeName=t,n.publicId=e||"",n.systemId=r||"",n}};function xe(){}xe.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(t,e){return Js(this,t,e)},replaceChild:function(t,e){Js(this,t,e,$d),e&&this.removeChild(e)},removeChild:function(t){return Od(this,t)},appendChild:function(t){return this.insertBefore(t,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(t){return Po(this.ownerDocument||this,this,t)},normalize:function(){for(var t=this.firstChild;t;){var e=t.nextSibling;e&&e.nodeType==Ws&&t.nodeType==Ws?(this.removeChild(e),t.appendData(e.data)):(t.normalize(),t=e)}},isSupported:function(t,e){return this.ownerDocument.implementation.hasFeature(t,e)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(t){for(var e=this;e;){var r=e._nsMap;if(r){for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n)&&r[n]===t)return n}e=e.nodeType==Un?e.ownerDocument:e.parentNode}return null},lookupNamespaceURI:function(t){for(var e=this;e;){var r=e._nsMap;if(r&&Object.prototype.hasOwnProperty.call(r,t))return r[t];e=e.nodeType==Un?e.ownerDocument:e.parentNode}return null},isDefaultNamespace:function(t){var e=this.lookupPrefix(t);return e==null}};function Td(t){return t=="<"&&"&lt;"||t==">"&&"&gt;"||t=="&"&&"&amp;"||t=='"'&&"&quot;"||"&#"+t.charCodeAt()+";"}Ja(xt,xe);Ja(xt,xe.prototype);function La(t,e){if(e(t))return!0;if(t=t.firstChild)do if(La(t,e))return!0;while(t=t.nextSibling)}function Ya(){this.ownerDocument=this}function Mg(t,e,r){t&&t._inc++;var n=r.namespaceURI;n===Pa.XMLNS&&(e._nsMap[r.prefix?r.localName:""]=r.value)}function Cd(t,e,r,n){t&&t._inc++;var a=r.namespaceURI;a===Pa.XMLNS&&delete e._nsMap[r.prefix?r.localName:""]}function gu(t,e,r){if(t&&t._inc){t._inc++;var n=e.childNodes;if(r)n[n.length++]=r;else{for(var a=e.firstChild,s=0;a;)n[s++]=a,a=a.nextSibling;n.length=s,delete n[n.length]}}}function Od(t,e){var r=e.previousSibling,n=e.nextSibling;return r?r.nextSibling=n:t.firstChild=n,n?n.previousSibling=r:t.lastChild=r,e.parentNode=null,e.previousSibling=null,e.nextSibling=null,gu(t.ownerDocument,t),e}function Ig(t){return t&&(t.nodeType===xe.DOCUMENT_NODE||t.nodeType===xe.DOCUMENT_FRAGMENT_NODE||t.nodeType===xe.ELEMENT_NODE)}function Fg(t){return t&&(er(t)||bu(t)||pr(t)||t.nodeType===xe.DOCUMENT_FRAGMENT_NODE||t.nodeType===xe.COMMENT_NODE||t.nodeType===xe.PROCESSING_INSTRUCTION_NODE)}function pr(t){return t&&t.nodeType===xe.DOCUMENT_TYPE_NODE}function er(t){return t&&t.nodeType===xe.ELEMENT_NODE}function bu(t){return t&&t.nodeType===xe.TEXT_NODE}function Ml(t,e){var r=t.childNodes||[];if(Qt(r,er)||pr(e))return!1;var n=Qt(r,pr);return!(e&&n&&r.indexOf(n)>r.indexOf(e))}function Il(t,e){var r=t.childNodes||[];function n(s){return er(s)&&s!==e}if(Qt(r,n))return!1;var a=Qt(r,pr);return!(e&&a&&r.indexOf(a)>r.indexOf(e))}function Rg(t,e,r){if(!Ig(t))throw new Fe(pt,"Unexpected parent node type "+t.nodeType);if(r&&r.parentNode!==t)throw new Fe(jd,"child not in parent");if(!Fg(e)||pr(e)&&t.nodeType!==xe.DOCUMENT_NODE)throw new Fe(pt,"Unexpected node type "+e.nodeType+" for parent node type "+t.nodeType)}function Bg(t,e,r){var n=t.childNodes||[],a=e.childNodes||[];if(e.nodeType===xe.DOCUMENT_FRAGMENT_NODE){var s=a.filter(er);if(s.length>1||Qt(a,bu))throw new Fe(pt,"More than one element or text in fragment");if(s.length===1&&!Ml(t,r))throw new Fe(pt,"Element in fragment can not be inserted before doctype")}if(er(e)&&!Ml(t,r))throw new Fe(pt,"Only one element can be added and only after doctype");if(pr(e)){if(Qt(n,pr))throw new Fe(pt,"Only one doctype is allowed");var o=Qt(n,er);if(r&&n.indexOf(o)<n.indexOf(r))throw new Fe(pt,"Doctype can only be inserted before an element");if(!r&&o)throw new Fe(pt,"Doctype can not be appended since element is present")}}function $d(t,e,r){var n=t.childNodes||[],a=e.childNodes||[];if(e.nodeType===xe.DOCUMENT_FRAGMENT_NODE){var s=a.filter(er);if(s.length>1||Qt(a,bu))throw new Fe(pt,"More than one element or text in fragment");if(s.length===1&&!Il(t,r))throw new Fe(pt,"Element in fragment can not be inserted before doctype")}if(er(e)&&!Il(t,r))throw new Fe(pt,"Only one element can be added and only after doctype");if(pr(e)){if(Qt(n,function(u){return pr(u)&&u!==r}))throw new Fe(pt,"Only one doctype is allowed");var o=Qt(n,er);if(r&&n.indexOf(o)<n.indexOf(r))throw new Fe(pt,"Doctype can only be inserted before an element")}}function Js(t,e,r,n){Rg(t,e,r),t.nodeType===xe.DOCUMENT_NODE&&(n||Bg)(t,e,r);var a=e.parentNode;if(a&&a.removeChild(e),e.nodeType===hr){var s=e.firstChild;if(s==null)return e;var o=e.lastChild}else s=o=e;var c=r?r.previousSibling:t.lastChild;s.previousSibling=c,o.nextSibling=r,c?c.nextSibling=s:t.firstChild=s,r==null?t.lastChild=o:r.previousSibling=o;do s.parentNode=t;while(s!==o&&(s=s.nextSibling));return gu(t.ownerDocument||t,t),e.nodeType==hr&&(e.firstChild=e.lastChild=null),e}function Vg(t,e){return e.parentNode&&e.parentNode.removeChild(e),e.parentNode=t,e.previousSibling=t.lastChild,e.nextSibling=null,e.previousSibling?e.previousSibling.nextSibling=e:t.firstChild=e,t.lastChild=e,gu(t.ownerDocument,t,e),e}Ya.prototype={nodeName:"#document",nodeType:Ad,doctype:null,documentElement:null,_inc:1,insertBefore:function(t,e){if(t.nodeType==hr){for(var r=t.firstChild;r;){var n=r.nextSibling;this.insertBefore(r,e),r=n}return t}return Js(this,t,e),t.ownerDocument=this,this.documentElement===null&&t.nodeType===Ut&&(this.documentElement=t),t},removeChild:function(t){return this.documentElement==t&&(this.documentElement=null),Od(this,t)},replaceChild:function(t,e){Js(this,t,e,$d),t.ownerDocument=this,e&&this.removeChild(e),er(t)&&(this.documentElement=t)},importNode:function(t,e){return Fd(this,t,e)},getElementById:function(t){var e=null;return La(this.documentElement,function(r){if(r.nodeType==Ut&&r.getAttribute("id")==t)return e=r,!0}),e},getElementsByClassName:function(t){var e=Ol(t);return new zn(this,function(r){var n=[];return e.length>0&&La(r.documentElement,function(a){if(a!==r&&a.nodeType===Ut){var s=a.getAttribute("class");if(s){var o=t===s;if(!o){var c=Ol(s);o=e.every($g(c))}o&&n.push(a)}}}),n})},createElement:function(t){var e=new cn;e.ownerDocument=this,e.nodeName=t,e.tagName=t,e.localName=t,e.childNodes=new fr;var r=e.attributes=new Gs;return r._ownerElement=e,e},createDocumentFragment:function(){var t=new $i;return t.ownerDocument=this,t.childNodes=new fr,t},createTextNode:function(t){var e=new xu;return e.ownerDocument=this,e.appendData(t),e},createComment:function(t){var e=new yu;return e.ownerDocument=this,e.appendData(t),e},createCDATASection:function(t){var e=new vu;return e.ownerDocument=this,e.appendData(t),e},createProcessingInstruction:function(t,e){var r=new _u;return r.ownerDocument=this,r.tagName=r.nodeName=r.target=t,r.nodeValue=r.data=e,r},createAttribute:function(t){var e=new Ys;return e.ownerDocument=this,e.name=t,e.nodeName=t,e.localName=t,e.specified=!0,e},createEntityReference:function(t){var e=new wu;return e.ownerDocument=this,e.nodeName=t,e},createElementNS:function(t,e){var r=new cn,n=e.split(":"),a=r.attributes=new Gs;return r.childNodes=new fr,r.ownerDocument=this,r.nodeName=e,r.tagName=e,r.namespaceURI=t,n.length==2?(r.prefix=n[0],r.localName=n[1]):r.localName=e,a._ownerElement=r,r},createAttributeNS:function(t,e){var r=new Ys,n=e.split(":");return r.ownerDocument=this,r.nodeName=e,r.name=e,r.namespaceURI=t,r.specified=!0,n.length==2?(r.prefix=n[0],r.localName=n[1]):r.localName=e,r}};bt(Ya,xe);function cn(){this._nsMap={}}cn.prototype={nodeType:Ut,hasAttribute:function(t){return this.getAttributeNode(t)!=null},getAttribute:function(t){var e=this.getAttributeNode(t);return e&&e.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,e){var r=this.ownerDocument.createAttribute(t);r.value=r.nodeValue=""+e,this.setAttributeNode(r)},removeAttribute:function(t){var e=this.getAttributeNode(t);e&&this.removeAttributeNode(e)},appendChild:function(t){return t.nodeType===hr?this.insertBefore(t,null):Vg(this,t)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,e){var r=this.getAttributeNodeNS(t,e);r&&this.removeAttributeNode(r)},hasAttributeNS:function(t,e){return this.getAttributeNodeNS(t,e)!=null},getAttributeNS:function(t,e){var r=this.getAttributeNodeNS(t,e);return r&&r.value||""},setAttributeNS:function(t,e,r){var n=this.ownerDocument.createAttributeNS(t,e);n.value=n.nodeValue=""+r,this.setAttributeNode(n)},getAttributeNodeNS:function(t,e){return this.attributes.getNamedItemNS(t,e)},getElementsByTagName:function(t){return new zn(this,function(e){var r=[];return La(e,function(n){n!==e&&n.nodeType==Ut&&(t==="*"||n.tagName==t)&&r.push(n)}),r})},getElementsByTagNameNS:function(t,e){return new zn(this,function(r){var n=[];return La(r,function(a){a!==r&&a.nodeType===Ut&&(t==="*"||a.namespaceURI===t)&&(e==="*"||a.localName==e)&&n.push(a)}),n})}};Ya.prototype.getElementsByTagName=cn.prototype.getElementsByTagName;Ya.prototype.getElementsByTagNameNS=cn.prototype.getElementsByTagNameNS;bt(cn,xe);function Ys(){}Ys.prototype.nodeType=Un;bt(Ys,xe);function Za(){}Za.prototype={data:"",substringData:function(t,e){return this.data.substring(t,t+e)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,e){this.replaceData(t,0,e)},appendChild:function(t){throw new Error(Ye[pt])},deleteData:function(t,e){this.replaceData(t,e,"")},replaceData:function(t,e,r){var n=this.data.substring(0,t),a=this.data.substring(t+e);r=n+r+a,this.nodeValue=this.data=r,this.length=r.length}};bt(Za,xe);function xu(){}xu.prototype={nodeName:"#text",nodeType:Ws,splitText:function(t){var e=this.data,r=e.substring(t);e=e.substring(0,t),this.data=this.nodeValue=e,this.length=e.length;var n=this.ownerDocument.createTextNode(r);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}};bt(xu,Za);function yu(){}yu.prototype={nodeName:"#comment",nodeType:Nd};bt(yu,Za);function vu(){}vu.prototype={nodeName:"#cdata-section",nodeType:wd};bt(vu,Za);function Oi(){}Oi.prototype.nodeType=kd;bt(Oi,xe);function Pd(){}Pd.prototype.nodeType=Lg;bt(Pd,xe);function Ld(){}Ld.prototype.nodeType=Pg;bt(Ld,xe);function wu(){}wu.prototype.nodeType=_d;bt(wu,xe);function $i(){}$i.prototype.nodeName="#document-fragment";$i.prototype.nodeType=hr;bt($i,xe);function _u(){}_u.prototype.nodeType=Ed;bt(_u,xe);function Md(){}Md.prototype.serializeToString=function(t,e,r){return Id.call(t,e,r)};xe.prototype.toString=Id;function Id(t,e){var r=[],n=this.nodeType==9&&this.documentElement||this,a=n.prefix,s=n.namespaceURI;if(s&&a==null){var a=n.lookupPrefix(s);if(a==null)var o=[{namespace:s,prefix:null}]}return In(this,r,t,e,o),r.join("")}function Fl(t,e,r){var n=t.prefix||"",a=t.namespaceURI;if(!a||n==="xml"&&a===Pa.XML||a===Pa.XMLNS)return!1;for(var s=r.length;s--;){var o=r[s];if(o.prefix===n)return o.namespace!==a}return!0}function go(t,e,r){t.push(" ",e,'="',r.replace(/[<>&"\t\n\r]/g,Td),'"')}function In(t,e,r,n,a){if(a||(a=[]),n)if(t=n(t),t){if(typeof t=="string"){e.push(t);return}}else return;switch(t.nodeType){case Ut:var s=t.attributes,o=s.length,g=t.firstChild,c=t.tagName;r=Pa.isHTML(t.namespaceURI)||r;var u=c;if(!r&&!t.prefix&&t.namespaceURI){for(var f,l=0;l<s.length;l++)if(s.item(l).name==="xmlns"){f=s.item(l).value;break}if(!f)for(var h=a.length-1;h>=0;h--){var d=a[h];if(d.prefix===""&&d.namespace===t.namespaceURI){f=d.namespace;break}}if(f!==t.namespaceURI)for(var h=a.length-1;h>=0;h--){var d=a[h];if(d.namespace===t.namespaceURI){d.prefix&&(u=d.prefix+":"+c);break}}}e.push("<",u);for(var m=0;m<o;m++){var b=s.item(m);b.prefix=="xmlns"?a.push({prefix:b.localName,namespace:b.value}):b.nodeName=="xmlns"&&a.push({prefix:"",namespace:b.value})}for(var m=0;m<o;m++){var b=s.item(m);if(Fl(b,r,a)){var x=b.prefix||"",y=b.namespaceURI;go(e,x?"xmlns:"+x:"xmlns",y),a.push({prefix:x,namespace:y})}In(b,e,r,n,a)}if(c===u&&Fl(t,r,a)){var x=t.prefix||"",y=t.namespaceURI;go(e,x?"xmlns:"+x:"xmlns",y),a.push({prefix:x,namespace:y})}if(g||r&&!/^(?:meta|link|img|br|hr|input)$/i.test(c)){if(e.push(">"),r&&/^script$/i.test(c))for(;g;)g.data?e.push(g.data):In(g,e,r,n,a.slice()),g=g.nextSibling;else for(;g;)In(g,e,r,n,a.slice()),g=g.nextSibling;e.push("</",u,">")}else e.push("/>");return;case Ad:case hr:for(var g=t.firstChild;g;)In(g,e,r,n,a.slice()),g=g.nextSibling;return;case Un:return go(e,t.name,t.value);case Ws:return e.push(t.data.replace(/[<&>]/g,Td));case wd:return e.push("<![CDATA[",t.data,"]]>");case Nd:return e.push("<!--",t.data,"-->");case kd:var E=t.publicId,D=t.systemId;if(e.push("<!DOCTYPE ",t.name),E)e.push(" PUBLIC ",E),D&&D!="."&&e.push(" ",D),e.push(">");else if(D&&D!=".")e.push(" SYSTEM ",D,">");else{var w=t.internalSubset;w&&e.push(" [",w,"]"),e.push(">")}return;case Ed:return e.push("<?",t.target," ",t.data,"?>");case _d:return e.push("&",t.nodeName,";");default:e.push("??",t.nodeName)}}function Fd(t,e,r){var n;switch(e.nodeType){case Ut:n=e.cloneNode(!1),n.ownerDocument=t;case hr:break;case Un:r=!0;break}if(n||(n=e.cloneNode(!1)),n.ownerDocument=t,n.parentNode=null,r)for(var a=e.firstChild;a;)n.appendChild(Fd(t,a,r)),a=a.nextSibling;return n}function Po(t,e,r){var n=new e.constructor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=e[a];typeof s!="object"&&s!=n[a]&&(n[a]=s)}switch(e.childNodes&&(n.childNodes=new fr),n.ownerDocument=t,n.nodeType){case Ut:var o=e.attributes,c=n.attributes=new Gs,u=o.length;c._ownerElement=n;for(var f=0;f<u;f++)n.setAttributeNode(Po(t,o.item(f),!0));break;case Un:r=!0}if(r)for(var l=e.firstChild;l;)n.appendChild(Po(t,l,r)),l=l.nextSibling;return n}function Rd(t,e,r){t[e]=r}try{if(Object.defineProperty){let t=function(e){switch(e.nodeType){case Ut:case hr:var r=[];for(e=e.firstChild;e;)e.nodeType!==7&&e.nodeType!==8&&r.push(t(e)),e=e.nextSibling;return r.join("");default:return e.nodeValue}};Object.defineProperty(zn.prototype,"length",{get:function(){return mu(this),this.$$length}}),Object.defineProperty(xe.prototype,"textContent",{get:function(){return t(this)},set:function(e){switch(this.nodeType){case Ut:case hr:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),Rd=function(e,r,n){e["$$"+r]=n}}}catch{}xr.DocumentType=Oi;xr.DOMException=Fe;xr.DOMImplementation=Dd;xr.Element=cn;xr.Node=xe;xr.NodeList=fr;xr.XMLSerializer=Md;var Pi={},Bd={};(function(t){var e=yr.freeze;t.XML_ENTITIES=e({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=e({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
133
+ `,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}),t.entityMap=t.HTML_ENTITIES})(Bd);var Eu={},Ma=yr.NAMESPACE,Lo=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Rl=new RegExp("[\\-\\.0-9"+Lo.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),Bl=new RegExp("^"+Lo.source+Rl.source+"*(?::"+Lo.source+Rl.source+"*)?$"),va=0,Mr=1,Cn=2,wa=3,On=4,$n=5,_a=6,bs=7;function Hn(t,e){this.message=t,this.locator=e,Error.captureStackTrace&&Error.captureStackTrace(this,Hn)}Hn.prototype=new Error;Hn.prototype.name=Hn.name;function Vd(){}Vd.prototype={parse:function(t,e,r){var n=this.domBuilder;n.startDocument(),qd(e,e={}),qg(t,e,r,n,this.errorHandler),n.endDocument()}};function qg(t,e,r,n,a){function s(M){if(M>65535){M-=65536;var O=55296+(M>>10),G=56320+(M&1023);return String.fromCharCode(O,G)}else return String.fromCharCode(M)}function o(M){var O=M.slice(1,-1);return Object.hasOwnProperty.call(r,O)?r[O]:O.charAt(0)==="#"?s(parseInt(O.substr(1).replace("x","0x"))):(a.error("entity not found:"+M),M)}function c(M){if(M>x){var O=t.substring(x,M).replace(/&#?\w+;/g,o);d&&u(x),n.characters(O,0,M-x),x=M}}function u(M,O){for(;M>=l&&(O=h.exec(t));)f=O.index,l=f+O[0].length,d.lineNumber++;d.columnNumber=M-f+1}for(var f=0,l=0,h=/.*(?:\r\n?|\n)|.*$/g,d=n.locator,m=[{currentNSMap:e}],b={},x=0;;){try{var y=t.indexOf("<",x);if(y<0){if(!t.substr(x).match(/^\s*$/)){var g=n.doc,E=g.createTextNode(t.substr(x));g.appendChild(E),n.currentElement=E}return}switch(y>x&&c(y),t.charAt(y+1)){case"/":var S=t.indexOf(">",y+3),D=t.substring(y+2,S).replace(/[ \t\n\r]+$/g,""),w=m.pop();S<0?(D=t.substring(y+2).replace(/[\s<].*/,""),a.error("end tag name: "+D+" is not complete:"+w.tagName),S=y+1+D.length):D.match(/\s</)&&(D=D.replace(/[\s<].*/,""),a.error("end tag name: "+D+" maybe not complete"),S=y+1+D.length);var j=w.localNSMap,p=w.tagName==D,A=p||w.tagName&&w.tagName.toLowerCase()==D.toLowerCase();if(A){if(n.endElement(w.uri,w.localName,D),j)for(var k in j)Object.prototype.hasOwnProperty.call(j,k)&&n.endPrefixMapping(k);p||a.fatalError("end tag name: "+D+" is not match the current start tagName:"+w.tagName)}else m.push(w);S++;break;case"?":d&&u(y),S=Gg(t,y,n);break;case"!":d&&u(y),S=Wg(t,y,n,a);break;default:d&&u(y);var V=new Ud,H=m[m.length-1].currentNSMap,S=Ug(t,y,V,H,o,a),P=V.length;if(!V.closed&&Hg(t,S,V.tagName,b)&&(V.closed=!0,r.nbsp||a.warning("unclosed xml attribute")),d&&P){for(var I=Vl(d,{}),W=0;W<P;W++){var _=V[W];u(_.offset),_.locator=Vl(d,{})}n.locator=I,ql(V,n,H)&&m.push(V),n.locator=d}else ql(V,n,H)&&m.push(V);Ma.isHTML(V.uri)&&!V.closed?S=zg(t,S,V.tagName,o,n):S++}}catch(M){if(M instanceof Hn)throw M;a.error("element parse error: "+M),S=-1}S>x?x=S:c(Math.max(y,x)+1)}}function Vl(t,e){return e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber,e}function Ug(t,e,r,n,a,s){function o(d,m,b){r.attributeNames.hasOwnProperty(d)&&s.fatalError("Attribute "+d+" redefined"),r.addValue(d,m.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,a),b)}for(var c,u,f=++e,l=va;;){var h=t.charAt(f);switch(h){case"=":if(l===Mr)c=t.slice(e,f),l=wa;else if(l===Cn)l=wa;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(l===wa||l===Mr)if(l===Mr&&(s.warning('attribute value must after "="'),c=t.slice(e,f)),e=f+1,f=t.indexOf(h,e),f>0)u=t.slice(e,f),o(c,u,e-1),l=$n;else throw new Error("attribute value no end '"+h+"' match");else if(l==On)u=t.slice(e,f),o(c,u,e),s.warning('attribute "'+c+'" missed start quot('+h+")!!"),e=f+1,l=$n;else throw new Error('attribute value must after "="');break;case"/":switch(l){case va:r.setTagName(t.slice(e,f));case $n:case _a:case bs:l=bs,r.closed=!0;case On:case Mr:break;case Cn:r.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return s.error("unexpected end of input"),l==va&&r.setTagName(t.slice(e,f)),f;case">":switch(l){case va:r.setTagName(t.slice(e,f));case $n:case _a:case bs:break;case On:case Mr:u=t.slice(e,f),u.slice(-1)==="/"&&(r.closed=!0,u=u.slice(0,-1));case Cn:l===Cn&&(u=c),l==On?(s.warning('attribute "'+u+'" missed quot(")!'),o(c,u,e)):((!Ma.isHTML(n[""])||!u.match(/^(?:disabled|checked|selected)$/i))&&s.warning('attribute "'+u+'" missed value!! "'+u+'" instead!!'),o(u,u,e));break;case wa:throw new Error("attribute value missed!!")}return f;case"€":h=" ";default:if(h<=" ")switch(l){case va:r.setTagName(t.slice(e,f)),l=_a;break;case Mr:c=t.slice(e,f),l=Cn;break;case On:var u=t.slice(e,f);s.warning('attribute "'+u+'" missed quot(")!!'),o(c,u,e);case $n:l=_a;break}else switch(l){case Cn:r.tagName,(!Ma.isHTML(n[""])||!c.match(/^(?:disabled|checked|selected)$/i))&&s.warning('attribute "'+c+'" missed value!! "'+c+'" instead2!!'),o(c,c,e),e=f,l=Mr;break;case $n:s.warning('attribute space is required"'+c+'"!!');case _a:l=Mr,e=f;break;case wa:l=On,e=f;break;case bs:throw new Error("elements closed character '/' and '>' must be connected to")}}f++}}function ql(t,e,r){for(var n=t.tagName,a=null,h=t.length;h--;){var s=t[h],o=s.qName,c=s.value,d=o.indexOf(":");if(d>0)var u=s.prefix=o.slice(0,d),f=o.slice(d+1),l=u==="xmlns"&&f;else f=o,u=null,l=o==="xmlns"&&"";s.localName=f,l!==!1&&(a==null&&(a={},qd(r,r={})),r[l]=a[l]=c,s.uri=Ma.XMLNS,e.startPrefixMapping(l,c))}for(var h=t.length;h--;){s=t[h];var u=s.prefix;u&&(u==="xml"&&(s.uri=Ma.XML),u!=="xmlns"&&(s.uri=r[u||""]))}var d=n.indexOf(":");d>0?(u=t.prefix=n.slice(0,d),f=t.localName=n.slice(d+1)):(u=null,f=t.localName=n);var m=t.uri=r[u||""];if(e.startElement(m,f,n,t),t.closed){if(e.endElement(m,f,n),a)for(u in a)Object.prototype.hasOwnProperty.call(a,u)&&e.endPrefixMapping(u)}else return t.currentNSMap=r,t.localNSMap=a,!0}function zg(t,e,r,n,a){if(/^(?:script|textarea)$/i.test(r)){var s=t.indexOf("</"+r+">",e),o=t.substring(e+1,s);if(/[&<]/.test(o))return/^script$/i.test(r)?(a.characters(o,0,o.length),s):(o=o.replace(/&#?\w+;/g,n),a.characters(o,0,o.length),s)}return e+1}function Hg(t,e,r,n){var a=n[r];return a==null&&(a=t.lastIndexOf("</"+r+">"),a<e&&(a=t.lastIndexOf("</"+r)),n[r]=a),a<e}function qd(t,e){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}function Wg(t,e,r,n){var a=t.charAt(e+2);switch(a){case"-":if(t.charAt(e+3)==="-"){var s=t.indexOf("-->",e+4);return s>e?(r.comment(t,e+4,s-e-4),s+3):(n.error("Unclosed comment"),-1)}else return-1;default:if(t.substr(e+3,6)=="CDATA["){var s=t.indexOf("]]>",e+9);return r.startCDATA(),r.characters(t,e+9,s-e-9),r.endCDATA(),s+3}var o=Jg(t,e),c=o.length;if(c>1&&/!doctype/i.test(o[0][0])){var u=o[1][0],f=!1,l=!1;c>3&&(/^public$/i.test(o[2][0])?(f=o[3][0],l=c>4&&o[4][0]):/^system$/i.test(o[2][0])&&(l=o[3][0]));var h=o[c-1];return r.startDTD(u,f,l),r.endDTD(),h.index+h[0].length}}return-1}function Gg(t,e,r){var n=t.indexOf("?>",e);if(n){var a=t.substring(e,n).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return a?(a[0].length,r.processingInstruction(a[1],a[2]),n+2):-1}return-1}function Ud(){this.attributeNames={}}Ud.prototype={setTagName:function(t){if(!Bl.test(t))throw new Error("invalid tagName:"+t);this.tagName=t},addValue:function(t,e,r){if(!Bl.test(t))throw new Error("invalid attribute:"+t);this.attributeNames[t]=this.length,this[this.length++]={qName:t,value:e,offset:r}},length:0,getLocalName:function(t){return this[t].localName},getLocator:function(t){return this[t].locator},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}};function Jg(t,e){var r,n=[],a=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(a.lastIndex=e,a.exec(t);r=a.exec(t);)if(n.push(r),r[1])return n}Eu.XMLReader=Vd;Eu.ParseError=Hn;var Yg=yr,Zg=xr,Ul=Bd,zd=Eu,Xg=Zg.DOMImplementation,zl=Yg.NAMESPACE,Kg=zd.ParseError,Qg=zd.XMLReader;function Hd(t){return t.replace(/\r[\n\u0085]/g,`
126
134
  `).replace(/[\r\u0085\u2028]/g,`
127
- `)}function Wd(t){this.options=t||{locator:{}}}Wd.prototype.parseFromString=function(t,e){var r=this.options,n=new Qg,a=r.domBuilder||new Sa,s=r.errorHandler,o=r.locator,c=r.xmlns||{},u=/\/x?html?$/.test(e),f=u?Ul.HTML_ENTITIES:Ul.XML_ENTITIES;o&&a.setDocumentLocator(o),n.errorHandler=eb(s,a,o),n.domBuilder=r.domBuilder||a,u&&(c[""]=zl.HTML),c.xml=c.xml||zl.XML;var l=r.normalizeLineEndings||Hd;return t&&typeof t=="string"?n.parse(l(t),c,f):n.errorHandler.error("invalid doc source"),a.doc};function eb(t,e,r){if(!t){if(e instanceof Sa)return e;t=e}var n={},a=t instanceof Function;r=r||{};function s(o){var c=t[o];!c&&a&&(c=t.length==2?function(u){t(o,u)}:t),n[o]=c&&function(u){c("[xmldom "+o+"] "+u+Mo(r))}||function(){}}return s("warning"),s("error"),s("fatalError"),n}function Sa(){this.cdata=!1}function dn(t,e){e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber}Sa.prototype={startDocument:function(){this.doc=new Xg().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(t,e,r,n){var a=this.doc,s=a.createElementNS(t,r||e),o=n.length;cs(this,s),this.currentElement=s,this.locator&&dn(this.locator,s);for(var c=0;c<o;c++){var t=n.getURI(c),u=n.getValue(c),r=n.getQName(c),f=a.createAttributeNS(t,r);this.locator&&dn(n.getLocator(c),f),f.value=f.nodeValue=u,s.setAttributeNode(f)}},endElement:function(t,e,r){var n=this.currentElement;n.tagName,this.currentElement=n.parentNode},startPrefixMapping:function(t,e){},endPrefixMapping:function(t){},processingInstruction:function(t,e){var r=this.doc.createProcessingInstruction(t,e);this.locator&&dn(this.locator,r),cs(this,r)},ignorableWhitespace:function(t,e,r){},characters:function(t,e,r){if(t=Hl.apply(this,arguments),t){if(this.cdata)var n=this.doc.createCDATASection(t);else var n=this.doc.createTextNode(t);this.currentElement?this.currentElement.appendChild(n):/^\s*$/.test(t)&&this.doc.appendChild(n),this.locator&&dn(this.locator,n)}},skippedEntity:function(t){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(t){(this.locator=t)&&(t.lineNumber=0)},comment:function(t,e,r){t=Hl.apply(this,arguments);var n=this.doc.createComment(t);this.locator&&dn(this.locator,n),cs(this,n)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(t,e,r){var n=this.doc.implementation;if(n&&n.createDocumentType){var a=n.createDocumentType(t,e,r);this.locator&&dn(this.locator,a),cs(this,a),this.doc.doctype=a}},warning:function(t){console.warn("[xmldom warning] "+t,Mo(this.locator))},error:function(t){console.error("[xmldom error] "+t,Mo(this.locator))},fatalError:function(t){throw new Kg(t,this.locator)}};function Mo(t){if(t)return`
128
- @`+(t.systemId||"")+"#[line:"+t.lineNumber+",col:"+t.columnNumber+"]"}function Hl(t,e,r){return typeof t=="string"?t.substr(e,r):t.length>=e+r||e?new java.lang.String(t,e,r)+"":t}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(t){Sa.prototype[t]=function(){return null}});function cs(t,e){t.currentElement?t.currentElement.appendChild(e):t.doc.appendChild(e)}ki.__DOMHandler=Sa;ki.normalizeLineEndings=Hd;ki.DOMParser=Wd;var Gd=Zt;Ei.DOMImplementation=Gd.DOMImplementation;Ei.XMLSerializer=Gd.XMLSerializer;Ei.DOMParser=ki.DOMParser;var ht={},Et={},ji={},Ln={},Mn={};Object.defineProperty(Mn,"__esModule",{value:!0});const tb=mr;class rb extends tb.default{constructor(e,r){super(e,r)}}Mn.UniverseLogError=rb;(function(t){Object.defineProperty(t,"__esModule",{value:!0});const e=Mn;(function(r){r.error="error",r.warn="warn",r.info="info",r.http="http",r.verbose="verbose",r.debug="debug",r.silly="silly"})(t.LogLevel||(t.LogLevel={})),function(r){r.LEVELS_VALUES={[r.error]:0,[r.warn]:1,[r.info]:2,[r.http]:3,[r.verbose]:4,[r.debug]:5,[r.silly]:6},r.LEVELS_BY_NAME={[r.error]:r.error,[r.warn]:r.warn,[r.info]:r.info,[r.http]:r.http,[r.verbose]:r.verbose,[r.debug]:r.debug,[r.silly]:r.silly},r.DEFAULT_LEVEL=r.info;function n(u){if(typeof r.LEVELS_BY_NAME[u]>"u"){const f=Object.keys(r.LEVELS_BY_NAME).join(", ");throw new e.UniverseLogError(`There is no such log level: '${u}'. Available levels: [ ${f} ]`)}return r.LEVELS_BY_NAME[u]}r.valueOf=n;function a(u){if(typeof r.LEVELS_VALUES[u]>"u"){const f=Object.keys(r.LEVELS_BY_NAME).join(", ");throw new e.UniverseLogError(`There is no such log level: '${u}'. Available levels: [ ${f} ]`)}return r.LEVELS_VALUES[u]}r.levelToValue=a;function s(u){return a(u.level)<=a(u.threshold)}r.isLessOrEquallyVerbose=s;function o(u,f){return r.LEVELS_VALUES[u]>r.LEVELS_VALUES[f]?u:f}r.moreVerbose=o;function c(u,f){return r.LEVELS_VALUES[u]<r.LEVELS_VALUES[f]?u:f}r.lessVerbose=c}(t.LogLevel||(t.LogLevel={}))})(Ln);var Si={},Nu={},Jd={exports:{}};(function(t){t.exports=function(r){var n={};function a(s){if(n[s])return n[s].exports;var o=n[s]={i:s,l:!1,exports:{}};return r[s].call(o.exports,o,o.exports,a),o.l=!0,o.exports}return a.m=r,a.c=n,a.d=function(s,o,c){a.o(s,o)||Object.defineProperty(s,o,{enumerable:!0,get:c})},a.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},a.t=function(s,o){if(1&o&&(s=a(s)),8&o||4&o&&typeof s=="object"&&s&&s.__esModule)return s;var c=Object.create(null);if(a.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:s}),2&o&&typeof s!="string")for(var u in s)a.d(c,u,(function(f){return s[f]}).bind(null,u));return c},a.n=function(s){var o=s&&s.__esModule?function(){return s.default}:function(){return s};return a.d(o,"a",o),o},a.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)},a.p="",a(a.s=4)}([function(r,n,a){var s=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(n,"__esModule",{value:!0});const o=s(a(1)),c=a(8),u=a(2),f=a(16);n.validatorSymbol=Symbol("validators"),n.Predicate=class{constructor(l,h={}){this.type=l,this.options=h,this.context={validators:[]},this.context=Object.assign({},this.context,this.options);const d=this.type[0].toLowerCase()+this.type.slice(1);this.addValidator({message:(m,b)=>`Expected ${b&&b.substring(this.type.length+1)||"argument"} to be of type \`${this.type}\` but received type \`${o.default(m)}\``,validator:m=>o.default[d](m)})}[u.testSymbol](l,h,d){for(const{validator:m,message:b}of this.context.validators){if(this.options.optional===!0&&l===void 0)continue;const x=m(l);if(x===!0)continue;let y=d;throw typeof d=="function"&&(y=d()),y=y?`${this.type} \`${y}\``:this.type,new c.ArgumentError(b(l,y,x),h)}}get[n.validatorSymbol](){return this.context.validators}get not(){return f.not(this)}validate(l){return this.addValidator({message:(h,d,m)=>typeof m=="string"?`(${d}) ${m}`:m(d),validator:h=>{const{message:d,validator:m}=l(h);return!!m||d}})}is(l){return this.addValidator({message:(h,d,m)=>m?`(${d}) ${m}`:`Expected ${d} \`${h}\` to pass custom validation function`,validator:l})}addValidator(l){return this.context.validators.push(l),this}}},function(r,n,a){Object.defineProperty(n,"__esModule",{value:!0});const s=typeof URL>"u"?a(15).URL:URL,{toString:o}=Object.prototype,c=g=>E=>typeof E===g,u=g=>{const E=o.call(g).slice(8,-1);if(E)return E},f=g=>E=>u(E)===g;function l(g){switch(g){case null:return"null";case!0:case!1:return"boolean"}switch(typeof g){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"bigint":return"bigint";case"symbol":return"symbol"}if(l.function_(g))return"Function";if(l.observable(g))return"Observable";if(l.array(g))return"Array";if(l.buffer(g))return"Buffer";const E=u(g);if(E)return E;if(g instanceof String||g instanceof Boolean||g instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}const h=g=>typeof g=="object";l.undefined=c("undefined"),l.string=c("string"),l.number=c("number"),l.bigint=c("bigint"),l.function_=c("function"),l.null_=g=>g===null,l.class_=g=>l.function_(g)&&g.toString().startsWith("class "),l.boolean=g=>g===!0||g===!1,l.symbol=c("symbol"),l.numericString=g=>l.string(g)&&g.length>0&&!Number.isNaN(Number(g)),l.array=Array.isArray,l.buffer=g=>!l.nullOrUndefined(g)&&!l.nullOrUndefined(g.constructor)&&l.function_(g.constructor.isBuffer)&&g.constructor.isBuffer(g),l.nullOrUndefined=g=>l.null_(g)||l.undefined(g),l.object=g=>!l.nullOrUndefined(g)&&(l.function_(g)||h(g)),l.iterable=g=>!l.nullOrUndefined(g)&&l.function_(g[Symbol.iterator]),l.asyncIterable=g=>!l.nullOrUndefined(g)&&l.function_(g[Symbol.asyncIterator]),l.generator=g=>l.iterable(g)&&l.function_(g.next)&&l.function_(g.throw),l.nativePromise=g=>f("Promise")(g),l.promise=g=>l.nativePromise(g)||(E=>!l.null_(E)&&h(E)&&l.function_(E.then)&&l.function_(E.catch))(g),l.generatorFunction=f("GeneratorFunction"),l.asyncFunction=f("AsyncFunction"),l.boundFunction=g=>l.function_(g)&&!g.hasOwnProperty("prototype"),l.regExp=f("RegExp"),l.date=f("Date"),l.error=f("Error"),l.map=g=>f("Map")(g),l.set=g=>f("Set")(g),l.weakMap=g=>f("WeakMap")(g),l.weakSet=g=>f("WeakSet")(g),l.int8Array=f("Int8Array"),l.uint8Array=f("Uint8Array"),l.uint8ClampedArray=f("Uint8ClampedArray"),l.int16Array=f("Int16Array"),l.uint16Array=f("Uint16Array"),l.int32Array=f("Int32Array"),l.uint32Array=f("Uint32Array"),l.float32Array=f("Float32Array"),l.float64Array=f("Float64Array"),l.bigint64Array=f("BigInt64Array"),l.biguint64Array=f("BigUint64Array"),l.arrayBuffer=f("ArrayBuffer"),l.sharedArrayBuffer=f("SharedArrayBuffer"),l.dataView=f("DataView"),l.directInstanceOf=(g,E)=>Object.getPrototypeOf(g)===E.prototype,l.urlInstance=g=>f("URL")(g),l.urlString=g=>{if(!l.string(g))return!1;try{return new s(g),!0}catch{return!1}},l.truthy=g=>!!g,l.falsy=g=>!g,l.nan=g=>Number.isNaN(g);const d=new Set(["undefined","string","number","bigint","boolean","symbol"]);l.primitive=g=>l.null_(g)||d.has(typeof g),l.integer=g=>Number.isInteger(g),l.safeInteger=g=>Number.isSafeInteger(g),l.plainObject=g=>{if(u(g)!=="Object")return!1;const E=Object.getPrototypeOf(g);return E===null||E===Object.getPrototypeOf({})};const m=new Set(["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"]);l.typedArray=g=>{const E=u(g);return E!==void 0&&m.has(E)},l.arrayLike=g=>!l.nullOrUndefined(g)&&!l.function_(g)&&(E=>l.safeInteger(E)&&E>=0)(g.length),l.inRange=(g,E)=>{if(l.number(E))return g>=Math.min(0,E)&&g<=Math.max(E,0);if(l.array(E)&&E.length===2)return g>=Math.min(...E)&&g<=Math.max(...E);throw new TypeError(`Invalid range: ${JSON.stringify(E)}`)};const b=["innerHTML","ownerDocument","style","attributes","nodeValue"];l.domElement=g=>l.object(g)&&g.nodeType===1&&l.string(g.nodeName)&&!l.plainObject(g)&&b.every(E=>E in g),l.observable=g=>!!g&&(!(!g[Symbol.observable]||g!==g[Symbol.observable]())||!(!g["@@observable"]||g!==g["@@observable"]())),l.nodeStream=g=>!l.nullOrUndefined(g)&&h(g)&&l.function_(g.pipe)&&!l.observable(g),l.infinite=g=>g===1/0||g===-1/0;const x=g=>E=>l.integer(E)&&Math.abs(E%2)===g;l.evenInteger=x(0),l.oddInteger=x(1),l.emptyArray=g=>l.array(g)&&g.length===0,l.nonEmptyArray=g=>l.array(g)&&g.length>0,l.emptyString=g=>l.string(g)&&g.length===0,l.nonEmptyString=g=>l.string(g)&&g.length>0,l.emptyStringOrWhitespace=g=>l.emptyString(g)||(E=>l.string(E)&&/\S/.test(E)===!1)(g),l.emptyObject=g=>l.object(g)&&!l.map(g)&&!l.set(g)&&Object.keys(g).length===0,l.nonEmptyObject=g=>l.object(g)&&!l.map(g)&&!l.set(g)&&Object.keys(g).length>0,l.emptySet=g=>l.set(g)&&g.size===0,l.nonEmptySet=g=>l.set(g)&&g.size>0,l.emptyMap=g=>l.map(g)&&g.size===0,l.nonEmptyMap=g=>l.map(g)&&g.size>0;const y=(g,E,S)=>{if(l.function_(E)===!1)throw new TypeError(`Invalid predicate: ${JSON.stringify(E)}`);if(S.length===0)throw new TypeError("Invalid number of values");return g.call(S,E)};l.any=(g,...E)=>y(Array.prototype.some,g,E),l.all=(g,...E)=>y(Array.prototype.every,g,E),Object.defineProperties(l,{class:{value:l.class_},function:{value:l.function_},null:{value:l.null_}}),r.exports=l,n.default=l},function(r,n,a){Object.defineProperty(n,"__esModule",{value:!0}),n.testSymbol=Symbol("test"),n.isPredicate=s=>!!(s&&s[n.testSymbol])},function(r,n,a){Object.defineProperty(n,"__esModule",{value:!0}),n.default=(s,o,c=5)=>{const u=[];for(const f of o)if(!s.has(f)&&(u.push(f),u.length===c))return u;return u.length===0||u}},function(r,n,a){var s=this&&this.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(n,"__esModule",{value:!0});const o=s(a(10)),c=a(11),u=a(0);n.Predicate=u.Predicate;const f=a(2),l=s(a(17)),h=s(a(6)),d=s(a(9)),m=(x,y,g)=>{if(!f.isPredicate(y)&&typeof y!="string")throw new TypeError(`Expected second argument to be a predicate or a string, got \`${typeof y}\``);if(f.isPredicate(y)){const E=o.default();d.default(x,()=>c.inferLabel(E),y)}else d.default(x,y,g)};Object.defineProperties(m,{isValid:{value:(x,y)=>{try{return m(x,y),!0}catch{return!1}}},create:{value:(x,y)=>g=>{if(f.isPredicate(x)){const E=o.default();d.default(g,()=>c.inferLabel(E),x)}else d.default(g,x,y)}}}),n.default=h.default(l.default(m));var b=a(6);n.StringPredicate=b.StringPredicate,n.NumberPredicate=b.NumberPredicate,n.BooleanPredicate=b.BooleanPredicate,n.ArrayPredicate=b.ArrayPredicate,n.ObjectPredicate=b.ObjectPredicate,n.DatePredicate=b.DatePredicate,n.ErrorPredicate=b.ErrorPredicate,n.MapPredicate=b.MapPredicate,n.WeakMapPredicate=b.WeakMapPredicate,n.SetPredicate=b.SetPredicate,n.WeakSetPredicate=b.WeakSetPredicate,n.AnyPredicate=b.AnyPredicate},function(r,n,a){(function(s){var o=200,c="__lodash_hash_undefined__",u=1,f=2,l=9007199254740991,h="[object Arguments]",d="[object Array]",m="[object AsyncFunction]",b="[object Boolean]",x="[object Date]",y="[object Error]",g="[object Function]",E="[object GeneratorFunction]",S="[object Map]",w="[object Number]",k="[object Null]",p="[object Object]",N="[object Proxy]",A="[object RegExp]",V="[object Set]",z="[object String]",j="[object Symbol]",L="[object Undefined]",I="[object ArrayBuffer]",H="[object DataView]",_=/^\[object .+?Constructor\]$/,M=/^(?:0|[1-9]\d*)$/,C={};C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C[h]=C[d]=C[I]=C[b]=C[H]=C[x]=C[y]=C[g]=C[S]=C[w]=C[p]=C[A]=C[V]=C[z]=C["[object WeakMap]"]=!1;var W=typeof J=="object"&&J&&J.Object===Object&&J,R=typeof self=="object"&&self&&self.Object===Object&&self,Z=W||R||Function("return this")(),P=n&&!n.nodeType&&n,G=P&&typeof s=="object"&&s&&!s.nodeType&&s,ne=G&&G.exports===P,$=ne&&W.process,B=function(){try{return $&&$.binding&&$.binding("util")}catch{}}(),re=B&&B.isTypedArray;function X(D,F){for(var Y=-1,K=D==null?0:D.length;++Y<K;)if(F(D[Y],Y,D))return!0;return!1}function te(D){var F=-1,Y=Array(D.size);return D.forEach(function(K,me){Y[++F]=[me,K]}),Y}function pe(D){var F=-1,Y=Array(D.size);return D.forEach(function(K){Y[++F]=K}),Y}var De,Nt,Mt,yr=Array.prototype,vr=Function.prototype,ye=Object.prototype,tt=Z["__core-js_shared__"],We=vr.toString,Me=ye.hasOwnProperty,wr=(De=/[^.]+$/.exec(tt&&tt.keys&&tt.keys.IE_PROTO||""))?"Symbol(src)_1."+De:"",_r=ye.toString,eo=RegExp("^"+We.call(Me).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ra=ne?Z.Buffer:void 0,Gr=Z.Symbol,Ba=Z.Uint8Array,Va=ye.propertyIsEnumerable,to=yr.splice,ot=Gr?Gr.toStringTag:void 0,Jr=Object.getOwnPropertySymbols,qa=Ra?Ra.isBuffer:void 0,ut=(Nt=Object.keys,Mt=Object,function(D){return Nt(Mt(D))}),Yr=ar(Z,"DataView"),er=ar(Z,"Map"),Bn=ar(Z,"Promise"),Zr=ar(Z,"Set"),tr=ar(Z,"WeakMap"),rr=ar(Object,"create"),Ua=Ft(Yr),ro=Ft(er),It=Ft(Bn),za=Ft(Zr),no=Ft(tr),Ha=Gr?Gr.prototype:void 0,Er=Ha?Ha.valueOf:void 0;function rt(D){var F=-1,Y=D==null?0:D.length;for(this.clear();++F<Y;){var K=D[F];this.set(K[0],K[1])}}function nt(D){var F=-1,Y=D==null?0:D.length;for(this.clear();++F<Y;){var K=D[F];this.set(K[0],K[1])}}function pt(D){var F=-1,Y=D==null?0:D.length;for(this.clear();++F<Y;){var K=D[F];this.set(K[0],K[1])}}function nr(D){var F=-1,Y=D==null?0:D.length;for(this.__data__=new pt;++F<Y;)this.add(D[F])}function Ge(D){var F=this.__data__=new nt(D);this.size=F.size}function ao(D,F){var Y=Qr(D),K=!Y&&io(D),me=!Y&&!K&&qn(D),ie=!Y&&!K&&!me&&Qa(D),be=Y||K||me||ie,we=be?function(xe,lt){for(var Ue=-1,Te=Array(xe);++Ue<xe;)Te[Ue]=lt(Ue);return Te}(D.length,String):[],at=we.length;for(var Ee in D)!Me.call(D,Ee)||be&&(Ee=="length"||me&&(Ee=="offset"||Ee=="parent")||ie&&(Ee=="buffer"||Ee=="byteLength"||Ee=="byteOffset")||mt(Ee,at))||we.push(Ee);return we}function Xr(D,F){for(var Y=D.length;Y--;)if(Za(D[Y][0],F))return Y;return-1}function Nr(D){return D==null?D===void 0?L:k:ot&&ot in Object(D)?function(F){var Y=Me.call(F,ot),K=F[ot];try{F[ot]=void 0;var me=!0}catch{}var ie=_r.call(F);return me&&(Y?F[ot]=K:delete F[ot]),ie}(D):function(F){return _r.call(F)}(D)}function Wa(D){return Ar(D)&&Nr(D)==h}function Ga(D,F,Y,K,me){return D===F||(D==null||F==null||!Ar(D)&&!Ar(F)?D!=D&&F!=F:function(ie,be,we,at,Ee,xe){var lt=Qr(ie),Ue=Qr(be),Te=lt?d:kt(ie),ct=Ue?d:kt(be),sr=(Te=Te==h?p:Te)==p,en=(ct=ct==h?p:ct)==p,ir=Te==ct;if(ir&&qn(ie)){if(!qn(be))return!1;lt=!0,sr=!1}if(ir&&!sr)return xe||(xe=new Ge),lt||Qa(ie)?At(ie,be,we,at,Ee,xe):function(ce,le,gt,St,zn,Ne,bt){switch(gt){case H:if(ce.byteLength!=le.byteLength||ce.byteOffset!=le.byteOffset)return!1;ce=ce.buffer,le=le.buffer;case I:return!(ce.byteLength!=le.byteLength||!Ne(new Ba(ce),new Ba(le)));case b:case x:case w:return Za(+ce,+le);case y:return ce.name==le.name&&ce.message==le.message;case A:case z:return ce==le+"";case S:var Dt=te;case V:var jr=St&u;if(Dt||(Dt=pe),ce.size!=le.size&&!jr)return!1;var tn=bt.get(ce);if(tn)return tn==le;St|=f,bt.set(ce,le);var or=At(Dt(ce),Dt(le),St,zn,Ne,bt);return bt.delete(ce),or;case j:if(Er)return Er.call(ce)==Er.call(le)}return!1}(ie,be,Te,we,at,Ee,xe);if(!(we&u)){var kr=sr&&Me.call(ie,"__wrapped__"),Un=en&&Me.call(be,"__wrapped__");if(kr||Un){var uo=kr?ie.value():ie,lo=Un?be.value():be;return xe||(xe=new Ge),Ee(uo,lo,we,at,xe)}}return ir?(xe||(xe=new Ge),function(ce,le,gt,St,zn,Ne){var bt=gt&u,Dt=Ya(ce),jr=Dt.length,tn=Ya(le).length;if(jr!=tn&&!bt)return!1;for(var or=jr;or--;){var Re=Dt[or];if(!(bt?Re in le:Me.call(le,Re)))return!1}var Hn=Ne.get(ce);if(Hn&&Ne.get(le))return Hn==le;var rn=!0;Ne.set(ce,le),Ne.set(le,ce);for(var ur=bt;++or<jr;){Re=Dt[or];var nn=ce[Re],lr=le[Re];if(St)var es=bt?St(lr,nn,Re,le,ce,Ne):St(nn,lr,Re,ce,le,Ne);if(!(es===void 0?nn===lr||zn(nn,lr,gt,St,Ne):es)){rn=!1;break}ur||(ur=Re=="constructor")}if(rn&&!ur){var Sr=ce.constructor,Dr=le.constructor;Sr!=Dr&&"constructor"in ce&&"constructor"in le&&!(typeof Sr=="function"&&Sr instanceof Sr&&typeof Dr=="function"&&Dr instanceof Dr)&&(rn=!1)}return Ne.delete(ce),Ne.delete(le),rn}(ie,be,we,at,Ee,xe)):!1}(D,F,Y,K,Ga,me))}function Ja(D){return!(!Ka(D)||(F=D,wr&&wr in F))&&(jt(D)?eo:_).test(Ft(D));var F}function Vn(D){if(Y=(F=D)&&F.constructor,K=typeof Y=="function"&&Y.prototype||ye,F!==K)return ut(D);var F,Y,K,me=[];for(var ie in Object(D))Me.call(D,ie)&&ie!="constructor"&&me.push(ie);return me}function At(D,F,Y,K,me,ie){var be=Y&u,we=D.length,at=F.length;if(we!=at&&!(be&&at>we))return!1;var Ee=ie.get(D);if(Ee&&ie.get(F))return Ee==F;var xe=-1,lt=!0,Ue=Y&f?new nr:void 0;for(ie.set(D,F),ie.set(F,D);++xe<we;){var Te=D[xe],ct=F[xe];if(K)var sr=be?K(ct,Te,xe,F,D,ie):K(Te,ct,xe,D,F,ie);if(sr!==void 0){if(sr)continue;lt=!1;break}if(Ue){if(!X(F,function(en,ir){if(kr=ir,!Ue.has(kr)&&(Te===en||me(Te,en,Y,K,ie)))return Ue.push(ir);var kr})){lt=!1;break}}else if(Te!==ct&&!me(Te,ct,Y,K,ie)){lt=!1;break}}return ie.delete(D),ie.delete(F),lt}function Ya(D){return function(F,Y,K){var me=Y(F);return Qr(F)?me:function(ie,be){for(var we=-1,at=be.length,Ee=ie.length;++we<at;)ie[Ee+we]=be[we];return ie}(me,K(F))}(D,oo,so)}function Kr(D,F){var Y,K,me=D.__data__;return((K=typeof(Y=F))=="string"||K=="number"||K=="symbol"||K=="boolean"?Y!=="__proto__":Y===null)?me[typeof F=="string"?"string":"hash"]:me.map}function ar(D,F){var Y=function(K,me){return K==null?void 0:K[me]}(D,F);return Ja(Y)?Y:void 0}rt.prototype.clear=function(){this.__data__=rr?rr(null):{},this.size=0},rt.prototype.delete=function(D){var F=this.has(D)&&delete this.__data__[D];return this.size-=F?1:0,F},rt.prototype.get=function(D){var F=this.__data__;if(rr){var Y=F[D];return Y===c?void 0:Y}return Me.call(F,D)?F[D]:void 0},rt.prototype.has=function(D){var F=this.__data__;return rr?F[D]!==void 0:Me.call(F,D)},rt.prototype.set=function(D,F){var Y=this.__data__;return this.size+=this.has(D)?0:1,Y[D]=rr&&F===void 0?c:F,this},nt.prototype.clear=function(){this.__data__=[],this.size=0},nt.prototype.delete=function(D){var F=this.__data__,Y=Xr(F,D);return!(Y<0||(Y==F.length-1?F.pop():to.call(F,Y,1),--this.size,0))},nt.prototype.get=function(D){var F=this.__data__,Y=Xr(F,D);return Y<0?void 0:F[Y][1]},nt.prototype.has=function(D){return Xr(this.__data__,D)>-1},nt.prototype.set=function(D,F){var Y=this.__data__,K=Xr(Y,D);return K<0?(++this.size,Y.push([D,F])):Y[K][1]=F,this},pt.prototype.clear=function(){this.size=0,this.__data__={hash:new rt,map:new(er||nt),string:new rt}},pt.prototype.delete=function(D){var F=Kr(this,D).delete(D);return this.size-=F?1:0,F},pt.prototype.get=function(D){return Kr(this,D).get(D)},pt.prototype.has=function(D){return Kr(this,D).has(D)},pt.prototype.set=function(D,F){var Y=Kr(this,D),K=Y.size;return Y.set(D,F),this.size+=Y.size==K?0:1,this},nr.prototype.add=nr.prototype.push=function(D){return this.__data__.set(D,c),this},nr.prototype.has=function(D){return this.__data__.has(D)},Ge.prototype.clear=function(){this.__data__=new nt,this.size=0},Ge.prototype.delete=function(D){var F=this.__data__,Y=F.delete(D);return this.size=F.size,Y},Ge.prototype.get=function(D){return this.__data__.get(D)},Ge.prototype.has=function(D){return this.__data__.has(D)},Ge.prototype.set=function(D,F){var Y=this.__data__;if(Y instanceof nt){var K=Y.__data__;if(!er||K.length<o-1)return K.push([D,F]),this.size=++Y.size,this;Y=this.__data__=new pt(K)}return Y.set(D,F),this.size=Y.size,this};var so=Jr?function(D){return D==null?[]:(D=Object(D),function(F,Y){for(var K=-1,me=F==null?0:F.length,ie=0,be=[];++K<me;){var we=F[K];Y(we,K,F)&&(be[ie++]=we)}return be}(Jr(D),function(F){return Va.call(D,F)}))}:function(){return[]},kt=Nr;function mt(D,F){return!!(F=F??l)&&(typeof D=="number"||M.test(D))&&D>-1&&D%1==0&&D<F}function Ft(D){if(D!=null){try{return We.call(D)}catch{}try{return D+""}catch{}}return""}function Za(D,F){return D===F||D!=D&&F!=F}(Yr&&kt(new Yr(new ArrayBuffer(1)))!=H||er&&kt(new er)!=S||Bn&&kt(Bn.resolve())!="[object Promise]"||Zr&&kt(new Zr)!=V||tr&&kt(new tr)!="[object WeakMap]")&&(kt=function(D){var F=Nr(D),Y=F==p?D.constructor:void 0,K=Y?Ft(Y):"";if(K)switch(K){case Ua:return H;case ro:return S;case It:return"[object Promise]";case za:return V;case no:return"[object WeakMap]"}return F});var io=Wa(function(){return arguments}())?Wa:function(D){return Ar(D)&&Me.call(D,"callee")&&!Va.call(D,"callee")},Qr=Array.isArray,qn=qa||function(){return!1};function jt(D){if(!Ka(D))return!1;var F=Nr(D);return F==g||F==E||F==m||F==N}function Xa(D){return typeof D=="number"&&D>-1&&D%1==0&&D<=l}function Ka(D){var F=typeof D;return D!=null&&(F=="object"||F=="function")}function Ar(D){return D!=null&&typeof D=="object"}var Qa=re?function(D){return function(F){return D(F)}}(re):function(D){return Ar(D)&&Xa(D.length)&&!!C[Nr(D)]};function oo(D){return(F=D)!=null&&Xa(F.length)&&!jt(F)?ao(D):Vn(D);var F}s.exports=function(D,F){return Ga(D,F)}}).call(this,a(23)(r))},function(r,n,a){Object.defineProperty(n,"__esModule",{value:!0});const s=a(18);n.StringPredicate=s.StringPredicate;const o=a(20);n.NumberPredicate=o.NumberPredicate;const c=a(21);n.BooleanPredicate=c.BooleanPredicate;const u=a(0),f=a(22);n.ArrayPredicate=f.ArrayPredicate;const l=a(24);n.ObjectPredicate=l.ObjectPredicate;const h=a(29);n.DatePredicate=h.DatePredicate;const d=a(30);n.ErrorPredicate=d.ErrorPredicate;const m=a(31);n.MapPredicate=m.MapPredicate;const b=a(32);n.WeakMapPredicate=b.WeakMapPredicate;const x=a(33);n.SetPredicate=x.SetPredicate;const y=a(34);n.WeakSetPredicate=y.WeakSetPredicate;const g=a(35);n.AnyPredicate=g.AnyPredicate,n.default=(E,S)=>(Object.defineProperties(E,{string:{get:()=>new s.StringPredicate(S)},number:{get:()=>new o.NumberPredicate(S)},boolean:{get:()=>new c.BooleanPredicate(S)},undefined:{get:()=>new u.Predicate("undefined",S)},null:{get:()=>new u.Predicate("null",S)},nullOrUndefined:{get:()=>new u.Predicate("nullOrUndefined",S)},nan:{get:()=>new u.Predicate("nan",S)},symbol:{get:()=>new u.Predicate("symbol",S)},array:{get:()=>new f.ArrayPredicate(S)},object:{get:()=>new l.ObjectPredicate(S)},date:{get:()=>new h.DatePredicate(S)},error:{get:()=>new d.ErrorPredicate(S)},map:{get:()=>new m.MapPredicate(S)},weakMap:{get:()=>new b.WeakMapPredicate(S)},set:{get:()=>new x.SetPredicate(S)},weakSet:{get:()=>new y.WeakSetPredicate(S)},function:{get:()=>new u.Predicate("Function",S)},buffer:{get:()=>new u.Predicate("Buffer",S)},regExp:{get:()=>new u.Predicate("RegExp",S)},promise:{get:()=>new u.Predicate("Promise",S)},typedArray:{get:()=>new u.Predicate("TypedArray",S)},int8Array:{get:()=>new u.Predicate("Int8Array",S)},uint8Array:{get:()=>new u.Predicate("Uint8Array",S)},uint8ClampedArray:{get:()=>new u.Predicate("Uint8ClampedArray",S)},int16Array:{get:()=>new u.Predicate("Int16Array",S)},uint16Array:{get:()=>new u.Predicate("Uint16Array",S)},int32Array:{get:()=>new u.Predicate("Int32Array",S)},uint32Array:{get:()=>new u.Predicate("Uint32Array",S)},float32Array:{get:()=>new u.Predicate("Float32Array",S)},float64Array:{get:()=>new u.Predicate("Float64Array",S)},arrayBuffer:{get:()=>new u.Predicate("ArrayBuffer",S)},dataView:{get:()=>new u.Predicate("DataView",S)},iterable:{get:()=>new u.Predicate("Iterable",S)},any:{value:(...w)=>new g.AnyPredicate(w,S)}}),E)},function(r,n,a){var s=this&&this.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(n,"__esModule",{value:!0});const o=s(a(4));n.default=(c,u)=>{try{for(const f of c)o.default(f,u);return!0}catch(f){return f.message}}},function(r,n,a){Object.defineProperty(n,"__esModule",{value:!0}),n.ArgumentError=class extends Error{constructor(s,o){super(s),"captureStackTrace"in Error&&Error.captureStackTrace(this,o),this.name="ArgumentError"}}},function(r,n,a){Object.defineProperty(n,"__esModule",{value:!0});const s=a(2);n.default=function o(c,u,f){f[s.testSymbol](c,o,u)}},function(r,n,a){const s=()=>{const o=Error.prepareStackTrace;Error.prepareStackTrace=(u,f)=>f;const c=new Error().stack.slice(1);return Error.prepareStackTrace=o,c};r.exports=s,r.exports.default=s},function(r,n,a){var s=this&&this.__importStar||function(h){if(h&&h.__esModule)return h;var d={};if(h!=null)for(var m in h)Object.hasOwnProperty.call(h,m)&&(d[m]=h[m]);return d.default=h,d},o=this&&this.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(n,"__esModule",{value:!0});const c=s(a(12)),u=o(a(13)),f=o(a(14)),l=/^.*?\((.*?)[,)]/;n.inferLabel=h=>{if(!f.default)return;const d=h[1],m=d.getFileName(),b=d.getLineNumber(),x=d.getColumnNumber();if(!m||b===null||x===null)return;let y=[];try{y=c.readFileSync(m,"utf8").split(`
129
- `)}catch{return}let g=y[b-1];if(!g)return;g=g.slice(x-1);const E=l.exec(g);if(!E||!E[1])return;const S=E[1];return u.default(S)||u.default(S.split(".").pop())?S:void 0}},function(r,n){r.exports=Ke},function(r,n,a){Object.defineProperty(n,"__esModule",{value:!0});const s=/^[a-z$_][a-z$_0-9]*$/i,o=new Set(["undefined","null","true","false","super","this","Infinity","NaN"]);n.default=c=>c&&!o.has(c)&&s.test(c)},function(r,n,a){Object.defineProperty(n,"__esModule",{value:!0}),n.default=!!(typeof process<"u"&&process.versions&&process.versions.node)},function(r,n){r.exports=Ke},function(r,n,a){Object.defineProperty(n,"__esModule",{value:!0});const s=a(0);n.not=o=>{const c=o.addValidator;return o.addValidator=u=>{const f=u.validator,l=u.message;return u.message=(h,d)=>`[NOT] ${l(h,d)}`,u.validator=h=>!f(h),o[s.validatorSymbol].push(u),o.addValidator=c,o},o}},function(r,n,a){var s=this&&this.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(n,"__esModule",{value:!0});const o=s(a(6));n.default=c=>(Object.defineProperties(c,{optional:{get:()=>o.default({},{optional:!0})}}),c)},function(r,n,a){var s=this&&this.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(n,"__esModule",{value:!0});const o=s(a(1)),c=s(a(19)),u=a(0);n.StringPredicate=class extends u.Predicate{constructor(f){super("string",f)}length(f){return this.addValidator({message:(l,h)=>`Expected ${h} to have length \`${f}\`, got \`${l}\``,validator:l=>l.length===f})}minLength(f){return this.addValidator({message:(l,h)=>`Expected ${h} to have a minimum length of \`${f}\`, got \`${l}\``,validator:l=>l.length>=f})}maxLength(f){return this.addValidator({message:(l,h)=>`Expected ${h} to have a maximum length of \`${f}\`, got \`${l}\``,validator:l=>l.length<=f})}matches(f){return this.addValidator({message:(l,h)=>`Expected ${h} to match \`${f}\`, got \`${l}\``,validator:l=>f.test(l)})}startsWith(f){return this.addValidator({message:(l,h)=>`Expected ${h} to start with \`${f}\`, got \`${l}\``,validator:l=>l.startsWith(f)})}endsWith(f){return this.addValidator({message:(l,h)=>`Expected ${h} to end with \`${f}\`, got \`${l}\``,validator:l=>l.endsWith(f)})}includes(f){return this.addValidator({message:(l,h)=>`Expected ${h} to include \`${f}\`, got \`${l}\``,validator:l=>l.includes(f)})}oneOf(f){return this.addValidator({message:(l,h)=>{let d=JSON.stringify(f);if(f.length>10){const m=f.length-10;d=JSON.stringify(f.slice(0,10)).replace(/]$/,`,…+${m} more]`)}return`Expected ${h} to be one of \`${d}\`, got \`${l}\``},validator:l=>f.includes(l)})}get empty(){return this.addValidator({message:(f,l)=>`Expected ${l} to be empty, got \`${f}\``,validator:f=>f===""})}get nonEmpty(){return this.addValidator({message:(f,l)=>`Expected ${l} to not be empty`,validator:f=>f!==""})}equals(f){return this.addValidator({message:(l,h)=>`Expected ${h} to be equal to \`${f}\`, got \`${l}\``,validator:l=>l===f})}get alphanumeric(){return this.addValidator({message:(f,l)=>`Expected ${l} to be alphanumeric, got \`${f}\``,validator:f=>/^[a-z\d]+$/i.test(f)})}get alphabetical(){return this.addValidator({message:(f,l)=>`Expected ${l} to be alphabetical, got \`${f}\``,validator:f=>/^[a-z]+$/gi.test(f)})}get numeric(){return this.addValidator({message:(f,l)=>`Expected ${l} to be numeric, got \`${f}\``,validator:f=>/^(\+|-)?\d+$/i.test(f)})}get date(){return this.addValidator({message:(f,l)=>`Expected ${l} to be a date, got \`${f}\``,validator:c.default})}get lowercase(){return this.addValidator({message:(f,l)=>`Expected ${l} to be lowercase, got \`${f}\``,validator:f=>f.trim()!==""&&f===f.toLowerCase()})}get uppercase(){return this.addValidator({message:(f,l)=>`Expected ${l} to be uppercase, got \`${f}\``,validator:f=>f.trim()!==""&&f===f.toUpperCase()})}get url(){return this.addValidator({message:(f,l)=>`Expected ${l} to be a URL, got \`${f}\``,validator:o.default.urlString})}}},function(r,n,a){r.exports=function(s){return!isNaN(Date.parse(s))}},function(r,n,a){var s=this&&this.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(n,"__esModule",{value:!0});const o=s(a(1)),c=a(0);n.NumberPredicate=class extends c.Predicate{constructor(u){super("number",u)}inRange(u,f){return this.addValidator({message:(l,h)=>`Expected ${h} to be in range [${u}..${f}], got ${l}`,validator:l=>o.default.inRange(l,[u,f])})}greaterThan(u){return this.addValidator({message:(f,l)=>`Expected ${l} to be greater than ${u}, got ${f}`,validator:f=>f>u})}greaterThanOrEqual(u){return this.addValidator({message:(f,l)=>`Expected ${l} to be greater than or equal to ${u}, got ${f}`,validator:f=>f>=u})}lessThan(u){return this.addValidator({message:(f,l)=>`Expected ${l} to be less than ${u}, got ${f}`,validator:f=>f<u})}lessThanOrEqual(u){return this.addValidator({message:(f,l)=>`Expected ${l} to be less than or equal to ${u}, got ${f}`,validator:f=>f<=u})}equal(u){return this.addValidator({message:(f,l)=>`Expected ${l} to be equal to ${u}, got ${f}`,validator:f=>f===u})}oneOf(u){return this.addValidator({message:(f,l)=>{let h=JSON.stringify(u);if(u.length>10){const d=u.length-10;h=JSON.stringify(u.slice(0,10)).replace(/]$/,`,…+${d} more]`)}return`Expected ${l} to be one of \`${h}\`, got ${f}`},validator:f=>u.includes(f)})}get integer(){return this.addValidator({message:(u,f)=>`Expected ${f} to be an integer, got ${u}`,validator:u=>o.default.integer(u)})}get finite(){return this.addValidator({message:(u,f)=>`Expected ${f} to be finite, got ${u}`,validator:u=>!o.default.infinite(u)})}get infinite(){return this.addValidator({message:(u,f)=>`Expected ${f} to be infinite, got ${u}`,validator:u=>o.default.infinite(u)})}get positive(){return this.addValidator({message:(u,f)=>`Expected ${f} to be positive, got ${u}`,validator:u=>u>0})}get negative(){return this.addValidator({message:(u,f)=>`Expected ${f} to be negative, got ${u}`,validator:u=>u<0})}get integerOrInfinite(){return this.addValidator({message:(u,f)=>`Expected ${f} to be an integer or infinite, got ${u}`,validator:u=>o.default.integer(u)||o.default.infinite(u)})}get uint8(){return this.integer.inRange(0,255)}get uint16(){return this.integer.inRange(0,65535)}get uint32(){return this.integer.inRange(0,4294967295)}get int8(){return this.integer.inRange(-128,127)}get int16(){return this.integer.inRange(-32768,32767)}get int32(){return this.integer.inRange(-2147483648,2147483647)}}},function(r,n,a){Object.defineProperty(n,"__esModule",{value:!0});const s=a(0);n.BooleanPredicate=class extends s.Predicate{constructor(o){super("boolean",o)}get true(){return this.addValidator({message:(o,c)=>`Expected ${c} to be true, got ${o}`,validator:o=>o===!0})}get false(){return this.addValidator({message:(o,c)=>`Expected ${c} to be false, got ${o}`,validator:o=>o===!1})}}},function(r,n,a){var s=this&&this.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(n,"__esModule",{value:!0});const o=s(a(5)),c=s(a(4)),u=a(0);n.ArrayPredicate=class extends u.Predicate{constructor(f){super("array",f)}length(f){return this.addValidator({message:(l,h)=>`Expected ${h} to have length \`${f}\`, got \`${l.length}\``,validator:l=>l.length===f})}minLength(f){return this.addValidator({message:(l,h)=>`Expected ${h} to have a minimum length of \`${f}\`, got \`${l.length}\``,validator:l=>l.length>=f})}maxLength(f){return this.addValidator({message:(l,h)=>`Expected ${h} to have a maximum length of \`${f}\`, got \`${l.length}\``,validator:l=>l.length<=f})}startsWith(f){return this.addValidator({message:(l,h)=>`Expected ${h} to start with \`${f}\`, got \`${l[0]}\``,validator:l=>l[0]===f})}endsWith(f){return this.addValidator({message:(l,h)=>`Expected ${h} to end with \`${f}\`, got \`${l[l.length-1]}\``,validator:l=>l[l.length-1]===f})}includes(...f){return this.addValidator({message:(l,h)=>`Expected ${h} to include all elements of \`${JSON.stringify(f)}\`, got \`${JSON.stringify(l)}\``,validator:l=>f.every(h=>l.indexOf(h)!==-1)})}includesAny(...f){return this.addValidator({message:(l,h)=>`Expected ${h} to include any element of \`${JSON.stringify(f)}\`, got \`${JSON.stringify(l)}\``,validator:l=>f.some(h=>l.indexOf(h)!==-1)})}get empty(){return this.addValidator({message:(f,l)=>`Expected ${l} to be empty, got \`${JSON.stringify(f)}\``,validator:f=>f.length===0})}get nonEmpty(){return this.addValidator({message:(f,l)=>`Expected ${l} to not be empty`,validator:f=>f.length>0})}deepEqual(f){return this.addValidator({message:(l,h)=>`Expected ${h} to be deeply equal to \`${JSON.stringify(f)}\`, got \`${JSON.stringify(l)}\``,validator:l=>o.default(l,f)})}ofType(f){let l;return this.addValidator({message:(h,d)=>`(${d}) ${l}`,validator:h=>{try{for(const d of h)c.default(d,f);return!0}catch(d){return l=d.message,!1}}})}}},function(r,n){r.exports=function(a){return a.webpackPolyfill||(a.deprecate=function(){},a.paths=[],a.children||(a.children=[]),Object.defineProperty(a,"loaded",{enumerable:!0,get:function(){return a.l}}),Object.defineProperty(a,"id",{enumerable:!0,get:function(){return a.i}}),a.webpackPolyfill=1),a}},function(r,n,a){var s=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(n,"__esModule",{value:!0});const o=s(a(1)),c=s(a(25)),u=s(a(5)),f=a(0),l=s(a(3)),h=s(a(7)),d=s(a(27)),m=a(28);n.ObjectPredicate=class extends f.Predicate{constructor(b){super("object",b)}get plain(){return this.addValidator({message:(b,x)=>`Expected ${x} to be a plain object`,validator:b=>o.default.plainObject(b)})}get empty(){return this.addValidator({message:(b,x)=>`Expected ${x} to be empty, got \`${JSON.stringify(b)}\``,validator:b=>Object.keys(b).length===0})}get nonEmpty(){return this.addValidator({message:(b,x)=>`Expected ${x} to not be empty`,validator:b=>Object.keys(b).length>0})}valuesOfType(b){return this.addValidator({message:(x,y,g)=>`(${y}) ${g}`,validator:x=>{const y=Object.keys(x).map(g=>x[g]);return h.default(y,b)}})}deepValuesOfType(b){return this.addValidator({message:(x,y,g)=>`(${y}) ${g}`,validator:x=>d.default(x,b)})}deepEqual(b){return this.addValidator({message:(x,y)=>`Expected ${y} to be deeply equal to \`${JSON.stringify(b)}\`, got \`${JSON.stringify(x)}\``,validator:x=>u.default(x,b)})}instanceOf(b){return this.addValidator({message:(x,y)=>{let g=x.constructor.name;return g&&g!=="Object"||(g=JSON.stringify(x)),`Expected ${y} \`${g}\` to be of type \`${b.name}\``},validator:x=>x instanceof b})}hasKeys(...b){return this.addValidator({message:(x,y,g)=>`Expected ${y} to have keys \`${JSON.stringify(g)}\``,validator:x=>l.default({has:y=>c.default.has(x,y)},b)})}hasAnyKeys(...b){return this.addValidator({message:(x,y)=>`Expected ${y} to have any key of \`${JSON.stringify(b)}\``,validator:x=>b.some(y=>c.default.has(x,y))})}partialShape(b){return this.addValidator({message:(x,y,g)=>`${g.replace("Expected","Expected property")} in ${y}`,validator:x=>m.partial(x,b)})}exactShape(b){return this.addValidator({message:(x,y,g)=>`${g.replace("Expected","Expected property")} in ${y}`,validator:x=>m.exact(x,b)})}}},function(r,n,a){const s=a(26);function o(c){const u=c.split("."),f=[];for(let l=0;l<u.length;l++){let h=u[l];for(;h[h.length-1]==="\\"&&u[l+1]!==void 0;)h=h.slice(0,-1)+".",h+=u[++l];f.push(h)}return f}r.exports={get(c,u,f){if(!s(c)||typeof u!="string")return f===void 0?c:f;const l=o(u);for(let h=0;h<l.length;h++){if(!Object.prototype.propertyIsEnumerable.call(c,l[h]))return f;if((c=c[l[h]])==null){if(h!==l.length-1)return f;break}}return c},set(c,u,f){if(!s(c)||typeof u!="string")return c;const l=c,h=o(u);for(let d=0;d<h.length;d++){const m=h[d];s(c[m])||(c[m]={}),d===h.length-1&&(c[m]=f),c=c[m]}return l},delete(c,u){if(!s(c)||typeof u!="string")return;const f=o(u);for(let l=0;l<f.length;l++){const h=f[l];if(l===f.length-1)return void delete c[h];if(c=c[h],!s(c))return}},has(c,u){if(!s(c)||typeof u!="string")return!1;const f=o(u);for(let l=0;l<f.length;l++){if(!s(c)||!(f[l]in c))return!1;c=c[f[l]]}return!0}}},function(r,n,a){r.exports=function(s){var o=typeof s;return s!==null&&(o==="object"||o==="function")}},function(r,n,a){var s=this&&this.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(n,"__esModule",{value:!0});const o=s(a(1)),c=s(a(4)),u=(f,l)=>o.default.plainObject(f)?Object.keys(f).every(h=>u(f[h],l)):(c.default(f,l),!0);n.default=(f,l)=>{try{return u(f,l)}catch(h){return h.message}}},function(r,n,a){var s=this&&this.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(n,"__esModule",{value:!0});const o=s(a(1)),c=s(a(9)),u=a(2);n.partial=function f(l,h,d){try{for(const m of Object.keys(h)){const b=d?`${d}.${m}`:m;if(u.isPredicate(h[m]))c.default(l[m],b,h[m]);else if(o.default.plainObject(h[m])){const x=f(l[m],h[m],b);if(x!==!0)return x}}return!0}catch(m){return m.message}},n.exact=function f(l,h,d){try{const m=new Set(Object.keys(l));for(const b of Object.keys(h)){m.delete(b);const x=d?`${d}.${b}`:b;if(u.isPredicate(h[b]))c.default(l[b],x,h[b]);else if(o.default.plainObject(h[b])){if(!Object.prototype.hasOwnProperty.call(l,b))return`Expected \`${x}\` to exist`;const y=f(l[b],h[b],x);if(y!==!0)return y}}if(m.size>0){const b=Array.from(m.keys())[0];return`Did not expect property \`${d?`${d}.${b}`:b}\` to exist, got \`${l[b]}\``}return!0}catch(m){return m.message}}},function(r,n,a){Object.defineProperty(n,"__esModule",{value:!0});const s=a(0);n.DatePredicate=class extends s.Predicate{constructor(o){super("date",o)}before(o){return this.addValidator({message:(c,u)=>`Expected ${u} ${c.toISOString()} to be before ${o.toISOString()}`,validator:c=>c.getTime()<o.getTime()})}after(o){return this.addValidator({message:(c,u)=>`Expected ${u} ${c.toISOString()} to be after ${o.toISOString()}`,validator:c=>c.getTime()>o.getTime()})}}},function(r,n,a){Object.defineProperty(n,"__esModule",{value:!0});const s=a(0);n.ErrorPredicate=class extends s.Predicate{constructor(o){super("error",o)}name(o){return this.addValidator({message:(c,u)=>`Expected ${u} to have name \`${o}\`, got \`${c.name}\``,validator:c=>c.name===o})}message(o){return this.addValidator({message:(c,u)=>`Expected ${u} message to be \`${o}\`, got \`${c.message}\``,validator:c=>c.message===o})}messageIncludes(o){return this.addValidator({message:(c,u)=>`Expected ${u} message to include \`${o}\`, got \`${c.message}\``,validator:c=>c.message.includes(o)})}hasKeys(...o){return this.addValidator({message:(c,u)=>`Expected ${u} message to have keys \`${o.join("`, `")}\``,validator:c=>o.every(u=>c.hasOwnProperty(u))})}instanceOf(o){return this.addValidator({message:(c,u)=>`Expected ${u} \`${c.name}\` to be of type \`${o.name}\``,validator:c=>c instanceof o})}get typeError(){return this.instanceOf(TypeError)}get evalError(){return this.instanceOf(EvalError)}get rangeError(){return this.instanceOf(RangeError)}get referenceError(){return this.instanceOf(ReferenceError)}get syntaxError(){return this.instanceOf(SyntaxError)}get uriError(){return this.instanceOf(URIError)}}},function(r,n,a){var s=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(n,"__esModule",{value:!0});const o=s(a(5)),c=a(0),u=s(a(3)),f=s(a(7));n.MapPredicate=class extends c.Predicate{constructor(l){super("Map",l)}size(l){return this.addValidator({message:(h,d)=>`Expected ${d} to have size \`${l}\`, got \`${h.size}\``,validator:h=>h.size===l})}minSize(l){return this.addValidator({message:(h,d)=>`Expected ${d} to have a minimum size of \`${l}\`, got \`${h.size}\``,validator:h=>h.size>=l})}maxSize(l){return this.addValidator({message:(h,d)=>`Expected ${d} to have a maximum size of \`${l}\`, got \`${h.size}\``,validator:h=>h.size<=l})}hasKeys(...l){return this.addValidator({message:(h,d,m)=>`Expected ${d} to have keys \`${JSON.stringify(m)}\``,validator:h=>u.default(h,l)})}hasAnyKeys(...l){return this.addValidator({message:(h,d)=>`Expected ${d} to have any key of \`${JSON.stringify(l)}\``,validator:h=>l.some(d=>h.has(d))})}hasValues(...l){return this.addValidator({message:(h,d,m)=>`Expected ${d} to have values \`${JSON.stringify(m)}\``,validator:h=>u.default(new Set(h.values()),l)})}hasAnyValues(...l){return this.addValidator({message:(h,d)=>`Expected ${d} to have any value of \`${JSON.stringify(l)}\``,validator:h=>{const d=new Set(h.values());return l.some(m=>d.has(m))}})}keysOfType(l){return this.addValidator({message:(h,d,m)=>`(${d}) ${m}`,validator:h=>f.default(h.keys(),l)})}valuesOfType(l){return this.addValidator({message:(h,d,m)=>`(${d}) ${m}`,validator:h=>f.default(h.values(),l)})}get empty(){return this.addValidator({message:(l,h)=>`Expected ${h} to be empty, got \`${JSON.stringify(Array.from(l))}\``,validator:l=>l.size===0})}get nonEmpty(){return this.addValidator({message:(l,h)=>`Expected ${h} to not be empty`,validator:l=>l.size>0})}deepEqual(l){return this.addValidator({message:(h,d)=>`Expected ${d} to be deeply equal to \`${JSON.stringify(Array.from(l))}\`, got \`${JSON.stringify(Array.from(h))}\``,validator:h=>o.default(h,l)})}}},function(r,n,a){var s=this&&this.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(n,"__esModule",{value:!0});const o=a(0),c=s(a(3));n.WeakMapPredicate=class extends o.Predicate{constructor(u){super("WeakMap",u)}hasKeys(...u){return this.addValidator({message:(f,l,h)=>`Expected ${l} to have keys \`${JSON.stringify(h)}\``,validator:f=>c.default(f,u)})}hasAnyKeys(...u){return this.addValidator({message:(f,l)=>`Expected ${l} to have any key of \`${JSON.stringify(u)}\``,validator:f=>u.some(l=>f.has(l))})}}},function(r,n,a){var s=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(n,"__esModule",{value:!0});const o=s(a(5)),c=a(0),u=s(a(3)),f=s(a(7));n.SetPredicate=class extends c.Predicate{constructor(l){super("Set",l)}size(l){return this.addValidator({message:(h,d)=>`Expected ${d} to have size \`${l}\`, got \`${h.size}\``,validator:h=>h.size===l})}minSize(l){return this.addValidator({message:(h,d)=>`Expected ${d} to have a minimum size of \`${l}\`, got \`${h.size}\``,validator:h=>h.size>=l})}maxSize(l){return this.addValidator({message:(h,d)=>`Expected ${d} to have a maximum size of \`${l}\`, got \`${h.size}\``,validator:h=>h.size<=l})}has(...l){return this.addValidator({message:(h,d,m)=>`Expected ${d} to have items \`${JSON.stringify(m)}\``,validator:h=>u.default(h,l)})}hasAny(...l){return this.addValidator({message:(h,d)=>`Expected ${d} to have any item of \`${JSON.stringify(l)}\``,validator:h=>l.some(d=>h.has(d))})}ofType(l){return this.addValidator({message:(h,d,m)=>`(${d}) ${m}`,validator:h=>f.default(h,l)})}get empty(){return this.addValidator({message:(l,h)=>`Expected ${h} to be empty, got \`${JSON.stringify(Array.from(l))}\``,validator:l=>l.size===0})}get nonEmpty(){return this.addValidator({message:(l,h)=>`Expected ${h} to not be empty`,validator:l=>l.size>0})}deepEqual(l){return this.addValidator({message:(h,d)=>`Expected ${d} to be deeply equal to \`${JSON.stringify(Array.from(l))}\`, got \`${JSON.stringify(Array.from(h))}\``,validator:h=>o.default(h,l)})}}},function(r,n,a){var s=this&&this.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(n,"__esModule",{value:!0});const o=a(0),c=s(a(3));n.WeakSetPredicate=class extends o.Predicate{constructor(u){super("WeakSet",u)}has(...u){return this.addValidator({message:(f,l,h)=>`Expected ${l} to have items \`${JSON.stringify(h)}\``,validator:f=>c.default(f,u)})}hasAny(...u){return this.addValidator({message:(f,l)=>`Expected ${l} to have any item of \`${JSON.stringify(u)}\``,validator:f=>u.some(l=>f.has(l))})}}},function(r,n,a){Object.defineProperty(n,"__esModule",{value:!0});const s=a(8),o=a(2);n.AnyPredicate=class{constructor(c,u={}){this.predicates=c,this.options=u}[o.testSymbol](c,u,f){const l=["Any predicate failed with the following errors:"];for(const h of this.predicates)try{return void u(c,f,h)}catch(d){if(c===void 0&&this.options.optional===!0)return;l.push(`- ${d.message}`)}throw new s.ArgumentError(l.join(`
130
- `),u)}}}]);const e=t.exports;t.exports=e.default,Object.assign(t.exports,e)})(Jd);var Yd=Jd.exports,Da={},Au={};Object.defineProperty(Au,"__esModule",{value:!0});class En{constructor(e){this.pretty=!1,this.pretty=e}format(e,r){const n=Object.assign({},r,e);return this.pretty?JSON.stringify(n,void 0,2)+`
131
- `:JSON.stringify(n)}getName(){return this.pretty?En.FORMAT_NAME_PRETTY:En.FORMAT_NAME}}En.FORMAT_NAME="json";En.FORMAT_NAME_PRETTY="json_pretty";Au.JsonLogFormat=En;var ku={},Ta={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.EMPTY_METADATA={};function r(n){let a=n.service?`${n.service}.`:n.project?`${n.project}.`:"";return a+=n.module?`${n.module}.`:"",a+=n.library?`[${n.library}].`:"",a+=n.tag||"",a||(a="universe-log-empty-id"),a}e.getBestIdentifier=r}(t.LogMetadata||(t.LogMetadata={}))})(Ta);var Di={};Object.defineProperty(Di,"__esModule",{value:!0});class nb{static getTimestamp(){return Date.now()}static getUTCISOTime(){return new Date().toISOString()}}Di.TimeUtils=nb;Object.defineProperty(ku,"__esModule",{value:!0});const ab=Ta,sb=Di;class Ti{format(e,r){const n=e.time_iso||new Date(e.timestamp).toISOString()||sb.TimeUtils.getUTCISOTime();return`${ab.LogMetadata.getBestIdentifier(r)} | ${n} [${e.level}]: ${e.message}`+this.includeStackIfPresent(e)}getName(){return Ti.FORMAT_NAME}includeStackIfPresent(e){return e.error&&e.error.stack?`
132
- ${e.error.stack}`:""}}Ti.FORMAT_NAME="oneline";ku.OnelineLogFormat=Ti;(function(t){Object.defineProperty(t,"__esModule",{value:!0});const e=Mn,r=Au,n=ku;(function(a){a.FORMATS={json:new r.JsonLogFormat(!1),json_pretty:new r.JsonLogFormat(!0),oneline:new n.OnelineLogFormat},a.KEYS=Object.freeze({json:"json",json_pretty:"json_pretty",oneline:"oneline"}),a.DEFAULT_FORMAT=a.FORMATS.oneline;function s(o){if(typeof a.FORMATS[o]>"u"){const c=Object.keys(a.FORMATS).join(",");throw new e.UniverseLogError(`There is no such log format: '${o}'. Available formats: [ ${c} ]`)}return a.FORMATS[o]}a.valueOf=s})(t.LogFormats||(t.LogFormats={}))})(Da);var ju={};Object.defineProperty(ju,"__esModule",{value:!0});class ib{static log(e){console.error(`UniverseLog.FallbackLog: ${e}`)}}ju.FallbackLog=ib;var Ci={};Object.defineProperty(Ci,"__esModule",{value:!0});const qs=Mn,ob=new Function("try {return this===window;}catch(e){ return false;}"),ub=new Function("try {return this===global;}catch(e){return false;}"),lb=new Function("try {return this;}catch(e){return undefined}");function cb(t){const e=lb();if(!e)throw new qs.UniverseLogError("PortableEnv: environment is browser, but could not get window object");return e[t]}function db(t){if(!process)throw new qs.UniverseLogError("PortableEnv: environment is node, but process object does not exist");if(!process.env)throw new qs.UniverseLogError("PortableEnv: environment is node, but process.env object does not exist");if(process.env[t])return process.env[t]}function fb(t){if(ob())return cb(t);if(ub())return db(t);throw new qs.UniverseLogError("PortableEnv: unknown environment (not browser, not node)")}Ci.PortableEnv=fb;var Oi={};Object.defineProperty(Oi,"__esModule",{value:!0});let In=class{};In.LEAST_LEVEL_ENV="LOG_LEVEL";In.LOG_FORMAT_ENV="LOG_FORMAT";In.LOG_METADATA_ENV="LOG_METADATA";In.REEVALUATE_CONFIG_AFTER_MS=150;In.DEFAULT_LOG_FN=t=>console.error(t);Oi.StaticConfig=In;var hb=J&&J.__rest||function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(t);a<n.length;a++)e.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(t,n[a])&&(r[n[a]]=t[n[a]]);return r};Object.defineProperty(Nu,"__esModule",{value:!0});const Or=Yd,pb=Da,mb=ju,ds=Ln,Wl=Ta,bo=Ci,ea=Oi;class gb{constructor(e){this.levelEvaluationEnvNames=[],this.level=ds.LogLevel.DEFAULT_LEVEL,this.metadata=Wl.LogMetadata.EMPTY_METADATA,this.nextReevaluateTimestampMs=0,this.levelEvaluationEnvNames=e.levelEvaluationEnvNames,Or.default(this.levelEvaluationEnvNames,"levelEvaluationEnvNames",Or.default.array.ofType(Or.default.string)),this.fallbackLog=e.fallbackLog,Or.default(this.fallbackLog,"fallbackLog",Or.default.function),this.defaultFormat=e.defaultFormat,Or.default(this.defaultFormat,"defaultFormat",Or.default.object),this.format=this.defaultFormat,this.evaluateIfRequired()}setLevelEvaluationEnvNames(e){this.levelEvaluationEnvNames=e,this.evaluateIfRequired()}getLevel(){return this.level}getFormat(){return this.format}getMetadata(){return this.metadata}evaluateIfRequired(){if(!(Date.now()<this.nextReevaluateTimestampMs))try{this.nextReevaluateTimestampMs=Date.now()+ea.StaticConfig.REEVALUATE_CONFIG_AFTER_MS,this.evaluate()}catch(e){this.fallbackLog(`Could not evaluate live log config: ${e}: ${e.stack}`)}}evaluate(){this.format=this.evaluateFormat(),this.level=this.evaluateLogLevel(),this.metadata=this.evaluateMetadata()}evaluateFormat(){const e=bo.PortableEnv(ea.StaticConfig.LOG_FORMAT_ENV);return e?pb.LogFormats.valueOf(e):this.defaultFormat}evaluateLogLevel(){const e=this.chooseMostVerboseLevel(this.getEnvValues(this.levelEvaluationEnvNames));if(e)return e;const r=this.chooseMostVerboseLevel(this.getEnvValues([ea.StaticConfig.LEAST_LEVEL_ENV]));return r||ds.LogLevel.DEFAULT_LEVEL}getEnvValues(e){return e.map(n=>bo.PortableEnv(n)).filter(n=>!!n).map(n=>n||"unreachable")}chooseMostVerboseLevel(e){const r=e.map(a=>ds.LogLevel.valueOf(a));return r.length===0?void 0:r.reduce((a,s)=>ds.LogLevel.moreVerbose(a,s))}evaluateMetadata(){try{const e=bo.PortableEnv(ea.StaticConfig.LOG_METADATA_ENV);if(e){const r=JSON.parse(e);return this.removeTagFromMetadata(r)}}catch(e){mb.FallbackLog.log(`Could not parse value of ${ea.StaticConfig.LOG_METADATA_ENV} env: ${e}`)}return Wl.LogMetadata.EMPTY_METADATA}removeTagFromMetadata(e){const{tag:r}=e;return hb(e,["tag"])}}Nu.LiveLogConfig=gb;var Su={};Object.defineProperty(Su,"__esModule",{value:!0});const bb=mr,xb=Ln,Gl=Di;class yt{static parse(e,r){let n=yt.basicLogMsg(e);for(const a of r)n=Object.assign({},n,yt.parseElem(a,n));return n}static basicLogMsg(e){return{time_iso:Gl.TimeUtils.getUTCISOTime(),timestamp:Gl.TimeUtils.getTimestamp(),level:e,level_value:xb.LogLevel.LEVELS_VALUES[e]}}static parseElem(e,r){return typeof e=="string"?yt.parseString(e,r):e instanceof Error?yt.parseError(e,r):typeof e=="object"?yt.parseObject(e,r):yt.parseOther(e,r)}static parseString(e,r){return{message:(r.message?r.message+"; ":"")+e}}static parseError(e,r){const n={};return n.message=(r.message?r.message+"; ":"")+(e+"").trim(),r.error?(n.other_errors=[...r.other_errors||[]],n.other_errors.push(yt.errorToObj(e))):n.error=yt.errorToObj(e),n}static errorToObj(e){return e instanceof bb.default?Object.assign({name:e.name,message:e.message,stack:e.stack},e.cause?{cause:yt.errorToObj(e.cause)}:{}):{name:e.name,message:e.message,stack:e.stack}}static parseObject(e,r){return Object.assign({},e)}static parseOther(e,r){return{others:[...r.others||[],e]}}}Su.ParseLogMsg=yt;var Du={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});const e=Yd,r=Da;(function(n){function a(s){e.default(s.levelEnvs,"Properties.levelEnvs",e.default.any(e.default.undefined,e.default.array.ofType(e.default.string))),e.default(s.metadata,"Properties.metadata",e.default.optional.object),e.default(s.logFn,"Properties.logFn",e.default.any(e.default.undefined,e.default.function)),e.default(s.defaultFormat,"Properties.defaultFormat",e.default.optional.string.oneOf(Object.keys(r.LogFormats.KEYS)))}n.validate=a})(t.Properties||(t.Properties={}))})(Du);Object.defineProperty(Si,"__esModule",{value:!0});const yb=Nu,xo=Ln,vb=Ta,wb=Oi,Jl=Da,_b=Su,Eb=Du;class Tu{constructor(e){if(this.instanceMetadata=vb.LogMetadata.EMPTY_METADATA,"clone"in e){this.instanceMetadata=Object.assign({},e.clone.instanceMetadata,e.newMetadata),this.liveConfig=e.clone.liveConfig,this.logFn=e.clone.logFn;return}Eb.Properties.validate(e),e.metadata&&(this.instanceMetadata=e.metadata),e.logFn?this.logFn=e.logFn:this.logFn=wb.StaticConfig.DEFAULT_LOG_FN;const r=e.defaultFormat?Jl.LogFormats.valueOf(e.defaultFormat):Jl.LogFormats.DEFAULT_FORMAT;this.liveConfig=new yb.LiveLogConfig({levelEvaluationEnvNames:e.levelEnvs||[],fallbackLog:this.logFn,defaultFormat:r})}cloneWithMetadata(e){return new Tu({clone:this,newMetadata:e})}getLevel(){return this.liveConfig.getLevel()}getFormatName(){return this.liveConfig.getFormat().getName()}getMetadata(){return Object.assign({},this.instanceMetadata,this.liveConfig.getMetadata())}doEfficientLog(e,r){this.reevaluateConfigIfRequired();const n=xo.LogLevel.LEVELS_VALUES[this.getLevel()];xo.LogLevel.LEVELS_VALUES[e]<=n&&this.doLog(e,r())}doLog(e,...r){if(this.reevaluateConfigIfRequired(),r.length!==0&&(r.length===1&&Array.isArray(r[0])&&(r=r[0]),xo.LogLevel.isLessOrEquallyVerbose({level:e,threshold:this.getLevel()}))){const n=_b.ParseLogMsg.parse(e,r),a=this.liveConfig.getFormat().format(n,this.getMetadata());this.rawWriteToLog(a)}}rawWriteToLog(e){this.logFn(e)}reevaluateConfigIfRequired(){this.liveConfig.evaluateIfRequired()}}Si.LogEngine=Tu;Object.defineProperty(ji,"__esModule",{value:!0});const Ve=Ln,Yl=Si;class Nb{constructor(e){e instanceof Yl.LogEngine?this.logEngine=e:this.logEngine=new Yl.LogEngine(e)}getLevel(){return this.logEngine.getLevel()}getFormatName(){return this.logEngine.getFormatName()}getMetadata(){return this.logEngine.getMetadata()}isDebug(){return Ve.LogLevel.LEVELS_VALUES[this.getLevel()]>=Ve.LogLevel.LEVELS_VALUES.debug}error(...e){this.doLog(Ve.LogLevel.error,e)}errorGen(e){this.doEfficientLog(Ve.LogLevel.error,e)}warn(...e){this.doLog(Ve.LogLevel.warn,e)}warnGen(e){this.doEfficientLog(Ve.LogLevel.warn,e)}info(...e){this.doLog(Ve.LogLevel.info,e)}infoGen(e){this.doEfficientLog(Ve.LogLevel.info,e)}http(...e){this.doLog(Ve.LogLevel.http,e)}httpGen(e){this.doEfficientLog(Ve.LogLevel.http,e)}verbose(...e){this.doLog(Ve.LogLevel.verbose,e)}verboseGen(e){this.doEfficientLog(Ve.LogLevel.verbose,e)}debug(...e){this.doLog(Ve.LogLevel.debug,e)}debugGen(e){this.doEfficientLog(Ve.LogLevel.debug,e)}silly(...e){this.doLog(Ve.LogLevel.silly,e)}sillyGen(e){this.doEfficientLog(Ve.LogLevel.silly,e)}doEfficientLog(e,r){this.logEngine.doEfficientLog(e,r)}doLog(e,...r){this.logEngine.doLog(e,...r)}getEngine(){return this.logEngine}}ji.AbstractUniverseLog=Nb;var Cu={};Object.defineProperty(Cu,"__esModule",{value:!0});const Ab=ji;class Ou extends Ab.AbstractUniverseLog{constructor(e){super(e)}tag(e){return new Ou(super.getEngine().cloneWithMetadata({tag:e}))}}Cu.BasicTaggedUniverseLog=Ou;Object.defineProperty(Et,"__esModule",{value:!0});var kb=ji;Et.AbstractUniverseLog=kb.AbstractUniverseLog;var jb=Si;Et.LogEngine=jb.LogEngine;var Sb=Du;Et.UniverseLogProperties=Sb.Properties;var Db=Cu;Et.BasicTaggedUniverseLog=Db.BasicTaggedUniverseLog;var Tb=Ta;Et.LogMetadata=Tb.LogMetadata;var Cb=Ln;Et.LogLevel=Cb.LogLevel;var Ob=Ci;Et.PortableEnv=Ob.PortableEnv;var $b=Mn;Et.UniverseLogError=$b.UniverseLogError;var Pb=Da;Et.LogFormats=Pb.LogFormats;Object.defineProperty(ht,"__esModule",{value:!0});ht.Log=void 0;const Lb=Et;class pa extends Lb.AbstractUniverseLog{static log(){return pa.INSTANCE}constructor(){super({levelEnvs:["HIVE_CONTENT_RENDERER_LOG_LEVEL","ENGRAVE_LOG_LEVEL"],metadata:{library:"@hiveio/content-renderer"}})}}ht.Log=pa;pa.INSTANCE=new pa;var $i={},Pi={};Object.defineProperty(Pi,"__esModule",{value:!0});Pi.Phishing=void 0;const Mb=["steewit.com","śteemit.com","ŝteemit.com","şteemit.com","šteemit.com","sţeemit.com","sťeemit.com","șteemit.com","sleemit.com","aba.ae","autobidbot.cf","autobidbot.ga","autobidbot.gq","autobotsteem.cf","autobotsteem.ga","autobotsteem.gq","autobotsteem.ml","autosteem.info","autosteembot.cf","autosteembot.ga","autosteembot.gq","autosteembot.ml","autosteemit.wapka.mobi","boostbot.ga","boostbot.gq","boostwhaleup.cf","cutt.us","dereferer.me","eb2a.com","lordlinkers.tk","nullrefer.com","steeemit.ml","steeemitt.aba.ae","steemart.ga","steemautobot.bid","steemautobot.cf","steemautobot.trade","steemers.aba.ae","steemiit.cf","steemiit.ga","steemij.tk","steemik.ga","steemik.tk","steemil.com","steemil.ml","steemir.tk","steemitou.co.nf","steemitservices.ga","steemitservices.gq","steemiz.tk","steemnow.cf","steemnow.ga","steemnow.gq","steemnow.ml","steempostupper.win","steemrewards.ml","steemrobot.ga","steemrobot.ml","steemupgot.cf","steemupgot.ga","steemupgot.gq","steemupper.cf","steemupper.ga","steemupper.gq","steemupper.ml","steenit.cf","stemit.com","stssmater.aba.ae","uppervotes.ga","uppervotes.gq","upperwhaleplus.cf","upperwhaleplus.ga","upperwhaleplus.gq","upvoteme.cf","upvoteme.ga","upvoteme.gq","upvoteme.ml","url.rw","us.aba.ae","whaleboostup.ga","whaleboostup.ml"];class Zd{}Pi.Phishing=Zd;Zd.looksPhishy=t=>{for(const e of Mb)if(t.toLocaleLowerCase().indexOf(e)>-1)return!0;return!1};var Ib=J&&J.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty($i,"__esModule",{value:!0});$i.LinkSanitizer=void 0;const fs=Ib(Dn),yo=ht,Fb=Pi;class $u{constructor(e){this.validate(e),this.options=e,this.baseUrl=new URL(this.options.baseUrl),this.topLevelsBaseDomain=$u.getTopLevelBaseDomainFromBaseUrl(this.baseUrl)}sanitizeLink(e,r){return e=this.prependUnknownProtocolLink(e),yo.Log.log().debug("LinkSanitizer#sanitizeLink",{url:e,urlTitle:r}),Fb.Phishing.looksPhishy(e)?(yo.Log.log().debug("LinkSanitizer#sanitizeLink","phishing link detected","phishing list",e,{url:e,urlTitle:r}),!1):this.isPseudoLocalUrl(e,r)?(yo.Log.log().debug("LinkSanitizer#sanitizeLink","phishing link detected","pseudo local url",e,{url:e,urlTitle:r}),!1):e}static getTopLevelBaseDomainFromBaseUrl(e){const n=/([^\s/$.?#]+\.[^\s/$.?#]+)$/g.exec(e.hostname);if(n&&n[0])return n[0];throw new Error(`LinkSanitizer: could not determine top level base domain from baseUrl hostname: ${e.hostname}`)}prependUnknownProtocolLink(e){return/^((#)|(\/(?!\/))|(((hive|https?):)?\/\/))/.test(e)||(e="https://"+e),e}isPseudoLocalUrl(e,r){if(e.indexOf("#")===0)return!1;e=e.toLowerCase(),r=r.toLowerCase();try{const n=r.indexOf(this.topLevelsBaseDomain)!==-1,a=e.indexOf(this.topLevelsBaseDomain)!==-1;if(n&&!a)return!0}catch(n){if(n instanceof TypeError)return!1;throw n}return!1}validate(e){(0,fs.default)(e,"LinkSanitizerOptions",fs.default.object),(0,fs.default)(e.baseUrl,"LinkSanitizerOptions.baseUrl",fs.default.string.nonEmpty)}}$i.LinkSanitizer=$u;var Fn={},Rb=J&&J.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Fn,"__esModule",{value:!0});Fn.Localization=void 0;const Je=Rb(Dn);class Xd{static validate(e){(0,Je.default)(e,"LocalizationOptions",Je.default.object),(0,Je.default)(e.phishingWarning,"LocalizationOptions.phishingWarning",Je.default.string.nonEmpty),(0,Je.default)(e.externalLink,"LocalizationOptions.externalLink",Je.default.string.nonEmpty),(0,Je.default)(e.noImage,"LocalizationOptions.noImage",Je.default.string.nonEmpty),(0,Je.default)(e.accountNameWrongLength,"LocalizationOptions.accountNameWrongLength",Je.default.string.nonEmpty),(0,Je.default)(e.accountNameBadActor,"LocalizationOptions.accountNameBadActor",Je.default.string.nonEmpty),(0,Je.default)(e.accountNameWrongSegment,"LocalizationOptions.accountNameWrongSegment",Je.default.string.nonEmpty)}}Fn.Localization=Xd;Xd.DEFAULT={phishingWarning:"Link expanded to plain text; beware of a potential phishing attempt",externalLink:"This link will take you away from example.com",noImage:"Images not allowed",accountNameWrongLength:"Account name should be between 3 and 16 characters long",accountNameBadActor:"This account is on a bad actor list",accountNameWrongSegment:"This account name contains a bad segment"};var Li={},Pt={};Object.defineProperty(Pt,"__esModule",{value:!0});Pt.AbstractEmbedder=void 0;class Bb{static getEmbedMarker(e,r){return`~~~ embed:${e} ${r} ~~~`}static insertAllEmbeds(e,r,n){const a=[];for(let s of r.split("~~~ embed:")){const o=s.match(/^([A-Za-z0-9?/=_-]+) ([^ ]*) ~~~/);if(o&&o.length>=3){const c=o[1],u=o[2];for(const f of e)if(f.type==u){a.push(f.processEmbed(c,n));break}if(s=s.substring(`${c} ${u} ~~~`.length),s==="")continue}a.push(s)}return a.join("")}}Pt.AbstractEmbedder=Bb;var Mi={};Object.defineProperty(Mi,"__esModule",{value:!0});Mi.SpotifyEmbedder=void 0;const Vb=ht,qb=Pt;class ma extends qb.AbstractEmbedder{constructor(){super(...arguments),this.type="spotify"}static extractMetadata(e){if(!e)return;const r=e.match(ma.regex.main);return!r||r.length<2?void 0:{id:`${r[1]==="show"||r[1]==="episode"?"embed-podcast":"embed"}/${r[1]}/${r[2]}`,url:r[0],canonical:`https://open.spotify.com/${r[1]}/${r[2]}`}}getEmbedMetadata(e){try{const r=ma.extractMetadata(e.data);return r?{id:r.id,url:r.url,image:r.canonical}:void 0}catch(r){Vb.Log.log().error(r)}}processEmbed(e,r){return`<div class="videoWrapper"><iframe src="${`https://open.spotify.com/${e}`}" width="${r.width}" height="${r.height}" frameBorder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen ></iframe></div>`}}Mi.SpotifyEmbedder=ma;ma.regex={main:/https?:\/\/open.spotify.com\/(playlist|show|episode|album|track|artist)\/(.*)/i,sanitize:/^https:\/\/open\.spotify\.com\/(embed|embed-podcast)\/(playlist|show|episode|album|track|artist)\/(.*)/i};var Ii={};Object.defineProperty(Ii,"__esModule",{value:!0});Ii.ThreeSpeakEmbedder=void 0;const Ub=ht,zb=Pt;class Fi extends zb.AbstractEmbedder{constructor(){super(...arguments),this.type="3speak"}getEmbedMetadata(e){const r=typeof e=="string"?e:e.data;try{const n=r.match(Fi.linkRegex);if(n&&n[1])return{id:n[1],url:r}}catch(n){Ub.Log.log().error(n)}}processEmbed(e,r){const n=`https://3speak.tv/embed?v=${e}`;return`<div class="threeSpeakWrapper"><iframe width="${r.width}" height="${r.height}" src="${n}" frameborder="0" allowfullscreen></iframe></div>`}}Ii.ThreeSpeakEmbedder=Fi;Fi.linkRegex=/^(?:https?:\/\/)?(?:(?:3speak\.(?:tv|online|co)\/watch\?v=)|(?:3speak\.tv\/embed\?v=))([a-zA-Z0-9_.-]+\/[a-zA-Z0-9_-]+)(?:&.*)?$/;var Ri={},Pu={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.imageFile=t.image=t.remote=t.local=t.any=void 0;const e='[^\\s"<>\\]\\[\\(\\)]',r=e.replace(/\]$/,".,']"),n="(?:(?:\\.(?:tiff?|jpe?g|gif|png|svg|ico)|ipfs/[a-z\\d]{40,}))",a="(?:[-a-zA-Z0-9\\._]*[-a-zA-Z0-9])",s="(?:"+e+"*"+r+")?",o=({domain:d=a,path:m=""}={})=>`https?://${d}(?::\\d{2,5})?(?:[/\\?#]${s}${m||""})${m?"":"?"}`,c=(d="i")=>new RegExp(o(),d);t.any=c;const u=(d="i")=>new RegExp(o({domain:"(?:localhost|(?:.*\\.)?hive.blog)"}),d);t.local=u;const f=(d="i")=>new RegExp(o({domain:`(?!localhost|(?:.*\\.)?hive.blog)${a}`}),d);t.remote=f;const l=(d="i")=>new RegExp(o({path:n}),d);t.image=l;const h=(d="i")=>new RegExp(n,d);t.imageFile=h,t.default={any:(0,t.any)(),local:(0,t.local)(),remote:(0,t.remote)(),image:(0,t.image)(),imageFile:(0,t.imageFile)(),vimeo:/https?:\/\/(?:vimeo.com\/|player.vimeo.com\/video\/)([0-9]+)\/*/,vimeoId:/(?:vimeo.com\/|player.vimeo.com\/video\/)([0-9]+)/,twitch:/https?:\/\/(?:www.)?twitch.tv\/(?:(videos)\/)?([a-zA-Z0-9][\w]{3,24})/i,ipfsProtocol:/^((\/\/?ipfs\/)|(ipfs:\/\/))/}})(Pu);var Hb=J&&J.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ri,"__esModule",{value:!0});Ri.TwitchEmbedder=void 0;const Wb=ht,Gb=Hb(Pu),Jb=Pt;class Yb extends Jb.AbstractEmbedder{constructor(e){super(),this.type="twitch",this.domain=new URL(e.baseUrl).hostname}getEmbedMetadata(e){try{const r=e.data,n=this.twitchId(r);return n?Object.assign({},n):void 0}catch(r){Wb.Log.log().error(r)}}processEmbed(e,r){return`<div class="videoWrapper"><iframe src=${`https://player.twitch.tv/${e}&parent=${this.domain}`} width=${r.width} height=${r.height} frameBorder="0" allowFullScreen></iframe></div>`}twitchId(e){if(!e)return null;const r=e.match(Gb.default.twitch);return!r||r.length<3?null:{id:r[1]==="videos"?`?video=${r[2]}`:`?channel=${r[2]}`,url:r[0],canonical:r[1]==="videos"?`https://player.twitch.tv/?video=${r[2]}`:`https://player.twitch.tv/?channel=${r[2]}`}}}Ri.TwitchEmbedder=Yb;var Bi={},Ca={};Object.defineProperty(Ca,"__esModule",{value:!0});Ca.StaticConfig=void 0;class Kd{}Ca.StaticConfig=Kd;Kd.sanitization={iframeWhitelist:[{re:/^(?:@?(?:https?:)?\/\/)?(?:www\.)?(twitter|x)\.com\/(?:\w+\/status|status)\/(\d{1,20})/i,fn:t=>{if(!t)return null;const r=t.replace(/^(@|https?:\/\/)/,"").match(/(?:twitter|x)\.com\/(?:\w+\/status|status)\/(\d{1,20})/i);return!r||r.length!==2?null:`https://platform.twitter.com/embed/Tweet.html?id=${r[1]}`}},{re:/^(https?:)?\/\/player.vimeo.com\/video\/.*/i,fn:t=>{if(!t)return null;const e=t.match(/https:\/\/player\.vimeo\.com\/video\/([0-9]+)/);return!e||e.length!==2?null:"https://player.vimeo.com/video/"+e[1]}},{re:/^(https?:)?\/\/www.youtube.com\/embed\/.*/i,fn:t=>t.replace(/\?.+$/,"")},{re:/^https:\/\/w.soundcloud.com\/player\/.*/i,fn:t=>{if(!t)return null;const e=t.match(/url=(.+?)&/);return!e||e.length!==2?null:`https://w.soundcloud.com/player/?url=${e[1]}&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true`}},{re:/^(https?:)?\/\/player.twitch.tv\/.*/i,fn:t=>t},{re:/^https:\/\/open\.spotify\.com\/(embed|embed-podcast)\/(playlist|show|episode|album|track|artist)\/(.*)/i,fn:t=>t},{re:/^(?:https?:)?\/\/(?:3speak\.(?:tv|online|co))\/embed\?v=([^&\s]+)/i,fn:t=>{if(!t)return null;const e=t.match(/3speak\.(?:tv|online|co)\/embed\?v=([^&\s]+)/i);return!e||e.length!==2?null:`https://3speak.tv/embed?v=${e[1]}`}},{re:/^(?:https?:)?\/\/(?:3speak\.(?:tv|online|co))\/watch\?v=([^&\s]+)/i,fn:t=>{if(!t)return null;const e=t.match(/3speak\.(?:tv|online|co)\/watch\?v=([^&\s]+)/i);return!e||e.length!==2?null:`https://3speak.tv/embed?v=${e[1]}`}},{re:/^(?:https:)\/\/(?:www\.)?(twitter|x)\.com\/(?:\w+\/status|status)\/(\d{1,20})/i,fn:t=>{if(!t)return null;const e=t.match(/(?:twitter|x)\.com\/(?:\w+\/status|status)\/(\d{1,20})/i);return!e||e.length!==2?null:`https://platform.twitter.com/embed/Tweet.html?id=${e[1]}`}}],noImageText:"(Image not shown due to low ratings)",allowedTags:`
135
+ `)}function Wd(t){this.options=t||{locator:{}}}Wd.prototype.parseFromString=function(t,e){var r=this.options,n=new Qg,a=r.domBuilder||new Xa,s=r.errorHandler,o=r.locator,c=r.xmlns||{},u=/\/x?html?$/.test(e),f=u?Ul.HTML_ENTITIES:Ul.XML_ENTITIES;o&&a.setDocumentLocator(o),n.errorHandler=eb(s,a,o),n.domBuilder=r.domBuilder||a,u&&(c[""]=zl.HTML),c.xml=c.xml||zl.XML;var l=r.normalizeLineEndings||Hd;return t&&typeof t=="string"?n.parse(l(t),c,f):n.errorHandler.error("invalid doc source"),a.doc};function eb(t,e,r){if(!t){if(e instanceof Xa)return e;t=e}var n={},a=t instanceof Function;r=r||{};function s(o){var c=t[o];!c&&a&&(c=t.length==2?function(u){t(o,u)}:t),n[o]=c&&function(u){c("[xmldom "+o+"] "+u+Mo(r))}||function(){}}return s("warning"),s("error"),s("fatalError"),n}function Xa(){this.cdata=!1}function Pn(t,e){e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber}Xa.prototype={startDocument:function(){this.doc=new Xg().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(t,e,r,n){var a=this.doc,s=a.createElementNS(t,r||e),o=n.length;xs(this,s),this.currentElement=s,this.locator&&Pn(this.locator,s);for(var c=0;c<o;c++){var t=n.getURI(c),u=n.getValue(c),r=n.getQName(c),f=a.createAttributeNS(t,r);this.locator&&Pn(n.getLocator(c),f),f.value=f.nodeValue=u,s.setAttributeNode(f)}},endElement:function(t,e,r){var n=this.currentElement;n.tagName,this.currentElement=n.parentNode},startPrefixMapping:function(t,e){},endPrefixMapping:function(t){},processingInstruction:function(t,e){var r=this.doc.createProcessingInstruction(t,e);this.locator&&Pn(this.locator,r),xs(this,r)},ignorableWhitespace:function(t,e,r){},characters:function(t,e,r){if(t=Hl.apply(this,arguments),t){if(this.cdata)var n=this.doc.createCDATASection(t);else var n=this.doc.createTextNode(t);this.currentElement?this.currentElement.appendChild(n):/^\s*$/.test(t)&&this.doc.appendChild(n),this.locator&&Pn(this.locator,n)}},skippedEntity:function(t){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(t){(this.locator=t)&&(t.lineNumber=0)},comment:function(t,e,r){t=Hl.apply(this,arguments);var n=this.doc.createComment(t);this.locator&&Pn(this.locator,n),xs(this,n)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(t,e,r){var n=this.doc.implementation;if(n&&n.createDocumentType){var a=n.createDocumentType(t,e,r);this.locator&&Pn(this.locator,a),xs(this,a),this.doc.doctype=a}},warning:function(t){console.warn("[xmldom warning] "+t,Mo(this.locator))},error:function(t){console.error("[xmldom error] "+t,Mo(this.locator))},fatalError:function(t){throw new Kg(t,this.locator)}};function Mo(t){if(t)return`
136
+ @`+(t.systemId||"")+"#[line:"+t.lineNumber+",col:"+t.columnNumber+"]"}function Hl(t,e,r){return typeof t=="string"?t.substr(e,r):t.length>=e+r||e?new java.lang.String(t,e,r)+"":t}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(t){Xa.prototype[t]=function(){return null}});function xs(t,e){t.currentElement?t.currentElement.appendChild(e):t.doc.appendChild(e)}Pi.__DOMHandler=Xa;Pi.normalizeLineEndings=Hd;Pi.DOMParser=Wd;var Gd=xr;Ci.DOMImplementation=Gd.DOMImplementation;Ci.XMLSerializer=Gd.XMLSerializer;Ci.DOMParser=Pi.DOMParser;var $t={},zt={},Li={},aa={},sa={};Object.defineProperty(sa,"__esModule",{value:!0});const tb=Br;class rb extends tb.default{constructor(e,r){super(e,r)}}sa.UniverseLogError=rb;(function(t){Object.defineProperty(t,"__esModule",{value:!0});const e=sa;(function(r){r.error="error",r.warn="warn",r.info="info",r.http="http",r.verbose="verbose",r.debug="debug",r.silly="silly"})(t.LogLevel||(t.LogLevel={})),function(r){r.LEVELS_VALUES={[r.error]:0,[r.warn]:1,[r.info]:2,[r.http]:3,[r.verbose]:4,[r.debug]:5,[r.silly]:6},r.LEVELS_BY_NAME={[r.error]:r.error,[r.warn]:r.warn,[r.info]:r.info,[r.http]:r.http,[r.verbose]:r.verbose,[r.debug]:r.debug,[r.silly]:r.silly},r.DEFAULT_LEVEL=r.info;function n(u){if(typeof r.LEVELS_BY_NAME[u]>"u"){const f=Object.keys(r.LEVELS_BY_NAME).join(", ");throw new e.UniverseLogError(`There is no such log level: '${u}'. Available levels: [ ${f} ]`)}return r.LEVELS_BY_NAME[u]}r.valueOf=n;function a(u){if(typeof r.LEVELS_VALUES[u]>"u"){const f=Object.keys(r.LEVELS_BY_NAME).join(", ");throw new e.UniverseLogError(`There is no such log level: '${u}'. Available levels: [ ${f} ]`)}return r.LEVELS_VALUES[u]}r.levelToValue=a;function s(u){return a(u.level)<=a(u.threshold)}r.isLessOrEquallyVerbose=s;function o(u,f){return r.LEVELS_VALUES[u]>r.LEVELS_VALUES[f]?u:f}r.moreVerbose=o;function c(u,f){return r.LEVELS_VALUES[u]<r.LEVELS_VALUES[f]?u:f}r.lessVerbose=c}(t.LogLevel||(t.LogLevel={}))})(aa);var Mi={},Nu={},Jd={exports:{}};(function(t){t.exports=function(r){var n={};function a(s){if(n[s])return n[s].exports;var o=n[s]={i:s,l:!1,exports:{}};return r[s].call(o.exports,o,o.exports,a),o.l=!0,o.exports}return a.m=r,a.c=n,a.d=function(s,o,c){a.o(s,o)||Object.defineProperty(s,o,{enumerable:!0,get:c})},a.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},a.t=function(s,o){if(1&o&&(s=a(s)),8&o||4&o&&typeof s=="object"&&s&&s.__esModule)return s;var c=Object.create(null);if(a.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:s}),2&o&&typeof s!="string")for(var u in s)a.d(c,u,(function(f){return s[f]}).bind(null,u));return c},a.n=function(s){var o=s&&s.__esModule?function(){return s.default}:function(){return s};return a.d(o,"a",o),o},a.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)},a.p="",a(a.s=4)}([function(r,n,a){var s=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(n,"__esModule",{value:!0});const o=s(a(1)),c=a(8),u=a(2),f=a(16);n.validatorSymbol=Symbol("validators"),n.Predicate=class{constructor(l,h={}){this.type=l,this.options=h,this.context={validators:[]},this.context=Object.assign({},this.context,this.options);const d=this.type[0].toLowerCase()+this.type.slice(1);this.addValidator({message:(m,b)=>`Expected ${b&&b.substring(this.type.length+1)||"argument"} to be of type \`${this.type}\` but received type \`${o.default(m)}\``,validator:m=>o.default[d](m)})}[u.testSymbol](l,h,d){for(const{validator:m,message:b}of this.context.validators){if(this.options.optional===!0&&l===void 0)continue;const x=m(l);if(x===!0)continue;let y=d;throw typeof d=="function"&&(y=d()),y=y?`${this.type} \`${y}\``:this.type,new c.ArgumentError(b(l,y,x),h)}}get[n.validatorSymbol](){return this.context.validators}get not(){return f.not(this)}validate(l){return this.addValidator({message:(h,d,m)=>typeof m=="string"?`(${d}) ${m}`:m(d),validator:h=>{const{message:d,validator:m}=l(h);return!!m||d}})}is(l){return this.addValidator({message:(h,d,m)=>m?`(${d}) ${m}`:`Expected ${d} \`${h}\` to pass custom validation function`,validator:l})}addValidator(l){return this.context.validators.push(l),this}}},function(r,n,a){Object.defineProperty(n,"__esModule",{value:!0});const s=typeof URL>"u"?a(15).URL:URL,{toString:o}=Object.prototype,c=g=>E=>typeof E===g,u=g=>{const E=o.call(g).slice(8,-1);if(E)return E},f=g=>E=>u(E)===g;function l(g){switch(g){case null:return"null";case!0:case!1:return"boolean"}switch(typeof g){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"bigint":return"bigint";case"symbol":return"symbol"}if(l.function_(g))return"Function";if(l.observable(g))return"Observable";if(l.array(g))return"Array";if(l.buffer(g))return"Buffer";const E=u(g);if(E)return E;if(g instanceof String||g instanceof Boolean||g instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}const h=g=>typeof g=="object";l.undefined=c("undefined"),l.string=c("string"),l.number=c("number"),l.bigint=c("bigint"),l.function_=c("function"),l.null_=g=>g===null,l.class_=g=>l.function_(g)&&g.toString().startsWith("class "),l.boolean=g=>g===!0||g===!1,l.symbol=c("symbol"),l.numericString=g=>l.string(g)&&g.length>0&&!Number.isNaN(Number(g)),l.array=Array.isArray,l.buffer=g=>!l.nullOrUndefined(g)&&!l.nullOrUndefined(g.constructor)&&l.function_(g.constructor.isBuffer)&&g.constructor.isBuffer(g),l.nullOrUndefined=g=>l.null_(g)||l.undefined(g),l.object=g=>!l.nullOrUndefined(g)&&(l.function_(g)||h(g)),l.iterable=g=>!l.nullOrUndefined(g)&&l.function_(g[Symbol.iterator]),l.asyncIterable=g=>!l.nullOrUndefined(g)&&l.function_(g[Symbol.asyncIterator]),l.generator=g=>l.iterable(g)&&l.function_(g.next)&&l.function_(g.throw),l.nativePromise=g=>f("Promise")(g),l.promise=g=>l.nativePromise(g)||(E=>!l.null_(E)&&h(E)&&l.function_(E.then)&&l.function_(E.catch))(g),l.generatorFunction=f("GeneratorFunction"),l.asyncFunction=f("AsyncFunction"),l.boundFunction=g=>l.function_(g)&&!g.hasOwnProperty("prototype"),l.regExp=f("RegExp"),l.date=f("Date"),l.error=f("Error"),l.map=g=>f("Map")(g),l.set=g=>f("Set")(g),l.weakMap=g=>f("WeakMap")(g),l.weakSet=g=>f("WeakSet")(g),l.int8Array=f("Int8Array"),l.uint8Array=f("Uint8Array"),l.uint8ClampedArray=f("Uint8ClampedArray"),l.int16Array=f("Int16Array"),l.uint16Array=f("Uint16Array"),l.int32Array=f("Int32Array"),l.uint32Array=f("Uint32Array"),l.float32Array=f("Float32Array"),l.float64Array=f("Float64Array"),l.bigint64Array=f("BigInt64Array"),l.biguint64Array=f("BigUint64Array"),l.arrayBuffer=f("ArrayBuffer"),l.sharedArrayBuffer=f("SharedArrayBuffer"),l.dataView=f("DataView"),l.directInstanceOf=(g,E)=>Object.getPrototypeOf(g)===E.prototype,l.urlInstance=g=>f("URL")(g),l.urlString=g=>{if(!l.string(g))return!1;try{return new s(g),!0}catch{return!1}},l.truthy=g=>!!g,l.falsy=g=>!g,l.nan=g=>Number.isNaN(g);const d=new Set(["undefined","string","number","bigint","boolean","symbol"]);l.primitive=g=>l.null_(g)||d.has(typeof g),l.integer=g=>Number.isInteger(g),l.safeInteger=g=>Number.isSafeInteger(g),l.plainObject=g=>{if(u(g)!=="Object")return!1;const E=Object.getPrototypeOf(g);return E===null||E===Object.getPrototypeOf({})};const m=new Set(["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"]);l.typedArray=g=>{const E=u(g);return E!==void 0&&m.has(E)},l.arrayLike=g=>!l.nullOrUndefined(g)&&!l.function_(g)&&(E=>l.safeInteger(E)&&E>=0)(g.length),l.inRange=(g,E)=>{if(l.number(E))return g>=Math.min(0,E)&&g<=Math.max(E,0);if(l.array(E)&&E.length===2)return g>=Math.min(...E)&&g<=Math.max(...E);throw new TypeError(`Invalid range: ${JSON.stringify(E)}`)};const b=["innerHTML","ownerDocument","style","attributes","nodeValue"];l.domElement=g=>l.object(g)&&g.nodeType===1&&l.string(g.nodeName)&&!l.plainObject(g)&&b.every(E=>E in g),l.observable=g=>!!g&&(!(!g[Symbol.observable]||g!==g[Symbol.observable]())||!(!g["@@observable"]||g!==g["@@observable"]())),l.nodeStream=g=>!l.nullOrUndefined(g)&&h(g)&&l.function_(g.pipe)&&!l.observable(g),l.infinite=g=>g===1/0||g===-1/0;const x=g=>E=>l.integer(E)&&Math.abs(E%2)===g;l.evenInteger=x(0),l.oddInteger=x(1),l.emptyArray=g=>l.array(g)&&g.length===0,l.nonEmptyArray=g=>l.array(g)&&g.length>0,l.emptyString=g=>l.string(g)&&g.length===0,l.nonEmptyString=g=>l.string(g)&&g.length>0,l.emptyStringOrWhitespace=g=>l.emptyString(g)||(E=>l.string(E)&&/\S/.test(E)===!1)(g),l.emptyObject=g=>l.object(g)&&!l.map(g)&&!l.set(g)&&Object.keys(g).length===0,l.nonEmptyObject=g=>l.object(g)&&!l.map(g)&&!l.set(g)&&Object.keys(g).length>0,l.emptySet=g=>l.set(g)&&g.size===0,l.nonEmptySet=g=>l.set(g)&&g.size>0,l.emptyMap=g=>l.map(g)&&g.size===0,l.nonEmptyMap=g=>l.map(g)&&g.size>0;const y=(g,E,D)=>{if(l.function_(E)===!1)throw new TypeError(`Invalid predicate: ${JSON.stringify(E)}`);if(D.length===0)throw new TypeError("Invalid number of values");return g.call(D,E)};l.any=(g,...E)=>y(Array.prototype.some,g,E),l.all=(g,...E)=>y(Array.prototype.every,g,E),Object.defineProperties(l,{class:{value:l.class_},function:{value:l.function_},null:{value:l.null_}}),r.exports=l,n.default=l},function(r,n,a){Object.defineProperty(n,"__esModule",{value:!0}),n.testSymbol=Symbol("test"),n.isPredicate=s=>!!(s&&s[n.testSymbol])},function(r,n,a){Object.defineProperty(n,"__esModule",{value:!0}),n.default=(s,o,c=5)=>{const u=[];for(const f of o)if(!s.has(f)&&(u.push(f),u.length===c))return u;return u.length===0||u}},function(r,n,a){var s=this&&this.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(n,"__esModule",{value:!0});const o=s(a(10)),c=a(11),u=a(0);n.Predicate=u.Predicate;const f=a(2),l=s(a(17)),h=s(a(6)),d=s(a(9)),m=(x,y,g)=>{if(!f.isPredicate(y)&&typeof y!="string")throw new TypeError(`Expected second argument to be a predicate or a string, got \`${typeof y}\``);if(f.isPredicate(y)){const E=o.default();d.default(x,()=>c.inferLabel(E),y)}else d.default(x,y,g)};Object.defineProperties(m,{isValid:{value:(x,y)=>{try{return m(x,y),!0}catch{return!1}}},create:{value:(x,y)=>g=>{if(f.isPredicate(x)){const E=o.default();d.default(g,()=>c.inferLabel(E),x)}else d.default(g,x,y)}}}),n.default=h.default(l.default(m));var b=a(6);n.StringPredicate=b.StringPredicate,n.NumberPredicate=b.NumberPredicate,n.BooleanPredicate=b.BooleanPredicate,n.ArrayPredicate=b.ArrayPredicate,n.ObjectPredicate=b.ObjectPredicate,n.DatePredicate=b.DatePredicate,n.ErrorPredicate=b.ErrorPredicate,n.MapPredicate=b.MapPredicate,n.WeakMapPredicate=b.WeakMapPredicate,n.SetPredicate=b.SetPredicate,n.WeakSetPredicate=b.WeakSetPredicate,n.AnyPredicate=b.AnyPredicate},function(r,n,a){(function(s){var o=200,c="__lodash_hash_undefined__",u=1,f=2,l=9007199254740991,h="[object Arguments]",d="[object Array]",m="[object AsyncFunction]",b="[object Boolean]",x="[object Date]",y="[object Error]",g="[object Function]",E="[object GeneratorFunction]",D="[object Map]",w="[object Number]",j="[object Null]",p="[object Object]",A="[object Proxy]",k="[object RegExp]",V="[object Set]",H="[object String]",S="[object Symbol]",P="[object Undefined]",I="[object ArrayBuffer]",W="[object DataView]",_=/^\[object .+?Constructor\]$/,M=/^(?:0|[1-9]\d*)$/,O={};O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O[h]=O[d]=O[I]=O[b]=O[W]=O[x]=O[y]=O[g]=O[D]=O[w]=O[p]=O[k]=O[V]=O[H]=O["[object WeakMap]"]=!1;var G=typeof J=="object"&&J&&J.Object===Object&&J,R=typeof self=="object"&&self&&self.Object===Object&&self,K=G||R||Function("return this")(),X=n&&!n.nodeType&&n,ae=X&&typeof s=="object"&&s&&!s.nodeType&&s,ke=ae&&ae.exports===X,L=ke&&G.process,B=function(){try{return L&&L.binding&&L.binding("util")}catch{}}(),re=B&&B.isTypedArray;function se(T,F){for(var Y=-1,Q=T==null?0:T.length;++Y<Q;)if(F(T[Y],Y,T))return!0;return!1}function ne(T){var F=-1,Y=Array(T.size);return T.forEach(function(Q,Ne){Y[++F]=[Ne,Q]}),Y}function Ee(T){var F=-1,Y=Array(T.size);return T.forEach(function(Q){Y[++F]=Q}),Y}var Le,Et,Nt,ar=Array.prototype,sr=Function.prototype,ve=Object.prototype,Ue=K["__core-js_shared__"],Xe=sr.toString,Be=ve.hasOwnProperty,At=(Le=/[^.]+$/.exec(Ue&&Ue.keys&&Ue.keys.IE_PROTO||""))?"Symbol(src)_1."+Le:"",ir=ve.toString,la=RegExp("^"+Xe.call(Be).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_r=ke?K.Buffer:void 0,Er=K.Symbol,yn=K.Uint8Array,zr=ve.propertyIsEnumerable,vn=ar.splice,it=Er?Er.toStringTag:void 0,Nr=Object.getOwnPropertySymbols,Hr=_r?_r.isBuffer:void 0,ot=(Et=Object.keys,Nt=Object,function(T){return Et(Nt(T))}),Ar=Z(K,"DataView"),Ht=Z(K,"Map"),Wr=Z(K,"Promise"),kr=Z(K,"Set"),Wt=Z(K,"WeakMap"),Gt=Z(Object,"create"),wn=oe(Ar),Gr=oe(Ht),kt=oe(Wr),Pt=oe(kr),Jr=oe(Wt),jr=Er?Er.prototype:void 0,Jt=jr?jr.valueOf:void 0;function ut(T){var F=-1,Y=T==null?0:T.length;for(this.clear();++F<Y;){var Q=T[F];this.set(Q[0],Q[1])}}function tt(T){var F=-1,Y=T==null?0:T.length;for(this.clear();++F<Y;){var Q=T[F];this.set(Q[0],Q[1])}}function yt(T){var F=-1,Y=T==null?0:T.length;for(this.clear();++F<Y;){var Q=T[F];this.set(Q[0],Q[1])}}function Lt(T){var F=-1,Y=T==null?0:T.length;for(this.__data__=new yt;++F<Y;)this.add(T[F])}function Ke(T){var F=this.__data__=new tt(T);this.size=F.size}function ca(T,F){var Y=we(T),Q=!Y&&ze(T),Ne=!Y&&!Q&&Ae(T),he=!Y&&!Q&&!Ne&&Dr(T),Se=Y||Q||Ne||he,$e=Se?function(De,Dt){for(var lt=-1,He=Array(De);++lt<De;)He[lt]=Dt(lt);return He}(T.length,String):[],vt=$e.length;for(var Me in T)!Be.call(T,Me)||Se&&(Me=="length"||Ne&&(Me=="offset"||Me=="parent")||he&&(Me=="buffer"||Me=="byteLength"||Me=="byteOffset")||fe(Me,vt))||$e.push(Me);return $e}function Sr(T,F){for(var Y=T.length;Y--;)if(le(T[Y][0],F))return Y;return-1}function Yt(T){return T==null?T===void 0?P:j:it&&it in Object(T)?function(F){var Y=Be.call(F,it),Q=F[it];try{F[it]=void 0;var Ne=!0}catch{}var he=ir.call(F);return Ne&&(Y?F[it]=Q:delete F[it]),he}(T):function(F){return ir.call(F)}(T)}function Yr(T){return Oe(T)&&Yt(T)==h}function _n(T,F,Y,Q,Ne){return T===F||(T==null||F==null||!Oe(T)&&!Oe(F)?T!=T&&F!=F:function(he,Se,$e,vt,Me,De){var Dt=we(he),lt=we(Se),He=Dt?d:ue(he),Tt=lt?d:ue(Se),Tr=(He=He==h?p:He)==p,Nn=(Tt=Tt==h?p:Tt)==p,Cr=He==Tt;if(Cr&&Ae(he)){if(!Ae(Se))return!1;Dt=!0,Tr=!1}if(Cr&&!Tr)return De||(De=new Ke),Dt||Dr(he)?jt(he,Se,$e,vt,Me,De):function(be,ge,It,Zt,ha,Ie,Ft){switch(It){case W:if(be.byteLength!=ge.byteLength||be.byteOffset!=ge.byteOffset)return!1;be=be.buffer,ge=ge.buffer;case I:return!(be.byteLength!=ge.byteLength||!Ie(new yn(be),new yn(ge)));case b:case x:case w:return le(+be,+ge);case y:return be.name==ge.name&&be.message==ge.message;case k:case H:return be==ge+"";case D:var Xt=ne;case V:var Kr=Zt&u;if(Xt||(Xt=Ee),be.size!=ge.size&&!Kr)return!1;var An=Ft.get(be);if(An)return An==ge;Zt|=f,Ft.set(be,ge);var Or=jt(Xt(be),Xt(ge),Zt,ha,Ie,Ft);return Ft.delete(be),Or;case S:if(Jt)return Jt.call(be)==Jt.call(ge)}return!1}(he,Se,He,$e,vt,Me,De);if(!($e&u)){var Xr=Tr&&Be.call(he,"__wrapped__"),fa=Nn&&Be.call(Se,"__wrapped__");if(Xr||fa){var uo=Xr?he.value():he,lo=fa?Se.value():Se;return De||(De=new Ke),Me(uo,lo,$e,vt,De)}}return Cr?(De||(De=new Ke),function(be,ge,It,Zt,ha,Ie){var Ft=It&u,Xt=N(be),Kr=Xt.length,An=N(ge).length;if(Kr!=An&&!Ft)return!1;for(var Or=Kr;Or--;){var rt=Xt[Or];if(!(Ft?rt in ge:Be.call(ge,rt)))return!1}var pa=Ie.get(be);if(pa&&Ie.get(ge))return pa==ge;var kn=!0;Ie.set(be,ge),Ie.set(ge,be);for(var $r=Ft;++Or<Kr;){rt=Xt[Or];var jn=be[rt],Pr=ge[rt];if(Zt)var us=Ft?Zt(Pr,jn,rt,ge,be,Ie):Zt(jn,Pr,rt,be,ge,Ie);if(!(us===void 0?jn===Pr||ha(jn,Pr,It,Zt,Ie):us)){kn=!1;break}$r||($r=rt=="constructor")}if(kn&&!$r){var Qr=be.constructor,en=ge.constructor;Qr!=en&&"constructor"in be&&"constructor"in ge&&!(typeof Qr=="function"&&Qr instanceof Qr&&typeof en=="function"&&en instanceof en)&&(kn=!1)}return Ie.delete(be),Ie.delete(ge),kn}(he,Se,$e,vt,Me,De)):!1}(T,F,Y,Q,_n,Ne))}function En(T){return!(!St(T)||(F=T,At&&At in F))&&(Te(T)?la:_).test(oe(T));var F}function Zr(T){if(Y=(F=T)&&F.constructor,Q=typeof Y=="function"&&Y.prototype||ve,F!==Q)return ot(T);var F,Y,Q,Ne=[];for(var he in Object(T))Be.call(T,he)&&he!="constructor"&&Ne.push(he);return Ne}function jt(T,F,Y,Q,Ne,he){var Se=Y&u,$e=T.length,vt=F.length;if($e!=vt&&!(Se&&vt>$e))return!1;var Me=he.get(T);if(Me&&he.get(F))return Me==F;var De=-1,Dt=!0,lt=Y&f?new Lt:void 0;for(he.set(T,F),he.set(F,T);++De<$e;){var He=T[De],Tt=F[De];if(Q)var Tr=Se?Q(Tt,He,De,F,T,he):Q(He,Tt,De,T,F,he);if(Tr!==void 0){if(Tr)continue;Dt=!1;break}if(lt){if(!se(F,function(Nn,Cr){if(Xr=Cr,!lt.has(Xr)&&(He===Nn||Ne(He,Nn,Y,Q,he)))return lt.push(Cr);var Xr})){Dt=!1;break}}else if(He!==Tt&&!Ne(He,Tt,Y,Q,he)){Dt=!1;break}}return he.delete(T),he.delete(F),Dt}function N(T){return function(F,Y,Q){var Ne=Y(F);return we(F)?Ne:function(he,Se){for(var $e=-1,vt=Se.length,Me=he.length;++$e<vt;)he[Me+$e]=Se[$e];return he}(Ne,Q(F))}(T,da,ie)}function z(T,F){var Y,Q,Ne=T.__data__;return((Q=typeof(Y=F))=="string"||Q=="number"||Q=="symbol"||Q=="boolean"?Y!=="__proto__":Y===null)?Ne[typeof F=="string"?"string":"hash"]:Ne.map}function Z(T,F){var Y=function(Q,Ne){return Q==null?void 0:Q[Ne]}(T,F);return En(Y)?Y:void 0}ut.prototype.clear=function(){this.__data__=Gt?Gt(null):{},this.size=0},ut.prototype.delete=function(T){var F=this.has(T)&&delete this.__data__[T];return this.size-=F?1:0,F},ut.prototype.get=function(T){var F=this.__data__;if(Gt){var Y=F[T];return Y===c?void 0:Y}return Be.call(F,T)?F[T]:void 0},ut.prototype.has=function(T){var F=this.__data__;return Gt?F[T]!==void 0:Be.call(F,T)},ut.prototype.set=function(T,F){var Y=this.__data__;return this.size+=this.has(T)?0:1,Y[T]=Gt&&F===void 0?c:F,this},tt.prototype.clear=function(){this.__data__=[],this.size=0},tt.prototype.delete=function(T){var F=this.__data__,Y=Sr(F,T);return!(Y<0||(Y==F.length-1?F.pop():vn.call(F,Y,1),--this.size,0))},tt.prototype.get=function(T){var F=this.__data__,Y=Sr(F,T);return Y<0?void 0:F[Y][1]},tt.prototype.has=function(T){return Sr(this.__data__,T)>-1},tt.prototype.set=function(T,F){var Y=this.__data__,Q=Sr(Y,T);return Q<0?(++this.size,Y.push([T,F])):Y[Q][1]=F,this},yt.prototype.clear=function(){this.size=0,this.__data__={hash:new ut,map:new(Ht||tt),string:new ut}},yt.prototype.delete=function(T){var F=z(this,T).delete(T);return this.size-=F?1:0,F},yt.prototype.get=function(T){return z(this,T).get(T)},yt.prototype.has=function(T){return z(this,T).has(T)},yt.prototype.set=function(T,F){var Y=z(this,T),Q=Y.size;return Y.set(T,F),this.size+=Y.size==Q?0:1,this},Lt.prototype.add=Lt.prototype.push=function(T){return this.__data__.set(T,c),this},Lt.prototype.has=function(T){return this.__data__.has(T)},Ke.prototype.clear=function(){this.__data__=new tt,this.size=0},Ke.prototype.delete=function(T){var F=this.__data__,Y=F.delete(T);return this.size=F.size,Y},Ke.prototype.get=function(T){return this.__data__.get(T)},Ke.prototype.has=function(T){return this.__data__.has(T)},Ke.prototype.set=function(T,F){var Y=this.__data__;if(Y instanceof tt){var Q=Y.__data__;if(!Ht||Q.length<o-1)return Q.push([T,F]),this.size=++Y.size,this;Y=this.__data__=new yt(Q)}return Y.set(T,F),this.size=Y.size,this};var ie=Nr?function(T){return T==null?[]:(T=Object(T),function(F,Y){for(var Q=-1,Ne=F==null?0:F.length,he=0,Se=[];++Q<Ne;){var $e=F[Q];Y($e,Q,F)&&(Se[he++]=$e)}return Se}(Nr(T),function(F){return zr.call(T,F)}))}:function(){return[]},ue=Yt;function fe(T,F){return!!(F=F??l)&&(typeof T=="number"||M.test(T))&&T>-1&&T%1==0&&T<F}function oe(T){if(T!=null){try{return Xe.call(T)}catch{}try{return T+""}catch{}}return""}function le(T,F){return T===F||T!=T&&F!=F}(Ar&&ue(new Ar(new ArrayBuffer(1)))!=W||Ht&&ue(new Ht)!=D||Wr&&ue(Wr.resolve())!="[object Promise]"||kr&&ue(new kr)!=V||Wt&&ue(new Wt)!="[object WeakMap]")&&(ue=function(T){var F=Yt(T),Y=F==p?T.constructor:void 0,Q=Y?oe(Y):"";if(Q)switch(Q){case wn:return W;case Gr:return D;case kt:return"[object Promise]";case Pt:return V;case Jr:return"[object WeakMap]"}return F});var ze=Yr(function(){return arguments}())?Yr:function(T){return Oe(T)&&Be.call(T,"callee")&&!zr.call(T,"callee")},we=Array.isArray,Ae=Hr||function(){return!1};function Te(T){if(!St(T))return!1;var F=Yt(T);return F==g||F==E||F==m||F==A}function Mt(T){return typeof T=="number"&&T>-1&&T%1==0&&T<=l}function St(T){var F=typeof T;return T!=null&&(F=="object"||F=="function")}function Oe(T){return T!=null&&typeof T=="object"}var Dr=re?function(T){return function(F){return T(F)}}(re):function(T){return Oe(T)&&Mt(T.length)&&!!O[Yt(T)]};function da(T){return(F=T)!=null&&Mt(F.length)&&!Te(F)?ca(T):Zr(T);var F}s.exports=function(T,F){return _n(T,F)}}).call(this,a(23)(r))},function(r,n,a){Object.defineProperty(n,"__esModule",{value:!0});const s=a(18);n.StringPredicate=s.StringPredicate;const o=a(20);n.NumberPredicate=o.NumberPredicate;const c=a(21);n.BooleanPredicate=c.BooleanPredicate;const u=a(0),f=a(22);n.ArrayPredicate=f.ArrayPredicate;const l=a(24);n.ObjectPredicate=l.ObjectPredicate;const h=a(29);n.DatePredicate=h.DatePredicate;const d=a(30);n.ErrorPredicate=d.ErrorPredicate;const m=a(31);n.MapPredicate=m.MapPredicate;const b=a(32);n.WeakMapPredicate=b.WeakMapPredicate;const x=a(33);n.SetPredicate=x.SetPredicate;const y=a(34);n.WeakSetPredicate=y.WeakSetPredicate;const g=a(35);n.AnyPredicate=g.AnyPredicate,n.default=(E,D)=>(Object.defineProperties(E,{string:{get:()=>new s.StringPredicate(D)},number:{get:()=>new o.NumberPredicate(D)},boolean:{get:()=>new c.BooleanPredicate(D)},undefined:{get:()=>new u.Predicate("undefined",D)},null:{get:()=>new u.Predicate("null",D)},nullOrUndefined:{get:()=>new u.Predicate("nullOrUndefined",D)},nan:{get:()=>new u.Predicate("nan",D)},symbol:{get:()=>new u.Predicate("symbol",D)},array:{get:()=>new f.ArrayPredicate(D)},object:{get:()=>new l.ObjectPredicate(D)},date:{get:()=>new h.DatePredicate(D)},error:{get:()=>new d.ErrorPredicate(D)},map:{get:()=>new m.MapPredicate(D)},weakMap:{get:()=>new b.WeakMapPredicate(D)},set:{get:()=>new x.SetPredicate(D)},weakSet:{get:()=>new y.WeakSetPredicate(D)},function:{get:()=>new u.Predicate("Function",D)},buffer:{get:()=>new u.Predicate("Buffer",D)},regExp:{get:()=>new u.Predicate("RegExp",D)},promise:{get:()=>new u.Predicate("Promise",D)},typedArray:{get:()=>new u.Predicate("TypedArray",D)},int8Array:{get:()=>new u.Predicate("Int8Array",D)},uint8Array:{get:()=>new u.Predicate("Uint8Array",D)},uint8ClampedArray:{get:()=>new u.Predicate("Uint8ClampedArray",D)},int16Array:{get:()=>new u.Predicate("Int16Array",D)},uint16Array:{get:()=>new u.Predicate("Uint16Array",D)},int32Array:{get:()=>new u.Predicate("Int32Array",D)},uint32Array:{get:()=>new u.Predicate("Uint32Array",D)},float32Array:{get:()=>new u.Predicate("Float32Array",D)},float64Array:{get:()=>new u.Predicate("Float64Array",D)},arrayBuffer:{get:()=>new u.Predicate("ArrayBuffer",D)},dataView:{get:()=>new u.Predicate("DataView",D)},iterable:{get:()=>new u.Predicate("Iterable",D)},any:{value:(...w)=>new g.AnyPredicate(w,D)}}),E)},function(r,n,a){var s=this&&this.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(n,"__esModule",{value:!0});const o=s(a(4));n.default=(c,u)=>{try{for(const f of c)o.default(f,u);return!0}catch(f){return f.message}}},function(r,n,a){Object.defineProperty(n,"__esModule",{value:!0}),n.ArgumentError=class extends Error{constructor(s,o){super(s),"captureStackTrace"in Error&&Error.captureStackTrace(this,o),this.name="ArgumentError"}}},function(r,n,a){Object.defineProperty(n,"__esModule",{value:!0});const s=a(2);n.default=function o(c,u,f){f[s.testSymbol](c,o,u)}},function(r,n,a){const s=()=>{const o=Error.prepareStackTrace;Error.prepareStackTrace=(u,f)=>f;const c=new Error().stack.slice(1);return Error.prepareStackTrace=o,c};r.exports=s,r.exports.default=s},function(r,n,a){var s=this&&this.__importStar||function(h){if(h&&h.__esModule)return h;var d={};if(h!=null)for(var m in h)Object.hasOwnProperty.call(h,m)&&(d[m]=h[m]);return d.default=h,d},o=this&&this.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(n,"__esModule",{value:!0});const c=s(a(12)),u=o(a(13)),f=o(a(14)),l=/^.*?\((.*?)[,)]/;n.inferLabel=h=>{if(!f.default)return;const d=h[1],m=d.getFileName(),b=d.getLineNumber(),x=d.getColumnNumber();if(!m||b===null||x===null)return;let y=[];try{y=c.readFileSync(m,"utf8").split(`
137
+ `)}catch{return}let g=y[b-1];if(!g)return;g=g.slice(x-1);const E=l.exec(g);if(!E||!E[1])return;const D=E[1];return u.default(D)||u.default(D.split(".").pop())?D:void 0}},function(r,n){r.exports=gt},function(r,n,a){Object.defineProperty(n,"__esModule",{value:!0});const s=/^[a-z$_][a-z$_0-9]*$/i,o=new Set(["undefined","null","true","false","super","this","Infinity","NaN"]);n.default=c=>c&&!o.has(c)&&s.test(c)},function(r,n,a){Object.defineProperty(n,"__esModule",{value:!0}),n.default=!!(typeof process<"u"&&process.versions&&process.versions.node)},function(r,n){r.exports=gt},function(r,n,a){Object.defineProperty(n,"__esModule",{value:!0});const s=a(0);n.not=o=>{const c=o.addValidator;return o.addValidator=u=>{const f=u.validator,l=u.message;return u.message=(h,d)=>`[NOT] ${l(h,d)}`,u.validator=h=>!f(h),o[s.validatorSymbol].push(u),o.addValidator=c,o},o}},function(r,n,a){var s=this&&this.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(n,"__esModule",{value:!0});const o=s(a(6));n.default=c=>(Object.defineProperties(c,{optional:{get:()=>o.default({},{optional:!0})}}),c)},function(r,n,a){var s=this&&this.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(n,"__esModule",{value:!0});const o=s(a(1)),c=s(a(19)),u=a(0);n.StringPredicate=class extends u.Predicate{constructor(f){super("string",f)}length(f){return this.addValidator({message:(l,h)=>`Expected ${h} to have length \`${f}\`, got \`${l}\``,validator:l=>l.length===f})}minLength(f){return this.addValidator({message:(l,h)=>`Expected ${h} to have a minimum length of \`${f}\`, got \`${l}\``,validator:l=>l.length>=f})}maxLength(f){return this.addValidator({message:(l,h)=>`Expected ${h} to have a maximum length of \`${f}\`, got \`${l}\``,validator:l=>l.length<=f})}matches(f){return this.addValidator({message:(l,h)=>`Expected ${h} to match \`${f}\`, got \`${l}\``,validator:l=>f.test(l)})}startsWith(f){return this.addValidator({message:(l,h)=>`Expected ${h} to start with \`${f}\`, got \`${l}\``,validator:l=>l.startsWith(f)})}endsWith(f){return this.addValidator({message:(l,h)=>`Expected ${h} to end with \`${f}\`, got \`${l}\``,validator:l=>l.endsWith(f)})}includes(f){return this.addValidator({message:(l,h)=>`Expected ${h} to include \`${f}\`, got \`${l}\``,validator:l=>l.includes(f)})}oneOf(f){return this.addValidator({message:(l,h)=>{let d=JSON.stringify(f);if(f.length>10){const m=f.length-10;d=JSON.stringify(f.slice(0,10)).replace(/]$/,`,…+${m} more]`)}return`Expected ${h} to be one of \`${d}\`, got \`${l}\``},validator:l=>f.includes(l)})}get empty(){return this.addValidator({message:(f,l)=>`Expected ${l} to be empty, got \`${f}\``,validator:f=>f===""})}get nonEmpty(){return this.addValidator({message:(f,l)=>`Expected ${l} to not be empty`,validator:f=>f!==""})}equals(f){return this.addValidator({message:(l,h)=>`Expected ${h} to be equal to \`${f}\`, got \`${l}\``,validator:l=>l===f})}get alphanumeric(){return this.addValidator({message:(f,l)=>`Expected ${l} to be alphanumeric, got \`${f}\``,validator:f=>/^[a-z\d]+$/i.test(f)})}get alphabetical(){return this.addValidator({message:(f,l)=>`Expected ${l} to be alphabetical, got \`${f}\``,validator:f=>/^[a-z]+$/gi.test(f)})}get numeric(){return this.addValidator({message:(f,l)=>`Expected ${l} to be numeric, got \`${f}\``,validator:f=>/^(\+|-)?\d+$/i.test(f)})}get date(){return this.addValidator({message:(f,l)=>`Expected ${l} to be a date, got \`${f}\``,validator:c.default})}get lowercase(){return this.addValidator({message:(f,l)=>`Expected ${l} to be lowercase, got \`${f}\``,validator:f=>f.trim()!==""&&f===f.toLowerCase()})}get uppercase(){return this.addValidator({message:(f,l)=>`Expected ${l} to be uppercase, got \`${f}\``,validator:f=>f.trim()!==""&&f===f.toUpperCase()})}get url(){return this.addValidator({message:(f,l)=>`Expected ${l} to be a URL, got \`${f}\``,validator:o.default.urlString})}}},function(r,n,a){r.exports=function(s){return!isNaN(Date.parse(s))}},function(r,n,a){var s=this&&this.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(n,"__esModule",{value:!0});const o=s(a(1)),c=a(0);n.NumberPredicate=class extends c.Predicate{constructor(u){super("number",u)}inRange(u,f){return this.addValidator({message:(l,h)=>`Expected ${h} to be in range [${u}..${f}], got ${l}`,validator:l=>o.default.inRange(l,[u,f])})}greaterThan(u){return this.addValidator({message:(f,l)=>`Expected ${l} to be greater than ${u}, got ${f}`,validator:f=>f>u})}greaterThanOrEqual(u){return this.addValidator({message:(f,l)=>`Expected ${l} to be greater than or equal to ${u}, got ${f}`,validator:f=>f>=u})}lessThan(u){return this.addValidator({message:(f,l)=>`Expected ${l} to be less than ${u}, got ${f}`,validator:f=>f<u})}lessThanOrEqual(u){return this.addValidator({message:(f,l)=>`Expected ${l} to be less than or equal to ${u}, got ${f}`,validator:f=>f<=u})}equal(u){return this.addValidator({message:(f,l)=>`Expected ${l} to be equal to ${u}, got ${f}`,validator:f=>f===u})}oneOf(u){return this.addValidator({message:(f,l)=>{let h=JSON.stringify(u);if(u.length>10){const d=u.length-10;h=JSON.stringify(u.slice(0,10)).replace(/]$/,`,…+${d} more]`)}return`Expected ${l} to be one of \`${h}\`, got ${f}`},validator:f=>u.includes(f)})}get integer(){return this.addValidator({message:(u,f)=>`Expected ${f} to be an integer, got ${u}`,validator:u=>o.default.integer(u)})}get finite(){return this.addValidator({message:(u,f)=>`Expected ${f} to be finite, got ${u}`,validator:u=>!o.default.infinite(u)})}get infinite(){return this.addValidator({message:(u,f)=>`Expected ${f} to be infinite, got ${u}`,validator:u=>o.default.infinite(u)})}get positive(){return this.addValidator({message:(u,f)=>`Expected ${f} to be positive, got ${u}`,validator:u=>u>0})}get negative(){return this.addValidator({message:(u,f)=>`Expected ${f} to be negative, got ${u}`,validator:u=>u<0})}get integerOrInfinite(){return this.addValidator({message:(u,f)=>`Expected ${f} to be an integer or infinite, got ${u}`,validator:u=>o.default.integer(u)||o.default.infinite(u)})}get uint8(){return this.integer.inRange(0,255)}get uint16(){return this.integer.inRange(0,65535)}get uint32(){return this.integer.inRange(0,4294967295)}get int8(){return this.integer.inRange(-128,127)}get int16(){return this.integer.inRange(-32768,32767)}get int32(){return this.integer.inRange(-2147483648,2147483647)}}},function(r,n,a){Object.defineProperty(n,"__esModule",{value:!0});const s=a(0);n.BooleanPredicate=class extends s.Predicate{constructor(o){super("boolean",o)}get true(){return this.addValidator({message:(o,c)=>`Expected ${c} to be true, got ${o}`,validator:o=>o===!0})}get false(){return this.addValidator({message:(o,c)=>`Expected ${c} to be false, got ${o}`,validator:o=>o===!1})}}},function(r,n,a){var s=this&&this.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(n,"__esModule",{value:!0});const o=s(a(5)),c=s(a(4)),u=a(0);n.ArrayPredicate=class extends u.Predicate{constructor(f){super("array",f)}length(f){return this.addValidator({message:(l,h)=>`Expected ${h} to have length \`${f}\`, got \`${l.length}\``,validator:l=>l.length===f})}minLength(f){return this.addValidator({message:(l,h)=>`Expected ${h} to have a minimum length of \`${f}\`, got \`${l.length}\``,validator:l=>l.length>=f})}maxLength(f){return this.addValidator({message:(l,h)=>`Expected ${h} to have a maximum length of \`${f}\`, got \`${l.length}\``,validator:l=>l.length<=f})}startsWith(f){return this.addValidator({message:(l,h)=>`Expected ${h} to start with \`${f}\`, got \`${l[0]}\``,validator:l=>l[0]===f})}endsWith(f){return this.addValidator({message:(l,h)=>`Expected ${h} to end with \`${f}\`, got \`${l[l.length-1]}\``,validator:l=>l[l.length-1]===f})}includes(...f){return this.addValidator({message:(l,h)=>`Expected ${h} to include all elements of \`${JSON.stringify(f)}\`, got \`${JSON.stringify(l)}\``,validator:l=>f.every(h=>l.indexOf(h)!==-1)})}includesAny(...f){return this.addValidator({message:(l,h)=>`Expected ${h} to include any element of \`${JSON.stringify(f)}\`, got \`${JSON.stringify(l)}\``,validator:l=>f.some(h=>l.indexOf(h)!==-1)})}get empty(){return this.addValidator({message:(f,l)=>`Expected ${l} to be empty, got \`${JSON.stringify(f)}\``,validator:f=>f.length===0})}get nonEmpty(){return this.addValidator({message:(f,l)=>`Expected ${l} to not be empty`,validator:f=>f.length>0})}deepEqual(f){return this.addValidator({message:(l,h)=>`Expected ${h} to be deeply equal to \`${JSON.stringify(f)}\`, got \`${JSON.stringify(l)}\``,validator:l=>o.default(l,f)})}ofType(f){let l;return this.addValidator({message:(h,d)=>`(${d}) ${l}`,validator:h=>{try{for(const d of h)c.default(d,f);return!0}catch(d){return l=d.message,!1}}})}}},function(r,n){r.exports=function(a){return a.webpackPolyfill||(a.deprecate=function(){},a.paths=[],a.children||(a.children=[]),Object.defineProperty(a,"loaded",{enumerable:!0,get:function(){return a.l}}),Object.defineProperty(a,"id",{enumerable:!0,get:function(){return a.i}}),a.webpackPolyfill=1),a}},function(r,n,a){var s=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(n,"__esModule",{value:!0});const o=s(a(1)),c=s(a(25)),u=s(a(5)),f=a(0),l=s(a(3)),h=s(a(7)),d=s(a(27)),m=a(28);n.ObjectPredicate=class extends f.Predicate{constructor(b){super("object",b)}get plain(){return this.addValidator({message:(b,x)=>`Expected ${x} to be a plain object`,validator:b=>o.default.plainObject(b)})}get empty(){return this.addValidator({message:(b,x)=>`Expected ${x} to be empty, got \`${JSON.stringify(b)}\``,validator:b=>Object.keys(b).length===0})}get nonEmpty(){return this.addValidator({message:(b,x)=>`Expected ${x} to not be empty`,validator:b=>Object.keys(b).length>0})}valuesOfType(b){return this.addValidator({message:(x,y,g)=>`(${y}) ${g}`,validator:x=>{const y=Object.keys(x).map(g=>x[g]);return h.default(y,b)}})}deepValuesOfType(b){return this.addValidator({message:(x,y,g)=>`(${y}) ${g}`,validator:x=>d.default(x,b)})}deepEqual(b){return this.addValidator({message:(x,y)=>`Expected ${y} to be deeply equal to \`${JSON.stringify(b)}\`, got \`${JSON.stringify(x)}\``,validator:x=>u.default(x,b)})}instanceOf(b){return this.addValidator({message:(x,y)=>{let g=x.constructor.name;return g&&g!=="Object"||(g=JSON.stringify(x)),`Expected ${y} \`${g}\` to be of type \`${b.name}\``},validator:x=>x instanceof b})}hasKeys(...b){return this.addValidator({message:(x,y,g)=>`Expected ${y} to have keys \`${JSON.stringify(g)}\``,validator:x=>l.default({has:y=>c.default.has(x,y)},b)})}hasAnyKeys(...b){return this.addValidator({message:(x,y)=>`Expected ${y} to have any key of \`${JSON.stringify(b)}\``,validator:x=>b.some(y=>c.default.has(x,y))})}partialShape(b){return this.addValidator({message:(x,y,g)=>`${g.replace("Expected","Expected property")} in ${y}`,validator:x=>m.partial(x,b)})}exactShape(b){return this.addValidator({message:(x,y,g)=>`${g.replace("Expected","Expected property")} in ${y}`,validator:x=>m.exact(x,b)})}}},function(r,n,a){const s=a(26);function o(c){const u=c.split("."),f=[];for(let l=0;l<u.length;l++){let h=u[l];for(;h[h.length-1]==="\\"&&u[l+1]!==void 0;)h=h.slice(0,-1)+".",h+=u[++l];f.push(h)}return f}r.exports={get(c,u,f){if(!s(c)||typeof u!="string")return f===void 0?c:f;const l=o(u);for(let h=0;h<l.length;h++){if(!Object.prototype.propertyIsEnumerable.call(c,l[h]))return f;if((c=c[l[h]])==null){if(h!==l.length-1)return f;break}}return c},set(c,u,f){if(!s(c)||typeof u!="string")return c;const l=c,h=o(u);for(let d=0;d<h.length;d++){const m=h[d];s(c[m])||(c[m]={}),d===h.length-1&&(c[m]=f),c=c[m]}return l},delete(c,u){if(!s(c)||typeof u!="string")return;const f=o(u);for(let l=0;l<f.length;l++){const h=f[l];if(l===f.length-1)return void delete c[h];if(c=c[h],!s(c))return}},has(c,u){if(!s(c)||typeof u!="string")return!1;const f=o(u);for(let l=0;l<f.length;l++){if(!s(c)||!(f[l]in c))return!1;c=c[f[l]]}return!0}}},function(r,n,a){r.exports=function(s){var o=typeof s;return s!==null&&(o==="object"||o==="function")}},function(r,n,a){var s=this&&this.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(n,"__esModule",{value:!0});const o=s(a(1)),c=s(a(4)),u=(f,l)=>o.default.plainObject(f)?Object.keys(f).every(h=>u(f[h],l)):(c.default(f,l),!0);n.default=(f,l)=>{try{return u(f,l)}catch(h){return h.message}}},function(r,n,a){var s=this&&this.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(n,"__esModule",{value:!0});const o=s(a(1)),c=s(a(9)),u=a(2);n.partial=function f(l,h,d){try{for(const m of Object.keys(h)){const b=d?`${d}.${m}`:m;if(u.isPredicate(h[m]))c.default(l[m],b,h[m]);else if(o.default.plainObject(h[m])){const x=f(l[m],h[m],b);if(x!==!0)return x}}return!0}catch(m){return m.message}},n.exact=function f(l,h,d){try{const m=new Set(Object.keys(l));for(const b of Object.keys(h)){m.delete(b);const x=d?`${d}.${b}`:b;if(u.isPredicate(h[b]))c.default(l[b],x,h[b]);else if(o.default.plainObject(h[b])){if(!Object.prototype.hasOwnProperty.call(l,b))return`Expected \`${x}\` to exist`;const y=f(l[b],h[b],x);if(y!==!0)return y}}if(m.size>0){const b=Array.from(m.keys())[0];return`Did not expect property \`${d?`${d}.${b}`:b}\` to exist, got \`${l[b]}\``}return!0}catch(m){return m.message}}},function(r,n,a){Object.defineProperty(n,"__esModule",{value:!0});const s=a(0);n.DatePredicate=class extends s.Predicate{constructor(o){super("date",o)}before(o){return this.addValidator({message:(c,u)=>`Expected ${u} ${c.toISOString()} to be before ${o.toISOString()}`,validator:c=>c.getTime()<o.getTime()})}after(o){return this.addValidator({message:(c,u)=>`Expected ${u} ${c.toISOString()} to be after ${o.toISOString()}`,validator:c=>c.getTime()>o.getTime()})}}},function(r,n,a){Object.defineProperty(n,"__esModule",{value:!0});const s=a(0);n.ErrorPredicate=class extends s.Predicate{constructor(o){super("error",o)}name(o){return this.addValidator({message:(c,u)=>`Expected ${u} to have name \`${o}\`, got \`${c.name}\``,validator:c=>c.name===o})}message(o){return this.addValidator({message:(c,u)=>`Expected ${u} message to be \`${o}\`, got \`${c.message}\``,validator:c=>c.message===o})}messageIncludes(o){return this.addValidator({message:(c,u)=>`Expected ${u} message to include \`${o}\`, got \`${c.message}\``,validator:c=>c.message.includes(o)})}hasKeys(...o){return this.addValidator({message:(c,u)=>`Expected ${u} message to have keys \`${o.join("`, `")}\``,validator:c=>o.every(u=>c.hasOwnProperty(u))})}instanceOf(o){return this.addValidator({message:(c,u)=>`Expected ${u} \`${c.name}\` to be of type \`${o.name}\``,validator:c=>c instanceof o})}get typeError(){return this.instanceOf(TypeError)}get evalError(){return this.instanceOf(EvalError)}get rangeError(){return this.instanceOf(RangeError)}get referenceError(){return this.instanceOf(ReferenceError)}get syntaxError(){return this.instanceOf(SyntaxError)}get uriError(){return this.instanceOf(URIError)}}},function(r,n,a){var s=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(n,"__esModule",{value:!0});const o=s(a(5)),c=a(0),u=s(a(3)),f=s(a(7));n.MapPredicate=class extends c.Predicate{constructor(l){super("Map",l)}size(l){return this.addValidator({message:(h,d)=>`Expected ${d} to have size \`${l}\`, got \`${h.size}\``,validator:h=>h.size===l})}minSize(l){return this.addValidator({message:(h,d)=>`Expected ${d} to have a minimum size of \`${l}\`, got \`${h.size}\``,validator:h=>h.size>=l})}maxSize(l){return this.addValidator({message:(h,d)=>`Expected ${d} to have a maximum size of \`${l}\`, got \`${h.size}\``,validator:h=>h.size<=l})}hasKeys(...l){return this.addValidator({message:(h,d,m)=>`Expected ${d} to have keys \`${JSON.stringify(m)}\``,validator:h=>u.default(h,l)})}hasAnyKeys(...l){return this.addValidator({message:(h,d)=>`Expected ${d} to have any key of \`${JSON.stringify(l)}\``,validator:h=>l.some(d=>h.has(d))})}hasValues(...l){return this.addValidator({message:(h,d,m)=>`Expected ${d} to have values \`${JSON.stringify(m)}\``,validator:h=>u.default(new Set(h.values()),l)})}hasAnyValues(...l){return this.addValidator({message:(h,d)=>`Expected ${d} to have any value of \`${JSON.stringify(l)}\``,validator:h=>{const d=new Set(h.values());return l.some(m=>d.has(m))}})}keysOfType(l){return this.addValidator({message:(h,d,m)=>`(${d}) ${m}`,validator:h=>f.default(h.keys(),l)})}valuesOfType(l){return this.addValidator({message:(h,d,m)=>`(${d}) ${m}`,validator:h=>f.default(h.values(),l)})}get empty(){return this.addValidator({message:(l,h)=>`Expected ${h} to be empty, got \`${JSON.stringify(Array.from(l))}\``,validator:l=>l.size===0})}get nonEmpty(){return this.addValidator({message:(l,h)=>`Expected ${h} to not be empty`,validator:l=>l.size>0})}deepEqual(l){return this.addValidator({message:(h,d)=>`Expected ${d} to be deeply equal to \`${JSON.stringify(Array.from(l))}\`, got \`${JSON.stringify(Array.from(h))}\``,validator:h=>o.default(h,l)})}}},function(r,n,a){var s=this&&this.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(n,"__esModule",{value:!0});const o=a(0),c=s(a(3));n.WeakMapPredicate=class extends o.Predicate{constructor(u){super("WeakMap",u)}hasKeys(...u){return this.addValidator({message:(f,l,h)=>`Expected ${l} to have keys \`${JSON.stringify(h)}\``,validator:f=>c.default(f,u)})}hasAnyKeys(...u){return this.addValidator({message:(f,l)=>`Expected ${l} to have any key of \`${JSON.stringify(u)}\``,validator:f=>u.some(l=>f.has(l))})}}},function(r,n,a){var s=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(n,"__esModule",{value:!0});const o=s(a(5)),c=a(0),u=s(a(3)),f=s(a(7));n.SetPredicate=class extends c.Predicate{constructor(l){super("Set",l)}size(l){return this.addValidator({message:(h,d)=>`Expected ${d} to have size \`${l}\`, got \`${h.size}\``,validator:h=>h.size===l})}minSize(l){return this.addValidator({message:(h,d)=>`Expected ${d} to have a minimum size of \`${l}\`, got \`${h.size}\``,validator:h=>h.size>=l})}maxSize(l){return this.addValidator({message:(h,d)=>`Expected ${d} to have a maximum size of \`${l}\`, got \`${h.size}\``,validator:h=>h.size<=l})}has(...l){return this.addValidator({message:(h,d,m)=>`Expected ${d} to have items \`${JSON.stringify(m)}\``,validator:h=>u.default(h,l)})}hasAny(...l){return this.addValidator({message:(h,d)=>`Expected ${d} to have any item of \`${JSON.stringify(l)}\``,validator:h=>l.some(d=>h.has(d))})}ofType(l){return this.addValidator({message:(h,d,m)=>`(${d}) ${m}`,validator:h=>f.default(h,l)})}get empty(){return this.addValidator({message:(l,h)=>`Expected ${h} to be empty, got \`${JSON.stringify(Array.from(l))}\``,validator:l=>l.size===0})}get nonEmpty(){return this.addValidator({message:(l,h)=>`Expected ${h} to not be empty`,validator:l=>l.size>0})}deepEqual(l){return this.addValidator({message:(h,d)=>`Expected ${d} to be deeply equal to \`${JSON.stringify(Array.from(l))}\`, got \`${JSON.stringify(Array.from(h))}\``,validator:h=>o.default(h,l)})}}},function(r,n,a){var s=this&&this.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(n,"__esModule",{value:!0});const o=a(0),c=s(a(3));n.WeakSetPredicate=class extends o.Predicate{constructor(u){super("WeakSet",u)}has(...u){return this.addValidator({message:(f,l,h)=>`Expected ${l} to have items \`${JSON.stringify(h)}\``,validator:f=>c.default(f,u)})}hasAny(...u){return this.addValidator({message:(f,l)=>`Expected ${l} to have any item of \`${JSON.stringify(u)}\``,validator:f=>u.some(l=>f.has(l))})}}},function(r,n,a){Object.defineProperty(n,"__esModule",{value:!0});const s=a(8),o=a(2);n.AnyPredicate=class{constructor(c,u={}){this.predicates=c,this.options=u}[o.testSymbol](c,u,f){const l=["Any predicate failed with the following errors:"];for(const h of this.predicates)try{return void u(c,f,h)}catch(d){if(c===void 0&&this.options.optional===!0)return;l.push(`- ${d.message}`)}throw new s.ArgumentError(l.join(`
138
+ `),u)}}}]);const e=t.exports;t.exports=e.default,Object.assign(t.exports,e)})(Jd);var Yd=Jd.exports,Ka={},Au={};Object.defineProperty(Au,"__esModule",{value:!0});class Wn{constructor(e){this.pretty=!1,this.pretty=e}format(e,r){const n=Object.assign({},r,e);return this.pretty?JSON.stringify(n,void 0,2)+`
139
+ `:JSON.stringify(n)}getName(){return this.pretty?Wn.FORMAT_NAME_PRETTY:Wn.FORMAT_NAME}}Wn.FORMAT_NAME="json";Wn.FORMAT_NAME_PRETTY="json_pretty";Au.JsonLogFormat=Wn;var ku={},Qa={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.EMPTY_METADATA={};function r(n){let a=n.service?`${n.service}.`:n.project?`${n.project}.`:"";return a+=n.module?`${n.module}.`:"",a+=n.library?`[${n.library}].`:"",a+=n.tag||"",a||(a="universe-log-empty-id"),a}e.getBestIdentifier=r}(t.LogMetadata||(t.LogMetadata={}))})(Qa);var Ii={};Object.defineProperty(Ii,"__esModule",{value:!0});class nb{static getTimestamp(){return Date.now()}static getUTCISOTime(){return new Date().toISOString()}}Ii.TimeUtils=nb;Object.defineProperty(ku,"__esModule",{value:!0});const ab=Qa,sb=Ii;class Fi{format(e,r){const n=e.time_iso||new Date(e.timestamp).toISOString()||sb.TimeUtils.getUTCISOTime();return`${ab.LogMetadata.getBestIdentifier(r)} | ${n} [${e.level}]: ${e.message}`+this.includeStackIfPresent(e)}getName(){return Fi.FORMAT_NAME}includeStackIfPresent(e){return e.error&&e.error.stack?`
140
+ ${e.error.stack}`:""}}Fi.FORMAT_NAME="oneline";ku.OnelineLogFormat=Fi;(function(t){Object.defineProperty(t,"__esModule",{value:!0});const e=sa,r=Au,n=ku;(function(a){a.FORMATS={json:new r.JsonLogFormat(!1),json_pretty:new r.JsonLogFormat(!0),oneline:new n.OnelineLogFormat},a.KEYS=Object.freeze({json:"json",json_pretty:"json_pretty",oneline:"oneline"}),a.DEFAULT_FORMAT=a.FORMATS.oneline;function s(o){if(typeof a.FORMATS[o]>"u"){const c=Object.keys(a.FORMATS).join(",");throw new e.UniverseLogError(`There is no such log format: '${o}'. Available formats: [ ${c} ]`)}return a.FORMATS[o]}a.valueOf=s})(t.LogFormats||(t.LogFormats={}))})(Ka);var ju={};Object.defineProperty(ju,"__esModule",{value:!0});class ib{static log(e){console.error(`UniverseLog.FallbackLog: ${e}`)}}ju.FallbackLog=ib;var Ri={};Object.defineProperty(Ri,"__esModule",{value:!0});const Zs=sa,ob=new Function("try {return this===window;}catch(e){ return false;}"),ub=new Function("try {return this===global;}catch(e){return false;}"),lb=new Function("try {return this;}catch(e){return undefined}");function cb(t){const e=lb();if(!e)throw new Zs.UniverseLogError("PortableEnv: environment is browser, but could not get window object");return e[t]}function db(t){if(!process)throw new Zs.UniverseLogError("PortableEnv: environment is node, but process object does not exist");if(!process.env)throw new Zs.UniverseLogError("PortableEnv: environment is node, but process.env object does not exist");if(process.env[t])return process.env[t]}function fb(t){if(ob())return cb(t);if(ub())return db(t);throw new Zs.UniverseLogError("PortableEnv: unknown environment (not browser, not node)")}Ri.PortableEnv=fb;var Bi={};Object.defineProperty(Bi,"__esModule",{value:!0});let ia=class{};ia.LEAST_LEVEL_ENV="LOG_LEVEL";ia.LOG_FORMAT_ENV="LOG_FORMAT";ia.LOG_METADATA_ENV="LOG_METADATA";ia.REEVALUATE_CONFIG_AFTER_MS=150;ia.DEFAULT_LOG_FN=t=>console.error(t);Bi.StaticConfig=ia;var hb=J&&J.__rest||function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(t);a<n.length;a++)e.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(t,n[a])&&(r[n[a]]=t[n[a]]);return r};Object.defineProperty(Nu,"__esModule",{value:!0});const nn=Yd,pb=Ka,mb=ju,ys=aa,Wl=Qa,bo=Ri,Ea=Bi;class gb{constructor(e){this.levelEvaluationEnvNames=[],this.level=ys.LogLevel.DEFAULT_LEVEL,this.metadata=Wl.LogMetadata.EMPTY_METADATA,this.nextReevaluateTimestampMs=0,this.levelEvaluationEnvNames=e.levelEvaluationEnvNames,nn.default(this.levelEvaluationEnvNames,"levelEvaluationEnvNames",nn.default.array.ofType(nn.default.string)),this.fallbackLog=e.fallbackLog,nn.default(this.fallbackLog,"fallbackLog",nn.default.function),this.defaultFormat=e.defaultFormat,nn.default(this.defaultFormat,"defaultFormat",nn.default.object),this.format=this.defaultFormat,this.evaluateIfRequired()}setLevelEvaluationEnvNames(e){this.levelEvaluationEnvNames=e,this.evaluateIfRequired()}getLevel(){return this.level}getFormat(){return this.format}getMetadata(){return this.metadata}evaluateIfRequired(){if(!(Date.now()<this.nextReevaluateTimestampMs))try{this.nextReevaluateTimestampMs=Date.now()+Ea.StaticConfig.REEVALUATE_CONFIG_AFTER_MS,this.evaluate()}catch(e){this.fallbackLog(`Could not evaluate live log config: ${e}: ${e.stack}`)}}evaluate(){this.format=this.evaluateFormat(),this.level=this.evaluateLogLevel(),this.metadata=this.evaluateMetadata()}evaluateFormat(){const e=bo.PortableEnv(Ea.StaticConfig.LOG_FORMAT_ENV);return e?pb.LogFormats.valueOf(e):this.defaultFormat}evaluateLogLevel(){const e=this.chooseMostVerboseLevel(this.getEnvValues(this.levelEvaluationEnvNames));if(e)return e;const r=this.chooseMostVerboseLevel(this.getEnvValues([Ea.StaticConfig.LEAST_LEVEL_ENV]));return r||ys.LogLevel.DEFAULT_LEVEL}getEnvValues(e){return e.map(n=>bo.PortableEnv(n)).filter(n=>!!n).map(n=>n||"unreachable")}chooseMostVerboseLevel(e){const r=e.map(a=>ys.LogLevel.valueOf(a));return r.length===0?void 0:r.reduce((a,s)=>ys.LogLevel.moreVerbose(a,s))}evaluateMetadata(){try{const e=bo.PortableEnv(Ea.StaticConfig.LOG_METADATA_ENV);if(e){const r=JSON.parse(e);return this.removeTagFromMetadata(r)}}catch(e){mb.FallbackLog.log(`Could not parse value of ${Ea.StaticConfig.LOG_METADATA_ENV} env: ${e}`)}return Wl.LogMetadata.EMPTY_METADATA}removeTagFromMetadata(e){const{tag:r}=e;return hb(e,["tag"])}}Nu.LiveLogConfig=gb;var Su={};Object.defineProperty(Su,"__esModule",{value:!0});const bb=Br,xb=aa,Gl=Ii;class Bt{static parse(e,r){let n=Bt.basicLogMsg(e);for(const a of r)n=Object.assign({},n,Bt.parseElem(a,n));return n}static basicLogMsg(e){return{time_iso:Gl.TimeUtils.getUTCISOTime(),timestamp:Gl.TimeUtils.getTimestamp(),level:e,level_value:xb.LogLevel.LEVELS_VALUES[e]}}static parseElem(e,r){return typeof e=="string"?Bt.parseString(e,r):e instanceof Error?Bt.parseError(e,r):typeof e=="object"?Bt.parseObject(e,r):Bt.parseOther(e,r)}static parseString(e,r){return{message:(r.message?r.message+"; ":"")+e}}static parseError(e,r){const n={};return n.message=(r.message?r.message+"; ":"")+(e+"").trim(),r.error?(n.other_errors=[...r.other_errors||[]],n.other_errors.push(Bt.errorToObj(e))):n.error=Bt.errorToObj(e),n}static errorToObj(e){return e instanceof bb.default?Object.assign({name:e.name,message:e.message,stack:e.stack},e.cause?{cause:Bt.errorToObj(e.cause)}:{}):{name:e.name,message:e.message,stack:e.stack}}static parseObject(e,r){return Object.assign({},e)}static parseOther(e,r){return{others:[...r.others||[],e]}}}Su.ParseLogMsg=Bt;var Du={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});const e=Yd,r=Ka;(function(n){function a(s){e.default(s.levelEnvs,"Properties.levelEnvs",e.default.any(e.default.undefined,e.default.array.ofType(e.default.string))),e.default(s.metadata,"Properties.metadata",e.default.optional.object),e.default(s.logFn,"Properties.logFn",e.default.any(e.default.undefined,e.default.function)),e.default(s.defaultFormat,"Properties.defaultFormat",e.default.optional.string.oneOf(Object.keys(r.LogFormats.KEYS)))}n.validate=a})(t.Properties||(t.Properties={}))})(Du);Object.defineProperty(Mi,"__esModule",{value:!0});const yb=Nu,xo=aa,vb=Qa,wb=Bi,Jl=Ka,_b=Su,Eb=Du;class Tu{constructor(e){if(this.instanceMetadata=vb.LogMetadata.EMPTY_METADATA,"clone"in e){this.instanceMetadata=Object.assign({},e.clone.instanceMetadata,e.newMetadata),this.liveConfig=e.clone.liveConfig,this.logFn=e.clone.logFn;return}Eb.Properties.validate(e),e.metadata&&(this.instanceMetadata=e.metadata),e.logFn?this.logFn=e.logFn:this.logFn=wb.StaticConfig.DEFAULT_LOG_FN;const r=e.defaultFormat?Jl.LogFormats.valueOf(e.defaultFormat):Jl.LogFormats.DEFAULT_FORMAT;this.liveConfig=new yb.LiveLogConfig({levelEvaluationEnvNames:e.levelEnvs||[],fallbackLog:this.logFn,defaultFormat:r})}cloneWithMetadata(e){return new Tu({clone:this,newMetadata:e})}getLevel(){return this.liveConfig.getLevel()}getFormatName(){return this.liveConfig.getFormat().getName()}getMetadata(){return Object.assign({},this.instanceMetadata,this.liveConfig.getMetadata())}doEfficientLog(e,r){this.reevaluateConfigIfRequired();const n=xo.LogLevel.LEVELS_VALUES[this.getLevel()];xo.LogLevel.LEVELS_VALUES[e]<=n&&this.doLog(e,r())}doLog(e,...r){if(this.reevaluateConfigIfRequired(),r.length!==0&&(r.length===1&&Array.isArray(r[0])&&(r=r[0]),xo.LogLevel.isLessOrEquallyVerbose({level:e,threshold:this.getLevel()}))){const n=_b.ParseLogMsg.parse(e,r),a=this.liveConfig.getFormat().format(n,this.getMetadata());this.rawWriteToLog(a)}}rawWriteToLog(e){this.logFn(e)}reevaluateConfigIfRequired(){this.liveConfig.evaluateIfRequired()}}Mi.LogEngine=Tu;Object.defineProperty(Li,"__esModule",{value:!0});const at=aa,Yl=Mi;class Nb{constructor(e){e instanceof Yl.LogEngine?this.logEngine=e:this.logEngine=new Yl.LogEngine(e)}getLevel(){return this.logEngine.getLevel()}getFormatName(){return this.logEngine.getFormatName()}getMetadata(){return this.logEngine.getMetadata()}isDebug(){return at.LogLevel.LEVELS_VALUES[this.getLevel()]>=at.LogLevel.LEVELS_VALUES.debug}error(...e){this.doLog(at.LogLevel.error,e)}errorGen(e){this.doEfficientLog(at.LogLevel.error,e)}warn(...e){this.doLog(at.LogLevel.warn,e)}warnGen(e){this.doEfficientLog(at.LogLevel.warn,e)}info(...e){this.doLog(at.LogLevel.info,e)}infoGen(e){this.doEfficientLog(at.LogLevel.info,e)}http(...e){this.doLog(at.LogLevel.http,e)}httpGen(e){this.doEfficientLog(at.LogLevel.http,e)}verbose(...e){this.doLog(at.LogLevel.verbose,e)}verboseGen(e){this.doEfficientLog(at.LogLevel.verbose,e)}debug(...e){this.doLog(at.LogLevel.debug,e)}debugGen(e){this.doEfficientLog(at.LogLevel.debug,e)}silly(...e){this.doLog(at.LogLevel.silly,e)}sillyGen(e){this.doEfficientLog(at.LogLevel.silly,e)}doEfficientLog(e,r){this.logEngine.doEfficientLog(e,r)}doLog(e,...r){this.logEngine.doLog(e,...r)}getEngine(){return this.logEngine}}Li.AbstractUniverseLog=Nb;var Cu={};Object.defineProperty(Cu,"__esModule",{value:!0});const Ab=Li;class Ou extends Ab.AbstractUniverseLog{constructor(e){super(e)}tag(e){return new Ou(super.getEngine().cloneWithMetadata({tag:e}))}}Cu.BasicTaggedUniverseLog=Ou;Object.defineProperty(zt,"__esModule",{value:!0});var kb=Li;zt.AbstractUniverseLog=kb.AbstractUniverseLog;var jb=Mi;zt.LogEngine=jb.LogEngine;var Sb=Du;zt.UniverseLogProperties=Sb.Properties;var Db=Cu;zt.BasicTaggedUniverseLog=Db.BasicTaggedUniverseLog;var Tb=Qa;zt.LogMetadata=Tb.LogMetadata;var Cb=aa;zt.LogLevel=Cb.LogLevel;var Ob=Ri;zt.PortableEnv=Ob.PortableEnv;var $b=sa;zt.UniverseLogError=$b.UniverseLogError;var Pb=Ka;zt.LogFormats=Pb.LogFormats;Object.defineProperty($t,"__esModule",{value:!0});$t.Log=void 0;const Lb=zt;class Ia extends Lb.AbstractUniverseLog{static log(){return Ia.INSTANCE}constructor(){super({levelEnvs:["HIVE_CONTENT_RENDERER_LOG_LEVEL","ENGRAVE_LOG_LEVEL"],metadata:{library:"@hiveio/content-renderer"}})}}$t.Log=Ia;Ia.INSTANCE=new Ia;var Vi={},qi={};Object.defineProperty(qi,"__esModule",{value:!0});qi.Phishing=void 0;const Mb=["steewit.com","śteemit.com","ŝteemit.com","şteemit.com","šteemit.com","sţeemit.com","sťeemit.com","șteemit.com","sleemit.com","aba.ae","autobidbot.cf","autobidbot.ga","autobidbot.gq","autobotsteem.cf","autobotsteem.ga","autobotsteem.gq","autobotsteem.ml","autosteem.info","autosteembot.cf","autosteembot.ga","autosteembot.gq","autosteembot.ml","autosteemit.wapka.mobi","boostbot.ga","boostbot.gq","boostwhaleup.cf","cutt.us","dereferer.me","eb2a.com","lordlinkers.tk","nullrefer.com","steeemit.ml","steeemitt.aba.ae","steemart.ga","steemautobot.bid","steemautobot.cf","steemautobot.trade","steemers.aba.ae","steemiit.cf","steemiit.ga","steemij.tk","steemik.ga","steemik.tk","steemil.com","steemil.ml","steemir.tk","steemitou.co.nf","steemitservices.ga","steemitservices.gq","steemiz.tk","steemnow.cf","steemnow.ga","steemnow.gq","steemnow.ml","steempostupper.win","steemrewards.ml","steemrobot.ga","steemrobot.ml","steemupgot.cf","steemupgot.ga","steemupgot.gq","steemupper.cf","steemupper.ga","steemupper.gq","steemupper.ml","steenit.cf","stemit.com","stssmater.aba.ae","uppervotes.ga","uppervotes.gq","upperwhaleplus.cf","upperwhaleplus.ga","upperwhaleplus.gq","upvoteme.cf","upvoteme.ga","upvoteme.gq","upvoteme.ml","url.rw","us.aba.ae","whaleboostup.ga","whaleboostup.ml"];class Zd{}qi.Phishing=Zd;Zd.looksPhishy=t=>{for(const e of Mb)if(t.toLocaleLowerCase().indexOf(e)>-1)return!0;return!1};var Ib=J&&J.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Vi,"__esModule",{value:!0});Vi.LinkSanitizer=void 0;const vs=Ib(Kn),yo=$t,Fb=qi;class $u{constructor(e){this.validate(e),this.options=e,this.baseUrl=new URL(this.options.baseUrl),this.topLevelsBaseDomain=$u.getTopLevelBaseDomainFromBaseUrl(this.baseUrl)}sanitizeLink(e,r){return e=this.prependUnknownProtocolLink(e),yo.Log.log().debug("LinkSanitizer#sanitizeLink",{url:e,urlTitle:r}),Fb.Phishing.looksPhishy(e)?(yo.Log.log().debug("LinkSanitizer#sanitizeLink","phishing link detected","phishing list",e,{url:e,urlTitle:r}),!1):this.isPseudoLocalUrl(e,r)?(yo.Log.log().debug("LinkSanitizer#sanitizeLink","phishing link detected","pseudo local url",e,{url:e,urlTitle:r}),!1):e}static getTopLevelBaseDomainFromBaseUrl(e){const n=/([^\s/$.?#]+\.[^\s/$.?#]+)$/g.exec(e.hostname);if(n&&n[0])return n[0];throw new Error(`LinkSanitizer: could not determine top level base domain from baseUrl hostname: ${e.hostname}`)}prependUnknownProtocolLink(e){return/^((#)|(\/(?!\/))|(((hive|https?):)?\/\/))/.test(e)||(e="https://"+e),e}isPseudoLocalUrl(e,r){if(e.indexOf("#")===0)return!1;e=e.toLowerCase(),r=r.toLowerCase();try{const n=r.indexOf(this.topLevelsBaseDomain)!==-1,a=e.indexOf(this.topLevelsBaseDomain)!==-1;if(n&&!a)return!0}catch(n){if(n instanceof TypeError)return!1;throw n}return!1}validate(e){(0,vs.default)(e,"LinkSanitizerOptions",vs.default.object),(0,vs.default)(e.baseUrl,"LinkSanitizerOptions.baseUrl",vs.default.string.nonEmpty)}}Vi.LinkSanitizer=$u;var oa={},Rb=J&&J.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(oa,"__esModule",{value:!0});oa.Localization=void 0;const ft=Rb(Kn);class Xd{static validate(e){(0,ft.default)(e,"LocalizationOptions",ft.default.object),(0,ft.default)(e.phishingWarning,"LocalizationOptions.phishingWarning",ft.default.string.nonEmpty),(0,ft.default)(e.externalLink,"LocalizationOptions.externalLink",ft.default.string.nonEmpty),(0,ft.default)(e.noImage,"LocalizationOptions.noImage",ft.default.string.nonEmpty),(0,ft.default)(e.accountNameWrongLength,"LocalizationOptions.accountNameWrongLength",ft.default.string.nonEmpty),(0,ft.default)(e.accountNameBadActor,"LocalizationOptions.accountNameBadActor",ft.default.string.nonEmpty),(0,ft.default)(e.accountNameWrongSegment,"LocalizationOptions.accountNameWrongSegment",ft.default.string.nonEmpty)}}oa.Localization=Xd;Xd.DEFAULT={phishingWarning:"Link expanded to plain text; beware of a potential phishing attempt",externalLink:"This link will take you away from example.com",noImage:"Images not allowed",accountNameWrongLength:"Account name should be between 3 and 16 characters long",accountNameBadActor:"This account is on a bad actor list",accountNameWrongSegment:"This account name contains a bad segment"};var Ui={},rr={};Object.defineProperty(rr,"__esModule",{value:!0});rr.AbstractEmbedder=void 0;class Bb{static getEmbedMarker(e,r){return`~~~ embed:${e} ${r} ~~~`}static insertAllEmbeds(e,r,n){const a=[];for(let s of r.split("~~~ embed:")){const o=s.match(/^([A-Za-z0-9?/=_-]+) ([^ ]*) ~~~/);if(o&&o.length>=3){const c=o[1],u=o[2];for(const f of e)if(f.type==u){a.push(f.processEmbed(c,n));break}if(s=s.substring(`${c} ${u} ~~~`.length),s==="")continue}a.push(s)}return a.join("")}}rr.AbstractEmbedder=Bb;var zi={};Object.defineProperty(zi,"__esModule",{value:!0});zi.SpotifyEmbedder=void 0;const Vb=$t,qb=rr;class Fa extends qb.AbstractEmbedder{constructor(){super(...arguments),this.type="spotify"}static extractMetadata(e){if(!e)return;const r=e.match(Fa.regex.main);return!r||r.length<2?void 0:{id:`${r[1]==="show"||r[1]==="episode"?"embed-podcast":"embed"}/${r[1]}/${r[2]}`,url:r[0],canonical:`https://open.spotify.com/${r[1]}/${r[2]}`}}getEmbedMetadata(e){try{const r=Fa.extractMetadata(e.data);return r?{id:r.id,url:r.url,image:r.canonical}:void 0}catch(r){Vb.Log.log().error(r)}}processEmbed(e,r){return`<div class="videoWrapper"><iframe src="${`https://open.spotify.com/${e}`}" width="${r.width}" height="${r.height}" frameBorder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen ></iframe></div>`}}zi.SpotifyEmbedder=Fa;Fa.regex={main:/https?:\/\/open.spotify.com\/(playlist|show|episode|album|track|artist)\/(.*)/i,sanitize:/^https:\/\/open\.spotify\.com\/(embed|embed-podcast)\/(playlist|show|episode|album|track|artist)\/(.*)/i};var Hi={};Object.defineProperty(Hi,"__esModule",{value:!0});Hi.ThreeSpeakEmbedder=void 0;const Ub=$t,zb=rr;class Wi extends zb.AbstractEmbedder{constructor(){super(...arguments),this.type="3speak"}getEmbedMetadata(e){const r=typeof e=="string"?e:e.data;try{const n=r.match(Wi.linkRegex);if(n&&n[1])return{id:n[1],url:r}}catch(n){Ub.Log.log().error(n)}}processEmbed(e,r){const n=`https://3speak.tv/embed?v=${e}`;return`<div class="threeSpeakWrapper"><iframe width="${r.width}" height="${r.height}" src="${n}" frameborder="0" allowfullscreen></iframe></div>`}}Hi.ThreeSpeakEmbedder=Wi;Wi.linkRegex=/^(?:https?:\/\/)?(?:(?:3speak\.(?:tv|online|co)\/watch\?v=)|(?:3speak\.tv\/embed\?v=))([a-zA-Z0-9_.-]+\/[a-zA-Z0-9_-]+)(?:&.*)?$/;var Gi={},Pu={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.imageFile=t.image=t.remote=t.local=t.any=void 0;const e='[^\\s"<>\\]\\[\\(\\)]',r=e.replace(/\]$/,".,']"),n="(?:(?:\\.(?:tiff?|jpe?g|gif|png|svg|ico)|ipfs/[a-z\\d]{40,}))",a="(?:[-a-zA-Z0-9\\._]*[-a-zA-Z0-9])",s="(?:"+e+"*"+r+")?",o=({domain:d=a,path:m=""}={})=>`https?://${d}(?::\\d{2,5})?(?:[/\\?#]${s}${m||""})${m?"":"?"}`,c=(d="i")=>new RegExp(o(),d);t.any=c;const u=(d="i")=>new RegExp(o({domain:"(?:localhost|(?:.*\\.)?hive.blog)"}),d);t.local=u;const f=(d="i")=>new RegExp(o({domain:`(?!localhost|(?:.*\\.)?hive.blog)${a}`}),d);t.remote=f;const l=(d="i")=>new RegExp(o({path:n}),d);t.image=l;const h=(d="i")=>new RegExp(n,d);t.imageFile=h,t.default={any:(0,t.any)(),local:(0,t.local)(),remote:(0,t.remote)(),image:(0,t.image)(),imageFile:(0,t.imageFile)(),vimeo:/https?:\/\/(?:vimeo.com\/|player.vimeo.com\/video\/)([0-9]+)\/*/,vimeoId:/(?:vimeo.com\/|player.vimeo.com\/video\/)([0-9]+)/,twitch:/https?:\/\/(?:www.)?twitch.tv\/(?:(videos)\/)?([a-zA-Z0-9][\w]{3,24})/i,ipfsProtocol:/^((\/\/?ipfs\/)|(ipfs:\/\/))/}})(Pu);var Hb=J&&J.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Gi,"__esModule",{value:!0});Gi.TwitchEmbedder=void 0;const Wb=$t,Gb=Hb(Pu),Jb=rr;class Yb extends Jb.AbstractEmbedder{constructor(e){super(),this.type="twitch",this.domain=new URL(e.baseUrl).hostname}getEmbedMetadata(e){try{const r=e.data,n=this.twitchId(r);return n?Object.assign({},n):void 0}catch(r){Wb.Log.log().error(r)}}processEmbed(e,r){return`<div class="videoWrapper"><iframe src=${`https://player.twitch.tv/${e}&parent=${this.domain}`} width=${r.width} height=${r.height} frameBorder="0" allowFullScreen></iframe></div>`}twitchId(e){if(!e)return null;const r=e.match(Gb.default.twitch);return!r||r.length<3?null:{id:r[1]==="videos"?`?video=${r[2]}`:`?channel=${r[2]}`,url:r[0],canonical:r[1]==="videos"?`https://player.twitch.tv/?video=${r[2]}`:`https://player.twitch.tv/?channel=${r[2]}`}}}Gi.TwitchEmbedder=Yb;var Ji={},es={};Object.defineProperty(es,"__esModule",{value:!0});es.StaticConfig=void 0;class Kd{}es.StaticConfig=Kd;Kd.sanitization={iframeWhitelist:[{re:/^(?:@?(?:https?:)?\/\/)?(?:www\.)?(twitter|x)\.com\/(?:\w+\/status|status)\/(\d{1,20})/i,fn:t=>{if(!t)return null;const r=t.replace(/^(@|https?:\/\/)/,"").match(/(?:twitter|x)\.com\/(?:\w+\/status|status)\/(\d{1,20})/i);return!r||r.length!==2?null:`https://platform.twitter.com/embed/Tweet.html?id=${r[1]}`}},{re:/^(https?:)?\/\/player.vimeo.com\/video\/.*/i,fn:t=>{if(!t)return null;const e=t.match(/https:\/\/player\.vimeo\.com\/video\/([0-9]+)/);return!e||e.length!==2?null:"https://player.vimeo.com/video/"+e[1]}},{re:/^(https?:)?\/\/www.youtube.com\/embed\/.*/i,fn:t=>t.replace(/\?.+$/,"")},{re:/^https:\/\/w.soundcloud.com\/player\/.*/i,fn:t=>{if(!t)return null;const e=t.match(/url=(.+?)&/);return!e||e.length!==2?null:`https://w.soundcloud.com/player/?url=${e[1]}&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true`}},{re:/^(https?:)?\/\/player.twitch.tv\/.*/i,fn:t=>t},{re:/^https:\/\/open\.spotify\.com\/(embed|embed-podcast)\/(playlist|show|episode|album|track|artist)\/(.*)/i,fn:t=>t},{re:/^(?:https?:)?\/\/(?:3speak\.(?:tv|online|co))\/embed\?v=([^&\s]+)/i,fn:t=>{if(!t)return null;const e=t.match(/3speak\.(?:tv|online|co)\/embed\?v=([^&\s]+)/i);return!e||e.length!==2?null:`https://3speak.tv/embed?v=${e[1]}`}},{re:/^(?:https?:)?\/\/(?:3speak\.(?:tv|online|co))\/watch\?v=([^&\s]+)/i,fn:t=>{if(!t)return null;const e=t.match(/3speak\.(?:tv|online|co)\/watch\?v=([^&\s]+)/i);return!e||e.length!==2?null:`https://3speak.tv/embed?v=${e[1]}`}},{re:/^(?:https:)\/\/(?:www\.)?(twitter|x)\.com\/(?:\w+\/status|status)\/(\d{1,20})/i,fn:t=>{if(!t)return null;const e=t.match(/(?:twitter|x)\.com\/(?:\w+\/status|status)\/(\d{1,20})/i);return!e||e.length!==2?null:`https://platform.twitter.com/embed/Tweet.html?id=${e[1]}`}}],noImageText:"(Image not shown due to low ratings)",allowedTags:`
133
141
  div, iframe, del,
134
142
  a, p, b, i, q, br, ul, li, ol, img, h1, h2, h3, h4, h5, h6, hr,
135
143
  blockquote, pre, code, em, strong, center, table, thead, tbody, tr, th, td,
136
144
  strike, sup, sub
137
- `.trim().split(/,\s*/)};var vo;Object.defineProperty(Bi,"__esModule",{value:!0});Bi.TwitterEmbedder=void 0;const Zb=ht,Qd=Ca,Xb=Pt;class ga extends Xb.AbstractEmbedder{constructor(){super(...arguments),this.type="twitter"}getEmbedMetadata(e){const r=typeof e=="string"?e:e.data;try{const n=ga.getTwitterMetadataFromLink(r);return n?{id:n.id,url:n.url}:void 0}catch(n){Zb.Log.log().error(n)}}processEmbed(e,r){const n=Qd.StaticConfig.sanitization.iframeWhitelist.find(s=>s.re.toString().includes("twitter")),a=n==null?void 0:n.fn(`https://twitter.com/status/${e}`);return a?`<div class="twitterWrapper"><iframe width="${r.width}" height="${r.height}" src="${a}" frameborder="0" scrolling="no" allowtransparency="true" allowfullscreen="true"></iframe></div>`:""}static getTwitterMetadataFromLink(e){if(!e)return;const r=e.replace(/^(@|https:\/\/)/,""),n=r.match(ga.linkRegex);if(!n)return;const a=n[2],s=`https://${r}`;return{id:a,url:s}}}Bi.TwitterEmbedder=ga;ga.linkRegex=(vo=Qd.StaticConfig.sanitization.iframeWhitelist.find(t=>t.re.toString().includes("twitter")))===null||vo===void 0?void 0:vo.re;var Vi={};Object.defineProperty(Vi,"__esModule",{value:!0});Vi.VimeoEmbedder=void 0;const Kb=ht,Qb=Pt;class qi extends Qb.AbstractEmbedder{constructor(){super(...arguments),this.type="vimeo"}getEmbedMetadata(e){try{const r=e.data,n=this.extractMetadata(r);return n?{id:n.id,url:n.url}:void 0}catch(r){Kb.Log.log().error(r)}}processEmbed(e,r){return`<div class="videoWrapper"><iframe src=${this.generateCanonicalUrl(e)} width=${r.width} height=${r.height} frameBorder="0" webkitallowfullscreen mozallowfullscreen allowFullScreen></iframe></div>`}generateCanonicalUrl(e){return`https://player.vimeo.com/video/${e}`}extractMetadata(e){if(!e)return null;const r=e.match(qi.regex);return!r||r.length<2?null:{id:r[1],url:r[0],canonical:this.generateCanonicalUrl(r[1])}}}Vi.VimeoEmbedder=qi;qi.regex=/https?:\/\/(?:vimeo.com\/|player.vimeo.com\/video\/)([0-9]+)\/*/;var Oa={};Object.defineProperty(Oa,"__esModule",{value:!0});Oa.YoutubeEmbedder=void 0;const e2=ht,t2=Pt;class Mr extends t2.AbstractEmbedder{constructor(){super(...arguments),this.type="youtube"}static getYoutubeMetadataFromLink(e){if(!e)return;const r=e.match(Mr.linkRegex),n=r?r[0]:void 0;if(!n)return;const a=n.match(Mr.idRegex),s=a&&a.length>=2?a[2]:void 0;if(s)return{id:s,url:n,thumbnail:"https://img.youtube.com/vi/"+s+"/0.jpg"}}getEmbedMetadata(e){try{const r=Mr.getYoutubeMetadataFromLink(e.data);return r?{id:r.id,url:r.url,image:r.thumbnail}:void 0}catch(r){e2.Log.log().error(r)}}processEmbed(e,r){const n=`https://www.youtube.com/embed/${e}`;return`<div class="videoWrapper"><iframe width="${r.width}" height="${r.height}" src="${n}" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" mozallowfullscreen="mozallowfullscreen" frameborder="0"></iframe></div>`}}Oa.YoutubeEmbedder=Mr;Mr.linkRegex=/https?:\/\/(?:www\.)?(?:youtube\.com\/watch\?v=|youtu\.be\/watch\?v=|youtu.be\/[^watch]|youtube\.com\/(embed|shorts)\/)([A-Za-z0-9_-]+)[^ ]*/i;Mr.idRegex=/(?:youtube\.com\/watch\?v=|youtu\.be\/watch\?v=|youtu.be\/|youtube\.com\/(embed|shorts)\/)([A-Za-z0-9_-]+)/i;var r2=J&&J.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Li,"__esModule",{value:!0});Li.AssetEmbedder=void 0;const Oe=r2(Dn),Zl=Pt,n2=Mi,a2=Ii,s2=Ri,i2=Bi,o2=Vi,u2=Oa;class Lu{constructor(e,r){Lu.validate(e),this.options=e,this.localization=r,this.embedders=[new u2.YoutubeEmbedder,new o2.VimeoEmbedder,new s2.TwitchEmbedder(e),new n2.SpotifyEmbedder,new a2.ThreeSpeakEmbedder,new i2.TwitterEmbedder]}static validate(e){(0,Oe.default)(e,"AssetEmbedderOptions",Oe.default.object),(0,Oe.default)(e.ipfsPrefix,"AssetEmbedderOptions.ipfsPrefix",Oe.default.optional.string),(0,Oe.default)(e.width,"AssetEmbedderOptions.width",Oe.default.number.integer.positive),(0,Oe.default)(e.height,"AssetEmbedderOptions.height",Oe.default.number.integer.positive),(0,Oe.default)(e.hideImages,"AssetEmbedderOptions.hideImages",Oe.default.boolean),(0,Oe.default)(e.baseUrl,"AssetEmbedderOptions.baseUrl",Oe.default.string.nonEmpty),(0,Oe.default)(e.imageProxyFn,"AssetEmbedderOptions.imageProxyFn",Oe.default.function),(0,Oe.default)(e.hashtagUrlFn,"AssetEmbedderOptions.hashtagUrlFn",Oe.default.function),(0,Oe.default)(e.usertagUrlFn,"AssetEmbedderOptions.usertagUrlFn",Oe.default.function)}insertAssets(e){const r={width:this.options.width,height:this.options.height};return this.insertMarkedEmbedsToRenderedOutput(e,r)}insertMarkedEmbedsToRenderedOutput(e,r){return Zl.AbstractEmbedder.insertAllEmbeds(this.embedders,e,r)}processTextNodeAndInsertEmbeds(e){const r={links:[],images:[]};for(const n of this.embedders){const a=n.getEmbedMetadata(e);a&&(e.data=e.data.replace(a.url,Zl.AbstractEmbedder.getEmbedMarker(a.id,n.type)),a.image&&r.images.push(a.image),a.link&&r.links.push(a.link))}return r}}Li.AssetEmbedder=Lu;var Ui={},Mu={};Object.defineProperty(Mu,"__esModule",{value:!0});const l2=`
145
+ `.trim().split(/,\s*/)};var vo;Object.defineProperty(Ji,"__esModule",{value:!0});Ji.TwitterEmbedder=void 0;const Zb=$t,Qd=es,Xb=rr;class Ra extends Xb.AbstractEmbedder{constructor(){super(...arguments),this.type="twitter"}getEmbedMetadata(e){const r=typeof e=="string"?e:e.data;try{const n=Ra.getTwitterMetadataFromLink(r);return n?{id:n.id,url:n.url}:void 0}catch(n){Zb.Log.log().error(n)}}processEmbed(e,r){const n=Qd.StaticConfig.sanitization.iframeWhitelist.find(s=>s.re.toString().includes("twitter")),a=n==null?void 0:n.fn(`https://twitter.com/status/${e}`);return a?`<div class="twitterWrapper"><iframe width="${r.width}" height="${r.height}" src="${a}" frameborder="0" scrolling="no" allowtransparency="true" allowfullscreen="true"></iframe></div>`:""}static getTwitterMetadataFromLink(e){if(!e)return;const r=e.replace(/^(@|https:\/\/)/,""),n=r.match(Ra.linkRegex);if(!n)return;const a=n[2],s=`https://${r}`;return{id:a,url:s}}}Ji.TwitterEmbedder=Ra;Ra.linkRegex=(vo=Qd.StaticConfig.sanitization.iframeWhitelist.find(t=>t.re.toString().includes("twitter")))===null||vo===void 0?void 0:vo.re;var Yi={};Object.defineProperty(Yi,"__esModule",{value:!0});Yi.VimeoEmbedder=void 0;const Kb=$t,Qb=rr;class Zi extends Qb.AbstractEmbedder{constructor(){super(...arguments),this.type="vimeo"}getEmbedMetadata(e){try{const r=e.data,n=this.extractMetadata(r);return n?{id:n.id,url:n.url}:void 0}catch(r){Kb.Log.log().error(r)}}processEmbed(e,r){return`<div class="videoWrapper"><iframe src=${this.generateCanonicalUrl(e)} width=${r.width} height=${r.height} frameBorder="0" webkitallowfullscreen mozallowfullscreen allowFullScreen></iframe></div>`}generateCanonicalUrl(e){return`https://player.vimeo.com/video/${e}`}extractMetadata(e){if(!e)return null;const r=e.match(Zi.regex);return!r||r.length<2?null:{id:r[1],url:r[0],canonical:this.generateCanonicalUrl(r[1])}}}Yi.VimeoEmbedder=Zi;Zi.regex=/https?:\/\/(?:vimeo.com\/|player.vimeo.com\/video\/)([0-9]+)\/*/;var ts={};Object.defineProperty(ts,"__esModule",{value:!0});ts.YoutubeEmbedder=void 0;const e2=$t,t2=rr;class un extends t2.AbstractEmbedder{constructor(){super(...arguments),this.type="youtube"}static getYoutubeMetadataFromLink(e){if(!e)return;const r=e.match(un.linkRegex),n=r?r[0]:void 0;if(!n)return;const a=n.match(un.idRegex),s=a&&a.length>=2?a[2]:void 0;if(s)return{id:s,url:n,thumbnail:"https://img.youtube.com/vi/"+s+"/0.jpg"}}getEmbedMetadata(e){try{const r=un.getYoutubeMetadataFromLink(e.data);return r?{id:r.id,url:r.url,image:r.thumbnail}:void 0}catch(r){e2.Log.log().error(r)}}processEmbed(e,r){const n=`https://www.youtube.com/embed/${e}`;return`<div class="videoWrapper"><iframe width="${r.width}" height="${r.height}" src="${n}" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" mozallowfullscreen="mozallowfullscreen" frameborder="0"></iframe></div>`}}ts.YoutubeEmbedder=un;un.linkRegex=/https?:\/\/(?:www\.)?(?:youtube\.com\/watch\?v=|youtu\.be\/watch\?v=|youtu.be\/[^watch]|youtube\.com\/(embed|shorts)\/)([A-Za-z0-9_-]+)[^ ]*/i;un.idRegex=/(?:youtube\.com\/watch\?v=|youtu\.be\/watch\?v=|youtu.be\/|youtube\.com\/(embed|shorts)\/)([A-Za-z0-9_-]+)/i;var r2=J&&J.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ui,"__esModule",{value:!0});Ui.AssetEmbedder=void 0;const Ge=r2(Kn),Zl=rr,n2=zi,a2=Hi,s2=Gi,i2=Ji,o2=Yi,u2=ts;class Lu{constructor(e,r){Lu.validate(e),this.options=e,this.localization=r,this.embedders=[new u2.YoutubeEmbedder,new o2.VimeoEmbedder,new s2.TwitchEmbedder(e),new n2.SpotifyEmbedder,new a2.ThreeSpeakEmbedder,new i2.TwitterEmbedder]}static validate(e){(0,Ge.default)(e,"AssetEmbedderOptions",Ge.default.object),(0,Ge.default)(e.ipfsPrefix,"AssetEmbedderOptions.ipfsPrefix",Ge.default.optional.string),(0,Ge.default)(e.width,"AssetEmbedderOptions.width",Ge.default.number.integer.positive),(0,Ge.default)(e.height,"AssetEmbedderOptions.height",Ge.default.number.integer.positive),(0,Ge.default)(e.hideImages,"AssetEmbedderOptions.hideImages",Ge.default.boolean),(0,Ge.default)(e.baseUrl,"AssetEmbedderOptions.baseUrl",Ge.default.string.nonEmpty),(0,Ge.default)(e.imageProxyFn,"AssetEmbedderOptions.imageProxyFn",Ge.default.function),(0,Ge.default)(e.hashtagUrlFn,"AssetEmbedderOptions.hashtagUrlFn",Ge.default.function),(0,Ge.default)(e.usertagUrlFn,"AssetEmbedderOptions.usertagUrlFn",Ge.default.function)}insertAssets(e){const r={width:this.options.width,height:this.options.height};return this.insertMarkedEmbedsToRenderedOutput(e,r)}insertMarkedEmbedsToRenderedOutput(e,r){return Zl.AbstractEmbedder.insertAllEmbeds(this.embedders,e,r)}processTextNodeAndInsertEmbeds(e){const r={links:[],images:[]};for(const n of this.embedders){const a=n.getEmbedMetadata(e);a&&(e.data=e.data.replace(a.url,Zl.AbstractEmbedder.getEmbedMarker(a.id,n.type)),a.image&&r.images.push(a.image),a.link&&r.links.push(a.link))}return r}}Ui.AssetEmbedder=Lu;var Xi={},Mu={};Object.defineProperty(Mu,"__esModule",{value:!0});const l2=`
138
146
  aalpha
139
147
  aappreciator
140
148
  abits
@@ -1044,15 +1052,15 @@ youbit
1044
1052
  yunbi
1045
1053
  zenieix
1046
1054
  `.trim().split(`
1047
- `);Mu.default=l2;var c2=J&&J.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ui,"__esModule",{value:!0});Ui.AccountNameValidator=void 0;const d2=c2(Mu);class f2{static validateAccountName(e,r){let n,a,s;if(!e)return r.accountNameWrongLength;const o=e.length;if(o<3||o>16)return r.accountNameWrongLength;if(d2.default.includes(e))return r.accountNameBadActor;const c=e.split(".");for(n=0,s=c.length;n<s;n++)if(a=c[n],!/^[a-z]/.test(a)||!/^[a-z0-9-]*$/.test(a)||!/[a-z0-9]$/.test(a)||!(a.length>=3))return r.accountNameWrongSegment;return null}}Ui.AccountNameValidator=f2;var h2=J&&J.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var a=Object.getOwnPropertyDescriptor(e,r);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,a)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),p2=J&&J.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),e0=J&&J.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&h2(e,t,r);return p2(e,t),e},m2=J&&J.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(yn,"__esModule",{value:!0});yn.HtmlDOMParserError=yn.HtmlDOMParser=void 0;const Xl=e0(Ei),g2=m2(mr),b2=ht,x2=$i,Kl=Fn,Ql=Li,y2=Oa,v2=Ui,ta=e0(Pu);class w2{constructor(e,r=Kl.Localization.DEFAULT){this.domParser=new Xl.DOMParser({errorHandler:{warning:()=>{},error:()=>{}}}),this.xmlSerializer=new Xl.XMLSerializer,this.mutate=!0,this.parsedDocument=void 0,Ql.AssetEmbedder.validate(e),Kl.Localization.validate(r),this.options=e,this.localization=r,this.linkSanitizer=new x2.LinkSanitizer({baseUrl:this.options.baseUrl}),this.embedder=new Ql.AssetEmbedder({ipfsPrefix:this.options.ipfsPrefix,width:this.options.width,height:this.options.height,hideImages:this.options.hideImages,imageProxyFn:this.options.imageProxyFn,hashtagUrlFn:this.options.hashtagUrlFn,usertagUrlFn:this.options.usertagUrlFn,baseUrl:this.options.baseUrl},r),this.state={hashtags:new Set,usertags:new Set,htmltags:new Set,images:new Set,links:new Set}}setMutateEnabled(e){return this.mutate=e,this}parse(e){try{const r=this.domParser.parseFromString(e,"text/html");this.traverseDOMNode(r),this.mutate&&this.postprocessDOM(r),this.parsedDocument=r}catch(r){throw new Ns("Parsing error",r)}return this}getState(){if(!this.parsedDocument)throw new Ns("Html has not been parsed yet");return this.state}getParsedDocument(){if(!this.parsedDocument)throw new Ns("Html has not been parsed yet");return this.parsedDocument}getParsedDocumentAsString(){return this.xmlSerializer.serializeToString(this.getParsedDocument())}traverseDOMNode(e,r=0){!e||!e.childNodes||Array.from(e.childNodes).forEach(n=>{const a=n.tagName?n.tagName.toLowerCase():null;a&&this.state.htmltags.add(a),a==="img"?this.processImgTag(n):a==="iframe"?this.processIframeTag(n):a==="a"?this.processLinkTag(n):n.nodeName==="#text"&&this.processTextNode(n),this.traverseDOMNode(n,r+1)})}processLinkTag(e){const r=e.getAttribute("href");if(r&&(this.state.links.add(r),this.mutate)){const n=e.textContent+"",a=this.linkSanitizer.sanitizeLink(r,n);if(a===!1){const s=e.ownerDocument.createElement("div");s.textContent=`${e.textContent} / ${r}`,s.setAttribute("title",this.localization.phishingWarning),s.setAttribute("class","phishy");const o=e.parentNode;o&&(o.appendChild(s),o.removeChild(e))}else e.setAttribute("href",a)}}processIframeTag(e){const r=e.getAttribute("src");if(r&&this.reportIframeLink(r),!this.mutate||(e.parentNode.tagName?e.parentNode.tagName.toLowerCase():e.parentNode.tagName)==="div"&&e.parentNode.getAttribute("class")==="videoWrapper")return;const a=this.xmlSerializer.serializeToString(e),s=this.domParser.parseFromString(`<div class="videoWrapper">${a}</div>`),o=e.parentNode;o&&(o.appendChild(s),o.removeChild(e))}reportIframeLink(e){const r=y2.YoutubeEmbedder.getYoutubeMetadataFromLink(e);r&&(this.state.links.add(r.url),this.state.images.add("https://img.youtube.com/vi/"+r.id+"/0.jpg"))}processImgTag(e){const r=e.getAttribute("src");if(r&&(this.state.images.add(r),this.mutate)){let n=this.normalizeUrl(r);/^\/\//.test(n)&&(n="https:"+n),n!==r&&e.setAttribute("src",n)}}processTextNode(e){try{const r=e.parentNode.tagName?e.parentNode.tagName.toLowerCase():e.parentNode.tagName;if(r==="code"||r==="a"||!e.data)return;const n=this.embedder.processTextNodeAndInsertEmbeds(e);n.images.forEach(o=>this.state.images.add(o)),n.links.forEach(o=>this.state.links.add(o));const a=this.xmlSerializer.serializeToString(e),s=this.linkify(a);if(this.mutate&&s!==a){const o=this.domParser.parseFromString(`<span>${s}</span>`),c=e.parentNode;return c&&(c.appendChild(o),c.removeChild(e)),o}}catch(r){b2.Log.log().error(r)}}linkify(e){return e=e.replace((0,ta.any)("gi"),r=>{if(ta.default.image.test(r))return this.state.images.add(r),`<img src="${this.normalizeUrl(r)}" />`;if(/\.(zip|exe)$/i.test(r))return r;const n=this.linkSanitizer.sanitizeLink(r,r);return n===!1?`<div title='${this.localization.phishingWarning}' class='phishy'>${r}</div>`:(this.state.links.add(n),`<a href="${this.normalizeUrl(r)}">${n}</a>`)}),e=e.replace(/(^|\s)(#[-a-z\d]+)/gi,r=>{if(/#[\d]+$/.test(r))return r;const n=/^\s/.test(r)?r[0]:"",s=r.trim().substring(1).toLowerCase();if(this.state.hashtags.add(s),!this.mutate)return r;const o=this.options.hashtagUrlFn(s);return n+`<a href="${o}">${r.trim()}</a>`}),e=e.replace(/(^|[^a-zA-Z0-9_!#$%&*@@/]|(^|[^a-zA-Z0-9_+~.-/#]))[@@]([a-z][-.a-z\d]+[a-z\d])/gi,(r,n,a,s)=>{const o=s.toLowerCase(),c=v2.AccountNameValidator.validateAccountName(o,this.localization)==null;c&&this.state.usertags&&this.state.usertags.add(o);const u=(n||"")+(a||"");if(!this.mutate)return`${u}${s}`;const f=this.options.usertagUrlFn(o);return c?`${u}<a href="${f}">@${s}</a>`:`${u}@${s}`}),e}postprocessDOM(e){this.hideImagesIfNeeded(e),this.proxifyImagesIfNeeded(e)}hideImagesIfNeeded(e){if(this.mutate&&this.options.hideImages)for(const r of Array.from(e.getElementsByTagName("img"))){const n=e.createElement("pre");n.setAttribute("class","image-url-only"),n.appendChild(e.createTextNode(r.getAttribute("src")||""));const a=r.parentNode;a&&(a.appendChild(n),a.removeChild(r))}}proxifyImagesIfNeeded(e){this.mutate&&!this.options.hideImages&&this.proxifyImages(e)}proxifyImages(e){e&&Array.from(e.getElementsByTagName("img")).forEach(r=>{const n=r.getAttribute("src")||"";ta.default.local.test(n)||r.setAttribute("src",this.options.imageProxyFn(n))})}normalizeUrl(e){if(this.options.ipfsPrefix&&ta.default.ipfsProtocol.test(e)){const[r]=e.match(ta.default.ipfsProtocol),n=e.replace(r,"");return`${this.options.ipfsPrefix.replace(/\/+$/,"")}/${n}`}return e}}yn.HtmlDOMParser=w2;class Ns extends g2.default{constructor(e,r){super(e,r)}}yn.HtmlDOMParserError=Ns;var zi={};Object.defineProperty(zi,"__esModule",{value:!0});zi.PreliminarySanitizer=void 0;class Iu{static preliminarySanitize(e){return Iu.stripHtmlComments(e)}static stripHtmlComments(e){return e.replace(/<!--([\s\S]+?)(-->|$)/g,"(html comment removed: $1)")}}zi.PreliminarySanitizer=Iu;var Hi={},t0={},ba={},Fu={},xa={},Ru={};Object.defineProperty(Ru,"__esModule",{value:!0});Ru.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(t){return t.charCodeAt(0)}));var Bu={};Object.defineProperty(Bu,"__esModule",{value:!0});Bu.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(t){return t.charCodeAt(0)}));var Io={};(function(t){var e;Object.defineProperty(t,"__esModule",{value:!0}),t.replaceCodePoint=t.fromCodePoint=void 0;var r=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);t.fromCodePoint=(e=String.fromCodePoint)!==null&&e!==void 0?e:function(s){var o="";return s>65535&&(s-=65536,o+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),o+=String.fromCharCode(s),o};function n(s){var o;return s>=55296&&s<=57343||s>1114111?65533:(o=r.get(s))!==null&&o!==void 0?o:s}t.replaceCodePoint=n;function a(s){return(0,t.fromCodePoint)(n(s))}t.default=a})(Io);(function(t){var e=J&&J.__createBinding||(Object.create?function(j,L,I,H){H===void 0&&(H=I);var _=Object.getOwnPropertyDescriptor(L,I);(!_||("get"in _?!L.__esModule:_.writable||_.configurable))&&(_={enumerable:!0,get:function(){return L[I]}}),Object.defineProperty(j,H,_)}:function(j,L,I,H){H===void 0&&(H=I),j[H]=L[I]}),r=J&&J.__setModuleDefault||(Object.create?function(j,L){Object.defineProperty(j,"default",{enumerable:!0,value:L})}:function(j,L){j.default=L}),n=J&&J.__importStar||function(j){if(j&&j.__esModule)return j;var L={};if(j!=null)for(var I in j)I!=="default"&&Object.prototype.hasOwnProperty.call(j,I)&&e(L,j,I);return r(L,j),L},a=J&&J.__importDefault||function(j){return j&&j.__esModule?j:{default:j}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXML=t.decodeHTMLStrict=t.decodeHTMLAttribute=t.decodeHTML=t.determineBranch=t.EntityDecoder=t.DecodingMode=t.BinTrieFlags=t.fromCodePoint=t.replaceCodePoint=t.decodeCodePoint=t.xmlDecodeTree=t.htmlDecodeTree=void 0;var s=a(Ru);t.htmlDecodeTree=s.default;var o=a(Bu);t.xmlDecodeTree=o.default;var c=n(Io);t.decodeCodePoint=c.default;var u=Io;Object.defineProperty(t,"replaceCodePoint",{enumerable:!0,get:function(){return u.replaceCodePoint}}),Object.defineProperty(t,"fromCodePoint",{enumerable:!0,get:function(){return u.fromCodePoint}});var f;(function(j){j[j.NUM=35]="NUM",j[j.SEMI=59]="SEMI",j[j.EQUALS=61]="EQUALS",j[j.ZERO=48]="ZERO",j[j.NINE=57]="NINE",j[j.LOWER_A=97]="LOWER_A",j[j.LOWER_F=102]="LOWER_F",j[j.LOWER_X=120]="LOWER_X",j[j.LOWER_Z=122]="LOWER_Z",j[j.UPPER_A=65]="UPPER_A",j[j.UPPER_F=70]="UPPER_F",j[j.UPPER_Z=90]="UPPER_Z"})(f||(f={}));var l=32,h;(function(j){j[j.VALUE_LENGTH=49152]="VALUE_LENGTH",j[j.BRANCH_LENGTH=16256]="BRANCH_LENGTH",j[j.JUMP_TABLE=127]="JUMP_TABLE"})(h=t.BinTrieFlags||(t.BinTrieFlags={}));function d(j){return j>=f.ZERO&&j<=f.NINE}function m(j){return j>=f.UPPER_A&&j<=f.UPPER_F||j>=f.LOWER_A&&j<=f.LOWER_F}function b(j){return j>=f.UPPER_A&&j<=f.UPPER_Z||j>=f.LOWER_A&&j<=f.LOWER_Z||d(j)}function x(j){return j===f.EQUALS||b(j)}var y;(function(j){j[j.EntityStart=0]="EntityStart",j[j.NumericStart=1]="NumericStart",j[j.NumericDecimal=2]="NumericDecimal",j[j.NumericHex=3]="NumericHex",j[j.NamedEntity=4]="NamedEntity"})(y||(y={}));var g;(function(j){j[j.Legacy=0]="Legacy",j[j.Strict=1]="Strict",j[j.Attribute=2]="Attribute"})(g=t.DecodingMode||(t.DecodingMode={}));var E=function(){function j(L,I,H){this.decodeTree=L,this.emitCodePoint=I,this.errors=H,this.state=y.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=g.Strict}return j.prototype.startEntity=function(L){this.decodeMode=L,this.state=y.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},j.prototype.write=function(L,I){switch(this.state){case y.EntityStart:return L.charCodeAt(I)===f.NUM?(this.state=y.NumericStart,this.consumed+=1,this.stateNumericStart(L,I+1)):(this.state=y.NamedEntity,this.stateNamedEntity(L,I));case y.NumericStart:return this.stateNumericStart(L,I);case y.NumericDecimal:return this.stateNumericDecimal(L,I);case y.NumericHex:return this.stateNumericHex(L,I);case y.NamedEntity:return this.stateNamedEntity(L,I)}},j.prototype.stateNumericStart=function(L,I){return I>=L.length?-1:(L.charCodeAt(I)|l)===f.LOWER_X?(this.state=y.NumericHex,this.consumed+=1,this.stateNumericHex(L,I+1)):(this.state=y.NumericDecimal,this.stateNumericDecimal(L,I))},j.prototype.addToNumericResult=function(L,I,H,_){if(I!==H){var M=H-I;this.result=this.result*Math.pow(_,M)+parseInt(L.substr(I,M),_),this.consumed+=M}},j.prototype.stateNumericHex=function(L,I){for(var H=I;I<L.length;){var _=L.charCodeAt(I);if(d(_)||m(_))I+=1;else return this.addToNumericResult(L,H,I,16),this.emitNumericEntity(_,3)}return this.addToNumericResult(L,H,I,16),-1},j.prototype.stateNumericDecimal=function(L,I){for(var H=I;I<L.length;){var _=L.charCodeAt(I);if(d(_))I+=1;else return this.addToNumericResult(L,H,I,10),this.emitNumericEntity(_,2)}return this.addToNumericResult(L,H,I,10),-1},j.prototype.emitNumericEntity=function(L,I){var H;if(this.consumed<=I)return(H=this.errors)===null||H===void 0||H.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(L===f.SEMI)this.consumed+=1;else if(this.decodeMode===g.Strict)return 0;return this.emitCodePoint((0,c.replaceCodePoint)(this.result),this.consumed),this.errors&&(L!==f.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},j.prototype.stateNamedEntity=function(L,I){for(var H=this.decodeTree,_=H[this.treeIndex],M=(_&h.VALUE_LENGTH)>>14;I<L.length;I++,this.excess++){var C=L.charCodeAt(I);if(this.treeIndex=w(H,_,this.treeIndex+Math.max(1,M),C),this.treeIndex<0)return this.result===0||this.decodeMode===g.Attribute&&(M===0||x(C))?0:this.emitNotTerminatedNamedEntity();if(_=H[this.treeIndex],M=(_&h.VALUE_LENGTH)>>14,M!==0){if(C===f.SEMI)return this.emitNamedEntityData(this.treeIndex,M,this.consumed+this.excess);this.decodeMode!==g.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},j.prototype.emitNotTerminatedNamedEntity=function(){var L,I=this,H=I.result,_=I.decodeTree,M=(_[H]&h.VALUE_LENGTH)>>14;return this.emitNamedEntityData(H,M,this.consumed),(L=this.errors)===null||L===void 0||L.missingSemicolonAfterCharacterReference(),this.consumed},j.prototype.emitNamedEntityData=function(L,I,H){var _=this.decodeTree;return this.emitCodePoint(I===1?_[L]&~h.VALUE_LENGTH:_[L+1],H),I===3&&this.emitCodePoint(_[L+2],H),H},j.prototype.end=function(){var L;switch(this.state){case y.NamedEntity:return this.result!==0&&(this.decodeMode!==g.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case y.NumericDecimal:return this.emitNumericEntity(0,2);case y.NumericHex:return this.emitNumericEntity(0,3);case y.NumericStart:return(L=this.errors)===null||L===void 0||L.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case y.EntityStart:return 0}},j}();t.EntityDecoder=E;function S(j){var L="",I=new E(j,function(H){return L+=(0,c.fromCodePoint)(H)});return function(_,M){for(var C=0,W=0;(W=_.indexOf("&",W))>=0;){L+=_.slice(C,W),I.startEntity(M);var R=I.write(_,W+1);if(R<0){C=W+I.end();break}C=W+R,W=R===0?C+1:C}var Z=L+_.slice(C);return L="",Z}}function w(j,L,I,H){var _=(L&h.BRANCH_LENGTH)>>7,M=L&h.JUMP_TABLE;if(_===0)return M!==0&&H===M?I:-1;if(M){var C=H-M;return C<0||C>=_?-1:j[I+C]-1}for(var W=I,R=W+_-1;W<=R;){var Z=W+R>>>1,P=j[Z];if(P<H)W=Z+1;else if(P>H)R=Z-1;else return j[Z+_]}return-1}t.determineBranch=w;var k=S(s.default),p=S(o.default);function N(j,L){return L===void 0&&(L=g.Legacy),k(j,L)}t.decodeHTML=N;function A(j){return k(j,g.Attribute)}t.decodeHTMLAttribute=A;function V(j){return k(j,g.Strict)}t.decodeHTMLStrict=V;function z(j){return p(j,g.Strict)}t.decodeXML=z})(xa);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.QuoteType=void 0;var e=xa,r;(function(d){d[d.Tab=9]="Tab",d[d.NewLine=10]="NewLine",d[d.FormFeed=12]="FormFeed",d[d.CarriageReturn=13]="CarriageReturn",d[d.Space=32]="Space",d[d.ExclamationMark=33]="ExclamationMark",d[d.Number=35]="Number",d[d.Amp=38]="Amp",d[d.SingleQuote=39]="SingleQuote",d[d.DoubleQuote=34]="DoubleQuote",d[d.Dash=45]="Dash",d[d.Slash=47]="Slash",d[d.Zero=48]="Zero",d[d.Nine=57]="Nine",d[d.Semi=59]="Semi",d[d.Lt=60]="Lt",d[d.Eq=61]="Eq",d[d.Gt=62]="Gt",d[d.Questionmark=63]="Questionmark",d[d.UpperA=65]="UpperA",d[d.LowerA=97]="LowerA",d[d.UpperF=70]="UpperF",d[d.LowerF=102]="LowerF",d[d.UpperZ=90]="UpperZ",d[d.LowerZ=122]="LowerZ",d[d.LowerX=120]="LowerX",d[d.OpeningSquareBracket=91]="OpeningSquareBracket"})(r||(r={}));var n;(function(d){d[d.Text=1]="Text",d[d.BeforeTagName=2]="BeforeTagName",d[d.InTagName=3]="InTagName",d[d.InSelfClosingTag=4]="InSelfClosingTag",d[d.BeforeClosingTagName=5]="BeforeClosingTagName",d[d.InClosingTagName=6]="InClosingTagName",d[d.AfterClosingTagName=7]="AfterClosingTagName",d[d.BeforeAttributeName=8]="BeforeAttributeName",d[d.InAttributeName=9]="InAttributeName",d[d.AfterAttributeName=10]="AfterAttributeName",d[d.BeforeAttributeValue=11]="BeforeAttributeValue",d[d.InAttributeValueDq=12]="InAttributeValueDq",d[d.InAttributeValueSq=13]="InAttributeValueSq",d[d.InAttributeValueNq=14]="InAttributeValueNq",d[d.BeforeDeclaration=15]="BeforeDeclaration",d[d.InDeclaration=16]="InDeclaration",d[d.InProcessingInstruction=17]="InProcessingInstruction",d[d.BeforeComment=18]="BeforeComment",d[d.CDATASequence=19]="CDATASequence",d[d.InSpecialComment=20]="InSpecialComment",d[d.InCommentLike=21]="InCommentLike",d[d.BeforeSpecialS=22]="BeforeSpecialS",d[d.SpecialStartSequence=23]="SpecialStartSequence",d[d.InSpecialTag=24]="InSpecialTag",d[d.BeforeEntity=25]="BeforeEntity",d[d.BeforeNumericEntity=26]="BeforeNumericEntity",d[d.InNamedEntity=27]="InNamedEntity",d[d.InNumericEntity=28]="InNumericEntity",d[d.InHexEntity=29]="InHexEntity"})(n||(n={}));function a(d){return d===r.Space||d===r.NewLine||d===r.Tab||d===r.FormFeed||d===r.CarriageReturn}function s(d){return d===r.Slash||d===r.Gt||a(d)}function o(d){return d>=r.Zero&&d<=r.Nine}function c(d){return d>=r.LowerA&&d<=r.LowerZ||d>=r.UpperA&&d<=r.UpperZ}function u(d){return d>=r.UpperA&&d<=r.UpperF||d>=r.LowerA&&d<=r.LowerF}var f;(function(d){d[d.NoValue=0]="NoValue",d[d.Unquoted=1]="Unquoted",d[d.Single=2]="Single",d[d.Double=3]="Double"})(f=t.QuoteType||(t.QuoteType={}));var l={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},h=function(){function d(m,b){var x=m.xmlMode,y=x===void 0?!1:x,g=m.decodeEntities,E=g===void 0?!0:g;this.cbs=b,this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=y,this.decodeEntities=E,this.entityTrie=y?e.xmlDecodeTree:e.htmlDecodeTree}return d.prototype.reset=function(){this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},d.prototype.write=function(m){this.offset+=this.buffer.length,this.buffer=m,this.parse()},d.prototype.end=function(){this.running&&this.finish()},d.prototype.pause=function(){this.running=!1},d.prototype.resume=function(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()},d.prototype.getIndex=function(){return this.index},d.prototype.getSectionStart=function(){return this.sectionStart},d.prototype.stateText=function(m){m===r.Lt||!this.decodeEntities&&this.fastForwardTo(r.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=n.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&m===r.Amp&&(this.state=n.BeforeEntity)},d.prototype.stateSpecialStartSequence=function(m){var b=this.sequenceIndex===this.currentSequence.length,x=b?s(m):(m|32)===this.currentSequence[this.sequenceIndex];if(!x)this.isSpecial=!1;else if(!b){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=n.InTagName,this.stateInTagName(m)},d.prototype.stateInSpecialTag=function(m){if(this.sequenceIndex===this.currentSequence.length){if(m===r.Gt||a(m)){var b=this.index-this.currentSequence.length;if(this.sectionStart<b){var x=this.index;this.index=b,this.cbs.ontext(this.sectionStart,b),this.index=x}this.isSpecial=!1,this.sectionStart=b+2,this.stateInClosingTagName(m);return}this.sequenceIndex=0}(m|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===l.TitleEnd?this.decodeEntities&&m===r.Amp&&(this.state=n.BeforeEntity):this.fastForwardTo(r.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(m===r.Lt)},d.prototype.stateCDATASequence=function(m){m===l.Cdata[this.sequenceIndex]?++this.sequenceIndex===l.Cdata.length&&(this.state=n.InCommentLike,this.currentSequence=l.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=n.InDeclaration,this.stateInDeclaration(m))},d.prototype.fastForwardTo=function(m){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===m)return!0;return this.index=this.buffer.length+this.offset-1,!1},d.prototype.stateInCommentLike=function(m){m===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===l.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=n.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):m!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)},d.prototype.isTagStartChar=function(m){return this.xmlMode?!s(m):c(m)},d.prototype.startSpecial=function(m,b){this.isSpecial=!0,this.currentSequence=m,this.sequenceIndex=b,this.state=n.SpecialStartSequence},d.prototype.stateBeforeTagName=function(m){if(m===r.ExclamationMark)this.state=n.BeforeDeclaration,this.sectionStart=this.index+1;else if(m===r.Questionmark)this.state=n.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(m)){var b=m|32;this.sectionStart=this.index,!this.xmlMode&&b===l.TitleEnd[2]?this.startSpecial(l.TitleEnd,3):this.state=!this.xmlMode&&b===l.ScriptEnd[2]?n.BeforeSpecialS:n.InTagName}else m===r.Slash?this.state=n.BeforeClosingTagName:(this.state=n.Text,this.stateText(m))},d.prototype.stateInTagName=function(m){s(m)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(m))},d.prototype.stateBeforeClosingTagName=function(m){a(m)||(m===r.Gt?this.state=n.Text:(this.state=this.isTagStartChar(m)?n.InClosingTagName:n.InSpecialComment,this.sectionStart=this.index))},d.prototype.stateInClosingTagName=function(m){(m===r.Gt||a(m))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterClosingTagName,this.stateAfterClosingTagName(m))},d.prototype.stateAfterClosingTagName=function(m){(m===r.Gt||this.fastForwardTo(r.Gt))&&(this.state=n.Text,this.baseState=n.Text,this.sectionStart=this.index+1)},d.prototype.stateBeforeAttributeName=function(m){m===r.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=n.InSpecialTag,this.sequenceIndex=0):this.state=n.Text,this.baseState=this.state,this.sectionStart=this.index+1):m===r.Slash?this.state=n.InSelfClosingTag:a(m)||(this.state=n.InAttributeName,this.sectionStart=this.index)},d.prototype.stateInSelfClosingTag=function(m){m===r.Gt?(this.cbs.onselfclosingtag(this.index),this.state=n.Text,this.baseState=n.Text,this.sectionStart=this.index+1,this.isSpecial=!1):a(m)||(this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(m))},d.prototype.stateInAttributeName=function(m){(m===r.Eq||s(m))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterAttributeName,this.stateAfterAttributeName(m))},d.prototype.stateAfterAttributeName=function(m){m===r.Eq?this.state=n.BeforeAttributeValue:m===r.Slash||m===r.Gt?(this.cbs.onattribend(f.NoValue,this.index),this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(m)):a(m)||(this.cbs.onattribend(f.NoValue,this.index),this.state=n.InAttributeName,this.sectionStart=this.index)},d.prototype.stateBeforeAttributeValue=function(m){m===r.DoubleQuote?(this.state=n.InAttributeValueDq,this.sectionStart=this.index+1):m===r.SingleQuote?(this.state=n.InAttributeValueSq,this.sectionStart=this.index+1):a(m)||(this.sectionStart=this.index,this.state=n.InAttributeValueNq,this.stateInAttributeValueNoQuotes(m))},d.prototype.handleInAttributeValue=function(m,b){m===b||!this.decodeEntities&&this.fastForwardTo(b)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(b===r.DoubleQuote?f.Double:f.Single,this.index),this.state=n.BeforeAttributeName):this.decodeEntities&&m===r.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)},d.prototype.stateInAttributeValueDoubleQuotes=function(m){this.handleInAttributeValue(m,r.DoubleQuote)},d.prototype.stateInAttributeValueSingleQuotes=function(m){this.handleInAttributeValue(m,r.SingleQuote)},d.prototype.stateInAttributeValueNoQuotes=function(m){a(m)||m===r.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(f.Unquoted,this.index),this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(m)):this.decodeEntities&&m===r.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)},d.prototype.stateBeforeDeclaration=function(m){m===r.OpeningSquareBracket?(this.state=n.CDATASequence,this.sequenceIndex=0):this.state=m===r.Dash?n.BeforeComment:n.InDeclaration},d.prototype.stateInDeclaration=function(m){(m===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)},d.prototype.stateInProcessingInstruction=function(m){(m===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)},d.prototype.stateBeforeComment=function(m){m===r.Dash?(this.state=n.InCommentLike,this.currentSequence=l.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=n.InDeclaration},d.prototype.stateInSpecialComment=function(m){(m===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=n.Text,this.sectionStart=this.index+1)},d.prototype.stateBeforeSpecialS=function(m){var b=m|32;b===l.ScriptEnd[3]?this.startSpecial(l.ScriptEnd,4):b===l.StyleEnd[3]?this.startSpecial(l.StyleEnd,4):(this.state=n.InTagName,this.stateInTagName(m))},d.prototype.stateBeforeEntity=function(m){this.entityExcess=1,this.entityResult=0,m===r.Number?this.state=n.BeforeNumericEntity:m===r.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=n.InNamedEntity,this.stateInNamedEntity(m))},d.prototype.stateInNamedEntity=function(m){if(this.entityExcess+=1,this.trieIndex=(0,e.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,m),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];var b=this.trieCurrent&e.BinTrieFlags.VALUE_LENGTH;if(b){var x=(b>>14)-1;if(!this.allowLegacyEntity()&&m!==r.Semi)this.trieIndex+=x;else{var y=this.index-this.entityExcess+1;y>this.sectionStart&&this.emitPartial(this.sectionStart,y),this.entityResult=this.trieIndex,this.trieIndex+=x,this.entityExcess=0,this.sectionStart=this.index+1,x===0&&this.emitNamedEntity()}}},d.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var m=(this.entityTrie[this.entityResult]&e.BinTrieFlags.VALUE_LENGTH)>>14;switch(m){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~e.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},d.prototype.stateBeforeNumericEntity=function(m){(m|32)===r.LowerX?(this.entityExcess++,this.state=n.InHexEntity):(this.state=n.InNumericEntity,this.stateInNumericEntity(m))},d.prototype.emitNumericEntity=function(m){var b=this.index-this.entityExcess-1,x=b+2+ +(this.state===n.InHexEntity);x!==this.index&&(b>this.sectionStart&&this.emitPartial(this.sectionStart,b),this.sectionStart=this.index+Number(m),this.emitCodePoint((0,e.replaceCodePoint)(this.entityResult))),this.state=this.baseState},d.prototype.stateInNumericEntity=function(m){m===r.Semi?this.emitNumericEntity(!0):o(m)?(this.entityResult=this.entityResult*10+(m-r.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},d.prototype.stateInHexEntity=function(m){m===r.Semi?this.emitNumericEntity(!0):o(m)?(this.entityResult=this.entityResult*16+(m-r.Zero),this.entityExcess++):u(m)?(this.entityResult=this.entityResult*16+((m|32)-r.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},d.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===n.Text||this.baseState===n.InSpecialTag)},d.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===n.Text||this.state===n.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===n.InAttributeValueDq||this.state===n.InAttributeValueSq||this.state===n.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},d.prototype.shouldContinue=function(){return this.index<this.buffer.length+this.offset&&this.running},d.prototype.parse=function(){for(;this.shouldContinue();){var m=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case n.Text:{this.stateText(m);break}case n.SpecialStartSequence:{this.stateSpecialStartSequence(m);break}case n.InSpecialTag:{this.stateInSpecialTag(m);break}case n.CDATASequence:{this.stateCDATASequence(m);break}case n.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(m);break}case n.InAttributeName:{this.stateInAttributeName(m);break}case n.InCommentLike:{this.stateInCommentLike(m);break}case n.InSpecialComment:{this.stateInSpecialComment(m);break}case n.BeforeAttributeName:{this.stateBeforeAttributeName(m);break}case n.InTagName:{this.stateInTagName(m);break}case n.InClosingTagName:{this.stateInClosingTagName(m);break}case n.BeforeTagName:{this.stateBeforeTagName(m);break}case n.AfterAttributeName:{this.stateAfterAttributeName(m);break}case n.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(m);break}case n.BeforeAttributeValue:{this.stateBeforeAttributeValue(m);break}case n.BeforeClosingTagName:{this.stateBeforeClosingTagName(m);break}case n.AfterClosingTagName:{this.stateAfterClosingTagName(m);break}case n.BeforeSpecialS:{this.stateBeforeSpecialS(m);break}case n.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(m);break}case n.InSelfClosingTag:{this.stateInSelfClosingTag(m);break}case n.InDeclaration:{this.stateInDeclaration(m);break}case n.BeforeDeclaration:{this.stateBeforeDeclaration(m);break}case n.BeforeComment:{this.stateBeforeComment(m);break}case n.InProcessingInstruction:{this.stateInProcessingInstruction(m);break}case n.InNamedEntity:{this.stateInNamedEntity(m);break}case n.BeforeEntity:{this.stateBeforeEntity(m);break}case n.InHexEntity:{this.stateInHexEntity(m);break}case n.InNumericEntity:{this.stateInNumericEntity(m);break}default:this.stateBeforeNumericEntity(m)}this.index++}this.cleanup()},d.prototype.finish=function(){this.state===n.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()},d.prototype.handleTrailingData=function(){var m=this.buffer.length+this.offset;this.state===n.InCommentLike?this.currentSequence===l.CdataEnd?this.cbs.oncdata(this.sectionStart,m,0):this.cbs.oncomment(this.sectionStart,m,0):this.state===n.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===n.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===n.InTagName||this.state===n.BeforeAttributeName||this.state===n.BeforeAttributeValue||this.state===n.AfterAttributeName||this.state===n.InAttributeName||this.state===n.InAttributeValueSq||this.state===n.InAttributeValueDq||this.state===n.InAttributeValueNq||this.state===n.InClosingTagName||this.cbs.ontext(this.sectionStart,m)},d.prototype.emitPartial=function(m,b){this.baseState!==n.Text&&this.baseState!==n.InSpecialTag?this.cbs.onattribdata(m,b):this.cbs.ontext(m,b)},d.prototype.emitCodePoint=function(m){this.baseState!==n.Text&&this.baseState!==n.InSpecialTag?this.cbs.onattribentity(m):this.cbs.ontextentity(m)},d}();t.default=h})(Fu);var _2=J&&J.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var a=Object.getOwnPropertyDescriptor(e,r);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,a)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),E2=J&&J.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),N2=J&&J.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&_2(e,t,r);return E2(e,t),e};Object.defineProperty(ba,"__esModule",{value:!0});ba.Parser=void 0;var hs=N2(Fu),ec=xa,fn=new Set(["input","option","optgroup","select","button","datalist","textarea"]),he=new Set(["p"]),tc=new Set(["thead","tbody"]),rc=new Set(["dd","dt"]),nc=new Set(["rt","rp"]),A2=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",he],["h1",he],["h2",he],["h3",he],["h4",he],["h5",he],["h6",he],["select",fn],["input",fn],["output",fn],["button",fn],["datalist",fn],["textarea",fn],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",rc],["dt",rc],["address",he],["article",he],["aside",he],["blockquote",he],["details",he],["div",he],["dl",he],["fieldset",he],["figcaption",he],["figure",he],["footer",he],["form",he],["header",he],["hr",he],["main",he],["nav",he],["ol",he],["pre",he],["section",he],["table",he],["ul",he],["rt",nc],["rp",nc],["tbody",tc],["tfoot",tc]]),k2=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),ac=new Set(["math","svg"]),sc=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),j2=/\s|\//,S2=function(){function t(e,r){r===void 0&&(r={});var n,a,s,o,c;this.options=r,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=e??{},this.lowerCaseTagNames=(n=r.lowerCaseTags)!==null&&n!==void 0?n:!r.xmlMode,this.lowerCaseAttributeNames=(a=r.lowerCaseAttributeNames)!==null&&a!==void 0?a:!r.xmlMode,this.tokenizer=new((s=r.Tokenizer)!==null&&s!==void 0?s:hs.default)(this.options,this),(c=(o=this.cbs).onparserinit)===null||c===void 0||c.call(o,this)}return t.prototype.ontext=function(e,r){var n,a,s=this.getSlice(e,r);this.endIndex=r-1,(a=(n=this.cbs).ontext)===null||a===void 0||a.call(n,s),this.startIndex=r},t.prototype.ontextentity=function(e){var r,n,a=this.tokenizer.getSectionStart();this.endIndex=a-1,(n=(r=this.cbs).ontext)===null||n===void 0||n.call(r,(0,ec.fromCodePoint)(e)),this.startIndex=a},t.prototype.isVoidElement=function(e){return!this.options.xmlMode&&k2.has(e)},t.prototype.onopentagname=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);this.lowerCaseTagNames&&(n=n.toLowerCase()),this.emitOpenTag(n)},t.prototype.emitOpenTag=function(e){var r,n,a,s;this.openTagStart=this.startIndex,this.tagname=e;var o=!this.options.xmlMode&&A2.get(e);if(o)for(;this.stack.length>0&&o.has(this.stack[this.stack.length-1]);){var c=this.stack.pop();(n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,c,!0)}this.isVoidElement(e)||(this.stack.push(e),ac.has(e)?this.foreignContext.push(!0):sc.has(e)&&this.foreignContext.push(!1)),(s=(a=this.cbs).onopentagname)===null||s===void 0||s.call(a,e),this.cbs.onopentag&&(this.attribs={})},t.prototype.endOpenTag=function(e){var r,n;this.startIndex=this.openTagStart,this.attribs&&((n=(r=this.cbs).onopentag)===null||n===void 0||n.call(r,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},t.prototype.onopentagend=function(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1},t.prototype.onclosetag=function(e,r){var n,a,s,o,c,u;this.endIndex=r;var f=this.getSlice(e,r);if(this.lowerCaseTagNames&&(f=f.toLowerCase()),(ac.has(f)||sc.has(f))&&this.foreignContext.pop(),this.isVoidElement(f))!this.options.xmlMode&&f==="br"&&((a=(n=this.cbs).onopentagname)===null||a===void 0||a.call(n,"br"),(o=(s=this.cbs).onopentag)===null||o===void 0||o.call(s,"br",{},!0),(u=(c=this.cbs).onclosetag)===null||u===void 0||u.call(c,"br",!1));else{var l=this.stack.lastIndexOf(f);if(l!==-1)if(this.cbs.onclosetag)for(var h=this.stack.length-l;h--;)this.cbs.onclosetag(this.stack.pop(),h!==0);else this.stack.length=l;else!this.options.xmlMode&&f==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=r+1},t.prototype.onselfclosingtag=function(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)},t.prototype.closeCurrentTag=function(e){var r,n,a=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===a&&((n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,a,!e),this.stack.pop())},t.prototype.onattribname=function(e,r){this.startIndex=e;var n=this.getSlice(e,r);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n},t.prototype.onattribdata=function(e,r){this.attribvalue+=this.getSlice(e,r)},t.prototype.onattribentity=function(e){this.attribvalue+=(0,ec.fromCodePoint)(e)},t.prototype.onattribend=function(e,r){var n,a;this.endIndex=r,(a=(n=this.cbs).onattribute)===null||a===void 0||a.call(n,this.attribname,this.attribvalue,e===hs.QuoteType.Double?'"':e===hs.QuoteType.Single?"'":e===hs.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},t.prototype.getInstructionName=function(e){var r=e.search(j2),n=r<0?e:e.substr(0,r);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},t.prototype.ondeclaration=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);if(this.cbs.onprocessinginstruction){var a=this.getInstructionName(n);this.cbs.onprocessinginstruction("!".concat(a),"!".concat(n))}this.startIndex=r+1},t.prototype.onprocessinginstruction=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);if(this.cbs.onprocessinginstruction){var a=this.getInstructionName(n);this.cbs.onprocessinginstruction("?".concat(a),"?".concat(n))}this.startIndex=r+1},t.prototype.oncomment=function(e,r,n){var a,s,o,c;this.endIndex=r,(s=(a=this.cbs).oncomment)===null||s===void 0||s.call(a,this.getSlice(e,r-n)),(c=(o=this.cbs).oncommentend)===null||c===void 0||c.call(o),this.startIndex=r+1},t.prototype.oncdata=function(e,r,n){var a,s,o,c,u,f,l,h,d,m;this.endIndex=r;var b=this.getSlice(e,r-n);this.options.xmlMode||this.options.recognizeCDATA?((s=(a=this.cbs).oncdatastart)===null||s===void 0||s.call(a),(c=(o=this.cbs).ontext)===null||c===void 0||c.call(o,b),(f=(u=this.cbs).oncdataend)===null||f===void 0||f.call(u)):((h=(l=this.cbs).oncomment)===null||h===void 0||h.call(l,"[CDATA[".concat(b,"]]")),(m=(d=this.cbs).oncommentend)===null||m===void 0||m.call(d)),this.startIndex=r+1},t.prototype.onend=function(){var e,r;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n],!0));}(r=(e=this.cbs).onend)===null||r===void 0||r.call(e)},t.prototype.reset=function(){var e,r,n,a;(r=(e=this.cbs).onreset)===null||r===void 0||r.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(a=(n=this.cbs).onparserinit)===null||a===void 0||a.call(n,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},t.prototype.parseComplete=function(e){this.reset(),this.end(e)},t.prototype.getSlice=function(e,r){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var n=this.buffers[0].slice(e-this.bufferOffset,r-this.bufferOffset);r-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,r-this.bufferOffset);return n},t.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},t.prototype.write=function(e){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".write() after done!"));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)},t.prototype.end=function(e){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".end() after done!"));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()},t.prototype.pause=function(){this.tokenizer.pause()},t.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()},t.prototype.parseChunk=function(e){this.write(e)},t.prototype.done=function(e){this.end(e)},t}();ba.Parser=S2;var Gt={},Rn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0;var e;(function(n){n.Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype"})(e=t.ElementType||(t.ElementType={}));function r(n){return n.type===e.Tag||n.type===e.Script||n.type===e.Style}t.isTag=r,t.Root=e.Root,t.Text=e.Text,t.Directive=e.Directive,t.Comment=e.Comment,t.Script=e.Script,t.Style=e.Style,t.Tag=e.Tag,t.CDATA=e.CDATA,t.Doctype=e.Doctype})(Rn);var oe={},gr=J&&J.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(n[s]=a[s])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),ia=J&&J.__assign||function(){return ia=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},ia.apply(this,arguments)};Object.defineProperty(oe,"__esModule",{value:!0});oe.cloneNode=oe.hasChildren=oe.isDocument=oe.isDirective=oe.isComment=oe.isText=oe.isCDATA=oe.isTag=oe.Element=oe.Document=oe.CDATA=oe.NodeWithChildren=oe.ProcessingInstruction=oe.Comment=oe.Text=oe.DataNode=oe.Node=void 0;var Xe=Rn,Vu=function(){function t(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),t.prototype.cloneNode=function(e){return e===void 0&&(e=!1),qu(this,e)},t}();oe.Node=Vu;var Wi=function(t){gr(e,t);function e(r){var n=t.call(this)||this;return n.data=r,n}return Object.defineProperty(e.prototype,"nodeValue",{get:function(){return this.data},set:function(r){this.data=r},enumerable:!1,configurable:!0}),e}(Vu);oe.DataNode=Wi;var r0=function(t){gr(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Xe.ElementType.Text,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),e}(Wi);oe.Text=r0;var n0=function(t){gr(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Xe.ElementType.Comment,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),e}(Wi);oe.Comment=n0;var a0=function(t){gr(e,t);function e(r,n){var a=t.call(this,n)||this;return a.name=r,a.type=Xe.ElementType.Directive,a}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),e}(Wi);oe.ProcessingInstruction=a0;var Gi=function(t){gr(e,t);function e(r){var n=t.call(this)||this;return n.children=r,n}return Object.defineProperty(e.prototype,"firstChild",{get:function(){var r;return(r=this.children[0])!==null&&r!==void 0?r:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childNodes",{get:function(){return this.children},set:function(r){this.children=r},enumerable:!1,configurable:!0}),e}(Vu);oe.NodeWithChildren=Gi;var s0=function(t){gr(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Xe.ElementType.CDATA,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),e}(Gi);oe.CDATA=s0;var i0=function(t){gr(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Xe.ElementType.Root,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),e}(Gi);oe.Document=i0;var o0=function(t){gr(e,t);function e(r,n,a,s){a===void 0&&(a=[]),s===void 0&&(s=r==="script"?Xe.ElementType.Script:r==="style"?Xe.ElementType.Style:Xe.ElementType.Tag);var o=t.call(this,a)||this;return o.name=r,o.attribs=n,o.type=s,o}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(n){var a,s;return{name:n,value:r.attribs[n],namespace:(a=r["x-attribsNamespace"])===null||a===void 0?void 0:a[n],prefix:(s=r["x-attribsPrefix"])===null||s===void 0?void 0:s[n]}})},enumerable:!1,configurable:!0}),e}(Gi);oe.Element=o0;function u0(t){return(0,Xe.isTag)(t)}oe.isTag=u0;function l0(t){return t.type===Xe.ElementType.CDATA}oe.isCDATA=l0;function c0(t){return t.type===Xe.ElementType.Text}oe.isText=c0;function d0(t){return t.type===Xe.ElementType.Comment}oe.isComment=d0;function f0(t){return t.type===Xe.ElementType.Directive}oe.isDirective=f0;function h0(t){return t.type===Xe.ElementType.Root}oe.isDocument=h0;function D2(t){return Object.prototype.hasOwnProperty.call(t,"children")}oe.hasChildren=D2;function qu(t,e){e===void 0&&(e=!1);var r;if(c0(t))r=new r0(t.data);else if(d0(t))r=new n0(t.data);else if(u0(t)){var n=e?wo(t.children):[],a=new o0(t.name,ia({},t.attribs),n);n.forEach(function(u){return u.parent=a}),t.namespace!=null&&(a.namespace=t.namespace),t["x-attribsNamespace"]&&(a["x-attribsNamespace"]=ia({},t["x-attribsNamespace"])),t["x-attribsPrefix"]&&(a["x-attribsPrefix"]=ia({},t["x-attribsPrefix"])),r=a}else if(l0(t)){var n=e?wo(t.children):[],s=new s0(n);n.forEach(function(f){return f.parent=s}),r=s}else if(h0(t)){var n=e?wo(t.children):[],o=new i0(n);n.forEach(function(f){return f.parent=o}),t["x-mode"]&&(o["x-mode"]=t["x-mode"]),r=o}else if(f0(t)){var c=new a0(t.name,t.data);t["x-name"]!=null&&(c["x-name"]=t["x-name"],c["x-publicId"]=t["x-publicId"],c["x-systemId"]=t["x-systemId"]),r=c}else throw new Error("Not implemented yet: ".concat(t.type));return r.startIndex=t.startIndex,r.endIndex=t.endIndex,t.sourceCodeLocation!=null&&(r.sourceCodeLocation=t.sourceCodeLocation),r}oe.cloneNode=qu;function wo(t){for(var e=t.map(function(n){return qu(n,!0)}),r=1;r<e.length;r++)e[r].prev=e[r-1],e[r-1].next=e[r];return e}(function(t){var e=J&&J.__createBinding||(Object.create?function(c,u,f,l){l===void 0&&(l=f);var h=Object.getOwnPropertyDescriptor(u,f);(!h||("get"in h?!u.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return u[f]}}),Object.defineProperty(c,l,h)}:function(c,u,f,l){l===void 0&&(l=f),c[l]=u[f]}),r=J&&J.__exportStar||function(c,u){for(var f in c)f!=="default"&&!Object.prototype.hasOwnProperty.call(u,f)&&e(u,c,f)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var n=Rn,a=oe;r(oe,t);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},o=function(){function c(u,f,l){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof f=="function"&&(l=f,f=s),typeof u=="object"&&(f=u,u=void 0),this.callback=u??null,this.options=f??s,this.elementCB=l??null}return c.prototype.onparserinit=function(u){this.parser=u},c.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},c.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},c.prototype.onerror=function(u){this.handleCallback(u)},c.prototype.onclosetag=function(){this.lastNode=null;var u=this.tagStack.pop();this.options.withEndIndices&&(u.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(u)},c.prototype.onopentag=function(u,f){var l=this.options.xmlMode?n.ElementType.Tag:void 0,h=new a.Element(u,f,void 0,l);this.addNode(h),this.tagStack.push(h)},c.prototype.ontext=function(u){var f=this.lastNode;if(f&&f.type===n.ElementType.Text)f.data+=u,this.options.withEndIndices&&(f.endIndex=this.parser.endIndex);else{var l=new a.Text(u);this.addNode(l),this.lastNode=l}},c.prototype.oncomment=function(u){if(this.lastNode&&this.lastNode.type===n.ElementType.Comment){this.lastNode.data+=u;return}var f=new a.Comment(u);this.addNode(f),this.lastNode=f},c.prototype.oncommentend=function(){this.lastNode=null},c.prototype.oncdatastart=function(){var u=new a.Text(""),f=new a.CDATA([u]);this.addNode(f),u.parent=f,this.lastNode=u},c.prototype.oncdataend=function(){this.lastNode=null},c.prototype.onprocessinginstruction=function(u,f){var l=new a.ProcessingInstruction(u,f);this.addNode(l)},c.prototype.handleCallback=function(u){if(typeof this.callback=="function")this.callback(u,this.dom);else if(u)throw u},c.prototype.addNode=function(u){var f=this.tagStack[this.tagStack.length-1],l=f.children[f.children.length-1];this.options.withStartIndices&&(u.startIndex=this.parser.startIndex),this.options.withEndIndices&&(u.endIndex=this.parser.endIndex),f.children.push(u),l&&(u.prev=l,l.next=u),u.parent=f,this.lastNode=null},c}();t.DomHandler=o,t.default=o})(Gt);var As={},br={},$a={},p0={},Rr={},Uu={};Object.defineProperty(Uu,"__esModule",{value:!0});function ps(t){for(var e=1;e<t.length;e++)t[e][0]+=t[e-1][0]+1;return t}Uu.default=new Map(ps([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Dcy;"],[0,"&IEcy;"],[0,"&ZHcy;"],[0,"&Zcy;"],[0,"&Icy;"],[0,"&Jcy;"],[0,"&Kcy;"],[0,"&Lcy;"],[0,"&Mcy;"],[0,"&Ncy;"],[0,"&Ocy;"],[0,"&Pcy;"],[0,"&Rcy;"],[0,"&Scy;"],[0,"&Tcy;"],[0,"&Ucy;"],[0,"&Fcy;"],[0,"&KHcy;"],[0,"&TScy;"],[0,"&CHcy;"],[0,"&SHcy;"],[0,"&SHCHcy;"],[0,"&HARDcy;"],[0,"&Ycy;"],[0,"&SOFTcy;"],[0,"&Ecy;"],[0,"&YUcy;"],[0,"&YAcy;"],[0,"&acy;"],[0,"&bcy;"],[0,"&vcy;"],[0,"&gcy;"],[0,"&dcy;"],[0,"&iecy;"],[0,"&zhcy;"],[0,"&zcy;"],[0,"&icy;"],[0,"&jcy;"],[0,"&kcy;"],[0,"&lcy;"],[0,"&mcy;"],[0,"&ncy;"],[0,"&ocy;"],[0,"&pcy;"],[0,"&rcy;"],[0,"&scy;"],[0,"&tcy;"],[0,"&ucy;"],[0,"&fcy;"],[0,"&khcy;"],[0,"&tscy;"],[0,"&chcy;"],[0,"&shcy;"],[0,"&shchcy;"],[0,"&hardcy;"],[0,"&ycy;"],[0,"&softcy;"],[0,"&ecy;"],[0,"&yucy;"],[0,"&yacy;"],[1,"&iocy;"],[0,"&djcy;"],[0,"&gjcy;"],[0,"&jukcy;"],[0,"&dscy;"],[0,"&iukcy;"],[0,"&yicy;"],[0,"&jsercy;"],[0,"&ljcy;"],[0,"&njcy;"],[0,"&tshcy;"],[0,"&kjcy;"],[1,"&ubrcy;"],[0,"&dzcy;"],[7074,"&ensp;"],[0,"&emsp;"],[0,"&emsp13;"],[0,"&emsp14;"],[1,"&numsp;"],[0,"&puncsp;"],[0,"&ThinSpace;"],[0,"&hairsp;"],[0,"&NegativeMediumSpace;"],[0,"&zwnj;"],[0,"&zwj;"],[0,"&lrm;"],[0,"&rlm;"],[0,"&dash;"],[2,"&ndash;"],[0,"&mdash;"],[0,"&horbar;"],[0,"&Verbar;"],[1,"&lsquo;"],[0,"&CloseCurlyQuote;"],[0,"&lsquor;"],[1,"&ldquo;"],[0,"&CloseCurlyDoubleQuote;"],[0,"&bdquo;"],[1,"&dagger;"],[0,"&Dagger;"],[0,"&bull;"],[2,"&nldr;"],[0,"&hellip;"],[9,"&permil;"],[0,"&pertenk;"],[0,"&prime;"],[0,"&Prime;"],[0,"&tprime;"],[0,"&backprime;"],[3,"&lsaquo;"],[0,"&rsaquo;"],[3,"&oline;"],[2,"&caret;"],[1,"&hybull;"],[0,"&frasl;"],[10,"&bsemi;"],[7,"&qprime;"],[7,{v:"&MediumSpace;",n:8202,o:"&ThickSpace;"}],[0,"&NoBreak;"],[0,"&af;"],[0,"&InvisibleTimes;"],[0,"&ic;"],[72,"&euro;"],[46,"&tdot;"],[0,"&DotDot;"],[37,"&complexes;"],[2,"&incare;"],[4,"&gscr;"],[0,"&hamilt;"],[0,"&Hfr;"],[0,"&Hopf;"],[0,"&planckh;"],[0,"&hbar;"],[0,"&imagline;"],[0,"&Ifr;"],[0,"&lagran;"],[0,"&ell;"],[1,"&naturals;"],[0,"&numero;"],[0,"&copysr;"],[0,"&weierp;"],[0,"&Popf;"],[0,"&Qopf;"],[0,"&realine;"],[0,"&real;"],[0,"&reals;"],[0,"&rx;"],[3,"&trade;"],[1,"&integers;"],[2,"&mho;"],[0,"&zeetrf;"],[0,"&iiota;"],[2,"&bernou;"],[0,"&Cayleys;"],[1,"&escr;"],[0,"&Escr;"],[0,"&Fouriertrf;"],[1,"&Mellintrf;"],[0,"&order;"],[0,"&alefsym;"],[0,"&beth;"],[0,"&gimel;"],[0,"&daleth;"],[12,"&CapitalDifferentialD;"],[0,"&dd;"],[0,"&ee;"],[0,"&ii;"],[10,"&frac13;"],[0,"&frac23;"],[0,"&frac15;"],[0,"&frac25;"],[0,"&frac35;"],[0,"&frac45;"],[0,"&frac16;"],[0,"&frac56;"],[0,"&frac18;"],[0,"&frac38;"],[0,"&frac58;"],[0,"&frac78;"],[49,"&larr;"],[0,"&ShortUpArrow;"],[0,"&rarr;"],[0,"&darr;"],[0,"&harr;"],[0,"&updownarrow;"],[0,"&nwarr;"],[0,"&nearr;"],[0,"&LowerRightArrow;"],[0,"&LowerLeftArrow;"],[0,"&nlarr;"],[0,"&nrarr;"],[1,{v:"&rarrw;",n:824,o:"&nrarrw;"}],[0,"&Larr;"],[0,"&Uarr;"],[0,"&Rarr;"],[0,"&Darr;"],[0,"&larrtl;"],[0,"&rarrtl;"],[0,"&LeftTeeArrow;"],[0,"&mapstoup;"],[0,"&map;"],[0,"&DownTeeArrow;"],[1,"&hookleftarrow;"],[0,"&hookrightarrow;"],[0,"&larrlp;"],[0,"&looparrowright;"],[0,"&harrw;"],[0,"&nharr;"],[1,"&lsh;"],[0,"&rsh;"],[0,"&ldsh;"],[0,"&rdsh;"],[1,"&crarr;"],[0,"&cularr;"],[0,"&curarr;"],[2,"&circlearrowleft;"],[0,"&circlearrowright;"],[0,"&leftharpoonup;"],[0,"&DownLeftVector;"],[0,"&RightUpVector;"],[0,"&LeftUpVector;"],[0,"&rharu;"],[0,"&DownRightVector;"],[0,"&dharr;"],[0,"&dharl;"],[0,"&RightArrowLeftArrow;"],[0,"&udarr;"],[0,"&LeftArrowRightArrow;"],[0,"&leftleftarrows;"],[0,"&upuparrows;"],[0,"&rightrightarrows;"],[0,"&ddarr;"],[0,"&leftrightharpoons;"],[0,"&Equilibrium;"],[0,"&nlArr;"],[0,"&nhArr;"],[0,"&nrArr;"],[0,"&DoubleLeftArrow;"],[0,"&DoubleUpArrow;"],[0,"&DoubleRightArrow;"],[0,"&dArr;"],[0,"&DoubleLeftRightArrow;"],[0,"&DoubleUpDownArrow;"],[0,"&nwArr;"],[0,"&neArr;"],[0,"&seArr;"],[0,"&swArr;"],[0,"&lAarr;"],[0,"&rAarr;"],[1,"&zigrarr;"],[6,"&larrb;"],[0,"&rarrb;"],[15,"&DownArrowUpArrow;"],[7,"&loarr;"],[0,"&roarr;"],[0,"&hoarr;"],[0,"&forall;"],[0,"&comp;"],[0,{v:"&part;",n:824,o:"&npart;"}],[0,"&exist;"],[0,"&nexist;"],[0,"&empty;"],[1,"&Del;"],[0,"&Element;"],[0,"&NotElement;"],[1,"&ni;"],[0,"&notni;"],[2,"&prod;"],[0,"&coprod;"],[0,"&sum;"],[0,"&minus;"],[0,"&MinusPlus;"],[0,"&dotplus;"],[1,"&Backslash;"],[0,"&lowast;"],[0,"&compfn;"],[1,"&radic;"],[2,"&prop;"],[0,"&infin;"],[0,"&angrt;"],[0,{v:"&ang;",n:8402,o:"&nang;"}],[0,"&angmsd;"],[0,"&angsph;"],[0,"&mid;"],[0,"&nmid;"],[0,"&DoubleVerticalBar;"],[0,"&NotDoubleVerticalBar;"],[0,"&and;"],[0,"&or;"],[0,{v:"&cap;",n:65024,o:"&caps;"}],[0,{v:"&cup;",n:65024,o:"&cups;"}],[0,"&int;"],[0,"&Int;"],[0,"&iiint;"],[0,"&conint;"],[0,"&Conint;"],[0,"&Cconint;"],[0,"&cwint;"],[0,"&ClockwiseContourIntegral;"],[0,"&awconint;"],[0,"&there4;"],[0,"&becaus;"],[0,"&ratio;"],[0,"&Colon;"],[0,"&dotminus;"],[1,"&mDDot;"],[0,"&homtht;"],[0,{v:"&sim;",n:8402,o:"&nvsim;"}],[0,{v:"&backsim;",n:817,o:"&race;"}],[0,{v:"&ac;",n:819,o:"&acE;"}],[0,"&acd;"],[0,"&VerticalTilde;"],[0,"&NotTilde;"],[0,{v:"&eqsim;",n:824,o:"&nesim;"}],[0,"&sime;"],[0,"&NotTildeEqual;"],[0,"&cong;"],[0,"&simne;"],[0,"&ncong;"],[0,"&ap;"],[0,"&nap;"],[0,"&ape;"],[0,{v:"&apid;",n:824,o:"&napid;"}],[0,"&backcong;"],[0,{v:"&asympeq;",n:8402,o:"&nvap;"}],[0,{v:"&bump;",n:824,o:"&nbump;"}],[0,{v:"&bumpe;",n:824,o:"&nbumpe;"}],[0,{v:"&doteq;",n:824,o:"&nedot;"}],[0,"&doteqdot;"],[0,"&efDot;"],[0,"&erDot;"],[0,"&Assign;"],[0,"&ecolon;"],[0,"&ecir;"],[0,"&circeq;"],[1,"&wedgeq;"],[0,"&veeeq;"],[1,"&triangleq;"],[2,"&equest;"],[0,"&ne;"],[0,{v:"&Congruent;",n:8421,o:"&bnequiv;"}],[0,"&nequiv;"],[1,{v:"&le;",n:8402,o:"&nvle;"}],[0,{v:"&ge;",n:8402,o:"&nvge;"}],[0,{v:"&lE;",n:824,o:"&nlE;"}],[0,{v:"&gE;",n:824,o:"&ngE;"}],[0,{v:"&lnE;",n:65024,o:"&lvertneqq;"}],[0,{v:"&gnE;",n:65024,o:"&gvertneqq;"}],[0,{v:"&ll;",n:new Map(ps([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(ps([[824,"&nGtv;"],[7577,"&nGt;"]]))}],[0,"&between;"],[0,"&NotCupCap;"],[0,"&nless;"],[0,"&ngt;"],[0,"&nle;"],[0,"&nge;"],[0,"&lesssim;"],[0,"&GreaterTilde;"],[0,"&nlsim;"],[0,"&ngsim;"],[0,"&LessGreater;"],[0,"&gl;"],[0,"&NotLessGreater;"],[0,"&NotGreaterLess;"],[0,"&pr;"],[0,"&sc;"],[0,"&prcue;"],[0,"&sccue;"],[0,"&PrecedesTilde;"],[0,{v:"&scsim;",n:824,o:"&NotSucceedsTilde;"}],[0,"&NotPrecedes;"],[0,"&NotSucceeds;"],[0,{v:"&sub;",n:8402,o:"&NotSubset;"}],[0,{v:"&sup;",n:8402,o:"&NotSuperset;"}],[0,"&nsub;"],[0,"&nsup;"],[0,"&sube;"],[0,"&supe;"],[0,"&NotSubsetEqual;"],[0,"&NotSupersetEqual;"],[0,{v:"&subne;",n:65024,o:"&varsubsetneq;"}],[0,{v:"&supne;",n:65024,o:"&varsupsetneq;"}],[1,"&cupdot;"],[0,"&UnionPlus;"],[0,{v:"&sqsub;",n:824,o:"&NotSquareSubset;"}],[0,{v:"&sqsup;",n:824,o:"&NotSquareSuperset;"}],[0,"&sqsube;"],[0,"&sqsupe;"],[0,{v:"&sqcap;",n:65024,o:"&sqcaps;"}],[0,{v:"&sqcup;",n:65024,o:"&sqcups;"}],[0,"&CirclePlus;"],[0,"&CircleMinus;"],[0,"&CircleTimes;"],[0,"&osol;"],[0,"&CircleDot;"],[0,"&circledcirc;"],[0,"&circledast;"],[1,"&circleddash;"],[0,"&boxplus;"],[0,"&boxminus;"],[0,"&boxtimes;"],[0,"&dotsquare;"],[0,"&RightTee;"],[0,"&dashv;"],[0,"&DownTee;"],[0,"&bot;"],[1,"&models;"],[0,"&DoubleRightTee;"],[0,"&Vdash;"],[0,"&Vvdash;"],[0,"&VDash;"],[0,"&nvdash;"],[0,"&nvDash;"],[0,"&nVdash;"],[0,"&nVDash;"],[0,"&prurel;"],[1,"&LeftTriangle;"],[0,"&RightTriangle;"],[0,{v:"&LeftTriangleEqual;",n:8402,o:"&nvltrie;"}],[0,{v:"&RightTriangleEqual;",n:8402,o:"&nvrtrie;"}],[0,"&origof;"],[0,"&imof;"],[0,"&multimap;"],[0,"&hercon;"],[0,"&intcal;"],[0,"&veebar;"],[1,"&barvee;"],[0,"&angrtvb;"],[0,"&lrtri;"],[0,"&bigwedge;"],[0,"&bigvee;"],[0,"&bigcap;"],[0,"&bigcup;"],[0,"&diam;"],[0,"&sdot;"],[0,"&sstarf;"],[0,"&divideontimes;"],[0,"&bowtie;"],[0,"&ltimes;"],[0,"&rtimes;"],[0,"&leftthreetimes;"],[0,"&rightthreetimes;"],[0,"&backsimeq;"],[0,"&curlyvee;"],[0,"&curlywedge;"],[0,"&Sub;"],[0,"&Sup;"],[0,"&Cap;"],[0,"&Cup;"],[0,"&fork;"],[0,"&epar;"],[0,"&lessdot;"],[0,"&gtdot;"],[0,{v:"&Ll;",n:824,o:"&nLl;"}],[0,{v:"&Gg;",n:824,o:"&nGg;"}],[0,{v:"&leg;",n:65024,o:"&lesg;"}],[0,{v:"&gel;",n:65024,o:"&gesl;"}],[2,"&cuepr;"],[0,"&cuesc;"],[0,"&NotPrecedesSlantEqual;"],[0,"&NotSucceedsSlantEqual;"],[0,"&NotSquareSubsetEqual;"],[0,"&NotSquareSupersetEqual;"],[2,"&lnsim;"],[0,"&gnsim;"],[0,"&precnsim;"],[0,"&scnsim;"],[0,"&nltri;"],[0,"&NotRightTriangle;"],[0,"&nltrie;"],[0,"&NotRightTriangleEqual;"],[0,"&vellip;"],[0,"&ctdot;"],[0,"&utdot;"],[0,"&dtdot;"],[0,"&disin;"],[0,"&isinsv;"],[0,"&isins;"],[0,{v:"&isindot;",n:824,o:"&notindot;"}],[0,"&notinvc;"],[0,"&notinvb;"],[1,{v:"&isinE;",n:824,o:"&notinE;"}],[0,"&nisd;"],[0,"&xnis;"],[0,"&nis;"],[0,"&notnivc;"],[0,"&notnivb;"],[6,"&barwed;"],[0,"&Barwed;"],[1,"&lceil;"],[0,"&rceil;"],[0,"&LeftFloor;"],[0,"&rfloor;"],[0,"&drcrop;"],[0,"&dlcrop;"],[0,"&urcrop;"],[0,"&ulcrop;"],[0,"&bnot;"],[1,"&profline;"],[0,"&profsurf;"],[1,"&telrec;"],[0,"&target;"],[5,"&ulcorn;"],[0,"&urcorn;"],[0,"&dlcorn;"],[0,"&drcorn;"],[2,"&frown;"],[0,"&smile;"],[9,"&cylcty;"],[0,"&profalar;"],[7,"&topbot;"],[6,"&ovbar;"],[1,"&solbar;"],[60,"&angzarr;"],[51,"&lmoustache;"],[0,"&rmoustache;"],[2,"&OverBracket;"],[0,"&bbrk;"],[0,"&bbrktbrk;"],[37,"&OverParenthesis;"],[0,"&UnderParenthesis;"],[0,"&OverBrace;"],[0,"&UnderBrace;"],[2,"&trpezium;"],[4,"&elinters;"],[59,"&blank;"],[164,"&circledS;"],[55,"&boxh;"],[1,"&boxv;"],[9,"&boxdr;"],[3,"&boxdl;"],[3,"&boxur;"],[3,"&boxul;"],[3,"&boxvr;"],[7,"&boxvl;"],[7,"&boxhd;"],[7,"&boxhu;"],[7,"&boxvh;"],[19,"&boxH;"],[0,"&boxV;"],[0,"&boxdR;"],[0,"&boxDr;"],[0,"&boxDR;"],[0,"&boxdL;"],[0,"&boxDl;"],[0,"&boxDL;"],[0,"&boxuR;"],[0,"&boxUr;"],[0,"&boxUR;"],[0,"&boxuL;"],[0,"&boxUl;"],[0,"&boxUL;"],[0,"&boxvR;"],[0,"&boxVr;"],[0,"&boxVR;"],[0,"&boxvL;"],[0,"&boxVl;"],[0,"&boxVL;"],[0,"&boxHd;"],[0,"&boxhD;"],[0,"&boxHD;"],[0,"&boxHu;"],[0,"&boxhU;"],[0,"&boxHU;"],[0,"&boxvH;"],[0,"&boxVh;"],[0,"&boxVH;"],[19,"&uhblk;"],[3,"&lhblk;"],[3,"&block;"],[8,"&blk14;"],[0,"&blk12;"],[0,"&blk34;"],[13,"&square;"],[8,"&blacksquare;"],[0,"&EmptyVerySmallSquare;"],[1,"&rect;"],[0,"&marker;"],[2,"&fltns;"],[1,"&bigtriangleup;"],[0,"&blacktriangle;"],[0,"&triangle;"],[2,"&blacktriangleright;"],[0,"&rtri;"],[3,"&bigtriangledown;"],[0,"&blacktriangledown;"],[0,"&dtri;"],[2,"&blacktriangleleft;"],[0,"&ltri;"],[6,"&loz;"],[0,"&cir;"],[32,"&tridot;"],[2,"&bigcirc;"],[8,"&ultri;"],[0,"&urtri;"],[0,"&lltri;"],[0,"&EmptySmallSquare;"],[0,"&FilledSmallSquare;"],[8,"&bigstar;"],[0,"&star;"],[7,"&phone;"],[49,"&female;"],[1,"&male;"],[29,"&spades;"],[2,"&clubs;"],[1,"&hearts;"],[0,"&diamondsuit;"],[3,"&sung;"],[2,"&flat;"],[0,"&natural;"],[0,"&sharp;"],[163,"&check;"],[3,"&cross;"],[8,"&malt;"],[21,"&sext;"],[33,"&VerticalSeparator;"],[25,"&lbbrk;"],[0,"&rbbrk;"],[84,"&bsolhsub;"],[0,"&suphsol;"],[28,"&LeftDoubleBracket;"],[0,"&RightDoubleBracket;"],[0,"&lang;"],[0,"&rang;"],[0,"&Lang;"],[0,"&Rang;"],[0,"&loang;"],[0,"&roang;"],[7,"&longleftarrow;"],[0,"&longrightarrow;"],[0,"&longleftrightarrow;"],[0,"&DoubleLongLeftArrow;"],[0,"&DoubleLongRightArrow;"],[0,"&DoubleLongLeftRightArrow;"],[1,"&longmapsto;"],[2,"&dzigrarr;"],[258,"&nvlArr;"],[0,"&nvrArr;"],[0,"&nvHarr;"],[0,"&Map;"],[6,"&lbarr;"],[0,"&bkarow;"],[0,"&lBarr;"],[0,"&dbkarow;"],[0,"&drbkarow;"],[0,"&DDotrahd;"],[0,"&UpArrowBar;"],[0,"&DownArrowBar;"],[2,"&Rarrtl;"],[2,"&latail;"],[0,"&ratail;"],[0,"&lAtail;"],[0,"&rAtail;"],[0,"&larrfs;"],[0,"&rarrfs;"],[0,"&larrbfs;"],[0,"&rarrbfs;"],[2,"&nwarhk;"],[0,"&nearhk;"],[0,"&hksearow;"],[0,"&hkswarow;"],[0,"&nwnear;"],[0,"&nesear;"],[0,"&seswar;"],[0,"&swnwar;"],[8,{v:"&rarrc;",n:824,o:"&nrarrc;"}],[1,"&cudarrr;"],[0,"&ldca;"],[0,"&rdca;"],[0,"&cudarrl;"],[0,"&larrpl;"],[2,"&curarrm;"],[0,"&cularrp;"],[7,"&rarrpl;"],[2,"&harrcir;"],[0,"&Uarrocir;"],[0,"&lurdshar;"],[0,"&ldrushar;"],[2,"&LeftRightVector;"],[0,"&RightUpDownVector;"],[0,"&DownLeftRightVector;"],[0,"&LeftUpDownVector;"],[0,"&LeftVectorBar;"],[0,"&RightVectorBar;"],[0,"&RightUpVectorBar;"],[0,"&RightDownVectorBar;"],[0,"&DownLeftVectorBar;"],[0,"&DownRightVectorBar;"],[0,"&LeftUpVectorBar;"],[0,"&LeftDownVectorBar;"],[0,"&LeftTeeVector;"],[0,"&RightTeeVector;"],[0,"&RightUpTeeVector;"],[0,"&RightDownTeeVector;"],[0,"&DownLeftTeeVector;"],[0,"&DownRightTeeVector;"],[0,"&LeftUpTeeVector;"],[0,"&LeftDownTeeVector;"],[0,"&lHar;"],[0,"&uHar;"],[0,"&rHar;"],[0,"&dHar;"],[0,"&luruhar;"],[0,"&ldrdhar;"],[0,"&ruluhar;"],[0,"&rdldhar;"],[0,"&lharul;"],[0,"&llhard;"],[0,"&rharul;"],[0,"&lrhard;"],[0,"&udhar;"],[0,"&duhar;"],[0,"&RoundImplies;"],[0,"&erarr;"],[0,"&simrarr;"],[0,"&larrsim;"],[0,"&rarrsim;"],[0,"&rarrap;"],[0,"&ltlarr;"],[1,"&gtrarr;"],[0,"&subrarr;"],[1,"&suplarr;"],[0,"&lfisht;"],[0,"&rfisht;"],[0,"&ufisht;"],[0,"&dfisht;"],[5,"&lopar;"],[0,"&ropar;"],[4,"&lbrke;"],[0,"&rbrke;"],[0,"&lbrkslu;"],[0,"&rbrksld;"],[0,"&lbrksld;"],[0,"&rbrkslu;"],[0,"&langd;"],[0,"&rangd;"],[0,"&lparlt;"],[0,"&rpargt;"],[0,"&gtlPar;"],[0,"&ltrPar;"],[3,"&vzigzag;"],[1,"&vangrt;"],[0,"&angrtvbd;"],[6,"&ange;"],[0,"&range;"],[0,"&dwangle;"],[0,"&uwangle;"],[0,"&angmsdaa;"],[0,"&angmsdab;"],[0,"&angmsdac;"],[0,"&angmsdad;"],[0,"&angmsdae;"],[0,"&angmsdaf;"],[0,"&angmsdag;"],[0,"&angmsdah;"],[0,"&bemptyv;"],[0,"&demptyv;"],[0,"&cemptyv;"],[0,"&raemptyv;"],[0,"&laemptyv;"],[0,"&ohbar;"],[0,"&omid;"],[0,"&opar;"],[1,"&operp;"],[1,"&olcross;"],[0,"&odsold;"],[1,"&olcir;"],[0,"&ofcir;"],[0,"&olt;"],[0,"&ogt;"],[0,"&cirscir;"],[0,"&cirE;"],[0,"&solb;"],[0,"&bsolb;"],[3,"&boxbox;"],[3,"&trisb;"],[0,"&rtriltri;"],[0,{v:"&LeftTriangleBar;",n:824,o:"&NotLeftTriangleBar;"}],[0,{v:"&RightTriangleBar;",n:824,o:"&NotRightTriangleBar;"}],[11,"&iinfin;"],[0,"&infintie;"],[0,"&nvinfin;"],[4,"&eparsl;"],[0,"&smeparsl;"],[0,"&eqvparsl;"],[5,"&blacklozenge;"],[8,"&RuleDelayed;"],[1,"&dsol;"],[9,"&bigodot;"],[0,"&bigoplus;"],[0,"&bigotimes;"],[1,"&biguplus;"],[1,"&bigsqcup;"],[5,"&iiiint;"],[0,"&fpartint;"],[2,"&cirfnint;"],[0,"&awint;"],[0,"&rppolint;"],[0,"&scpolint;"],[0,"&npolint;"],[0,"&pointint;"],[0,"&quatint;"],[0,"&intlarhk;"],[10,"&pluscir;"],[0,"&plusacir;"],[0,"&simplus;"],[0,"&plusdu;"],[0,"&plussim;"],[0,"&plustwo;"],[1,"&mcomma;"],[0,"&minusdu;"],[2,"&loplus;"],[0,"&roplus;"],[0,"&Cross;"],[0,"&timesd;"],[0,"&timesbar;"],[1,"&smashp;"],[0,"&lotimes;"],[0,"&rotimes;"],[0,"&otimesas;"],[0,"&Otimes;"],[0,"&odiv;"],[0,"&triplus;"],[0,"&triminus;"],[0,"&tritime;"],[0,"&intprod;"],[2,"&amalg;"],[0,"&capdot;"],[1,"&ncup;"],[0,"&ncap;"],[0,"&capand;"],[0,"&cupor;"],[0,"&cupcap;"],[0,"&capcup;"],[0,"&cupbrcap;"],[0,"&capbrcup;"],[0,"&cupcup;"],[0,"&capcap;"],[0,"&ccups;"],[0,"&ccaps;"],[2,"&ccupssm;"],[2,"&And;"],[0,"&Or;"],[0,"&andand;"],[0,"&oror;"],[0,"&orslope;"],[0,"&andslope;"],[1,"&andv;"],[0,"&orv;"],[0,"&andd;"],[0,"&ord;"],[1,"&wedbar;"],[6,"&sdote;"],[3,"&simdot;"],[2,{v:"&congdot;",n:824,o:"&ncongdot;"}],[0,"&easter;"],[0,"&apacir;"],[0,{v:"&apE;",n:824,o:"&napE;"}],[0,"&eplus;"],[0,"&pluse;"],[0,"&Esim;"],[0,"&Colone;"],[0,"&Equal;"],[1,"&ddotseq;"],[0,"&equivDD;"],[0,"&ltcir;"],[0,"&gtcir;"],[0,"&ltquest;"],[0,"&gtquest;"],[0,{v:"&leqslant;",n:824,o:"&nleqslant;"}],[0,{v:"&geqslant;",n:824,o:"&ngeqslant;"}],[0,"&lesdot;"],[0,"&gesdot;"],[0,"&lesdoto;"],[0,"&gesdoto;"],[0,"&lesdotor;"],[0,"&gesdotol;"],[0,"&lap;"],[0,"&gap;"],[0,"&lne;"],[0,"&gne;"],[0,"&lnap;"],[0,"&gnap;"],[0,"&lEg;"],[0,"&gEl;"],[0,"&lsime;"],[0,"&gsime;"],[0,"&lsimg;"],[0,"&gsiml;"],[0,"&lgE;"],[0,"&glE;"],[0,"&lesges;"],[0,"&gesles;"],[0,"&els;"],[0,"&egs;"],[0,"&elsdot;"],[0,"&egsdot;"],[0,"&el;"],[0,"&eg;"],[2,"&siml;"],[0,"&simg;"],[0,"&simlE;"],[0,"&simgE;"],[0,{v:"&LessLess;",n:824,o:"&NotNestedLessLess;"}],[0,{v:"&GreaterGreater;",n:824,o:"&NotNestedGreaterGreater;"}],[1,"&glj;"],[0,"&gla;"],[0,"&ltcc;"],[0,"&gtcc;"],[0,"&lescc;"],[0,"&gescc;"],[0,"&smt;"],[0,"&lat;"],[0,{v:"&smte;",n:65024,o:"&smtes;"}],[0,{v:"&late;",n:65024,o:"&lates;"}],[0,"&bumpE;"],[0,{v:"&PrecedesEqual;",n:824,o:"&NotPrecedesEqual;"}],[0,{v:"&sce;",n:824,o:"&NotSucceedsEqual;"}],[2,"&prE;"],[0,"&scE;"],[0,"&precneqq;"],[0,"&scnE;"],[0,"&prap;"],[0,"&scap;"],[0,"&precnapprox;"],[0,"&scnap;"],[0,"&Pr;"],[0,"&Sc;"],[0,"&subdot;"],[0,"&supdot;"],[0,"&subplus;"],[0,"&supplus;"],[0,"&submult;"],[0,"&supmult;"],[0,"&subedot;"],[0,"&supedot;"],[0,{v:"&subE;",n:824,o:"&nsubE;"}],[0,{v:"&supE;",n:824,o:"&nsupE;"}],[0,"&subsim;"],[0,"&supsim;"],[2,{v:"&subnE;",n:65024,o:"&varsubsetneqq;"}],[0,{v:"&supnE;",n:65024,o:"&varsupsetneqq;"}],[2,"&csub;"],[0,"&csup;"],[0,"&csube;"],[0,"&csupe;"],[0,"&subsup;"],[0,"&supsub;"],[0,"&subsub;"],[0,"&supsup;"],[0,"&suphsub;"],[0,"&supdsub;"],[0,"&forkv;"],[0,"&topfork;"],[0,"&mlcp;"],[8,"&Dashv;"],[1,"&Vdashl;"],[0,"&Barv;"],[0,"&vBar;"],[0,"&vBarv;"],[1,"&Vbar;"],[0,"&Not;"],[0,"&bNot;"],[0,"&rnmid;"],[0,"&cirmid;"],[0,"&midcir;"],[0,"&topcir;"],[0,"&nhpar;"],[0,"&parsim;"],[9,{v:"&parsl;",n:8421,o:"&nparsl;"}],[44343,{n:new Map(ps([[56476,"&Ascr;"],[1,"&Cscr;"],[0,"&Dscr;"],[2,"&Gscr;"],[2,"&Jscr;"],[0,"&Kscr;"],[2,"&Nscr;"],[0,"&Oscr;"],[0,"&Pscr;"],[0,"&Qscr;"],[1,"&Sscr;"],[0,"&Tscr;"],[0,"&Uscr;"],[0,"&Vscr;"],[0,"&Wscr;"],[0,"&Xscr;"],[0,"&Yscr;"],[0,"&Zscr;"],[0,"&ascr;"],[0,"&bscr;"],[0,"&cscr;"],[0,"&dscr;"],[1,"&fscr;"],[1,"&hscr;"],[0,"&iscr;"],[0,"&jscr;"],[0,"&kscr;"],[0,"&lscr;"],[0,"&mscr;"],[0,"&nscr;"],[1,"&pscr;"],[0,"&qscr;"],[0,"&rscr;"],[0,"&sscr;"],[0,"&tscr;"],[0,"&uscr;"],[0,"&vscr;"],[0,"&wscr;"],[0,"&xscr;"],[0,"&yscr;"],[0,"&zscr;"],[52,"&Afr;"],[0,"&Bfr;"],[1,"&Dfr;"],[0,"&Efr;"],[0,"&Ffr;"],[0,"&Gfr;"],[2,"&Jfr;"],[0,"&Kfr;"],[0,"&Lfr;"],[0,"&Mfr;"],[0,"&Nfr;"],[0,"&Ofr;"],[0,"&Pfr;"],[0,"&Qfr;"],[1,"&Sfr;"],[0,"&Tfr;"],[0,"&Ufr;"],[0,"&Vfr;"],[0,"&Wfr;"],[0,"&Xfr;"],[0,"&Yfr;"],[1,"&afr;"],[0,"&bfr;"],[0,"&cfr;"],[0,"&dfr;"],[0,"&efr;"],[0,"&ffr;"],[0,"&gfr;"],[0,"&hfr;"],[0,"&ifr;"],[0,"&jfr;"],[0,"&kfr;"],[0,"&lfr;"],[0,"&mfr;"],[0,"&nfr;"],[0,"&ofr;"],[0,"&pfr;"],[0,"&qfr;"],[0,"&rfr;"],[0,"&sfr;"],[0,"&tfr;"],[0,"&ufr;"],[0,"&vfr;"],[0,"&wfr;"],[0,"&xfr;"],[0,"&yfr;"],[0,"&zfr;"],[0,"&Aopf;"],[0,"&Bopf;"],[1,"&Dopf;"],[0,"&Eopf;"],[0,"&Fopf;"],[0,"&Gopf;"],[1,"&Iopf;"],[0,"&Jopf;"],[0,"&Kopf;"],[0,"&Lopf;"],[0,"&Mopf;"],[1,"&Oopf;"],[3,"&Sopf;"],[0,"&Topf;"],[0,"&Uopf;"],[0,"&Vopf;"],[0,"&Wopf;"],[0,"&Xopf;"],[0,"&Yopf;"],[1,"&aopf;"],[0,"&bopf;"],[0,"&copf;"],[0,"&dopf;"],[0,"&eopf;"],[0,"&fopf;"],[0,"&gopf;"],[0,"&hopf;"],[0,"&iopf;"],[0,"&jopf;"],[0,"&kopf;"],[0,"&lopf;"],[0,"&mopf;"],[0,"&nopf;"],[0,"&oopf;"],[0,"&popf;"],[0,"&qopf;"],[0,"&ropf;"],[0,"&sopf;"],[0,"&topf;"],[0,"&uopf;"],[0,"&vopf;"],[0,"&wopf;"],[0,"&xopf;"],[0,"&yopf;"],[0,"&zopf;"]]))}],[8906,"&fflig;"],[0,"&filig;"],[0,"&fllig;"],[0,"&ffilig;"],[0,"&ffllig;"]]));var Us={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.getCodePoint=t.xmlReplacer=void 0,t.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var e=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);t.getCodePoint=String.prototype.codePointAt!=null?function(a,s){return a.codePointAt(s)}:function(a,s){return(a.charCodeAt(s)&64512)===55296?(a.charCodeAt(s)-55296)*1024+a.charCodeAt(s+1)-56320+65536:a.charCodeAt(s)};function r(a){for(var s="",o=0,c;(c=t.xmlReplacer.exec(a))!==null;){var u=c.index,f=a.charCodeAt(u),l=e.get(f);l!==void 0?(s+=a.substring(o,u)+l,o=u+1):(s+="".concat(a.substring(o,u),"&#x").concat((0,t.getCodePoint)(a,u).toString(16),";"),o=t.xmlReplacer.lastIndex+=+((f&64512)===55296))}return s+a.substr(o)}t.encodeXML=r,t.escape=r;function n(a,s){return function(c){for(var u,f=0,l="";u=a.exec(c);)f!==u.index&&(l+=c.substring(f,u.index)),l+=s.get(u[0].charCodeAt(0)),f=u.index+1;return l+c.substring(f)}}t.escapeUTF8=n(/[&<>'"]/g,e),t.escapeAttribute=n(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),t.escapeText=n(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]))})(Us);var T2=J&&J.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Rr,"__esModule",{value:!0});Rr.encodeNonAsciiHTML=Rr.encodeHTML=void 0;var C2=T2(Uu),m0=Us,O2=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function $2(t){return g0(O2,t)}Rr.encodeHTML=$2;function P2(t){return g0(m0.xmlReplacer,t)}Rr.encodeNonAsciiHTML=P2;function g0(t,e){for(var r="",n=0,a;(a=t.exec(e))!==null;){var s=a.index;r+=e.substring(n,s);var o=e.charCodeAt(s),c=C2.default.get(o);if(typeof c=="object"){if(s+1<e.length){var u=e.charCodeAt(s+1),f=typeof c.n=="number"?c.n===u?c.o:void 0:c.n.get(u);if(f!==void 0){r+=f,n=t.lastIndex+=1;continue}}c=c.v}if(c!==void 0)r+=c,n=s+1;else{var l=(0,m0.getCodePoint)(e,s);r+="&#x".concat(l.toString(16),";"),n=t.lastIndex+=+(l!==o)}}return r+e.substr(n)}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLAttribute=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.DecodingMode=t.EntityDecoder=t.encodeHTML5=t.encodeHTML4=t.encodeNonAsciiHTML=t.encodeHTML=t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.encode=t.decodeStrict=t.decode=t.EncodingMode=t.EntityLevel=void 0;var e=xa,r=Rr,n=Us,a;(function(d){d[d.XML=0]="XML",d[d.HTML=1]="HTML"})(a=t.EntityLevel||(t.EntityLevel={}));var s;(function(d){d[d.UTF8=0]="UTF8",d[d.ASCII=1]="ASCII",d[d.Extensive=2]="Extensive",d[d.Attribute=3]="Attribute",d[d.Text=4]="Text"})(s=t.EncodingMode||(t.EncodingMode={}));function o(d,m){m===void 0&&(m=a.XML);var b=typeof m=="number"?m:m.level;if(b===a.HTML){var x=typeof m=="object"?m.mode:void 0;return(0,e.decodeHTML)(d,x)}return(0,e.decodeXML)(d)}t.decode=o;function c(d,m){var b;m===void 0&&(m=a.XML);var x=typeof m=="number"?{level:m}:m;return(b=x.mode)!==null&&b!==void 0||(x.mode=e.DecodingMode.Strict),o(d,x)}t.decodeStrict=c;function u(d,m){m===void 0&&(m=a.XML);var b=typeof m=="number"?{level:m}:m;return b.mode===s.UTF8?(0,n.escapeUTF8)(d):b.mode===s.Attribute?(0,n.escapeAttribute)(d):b.mode===s.Text?(0,n.escapeText)(d):b.level===a.HTML?b.mode===s.ASCII?(0,r.encodeNonAsciiHTML)(d):(0,r.encodeHTML)(d):(0,n.encodeXML)(d)}t.encode=u;var f=Us;Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return f.encodeXML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return f.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return f.escapeUTF8}}),Object.defineProperty(t,"escapeAttribute",{enumerable:!0,get:function(){return f.escapeAttribute}}),Object.defineProperty(t,"escapeText",{enumerable:!0,get:function(){return f.escapeText}});var l=Rr;Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return l.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return l.encodeNonAsciiHTML}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return l.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return l.encodeHTML}});var h=xa;Object.defineProperty(t,"EntityDecoder",{enumerable:!0,get:function(){return h.EntityDecoder}}),Object.defineProperty(t,"DecodingMode",{enumerable:!0,get:function(){return h.DecodingMode}}),Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return h.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTMLAttribute",{enumerable:!0,get:function(){return h.decodeHTMLAttribute}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return h.decodeXML}})})(p0);var Nn={};Object.defineProperty(Nn,"__esModule",{value:!0});Nn.attributeNames=Nn.elementNames=void 0;Nn.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(function(t){return[t.toLowerCase(),t]}));Nn.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(function(t){return[t.toLowerCase(),t]}));var mn=J&&J.__assign||function(){return mn=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},mn.apply(this,arguments)},L2=J&&J.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var a=Object.getOwnPropertyDescriptor(e,r);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,a)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),M2=J&&J.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),I2=J&&J.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&L2(e,t,r);return M2(e,t),e};Object.defineProperty($a,"__esModule",{value:!0});$a.render=void 0;var Bt=I2(Rn),zs=p0,b0=Nn,F2=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function R2(t){return t.replace(/"/g,"&quot;")}function B2(t,e){var r;if(t){var n=((r=e.encodeEntities)!==null&&r!==void 0?r:e.decodeEntities)===!1?R2:e.xmlMode||e.encodeEntities!=="utf8"?zs.encodeXML:zs.escapeAttribute;return Object.keys(t).map(function(a){var s,o,c=(s=t[a])!==null&&s!==void 0?s:"";return e.xmlMode==="foreign"&&(a=(o=b0.attributeNames.get(a))!==null&&o!==void 0?o:a),!e.emptyAttrs&&!e.xmlMode&&c===""?a:"".concat(a,'="').concat(n(c),'"')}).join(" ")}}var ic=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function Ji(t,e){e===void 0&&(e={});for(var r=("length"in t)?t:[t],n="",a=0;a<r.length;a++)n+=V2(r[a],e);return n}$a.render=Ji;$a.default=Ji;function V2(t,e){switch(t.type){case Bt.Root:return Ji(t.children,e);case Bt.Doctype:case Bt.Directive:return H2(t);case Bt.Comment:return J2(t);case Bt.CDATA:return G2(t);case Bt.Script:case Bt.Style:case Bt.Tag:return z2(t,e);case Bt.Text:return W2(t,e)}}var q2=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),U2=new Set(["svg","math"]);function z2(t,e){var r;e.xmlMode==="foreign"&&(t.name=(r=b0.elementNames.get(t.name))!==null&&r!==void 0?r:t.name,t.parent&&q2.has(t.parent.name)&&(e=mn(mn({},e),{xmlMode:!1}))),!e.xmlMode&&U2.has(t.name)&&(e=mn(mn({},e),{xmlMode:"foreign"}));var n="<".concat(t.name),a=B2(t.attribs,e);return a&&(n+=" ".concat(a)),t.children.length===0&&(e.xmlMode?e.selfClosingTags!==!1:e.selfClosingTags&&ic.has(t.name))?(e.xmlMode||(n+=" "),n+="/>"):(n+=">",t.children.length>0&&(n+=Ji(t.children,e)),(e.xmlMode||!ic.has(t.name))&&(n+="</".concat(t.name,">"))),n}function H2(t){return"<".concat(t.data,">")}function W2(t,e){var r,n=t.data||"";return((r=e.encodeEntities)!==null&&r!==void 0?r:e.decodeEntities)!==!1&&!(!e.xmlMode&&t.parent&&F2.has(t.parent.name))&&(n=e.xmlMode||e.encodeEntities!=="utf8"?(0,zs.encodeXML)(n):(0,zs.escapeText)(n)),n}function G2(t){return"<![CDATA[".concat(t.children[0].data,"]]>")}function J2(t){return"<!--".concat(t.data,"-->")}var Y2=J&&J.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(br,"__esModule",{value:!0});br.getOuterHTML=x0;br.getInnerHTML=K2;br.getText=ks;br.textContent=Fo;br.innerText=Ro;var $t=Gt,Z2=Y2($a),X2=Rn;function x0(t,e){return(0,Z2.default)(t,e)}function K2(t,e){return(0,$t.hasChildren)(t)?t.children.map(function(r){return x0(r,e)}).join(""):""}function ks(t){return Array.isArray(t)?t.map(ks).join(""):(0,$t.isTag)(t)?t.name==="br"?`
1048
- `:ks(t.children):(0,$t.isCDATA)(t)?ks(t.children):(0,$t.isText)(t)?t.data:""}function Fo(t){return Array.isArray(t)?t.map(Fo).join(""):(0,$t.hasChildren)(t)&&!(0,$t.isComment)(t)?Fo(t.children):(0,$t.isText)(t)?t.data:""}function Ro(t){return Array.isArray(t)?t.map(Ro).join(""):(0,$t.hasChildren)(t)&&(t.type===X2.ElementType.Tag||(0,$t.isCDATA)(t))?Ro(t.children):(0,$t.isText)(t)?t.data:""}var Lt={};Object.defineProperty(Lt,"__esModule",{value:!0});Lt.getChildren=y0;Lt.getParent=v0;Lt.getSiblings=Q2;Lt.getAttributeValue=e1;Lt.hasAttrib=t1;Lt.getName=r1;Lt.nextElementSibling=n1;Lt.prevElementSibling=a1;var zu=Gt;function y0(t){return(0,zu.hasChildren)(t)?t.children:[]}function v0(t){return t.parent||null}function Q2(t){var e,r,n=v0(t);if(n!=null)return y0(n);for(var a=[t],s=t.prev,o=t.next;s!=null;)a.unshift(s),e=s,s=e.prev;for(;o!=null;)a.push(o),r=o,o=r.next;return a}function e1(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function t1(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function r1(t){return t.name}function n1(t){for(var e,r=t.next;r!==null&&!(0,zu.isTag)(r);)e=r,r=e.next;return r}function a1(t){for(var e,r=t.prev;r!==null&&!(0,zu.isTag)(r);)e=r,r=e.prev;return r}var xr={};Object.defineProperty(xr,"__esModule",{value:!0});xr.removeElement=Pa;xr.replaceElement=s1;xr.appendChild=i1;xr.append=o1;xr.prependChild=u1;xr.prepend=l1;function Pa(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){var e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function s1(t,e){var r=e.prev=t.prev;r&&(r.next=e);var n=e.next=t.next;n&&(n.prev=e);var a=e.parent=t.parent;if(a){var s=a.children;s[s.lastIndexOf(t)]=e,t.parent=null}}function i1(t,e){if(Pa(e),e.next=null,e.parent=t,t.children.push(e)>1){var r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function o1(t,e){Pa(e);var r=t.parent,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){var a=r.children;a.splice(a.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function u1(t,e){if(Pa(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){var r=t.children[1];r.prev=e,e.next=r}else e.next=null}function l1(t,e){Pa(e);var r=t.parent;if(r){var n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}var Kt={};Object.defineProperty(Kt,"__esModule",{value:!0});Kt.filter=c1;Kt.find=w0;Kt.findOneChild=d1;Kt.findOne=_0;Kt.existsOne=E0;Kt.findAll=f1;var Br=Gt;function c1(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),w0(t,Array.isArray(e)?e:[e],r,n)}function w0(t,e,r,n){for(var a=[],s=[Array.isArray(e)?e:[e]],o=[0];;){if(o[0]>=s[0].length){if(o.length===1)return a;s.shift(),o.shift();continue}var c=s[0][o[0]++];if(t(c)&&(a.push(c),--n<=0))return a;r&&(0,Br.hasChildren)(c)&&c.children.length>0&&(o.unshift(0),s.unshift(c.children))}}function d1(t,e){return e.find(t)}function _0(t,e,r){r===void 0&&(r=!0);for(var n=Array.isArray(e)?e:[e],a=0;a<n.length;a++){var s=n[a];if((0,Br.isTag)(s)&&t(s))return s;if(r&&(0,Br.hasChildren)(s)&&s.children.length>0){var o=_0(t,s.children,!0);if(o)return o}}return null}function E0(t,e){return(Array.isArray(e)?e:[e]).some(function(r){return(0,Br.isTag)(r)&&t(r)||(0,Br.hasChildren)(r)&&E0(t,r.children)})}function f1(t,e){for(var r=[],n=[Array.isArray(e)?e:[e]],a=[0];;){if(a[0]>=n[0].length){if(n.length===1)return r;n.shift(),a.shift();continue}var s=n[0][a[0]++];(0,Br.isTag)(s)&&t(s)&&r.push(s),(0,Br.hasChildren)(s)&&s.children.length>0&&(a.unshift(0),n.unshift(s.children))}}var Qt={};Object.defineProperty(Qt,"__esModule",{value:!0});Qt.testElement=p1;Qt.getElements=m1;Qt.getElementById=g1;Qt.getElementsByTagName=b1;Qt.getElementsByClassName=x1;Qt.getElementsByTagType=y1;var $r=Gt,La=Kt,Hs={tag_name:function(t){return typeof t=="function"?function(e){return(0,$r.isTag)(e)&&t(e.name)}:t==="*"?$r.isTag:function(e){return(0,$r.isTag)(e)&&e.name===t}},tag_type:function(t){return typeof t=="function"?function(e){return t(e.type)}:function(e){return e.type===t}},tag_contains:function(t){return typeof t=="function"?function(e){return(0,$r.isText)(e)&&t(e.data)}:function(e){return(0,$r.isText)(e)&&e.data===t}}};function Hu(t,e){return typeof e=="function"?function(r){return(0,$r.isTag)(r)&&e(r.attribs[t])}:function(r){return(0,$r.isTag)(r)&&r.attribs[t]===e}}function h1(t,e){return function(r){return t(r)||e(r)}}function N0(t){var e=Object.keys(t).map(function(r){var n=t[r];return Object.prototype.hasOwnProperty.call(Hs,r)?Hs[r](n):Hu(r,n)});return e.length===0?null:e.reduce(h1)}function p1(t,e){var r=N0(t);return r?r(e):!0}function m1(t,e,r,n){n===void 0&&(n=1/0);var a=N0(t);return a?(0,La.filter)(a,e,r,n):[]}function g1(t,e,r){return r===void 0&&(r=!0),Array.isArray(e)||(e=[e]),(0,La.findOne)(Hu("id",t),e,r)}function b1(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,La.filter)(Hs.tag_name(t),e,r,n)}function x1(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,La.filter)(Hu("class",t),e,r,n)}function y1(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,La.filter)(Hs.tag_type(t),e,r,n)}var Hr={};Object.defineProperty(Hr,"__esModule",{value:!0});Hr.DocumentPosition=void 0;Hr.removeSubsets=v1;Hr.compareDocumentPosition=A0;Hr.uniqueSort=w1;var oc=Gt;function v1(t){for(var e=t.length;--e>=0;){var r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(var n=r.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}var vt;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(vt||(Hr.DocumentPosition=vt={}));function A0(t,e){var r=[],n=[];if(t===e)return 0;for(var a=(0,oc.hasChildren)(t)?t:t.parent;a;)r.unshift(a),a=a.parent;for(a=(0,oc.hasChildren)(e)?e:e.parent;a;)n.unshift(a),a=a.parent;for(var s=Math.min(r.length,n.length),o=0;o<s&&r[o]===n[o];)o++;if(o===0)return vt.DISCONNECTED;var c=r[o-1],u=c.children,f=r[o],l=n[o];return u.indexOf(f)>u.indexOf(l)?c===e?vt.FOLLOWING|vt.CONTAINED_BY:vt.FOLLOWING:c===t?vt.PRECEDING|vt.CONTAINS:vt.PRECEDING}function w1(t){return t=t.filter(function(e,r,n){return!n.includes(e,r+1)}),t.sort(function(e,r){var n=A0(e,r);return n&vt.PRECEDING?-1:n&vt.FOLLOWING?1:0}),t}var Wu={};Object.defineProperty(Wu,"__esModule",{value:!0});Wu.getFeed=E1;var _1=br,Ma=Qt;function E1(t){var e=Ws(S1,t);return e?e.name==="feed"?N1(e):A1(e):null}function N1(t){var e,r=t.children,n={type:"atom",items:(0,Ma.getElementsByTagName)("entry",r).map(function(o){var c,u=o.children,f={media:k0(u)};Ye(f,"id","id",u),Ye(f,"title","title",u);var l=(c=Ws("link",u))===null||c===void 0?void 0:c.attribs.href;l&&(f.link=l);var h=fr("summary",u)||fr("content",u);h&&(f.description=h);var d=fr("updated",u);return d&&(f.pubDate=new Date(d)),f})};Ye(n,"id","id",r),Ye(n,"title","title",r);var a=(e=Ws("link",r))===null||e===void 0?void 0:e.attribs.href;a&&(n.link=a),Ye(n,"description","subtitle",r);var s=fr("updated",r);return s&&(n.updated=new Date(s)),Ye(n,"author","email",r,!0),n}function A1(t){var e,r,n=(r=(e=Ws("channel",t.children))===null||e===void 0?void 0:e.children)!==null&&r!==void 0?r:[],a={type:t.name.substr(0,3),id:"",items:(0,Ma.getElementsByTagName)("item",t.children).map(function(o){var c=o.children,u={media:k0(c)};Ye(u,"id","guid",c),Ye(u,"title","title",c),Ye(u,"link","link",c),Ye(u,"description","description",c);var f=fr("pubDate",c)||fr("dc:date",c);return f&&(u.pubDate=new Date(f)),u})};Ye(a,"title","title",n),Ye(a,"link","link",n),Ye(a,"description","description",n);var s=fr("lastBuildDate",n);return s&&(a.updated=new Date(s)),Ye(a,"author","managingEditor",n,!0),a}var k1=["url","type","lang"],j1=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function k0(t){return(0,Ma.getElementsByTagName)("media:content",t).map(function(e){for(var r=e.attribs,n={medium:r.medium,isDefault:!!r.isDefault},a=0,s=k1;a<s.length;a++){var o=s[a];r[o]&&(n[o]=r[o])}for(var c=0,u=j1;c<u.length;c++){var o=u[c];r[o]&&(n[o]=parseInt(r[o],10))}return r.expression&&(n.expression=r.expression),n})}function Ws(t,e){return(0,Ma.getElementsByTagName)(t,e,!0,1)[0]}function fr(t,e,r){return r===void 0&&(r=!1),(0,_1.textContent)((0,Ma.getElementsByTagName)(t,e,r,1)).trim()}function Ye(t,e,r,n,a){a===void 0&&(a=!1);var s=fr(r,n,a);s&&(t[e]=s)}function S1(t){return t==="rss"||t==="feed"||t==="rdf:RDF"}(function(t){var e=J&&J.__createBinding||(Object.create?function(a,s,o,c){c===void 0&&(c=o);var u=Object.getOwnPropertyDescriptor(s,o);(!u||("get"in u?!s.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return s[o]}}),Object.defineProperty(a,c,u)}:function(a,s,o,c){c===void 0&&(c=o),a[c]=s[o]}),r=J&&J.__exportStar||function(a,s){for(var o in a)o!=="default"&&!Object.prototype.hasOwnProperty.call(s,o)&&e(s,a,o)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,r(br,t),r(Lt,t),r(xr,t),r(Kt,t),r(Qt,t),r(Hr,t),r(Wu,t);var n=Gt;Object.defineProperty(t,"isTag",{enumerable:!0,get:function(){return n.isTag}}),Object.defineProperty(t,"isCDATA",{enumerable:!0,get:function(){return n.isCDATA}}),Object.defineProperty(t,"isText",{enumerable:!0,get:function(){return n.isText}}),Object.defineProperty(t,"isComment",{enumerable:!0,get:function(){return n.isComment}}),Object.defineProperty(t,"isDocument",{enumerable:!0,get:function(){return n.isDocument}}),Object.defineProperty(t,"hasChildren",{enumerable:!0,get:function(){return n.hasChildren}})})(As);(function(t){var e=J&&J.__createBinding||(Object.create?function(g,E,S,w){w===void 0&&(w=S);var k=Object.getOwnPropertyDescriptor(E,S);(!k||("get"in k?!E.__esModule:k.writable||k.configurable))&&(k={enumerable:!0,get:function(){return E[S]}}),Object.defineProperty(g,w,k)}:function(g,E,S,w){w===void 0&&(w=S),g[w]=E[S]}),r=J&&J.__setModuleDefault||(Object.create?function(g,E){Object.defineProperty(g,"default",{enumerable:!0,value:E})}:function(g,E){g.default=E}),n=J&&J.__importStar||function(g){if(g&&g.__esModule)return g;var E={};if(g!=null)for(var S in g)S!=="default"&&Object.prototype.hasOwnProperty.call(g,S)&&e(E,g,S);return r(E,g),E},a=J&&J.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomUtils=t.parseFeed=t.getFeed=t.ElementType=t.Tokenizer=t.createDomStream=t.parseDOM=t.parseDocument=t.DefaultHandler=t.DomHandler=t.Parser=void 0;var s=ba,o=ba;Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return o.Parser}});var c=Gt,u=Gt;Object.defineProperty(t,"DomHandler",{enumerable:!0,get:function(){return u.DomHandler}}),Object.defineProperty(t,"DefaultHandler",{enumerable:!0,get:function(){return u.DomHandler}});function f(g,E){var S=new c.DomHandler(void 0,E);return new s.Parser(S,E).end(g),S.root}t.parseDocument=f;function l(g,E){return f(g,E).children}t.parseDOM=l;function h(g,E,S){var w=new c.DomHandler(g,E,S);return new s.Parser(w,E)}t.createDomStream=h;var d=Fu;Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return a(d).default}}),t.ElementType=n(Rn);var m=As,b=As;Object.defineProperty(t,"getFeed",{enumerable:!0,get:function(){return b.getFeed}});var x={xmlMode:!0};function y(g,E){return E===void 0&&(E=x),(0,m.getFeed)(l(g,E))}t.parseFeed=y,t.DomUtils=n(As)})(t0);var D1=t=>{if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},Gu={};Object.defineProperty(Gu,"__esModule",{value:!0});/*!
1055
+ `);Mu.default=l2;var c2=J&&J.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Xi,"__esModule",{value:!0});Xi.AccountNameValidator=void 0;const d2=c2(Mu);class f2{static validateAccountName(e,r){let n,a,s;if(!e)return r.accountNameWrongLength;const o=e.length;if(o<3||o>16)return r.accountNameWrongLength;if(d2.default.includes(e))return r.accountNameBadActor;const c=e.split(".");for(n=0,s=c.length;n<s;n++)if(a=c[n],!/^[a-z]/.test(a)||!/^[a-z0-9-]*$/.test(a)||!/[a-z0-9]$/.test(a)||!(a.length>=3))return r.accountNameWrongSegment;return null}}Xi.AccountNameValidator=f2;var h2=J&&J.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var a=Object.getOwnPropertyDescriptor(e,r);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,a)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),p2=J&&J.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),e0=J&&J.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&h2(e,t,r);return p2(e,t),e},m2=J&&J.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(qn,"__esModule",{value:!0});qn.HtmlDOMParserError=qn.HtmlDOMParser=void 0;const Xl=e0(Ci),g2=m2(Br),b2=$t,x2=Vi,Kl=oa,Ql=Ui,y2=ts,v2=Xi,Na=e0(Pu);class w2{constructor(e,r=Kl.Localization.DEFAULT){this.domParser=new Xl.DOMParser({errorHandler:{warning:()=>{},error:()=>{}}}),this.xmlSerializer=new Xl.XMLSerializer,this.mutate=!0,this.parsedDocument=void 0,Ql.AssetEmbedder.validate(e),Kl.Localization.validate(r),this.options=e,this.localization=r,this.linkSanitizer=new x2.LinkSanitizer({baseUrl:this.options.baseUrl}),this.embedder=new Ql.AssetEmbedder({ipfsPrefix:this.options.ipfsPrefix,width:this.options.width,height:this.options.height,hideImages:this.options.hideImages,imageProxyFn:this.options.imageProxyFn,hashtagUrlFn:this.options.hashtagUrlFn,usertagUrlFn:this.options.usertagUrlFn,baseUrl:this.options.baseUrl},r),this.state={hashtags:new Set,usertags:new Set,htmltags:new Set,images:new Set,links:new Set}}setMutateEnabled(e){return this.mutate=e,this}parse(e){try{const r=this.domParser.parseFromString(e,"text/html");this.traverseDOMNode(r),this.mutate&&this.postprocessDOM(r),this.parsedDocument=r}catch(r){throw new Os("Parsing error",r)}return this}getState(){if(!this.parsedDocument)throw new Os("Html has not been parsed yet");return this.state}getParsedDocument(){if(!this.parsedDocument)throw new Os("Html has not been parsed yet");return this.parsedDocument}getParsedDocumentAsString(){return this.xmlSerializer.serializeToString(this.getParsedDocument())}traverseDOMNode(e,r=0){!e||!e.childNodes||Array.from(e.childNodes).forEach(n=>{const a=n.tagName?n.tagName.toLowerCase():null;a&&this.state.htmltags.add(a),a==="img"?this.processImgTag(n):a==="iframe"?this.processIframeTag(n):a==="a"?this.processLinkTag(n):n.nodeName==="#text"&&this.processTextNode(n),this.traverseDOMNode(n,r+1)})}processLinkTag(e){const r=e.getAttribute("href");if(r&&(this.state.links.add(r),this.mutate)){const n=e.textContent+"",a=this.linkSanitizer.sanitizeLink(r,n);if(a===!1){const s=e.ownerDocument.createElement("div");s.textContent=`${e.textContent} / ${r}`,s.setAttribute("title",this.localization.phishingWarning),s.setAttribute("class","phishy");const o=e.parentNode;o&&(o.appendChild(s),o.removeChild(e))}else e.setAttribute("href",a)}}processIframeTag(e){const r=e.getAttribute("src");if(r&&this.reportIframeLink(r),!this.mutate||(e.parentNode.tagName?e.parentNode.tagName.toLowerCase():e.parentNode.tagName)==="div"&&e.parentNode.getAttribute("class")==="videoWrapper")return;const a=this.xmlSerializer.serializeToString(e),s=this.domParser.parseFromString(`<div class="videoWrapper">${a}</div>`),o=e.parentNode;o&&(o.appendChild(s),o.removeChild(e))}reportIframeLink(e){const r=y2.YoutubeEmbedder.getYoutubeMetadataFromLink(e);r&&(this.state.links.add(r.url),this.state.images.add("https://img.youtube.com/vi/"+r.id+"/0.jpg"))}processImgTag(e){const r=e.getAttribute("src");if(r&&(this.state.images.add(r),this.mutate)){let n=this.normalizeUrl(r);/^\/\//.test(n)&&(n="https:"+n),n!==r&&e.setAttribute("src",n)}}processTextNode(e){try{const r=e.parentNode.tagName?e.parentNode.tagName.toLowerCase():e.parentNode.tagName;if(r==="code"||r==="a"||!e.data)return;const n=this.embedder.processTextNodeAndInsertEmbeds(e);n.images.forEach(o=>this.state.images.add(o)),n.links.forEach(o=>this.state.links.add(o));const a=this.xmlSerializer.serializeToString(e),s=this.linkify(a);if(this.mutate&&s!==a){const o=this.domParser.parseFromString(`<span>${s}</span>`),c=e.parentNode;return c&&(c.appendChild(o),c.removeChild(e)),o}}catch(r){b2.Log.log().error(r)}}linkify(e){return e=e.replace((0,Na.any)("gi"),r=>{if(Na.default.image.test(r))return this.state.images.add(r),`<img src="${this.normalizeUrl(r)}" />`;if(/\.(zip|exe)$/i.test(r))return r;const n=this.linkSanitizer.sanitizeLink(r,r);return n===!1?`<div title='${this.localization.phishingWarning}' class='phishy'>${r}</div>`:(this.state.links.add(n),`<a href="${this.normalizeUrl(r)}">${n}</a>`)}),e=e.replace(/(^|\s)(#[-a-z\d]+)/gi,r=>{if(/#[\d]+$/.test(r))return r;const n=/^\s/.test(r)?r[0]:"",s=r.trim().substring(1).toLowerCase();if(this.state.hashtags.add(s),!this.mutate)return r;const o=this.options.hashtagUrlFn(s);return n+`<a href="${o}">${r.trim()}</a>`}),e=e.replace(/(^|[^a-zA-Z0-9_!#$%&*@@/]|(^|[^a-zA-Z0-9_+~.-/#]))[@@]([a-z][-.a-z\d]+[a-z\d])/gi,(r,n,a,s)=>{const o=s.toLowerCase(),c=v2.AccountNameValidator.validateAccountName(o,this.localization)==null;c&&this.state.usertags&&this.state.usertags.add(o);const u=(n||"")+(a||"");if(!this.mutate)return`${u}${s}`;const f=this.options.usertagUrlFn(o);return c?`${u}<a href="${f}">@${s}</a>`:`${u}@${s}`}),e}postprocessDOM(e){this.hideImagesIfNeeded(e),this.proxifyImagesIfNeeded(e)}hideImagesIfNeeded(e){if(this.mutate&&this.options.hideImages)for(const r of Array.from(e.getElementsByTagName("img"))){const n=e.createElement("pre");n.setAttribute("class","image-url-only"),n.appendChild(e.createTextNode(r.getAttribute("src")||""));const a=r.parentNode;a&&(a.appendChild(n),a.removeChild(r))}}proxifyImagesIfNeeded(e){this.mutate&&!this.options.hideImages&&this.proxifyImages(e)}proxifyImages(e){e&&Array.from(e.getElementsByTagName("img")).forEach(r=>{const n=r.getAttribute("src")||"";Na.default.local.test(n)||r.setAttribute("src",this.options.imageProxyFn(n))})}normalizeUrl(e){if(this.options.ipfsPrefix&&Na.default.ipfsProtocol.test(e)){const[r]=e.match(Na.default.ipfsProtocol),n=e.replace(r,"");return`${this.options.ipfsPrefix.replace(/\/+$/,"")}/${n}`}return e}}qn.HtmlDOMParser=w2;class Os extends g2.default{constructor(e,r){super(e,r)}}qn.HtmlDOMParserError=Os;var Ki={};Object.defineProperty(Ki,"__esModule",{value:!0});Ki.PreliminarySanitizer=void 0;class Iu{static preliminarySanitize(e){return Iu.stripHtmlComments(e)}static stripHtmlComments(e){return e.replace(/<!--([\s\S]+?)(-->|$)/g,"(html comment removed: $1)")}}Ki.PreliminarySanitizer=Iu;var Qi={},t0={},Ba={},Fu={},Va={},Ru={};Object.defineProperty(Ru,"__esModule",{value:!0});Ru.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(t){return t.charCodeAt(0)}));var Bu={};Object.defineProperty(Bu,"__esModule",{value:!0});Bu.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(t){return t.charCodeAt(0)}));var Io={};(function(t){var e;Object.defineProperty(t,"__esModule",{value:!0}),t.replaceCodePoint=t.fromCodePoint=void 0;var r=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);t.fromCodePoint=(e=String.fromCodePoint)!==null&&e!==void 0?e:function(s){var o="";return s>65535&&(s-=65536,o+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),o+=String.fromCharCode(s),o};function n(s){var o;return s>=55296&&s<=57343||s>1114111?65533:(o=r.get(s))!==null&&o!==void 0?o:s}t.replaceCodePoint=n;function a(s){return(0,t.fromCodePoint)(n(s))}t.default=a})(Io);(function(t){var e=J&&J.__createBinding||(Object.create?function(S,P,I,W){W===void 0&&(W=I);var _=Object.getOwnPropertyDescriptor(P,I);(!_||("get"in _?!P.__esModule:_.writable||_.configurable))&&(_={enumerable:!0,get:function(){return P[I]}}),Object.defineProperty(S,W,_)}:function(S,P,I,W){W===void 0&&(W=I),S[W]=P[I]}),r=J&&J.__setModuleDefault||(Object.create?function(S,P){Object.defineProperty(S,"default",{enumerable:!0,value:P})}:function(S,P){S.default=P}),n=J&&J.__importStar||function(S){if(S&&S.__esModule)return S;var P={};if(S!=null)for(var I in S)I!=="default"&&Object.prototype.hasOwnProperty.call(S,I)&&e(P,S,I);return r(P,S),P},a=J&&J.__importDefault||function(S){return S&&S.__esModule?S:{default:S}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXML=t.decodeHTMLStrict=t.decodeHTMLAttribute=t.decodeHTML=t.determineBranch=t.EntityDecoder=t.DecodingMode=t.BinTrieFlags=t.fromCodePoint=t.replaceCodePoint=t.decodeCodePoint=t.xmlDecodeTree=t.htmlDecodeTree=void 0;var s=a(Ru);t.htmlDecodeTree=s.default;var o=a(Bu);t.xmlDecodeTree=o.default;var c=n(Io);t.decodeCodePoint=c.default;var u=Io;Object.defineProperty(t,"replaceCodePoint",{enumerable:!0,get:function(){return u.replaceCodePoint}}),Object.defineProperty(t,"fromCodePoint",{enumerable:!0,get:function(){return u.fromCodePoint}});var f;(function(S){S[S.NUM=35]="NUM",S[S.SEMI=59]="SEMI",S[S.EQUALS=61]="EQUALS",S[S.ZERO=48]="ZERO",S[S.NINE=57]="NINE",S[S.LOWER_A=97]="LOWER_A",S[S.LOWER_F=102]="LOWER_F",S[S.LOWER_X=120]="LOWER_X",S[S.LOWER_Z=122]="LOWER_Z",S[S.UPPER_A=65]="UPPER_A",S[S.UPPER_F=70]="UPPER_F",S[S.UPPER_Z=90]="UPPER_Z"})(f||(f={}));var l=32,h;(function(S){S[S.VALUE_LENGTH=49152]="VALUE_LENGTH",S[S.BRANCH_LENGTH=16256]="BRANCH_LENGTH",S[S.JUMP_TABLE=127]="JUMP_TABLE"})(h=t.BinTrieFlags||(t.BinTrieFlags={}));function d(S){return S>=f.ZERO&&S<=f.NINE}function m(S){return S>=f.UPPER_A&&S<=f.UPPER_F||S>=f.LOWER_A&&S<=f.LOWER_F}function b(S){return S>=f.UPPER_A&&S<=f.UPPER_Z||S>=f.LOWER_A&&S<=f.LOWER_Z||d(S)}function x(S){return S===f.EQUALS||b(S)}var y;(function(S){S[S.EntityStart=0]="EntityStart",S[S.NumericStart=1]="NumericStart",S[S.NumericDecimal=2]="NumericDecimal",S[S.NumericHex=3]="NumericHex",S[S.NamedEntity=4]="NamedEntity"})(y||(y={}));var g;(function(S){S[S.Legacy=0]="Legacy",S[S.Strict=1]="Strict",S[S.Attribute=2]="Attribute"})(g=t.DecodingMode||(t.DecodingMode={}));var E=function(){function S(P,I,W){this.decodeTree=P,this.emitCodePoint=I,this.errors=W,this.state=y.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=g.Strict}return S.prototype.startEntity=function(P){this.decodeMode=P,this.state=y.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},S.prototype.write=function(P,I){switch(this.state){case y.EntityStart:return P.charCodeAt(I)===f.NUM?(this.state=y.NumericStart,this.consumed+=1,this.stateNumericStart(P,I+1)):(this.state=y.NamedEntity,this.stateNamedEntity(P,I));case y.NumericStart:return this.stateNumericStart(P,I);case y.NumericDecimal:return this.stateNumericDecimal(P,I);case y.NumericHex:return this.stateNumericHex(P,I);case y.NamedEntity:return this.stateNamedEntity(P,I)}},S.prototype.stateNumericStart=function(P,I){return I>=P.length?-1:(P.charCodeAt(I)|l)===f.LOWER_X?(this.state=y.NumericHex,this.consumed+=1,this.stateNumericHex(P,I+1)):(this.state=y.NumericDecimal,this.stateNumericDecimal(P,I))},S.prototype.addToNumericResult=function(P,I,W,_){if(I!==W){var M=W-I;this.result=this.result*Math.pow(_,M)+parseInt(P.substr(I,M),_),this.consumed+=M}},S.prototype.stateNumericHex=function(P,I){for(var W=I;I<P.length;){var _=P.charCodeAt(I);if(d(_)||m(_))I+=1;else return this.addToNumericResult(P,W,I,16),this.emitNumericEntity(_,3)}return this.addToNumericResult(P,W,I,16),-1},S.prototype.stateNumericDecimal=function(P,I){for(var W=I;I<P.length;){var _=P.charCodeAt(I);if(d(_))I+=1;else return this.addToNumericResult(P,W,I,10),this.emitNumericEntity(_,2)}return this.addToNumericResult(P,W,I,10),-1},S.prototype.emitNumericEntity=function(P,I){var W;if(this.consumed<=I)return(W=this.errors)===null||W===void 0||W.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(P===f.SEMI)this.consumed+=1;else if(this.decodeMode===g.Strict)return 0;return this.emitCodePoint((0,c.replaceCodePoint)(this.result),this.consumed),this.errors&&(P!==f.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},S.prototype.stateNamedEntity=function(P,I){for(var W=this.decodeTree,_=W[this.treeIndex],M=(_&h.VALUE_LENGTH)>>14;I<P.length;I++,this.excess++){var O=P.charCodeAt(I);if(this.treeIndex=w(W,_,this.treeIndex+Math.max(1,M),O),this.treeIndex<0)return this.result===0||this.decodeMode===g.Attribute&&(M===0||x(O))?0:this.emitNotTerminatedNamedEntity();if(_=W[this.treeIndex],M=(_&h.VALUE_LENGTH)>>14,M!==0){if(O===f.SEMI)return this.emitNamedEntityData(this.treeIndex,M,this.consumed+this.excess);this.decodeMode!==g.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},S.prototype.emitNotTerminatedNamedEntity=function(){var P,I=this,W=I.result,_=I.decodeTree,M=(_[W]&h.VALUE_LENGTH)>>14;return this.emitNamedEntityData(W,M,this.consumed),(P=this.errors)===null||P===void 0||P.missingSemicolonAfterCharacterReference(),this.consumed},S.prototype.emitNamedEntityData=function(P,I,W){var _=this.decodeTree;return this.emitCodePoint(I===1?_[P]&~h.VALUE_LENGTH:_[P+1],W),I===3&&this.emitCodePoint(_[P+2],W),W},S.prototype.end=function(){var P;switch(this.state){case y.NamedEntity:return this.result!==0&&(this.decodeMode!==g.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case y.NumericDecimal:return this.emitNumericEntity(0,2);case y.NumericHex:return this.emitNumericEntity(0,3);case y.NumericStart:return(P=this.errors)===null||P===void 0||P.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case y.EntityStart:return 0}},S}();t.EntityDecoder=E;function D(S){var P="",I=new E(S,function(W){return P+=(0,c.fromCodePoint)(W)});return function(_,M){for(var O=0,G=0;(G=_.indexOf("&",G))>=0;){P+=_.slice(O,G),I.startEntity(M);var R=I.write(_,G+1);if(R<0){O=G+I.end();break}O=G+R,G=R===0?O+1:O}var K=P+_.slice(O);return P="",K}}function w(S,P,I,W){var _=(P&h.BRANCH_LENGTH)>>7,M=P&h.JUMP_TABLE;if(_===0)return M!==0&&W===M?I:-1;if(M){var O=W-M;return O<0||O>=_?-1:S[I+O]-1}for(var G=I,R=G+_-1;G<=R;){var K=G+R>>>1,X=S[K];if(X<W)G=K+1;else if(X>W)R=K-1;else return S[K+_]}return-1}t.determineBranch=w;var j=D(s.default),p=D(o.default);function A(S,P){return P===void 0&&(P=g.Legacy),j(S,P)}t.decodeHTML=A;function k(S){return j(S,g.Attribute)}t.decodeHTMLAttribute=k;function V(S){return j(S,g.Strict)}t.decodeHTMLStrict=V;function H(S){return p(S,g.Strict)}t.decodeXML=H})(Va);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.QuoteType=void 0;var e=Va,r;(function(d){d[d.Tab=9]="Tab",d[d.NewLine=10]="NewLine",d[d.FormFeed=12]="FormFeed",d[d.CarriageReturn=13]="CarriageReturn",d[d.Space=32]="Space",d[d.ExclamationMark=33]="ExclamationMark",d[d.Number=35]="Number",d[d.Amp=38]="Amp",d[d.SingleQuote=39]="SingleQuote",d[d.DoubleQuote=34]="DoubleQuote",d[d.Dash=45]="Dash",d[d.Slash=47]="Slash",d[d.Zero=48]="Zero",d[d.Nine=57]="Nine",d[d.Semi=59]="Semi",d[d.Lt=60]="Lt",d[d.Eq=61]="Eq",d[d.Gt=62]="Gt",d[d.Questionmark=63]="Questionmark",d[d.UpperA=65]="UpperA",d[d.LowerA=97]="LowerA",d[d.UpperF=70]="UpperF",d[d.LowerF=102]="LowerF",d[d.UpperZ=90]="UpperZ",d[d.LowerZ=122]="LowerZ",d[d.LowerX=120]="LowerX",d[d.OpeningSquareBracket=91]="OpeningSquareBracket"})(r||(r={}));var n;(function(d){d[d.Text=1]="Text",d[d.BeforeTagName=2]="BeforeTagName",d[d.InTagName=3]="InTagName",d[d.InSelfClosingTag=4]="InSelfClosingTag",d[d.BeforeClosingTagName=5]="BeforeClosingTagName",d[d.InClosingTagName=6]="InClosingTagName",d[d.AfterClosingTagName=7]="AfterClosingTagName",d[d.BeforeAttributeName=8]="BeforeAttributeName",d[d.InAttributeName=9]="InAttributeName",d[d.AfterAttributeName=10]="AfterAttributeName",d[d.BeforeAttributeValue=11]="BeforeAttributeValue",d[d.InAttributeValueDq=12]="InAttributeValueDq",d[d.InAttributeValueSq=13]="InAttributeValueSq",d[d.InAttributeValueNq=14]="InAttributeValueNq",d[d.BeforeDeclaration=15]="BeforeDeclaration",d[d.InDeclaration=16]="InDeclaration",d[d.InProcessingInstruction=17]="InProcessingInstruction",d[d.BeforeComment=18]="BeforeComment",d[d.CDATASequence=19]="CDATASequence",d[d.InSpecialComment=20]="InSpecialComment",d[d.InCommentLike=21]="InCommentLike",d[d.BeforeSpecialS=22]="BeforeSpecialS",d[d.SpecialStartSequence=23]="SpecialStartSequence",d[d.InSpecialTag=24]="InSpecialTag",d[d.BeforeEntity=25]="BeforeEntity",d[d.BeforeNumericEntity=26]="BeforeNumericEntity",d[d.InNamedEntity=27]="InNamedEntity",d[d.InNumericEntity=28]="InNumericEntity",d[d.InHexEntity=29]="InHexEntity"})(n||(n={}));function a(d){return d===r.Space||d===r.NewLine||d===r.Tab||d===r.FormFeed||d===r.CarriageReturn}function s(d){return d===r.Slash||d===r.Gt||a(d)}function o(d){return d>=r.Zero&&d<=r.Nine}function c(d){return d>=r.LowerA&&d<=r.LowerZ||d>=r.UpperA&&d<=r.UpperZ}function u(d){return d>=r.UpperA&&d<=r.UpperF||d>=r.LowerA&&d<=r.LowerF}var f;(function(d){d[d.NoValue=0]="NoValue",d[d.Unquoted=1]="Unquoted",d[d.Single=2]="Single",d[d.Double=3]="Double"})(f=t.QuoteType||(t.QuoteType={}));var l={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},h=function(){function d(m,b){var x=m.xmlMode,y=x===void 0?!1:x,g=m.decodeEntities,E=g===void 0?!0:g;this.cbs=b,this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=y,this.decodeEntities=E,this.entityTrie=y?e.xmlDecodeTree:e.htmlDecodeTree}return d.prototype.reset=function(){this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},d.prototype.write=function(m){this.offset+=this.buffer.length,this.buffer=m,this.parse()},d.prototype.end=function(){this.running&&this.finish()},d.prototype.pause=function(){this.running=!1},d.prototype.resume=function(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()},d.prototype.getIndex=function(){return this.index},d.prototype.getSectionStart=function(){return this.sectionStart},d.prototype.stateText=function(m){m===r.Lt||!this.decodeEntities&&this.fastForwardTo(r.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=n.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&m===r.Amp&&(this.state=n.BeforeEntity)},d.prototype.stateSpecialStartSequence=function(m){var b=this.sequenceIndex===this.currentSequence.length,x=b?s(m):(m|32)===this.currentSequence[this.sequenceIndex];if(!x)this.isSpecial=!1;else if(!b){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=n.InTagName,this.stateInTagName(m)},d.prototype.stateInSpecialTag=function(m){if(this.sequenceIndex===this.currentSequence.length){if(m===r.Gt||a(m)){var b=this.index-this.currentSequence.length;if(this.sectionStart<b){var x=this.index;this.index=b,this.cbs.ontext(this.sectionStart,b),this.index=x}this.isSpecial=!1,this.sectionStart=b+2,this.stateInClosingTagName(m);return}this.sequenceIndex=0}(m|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===l.TitleEnd?this.decodeEntities&&m===r.Amp&&(this.state=n.BeforeEntity):this.fastForwardTo(r.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(m===r.Lt)},d.prototype.stateCDATASequence=function(m){m===l.Cdata[this.sequenceIndex]?++this.sequenceIndex===l.Cdata.length&&(this.state=n.InCommentLike,this.currentSequence=l.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=n.InDeclaration,this.stateInDeclaration(m))},d.prototype.fastForwardTo=function(m){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===m)return!0;return this.index=this.buffer.length+this.offset-1,!1},d.prototype.stateInCommentLike=function(m){m===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===l.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=n.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):m!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)},d.prototype.isTagStartChar=function(m){return this.xmlMode?!s(m):c(m)},d.prototype.startSpecial=function(m,b){this.isSpecial=!0,this.currentSequence=m,this.sequenceIndex=b,this.state=n.SpecialStartSequence},d.prototype.stateBeforeTagName=function(m){if(m===r.ExclamationMark)this.state=n.BeforeDeclaration,this.sectionStart=this.index+1;else if(m===r.Questionmark)this.state=n.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(m)){var b=m|32;this.sectionStart=this.index,!this.xmlMode&&b===l.TitleEnd[2]?this.startSpecial(l.TitleEnd,3):this.state=!this.xmlMode&&b===l.ScriptEnd[2]?n.BeforeSpecialS:n.InTagName}else m===r.Slash?this.state=n.BeforeClosingTagName:(this.state=n.Text,this.stateText(m))},d.prototype.stateInTagName=function(m){s(m)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(m))},d.prototype.stateBeforeClosingTagName=function(m){a(m)||(m===r.Gt?this.state=n.Text:(this.state=this.isTagStartChar(m)?n.InClosingTagName:n.InSpecialComment,this.sectionStart=this.index))},d.prototype.stateInClosingTagName=function(m){(m===r.Gt||a(m))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterClosingTagName,this.stateAfterClosingTagName(m))},d.prototype.stateAfterClosingTagName=function(m){(m===r.Gt||this.fastForwardTo(r.Gt))&&(this.state=n.Text,this.baseState=n.Text,this.sectionStart=this.index+1)},d.prototype.stateBeforeAttributeName=function(m){m===r.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=n.InSpecialTag,this.sequenceIndex=0):this.state=n.Text,this.baseState=this.state,this.sectionStart=this.index+1):m===r.Slash?this.state=n.InSelfClosingTag:a(m)||(this.state=n.InAttributeName,this.sectionStart=this.index)},d.prototype.stateInSelfClosingTag=function(m){m===r.Gt?(this.cbs.onselfclosingtag(this.index),this.state=n.Text,this.baseState=n.Text,this.sectionStart=this.index+1,this.isSpecial=!1):a(m)||(this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(m))},d.prototype.stateInAttributeName=function(m){(m===r.Eq||s(m))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterAttributeName,this.stateAfterAttributeName(m))},d.prototype.stateAfterAttributeName=function(m){m===r.Eq?this.state=n.BeforeAttributeValue:m===r.Slash||m===r.Gt?(this.cbs.onattribend(f.NoValue,this.index),this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(m)):a(m)||(this.cbs.onattribend(f.NoValue,this.index),this.state=n.InAttributeName,this.sectionStart=this.index)},d.prototype.stateBeforeAttributeValue=function(m){m===r.DoubleQuote?(this.state=n.InAttributeValueDq,this.sectionStart=this.index+1):m===r.SingleQuote?(this.state=n.InAttributeValueSq,this.sectionStart=this.index+1):a(m)||(this.sectionStart=this.index,this.state=n.InAttributeValueNq,this.stateInAttributeValueNoQuotes(m))},d.prototype.handleInAttributeValue=function(m,b){m===b||!this.decodeEntities&&this.fastForwardTo(b)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(b===r.DoubleQuote?f.Double:f.Single,this.index),this.state=n.BeforeAttributeName):this.decodeEntities&&m===r.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)},d.prototype.stateInAttributeValueDoubleQuotes=function(m){this.handleInAttributeValue(m,r.DoubleQuote)},d.prototype.stateInAttributeValueSingleQuotes=function(m){this.handleInAttributeValue(m,r.SingleQuote)},d.prototype.stateInAttributeValueNoQuotes=function(m){a(m)||m===r.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(f.Unquoted,this.index),this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(m)):this.decodeEntities&&m===r.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)},d.prototype.stateBeforeDeclaration=function(m){m===r.OpeningSquareBracket?(this.state=n.CDATASequence,this.sequenceIndex=0):this.state=m===r.Dash?n.BeforeComment:n.InDeclaration},d.prototype.stateInDeclaration=function(m){(m===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)},d.prototype.stateInProcessingInstruction=function(m){(m===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)},d.prototype.stateBeforeComment=function(m){m===r.Dash?(this.state=n.InCommentLike,this.currentSequence=l.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=n.InDeclaration},d.prototype.stateInSpecialComment=function(m){(m===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=n.Text,this.sectionStart=this.index+1)},d.prototype.stateBeforeSpecialS=function(m){var b=m|32;b===l.ScriptEnd[3]?this.startSpecial(l.ScriptEnd,4):b===l.StyleEnd[3]?this.startSpecial(l.StyleEnd,4):(this.state=n.InTagName,this.stateInTagName(m))},d.prototype.stateBeforeEntity=function(m){this.entityExcess=1,this.entityResult=0,m===r.Number?this.state=n.BeforeNumericEntity:m===r.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=n.InNamedEntity,this.stateInNamedEntity(m))},d.prototype.stateInNamedEntity=function(m){if(this.entityExcess+=1,this.trieIndex=(0,e.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,m),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];var b=this.trieCurrent&e.BinTrieFlags.VALUE_LENGTH;if(b){var x=(b>>14)-1;if(!this.allowLegacyEntity()&&m!==r.Semi)this.trieIndex+=x;else{var y=this.index-this.entityExcess+1;y>this.sectionStart&&this.emitPartial(this.sectionStart,y),this.entityResult=this.trieIndex,this.trieIndex+=x,this.entityExcess=0,this.sectionStart=this.index+1,x===0&&this.emitNamedEntity()}}},d.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var m=(this.entityTrie[this.entityResult]&e.BinTrieFlags.VALUE_LENGTH)>>14;switch(m){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~e.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},d.prototype.stateBeforeNumericEntity=function(m){(m|32)===r.LowerX?(this.entityExcess++,this.state=n.InHexEntity):(this.state=n.InNumericEntity,this.stateInNumericEntity(m))},d.prototype.emitNumericEntity=function(m){var b=this.index-this.entityExcess-1,x=b+2+ +(this.state===n.InHexEntity);x!==this.index&&(b>this.sectionStart&&this.emitPartial(this.sectionStart,b),this.sectionStart=this.index+Number(m),this.emitCodePoint((0,e.replaceCodePoint)(this.entityResult))),this.state=this.baseState},d.prototype.stateInNumericEntity=function(m){m===r.Semi?this.emitNumericEntity(!0):o(m)?(this.entityResult=this.entityResult*10+(m-r.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},d.prototype.stateInHexEntity=function(m){m===r.Semi?this.emitNumericEntity(!0):o(m)?(this.entityResult=this.entityResult*16+(m-r.Zero),this.entityExcess++):u(m)?(this.entityResult=this.entityResult*16+((m|32)-r.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},d.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===n.Text||this.baseState===n.InSpecialTag)},d.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===n.Text||this.state===n.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===n.InAttributeValueDq||this.state===n.InAttributeValueSq||this.state===n.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},d.prototype.shouldContinue=function(){return this.index<this.buffer.length+this.offset&&this.running},d.prototype.parse=function(){for(;this.shouldContinue();){var m=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case n.Text:{this.stateText(m);break}case n.SpecialStartSequence:{this.stateSpecialStartSequence(m);break}case n.InSpecialTag:{this.stateInSpecialTag(m);break}case n.CDATASequence:{this.stateCDATASequence(m);break}case n.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(m);break}case n.InAttributeName:{this.stateInAttributeName(m);break}case n.InCommentLike:{this.stateInCommentLike(m);break}case n.InSpecialComment:{this.stateInSpecialComment(m);break}case n.BeforeAttributeName:{this.stateBeforeAttributeName(m);break}case n.InTagName:{this.stateInTagName(m);break}case n.InClosingTagName:{this.stateInClosingTagName(m);break}case n.BeforeTagName:{this.stateBeforeTagName(m);break}case n.AfterAttributeName:{this.stateAfterAttributeName(m);break}case n.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(m);break}case n.BeforeAttributeValue:{this.stateBeforeAttributeValue(m);break}case n.BeforeClosingTagName:{this.stateBeforeClosingTagName(m);break}case n.AfterClosingTagName:{this.stateAfterClosingTagName(m);break}case n.BeforeSpecialS:{this.stateBeforeSpecialS(m);break}case n.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(m);break}case n.InSelfClosingTag:{this.stateInSelfClosingTag(m);break}case n.InDeclaration:{this.stateInDeclaration(m);break}case n.BeforeDeclaration:{this.stateBeforeDeclaration(m);break}case n.BeforeComment:{this.stateBeforeComment(m);break}case n.InProcessingInstruction:{this.stateInProcessingInstruction(m);break}case n.InNamedEntity:{this.stateInNamedEntity(m);break}case n.BeforeEntity:{this.stateBeforeEntity(m);break}case n.InHexEntity:{this.stateInHexEntity(m);break}case n.InNumericEntity:{this.stateInNumericEntity(m);break}default:this.stateBeforeNumericEntity(m)}this.index++}this.cleanup()},d.prototype.finish=function(){this.state===n.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()},d.prototype.handleTrailingData=function(){var m=this.buffer.length+this.offset;this.state===n.InCommentLike?this.currentSequence===l.CdataEnd?this.cbs.oncdata(this.sectionStart,m,0):this.cbs.oncomment(this.sectionStart,m,0):this.state===n.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===n.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===n.InTagName||this.state===n.BeforeAttributeName||this.state===n.BeforeAttributeValue||this.state===n.AfterAttributeName||this.state===n.InAttributeName||this.state===n.InAttributeValueSq||this.state===n.InAttributeValueDq||this.state===n.InAttributeValueNq||this.state===n.InClosingTagName||this.cbs.ontext(this.sectionStart,m)},d.prototype.emitPartial=function(m,b){this.baseState!==n.Text&&this.baseState!==n.InSpecialTag?this.cbs.onattribdata(m,b):this.cbs.ontext(m,b)},d.prototype.emitCodePoint=function(m){this.baseState!==n.Text&&this.baseState!==n.InSpecialTag?this.cbs.onattribentity(m):this.cbs.ontextentity(m)},d}();t.default=h})(Fu);var _2=J&&J.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var a=Object.getOwnPropertyDescriptor(e,r);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,a)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),E2=J&&J.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),N2=J&&J.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&_2(e,t,r);return E2(e,t),e};Object.defineProperty(Ba,"__esModule",{value:!0});Ba.Parser=void 0;var ws=N2(Fu),ec=Va,Ln=new Set(["input","option","optgroup","select","button","datalist","textarea"]),_e=new Set(["p"]),tc=new Set(["thead","tbody"]),rc=new Set(["dd","dt"]),nc=new Set(["rt","rp"]),A2=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",_e],["h1",_e],["h2",_e],["h3",_e],["h4",_e],["h5",_e],["h6",_e],["select",Ln],["input",Ln],["output",Ln],["button",Ln],["datalist",Ln],["textarea",Ln],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",rc],["dt",rc],["address",_e],["article",_e],["aside",_e],["blockquote",_e],["details",_e],["div",_e],["dl",_e],["fieldset",_e],["figcaption",_e],["figure",_e],["footer",_e],["form",_e],["header",_e],["hr",_e],["main",_e],["nav",_e],["ol",_e],["pre",_e],["section",_e],["table",_e],["ul",_e],["rt",nc],["rp",nc],["tbody",tc],["tfoot",tc]]),k2=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),ac=new Set(["math","svg"]),sc=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),j2=/\s|\//,S2=function(){function t(e,r){r===void 0&&(r={});var n,a,s,o,c;this.options=r,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=e??{},this.lowerCaseTagNames=(n=r.lowerCaseTags)!==null&&n!==void 0?n:!r.xmlMode,this.lowerCaseAttributeNames=(a=r.lowerCaseAttributeNames)!==null&&a!==void 0?a:!r.xmlMode,this.tokenizer=new((s=r.Tokenizer)!==null&&s!==void 0?s:ws.default)(this.options,this),(c=(o=this.cbs).onparserinit)===null||c===void 0||c.call(o,this)}return t.prototype.ontext=function(e,r){var n,a,s=this.getSlice(e,r);this.endIndex=r-1,(a=(n=this.cbs).ontext)===null||a===void 0||a.call(n,s),this.startIndex=r},t.prototype.ontextentity=function(e){var r,n,a=this.tokenizer.getSectionStart();this.endIndex=a-1,(n=(r=this.cbs).ontext)===null||n===void 0||n.call(r,(0,ec.fromCodePoint)(e)),this.startIndex=a},t.prototype.isVoidElement=function(e){return!this.options.xmlMode&&k2.has(e)},t.prototype.onopentagname=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);this.lowerCaseTagNames&&(n=n.toLowerCase()),this.emitOpenTag(n)},t.prototype.emitOpenTag=function(e){var r,n,a,s;this.openTagStart=this.startIndex,this.tagname=e;var o=!this.options.xmlMode&&A2.get(e);if(o)for(;this.stack.length>0&&o.has(this.stack[this.stack.length-1]);){var c=this.stack.pop();(n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,c,!0)}this.isVoidElement(e)||(this.stack.push(e),ac.has(e)?this.foreignContext.push(!0):sc.has(e)&&this.foreignContext.push(!1)),(s=(a=this.cbs).onopentagname)===null||s===void 0||s.call(a,e),this.cbs.onopentag&&(this.attribs={})},t.prototype.endOpenTag=function(e){var r,n;this.startIndex=this.openTagStart,this.attribs&&((n=(r=this.cbs).onopentag)===null||n===void 0||n.call(r,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},t.prototype.onopentagend=function(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1},t.prototype.onclosetag=function(e,r){var n,a,s,o,c,u;this.endIndex=r;var f=this.getSlice(e,r);if(this.lowerCaseTagNames&&(f=f.toLowerCase()),(ac.has(f)||sc.has(f))&&this.foreignContext.pop(),this.isVoidElement(f))!this.options.xmlMode&&f==="br"&&((a=(n=this.cbs).onopentagname)===null||a===void 0||a.call(n,"br"),(o=(s=this.cbs).onopentag)===null||o===void 0||o.call(s,"br",{},!0),(u=(c=this.cbs).onclosetag)===null||u===void 0||u.call(c,"br",!1));else{var l=this.stack.lastIndexOf(f);if(l!==-1)if(this.cbs.onclosetag)for(var h=this.stack.length-l;h--;)this.cbs.onclosetag(this.stack.pop(),h!==0);else this.stack.length=l;else!this.options.xmlMode&&f==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=r+1},t.prototype.onselfclosingtag=function(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)},t.prototype.closeCurrentTag=function(e){var r,n,a=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===a&&((n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,a,!e),this.stack.pop())},t.prototype.onattribname=function(e,r){this.startIndex=e;var n=this.getSlice(e,r);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n},t.prototype.onattribdata=function(e,r){this.attribvalue+=this.getSlice(e,r)},t.prototype.onattribentity=function(e){this.attribvalue+=(0,ec.fromCodePoint)(e)},t.prototype.onattribend=function(e,r){var n,a;this.endIndex=r,(a=(n=this.cbs).onattribute)===null||a===void 0||a.call(n,this.attribname,this.attribvalue,e===ws.QuoteType.Double?'"':e===ws.QuoteType.Single?"'":e===ws.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},t.prototype.getInstructionName=function(e){var r=e.search(j2),n=r<0?e:e.substr(0,r);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},t.prototype.ondeclaration=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);if(this.cbs.onprocessinginstruction){var a=this.getInstructionName(n);this.cbs.onprocessinginstruction("!".concat(a),"!".concat(n))}this.startIndex=r+1},t.prototype.onprocessinginstruction=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);if(this.cbs.onprocessinginstruction){var a=this.getInstructionName(n);this.cbs.onprocessinginstruction("?".concat(a),"?".concat(n))}this.startIndex=r+1},t.prototype.oncomment=function(e,r,n){var a,s,o,c;this.endIndex=r,(s=(a=this.cbs).oncomment)===null||s===void 0||s.call(a,this.getSlice(e,r-n)),(c=(o=this.cbs).oncommentend)===null||c===void 0||c.call(o),this.startIndex=r+1},t.prototype.oncdata=function(e,r,n){var a,s,o,c,u,f,l,h,d,m;this.endIndex=r;var b=this.getSlice(e,r-n);this.options.xmlMode||this.options.recognizeCDATA?((s=(a=this.cbs).oncdatastart)===null||s===void 0||s.call(a),(c=(o=this.cbs).ontext)===null||c===void 0||c.call(o,b),(f=(u=this.cbs).oncdataend)===null||f===void 0||f.call(u)):((h=(l=this.cbs).oncomment)===null||h===void 0||h.call(l,"[CDATA[".concat(b,"]]")),(m=(d=this.cbs).oncommentend)===null||m===void 0||m.call(d)),this.startIndex=r+1},t.prototype.onend=function(){var e,r;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n],!0));}(r=(e=this.cbs).onend)===null||r===void 0||r.call(e)},t.prototype.reset=function(){var e,r,n,a;(r=(e=this.cbs).onreset)===null||r===void 0||r.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(a=(n=this.cbs).onparserinit)===null||a===void 0||a.call(n,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},t.prototype.parseComplete=function(e){this.reset(),this.end(e)},t.prototype.getSlice=function(e,r){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var n=this.buffers[0].slice(e-this.bufferOffset,r-this.bufferOffset);r-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,r-this.bufferOffset);return n},t.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},t.prototype.write=function(e){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".write() after done!"));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)},t.prototype.end=function(e){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".end() after done!"));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()},t.prototype.pause=function(){this.tokenizer.pause()},t.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()},t.prototype.parseChunk=function(e){this.write(e)},t.prototype.done=function(e){this.end(e)},t}();Ba.Parser=S2;var mr={},ua={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0;var e;(function(n){n.Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype"})(e=t.ElementType||(t.ElementType={}));function r(n){return n.type===e.Tag||n.type===e.Script||n.type===e.Style}t.isTag=r,t.Root=e.Root,t.Text=e.Text,t.Directive=e.Directive,t.Comment=e.Comment,t.Script=e.Script,t.Style=e.Style,t.Tag=e.Tag,t.CDATA=e.CDATA,t.Doctype=e.Doctype})(ua);var pe={},Vr=J&&J.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(n[s]=a[s])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Da=J&&J.__assign||function(){return Da=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},Da.apply(this,arguments)};Object.defineProperty(pe,"__esModule",{value:!0});pe.cloneNode=pe.hasChildren=pe.isDocument=pe.isDirective=pe.isComment=pe.isText=pe.isCDATA=pe.isTag=pe.Element=pe.Document=pe.CDATA=pe.NodeWithChildren=pe.ProcessingInstruction=pe.Comment=pe.Text=pe.DataNode=pe.Node=void 0;var mt=ua,Vu=function(){function t(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),t.prototype.cloneNode=function(e){return e===void 0&&(e=!1),qu(this,e)},t}();pe.Node=Vu;var eo=function(t){Vr(e,t);function e(r){var n=t.call(this)||this;return n.data=r,n}return Object.defineProperty(e.prototype,"nodeValue",{get:function(){return this.data},set:function(r){this.data=r},enumerable:!1,configurable:!0}),e}(Vu);pe.DataNode=eo;var r0=function(t){Vr(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=mt.ElementType.Text,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),e}(eo);pe.Text=r0;var n0=function(t){Vr(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=mt.ElementType.Comment,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),e}(eo);pe.Comment=n0;var a0=function(t){Vr(e,t);function e(r,n){var a=t.call(this,n)||this;return a.name=r,a.type=mt.ElementType.Directive,a}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),e}(eo);pe.ProcessingInstruction=a0;var to=function(t){Vr(e,t);function e(r){var n=t.call(this)||this;return n.children=r,n}return Object.defineProperty(e.prototype,"firstChild",{get:function(){var r;return(r=this.children[0])!==null&&r!==void 0?r:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childNodes",{get:function(){return this.children},set:function(r){this.children=r},enumerable:!1,configurable:!0}),e}(Vu);pe.NodeWithChildren=to;var s0=function(t){Vr(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=mt.ElementType.CDATA,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),e}(to);pe.CDATA=s0;var i0=function(t){Vr(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=mt.ElementType.Root,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),e}(to);pe.Document=i0;var o0=function(t){Vr(e,t);function e(r,n,a,s){a===void 0&&(a=[]),s===void 0&&(s=r==="script"?mt.ElementType.Script:r==="style"?mt.ElementType.Style:mt.ElementType.Tag);var o=t.call(this,a)||this;return o.name=r,o.attribs=n,o.type=s,o}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(n){var a,s;return{name:n,value:r.attribs[n],namespace:(a=r["x-attribsNamespace"])===null||a===void 0?void 0:a[n],prefix:(s=r["x-attribsPrefix"])===null||s===void 0?void 0:s[n]}})},enumerable:!1,configurable:!0}),e}(to);pe.Element=o0;function u0(t){return(0,mt.isTag)(t)}pe.isTag=u0;function l0(t){return t.type===mt.ElementType.CDATA}pe.isCDATA=l0;function c0(t){return t.type===mt.ElementType.Text}pe.isText=c0;function d0(t){return t.type===mt.ElementType.Comment}pe.isComment=d0;function f0(t){return t.type===mt.ElementType.Directive}pe.isDirective=f0;function h0(t){return t.type===mt.ElementType.Root}pe.isDocument=h0;function D2(t){return Object.prototype.hasOwnProperty.call(t,"children")}pe.hasChildren=D2;function qu(t,e){e===void 0&&(e=!1);var r;if(c0(t))r=new r0(t.data);else if(d0(t))r=new n0(t.data);else if(u0(t)){var n=e?wo(t.children):[],a=new o0(t.name,Da({},t.attribs),n);n.forEach(function(u){return u.parent=a}),t.namespace!=null&&(a.namespace=t.namespace),t["x-attribsNamespace"]&&(a["x-attribsNamespace"]=Da({},t["x-attribsNamespace"])),t["x-attribsPrefix"]&&(a["x-attribsPrefix"]=Da({},t["x-attribsPrefix"])),r=a}else if(l0(t)){var n=e?wo(t.children):[],s=new s0(n);n.forEach(function(f){return f.parent=s}),r=s}else if(h0(t)){var n=e?wo(t.children):[],o=new i0(n);n.forEach(function(f){return f.parent=o}),t["x-mode"]&&(o["x-mode"]=t["x-mode"]),r=o}else if(f0(t)){var c=new a0(t.name,t.data);t["x-name"]!=null&&(c["x-name"]=t["x-name"],c["x-publicId"]=t["x-publicId"],c["x-systemId"]=t["x-systemId"]),r=c}else throw new Error("Not implemented yet: ".concat(t.type));return r.startIndex=t.startIndex,r.endIndex=t.endIndex,t.sourceCodeLocation!=null&&(r.sourceCodeLocation=t.sourceCodeLocation),r}pe.cloneNode=qu;function wo(t){for(var e=t.map(function(n){return qu(n,!0)}),r=1;r<e.length;r++)e[r].prev=e[r-1],e[r-1].next=e[r];return e}(function(t){var e=J&&J.__createBinding||(Object.create?function(c,u,f,l){l===void 0&&(l=f);var h=Object.getOwnPropertyDescriptor(u,f);(!h||("get"in h?!u.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return u[f]}}),Object.defineProperty(c,l,h)}:function(c,u,f,l){l===void 0&&(l=f),c[l]=u[f]}),r=J&&J.__exportStar||function(c,u){for(var f in c)f!=="default"&&!Object.prototype.hasOwnProperty.call(u,f)&&e(u,c,f)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var n=ua,a=pe;r(pe,t);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},o=function(){function c(u,f,l){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof f=="function"&&(l=f,f=s),typeof u=="object"&&(f=u,u=void 0),this.callback=u??null,this.options=f??s,this.elementCB=l??null}return c.prototype.onparserinit=function(u){this.parser=u},c.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},c.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},c.prototype.onerror=function(u){this.handleCallback(u)},c.prototype.onclosetag=function(){this.lastNode=null;var u=this.tagStack.pop();this.options.withEndIndices&&(u.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(u)},c.prototype.onopentag=function(u,f){var l=this.options.xmlMode?n.ElementType.Tag:void 0,h=new a.Element(u,f,void 0,l);this.addNode(h),this.tagStack.push(h)},c.prototype.ontext=function(u){var f=this.lastNode;if(f&&f.type===n.ElementType.Text)f.data+=u,this.options.withEndIndices&&(f.endIndex=this.parser.endIndex);else{var l=new a.Text(u);this.addNode(l),this.lastNode=l}},c.prototype.oncomment=function(u){if(this.lastNode&&this.lastNode.type===n.ElementType.Comment){this.lastNode.data+=u;return}var f=new a.Comment(u);this.addNode(f),this.lastNode=f},c.prototype.oncommentend=function(){this.lastNode=null},c.prototype.oncdatastart=function(){var u=new a.Text(""),f=new a.CDATA([u]);this.addNode(f),u.parent=f,this.lastNode=u},c.prototype.oncdataend=function(){this.lastNode=null},c.prototype.onprocessinginstruction=function(u,f){var l=new a.ProcessingInstruction(u,f);this.addNode(l)},c.prototype.handleCallback=function(u){if(typeof this.callback=="function")this.callback(u,this.dom);else if(u)throw u},c.prototype.addNode=function(u){var f=this.tagStack[this.tagStack.length-1],l=f.children[f.children.length-1];this.options.withStartIndices&&(u.startIndex=this.parser.startIndex),this.options.withEndIndices&&(u.endIndex=this.parser.endIndex),f.children.push(u),l&&(u.prev=l,l.next=u),u.parent=f,this.lastNode=null},c}();t.DomHandler=o,t.default=o})(mr);var $s={},qr={},rs={},p0={},dn={},Uu={};Object.defineProperty(Uu,"__esModule",{value:!0});function _s(t){for(var e=1;e<t.length;e++)t[e][0]+=t[e-1][0]+1;return t}Uu.default=new Map(_s([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Dcy;"],[0,"&IEcy;"],[0,"&ZHcy;"],[0,"&Zcy;"],[0,"&Icy;"],[0,"&Jcy;"],[0,"&Kcy;"],[0,"&Lcy;"],[0,"&Mcy;"],[0,"&Ncy;"],[0,"&Ocy;"],[0,"&Pcy;"],[0,"&Rcy;"],[0,"&Scy;"],[0,"&Tcy;"],[0,"&Ucy;"],[0,"&Fcy;"],[0,"&KHcy;"],[0,"&TScy;"],[0,"&CHcy;"],[0,"&SHcy;"],[0,"&SHCHcy;"],[0,"&HARDcy;"],[0,"&Ycy;"],[0,"&SOFTcy;"],[0,"&Ecy;"],[0,"&YUcy;"],[0,"&YAcy;"],[0,"&acy;"],[0,"&bcy;"],[0,"&vcy;"],[0,"&gcy;"],[0,"&dcy;"],[0,"&iecy;"],[0,"&zhcy;"],[0,"&zcy;"],[0,"&icy;"],[0,"&jcy;"],[0,"&kcy;"],[0,"&lcy;"],[0,"&mcy;"],[0,"&ncy;"],[0,"&ocy;"],[0,"&pcy;"],[0,"&rcy;"],[0,"&scy;"],[0,"&tcy;"],[0,"&ucy;"],[0,"&fcy;"],[0,"&khcy;"],[0,"&tscy;"],[0,"&chcy;"],[0,"&shcy;"],[0,"&shchcy;"],[0,"&hardcy;"],[0,"&ycy;"],[0,"&softcy;"],[0,"&ecy;"],[0,"&yucy;"],[0,"&yacy;"],[1,"&iocy;"],[0,"&djcy;"],[0,"&gjcy;"],[0,"&jukcy;"],[0,"&dscy;"],[0,"&iukcy;"],[0,"&yicy;"],[0,"&jsercy;"],[0,"&ljcy;"],[0,"&njcy;"],[0,"&tshcy;"],[0,"&kjcy;"],[1,"&ubrcy;"],[0,"&dzcy;"],[7074,"&ensp;"],[0,"&emsp;"],[0,"&emsp13;"],[0,"&emsp14;"],[1,"&numsp;"],[0,"&puncsp;"],[0,"&ThinSpace;"],[0,"&hairsp;"],[0,"&NegativeMediumSpace;"],[0,"&zwnj;"],[0,"&zwj;"],[0,"&lrm;"],[0,"&rlm;"],[0,"&dash;"],[2,"&ndash;"],[0,"&mdash;"],[0,"&horbar;"],[0,"&Verbar;"],[1,"&lsquo;"],[0,"&CloseCurlyQuote;"],[0,"&lsquor;"],[1,"&ldquo;"],[0,"&CloseCurlyDoubleQuote;"],[0,"&bdquo;"],[1,"&dagger;"],[0,"&Dagger;"],[0,"&bull;"],[2,"&nldr;"],[0,"&hellip;"],[9,"&permil;"],[0,"&pertenk;"],[0,"&prime;"],[0,"&Prime;"],[0,"&tprime;"],[0,"&backprime;"],[3,"&lsaquo;"],[0,"&rsaquo;"],[3,"&oline;"],[2,"&caret;"],[1,"&hybull;"],[0,"&frasl;"],[10,"&bsemi;"],[7,"&qprime;"],[7,{v:"&MediumSpace;",n:8202,o:"&ThickSpace;"}],[0,"&NoBreak;"],[0,"&af;"],[0,"&InvisibleTimes;"],[0,"&ic;"],[72,"&euro;"],[46,"&tdot;"],[0,"&DotDot;"],[37,"&complexes;"],[2,"&incare;"],[4,"&gscr;"],[0,"&hamilt;"],[0,"&Hfr;"],[0,"&Hopf;"],[0,"&planckh;"],[0,"&hbar;"],[0,"&imagline;"],[0,"&Ifr;"],[0,"&lagran;"],[0,"&ell;"],[1,"&naturals;"],[0,"&numero;"],[0,"&copysr;"],[0,"&weierp;"],[0,"&Popf;"],[0,"&Qopf;"],[0,"&realine;"],[0,"&real;"],[0,"&reals;"],[0,"&rx;"],[3,"&trade;"],[1,"&integers;"],[2,"&mho;"],[0,"&zeetrf;"],[0,"&iiota;"],[2,"&bernou;"],[0,"&Cayleys;"],[1,"&escr;"],[0,"&Escr;"],[0,"&Fouriertrf;"],[1,"&Mellintrf;"],[0,"&order;"],[0,"&alefsym;"],[0,"&beth;"],[0,"&gimel;"],[0,"&daleth;"],[12,"&CapitalDifferentialD;"],[0,"&dd;"],[0,"&ee;"],[0,"&ii;"],[10,"&frac13;"],[0,"&frac23;"],[0,"&frac15;"],[0,"&frac25;"],[0,"&frac35;"],[0,"&frac45;"],[0,"&frac16;"],[0,"&frac56;"],[0,"&frac18;"],[0,"&frac38;"],[0,"&frac58;"],[0,"&frac78;"],[49,"&larr;"],[0,"&ShortUpArrow;"],[0,"&rarr;"],[0,"&darr;"],[0,"&harr;"],[0,"&updownarrow;"],[0,"&nwarr;"],[0,"&nearr;"],[0,"&LowerRightArrow;"],[0,"&LowerLeftArrow;"],[0,"&nlarr;"],[0,"&nrarr;"],[1,{v:"&rarrw;",n:824,o:"&nrarrw;"}],[0,"&Larr;"],[0,"&Uarr;"],[0,"&Rarr;"],[0,"&Darr;"],[0,"&larrtl;"],[0,"&rarrtl;"],[0,"&LeftTeeArrow;"],[0,"&mapstoup;"],[0,"&map;"],[0,"&DownTeeArrow;"],[1,"&hookleftarrow;"],[0,"&hookrightarrow;"],[0,"&larrlp;"],[0,"&looparrowright;"],[0,"&harrw;"],[0,"&nharr;"],[1,"&lsh;"],[0,"&rsh;"],[0,"&ldsh;"],[0,"&rdsh;"],[1,"&crarr;"],[0,"&cularr;"],[0,"&curarr;"],[2,"&circlearrowleft;"],[0,"&circlearrowright;"],[0,"&leftharpoonup;"],[0,"&DownLeftVector;"],[0,"&RightUpVector;"],[0,"&LeftUpVector;"],[0,"&rharu;"],[0,"&DownRightVector;"],[0,"&dharr;"],[0,"&dharl;"],[0,"&RightArrowLeftArrow;"],[0,"&udarr;"],[0,"&LeftArrowRightArrow;"],[0,"&leftleftarrows;"],[0,"&upuparrows;"],[0,"&rightrightarrows;"],[0,"&ddarr;"],[0,"&leftrightharpoons;"],[0,"&Equilibrium;"],[0,"&nlArr;"],[0,"&nhArr;"],[0,"&nrArr;"],[0,"&DoubleLeftArrow;"],[0,"&DoubleUpArrow;"],[0,"&DoubleRightArrow;"],[0,"&dArr;"],[0,"&DoubleLeftRightArrow;"],[0,"&DoubleUpDownArrow;"],[0,"&nwArr;"],[0,"&neArr;"],[0,"&seArr;"],[0,"&swArr;"],[0,"&lAarr;"],[0,"&rAarr;"],[1,"&zigrarr;"],[6,"&larrb;"],[0,"&rarrb;"],[15,"&DownArrowUpArrow;"],[7,"&loarr;"],[0,"&roarr;"],[0,"&hoarr;"],[0,"&forall;"],[0,"&comp;"],[0,{v:"&part;",n:824,o:"&npart;"}],[0,"&exist;"],[0,"&nexist;"],[0,"&empty;"],[1,"&Del;"],[0,"&Element;"],[0,"&NotElement;"],[1,"&ni;"],[0,"&notni;"],[2,"&prod;"],[0,"&coprod;"],[0,"&sum;"],[0,"&minus;"],[0,"&MinusPlus;"],[0,"&dotplus;"],[1,"&Backslash;"],[0,"&lowast;"],[0,"&compfn;"],[1,"&radic;"],[2,"&prop;"],[0,"&infin;"],[0,"&angrt;"],[0,{v:"&ang;",n:8402,o:"&nang;"}],[0,"&angmsd;"],[0,"&angsph;"],[0,"&mid;"],[0,"&nmid;"],[0,"&DoubleVerticalBar;"],[0,"&NotDoubleVerticalBar;"],[0,"&and;"],[0,"&or;"],[0,{v:"&cap;",n:65024,o:"&caps;"}],[0,{v:"&cup;",n:65024,o:"&cups;"}],[0,"&int;"],[0,"&Int;"],[0,"&iiint;"],[0,"&conint;"],[0,"&Conint;"],[0,"&Cconint;"],[0,"&cwint;"],[0,"&ClockwiseContourIntegral;"],[0,"&awconint;"],[0,"&there4;"],[0,"&becaus;"],[0,"&ratio;"],[0,"&Colon;"],[0,"&dotminus;"],[1,"&mDDot;"],[0,"&homtht;"],[0,{v:"&sim;",n:8402,o:"&nvsim;"}],[0,{v:"&backsim;",n:817,o:"&race;"}],[0,{v:"&ac;",n:819,o:"&acE;"}],[0,"&acd;"],[0,"&VerticalTilde;"],[0,"&NotTilde;"],[0,{v:"&eqsim;",n:824,o:"&nesim;"}],[0,"&sime;"],[0,"&NotTildeEqual;"],[0,"&cong;"],[0,"&simne;"],[0,"&ncong;"],[0,"&ap;"],[0,"&nap;"],[0,"&ape;"],[0,{v:"&apid;",n:824,o:"&napid;"}],[0,"&backcong;"],[0,{v:"&asympeq;",n:8402,o:"&nvap;"}],[0,{v:"&bump;",n:824,o:"&nbump;"}],[0,{v:"&bumpe;",n:824,o:"&nbumpe;"}],[0,{v:"&doteq;",n:824,o:"&nedot;"}],[0,"&doteqdot;"],[0,"&efDot;"],[0,"&erDot;"],[0,"&Assign;"],[0,"&ecolon;"],[0,"&ecir;"],[0,"&circeq;"],[1,"&wedgeq;"],[0,"&veeeq;"],[1,"&triangleq;"],[2,"&equest;"],[0,"&ne;"],[0,{v:"&Congruent;",n:8421,o:"&bnequiv;"}],[0,"&nequiv;"],[1,{v:"&le;",n:8402,o:"&nvle;"}],[0,{v:"&ge;",n:8402,o:"&nvge;"}],[0,{v:"&lE;",n:824,o:"&nlE;"}],[0,{v:"&gE;",n:824,o:"&ngE;"}],[0,{v:"&lnE;",n:65024,o:"&lvertneqq;"}],[0,{v:"&gnE;",n:65024,o:"&gvertneqq;"}],[0,{v:"&ll;",n:new Map(_s([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(_s([[824,"&nGtv;"],[7577,"&nGt;"]]))}],[0,"&between;"],[0,"&NotCupCap;"],[0,"&nless;"],[0,"&ngt;"],[0,"&nle;"],[0,"&nge;"],[0,"&lesssim;"],[0,"&GreaterTilde;"],[0,"&nlsim;"],[0,"&ngsim;"],[0,"&LessGreater;"],[0,"&gl;"],[0,"&NotLessGreater;"],[0,"&NotGreaterLess;"],[0,"&pr;"],[0,"&sc;"],[0,"&prcue;"],[0,"&sccue;"],[0,"&PrecedesTilde;"],[0,{v:"&scsim;",n:824,o:"&NotSucceedsTilde;"}],[0,"&NotPrecedes;"],[0,"&NotSucceeds;"],[0,{v:"&sub;",n:8402,o:"&NotSubset;"}],[0,{v:"&sup;",n:8402,o:"&NotSuperset;"}],[0,"&nsub;"],[0,"&nsup;"],[0,"&sube;"],[0,"&supe;"],[0,"&NotSubsetEqual;"],[0,"&NotSupersetEqual;"],[0,{v:"&subne;",n:65024,o:"&varsubsetneq;"}],[0,{v:"&supne;",n:65024,o:"&varsupsetneq;"}],[1,"&cupdot;"],[0,"&UnionPlus;"],[0,{v:"&sqsub;",n:824,o:"&NotSquareSubset;"}],[0,{v:"&sqsup;",n:824,o:"&NotSquareSuperset;"}],[0,"&sqsube;"],[0,"&sqsupe;"],[0,{v:"&sqcap;",n:65024,o:"&sqcaps;"}],[0,{v:"&sqcup;",n:65024,o:"&sqcups;"}],[0,"&CirclePlus;"],[0,"&CircleMinus;"],[0,"&CircleTimes;"],[0,"&osol;"],[0,"&CircleDot;"],[0,"&circledcirc;"],[0,"&circledast;"],[1,"&circleddash;"],[0,"&boxplus;"],[0,"&boxminus;"],[0,"&boxtimes;"],[0,"&dotsquare;"],[0,"&RightTee;"],[0,"&dashv;"],[0,"&DownTee;"],[0,"&bot;"],[1,"&models;"],[0,"&DoubleRightTee;"],[0,"&Vdash;"],[0,"&Vvdash;"],[0,"&VDash;"],[0,"&nvdash;"],[0,"&nvDash;"],[0,"&nVdash;"],[0,"&nVDash;"],[0,"&prurel;"],[1,"&LeftTriangle;"],[0,"&RightTriangle;"],[0,{v:"&LeftTriangleEqual;",n:8402,o:"&nvltrie;"}],[0,{v:"&RightTriangleEqual;",n:8402,o:"&nvrtrie;"}],[0,"&origof;"],[0,"&imof;"],[0,"&multimap;"],[0,"&hercon;"],[0,"&intcal;"],[0,"&veebar;"],[1,"&barvee;"],[0,"&angrtvb;"],[0,"&lrtri;"],[0,"&bigwedge;"],[0,"&bigvee;"],[0,"&bigcap;"],[0,"&bigcup;"],[0,"&diam;"],[0,"&sdot;"],[0,"&sstarf;"],[0,"&divideontimes;"],[0,"&bowtie;"],[0,"&ltimes;"],[0,"&rtimes;"],[0,"&leftthreetimes;"],[0,"&rightthreetimes;"],[0,"&backsimeq;"],[0,"&curlyvee;"],[0,"&curlywedge;"],[0,"&Sub;"],[0,"&Sup;"],[0,"&Cap;"],[0,"&Cup;"],[0,"&fork;"],[0,"&epar;"],[0,"&lessdot;"],[0,"&gtdot;"],[0,{v:"&Ll;",n:824,o:"&nLl;"}],[0,{v:"&Gg;",n:824,o:"&nGg;"}],[0,{v:"&leg;",n:65024,o:"&lesg;"}],[0,{v:"&gel;",n:65024,o:"&gesl;"}],[2,"&cuepr;"],[0,"&cuesc;"],[0,"&NotPrecedesSlantEqual;"],[0,"&NotSucceedsSlantEqual;"],[0,"&NotSquareSubsetEqual;"],[0,"&NotSquareSupersetEqual;"],[2,"&lnsim;"],[0,"&gnsim;"],[0,"&precnsim;"],[0,"&scnsim;"],[0,"&nltri;"],[0,"&NotRightTriangle;"],[0,"&nltrie;"],[0,"&NotRightTriangleEqual;"],[0,"&vellip;"],[0,"&ctdot;"],[0,"&utdot;"],[0,"&dtdot;"],[0,"&disin;"],[0,"&isinsv;"],[0,"&isins;"],[0,{v:"&isindot;",n:824,o:"&notindot;"}],[0,"&notinvc;"],[0,"&notinvb;"],[1,{v:"&isinE;",n:824,o:"&notinE;"}],[0,"&nisd;"],[0,"&xnis;"],[0,"&nis;"],[0,"&notnivc;"],[0,"&notnivb;"],[6,"&barwed;"],[0,"&Barwed;"],[1,"&lceil;"],[0,"&rceil;"],[0,"&LeftFloor;"],[0,"&rfloor;"],[0,"&drcrop;"],[0,"&dlcrop;"],[0,"&urcrop;"],[0,"&ulcrop;"],[0,"&bnot;"],[1,"&profline;"],[0,"&profsurf;"],[1,"&telrec;"],[0,"&target;"],[5,"&ulcorn;"],[0,"&urcorn;"],[0,"&dlcorn;"],[0,"&drcorn;"],[2,"&frown;"],[0,"&smile;"],[9,"&cylcty;"],[0,"&profalar;"],[7,"&topbot;"],[6,"&ovbar;"],[1,"&solbar;"],[60,"&angzarr;"],[51,"&lmoustache;"],[0,"&rmoustache;"],[2,"&OverBracket;"],[0,"&bbrk;"],[0,"&bbrktbrk;"],[37,"&OverParenthesis;"],[0,"&UnderParenthesis;"],[0,"&OverBrace;"],[0,"&UnderBrace;"],[2,"&trpezium;"],[4,"&elinters;"],[59,"&blank;"],[164,"&circledS;"],[55,"&boxh;"],[1,"&boxv;"],[9,"&boxdr;"],[3,"&boxdl;"],[3,"&boxur;"],[3,"&boxul;"],[3,"&boxvr;"],[7,"&boxvl;"],[7,"&boxhd;"],[7,"&boxhu;"],[7,"&boxvh;"],[19,"&boxH;"],[0,"&boxV;"],[0,"&boxdR;"],[0,"&boxDr;"],[0,"&boxDR;"],[0,"&boxdL;"],[0,"&boxDl;"],[0,"&boxDL;"],[0,"&boxuR;"],[0,"&boxUr;"],[0,"&boxUR;"],[0,"&boxuL;"],[0,"&boxUl;"],[0,"&boxUL;"],[0,"&boxvR;"],[0,"&boxVr;"],[0,"&boxVR;"],[0,"&boxvL;"],[0,"&boxVl;"],[0,"&boxVL;"],[0,"&boxHd;"],[0,"&boxhD;"],[0,"&boxHD;"],[0,"&boxHu;"],[0,"&boxhU;"],[0,"&boxHU;"],[0,"&boxvH;"],[0,"&boxVh;"],[0,"&boxVH;"],[19,"&uhblk;"],[3,"&lhblk;"],[3,"&block;"],[8,"&blk14;"],[0,"&blk12;"],[0,"&blk34;"],[13,"&square;"],[8,"&blacksquare;"],[0,"&EmptyVerySmallSquare;"],[1,"&rect;"],[0,"&marker;"],[2,"&fltns;"],[1,"&bigtriangleup;"],[0,"&blacktriangle;"],[0,"&triangle;"],[2,"&blacktriangleright;"],[0,"&rtri;"],[3,"&bigtriangledown;"],[0,"&blacktriangledown;"],[0,"&dtri;"],[2,"&blacktriangleleft;"],[0,"&ltri;"],[6,"&loz;"],[0,"&cir;"],[32,"&tridot;"],[2,"&bigcirc;"],[8,"&ultri;"],[0,"&urtri;"],[0,"&lltri;"],[0,"&EmptySmallSquare;"],[0,"&FilledSmallSquare;"],[8,"&bigstar;"],[0,"&star;"],[7,"&phone;"],[49,"&female;"],[1,"&male;"],[29,"&spades;"],[2,"&clubs;"],[1,"&hearts;"],[0,"&diamondsuit;"],[3,"&sung;"],[2,"&flat;"],[0,"&natural;"],[0,"&sharp;"],[163,"&check;"],[3,"&cross;"],[8,"&malt;"],[21,"&sext;"],[33,"&VerticalSeparator;"],[25,"&lbbrk;"],[0,"&rbbrk;"],[84,"&bsolhsub;"],[0,"&suphsol;"],[28,"&LeftDoubleBracket;"],[0,"&RightDoubleBracket;"],[0,"&lang;"],[0,"&rang;"],[0,"&Lang;"],[0,"&Rang;"],[0,"&loang;"],[0,"&roang;"],[7,"&longleftarrow;"],[0,"&longrightarrow;"],[0,"&longleftrightarrow;"],[0,"&DoubleLongLeftArrow;"],[0,"&DoubleLongRightArrow;"],[0,"&DoubleLongLeftRightArrow;"],[1,"&longmapsto;"],[2,"&dzigrarr;"],[258,"&nvlArr;"],[0,"&nvrArr;"],[0,"&nvHarr;"],[0,"&Map;"],[6,"&lbarr;"],[0,"&bkarow;"],[0,"&lBarr;"],[0,"&dbkarow;"],[0,"&drbkarow;"],[0,"&DDotrahd;"],[0,"&UpArrowBar;"],[0,"&DownArrowBar;"],[2,"&Rarrtl;"],[2,"&latail;"],[0,"&ratail;"],[0,"&lAtail;"],[0,"&rAtail;"],[0,"&larrfs;"],[0,"&rarrfs;"],[0,"&larrbfs;"],[0,"&rarrbfs;"],[2,"&nwarhk;"],[0,"&nearhk;"],[0,"&hksearow;"],[0,"&hkswarow;"],[0,"&nwnear;"],[0,"&nesear;"],[0,"&seswar;"],[0,"&swnwar;"],[8,{v:"&rarrc;",n:824,o:"&nrarrc;"}],[1,"&cudarrr;"],[0,"&ldca;"],[0,"&rdca;"],[0,"&cudarrl;"],[0,"&larrpl;"],[2,"&curarrm;"],[0,"&cularrp;"],[7,"&rarrpl;"],[2,"&harrcir;"],[0,"&Uarrocir;"],[0,"&lurdshar;"],[0,"&ldrushar;"],[2,"&LeftRightVector;"],[0,"&RightUpDownVector;"],[0,"&DownLeftRightVector;"],[0,"&LeftUpDownVector;"],[0,"&LeftVectorBar;"],[0,"&RightVectorBar;"],[0,"&RightUpVectorBar;"],[0,"&RightDownVectorBar;"],[0,"&DownLeftVectorBar;"],[0,"&DownRightVectorBar;"],[0,"&LeftUpVectorBar;"],[0,"&LeftDownVectorBar;"],[0,"&LeftTeeVector;"],[0,"&RightTeeVector;"],[0,"&RightUpTeeVector;"],[0,"&RightDownTeeVector;"],[0,"&DownLeftTeeVector;"],[0,"&DownRightTeeVector;"],[0,"&LeftUpTeeVector;"],[0,"&LeftDownTeeVector;"],[0,"&lHar;"],[0,"&uHar;"],[0,"&rHar;"],[0,"&dHar;"],[0,"&luruhar;"],[0,"&ldrdhar;"],[0,"&ruluhar;"],[0,"&rdldhar;"],[0,"&lharul;"],[0,"&llhard;"],[0,"&rharul;"],[0,"&lrhard;"],[0,"&udhar;"],[0,"&duhar;"],[0,"&RoundImplies;"],[0,"&erarr;"],[0,"&simrarr;"],[0,"&larrsim;"],[0,"&rarrsim;"],[0,"&rarrap;"],[0,"&ltlarr;"],[1,"&gtrarr;"],[0,"&subrarr;"],[1,"&suplarr;"],[0,"&lfisht;"],[0,"&rfisht;"],[0,"&ufisht;"],[0,"&dfisht;"],[5,"&lopar;"],[0,"&ropar;"],[4,"&lbrke;"],[0,"&rbrke;"],[0,"&lbrkslu;"],[0,"&rbrksld;"],[0,"&lbrksld;"],[0,"&rbrkslu;"],[0,"&langd;"],[0,"&rangd;"],[0,"&lparlt;"],[0,"&rpargt;"],[0,"&gtlPar;"],[0,"&ltrPar;"],[3,"&vzigzag;"],[1,"&vangrt;"],[0,"&angrtvbd;"],[6,"&ange;"],[0,"&range;"],[0,"&dwangle;"],[0,"&uwangle;"],[0,"&angmsdaa;"],[0,"&angmsdab;"],[0,"&angmsdac;"],[0,"&angmsdad;"],[0,"&angmsdae;"],[0,"&angmsdaf;"],[0,"&angmsdag;"],[0,"&angmsdah;"],[0,"&bemptyv;"],[0,"&demptyv;"],[0,"&cemptyv;"],[0,"&raemptyv;"],[0,"&laemptyv;"],[0,"&ohbar;"],[0,"&omid;"],[0,"&opar;"],[1,"&operp;"],[1,"&olcross;"],[0,"&odsold;"],[1,"&olcir;"],[0,"&ofcir;"],[0,"&olt;"],[0,"&ogt;"],[0,"&cirscir;"],[0,"&cirE;"],[0,"&solb;"],[0,"&bsolb;"],[3,"&boxbox;"],[3,"&trisb;"],[0,"&rtriltri;"],[0,{v:"&LeftTriangleBar;",n:824,o:"&NotLeftTriangleBar;"}],[0,{v:"&RightTriangleBar;",n:824,o:"&NotRightTriangleBar;"}],[11,"&iinfin;"],[0,"&infintie;"],[0,"&nvinfin;"],[4,"&eparsl;"],[0,"&smeparsl;"],[0,"&eqvparsl;"],[5,"&blacklozenge;"],[8,"&RuleDelayed;"],[1,"&dsol;"],[9,"&bigodot;"],[0,"&bigoplus;"],[0,"&bigotimes;"],[1,"&biguplus;"],[1,"&bigsqcup;"],[5,"&iiiint;"],[0,"&fpartint;"],[2,"&cirfnint;"],[0,"&awint;"],[0,"&rppolint;"],[0,"&scpolint;"],[0,"&npolint;"],[0,"&pointint;"],[0,"&quatint;"],[0,"&intlarhk;"],[10,"&pluscir;"],[0,"&plusacir;"],[0,"&simplus;"],[0,"&plusdu;"],[0,"&plussim;"],[0,"&plustwo;"],[1,"&mcomma;"],[0,"&minusdu;"],[2,"&loplus;"],[0,"&roplus;"],[0,"&Cross;"],[0,"&timesd;"],[0,"&timesbar;"],[1,"&smashp;"],[0,"&lotimes;"],[0,"&rotimes;"],[0,"&otimesas;"],[0,"&Otimes;"],[0,"&odiv;"],[0,"&triplus;"],[0,"&triminus;"],[0,"&tritime;"],[0,"&intprod;"],[2,"&amalg;"],[0,"&capdot;"],[1,"&ncup;"],[0,"&ncap;"],[0,"&capand;"],[0,"&cupor;"],[0,"&cupcap;"],[0,"&capcup;"],[0,"&cupbrcap;"],[0,"&capbrcup;"],[0,"&cupcup;"],[0,"&capcap;"],[0,"&ccups;"],[0,"&ccaps;"],[2,"&ccupssm;"],[2,"&And;"],[0,"&Or;"],[0,"&andand;"],[0,"&oror;"],[0,"&orslope;"],[0,"&andslope;"],[1,"&andv;"],[0,"&orv;"],[0,"&andd;"],[0,"&ord;"],[1,"&wedbar;"],[6,"&sdote;"],[3,"&simdot;"],[2,{v:"&congdot;",n:824,o:"&ncongdot;"}],[0,"&easter;"],[0,"&apacir;"],[0,{v:"&apE;",n:824,o:"&napE;"}],[0,"&eplus;"],[0,"&pluse;"],[0,"&Esim;"],[0,"&Colone;"],[0,"&Equal;"],[1,"&ddotseq;"],[0,"&equivDD;"],[0,"&ltcir;"],[0,"&gtcir;"],[0,"&ltquest;"],[0,"&gtquest;"],[0,{v:"&leqslant;",n:824,o:"&nleqslant;"}],[0,{v:"&geqslant;",n:824,o:"&ngeqslant;"}],[0,"&lesdot;"],[0,"&gesdot;"],[0,"&lesdoto;"],[0,"&gesdoto;"],[0,"&lesdotor;"],[0,"&gesdotol;"],[0,"&lap;"],[0,"&gap;"],[0,"&lne;"],[0,"&gne;"],[0,"&lnap;"],[0,"&gnap;"],[0,"&lEg;"],[0,"&gEl;"],[0,"&lsime;"],[0,"&gsime;"],[0,"&lsimg;"],[0,"&gsiml;"],[0,"&lgE;"],[0,"&glE;"],[0,"&lesges;"],[0,"&gesles;"],[0,"&els;"],[0,"&egs;"],[0,"&elsdot;"],[0,"&egsdot;"],[0,"&el;"],[0,"&eg;"],[2,"&siml;"],[0,"&simg;"],[0,"&simlE;"],[0,"&simgE;"],[0,{v:"&LessLess;",n:824,o:"&NotNestedLessLess;"}],[0,{v:"&GreaterGreater;",n:824,o:"&NotNestedGreaterGreater;"}],[1,"&glj;"],[0,"&gla;"],[0,"&ltcc;"],[0,"&gtcc;"],[0,"&lescc;"],[0,"&gescc;"],[0,"&smt;"],[0,"&lat;"],[0,{v:"&smte;",n:65024,o:"&smtes;"}],[0,{v:"&late;",n:65024,o:"&lates;"}],[0,"&bumpE;"],[0,{v:"&PrecedesEqual;",n:824,o:"&NotPrecedesEqual;"}],[0,{v:"&sce;",n:824,o:"&NotSucceedsEqual;"}],[2,"&prE;"],[0,"&scE;"],[0,"&precneqq;"],[0,"&scnE;"],[0,"&prap;"],[0,"&scap;"],[0,"&precnapprox;"],[0,"&scnap;"],[0,"&Pr;"],[0,"&Sc;"],[0,"&subdot;"],[0,"&supdot;"],[0,"&subplus;"],[0,"&supplus;"],[0,"&submult;"],[0,"&supmult;"],[0,"&subedot;"],[0,"&supedot;"],[0,{v:"&subE;",n:824,o:"&nsubE;"}],[0,{v:"&supE;",n:824,o:"&nsupE;"}],[0,"&subsim;"],[0,"&supsim;"],[2,{v:"&subnE;",n:65024,o:"&varsubsetneqq;"}],[0,{v:"&supnE;",n:65024,o:"&varsupsetneqq;"}],[2,"&csub;"],[0,"&csup;"],[0,"&csube;"],[0,"&csupe;"],[0,"&subsup;"],[0,"&supsub;"],[0,"&subsub;"],[0,"&supsup;"],[0,"&suphsub;"],[0,"&supdsub;"],[0,"&forkv;"],[0,"&topfork;"],[0,"&mlcp;"],[8,"&Dashv;"],[1,"&Vdashl;"],[0,"&Barv;"],[0,"&vBar;"],[0,"&vBarv;"],[1,"&Vbar;"],[0,"&Not;"],[0,"&bNot;"],[0,"&rnmid;"],[0,"&cirmid;"],[0,"&midcir;"],[0,"&topcir;"],[0,"&nhpar;"],[0,"&parsim;"],[9,{v:"&parsl;",n:8421,o:"&nparsl;"}],[44343,{n:new Map(_s([[56476,"&Ascr;"],[1,"&Cscr;"],[0,"&Dscr;"],[2,"&Gscr;"],[2,"&Jscr;"],[0,"&Kscr;"],[2,"&Nscr;"],[0,"&Oscr;"],[0,"&Pscr;"],[0,"&Qscr;"],[1,"&Sscr;"],[0,"&Tscr;"],[0,"&Uscr;"],[0,"&Vscr;"],[0,"&Wscr;"],[0,"&Xscr;"],[0,"&Yscr;"],[0,"&Zscr;"],[0,"&ascr;"],[0,"&bscr;"],[0,"&cscr;"],[0,"&dscr;"],[1,"&fscr;"],[1,"&hscr;"],[0,"&iscr;"],[0,"&jscr;"],[0,"&kscr;"],[0,"&lscr;"],[0,"&mscr;"],[0,"&nscr;"],[1,"&pscr;"],[0,"&qscr;"],[0,"&rscr;"],[0,"&sscr;"],[0,"&tscr;"],[0,"&uscr;"],[0,"&vscr;"],[0,"&wscr;"],[0,"&xscr;"],[0,"&yscr;"],[0,"&zscr;"],[52,"&Afr;"],[0,"&Bfr;"],[1,"&Dfr;"],[0,"&Efr;"],[0,"&Ffr;"],[0,"&Gfr;"],[2,"&Jfr;"],[0,"&Kfr;"],[0,"&Lfr;"],[0,"&Mfr;"],[0,"&Nfr;"],[0,"&Ofr;"],[0,"&Pfr;"],[0,"&Qfr;"],[1,"&Sfr;"],[0,"&Tfr;"],[0,"&Ufr;"],[0,"&Vfr;"],[0,"&Wfr;"],[0,"&Xfr;"],[0,"&Yfr;"],[1,"&afr;"],[0,"&bfr;"],[0,"&cfr;"],[0,"&dfr;"],[0,"&efr;"],[0,"&ffr;"],[0,"&gfr;"],[0,"&hfr;"],[0,"&ifr;"],[0,"&jfr;"],[0,"&kfr;"],[0,"&lfr;"],[0,"&mfr;"],[0,"&nfr;"],[0,"&ofr;"],[0,"&pfr;"],[0,"&qfr;"],[0,"&rfr;"],[0,"&sfr;"],[0,"&tfr;"],[0,"&ufr;"],[0,"&vfr;"],[0,"&wfr;"],[0,"&xfr;"],[0,"&yfr;"],[0,"&zfr;"],[0,"&Aopf;"],[0,"&Bopf;"],[1,"&Dopf;"],[0,"&Eopf;"],[0,"&Fopf;"],[0,"&Gopf;"],[1,"&Iopf;"],[0,"&Jopf;"],[0,"&Kopf;"],[0,"&Lopf;"],[0,"&Mopf;"],[1,"&Oopf;"],[3,"&Sopf;"],[0,"&Topf;"],[0,"&Uopf;"],[0,"&Vopf;"],[0,"&Wopf;"],[0,"&Xopf;"],[0,"&Yopf;"],[1,"&aopf;"],[0,"&bopf;"],[0,"&copf;"],[0,"&dopf;"],[0,"&eopf;"],[0,"&fopf;"],[0,"&gopf;"],[0,"&hopf;"],[0,"&iopf;"],[0,"&jopf;"],[0,"&kopf;"],[0,"&lopf;"],[0,"&mopf;"],[0,"&nopf;"],[0,"&oopf;"],[0,"&popf;"],[0,"&qopf;"],[0,"&ropf;"],[0,"&sopf;"],[0,"&topf;"],[0,"&uopf;"],[0,"&vopf;"],[0,"&wopf;"],[0,"&xopf;"],[0,"&yopf;"],[0,"&zopf;"]]))}],[8906,"&fflig;"],[0,"&filig;"],[0,"&fllig;"],[0,"&ffilig;"],[0,"&ffllig;"]]));var Xs={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.getCodePoint=t.xmlReplacer=void 0,t.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var e=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);t.getCodePoint=String.prototype.codePointAt!=null?function(a,s){return a.codePointAt(s)}:function(a,s){return(a.charCodeAt(s)&64512)===55296?(a.charCodeAt(s)-55296)*1024+a.charCodeAt(s+1)-56320+65536:a.charCodeAt(s)};function r(a){for(var s="",o=0,c;(c=t.xmlReplacer.exec(a))!==null;){var u=c.index,f=a.charCodeAt(u),l=e.get(f);l!==void 0?(s+=a.substring(o,u)+l,o=u+1):(s+="".concat(a.substring(o,u),"&#x").concat((0,t.getCodePoint)(a,u).toString(16),";"),o=t.xmlReplacer.lastIndex+=+((f&64512)===55296))}return s+a.substr(o)}t.encodeXML=r,t.escape=r;function n(a,s){return function(c){for(var u,f=0,l="";u=a.exec(c);)f!==u.index&&(l+=c.substring(f,u.index)),l+=s.get(u[0].charCodeAt(0)),f=u.index+1;return l+c.substring(f)}}t.escapeUTF8=n(/[&<>'"]/g,e),t.escapeAttribute=n(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),t.escapeText=n(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]))})(Xs);var T2=J&&J.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(dn,"__esModule",{value:!0});dn.encodeNonAsciiHTML=dn.encodeHTML=void 0;var C2=T2(Uu),m0=Xs,O2=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function $2(t){return g0(O2,t)}dn.encodeHTML=$2;function P2(t){return g0(m0.xmlReplacer,t)}dn.encodeNonAsciiHTML=P2;function g0(t,e){for(var r="",n=0,a;(a=t.exec(e))!==null;){var s=a.index;r+=e.substring(n,s);var o=e.charCodeAt(s),c=C2.default.get(o);if(typeof c=="object"){if(s+1<e.length){var u=e.charCodeAt(s+1),f=typeof c.n=="number"?c.n===u?c.o:void 0:c.n.get(u);if(f!==void 0){r+=f,n=t.lastIndex+=1;continue}}c=c.v}if(c!==void 0)r+=c,n=s+1;else{var l=(0,m0.getCodePoint)(e,s);r+="&#x".concat(l.toString(16),";"),n=t.lastIndex+=+(l!==o)}}return r+e.substr(n)}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLAttribute=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.DecodingMode=t.EntityDecoder=t.encodeHTML5=t.encodeHTML4=t.encodeNonAsciiHTML=t.encodeHTML=t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.encode=t.decodeStrict=t.decode=t.EncodingMode=t.EntityLevel=void 0;var e=Va,r=dn,n=Xs,a;(function(d){d[d.XML=0]="XML",d[d.HTML=1]="HTML"})(a=t.EntityLevel||(t.EntityLevel={}));var s;(function(d){d[d.UTF8=0]="UTF8",d[d.ASCII=1]="ASCII",d[d.Extensive=2]="Extensive",d[d.Attribute=3]="Attribute",d[d.Text=4]="Text"})(s=t.EncodingMode||(t.EncodingMode={}));function o(d,m){m===void 0&&(m=a.XML);var b=typeof m=="number"?m:m.level;if(b===a.HTML){var x=typeof m=="object"?m.mode:void 0;return(0,e.decodeHTML)(d,x)}return(0,e.decodeXML)(d)}t.decode=o;function c(d,m){var b;m===void 0&&(m=a.XML);var x=typeof m=="number"?{level:m}:m;return(b=x.mode)!==null&&b!==void 0||(x.mode=e.DecodingMode.Strict),o(d,x)}t.decodeStrict=c;function u(d,m){m===void 0&&(m=a.XML);var b=typeof m=="number"?{level:m}:m;return b.mode===s.UTF8?(0,n.escapeUTF8)(d):b.mode===s.Attribute?(0,n.escapeAttribute)(d):b.mode===s.Text?(0,n.escapeText)(d):b.level===a.HTML?b.mode===s.ASCII?(0,r.encodeNonAsciiHTML)(d):(0,r.encodeHTML)(d):(0,n.encodeXML)(d)}t.encode=u;var f=Xs;Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return f.encodeXML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return f.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return f.escapeUTF8}}),Object.defineProperty(t,"escapeAttribute",{enumerable:!0,get:function(){return f.escapeAttribute}}),Object.defineProperty(t,"escapeText",{enumerable:!0,get:function(){return f.escapeText}});var l=dn;Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return l.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return l.encodeNonAsciiHTML}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return l.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return l.encodeHTML}});var h=Va;Object.defineProperty(t,"EntityDecoder",{enumerable:!0,get:function(){return h.EntityDecoder}}),Object.defineProperty(t,"DecodingMode",{enumerable:!0,get:function(){return h.DecodingMode}}),Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return h.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTMLAttribute",{enumerable:!0,get:function(){return h.decodeHTMLAttribute}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return h.decodeXML}})})(p0);var Gn={};Object.defineProperty(Gn,"__esModule",{value:!0});Gn.attributeNames=Gn.elementNames=void 0;Gn.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(function(t){return[t.toLowerCase(),t]}));Gn.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(function(t){return[t.toLowerCase(),t]}));var Fn=J&&J.__assign||function(){return Fn=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},Fn.apply(this,arguments)},L2=J&&J.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var a=Object.getOwnPropertyDescriptor(e,r);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,a)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),M2=J&&J.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),I2=J&&J.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&L2(e,t,r);return M2(e,t),e};Object.defineProperty(rs,"__esModule",{value:!0});rs.render=void 0;var ur=I2(ua),Ks=p0,b0=Gn,F2=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function R2(t){return t.replace(/"/g,"&quot;")}function B2(t,e){var r;if(t){var n=((r=e.encodeEntities)!==null&&r!==void 0?r:e.decodeEntities)===!1?R2:e.xmlMode||e.encodeEntities!=="utf8"?Ks.encodeXML:Ks.escapeAttribute;return Object.keys(t).map(function(a){var s,o,c=(s=t[a])!==null&&s!==void 0?s:"";return e.xmlMode==="foreign"&&(a=(o=b0.attributeNames.get(a))!==null&&o!==void 0?o:a),!e.emptyAttrs&&!e.xmlMode&&c===""?a:"".concat(a,'="').concat(n(c),'"')}).join(" ")}}var ic=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function ro(t,e){e===void 0&&(e={});for(var r=("length"in t)?t:[t],n="",a=0;a<r.length;a++)n+=V2(r[a],e);return n}rs.render=ro;rs.default=ro;function V2(t,e){switch(t.type){case ur.Root:return ro(t.children,e);case ur.Doctype:case ur.Directive:return H2(t);case ur.Comment:return J2(t);case ur.CDATA:return G2(t);case ur.Script:case ur.Style:case ur.Tag:return z2(t,e);case ur.Text:return W2(t,e)}}var q2=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),U2=new Set(["svg","math"]);function z2(t,e){var r;e.xmlMode==="foreign"&&(t.name=(r=b0.elementNames.get(t.name))!==null&&r!==void 0?r:t.name,t.parent&&q2.has(t.parent.name)&&(e=Fn(Fn({},e),{xmlMode:!1}))),!e.xmlMode&&U2.has(t.name)&&(e=Fn(Fn({},e),{xmlMode:"foreign"}));var n="<".concat(t.name),a=B2(t.attribs,e);return a&&(n+=" ".concat(a)),t.children.length===0&&(e.xmlMode?e.selfClosingTags!==!1:e.selfClosingTags&&ic.has(t.name))?(e.xmlMode||(n+=" "),n+="/>"):(n+=">",t.children.length>0&&(n+=ro(t.children,e)),(e.xmlMode||!ic.has(t.name))&&(n+="</".concat(t.name,">"))),n}function H2(t){return"<".concat(t.data,">")}function W2(t,e){var r,n=t.data||"";return((r=e.encodeEntities)!==null&&r!==void 0?r:e.decodeEntities)!==!1&&!(!e.xmlMode&&t.parent&&F2.has(t.parent.name))&&(n=e.xmlMode||e.encodeEntities!=="utf8"?(0,Ks.encodeXML)(n):(0,Ks.escapeText)(n)),n}function G2(t){return"<![CDATA[".concat(t.children[0].data,"]]>")}function J2(t){return"<!--".concat(t.data,"-->")}var Y2=J&&J.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(qr,"__esModule",{value:!0});qr.getOuterHTML=x0;qr.getInnerHTML=K2;qr.getText=Ps;qr.textContent=Fo;qr.innerText=Ro;var tr=mr,Z2=Y2(rs),X2=ua;function x0(t,e){return(0,Z2.default)(t,e)}function K2(t,e){return(0,tr.hasChildren)(t)?t.children.map(function(r){return x0(r,e)}).join(""):""}function Ps(t){return Array.isArray(t)?t.map(Ps).join(""):(0,tr.isTag)(t)?t.name==="br"?`
1056
+ `:Ps(t.children):(0,tr.isCDATA)(t)?Ps(t.children):(0,tr.isText)(t)?t.data:""}function Fo(t){return Array.isArray(t)?t.map(Fo).join(""):(0,tr.hasChildren)(t)&&!(0,tr.isComment)(t)?Fo(t.children):(0,tr.isText)(t)?t.data:""}function Ro(t){return Array.isArray(t)?t.map(Ro).join(""):(0,tr.hasChildren)(t)&&(t.type===X2.ElementType.Tag||(0,tr.isCDATA)(t))?Ro(t.children):(0,tr.isText)(t)?t.data:""}var nr={};Object.defineProperty(nr,"__esModule",{value:!0});nr.getChildren=y0;nr.getParent=v0;nr.getSiblings=Q2;nr.getAttributeValue=e1;nr.hasAttrib=t1;nr.getName=r1;nr.nextElementSibling=n1;nr.prevElementSibling=a1;var zu=mr;function y0(t){return(0,zu.hasChildren)(t)?t.children:[]}function v0(t){return t.parent||null}function Q2(t){var e,r,n=v0(t);if(n!=null)return y0(n);for(var a=[t],s=t.prev,o=t.next;s!=null;)a.unshift(s),e=s,s=e.prev;for(;o!=null;)a.push(o),r=o,o=r.next;return a}function e1(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function t1(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function r1(t){return t.name}function n1(t){for(var e,r=t.next;r!==null&&!(0,zu.isTag)(r);)e=r,r=e.next;return r}function a1(t){for(var e,r=t.prev;r!==null&&!(0,zu.isTag)(r);)e=r,r=e.prev;return r}var Ur={};Object.defineProperty(Ur,"__esModule",{value:!0});Ur.removeElement=ns;Ur.replaceElement=s1;Ur.appendChild=i1;Ur.append=o1;Ur.prependChild=u1;Ur.prepend=l1;function ns(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){var e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function s1(t,e){var r=e.prev=t.prev;r&&(r.next=e);var n=e.next=t.next;n&&(n.prev=e);var a=e.parent=t.parent;if(a){var s=a.children;s[s.lastIndexOf(t)]=e,t.parent=null}}function i1(t,e){if(ns(e),e.next=null,e.parent=t,t.children.push(e)>1){var r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function o1(t,e){ns(e);var r=t.parent,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){var a=r.children;a.splice(a.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function u1(t,e){if(ns(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){var r=t.children[1];r.prev=e,e.next=r}else e.next=null}function l1(t,e){ns(e);var r=t.parent;if(r){var n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}var vr={};Object.defineProperty(vr,"__esModule",{value:!0});vr.filter=c1;vr.find=w0;vr.findOneChild=d1;vr.findOne=_0;vr.existsOne=E0;vr.findAll=f1;var fn=mr;function c1(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),w0(t,Array.isArray(e)?e:[e],r,n)}function w0(t,e,r,n){for(var a=[],s=[Array.isArray(e)?e:[e]],o=[0];;){if(o[0]>=s[0].length){if(o.length===1)return a;s.shift(),o.shift();continue}var c=s[0][o[0]++];if(t(c)&&(a.push(c),--n<=0))return a;r&&(0,fn.hasChildren)(c)&&c.children.length>0&&(o.unshift(0),s.unshift(c.children))}}function d1(t,e){return e.find(t)}function _0(t,e,r){r===void 0&&(r=!0);for(var n=Array.isArray(e)?e:[e],a=0;a<n.length;a++){var s=n[a];if((0,fn.isTag)(s)&&t(s))return s;if(r&&(0,fn.hasChildren)(s)&&s.children.length>0){var o=_0(t,s.children,!0);if(o)return o}}return null}function E0(t,e){return(Array.isArray(e)?e:[e]).some(function(r){return(0,fn.isTag)(r)&&t(r)||(0,fn.hasChildren)(r)&&E0(t,r.children)})}function f1(t,e){for(var r=[],n=[Array.isArray(e)?e:[e]],a=[0];;){if(a[0]>=n[0].length){if(n.length===1)return r;n.shift(),a.shift();continue}var s=n[0][a[0]++];(0,fn.isTag)(s)&&t(s)&&r.push(s),(0,fn.hasChildren)(s)&&s.children.length>0&&(a.unshift(0),n.unshift(s.children))}}var wr={};Object.defineProperty(wr,"__esModule",{value:!0});wr.testElement=p1;wr.getElements=m1;wr.getElementById=g1;wr.getElementsByTagName=b1;wr.getElementsByClassName=x1;wr.getElementsByTagType=y1;var an=mr,as=vr,Qs={tag_name:function(t){return typeof t=="function"?function(e){return(0,an.isTag)(e)&&t(e.name)}:t==="*"?an.isTag:function(e){return(0,an.isTag)(e)&&e.name===t}},tag_type:function(t){return typeof t=="function"?function(e){return t(e.type)}:function(e){return e.type===t}},tag_contains:function(t){return typeof t=="function"?function(e){return(0,an.isText)(e)&&t(e.data)}:function(e){return(0,an.isText)(e)&&e.data===t}}};function Hu(t,e){return typeof e=="function"?function(r){return(0,an.isTag)(r)&&e(r.attribs[t])}:function(r){return(0,an.isTag)(r)&&r.attribs[t]===e}}function h1(t,e){return function(r){return t(r)||e(r)}}function N0(t){var e=Object.keys(t).map(function(r){var n=t[r];return Object.prototype.hasOwnProperty.call(Qs,r)?Qs[r](n):Hu(r,n)});return e.length===0?null:e.reduce(h1)}function p1(t,e){var r=N0(t);return r?r(e):!0}function m1(t,e,r,n){n===void 0&&(n=1/0);var a=N0(t);return a?(0,as.filter)(a,e,r,n):[]}function g1(t,e,r){return r===void 0&&(r=!0),Array.isArray(e)||(e=[e]),(0,as.findOne)(Hu("id",t),e,r)}function b1(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,as.filter)(Qs.tag_name(t),e,r,n)}function x1(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,as.filter)(Hu("class",t),e,r,n)}function y1(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,as.filter)(Qs.tag_type(t),e,r,n)}var bn={};Object.defineProperty(bn,"__esModule",{value:!0});bn.DocumentPosition=void 0;bn.removeSubsets=v1;bn.compareDocumentPosition=A0;bn.uniqueSort=w1;var oc=mr;function v1(t){for(var e=t.length;--e>=0;){var r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(var n=r.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}var Vt;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(Vt||(bn.DocumentPosition=Vt={}));function A0(t,e){var r=[],n=[];if(t===e)return 0;for(var a=(0,oc.hasChildren)(t)?t:t.parent;a;)r.unshift(a),a=a.parent;for(a=(0,oc.hasChildren)(e)?e:e.parent;a;)n.unshift(a),a=a.parent;for(var s=Math.min(r.length,n.length),o=0;o<s&&r[o]===n[o];)o++;if(o===0)return Vt.DISCONNECTED;var c=r[o-1],u=c.children,f=r[o],l=n[o];return u.indexOf(f)>u.indexOf(l)?c===e?Vt.FOLLOWING|Vt.CONTAINED_BY:Vt.FOLLOWING:c===t?Vt.PRECEDING|Vt.CONTAINS:Vt.PRECEDING}function w1(t){return t=t.filter(function(e,r,n){return!n.includes(e,r+1)}),t.sort(function(e,r){var n=A0(e,r);return n&Vt.PRECEDING?-1:n&Vt.FOLLOWING?1:0}),t}var Wu={};Object.defineProperty(Wu,"__esModule",{value:!0});Wu.getFeed=E1;var _1=qr,ss=wr;function E1(t){var e=ei(S1,t);return e?e.name==="feed"?N1(e):A1(e):null}function N1(t){var e,r=t.children,n={type:"atom",items:(0,ss.getElementsByTagName)("entry",r).map(function(o){var c,u=o.children,f={media:k0(u)};ht(f,"id","id",u),ht(f,"title","title",u);var l=(c=ei("link",u))===null||c===void 0?void 0:c.attribs.href;l&&(f.link=l);var h=Ir("summary",u)||Ir("content",u);h&&(f.description=h);var d=Ir("updated",u);return d&&(f.pubDate=new Date(d)),f})};ht(n,"id","id",r),ht(n,"title","title",r);var a=(e=ei("link",r))===null||e===void 0?void 0:e.attribs.href;a&&(n.link=a),ht(n,"description","subtitle",r);var s=Ir("updated",r);return s&&(n.updated=new Date(s)),ht(n,"author","email",r,!0),n}function A1(t){var e,r,n=(r=(e=ei("channel",t.children))===null||e===void 0?void 0:e.children)!==null&&r!==void 0?r:[],a={type:t.name.substr(0,3),id:"",items:(0,ss.getElementsByTagName)("item",t.children).map(function(o){var c=o.children,u={media:k0(c)};ht(u,"id","guid",c),ht(u,"title","title",c),ht(u,"link","link",c),ht(u,"description","description",c);var f=Ir("pubDate",c)||Ir("dc:date",c);return f&&(u.pubDate=new Date(f)),u})};ht(a,"title","title",n),ht(a,"link","link",n),ht(a,"description","description",n);var s=Ir("lastBuildDate",n);return s&&(a.updated=new Date(s)),ht(a,"author","managingEditor",n,!0),a}var k1=["url","type","lang"],j1=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function k0(t){return(0,ss.getElementsByTagName)("media:content",t).map(function(e){for(var r=e.attribs,n={medium:r.medium,isDefault:!!r.isDefault},a=0,s=k1;a<s.length;a++){var o=s[a];r[o]&&(n[o]=r[o])}for(var c=0,u=j1;c<u.length;c++){var o=u[c];r[o]&&(n[o]=parseInt(r[o],10))}return r.expression&&(n.expression=r.expression),n})}function ei(t,e){return(0,ss.getElementsByTagName)(t,e,!0,1)[0]}function Ir(t,e,r){return r===void 0&&(r=!1),(0,_1.textContent)((0,ss.getElementsByTagName)(t,e,r,1)).trim()}function ht(t,e,r,n,a){a===void 0&&(a=!1);var s=Ir(r,n,a);s&&(t[e]=s)}function S1(t){return t==="rss"||t==="feed"||t==="rdf:RDF"}(function(t){var e=J&&J.__createBinding||(Object.create?function(a,s,o,c){c===void 0&&(c=o);var u=Object.getOwnPropertyDescriptor(s,o);(!u||("get"in u?!s.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return s[o]}}),Object.defineProperty(a,c,u)}:function(a,s,o,c){c===void 0&&(c=o),a[c]=s[o]}),r=J&&J.__exportStar||function(a,s){for(var o in a)o!=="default"&&!Object.prototype.hasOwnProperty.call(s,o)&&e(s,a,o)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,r(qr,t),r(nr,t),r(Ur,t),r(vr,t),r(wr,t),r(bn,t),r(Wu,t);var n=mr;Object.defineProperty(t,"isTag",{enumerable:!0,get:function(){return n.isTag}}),Object.defineProperty(t,"isCDATA",{enumerable:!0,get:function(){return n.isCDATA}}),Object.defineProperty(t,"isText",{enumerable:!0,get:function(){return n.isText}}),Object.defineProperty(t,"isComment",{enumerable:!0,get:function(){return n.isComment}}),Object.defineProperty(t,"isDocument",{enumerable:!0,get:function(){return n.isDocument}}),Object.defineProperty(t,"hasChildren",{enumerable:!0,get:function(){return n.hasChildren}})})($s);(function(t){var e=J&&J.__createBinding||(Object.create?function(g,E,D,w){w===void 0&&(w=D);var j=Object.getOwnPropertyDescriptor(E,D);(!j||("get"in j?!E.__esModule:j.writable||j.configurable))&&(j={enumerable:!0,get:function(){return E[D]}}),Object.defineProperty(g,w,j)}:function(g,E,D,w){w===void 0&&(w=D),g[w]=E[D]}),r=J&&J.__setModuleDefault||(Object.create?function(g,E){Object.defineProperty(g,"default",{enumerable:!0,value:E})}:function(g,E){g.default=E}),n=J&&J.__importStar||function(g){if(g&&g.__esModule)return g;var E={};if(g!=null)for(var D in g)D!=="default"&&Object.prototype.hasOwnProperty.call(g,D)&&e(E,g,D);return r(E,g),E},a=J&&J.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomUtils=t.parseFeed=t.getFeed=t.ElementType=t.Tokenizer=t.createDomStream=t.parseDOM=t.parseDocument=t.DefaultHandler=t.DomHandler=t.Parser=void 0;var s=Ba,o=Ba;Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return o.Parser}});var c=mr,u=mr;Object.defineProperty(t,"DomHandler",{enumerable:!0,get:function(){return u.DomHandler}}),Object.defineProperty(t,"DefaultHandler",{enumerable:!0,get:function(){return u.DomHandler}});function f(g,E){var D=new c.DomHandler(void 0,E);return new s.Parser(D,E).end(g),D.root}t.parseDocument=f;function l(g,E){return f(g,E).children}t.parseDOM=l;function h(g,E,D){var w=new c.DomHandler(g,E,D);return new s.Parser(w,E)}t.createDomStream=h;var d=Fu;Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return a(d).default}}),t.ElementType=n(ua);var m=$s,b=$s;Object.defineProperty(t,"getFeed",{enumerable:!0,get:function(){return b.getFeed}});var x={xmlMode:!0};function y(g,E){return E===void 0&&(E=x),(0,m.getFeed)(l(g,E))}t.parseFeed=y,t.DomUtils=n($s)})(t0);var D1=t=>{if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},Gu={};Object.defineProperty(Gu,"__esModule",{value:!0});/*!
1049
1057
  * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
1050
1058
  *
1051
1059
  * Copyright (c) 2014-2017, Jon Schlinkert.
1052
1060
  * Released under the MIT License.
1053
1061
  */function uc(t){return Object.prototype.toString.call(t)==="[object Object]"}function T1(t){var e,r;return uc(t)===!1?!1:(e=t.constructor,e===void 0?!0:(r=e.prototype,!(uc(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}Gu.isPlainObject=T1;var j0={exports:{}};(function(t){(function(e,r){t.exports?t.exports=r():e.parseSrcset=r()})(J,function(){return function(e){function r(w){return w===" "||w===" "||w===`
1054
- `||w==="\f"||w==="\r"}function n(w){var k,p=w.exec(e.substring(y));if(p)return k=p[0],y+=k.length,k}for(var a=e.length,s=/^[ \t\n\r\u000c]+/,o=/^[, \t\n\r\u000c]+/,c=/^[^ \t\n\r\u000c]+/,u=/[,]+$/,f=/^\d+$/,l=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,h,d,m,b,x,y=0,g=[];;){if(n(o),y>=a)return g;h=n(c),d=[],h.slice(-1)===","?(h=h.replace(u,""),S()):E()}function E(){for(n(s),m="",b="in descriptor";;){if(x=e.charAt(y),b==="in descriptor")if(r(x))m&&(d.push(m),m="",b="after descriptor");else if(x===","){y+=1,m&&d.push(m),S();return}else if(x==="(")m=m+x,b="in parens";else if(x===""){m&&d.push(m),S();return}else m=m+x;else if(b==="in parens")if(x===")")m=m+x,b="in descriptor";else if(x===""){d.push(m),S();return}else m=m+x;else if(b==="after descriptor"&&!r(x))if(x===""){S();return}else b="in descriptor",y-=1;y+=1}}function S(){var w=!1,k,p,N,A,V={},z,j,L,I,H;for(A=0;A<d.length;A++)z=d[A],j=z[z.length-1],L=z.substring(0,z.length-1),I=parseInt(L,10),H=parseFloat(L),f.test(L)&&j==="w"?((k||p)&&(w=!0),I===0?w=!0:k=I):l.test(L)&&j==="x"?((k||p||N)&&(w=!0),H<0?w=!0:p=H):f.test(L)&&j==="h"?((N||p)&&(w=!0),I===0?w=!0:N=I):w=!0;w?console&&console.log&&console.log("Invalid srcset descriptor found in '"+e+"' at '"+z+"'."):(V.url=h,k&&(V.w=k),p&&(V.d=p),N&&(V.h=N),g.push(V))}}})})(j0);var C1=j0.exports,Ju={exports:{}},se=String,S0=function(){return{isColorSupported:!1,reset:se,bold:se,dim:se,italic:se,underline:se,inverse:se,hidden:se,strikethrough:se,black:se,red:se,green:se,yellow:se,blue:se,magenta:se,cyan:se,white:se,gray:se,bgBlack:se,bgRed:se,bgGreen:se,bgYellow:se,bgBlue:se,bgMagenta:se,bgCyan:se,bgWhite:se,blackBright:se,redBright:se,greenBright:se,yellowBright:se,blueBright:se,magentaBright:se,cyanBright:se,whiteBright:se,bgBlackBright:se,bgRedBright:se,bgGreenBright:se,bgYellowBright:se,bgBlueBright:se,bgMagentaBright:se,bgCyanBright:se,bgWhiteBright:se}};Ju.exports=S0();Ju.exports.createColors=S0;var O1=Ju.exports;let lc=O1,cc=Ke,Bo=class D0 extends Error{constructor(e,r,n,a,s,o){super(e),this.name="CssSyntaxError",this.reason=e,s&&(this.file=s),a&&(this.source=a),o&&(this.plugin=o),typeof r<"u"&&typeof n<"u"&&(typeof r=="number"?(this.line=r,this.column=n):(this.line=r.line,this.column=r.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,D0)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let r=this.source;e==null&&(e=lc.isColorSupported);let n=l=>l,a=l=>l,s=l=>l;if(e){let{bold:l,gray:h,red:d}=lc.createColors(!0);a=m=>l(d(m)),n=m=>h(m),cc&&(s=m=>cc(m))}let o=r.split(/\r?\n/),c=Math.max(this.line-3,0),u=Math.min(this.line+2,o.length),f=String(u).length;return o.slice(c,u).map((l,h)=>{let d=c+1+h,m=" "+(" "+d).slice(-f)+" | ";if(d===this.line){if(l.length>160){let x=20,y=Math.max(0,this.column-x),g=Math.max(this.column+x,this.endColumn+x),E=l.slice(y,g),S=n(m.replace(/\d/g," "))+l.slice(0,Math.min(this.column-1,x-1)).replace(/[^\t]/g," ");return a(">")+n(m)+s(E)+`
1055
- `+S+a("^")}let b=n(m.replace(/\d/g," "))+l.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+n(m)+s(l)+`
1062
+ `||w==="\f"||w==="\r"}function n(w){var j,p=w.exec(e.substring(y));if(p)return j=p[0],y+=j.length,j}for(var a=e.length,s=/^[ \t\n\r\u000c]+/,o=/^[, \t\n\r\u000c]+/,c=/^[^ \t\n\r\u000c]+/,u=/[,]+$/,f=/^\d+$/,l=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,h,d,m,b,x,y=0,g=[];;){if(n(o),y>=a)return g;h=n(c),d=[],h.slice(-1)===","?(h=h.replace(u,""),D()):E()}function E(){for(n(s),m="",b="in descriptor";;){if(x=e.charAt(y),b==="in descriptor")if(r(x))m&&(d.push(m),m="",b="after descriptor");else if(x===","){y+=1,m&&d.push(m),D();return}else if(x==="(")m=m+x,b="in parens";else if(x===""){m&&d.push(m),D();return}else m=m+x;else if(b==="in parens")if(x===")")m=m+x,b="in descriptor";else if(x===""){d.push(m),D();return}else m=m+x;else if(b==="after descriptor"&&!r(x))if(x===""){D();return}else b="in descriptor",y-=1;y+=1}}function D(){var w=!1,j,p,A,k,V={},H,S,P,I,W;for(k=0;k<d.length;k++)H=d[k],S=H[H.length-1],P=H.substring(0,H.length-1),I=parseInt(P,10),W=parseFloat(P),f.test(P)&&S==="w"?((j||p)&&(w=!0),I===0?w=!0:j=I):l.test(P)&&S==="x"?((j||p||A)&&(w=!0),W<0?w=!0:p=W):f.test(P)&&S==="h"?((A||p)&&(w=!0),I===0?w=!0:A=I):w=!0;w?console&&console.log&&console.log("Invalid srcset descriptor found in '"+e+"' at '"+H+"'."):(V.url=h,j&&(V.w=j),p&&(V.d=p),A&&(V.h=A),g.push(V))}}})})(j0);var C1=j0.exports,Ju={exports:{}},de=String,S0=function(){return{isColorSupported:!1,reset:de,bold:de,dim:de,italic:de,underline:de,inverse:de,hidden:de,strikethrough:de,black:de,red:de,green:de,yellow:de,blue:de,magenta:de,cyan:de,white:de,gray:de,bgBlack:de,bgRed:de,bgGreen:de,bgYellow:de,bgBlue:de,bgMagenta:de,bgCyan:de,bgWhite:de,blackBright:de,redBright:de,greenBright:de,yellowBright:de,blueBright:de,magentaBright:de,cyanBright:de,whiteBright:de,bgBlackBright:de,bgRedBright:de,bgGreenBright:de,bgYellowBright:de,bgBlueBright:de,bgMagentaBright:de,bgCyanBright:de,bgWhiteBright:de}};Ju.exports=S0();Ju.exports.createColors=S0;var O1=Ju.exports;let lc=O1,cc=gt,Bo=class D0 extends Error{constructor(e,r,n,a,s,o){super(e),this.name="CssSyntaxError",this.reason=e,s&&(this.file=s),a&&(this.source=a),o&&(this.plugin=o),typeof r<"u"&&typeof n<"u"&&(typeof r=="number"?(this.line=r,this.column=n):(this.line=r.line,this.column=r.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,D0)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let r=this.source;e==null&&(e=lc.isColorSupported);let n=l=>l,a=l=>l,s=l=>l;if(e){let{bold:l,gray:h,red:d}=lc.createColors(!0);a=m=>l(d(m)),n=m=>h(m),cc&&(s=m=>cc(m))}let o=r.split(/\r?\n/),c=Math.max(this.line-3,0),u=Math.min(this.line+2,o.length),f=String(u).length;return o.slice(c,u).map((l,h)=>{let d=c+1+h,m=" "+(" "+d).slice(-f)+" | ";if(d===this.line){if(l.length>160){let x=20,y=Math.max(0,this.column-x),g=Math.max(this.column+x,this.endColumn+x),E=l.slice(y,g),D=n(m.replace(/\d/g," "))+l.slice(0,Math.min(this.column-1,x-1)).replace(/[^\t]/g," ");return a(">")+n(m)+s(E)+`
1063
+ `+D+a("^")}let b=n(m.replace(/\d/g," "))+l.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+n(m)+s(l)+`
1056
1064
  `+b+a("^")}return" "+n(m)+s(l)}).join(`
1057
1065
  `)}toString(){let e=this.showSourceCode();return e&&(e=`
1058
1066
 
@@ -1068,38 +1076,38 @@ zenieix
1068
1076
  `)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(r,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,r){let n;return e.walkDecls(a=>{if(typeof a.raws.before<"u")return n=a.raws.before,n.includes(`
1069
1077
  `)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(r,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let r;return e.walk(n=>{if(n.type!=="decl"&&(r=n.raws.between,typeof r<"u"))return!1}),r}rawBeforeRule(e){let r;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&typeof n.raws.before<"u")return r=n.raws.before,r.includes(`
1070
1078
  `)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawColon(e){let r;return e.walkDecls(n=>{if(typeof n.raws.between<"u")return r=n.raws.between.replace(/[^\s:]/g,""),!1}),r}rawEmptyBody(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length===0&&(r=n.raws.after,typeof r<"u"))return!1}),r}rawIndent(e){if(e.raws.indent)return e.raws.indent;let r;return e.walk(n=>{let a=n.parent;if(a&&a!==e&&a.parent&&a.parent===e&&typeof n.raws.before<"u"){let s=n.raws.before.split(`
1071
- `);return r=s[s.length-1],r=r.replace(/\S/g,""),!1}}),r}rawSemicolon(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(r=n.raws.semicolon,typeof r<"u"))return!1}),r}rawValue(e,r){let n=e[r],a=e.raws[r];return a&&a.value===n?a.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)}};var T0=Vo;Vo.default=Vo;let P1=T0;function qo(t,e){new P1(e).stringify(t)}var Yi=qo;qo.default=qo;var Ia={};Ia.isClean=Symbol("isClean");Ia.my=Symbol("my");let L1=Yu,M1=T0,I1=Yi,{isClean:ra,my:F1}=Ia;function Uo(t,e){let r=new t.constructor;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n)||n==="proxyCache")continue;let a=t[n],s=typeof a;n==="parent"&&s==="object"?e&&(r[n]=e):n==="source"?r[n]=a:Array.isArray(a)?r[n]=a.map(o=>Uo(o,r)):(s==="object"&&a!==null&&(a=Uo(a)),r[n]=a)}return r}function Vt(t,e){if(e&&typeof e.offset<"u")return e.offset;let r=1,n=1,a=0;for(let s=0;s<t.length;s++){if(n===e.line&&r===e.column){a=s;break}t[s]===`
1072
- `?(r=1,n+=1):r+=1}return a}let zo=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[ra]=!1,this[F1]=!0;for(let r in e)if(r==="nodes"){this.nodes=[];for(let n of e[r])typeof n.clone=="function"?this.append(n.clone()):this.append(n)}else this[r]=e[r]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${r.input.from}:${r.start.line}:${r.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let r in e)this[r]=e[r];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let r=Uo(this);for(let n in e)r[n]=e[n];return r}cloneAfter(e={}){let r=this.clone(e);return this.parent.insertAfter(this,r),r}cloneBefore(e={}){let r=this.clone(e);return this.parent.insertBefore(this,r),r}error(e,r={}){if(this.source){let{end:n,start:a}=this.rangeBy(r);return this.source.input.error(e,{column:a.column,line:a.line},{column:n.column,line:n.line},r)}return new L1(e)}getProxyProcessor(){return{get(e,r){return r==="proxyOf"?e:r==="root"?()=>e.root().toProxy():e[r]},set(e,r,n){return e[r]===n||(e[r]=n,(r==="prop"||r==="value"||r==="name"||r==="params"||r==="important"||r==="text")&&e.markDirty()),!0}}}markClean(){this[ra]=!0}markDirty(){if(this[ra]){this[ra]=!1;let e=this;for(;e=e.parent;)e[ra]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let r=this.source.start;if(e.index)r=this.positionInside(e.index);else if(e.word){let n="document"in this.source.input?this.source.input.document:this.source.input.css,s=n.slice(Vt(n,this.source.start),Vt(n,this.source.end)).indexOf(e.word);s!==-1&&(r=this.positionInside(s))}return r}positionInside(e){let r=this.source.start.column,n=this.source.start.line,a="document"in this.source.input?this.source.input.document:this.source.input.css,s=Vt(a,this.source.start),o=s+e;for(let c=s;c<o;c++)a[c]===`
1073
- `?(r=1,n+=1):r+=1;return{column:r,line:n,offset:o}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let r="document"in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:Vt(r,this.source.start)},a=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:Vt(r,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(e.word){let o=r.slice(Vt(r,this.source.start),Vt(r,this.source.end)).indexOf(e.word);o!==-1&&(n=this.positionInside(o),a=this.positionInside(o+e.word.length))}else e.start?n={column:e.start.column,line:e.start.line,offset:Vt(r,e.start)}:e.index&&(n=this.positionInside(e.index)),e.end?a={column:e.end.column,line:e.end.line,offset:Vt(r,e.end)}:typeof e.endIndex=="number"?a=this.positionInside(e.endIndex):e.index&&(a=this.positionInside(e.index+1));return(a.line<n.line||a.line===n.line&&a.column<=n.column)&&(a={column:n.column+1,line:n.line,offset:n.offset+1}),{end:a,start:n}}raw(e,r){return new M1().raw(this,e,r)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let r=this,n=!1;for(let a of e)a===this?n=!0:n?(this.parent.insertAfter(r,a),r=a):this.parent.insertBefore(r,a);n||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,r){let n={},a=r==null;r=r||new Map;let s=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let c=this[o];if(Array.isArray(c))n[o]=c.map(u=>typeof u=="object"&&u.toJSON?u.toJSON(null,r):u);else if(typeof c=="object"&&c.toJSON)n[o]=c.toJSON(null,r);else if(o==="source"){if(c==null)continue;let u=r.get(c.input);u==null&&(u=s,r.set(c.input,s),s++),n[o]={end:c.end,inputId:u,start:c.start}}else n[o]=c}return a&&(n.inputs=[...r.keys()].map(o=>o.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=I1){e.stringify&&(e=e.stringify);let r="";return e(this,n=>{r+=n}),r}warn(e,r,n={}){let a={node:this};for(let s in n)a[s]=n[s];return e.warn(r,a)}};var Zi=zo;zo.default=zo;let R1=Zi,Ho=class extends R1{constructor(e){super(e),this.type="comment"}};var Xi=Ho;Ho.default=Ho;let B1=Zi,Wo=class extends B1{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}};var Ki=Wo;Wo.default=Wo;let C0=Xi,O0=Ki,V1=Zi,{isClean:$0,my:P0}=Ia,Zu,L0,M0,Xu;function I0(t){return t.map(e=>(e.nodes&&(e.nodes=I0(e.nodes)),delete e.source,e))}function F0(t){if(t[$0]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)F0(e)}let Jt=class R0 extends V1{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let r of e){let n=this.normalize(r,this.last);for(let a of n)this.proxyOf.nodes.push(a)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let r of this.nodes)r.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let r=this.getIterator(),n,a;for(;this.indexes[r]<this.proxyOf.nodes.length&&(n=this.indexes[r],a=e(this.proxyOf.nodes[n],n),a!==!1);)this.indexes[r]+=1;return delete this.indexes[r],a}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,r){return r==="proxyOf"?e:e[r]?r==="each"||typeof r=="string"&&r.startsWith("walk")?(...n)=>e[r](...n.map(a=>typeof a=="function"?(s,o)=>a(s.toProxy(),o):a)):r==="every"||r==="some"?n=>e[r]((a,...s)=>n(a.toProxy(),...s)):r==="root"?()=>e.root().toProxy():r==="nodes"?e.nodes.map(n=>n.toProxy()):r==="first"||r==="last"?e[r].toProxy():e[r]:e[r]},set(e,r,n){return e[r]===n||(e[r]=n,(r==="name"||r==="params"||r==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,r){let n=this.index(e),a=this.normalize(r,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let o of a)this.proxyOf.nodes.splice(n+1,0,o);let s;for(let o in this.indexes)s=this.indexes[o],n<s&&(this.indexes[o]=s+a.length);return this.markDirty(),this}insertBefore(e,r){let n=this.index(e),a=n===0?"prepend":!1,s=this.normalize(r,this.proxyOf.nodes[n],a).reverse();n=this.index(e);for(let c of s)this.proxyOf.nodes.splice(n,0,c);let o;for(let c in this.indexes)o=this.indexes[c],n<=o&&(this.indexes[c]=o+s.length);return this.markDirty(),this}normalize(e,r){if(typeof e=="string")e=I0(L0(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let a of e)a.parent&&a.parent.removeChild(a,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let a of e)a.parent&&a.parent.removeChild(a,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new O0(e)]}else if(e.selector||e.selectors)e=[new Xu(e)];else if(e.name)e=[new Zu(e)];else if(e.text)e=[new C0(e)];else throw new Error("Unknown node type in node creation");return e.map(a=>(a[P0]||R0.rebuild(a),a=a.proxyOf,a.parent&&a.parent.removeChild(a),a[$0]&&F0(a),a.raws||(a.raws={}),typeof a.raws.before>"u"&&r&&typeof r.raws.before<"u"&&(a.raws.before=r.raws.before.replace(/\S/g,"")),a.parent=this.proxyOf,a))}prepend(...e){e=e.reverse();for(let r of e){let n=this.normalize(r,this.first,"prepend").reverse();for(let a of n)this.proxyOf.nodes.unshift(a);for(let a in this.indexes)this.indexes[a]=this.indexes[a]+n.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let r;for(let n in this.indexes)r=this.indexes[n],r>=e&&(this.indexes[n]=r-1);return this.markDirty(),this}replaceValues(e,r,n){return n||(n=r,r={}),this.walkDecls(a=>{r.props&&!r.props.includes(a.prop)||r.fast&&!a.value.includes(r.fast)||(a.value=a.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((r,n)=>{let a;try{a=e(r,n)}catch(s){throw r.addToError(s)}return a!==!1&&r.walk&&(a=r.walk(e)),a})}walkAtRules(e,r){return r?e instanceof RegExp?this.walk((n,a)=>{if(n.type==="atrule"&&e.test(n.name))return r(n,a)}):this.walk((n,a)=>{if(n.type==="atrule"&&n.name===e)return r(n,a)}):(r=e,this.walk((n,a)=>{if(n.type==="atrule")return r(n,a)}))}walkComments(e){return this.walk((r,n)=>{if(r.type==="comment")return e(r,n)})}walkDecls(e,r){return r?e instanceof RegExp?this.walk((n,a)=>{if(n.type==="decl"&&e.test(n.prop))return r(n,a)}):this.walk((n,a)=>{if(n.type==="decl"&&n.prop===e)return r(n,a)}):(r=e,this.walk((n,a)=>{if(n.type==="decl")return r(n,a)}))}walkRules(e,r){return r?e instanceof RegExp?this.walk((n,a)=>{if(n.type==="rule"&&e.test(n.selector))return r(n,a)}):this.walk((n,a)=>{if(n.type==="rule"&&n.selector===e)return r(n,a)}):(r=e,this.walk((n,a)=>{if(n.type==="rule")return r(n,a)}))}};Jt.registerParse=t=>{L0=t};Jt.registerRule=t=>{Xu=t};Jt.registerAtRule=t=>{Zu=t};Jt.registerRoot=t=>{M0=t};var Wr=Jt;Jt.default=Jt;Jt.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,Zu.prototype):t.type==="rule"?Object.setPrototypeOf(t,Xu.prototype):t.type==="decl"?Object.setPrototypeOf(t,O0.prototype):t.type==="comment"?Object.setPrototypeOf(t,C0.prototype):t.type==="root"&&Object.setPrototypeOf(t,M0.prototype),t[P0]=!0,t.nodes&&t.nodes.forEach(e=>{Jt.rebuild(e)})};let B0=Wr,Gs=class extends B0{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var Ku=Gs;Gs.default=Gs;B0.registerAtRule(Gs);let q1=Wr,V0,q0,ya=class extends q1{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new V0(new q0,this,e).stringify()}};ya.registerLazyResult=t=>{V0=t};ya.registerProcessor=t=>{q0=t};var Qu=ya;ya.default=ya;let U1="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",z1=(t=21)=>{let e="",r=t|0;for(;r--;)e+=U1[Math.random()*64|0];return e};var H1={nanoid:z1};let{existsSync:W1,readFileSync:G1}=Ke,{dirname:_o,join:J1}=Ke,{SourceMapConsumer:fc,SourceMapGenerator:hc}=Ke;function Y1(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}let Go=class{constructor(e,r){if(r.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=r.map?r.map.prev:void 0,a=this.loadMap(r.from,n);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=_o(this.mapFile)),a&&(this.text=a)}consumer(){return this.consumerCache||(this.consumerCache=new fc(this.text)),this.consumerCache}decodeInline(e){let r=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,a=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/,o=e.match(a)||e.match(s);if(o)return decodeURIComponent(e.substr(o[0].length));let c=e.match(r)||e.match(n);if(c)return Y1(e.substr(c[0].length));let u=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let r=e.match(/\/\*\s*# sourceMappingURL=/g);if(!r)return;let n=e.lastIndexOf(r.pop()),a=e.indexOf("*/",n);n>-1&&a>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,a)))}loadFile(e){if(this.root=_o(e),W1(e))return this.mapFile=e,G1(e,"utf-8").toString().trim()}loadMap(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){let n=r(e);if(n){let a=this.loadFile(n);if(!a)throw new Error("Unable to load previous source map: "+n.toString());return a}}else{if(r instanceof fc)return hc.fromSourceMap(r).toString();if(r instanceof hc)return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let n=this.annotation;return e&&(n=J1(_o(e),n)),this.loadFile(n)}}}startWith(e,r){return e?e.substr(0,r.length)===r:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var U0=Go;Go.default=Go;let{nanoid:Z1}=H1,{isAbsolute:Jo,resolve:Yo}=Ke,{SourceMapConsumer:X1,SourceMapGenerator:K1}=Ke,{fileURLToPath:pc,pathToFileURL:ms}=Ke,mc=Yu,Q1=U0,Eo=Ke,No=Symbol("lineToIndexCache"),ex=!!(X1&&K1),gc=!!(Yo&&Jo);function bc(t){if(t[No])return t[No];let e=t.css.split(`
1074
- `),r=new Array(e.length),n=0;for(let a=0,s=e.length;a<s;a++)r[a]=n,n+=e[a].length+1;return t[No]=r,r}let Js=class{get from(){return this.file||this.id}constructor(e,r={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,r.document&&(this.document=r.document.toString()),r.from&&(!gc||/^\w+:\/\//.test(r.from)||Jo(r.from)?this.file=r.from:this.file=Yo(r.from)),gc&&ex){let n=new Q1(this.css,r);if(n.text){this.map=n;let a=n.consumer().file;!this.file&&a&&(this.file=this.mapResolve(a))}}this.file||(this.id="<input css "+Z1(6)+">"),this.map&&(this.map.file=this.from)}error(e,r,n,a={}){let s,o,c,u,f;if(r&&typeof r=="object"){let h=r,d=n;if(typeof h.offset=="number"){u=h.offset;let m=this.fromOffset(u);r=m.line,n=m.col}else r=h.line,n=h.column,u=this.fromLineAndColumn(r,n);if(typeof d.offset=="number"){c=d.offset;let m=this.fromOffset(c);o=m.line,s=m.col}else o=d.line,s=d.column,c=this.fromLineAndColumn(d.line,d.column)}else if(n)u=this.fromLineAndColumn(r,n);else{u=r;let h=this.fromOffset(u);r=h.line,n=h.col}let l=this.origin(r,n,o,s);return l?f=new mc(e,l.endLine===void 0?l.line:{column:l.column,line:l.line},l.endLine===void 0?l.column:{column:l.endColumn,line:l.endLine},l.source,l.file,a.plugin):f=new mc(e,o===void 0?r:{column:n,line:r},o===void 0?n:{column:s,line:o},this.css,this.file,a.plugin),f.input={column:n,endColumn:s,endLine:o,endOffset:c,line:r,offset:u,source:this.css},this.file&&(ms&&(f.input.url=ms(this.file).toString()),f.input.file=this.file),f}fromLineAndColumn(e,r){return bc(this)[e-1]+r-1}fromOffset(e){let r=bc(this),n=r[r.length-1],a=0;if(e>=n)a=r.length-1;else{let s=r.length-2,o;for(;a<s;)if(o=a+(s-a>>1),e<r[o])s=o-1;else if(e>=r[o+1])a=o+1;else{a=o;break}}return{col:e-r[a]+1,line:a+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Yo(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,r,n,a){if(!this.map)return!1;let s=this.map.consumer(),o=s.originalPositionFor({column:r,line:e});if(!o.source)return!1;let c;typeof n=="number"&&(c=s.originalPositionFor({column:a,line:n}));let u;Jo(o.source)?u=ms(o.source):u=new URL(o.source,this.map.consumer().sourceRoot||ms(this.map.mapFile));let f={column:o.column,endColumn:c&&c.column,endLine:c&&c.line,line:o.line,url:u.toString()};if(u.protocol==="file:")if(pc)f.file=pc(u);else throw new Error("file: protocol is not available in this PostCSS build");let l=s.sourceContentFor(o.source);return l&&(f.source=l),f}toJSON(){let e={};for(let r of["hasBOM","css","file","id"])this[r]!=null&&(e[r]=this[r]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};var Qi=Js;Js.default=Js;Eo&&Eo.registerInput&&Eo.registerInput(Js);let z0=Wr,H0,W0,An=class extends z0{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,r,n){let a=super.normalize(e);if(r){if(n==="prepend")this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(let s of a)s.raws.before=r.raws.before}return a}removeChild(e,r){let n=this.index(e);return!r&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new H0(new W0,this,e).stringify()}};An.registerLazyResult=t=>{H0=t};An.registerProcessor=t=>{W0=t};var Fa=An;An.default=An;z0.registerRoot(An);let va={comma(t){return va.split(t,[","],!0)},space(t){let e=[" ",`
1075
- `," "];return va.split(t,e)},split(t,e,r){let n=[],a="",s=!1,o=0,c=!1,u="",f=!1;for(let l of t)f?f=!1:l==="\\"?f=!0:c?l===u&&(c=!1):l==='"'||l==="'"?(c=!0,u=l):l==="("?o+=1:l===")"?o>0&&(o-=1):o===0&&e.includes(l)&&(s=!0),s?(a!==""&&n.push(a.trim()),a="",s=!1):a+=l;return(r||a!=="")&&n.push(a.trim()),n}};var G0=va;va.default=va;let J0=Wr,tx=G0,Ys=class extends J0{get selectors(){return tx.comma(this.selector)}set selectors(e){let r=this.selector?this.selector.match(/,\s*/):null,n=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};var el=Ys;Ys.default=Ys;J0.registerRule(Ys);let rx=Ku,nx=Xi,ax=Ki,sx=Qi,ix=U0,ox=Fa,ux=el;function wa(t,e){if(Array.isArray(t))return t.map(a=>wa(a));let{inputs:r,...n}=t;if(r){e=[];for(let a of r){let s={...a,__proto__:sx.prototype};s.map&&(s.map={...s.map,__proto__:ix.prototype}),e.push(s)}}if(n.nodes&&(n.nodes=t.nodes.map(a=>wa(a,e))),n.source){let{inputId:a,...s}=n.source;n.source=s,a!=null&&(n.source.input=e[a])}if(n.type==="root")return new ox(n);if(n.type==="decl")return new ax(n);if(n.type==="rule")return new ux(n);if(n.type==="comment")return new nx(n);if(n.type==="atrule")return new rx(n);throw new Error("Unknown node type: "+t.type)}var lx=wa;wa.default=wa;let{dirname:js,relative:Y0,resolve:Z0,sep:X0}=Ke,{SourceMapConsumer:K0,SourceMapGenerator:Ss}=Ke,{pathToFileURL:xc}=Ke,cx=Qi,dx=!!(K0&&Ss),fx=!!(js&&Z0&&Y0&&X0),hx=class{constructor(e,r,n,a){this.stringify=e,this.mapOpts=n.map||{},this.root=r,this.opts=n,this.css=a,this.originalCSS=a,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let r=`
1079
+ `);return r=s[s.length-1],r=r.replace(/\S/g,""),!1}}),r}rawSemicolon(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(r=n.raws.semicolon,typeof r<"u"))return!1}),r}rawValue(e,r){let n=e[r],a=e.raws[r];return a&&a.value===n?a.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)}};var T0=Vo;Vo.default=Vo;let P1=T0;function qo(t,e){new P1(e).stringify(t)}var no=qo;qo.default=qo;var is={};is.isClean=Symbol("isClean");is.my=Symbol("my");let L1=Yu,M1=T0,I1=no,{isClean:Aa,my:F1}=is;function Uo(t,e){let r=new t.constructor;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n)||n==="proxyCache")continue;let a=t[n],s=typeof a;n==="parent"&&s==="object"?e&&(r[n]=e):n==="source"?r[n]=a:Array.isArray(a)?r[n]=a.map(o=>Uo(o,r)):(s==="object"&&a!==null&&(a=Uo(a)),r[n]=a)}return r}function lr(t,e){if(e&&typeof e.offset<"u")return e.offset;let r=1,n=1,a=0;for(let s=0;s<t.length;s++){if(n===e.line&&r===e.column){a=s;break}t[s]===`
1080
+ `?(r=1,n+=1):r+=1}return a}let zo=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[Aa]=!1,this[F1]=!0;for(let r in e)if(r==="nodes"){this.nodes=[];for(let n of e[r])typeof n.clone=="function"?this.append(n.clone()):this.append(n)}else this[r]=e[r]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${r.input.from}:${r.start.line}:${r.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let r in e)this[r]=e[r];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let r=Uo(this);for(let n in e)r[n]=e[n];return r}cloneAfter(e={}){let r=this.clone(e);return this.parent.insertAfter(this,r),r}cloneBefore(e={}){let r=this.clone(e);return this.parent.insertBefore(this,r),r}error(e,r={}){if(this.source){let{end:n,start:a}=this.rangeBy(r);return this.source.input.error(e,{column:a.column,line:a.line},{column:n.column,line:n.line},r)}return new L1(e)}getProxyProcessor(){return{get(e,r){return r==="proxyOf"?e:r==="root"?()=>e.root().toProxy():e[r]},set(e,r,n){return e[r]===n||(e[r]=n,(r==="prop"||r==="value"||r==="name"||r==="params"||r==="important"||r==="text")&&e.markDirty()),!0}}}markClean(){this[Aa]=!0}markDirty(){if(this[Aa]){this[Aa]=!1;let e=this;for(;e=e.parent;)e[Aa]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let r=this.source.start;if(e.index)r=this.positionInside(e.index);else if(e.word){let n="document"in this.source.input?this.source.input.document:this.source.input.css,s=n.slice(lr(n,this.source.start),lr(n,this.source.end)).indexOf(e.word);s!==-1&&(r=this.positionInside(s))}return r}positionInside(e){let r=this.source.start.column,n=this.source.start.line,a="document"in this.source.input?this.source.input.document:this.source.input.css,s=lr(a,this.source.start),o=s+e;for(let c=s;c<o;c++)a[c]===`
1081
+ `?(r=1,n+=1):r+=1;return{column:r,line:n,offset:o}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let r="document"in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:lr(r,this.source.start)},a=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:lr(r,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(e.word){let o=r.slice(lr(r,this.source.start),lr(r,this.source.end)).indexOf(e.word);o!==-1&&(n=this.positionInside(o),a=this.positionInside(o+e.word.length))}else e.start?n={column:e.start.column,line:e.start.line,offset:lr(r,e.start)}:e.index&&(n=this.positionInside(e.index)),e.end?a={column:e.end.column,line:e.end.line,offset:lr(r,e.end)}:typeof e.endIndex=="number"?a=this.positionInside(e.endIndex):e.index&&(a=this.positionInside(e.index+1));return(a.line<n.line||a.line===n.line&&a.column<=n.column)&&(a={column:n.column+1,line:n.line,offset:n.offset+1}),{end:a,start:n}}raw(e,r){return new M1().raw(this,e,r)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let r=this,n=!1;for(let a of e)a===this?n=!0:n?(this.parent.insertAfter(r,a),r=a):this.parent.insertBefore(r,a);n||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,r){let n={},a=r==null;r=r||new Map;let s=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let c=this[o];if(Array.isArray(c))n[o]=c.map(u=>typeof u=="object"&&u.toJSON?u.toJSON(null,r):u);else if(typeof c=="object"&&c.toJSON)n[o]=c.toJSON(null,r);else if(o==="source"){if(c==null)continue;let u=r.get(c.input);u==null&&(u=s,r.set(c.input,s),s++),n[o]={end:c.end,inputId:u,start:c.start}}else n[o]=c}return a&&(n.inputs=[...r.keys()].map(o=>o.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=I1){e.stringify&&(e=e.stringify);let r="";return e(this,n=>{r+=n}),r}warn(e,r,n={}){let a={node:this};for(let s in n)a[s]=n[s];return e.warn(r,a)}};var ao=zo;zo.default=zo;let R1=ao,Ho=class extends R1{constructor(e){super(e),this.type="comment"}};var so=Ho;Ho.default=Ho;let B1=ao,Wo=class extends B1{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}};var io=Wo;Wo.default=Wo;let C0=so,O0=io,V1=ao,{isClean:$0,my:P0}=is,Zu,L0,M0,Xu;function I0(t){return t.map(e=>(e.nodes&&(e.nodes=I0(e.nodes)),delete e.source,e))}function F0(t){if(t[$0]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)F0(e)}let gr=class R0 extends V1{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let r of e){let n=this.normalize(r,this.last);for(let a of n)this.proxyOf.nodes.push(a)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let r of this.nodes)r.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let r=this.getIterator(),n,a;for(;this.indexes[r]<this.proxyOf.nodes.length&&(n=this.indexes[r],a=e(this.proxyOf.nodes[n],n),a!==!1);)this.indexes[r]+=1;return delete this.indexes[r],a}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,r){return r==="proxyOf"?e:e[r]?r==="each"||typeof r=="string"&&r.startsWith("walk")?(...n)=>e[r](...n.map(a=>typeof a=="function"?(s,o)=>a(s.toProxy(),o):a)):r==="every"||r==="some"?n=>e[r]((a,...s)=>n(a.toProxy(),...s)):r==="root"?()=>e.root().toProxy():r==="nodes"?e.nodes.map(n=>n.toProxy()):r==="first"||r==="last"?e[r].toProxy():e[r]:e[r]},set(e,r,n){return e[r]===n||(e[r]=n,(r==="name"||r==="params"||r==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,r){let n=this.index(e),a=this.normalize(r,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let o of a)this.proxyOf.nodes.splice(n+1,0,o);let s;for(let o in this.indexes)s=this.indexes[o],n<s&&(this.indexes[o]=s+a.length);return this.markDirty(),this}insertBefore(e,r){let n=this.index(e),a=n===0?"prepend":!1,s=this.normalize(r,this.proxyOf.nodes[n],a).reverse();n=this.index(e);for(let c of s)this.proxyOf.nodes.splice(n,0,c);let o;for(let c in this.indexes)o=this.indexes[c],n<=o&&(this.indexes[c]=o+s.length);return this.markDirty(),this}normalize(e,r){if(typeof e=="string")e=I0(L0(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let a of e)a.parent&&a.parent.removeChild(a,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let a of e)a.parent&&a.parent.removeChild(a,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new O0(e)]}else if(e.selector||e.selectors)e=[new Xu(e)];else if(e.name)e=[new Zu(e)];else if(e.text)e=[new C0(e)];else throw new Error("Unknown node type in node creation");return e.map(a=>(a[P0]||R0.rebuild(a),a=a.proxyOf,a.parent&&a.parent.removeChild(a),a[$0]&&F0(a),a.raws||(a.raws={}),typeof a.raws.before>"u"&&r&&typeof r.raws.before<"u"&&(a.raws.before=r.raws.before.replace(/\S/g,"")),a.parent=this.proxyOf,a))}prepend(...e){e=e.reverse();for(let r of e){let n=this.normalize(r,this.first,"prepend").reverse();for(let a of n)this.proxyOf.nodes.unshift(a);for(let a in this.indexes)this.indexes[a]=this.indexes[a]+n.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let r;for(let n in this.indexes)r=this.indexes[n],r>=e&&(this.indexes[n]=r-1);return this.markDirty(),this}replaceValues(e,r,n){return n||(n=r,r={}),this.walkDecls(a=>{r.props&&!r.props.includes(a.prop)||r.fast&&!a.value.includes(r.fast)||(a.value=a.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((r,n)=>{let a;try{a=e(r,n)}catch(s){throw r.addToError(s)}return a!==!1&&r.walk&&(a=r.walk(e)),a})}walkAtRules(e,r){return r?e instanceof RegExp?this.walk((n,a)=>{if(n.type==="atrule"&&e.test(n.name))return r(n,a)}):this.walk((n,a)=>{if(n.type==="atrule"&&n.name===e)return r(n,a)}):(r=e,this.walk((n,a)=>{if(n.type==="atrule")return r(n,a)}))}walkComments(e){return this.walk((r,n)=>{if(r.type==="comment")return e(r,n)})}walkDecls(e,r){return r?e instanceof RegExp?this.walk((n,a)=>{if(n.type==="decl"&&e.test(n.prop))return r(n,a)}):this.walk((n,a)=>{if(n.type==="decl"&&n.prop===e)return r(n,a)}):(r=e,this.walk((n,a)=>{if(n.type==="decl")return r(n,a)}))}walkRules(e,r){return r?e instanceof RegExp?this.walk((n,a)=>{if(n.type==="rule"&&e.test(n.selector))return r(n,a)}):this.walk((n,a)=>{if(n.type==="rule"&&n.selector===e)return r(n,a)}):(r=e,this.walk((n,a)=>{if(n.type==="rule")return r(n,a)}))}};gr.registerParse=t=>{L0=t};gr.registerRule=t=>{Xu=t};gr.registerAtRule=t=>{Zu=t};gr.registerRoot=t=>{M0=t};var xn=gr;gr.default=gr;gr.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,Zu.prototype):t.type==="rule"?Object.setPrototypeOf(t,Xu.prototype):t.type==="decl"?Object.setPrototypeOf(t,O0.prototype):t.type==="comment"?Object.setPrototypeOf(t,C0.prototype):t.type==="root"&&Object.setPrototypeOf(t,M0.prototype),t[P0]=!0,t.nodes&&t.nodes.forEach(e=>{gr.rebuild(e)})};let B0=xn,ti=class extends B0{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var Ku=ti;ti.default=ti;B0.registerAtRule(ti);let q1=xn,V0,q0,qa=class extends q1{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new V0(new q0,this,e).stringify()}};qa.registerLazyResult=t=>{V0=t};qa.registerProcessor=t=>{q0=t};var Qu=qa;qa.default=qa;let U1="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",z1=(t=21)=>{let e="",r=t|0;for(;r--;)e+=U1[Math.random()*64|0];return e};var H1={nanoid:z1};let{existsSync:W1,readFileSync:G1}=gt,{dirname:_o,join:J1}=gt,{SourceMapConsumer:fc,SourceMapGenerator:hc}=gt;function Y1(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}let Go=class{constructor(e,r){if(r.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=r.map?r.map.prev:void 0,a=this.loadMap(r.from,n);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=_o(this.mapFile)),a&&(this.text=a)}consumer(){return this.consumerCache||(this.consumerCache=new fc(this.text)),this.consumerCache}decodeInline(e){let r=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,a=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/,o=e.match(a)||e.match(s);if(o)return decodeURIComponent(e.substr(o[0].length));let c=e.match(r)||e.match(n);if(c)return Y1(e.substr(c[0].length));let u=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let r=e.match(/\/\*\s*# sourceMappingURL=/g);if(!r)return;let n=e.lastIndexOf(r.pop()),a=e.indexOf("*/",n);n>-1&&a>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,a)))}loadFile(e){if(this.root=_o(e),W1(e))return this.mapFile=e,G1(e,"utf-8").toString().trim()}loadMap(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){let n=r(e);if(n){let a=this.loadFile(n);if(!a)throw new Error("Unable to load previous source map: "+n.toString());return a}}else{if(r instanceof fc)return hc.fromSourceMap(r).toString();if(r instanceof hc)return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let n=this.annotation;return e&&(n=J1(_o(e),n)),this.loadFile(n)}}}startWith(e,r){return e?e.substr(0,r.length)===r:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var U0=Go;Go.default=Go;let{nanoid:Z1}=H1,{isAbsolute:Jo,resolve:Yo}=gt,{SourceMapConsumer:X1,SourceMapGenerator:K1}=gt,{fileURLToPath:pc,pathToFileURL:Es}=gt,mc=Yu,Q1=U0,Eo=gt,No=Symbol("lineToIndexCache"),ex=!!(X1&&K1),gc=!!(Yo&&Jo);function bc(t){if(t[No])return t[No];let e=t.css.split(`
1082
+ `),r=new Array(e.length),n=0;for(let a=0,s=e.length;a<s;a++)r[a]=n,n+=e[a].length+1;return t[No]=r,r}let ri=class{get from(){return this.file||this.id}constructor(e,r={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,r.document&&(this.document=r.document.toString()),r.from&&(!gc||/^\w+:\/\//.test(r.from)||Jo(r.from)?this.file=r.from:this.file=Yo(r.from)),gc&&ex){let n=new Q1(this.css,r);if(n.text){this.map=n;let a=n.consumer().file;!this.file&&a&&(this.file=this.mapResolve(a))}}this.file||(this.id="<input css "+Z1(6)+">"),this.map&&(this.map.file=this.from)}error(e,r,n,a={}){let s,o,c,u,f;if(r&&typeof r=="object"){let h=r,d=n;if(typeof h.offset=="number"){u=h.offset;let m=this.fromOffset(u);r=m.line,n=m.col}else r=h.line,n=h.column,u=this.fromLineAndColumn(r,n);if(typeof d.offset=="number"){c=d.offset;let m=this.fromOffset(c);o=m.line,s=m.col}else o=d.line,s=d.column,c=this.fromLineAndColumn(d.line,d.column)}else if(n)u=this.fromLineAndColumn(r,n);else{u=r;let h=this.fromOffset(u);r=h.line,n=h.col}let l=this.origin(r,n,o,s);return l?f=new mc(e,l.endLine===void 0?l.line:{column:l.column,line:l.line},l.endLine===void 0?l.column:{column:l.endColumn,line:l.endLine},l.source,l.file,a.plugin):f=new mc(e,o===void 0?r:{column:n,line:r},o===void 0?n:{column:s,line:o},this.css,this.file,a.plugin),f.input={column:n,endColumn:s,endLine:o,endOffset:c,line:r,offset:u,source:this.css},this.file&&(Es&&(f.input.url=Es(this.file).toString()),f.input.file=this.file),f}fromLineAndColumn(e,r){return bc(this)[e-1]+r-1}fromOffset(e){let r=bc(this),n=r[r.length-1],a=0;if(e>=n)a=r.length-1;else{let s=r.length-2,o;for(;a<s;)if(o=a+(s-a>>1),e<r[o])s=o-1;else if(e>=r[o+1])a=o+1;else{a=o;break}}return{col:e-r[a]+1,line:a+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Yo(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,r,n,a){if(!this.map)return!1;let s=this.map.consumer(),o=s.originalPositionFor({column:r,line:e});if(!o.source)return!1;let c;typeof n=="number"&&(c=s.originalPositionFor({column:a,line:n}));let u;Jo(o.source)?u=Es(o.source):u=new URL(o.source,this.map.consumer().sourceRoot||Es(this.map.mapFile));let f={column:o.column,endColumn:c&&c.column,endLine:c&&c.line,line:o.line,url:u.toString()};if(u.protocol==="file:")if(pc)f.file=pc(u);else throw new Error("file: protocol is not available in this PostCSS build");let l=s.sourceContentFor(o.source);return l&&(f.source=l),f}toJSON(){let e={};for(let r of["hasBOM","css","file","id"])this[r]!=null&&(e[r]=this[r]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};var oo=ri;ri.default=ri;Eo&&Eo.registerInput&&Eo.registerInput(ri);let z0=xn,H0,W0,Jn=class extends z0{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,r,n){let a=super.normalize(e);if(r){if(n==="prepend")this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(let s of a)s.raws.before=r.raws.before}return a}removeChild(e,r){let n=this.index(e);return!r&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new H0(new W0,this,e).stringify()}};Jn.registerLazyResult=t=>{H0=t};Jn.registerProcessor=t=>{W0=t};var os=Jn;Jn.default=Jn;z0.registerRoot(Jn);let Ua={comma(t){return Ua.split(t,[","],!0)},space(t){let e=[" ",`
1083
+ `," "];return Ua.split(t,e)},split(t,e,r){let n=[],a="",s=!1,o=0,c=!1,u="",f=!1;for(let l of t)f?f=!1:l==="\\"?f=!0:c?l===u&&(c=!1):l==='"'||l==="'"?(c=!0,u=l):l==="("?o+=1:l===")"?o>0&&(o-=1):o===0&&e.includes(l)&&(s=!0),s?(a!==""&&n.push(a.trim()),a="",s=!1):a+=l;return(r||a!=="")&&n.push(a.trim()),n}};var G0=Ua;Ua.default=Ua;let J0=xn,tx=G0,ni=class extends J0{get selectors(){return tx.comma(this.selector)}set selectors(e){let r=this.selector?this.selector.match(/,\s*/):null,n=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};var el=ni;ni.default=ni;J0.registerRule(ni);let rx=Ku,nx=so,ax=io,sx=oo,ix=U0,ox=os,ux=el;function za(t,e){if(Array.isArray(t))return t.map(a=>za(a));let{inputs:r,...n}=t;if(r){e=[];for(let a of r){let s={...a,__proto__:sx.prototype};s.map&&(s.map={...s.map,__proto__:ix.prototype}),e.push(s)}}if(n.nodes&&(n.nodes=t.nodes.map(a=>za(a,e))),n.source){let{inputId:a,...s}=n.source;n.source=s,a!=null&&(n.source.input=e[a])}if(n.type==="root")return new ox(n);if(n.type==="decl")return new ax(n);if(n.type==="rule")return new ux(n);if(n.type==="comment")return new nx(n);if(n.type==="atrule")return new rx(n);throw new Error("Unknown node type: "+t.type)}var lx=za;za.default=za;let{dirname:Ls,relative:Y0,resolve:Z0,sep:X0}=gt,{SourceMapConsumer:K0,SourceMapGenerator:Ms}=gt,{pathToFileURL:xc}=gt,cx=oo,dx=!!(K0&&Ms),fx=!!(Ls&&Z0&&Y0&&X0),hx=class{constructor(e,r,n,a){this.stringify=e,this.mapOpts=n.map||{},this.root=r,this.opts=n,this.css=a,this.originalCSS=a,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let r=`
1076
1084
  `;this.css.includes(`\r
1077
1085
  `)&&(r=`\r
1078
- `),this.css+=r+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let r=this.toUrl(this.path(e.file)),n=e.root||js(e.file),a;this.mapOpts.sourcesContent===!1?(a=new K0(e.text),a.sourcesContent&&(a.sourcesContent=null)):a=e.consumer(),this.map.applySourceMap(a,r,this.toUrl(this.path(n)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(r)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),fx&&dx&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,r=>{e+=r}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Ss.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Ss({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new Ss({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,r=1,n="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},s,o;this.stringify(this.root,(c,u,f)=>{if(this.css+=c,u&&f!=="end"&&(a.generated.line=e,a.generated.column=r-1,u.source&&u.source.start?(a.source=this.sourcePath(u),a.original.line=u.source.start.line,a.original.column=u.source.start.column-1,this.map.addMapping(a)):(a.source=n,a.original.line=1,a.original.column=0,this.map.addMapping(a))),o=c.match(/\n/g),o?(e+=o.length,s=c.lastIndexOf(`
1079
- `),r=c.length-s):r+=c.length,u&&f!=="start"){let l=u.parent||{raws:{}};(!(u.type==="decl"||u.type==="atrule"&&!u.nodes)||u!==l.last||l.raws.semicolon)&&(u.source&&u.source.end?(a.source=this.sourcePath(u),a.original.line=u.source.end.line,a.original.column=u.source.end.column-1,a.generated.line=e,a.generated.column=r-2,this.map.addMapping(a)):(a.source=n,a.original.line=1,a.original.column=0,a.generated.line=e,a.generated.column=r-1,this.map.addMapping(a)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(r=>r.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let r=this.memoizedPaths.get(e);if(r)return r;let n=this.opts.to?js(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=js(Z0(n,this.mapOpts.annotation)));let a=Y0(n,e);return this.memoizedPaths.set(e,a),a}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let r=e.source.input.map;this.previousMaps.includes(r)||this.previousMaps.push(r)}});else{let e=new cx(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(r=>{if(r.source){let n=r.source.input.from;if(n&&!e[n]){e[n]=!0;let a=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(a,r.source.input.css)}}});else if(this.css){let r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let r=this.memoizedFileURLs.get(e);if(r)return r;if(xc){let n=xc(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let r=this.memoizedURLs.get(e);if(r)return r;X0==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}};var Q0=hx;const Ao=39,yc=34,gs=92,vc=47,bs=10,na=32,xs=12,ys=9,vs=13,px=91,mx=93,gx=40,bx=41,xx=123,yx=125,vx=59,wx=42,_x=58,Ex=64,ws=/[\t\n\f\r "#'()/;[\\\]{}]/g,_s=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Nx=/.[\r\n"'(/\\]/,wc=/[\da-f]/i;var Ax=function(e,r={}){let n=e.css.valueOf(),a=r.ignoreErrors,s,o,c,u,f,l,h,d,m,b,x=n.length,y=0,g=[],E=[];function S(){return y}function w(A){throw e.error("Unclosed "+A,y)}function k(){return E.length===0&&y>=x}function p(A){if(E.length)return E.pop();if(y>=x)return;let V=A?A.ignoreUnclosed:!1;switch(s=n.charCodeAt(y),s){case bs:case na:case ys:case vs:case xs:{u=y;do u+=1,s=n.charCodeAt(u);while(s===na||s===bs||s===ys||s===vs||s===xs);l=["space",n.slice(y,u)],y=u-1;break}case px:case mx:case xx:case yx:case _x:case vx:case bx:{let z=String.fromCharCode(s);l=[z,z,y];break}case gx:{if(b=g.length?g.pop()[1]:"",m=n.charCodeAt(y+1),b==="url"&&m!==Ao&&m!==yc&&m!==na&&m!==bs&&m!==ys&&m!==xs&&m!==vs){u=y;do{if(h=!1,u=n.indexOf(")",u+1),u===-1)if(a||V){u=y;break}else w("bracket");for(d=u;n.charCodeAt(d-1)===gs;)d-=1,h=!h}while(h);l=["brackets",n.slice(y,u+1),y,u],y=u}else u=n.indexOf(")",y+1),o=n.slice(y,u+1),u===-1||Nx.test(o)?l=["(","(",y]:(l=["brackets",o,y,u],y=u);break}case Ao:case yc:{f=s===Ao?"'":'"',u=y;do{if(h=!1,u=n.indexOf(f,u+1),u===-1)if(a||V){u=y+1;break}else w("string");for(d=u;n.charCodeAt(d-1)===gs;)d-=1,h=!h}while(h);l=["string",n.slice(y,u+1),y,u],y=u;break}case Ex:{ws.lastIndex=y+1,ws.test(n),ws.lastIndex===0?u=n.length-1:u=ws.lastIndex-2,l=["at-word",n.slice(y,u+1),y,u],y=u;break}case gs:{for(u=y,c=!0;n.charCodeAt(u+1)===gs;)u+=1,c=!c;if(s=n.charCodeAt(u+1),c&&s!==vc&&s!==na&&s!==bs&&s!==ys&&s!==vs&&s!==xs&&(u+=1,wc.test(n.charAt(u)))){for(;wc.test(n.charAt(u+1));)u+=1;n.charCodeAt(u+1)===na&&(u+=1)}l=["word",n.slice(y,u+1),y,u],y=u;break}default:{s===vc&&n.charCodeAt(y+1)===wx?(u=n.indexOf("*/",y+2)+1,u===0&&(a||V?u=n.length:w("comment")),l=["comment",n.slice(y,u+1),y,u],y=u):(_s.lastIndex=y+1,_s.test(n),_s.lastIndex===0?u=n.length-1:u=_s.lastIndex-2,l=["word",n.slice(y,u+1),y,u],g.push(l),y=u);break}}return y++,l}function N(A){E.push(A)}return{back:N,endOfFile:k,nextToken:p,position:S}};let kx=Ku,jx=Xi,Sx=Ki,Dx=Fa,_c=el,Tx=Ax;const Ec={empty:!0,space:!0};function Cx(t){for(let e=t.length-1;e>=0;e--){let r=t[e],n=r[3]||r[2];if(n)return n}}let Ox=class{constructor(e){this.input=e,this.root=new Dx,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let r=new kx;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);let n,a,s,o=!1,c=!1,u=[],f=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?f.push(n==="("?")":"]"):n==="{"&&f.length>0?f.push("}"):n===f[f.length-1]&&f.pop(),f.length===0)if(n===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){c=!0;break}else if(n==="}"){if(u.length>0){for(s=u.length-1,a=u[s];a&&a[0]==="space";)a=u[--s];a&&(r.source.end=this.getPosition(a[3]||a[2]),r.source.end.offset++)}this.end(e);break}else u.push(e);else u.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(u),u.length?(r.raws.afterName=this.spacesAndCommentsFromStart(u),this.raw(r,"params",u),o&&(e=u[u.length-1],r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),c&&(r.nodes=[],this.current=r)}checkMissedSemicolon(e){let r=this.colon(e);if(r===!1)return;let n=0,a;for(let s=r-1;s>=0&&(a=e[s],!(a[0]!=="space"&&(n+=1,n===2)));s--);throw this.input.error("Missed semicolon",a[0]==="word"?a[3]+1:a[2])}colon(e){let r=0,n,a,s;for(let[o,c]of e.entries()){if(a=c,s=a[0],s==="("&&(r+=1),s===")"&&(r-=1),r===0&&s===":")if(!n)this.doubleColon(a);else{if(n[0]==="word"&&n[1]==="progid")continue;return o}n=a}return!1}comment(e){let r=new jx;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))r.text="",r.raws.left=n,r.raws.right="";else{let a=n.match(/^(\s*)([^]*\S)(\s*)$/);r.text=a[2],r.raws.left=a[1],r.raws.right=a[3]}}createTokenizer(){this.tokenizer=Tx(this.input)}decl(e,r){let n=new Sx;this.init(n,e[0][2]);let a=e[e.length-1];for(a[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(a[3]||a[2]||Cx(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let f=e[0][0];if(f===":"||f==="space"||f==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";let s;for(;e.length;)if(s=e.shift(),s[0]===":"){n.raws.between+=s[1];break}else s[0]==="word"&&/\w/.test(s[1])&&this.unknownWord([s]),n.raws.between+=s[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let o=[],c;for(;e.length&&(c=e[0][0],!(c!=="space"&&c!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let f=e.length-1;f>=0;f--){if(s=e[f],s[1].toLowerCase()==="!important"){n.important=!0;let l=this.stringFrom(e,f);l=this.spacesFromEnd(e)+l,l!==" !important"&&(n.raws.important=l);break}else if(s[1].toLowerCase()==="important"){let l=e.slice(0),h="";for(let d=f;d>0;d--){let m=l[d][0];if(h.trim().startsWith("!")&&m!=="space")break;h=l.pop()[1]+h}h.trim().startsWith("!")&&(n.important=!0,n.raws.important=h,e=l)}if(s[0]!=="space"&&s[0]!=="comment")break}e.some(f=>f[0]!=="space"&&f[0]!=="comment")&&(n.raws.between+=o.map(f=>f[1]).join(""),o=[]),this.raw(n,"value",o.concat(e),r),n.value.includes(":")&&!r&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let r=new _c;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="",r.source.end=this.getPosition(e[2]),r.source.end.offset+=r.raws.ownSemicolon.length)}}getPosition(e){let r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}}init(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let r=!1,n=null,a=!1,s=null,o=[],c=e[1].startsWith("--"),u=[],f=e;for(;f;){if(n=f[0],u.push(f),n==="("||n==="[")s||(s=f),o.push(n==="("?")":"]");else if(c&&a&&n==="{")s||(s=f),o.push("}");else if(o.length===0)if(n===";")if(a){this.decl(u,c);return}else break;else if(n==="{"){this.rule(u);return}else if(n==="}"){this.tokenizer.back(u.pop()),r=!0;break}else n===":"&&(a=!0);else n===o[o.length-1]&&(o.pop(),o.length===0&&(s=null));f=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),o.length>0&&this.unclosedBracket(s),r&&a){if(!c)for(;u.length&&(f=u[u.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(u.pop());this.decl(u,c)}else this.unknownWord(u)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,r,n,a){let s,o,c=n.length,u="",f=!0,l,h;for(let d=0;d<c;d+=1)s=n[d],o=s[0],o==="space"&&d===c-1&&!a?f=!1:o==="comment"?(h=n[d-1]?n[d-1][0]:"empty",l=n[d+1]?n[d+1][0]:"empty",!Ec[h]&&!Ec[l]?u.slice(-1)===","?f=!1:u+=s[1]:f=!1):u+=s[1];if(!f){let d=n.reduce((m,b)=>m+b[1],"");e.raws[r]={raw:d,value:u}}e[r]=u}rule(e){e.pop();let r=new _c;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r}spacesAndCommentsFromEnd(e){let r,n="";for(;e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let r,n="";for(;e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)n+=e.shift()[1];return n}spacesFromEnd(e){let r,n="";for(;e.length&&(r=e[e.length-1][0],r==="space");)n=e.pop()[1]+n;return n}stringFrom(e,r){let n="";for(let a=r;a<e.length;a++)n+=e[a][1];return e.splice(r,e.length-r),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})}};var $x=Ox;let Px=Wr,Lx=Qi,Mx=$x;function Zs(t,e){let r=new Lx(t,e),n=new Mx(r);try{n.parse()}catch(a){throw process.env.NODE_ENV!=="production"&&a.name==="CssSyntaxError"&&e&&e.from&&(/\.scss$/i.test(e.from)?a.message+=`
1086
+ `),this.css+=r+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let r=this.toUrl(this.path(e.file)),n=e.root||Ls(e.file),a;this.mapOpts.sourcesContent===!1?(a=new K0(e.text),a.sourcesContent&&(a.sourcesContent=null)):a=e.consumer(),this.map.applySourceMap(a,r,this.toUrl(this.path(n)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(r)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),fx&&dx&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,r=>{e+=r}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Ms.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Ms({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new Ms({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,r=1,n="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},s,o;this.stringify(this.root,(c,u,f)=>{if(this.css+=c,u&&f!=="end"&&(a.generated.line=e,a.generated.column=r-1,u.source&&u.source.start?(a.source=this.sourcePath(u),a.original.line=u.source.start.line,a.original.column=u.source.start.column-1,this.map.addMapping(a)):(a.source=n,a.original.line=1,a.original.column=0,this.map.addMapping(a))),o=c.match(/\n/g),o?(e+=o.length,s=c.lastIndexOf(`
1087
+ `),r=c.length-s):r+=c.length,u&&f!=="start"){let l=u.parent||{raws:{}};(!(u.type==="decl"||u.type==="atrule"&&!u.nodes)||u!==l.last||l.raws.semicolon)&&(u.source&&u.source.end?(a.source=this.sourcePath(u),a.original.line=u.source.end.line,a.original.column=u.source.end.column-1,a.generated.line=e,a.generated.column=r-2,this.map.addMapping(a)):(a.source=n,a.original.line=1,a.original.column=0,a.generated.line=e,a.generated.column=r-1,this.map.addMapping(a)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(r=>r.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let r=this.memoizedPaths.get(e);if(r)return r;let n=this.opts.to?Ls(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=Ls(Z0(n,this.mapOpts.annotation)));let a=Y0(n,e);return this.memoizedPaths.set(e,a),a}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let r=e.source.input.map;this.previousMaps.includes(r)||this.previousMaps.push(r)}});else{let e=new cx(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(r=>{if(r.source){let n=r.source.input.from;if(n&&!e[n]){e[n]=!0;let a=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(a,r.source.input.css)}}});else if(this.css){let r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let r=this.memoizedFileURLs.get(e);if(r)return r;if(xc){let n=xc(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let r=this.memoizedURLs.get(e);if(r)return r;X0==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}};var Q0=hx;const Ao=39,yc=34,Ns=92,vc=47,As=10,ka=32,ks=12,js=9,Ss=13,px=91,mx=93,gx=40,bx=41,xx=123,yx=125,vx=59,wx=42,_x=58,Ex=64,Ds=/[\t\n\f\r "#'()/;[\\\]{}]/g,Ts=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Nx=/.[\r\n"'(/\\]/,wc=/[\da-f]/i;var Ax=function(e,r={}){let n=e.css.valueOf(),a=r.ignoreErrors,s,o,c,u,f,l,h,d,m,b,x=n.length,y=0,g=[],E=[];function D(){return y}function w(k){throw e.error("Unclosed "+k,y)}function j(){return E.length===0&&y>=x}function p(k){if(E.length)return E.pop();if(y>=x)return;let V=k?k.ignoreUnclosed:!1;switch(s=n.charCodeAt(y),s){case As:case ka:case js:case Ss:case ks:{u=y;do u+=1,s=n.charCodeAt(u);while(s===ka||s===As||s===js||s===Ss||s===ks);l=["space",n.slice(y,u)],y=u-1;break}case px:case mx:case xx:case yx:case _x:case vx:case bx:{let H=String.fromCharCode(s);l=[H,H,y];break}case gx:{if(b=g.length?g.pop()[1]:"",m=n.charCodeAt(y+1),b==="url"&&m!==Ao&&m!==yc&&m!==ka&&m!==As&&m!==js&&m!==ks&&m!==Ss){u=y;do{if(h=!1,u=n.indexOf(")",u+1),u===-1)if(a||V){u=y;break}else w("bracket");for(d=u;n.charCodeAt(d-1)===Ns;)d-=1,h=!h}while(h);l=["brackets",n.slice(y,u+1),y,u],y=u}else u=n.indexOf(")",y+1),o=n.slice(y,u+1),u===-1||Nx.test(o)?l=["(","(",y]:(l=["brackets",o,y,u],y=u);break}case Ao:case yc:{f=s===Ao?"'":'"',u=y;do{if(h=!1,u=n.indexOf(f,u+1),u===-1)if(a||V){u=y+1;break}else w("string");for(d=u;n.charCodeAt(d-1)===Ns;)d-=1,h=!h}while(h);l=["string",n.slice(y,u+1),y,u],y=u;break}case Ex:{Ds.lastIndex=y+1,Ds.test(n),Ds.lastIndex===0?u=n.length-1:u=Ds.lastIndex-2,l=["at-word",n.slice(y,u+1),y,u],y=u;break}case Ns:{for(u=y,c=!0;n.charCodeAt(u+1)===Ns;)u+=1,c=!c;if(s=n.charCodeAt(u+1),c&&s!==vc&&s!==ka&&s!==As&&s!==js&&s!==Ss&&s!==ks&&(u+=1,wc.test(n.charAt(u)))){for(;wc.test(n.charAt(u+1));)u+=1;n.charCodeAt(u+1)===ka&&(u+=1)}l=["word",n.slice(y,u+1),y,u],y=u;break}default:{s===vc&&n.charCodeAt(y+1)===wx?(u=n.indexOf("*/",y+2)+1,u===0&&(a||V?u=n.length:w("comment")),l=["comment",n.slice(y,u+1),y,u],y=u):(Ts.lastIndex=y+1,Ts.test(n),Ts.lastIndex===0?u=n.length-1:u=Ts.lastIndex-2,l=["word",n.slice(y,u+1),y,u],g.push(l),y=u);break}}return y++,l}function A(k){E.push(k)}return{back:A,endOfFile:j,nextToken:p,position:D}};let kx=Ku,jx=so,Sx=io,Dx=os,_c=el,Tx=Ax;const Ec={empty:!0,space:!0};function Cx(t){for(let e=t.length-1;e>=0;e--){let r=t[e],n=r[3]||r[2];if(n)return n}}let Ox=class{constructor(e){this.input=e,this.root=new Dx,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let r=new kx;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);let n,a,s,o=!1,c=!1,u=[],f=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?f.push(n==="("?")":"]"):n==="{"&&f.length>0?f.push("}"):n===f[f.length-1]&&f.pop(),f.length===0)if(n===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){c=!0;break}else if(n==="}"){if(u.length>0){for(s=u.length-1,a=u[s];a&&a[0]==="space";)a=u[--s];a&&(r.source.end=this.getPosition(a[3]||a[2]),r.source.end.offset++)}this.end(e);break}else u.push(e);else u.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(u),u.length?(r.raws.afterName=this.spacesAndCommentsFromStart(u),this.raw(r,"params",u),o&&(e=u[u.length-1],r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),c&&(r.nodes=[],this.current=r)}checkMissedSemicolon(e){let r=this.colon(e);if(r===!1)return;let n=0,a;for(let s=r-1;s>=0&&(a=e[s],!(a[0]!=="space"&&(n+=1,n===2)));s--);throw this.input.error("Missed semicolon",a[0]==="word"?a[3]+1:a[2])}colon(e){let r=0,n,a,s;for(let[o,c]of e.entries()){if(a=c,s=a[0],s==="("&&(r+=1),s===")"&&(r-=1),r===0&&s===":")if(!n)this.doubleColon(a);else{if(n[0]==="word"&&n[1]==="progid")continue;return o}n=a}return!1}comment(e){let r=new jx;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))r.text="",r.raws.left=n,r.raws.right="";else{let a=n.match(/^(\s*)([^]*\S)(\s*)$/);r.text=a[2],r.raws.left=a[1],r.raws.right=a[3]}}createTokenizer(){this.tokenizer=Tx(this.input)}decl(e,r){let n=new Sx;this.init(n,e[0][2]);let a=e[e.length-1];for(a[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(a[3]||a[2]||Cx(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let f=e[0][0];if(f===":"||f==="space"||f==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";let s;for(;e.length;)if(s=e.shift(),s[0]===":"){n.raws.between+=s[1];break}else s[0]==="word"&&/\w/.test(s[1])&&this.unknownWord([s]),n.raws.between+=s[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let o=[],c;for(;e.length&&(c=e[0][0],!(c!=="space"&&c!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let f=e.length-1;f>=0;f--){if(s=e[f],s[1].toLowerCase()==="!important"){n.important=!0;let l=this.stringFrom(e,f);l=this.spacesFromEnd(e)+l,l!==" !important"&&(n.raws.important=l);break}else if(s[1].toLowerCase()==="important"){let l=e.slice(0),h="";for(let d=f;d>0;d--){let m=l[d][0];if(h.trim().startsWith("!")&&m!=="space")break;h=l.pop()[1]+h}h.trim().startsWith("!")&&(n.important=!0,n.raws.important=h,e=l)}if(s[0]!=="space"&&s[0]!=="comment")break}e.some(f=>f[0]!=="space"&&f[0]!=="comment")&&(n.raws.between+=o.map(f=>f[1]).join(""),o=[]),this.raw(n,"value",o.concat(e),r),n.value.includes(":")&&!r&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let r=new _c;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="",r.source.end=this.getPosition(e[2]),r.source.end.offset+=r.raws.ownSemicolon.length)}}getPosition(e){let r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}}init(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let r=!1,n=null,a=!1,s=null,o=[],c=e[1].startsWith("--"),u=[],f=e;for(;f;){if(n=f[0],u.push(f),n==="("||n==="[")s||(s=f),o.push(n==="("?")":"]");else if(c&&a&&n==="{")s||(s=f),o.push("}");else if(o.length===0)if(n===";")if(a){this.decl(u,c);return}else break;else if(n==="{"){this.rule(u);return}else if(n==="}"){this.tokenizer.back(u.pop()),r=!0;break}else n===":"&&(a=!0);else n===o[o.length-1]&&(o.pop(),o.length===0&&(s=null));f=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),o.length>0&&this.unclosedBracket(s),r&&a){if(!c)for(;u.length&&(f=u[u.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(u.pop());this.decl(u,c)}else this.unknownWord(u)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,r,n,a){let s,o,c=n.length,u="",f=!0,l,h;for(let d=0;d<c;d+=1)s=n[d],o=s[0],o==="space"&&d===c-1&&!a?f=!1:o==="comment"?(h=n[d-1]?n[d-1][0]:"empty",l=n[d+1]?n[d+1][0]:"empty",!Ec[h]&&!Ec[l]?u.slice(-1)===","?f=!1:u+=s[1]:f=!1):u+=s[1];if(!f){let d=n.reduce((m,b)=>m+b[1],"");e.raws[r]={raw:d,value:u}}e[r]=u}rule(e){e.pop();let r=new _c;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r}spacesAndCommentsFromEnd(e){let r,n="";for(;e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let r,n="";for(;e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)n+=e.shift()[1];return n}spacesFromEnd(e){let r,n="";for(;e.length&&(r=e[e.length-1][0],r==="space");)n=e.pop()[1]+n;return n}stringFrom(e,r){let n="";for(let a=r;a<e.length;a++)n+=e[a][1];return e.splice(r,e.length-r),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})}};var $x=Ox;let Px=xn,Lx=oo,Mx=$x;function ai(t,e){let r=new Lx(t,e),n=new Mx(r);try{n.parse()}catch(a){throw process.env.NODE_ENV!=="production"&&a.name==="CssSyntaxError"&&e&&e.from&&(/\.scss$/i.test(e.from)?a.message+=`
1080
1088
  You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(e.from)?a.message+=`
1081
1089
  You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(e.from)&&(a.message+=`
1082
- You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),a}return n.root}var tl=Zs;Zs.default=Zs;Px.registerParse(Zs);let Zo=class{constructor(e,r={}){if(this.type="warning",this.text=e,r.node&&r.node.source){let n=r.node.rangeBy(r);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in r)this[n]=r[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var ef=Zo;Zo.default=Zo;let Ix=ef,Xo=class{get content(){return this.css}constructor(e,r,n){this.processor=e,this.messages=[],this.root=r,this.opts=n,this.css="",this.map=void 0}toString(){return this.css}warn(e,r={}){r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);let n=new Ix(e,r);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}};var rl=Xo;Xo.default=Xo;let Nc={};var tf=function(e){Nc[e]||(Nc[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))};let Fx=Wr,Rx=Qu,Bx=Q0,Vx=tl,Ac=rl,qx=Fa,Ux=Yi,{isClean:Tt,my:zx}=Ia,Hx=tf;const Wx={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Gx={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Jx={Once:!0,postcssPlugin:!0,prepare:!0},kn=0;function aa(t){return typeof t=="object"&&typeof t.then=="function"}function rf(t){let e=!1,r=Wx[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,kn,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,kn,r+"Exit"]:[r,r+"Exit"]}function kc(t){let e;return t.type==="document"?e=["Document",kn,"DocumentExit"]:t.type==="root"?e=["Root",kn,"RootExit"]:e=rf(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function Ko(t){return t[Tt]=!1,t.nodes&&t.nodes.forEach(e=>Ko(e)),t}let Qo={},jn=class nf{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(e,r,n){this.stringified=!1,this.processed=!1;let a;if(typeof r=="object"&&r!==null&&(r.type==="root"||r.type==="document"))a=Ko(r);else if(r instanceof nf||r instanceof Ac)a=Ko(r.root),r.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let s=Vx;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{a=s(r,n)}catch(o){this.processed=!0,this.error=o}a&&!a[zx]&&Fx.rebuild(a)}this.result=new Ac(e,a,n),this.helpers={...Qo,postcss:Qo,result:this.result},this.plugins=this.processor.plugins.map(s=>typeof s=="object"&&s.prepare?{...s,...s.prepare(this.result)}:s)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,r){let n=this.result.lastPlugin;try{if(r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=n.postcssPlugin,e.setMessage();else if(n.postcssVersion&&process.env.NODE_ENV!=="production"){let a=n.postcssPlugin,s=n.postcssVersion,o=this.result.processor.version,c=s.split("."),u=o.split(".");(c[0]!==u[0]||parseInt(c[1])>parseInt(u[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+o+", but "+a+" uses "+s+". Perhaps this is the source of the error below.")}}catch(a){console&&console.error&&console.error(a)}return e}prepareVisitors(){this.listeners={};let e=(r,n,a)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([r,a])};for(let r of this.plugins)if(typeof r=="object")for(let n in r){if(!Gx[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${r.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Jx[n])if(typeof r[n]=="object")for(let a in r[n])a==="*"?e(r,n,r[n][a]):e(r,n+"-"+a.toLowerCase(),r[n][a]);else typeof r[n]=="function"&&e(r,n,r[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let r=this.plugins[e],n=this.runOnRoot(r);if(aa(n))try{await n}catch(a){throw this.handleError(a)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Tt];){e[Tt]=!0;let r=[kc(e)];for(;r.length>0;){let n=this.visitTick(r);if(aa(n))try{await n}catch(a){let s=r[r.length-1].node;throw this.handleError(a,s)}}}if(this.listeners.OnceExit)for(let[r,n]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if(e.type==="document"){let a=e.nodes.map(s=>n(s,this.helpers));await Promise.all(a)}else await n(e,this.helpers)}catch(a){throw this.handleError(a)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let r=this.result.root.nodes.map(n=>e.Once(n,this.helpers));return aa(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(r){throw this.handleError(r)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,r=Ux;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);let a=new Bx(r,this.result.root,this.result.opts).generate();return this.result.css=a[0],this.result.map=a[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let r=this.runOnRoot(e);if(aa(r))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Tt];)e[Tt]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let r of e.nodes)this.visitSync(this.listeners.OnceExit,r);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,r){return process.env.NODE_ENV!=="production"&&("from"in this.opts||Hx("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,r)}toString(){return this.css}visitSync(e,r){for(let[n,a]of e){this.result.lastPlugin=n;let s;try{s=a(r,this.helpers)}catch(o){throw this.handleError(o,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(aa(s))throw this.getAsyncError()}}visitTick(e){let r=e[e.length-1],{node:n,visitors:a}=r;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(a.length>0&&r.visitorIndex<a.length){let[o,c]=a[r.visitorIndex];r.visitorIndex+=1,r.visitorIndex===a.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=o;try{return c(n.toProxy(),this.helpers)}catch(u){throw this.handleError(u,n)}}if(r.iterator!==0){let o=r.iterator,c;for(;c=n.nodes[n.indexes[o]];)if(n.indexes[o]+=1,!c[Tt]){c[Tt]=!0,e.push(kc(c));return}r.iterator=0,delete n.indexes[o]}let s=r.events;for(;r.eventIndex<s.length;){let o=s[r.eventIndex];if(r.eventIndex+=1,o===kn){n.nodes&&n.nodes.length&&(n[Tt]=!0,r.iterator=n.getIterator());return}else if(this.listeners[o]){r.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[Tt]=!0;let r=rf(e);for(let n of r)if(n===kn)e.nodes&&e.each(a=>{a[Tt]||this.walkSync(a)});else{let a=this.listeners[n];if(a&&this.visitSync(a,e.toProxy()))return}}warnings(){return this.sync().warnings()}};jn.registerPostcss=t=>{Qo=t};var af=jn;jn.default=jn;qx.registerLazyResult(jn);Rx.registerLazyResult(jn);let Yx=Q0,Zx=tl;const Xx=rl;let Kx=Yi,Qx=tf,eu=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,r=Zx;try{e=r(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,r,n){r=r.toString(),this.stringified=!1,this._processor=e,this._css=r,this._opts=n,this._map=void 0;let a,s=Kx;this.result=new Xx(this._processor,a,this._opts),this.result.css=r;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let c=new Yx(s,a,this._opts,r);if(c.isMap()){let[u,f]=c.generate();u&&(this.result.css=u),f&&(this.result.map=f)}else c.clearAnnotation(),this.result.css=c.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,r){return process.env.NODE_ENV!=="production"&&("from"in this._opts||Qx("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,r)}toString(){return this._css}warnings(){return[]}};var ey=eu;eu.default=eu;let ty=Qu,ry=af,ny=ey,ay=Fa,_a=class{constructor(e=[]){this.version="8.5.6",this.plugins=this.normalize(e)}normalize(e){let r=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))r=r.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)r.push(n);else if(typeof n=="function")r.push(n);else if(typeof n=="object"&&(n.parse||n.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(n+" is not a PostCSS plugin");return r}process(e,r={}){return!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new ny(this,e,r):new ry(this,e,r)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var sy=_a;_a.default=_a;ay.registerProcessor(_a);ty.registerProcessor(_a);let sf=Ku,of=Xi,iy=Wr,oy=Yu,uf=Ki,lf=Qu,uy=lx,ly=Qi,cy=af,dy=G0,fy=Zi,hy=tl,nl=sy,py=rl,cf=Fa,df=el,my=Yi,gy=ef;function fe(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new nl(t)}fe.plugin=function(e,r){let n=!1;function a(...o){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
1090
+ You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),a}return n.root}var tl=ai;ai.default=ai;Px.registerParse(ai);let Zo=class{constructor(e,r={}){if(this.type="warning",this.text=e,r.node&&r.node.source){let n=r.node.rangeBy(r);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in r)this[n]=r[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var ef=Zo;Zo.default=Zo;let Ix=ef,Xo=class{get content(){return this.css}constructor(e,r,n){this.processor=e,this.messages=[],this.root=r,this.opts=n,this.css="",this.map=void 0}toString(){return this.css}warn(e,r={}){r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);let n=new Ix(e,r);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}};var rl=Xo;Xo.default=Xo;let Nc={};var tf=function(e){Nc[e]||(Nc[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))};let Fx=xn,Rx=Qu,Bx=Q0,Vx=tl,Ac=rl,qx=os,Ux=no,{isClean:Kt,my:zx}=is,Hx=tf;const Wx={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Gx={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Jx={Once:!0,postcssPlugin:!0,prepare:!0},Yn=0;function ja(t){return typeof t=="object"&&typeof t.then=="function"}function rf(t){let e=!1,r=Wx[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,Yn,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,Yn,r+"Exit"]:[r,r+"Exit"]}function kc(t){let e;return t.type==="document"?e=["Document",Yn,"DocumentExit"]:t.type==="root"?e=["Root",Yn,"RootExit"]:e=rf(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function Ko(t){return t[Kt]=!1,t.nodes&&t.nodes.forEach(e=>Ko(e)),t}let Qo={},Zn=class nf{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(e,r,n){this.stringified=!1,this.processed=!1;let a;if(typeof r=="object"&&r!==null&&(r.type==="root"||r.type==="document"))a=Ko(r);else if(r instanceof nf||r instanceof Ac)a=Ko(r.root),r.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let s=Vx;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{a=s(r,n)}catch(o){this.processed=!0,this.error=o}a&&!a[zx]&&Fx.rebuild(a)}this.result=new Ac(e,a,n),this.helpers={...Qo,postcss:Qo,result:this.result},this.plugins=this.processor.plugins.map(s=>typeof s=="object"&&s.prepare?{...s,...s.prepare(this.result)}:s)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,r){let n=this.result.lastPlugin;try{if(r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=n.postcssPlugin,e.setMessage();else if(n.postcssVersion&&process.env.NODE_ENV!=="production"){let a=n.postcssPlugin,s=n.postcssVersion,o=this.result.processor.version,c=s.split("."),u=o.split(".");(c[0]!==u[0]||parseInt(c[1])>parseInt(u[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+o+", but "+a+" uses "+s+". Perhaps this is the source of the error below.")}}catch(a){console&&console.error&&console.error(a)}return e}prepareVisitors(){this.listeners={};let e=(r,n,a)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([r,a])};for(let r of this.plugins)if(typeof r=="object")for(let n in r){if(!Gx[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${r.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Jx[n])if(typeof r[n]=="object")for(let a in r[n])a==="*"?e(r,n,r[n][a]):e(r,n+"-"+a.toLowerCase(),r[n][a]);else typeof r[n]=="function"&&e(r,n,r[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let r=this.plugins[e],n=this.runOnRoot(r);if(ja(n))try{await n}catch(a){throw this.handleError(a)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Kt];){e[Kt]=!0;let r=[kc(e)];for(;r.length>0;){let n=this.visitTick(r);if(ja(n))try{await n}catch(a){let s=r[r.length-1].node;throw this.handleError(a,s)}}}if(this.listeners.OnceExit)for(let[r,n]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if(e.type==="document"){let a=e.nodes.map(s=>n(s,this.helpers));await Promise.all(a)}else await n(e,this.helpers)}catch(a){throw this.handleError(a)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let r=this.result.root.nodes.map(n=>e.Once(n,this.helpers));return ja(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(r){throw this.handleError(r)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,r=Ux;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);let a=new Bx(r,this.result.root,this.result.opts).generate();return this.result.css=a[0],this.result.map=a[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let r=this.runOnRoot(e);if(ja(r))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Kt];)e[Kt]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let r of e.nodes)this.visitSync(this.listeners.OnceExit,r);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,r){return process.env.NODE_ENV!=="production"&&("from"in this.opts||Hx("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,r)}toString(){return this.css}visitSync(e,r){for(let[n,a]of e){this.result.lastPlugin=n;let s;try{s=a(r,this.helpers)}catch(o){throw this.handleError(o,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(ja(s))throw this.getAsyncError()}}visitTick(e){let r=e[e.length-1],{node:n,visitors:a}=r;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(a.length>0&&r.visitorIndex<a.length){let[o,c]=a[r.visitorIndex];r.visitorIndex+=1,r.visitorIndex===a.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=o;try{return c(n.toProxy(),this.helpers)}catch(u){throw this.handleError(u,n)}}if(r.iterator!==0){let o=r.iterator,c;for(;c=n.nodes[n.indexes[o]];)if(n.indexes[o]+=1,!c[Kt]){c[Kt]=!0,e.push(kc(c));return}r.iterator=0,delete n.indexes[o]}let s=r.events;for(;r.eventIndex<s.length;){let o=s[r.eventIndex];if(r.eventIndex+=1,o===Yn){n.nodes&&n.nodes.length&&(n[Kt]=!0,r.iterator=n.getIterator());return}else if(this.listeners[o]){r.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[Kt]=!0;let r=rf(e);for(let n of r)if(n===Yn)e.nodes&&e.each(a=>{a[Kt]||this.walkSync(a)});else{let a=this.listeners[n];if(a&&this.visitSync(a,e.toProxy()))return}}warnings(){return this.sync().warnings()}};Zn.registerPostcss=t=>{Qo=t};var af=Zn;Zn.default=Zn;qx.registerLazyResult(Zn);Rx.registerLazyResult(Zn);let Yx=Q0,Zx=tl;const Xx=rl;let Kx=no,Qx=tf,eu=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,r=Zx;try{e=r(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,r,n){r=r.toString(),this.stringified=!1,this._processor=e,this._css=r,this._opts=n,this._map=void 0;let a,s=Kx;this.result=new Xx(this._processor,a,this._opts),this.result.css=r;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let c=new Yx(s,a,this._opts,r);if(c.isMap()){let[u,f]=c.generate();u&&(this.result.css=u),f&&(this.result.map=f)}else c.clearAnnotation(),this.result.css=c.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,r){return process.env.NODE_ENV!=="production"&&("from"in this._opts||Qx("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,r)}toString(){return this._css}warnings(){return[]}};var ey=eu;eu.default=eu;let ty=Qu,ry=af,ny=ey,ay=os,Ha=class{constructor(e=[]){this.version="8.5.6",this.plugins=this.normalize(e)}normalize(e){let r=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))r=r.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)r.push(n);else if(typeof n=="function")r.push(n);else if(typeof n=="object"&&(n.parse||n.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(n+" is not a PostCSS plugin");return r}process(e,r={}){return!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new ny(this,e,r):new ry(this,e,r)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var sy=Ha;Ha.default=Ha;ay.registerProcessor(Ha);ty.registerProcessor(Ha);let sf=Ku,of=so,iy=xn,oy=Yu,uf=io,lf=Qu,uy=lx,ly=oo,cy=af,dy=G0,fy=ao,hy=tl,nl=sy,py=rl,cf=os,df=el,my=no,gy=ef;function ye(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new nl(t)}ye.plugin=function(e,r){let n=!1;function a(...o){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
1083
1091
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
1084
- https://www.w3ctech.com/topic/2226`));let c=r(...o);return c.postcssPlugin=e,c.postcssVersion=new nl().version,c}let s;return Object.defineProperty(a,"postcss",{get(){return s||(s=a()),s}}),a.process=function(o,c,u){return fe([a(u)]).process(o,c)},a};fe.stringify=my;fe.parse=hy;fe.fromJSON=uy;fe.list=dy;fe.comment=t=>new of(t);fe.atRule=t=>new sf(t);fe.decl=t=>new uf(t);fe.rule=t=>new df(t);fe.root=t=>new cf(t);fe.document=t=>new lf(t);fe.CssSyntaxError=oy;fe.Declaration=uf;fe.Container=iy;fe.Processor=nl;fe.Document=lf;fe.Comment=of;fe.Warning=gy;fe.AtRule=sf;fe.Result=py;fe.Input=ly;fe.Rule=df;fe.Root=cf;fe.Node=fy;cy.registerPostcss(fe);var by=fe;fe.default=fe;const xy=t0,jc=D1,{isPlainObject:yy}=Gu,Sc=gd,vy=C1,{parse:wy}=by,_y=["img","audio","video","picture","svg","object","map","iframe","embed"],Ey=["script","style"];function sa(t,e){t&&Object.keys(t).forEach(function(r){e(t[r],r)})}function Ut(t,e){return{}.hasOwnProperty.call(t,e)}function Dc(t,e){const r=[];return sa(t,function(n){e(n)&&r.push(n)}),r}function Ny(t){for(const e in t)if(Ut(t,e))return!1;return!0}function Ay(t){return t.map(function(e){if(!e.url)throw new Error("URL missing");return e.url+(e.w?` ${e.w}w`:"")+(e.h?` ${e.h}h`:"")+(e.d?` ${e.d}x`:"")}).join(", ")}var ky=Ea;const jy=/^[^\0\t\n\f\r /<=>]+$/;function Ea(t,e,r){if(t==null)return"";typeof t=="number"&&(t=t.toString());let n="",a="";function s(_,M){const C=this;this.tag=_,this.attribs=M||{},this.tagPosition=n.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){if(y.length){const W=y[y.length-1];W.text+=C.text}},this.updateParentNodeMediaChildren=function(){y.length&&_y.includes(this.tag)&&y[y.length-1].mediaChildren.push(this.tag)}}e=Object.assign({},Ea.defaults,e),e.parser=Object.assign({},Sy,e.parser);const o=function(_){return e.allowedTags===!1||(e.allowedTags||[]).indexOf(_)>-1};Ey.forEach(function(_){o(_)&&!e.allowVulnerableTags&&console.warn(`
1092
+ https://www.w3ctech.com/topic/2226`));let c=r(...o);return c.postcssPlugin=e,c.postcssVersion=new nl().version,c}let s;return Object.defineProperty(a,"postcss",{get(){return s||(s=a()),s}}),a.process=function(o,c,u){return ye([a(u)]).process(o,c)},a};ye.stringify=my;ye.parse=hy;ye.fromJSON=uy;ye.list=dy;ye.comment=t=>new of(t);ye.atRule=t=>new sf(t);ye.decl=t=>new uf(t);ye.rule=t=>new df(t);ye.root=t=>new cf(t);ye.document=t=>new lf(t);ye.CssSyntaxError=oy;ye.Declaration=uf;ye.Container=iy;ye.Processor=nl;ye.Document=lf;ye.Comment=of;ye.Warning=gy;ye.AtRule=sf;ye.Result=py;ye.Input=ly;ye.Rule=df;ye.Root=cf;ye.Node=fy;cy.registerPostcss(ye);var by=ye;ye.default=ye;const xy=t0,jc=D1,{isPlainObject:yy}=Gu,Sc=gd,vy=C1,{parse:wy}=by,_y=["img","audio","video","picture","svg","object","map","iframe","embed"],Ey=["script","style"];function Sa(t,e){t&&Object.keys(t).forEach(function(r){e(t[r],r)})}function dr(t,e){return{}.hasOwnProperty.call(t,e)}function Dc(t,e){const r=[];return Sa(t,function(n){e(n)&&r.push(n)}),r}function Ny(t){for(const e in t)if(dr(t,e))return!1;return!0}function Ay(t){return t.map(function(e){if(!e.url)throw new Error("URL missing");return e.url+(e.w?` ${e.w}w`:"")+(e.h?` ${e.h}h`:"")+(e.d?` ${e.d}x`:"")}).join(", ")}var ky=Wa;const jy=/^[^\0\t\n\f\r /<=>]+$/;function Wa(t,e,r){if(t==null)return"";typeof t=="number"&&(t=t.toString());let n="",a="";function s(_,M){const O=this;this.tag=_,this.attribs=M||{},this.tagPosition=n.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){if(y.length){const G=y[y.length-1];G.text+=O.text}},this.updateParentNodeMediaChildren=function(){y.length&&_y.includes(this.tag)&&y[y.length-1].mediaChildren.push(this.tag)}}e=Object.assign({},Wa.defaults,e),e.parser=Object.assign({},Sy,e.parser);const o=function(_){return e.allowedTags===!1||(e.allowedTags||[]).indexOf(_)>-1};Ey.forEach(function(_){o(_)&&!e.allowVulnerableTags&&console.warn(`
1085
1093
 
1086
1094
  ⚠️ Your \`allowedTags\` option includes, \`${_}\`, which is inherently
1087
1095
  vulnerable to XSS attacks. Please remove it from \`allowedTags\`.
1088
1096
  Or, to disable this warning, add the \`allowVulnerableTags\` option
1089
1097
  and ensure you are accounting for this risk.
1090
1098
 
1091
- `)});const c=e.nonTextTags||["script","style","textarea","option"];let u,f;e.allowedAttributes&&(u={},f={},sa(e.allowedAttributes,function(_,M){u[M]=[];const C=[];_.forEach(function(W){typeof W=="string"&&W.indexOf("*")>=0?C.push(jc(W).replace(/\\\*/g,".*")):u[M].push(W)}),C.length&&(f[M]=new RegExp("^("+C.join("|")+")$"))}));const l={},h={},d={};sa(e.allowedClasses,function(_,M){if(u&&(Ut(u,M)||(u[M]=[]),u[M].push("class")),l[M]=_,Array.isArray(_)){const C=[];l[M]=[],d[M]=[],_.forEach(function(W){typeof W=="string"&&W.indexOf("*")>=0?C.push(jc(W).replace(/\\\*/g,".*")):W instanceof RegExp?d[M].push(W):l[M].push(W)}),C.length&&(h[M]=new RegExp("^("+C.join("|")+")$"))}});const m={};let b;sa(e.transformTags,function(_,M){let C;typeof _=="function"?C=_:typeof _=="string"&&(C=Ea.simpleTransform(_)),M==="*"?b=C:m[M]=C});let x,y,g,E,S,w,k=!1;N();const p=new xy.Parser({onopentag:function(_,M){if(e.enforceHtmlBoundary&&_==="html"&&N(),S){w++;return}const C=new s(_,M);y.push(C);let W=!1;const R=!!C.text;let Z;if(Ut(m,_)&&(Z=m[_](_,M),C.attribs=M=Z.attribs,Z.text!==void 0&&(C.innerText=Z.text),_!==Z.tagName&&(C.name=_=Z.tagName,E[x]=Z.tagName)),b&&(Z=b(_,M),C.attribs=M=Z.attribs,_!==Z.tagName&&(C.name=_=Z.tagName,E[x]=Z.tagName)),(!o(_)||e.disallowedTagsMode==="recursiveEscape"&&!Ny(g)||e.nestingLimit!=null&&x>=e.nestingLimit)&&(W=!0,g[x]=!0,(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&c.indexOf(_)!==-1&&(S=!0,w=1),g[x]=!0),x++,W){if(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")return;a=n,n=""}n+="<"+_,_==="script"&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(C.innerText=""),(!u||Ut(u,_)||u["*"])&&sa(M,function(P,G){if(!jy.test(G)){delete C.attribs[G];return}if(P===""&&!e.allowedEmptyAttributes.includes(G)&&(e.nonBooleanAttributes.includes(G)||e.nonBooleanAttributes.includes("*"))){delete C.attribs[G];return}let ne=!1;if(!u||Ut(u,_)&&u[_].indexOf(G)!==-1||u["*"]&&u["*"].indexOf(G)!==-1||Ut(f,_)&&f[_].test(G)||f["*"]&&f["*"].test(G))ne=!0;else if(u&&u[_]){for(const $ of u[_])if(yy($)&&$.name&&$.name===G){ne=!0;let B="";if($.multiple===!0){const re=P.split(" ");for(const X of re)$.values.indexOf(X)!==-1&&(B===""?B=X:B+=" "+X)}else $.values.indexOf(P)>=0&&(B=P);P=B}}if(ne){if(e.allowedSchemesAppliedToAttributes.indexOf(G)!==-1&&V(_,P)){delete C.attribs[G];return}if(_==="script"&&G==="src"){let $=!0;try{const B=z(P);if(e.allowedScriptHostnames||e.allowedScriptDomains){const re=(e.allowedScriptHostnames||[]).find(function(te){return te===B.url.hostname}),X=(e.allowedScriptDomains||[]).find(function(te){return B.url.hostname===te||B.url.hostname.endsWith(`.${te}`)});$=re||X}}catch{$=!1}if(!$){delete C.attribs[G];return}}if(_==="iframe"&&G==="src"){let $=!0;try{const B=z(P);if(B.isRelativeUrl)$=Ut(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const re=(e.allowedIframeHostnames||[]).find(function(te){return te===B.url.hostname}),X=(e.allowedIframeDomains||[]).find(function(te){return B.url.hostname===te||B.url.hostname.endsWith(`.${te}`)});$=re||X}}catch{$=!1}if(!$){delete C.attribs[G];return}}if(G==="srcset")try{let $=vy(P);if($.forEach(function(B){V("srcset",B.url)&&(B.evil=!0)}),$=Dc($,function(B){return!B.evil}),$.length)P=Ay(Dc($,function(B){return!B.evil})),C.attribs[G]=P;else{delete C.attribs[G];return}}catch{delete C.attribs[G];return}if(G==="class"){const $=l[_],B=l["*"],re=h[_],X=d[_],te=h["*"],pe=[re,te].concat(X).filter(function(De){return De});if($&&B?P=H(P,Sc($,B),pe):P=H(P,$||B,pe),!P.length){delete C.attribs[G];return}}if(G==="style"){if(e.parseStyleAttributes)try{const $=wy(_+" {"+P+"}",{map:!1}),B=j($,e.allowedStyles);if(P=L(B),P.length===0){delete C.attribs[G];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+_+" {"+P+`}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`),delete C.attribs[G];return}else if(e.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}n+=" "+G,P&&P.length?n+='="'+A(P,!0)+'"':e.allowedEmptyAttributes.includes(G)&&(n+='=""')}else delete C.attribs[G]}),e.selfClosing.indexOf(_)!==-1?n+=" />":(n+=">",C.innerText&&!R&&!e.textFilter&&(n+=A(C.innerText),k=!0)),W&&(n=a+A(n),a="")},ontext:function(_){if(S)return;const M=y[y.length-1];let C;if(M&&(C=M.tag,_=M.innerText!==void 0?M.innerText:_),e.disallowedTagsMode==="completelyDiscard"&&!o(C))_="";else if((e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&(C==="script"||C==="style"))n+=_;else{const W=A(_,!1);e.textFilter&&!k?n+=e.textFilter(W,C):k||(n+=W)}if(y.length){const W=y[y.length-1];W.text+=_}},onclosetag:function(_,M){if(S)if(w--,!w)S=!1;else return;const C=y.pop();if(!C)return;if(C.tag!==_){y.push(C);return}S=e.enforceHtmlBoundary?_==="html":!1,x--;const W=g[x];if(W){if(delete g[x],e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){C.updateParentNodeText();return}a=n,n=""}if(E[x]&&(_=E[x],delete E[x]),e.exclusiveFilter&&e.exclusiveFilter(C)){n=n.substr(0,C.tagPosition);return}if(C.updateParentNodeMediaChildren(),C.updateParentNodeText(),e.selfClosing.indexOf(_)!==-1||M&&!o(_)&&["escape","recursiveEscape"].indexOf(e.disallowedTagsMode)>=0){W&&(n=a,a="");return}n+="</"+_+">",W&&(n=a+A(n),a=""),k=!1}},e.parser);return p.write(t),p.end(),n;function N(){n="",x=0,y=[],g={},E={},S=!1,w=0}function A(_,M){return typeof _!="string"&&(_=_+""),e.parser.decodeEntities&&(_=_.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),M&&(_=_.replace(/"/g,"&quot;"))),_=_.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),M&&(_=_.replace(/"/g,"&quot;")),_}function V(_,M){for(M=M.replace(/[\x00-\x20]+/g,"");;){const R=M.indexOf("<!--");if(R===-1)break;const Z=M.indexOf("-->",R+4);if(Z===-1)break;M=M.substring(0,R)+M.substring(Z+3)}const C=M.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!C)return M.match(/^[/\\]{2}/)?!e.allowProtocolRelative:!1;const W=C[1].toLowerCase();return Ut(e.allowedSchemesByTag,_)?e.allowedSchemesByTag[_].indexOf(W)===-1:!e.allowedSchemes||e.allowedSchemes.indexOf(W)===-1}function z(_){if(_=_.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),_.startsWith("relative:"))throw new Error("relative: exploit attempt");let M="relative://relative-site";for(let R=0;R<100;R++)M+=`/${R}`;const C=new URL(_,M);return{isRelativeUrl:C&&C.hostname==="relative-site"&&C.protocol==="relative:",url:C}}function j(_,M){if(!M)return _;const C=_.nodes[0];let W;return M[C.selector]&&M["*"]?W=Sc(M[C.selector],M["*"]):W=M[C.selector]||M["*"],W&&(_.nodes[0].nodes=C.nodes.reduce(I(W),[])),_}function L(_){return _.nodes[0].nodes.reduce(function(M,C){return M.push(`${C.prop}:${C.value}${C.important?" !important":""}`),M},[]).join(";")}function I(_){return function(M,C){return Ut(_,C.prop)&&_[C.prop].some(function(R){return R.test(C.value)})&&M.push(C),M}}function H(_,M,C){return M?(_=_.split(/\s+/),_.filter(function(W){return M.indexOf(W)!==-1||C.some(function(R){return R.test(W)})}).join(" ")):_}}const Sy={decodeEntities:!0};Ea.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","main","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0};Ea.simpleTransform=function(t,e,r){return r=r===void 0?!0:r,e=e||{},function(n,a){let s;if(r)for(s in e)a[s]=e[s];else a=e;return{tagName:t,attribs:a}}};var ff=J&&J.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Hi,"__esModule",{value:!0});Hi.TagTransformingSanitizer=void 0;const je=ff(Dn),Dy=ff(ky),Tc=ht,Ty=Fn,Cc=Ca;class Cy{constructor(e,r){this.sanitizationErrors=[],this.validate(e),Ty.Localization.validate(r),this.localization=r,this.options=e}sanitize(e){return(0,Dy.default)(e,this.generateSanitizeConfig())}getErrors(){return this.sanitizationErrors}generateSanitizeConfig(){return{allowedTags:Cc.StaticConfig.sanitization.allowedTags,allowedAttributes:{iframe:["src","width","height","frameborder","allowfullscreen","webkitallowfullscreen","mozallowfullscreen"],div:["class","title"],td:["style"],img:["src","alt"],a:["href","rel","title","class","target","id"]},allowedSchemes:["http","https","hive"],transformTags:{iframe:(e,r)=>{const n=r.src;for(const s of Cc.StaticConfig.sanitization.iframeWhitelist)if(s.re.test(n)){const o=typeof s.fn=="function"?s.fn(n):n;if(!o)break;return{tagName:"iframe",attribs:{src:o,width:this.options.iframeWidth+"",height:this.options.iframeHeight+"",frameborder:"0",allowfullscreen:"allowfullscreen",webkitallowfullscreen:"webkitallowfullscreen",mozallowfullscreen:"mozallowfullscreen"}}}return Tc.Log.log().warn('Blocked, did not match iframe "src" white list urls:',e,r),this.sanitizationErrors.push("Invalid iframe URL: "+n),{tagName:"div",text:`(Unsupported ${n})`,attribs:{}}},img:(e,r)=>{if(this.options.noImage)return{tagName:"div",text:this.localization.noImage,attribs:{}};const{src:n,alt:a}=r;if(!/^(https?:)?\/\//i.test(n))return Tc.Log.log().warn("Blocked, image tag src does not appear to be a url",e,r),this.sanitizationErrors.push("An image in this post did not save properly."),{tagName:"img",attribs:{src:"brokenimg.jpg"}};const s={};return s.src=n.replace(/^http:\/\//i,"//"),a&&a!==""&&(s.alt=a),{tagName:e,attribs:s}},div:(e,r)=>{const n={},s=["pull-right","pull-left","text-justify","text-rtl","text-center","text-right","videoWrapper","phishy"].find(c=>r.class===c);return s&&(n.class=s),s==="phishy"&&r.title===this.localization.phishingWarning&&(n.title=r.title),{tagName:e,attribs:n}},td:(e,r)=>{const n={};return r.style==="text-align:right"&&(n.style="text-align:right"),{tagName:e,attribs:n}},a:(e,r)=>{const n=Object.assign({},r);let{href:a}=r;return a&&(a=a.trim(),n.href=a),a&&!this.options.isLinkSafeFn(a)&&(n.rel=this.options.addNofollowToLinks?"nofollow noopener":"noopener",n.title=this.localization.phishingWarning,n.target=this.options.addTargetBlankToLinks?"_blank":"_self"),a&&this.options.addExternalCssClassToMatchingLinksFn(a)?n.class=this.options.cssClassForExternalLinks?this.options.cssClassForExternalLinks:"":n.class=this.options.cssClassForInternalLinks?this.options.cssClassForInternalLinks:"",{tagName:e,attribs:n}}}}}validate(e){(0,je.default)(e,"TagsSanitizerOptions",je.default.object),(0,je.default)(e.iframeWidth,"TagsSanitizerOptions.iframeWidth",je.default.number.integer.positive),(0,je.default)(e.iframeHeight,"TagsSanitizerOptions.iframeHeight",je.default.number.integer.positive),(0,je.default)(e.addNofollowToLinks,"TagsSanitizerOptions.addNofollowToLinks",je.default.boolean),(0,je.default)(e.addTargetBlankToLinks,"TagsSanitizerOptions.addTargetBlankToLinks",je.default.optional.boolean),(0,je.default)(e.cssClassForInternalLinks,"TagsSanitizerOptions.cssClassForInternalLinks",je.default.optional.string),(0,je.default)(e.cssClassForExternalLinks,"TagsSanitizerOptions.cssClassForExternalLinks",je.default.optional.string),(0,je.default)(e.noImage,"TagsSanitizerOptions.noImage",je.default.boolean),(0,je.default)(e.isLinkSafeFn,"TagsSanitizerOptions.isLinkSafeFn",je.default.function),(0,je.default)(e.addExternalCssClassToMatchingLinksFn,"TagsSanitizerOptions.addExternalCssClassToMatchingLinksFn",je.default.function)}}Hi.TagTransformingSanitizer=Cy;var Oy=J&&J.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ua,"__esModule",{value:!0});ua.DefaultRenderer=void 0;const ue=Oy(Dn),$y=Wm,Py=bn,Ly=yn,Oc=Fn,My=zi,Iy=Hi;class Fy{constructor(e,r=Oc.Localization.DEFAULT){this.validate(e),this.options=e,Oc.Localization.validate(r),this.tagTransformingSanitizer=new Iy.TagTransformingSanitizer({iframeWidth:this.options.assetsWidth,iframeHeight:this.options.assetsHeight,addNofollowToLinks:this.options.addNofollowToLinks,addTargetBlankToLinks:this.options.addTargetBlankToLinks,cssClassForInternalLinks:this.options.cssClassForInternalLinks,cssClassForExternalLinks:this.options.cssClassForExternalLinks,noImage:this.options.doNotShowImages,isLinkSafeFn:this.options.isLinkSafeFn,addExternalCssClassToMatchingLinksFn:this.options.addExternalCssClassToMatchingLinksFn},r),this.domParser=new Ly.HtmlDOMParser({width:this.options.assetsWidth,height:this.options.assetsHeight,ipfsPrefix:this.options.ipfsPrefix,baseUrl:this.options.baseUrl,imageProxyFn:this.options.imageProxyFn,hashtagUrlFn:this.options.hashtagUrlFn,usertagUrlFn:this.options.usertagUrlFn,hideImages:this.options.doNotShowImages},r)}render(e){return(0,ue.default)(e,"input",ue.default.string.nonEmpty),this.doRender(e)}doRender(e){return e=My.PreliminarySanitizer.preliminarySanitize(e),e=this.isHtml(e)?e:this.renderMarkdown(e),e=this.wrapRenderedTextWithHtmlIfNeeded(e),e=this.domParser.parse(e).getParsedDocumentAsString(),e=this.sanitize(e),Py.SecurityChecker.checkSecurity(e,{allowScriptTag:this.options.allowInsecureScriptTags}),e=this.domParser.embedder.insertAssets(e),e}renderMarkdown(e){return new $y.Remarkable({html:!0,breaks:this.options.breaks,typographer:!1,quotes:"“”‘’"}).render(e)}wrapRenderedTextWithHtmlIfNeeded(e){return e.indexOf("<html>")!==0&&(e="<html>"+e+"</html>"),e}isHtml(e){let r=!1;const n=e.match(/^<html>([\S\s]*)<\/html>$/);return n&&n.length===2?(r=!0,e=n[1]):r=/^<p>[\S\s]*<\/p>/.test(e),r}sanitize(e){return this.options.skipSanitization?e:this.tagTransformingSanitizer.sanitize(e)}validate(e){(0,ue.default)(e,"RendererOptions",ue.default.object),(0,ue.default)(e.baseUrl,"RendererOptions.baseUrl",ue.default.string.nonEmpty),(0,ue.default)(e.breaks,"RendererOptions.breaks",ue.default.boolean),(0,ue.default)(e.skipSanitization,"RendererOptions.skipSanitization",ue.default.boolean),(0,ue.default)(e.addNofollowToLinks,"RendererOptions.addNofollowToLinks",ue.default.boolean),(0,ue.default)(e.addTargetBlankToLinks,"RendererOptions.addTargetBlankToLinks",ue.default.optional.boolean),(0,ue.default)(e.cssClassForInternalLinks,"RendererOptions.cssClassForInternalLinks",ue.default.optional.string),(0,ue.default)(e.cssClassForExternalLinks,"RendererOptions.cssClassForExternalLinks",ue.default.optional.string),(0,ue.default)(e.doNotShowImages,"RendererOptions.doNotShowImages",ue.default.boolean),(0,ue.default)(e.ipfsPrefix,"RendererOptions.ipfsPrefix",ue.default.optional.string),(0,ue.default)(e.assetsWidth,"RendererOptions.assetsWidth",ue.default.number.integer.positive),(0,ue.default)(e.assetsHeight,"RendererOptions.assetsHeight",ue.default.number.integer.positive),(0,ue.default)(e.imageProxyFn,"RendererOptions.imageProxyFn",ue.default.function),(0,ue.default)(e.hashtagUrlFn,"RendererOptions.hashtagUrlFn",ue.default.function),(0,ue.default)(e.usertagUrlFn,"RendererOptions.usertagUrlFn",ue.default.function),(0,ue.default)(e.isLinkSafeFn,"RendererOptions.isLinkSafeFn",ue.default.function),(0,ue.default)(e.addExternalCssClassToMatchingLinksFn,"RendererOptions.addExternalCssClassToMatchingLinksFn",ue.default.function)}}ua.DefaultRenderer=Fy;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.HiveContentRenderer=t.DefaultRenderer=void 0;const e=ua;var r=ua;Object.defineProperty(t,"DefaultRenderer",{enumerable:!0,get:function(){return r.DefaultRenderer}}),t.HiveContentRenderer={DefaultRenderer:e.DefaultRenderer},t.default=t.HiveContentRenderer})(Zc);function Ry({sort:t="trending",tag:e="",observer:r="hive.blog",limit:n=20,showSortDropdown:a=!0,onAuthorClick:s,onPostClick:o,onCommunityClick:c,onPayoutClick:u,onUpvoteClick:f,onCommentClick:l,onReblogClick:h}){const[d,m]=T.useState([]),[b,x]=T.useState(!0),[y,g]=T.useState(null),[E,S]=T.useState(t),[w,k]=T.useState(!0),[p,N]=T.useState(!1),A=T.useRef(null);new Zc.DefaultRenderer({baseUrl:"https://hive.blog/",breaks:!0,skipSanitization:!1,allowInsecureScriptTags:!1,addNofollowToLinks:!0,doNotShowImages:!1,assetsWidth:640,assetsHeight:480,imageProxyFn:_=>_,usertagUrlFn:_=>`/@${_}`,hashtagUrlFn:_=>`/trending/${_}`,isLinkSafeFn:_=>!0,addExternalCssClassToMatchingLinksFn:_=>!0,ipfsPrefix:"https://ipfs.io/ipfs/"});const V=T.useCallback(async(_,M=!1)=>{M?N(!0):(x(!0),k(!0)),g(null);try{const C=M&&d.length>0?d[d.length-1]:null,W=await Fe.getRankedPosts(_,e,r,n,C==null?void 0:C.author,C==null?void 0:C.permlink);M?(m(R=>{const Z=new Set(R.map(G=>G.post_id)),P=W.filter(G=>!Z.has(G.post_id));return[...R,...P]}),k(W.length===n)):(m(W),k(W.length===n))}catch(C){g(C instanceof Error?C.message:"Failed to load posts"),k(!1)}finally{x(!1),N(!1)}},[e,r,n,d]),z=T.useCallback(()=>{!p&&w&&!b&&V(E,!0)},[p,w,b,E,V]);T.useEffect(()=>{V(E)},[E,e,r,n]),T.useEffect(()=>{const _=new IntersectionObserver(M=>{M[0].isIntersecting&&z()},{threshold:1});return A.current&&_.observe(A.current),()=>{A.current&&_.unobserve(A.current)}},[z]);const j=_=>{S(_),m([]),k(!0)},L=_=>_>=1e6?`${(_/1e6).toFixed(1)}M`:_>=1e3?`${(_/1e3).toFixed(1)}K`:_.toString(),I=_=>{var Z;const M=_.payout*.5,C=_.payout*.5,R=(((Z=_.beneficiaries.find(P=>P.account==="commentrewarder"))==null?void 0:Z.weight)||0)/1e4*100;return{pending:`$${_.payout.toFixed(2)}`,breakdown:`${M.toFixed(2)} HBD, ${C.toFixed(2)} HP`,commentRewarder:`${R.toFixed(2)}%`,payoutInDays:Math.ceil((new Date(_.payout_at).getTime()-Date.now())/(1e3*60*60*24))}},H=_=>{const C=(_.body||"").replace(/!\[[^\]]*\]\([^)]+\)/g,"").replace(/\[([^\]]+)\]\([^)]+\)/g,"$1").replace(/^#+\s*/gm,"").replace(/\*\*([^*]+)\*\*/g,"$1").replace(/\*([^*]+)\*/g,"$1").replace(/`([^`]+)`/g,"$1").replace(/<[^>]*>/g,"").replace(/\n+/g," ").trim();return C.length>200?C.substring(0,200)+"...":C};return b?i.jsx("div",{className:"flex justify-center items-center min-h-[400px]",children:i.jsx(q.Loader2,{className:"w-8 h-8 animate-spin"})}):y?i.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[400px] space-y-4",children:[i.jsx("h3",{className:"text-lg font-semibold text-card-foreground",children:"Failed to load posts"}),i.jsx("p",{className:"text-muted-foreground",children:y}),i.jsx("button",{onClick:()=>V(E),className:"px-4 py-2 bg-primary text-primary-foreground rounded-lg hover:bg-primary/90",children:"Retry"})]}):i.jsxs("div",{className:"space-y-6",children:[a&&i.jsx("div",{className:"flex justify-center",children:i.jsxs("select",{value:E,onChange:_=>j(_.target.value),className:"px-4 py-2 border border-border rounded-lg bg-card text-card-foreground focus:outline-none focus:ring-2 focus:ring-primary",children:[i.jsx("option",{value:"trending",children:"Trending"}),i.jsx("option",{value:"hot",children:"Hot"}),i.jsx("option",{value:"created",children:"New"})]})}),i.jsxs("div",{className:"space-y-4",children:[d.map(_=>{var W,R,Z;const M=(R=(W=_.json_metadata)==null?void 0:W.image)==null?void 0:R[0],C=I(_);return i.jsxs("div",{className:"bg-slate-50 dark:bg-slate-800 border border-border rounded-xl p-4 shadow-card hover:shadow-card-hover transition-shadow",children:[i.jsxs("div",{className:"flex items-center gap-2 mb-3 flex-wrap",children:[i.jsx("img",{src:`https://images.hive.blog/u/${_.author}/avatar`,alt:_.author,className:"w-8 h-8 rounded-full cursor-pointer flex-shrink-0",onClick:()=>s==null?void 0:s(_.author,`https://images.hive.blog/u/${_.author}/avatar`),onError:P=>{P.target.src=`https://ui-avatars.com/api/?name=${_.author}&background=random`}}),i.jsx("span",{className:"font-medium cursor-pointer hover:text-primary",onClick:()=>s==null?void 0:s(_.author,`https://images.hive.blog/u/${_.author}/avatar`),children:_.author}),i.jsxs("span",{className:"text-muted-foreground",children:["(",_.author_reputation.toFixed(2),")"]}),i.jsx("span",{className:"text-muted-foreground cursor-pointer hover:text-primary",onClick:()=>c==null?void 0:c(_.community_title),children:_.community_title}),i.jsx("span",{className:"text-muted-foreground hidden sm:inline",children:"•"}),i.jsx("span",{className:"text-muted-foreground text-sm",children:Xs.formatDistanceToNow(new Date(_.created+"Z"),{addSuffix:!0})})]}),i.jsxs("div",{className:"flex gap-3 sm:gap-4",children:[i.jsx("div",{className:"flex-shrink-0",children:M?i.jsxs("div",{className:"relative",children:[i.jsx("img",{src:M.startsWith("http")?M:`https://images.hive.blog/u/320x0/${M}`,alt:_.title,className:"w-20 h-20 sm:w-32 sm:h-32 object-cover rounded-lg cursor-pointer",onClick:()=>o==null?void 0:o(_),onError:P=>{P.target.src!==`https://images.hive.blog/u/${_.author}/avatar`?P.target.src=`https://images.hive.blog/u/${_.author}/avatar`:P.target.src="https://images.hive.blog/u/null/avatar"}}),(()=>{var G,ne;const P=((ne=(G=_.body)==null?void 0:G.match(/!\[[^\]]*\]\(([^)]+)\)/g))==null?void 0:ne.map($=>{const B=$.match(/\(([^)]+)\)/);return B?B[1]:null}).filter(Boolean))||[];return P.length>0?i.jsx("div",{className:"absolute -bottom-1 -right-1 sm:-bottom-2 sm:-right-2 flex space-x-1",children:P.slice(0,3).map(($,B)=>i.jsx("img",{src:$,alt:`body-image-${B}`,className:"w-6 h-6 sm:w-8 sm:h-8 object-cover rounded border-2 border-white shadow-sm cursor-pointer",onClick:re=>{var te,pe;re.stopPropagation();const X=(pe=(te=re.currentTarget.parentElement)==null?void 0:te.parentElement)==null?void 0:pe.querySelector("img:not(.w-6):not(.w-8)");X&&(X.src=$)}},B))}):null})()]}):i.jsx("img",{src:`https://images.hive.blog/u/${_.author}/avatar`,alt:_.author,className:"w-20 h-20 sm:w-32 sm:h-32 rounded-lg cursor-pointer",onClick:()=>o==null?void 0:o(_)})}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("h3",{className:"font-semibold text-base sm:text-lg mb-1 sm:mb-2 cursor-pointer hover:text-primary line-clamp-2",onClick:()=>o==null?void 0:o(_),children:_.title}),i.jsx("p",{className:"text-gray-600 dark:text-gray-300 mb-2 sm:mb-3 line-clamp-2 sm:line-clamp-3 cursor-pointer hover:text-primary text-sm sm:text-base",onClick:()=>o==null?void 0:o(_),children:((Z=_.json_metadata)==null?void 0:Z.description)||H(_)||"No description available"}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"relative group",children:[i.jsxs("span",{className:"font-semibold text-green-600 cursor-pointer hover:text-green-700 text-sm sm:text-base",onClick:()=>u==null?void 0:u(_.payout),children:["$",_.payout.toFixed(2)]}),i.jsxs("div",{className:"absolute bottom-full left-0 mb-2 hidden group-hover:block bg-black text-white text-xs p-2 rounded shadow-lg whitespace-nowrap z-10",children:[i.jsxs("div",{children:["Pending payout amount: ",C.pending]}),i.jsxs("div",{children:["Breakdown: ",C.breakdown]}),i.jsxs("div",{children:["commentrewarder: ",C.commentRewarder]}),i.jsxs("div",{children:["Payout in ",C.payoutInDays," days"]})]})]}),i.jsxs("div",{className:"flex items-center gap-3 sm:gap-4",children:[i.jsxs("div",{className:"flex items-center gap-1 text-muted-foreground hover:text-primary transition-colors cursor-pointer",onClick:()=>f==null?void 0:f(_),children:[i.jsx(q.ThumbsUp,{className:"w-3 h-3 sm:w-4 sm:h-4"}),i.jsx("span",{className:"text-xs sm:text-sm",children:L(_.stats.total_votes)})]}),i.jsxs("div",{className:"flex items-center gap-1 text-blue-600 hover:text-blue-700 transition-colors cursor-pointer",onClick:()=>l==null?void 0:l(_),children:[i.jsx(q.MessageCircle,{className:"w-3 h-3 sm:w-4 sm:h-4"}),i.jsx("span",{className:"text-xs sm:text-sm",children:L(_.children)})]}),i.jsxs("div",{className:"flex items-center gap-1 text-gray-600 hover:text-gray-700 transition-colors cursor-pointer",onClick:()=>h==null?void 0:h(_),children:[i.jsx(q.Repeat2,{className:"w-3 h-3 sm:w-4 sm:h-4"}),i.jsx("span",{className:"text-xs sm:text-sm",children:L(_.reblogs)})]})]})]})]})]})]},_.post_id)}),p&&i.jsxs("div",{className:"flex justify-center items-center py-4",children:[i.jsx(q.Loader2,{className:"w-6 h-6 animate-spin"}),i.jsx("span",{className:"ml-2 text-muted-foreground",children:"Loading more posts..."})]}),w&&!p&&i.jsx("div",{ref:A,className:"h-10"})]})]})}const Pr=class Pr{static getInstance(){return Pr.instance||(Pr.instance=new Pr),Pr.instance}async getProposals(e){return e==="expired"?this.getExpiredProposals():this.getActiveProposals()}async getActiveProposals(){try{const n=(await(await fetch("https://api.hive.blog/",{method:"POST",headers:{accept:"application/json, text/plain, */*","accept-language":"en-GB,en-US;q=0.9,en;q=0.8,hi;q=0.7","content-type":"application/json",origin:"https://peakd.com","sec-ch-ua":'"Google Chrome";v="141", "Not?A_Brand";v="8", "Chromium";v="141"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"macOS"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36"},body:JSON.stringify({id:72,jsonrpc:"2.0",method:"database_api.list_proposals",params:{start:[-1],limit:500,order:"by_total_votes",order_direction:"descending",status:"votable"}})})).json()).result.proposals,s=await(await fetch("https://stats.hivehub.dev/dhf_proposals")).json(),o={};s.forEach(h=>{o[h.proposal_id]=h});const f=(await(await fetch("https://api.hive.blog/",{method:"POST",headers:{accept:"application/json, text/plain, */*","accept-language":"en-GB,en-US;q=0.9,en;q=0.8,hi;q=0.7","content-type":"application/json",origin:"https://peakd.com","sec-ch-ua":'"Google Chrome";v="141", "Not?A_Brand";v="8", "Chromium";v="141"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"macOS"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36"},body:JSON.stringify({id:73,jsonrpc:"2.0",method:"database_api.list_proposal_votes",params:{start:["shaktimaaan"],limit:1e3,order:"by_voter_proposal",order_direction:"ascending",status:"votable"}})})).json()).result.proposal_votes||[],l={};return f.forEach(h=>{l[h.proposal.proposal_id]||(l[h.proposal.proposal_id]=[]),l[h.proposal.proposal_id].push(h)}),n.map(h=>{const d=h.id,m=o[d],b=l[d]||[],x=b.reduce((y,g)=>y+parseFloat(g.total_hbd||"0"),0);return{proposal_id:d,subject:h.subject,permlink:h.permlink,creator:h.creator,receiver:h.receiver,start_date:h.start_date,end_date:h.end_date,total_hbd_received:m?m.total_hbd_received:"0",max_hbd_remaining:m?m.max_hbd_remaining:"0",all_votes_num:h.total_votes||"0",all_votes_hp:m?m.all_votes_hp:x.toString(),votes:m?m.votes:b,status:h.status,daily_pay:h.daily_pay,total_votes:h.total_votes,daily_pay_hbd:h.daily_pay?Number(h.daily_pay.amount)/Math.pow(10,h.daily_pay.precision):0,remaining_days:Math.max(0,Math.ceil((new Date(h.end_date).getTime()-new Date().getTime())/(1e3*60*60*24))),vote_value_total:m?parseFloat(m.all_votes_hp):x}})}catch(e){return console.error("Error fetching active proposals:",e),[]}}async getExpiredProposals(){try{const n=(await(await fetch("https://api.hive.blog/",{method:"POST",headers:{accept:"application/json, text/plain, */*","accept-language":"en-GB,en-US;q=0.9,en;q=0.8,hi;q=0.7","content-type":"application/json",origin:"https://peakd.com","sec-ch-ua":'"Google Chrome";v="141", "Not?A_Brand";v="8", "Chromium";v="141"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"macOS"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36"},body:JSON.stringify({id:65,jsonrpc:"2.0",method:"database_api.list_proposals",params:{start:[-1],limit:500,order:"by_total_votes",order_direction:"descending",status:"expired"}})})).json()).result.proposals,s=await(await fetch("https://stats.hivehub.dev/dhf_proposals")).json(),o={};s.forEach(h=>{o[h.proposal_id]=h});const f=(await(await fetch("https://api.hive.blog/",{method:"POST",headers:{accept:"application/json, text/plain, */*","accept-language":"en-GB,en-US;q=0.9,en;q=0.8,hi;q=0.7","content-type":"application/json",origin:"https://peakd.com","sec-ch-ua":'"Google Chrome";v="141", "Not?A_Brand";v="8", "Chromium";v="141"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"macOS"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36"},body:JSON.stringify({id:76,jsonrpc:"2.0",method:"database_api.list_proposal_votes",params:{start:["shaktimaaan"],limit:1e3,order:"by_voter_proposal",order_direction:"ascending",status:"expired"}})})).json()).result.proposal_votes||[],l={};return f.forEach(h=>{l[h.proposal_id]||(l[h.proposal_id]=[]),l[h.proposal_id].push(h)}),n.map(h=>{const d=h.id,m=o[d],b=l[d]||[],x=b.reduce((y,g)=>y+parseFloat(g.total_hbd||"0"),0);return{proposal_id:d,subject:h.subject,permlink:h.permlink,creator:h.creator,receiver:h.receiver,start_date:h.start_date,end_date:h.end_date,total_hbd_received:m?m.total_hbd_received:"0",max_hbd_remaining:m?m.max_hbd_remaining:"0",all_votes_num:h.total_votes||"0",all_votes_hp:m?m.all_votes_hp:x.toString(),votes:m?m.votes:b,status:h.status,daily_pay:h.daily_pay,total_votes:h.total_votes,daily_pay_hbd:h.daily_pay?Number(h.daily_pay.amount)/Math.pow(10,h.daily_pay.precision):0,remaining_days:0,vote_value_total:m?parseFloat(m.all_votes_hp):x}})}catch(e){return console.error("Error fetching expired proposals:",e),[]}}};Gn(Pr,"instance");let tu=Pr;const $c=tu.getInstance(),By=["All","Active","Upcoming","Expired","By Peak Projects"],hf=["Votes","Start Date","End Date","Creator"],Pc=t=>t==="By Peak Projects"?["Creator"]:hf,ze=t=>{const e=typeof t=="string"?parseFloat(t):t;return isNaN(e)?t.toString():e.toLocaleString()},ko=t=>{const e=new Date(t.start_date),r=new Date(t.end_date);return`(${Math.ceil((r.getTime()-e.getTime())/(1e3*60*60*24))} days)`},Vy=({onClickSupport:t,onClickVoteValue:e,onClickSelect:r,onClickUser:n,onClickAvatar:a})=>{const[s,o]=T.useState([]),[c,u]=T.useState("All"),[f,l]=T.useState("Votes");T.useEffect(()=>{c==="By Peak Projects"&&!Pc(c).includes(f)?l("Creator"):c!=="By Peak Projects"&&f==="Creator"&&!hf.includes(f)&&l("Votes")},[c,f]);const[h,d]=T.useState(!0);T.useEffect(()=>{(async()=>{d(!0);try{const[y,g]=await Promise.all([$c.getProposals("active"),$c.getProposals("expired")]);o([...y,...g])}catch(y){console.error("Error fetching proposals:",y),o([])}d(!1)})()},[]);const m=s.filter(x=>c==="All"?x.status==="active"||new Date(x.start_date+"Z")>new Date:c==="Active"?x.status==="active":c==="Upcoming"?new Date(x.start_date+"Z")>new Date:c==="Expired"?new Date(x.end_date+"Z")<new Date:c==="By Peak Projects"?x.creator==="peakd":!0).sort((x,y)=>c==="By Peak Projects"?y.creator.localeCompare(x.creator):0),b=c==="All"?(()=>{const x=m.filter(E=>E.status==="active"),y=m.filter(E=>new Date(E.start_date+"Z")>new Date),g=(E,S)=>f==="Votes"?Number(S.all_votes_num)-Number(E.all_votes_num):f==="Start Date"?new Date(S.start_date+"Z").getTime()-new Date(E.start_date+"Z").getTime():f==="End Date"?new Date(E.end_date+"Z").getTime()-new Date(S.end_date+"Z").getTime():f==="Creator"?E.creator.localeCompare(S.creator):0;return[...x.sort(g),...y.sort(g)]})():m.sort((x,y)=>f==="Votes"?Number(y.all_votes_num)-Number(x.all_votes_num):f==="Start Date"?new Date(y.start_date+"Z").getTime()-new Date(x.start_date+"Z").getTime():f==="End Date"?new Date(x.end_date+"Z").getTime()-new Date(y.end_date+"Z").getTime():f==="Creator"?x.creator.localeCompare(y.creator):0);return h?i.jsx("div",{className:"flex justify-center items-center py-8",children:i.jsx("div",{className:"text-gray-600 dark:text-gray-400",children:"Loading proposals..."})}):i.jsxs("div",{children:[i.jsx("div",{className:"flex gap-2 mb-4 flex-wrap",children:By.map(x=>i.jsx("button",{className:`px-3 py-1 rounded text-sm ${c===x?"bg-blue-500 text-white":"bg-gray-200 dark:bg-gray-700 text-gray-700 dark:text-gray-300"}`,onClick:()=>u(x),children:x},x))}),i.jsxs("div",{className:"mb-4",children:[i.jsx("label",{className:"text-gray-700 dark:text-gray-300 mr-2",children:"Sort by:"}),i.jsx("select",{value:f,onChange:x=>l(x.target.value),className:"px-3 py-1 border border-gray-300 dark:border-gray-600 rounded bg-white dark:bg-gray-800 text-gray-900 dark:text-gray-100",children:Pc(c).map(x=>i.jsx("option",{value:x,children:x},x))})]}),i.jsxs("div",{children:[c==="All"&&(()=>{const x=b.filter(g=>g.status==="active"),y=b.filter(g=>new Date(g.start_date+"Z")>new Date);return i.jsxs(i.Fragment,{children:[x.map(g=>i.jsx("div",{className:"border border-gray-200 dark:border-gray-700 rounded-lg mb-4 p-2 sm:p-4 shadow bg-white dark:bg-gray-800",children:i.jsxs("div",{className:"flex flex-col sm:flex-row",children:[i.jsxs("div",{className:"flex-1",children:[i.jsxs("div",{className:"flex items-center mb-2",children:[i.jsx("span",{onClick:()=>a(g),className:"inline-block mr-2 cursor-pointer",children:i.jsx("img",{src:`https://images.hive.blog/u/${g.creator}/avatar`,className:"w-8 h-8 rounded-full inline",alt:`${g.creator} avatar`})}),i.jsxs("span",{className:"font-bold cursor-pointer text-gray-900 dark:text-gray-100",onClick:()=>n(g),children:["by ",g.creator]}),g.receiver&&i.jsxs("span",{className:"ml-2 text-gray-500 dark:text-gray-400",children:["with receiver ",i.jsx("strong",{className:"text-gray-900 dark:text-gray-100",children:g.receiver})]})]}),i.jsxs("div",{className:"cursor-pointer text-lg font-semibold mb-1 text-gray-900 dark:text-gray-100",onClick:()=>r(g),children:[g.subject," ",i.jsxs("span",{className:"cursor-pointer text-lg font-semibold mb-1 text-gray-600 dark:text-gray-500",children:["#",g.proposal_id]})]}),i.jsxs("div",{className:"text-sm text-gray-500 dark:text-gray-400 mb-2",children:[i.jsx("span",{className:`inline-block px-2 py-1 rounded text-xs font-medium ${new Date(g.start_date+"Z")>new Date?"bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200":new Date(g.end_date+"Z")<new Date?"bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200":g.status==="active"?"bg-purple-100 text-purple-800 dark:bg-purple-900 dark:text-purple-200":"bg-gray-100 text-gray-800 dark:bg-gray-700 dark:text-gray-300"}`,children:new Date(g.start_date+"Z")>new Date?"upcoming":new Date(g.end_date+"Z")<new Date?"expired":g.status})," - "+new Date(g.start_date+"Z").toLocaleDateString()+" - "+new Date(g.end_date+"Z").toLocaleDateString()," ",i.jsx("span",{className:"text-xs text-gray-400 dark:text-gray-500",children:ko(g)})]}),i.jsxs("div",{className:"flex gap-2 mb-2",children:[i.jsx("button",{onClick:()=>window.open(`https://peakd.com/${g.creator}/${g.permlink}`,"_blank"),className:"text-blue-500 hover:text-blue-700 dark:text-blue-400 dark:hover:text-blue-300",title:"View on Peakd",children:i.jsx(q.ExternalLink,{size:16})}),i.jsxs("button",{onClick:()=>window.open(`https://hivehub.dev/proposals/${g.proposal_id}`,"_blank"),className:"flex text-green-500 hover:text-green-700 dark:text-green-400 dark:hover:text-green-300",title:"View Stats",children:[i.jsx(q.PieChart,{size:16})," Stats"]})]}),i.jsx("div",{className:"mb-2",children:i.jsxs("span",{className:"inline-block cursor-pointer px-2 py-1 bg-gray-100 dark:bg-gray-700 rounded text-gray-700 dark:text-gray-300",onClick:()=>e(g),children:["Vote value: ",g.vote_value_total?ze(g.vote_value_total):0," HP"]})})]}),i.jsxs("div",{className:"mt-4 sm:mt-0 sm:ml-4 w-full sm:w-48 flex flex-col space-y-1",children:[i.jsxs("div",{className:"flex justify-between",children:[i.jsx("span",{className:"font-mono text-gray-600 dark:text-gray-400 text-xs sm:text-sm",children:"Daily Pay:"}),i.jsxs("strong",{className:"text-gray-900 dark:text-gray-100 text-xs sm:text-sm",children:[g.daily_pay_hbd?ze(g.daily_pay_hbd):0," HBD"]})]}),i.jsxs("div",{className:"flex justify-between",children:[i.jsx("span",{className:"font-mono text-gray-600 dark:text-gray-400 text-xs sm:text-sm",children:"Remaining:"}),i.jsxs("strong",{className:"text-gray-900 dark:text-gray-100 text-xs sm:text-sm",children:[ze(g.remaining_days||0)," Days"]})]}),i.jsxs("div",{className:"flex justify-between",children:[i.jsx("span",{className:"font-mono text-gray-600 dark:text-gray-400 text-xs sm:text-sm",children:"Paid:"}),i.jsxs("strong",{className:"text-gray-900 dark:text-gray-100 text-xs sm:text-sm",children:[ze(g.total_hbd_received||0)," HBD"]})]}),i.jsxs("div",{className:"flex justify-between",children:[i.jsx("span",{className:"font-mono text-gray-600 dark:text-gray-400 text-xs sm:text-sm",children:"To Pay:"}),i.jsxs("strong",{className:"text-gray-900 dark:text-gray-100 text-xs sm:text-sm",children:[ze(g.max_hbd_remaining||0)," HBD"]})]}),i.jsx("div",{className:"mt-2",children:i.jsx("button",{className:"px-3 sm:px-5 py-2 bg-green-600 hover:bg-green-700 text-white rounded cursor-pointer w-full text-xs sm:text-sm",onClick:()=>t(g),children:"Support"})})]})]})},g.proposal_id)),y.length>0&&i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"my-6 text-center",children:[i.jsx("h3",{className:"text-xl font-bold text-gray-900 dark:text-gray-100 mb-2",children:"Upcoming proposals"}),i.jsx("p",{className:"text-gray-600 dark:text-gray-400",children:"The proposals listed below will start in the future. You can already support them."})]}),y.map(g=>i.jsx("div",{className:"border border-gray-200 dark:border-gray-700 rounded-lg mb-4 p-2 sm:p-4 shadow bg-white dark:bg-gray-800",children:i.jsxs("div",{className:"flex flex-col sm:flex-row",children:[i.jsxs("div",{className:"flex-1",children:[i.jsxs("div",{className:"flex items-center mb-2",children:[i.jsx("span",{onClick:()=>a(g),className:"inline-block mr-2 cursor-pointer",children:i.jsx("img",{src:`https://images.hive.blog/u/${g.creator}/avatar`,className:"w-8 h-8 rounded-full inline",alt:`${g.creator} avatar`})}),i.jsx("span",{className:"font-bold cursor-pointer text-gray-900 dark:text-gray-100",onClick:()=>n(g),children:g.creator}),i.jsxs("span",{className:"ml-2 text-gray-500 dark:text-gray-400",children:["with receiver ",i.jsx("strong",{className:"text-gray-900 dark:text-gray-100",children:g.receiver})]})]}),i.jsx("div",{className:"cursor-pointer text-lg font-semibold mb-1 text-gray-900 dark:text-gray-100",onClick:()=>r(g),children:g.subject}),i.jsxs("div",{className:"text-sm text-gray-500 dark:text-gray-400 mb-2",children:[i.jsx("span",{className:`inline-block px-2 py-1 rounded text-xs font-medium ${new Date(g.start_date+"Z")>new Date?"bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200":new Date(g.end_date+"Z")<new Date?"bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200":g.status==="active"?"bg-purple-100 text-purple-800 dark:bg-purple-900 dark:text-purple-200":"bg-gray-100 text-gray-800 dark:bg-gray-700 dark:text-gray-300"}`,children:new Date(g.start_date+"Z")>new Date?"upcoming":new Date(g.end_date+"Z")<new Date?"expired":g.status})," - "+new Date(g.start_date+"Z").toLocaleDateString()+" - "+new Date(g.end_date+"Z").toLocaleDateString()," ",i.jsx("span",{className:"text-xs text-gray-400 dark:text-gray-500",children:ko(g)})]}),i.jsxs("div",{className:"flex gap-2 mb-2",children:[i.jsx("button",{onClick:()=>window.open(`https://peakd.com/${g.creator}/${g.permlink}`,"_blank"),className:"text-blue-500 hover:text-blue-700 dark:text-blue-400 dark:hover:text-blue-300",title:"View on Peakd",children:i.jsx(q.ExternalLink,{size:16})}),i.jsxs("button",{onClick:()=>window.open(`https://hivehub.dev/proposals/${g.proposal_id}`,"_blank"),className:"flex text-green-500 hover:text-green-700 dark:text-green-400 dark:hover:text-green-300",title:"View Stats",children:[i.jsx(q.PieChart,{size:16})," Stats"]})]}),i.jsx("div",{className:"mb-2",children:i.jsxs("span",{className:"inline-block cursor-pointer px-2 py-1 bg-gray-100 dark:bg-gray-700 rounded text-gray-700 dark:text-gray-300",onClick:()=>e(g),children:["Vote value: ",g.vote_value_total?ze(g.vote_value_total):0," HP"]})})]}),i.jsxs("div",{className:"mt-4 sm:mt-0 sm:ml-4 w-full sm:w-48 flex flex-col space-y-1",children:[i.jsxs("div",{className:"flex justify-between",children:[i.jsx("span",{className:"font-mono text-gray-600 dark:text-gray-400 text-xs sm:text-sm",children:"Daily Pay:"}),i.jsxs("strong",{className:"text-gray-900 dark:text-gray-100 text-xs sm:text-sm",children:[g.daily_pay_hbd?ze(g.daily_pay_hbd):0," HBD"]})]}),i.jsxs("div",{className:"flex justify-between",children:[i.jsx("span",{className:"font-mono text-gray-600 dark:text-gray-400 text-xs sm:text-sm",children:"Remaining:"}),i.jsxs("strong",{className:"text-gray-900 dark:text-gray-100 text-xs sm:text-sm",children:[ze(g.remaining_days||0)," Days"]})]}),i.jsxs("div",{className:"flex justify-between",children:[i.jsx("span",{className:"font-mono text-gray-600 dark:text-gray-400 text-xs sm:text-sm",children:"Paid:"}),i.jsxs("strong",{className:"text-gray-900 dark:text-gray-100 text-xs sm:text-sm",children:[ze(g.total_hbd_received||0)," HBD"]})]}),i.jsxs("div",{className:"flex justify-between",children:[i.jsx("span",{className:"font-mono text-gray-600 dark:text-gray-400 text-xs sm:text-sm",children:"To Pay:"}),i.jsxs("strong",{className:"text-gray-900 dark:text-gray-100 text-xs sm:text-sm",children:[ze(g.max_hbd_remaining||0)," HBD"]})]}),i.jsx("div",{className:"mt-2",children:i.jsx("button",{className:"px-3 sm:px-5 py-2 bg-green-600 hover:bg-green-700 text-white rounded cursor-pointer w-full text-xs sm:text-sm",onClick:()=>t(g),children:"Support"})})]})]})},g.proposal_id))]})]})})(),c!=="All"&&b.map(x=>i.jsx("div",{className:"border border-gray-200 dark:border-gray-700 rounded-lg mb-4 p-2 sm:p-4 shadow bg-white dark:bg-gray-800",children:i.jsxs("div",{className:"flex flex-col sm:flex-row",children:[i.jsxs("div",{className:"flex-1",children:[i.jsxs("div",{className:"flex items-center mb-2",children:[i.jsx("span",{onClick:()=>a(x),className:"inline-block mr-2 cursor-pointer",children:i.jsx("img",{src:`https://images.hive.blog/u/${x.creator}/avatar`,className:"w-8 h-8 rounded-full inline",alt:`${x.creator} avatar`})}),i.jsx("span",{className:"font-bold cursor-pointer text-gray-900 dark:text-gray-100",onClick:()=>n(x),children:x.creator}),i.jsxs("span",{className:"ml-2 text-gray-500 dark:text-gray-400",children:["with receiver ",i.jsx("strong",{className:"text-gray-900 dark:text-gray-100",children:x.receiver})]})]}),i.jsxs("div",{className:"cursor-pointer text-lg font-semibold mb-1 text-gray-900 dark:text-gray-100",onClick:()=>r(x),children:[x.subject," #",x.proposal_id]}),i.jsxs("div",{className:"text-sm text-gray-500 dark:text-gray-400 mb-2",children:[i.jsx("span",{className:`inline-block px-2 py-1 rounded text-xs font-medium ${new Date(x.start_date+"Z")>new Date?"bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200":new Date(x.end_date+"Z")<new Date?"bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200":x.status==="active"?"bg-purple-100 text-purple-800 dark:bg-purple-900 dark:text-purple-200":"bg-gray-100 text-gray-800 dark:bg-gray-700 dark:text-gray-300"}`,children:new Date(x.start_date+"Z")>new Date?"upcoming":new Date(x.end_date+"Z")<new Date?"expired":x.status})," - "+new Date(x.start_date+"Z").toLocaleDateString()+" - "+new Date(x.end_date+"Z").toLocaleDateString()," ",i.jsx("span",{className:"text-xs text-gray-400 dark:text-gray-500",children:ko(x)})]}),i.jsxs("div",{className:"flex gap-2 mb-2",children:[i.jsx("button",{onClick:()=>window.open(`https://peakd.com/@${x.creator}/${x.permlink}`,"_blank"),className:"text-blue-500 hover:text-blue-700 dark:text-blue-400 dark:hover:text-blue-300",title:"View on Peakd",children:i.jsx(q.ExternalLink,{size:16})}),i.jsxs("button",{onClick:()=>window.open(`https://hivehub.dev/proposals/${x.proposal_id}`,"_blank"),className:"flex text-green-500 hover:text-green-700 dark:text-green-400 dark:hover:text-green-300",title:"View Stats",children:[i.jsx(q.PieChart,{size:16})," Stats"]})]}),i.jsx("div",{className:"mb-2",children:i.jsxs("span",{className:"inline-block cursor-pointer px-2 py-1 bg-gray-100 dark:bg-gray-700 rounded text-gray-700 dark:text-gray-300",onClick:()=>e(x),children:["Vote value: ",x.vote_value_total?ze(x.vote_value_total):0," HP"]})})]}),i.jsxs("div",{className:"mt-4 sm:mt-0 sm:ml-4 w-full sm:w-48 flex flex-col space-y-1",children:[i.jsxs("div",{className:"flex justify-between",children:[i.jsx("span",{className:"font-mono text-gray-600 dark:text-gray-400 text-xs sm:text-sm",children:"Daily Pay:"}),i.jsxs("strong",{className:"text-gray-900 dark:text-gray-100 text-xs sm:text-sm",children:[x.daily_pay_hbd?ze(x.daily_pay_hbd):0," HBD"]})]}),i.jsxs("div",{className:"flex justify-between",children:[i.jsx("span",{className:"font-mono text-gray-600 dark:text-gray-400 text-xs sm:text-sm",children:"Remaining:"}),i.jsxs("strong",{className:"text-gray-900 dark:text-gray-100 text-xs sm:text-sm",children:[ze(x.remaining_days||0)," Days"]})]}),c!=="Expired"&&i.jsxs("div",{className:"flex justify-between",children:[i.jsx("span",{className:"font-mono text-gray-600 dark:text-gray-400 text-xs sm:text-sm",children:"Paid:"}),i.jsxs("strong",{className:"text-gray-900 dark:text-gray-100 text-xs sm:text-sm",children:[ze(x.total_hbd_received||0)," HBD"]})]}),i.jsxs("div",{className:"flex justify-between",children:[i.jsx("span",{className:"font-mono text-gray-600 dark:text-gray-400 text-xs sm:text-sm",children:"To Pay:"}),i.jsxs("strong",{className:"text-gray-900 dark:text-gray-100 text-xs sm:text-sm",children:[ze(x.max_hbd_remaining||0)," HBD"]})]}),i.jsx("div",{className:"mt-2",children:i.jsx("button",{className:"px-3 sm:px-5 py-2 bg-green-600 hover:bg-green-700 text-white rounded cursor-pointer w-full text-xs sm:text-sm",onClick:()=>t(x),children:"Support"})})]})]})},x.proposal_id))]})]})};class qy{constructor(){Gn(this,"HIVE_API_URL","https://api.hive.blog")}async getProfile(e){const r={jsonrpc:"2.0",method:"bridge.get_profile",params:{account:e},id:1},n=await fetch(this.HIVE_API_URL,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);return await n.json()}async getFollowers(e){const r={jsonrpc:"2.0",method:"condenser_api.get_followers",params:[e,null,"blog"],id:1},n=await fetch(this.HIVE_API_URL,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);return(await n.json()).result}async getFollowing(e){const r={jsonrpc:"2.0",method:"condenser_api.get_following",params:[e,null,"blog"],id:1},n=await fetch(this.HIVE_API_URL,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);return(await n.json()).result}async getAccounts(e){const r={jsonrpc:"2.0",method:"condenser_api.get_accounts",params:[e],id:1},n=await fetch(this.HIVE_API_URL,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);return(await n.json()).result}async getDynamicGlobalProperties(){const e={jsonrpc:"2.0",method:"condenser_api.get_dynamic_global_properties",params:[],id:1},r=await fetch(this.HIVE_API_URL,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return(await r.json()).result}async convertVestingSharesToHive(e){try{const r=await this.getDynamicGlobalProperties(),n=parseFloat(e.split(" ")[0]),a=parseFloat(r.total_vesting_shares.split(" ")[0]),s=parseFloat(r.total_vesting_fund_hive.split(" ")[0]);return(n*s/a).toFixed(3)}catch(r){return console.error("Error converting vesting shares:",r),"0"}}async getFeedHistory(){const e={jsonrpc:"2.0",method:"condenser_api.get_feed_history",params:[],id:1},r=await fetch(this.HIVE_API_URL,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return(await r.json()).result}async getVoteValue(e,r=1e4){try{const n=await this.getAccounts([e]);if(n.length===0)throw new Error("Account not found!");const a=n[0],s=await this.getDynamicGlobalProperties(),o=await this.getFeedHistory(),c=parseFloat(a.vesting_shares)+parseFloat(a.received_vesting_shares)-parseFloat(a.delegated_vesting_shares)-parseFloat(a.vesting_withdraw_rate),u=Math.floor(Date.now()/1e3)-a.voting_manabar.last_update_time,f=c*1e6/4;let l=parseFloat(a.voting_manabar.current_mana.toString())+u*f/(5*60*60*24);l>f&&(l=f);const h=l*100/f,d=a.vesting_shares||"0 VESTS",m=parseFloat(d.toString().split(" ")[0]),b=s.total_vesting_shares||"0 VESTS",x=parseFloat(b.toString().split(" ")[0]),y=r/1e4,g=h*y/100,E=s.vote_power_reserve_rate*(5*60*60*24)/(60*60*24),S=g*f/100,w=parseFloat(s.recent_claims||"0"),k=s.reward_balance||"0 HIVE",p=parseFloat(k.toString().split(" ")[0]),N=s.current_supply||"0 HIVE",A=parseFloat(N.toString().split(" ")[0]),V=s.current_sbd_supply||"0 HBD",z=parseFloat(V.toString().split(" ")[0]),j=p/w*(m/x)*(S/f)*A,L=o==null?void 0:o.current_median_history;if(!L||!L.base)return"0.00";const I=parseFloat(L.base.toString().split(" ")[0]);return(j*I).toFixed(2)}catch(n){return console.error("Error calculating vote value:",n),"0.00"}}userAvatar(e){return`https://images.hive.blog/u/${e}/avatar`}}const ke=new qy,Lc=({vestingShares:t})=>{const[e,r]=T.useState("...");return T.useEffect(()=>{(async()=>{try{const a=await ke.convertVestingSharesToHive(t);r(a)}catch(a){console.error("Error calculating HP:",a);const s=parseFloat(t.split(" ")[0]);r((s/1e6).toFixed(3))}})()},[t]),i.jsxs("span",{className:"text-sm font-medium text-gray-900 dark:text-white",children:[e," HP"]})},Uy=({username:t,onClickAuthor:e,onClickAddRemoveFromLists:r,onClickFollow:n})=>{const[a,s]=T.useState([]),[o,c]=T.useState([]),[u,f]=T.useState({}),[l,h]=T.useState(!0),[d,m]=T.useState(null),[b,x]=T.useState(null),y=T.useRef(null),g=async()=>{try{h(!0),m(null);const w=await ke.getFollowers(t);if(s(w),w.length>0){const k=w.map(V=>V.follower),p=await ke.getAccounts(k);c(p);const N={},A={};for(const V of w)try{const z=await ke.getVoteValue(V.follower);A[V.follower]=z}catch(z){console.warn(`Failed to get voting data for ${V.follower}:`,z),N[V.follower]={upvotepower:"0",downvote:"0"},A[V.follower]="0.00"}f(A)}}catch(w){m(w instanceof Error?w.message:"Failed to load followers data")}finally{h(!1)}};T.useEffect(()=>{g()},[t]),T.useEffect(()=>{const w=k=>{y.current&&!y.current.contains(k.target)&&x(null)};return document.addEventListener("mousedown",w),()=>{document.removeEventListener("mousedown",w)}},[]);const E=w=>{const k=o.find(p=>p.name===w);if(!k)return null;try{const p=JSON.parse(k.posting_json_metadata);return(p==null?void 0:p.profile)||{}}catch{return{}}},S=w=>{const k=new Date,p=new Date(w),N=k.getTime()-p.getTime(),A=Math.floor(N/(1e3*60*60*24));if(Math.floor(A/30)>=1)return p.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});const z=Math.floor(N/1e3),j=Math.floor(z/60),L=Math.floor(j/60),I=Math.floor(A/7),H=Math.floor(A/365);return H>0?`${H} year${H>1?"s":""} ago`:I>0?`${I} week${I>1?"s":""} ago`:A>0?`${A} day${A>1?"s":""} ago`:L>0?`${L} hour${L>1?"s":""} ago`:j>0?`${j} minute${j>1?"s":""} ago`:"Just now"};return l?i.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:i.jsxs("div",{className:"flex items-center gap-2 text-gray-500 dark:text-gray-400",children:[i.jsx(q.Loader2,{className:"w-5 h-5 animate-spin"}),"Loading followers..."]})}):d?i.jsx("div",{className:"flex flex-col items-center justify-center min-h-[400px] space-y-4",children:i.jsxs("div",{className:"text-center",children:[i.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-2",children:"Failed to load followers"}),i.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-4",children:d}),i.jsxs("button",{onClick:g,className:"m-2 inline-flex items-center justify-center rounded-md border border-input text-gray-400 cursor-pointer bg-background p-2 text-sm font-medium text-foreground shadow-sm transition-colors hover:bg-accent hover:text-accent-foreground disabled:opacity-50 disabled:pointer-events-none",children:[i.jsx(q.RefreshCw,{className:"w-4 h-4 mr-2"}),"Try Again"]})]})}):a.length===0?i.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:i.jsx("p",{className:"text-gray-500 dark:text-gray-400",children:"This user has no followers."})}):i.jsxs("div",{className:"space-y-6",children:[i.jsx("div",{className:"hidden md:block overflow-x-auto",children:i.jsxs("table",{className:"w-full border-collapse",children:[i.jsx("thead",{children:i.jsxs("tr",{className:"border-b border-gray-200 dark:border-gray-700",children:[i.jsx("th",{className:"text-left py-3 px-4 font-semibold text-gray-900 dark:text-white",children:"Avatar"}),i.jsx("th",{className:"text-left py-3 px-4 font-semibold text-gray-900 dark:text-white",children:"Username"}),i.jsx("th",{className:"text-left py-3 px-4 font-semibold text-gray-900 dark:text-white",children:"Last Post"}),i.jsx("th",{className:"text-left py-3 px-4 font-semibold text-gray-900 dark:text-white",children:"HP"}),i.jsx("th",{className:"text-left py-3 px-4 font-semibold text-gray-900 dark:text-white",children:"Vote Value"}),i.jsx("th",{className:"text-left py-3 px-4 font-semibold text-gray-900 dark:text-white",children:"Manage"})]})}),i.jsx("tbody",{children:a.map((w,k)=>{const p=o.find(A=>A.name===w.follower),N=E(w.follower);return i.jsxs("tr",{className:"border-b border-gray-100 dark:border-gray-800 hover:bg-gray-50 dark:hover:bg-gray-800/50",children:[i.jsx("td",{className:"py-4 px-4",children:i.jsx("img",{src:(N==null?void 0:N.profile_image)||ke.userAvatar(w.follower),alt:w.follower,className:"w-12 h-12 rounded-full object-cover cursor-pointer",onClick:()=>e&&e(w.follower),onError:A=>{A.target.src=`https://ui-avatars.com/api/?name=${w.follower}&background=random`}})}),i.jsxs("td",{className:"py-4 px-4",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsxs("span",{className:"font-semibold text-gray-900 dark:text-white cursor-pointer hover:text-blue-600 dark:hover:text-blue-400",onClick:()=>e&&e(w.follower),children:["@",w.follower]}),(N==null?void 0:N.location)&&i.jsxs("div",{className:"relative group",children:[i.jsx(q.MapPin,{className:"w-4 h-4 text-gray-500 dark:text-gray-400"}),i.jsx("div",{className:"absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 px-2 py-1 bg-gray-900 text-white text-xs rounded opacity-0 group-hover:opacity-100 transition-opacity whitespace-nowrap z-10",children:N.location})]})]}),(N==null?void 0:N.about)&&i.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 mt-1 truncate max-w-xs",children:N.about})]}),i.jsx("td",{className:"py-4 px-4",children:p!=null&&p.last_post&&p.last_post!=="1970-01-01T00:00:00"?i.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:S(p.last_root_post)}):i.jsx("span",{className:"text-sm text-gray-400 dark:text-gray-500",children:"Never"})}),i.jsx("td",{className:"py-4 px-4",children:p?i.jsx(Lc,{vestingShares:p.vesting_shares}):i.jsx("span",{className:"text-sm text-gray-400 dark:text-gray-500",children:"-"})}),i.jsx("td",{className:"py-4 px-4",children:u[w.follower]?i.jsxs("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:["$",u[w.follower]]}):i.jsx("span",{className:"text-sm text-gray-400 dark:text-gray-500",children:"-"})}),i.jsx("td",{className:"py-4 px-4",children:i.jsxs("div",{className:"relative",ref:b===w.follower?y:null,children:[i.jsx("button",{onClick:()=>x(b===w.follower?null:w.follower),className:"p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors",children:i.jsx(q.MoreVertical,{className:"w-4 h-4 text-gray-600 dark:text-gray-400"})}),b===w.follower&&i.jsxs("div",{className:"absolute right-0 mt-2 w-48 bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg shadow-lg z-10",children:[i.jsxs("button",{onClick:()=>{r&&r(w.follower),x(null)},className:"w-full text-left px-4 py-2 text-sm text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 flex items-center gap-2",children:[i.jsx(q.UserPlus,{className:"w-4 h-4"}),"Add/remove from lists"]}),i.jsxs("button",{onClick:()=>{n&&n(w.follower),x(null)},className:"w-full text-left px-4 py-2 text-sm text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 flex items-center gap-2",children:[i.jsx(q.UserMinus,{className:"w-4 h-4"}),"Follow"]})]})]})})]},`${w.follower}-${k}`)})})]})}),i.jsx("div",{className:"md:hidden space-y-4",children:a.map((w,k)=>{const p=o.find(A=>A.name===w.follower),N=E(w.follower);return i.jsx("div",{className:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-xl p-4",children:i.jsxs("div",{className:"flex items-start gap-3",children:[i.jsx("img",{src:(N==null?void 0:N.profile_image)||ke.userAvatar(w.follower),alt:w.follower,className:"w-10 h-10 rounded-full object-cover cursor-pointer flex-shrink-0",onClick:()=>e&&e(w.follower),onError:A=>{A.target.src=`https://ui-avatars.com/api/?name=${w.follower}&background=random`}}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsxs("div",{className:"flex items-center justify-between mb-1",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsxs("span",{className:"font-semibold text-gray-900 dark:text-white cursor-pointer hover:text-blue-600 dark:hover:text-blue-400 text-sm",onClick:()=>e&&e(w.follower),children:["@",w.follower]}),(N==null?void 0:N.location)&&i.jsxs("div",{className:"relative group",children:[i.jsx(q.MapPin,{className:"w-3 h-3 text-gray-500 dark:text-gray-400"}),i.jsx("div",{className:"absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 px-2 py-1 bg-gray-900 text-white text-xs rounded opacity-0 group-hover:opacity-100 transition-opacity whitespace-nowrap z-10",children:N.location})]})]}),i.jsx("div",{className:"text-xs text-gray-600 dark:text-gray-400",children:p!=null&&p.last_post&&p.last_post!=="1970-01-01T00:00:00"?S(p.last_root_post):i.jsx("span",{className:"text-gray-400 dark:text-gray-500",children:"Never"})})]}),i.jsxs("div",{className:"flex items-center justify-between mt-2",children:[i.jsx("div",{className:"flex items-center gap-4",children:p&&i.jsx("div",{className:"text-xs text-gray-600 dark:text-gray-400",children:i.jsx(Lc,{vestingShares:p.vesting_shares})})}),i.jsxs("div",{className:"relative",ref:b===w.follower?y:null,children:[i.jsx("button",{onClick:()=>x(b===w.follower?null:w.follower),className:"p-1 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors",children:i.jsx(q.MoreVertical,{className:"w-3 h-3 text-gray-600 dark:text-gray-400"})}),b===w.follower&&i.jsxs("div",{className:"absolute right-0 mt-1 w-40 bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg shadow-lg z-10",children:[i.jsxs("button",{onClick:()=>{r&&r(w.follower),x(null)},className:"w-full text-left px-3 py-2 text-xs text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 flex items-center gap-2",children:[i.jsx(q.UserPlus,{className:"w-3 h-3"}),"Add/remove from lists"]}),i.jsxs("button",{onClick:()=>{n&&n(w.follower),x(null)},className:"w-full text-left px-3 py-2 text-xs text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 flex items-center gap-2",children:[i.jsx(q.UserMinus,{className:"w-3 h-3"}),"Follow"]})]})]})]})]})]})},`${w.follower}-${k}`)})})]})},Mc=({vestingShares:t})=>{const[e,r]=T.useState("...");return T.useEffect(()=>{(async()=>{try{const a=await ke.convertVestingSharesToHive(t);r(a)}catch(a){console.error("Error calculating HP:",a);const s=parseFloat(t.split(" ")[0]);r((s/1e6).toFixed(3))}})()},[t]),i.jsxs("span",{className:"text-sm font-medium text-gray-900 dark:text-white",children:[e," HP"]})},zy=({username:t,onClickAuthor:e,onClickAddRemoveFromLists:r,onClickUnfollow:n})=>{const[a,s]=T.useState([]),[o,c]=T.useState([]),[u,f]=T.useState({}),[l,h]=T.useState(!0),[d,m]=T.useState(null),[b,x]=T.useState(null),y=T.useRef(null),g=async()=>{try{h(!0),m(null);const w=await ke.getFollowing(t);if(s(w),w.length>0){const k=w.map(A=>A.following),p=await ke.getAccounts(k);c(p);const N={};for(const A of w)try{const V=await ke.getVoteValue(A.following);N[A.following]=V}catch(V){console.warn(`Failed to get voting data for ${A.following}:`,V),N[A.following]="0.00"}f(N)}}catch(w){m(w instanceof Error?w.message:"Failed to load following data")}finally{h(!1)}};T.useEffect(()=>{g()},[t]),T.useEffect(()=>{const w=k=>{y.current&&!y.current.contains(k.target)&&x(null)};return document.addEventListener("mousedown",w),()=>{document.removeEventListener("mousedown",w)}},[]);const E=w=>{const k=o.find(p=>p.name===w);if(!k)return null;try{const p=JSON.parse(k.posting_json_metadata);return(p==null?void 0:p.profile)||{}}catch{return{}}},S=w=>{const k=new Date,p=new Date(w),N=k.getTime()-p.getTime(),A=Math.floor(N/(1e3*60*60*24));if(Math.floor(A/30)>=1)return p.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});const z=Math.floor(N/1e3),j=Math.floor(z/60),L=Math.floor(j/60),I=Math.floor(A/7),H=Math.floor(A/365);return H>0?`${H} year${H>1?"s":""} ago`:I>0?`${I} week${I>1?"s":""} ago`:A>0?`${A} day${A>1?"s":""} ago`:L>0?`${L} hour${L>1?"s":""} ago`:j>0?`${j} minute${j>1?"s":""} ago`:"Just now"};return l?i.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:i.jsxs("div",{className:"flex items-center gap-2 text-gray-500 dark:text-gray-400",children:[i.jsx(q.Loader2,{className:"w-5 h-5 animate-spin"}),"Loading following..."]})}):d?i.jsx("div",{className:"flex flex-col items-center justify-center min-h-[400px] space-y-4",children:i.jsxs("div",{className:"text-center",children:[i.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-2",children:"Failed to load following"}),i.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-4",children:d}),i.jsxs("button",{onClick:g,className:"m-2 inline-flex items-center justify-center rounded-md border border-input text-gray-400 cursor-pointer bg-background p-2 text-sm font-medium text-foreground shadow-sm transition-colors hover:bg-accent hover:text-accent-foreground disabled:opacity-50 disabled:pointer-events-none",children:[i.jsx(q.RefreshCw,{className:"w-4 h-4 mr-2"}),"Try Again"]})]})}):a.length===0?i.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:i.jsx("p",{className:"text-gray-500 dark:text-gray-400",children:"This user is not following anyone."})}):i.jsxs("div",{className:"space-y-6",children:[i.jsx("div",{className:"hidden md:block overflow-x-auto",children:i.jsxs("table",{className:"w-full border-collapse",children:[i.jsx("thead",{children:i.jsxs("tr",{className:"border-b border-gray-200 dark:border-gray-700",children:[i.jsx("th",{className:"text-left py-3 px-4 font-semibold text-gray-900 dark:text-white",children:"Avatar"}),i.jsx("th",{className:"text-left py-3 px-4 font-semibold text-gray-900 dark:text-white",children:"Username"}),i.jsx("th",{className:"text-left py-3 px-4 font-semibold text-gray-900 dark:text-white",children:"Last Post"}),i.jsx("th",{className:"text-left py-3 px-4 font-semibold text-gray-900 dark:text-white",children:"HP"}),i.jsx("th",{className:"text-left py-3 px-4 font-semibold text-gray-900 dark:text-white",children:"Vote Value"}),i.jsx("th",{className:"text-left py-3 px-4 font-semibold text-gray-900 dark:text-white",children:"Manage"})]})}),i.jsx("tbody",{children:a.map((w,k)=>{const p=o.find(A=>A.name===w.following),N=E(w.following);return i.jsxs("tr",{className:"border-b border-gray-100 dark:border-gray-800 hover:bg-gray-50 dark:hover:bg-gray-800/50",children:[i.jsx("td",{className:"py-4 px-4",children:i.jsx("img",{src:(N==null?void 0:N.profile_image)||ke.userAvatar(w.following),alt:w.following,className:"w-12 h-12 rounded-full object-cover cursor-pointer",onClick:()=>e&&e(w.following),onError:A=>{A.target.src=`https://ui-avatars.com/api/?name=${w.following}&background=random`}})}),i.jsxs("td",{className:"py-4 px-4",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsxs("span",{className:"font-semibold text-gray-900 dark:text-white cursor-pointer hover:text-blue-600 dark:hover:text-blue-400",onClick:()=>e&&e(w.following),children:["@",w.following]}),(N==null?void 0:N.location)&&i.jsxs("div",{className:"relative group",children:[i.jsx(q.MapPin,{className:"w-4 h-4 text-gray-500 dark:text-gray-400"}),i.jsx("div",{className:"absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 px-2 py-1 bg-gray-900 text-white text-xs rounded opacity-0 group-hover:opacity-100 transition-opacity whitespace-nowrap z-10",children:N.location})]})]}),(N==null?void 0:N.about)&&i.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 mt-1 truncate max-w-xs",children:N.about})]}),i.jsx("td",{className:"py-4 px-4",children:p!=null&&p.last_post&&p.last_post!=="1970-01-01T00:00:00"?i.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:S(p.last_root_post)}):i.jsx("span",{className:"text-sm text-gray-400 dark:text-gray-500",children:"Never"})}),i.jsx("td",{className:"py-4 px-4",children:p?i.jsx(Mc,{vestingShares:p.vesting_shares}):i.jsx("span",{className:"text-sm text-gray-400 dark:text-gray-500",children:"-"})}),i.jsx("td",{className:"py-4 px-4",children:u[w.following]?i.jsxs("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:["$",u[w.following]]}):i.jsx("span",{className:"text-sm text-gray-400 dark:text-gray-500",children:"-"})}),i.jsx("td",{className:"py-4 px-4",children:i.jsxs("div",{className:"relative",ref:b===w.following?y:null,children:[i.jsx("button",{onClick:()=>x(b===w.following?null:w.following),className:"p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors",children:i.jsx(q.MoreVertical,{className:"w-4 h-4 text-gray-600 dark:text-gray-400"})}),b===w.following&&i.jsxs("div",{className:"absolute right-0 mt-2 w-48 bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg shadow-lg z-10",children:[i.jsxs("button",{onClick:()=>{r&&r(w.following),x(null)},className:"w-full text-left px-4 py-2 text-sm text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 flex items-center gap-2",children:[i.jsx(q.UserPlus,{className:"w-4 h-4"}),"Add/remove from lists"]}),i.jsxs("button",{onClick:()=>{n&&n(w.following),x(null)},className:"w-full text-left px-4 py-2 text-sm text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 flex items-center gap-2",children:[i.jsx(q.UserMinus,{className:"w-4 h-4"}),"Unfollow"]})]})]})})]},`${w.following}-${k}`)})})]})}),i.jsx("div",{className:"md:hidden space-y-4",children:a.map((w,k)=>{const p=o.find(A=>A.name===w.following),N=E(w.following);return i.jsx("div",{className:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-xl p-4",children:i.jsxs("div",{className:"flex items-start gap-3",children:[i.jsx("img",{src:(N==null?void 0:N.profile_image)||ke.userAvatar(w.following),alt:w.following,className:"w-10 h-10 rounded-full object-cover cursor-pointer flex-shrink-0",onClick:()=>e&&e(w.following),onError:A=>{A.target.src=`https://ui-avatars.com/api/?name=${w.following}&background=random`}}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsxs("div",{className:"flex items-center justify-between mb-1",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsxs("span",{className:"font-semibold text-gray-900 dark:text-white cursor-pointer hover:text-blue-600 dark:hover:text-blue-400 text-sm",onClick:()=>e&&e(w.following),children:["@",w.following]}),(N==null?void 0:N.location)&&i.jsxs("div",{className:"relative group",children:[i.jsx(q.MapPin,{className:"w-3 h-3 text-gray-500 dark:text-gray-400"}),i.jsx("div",{className:"absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 px-2 py-1 bg-gray-900 text-white text-xs rounded opacity-0 group-hover:opacity-100 transition-opacity whitespace-nowrap z-10",children:N.location})]})]}),i.jsx("div",{className:"text-xs text-gray-600 dark:text-gray-400",children:p!=null&&p.last_post&&p.last_post!=="1970-01-01T00:00:00"?S(p.last_root_post):i.jsx("span",{className:"text-gray-400 dark:text-gray-500",children:"Never"})})]}),i.jsxs("div",{className:"flex items-center justify-between mt-2",children:[i.jsx("div",{className:"flex items-center gap-4",children:p&&i.jsx("div",{className:"text-xs text-gray-600 dark:text-gray-400",children:i.jsx(Mc,{vestingShares:p.vesting_shares})})}),i.jsxs("div",{className:"relative",ref:b===w.following?y:null,children:[i.jsx("button",{onClick:()=>x(b===w.following?null:w.following),className:"p-1 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors",children:i.jsx(q.MoreVertical,{className:"w-3 h-3 text-gray-600 dark:text-gray-400"})}),b===w.following&&i.jsxs("div",{className:"absolute right-0 mt-1 w-40 bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg shadow-lg z-10",children:[i.jsxs("button",{onClick:()=>{r&&r(w.following),x(null)},className:"w-full text-left px-3 py-2 text-xs text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 flex items-center gap-2",children:[i.jsx(q.UserPlus,{className:"w-3 h-3"}),"Add/remove from lists"]}),i.jsxs("button",{onClick:()=>{n&&n(w.following),x(null)},className:"w-full text-left px-3 py-2 text-xs text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 flex items-center gap-2",children:[i.jsx(q.UserMinus,{className:"w-3 h-3"}),"Unfollow"]})]})]})]})]})]})},`${w.following}-${k}`)})})]})},Ic=new Ks.Client(["https://api.hive.blog","https://api.syncad.com","https://api.deathwing.me"]);class Hy{async getAccountHistory(e,r=-1,n=1e3,a,s){try{const o=[e,r,n];return a!==void 0&&s!==void 0&&o.push(a,s),(await Ic.call("condenser_api","get_account_history",o)).map(([u,f])=>({index:u,block:f.block,op:{type:f.op[0],value:f.op[1]},op_in_trx:f.op_in_trx,timestamp:f.timestamp,trx_id:f.trx_id,trx_in_block:f.trx_in_block,virtual_op:f.virtual_op}))}catch(o){return console.error("Error fetching account history:",o),[]}}async getNextAccountHistoryPage(e,r,n=1e3){try{const a=r-1;return(await Ic.call("condenser_api","get_account_history",[e,a,n])).map(([c,u])=>({index:c,block:u.block,op:{type:u.op[0],value:u.op[1]},op_in_trx:u.op_in_trx,timestamp:u.timestamp,trx_id:u.trx_id,trx_in_block:u.trx_in_block,virtual_op:u.virtual_op})).filter(c=>c.index<r)}catch(a){return console.error("Error fetching next page of account history:",a),[]}}convertToActivityListItems(e,r){return e.filter(n=>{const a=n.op.type;return a!=="effective_comment_vote"&&a!=="witness_set_properties"&&a!=="producer_reward"&&a!=="comment_reward"&&a!=="comment_payout_update"&&a!=="claim_reward_balance"&&a!=="transfer"&&a!=="claim_account"&&a!=="transfer_to_vesting"&&a!=="transfer_to_vesting_completed"}).map(n=>{const a=this.parseOperation(n,r);return{id:`${n.index}-${n.trx_id}`,type:a.type,direction:a.direction,timestamp:n.timestamp,block:n.block,description:a.description,details:n.op.value,index:n.index,...a.extraFields}}).filter(n=>n!==null)}parseOperation(e,r){const{op:n}=e,a=n.type,s=n.value;switch(a){case"vote":return this.parseVoteOperation(s,r);case"comment":return this.parseCommentOperation(s,r);case"custom_json":return this.parseCustomJsonOperation(s,r);case"comment_options":return this.parseCommentOptionsOperation(s,r);case"effective_comment_vote":return this.parseEffectiveCommentVoteOperation(s,r);case"curation_reward":return this.parseCurationRewardOperation(s,r);case"author_reward":return this.parseAuthorRewardOperation(s,r);case"comment_benefactor_reward":return this.parseCommentBenefactorRewardOperation(s,r);default:return{type:"other",direction:"out",description:`${a} operation`,extraFields:{}}}}parseVoteOperation(e,r){const{voter:n,author:a,permlink:s,weight:o}=e,c=a===r,u=c?"in":"out",f=(o/100).toFixed(0);let l="";return c?l=`${n} voted ${a}/${s} with ${f}%`:l=`Voted ${a}/${s} with ${f}%`,{type:"vote",direction:u,description:l,extraFields:{voter:n,author:a,permlink:s,weight:parseInt(f)}}}parseCommentOperation(e,r){const{author:n,parent_author:a,parent_permlink:s,permlink:o}=e,u=a===r?"in":"out",l=`Commented on ${s} by ${a||n}.`;return{type:"comment",direction:u,description:l,extraFields:{author:n,permlink:o,parent_author:a,parent_permlink:s}}}parseCustomJsonOperation(e,r){const{id:n,json:a,required_auths:s,required_posting_auths:o}=e;let c={};try{c=JSON.parse(a)}catch{}let u="Custom Json";if(n==="follow"){const[f,l]=c;f==="follow"&&(u="Custom Json")}return{type:"custom_json",direction:"out",description:u,extraFields:{}}}parseCommentOptionsOperation(e,r){const{author:n,permlink:a,max_accepted_payout:s}=e;return{type:"comment_options",direction:"out",description:"Comment Payout Update",extraFields:{author:n,permlink:a,payout:s}}}parseEffectiveCommentVoteOperation(e,r){const{voter:n,author:a,permlink:s,pending_payout:o}=e,c=a===r,u=c?"in":"out",f=c?`${n} voted on ${a}/${s} (effective vote)`:`Effective vote on ${a}/${s}`;return{type:"effective_comment_vote",direction:u,description:f,extraFields:{voter:n,author:a,permlink:s,payout:o}}}parseCurationRewardOperation(e,r){const{author:n,curator:a,permlink:s,reward:o}=e,u=a===r?"in":"out",h=`${(parseFloat(o.split(" ")[0])*1e-6).toFixed(3)} HP`,d=`Curation reward for ${a}/${s} by ${n}`;return{type:"curation_reward",direction:u,description:d,extraFields:{author:n,curator:a,permlink:s,reward:h}}}parseAuthorRewardOperation(e,r){const{author:n,permlink:a,hbd_payout:s,hive_payout:o,vesting_payout:c}=e,f=n===r?"in":"out",h=(parseFloat(c.split(" ")[0])*1e-6).toFixed(3),d=s.split(" ")[0],m=o.split(" ")[0],b=`Author reward: ${d} HBD, ${m} HIVE, ${h} HP for ${a}`;return{type:"author_reward",direction:f,description:b,extraFields:{author:n,permlink:a,hbd_payout:s,hive_payout:o,vesting_payout:c}}}parseCommentBenefactorRewardOperation(e,r){const{author:n,benefactor:a,permlink:s,hbd_payout:o,hive_payout:c,vesting_payout:u}=e,l=a===r?"in":"out",d=(parseFloat(u.split(" ")[0])*1e-6).toFixed(3),m=o.split(" ")[0],b=c.split(" ")[0],x=`Benefactor reward on ${s} by ${n}: ${m} HBD, ${b} HIVE, ${d} HP`;return{type:"comment_benefactor_reward",direction:l,description:x,extraFields:{author:n,benefactor:a,permlink:s,hbd_payout:o,hive_payout:c,vesting_payout:u}}}filterByDirection(e,r){return r==="all"?e:e.filter(n=>n.direction===r)}filterByGeneralType(e,r){if(r==="all")return e;switch(r){case"votes":return e.filter(n=>n.type==="vote"||n.type==="effective_comment_vote");case"comments":return e.filter(n=>n.type==="comment");case"replies":return e.filter(n=>n.type==="comment"&&n.direction==="in");case"others":return e.filter(n=>n.type==="custom_json"||n.type==="comment_options"||n.type==="other");default:return e}}filterByRewardType(e,r){if(r==="all")return e;switch(r){case"author":return e.filter(n=>n.type==="effective_comment_vote"&&n.direction==="in");case"curation":return e.filter(n=>n.type==="effective_comment_vote"&&n.direction==="out");case"benefactor":return e.filter(n=>{var a;return n.type==="comment_options"&&((a=n.details)==null?void 0:a.beneficiaries)});default:return e}}searchActivities(e,r){if(!r.trim())return e;const n=r.toLowerCase();return e.filter(a=>{var s,o,c;return a.description.toLowerCase().includes(n)||((s=a.author)==null?void 0:s.toLowerCase().includes(n))||((o=a.permlink)==null?void 0:o.toLowerCase().includes(n))||((c=a.voter)==null?void 0:c.toLowerCase().includes(n))})}getRelativeTime(e){try{const r=new Date(e),a=new Date().getTime()-r.getTime(),s=Math.floor(a/1e3),o=Math.floor(s/60),c=Math.floor(o/60),u=Math.floor(c/24);return s<60?`${s} seconds ago`:o<60?`${o} minutes ago`:c<24?`${c} hours ago`:u<7?`${u} days ago`:r.toLocaleDateString()}catch(r){return console.error("Error calculating relative time:",r),e}}}const hn=new Hy,Wy=({username:t,directionFilter:e="all",generalFilter:r="all",rewardFilter:n="all",searchTerm:a="",limit:s=1e3,className:o,onClickPermlink:c,onSelectActivity:u})=>{const[f,l]=T.useState(a),[h,d]=T.useState(e),[m,b]=T.useState(r),[x,y]=T.useState(n),[g,E]=T.useState([]),[S,w]=T.useState([]),[k,p]=T.useState(!1),[N,A]=T.useState(null),[V,z]=T.useState(new Set),[j,L]=T.useState(null),[I,H]=T.useState(!0),[_,M]=T.useState(!1),[C,W]=T.useState(-1),R=T.useRef(null),Z=async($=!1)=>{if(t){$?M(!0):(p(!0),H(!0),W(-1)),A(null);try{let B;$?B=await hn.getNextAccountHistoryPage(t,C,s):B=await hn.getAccountHistory(t,-1,s);const re=hn.convertToActivityListItems(B,t);if(re.sort((X,te)=>new Date(te.timestamp).getTime()-new Date(X.timestamp).getTime()),E($?X=>[...X,...re]:re),B.length>0){const X=Math.min(...B.map(te=>te.index));W(X)}re.length===0&&H(!1)}catch(B){A("Failed to load activity history"),console.error("Error loading activities:",B),H(!1)}finally{p(!1),M(!1)}}};T.useEffect(()=>{Z()},[t,s]);const P=T.useCallback(()=>{I&&!k&&!_&&Z(!0)},[I,k,_]);T.useEffect(()=>{let $=g;h!=="all"?$=$.filter(B=>B.direction===h):$=$.filter(B=>B.type!=="custom_json"&&B.type!=="comment_options"),m!=="all"&&(m==="votes"?$=$.filter(B=>B.type==="vote"||B.type==="effective_comment_vote"):m==="comments"?$=$.filter(B=>B.type==="comment"):m==="replies"?$=$.filter(B=>B.type==="comment"&&B.direction==="in"):m==="curation"?$=$.filter(B=>B.type==="curation_reward"):m==="others"&&($=g.filter(B=>B.type==="custom_json"||B.type==="comment_options"))),x!=="all"&&(x==="author"?$=$.filter(B=>B.type==="effective_comment_vote"&&B.direction==="in"):x==="curation"?$=$.filter(B=>B.type==="effective_comment_vote"&&B.direction==="out"):x==="benefactor"&&($=$.filter(B=>B.type==="comment_options"))),f&&($=$.filter(B=>{var re,X;return B.description.toLowerCase().includes(f.toLowerCase())||((re=B.author)==null?void 0:re.toLowerCase().includes(f.toLowerCase()))||((X=B.permlink)==null?void 0:X.toLowerCase().includes(f.toLowerCase()))})),w($)},[g,h,m,x,f]),T.useEffect(()=>{const $=B=>{R.current&&!R.current.contains(B.target)&&L(null)};return document.addEventListener("mousedown",$),()=>{document.removeEventListener("mousedown",$)}},[]);const G=$=>{switch($.type){case"vote":case"effective_comment_vote":return i.jsx(q.Wallet,{className:"h-4 w-4"});case"comment":return i.jsx(q.MessageCircle,{className:"h-4 w-4"});case"custom_json":return i.jsx(q.FileText,{className:"h-4 w-4"});case"curation_reward":return i.jsx(q.Wallet,{className:"h-4 w-4"});case"author_reward":return i.jsx(q.DollarSign,{className:"h-4 w-4"});case"comment_benefactor_reward":return i.jsx(q.User,{className:"h-4 w-4"});default:return i.jsx(q.Eye,{className:"h-4 w-4"})}},ne=($,B)=>$.split(/(\s+)/).map((X,te)=>{if(X.includes("/")){const[pe,De]=X.split("/");if(pe&&De)return i.jsx("span",{className:"text-blue-500 cursor-pointer hover:underline",onClick:Nt=>{Nt.stopPropagation(),console.log("Clicked permlink:",pe,De),c==null||c(pe,De)},children:X},te)}return i.jsx("span",{children:X},te)});return k?i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{className:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg p-4",children:[i.jsxs("div",{className:"flex flex-col lg:flex-row gap-4 items-start lg:items-center justify-between",children:[i.jsx("div",{className:"flex-1 max-w-md",children:i.jsxs("div",{className:"relative",children:[i.jsx("div",{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 bg-gray-200 dark:bg-gray-700 rounded animate-pulse"}),i.jsx("div",{className:"w-full h-10 bg-gray-200 dark:bg-gray-700 rounded-md animate-pulse"})]})}),i.jsx("div",{className:"flex flex-wrap gap-2",children:Array.from({length:5}).map(($,B)=>i.jsx("div",{className:"w-24 h-10 bg-gray-200 dark:bg-gray-700 rounded-md animate-pulse"},B))})]}),i.jsx("div",{className:"flex flex-wrap gap-4 mt-4 pt-4 border-t border-gray-200 dark:border-gray-700",children:Array.from({length:4}).map(($,B)=>i.jsx("div",{className:"h-4 bg-gray-200 dark:bg-gray-700 rounded animate-pulse w-20"},B))})]}),i.jsx("div",{className:"space-y-4",children:Array.from({length:5}).map(($,B)=>i.jsxs("div",{className:"flex items-center justify-between py-3 px-4 bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg",children:[i.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[i.jsx("div",{className:"w-8 h-8 bg-gray-200 dark:bg-gray-700 rounded-full animate-pulse flex-shrink-0"}),i.jsx("div",{className:"flex-1 min-w-0 space-y-2",children:i.jsx("div",{className:"h-4 bg-gray-200 dark:bg-gray-700 rounded animate-pulse w-3/4"})})]}),i.jsxs("div",{className:"flex items-center gap-1 flex-shrink-0 ml-4",children:[i.jsx("div",{className:"w-3 h-3 bg-gray-200 dark:bg-gray-700 rounded animate-pulse"}),i.jsx("div",{className:"h-4 bg-gray-200 dark:bg-gray-700 rounded animate-pulse w-16"})]})]},B))})]}):N?i.jsx("div",{className:"flex flex-col items-center justify-center min-h-[400px] space-y-4",children:i.jsxs("div",{className:"text-center",children:[i.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-2",children:"Failed to load activities"}),i.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-4",children:N}),i.jsxs("button",{onClick:()=>Z(),className:"inline-flex items-center justify-center rounded-md border border-input text-gray-400 cursor-pointer bg-background p-2 text-sm font-medium text-foreground shadow-sm transition-colors hover:bg-accent hover:text-accent-foreground disabled:opacity-50 disabled:pointer-events-none",children:[i.jsx(q.RefreshCw,{className:"w-4 h-4 mr-2"}),"Try Again"]})]})}):i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{className:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg p-4",children:[i.jsxs("div",{className:"flex flex-col lg:flex-row gap-4 items-start lg:items-center justify-between",children:[i.jsx("div",{className:"flex-1 max-w-md",children:i.jsxs("div",{className:"relative",children:[i.jsx(q.Search,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-gray-400"}),i.jsx("input",{type:"text",placeholder:"Search activities...",value:f,onChange:$=>l($.target.value),className:"w-full pl-10 pr-3 py-2 bg-gray-50 dark:bg-gray-900 border border-gray-200 dark:border-gray-700 rounded-md text-gray-900 dark:text-gray-100 placeholder-gray-500 dark:placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-blue-500"})]})}),i.jsxs("div",{className:"flex flex-wrap gap-2",children:[i.jsxs("select",{value:h,onChange:$=>d($.target.value),className:"px-3 py-2 bg-gray-50 dark:bg-gray-900 border border-gray-200 dark:border-gray-700 rounded-md text-gray-900 dark:text-gray-100 focus:outline-none focus:ring-2 focus:ring-blue-500 text-sm",children:[i.jsx("option",{value:"all",children:"All Directions"}),i.jsx("option",{value:"in",children:"Incoming"}),i.jsx("option",{value:"out",children:"Outgoing"})]}),i.jsxs("select",{value:m,onChange:$=>b($.target.value),className:"px-3 py-2 bg-gray-50 dark:bg-gray-900 border border-gray-200 dark:border-gray-700 rounded-md text-gray-900 dark:text-gray-100 focus:outline-none focus:ring-2 focus:ring-blue-500 text-sm",children:[i.jsx("option",{value:"all",children:"All Types"}),i.jsx("option",{value:"votes",children:"Votes"}),i.jsx("option",{value:"comments",children:"Comments"}),i.jsx("option",{value:"replies",children:"Replies"}),i.jsx("option",{value:"curation",children:"Curation"}),i.jsx("option",{value:"others",children:"Others"})]}),i.jsxs("select",{value:x,onChange:$=>y($.target.value),className:"px-3 py-2 bg-gray-50 dark:bg-gray-900 border border-gray-200 dark:border-gray-700 rounded-md text-gray-900 dark:text-gray-100 focus:outline-none focus:ring-2 focus:ring-blue-500 text-sm",children:[i.jsx("option",{value:"all",children:"All Rewards"}),i.jsx("option",{value:"author",children:"Author"}),i.jsx("option",{value:"curation",children:"Curation"}),i.jsx("option",{value:"benefactor",children:"Benefactor"})]}),i.jsx("button",{onClick:()=>Z(),disabled:k||_,className:"px-3 py-2 bg-gray-50 dark:bg-gray-900 border border-gray-200 dark:border-gray-700 rounded-md hover:bg-gray-100 dark:hover:bg-gray-800 text-gray-700 dark:text-gray-300 focus:outline-none focus:ring-2 focus:ring-blue-500 disabled:opacity-50 disabled:cursor-not-allowed",children:i.jsx(q.RefreshCw,{className:"h-4 w-4"})})]})]}),i.jsxs("div",{className:"flex flex-wrap gap-4 mt-4 pt-4 border-t border-gray-200 dark:border-gray-700",children:[i.jsxs("div",{className:"text-sm text-gray-600 dark:text-gray-400",children:["Total: ",i.jsx("span",{className:"font-semibold text-gray-900 dark:text-white",children:g.length})]}),i.jsxs("div",{className:"text-sm text-gray-600 dark:text-gray-400",children:["Filtered: ",i.jsx("span",{className:"font-semibold text-gray-900 dark:text-white",children:S.length})]}),i.jsxs("div",{className:"text-sm text-gray-600 dark:text-gray-400",children:["Incoming: ",i.jsx("span",{className:"font-semibold text-green-600 dark:text-green-400",children:g.filter($=>$.direction==="in").length})]}),i.jsxs("div",{className:"text-sm text-gray-600 dark:text-gray-400",children:["Outgoing: ",i.jsx("span",{className:"font-semibold text-blue-600 dark:text-blue-400",children:g.filter($=>$.direction==="out").length})]})]})]}),i.jsx("div",{className:"space-y-4",children:S.length===0?i.jsx("div",{className:"flex items-center justify-center min-h-[200px]",children:i.jsx("p",{className:"text-gray-500 dark:text-gray-400",children:g.length===0?"No activities found for this user.":"No activities match the current filters."})}):i.jsxs(i.Fragment,{children:[S.map(($,B)=>i.jsxs("div",{className:"flex items-center justify-between py-3 px-4 bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg hover:bg-gray-50 dark:hover:bg-gray-800/50 transition-colors cursor-pointer",onClick:re=>{u==null||u($)},children:[i.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[$.type==="vote"&&$.voter?i.jsx("img",{src:`https://images.hive.blog/u/${$.voter}/avatar`,alt:$.voter,className:"w-8 h-8 rounded-full flex-shrink-0",onError:re=>{const X=re.target;X.style.display="none";const te=X.nextElementSibling;te&&(te.style.display="flex")}}):$.type==="comment_benefactor_reward"&&$.author?i.jsx("img",{src:`https://images.hive.blog/u/${$.author}/avatar`,alt:$.author,className:"w-8 h-8 rounded-full flex-shrink-0",onError:re=>{const X=re.target;X.style.display="none";const te=X.nextElementSibling;te&&(te.style.display="flex")}}):$.type==="comment"&&$.author?i.jsx("img",{src:`https://images.hive.blog/u/${$.author}/avatar`,alt:$.author,className:"w-8 h-8 rounded-full flex-shrink-0",onError:re=>{const X=re.target;X.style.display="none";const te=X.nextElementSibling;te&&(te.style.display="flex")}}):null,i.jsx("div",{className:`w-8 h-8 bg-purple-100 dark:bg-purple-900/20 rounded-full flex items-center justify-center flex-shrink-0 ${$.type==="vote"&&$.voter||$.type==="comment_benefactor_reward"&&$.author||$.type==="comment"&&$.author?"hidden":""}`,children:G($)}),i.jsx("div",{className:"flex-1 min-w-0",children:$.type==="custom_json"||$.type==="comment_options"?i.jsxs("div",{children:[i.jsx("p",{className:"text-sm text-gray-900 dark:text-white break-words font-medium",children:ne($.description)}),i.jsx("p",{className:"text-xs text-gray-600 dark:text-gray-400",children:hn.getRelativeTime($.timestamp+"Z")}),i.jsx("div",{className:"border border-gray-200 dark:border-gray-600 rounded p-2 bg-gray-50 dark:bg-gray-700/50 mt-1",children:i.jsxs("div",{className:"text-xs text-gray-600 dark:text-gray-400 space-y-1 font-mono break-words",children:[$.type==="custom_json"&&i.jsxs(i.Fragment,{children:[i.jsxs("div",{children:[i.jsx("span",{className:"font-medium",children:"id:"})," ",$.details.id]}),i.jsxs("div",{className:"break-all",children:[i.jsx("span",{className:"font-medium",children:"json:"})," ",JSON.stringify($.details.json).replace(/\\\"/g,'"').replace(/^"|"$/g,"")]}),i.jsxs("div",{children:[i.jsx("span",{className:"font-medium",children:"required_auths:"})," ",JSON.stringify($.details.required_auths)]}),i.jsxs("div",{children:[i.jsx("span",{className:"font-medium",children:"required_posting_auths:"})," ",JSON.stringify($.details.required_posting_auths)]})]}),$.type==="comment_options"&&i.jsxs(i.Fragment,{children:[i.jsxs("div",{children:[i.jsx("span",{className:"font-medium",children:"author:"}),i.jsx("span",{className:"text-blue-500 cursor-pointer hover:underline",children:$.details.author})]}),i.jsxs("div",{children:[i.jsx("span",{className:"font-medium",children:"permlink:"}),i.jsx("span",{className:"text-blue-500 cursor-pointer hover:underline",onClick:re=>{re.stopPropagation(),console.log("Clicked permlink:",$.details.author,$.details.permlink),c==null||c($.details.author,$.details.permlink)},children:$.details.permlink})]})]})]})})]}):i.jsxs("div",{children:[i.jsx("p",{className:"text-sm text-gray-900 dark:text-white break-words",children:ne($.description)}),i.jsx("p",{className:"text-xs text-gray-600 dark:text-gray-400 sm:hidden",children:hn.getRelativeTime($.timestamp+"Z")})]})})]}),i.jsx("div",{className:"flex items-center gap-1 text-sm text-gray-600 dark:text-gray-400 flex-shrink-0 ml-4 hidden sm:flex",children:$.type!=="custom_json"&&$.type!=="comment_options"&&i.jsxs(i.Fragment,{children:[i.jsx(q.Clock,{className:"h-3 w-3 flex-shrink-0"}),i.jsx("span",{className:"truncate",children:hn.getRelativeTime($.timestamp+"Z")})]})})]},`${$.id}-${B}`)),I&&g.length>0&&i.jsx("div",{className:"flex justify-center py-6",children:i.jsx("button",{onClick:P,disabled:k||_,className:"px-6 py-2 bg-blue-600 hover:bg-blue-700 disabled:bg-blue-400 text-white rounded-lg font-medium transition-colors disabled:cursor-not-allowed flex items-center gap-2",children:_?i.jsxs(i.Fragment,{children:[i.jsx(q.RefreshCw,{className:"h-4 w-4 animate-spin"}),"Loading..."]}):"Load More Activities"})}),!I&&g.length>0&&i.jsx("div",{className:"text-center text-sm text-gray-400 py-4",children:"No more activities to load"})]})})]})},Es=new Ks.Client(["https://api.hive.blog","https://api.syncad.com","https://api.deathwing.me"]);class Gy{async getWitnessesByVote(e="",r=60){try{return await Es.call("condenser_api","get_witnesses_by_vote",[e,r])}catch(n){throw console.error("Error fetching witnesses by vote:",n),n}}async getAccount(e){try{const r=await Es.call("condenser_api","get_accounts",[[e]]);return r&&r.length>0?r[0]:null}catch(r){return console.error("Error fetching account:",r),null}}async getAccounts(e){try{return await Es.call("condenser_api","get_accounts",[e])}catch(r){return console.error("Error fetching accounts:",r),[]}}async getWitnessVotes(e,r="",n=250){try{return await Es.call("database_api","list_witness_votes",{start:[e,r],limit:n,order:"by_witness_account"})}catch(a){throw console.error("Error fetching witness votes:",a),a}}async getAllWitnessVotes(e){const r=[];let n="";try{for(;;){const s=await this.getWitnessVotes(e,n,250);if(r.push(...s.votes),s.votes.length<250)break;n=s.votes[s.votes.length-1].account}return r}catch(s){return console.error("Error fetching all witness votes:",s),[]}}async hasUserVotedForWitness(e,r){try{const n=await this.getAccount(e);return!n||!n.witness_votes?!1:n.witness_votes.includes(r)}catch(n){return console.error("Error checking witness vote:",n),!1}}async getUserWitnessVotes(e){try{const r=await this.getAccount(e);return(r==null?void 0:r.witness_votes)||[]}catch(r){return console.error("Error fetching user witness votes:",r),[]}}formatVotesToMHP(e){return`${(parseFloat(e)/1e6).toFixed(1)}m`}calculateAPR(e){return e/100}getVersionStatus(e,r){const n=this.parseVersion(e),a=this.parseVersion(r);return this.compareVersions(n,a)>=0?"green":this.compareVersions(n,a)<0?"red":"grey"}parseVersion(e){return e.split(".").map(r=>parseInt(r,10))}compareVersions(e,r){const n=Math.max(e.length,r.length);for(let a=0;a<n;a++){const s=e[a]||0,o=r[a]||0;if(s>o)return 1;if(s<o)return-1}return 0}getWitnessDescription(e){var r,n;try{let a;if(e.json_metadata&&e.json_metadata!=="{}"){a=JSON.parse(e.json_metadata);const s=(r=a.profile)==null?void 0:r.witness_description;if(s)return s}return e.posting_json_metadata&&e.posting_json_metadata!=="{}"?(a=JSON.parse(e.posting_json_metadata),((n=a.profile)==null?void 0:n.about)||""):""}catch(a){return console.error("Error parsing witness description:",a),""}}formatTimeAgo(e){const r=new Date(e),a=Math.floor((new Date().getTime()-r.getTime())/1e3);if(a<60)return`${a} second${a>1?"s":""} ago`;if(a<3600){const s=Math.floor(a/60);return`${s} minute${s>1?"s":""} ago`}else if(a<86400){const s=Math.floor(a/3600);return`${s} hour${s>1?"s":""} ago`}else if(a<604800){const s=Math.floor(a/86400);return`${s} day${s>1?"s":""} ago`}else if(a<2592e3){const s=Math.floor(a/604800);return`${s} week${s>1?"s":""} ago`}else if(a<31536e3){const s=Math.floor(a/2592e3);return`${s} month${s>1?"s":""} ago`}else{const s=Math.floor(a/31536e3);return`${s} year${s>1?"s":""} ago`}}}const wt=new Gy,Se=Rc.create((t,e)=>({witnesses:[],witnessVotes:[],userWitnessVotes:[],witnessDetails:new Map,witnessAccounts:new Map,loadingWitnesses:!1,loadingMoreWitnesses:!1,loadingVotes:!1,loadingMoreVotes:!1,loadingUserVotes:!1,error:null,nextWitnessStart:"",nextVotesStart:"",hasMoreWitnesses:!0,hasMoreVotes:!1,selectedWitness:null,filters:{status:"all",name:"",version:""},loadWitnesses:async(r="",n=50)=>{const{witnesses:a}=e();if(a.length>=500){t({hasMoreWitnesses:!1});return}t(r!==""?{loadingMoreWitnesses:!0}:{loadingWitnesses:!0,error:null});try{const o=await wt.getWitnessesByVote(r,n);t(u=>{const f=new Set(u.witnesses.map(h=>h.owner)),l=o.filter(h=>!f.has(h.owner));return{witnesses:[...u.witnesses,...l],nextWitnessStart:o.length>0?o[o.length-1].owner:"",hasMoreWitnesses:o.length===n}});const c=o.filter(u=>!e().witnessDetails.has(u.owner)).map(u=>u.owner);c.length>0&&e().loadWitnessDetails(c)}catch(o){console.error("Error loading witnesses:",o),t({error:"Failed to load witnesses data"})}finally{t({loadingWitnesses:!1,loadingMoreWitnesses:!1})}},loadMoreWitnesses:async()=>{const{nextWitnessStart:r,hasMoreWitnesses:n,loadingMoreWitnesses:a}=e();!n||a||!r||await e().loadWitnesses(r,50)},loadWitnessVotes:async r=>{t({loadingVotes:!0,witnessVotes:[],nextVotesStart:"",hasMoreVotes:!1,selectedWitness:r});try{const n=await wt.getWitnessVotes(r,"",250);t({witnessVotes:n.votes,nextVotesStart:n.votes.length>0?n.votes[n.votes.length-1].account:"",hasMoreVotes:n.votes.length===250,loadingVotes:!1})}catch(n){console.error("Error loading witness votes:",n),t({error:"Failed to load witness votes",loadingVotes:!1})}},loadMoreVotes:async()=>{const{hasMoreVotes:r,loadingMoreVotes:n,nextVotesStart:a,selectedWitness:s,witnessVotes:o}=e();if(!r||n||!a||o.length>=1e3){o.length>=1e3&&t({hasMoreVotes:!1});return}t({loadingMoreVotes:!0});try{const c=await wt.getWitnessVotes(s||"",a,250);t(u=>{const l=[...u.witnessVotes,...c.votes].filter((d,m,b)=>b.findIndex(x=>x.account===d.account)===m),h=c.votes.filter((d,m,b)=>b.findIndex(x=>x.account===d.account)===m);return{witnessVotes:l,nextVotesStart:h.length>0?h[h.length-1].account:"",hasMoreVotes:c.votes.length===250}})}catch(c){console.error("Error loading more witness votes:",c)}finally{t({loadingMoreVotes:!1})}},loadUserWitnessVotes:async r=>{if(r){t({loadingUserVotes:!0});try{const n=await wt.getUserWitnessVotes(r);t({userWitnessVotes:n})}catch(n){console.error("Error loading user witness votes:",n)}finally{t({loadingUserVotes:!1})}}},loadWitnessDetails:async r=>{try{const n=await wt.getAccounts(r);t(a=>{const s=new Map(a.witnessDetails),o=new Map(a.witnessAccounts);return n.forEach(c=>{const u=wt.getWitnessDescription(c);u&&s.set(c.name,u),o.set(c.name,c)}),{witnessDetails:s,witnessAccounts:o}})}catch(n){console.error("Error loading witness details:",n)}},setFilters:r=>t({filters:r}),setSelectedWitness:r=>t({selectedWitness:r}),clearVotes:()=>t({witnessVotes:[],nextVotesStart:"",hasMoreVotes:!1,selectedWitness:null})})),Jy=({filters:t,onFiltersChange:e})=>{const r=s=>{e({...t,status:s})},n=s=>{e({...t,name:s})},a=s=>{e({...t,version:s})};return i.jsxs("div",{className:"bg-gray-800 rounded-lg p-4 mb-6",children:[i.jsx("h3",{className:"text-lg font-semibold text-white mb-4",children:"FILTERS"}),i.jsxs("div",{className:"mb-6",children:[i.jsx("h4",{className:"text-sm font-medium text-gray-300 mb-3",children:"WITNESS"}),i.jsxs("div",{className:"space-y-2",children:[i.jsxs("label",{className:"flex items-center space-x-2 cursor-pointer",children:[i.jsx("input",{type:"checkbox",checked:t.status==="active",onChange:()=>r("active"),className:"w-4 h-4 text-blue-600 bg-gray-700 border-gray-600 rounded focus:ring-blue-500 focus:ring-2"}),i.jsx("span",{className:"text-white",children:"Active"})]}),i.jsxs("label",{className:"flex items-center space-x-2 cursor-pointer",children:[i.jsx("input",{type:"checkbox",checked:t.status==="disabled",onChange:()=>r("disabled"),className:"w-4 h-4 text-blue-600 bg-gray-700 border-gray-600 rounded focus:ring-blue-500 focus:ring-2"}),i.jsx("span",{className:"text-white",children:"Disabled/Stale"})]}),i.jsxs("label",{className:"flex items-center space-x-2 cursor-pointer",children:[i.jsx("input",{type:"checkbox",checked:t.status==="approved",onChange:()=>r("approved"),className:"w-4 h-4 text-blue-600 bg-gray-700 border-gray-600 rounded focus:ring-blue-500 focus:ring-2"}),i.jsx("span",{className:"text-white",children:"Approved"})]})]})]}),i.jsxs("div",{className:"mb-6",children:[i.jsx("h4",{className:"text-sm font-medium text-gray-300 mb-3",children:"NAME"}),i.jsxs("div",{className:"relative",children:[i.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:i.jsx("svg",{className:"w-4 h-4 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),i.jsx("input",{type:"text",placeholder:"Search",value:t.name,onChange:s=>n(s.target.value),className:"w-full pl-10 pr-4 py-2 bg-gray-700 border-b border-gray-600 text-white placeholder-gray-400 focus:outline-none focus:border-blue-500"})]})]}),i.jsxs("div",{children:[i.jsx("h4",{className:"text-sm font-medium text-gray-300 mb-3",children:"VERSION"}),i.jsxs("div",{className:"relative",children:[i.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:i.jsx("svg",{className:"w-4 h-4 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),i.jsx("input",{type:"text",placeholder:"Version",value:t.version,onChange:s=>a(s.target.value),className:"w-full pl-10 pr-4 py-2 bg-gray-700 border-b border-gray-600 text-white placeholder-gray-400 focus:outline-none focus:border-blue-500"})]})]})]})},Yy=({isOpen:t,onClose:e,witness:r,votes:n,loadingMore:a,hasMore:s,loadingInitial:o,scrollContainerRef:c,sentinelRef:u,loadMoreVotes:f})=>{const l=T.useCallback(h=>{h[0].isIntersecting&&s&&!a&&f()},[s,a,f]);return T.useEffect(()=>{const h=new IntersectionObserver(l,{threshold:.1,root:c.current});return u.current&&h.observe(u.current),()=>{u.current&&h.unobserve(u.current)}},[l,c,u]),t?i.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 p-4",children:i.jsxs("div",{className:"bg-gray-900 rounded-lg max-w-2xl w-full max-h-[80vh] overflow-hidden",children:[i.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-gray-700",children:[i.jsxs("h3",{className:"text-lg font-semibold text-white",children:["Votes for @",r," (showing ",n.length,")"]}),i.jsx("button",{onClick:e,className:"text-gray-400 hover:text-white text-xl font-bold",children:"×"})]}),i.jsxs("div",{ref:c,className:"p-4 overflow-y-auto max-h-[60vh]",children:[i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:n.map((h,d)=>i.jsxs("div",{className:"flex items-center space-x-3 p-3 bg-gray-800 rounded-lg",children:[i.jsx("div",{className:"w-8 h-8 bg-gray-600 rounded-full flex items-center justify-center text-white text-sm font-medium",children:i.jsx("img",{className:"w-8 h-8 rounded-full",src:`https://images.hive.blog/u/${h.account}/avatar`,alt:h.account,onError:m=>{m.target.src="https://images.hive.blog/u/null/avatar"}})}),i.jsxs("div",{className:"flex-1",children:[i.jsx("div",{className:"text-white font-medium",children:h.account}),i.jsxs("div",{className:"text-gray-400 text-sm",children:["Vote #",d+1]})]}),i.jsx("div",{className:"text-gray-400 text-sm",children:"25"})]},h.account))}),n.length===0&&!o&&i.jsx("div",{className:"text-center text-gray-400 py-8",children:"No votes found for this witness."}),a&&i.jsx("div",{className:"text-center text-gray-400 py-4",children:"Loading more votes..."}),s&&!a&&i.jsx("div",{className:"text-center py-4",children:i.jsx("button",{onClick:f,className:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded",children:"Load More Votes"})}),s&&i.jsx("div",{ref:u,className:"h-4"})]})]})}):null},Zy=({username:t,filters:e={status:"all",name:"",version:""},onWitnessVoteClick:r,onWitnessStatsClick:n,onWitnessUrlClick:a})=>{const s=Se(R=>R.witnesses),o=Se(R=>R.userWitnessVotes),c=Se(R=>R.loadingWitnesses),u=Se(R=>R.error),f=Se(R=>R.selectedWitness),l=Se(R=>R.witnessVotes),h=Se(R=>R.hasMoreVotes),d=Se(R=>R.loadingMoreVotes),m=Se(R=>R.loadingVotes),b=Se(R=>R.filters),x=Se(R=>R.hasMoreWitnesses),y=Se(R=>R.loadingWitnesses),g=Se(R=>R.witnessDetails);Se(R=>R.witnessAccounts);const E=Se(R=>R.loadWitnesses),S=Se(R=>R.loadMoreWitnesses),w=Se(R=>R.loadWitnessVotes),k=Se(R=>R.loadMoreVotes),p=Se(R=>R.loadUserWitnessVotes),N=Se(R=>R.setFilters),[A,V]=T.useState(!1),z=T.useRef(null),j=T.useRef(null),L=T.useRef(null),I=T.useCallback(R=>{R[0].isIntersecting&&x&&!y&&S()},[x,y,S]);T.useEffect(()=>{const R=new IntersectionObserver(I,{threshold:.1});return L.current&&R.observe(L.current),()=>{L.current&&R.unobserve(L.current)}},[I]),T.useEffect(()=>{E()},[E]),T.useEffect(()=>{t&&p(t)},[t,p]),T.useEffect(()=>{N(e)},[]);const H=T.useMemo(()=>s.filter(R=>{if(b.status!=="all"){if(b.status==="active"){const Z=new Date;if(Z.setFullYear(Z.getFullYear()-1),new Date(R.last_hbd_exchange_update+"Z")<=Z)return!1}else if(b.status==="disabled"){const Z=new Date;if(Z.setFullYear(Z.getFullYear()-1),new Date(R.last_hbd_exchange_update+"Z")>Z)return!1}else if(b.status==="approved"&&!o.includes(R.owner))return!1}return!(b.name&&!R.owner.toLowerCase().includes(b.name.toLowerCase())||b.version&&!R.running_version.includes(b.version))}),[s,b,o]),_=async R=>{r?r(R):(await w(R),V(!0))},M=R=>{n?n(R):window.open(`https://hivehub.dev/witnesses/@${R}`,"_blank")},C=R=>{a?a(R):window.open(R,"_blank")},W=R=>t?o.includes(R):!1;return c?i.jsx("div",{className:"flex items-center justify-center p-8",children:i.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-blue-500"})}):u?i.jsx("div",{className:"text-center p-8 text-red-400",children:u}):i.jsxs("div",{className:"w-full",children:[i.jsx(Yy,{isOpen:A,onClose:()=>V(!1),witness:f||"",votes:l,loadingMore:d,hasMore:h,loadingInitial:m,scrollContainerRef:j,sentinelRef:z,loadMoreVotes:k}),i.jsx(Jy,{filters:b,onFiltersChange:N}),i.jsxs("div",{className:"overflow-auto max-h-[70vh]",children:[i.jsxs("table",{className:"w-full text-sm text-left text-gray-400",children:[i.jsx("thead",{className:"text-xs text-gray-400 uppercase bg-gray-800",children:i.jsxs("tr",{children:[i.jsx("th",{scope:"col",className:"px-4 py-3",children:"Rank"}),i.jsx("th",{scope:"col",className:"px-4 py-3",children:"Witness"}),i.jsx("th",{scope:"col",className:"px-4 py-3",children:"Version"}),i.jsx("th",{scope:"col",className:"px-4 py-3",children:"Votes (MHP)"}),i.jsx("th",{scope:"col",className:"px-4 py-3",children:"Last Block"}),i.jsx("th",{scope:"col",className:"px-4 py-3",children:"Miss"}),i.jsx("th",{scope:"col",className:"px-4 py-3",children:"Price Feed"}),i.jsx("th",{scope:"col",className:"px-4 py-3",children:"APR (%)"}),i.jsx("th",{scope:"col",className:"px-4 py-3",children:"Vote"})]})}),i.jsx("tbody",{children:H.map((R,Z)=>{const P=wt.getVersionStatus(R.running_version,R.hardfork_version_vote),G=W(R.owner);return i.jsxs("tr",{className:"border-b border-gray-700 hover:bg-gray-800",children:[i.jsx("td",{className:"px-4 py-4 font-medium text-white",children:s.findIndex(ne=>ne.owner===R.owner)+1}),i.jsx("td",{className:"px-4 py-4",children:i.jsxs("div",{className:"flex items-center space-x-3",children:[i.jsx("img",{className:"w-8 h-8 rounded-full",src:`https://images.hive.blog/u/${R.owner}/avatar`,alt:R.owner,onError:ne=>{ne.target.src="https://images.hive.blog/u/null/avatar"}}),i.jsxs("div",{className:"flex-1",children:[i.jsx("div",{className:"text-white font-medium",children:R.owner}),i.jsxs("div",{className:"text-gray-400 text-xs",children:["Witness since ",new Date(R.created).getFullYear()]}),g.get(R.owner)&&i.jsx("div",{className:"text-gray-400 text-xs mt-1 line-clamp-2",children:g.get(R.owner)})]}),i.jsxs("div",{className:"flex space-x-2 flex-shrink-0",children:[i.jsx("button",{onClick:()=>C(R.url),className:"text-gray-400 hover:text-white",title:"Visit witness URL",children:"🔗"}),i.jsx("button",{onClick:()=>M(R.owner),className:"text-gray-400 hover:text-white",title:"View witness stats",children:"📊"})]})]})}),i.jsx("td",{className:"px-4 py-4",children:i.jsx("span",{className:`px-2 py-1 rounded-full text-xs font-medium ${P==="green"?"bg-green-900 text-green-300":P==="red"?"bg-red-900 text-red-300":"bg-gray-700 text-gray-300"}`,children:R.running_version})}),i.jsx("td",{className:"px-4 py-4",children:i.jsx("button",{onClick:()=>_(R.owner),className:"text-blue-400 hover:text-blue-300 cursor-pointer",disabled:m,children:m&&f===R.owner?"Loading...":wt.formatVotesToMHP(R.votes)})}),i.jsxs("td",{className:"px-4 py-4 text-right",children:[i.jsx("div",{className:"text-white",children:R.last_confirmed_block_num.toLocaleString()}),i.jsx("div",{className:"text-gray-400 text-xs",children:"NA"})]}),i.jsx("td",{className:"px-4 py-4 text-right text-white",children:R.total_missed.toLocaleString()}),i.jsxs("td",{className:"px-4 py-4 text-right",children:[i.jsx("div",{className:"text-white",children:R.hbd_exchange_rate.base}),i.jsx("div",{className:"text-gray-400 text-xs",children:wt.formatTimeAgo(R.last_hbd_exchange_update+"Z")})]}),i.jsxs("td",{className:"px-4 py-4 text-right text-white",children:[wt.calculateAPR(R.props.hbd_interest_rate),"%"]}),i.jsx("td",{className:"px-4 py-4",children:i.jsx("div",{className:"flex items-center justify-center",children:i.jsx("svg",{className:`w-5 h-5 ${G?"text-green-500":"text-gray-500"}`,fill:"currentColor",viewBox:"0 0 20 20",children:i.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})})})]},R.owner)})})]}),y&&i.jsxs("div",{className:"flex items-center justify-center py-4",children:[i.jsx("div",{className:"animate-spin rounded-full h-6 w-6 border-b-2 border-blue-500"}),i.jsx("span",{className:"ml-2 text-gray-400",children:"Loading more witnesses..."})]}),x&&i.jsx("div",{ref:L,className:"h-1"})]})]})},jo="_communityLocalKey",Ds={getBookmarkedCommunities:()=>{const t=localStorage.getItem(jo);return t?JSON.parse(t):[]},isUserPresentLocally:t=>{const e=localStorage.getItem(jo);return e?JSON.parse(e).includes(t):!1},storeLikedCommunityLocally:(t,e=!1)=>{let r=Ds.getBookmarkedCommunities();return r.includes(t)?r=r.filter(n=>n!==t):e||r.push(t),localStorage.setItem(jo,JSON.stringify(r)),r}},al=({id:t,toastType:e,isLiked:r,onAdd:n,onRemove:a,onFavourite:s})=>{const[o,c]=T.useState(r??Ds.isUserPresentLocally(t));T.useEffect(()=>{r!==void 0&&c(r)},[r]);const u=()=>{s&&s(),o?(a?a(t,"remove_bookmark"):Ds.storeLikedCommunityLocally(t,!0),f(!1)):(n?n(t,"add_bookmark"):Ds.storeLikedCommunityLocally(t),f(!0)),c(!o)},f=l=>{alert(`The ${e} is ${l?"added to":"removed from"} your bookmarks`)};return i.jsx("button",{onClick:u,className:"p-2 rounded-lg border border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-300 hover:bg-gray-300 dark:hover:bg-gray-700",children:o?i.jsx(q.BookmarkCheck,{className:"w-5 h-5 text-blue-600 dark:text-blue-400"}):i.jsx(q.Bookmark,{className:"w-5 h-5 text-gray-500 dark:text-gray-400"})})};class Xy{constructor(){Gn(this,"HIVE_API_URL","https://api.hive.blog")}async getListOfCommunities(e,r=20,n){const a={limit:r};n&&n.trim()!==""&&(a.last=n),e&&e.trim()!==""&&(a.query=e);const s={jsonrpc:"2.0",method:"bridge.list_communities",params:a,id:1};try{const o=await fetch(this.HIVE_API_URL,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)});if(!o.ok)throw new Error(`HTTP error! status: ${o.status}`);return(await o.json()).result||[]}catch(o){throw console.error("Error fetching communities:",o),o}}async getCommunityDetails(e){const r={jsonrpc:"2.0",method:"bridge.get_community",params:{name:e},id:1};try{const n=await fetch(this.HIVE_API_URL,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);return await n.json()}catch(n){throw console.error("Error fetching community details:",n),n}}async getCommunitySubscribers(e,r=100,n){const a={community:e,limit:r};n&&n.trim()!==""&&(a.last=n);const s={jsonrpc:"2.0",method:"bridge.list_community_roles",params:a,id:1};try{const o=await fetch(this.HIVE_API_URL,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)});if(!o.ok)throw new Error(`HTTP error! status: ${o.status}`);return((await o.json()).result||[]).map(u=>({username:u[0],role:u[1],extra:u[2],subscribedAt:u[3]}))}catch(o){throw console.error("Error fetching community subscribers:",o),o}}async getCommunitySubscribersList(e,r=100,n){const a={community:e,limit:r};n&&n.trim()!==""&&(a.last=n);const s={jsonrpc:"2.0",method:"bridge.list_subscribers",params:a,id:2};try{const o=await fetch(this.HIVE_API_URL,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)});if(!o.ok)throw new Error(`HTTP error! status: ${o.status}`);return((await o.json()).result||[]).map(u=>({username:u[0],role:u[1],extra:u[2],subscribedAt:u[3]}))}catch(o){throw console.error("Error fetching community subscribers list:",o),o}}async getCommunityAccounts(e){const r={jsonrpc:"2.0",method:"condenser_api.get_accounts",params:[[e]],id:2};try{const n=await fetch(this.HIVE_API_URL,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);return(await n.json()).result||[]}catch(n){throw console.error("Error fetching community accounts:",n),n}}async getRankedPosts(e,r="created",n=20,a,s){const o={tag:e,sort:r,limit:n};a&&s&&(o.start_author=a,o.start_permlink=s);const c={jsonrpc:"2.0",method:"bridge.get_ranked_posts",params:o,id:3};try{const u=await fetch(this.HIVE_API_URL,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)});if(!u.ok)throw new Error(`HTTP error! status: ${u.status}`);return(await u.json()).result||[]}catch(u){throw console.error("Error fetching ranked posts:",u),u}}communityIcon(e){return`https://images.hive.blog/u/${e}/avatar?size=icon`}userOwnerThumb(e){return`https://images.hive.blog/u/${e}/avatar`}async getCommunityActivities(e,r=100,n){const a={account:e,limit:r};n&&(a.last_id=n);const s={jsonrpc:"2.0",method:"bridge.account_notifications",params:a,id:19};try{const o=await fetch(this.HIVE_API_URL,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)});if(!o.ok)throw new Error(`HTTP error! status: ${o.status}`);return(await o.json()).result||[]}catch(o){throw console.error("Error fetching community activities:",o),o}}}const Yt=new Xy,Ky=({onSelectCommunity:t})=>{const[e,r]=T.useState([]),[n,a]=T.useState(""),[s,o]=T.useState(!0),[c,u]=T.useState(!1),[f,l]=T.useState(!0),[h,d]=T.useState(null),[m,b]=T.useState(null),x=20,y=T.useRef(null),g=T.useCallback(async(w=!1)=>{if(!(!w&&(c||!f)))try{w?(o(!0),b(null),r([]),d(null),l(!0)):u(!0);const k=n.trim(),p=await Yt.getListOfCommunities(k.length>=3?k:void 0,x,w?void 0:h||void 0);r(N=>w?p:[...N,...p]),p.length<x||p.length>0&&p[p.length-1].name===h?l(!1):p.length>0&&d(p[p.length-1].name||null)}catch(k){b(k instanceof Error?k.message:"Failed to load communities"),l(!1)}finally{o(!1),u(!1)}},[n,c,f,h]);T.useEffect(()=>{const w=setTimeout(()=>{g(!0)},n.length>=3||n.length===0?0:500);return()=>clearTimeout(w)},[n]),T.useEffect(()=>{var w;(w=y.current)==null||w.focus()},[n,s,m]),T.useEffect(()=>{const w=()=>{window.innerHeight+document.documentElement.scrollTop>=document.documentElement.offsetHeight-200&&!c&&!s&&f&&g()};return window.addEventListener("scroll",w),()=>window.removeEventListener("scroll",w)},[g,c,s,f]);const E=()=>{g(!0)},S=()=>i.jsx("div",{className:"space-y-4",children:Array.from({length:6}).map((w,k)=>i.jsx("div",{className:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-xl p-4 animate-pulse",children:i.jsxs("div",{className:"flex items-center gap-4",children:[i.jsx("div",{className:"w-12 h-12 bg-gray-200 dark:bg-gray-700 rounded-full"}),i.jsxs("div",{className:"flex-1 space-y-2",children:[i.jsx("div",{className:"h-4 bg-gray-200 dark:bg-gray-700 rounded w-3/4"}),i.jsx("div",{className:"h-3 bg-gray-200 dark:bg-gray-700 rounded w-1/2"})]}),i.jsx("div",{className:"h-3 bg-gray-200 dark:bg-gray-700 rounded w-16"})]})},k))});return s&&e.length===0?i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{className:"relative",children:[i.jsx(q.Search,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-500 dark:text-gray-400 w-5 h-5"}),i.jsx("input",{type:"text",placeholder:"Search communities...",value:n,onChange:w=>a(w.target.value),ref:y,autoFocus:!0,className:`w-full pl-10 pr-4 py-3 bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700
1099
+ `)});const c=e.nonTextTags||["script","style","textarea","option"];let u,f;e.allowedAttributes&&(u={},f={},Sa(e.allowedAttributes,function(_,M){u[M]=[];const O=[];_.forEach(function(G){typeof G=="string"&&G.indexOf("*")>=0?O.push(jc(G).replace(/\\\*/g,".*")):u[M].push(G)}),O.length&&(f[M]=new RegExp("^("+O.join("|")+")$"))}));const l={},h={},d={};Sa(e.allowedClasses,function(_,M){if(u&&(dr(u,M)||(u[M]=[]),u[M].push("class")),l[M]=_,Array.isArray(_)){const O=[];l[M]=[],d[M]=[],_.forEach(function(G){typeof G=="string"&&G.indexOf("*")>=0?O.push(jc(G).replace(/\\\*/g,".*")):G instanceof RegExp?d[M].push(G):l[M].push(G)}),O.length&&(h[M]=new RegExp("^("+O.join("|")+")$"))}});const m={};let b;Sa(e.transformTags,function(_,M){let O;typeof _=="function"?O=_:typeof _=="string"&&(O=Wa.simpleTransform(_)),M==="*"?b=O:m[M]=O});let x,y,g,E,D,w,j=!1;A();const p=new xy.Parser({onopentag:function(_,M){if(e.enforceHtmlBoundary&&_==="html"&&A(),D){w++;return}const O=new s(_,M);y.push(O);let G=!1;const R=!!O.text;let K;if(dr(m,_)&&(K=m[_](_,M),O.attribs=M=K.attribs,K.text!==void 0&&(O.innerText=K.text),_!==K.tagName&&(O.name=_=K.tagName,E[x]=K.tagName)),b&&(K=b(_,M),O.attribs=M=K.attribs,_!==K.tagName&&(O.name=_=K.tagName,E[x]=K.tagName)),(!o(_)||e.disallowedTagsMode==="recursiveEscape"&&!Ny(g)||e.nestingLimit!=null&&x>=e.nestingLimit)&&(G=!0,g[x]=!0,(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&c.indexOf(_)!==-1&&(D=!0,w=1),g[x]=!0),x++,G){if(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")return;a=n,n=""}n+="<"+_,_==="script"&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(O.innerText=""),(!u||dr(u,_)||u["*"])&&Sa(M,function(X,ae){if(!jy.test(ae)){delete O.attribs[ae];return}if(X===""&&!e.allowedEmptyAttributes.includes(ae)&&(e.nonBooleanAttributes.includes(ae)||e.nonBooleanAttributes.includes("*"))){delete O.attribs[ae];return}let ke=!1;if(!u||dr(u,_)&&u[_].indexOf(ae)!==-1||u["*"]&&u["*"].indexOf(ae)!==-1||dr(f,_)&&f[_].test(ae)||f["*"]&&f["*"].test(ae))ke=!0;else if(u&&u[_]){for(const L of u[_])if(yy(L)&&L.name&&L.name===ae){ke=!0;let B="";if(L.multiple===!0){const re=X.split(" ");for(const se of re)L.values.indexOf(se)!==-1&&(B===""?B=se:B+=" "+se)}else L.values.indexOf(X)>=0&&(B=X);X=B}}if(ke){if(e.allowedSchemesAppliedToAttributes.indexOf(ae)!==-1&&V(_,X)){delete O.attribs[ae];return}if(_==="script"&&ae==="src"){let L=!0;try{const B=H(X);if(e.allowedScriptHostnames||e.allowedScriptDomains){const re=(e.allowedScriptHostnames||[]).find(function(ne){return ne===B.url.hostname}),se=(e.allowedScriptDomains||[]).find(function(ne){return B.url.hostname===ne||B.url.hostname.endsWith(`.${ne}`)});L=re||se}}catch{L=!1}if(!L){delete O.attribs[ae];return}}if(_==="iframe"&&ae==="src"){let L=!0;try{const B=H(X);if(B.isRelativeUrl)L=dr(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const re=(e.allowedIframeHostnames||[]).find(function(ne){return ne===B.url.hostname}),se=(e.allowedIframeDomains||[]).find(function(ne){return B.url.hostname===ne||B.url.hostname.endsWith(`.${ne}`)});L=re||se}}catch{L=!1}if(!L){delete O.attribs[ae];return}}if(ae==="srcset")try{let L=vy(X);if(L.forEach(function(B){V("srcset",B.url)&&(B.evil=!0)}),L=Dc(L,function(B){return!B.evil}),L.length)X=Ay(Dc(L,function(B){return!B.evil})),O.attribs[ae]=X;else{delete O.attribs[ae];return}}catch{delete O.attribs[ae];return}if(ae==="class"){const L=l[_],B=l["*"],re=h[_],se=d[_],ne=h["*"],Ee=[re,ne].concat(se).filter(function(Le){return Le});if(L&&B?X=W(X,Sc(L,B),Ee):X=W(X,L||B,Ee),!X.length){delete O.attribs[ae];return}}if(ae==="style"){if(e.parseStyleAttributes)try{const L=wy(_+" {"+X+"}",{map:!1}),B=S(L,e.allowedStyles);if(X=P(B),X.length===0){delete O.attribs[ae];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+_+" {"+X+`}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`),delete O.attribs[ae];return}else if(e.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}n+=" "+ae,X&&X.length?n+='="'+k(X,!0)+'"':e.allowedEmptyAttributes.includes(ae)&&(n+='=""')}else delete O.attribs[ae]}),e.selfClosing.indexOf(_)!==-1?n+=" />":(n+=">",O.innerText&&!R&&!e.textFilter&&(n+=k(O.innerText),j=!0)),G&&(n=a+k(n),a="")},ontext:function(_){if(D)return;const M=y[y.length-1];let O;if(M&&(O=M.tag,_=M.innerText!==void 0?M.innerText:_),e.disallowedTagsMode==="completelyDiscard"&&!o(O))_="";else if((e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&(O==="script"||O==="style"))n+=_;else{const G=k(_,!1);e.textFilter&&!j?n+=e.textFilter(G,O):j||(n+=G)}if(y.length){const G=y[y.length-1];G.text+=_}},onclosetag:function(_,M){if(D)if(w--,!w)D=!1;else return;const O=y.pop();if(!O)return;if(O.tag!==_){y.push(O);return}D=e.enforceHtmlBoundary?_==="html":!1,x--;const G=g[x];if(G){if(delete g[x],e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){O.updateParentNodeText();return}a=n,n=""}if(E[x]&&(_=E[x],delete E[x]),e.exclusiveFilter&&e.exclusiveFilter(O)){n=n.substr(0,O.tagPosition);return}if(O.updateParentNodeMediaChildren(),O.updateParentNodeText(),e.selfClosing.indexOf(_)!==-1||M&&!o(_)&&["escape","recursiveEscape"].indexOf(e.disallowedTagsMode)>=0){G&&(n=a,a="");return}n+="</"+_+">",G&&(n=a+k(n),a=""),j=!1}},e.parser);return p.write(t),p.end(),n;function A(){n="",x=0,y=[],g={},E={},D=!1,w=0}function k(_,M){return typeof _!="string"&&(_=_+""),e.parser.decodeEntities&&(_=_.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),M&&(_=_.replace(/"/g,"&quot;"))),_=_.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),M&&(_=_.replace(/"/g,"&quot;")),_}function V(_,M){for(M=M.replace(/[\x00-\x20]+/g,"");;){const R=M.indexOf("<!--");if(R===-1)break;const K=M.indexOf("-->",R+4);if(K===-1)break;M=M.substring(0,R)+M.substring(K+3)}const O=M.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!O)return M.match(/^[/\\]{2}/)?!e.allowProtocolRelative:!1;const G=O[1].toLowerCase();return dr(e.allowedSchemesByTag,_)?e.allowedSchemesByTag[_].indexOf(G)===-1:!e.allowedSchemes||e.allowedSchemes.indexOf(G)===-1}function H(_){if(_=_.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),_.startsWith("relative:"))throw new Error("relative: exploit attempt");let M="relative://relative-site";for(let R=0;R<100;R++)M+=`/${R}`;const O=new URL(_,M);return{isRelativeUrl:O&&O.hostname==="relative-site"&&O.protocol==="relative:",url:O}}function S(_,M){if(!M)return _;const O=_.nodes[0];let G;return M[O.selector]&&M["*"]?G=Sc(M[O.selector],M["*"]):G=M[O.selector]||M["*"],G&&(_.nodes[0].nodes=O.nodes.reduce(I(G),[])),_}function P(_){return _.nodes[0].nodes.reduce(function(M,O){return M.push(`${O.prop}:${O.value}${O.important?" !important":""}`),M},[]).join(";")}function I(_){return function(M,O){return dr(_,O.prop)&&_[O.prop].some(function(R){return R.test(O.value)})&&M.push(O),M}}function W(_,M,O){return M?(_=_.split(/\s+/),_.filter(function(G){return M.indexOf(G)!==-1||O.some(function(R){return R.test(G)})}).join(" ")):_}}const Sy={decodeEntities:!0};Wa.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","main","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0};Wa.simpleTransform=function(t,e,r){return r=r===void 0?!0:r,e=e||{},function(n,a){let s;if(r)for(s in e)a[s]=e[s];else a=e;return{tagName:t,attribs:a}}};var ff=J&&J.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Qi,"__esModule",{value:!0});Qi.TagTransformingSanitizer=void 0;const Ve=ff(Kn),Dy=ff(ky),Tc=$t,Ty=oa,Cc=es;class Cy{constructor(e,r){this.sanitizationErrors=[],this.validate(e),Ty.Localization.validate(r),this.localization=r,this.options=e}sanitize(e){return(0,Dy.default)(e,this.generateSanitizeConfig())}getErrors(){return this.sanitizationErrors}generateSanitizeConfig(){return{allowedTags:Cc.StaticConfig.sanitization.allowedTags,allowedAttributes:{iframe:["src","width","height","frameborder","allowfullscreen","webkitallowfullscreen","mozallowfullscreen"],div:["class","title"],td:["style"],img:["src","alt"],a:["href","rel","title","class","target","id"]},allowedSchemes:["http","https","hive"],transformTags:{iframe:(e,r)=>{const n=r.src;for(const s of Cc.StaticConfig.sanitization.iframeWhitelist)if(s.re.test(n)){const o=typeof s.fn=="function"?s.fn(n):n;if(!o)break;return{tagName:"iframe",attribs:{src:o,width:this.options.iframeWidth+"",height:this.options.iframeHeight+"",frameborder:"0",allowfullscreen:"allowfullscreen",webkitallowfullscreen:"webkitallowfullscreen",mozallowfullscreen:"mozallowfullscreen"}}}return Tc.Log.log().warn('Blocked, did not match iframe "src" white list urls:',e,r),this.sanitizationErrors.push("Invalid iframe URL: "+n),{tagName:"div",text:`(Unsupported ${n})`,attribs:{}}},img:(e,r)=>{if(this.options.noImage)return{tagName:"div",text:this.localization.noImage,attribs:{}};const{src:n,alt:a}=r;if(!/^(https?:)?\/\//i.test(n))return Tc.Log.log().warn("Blocked, image tag src does not appear to be a url",e,r),this.sanitizationErrors.push("An image in this post did not save properly."),{tagName:"img",attribs:{src:"brokenimg.jpg"}};const s={};return s.src=n.replace(/^http:\/\//i,"//"),a&&a!==""&&(s.alt=a),{tagName:e,attribs:s}},div:(e,r)=>{const n={},s=["pull-right","pull-left","text-justify","text-rtl","text-center","text-right","videoWrapper","phishy"].find(c=>r.class===c);return s&&(n.class=s),s==="phishy"&&r.title===this.localization.phishingWarning&&(n.title=r.title),{tagName:e,attribs:n}},td:(e,r)=>{const n={};return r.style==="text-align:right"&&(n.style="text-align:right"),{tagName:e,attribs:n}},a:(e,r)=>{const n=Object.assign({},r);let{href:a}=r;return a&&(a=a.trim(),n.href=a),a&&!this.options.isLinkSafeFn(a)&&(n.rel=this.options.addNofollowToLinks?"nofollow noopener":"noopener",n.title=this.localization.phishingWarning,n.target=this.options.addTargetBlankToLinks?"_blank":"_self"),a&&this.options.addExternalCssClassToMatchingLinksFn(a)?n.class=this.options.cssClassForExternalLinks?this.options.cssClassForExternalLinks:"":n.class=this.options.cssClassForInternalLinks?this.options.cssClassForInternalLinks:"",{tagName:e,attribs:n}}}}}validate(e){(0,Ve.default)(e,"TagsSanitizerOptions",Ve.default.object),(0,Ve.default)(e.iframeWidth,"TagsSanitizerOptions.iframeWidth",Ve.default.number.integer.positive),(0,Ve.default)(e.iframeHeight,"TagsSanitizerOptions.iframeHeight",Ve.default.number.integer.positive),(0,Ve.default)(e.addNofollowToLinks,"TagsSanitizerOptions.addNofollowToLinks",Ve.default.boolean),(0,Ve.default)(e.addTargetBlankToLinks,"TagsSanitizerOptions.addTargetBlankToLinks",Ve.default.optional.boolean),(0,Ve.default)(e.cssClassForInternalLinks,"TagsSanitizerOptions.cssClassForInternalLinks",Ve.default.optional.string),(0,Ve.default)(e.cssClassForExternalLinks,"TagsSanitizerOptions.cssClassForExternalLinks",Ve.default.optional.string),(0,Ve.default)(e.noImage,"TagsSanitizerOptions.noImage",Ve.default.boolean),(0,Ve.default)(e.isLinkSafeFn,"TagsSanitizerOptions.isLinkSafeFn",Ve.default.function),(0,Ve.default)(e.addExternalCssClassToMatchingLinksFn,"TagsSanitizerOptions.addExternalCssClassToMatchingLinksFn",Ve.default.function)}}Qi.TagTransformingSanitizer=Cy;var Oy=J&&J.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ca,"__esModule",{value:!0});Ca.DefaultRenderer=void 0;const me=Oy(Kn),$y=Wm,Py=Bn,Ly=qn,Oc=oa,My=Ki,Iy=Qi;class Fy{constructor(e,r=Oc.Localization.DEFAULT){this.validate(e),this.options=e,Oc.Localization.validate(r),this.tagTransformingSanitizer=new Iy.TagTransformingSanitizer({iframeWidth:this.options.assetsWidth,iframeHeight:this.options.assetsHeight,addNofollowToLinks:this.options.addNofollowToLinks,addTargetBlankToLinks:this.options.addTargetBlankToLinks,cssClassForInternalLinks:this.options.cssClassForInternalLinks,cssClassForExternalLinks:this.options.cssClassForExternalLinks,noImage:this.options.doNotShowImages,isLinkSafeFn:this.options.isLinkSafeFn,addExternalCssClassToMatchingLinksFn:this.options.addExternalCssClassToMatchingLinksFn},r),this.domParser=new Ly.HtmlDOMParser({width:this.options.assetsWidth,height:this.options.assetsHeight,ipfsPrefix:this.options.ipfsPrefix,baseUrl:this.options.baseUrl,imageProxyFn:this.options.imageProxyFn,hashtagUrlFn:this.options.hashtagUrlFn,usertagUrlFn:this.options.usertagUrlFn,hideImages:this.options.doNotShowImages},r)}render(e){return(0,me.default)(e,"input",me.default.string.nonEmpty),this.doRender(e)}doRender(e){return e=My.PreliminarySanitizer.preliminarySanitize(e),e=this.isHtml(e)?e:this.renderMarkdown(e),e=this.wrapRenderedTextWithHtmlIfNeeded(e),e=this.domParser.parse(e).getParsedDocumentAsString(),e=this.sanitize(e),Py.SecurityChecker.checkSecurity(e,{allowScriptTag:this.options.allowInsecureScriptTags}),e=this.domParser.embedder.insertAssets(e),e}renderMarkdown(e){return new $y.Remarkable({html:!0,breaks:this.options.breaks,typographer:!1,quotes:"“”‘’"}).render(e)}wrapRenderedTextWithHtmlIfNeeded(e){return e.indexOf("<html>")!==0&&(e="<html>"+e+"</html>"),e}isHtml(e){let r=!1;const n=e.match(/^<html>([\S\s]*)<\/html>$/);return n&&n.length===2?(r=!0,e=n[1]):r=/^<p>[\S\s]*<\/p>/.test(e),r}sanitize(e){return this.options.skipSanitization?e:this.tagTransformingSanitizer.sanitize(e)}validate(e){(0,me.default)(e,"RendererOptions",me.default.object),(0,me.default)(e.baseUrl,"RendererOptions.baseUrl",me.default.string.nonEmpty),(0,me.default)(e.breaks,"RendererOptions.breaks",me.default.boolean),(0,me.default)(e.skipSanitization,"RendererOptions.skipSanitization",me.default.boolean),(0,me.default)(e.addNofollowToLinks,"RendererOptions.addNofollowToLinks",me.default.boolean),(0,me.default)(e.addTargetBlankToLinks,"RendererOptions.addTargetBlankToLinks",me.default.optional.boolean),(0,me.default)(e.cssClassForInternalLinks,"RendererOptions.cssClassForInternalLinks",me.default.optional.string),(0,me.default)(e.cssClassForExternalLinks,"RendererOptions.cssClassForExternalLinks",me.default.optional.string),(0,me.default)(e.doNotShowImages,"RendererOptions.doNotShowImages",me.default.boolean),(0,me.default)(e.ipfsPrefix,"RendererOptions.ipfsPrefix",me.default.optional.string),(0,me.default)(e.assetsWidth,"RendererOptions.assetsWidth",me.default.number.integer.positive),(0,me.default)(e.assetsHeight,"RendererOptions.assetsHeight",me.default.number.integer.positive),(0,me.default)(e.imageProxyFn,"RendererOptions.imageProxyFn",me.default.function),(0,me.default)(e.hashtagUrlFn,"RendererOptions.hashtagUrlFn",me.default.function),(0,me.default)(e.usertagUrlFn,"RendererOptions.usertagUrlFn",me.default.function),(0,me.default)(e.isLinkSafeFn,"RendererOptions.isLinkSafeFn",me.default.function),(0,me.default)(e.addExternalCssClassToMatchingLinksFn,"RendererOptions.addExternalCssClassToMatchingLinksFn",me.default.function)}}Ca.DefaultRenderer=Fy;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.HiveContentRenderer=t.DefaultRenderer=void 0;const e=Ca;var r=Ca;Object.defineProperty(t,"DefaultRenderer",{enumerable:!0,get:function(){return r.DefaultRenderer}}),t.HiveContentRenderer={DefaultRenderer:e.DefaultRenderer},t.default=t.HiveContentRenderer})(Zc);function Ry({sort:t="trending",tag:e="",observer:r="hive.blog",limit:n=20,showSortDropdown:a=!0,onAuthorClick:s,onPostClick:o,onCommunityClick:c,onPayoutClick:u,onUpvoteClick:f,onCommentClick:l,onReblogClick:h}){const[d,m]=C.useState([]),[b,x]=C.useState(!0),[y,g]=C.useState(null),[E,D]=C.useState(t),[w,j]=C.useState(!0),[p,A]=C.useState(!1),k=C.useRef(null);new Zc.DefaultRenderer({baseUrl:"https://hive.blog/",breaks:!0,skipSanitization:!1,allowInsecureScriptTags:!1,addNofollowToLinks:!0,doNotShowImages:!1,assetsWidth:640,assetsHeight:480,imageProxyFn:_=>_,usertagUrlFn:_=>`/@${_}`,hashtagUrlFn:_=>`/trending/${_}`,isLinkSafeFn:_=>!0,addExternalCssClassToMatchingLinksFn:_=>!0,ipfsPrefix:"https://ipfs.io/ipfs/"});const V=C.useCallback(async(_,M=!1)=>{M?A(!0):(x(!0),j(!0)),g(null);try{const O=M&&d.length>0?d[d.length-1]:null,G=await et.getRankedPosts(_,e,r,n,O==null?void 0:O.author,O==null?void 0:O.permlink);M?(m(R=>{const K=new Set(R.map(ae=>ae.post_id)),X=G.filter(ae=>!K.has(ae.post_id));return[...R,...X]}),j(G.length===n)):(m(G),j(G.length===n))}catch(O){g(O instanceof Error?O.message:"Failed to load posts"),j(!1)}finally{x(!1),A(!1)}},[e,r,n,d]),H=C.useCallback(()=>{!p&&w&&!b&&V(E,!0)},[p,w,b,E,V]);C.useEffect(()=>{V(E)},[E,e,r,n]),C.useEffect(()=>{const _=new IntersectionObserver(M=>{M[0].isIntersecting&&H()},{threshold:1});return k.current&&_.observe(k.current),()=>{k.current&&_.unobserve(k.current)}},[H]);const S=_=>{D(_),m([]),j(!0)},P=_=>_>=1e6?`${(_/1e6).toFixed(1)}M`:_>=1e3?`${(_/1e3).toFixed(1)}K`:_.toString(),I=_=>{var K;const M=_.payout*.5,O=_.payout*.5,R=(((K=_.beneficiaries.find(X=>X.account==="commentrewarder"))==null?void 0:K.weight)||0)/1e4*100;return{pending:`$${_.payout.toFixed(2)}`,breakdown:`${M.toFixed(2)} HBD, ${O.toFixed(2)} HP`,commentRewarder:`${R.toFixed(2)}%`,payoutInDays:Math.ceil((new Date(_.payout_at).getTime()-Date.now())/(1e3*60*60*24))}},W=_=>{const O=(_.body||"").replace(/!\[[^\]]*\]\([^)]+\)/g,"").replace(/\[([^\]]+)\]\([^)]+\)/g,"$1").replace(/^#+\s*/gm,"").replace(/\*\*([^*]+)\*\*/g,"$1").replace(/\*([^*]+)\*/g,"$1").replace(/`([^`]+)`/g,"$1").replace(/<[^>]*>/g,"").replace(/\n+/g," ").trim();return O.length>200?O.substring(0,200)+"...":O};return b?i.jsx("div",{className:"flex justify-center items-center min-h-[400px]",children:i.jsx(q.Loader2,{className:"w-8 h-8 animate-spin"})}):y?i.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[400px] space-y-4",children:[i.jsx("h3",{className:"text-lg font-semibold text-card-foreground",children:"Failed to load posts"}),i.jsx("p",{className:"text-muted-foreground",children:y}),i.jsx("button",{onClick:()=>V(E),className:"px-4 py-2 bg-primary text-primary-foreground rounded-lg hover:bg-primary/90",children:"Retry"})]}):i.jsxs("div",{className:"space-y-6",children:[a&&i.jsx("div",{className:"flex justify-center",children:i.jsxs("select",{value:E,onChange:_=>S(_.target.value),className:"px-4 py-2 border border-border rounded-lg bg-card text-card-foreground focus:outline-none focus:ring-2 focus:ring-primary",children:[i.jsx("option",{value:"trending",children:"Trending"}),i.jsx("option",{value:"hot",children:"Hot"}),i.jsx("option",{value:"created",children:"New"})]})}),i.jsxs("div",{className:"space-y-4",children:[d.map(_=>{var G,R,K;const M=(R=(G=_.json_metadata)==null?void 0:G.image)==null?void 0:R[0],O=I(_);return i.jsxs("div",{className:"bg-slate-50 dark:bg-slate-800 border border-border rounded-xl p-4 shadow-card hover:shadow-card-hover transition-shadow",children:[i.jsxs("div",{className:"flex items-center gap-2 mb-3 flex-wrap",children:[i.jsx("img",{src:`https://images.hive.blog/u/${_.author}/avatar`,alt:_.author,className:"w-8 h-8 rounded-full cursor-pointer flex-shrink-0",onClick:()=>s==null?void 0:s(_.author,`https://images.hive.blog/u/${_.author}/avatar`),onError:X=>{X.target.src=`https://ui-avatars.com/api/?name=${_.author}&background=random`}}),i.jsx("span",{className:"font-medium cursor-pointer hover:text-primary",onClick:()=>s==null?void 0:s(_.author,`https://images.hive.blog/u/${_.author}/avatar`),children:_.author}),i.jsxs("span",{className:"text-muted-foreground",children:["(",_.author_reputation.toFixed(2),")"]}),i.jsx("span",{className:"text-muted-foreground cursor-pointer hover:text-primary",onClick:()=>c==null?void 0:c(_.community_title),children:_.community_title}),i.jsx("span",{className:"text-muted-foreground hidden sm:inline",children:"•"}),i.jsx("span",{className:"text-muted-foreground text-sm",children:si.formatDistanceToNow(new Date(_.created+"Z"),{addSuffix:!0})})]}),i.jsxs("div",{className:"flex gap-3 sm:gap-4",children:[i.jsx("div",{className:"flex-shrink-0",children:M?i.jsxs("div",{className:"relative",children:[i.jsx("img",{src:M.startsWith("http")?M:`https://images.hive.blog/u/320x0/${M}`,alt:_.title,className:"w-20 h-20 sm:w-32 sm:h-32 object-cover rounded-lg cursor-pointer",onClick:()=>o==null?void 0:o(_),onError:X=>{X.target.src!==`https://images.hive.blog/u/${_.author}/avatar`?X.target.src=`https://images.hive.blog/u/${_.author}/avatar`:X.target.src="https://images.hive.blog/u/null/avatar"}}),(()=>{var ae,ke;const X=((ke=(ae=_.body)==null?void 0:ae.match(/!\[[^\]]*\]\(([^)]+)\)/g))==null?void 0:ke.map(L=>{const B=L.match(/\(([^)]+)\)/);return B?B[1]:null}).filter(Boolean))||[];return X.length>0?i.jsx("div",{className:"absolute -bottom-1 -right-1 sm:-bottom-2 sm:-right-2 flex space-x-1",children:X.slice(0,3).map((L,B)=>i.jsx("img",{src:L,alt:`body-image-${B}`,className:"w-6 h-6 sm:w-8 sm:h-8 object-cover rounded border-2 border-white shadow-sm cursor-pointer",onClick:re=>{var ne,Ee;re.stopPropagation();const se=(Ee=(ne=re.currentTarget.parentElement)==null?void 0:ne.parentElement)==null?void 0:Ee.querySelector("img:not(.w-6):not(.w-8)");se&&(se.src=L)}},B))}):null})()]}):i.jsx("img",{src:`https://images.hive.blog/u/${_.author}/avatar`,alt:_.author,className:"w-20 h-20 sm:w-32 sm:h-32 rounded-lg cursor-pointer",onClick:()=>o==null?void 0:o(_)})}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("h3",{className:"font-semibold text-base sm:text-lg mb-1 sm:mb-2 cursor-pointer hover:text-primary line-clamp-2",onClick:()=>o==null?void 0:o(_),children:_.title}),i.jsx("p",{className:"text-gray-600 dark:text-gray-300 mb-2 sm:mb-3 line-clamp-2 sm:line-clamp-3 cursor-pointer hover:text-primary text-sm sm:text-base",onClick:()=>o==null?void 0:o(_),children:((K=_.json_metadata)==null?void 0:K.description)||W(_)||"No description available"}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"relative group",children:[i.jsxs("span",{className:"font-semibold text-green-600 cursor-pointer hover:text-green-700 text-sm sm:text-base",onClick:()=>u==null?void 0:u(_.payout),children:["$",_.payout.toFixed(2)]}),i.jsxs("div",{className:"absolute bottom-full left-0 mb-2 hidden group-hover:block bg-black text-white text-xs p-2 rounded shadow-lg whitespace-nowrap z-10",children:[i.jsxs("div",{children:["Pending payout amount: ",O.pending]}),i.jsxs("div",{children:["Breakdown: ",O.breakdown]}),i.jsxs("div",{children:["commentrewarder: ",O.commentRewarder]}),i.jsxs("div",{children:["Payout in ",O.payoutInDays," days"]})]})]}),i.jsxs("div",{className:"flex items-center gap-3 sm:gap-4",children:[i.jsxs("div",{className:"flex items-center gap-1 text-muted-foreground hover:text-primary transition-colors cursor-pointer",onClick:()=>f==null?void 0:f(_),children:[i.jsx(q.ThumbsUp,{className:"w-3 h-3 sm:w-4 sm:h-4"}),i.jsx("span",{className:"text-xs sm:text-sm",children:P(_.stats.total_votes)})]}),i.jsxs("div",{className:"flex items-center gap-1 text-blue-600 hover:text-blue-700 transition-colors cursor-pointer",onClick:()=>l==null?void 0:l(_),children:[i.jsx(q.MessageCircle,{className:"w-3 h-3 sm:w-4 sm:h-4"}),i.jsx("span",{className:"text-xs sm:text-sm",children:P(_.children)})]}),i.jsxs("div",{className:"flex items-center gap-1 text-gray-600 hover:text-gray-700 transition-colors cursor-pointer",onClick:()=>h==null?void 0:h(_),children:[i.jsx(q.Repeat2,{className:"w-3 h-3 sm:w-4 sm:h-4"}),i.jsx("span",{className:"text-xs sm:text-sm",children:P(_.reblogs)})]})]})]})]})]})]},_.post_id)}),p&&i.jsxs("div",{className:"flex justify-center items-center py-4",children:[i.jsx(q.Loader2,{className:"w-6 h-6 animate-spin"}),i.jsx("span",{className:"ml-2 text-muted-foreground",children:"Loading more posts..."})]}),w&&!p&&i.jsx("div",{ref:k,className:"h-10"})]})]})}const sn=class sn{static getInstance(){return sn.instance||(sn.instance=new sn),sn.instance}async getProposals(e){return e==="expired"?this.getExpiredProposals():this.getActiveProposals()}async getActiveProposals(){try{const n=(await(await fetch("https://api.hive.blog/",{method:"POST",headers:{accept:"application/json, text/plain, */*","accept-language":"en-GB,en-US;q=0.9,en;q=0.8,hi;q=0.7","content-type":"application/json",origin:"https://peakd.com","sec-ch-ua":'"Google Chrome";v="141", "Not?A_Brand";v="8", "Chromium";v="141"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"macOS"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36"},body:JSON.stringify({id:72,jsonrpc:"2.0",method:"database_api.list_proposals",params:{start:[-1],limit:500,order:"by_total_votes",order_direction:"descending",status:"votable"}})})).json()).result.proposals,s=await(await fetch("https://stats.hivehub.dev/dhf_proposals")).json(),o={};s.forEach(h=>{o[h.proposal_id]=h});const f=(await(await fetch("https://api.hive.blog/",{method:"POST",headers:{accept:"application/json, text/plain, */*","accept-language":"en-GB,en-US;q=0.9,en;q=0.8,hi;q=0.7","content-type":"application/json",origin:"https://peakd.com","sec-ch-ua":'"Google Chrome";v="141", "Not?A_Brand";v="8", "Chromium";v="141"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"macOS"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36"},body:JSON.stringify({id:73,jsonrpc:"2.0",method:"database_api.list_proposal_votes",params:{start:["shaktimaaan"],limit:1e3,order:"by_voter_proposal",order_direction:"ascending",status:"votable"}})})).json()).result.proposal_votes||[],l={};return f.forEach(h=>{l[h.proposal.proposal_id]||(l[h.proposal.proposal_id]=[]),l[h.proposal.proposal_id].push(h)}),n.map(h=>{const d=h.id,m=o[d],b=l[d]||[],x=b.reduce((y,g)=>y+parseFloat(g.total_hbd||"0"),0);return{proposal_id:d,subject:h.subject,permlink:h.permlink,creator:h.creator,receiver:h.receiver,start_date:h.start_date,end_date:h.end_date,total_hbd_received:m?m.total_hbd_received:"0",max_hbd_remaining:m?m.max_hbd_remaining:"0",all_votes_num:h.total_votes||"0",all_votes_hp:m?m.all_votes_hp:x.toString(),votes:m?m.votes:b,status:h.status,daily_pay:h.daily_pay,total_votes:h.total_votes,daily_pay_hbd:h.daily_pay?Number(h.daily_pay.amount)/Math.pow(10,h.daily_pay.precision):0,remaining_days:Math.max(0,Math.ceil((new Date(h.end_date).getTime()-new Date().getTime())/(1e3*60*60*24))),vote_value_total:m?parseFloat(m.all_votes_hp):x}})}catch(e){return console.error("Error fetching active proposals:",e),[]}}async getExpiredProposals(){try{const n=(await(await fetch("https://api.hive.blog/",{method:"POST",headers:{accept:"application/json, text/plain, */*","accept-language":"en-GB,en-US;q=0.9,en;q=0.8,hi;q=0.7","content-type":"application/json",origin:"https://peakd.com","sec-ch-ua":'"Google Chrome";v="141", "Not?A_Brand";v="8", "Chromium";v="141"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"macOS"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36"},body:JSON.stringify({id:65,jsonrpc:"2.0",method:"database_api.list_proposals",params:{start:[-1],limit:500,order:"by_total_votes",order_direction:"descending",status:"expired"}})})).json()).result.proposals,s=await(await fetch("https://stats.hivehub.dev/dhf_proposals")).json(),o={};s.forEach(h=>{o[h.proposal_id]=h});const f=(await(await fetch("https://api.hive.blog/",{method:"POST",headers:{accept:"application/json, text/plain, */*","accept-language":"en-GB,en-US;q=0.9,en;q=0.8,hi;q=0.7","content-type":"application/json",origin:"https://peakd.com","sec-ch-ua":'"Google Chrome";v="141", "Not?A_Brand";v="8", "Chromium";v="141"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"macOS"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36"},body:JSON.stringify({id:76,jsonrpc:"2.0",method:"database_api.list_proposal_votes",params:{start:["shaktimaaan"],limit:1e3,order:"by_voter_proposal",order_direction:"ascending",status:"expired"}})})).json()).result.proposal_votes||[],l={};return f.forEach(h=>{l[h.proposal_id]||(l[h.proposal_id]=[]),l[h.proposal_id].push(h)}),n.map(h=>{const d=h.id,m=o[d],b=l[d]||[],x=b.reduce((y,g)=>y+parseFloat(g.total_hbd||"0"),0);return{proposal_id:d,subject:h.subject,permlink:h.permlink,creator:h.creator,receiver:h.receiver,start_date:h.start_date,end_date:h.end_date,total_hbd_received:m?m.total_hbd_received:"0",max_hbd_remaining:m?m.max_hbd_remaining:"0",all_votes_num:h.total_votes||"0",all_votes_hp:m?m.all_votes_hp:x.toString(),votes:m?m.votes:b,status:h.status,daily_pay:h.daily_pay,total_votes:h.total_votes,daily_pay_hbd:h.daily_pay?Number(h.daily_pay.amount)/Math.pow(10,h.daily_pay.precision):0,remaining_days:0,vote_value_total:m?parseFloat(m.all_votes_hp):x}})}catch(e){return console.error("Error fetching expired proposals:",e),[]}}};ga(sn,"instance");let tu=sn;const $c=tu.getInstance(),By=["All","Active","Upcoming","Expired","By Peak Projects"],hf=["Votes","Start Date","End Date","Creator"],Pc=t=>t==="By Peak Projects"?["Creator"]:hf,ct=t=>{const e=typeof t=="string"?parseFloat(t):t;return isNaN(e)?t.toString():e.toLocaleString()},ko=t=>{const e=new Date(t.start_date),r=new Date(t.end_date);return`(${Math.ceil((r.getTime()-e.getTime())/(1e3*60*60*24))} days)`},Vy=({onClickSupport:t,onClickVoteValue:e,onClickSelect:r,onClickUser:n,onClickAvatar:a})=>{const[s,o]=C.useState([]),[c,u]=C.useState("All"),[f,l]=C.useState("Votes");C.useEffect(()=>{c==="By Peak Projects"&&!Pc(c).includes(f)?l("Creator"):c!=="By Peak Projects"&&f==="Creator"&&!hf.includes(f)&&l("Votes")},[c,f]);const[h,d]=C.useState(!0);C.useEffect(()=>{(async()=>{d(!0);try{const[y,g]=await Promise.all([$c.getProposals("active"),$c.getProposals("expired")]);o([...y,...g])}catch(y){console.error("Error fetching proposals:",y),o([])}d(!1)})()},[]);const m=s.filter(x=>c==="All"?x.status==="active"||new Date(x.start_date+"Z")>new Date:c==="Active"?x.status==="active":c==="Upcoming"?new Date(x.start_date+"Z")>new Date:c==="Expired"?new Date(x.end_date+"Z")<new Date:c==="By Peak Projects"?x.creator==="peakd":!0).sort((x,y)=>c==="By Peak Projects"?y.creator.localeCompare(x.creator):0),b=c==="All"?(()=>{const x=m.filter(E=>E.status==="active"),y=m.filter(E=>new Date(E.start_date+"Z")>new Date),g=(E,D)=>f==="Votes"?Number(D.all_votes_num)-Number(E.all_votes_num):f==="Start Date"?new Date(D.start_date+"Z").getTime()-new Date(E.start_date+"Z").getTime():f==="End Date"?new Date(E.end_date+"Z").getTime()-new Date(D.end_date+"Z").getTime():f==="Creator"?E.creator.localeCompare(D.creator):0;return[...x.sort(g),...y.sort(g)]})():m.sort((x,y)=>f==="Votes"?Number(y.all_votes_num)-Number(x.all_votes_num):f==="Start Date"?new Date(y.start_date+"Z").getTime()-new Date(x.start_date+"Z").getTime():f==="End Date"?new Date(x.end_date+"Z").getTime()-new Date(y.end_date+"Z").getTime():f==="Creator"?x.creator.localeCompare(y.creator):0);return h?i.jsx("div",{className:"flex justify-center items-center py-8",children:i.jsx("div",{className:"text-gray-600 dark:text-gray-400",children:"Loading proposals..."})}):i.jsxs("div",{children:[i.jsx("div",{className:"flex gap-2 mb-4 flex-wrap",children:By.map(x=>i.jsx("button",{className:`px-3 py-1 rounded text-sm ${c===x?"bg-blue-500 text-white":"bg-gray-200 dark:bg-gray-700 text-gray-700 dark:text-gray-300"}`,onClick:()=>u(x),children:x},x))}),i.jsxs("div",{className:"mb-4",children:[i.jsx("label",{className:"text-gray-700 dark:text-gray-300 mr-2",children:"Sort by:"}),i.jsx("select",{value:f,onChange:x=>l(x.target.value),className:"px-3 py-1 border border-gray-300 dark:border-gray-600 rounded bg-white dark:bg-gray-800 text-gray-900 dark:text-gray-100",children:Pc(c).map(x=>i.jsx("option",{value:x,children:x},x))})]}),i.jsxs("div",{children:[c==="All"&&(()=>{const x=b.filter(g=>g.status==="active"),y=b.filter(g=>new Date(g.start_date+"Z")>new Date);return i.jsxs(i.Fragment,{children:[x.map(g=>i.jsx("div",{className:"border border-gray-200 dark:border-gray-700 rounded-lg mb-4 p-2 sm:p-4 shadow bg-white dark:bg-gray-800",children:i.jsxs("div",{className:"flex flex-col sm:flex-row",children:[i.jsxs("div",{className:"flex-1",children:[i.jsxs("div",{className:"flex items-center mb-2",children:[i.jsx("span",{onClick:()=>a(g),className:"inline-block mr-2 cursor-pointer",children:i.jsx("img",{src:`https://images.hive.blog/u/${g.creator}/avatar`,className:"w-8 h-8 rounded-full inline",alt:`${g.creator} avatar`})}),i.jsxs("span",{className:"font-bold cursor-pointer text-gray-900 dark:text-gray-100",onClick:()=>n(g),children:["by ",g.creator]}),g.receiver&&i.jsxs("span",{className:"ml-2 text-gray-500 dark:text-gray-400",children:["with receiver ",i.jsx("strong",{className:"text-gray-900 dark:text-gray-100",children:g.receiver})]})]}),i.jsxs("div",{className:"cursor-pointer text-lg font-semibold mb-1 text-gray-900 dark:text-gray-100",onClick:()=>r(g),children:[g.subject," ",i.jsxs("span",{className:"cursor-pointer text-lg font-semibold mb-1 text-gray-600 dark:text-gray-500",children:["#",g.proposal_id]})]}),i.jsxs("div",{className:"text-sm text-gray-500 dark:text-gray-400 mb-2",children:[i.jsx("span",{className:`inline-block px-2 py-1 rounded text-xs font-medium ${new Date(g.start_date+"Z")>new Date?"bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200":new Date(g.end_date+"Z")<new Date?"bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200":g.status==="active"?"bg-purple-100 text-purple-800 dark:bg-purple-900 dark:text-purple-200":"bg-gray-100 text-gray-800 dark:bg-gray-700 dark:text-gray-300"}`,children:new Date(g.start_date+"Z")>new Date?"upcoming":new Date(g.end_date+"Z")<new Date?"expired":g.status})," - "+new Date(g.start_date+"Z").toLocaleDateString()+" - "+new Date(g.end_date+"Z").toLocaleDateString()," ",i.jsx("span",{className:"text-xs text-gray-400 dark:text-gray-500",children:ko(g)})]}),i.jsxs("div",{className:"flex gap-2 mb-2",children:[i.jsx("button",{onClick:()=>window.open(`https://peakd.com/${g.creator}/${g.permlink}`,"_blank"),className:"text-blue-500 hover:text-blue-700 dark:text-blue-400 dark:hover:text-blue-300",title:"View on Peakd",children:i.jsx(q.ExternalLink,{size:16})}),i.jsxs("button",{onClick:()=>window.open(`https://hivehub.dev/proposals/${g.proposal_id}`,"_blank"),className:"flex text-green-500 hover:text-green-700 dark:text-green-400 dark:hover:text-green-300",title:"View Stats",children:[i.jsx(q.PieChart,{size:16})," Stats"]})]}),i.jsx("div",{className:"mb-2",children:i.jsxs("span",{className:"inline-block cursor-pointer px-2 py-1 bg-gray-100 dark:bg-gray-700 rounded text-gray-700 dark:text-gray-300",onClick:()=>e(g),children:["Vote value: ",g.vote_value_total?ct(g.vote_value_total):0," HP"]})})]}),i.jsxs("div",{className:"mt-4 sm:mt-0 sm:ml-4 w-full sm:w-48 flex flex-col space-y-1",children:[i.jsxs("div",{className:"flex justify-between",children:[i.jsx("span",{className:"font-mono text-gray-600 dark:text-gray-400 text-xs sm:text-sm",children:"Daily Pay:"}),i.jsxs("strong",{className:"text-gray-900 dark:text-gray-100 text-xs sm:text-sm",children:[g.daily_pay_hbd?ct(g.daily_pay_hbd):0," HBD"]})]}),i.jsxs("div",{className:"flex justify-between",children:[i.jsx("span",{className:"font-mono text-gray-600 dark:text-gray-400 text-xs sm:text-sm",children:"Remaining:"}),i.jsxs("strong",{className:"text-gray-900 dark:text-gray-100 text-xs sm:text-sm",children:[ct(g.remaining_days||0)," Days"]})]}),i.jsxs("div",{className:"flex justify-between",children:[i.jsx("span",{className:"font-mono text-gray-600 dark:text-gray-400 text-xs sm:text-sm",children:"Paid:"}),i.jsxs("strong",{className:"text-gray-900 dark:text-gray-100 text-xs sm:text-sm",children:[ct(g.total_hbd_received||0)," HBD"]})]}),i.jsxs("div",{className:"flex justify-between",children:[i.jsx("span",{className:"font-mono text-gray-600 dark:text-gray-400 text-xs sm:text-sm",children:"To Pay:"}),i.jsxs("strong",{className:"text-gray-900 dark:text-gray-100 text-xs sm:text-sm",children:[ct(g.max_hbd_remaining||0)," HBD"]})]}),i.jsx("div",{className:"mt-2",children:i.jsx("button",{className:"px-3 sm:px-5 py-2 bg-green-600 hover:bg-green-700 text-white rounded cursor-pointer w-full text-xs sm:text-sm",onClick:()=>t(g),children:"Support"})})]})]})},g.proposal_id)),y.length>0&&i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"my-6 text-center",children:[i.jsx("h3",{className:"text-xl font-bold text-gray-900 dark:text-gray-100 mb-2",children:"Upcoming proposals"}),i.jsx("p",{className:"text-gray-600 dark:text-gray-400",children:"The proposals listed below will start in the future. You can already support them."})]}),y.map(g=>i.jsx("div",{className:"border border-gray-200 dark:border-gray-700 rounded-lg mb-4 p-2 sm:p-4 shadow bg-white dark:bg-gray-800",children:i.jsxs("div",{className:"flex flex-col sm:flex-row",children:[i.jsxs("div",{className:"flex-1",children:[i.jsxs("div",{className:"flex items-center mb-2",children:[i.jsx("span",{onClick:()=>a(g),className:"inline-block mr-2 cursor-pointer",children:i.jsx("img",{src:`https://images.hive.blog/u/${g.creator}/avatar`,className:"w-8 h-8 rounded-full inline",alt:`${g.creator} avatar`})}),i.jsx("span",{className:"font-bold cursor-pointer text-gray-900 dark:text-gray-100",onClick:()=>n(g),children:g.creator}),i.jsxs("span",{className:"ml-2 text-gray-500 dark:text-gray-400",children:["with receiver ",i.jsx("strong",{className:"text-gray-900 dark:text-gray-100",children:g.receiver})]})]}),i.jsx("div",{className:"cursor-pointer text-lg font-semibold mb-1 text-gray-900 dark:text-gray-100",onClick:()=>r(g),children:g.subject}),i.jsxs("div",{className:"text-sm text-gray-500 dark:text-gray-400 mb-2",children:[i.jsx("span",{className:`inline-block px-2 py-1 rounded text-xs font-medium ${new Date(g.start_date+"Z")>new Date?"bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200":new Date(g.end_date+"Z")<new Date?"bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200":g.status==="active"?"bg-purple-100 text-purple-800 dark:bg-purple-900 dark:text-purple-200":"bg-gray-100 text-gray-800 dark:bg-gray-700 dark:text-gray-300"}`,children:new Date(g.start_date+"Z")>new Date?"upcoming":new Date(g.end_date+"Z")<new Date?"expired":g.status})," - "+new Date(g.start_date+"Z").toLocaleDateString()+" - "+new Date(g.end_date+"Z").toLocaleDateString()," ",i.jsx("span",{className:"text-xs text-gray-400 dark:text-gray-500",children:ko(g)})]}),i.jsxs("div",{className:"flex gap-2 mb-2",children:[i.jsx("button",{onClick:()=>window.open(`https://peakd.com/${g.creator}/${g.permlink}`,"_blank"),className:"text-blue-500 hover:text-blue-700 dark:text-blue-400 dark:hover:text-blue-300",title:"View on Peakd",children:i.jsx(q.ExternalLink,{size:16})}),i.jsxs("button",{onClick:()=>window.open(`https://hivehub.dev/proposals/${g.proposal_id}`,"_blank"),className:"flex text-green-500 hover:text-green-700 dark:text-green-400 dark:hover:text-green-300",title:"View Stats",children:[i.jsx(q.PieChart,{size:16})," Stats"]})]}),i.jsx("div",{className:"mb-2",children:i.jsxs("span",{className:"inline-block cursor-pointer px-2 py-1 bg-gray-100 dark:bg-gray-700 rounded text-gray-700 dark:text-gray-300",onClick:()=>e(g),children:["Vote value: ",g.vote_value_total?ct(g.vote_value_total):0," HP"]})})]}),i.jsxs("div",{className:"mt-4 sm:mt-0 sm:ml-4 w-full sm:w-48 flex flex-col space-y-1",children:[i.jsxs("div",{className:"flex justify-between",children:[i.jsx("span",{className:"font-mono text-gray-600 dark:text-gray-400 text-xs sm:text-sm",children:"Daily Pay:"}),i.jsxs("strong",{className:"text-gray-900 dark:text-gray-100 text-xs sm:text-sm",children:[g.daily_pay_hbd?ct(g.daily_pay_hbd):0," HBD"]})]}),i.jsxs("div",{className:"flex justify-between",children:[i.jsx("span",{className:"font-mono text-gray-600 dark:text-gray-400 text-xs sm:text-sm",children:"Remaining:"}),i.jsxs("strong",{className:"text-gray-900 dark:text-gray-100 text-xs sm:text-sm",children:[ct(g.remaining_days||0)," Days"]})]}),i.jsxs("div",{className:"flex justify-between",children:[i.jsx("span",{className:"font-mono text-gray-600 dark:text-gray-400 text-xs sm:text-sm",children:"Paid:"}),i.jsxs("strong",{className:"text-gray-900 dark:text-gray-100 text-xs sm:text-sm",children:[ct(g.total_hbd_received||0)," HBD"]})]}),i.jsxs("div",{className:"flex justify-between",children:[i.jsx("span",{className:"font-mono text-gray-600 dark:text-gray-400 text-xs sm:text-sm",children:"To Pay:"}),i.jsxs("strong",{className:"text-gray-900 dark:text-gray-100 text-xs sm:text-sm",children:[ct(g.max_hbd_remaining||0)," HBD"]})]}),i.jsx("div",{className:"mt-2",children:i.jsx("button",{className:"px-3 sm:px-5 py-2 bg-green-600 hover:bg-green-700 text-white rounded cursor-pointer w-full text-xs sm:text-sm",onClick:()=>t(g),children:"Support"})})]})]})},g.proposal_id))]})]})})(),c!=="All"&&b.map(x=>i.jsx("div",{className:"border border-gray-200 dark:border-gray-700 rounded-lg mb-4 p-2 sm:p-4 shadow bg-white dark:bg-gray-800",children:i.jsxs("div",{className:"flex flex-col sm:flex-row",children:[i.jsxs("div",{className:"flex-1",children:[i.jsxs("div",{className:"flex items-center mb-2",children:[i.jsx("span",{onClick:()=>a(x),className:"inline-block mr-2 cursor-pointer",children:i.jsx("img",{src:`https://images.hive.blog/u/${x.creator}/avatar`,className:"w-8 h-8 rounded-full inline",alt:`${x.creator} avatar`})}),i.jsx("span",{className:"font-bold cursor-pointer text-gray-900 dark:text-gray-100",onClick:()=>n(x),children:x.creator}),i.jsxs("span",{className:"ml-2 text-gray-500 dark:text-gray-400",children:["with receiver ",i.jsx("strong",{className:"text-gray-900 dark:text-gray-100",children:x.receiver})]})]}),i.jsxs("div",{className:"cursor-pointer text-lg font-semibold mb-1 text-gray-900 dark:text-gray-100",onClick:()=>r(x),children:[x.subject," #",x.proposal_id]}),i.jsxs("div",{className:"text-sm text-gray-500 dark:text-gray-400 mb-2",children:[i.jsx("span",{className:`inline-block px-2 py-1 rounded text-xs font-medium ${new Date(x.start_date+"Z")>new Date?"bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200":new Date(x.end_date+"Z")<new Date?"bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200":x.status==="active"?"bg-purple-100 text-purple-800 dark:bg-purple-900 dark:text-purple-200":"bg-gray-100 text-gray-800 dark:bg-gray-700 dark:text-gray-300"}`,children:new Date(x.start_date+"Z")>new Date?"upcoming":new Date(x.end_date+"Z")<new Date?"expired":x.status})," - "+new Date(x.start_date+"Z").toLocaleDateString()+" - "+new Date(x.end_date+"Z").toLocaleDateString()," ",i.jsx("span",{className:"text-xs text-gray-400 dark:text-gray-500",children:ko(x)})]}),i.jsxs("div",{className:"flex gap-2 mb-2",children:[i.jsx("button",{onClick:()=>window.open(`https://peakd.com/@${x.creator}/${x.permlink}`,"_blank"),className:"text-blue-500 hover:text-blue-700 dark:text-blue-400 dark:hover:text-blue-300",title:"View on Peakd",children:i.jsx(q.ExternalLink,{size:16})}),i.jsxs("button",{onClick:()=>window.open(`https://hivehub.dev/proposals/${x.proposal_id}`,"_blank"),className:"flex text-green-500 hover:text-green-700 dark:text-green-400 dark:hover:text-green-300",title:"View Stats",children:[i.jsx(q.PieChart,{size:16})," Stats"]})]}),i.jsx("div",{className:"mb-2",children:i.jsxs("span",{className:"inline-block cursor-pointer px-2 py-1 bg-gray-100 dark:bg-gray-700 rounded text-gray-700 dark:text-gray-300",onClick:()=>e(x),children:["Vote value: ",x.vote_value_total?ct(x.vote_value_total):0," HP"]})})]}),i.jsxs("div",{className:"mt-4 sm:mt-0 sm:ml-4 w-full sm:w-48 flex flex-col space-y-1",children:[i.jsxs("div",{className:"flex justify-between",children:[i.jsx("span",{className:"font-mono text-gray-600 dark:text-gray-400 text-xs sm:text-sm",children:"Daily Pay:"}),i.jsxs("strong",{className:"text-gray-900 dark:text-gray-100 text-xs sm:text-sm",children:[x.daily_pay_hbd?ct(x.daily_pay_hbd):0," HBD"]})]}),i.jsxs("div",{className:"flex justify-between",children:[i.jsx("span",{className:"font-mono text-gray-600 dark:text-gray-400 text-xs sm:text-sm",children:"Remaining:"}),i.jsxs("strong",{className:"text-gray-900 dark:text-gray-100 text-xs sm:text-sm",children:[ct(x.remaining_days||0)," Days"]})]}),c!=="Expired"&&i.jsxs("div",{className:"flex justify-between",children:[i.jsx("span",{className:"font-mono text-gray-600 dark:text-gray-400 text-xs sm:text-sm",children:"Paid:"}),i.jsxs("strong",{className:"text-gray-900 dark:text-gray-100 text-xs sm:text-sm",children:[ct(x.total_hbd_received||0)," HBD"]})]}),i.jsxs("div",{className:"flex justify-between",children:[i.jsx("span",{className:"font-mono text-gray-600 dark:text-gray-400 text-xs sm:text-sm",children:"To Pay:"}),i.jsxs("strong",{className:"text-gray-900 dark:text-gray-100 text-xs sm:text-sm",children:[ct(x.max_hbd_remaining||0)," HBD"]})]}),i.jsx("div",{className:"mt-2",children:i.jsx("button",{className:"px-3 sm:px-5 py-2 bg-green-600 hover:bg-green-700 text-white rounded cursor-pointer w-full text-xs sm:text-sm",onClick:()=>t(x),children:"Support"})})]})]})},x.proposal_id))]})]})};class qy{constructor(){ga(this,"HIVE_API_URL","https://api.hive.blog")}async getProfile(e){const r={jsonrpc:"2.0",method:"bridge.get_profile",params:{account:e},id:1},n=await fetch(this.HIVE_API_URL,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);return await n.json()}async getFollowers(e){const r={jsonrpc:"2.0",method:"condenser_api.get_followers",params:[e,null,"blog"],id:1},n=await fetch(this.HIVE_API_URL,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);return(await n.json()).result}async getFollowing(e){const r={jsonrpc:"2.0",method:"condenser_api.get_following",params:[e,null,"blog"],id:1},n=await fetch(this.HIVE_API_URL,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);return(await n.json()).result}async getAccounts(e){const r={jsonrpc:"2.0",method:"condenser_api.get_accounts",params:[e],id:1},n=await fetch(this.HIVE_API_URL,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);return(await n.json()).result}async getDynamicGlobalProperties(){const e={jsonrpc:"2.0",method:"condenser_api.get_dynamic_global_properties",params:[],id:1},r=await fetch(this.HIVE_API_URL,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return(await r.json()).result}async convertVestingSharesToHive(e){try{const r=await this.getDynamicGlobalProperties(),n=parseFloat(e.split(" ")[0]),a=parseFloat(r.total_vesting_shares.split(" ")[0]),s=parseFloat(r.total_vesting_fund_hive.split(" ")[0]);return(n*s/a).toFixed(3)}catch(r){return console.error("Error converting vesting shares:",r),"0"}}async getFeedHistory(){const e={jsonrpc:"2.0",method:"condenser_api.get_feed_history",params:[],id:1},r=await fetch(this.HIVE_API_URL,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return(await r.json()).result}async getVoteValue(e,r=1e4){try{const n=await this.getAccounts([e]);if(n.length===0)throw new Error("Account not found!");const a=n[0],s=await this.getDynamicGlobalProperties(),o=await this.getFeedHistory(),c=parseFloat(a.vesting_shares)+parseFloat(a.received_vesting_shares)-parseFloat(a.delegated_vesting_shares)-parseFloat(a.vesting_withdraw_rate),u=Math.floor(Date.now()/1e3)-a.voting_manabar.last_update_time,f=c*1e6/4;let l=parseFloat(a.voting_manabar.current_mana.toString())+u*f/(5*60*60*24);l>f&&(l=f);const h=l*100/f,d=a.vesting_shares||"0 VESTS",m=parseFloat(d.toString().split(" ")[0]),b=s.total_vesting_shares||"0 VESTS",x=parseFloat(b.toString().split(" ")[0]),y=r/1e4,g=h*y/100,E=s.vote_power_reserve_rate*(5*60*60*24)/(60*60*24),D=g*f/100,w=parseFloat(s.recent_claims||"0"),j=s.reward_balance||"0 HIVE",p=parseFloat(j.toString().split(" ")[0]),A=s.current_supply||"0 HIVE",k=parseFloat(A.toString().split(" ")[0]),V=s.current_sbd_supply||"0 HBD",H=parseFloat(V.toString().split(" ")[0]),S=p/w*(m/x)*(D/f)*k,P=o==null?void 0:o.current_median_history;if(!P||!P.base)return"0.00";const I=parseFloat(P.base.toString().split(" ")[0]);return(S*I).toFixed(2)}catch(n){return console.error("Error calculating vote value:",n),"0.00"}}userAvatar(e){return`https://images.hive.blog/u/${e}/avatar`}}const Re=new qy,Lc=({vestingShares:t})=>{const[e,r]=C.useState("...");return C.useEffect(()=>{(async()=>{try{const a=await Re.convertVestingSharesToHive(t);r(a)}catch(a){console.error("Error calculating HP:",a);const s=parseFloat(t.split(" ")[0]);r((s/1e6).toFixed(3))}})()},[t]),i.jsxs("span",{className:"text-sm font-medium text-gray-900 dark:text-white",children:[e," HP"]})},Uy=({username:t,onClickAuthor:e,onClickAddRemoveFromLists:r,onClickFollow:n})=>{const[a,s]=C.useState([]),[o,c]=C.useState([]),[u,f]=C.useState({}),[l,h]=C.useState(!0),[d,m]=C.useState(null),[b,x]=C.useState(null),y=C.useRef(null),g=async()=>{try{h(!0),m(null);const w=await Re.getFollowers(t);if(s(w),w.length>0){const j=w.map(V=>V.follower),p=await Re.getAccounts(j);c(p);const A={},k={};for(const V of w)try{const H=await Re.getVoteValue(V.follower);k[V.follower]=H}catch(H){console.warn(`Failed to get voting data for ${V.follower}:`,H),A[V.follower]={upvotepower:"0",downvote:"0"},k[V.follower]="0.00"}f(k)}}catch(w){m(w instanceof Error?w.message:"Failed to load followers data")}finally{h(!1)}};C.useEffect(()=>{g()},[t]),C.useEffect(()=>{const w=j=>{y.current&&!y.current.contains(j.target)&&x(null)};return document.addEventListener("mousedown",w),()=>{document.removeEventListener("mousedown",w)}},[]);const E=w=>{const j=o.find(p=>p.name===w);if(!j)return null;try{const p=JSON.parse(j.posting_json_metadata);return(p==null?void 0:p.profile)||{}}catch{return{}}},D=w=>{const j=new Date,p=new Date(w),A=j.getTime()-p.getTime(),k=Math.floor(A/(1e3*60*60*24));if(Math.floor(k/30)>=1)return p.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});const H=Math.floor(A/1e3),S=Math.floor(H/60),P=Math.floor(S/60),I=Math.floor(k/7),W=Math.floor(k/365);return W>0?`${W} year${W>1?"s":""} ago`:I>0?`${I} week${I>1?"s":""} ago`:k>0?`${k} day${k>1?"s":""} ago`:P>0?`${P} hour${P>1?"s":""} ago`:S>0?`${S} minute${S>1?"s":""} ago`:"Just now"};return l?i.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:i.jsxs("div",{className:"flex items-center gap-2 text-gray-500 dark:text-gray-400",children:[i.jsx(q.Loader2,{className:"w-5 h-5 animate-spin"}),"Loading followers..."]})}):d?i.jsx("div",{className:"flex flex-col items-center justify-center min-h-[400px] space-y-4",children:i.jsxs("div",{className:"text-center",children:[i.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-2",children:"Failed to load followers"}),i.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-4",children:d}),i.jsxs("button",{onClick:g,className:"m-2 inline-flex items-center justify-center rounded-md border border-input text-gray-400 cursor-pointer bg-background p-2 text-sm font-medium text-foreground shadow-sm transition-colors hover:bg-accent hover:text-accent-foreground disabled:opacity-50 disabled:pointer-events-none",children:[i.jsx(q.RefreshCw,{className:"w-4 h-4 mr-2"}),"Try Again"]})]})}):a.length===0?i.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:i.jsx("p",{className:"text-gray-500 dark:text-gray-400",children:"This user has no followers."})}):i.jsxs("div",{className:"space-y-6",children:[i.jsx("div",{className:"hidden md:block overflow-x-auto",children:i.jsxs("table",{className:"w-full border-collapse",children:[i.jsx("thead",{children:i.jsxs("tr",{className:"border-b border-gray-200 dark:border-gray-700",children:[i.jsx("th",{className:"text-left py-3 px-4 font-semibold text-gray-900 dark:text-white",children:"Avatar"}),i.jsx("th",{className:"text-left py-3 px-4 font-semibold text-gray-900 dark:text-white",children:"Username"}),i.jsx("th",{className:"text-left py-3 px-4 font-semibold text-gray-900 dark:text-white",children:"Last Post"}),i.jsx("th",{className:"text-left py-3 px-4 font-semibold text-gray-900 dark:text-white",children:"HP"}),i.jsx("th",{className:"text-left py-3 px-4 font-semibold text-gray-900 dark:text-white",children:"Vote Value"}),i.jsx("th",{className:"text-left py-3 px-4 font-semibold text-gray-900 dark:text-white",children:"Manage"})]})}),i.jsx("tbody",{children:a.map((w,j)=>{const p=o.find(k=>k.name===w.follower),A=E(w.follower);return i.jsxs("tr",{className:"border-b border-gray-100 dark:border-gray-800 hover:bg-gray-50 dark:hover:bg-gray-800/50",children:[i.jsx("td",{className:"py-4 px-4",children:i.jsx("img",{src:(A==null?void 0:A.profile_image)||Re.userAvatar(w.follower),alt:w.follower,className:"w-12 h-12 rounded-full object-cover cursor-pointer",onClick:()=>e&&e(w.follower),onError:k=>{k.target.src=`https://ui-avatars.com/api/?name=${w.follower}&background=random`}})}),i.jsxs("td",{className:"py-4 px-4",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsxs("span",{className:"font-semibold text-gray-900 dark:text-white cursor-pointer hover:text-blue-600 dark:hover:text-blue-400",onClick:()=>e&&e(w.follower),children:["@",w.follower]}),(A==null?void 0:A.location)&&i.jsxs("div",{className:"relative group",children:[i.jsx(q.MapPin,{className:"w-4 h-4 text-gray-500 dark:text-gray-400"}),i.jsx("div",{className:"absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 px-2 py-1 bg-gray-900 text-white text-xs rounded opacity-0 group-hover:opacity-100 transition-opacity whitespace-nowrap z-10",children:A.location})]})]}),(A==null?void 0:A.about)&&i.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 mt-1 truncate max-w-xs",children:A.about})]}),i.jsx("td",{className:"py-4 px-4",children:p!=null&&p.last_post&&p.last_post!=="1970-01-01T00:00:00"?i.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:D(p.last_root_post)}):i.jsx("span",{className:"text-sm text-gray-400 dark:text-gray-500",children:"Never"})}),i.jsx("td",{className:"py-4 px-4",children:p?i.jsx(Lc,{vestingShares:p.vesting_shares}):i.jsx("span",{className:"text-sm text-gray-400 dark:text-gray-500",children:"-"})}),i.jsx("td",{className:"py-4 px-4",children:u[w.follower]?i.jsxs("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:["$",u[w.follower]]}):i.jsx("span",{className:"text-sm text-gray-400 dark:text-gray-500",children:"-"})}),i.jsx("td",{className:"py-4 px-4",children:i.jsxs("div",{className:"relative",ref:b===w.follower?y:null,children:[i.jsx("button",{onClick:()=>x(b===w.follower?null:w.follower),className:"p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors",children:i.jsx(q.MoreVertical,{className:"w-4 h-4 text-gray-600 dark:text-gray-400"})}),b===w.follower&&i.jsxs("div",{className:"absolute right-0 mt-2 w-48 bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg shadow-lg z-10",children:[i.jsxs("button",{onClick:()=>{r&&r(w.follower),x(null)},className:"w-full text-left px-4 py-2 text-sm text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 flex items-center gap-2",children:[i.jsx(q.UserPlus,{className:"w-4 h-4"}),"Add/remove from lists"]}),i.jsxs("button",{onClick:()=>{n&&n(w.follower),x(null)},className:"w-full text-left px-4 py-2 text-sm text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 flex items-center gap-2",children:[i.jsx(q.UserMinus,{className:"w-4 h-4"}),"Follow"]})]})]})})]},`${w.follower}-${j}`)})})]})}),i.jsx("div",{className:"md:hidden space-y-4",children:a.map((w,j)=>{const p=o.find(k=>k.name===w.follower),A=E(w.follower);return i.jsx("div",{className:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-xl p-4",children:i.jsxs("div",{className:"flex items-start gap-3",children:[i.jsx("img",{src:(A==null?void 0:A.profile_image)||Re.userAvatar(w.follower),alt:w.follower,className:"w-10 h-10 rounded-full object-cover cursor-pointer flex-shrink-0",onClick:()=>e&&e(w.follower),onError:k=>{k.target.src=`https://ui-avatars.com/api/?name=${w.follower}&background=random`}}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsxs("div",{className:"flex items-center justify-between mb-1",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsxs("span",{className:"font-semibold text-gray-900 dark:text-white cursor-pointer hover:text-blue-600 dark:hover:text-blue-400 text-sm",onClick:()=>e&&e(w.follower),children:["@",w.follower]}),(A==null?void 0:A.location)&&i.jsxs("div",{className:"relative group",children:[i.jsx(q.MapPin,{className:"w-3 h-3 text-gray-500 dark:text-gray-400"}),i.jsx("div",{className:"absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 px-2 py-1 bg-gray-900 text-white text-xs rounded opacity-0 group-hover:opacity-100 transition-opacity whitespace-nowrap z-10",children:A.location})]})]}),i.jsx("div",{className:"text-xs text-gray-600 dark:text-gray-400",children:p!=null&&p.last_post&&p.last_post!=="1970-01-01T00:00:00"?D(p.last_root_post):i.jsx("span",{className:"text-gray-400 dark:text-gray-500",children:"Never"})})]}),i.jsxs("div",{className:"flex items-center justify-between mt-2",children:[i.jsx("div",{className:"flex items-center gap-4",children:p&&i.jsx("div",{className:"text-xs text-gray-600 dark:text-gray-400",children:i.jsx(Lc,{vestingShares:p.vesting_shares})})}),i.jsxs("div",{className:"relative",ref:b===w.follower?y:null,children:[i.jsx("button",{onClick:()=>x(b===w.follower?null:w.follower),className:"p-1 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors",children:i.jsx(q.MoreVertical,{className:"w-3 h-3 text-gray-600 dark:text-gray-400"})}),b===w.follower&&i.jsxs("div",{className:"absolute right-0 mt-1 w-40 bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg shadow-lg z-10",children:[i.jsxs("button",{onClick:()=>{r&&r(w.follower),x(null)},className:"w-full text-left px-3 py-2 text-xs text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 flex items-center gap-2",children:[i.jsx(q.UserPlus,{className:"w-3 h-3"}),"Add/remove from lists"]}),i.jsxs("button",{onClick:()=>{n&&n(w.follower),x(null)},className:"w-full text-left px-3 py-2 text-xs text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 flex items-center gap-2",children:[i.jsx(q.UserMinus,{className:"w-3 h-3"}),"Follow"]})]})]})]})]})]})},`${w.follower}-${j}`)})})]})},Mc=({vestingShares:t})=>{const[e,r]=C.useState("...");return C.useEffect(()=>{(async()=>{try{const a=await Re.convertVestingSharesToHive(t);r(a)}catch(a){console.error("Error calculating HP:",a);const s=parseFloat(t.split(" ")[0]);r((s/1e6).toFixed(3))}})()},[t]),i.jsxs("span",{className:"text-sm font-medium text-gray-900 dark:text-white",children:[e," HP"]})},zy=({username:t,onClickAuthor:e,onClickAddRemoveFromLists:r,onClickUnfollow:n})=>{const[a,s]=C.useState([]),[o,c]=C.useState([]),[u,f]=C.useState({}),[l,h]=C.useState(!0),[d,m]=C.useState(null),[b,x]=C.useState(null),y=C.useRef(null),g=async()=>{try{h(!0),m(null);const w=await Re.getFollowing(t);if(s(w),w.length>0){const j=w.map(k=>k.following),p=await Re.getAccounts(j);c(p);const A={};for(const k of w)try{const V=await Re.getVoteValue(k.following);A[k.following]=V}catch(V){console.warn(`Failed to get voting data for ${k.following}:`,V),A[k.following]="0.00"}f(A)}}catch(w){m(w instanceof Error?w.message:"Failed to load following data")}finally{h(!1)}};C.useEffect(()=>{g()},[t]),C.useEffect(()=>{const w=j=>{y.current&&!y.current.contains(j.target)&&x(null)};return document.addEventListener("mousedown",w),()=>{document.removeEventListener("mousedown",w)}},[]);const E=w=>{const j=o.find(p=>p.name===w);if(!j)return null;try{const p=JSON.parse(j.posting_json_metadata);return(p==null?void 0:p.profile)||{}}catch{return{}}},D=w=>{const j=new Date,p=new Date(w),A=j.getTime()-p.getTime(),k=Math.floor(A/(1e3*60*60*24));if(Math.floor(k/30)>=1)return p.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});const H=Math.floor(A/1e3),S=Math.floor(H/60),P=Math.floor(S/60),I=Math.floor(k/7),W=Math.floor(k/365);return W>0?`${W} year${W>1?"s":""} ago`:I>0?`${I} week${I>1?"s":""} ago`:k>0?`${k} day${k>1?"s":""} ago`:P>0?`${P} hour${P>1?"s":""} ago`:S>0?`${S} minute${S>1?"s":""} ago`:"Just now"};return l?i.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:i.jsxs("div",{className:"flex items-center gap-2 text-gray-500 dark:text-gray-400",children:[i.jsx(q.Loader2,{className:"w-5 h-5 animate-spin"}),"Loading following..."]})}):d?i.jsx("div",{className:"flex flex-col items-center justify-center min-h-[400px] space-y-4",children:i.jsxs("div",{className:"text-center",children:[i.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-2",children:"Failed to load following"}),i.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-4",children:d}),i.jsxs("button",{onClick:g,className:"m-2 inline-flex items-center justify-center rounded-md border border-input text-gray-400 cursor-pointer bg-background p-2 text-sm font-medium text-foreground shadow-sm transition-colors hover:bg-accent hover:text-accent-foreground disabled:opacity-50 disabled:pointer-events-none",children:[i.jsx(q.RefreshCw,{className:"w-4 h-4 mr-2"}),"Try Again"]})]})}):a.length===0?i.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:i.jsx("p",{className:"text-gray-500 dark:text-gray-400",children:"This user is not following anyone."})}):i.jsxs("div",{className:"space-y-6",children:[i.jsx("div",{className:"hidden md:block overflow-x-auto",children:i.jsxs("table",{className:"w-full border-collapse",children:[i.jsx("thead",{children:i.jsxs("tr",{className:"border-b border-gray-200 dark:border-gray-700",children:[i.jsx("th",{className:"text-left py-3 px-4 font-semibold text-gray-900 dark:text-white",children:"Avatar"}),i.jsx("th",{className:"text-left py-3 px-4 font-semibold text-gray-900 dark:text-white",children:"Username"}),i.jsx("th",{className:"text-left py-3 px-4 font-semibold text-gray-900 dark:text-white",children:"Last Post"}),i.jsx("th",{className:"text-left py-3 px-4 font-semibold text-gray-900 dark:text-white",children:"HP"}),i.jsx("th",{className:"text-left py-3 px-4 font-semibold text-gray-900 dark:text-white",children:"Vote Value"}),i.jsx("th",{className:"text-left py-3 px-4 font-semibold text-gray-900 dark:text-white",children:"Manage"})]})}),i.jsx("tbody",{children:a.map((w,j)=>{const p=o.find(k=>k.name===w.following),A=E(w.following);return i.jsxs("tr",{className:"border-b border-gray-100 dark:border-gray-800 hover:bg-gray-50 dark:hover:bg-gray-800/50",children:[i.jsx("td",{className:"py-4 px-4",children:i.jsx("img",{src:(A==null?void 0:A.profile_image)||Re.userAvatar(w.following),alt:w.following,className:"w-12 h-12 rounded-full object-cover cursor-pointer",onClick:()=>e&&e(w.following),onError:k=>{k.target.src=`https://ui-avatars.com/api/?name=${w.following}&background=random`}})}),i.jsxs("td",{className:"py-4 px-4",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsxs("span",{className:"font-semibold text-gray-900 dark:text-white cursor-pointer hover:text-blue-600 dark:hover:text-blue-400",onClick:()=>e&&e(w.following),children:["@",w.following]}),(A==null?void 0:A.location)&&i.jsxs("div",{className:"relative group",children:[i.jsx(q.MapPin,{className:"w-4 h-4 text-gray-500 dark:text-gray-400"}),i.jsx("div",{className:"absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 px-2 py-1 bg-gray-900 text-white text-xs rounded opacity-0 group-hover:opacity-100 transition-opacity whitespace-nowrap z-10",children:A.location})]})]}),(A==null?void 0:A.about)&&i.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 mt-1 truncate max-w-xs",children:A.about})]}),i.jsx("td",{className:"py-4 px-4",children:p!=null&&p.last_post&&p.last_post!=="1970-01-01T00:00:00"?i.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:D(p.last_root_post)}):i.jsx("span",{className:"text-sm text-gray-400 dark:text-gray-500",children:"Never"})}),i.jsx("td",{className:"py-4 px-4",children:p?i.jsx(Mc,{vestingShares:p.vesting_shares}):i.jsx("span",{className:"text-sm text-gray-400 dark:text-gray-500",children:"-"})}),i.jsx("td",{className:"py-4 px-4",children:u[w.following]?i.jsxs("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:["$",u[w.following]]}):i.jsx("span",{className:"text-sm text-gray-400 dark:text-gray-500",children:"-"})}),i.jsx("td",{className:"py-4 px-4",children:i.jsxs("div",{className:"relative",ref:b===w.following?y:null,children:[i.jsx("button",{onClick:()=>x(b===w.following?null:w.following),className:"p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors",children:i.jsx(q.MoreVertical,{className:"w-4 h-4 text-gray-600 dark:text-gray-400"})}),b===w.following&&i.jsxs("div",{className:"absolute right-0 mt-2 w-48 bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg shadow-lg z-10",children:[i.jsxs("button",{onClick:()=>{r&&r(w.following),x(null)},className:"w-full text-left px-4 py-2 text-sm text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 flex items-center gap-2",children:[i.jsx(q.UserPlus,{className:"w-4 h-4"}),"Add/remove from lists"]}),i.jsxs("button",{onClick:()=>{n&&n(w.following),x(null)},className:"w-full text-left px-4 py-2 text-sm text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 flex items-center gap-2",children:[i.jsx(q.UserMinus,{className:"w-4 h-4"}),"Unfollow"]})]})]})})]},`${w.following}-${j}`)})})]})}),i.jsx("div",{className:"md:hidden space-y-4",children:a.map((w,j)=>{const p=o.find(k=>k.name===w.following),A=E(w.following);return i.jsx("div",{className:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-xl p-4",children:i.jsxs("div",{className:"flex items-start gap-3",children:[i.jsx("img",{src:(A==null?void 0:A.profile_image)||Re.userAvatar(w.following),alt:w.following,className:"w-10 h-10 rounded-full object-cover cursor-pointer flex-shrink-0",onClick:()=>e&&e(w.following),onError:k=>{k.target.src=`https://ui-avatars.com/api/?name=${w.following}&background=random`}}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsxs("div",{className:"flex items-center justify-between mb-1",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsxs("span",{className:"font-semibold text-gray-900 dark:text-white cursor-pointer hover:text-blue-600 dark:hover:text-blue-400 text-sm",onClick:()=>e&&e(w.following),children:["@",w.following]}),(A==null?void 0:A.location)&&i.jsxs("div",{className:"relative group",children:[i.jsx(q.MapPin,{className:"w-3 h-3 text-gray-500 dark:text-gray-400"}),i.jsx("div",{className:"absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 px-2 py-1 bg-gray-900 text-white text-xs rounded opacity-0 group-hover:opacity-100 transition-opacity whitespace-nowrap z-10",children:A.location})]})]}),i.jsx("div",{className:"text-xs text-gray-600 dark:text-gray-400",children:p!=null&&p.last_post&&p.last_post!=="1970-01-01T00:00:00"?D(p.last_root_post):i.jsx("span",{className:"text-gray-400 dark:text-gray-500",children:"Never"})})]}),i.jsxs("div",{className:"flex items-center justify-between mt-2",children:[i.jsx("div",{className:"flex items-center gap-4",children:p&&i.jsx("div",{className:"text-xs text-gray-600 dark:text-gray-400",children:i.jsx(Mc,{vestingShares:p.vesting_shares})})}),i.jsxs("div",{className:"relative",ref:b===w.following?y:null,children:[i.jsx("button",{onClick:()=>x(b===w.following?null:w.following),className:"p-1 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors",children:i.jsx(q.MoreVertical,{className:"w-3 h-3 text-gray-600 dark:text-gray-400"})}),b===w.following&&i.jsxs("div",{className:"absolute right-0 mt-1 w-40 bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg shadow-lg z-10",children:[i.jsxs("button",{onClick:()=>{r&&r(w.following),x(null)},className:"w-full text-left px-3 py-2 text-xs text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 flex items-center gap-2",children:[i.jsx(q.UserPlus,{className:"w-3 h-3"}),"Add/remove from lists"]}),i.jsxs("button",{onClick:()=>{n&&n(w.following),x(null)},className:"w-full text-left px-3 py-2 text-xs text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 flex items-center gap-2",children:[i.jsx(q.UserMinus,{className:"w-3 h-3"}),"Unfollow"]})]})]})]})]})]})},`${w.following}-${j}`)})})]})},Ic=new ii.Client(["https://api.hive.blog","https://api.syncad.com","https://api.deathwing.me"]);class Hy{async getAccountHistory(e,r=-1,n=1e3,a,s){try{const o=[e,r,n];return a!==void 0&&s!==void 0&&o.push(a,s),(await Ic.call("condenser_api","get_account_history",o)).map(([u,f])=>({index:u,block:f.block,op:{type:f.op[0],value:f.op[1]},op_in_trx:f.op_in_trx,timestamp:f.timestamp,trx_id:f.trx_id,trx_in_block:f.trx_in_block,virtual_op:f.virtual_op}))}catch(o){return console.error("Error fetching account history:",o),[]}}async getNextAccountHistoryPage(e,r,n=1e3){try{const a=r-1;return(await Ic.call("condenser_api","get_account_history",[e,a,n])).map(([c,u])=>({index:c,block:u.block,op:{type:u.op[0],value:u.op[1]},op_in_trx:u.op_in_trx,timestamp:u.timestamp,trx_id:u.trx_id,trx_in_block:u.trx_in_block,virtual_op:u.virtual_op})).filter(c=>c.index<r)}catch(a){return console.error("Error fetching next page of account history:",a),[]}}convertToActivityListItems(e,r){return e.filter(n=>{const a=n.op.type;return a!=="effective_comment_vote"&&a!=="witness_set_properties"&&a!=="producer_reward"&&a!=="comment_reward"&&a!=="comment_payout_update"&&a!=="claim_reward_balance"&&a!=="transfer"&&a!=="claim_account"&&a!=="transfer_to_vesting"&&a!=="transfer_to_vesting_completed"}).map(n=>{const a=this.parseOperation(n,r);return{id:`${n.index}-${n.trx_id}`,type:a.type,direction:a.direction,timestamp:n.timestamp,block:n.block,description:a.description,details:n.op.value,index:n.index,...a.extraFields}}).filter(n=>n!==null)}parseOperation(e,r){const{op:n}=e,a=n.type,s=n.value;switch(a){case"vote":return this.parseVoteOperation(s,r);case"comment":return this.parseCommentOperation(s,r);case"custom_json":return this.parseCustomJsonOperation(s,r);case"comment_options":return this.parseCommentOptionsOperation(s,r);case"effective_comment_vote":return this.parseEffectiveCommentVoteOperation(s,r);case"curation_reward":return this.parseCurationRewardOperation(s,r);case"author_reward":return this.parseAuthorRewardOperation(s,r);case"comment_benefactor_reward":return this.parseCommentBenefactorRewardOperation(s,r);default:return{type:"other",direction:"out",description:`${a} operation`,extraFields:{}}}}parseVoteOperation(e,r){const{voter:n,author:a,permlink:s,weight:o}=e,c=a===r,u=c?"in":"out",f=(o/100).toFixed(0);let l="";return c?l=`${n} voted ${a}/${s} with ${f}%`:l=`Voted ${a}/${s} with ${f}%`,{type:"vote",direction:u,description:l,extraFields:{voter:n,author:a,permlink:s,weight:parseInt(f)}}}parseCommentOperation(e,r){const{author:n,parent_author:a,parent_permlink:s,permlink:o}=e,u=a===r?"in":"out",l=`Commented on ${s} by ${a||n}.`;return{type:"comment",direction:u,description:l,extraFields:{author:n,permlink:o,parent_author:a,parent_permlink:s}}}parseCustomJsonOperation(e,r){const{id:n,json:a,required_auths:s,required_posting_auths:o}=e;let c={};try{c=JSON.parse(a)}catch{}let u="Custom Json";if(n==="follow"){const[f,l]=c;f==="follow"&&(u="Custom Json")}return{type:"custom_json",direction:"out",description:u,extraFields:{}}}parseCommentOptionsOperation(e,r){const{author:n,permlink:a,max_accepted_payout:s}=e;return{type:"comment_options",direction:"out",description:"Comment Payout Update",extraFields:{author:n,permlink:a,payout:s}}}parseEffectiveCommentVoteOperation(e,r){const{voter:n,author:a,permlink:s,pending_payout:o}=e,c=a===r,u=c?"in":"out",f=c?`${n} voted on ${a}/${s} (effective vote)`:`Effective vote on ${a}/${s}`;return{type:"effective_comment_vote",direction:u,description:f,extraFields:{voter:n,author:a,permlink:s,payout:o}}}parseCurationRewardOperation(e,r){const{author:n,curator:a,permlink:s,reward:o}=e,u=a===r?"in":"out",h=`${(parseFloat(o.split(" ")[0])*1e-6).toFixed(3)} HP`,d=`Curation reward for ${a}/${s} by ${n}`;return{type:"curation_reward",direction:u,description:d,extraFields:{author:n,curator:a,permlink:s,reward:h}}}parseAuthorRewardOperation(e,r){const{author:n,permlink:a,hbd_payout:s,hive_payout:o,vesting_payout:c}=e,f=n===r?"in":"out",h=(parseFloat(c.split(" ")[0])*1e-6).toFixed(3),d=s.split(" ")[0],m=o.split(" ")[0],b=`Author reward: ${d} HBD, ${m} HIVE, ${h} HP for ${a}`;return{type:"author_reward",direction:f,description:b,extraFields:{author:n,permlink:a,hbd_payout:s,hive_payout:o,vesting_payout:c}}}parseCommentBenefactorRewardOperation(e,r){const{author:n,benefactor:a,permlink:s,hbd_payout:o,hive_payout:c,vesting_payout:u}=e,l=a===r?"in":"out",d=(parseFloat(u.split(" ")[0])*1e-6).toFixed(3),m=o.split(" ")[0],b=c.split(" ")[0],x=`Benefactor reward on ${s} by ${n}: ${m} HBD, ${b} HIVE, ${d} HP`;return{type:"comment_benefactor_reward",direction:l,description:x,extraFields:{author:n,benefactor:a,permlink:s,hbd_payout:o,hive_payout:c,vesting_payout:u}}}filterByDirection(e,r){return r==="all"?e:e.filter(n=>n.direction===r)}filterByGeneralType(e,r){if(r==="all")return e;switch(r){case"votes":return e.filter(n=>n.type==="vote"||n.type==="effective_comment_vote");case"comments":return e.filter(n=>n.type==="comment");case"replies":return e.filter(n=>n.type==="comment"&&n.direction==="in");case"others":return e.filter(n=>n.type==="custom_json"||n.type==="comment_options"||n.type==="other");default:return e}}filterByRewardType(e,r){if(r==="all")return e;switch(r){case"author":return e.filter(n=>n.type==="effective_comment_vote"&&n.direction==="in");case"curation":return e.filter(n=>n.type==="effective_comment_vote"&&n.direction==="out");case"benefactor":return e.filter(n=>{var a;return n.type==="comment_options"&&((a=n.details)==null?void 0:a.beneficiaries)});default:return e}}searchActivities(e,r){if(!r.trim())return e;const n=r.toLowerCase();return e.filter(a=>{var s,o,c;return a.description.toLowerCase().includes(n)||((s=a.author)==null?void 0:s.toLowerCase().includes(n))||((o=a.permlink)==null?void 0:o.toLowerCase().includes(n))||((c=a.voter)==null?void 0:c.toLowerCase().includes(n))})}getRelativeTime(e){try{const r=new Date(e),a=new Date().getTime()-r.getTime(),s=Math.floor(a/1e3),o=Math.floor(s/60),c=Math.floor(o/60),u=Math.floor(c/24);return s<60?`${s} seconds ago`:o<60?`${o} minutes ago`:c<24?`${c} hours ago`:u<7?`${u} days ago`:r.toLocaleDateString()}catch(r){return console.error("Error calculating relative time:",r),e}}}const Mn=new Hy,Wy=({username:t,directionFilter:e="all",generalFilter:r="all",rewardFilter:n="all",searchTerm:a="",limit:s=1e3,className:o,onClickPermlink:c,onSelectActivity:u})=>{const[f,l]=C.useState(a),[h,d]=C.useState(e),[m,b]=C.useState(r),[x,y]=C.useState(n),[g,E]=C.useState([]),[D,w]=C.useState([]),[j,p]=C.useState(!1),[A,k]=C.useState(null),[V,H]=C.useState(new Set),[S,P]=C.useState(null),[I,W]=C.useState(!0),[_,M]=C.useState(!1),[O,G]=C.useState(-1),R=C.useRef(null),K=async(L=!1)=>{if(t){L?M(!0):(p(!0),W(!0),G(-1)),k(null);try{let B;L?B=await Mn.getNextAccountHistoryPage(t,O,s):B=await Mn.getAccountHistory(t,-1,s);const re=Mn.convertToActivityListItems(B,t);if(re.sort((se,ne)=>new Date(ne.timestamp).getTime()-new Date(se.timestamp).getTime()),E(L?se=>[...se,...re]:re),B.length>0){const se=Math.min(...B.map(ne=>ne.index));G(se)}re.length===0&&W(!1)}catch(B){k("Failed to load activity history"),console.error("Error loading activities:",B),W(!1)}finally{p(!1),M(!1)}}};C.useEffect(()=>{K()},[t,s]);const X=C.useCallback(()=>{I&&!j&&!_&&K(!0)},[I,j,_]);C.useEffect(()=>{let L=g;h!=="all"?L=L.filter(B=>B.direction===h):L=L.filter(B=>B.type!=="custom_json"&&B.type!=="comment_options"),m!=="all"&&(m==="votes"?L=L.filter(B=>B.type==="vote"||B.type==="effective_comment_vote"):m==="comments"?L=L.filter(B=>B.type==="comment"):m==="replies"?L=L.filter(B=>B.type==="comment"&&B.direction==="in"):m==="curation"?L=L.filter(B=>B.type==="curation_reward"):m==="others"&&(L=g.filter(B=>B.type==="custom_json"||B.type==="comment_options"))),x!=="all"&&(x==="author"?L=L.filter(B=>B.type==="effective_comment_vote"&&B.direction==="in"):x==="curation"?L=L.filter(B=>B.type==="effective_comment_vote"&&B.direction==="out"):x==="benefactor"&&(L=L.filter(B=>B.type==="comment_options"))),f&&(L=L.filter(B=>{var re,se;return B.description.toLowerCase().includes(f.toLowerCase())||((re=B.author)==null?void 0:re.toLowerCase().includes(f.toLowerCase()))||((se=B.permlink)==null?void 0:se.toLowerCase().includes(f.toLowerCase()))})),w(L)},[g,h,m,x,f]),C.useEffect(()=>{const L=B=>{R.current&&!R.current.contains(B.target)&&P(null)};return document.addEventListener("mousedown",L),()=>{document.removeEventListener("mousedown",L)}},[]);const ae=L=>{switch(L.type){case"vote":case"effective_comment_vote":return i.jsx(q.Wallet,{className:"h-4 w-4"});case"comment":return i.jsx(q.MessageCircle,{className:"h-4 w-4"});case"custom_json":return i.jsx(q.FileText,{className:"h-4 w-4"});case"curation_reward":return i.jsx(q.Wallet,{className:"h-4 w-4"});case"author_reward":return i.jsx(q.DollarSign,{className:"h-4 w-4"});case"comment_benefactor_reward":return i.jsx(q.User,{className:"h-4 w-4"});default:return i.jsx(q.Eye,{className:"h-4 w-4"})}},ke=(L,B)=>L.split(/(\s+)/).map((se,ne)=>{if(se.includes("/")){const[Ee,Le]=se.split("/");if(Ee&&Le)return i.jsx("span",{className:"text-blue-500 cursor-pointer hover:underline",onClick:Et=>{Et.stopPropagation(),console.log("Clicked permlink:",Ee,Le),c==null||c(Ee,Le)},children:se},ne)}return i.jsx("span",{children:se},ne)});return j?i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{className:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg p-4",children:[i.jsxs("div",{className:"flex flex-col lg:flex-row gap-4 items-start lg:items-center justify-between",children:[i.jsx("div",{className:"flex-1 max-w-md",children:i.jsxs("div",{className:"relative",children:[i.jsx("div",{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 bg-gray-200 dark:bg-gray-700 rounded animate-pulse"}),i.jsx("div",{className:"w-full h-10 bg-gray-200 dark:bg-gray-700 rounded-md animate-pulse"})]})}),i.jsx("div",{className:"flex flex-wrap gap-2",children:Array.from({length:5}).map((L,B)=>i.jsx("div",{className:"w-24 h-10 bg-gray-200 dark:bg-gray-700 rounded-md animate-pulse"},B))})]}),i.jsx("div",{className:"flex flex-wrap gap-4 mt-4 pt-4 border-t border-gray-200 dark:border-gray-700",children:Array.from({length:4}).map((L,B)=>i.jsx("div",{className:"h-4 bg-gray-200 dark:bg-gray-700 rounded animate-pulse w-20"},B))})]}),i.jsx("div",{className:"space-y-4",children:Array.from({length:5}).map((L,B)=>i.jsxs("div",{className:"flex items-center justify-between py-3 px-4 bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg",children:[i.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[i.jsx("div",{className:"w-8 h-8 bg-gray-200 dark:bg-gray-700 rounded-full animate-pulse flex-shrink-0"}),i.jsx("div",{className:"flex-1 min-w-0 space-y-2",children:i.jsx("div",{className:"h-4 bg-gray-200 dark:bg-gray-700 rounded animate-pulse w-3/4"})})]}),i.jsxs("div",{className:"flex items-center gap-1 flex-shrink-0 ml-4",children:[i.jsx("div",{className:"w-3 h-3 bg-gray-200 dark:bg-gray-700 rounded animate-pulse"}),i.jsx("div",{className:"h-4 bg-gray-200 dark:bg-gray-700 rounded animate-pulse w-16"})]})]},B))})]}):A?i.jsx("div",{className:"flex flex-col items-center justify-center min-h-[400px] space-y-4",children:i.jsxs("div",{className:"text-center",children:[i.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-2",children:"Failed to load activities"}),i.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-4",children:A}),i.jsxs("button",{onClick:()=>K(),className:"inline-flex items-center justify-center rounded-md border border-input text-gray-400 cursor-pointer bg-background p-2 text-sm font-medium text-foreground shadow-sm transition-colors hover:bg-accent hover:text-accent-foreground disabled:opacity-50 disabled:pointer-events-none",children:[i.jsx(q.RefreshCw,{className:"w-4 h-4 mr-2"}),"Try Again"]})]})}):i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{className:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg p-4",children:[i.jsxs("div",{className:"flex flex-col lg:flex-row gap-4 items-start lg:items-center justify-between",children:[i.jsx("div",{className:"flex-1 max-w-md",children:i.jsxs("div",{className:"relative",children:[i.jsx(q.Search,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-gray-400"}),i.jsx("input",{type:"text",placeholder:"Search activities...",value:f,onChange:L=>l(L.target.value),className:"w-full pl-10 pr-3 py-2 bg-gray-50 dark:bg-gray-900 border border-gray-200 dark:border-gray-700 rounded-md text-gray-900 dark:text-gray-100 placeholder-gray-500 dark:placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-blue-500"})]})}),i.jsxs("div",{className:"flex flex-wrap gap-2",children:[i.jsxs("select",{value:h,onChange:L=>d(L.target.value),className:"px-3 py-2 bg-gray-50 dark:bg-gray-900 border border-gray-200 dark:border-gray-700 rounded-md text-gray-900 dark:text-gray-100 focus:outline-none focus:ring-2 focus:ring-blue-500 text-sm",children:[i.jsx("option",{value:"all",children:"All Directions"}),i.jsx("option",{value:"in",children:"Incoming"}),i.jsx("option",{value:"out",children:"Outgoing"})]}),i.jsxs("select",{value:m,onChange:L=>b(L.target.value),className:"px-3 py-2 bg-gray-50 dark:bg-gray-900 border border-gray-200 dark:border-gray-700 rounded-md text-gray-900 dark:text-gray-100 focus:outline-none focus:ring-2 focus:ring-blue-500 text-sm",children:[i.jsx("option",{value:"all",children:"All Types"}),i.jsx("option",{value:"votes",children:"Votes"}),i.jsx("option",{value:"comments",children:"Comments"}),i.jsx("option",{value:"replies",children:"Replies"}),i.jsx("option",{value:"curation",children:"Curation"}),i.jsx("option",{value:"others",children:"Others"})]}),i.jsxs("select",{value:x,onChange:L=>y(L.target.value),className:"px-3 py-2 bg-gray-50 dark:bg-gray-900 border border-gray-200 dark:border-gray-700 rounded-md text-gray-900 dark:text-gray-100 focus:outline-none focus:ring-2 focus:ring-blue-500 text-sm",children:[i.jsx("option",{value:"all",children:"All Rewards"}),i.jsx("option",{value:"author",children:"Author"}),i.jsx("option",{value:"curation",children:"Curation"}),i.jsx("option",{value:"benefactor",children:"Benefactor"})]}),i.jsx("button",{onClick:()=>K(),disabled:j||_,className:"px-3 py-2 bg-gray-50 dark:bg-gray-900 border border-gray-200 dark:border-gray-700 rounded-md hover:bg-gray-100 dark:hover:bg-gray-800 text-gray-700 dark:text-gray-300 focus:outline-none focus:ring-2 focus:ring-blue-500 disabled:opacity-50 disabled:cursor-not-allowed",children:i.jsx(q.RefreshCw,{className:"h-4 w-4"})})]})]}),i.jsxs("div",{className:"flex flex-wrap gap-4 mt-4 pt-4 border-t border-gray-200 dark:border-gray-700",children:[i.jsxs("div",{className:"text-sm text-gray-600 dark:text-gray-400",children:["Total: ",i.jsx("span",{className:"font-semibold text-gray-900 dark:text-white",children:g.length})]}),i.jsxs("div",{className:"text-sm text-gray-600 dark:text-gray-400",children:["Filtered: ",i.jsx("span",{className:"font-semibold text-gray-900 dark:text-white",children:D.length})]}),i.jsxs("div",{className:"text-sm text-gray-600 dark:text-gray-400",children:["Incoming: ",i.jsx("span",{className:"font-semibold text-green-600 dark:text-green-400",children:g.filter(L=>L.direction==="in").length})]}),i.jsxs("div",{className:"text-sm text-gray-600 dark:text-gray-400",children:["Outgoing: ",i.jsx("span",{className:"font-semibold text-blue-600 dark:text-blue-400",children:g.filter(L=>L.direction==="out").length})]})]})]}),i.jsx("div",{className:"space-y-4",children:D.length===0?i.jsx("div",{className:"flex items-center justify-center min-h-[200px]",children:i.jsx("p",{className:"text-gray-500 dark:text-gray-400",children:g.length===0?"No activities found for this user.":"No activities match the current filters."})}):i.jsxs(i.Fragment,{children:[D.map((L,B)=>i.jsxs("div",{className:"flex items-center justify-between py-3 px-4 bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg hover:bg-gray-50 dark:hover:bg-gray-800/50 transition-colors cursor-pointer",onClick:re=>{u==null||u(L)},children:[i.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[L.type==="vote"&&L.voter?i.jsx("img",{src:`https://images.hive.blog/u/${L.voter}/avatar`,alt:L.voter,className:"w-8 h-8 rounded-full flex-shrink-0",onError:re=>{const se=re.target;se.style.display="none";const ne=se.nextElementSibling;ne&&(ne.style.display="flex")}}):L.type==="comment_benefactor_reward"&&L.author?i.jsx("img",{src:`https://images.hive.blog/u/${L.author}/avatar`,alt:L.author,className:"w-8 h-8 rounded-full flex-shrink-0",onError:re=>{const se=re.target;se.style.display="none";const ne=se.nextElementSibling;ne&&(ne.style.display="flex")}}):L.type==="comment"&&L.author?i.jsx("img",{src:`https://images.hive.blog/u/${L.author}/avatar`,alt:L.author,className:"w-8 h-8 rounded-full flex-shrink-0",onError:re=>{const se=re.target;se.style.display="none";const ne=se.nextElementSibling;ne&&(ne.style.display="flex")}}):null,i.jsx("div",{className:`w-8 h-8 bg-purple-100 dark:bg-purple-900/20 rounded-full flex items-center justify-center flex-shrink-0 ${L.type==="vote"&&L.voter||L.type==="comment_benefactor_reward"&&L.author||L.type==="comment"&&L.author?"hidden":""}`,children:ae(L)}),i.jsx("div",{className:"flex-1 min-w-0",children:L.type==="custom_json"||L.type==="comment_options"?i.jsxs("div",{children:[i.jsx("p",{className:"text-sm text-gray-900 dark:text-white break-words font-medium",children:ke(L.description)}),i.jsx("p",{className:"text-xs text-gray-600 dark:text-gray-400",children:Mn.getRelativeTime(L.timestamp+"Z")}),i.jsx("div",{className:"border border-gray-200 dark:border-gray-600 rounded p-2 bg-gray-50 dark:bg-gray-700/50 mt-1",children:i.jsxs("div",{className:"text-xs text-gray-600 dark:text-gray-400 space-y-1 font-mono break-words",children:[L.type==="custom_json"&&i.jsxs(i.Fragment,{children:[i.jsxs("div",{children:[i.jsx("span",{className:"font-medium",children:"id:"})," ",L.details.id]}),i.jsxs("div",{className:"break-all",children:[i.jsx("span",{className:"font-medium",children:"json:"})," ",JSON.stringify(L.details.json).replace(/\\\"/g,'"').replace(/^"|"$/g,"")]}),i.jsxs("div",{children:[i.jsx("span",{className:"font-medium",children:"required_auths:"})," ",JSON.stringify(L.details.required_auths)]}),i.jsxs("div",{children:[i.jsx("span",{className:"font-medium",children:"required_posting_auths:"})," ",JSON.stringify(L.details.required_posting_auths)]})]}),L.type==="comment_options"&&i.jsxs(i.Fragment,{children:[i.jsxs("div",{children:[i.jsx("span",{className:"font-medium",children:"author:"}),i.jsx("span",{className:"text-blue-500 cursor-pointer hover:underline",children:L.details.author})]}),i.jsxs("div",{children:[i.jsx("span",{className:"font-medium",children:"permlink:"}),i.jsx("span",{className:"text-blue-500 cursor-pointer hover:underline",onClick:re=>{re.stopPropagation(),console.log("Clicked permlink:",L.details.author,L.details.permlink),c==null||c(L.details.author,L.details.permlink)},children:L.details.permlink})]})]})]})})]}):i.jsxs("div",{children:[i.jsx("p",{className:"text-sm text-gray-900 dark:text-white break-words",children:ke(L.description)}),i.jsx("p",{className:"text-xs text-gray-600 dark:text-gray-400 sm:hidden",children:Mn.getRelativeTime(L.timestamp+"Z")})]})})]}),i.jsx("div",{className:"flex items-center gap-1 text-sm text-gray-600 dark:text-gray-400 flex-shrink-0 ml-4 hidden sm:flex",children:L.type!=="custom_json"&&L.type!=="comment_options"&&i.jsxs(i.Fragment,{children:[i.jsx(q.Clock,{className:"h-3 w-3 flex-shrink-0"}),i.jsx("span",{className:"truncate",children:Mn.getRelativeTime(L.timestamp+"Z")})]})})]},`${L.id}-${B}`)),I&&g.length>0&&i.jsx("div",{className:"flex justify-center py-6",children:i.jsx("button",{onClick:X,disabled:j||_,className:"px-6 py-2 bg-blue-600 hover:bg-blue-700 disabled:bg-blue-400 text-white rounded-lg font-medium transition-colors disabled:cursor-not-allowed flex items-center gap-2",children:_?i.jsxs(i.Fragment,{children:[i.jsx(q.RefreshCw,{className:"h-4 w-4 animate-spin"}),"Loading..."]}):"Load More Activities"})}),!I&&g.length>0&&i.jsx("div",{className:"text-center text-sm text-gray-400 py-4",children:"No more activities to load"})]})})]})},Cs=new ii.Client(["https://api.hive.blog","https://api.syncad.com","https://api.deathwing.me"]);class Gy{async getWitnessesByVote(e="",r=60){try{return await Cs.call("condenser_api","get_witnesses_by_vote",[e,r])}catch(n){throw console.error("Error fetching witnesses by vote:",n),n}}async getAccount(e){try{const r=await Cs.call("condenser_api","get_accounts",[[e]]);return r&&r.length>0?r[0]:null}catch(r){return console.error("Error fetching account:",r),null}}async getAccounts(e){try{return await Cs.call("condenser_api","get_accounts",[e])}catch(r){return console.error("Error fetching accounts:",r),[]}}async getWitnessVotes(e,r="",n=250){try{return await Cs.call("database_api","list_witness_votes",{start:[e,r],limit:n,order:"by_witness_account"})}catch(a){throw console.error("Error fetching witness votes:",a),a}}async getAllWitnessVotes(e){const r=[];let n="";try{for(;;){const s=await this.getWitnessVotes(e,n,250);if(r.push(...s.votes),s.votes.length<250)break;n=s.votes[s.votes.length-1].account}return r}catch(s){return console.error("Error fetching all witness votes:",s),[]}}async hasUserVotedForWitness(e,r){try{const n=await this.getAccount(e);return!n||!n.witness_votes?!1:n.witness_votes.includes(r)}catch(n){return console.error("Error checking witness vote:",n),!1}}async getUserWitnessVotes(e){try{const r=await this.getAccount(e);return(r==null?void 0:r.witness_votes)||[]}catch(r){return console.error("Error fetching user witness votes:",r),[]}}formatVotesToMHP(e){return`${(parseFloat(e)/1e6).toFixed(1)}m`}calculateAPR(e){return e/100}getVersionStatus(e,r){const n=this.parseVersion(e),a=this.parseVersion(r);return this.compareVersions(n,a)>=0?"green":this.compareVersions(n,a)<0?"red":"grey"}parseVersion(e){return e.split(".").map(r=>parseInt(r,10))}compareVersions(e,r){const n=Math.max(e.length,r.length);for(let a=0;a<n;a++){const s=e[a]||0,o=r[a]||0;if(s>o)return 1;if(s<o)return-1}return 0}getWitnessDescription(e){var r,n;try{let a;if(e.json_metadata&&e.json_metadata!=="{}"){a=JSON.parse(e.json_metadata);const s=(r=a.profile)==null?void 0:r.witness_description;if(s)return s}return e.posting_json_metadata&&e.posting_json_metadata!=="{}"?(a=JSON.parse(e.posting_json_metadata),((n=a.profile)==null?void 0:n.about)||""):""}catch(a){return console.error("Error parsing witness description:",a),""}}formatTimeAgo(e){const r=new Date(e),a=Math.floor((new Date().getTime()-r.getTime())/1e3);if(a<60)return`${a} second${a>1?"s":""} ago`;if(a<3600){const s=Math.floor(a/60);return`${s} minute${s>1?"s":""} ago`}else if(a<86400){const s=Math.floor(a/3600);return`${s} hour${s>1?"s":""} ago`}else if(a<604800){const s=Math.floor(a/86400);return`${s} day${s>1?"s":""} ago`}else if(a<2592e3){const s=Math.floor(a/604800);return`${s} week${s>1?"s":""} ago`}else if(a<31536e3){const s=Math.floor(a/2592e3);return`${s} month${s>1?"s":""} ago`}else{const s=Math.floor(a/31536e3);return`${s} year${s>1?"s":""} ago`}}}const qt=new Gy,qe=Rc.create((t,e)=>({witnesses:[],witnessVotes:[],userWitnessVotes:[],witnessDetails:new Map,witnessAccounts:new Map,loadingWitnesses:!1,loadingMoreWitnesses:!1,loadingVotes:!1,loadingMoreVotes:!1,loadingUserVotes:!1,error:null,nextWitnessStart:"",nextVotesStart:"",hasMoreWitnesses:!0,hasMoreVotes:!1,selectedWitness:null,filters:{status:"all",name:"",version:""},loadWitnesses:async(r="",n=50)=>{const{witnesses:a}=e();if(a.length>=500){t({hasMoreWitnesses:!1});return}t(r!==""?{loadingMoreWitnesses:!0}:{loadingWitnesses:!0,error:null});try{const o=await qt.getWitnessesByVote(r,n);t(u=>{const f=new Set(u.witnesses.map(h=>h.owner)),l=o.filter(h=>!f.has(h.owner));return{witnesses:[...u.witnesses,...l],nextWitnessStart:o.length>0?o[o.length-1].owner:"",hasMoreWitnesses:o.length===n}});const c=o.filter(u=>!e().witnessDetails.has(u.owner)).map(u=>u.owner);c.length>0&&e().loadWitnessDetails(c)}catch(o){console.error("Error loading witnesses:",o),t({error:"Failed to load witnesses data"})}finally{t({loadingWitnesses:!1,loadingMoreWitnesses:!1})}},loadMoreWitnesses:async()=>{const{nextWitnessStart:r,hasMoreWitnesses:n,loadingMoreWitnesses:a}=e();!n||a||!r||await e().loadWitnesses(r,50)},loadWitnessVotes:async r=>{t({loadingVotes:!0,witnessVotes:[],nextVotesStart:"",hasMoreVotes:!1,selectedWitness:r});try{const n=await qt.getWitnessVotes(r,"",250);t({witnessVotes:n.votes,nextVotesStart:n.votes.length>0?n.votes[n.votes.length-1].account:"",hasMoreVotes:n.votes.length===250,loadingVotes:!1})}catch(n){console.error("Error loading witness votes:",n),t({error:"Failed to load witness votes",loadingVotes:!1})}},loadMoreVotes:async()=>{const{hasMoreVotes:r,loadingMoreVotes:n,nextVotesStart:a,selectedWitness:s,witnessVotes:o}=e();if(!r||n||!a||o.length>=1e3){o.length>=1e3&&t({hasMoreVotes:!1});return}t({loadingMoreVotes:!0});try{const c=await qt.getWitnessVotes(s||"",a,250);t(u=>{const l=[...u.witnessVotes,...c.votes].filter((d,m,b)=>b.findIndex(x=>x.account===d.account)===m),h=c.votes.filter((d,m,b)=>b.findIndex(x=>x.account===d.account)===m);return{witnessVotes:l,nextVotesStart:h.length>0?h[h.length-1].account:"",hasMoreVotes:c.votes.length===250}})}catch(c){console.error("Error loading more witness votes:",c)}finally{t({loadingMoreVotes:!1})}},loadUserWitnessVotes:async r=>{if(r){t({loadingUserVotes:!0});try{const n=await qt.getUserWitnessVotes(r);t({userWitnessVotes:n})}catch(n){console.error("Error loading user witness votes:",n)}finally{t({loadingUserVotes:!1})}}},loadWitnessDetails:async r=>{try{const n=await qt.getAccounts(r);t(a=>{const s=new Map(a.witnessDetails),o=new Map(a.witnessAccounts);return n.forEach(c=>{const u=qt.getWitnessDescription(c);u&&s.set(c.name,u),o.set(c.name,c)}),{witnessDetails:s,witnessAccounts:o}})}catch(n){console.error("Error loading witness details:",n)}},setFilters:r=>t({filters:r}),setSelectedWitness:r=>t({selectedWitness:r}),clearVotes:()=>t({witnessVotes:[],nextVotesStart:"",hasMoreVotes:!1,selectedWitness:null})})),Jy=({filters:t,onFiltersChange:e})=>{const r=s=>{e({...t,status:s})},n=s=>{e({...t,name:s})},a=s=>{e({...t,version:s})};return i.jsxs("div",{className:"bg-gray-800 rounded-lg p-4 mb-6",children:[i.jsx("h3",{className:"text-lg font-semibold text-white mb-4",children:"FILTERS"}),i.jsxs("div",{className:"mb-6",children:[i.jsx("h4",{className:"text-sm font-medium text-gray-300 mb-3",children:"WITNESS"}),i.jsxs("div",{className:"space-y-2",children:[i.jsxs("label",{className:"flex items-center space-x-2 cursor-pointer",children:[i.jsx("input",{type:"checkbox",checked:t.status==="active",onChange:()=>r("active"),className:"w-4 h-4 text-blue-600 bg-gray-700 border-gray-600 rounded focus:ring-blue-500 focus:ring-2"}),i.jsx("span",{className:"text-white",children:"Active"})]}),i.jsxs("label",{className:"flex items-center space-x-2 cursor-pointer",children:[i.jsx("input",{type:"checkbox",checked:t.status==="disabled",onChange:()=>r("disabled"),className:"w-4 h-4 text-blue-600 bg-gray-700 border-gray-600 rounded focus:ring-blue-500 focus:ring-2"}),i.jsx("span",{className:"text-white",children:"Disabled/Stale"})]}),i.jsxs("label",{className:"flex items-center space-x-2 cursor-pointer",children:[i.jsx("input",{type:"checkbox",checked:t.status==="approved",onChange:()=>r("approved"),className:"w-4 h-4 text-blue-600 bg-gray-700 border-gray-600 rounded focus:ring-blue-500 focus:ring-2"}),i.jsx("span",{className:"text-white",children:"Approved"})]})]})]}),i.jsxs("div",{className:"mb-6",children:[i.jsx("h4",{className:"text-sm font-medium text-gray-300 mb-3",children:"NAME"}),i.jsxs("div",{className:"relative",children:[i.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:i.jsx("svg",{className:"w-4 h-4 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),i.jsx("input",{type:"text",placeholder:"Search",value:t.name,onChange:s=>n(s.target.value),className:"w-full pl-10 pr-4 py-2 bg-gray-700 border-b border-gray-600 text-white placeholder-gray-400 focus:outline-none focus:border-blue-500"})]})]}),i.jsxs("div",{children:[i.jsx("h4",{className:"text-sm font-medium text-gray-300 mb-3",children:"VERSION"}),i.jsxs("div",{className:"relative",children:[i.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:i.jsx("svg",{className:"w-4 h-4 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),i.jsx("input",{type:"text",placeholder:"Version",value:t.version,onChange:s=>a(s.target.value),className:"w-full pl-10 pr-4 py-2 bg-gray-700 border-b border-gray-600 text-white placeholder-gray-400 focus:outline-none focus:border-blue-500"})]})]})]})},Yy=({isOpen:t,onClose:e,witness:r,votes:n,loadingMore:a,hasMore:s,loadingInitial:o,scrollContainerRef:c,sentinelRef:u,loadMoreVotes:f})=>{const l=C.useCallback(h=>{h[0].isIntersecting&&s&&!a&&f()},[s,a,f]);return C.useEffect(()=>{const h=new IntersectionObserver(l,{threshold:.1,root:c.current});return u.current&&h.observe(u.current),()=>{u.current&&h.unobserve(u.current)}},[l,c,u]),t?i.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 p-4",children:i.jsxs("div",{className:"bg-gray-900 rounded-lg max-w-2xl w-full max-h-[80vh] overflow-hidden",children:[i.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-gray-700",children:[i.jsxs("h3",{className:"text-lg font-semibold text-white",children:["Votes for @",r," (showing ",n.length,")"]}),i.jsx("button",{onClick:e,className:"text-gray-400 hover:text-white text-xl font-bold",children:"×"})]}),i.jsxs("div",{ref:c,className:"p-4 overflow-y-auto max-h-[60vh]",children:[i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:n.map((h,d)=>i.jsxs("div",{className:"flex items-center space-x-3 p-3 bg-gray-800 rounded-lg",children:[i.jsx("div",{className:"w-8 h-8 bg-gray-600 rounded-full flex items-center justify-center text-white text-sm font-medium",children:i.jsx("img",{className:"w-8 h-8 rounded-full",src:`https://images.hive.blog/u/${h.account}/avatar`,alt:h.account,onError:m=>{m.target.src="https://images.hive.blog/u/null/avatar"}})}),i.jsxs("div",{className:"flex-1",children:[i.jsx("div",{className:"text-white font-medium",children:h.account}),i.jsxs("div",{className:"text-gray-400 text-sm",children:["Vote #",d+1]})]}),i.jsx("div",{className:"text-gray-400 text-sm",children:"25"})]},h.account))}),n.length===0&&!o&&i.jsx("div",{className:"text-center text-gray-400 py-8",children:"No votes found for this witness."}),a&&i.jsx("div",{className:"text-center text-gray-400 py-4",children:"Loading more votes..."}),s&&!a&&i.jsx("div",{className:"text-center py-4",children:i.jsx("button",{onClick:f,className:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded",children:"Load More Votes"})}),s&&i.jsx("div",{ref:u,className:"h-4"})]})]})}):null},Zy=({username:t,filters:e={status:"all",name:"",version:""},onWitnessVoteClick:r,onWitnessStatsClick:n,onWitnessUrlClick:a})=>{const s=qe(R=>R.witnesses),o=qe(R=>R.userWitnessVotes),c=qe(R=>R.loadingWitnesses),u=qe(R=>R.error),f=qe(R=>R.selectedWitness),l=qe(R=>R.witnessVotes),h=qe(R=>R.hasMoreVotes),d=qe(R=>R.loadingMoreVotes),m=qe(R=>R.loadingVotes),b=qe(R=>R.filters),x=qe(R=>R.hasMoreWitnesses),y=qe(R=>R.loadingWitnesses),g=qe(R=>R.witnessDetails);qe(R=>R.witnessAccounts);const E=qe(R=>R.loadWitnesses),D=qe(R=>R.loadMoreWitnesses),w=qe(R=>R.loadWitnessVotes),j=qe(R=>R.loadMoreVotes),p=qe(R=>R.loadUserWitnessVotes),A=qe(R=>R.setFilters),[k,V]=C.useState(!1),H=C.useRef(null),S=C.useRef(null),P=C.useRef(null),I=C.useCallback(R=>{R[0].isIntersecting&&x&&!y&&D()},[x,y,D]);C.useEffect(()=>{const R=new IntersectionObserver(I,{threshold:.1});return P.current&&R.observe(P.current),()=>{P.current&&R.unobserve(P.current)}},[I]),C.useEffect(()=>{E()},[E]),C.useEffect(()=>{t&&p(t)},[t,p]),C.useEffect(()=>{A(e)},[]);const W=C.useMemo(()=>s.filter(R=>{if(b.status!=="all"){if(b.status==="active"){const K=new Date;if(K.setFullYear(K.getFullYear()-1),new Date(R.last_hbd_exchange_update+"Z")<=K)return!1}else if(b.status==="disabled"){const K=new Date;if(K.setFullYear(K.getFullYear()-1),new Date(R.last_hbd_exchange_update+"Z")>K)return!1}else if(b.status==="approved"&&!o.includes(R.owner))return!1}return!(b.name&&!R.owner.toLowerCase().includes(b.name.toLowerCase())||b.version&&!R.running_version.includes(b.version))}),[s,b,o]),_=async R=>{r?r(R):(await w(R),V(!0))},M=R=>{n?n(R):window.open(`https://hivehub.dev/witnesses/@${R}`,"_blank")},O=R=>{a?a(R):window.open(R,"_blank")},G=R=>t?o.includes(R):!1;return c?i.jsx("div",{className:"flex items-center justify-center p-8",children:i.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-blue-500"})}):u?i.jsx("div",{className:"text-center p-8 text-red-400",children:u}):i.jsxs("div",{className:"w-full",children:[i.jsx(Yy,{isOpen:k,onClose:()=>V(!1),witness:f||"",votes:l,loadingMore:d,hasMore:h,loadingInitial:m,scrollContainerRef:S,sentinelRef:H,loadMoreVotes:j}),i.jsx(Jy,{filters:b,onFiltersChange:A}),i.jsxs("div",{className:"overflow-auto max-h-[70vh]",children:[i.jsxs("table",{className:"w-full text-sm text-left text-gray-400",children:[i.jsx("thead",{className:"text-xs text-gray-400 uppercase bg-gray-800",children:i.jsxs("tr",{children:[i.jsx("th",{scope:"col",className:"px-4 py-3",children:"Rank"}),i.jsx("th",{scope:"col",className:"px-4 py-3",children:"Witness"}),i.jsx("th",{scope:"col",className:"px-4 py-3",children:"Version"}),i.jsx("th",{scope:"col",className:"px-4 py-3",children:"Votes (MHP)"}),i.jsx("th",{scope:"col",className:"px-4 py-3",children:"Last Block"}),i.jsx("th",{scope:"col",className:"px-4 py-3",children:"Miss"}),i.jsx("th",{scope:"col",className:"px-4 py-3",children:"Price Feed"}),i.jsx("th",{scope:"col",className:"px-4 py-3",children:"APR (%)"}),i.jsx("th",{scope:"col",className:"px-4 py-3",children:"Vote"})]})}),i.jsx("tbody",{children:W.map((R,K)=>{const X=qt.getVersionStatus(R.running_version,R.hardfork_version_vote),ae=G(R.owner);return i.jsxs("tr",{className:"border-b border-gray-700 hover:bg-gray-800",children:[i.jsx("td",{className:"px-4 py-4 font-medium text-white",children:s.findIndex(ke=>ke.owner===R.owner)+1}),i.jsx("td",{className:"px-4 py-4",children:i.jsxs("div",{className:"flex items-center space-x-3",children:[i.jsx("img",{className:"w-8 h-8 rounded-full",src:`https://images.hive.blog/u/${R.owner}/avatar`,alt:R.owner,onError:ke=>{ke.target.src="https://images.hive.blog/u/null/avatar"}}),i.jsxs("div",{className:"flex-1",children:[i.jsx("div",{className:"text-white font-medium",children:R.owner}),i.jsxs("div",{className:"text-gray-400 text-xs",children:["Witness since ",new Date(R.created).getFullYear()]}),g.get(R.owner)&&i.jsx("div",{className:"text-gray-400 text-xs mt-1 line-clamp-2",children:g.get(R.owner)})]}),i.jsxs("div",{className:"flex space-x-2 flex-shrink-0",children:[i.jsx("button",{onClick:()=>O(R.url),className:"text-gray-400 hover:text-white",title:"Visit witness URL",children:"🔗"}),i.jsx("button",{onClick:()=>M(R.owner),className:"text-gray-400 hover:text-white",title:"View witness stats",children:"📊"})]})]})}),i.jsx("td",{className:"px-4 py-4",children:i.jsx("span",{className:`px-2 py-1 rounded-full text-xs font-medium ${X==="green"?"bg-green-900 text-green-300":X==="red"?"bg-red-900 text-red-300":"bg-gray-700 text-gray-300"}`,children:R.running_version})}),i.jsx("td",{className:"px-4 py-4",children:i.jsx("button",{onClick:()=>_(R.owner),className:"text-blue-400 hover:text-blue-300 cursor-pointer",disabled:m,children:m&&f===R.owner?"Loading...":qt.formatVotesToMHP(R.votes)})}),i.jsxs("td",{className:"px-4 py-4 text-right",children:[i.jsx("div",{className:"text-white",children:R.last_confirmed_block_num.toLocaleString()}),i.jsx("div",{className:"text-gray-400 text-xs",children:"NA"})]}),i.jsx("td",{className:"px-4 py-4 text-right text-white",children:R.total_missed.toLocaleString()}),i.jsxs("td",{className:"px-4 py-4 text-right",children:[i.jsx("div",{className:"text-white",children:R.hbd_exchange_rate.base}),i.jsx("div",{className:"text-gray-400 text-xs",children:qt.formatTimeAgo(R.last_hbd_exchange_update+"Z")})]}),i.jsxs("td",{className:"px-4 py-4 text-right text-white",children:[qt.calculateAPR(R.props.hbd_interest_rate),"%"]}),i.jsx("td",{className:"px-4 py-4",children:i.jsx("div",{className:"flex items-center justify-center",children:i.jsx("svg",{className:`w-5 h-5 ${ae?"text-green-500":"text-gray-500"}`,fill:"currentColor",viewBox:"0 0 20 20",children:i.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})})})]},R.owner)})})]}),y&&i.jsxs("div",{className:"flex items-center justify-center py-4",children:[i.jsx("div",{className:"animate-spin rounded-full h-6 w-6 border-b-2 border-blue-500"}),i.jsx("span",{className:"ml-2 text-gray-400",children:"Loading more witnesses..."})]}),x&&i.jsx("div",{ref:P,className:"h-1"})]})]})},jo="_communityLocalKey",Is={getBookmarkedCommunities:()=>{const t=localStorage.getItem(jo);return t?JSON.parse(t):[]},isUserPresentLocally:t=>{const e=localStorage.getItem(jo);return e?JSON.parse(e).includes(t):!1},storeLikedCommunityLocally:(t,e=!1)=>{let r=Is.getBookmarkedCommunities();return r.includes(t)?r=r.filter(n=>n!==t):e||r.push(t),localStorage.setItem(jo,JSON.stringify(r)),r}},al=({id:t,toastType:e,isLiked:r,onAdd:n,onRemove:a,onFavourite:s})=>{const[o,c]=C.useState(r??Is.isUserPresentLocally(t));C.useEffect(()=>{r!==void 0&&c(r)},[r]);const u=()=>{s&&s(),o?(a?a(t,"remove_bookmark"):Is.storeLikedCommunityLocally(t,!0),f(!1)):(n?n(t,"add_bookmark"):Is.storeLikedCommunityLocally(t),f(!0)),c(!o)},f=l=>{alert(`The ${e} is ${l?"added to":"removed from"} your bookmarks`)};return i.jsx("button",{onClick:u,className:"p-2 rounded-lg border border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-300 hover:bg-gray-300 dark:hover:bg-gray-700",children:o?i.jsx(q.BookmarkCheck,{className:"w-5 h-5 text-blue-600 dark:text-blue-400"}):i.jsx(q.Bookmark,{className:"w-5 h-5 text-gray-500 dark:text-gray-400"})})};class Xy{constructor(){ga(this,"HIVE_API_URL","https://api.hive.blog")}async getListOfCommunities(e,r=20,n){const a={limit:r};n&&n.trim()!==""&&(a.last=n),e&&e.trim()!==""&&(a.query=e);const s={jsonrpc:"2.0",method:"bridge.list_communities",params:a,id:1};try{const o=await fetch(this.HIVE_API_URL,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)});if(!o.ok)throw new Error(`HTTP error! status: ${o.status}`);return(await o.json()).result||[]}catch(o){throw console.error("Error fetching communities:",o),o}}async getCommunityDetails(e){const r={jsonrpc:"2.0",method:"bridge.get_community",params:{name:e},id:1};try{const n=await fetch(this.HIVE_API_URL,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);return await n.json()}catch(n){throw console.error("Error fetching community details:",n),n}}async getCommunitySubscribers(e,r=100,n){const a={community:e,limit:r};n&&n.trim()!==""&&(a.last=n);const s={jsonrpc:"2.0",method:"bridge.list_community_roles",params:a,id:1};try{const o=await fetch(this.HIVE_API_URL,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)});if(!o.ok)throw new Error(`HTTP error! status: ${o.status}`);return((await o.json()).result||[]).map(u=>({username:u[0],role:u[1],extra:u[2],subscribedAt:u[3]}))}catch(o){throw console.error("Error fetching community subscribers:",o),o}}async getCommunitySubscribersList(e,r=100,n){const a={community:e,limit:r};n&&n.trim()!==""&&(a.last=n);const s={jsonrpc:"2.0",method:"bridge.list_subscribers",params:a,id:2};try{const o=await fetch(this.HIVE_API_URL,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)});if(!o.ok)throw new Error(`HTTP error! status: ${o.status}`);return((await o.json()).result||[]).map(u=>({username:u[0],role:u[1],extra:u[2],subscribedAt:u[3]}))}catch(o){throw console.error("Error fetching community subscribers list:",o),o}}async getCommunityAccounts(e){const r={jsonrpc:"2.0",method:"condenser_api.get_accounts",params:[[e]],id:2};try{const n=await fetch(this.HIVE_API_URL,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);return(await n.json()).result||[]}catch(n){throw console.error("Error fetching community accounts:",n),n}}async getRankedPosts(e,r="created",n=20,a,s){const o={tag:e,sort:r,limit:n};a&&s&&(o.start_author=a,o.start_permlink=s);const c={jsonrpc:"2.0",method:"bridge.get_ranked_posts",params:o,id:3};try{const u=await fetch(this.HIVE_API_URL,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)});if(!u.ok)throw new Error(`HTTP error! status: ${u.status}`);return(await u.json()).result||[]}catch(u){throw console.error("Error fetching ranked posts:",u),u}}communityIcon(e){return`https://images.hive.blog/u/${e}/avatar?size=icon`}userOwnerThumb(e){return`https://images.hive.blog/u/${e}/avatar`}async getCommunityActivities(e,r=100,n){const a={account:e,limit:r};n&&(a.last_id=n);const s={jsonrpc:"2.0",method:"bridge.account_notifications",params:a,id:19};try{const o=await fetch(this.HIVE_API_URL,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)});if(!o.ok)throw new Error(`HTTP error! status: ${o.status}`);return(await o.json()).result||[]}catch(o){throw console.error("Error fetching community activities:",o),o}}}const br=new Xy,Ky=({onSelectCommunity:t})=>{const[e,r]=C.useState([]),[n,a]=C.useState(""),[s,o]=C.useState(!0),[c,u]=C.useState(!1),[f,l]=C.useState(!0),[h,d]=C.useState(null),[m,b]=C.useState(null),x=20,y=C.useRef(null),g=C.useCallback(async(w=!1)=>{if(!(!w&&(c||!f)))try{w?(o(!0),b(null),r([]),d(null),l(!0)):u(!0);const j=n.trim(),p=await br.getListOfCommunities(j.length>=3?j:void 0,x,w?void 0:h||void 0);r(A=>w?p:[...A,...p]),p.length<x||p.length>0&&p[p.length-1].name===h?l(!1):p.length>0&&d(p[p.length-1].name||null)}catch(j){b(j instanceof Error?j.message:"Failed to load communities"),l(!1)}finally{o(!1),u(!1)}},[n,c,f,h]);C.useEffect(()=>{const w=setTimeout(()=>{g(!0)},n.length>=3||n.length===0?0:500);return()=>clearTimeout(w)},[n]),C.useEffect(()=>{var w;(w=y.current)==null||w.focus()},[n,s,m]),C.useEffect(()=>{const w=()=>{window.innerHeight+document.documentElement.scrollTop>=document.documentElement.offsetHeight-200&&!c&&!s&&f&&g()};return window.addEventListener("scroll",w),()=>window.removeEventListener("scroll",w)},[g,c,s,f]);const E=()=>{g(!0)},D=()=>i.jsx("div",{className:"space-y-4",children:Array.from({length:6}).map((w,j)=>i.jsx("div",{className:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-xl p-4 animate-pulse",children:i.jsxs("div",{className:"flex items-center gap-4",children:[i.jsx("div",{className:"w-12 h-12 bg-gray-200 dark:bg-gray-700 rounded-full"}),i.jsxs("div",{className:"flex-1 space-y-2",children:[i.jsx("div",{className:"h-4 bg-gray-200 dark:bg-gray-700 rounded w-3/4"}),i.jsx("div",{className:"h-3 bg-gray-200 dark:bg-gray-700 rounded w-1/2"})]}),i.jsx("div",{className:"h-3 bg-gray-200 dark:bg-gray-700 rounded w-16"})]})},j))});return s&&e.length===0?i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{className:"relative",children:[i.jsx(q.Search,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-500 dark:text-gray-400 w-5 h-5"}),i.jsx("input",{type:"text",placeholder:"Search communities...",value:n,onChange:w=>a(w.target.value),ref:y,autoFocus:!0,className:`w-full pl-10 pr-4 py-3 bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700
1092
1100
  rounded-xl text-gray-900 dark:text-white placeholder-gray-500 dark:placeholder-gray-400
1093
- focus:outline-none focus:ring-2 focus:ring-blue-500`})]}),i.jsx(S,{})]}):m&&e.length===0?i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{className:"relative",children:[i.jsx(q.Search,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-500 dark:text-gray-400 w-5 h-5"}),i.jsx("input",{type:"text",placeholder:"Search communities...",value:n,onChange:w=>a(w.target.value),ref:y,autoFocus:!0,className:`w-full pl-10 pr-4 py-3 bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700
1101
+ focus:outline-none focus:ring-2 focus:ring-blue-500`})]}),i.jsx(D,{})]}):m&&e.length===0?i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{className:"relative",children:[i.jsx(q.Search,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-500 dark:text-gray-400 w-5 h-5"}),i.jsx("input",{type:"text",placeholder:"Search communities...",value:n,onChange:w=>a(w.target.value),ref:y,autoFocus:!0,className:`w-full pl-10 pr-4 py-3 bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700
1094
1102
  rounded-xl text-gray-900 dark:text-white placeholder-gray-500 dark:placeholder-gray-400
1095
1103
  focus:outline-none focus:ring-2 focus:ring-blue-500`})]}),i.jsx("div",{className:"flex flex-col items-center justify-center min-h-[400px] space-y-4",children:i.jsxs("div",{className:"text-center",children:[i.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-2",children:"Failed to load communities"}),i.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-4",children:m}),i.jsxs("button",{onClick:E,className:"m-2 inline-flex items-center justify-center rounded-md border border-input text-gray-400 cursor-pointer bg-background p-2 text-sm font-medium text-foreground shadow-sm transition-colors hover:bg-accent hover:text-accent-foreground disabled:opacity-50 disabled:pointer-events-none",children:[i.jsx(q.RefreshCw,{className:"w-4 h-4 mr-2"}),"Try Again"]})]})})]}):i.jsxs("div",{className:"space-y-6",children:[i.jsx("div",{className:"",children:i.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white",children:"Communities"})}),i.jsxs("div",{className:"relative flex justify-between items-center",children:[i.jsx(q.Search,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-500 dark:text-gray-400 w-5 h-5"}),i.jsx("input",{type:"text",placeholder:"Search communities...",value:n,onChange:w=>a(w.target.value),ref:y,autoFocus:!0,className:`w-full pl-10 pr-4 py-3 bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700
1096
1104
  rounded-xl text-gray-900 dark:text-white placeholder-gray-500 dark:placeholder-gray-400
1097
1105
  focus:outline-none focus:ring-2 focus:ring-blue-500`}),i.jsx("button",{onClick:E,className:"m-2 inline-flex items-center justify-center rounded-md border border-input bg-background p-2 text-sm font-medium text-foreground shadow-sm transition-colors hover:bg-accent hover:text-accent-foreground disabled:opacity-50 disabled:pointer-events-none",children:i.jsx(q.RefreshCw,{className:"w-4 h-4"})})]}),e.length===0?i.jsx("div",{className:"flex flex-col items-center justify-center min-h-[400px] space-y-4",children:i.jsxs("div",{className:"text-center",children:[i.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-2",children:"No communities found"}),i.jsx("p",{className:"text-gray-500 dark:text-gray-400",children:n?"Try adjusting your search terms":"Check back later for new communities"})]})}):i.jsxs("div",{className:"space-y-4",children:[e.map(w=>i.jsx("div",{className:`bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700
1098
1106
  rounded-xl p-4 hover:bg-gray-300 dark:hover:bg-gray-700
1099
- transition-colors cursor-pointer`,onClick:()=>t(w.name||""),children:i.jsxs("div",{className:"flex items-center gap-4",children:[i.jsx("img",{src:Yt.communityIcon(w.name||""),alt:w.title,className:"w-12 h-12 rounded-full object-cover",onError:k=>{k.target.src=`https://ui-avatars.com/api/?name=${w.title}&background=random`}}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("h3",{className:"font-semibold text-gray-900 dark:text-white truncate",children:w.title}),i.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400 line-clamp-2",children:w.about})]}),i.jsx("div",{className:"text-right",children:i.jsxs("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:[(w.subscribers||0).toLocaleString()," members"]})})]})},w.id)),f&&i.jsx("div",{className:"flex justify-center pt-4",children:c?i.jsxs("div",{className:"flex items-center gap-2 text-gray-500 dark:text-gray-400",children:[i.jsx(q.Loader2,{className:"w-4 h-4 animate-spin"}),"Loading more communities..."]}):i.jsx("button",{onClick:()=>g(),className:"m-2 inline-flex items-center justify-center rounded-md border border-input text-gray-400 cursor-pointer bg-background p-2 text-sm font-medium text-foreground shadow-sm transition-colors hover:bg-accent hover:text-accent-foreground disabled:opacity-50 disabled:pointer-events-none",children:"Load More Communities"})})]})]})},pf=({communityId:t})=>{var h,d,m;const[e,r]=T.useState(null),[n,a]=T.useState(!0),[s,o]=T.useState(null),c=async()=>{try{a(!0),o(null);const b=await Yt.getCommunityDetails(t);r(b)}catch(b){o(b instanceof Error?b.message:"Failed to load community details")}finally{a(!1)}};T.useEffect(()=>{c()},[t]);const u=b=>{try{return new Date(b).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}catch{return b}},f=b=>b.replace(/<[^>]*>/g,"");if(n)return i.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:i.jsxs("div",{className:"flex items-center gap-2 text-gray-500 dark:text-gray-400",children:[i.jsx(q.Loader2,{className:"w-5 h-5 animate-spin"}),"Loading community details..."]})});if(s)return i.jsx("div",{className:"flex flex-col items-center justify-center min-h-[400px] space-y-4",children:i.jsxs("div",{className:"text-center",children:[i.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-2",children:"Failed to load community details"}),i.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-4",children:s}),i.jsxs("button",{onClick:c,className:"m-2 inline-flex items-center justify-center rounded-md border border-input bg-background p-2 text-sm font-medium text-foreground shadow-sm transition-colors hover:bg-accent hover:text-accent-foreground disabled:opacity-50 disabled:pointer-events-none",children:[i.jsx(q.RefreshCw,{className:"w-4 h-4"}),"Try Again"]})]})});if(!(e!=null&&e.result))return i.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:i.jsx("p",{className:"text-gray-500 dark:text-gray-400",children:"No community details available"})});const l=e.result;return i.jsx("div",{className:"space-y-6",children:i.jsxs("div",{className:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-xl p-6",children:[l.about&&i.jsxs("div",{className:"mb-6",children:[i.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-3",children:"About"}),i.jsx("p",{className:"text-gray-600 dark:text-gray-300 leading-relaxed",children:f(l.about)})]}),l.description&&i.jsxs("div",{className:"mb-6",children:[i.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-3",children:"Information"}),i.jsx("div",{className:"text-gray-600 dark:text-gray-300 leading-relaxed whitespace-pre-wrap",children:f(l.description)})]}),l.flag_text&&i.jsxs("div",{className:"mb-6",children:[i.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-3",children:"Community Rules"}),i.jsx("div",{className:"text-gray-600 dark:text-gray-300 leading-relaxed whitespace-pre-wrap",children:f(l.flag_text)})]}),i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[i.jsxs("div",{className:"bg-gray-50 dark:bg-gray-900 p-4 rounded-lg",children:[i.jsx("h4",{className:"text-sm font-medium text-gray-500 dark:text-gray-400 mb-1",children:"Total Authors"}),i.jsx("p",{className:"text-2xl font-bold text-gray-900 dark:text-white",children:((h=l.num_authors)==null?void 0:h.toLocaleString())||"0"})]}),i.jsxs("div",{className:"bg-gray-50 dark:bg-gray-900 p-4 rounded-lg",children:[i.jsx("h4",{className:"text-sm font-medium text-gray-500 dark:text-gray-400 mb-1",children:"Subscribers"}),i.jsx("p",{className:"text-2xl font-bold text-gray-900 dark:text-white",children:((d=l.subscribers)==null?void 0:d.toLocaleString())||"0"})]}),i.jsxs("div",{className:"bg-gray-50 dark:bg-gray-900 p-4 rounded-lg",children:[i.jsx("h4",{className:"text-sm font-medium text-gray-500 dark:text-gray-400 mb-1",children:"Created"}),i.jsx("p",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:l.created_at?u(l.created_at):"Unknown"})]}),l.lang&&i.jsxs("div",{className:"bg-gray-50 dark:bg-gray-900 p-4 rounded-lg",children:[i.jsx("h4",{className:"text-sm font-medium text-gray-500 dark:text-gray-400 mb-1",children:"Language"}),i.jsx("p",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:l.lang.toUpperCase()})]}),i.jsxs("div",{className:"bg-gray-50 dark:bg-gray-900 p-4 rounded-lg",children:[i.jsx("h4",{className:"text-sm font-medium text-gray-500 dark:text-gray-400 mb-1",children:"Pending Posts"}),i.jsx("p",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:((m=l.num_pending)==null?void 0:m.toLocaleString())||"0"})]}),i.jsxs("div",{className:"bg-gray-50 dark:bg-gray-900 p-4 rounded-lg",children:[i.jsx("h4",{className:"text-sm font-medium text-gray-500 dark:text-gray-400 mb-1",children:"Type"}),i.jsx("p",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:l.is_nsfw?"NSFW":"Safe"})]})]})]})})},mf=({communityId:t,onSelectTeamMember:e})=>{var l;const[r,n]=T.useState(null),[a,s]=T.useState(!0),[o,c]=T.useState(null),u=async()=>{try{s(!0),c(null);const h=await Yt.getCommunityDetails(t);n(h)}catch(h){c(h instanceof Error?h.message:"Failed to load team details")}finally{s(!1)}};T.useEffect(()=>{u()},[t]);const f=((l=r==null?void 0:r.result)==null?void 0:l.team)||[];return a?i.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:i.jsxs("div",{className:"flex items-center gap-2 text-gray-500 dark:text-gray-400",children:[i.jsx(q.Loader2,{className:"w-5 h-5 animate-spin"}),"Loading team members..."]})}):o?i.jsx("div",{className:"flex flex-col items-center justify-center min-h-[400px] space-y-4",children:i.jsxs("div",{className:"text-center",children:[i.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-2",children:"Failed to load team details"}),i.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-4",children:o}),i.jsxs("button",{onClick:u,className:"m-2 inline-flex items-center justify-center rounded-md border border-input text-gray-400 cursor-pointer bg-background p-2 text-sm font-medium text-foreground shadow-sm transition-colors hover:bg-accent hover:text-accent-foreground disabled:opacity-50 disabled:pointer-events-none",children:[i.jsx(q.RefreshCw,{className:"w-4 h-4 mr-2"}),"Try Again"]})]})}):f.length===0?i.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:i.jsx("p",{className:"text-gray-500 dark:text-gray-400",children:"No team members found"})}):i.jsx("div",{className:"space-y-6",children:i.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:f.map((h,d)=>{const m=h[0],b=h.length>1?h[1]:"";return i.jsx("div",{onClick:()=>e&&e(m),className:`bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700
1107
+ transition-colors cursor-pointer`,onClick:()=>t(w.name||""),children:i.jsxs("div",{className:"flex items-center gap-4",children:[i.jsx("img",{src:br.communityIcon(w.name||""),alt:w.title,className:"w-12 h-12 rounded-full object-cover",onError:j=>{j.target.src=`https://ui-avatars.com/api/?name=${w.title}&background=random`}}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("h3",{className:"font-semibold text-gray-900 dark:text-white truncate",children:w.title}),i.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400 line-clamp-2",children:w.about})]}),i.jsx("div",{className:"text-right",children:i.jsxs("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:[(w.subscribers||0).toLocaleString()," members"]})})]})},w.id)),f&&i.jsx("div",{className:"flex justify-center pt-4",children:c?i.jsxs("div",{className:"flex items-center gap-2 text-gray-500 dark:text-gray-400",children:[i.jsx(q.Loader2,{className:"w-4 h-4 animate-spin"}),"Loading more communities..."]}):i.jsx("button",{onClick:()=>g(),className:"m-2 inline-flex items-center justify-center rounded-md border border-input text-gray-400 cursor-pointer bg-background p-2 text-sm font-medium text-foreground shadow-sm transition-colors hover:bg-accent hover:text-accent-foreground disabled:opacity-50 disabled:pointer-events-none",children:"Load More Communities"})})]})]})},pf=({communityId:t})=>{var h,d,m;const[e,r]=C.useState(null),[n,a]=C.useState(!0),[s,o]=C.useState(null),c=async()=>{try{a(!0),o(null);const b=await br.getCommunityDetails(t);r(b)}catch(b){o(b instanceof Error?b.message:"Failed to load community details")}finally{a(!1)}};C.useEffect(()=>{c()},[t]);const u=b=>{try{return new Date(b).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}catch{return b}},f=b=>b.replace(/<[^>]*>/g,"");if(n)return i.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:i.jsxs("div",{className:"flex items-center gap-2 text-gray-500 dark:text-gray-400",children:[i.jsx(q.Loader2,{className:"w-5 h-5 animate-spin"}),"Loading community details..."]})});if(s)return i.jsx("div",{className:"flex flex-col items-center justify-center min-h-[400px] space-y-4",children:i.jsxs("div",{className:"text-center",children:[i.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-2",children:"Failed to load community details"}),i.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-4",children:s}),i.jsxs("button",{onClick:c,className:"m-2 inline-flex items-center justify-center rounded-md border border-input bg-background p-2 text-sm font-medium text-foreground shadow-sm transition-colors hover:bg-accent hover:text-accent-foreground disabled:opacity-50 disabled:pointer-events-none",children:[i.jsx(q.RefreshCw,{className:"w-4 h-4"}),"Try Again"]})]})});if(!(e!=null&&e.result))return i.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:i.jsx("p",{className:"text-gray-500 dark:text-gray-400",children:"No community details available"})});const l=e.result;return i.jsx("div",{className:"space-y-6",children:i.jsxs("div",{className:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-xl p-6",children:[l.about&&i.jsxs("div",{className:"mb-6",children:[i.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-3",children:"About"}),i.jsx("p",{className:"text-gray-600 dark:text-gray-300 leading-relaxed",children:f(l.about)})]}),l.description&&i.jsxs("div",{className:"mb-6",children:[i.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-3",children:"Information"}),i.jsx("div",{className:"text-gray-600 dark:text-gray-300 leading-relaxed whitespace-pre-wrap",children:f(l.description)})]}),l.flag_text&&i.jsxs("div",{className:"mb-6",children:[i.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-3",children:"Community Rules"}),i.jsx("div",{className:"text-gray-600 dark:text-gray-300 leading-relaxed whitespace-pre-wrap",children:f(l.flag_text)})]}),i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[i.jsxs("div",{className:"bg-gray-50 dark:bg-gray-900 p-4 rounded-lg",children:[i.jsx("h4",{className:"text-sm font-medium text-gray-500 dark:text-gray-400 mb-1",children:"Total Authors"}),i.jsx("p",{className:"text-2xl font-bold text-gray-900 dark:text-white",children:((h=l.num_authors)==null?void 0:h.toLocaleString())||"0"})]}),i.jsxs("div",{className:"bg-gray-50 dark:bg-gray-900 p-4 rounded-lg",children:[i.jsx("h4",{className:"text-sm font-medium text-gray-500 dark:text-gray-400 mb-1",children:"Subscribers"}),i.jsx("p",{className:"text-2xl font-bold text-gray-900 dark:text-white",children:((d=l.subscribers)==null?void 0:d.toLocaleString())||"0"})]}),i.jsxs("div",{className:"bg-gray-50 dark:bg-gray-900 p-4 rounded-lg",children:[i.jsx("h4",{className:"text-sm font-medium text-gray-500 dark:text-gray-400 mb-1",children:"Created"}),i.jsx("p",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:l.created_at?u(l.created_at):"Unknown"})]}),l.lang&&i.jsxs("div",{className:"bg-gray-50 dark:bg-gray-900 p-4 rounded-lg",children:[i.jsx("h4",{className:"text-sm font-medium text-gray-500 dark:text-gray-400 mb-1",children:"Language"}),i.jsx("p",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:l.lang.toUpperCase()})]}),i.jsxs("div",{className:"bg-gray-50 dark:bg-gray-900 p-4 rounded-lg",children:[i.jsx("h4",{className:"text-sm font-medium text-gray-500 dark:text-gray-400 mb-1",children:"Pending Posts"}),i.jsx("p",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:((m=l.num_pending)==null?void 0:m.toLocaleString())||"0"})]}),i.jsxs("div",{className:"bg-gray-50 dark:bg-gray-900 p-4 rounded-lg",children:[i.jsx("h4",{className:"text-sm font-medium text-gray-500 dark:text-gray-400 mb-1",children:"Type"}),i.jsx("p",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:l.is_nsfw?"NSFW":"Safe"})]})]})]})})},mf=({communityId:t,onSelectTeamMember:e})=>{var l;const[r,n]=C.useState(null),[a,s]=C.useState(!0),[o,c]=C.useState(null),u=async()=>{try{s(!0),c(null);const h=await br.getCommunityDetails(t);n(h)}catch(h){c(h instanceof Error?h.message:"Failed to load team details")}finally{s(!1)}};C.useEffect(()=>{u()},[t]);const f=((l=r==null?void 0:r.result)==null?void 0:l.team)||[];return a?i.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:i.jsxs("div",{className:"flex items-center gap-2 text-gray-500 dark:text-gray-400",children:[i.jsx(q.Loader2,{className:"w-5 h-5 animate-spin"}),"Loading team members..."]})}):o?i.jsx("div",{className:"flex flex-col items-center justify-center min-h-[400px] space-y-4",children:i.jsxs("div",{className:"text-center",children:[i.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-2",children:"Failed to load team details"}),i.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-4",children:o}),i.jsxs("button",{onClick:u,className:"m-2 inline-flex items-center justify-center rounded-md border border-input text-gray-400 cursor-pointer bg-background p-2 text-sm font-medium text-foreground shadow-sm transition-colors hover:bg-accent hover:text-accent-foreground disabled:opacity-50 disabled:pointer-events-none",children:[i.jsx(q.RefreshCw,{className:"w-4 h-4 mr-2"}),"Try Again"]})]})}):f.length===0?i.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:i.jsx("p",{className:"text-gray-500 dark:text-gray-400",children:"No team members found"})}):i.jsx("div",{className:"space-y-6",children:i.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:f.map((h,d)=>{const m=h[0],b=h.length>1?h[1]:"";return i.jsx("div",{onClick:()=>e&&e(m),className:`bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700
1100
1108
  rounded-xl p-4 hover:bg-gray-300 dark:hover:bg-gray-700
1101
- transition-colors cursor-pointer`,children:i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("img",{src:Yt.userOwnerThumb(m),alt:m,className:"w-12 h-12 rounded-full object-cover",onError:x=>{x.target.src=`https://ui-avatars.com/api/?name=${m}&background=random`}}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsxs("h3",{className:"font-semibold text-gray-900 dark:text-white truncate",children:["@",m]}),b&&i.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400 capitalize truncate",children:b})]})]})},`${m}-${d}`)})})})},gf=({communityId:t,onSelectCommunityMember:e})=>{const[r,n]=T.useState([]),[a,s]=T.useState(!0),[o,c]=T.useState(!1),[u,f]=T.useState(!0),[l,h]=T.useState(null),[d,m]=T.useState(null),b=100,x=T.useCallback(async(y=!1)=>{if(!(o&&!y))try{y?(s(!0),m(null),n([]),h(null),f(!0)):c(!0);const g=await Yt.getCommunitySubscribers(t,b,y?void 0:l||void 0);g.length===0?f(!1):(n(E=>{if(y)return g;const S=new Set(E.map(k=>k.username)),w=g.filter(k=>!S.has(k.username));return[...E,...w]}),g.length>0&&h(g[g.length-1].username),f(g.length===b))}catch(g){m(g instanceof Error?g.message:"Failed to load members")}finally{s(!1),c(!1)}},[t,o,l]);return T.useEffect(()=>{x(!0)},[t]),T.useEffect(()=>{const y=()=>{window.innerHeight+document.documentElement.scrollTop>=document.documentElement.offsetHeight-200&&!o&&!a&&u&&x()};return window.addEventListener("scroll",y),()=>window.removeEventListener("scroll",y)},[x,o,a,u]),a&&r.length===0?i.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:i.jsxs("div",{className:"flex items-center gap-2 text-gray-500 dark:text-gray-400",children:[i.jsx(q.Loader2,{className:"w-5 h-5 animate-spin"}),"Loading members..."]})}):d&&r.length===0?i.jsx("div",{className:"flex flex-col items-center justify-center min-h-[400px] space-y-4",children:i.jsxs("div",{className:"text-center",children:[i.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-2",children:"Failed to load members"}),i.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-4",children:d}),i.jsxs("button",{onClick:()=>x(!0),className:"m-2 inline-flex items-center justify-center rounded-md border border-input bg-background p-2 text-sm font-medium text-foreground shadow-sm transition-colors hover:bg-accent hover:text-accent-foreground disabled:opacity-50 disabled:pointer-events-none",children:[i.jsx(q.RefreshCw,{className:"w-4 h-4 mr-2"}),"Try Again"]})]})}):r.length===0?i.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:i.jsx("p",{className:"text-gray-500 dark:text-gray-400",children:"No community members found"})}):i.jsxs("div",{className:"space-y-6",children:[i.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:r.map((y,g)=>i.jsx("div",{className:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-xl p-4 hover:bg-gray-300 dark:hover:bg-gray-700 transition-colors cursor-pointer",onClick:()=>e==null?void 0:e(y.username),children:i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("img",{src:Yt.userOwnerThumb(y.username),alt:y.username,className:"w-12 h-12 rounded-full object-cover",onError:E=>{E.target.src=`https://ui-avatars.com/api/?name=${y.username}&background=random`}}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsxs("h3",{className:"font-semibold text-gray-900 dark:text-white truncate",children:["@",y.username]}),y.role&&i.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400 capitalize truncate",children:y.role})]})]})},`${y.username}-${g}`))}),u&&i.jsx("div",{className:"flex justify-center pt-4",children:o?i.jsxs("div",{className:"flex items-center gap-2 text-gray-500 dark:text-gray-400",children:[i.jsx(q.Loader2,{className:"w-4 h-4 animate-spin"}),"Loading more members..."]}):i.jsx("button",{onClick:()=>x(),className:"m-2 inline-flex items-center justify-center rounded-md border border-input bg-background p-2 text-sm font-medium text-foreground shadow-sm transition-colors hover:bg-accent hover:text-accent-foreground disabled:opacity-50 disabled:pointer-events-none",children:"Load More Members"})})]})},Qy=({communityId:t,onVideoClick:e,onAuthorClick:r,onBack:n,onclickAboutTab:a,onclickTeamTab:s,onclickMemberTab:o,onShare:c,onFavourite:u,onRss:f,onMoreVertical:l,showMoreVertical:h=!0})=>{const d=Bc.useNavigate(),[m,b]=T.useState("videos"),[x,y]=T.useState(null),[g,E]=T.useState(!1),[S,w]=T.useState(!0);T.useEffect(()=>{(async()=>{try{w(!0);const z=await Yt.getCommunityDetails(t);y(z)}catch(z){console.error("Failed to fetch community details:",z)}finally{w(!1)}})()},[t]);const k=()=>{var z;const V=`https://3speak.tv/user/${t}`;navigator.share?navigator.share({title:((z=x==null?void 0:x.result)==null?void 0:z.title)||t,url:V}):navigator.clipboard.writeText(V)},p=()=>{window.open(`https://3speak.tv/rss/${t}.xml`,"_blank")},N=V=>{d(`/user/${V}`)};if(S)return i.jsx("div",{className:"space-y-6",children:i.jsxs("div",{className:"animate-pulse",children:[i.jsx("div",{className:"h-8 bg-gray-200 dark:bg-gray-700 rounded w-32 mb-6"}),i.jsxs("div",{className:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-xl p-6",children:[i.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[i.jsx("div",{className:"w-16 h-16 bg-gray-200 dark:bg-gray-700 rounded-full"}),i.jsxs("div",{className:"flex-1 space-y-2",children:[i.jsx("div",{className:"h-6 bg-gray-200 dark:bg-gray-700 rounded w-48"}),i.jsx("div",{className:"h-4 bg-gray-200 dark:bg-gray-700 rounded w-32"})]})]}),i.jsx("div",{className:"flex gap-2",children:Array.from({length:4}).map((V,z)=>i.jsx("div",{className:"h-10 bg-gray-200 dark:bg-gray-700 rounded w-20"},z))})]})]})});const A=x==null?void 0:x.result;return i.jsxs("div",{className:"space-y-6",children:[i.jsxs("button",{onClick:n,className:"flex items-center justify-center mr-4 px-2 text-gray-400 hover:bg-gray-200 dark:hover:bg-gray-700 rounded-full",children:[i.jsx(q.ArrowLeft,{className:"w-4 h-4 mr-2"}),"Back"]}),i.jsx("div",{className:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-xl p-6",children:i.jsxs("div",{className:"flex flex-col md:flex-row items-start md:items-center gap-6",children:[i.jsx("img",{src:Yt.userOwnerThumb(t),alt:(A==null?void 0:A.title)||t,className:"w-16 h-16 rounded-full object-cover",onError:V=>{V.target.src=`https://images.hive.blog/u/${(A==null?void 0:A.title)||t}/avatar`}}),i.jsxs("div",{className:"flex-1",children:[i.jsx("h1",{className:"text-2xl font-bold text-gray-900 dark:text-white mb-2",children:(A==null?void 0:A.title)||t}),i.jsx("p",{className:"text-gray-600 dark:text-gray-400 mb-4",children:(A==null?void 0:A.about)||"Community description"}),i.jsxs("div",{className:"flex flex-wrap gap-6 text-sm",children:[i.jsxs("div",{className:"flex items-center gap-2 text-gray-500 dark:text-gray-400",children:[i.jsx(q.Users,{className:"w-4 h-4"}),i.jsxs("span",{children:[((A==null?void 0:A.subscribers)||0).toLocaleString()," members"]})]}),i.jsxs("div",{className:"flex items-center gap-2 text-gray-500 dark:text-gray-400",children:[i.jsx(q.Calendar,{className:"w-4 h-4"}),i.jsxs("span",{children:["Created"," ",A!=null&&A.created_at?new Date(A.created_at).getFullYear():"Unknown"]})]})]})]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(al,{id:t,toastType:"community",onAdd:(V,z)=>console.log("Added:",V,z),onRemove:(V,z)=>console.log("Removed:",V,z),onFavourite:u}),i.jsx("button",{onClick:f||p,className:"p-2 rounded-lg border border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-300 hover:bg-gray-300 dark:hover:bg-gray-700",children:i.jsx(q.Rss,{className:"w-4 h-4"})}),i.jsx("button",{onClick:c||k,className:"p-2 rounded-lg border border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-300 hover:bg-gray-300 dark:hover:bg-gray-700",children:i.jsx(q.Share2,{className:"w-4 h-4"})}),h&&i.jsx("button",{onClick:l||(()=>{}),className:"p-2 rounded-lg border border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-300 hover:bg-gray-300 dark:hover:bg-gray-700",children:i.jsx(q.MoreVertical,{className:"w-4 h-4"})})]})]})}),i.jsxs("div",{children:[i.jsxs("div",{className:"grid grid-cols-4 w-full bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg overflow-hidden",children:[i.jsx("button",{onClick:()=>b("videos"),className:`px-4 py-2 text-xs sm:text-sm font-medium transition-colors ${m==="videos"?"bg-blue-600 dark:bg-blue-500 text-white":"text-gray-700 dark:text-gray-300 hover:bg-gray-300 dark:hover:bg-gray-700"}`,children:"Videos"}),i.jsx("button",{onClick:()=>a?a():b("about"),className:`px-4 py-2 text-xs sm:text-sm font-medium transition-colors ${m==="about"?"bg-blue-600 dark:bg-blue-500 text-white":"text-gray-700 dark:text-gray-300 hover:bg-gray-300 dark:hover:bg-gray-700"}`,children:"About"}),i.jsx("button",{onClick:()=>s?s():b("team"),className:`px-4 py-2 text-xs sm:text-sm font-medium transition-colors ${m==="team"?"bg-blue-600 dark:bg-blue-500 text-white":"text-gray-700 dark:text-gray-300 hover:bg-gray-300 dark:hover:bg-gray-700"}`,children:"Team"}),i.jsx("button",{onClick:()=>o?o():b("members"),className:`px-4 py-2 text-xs sm:text-sm font-medium transition-colors ${m==="members"?"bg-blue-600 dark:bg-blue-500 text-white":"text-gray-700 dark:text-gray-300 hover:bg-gray-300 dark:hover:bg-gray-700"}`,children:"Members"})]}),i.jsxs("div",{className:"mt-6",children:[m==="videos"&&i.jsx(Qs,{feedType:$e.COMMUNITY,communityId:t,onVideoClick:e,onAuthorClick:r}),m==="about"&&!a&&i.jsx(pf,{communityId:t}),m==="team"&&!s&&i.jsx(mf,{communityId:t,onSelectTeamMember:N}),m==="members"&&!o&&i.jsx(gf,{communityId:t,onSelectCommunityMember:N})]})]})]})},ev=({currentUser:t,onTabChanged:e,onPublish:r,onViewMyVideo:n,onMoreOptions:a,onTapBackButton:s,shouldShowBackButton:o=!0,shouldShowPublishButton:c=!1,shouldShowMoreOptionsButton:u=!1})=>{const f=Bc.useNavigate(),[l,h]=T.useState(0),[d,m]=T.useState([]),[b,x]=T.useState(!0),[y,g]=T.useState(null),E=d.filter(j=>["encoding","uploaded","encoding_queued","encoding_preparing","ipfs_pinning","ipfs_pinning_failed","encoding_failed","encoding_ipfs"].includes(j.status||"")),S=d.filter(j=>j.status==="publish_manual"),w=d.filter(j=>j.status==="published");T.useEffect(()=>{t!=null&&t.token&&k()},[t]);const k=async()=>{if(!(t!=null&&t.token)){g("No authentication token provided"),x(!1);return}x(!0),g(null);try{const j=await Fe.getMyVideos(t.token);m(j)}catch(j){console.error("Error fetching videos:",j),g(`Failed to load videos: ${j instanceof Error?j.message:"Unknown error"}`)}finally{x(!1)}},p=j=>{h(j),e==null||e(j)},N=j=>{j.owner&&j.permlink&&f(`/video/${j.owner}/${j.permlink}`)},A=j=>{switch(j.toLowerCase()){case"published":return"bg-green-500";case"encoding":case"encoding_queued":return"bg-orange-500";case"uploaded":return"bg-blue-500";case"publish_manual":return"bg-purple-500";default:return"bg-gray-500"}},V=["ipfs_pinning","ipfs_pinning_failed","encoding","encoding_failed","encoding_ipfs"],z=(j,L)=>{if(j.length===0){let I="";switch(L){case"publishNow":I="No videos ready to publish.";break;case"myVideos":I="No published videos found.";break;case"encoding":I="No videos currently encoding.";break}return i.jsxs("div",{className:"flex flex-col items-center justify-center py-16",children:[i.jsx(q.Video,{className:"w-16 h-16 text-gray-400 mb-4"}),i.jsx("p",{className:"text-gray-600 dark:text-gray-400 text-center",children:I})]})}return i.jsx("div",{className:"space-y-3 w-full",children:j.map((I,H)=>{const _=I.thumbnail||"",M=I.title||"No Title",C=I.permlink||"",W=I.owner||(t==null?void 0:t.username)||"",R=I.id||"",Z=V.includes(I.status||"");return i.jsx("div",{className:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg p-3 hover:shadow-md transition-shadow",children:i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsxs("div",{className:"relative flex-shrink-0",children:[i.jsx("img",{src:Lr(_)||`https://images.hive.blog/u/${t==null?void 0:t.username}/avatar`,alt:M,className:"w-24 h-16 rounded-lg object-cover",onError:P=>{P.target.src=`https://images.hive.blog/u/${t==null?void 0:t.username}/avatar`}}),V.includes(I.status||"")?i.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-black/30 rounded-lg",children:i.jsx(q.Ban,{className:"w-6 h-6 text-red-500"})}):i.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-black/20 opacity-0 hover:opacity-100 transition-opacity cursor-pointer rounded-lg",onClick:()=>N(I),children:i.jsx(q.Play,{className:"w-6 h-6 text-white"})})]}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("h3",{className:"font-semibold text-gray-900 dark:text-white text-sm cursor-pointer hover:text-blue-600 dark:hover:text-blue-400",onClick:()=>N(I),style:{display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis"},children:M}),i.jsxs("p",{className:"text-gray-600 dark:text-gray-400 text-xs mt-1",children:["By ",W]}),I.status&&i.jsx("div",{className:"mt-2",children:i.jsx("span",{className:`inline-block px-2 py-1 rounded-full text-xs font-semibold text-white ${A(I.status)}`,children:I.status.toUpperCase()})})]}),Z?i.jsx("div",{className:"flex-shrink-0 pl-2",children:i.jsx(q.Ban,{className:"w-5 h-5 text-red-500"})}):i.jsxs("div",{className:"flex flex-col items-end gap-2",children:[L==="publishNow"&&c&&i.jsx("button",{onClick:()=>r==null?void 0:r(W,C),className:"bg-green-600 hover:bg-green-700 text-white text-xs px-3 py-1 rounded-md transition-colors",children:"Publish"}),L==="myVideos"&&i.jsx("button",{onClick:()=>n?n(W,C):N(I),className:"bg-blue-600 hover:bg-blue-700 text-white text-xs px-3 py-1 rounded-md transition-colors",children:"View"}),u&&i.jsx("button",{onClick:()=>a==null?void 0:a(R),className:"p-1 h-6 w-6 rounded-md hover:bg-gray-300 dark:hover:bg-gray-700 transition-colors",children:i.jsx(q.MoreVertical,{className:"w-4 h-4"})})]})]})},`${R}-${H}`)})})};return t?i.jsxs("div",{className:"min-h-screen bg-gray-50 dark:bg-gray-900",children:[o&&i.jsxs("button",{onClick:s,className:"flex items-center justify-center mr-4 my-2 px-2 text-gray-400 hover:bg-gray-200 dark:hover:bg-gray-700 rounded-full",children:[i.jsx(q.ArrowLeft,{className:"w-4 h-4 mr-2"}),"Back"]}),i.jsxs("div",{className:"bg-white dark:bg-gray-800 border-b border-gray-200 dark:border-gray-700",children:[i.jsxs("div",{className:"flex items-center justify-between p-4",children:[i.jsx("div",{className:"flex items-center gap-3",children:i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("img",{src:`https://images.hive.blog/u/${t.username}/avatar`,alt:t.username,className:"w-12 h-12 md:w-16 md:h-16 rounded-full object-cover border-2 border-gray-200 dark:border-gray-700",onError:j=>{j.target.src=`https://ui-avatars.com/api/?name=${t.username}&background=random&size=64`}}),i.jsx("div",{children:i.jsx("h1",{className:"text-lg md:text-xl font-semibold text-gray-900 dark:text-white",children:t.username})})]})}),i.jsx("div",{className:"flex items-center gap-2",children:i.jsx("button",{onClick:k,className:"p-2 rounded-md hover:bg-gray-300 dark:hover:bg-gray-700 transition-colors",children:i.jsx(q.RefreshCw,{className:"w-5 h-5"})})})]}),i.jsx("div",{className:"border-b border-gray-200 dark:border-gray-700",children:i.jsxs("div",{className:"flex overflow-x-auto scrollbar-hide",children:[i.jsxs("button",{onClick:()=>p(0),className:`flex items-center gap-2 px-4 md:px-6 py-3 border-b-2 font-medium text-sm transition-colors whitespace-nowrap flex-shrink-0 ${l===0?"border-blue-500 text-blue-600 dark:text-blue-400":"border-transparent text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-300"}`,children:[i.jsx(q.Upload,{className:"w-4 h-4"}),i.jsx("span",{className:"hidden sm:inline",children:"Publish Now"}),i.jsx("span",{className:"sm:hidden",children:"Publish"}),S.length>0&&i.jsx("span",{className:"bg-blue-100 dark:bg-blue-900 text-blue-800 dark:text-blue-200 text-xs px-2 py-1 rounded-full",children:S.length})]}),i.jsxs("button",{onClick:()=>p(1),className:`flex items-center gap-2 px-4 md:px-6 py-3 border-b-2 font-medium text-sm transition-colors whitespace-nowrap flex-shrink-0 ${l===1?"border-blue-500 text-blue-600 dark:text-blue-400":"border-transparent text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-300"}`,children:[i.jsx(q.Video,{className:"w-4 h-4"}),i.jsx("span",{className:"hidden sm:inline",children:"My Videos"}),i.jsx("span",{className:"sm:hidden",children:"Videos"}),w.length>0&&i.jsx("span",{className:"bg-blue-100 dark:bg-blue-900 text-blue-800 dark:text-blue-200 text-xs px-2 py-1 rounded-full",children:w.length})]}),i.jsxs("button",{onClick:()=>p(2),className:`flex items-center gap-2 px-4 md:px-6 py-3 border-b-2 font-medium text-sm transition-colors whitespace-nowrap flex-shrink-0 ${l===2?"border-blue-500 text-blue-600 dark:text-blue-400":"border-transparent text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-300"}`,children:[i.jsx(q.Hourglass,{className:"w-4 h-4"}),i.jsx("span",{className:"hidden sm:inline",children:"Encoding"}),i.jsx("span",{className:"sm:hidden",children:"Encoding"}),E.length>0&&i.jsx("span",{className:"bg-blue-100 dark:bg-blue-900 text-blue-800 dark:text-blue-200 text-xs px-2 py-1 rounded-full",children:E.length})]})]})})]}),i.jsx("div",{className:"py-4 md:py-6 w-full",children:b?i.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:i.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-blue-600"})}):y?i.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[400px] text-center",children:[i.jsx("div",{className:"w-16 h-16 bg-red-100 dark:bg-red-900 rounded-full flex items-center justify-center mb-4",children:i.jsx(q.Info,{className:"w-8 h-8 text-red-600 dark:text-red-400"})}),i.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-2",children:"Failed to load videos"}),i.jsx("p",{className:"text-gray-600 dark:text-gray-400 mb-4",children:y}),i.jsx("button",{onClick:k,className:"bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-md transition-colors",children:"Retry"})]}):i.jsxs("div",{className:"space-y-6",children:[l===0&&z(S,"publishNow"),l===1&&z(w,"myVideos"),l===2&&z(E,"encoding")]})})]}):i.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:i.jsx("p",{className:"text-gray-600 dark:text-gray-400",children:"Please login to view your account"})})},bf=({username:t,onSelectUser:e})=>{const[r,n]=T.useState([]),[a,s]=T.useState(!0),[o,c]=T.useState(null),u=async()=>{try{s(!0),c(null);const f=await ke.getFollowers(t);n(f)}catch(f){c(f instanceof Error?f.message:"Failed to load followers")}finally{s(!1)}};return T.useEffect(()=>{u()},[t]),a?i.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:i.jsxs("div",{className:"flex items-center gap-2 text-gray-500 dark:text-gray-400",children:[i.jsx(q.Loader2,{className:"w-5 h-5 animate-spin"}),"Loading followers..."]})}):o?i.jsx("div",{className:"flex flex-col items-center justify-center min-h-[400px] space-y-4",children:i.jsxs("div",{className:"text-center",children:[i.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-2",children:"Failed to load followers"}),i.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-4",children:o}),i.jsxs("button",{onClick:u,className:"m-2 inline-flex items-center justify-center rounded-md border border-input text-gray-400 cursor-pointer bg-background p-2 text-sm font-medium text-foreground shadow-sm transition-colors hover:bg-accent hover:text-accent-foreground disabled:opacity-50 disabled:pointer-events-none",children:[i.jsx(q.RefreshCw,{className:"w-4 h-4 mr-2"}),"Try Again"]})]})}):r.length===0?i.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:i.jsx("p",{className:"text-gray-500 dark:text-gray-400",children:"This user has no followers."})}):i.jsx("div",{className:"space-y-6",children:i.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:r.map((f,l)=>i.jsx("div",{onClick:()=>e&&e(f.follower),className:`bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700
1109
+ transition-colors cursor-pointer`,children:i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("img",{src:br.userOwnerThumb(m),alt:m,className:"w-12 h-12 rounded-full object-cover",onError:x=>{x.target.src=`https://ui-avatars.com/api/?name=${m}&background=random`}}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsxs("h3",{className:"font-semibold text-gray-900 dark:text-white truncate",children:["@",m]}),b&&i.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400 capitalize truncate",children:b})]})]})},`${m}-${d}`)})})})},gf=({communityId:t,onSelectCommunityMember:e})=>{const[r,n]=C.useState([]),[a,s]=C.useState(!0),[o,c]=C.useState(!1),[u,f]=C.useState(!0),[l,h]=C.useState(null),[d,m]=C.useState(null),b=100,x=C.useCallback(async(y=!1)=>{if(!(o&&!y))try{y?(s(!0),m(null),n([]),h(null),f(!0)):c(!0);const g=await br.getCommunitySubscribers(t,b,y?void 0:l||void 0);g.length===0?f(!1):(n(E=>{if(y)return g;const D=new Set(E.map(j=>j.username)),w=g.filter(j=>!D.has(j.username));return[...E,...w]}),g.length>0&&h(g[g.length-1].username),f(g.length===b))}catch(g){m(g instanceof Error?g.message:"Failed to load members")}finally{s(!1),c(!1)}},[t,o,l]);return C.useEffect(()=>{x(!0)},[t]),C.useEffect(()=>{const y=()=>{window.innerHeight+document.documentElement.scrollTop>=document.documentElement.offsetHeight-200&&!o&&!a&&u&&x()};return window.addEventListener("scroll",y),()=>window.removeEventListener("scroll",y)},[x,o,a,u]),a&&r.length===0?i.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:i.jsxs("div",{className:"flex items-center gap-2 text-gray-500 dark:text-gray-400",children:[i.jsx(q.Loader2,{className:"w-5 h-5 animate-spin"}),"Loading members..."]})}):d&&r.length===0?i.jsx("div",{className:"flex flex-col items-center justify-center min-h-[400px] space-y-4",children:i.jsxs("div",{className:"text-center",children:[i.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-2",children:"Failed to load members"}),i.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-4",children:d}),i.jsxs("button",{onClick:()=>x(!0),className:"m-2 inline-flex items-center justify-center rounded-md border border-input bg-background p-2 text-sm font-medium text-foreground shadow-sm transition-colors hover:bg-accent hover:text-accent-foreground disabled:opacity-50 disabled:pointer-events-none",children:[i.jsx(q.RefreshCw,{className:"w-4 h-4 mr-2"}),"Try Again"]})]})}):r.length===0?i.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:i.jsx("p",{className:"text-gray-500 dark:text-gray-400",children:"No community members found"})}):i.jsxs("div",{className:"space-y-6",children:[i.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:r.map((y,g)=>i.jsx("div",{className:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-xl p-4 hover:bg-gray-300 dark:hover:bg-gray-700 transition-colors cursor-pointer",onClick:()=>e==null?void 0:e(y.username),children:i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("img",{src:br.userOwnerThumb(y.username),alt:y.username,className:"w-12 h-12 rounded-full object-cover",onError:E=>{E.target.src=`https://ui-avatars.com/api/?name=${y.username}&background=random`}}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsxs("h3",{className:"font-semibold text-gray-900 dark:text-white truncate",children:["@",y.username]}),y.role&&i.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400 capitalize truncate",children:y.role})]})]})},`${y.username}-${g}`))}),u&&i.jsx("div",{className:"flex justify-center pt-4",children:o?i.jsxs("div",{className:"flex items-center gap-2 text-gray-500 dark:text-gray-400",children:[i.jsx(q.Loader2,{className:"w-4 h-4 animate-spin"}),"Loading more members..."]}):i.jsx("button",{onClick:()=>x(),className:"m-2 inline-flex items-center justify-center rounded-md border border-input bg-background p-2 text-sm font-medium text-foreground shadow-sm transition-colors hover:bg-accent hover:text-accent-foreground disabled:opacity-50 disabled:pointer-events-none",children:"Load More Members"})})]})},Qy=({communityId:t,onVideoClick:e,onAuthorClick:r,onBack:n,onclickAboutTab:a,onclickTeamTab:s,onclickMemberTab:o,onShare:c,onFavourite:u,onRss:f,onMoreVertical:l,showMoreVertical:h=!0})=>{const d=Bc.useNavigate(),[m,b]=C.useState("videos"),[x,y]=C.useState(null),[g,E]=C.useState(!1),[D,w]=C.useState(!0);C.useEffect(()=>{(async()=>{try{w(!0);const H=await br.getCommunityDetails(t);y(H)}catch(H){console.error("Failed to fetch community details:",H)}finally{w(!1)}})()},[t]);const j=()=>{var H;const V=`https://3speak.tv/user/${t}`;navigator.share?navigator.share({title:((H=x==null?void 0:x.result)==null?void 0:H.title)||t,url:V}):navigator.clipboard.writeText(V)},p=()=>{window.open(`https://3speak.tv/rss/${t}.xml`,"_blank")},A=V=>{d(`/user/${V}`)};if(D)return i.jsx("div",{className:"space-y-6",children:i.jsxs("div",{className:"animate-pulse",children:[i.jsx("div",{className:"h-8 bg-gray-200 dark:bg-gray-700 rounded w-32 mb-6"}),i.jsxs("div",{className:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-xl p-6",children:[i.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[i.jsx("div",{className:"w-16 h-16 bg-gray-200 dark:bg-gray-700 rounded-full"}),i.jsxs("div",{className:"flex-1 space-y-2",children:[i.jsx("div",{className:"h-6 bg-gray-200 dark:bg-gray-700 rounded w-48"}),i.jsx("div",{className:"h-4 bg-gray-200 dark:bg-gray-700 rounded w-32"})]})]}),i.jsx("div",{className:"flex gap-2",children:Array.from({length:4}).map((V,H)=>i.jsx("div",{className:"h-10 bg-gray-200 dark:bg-gray-700 rounded w-20"},H))})]})]})});const k=x==null?void 0:x.result;return i.jsxs("div",{className:"space-y-6",children:[i.jsxs("button",{onClick:n,className:"flex items-center justify-center mr-4 px-2 text-gray-400 hover:bg-gray-200 dark:hover:bg-gray-700 rounded-full",children:[i.jsx(q.ArrowLeft,{className:"w-4 h-4 mr-2"}),"Back"]}),i.jsx("div",{className:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-xl p-6",children:i.jsxs("div",{className:"flex flex-col md:flex-row items-start md:items-center gap-6",children:[i.jsx("img",{src:br.userOwnerThumb(t),alt:(k==null?void 0:k.title)||t,className:"w-16 h-16 rounded-full object-cover",onError:V=>{V.target.src=`https://images.hive.blog/u/${(k==null?void 0:k.title)||t}/avatar`}}),i.jsxs("div",{className:"flex-1",children:[i.jsx("h1",{className:"text-2xl font-bold text-gray-900 dark:text-white mb-2",children:(k==null?void 0:k.title)||t}),i.jsx("p",{className:"text-gray-600 dark:text-gray-400 mb-4",children:(k==null?void 0:k.about)||"Community description"}),i.jsxs("div",{className:"flex flex-wrap gap-6 text-sm",children:[i.jsxs("div",{className:"flex items-center gap-2 text-gray-500 dark:text-gray-400",children:[i.jsx(q.Users,{className:"w-4 h-4"}),i.jsxs("span",{children:[((k==null?void 0:k.subscribers)||0).toLocaleString()," members"]})]}),i.jsxs("div",{className:"flex items-center gap-2 text-gray-500 dark:text-gray-400",children:[i.jsx(q.Calendar,{className:"w-4 h-4"}),i.jsxs("span",{children:["Created"," ",k!=null&&k.created_at?new Date(k.created_at).getFullYear():"Unknown"]})]})]})]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(al,{id:t,toastType:"community",onAdd:(V,H)=>console.log("Added:",V,H),onRemove:(V,H)=>console.log("Removed:",V,H),onFavourite:u}),i.jsx("button",{onClick:f||p,className:"p-2 rounded-lg border border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-300 hover:bg-gray-300 dark:hover:bg-gray-700",children:i.jsx(q.Rss,{className:"w-4 h-4"})}),i.jsx("button",{onClick:c||j,className:"p-2 rounded-lg border border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-300 hover:bg-gray-300 dark:hover:bg-gray-700",children:i.jsx(q.Share2,{className:"w-4 h-4"})}),h&&i.jsx("button",{onClick:l||(()=>{}),className:"p-2 rounded-lg border border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-300 hover:bg-gray-300 dark:hover:bg-gray-700",children:i.jsx(q.MoreVertical,{className:"w-4 h-4"})})]})]})}),i.jsxs("div",{children:[i.jsxs("div",{className:"grid grid-cols-4 w-full bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg overflow-hidden",children:[i.jsx("button",{onClick:()=>b("videos"),className:`px-4 py-2 text-xs sm:text-sm font-medium transition-colors ${m==="videos"?"bg-blue-600 dark:bg-blue-500 text-white":"text-gray-700 dark:text-gray-300 hover:bg-gray-300 dark:hover:bg-gray-700"}`,children:"Videos"}),i.jsx("button",{onClick:()=>a?a():b("about"),className:`px-4 py-2 text-xs sm:text-sm font-medium transition-colors ${m==="about"?"bg-blue-600 dark:bg-blue-500 text-white":"text-gray-700 dark:text-gray-300 hover:bg-gray-300 dark:hover:bg-gray-700"}`,children:"About"}),i.jsx("button",{onClick:()=>s?s():b("team"),className:`px-4 py-2 text-xs sm:text-sm font-medium transition-colors ${m==="team"?"bg-blue-600 dark:bg-blue-500 text-white":"text-gray-700 dark:text-gray-300 hover:bg-gray-300 dark:hover:bg-gray-700"}`,children:"Team"}),i.jsx("button",{onClick:()=>o?o():b("members"),className:`px-4 py-2 text-xs sm:text-sm font-medium transition-colors ${m==="members"?"bg-blue-600 dark:bg-blue-500 text-white":"text-gray-700 dark:text-gray-300 hover:bg-gray-300 dark:hover:bg-gray-700"}`,children:"Members"})]}),i.jsxs("div",{className:"mt-6",children:[m==="videos"&&i.jsx(oi,{feedType:Je.COMMUNITY,communityId:t,onVideoClick:e,onAuthorClick:r}),m==="about"&&!a&&i.jsx(pf,{communityId:t}),m==="team"&&!s&&i.jsx(mf,{communityId:t,onSelectTeamMember:A}),m==="members"&&!o&&i.jsx(gf,{communityId:t,onSelectCommunityMember:A})]})]})]})},ev=({currentUser:t,onTabChanged:e,onPublish:r,onViewMyVideo:n,onMoreOptions:a,onTapBackButton:s,shouldShowBackButton:o=!0,shouldShowPublishButton:c=!1,shouldShowMoreOptionsButton:u=!1})=>{const f=Bc.useNavigate(),[l,h]=C.useState(0),[d,m]=C.useState([]),[b,x]=C.useState(!0),[y,g]=C.useState(null),E=d.filter(S=>["encoding","uploaded","encoding_queued","encoding_preparing","ipfs_pinning","ipfs_pinning_failed","encoding_failed","encoding_ipfs"].includes(S.status||"")),D=d.filter(S=>S.status==="publish_manual"),w=d.filter(S=>S.status==="published");C.useEffect(()=>{t!=null&&t.token&&j()},[t]);const j=async()=>{if(!(t!=null&&t.token)){g("No authentication token provided"),x(!1);return}x(!0),g(null);try{const S=await et.getMyVideos(t.token);m(S)}catch(S){console.error("Error fetching videos:",S),g(`Failed to load videos: ${S instanceof Error?S.message:"Unknown error"}`)}finally{x(!1)}},p=S=>{h(S),e==null||e(S)},A=S=>{S.owner&&S.permlink&&f(`/video/${S.owner}/${S.permlink}`)},k=S=>{switch(S.toLowerCase()){case"published":return"bg-green-500";case"encoding":case"encoding_queued":return"bg-orange-500";case"uploaded":return"bg-blue-500";case"publish_manual":return"bg-purple-500";default:return"bg-gray-500"}},V=["ipfs_pinning","ipfs_pinning_failed","encoding","encoding_failed","encoding_ipfs"],H=(S,P)=>{if(S.length===0){let I="";switch(P){case"publishNow":I="No videos ready to publish.";break;case"myVideos":I="No published videos found.";break;case"encoding":I="No videos currently encoding.";break}return i.jsxs("div",{className:"flex flex-col items-center justify-center py-16",children:[i.jsx(q.Video,{className:"w-16 h-16 text-gray-400 mb-4"}),i.jsx("p",{className:"text-gray-600 dark:text-gray-400 text-center",children:I})]})}return i.jsx("div",{className:"space-y-3 w-full",children:S.map((I,W)=>{const _=I.thumbnail||"",M=I.title||"No Title",O=I.permlink||"",G=I.owner||(t==null?void 0:t.username)||"",R=I.id||"",K=V.includes(I.status||"");return i.jsx("div",{className:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg p-3 hover:shadow-md transition-shadow",children:i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsxs("div",{className:"relative flex-shrink-0",children:[i.jsx("img",{src:on(_)||`https://images.hive.blog/u/${t==null?void 0:t.username}/avatar`,alt:M,className:"w-24 h-16 rounded-lg object-cover",onError:X=>{X.target.src=`https://images.hive.blog/u/${t==null?void 0:t.username}/avatar`}}),V.includes(I.status||"")?i.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-black/30 rounded-lg",children:i.jsx(q.Ban,{className:"w-6 h-6 text-red-500"})}):i.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-black/20 opacity-0 hover:opacity-100 transition-opacity cursor-pointer rounded-lg",onClick:()=>A(I),children:i.jsx(q.Play,{className:"w-6 h-6 text-white"})})]}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("h3",{className:"font-semibold text-gray-900 dark:text-white text-sm cursor-pointer hover:text-blue-600 dark:hover:text-blue-400",onClick:()=>A(I),style:{display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis"},children:M}),i.jsxs("p",{className:"text-gray-600 dark:text-gray-400 text-xs mt-1",children:["By ",G]}),I.status&&i.jsx("div",{className:"mt-2",children:i.jsx("span",{className:`inline-block px-2 py-1 rounded-full text-xs font-semibold text-white ${k(I.status)}`,children:I.status.toUpperCase()})})]}),K?i.jsx("div",{className:"flex-shrink-0 pl-2",children:i.jsx(q.Ban,{className:"w-5 h-5 text-red-500"})}):i.jsxs("div",{className:"flex flex-col items-end gap-2",children:[P==="publishNow"&&c&&i.jsx("button",{onClick:()=>r==null?void 0:r(G,O),className:"bg-green-600 hover:bg-green-700 text-white text-xs px-3 py-1 rounded-md transition-colors",children:"Publish"}),P==="myVideos"&&i.jsx("button",{onClick:()=>n?n(G,O):A(I),className:"bg-blue-600 hover:bg-blue-700 text-white text-xs px-3 py-1 rounded-md transition-colors",children:"View"}),u&&i.jsx("button",{onClick:()=>a==null?void 0:a(R),className:"p-1 h-6 w-6 rounded-md hover:bg-gray-300 dark:hover:bg-gray-700 transition-colors",children:i.jsx(q.MoreVertical,{className:"w-4 h-4"})})]})]})},`${R}-${W}`)})})};return t?i.jsxs("div",{className:"min-h-screen bg-gray-50 dark:bg-gray-900",children:[o&&i.jsxs("button",{onClick:s,className:"flex items-center justify-center mr-4 my-2 px-2 text-gray-400 hover:bg-gray-200 dark:hover:bg-gray-700 rounded-full",children:[i.jsx(q.ArrowLeft,{className:"w-4 h-4 mr-2"}),"Back"]}),i.jsxs("div",{className:"bg-white dark:bg-gray-800 border-b border-gray-200 dark:border-gray-700",children:[i.jsxs("div",{className:"flex items-center justify-between p-4",children:[i.jsx("div",{className:"flex items-center gap-3",children:i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("img",{src:`https://images.hive.blog/u/${t.username}/avatar`,alt:t.username,className:"w-12 h-12 md:w-16 md:h-16 rounded-full object-cover border-2 border-gray-200 dark:border-gray-700",onError:S=>{S.target.src=`https://ui-avatars.com/api/?name=${t.username}&background=random&size=64`}}),i.jsx("div",{children:i.jsx("h1",{className:"text-lg md:text-xl font-semibold text-gray-900 dark:text-white",children:t.username})})]})}),i.jsx("div",{className:"flex items-center gap-2",children:i.jsx("button",{onClick:j,className:"p-2 rounded-md hover:bg-gray-300 dark:hover:bg-gray-700 transition-colors",children:i.jsx(q.RefreshCw,{className:"w-5 h-5"})})})]}),i.jsx("div",{className:"border-b border-gray-200 dark:border-gray-700",children:i.jsxs("div",{className:"flex overflow-x-auto scrollbar-hide",children:[i.jsxs("button",{onClick:()=>p(0),className:`flex items-center gap-2 px-4 md:px-6 py-3 border-b-2 font-medium text-sm transition-colors whitespace-nowrap flex-shrink-0 ${l===0?"border-blue-500 text-blue-600 dark:text-blue-400":"border-transparent text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-300"}`,children:[i.jsx(q.Upload,{className:"w-4 h-4"}),i.jsx("span",{className:"hidden sm:inline",children:"Publish Now"}),i.jsx("span",{className:"sm:hidden",children:"Publish"}),D.length>0&&i.jsx("span",{className:"bg-blue-100 dark:bg-blue-900 text-blue-800 dark:text-blue-200 text-xs px-2 py-1 rounded-full",children:D.length})]}),i.jsxs("button",{onClick:()=>p(1),className:`flex items-center gap-2 px-4 md:px-6 py-3 border-b-2 font-medium text-sm transition-colors whitespace-nowrap flex-shrink-0 ${l===1?"border-blue-500 text-blue-600 dark:text-blue-400":"border-transparent text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-300"}`,children:[i.jsx(q.Video,{className:"w-4 h-4"}),i.jsx("span",{className:"hidden sm:inline",children:"My Videos"}),i.jsx("span",{className:"sm:hidden",children:"Videos"}),w.length>0&&i.jsx("span",{className:"bg-blue-100 dark:bg-blue-900 text-blue-800 dark:text-blue-200 text-xs px-2 py-1 rounded-full",children:w.length})]}),i.jsxs("button",{onClick:()=>p(2),className:`flex items-center gap-2 px-4 md:px-6 py-3 border-b-2 font-medium text-sm transition-colors whitespace-nowrap flex-shrink-0 ${l===2?"border-blue-500 text-blue-600 dark:text-blue-400":"border-transparent text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-300"}`,children:[i.jsx(q.Hourglass,{className:"w-4 h-4"}),i.jsx("span",{className:"hidden sm:inline",children:"Encoding"}),i.jsx("span",{className:"sm:hidden",children:"Encoding"}),E.length>0&&i.jsx("span",{className:"bg-blue-100 dark:bg-blue-900 text-blue-800 dark:text-blue-200 text-xs px-2 py-1 rounded-full",children:E.length})]})]})})]}),i.jsx("div",{className:"py-4 md:py-6 w-full",children:b?i.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:i.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-blue-600"})}):y?i.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[400px] text-center",children:[i.jsx("div",{className:"w-16 h-16 bg-red-100 dark:bg-red-900 rounded-full flex items-center justify-center mb-4",children:i.jsx(q.Info,{className:"w-8 h-8 text-red-600 dark:text-red-400"})}),i.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-2",children:"Failed to load videos"}),i.jsx("p",{className:"text-gray-600 dark:text-gray-400 mb-4",children:y}),i.jsx("button",{onClick:j,className:"bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-md transition-colors",children:"Retry"})]}):i.jsxs("div",{className:"space-y-6",children:[l===0&&H(D,"publishNow"),l===1&&H(w,"myVideos"),l===2&&H(E,"encoding")]})})]}):i.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:i.jsx("p",{className:"text-gray-600 dark:text-gray-400",children:"Please login to view your account"})})},bf=({username:t,onSelectUser:e})=>{const[r,n]=C.useState([]),[a,s]=C.useState(!0),[o,c]=C.useState(null),u=async()=>{try{s(!0),c(null);const f=await Re.getFollowers(t);n(f)}catch(f){c(f instanceof Error?f.message:"Failed to load followers")}finally{s(!1)}};return C.useEffect(()=>{u()},[t]),a?i.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:i.jsxs("div",{className:"flex items-center gap-2 text-gray-500 dark:text-gray-400",children:[i.jsx(q.Loader2,{className:"w-5 h-5 animate-spin"}),"Loading followers..."]})}):o?i.jsx("div",{className:"flex flex-col items-center justify-center min-h-[400px] space-y-4",children:i.jsxs("div",{className:"text-center",children:[i.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-2",children:"Failed to load followers"}),i.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-4",children:o}),i.jsxs("button",{onClick:u,className:"m-2 inline-flex items-center justify-center rounded-md border border-input text-gray-400 cursor-pointer bg-background p-2 text-sm font-medium text-foreground shadow-sm transition-colors hover:bg-accent hover:text-accent-foreground disabled:opacity-50 disabled:pointer-events-none",children:[i.jsx(q.RefreshCw,{className:"w-4 h-4 mr-2"}),"Try Again"]})]})}):r.length===0?i.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:i.jsx("p",{className:"text-gray-500 dark:text-gray-400",children:"This user has no followers."})}):i.jsx("div",{className:"space-y-6",children:i.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:r.map((f,l)=>i.jsx("div",{onClick:()=>e&&e(f.follower),className:`bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700
1102
1110
  rounded-xl p-4 hover:bg-gray-300 dark:hover:bg-gray-700
1103
- transition-colors cursor-pointer`,children:i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("img",{src:ke.userAvatar(f.follower),alt:f.follower,className:"w-12 h-12 rounded-full object-cover",onError:h=>{h.target.src=`https://ui-avatars.com/api/?name=${f.follower}&background=random`}}),i.jsx("div",{className:"flex-1 min-w-0",children:i.jsxs("h3",{className:"font-semibold text-gray-900 dark:text-white truncate",children:["@",f.follower]})})]})},`${f.follower}-${l}`))})})},xf=({username:t,onSelectUser:e})=>{const[r,n]=T.useState([]),[a,s]=T.useState(!0),[o,c]=T.useState(null),u=async()=>{try{s(!0),c(null);const f=await ke.getFollowing(t);n(f)}catch(f){c(f instanceof Error?f.message:"Failed to load following list")}finally{s(!1)}};return T.useEffect(()=>{u()},[t]),a?i.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:i.jsxs("div",{className:"flex items-center gap-2 text-gray-500 dark:text-gray-400",children:[i.jsx(q.Loader2,{className:"w-5 h-5 animate-spin"}),"Loading following list..."]})}):o?i.jsx("div",{className:"flex flex-col items-center justify-center min-h-[400px] space-y-4",children:i.jsxs("div",{className:"text-center",children:[i.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-2",children:"Failed to load following list"}),i.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-4",children:o}),i.jsxs("button",{onClick:u,className:"m-2 inline-flex items-center justify-center rounded-md border border-input text-gray-400 cursor-pointer bg-background p-2 text-sm font-medium text-foreground shadow-sm transition-colors hover:bg-accent hover:text-accent-foreground disabled:opacity-50 disabled:pointer-events-none",children:[i.jsx(q.RefreshCw,{className:"w-4 h-4 mr-2"}),"Try Again"]})]})}):r.length===0?i.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:i.jsx("p",{className:"text-gray-500 dark:text-gray-400",children:"This user is not following anyone."})}):i.jsx("div",{className:"space-y-6",children:i.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:r.map((f,l)=>i.jsx("div",{onClick:()=>e&&e(f.following),className:`bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700
1111
+ transition-colors cursor-pointer`,children:i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("img",{src:Re.userAvatar(f.follower),alt:f.follower,className:"w-12 h-12 rounded-full object-cover",onError:h=>{h.target.src=`https://ui-avatars.com/api/?name=${f.follower}&background=random`}}),i.jsx("div",{className:"flex-1 min-w-0",children:i.jsxs("h3",{className:"font-semibold text-gray-900 dark:text-white truncate",children:["@",f.follower]})})]})},`${f.follower}-${l}`))})})},xf=({username:t,onSelectUser:e})=>{const[r,n]=C.useState([]),[a,s]=C.useState(!0),[o,c]=C.useState(null),u=async()=>{try{s(!0),c(null);const f=await Re.getFollowing(t);n(f)}catch(f){c(f instanceof Error?f.message:"Failed to load following list")}finally{s(!1)}};return C.useEffect(()=>{u()},[t]),a?i.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:i.jsxs("div",{className:"flex items-center gap-2 text-gray-500 dark:text-gray-400",children:[i.jsx(q.Loader2,{className:"w-5 h-5 animate-spin"}),"Loading following list..."]})}):o?i.jsx("div",{className:"flex flex-col items-center justify-center min-h-[400px] space-y-4",children:i.jsxs("div",{className:"text-center",children:[i.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-2",children:"Failed to load following list"}),i.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-4",children:o}),i.jsxs("button",{onClick:u,className:"m-2 inline-flex items-center justify-center rounded-md border border-input text-gray-400 cursor-pointer bg-background p-2 text-sm font-medium text-foreground shadow-sm transition-colors hover:bg-accent hover:text-accent-foreground disabled:opacity-50 disabled:pointer-events-none",children:[i.jsx(q.RefreshCw,{className:"w-4 h-4 mr-2"}),"Try Again"]})]})}):r.length===0?i.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:i.jsx("p",{className:"text-gray-500 dark:text-gray-400",children:"This user is not following anyone."})}):i.jsx("div",{className:"space-y-6",children:i.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:r.map((f,l)=>i.jsx("div",{onClick:()=>e&&e(f.following),className:`bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700
1104
1112
  rounded-xl p-4 hover:bg-gray-300 dark:hover:bg-gray-700
1105
- transition-colors cursor-pointer`,children:i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("img",{src:ke.userAvatar(f.following),alt:f.following,className:"w-12 h-12 rounded-full object-cover",onError:h=>{h.target.src=`https://ui-avatars.com/api/?name=${f.following}&background=random`}}),i.jsx("div",{className:"flex-1 min-w-0",children:i.jsxs("h3",{className:"font-semibold text-gray-900 dark:text-white truncate",children:["@",f.following]})})]})},`${f.following}-${l}`))})})},yf=({username:t})=>{var d,m,b,x,y,g;const[e,r]=T.useState(null),[n,a]=T.useState(!0),[s,o]=T.useState(null),c=async()=>{try{a(!0),o(null);const E=await ke.getProfile(t);r(E)}catch(E){o(E instanceof Error?E.message:"Failed to load user details")}finally{a(!1)}};T.useEffect(()=>{c()},[t]);const u=E=>{try{return new Date(E).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}catch{return E}},f=E=>E.replace(/<[^>]*>/g,"");if(n)return i.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:i.jsxs("div",{className:"flex items-center gap-2 text-gray-500 dark:text-gray-400",children:[i.jsx(q.Loader2,{className:"w-5 h-5 animate-spin"}),"Loading user details..."]})});if(s)return i.jsx("div",{className:"flex flex-col items-center justify-center min-h-[400px] space-y-4",children:i.jsxs("div",{className:"text-center",children:[i.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-2",children:"Failed to load user details"}),i.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-4",children:s}),i.jsxs("button",{onClick:c,className:"m-2 inline-flex items-center justify-center rounded-md border border-input bg-background p-2 text-sm font-medium text-foreground shadow-sm transition-colors hover:bg-accent hover:text-accent-foreground disabled:opacity-50 disabled:pointer-events-none",children:[i.jsx(q.RefreshCw,{className:"w-4 h-4"}),"Try Again"]})]})});if(!(e!=null&&e.result))return i.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:i.jsx("p",{className:"text-gray-500 dark:text-gray-400",children:"No user details available"})});const l=e.result,h=(d=l.metadata)==null?void 0:d.profile;return i.jsx("div",{className:"space-y-6",children:i.jsxs("div",{className:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-xl p-6",children:[(h==null?void 0:h.about)&&i.jsxs("div",{className:"mb-6",children:[i.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-3",children:"About"}),i.jsx("div",{className:"text-gray-600 dark:text-gray-300 leading-relaxed whitespace-pre-wrap",children:f(h.about)})]}),i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[i.jsxs("div",{className:"bg-gray-50 dark:bg-gray-900 p-4 rounded-lg",children:[i.jsx("h4",{className:"text-sm font-medium text-gray-500 dark:text-gray-400 mb-1",children:"Location"}),i.jsx("p",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:(h==null?void 0:h.location)||"Not specified"})]}),i.jsxs("div",{className:"bg-gray-50 dark:bg-gray-900 p-4 rounded-lg",children:[i.jsx("h4",{className:"text-sm font-medium text-gray-500 dark:text-gray-400 mb-1",children:"Website"}),i.jsx("a",{href:h==null?void 0:h.website,target:"_blank",rel:"noopener noreferrer",className:"text-lg font-semibold text-blue-500 hover:underline",children:(h==null?void 0:h.website)||"Not specified"})]}),i.jsxs("div",{className:"bg-gray-50 dark:bg-gray-900 p-4 rounded-lg",children:[i.jsx("h4",{className:"text-sm font-medium text-gray-500 dark:text-gray-400 mb-1",children:"Joined"}),i.jsx("p",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:l.created?u(l.created):"Unknown"})]}),i.jsxs("div",{className:"bg-gray-50 dark:bg-gray-900 p-4 rounded-lg",children:[i.jsx("h4",{className:"text-sm font-medium text-gray-500 dark:text-gray-400 mb-1",children:"Followers"}),i.jsx("p",{className:"text-2xl font-bold text-gray-900 dark:text-white",children:((b=(m=l.stats)==null?void 0:m.followers)==null?void 0:b.toLocaleString())||"0"})]}),i.jsxs("div",{className:"bg-gray-50 dark:bg-gray-900 p-4 rounded-lg",children:[i.jsx("h4",{className:"text-sm font-medium text-gray-500 dark:text-gray-400 mb-1",children:"Following"}),i.jsx("p",{className:"text-2xl font-bold text-gray-900 dark:text-white",children:((y=(x=l.stats)==null?void 0:x.following)==null?void 0:y.toLocaleString())||"0"})]}),i.jsxs("div",{className:"bg-gray-50 dark:bg-gray-900 p-4 rounded-lg",children:[i.jsx("h4",{className:"text-sm font-medium text-gray-500 dark:text-gray-400 mb-1",children:"Post Count"}),i.jsx("p",{className:"text-2xl font-bold text-gray-900 dark:text-white",children:((g=l.post_count)==null?void 0:g.toLocaleString())||"0"})]})]})]})})},tv=({username:t,onVideoClick:e,onAuthorClick:r,onBack:n,onClickUserInfoTab:a,onClickFollowersTab:s,onClickFollowingTab:o,onBookmarkToggle:c,onRss:u,onShare:f,onMoreMenu:l,showMoreMenu:h=!1})=>{var V,z,j;const[d,m]=T.useState("videos"),[b,x]=T.useState(null),[y,g]=T.useState(!1),[E,S]=T.useState(!0);T.useEffect(()=>{(async()=>{try{S(!0);const I=await ke.getProfile(t);x(I)}catch(I){console.error("Failed to fetch user details:",I)}finally{S(!1)}})()},[t]);const w=()=>{var L;if(f)f(t);else{const I=`https://3speak.tv/user/${t}`;navigator.share?navigator.share({title:((L=b==null?void 0:b.result)==null?void 0:L.name)||t,url:I}):navigator.clipboard.writeText(I)}},k=()=>{u?u(t):window.open(`https://3speak.tv/rss/${t}.xml`,"_blank")},p=L=>{r(L)};if(E)return i.jsx("div",{className:"space-y-6",children:i.jsxs("div",{className:"animate-pulse",children:[i.jsx("div",{className:"h-8 bg-gray-200 dark:bg-gray-700 rounded w-32 mb-6"}),i.jsxs("div",{className:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-xl p-6",children:[i.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[i.jsx("div",{className:"w-16 h-16 bg-gray-200 dark:bg-gray-700 rounded-full"}),i.jsxs("div",{className:"flex-1 space-y-2",children:[i.jsx("div",{className:"h-6 bg-gray-200 dark:bg-gray-700 rounded w-48"}),i.jsx("div",{className:"h-4 bg-gray-200 dark:bg-gray-700 rounded w-32"})]})]}),i.jsx("div",{className:"flex gap-2",children:Array.from({length:4}).map((L,I)=>i.jsx("div",{className:"h-10 bg-gray-200 dark:bg-gray-700 rounded w-20"},I))})]})]})});const N=b==null?void 0:b.result,A=(V=N==null?void 0:N.metadata)==null?void 0:V.profile;return i.jsxs("div",{className:"space-y-6",children:[i.jsxs("button",{onClick:n,className:"flex items-center justify-center mr-4 px-2 text-gray-400 hover:bg-gray-200 dark:hover:bg-gray-700 rounded-full",children:[i.jsx(q.ArrowLeft,{className:"w-4 h-4 mr-2"}),"Back"]}),i.jsxs("div",{className:"relative bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-xl overflow-hidden",children:[i.jsx("img",{src:A.cover_image||ke.userAvatar(t),alt:"Cover",className:"w-full h-48 object-cover",onError:L=>{L.target.src=ke.userAvatar(t)}}),i.jsx("div",{className:"p-6",children:i.jsxs("div",{className:"flex flex-col md:flex-row items-start md:items-center gap-6",children:[i.jsx("img",{src:A==null?void 0:A.profile_image,alt:A==null?void 0:A.name,className:"w-24 h-24 rounded-full object-cover border-4 border-white dark:border-gray-800 -mt-16",onError:L=>{L.target.src=ke.userAvatar(t)}}),i.jsxs("div",{className:"flex-1",children:[i.jsx("h1",{className:"text-2xl font-bold text-gray-900 dark:text-white mb-2",children:(A==null?void 0:A.name)||t}),i.jsx("p",{className:"text-gray-600 dark:text-gray-400 mb-4",children:(A==null?void 0:A.about)||"No description available"}),i.jsxs("div",{className:"flex flex-wrap gap-6 text-sm",children:[i.jsxs("div",{className:"flex items-center gap-2 text-gray-500 dark:text-gray-400",children:[i.jsx(q.Users,{className:"w-4 h-4"}),i.jsxs("span",{children:[(((z=N==null?void 0:N.stats)==null?void 0:z.followers)||0).toLocaleString()," Followers"]})]}),i.jsxs("div",{className:"flex items-center gap-2 text-gray-500 dark:text-gray-400",children:[i.jsx(q.Users,{className:"w-4 h-4"}),i.jsxs("span",{children:[(((j=N==null?void 0:N.stats)==null?void 0:j.following)||0).toLocaleString()," Following"]})]}),i.jsxs("div",{className:"flex items-center gap-2 text-gray-500 dark:text-gray-400",children:[i.jsx(q.Calendar,{className:"w-4 h-4"}),i.jsxs("span",{children:["Joined"," ",N!=null&&N.created?new Date(N.created).getFullYear():"Unknown"]})]})]})]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(al,{id:t,toastType:"user",onAdd:(L,I)=>{c?c(L,!0):console.log("Added:",L,I)},onRemove:(L,I)=>{c?c(L,!1):console.log("Removed:",L,I)}}),i.jsx("button",{onClick:k,className:"p-2 border border-gray-300 dark:border-gray-600 rounded-lg text-gray-700 dark:text-gray-300 hover:bg-gray-300 dark:hover:bg-gray-700",children:i.jsx(q.Rss,{className:"w-4 h-4"})}),i.jsx("button",{onClick:w,className:"p-2 border border-gray-300 dark:border-gray-600 rounded-lg text-gray-700 dark:text-gray-300 hover:bg-gray-300 dark:hover:bg-gray-700",children:i.jsx(q.Share2,{className:"w-4 h-4"})}),h&&i.jsx("button",{onClick:()=>{l&&l(t)},className:"p-2 border border-gray-300 dark:border-gray-600 rounded-lg text-gray-700 dark:text-gray-300 hover:bg-gray-300 dark:hover:bg-gray-700",children:i.jsx(q.MoreVertical,{className:"w-4 h-4"})})]})]})})]}),i.jsxs("div",{children:[i.jsx("div",{className:"grid grid-cols-4 bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg overflow-hidden",children:[{key:"videos",label:"Videos"},{key:"about",label:"User Info",callback:a},{key:"followers",label:"Followers",callback:s},{key:"following",label:"Following",callback:o}].map((L,I)=>i.jsx("button",{onClick:()=>{L.callback?L.callback():m(L.key)},className:`px-4 py-2 text-xs sm:text-sm font-medium transition-colors ${d===L.key?"bg-blue-600 dark:bg-blue-500 text-white":"text-gray-700 dark:text-gray-300 hover:bg-gray-300 dark:hover:bg-gray-700"}`,children:L.label},L.key))}),i.jsxs("div",{className:"mt-6",children:[d==="videos"&&i.jsx(Qs,{feedType:$e.USER,username:t,onVideoClick:e,onAuthorClick:r}),d==="about"&&i.jsx(yf,{username:t}),d==="followers"&&i.jsx(bf,{username:t,onSelectUser:p}),d==="following"&&i.jsx(xf,{username:t,onSelectUser:p})]})]})]})},So=768;function rv(){const[t,e]=Os.useState(void 0);return Os.useEffect(()=>{const r=window.matchMedia(`(max-width: ${So-1}px)`),n=()=>{e(window.innerWidth<So)};return r.addEventListener("change",n),e(window.innerWidth<So),()=>r.removeEventListener("change",n)},[]),!!t}const nv=1,av=1e6;let Do=0;function sv(){return Do=(Do+1)%Number.MAX_SAFE_INTEGER,Do.toString()}const To=new Map,Fc=t=>{if(To.has(t))return;const e=setTimeout(()=>{To.delete(t),oa({type:"REMOVE_TOAST",toastId:t})},av);To.set(t,e)},vf=(t,e)=>{switch(e.type){case"ADD_TOAST":return{...t,toasts:[e.toast,...t.toasts].slice(0,nv)};case"UPDATE_TOAST":return{...t,toasts:t.toasts.map(r=>r.id===e.toast.id?{...r,...e.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=e;return r?Fc(r):t.toasts.forEach(n=>{Fc(n.id)}),{...t,toasts:t.toasts.map(n=>n.id===r||r===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(r=>r.id!==e.toastId)}}},Ts=[];let Cs={toasts:[]};function oa(t){Cs=vf(Cs,t),Ts.forEach(e=>{e(Cs)})}function wf({...t}){const e=sv(),r=a=>oa({type:"UPDATE_TOAST",toast:{...a,id:e}}),n=()=>oa({type:"DISMISS_TOAST",toastId:e});return oa({type:"ADD_TOAST",toast:{...t,id:e,open:!0,onOpenChange:a=>{a||n()}}}),{id:e,dismiss:n,update:r}}function iv(){const[t,e]=Os.useState(Cs);return Os.useEffect(()=>(Ts.push(e),()=>{const r=Ts.indexOf(e);r>-1&&Ts.splice(r,1)}),[t]),{...t,toast:wf,dismiss:r=>oa({type:"DISMISS_TOAST",toastId:r})}}exports.ActivityList=Wy;exports.ApiVideoFeedType=$e;exports.CommentsModal=zc;exports.CommunitiesList=Ky;exports.CommunityAbout=pf;exports.CommunityDetail=Qy;exports.CommunityMembers=gf;exports.CommunityTeam=mf;exports.DescriptionModal=Wc;exports.FavouriteWidget=al;exports.FollowersList=Uy;exports.FollowingList=zy;exports.ListOfWitnesses=Zy;exports.Modal=ei;exports.PostFeedList=Ry;exports.ProposalsList=Vy;exports.UpvoteListModal=Hc;exports.UserAccount=ev;exports.UserFollowers=bf;exports.UserFollowing=xf;exports.UserInfo=yf;exports.UserProfilePage=tv;exports.VideoCard=qc;exports.VideoDetail=Cf;exports.VideoFeed=Qs;exports.VideoInfo=Uc;exports.Wallet=Jf;exports.apiService=Fe;exports.reducer=vf;exports.server=qt;exports.toast=wf;exports.useIsMobile=rv;exports.useToast=iv;exports.useWalletStore=Yc;exports.witnessService=wt;
1113
+ transition-colors cursor-pointer`,children:i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("img",{src:Re.userAvatar(f.following),alt:f.following,className:"w-12 h-12 rounded-full object-cover",onError:h=>{h.target.src=`https://ui-avatars.com/api/?name=${f.following}&background=random`}}),i.jsx("div",{className:"flex-1 min-w-0",children:i.jsxs("h3",{className:"font-semibold text-gray-900 dark:text-white truncate",children:["@",f.following]})})]})},`${f.following}-${l}`))})})},yf=({username:t})=>{var d,m,b,x,y,g;const[e,r]=C.useState(null),[n,a]=C.useState(!0),[s,o]=C.useState(null),c=async()=>{try{a(!0),o(null);const E=await Re.getProfile(t);r(E)}catch(E){o(E instanceof Error?E.message:"Failed to load user details")}finally{a(!1)}};C.useEffect(()=>{c()},[t]);const u=E=>{try{return new Date(E).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}catch{return E}},f=E=>E.replace(/<[^>]*>/g,"");if(n)return i.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:i.jsxs("div",{className:"flex items-center gap-2 text-gray-500 dark:text-gray-400",children:[i.jsx(q.Loader2,{className:"w-5 h-5 animate-spin"}),"Loading user details..."]})});if(s)return i.jsx("div",{className:"flex flex-col items-center justify-center min-h-[400px] space-y-4",children:i.jsxs("div",{className:"text-center",children:[i.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-2",children:"Failed to load user details"}),i.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-4",children:s}),i.jsxs("button",{onClick:c,className:"m-2 inline-flex items-center justify-center rounded-md border border-input bg-background p-2 text-sm font-medium text-foreground shadow-sm transition-colors hover:bg-accent hover:text-accent-foreground disabled:opacity-50 disabled:pointer-events-none",children:[i.jsx(q.RefreshCw,{className:"w-4 h-4"}),"Try Again"]})]})});if(!(e!=null&&e.result))return i.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:i.jsx("p",{className:"text-gray-500 dark:text-gray-400",children:"No user details available"})});const l=e.result,h=(d=l.metadata)==null?void 0:d.profile;return i.jsx("div",{className:"space-y-6",children:i.jsxs("div",{className:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-xl p-6",children:[(h==null?void 0:h.about)&&i.jsxs("div",{className:"mb-6",children:[i.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-3",children:"About"}),i.jsx("div",{className:"text-gray-600 dark:text-gray-300 leading-relaxed whitespace-pre-wrap",children:f(h.about)})]}),i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[i.jsxs("div",{className:"bg-gray-50 dark:bg-gray-900 p-4 rounded-lg",children:[i.jsx("h4",{className:"text-sm font-medium text-gray-500 dark:text-gray-400 mb-1",children:"Location"}),i.jsx("p",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:(h==null?void 0:h.location)||"Not specified"})]}),i.jsxs("div",{className:"bg-gray-50 dark:bg-gray-900 p-4 rounded-lg",children:[i.jsx("h4",{className:"text-sm font-medium text-gray-500 dark:text-gray-400 mb-1",children:"Website"}),i.jsx("a",{href:h==null?void 0:h.website,target:"_blank",rel:"noopener noreferrer",className:"text-lg font-semibold text-blue-500 hover:underline",children:(h==null?void 0:h.website)||"Not specified"})]}),i.jsxs("div",{className:"bg-gray-50 dark:bg-gray-900 p-4 rounded-lg",children:[i.jsx("h4",{className:"text-sm font-medium text-gray-500 dark:text-gray-400 mb-1",children:"Joined"}),i.jsx("p",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:l.created?u(l.created):"Unknown"})]}),i.jsxs("div",{className:"bg-gray-50 dark:bg-gray-900 p-4 rounded-lg",children:[i.jsx("h4",{className:"text-sm font-medium text-gray-500 dark:text-gray-400 mb-1",children:"Followers"}),i.jsx("p",{className:"text-2xl font-bold text-gray-900 dark:text-white",children:((b=(m=l.stats)==null?void 0:m.followers)==null?void 0:b.toLocaleString())||"0"})]}),i.jsxs("div",{className:"bg-gray-50 dark:bg-gray-900 p-4 rounded-lg",children:[i.jsx("h4",{className:"text-sm font-medium text-gray-500 dark:text-gray-400 mb-1",children:"Following"}),i.jsx("p",{className:"text-2xl font-bold text-gray-900 dark:text-white",children:((y=(x=l.stats)==null?void 0:x.following)==null?void 0:y.toLocaleString())||"0"})]}),i.jsxs("div",{className:"bg-gray-50 dark:bg-gray-900 p-4 rounded-lg",children:[i.jsx("h4",{className:"text-sm font-medium text-gray-500 dark:text-gray-400 mb-1",children:"Post Count"}),i.jsx("p",{className:"text-2xl font-bold text-gray-900 dark:text-white",children:((g=l.post_count)==null?void 0:g.toLocaleString())||"0"})]})]})]})})},tv=({username:t,onVideoClick:e,onAuthorClick:r,onBack:n,onClickUserInfoTab:a,onClickFollowersTab:s,onClickFollowingTab:o,onBookmarkToggle:c,onRss:u,onShare:f,onMoreMenu:l,showMoreMenu:h=!1})=>{var V,H,S;const[d,m]=C.useState("videos"),[b,x]=C.useState(null),[y,g]=C.useState(!1),[E,D]=C.useState(!0);C.useEffect(()=>{(async()=>{try{D(!0);const I=await Re.getProfile(t);x(I)}catch(I){console.error("Failed to fetch user details:",I)}finally{D(!1)}})()},[t]);const w=()=>{var P;if(f)f(t);else{const I=`https://3speak.tv/user/${t}`;navigator.share?navigator.share({title:((P=b==null?void 0:b.result)==null?void 0:P.name)||t,url:I}):navigator.clipboard.writeText(I)}},j=()=>{u?u(t):window.open(`https://3speak.tv/rss/${t}.xml`,"_blank")},p=P=>{r(P)};if(E)return i.jsx("div",{className:"space-y-6",children:i.jsxs("div",{className:"animate-pulse",children:[i.jsx("div",{className:"h-8 bg-gray-200 dark:bg-gray-700 rounded w-32 mb-6"}),i.jsxs("div",{className:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-xl p-6",children:[i.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[i.jsx("div",{className:"w-16 h-16 bg-gray-200 dark:bg-gray-700 rounded-full"}),i.jsxs("div",{className:"flex-1 space-y-2",children:[i.jsx("div",{className:"h-6 bg-gray-200 dark:bg-gray-700 rounded w-48"}),i.jsx("div",{className:"h-4 bg-gray-200 dark:bg-gray-700 rounded w-32"})]})]}),i.jsx("div",{className:"flex gap-2",children:Array.from({length:4}).map((P,I)=>i.jsx("div",{className:"h-10 bg-gray-200 dark:bg-gray-700 rounded w-20"},I))})]})]})});const A=b==null?void 0:b.result,k=(V=A==null?void 0:A.metadata)==null?void 0:V.profile;return i.jsxs("div",{className:"space-y-6",children:[i.jsxs("button",{onClick:n,className:"flex items-center justify-center mr-4 px-2 text-gray-400 hover:bg-gray-200 dark:hover:bg-gray-700 rounded-full",children:[i.jsx(q.ArrowLeft,{className:"w-4 h-4 mr-2"}),"Back"]}),i.jsxs("div",{className:"relative bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-xl overflow-hidden",children:[i.jsx("img",{src:k.cover_image||Re.userAvatar(t),alt:"Cover",className:"w-full h-48 object-cover",onError:P=>{P.target.src=Re.userAvatar(t)}}),i.jsx("div",{className:"p-6",children:i.jsxs("div",{className:"flex flex-col md:flex-row items-start md:items-center gap-6",children:[i.jsx("img",{src:k==null?void 0:k.profile_image,alt:k==null?void 0:k.name,className:"w-24 h-24 rounded-full object-cover border-4 border-white dark:border-gray-800 -mt-16",onError:P=>{P.target.src=Re.userAvatar(t)}}),i.jsxs("div",{className:"flex-1",children:[i.jsx("h1",{className:"text-2xl font-bold text-gray-900 dark:text-white mb-2",children:(k==null?void 0:k.name)||t}),i.jsx("p",{className:"text-gray-600 dark:text-gray-400 mb-4",children:(k==null?void 0:k.about)||"No description available"}),i.jsxs("div",{className:"flex flex-wrap gap-6 text-sm",children:[i.jsxs("div",{className:"flex items-center gap-2 text-gray-500 dark:text-gray-400",children:[i.jsx(q.Users,{className:"w-4 h-4"}),i.jsxs("span",{children:[(((H=A==null?void 0:A.stats)==null?void 0:H.followers)||0).toLocaleString()," Followers"]})]}),i.jsxs("div",{className:"flex items-center gap-2 text-gray-500 dark:text-gray-400",children:[i.jsx(q.Users,{className:"w-4 h-4"}),i.jsxs("span",{children:[(((S=A==null?void 0:A.stats)==null?void 0:S.following)||0).toLocaleString()," Following"]})]}),i.jsxs("div",{className:"flex items-center gap-2 text-gray-500 dark:text-gray-400",children:[i.jsx(q.Calendar,{className:"w-4 h-4"}),i.jsxs("span",{children:["Joined"," ",A!=null&&A.created?new Date(A.created).getFullYear():"Unknown"]})]})]})]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(al,{id:t,toastType:"user",onAdd:(P,I)=>{c?c(P,!0):console.log("Added:",P,I)},onRemove:(P,I)=>{c?c(P,!1):console.log("Removed:",P,I)}}),i.jsx("button",{onClick:j,className:"p-2 border border-gray-300 dark:border-gray-600 rounded-lg text-gray-700 dark:text-gray-300 hover:bg-gray-300 dark:hover:bg-gray-700",children:i.jsx(q.Rss,{className:"w-4 h-4"})}),i.jsx("button",{onClick:w,className:"p-2 border border-gray-300 dark:border-gray-600 rounded-lg text-gray-700 dark:text-gray-300 hover:bg-gray-300 dark:hover:bg-gray-700",children:i.jsx(q.Share2,{className:"w-4 h-4"})}),h&&i.jsx("button",{onClick:()=>{l&&l(t)},className:"p-2 border border-gray-300 dark:border-gray-600 rounded-lg text-gray-700 dark:text-gray-300 hover:bg-gray-300 dark:hover:bg-gray-700",children:i.jsx(q.MoreVertical,{className:"w-4 h-4"})})]})]})})]}),i.jsxs("div",{children:[i.jsx("div",{className:"grid grid-cols-4 bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg overflow-hidden",children:[{key:"videos",label:"Videos"},{key:"about",label:"User Info",callback:a},{key:"followers",label:"Followers",callback:s},{key:"following",label:"Following",callback:o}].map((P,I)=>i.jsx("button",{onClick:()=>{P.callback?P.callback():m(P.key)},className:`px-4 py-2 text-xs sm:text-sm font-medium transition-colors ${d===P.key?"bg-blue-600 dark:bg-blue-500 text-white":"text-gray-700 dark:text-gray-300 hover:bg-gray-300 dark:hover:bg-gray-700"}`,children:P.label},P.key))}),i.jsxs("div",{className:"mt-6",children:[d==="videos"&&i.jsx(oi,{feedType:Je.USER,username:t,onVideoClick:e,onAuthorClick:r}),d==="about"&&i.jsx(yf,{username:t}),d==="followers"&&i.jsx(bf,{username:t,onSelectUser:p}),d==="following"&&i.jsx(xf,{username:t,onSelectUser:p})]})]})]})},So=768;function rv(){const[t,e]=Bs.useState(void 0);return Bs.useEffect(()=>{const r=window.matchMedia(`(max-width: ${So-1}px)`),n=()=>{e(window.innerWidth<So)};return r.addEventListener("change",n),e(window.innerWidth<So),()=>r.removeEventListener("change",n)},[]),!!t}const nv=1,av=1e6;let Do=0;function sv(){return Do=(Do+1)%Number.MAX_SAFE_INTEGER,Do.toString()}const To=new Map,Fc=t=>{if(To.has(t))return;const e=setTimeout(()=>{To.delete(t),Ta({type:"REMOVE_TOAST",toastId:t})},av);To.set(t,e)},vf=(t,e)=>{switch(e.type){case"ADD_TOAST":return{...t,toasts:[e.toast,...t.toasts].slice(0,nv)};case"UPDATE_TOAST":return{...t,toasts:t.toasts.map(r=>r.id===e.toast.id?{...r,...e.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=e;return r?Fc(r):t.toasts.forEach(n=>{Fc(n.id)}),{...t,toasts:t.toasts.map(n=>n.id===r||r===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(r=>r.id!==e.toastId)}}},Fs=[];let Rs={toasts:[]};function Ta(t){Rs=vf(Rs,t),Fs.forEach(e=>{e(Rs)})}function wf({...t}){const e=sv(),r=a=>Ta({type:"UPDATE_TOAST",toast:{...a,id:e}}),n=()=>Ta({type:"DISMISS_TOAST",toastId:e});return Ta({type:"ADD_TOAST",toast:{...t,id:e,open:!0,onOpenChange:a=>{a||n()}}}),{id:e,dismiss:n,update:r}}function iv(){const[t,e]=Bs.useState(Rs);return Bs.useEffect(()=>(Fs.push(e),()=>{const r=Fs.indexOf(e);r>-1&&Fs.splice(r,1)}),[t]),{...t,toast:wf,dismiss:r=>Ta({type:"DISMISS_TOAST",toastId:r})}}exports.ActivityList=Wy;exports.ApiVideoFeedType=Je;exports.CommentsModal=zc;exports.CommunitiesList=Ky;exports.CommunityAbout=pf;exports.CommunityDetail=Qy;exports.CommunityMembers=gf;exports.CommunityTeam=mf;exports.DescriptionModal=Wc;exports.FavouriteWidget=al;exports.FollowersList=Uy;exports.FollowingList=zy;exports.ListOfWitnesses=Zy;exports.Modal=ui;exports.PostFeedList=Ry;exports.ProposalsList=Vy;exports.UpvoteListModal=Hc;exports.UserAccount=ev;exports.UserFollowers=bf;exports.UserFollowing=xf;exports.UserInfo=yf;exports.UserProfilePage=tv;exports.VideoCard=qc;exports.VideoDetail=Cf;exports.VideoFeed=oi;exports.VideoInfo=Uc;exports.Wallet=Jf;exports.apiService=et;exports.reducer=vf;exports.server=cr;exports.toast=wf;exports.useIsMobile=rv;exports.useToast=iv;exports.useWalletStore=Yc;exports.witnessService=qt;