Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js/theme.min.js')
-rw-r--r--assets/js/theme.min.js71
1 files changed, 3 insertions, 68 deletions
diff --git a/assets/js/theme.min.js b/assets/js/theme.min.js
index 6c2eab6..f873110 100644
--- a/assets/js/theme.min.js
+++ b/assets/js/theme.min.js
@@ -1,68 +1,3 @@
-var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.createTemplateTagFirstArg=function(a){return a.raw=a};$jscomp.createTemplateTagFirstArgWithRaw=function(a,b){a.raw=b;return a};$jscomp.arrayIteratorImpl=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};$jscomp.arrayIterator=function(a){return{next:$jscomp.arrayIteratorImpl(a)}};$jscomp.makeIterator=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):$jscomp.arrayIterator(a)};
-$jscomp.arrayFromIterator=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c};$jscomp.arrayFromIterable=function(a){return a instanceof Array?a:$jscomp.arrayFromIterator($jscomp.makeIterator(a))};$jscomp.getGlobal=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");};
-$jscomp.global=$jscomp.getGlobal(this);$jscomp.checkEs6ConformanceViaProxy=function(){try{var a={},b=Object.create(new $jscomp.global.Proxy(a,{get:function(c,d,e){return c==a&&"q"==d&&e==b}}));return!0===b.q}catch(c){return!1}};$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS=!1;$jscomp.ES6_CONFORMANCE=$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS&&$jscomp.checkEs6ConformanceViaProxy();$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;
-$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;
-$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(a,b){var c=$jscomp.propertyToPolyfillSymbol[b];if(null==c)return a[b];c=a[c];return void 0!==c?c:a[b]};$jscomp.polyfill=function(a,b,c,d){b&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(a,b,c,d):$jscomp.polyfillUnisolated(a,b,c,d))};
-$jscomp.polyfillUnisolated=function(a,b,c,d){c=$jscomp.global;a=a.split(".");for(d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))return;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&$jscomp.defineProperty(c,a,{configurable:!0,writable:!0,value:b})};
-$jscomp.polyfillIsolated=function(a,b,c,d){var e=a.split(".");a=1===e.length;d=e[0];d=!a&&d in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var l=0;l<e.length-1;l++){var k=e[l];if(!(k in d))return;d=d[k]}e=e[e.length-1];c=$jscomp.IS_SYMBOL_NATIVE&&"es6"===c?d[e]:null;b=b(c);null!=b&&(a?$jscomp.defineProperty($jscomp.polyfills,e,{configurable:!0,writable:!0,value:b}):b!==c&&($jscomp.propertyToPolyfillSymbol[e]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(e):$jscomp.POLYFILL_PREFIX+e,e=
-$jscomp.propertyToPolyfillSymbol[e],$jscomp.defineProperty(d,e,{configurable:!0,writable:!0,value:b})))};$jscomp.initSymbol=function(){};
-$jscomp.polyfill("Symbol",function(a){if(a)return a;var b=function(e,l){this.$jscomp$symbol$id_=e;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:l})};b.prototype.toString=function(){return this.$jscomp$symbol$id_};var c=0,d=function(e){if(this instanceof d)throw new TypeError("Symbol is not a constructor");return new b("jscomp_symbol_"+(e||"")+"_"+c++,e)};return d},"es6","es3");
-$jscomp.polyfill("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=$jscomp.global[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&$jscomp.defineProperty(d.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return a},"es6",
-"es3");$jscomp.iteratorPrototype=function(a){a={next:a};a[Symbol.iterator]=function(){return this};return a};$jscomp.owns=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
-$jscomp.polyfill("WeakMap",function(a){function b(){if(!a||!Object.seal)return!1;try{var f=Object.seal({}),h=Object.seal({}),m=new a([[f,2],[h,3]]);if(2!=m.get(f)||3!=m.get(h))return!1;m.delete(f);m.set(h,4);return!m.has(f)&&4==m.get(h)}catch(u){return!1}}function c(){}function d(f){var h=typeof f;return"object"===h&&null!==f||"function"===h}function e(f){if(!$jscomp.owns(f,k)){var h=new c;$jscomp.defineProperty(f,k,{value:h})}}function l(f){if(!$jscomp.ISOLATE_POLYFILLS){var h=Object[f];h&&(Object[f]=
-function(m){if(m instanceof c)return m;Object.isExtensible(m)&&e(m);return h(m)})}}if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(a&&$jscomp.ES6_CONFORMANCE)return a}else if(b())return a;var k="$jscomp_hidden_"+Math.random();l("freeze");l("preventExtensions");l("seal");var n=0,g=function(f){this.id_=(n+=Math.random()+1).toString();if(f){f=$jscomp.makeIterator(f);for(var h;!(h=f.next()).done;)h=h.value,this.set(h[0],h[1])}};g.prototype.set=function(f,h){if(!d(f))throw Error("Invalid WeakMap key");
-e(f);if(!$jscomp.owns(f,k))throw Error("WeakMap key fail: "+f);f[k][this.id_]=h;return this};g.prototype.get=function(f){return d(f)&&$jscomp.owns(f,k)?f[k][this.id_]:void 0};g.prototype.has=function(f){return d(f)&&$jscomp.owns(f,k)&&$jscomp.owns(f[k],this.id_)};g.prototype.delete=function(f){return d(f)&&$jscomp.owns(f,k)&&$jscomp.owns(f[k],this.id_)?delete f[k][this.id_]:!1};return g},"es6","es3");$jscomp.MapEntry=function(){};
-$jscomp.polyfill("Map",function(a){function b(){if($jscomp.ASSUME_NO_NATIVE_MAP||!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var g=Object.seal({x:4}),f=new a($jscomp.makeIterator([[g,"s"]]));if("s"!=f.get(g)||1!=f.size||f.get({x:4})||f.set({x:4},"t")!=f||2!=f.size)return!1;var h=f.entries(),m=h.next();if(m.done||m.value[0]!=g||"s"!=m.value[1])return!1;m=h.next();return m.done||4!=m.value[0].x||"t"!=m.value[1]||!h.next().done?!1:!0}catch(u){return!1}}
-if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(a&&$jscomp.ES6_CONFORMANCE)return a}else if(b())return a;var c=new WeakMap,d=function(g){this.data_={};this.head_=k();this.size=0;if(g){g=$jscomp.makeIterator(g);for(var f;!(f=g.next()).done;)f=f.value,this.set(f[0],f[1])}};d.prototype.set=function(g,f){g=0===g?0:g;var h=e(this,g);h.list||(h.list=this.data_[h.id]=[]);h.entry?h.entry.value=f:(h.entry={next:this.head_,previous:this.head_.previous,head:this.head_,key:g,value:f},h.list.push(h.entry),
-this.head_.previous.next=h.entry,this.head_.previous=h.entry,this.size++);return this};d.prototype.delete=function(g){g=e(this,g);return g.entry&&g.list?(g.list.splice(g.index,1),g.list.length||delete this.data_[g.id],g.entry.previous.next=g.entry.next,g.entry.next.previous=g.entry.previous,g.entry.head=null,this.size--,!0):!1};d.prototype.clear=function(){this.data_={};this.head_=this.head_.previous=k();this.size=0};d.prototype.has=function(g){return!!e(this,g).entry};d.prototype.get=function(g){return(g=
-e(this,g).entry)&&g.value};d.prototype.entries=function(){return l(this,function(g){return[g.key,g.value]})};d.prototype.keys=function(){return l(this,function(g){return g.key})};d.prototype.values=function(){return l(this,function(g){return g.value})};d.prototype.forEach=function(g,f){for(var h=this.entries(),m;!(m=h.next()).done;)m=m.value,g.call(f,m[1],m[0],this)};d.prototype[Symbol.iterator]=d.prototype.entries;var e=function(g,f){var h=f&&typeof f;"object"==h||"function"==h?c.has(f)?h=c.get(f):
-(h=""+ ++n,c.set(f,h)):h="p_"+f;var m=g.data_[h];if(m&&$jscomp.owns(g.data_,h))for(g=0;g<m.length;g++){var u=m[g];if(f!==f&&u.key!==u.key||f===u.key)return{id:h,list:m,index:g,entry:u}}return{id:h,list:m,index:-1,entry:void 0}},l=function(g,f){var h=g.head_;return $jscomp.iteratorPrototype(function(){if(h){for(;h.head!=g.head_;)h=h.previous;for(;h.next!=h.head;)return h=h.next,{done:!1,value:f(h)};h=null}return{done:!0,value:void 0}})},k=function(){var g={};return g.previous=g.next=g.head=g},n=0;
-return d},"es6","es3");
-$jscomp.polyfill("Set",function(a){function b(){if($jscomp.ASSUME_NO_NATIVE_SET||!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var d=Object.seal({x:4}),e=new a($jscomp.makeIterator([d]));if(!e.has(d)||1!=e.size||e.add(d)!=e||1!=e.size||e.add({x:4})!=e||2!=e.size)return!1;var l=e.entries(),k=l.next();if(k.done||k.value[0]!=d||k.value[1]!=d)return!1;k=l.next();return k.done||k.value[0]==d||4!=k.value[0].x||k.value[1]!=k.value[0]?!1:l.next().done}catch(n){return!1}}
-if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(a&&$jscomp.ES6_CONFORMANCE)return a}else if(b())return a;var c=function(d){this.map_=new Map;if(d){d=$jscomp.makeIterator(d);for(var e;!(e=d.next()).done;)this.add(e.value)}this.size=this.map_.size};c.prototype.add=function(d){d=0===d?0:d;this.map_.set(d,d);this.size=this.map_.size;return this};c.prototype.delete=function(d){d=this.map_.delete(d);this.size=this.map_.size;return d};c.prototype.clear=function(){this.map_.clear();this.size=0};c.prototype.has=
-function(d){return this.map_.has(d)};c.prototype.entries=function(){return this.map_.entries()};c.prototype.values=function(){return this.map_.values()};c.prototype.keys=c.prototype.values;c.prototype[Symbol.iterator]=c.prototype.values;c.prototype.forEach=function(d,e){var l=this;this.map_.forEach(function(k){return d.call(e,k,k,l)})};return c},"es6","es3");$jscomp.polyfill("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)$jscomp.owns(b,d)&&c.push(b[d]);return c}},"es8","es3");
-$jscomp.iteratorFromArray=function(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var l=c++;return{value:b(l,a[l]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e};$jscomp.polyfill("Array.prototype.keys",function(a){return a?a:function(){return $jscomp.iteratorFromArray(this,function(b){return b})}},"es6","es3");var Util=function(){};Util.prototype.forEach=function(a,b){a=a||[];for(var c=0;c<a.length;c++)b(a[c])};
-Util.prototype.getScrollTop=function(){return document.documentElement&&document.documentElement.scrollTop||document.body.scrollTop};Util.prototype.isMobile=function(){return window.matchMedia("only screen and (max-width: 680px)").matches};Util.prototype.isTocStatic=function(){return window.matchMedia("only screen and (max-width: 960px)").matches};
-Util.prototype.animateCSS=function(a,b,c,d){Array.isArray(b)||(b=[b]);a.classList.add.apply(a.classList,["animated"].concat($jscomp.arrayFromIterable(b)));var e=function(){a.classList.remove.apply(a.classList,["animated"].concat($jscomp.arrayFromIterable(b)));a.removeEventListener("animationend",e);"function"===typeof d&&d()};c||a.addEventListener("animationend",e,!1)};
-var Theme=function(){this.config=window.config;this.data=this.config.data;this.isDark="dark"===document.body.getAttribute("theme");this.util=new Util;this.oldScrollTop=this.newScrollTop=this.util.getScrollTop();this.scrollEventSet=new Set;this.resizeEventSet=new Set;this.switchThemeEventSet=new Set;this.clickMaskEventSet=new Set;window.objectFitImages&&objectFitImages()};
-Theme.prototype.initSVGIcon=function(){this.util.forEach(document.querySelectorAll("[data-svg-src]"),function(a){fetch(a.getAttribute("data-svg-src")).then(function(b){return b.text()}).then(function(b){var c=document.createElement("div");c.insertAdjacentHTML("afterbegin",b);b=c.firstChild;b.setAttribute("data-svg-src",a.getAttribute("data-svg-src"));b.classList.add("icon");c=b.getElementsByTagName("title");c.length&&b.removeChild(c[0]);a.parentElement.replaceChild(b,a)}).catch(function(b){console.error(b)})})};
-Theme.prototype.initTwemoji=function(){this.config.twemoji&&twemoji.parse(document.body)};Theme.prototype.initMenuMobile=function(){var a=document.getElementById("menu-toggle-mobile"),b=document.getElementById("menu-mobile");a.addEventListener("click",function(){document.body.classList.toggle("blur");a.classList.toggle("active");b.classList.toggle("active")},!1);this._menuMobileOnClickMask=this._menuMobileOnClickMask||function(){a.classList.remove("active");b.classList.remove("active")};this.clickMaskEventSet.add(this._menuMobileOnClickMask)};
-Theme.prototype.initSwitchTheme=function(){var a=this;this.util.forEach(document.getElementsByClassName("theme-switch"),function(b){b.addEventListener("click",function(){"dark"===document.body.getAttribute("theme")?document.body.setAttribute("theme","light"):document.body.setAttribute("theme","dark");a.isDark=!a.isDark;window.localStorage&&localStorage.setItem("theme",a.isDark?"dark":"light");window.REMARK42.changeTheme("dark"===document.body.getAttribute("theme")?"dark":"light");for(var c=$jscomp.makeIterator(a.switchThemeEventSet),
-d=c.next();!d.done;d=c.next())d=d.value,d()},!1)})};
-Theme.prototype.initSearch=function(){var a=this,b=this.config.search,c=this.util.isMobile();if(!(!b||c&&this._searchMobileOnce||!c&&this._searchDesktopOnce)){var d=b.maxResultLength?b.maxResultLength:10,e=b.snippetLength?b.snippetLength:50,l=b.highlightTag?b.highlightTag:"em",k=c?"mobile":"desktop",n=document.getElementById("header-"+k),g=document.getElementById("search-input-"+k),f=document.getElementById("search-toggle-"+k),h=document.getElementById("search-loading-"+k),m=document.getElementById("search-clear-"+
-k);c?(this._searchMobileOnce=!0,g.addEventListener("focus",function(){document.body.classList.add("blur");n.classList.add("open")},!1),document.getElementById("search-cancel-mobile").addEventListener("click",function(){n.classList.remove("open");document.body.classList.remove("blur");document.getElementById("menu-toggle-mobile").classList.remove("active");document.getElementById("menu-mobile").classList.remove("active");h.style.display="none";m.style.display="none";a._searchMobile&&a._searchMobile.autocomplete.setVal("")},
-!1),m.addEventListener("click",function(){m.style.display="none";a._searchMobile&&a._searchMobile.autocomplete.setVal("")},!1),this._searchMobileOnClickMask=this._searchMobileOnClickMask||function(){n.classList.remove("open");h.style.display="none";m.style.display="none";a._searchMobile&&a._searchMobile.autocomplete.setVal("")},this.clickMaskEventSet.add(this._searchMobileOnClickMask)):(this._searchDesktopOnce=!0,f.addEventListener("click",function(){document.body.classList.add("blur");n.classList.add("open");
-g.focus()},!1),m.addEventListener("click",function(){m.style.display="none";a._searchDesktop&&a._searchDesktop.autocomplete.setVal("")},!1),this._searchDesktopOnClickMask=this._searchDesktopOnClickMask||function(){n.classList.remove("open");h.style.display="none";m.style.display="none";a._searchDesktop&&a._searchDesktop.autocomplete.setVal("")},this.clickMaskEventSet.add(this._searchDesktopOnClickMask));g.addEventListener("input",function(){m.style.display=""===g.value?"none":"inline"},!1);var u=
-function(){var w=autocomplete("#search-input-"+k,{hint:!1,autoselect:!0,dropdownMenuContainer:"#search-dropdown-"+k,clearOnSelected:!0,cssClasses:{noPrefix:!0},debug:!0},{name:"search",source:function(p,D){h.style.display="inline";m.style.display="none";var z=function(r){h.style.display="none";m.style.display="inline";D(r)};if("lunr"===b.type){var C=function(){lunr.queryHandler&&(p=lunr.queryHandler(p));var r={};a._index.search(p).forEach(function(t){var x=t.matchData.metadata;t=a._indexData[t.ref];
-var v=t.uri,E=t.title,A=t.content;if(!r[v]){var B=0;Object.values(x).forEach(function(y){if(y=y.content)if(y=y.position[0][0],y<B||0===B)B=y});B-=e/5;0<B?(B+=A.substr(B,20).lastIndexOf(" ")+1,A="..."+A.substr(B,e)):A=A.substr(0,e);Object.keys(x).forEach(function(y){E=E.replace(new RegExp("("+y+")","gi"),"<"+l+">$1</"+l+">");A=A.replace(new RegExp("("+y+")","gi"),"<"+l+">$1</"+l+">")});r[v]={uri:v,title:E,date:t.date,context:A}}});return Object.values(r).slice(0,d)};a._index?z(C()):fetch(b.lunrIndexURL).then(function(r){return r.json()}).then(function(r){var t=
-{};a._index=lunr(function(){var x=this;b.lunrLanguageCode&&this.use(lunr[b.lunrLanguageCode]);this.ref("objectID");this.field("title",{boost:50});this.field("tags",{boost:20});this.field("categories",{boost:20});this.field("content",{boost:10});this.metadataWhitelist=["position"];r.forEach(function(v){t[v.objectID]=v;x.add(v)})});a._indexData=t;z(C())}).catch(function(r){console.error(r);z([])})}else"algolia"===b.type&&(a._algoliaIndex=a._algoliaIndex||algoliasearch(b.algoliaAppID,b.algoliaSearchKey).initIndex(b.algoliaIndex),
-a._algoliaIndex.search(p,{offset:0,length:8*d,attributesToHighlight:["title"],attributesToSnippet:["content:"+e],highlightPreTag:"<"+l+">",highlightPostTag:"</"+l+">"}).then(function(r){var t={};r.hits.forEach(function(x){var v=x.uri,E=x._snippetResult.content;t[v]&&t[v].context.length>E.value||(t[v]={uri:v,title:x._highlightResult.title.value,date:x.date,context:E.value})});z(Object.values(t).slice(0,d))}).catch(function(r){console.error(r);z([])}))},templates:{suggestion:function(p){return'<div><span class="suggestion-title">'+
-p.title+'</span><span class="suggestion-date">'+p.date+'</span></div><div class="suggestion-context">'+p.context+"</div>"},empty:function(p){return'<div class="search-empty">'+b.noResultsFound+': <span class="search-query">"'+p.query+'"</span></div>'},footer:function(p){p="algolia"===b.type?{searchType:"algolia",icon:'<i class="fab fa-algolia fa-fw"></i>',href:"https://www.algolia.com/"}:{searchType:"Lunr.js",icon:"",href:"https://lunrjs.com/"};return'<div class="search-footer">Search by <a href="'+
-p.href+'" rel="noopener noreffer" target="_blank">'+p.icon+" "+p.searchType+"</a></div>"}}});w.on("autocomplete:selected",function(p,D,z,C){window.location.assign(D.uri)});c?a._searchMobile=w:a._searchDesktop=w};if(b.lunrSegmentitURL&&!document.getElementById("lunr-segmentit")){var q=document.createElement("script");q.id="lunr-segmentit";q.type="text/javascript";q.src=b.lunrSegmentitURL;q.async=!0;q.readyState?q.onreadystatechange=function(){if("loaded"==q.readyState||"complete"==q.readyState)q.onreadystatechange=
-null,u()}:q.onload=function(){u()};document.body.appendChild(q)}else u()}};Theme.prototype.initDetails=function(){this.util.forEach(document.getElementsByClassName("details"),function(a){a.getElementsByClassName("details-summary")[0].addEventListener("click",function(){a.classList.toggle("open")},!1)})};Theme.prototype.initLightGallery=function(){this.config.lightGallery&&lightGallery(document.getElementById("content"),this.config.lightGallery)};
-Theme.prototype.initHighlight=function(){var a=this;this.util.forEach(document.querySelectorAll(".highlight > pre.chroma"),function(b){var c=document.createElement("div");c.className=b.className;var d=document.createElement("table");c.appendChild(d);var e=document.createElement("tbody");d.appendChild(e);d=document.createElement("tr");e.appendChild(d);e=document.createElement("td");d.appendChild(e);b.parentElement.replaceChild(c,b);e.appendChild(b)});this.util.forEach(document.querySelectorAll(".highlight > .chroma"),
-function(b){var c=b.querySelectorAll("pre.chroma > code");if(c.length){var d=c[c.length-1];c=document.createElement("div");c.className="code-header "+d.className.toLowerCase();var e=document.createElement("span");e.classList.add("code-title");e.insertAdjacentHTML("afterbegin",'<i class="arrow fas fa-chevron-right fa-fw"></i>');e.addEventListener("click",function(){b.classList.toggle("open")},!1);c.appendChild(e);e=document.createElement("span");e.insertAdjacentHTML("afterbegin",'<i class="fas fa-ellipsis-h fa-fw"></i>');
-e.classList.add("ellipses");e.addEventListener("click",function(){b.classList.add("open")},!1);c.appendChild(e);e=document.createElement("span");e.insertAdjacentHTML("afterbegin",'<i class="far fa-copy fa-fw"></i>');e.classList.add("copy");var l=d.innerText;(0>a.config.code.maxShownLines||l.split("\n").length<a.config.code.maxShownLines+2)&&b.classList.add("open");a.config.code.copyTitle&&(e.setAttribute("data-clipboard-text",l),e.title=a.config.code.copyTitle,(new ClipboardJS(e)).on("success",function(k){a.util.animateCSS(d,
-"flash")}),c.appendChild(e));b.insertBefore(c,b.firstChild)}})};Theme.prototype.initTable=function(){this.util.forEach(document.querySelectorAll(".single table"),function(a){var b=document.createElement("div");b.className="table-wrapper";a.parentElement.replaceChild(b,a);b.appendChild(a)})};Theme.prototype.initHeaderLink=function(){for(var a=1;6>=a;a++)this.util.forEach(document.querySelectorAll("h"+a),function(b){b.classList.add("headerLink");b.insertAdjacentHTML("afterbegin",'<a href="#'+b.id+'" class="header-mark"></a>')})};
-Theme.prototype.initToc=function(){var a=this,b=document.getElementById("TableOfContents");if(null!==b)if(document.getElementById("toc-static").getAttribute("data-kept")||this.util.isTocStatic()){var c=document.getElementById("toc-content-static");b.parentElement!==c&&(b.parentElement.removeChild(b),c.appendChild(b));this._tocOnScroll&&this.scrollEventSet.delete(this._tocOnScroll)}else{c=document.getElementById("toc-content-auto");b.parentElement!==c&&(b.parentElement.removeChild(b),c.appendChild(b));
-var d=document.getElementById("toc-auto");c=document.getElementsByClassName("content-block")[0];var e=c.getBoundingClientRect();d.style.left=e.left+e.width+20+"px";d.style.maxWidth=c.getBoundingClientRect().left-20+314+"px";d.style.visibility="visible";var l=b.querySelectorAll("a:first-child"),k=b.getElementsByTagName("li"),n=document.getElementsByClassName("headerLink"),g="normal"!==document.body.getAttribute("data-header-desktop"),f=document.getElementById("header-desktop").offsetHeight,h=20+(g?
-f:0),m=d.offsetTop,u=m-h+(g?0:f);this._tocOnScroll=this._tocOnScroll||function(){var q=document.getElementById("toc-final").offsetTop-d.getBoundingClientRect().height,w=q-h+(g?0:f);a.newScrollTop<u?(d.style.position="absolute",d.style.top=m+"px"):a.newScrollTop>w?(d.style.position="absolute",d.style.top=q+"px"):(d.style.position="fixed",d.style.top=h+"px");a.util.forEach(l,function(C){C.classList.remove("active")});a.util.forEach(k,function(C){C.classList.remove("has-active")});q=20+(g?f:0);w=n.length-
-1;for(var p=0;p<n.length-1;p++){var D=n[p].getBoundingClientRect().top,z=n[p+1].getBoundingClientRect().top;if(0===p&&D>q||D<=q&&z>q){w=p;break}}if(-1!==w)for(l[w].classList.add("active"),q=l[w].parentElement;q!==b;)q.classList.add("has-active"),q=q.parentElement.parentElement};this._tocOnScroll();this.scrollEventSet.add(this._tocOnScroll)}};Theme.prototype.initMath=function(){this.config.math&&renderMathInElement(document.body,this.config.math)};
-Theme.prototype.initMermaid=function(){var a=this,b=document.getElementsByClassName("mermaid");b.length&&(mermaid.initialize({startOnLoad:!1,theme:"null"}),this.util.forEach(b,function(c){mermaid.mermaidAPI.render("svg-"+c.id,a.data[c.id],function(d){c.insertAdjacentHTML("afterbegin",d)},c)}))};
-Theme.prototype.initEcharts=function(){var a=this;this._echartsOnSwitchTheme=this._echartsOnSwitchTheme||function(){a._echartsArr=a._echartsArr||[];for(var b=0;b<a._echartsArr.length;b++)a._echartsArr[b].dispose();a._echartsArr=[];a.util.forEach(document.getElementsByClassName("echarts"),function(c){var d=echarts.init(c,a.isDark?"dark":"macarons",{renderer:"svg"});d.setOption(JSON.parse(a.data[c.id]));a._echartsArr.push(d)})};this.switchThemeEventSet.add(this._echartsOnSwitchTheme);this._echartsOnSwitchTheme();
-this._echartsOnResize=this._echartsOnResize||function(){for(var b=0;b<a._echartsArr.length;b++)a._echartsArr[b].resize()};this.resizeEventSet.add(this._echartsOnResize)};
-Theme.prototype.initMapbox=function(){var a=this;this.config.mapbox&&(mapboxgl.accessToken=this.config.mapbox.accessToken,mapboxgl.setRTLTextPlugin(this.config.mapbox.RTLTextPlugin),this._mapboxArr=this._mapboxArr||[],this.util.forEach(document.getElementsByClassName("mapbox"),function(b){var c=a.data[b.id],d=c.lng,e=c.lat,l=c.lightStyle,k=c.darkStyle,n=c.marked,g=c.navigation,f=c.geolocate,h=c.scale,m=c.fullscreen;b=new mapboxgl.Map({container:b,center:[d,e],zoom:c.zoom,minZoom:.2,style:a.isDark?
-k:l,attributionControl:!1});n&&(new mapboxgl.Marker).setLngLat([d,e]).addTo(b);g&&b.addControl(new mapboxgl.NavigationControl,"bottom-right");f&&b.addControl(new mapboxgl.GeolocateControl({positionOptions:{enableHighAccuracy:!0},showUserLocation:!0,trackUserLocation:!0}),"bottom-right");h&&b.addControl(new mapboxgl.ScaleControl);m&&b.addControl(new mapboxgl.FullscreenControl);b.addControl(new MapboxLanguage);a._mapboxArr.push(b)}),this._mapboxOnSwitchTheme=this._mapboxOnSwitchTheme||function(){a.util.forEach(a._mapboxArr,
-function(b){var c=b.getContainer(),d=a.data[c.id];c=d.lightStyle;d=d.darkStyle;b.setStyle(a.isDark?d:c);b.addControl(new MapboxLanguage)})},this.switchThemeEventSet.add(this._mapboxOnSwitchTheme))};
-Theme.prototype.initTypeit=function(){var a=this;if(this.config.typeit){var b=this.config.typeit,c=b.speed?b.speed:100,d=b.cursorSpeed?b.cursorSpeed:1E3,e=b.cursorChar?b.cursorChar:"|";Object.values(b.data).forEach(function(l){var k=function(n){var g=l[n],f=(new TypeIt("#"+g,{strings:a.data[g],speed:c,lifeLike:!0,cursorSpeed:d,cursorChar:e,waitUntilVisible:!0,afterComplete:function(){n===l.length-1?0<=b.duration&&window.setTimeout(function(){f.destroy()},b.duration):(f.destroy(),k(n+1))}})).go()};
-k(0)})}};
-Theme.prototype.initComment=function(){var a=this;if(this.config.comment&&(this.config.comment.gitalk&&(this.config.comment.gitalk.body=decodeURI(window.location.href),(new Gitalk(this.config.comment.gitalk)).render("gitalk")),this.config.comment.valine&&new Valine(this.config.comment.valine),this.config.comment.utterances)){var b=this.config.comment.utterances,c=document.createElement("script");c.src="https://utteranc.es/client.js";c.type="text/javascript";c.setAttribute("repo",b.repo);c.setAttribute("issue-term",
-b.issueTerm);b.label&&c.setAttribute("label",b.label);c.setAttribute("theme",this.isDark?b.darkTheme:b.lightTheme);c.crossOrigin="anonymous";c.async=!0;document.getElementById("utterances").appendChild(c);this._utterancesOnSwitchTheme=this._utterancesOnSwitchTheme||function(){var d={type:"set-theme",theme:a.isDark?b.darkTheme:b.lightTheme};document.querySelector(".utterances-frame").contentWindow.postMessage(d,"https://utteranc.es")};this.switchThemeEventSet.add(this._utterancesOnSwitchTheme)}};
-Theme.prototype.initSmoothScroll=function(){SmoothScroll&&new SmoothScroll('[href^="#"]',{speed:300,speedAsDuration:!0,header:"#header-desktop"})};Theme.prototype.initCookieconsent=function(){this.config.cookieconsent&&cookieconsent.initialise(this.config.cookieconsent)};
-Theme.prototype.onScroll=function(){var a=this,b=[];"auto"===document.body.getAttribute("data-header-desktop")&&b.push(document.getElementById("header-desktop"));"auto"===document.body.getAttribute("data-header-mobile")&&b.push(document.getElementById("header-mobile"));if(document.getElementById("comments")){var c=document.getElementById("view-comments");c.href="#comments";c.style.display="block"}var d=document.getElementById("fixed-buttons");window.addEventListener("scroll",function(){a.newScrollTop=
-a.util.getScrollTop();var e=a.newScrollTop-a.oldScrollTop,l=a.util.isMobile();a.util.forEach(b,function(n){20<e?(n.classList.remove("fadeInDown"),a.util.animateCSS(n,["fadeOutUp","faster"],!0)):-20>e&&(n.classList.remove("fadeOutUp"),a.util.animateCSS(n,["fadeInDown","faster"],!0))});if(100<a.newScrollTop)if(l&&20<e)d.classList.remove("fadeIn"),a.util.animateCSS(d,["fadeOut","faster"],!0);else{if(!l||-20>e)d.style.display="block",d.classList.remove("fadeOut"),a.util.animateCSS(d,["fadeIn","faster"],
-!0)}else l||(d.classList.remove("fadeIn"),a.util.animateCSS(d,["fadeOut","faster"],!0)),d.style.display="none";l=$jscomp.makeIterator(a.scrollEventSet);for(var k=l.next();!k.done;k=l.next())k=k.value,k();a.oldScrollTop=a.newScrollTop},!1)};
-Theme.prototype.onResize=function(){var a=this;window.addEventListener("resize",function(){a._resizeTimeout||(a._resizeTimeout=window.setTimeout(function(){a._resizeTimeout=null;for(var b=$jscomp.makeIterator(a.resizeEventSet),c=b.next();!c.done;c=b.next())c=c.value,c();a.initToc();a.initMermaid();a.initSearch()},100))},!1)};
-Theme.prototype.onClickMask=function(){var a=this;document.getElementById("mask").addEventListener("click",function(){for(var b=$jscomp.makeIterator(a.clickMaskEventSet),c=b.next();!c.done;c=b.next())c=c.value,c();document.body.classList.remove("blur")},!1)};
-Theme.prototype.init=function(){var a=this;try{this.initSVGIcon(),this.initTwemoji(),this.initMenuMobile(),this.initSwitchTheme(),this.initSearch(),this.initDetails(),this.initLightGallery(),this.initHighlight(),this.initTable(),this.initHeaderLink(),this.initSmoothScroll(),this.initMath(),this.initMermaid(),this.initEcharts(),this.initTypeit(),this.initMapbox(),this.initCookieconsent()}catch(b){console.error(b)}window.setTimeout(function(){a.initToc();a.initComment();a.onScroll();a.onResize();a.onClickMask()},
-100)};var themeInit=function(){(new Theme).init()};"loading"!==document.readyState?themeInit():document.addEventListener("DOMContentLoaded",themeInit,!1);
+"use strict";function _objectDestructuringEmpty(a){if(null==a)throw new TypeError("Cannot destructure undefined")}function _createForOfIteratorHelper(a){if("undefined"==typeof Symbol||null==a[Symbol.iterator]){if(Array.isArray(a)||(a=_unsupportedIterableToArray(a))){var b=0,c=function(){};return{s:c,n:function n(){return b>=a.length?{done:!0}:{done:!1,value:a[b++]}},e:function e(a){throw a},f:c}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var d,e,f=!0,g=!1;return{s:function s(){d=a[Symbol.iterator]()},n:function n(){var a=d.next();return f=a.done,a},e:function e(a){g=!0,e=a},f:function f(){try{f||null==d.return||d.return()}finally{if(g)throw e}}}}function _toConsumableArray(a){return _arrayWithoutHoles(a)||_iterableToArray(a)||_unsupportedIterableToArray(a)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(a,b){if(a){if("string"==typeof a)return _arrayLikeToArray(a,b);var c=Object.prototype.toString.call(a).slice(8,-1);return"Object"===c&&a.constructor&&(c=a.constructor.name),"Map"===c||"Set"===c?Array.from(c):"Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?_arrayLikeToArray(a,b):void 0}}function _iterableToArray(a){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(a))return Array.from(a)}function _arrayWithoutHoles(a){if(Array.isArray(a))return _arrayLikeToArray(a)}function _arrayLikeToArray(a,b){(null==b||b>a.length)&&(b=a.length);for(var c=0,d=Array(b);c<b;c++)d[c]=a[c];return d}function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function _defineProperties(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function _createClass(a,b,c){return b&&_defineProperties(a.prototype,b),c&&_defineProperties(a,c),a}var Util=/*#__PURE__*/function(){function a(){_classCallCheck(this,a)}return _createClass(a,[{key:"forEach",value:function forEach(a,b){a=a||[];for(var c=0;c<a.length;c++)b(a[c])}},{key:"getScrollTop",value:function getScrollTop(){return document.documentElement&&document.documentElement.scrollTop||document.body.scrollTop}},{key:"isMobile",value:function isMobile(){return window.matchMedia("only screen and (max-width: 680px)").matches}},{key:"isTocStatic",value:function isTocStatic(){return window.matchMedia("only screen and (max-width: 960px)").matches}},{key:"animateCSS",value:function animateCSS(a,b,c,d){var e;Array.isArray(b)||(b=[b]),(e=a.classList).add.apply(e,["animated"].concat(_toConsumableArray(b)));var f=function(){var c;(c=a.classList).remove.apply(c,["animated"].concat(_toConsumableArray(b))),a.removeEventListener("animationend",f),"function"==typeof d&&d()};c||a.addEventListener("animationend",f,!1)}}]),a}(),Theme=/*#__PURE__*/function(){function a(){_classCallCheck(this,a),this.config=window.config,this.data=this.config.data,this.isDark="dark"===document.body.getAttribute("theme"),this.util=new Util,this.newScrollTop=this.util.getScrollTop(),this.oldScrollTop=this.newScrollTop,this.scrollEventSet=new Set,this.resizeEventSet=new Set,this.switchThemeEventSet=new Set,this.clickMaskEventSet=new Set,this.tocSelected=-1,window.objectFitImages&&objectFitImages()}return _createClass(a,[{key:"initSVGIcon",value:function initSVGIcon(){this.util.forEach(document.querySelectorAll("[data-svg-src]"),function(a){fetch(a.getAttribute("data-svg-src")).then(function(a){return a.text()}).then(function(b){var c=document.createElement("div");c.insertAdjacentHTML("afterbegin",b);var d=c.firstChild;d.setAttribute("data-svg-src",a.getAttribute("data-svg-src")),d.classList.add("icon");var e=d.getElementsByTagName("title");e.length&&d.removeChild(e[0]),a.parentElement.replaceChild(d,a)}).catch(function(a){console.error(a)})})}},{key:"initTwemoji",value:function initTwemoji(){this.config.twemoji&&twemoji.parse(document.body)}},{key:"initMenuMobile",value:function initMenuMobile(){var a=document.getElementById("menu-toggle-mobile"),b=document.getElementById("menu-mobile");a.addEventListener("click",function(){document.body.classList.toggle("blur"),a.classList.toggle("active"),b.classList.toggle("active")},!1),this._menuMobileOnClickMask=this._menuMobileOnClickMask||function(){a.classList.remove("active"),b.classList.remove("active")},this.clickMaskEventSet.add(this._menuMobileOnClickMask)}},{key:"initSwitchTheme",value:function initSwitchTheme(){var a=this;this.util.forEach(document.getElementsByClassName("theme-switch"),function(b){b.addEventListener("click",function(){"dark"===document.body.getAttribute("theme")?document.body.setAttribute("theme","light"):document.body.setAttribute("theme","dark"),a.isDark=!a.isDark,window.localStorage&&localStorage.setItem("theme",a.isDark?"dark":"light"),window.REMARK42.changeTheme("dark"===document.body.getAttribute("theme")?"dark":"light");var b,c=_createForOfIteratorHelper(a.switchThemeEventSet);try{for(c.s();!(b=c.n()).done;){var d=b.value;d()}}catch(a){c.e(a)}finally{c.f()}},!1)})}},{key:"initSearch",value:function initSearch(){var a=this,b=this.config.search,c=this.util.isMobile();if(!(!b||c&&this._searchMobileOnce||!c&&this._searchDesktopOnce)){var d=b.maxResultLength?b.maxResultLength:10,e=b.snippetLength?b.snippetLength:50,f=b.highlightTag?b.highlightTag:"em",g=c?"mobile":"desktop",h=document.getElementById("header-".concat(g)),i=document.getElementById("search-input-".concat(g)),j=document.getElementById("search-toggle-".concat(g)),k=document.getElementById("search-loading-".concat(g)),l=document.getElementById("search-clear-".concat(g));c?(this._searchMobileOnce=!0,i.addEventListener("focus",function(){document.body.classList.add("blur"),h.classList.add("open")},!1),document.getElementById("search-cancel-mobile").addEventListener("click",function(){h.classList.remove("open"),document.body.classList.remove("blur"),document.getElementById("menu-toggle-mobile").classList.remove("active"),document.getElementById("menu-mobile").classList.remove("active"),k.style.display="none",l.style.display="none",a._searchMobile&&a._searchMobile.autocomplete.setVal("")},!1),l.addEventListener("click",function(){l.style.display="none",a._searchMobile&&a._searchMobile.autocomplete.setVal("")},!1),this._searchMobileOnClickMask=this._searchMobileOnClickMask||function(){h.classList.remove("open"),k.style.display="none",l.style.display="none",a._searchMobile&&a._searchMobile.autocomplete.setVal("")},this.clickMaskEventSet.add(this._searchMobileOnClickMask)):(this._searchDesktopOnce=!0,j.addEventListener("click",function(){document.body.classList.add("blur"),h.classList.add("open"),i.focus()},!1),l.addEventListener("click",function(){l.style.display="none",a._searchDesktop&&a._searchDesktop.autocomplete.setVal("")},!1),this._searchDesktopOnClickMask=this._searchDesktopOnClickMask||function(){h.classList.remove("open"),k.style.display="none",l.style.display="none",a._searchDesktop&&a._searchDesktop.autocomplete.setVal("")},this.clickMaskEventSet.add(this._searchDesktopOnClickMask)),i.addEventListener("input",function(){l.style.display=""===i.value?"none":"inline"},!1);var m=function(){var h=autocomplete("#search-input-".concat(g),{hint:!1,autoselect:!0,dropdownMenuContainer:"#search-dropdown-".concat(g),clearOnSelected:!0,cssClasses:{noPrefix:!0},debug:!0},{name:"search",source:function source(c,g){k.style.display="inline",l.style.display="none";var h=function(a){k.style.display="none",l.style.display="inline",g(a)};if("lunr"===b.type){var i=function(){lunr.queryHandler&&(c=lunr.queryHandler(c));var b={};return a._index.search(c).forEach(function(c){var d=c.ref,g=c.matchData.metadata,h=a._indexData[d],i=h.uri,j=h.title,k=h.content;if(!b[i]){var l=0;Object.values(g).forEach(function(a){var b=a.content;if(b){var c=b.position[0][0];(c<l||0===l)&&(l=c)}}),l-=e/5,0<l?(l+=k.substr(l,20).lastIndexOf(" ")+1,k="..."+k.substr(l,e)):k=k.substr(0,e),Object.keys(g).forEach(function(a){j=j.replace(new RegExp("(".concat(a,")"),"gi"),"<".concat(f,">$1</").concat(f,">")),k=k.replace(new RegExp("(".concat(a,")"),"gi"),"<".concat(f,">$1</").concat(f,">"))}),b[i]={uri:i,title:j,date:h.date,context:k}}}),Object.values(b).slice(0,d)};a._index?h(i()):fetch(b.lunrIndexURL).then(function(a){return a.json()}).then(function(c){var d={};a._index=lunr(function(){var a=this;b.lunrLanguageCode&&this.use(lunr[b.lunrLanguageCode]),this.ref("objectID"),this.field("title",{boost:50}),this.field("tags",{boost:20}),this.field("categories",{boost:20}),this.field("content",{boost:10}),this.metadataWhitelist=["position"],c.forEach(function(b){d[b.objectID]=b,a.add(b)})}),a._indexData=d,h(i())}).catch(function(a){console.error(a),h([])})}else"algolia"===b.type&&(a._algoliaIndex=a._algoliaIndex||algoliasearch(b.algoliaAppID,b.algoliaSearchKey).initIndex(b.algoliaIndex),a._algoliaIndex.search(c,{offset:0,length:8*d,attributesToHighlight:["title"],attributesToSnippet:["content:".concat(e)],highlightPreTag:"<".concat(f,">"),highlightPostTag:"</".concat(f,">")}).then(function(a){var b=a.hits,c={};b.forEach(function(a){var b=a.uri,d=a.date,e=a._highlightResult.title,f=a._snippetResult.content;c[b]&&c[b].context.length>f.value||(c[b]={uri:b,title:e.value,date:d,context:f.value})}),h(Object.values(c).slice(0,d))}).catch(function(a){console.error(a),h([])}))},templates:{suggestion:function suggestion(a){var b=a.title,c=a.date,d=a.context;return"<div><span class=\"suggestion-title\">".concat(b,"</span><span class=\"suggestion-date\">").concat(c,"</span></div><div class=\"suggestion-context\">").concat(d,"</div>")},empty:function empty(a){var c=a.query;return"<div class=\"search-empty\">".concat(b.noResultsFound,": <span class=\"search-query\">\"").concat(c,"\"</span></div>")},footer:function footer(a){_objectDestructuringEmpty(a);var c="algolia"===b.type?{searchType:"algolia",icon:"<i class=\"fab fa-algolia fa-fw\"></i>",href:"https://www.algolia.com/"}:{searchType:"Lunr.js",icon:"",href:"https://lunrjs.com/"},d=c.searchType,e=c.icon,f=c.href;return"<div class=\"search-footer\">Search by <a href=\"".concat(f,"\" rel=\"noopener noreffer\" target=\"_blank\">").concat(e," ").concat(d,"</a></div>")}}});h.on("autocomplete:selected",function(a,b){window.location.assign(b.uri)}),c?a._searchMobile=h:a._searchDesktop=h};if(b.lunrSegmentitURL&&!document.getElementById("lunr-segmentit")){var n=document.createElement("script");n.id="lunr-segmentit",n.type="text/javascript",n.src=b.lunrSegmentitURL,n.async=!0,n.readyState?n.onreadystatechange=function(){("loaded"==n.readyState||"complete"==n.readyState)&&(n.onreadystatechange=null,m())}:n.onload=function(){m()},document.body.appendChild(n)}else m()}}},{key:"initDetails",value:function initDetails(){this.util.forEach(document.getElementsByClassName("details"),function(a){var b=a.getElementsByClassName("details-summary")[0];b.addEventListener("click",function(){a.classList.toggle("open")},!1)})}},{key:"initHighlight",value:function initHighlight(){var a=this;this.util.forEach(document.querySelectorAll(".highlight > pre.chroma"),function(a){var b=document.createElement("div");b.className=a.className;var c=document.createElement("table");b.appendChild(c);var d=document.createElement("tbody");c.appendChild(d);var e=document.createElement("tr");d.appendChild(e);var f=document.createElement("td");e.appendChild(f),a.parentElement.replaceChild(b,a),f.appendChild(a)}),this.util.forEach(document.querySelectorAll(".highlight > .chroma"),function(b){var c=b.querySelectorAll("pre.chroma > code");if(c.length){var d=c[c.length-1],e=document.createElement("div");e.className="code-header "+d.className.toLowerCase();var f=document.createElement("span");f.classList.add("code-title"),f.insertAdjacentHTML("afterbegin","<i class=\"arrow svg-icon icon-code-right\"></i>"),f.addEventListener("click",function(){b.classList.toggle("open")},!1),e.appendChild(f);var g=document.createElement("span");g.insertAdjacentHTML("afterbegin","<i class=\"svg-icon icon-ellipsis\"></i>"),g.classList.add("ellipses"),g.addEventListener("click",function(){b.classList.add("open")},!1),e.appendChild(g);var h=document.createElement("span");h.insertAdjacentHTML("afterbegin","<i class=\"svg-icon icon-copy\"></i>"),h.classList.add("copy");var i=d.innerText;if((0>a.config.code.maxShownLines||i.split("\n").length<a.config.code.maxShownLines+2)&&b.classList.add("open"),a.config.code.copyTitle){h.setAttribute("data-clipboard-text",i),h.title=a.config.code.copyTitle;var j=new ClipboardJS(h);j.on("success",function(){a.util.animateCSS(d,"flash")}),e.appendChild(h)}b.insertBefore(e,b.firstChild)}})}},{key:"initTable",value:function initTable(){this.util.forEach(document.querySelectorAll(".single table"),function(a){var b=document.createElement("div");b.className="table-wrapper",a.parentElement.replaceChild(b,a),b.appendChild(a)})}},{key:"initHeaderLink",value:function initHeaderLink(){for(var a=1;6>=a;a++)this.util.forEach(document.querySelectorAll("h"+a),function(a){a.classList.add("headerLink"),a.insertAdjacentHTML("afterbegin","<a href=\"#".concat(a.id,"\" class=\"header-mark\"></a>"))})}},{key:"initShareHeader",value:function initShareHeader(){this.util.forEach(document.querySelectorAll(".content-break h2"),function(a){a.insertAdjacentHTML("afterend","\n<div class=\"header-title-share\">\n<a href=\"".concat(document.URL,"#").concat(a.id,"\" target=\"_blank\">\u0441\u0441\u044B\u043B\u043A\u0430</a>\n<a href=\"https://t.me/share/url?url=").concat(document.URL,"#").concat(a.id,"\" target=\"_blank\">telegram</a>\n<a href=\"https://vk.com/share.php?url=").concat(document.URL,"#").concat(a.id,"\" target=\"_blank\">vk</a>\n<a href=\"https://twitter.com/intent/tweet?text=").concat(document.URL,"#").concat(a.id,"\" target=\"_blank\">twitter</a>\n<a href=\"https://www.facebook.com/sharer/sharer.php?u=").concat(document.URL,"#").concat(a.id,"\">fb</a>\n</div>"))})}},{key:"initToc",value:function initToc(){var a=this,b=document.getElementById("TableOfContents");if(null!==b)if(document.getElementById("toc-static").getAttribute("data-kept")||this.util.isTocStatic()){var o=document.getElementById("toc-content-static");b.parentElement!==o&&(b.parentElement.removeChild(b),o.appendChild(b)),this._tocOnScroll&&this.scrollEventSet.delete(this._tocOnScroll)}else{var p=document.getElementById("toc-content-auto");b.parentElement!==p&&(b.parentElement.removeChild(b),p.appendChild(b));var c=document.getElementById("toc-auto"),d=document.getElementsByClassName("content-block")[0],e=d.getBoundingClientRect();c.style.left="".concat(e.left+e.width+20,"px"),c.style.maxWidth="".concat(d.getBoundingClientRect().left-20+314,"px"),c.style.visibility="visible";var f=b.querySelectorAll("a:first-child"),g=b.getElementsByTagName("li"),h=document.getElementsByClassName("headerLink"),j="normal"!==document.body.getAttribute("data-header-desktop"),k=document.getElementById("header-desktop").offsetHeight,l=20+(j?k:0),m=c.offsetTop,n=m-l+(j?0:k);this._tocOnScroll=this._tocOnScroll||function(){var d=document.getElementById("toc-final").offsetTop,e=d-c.getBoundingClientRect().height,o=e-l+(j?0:k);a.newScrollTop<n?(c.style.position="absolute",c.style.top="".concat(m,"px")):a.newScrollTop>o?(c.style.position="absolute",c.style.top="".concat(e,"px")):(c.style.position="fixed",c.style.top="".concat(l,"px")),a.util.forEach(f,function(a){a.classList.remove("active")}),a.util.forEach(g,function(a){a.classList.remove("has-active")});for(var p=20+(j?k:0),q=h.length-1,r=0;r<h.length-1;r++){var s=h[r].getBoundingClientRect().top,t=h[r+1].getBoundingClientRect().top;if(0==r&&s>p||s<=p&&t>p){q=r;break}}if(-1!==q){for(var u,v=h[q],w=0;w<f.length;w++)if(f[w].hash.slice(1)===encodeURI(v.id)){u=f[w],w!==a.tocSelected&&(a.tocSelected=w);break}if("undefined"==typeof u&&-1!==a.tocSelected&&(u=f[a.tocSelected]),"undefined"!=typeof u){u.classList.add("active");for(var x=u.parentElement;x!==b;)x.classList.add("has-active"),x=x.parentElement.parentElement}}},this._tocOnScroll(),this.scrollEventSet.add(this._tocOnScroll)}}},{key:"initMath",value:function initMath(){this.config.math&&renderMathInElement(document.body,this.config.math)}},{key:"initMermaid",value:function initMermaid(){var a=this,b=document.getElementsByClassName("mermaid");b.length&&(mermaid.initialize({startOnLoad:!1,theme:"null"}),this.util.forEach(b,function(b){mermaid.mermaidAPI.render("svg-"+b.id,a.data[b.id],function(a){b.insertAdjacentHTML("afterbegin",a)},b)}))}},{key:"initEcharts",value:function initEcharts(){var a=this;this._echartsOnSwitchTheme=this._echartsOnSwitchTheme||function(){a._echartsArr=a._echartsArr||[];for(var b=0;b<a._echartsArr.length;b++)a._echartsArr[b].dispose();a._echartsArr=[],a.util.forEach(document.getElementsByClassName("echarts"),function(b){var c=echarts.init(b,a.isDark?"dark":"macarons",{renderer:"svg"});c.setOption(JSON.parse(a.data[b.id])),a._echartsArr.push(c)})},this.switchThemeEventSet.add(this._echartsOnSwitchTheme),this._echartsOnSwitchTheme(),this._echartsOnResize=this._echartsOnResize||function(){for(var b=0;b<a._echartsArr.length;b++)a._echartsArr[b].resize()},this.resizeEventSet.add(this._echartsOnResize)}},{key:"initMapbox",value:function initMapbox(){var a=this;this.config.mapbox&&(mapboxgl.accessToken=this.config.mapbox.accessToken,mapboxgl.setRTLTextPlugin(this.config.mapbox.RTLTextPlugin),this._mapboxArr=this._mapboxArr||[],this.util.forEach(document.getElementsByClassName("mapbox"),function(b){var c=a.data[b.id],d=c.lng,e=c.lat,f=c.zoom,g=c.lightStyle,h=c.darkStyle,i=c.marked,j=c.navigation,k=c.geolocate,l=c.scale,m=c.fullscreen,n=new mapboxgl.Map({container:b,center:[d,e],zoom:f,minZoom:.2,style:a.isDark?h:g,attributionControl:!1});i&&new mapboxgl.Marker().setLngLat([d,e]).addTo(n),j&&n.addControl(new mapboxgl.NavigationControl,"bottom-right"),k&&n.addControl(new mapboxgl.GeolocateControl({positionOptions:{enableHighAccuracy:!0},showUserLocation:!0,trackUserLocation:!0}),"bottom-right"),l&&n.addControl(new mapboxgl.ScaleControl),m&&n.addControl(new mapboxgl.FullscreenControl),n.addControl(new MapboxLanguage),a._mapboxArr.push(n)}),this._mapboxOnSwitchTheme=this._mapboxOnSwitchTheme||function(){a.util.forEach(a._mapboxArr,function(b){var c=b.getContainer(),d=a.data[c.id],e=d.lightStyle,f=d.darkStyle;b.setStyle(a.isDark?f:e),b.addControl(new MapboxLanguage)})},this.switchThemeEventSet.add(this._mapboxOnSwitchTheme))}},{key:"initComment",value:function initComment(){var a=this;if(this.config.comment){if(this.config.comment.gitalk){this.config.comment.gitalk.body=decodeURI(window.location.href);var d=new Gitalk(this.config.comment.gitalk);d.render("gitalk")}if(this.config.comment.valine&&new Valine(this.config.comment.valine),this.config.comment.utterances){var b=this.config.comment.utterances,c=document.createElement("script");c.src="https://utteranc.es/client.js",c.type="text/javascript",c.setAttribute("repo",b.repo),c.setAttribute("issue-term",b.issueTerm),b.label&&c.setAttribute("label",b.label),c.setAttribute("theme",this.isDark?b.darkTheme:b.lightTheme),c.crossOrigin="anonymous",c.async=!0,document.getElementById("utterances").appendChild(c),this._utterancesOnSwitchTheme=this._utterancesOnSwitchTheme||function(){var c={type:"set-theme",theme:a.isDark?b.darkTheme:b.lightTheme},d=document.querySelector(".utterances-frame");d.contentWindow.postMessage(c,"https://utteranc.es")},this.switchThemeEventSet.add(this._utterancesOnSwitchTheme)}}}},{key:"initSmoothScroll",value:function initSmoothScroll(){SmoothScroll&&new SmoothScroll("[href^=\"#\"]",{speed:300,speedAsDuration:!0,header:"#header-desktop"})}},{key:"initCookieconsent",value:function initCookieconsent(){this.config.cookieconsent&&cookieconsent.initialise(this.config.cookieconsent)}},{key:"onScroll",value:function onScroll(){var a=this,b=[];if("auto"===document.body.getAttribute("data-header-desktop")&&b.push(document.getElementById("header-desktop")),"auto"===document.body.getAttribute("data-header-mobile")&&b.push(document.getElementById("header-mobile")),document.getElementById("comments")){var e=document.getElementById("view-comments");e.href="#comments",e.style.display="block"}var c=document.getElementById("fixed-buttons"),d=20;window.addEventListener("scroll",function(){a.newScrollTop=a.util.getScrollTop();var e=a.newScrollTop-a.oldScrollTop,f=a.util.isMobile();a.util.forEach(b,function(b){e>d?(b.classList.remove("fadeInDown"),a.util.animateCSS(b,["fadeOutUp","faster"],!0)):e<-d&&(b.classList.remove("fadeOutUp"),a.util.animateCSS(b,["fadeInDown","faster"],!0))}),a.newScrollTop>100?f&&e>d?(c.classList.remove("fadeIn"),a.util.animateCSS(c,["fadeOut","faster"],!0)):(!f||e<-d)&&(c.style.display="block",c.classList.remove("fadeOut"),a.util.animateCSS(c,["fadeIn","faster"],!0)):(!f&&(c.classList.remove("fadeIn"),a.util.animateCSS(c,["fadeOut","faster"],!0)),c.style.display="none");var g,h=_createForOfIteratorHelper(a.scrollEventSet);try{for(h.s();!(g=h.n()).done;){var i=g.value;i()}}catch(a){h.e(a)}finally{h.f()}a.oldScrollTop=a.newScrollTop},!1)}},{key:"onResize",value:function onResize(){var a=this;window.addEventListener("resize",function(){a._resizeTimeout||(a._resizeTimeout=window.setTimeout(function(){a._resizeTimeout=null;var b,c=_createForOfIteratorHelper(a.resizeEventSet);try{for(c.s();!(b=c.n()).done;){var d=b.value;d()}}catch(a){c.e(a)}finally{c.f()}a.initToc(),a.initMermaid(),a.initSearch()},100))},!1)}},{key:"onClickMask",value:function onClickMask(){var a=this;document.getElementById("mask").addEventListener("click",function(){var b,c=_createForOfIteratorHelper(a.clickMaskEventSet);try{for(c.s();!(b=c.n()).done;){var d=b.value;d()}}catch(a){c.e(a)}finally{c.f()}document.body.classList.remove("blur")},!1)}},{key:"init",value:function init(){var a=this;try{this.initSVGIcon(),this.initTwemoji(),this.initMenuMobile(),this.initSwitchTheme(),this.initSearch(),this.initDetails(),this.initHighlight(),this.initTable(),this.initHeaderLink(),this.initShareHeader(),this.initSmoothScroll(),this.initMath(),this.initMermaid(),this.initEcharts(),this.initMapbox(),this.initCookieconsent()}catch(a){console.error(a)}window.setTimeout(function(){a.initToc(),a.initComment(),a.onScroll(),a.onResize(),a.onClickMask()},100)}}]),a}(),themeInit=function(){var a=new Theme;a.init()};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",themeInit,!1):themeInit();
+
+//# sourceMappingURL=theme.min.js.map \ No newline at end of file