<div id="result" style="height: auto; max-height: 100vh; width: 100vw; display: flex; align-items: end;"></div>
<input id="blk" type="number" style="display:none" />
<style type="text/css">
#result > svg {
width: 100vw !important;
height: auto !important;
max-height: 100vh;
}
</style>
<script type="text/javascript" id="preview" mint="MINT_INSCRIPTION_ID">
// Retrieve render area
const root = document.getElementById('result')
root.parentElement.style.width = '100%'
root.parentElement.style.height = '100%'
root.parentElement.style.padding = '0px'
root.parentElement.style.margin = '0px'
let blockNumber = 12345
// Retrieve content inscription id
let mintText = document.getElementById('preview').getAttribute('mint')
// Check no mint provided
if(mintText.includes('MINT_INSCRIPTION_ID')) {
let input = document.getElementById('blk')
input.style.display = 'block'
input.style.position = 'absolute'
input.style.fontSize = '20px'
input.style.margin = '20px'
input.style.top = '0'
input.value = blockNumber
input.addEventListener('input',(event) => {
blockNumber = input.value
update()
})
update()
}
// Mint was provided
else {
const request = new XMLHttpRequest()
try {
request.open('GET', '/content/' + mintText)
request.responseType = 'text'
request.addEventListener('load', () => initialize(request.response))
request.addEventListener('error', () => console.error('XHR error'))
request.send()
} catch (error) {
console.error(`XHR error ${request.status}`)
}
}
function initialize(result) {
if(result) {
console.log('Result', result)
data = JSON.parse(result)
blockNumber = data.blk
}
update()
}
function update() {
// reset
root.innerHTML = '';
//script build
(()=>{var t={486:function(t,e,r){var n;t=r.nmd(t),function(){var i,u="Expected a function",o="__lodash_hash_undefined__",c="__lodash_placeholder__",s=32,a=128,l=1/0,f=9007199254740991,h=NaN,p=4294967295,_=[["ary",a],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",s],["partialRight",64],["rearg",256]],d="[object Arguments]",b="[object Array]",g="[object Boolean]",y="[object Date]",v="[object Error]",A="[object Function]",m="[object GeneratorFunction]",w="[object Map]",k="[object Number]",x="[object Object]",S="[object Promise]",E="[object RegExp]",N="[object Set]",$="[object String]",j="[object Symbol]",z="[object WeakMap]",O="[object ArrayBuffer]",I="[object DataView]",C="[object Float32Array]",R="[object Float64Array]",M="[object Int8Array]",U="[object Int16Array]",W="[object Int32Array]",L="[object Uint8Array]",T="[object Uint8ClampedArray]",B="[object Uint16Array]",P="[object Uint32Array]",D=/\b__p \+= '';/g,q=/\b(__p \+=) '' \+/g,F=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Z=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,V=RegExp(Z.source),G=RegExp(K.source),J=/<%-([\s\S]+?)%>/g,H=/<%([\s\S]+?)%>/g,Y=/<%=([\s\S]+?)%>/g,Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,X=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,et=/[\\^$.*+?()[\]{}|]/g,rt=RegExp(et.source),nt=/^\s+/,it=/\s/,ut=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ot=/\{\n\/\* \[wrapped with (.+)\] \*/,ct=/,? & /,st=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,at=/[()=,{}\[\]\/\s]/,lt=/\\(\\)?/g,ft=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ht=/\w*$/,pt=/^[-+]0x[0-9a-f]+$/i,_t=/^0b[01]+$/i,dt=/^\[object .+?Constructor\]$/,bt=/^0o[0-7]+$/i,gt=/^(?:0|[1-9]\d*)$/,yt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vt=/($^)/,At=/['\n\r\u2028\u2029\\]/g,mt="\\ud800-\\udfff",wt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",kt="\\u2700-\\u27bf",xt="a-z\\xdf-\\xf6\\xf8-\\xff",St="A-Z\\xc0-\\xd6\\xd8-\\xde",Et="\\ufe0e\\ufe0f",Nt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",$t="["+mt+"]",jt="["+Nt+"]",zt="["+wt+"]",Ot="\\d+",It="["+kt+"]",Ct="["+xt+"]",Rt="[^"+mt+Nt+Ot+kt+xt+St+"]",Mt="\\ud83c[\\udffb-\\udfff]",Ut="[^"+mt+"]",Wt="(?:\\ud83c[\\udde6-\\uddff]){2}",Lt="[\\ud800-\\udbff][\\udc00-\\udfff]",Tt="["+St+"]",Bt="\\u200d",Pt="(?:"+Ct+"|"+Rt+")",Dt="(?:"+Tt+"|"+Rt+")",qt="(?:['’](?:d|ll|m|re|s|t|ve))?",Ft="(?:['’](?:D|LL|M|RE|S|T|VE))?",Zt="(?:"+zt+"|"+Mt+")?",Kt="["+Et+"]?",Vt=Kt+Zt+"(?:"+Bt+"(?:"+[Ut,Wt,Lt].join("|")+")"+Kt+Zt+")*",Gt="(?:"+[It,Wt,Lt].join("|")+")"+Vt,Jt="(?:"+[Ut+zt+"?",zt,Wt,Lt,$t].join("|")+")",Ht=RegExp("['’]","g"),Yt=RegExp(zt,"g"),Qt=RegExp(Mt+"(?="+Mt+")|"+Jt+Vt,"g"),Xt=RegExp([Tt+"?"+Ct+"+"+qt+"(?="+[jt,Tt,"$"].join("|")+")",Dt+"+"+Ft+"(?="+[jt,Tt+Pt,"$"].join("|")+")",Tt+"?"+Pt+"+"+qt,Tt+"+"+Ft,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ot,Gt].join("|"),"g"),te=RegExp("["+Bt+mt+wt+Et+"]"),ee=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,re=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ne=-1,ie={};ie[C]=ie[R]=ie[M]=ie[U]=ie[W]=ie[L]=ie[T]=ie[B]=ie[P]=!0,ie[d]=ie[b]=ie[O]=ie[g]=ie[I]=ie[y]=ie[v]=ie[A]=ie[w]=ie[k]=ie[x]=ie[E]=ie[N]=ie[$]=ie[z]=!1;var ue={};ue[d]=ue[b]=ue[O]=ue[I]=ue[g]=ue[y]=ue[C]=ue[R]=ue[M]=ue[U]=ue[W]=ue[w]=ue[k]=ue[x]=ue[E]=ue[N]=ue[$]=ue[j]=ue[L]=ue[T]=ue[B]=ue[P]=!0,ue[v]=ue[A]=ue[z]=!1;var oe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ce=parseFloat,se=parseInt,ae="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,le="object"==typeof self&&self&&self.Object===Object&&self,fe=ae||le||Function("return this")(),he=e&&!e.nodeType&&e,pe=he&&t&&!t.nodeType&&t,_e=pe&&pe.exports===he,de=_e&&ae.process,be=function(){try{return pe&&pe.require&&pe.require("util").types||de&&de.binding&&de.binding("util")}catch(t){}}(),ge=be&&be.isArrayBuffer,ye=be&&be.isDate,ve=be&&be.isMap,Ae=be&&be.isRegExp,me=be&&be.isSet,we=be&&be.isTypedArray;function ke(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function xe(t,e,r,n){for(var i=-1,u=null==t?0:t.length;++i<u;){var o=t[i];e(n,o,r(o),t)}return n}function Se(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}function Ee(t,e){for(var r=null==t?0:t.length;r--&&!1!==e(t[r],r,t););return t}function Ne(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(!e(t[r],r,t))return!1;return!0}function $e(t,e){for(var r=-1,n=null==t?0:t.length,i=0,u=[];++r<n;){var o=t[r];e(o,r,t)&&(u[i++]=o)}return u}function je(t,e){return!(null==t||!t.length)&&Te(t,e,0)>-1}function ze(t,e,r){for(var n=-1,i=null==t?0:t.length;++n<i;)if(r(e,t[n]))return!0;return!1}function Oe(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}function Ie(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}function Ce(t,e,r,n){var i=-1,u=null==t?0:t.length;for(n&&u&&(r=t[++i]);++i<u;)r=e(r,t[i],i,t);return r}function Re(t,e,r,n){var i=null==t?0:t.length;for(n&&i&&(r=t[--i]);i--;)r=e(r,t[i],i,t);return r}function Me(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}var Ue=qe("length");function We(t,e,r){var n;return r(t,(function(t,r,i){if(e(t,r,i))return n=r,!1})),n}function Le(t,e,r,n){for(var i=t.length,u=r+(n?1:-1);n?u--:++u<i;)if(e(t[u],u,t))return u;return-1}function Te(t,e,r){return e==e?function(t,e,r){for(var n=r-1,i=t.length;++n<i;)if(t[n]===e)return n;return-1}(t,e,r):Le(t,Pe,r)}function Be(t,e,r,n){for(var i=r-1,u=t.length;++i<u;)if(n(t[i],e))return i;return-1}function Pe(t){return t!=t}function De(t,e){var r=null==t?0:t.length;return r?Ke(t,e)/r:h}function qe(t){return function(e){return null==e?i:e[t]}}function Fe(t){return function(e){return null==t?i:t[e]}}function Ze(t,e,r,n,i){return i(t,(function(t,i,u){r=n?(n=!1,t):e(r,t,i,u)})),r}function Ke(t,e){for(var r,n=-1,u=t.length;++n<u;){var o=e(t[n]);o!==i&&(r=r===i?o:r+o)}return r}function Ve(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}function Ge(t){return t?t.slice(0,fr(t)+1).replace(nt,""):t}function Je(t){return function(e){return t(e)}}function He(t,e){return Oe(e,(function(e){return t[e]}))}function Ye(t,e){return t.has(e)}function Qe(t,e){for(var r=-1,n=t.length;++r<n&&Te(e,t[r],0)>-1;);return r}function Xe(t,e){for(var r=t.length;r--&&Te(e,t[r],0)>-1;);return r}var tr=Fe({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),er=Fe({"&":"&","<":"<",">":">",'"':""","'":"'"});function rr(t){return"\\"+oe[t]}function nr(t){return te.test(t)}function ir(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function ur(t,e){return function(r){return t(e(r))}}function or(t,e){for(var r=-1,n=t.length,i=0,u=[];++r<n;){var o=t[r];o!==e&&o!==c||(t[r]=c,u[i++]=r)}return u}function cr(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}function sr(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=[t,t]})),r}function ar(t){return nr(t)?function(t){for(var e=Qt.lastIndex=0;Qt.test(t);)++e;return e}(t):Ue(t)}function lr(t){return nr(t)?function(t){return t.match(Qt)||[]}(t):function(t){return t.split("")}(t)}function fr(t){for(var e=t.length;e--&&it.test(t.charAt(e)););return e}var hr=Fe({"&":"&","<":"<",">":">",""":'"',"'":"'"}),pr=function t(e){var r,n=(e=null==e?fe:pr.defaults(fe.Object(),e,pr.pick(fe,re))).Array,it=e.Date,mt=e.Error,wt=e.Function,kt=e.Math,xt=e.Object,St=e.RegExp,Et=e.String,Nt=e.TypeError,$t=n.prototype,jt=wt.prototype,zt=xt.prototype,Ot=e["__core-js_shared__"],It=jt.toString,Ct=zt.hasOwnProperty,Rt=0,Mt=(r=/[^.]+$/.exec(Ot&&Ot.keys&&Ot.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Ut=zt.toString,Wt=It.call(xt),Lt=fe._,Tt=St("^"+It.call(Ct).replace(et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Bt=_e?e.Buffer:i,Pt=e.Symbol,Dt=e.Uint8Array,qt=Bt?Bt.allocUnsafe:i,Ft=ur(xt.getPrototypeOf,xt),Zt=xt.create,Kt=zt.propertyIsEnumerable,Vt=$t.splice,Gt=Pt?Pt.isConcatSpreadable:i,Jt=Pt?Pt.iterator:i,Qt=Pt?Pt.toStringTag:i,te=function(){try{var t=su(xt,"defineProperty");return t({},"",{}),t}catch(t){}}(),oe=e.clearTimeout!==fe.clearTimeout&&e.clearTimeout,ae=it&&it.now!==fe.Date.now&&it.now,le=e.setTimeout!==fe.setTimeout&&e.setTimeout,he=kt.ceil,pe=kt.floor,de=xt.getOwnPropertySymbols,be=Bt?Bt.isBuffer:i,Ue=e.isFinite,Fe=$t.join,_r=ur(xt.keys,xt),dr=kt.max,br=kt.min,gr=it.now,yr=e.parseInt,vr=kt.random,Ar=$t.reverse,mr=su(e,"DataView"),wr=su(e,"Map"),kr=su(e,"Promise"),xr=su(e,"Set"),Sr=su(e,"WeakMap"),Er=su(xt,"create"),Nr=Sr&&new Sr,$r={},jr=Uu(mr),zr=Uu(wr),Or=Uu(kr),Ir=Uu(xr),Cr=Uu(Sr),Rr=Pt?Pt.prototype:i,Mr=Rr?Rr.valueOf:i,Ur=Rr?Rr.toString:i;function Wr(t){if(tc(t)&&!qo(t)&&!(t instanceof Pr)){if(t instanceof Br)return t;if(Ct.call(t,"__wrapped__"))return Wu(t)}return new Br(t)}var Lr=function(){function t(){}return function(e){if(!Xo(e))return{};if(Zt)return Zt(e);t.prototype=e;var r=new t;return t.prototype=i,r}}();function Tr(){}function Br(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=i}function Pr(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function Dr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function qr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Fr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Zr(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new Fr;++e<r;)this.add(t[e])}function Kr(t){var e=this.__data__=new qr(t);this.size=e.size}function Vr(t,e){var r=qo(t),n=!r&&Do(t),i=!r&&!n&&Vo(t),u=!r&&!n&&!i&&sc(t),o=r||n||i||u,c=o?Ve(t.length,Et):[],s=c.length;for(var a in t)!e&&!Ct.call(t,a)||o&&("length"==a||i&&("offset"==a||"parent"==a)||u&&("buffer"==a||"byteLength"==a||"byteOffset"==a)||du(a,s))||c.push(a);return c}function Gr(t){var e=t.length;return e?t[Zn(0,e-1)]:i}function Jr(t,e){return Ou(Ei(t),un(e,0,t.length))}function Hr(t){return Ou(Ei(t))}function Yr(t,e,r){(r!==i&&!To(t[e],r)||r===i&&!(e in t))&&rn(t,e,r)}function Qr(t,e,r){var n=t[e];Ct.call(t,e)&&To(n,r)&&(r!==i||e in t)||rn(t,e,r)}function Xr(t,e){for(var r=t.length;r--;)if(To(t[r][0],e))return r;return-1}function tn(t,e,r,n){return ln(t,(function(t,i,u){e(n,t,r(t),u)})),n}function en(t,e){return t&&Ni(e,zc(e),t)}function rn(t,e,r){"__proto__"==e&&te?te(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function nn(t,e){for(var r=-1,u=e.length,o=n(u),c=null==t;++r<u;)o[r]=c?i:Sc(t,e[r]);return o}function un(t,e,r){return t==t&&(r!==i&&(t=t<=r?t:r),e!==i&&(t=t>=e?t:e)),t}function on(t,e,r,n,u,o){var c,s=1&e,a=2&e,l=4&e;if(r&&(c=u?r(t,n,u,o):r(t)),c!==i)return c;if(!Xo(t))return t;var f=qo(t);if(f){if(c=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&Ct.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(t),!s)return Ei(t,c)}else{var h=fu(t),p=h==A||h==m;if(Vo(t))return Ai(t,s);if(h==x||h==d||p&&!u){if(c=a||p?{}:pu(t),!s)return a?function(t,e){return Ni(t,lu(t),e)}(t,function(t,e){return t&&Ni(e,Oc(e),t)}(c,t)):function(t,e){return Ni(t,au(t),e)}(t,en(c,t))}else{if(!ue[h])return u?t:{};c=function(t,e,r){var n,i=t.constructor;switch(e){case O:return mi(t);case g:case y:return new i(+t);case I:return function(t,e){var r=e?mi(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case C:case R:case M:case U:case W:case L:case T:case B:case P:return wi(t,r);case w:return new i;case k:case $:return new i(t);case E:return function(t){var e=new t.constructor(t.source,ht.exec(t));return e.lastIndex=t.lastIndex,e}(t);case N:return new i;case j:return n=t,Mr?xt(Mr.call(n)):{}}}(t,h,s)}}o||(o=new Kr);var _=o.get(t);if(_)return _;o.set(t,c),uc(t)?t.forEach((function(n){c.add(on(n,e,r,n,t,o))})):ec(t)&&t.forEach((function(n,i){c.set(i,on(n,e,r,i,t,o))}));var b=f?i:(l?a?eu:tu:a?Oc:zc)(t);return Se(b||t,(function(n,i){b&&(n=t[i=n]),Qr(c,i,on(n,e,r,i,t,o))})),c}function cn(t,e,r){var n=r.length;if(null==t)return!n;for(t=xt(t);n--;){var u=r[n],o=e[u],c=t[u];if(c===i&&!(u in t)||!o(c))return!1}return!0}function sn(t,e,r){if("function"!=typeof t)throw new Nt(u);return Nu((function(){t.apply(i,r)}),e)}function an(t,e,r,n){var i=-1,u=je,o=!0,c=t.length,s=[],a=e.length;if(!c)return s;r&&(e=Oe(e,Je(r))),n?(u=ze,o=!1):e.length>=200&&(u=Ye,o=!1,e=new Zr(e));t:for(;++i<c;){var l=t[i],f=null==r?l:r(l);if(l=n||0!==l?l:0,o&&f==f){for(var h=a;h--;)if(e[h]===f)continue t;s.push(l)}else u(e,f,n)||s.push(l)}return s}Wr.templateSettings={escape:J,evaluate:H,interpolate:Y,variable:"",imports:{_:Wr}},Wr.prototype=Tr.prototype,Wr.prototype.constructor=Wr,Br.prototype=Lr(Tr.prototype),Br.prototype.constructor=Br,Pr.prototype=Lr(Tr.prototype),Pr.prototype.constructor=Pr,Dr.prototype.clear=function(){this.__data__=Er?Er(null):{},this.size=0},Dr.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Dr.prototype.get=function(t){var e=this.__data__;if(Er){var r=e[t];return r===o?i:r}return Ct.call(e,t)?e[t]:i},Dr.prototype.has=function(t){var e=this.__data__;return Er?e[t]!==i:Ct.call(e,t)},Dr.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Er&&e===i?o:e,this},qr.prototype.clear=function(){this.__data__=[],this.size=0},qr.prototype.delete=function(t){var e=this.__data__,r=Xr(e,t);return!(r<0||(r==e.length-1?e.pop():Vt.call(e,r,1),--this.size,0))},qr.prototype.get=function(t){var e=this.__data__,r=Xr(e,t);return r<0?i:e[r][1]},qr.prototype.has=function(t){return Xr(this.__data__,t)>-1},qr.prototype.set=function(t,e){var r=this.__data__,n=Xr(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},Fr.prototype.clear=function(){this.size=0,this.__data__={hash:new Dr,map:new(wr||qr),string:new Dr}},Fr.prototype.delete=function(t){var e=ou(this,t).delete(t);return this.size-=e?1:0,e},Fr.prototype.get=function(t){return ou(this,t).get(t)},Fr.prototype.has=function(t){return ou(this,t).has(t)},Fr.prototype.set=function(t,e){var r=ou(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},Zr.prototype.add=Zr.prototype.push=function(t){return this.__data__.set(t,o),this},Zr.prototype.has=function(t){return this.__data__.has(t)},Kr.prototype.clear=function(){this.__data__=new qr,this.size=0},Kr.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},Kr.prototype.get=function(t){return this.__data__.get(t)},Kr.prototype.has=function(t){return this.__data__.has(t)},Kr.prototype.set=function(t,e){var r=this.__data__;if(r instanceof qr){var n=r.__data__;if(!wr||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Fr(n)}return r.set(t,e),this.size=r.size,this};var ln=zi(yn),fn=zi(vn,!0);function hn(t,e){var r=!0;return ln(t,(function(t,n,i){return r=!!e(t,n,i)})),r}function pn(t,e,r){for(var n=-1,u=t.length;++n<u;){var o=t[n],c=e(o);if(null!=c&&(s===i?c==c&&!cc(c):r(c,s)))var s=c,a=o}return a}function _n(t,e){var r=[];return ln(t,(function(t,n,i){e(t,n,i)&&r.push(t)})),r}function dn(t,e,r,n,i){var u=-1,o=t.length;for(r||(r=_u),i||(i=[]);++u<o;){var c=t[u];e>0&&r(c)?e>1?dn(c,e-1,r,n,i):Ie(i,c):n||(i[i.length]=c)}return i}var bn=Oi(),gn=Oi(!0);function yn(t,e){return t&&bn(t,e,zc)}function vn(t,e){return t&&gn(t,e,zc)}function An(t,e){return $e(e,(function(e){return Ho(t[e])}))}function mn(t,e){for(var r=0,n=(e=bi(e,t)).length;null!=t&&r<n;)t=t[Mu(e[r++])];return r&&r==n?t:i}function wn(t,e,r){var n=e(t);return qo(t)?n:Ie(n,r(t))}function kn(t){return null==t?t===i?"[object Undefined]":"[object Null]":Qt&&Qt in xt(t)?function(t){var e=Ct.call(t,Qt),r=t[Qt];try{t[Qt]=i;var n=!0}catch(t){}var u=Ut.call(t);return n&&(e?t[Qt]=r:delete t[Qt]),u}(t):function(t){return Ut.call(t)}(t)}function xn(t,e){return t>e}function Sn(t,e){return null!=t&&Ct.call(t,e)}function En(t,e){return null!=t&&e in xt(t)}function Nn(t,e,r){for(var u=r?ze:je,o=t[0].length,c=t.length,s=c,a=n(c),l=1/0,f=[];s--;){var h=t[s];s&&e&&(h=Oe(h,Je(e))),l=br(h.length,l),a[s]=!r&&(e||o>=120&&h.length>=120)?new Zr(s&&h):i}h=t[0];var p=-1,_=a[0];t:for(;++p<o&&f.length<l;){var d=h[p],b=e?e(d):d;if(d=r||0!==d?d:0,!(_?Ye(_,b):u(f,b,r))){for(s=c;--s;){var g=a[s];if(!(g?Ye(g,b):u(t[s],b,r)))continue t}_&&_.push(b),f.push(d)}}return f}function $n(t,e,r){var n=null==(t=xu(t,e=bi(e,t)))?t:t[Mu(Gu(e))];return null==n?i:ke(n,t,r)}function jn(t){return tc(t)&&kn(t)==d}function zn(t,e,r,n,u){return t===e||(null==t||null==e||!tc(t)&&!tc(e)?t!=t&&e!=e:function(t,e,r,n,u,o){var c=qo(t),s=qo(e),a=c?b:fu(t),l=s?b:fu(e),f=(a=a==d?x:a)==x,h=(l=l==d?x:l)==x,p=a==l;if(p&&Vo(t)){if(!Vo(e))return!1;c=!0,f=!1}if(p&&!f)return o||(o=new Kr),c||sc(t)?Qi(t,e,r,n,u,o):function(t,e,r,n,i,u,o){switch(r){case I:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case O:return!(t.byteLength!=e.byteLength||!u(new Dt(t),new Dt(e)));case g:case y:case k:return To(+t,+e);case v:return t.name==e.name&&t.message==e.message;case E:case $:return t==e+"";case w:var c=ir;case N:var s=1&n;if(c||(c=cr),t.size!=e.size&&!s)return!1;var a=o.get(t);if(a)return a==e;n|=2,o.set(t,e);var l=Qi(c(t),c(e),n,i,u,o);return o.delete(t),l;case j:if(Mr)return Mr.call(t)==Mr.call(e)}return!1}(t,e,a,r,n,u,o);if(!(1&r)){var _=f&&Ct.call(t,"__wrapped__"),A=h&&Ct.call(e,"__wrapped__");if(_||A){var m=_?t.value():t,S=A?e.value():e;return o||(o=new Kr),u(m,S,r,n,o)}}return!!p&&(o||(o=new Kr),function(t,e,r,n,u,o){var c=1&r,s=tu(t),a=s.length;if(a!=tu(e).length&&!c)return!1;for(var l=a;l--;){var f=s[l];if(!(c?f in e:Ct.call(e,f)))return!1}var h=o.get(t),p=o.get(e);if(h&&p)return h==e&&p==t;var _=!0;o.set(t,e),o.set(e,t);for(var d=c;++l<a;){var b=t[f=s[l]],g=e[f];if(n)var y=c?n(g,b,f,e,t,o):n(b,g,f,t,e,o);if(!(y===i?b===g||u(b,g,r,n,o):y)){_=!1;break}d||(d="constructor"==f)}if(_&&!d){var v=t.constructor,A=e.constructor;v==A||!("constructor"in t)||!("constructor"in e)||"function"==typeof v&&v instanceof v&&"function"==typeof A&&A instanceof A||(_=!1)}return o.delete(t),o.delete(e),_}(t,e,r,n,u,o))}(t,e,r,n,zn,u))}function On(t,e,r,n){var u=r.length,o=u,c=!n;if(null==t)return!o;for(t=xt(t);u--;){var s=r[u];if(c&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++u<o;){var a=(s=r[u])[0],l=t[a],f=s[1];if(c&&s[2]){if(l===i&&!(a in t))return!1}else{var h=new Kr;if(n)var p=n(l,f,a,t,e,h);if(!(p===i?zn(f,l,3,n,h):p))return!1}}return!0}function In(t){return!(!Xo(t)||(e=t,Mt&&Mt in e))&&(Ho(t)?Tt:dt).test(Uu(t));var e}function Cn(t){return"function"==typeof t?t:null==t?rs:"object"==typeof t?qo(t)?Ln(t[0],t[1]):Wn(t):fs(t)}function Rn(t){if(!Au(t))return _r(t);var e=[];for(var r in xt(t))Ct.call(t,r)&&"constructor"!=r&&e.push(r);return e}function Mn(t,e){return t<e}function Un(t,e){var r=-1,i=Zo(t)?n(t.length):[];return ln(t,(function(t,n,u){i[++r]=e(t,n,u)})),i}function Wn(t){var e=cu(t);return 1==e.length&&e[0][2]?wu(e[0][0],e[0][1]):function(r){return r===t||On(r,t,e)}}function Ln(t,e){return gu(t)&&mu(e)?wu(Mu(t),e):function(r){var n=Sc(r,t);return n===i&&n===e?Ec(r,t):zn(e,n,3)}}function Tn(t,e,r,n,u){t!==e&&bn(e,(function(o,c){if(u||(u=new Kr),Xo(o))!function(t,e,r,n,u,o,c){var s=Su(t,r),a=Su(e,r),l=c.get(a);if(l)Yr(t,r,l);else{var f=o?o(s,a,r+"",t,e,c):i,h=f===i;if(h){var p=qo(a),_=!p&&Vo(a),d=!p&&!_&&sc(a);f=a,p||_||d?qo(s)?f=s:Ko(s)?f=Ei(s):_?(h=!1,f=Ai(a,!0)):d?(h=!1,f=wi(a,!0)):f=[]:nc(a)||Do(a)?(f=s,Do(s)?f=bc(s):Xo(s)&&!Ho(s)||(f=pu(a))):h=!1}h&&(c.set(a,f),u(f,a,n,o,c),c.delete(a)),Yr(t,r,f)}}(t,e,c,r,Tn,n,u);else{var s=n?n(Su(t,c),o,c+"",t,e,u):i;s===i&&(s=o),Yr(t,c,s)}}),Oc)}function Bn(t,e){var r=t.length;if(r)return du(e+=e<0?r:0,r)?t[e]:i}function Pn(t,e,r){e=e.length?Oe(e,(function(t){return qo(t)?function(e){return mn(e,1===t.length?t[0]:t)}:t})):[rs];var n=-1;e=Oe(e,Je(uu()));var i=Un(t,(function(t,r,i){var u=Oe(e,(function(e){return e(t)}));return{criteria:u,index:++n,value:t}}));return function(t,e){var n=t.length;for(t.sort((function(t,e){return function(t,e,r){for(var n=-1,i=t.criteria,u=e.criteria,o=i.length,c=r.length;++n<o;){var s=ki(i[n],u[n]);if(s)return n>=c?s:s*("desc"==r[n]?-1:1)}return t.index-e.index}(t,e,r)}));n--;)t[n]=t[n].value;return t}(i)}function Dn(t,e,r){for(var n=-1,i=e.length,u={};++n<i;){var o=e[n],c=mn(t,o);r(c,o)&&Hn(u,bi(o,t),c)}return u}function qn(t,e,r,n){var i=n?Be:Te,u=-1,o=e.length,c=t;for(t===e&&(e=Ei(e)),r&&(c=Oe(t,Je(r)));++u<o;)for(var s=0,a=e[u],l=r?r(a):a;(s=i(c,l,s,n))>-1;)c!==t&&Vt.call(c,s,1),Vt.call(t,s,1);return t}function Fn(t,e){for(var r=t?e.length:0,n=r-1;r--;){var i=e[r];if(r==n||i!==u){var u=i;du(i)?Vt.call(t,i,1):si(t,i)}}return t}function Zn(t,e){return t+pe(vr()*(e-t+1))}function Kn(t,e){var r="";if(!t||e<1||e>f)return r;do{e%2&&(r+=t),(e=pe(e/2))&&(t+=t)}while(e);return r}function Vn(t,e){return $u(ku(t,e,rs),t+"")}function Gn(t){return Gr(Tc(t))}function Jn(t,e){var r=Tc(t);return Ou(r,un(e,0,r.length))}function Hn(t,e,r,n){if(!Xo(t))return t;for(var u=-1,o=(e=bi(e,t)).length,c=o-1,s=t;null!=s&&++u<o;){var a=Mu(e[u]),l=r;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(u!=c){var f=s[a];(l=n?n(f,a,s):i)===i&&(l=Xo(f)?f:du(e[u+1])?[]:{})}Qr(s,a,l),s=s[a]}return t}var Yn=Nr?function(t,e){return Nr.set(t,e),t}:rs,Qn=te?function(t,e){return te(t,"toString",{configurable:!0,enumerable:!1,value:Xc(e),writable:!0})}:rs;function Xn(t){return Ou(Tc(t))}function ti(t,e,r){var i=-1,u=t.length;e<0&&(e=-e>u?0:u+e),(r=r>u?u:r)<0&&(r+=u),u=e>r?0:r-e>>>0,e>>>=0;for(var o=n(u);++i<u;)o[i]=t[i+e];return o}function ei(t,e){var r;return ln(t,(function(t,n,i){return!(r=e(t,n,i))})),!!r}function ri(t,e,r){var n=0,i=null==t?n:t.length;if("number"==typeof e&&e==e&&i<=2147483647){for(;n<i;){var u=n+i>>>1,o=t[u];null!==o&&!cc(o)&&(r?o<=e:o<e)?n=u+1:i=u}return i}return ni(t,e,rs,r)}function ni(t,e,r,n){var u=0,o=null==t?0:t.length;if(0===o)return 0;for(var c=(e=r(e))!=e,s=null===e,a=cc(e),l=e===i;u<o;){var f=pe((u+o)/2),h=r(t[f]),p=h!==i,_=null===h,d=h==h,b=cc(h);if(c)var g=n||d;else g=l?d&&(n||p):s?d&&p&&(n||!_):a?d&&p&&!_&&(n||!b):!_&&!b&&(n?h<=e:h<e);g?u=f+1:o=f}return br(o,4294967294)}function ii(t,e){for(var r=-1,n=t.length,i=0,u=[];++r<n;){var o=t[r],c=e?e(o):o;if(!r||!To(c,s)){var s=c;u[i++]=0===o?0:o}}return u}function ui(t){return"number"==typeof t?t:cc(t)?h:+t}function oi(t){if("string"==typeof t)return t;if(qo(t))return Oe(t,oi)+"";if(cc(t))return Ur?Ur.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function ci(t,e,r){var n=-1,i=je,u=t.length,o=!0,c=[],s=c;if(r)o=!1,i=ze;else if(u>=200){var a=e?null:Ki(t);if(a)return cr(a);o=!1,i=Ye,s=new Zr}else s=e?[]:c;t:for(;++n<u;){var l=t[n],f=e?e(l):l;if(l=r||0!==l?l:0,o&&f==f){for(var h=s.length;h--;)if(s[h]===f)continue t;e&&s.push(f),c.push(l)}else i(s,f,r)||(s!==c&&s.push(f),c.push(l))}return c}function si(t,e){return null==(t=xu(t,e=bi(e,t)))||delete t[Mu(Gu(e))]}function ai(t,e,r,n){return Hn(t,e,r(mn(t,e)),n)}function li(t,e,r,n){for(var i=t.length,u=n?i:-1;(n?u--:++u<i)&&e(t[u],u,t););return r?ti(t,n?0:u,n?u+1:i):ti(t,n?u+1:0,n?i:u)}function fi(t,e){var r=t;return r instanceof Pr&&(r=r.value()),Ce(e,(function(t,e){return e.func.apply(e.thisArg,Ie([t],e.args))}),r)}function hi(t,e,r){var i=t.length;if(i<2)return i?ci(t[0]):[];for(var u=-1,o=n(i);++u<i;)for(var c=t[u],s=-1;++s<i;)s!=u&&(o[u]=an(o[u]||c,t[s],e,r));return ci(dn(o,1),e,r)}function pi(t,e,r){for(var n=-1,u=t.length,o=e.length,c={};++n<u;){var s=n<o?e[n]:i;r(c,t[n],s)}return c}function _i(t){return Ko(t)?t:[]}function di(t){return"function"==typeof t?t:rs}function bi(t,e){return qo(t)?t:gu(t,e)?[t]:Ru(gc(t))}var gi=Vn;function yi(t,e,r){var n=t.length;return r=r===i?n:r,!e&&r>=n?t:ti(t,e,r)}var vi=oe||function(t){return fe.clearTimeout(t)};function Ai(t,e){if(e)return t.slice();var r=t.length,n=qt?qt(r):new t.constructor(r);return t.copy(n),n}function mi(t){var e=new t.constructor(t.byteLength);return new Dt(e).set(new Dt(t)),e}function wi(t,e){var r=e?mi(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function ki(t,e){if(t!==e){var r=t!==i,n=null===t,u=t==t,o=cc(t),c=e!==i,s=null===e,a=e==e,l=cc(e);if(!s&&!l&&!o&&t>e||o&&c&&a&&!s&&!l||n&&c&&a||!r&&a||!u)return 1;if(!n&&!o&&!l&&t<e||l&&r&&u&&!n&&!o||s&&r&&u||!c&&u||!a)return-1}return 0}function xi(t,e,r,i){for(var u=-1,o=t.length,c=r.length,s=-1,a=e.length,l=dr(o-c,0),f=n(a+l),h=!i;++s<a;)f[s]=e[s];for(;++u<c;)(h||u<o)&&(f[r[u]]=t[u]);for(;l--;)f[s++]=t[u++];return f}function Si(t,e,r,i){for(var u=-1,o=t.length,c=-1,s=r.length,a=-1,l=e.length,f=dr(o-s,0),h=n(f+l),p=!i;++u<f;)h[u]=t[u];for(var _=u;++a<l;)h[_+a]=e[a];for(;++c<s;)(p||u<o)&&(h[_+r[c]]=t[u++]);return h}function Ei(t,e){var r=-1,i=t.length;for(e||(e=n(i));++r<i;)e[r]=t[r];return e}function Ni(t,e,r,n){var u=!r;r||(r={});for(var o=-1,c=e.length;++o<c;){var s=e[o],a=n?n(r[s],t[s],s,r,t):i;a===i&&(a=t[s]),u?rn(r,s,a):Qr(r,s,a)}return r}function $i(t,e){return function(r,n){var i=qo(r)?xe:tn,u=e?e():{};return i(r,t,uu(n,2),u)}}function ji(t){return Vn((function(e,r){var n=-1,u=r.length,o=u>1?r[u-1]:i,c=u>2?r[2]:i;for(o=t.length>3&&"function"==typeof o?(u--,o):i,c&&bu(r[0],r[1],c)&&(o=u<3?i:o,u=1),e=xt(e);++n<u;){var s=r[n];s&&t(e,s,n,o)}return e}))}function zi(t,e){return function(r,n){if(null==r)return r;if(!Zo(r))return t(r,n);for(var i=r.length,u=e?i:-1,o=xt(r);(e?u--:++u<i)&&!1!==n(o[u],u,o););return r}}function Oi(t){return function(e,r,n){for(var i=-1,u=xt(e),o=n(e),c=o.length;c--;){var s=o[t?c:++i];if(!1===r(u[s],s,u))break}return e}}function Ii(t){return function(e){var r=nr(e=gc(e))?lr(e):i,n=r?r[0]:e.charAt(0),u=r?yi(r,1).join(""):e.slice(1);return n[t]()+u}}function Ci(t){return function(e){return Ce(Hc(Dc(e).replace(Ht,"")),t,"")}}function Ri(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var r=Lr(t.prototype),n=t.apply(r,e);return Xo(n)?n:r}}function Mi(t){return function(e,r,n){var u=xt(e);if(!Zo(e)){var o=uu(r,3);e=zc(e),r=function(t){return o(u[t],t,u)}}var c=t(e,r,n);return c>-1?u[o?e[c]:c]:i}}function Ui(t){return Xi((function(e){var r=e.length,n=r,o=Br.prototype.thru;for(t&&e.reverse();n--;){var c=e[n];if("function"!=typeof c)throw new Nt(u);if(o&&!s&&"wrapper"==nu(c))var s=new Br([],!0)}for(n=s?n:r;++n<r;){var a=nu(c=e[n]),l="wrapper"==a?ru(c):i;s=l&&yu(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?s[nu(l[0])].apply(s,l[3]):1==c.length&&yu(c)?s[a]():s.thru(c)}return function(){var t=arguments,n=t[0];if(s&&1==t.length&&qo(n))return s.plant(n).value();for(var i=0,u=r?e[i].apply(this,t):n;++i<r;)u=e[i].call(this,u);return u}}))}function Wi(t,e,r,u,o,c,s,l,f,h){var p=e&a,_=1&e,d=2&e,b=24&e,g=512&e,y=d?i:Ri(t);return function a(){for(var v=arguments.length,A=n(v),m=v;m--;)A[m]=arguments[m];if(b)var w=iu(a),k=function(t,e){for(var r=t.length,n=0;r--;)t[r]===e&&++n;return n}(A,w);if(u&&(A=xi(A,u,o,b)),c&&(A=Si(A,c,s,b)),v-=k,b&&v<h){var x=or(A,w);return Fi(t,e,Wi,a.placeholder,r,A,x,l,f,h-v)}var S=_?r:this,E=d?S[t]:t;return v=A.length,l?A=function(t,e){for(var r=t.length,n=br(e.length,r),u=Ei(t);n--;){var o=e[n];t[n]=du(o,r)?u[o]:i}return t}(A,l):g&&v>1&&A.reverse(),p&&f<v&&(A.length=f),this&&this!==fe&&this instanceof a&&(E=y||Ri(E)),E.apply(S,A)}}function Li(t,e){return function(r,n){return function(t,e,r,n){return yn(t,(function(t,i,u){e(n,r(t),i,u)})),n}(r,t,e(n),{})}}function Ti(t,e){return function(r,n){var u;if(r===i&&n===i)return e;if(r!==i&&(u=r),n!==i){if(u===i)return n;"string"==typeof r||"string"==typeof n?(r=oi(r),n=oi(n)):(r=ui(r),n=ui(n)),u=t(r,n)}return u}}function Bi(t){return Xi((function(e){return e=Oe(e,Je(uu())),Vn((function(r){var n=this;return t(e,(function(t){return ke(t,n,r)}))}))}))}function Pi(t,e){var r=(e=e===i?" ":oi(e)).length;if(r<2)return r?Kn(e,t):e;var n=Kn(e,he(t/ar(e)));return nr(e)?yi(lr(n),0,t).join(""):n.slice(0,t)}function Di(t){return function(e,r,u){return u&&"number"!=typeof u&&bu(e,r,u)&&(r=u=i),e=hc(e),r===i?(r=e,e=0):r=hc(r),function(t,e,r,i){for(var u=-1,o=dr(he((e-t)/(r||1)),0),c=n(o);o--;)c[i?o:++u]=t,t+=r;return c}(e,r,u=u===i?e<r?1:-1:hc(u),t)}}function qi(t){return function(e,r){return"string"==typeof e&&"string"==typeof r||(e=dc(e),r=dc(r)),t(e,r)}}function Fi(t,e,r,n,u,o,c,a,l,f){var h=8&e;e|=h?s:64,4&(e&=~(h?64:s))||(e&=-4);var p=[t,e,u,h?o:i,h?c:i,h?i:o,h?i:c,a,l,f],_=r.apply(i,p);return yu(t)&&Eu(_,p),_.placeholder=n,ju(_,t,e)}function Zi(t){var e=kt[t];return function(t,r){if(t=dc(t),(r=null==r?0:br(pc(r),292))&&Ue(t)){var n=(gc(t)+"e").split("e");return+((n=(gc(e(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return e(t)}}var Ki=xr&&1/cr(new xr([,-0]))[1]==l?function(t){return new xr(t)}:cs;function Vi(t){return function(e){var r=fu(e);return r==w?ir(e):r==N?sr(e):function(t,e){return Oe(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function Gi(t,e,r,o,l,f,h,p){var _=2&e;if(!_&&"function"!=typeof t)throw new Nt(u);var d=o?o.length:0;if(d||(e&=-97,o=l=i),h=h===i?h:dr(pc(h),0),p=p===i?p:pc(p),d-=l?l.length:0,64&e){var b=o,g=l;o=l=i}var y=_?i:ru(t),v=[t,e,r,o,l,b,g,f,h,p];if(y&&function(t,e){var r=t[1],n=e[1],i=r|n,u=i<131,o=n==a&&8==r||n==a&&256==r&&t[7].length<=e[8]||384==n&&e[7].length<=e[8]&&8==r;if(!u&&!o)return t;1&n&&(t[2]=e[2],i|=1&r?0:4);var s=e[3];if(s){var l=t[3];t[3]=l?xi(l,s,e[4]):s,t[4]=l?or(t[3],c):e[4]}(s=e[5])&&(l=t[5],t[5]=l?Si(l,s,e[6]):s,t[6]=l?or(t[5],c):e[6]),(s=e[7])&&(t[7]=s),n&a&&(t[8]=null==t[8]?e[8]:br(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i}(v,y),t=v[0],e=v[1],r=v[2],o=v[3],l=v[4],!(p=v[9]=v[9]===i?_?0:t.length:dr(v[9]-d,0))&&24&e&&(e&=-25),e&&1!=e)A=8==e||16==e?function(t,e,r){var u=Ri(t);return function o(){for(var c=arguments.length,s=n(c),a=c,l=iu(o);a--;)s[a]=arguments[a];var f=c<3&&s[0]!==l&&s[c-1]!==l?[]:or(s,l);return(c-=f.length)<r?Fi(t,e,Wi,o.placeholder,i,s,f,i,i,r-c):ke(this&&this!==fe&&this instanceof o?u:t,this,s)}}(t,e,p):e!=s&&33!=e||l.length?Wi.apply(i,v):function(t,e,r,i){var u=1&e,o=Ri(t);return function e(){for(var c=-1,s=arguments.length,a=-1,l=i.length,f=n(l+s),h=this&&this!==fe&&this instanceof e?o:t;++a<l;)f[a]=i[a];for(;s--;)f[a++]=arguments[++c];return ke(h,u?r:this,f)}}(t,e,r,o);else var A=function(t,e,r){var n=1&e,i=Ri(t);return function e(){return(this&&this!==fe&&this instanceof e?i:t).apply(n?r:this,arguments)}}(t,e,r);return ju((y?Yn:Eu)(A,v),t,e)}function Ji(t,e,r,n){return t===i||To(t,zt[r])&&!Ct.call(n,r)?e:t}function Hi(t,e,r,n,u,o){return Xo(t)&&Xo(e)&&(o.set(e,t),Tn(t,e,i,Hi,o),o.delete(e)),t}function Yi(t){return nc(t)?i:t}function Qi(t,e,r,n,u,o){var c=1&r,s=t.length,a=e.length;if(s!=a&&!(c&&a>s))return!1;var l=o.get(t),f=o.get(e);if(l&&f)return l==e&&f==t;var h=-1,p=!0,_=2&r?new Zr:i;for(o.set(t,e),o.set(e,t);++h<s;){var d=t[h],b=e[h];if(n)var g=c?n(b,d,h,e,t,o):n(d,b,h,t,e,o);if(g!==i){if(g)continue;p=!1;break}if(_){if(!Me(e,(function(t,e){if(!Ye(_,e)&&(d===t||u(d,t,r,n,o)))return _.push(e)}))){p=!1;break}}else if(d!==b&&!u(d,b,r,n,o)){p=!1;break}}return o.delete(t),o.delete(e),p}function Xi(t){return $u(ku(t,i,qu),t+"")}function tu(t){return wn(t,zc,au)}function eu(t){return wn(t,Oc,lu)}var ru=Nr?function(t){return Nr.get(t)}:cs;function nu(t){for(var e=t.name+"",r=$r[e],n=Ct.call($r,e)?r.length:0;n--;){var i=r[n],u=i.func;if(null==u||u==t)return i.name}return e}function iu(t){return(Ct.call(Wr,"placeholder")?Wr:t).placeholder}function uu(){var t=Wr.iteratee||ns;return t=t===ns?Cn:t,arguments.length?t(arguments[0],arguments[1]):t}function ou(t,e){var r,n,i=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof e?"string":"hash"]:i.map}function cu(t){for(var e=zc(t),r=e.length;r--;){var n=e[r],i=t[n];e[r]=[n,i,mu(i)]}return e}function su(t,e){var r=function(t,e){return null==t?i:t[e]}(t,e);return In(r)?r:i}var au=de?function(t){return null==t?[]:(t=xt(t),$e(de(t),(function(e){return Kt.call(t,e)})))}:_s,lu=de?function(t){for(var e=[];t;)Ie(e,au(t)),t=Ft(t);return e}:_s,fu=kn;function hu(t,e,r){for(var n=-1,i=(e=bi(e,t)).length,u=!1;++n<i;){var o=Mu(e[n]);if(!(u=null!=t&&r(t,o)))break;t=t[o]}return u||++n!=i?u:!!(i=null==t?0:t.length)&&Qo(i)&&du(o,i)&&(qo(t)||Do(t))}function pu(t){return"function"!=typeof t.constructor||Au(t)?{}:Lr(Ft(t))}function _u(t){return qo(t)||Do(t)||!!(Gt&&t&&t[Gt])}function du(t,e){var r=typeof t;return!!(e=null==e?f:e)&&("number"==r||"symbol"!=r&>.test(t))&&t>-1&&t%1==0&&t<e}function bu(t,e,r){if(!Xo(r))return!1;var n=typeof e;return!!("number"==n?Zo(r)&&du(e,r.length):"string"==n&&e in r)&&To(r[e],t)}function gu(t,e){if(qo(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!cc(t))||X.test(t)||!Q.test(t)||null!=e&&t in xt(e)}function yu(t){var e=nu(t),r=Wr[e];if("function"!=typeof r||!(e in Pr.prototype))return!1;if(t===r)return!0;var n=ru(r);return!!n&&t===n[0]}(mr&&fu(new mr(new ArrayBuffer(1)))!=I||wr&&fu(new wr)!=w||kr&&fu(kr.resolve())!=S||xr&&fu(new xr)!=N||Sr&&fu(new Sr)!=z)&&(fu=function(t){var e=kn(t),r=e==x?t.constructor:i,n=r?Uu(r):"";if(n)switch(n){case jr:return I;case zr:return w;case Or:return S;case Ir:return N;case Cr:return z}return e});var vu=Ot?Ho:ds;function Au(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||zt)}function mu(t){return t==t&&!Xo(t)}function wu(t,e){return function(r){return null!=r&&r[t]===e&&(e!==i||t in xt(r))}}function ku(t,e,r){return e=dr(e===i?t.length-1:e,0),function(){for(var i=arguments,u=-1,o=dr(i.length-e,0),c=n(o);++u<o;)c[u]=i[e+u];u=-1;for(var s=n(e+1);++u<e;)s[u]=i[u];return s[e]=r(c),ke(t,this,s)}}function xu(t,e){return e.length<2?t:mn(t,ti(e,0,-1))}function Su(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var Eu=zu(Yn),Nu=le||function(t,e){return fe.setTimeout(t,e)},$u=zu(Qn);function ju(t,e,r){var n=e+"";return $u(t,function(t,e){var r=e.length;if(!r)return t;var n=r-1;return e[n]=(r>1?"& ":"")+e[n],e=e.join(r>2?", ":" "),t.replace(ut,"{\n/* [wrapped with "+e+"] */\n")}(n,function(t,e){return Se(_,(function(r){var n="_."+r[0];e&r[1]&&!je(t,n)&&t.push(n)})),t.sort()}(function(t){var e=t.match(ot);return e?e[1].split(ct):[]}(n),r)))}function zu(t){var e=0,r=0;return function(){var n=gr(),u=16-(n-r);if(r=n,u>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(i,arguments)}}function Ou(t,e){var r=-1,n=t.length,u=n-1;for(e=e===i?n:e;++r<e;){var o=Zn(r,u),c=t[o];t[o]=t[r],t[r]=c}return t.length=e,t}var Iu,Cu,Ru=(Iu=Co((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(tt,(function(t,r,n,i){e.push(n?i.replace(lt,"$1"):r||t)})),e}),(function(t){return 500===Cu.size&&Cu.clear(),t})),Cu=Iu.cache,Iu);function Mu(t){if("string"==typeof t||cc(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Uu(t){if(null!=t){try{return It.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Wu(t){if(t instanceof Pr)return t.clone();var e=new Br(t.__wrapped__,t.__chain__);return e.__actions__=Ei(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Lu=Vn((function(t,e){return Ko(t)?an(t,dn(e,1,Ko,!0)):[]})),Tu=Vn((function(t,e){var r=Gu(e);return Ko(r)&&(r=i),Ko(t)?an(t,dn(e,1,Ko,!0),uu(r,2)):[]})),Bu=Vn((function(t,e){var r=Gu(e);return Ko(r)&&(r=i),Ko(t)?an(t,dn(e,1,Ko,!0),i,r):[]}));function Pu(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var i=null==r?0:pc(r);return i<0&&(i=dr(n+i,0)),Le(t,uu(e,3),i)}function Du(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var u=n-1;return r!==i&&(u=pc(r),u=r<0?dr(n+u,0):br(u,n-1)),Le(t,uu(e,3),u,!0)}function qu(t){return null!=t&&t.length?dn(t,1):[]}function Fu(t){return t&&t.length?t[0]:i}var Zu=Vn((function(t){var e=Oe(t,_i);return e.length&&e[0]===t[0]?Nn(e):[]})),Ku=Vn((function(t){var e=Gu(t),r=Oe(t,_i);return e===Gu(r)?e=i:r.pop(),r.length&&r[0]===t[0]?Nn(r,uu(e,2)):[]})),Vu=Vn((function(t){var e=Gu(t),r=Oe(t,_i);return(e="function"==typeof e?e:i)&&r.pop(),r.length&&r[0]===t[0]?Nn(r,i,e):[]}));function Gu(t){var e=null==t?0:t.length;return e?t[e-1]:i}var Ju=Vn(Hu);function Hu(t,e){return t&&t.length&&e&&e.length?qn(t,e):t}var Yu=Xi((function(t,e){var r=null==t?0:t.length,n=nn(t,e);return Fn(t,Oe(e,(function(t){return du(t,r)?+t:t})).sort(ki)),n}));function Qu(t){return null==t?t:Ar.call(t)}var Xu=Vn((function(t){return ci(dn(t,1,Ko,!0))})),to=Vn((function(t){var e=Gu(t);return Ko(e)&&(e=i),ci(dn(t,1,Ko,!0),uu(e,2))})),eo=Vn((function(t){var e=Gu(t);return e="function"==typeof e?e:i,ci(dn(t,1,Ko,!0),i,e)}));function ro(t){if(!t||!t.length)return[];var e=0;return t=$e(t,(function(t){if(Ko(t))return e=dr(t.length,e),!0})),Ve(e,(function(e){return Oe(t,qe(e))}))}function no(t,e){if(!t||!t.length)return[];var r=ro(t);return null==e?r:Oe(r,(function(t){return ke(e,i,t)}))}var io=Vn((function(t,e){return Ko(t)?an(t,e):[]})),uo=Vn((function(t){return hi($e(t,Ko))})),oo=Vn((function(t){var e=Gu(t);return Ko(e)&&(e=i),hi($e(t,Ko),uu(e,2))})),co=Vn((function(t){var e=Gu(t);return e="function"==typeof e?e:i,hi($e(t,Ko),i,e)})),so=Vn(ro),ao=Vn((function(t){var e=t.length,r=e>1?t[e-1]:i;return r="function"==typeof r?(t.pop(),r):i,no(t,r)}));function lo(t){var e=Wr(t);return e.__chain__=!0,e}function fo(t,e){return e(t)}var ho=Xi((function(t){var e=t.length,r=e?t[0]:0,n=this.__wrapped__,u=function(e){return nn(e,t)};return!(e>1||this.__actions__.length)&&n instanceof Pr&&du(r)?((n=n.slice(r,+r+(e?1:0))).__actions__.push({func:fo,args:[u],thisArg:i}),new Br(n,this.__chain__).thru((function(t){return e&&!t.length&&t.push(i),t}))):this.thru(u)})),po=$i((function(t,e,r){Ct.call(t,r)?++t[r]:rn(t,r,1)})),_o=Mi(Pu),bo=Mi(Du);function go(t,e){return(qo(t)?Se:ln)(t,uu(e,3))}function yo(t,e){return(qo(t)?Ee:fn)(t,uu(e,3))}var vo=$i((function(t,e,r){Ct.call(t,r)?t[r].push(e):rn(t,r,[e])})),Ao=Vn((function(t,e,r){var i=-1,u="function"==typeof e,o=Zo(t)?n(t.length):[];return ln(t,(function(t){o[++i]=u?ke(e,t,r):$n(t,e,r)})),o})),mo=$i((function(t,e,r){rn(t,r,e)}));function wo(t,e){return(qo(t)?Oe:Un)(t,uu(e,3))}var ko=$i((function(t,e,r){t[r?0:1].push(e)}),(function(){return[[],[]]})),xo=Vn((function(t,e){if(null==t)return[];var r=e.length;return r>1&&bu(t,e[0],e[1])?e=[]:r>2&&bu(e[0],e[1],e[2])&&(e=[e[0]]),Pn(t,dn(e,1),[])})),So=ae||function(){return fe.Date.now()};function Eo(t,e,r){return e=r?i:e,e=t&&null==e?t.length:e,Gi(t,a,i,i,i,i,e)}function No(t,e){var r;if("function"!=typeof e)throw new Nt(u);return t=pc(t),function(){return--t>0&&(r=e.apply(this,arguments)),t<=1&&(e=i),r}}var $o=Vn((function(t,e,r){var n=1;if(r.length){var i=or(r,iu($o));n|=s}return Gi(t,n,e,r,i)})),jo=Vn((function(t,e,r){var n=3;if(r.length){var i=or(r,iu(jo));n|=s}return Gi(e,n,t,r,i)}));function zo(t,e,r){var n,o,c,s,a,l,f=0,h=!1,p=!1,_=!0;if("function"!=typeof t)throw new Nt(u);function d(e){var r=n,u=o;return n=o=i,f=e,s=t.apply(u,r)}function b(t){var r=t-l;return l===i||r>=e||r<0||p&&t-f>=c}function g(){var t=So();if(b(t))return y(t);a=Nu(g,function(t){var r=e-(t-l);return p?br(r,c-(t-f)):r}(t))}function y(t){return a=i,_&&n?d(t):(n=o=i,s)}function v(){var t=So(),r=b(t);if(n=arguments,o=this,l=t,r){if(a===i)return function(t){return f=t,a=Nu(g,e),h?d(t):s}(l);if(p)return vi(a),a=Nu(g,e),d(l)}return a===i&&(a=Nu(g,e)),s}return e=dc(e)||0,Xo(r)&&(h=!!r.leading,c=(p="maxWait"in r)?dr(dc(r.maxWait)||0,e):c,_="trailing"in r?!!r.trailing:_),v.cancel=function(){a!==i&&vi(a),f=0,n=l=o=a=i},v.flush=function(){return a===i?s:y(So())},v}var Oo=Vn((function(t,e){return sn(t,1,e)})),Io=Vn((function(t,e,r){return sn(t,dc(e)||0,r)}));function Co(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Nt(u);var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],u=r.cache;if(u.has(i))return u.get(i);var o=t.apply(this,n);return r.cache=u.set(i,o)||u,o};return r.cache=new(Co.Cache||Fr),r}function Ro(t){if("function"!=typeof t)throw new Nt(u);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Co.Cache=Fr;var Mo=gi((function(t,e){var r=(e=1==e.length&&qo(e[0])?Oe(e[0],Je(uu())):Oe(dn(e,1),Je(uu()))).length;return Vn((function(n){for(var i=-1,u=br(n.length,r);++i<u;)n[i]=e[i].call(this,n[i]);return ke(t,this,n)}))})),Uo=Vn((function(t,e){var r=or(e,iu(Uo));return Gi(t,s,i,e,r)})),Wo=Vn((function(t,e){var r=or(e,iu(Wo));return Gi(t,64,i,e,r)})),Lo=Xi((function(t,e){return Gi(t,256,i,i,i,e)}));function To(t,e){return t===e||t!=t&&e!=e}var Bo=qi(xn),Po=qi((function(t,e){return t>=e})),Do=jn(function(){return arguments}())?jn:function(t){return tc(t)&&Ct.call(t,"callee")&&!Kt.call(t,"callee")},qo=n.isArray,Fo=ge?Je(ge):function(t){return tc(t)&&kn(t)==O};function Zo(t){return null!=t&&Qo(t.length)&&!Ho(t)}function Ko(t){return tc(t)&&Zo(t)}var Vo=be||ds,Go=ye?Je(ye):function(t){return tc(t)&&kn(t)==y};function Jo(t){if(!tc(t))return!1;var e=kn(t);return e==v||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!nc(t)}function Ho(t){if(!Xo(t))return!1;var e=kn(t);return e==A||e==m||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Yo(t){return"number"==typeof t&&t==pc(t)}function Qo(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=f}function Xo(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function tc(t){return null!=t&&"object"==typeof t}var ec=ve?Je(ve):function(t){return tc(t)&&fu(t)==w};function rc(t){return"number"==typeof t||tc(t)&&kn(t)==k}function nc(t){if(!tc(t)||kn(t)!=x)return!1;var e=Ft(t);if(null===e)return!0;var r=Ct.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&It.call(r)==Wt}var ic=Ae?Je(Ae):function(t){return tc(t)&&kn(t)==E},uc=me?Je(me):function(t){return tc(t)&&fu(t)==N};function oc(t){return"string"==typeof t||!qo(t)&&tc(t)&&kn(t)==$}function cc(t){return"symbol"==typeof t||tc(t)&&kn(t)==j}var sc=we?Je(we):function(t){return tc(t)&&Qo(t.length)&&!!ie[kn(t)]},ac=qi(Mn),lc=qi((function(t,e){return t<=e}));function fc(t){if(!t)return[];if(Zo(t))return oc(t)?lr(t):Ei(t);if(Jt&&t[Jt])return function(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}(t[Jt]());var e=fu(t);return(e==w?ir:e==N?cr:Tc)(t)}function hc(t){return t?(t=dc(t))===l||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function pc(t){var e=hc(t),r=e%1;return e==e?r?e-r:e:0}function _c(t){return t?un(pc(t),0,p):0}function dc(t){if("number"==typeof t)return t;if(cc(t))return h;if(Xo(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Xo(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ge(t);var r=_t.test(t);return r||bt.test(t)?se(t.slice(2),r?2:8):pt.test(t)?h:+t}function bc(t){return Ni(t,Oc(t))}function gc(t){return null==t?"":oi(t)}var yc=ji((function(t,e){if(Au(e)||Zo(e))Ni(e,zc(e),t);else for(var r in e)Ct.call(e,r)&&Qr(t,r,e[r])})),vc=ji((function(t,e){Ni(e,Oc(e),t)})),Ac=ji((function(t,e,r,n){Ni(e,Oc(e),t,n)})),mc=ji((function(t,e,r,n){Ni(e,zc(e),t,n)})),wc=Xi(nn),kc=Vn((function(t,e){t=xt(t);var r=-1,n=e.length,u=n>2?e[2]:i;for(u&&bu(e[0],e[1],u)&&(n=1);++r<n;)for(var o=e[r],c=Oc(o),s=-1,a=c.length;++s<a;){var l=c[s],f=t[l];(f===i||To(f,zt[l])&&!Ct.call(t,l))&&(t[l]=o[l])}return t})),xc=Vn((function(t){return t.push(i,Hi),ke(Cc,i,t)}));function Sc(t,e,r){var n=null==t?i:mn(t,e);return n===i?r:n}function Ec(t,e){return null!=t&&hu(t,e,En)}var Nc=Li((function(t,e,r){null!=e&&"function"!=typeof e.toString&&(e=Ut.call(e)),t[e]=r}),Xc(rs)),$c=Li((function(t,e,r){null!=e&&"function"!=typeof e.toString&&(e=Ut.call(e)),Ct.call(t,e)?t[e].push(r):t[e]=[r]}),uu),jc=Vn($n);function zc(t){return Zo(t)?Vr(t):Rn(t)}function Oc(t){return Zo(t)?Vr(t,!0):function(t){if(!Xo(t))return function(t){var e=[];if(null!=t)for(var r in xt(t))e.push(r);return e}(t);var e=Au(t),r=[];for(var n in t)("constructor"!=n||!e&&Ct.call(t,n))&&r.push(n);return r}(t)}var Ic=ji((function(t,e,r){Tn(t,e,r)})),Cc=ji((function(t,e,r,n){Tn(t,e,r,n)})),Rc=Xi((function(t,e){var r={};if(null==t)return r;var n=!1;e=Oe(e,(function(e){return e=bi(e,t),n||(n=e.length>1),e})),Ni(t,eu(t),r),n&&(r=on(r,7,Yi));for(var i=e.length;i--;)si(r,e[i]);return r})),Mc=Xi((function(t,e){return null==t?{}:function(t,e){return Dn(t,e,(function(e,r){return Ec(t,r)}))}(t,e)}));function Uc(t,e){if(null==t)return{};var r=Oe(eu(t),(function(t){return[t]}));return e=uu(e),Dn(t,r,(function(t,r){return e(t,r[0])}))}var Wc=Vi(zc),Lc=Vi(Oc);function Tc(t){return null==t?[]:He(t,zc(t))}var Bc=Ci((function(t,e,r){return e=e.toLowerCase(),t+(r?Pc(e):e)}));function Pc(t){return Jc(gc(t).toLowerCase())}function Dc(t){return(t=gc(t))&&t.replace(yt,tr).replace(Yt,"")}var qc=Ci((function(t,e,r){return t+(r?"-":"")+e.toLowerCase()})),Fc=Ci((function(t,e,r){return t+(r?" ":"")+e.toLowerCase()})),Zc=Ii("toLowerCase"),Kc=Ci((function(t,e,r){return t+(r?"_":"")+e.toLowerCase()})),Vc=Ci((function(t,e,r){return t+(r?" ":"")+Jc(e)})),Gc=Ci((function(t,e,r){return t+(r?" ":"")+e.toUpperCase()})),Jc=Ii("toUpperCase");function Hc(t,e,r){return t=gc(t),(e=r?i:e)===i?function(t){return ee.test(t)}(t)?function(t){return t.match(Xt)||[]}(t):function(t){return t.match(st)||[]}(t):t.match(e)||[]}var Yc=Vn((function(t,e){try{return ke(t,i,e)}catch(t){return Jo(t)?t:new mt(t)}})),Qc=Xi((function(t,e){return Se(e,(function(e){e=Mu(e),rn(t,e,$o(t[e],t))})),t}));function Xc(t){return function(){return t}}var ts=Ui(),es=Ui(!0);function rs(t){return t}function ns(t){return Cn("function"==typeof t?t:on(t,1))}var is=Vn((function(t,e){return function(r){return $n(r,t,e)}})),us=Vn((function(t,e){return function(r){return $n(t,r,e)}}));function os(t,e,r){var n=zc(e),i=An(e,n);null!=r||Xo(e)&&(i.length||!n.length)||(r=e,e=t,t=this,i=An(e,zc(e)));var u=!(Xo(r)&&"chain"in r&&!r.chain),o=Ho(t);return Se(i,(function(r){var n=e[r];t[r]=n,o&&(t.prototype[r]=function(){var e=this.__chain__;if(u||e){var r=t(this.__wrapped__);return(r.__actions__=Ei(this.__actions__)).push({func:n,args:arguments,thisArg:t}),r.__chain__=e,r}return n.apply(t,Ie([this.value()],arguments))})})),t}function cs(){}var ss=Bi(Oe),as=Bi(Ne),ls=Bi(Me);function fs(t){return gu(t)?qe(Mu(t)):function(t){return function(e){return mn(e,t)}}(t)}var hs=Di(),ps=Di(!0);function _s(){return[]}function ds(){return!1}var bs,gs=Ti((function(t,e){return t+e}),0),ys=Zi("ceil"),vs=Ti((function(t,e){return t/e}),1),As=Zi("floor"),ms=Ti((function(t,e){return t*e}),1),ws=Zi("round"),ks=Ti((function(t,e){return t-e}),0);return Wr.after=function(t,e){if("function"!=typeof e)throw new Nt(u);return t=pc(t),function(){if(--t<1)return e.apply(this,arguments)}},Wr.ary=Eo,Wr.assign=yc,Wr.assignIn=vc,Wr.assignInWith=Ac,Wr.assignWith=mc,Wr.at=wc,Wr.before=No,Wr.bind=$o,Wr.bindAll=Qc,Wr.bindKey=jo,Wr.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return qo(t)?t:[t]},Wr.chain=lo,Wr.chunk=function(t,e,r){e=(r?bu(t,e,r):e===i)?1:dr(pc(e),0);var u=null==t?0:t.length;if(!u||e<1)return[];for(var o=0,c=0,s=n(he(u/e));o<u;)s[c++]=ti(t,o,o+=e);return s},Wr.compact=function(t){for(var e=-1,r=null==t?0:t.length,n=0,i=[];++e<r;){var u=t[e];u&&(i[n++]=u)}return i},Wr.concat=function(){var t=arguments.length;if(!t)return[];for(var e=n(t-1),r=arguments[0],i=t;i--;)e[i-1]=arguments[i];return Ie(qo(r)?Ei(r):[r],dn(e,1))},Wr.cond=function(t){var e=null==t?0:t.length,r=uu();return t=e?Oe(t,(function(t){if("function"!=typeof t[1])throw new Nt(u);return[r(t[0]),t[1]]})):[],Vn((function(r){for(var n=-1;++n<e;){var i=t[n];if(ke(i[0],this,r))return ke(i[1],this,r)}}))},Wr.conforms=function(t){return function(t){var e=zc(t);return function(r){return cn(r,t,e)}}(on(t,1))},Wr.constant=Xc,Wr.countBy=po,Wr.create=function(t,e){var r=Lr(t);return null==e?r:en(r,e)},Wr.curry=function t(e,r,n){var u=Gi(e,8,i,i,i,i,i,r=n?i:r);return u.placeholder=t.placeholder,u},Wr.curryRight=function t(e,r,n){var u=Gi(e,16,i,i,i,i,i,r=n?i:r);return u.placeholder=t.placeholder,u},Wr.debounce=zo,Wr.defaults=kc,Wr.defaultsDeep=xc,Wr.defer=Oo,Wr.delay=Io,Wr.difference=Lu,Wr.differenceBy=Tu,Wr.differenceWith=Bu,Wr.drop=function(t,e,r){var n=null==t?0:t.length;return n?ti(t,(e=r||e===i?1:pc(e))<0?0:e,n):[]},Wr.dropRight=function(t,e,r){var n=null==t?0:t.length;return n?ti(t,0,(e=n-(e=r||e===i?1:pc(e)))<0?0:e):[]},Wr.dropRightWhile=function(t,e){return t&&t.length?li(t,uu(e,3),!0,!0):[]},Wr.dropWhile=function(t,e){return t&&t.length?li(t,uu(e,3),!0):[]},Wr.fill=function(t,e,r,n){var u=null==t?0:t.length;return u?(r&&"number"!=typeof r&&bu(t,e,r)&&(r=0,n=u),function(t,e,r,n){var u=t.length;for((r=pc(r))<0&&(r=-r>u?0:u+r),(n=n===i||n>u?u:pc(n))<0&&(n+=u),n=r>n?0:_c(n);r<n;)t[r++]=e;return t}(t,e,r,n)):[]},Wr.filter=function(t,e){return(qo(t)?$e:_n)(t,uu(e,3))},Wr.flatMap=function(t,e){return dn(wo(t,e),1)},Wr.flatMapDeep=function(t,e){return dn(wo(t,e),l)},Wr.flatMapDepth=function(t,e,r){return r=r===i?1:pc(r),dn(wo(t,e),r)},Wr.flatten=qu,Wr.flattenDeep=function(t){return null!=t&&t.length?dn(t,l):[]},Wr.flattenDepth=function(t,e){return null!=t&&t.length?dn(t,e=e===i?1:pc(e)):[]},Wr.flip=function(t){return Gi(t,512)},Wr.flow=ts,Wr.flowRight=es,Wr.fromPairs=function(t){for(var e=-1,r=null==t?0:t.length,n={};++e<r;){var i=t[e];n[i[0]]=i[1]}return n},Wr.functions=function(t){return null==t?[]:An(t,zc(t))},Wr.functionsIn=function(t){return null==t?[]:An(t,Oc(t))},Wr.groupBy=vo,Wr.initial=function(t){return null!=t&&t.length?ti(t,0,-1):[]},Wr.intersection=Zu,Wr.intersectionBy=Ku,Wr.intersectionWith=Vu,Wr.invert=Nc,Wr.invertBy=$c,Wr.invokeMap=Ao,Wr.iteratee=ns,Wr.keyBy=mo,Wr.keys=zc,Wr.keysIn=Oc,Wr.map=wo,Wr.mapKeys=function(t,e){var r={};return e=uu(e,3),yn(t,(function(t,n,i){rn(r,e(t,n,i),t)})),r},Wr.mapValues=function(t,e){var r={};return e=uu(e,3),yn(t,(function(t,n,i){rn(r,n,e(t,n,i))})),r},Wr.matches=function(t){return Wn(on(t,1))},Wr.matchesProperty=function(t,e){return Ln(t,on(e,1))},Wr.memoize=Co,Wr.merge=Ic,Wr.mergeWith=Cc,Wr.method=is,Wr.methodOf=us,Wr.mixin=os,Wr.negate=Ro,Wr.nthArg=function(t){return t=pc(t),Vn((function(e){return Bn(e,t)}))},Wr.omit=Rc,Wr.omitBy=function(t,e){return Uc(t,Ro(uu(e)))},Wr.once=function(t){return No(2,t)},Wr.orderBy=function(t,e,r,n){return null==t?[]:(qo(e)||(e=null==e?[]:[e]),qo(r=n?i:r)||(r=null==r?[]:[r]),Pn(t,e,r))},Wr.over=ss,Wr.overArgs=Mo,Wr.overEvery=as,Wr.overSome=ls,Wr.partial=Uo,Wr.partialRight=Wo,Wr.partition=ko,Wr.pick=Mc,Wr.pickBy=Uc,Wr.property=fs,Wr.propertyOf=function(t){return function(e){return null==t?i:mn(t,e)}},Wr.pull=Ju,Wr.pullAll=Hu,Wr.pullAllBy=function(t,e,r){return t&&t.length&&e&&e.length?qn(t,e,uu(r,2)):t},Wr.pullAllWith=function(t,e,r){return t&&t.length&&e&&e.length?qn(t,e,i,r):t},Wr.pullAt=Yu,Wr.range=hs,Wr.rangeRight=ps,Wr.rearg=Lo,Wr.reject=function(t,e){return(qo(t)?$e:_n)(t,Ro(uu(e,3)))},Wr.remove=function(t,e){var r=[];if(!t||!t.length)return r;var n=-1,i=[],u=t.length;for(e=uu(e,3);++n<u;){var o=t[n];e(o,n,t)&&(r.push(o),i.push(n))}return Fn(t,i),r},Wr.rest=function(t,e){if("function"!=typeof t)throw new Nt(u);return Vn(t,e=e===i?e:pc(e))},Wr.reverse=Qu,Wr.sampleSize=function(t,e,r){return e=(r?bu(t,e,r):e===i)?1:pc(e),(qo(t)?Jr:Jn)(t,e)},Wr.set=function(t,e,r){return null==t?t:Hn(t,e,r)},Wr.setWith=function(t,e,r,n){return n="function"==typeof n?n:i,null==t?t:Hn(t,e,r,n)},Wr.shuffle=function(t){return(qo(t)?Hr:Xn)(t)},Wr.slice=function(t,e,r){var n=null==t?0:t.length;return n?(r&&"number"!=typeof r&&bu(t,e,r)?(e=0,r=n):(e=null==e?0:pc(e),r=r===i?n:pc(r)),ti(t,e,r)):[]},Wr.sortBy=xo,Wr.sortedUniq=function(t){return t&&t.length?ii(t):[]},Wr.sortedUniqBy=function(t,e){return t&&t.length?ii(t,uu(e,2)):[]},Wr.split=function(t,e,r){return r&&"number"!=typeof r&&bu(t,e,r)&&(e=r=i),(r=r===i?p:r>>>0)?(t=gc(t))&&("string"==typeof e||null!=e&&!ic(e))&&!(e=oi(e))&&nr(t)?yi(lr(t),0,r):t.split(e,r):[]},Wr.spread=function(t,e){if("function"!=typeof t)throw new Nt(u);return e=null==e?0:dr(pc(e),0),Vn((function(r){var n=r[e],i=yi(r,0,e);return n&&Ie(i,n),ke(t,this,i)}))},Wr.tail=function(t){var e=null==t?0:t.length;return e?ti(t,1,e):[]},Wr.take=function(t,e,r){return t&&t.length?ti(t,0,(e=r||e===i?1:pc(e))<0?0:e):[]},Wr.takeRight=function(t,e,r){var n=null==t?0:t.length;return n?ti(t,(e=n-(e=r||e===i?1:pc(e)))<0?0:e,n):[]},Wr.takeRightWhile=function(t,e){return t&&t.length?li(t,uu(e,3),!1,!0):[]},Wr.takeWhile=function(t,e){return t&&t.length?li(t,uu(e,3)):[]},Wr.tap=function(t,e){return e(t),t},Wr.throttle=function(t,e,r){var n=!0,i=!0;if("function"!=typeof t)throw new Nt(u);return Xo(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),zo(t,e,{leading:n,maxWait:e,trailing:i})},Wr.thru=fo,Wr.toArray=fc,Wr.toPairs=Wc,Wr.toPairsIn=Lc,Wr.toPath=function(t){return qo(t)?Oe(t,Mu):cc(t)?[t]:Ei(Ru(gc(t)))},Wr.toPlainObject=bc,Wr.transform=function(t,e,r){var n=qo(t),i=n||Vo(t)||sc(t);if(e=uu(e,4),null==r){var u=t&&t.constructor;r=i?n?new u:[]:Xo(t)&&Ho(u)?Lr(Ft(t)):{}}return(i?Se:yn)(t,(function(t,n,i){return e(r,t,n,i)})),r},Wr.unary=function(t){return Eo(t,1)},Wr.union=Xu,Wr.unionBy=to,Wr.unionWith=eo,Wr.uniq=function(t){return t&&t.length?ci(t):[]},Wr.uniqBy=function(t,e){return t&&t.length?ci(t,uu(e,2)):[]},Wr.uniqWith=function(t,e){return e="function"==typeof e?e:i,t&&t.length?ci(t,i,e):[]},Wr.unset=function(t,e){return null==t||si(t,e)},Wr.unzip=ro,Wr.unzipWith=no,Wr.update=function(t,e,r){return null==t?t:ai(t,e,di(r))},Wr.updateWith=function(t,e,r,n){return n="function"==typeof n?n:i,null==t?t:ai(t,e,di(r),n)},Wr.values=Tc,Wr.valuesIn=function(t){return null==t?[]:He(t,Oc(t))},Wr.without=io,Wr.words=Hc,Wr.wrap=function(t,e){return Uo(di(e),t)},Wr.xor=uo,Wr.xorBy=oo,Wr.xorWith=co,Wr.zip=so,Wr.zipObject=function(t,e){return pi(t||[],e||[],Qr)},Wr.zipObjectDeep=function(t,e){return pi(t||[],e||[],Hn)},Wr.zipWith=ao,Wr.entries=Wc,Wr.entriesIn=Lc,Wr.extend=vc,Wr.extendWith=Ac,os(Wr,Wr),Wr.add=gs,Wr.attempt=Yc,Wr.camelCase=Bc,Wr.capitalize=Pc,Wr.ceil=ys,Wr.clamp=function(t,e,r){return r===i&&(r=e,e=i),r!==i&&(r=(r=dc(r))==r?r:0),e!==i&&(e=(e=dc(e))==e?e:0),un(dc(t),e,r)},Wr.clone=function(t){return on(t,4)},Wr.cloneDeep=function(t){return on(t,5)},Wr.cloneDeepWith=function(t,e){return on(t,5,e="function"==typeof e?e:i)},Wr.cloneWith=function(t,e){return on(t,4,e="function"==typeof e?e:i)},Wr.conformsTo=function(t,e){return null==e||cn(t,e,zc(e))},Wr.deburr=Dc,Wr.defaultTo=function(t,e){return null==t||t!=t?e:t},Wr.divide=vs,Wr.endsWith=function(t,e,r){t=gc(t),e=oi(e);var n=t.length,u=r=r===i?n:un(pc(r),0,n);return(r-=e.length)>=0&&t.slice(r,u)==e},Wr.eq=To,Wr.escape=function(t){return(t=gc(t))&&G.test(t)?t.replace(K,er):t},Wr.escapeRegExp=function(t){return(t=gc(t))&&rt.test(t)?t.replace(et,"\\$&"):t},Wr.every=function(t,e,r){var n=qo(t)?Ne:hn;return r&&bu(t,e,r)&&(e=i),n(t,uu(e,3))},Wr.find=_o,Wr.findIndex=Pu,Wr.findKey=function(t,e){return We(t,uu(e,3),yn)},Wr.findLast=bo,Wr.findLastIndex=Du,Wr.findLastKey=function(t,e){return We(t,uu(e,3),vn)},Wr.floor=As,Wr.forEach=go,Wr.forEachRight=yo,Wr.forIn=function(t,e){return null==t?t:bn(t,uu(e,3),Oc)},Wr.forInRight=function(t,e){return null==t?t:gn(t,uu(e,3),Oc)},Wr.forOwn=function(t,e){return t&&yn(t,uu(e,3))},Wr.forOwnRight=function(t,e){return t&&vn(t,uu(e,3))},Wr.get=Sc,Wr.gt=Bo,Wr.gte=Po,Wr.has=function(t,e){return null!=t&&hu(t,e,Sn)},Wr.hasIn=Ec,Wr.head=Fu,Wr.identity=rs,Wr.includes=function(t,e,r,n){t=Zo(t)?t:Tc(t),r=r&&!n?pc(r):0;var i=t.length;return r<0&&(r=dr(i+r,0)),oc(t)?r<=i&&t.indexOf(e,r)>-1:!!i&&Te(t,e,r)>-1},Wr.indexOf=function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var i=null==r?0:pc(r);return i<0&&(i=dr(n+i,0)),Te(t,e,i)},Wr.inRange=function(t,e,r){return e=hc(e),r===i?(r=e,e=0):r=hc(r),function(t,e,r){return t>=br(e,r)&&t<dr(e,r)}(t=dc(t),e,r)},Wr.invoke=jc,Wr.isArguments=Do,Wr.isArray=qo,Wr.isArrayBuffer=Fo,Wr.isArrayLike=Zo,Wr.isArrayLikeObject=Ko,Wr.isBoolean=function(t){return!0===t||!1===t||tc(t)&&kn(t)==g},Wr.isBuffer=Vo,Wr.isDate=Go,Wr.isElement=function(t){return tc(t)&&1===t.nodeType&&!nc(t)},Wr.isEmpty=function(t){if(null==t)return!0;if(Zo(t)&&(qo(t)||"string"==typeof t||"function"==typeof t.splice||Vo(t)||sc(t)||Do(t)))return!t.length;var e=fu(t);if(e==w||e==N)return!t.size;if(Au(t))return!Rn(t).length;for(var r in t)if(Ct.call(t,r))return!1;return!0},Wr.isEqual=function(t,e){return zn(t,e)},Wr.isEqualWith=function(t,e,r){var n=(r="function"==typeof r?r:i)?r(t,e):i;return n===i?zn(t,e,i,r):!!n},Wr.isError=Jo,Wr.isFinite=function(t){return"number"==typeof t&&Ue(t)},Wr.isFunction=Ho,Wr.isInteger=Yo,Wr.isLength=Qo,Wr.isMap=ec,Wr.isMatch=function(t,e){return t===e||On(t,e,cu(e))},Wr.isMatchWith=function(t,e,r){return r="function"==typeof r?r:i,On(t,e,cu(e),r)},Wr.isNaN=function(t){return rc(t)&&t!=+t},Wr.isNative=function(t){if(vu(t))throw new mt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return In(t)},Wr.isNil=function(t){return null==t},Wr.isNull=function(t){return null===t},Wr.isNumber=rc,Wr.isObject=Xo,Wr.isObjectLike=tc,Wr.isPlainObject=nc,Wr.isRegExp=ic,Wr.isSafeInteger=function(t){return Yo(t)&&t>=-9007199254740991&&t<=f},Wr.isSet=uc,Wr.isString=oc,Wr.isSymbol=cc,Wr.isTypedArray=sc,Wr.isUndefined=function(t){return t===i},Wr.isWeakMap=function(t){return tc(t)&&fu(t)==z},Wr.isWeakSet=function(t){return tc(t)&&"[object WeakSet]"==kn(t)},Wr.join=function(t,e){return null==t?"":Fe.call(t,e)},Wr.kebabCase=qc,Wr.last=Gu,Wr.lastIndexOf=function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var u=n;return r!==i&&(u=(u=pc(r))<0?dr(n+u,0):br(u,n-1)),e==e?function(t,e,r){for(var n=r+1;n--;)if(t[n]===e)return n;return n}(t,e,u):Le(t,Pe,u,!0)},Wr.lowerCase=Fc,Wr.lowerFirst=Zc,Wr.lt=ac,Wr.lte=lc,Wr.max=function(t){return t&&t.length?pn(t,rs,xn):i},Wr.maxBy=function(t,e){return t&&t.length?pn(t,uu(e,2),xn):i},Wr.mean=function(t){return De(t,rs)},Wr.meanBy=function(t,e){return De(t,uu(e,2))},Wr.min=function(t){return t&&t.length?pn(t,rs,Mn):i},Wr.minBy=function(t,e){return t&&t.length?pn(t,uu(e,2),Mn):i},Wr.stubArray=_s,Wr.stubFalse=ds,Wr.stubObject=function(){return{}},Wr.stubString=function(){return""},Wr.stubTrue=function(){return!0},Wr.multiply=ms,Wr.nth=function(t,e){return t&&t.length?Bn(t,pc(e)):i},Wr.noConflict=function(){return fe._===this&&(fe._=Lt),this},Wr.noop=cs,Wr.now=So,Wr.pad=function(t,e,r){t=gc(t);var n=(e=pc(e))?ar(t):0;if(!e||n>=e)return t;var i=(e-n)/2;return Pi(pe(i),r)+t+Pi(he(i),r)},Wr.padEnd=function(t,e,r){t=gc(t);var n=(e=pc(e))?ar(t):0;return e&&n<e?t+Pi(e-n,r):t},Wr.padStart=function(t,e,r){t=gc(t);var n=(e=pc(e))?ar(t):0;return e&&n<e?Pi(e-n,r)+t:t},Wr.parseInt=function(t,e,r){return r||null==e?e=0:e&&(e=+e),yr(gc(t).replace(nt,""),e||0)},Wr.random=function(t,e,r){if(r&&"boolean"!=typeof r&&bu(t,e,r)&&(e=r=i),r===i&&("boolean"==typeof e?(r=e,e=i):"boolean"==typeof t&&(r=t,t=i)),t===i&&e===i?(t=0,e=1):(t=hc(t),e===i?(e=t,t=0):e=hc(e)),t>e){var n=t;t=e,e=n}if(r||t%1||e%1){var u=vr();return br(t+u*(e-t+ce("1e-"+((u+"").length-1))),e)}return Zn(t,e)},Wr.reduce=function(t,e,r){var n=qo(t)?Ce:Ze,i=arguments.length<3;return n(t,uu(e,4),r,i,ln)},Wr.reduceRight=function(t,e,r){var n=qo(t)?Re:Ze,i=arguments.length<3;return n(t,uu(e,4),r,i,fn)},Wr.repeat=function(t,e,r){return e=(r?bu(t,e,r):e===i)?1:pc(e),Kn(gc(t),e)},Wr.replace=function(){var t=arguments,e=gc(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Wr.result=function(t,e,r){var n=-1,u=(e=bi(e,t)).length;for(u||(u=1,t=i);++n<u;){var o=null==t?i:t[Mu(e[n])];o===i&&(n=u,o=r),t=Ho(o)?o.call(t):o}return t},Wr.round=ws,Wr.runInContext=t,Wr.sample=function(t){return(qo(t)?Gr:Gn)(t)},Wr.size=function(t){if(null==t)return 0;if(Zo(t))return oc(t)?ar(t):t.length;var e=fu(t);return e==w||e==N?t.size:Rn(t).length},Wr.snakeCase=Kc,Wr.some=function(t,e,r){var n=qo(t)?Me:ei;return r&&bu(t,e,r)&&(e=i),n(t,uu(e,3))},Wr.sortedIndex=function(t,e){return ri(t,e)},Wr.sortedIndexBy=function(t,e,r){return ni(t,e,uu(r,2))},Wr.sortedIndexOf=function(t,e){var r=null==t?0:t.length;if(r){var n=ri(t,e);if(n<r&&To(t[n],e))return n}return-1},Wr.sortedLastIndex=function(t,e){return ri(t,e,!0)},Wr.sortedLastIndexBy=function(t,e,r){return ni(t,e,uu(r,2),!0)},Wr.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var r=ri(t,e,!0)-1;if(To(t[r],e))return r}return-1},Wr.startCase=Vc,Wr.startsWith=function(t,e,r){return t=gc(t),r=null==r?0:un(pc(r),0,t.length),e=oi(e),t.slice(r,r+e.length)==e},Wr.subtract=ks,Wr.sum=function(t){return t&&t.length?Ke(t,rs):0},Wr.sumBy=function(t,e){return t&&t.length?Ke(t,uu(e,2)):0},Wr.template=function(t,e,r){var n=Wr.templateSettings;r&&bu(t,e,r)&&(e=i),t=gc(t),e=Ac({},e,n,Ji);var u,o,c=Ac({},e.imports,n.imports,Ji),s=zc(c),a=He(c,s),l=0,f=e.interpolate||vt,h="__p += '",p=St((e.escape||vt).source+"|"+f.source+"|"+(f===Y?ft:vt).source+"|"+(e.evaluate||vt).source+"|$","g"),_="//# sourceURL="+(Ct.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ne+"]")+"\n";t.replace(p,(function(e,r,n,i,c,s){return n||(n=i),h+=t.slice(l,s).replace(At,rr),r&&(u=!0,h+="' +\n__e("+r+") +\n'"),c&&(o=!0,h+="';\n"+c+";\n__p += '"),n&&(h+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),l=s+e.length,e})),h+="';\n";var d=Ct.call(e,"variable")&&e.variable;if(d){if(at.test(d))throw new mt("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(o?h.replace(D,""):h).replace(q,"$1").replace(F,"$1;"),h="function("+(d||"obj")+") {\n"+(d?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(u?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var b=Yc((function(){return wt(s,_+"return "+h).apply(i,a)}));if(b.source=h,Jo(b))throw b;return b},Wr.times=function(t,e){if((t=pc(t))<1||t>f)return[];var r=p,n=br(t,p);e=uu(e),t-=p;for(var i=Ve(n,e);++r<t;)e(r);return i},Wr.toFinite=hc,Wr.toInteger=pc,Wr.toLength=_c,Wr.toLower=function(t){return gc(t).toLowerCase()},Wr.toNumber=dc,Wr.toSafeInteger=function(t){return t?un(pc(t),-9007199254740991,f):0===t?t:0},Wr.toString=gc,Wr.toUpper=function(t){return gc(t).toUpperCase()},Wr.trim=function(t,e,r){if((t=gc(t))&&(r||e===i))return Ge(t);if(!t||!(e=oi(e)))return t;var n=lr(t),u=lr(e);return yi(n,Qe(n,u),Xe(n,u)+1).join("")},Wr.trimEnd=function(t,e,r){if((t=gc(t))&&(r||e===i))return t.slice(0,fr(t)+1);if(!t||!(e=oi(e)))return t;var n=lr(t);return yi(n,0,Xe(n,lr(e))+1).join("")},Wr.trimStart=function(t,e,r){if((t=gc(t))&&(r||e===i))return t.replace(nt,"");if(!t||!(e=oi(e)))return t;var n=lr(t);return yi(n,Qe(n,lr(e))).join("")},Wr.truncate=function(t,e){var r=30,n="...";if(Xo(e)){var u="separator"in e?e.separator:u;r="length"in e?pc(e.length):r,n="omission"in e?oi(e.omission):n}var o=(t=gc(t)).length;if(nr(t)){var c=lr(t);o=c.length}if(r>=o)return t;var s=r-ar(n);if(s<1)return n;var a=c?yi(c,0,s).join(""):t.slice(0,s);if(u===i)return a+n;if(c&&(s+=a.length-s),ic(u)){if(t.slice(s).search(u)){var l,f=a;for(u.global||(u=St(u.source,gc(ht.exec(u))+"g")),u.lastIndex=0;l=u.exec(f);)var h=l.index;a=a.slice(0,h===i?s:h)}}else if(t.indexOf(oi(u),s)!=s){var p=a.lastIndexOf(u);p>-1&&(a=a.slice(0,p))}return a+n},Wr.unescape=function(t){return(t=gc(t))&&V.test(t)?t.replace(Z,hr):t},Wr.uniqueId=function(t){var e=++Rt;return gc(t)+e},Wr.upperCase=Gc,Wr.upperFirst=Jc,Wr.each=go,Wr.eachRight=yo,Wr.first=Fu,os(Wr,(bs={},yn(Wr,(function(t,e){Ct.call(Wr.prototype,e)||(bs[e]=t)})),bs),{chain:!1}),Wr.VERSION="4.17.21",Se(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Wr[t].placeholder=Wr})),Se(["drop","take"],(function(t,e){Pr.prototype[t]=function(r){r=r===i?1:dr(pc(r),0);var n=this.__filtered__&&!e?new Pr(this):this.clone();return n.__filtered__?n.__takeCount__=br(r,n.__takeCount__):n.__views__.push({size:br(r,p),type:t+(n.__dir__<0?"Right":"")}),n},Pr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Se(["filter","map","takeWhile"],(function(t,e){var r=e+1,n=1==r||3==r;Pr.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:uu(t,3),type:r}),e.__filtered__=e.__filtered__||n,e}})),Se(["head","last"],(function(t,e){var r="take"+(e?"Right":"");Pr.prototype[t]=function(){return this[r](1).value()[0]}})),Se(["initial","tail"],(function(t,e){var r="drop"+(e?"":"Right");Pr.prototype[t]=function(){return this.__filtered__?new Pr(this):this[r](1)}})),Pr.prototype.compact=function(){return this.filter(rs)},Pr.prototype.find=function(t){return this.filter(t).head()},Pr.prototype.findLast=function(t){return this.reverse().find(t)},Pr.prototype.invokeMap=Vn((function(t,e){return"function"==typeof t?new Pr(this):this.map((function(r){return $n(r,t,e)}))})),Pr.prototype.reject=function(t){return this.filter(Ro(uu(t)))},Pr.prototype.slice=function(t,e){t=pc(t);var r=this;return r.__filtered__&&(t>0||e<0)?new Pr(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),e!==i&&(r=(e=pc(e))<0?r.dropRight(-e):r.take(e-t)),r)},Pr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Pr.prototype.toArray=function(){return this.take(p)},yn(Pr.prototype,(function(t,e){var r=/^(?:filter|find|map|reject)|While$/.test(e),n=/^(?:head|last)$/.test(e),u=Wr[n?"take"+("last"==e?"Right":""):e],o=n||/^find/.test(e);u&&(Wr.prototype[e]=function(){var e=this.__wrapped__,c=n?[1]:arguments,s=e instanceof Pr,a=c[0],l=s||qo(e),f=function(t){var e=u.apply(Wr,Ie([t],c));return n&&h?e[0]:e};l&&r&&"function"==typeof a&&1!=a.length&&(s=l=!1);var h=this.__chain__,p=!!this.__actions__.length,_=o&&!h,d=s&&!p;if(!o&&l){e=d?e:new Pr(this);var b=t.apply(e,c);return b.__actions__.push({func:fo,args:[f],thisArg:i}),new Br(b,h)}return _&&d?t.apply(this,c):(b=this.thru(f),_?n?b.value()[0]:b.value():b)})})),Se(["pop","push","shift","sort","splice","unshift"],(function(t){var e=$t[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",n=/^(?:pop|shift)$/.test(t);Wr.prototype[t]=function(){var t=arguments;if(n&&!this.__chain__){var i=this.value();return e.apply(qo(i)?i:[],t)}return this[r]((function(r){return e.apply(qo(r)?r:[],t)}))}})),yn(Pr.prototype,(function(t,e){var r=Wr[e];if(r){var n=r.name+"";Ct.call($r,n)||($r[n]=[]),$r[n].push({name:e,func:r})}})),$r[Wi(i,2).name]=[{name:"wrapper",func:i}],Pr.prototype.clone=function(){var t=new Pr(this.__wrapped__);return t.__actions__=Ei(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ei(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ei(this.__views__),t},Pr.prototype.reverse=function(){if(this.__filtered__){var t=new Pr(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Pr.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,r=qo(t),n=e<0,i=r?t.length:0,u=function(t,e,r){for(var n=-1,i=r.length;++n<i;){var u=r[n],o=u.size;switch(u.type){case"drop":t+=o;break;case"dropRight":e-=o;break;case"take":e=br(e,t+o);break;case"takeRight":t=dr(t,e-o)}}return{start:t,end:e}}(0,i,this.__views__),o=u.start,c=u.end,s=c-o,a=n?c:o-1,l=this.__iteratees__,f=l.length,h=0,p=br(s,this.__takeCount__);if(!r||!n&&i==s&&p==s)return fi(t,this.__actions__);var _=[];t:for(;s--&&h<p;){for(var d=-1,b=t[a+=e];++d<f;){var g=l[d],y=g.iteratee,v=g.type,A=y(b);if(2==v)b=A;else if(!A){if(1==v)continue t;break t}}_[h++]=b}return _},Wr.prototype.at=ho,Wr.prototype.chain=function(){return lo(this)},Wr.prototype.commit=function(){return new Br(this.value(),this.__chain__)},Wr.prototype.next=function(){this.__values__===i&&(this.__values__=fc(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?i:this.__values__[this.__index__++]}},Wr.prototype.plant=function(t){for(var e,r=this;r instanceof Tr;){var n=Wu(r);n.__index__=0,n.__values__=i,e?u.__wrapped__=n:e=n;var u=n;r=r.__wrapped__}return u.__wrapped__=t,e},Wr.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Pr){var e=t;return this.__actions__.length&&(e=new Pr(this)),(e=e.reverse()).__actions__.push({func:fo,args:[Qu],thisArg:i}),new Br(e,this.__chain__)}return this.thru(Qu)},Wr.prototype.toJSON=Wr.prototype.valueOf=Wr.prototype.value=function(){return fi(this.__wrapped__,this.__actions__)},Wr.prototype.first=Wr.prototype.head,Jt&&(Wr.prototype[Jt]=function(){return this}),Wr}();fe._=pr,(n=function(){return pr}.call(e,r,e,t))===i||(t.exports=n)}.call(this)}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var u=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(u.exports,u,u.exports,r),u.loaded=!0,u.exports}r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{"use strict";r(486);const t="http://www.w3.org/2000/svg",e=({width:t,height:e,round:r,strokeWidth:n})=>{const i=n/2,u=2*r+n,o=t-u,c=e-u;return`\n M${r+i},${i}\n h${o}\n a${r},${r} 0 0 1 ${r},${r}\n v${c}\n a${r},${r} 0 0 1 -${r},${r}\n h-${o}\n a${r},${r} 0 0 1 -${r},-${r}\n v-${c}\n a${r},${r} 0 0 1 ${r},-${r}\n z\n `},n=(t,e=2)=>parseFloat((parseFloat(t)*Math.PI/180).toFixed(e)),i=(t,e,r,n,i,u)=>{const o=(t-e)/(r-e)*(i-n)+n;return u?n<i?(void 0).constrain(o,n,i):(void 0).constrain(o,i,n):o},u=(t,e)=>{const r=n(t);return{x:Math.cos(r)*e,y:Math.sin(r)*e}},o=(t,e,r,n,i,u)=>{var o=c(t,e,r,u),s=c(t,e,r,i),a=c(t,e,r+n,u),l=c(t,e,r+n,i),f=u-i<=180?"0":"1";return["M",a.x,a.y,"A",r+n,r+n,0,f,0,l.x,l.y,"L",s.x,s.y,"A",r,r,0,f,1,o.x,o.y,"L",a.x,a.y,"Z"].join(" ")};function c(t,e,r,n){var i=(n-90)*Math.PI/180;return{x:t+r*Math.cos(i),y:e+r*Math.sin(i)}}const s=Math.cos,a=Math.sin,l=Math.PI,f=([[t,e],[r,n]],[i,u])=>[t*i+e*u,r*i+n*u],h=([t,e],[r,n])=>[t+r,e+n],p=([t,e],[r,n],[i,u],o)=>{u%=2*l;const c=(t=>{const e=s(t),r=a(t);return[[e,-r],[r,e]]})(o),[p,_]=h(f(c,[r*s(i),n*a(i)]),[t,e]),[d,b]=h(f(c,[r*s(i+u),n*a(i+u)]),[t,e]);return[" M ",p," ",_," A ",r,n,o/l*180,u>l?1:0,u>0?1:0,d,b]},_="human",d="ghost",b="male",g="female",y={headband:"headband",knitted:"knitted"},v={half_long:"half_long",long:"long"},A="laughing",m="open",w={circle:"circle",line:"line",rect:"rect",bitcoin_logo:"bitcoin_logo"},k={circle:"circle",square:"square"},x=[5,10,15,20,25],S="#000000",E="#ffffff",N={human:{fair:"#ffc3a0",light:"#ffb181",light_medium:"#ffab71",medium:"#ffa05e",medium_dark:"#d9825b",dark:"#945245",darker:"#704734",deep:"#5e3a27",deeper:"#4e3222",deepest:"#3d2618"},ghost:{white:E},zombie:{green:"#7da269"}},$={female:{auburn:"#712e1a",blonde:"#fcf6b1",dark_brown:"#4e3629",ginger:"#b55239",gray:"#d3d3d3",green:"#4d7253",light:"#debe99",light_brown:"#a67c52",pastel_pink:"#ffb6c1",red:"#9b1f1f"},male:{black:"#000",dark_brown:"#4e3629",gray:"#d3d3d3",ginger:"#b55239"}},j=["#e40303","#ff8c00","#ffed00","#008026","#24408e","#732982"],z={dark_ruby_red:"#8b0000",blue:"#001f3f",black:S},O={human:{black:S,light_blue:"#7bc4c4",deep_blue:"#0033cc",hazel:"#8e7618",light_brown:"#b5651d",dark_brown:"#593e1a",gray:"#778899",green:"#0bda51",amber:"#ffbf00",teal:"#008080"},zombie:{red:"#ff0000"},ghost:{black:S}},I={navy_blue:"#001f3f",blue:"#0074d9",olive:"#3d9970",red:"#cc0000",maroon:"#85144b",purple:"#b10dc9",medium_dark:"#444444",dark:"#222222",gray:"#aaaaaa",green:"#006600"},C={navy_blue:"#001f3f",blue:"#0074d9",aqua:"#7fdbff",teal:"#39cccc",olive:"#3d9970",green:"#2ecc40",white:E,lime:"#01ff70",yellow:"#ffdc00",orange:"#f7931a",red:"#ff4136",maroon:"#85144b",fuchsia:"#f012be",purple:"#b10dc9",gray:"#aaaaaa",silver:"#dddddd",tan:"#d2b48c",brown:"#8b4513",gold:"#ffd700"},R={brown:"#583101",green:"#008000",red:"#aa0000",yellow:"#ffdc00"},M=e=>{let r=document.createElementNS(t,"circle");r.setAttribute("id",`head-${e.config.block}`),r.setAttribute("class","head"),r.setAttribute("cx",e.config.head_center.x),r.setAttribute("cy",e.config.head_center.y),r.setAttribute("r",e.config.head_size/2),r.setAttribute("fill",N[e.config.main_type][e.config.skin_color]),e.svg.append(r)},U=r=>{let i=r.config.has_body_pattern,u=r.config.has_collar,o=r.config.has_buttons,c=r.width/2,s=r.config.pattern_shape,a=r.config.pattern_angle,l=s===w.bitcoin_logo?E:I[r.config.body_bg_color],f=C[r.config.body_color],h=r.width/100,_=`pattern_${r.config.block}`;if(i){let e=document.createElementNS(t,"defs"),n=document.createElementNS(t,"pattern");if(n.setAttribute("id",_),n.setAttribute("class","pattern"),n.setAttribute("x",0),n.setAttribute("y",0),r.config.has_rainbow_flag){let e=1,i=r.config.has_crop_top?r.height/3.5:r.height/2.9;n.setAttribute("class","pattern rainbow-flag-pattern"),n.setAttribute("width",e),n.setAttribute("height",i),n.setAttribute("patternUnits","userSpaceOnUse");let u=function(e,r,n){let i=n/e.length,u=document.createElementNS(t,"g");u.setAttribute("x",0),u.setAttribute("y",0),u.setAttribute("width",r),u.setAttribute("height",n);for(let n=0;n<e.length;n++){let o=document.createElementNS(t,"rect");o.setAttribute("x",0),o.setAttribute("y",0+i*n),o.setAttribute("width",r),o.setAttribute("height",i),o.setAttribute("stroke","none"),o.setAttribute("fill",e[n]),u.appendChild(o)}return u}(j,e,i);n.appendChild(u)}else{let e=document.createElementNS(t,"rect");switch(e.setAttribute("class","shirt-pattern-background"),e.setAttribute("x",0),e.setAttribute("y",0),e.setAttribute("width",r.width),e.setAttribute("height",r.height),e.setAttribute("stroke","none"),e.setAttribute("fill",l),n.append(e),n.setAttribute("width",r.config.pattern_line_width),n.setAttribute("height",r.config.pattern_line_width),n.setAttribute("patternUnits","userSpaceOnUse"),n.setAttribute("patternTransform",`rotate(${a})`),s){case w.rect:{let e=document.createElementNS(t,"rect");e.setAttribute("class","shirt-rect-pattern"),e.setAttribute("x",0),e.setAttribute("y",0),e.setAttribute("width",r.config.pattern_line_width/2),e.setAttribute("height",r.config.pattern_line_width/2),e.setAttribute("stroke","none"),e.setAttribute("fill",f),n.appendChild(e);break}case w.bitcoin_logo:{let e=r.width/2/10;n.setAttribute("viewBox","0 0 64 64"),n.setAttribute("width",e),n.setAttribute("height",e);let i=document.createElementNS(t,"g");i.setAttribute("class","shirt-bitcoin-logo"),i.setAttribute("width",e),i.setAttribute("height",e);let u=document.createElementNS(t,"path");u.setAttribute("fill","#f7931a"),u.setAttribute("d","m63.033,39.744c-4.274,17.143-21.637,27.576-38.782,23.301-17.138-4.274-27.571-21.638-23.295-38.78,4.272-17.145,21.635-27.579,38.775-23.305,17.144,4.274,27.576,21.64,23.302,38.784z"),i.append(u);let o=document.createElementNS(t,"path");o.setAttribute("fill","#ffffff"),o.setAttribute("d","m46.103,27.444c0.637-4.258-2.605-6.547-7.038-8.074l1.438-5.768-3.511-0.875-1.4,5.616c-0.923-0.23-1.871-0.447-2.813-0.662l1.41-5.653-3.509-0.875-1.439,5.766c-0.764-0.174-1.514-0.346-2.242-0.527l0.004-0.018-4.842-1.209-0.934,3.75s2.605,0.597,2.55,0.634c1.422,0.355,1.679,1.296,1.636,2.042l-1.638,6.571c0.098,0.025,0.225,0.061,0.365,0.117-0.117-0.029-0.242-0.061-0.371-0.092l-2.296,9.205c-0.174,0.432-0.615,1.08-1.609,0.834,0.035,0.051-2.552-0.637-2.552-0.637l-1.743,4.019,4.569,1.139c0.85,0.213,1.683,0.436,2.503,0.646l-1.453,5.834,3.507,0.875,1.439-5.772c0.958,0.26,1.888,0.5,2.798,0.726l-1.434,5.745,3.511,0.875,1.453-5.823c5.987,1.133,10.489,0.676,12.384-4.739,1.527-4.36-0.076-6.875-3.226-8.515,2.294-0.529,4.022-2.038,4.483-5.155zm-8.022,11.249c-1.085,4.36-8.426,2.003-10.806,1.412l1.928-7.729c2.38,0.594,10.012,1.77,8.878,6.317zm1.086-11.312c-0.99,3.966-7.1,1.951-9.082,1.457l1.748-7.01c1.982,0.494,8.365,1.416,7.334,5.553z"),i.append(o),n.appendChild(i);break}case w.circle:{let e=document.createElementNS(t,"circle");e.setAttribute("class","shirt-circle-pattern"),e.setAttribute("cx",r.config.pattern_line_width/2),e.setAttribute("cy",r.config.pattern_line_width/2),e.setAttribute("r",r.config.pattern_line_width/2),e.setAttribute("stroke","none"),e.setAttribute("fill",f),n.appendChild(e);break}case w.line:{let e=r.config.pattern_stroke_width/2,i=document.createElementNS(t,"line"),u=f;i.setAttribute("class","shirt-line-pattern"),i.setAttribute("x1",0),i.setAttribute("y1",0),i.setAttribute("x2",r.width),i.setAttribute("y2",0),i.setAttribute("stroke",u),i.setAttribute("stroke-width",e),n.appendChild(i),r.config.two_directions_pattern&&(i=document.createElementNS(t,"line"),i.setAttribute("class","shirt-line-pattern"),i.setAttribute("x1",0),i.setAttribute("y1",0),i.setAttribute("x2",0),i.setAttribute("y2",r.width),i.setAttribute("stroke",u),i.setAttribute("stroke-width",e),n.appendChild(i));break}}}e.appendChild(n),r.svg.append(e)}let d=document.createElementNS(t,"path");if(d.setAttribute("class","shirt"),d.setAttribute("stroke",S),d.setAttribute("stroke-width",h),d.setAttribute("transform",`translate(${r.width/2-c/2}, ${r.height-r.height/3})`),i?d.setAttribute("fill",`url(#${_})`):d.setAttribute("fill",C[r.config.body_color]),d.setAttribute("d",e({width:c,height:r.height/2.5,round:r.width/18.5,strokeWidth:0})),r.svg.append(d),r.config.has_natnerds_logo){let e=document.createElementNS(t,"text");e.setAttribute("class","shirt-text"),e.setAttribute("x",0),e.setAttribute("y",0),e.setAttribute("fill",C[r.config.body_color]),e.setAttribute("stroke","#000000"),e.setAttribute("stroke-width",10),e.setAttribute("letter-spacing",2),e.setAttribute("font-size",36),e.setAttribute("text-anchor","middle"),e.setAttribute("paint-order","stroke fill"),e.setAttribute("font-weight",700),e.setAttribute("stroke-linejoin","round"),e.setAttribute("font-family","Verdana"),e.setAttribute("transform",`translate(${r.width/2},${r.config.head_center.y+r.config.head_size/1.5}) scale(${r.config.size/1e3})`),e.textContent="N4TN3RD5",r.svg.append(e)}if(r.config.has_big_bitcoin_logo){let e=160*r.config.size/1e3,n=document.createElementNS(t,"svg");n.setAttribute("class","shirt-big-bitcoin-logo"),n.setAttribute("viewBox","0 0 64 64"),n.setAttribute("width",e),n.setAttribute("height",e),n.setAttribute("x",r.width/2-e/2),n.setAttribute("y",r.config.head_center.y+r.config.head_size/2+e/4);let i=document.createElementNS(t,"g"),u=document.createElementNS(t,"path");u.setAttribute("fill","#f7931a"),u.setAttribute("d","m63.033,39.744c-4.274,17.143-21.637,27.576-38.782,23.301-17.138-4.274-27.571-21.638-23.295-38.78,4.272-17.145,21.635-27.579,38.775-23.305,17.144,4.274,27.576,21.64,23.302,38.784z"),i.append(u);let o=document.createElementNS(t,"path");o.setAttribute("fill","#ffffff"),o.setAttribute("d","m46.103,27.444c0.637-4.258-2.605-6.547-7.038-8.074l1.438-5.768-3.511-0.875-1.4,5.616c-0.923-0.23-1.871-0.447-2.813-0.662l1.41-5.653-3.509-0.875-1.439,5.766c-0.764-0.174-1.514-0.346-2.242-0.527l0.004-0.018-4.842-1.209-0.934,3.75s2.605,0.597,2.55,0.634c1.422,0.355,1.679,1.296,1.636,2.042l-1.638,6.571c0.098,0.025,0.225,0.061,0.365,0.117-0.117-0.029-0.242-0.061-0.371-0.092l-2.296,9.205c-0.174,0.432-0.615,1.08-1.609,0.834,0.035,0.051-2.552-0.637-2.552-0.637l-1.743,4.019,4.569,1.139c0.85,0.213,1.683,0.436,2.503,0.646l-1.453,5.834,3.507,0.875,1.439-5.772c0.958,0.26,1.888,0.5,2.798,0.726l-1.434,5.745,3.511,0.875,1.453-5.823c5.987,1.133,10.489,0.676,12.384-4.739,1.527-4.36-0.076-6.875-3.226-8.515,2.294-0.529,4.022-2.038,4.483-5.155zm-8.022,11.249c-1.085,4.36-8.426,2.003-10.806,1.412l1.928-7.729c2.38,0.594,10.012,1.77,8.878,6.317zm1.086-11.312c-0.99,3.966-7.1,1.951-9.082,1.457l1.748-7.01c1.982,0.494,8.365,1.416,7.334,5.553z"),i.append(o),n.append(i),r.svg.append(n)}if(u){let e=r.width/5,n=r.height/13.33333333,i=r.config.sub_type===g||r.config.is_bald?r.height/2-n/1.8:r.height/2-n/2,u=document.createElementNS(t,"rect"),o=r.config.has_rainbow_flag?"#fe69b4":C[r.config.body_color];u.setAttribute("class","left-collar"),u.setAttribute("x",r.width/2-e/2),u.setAttribute("y",i),u.setAttribute("width",e),u.setAttribute("height",n),u.setAttribute("fill",o),u.setAttribute("stroke",S),u.setAttribute("transform-origin","center"),u.setAttribute("transform",`translate(-${e/2}, ${e}) rotate(45)`),u.setAttribute("stroke-width",r.width/100),r.svg.append(u),u=document.createElementNS(t,"rect"),u.setAttribute("class","right-collar"),u.setAttribute("x",r.width/2-e/2),u.setAttribute("y",i),u.setAttribute("width",e),u.setAttribute("height",n),u.setAttribute("fill",o),u.setAttribute("stroke",S),u.setAttribute("transform-origin","center"),u.setAttribute("transform",`translate(${e/2}, ${e}) rotate(-45)`),u.setAttribute("stroke-width",r.width/100),r.svg.append(u)}if(o){let e=r.height/15,n=r.height/1.2,i=r.height/66.66666667,u=document.createElementNS(t,"g");u.setAttribute("class","buttons");for(let o=n;o<=r.height;o+=e){let e=document.createElementNS(t,"circle");e.setAttribute("cx",r.width/2),e.setAttribute("cy",o),e.setAttribute("r",i),e.setAttribute("fill",S),u.append(e);let n=i/4.28571429,c=i/10;e=document.createElementNS(t,"circle"),e.setAttribute("cx",r.width/2-n),e.setAttribute("cy",o-n),e.setAttribute("r",c),e.setAttribute("fill",E),u.append(e),e=document.createElementNS(t,"circle"),e.setAttribute("cx",r.width/2-n),e.setAttribute("cy",o+n),e.setAttribute("r",c),e.setAttribute("fill",E),u.append(e),e=document.createElementNS(t,"circle"),e.setAttribute("cx",r.width/2+n),e.setAttribute("cy",o-n),e.setAttribute("r",c),e.setAttribute("fill",E),u.append(e),e=document.createElementNS(t,"circle"),e.setAttribute("cx",r.width/2+n),e.setAttribute("cy",o+n),e.setAttribute("r",c),e.setAttribute("fill",E),u.append(e)}r.svg.append(u)}let b=r.width/2-c/2+c/5,y=r.height,v=r.height-r.height/5,A=document.createElementNS(t,"line"),m=h;if(A.setAttribute("class","left-inner-arm"),A.setAttribute("x1",b),A.setAttribute("y1",y),A.setAttribute("x2",b),A.setAttribute("y2",v),A.setAttribute("stroke",S),A.setAttribute("stroke-width",m),r.svg.append(A),b=b+c/2+c/10,A=document.createElementNS(t,"line"),A.setAttribute("class","right-inner-arm"),A.setAttribute("x1",b),A.setAttribute("y1",y),A.setAttribute("x2",b),A.setAttribute("y2",v),A.setAttribute("stroke",S),A.setAttribute("stroke-width",m),r.svg.append(A),r.config.short_sleeves){b=r.width/2-c/2;let e=document.createElementNS(t,"rect");e.setAttribute("class","left-arm"),e.setAttribute("x",b),e.setAttribute("y",v+r.width/14),e.setAttribute("width",r.width/2-c/2+c/5-(r.width/2-c/2)),e.setAttribute("height",y-v),e.setAttribute("fill",N[r.config.main_type][r.config.skin_color]),e.setAttribute("stroke",S),e.setAttribute("stroke-width",h),r.svg.append(e),b=r.width/2-c/2+c/5+c/2+c/10,e=document.createElementNS(t,"rect"),e.setAttribute("class","right-arm"),e.setAttribute("x",b),e.setAttribute("y",v+r.width/14),e.setAttribute("width",r.width/2+c/2-b+h-m),e.setAttribute("height",y-v),e.setAttribute("fill",N[r.config.main_type][r.config.skin_color]),e.setAttribute("stroke",S),e.setAttribute("stroke-width",h),r.svg.append(e)}if(r.config.has_cleavage){let e=r.width/7,i=r.height/7,u=0,o=240,c=(180-o)/2,s=h,a=S,l={x:r.width/2,y:r.height/1.4,angle_start:u,angle_rotation:c},f=document.createElementNS(t,"path");f.setAttribute("class","cleavage"),f.setAttribute("stroke",a),f.setAttribute("stroke-width",s),f.setAttribute("fill",N[r.config.main_type][r.config.skin_color]),f.setAttribute("transform",`translate(${l.x}, ${l.y})`),f.setAttribute("d",p([0,0],[e,i],[n(l.angle_start),n(o)],n(l.angle_rotation)).join(" ")),r.svg.append(f)}if(r.config.has_boobs){let e=r.width/13.4057971,i=0,u=240,o=(180-u)/2,c=h,s=S,a=1.02,l={x:r.width/2+e*a,y:r.height-r.height/7.5,angle_start:i,angle_rotation:o},f={...l,x:r.width/2-e*a,angle_start:i,angle_rotation:o},_=document.createElementNS(t,"path");_.setAttribute("class","left-boob"),_.setAttribute("stroke",s),_.setAttribute("stroke-width",c),_.setAttribute("fill","none"),_.setAttribute("transform",`translate(${f.x}, ${f.y})`),_.setAttribute("d",p([0,0],[e,e],[n(f.angle_start),n(u)],n(f.angle_rotation)).join(" ")),r.svg.append(_),_=document.createElementNS(t,"path"),_.setAttribute("class","right-boob"),_.setAttribute("stroke",s),_.setAttribute("stroke-width",c),_.setAttribute("fill","none"),_.setAttribute("transform",`translate(${l.x}, ${l.y})`),_.setAttribute("d",p([0,0],[e,e],[n(l.angle_start),n(u)],n(l.angle_rotation)).join(" ")),r.svg.append(_)}if(r.config.has_crop_top){b=r.width/2-c/2+(r.width/2-c/2+c/5)-(r.width/2-c/2);let e=document.createElementNS(t,"rect");e.setAttribute("class","belly"),e.setAttribute("x",b),e.setAttribute("y",v+r.height/6.5),e.setAttribute("width",r.width/2-c/2+c/5+c/2+c/10-b),e.setAttribute("height",y-v),e.setAttribute("fill",N[r.config.main_type][r.config.skin_color]),e.setAttribute("stroke",S),e.setAttribute("stroke-width",h),r.svg.append(e);let n=document.createElementNS(t,"circle");n.setAttribute("class","belly-button"),n.setAttribute("cx",r.width/2),n.setAttribute("cy",r.height),n.setAttribute("r",r.height/150),n.setAttribute("fill",S),r.svg.append(n)}},W=(e,r,n,i,u)=>{let c=r.config.head_size/2-n-i,s=r.height;switch(r.config.hair_style){case"half_long":s=r.config.head_size/2.65;break;case"long":s=r.height}let a={x:r.config.head_center.x,y:r.config.head_center.y,angle_start:-90,angle_end:0},l=document.createElementNS(t,"path");l.setAttribute("fill",u),l.setAttribute("d",o(a.x,a.y,c,n,a.angle_start,a.angle_end)),e.appendChild(l),a.angle_start=-1,a.angle_end=Math.abs(-90),l=document.createElementNS(t,"path"),l.setAttribute("fill",u),l.setAttribute("d",o(a.x,a.y,c,n,a.angle_start,a.angle_end)),e.appendChild(l);let f=document.createElementNS(t,"rect");f.setAttribute("x",r.config.head_center.x-r.config.head_size/2+i),f.setAttribute("y",r.config.head_center.y-1),f.setAttribute("width",n),f.setAttribute("height",s),f.setAttribute("fill",u),e.append(f),f=document.createElementNS(t,"rect"),f.setAttribute("x",r.config.head_center.x+r.config.head_size/2-n-i),f.setAttribute("y",r.config.head_center.y-1),f.setAttribute("width",n),f.setAttribute("height",s),f.setAttribute("fill",u),e.append(f)},L=(e,r="mouth",n=!1,i=!1,u=!1,o=3,c=S)=>{let s={x:e.config.head_center.x,y:e.config.head_center.y+e.height/7.1};if(u){let n=document.createElementNS(t,"circle");n.setAttribute("class",r),n.setAttribute("cx",s.x),n.setAttribute("cy",s.y),n.setAttribute("r",o),n.setAttribute("fill",c),e.svg.append(n)}else{let u=document.createElementNS(t,"path"),a=e.width/20,l=e.width/40;l=n?-1*l-o/4:l+o/4,u.setAttribute("class",r),u.setAttribute("stroke-width",o),u.setAttribute("stroke",c),u.setAttribute("fill","none"),u.setAttribute("stroke-linecap","round"),i?u.setAttribute("d",`M ${s.x-a-o/2} ${s.y} C ${s.x-o/2} ${s.y}, ${s.x+o/2} ${s.y}, ${s.x+a+o/2} ${s.y}`):u.setAttribute("d",`M ${s.x-a} ${s.y-l} C ${s.x-a-o/2} ${s.y+l}, ${s.x+a+o/2} ${s.y+l}, ${s.x+a} ${s.y-l}`),e.svg.append(u)}};class T{constructor(e,r=200,n=200,i={}){let u=document.createElementNS(t,"svg");u.setAttribute("id",`natnerd-${e}`),u.setAttribute("class","natnerd"),u.setAttribute("viewBox",`0 0 ${r} ${n}`),u.style.width=r,u.style.height=n,document.querySelector("body").appendChild(u),this.config=i,this.id=`person_${e}`,this.width=r,this.height=n,this.config.main_type=i.main_type,this.config.sub_type=i.sub_type,this.config.head_center={x:this.width/2,y:this.height/2-this.height/10},this.config.head_size=this.width/1.5,this.config.stroke_width=this.width/50,this.config.stroke_color=S;let o=i.eye_stroke_width;this.config.eye_stroke_width=o<this.width/100?this.width/100:o,this.config.eye_stroke_color=E,this.svg=u}render(){let r="sad"===this.config.mouth,n="straight"===this.config.mouth,i="open"===this.config.mouth,c=i?this.width/16.66666667:this.width/30,s=i?this.width/20:this.width/100,a=this.width/100,l=this.config.show_teeth,f=this.config.rosy_cheeks,h=this.config.has_beard,p=this.config.has_cap,v=this.config.has_glasses;this.config.main_type===d?(U(this),M(this),(e=>{let r={x:e.config.head_center.x-e.width/10,y:e.config.head_center.y-e.height/10},n=e.config.eye_radius/200*e.width,i=document.createElementNS(t,"circle");i.setAttribute("class","left-eye"),i.setAttribute("cx",r.x),i.setAttribute("cy",r.y),i.setAttribute("r",n),i.setAttribute("fill",O[e.config.main_type][e.config.eye_color]),e.svg.append(i),i=document.createElementNS(t,"circle"),i.setAttribute("class","right-eye-light"),i.setAttribute("cx",r.x-n/2.2),i.setAttribute("cy",r.y-n/2.2),i.setAttribute("r",n/4),i.setAttribute("fill","white"),e.svg.append(i),r.x=e.config.head_center.x+e.width/10,i=document.createElementNS(t,"circle"),i.setAttribute("class","right-eye"),i.setAttribute("cx",r.x),i.setAttribute("cy",r.y),i.setAttribute("r",n),i.setAttribute("fill",O[e.config.main_type][e.config.eye_color]),e.svg.append(i),i=document.createElementNS(t,"circle"),i.setAttribute("class","right-eye-light"),i.setAttribute("cx",r.x-n/2.2),i.setAttribute("cy",r.y-n/2.2),i.setAttribute("r",n/4),i.setAttribute("fill","white"),e.svg.append(i)})(this),L(this,"mouth",!1,!1,!0,c)):(U(this),M(this),(e=>{let r=e.width/12,n=e.config.eyes_horizontal_direction,i=e.config.eyes_vertical_direction,u=e.config.eye_radius/200*e.width,o="left"===n?.9*(-r+u):"right"===n?.9*(r-u):0,c="top"===i?.9*(-r+u):"bottom"===i?.9*(r-u):0,s="left"===n?.8*(u/2-r):"right"===n?.8*(r-u/2):0,a="top"===i?.8*(u/2-r):"bottom"===i?.8*(r-u/2):0,l=u/4,f=!0,h={x:e.config.head_center.x-e.width/10,y:e.config.head_center.y-e.height/10},p="left"===n?u/4:"right"===n?-u/4:-u/2,_=-u/2;"squint"===e.config.eyes_horizontal_direction&&(o+=20,s+=30,l/=2,p*=1.3,f=!1);let d=document.createElementNS(t,"circle");if(e.config.glasses_shape===k.square){let n=document.createElementNS(t,"rect");n.setAttribute("class","left-eye-white"),n.setAttribute("x",h.x-r),n.setAttribute("y",h.y-r),n.setAttribute("width",2*r),n.setAttribute("height",2*r),n.setAttribute("fill","white"),e.svg.append(n)}else d.setAttribute("class","left-eye-white"),d.setAttribute("cx",h.x),d.setAttribute("cy",h.y),d.setAttribute("r",r),d.setAttribute("fill","white"),e.svg.append(d);if(d=document.createElementNS(t,"circle"),d.setAttribute("class","left-eye"),d.setAttribute("cx",h.x+o),d.setAttribute("cy",h.y+c),d.setAttribute("r",u),d.setAttribute("fill",O[e.config.main_type][e.config.eye_color]),e.svg.append(d),d=document.createElementNS(t,"circle"),d.setAttribute("class","left-eye-black"),d.setAttribute("cx",h.x+s),d.setAttribute("cy",h.y+a),d.setAttribute("r",u/2),d.setAttribute("fill","black"),e.svg.append(d),f&&(d=document.createElementNS(t,"circle"),d.setAttribute("class","left-eye-light"),d.setAttribute("cx",h.x+o+p),d.setAttribute("cy",h.y+c+_),d.setAttribute("r",l),d.setAttribute("fill","white"),e.svg.append(d)),h.x=e.config.head_center.x+e.width/10,"squint"===e.config.eyes_horizontal_direction&&(o-=40,s-=60),e.config.glasses_shape===k.square){let n=document.createElementNS(t,"rect");n.setAttribute("class","right-eye-white"),n.setAttribute("x",h.x-r),n.setAttribute("y",h.y-r),n.setAttribute("width",2*r),n.setAttribute("height",2*r),n.setAttribute("fill","white"),e.svg.append(n)}else d=document.createElementNS(t,"circle"),d.setAttribute("class","right-eye-white"),d.setAttribute("cx",h.x),d.setAttribute("cy",h.y),d.setAttribute("r",r),d.setAttribute("fill","white"),e.svg.append(d);d=document.createElementNS(t,"circle"),d.setAttribute("class","right-eye"),d.setAttribute("cx",h.x+o),d.setAttribute("cy",h.y+c),d.setAttribute("r",u),d.setAttribute("fill",O[e.config.main_type][e.config.eye_color]),e.svg.append(d),d=document.createElementNS(t,"circle"),d.setAttribute("class","right-eye-black"),d.setAttribute("cx",h.x+s),d.setAttribute("cy",h.y+a),d.setAttribute("r",u/2),d.setAttribute("fill","black"),e.svg.append(d),f&&(d=document.createElementNS(t,"circle"),d.setAttribute("class","right-eye-light"),d.setAttribute("cx",h.x+o+p),d.setAttribute("cy",h.y+c+_),d.setAttribute("r",l),d.setAttribute("fill","white"),e.svg.append(d))})(this),h&&this.config.sub_type===b?(e=>{let r=document.createElementNS(t,"clipPath");r.setAttribute("id",`beard-cut-off-${e.config.block}`),r.setAttribute("class","beard-cut-off");let n=document.createElementNS(t,"g");n.setAttribute("class","beard");let i=document.createElementNS(t,"circle");i.setAttribute("cx",e.config.head_center.x),i.setAttribute("cy",e.config.head_center.y),i.setAttribute("r",e.config.head_size/2),r.appendChild(i),n.append(r);let u=e.width/80,o=u/5,c=document.createElementNS(t,"rect"),s=1.15*e.config.head_center.y;c.setAttribute("x",e.config.head_center.x-e.config.head_size/2),c.setAttribute("y",s),c.setAttribute("width",e.config.head_size),c.setAttribute("height",e.config.head_size/2);let a=`beard-${e.config.block}`,l=document.createElementNS(t,"defs"),f=document.createElementNS(t,"pattern"),h=$[e.config.sub_type][e.config.hair_color];f.setAttribute("id",a),f.setAttribute("class","beard"),f.setAttribute("x",0),f.setAttribute("y",0),f.setAttribute("width",u),f.setAttribute("height",u),f.setAttribute("patternUnits","userSpaceOnUse"),f.setAttribute("patternTransform","rotate(45)");let p=document.createElementNS(t,"circle");p.setAttribute("cx",o),p.setAttribute("cy",o),p.setAttribute("r",o),p.setAttribute("stroke","none"),p.setAttribute("fill",h),f.appendChild(p),l.appendChild(f),n.append(l),c.setAttribute("fill",`url(#${a})`),c.setAttribute("clip-path",`url(#beard-cut-off-${e.config.block})`),n.append(c),e.svg.append(n)})(this):f&&(e=>{let r={x:e.config.head_center.x,y:e.config.head_center.y+e.height/18},n=e.width/16,i="#ff000044",u=document.createElementNS(t,"circle");u.setAttribute("class","left-cheek"),u.setAttribute("cx",r.x-e.width/5),u.setAttribute("cy",r.y),u.setAttribute("r",n),u.setAttribute("fill",i),e.svg.append(u),u=document.createElementNS(t,"circle"),u.setAttribute("class","right-cheek"),u.setAttribute("cx",r.x+e.width/5),u.setAttribute("cy",r.y),u.setAttribute("r",n),u.setAttribute("fill",i),e.svg.append(u)})(this),L(this,"mouth-lips",r,n,i,c,N[this.config.main_type][this.config.skin_color]),L(this,"mouth",r,n,i,s),i&&((e,r,n,i=!1)=>{let u={x:e.config.head_center.x,y:e.config.head_center.y+e.height/7.1};if(i){let n=2*r,i=document.createElementNS(t,"clipPath");i.setAttribute("id",`cut-off-${e.config.block}`);let o=document.createElementNS(t,"circle");if(o.setAttribute("cx",u.x),o.setAttribute("cy",u.y),o.setAttribute("r",r),i.appendChild(o),e.svg.append(i),e.config.show_top_teeth){let i=document.createElementNS(t,"rect");if(i.setAttribute("class","upper-teeth"),i.setAttribute("x",u.x-n/2),i.setAttribute("y",u.y-n/2),i.setAttribute("width",n),i.setAttribute("height",n/4),i.setAttribute("fill","white"),i.setAttribute("stroke","none"),i.setAttribute("clip-path",`url(#cut-off-${e.config.block})`),e.svg.append(i),e.config.has_golden_tooth){let r=document.createElementNS(t,"rect");r.setAttribute("class","golden-tooth"),r.setAttribute("x",u.x-n/6.5),r.setAttribute("y",u.y-n/2),r.setAttribute("width",n/6),r.setAttribute("height",n/4),r.setAttribute("fill","#d4af37"),r.setAttribute("stroke","none"),r.setAttribute("clip-path",`url(#cut-off-${e.config.block})`),e.svg.append(r)}e.config.has_dental_brace&&((e,r,n,i)=>{let u=document.createElementNS(t,"clipPath");u.setAttribute("id","cut-off");let o=document.createElementNS(t,"g");o.setAttribute("class","dental-brace");let c=document.createElementNS(t,"circle");c.setAttribute("cx",r.x),c.setAttribute("cy",r.y),c.setAttribute("r",n),u.appendChild(c),o.append(u);let s=i/6;for(let n=s/4;n<i;n+=s){let u=document.createElementNS(t,"rect");u.setAttribute("x",r.x-i/2+n),u.setAttribute("y",r.y-i/2.6),u.setAttribute("width",i/6/1.5),u.setAttribute("height",i/10),u.setAttribute("fill","#aaa9ad"),u.setAttribute("stroke",S),u.setAttribute("stroke-width",.5*e.config.size/1e3),u.setAttribute("clip-path","url(#cut-off)"),o.append(u)}let a=document.createElementNS(t,"line");a.setAttribute("x1",r.x-i/2),a.setAttribute("y1",r.y-i/3),a.setAttribute("x2",r.x+i/2),a.setAttribute("y2",r.y-i/3),a.setAttribute("clip-path","url(#cut-off)"),a.setAttribute("stroke",S),a.setAttribute("stroke-width",1*e.config.size/1e3),o.append(a),e.svg.append(o)})(e,u,r,n)}if(e.config.show_bottom_teeth){let r=document.createElementNS(t,"rect");r.setAttribute("class","lower-teeth"),r.setAttribute("x",u.x-n/6.5),r.setAttribute("y",u.y+n/4),r.setAttribute("width",n/6),r.setAttribute("height",n/4),r.setAttribute("fill","white"),r.setAttribute("stroke","none"),r.setAttribute("clip-path",`url(#cut-off-${e.config.block})`),e.svg.append(r)}}let o=document.createElementNS(t,"circle");o.setAttribute("class","mouth-stroke"),o.setAttribute("cx",u.x),o.setAttribute("cy",u.y),o.setAttribute("r",r),o.setAttribute("fill","none"),o.setAttribute("stroke",S),o.setAttribute("stroke-width",n),e.svg.append(o)})(this,s,a,l),v&&(e=>{let r={x:e.config.head_center.x-e.width/10,y:e.config.head_center.y-e.height/10},n={...r,x:e.config.head_center.x+e.width/10},i=e.width/12,o=e.config.glasses_frame_width/1e3*e.width,c=z[e.config.glasses_frame_color],s=e.config.glasses_angle,a=document.createElementNS(t,"g");a.setAttribute("class","glasses");let l=`glasses-${e.config.block}`,f=document.createElementNS(t,"clipPath");f.setAttribute("id",`${l}-cut-off`);let h=document.createElementNS(t,"circle");h.setAttribute("cx",e.config.head_center.x),h.setAttribute("cy",e.config.head_center.y),h.setAttribute("r",e.config.head_size/2),f.appendChild(h),a.append(f);let{x:p,y:_}=u(s,e.config.head_size/2),d=document.createElementNS(t,"line");d.setAttribute("x1",e.config.head_center.x-1.1*p),d.setAttribute("y1",e.config.head_center.y-_),d.setAttribute("x2",r.x-i),d.setAttribute("y2",r.y),d.setAttribute("stroke",c),d.setAttribute("stroke-width",o),d.setAttribute("clip-path",`url(#${l}-cut-off)`),a.append(d);let b=e.config.is_sunglasses?"#330000dd":"none";switch(e.config.glasses_shape){case k.square:{let e=document.createElementNS(t,"rect");e.setAttribute("x",r.x-i),e.setAttribute("y",r.y-i),e.setAttribute("width",2*i),e.setAttribute("height",2*i),e.setAttribute("fill",b),e.setAttribute("stroke",c),e.setAttribute("stroke-width",o),a.append(e),e=document.createElementNS(t,"rect"),e.setAttribute("x",n.x-i),e.setAttribute("y",n.y-i),e.setAttribute("width",2*i),e.setAttribute("height",2*i),e.setAttribute("fill",b),e.setAttribute("stroke",c),e.setAttribute("stroke-width",o),a.append(e);break}default:{let e=document.createElementNS(t,"circle");e.setAttribute("id","mouth_stroke"),e.setAttribute("cx",r.x),e.setAttribute("cy",r.y),e.setAttribute("r",i),e.setAttribute("fill",b),e.setAttribute("stroke",c),e.setAttribute("stroke-width",o),a.append(e),e=document.createElementNS(t,"circle"),e.setAttribute("id","mouth_stroke"),e.setAttribute("cx",n.x),e.setAttribute("cy",n.y),e.setAttribute("r",i),e.setAttribute("fill",b),e.setAttribute("stroke",c),e.setAttribute("stroke-width",o),a.append(e);break}}let{x:g,y}=u(-s,e.config.head_size/2);d=document.createElementNS(t,"line"),d.setAttribute("x1",e.config.head_center.x+1.1*g),d.setAttribute("y1",e.config.head_center.y+y),d.setAttribute("x2",n.x+i),d.setAttribute("y2",n.y),d.setAttribute("stroke",c),d.setAttribute("stroke-width",o),d.setAttribute("clip-path",`url(#${l}-cut-off)`),a.append(d),d=document.createElementNS(t,"line"),d.setAttribute("x1",r.x+i),d.setAttribute("y1",r.y),d.setAttribute("x2",n.x-i),d.setAttribute("y2",n.y),d.setAttribute("stroke",c),d.setAttribute("stroke-width",o),a.append(d),e.svg.append(a)})(this)),(e=>{if(e.config.is_bald){let r=e.config.stroke_width/1.5,n=1*(e.config.head_size/2-r),i=90,u=360-i,c={x:e.config.head_center.x,y:e.config.head_center.y+.5*e.config.size/1e3,angle_start:i,angle_end:u},s=document.createElementNS(t,"path");s.setAttribute("class","head-stroke"),e.config.main_type===_&&s.setAttribute("fill",e.config.stroke_color),s.setAttribute("d",o(c.x,c.y,n,r,c.angle_start,c.angle_end)),e.svg.appendChild(s)}else{let r=document.createElementNS(t,"circle"),n=e.config.sub_type===g?e.config.stroke_width/2:e.config.stroke_width;r.setAttribute("class","head-stroke"),r.setAttribute("cx",e.config.head_center.x),r.setAttribute("cy",e.config.head_center.y),r.setAttribute("r",e.config.head_size/2),r.setAttribute("fill","none"),r.setAttribute("stroke-width",n),r.setAttribute("stroke",e.config.stroke_color),e.svg.append(r)}})(this),(e=>{if(e.config.sub_type===g){let r=10*e.config.hair_thickness/1e3*e.width,n=r/4*-1,i=document.createElementNS(t,"g");i.setAttribute("class","hair"),W(i,e,r,n,$[e.config.sub_type][e.config.hair_color]);let u=Math.floor(r/e.config.hair_thickness),o=u/2,c=r;for(let t=0;t<=c;t+=u)W(i,e,o,n+t,"#000");e.svg.append(i)}})(this),p&&(r=>{switch(r.config.cap_type){case y.knitted:(r=>{let n=document.createElementNS(t,"rect"),i=`cap-${r.config.block}`,u=r.config.sub_type===g?r.config.stroke_width/2:r.config.stroke_width;r.config.is_bald&&(u=0);let o=r.config.head_size/5.672592592592593,c=o/4.5,s=o/11.25,a=o/10,l=R[r.config.cap_color],f=document.createElementNS(t,"g");f.setAttribute("g","knitted-cap");let h=document.createElementNS(t,"clipPath");h.setAttribute("id",`${i}_clip-${r.config.block}`);let p=document.createElementNS(t,"defs"),_=document.createElementNS(t,"pattern"),d=0,b=r.config.head_size,y=.85*b+u,v=r.config.head_center.y-r.config.head_size/2;r.config.sub_type===g&&(d=10*r.config.hair_thickness/1e3*r.width,y=.95*b,b+=d,o+=d/3,v-=d/4.5);let A=v+.95*o;n.setAttribute("id","cap_rect"),n.setAttribute("x",r.config.head_center.x-r.config.head_size/2),n.setAttribute("y",v-u/2),n.setAttribute("width",b),n.setAttribute("height",o+u),n.setAttribute("fill",l),n.setAttribute("clip-path",`url(#${i}_clip-${r.config.block})`),_.setAttribute("id",i),_.setAttribute("x",r.config.head_center.x-r.config.head_size/2),_.setAttribute("y",r.config.head_center.y-r.config.head_size/2),_.setAttribute("width",s),_.setAttribute("height",o/9),_.setAttribute("patternUnits","userSpaceOnUse");let m=document.createElementNS(t,"rect");m.setAttribute("id","cap_bg_rect"),m.setAttribute("x",0),m.setAttribute("y",0),m.setAttribute("width",r.config.head_size),m.setAttribute("height",o),m.setAttribute("fill","#000"),_.appendChild(m);let w=document.createElementNS(t,"line");w.setAttribute("x1",0),w.setAttribute("y1",0),w.setAttribute("x2",0),w.setAttribute("y2",o),w.setAttribute("stroke",l),w.setAttribute("stroke-width",a),_.appendChild(w),p.appendChild(_),f.append(p);let k=document.createElementNS(t,"circle");k.setAttribute("id","cap_clip_circle"),k.setAttribute("cx",r.config.head_center.x),k.setAttribute("cy",r.config.head_center.y),k.setAttribute("r",r.config.head_size/2+d/4+u/2),h.appendChild(k);let x=document.createElementNS(t,"clipPath");x.setAttribute("id",`${i}_clip2`);let S=document.createElementNS(t,"rect");S.setAttribute("id","cap_rect2"),S.setAttribute("x",r.config.head_center.x-r.config.head_size/2),S.setAttribute("y",v-u),S.setAttribute("width",b),S.setAttribute("height",o+u),S.setAttribute("fill",l),x.appendChild(S);let E=document.createElementNS(t,"circle");E.setAttribute("id","cap_clip_stroke_circle"),E.setAttribute("cx",r.config.head_center.x),E.setAttribute("cy",r.config.head_center.y),E.setAttribute("r",r.config.head_size/2+d/4+u/2),E.setAttribute("stroke-width",o/30),E.setAttribute("stroke","#000"),E.setAttribute("fill","none"),E.setAttribute("clip-path",`url(#${i}_clip2)`),f.append(x),f.append(h);let N=y,$=document.createElementNS(t,"path");$.setAttribute("stroke","#000"),$.setAttribute("stroke-width",o/30),$.setAttribute("transform",`translate(${r.config.head_center.x-N/2}, ${A})`),$.setAttribute("fill",`url(#${i})`),$.setAttribute("d",e({width:N,height:c,round:c/3,strokeWidth:0})),f.append(n),f.append(E),f.append($);let j=r.config.head_size/20,z=document.createElementNS(t,"circle");z.setAttribute("cx",r.config.head_center.x),z.setAttribute("cy",r.config.head_center.y-r.config.head_size/2-j/1.1),z.setAttribute("r",j),z.setAttribute("fill",l),z.setAttribute("stroke-width",o/30),z.setAttribute("stroke","#000"),f.append(z),r.svg.append(f)})(r);break;case y.headband:(e=>{let r=e.config.sub_type===g?e.config.stroke_width/2:e.config.stroke_width;e.config.is_bald&&(r=0);let n=document.createElementNS(t,"rect"),i=`cap-${e.config.block}`,u=e.config.head_size,o=e.config.head_size/9,c=o/5,s=o/5,a=0,l=document.createElementNS(t,"g");l.setAttribute("class","headband"),e.config.sub_type===g&&(a=10*e.config.hair_thickness/1e3*e.width,u+=a/3);let f=R[e.config.cap_color];n.setAttribute("x",e.config.head_center.x-e.config.head_size/2),n.setAttribute("y",e.config.head_center.y-e.config.head_size/2+o/1.1),n.setAttribute("width",u),n.setAttribute("height",o);let h=document.createElementNS(t,"clipPath");h.setAttribute("id",`head_clip-${e.config.block}`);let p=document.createElementNS(t,"defs"),_=document.createElementNS(t,"pattern");_.setAttribute("id",i),_.setAttribute("x",e.config.head_center.x-e.config.head_size/2),_.setAttribute("y",e.config.head_center.y-e.config.head_size/2),_.setAttribute("width",c),_.setAttribute("height",o),_.setAttribute("patternUnits","userSpaceOnUse");let d=document.createElementNS(t,"rect");d.setAttribute("x",0),d.setAttribute("y",0),d.setAttribute("width",u),d.setAttribute("height",o),d.setAttribute("fill","#000"),_.appendChild(d);let b=document.createElementNS(t,"line");b.setAttribute("x1",0),b.setAttribute("y1",0),b.setAttribute("x2",0),b.setAttribute("y2",o),b.setAttribute("stroke",f),b.setAttribute("stroke-width",s),_.appendChild(b),p.appendChild(_),l.append(p);let y=document.createElementNS(t,"circle");y.setAttribute("id","head_clip"),y.setAttribute("cx",e.config.head_center.x),y.setAttribute("cy",e.config.head_center.y),y.setAttribute("r",u/2+r/2),h.appendChild(y),l.append(h),n.setAttribute("fill",`url(#${i})`),n.setAttribute("clip-path",`url(#head_clip-${e.config.block})`),l.append(n),e.svg.append(l)})(r)}})(this),document.querySelector("#result").appendChild(this.svg)}}const B=t=>!Number.isInteger(t/2);(()=>{let t={},e={};"undefined"!=typeof blockNumber?e.block=blockNumber:e.block=38571,e.block_props=(t=>{const e=`${t}`,r=parseInt(e.slice(-4),10);return{block_number:t,block_length:e.length,first_digit:parseInt(e[0],10),last_digit:parseInt(e[e.length-1],10),second_last_digit:parseInt(e[e.length-2],10),third_last_digit:parseInt(e[e.length-3],10),fourth_last_digit:parseInt(e[e.length-4],10),reverse_block_number:parseInt(e.split("").reverse().join(""),10),reverse_first_digit:parseInt(e.split("").reverse().join("")[0],10),reverse_fifth_digit:parseInt(e.split("").reverse().join("")[5],10),has_0:e.includes("0"),has_1:e.includes("1"),has_2:e.includes("2"),has_3:e.includes("3"),has_4:e.includes("4"),has_5:e.includes("5"),has_6:e.includes("6"),has_7:e.includes("7"),has_8:e.includes("8"),has_9:e.includes("9"),has_00:e.includes("00"),has_01:e.includes("01"),has_69:e.includes("69"),has_88:e.includes("88"),has_000:e.includes("000"),has_420:e.includes("420"),has_444:e.includes("444"),has_888:e.includes("888"),has_0000:e.includes("0000"),has_1337:e.includes("1337"),has_8888:e.includes("8888"),is_multiple_of_3:t%3==0,is_multiple_of_4:t%4==0,is_multiple_of_5:t%5==0,is_multiple_of_7:t%7==0,is_multiple_of_13:t%13==0,is_multiple_of_69:t%69==0,is_multiple_of_13_and_69:t%13==0&&t%69==0,bitmap_number:r,bitmap_side:r<2800?"right":r>7200?"left":"center",bitmap_side_number:r<2800?1:r>7200?2:0,is_odd:B(t)}})(e.block),t.size=200,e.block_props.has_444?t.main_type=d:e.block_props.has_888?t.main_type="zombie":t.main_type=_,t.sub_type=t.main_type===_?B(e.block_props.second_last_digit)?b:g:B(e.block_props.reverse_fifth_digit)?b:g,t.skin_color=t.main_type===_?Object.keys(N[t.main_type])[e.block_props.third_last_digit]:Object.keys(N[t.main_type])[0];let r=Object.keys($[t.sub_type]).length-1;t.hair_color=Object.keys($[t.sub_type])[Math.floor(i(e.block_props.second_last_digit,0,9,0,r))],t.is_bald=t.main_type!==d&&t.sub_type===b&&B(e.block_props.last_digit),t.hair_style=t.sub_type===g&&Object.keys(v)[+B(e.block_props.last_digit)],t.hair_thickness=t.sub_type===g?Math.round(i(e.block_props.last_digit,0,9,5,10)):0,t.eye_radius=(e.block_props.last_digit+10)/2;let n=Object.keys(O[t.main_type]).length-1;t.eye_color=Object.keys(O[t.main_type])[Math.floor(i(e.block_props.second_last_digit,0,9,0,n))],t.eyes_horizontal_direction=e.block_props.bitmap_side,t.eyes_vertical_direction="center"===t.eyes_horizontal_direction?e.block_props.second_last_digit<3?"top":e.block_props.second_last_digit<7?"bottom":"center":"center",t.has_glasses=t.main_type===_&&e.block_props.is_multiple_of_4;let u=Object.keys(z).length-1;t.glasses_frame_color=!!t.has_glasses&&Object.keys(z)[Math.floor(i(e.block_props.second_last_digit,0,9,0,u))],t.glasses_frame_width=t.has_glasses?e.block_props.is_odd?15:20:0,t.glasses_angle=t.has_glasses?17.65:0,t.glasses_shape=!!t.has_glasses&&Object.keys(k)[+(e.block_props.second_last_digit>5)],t.is_sunglasses=t.has_glasses&&e.block_props.has_00,t.has_cap=e.block_props.block_length>5,t.cap_type=!!t.has_cap&&Object.keys(y)[+("center"===e.block_props.bitmap_side)];let o=Object.keys(R).length-1;t.cap_color=!!t.has_cap&&Object.keys(R)[Math.floor(i(e.block_props.second_last_digit,0,9,0,o))],0===e.block_props.fourth_last_digit||8===e.block_props.fourth_last_digit?t.mouth=m:1===e.block_props.fourth_last_digit||3===e.block_props.fourth_last_digit||7===e.block_props.fourth_last_digit?t.mouth=A:2===e.block_props.fourth_last_digit||5===e.block_props.fourth_last_digit||9===e.block_props.fourth_last_digit?t.mouth="straight":4!==e.block_props.fourth_last_digit&&6!==e.block_props.fourth_last_digit||(t.mouth="sad"),t.show_teeth=t.mouth===m&&e.block_props.has_0,t.show_top_teeth=t.show_teeth&&e.block_props.has_0,t.has_golden_tooth=t.show_teeth&&e.block_props.has_1337,t.show_bottom_teeth=t.mouth===m&&e.block_props.has_00,t.has_dental_brace=t.show_top_teeth&&e.block_props.is_multiple_of_13,t.has_body_pattern=e.block_props.is_multiple_of_3;let c=Object.keys(w).length-1;t.pattern_shape=!!t.has_body_pattern&&Object.keys(w)[Math.floor(i(e.block_props.third_last_digit,0,9,0,c))];let s=x.length-1;t.pattern_line_width=t.has_body_pattern?x[Math.floor(i(e.block_props.third_last_digit,0,9,0,s))]:0,t.pattern_line_height=t.has_body_pattern?x[Math.floor(i(e.block_props.second_last_digit,0,9,0,s))]:0,t.body_bg_color=t.pattern_shape===w.bitcoin_logo?"white":Object.keys(I)[e.block_props.third_last_digit];let a=Object.keys(C).length-1,l=parseInt(`${e.block_props.first_digit}${e.block_props.second_last_digit}`,10);t.body_color=Object.keys(C)[Math.floor(i(l,0,99,0,a))],t.pattern_stroke_width=10*e.block_props.first_digit*t.size/1e3,t.two_directions_pattern=t.has_body_pattern?e.block_props.second_last_digit>6:0,t.pattern_angle=t.has_body_pattern?((t,e)=>{switch(t){case w.circle:return e.last_digit>5?45:0;case w.line:return e.last_digit<2?-45:e.last_digit<5?0:e.last_digit<8?45:90;case w.rect:return 45;default:return 0}})(t.pattern_shape,e.block_props):0,t.has_rainbow_flag=!!t.has_body_pattern&&e.block_props.has_69,t.has_buttons=t.sub_type===b&&e.block_props.has_69,t.has_boobs=t.sub_type===g&&e.block_props.first_digit>4,t.has_cleavage=t.sub_type===g&&e.block_props.second_last_digit<6,t.has_crop_top=t.sub_type===g&&e.block_props.third_last_digit>5,t.has_collar=!t.has_cleavage&&e.block_props.third_last_digit<2,t.has_big_bitcoin_logo=!(t.has_body_pattern||t.has_buttons||t.has_collar||t.sub_type!==b)&&e.block_props.third_last_digit<3,t.has_natnerds_logo=!(t.has_body_pattern||t.has_buttons||t.has_cleavage||t.has_big_bitcoin_logo||t.has_boobs)&&e.block_props.last_digit>4,t.short_sleeves=e.block_props.first_digit>4,t.has_beard=t.sub_type===b&&B(e.block_props.fourth_last_digit),t.rosy_cheeks=t.sub_type===g&&t.mouth===A&&"center"===e.block_props.bitmap_side,window.console&&console.dir(JSON.stringify(t,null,2)),new T(e.block,200,200,{...t,block:e.block}).render()})()})()})();
}
</script>