filecat 6.10.0 → 6.11.0
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/build/dist/{1636.30468729d36c207a8ef4.js → 1636.072967845ab14f895639.js} +1 -1
- package/build/dist/{2055.cb159742ee5a05e75046.js → 2055.62d0426a3fc1c31b0bab.js} +1 -1
- package/build/dist/{2286.cbd71319c6939820a1b9.js → 2286.7b47b50c225130b2a17e.js} +2 -2
- package/build/dist/2542.6894d0214af41b826e1d.js +1 -0
- package/build/dist/2851.6d0f7f44b07703b3b9d7.js +1 -0
- package/build/dist/397.35e2e66390b0f2e972d7.js +2 -0
- package/build/dist/{4273.b5a75d7edaf3213e5bbf.js → 4273.41a9feaab67d7ad3f8b5.js} +1 -1
- package/build/dist/{5838.1d57a1ebe1d439a635b2.js → 5838.5d636e34b45888ec83a4.js} +1 -1
- package/build/dist/{5937.088e5a04adbf7f7f643e.js → 5937.523bd926b56c396be084.js} +1 -1
- package/build/dist/6084.cb0ad62ae4786aa13a54.js +1 -0
- package/build/dist/6413.c7a7182be7e2f9e321e1.js +1 -0
- package/build/dist/{6723.faaa06f224af3b03127a.js → 6723.543183e8747e2b0ace9c.js} +2 -2
- package/build/dist/{7795.62b518fc1550f5ab95c9.js → 7795.3a83ff937851fbdbb757.js} +2 -2
- package/build/dist/8194.6a91fdc006d0b5369b74.js +1 -0
- package/build/dist/8302.b421118ad87aa89119bf.js +1 -0
- package/build/dist/9782.ecacd943d1a29c6bf31e.js +1 -0
- package/build/dist/index.html +1 -1
- package/build/dist/main.6d4d28884666f264065f.js +1 -0
- package/build/dist/{npm.axios.5550ce6331dd7babbcfe.js → npm.axios.a286c4fe3f8d4ec9796a.js} +1 -1
- package/build/dist/npm.d3-selection.d25be3c43262bec3e0e9.js +1 -0
- package/build/dist/npm.d3-shape.eb306454bfc543d4fbcf.js +1 -0
- package/build/dist/npm.es-toolkit.34c9948c83cd1954dd90.js +1 -0
- package/build/dist/{npm.excalidraw.1b06762da5042714467a.js → npm.excalidraw.94526d6a7108a360de25.js} +1 -1
- package/build/dist/{npm.floating-ui.c75a64cadcbaaebc0082.js → npm.floating-ui.6eecae6896df6b20e910.js} +1 -1
- package/build/dist/npm.github-markdown-css.82ca3e981b64da3ae836.js +1 -0
- package/build/dist/{npm.highlight.js.630038518d374f6e2cc8.js → npm.highlight.js.e197da73449d85791b07.js} +1 -1
- package/build/dist/npm.i18next.ea872f8dfd91b2154015.js +1 -0
- package/build/dist/npm.image-blob-reduce.25b5b3d0361f80b89938.js +2 -0
- package/build/dist/{npm.khroma.7ab89b0e2068439dcb74.js → npm.khroma.82cbf6838f023564870b.js} +1 -1
- package/build/dist/{npm.lodash-es.caed1cb74816cb0ed085.js → npm.lodash-es.9c09e9abc4ae8587b600.js} +1 -1
- package/build/dist/npm.markdown-it.d69ce2e9e8ffa466eba6.js +1 -0
- package/build/dist/npm.mermaid.e0b59d2463c32a0e43db.js +1 -0
- package/build/dist/npm.mpd-parser.cf420d46dbb8a8921ab1.js +1 -0
- package/build/dist/{npm.noty.9c23b429c58905300317.js → npm.noty.2eab57f475fb39eb37db.js} +2 -2
- package/build/dist/{npm.react-router.6294ae9e93aa01cece06.js → npm.react-router.2b16d221233fc84c4261.js} +2 -2
- package/build/dist/{npm.video.js.a61b7ba57d10b9b3e56d.js → npm.video.js.2d49851da555765dc3e4.js} +2 -2
- package/build/dist/{npm.videojs.230d2e05e6e419773044.js → npm.videojs.06bcec493b9d59598ea8.js} +1 -1
- package/build/dist/{npm.xterm.757ab099dce39da3f542.js → npm.xterm.657bae3fcfdbec409d2b.js} +1 -1
- package/build/main.js +1 -1
- package/build/threads.work.filecat.js +1 -1
- package/package.json +3 -2
- package/build/dist/2542.0e99091dcaba3d4146f7.js +0 -1
- package/build/dist/2851.0b54112867180db9965f.js +0 -1
- package/build/dist/397.19bbedd5e9d5ed0c6790.js +0 -2
- package/build/dist/6084.6c144a4d692d003cfca0.js +0 -1
- package/build/dist/7274.c855182736e04199cec7.js +0 -1
- package/build/dist/8302.345d05a7a3fa23d2b15d.js +0 -1
- package/build/dist/9782.8808d86e7e0a6928ad5d.js +0 -1
- package/build/dist/main.5bf4ca03713b5f528aec.js +0 -1
- package/build/dist/npm.d3-selection.d95fb47c647ef6e93798.js +0 -1
- package/build/dist/npm.d3-shape.a087932c2fb242e67aa2.js +0 -1
- package/build/dist/npm.es-toolkit.6e2def85c642c1ae121c.js +0 -1
- package/build/dist/npm.github-markdown-css.a3ce76a1172b0aa3ee39.js +0 -1
- package/build/dist/npm.i18next.4d343d06af92faf9acfd.js +0 -1
- package/build/dist/npm.image-blob-reduce.973825a3b7c5a1605a78.js +0 -2
- package/build/dist/npm.markdown-it.81994f1b0a64619b892a.js +0 -1
- package/build/dist/npm.mermaid.92be56e14ee41c57413e.js +0 -1
- package/build/dist/npm.mpd-parser.8d49860cde5e4ba98bce.js +0 -1
- /package/build/dist/{2286.cbd71319c6939820a1b9.js.LICENSE.txt → 2286.7b47b50c225130b2a17e.js.LICENSE.txt} +0 -0
- /package/build/dist/{397.19bbedd5e9d5ed0c6790.js.LICENSE.txt → 397.35e2e66390b0f2e972d7.js.LICENSE.txt} +0 -0
- /package/build/dist/{6723.faaa06f224af3b03127a.js.LICENSE.txt → 6723.543183e8747e2b0ace9c.js.LICENSE.txt} +0 -0
- /package/build/dist/{7795.62b518fc1550f5ab95c9.js.LICENSE.txt → 7795.3a83ff937851fbdbb757.js.LICENSE.txt} +0 -0
- /package/build/dist/{npm.image-blob-reduce.973825a3b7c5a1605a78.js.LICENSE.txt → npm.image-blob-reduce.25b5b3d0361f80b89938.js.LICENSE.txt} +0 -0
- /package/build/dist/{npm.noty.9c23b429c58905300317.js.LICENSE.txt → npm.noty.2eab57f475fb39eb37db.js.LICENSE.txt} +0 -0
- /package/build/dist/{npm.react-router.6294ae9e93aa01cece06.js.LICENSE.txt → npm.react-router.2b16d221233fc84c4261.js.LICENSE.txt} +0 -0
- /package/build/dist/{npm.video.js.a61b7ba57d10b9b3e56d.js.LICENSE.txt → npm.video.js.2d49851da555765dc3e4.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[9262],{78245(t,n,e){e.d(n,{Lt:()=>i});var r=e(58227);function i(t){return"string"==typeof t?new r.LN([[document.querySelector(t)]],[document.documentElement]):new r.LN([[t]],r.zr)}e.dn(i)},56541(t,n,e){function r(t){return function(){return this.matches(t)}}function i(t){return function(n){return n.matches(t)}}e.d(n,{A:()=>r,j:()=>i}),e.dn(r)},47268(t,n,e){e.d(n,{A:()=>i}),e.dn(i);var r=e(27947);function i(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),r.A.hasOwnProperty(n)?{space:r.A[n],local:t}:t}},27947(t,n,e){e.d(n,{A:()=>i,g:()=>r});var r="http://www.w3.org/1999/xhtml";const i={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},58227(t,n,e){e.d(n,{LN:()=>Tt,Ay:()=>Vt,zr:()=>Rt});var r=e(50574);function i(t){"function"!=typeof t&&(t=(0,r.A)(t));for(var n=this._groups,e=n.length,i=new Array(e),o=0;o<e;++o)for(var u,s,c=n[o],a=c.length,l=i[o]=new Array(a),f=0;f<a;++f)(u=c[f])&&(s=t.call(u,u.__data__,f,c))&&("__data__"in u&&(s.__data__=u.__data__),l[f]=s);return new Tt(i,this._parents)}e.dn(i);var o=e(80747);function u(t){return function(){return null==(n=t.apply(this,arguments))?[]:Array.isArray(n)?n:Array.from(n);var n}}function s(t){t="function"==typeof t?u(t):(0,o.A)(t);for(var n=this._groups,e=n.length,r=[],i=[],s=0;s<e;++s)for(var c,a=n[s],l=a.length,f=0;f<l;++f)(c=a[f])&&(r.push(t.call(c,c.__data__,f,a)),i.push(c));return new Tt(r,i)}e.dn(s);var c=e(56541);e.dn(f);var a=Array.prototype.find;function l(){return this.firstElementChild}function f(t){return this.select(null==t?l:function(t){return function(){return a.call(this.children,t)}}("function"==typeof t?t:(0,c.j)(t)))}e.dn(d);var h=Array.prototype.filter;function p(){return Array.from(this.children)}function d(t){return this.selectAll(null==t?p:function(t){return function(){return h.call(this.children,t)}}("function"==typeof t?t:(0,c.j)(t)))}function _(t){"function"!=typeof t&&(t=(0,c.A)(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u=n[i],s=u.length,a=r[i]=[],l=0;l<s;++l)(o=u[l])&&t.call(o,o.__data__,l,u)&&a.push(o);return new Tt(r,this._parents)}function y(t){return new Array(t.length)}function v(){return new Tt(this._enter||this._groups.map(y),this._parents)}function m(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function g(t){return function(){return t}}function w(t,n,e,r,i,o){for(var u,s=0,c=n.length,a=o.length;s<a;++s)(u=n[s])?(u.__data__=o[s],r[s]=u):e[s]=new m(t,o[s]);for(;s<c;++s)(u=n[s])&&(i[s]=u)}function A(t,n,e,r,i,o,u){var s,c,a,l=new Map,f=n.length,h=o.length,p=new Array(f);for(s=0;s<f;++s)(c=n[s])&&(p[s]=a=u.call(c,c.__data__,s,n)+"",l.has(a)?i[s]=c:l.set(a,c));for(s=0;s<h;++s)a=u.call(t,o[s],s,o)+"",(c=l.get(a))?(r[s]=c,c.__data__=o[s],l.delete(a)):e[s]=new m(t,o[s]);for(s=0;s<f;++s)(c=n[s])&&l.get(p[s])===c&&(i[s]=c)}function x(t){return t.__data__}function b(t,n){if(!arguments.length)return Array.from(this,x);var e=n?A:w,r=this._parents,i=this._groups;"function"!=typeof t&&(t=g(t));for(var o=i.length,u=new Array(o),s=new Array(o),c=new Array(o),a=0;a<o;++a){var l=r[a],f=i[a],h=f.length,p=N(t.call(l,l&&l.__data__,a,r)),d=p.length,_=s[a]=new Array(d),y=u[a]=new Array(d);e(l,f,_,y,c[a]=new Array(h),p,n);for(var v,m,b=0,S=0;b<d;++b)if(v=_[b]){for(b>=S&&(S=b+1);!(m=y[S])&&++S<d;);v._next=m||null}}return(u=new Tt(u,r))._enter=s,u._exit=c,u}function N(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function S(){return new Tt(this._exit||this._groups.map(y),this._parents)}function E(t,n,e){var r=this.enter(),i=this,o=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=n&&(i=n(i))&&(i=i.selection()),null==e?o.remove():e(o),r&&i?r.merge(i).order():i}function C(t){for(var n=t.selection?t.selection():t,e=this._groups,r=n._groups,i=e.length,o=r.length,u=Math.min(i,o),s=new Array(i),c=0;c<u;++c)for(var a,l=e[c],f=r[c],h=l.length,p=s[c]=new Array(h),d=0;d<h;++d)(a=l[d]||f[d])&&(p[d]=a);for(;c<i;++c)s[c]=e[c];return new Tt(s,this._parents)}function L(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,i=t[n],o=i.length-1,u=i[o];--o>=0;)(r=i[o])&&(u&&4^r.compareDocumentPosition(u)&&u.parentNode.insertBefore(r,u),u=r);return this}function j(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=B);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o){for(var u,s=e[o],c=s.length,a=i[o]=new Array(c),l=0;l<c;++l)(u=s[l])&&(a[l]=u);a.sort(n)}return new Tt(i,this._parents).order()}function B(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function P(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function q(){return Array.from(this)}function D(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length;i<o;++i){var u=r[i];if(u)return u}return null}function M(){let t=0;for(const n of this)++t;return t}function k(){return!this.node()}function O(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i,o=n[e],u=0,s=o.length;u<s;++u)(i=o[u])&&t.call(i,i.__data__,u,o);return this}e.dn(_),e.dn(y),e.dn(v),m.prototype={constructor:m,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}},e.dn(g),e.dn(b),e.dn(S),e.dn(E),e.dn(C),e.dn(L),e.dn(j),e.dn(P),e.dn(q),e.dn(D),e.dn(M),e.dn(k),e.dn(O);var H=e(47268);function I(t){return function(){this.removeAttribute(t)}}function R(t){return function(){this.removeAttributeNS(t.space,t.local)}}function T(t,n){return function(){this.setAttribute(t,n)}}function U(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function V(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function z(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function X(t,n){var e=(0,H.A)(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((null==n?e.local?R:I:"function"==typeof n?e.local?z:V:e.local?U:T)(e,n))}e.dn(X);var F=e(23683);function G(t){return function(){delete this[t]}}function J(t,n){return function(){this[t]=n}}function K(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function Q(t,n){return arguments.length>1?this.each((null==n?G:"function"==typeof n?K:J)(t,n)):this.node()[t]}function W(t){return t.trim().split(/^|\s+/)}function Y(t){return t.classList||new Z(t)}function Z(t){this._node=t,this._names=W(t.getAttribute("class")||"")}function $(t,n){for(var e=Y(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function tt(t,n){for(var e=Y(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function nt(t){return function(){$(this,t)}}function et(t){return function(){tt(this,t)}}function rt(t,n){return function(){(n.apply(this,arguments)?$:tt)(this,t)}}function it(t,n){var e=W(t+"");if(arguments.length<2){for(var r=Y(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"==typeof n?rt:n?nt:et)(e,n))}function ot(){this.textContent=""}function ut(t){return function(){this.textContent=t}}function st(t){return function(){var n=t.apply(this,arguments);this.textContent=n??""}}function ct(t){return arguments.length?this.each(null==t?ot:("function"==typeof t?st:ut)(t)):this.node().textContent}function at(){this.innerHTML=""}function lt(t){return function(){this.innerHTML=t}}function ft(t){return function(){var n=t.apply(this,arguments);this.innerHTML=n??""}}function ht(t){return arguments.length?this.each(null==t?at:("function"==typeof t?ft:lt)(t)):this.node().innerHTML}function pt(){this.nextSibling&&this.parentNode.appendChild(this)}function dt(){return this.each(pt)}function _t(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function yt(){return this.each(_t)}e.dn(Q),e.dn(it),Z.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}},e.dn(ct),e.dn(ht),e.dn(dt),e.dn(yt);var vt=e(27947);function mt(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===vt.g&&n.documentElement.namespaceURI===vt.g?n.createElement(t):n.createElementNS(e,t)}}function gt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function wt(t){var n=(0,H.A)(t);return(n.local?gt:mt)(n)}function At(t){var n="function"==typeof t?t:wt(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function xt(){return null}function bt(t,n){var e="function"==typeof t?t:wt(t),i=null==n?xt:"function"==typeof n?n:(0,r.A)(n);return this.select(function(){return this.insertBefore(e.apply(this,arguments),i.apply(this,arguments)||null)})}function Nt(){var t=this.parentNode;t&&t.removeChild(this)}function St(){return this.each(Nt)}function Et(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Ct(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Lt(t){return this.select(t?Ct:Et)}function jt(t){return arguments.length?this.property("__data__",t):this.node().__data__}function Bt(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r<o;++r)e=n[r],t.type&&e.type!==t.type||e.name!==t.name?n[++i]=e:this.removeEventListener(e.type,e.listener,e.options);++i?n.length=i:delete this.__on}}}function Pt(t,n,e){return function(){var r,i=this.__on,o=function(t){return function(n){t.call(this,n,this.__data__)}}(n);if(i)for(var u=0,s=i.length;u<s;++u)if((r=i[u]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=e),void(r.value=n);this.addEventListener(t.type,o,e),r={type:t.type,name:t.name,value:n,listener:o,options:e},i?i.push(r):this.__on=[r]}}function qt(t,n,e){var r,i,o=function(t){return t.trim().split(/^|\s+/).map(function(t){var n="",e=t.indexOf(".");return e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}})}(t+""),u=o.length;if(!(arguments.length<2)){for(s=n?Pt:Bt,r=0;r<u;++r)this.each(s(o[r],n,e));return this}var s=this.node().__on;if(s)for(var c,a=0,l=s.length;a<l;++a)for(r=0,c=s[a];r<u;++r)if((i=o[r]).type===c.type&&i.name===c.name)return c.value}e.dn(wt),e.dn(At),e.dn(bt),e.dn(St),e.dn(Lt),e.dn(jt),e.dn(qt);var Dt=e(76747);function Mt(t,n,e){var r=(0,Dt.A)(t),i=r.CustomEvent;"function"==typeof i?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dispatchEvent(i)}function kt(t,n){return function(){return Mt(this,t,n)}}function Ot(t,n){return function(){return Mt(this,t,n.apply(this,arguments))}}function Ht(t,n){return this.each(("function"==typeof n?Ot:kt)(t,n))}function*It(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r,i=t[n],o=0,u=i.length;o<u;++o)(r=i[o])&&(yield r)}e.dn(Ht),e.dn(It);var Rt=[null];function Tt(t,n){this._groups=t,this._parents=n}function Ut(){return new Tt([[document.documentElement]],Rt)}Tt.prototype=Ut.prototype={constructor:Tt,select:i,selectAll:s,selectChild:f,selectChildren:d,filter:_,data:b,enter:v,exit:S,join:E,merge:C,selection:function(){return this},order:L,sort:j,call:P,nodes:q,node:D,size:M,empty:k,each:O,attr:X,style:F.A,property:Q,classed:it,text:ct,html:ht,raise:dt,lower:yt,append:At,insert:bt,remove:St,clone:Lt,datum:jt,on:qt,dispatch:Ht,[Symbol.iterator]:It};const Vt=Ut},23683(t,n,e){e.d(n,{A:()=>s,j:()=>c}),e.dn(s);var r=e(76747);function i(t){return function(){this.style.removeProperty(t)}}function o(t,n,e){return function(){this.style.setProperty(t,n,e)}}function u(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function s(t,n,e){return arguments.length>1?this.each((null==n?i:"function"==typeof n?u:o)(t,n,e??"")):c(this.node(),t)}function c(t,n){return t.style.getPropertyValue(n)||(0,r.A)(t).getComputedStyle(t,null).getPropertyValue(n)}},50574(t,n,e){function r(){}function i(t){return null==t?r:function(){return this.querySelector(t)}}e.d(n,{A:()=>i}),e.dn(i)},80747(t,n,e){function r(){return[]}function i(t){return null==t?r:function(){return this.querySelectorAll(t)}}e.d(n,{A:()=>i}),e.dn(i)},76747(t,n,e){function r(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}e.d(n,{A:()=>r}),e.dn(r)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[7003],{85847(t,i,n){function s(t){return function(){return t}}n.d(i,{JL:()=>g,qr:()=>V,Yu:()=>G,IA:()=>U,Wi:()=>J,PG:()=>Q,OE:()=>X,y8:()=>$,ol:()=>F,Ir:()=>K,oD:()=>nt,Q7:()=>_t,cV:()=>et,lU:()=>S,Lx:()=>at,nV:()=>pt,ux:()=>dt,Xf:()=>Tt,GZ:()=>kt,UP:()=>gt,dy:()=>Nt,n8:()=>A,rL:()=>R}),n.dn(s);const _=Math.abs,h=Math.atan2,e=Math.cos,o=Math.max,a=Math.min,c=Math.sin,r=Math.sqrt,l=1e-12,u=Math.PI,x=u/2,y=2*u;function f(t){return t>=1?x:t<=-1?-x:Math.asin(t)}var p=n(14083);function d(t){let i=3;return t.digits=function(n){if(!arguments.length)return i;if(null==n)i=null;else{const t=Math.floor(n);if(!(t>=0))throw new RangeError(`invalid digits: ${n}`);i=t}return t},()=>new p.wA(i)}function v(t){return t.innerRadius}function b(t){return t.outerRadius}function T(t){return t.startAngle}function w(t){return t.endAngle}function k(t){return t&&t.padAngle}function N(t,i,n,s,_,h,e){var a=t-n,c=i-s,l=(e?h:-h)/r(a*a+c*c),u=l*c,x=-l*a,y=t+u,f=i+x,p=n+u,d=s+x,v=(y+p)/2,b=(f+d)/2,T=p-y,w=d-f,k=T*T+w*w,N=_-h,g=y*d-p*f,E=(w<0?-1:1)*r(o(0,N*N*k-g*g)),m=(g*w-T*E)/k,S=(-g*T-w*E)/k,M=(g*w+T*E)/k,P=(-g*T+w*E)/k,A=m-v,C=S-b,z=M-v,R=P-b;return A*A+C*C>z*z+R*R&&(m=M,S=P),{cx:m,cy:S,x01:-u,y01:-x,x11:m*(_/N-1),y11:S*(_/N-1)}}function g(){var t=v,i=b,n=s(0),o=null,p=T,g=w,E=k,m=null,S=d(M);function M(){var s,d,v,b=+t.apply(this,arguments),T=+i.apply(this,arguments),w=p.apply(this,arguments)-x,k=g.apply(this,arguments)-x,M=_(k-w),P=k>w;if(m||(m=s=S()),T<b&&(d=T,T=b,b=d),T>l)if(M>y-l)m.moveTo(T*e(w),T*c(w)),m.arc(0,0,T,w,k,!P),b>l&&(m.moveTo(b*e(k),b*c(k)),m.arc(0,0,b,k,w,P));else{var A,C,z=w,R=k,q=w,I=k,L=M,V=M,j=E.apply(this,arguments)/2,G=j>l&&(o?+o.apply(this,arguments):r(b*b+T*T)),O=a(_(T-b)/2,+n.apply(this,arguments)),U=O,D=O;if(G>l){var J=f(G/b*c(j)),Q=f(G/T*c(j));(L-=2*J)>l?(q+=J*=P?1:-1,I-=J):(L=0,q=I=(w+k)/2),(V-=2*Q)>l?(z+=Q*=P?1:-1,R-=Q):(V=0,z=R=(w+k)/2)}var W=T*e(z),X=T*c(z),Y=b*e(I),Z=b*c(I);if(O>l){var $,B=T*e(R),F=T*c(R),H=b*e(q),K=b*c(q);if(M<u)if($=function(t,i,n,s,_,h,e,o){var a=n-t,c=s-i,r=e-_,u=o-h,x=u*a-r*c;if(!(x*x<l))return[t+(x=(r*(i-h)-u*(t-_))/x)*a,i+x*c]}(W,X,H,K,B,F,Y,Z)){var tt=W-$[0],it=X-$[1],nt=B-$[0],st=F-$[1],_t=1/c(((v=(tt*nt+it*st)/(r(tt*tt+it*it)*r(nt*nt+st*st)))>1?0:v<-1?u:Math.acos(v))/2),ht=r($[0]*$[0]+$[1]*$[1]);U=a(O,(b-ht)/(_t-1)),D=a(O,(T-ht)/(_t+1))}else U=D=0}V>l?D>l?(A=N(H,K,W,X,T,D,P),C=N(B,F,Y,Z,T,D,P),m.moveTo(A.cx+A.x01,A.cy+A.y01),D<O?m.arc(A.cx,A.cy,D,h(A.y01,A.x01),h(C.y01,C.x01),!P):(m.arc(A.cx,A.cy,D,h(A.y01,A.x01),h(A.y11,A.x11),!P),m.arc(0,0,T,h(A.cy+A.y11,A.cx+A.x11),h(C.cy+C.y11,C.cx+C.x11),!P),m.arc(C.cx,C.cy,D,h(C.y11,C.x11),h(C.y01,C.x01),!P))):(m.moveTo(W,X),m.arc(0,0,T,z,R,!P)):m.moveTo(W,X),b>l&&L>l?U>l?(A=N(Y,Z,B,F,b,-U,P),C=N(W,X,H,K,b,-U,P),m.lineTo(A.cx+A.x01,A.cy+A.y01),U<O?m.arc(A.cx,A.cy,U,h(A.y01,A.x01),h(C.y01,C.x01),!P):(m.arc(A.cx,A.cy,U,h(A.y01,A.x01),h(A.y11,A.x11),!P),m.arc(0,0,b,h(A.cy+A.y11,A.cx+A.x11),h(C.cy+C.y11,C.cx+C.x11),P),m.arc(C.cx,C.cy,U,h(C.y11,C.x11),h(C.y01,C.x01),!P))):m.arc(0,0,b,I,q,P):m.lineTo(Y,Z)}else m.moveTo(0,0);if(m.closePath(),s)return m=null,s+""||null}return M.centroid=function(){var n=(+t.apply(this,arguments)+ +i.apply(this,arguments))/2,s=(+p.apply(this,arguments)+ +g.apply(this,arguments))/2-u/2;return[e(s)*n,c(s)*n]},M.innerRadius=function(i){return arguments.length?(t="function"==typeof i?i:s(+i),M):t},M.outerRadius=function(t){return arguments.length?(i="function"==typeof t?t:s(+t),M):i},M.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:s(+t),M):n},M.padRadius=function(t){return arguments.length?(o=null==t?null:"function"==typeof t?t:s(+t),M):o},M.startAngle=function(t){return arguments.length?(p="function"==typeof t?t:s(+t),M):p},M.endAngle=function(t){return arguments.length?(g="function"==typeof t?t:s(+t),M):g},M.padAngle=function(t){return arguments.length?(E="function"==typeof t?t:s(+t),M):E},M.context=function(t){return arguments.length?(m=t??null,M):m},M}n.dn(g),n.dn(E);Array.prototype.slice;function E(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function m(t){this._context=t}function S(t){return new m(t)}function M(t){return t[0]}function P(t){return t[1]}function A(t,i){var n=s(!0),_=null,h=S,e=null,o=d(a);function a(s){var a,c,r,l=(s=E(s)).length,u=!1;for(null==_&&(e=h(r=o())),a=0;a<=l;++a)!(a<l&&n(c=s[a],a,s))===u&&((u=!u)?e.lineStart():e.lineEnd()),u&&e.point(+t(c,a,s),+i(c,a,s));if(r)return e=null,r+""||null}return t="function"==typeof t?t:void 0===t?M:s(t),i="function"==typeof i?i:void 0===i?P:s(i),a.x=function(i){return arguments.length?(t="function"==typeof i?i:s(+i),a):t},a.y=function(t){return arguments.length?(i="function"==typeof t?t:s(+t),a):i},a.defined=function(t){return arguments.length?(n="function"==typeof t?t:s(!!t),a):n},a.curve=function(t){return arguments.length?(h=t,null!=_&&(e=h(_)),a):h},a.context=function(t){return arguments.length?(null==t?_=e=null:e=h(_=t),a):_},a}function C(t,i){return i<t?-1:i>t?1:i>=t?0:NaN}function z(t){return t}function R(){var t=z,i=C,n=null,_=s(0),h=s(y),e=s(0);function o(s){var o,a,c,r,l,u=(s=E(s)).length,x=0,f=new Array(u),p=new Array(u),d=+_.apply(this,arguments),v=Math.min(y,Math.max(-y,h.apply(this,arguments)-d)),b=Math.min(Math.abs(v)/u,e.apply(this,arguments)),T=b*(v<0?-1:1);for(o=0;o<u;++o)(l=p[f[o]=o]=+t(s[o],o,s))>0&&(x+=l);for(null!=i?f.sort(function(t,n){return i(p[t],p[n])}):null!=n&&f.sort(function(t,i){return n(s[t],s[i])}),o=0,c=x?(v-u*T)/x:0;o<u;++o,d=r)a=f[o],r=d+((l=p[a])>0?l*c:0)+T,p[a]={data:s[a],index:o,value:l,startAngle:d,endAngle:r,padAngle:b};return p}return o.value=function(i){return arguments.length?(t="function"==typeof i?i:s(+i),o):t},o.sortValues=function(t){return arguments.length?(i=t,n=null,o):i},o.sort=function(t){return arguments.length?(n=t,i=null,o):n},o.startAngle=function(t){return arguments.length?(_="function"==typeof t?t:s(+t),o):_},o.endAngle=function(t){return arguments.length?(h="function"==typeof t?t:s(+t),o):h},o.padAngle=function(t){return arguments.length?(e="function"==typeof t?t:s(+t),o):e},o}function q(){}function I(t,i,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+i)/6,(t._y0+4*t._y1+n)/6)}function L(t){this._context=t}function V(t){return new L(t)}function j(t){this._context=t}function G(t){return new j(t)}function O(t){this._context=t}function U(t){return new O(t)}n.dn(S),m.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;default:this._context.lineTo(t,i)}}},n.dn(A),n.dn(C),n.dn(z),n.dn(R),n.dn(q),n.dn(V),L.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:I(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:I(this,t,i)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i}},n.dn(G),j.prototype={areaStart:q,areaEnd:q,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._x2=t,this._y2=i;break;case 1:this._point=2,this._x3=t,this._y3=i;break;case 2:this._point=3,this._x4=t,this._y4=i,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+i)/6);break;default:I(this,t,i)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i}},n.dn(U),O.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,s=(this._y0+4*this._y1+i)/6;this._line?this._context.lineTo(n,s):this._context.moveTo(n,s);break;case 3:this._point=4;default:I(this,t,i)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i}};class D{constructor(t,i){this._context=t,this._x=i}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,i,t,i):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+i)/2,t,this._y0,t,i)}this._x0=t,this._y0=i}}function J(t){return new D(t,!0)}function Q(t){return new D(t,!1)}function W(t,i){this._basis=new L(t),this._beta=i}W.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,i=this._y,n=t.length-1;if(n>0)for(var s,_=t[0],h=i[0],e=t[n]-_,o=i[n]-h,a=-1;++a<=n;)s=a/n,this._basis.point(this._beta*t[a]+(1-this._beta)*(_+s*e),this._beta*i[a]+(1-this._beta)*(h+s*o));this._x=this._y=null,this._basis.lineEnd()},point:function(t,i){this._x.push(+t),this._y.push(+i)}};const X=function t(i){function n(t){return 1===i?new L(t):new W(t,i)}return n.beta=function(i){return t(+i)},n}(.85);function Y(t,i,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-i),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Z(t,i){this._context=t,this._k=(1-i)/6}Z.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Y(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2,this._x1=t,this._y1=i;break;case 2:this._point=3;default:Y(this,t,i)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const $=function t(i){function n(t){return new Z(t,i)}return n.tension=function(i){return t(+i)},n}(0);function B(t,i){this._context=t,this._k=(1-i)/6}B.prototype={areaStart:q,areaEnd:q,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._x3=t,this._y3=i;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=i);break;case 2:this._point=3,this._x5=t,this._y5=i;break;default:Y(this,t,i)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const F=function t(i){function n(t){return new B(t,i)}return n.tension=function(i){return t(+i)},n}(0);function H(t,i){this._context=t,this._k=(1-i)/6}H.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Y(this,t,i)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const K=function t(i){function n(t){return new H(t,i)}return n.tension=function(i){return t(+i)},n}(0);function tt(t,i,n){var s=t._x1,_=t._y1,h=t._x2,e=t._y2;if(t._l01_a>l){var o=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,a=3*t._l01_a*(t._l01_a+t._l12_a);s=(s*o-t._x0*t._l12_2a+t._x2*t._l01_2a)/a,_=(_*o-t._y0*t._l12_2a+t._y2*t._l01_2a)/a}if(t._l23_a>l){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,r=3*t._l23_a*(t._l23_a+t._l12_a);h=(h*c+t._x1*t._l23_2a-i*t._l12_2a)/r,e=(e*c+t._y1*t._l23_2a-n*t._l12_2a)/r}t._context.bezierCurveTo(s,_,h,e,t._x2,t._y2)}function it(t,i){this._context=t,this._alpha=i}it.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){if(t=+t,i=+i,this._point){var n=this._x2-t,s=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+s*s,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;break;case 2:this._point=3;default:tt(this,t,i)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const nt=function t(i){function n(t){return i?new it(t,i):new Z(t,0)}return n.alpha=function(i){return t(+i)},n}(.5);function st(t,i){this._context=t,this._alpha=i}st.prototype={areaStart:q,areaEnd:q,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,i){if(t=+t,i=+i,this._point){var n=this._x2-t,s=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+s*s,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=i;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=i);break;case 2:this._point=3,this._x5=t,this._y5=i;break;default:tt(this,t,i)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const _t=function t(i){function n(t){return i?new st(t,i):new B(t,0)}return n.alpha=function(i){return t(+i)},n}(.5);function ht(t,i){this._context=t,this._alpha=i}ht.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){if(t=+t,i=+i,this._point){var n=this._x2-t,s=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+s*s,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:tt(this,t,i)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const et=function t(i){function n(t){return i?new ht(t,i):new H(t,0)}return n.alpha=function(i){return t(+i)},n}(.5);function ot(t){this._context=t}function at(t){return new ot(t)}function ct(t){return t<0?-1:1}function rt(t,i,n){var s=t._x1-t._x0,_=i-t._x1,h=(t._y1-t._y0)/(s||_<0&&-0),e=(n-t._y1)/(_||s<0&&-0),o=(h*_+e*s)/(s+_);return(ct(h)+ct(e))*Math.min(Math.abs(h),Math.abs(e),.5*Math.abs(o))||0}function lt(t,i){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-i)/2:i}function ut(t,i,n){var s=t._x0,_=t._y0,h=t._x1,e=t._y1,o=(h-s)/3;t._context.bezierCurveTo(s+o,_+o*i,h-o,e-o*n,h,e)}function xt(t){this._context=t}function yt(t){this._context=new ft(t)}function ft(t){this._context=t}function pt(t){return new xt(t)}function dt(t){return new yt(t)}function vt(t){this._context=t}function bt(t){var i,n,s=t.length-1,_=new Array(s),h=new Array(s),e=new Array(s);for(_[0]=0,h[0]=2,e[0]=t[0]+2*t[1],i=1;i<s-1;++i)_[i]=1,h[i]=4,e[i]=4*t[i]+2*t[i+1];for(_[s-1]=2,h[s-1]=7,e[s-1]=8*t[s-1]+t[s],i=1;i<s;++i)n=_[i]/h[i-1],h[i]-=n,e[i]-=n*e[i-1];for(_[s-1]=e[s-1]/h[s-1],i=s-2;i>=0;--i)_[i]=(e[i]-_[i+1])/h[i];for(h[s-1]=(t[s]+_[s-1])/2,i=0;i<s-1;++i)h[i]=2*t[i+1]-_[i+1];return[_,h]}function Tt(t){return new vt(t)}function wt(t,i){this._context=t,this._t=i}function kt(t){return new wt(t,.5)}function Nt(t){return new wt(t,0)}function gt(t){return new wt(t,1)}n.dn(at),ot.prototype={areaStart:q,areaEnd:q,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,i){t=+t,i=+i,this._point?this._context.lineTo(t,i):(this._point=1,this._context.moveTo(t,i))}},xt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:ut(this,this._t0,lt(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){var n=NaN;if(i=+i,(t=+t)!==this._x1||i!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;break;case 2:this._point=3,ut(this,lt(this,n=rt(this,t,i)),n);break;default:ut(this,this._t0,n=rt(this,t,i))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i,this._t0=n}}},(yt.prototype=Object.create(xt.prototype)).point=function(t,i){xt.prototype.point.call(this,i,t)},ft.prototype={moveTo:function(t,i){this._context.moveTo(i,t)},closePath:function(){this._context.closePath()},lineTo:function(t,i){this._context.lineTo(i,t)},bezierCurveTo:function(t,i,n,s,_,h){this._context.bezierCurveTo(i,t,s,n,h,_)}},n.dn(Tt),vt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,i=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],i[0]):this._context.moveTo(t[0],i[0]),2===n)this._context.lineTo(t[1],i[1]);else for(var s=bt(t),_=bt(i),h=0,e=1;e<n;++h,++e)this._context.bezierCurveTo(s[0][h],_[0][h],s[1][h],_[1][h],t[e],i[e]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,i){this._x.push(+t),this._y.push(+i)}},n.dn(kt),wt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,i),this._context.lineTo(t,i);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,i)}}this._x=t,this._y=i}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[3137],{99125(e,t,n){function r(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}n.d(t,{b:()=>r})},89826(e,t,n){n.d(t,{$V:()=>s,Av:()=>r,GX:()=>p,ML:()=>S,NA:()=>l,OG:()=>o,Qb:()=>g,R_:()=>i,Uw:()=>b,VP:()=>a,XZ:()=>h,ZR:()=>d,_u:()=>v,cT:()=>y,i1:()=>A,iq:()=>j,kj:()=>c,pj:()=>u,q:()=>O,ri:()=>m,vC:()=>f,x6:()=>w});const r="[object RegExp]",o="[object String]",c="[object Number]",s="[object Boolean]",i="[object Arguments]",a="[object Symbol]",f="[object Date]",u="[object Map]",l="[object Set]",b="[object Array]",y="[object ArrayBuffer]",p="[object Object]",j="[object DataView]",g="[object Uint8Array]",O="[object Uint8ClampedArray]",w="[object Uint16Array]",d="[object Uint32Array]",h="[object Int8Array]",A="[object Int16Array]",v="[object Int32Array]",m="[object Float32Array]",S="[object Float64Array]"},20539(e,t,n){function r(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");const n=function(...r){const o=t?t.apply(this,r):r[0],c=n.cache;if(c.has(o))return c.get(o);const s=e.apply(this,r);return n.cache=c.set(o,s)||c,s};return n.cache=new(r.Cache||Map),n}n.d(t,{B:()=>r}),r.Cache=Map},33778(e,t,n){n.d(t,{o:()=>i});var r=n(37110),o=n(99125),c=n(89826);var s=n(19663);function i(e){if((0,r.s)(e))return e;const t=(0,o.b)(e);if(!function(e){switch((0,o.b)(e)){case c.R_:case c.Uw:case c.cT:case c.iq:case c.$V:case c.vC:case c.ri:case c.ML:case c.XZ:case c.i1:case c._u:case c.pj:case c.kj:case c.GX:case c.Av:case c.NA:case c.OG:case c.VP:case c.Qb:case c.q:case c.x6:case c.ZR:return!0;default:return!1}}(e))return{};if(n=e,Array.isArray(n)){const t=Array.from(e);return e.length>0&&"string"==typeof e[0]&&Object.hasOwn(e,"index")&&(t.index=e.index,t.input=e.input),t}var n;if((0,s.i)(e)){const t=e;return new(0,t.constructor)(t.buffer,t.byteOffset,t.length)}if("[object ArrayBuffer]"===t)return new ArrayBuffer(e.byteLength);if("[object DataView]"===t){const t=e,n=t.buffer,r=t.byteOffset,o=t.byteLength,c=new ArrayBuffer(o),s=new Uint8Array(n,r,o);return new Uint8Array(c).set(s),new DataView(c)}if("[object Boolean]"===t||"[object Number]"===t||"[object String]"===t){const n=new(0,e.constructor)(e.valueOf());return"[object String]"===t?function(e,t){const n=t.valueOf().length;for(const r in t)Object.hasOwn(t,r)&&(Number.isNaN(Number(r))||Number(r)>=n)&&(e[r]=t[r])}(n,e):a(n,e),n}if("[object Date]"===t)return new Date(Number(e));if("[object RegExp]"===t){const t=e,n=new RegExp(t.source,t.flags);return n.lastIndex=t.lastIndex,n}if("[object Symbol]"===t)return Object(Symbol.prototype.valueOf.call(e));if("[object Map]"===t){const t=e,n=new Map;return t.forEach((e,t)=>{n.set(t,e)}),n}if("[object Set]"===t){const t=e,n=new Set;return t.forEach(e=>{n.add(e)}),n}if("[object Arguments]"===t){const t=e,n={};return a(n,t),n.length=t.length,n[Symbol.iterator]=t[Symbol.iterator],n}const i={};return function(e,t){const n=Object.getPrototypeOf(t);null!==n&&"function"==typeof t.constructor&&Object.setPrototypeOf(e,n)}(i,e),a(i,e),function(e,t){const n=Object.getOwnPropertySymbols(t);for(let r=0;r<n.length;r++){const o=n[r];Object.prototype.propertyIsEnumerable.call(t,o)&&(e[o]=t[o])}}(i,e),i}function a(e,t){for(const n in t)Object.hasOwn(t,n)&&(e[n]=t[n])}},25268(e,t,n){function r(){}n.d(t,{h:()=>v});var o=n(37110),c=n(42796);function s(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}var i=n(32178);function a(e){return"__proto__"===e}function f(e){if("object"!=typeof e)return!1;if(null==e)return!1;if(null===Object.getPrototypeOf(e))return!0;if("[object Object]"!==Object.prototype.toString.call(e)){const t=e[Symbol.toStringTag];return null!=t&&(!!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable&&e.toString()===`[object ${t}]`)}let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}var u=n(99125),l=n(89826);function b(e,t,n,r=new Map,s=void 0){const a=s?.(e,t,n,r);if(void 0!==a)return a;if((0,o.s)(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){const t=new Array(e.length);r.set(e,t);for(let o=0;o<e.length;o++)t[o]=b(e[o],o,n,r,s);return Object.hasOwn(e,"index")&&(t.index=e.index),Object.hasOwn(e,"input")&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){const t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){const t=new Map;r.set(e,t);for(const[o,c]of e)t.set(o,b(c,o,n,r,s));return t}if(e instanceof Set){const t=new Set;r.set(e,t);for(const o of e)t.add(b(o,void 0,n,r,s));return t}if((0,i.P)(e))return e.subarray();if((0,c.i)(e)){const t=new(Object.getPrototypeOf(e).constructor)(e.length);r.set(e,t);for(let o=0;o<e.length;o++)t[o]=b(e[o],o,n,r,s);return t}if(e instanceof ArrayBuffer||"undefined"!=typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){const t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,t),y(t,e,n,r,s),t}if("undefined"!=typeof File&&e instanceof File){const t=new File([e],e.name,{type:e.type});return r.set(e,t),y(t,e,n,r,s),t}if("undefined"!=typeof Blob&&e instanceof Blob){const t=new Blob([e],{type:e.type});return r.set(e,t),y(t,e,n,r,s),t}if(e instanceof Error){const t=structuredClone(e);return r.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,t.constructor=e.constructor,y(t,e,n,r,s),t}if(e instanceof Boolean){const t=new Boolean(e.valueOf());return r.set(e,t),y(t,e,n,r,s),t}if(e instanceof Number){const t=new Number(e.valueOf());return r.set(e,t),y(t,e,n,r,s),t}if(e instanceof String){const t=new String(e.valueOf());return r.set(e,t),y(t,e,n,r,s),t}if("object"==typeof e&&function(e){switch((0,u.b)(e)){case l.R_:case l.Uw:case l.cT:case l.iq:case l.$V:case l.vC:case l.ri:case l.ML:case l.XZ:case l.i1:case l._u:case l.pj:case l.kj:case l.GX:case l.Av:case l.NA:case l.OG:case l.VP:case l.Qb:case l.q:case l.x6:case l.ZR:return!0;default:return!1}}(e)){const t=Object.create(Object.getPrototypeOf(e));return r.set(e,t),y(t,e,n,r,s),t}return e}function y(e,t,n=e,r,o){const c=[...Object.keys(t),...s(t)];for(let s=0;s<c.length;s++){const i=c[s],a=Object.getOwnPropertyDescriptor(e,i);(null==a||a.writable)&&(e[i]=b(t[i],i,n,r,o))}}function p(e,t){return function(e,t){return b(e,void 0,e,new Map,t)}(e,(n,r,o,c)=>{const s=t?.(n,r,o,c);if(void 0!==s)return s;if("object"==typeof e){if("[object Object]"===(0,u.b)(e)&&"function"!=typeof e.constructor){const t={};return c.set(e,t),y(t,e,o,c),t}switch(Object.prototype.toString.call(e)){case l.kj:case l.OG:case l.$V:{const t=new e.constructor(e?.valueOf());return y(t,e),t}case l.R_:{const t={};return y(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}})}function j(e){return p(e)}var g=n(14608);function O(e){return"object"==typeof e&&null!==e}var w=n(30622);function d(e){return O(e)&&(0,w.X)(e)}var h=n(19663);function A(e,t,n,r){if((0,o.s)(e)&&(e=Object(e)),null==t||"object"!=typeof t)return e;if(r.has(t))return function(e){if((0,o.s)(e))return e;if(Array.isArray(e)||(0,c.i)(e)||e instanceof ArrayBuffer||"undefined"!=typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer)return e.slice(0);const t=Object.getPrototypeOf(e);if(null==t)return Object.assign(Object.create(t),e);const n=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new n(e);if(e instanceof RegExp){const t=new n(e);return t.lastIndex=e.lastIndex,t}if(e instanceof DataView)return new n(e.buffer.slice(0));if(e instanceof Error){let t;return t=e instanceof AggregateError?new n(e.errors,e.message,{cause:e.cause}):new n(e.message,{cause:e.cause}),t.stack=e.stack,Object.assign(t,e),t}return"undefined"!=typeof File&&e instanceof File?new n([e],e.name,{type:e.type,lastModified:e.lastModified}):"object"==typeof e?Object.assign(Object.create(t),e):e}(r.get(t));if(r.set(t,e),Array.isArray(t)){t=t.slice();for(let e=0;e<t.length;e++)t[e]=t[e]??void 0}const u=[...Object.keys(t),...s(t)];for(let o=0;o<u.length;o++){const c=u[o];if(a(c))continue;let s=t[c],l=e[c];if((0,g.N)(s)&&(s={...s}),(0,g.N)(l)&&(l={...l}),(0,i.P)(s)&&(s=j(s)),Array.isArray(s))if(Array.isArray(l)){const e=[],t=Reflect.ownKeys(l);for(let n=0;n<t.length;n++){const r=t[n];e[r]=l[r]}l=e}else if(d(l)){const e=[];for(let t=0;t<l.length;t++)e[t]=l[t];l=e}else l=[];const b=n(l,s,c,e,t,r);void 0!==b?e[c]=b:Array.isArray(s)||O(l)&&O(s)&&(f(l)||f(s)||(0,h.i)(l)||(0,h.i)(s))?e[c]=A(l,s,n,r):null==l&&f(s)?e[c]=A({},s,n,r):null==l&&(0,h.i)(s)?e[c]=j(s):void 0!==l&&void 0===s||(e[c]=s)}return e}function v(e,...t){return function(e,...t){const n=t.slice(0,-1),r=t[t.length-1];let o=e;for(let e=0;e<n.length;e++)o=A(o,n[e],r,new Map);return o}(e,...t,r)}},14608(e,t,n){n.d(t,{N:()=>o});var r=n(99125);function o(e){return null!==e&&"object"==typeof e&&"[object Arguments]"===(0,r.b)(e)}},30622(e,t,n){function r(e){return null!=e&&"function"!=typeof e&&function(e){return Number.isSafeInteger(e)&&e>=0}(e.length)}n.d(t,{X:()=>r})},75663(e,t,n){n.d(t,{I:()=>i});var r=n(32178),o=n(30622),c=n(14608);var s=n(19663);function i(e){if(null==e)return!0;if((0,o.X)(e))return!!("function"==typeof e.splice||"string"==typeof e||(0,r.P)(e)||(0,s.i)(e)||(0,c.N)(e))&&0===e.length;if("object"==typeof e||"function"==typeof e){if(e instanceof Map||e instanceof Set)return 0===e.size;const t=Object.keys(e);return function(e){const t=e?.constructor;return e===("function"==typeof t?t.prototype:Object.prototype)}(e)?0===t.filter(e=>"constructor"!==e).length:0===t.length}return!0}},19663(e,t,n){n.d(t,{i:()=>o});var r=n(42796);function o(e){return(0,r.i)(e)}},32178(e,t,n){n.d(t,{P:()=>o});const r="object"==typeof globalThis&&globalThis||"object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof n.g&&n.g||function(){return this}();function o(e){return void 0!==r.Buffer&&r.Buffer.isBuffer(e)}},37110(e,t,n){function r(e){return null==e||"object"!=typeof e&&"function"!=typeof e}n.d(t,{s:()=>r})},42796(e,t,n){function r(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}n.d(t,{i:()=>r})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[7247],{62718(n,o,r){r.d(o,{A:()=>c});var t=r(31601),a=r.n(t),e=r(76314),d=r.n(e),l=r(4417),i=r.n(l),s=new URL(r(60840),r.b),m=d()(a()),b=i()(s);m.push([n.id,`.markdown-body {\n --base-size-16: 1rem;\n --base-size-24: 1.5rem;\n --base-size-4: 0.25rem;\n --base-size-40: 2.5rem;\n --base-size-8: 0.5rem;\n --base-text-weight-medium: 500;\n --base-text-weight-normal: 400;\n --base-text-weight-semibold: 600;\n --fontStack-monospace: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;\n --fontStack-sansSerif: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";\n --fgColor-accent: Highlight;\n}\n@media (prefers-color-scheme: dark) {\n .markdown-body, [data-theme="dark"] {\n /*dark */\n color-scheme: dark;\n --fgColor-accent: #4493f8;\n --bgColor-attention-muted: #bb800926;\n --bgColor-default: #0d1117;\n --bgColor-muted: #151b23;\n --bgColor-neutral-muted: #656c7633;\n --borderColor-accent-emphasis: #1f6feb;\n --borderColor-attention-emphasis: #9e6a03;\n --borderColor-danger-emphasis: #da3633;\n --borderColor-default: #3d444d;\n --borderColor-done-emphasis: #8957e5;\n --borderColor-success-emphasis: #238636;\n --color-prettylights-syntax-brackethighlighter-angle: #9198a1;\n --color-prettylights-syntax-brackethighlighter-unmatched: #f85149;\n --color-prettylights-syntax-carriage-return-bg: #b62324;\n --color-prettylights-syntax-carriage-return-text: #f0f6fc;\n --color-prettylights-syntax-comment: #9198a1;\n --color-prettylights-syntax-constant: #79c0ff;\n --color-prettylights-syntax-constant-other-reference-link: #a5d6ff;\n --color-prettylights-syntax-entity: #d2a8ff;\n --color-prettylights-syntax-entity-tag: #7ee787;\n --color-prettylights-syntax-keyword: #ff7b72;\n --color-prettylights-syntax-markup-bold: #f0f6fc;\n --color-prettylights-syntax-markup-changed-bg: #5a1e02;\n --color-prettylights-syntax-markup-changed-text: #ffdfb6;\n --color-prettylights-syntax-markup-deleted-bg: #67060c;\n --color-prettylights-syntax-markup-deleted-text: #ffdcd7;\n --color-prettylights-syntax-markup-heading: #1f6feb;\n --color-prettylights-syntax-markup-ignored-bg: #1158c7;\n --color-prettylights-syntax-markup-ignored-text: #f0f6fc;\n --color-prettylights-syntax-markup-inserted-bg: #033a16;\n --color-prettylights-syntax-markup-inserted-text: #aff5b4;\n --color-prettylights-syntax-markup-italic: #f0f6fc;\n --color-prettylights-syntax-markup-list: #f2cc60;\n --color-prettylights-syntax-meta-diff-range: #d2a8ff;\n --color-prettylights-syntax-storage-modifier-import: #f0f6fc;\n --color-prettylights-syntax-string: #a5d6ff;\n --color-prettylights-syntax-string-regexp: #7ee787;\n --color-prettylights-syntax-sublimelinter-gutter-mark: #3d444d;\n --color-prettylights-syntax-variable: #ffa657;\n --fgColor-attention: #d29922;\n --fgColor-danger: #f85149;\n --fgColor-default: #f0f6fc;\n --fgColor-done: #ab7df8;\n --fgColor-muted: #9198a1;\n --fgColor-success: #3fb950;\n --borderColor-muted: #3d444db3;\n --color-prettylights-syntax-invalid-illegal-bg: var(--bgColor-danger-muted);\n --color-prettylights-syntax-invalid-illegal-text: var(--fgColor-danger);\n --focus-outlineColor: var(--borderColor-accent-emphasis);\n --borderColor-neutral-muted: var(--borderColor-muted);\n }\n}\n@media (prefers-color-scheme: light) {\n .markdown-body, [data-theme="light"] {\n /*light */\n color-scheme: light;\n --fgColor-danger: #d1242f;\n --bgColor-attention-muted: #fff8c5;\n --bgColor-muted: #f6f8fa;\n --bgColor-neutral-muted: #818b981f;\n --borderColor-accent-emphasis: #0969da;\n --borderColor-attention-emphasis: #9a6700;\n --borderColor-danger-emphasis: #cf222e;\n --borderColor-default: #d1d9e0;\n --borderColor-done-emphasis: #8250df;\n --borderColor-success-emphasis: #1a7f37;\n --color-prettylights-syntax-brackethighlighter-angle: #59636e;\n --color-prettylights-syntax-brackethighlighter-unmatched: #82071e;\n --color-prettylights-syntax-carriage-return-bg: #cf222e;\n --color-prettylights-syntax-carriage-return-text: #f6f8fa;\n --color-prettylights-syntax-comment: #59636e;\n --color-prettylights-syntax-constant: #0550ae;\n --color-prettylights-syntax-constant-other-reference-link: #0a3069;\n --color-prettylights-syntax-entity: #6639ba;\n --color-prettylights-syntax-entity-tag: #0550ae;\n --color-prettylights-syntax-invalid-illegal-text: var(--fgColor-danger);\n --color-prettylights-syntax-keyword: #cf222e;\n --color-prettylights-syntax-markup-changed-bg: #ffd8b5;\n --color-prettylights-syntax-markup-changed-text: #953800;\n --color-prettylights-syntax-markup-deleted-bg: #ffebe9;\n --color-prettylights-syntax-markup-deleted-text: #82071e;\n --color-prettylights-syntax-markup-heading: #0550ae;\n --color-prettylights-syntax-markup-ignored-bg: #0550ae;\n --color-prettylights-syntax-markup-ignored-text: #d1d9e0;\n --color-prettylights-syntax-markup-inserted-bg: #dafbe1;\n --color-prettylights-syntax-markup-inserted-text: #116329;\n --color-prettylights-syntax-markup-list: #3b2300;\n --color-prettylights-syntax-meta-diff-range: #8250df;\n --color-prettylights-syntax-string: #0a3069;\n --color-prettylights-syntax-string-regexp: #116329;\n --color-prettylights-syntax-sublimelinter-gutter-mark: #818b98;\n --color-prettylights-syntax-variable: #953800;\n --fgColor-accent: #0969da;\n --fgColor-attention: #9a6700;\n --fgColor-done: #8250df;\n --fgColor-muted: #59636e;\n --fgColor-success: #1a7f37;\n --bgColor-default: #ffffff;\n --borderColor-muted: #d1d9e0b3;\n --color-prettylights-syntax-invalid-illegal-bg: var(--bgColor-danger-muted);\n --color-prettylights-syntax-markup-bold: #1f2328;\n --color-prettylights-syntax-markup-italic: #1f2328;\n --color-prettylights-syntax-storage-modifier-import: #1f2328;\n --fgColor-default: #1f2328;\n --focus-outlineColor: var(--borderColor-accent-emphasis);\n --borderColor-neutral-muted: var(--borderColor-muted);\n }\n}\n\n.markdown-body {\n /** CSS default easing. Use for hover state changes and micro-interactions. */\n /** Accelerating motion. Use for elements exiting the viewport (moving off-screen). */\n /** Smooth acceleration and deceleration. Use for elements moving or morphing within the viewport. */\n /** Decelerating motion. Use for elements entering the viewport or appearing on screen. */\n /** Constant motion with no acceleration. Use for continuous animations like progress bars or loaders. */\n -ms-text-size-adjust: 100%;\n -webkit-text-size-adjust: 100%;\n margin: 0;\n font-weight: var(--base-text-weight-normal, 400);\n color: var(--fgColor-default);\n background-color: var(--bgColor-default);\n font-family: var(--fontStack-sansSerif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji");\n font-size: 16px;\n line-height: 1.5;\n word-wrap: break-word;\n}\n\n.markdown-body a {\n text-decoration: underline;\n text-underline-offset: .2rem;\n}\n\n.markdown-body .octicon {\n display: inline-block;\n fill: currentColor;\n vertical-align: text-bottom;\n}\n\n.markdown-body h1:hover .anchor .octicon-link:before,\n.markdown-body h2:hover .anchor .octicon-link:before,\n.markdown-body h3:hover .anchor .octicon-link:before,\n.markdown-body h4:hover .anchor .octicon-link:before,\n.markdown-body h5:hover .anchor .octicon-link:before,\n.markdown-body h6:hover .anchor .octicon-link:before {\n width: 16px;\n height: 16px;\n content: ' ';\n display: inline-block;\n background-color: currentColor;\n -webkit-mask-image: url(${b});\n mask-image: url(${b});\n}\n\n.markdown-body details,\n.markdown-body figcaption,\n.markdown-body figure {\n display: block;\n}\n\n.markdown-body summary {\n display: list-item;\n}\n\n.markdown-body [hidden] {\n display: none !important;\n}\n\n.markdown-body a {\n background-color: rgba(0,0,0,0);\n color: var(--fgColor-accent);\n text-decoration: none;\n}\n\n.markdown-body abbr[title] {\n border-bottom: none;\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n\n.markdown-body b,\n.markdown-body strong {\n font-weight: var(--base-text-weight-semibold, 600);\n}\n\n.markdown-body dfn {\n font-style: italic;\n}\n\n.markdown-body h1 {\n margin: .67em 0;\n font-weight: var(--base-text-weight-semibold, 600);\n padding-bottom: .3em;\n font-size: 2em;\n border-bottom: 1px solid var(--borderColor-muted);\n}\n\n.markdown-body mark {\n background-color: var(--bgColor-attention-muted);\n color: var(--fgColor-default);\n}\n\n.markdown-body small {\n font-size: 90%;\n}\n\n.markdown-body sub,\n.markdown-body sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\n.markdown-body sub {\n bottom: -0.25em;\n}\n\n.markdown-body sup {\n top: -0.5em;\n}\n\n.markdown-body img {\n border-style: none;\n max-width: 100%;\n box-sizing: content-box;\n}\n\n.markdown-body code,\n.markdown-body kbd,\n.markdown-body pre,\n.markdown-body samp {\n font-family: monospace;\n font-size: 1em;\n}\n\n.markdown-body figure {\n margin: 1em var(--base-size-40);\n}\n\n.markdown-body hr {\n box-sizing: content-box;\n overflow: hidden;\n background: rgba(0,0,0,0);\n border-bottom: 1px solid var(--borderColor-muted);\n height: .25em;\n padding: 0;\n margin: var(--base-size-24) 0;\n background-color: var(--borderColor-default);\n border: 0;\n}\n\n.markdown-body input {\n font: inherit;\n margin: 0;\n overflow: visible;\n font-family: inherit;\n font-size: inherit;\n line-height: inherit;\n}\n\n.markdown-body [type=button],\n.markdown-body [type=reset],\n.markdown-body [type=submit] {\n -webkit-appearance: button;\n appearance: button;\n}\n\n.markdown-body [type=checkbox],\n.markdown-body [type=radio] {\n box-sizing: border-box;\n padding: 0;\n}\n\n.markdown-body [type=number]::-webkit-inner-spin-button,\n.markdown-body [type=number]::-webkit-outer-spin-button {\n height: auto;\n}\n\n.markdown-body [type=search]::-webkit-search-cancel-button,\n.markdown-body [type=search]::-webkit-search-decoration {\n -webkit-appearance: none;\n appearance: none;\n}\n\n.markdown-body ::-webkit-input-placeholder {\n color: inherit;\n opacity: .54;\n}\n\n.markdown-body ::-webkit-file-upload-button {\n -webkit-appearance: button;\n appearance: button;\n font: inherit;\n}\n\n.markdown-body a:hover {\n text-decoration: underline;\n}\n\n.markdown-body ::placeholder {\n color: var(--fgColor-muted);\n opacity: 1;\n}\n\n.markdown-body hr::before {\n display: table;\n content: "";\n}\n\n.markdown-body hr::after {\n display: table;\n clear: both;\n content: "";\n}\n\n.markdown-body table {\n border-spacing: 0;\n border-collapse: collapse;\n display: block;\n width: max-content;\n max-width: 100%;\n overflow: auto;\n font-variant: tabular-nums;\n}\n\n.markdown-body td,\n.markdown-body th {\n padding: 0;\n}\n\n.markdown-body details summary {\n cursor: pointer;\n}\n\n.markdown-body a:focus,\n.markdown-body [role=button]:focus,\n.markdown-body input[type=radio]:focus,\n.markdown-body input[type=checkbox]:focus {\n outline: 2px solid var(--focus-outlineColor);\n outline-offset: -2px;\n box-shadow: none;\n}\n\n.markdown-body a:focus:not(:focus-visible),\n.markdown-body [role=button]:focus:not(:focus-visible),\n.markdown-body input[type=radio]:focus:not(:focus-visible),\n.markdown-body input[type=checkbox]:focus:not(:focus-visible) {\n outline: solid 1px rgba(0,0,0,0);\n}\n\n.markdown-body a:focus-visible,\n.markdown-body [role=button]:focus-visible,\n.markdown-body input[type=radio]:focus-visible,\n.markdown-body input[type=checkbox]:focus-visible {\n outline: 2px solid var(--focus-outlineColor);\n outline-offset: -2px;\n box-shadow: none;\n}\n\n.markdown-body a:not([class]):focus,\n.markdown-body a:not([class]):focus-visible,\n.markdown-body input[type=radio]:focus,\n.markdown-body input[type=radio]:focus-visible,\n.markdown-body input[type=checkbox]:focus,\n.markdown-body input[type=checkbox]:focus-visible {\n outline-offset: 0;\n}\n\n.markdown-body kbd {\n display: inline-block;\n padding: var(--base-size-4);\n font: 11px var(--fontStack-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace);\n line-height: 10px;\n color: var(--fgColor-default);\n vertical-align: middle;\n background-color: var(--bgColor-muted);\n border: solid 1px var(--borderColor-neutral-muted);\n border-bottom-color: var(--borderColor-neutral-muted);\n border-radius: 6px;\n box-shadow: inset 0 -1px 0 var(--borderColor-neutral-muted);\n}\n\n.markdown-body h1,\n.markdown-body h2,\n.markdown-body h3,\n.markdown-body h4,\n.markdown-body h5,\n.markdown-body h6 {\n margin-top: var(--base-size-24);\n margin-bottom: var(--base-size-16);\n font-weight: var(--base-text-weight-semibold, 600);\n line-height: 1.25;\n}\n\n.markdown-body h2 {\n font-weight: var(--base-text-weight-semibold, 600);\n padding-bottom: .3em;\n font-size: 1.5em;\n border-bottom: 1px solid var(--borderColor-muted);\n}\n\n.markdown-body h3 {\n font-weight: var(--base-text-weight-semibold, 600);\n font-size: 1.25em;\n}\n\n.markdown-body h4 {\n font-weight: var(--base-text-weight-semibold, 600);\n font-size: 1em;\n}\n\n.markdown-body h5 {\n font-weight: var(--base-text-weight-semibold, 600);\n font-size: .875em;\n}\n\n.markdown-body h6 {\n font-weight: var(--base-text-weight-semibold, 600);\n font-size: .85em;\n color: var(--fgColor-muted);\n}\n\n.markdown-body p {\n margin-top: 0;\n margin-bottom: 10px;\n}\n\n.markdown-body blockquote {\n margin: 0;\n padding: 0 1em;\n color: var(--fgColor-muted);\n border-left: .25em solid var(--borderColor-default);\n}\n\n.markdown-body ul,\n.markdown-body ol {\n margin-top: 0;\n margin-bottom: 0;\n padding-left: 2em;\n}\n\n.markdown-body ol ol,\n.markdown-body ul ol {\n list-style-type: lower-roman;\n}\n\n.markdown-body ul ul ol,\n.markdown-body ul ol ol,\n.markdown-body ol ul ol,\n.markdown-body ol ol ol {\n list-style-type: lower-alpha;\n}\n\n.markdown-body dd {\n margin-left: 0;\n}\n\n.markdown-body tt,\n.markdown-body code,\n.markdown-body samp {\n font-family: var(--fontStack-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace);\n font-size: 12px;\n}\n\n.markdown-body pre {\n margin-top: 0;\n margin-bottom: 0;\n font-family: var(--fontStack-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace);\n font-size: 12px;\n word-wrap: normal;\n}\n\n.markdown-body .octicon {\n display: inline-block;\n overflow: visible !important;\n vertical-align: text-bottom;\n fill: currentColor;\n}\n\n.markdown-body input::-webkit-outer-spin-button,\n.markdown-body input::-webkit-inner-spin-button {\n margin: 0;\n appearance: none;\n}\n\n.markdown-body .mr-2 {\n margin-right: var(--base-size-8, 8px) !important;\n}\n\n.markdown-body::before {\n display: table;\n content: "";\n}\n\n.markdown-body::after {\n display: table;\n clear: both;\n content: "";\n}\n\n.markdown-body>*:first-child {\n margin-top: 0 !important;\n}\n\n.markdown-body>*:last-child {\n margin-bottom: 0 !important;\n}\n\n.markdown-body a:not([href]) {\n color: inherit;\n text-decoration: none;\n}\n\n.markdown-body .absent {\n color: var(--fgColor-danger);\n}\n\n.markdown-body .anchor {\n float: left;\n padding-right: var(--base-size-4);\n margin-left: -20px;\n line-height: 1;\n}\n\n.markdown-body .anchor:focus {\n outline: none;\n}\n\n.markdown-body p,\n.markdown-body blockquote,\n.markdown-body ul,\n.markdown-body ol,\n.markdown-body dl,\n.markdown-body table,\n.markdown-body pre,\n.markdown-body details {\n margin-top: 0;\n margin-bottom: var(--base-size-16);\n}\n\n.markdown-body blockquote>:first-child {\n margin-top: 0;\n}\n\n.markdown-body blockquote>:last-child {\n margin-bottom: 0;\n}\n\n.markdown-body h1 .octicon-link,\n.markdown-body h2 .octicon-link,\n.markdown-body h3 .octicon-link,\n.markdown-body h4 .octicon-link,\n.markdown-body h5 .octicon-link,\n.markdown-body h6 .octicon-link {\n color: var(--fgColor-default);\n vertical-align: middle;\n visibility: hidden;\n}\n\n.markdown-body h1:hover .anchor,\n.markdown-body h2:hover .anchor,\n.markdown-body h3:hover .anchor,\n.markdown-body h4:hover .anchor,\n.markdown-body h5:hover .anchor,\n.markdown-body h6:hover .anchor {\n text-decoration: none;\n}\n\n.markdown-body h1:hover .anchor .octicon-link,\n.markdown-body h2:hover .anchor .octicon-link,\n.markdown-body h3:hover .anchor .octicon-link,\n.markdown-body h4:hover .anchor .octicon-link,\n.markdown-body h5:hover .anchor .octicon-link,\n.markdown-body h6:hover .anchor .octicon-link {\n visibility: visible;\n}\n\n.markdown-body h1 tt,\n.markdown-body h1 code,\n.markdown-body h2 tt,\n.markdown-body h2 code,\n.markdown-body h3 tt,\n.markdown-body h3 code,\n.markdown-body h4 tt,\n.markdown-body h4 code,\n.markdown-body h5 tt,\n.markdown-body h5 code,\n.markdown-body h6 tt,\n.markdown-body h6 code {\n padding: 0 .2em;\n font-size: inherit;\n}\n\n.markdown-body summary h1,\n.markdown-body summary h2,\n.markdown-body summary h3,\n.markdown-body summary h4,\n.markdown-body summary h5,\n.markdown-body summary h6 {\n display: inline-block;\n}\n\n.markdown-body summary h1 .anchor,\n.markdown-body summary h2 .anchor,\n.markdown-body summary h3 .anchor,\n.markdown-body summary h4 .anchor,\n.markdown-body summary h5 .anchor,\n.markdown-body summary h6 .anchor {\n margin-left: -40px;\n}\n\n.markdown-body summary h1,\n.markdown-body summary h2 {\n padding-bottom: 0;\n border-bottom: 0;\n}\n\n.markdown-body ul.no-list,\n.markdown-body ol.no-list {\n padding: 0;\n list-style-type: none;\n}\n\n.markdown-body ol[type="a s"] {\n list-style-type: lower-alpha;\n}\n\n.markdown-body ol[type="A s"] {\n list-style-type: upper-alpha;\n}\n\n.markdown-body ol[type="i s"] {\n list-style-type: lower-roman;\n}\n\n.markdown-body ol[type="I s"] {\n list-style-type: upper-roman;\n}\n\n.markdown-body ol[type="1"] {\n list-style-type: decimal;\n}\n\n.markdown-body div>ol:not([type]) {\n list-style-type: decimal;\n}\n\n.markdown-body ul ul,\n.markdown-body ul ol,\n.markdown-body ol ol,\n.markdown-body ol ul {\n margin-top: 0;\n margin-bottom: 0;\n}\n\n.markdown-body li>p {\n margin-top: var(--base-size-16);\n}\n\n.markdown-body li+li {\n margin-top: .25em;\n}\n\n.markdown-body dl {\n padding: 0;\n}\n\n.markdown-body dl dt {\n padding: 0;\n margin-top: var(--base-size-16);\n font-size: 1em;\n font-style: italic;\n font-weight: var(--base-text-weight-semibold, 600);\n}\n\n.markdown-body dl dd {\n padding: 0 var(--base-size-16);\n margin-bottom: var(--base-size-16);\n}\n\n.markdown-body table th {\n font-weight: var(--base-text-weight-semibold, 600);\n}\n\n.markdown-body table th,\n.markdown-body table td {\n padding: 6px 13px;\n border: 1px solid var(--borderColor-default);\n}\n\n.markdown-body table td>:last-child {\n margin-bottom: 0;\n}\n\n.markdown-body table tr {\n background-color: var(--bgColor-default);\n border-top: 1px solid var(--borderColor-muted);\n}\n\n.markdown-body table tr:nth-child(2n) {\n background-color: var(--bgColor-muted);\n}\n\n.markdown-body table img {\n background-color: rgba(0,0,0,0);\n}\n\n.markdown-body img[align=right] {\n padding-left: 20px;\n}\n\n.markdown-body img[align=left] {\n padding-right: 20px;\n}\n\n.markdown-body .emoji {\n max-width: none;\n vertical-align: text-top;\n background-color: rgba(0,0,0,0);\n}\n\n.markdown-body span.frame {\n display: block;\n overflow: hidden;\n}\n\n.markdown-body span.frame>span {\n display: block;\n float: left;\n width: auto;\n padding: 7px;\n margin: 13px 0 0;\n overflow: hidden;\n border: 1px solid var(--borderColor-default);\n}\n\n.markdown-body span.frame span img {\n display: block;\n float: left;\n}\n\n.markdown-body span.frame span span {\n display: block;\n padding: 5px 0 0;\n clear: both;\n color: var(--fgColor-default);\n}\n\n.markdown-body span.align-center {\n display: block;\n overflow: hidden;\n clear: both;\n}\n\n.markdown-body span.align-center>span {\n display: block;\n margin: 13px auto 0;\n overflow: hidden;\n text-align: center;\n}\n\n.markdown-body span.align-center span img {\n margin: 0 auto;\n text-align: center;\n}\n\n.markdown-body span.align-right {\n display: block;\n overflow: hidden;\n clear: both;\n}\n\n.markdown-body span.align-right>span {\n display: block;\n margin: 13px 0 0;\n overflow: hidden;\n text-align: right;\n}\n\n.markdown-body span.align-right span img {\n margin: 0;\n text-align: right;\n}\n\n.markdown-body span.float-left {\n display: block;\n float: left;\n margin-right: 13px;\n overflow: hidden;\n}\n\n.markdown-body span.float-left span {\n margin: 13px 0 0;\n}\n\n.markdown-body span.float-right {\n display: block;\n float: right;\n margin-left: 13px;\n overflow: hidden;\n}\n\n.markdown-body span.float-right>span {\n display: block;\n margin: 13px auto 0;\n overflow: hidden;\n text-align: right;\n}\n\n.markdown-body code,\n.markdown-body tt {\n padding: .2em .4em;\n margin: 0;\n font-size: 85%;\n white-space: break-spaces;\n background-color: var(--bgColor-neutral-muted);\n border-radius: 6px;\n}\n\n.markdown-body code br,\n.markdown-body tt br {\n display: none;\n}\n\n.markdown-body del code {\n text-decoration: inherit;\n}\n\n.markdown-body samp {\n font-size: 85%;\n}\n\n.markdown-body pre code {\n font-size: 100%;\n}\n\n.markdown-body pre>code {\n padding: 0;\n margin: 0;\n word-break: normal;\n white-space: pre;\n background: rgba(0,0,0,0);\n border: 0;\n}\n\n.markdown-body .highlight {\n margin-bottom: var(--base-size-16);\n}\n\n.markdown-body .highlight pre {\n margin-bottom: 0;\n word-break: normal;\n}\n\n.markdown-body .highlight pre,\n.markdown-body pre {\n padding: var(--base-size-16);\n overflow: auto;\n font-size: 85%;\n line-height: 1.45;\n color: var(--fgColor-default);\n background-color: var(--bgColor-muted);\n border-radius: 6px;\n}\n\n.markdown-body pre code,\n.markdown-body pre tt {\n display: inline;\n padding: 0;\n margin: 0;\n overflow: visible;\n line-height: inherit;\n word-wrap: normal;\n background-color: rgba(0,0,0,0);\n border: 0;\n}\n\n.markdown-body .csv-data td,\n.markdown-body .csv-data th {\n padding: 5px;\n overflow: hidden;\n font-size: 12px;\n line-height: 1;\n text-align: left;\n white-space: nowrap;\n}\n\n.markdown-body .csv-data .blob-num {\n padding: 10px var(--base-size-8) 9px;\n text-align: right;\n background: var(--bgColor-default);\n border: 0;\n}\n\n.markdown-body .csv-data tr {\n border-top: 0;\n}\n\n.markdown-body .csv-data th {\n font-weight: var(--base-text-weight-semibold, 600);\n background: var(--bgColor-muted);\n border-top: 0;\n}\n\n.markdown-body [data-footnote-ref]::before {\n content: "[";\n}\n\n.markdown-body [data-footnote-ref]::after {\n content: "]";\n}\n\n.markdown-body .footnotes {\n font-size: 12px;\n color: var(--fgColor-muted);\n border-top: 1px solid var(--borderColor-default);\n}\n\n.markdown-body .footnotes ol {\n padding-left: var(--base-size-16);\n}\n\n.markdown-body .footnotes ol ul {\n display: inline-block;\n padding-left: var(--base-size-16);\n margin-top: var(--base-size-16);\n}\n\n.markdown-body .footnotes li {\n position: relative;\n}\n\n.markdown-body .footnotes li:target::before {\n position: absolute;\n top: calc(var(--base-size-8)*-1);\n right: calc(var(--base-size-8)*-1);\n bottom: calc(var(--base-size-8)*-1);\n left: calc(var(--base-size-24)*-1);\n pointer-events: none;\n content: "";\n border: 2px solid var(--borderColor-accent-emphasis);\n border-radius: 6px;\n}\n\n.markdown-body .footnotes li:target {\n color: var(--fgColor-default);\n}\n\n.markdown-body .footnotes .data-footnote-backref g-emoji {\n font-family: monospace;\n}\n\n.markdown-body .pl-c {\n color: var(--color-prettylights-syntax-comment);\n}\n\n.markdown-body .pl-c1,\n.markdown-body .pl-s .pl-v {\n color: var(--color-prettylights-syntax-constant);\n}\n\n.markdown-body .pl-e,\n.markdown-body .pl-en {\n color: var(--color-prettylights-syntax-entity);\n}\n\n.markdown-body .pl-smi,\n.markdown-body .pl-s .pl-s1 {\n color: var(--color-prettylights-syntax-storage-modifier-import);\n}\n\n.markdown-body .pl-ent {\n color: var(--color-prettylights-syntax-entity-tag);\n}\n\n.markdown-body .pl-k {\n color: var(--color-prettylights-syntax-keyword);\n}\n\n.markdown-body .pl-s,\n.markdown-body .pl-pds,\n.markdown-body .pl-s .pl-pse .pl-s1,\n.markdown-body .pl-sr,\n.markdown-body .pl-sr .pl-cce,\n.markdown-body .pl-sr .pl-sre,\n.markdown-body .pl-sr .pl-sra {\n color: var(--color-prettylights-syntax-string);\n}\n\n.markdown-body .pl-v,\n.markdown-body .pl-smw {\n color: var(--color-prettylights-syntax-variable);\n}\n\n.markdown-body .pl-bu {\n color: var(--color-prettylights-syntax-brackethighlighter-unmatched);\n}\n\n.markdown-body .pl-ii {\n color: var(--color-prettylights-syntax-invalid-illegal-text);\n background-color: var(--color-prettylights-syntax-invalid-illegal-bg);\n}\n\n.markdown-body .pl-c2 {\n color: var(--color-prettylights-syntax-carriage-return-text);\n background-color: var(--color-prettylights-syntax-carriage-return-bg);\n}\n\n.markdown-body .pl-sr .pl-cce {\n font-weight: bold;\n color: var(--color-prettylights-syntax-string-regexp);\n}\n\n.markdown-body .pl-ml {\n color: var(--color-prettylights-syntax-markup-list);\n}\n\n.markdown-body .pl-mh,\n.markdown-body .pl-mh .pl-en,\n.markdown-body .pl-ms {\n font-weight: bold;\n color: var(--color-prettylights-syntax-markup-heading);\n}\n\n.markdown-body .pl-mi {\n font-style: italic;\n color: var(--color-prettylights-syntax-markup-italic);\n}\n\n.markdown-body .pl-mb {\n font-weight: bold;\n color: var(--color-prettylights-syntax-markup-bold);\n}\n\n.markdown-body .pl-md {\n color: var(--color-prettylights-syntax-markup-deleted-text);\n background-color: var(--color-prettylights-syntax-markup-deleted-bg);\n}\n\n.markdown-body .pl-mi1 {\n color: var(--color-prettylights-syntax-markup-inserted-text);\n background-color: var(--color-prettylights-syntax-markup-inserted-bg);\n}\n\n.markdown-body .pl-mc {\n color: var(--color-prettylights-syntax-markup-changed-text);\n background-color: var(--color-prettylights-syntax-markup-changed-bg);\n}\n\n.markdown-body .pl-mi2 {\n color: var(--color-prettylights-syntax-markup-ignored-text);\n background-color: var(--color-prettylights-syntax-markup-ignored-bg);\n}\n\n.markdown-body .pl-mdr {\n font-weight: bold;\n color: var(--color-prettylights-syntax-meta-diff-range);\n}\n\n.markdown-body .pl-ba {\n color: var(--color-prettylights-syntax-brackethighlighter-angle);\n}\n\n.markdown-body .pl-sg {\n color: var(--color-prettylights-syntax-sublimelinter-gutter-mark);\n}\n\n.markdown-body .pl-corl {\n text-decoration: underline;\n color: var(--color-prettylights-syntax-constant-other-reference-link);\n}\n\n.markdown-body [role=button]:focus:not(:focus-visible),\n.markdown-body [role=tabpanel][tabindex="0"]:focus:not(:focus-visible),\n.markdown-body button:focus:not(:focus-visible),\n.markdown-body summary:focus:not(:focus-visible),\n.markdown-body a:focus:not(:focus-visible) {\n outline: none;\n box-shadow: none;\n}\n\n.markdown-body [tabindex="0"]:focus:not(:focus-visible),\n.markdown-body details-dialog:focus:not(:focus-visible) {\n outline: none;\n}\n\n.markdown-body g-emoji {\n display: inline-block;\n min-width: 1ch;\n font-family: "Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";\n font-size: 1em;\n font-style: normal !important;\n font-weight: var(--base-text-weight-normal, 400);\n line-height: 1;\n vertical-align: -0.075em;\n}\n\n.markdown-body g-emoji img {\n width: 1em;\n height: 1em;\n}\n\n.markdown-body a:has(>p,>div,>pre,>blockquote) {\n display: block;\n}\n\n.markdown-body a:has(>p,>div,>pre,>blockquote):not(:has(.snippet-clipboard-content,>pre)) {\n width: fit-content;\n}\n\n.markdown-body a:has(>p,>div,>pre,>blockquote):has(.snippet-clipboard-content,>pre):focus-visible {\n outline: 2px solid var(--focus-outlineColor);\n outline-offset: 2px;\n}\n\n.markdown-body .task-list-item {\n list-style-type: none;\n}\n\n.markdown-body .task-list-item label {\n font-weight: var(--base-text-weight-normal, 400);\n}\n\n.markdown-body .task-list-item.enabled label {\n cursor: pointer;\n}\n\n.markdown-body .task-list-item+.task-list-item {\n margin-top: var(--base-size-4);\n}\n\n.markdown-body .task-list-item .handle {\n display: none;\n}\n\n.markdown-body .task-list-item-checkbox {\n margin: 0 .2em .25em -1.4em;\n vertical-align: middle;\n}\n\n.markdown-body ul:dir(rtl) .task-list-item-checkbox {\n margin: 0 -1.6em .25em .2em;\n}\n\n.markdown-body ol:dir(rtl) .task-list-item-checkbox {\n margin: 0 -1.6em .25em .2em;\n}\n\n.markdown-body .contains-task-list:hover .task-list-item-convert-container,\n.markdown-body .contains-task-list:focus-within .task-list-item-convert-container {\n display: block;\n width: auto;\n height: 24px;\n overflow: visible;\n clip-path: none;\n}\n\n.markdown-body ::-webkit-calendar-picker-indicator {\n filter: invert(50%);\n}\n\n.markdown-body .markdown-alert {\n padding: var(--base-size-8) var(--base-size-16);\n margin-bottom: var(--base-size-16);\n color: inherit;\n border-left: .25em solid var(--borderColor-default);\n}\n\n.markdown-body .markdown-alert>:first-child {\n margin-top: 0;\n}\n\n.markdown-body .markdown-alert>:last-child {\n margin-bottom: 0;\n}\n\n.markdown-body .markdown-alert .markdown-alert-title {\n display: flex;\n font-weight: var(--base-text-weight-medium, 500);\n align-items: center;\n line-height: 1;\n}\n\n.markdown-body .markdown-alert.markdown-alert-note {\n border-left-color: var(--borderColor-accent-emphasis);\n}\n\n.markdown-body .markdown-alert.markdown-alert-note .markdown-alert-title {\n color: var(--fgColor-accent);\n}\n\n.markdown-body .markdown-alert.markdown-alert-important {\n border-left-color: var(--borderColor-done-emphasis);\n}\n\n.markdown-body .markdown-alert.markdown-alert-important .markdown-alert-title {\n color: var(--fgColor-done);\n}\n\n.markdown-body .markdown-alert.markdown-alert-warning {\n border-left-color: var(--borderColor-attention-emphasis);\n}\n\n.markdown-body .markdown-alert.markdown-alert-warning .markdown-alert-title {\n color: var(--fgColor-attention);\n}\n\n.markdown-body .markdown-alert.markdown-alert-tip {\n border-left-color: var(--borderColor-success-emphasis);\n}\n\n.markdown-body .markdown-alert.markdown-alert-tip .markdown-alert-title {\n color: var(--fgColor-success);\n}\n\n.markdown-body .markdown-alert.markdown-alert-caution {\n border-left-color: var(--borderColor-danger-emphasis);\n}\n\n.markdown-body .markdown-alert.markdown-alert-caution .markdown-alert-title {\n color: var(--fgColor-danger);\n}\n\n.markdown-body>*:first-child>.heading-element:first-child {\n margin-top: 0 !important;\n}\n\n.markdown-body .highlight pre:has(+.zeroclipboard-container) {\n min-height: 52px;\n}\n\n`,""]);const c=m},3775(n,o,r){var t=r(85072),a=r.n(t),e=r(97825),d=r.n(e),l=r(77659),i=r.n(l),s=r(55056),m=r.n(s),b=r(10540),c=r.n(b),y=r(41113),p=r.n(y),k=r(62718),g={};g.styleTagTransform=p(),g.setAttributes=m(),g.insert=i().bind(null,"head"),g.domAPI=d(),g.insertStyleElement=c();a()(k.A,g),k.A&&k.A.locals&&k.A.locals}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[4785],{72635(e,t,s){s.d(t,{Ay:()=>J});const i=e=>"string"==typeof e,o=()=>{let e,t;const s=new Promise((s,i)=>{e=s,t=i});return s.resolve=e,s.reject=t,s},n=e=>null==e?"":String(e),a=/###/g,r=e=>e&&e.includes("###")?e.replace(a,"."):e,l=e=>!e||i(e),c=(e,t,s)=>{const o=i(t)?t.split("."):t;let n=0;for(;n<o.length-1;){if(l(e))return{};const t=r(o[n]);!e[t]&&s&&(e[t]=new s),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++n}return l(e)?{}:{obj:e,k:r(o[n])}},h=(e,t,s)=>{const{obj:i,k:o}=c(e,t,Object);if(void 0!==i||1===t.length)return void(i[o]=s);let n=t[t.length-1],a=t.slice(0,t.length-1),r=c(e,a,Object);for(;void 0===r.obj&&a.length;)n=`${a[a.length-1]}.${n}`,a=a.slice(0,a.length-1),r=c(e,a,Object),r?.obj&&void 0!==r.obj[`${r.k}.${n}`]&&(r.obj=void 0);r.obj[`${r.k}.${n}`]=s},u=(e,t)=>{const{obj:s,k:i}=c(e,t);if(s&&Object.prototype.hasOwnProperty.call(s,i))return s[i]},p=(e,t,s)=>{for(const o in t)"__proto__"!==o&&"constructor"!==o&&(o in e?i(e[o])||e[o]instanceof String||i(t[o])||t[o]instanceof String?s&&(e[o]=t[o]):p(e[o],t[o],s):e[o]=t[o]);return e},g=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),d={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},f=e=>i(e)?e.replace(/[&<>"'\/]/g,e=>d[e]):e;const m=[" ",",","?","!",";"],y=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const s=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,s),this.regExpQueue.push(e),s}}(20),v=(e,t,s=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}const i=t.split(s);let o=e;for(let e=0;e<i.length;){if(!o||"object"!=typeof o)return;let t,n="";for(let a=e;a<i.length;++a)if(a!==e&&(n+=s),n+=i[a],t=o[n],void 0!==t){if(["string","number","boolean"].includes(typeof t)&&a<i.length-1)continue;e+=a-e+1;break}o=t}return o},b=e=>e?.replace(/_/g,"-"),x={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class k{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||x,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,s,o){return o&&!this.debug?null:(e=e.map(e=>i(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g," "):e),i(e[0])&&(e[0]=`${s}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new k(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new k(this.logger,e)}}var S=new k;class L{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const s=this.observers[e].get(t)||0;this.observers[e].set(t,s+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}once(e,t){const s=(...i)=>{t(...i),this.off(e,s)};return this.on(e,s),this}emit(e,...t){if(this.observers[e]){Array.from(this.observers[e].entries()).forEach(([e,s])=>{for(let i=0;i<s;i++)e(...t)})}if(this.observers["*"]){Array.from(this.observers["*"].entries()).forEach(([s,i])=>{for(let o=0;o<i;o++)s(e,...t)})}}}class $ extends L{constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,s,o={}){const n=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,a=void 0!==o.ignoreJSONStructure?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let r;e.includes(".")?r=e.split("."):(r=[e,t],s&&(Array.isArray(s)?r.push(...s):i(s)&&n?r.push(...s.split(n)):r.push(s)));const l=u(this.data,r);return l||t||s||!e.includes(".")||(e=r[0],t=r[1],s=r.slice(2).join(".")),!l&&a&&i(s)?v(this.data?.[e]?.[t],s,n):l}addResource(e,t,s,i,o={silent:!1}){const n=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator;let a=[e,t];s&&(a=a.concat(n?s.split(n):s)),e.includes(".")&&(a=e.split("."),i=t,t=a[1]),this.addNamespaces(t),h(this.data,a,i),o.silent||this.emit("added",e,t,s,i)}addResources(e,t,s,o={silent:!1}){for(const o in s)(i(s[o])||Array.isArray(s[o]))&&this.addResource(e,t,o,s[o],{silent:!0});o.silent||this.emit("added",e,t,s)}addResourceBundle(e,t,s,i,o,n={silent:!1,skipCopy:!1}){let a=[e,t];e.includes(".")&&(a=e.split("."),i=s,s=t,t=a[1]),this.addNamespaces(t);let r=u(this.data,a)||{};n.skipCopy||(s=JSON.parse(JSON.stringify(s))),i?p(r,s,o):r={...r,...s},h(this.data,a,r),n.silent||this.emit("added",e,t,s)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var w={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,s,i,o){return e.forEach(e=>{t=this.processors[e]?.process(t,s,i,o)??t}),t}};const R=Symbol("i18next/PATH_KEY");function O(e,t){const{[R]:s}=e(function(){const e=[],t=Object.create(null);let s;return t.get=(i,o)=>(s?.revoke?.(),o===R?e:(e.push(o),s=Proxy.revocable(i,t),s.proxy)),Proxy.revocable(Object.create(null),t).proxy}()),i=t?.keySeparator??".",o=t?.nsSeparator??":",n="strict"===t?.enableSelector;if(s.length>1&&o){const e=t?.ns,a=n?Array.isArray(e)?e:e?[e]:null:Array.isArray(e)?e:null;if(a){if((n?a:a.length>1?a.slice(1):[]).includes(s[0]))return`${s[0]}${o}${s.slice(1).join(i)}`}}return s.join(i)}const C=e=>!i(e)&&"boolean"!=typeof e&&"number"!=typeof e;class P extends L{constructor(e,t={}){super(),((e,t,s)=>{e.forEach(e=>{t[e]&&(s[e]=t[e])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=S.create("translator"),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){const s={...t};if(null==e)return!1;const i=this.resolve(e,s);if(void 0===i?.res)return!1;const o=C(i.res);return!1!==s.returnObjects||!o}extractFromKey(e,t){let s=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===s&&(s=":");const o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let n=t.ns||this.options.defaultNS||[];const a=s&&e.includes(s),r=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,s)=>{t=t||"",s=s||"";const i=m.filter(e=>!t.includes(e)&&!s.includes(e));if(0===i.length)return!0;const o=y.getRegExp(`(${i.map(e=>"?"===e?"\\?":e).join("|")})`);let n=!o.test(e);if(!n){const t=e.indexOf(s);t>0&&!o.test(e.substring(0,t))&&(n=!0)}return n})(e,s,o));if(a&&!r){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:i(n)?[n]:n};const a=e.split(s);(s!==o||s===o&&this.options.ns.includes(a[0]))&&(n=a.shift()),e=a.join(o)}return{key:e,namespaces:i(n)?[n]:n}}translate(e,t,s){let o="object"==typeof t?{...t}:t;if("object"!=typeof o&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof o&&(o={...o}),o||(o={}),null==e)return"";"function"==typeof e&&(e=O(e,{...this.options,...o})),Array.isArray(e)||(e=[String(e)]),e=e.map(e=>"function"==typeof e?O(e,{...this.options,...o}):String(e));const n=void 0!==o.returnDetails?o.returnDetails:this.options.returnDetails,a=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,{key:r,namespaces:l}=this.extractFromKey(e[e.length-1],o),c=l[l.length-1];let h=void 0!==o.nsSeparator?o.nsSeparator:this.options.nsSeparator;void 0===h&&(h=":");const u=o.lng||this.language,p=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if("cimode"===u?.toLowerCase())return p?n?{res:`${c}${h}${r}`,usedKey:r,exactUsedKey:r,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(o)}:`${c}${h}${r}`:n?{res:r,usedKey:r,exactUsedKey:r,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(o)}:r;const g=this.resolve(e,o);let d=g?.res;const f=g?.usedKey||r,m=g?.exactUsedKey||r,y=void 0!==o.joinArrays?o.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,b=void 0!==o.count&&!i(o.count),x=P.hasDefaultValue(o),k=b?this.pluralResolver.getSuffix(u,o.count,o):"",S=o.ordinal&&b?this.pluralResolver.getSuffix(u,o.count,{ordinal:!1}):"",L=b&&!o.ordinal&&0===o.count,$=L&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${k}`]||o[`defaultValue${S}`]||o.defaultValue;let w=d;v&&!d&&x&&(w=$);const R=C(w),N=Object.prototype.toString.apply(w);if(!(v&&w&&R)||["[object Number]","[object Function]","[object RegExp]"].includes(N)||i(y)&&Array.isArray(w))if(v&&i(y)&&Array.isArray(d))d=d.join(y),d&&(d=this.extendTranslation(d,e,o,s));else{let t=!1,i=!1;!this.isValidLookup(d)&&x&&(t=!0,d=$),this.isValidLookup(d)||(i=!0,d=r);const n=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&i?void 0:d,l=x&&$!==d&&this.options.updateMissing;if(i||t||l){if(this.logger.log(l?"updateKey":"missingKey",u,c,b&&!l?`${r}${this.pluralResolver.getSuffix(u,o.count,o)}`:r,l?$:d),a){const e=this.resolve(r,{...o,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let s=0;s<t.length;s++)e.push(t[s]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(o.lng||this.language):e.push(o.lng||this.language);const s=(e,t,s)=>{const i=x&&s!==d?s:n;this.options.missingKeyHandler?this.options.missingKeyHandler(e,c,t,i,l,o):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,c,t,i,l,o),this.emit("missingKey",e,c,t,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{const t=this.pluralResolver.getSuffixes(e,o);L&&o[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{s([e],r+t,o[`defaultValue${t}`]||$)})}):s(e,r,$))}d=this.extendTranslation(d,e,o,g,s),i&&d===r&&this.options.appendNamespaceToMissingKey&&(d=`${c}${h}${r}`),(i||t)&&this.options.parseMissingKeyHandler&&(d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}${h}${r}`:r,t?d:void 0,o))}else{if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,w,{...o,ns:l}):`key '${r} (${this.language})' returned an object instead of string.`;return n?(g.res=e,g.usedParams=this.getUsedParamsDetails(o),g):e}if(a){const e=Array.isArray(w),t=e?[]:{},s=e?m:f;for(const e in w)if(Object.prototype.hasOwnProperty.call(w,e)){const i=`${s}${a}${e}`;t[e]=x&&!d?this.translate(i,{...o,defaultValue:C($)?$[e]:void 0,joinArrays:!1,ns:l}):this.translate(i,{...o,joinArrays:!1,ns:l}),t[e]===i&&(t[e]=w[e])}d=t}}return n?(g.res=d,g.usedParams=this.getUsedParamsDetails(o),g):d}extendTranslation(e,t,s,o,n){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});const a=i(e)&&(void 0!==s?.interpolation?.skipOnVariables?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let r;if(a){const t=e.match(this.interpolator.nestingRegexp);r=t&&t.length}let l=s.replace&&!i(s.replace)?s.replace:s;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,s.lng||this.language||o.usedLng,s),a){const t=e.match(this.interpolator.nestingRegexp);r<(t&&t.length)&&(s.nest=!1)}!s.lng&&o&&o.res&&(s.lng=this.language||o.usedLng),!1!==s.nest&&(e=this.interpolator.nest(e,(...e)=>n?.[0]!==e[0]||s.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),s)),s.interpolation&&this.interpolator.reset()}const a=s.postProcess||this.options.postProcess,r=i(a)?[a]:a;return null!=e&&r?.length&&!1!==s.applyPostProcessor&&(e=w.handle(r,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(s)},...s}:s,this)),e}resolve(e,t={}){let s,o,n,a,r;return i(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>"function"==typeof e?O(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(s))return;const l=this.extractFromKey(e,t),c=l.key;o=c;let h=l.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));const u=void 0!==t.count&&!i(t.count),p=u&&!t.ordinal&&0===t.count,g=void 0!==t.context&&(i(t.context)||"number"==typeof t.context)&&""!==t.context,d=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);h.forEach(e=>{this.isValidLookup(s)||(r=e,this.checkedLoadedFor[`${d[0]}-${e}`]||!this.utils?.hasLoadedNamespace||this.utils?.hasLoadedNamespace(r)||(this.checkedLoadedFor[`${d[0]}-${e}`]=!0,this.logger.warn(`key "${o}" for languages "${d.join(", ")}" won't get resolved as namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),d.forEach(i=>{if(this.isValidLookup(s))return;a=i;const o=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,i,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(i,t.count,t));const s=`${this.options.pluralSeparator}zero`,n=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.startsWith(n)&&o.push(c+e.replace(n,this.options.pluralSeparator)),o.push(c+e),p&&o.push(c+s)),g){const i=`${c}${this.options.contextSeparator||"_"}${t.context}`;o.push(i),u&&(t.ordinal&&e.startsWith(n)&&o.push(i+e.replace(n,this.options.pluralSeparator)),o.push(i+e),p&&o.push(i+s))}}let r;for(;r=o.pop();)this.isValidLookup(s)||(n=r,s=this.getResource(i,e,r,t))}))})}),{res:s,usedKey:o,exactUsedKey:n,usedLng:a,usedNS:r}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,s,i={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,s,i):this.resourceStore.getResource(e,t,s,i)}getUsedParamsDetails(e={}){const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],s=e.replace&&!i(e.replace);let o=s?e.replace:e;if(s&&void 0!==e.count&&(o.count=e.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!s){o={...o};for(const e of t)delete o[e]}return o}static hasDefaultValue(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith("defaultValue")&&void 0!==e[t])return!0;return!1}}class N{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=S.create("languageUtils")}getScriptPartFromCode(e){if(!(e=b(e))||!e.includes("-"))return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=b(e))||!e.includes("-"))return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(i(e)&&e.includes("-")){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;const s=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(s)||(t=s)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;const s=this.getScriptPartFromCode(e);if(this.isSupportedCode(s))return t=s;const i=this.getLanguagePartFromCode(e);if(this.isSupportedCode(i))return t=i;t=this.options.supportedLngs.find(e=>e===i||!(!e.includes("-")&&!i.includes("-"))&&(!(!e.includes("-")||i.includes("-")||e.slice(0,e.indexOf("-"))!==i)||!!(e.startsWith(i)&&i.length>1)))}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),i(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let s=e[t];return s||(s=e[this.getScriptPartFromCode(t)]),s||(s=e[this.formatLanguageCode(t)]),s||(s=e[this.getLanguagePartFromCode(t)]),s||(s=e.default),s||[]}toResolveHierarchy(e,t){const s=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),o=[],n=e=>{e&&(this.isSupportedCode(e)?o.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return i(e)&&(e.includes("-")||e.includes("_"))?("languageOnly"!==this.options.load&&n(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&n(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&n(this.getLanguagePartFromCode(e))):i(e)&&n(this.formatLanguageCode(e)),s.forEach(e=>{o.includes(e)||n(this.formatLanguageCode(e))}),o}}const j={zero:0,one:1,two:2,few:3,many:4,other:5},E={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class F{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=S.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){const s=b("dev"===e?"en":e),i=t.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:s,type:i});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let n;try{n=new Intl.PluralRules(s,{type:i})}catch(s){if("undefined"==typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),E;if(!e.match(/-|_/))return E;const i=this.languageUtils.getLanguagePartFromCode(e);n=this.getRule(i,t)}return this.pluralRulesCache[o]=n,n}needsPlural(e,t={}){let s=this.getRule(e,t);return s||(s=this.getRule("dev",t)),s?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,s={}){return this.getSuffixes(e,s).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let s=this.getRule(e,t);return s||(s=this.getRule("dev",t)),s?s.resolvedOptions().pluralCategories.sort((e,t)=>j[e]-j[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,s={}){const i=this.getRule(e,s);return i?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${i.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,s))}}const V=(e,t,s,o=".",n=!0)=>{let a=((e,t,s)=>{const i=u(e,s);return void 0!==i?i:u(t,s)})(e,t,s);return!a&&n&&i(s)&&(a=v(e,s,o),void 0===a&&(a=v(t,s,o))),a},T=e=>e.replace(/\$/g,"$$$$");class I{constructor(e={}){this.logger=S.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:s,useRawValueToEscape:i,prefix:o,prefixEscaped:n,suffix:a,suffixEscaped:r,formatSeparator:l,unescapeSuffix:c,unescapePrefix:h,nestingPrefix:u,nestingPrefixEscaped:p,nestingSuffix:d,nestingSuffixEscaped:m,nestingOptionsSeparator:y,maxReplaces:v,alwaysFormat:b}=e.interpolation;this.escape=void 0!==t?t:f,this.escapeValue=void 0===s||s,this.useRawValueToEscape=void 0!==i&&i,this.prefix=o?g(o):n||"{{",this.suffix=a?g(a):r||"}}",this.formatSeparator=l||",",this.unescapePrefix=c?"":h?g(h):"-",this.unescapeSuffix=this.unescapePrefix?"":c?g(c):"",this.nestingPrefix=u?g(u):p||g("$t("),this.nestingSuffix=d?g(d):m||g(")"),this.nestingOptionsSeparator=y||",",this.maxReplaces=v||1e3,this.alwaysFormat=void 0!==b&&b,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,s,o){let a,r,l;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},h=e=>{if(!e.includes(this.formatSeparator)){const i=V(t,c,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,s,{...o,...t,interpolationkey:e}):i}const i=e.split(this.formatSeparator),n=i.shift().trim(),a=i.join(this.formatSeparator).trim();return this.format(V(t,c,n,this.options.keySeparator,this.options.ignoreJSONStructure),a,s,{...o,...t,interpolationkey:n})};this.resetRegExp(),!this.escapeValue&&"string"==typeof e&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");const u=o?.missingInterpolationHandler||this.options.missingInterpolationHandler,p=void 0!==o?.interpolation?.skipOnVariables?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>T(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?T(this.escape(e)):T(e)}].forEach(t=>{for(l=0;a=t.regex.exec(e);){const s=a[1].trim();if(r=h(s),void 0===r)if("function"==typeof u){const t=u(e,a,o);r=i(t)?t:""}else if(o&&Object.prototype.hasOwnProperty.call(o,s))r="";else{if(p){r=a[0];continue}this.logger.warn(`missed to pass in variable ${s} for interpolating ${e}`),r=""}else i(r)||this.useRawValueToEscape||(r=n(r));const c=t.safeValue(r);if(e=e.replace(a[0],c),p?(t.regex.lastIndex+=r.length,t.regex.lastIndex-=a[0].length):t.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),e}nest(e,t,s={}){let o,a,r;const l=(e,t)=>{const s=this.nestingOptionsSeparator;if(!e.includes(s))return e;const i=e.split(new RegExp(`${g(s)}[ ]*{`));let o=`{${i[1]}`;e=i[0],o=this.interpolate(o,r);const n=o.match(/'/g),a=o.match(/"/g);((n?.length??0)%2==0&&!a||(a?.length??0)%2!=0)&&(o=o.replace(/'/g,'"'));try{r=JSON.parse(o),t&&(r={...t,...r})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${s}${o}`}return r.defaultValue&&r.defaultValue.includes(this.prefix)&&delete r.defaultValue,e};for(;o=this.nestingRegexp.exec(e);){let c=[];r={...s},r=r.replace&&!i(r.replace)?r.replace:r,r.applyPostProcessor=!1,delete r.defaultValue;const h=/{.*}/.test(o[1])?o[1].lastIndexOf("}")+1:o[1].indexOf(this.formatSeparator);if(-1!==h&&(c=o[1].slice(h).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),o[1]=o[1].slice(0,h)),a=t(l.call(this,o[1].trim(),r),r),a&&o[0]===e&&!i(a))return a;i(a)||(a=n(a)),a||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${e}`),a=""),c.length&&(a=c.reduce((e,t)=>this.format(e,t,s.lng,{...s,interpolationkey:o[1].trim()}),a.trim())),e=e.replace(o[0],a),this.regexp.lastIndex=0}return e}}const D=e=>{const t={};return(s,i,o)=>{let n=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(n={...n,[o.interpolationkey]:void 0});const a=i+JSON.stringify(n);let r=t[a];return r||(r=e(b(i),o),t[a]=r),r(s)}},A=e=>(t,s,i)=>e(b(s),i)(t);class K{constructor(e={}){this.logger=S.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";const s=t.cacheInBuiltFormats?D:A;this.formats={number:s((e,t)=>{const s=new Intl.NumberFormat(e,{...t});return e=>s.format(e)}),currency:s((e,t)=>{const s=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>s.format(e)}),datetime:s((e,t)=>{const s=new Intl.DateTimeFormat(e,{...t});return e=>s.format(e)}),relativetime:s((e,t)=>{const s=new Intl.RelativeTimeFormat(e,{...t});return e=>s.format(e,t.range||"day")}),list:s((e,t)=>{const s=new Intl.ListFormat(e,{...t});return e=>s.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=D(t)}format(e,t,s,i={}){if(!t)return e;if(null==e)return e;const o=t.split(this.formatSeparator),n=[];for(let e=0;e<o.length;e++){let t=o[e];for(;t.indexOf("(")>-1&&!t.includes(")")&&e+1<o.length;)t=`${t}${this.formatSeparator}${o[++e]}`;n.push(t)}return n.reduce((e,t)=>{const{formatName:o,formatOptions:n}=(e=>{let t=e.toLowerCase().trim();const s={};if(e.includes("(")){const i=e.split("(");t=i[0].toLowerCase().trim();const o=i[1].slice(0,-1);"currency"!==t||o.includes(":")?"relativetime"!==t||o.includes(":")?o.split(";").forEach(e=>{if(e){const[t,...i]=e.split(":"),o=i.join(":").trim().replace(/^'+|'+$/g,""),n=t.trim();s[n]||(s[n]=o),"false"===o&&(s[n]=!1),"true"===o&&(s[n]=!0),isNaN(o)||(s[n]=parseInt(o,10))}}):s.range||(s.range=o.trim()):s.currency||(s.currency=o.trim())}return{formatName:t,formatOptions:s}})(t);if(this.formats[o]){let t=e;try{const a=i?.formatParams?.[i.interpolationkey]||{},r=a.locale||a.lng||i.locale||i.lng||s;t=this.formats[o](e,r,{...n,...i,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${o}`),e},e)}}class U extends L{constructor(e,t,s,i={}){super(),this.backend=e,this.store=t,this.services=s,this.languageUtils=s.languageUtils,this.options=i,this.logger=S.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(s,i.backend,i)}queueLoad(e,t,s,i){const o={},n={},a={},r={};return e.forEach(e=>{let i=!0;t.forEach(t=>{const a=`${e}|${t}`;!s.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===n[a]&&(n[a]=!0):(this.state[a]=1,i=!1,void 0===n[a]&&(n[a]=!0),void 0===o[a]&&(o[a]=!0),void 0===r[t]&&(r[t]=!0)))}),i||(a[e]=!0)}),(Object.keys(o).length||Object.keys(n).length)&&this.queue.push({pending:n,pendingCount:Object.keys(n).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(n),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(r)}}loaded(e,t,s){const i=e.split("|"),o=i[0],n=i[1];t&&this.emit("failedLoading",o,n,t),!t&&s&&this.store.addResourceBundle(o,n,s,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&s&&(this.state[e]=0);const a={};this.queue.forEach(s=>{((e,t,s)=>{const{obj:i,k:o}=c(e,t,Object);i[o]=i[o]||[],i[o].push(s)})(s.loaded,[o],n),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(s,e),t&&s.errors.push(t),0!==s.pendingCount||s.done||(Object.keys(s.loaded).forEach(e=>{a[e]||(a[e]={});const t=s.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),s.done=!0,s.errors.length?s.callback(s.errors):s.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,s,i=0,o=this.retryTimeout,n){if(!e.length)return n(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:s,tried:i,wait:o,callback:n});this.readingCalls++;const a=(a,r)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&r&&i<this.maxRetries?setTimeout(()=>{this.read(e,t,s,i+1,2*o,n)},o):n(a,r)},r=this.backend[s].bind(this.backend);if(2!==r.length)return r(e,t,a);try{const s=r(e,t);s&&"function"==typeof s.then?s.then(e=>a(null,e)).catch(a):a(null,s)}catch(e){a(e)}}prepareLoading(e,t,s={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();i(e)&&(e=this.languageUtils.toResolveHierarchy(e)),i(t)&&(t=[t]);const n=this.queueLoad(e,t,s,o);if(!n.toLoad.length)return n.pending.length||o(),null;n.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,s){this.prepareLoading(e,t,{},s)}reload(e,t,s){this.prepareLoading(e,t,{reload:!0},s)}loadOne(e,t=""){const s=e.split("|"),i=s[0],o=s[1];this.read(i,o,"read",void 0,void 0,(s,n)=>{s&&this.logger.warn(`${t}loading namespace ${o} for language ${i} failed`,s),!s&&n&&this.logger.log(`${t}loaded namespace ${o} for language ${i}`,n),this.loaded(e,s,n)})}saveMissing(e,t,s,i,o,n={},a=()=>{}){if(!this.services?.utils?.hasLoadedNamespace||this.services?.utils?.hasLoadedNamespace(t)){if(null!=s&&""!==s){if(this.backend?.create){const r={...n,isUpdate:o},l=this.backend.create.bind(this.backend);if(l.length<6)try{let o;o=5===l.length?l(e,t,s,i,r):l(e,t,s,i),o&&"function"==typeof o.then?o.then(e=>a(null,e)).catch(a):a(null,o)}catch(e){a(e)}else l(e,t,s,i,a,r)}e&&e[0]&&this.store.addResource(e[0],t,s,i)}}else this.logger.warn(`did not save key "${s}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")}}const M=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),i(e[1])&&(t.defaultValue=e[1]),i(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const s=e[3]||e[2];Object.keys(s).forEach(e=>{t[e]=s[e]})}return t},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),H=e=>(i(e.ns)&&(e.ns=[e.ns]),i(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),i(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),B=()=>{};class z extends L{constructor(e={},t){var s;if(super(),this.options=H(e),this.services={},this.logger=S,this.modules={external:[]},s=this,Object.getOwnPropertyNames(Object.getPrototypeOf(s)).forEach(e=>{"function"==typeof s[e]&&(s[e]=s[e].bind(s))}),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(i(e.ns)?e.defaultNS=e.ns:e.ns.includes("translation")||(e.defaultNS=e.ns[0]));const s=M();this.options={...s,...this.options,...H(e)},this.options.interpolation={...s.interpolation,...this.options.interpolation},void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=s.overloadTranslationOptionHandler);const n=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?S.init(n(this.modules.logger),this.options):S.init(null,this.options),e=this.modules.formatter?this.modules.formatter:K;const t=new N(this.options);this.store=new $(this.options.resources,this.options);const s=this.services;s.logger=S,s.resourceStore=this.store,s.languageUtils=t,s.pluralResolver=new F(t,{prepend:this.options.pluralSeparator}),e&&(s.formatter=n(e),s.formatter.init&&s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new I(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new U(n(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(s.languageDetector=n(this.modules.languageDetector),s.languageDetector.init&&s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=n(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new P(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=B),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...t)=>this.store[e](...t)});["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});const a=o(),r=()=>{const e=(e,s)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(s),t(e,s)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?r():setTimeout(r,0),a}loadResources(e,t=B){let s=t;const o=i(e)?e:this.language;if("function"==typeof e&&(s=e),!this.options.resources||this.options.partialBundledLanguages){if("cimode"===o?.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return s();const e=[],t=t=>{if(!t)return;if("cimode"===t)return;this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&(e.includes(t)||e.push(t))})};if(o)t(o);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e))}this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),s(e)})}else s(null)}reloadResources(e,t,s){const i=o();return"function"==typeof e&&(s=e,e=void 0),"function"==typeof t&&(s=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),s||(s=B),this.services.backendConnector.reload(e,t,e=>{i.resolve(),s(e)}),i}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&w.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!["cimode","dev"].includes(e)){for(let e=0;e<this.languages.length;e++){const t=this.languages[e];if(!["cimode","dev"].includes(t)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}this.resolvedLanguage||this.languages.includes(e)||!this.store.hasLanguageSomeTranslations(e)||(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;const s=o();this.emit("languageChanging",e);const n=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},a=(i,o)=>{o?this.isLanguageChangingTo===e&&(n(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,s.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},r=t=>{e||t||!this.services.languageDetector||(t=[]);const s=i(t)?t:t&&t[0],o=this.store.hasLanguageSomeTranslations(s)?s:this.services.languageUtils.getBestMatchFromCodes(i(t)?[t]:t);o&&(this.language||n(o),this.translator.language||this.translator.changeLanguage(o),this.services.languageDetector?.cacheUserLanguage?.(o)),this.loadResources(o,e=>{a(e,o)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(r):this.services.languageDetector.detect(r):r(e):r(this.services.languageDetector.detect()),s}getFixedT(e,t,s,o){const n=o?.scopeNs,a=(e,t,...i)=>{let o;o="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(i)):{...t},o.lng=o.lng||a.lng,o.lngs=o.lngs||a.lngs;const r=void 0!==o.ns&&null!==o.ns;o.ns=o.ns||a.ns,""!==o.keyPrefix&&(o.keyPrefix=o.keyPrefix||s||a.keyPrefix);const l={...this.options,...o};Array.isArray(n)&&!r&&(l.ns=n),"function"==typeof o.keyPrefix&&(o.keyPrefix=O(o.keyPrefix,l));const c=this.options.keySeparator||".";let h;return o.keyPrefix&&Array.isArray(e)?h=e.map(e=>("function"==typeof e&&(e=O(e,l)),`${o.keyPrefix}${c}${e}`)):("function"==typeof e&&(e=O(e,l)),h=o.keyPrefix?`${o.keyPrefix}${c}${e}`:e),this.t(h,o)};return i(e)?a.lng=e:a.lngs=e,a.ns=t,a.keyPrefix=s,a}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const s=t.lng||this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===s.toLowerCase())return!0;const n=(e,t)=>{const s=this.services.backendConnector.state[`${e}|${t}`];return-1===s||0===s||2===s};if(t.precheck){const e=t.precheck(this,n);if(void 0!==e)return e}return!!this.hasResourceBundle(s,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!n(s,e)||i&&!n(o,e)))}loadNamespaces(e,t){const s=o();return this.options.ns?(i(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{s.resolve(),t&&t(e)}),s):(t&&t(),Promise.resolve())}loadLanguages(e,t){const s=o();i(e)&&(e=[e]);const n=this.options.preload||[],a=e.filter(e=>!n.includes(e)&&this.services.languageUtils.isSupportedCode(e));return a.length?(this.options.preload=n.concat(a),this.loadResources(e=>{s.resolve(),t&&t(e)}),s):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{const t=new Intl.Locale(e);if(t&&t.getTextInfo){const e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}const t=this.services?.languageUtils||new N(M());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].includes(t.getLanguagePartFromCode(e))||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){const s=new z(e,t);return s.createInstance=z.createInstance,s}cloneInstance(e={},t=B){const s=e.forkResourceStore;s&&delete e.forkResourceStore;const i={...this.options,...e,isClone:!0},o=new z(i);void 0===e.debug&&void 0===e.prefix||(o.logger=o.logger.clone(e));if(["store","services","language"].forEach(e=>{o[e]=this[e]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},s){const e=Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((s,i)=>(s[i]={...e[t][i]},s),e[t]),e),{});o.store=new $(e,i),o.services.resourceStore=o.store}if(e.interpolation){const t={...M().interpolation,...this.options.interpolation,...e.interpolation},s={...i,interpolation:t};o.services.interpolator=new I(s)}return o.translator=new P(o.services,i),o.translator.on("*",(e,...t)=>{o.emit(e,...t)}),o.init(i,t),o.translator.options=i,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const J=z.createInstance();J.createInstance,J.dir,J.init,J.loadResources,J.reloadResources,J.use,J.changeLanguage,J.getFixedT,J.t,J.exists,J.setDefaultNamespace,J.hasLoadedNamespace,J.loadNamespaces,J.loadLanguages}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see npm.image-blob-reduce.973825a3b7c5a1605a78.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[1652],{77923(t,e,r){r.d(e,{default:()=>g});function n(t,e){var r={};return e.forEach(function(e){Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e])}),r}var i={assign:function(t){for(var e,r=1;r<arguments.length;r++)for(var n in e=Object(arguments[r]))Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},pick:n,pick_pica_resize_options:function(t){return n(t,["alpha","unsharpAmount","unsharpRadius","unsharpThreshold","cancelToken"])}};function a(t){var e={exports:{}};return t(e,e.exports),e.exports}function o(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets option of @rollup/plugin-commonjs appropriately for this require call to behave properly.')}var s=a(function(t,e){t.exports=function(){function t(e,r,n){function i(s,A){if(!r[s]){if(!e[s]){if(!A&&o)return o(s);if(a)return a(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var h=r[s]={exports:{}};e[s][0].call(h.exports,function(t){return i(e[s][1][t]||t)},h,h.exports,t,e,r,n)}return r[s].exports}for(var a=o,s=0;s<n.length;s++)i(n[s]);return i}return t}()({1:[function(t,e,r){var n=t("inherits"),i=t("multimath"),a=t("./mm_unsharp_mask"),o=t("./mm_resize");function s(t){var e=t||[],r={js:e.indexOf("js")>=0,wasm:e.indexOf("wasm")>=0};i.call(this,r),this.features={js:r.js,wasm:r.wasm&&this.has_wasm()},this.use(a),this.use(o)}n(s,i),s.prototype.resizeAndUnsharp=function(t,e){var r=this.resize(t,e);return t.unsharpAmount&&this.unsharp_mask(r,t.toWidth,t.toHeight,t.unsharpAmount,t.unsharpRadius,t.unsharpThreshold),r},e.exports=s},{"./mm_resize":4,"./mm_unsharp_mask":9,inherits:19,multimath:20}],2:[function(t,e,r){function n(t){return t<0?0:t>255?255:t}function i(t,e,r,i,a,o){var s,A,u,h,f,c,l,g,p,d,m,_=0,w=0;for(p=0;p<i;p++){for(f=0,d=0;d<a;d++){for(c=o[f++],l=o[f++],g=_+4*c|0,s=A=u=h=0;l>0;l--)h=h+(m=o[f++])*t[g+3]|0,u=u+m*t[g+2]|0,A=A+m*t[g+1]|0,s=s+m*t[g]|0,g=g+4|0;e[w+3]=n(h+8192>>14),e[w+2]=n(u+8192>>14),e[w+1]=n(A+8192>>14),e[w]=n(s+8192>>14),w=w+4*i|0}w=4*(p+1)|0,_=(p+1)*r*4|0}}function a(t,e,r,i,a,o){var s,A,u,h,f,c,l,g,p,d,m,_=0,w=0;for(p=0;p<i;p++){for(f=0,d=0;d<a;d++){for(c=o[f++],l=o[f++],g=_+4*c|0,s=A=u=h=0;l>0;l--)h=h+(m=o[f++])*t[g+3]|0,u=u+m*t[g+2]|0,A=A+m*t[g+1]|0,s=s+m*t[g]|0,g=g+4|0;e[w+3]=n(h+8192>>14),e[w+2]=n(u+8192>>14),e[w+1]=n(A+8192>>14),e[w]=n(s+8192>>14),w=w+4*i|0}w=4*(p+1)|0,_=(p+1)*r*4|0}}e.exports={convolveHorizontally:i,convolveVertically:a}},{}],3:[function(t,e,r){e.exports="AGFzbQEAAAAADAZkeWxpbmsAAAAAAAEXA2AAAGAGf39/f39/AGAHf39/f39/fwACDwEDZW52Bm1lbW9yeQIAAAMEAwABAgYGAX8AQQALB1cFEV9fd2FzbV9jYWxsX2N0b3JzAAAIY29udm9sdmUAAQpjb252b2x2ZUhWAAIMX19kc29faGFuZGxlAwAYX193YXNtX2FwcGx5X2RhdGFfcmVsb2NzAAAK7AMDAwABC8YDAQ9/AkAgA0UNACAERQ0AA0AgDCENQQAhE0EAIQcDQCAHQQJqIQYCfyAHQQF0IAVqIgcuAQIiFEUEQEGAwAAhCEGAwAAhCUGAwAAhCkGAwAAhCyAGDAELIBIgBy4BAGohCEEAIQsgFCEHQQAhDiAGIQlBACEPQQAhEANAIAUgCUEBdGouAQAiESAAIAhBAnRqKAIAIgpBGHZsIBBqIRAgCkH/AXEgEWwgC2ohCyAKQRB2Qf8BcSARbCAPaiEPIApBCHZB/wFxIBFsIA5qIQ4gCEEBaiEIIAlBAWohCSAHQQFrIgcNAAsgC0GAQGshCCAOQYBAayEJIA9BgEBrIQogEEGAQGshCyAGIBRqCyEHIAEgDUECdGogCUEOdSIGQf8BIAZB/wFIGyIGQQAgBkEAShtBCHRBgP4DcSAKQQ51IgZB/wEgBkH/AUgbIgZBACAGQQBKG0EQdEGAgPwHcSALQQ51IgZB/wEgBkH/AUgbIgZBACAGQQBKG0EYdHJyIAhBDnUiBkH/ASAGQf8BSBsiBkEAIAZBAEobcjYCACADIA1qIQ0gE0EBaiITIARHDQALIAxBAWoiDCACbCESIAMgDEcNAAsLCx4AQQAgAiADIAQgBSAAEAEgAkEAIAQgBSAGIAEQAQs="},{}],4:[function(t,e,r){e.exports={name:"resize",fn:t("./resize"),wasm_fn:t("./resize_wasm"),wasm_src:t("./convolve_wasm_base64")}},{"./convolve_wasm_base64":3,"./resize":5,"./resize_wasm":8}],5:[function(t,e,r){var n=t("./resize_filter_gen"),i=t("./convolve").convolveHorizontally,a=t("./convolve").convolveVertically;function o(t,e,r){for(var n=3,i=e*r*4|0;n<i;)t[n]=255,n=n+4|0}e.exports=function(t){var e=t.src,r=t.width,s=t.height,A=t.toWidth,u=t.toHeight,h=t.scaleX||t.toWidth/t.width,f=t.scaleY||t.toHeight/t.height,c=t.offsetX||0,l=t.offsetY||0,g=t.dest||new Uint8Array(A*u*4),p=void 0===t.quality?3:t.quality,d=t.alpha||!1,m=n(p,r,A,h,c),_=n(p,s,u,f,l),w=new Uint8Array(A*s*4);return i(e,w,r,s,A,m),a(w,g,s,A,u,_),d||o(g,A,u),g}},{"./convolve":2,"./resize_filter_gen":6}],6:[function(t,e,r){var n=t("./resize_filter_info"),i=14;function a(t){return Math.round(t*((1<<i)-1))}e.exports=function(t,e,r,i,o){var s,A,u,h,f,c,l,g,p,d,m,_,w,I,b,v,y,B=n[t].filter,E=1/i,C=Math.min(1,i),Q=n[t].win/C,x=Math.floor(2*(Q+1)),M=new Int16Array((x+2)*r),D=0,j=!M.subarray||!M.set;for(s=0;s<r;s++){for(A=(s+.5)*E+o,u=Math.max(0,Math.floor(A-Q)),f=(h=Math.min(e-1,Math.ceil(A+Q)))-u+1,c=new Float32Array(f),l=new Int16Array(f),g=0,p=u,d=0;p<=h;p++,d++)g+=m=B((p+.5-A)*C),c[d]=m;for(_=0,d=0;d<c.length;d++)_+=w=c[d]/g,l[d]=a(w);for(l[r>>1]+=a(1-_),I=0;I<l.length&&0===l[I];)I++;if(I<l.length){for(b=l.length-1;b>0&&0===l[b];)b--;if(v=u+I,y=b-I+1,M[D++]=v,M[D++]=y,j)for(d=I;d<=b;d++)M[D++]=l[d];else M.set(l.subarray(I,b+1),D),D+=y}else M[D++]=0,M[D++]=0}return M}},{"./resize_filter_info":7}],7:[function(t,e,r){e.exports=[{win:.5,filter:function(t){return t>=-.5&&t<.5?1:0}},{win:1,filter:function(t){if(t<=-1||t>=1)return 0;if(t>-1.1920929e-7&&t<1.1920929e-7)return 1;var e=t*Math.PI;return Math.sin(e)/e*(.54+.46*Math.cos(e/1))}},{win:2,filter:function(t){if(t<=-2||t>=2)return 0;if(t>-1.1920929e-7&&t<1.1920929e-7)return 1;var e=t*Math.PI;return Math.sin(e)/e*Math.sin(e/2)/(e/2)}},{win:3,filter:function(t){if(t<=-3||t>=3)return 0;if(t>-1.1920929e-7&&t<1.1920929e-7)return 1;var e=t*Math.PI;return Math.sin(e)/e*Math.sin(e/3)/(e/3)}}]},{}],8:[function(t,e,r){var n=t("./resize_filter_gen");function i(t,e,r){for(var n=3,i=e*r*4|0;n<i;)t[n]=255,n=n+4|0}function a(t){return new Uint8Array(t.buffer,0,t.byteLength)}var o=!0;try{o=1===new Uint32Array(new Uint8Array([1,0,0,0]).buffer)[0]}catch(t){}function s(t,e,r){if(o)e.set(a(t),r);else for(var n=r,i=0;i<t.length;i++){var s=t[i];e[n++]=255&s,e[n++]=s>>8&255}}e.exports=function(t){var e=t.src,r=t.width,a=t.height,o=t.toWidth,A=t.toHeight,u=t.scaleX||t.toWidth/t.width,h=t.scaleY||t.toHeight/t.height,f=t.offsetX||0,c=t.offsetY||0,l=t.dest||new Uint8Array(o*A*4),g=void 0===t.quality?3:t.quality,p=t.alpha||!1,d=n(g,r,o,u,f),m=n(g,a,A,h,c),_=0,w=this.__align(_+Math.max(e.byteLength,l.byteLength)),I=this.__align(w+a*o*4),b=this.__align(I+d.byteLength),v=b+m.byteLength,y=this.__instance("resize",v),B=new Uint8Array(this.__memory.buffer),E=new Uint32Array(this.__memory.buffer),C=new Uint32Array(e.buffer);return E.set(C),s(d,B,I),s(m,B,b),(y.exports.convolveHV||y.exports._convolveHV)(I,b,w,r,a,o,A),new Uint32Array(l.buffer).set(new Uint32Array(this.__memory.buffer,0,A*o)),p||i(l,o,A),l}},{"./resize_filter_gen":6}],9:[function(t,e,r){e.exports={name:"unsharp_mask",fn:t("./unsharp_mask"),wasm_fn:t("./unsharp_mask_wasm"),wasm_src:t("./unsharp_mask_wasm_base64")}},{"./unsharp_mask":10,"./unsharp_mask_wasm":11,"./unsharp_mask_wasm_base64":12}],10:[function(t,e,r){var n=t("glur/mono16");function i(t,e,r){for(var n,i,a,o,s=e*r,A=new Uint16Array(s),u=0;u<s;u++)n=t[4*u],i=t[4*u+1],a=t[4*u+2],o=n>=i&&n>=a?n:i>=a&&i>=n?i:a,A[u]=o<<8;return A}e.exports=function(t,e,r,a,o,s){var A,u,h,f,c;if(!(0===a||o<.5)){o>2&&(o=2);var l=i(t,e,r),g=new Uint16Array(l);n(g,e,r,o);for(var p=a/100*4096+.5|0,d=s<<8,m=e*r,_=0;_<m;_++)f=(A=l[_])-g[_],Math.abs(f)>=d&&(h=((u=(u=(u=A+(p*f+2048>>12))>65280?65280:u)<0?0:u)<<12)/(A=0!==A?A:1)|0,t[c=4*_]=t[c]*h+2048>>12,t[c+1]=t[c+1]*h+2048>>12,t[c+2]=t[c+2]*h+2048>>12)}}},{"glur/mono16":18}],11:[function(t,e,r){e.exports=function(t,e,r,n,i,a){if(!(0===n||i<.5)){i>2&&(i=2);var o=e*r,s=4*o,A=2*o,u=2*o,h=4*Math.max(e,r),f=32,c=0,l=s,g=l+A,p=g+u,d=p+u,m=d+h,_=this.__instance("unsharp_mask",s+A+2*u+h+f,{exp:Math.exp}),w=new Uint32Array(t.buffer);new Uint32Array(this.__memory.buffer).set(w);var I=_.exports.hsv_v16||_.exports._hsv_v16;I(c,l,e,r),(I=_.exports.blurMono16||_.exports._blurMono16)(l,g,p,d,m,e,r,i),(I=_.exports.unsharp||_.exports._unsharp)(c,c,l,g,e,r,n,a),w.set(new Uint32Array(this.__memory.buffer,0,o))}}},{}],12:[function(t,e,r){e.exports="AGFzbQEAAAAADAZkeWxpbmsAAAAAAAE0B2AAAGAEf39/fwBgBn9/f39/fwBgCH9/f39/f39/AGAIf39/f39/f30AYAJ9fwBgAXwBfAIZAgNlbnYDZXhwAAYDZW52Bm1lbW9yeQIAAAMHBgAFAgQBAwYGAX8AQQALB4oBCBFfX3dhc21fY2FsbF9jdG9ycwABFl9fYnVpbGRfZ2F1c3NpYW5fY29lZnMAAg5fX2dhdXNzMTZfbGluZQADCmJsdXJNb25vMTYABAdoc3ZfdjE2AAUHdW5zaGFycAAGDF9fZHNvX2hhbmRsZQMAGF9fd2FzbV9hcHBseV9kYXRhX3JlbG9jcwABCsUMBgMAAQvWAQEHfCABRNuGukOCGvs/IAC7oyICRAAAAAAAAADAohAAIgW2jDgCFCABIAKaEAAiAyADoCIGtjgCECABRAAAAAAAAPA/IAOhIgQgBKIgAyACIAKgokQAAAAAAADwP6AgBaGjIgS2OAIAIAEgBSAEmqIiB7Y4AgwgASADIAJEAAAAAAAA8D+gIASioiIItjgCCCABIAMgAkQAAAAAAADwv6AgBKKiIgK2OAIEIAEgByAIoCAFRAAAAAAAAPA/IAahoCIDo7Y4AhwgASAEIAKgIAOjtjgCGAuGBQMGfwl8An0gAyoCDCEVIAMqAgghFiADKgIUuyERIAMqAhC7IRACQCAEQQFrIghBAEgiCQRAIAIhByAAIQYMAQsgAiAALwEAuCIPIAMqAhi7oiIMIBGiIg0gDCAQoiAPIAMqAgS7IhOiIhQgAyoCALsiEiAPoqCgoCIOtjgCACACQQRqIQcgAEECaiEGIAhFDQAgCEEBIAhBAUgbIgpBf3MhCwJ/IAQgCmtBAXFFBEAgDiENIAgMAQsgAiANIA4gEKIgFCASIAAvAQK4Ig+ioKCgIg22OAIEIAJBCGohByAAQQRqIQYgDiEMIARBAmsLIQIgC0EAIARrRg0AA0AgByAMIBGiIA0gEKIgDyAToiASIAYvAQC4Ig6ioKCgIgy2OAIAIAcgDSARoiAMIBCiIA4gE6IgEiAGLwECuCIPoqCgoCINtjgCBCAHQQhqIQcgBkEEaiEGIAJBAkohACACQQJrIQIgAA0ACwsCQCAJDQAgASAFIAhsQQF0aiIAAn8gBkECay8BACICuCINIBW7IhKiIA0gFrsiE6KgIA0gAyoCHLuiIgwgEKKgIAwgEaKgIg8gB0EEayIHKgIAu6AiDkQAAAAAAADwQWMgDkQAAAAAAAAAAGZxBEAgDqsMAQtBAAs7AQAgCEUNACAGQQRrIQZBACAFa0EBdCEBA0ACfyANIBKiIAJB//8DcbgiDSAToqAgDyIOIBCioCAMIBGioCIPIAdBBGsiByoCALugIgxEAAAAAAAA8EFjIAxEAAAAAAAAAABmcQRAIAyrDAELQQALIQMgBi8BACECIAAgAWoiACADOwEAIAZBAmshBiAIQQFKIQMgDiEMIAhBAWshCCADDQALCwvRAgIBfwd8AkAgB0MAAAAAWw0AIARE24a6Q4Ia+z8gB0MAAAA/l7ujIglEAAAAAAAAAMCiEAAiDLaMOAIUIAQgCZoQACIKIAqgIg22OAIQIAREAAAAAAAA8D8gCqEiCyALoiAKIAkgCaCiRAAAAAAAAPA/oCAMoaMiC7Y4AgAgBCAMIAuaoiIOtjgCDCAEIAogCUQAAAAAAADwP6AgC6KiIg+2OAIIIAQgCiAJRAAAAAAAAPC/oCALoqIiCbY4AgQgBCAOIA+gIAxEAAAAAAAA8D8gDaGgIgqjtjgCHCAEIAsgCaAgCqO2OAIYIAYEQANAIAAgBSAIbEEBdGogAiAIQQF0aiADIAQgBSAGEAMgCEEBaiIIIAZHDQALCyAFRQ0AQQAhCANAIAIgBiAIbEEBdGogASAIQQF0aiADIAQgBiAFEAMgCEEBaiIIIAVHDQALCwtxAQN/IAIgA2wiBQRAA0AgASAAKAIAIgRBEHZB/wFxIgIgAiAEQQh2Qf8BcSIDIAMgBEH/AXEiBEkbIAIgA0sbIgYgBiAEIAIgBEsbIAMgBEsbQQh0OwEAIAFBAmohASAAQQRqIQAgBUEBayIFDQALCwuZAgIDfwF8IAQgBWwhBAJ/IAazQwAAgEWUQwAAyEKVu0QAAAAAAADgP6AiC5lEAAAAAAAA4EFjBEAgC6oMAQtBgICAgHgLIQUgBARAIAdBCHQhCUEAIQYDQCAJIAIgBkEBdCIHai8BACIBIAMgB2ovAQBrIgcgB0EfdSIIaiAIc00EQCAAIAZBAnQiCGoiCiAFIAdsQYAQakEMdSABaiIHQYD+AyAHQYD+A0gbIgdBACAHQQBKG0EMdCABQQEgARtuIgEgCi0AAGxBgBBqQQx2OgAAIAAgCEEBcmoiByABIActAABsQYAQakEMdjoAACAAIAhBAnJqIgcgASAHLQAAbEGAEGpBDHY6AAALIAZBAWoiBiAERw0ACwsL"},{}],13:[function(t,e,r){var n=100;function i(t,e){this.create=t,this.available=[],this.acquired={},this.lastId=1,this.timeoutId=0,this.idle=e||2e3}i.prototype.acquire=function(){var t,e=this;return 0!==this.available.length?t=this.available.pop():((t=this.create()).id=this.lastId++,t.release=function(){return e.release(t)}),this.acquired[t.id]=t,t},i.prototype.release=function(t){var e=this;delete this.acquired[t.id],t.lastUsed=Date.now(),this.available.push(t),0===this.timeoutId&&(this.timeoutId=setTimeout(function(){return e.gc()},n))},i.prototype.gc=function(){var t=this,e=Date.now();this.available=this.available.filter(function(r){return!(e-r.lastUsed>t.idle&&(r.destroy(),1))}),0!==this.available.length?this.timeoutId=setTimeout(function(){return t.gc()},n):this.timeoutId=0},e.exports=i},{}],14:[function(t,e,r){var n=2;e.exports=function(t,e,r,i,a,o){var s=r/t,A=i/e,u=(2*o+n+1)/a;if(u>.5)return[[r,i]];var h=Math.ceil(Math.log(Math.min(s,A))/Math.log(u));if(h<=1)return[[r,i]];for(var f=[],c=0;c<h;c++){var l=Math.round(Math.pow(Math.pow(t,h-c-1)*Math.pow(r,c+1),1/h)),g=Math.round(Math.pow(Math.pow(e,h-c-1)*Math.pow(i,c+1),1/h));f.push([l,g])}return f}},{}],15:[function(t,e,r){var n=1e-5;function i(t){var e=Math.round(t);return Math.abs(t-e)<n?e:Math.floor(t)}function a(t){var e=Math.round(t);return Math.abs(t-e)<n?e:Math.ceil(t)}e.exports=function(t){var e,r,n,o,s,A,u=t.toWidth/t.width,h=t.toHeight/t.height,f=i(t.srcTileSize*u)-2*t.destTileBorder,c=i(t.srcTileSize*h)-2*t.destTileBorder;if(f<1||c<1)throw new Error("Internal error in pica: target tile width/height is too small.");var l,g=[];for(o=0;o<t.toHeight;o+=c)for(n=0;n<t.toWidth;n+=f)(e=n-t.destTileBorder)<0&&(e=0),e+(s=n+f+t.destTileBorder-e)>=t.toWidth&&(s=t.toWidth-e),(r=o-t.destTileBorder)<0&&(r=0),r+(A=o+c+t.destTileBorder-r)>=t.toHeight&&(A=t.toHeight-r),l={toX:e,toY:r,toWidth:s,toHeight:A,toInnerX:n,toInnerY:o,toInnerWidth:f,toInnerHeight:c,offsetX:e/u-i(e/u),offsetY:r/h-i(r/h),scaleX:u,scaleY:h,x:i(e/u),y:i(r/h),width:a(s/u),height:a(A/h)},g.push(l);return g}},{}],16:[function(t,e,r){function n(t){return Object.prototype.toString.call(t)}e.exports.isCanvas=function(t){var e=n(t);return"[object HTMLCanvasElement]"===e||"[object OffscreenCanvas]"===e||"[object Canvas]"===e},e.exports.isImage=function(t){return"[object HTMLImageElement]"===n(t)},e.exports.isImageBitmap=function(t){return"[object ImageBitmap]"===n(t)},e.exports.limiter=function(t){var e=0,r=[];function n(){e<t&&r.length&&(e++,r.shift()())}return function(t){return new Promise(function(i,a){r.push(function(){t().then(function(t){i(t),e--,n()},function(t){a(t),e--,n()})}),n()})}},e.exports.cib_quality_name=function(t){switch(t){case 0:return"pixelated";case 1:return"low";case 2:return"medium"}return"high"},e.exports.cib_support=function(t){return Promise.resolve().then(function(){if("undefined"==typeof createImageBitmap)return!1;var e=t(100,100);return createImageBitmap(e,0,0,100,100,{resizeWidth:10,resizeHeight:10,resizeQuality:"high"}).then(function(t){var r=10===t.width;return t.close(),e=null,r})}).catch(function(){return!1})},e.exports.worker_offscreen_canvas_support=function(){return new Promise(function(t,e){if("undefined"!=typeof OffscreenCanvas){var r=btoa("(".concat(i.toString(),")(self);")),n=new Worker("data:text/javascript;base64,".concat(r));n.onmessage=function(e){return t(e.data)},n.onerror=e}else t(!1);function i(t){"undefined"!=typeof createImageBitmap?Promise.resolve().then(function(){var t=new OffscreenCanvas(10,10);return t.getContext("2d").rect(0,0,1,1),createImageBitmap(t,0,0,1,1)}).then(function(){return t.postMessage(!0)},function(){return t.postMessage(!1)}):t.postMessage(!1)}}).then(function(t){return t},function(){return!1})},e.exports.can_use_canvas=function(t){var e=!1;try{var r=t(2,1).getContext("2d"),n=r.createImageData(2,1);n.data[0]=12,n.data[1]=23,n.data[2]=34,n.data[3]=255,n.data[4]=45,n.data[5]=56,n.data[6]=67,n.data[7]=255,r.putImageData(n,0,0),n=null,12===(n=r.getImageData(0,0,2,1)).data[0]&&23===n.data[1]&&34===n.data[2]&&255===n.data[3]&&45===n.data[4]&&56===n.data[5]&&67===n.data[6]&&255===n.data[7]&&(e=!0)}catch(t){}return e},e.exports.cib_can_use_region=function(){return new Promise(function(t){if("undefined"!=typeof createImageBitmap){var e=new Image;e.src="data:image/jpeg;base64,/9j/4QBiRXhpZgAATU0AKgAAAAgABQESAAMAAAABAAYAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAAITAAMAAAABAAEAAAAAAAAAAABIAAAAAQAAAEgAAAAB/9sAQwAEAwMEAwMEBAMEBQQEBQYKBwYGBgYNCQoICg8NEBAPDQ8OERMYFBESFxIODxUcFRcZGRsbGxAUHR8dGh8YGhsa/9sAQwEEBQUGBQYMBwcMGhEPERoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoa/8IAEQgAAQACAwERAAIRAQMRAf/EABQAAQAAAAAAAAAAAAAAAAAAAAf/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIQAxAAAAF/P//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAQUCf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Bf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Bf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEABj8Cf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAT8hf//aAAwDAQACAAMAAAAQH//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Qf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Qf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAT8Qf//Z",e.onload=function(){createImageBitmap(e,0,0,e.width,e.height).then(function(r){r.width===e.width&&r.height===e.height?t(!0):t(!1)},function(){return t(!1)})},e.onerror=function(){return t(!1)}}else t(!1)})}},{}],17:[function(t,e,r){e.exports=function(){var e,r=t("./mathlib");onmessage=function(t){var n=t.data.opts,i=!1;if(!n.src&&n.srcBitmap){var a=new OffscreenCanvas(n.width,n.height),o=a.getContext("2d",{alpha:Boolean(n.alpha)});o.drawImage(n.srcBitmap,0,0),n.src=o.getImageData(0,0,n.width,n.height).data,a.width=a.height=0,a=null,n.srcBitmap.close(),n.srcBitmap=null,i=!0}e||(e=new r(t.data.features));var s=e.resizeAndUnsharp(n);if(i){var A=new ImageData(new Uint8ClampedArray(s),n.toWidth,n.toHeight),u=new OffscreenCanvas(n.toWidth,n.toHeight);u.getContext("2d",{alpha:Boolean(n.alpha)}).putImageData(A,0,0),createImageBitmap(u).then(function(t){postMessage({bitmap:t},[t])})}else postMessage({data:s},[s.buffer])}}},{"./mathlib":1}],18:[function(t,e,r){var n,i,a,o,s,A;function u(t){t<.5&&(t=.5);var e=Math.exp(.527076)/t,r=Math.exp(-e),u=Math.exp(-2*e),h=(1-r)*(1-r)/(1+2*e*r-u);return n=h,i=h*(e-1)*r,a=h*(e+1)*r,o=-h*u,s=2*r,A=-u,new Float32Array([n,i,a,o,s,A,(n+i)/(1-s-A),(a+o)/(1-s-A)])}function h(t,e,r,n,i,a){var o,s,A,u,h,f,c,l,g,p,d,m,_,w;for(g=0;g<a;g++){for(c=g,l=0,u=h=(o=t[f=g*i])*n[6],d=n[0],m=n[1],_=n[4],w=n[5],p=0;p<i;p++)A=(s=t[f])*d+o*m+u*_+h*w,h=u,u=A,o=s,r[l]=u,l++,f++;for(l--,c+=a*(i-1),u=h=(o=t[--f])*n[7],s=o,d=n[2],m=n[3],p=i-1;p>=0;p--)A=s*d+o*m+u*_+h*w,h=u,u=A,o=s,s=t[f],e[c]=r[l]+u,f--,l--,c-=a}}function f(t,e,r,n){if(n){var i=new Uint16Array(t.length),a=new Float32Array(Math.max(e,r)),o=u(n);h(t,i,a,o,e,r),h(i,t,a,o,r,e)}}e.exports=f},{}],19:[function(t,e,r){"function"==typeof Object.create?e.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},{}],20:[function(t,e,r){var n=t("object-assign"),i=t("./lib/base64decode"),a=t("./lib/wa_detect"),o={js:!0,wasm:!0};function s(t){if(!(this instanceof s))return new s(t);var e=n({},o,t||{});if(this.options=e,this.__cache={},this.__init_promise=null,this.__modules=e.modules||{},this.__memory=null,this.__wasm={},this.__isLE=1===new Uint32Array(new Uint8Array([1,0,0,0]).buffer)[0],!this.options.js&&!this.options.wasm)throw new Error('mathlib: at least "js" or "wasm" should be enabled')}s.prototype.has_wasm=a,s.prototype.use=function(t){return this.__modules[t.name]=t,this.options.wasm&&this.has_wasm()&&t.wasm_fn?this[t.name]=t.wasm_fn:this[t.name]=t.fn,this},s.prototype.init=function(){if(this.__init_promise)return this.__init_promise;if(!this.options.js&&this.options.wasm&&!this.has_wasm())return Promise.reject(new Error('mathlib: only "wasm" was enabled, but it\'s not supported'));var t=this;return this.__init_promise=Promise.all(Object.keys(t.__modules).map(function(e){var r=t.__modules[e];return t.options.wasm&&t.has_wasm()&&r.wasm_fn?t.__wasm[e]?null:WebAssembly.compile(t.__base64decode(r.wasm_src)).then(function(r){t.__wasm[e]=r}):null})).then(function(){return t}),this.__init_promise},s.prototype.__base64decode=i,s.prototype.__reallocate=function(t){if(!this.__memory)return this.__memory=new WebAssembly.Memory({initial:Math.ceil(t/65536)}),this.__memory;var e=this.__memory.buffer.byteLength;return e<t&&this.__memory.grow(Math.ceil((t-e)/65536)),this.__memory},s.prototype.__instance=function(t,e,r){if(e&&this.__reallocate(e),!this.__wasm[t]){var i=this.__modules[t];this.__wasm[t]=new WebAssembly.Module(this.__base64decode(i.wasm_src))}if(!this.__cache[t]){var a={memoryBase:0,memory:this.__memory,tableBase:0,table:new WebAssembly.Table({initial:0,element:"anyfunc"})};this.__cache[t]=new WebAssembly.Instance(this.__wasm[t],{env:n(a,r||{})})}return this.__cache[t]},s.prototype.__align=function(t,e){var r=t%(e=e||8);return t+(r?e-r:0)},e.exports=s},{"./lib/base64decode":21,"./lib/wa_detect":22,"object-assign":23}],21:[function(t,e,r){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";e.exports=function(t){for(var e=t.replace(/[\r\n=]/g,""),r=e.length,i=new Uint8Array(3*r>>2),a=0,o=0,s=0;s<r;s++)s%4==0&&s&&(i[o++]=a>>16&255,i[o++]=a>>8&255,i[o++]=255&a),a=a<<6|n.indexOf(e.charAt(s));var A=r%4*6;return 0===A?(i[o++]=a>>16&255,i[o++]=a>>8&255,i[o++]=255&a):18===A?(i[o++]=a>>10&255,i[o++]=a>>2&255):12===A&&(i[o++]=a>>4&255),i}},{}],22:[function(t,e,r){var n;e.exports=function(){if(void 0!==n)return n;if(n=!1,"undefined"==typeof WebAssembly)return n;try{var t=new Uint8Array([0,97,115,109,1,0,0,0,1,6,1,96,1,127,1,127,3,2,1,0,5,3,1,0,1,7,8,1,4,116,101,115,116,0,0,10,16,1,14,0,32,0,65,1,54,2,0,32,0,40,2,0,11]),e=new WebAssembly.Module(t);return 0!==new WebAssembly.Instance(e,{}).exports.test(4)&&(n=!0),n}catch(t){}return n}},{}],23:[function(t,e,r){var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function o(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function s(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(t){n[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}e.exports=s()?Object.assign:function(t,e){for(var r,s,A=o(t),u=1;u<arguments.length;u++){for(var h in r=Object(arguments[u]))i.call(r,h)&&(A[h]=r[h]);if(n){s=n(r);for(var f=0;f<s.length;f++)a.call(r,s[f])&&(A[s[f]]=r[s[f]])}}return A}},{}],24:[function(t,e,r){var n=arguments[3],i=arguments[4],a=arguments[5],o=JSON.stringify;e.exports=function(t,e){for(var r,s=Object.keys(a),A=0,u=s.length;A<u;A++){var h=s[A],f=a[h].exports;if(f===t||f&&f.default===t){r=h;break}}if(!r){r=Math.floor(Math.pow(16,8)*Math.random()).toString(16);var c={};for(A=0,u=s.length;A<u;A++)c[h=s[A]]=h;i[r]=["function(require,module,exports){"+t+"(self); }",c]}var l=Math.floor(Math.pow(16,8)*Math.random()).toString(16),g={};g[r]=r,i[l]=["function(require,module,exports){var f = require("+o(r)+");(f.default ? f.default : f)(self);}",g];var p={};function d(t){for(var e in p[t]=!0,i[t][1]){var r=i[t][1][e];p[r]||d(r)}}d(l);var m="("+n+")({"+Object.keys(p).map(function(t){return o(t)+":["+i[t][0]+","+o(i[t][1])+"]"}).join(",")+"},{},["+o(l)+"])",_=window.URL||window.webkitURL||window.mozURL||window.msURL,w=new Blob([m],{type:"text/javascript"});if(e&&e.bare)return w;var I=_.createObjectURL(w),b=new Worker(I);return b.objectURL=I,b}},{}],"/index.js":[function(t,e,r){function n(t,e){return A(t)||s(t,e)||a(t,e)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(t,e){if(t){if("string"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function s(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a=[],o=!0,s=!1;try{for(r=r.call(t);!(o=(n=r.next()).done)&&(a.push(n.value),!e||a.length!==e);o=!0);}catch(t){s=!0,i=t}finally{try{o||null==r.return||r.return()}finally{if(s)throw i}}return a}}function A(t){if(Array.isArray(t))return t}var u=t("object-assign"),h=t("webworkify"),f=t("./lib/mathlib"),c=t("./lib/pool"),l=t("./lib/utils"),g=t("./lib/worker"),p=t("./lib/stepper"),d=t("./lib/tiler"),m={},_=!1;try{"undefined"!=typeof navigator&&navigator.userAgent&&(_=navigator.userAgent.indexOf("Safari")>=0)}catch(t){}var w=1;"undefined"!=typeof navigator&&(w=Math.min(navigator.hardwareConcurrency||1,4));var I={tile:1024,concurrency:w,features:["js","wasm","ww"],idle:2e3,createCanvas:function(t,e){var r=document.createElement("canvas");return r.width=t,r.height=e,r}},b={quality:3,alpha:!1,unsharpAmount:0,unsharpRadius:0,unsharpThreshold:0},v=!1,y=!1,B=!1,E=!1,C=!1;function Q(){return{value:h(g),destroy:function(){if(this.value.terminate(),"undefined"!=typeof window){var t=window.URL||window.webkitURL||window.mozURL||window.msURL;t&&t.revokeObjectURL&&this.value.objectURL&&t.revokeObjectURL(this.value.objectURL)}}}}function x(t){if(!(this instanceof x))return new x(t);this.options=u({},I,t||{});var e="lk_".concat(this.options.concurrency);this.__limit=m[e]||l.limiter(this.options.concurrency),m[e]||(m[e]=this.__limit),this.features={js:!1,wasm:!1,cib:!1,ww:!1},this.__workersPool=null,this.__requested_features=[],this.__mathlib=null}x.prototype.init=function(){var e=this;if(this.__initPromise)return this.__initPromise;if("undefined"!=typeof ImageData&&"undefined"!=typeof Uint8ClampedArray)try{new ImageData(new Uint8ClampedArray(400),10,10),v=!0}catch(t){}"undefined"!=typeof ImageBitmap&&(ImageBitmap.prototype&&ImageBitmap.prototype.close?y=!0:this.debug("ImageBitmap does not support .close(), disabled"));var r=this.options.features.slice();if(r.indexOf("all")>=0&&(r=["cib","wasm","js","ww"]),this.__requested_features=r,this.__mathlib=new f(r),r.indexOf("ww")>=0&&"undefined"!=typeof window&&"Worker"in window)try{t("webworkify")(function(){}).terminate(),this.features.ww=!0;var n="wp_".concat(JSON.stringify(this.options));m[n]?this.__workersPool=m[n]:(this.__workersPool=new c(Q,this.options.idle),m[n]=this.__workersPool)}catch(t){}var i,a,o=this.__mathlib.init().then(function(t){u(e.features,t.features)});i=y?l.cib_support(this.options.createCanvas).then(function(t){e.features.cib&&r.indexOf("cib")<0?e.debug("createImageBitmap() resize supported, but disabled by config"):r.indexOf("cib")>=0&&(e.features.cib=t)}):Promise.resolve(!1),B=l.can_use_canvas(this.options.createCanvas),a=(a=y&&v&&-1!==r.indexOf("ww")?l.worker_offscreen_canvas_support():Promise.resolve(!1)).then(function(t){E=t});var s=l.cib_can_use_region().then(function(t){C=t});return this.__initPromise=Promise.all([o,i,a,s]).then(function(){return e}),this.__initPromise},x.prototype.__invokeResize=function(t,e){var r=this;return e.__mathCache=e.__mathCache||{},Promise.resolve().then(function(){return r.features.ww?new Promise(function(n,i){var a=r.__workersPool.acquire();e.cancelToken&&e.cancelToken.catch(function(t){return i(t)}),a.value.onmessage=function(t){a.release(),t.data.err?i(t.data.err):n(t.data)};var o=[];t.src&&o.push(t.src.buffer),t.srcBitmap&&o.push(t.srcBitmap),a.value.postMessage({opts:t,features:r.__requested_features,preload:{wasm_nodule:r.__mathlib.__}},o)}):{data:r.__mathlib.resizeAndUnsharp(t,e.__mathCache)}})},x.prototype.__extractTileData=function(t,e,r,n,i){if(this.features.ww&&E&&(l.isCanvas(e)||C))return this.debug("Create tile for OffscreenCanvas"),createImageBitmap(n.srcImageBitmap||e,t.x,t.y,t.width,t.height).then(function(t){return i.srcBitmap=t,i});if(l.isCanvas(e))return n.srcCtx||(n.srcCtx=e.getContext("2d",{alpha:Boolean(r.alpha)})),this.debug("Get tile pixel data"),i.src=n.srcCtx.getImageData(t.x,t.y,t.width,t.height).data,i;this.debug("Draw tile imageBitmap/image to temporary canvas");var a=this.options.createCanvas(t.width,t.height),o=a.getContext("2d",{alpha:Boolean(r.alpha)});return o.globalCompositeOperation="copy",o.drawImage(n.srcImageBitmap||e,t.x,t.y,t.width,t.height,0,0,t.width,t.height),this.debug("Get tile pixel data"),i.src=o.getImageData(0,0,t.width,t.height).data,a.width=a.height=0,i},x.prototype.__landTileData=function(t,e,r){var n;if(this.debug("Convert raw rgba tile result to ImageData"),e.bitmap)return r.toCtx.drawImage(e.bitmap,t.toX,t.toY),null;if(v)n=new ImageData(new Uint8ClampedArray(e.data),t.toWidth,t.toHeight);else if((n=r.toCtx.createImageData(t.toWidth,t.toHeight)).data.set)n.data.set(e.data);else for(var i=n.data.length-1;i>=0;i--)n.data[i]=e.data[i];return this.debug("Draw tile"),_?r.toCtx.putImageData(n,t.toX,t.toY,t.toInnerX-t.toX,t.toInnerY-t.toY,t.toInnerWidth+1e-5,t.toInnerHeight+1e-5):r.toCtx.putImageData(n,t.toX,t.toY,t.toInnerX-t.toX,t.toInnerY-t.toY,t.toInnerWidth,t.toInnerHeight),null},x.prototype.__tileAndResize=function(t,e,r){var n=this,i={srcCtx:null,srcImageBitmap:null,isImageBitmapReused:!1,toCtx:null},a=function(e){return n.__limit(function(){if(r.canceled)return r.cancelToken;var a={width:e.width,height:e.height,toWidth:e.toWidth,toHeight:e.toHeight,scaleX:e.scaleX,scaleY:e.scaleY,offsetX:e.offsetX,offsetY:e.offsetY,quality:r.quality,alpha:r.alpha,unsharpAmount:r.unsharpAmount,unsharpRadius:r.unsharpRadius,unsharpThreshold:r.unsharpThreshold};return n.debug("Invoke resize math"),Promise.resolve(a).then(function(a){return n.__extractTileData(e,t,r,i,a)}).then(function(t){return n.debug("Invoke resize math"),n.__invokeResize(t,r)}).then(function(t){return r.canceled?r.cancelToken:(i.srcImageData=null,n.__landTileData(e,t,i))})})};return Promise.resolve().then(function(){if(i.toCtx=e.getContext("2d",{alpha:Boolean(r.alpha)}),l.isCanvas(t))return null;if(l.isImageBitmap(t))return i.srcImageBitmap=t,i.isImageBitmapReused=!0,null;if(l.isImage(t))return y?(n.debug("Decode image via createImageBitmap"),createImageBitmap(t).then(function(t){i.srcImageBitmap=t}).catch(function(t){return null})):null;throw new Error('Pica: ".from" should be Image, Canvas or ImageBitmap')}).then(function(){if(r.canceled)return r.cancelToken;n.debug("Calculate tiles");var t=d({width:r.width,height:r.height,srcTileSize:n.options.tile,toWidth:r.toWidth,toHeight:r.toHeight,destTileBorder:r.__destTileBorder}).map(function(t){return a(t)});function o(t){t.srcImageBitmap&&(t.isImageBitmapReused||t.srcImageBitmap.close(),t.srcImageBitmap=null)}return n.debug("Process tiles"),Promise.all(t).then(function(){return n.debug("Finished!"),o(i),e},function(t){throw o(i),t})})},x.prototype.__processStages=function(t,e,r,i){var a=this;if(i.canceled)return i.cancelToken;var o,s=n(t.shift(),2),A=s[0],h=s[1],f=0===t.length;return i=u({},i,{toWidth:A,toHeight:h,quality:f?i.quality:Math.min(1,i.quality)}),f||(o=this.options.createCanvas(A,h)),this.__tileAndResize(e,f?r:o,i).then(function(){return f?r:(i.width=A,i.height=h,a.__processStages(t,o,r,i))}).then(function(t){return o&&(o.width=o.height=0),t})},x.prototype.__resizeViaCreateImageBitmap=function(t,e,r){var n=this,i=e.getContext("2d",{alpha:Boolean(r.alpha)});return this.debug("Resize via createImageBitmap()"),createImageBitmap(t,{resizeWidth:r.toWidth,resizeHeight:r.toHeight,resizeQuality:l.cib_quality_name(r.quality)}).then(function(t){if(r.canceled)return r.cancelToken;if(!r.unsharpAmount)return i.drawImage(t,0,0),t.close(),i=null,n.debug("Finished!"),e;n.debug("Unsharp result");var a=n.options.createCanvas(r.toWidth,r.toHeight),o=a.getContext("2d",{alpha:Boolean(r.alpha)});o.drawImage(t,0,0),t.close();var s=o.getImageData(0,0,r.toWidth,r.toHeight);return n.__mathlib.unsharp_mask(s.data,r.toWidth,r.toHeight,r.unsharpAmount,r.unsharpRadius,r.unsharpThreshold),i.putImageData(s,0,0),a.width=a.height=0,s=o=a=i=null,n.debug("Finished!"),e})},x.prototype.resize=function(t,e,r){var n=this;this.debug("Start resize...");var i=u({},b);if(isNaN(r)?r&&(i=u(i,r)):i=u(i,{quality:r}),i.toWidth=e.width,i.toHeight=e.height,i.width=t.naturalWidth||t.width,i.height=t.naturalHeight||t.height,0===e.width||0===e.height)return Promise.reject(new Error("Invalid output size: ".concat(e.width,"x").concat(e.height)));i.unsharpRadius>2&&(i.unsharpRadius=2),i.canceled=!1,i.cancelToken&&(i.cancelToken=i.cancelToken.then(function(t){throw i.canceled=!0,t},function(t){throw i.canceled=!0,t}));var a=3;return i.__destTileBorder=Math.ceil(Math.max(a,2.5*i.unsharpRadius|0)),this.init().then(function(){if(i.canceled)return i.cancelToken;if(n.features.cib)return n.__resizeViaCreateImageBitmap(t,e,i);if(!B){var r=new Error("Pica: cannot use getImageData on canvas, make sure fingerprinting protection isn't enabled");throw r.code="ERR_GET_IMAGE_DATA",r}var a=p(i.width,i.height,i.toWidth,i.toHeight,n.options.tile,i.__destTileBorder);return n.__processStages(a,t,e,i)})},x.prototype.resizeBuffer=function(t){var e=this,r=u({},b,t);return this.init().then(function(){return e.__mathlib.resizeAndUnsharp(r)})},x.prototype.toBlob=function(t,e,r){return e=e||"image/png",new Promise(function(n){if(t.toBlob)t.toBlob(function(t){return n(t)},e,r);else if(t.convertToBlob)n(t.convertToBlob({type:e,quality:r}));else{for(var i=atob(t.toDataURL(e,r).split(",")[1]),a=i.length,o=new Uint8Array(a),s=0;s<a;s++)o[s]=i.charCodeAt(s);n(new Blob([o],{type:e}))}})},x.prototype.debug=function(){},e.exports=x},{"./lib/mathlib":1,"./lib/pool":13,"./lib/stepper":14,"./lib/tiler":15,"./lib/utils":16,"./lib/worker":17,"object-assign":23,webworkify:24}]},{},[])("/index.js")}),A=a(function(t){function e(t,e){var r=new Error(t);return r.code=e,r}function r(t){for(var e=t.toString(16).toUpperCase(),r=2-e.length;r>0;r--)e="0"+e;return"0x"+e}function n(t){try{return decodeURIComponent(escape(t))}catch(e){return t}}function i(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)}function a(t,r,n){this.input=t.subarray(r,n),this.start=r;var i=String.fromCharCode.apply(null,this.input.subarray(0,4));if("II*\0"!==i&&"MM\0*"!==i)throw e("invalid TIFF signature","EBADDATA");this.big_endian="M"===i[0]}a.prototype.each=function(t){this.aborted=!1;var e=this.read_uint32(4);for(this.ifds_to_read=[{id:0,offset:e}];this.ifds_to_read.length>0&&!this.aborted;){var r=this.ifds_to_read.shift();r.offset&&this.scan_ifd(r.id,r.offset,t)}},a.prototype.filter=function(t){var r={ifd0:{id:0,entries:[]}};this.each(function(e){(!1!==t(e)||e.is_subifd_link)&&(e.is_subifd_link&&1!==e.count&&4!==e.format||(r["ifd"+e.ifd]||(r["ifd"+e.ifd]={id:e.ifd,entries:[]}),r["ifd"+e.ifd].entries.push(e)))}),delete r.ifd1;var n=8;Object.keys(r).forEach(function(t){n+=2,r[t].entries.forEach(function(t){n+=12+(t.data_length>4?2*Math.ceil(t.data_length/2):0)}),n+=4}),this.output=new Uint8Array(n),this.output[0]=this.output[1]=(this.big_endian?"M":"I").charCodeAt(0),this.write_uint16(2,42);var i=8,a=this;if(this.write_uint32(4,i),Object.keys(r).forEach(function(t){r[t].written_offset=i;var e=i,n=e+2+12*r[t].entries.length+4;i=n,a.write_uint16(e,r[t].entries.length),r[t].entries.sort(function(t,e){return t.tag-e.tag}).forEach(function(t,n){var o=e+2+12*n;a.write_uint16(o,t.tag),a.write_uint16(o+2,t.format),a.write_uint32(o+4,t.count),t.is_subifd_link?r["ifd"+t.tag]&&(r["ifd"+t.tag].link_offset=o+8):t.data_length<=4?a.output.set(a.input.subarray(t.data_offset-a.start,t.data_offset-a.start+4),o+8):(a.write_uint32(o+8,i),a.output.set(a.input.subarray(t.data_offset-a.start,t.data_offset-a.start+t.data_length),i),i+=2*Math.ceil(t.data_length/2))});var o=r["ifd"+(r[t].id+1)];o&&(o.link_offset=n-4)}),Object.keys(r).forEach(function(t){r[t].written_offset&&r[t].link_offset&&a.write_uint32(r[t].link_offset,r[t].written_offset)}),this.output.length!==i)throw e("internal error: incorrect buffer size allocated");return this.output},a.prototype.read_uint16=function(t){var r=this.input;if(t+2>r.length)throw e("unexpected EOF","EBADDATA");return this.big_endian?256*r[t]+r[t+1]:r[t]+256*r[t+1]},a.prototype.read_uint32=function(t){var r=this.input;if(t+4>r.length)throw e("unexpected EOF","EBADDATA");return this.big_endian?16777216*r[t]+65536*r[t+1]+256*r[t+2]+r[t+3]:r[t]+256*r[t+1]+65536*r[t+2]+16777216*r[t+3]},a.prototype.write_uint16=function(t,e){var r=this.output;this.big_endian?(r[t]=e>>>8&255,r[t+1]=255&e):(r[t]=255&e,r[t+1]=e>>>8&255)},a.prototype.write_uint32=function(t,e){var r=this.output;this.big_endian?(r[t]=e>>>24&255,r[t+1]=e>>>16&255,r[t+2]=e>>>8&255,r[t+3]=255&e):(r[t]=255&e,r[t+1]=e>>>8&255,r[t+2]=e>>>16&255,r[t+3]=e>>>24&255)},a.prototype.is_subifd_link=function(t,e){return 0===t&&34665===e||0===t&&34853===e||34665===t&&40965===e},a.prototype.exif_format_length=function(t){switch(t){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}},a.prototype.exif_format_read=function(t,e){var r;switch(t){case 1:case 2:return r=this.input[e];case 6:return(r=this.input[e])|33554430*(128&r);case 3:return r=this.read_uint16(e);case 8:return(r=this.read_uint16(e))|131070*(32768&r);case 4:return r=this.read_uint32(e);case 9:return 0|(r=this.read_uint32(e));default:return null}},a.prototype.scan_ifd=function(t,r,i){var a=this.read_uint16(r);r+=2;for(var o=0;o<a;o++){var s=this.read_uint16(r),A=this.read_uint16(r+2),u=this.read_uint32(r+4),h=this.exif_format_length(A),f=u*h,c=f<=4?r+8:this.read_uint32(r+8),l=!1;if(c+f>this.input.length)throw e("unexpected EOF","EBADDATA");for(var g=[],p=c,d=0;d<u;d++,p+=h){var m=this.exif_format_read(A,p);if(null===m){g=null;break}g.push(m)}if(Array.isArray(g)&&2===A){try{g=n(String.fromCharCode.apply(null,g))}catch(t){g=null}g&&"\0"===g[g.length-1]&&(g=g.slice(0,-1))}if(this.is_subifd_link(t,s)&&Array.isArray(g)&&Number.isInteger(g[0])&&g[0]>0&&(this.ifds_to_read.push({id:s,offset:g[0]}),l=!0),!1===i({is_big_endian:this.big_endian,ifd:t,tag:s,format:A,count:u,entry_offset:r+this.start,data_length:f,data_offset:c+this.start,value:g,is_subifd_link:l}))return void(this.aborted=!0);r+=12}0===t&&this.ifds_to_read.push({id:1,offset:this.read_uint32(r)})},t.exports.is_jpeg=function(t){return t.length>=4&&255===t[0]&&216===t[1]&&255===t[2]},t.exports.jpeg_segments_each=function(n,a){if(!i(n))throw e("Invalid argument (jpeg_bin), Uint8Array expected","EINVAL");if("function"!=typeof a)throw e("Invalid argument (on_segment), Function expected","EINVAL");if(!t.exports.is_jpeg(n))throw e("Unknown file format","ENOTJPEG");for(var o=0,s=n.length,A=!1;;){var u,h;if(o+1>=s)throw e("Unexpected EOF","EBADDATA");var f=n[o],c=n[o+1];if(255===f&&255===c)u=255,h=1;else if(255===f&&0!==c){if(h=2,208<=(u=c)&&u<=217||1===u);else{if(o+3>=s)throw e("Unexpected EOF","EBADDATA");if((h+=256*n[o+2]+n[o+3])<2)throw e("Invalid segment length","EBADDATA");if(o+h-1>=s)throw e("Unexpected EOF","EBADDATA")}A&&(u>=208&&u<=215||(A=!1)),218===u&&(A=!0)}else{if(!A)throw e("Unexpected byte at segment start: "+r(f)+" (offset "+r(o)+")","EBADDATA");for(var l=o+1;;l++){if(l>=s)throw e("Unexpected EOF","EBADDATA");if(255===n[l]){if(l+1>=s)throw e("Unexpected EOF","EBADDATA");if(0!==n[l+1]){u=0,h=l-o;break}}}}if(!1===a({code:u,offset:o,length:h}))break;if(217===u)break;o+=h}},t.exports.jpeg_segments_filter=function(r,n){if(!i(r))throw e("Invalid argument (jpeg_bin), Uint8Array expected","EINVAL");if("function"!=typeof n)throw e("Invalid argument (on_segment), Function expected","EINVAL");var a=[],o=0;t.exports.jpeg_segments_each(r,function(t){var e=n(t);if(i(e))a.push({data:e}),o+=e.length;else if(Array.isArray(e))e.filter(i).forEach(function(t){a.push({data:t}),o+=t.length});else if(!1!==e){var r={start:t.offset,end:t.offset+t.length};a.length>0&&a[a.length-1].end===r.start?a[a.length-1].end=r.end:a.push(r),o+=t.length}});var s=new Uint8Array(o),A=0;return a.forEach(function(t){var e=t.data||r.subarray(t.start,t.end);s.set(e,A),A+=e.length}),s},t.exports.jpeg_exif_tags_each=function(r,n){if(!i(r))throw e("Invalid argument (jpeg_bin), Uint8Array expected","EINVAL");if("function"!=typeof n)throw e("Invalid argument (on_exif_entry), Function expected","EINVAL");t.exports.jpeg_segments_each(r,function(t){return 218!==t.code&&(225===t.code&&t.length>=10&&69===r[t.offset+4]&&120===r[t.offset+5]&&105===r[t.offset+6]&&102===r[t.offset+7]&&0===r[t.offset+8]&&0===r[t.offset+9]?(new a(r,t.offset+10,t.offset+t.length).each(n),!1):void 0)})},t.exports.jpeg_exif_tags_filter=function(r,n){if(!i(r))throw e("Invalid argument (jpeg_bin), Uint8Array expected","EINVAL");if("function"!=typeof n)throw e("Invalid argument (on_exif_entry), Function expected","EINVAL");var o=!1;return t.exports.jpeg_segments_filter(r,function(t){if(!o&&(218===t.code&&(o=!0),225===t.code&&t.length>=10&&69===r[t.offset+4]&&120===r[t.offset+5]&&105===r[t.offset+6]&&102===r[t.offset+7]&&0===r[t.offset+8]&&0===r[t.offset+9])){var e=new a(r,t.offset+10,t.offset+t.length).filter(n);if(!e)return!1;var i=new Uint8Array(10);return i.set(r.slice(t.offset,t.offset+10)),i[2]=e.length+8>>>8&255,i[3]=e.length+8&255,o=!0,[i,e]}})},t.exports.jpeg_add_comment=function(e,r){var n=!1,i=0;return t.exports.jpeg_segments_filter(e,function(t){if(!(1===++i&&216===t.code||2===i&&224===t.code||n)){r=function(t){try{return unescape(encodeURIComponent(t))}catch(e){return t}}(r);var a=new Uint8Array(5+r.length),o=0;return a[o++]=255,a[o++]=254,a[o++]=r.length+3>>>8&255,a[o++]=r.length+3&255,r.split("").forEach(function(t){a[o++]=255&t.charCodeAt(0)}),a[o++]=0,n=!0,[a,e.subarray(t.offset,t.offset+t.length)]}})}});function u(t){return this._getUint8Array(t.blob).then(function(e){if(t.is_jpeg=A.is_jpeg(e),!t.is_jpeg)return Promise.resolve(t);t.orig_blob=t.blob;try{var r,n;if(A.jpeg_exif_tags_each(e,function(e){if(0===e.ifd&&274===e.tag&&Array.isArray(e.value))return t.orientation=e.value[0]||1,r=e.is_big_endian,n=e.data_offset,!1}),n){var i=r?new Uint8Array([0,1]):new Uint8Array([1,0]);t.blob=new Blob([e.slice(0,n),i,e.slice(n+2)],{type:"image/jpeg"})}}catch(t){}return t})}function h(t){if(!t.is_jpeg)return Promise.resolve(t);var e,r=t.orientation-1;if(!r)return Promise.resolve(t);var n=(e=4&r?this.pica.options.createCanvas(t.out_canvas.height,t.out_canvas.width):this.pica.options.createCanvas(t.out_canvas.width,t.out_canvas.height)).getContext("2d");return n.save(),1&r&&n.transform(-1,0,0,1,e.width,0),2&r&&n.transform(-1,0,0,-1,e.width,e.height),4&r&&n.transform(0,1,1,0,0,0),n.drawImage(t.out_canvas,0,0),n.restore(),t.out_canvas.width=t.out_canvas.height=0,t.out_canvas=e,Promise.resolve(t)}function f(t){return t.is_jpeg?Promise.all([this._getUint8Array(t.blob),this._getUint8Array(t.out_blob)]).then(function(e){var r=e[0],n=e[1];if(!A.is_jpeg(r))return Promise.resolve(t);var i=[];return A.jpeg_segments_each(r,function(t){if(218===t.code)return!1;i.push(t)}),i=i.filter(function(t){return 226!==t.code&&(t.code>=224&&t.code<240||254===t.code)}).map(function(t){return r.slice(t.offset,t.offset+t.length)}),t.out_blob=new Blob([n.slice(0,2)].concat(i).concat([n.slice(20)]),{type:"image/jpeg"}),t}):Promise.resolve(t)}var c={jpeg_patch_exif:u,jpeg_rotate_canvas:h,jpeg_attach_orig_segments:f,assign:function(t){t.before("_blob_to_image",u),t.after("_transform",h),t.after("_create_blob",f)}};function l(t){if(!(this instanceof l))return new l(t);t=t||{},this.pica=t.pica||s({}),this.initialized=!1,this.utils=i}l.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this},l.prototype.init=function(){this.use(c.assign)},l.prototype.toBlob=function(t,e){var r={blob:t,opts:i.assign({max:1/0},e)};return this.initialized||(this.init(),this.initialized=!0),Promise.resolve(r).then(this._blob_to_image).then(this._calculate_size).then(this._transform).then(this._cleanup).then(this._create_blob).then(function(t){return t.out_canvas.width=t.out_canvas.height=0,t.out_blob})},l.prototype.toCanvas=function(t,e){var r={blob:t,opts:i.assign({max:1/0},e)};return this.initialized||(this.init(),this.initialized=!0),Promise.resolve(r).then(this._blob_to_image).then(this._calculate_size).then(this._transform).then(this._cleanup).then(function(t){return t.out_canvas})},l.prototype.before=function(t,e){if(!this[t])throw new Error('Method "'+t+'" does not exist');if("function"!=typeof e)throw new Error('Invalid argument "fn", function expected');var r=this[t],n=this;return this[t]=function(t){return e.call(n,t).then(function(t){return r.call(n,t)})},this},l.prototype.after=function(t,e){if(!this[t])throw new Error('Method "'+t+'" does not exist');if("function"!=typeof e)throw new Error('Invalid argument "fn", function expected');var r=this[t],n=this;return this[t]=function(t){return r.call(n,t).then(function(t){return e.call(n,t)})},this},l.prototype._blob_to_image=function(t){var e=window.URL||window.webkitURL||window.mozURL||window.msURL;return t.image=document.createElement("img"),t.image_url=e.createObjectURL(t.blob),t.image.src=t.image_url,new Promise(function(e,r){t.image.onerror=function(){r(new Error("ImageBlobReduce: failed to create Image() from blob"))},t.image.onload=function(){e(t)}})},l.prototype._calculate_size=function(t){var e=t.opts.max/Math.max(t.image.width,t.image.height);return e>1&&(e=1),t.transform_width=Math.max(Math.round(t.image.width*e),1),t.transform_height=Math.max(Math.round(t.image.height*e),1),t.scale_factor=e,Promise.resolve(t)},l.prototype._transform=function(t){t.out_canvas=this.pica.options.createCanvas(t.transform_width,t.transform_height),t.transform_width=null,t.transform_height=null;var e={alpha:"image/png"===t.blob.type};return this.utils.assign(e,this.utils.pick_pica_resize_options(t.opts)),this.pica.resize(t.image,t.out_canvas,e).then(function(){return t})},l.prototype._cleanup=function(t){t.image.src="",t.image=null;var e=window.URL||window.webkitURL||window.mozURL||window.msURL;return e.revokeObjectURL&&e.revokeObjectURL(t.image_url),t.image_url=null,Promise.resolve(t)},l.prototype._create_blob=function(t){return this.pica.toBlob(t.out_canvas,t.blob.type).then(function(e){return t.out_blob=e,t})},l.prototype._getUint8Array=function(t){return t.arrayBuffer?t.arrayBuffer().then(function(t){return new Uint8Array(t)}):new Promise(function(e,r){var n=new FileReader;n.readAsArrayBuffer(t),n.onload=function(){e(new Uint8Array(n.result))},n.onerror=function(){r(new Error("ImageBlobReduce: failed to load data from input blob")),n.abort()},n.onabort=function(){r(new Error("ImageBlobReduce: failed to load data from input blob (aborted)"))}})},l.pica=s;const g=l}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[2271],{69945(t,e,n){n.d(e,{A:()=>Yt});var r={};n.r(r),n.d(r,{arrayReplaceAt:()=>d,assign:()=>f,escapeHtml:()=>w,escapeRE:()=>I,fromCodePoint:()=>m,has:()=>p,isMdAsciiPunct:()=>E,isPunctChar:()=>T,isSpace:()=>L,isString:()=>h,isValidEntityCode:()=>k,isWhiteSpace:()=>z,lib:()=>O,normalizeReference:()=>$,unescapeAll:()=>y,unescapeMd:()=>C});var s={};n.r(s),n.d(s,{parseLinkDestination:()=>P,parseLinkLabel:()=>q,parseLinkTitle:()=>R});var o=n(45342),i=n(97246),c=n(2889),l=n(40304),a=n(27010);function h(t){return"[object String]"===function(t){return Object.prototype.toString.call(t)}(t)}const u=Object.prototype.hasOwnProperty;function p(t,e){return u.call(t,e)}function f(t){return Array.prototype.slice.call(arguments,1).forEach(function(e){if(e){if("object"!=typeof e)throw new TypeError(e+"must be object");Object.keys(e).forEach(function(n){t[n]=e[n]})}}),t}function d(t,e,n){return[].concat(t.slice(0,e),n,t.slice(e+1))}function k(t){return!(t>=55296&&t<=57343)&&(!(t>=64976&&t<=65007)&&(!!(65535&~t&&65534!=(65535&t))&&(!(t>=0&&t<=8)&&(11!==t&&(!(t>=14&&t<=31)&&(!(t>=127&&t<=159)&&!(t>1114111)))))))}function m(t){if(t>65535){const e=55296+((t-=65536)>>10),n=56320+(1023&t);return String.fromCharCode(e,n)}return String.fromCharCode(t)}const g=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,b=new RegExp(g.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),_=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function C(t){return t.indexOf("\\")<0?t:t.replace(g,"$1")}function y(t){return t.indexOf("\\")<0&&t.indexOf("&")<0?t:t.replace(b,function(t,e,n){return e||function(t,e){if(35===e.charCodeAt(0)&&_.test(e)){const n="x"===e[1].toLowerCase()?parseInt(e.slice(2),16):parseInt(e.slice(1),10);return k(n)?m(n):t}const n=(0,a.Gz)(t);return n!==t?n:t}(t,n)})}const A=/[&<>"]/,x=/[&<>"]/g,M={"&":"&","<":"<",">":">",'"':"""};function v(t){return M[t]}function w(t){return A.test(t)?t.replace(x,v):t}const S=/[.?*+^$[\]\\(){}|-]/g;function I(t){return t.replace(S,"\\$&")}function L(t){switch(t){case 9:case 32:return!0}return!1}function z(t){if(t>=8192&&t<=8202)return!0;switch(t){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function T(t){return i.A.test(t)||c.A.test(t)}function E(t){switch(t){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function $(t){return t=t.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(t=t.replace(/ẞ/g,"ß")),t.toLowerCase().toUpperCase()}const O={mdurl:o,ucmicro:l};function q(t,e,n){let r,s,o,i;const c=t.posMax,l=t.pos;for(t.pos=e+1,r=1;t.pos<c;){if(o=t.src.charCodeAt(t.pos),93===o&&(r--,0===r)){s=!0;break}if(i=t.pos,t.md.inline.skipToken(t),91===o)if(i===t.pos-1)r++;else if(n)return t.pos=l,-1}let a=-1;return s&&(a=t.pos),t.pos=l,a}function P(t,e,n){let r,s=e;const o={ok:!1,pos:0,str:""};if(60===t.charCodeAt(s)){for(s++;s<n;){if(r=t.charCodeAt(s),10===r)return o;if(60===r)return o;if(62===r)return o.pos=s+1,o.str=y(t.slice(e+1,s)),o.ok=!0,o;92===r&&s+1<n?s+=2:s++}return o}let i=0;for(;s<n&&(r=t.charCodeAt(s),32!==r)&&!(r<32||127===r);)if(92===r&&s+1<n){if(32===t.charCodeAt(s+1))break;s+=2}else{if(40===r&&(i++,i>32))return o;if(41===r){if(0===i)break;i--}s++}return e===s||0!==i||(o.str=y(t.slice(e,s)),o.pos=s,o.ok=!0),o}function R(t,e,n,r){let s,o=e;const i={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)i.str=r.str,i.marker=r.marker;else{if(o>=n)return i;let r=t.charCodeAt(o);if(34!==r&&39!==r&&40!==r)return i;e++,o++,40===r&&(r=41),i.marker=r}for(;o<n;){if(s=t.charCodeAt(o),s===i.marker)return i.pos=o+1,i.str+=y(t.slice(e,o)),i.ok=!0,i;if(40===s&&41===i.marker)return i;92===s&&o+1<n&&o++,o++}return i.can_continue=!0,i.str+=y(t.slice(e,o)),i}const j={};function Z(){this.rules=f({},j)}j.code_inline=function(t,e,n,r,s){const o=t[e];return"<code"+s.renderAttrs(o)+">"+w(o.content)+"</code>"},j.code_block=function(t,e,n,r,s){const o=t[e];return"<pre"+s.renderAttrs(o)+"><code>"+w(t[e].content)+"</code></pre>\n"},j.fence=function(t,e,n,r,s){const o=t[e],i=o.info?y(o.info).trim():"";let c,l="",a="";if(i){const t=i.split(/(\s+)/g);l=t[0],a=t.slice(2).join("")}if(c=n.highlight&&n.highlight(o.content,l,a)||w(o.content),0===c.indexOf("<pre"))return c+"\n";if(i){const t=o.attrIndex("class"),e=o.attrs?o.attrs.slice():[];t<0?e.push(["class",n.langPrefix+l]):(e[t]=e[t].slice(),e[t][1]+=" "+n.langPrefix+l);const r={attrs:e};return`<pre><code${s.renderAttrs(r)}>${c}</code></pre>\n`}return`<pre><code${s.renderAttrs(o)}>${c}</code></pre>\n`},j.image=function(t,e,n,r,s){const o=t[e];return o.attrs[o.attrIndex("alt")][1]=s.renderInlineAsText(o.children,n,r),s.renderToken(t,e,n)},j.hardbreak=function(t,e,n){return n.xhtmlOut?"<br />\n":"<br>\n"},j.softbreak=function(t,e,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},j.text=function(t,e){return w(t[e].content)},j.html_block=function(t,e){return t[e].content},j.html_inline=function(t,e){return t[e].content},Z.prototype.renderAttrs=function(t){let e,n,r;if(!t.attrs)return"";for(r="",e=0,n=t.attrs.length;e<n;e++)r+=" "+w(t.attrs[e][0])+'="'+w(t.attrs[e][1])+'"';return r},Z.prototype.renderToken=function(t,e,n){const r=t[e];let s="";if(r.hidden)return"";r.block&&-1!==r.nesting&&e&&t[e-1].hidden&&(s+="\n"),s+=(-1===r.nesting?"</":"<")+r.tag,s+=this.renderAttrs(r),0===r.nesting&&n.xhtmlOut&&(s+=" /");let o=!1;if(r.block&&(o=!0,1===r.nesting&&e+1<t.length)){const n=t[e+1];("inline"===n.type||n.hidden||-1===n.nesting&&n.tag===r.tag)&&(o=!1)}return s+=o?">\n":">",s},Z.prototype.renderInline=function(t,e,n){let r="";const s=this.rules;for(let o=0,i=t.length;o<i;o++){const i=t[o].type;void 0!==s[i]?r+=s[i](t,o,e,n,this):r+=this.renderToken(t,o,e)}return r},Z.prototype.renderInlineAsText=function(t,e,n){let r="";for(let s=0,o=t.length;s<o;s++)switch(t[s].type){case"text":case"html_inline":case"html_block":r+=t[s].content;break;case"image":r+=this.renderInlineAsText(t[s].children,e,n);break;case"softbreak":case"hardbreak":r+="\n"}return r},Z.prototype.render=function(t,e,n){let r="";const s=this.rules;for(let o=0,i=t.length;o<i;o++){const i=t[o].type;"inline"===i?r+=this.renderInline(t[o].children,e,n):void 0!==s[i]?r+=s[i](t,o,e,n,this):r+=this.renderToken(t,o,e,n)}return r};const D=Z;function N(){this.__rules__=[],this.__cache__=null}N.prototype.__find__=function(t){for(let e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1},N.prototype.__compile__=function(){const t=this,e=[""];t.__rules__.forEach(function(t){t.enabled&&t.alt.forEach(function(t){e.indexOf(t)<0&&e.push(t)})}),t.__cache__={},e.forEach(function(e){t.__cache__[e]=[],t.__rules__.forEach(function(n){n.enabled&&(e&&n.alt.indexOf(e)<0||t.__cache__[e].push(n.fn))})})},N.prototype.at=function(t,e,n){const r=this.__find__(t),s=n||{};if(-1===r)throw new Error("Parser rule not found: "+t);this.__rules__[r].fn=e,this.__rules__[r].alt=s.alt||[],this.__cache__=null},N.prototype.before=function(t,e,n,r){const s=this.__find__(t),o=r||{};if(-1===s)throw new Error("Parser rule not found: "+t);this.__rules__.splice(s,0,{name:e,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},N.prototype.after=function(t,e,n,r){const s=this.__find__(t),o=r||{};if(-1===s)throw new Error("Parser rule not found: "+t);this.__rules__.splice(s+1,0,{name:e,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},N.prototype.push=function(t,e,n){const r=n||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:r.alt||[]}),this.__cache__=null},N.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);const n=[];return t.forEach(function(t){const r=this.__find__(t);if(r<0){if(e)return;throw new Error("Rules manager: invalid rule name "+t)}this.__rules__[r].enabled=!0,n.push(t)},this),this.__cache__=null,n},N.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(t){t.enabled=!1}),this.enable(t,e)},N.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);const n=[];return t.forEach(function(t){const r=this.__find__(t);if(r<0){if(e)return;throw new Error("Rules manager: invalid rule name "+t)}this.__rules__[r].enabled=!1,n.push(t)},this),this.__cache__=null,n},N.prototype.getRules=function(t){return null===this.__cache__&&this.__compile__(),this.__cache__[t]||[]};const B=N;function G(t,e,n){this.type=t,this.tag=e,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}G.prototype.attrIndex=function(t){if(!this.attrs)return-1;const e=this.attrs;for(let n=0,r=e.length;n<r;n++)if(e[n][0]===t)return n;return-1},G.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]},G.prototype.attrSet=function(t,e){const n=this.attrIndex(t),r=[t,e];n<0?this.attrPush(r):this.attrs[n]=r},G.prototype.attrGet=function(t){const e=this.attrIndex(t);let n=null;return e>=0&&(n=this.attrs[e][1]),n},G.prototype.attrJoin=function(t,e){const n=this.attrIndex(t);n<0?this.attrPush([t,e]):this.attrs[n][1]=this.attrs[n][1]+" "+e};const W=G;function F(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}F.prototype.Token=W;const U=F,H=/\r\n?|\n/g,J=/\0/g;function V(t){return/^<a[>\s]/i.test(t)}function K(t){return/^<\/a\s*>/i.test(t)}const Q=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,X=/\((c|tm|r)\)/i,Y=/\((c|tm|r)\)/gi,tt={c:"©",r:"®",tm:"™"};function et(t,e){return tt[e.toLowerCase()]}function nt(t){let e=0;for(let n=t.length-1;n>=0;n--){const r=t[n];"text"!==r.type||e||(r.content=r.content.replace(Y,et)),"link_open"===r.type&&"auto"===r.info&&e--,"link_close"===r.type&&"auto"===r.info&&e++}}function rt(t){let e=0;for(let n=t.length-1;n>=0;n--){const r=t[n];"text"!==r.type||e||Q.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===r.type&&"auto"===r.info&&e--,"link_close"===r.type&&"auto"===r.info&&e++}}const st=/['"]/,ot=/['"]/g;function it(t,e,n){return t.slice(0,e)+n+t.slice(e+1)}function ct(t,e){let n;const r=[];for(let s=0;s<t.length;s++){const o=t[s],i=t[s].level;for(n=r.length-1;n>=0&&!(r[n].level<=i);n--);if(r.length=n+1,"text"!==o.type)continue;let c=o.content,l=0,a=c.length;t:for(;l<a;){ot.lastIndex=l;const h=ot.exec(c);if(!h)break;let u=!0,p=!0;l=h.index+1;const f="'"===h[0];let d=32;if(h.index-1>=0)d=c.charCodeAt(h.index-1);else for(n=s-1;n>=0&&("softbreak"!==t[n].type&&"hardbreak"!==t[n].type);n--)if(t[n].content){d=t[n].content.charCodeAt(t[n].content.length-1);break}let k=32;if(l<a)k=c.charCodeAt(l);else for(n=s+1;n<t.length&&("softbreak"!==t[n].type&&"hardbreak"!==t[n].type);n++)if(t[n].content){k=t[n].content.charCodeAt(0);break}const m=E(d)||T(String.fromCharCode(d)),g=E(k)||T(String.fromCharCode(k)),b=z(d),_=z(k);if(_?u=!1:g&&(b||m||(u=!1)),b?p=!1:m&&(_||g||(p=!1)),34===k&&'"'===h[0]&&d>=48&&d<=57&&(p=u=!1),u&&p&&(u=m,p=g),u||p){if(p)for(n=r.length-1;n>=0;n--){let u=r[n];if(r[n].level<i)break;if(u.single===f&&r[n].level===i){let i,p;u=r[n],f?(i=e.md.options.quotes[2],p=e.md.options.quotes[3]):(i=e.md.options.quotes[0],p=e.md.options.quotes[1]),o.content=it(o.content,h.index,p),t[u.token].content=it(t[u.token].content,u.pos,i),l+=p.length-1,u.token===s&&(l+=i.length-1),c=o.content,a=c.length,r.length=n;continue t}}u?r.push({token:s,pos:h.index,single:f,level:i}):p&&f&&(o.content=it(o.content,h.index,"’"))}else f&&(o.content=it(o.content,h.index,"’"))}}}const lt=[["normalize",function(t){let e;e=t.src.replace(H,"\n"),e=e.replace(J,"�"),t.src=e}],["block",function(t){let e;t.inlineMode?(e=new t.Token("inline","",0),e.content=t.src,e.map=[0,1],e.children=[],t.tokens.push(e)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}],["inline",function(t){const e=t.tokens;for(let n=0,r=e.length;n<r;n++){const r=e[n];"inline"===r.type&&t.md.inline.parse(r.content,t.md,t.env,r.children)}}],["linkify",function(t){const e=t.tokens;if(t.md.options.linkify)for(let n=0,r=e.length;n<r;n++){if("inline"!==e[n].type||!t.md.linkify.pretest(e[n].content))continue;let r=e[n].children,s=0;for(let o=r.length-1;o>=0;o--){const i=r[o];if("link_close"!==i.type){if("html_inline"===i.type&&(V(i.content)&&s>0&&s--,K(i.content)&&s++),!(s>0)&&"text"===i.type&&t.md.linkify.test(i.content)){const s=i.content;let c=t.md.linkify.match(s);const l=[];let a=i.level,h=0;c.length>0&&0===c[0].index&&o>0&&"text_special"===r[o-1].type&&(c=c.slice(1));for(let e=0;e<c.length;e++){const n=c[e].url,r=t.md.normalizeLink(n);if(!t.md.validateLink(r))continue;let o=c[e].text;o=c[e].schema?"mailto:"!==c[e].schema||/^mailto:/i.test(o)?t.md.normalizeLinkText(o):t.md.normalizeLinkText("mailto:"+o).replace(/^mailto:/,""):t.md.normalizeLinkText("http://"+o).replace(/^http:\/\//,"");const i=c[e].index;if(i>h){const e=new t.Token("text","",0);e.content=s.slice(h,i),e.level=a,l.push(e)}const u=new t.Token("link_open","a",1);u.attrs=[["href",r]],u.level=a++,u.markup="linkify",u.info="auto",l.push(u);const p=new t.Token("text","",0);p.content=o,p.level=a,l.push(p);const f=new t.Token("link_close","a",-1);f.level=--a,f.markup="linkify",f.info="auto",l.push(f),h=c[e].lastIndex}if(h<s.length){const e=new t.Token("text","",0);e.content=s.slice(h),e.level=a,l.push(e)}e[n].children=r=d(r,o,l)}}else for(o--;r[o].level!==i.level&&"link_open"!==r[o].type;)o--}}}],["replacements",function(t){let e;if(t.md.options.typographer)for(e=t.tokens.length-1;e>=0;e--)"inline"===t.tokens[e].type&&(X.test(t.tokens[e].content)&&nt(t.tokens[e].children),Q.test(t.tokens[e].content)&&rt(t.tokens[e].children))}],["smartquotes",function(t){if(t.md.options.typographer)for(let e=t.tokens.length-1;e>=0;e--)"inline"===t.tokens[e].type&&st.test(t.tokens[e].content)&&ct(t.tokens[e].children,t)}],["text_join",function(t){let e,n;const r=t.tokens,s=r.length;for(let t=0;t<s;t++){if("inline"!==r[t].type)continue;const s=r[t].children,o=s.length;for(e=0;e<o;e++)"text_special"===s[e].type&&(s[e].type="text");for(e=n=0;e<o;e++)"text"===s[e].type&&e+1<o&&"text"===s[e+1].type?s[e+1].content=s[e].content+s[e+1].content:(e!==n&&(s[n]=s[e]),n++);e!==n&&(s.length=n)}}]];function at(){this.ruler=new B;for(let t=0;t<lt.length;t++)this.ruler.push(lt[t][0],lt[t][1])}at.prototype.process=function(t){const e=this.ruler.getRules("");for(let n=0,r=e.length;n<r;n++)e[n](t)},at.prototype.State=U;const ht=at;function ut(t,e,n,r){this.src=t,this.md=e,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const s=this.src;for(let t=0,e=0,n=0,r=0,o=s.length,i=!1;e<o;e++){const c=s.charCodeAt(e);if(!i){if(L(c)){n++,9===c?r+=4-r%4:r++;continue}i=!0}10!==c&&e!==o-1||(10!==c&&e++,this.bMarks.push(t),this.eMarks.push(e),this.tShift.push(n),this.sCount.push(r),this.bsCount.push(0),i=!1,n=0,r=0,t=e+1)}this.bMarks.push(s.length),this.eMarks.push(s.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}ut.prototype.push=function(t,e,n){const r=new W(t,e,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},ut.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},ut.prototype.skipEmptyLines=function(t){for(let e=this.lineMax;t<e&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t},ut.prototype.skipSpaces=function(t){for(let e=this.src.length;t<e;t++){if(!L(this.src.charCodeAt(t)))break}return t},ut.prototype.skipSpacesBack=function(t,e){if(t<=e)return t;for(;t>e;)if(!L(this.src.charCodeAt(--t)))return t+1;return t},ut.prototype.skipChars=function(t,e){for(let n=this.src.length;t<n&&this.src.charCodeAt(t)===e;t++);return t},ut.prototype.skipCharsBack=function(t,e,n){if(t<=n)return t;for(;t>n;)if(e!==this.src.charCodeAt(--t))return t+1;return t},ut.prototype.getLines=function(t,e,n,r){if(t>=e)return"";const s=new Array(e-t);for(let o=0,i=t;i<e;i++,o++){let t=0;const c=this.bMarks[i];let l,a=c;for(l=i+1<e||r?this.eMarks[i]+1:this.eMarks[i];a<l&&t<n;){const e=this.src.charCodeAt(a);if(L(e))9===e?t+=4-(t+this.bsCount[i])%4:t++;else{if(!(a-c<this.tShift[i]))break;t++}a++}s[o]=t>n?new Array(t-n+1).join(" ")+this.src.slice(a,l):this.src.slice(a,l)}return s.join("")},ut.prototype.Token=W;const pt=ut;function ft(t,e){const n=t.bMarks[e]+t.tShift[e],r=t.eMarks[e];return t.src.slice(n,r)}function dt(t){const e=[],n=t.length;let r=0,s=t.charCodeAt(r),o=!1,i=0,c="";for(;r<n;)124===s&&(o?(c+=t.substring(i,r-1),i=r):(e.push(c+t.substring(i,r)),c="",i=r+1)),o=92===s,r++,s=t.charCodeAt(r);return e.push(c+t.substring(i)),e}function kt(t,e){const n=t.eMarks[e];let r=t.bMarks[e]+t.tShift[e];const s=t.src.charCodeAt(r++);if(42!==s&&45!==s&&43!==s)return-1;if(r<n){if(!L(t.src.charCodeAt(r)))return-1}return r}function mt(t,e){const n=t.bMarks[e]+t.tShift[e],r=t.eMarks[e];let s=n;if(s+1>=r)return-1;let o=t.src.charCodeAt(s++);if(o<48||o>57)return-1;for(;;){if(s>=r)return-1;if(o=t.src.charCodeAt(s++),!(o>=48&&o<=57)){if(41===o||46===o)break;return-1}if(s-n>=10)return-1}return s<r&&(o=t.src.charCodeAt(s),!L(o))?-1:s}const gt="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",bt="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",_t=new RegExp("^(?:"+gt+"|"+bt+"|\x3c!---?>|\x3c!--(?:[^-]|-[^-]|--[^>])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),Ct=new RegExp("^(?:"+gt+"|"+bt+")"),yt=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"].join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Ct.source+"\\s*$"),/^$/,!1]];const At=[["table",function(t,e,n,r){if(e+2>n)return!1;let s=e+1;if(t.sCount[s]<t.blkIndent)return!1;if(t.sCount[s]-t.blkIndent>=4)return!1;let o=t.bMarks[s]+t.tShift[s];if(o>=t.eMarks[s])return!1;const i=t.src.charCodeAt(o++);if(124!==i&&45!==i&&58!==i)return!1;if(o>=t.eMarks[s])return!1;const c=t.src.charCodeAt(o++);if(124!==c&&45!==c&&58!==c&&!L(c))return!1;if(45===i&&L(c))return!1;for(;o<t.eMarks[s];){const e=t.src.charCodeAt(o);if(124!==e&&45!==e&&58!==e&&!L(e))return!1;o++}let l=ft(t,e+1),a=l.split("|");const h=[];for(let t=0;t<a.length;t++){const e=a[t].trim();if(!e){if(0===t||t===a.length-1)continue;return!1}if(!/^:?-+:?$/.test(e))return!1;58===e.charCodeAt(e.length-1)?h.push(58===e.charCodeAt(0)?"center":"right"):58===e.charCodeAt(0)?h.push("left"):h.push("")}if(l=ft(t,e).trim(),-1===l.indexOf("|"))return!1;if(t.sCount[e]-t.blkIndent>=4)return!1;a=dt(l),a.length&&""===a[0]&&a.shift(),a.length&&""===a[a.length-1]&&a.pop();const u=a.length;if(0===u||u!==h.length)return!1;if(r)return!0;const p=t.parentType;t.parentType="table";const f=t.md.block.ruler.getRules("blockquote"),d=[e,0];t.push("table_open","table",1).map=d,t.push("thead_open","thead",1).map=[e,e+1],t.push("tr_open","tr",1).map=[e,e+1];for(let e=0;e<a.length;e++){const n=t.push("th_open","th",1);h[e]&&(n.attrs=[["style","text-align:"+h[e]]]);const r=t.push("inline","",0);r.content=a[e].trim(),r.children=[],t.push("th_close","th",-1)}let k;t.push("tr_close","tr",-1),t.push("thead_close","thead",-1);let m=0;for(s=e+2;s<n&&!(t.sCount[s]<t.blkIndent);s++){let r=!1;for(let e=0,o=f.length;e<o;e++)if(f[e](t,s,n,!0)){r=!0;break}if(r)break;if(l=ft(t,s).trim(),!l)break;if(t.sCount[s]-t.blkIndent>=4)break;if(a=dt(l),a.length&&""===a[0]&&a.shift(),a.length&&""===a[a.length-1]&&a.pop(),m+=u-a.length,m>65536)break;if(s===e+2){t.push("tbody_open","tbody",1).map=k=[e+2,0]}t.push("tr_open","tr",1).map=[s,s+1];for(let e=0;e<u;e++){const n=t.push("td_open","td",1);h[e]&&(n.attrs=[["style","text-align:"+h[e]]]);const r=t.push("inline","",0);r.content=a[e]?a[e].trim():"",r.children=[],t.push("td_close","td",-1)}t.push("tr_close","tr",-1)}return k&&(t.push("tbody_close","tbody",-1),k[1]=s),t.push("table_close","table",-1),d[1]=s,t.parentType=p,t.line=s,!0},["paragraph","reference"]],["code",function(t,e,n){if(t.sCount[e]-t.blkIndent<4)return!1;let r=e+1,s=r;for(;r<n;)if(t.isEmpty(r))r++;else{if(!(t.sCount[r]-t.blkIndent>=4))break;r++,s=r}t.line=s;const o=t.push("code_block","code",0);return o.content=t.getLines(e,s,4+t.blkIndent,!1)+"\n",o.map=[e,t.line],!0}],["fence",function(t,e,n,r){let s=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;if(s+3>o)return!1;const i=t.src.charCodeAt(s);if(126!==i&&96!==i)return!1;let c=s;s=t.skipChars(s,i);let l=s-c;if(l<3)return!1;const a=t.src.slice(c,s),h=t.src.slice(s,o);if(96===i&&h.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;let u=e,p=!1;for(;(u++,!(u>=n))&&(s=c=t.bMarks[u]+t.tShift[u],o=t.eMarks[u],!(s<o&&t.sCount[u]<t.blkIndent));)if(t.src.charCodeAt(s)===i&&!(t.sCount[u]-t.blkIndent>=4||(s=t.skipChars(s,i),s-c<l||(s=t.skipSpaces(s),s<o)))){p=!0;break}l=t.sCount[e],t.line=u+(p?1:0);const f=t.push("fence","code",0);return f.info=h,f.content=t.getLines(e+1,u,l,!0),f.markup=a,f.map=[e,t.line],!0},["paragraph","reference","blockquote","list"]],["blockquote",function(t,e,n,r){let s=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];const i=t.lineMax;if(t.sCount[e]-t.blkIndent>=4)return!1;if(62!==t.src.charCodeAt(s))return!1;if(r)return!0;const c=[],l=[],a=[],h=[],u=t.md.block.ruler.getRules("blockquote"),p=t.parentType;t.parentType="blockquote";let f,d=!1;for(f=e;f<n;f++){const e=t.sCount[f]<t.blkIndent;if(s=t.bMarks[f]+t.tShift[f],o=t.eMarks[f],s>=o)break;if(62===t.src.charCodeAt(s++)&&!e){let e,n,r=t.sCount[f]+1;32===t.src.charCodeAt(s)?(s++,r++,n=!1,e=!0):9===t.src.charCodeAt(s)?(e=!0,(t.bsCount[f]+r)%4==3?(s++,r++,n=!1):n=!0):e=!1;let i=r;for(c.push(t.bMarks[f]),t.bMarks[f]=s;s<o;){const e=t.src.charCodeAt(s);if(!L(e))break;9===e?i+=4-(i+t.bsCount[f]+(n?1:0))%4:i++,s++}d=s>=o,l.push(t.bsCount[f]),t.bsCount[f]=t.sCount[f]+1+(e?1:0),a.push(t.sCount[f]),t.sCount[f]=i-r,h.push(t.tShift[f]),t.tShift[f]=s-t.bMarks[f];continue}if(d)break;let r=!1;for(let e=0,s=u.length;e<s;e++)if(u[e](t,f,n,!0)){r=!0;break}if(r){t.lineMax=f,0!==t.blkIndent&&(c.push(t.bMarks[f]),l.push(t.bsCount[f]),h.push(t.tShift[f]),a.push(t.sCount[f]),t.sCount[f]-=t.blkIndent);break}c.push(t.bMarks[f]),l.push(t.bsCount[f]),h.push(t.tShift[f]),a.push(t.sCount[f]),t.sCount[f]=-1}const k=t.blkIndent;t.blkIndent=0;const m=t.push("blockquote_open","blockquote",1);m.markup=">";const g=[e,0];m.map=g,t.md.block.tokenize(t,e,f),t.push("blockquote_close","blockquote",-1).markup=">",t.lineMax=i,t.parentType=p,g[1]=t.line;for(let n=0;n<h.length;n++)t.bMarks[n+e]=c[n],t.tShift[n+e]=h[n],t.sCount[n+e]=a[n],t.bsCount[n+e]=l[n];return t.blkIndent=k,!0},["paragraph","reference","blockquote","list"]],["hr",function(t,e,n,r){const s=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;let o=t.bMarks[e]+t.tShift[e];const i=t.src.charCodeAt(o++);if(42!==i&&45!==i&&95!==i)return!1;let c=1;for(;o<s;){const e=t.src.charCodeAt(o++);if(e!==i&&!L(e))return!1;e===i&&c++}if(c<3)return!1;if(r)return!0;t.line=e+1;const l=t.push("hr","hr",0);return l.map=[e,t.line],l.markup=Array(c+1).join(String.fromCharCode(i)),!0},["paragraph","reference","blockquote","list"]],["list",function(t,e,n,r){let s,o,i,c,l=e,a=!0;if(t.sCount[l]-t.blkIndent>=4)return!1;if(t.listIndent>=0&&t.sCount[l]-t.listIndent>=4&&t.sCount[l]<t.blkIndent)return!1;let h,u,p,f=!1;if(r&&"paragraph"===t.parentType&&t.sCount[l]>=t.blkIndent&&(f=!0),(p=mt(t,l))>=0){if(h=!0,i=t.bMarks[l]+t.tShift[l],u=Number(t.src.slice(i,p-1)),f&&1!==u)return!1}else{if(!((p=kt(t,l))>=0))return!1;h=!1}if(f&&t.skipSpaces(p)>=t.eMarks[l])return!1;if(r)return!0;const d=t.src.charCodeAt(p-1),k=t.tokens.length;h?(c=t.push("ordered_list_open","ol",1),1!==u&&(c.attrs=[["start",u]])):c=t.push("bullet_list_open","ul",1);const m=[l,0];c.map=m,c.markup=String.fromCharCode(d);let g=!1;const b=t.md.block.ruler.getRules("list"),_=t.parentType;for(t.parentType="list";l<n;){o=p,s=t.eMarks[l];const e=t.sCount[l]+p-(t.bMarks[l]+t.tShift[l]);let r=e;for(;o<s;){const e=t.src.charCodeAt(o);if(9===e)r+=4-(r+t.bsCount[l])%4;else{if(32!==e)break;r++}o++}const u=o;let f;f=u>=s?1:r-e,f>4&&(f=1);const k=e+f;c=t.push("list_item_open","li",1),c.markup=String.fromCharCode(d);const m=[l,0];c.map=m,h&&(c.info=t.src.slice(i,p-1));const _=t.tight,C=t.tShift[l],y=t.sCount[l],A=t.listIndent;if(t.listIndent=t.blkIndent,t.blkIndent=k,t.tight=!0,t.tShift[l]=u-t.bMarks[l],t.sCount[l]=r,u>=s&&t.isEmpty(l+1)?t.line=Math.min(t.line+2,n):t.md.block.tokenize(t,l,n,!0),t.tight&&!g||(a=!1),g=t.line-l>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=A,t.tShift[l]=C,t.sCount[l]=y,t.tight=_,c=t.push("list_item_close","li",-1),c.markup=String.fromCharCode(d),l=t.line,m[1]=l,l>=n)break;if(t.sCount[l]<t.blkIndent)break;if(t.sCount[l]-t.blkIndent>=4)break;let x=!1;for(let e=0,r=b.length;e<r;e++)if(b[e](t,l,n,!0)){x=!0;break}if(x)break;if(h){if(p=mt(t,l),p<0)break;i=t.bMarks[l]+t.tShift[l]}else if(p=kt(t,l),p<0)break;if(d!==t.src.charCodeAt(p-1))break}return c=h?t.push("ordered_list_close","ol",-1):t.push("bullet_list_close","ul",-1),c.markup=String.fromCharCode(d),m[1]=l,t.line=l,t.parentType=_,a&&function(t,e){const n=t.level+2;for(let r=e+2,s=t.tokens.length-2;r<s;r++)t.tokens[r].level===n&&"paragraph_open"===t.tokens[r].type&&(t.tokens[r+2].hidden=!0,t.tokens[r].hidden=!0,r+=2)}(t,k),!0},["paragraph","reference","blockquote"]],["reference",function(t,e,n,r){let s=t.bMarks[e]+t.tShift[e],o=t.eMarks[e],i=e+1;if(t.sCount[e]-t.blkIndent>=4)return!1;if(91!==t.src.charCodeAt(s))return!1;function c(e){const n=t.lineMax;if(e>=n||t.isEmpty(e))return null;let r=!1;if(t.sCount[e]-t.blkIndent>3&&(r=!0),t.sCount[e]<0&&(r=!0),!r){const r=t.md.block.ruler.getRules("reference"),s=t.parentType;t.parentType="reference";let o=!1;for(let s=0,i=r.length;s<i;s++)if(r[s](t,e,n,!0)){o=!0;break}if(t.parentType=s,o)return null}const s=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];return t.src.slice(s,o+1)}let l=t.src.slice(s,o+1);o=l.length;let a=-1;for(s=1;s<o;s++){const t=l.charCodeAt(s);if(91===t)return!1;if(93===t){a=s;break}if(10===t){const t=c(i);null!==t&&(l+=t,o=l.length,i++)}else if(92===t&&(s++,s<o&&10===l.charCodeAt(s))){const t=c(i);null!==t&&(l+=t,o=l.length,i++)}}if(a<0||58!==l.charCodeAt(a+1))return!1;for(s=a+2;s<o;s++){const t=l.charCodeAt(s);if(10===t){const t=c(i);null!==t&&(l+=t,o=l.length,i++)}else if(!L(t))break}const h=t.md.helpers.parseLinkDestination(l,s,o);if(!h.ok)return!1;const u=t.md.normalizeLink(h.str);if(!t.md.validateLink(u))return!1;s=h.pos;const p=s,f=i,d=s;for(;s<o;s++){const t=l.charCodeAt(s);if(10===t){const t=c(i);null!==t&&(l+=t,o=l.length,i++)}else if(!L(t))break}let k,m=t.md.helpers.parseLinkTitle(l,s,o);for(;m.can_continue;){const e=c(i);if(null===e)break;l+=e,s=o,o=l.length,i++,m=t.md.helpers.parseLinkTitle(l,s,o,m)}for(s<o&&d!==s&&m.ok?(k=m.str,s=m.pos):(k="",s=p,i=f);s<o;){if(!L(l.charCodeAt(s)))break;s++}if(s<o&&10!==l.charCodeAt(s)&&k)for(k="",s=p,i=f;s<o;){if(!L(l.charCodeAt(s)))break;s++}if(s<o&&10!==l.charCodeAt(s))return!1;const g=$(l.slice(1,a));return!!g&&(r||(void 0===t.env.references&&(t.env.references={}),void 0===t.env.references[g]&&(t.env.references[g]={title:k,href:u}),t.line=i),!0)}],["html_block",function(t,e,n,r){let s=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;if(!t.md.options.html)return!1;if(60!==t.src.charCodeAt(s))return!1;let i=t.src.slice(s,o),c=0;for(;c<yt.length&&!yt[c][0].test(i);c++);if(c===yt.length)return!1;if(r)return yt[c][2];let l=e+1;if(!yt[c][1].test(i))for(;l<n&&!(t.sCount[l]<t.blkIndent);l++)if(s=t.bMarks[l]+t.tShift[l],o=t.eMarks[l],i=t.src.slice(s,o),yt[c][1].test(i)){0!==i.length&&l++;break}t.line=l;const a=t.push("html_block","",0);return a.map=[e,l],a.content=t.getLines(e,l,t.blkIndent,!0),!0},["paragraph","reference","blockquote"]],["heading",function(t,e,n,r){let s=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;let i=t.src.charCodeAt(s);if(35!==i||s>=o)return!1;let c=1;for(i=t.src.charCodeAt(++s);35===i&&s<o&&c<=6;)c++,i=t.src.charCodeAt(++s);if(c>6||s<o&&!L(i))return!1;if(r)return!0;o=t.skipSpacesBack(o,s);const l=t.skipCharsBack(o,35,s);l>s&&L(t.src.charCodeAt(l-1))&&(o=l),t.line=e+1;const a=t.push("heading_open","h"+String(c),1);a.markup="########".slice(0,c),a.map=[e,t.line];const h=t.push("inline","",0);return h.content=t.src.slice(s,o).trim(),h.map=[e,t.line],h.children=[],t.push("heading_close","h"+String(c),-1).markup="########".slice(0,c),!0},["paragraph","reference","blockquote"]],["lheading",function(t,e,n){const r=t.md.block.ruler.getRules("paragraph");if(t.sCount[e]-t.blkIndent>=4)return!1;const s=t.parentType;t.parentType="paragraph";let o,i=0,c=e+1;for(;c<n&&!t.isEmpty(c);c++){if(t.sCount[c]-t.blkIndent>3)continue;if(t.sCount[c]>=t.blkIndent){let e=t.bMarks[c]+t.tShift[c];const n=t.eMarks[c];if(e<n&&(o=t.src.charCodeAt(e),(45===o||61===o)&&(e=t.skipChars(e,o),e=t.skipSpaces(e),e>=n))){i=61===o?1:2;break}}if(t.sCount[c]<0)continue;let e=!1;for(let s=0,o=r.length;s<o;s++)if(r[s](t,c,n,!0)){e=!0;break}if(e)break}if(!i)return!1;const l=t.getLines(e,c,t.blkIndent,!1).trim();t.line=c+1;const a=t.push("heading_open","h"+String(i),1);a.markup=String.fromCharCode(o),a.map=[e,t.line];const h=t.push("inline","",0);return h.content=l,h.map=[e,t.line-1],h.children=[],t.push("heading_close","h"+String(i),-1).markup=String.fromCharCode(o),t.parentType=s,!0}],["paragraph",function(t,e,n){const r=t.md.block.ruler.getRules("paragraph"),s=t.parentType;let o=e+1;for(t.parentType="paragraph";o<n&&!t.isEmpty(o);o++){if(t.sCount[o]-t.blkIndent>3)continue;if(t.sCount[o]<0)continue;let e=!1;for(let s=0,i=r.length;s<i;s++)if(r[s](t,o,n,!0)){e=!0;break}if(e)break}const i=t.getLines(e,o,t.blkIndent,!1).trim();t.line=o,t.push("paragraph_open","p",1).map=[e,t.line];const c=t.push("inline","",0);return c.content=i,c.map=[e,t.line],c.children=[],t.push("paragraph_close","p",-1),t.parentType=s,!0}]];function xt(){this.ruler=new B;for(let t=0;t<At.length;t++)this.ruler.push(At[t][0],At[t][1],{alt:(At[t][2]||[]).slice()})}xt.prototype.tokenize=function(t,e,n){const r=this.ruler.getRules(""),s=r.length,o=t.md.options.maxNesting;let i=e,c=!1;for(;i<n&&(t.line=i=t.skipEmptyLines(i),!(i>=n))&&!(t.sCount[i]<t.blkIndent);){if(t.level>=o){t.line=n;break}const e=t.line;let l=!1;for(let o=0;o<s;o++)if(l=r[o](t,i,n,!1),l){if(e>=t.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");t.tight=!c,t.isEmpty(t.line-1)&&(c=!0),i=t.line,i<n&&t.isEmpty(i)&&(c=!0,i++,t.line=i)}},xt.prototype.parse=function(t,e,n,r){if(!t)return;const s=new this.State(t,e,n,r);this.tokenize(s,s.line,s.lineMax)},xt.prototype.State=pt;const Mt=xt;function vt(t,e,n,r){this.src=t,this.env=n,this.md=e,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}vt.prototype.pushPending=function(){const t=new W("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t},vt.prototype.push=function(t,e,n){this.pending&&this.pushPending();const r=new W(t,e,n);let s=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],s={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(s),r},vt.prototype.scanDelims=function(t,e){const n=this.posMax,r=this.src.charCodeAt(t),s=t>0?this.src.charCodeAt(t-1):32;let o=t;for(;o<n&&this.src.charCodeAt(o)===r;)o++;const i=o-t,c=o<n?this.src.charCodeAt(o):32,l=E(s)||T(String.fromCharCode(s)),a=E(c)||T(String.fromCharCode(c)),h=z(s),u=z(c),p=!u&&(!a||h||l),f=!h&&(!l||u||a);return{can_open:p&&(e||!f||l),can_close:f&&(e||!p||a),length:i}},vt.prototype.Token=W;const wt=vt;function St(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}const It=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;const Lt=[];for(let t=0;t<256;t++)Lt.push(0);function zt(t,e){let n;const r=[],s=e.length;for(let o=0;o<s;o++){const s=e[o];if(126!==s.marker)continue;if(-1===s.end)continue;const i=e[s.end];n=t.tokens[s.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=t.tokens[i.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="","text"===t.tokens[i.token-1].type&&"~"===t.tokens[i.token-1].content&&r.push(i.token-1)}for(;r.length;){const e=r.pop();let s=e+1;for(;s<t.tokens.length&&"s_close"===t.tokens[s].type;)s++;s--,e!==s&&(n=t.tokens[s],t.tokens[s]=t.tokens[e],t.tokens[e]=n)}}"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){Lt[t.charCodeAt(0)]=1});const Tt={tokenize:function(t,e){const n=t.pos,r=t.src.charCodeAt(n);if(e)return!1;if(126!==r)return!1;const s=t.scanDelims(t.pos,!0);let o=s.length;const i=String.fromCharCode(r);if(o<2)return!1;let c;o%2&&(c=t.push("text","",0),c.content=i,o--);for(let e=0;e<o;e+=2)c=t.push("text","",0),c.content=i+i,t.delimiters.push({marker:r,length:0,token:t.tokens.length-1,end:-1,open:s.can_open,close:s.can_close});return t.pos+=s.length,!0},postProcess:function(t){const e=t.tokens_meta,n=t.tokens_meta.length;zt(t,t.delimiters);for(let r=0;r<n;r++)e[r]&&e[r].delimiters&&zt(t,e[r].delimiters)}};function Et(t,e){for(let n=e.length-1;n>=0;n--){const r=e[n];if(95!==r.marker&&42!==r.marker)continue;if(-1===r.end)continue;const s=e[r.end],o=n>0&&e[n-1].end===r.end+1&&e[n-1].marker===r.marker&&e[n-1].token===r.token-1&&e[r.end+1].token===s.token+1,i=String.fromCharCode(r.marker),c=t.tokens[r.token];c.type=o?"strong_open":"em_open",c.tag=o?"strong":"em",c.nesting=1,c.markup=o?i+i:i,c.content="";const l=t.tokens[s.token];l.type=o?"strong_close":"em_close",l.tag=o?"strong":"em",l.nesting=-1,l.markup=o?i+i:i,l.content="",o&&(t.tokens[e[n-1].token].content="",t.tokens[e[r.end+1].token].content="",n--)}}const $t={tokenize:function(t,e){const n=t.pos,r=t.src.charCodeAt(n);if(e)return!1;if(95!==r&&42!==r)return!1;const s=t.scanDelims(t.pos,42===r);for(let e=0;e<s.length;e++){t.push("text","",0).content=String.fromCharCode(r),t.delimiters.push({marker:r,length:s.length,token:t.tokens.length-1,end:-1,open:s.can_open,close:s.can_close})}return t.pos+=s.length,!0},postProcess:function(t){const e=t.tokens_meta,n=t.tokens_meta.length;Et(t,t.delimiters);for(let r=0;r<n;r++)e[r]&&e[r].delimiters&&Et(t,e[r].delimiters)}};const Ot=/^([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])?)*)$/,qt=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;const Pt=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Rt=/^&([a-z][a-z0-9]{1,31});/i;function jt(t){const e={},n=t.length;if(!n)return;let r=0,s=-2;const o=[];for(let i=0;i<n;i++){const n=t[i];if(o.push(0),t[r].marker===n.marker&&s===n.token-1||(r=i),s=n.token,n.length=n.length||0,!n.close)continue;e.hasOwnProperty(n.marker)||(e[n.marker]=[-1,-1,-1,-1,-1,-1]);const c=e[n.marker][(n.open?3:0)+n.length%3];let l=r-o[r]-1,a=l;for(;l>c;l-=o[l]+1){const e=t[l];if(e.marker===n.marker&&(e.open&&e.end<0)){let r=!1;if((e.close||n.open)&&(e.length+n.length)%3==0&&(e.length%3==0&&n.length%3==0||(r=!0)),!r){const r=l>0&&!t[l-1].open?o[l-1]+1:0;o[i]=i-l+r,o[l]=r,n.open=!1,e.end=i,e.close=!1,a=-1,s=-2;break}}}-1!==a&&(e[n.marker][(n.open?3:0)+(n.length||0)%3]=a)}}const Zt=[["text",function(t,e){let n=t.pos;for(;n<t.posMax&&!St(t.src.charCodeAt(n));)n++;return n!==t.pos&&(e||(t.pending+=t.src.slice(t.pos,n)),t.pos=n,!0)}],["linkify",function(t,e){if(!t.md.options.linkify)return!1;if(t.linkLevel>0)return!1;const n=t.pos;if(n+3>t.posMax)return!1;if(58!==t.src.charCodeAt(n))return!1;if(47!==t.src.charCodeAt(n+1))return!1;if(47!==t.src.charCodeAt(n+2))return!1;const r=t.pending.match(It);if(!r)return!1;const s=r[1],o=t.md.linkify.matchAtStart(t.src.slice(n-s.length));if(!o)return!1;let i=o.url;if(i.length<=s.length)return!1;let c=i.length;for(;c>0&&42===i.charCodeAt(c-1);)c--;c!==i.length&&(i=i.slice(0,c));const l=t.md.normalizeLink(i);if(!t.md.validateLink(l))return!1;if(!e){t.pending=t.pending.slice(0,-s.length);const e=t.push("link_open","a",1);e.attrs=[["href",l]],e.markup="linkify",e.info="auto";t.push("text","",0).content=t.md.normalizeLinkText(i);const n=t.push("link_close","a",-1);n.markup="linkify",n.info="auto"}return t.pos+=i.length-s.length,!0}],["newline",function(t,e){let n=t.pos;if(10!==t.src.charCodeAt(n))return!1;const r=t.pending.length-1,s=t.posMax;if(!e)if(r>=0&&32===t.pending.charCodeAt(r))if(r>=1&&32===t.pending.charCodeAt(r-1)){let e=r-1;for(;e>=1&&32===t.pending.charCodeAt(e-1);)e--;t.pending=t.pending.slice(0,e),t.push("hardbreak","br",0)}else t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0);else t.push("softbreak","br",0);for(n++;n<s&&L(t.src.charCodeAt(n));)n++;return t.pos=n,!0}],["escape",function(t,e){let n=t.pos;const r=t.posMax;if(92!==t.src.charCodeAt(n))return!1;if(n++,n>=r)return!1;let s=t.src.charCodeAt(n);if(10===s){for(e||t.push("hardbreak","br",0),n++;n<r&&(s=t.src.charCodeAt(n),L(s));)n++;return t.pos=n,!0}let o=t.src[n];if(s>=55296&&s<=56319&&n+1<r){const e=t.src.charCodeAt(n+1);e>=56320&&e<=57343&&(o+=t.src[n+1],n++)}const i="\\"+o;if(!e){const e=t.push("text_special","",0);s<256&&0!==Lt[s]?e.content=o:e.content=i,e.markup=i,e.info="escape"}return t.pos=n+1,!0}],["backticks",function(t,e){let n=t.pos;if(96!==t.src.charCodeAt(n))return!1;const r=n;n++;const s=t.posMax;for(;n<s&&96===t.src.charCodeAt(n);)n++;const o=t.src.slice(r,n),i=o.length;if(t.backticksScanned&&(t.backticks[i]||0)<=r)return e||(t.pending+=o),t.pos+=i,!0;let c,l=n;for(;-1!==(c=t.src.indexOf("`",l));){for(l=c+1;l<s&&96===t.src.charCodeAt(l);)l++;const r=l-c;if(r===i){if(!e){const e=t.push("code_inline","code",0);e.markup=o,e.content=t.src.slice(n,c).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return t.pos=l,!0}t.backticks[r]=c}return t.backticksScanned=!0,e||(t.pending+=o),t.pos+=i,!0}],["strikethrough",Tt.tokenize],["emphasis",$t.tokenize],["link",function(t,e){let n,r,s,o,i="",c="",l=t.pos,a=!0;if(91!==t.src.charCodeAt(t.pos))return!1;const h=t.pos,u=t.posMax,p=t.pos+1,f=t.md.helpers.parseLinkLabel(t,t.pos,!0);if(f<0)return!1;let d=f+1;if(d<u&&40===t.src.charCodeAt(d)){for(a=!1,d++;d<u&&(n=t.src.charCodeAt(d),L(n)||10===n);d++);if(d>=u)return!1;if(l=d,s=t.md.helpers.parseLinkDestination(t.src,d,t.posMax),s.ok){for(i=t.md.normalizeLink(s.str),t.md.validateLink(i)?d=s.pos:i="",l=d;d<u&&(n=t.src.charCodeAt(d),L(n)||10===n);d++);if(s=t.md.helpers.parseLinkTitle(t.src,d,t.posMax),d<u&&l!==d&&s.ok)for(c=s.str,d=s.pos;d<u&&(n=t.src.charCodeAt(d),L(n)||10===n);d++);}(d>=u||41!==t.src.charCodeAt(d))&&(a=!0),d++}if(a){if(void 0===t.env.references)return!1;if(d<u&&91===t.src.charCodeAt(d)?(l=d+1,d=t.md.helpers.parseLinkLabel(t,d),d>=0?r=t.src.slice(l,d++):d=f+1):d=f+1,r||(r=t.src.slice(p,f)),o=t.env.references[$(r)],!o)return t.pos=h,!1;i=o.href,c=o.title}if(!e){t.pos=p,t.posMax=f;const e=[["href",i]];t.push("link_open","a",1).attrs=e,c&&e.push(["title",c]),t.linkLevel++,t.md.inline.tokenize(t),t.linkLevel--,t.push("link_close","a",-1)}return t.pos=d,t.posMax=u,!0}],["image",function(t,e){let n,r,s,o,i,c,l,a,h="";const u=t.pos,p=t.posMax;if(33!==t.src.charCodeAt(t.pos))return!1;if(91!==t.src.charCodeAt(t.pos+1))return!1;const f=t.pos+2,d=t.md.helpers.parseLinkLabel(t,t.pos+1,!1);if(d<0)return!1;if(o=d+1,o<p&&40===t.src.charCodeAt(o)){for(o++;o<p&&(n=t.src.charCodeAt(o),L(n)||10===n);o++);if(o>=p)return!1;for(a=o,c=t.md.helpers.parseLinkDestination(t.src,o,t.posMax),c.ok&&(h=t.md.normalizeLink(c.str),t.md.validateLink(h)?o=c.pos:h=""),a=o;o<p&&(n=t.src.charCodeAt(o),L(n)||10===n);o++);if(c=t.md.helpers.parseLinkTitle(t.src,o,t.posMax),o<p&&a!==o&&c.ok)for(l=c.str,o=c.pos;o<p&&(n=t.src.charCodeAt(o),L(n)||10===n);o++);else l="";if(o>=p||41!==t.src.charCodeAt(o))return t.pos=u,!1;o++}else{if(void 0===t.env.references)return!1;if(o<p&&91===t.src.charCodeAt(o)?(a=o+1,o=t.md.helpers.parseLinkLabel(t,o),o>=0?s=t.src.slice(a,o++):o=d+1):o=d+1,s||(s=t.src.slice(f,d)),i=t.env.references[$(s)],!i)return t.pos=u,!1;h=i.href,l=i.title}if(!e){r=t.src.slice(f,d);const e=[];t.md.inline.parse(r,t.md,t.env,e);const n=t.push("image","img",0),s=[["src",h],["alt",""]];n.attrs=s,n.children=e,n.content=r,l&&s.push(["title",l])}return t.pos=o,t.posMax=p,!0}],["autolink",function(t,e){let n=t.pos;if(60!==t.src.charCodeAt(n))return!1;const r=t.pos,s=t.posMax;for(;;){if(++n>=s)return!1;const e=t.src.charCodeAt(n);if(60===e)return!1;if(62===e)break}const o=t.src.slice(r+1,n);if(qt.test(o)){const n=t.md.normalizeLink(o);if(!t.md.validateLink(n))return!1;if(!e){const e=t.push("link_open","a",1);e.attrs=[["href",n]],e.markup="autolink",e.info="auto";t.push("text","",0).content=t.md.normalizeLinkText(o);const r=t.push("link_close","a",-1);r.markup="autolink",r.info="auto"}return t.pos+=o.length+2,!0}if(Ot.test(o)){const n=t.md.normalizeLink("mailto:"+o);if(!t.md.validateLink(n))return!1;if(!e){const e=t.push("link_open","a",1);e.attrs=[["href",n]],e.markup="autolink",e.info="auto";t.push("text","",0).content=t.md.normalizeLinkText(o);const r=t.push("link_close","a",-1);r.markup="autolink",r.info="auto"}return t.pos+=o.length+2,!0}return!1}],["html_inline",function(t,e){if(!t.md.options.html)return!1;const n=t.posMax,r=t.pos;if(60!==t.src.charCodeAt(r)||r+2>=n)return!1;const s=t.src.charCodeAt(r+1);if(33!==s&&63!==s&&47!==s&&!function(t){const e=32|t;return e>=97&&e<=122}(s))return!1;const o=t.src.slice(r).match(_t);if(!o)return!1;if(!e){const e=t.push("html_inline","",0);e.content=o[0],i=e.content,/^<a[>\s]/i.test(i)&&t.linkLevel++,function(t){return/^<\/a\s*>/i.test(t)}(e.content)&&t.linkLevel--}var i;return t.pos+=o[0].length,!0}],["entity",function(t,e){const n=t.pos,r=t.posMax;if(38!==t.src.charCodeAt(n))return!1;if(n+1>=r)return!1;if(35===t.src.charCodeAt(n+1)){const r=t.src.slice(n).match(Pt);if(r){if(!e){const e="x"===r[1][0].toLowerCase()?parseInt(r[1].slice(1),16):parseInt(r[1],10),n=t.push("text_special","",0);n.content=k(e)?m(e):m(65533),n.markup=r[0],n.info="entity"}return t.pos+=r[0].length,!0}}else{const r=t.src.slice(n).match(Rt);if(r){const n=(0,a.Gz)(r[0]);if(n!==r[0]){if(!e){const e=t.push("text_special","",0);e.content=n,e.markup=r[0],e.info="entity"}return t.pos+=r[0].length,!0}}}return!1}]],Dt=[["balance_pairs",function(t){const e=t.tokens_meta,n=t.tokens_meta.length;jt(t.delimiters);for(let t=0;t<n;t++)e[t]&&e[t].delimiters&&jt(e[t].delimiters)}],["strikethrough",Tt.postProcess],["emphasis",$t.postProcess],["fragments_join",function(t){let e,n,r=0;const s=t.tokens,o=t.tokens.length;for(e=n=0;e<o;e++)s[e].nesting<0&&r--,s[e].level=r,s[e].nesting>0&&r++,"text"===s[e].type&&e+1<o&&"text"===s[e+1].type?s[e+1].content=s[e].content+s[e+1].content:(e!==n&&(s[n]=s[e]),n++);e!==n&&(s.length=n)}]];function Nt(){this.ruler=new B;for(let t=0;t<Zt.length;t++)this.ruler.push(Zt[t][0],Zt[t][1]);this.ruler2=new B;for(let t=0;t<Dt.length;t++)this.ruler2.push(Dt[t][0],Dt[t][1])}Nt.prototype.skipToken=function(t){const e=t.pos,n=this.ruler.getRules(""),r=n.length,s=t.md.options.maxNesting,o=t.cache;if(void 0!==o[e])return void(t.pos=o[e]);let i=!1;if(t.level<s){for(let s=0;s<r;s++)if(t.level++,i=n[s](t,!0),t.level--,i){if(e>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}else t.pos=t.posMax;i||t.pos++,o[e]=t.pos},Nt.prototype.tokenize=function(t){const e=this.ruler.getRules(""),n=e.length,r=t.posMax,s=t.md.options.maxNesting;for(;t.pos<r;){const o=t.pos;let i=!1;if(t.level<s)for(let r=0;r<n;r++)if(i=e[r](t,!1),i){if(o>=t.pos)throw new Error("inline rule didn't increment state.pos");break}if(i){if(t.pos>=r)break}else t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()},Nt.prototype.parse=function(t,e,n,r){const s=new this.State(t,e,n,r);this.tokenize(s);const o=this.ruler2.getRules(""),i=o.length;for(let t=0;t<i;t++)o[t](s)},Nt.prototype.State=wt;const Bt=Nt;var Gt=n(27805),Wt=n(27444);const Ft={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},Ut=/^(vbscript|javascript|file|data):/,Ht=/^data:image\/(gif|png|jpeg|webp);/;function Jt(t){const e=t.trim().toLowerCase();return!Ut.test(e)||Ht.test(e)}const Vt=["http:","https:","mailto:"];function Kt(t){const e=o.parse(t,!0);if(e.hostname&&(!e.protocol||Vt.indexOf(e.protocol)>=0))try{e.hostname=Wt.Ay.toASCII(e.hostname)}catch(t){}return o.encode(o.format(e))}function Qt(t){const e=o.parse(t,!0);if(e.hostname&&(!e.protocol||Vt.indexOf(e.protocol)>=0))try{e.hostname=Wt.Ay.toUnicode(e.hostname)}catch(t){}return o.decode(o.format(e),o.decode.defaultChars+"%")}function Xt(t,e){if(!(this instanceof Xt))return new Xt(t,e);e||h(t)||(e=t||{},t="default"),this.inline=new Bt,this.block=new Mt,this.core=new ht,this.renderer=new D,this.linkify=new Gt.A,this.validateLink=Jt,this.normalizeLink=Kt,this.normalizeLinkText=Qt,this.utils=r,this.helpers=f({},s),this.options={},this.configure(t),e&&this.set(e)}Xt.prototype.set=function(t){return f(this.options,t),this},Xt.prototype.configure=function(t){const e=this;if(h(t)){const e=t;if(!(t=Ft[e]))throw new Error('Wrong `markdown-it` preset "'+e+'", check name')}if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(n){t.components[n].rules&&e[n].ruler.enableOnly(t.components[n].rules),t.components[n].rules2&&e[n].ruler2.enableOnly(t.components[n].rules2)}),this},Xt.prototype.enable=function(t,e){let n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(e){n=n.concat(this[e].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));const r=t.filter(function(t){return n.indexOf(t)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},Xt.prototype.disable=function(t,e){let n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(e){n=n.concat(this[e].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));const r=t.filter(function(t){return n.indexOf(t)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},Xt.prototype.use=function(t){const e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this},Xt.prototype.parse=function(t,e){if("string"!=typeof t)throw new Error("Input data should be a String");const n=new this.core.State(t,this,e);return this.core.process(n),n.tokens},Xt.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)},Xt.prototype.parseInline=function(t,e){const n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens},Xt.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};const Yt=Xt}}]);
|