var TL=function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=5)}([function(t,e,i){ /*! @license DOMPurify | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.2.2/LICENSE */ t.exports=function(){"use strict";var t=Object.hasOwnProperty,e=Object.setPrototypeOf,i=Object.isFrozen,n=Object.getPrototypeOf,r=Object.getOwnPropertyDescriptor,a=Object.freeze,o=Object.seal,s=Object.create,l="undefined"!=typeof Reflect&&Reflect,h=l.apply,c=l.construct;h||(h=function(t,e,i){return t.apply(e,i)}),a||(a=function(t){return t}),o||(o=function(t){return t}),c||(c=function(t,e){return new(Function.prototype.bind.apply(t,[null].concat(function(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e1?i-1:0),r=1;r/gm),q=o(/^data-[\-\w.\u00B7-\uFFFF]/),F=o(/^aria-[\-\w]+$/),H=o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$=o(/^(?:\w+script|data):/i),B=o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function U(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:Z(),i=function(e){return t(e)};if(i.version="2.2.7",i.removed=[],!e||!e.document||9!==e.document.nodeType)return i.isSupported=!1,i;var n=e.document,r=e.document,o=e.DocumentFragment,s=e.HTMLTemplateElement,l=e.Node,h=e.Element,c=e.NodeFilter,u=e.NamedNodeMap,x=void 0===u?e.NamedNodeMap||e.MozNamedAttrMap:u,Y=e.Text,V=e.Comment,J=e.DOMParser,X=e.trustedTypes,K=h.prototype,Q=M(K,"cloneNode"),tt=M(K,"nextSibling"),et=M(K,"childNodes"),it=M(K,"parentNode");if("function"==typeof s){var nt=r.createElement("template");nt.content&&nt.content.ownerDocument&&(r=nt.content.ownerDocument)}var rt=G(X,n),at=rt&&Rt?rt.createHTML(""):"",ot=r,st=ot.implementation,lt=ot.createNodeIterator,ht=ot.getElementsByTagName,ct=ot.createDocumentFragment,ut=n.importNode,dt={};try{dt=T(r).documentMode?r.documentMode:{}}catch(t){}var ft={};i.isSupported="function"==typeof it&&st&&void 0!==st.createHTMLDocument&&9!==dt;var pt=R,_t=P,mt=q,gt=F,vt=$,yt=B,wt=H,bt=null,xt=k({},[].concat(U(E),U(L),U(S),U(A),U(C))),kt=null,Tt=k({},[].concat(U(N),U(I),U(O),U(z))),Mt=null,Et=null,Lt=!0,St=!0,Dt=!1,At=!1,jt=!1,Ct=!1,Nt=!1,It=!1,Ot=!1,zt=!0,Rt=!1,Pt=!0,qt=!0,Ft=!1,Ht={},$t=k({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Bt=null,Wt=k({},["audio","video","img","source","image","track"]),Ut=null,Zt=k({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Gt=null,Yt=r.createElement("form"),Vt=function(t){Gt&&Gt===t||(t&&"object"===(void 0===t?"undefined":W(t))||(t={}),t=T(t),bt="ALLOWED_TAGS"in t?k({},t.ALLOWED_TAGS):xt,kt="ALLOWED_ATTR"in t?k({},t.ALLOWED_ATTR):Tt,Ut="ADD_URI_SAFE_ATTR"in t?k(T(Zt),t.ADD_URI_SAFE_ATTR):Zt,Bt="ADD_DATA_URI_TAGS"in t?k(T(Wt),t.ADD_DATA_URI_TAGS):Wt,Mt="FORBID_TAGS"in t?k({},t.FORBID_TAGS):{},Et="FORBID_ATTR"in t?k({},t.FORBID_ATTR):{},Ht="USE_PROFILES"in t&&t.USE_PROFILES,Lt=!1!==t.ALLOW_ARIA_ATTR,St=!1!==t.ALLOW_DATA_ATTR,Dt=t.ALLOW_UNKNOWN_PROTOCOLS||!1,At=t.SAFE_FOR_TEMPLATES||!1,jt=t.WHOLE_DOCUMENT||!1,It=t.RETURN_DOM||!1,Ot=t.RETURN_DOM_FRAGMENT||!1,zt=!1!==t.RETURN_DOM_IMPORT,Rt=t.RETURN_TRUSTED_TYPE||!1,Nt=t.FORCE_BODY||!1,Pt=!1!==t.SANITIZE_DOM,qt=!1!==t.KEEP_CONTENT,Ft=t.IN_PLACE||!1,wt=t.ALLOWED_URI_REGEXP||wt,At&&(St=!1),Ot&&(It=!0),Ht&&(bt=k({},[].concat(U(C))),kt=[],!0===Ht.html&&(k(bt,E),k(kt,N)),!0===Ht.svg&&(k(bt,L),k(kt,I),k(kt,z)),!0===Ht.svgFilters&&(k(bt,S),k(kt,I),k(kt,z)),!0===Ht.mathMl&&(k(bt,A),k(kt,O),k(kt,z))),t.ADD_TAGS&&(bt===xt&&(bt=T(bt)),k(bt,t.ADD_TAGS)),t.ADD_ATTR&&(kt===Tt&&(kt=T(kt)),k(kt,t.ADD_ATTR)),t.ADD_URI_SAFE_ATTR&&k(Ut,t.ADD_URI_SAFE_ATTR),qt&&(bt["#text"]=!0),jt&&k(bt,["html","head","body"]),bt.table&&(k(bt,["tbody"]),delete Mt.tbody),a&&a(t),Gt=t)},Jt=k({},["mi","mo","mn","ms","mtext"]),Xt=k({},["foreignobject","desc","title","annotation-xml"]),Kt=k({},L);k(Kt,S),k(Kt,D);var Qt=k({},A);k(Qt,j);var te="http://www.w3.org/1998/Math/MathML",ee="http://www.w3.org/2000/svg",ie="http://www.w3.org/1999/xhtml",ne=function(t){var e=it(t);e&&e.tagName||(e={namespaceURI:ie,tagName:"template"});var i=_(t.tagName),n=_(e.tagName);if(t.namespaceURI===ee)return e.namespaceURI===ie?"svg"===i:e.namespaceURI===te?"svg"===i&&("annotation-xml"===n||Jt[n]):Boolean(Kt[i]);if(t.namespaceURI===te)return e.namespaceURI===ie?"math"===i:e.namespaceURI===ee?"math"===i&&Xt[n]:Boolean(Qt[i]);if(t.namespaceURI===ie){if(e.namespaceURI===ee&&!Xt[n])return!1;if(e.namespaceURI===te&&!Jt[n])return!1;var r=k({},["title","style","font","a","script"]);return!Qt[i]&&(r[i]||!Kt[i])}return!1},re=function(t){p(i.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){try{t.outerHTML=at}catch(e){t.remove()}}},ae=function(t,e){try{p(i.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){p(i.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!kt[t])if(It||Ot)try{re(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},oe=function(t){var e=void 0,i=void 0;if(Nt)t=""+t;else{var n=m(t,/^[\r\n\t ]+/);i=n&&n[0]}var a=rt?rt.createHTML(t):t;try{e=(new J).parseFromString(a,"text/html")}catch(t){}if(!e||!e.documentElement){var o=(e=st.createHTMLDocument("")).body;o.parentNode.removeChild(o.parentNode.firstElementChild),o.outerHTML=a}return t&&i&&e.body.insertBefore(r.createTextNode(i),e.body.childNodes[0]||null),ht.call(e,jt?"html":"body")[0]},se=function(t){return lt.call(t.ownerDocument||t,t,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,(function(){return c.FILTER_ACCEPT}),!1)},le=function(t){return!(t instanceof Y||t instanceof V||"string"==typeof t.nodeName&&"string"==typeof t.textContent&&"function"==typeof t.removeChild&&t.attributes instanceof x&&"function"==typeof t.removeAttribute&&"function"==typeof t.setAttribute&&"string"==typeof t.namespaceURI&&"function"==typeof t.insertBefore)},he=function(t){return"object"===(void 0===l?"undefined":W(l))?t instanceof l:t&&"object"===(void 0===t?"undefined":W(t))&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},ce=function(t,e,n){ft[t]&&d(ft[t],(function(t){t.call(i,e,n,Gt)}))},ue=function(t){var e=void 0;if(ce("beforeSanitizeElements",t,null),le(t))return re(t),!0;if(m(t.nodeName,/[\u0080-\uFFFF]/))return re(t),!0;var n=_(t.nodeName);if(ce("uponSanitizeElement",t,{tagName:n,allowedTags:bt}),!he(t.firstElementChild)&&(!he(t.content)||!he(t.content.firstElementChild))&&w(/<[/\w]/g,t.innerHTML)&&w(/<[/\w]/g,t.textContent))return re(t),!0;if(!bt[n]||Mt[n]){if(qt&&!$t[n]){var r=it(t),a=et(t);if(a&&r)for(var o=a.length-1;o>=0;--o)r.insertBefore(Q(a[o],!0),tt(t))}return re(t),!0}return t instanceof h&&!ne(t)?(re(t),!0):"noscript"!==n&&"noembed"!==n||!w(/<\/no(script|embed)/i,t.innerHTML)?(At&&3===t.nodeType&&(e=t.textContent,e=g(e,pt," "),e=g(e,_t," "),t.textContent!==e&&(p(i.removed,{element:t.cloneNode()}),t.textContent=e)),ce("afterSanitizeElements",t,null),!1):(re(t),!0)},de=function(t,e,i){if(Pt&&("id"===e||"name"===e)&&(i in r||i in Yt))return!1;if(St&&w(mt,e));else if(Lt&&w(gt,e));else{if(!kt[e]||Et[e])return!1;if(Ut[e]);else if(w(wt,g(i,yt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==v(i,"data:")||!Bt[t])if(Dt&&!w(vt,g(i,yt,"")));else if(i)return!1}return!0},fe=function(t){var e=void 0,n=void 0,r=void 0,a=void 0;ce("beforeSanitizeAttributes",t,null);var o=t.attributes;if(o){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:kt};for(a=o.length;a--;){var l=e=o[a],h=l.name,c=l.namespaceURI;if(n=y(e.value),r=_(h),s.attrName=r,s.attrValue=n,s.keepAttr=!0,s.forceKeepAttr=void 0,ce("uponSanitizeAttribute",t,s),n=s.attrValue,!s.forceKeepAttr&&(ae(h,t),s.keepAttr))if(w(/\/>/i,n))ae(h,t);else{At&&(n=g(n,pt," "),n=g(n,_t," "));var u=t.nodeName.toLowerCase();if(de(u,r,n))try{c?t.setAttributeNS(c,h,n):t.setAttribute(h,n),f(i.removed)}catch(t){}}}ce("afterSanitizeAttributes",t,null)}},pe=function t(e){var i=void 0,n=se(e);for(ce("beforeSanitizeShadowDOM",e,null);i=n.nextNode();)ce("uponSanitizeShadowNode",i,null),ue(i)||(i.content instanceof o&&t(i.content),fe(i));ce("afterSanitizeShadowDOM",e,null)};return i.sanitize=function(t,r){var a=void 0,s=void 0,h=void 0,c=void 0,u=void 0;if(t||(t="\x3c!--\x3e"),"string"!=typeof t&&!he(t)){if("function"!=typeof t.toString)throw b("toString is not a function");if("string"!=typeof(t=t.toString()))throw b("dirty is not a string, aborting")}if(!i.isSupported){if("object"===W(e.toStaticHTML)||"function"==typeof e.toStaticHTML){if("string"==typeof t)return e.toStaticHTML(t);if(he(t))return e.toStaticHTML(t.outerHTML)}return t}if(Ct||Vt(r),i.removed=[],"string"==typeof t&&(Ft=!1),Ft);else if(t instanceof l)1===(s=(a=oe("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?a=s:a.appendChild(s);else{if(!It&&!At&&!jt&&-1===t.indexOf("<"))return rt&&Rt?rt.createHTML(t):t;if(!(a=oe(t)))return It?null:at}a&&Nt&&re(a.firstChild);for(var d=se(Ft?t:a);h=d.nextNode();)3===h.nodeType&&h===c||ue(h)||(h.content instanceof o&&pe(h.content),fe(h),c=h);if(c=null,Ft)return t;if(It){if(Ot)for(u=ct.call(a.ownerDocument);a.firstChild;)u.appendChild(a.firstChild);else u=a;return zt&&(u=ut.call(n,u,!0)),u}var f=jt?a.outerHTML:a.innerHTML;return At&&(f=g(f,pt," "),f=g(f,_t," ")),rt&&Rt?rt.createHTML(f):f},i.setConfig=function(t){Vt(t),Ct=!0},i.clearConfig=function(){Gt=null,Ct=!1},i.isValidAttribute=function(t,e,i){Gt||Vt({});var n=_(t),r=_(e);return de(n,r,i)},i.addHook=function(t,e){"function"==typeof e&&(ft[t]=ft[t]||[],p(ft[t],e))},i.removeHook=function(t){ft[t]&&f(ft[t])},i.removeHooks=function(t){ft[t]&&(ft[t]=[])},i.removeAllHooks=function(){ft={}},i}()}()},function(t,e,i){},function(t,e,i){(function(t,n){var r; /** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */(function(){var a="Expected a function",o="__lodash_placeholder__",s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],l="[object Arguments]",h="[object Array]",c="[object Boolean]",u="[object Date]",d="[object Error]",f="[object Function]",p="[object GeneratorFunction]",_="[object Map]",m="[object Number]",g="[object Object]",v="[object RegExp]",y="[object Set]",w="[object String]",b="[object Symbol]",x="[object WeakMap]",k="[object ArrayBuffer]",T="[object DataView]",M="[object Float32Array]",E="[object Float64Array]",L="[object Int8Array]",S="[object Int16Array]",D="[object Int32Array]",A="[object Uint8Array]",j="[object Uint16Array]",C="[object Uint32Array]",N=/\b__p \+= '';/g,I=/\b(__p \+=) '' \+/g,O=/(__e\(.*?\)|\b__t\)) \+\n'';/g,z=/&(?:amp|lt|gt|quot|#39);/g,R=/[&<>"']/g,P=RegExp(z.source),q=RegExp(R.source),F=/<%-([\s\S]+?)%>/g,H=/<%([\s\S]+?)%>/g,$=/<%=([\s\S]+?)%>/g,B=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,W=/^\w*$/,U=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Z=/[\\^$.*+?()[\]{}|]/g,G=RegExp(Z.source),Y=/^\s+/,V=/\s/,J=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,X=/\{\n\/\* \[wrapped with (.+)\] \*/,K=/,? & /,Q=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tt=/[()=,{}\[\]\/\s]/,et=/\\(\\)?/g,it=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,nt=/\w*$/,rt=/^[-+]0x[0-9a-f]+$/i,at=/^0b[01]+$/i,ot=/^\[object .+?Constructor\]$/,st=/^0o[0-7]+$/i,lt=/^(?:0|[1-9]\d*)$/,ht=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ct=/($^)/,ut=/['\n\r\u2028\u2029\\]/g,dt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ft="\\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",pt="[\\ud800-\\udfff]",_t="["+ft+"]",mt="["+dt+"]",gt="\\d+",vt="[\\u2700-\\u27bf]",yt="[a-z\\xdf-\\xf6\\xf8-\\xff]",wt="[^\\ud800-\\udfff"+ft+gt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",bt="\\ud83c[\\udffb-\\udfff]",xt="[^\\ud800-\\udfff]",kt="(?:\\ud83c[\\udde6-\\uddff]){2}",Tt="[\\ud800-\\udbff][\\udc00-\\udfff]",Mt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Et="(?:"+yt+"|"+wt+")",Lt="(?:"+Mt+"|"+wt+")",St="(?:"+mt+"|"+bt+")"+"?",Dt="[\\ufe0e\\ufe0f]?"+St+("(?:\\u200d(?:"+[xt,kt,Tt].join("|")+")[\\ufe0e\\ufe0f]?"+St+")*"),At="(?:"+[vt,kt,Tt].join("|")+")"+Dt,jt="(?:"+[xt+mt+"?",mt,kt,Tt,pt].join("|")+")",Ct=RegExp("['’]","g"),Nt=RegExp(mt,"g"),It=RegExp(bt+"(?="+bt+")|"+jt+Dt,"g"),Ot=RegExp([Mt+"?"+yt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[_t,Mt,"$"].join("|")+")",Lt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[_t,Mt+Et,"$"].join("|")+")",Mt+"?"+Et+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Mt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",gt,At].join("|"),"g"),zt=RegExp("[\\u200d\\ud800-\\udfff"+dt+"\\ufe0e\\ufe0f]"),Rt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Pt=["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"],qt=-1,Ft={};Ft[M]=Ft[E]=Ft[L]=Ft[S]=Ft[D]=Ft[A]=Ft["[object Uint8ClampedArray]"]=Ft[j]=Ft[C]=!0,Ft[l]=Ft[h]=Ft[k]=Ft[c]=Ft[T]=Ft[u]=Ft[d]=Ft[f]=Ft[_]=Ft[m]=Ft[g]=Ft[v]=Ft[y]=Ft[w]=Ft[x]=!1;var Ht={};Ht[l]=Ht[h]=Ht[k]=Ht[T]=Ht[c]=Ht[u]=Ht[M]=Ht[E]=Ht[L]=Ht[S]=Ht[D]=Ht[_]=Ht[m]=Ht[g]=Ht[v]=Ht[y]=Ht[w]=Ht[b]=Ht[A]=Ht["[object Uint8ClampedArray]"]=Ht[j]=Ht[C]=!0,Ht[d]=Ht[f]=Ht[x]=!1;var $t={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Bt=parseFloat,Wt=parseInt,Ut="object"==typeof t&&t&&t.Object===Object&&t,Zt="object"==typeof self&&self&&self.Object===Object&&self,Gt=Ut||Zt||Function("return this")(),Yt=e&&!e.nodeType&&e,Vt=Yt&&"object"==typeof n&&n&&!n.nodeType&&n,Jt=Vt&&Vt.exports===Yt,Xt=Jt&&Ut.process,Kt=function(){try{var t=Vt&&Vt.require&&Vt.require("util").types;return t||Xt&&Xt.binding&&Xt.binding("util")}catch(t){}}(),Qt=Kt&&Kt.isArrayBuffer,te=Kt&&Kt.isDate,ee=Kt&&Kt.isMap,ie=Kt&&Kt.isRegExp,ne=Kt&&Kt.isSet,re=Kt&&Kt.isTypedArray;function ae(t,e,i){switch(i.length){case 0:return t.call(e);case 1:return t.call(e,i[0]);case 2:return t.call(e,i[0],i[1]);case 3:return t.call(e,i[0],i[1],i[2])}return t.apply(e,i)}function oe(t,e,i,n){for(var r=-1,a=null==t?0:t.length;++r-1}function de(t,e,i){for(var n=-1,r=null==t?0:t.length;++n-1;);return i}function Oe(t,e){for(var i=t.length;i--&&be(e,t[i],0)>-1;);return i}function ze(t,e){for(var i=t.length,n=0;i--;)t[i]===e&&++n;return n}var Re=Ee({"À":"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"}),Pe=Ee({"&":"&","<":"<",">":">",'"':""","'":"'"});function qe(t){return"\\"+$t[t]}function Fe(t){return zt.test(t)}function He(t){var e=-1,i=Array(t.size);return t.forEach((function(t,n){i[++e]=[n,t]})),i}function $e(t,e){return function(i){return t(e(i))}}function Be(t,e){for(var i=-1,n=t.length,r=0,a=[];++i",""":'"',"'":"'"});var Je=function t(e){var i,n=(e=null==e?Gt:Je.defaults(Gt.Object(),e,Je.pick(Gt,Pt))).Array,r=e.Date,V=e.Error,dt=e.Function,ft=e.Math,pt=e.Object,_t=e.RegExp,mt=e.String,gt=e.TypeError,vt=n.prototype,yt=dt.prototype,wt=pt.prototype,bt=e["__core-js_shared__"],xt=yt.toString,kt=wt.hasOwnProperty,Tt=0,Mt=(i=/[^.]+$/.exec(bt&&bt.keys&&bt.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"",Et=wt.toString,Lt=xt.call(pt),St=Gt._,Dt=_t("^"+xt.call(kt).replace(Z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),At=Jt?e.Buffer:void 0,jt=e.Symbol,It=e.Uint8Array,zt=At?At.allocUnsafe:void 0,$t=$e(pt.getPrototypeOf,pt),Ut=pt.create,Zt=wt.propertyIsEnumerable,Yt=vt.splice,Vt=jt?jt.isConcatSpreadable:void 0,Xt=jt?jt.iterator:void 0,Kt=jt?jt.toStringTag:void 0,ve=function(){try{var t=ta(pt,"defineProperty");return t({},"",{}),t}catch(t){}}(),Ee=e.clearTimeout!==Gt.clearTimeout&&e.clearTimeout,Xe=r&&r.now!==Gt.Date.now&&r.now,Ke=e.setTimeout!==Gt.setTimeout&&e.setTimeout,Qe=ft.ceil,ti=ft.floor,ei=pt.getOwnPropertySymbols,ii=At?At.isBuffer:void 0,ni=e.isFinite,ri=vt.join,ai=$e(pt.keys,pt),oi=ft.max,si=ft.min,li=r.now,hi=e.parseInt,ci=ft.random,ui=vt.reverse,di=ta(e,"DataView"),fi=ta(e,"Map"),pi=ta(e,"Promise"),_i=ta(e,"Set"),mi=ta(e,"WeakMap"),gi=ta(pt,"create"),vi=mi&&new mi,yi={},wi=La(di),bi=La(fi),xi=La(pi),ki=La(_i),Ti=La(mi),Mi=jt?jt.prototype:void 0,Ei=Mi?Mi.valueOf:void 0,Li=Mi?Mi.toString:void 0;function Si(t){if(Uo(t)&&!Io(t)&&!(t instanceof Ci)){if(t instanceof ji)return t;if(kt.call(t,"__wrapped__"))return Sa(t)}return new ji(t)}var Di=function(){function t(){}return function(e){if(!Wo(e))return{};if(Ut)return Ut(e);t.prototype=e;var i=new t;return t.prototype=void 0,i}}();function Ai(){}function ji(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}function Ci(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Ni(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function Ji(t,e,i,n,r,a){var o,s=1&e,h=2&e,d=4&e;if(i&&(o=r?i(t,n,r,a):i(t)),void 0!==o)return o;if(!Wo(t))return t;var x=Io(t);if(x){if(o=function(t){var e=t.length,i=new t.constructor(e);e&&"string"==typeof t[0]&&kt.call(t,"index")&&(i.index=t.index,i.input=t.input);return i}(t),!s)return vr(t,o)}else{var N=na(t),I=N==f||N==p;if(Po(t))return dr(t,s);if(N==g||N==l||I&&!r){if(o=h||I?{}:aa(t),!s)return h?function(t,e){return yr(t,ia(t),e)}(t,function(t,e){return t&&yr(e,xs(e),t)}(o,t)):function(t,e){return yr(t,ea(t),e)}(t,Zi(o,t))}else{if(!Ht[N])return r?t:{};o=function(t,e,i){var n=t.constructor;switch(e){case k:return fr(t);case c:case u:return new n(+t);case T:return function(t,e){var i=e?fr(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.byteLength)}(t,i);case M:case E:case L:case S:case D:case A:case"[object Uint8ClampedArray]":case j:case C:return pr(t,i);case _:return new n;case m:case w:return new n(t);case v:return function(t){var e=new t.constructor(t.source,nt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case y:return new n;case b:return r=t,Ei?pt(Ei.call(r)):{}}var r}(t,N,s)}}a||(a=new Ri);var O=a.get(t);if(O)return O;a.set(t,o),Jo(t)?t.forEach((function(n){o.add(Ji(n,e,i,n,t,a))})):Zo(t)&&t.forEach((function(n,r){o.set(r,Ji(n,e,i,r,t,a))}));var z=x?void 0:(d?h?Gr:Zr:h?xs:bs)(t);return se(z||t,(function(n,r){z&&(n=t[r=n]),Bi(o,r,Ji(n,e,i,r,t,a))})),o}function Xi(t,e,i){var n=i.length;if(null==t)return!n;for(t=pt(t);n--;){var r=i[n],a=e[r],o=t[r];if(void 0===o&&!(r in t)||!a(o))return!1}return!0}function Ki(t,e,i){if("function"!=typeof t)throw new gt(a);return wa((function(){t.apply(void 0,i)}),e)}function Qi(t,e,i,n){var r=-1,a=ue,o=!0,s=t.length,l=[],h=e.length;if(!s)return l;i&&(e=fe(e,je(i))),n?(a=de,o=!1):e.length>=200&&(a=Ne,o=!1,e=new zi(e));t:for(;++r-1},Ii.prototype.set=function(t,e){var i=this.__data__,n=Wi(i,t);return n<0?(++this.size,i.push([t,e])):i[n][1]=e,this},Oi.prototype.clear=function(){this.size=0,this.__data__={hash:new Ni,map:new(fi||Ii),string:new Ni}},Oi.prototype.delete=function(t){var e=Kr(this,t).delete(t);return this.size-=e?1:0,e},Oi.prototype.get=function(t){return Kr(this,t).get(t)},Oi.prototype.has=function(t){return Kr(this,t).has(t)},Oi.prototype.set=function(t,e){var i=Kr(this,t),n=i.size;return i.set(t,e),this.size+=i.size==n?0:1,this},zi.prototype.add=zi.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},zi.prototype.has=function(t){return this.__data__.has(t)},Ri.prototype.clear=function(){this.__data__=new Ii,this.size=0},Ri.prototype.delete=function(t){var e=this.__data__,i=e.delete(t);return this.size=e.size,i},Ri.prototype.get=function(t){return this.__data__.get(t)},Ri.prototype.has=function(t){return this.__data__.has(t)},Ri.prototype.set=function(t,e){var i=this.__data__;if(i instanceof Ii){var n=i.__data__;if(!fi||n.length<199)return n.push([t,e]),this.size=++i.size,this;i=this.__data__=new Oi(n)}return i.set(t,e),this.size=i.size,this};var tn=xr(hn),en=xr(cn,!0);function nn(t,e){var i=!0;return tn(t,(function(t,n,r){return i=!!e(t,n,r)})),i}function rn(t,e,i){for(var n=-1,r=t.length;++n0&&i(s)?e>1?on(s,e-1,i,n,r):pe(r,s):n||(r[r.length]=s)}return r}var sn=kr(),ln=kr(!0);function hn(t,e){return t&&sn(t,e,bs)}function cn(t,e){return t&&ln(t,e,bs)}function un(t,e){return ce(e,(function(e){return Ho(t[e])}))}function dn(t,e){for(var i=0,n=(e=lr(e,t)).length;null!=t&&ie}function mn(t,e){return null!=t&&kt.call(t,e)}function gn(t,e){return null!=t&&e in pt(t)}function vn(t,e,i){for(var r=i?de:ue,a=t[0].length,o=t.length,s=o,l=n(o),h=1/0,c=[];s--;){var u=t[s];s&&e&&(u=fe(u,je(e))),h=si(u.length,h),l[s]=!i&&(e||a>=120&&u.length>=120)?new zi(s&&u):void 0}u=t[0];var d=-1,f=l[0];t:for(;++d=s)return l;var h=i[n];return l*("desc"==h?-1:1)}}return t.index-e.index}(t,e,i)}))}function In(t,e,i){for(var n=-1,r=e.length,a={};++n-1;)s!==t&&Yt.call(s,l,1),Yt.call(t,l,1);return t}function zn(t,e){for(var i=t?e.length:0,n=i-1;i--;){var r=e[i];if(i==n||r!==a){var a=r;sa(r)?Yt.call(t,r,1):tr(t,r)}}return t}function Rn(t,e){return t+ti(ci()*(e-t+1))}function Pn(t,e){var i="";if(!t||e<1||e>9007199254740991)return i;do{e%2&&(i+=t),(e=ti(e/2))&&(t+=t)}while(e);return i}function qn(t,e){return ba(_a(t,e,Gs),t+"")}function Fn(t){return qi(As(t))}function Hn(t,e){var i=As(t);return Ta(i,Vi(e,0,i.length))}function $n(t,e,i,n){if(!Wo(t))return t;for(var r=-1,a=(e=lr(e,t)).length,o=a-1,s=t;null!=s&&++ra?0:a+e),(i=i>a?a:i)<0&&(i+=a),a=e>i?0:i-e>>>0,e>>>=0;for(var o=n(a);++r>>1,o=t[a];null!==o&&!Ko(o)&&(i?o<=e:o=200){var h=e?null:Pr(t);if(h)return We(h);o=!1,r=Ne,l=new zi}else l=e?[]:s;t:for(;++n=n?t:Zn(t,e,i)}var ur=Ee||function(t){return Gt.clearTimeout(t)};function dr(t,e){if(e)return t.slice();var i=t.length,n=zt?zt(i):new t.constructor(i);return t.copy(n),n}function fr(t){var e=new t.constructor(t.byteLength);return new It(e).set(new It(t)),e}function pr(t,e){var i=e?fr(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.length)}function _r(t,e){if(t!==e){var i=void 0!==t,n=null===t,r=t==t,a=Ko(t),o=void 0!==e,s=null===e,l=e==e,h=Ko(e);if(!s&&!h&&!a&&t>e||a&&o&&l&&!s&&!h||n&&o&&l||!i&&l||!r)return 1;if(!n&&!a&&!h&&t1?i[r-1]:void 0,o=r>2?i[2]:void 0;for(a=t.length>3&&"function"==typeof a?(r--,a):void 0,o&&la(i[0],i[1],o)&&(a=r<3?void 0:a,r=1),e=pt(e);++n-1?r[a?e[o]:o]:void 0}}function Sr(t){return Ur((function(e){var i=e.length,n=i,r=ji.prototype.thru;for(t&&e.reverse();n--;){var o=e[n];if("function"!=typeof o)throw new gt(a);if(r&&!s&&"wrapper"==Vr(o))var s=new ji([],!0)}for(n=s?n:i;++n1&&y.reverse(),u&&hs))return!1;var h=a.get(t),c=a.get(e);if(h&&c)return h==e&&c==t;var u=-1,d=!0,f=2&i?new zi:void 0;for(a.set(t,e),a.set(e,t);++u-1&&t%1==0&&t1?"& ":"")+e[n],e=e.join(i>2?", ":" "),t.replace(J,"{\n/* [wrapped with "+e+"] */\n")}(n,function(t,e){return se(s,(function(i){var n="_."+i[0];e&i[1]&&!ue(t,n)&&t.push(n)})),t.sort()}(function(t){var e=t.match(X);return e?e[1].split(K):[]}(n),i)))}function ka(t){var e=0,i=0;return function(){var n=li(),r=16-(n-i);if(i=n,r>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function Ta(t,e){var i=-1,n=t.length,r=n-1;for(e=void 0===e?n:e;++i1?t[e-1]:void 0;return i="function"==typeof i?(t.pop(),i):void 0,Ya(t,i)}));function eo(t){var e=Si(t);return e.__chain__=!0,e}function io(t,e){return e(t)}var no=Ur((function(t){var e=t.length,i=e?t[0]:0,n=this.__wrapped__,r=function(e){return Yi(e,t)};return!(e>1||this.__actions__.length)&&n instanceof Ci&&sa(i)?((n=n.slice(i,+i+(e?1:0))).__actions__.push({func:io,args:[r],thisArg:void 0}),new ji(n,this.__chain__).thru((function(t){return e&&!t.length&&t.push(void 0),t}))):this.thru(r)}));var ro=wr((function(t,e,i){kt.call(t,i)?++t[i]:Gi(t,i,1)}));var ao=Lr(Ca),oo=Lr(Na);function so(t,e){return(Io(t)?se:tn)(t,Xr(e,3))}function lo(t,e){return(Io(t)?le:en)(t,Xr(e,3))}var ho=wr((function(t,e,i){kt.call(t,i)?t[i].push(e):Gi(t,i,[e])}));var co=qn((function(t,e,i){var r=-1,a="function"==typeof e,o=zo(t)?n(t.length):[];return tn(t,(function(t){o[++r]=a?ae(e,t,i):yn(t,e,i)})),o})),uo=wr((function(t,e,i){Gi(t,i,e)}));function fo(t,e){return(Io(t)?fe:Sn)(t,Xr(e,3))}var po=wr((function(t,e,i){t[i?0:1].push(e)}),(function(){return[[],[]]}));var _o=qn((function(t,e){if(null==t)return[];var i=e.length;return i>1&&la(t,e[0],e[1])?e=[]:i>2&&la(e[0],e[1],e[2])&&(e=[e[0]]),Nn(t,on(e,1),[])})),mo=Xe||function(){return Gt.Date.now()};function go(t,e,i){return e=i?void 0:e,Fr(t,128,void 0,void 0,void 0,void 0,e=t&&null==e?t.length:e)}function vo(t,e){var i;if("function"!=typeof e)throw new gt(a);return t=rs(t),function(){return--t>0&&(i=e.apply(this,arguments)),t<=1&&(e=void 0),i}}var yo=qn((function(t,e,i){var n=1;if(i.length){var r=Be(i,Jr(yo));n|=32}return Fr(t,n,e,i,r)})),wo=qn((function(t,e,i){var n=3;if(i.length){var r=Be(i,Jr(wo));n|=32}return Fr(e,n,t,i,r)}));function bo(t,e,i){var n,r,o,s,l,h,c=0,u=!1,d=!1,f=!0;if("function"!=typeof t)throw new gt(a);function p(e){var i=n,a=r;return n=r=void 0,c=e,s=t.apply(a,i)}function _(t){return c=t,l=wa(g,e),u?p(t):s}function m(t){var i=t-h;return void 0===h||i>=e||i<0||d&&t-c>=o}function g(){var t=mo();if(m(t))return v(t);l=wa(g,function(t){var i=e-(t-h);return d?si(i,o-(t-c)):i}(t))}function v(t){return l=void 0,f&&n?p(t):(n=r=void 0,s)}function y(){var t=mo(),i=m(t);if(n=arguments,r=this,h=t,i){if(void 0===l)return _(h);if(d)return ur(l),l=wa(g,e),p(h)}return void 0===l&&(l=wa(g,e)),s}return e=os(e)||0,Wo(i)&&(u=!!i.leading,o=(d="maxWait"in i)?oi(os(i.maxWait)||0,e):o,f="trailing"in i?!!i.trailing:f),y.cancel=function(){void 0!==l&&ur(l),c=0,n=h=r=l=void 0},y.flush=function(){return void 0===l?s:v(mo())},y}var xo=qn((function(t,e){return Ki(t,1,e)})),ko=qn((function(t,e,i){return Ki(t,os(e)||0,i)}));function To(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new gt(a);var i=function(){var n=arguments,r=e?e.apply(this,n):n[0],a=i.cache;if(a.has(r))return a.get(r);var o=t.apply(this,n);return i.cache=a.set(r,o)||a,o};return i.cache=new(To.Cache||Oi),i}function Mo(t){if("function"!=typeof t)throw new gt(a);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)}}To.Cache=Oi;var Eo=hr((function(t,e){var i=(e=1==e.length&&Io(e[0])?fe(e[0],je(Xr())):fe(on(e,1),je(Xr()))).length;return qn((function(n){for(var r=-1,a=si(n.length,i);++r=e})),No=wn(function(){return arguments}())?wn:function(t){return Uo(t)&&kt.call(t,"callee")&&!Zt.call(t,"callee")},Io=n.isArray,Oo=Qt?je(Qt):function(t){return Uo(t)&&pn(t)==k};function zo(t){return null!=t&&Bo(t.length)&&!Ho(t)}function Ro(t){return Uo(t)&&zo(t)}var Po=ii||ol,qo=te?je(te):function(t){return Uo(t)&&pn(t)==u};function Fo(t){if(!Uo(t))return!1;var e=pn(t);return e==d||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!Yo(t)}function Ho(t){if(!Wo(t))return!1;var e=pn(t);return e==f||e==p||"[object AsyncFunction]"==e||"[object Proxy]"==e}function $o(t){return"number"==typeof t&&t==rs(t)}function Bo(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Wo(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Uo(t){return null!=t&&"object"==typeof t}var Zo=ee?je(ee):function(t){return Uo(t)&&na(t)==_};function Go(t){return"number"==typeof t||Uo(t)&&pn(t)==m}function Yo(t){if(!Uo(t)||pn(t)!=g)return!1;var e=$t(t);if(null===e)return!0;var i=kt.call(e,"constructor")&&e.constructor;return"function"==typeof i&&i instanceof i&&xt.call(i)==Lt}var Vo=ie?je(ie):function(t){return Uo(t)&&pn(t)==v};var Jo=ne?je(ne):function(t){return Uo(t)&&na(t)==y};function Xo(t){return"string"==typeof t||!Io(t)&&Uo(t)&&pn(t)==w}function Ko(t){return"symbol"==typeof t||Uo(t)&&pn(t)==b}var Qo=re?je(re):function(t){return Uo(t)&&Bo(t.length)&&!!Ft[pn(t)]};var ts=Or(Ln),es=Or((function(t,e){return t<=e}));function is(t){if(!t)return[];if(zo(t))return Xo(t)?Ge(t):vr(t);if(Xt&&t[Xt])return function(t){for(var e,i=[];!(e=t.next()).done;)i.push(e.value);return i}(t[Xt]());var e=na(t);return(e==_?He:e==y?We:As)(t)}function ns(t){return t?(t=os(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function rs(t){var e=ns(t),i=e%1;return e==e?i?e-i:e:0}function as(t){return t?Vi(rs(t),0,4294967295):0}function os(t){if("number"==typeof t)return t;if(Ko(t))return NaN;if(Wo(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Wo(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ae(t);var i=at.test(t);return i||st.test(t)?Wt(t.slice(2),i?2:8):rt.test(t)?NaN:+t}function ss(t){return yr(t,xs(t))}function ls(t){return null==t?"":Kn(t)}var hs=br((function(t,e){if(da(e)||zo(e))yr(e,bs(e),t);else for(var i in e)kt.call(e,i)&&Bi(t,i,e[i])})),cs=br((function(t,e){yr(e,xs(e),t)})),us=br((function(t,e,i,n){yr(e,xs(e),t,n)})),ds=br((function(t,e,i,n){yr(e,bs(e),t,n)})),fs=Ur(Yi);var ps=qn((function(t,e){t=pt(t);var i=-1,n=e.length,r=n>2?e[2]:void 0;for(r&&la(e[0],e[1],r)&&(n=1);++i1),e})),yr(t,Gr(t),i),n&&(i=Ji(i,7,Br));for(var r=e.length;r--;)tr(i,e[r]);return i}));var Es=Ur((function(t,e){return null==t?{}:function(t,e){return In(t,e,(function(e,i){return gs(t,i)}))}(t,e)}));function Ls(t,e){if(null==t)return{};var i=fe(Gr(t),(function(t){return[t]}));return e=Xr(e),In(t,i,(function(t,i){return e(t,i[0])}))}var Ss=qr(bs),Ds=qr(xs);function As(t){return null==t?[]:Ce(t,bs(t))}var js=Mr((function(t,e,i){return e=e.toLowerCase(),t+(i?Cs(e):e)}));function Cs(t){return Fs(ls(t).toLowerCase())}function Ns(t){return(t=ls(t))&&t.replace(ht,Re).replace(Nt,"")}var Is=Mr((function(t,e,i){return t+(i?"-":"")+e.toLowerCase()})),Os=Mr((function(t,e,i){return t+(i?" ":"")+e.toLowerCase()})),zs=Tr("toLowerCase");var Rs=Mr((function(t,e,i){return t+(i?"_":"")+e.toLowerCase()}));var Ps=Mr((function(t,e,i){return t+(i?" ":"")+Fs(e)}));var qs=Mr((function(t,e,i){return t+(i?" ":"")+e.toUpperCase()})),Fs=Tr("toUpperCase");function Hs(t,e,i){return t=ls(t),void 0===(e=i?void 0:e)?function(t){return Rt.test(t)}(t)?function(t){return t.match(Ot)||[]}(t):function(t){return t.match(Q)||[]}(t):t.match(e)||[]}var $s=qn((function(t,e){try{return ae(t,void 0,e)}catch(t){return Fo(t)?t:new V(t)}})),Bs=Ur((function(t,e){return se(e,(function(e){e=Ea(e),Gi(t,e,yo(t[e],t))})),t}));function Ws(t){return function(){return t}}var Us=Sr(),Zs=Sr(!0);function Gs(t){return t}function Ys(t){return Tn("function"==typeof t?t:Ji(t,1))}var Vs=qn((function(t,e){return function(i){return yn(i,t,e)}})),Js=qn((function(t,e){return function(i){return yn(t,i,e)}}));function Xs(t,e,i){var n=bs(e),r=un(e,n);null!=i||Wo(e)&&(r.length||!n.length)||(i=e,e=t,t=this,r=un(e,bs(e)));var a=!(Wo(i)&&"chain"in i&&!i.chain),o=Ho(t);return se(r,(function(i){var n=e[i];t[i]=n,o&&(t.prototype[i]=function(){var e=this.__chain__;if(a||e){var i=t(this.__wrapped__),r=i.__actions__=vr(this.__actions__);return r.push({func:n,args:arguments,thisArg:t}),i.__chain__=e,i}return n.apply(t,pe([this.value()],arguments))})})),t}function Ks(){}var Qs=Cr(fe),tl=Cr(he),el=Cr(ge);function il(t){return ha(t)?Me(Ea(t)):function(t){return function(e){return dn(e,t)}}(t)}var nl=Ir(),rl=Ir(!0);function al(){return[]}function ol(){return!1}var sl=jr((function(t,e){return t+e}),0),ll=Rr("ceil"),hl=jr((function(t,e){return t/e}),1),cl=Rr("floor");var ul,dl=jr((function(t,e){return t*e}),1),fl=Rr("round"),pl=jr((function(t,e){return t-e}),0);return Si.after=function(t,e){if("function"!=typeof e)throw new gt(a);return t=rs(t),function(){if(--t<1)return e.apply(this,arguments)}},Si.ary=go,Si.assign=hs,Si.assignIn=cs,Si.assignInWith=us,Si.assignWith=ds,Si.at=fs,Si.before=vo,Si.bind=yo,Si.bindAll=Bs,Si.bindKey=wo,Si.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Io(t)?t:[t]},Si.chain=eo,Si.chunk=function(t,e,i){e=(i?la(t,e,i):void 0===e)?1:oi(rs(e),0);var r=null==t?0:t.length;if(!r||e<1)return[];for(var a=0,o=0,s=n(Qe(r/e));ar?0:r+i),(n=void 0===n||n>r?r:rs(n))<0&&(n+=r),n=i>n?0:as(n);i>>0)?(t=ls(t))&&("string"==typeof e||null!=e&&!Vo(e))&&!(e=Kn(e))&&Fe(t)?cr(Ge(t),0,i):t.split(e,i):[]},Si.spread=function(t,e){if("function"!=typeof t)throw new gt(a);return e=null==e?0:oi(rs(e),0),qn((function(i){var n=i[e],r=cr(i,0,e);return n&&pe(r,n),ae(t,this,r)}))},Si.tail=function(t){var e=null==t?0:t.length;return e?Zn(t,1,e):[]},Si.take=function(t,e,i){return t&&t.length?Zn(t,0,(e=i||void 0===e?1:rs(e))<0?0:e):[]},Si.takeRight=function(t,e,i){var n=null==t?0:t.length;return n?Zn(t,(e=n-(e=i||void 0===e?1:rs(e)))<0?0:e,n):[]},Si.takeRightWhile=function(t,e){return t&&t.length?ir(t,Xr(e,3),!1,!0):[]},Si.takeWhile=function(t,e){return t&&t.length?ir(t,Xr(e,3)):[]},Si.tap=function(t,e){return e(t),t},Si.throttle=function(t,e,i){var n=!0,r=!0;if("function"!=typeof t)throw new gt(a);return Wo(i)&&(n="leading"in i?!!i.leading:n,r="trailing"in i?!!i.trailing:r),bo(t,e,{leading:n,maxWait:e,trailing:r})},Si.thru=io,Si.toArray=is,Si.toPairs=Ss,Si.toPairsIn=Ds,Si.toPath=function(t){return Io(t)?fe(t,Ea):Ko(t)?[t]:vr(Ma(ls(t)))},Si.toPlainObject=ss,Si.transform=function(t,e,i){var n=Io(t),r=n||Po(t)||Qo(t);if(e=Xr(e,4),null==i){var a=t&&t.constructor;i=r?n?new a:[]:Wo(t)&&Ho(a)?Di($t(t)):{}}return(r?se:hn)(t,(function(t,n,r){return e(i,t,n,r)})),i},Si.unary=function(t){return go(t,1)},Si.union=Wa,Si.unionBy=Ua,Si.unionWith=Za,Si.uniq=function(t){return t&&t.length?Qn(t):[]},Si.uniqBy=function(t,e){return t&&t.length?Qn(t,Xr(e,2)):[]},Si.uniqWith=function(t,e){return e="function"==typeof e?e:void 0,t&&t.length?Qn(t,void 0,e):[]},Si.unset=function(t,e){return null==t||tr(t,e)},Si.unzip=Ga,Si.unzipWith=Ya,Si.update=function(t,e,i){return null==t?t:er(t,e,sr(i))},Si.updateWith=function(t,e,i,n){return n="function"==typeof n?n:void 0,null==t?t:er(t,e,sr(i),n)},Si.values=As,Si.valuesIn=function(t){return null==t?[]:Ce(t,xs(t))},Si.without=Va,Si.words=Hs,Si.wrap=function(t,e){return Lo(sr(e),t)},Si.xor=Ja,Si.xorBy=Xa,Si.xorWith=Ka,Si.zip=Qa,Si.zipObject=function(t,e){return ar(t||[],e||[],Bi)},Si.zipObjectDeep=function(t,e){return ar(t||[],e||[],$n)},Si.zipWith=to,Si.entries=Ss,Si.entriesIn=Ds,Si.extend=cs,Si.extendWith=us,Xs(Si,Si),Si.add=sl,Si.attempt=$s,Si.camelCase=js,Si.capitalize=Cs,Si.ceil=ll,Si.clamp=function(t,e,i){return void 0===i&&(i=e,e=void 0),void 0!==i&&(i=(i=os(i))==i?i:0),void 0!==e&&(e=(e=os(e))==e?e:0),Vi(os(t),e,i)},Si.clone=function(t){return Ji(t,4)},Si.cloneDeep=function(t){return Ji(t,5)},Si.cloneDeepWith=function(t,e){return Ji(t,5,e="function"==typeof e?e:void 0)},Si.cloneWith=function(t,e){return Ji(t,4,e="function"==typeof e?e:void 0)},Si.conformsTo=function(t,e){return null==e||Xi(t,e,bs(e))},Si.deburr=Ns,Si.defaultTo=function(t,e){return null==t||t!=t?e:t},Si.divide=hl,Si.endsWith=function(t,e,i){t=ls(t),e=Kn(e);var n=t.length,r=i=void 0===i?n:Vi(rs(i),0,n);return(i-=e.length)>=0&&t.slice(i,r)==e},Si.eq=Ao,Si.escape=function(t){return(t=ls(t))&&q.test(t)?t.replace(R,Pe):t},Si.escapeRegExp=function(t){return(t=ls(t))&&G.test(t)?t.replace(Z,"\\$&"):t},Si.every=function(t,e,i){var n=Io(t)?he:nn;return i&&la(t,e,i)&&(e=void 0),n(t,Xr(e,3))},Si.find=ao,Si.findIndex=Ca,Si.findKey=function(t,e){return ye(t,Xr(e,3),hn)},Si.findLast=oo,Si.findLastIndex=Na,Si.findLastKey=function(t,e){return ye(t,Xr(e,3),cn)},Si.floor=cl,Si.forEach=so,Si.forEachRight=lo,Si.forIn=function(t,e){return null==t?t:sn(t,Xr(e,3),xs)},Si.forInRight=function(t,e){return null==t?t:ln(t,Xr(e,3),xs)},Si.forOwn=function(t,e){return t&&hn(t,Xr(e,3))},Si.forOwnRight=function(t,e){return t&&cn(t,Xr(e,3))},Si.get=ms,Si.gt=jo,Si.gte=Co,Si.has=function(t,e){return null!=t&&ra(t,e,mn)},Si.hasIn=gs,Si.head=Oa,Si.identity=Gs,Si.includes=function(t,e,i,n){t=zo(t)?t:As(t),i=i&&!n?rs(i):0;var r=t.length;return i<0&&(i=oi(r+i,0)),Xo(t)?i<=r&&t.indexOf(e,i)>-1:!!r&&be(t,e,i)>-1},Si.indexOf=function(t,e,i){var n=null==t?0:t.length;if(!n)return-1;var r=null==i?0:rs(i);return r<0&&(r=oi(n+r,0)),be(t,e,r)},Si.inRange=function(t,e,i){return e=ns(e),void 0===i?(i=e,e=0):i=ns(i),function(t,e,i){return t>=si(e,i)&&t=-9007199254740991&&t<=9007199254740991},Si.isSet=Jo,Si.isString=Xo,Si.isSymbol=Ko,Si.isTypedArray=Qo,Si.isUndefined=function(t){return void 0===t},Si.isWeakMap=function(t){return Uo(t)&&na(t)==x},Si.isWeakSet=function(t){return Uo(t)&&"[object WeakSet]"==pn(t)},Si.join=function(t,e){return null==t?"":ri.call(t,e)},Si.kebabCase=Is,Si.last=qa,Si.lastIndexOf=function(t,e,i){var n=null==t?0:t.length;if(!n)return-1;var r=n;return void 0!==i&&(r=(r=rs(i))<0?oi(n+r,0):si(r,n-1)),e==e?function(t,e,i){for(var n=i+1;n--;)if(t[n]===e)return n;return n}(t,e,r):we(t,ke,r,!0)},Si.lowerCase=Os,Si.lowerFirst=zs,Si.lt=ts,Si.lte=es,Si.max=function(t){return t&&t.length?rn(t,Gs,_n):void 0},Si.maxBy=function(t,e){return t&&t.length?rn(t,Xr(e,2),_n):void 0},Si.mean=function(t){return Te(t,Gs)},Si.meanBy=function(t,e){return Te(t,Xr(e,2))},Si.min=function(t){return t&&t.length?rn(t,Gs,Ln):void 0},Si.minBy=function(t,e){return t&&t.length?rn(t,Xr(e,2),Ln):void 0},Si.stubArray=al,Si.stubFalse=ol,Si.stubObject=function(){return{}},Si.stubString=function(){return""},Si.stubTrue=function(){return!0},Si.multiply=dl,Si.nth=function(t,e){return t&&t.length?Cn(t,rs(e)):void 0},Si.noConflict=function(){return Gt._===this&&(Gt._=St),this},Si.noop=Ks,Si.now=mo,Si.pad=function(t,e,i){t=ls(t);var n=(e=rs(e))?Ze(t):0;if(!e||n>=e)return t;var r=(e-n)/2;return Nr(ti(r),i)+t+Nr(Qe(r),i)},Si.padEnd=function(t,e,i){t=ls(t);var n=(e=rs(e))?Ze(t):0;return e&&ne){var n=t;t=e,e=n}if(i||t%1||e%1){var r=ci();return si(t+r*(e-t+Bt("1e-"+((r+"").length-1))),e)}return Rn(t,e)},Si.reduce=function(t,e,i){var n=Io(t)?_e:Le,r=arguments.length<3;return n(t,Xr(e,4),i,r,tn)},Si.reduceRight=function(t,e,i){var n=Io(t)?me:Le,r=arguments.length<3;return n(t,Xr(e,4),i,r,en)},Si.repeat=function(t,e,i){return e=(i?la(t,e,i):void 0===e)?1:rs(e),Pn(ls(t),e)},Si.replace=function(){var t=arguments,e=ls(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Si.result=function(t,e,i){var n=-1,r=(e=lr(e,t)).length;for(r||(r=1,t=void 0);++n9007199254740991)return[];var i=4294967295,n=si(t,4294967295);t-=4294967295;for(var r=De(n,e=Xr(e));++i=a)return t;var s=i-Ze(n);if(s<1)return n;var l=o?cr(o,0,s).join(""):t.slice(0,s);if(void 0===r)return l+n;if(o&&(s+=l.length-s),Vo(r)){if(t.slice(s).search(r)){var h,c=l;for(r.global||(r=_t(r.source,ls(nt.exec(r))+"g")),r.lastIndex=0;h=r.exec(c);)var u=h.index;l=l.slice(0,void 0===u?s:u)}}else if(t.indexOf(Kn(r),s)!=s){var d=l.lastIndexOf(r);d>-1&&(l=l.slice(0,d))}return l+n},Si.unescape=function(t){return(t=ls(t))&&P.test(t)?t.replace(z,Ve):t},Si.uniqueId=function(t){var e=++Tt;return ls(t)+e},Si.upperCase=qs,Si.upperFirst=Fs,Si.each=so,Si.eachRight=lo,Si.first=Oa,Xs(Si,(ul={},hn(Si,(function(t,e){kt.call(Si.prototype,e)||(ul[e]=t)})),ul),{chain:!1}),Si.VERSION="4.17.21",se(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Si[t].placeholder=Si})),se(["drop","take"],(function(t,e){Ci.prototype[t]=function(i){i=void 0===i?1:oi(rs(i),0);var n=this.__filtered__&&!e?new Ci(this):this.clone();return n.__filtered__?n.__takeCount__=si(i,n.__takeCount__):n.__views__.push({size:si(i,4294967295),type:t+(n.__dir__<0?"Right":"")}),n},Ci.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),se(["filter","map","takeWhile"],(function(t,e){var i=e+1,n=1==i||3==i;Ci.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Xr(t,3),type:i}),e.__filtered__=e.__filtered__||n,e}})),se(["head","last"],(function(t,e){var i="take"+(e?"Right":"");Ci.prototype[t]=function(){return this[i](1).value()[0]}})),se(["initial","tail"],(function(t,e){var i="drop"+(e?"":"Right");Ci.prototype[t]=function(){return this.__filtered__?new Ci(this):this[i](1)}})),Ci.prototype.compact=function(){return this.filter(Gs)},Ci.prototype.find=function(t){return this.filter(t).head()},Ci.prototype.findLast=function(t){return this.reverse().find(t)},Ci.prototype.invokeMap=qn((function(t,e){return"function"==typeof t?new Ci(this):this.map((function(i){return yn(i,t,e)}))})),Ci.prototype.reject=function(t){return this.filter(Mo(Xr(t)))},Ci.prototype.slice=function(t,e){t=rs(t);var i=this;return i.__filtered__&&(t>0||e<0)?new Ci(i):(t<0?i=i.takeRight(-t):t&&(i=i.drop(t)),void 0!==e&&(i=(e=rs(e))<0?i.dropRight(-e):i.take(e-t)),i)},Ci.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Ci.prototype.toArray=function(){return this.take(4294967295)},hn(Ci.prototype,(function(t,e){var i=/^(?:filter|find|map|reject)|While$/.test(e),n=/^(?:head|last)$/.test(e),r=Si[n?"take"+("last"==e?"Right":""):e],a=n||/^find/.test(e);r&&(Si.prototype[e]=function(){var e=this.__wrapped__,o=n?[1]:arguments,s=e instanceof Ci,l=o[0],h=s||Io(e),c=function(t){var e=r.apply(Si,pe([t],o));return n&&u?e[0]:e};h&&i&&"function"==typeof l&&1!=l.length&&(s=h=!1);var u=this.__chain__,d=!!this.__actions__.length,f=a&&!u,p=s&&!d;if(!a&&h){e=p?e:new Ci(this);var _=t.apply(e,o);return _.__actions__.push({func:io,args:[c],thisArg:void 0}),new ji(_,u)}return f&&p?t.apply(this,o):(_=this.thru(c),f?n?_.value()[0]:_.value():_)})})),se(["pop","push","shift","sort","splice","unshift"],(function(t){var e=vt[t],i=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",n=/^(?:pop|shift)$/.test(t);Si.prototype[t]=function(){var t=arguments;if(n&&!this.__chain__){var r=this.value();return e.apply(Io(r)?r:[],t)}return this[i]((function(i){return e.apply(Io(i)?i:[],t)}))}})),hn(Ci.prototype,(function(t,e){var i=Si[e];if(i){var n=i.name+"";kt.call(yi,n)||(yi[n]=[]),yi[n].push({name:e,func:i})}})),yi[Dr(void 0,2).name]=[{name:"wrapper",func:void 0}],Ci.prototype.clone=function(){var t=new Ci(this.__wrapped__);return t.__actions__=vr(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=vr(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=vr(this.__views__),t},Ci.prototype.reverse=function(){if(this.__filtered__){var t=new Ci(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Ci.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,i=Io(t),n=e<0,r=i?t.length:0,a=function(t,e,i){var n=-1,r=i.length;for(;++n=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},Si.prototype.plant=function(t){for(var e,i=this;i instanceof Ai;){var n=Sa(i);n.__index__=0,n.__values__=void 0,e?r.__wrapped__=n:e=n;var r=n;i=i.__wrapped__}return r.__wrapped__=t,e},Si.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Ci){var e=t;return this.__actions__.length&&(e=new Ci(this)),(e=e.reverse()).__actions__.push({func:io,args:[Ba],thisArg:void 0}),new ji(e,this.__chain__)}return this.thru(Ba)},Si.prototype.toJSON=Si.prototype.valueOf=Si.prototype.value=function(){return nr(this.__wrapped__,this.__actions__)},Si.prototype.first=Si.prototype.head,Xt&&(Si.prototype[Xt]=function(){return this}),Si}();Gt._=Je,void 0===(r=function(){return Je}.call(e,i,e,n))||(n.exports=r)}).call(this)}).call(this,i(3),i(4)(t))},function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,i){"use strict";i.r(e),i.d(e,"Timeline",(function(){return Xe})),i.d(e,"parseGoogleSpreadsheetURL",(function(){return te})),i.d(e,"lookupMediaType",(function(){return $e}));const r=navigator?navigator.userAgent.toLowerCase():"no-user-agent-specified",a=document?document.documentElement:null,o=!!r&&-1!==r.indexOf("phantom"),s=window&&"ActiveXObject"in window,l=(Boolean(s&&r.match(/MSIE 9/i)),s&&document&&document.addEventListener,-1!==r.indexOf("webkit")),h=(r.indexOf("android"),-1!==r.search("android [23]")),c=!!window&&void 0!==window.orientation,u=!(!navigator||!window)&&(navigator.msPointerEnabled&&navigator.msMaxTouchPoints&&!window.PointerEvent),d=navigator&&window?window.PointerEvent&&navigator.pointerEnabled&&navigator.maxTouchPoints:u,f=!!window&&window.opera,p=(r.indexOf("gecko"),-1!==r.indexOf("gecko")&&!l&&!f&&!s),_=(r.indexOf("chrome"),-1!==r.indexOf("edge/")),m=!!a&&(s&&"transition"in a.style),g=!!window&&("WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!h),v=!!a&&"MozPerspective"in a.style,y=!!a&&"OTransition"in a.style;window&&window.L_DISABLE_3D,c&&window.opera;let w=!!window&&("devicePixelRatio"in window&&window.devicePixelRatio>1);if(!w&&window&&"matchMedia"in window){let t=window.matchMedia("(min-resolution:144dpi)");w=t&&t.matches}const b=window&&!window.L_NO_TOUCH&&!o&&(d||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch);function x(t){return"string"==typeof t?document.getElementById(t):t}function T(t,e,i){var n=document.createElement(t);return n.className=e,i&&i.appendChild(n),n}function M(t){for(var e={x:0,y:0};t&&!isNaN(t.offsetLeft)&&!isNaN(t.offsetTop);)e.x+=t.offsetLeft,e.y+=t.offsetTop,t=t.offsetParent;return e}function E(t){for(var e=document.documentElement.style,i=0;i0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(t.className)})(t,e)||(t.className+=(t.className?" ":"")+e)}function S(t,e){t.className=t.className.replace(/(\S+)\s*/g,(function(t,i){return i===e?"":t})).replace(/^\s+/,"")}class D extends Error{constructor(t,e){super(),this.name="TLError",this.message=t||"error",this.message_key=this.message,this.detail=e||""}}const A={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function j(t){A[t.toLowerCase()]&&(t=A[t.toLowerCase()]);t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,i,n){return e+e+i+i+n+n}));var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null}function C(t,e){var i;for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}function N(t){for(var e=Array.prototype.slice.call(arguments,1),i=0,n=e.length;i{try{e(t)}catch(t){console&&console.log&&console.log("Error handling trace",t)}})}function z(t,e){for(t=String(t),e=e||2;t.length]*>/i,"")).replace(/<\/a>/i,""):t}function G(t){return(t=t.replace(/(<[^>]*>)+/g,"")).replace('"',"'")}function Y(t,e,i){var n=function(t,e,i){i||(i="");return e&&e.length>30&&(e=e.substring(0,30)+"…"),i+""+e+""};return t.replace(/\b(?:https?|ftp):\/\/([a-z0-9-+&@#\/%?=~_|!:,.;]*[a-z0-9-+&@#\/%=~_|])/gim,(function(t,e,i,r){if(i>0){var a=r[i-1];if('"'==a||"'"==a||"="==a)return t}return n(t,e)})).replace(/(^|[^\/>])(www\.[\S]+(\b|$))/gim,(function(t,e,i,r,a){return n("http://"+i,i,e)})).replace(/([a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+)/gim,(function(t,e,i,r){return n("mailto:"+e,e)}))}function V(t){return t.replace(/(.*)www.dropbox.com\/(.*)/,"$1dl.dropboxusercontent.com/$2")}const J=t=>{var e={w:0,h:0};return t.w>t.h&&t.h>0?(e.h=t.h,e.w=t.h):(e.w=t.w,e.h=t.w),e},X=t=>null!==t.w&&""!==t.w?Math.round(t.w/16*9):null!==t.h&&""!==t.h?Math.round(t.h/9*16):0;let K=(tt=(Q="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ").length,{encode:function(t){if("number"!=typeof t||t!==parseInt(t))throw'"encode" only accepts integers.';for(var e="";t;){var i=t%tt;t=Math.floor(t/tt),e=Q[i].toString()+e}return e},decode:function(t){if("string"!=typeof t)throw'"decode" only accepts strings.';for(var e=0;t;){var i=Q.indexOf(t[0]);if(i<0)throw'"decode" can\'t find "'+t[0]+'" in the alphabet: "'+Q+'"';var n=t.length-1;e+=i*Math.pow(tt,n),t=t.substring(1)}return e}});var Q,tt;function et(t){if("string"==typeof t){let n=t.match(/^\s*(\d+h)?(\d+m)?(\d+s)?\s*/i);if(n){var e=parseInt(n[1])||0,i=parseInt(n[2])||0;return(parseInt(n[3])||0)+60*i+60*e*60}}else if("number"==typeof t)return t;return 0}function it(t){return(new DOMParser).parseFromString(t,"text/html").body.textContent||""}const nt=[.42,0,1,1];function rt(t){}function at(t){return new rt(nt).get(t)}function ot(t){return 1==t?1:1-Math.pow(2,-10*t)}function st(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}let lt=function(){};lt.extend=function(t){var e=function(){this.initialize&&this.initialize.apply(this,arguments)},i=function(){};i.prototype=this.prototype;var n=new i;for(var r in n.constructor=e,e.prototype=n,e.superclass=this.prototype,this)this.hasOwnProperty(r)&&"prototype"!==r&&"superclass"!==r&&(e[r]=this[r]);return t.statics&&(N(e,t.statics),delete t.statics),t.includes&&(N.apply(null,[n].concat(t.includes)),delete t.includes),t.options&&n.options&&(t.options=N({},n.options,t.options)),N(n,t),e.extend=lt.extend,e.include=function(t){N(this.prototype,t)},e};class ht{on(t,e,i){if(!e)throw new D("No callback function provided");var n=this._tl_events=this._tl_events||{};return n[t]=n[t]||[],n[t].push({action:e,context:i||this}),this}addEventListener(t,e,i){return this.on(t,e,i)}hasEventListeners(t){var e="_tl_events";return e in this&&t in this[e]&&this[e][t].length>0}removeEventListener(t,e,i){if(!this.hasEventListeners(t))return this;for(var n=0,r=this._tl_events,a=r[t].length;n1e12&&(t=r()),o&&(t=r()),e=i;e--;)y[e](t);y.length&&v(w)}function b(t){var e,i=function(t,e,i){if(Array.prototype.indexOf)return t.indexOf(e);for(i=0;i=0&&(e=y.slice(i+1),y.length=i,y=y.concat(e))}function x(t,e){var i,n={};return(i=t.match(c))&&(n.rotate=j(i[1],e?e.rotate:null)),(i=t.match(u))&&(n.scale=j(i[1],e?e.scale:null)),(i=t.match(d))&&(n.skewx=j(i[1],e?e.skewx:null),n.skewy=j(i[3],e?e.skewy:null)),(i=t.match(f))&&(n.translatex=j(i[1],e?e.translatex:null),n.translatey=j(i[3],e?e.translatey:null)),n}function k(t){var e="";return"rotate"in t&&(e+="rotate("+t.rotate+"deg) "),"scale"in t&&(e+="scale("+t.scale+") "),"translatex"in t&&(e+="translate("+t.translatex+"px,"+t.translatey+"px) "),"skewx"in t&&(e+="skew("+t.skewx+"deg,"+t.skewy+"deg)"),e}function T(t){var e,i,n,r=t.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);return(r?(e=r[1],i=r[2],n=r[3],"#"+(1<<24|e<<16|i<<8|n).toString(16).slice(1)):t).replace(/#(\w)(\w)(\w)$/,"#$1$1$2$2$3$3")}function M(t){return t.replace(/-(.)/g,(function(t,e){return e.toUpperCase()}))}function E(t){return"function"==typeof t}function L(t){return Math.sin(t*Math.PI/2)}function S(t,e,i,n,a,o){n=E(n)?n:C.easings[n]||L;var s,l=t||1e3,h=this,c=o-a,u=r(),d=0,f=0;return s=function t(r){var s=r-u;if(s>l||d)return o=isFinite(o)?o:1,d?f&&e(o):e(o),b(t),i&&i.apply(h);isFinite(o)?e(c*n(s/l)+a):e(n(s/l))},1===y.push(s)&&v(w),{stop:function(t){d=1,f=t,t||(i=null)}}}function D(t,e){var i,n,r=t.length,a=[];for(i=0;i15?15:r<0?0:r,s[n]=r.toString(16);return"#"+s.join("")}(t,i[a][r],n[a][r]):(o=Math.round(1e3*((n[a][r]-i[a][r])*t+i[a][r]))/1e3,r in p||(o+=e[a][r]||"px"),o)}function j(t,e,i,n,r){return(i=l.exec(t))?(r=parseFloat(i[2]))&&e+("+"==i[1]?1:-1)*r:parseFloat(t)}function C(t,e){var i,n,r,a=t?a=isFinite(t.length)?t:[t]:[],o=e.complete,l=e.duration,c=e.easing,u=e.bezier,d=[],f=[],p=[],v=[];for(u&&(n=e.left,r=e.top,delete e.right,delete e.bottom,delete e.left,delete e.top),i=a.length;i--;){if(d[i]={},f[i]={},p[i]={},u){var y=g(a[i],"left"),w=g(a[i],"top"),b=[j(E(n)?n(a[i]):n||0,parseFloat(y)),j(E(r)?r(a[i]):r||0,parseFloat(w))];v[i]=E(u)?u(a[i],b):u,v[i].push(b),v[i].unshift([parseInt(y,10),parseInt(w,10)])}for(var L in e){switch(L){case"complete":case"duration":case"easing":case"bezier":continue}var C,N=g(a[i],L),I=E(e[L])?e[L](a[i]):e[L];"string"!=typeof I||!s.test(I)||s.test(N)?(d[i][L]="transform"==L?x(N):"string"==typeof I&&s.test(I)?T(N).slice(1):parseFloat(N),f[i][L]="transform"==L?x(I,d[i][L]):"string"==typeof I&&"#"==I.charAt(0)?T(I).slice(1):j(I,parseFloat(N)),"string"==typeof I&&(C=I.match(h))&&(p[i][L]=C[1])):delete e[L]}}return S.apply(a,[l,function(t,n,r){for(i=a.length;i--;)for(var o in u&&(r=D(v[i],t),a[i].style.left=r[0]+"px",a[i].style.top=r[1]+"px"),e)n=A(t,p,d,f,o,i),"transform"==o?a[i].style[_]=k(n):"opacity"!=o||m?a[i].style[M(o)]=n:a[i].style.filter="alpha(opacity="+100*n+")"},o,c])}return v((function(t){o=t>1e12!=r()>1e12})),C.tween=S,C.getStyle=g,C.bezier=D,C.transform=_,C.parseTransform=x,C.formatTransform=k,C.easings={},C}();class dt{show(t){t||(this._el.container.style.display="block")}hide(t){this._el.container.style.display="none"}addTo(t){t.appendChild(this._el.container),this.onAdd()}removeFrom(t){t.removeChild(this._el.container),this.onRemove()}animatePosition(t,e){var i={duration:this.options.duration,easing:this.options.ease};for(var n in t)t.hasOwnProperty(n)&&(i[n]=t[n]+"px");this.animator&&this.animator.stop(),this.animator=ct(e,i)}onLoaded(){this.fire("loaded",this.data)}onAdd(){this.fire("added",this.data)}onRemove(){this.fire("removed",this.data)}setPosition(t,e){for(var i in t)t.hasOwnProperty(i)&&(e?e.style[i]=t[i]+"px":this._el.container.style[i]=t[i]+"px")}getPosition(){return M(this._el.container)}}class ft{constructor(t,e,i){this._el={drag:t,move:t},this.mousedrag={down:"mousedown",up:"mouseup",leave:"mouseleave",move:"mousemove"},this.touchdrag={down:"touchstart",up:"touchend",leave:"mouseleave",move:"touchmove"},i&&(this._el.move=i),this.options={enable:{x:!0,y:!0},constraint:{top:!1,bottom:!1,left:!1,right:!1},momentum_multiplier:2e3,duration:1e3,ease:st},this.animator=null,this.dragevent=this.mousedrag,b&&(this.dragevent=this.touchdrag),this.data={sliding:!1,direction:"none",pagex:{start:0,end:0},pagey:{start:0,end:0},pos:{start:{x:0,y:0},end:{x:0,y:0}},new_pos:{x:0,y:0},new_pos_parent:{x:0,y:0},time:{start:0,end:0},touch:!1},C(this.options,e)}enable(t){this.data.pos.start=0,this._el.move.style.left=this.data.pos.start.x+"px",this._el.move.style.top=this.data.pos.start.y+"px",this._el.move.style.position="absolute"}disable(){_t.removeListener(this._el.drag,this.dragevent.down,this._onDragStart,this),_t.removeListener(this._el.drag,this.dragevent.up,this._onDragEnd,this)}stopMomentum(){this.animator&&this.animator.stop()}updateConstraint(t){this.options.constraint=t}_onDragStart(t){b?t.originalEvent?(this.data.pagex.start=t.originalEvent.touches[0].screenX,this.data.pagey.start=t.originalEvent.touches[0].screenY):(this.data.pagex.start=t.targetTouches[0].screenX,this.data.pagey.start=t.targetTouches[0].screenY):(this.data.pagex.start=t.pageX,this.data.pagey.start=t.pageY),this.options.enable.x&&(this._el.move.style.left=this.data.pagex.start-this._el.move.offsetWidth/2+"px"),this.options.enable.y&&(this._el.move.style.top=this.data.pagey.start-this._el.move.offsetHeight/2+"px"),this.data.pos.start=M(this._el.drag),this.data.time.start=(new Date).getTime(),this.fire("dragstart",this.data),_t.addListener(this._el.drag,this.dragevent.move,this._onDragMove,this),_t.addListener(this._el.drag,this.dragevent.leave,this._onDragEnd,this)}_onDragEnd(t){this.data.sliding=!1,_t.removeListener(this._el.drag,this.dragevent.move,this._onDragMove,this),_t.removeListener(this._el.drag,this.dragevent.leave,this._onDragEnd,this),this.fire("dragend",this.data),this._momentum()}_onDragMove(t){t.preventDefault(),this.data.sliding=!0,b?t.originalEvent?(this.data.pagex.end=t.originalEvent.touches[0].screenX,this.data.pagey.end=t.originalEvent.touches[0].screenY):(this.data.pagex.end=t.targetTouches[0].screenX,this.data.pagey.end=t.targetTouches[0].screenY):(this.data.pagex.end=t.pageX,this.data.pagey.end=t.pageY),this.data.pos.end=M(this._el.drag),this.data.new_pos.x=-(this.data.pagex.start-this.data.pagex.end-this.data.pos.start.x),this.data.new_pos.y=-(this.data.pagey.start-this.data.pagey.end-this.data.pos.start.y),this.options.enable.x&&(this._el.move.style.left=this.data.new_pos.x+"px"),this.options.enable.y&&(this._el.move.style.top=this.data.new_pos.y+"px"),this.fire("dragmove",this.data)}_momentum(){var t={x:0,y:0,time:0},e={x:0,y:0,time:0},i=!1;t.time=10*((new Date).getTime()-this.data.time.start),e.time=10*((new Date).getTime()-this.data.time.start),e.x=this.options.momentum_multiplier*(Math.abs(this.data.pagex.end)-Math.abs(this.data.pagex.start)),e.y=this.options.momentum_multiplier*(Math.abs(this.data.pagey.end)-Math.abs(this.data.pagey.start)),t.x=Math.round(e.x/e.time),t.y=Math.round(e.y/e.time),this.data.new_pos.x=Math.min(this.data.pos.end.x+t.x),this.data.new_pos.y=Math.min(this.data.pos.end.y+t.y),this.options.enable.x?this.data.new_pos.x<0&&(this.data.new_pos.x=0):this.data.new_pos.x=this.data.pos.start.x,this.options.enable.y?this.data.new_pos.y<0&&(this.data.new_pos.y=0):this.data.new_pos.y=this.data.pos.start.y,e.time<3e3&&(i=!0),Math.abs(e.x)>1e4&&(this.data.direction="left",e.x>0&&(this.data.direction="right")),Math.abs(e.y)>1e4&&(this.data.direction="up",e.y>0&&(this.data.direction="down")),this._animateMomentum(),i&&this.fire("swipe_"+this.data.direction,this.data)}_animateMomentum(){var t={x:this.data.new_pos.x,y:this.data.new_pos.y},e={duration:this.options.duration,easing:ot};this.options.enable.y&&((this.options.constraint.top||this.options.constraint.bottom)&&(t.y>this.options.constraint.bottom?t.y=this.options.constraint.bottom:t.ythis.options.constraint.left?t.x=this.options.constraint.left:t.x]*>/,f=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,p=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,_=/^(?:body|html)$/i,m=/([A-Z])/g,g=["val","css","html","text","data","width","height","offset"],v=l.createElement("table"),y=l.createElement("tr"),w={tr:l.createElement("tbody"),tbody:v,thead:v,tfoot:v,td:y,th:y,"*":l.createElement("div")},b=/complete|loaded|interactive/,x=/^[\w-]*$/,k={},T=k.toString,M={},E=l.createElement("div"),L={tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},S=Array.isArray||function(t){return t instanceof Array};function D(t){return null==t?String(t):k[T.call(t)]||"object"}function A(t){return"function"==D(t)}function j(t){return null!=t&&t==t.window}function C(t){return null!=t&&t.nodeType==t.DOCUMENT_NODE}function N(t){return"object"==D(t)}function I(t){return N(t)&&!j(t)&&Object.getPrototypeOf(t)==Object.prototype}function O(t){return"number"==typeof t.length}function z(t){return t.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function R(t){return t in c?c[t]:c[t]=new RegExp("(^|\\s)"+t+"(\\s|$)")}function P(t,e){return"number"!=typeof e||u[z(t)]?e:e+"px"}function q(t){return"children"in t?o.call(t.children):e.map(t.childNodes,(function(t){if(1==t.nodeType)return t}))}function F(e,i,n){for(t in i)n&&(I(i[t])||S(i[t]))?(I(i[t])&&!I(e[t])&&(e[t]={}),S(i[t])&&!S(e[t])&&(e[t]=[]),F(e[t],i[t],n)):void 0!==i[t]&&(e[t]=i[t])}function H(t,i){return null==i?e(t):e(t).filter(i)}function $(t,e,i,n){return A(e)?e.call(t,i,n):e}function B(t,e,i){null==i?t.removeAttribute(e):t.setAttribute(e,i)}function W(t,e){var i=t.className,n=i&&void 0!==i.baseVal;if(void 0===e)return n?i.baseVal:i;n?i.baseVal=e:t.className=e}function U(t){var i;try{return t?"true"==t||"false"!=t&&("null"==t?null:/^0/.test(t)||isNaN(i=Number(t))?/^[\[\{]/.test(t)?e.parseJSON(t):t:i):t}catch(e){return t}}function Z(t,e){for(var i in e(t),t.childNodes)Z(t.childNodes[i],e)}return M.matches=function(t,e){if(!e||!t||1!==t.nodeType)return!1;var i=t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.matchesSelector;if(i)return i.call(t,e);var n,r=t.parentNode,a=!r;return a&&(r=E).appendChild(t),n=~M.qsa(r,e).indexOf(t),a&&E.removeChild(t),n},n=function(t){return t.replace(/-+(.)?/g,(function(t,e){return e?e.toUpperCase():""}))},r=function(t){return s.call(t,(function(e,i){return t.indexOf(e)==i}))},M.fragment=function(t,i,n){var r,a,s;return f.test(t)&&(r=e(l.createElement(RegExp.$1))),r||(t.replace&&(t=t.replace(p,"<$1>")),void 0===i&&(i=d.test(t)&&RegExp.$1),i in w||(i="*"),(s=w[i]).innerHTML=""+t,r=e.each(o.call(s.childNodes),(function(){s.removeChild(this)}))),I(n)&&(a=e(r),e.each(n,(function(t,e){g.indexOf(t)>-1?a[t](e):a.attr(t,e)}))),r},M.Z=function(t,i){return(t=t||[]).__proto__=e.fn,t.selector=i||"",t},M.isZ=function(t){return t instanceof M.Z},M.init=function(t,i){var n,r;if(!t)return M.Z();if("string"==typeof t)if("<"==(t=t.trim())[0]&&d.test(t))n=M.fragment(t,RegExp.$1,i),t=null;else{if(void 0!==i)return e(i).find(t);n=M.qsa(l,t)}else{if(A(t))return e(l).ready(t);if(M.isZ(t))return t;if(S(t))r=t,n=s.call(r,(function(t){return null!=t}));else if(N(t))n=[t],t=null;else if(d.test(t))n=M.fragment(t.trim(),RegExp.$1,i),t=null;else{if(void 0!==i)return e(i).find(t);n=M.qsa(l,t)}}return M.Z(n,t)},(e=function(t,e){return M.init(t,e)}).extend=function(t){var e,i=o.call(arguments,1);return"boolean"==typeof t&&(e=t,t=i.shift()),i.forEach((function(i){F(t,i,e)})),t},M.qsa=function(t,e){var i,n="#"==e[0],r=!n&&"."==e[0],a=n||r?e.slice(1):e,s=x.test(a);return C(t)&&s&&n?(i=t.getElementById(a))?[i]:[]:1!==t.nodeType&&9!==t.nodeType?[]:o.call(s&&!n?r?t.getElementsByClassName(a):t.getElementsByTagName(e):t.querySelectorAll(e))},e.contains=function(t,e){return t!==e&&t.contains(e)},e.type=D,e.isFunction=A,e.isWindow=j,e.isArray=S,e.isPlainObject=I,e.isEmptyObject=function(t){var e;for(e in t)return!1;return!0},e.inArray=function(t,e,i){return a.indexOf.call(e,t,i)},e.camelCase=n,e.trim=function(t){return null==t?"":String.prototype.trim.call(t)},e.uuid=0,e.support={},e.expr={},e.map=function(t,i){var n,r,a,o,s=[];if(O(t))for(r=0;r0?e.fn.concat.apply([],o):o},e.each=function(t,e){var i,n;if(O(t)){for(i=0;i=0?t:t+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each((function(){null!=this.parentNode&&this.parentNode.removeChild(this)}))},each:function(t){return a.every.call(this,(function(e,i){return!1!==t.call(e,i,e)})),this},filter:function(t){return A(t)?this.not(this.not(t)):e(s.call(this,(function(e){return M.matches(e,t)})))},add:function(t,i){return e(r(this.concat(e(t,i))))},is:function(t){return this.length>0&&M.matches(this[0],t)},not:function(t){var i=[];if(A(t)&&void 0!==t.call)this.each((function(e){t.call(this,e)||i.push(this)}));else{var n="string"==typeof t?this.filter(t):O(t)&&A(t.item)?o.call(t):e(t);this.forEach((function(t){n.indexOf(t)<0&&i.push(t)}))}return e(i)},has:function(t){return this.filter((function(){return N(t)?e.contains(this,t):e(this).find(t).size()}))},eq:function(t){return-1===t?this.slice(t):this.slice(t,+t+1)},first:function(){var t=this[0];return t&&!N(t)?t:e(t)},last:function(){var t=this[this.length-1];return t&&!N(t)?t:e(t)},find:function(t){var i=this;return"object"==typeof t?e(t).filter((function(){var t=this;return a.some.call(i,(function(i){return e.contains(i,t)}))})):1==this.length?e(M.qsa(this[0],t)):this.map((function(){return M.qsa(this,t)}))},closest:function(t,i){var n=this[0],r=!1;for("object"==typeof t&&(r=e(t));n&&!(r?r.indexOf(n)>=0:M.matches(n,t));)n=n!==i&&!C(n)&&n.parentNode;return e(n)},parents:function(t){for(var i=[],n=this;n.length>0;)n=e.map(n,(function(t){if((t=t.parentNode)&&!C(t)&&i.indexOf(t)<0)return i.push(t),t}));return H(i,t)},parent:function(t){return H(r(this.pluck("parentNode")),t)},children:function(t){return H(this.map((function(){return q(this)})),t)},contents:function(){return this.map((function(){return o.call(this.childNodes)}))},siblings:function(t){return H(this.map((function(t,e){return s.call(q(e.parentNode),(function(t){return t!==e}))})),t)},empty:function(){return this.each((function(){this.innerHTML=""}))},pluck:function(t){return e.map(this,(function(e){return e[t]}))},show:function(){return this.each((function(){var t,e,i;"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=(t=this.nodeName,h[t]||(e=l.createElement(t),l.body.appendChild(e),i=getComputedStyle(e,"").getPropertyValue("display"),e.parentNode.removeChild(e),"none"==i&&(i="block"),h[t]=i),h[t]))}))},replaceWith:function(t){return this.before(t).remove()},wrap:function(t){var i=A(t);if(this[0]&&!i)var n=e(t).get(0),r=n.parentNode||this.length>1;return this.each((function(a){e(this).wrapAll(i?t.call(this,a):r?n.cloneNode(!0):n)}))},wrapAll:function(t){if(this[0]){var i;for(e(this[0]).before(t=e(t));(i=t.children()).length;)t=i.first();e(t).append(this)}return this},wrapInner:function(t){var i=A(t);return this.each((function(n){var r=e(this),a=r.contents(),o=i?t.call(this,n):t;a.length?a.wrapAll(o):r.append(o)}))},unwrap:function(){return this.parent().each((function(){e(this).replaceWith(e(this).children())})),this},clone:function(){return this.map((function(){return this.cloneNode(!0)}))},hide:function(){return this.css("display","none")},toggle:function(t){return this.each((function(){var i=e(this);(void 0===t?"none"==i.css("display"):t)?i.show():i.hide()}))},prev:function(t){return e(this.pluck("previousElementSibling")).filter(t||"*")},next:function(t){return e(this.pluck("nextElementSibling")).filter(t||"*")},html:function(t){return 0===arguments.length?this.length>0?this[0].innerHTML:null:this.each((function(i){var n=this.innerHTML;e(this).empty().append($(this,t,i,n))}))},text:function(t){return 0===arguments.length?this.length>0?this[0].textContent:null:this.each((function(){this.textContent=void 0===t?"":""+t}))},attr:function(e,i){var n;return"string"==typeof e&&void 0===i?0==this.length||1!==this[0].nodeType?void 0:"value"==e&&"INPUT"==this[0].nodeName?this.val():!(n=this[0].getAttribute(e))&&e in this[0]?this[0][e]:n:this.each((function(n){if(1===this.nodeType)if(N(e))for(t in e)B(this,t,e[t]);else B(this,e,$(this,i,n,this.getAttribute(e)))}))},removeAttr:function(t){return this.each((function(){1===this.nodeType&&B(this,t)}))},prop:function(t,e){return t=L[t]||t,void 0===e?this[0]&&this[0][t]:this.each((function(i){this[t]=$(this,e,i,this[t])}))},data:function(t,e){var i=this.attr("data-"+t.replace(m,"-$1").toLowerCase(),e);return null!==i?U(i):void 0},val:function(t){return 0===arguments.length?this[0]&&(this[0].multiple?e(this[0]).find("option").filter((function(){return this.selected})).pluck("value"):this[0].value):this.each((function(e){this.value=$(this,t,e,this.value)}))},offset:function(t){if(t)return this.each((function(i){var n=e(this),r=$(this,t,i,n.offset()),a=n.offsetParent().offset(),o={top:r.top-a.top,left:r.left-a.left};"static"==n.css("position")&&(o.position="relative"),n.css(o)}));if(0==this.length)return null;var i=this[0].getBoundingClientRect();return{left:i.left+window.pageXOffset,top:i.top+window.pageYOffset,width:Math.round(i.width),height:Math.round(i.height)}},css:function(i,r){if(arguments.length<2){var a=this[0],o=getComputedStyle(a,"");if(!a)return;if("string"==typeof i)return a.style[n(i)]||o.getPropertyValue(i);if(S(i)){var s={};return e.each(S(i)?i:[i],(function(t,e){s[e]=a.style[n(e)]||o.getPropertyValue(e)})),s}}var l="";if("string"==D(i))r||0===r?l=z(i)+":"+P(i,r):this.each((function(){this.style.removeProperty(z(i))}));else for(t in i)i[t]||0===i[t]?l+=z(t)+":"+P(t,i[t])+";":this.each((function(){this.style.removeProperty(z(t))}));return this.each((function(){this.style.cssText+=";"+l}))},index:function(t){return t?this.indexOf(e(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return!!t&&a.some.call(this,(function(t){return this.test(W(t))}),R(t))},addClass:function(t){return t?this.each((function(n){i=[];var r=W(this);$(this,t,n,r).split(/\s+/g).forEach((function(t){e(this).hasClass(t)||i.push(t)}),this),i.length&&W(this,r+(r?" ":"")+i.join(" "))})):this},removeClass:function(t){return this.each((function(e){if(void 0===t)return W(this,"");i=W(this),$(this,t,e,i).split(/\s+/g).forEach((function(t){i=i.replace(R(t)," ")})),W(this,i.trim())}))},toggleClass:function(t,i){return t?this.each((function(n){var r=e(this);$(this,t,n,W(this)).split(/\s+/g).forEach((function(t){(void 0===i?!r.hasClass(t):i)?r.addClass(t):r.removeClass(t)}))})):this},scrollTop:function(t){if(this.length){var e="scrollTop"in this[0];return void 0===t?e?this[0].scrollTop:this[0].pageYOffset:this.each(e?function(){this.scrollTop=t}:function(){this.scrollTo(this.scrollX,t)})}},scrollLeft:function(t){if(this.length){var e="scrollLeft"in this[0];return void 0===t?e?this[0].scrollLeft:this[0].pageXOffset:this.each(e?function(){this.scrollLeft=t}:function(){this.scrollTo(t,this.scrollY)})}},position:function(){if(this.length){var t=this[0],i=this.offsetParent(),n=this.offset(),r=_.test(i[0].nodeName)?{top:0,left:0}:i.offset();return n.top-=parseFloat(e(t).css("margin-top"))||0,n.left-=parseFloat(e(t).css("margin-left"))||0,r.top+=parseFloat(e(i[0]).css("border-top-width"))||0,r.left+=parseFloat(e(i[0]).css("border-left-width"))||0,{top:n.top-r.top,left:n.left-r.left}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent||l.body;t&&!_.test(t.nodeName)&&"static"==e(t).css("position");)t=t.offsetParent;return t}))}},e.fn.detach=e.fn.remove,["width","height"].forEach((function(t){var i=t.replace(/./,(function(t){return t[0].toUpperCase()}));e.fn[t]=function(n){var r,a=this[0];return void 0===n?j(a)?a["inner"+i]:C(a)?a.documentElement["scroll"+i]:(r=this.offset())&&r[t]:this.each((function(i){(a=e(this)).css(t,$(this,n,i,a[t]()))}))}})),["after","prepend","before","append"].forEach((function(t,i){var n=i%2;e.fn[t]=function(){var t,r,a=e.map(arguments,(function(e){return"object"==(t=D(e))||"array"==t||null==e?e:M.fragment(e)})),o=this.length>1;return a.length<1?this:this.each((function(t,s){r=n?s:s.parentNode,s=0==i?s.nextSibling:1==i?s.firstChild:2==i?s:null,a.forEach((function(t){if(o)t=t.cloneNode(!0);else if(!r)return e(t).remove();Z(r.insertBefore(t,s),(function(t){null==t.nodeName||"SCRIPT"!==t.nodeName.toUpperCase()||t.type&&"text/javascript"!==t.type||t.src||window.eval.call(window,t.innerHTML)}))}))}))},e.fn[n?t+"To":"insert"+(i?"Before":"After")]=function(i){return e(i)[t](this),this}})),M.Z.prototype=e.fn,M.uniq=r,M.deserializeValue=U,e.zepto=M,e}();window.Zepto=mt,void 0===window.$&&(window.$=mt),function(t){t.zepto.qsa;var e=1,i=Array.prototype.slice,n=t.isFunction,r=function(t){return"string"==typeof t},a={},o={},s="onfocusin"in window,l={focus:"focusin",blur:"focusout"},h={mouseenter:"mouseover",mouseleave:"mouseout"};function c(t){return t._zid||(t._zid=e++)}function u(t,e,i,n){if((e=d(e)).ns)var r=(o=e.ns,new RegExp("(?:^| )"+o.replace(" "," .* ?")+"(?: |$)"));var o;return(a[c(t)]||[]).filter((function(t){return t&&(!e.e||t.e==e.e)&&(!e.ns||r.test(t.ns))&&(!i||c(t.fn)===c(i))&&(!n||t.sel==n)}))}function d(t){var e=(""+t).split(".");return{e:e[0],ns:e.slice(1).sort().join(" ")}}function f(t,e){return t.del&&!s&&t.e in l||!!e}function p(t){return h[t]||s&&l[t]||t}function _(e,i,n,r,o,s,l){var u=c(e),_=a[u]||(a[u]=[]);i.split(/\s/).forEach((function(i){if("ready"==i)return t(document).ready(n);var a=d(i);a.fn=n,a.sel=o,a.e in h&&(n=function(e){var i=e.relatedTarget;if(!i||i!==this&&!t.contains(this,i))return a.fn.apply(this,arguments)}),a.del=s;var c=s||n;a.proxy=function(t){if(!(t=b(t)).isImmediatePropagationStopped()){t.data=r;var i=c.apply(e,null==t._args?[t]:[t].concat(t._args));return!1===i&&(t.preventDefault(),t.stopPropagation()),i}},a.i=_.length,_.push(a),"addEventListener"in e&&e.addEventListener(p(a.e),a.proxy,f(a,l))}))}function m(t,e,i,n,r){var o=c(t);(e||"").split(/\s/).forEach((function(e){u(t,e,i,n).forEach((function(e){delete a[o][e.i],"removeEventListener"in t&&t.removeEventListener(p(e.e),e.proxy,f(e,r))}))}))}o.click=o.mousedown=o.mouseup=o.mousemove="MouseEvents",t.event={add:_,remove:m},t.proxy=function(e,i){if(n(e)){var a=function(){return e.apply(i,arguments)};return a._zid=c(e),a}if(r(i))return t.proxy(e[i],e);throw new TypeError("expected function")},t.fn.bind=function(t,e,i){return this.on(t,e,i)},t.fn.unbind=function(t,e){return this.off(t,e)},t.fn.one=function(t,e,i,n){return this.on(t,e,i,n,1)};var g=function(){return!0},v=function(){return!1},y=/^([A-Z]|returnValue$|layer[XY]$)/,w={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};function b(e,i){return!i&&e.isDefaultPrevented||(i||(i=e),t.each(w,(function(t,n){var r=i[t];e[t]=function(){return this[n]=g,r&&r.apply(i,arguments)},e[n]=v})),(void 0!==i.defaultPrevented?i.defaultPrevented:"returnValue"in i?!1===i.returnValue:i.getPreventDefault&&i.getPreventDefault())&&(e.isDefaultPrevented=g)),e}function x(t){var e,i={originalEvent:t};for(e in t)y.test(e)||void 0===t[e]||(i[e]=t[e]);return b(i,t)}t.fn.delegate=function(t,e,i){return this.on(e,t,i)},t.fn.undelegate=function(t,e,i){return this.off(e,t,i)},t.fn.live=function(e,i){return t(document.body).delegate(this.selector,e,i),this},t.fn.die=function(e,i){return t(document.body).undelegate(this.selector,e,i),this},t.fn.on=function(e,a,o,s,l){var h,c,u=this;return e&&!r(e)?(t.each(e,(function(t,e){u.on(t,a,o,e,l)})),u):(r(a)||n(s)||!1===s||(s=o,o=a,a=void 0),(n(o)||!1===o)&&(s=o,o=void 0),!1===s&&(s=v),u.each((function(n,r){l&&(h=function(t){return m(r,t.type,s),s.apply(this,arguments)}),a&&(c=function(e){var n,o=t(e.target).closest(a,r).get(0);if(o&&o!==r)return n=t.extend(x(e),{currentTarget:o,liveFired:r}),(h||s).apply(o,[n].concat(i.call(arguments,1)))}),_(r,e,s,o,a,c||h)})))},t.fn.off=function(e,i,a){var o=this;return e&&!r(e)?(t.each(e,(function(t,e){o.off(t,i,e)})),o):(r(i)||n(a)||!1===a||(a=i,i=void 0),!1===a&&(a=v),o.each((function(){m(this,e,a,i)})))},t.fn.trigger=function(e,i){return(e=r(e)||t.isPlainObject(e)?t.Event(e):b(e))._args=i,this.each((function(){"dispatchEvent"in this?this.dispatchEvent(e):t(this).triggerHandler(e,i)}))},t.fn.triggerHandler=function(e,i){var n,a;return this.each((function(o,s){(n=x(r(e)?t.Event(e):e))._args=i,n.target=s,t.each(u(s,e.type||e),(function(t,e){if(a=e.proxy(n),n.isImmediatePropagationStopped())return!1}))})),a},"focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach((function(e){t.fn[e]=function(t){return t?this.bind(e,t):this.trigger(e)}})),["focus","blur"].forEach((function(e){t.fn[e]=function(t){return t?this.bind(e,t):this.each((function(){try{this[e]()}catch(t){}})),this}})),t.Event=function(t,e){r(t)||(t=(e=t).type);var i=document.createEvent(o[t]||"Events"),n=!0;if(e)for(var a in e)"bubbles"==a?n=!!e[a]:i[a]=e[a];return i.initEvent(t,n,!0),b(i)}}(mt),function(t){var e,i,n=0,r=window.document,a=/)<[^<]*)*<\/script>/gi,o=/^(?:text|application)\/javascript/i,s=/^(?:text|application)\/xml/i,l=/^\s*$/;function h(e,i,n,a){if(e.global)return function(e,i,n){var r=t.Event(i);return t(e).trigger(r,n),!r.isDefaultPrevented()}(i||r,n,a)}function c(t,e){var i=e.context;if(!1===e.beforeSend.call(i,t,e)||!1===h(e,i,"ajaxBeforeSend",[t,e]))return!1;h(e,i,"ajaxSend",[t,e])}function u(t,e,i,n){var r=i.context;i.success.call(r,t,"success",e),n&&n.resolveWith(r,[t,"success",e]),h(i,r,"ajaxSuccess",[e,i,t]),f("success",e,i)}function d(t,e,i,n,r){var a=n.context;n.error.call(a,i,e,t),r&&r.rejectWith(a,[i,e,t]),h(n,a,"ajaxError",[i,n,t||e]),f(e,i,n)}function f(e,i,n){var r=n.context;n.complete.call(r,i,e),h(n,r,"ajaxComplete",[i,n]),function(e){e.global&&!--t.active&&h(e,null,"ajaxStop")}(n)}function p(){}function _(t,e){return""==e?t:(t+"&"+e).replace(/[&?]{1,2}/,"?")}function m(e,i,n,r){var a=!t.isFunction(i);return{url:e,data:a?i:void 0,success:a?t.isFunction(n)?n:void 0:i,dataType:a&&r||n}}t.active=0,t.ajaxJSONP=function(e,i){if(!("type"in e))return t.ajax(e);var a,o,s=e.jsonpCallback,l=(t.isFunction(s)?s():s)||"jsonp"+ ++n,h=r.createElement("script"),f=window[l],p=function(e){t(h).triggerHandler("error",e||"abort")},_={abort:p};return i&&i.promise(_),t(h).on("load error",(function(n,r){clearTimeout(o),t(h).off().remove(),"error"!=n.type&&a?u(a[0],_,e,i):d(null,r||"error",_,e,i),window[l]=f,a&&t.isFunction(f)&&f(a[0]),f=a=void 0})),!1===c(_,e)?(p("abort"),_):(window[l]=function(){a=arguments},h.src=e.url.replace(/\?(.+)=\?/,"?$1="+l),r.head.appendChild(h),e.timeout>0&&(o=setTimeout((function(){p("timeout")}),e.timeout)),_)},t.ajaxSettings={type:"GET",beforeSend:p,success:p,error:p,complete:p,context:null,global:!0,xhr:function(){return new window.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript, application/x-javascript",json:"application/json",xml:"application/xml, text/xml",html:"text/html",text:"text/plain"},crossDomain:!1,timeout:0,processData:!0,cache:!0},t.ajax=function(n){var r=t.extend({},n||{}),a=t.Deferred&&t.Deferred();for(e in t.ajaxSettings)void 0===r[e]&&(r[e]=t.ajaxSettings[e]);!function(e){e.global&&0==t.active++&&h(e,null,"ajaxStart")}(r),r.crossDomain||(r.crossDomain=/^([\w-]+:)?\/\/([^\/]+)/.test(r.url)&&RegExp.$2!=window.location.host),r.url||(r.url=window.location.toString()),function(e){e.processData&&e.data&&"string"!=t.type(e.data)&&(e.data=t.param(e.data,e.traditional)),!e.data||e.type&&"GET"!=e.type.toUpperCase()||(e.url=_(e.url,e.data),e.data=void 0)}(r),!1===r.cache&&(r.url=_(r.url,"_="+Date.now()));var f=r.dataType,m=/\?.+=\?/.test(r.url);if("jsonp"==f||m)return m||(r.url=_(r.url,r.jsonp?r.jsonp+"=?":!1===r.jsonp?"":"callback=?")),t.ajaxJSONP(r,a);var g,v=r.accepts[f],y={},w=function(t,e){y[t.toLowerCase()]=[t,e]},b=/^([\w-]+:)\/\//.test(r.url)?RegExp.$1:window.location.protocol,x=r.xhr(),k=x.setRequestHeader;if(a&&a.promise(x),r.crossDomain||w("X-Requested-With","XMLHttpRequest"),w("Accept",v||"*/*"),(v=r.mimeType||v)&&(v.indexOf(",")>-1&&(v=v.split(",",2)[0]),x.overrideMimeType&&x.overrideMimeType(v)),(r.contentType||!1!==r.contentType&&r.data&&"GET"!=r.type.toUpperCase())&&w("Content-Type",r.contentType||"application/x-www-form-urlencoded"),r.headers)for(i in r.headers)w(i,r.headers[i]);if(x.setRequestHeader=w,x.onreadystatechange=function(){if(4==x.readyState){x.onreadystatechange=p,clearTimeout(g);var e,i=!1;if(x.status>=200&&x.status<300||304==x.status||0==x.status&&"file:"==b){f=f||function(t){return t&&(t=t.split(";",2)[0]),t&&("text/html"==t?"html":"application/json"==t?"json":o.test(t)?"script":s.test(t)&&"xml")||"text"}(r.mimeType||x.getResponseHeader("content-type")),e=x.responseText;try{"script"==f?(0,eval)(e):"xml"==f?e=x.responseXML:"json"==f&&(e=l.test(e)?null:t.parseJSON(e))}catch(t){i=t}i?d(i,"parsererror",x,r,a):u(e,x,r,a)}else d(x.statusText||null,x.status?"error":"abort",x,r,a)}},!1===c(x,r))return x.abort(),d(null,"abort",x,r,a),x;if(r.xhrFields)for(i in r.xhrFields)x[i]=r.xhrFields[i];var T=!("async"in r)||r.async;for(i in x.open(r.type,r.url,T,r.username,r.password),y)k.apply(x,y[i]);return r.timeout>0&&(g=setTimeout((function(){x.onreadystatechange=p,x.abort(),d(null,"timeout",x,r,a)}),r.timeout)),x.send(r.data?r.data:null),x},t.get=function(e,i,n,r){return t.ajax(m.apply(null,arguments))},t.post=function(e,i,n,r){var a=m.apply(null,arguments);return a.type="POST",t.ajax(a)},t.getJSON=function(e,i,n){var r=m.apply(null,arguments);return r.dataType="json",t.ajax(r)},t.fetchJSON=function(t){var e=new XMLHttpRequest;return new Promise((function(i,n){e.onreadystatechange=function(){try{if(4!==e.readyState)return;if(e.status>=200&&e.status<300){var r=JSON.parse(e.responseText);i(r)}else n({status:e.status,statusText:e.statusText})}catch(e){n({status:400,statusText:`Error fetching JSON from ${t}: ${e}`})}},e.open("GET",t,!0),e.send()}))},t.fn.load=function(e,i,n){if(!this.length)return this;var r,o=this,s=e.split(/\s/),l=m(e,i,n),h=l.success;return s.length>1&&(l.url=s[0],r=s[1]),l.success=function(e){o.html(r?t("
").html(e.replace(a,"")).find(r):e),h&&h.apply(o,arguments)},t.ajax(l),this};var g=encodeURIComponent;t.param=function(e,i){var n=[];return n.add=function(t,e){this.push(g(t)+"="+g(e))},function e(i,n,r,a){var o,s=t.isArray(n),l=t.isPlainObject(n);t.each(n,(function(n,h){o=t.type(h),a&&(n=r?a:a+"["+(l||"object"==o||"array"==o?n:"")+"]"),!a&&s?i.add(h.name,h.value):"array"==o||!r&&"object"==o?e(i,h,r,n):i.add(n,h)}))}(n,e,i),n.join("&").replace(/%20/g,"+")}}(mt),(pt=mt).fn.serializeArray=function(){var t,e=[];return pt([].slice.call(this.get(0).elements)).each((function(){var i=(t=pt(this)).attr("type");"fieldset"!=this.nodeName.toLowerCase()&&!this.disabled&&"submit"!=i&&"reset"!=i&&"button"!=i&&("radio"!=i&&"checkbox"!=i||this.checked)&&e.push({name:t.attr("name"),value:t.val()})})),e},pt.fn.serialize=function(){var t=[];return this.serializeArray().forEach((function(e){t.push(encodeURIComponent(e.name)+"="+encodeURIComponent(e.value))})),t.join("&")},pt.fn.submit=function(t){if(t)this.bind("submit",t);else if(this.length){var e=pt.Event("submit");this.eq(0).trigger(e),e.isDefaultPrevented()||this.get(0).submit()}return this},function(t){"__proto__"in{}||t.extend(t.zepto,{Z:function(e,i){return e=e||[],t.extend(e,t.fn),e.selector=i||"",e.__Z=!0,e},isZ:function(e){return"array"===t.type(e)&&"__Z"in e}});try{getComputedStyle(void 0)}catch(t){var e=getComputedStyle;window.getComputedStyle=function(t,i){try{return e(t,i)}catch(t){return null}}}}(mt);const gt=mt.getJSON,vt=mt.ajax,yt=mt.fetchJSON,wt=[["millisecond",1,function(t){}],["second",1e3,function(t){t.setMilliseconds(0)}],["minute",6e4,function(t){t.setSeconds(0)}],["hour",36e5,function(t){t.setMinutes(0)}],["day",864e5,function(t){t.setHours(0)}],["month",2592e6,function(t){t.setDate(1)}],["year",31536e6,function(t){t.setMonth(0)}],["decade",31536e7,function(t){var e=t.getFullYear();t.setFullYear(e-e%10)}],["century",31536e8,function(t){var e=t.getFullYear();t.setFullYear(e-e%100)}],["millennium",31536e9,function(t){var e=t.getFullYear();t.setFullYear(e-e%1e3)}]],bt=["millisecond","second","minute","hour","day","month","year"],xt=/^([\+-]?\d+?)(-\d{2}?)?(-\d{2}?)?$/,kt=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24\:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/;const Tt={base:{millisecond:"time_short",second:"time",minute:"time_no_seconds_small_date",hour:"time_no_seconds_small_date",day:"full",month:"month",year:"year",decade:"year",century:"year",millennium:"year",age:"fallback",epoch:"fallback",era:"fallback",eon:"fallback",eon2:"fallback"},short:{millisecond:"time_short",second:"time_short",minute:"time_no_seconds_short",hour:"time_no_minutes_short",day:"full_short",month:"month_short",year:"year",decade:"year",century:"year",millennium:"year",age:"fallback",epoch:"fallback",era:"fallback",eon:"fallback",eon2:"fallback"}},Mt=lt.extend({initialize:function(t,e,i){"number"==typeof t?this.data={format:"yyyy mmmm",date_obj:new Date(t)}:Date==t.constructor?this.data={format:"yyyy mmmm",date_obj:t}:(this.data=JSON.parse(JSON.stringify(t)),this._createDateObj()),this._setFormat(e,i)},setDateFormat:function(t){this.data.format=t},getDisplayDate:function(t,e){if(this.data.display_date)return this.data.display_date;t||(t=jt.fallback),t.constructor!=jt&&(O("First argument to getDisplayDate must be type Language"),t=jt.fallback);var i=e||this.data.format;return t.formatDate(this.data.date_obj,i)},getMillisecond:function(){return this.getTime()},getTime:function(){return this.data.date_obj.getTime()},isBefore:function(t){if(!this.data.date_obj.constructor==t.data.date_obj.constructor)throw new D("date_compare_err");return"isBefore"in this.data.date_obj?this.data.date_obj.isBefore(t.data.date_obj):this.data.date_objt.data.date_obj},floor:function(t){for(var e=new Date(this.data.date_obj.getTime()),i=0;i0&&t.month<=12&&(t.month=t.month-1),t},_createDateObj:function(){var t=this._getDateData();this.data.date_obj=new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond),this.data.date_obj.getFullYear()!=t.year&&this.data.date_obj.setFullYear(t.year)},findBestFormat:function(t){for(var e=bt,i=0;it.year},getTime:function(){return this.year}});function St(t){return function(e){var i=e.getTime();return new Lt(Math.floor(i/t)*t)}}const Dt=[["year",1,new St(1)],["decade",10,new St(10)],["century",100,new St(100)],["millennium",1e3,new St(1e3)],["age",1e6,new St(1e6)],["epoch",1e7,new St(1e7)],["era",1e8,new St(1e8)],["eon",1e9,new St(1e9)]],At=Mt.extend({initialize:function(t,e,i){Lt==t.constructor?this.data={date_obj:t}:(this.data=JSON.parse(JSON.stringify(t)),this._createDateObj()),this._setFormat(e,i)},_createDateObj:function(){var t=this._getDateData();this.data.date_obj=new Lt(t.year)},floor:function(t){for(var e=0;e{It[i]=t}).catch(t=>{console.log(`Error loading language [${n}] ${t.statusText} [${t.status}]`)})}C(this,It[i])}}mergeData(t){for(k in It.en)t[k]&&("object"==typeof this[k]?C(t[k],this[k]):this[k]=t[k])}formatBigYear(t,e){var i=t.year,n=this.bigdateformats[e]||this.bigdateformats.fallback;if(n){for(var r=0;r1)return Nt(Math.abs(i/a[0]),a[1])}return i.toString()}return O("Language file dateformats missing cosmological. Falling back."),Nt(i,e)}_(t){return this.messages[t]||jt.fallback.messages[t]||t}formatDate(t,e){return t.constructor==Date?this.formatJSDate(t,e):t.constructor==Lt?this.formatBigYear(t,e):t.data&&t.data.date_obj?this.formatDate(t.data.date_obj,e):(O("Unfamiliar date presented for formatting"),t.toString())}formatJSDate(t,e){var i=this,n=function(t,e){var n=i.period_labels[t];if(n)t=e<12?n[0]:n[1];return""+t+""};e||(e="full");var r=this.dateformats[e]||jt.fallback.dateformats[e];r||(r=e);var a=t.getDate(),o=t.getDay(),s=t.getMonth(),l=t.getFullYear(),h=t.getHours(),c=t.getMinutes(),u=t.getSeconds(),d=t.getMilliseconds(),f=t.getTimezoneOffset(),p={d:a,dd:z(a),ddd:this.date.day_abbr[o],dddd:this.date.day[o],m:s+1,mm:z(s+1),mmm:this.date.month_abbr[s],mmmm:this.date.month[s],yy:String(l).slice(2),yyyy:l<0&&this.has_negative_year_modifier()?Math.abs(l):l,h:h%12||12,hh:z(h%12||12),H:h,HH:z(h),M:c,MM:z(c),s:u,ss:z(u),l:z(d,3),L:z(d>99?Math.round(d/10):d),t:n("t",h),tt:n("tt",h),T:n("T",h),TT:n("TT",h),Z:(String(t).match(/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g)||[""]).pop().replace(/[^-+\dA-Z]/g,""),o:(f>0?"-":"+")+z(100*Math.floor(Math.abs(f)/60)+Math.abs(f)%60,4),S:["th","st","nd","rd"][a%10>3?0:(a%100-a%10!=10)*a%10]},_=r.replace(jt.DATE_FORMAT_TOKENS,(function(t){return t in p?p[t]:t.slice(1,t.length-1)}));return this._applyEra(_,l)}has_negative_year_modifier(){return Boolean(this.era_labels.negative_year.prefix||this.era_labels.negative_year.suffix)}_applyEra(t,e){var i=e<0?this.era_labels.negative_year:this.era_labels.positive_year,n="";return i.prefix&&(n+=""+i.prefix+" "),n+=t,i.suffix&&(n+=" "+i.suffix+""),n}}function Ct(t,e){if(/\.json$/.test(t))var i=t;else{var n="/locale/"+t+".json";/\/$/.test(e)&&(n=n.substr(1));i=e+n}return i}function Nt(t,e){if(e.match(/%(\.(\d+))?f/)){var i=e.match(/%(\.(\d+))?f/),n=i[0];return i[2]&&(t=t.toFixed(i[2])),e.replace(n,t)}return e}jt.fallback={messages:{}},jt.DATE_FORMAT_TOKENS=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g;var It={en:{name:"English (built-in)",lang:"en",api:{wikipedia:"en"},messages:{loading:"Loading",wikipedia:"From Wikipedia, the free encyclopedia",error:"Error",contract_timeline:"Contract Timeline",return_to_title:"Return to Title",loading_content:"Loading Content",expand_timeline:"Expand Timeline",loading_timeline:"Loading Timeline... ",swipe_to_navigate:"Swipe to Navigate
OK",unknown_read_err:"An unexpected error occurred trying to read your spreadsheet data",invalid_url_err:"Unable to read Timeline data. Make sure your URL is for a Google Spreadsheet or a Timeline JSON file.",invalid_url_share_required:"Because of unexpected changes to Google's data access API, the creator of this timeline must enable 'anyone with the url can read' access for this spreadsheet. See timeline.knightlab.com for more information.",network_err:"Unable to read your Google Spreadsheet. Make sure you have published it to the web.",empty_feed_err:"No data entries found",missing_start_date_err:"Missing start_date",invalid_data_format_err:"Header row has been modified.",invalid_start_time_without_date:"Invalid configuration: time cannot be used without date.",invalid_end_time_without_date:"Invalid configuration: end time cannot be used without end date.",date_compare_err:"Can't compare timeline date objects on different scales",invalid_scale_err:"Invalid scale",invalid_date_err:"Invalid date: month, day and year must be numbers.",invalid_separator_error:"Invalid time: misuse of : or . as separator.",invalid_hour_err:"Invalid time (hour)",invalid_minute_err:"Invalid time (minute)",invalid_second_err:"Invalid time (second)",invalid_fractional_err:"Invalid time (fractional seconds)",invalid_second_fractional_err:"Invalid time (seconds and fractional seconds)",invalid_year_err:"Invalid year",flickr_notfound_err:"Photo not found or private",flickr_invalidurl_err:"Invalid Flickr URL",imgur_invalidurl_err:"Invalid Imgur URL",twitter_invalidurl_err:"Invalid Twitter URL",twitter_load_err:"Unable to load Tweet",twitterembed_invalidurl_err:"Invalid Twitter Embed url",wikipedia_load_err:"Unable to load Wikipedia entry",youtube_invalidurl_err:"Invalid YouTube URL",spotify_invalid_url:"Invalid Spotify URL",template_value_err:"No value provided for variable",invalid_rgb_err:"Invalid RGB argument",time_scale_scale_err:"Don't know how to get date from time for scale",axis_helper_no_options_err:"Axis helper must be configured with options",axis_helper_scale_err:"No AxisHelper available for scale",invalid_integer_option:"Invalid option value—must be a whole number.",instagram_bad_request:"Invalid or private Instagram URL"},date:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."]},era_labels:{positive_year:{prefix:"",suffix:""},negative_year:{prefix:"",suffix:"BCE"}},period_labels:{t:["a","p"],tt:["am","pm"],T:["A","P"],TT:["AM","PM"]},dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time:"h:MM:ss TT' 'mmmm d',' yyyy''",time_short:"h:MM:ss TT",time_no_seconds_short:"h:MM TT",time_no_minutes_short:"h TT",time_no_seconds_small_date:"h:MM TT' 'mmmm d',' yyyy''",time_milliseconds:"l",full_long:"mmm d',' yyyy 'at' h:MM TT",full_long_small_date:"h:MM TT' mmm d',' yyyy''"},bigdateformats:{fallback:[[1e9,"%.2f billion years ago"],[1e6,"%.1f million years ago"],[1e3,"%.1f thousand years ago"],[1,"%f years ago"]],compact:[[1e9,"%.2f bya"],[1e6,"%.1f mya"],[1e3,"%.1f kya"],[1,"%f years ago"]],verbose:[[1e9,"%.2f billion years ago"],[1e6,"%.1f million years ago"],[1e3,"%.1f thousand years ago"],[1,"%f years ago"]]}}};let Ot=new jt;jt.fallback=Ot;class zt{setLanguage(t){this.language=t}getLanguage(){if(this.language){if("object"==typeof this.language)return this.language;O(`I18NMixins.getLanguage: this.language should be object, but is ${typeof this.language}`)}return Ot}_(t){return this.getLanguage()._(t)}}class Rt{constructor(t,e,i){i&&this.setLanguage(i),this._el={parent:{},container:{},message_container:{},loading_icon:{},message:{}},this.options={width:600,height:600,message_class:"tl-message",message_icon_class:"tl-loading-icon"},this.container=t,C(this.options,e),this._el.container=T("div",this.options.message_class),t&&(t.appendChild(this._el.container),this._el.parent=t),this.animator={},this._initLayout(),this._initEvents()}updateMessage(t){this._el.message.innerHTML=t||this._("loading"),!this._el.parent.atributes&&this.container.attributes&&(this.container.appendChild(this._el.container),this._el.parent=this.container)}updateDisplay(t,e){}_onMouseClick(){this.fire("clicked",this.options)}_onRemove(){this._el.parent={}}_initLayout(){this._el.message_container=T("div","tl-message-container",this._el.container),this._el.loading_icon=T("div",this.options.message_icon_class,this._el.message_container),this._el.message=T("div","tl-message-content",this._el.message_container),this.updateMessage()}_initEvents(){_t.addListener(this._el.container,"click",this._onMouseClick,this),_t.addListener(this,"removed",this._onRemove,this)}}function Pt(t,e){e=e||"start_date";t.sort((function(t,i){return t[e].isBefore(i[e])?-1:t[e].isAfter(i[e])?1:0}))}function qt(t){var e={hour:null,minute:null,second:null,millisecond:null},i=null,n=t.match(/(\s*[AaPp]\.?[Mm]\.?\s*)$/);n&&(i=F(n[0]),t=F(t.substring(0,t.lastIndexOf(i))));var r=[],a=t.match(/^\s*(\d{1,2})(\d{2})\s*$/);if(a?r=a.slice(1):1==(r=t.split(":")).length&&(r=t.split(".")),r.length>4)throw new D("invalid_separator_error");let o=r[0];if(e.hour=parseInt(o),i&&"p"==i.toLowerCase()[0]&&12!=e.hour?e.hour+=12:i&&"a"==i.toLowerCase()[0]&&12==e.hour&&(e.hour=0),isNaN(e.hour)||e.hour<0||e.hour>23)throw new D("invalid_hour_err",o);if(r.length>1){let t=r[1];if(e.minute=parseInt(t),isNaN(e.minute))throw new D("invalid_minute_err",t)}if(r.length>2){var s=r[2].split(/[\.,]/);if((r=s.concat(r.slice(3))).length>2)throw new D("invalid_second_fractional_err");if(e.second=parseInt(r[0]),isNaN(e.second))throw new D("invalid_second_err",r[0]);if(2==r.length){var l=parseInt(r[1]);if(isNaN(l))throw new D("invalid_fractional_err",r[1]);e.millisecond=100*l}}return e}H(Rt,zt,ht,dt);const Ft=new RegExp("(^-?\\d+$|^$)");function Ht(t){try{return Object.keys(t).forEach(e=>{let i=t[e];if(i&&i.match&&!i.match(Ft))throw`invalid value ${i} for ${e}`}),!0}catch(t){return!1}}const $t={human:Mt,cosmological:At};var Bt=i(0),Wt=i.n(Bt);const Ut={text:["headline","text"],media:["caption","credit"]},Zt={start_date:["display_date"],end_date:["display_date"],slide:["display_date","group"],date:["display_date"]};function Gt(t,e,i){Object.keys(i).forEach(n=>{var r="slide"==n?t:t[n];r&&i[n].forEach(t=>{void 0!==r[t]&&(r[t]=e(r[t]))})})}function Yt(t){return Wt.a.sanitize(t,{ADD_TAGS:["iframe"],ADD_ATTR:["frameborder","target"]})}Wt.a.addHook("afterSanitizeAttributes",(function(t){if("A"==t.nodeName&&"href"in t){"target"in t.attributes||t.setAttribute("target","_blank");let e=t.attributes.rel;e?-1==e.value.indexOf("noopener")&&t.setAttribute("rel",`noopener ${e.value}`):t.setAttribute("rel","noopener")}}));class Vt{constructor(t){if(this.title="",this.scale="",this.events=[],this.eras=[],this.event_dict={},this.messages={errors:[],warnings:[]},"object"==typeof t&&t.events){if(this.scale=t.scale,this.events=[],this._ensureValidScale(t.events),t.title){var e=this._assignID(t.title);this._tidyFields(t.title),this.title=t.title,this.event_dict[e]=this.title}for(var i=0;i{try{this.addEra(t)}catch(t){this.logError("Era "+e+": "+t)}}),Pt(this.events),Pt(this.eras)}}logError(t){O(`logError: ${t}`),this.messages.errors.push(t)}getErrors(t){return t?this.messages.errors.join(t):this.messages.errors}validate(){void 0!==this.events&&void 0!==this.events.length&&0!=this.events.length||this.logError("Timeline configuration has no events.");for(var t=0;t275759){this.scale="cosmological";break}}}O(`Determining scale dynamically: ${this.scale}`)}$t[this.scale]||this.logError("Don't know how to process dates on scale "+this.scale)}_processDates(t){var e=$t[this.scale];if(!(t.start_date instanceof e)){var i=t.start_date;if(t.start_date=new e(i),void 0!==t.end_date&&!(t.end_date instanceof e)){var n=t.end_date,r=!0;for(let t in i)r=r&&i[t]==n[t];r?(O("End date same as start date is redundant; dropping end date"),delete t.end_date):t.end_date=new e(n)}}}getEarliestDate(){var t=this.events[0].start_date;return this.eras&&this.eras.length>0&&this.eras[0].start_date.isBefore(t)?this.eras[0].start_date:t}getLatestDate(){for(var t=[],e=0;e{if(t.data){var n=Xt(Kt(t.data,t),t);n.useMemoryStore=!0,e(n)}else t.url&&window.fetch(t.url,{mode:"cors"}).then((function(t){if(200==t.status)return t.text?t.text():t;"application/json"==t.headers.get("content-type")?t.text().then(t=>{i(JSON.parse(t))}):i({status_code:t.status,message:`Error fetching CSV: [${t.status} ${t.statusText}]`})})).then((function(i){if(i){var n=function(t,e){let i=Xt(Kt(t,e)),n=[];return i.records.forEach(t=>{let e={};i.fields.forEach((i,n)=>e[i]=t[n]),n.push(e)}),n}(i,t);n.useMemoryStore=!0,e(n)}})).catch(t=>{i({status_code:500,message:`Error fetching CSV: ${t}`})})})}function Xt(t,e){return!0!==(e=e||{}).noHeaderRow&&t.length>0?{fields:t[0].map((t,e)=>t&&t.trim?t.trim():`untitled${e}`),records:t.slice(1)}:{records:t}}function Kt(t,e){(!e||e&&!e.lineterminator)&&(t=function(t,e){if(e&&!e.lineterminator)return t.replace(/(\r\n|\n|\r)/gm,"\n");return t}(t,e));var i=function(t){var e={delimiter:",",doublequote:!0,lineterminator:"\n",quotechar:'"',skipinitialspace:!0,skipinitialrows:0};for(var i in t)"trim"===i?e.skipinitialspace=t.trim:e[i.toLowerCase()]=t[i];return e}(e);t=function(t,e){return null==t?"":(e=e||"\n",t.charAt(t.length-e.length)!==e?t:t.substring(0,t.length-e.length))}(t,i.lineterminator);var n,r,a="",o=!1,s=!1,l="",h=[],c=[];for(r=function(t){return!0!==s&&(""===t?t=null:!0===i.skipinitialspace&&(t=t.trim())),t},n=0;n{i=t}).catch(t=>{if("response_not_csv"==t.proxy_err_code)throw new D("Timeline could not read the data for your timeline. Make sure you have published it to the web.");throw new D(t.message)});let n={events:[],errors:[],warnings:[],eras:[]};return i.forEach((t,e)=>{try{if(!function(t){var e=[];if(Object.keys)e=Object.keys(t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.push(i);for(var n=0;n{e[i]=F(t[i])});var i,n={media:{caption:e["Media Caption"]||"",credit:e["Media Credit"]||"",url:e.Media||"",thumbnail:e["Media Thumbnail"]||""},text:{headline:e.Headline||"",text:e.Text||""},display_date:e["Display Date"]||"",group:e.Group||e.Tag||"",background:(i=e.Background,"string"!=typeof i?"":i.match(/^(https?:)?\/\/?/)?{url:i}:{color:i}),type:e.Type||""};if(Object.keys(e).includes("Start Date")||Object.keys(e).includes("End Date"))e["Start Date"]&&(n.start_date=Et(e["Start Date"])),e["End Date"]&&(n.end_date=Et(e["End Date"]));else{if(e.Year&&(n.start_date={year:Qt(e.Year),month:Qt(e.Month)||"",day:Qt(e.Day)||""}),e["End Year"]&&(n.end_date={year:Qt(e["End Year"])||"",month:Qt(e["End Month"])||"",day:Qt(e["End Day"])||""}),e.Time){if(!n.start_date)throw new D("invalid_start_time_without_date");C(n.start_date,qt(e.Time))}if(e["End Time"]){if(!n.end_date)throw new D("invalid_end_time_without_date");C(n.end_date,qt(e["End Time"]))}if(n.start_date&&!Ht(n.start_date))throw new D("invalid_date_err");if(n.end_date&&!Ht(n.end_date))throw new D("invalid_date_err")}return n}(t),n)}}catch(i){if(i.constructor==D)n.errors.push(i);else{i.message&&(i=i.message);let r=t.Headline||e;n.errors.push(i+`[${r}]`)}}}),n}async function ie(t,e){let i=null,n={};if("function"==typeof e?i=e:"object"==typeof e&&(n=e,i=e.callback,"function"==typeof n.callback&&(i=n.callback)),!i)throw new D("Second argument to makeConfig must be either a function or an object which includes a 'callback' property with a 'function' type value");var r,a;if(te(t)){try{a=await async function(t,e){if(!e.sheets_proxy)throw new D("Proxy option must be set to read data from Google");var i=await ee(t,e.sheets_proxy);if(i)return i}(t,n)}catch(t){return r=new Vt,"NetworkError"==t.name?r.logError(new D("network_err")):"TLError"==t.name?r.logError(t):r.logError(new D("unknown_read_err",t.name)),void i(r)}if(r=new Vt(a),a.errors)for(var o=0;oe)return null==r||Math.abs(e-s)=0;i--)if(e.hasOwnProperty(wt[i][0])){var r=wt[wt.length-1];return wt[i+1]&&(r=wt[i+1]),r[1]}return 31536e6}return 2e5}getGroupLabels(){return this._group_labels||[]}getScale(){return this._scale}getNumberOfRows(){return this._number_of_rows}getPixelWidth(){return this._pixel_width}getPosition(t){return(t-this._earliest)*this._pixels_per_milli}getPositionInfo(t){return this._positions[t]}getPixelsPerTick(){return this._axis_helper.getPixelsPerTick(this._pixels_per_milli)}getTicks(){return{major:this._axis_helper.getMajorTicks(this),minor:this._axis_helper.getMinorTicks(this)}}getDateFromTime(t){if("human"==this._scale)return new Mt(t);if("cosmological"==this._scale)return new At(new Lt(t));throw new D("time_scale_scale_err",this._scale)}getMajorScale(){return this._axis_helper.major.name}getMinorScale(){return this._axis_helper.minor.name}_assessGroups(t){for(var e=[],i=!1,n=0;n0)a.row=i.length,i.push(a),e--;else{var l=Math.min.apply(null,o),h=o.indexOf(l);a.row=h,a.end>i[h].end&&(i[h]=a),n++}}return{n_rows:i.length,n_overlaps:n}}_computePositionInfo(t,e,i){i=i||100;for(var n=[],r=!1,a=0;ai?o.end=o.start+o.width:o.end=o.start+i}else o.width=i,o.end=o.start+i;t[a].group?n.indexOf(t[a].group)<0&&n.push(t[a].group):r=!0}if(n.length){r&&n.push("");var l=[];for(a=0;a=0;h--)d.positions[h].end>o.start&&d.n_overlaps++;d.positions.push(o)}for(var c=n.length;;){var u=Math.max(0,e-c);if(!u)break;if(l.sort((function(t,e){return t.n_overlaps>e.n_overlaps?-1:t.n_overlaps1?"tl-headline tl-headline-fadeout":"tl-headline",this._text.style.height=12*e+"px")}setWidth(t){this.end_date&&(this._el.container.style.width=t+"px",t>this.options.marker_width_min?(this._el.content_container.style.width=t+"px",this._el.content_container.className="tl-timeera-content-container tl-timeera-content-container-long"):(this._el.content_container.style.width=this.options.marker_width_min+"px",this._el.content_container.className="tl-timeera-content-container"))}setClass(t){this._el.container.className=t}setRowPosition(t,e){this.setPosition({top:t}),e<56&&S(this._el.content_container,"tl-timeera-content-container-small")}setColor(t){this._el.container.className="tl-timeera tl-timeera-color"+t}_initLayout(){this._el.container=T("div","tl-timeera"),this.end_date&&(this.has_end_date=!0,this._el.container.className="tl-timeera tl-timeera-with-end"),this._el.content_container=T("div","tl-timeera-content-container",this._el.container),this._el.background=T("div","tl-timeera-background",this._el.content_container),this._el.content=T("div","tl-timeera-content",this._el.content_container),this._el.text=T("div","tl-timeera-text",this._el.content),this._text=T("h2","tl-headline",this._el.text),this.headline&&""!=this.headline&&(this._text.innerHTML=Z(this.headline)),this.onLoaded()}_initEvents(){}_updateDisplay(t,e,i){t&&(this.options.width=t),e&&(this.options.height=e)}}H(he,ht,dt);class ce{constructor(t,e,i){i&&this.setLanguage(i),this._el={container:{},content_container:{},major:{},minor:{}},this._text={},this._state={loaded:!1},this.data={},this.options={duration:1e3,ease:at,width:600,height:600},this.active=!1,this.animator={},this.axis_helper={},this.minor_ticks=[],this.major_ticks=[],this._el.container="object"==typeof t?t:x(t),C(this.options,e),this._initLayout(),this._initEvents()}show(){}hide(){}addTo(t){t.appendChild(this._el.container)}removeFrom(t){t.removeChild(this._el.container)}updateDisplay(t,e){this._updateDisplay(t,e)}getLeft(){return this._el.container.style.left.slice(0,-2)}drawTicks(t,e){var i=t.getTicks();this._el.major.className="tl-timeaxis-major",this._el.minor.className="tl-timeaxis-minor",this._el.major.style.opacity=0,this._el.minor.style.opacity=0,this.major_ticks=this._createTickElements(i.major.ticks,this._el.major,t.getAxisTickDateFormat(i.major.name)),this.minor_ticks=this._createTickElements(i.minor.ticks,this._el.minor,t.getAxisTickDateFormat(i.minor.name),i.major.ticks),this.positionTicks(t,e,!0),this._el.major.className="tl-timeaxis-major tl-animate-opacity tl-timeaxis-animate-opacity",this._el.minor.className="tl-timeaxis-minor tl-animate-opacity tl-timeaxis-animate-opacity",this._el.major.style.opacity=1,this._el.minor.style.opacity=1}_createTickElements(t,e,i,n){e.innerHTML="";var r={};if(r[new Date(-1,13,-30).getTime()]=!0,n)for(var a=0;a1?r>=n?(r=1,o.tick_text.style.opacity=1,o.tick.className="tl-timeaxis-tick"):(r++,o.tick_text.style.opacity=0,o.tick.className="tl-timeaxis-tick tl-timeaxis-tick-hidden"):(o.tick_text.style.opacity=1,o.tick.className="tl-timeaxis-tick")}}}_initLayout(){this._el.content_container=T("div","tl-timeaxis-content-container",this._el.container),this._el.major=T("div","tl-timeaxis-major",this._el.content_container),this._el.minor=T("div","tl-timeaxis-minor",this._el.content_container),this.onLoaded()}_initEvents(){}_updateDisplay(t,e,i){t&&(this.options.width=t),e&&(this.options.height=e)}}H(ce,ht,dt,zt);class ue{constructor(t,e,i){this._el={container:{},content_container:{},content:{},headline:{},date:{}},this.options={title:!1},this.data={unique_id:"",headline:"headline",text:"text"},function(t,e){t.data=N({},t.data,e),""===t.data.unique_id&&(t.data.unique_id=B(6))}(this,t),C(this.options,e),this._el.container=T("div","tl-text"),this._el.container.id=this.data.unique_id,this._initLayout(),i&&i.appendChild(this._el.container)}show(){}hide(){}addTo(t){t.appendChild(this._el.container)}removeFrom(t){t.removeChild(this._el.container)}headlineHeight(){return this._el.headline.offsetHeight+40}addDateText(t){this._el.date.innerHTML=t}onLoaded(){this.fire("loaded",this.data)}onAdd(){this.fire("added",this.data)}onRemove(){this.fire("removed",this.data)}_initLayout(){if(this._el.content_container=T("div","tl-text-content-container",this._el.container),this._el.date=T("h3","tl-headline-date",this._el.content_container),""!=this.data.headline){var t="tl-headline";this.options.title&&(t="tl-headline tl-headline-title"),this._el.headline=T("h2",t,this._el.content_container),this._el.headline.innerHTML=this.data.headline}if(""!=this.data.text){var e="";e+=(i=1==this.options.autolink?Y(this.data.text):this.data.text).match(/

[\s\S]*?<\/p>/)?i:"

"+i+"

",this._el.content=T("div","tl-text-content",this._el.content_container),this._el.content.innerHTML=e}var i;this.onLoaded()}}H(ue,ht);class de{constructor(t,e,i){i&&this.setLanguage(i),this._el={container:{},content_container:{},content:{},content_item:{},content_link:{},caption:null,credit:null,parent:{},link:null},this.player=null,this.timer=null,this.load_timer=null,this.message=null,this.media_id=null,this._state={loaded:!1,show_meta:!1,media_loaded:!1},this.data={unique_id:null,url:null,credit:null,caption:null,credit_alternate:null,caption_alternate:null,link:null,link_target:null},this.options={api_key_flickr:"bd3a7c45ddd52f3101825d41563a6125",api_key_googlemaps:"AIzaSyB9dW8e_iRrATFa8g24qB6BDBGdkrLDZYI",api_key_embedly:"",credit_height:0,caption_height:0,background:0},this.animator={},C(this.options,e),C(this.data,t),this.options.background||(this._el.container=T("div","tl-media"),this.data.unique_id&&(this._el.container.id=this.data.unique_id),this._initLayout())}loadMedia(){var t=this;if(!this._state.loaded)try{this.load_timer=setTimeout((function(){t.loadingMessage(),t._loadMedia(),t._updateDisplay()}),1200)}catch(t){trace("Error loading media for ",this._media),trace(t)}}_updateMessage(t){this.message&&this.message.updateMessage(t)}loadingMessage(){this._updateMessage(this._("loading")+" "+this.options.media_name)}errorMessage(t){t=t?this._("error")+": "+t:this._("error"),this._updateMessage(t)}updateMediaDisplay(t){this._state.loaded&&!this.options.background&&(this._el.content_item.style.maxHeight=c?this.options.height/2+"px":this.options.height-this.options.credit_height-this.options.caption_height-30+"px",this._el.container.style.maxWidth=this.options.width+"px",p&&(this._el.content_item.offsetWidth,this._el.content_item.offsetHeight),this._updateMediaDisplay(t),this._state.media_loaded&&(this._el.credit&&(this._el.credit.style.width=this._el.content_item.offsetWidth+"px"),this._el.caption&&(this._el.caption.style.width=this._el.content_item.offsetWidth+"px")))}_loadMedia(){this.onLoaded()}_updateMediaDisplay(t){p&&(this._el.content_item.style.maxWidth=this.options.width+"px",this._el.content_item.style.width="auto")}_getMeta(){}_getImageURL(t,e){return""}show(){}hide(){}addTo(t){t.appendChild(this._el.container),this.onAdd()}removeFrom(t){t.removeChild(this._el.container),this.onRemove()}getImageURL(t,e){return this._getImageURL(t,e)}updateDisplay(t,e,i){this._updateDisplay(t,e,i)}stopMedia(){this._stopMedia()}loadErrorDisplay(t){try{this._el.content.removeChild(this._el.content_item)}catch(t){}this._el.content_item=T("div","tl-media-item tl-media-loaderror",this._el.content),this._el.content_item.innerHTML="

"+t+"

",this.onLoaded(!0)}onLoaded(t){this._state.loaded=!0,this.fire("loaded",this.data),this.message&&this.message.hide(),t||this.options.background||this.showMeta(),this.updateDisplay()}onMediaLoaded(t){this._state.media_loaded=!0,this.fire("media_loaded",this.data),this._el.credit&&(this._el.credit.style.width=this._el.content_item.offsetWidth+"px"),this._el.caption&&(this._el.caption.style.width=this._el.content_item.offsetWidth+"px")}showMeta(t,e){this._state.show_meta=!0,this.data.credit&&""!=this.data.credit&&(this._el.credit=T("div","tl-credit",this._el.content_container),this._el.credit.innerHTML=1==this.options.autolink?Y(this.data.credit):this.data.credit,this.options.credit_height=this._el.credit.offsetHeight),this.data.caption&&""!=this.data.caption&&(this._el.caption=T("div","tl-caption",this._el.content_container),this._el.caption.innerHTML=1==this.options.autolink?Y(this.data.caption):this.data.caption,this.options.caption_height=this._el.caption.offsetHeight),this.data.caption&&this.data.credit||this.getMeta()}getMeta(){this._getMeta()}updateMeta(){!this.data.credit&&this.data.credit_alternate&&(this._el.credit=T("div","tl-credit",this._el.content_container),this._el.credit.innerHTML=this.data.credit_alternate,this.options.credit_height=this._el.credit.offsetHeight),!this.data.caption&&this.data.caption_alternate&&(this._el.caption=T("div","tl-caption",this._el.content_container),this._el.caption.innerHTML=this.data.caption_alternate,this.options.caption_height=this._el.caption.offsetHeight),this.updateDisplay()}onAdd(){this.fire("added",this.data)}onRemove(){this.fire("removed",this.data)}_initLayout(){this.message=new Rt(this._el.container,this.options,this.getLanguage()),this._el.content_container=T("div","tl-media-content-container",this._el.container),this.data.link&&""!=this.data.link?(this._el.link=T("a","tl-media-link",this._el.content_container),this._el.link.href=this.data.link,this.data.link_target&&""!=this.data.link_target?this._el.link.target=this.data.link_target:this._el.link.target="_blank","_blank"==this._el.link.target&&this._el.link.setAttribute("rel","noopener"),this._el.content=T("div","tl-media-content",this._el.link)):this._el.content=T("div","tl-media-content",this._el.content_container)}_updateDisplay(t,e,i){t&&(this.options.width=t),e&&(this.options.height=e),i&&(this.options.layout=i),this._el.credit&&(this.options.credit_height=this._el.credit.offsetHeight),this._el.caption&&(this.options.caption_height=this._el.caption.offsetHeight+5),this.updateMediaDisplay(this.options.layout)}domCreate(...t){return T(...t)}_stopMedia(){}}H(de,ht,zt);class fe extends de{_loadMedia(){this.loadingMessage(),this.options.background||this.createMedia(),this.onLoaded()}createMedia(){var t=this,e="tl-media-item tl-media-image tl-media-shadow";(this.data.url.match(/.png(\?.*)?$/)||this.data.url.match(/.svg(\?.*)?$/))&&(e="tl-media-item tl-media-image"),this.data.link?(this._el.content_link=this.domCreate("a","",this._el.content),this._el.content_link.href=this.data.link,this._el.content_link.target="_blank",this._el.content_link.setAttribute("rel","noopener"),this._el.content_item=this.domCreate("img",e,this._el.content_link)):this._el.content_item=this.domCreate("img",e,this._el.content),this.data.alt?this._el.content_item.alt=this.data.alt:this.data.caption&&(this._el.content_item.alt=G(this.data.caption)),this.data.title?this._el.content_item.title=this.data.title:this.data.caption&&(this._el.content_item.title=G(this.data.caption)),this._el.content_item.addEventListener("load",(function(e){t.onMediaLoaded()})),this._el.content_item.src=this.getImageURL()}getImageURL(t,e){return V(this.data.url)}_updateMediaDisplay(t){p&&(this._el.content_item.style.width="auto")}}function pe(t,e,i,n){me.js(t,e,i,n)}function _e(t,e,i,n){me.css(t,e,i,n)}let me=new class{constructor(t){this.doc=t,this.pending={},this.queue={css:[],js:[]},this.styleSheets=t.styleSheets,this.env=this.getEnv(),this.head=this.doc.head||this.doc.getElementsByTagName("head")[0],this.pollCount=0}createNode(t,e){var i,n=this.doc.createElement(t);for(i in e)e.hasOwnProperty(i)&&n.setAttribute(i,e[i]);return n}finish(t){var e,i,n=this.pending[t];n&&(e=n.callback,(i=n.urls).shift(),this.pollCount=0,i.length||(e&&e.call(n.context,n.obj),this.pending[t]=null,this.queue[t].length&&this.load(t)))}getEnv(){var t=navigator.userAgent,e={async:!0===this.doc.createElement("script").async};return(e.webkit=/AppleWebKit\//.test(t))||(e.ie=/MSIE/.test(t))||(e.opera=/Opera/.test(t))||(e.gecko=/Gecko\//.test(t))||(e.unknown=!0),e}load(t,e,i,n,r){var a,o,s,l,h,c,u=function(){this.finish(t)}.bind(this),d="css"===t,f=[];if(e)if(e="string"==typeof e?[e]:e.concat(),d||this.env.async||this.env.gecko||this.env.opera)this.queue[t].push({urls:e,callback:i,obj:n,context:r});else for(a=0,o=e.length;a=0;)if(this.styleSheets[t].href===e.urls[0]){this.finish("css");break}this.pollCount+=1,e&&(this.pollCount<200?setTimeout(this.pollWebKit.bind(this),50):this.finish("css"))}}css(t,e,i,n){this.load("css",t,e,i,n)}js(t,e,i,n){this.load("js",t,e,i,n)}}(document);class ge extends de{_loadMedia(){var t,e=this;this.youtube_loaded=!1,this._el.content_item=this.domCreate("div","tl-media-item tl-media-youtube tl-media-shadow",this._el.content),this._el.content_item.id=B(7),t=function(t){var e,i,n,r=[];(e=t.toString()).match("&")?e=e.replace("&","&"):e.match("&")?e=e.replace("&","&"):e.match("&")&&(e=e.replace("&","&")),n=e.slice(e.indexOf("?")+1).split("&");for(var a=0;a"+e.media_id+"
"+i,e.loadErrorDisplay(n)}})}createMedia(t){var e="";if(t.query){var i="";(e={entry:{},title:"",text:"",extract:"",paragraphs:1,page_image:"",text_array:[]}).entry=function(t,e){if(void 0!==t){var i=0;for(var n in t){if(e===i)return t[n];i++}return""}return""}(t.query.pages,0),e.extract=e.entry.extract,e.title=e.entry.title,e.page_image=e.entry.thumbnail,e.extract.match("

")?e.text_array=e.extract.split("

"):e.text_array.push(e.extract);for(var n=0;n"+e.text_array[n+1]);i+="",i+="

"+e.title+"

",i+=""+this._("wikipedia")+"
",e.page_image,i+=e.text,e.extract.match("REDIRECT")||(this._el.content_item.innerHTML=i,this.onLoaded())}}updateMediaDisplay(){}}class be extends de{_loadMedia(){var t,e=this;this._el.content_item=this.domCreate("div","tl-media-item tl-media-iframe tl-media-soundcloud tl-media-shadow",this._el.content),this.media_id=this.data.url,t="https://soundcloud.com/oembed?url="+this.media_id+"&format=js&callback=?",gt(t,(function(t){pe("https://w.soundcloud.com/player/api.js",(function(){e.createMedia(t)}))}))}createMedia(t){this._el.content_item.innerHTML=t.html,self.widget=SC.Widget(this._el.content_item.querySelector("iframe")),this.soundCloudCreated=!0,this.onLoaded()}_stopMedia(){this.soundCloudCreated&&self.widget.pause()}}class xe extends de{_loadMedia(){var t,e=this;this._el.content_item=this.domCreate("div","tl-media-item tl-media-iframe tl-media-vimeo tl-media-shadow",this._el.content),this.media_id=this.data.url.split(/video\/|\/\/vimeo\.com\//)[1].split(/[?&]/)[0];var i=null;this.data.url.match(/#t=([^&]+).*/)&&(i=this.data.url.match(/#t=([^&]+).*/)[1]),t="https://player.vimeo.com/video/"+this.media_id+"?api=1&title=0&byline=0&portrait=0&color=ffffff",i&&(t=t+="&#t="+i),this.player=this.domCreate("iframe","",this._el.content_item),this.player.addEventListener("load",(function(t){e.onMediaLoaded()})),this.player.width="100%",this.player.height="100%",this.player.frameBorder="0",this.player.src=t,this.player.setAttribute("allowfullscreen",""),this.player.setAttribute("webkitallowfullscreen",""),this.player.setAttribute("mozallowfullscreen",""),this.onLoaded()}_updateMediaDisplay(){this._el.content_item.style.height=X({w:this._el.content_item.offsetWidth})+"px"}_stopMedia(){try{this.player.contentWindow.postMessage(JSON.stringify({method:"pause"}),"https://player.vimeo.com")}catch(t){O(t)}}}class ke extends de{_loadMedia(){var t;this._el.content_item=this.domCreate("div","tl-media-item tl-media-iframe tl-media-dailymotion",this._el.content),this.data.url.match("video")?this.media_id=this.data.url.split("video/")[1].split(/[?&]/)[0]:this.media_id=this.data.url.split("embed/")[1].split(/[?&]/)[0],t="https://www.dailymotion.com/embed/video/"+this.media_id+"?api=postMessage",this._el.content_item.innerHTML="",this.onLoaded()}_updateMediaDisplay(){this._state.loaded&&(this._el.content_item.style.height=X({w:this._el.content_item.offsetWidth})+"px")}_stopMedia(){this._state.loaded&&this._el.content_item.querySelector("iframe").contentWindow.postMessage('{"command":"pause","parameters":[]}',"*")}}class Te extends de{_loadMedia(){var t;this._el.content_item=this.domCreate("div","tl-media-item tl-media-iframe tl-media-vine tl-media-shadow",this._el.content),this.media_id=this.data.url.split("vine.co/v/")[1],t="https://vine.co/v/"+this.media_id+"/embed/simple",this._el.content_item.innerHTML="