netlify-cms-widget-create-select
Version:
A simple create select widget for netlify-cms which allows creating entries. The create select widget's entries are up to date to the last website build. The create select can be populated by plain text file, json file, RSS feed or HTML page.
2 lines • 749 kB
JavaScript
/*! For license information please see index.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.CreateSelectWidget=t():e.CreateSelectWidget=t()}(self,(function(){return(()=>{var e={8424:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.default=e.exports,e.exports.__esModule=!0},7044:(e,t,n)=>{"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.r(t),n.d(t,{CacheProvider:()=>S,ClassNames:()=>Z,Global:()=>J,ThemeContext:()=>T,createElement:()=>q,css:()=>U,jsx:()=>q,keyframes:()=>$,withEmotionCache:()=>E});var a=n(5466),i=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var a=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var i=105===e.charCodeAt(1)&&64===e.charCodeAt(0);a.insertRule(e,i?0:a.cssRules.length)}catch(e){}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();const o=function(e){function t(e,r,u,l,f){for(var h,p,m,_,M,L=0,w=0,k=0,Y=0,x=0,O=0,H=m=h=0,A=0,z=0,F=0,I=0,N=u.length,W=N-1,R="",B="",V="",U="";A<N;){if(p=u.charCodeAt(A),A===W&&0!==w+Y+k+L&&(0!==w&&(p=47===w?10:47),Y=k=L=0,N++,W++),0===w+Y+k+L){if(A===W&&(0<z&&(R=R.replace(c,"")),0<R.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:R+=u.charAt(A)}p=59}switch(p){case 123:for(h=(R=R.trim()).charCodeAt(0),m=1,I=++A;A<N;){switch(p=u.charCodeAt(A)){case 123:m++;break;case 125:m--;break;case 47:switch(p=u.charCodeAt(A+1)){case 42:case 47:e:{for(H=A+1;H<W;++H)switch(u.charCodeAt(H)){case 47:if(42===p&&42===u.charCodeAt(H-1)&&A+2!==H){A=H+1;break e}break;case 10:if(47===p){A=H+1;break e}}A=H}}break;case 91:p++;case 40:p++;case 34:case 39:for(;A++<W&&u.charCodeAt(A)!==p;);}if(0===m)break;A++}switch(m=u.substring(I,A),0===h&&(h=(R=R.replace(d,"").trim()).charCodeAt(0)),h){case 64:switch(0<z&&(R=R.replace(c,"")),p=R.charCodeAt(1)){case 100:case 109:case 115:case 45:z=r;break;default:z=j}if(I=(m=t(r,z,m,p,f+1)).length,0<C&&(M=s(3,m,z=n(j,R,F),r,T,D,I,p,f,l),R=z.join(""),void 0!==M&&0===(I=(m=M.trim()).length)&&(p=0,m="")),0<I)switch(p){case 115:R=R.replace(b,o);case 100:case 109:case 45:m=R+"{"+m+"}";break;case 107:m=(R=R.replace(y,"$1 $2"))+"{"+m+"}",m=1===E||2===E&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=R+m,112===l&&(B+=m,m="")}else m="";break;default:m=t(r,n(r,R,F),m,l,f+1)}V+=m,m=F=z=H=h=0,R="",p=u.charCodeAt(++A);break;case 125:case 59:if(1<(I=(R=(0<z?R.replace(c,""):R).trim()).length))switch(0===H&&(h=R.charCodeAt(0),45===h||96<h&&123>h)&&(I=(R=R.replace(" ",":")).length),0<C&&void 0!==(M=s(1,R,r,e,T,D,B.length,l,f,l))&&0===(I=(R=M.trim()).length)&&(R="\0\0"),h=R.charCodeAt(0),p=R.charCodeAt(1),h){case 0:break;case 64:if(105===p||99===p){U+=R+u.charAt(A);break}default:58!==R.charCodeAt(I-1)&&(B+=a(R,h,p,R.charCodeAt(2)))}F=z=H=h=0,R="",p=u.charCodeAt(++A)}}switch(p){case 13:case 10:47===w?w=0:0===1+h&&107!==l&&0<R.length&&(z=1,R+="\0"),0<C*P&&s(0,R,r,e,T,D,B.length,l,f,l),D=1,T++;break;case 59:case 125:if(0===w+Y+k+L){D++;break}default:switch(D++,_=u.charAt(A),p){case 9:case 32:if(0===Y+L+w)switch(x){case 44:case 58:case 9:case 32:_="";break;default:32!==p&&(_=" ")}break;case 0:_="\\0";break;case 12:_="\\f";break;case 11:_="\\v";break;case 38:0===Y+w+L&&(z=F=1,_="\f"+_);break;case 108:if(0===Y+w+L+S&&0<H)switch(A-H){case 2:112===x&&58===u.charCodeAt(A-3)&&(S=x);case 8:111===O&&(S=O)}break;case 58:0===Y+w+L&&(H=A);break;case 44:0===w+k+Y+L&&(z=1,_+="\r");break;case 34:case 39:0===w&&(Y=Y===p?0:0===Y?p:Y);break;case 91:0===Y+w+k&&L++;break;case 93:0===Y+w+k&&L--;break;case 41:0===Y+w+L&&k--;break;case 40:if(0===Y+w+L){if(0===h)switch(2*x+3*O){case 533:break;default:h=1}k++}break;case 64:0===w+k+Y+L+H+m&&(m=1);break;case 42:case 47:if(!(0<Y+L+k))switch(w){case 0:switch(2*p+3*u.charCodeAt(A+1)){case 235:w=47;break;case 220:I=A,w=42}break;case 42:47===p&&42===x&&I+2!==A&&(33===u.charCodeAt(I+2)&&(B+=u.substring(I,A+1)),_="",w=0)}}0===w&&(R+=_)}O=x,x=p,A++}if(0<(I=B.length)){if(z=r,0<C&&void 0!==(M=s(2,B,z,e,T,D,I,l,f,l))&&0===(B=M).length)return U+B+V;if(B=z.join(",")+"{"+B+"}",0!=E*S){switch(2!==E||i(B,2)||(S=0),S){case 111:B=B.replace(v,":-moz-$1")+B;break;case 112:B=B.replace(g,"::-webkit-input-$1")+B.replace(g,"::-moz-$1")+B.replace(g,":-ms-input-$1")+B}S=0}}return U+B+V}function n(e,t,n){var a=t.trim().split(m);t=a;var i=a.length,o=e.length;switch(o){case 0:case 1:var s=0;for(e=0===o?"":e[0]+" ";s<i;++s)t[s]=r(e,t[s],n).trim();break;default:var u=s=0;for(t=[];s<i;++s)for(var l=0;l<o;++l)t[u++]=r(e[l]+" ",a[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(_,"$1"+e.trim());case 58:return e.trim()+t.replace(_,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(_,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function a(e,t,n,r){var o=e+";",s=2*t+3*n+4*r;if(944===s){e=o.indexOf(":",9)+1;var u=o.substring(e,o.length-1).trim();return u=o.substring(0,e).trim()+u+";",1===E||2===E&&i(u,1)?"-webkit-"+u+u:u}if(0===E||2===E&&!i(o,1))return o;switch(s){case 1015:return 97===o.charCodeAt(10)?"-webkit-"+o+o:o;case 951:return 116===o.charCodeAt(3)?"-webkit-"+o+o:o;case 963:return 110===o.charCodeAt(5)?"-webkit-"+o+o:o;case 1009:if(100!==o.charCodeAt(4))break;case 969:case 942:return"-webkit-"+o+o;case 978:return"-webkit-"+o+"-moz-"+o+o;case 1019:case 983:return"-webkit-"+o+"-moz-"+o+"-ms-"+o+o;case 883:if(45===o.charCodeAt(8))return"-webkit-"+o+o;if(0<o.indexOf("image-set(",11))return o.replace(x,"$1-webkit-$2")+o;break;case 932:if(45===o.charCodeAt(4))switch(o.charCodeAt(5)){case 103:return"-webkit-box-"+o.replace("-grow","")+"-webkit-"+o+"-ms-"+o.replace("grow","positive")+o;case 115:return"-webkit-"+o+"-ms-"+o.replace("shrink","negative")+o;case 98:return"-webkit-"+o+"-ms-"+o.replace("basis","preferred-size")+o}return"-webkit-"+o+"-ms-"+o+o;case 964:return"-webkit-"+o+"-ms-flex-"+o+o;case 1023:if(99!==o.charCodeAt(8))break;return"-webkit-box-pack"+(u=o.substring(o.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+o+"-ms-flex-pack"+u+o;case 1005:return h.test(o)?o.replace(f,":-webkit-")+o.replace(f,":-moz-")+o:o;case 1e3:switch(t=(u=o.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=o.replace(M,"tb");break;case 232:u=o.replace(M,"tb-rl");break;case 220:u=o.replace(M,"lr");break;default:return o}return"-webkit-"+o+"-ms-"+u+o;case 1017:if(-1===o.indexOf("sticky",9))break;case 975:switch(t=(o=e).length-10,s=(u=(33===o.charCodeAt(t)?o.substring(0,t):o).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:o=o.replace(u,"-webkit-"+u)+";"+o;break;case 207:case 102:o=o.replace(u,"-webkit-"+(102<s?"inline-":"")+"box")+";"+o.replace(u,"-webkit-"+u)+";"+o.replace(u,"-ms-"+u+"box")+";"+o}return o+";";case 938:if(45===o.charCodeAt(5))switch(o.charCodeAt(6)){case 105:return u=o.replace("-items",""),"-webkit-"+o+"-webkit-box-"+u+"-ms-flex-"+u+o;case 115:return"-webkit-"+o+"-ms-flex-item-"+o.replace(w,"")+o;default:return"-webkit-"+o+"-ms-flex-line-pack"+o.replace("align-content","").replace(w,"")+o}break;case 973:case 989:if(45!==o.charCodeAt(3)||122===o.charCodeAt(4))break;case 931:case 953:if(!0===Y.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?a(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):o.replace(u,"-webkit-"+u)+o.replace(u,"-moz-"+u.replace("fill-",""))+o;break;case 962:if(o="-webkit-"+o+(102===o.charCodeAt(5)?"-ms-"+o:"")+o,211===n+r&&105===o.charCodeAt(13)&&0<o.indexOf("transform",10))return o.substring(0,o.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+o}return o}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),H(2!==t?r:r.replace(k,"$1"),n,t)}function o(e,t){var n=a(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(L," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,a,i,o,s,u,d){for(var c,f=0,h=t;f<C;++f)switch(c=O[f].call(l,e,h,n,r,a,i,o,s,u,d)){case void 0:case!1:case!0:case null:break;default:h=c}if(h!==t)return h}function u(e){return void 0!==(e=e.prefix)&&(H=null,e?"function"!=typeof e?E=1:(E=2,H=e):E=0),u}function l(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<C){var a=s(-1,n,r,r,T,D,0,0,0,0);void 0!==a&&"string"==typeof a&&(n=a)}var i=t(j,r,n,0,0);return 0<C&&void 0!==(a=s(-2,i,r,r,T,D,i.length,0,0,0))&&(i=a),S=0,D=T=1,i}var d=/^\0+/g,c=/[\0\r\f]/g,f=/: */g,h=/zoo|gra/,p=/([,: ])(transform)/g,m=/,\r+?/g,_=/([\t\r\n ])*\f?&/g,y=/@(k\w+)\s*(\S*)\s*/,g=/::(place)/g,v=/:(read-only)/g,M=/[svh]\w+-[tblr]{2}/,b=/\(\s*(.*)\s*\)/g,L=/([\s\S]*?);/g,w=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,Y=/stretch|:\s*\w+\-(?:conte|avail)/,x=/([^-])(image-set\()/,D=1,T=1,S=0,E=1,j=[],O=[],C=0,H=null,P=0;return l.use=function e(t){switch(t){case void 0:case null:C=O.length=0;break;default:if("function"==typeof t)O[C++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else P=0|!!t}return e},l.set=u,void 0!==e&&u(e),l};var s="/*|*/";function u(e){e&&l.current.insert(e+"}")}var l={current:null},d=function(e,t,n,r,a,i,o,d,c,f){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return l.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===d)return t+s;break;case 3:switch(d){case 102:case 112:return l.current.insert(n[0]+t),"";default:return t+(0===f?s:"")}case-2:t.split("/*|*/}").forEach(u)}};function c(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var f,h=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var a=t;do{e.insert("."+r,a,e.sheet,!0),a=a.next}while(void 0!==a)}},p=n(1604),m=n(8319),_=/[A-Z]|^ms/g,y=/_EMO_([^_]+?)_([^]*?)_EMO_/g,g=function(e){return 45===e.charCodeAt(1)},v=function(e){return null!=e&&"boolean"!=typeof e},M=(f={},function(e){return void 0===f[e]&&(f[e]=g(t=e)?t:t.replace(_,"-$&").toLowerCase()),f[e];var t}),b=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(y,(function(e,t,n){return w={name:t,styles:n,next:w},t}))}return 1===m.Z[e]||g(e)||"number"!=typeof t||0===t?t:t+"px"};function L(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return w={name:n.name,styles:n.styles,next:w},n.name;if(void 0!==n.styles){var a=n.next;if(void 0!==a)for(;void 0!==a;)w={name:a.name,styles:a.styles,next:w},a=a.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=L(e,t,n[a],!1);else for(var i in n){var o=n[i];if("object"!=typeof o)null!=t&&void 0!==t[o]?r+=i+"{"+t[o]+"}":v(o)&&(r+=M(i)+":"+b(i,o)+";");else if(!Array.isArray(o)||"string"!=typeof o[0]||null!=t&&void 0!==t[o[0]]){var s=L(e,t,o,!1);switch(i){case"animation":case"animationName":r+=M(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var u=0;u<o.length;u++)v(o[u])&&(r+=M(i)+":"+b(i,o[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=w,o=n(e);return w=i,L(e,t,o,r)}}if(null==t)return n;var s=t[n];return void 0===s||r?n:s}var w,k=/label:\s*([^\s;\n{]+)\s*;/g,Y=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,a="";w=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,a+=L(n,t,i,!1)):a+=i[0];for(var o=1;o<e.length;o++)a+=L(n,t,e[o],46===a.charCodeAt(a.length-1)),r&&(a+=i[o]);k.lastIndex=0;for(var s,u="";null!==(s=k.exec(a));)u+="-"+s[1];return{name:(0,p.Z)(a)+u,styles:a,next:w}},x=Object.prototype.hasOwnProperty,D=(0,a.createContext)("undefined"!=typeof HTMLElement?function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r,a=new o(t),s={};r=e.container||document.head;var u,c=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(c,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){s[e]=!0})),e.parentNode!==r&&r.appendChild(e)})),a.use(e.stylisPlugins)(d),u=function(e,t,n,r){var i=t.name;l.current=n,a(e,t.styles),r&&(f.inserted[i]=!0)};var f={key:n,sheet:new i({key:n,container:r,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:s,registered:{},insert:u};return f}():null),T=(0,a.createContext)({}),S=D.Provider,E=function(e){var t=function(t,n){return(0,a.createElement)(D.Consumer,null,(function(r){return e(t,r,n)}))};return(0,a.forwardRef)(t)},j="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",O=function(e,t){var n={};for(var r in t)x.call(t,r)&&(n[r]=t[r]);return n[j]=e,n},C=function(e,t,n,r){var i=null===n?t.css:t.css(n);"string"==typeof i&&void 0!==e.registered[i]&&(i=e.registered[i]);var o=t[j],s=[i],u="";"string"==typeof t.className?u=c(e.registered,s,t.className):null!=t.className&&(u=t.className+" ");var l=Y(s);h(e,l,"string"==typeof o),u+=e.key+"-"+l.name;var d={};for(var f in t)x.call(t,f)&&"css"!==f&&f!==j&&(d[f]=t[f]);return d.ref=r,d.className=u,(0,a.createElement)(o,d)},H=E((function(e,t,n){return"function"==typeof e.css?(0,a.createElement)(T.Consumer,null,(function(r){return C(t,e,r,n)})):C(t,e,null,n)})),P=/[A-Z]|^ms/g,A=/_EMO_([^_]+?)_([^]*?)_EMO_/g,z=function(e){return 45===e.charCodeAt(1)},F=function(e){return null!=e&&"boolean"!=typeof e},I=function(e){var t={};return function(e){return void 0===t[e]&&(t[e]=z(n=e)?n:n.replace(P,"-$&").toLowerCase()),t[e];var n}}(),N=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(A,(function(e,t,n){return R={name:t,styles:n,next:R},t}))}return 1===m.Z[e]||z(e)||"number"!=typeof t||0===t?t:t+"px"};function W(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return R={name:n.name,styles:n.styles,next:R},n.name;if(void 0!==n.styles){var a=n.next;if(void 0!==a)for(;void 0!==a;)R={name:a.name,styles:a.styles,next:R},a=a.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=W(e,t,n[a],!1);else for(var i in n){var o=n[i];if("object"!=typeof o)null!=t&&void 0!==t[o]?r+=i+"{"+t[o]+"}":F(o)&&(r+=I(i)+":"+N(i,o)+";");else if(!Array.isArray(o)||"string"!=typeof o[0]||null!=t&&void 0!==t[o[0]]){var s=W(e,t,o,!1);switch(i){case"animation":case"animationName":r+=I(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var u=0;u<o.length;u++)F(o[u])&&(r+=I(i)+":"+N(i,o[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=R,o=n(e);return R=i,W(e,t,o,r)}}if(null==t)return n;var s=t[n];return void 0===s||r?n:s}var R,B=/label:\s*([^\s;\n{]+)\s*;/g,V=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,a="";R=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,a+=W(n,t,i,!1)):a+=i[0];for(var o=1;o<e.length;o++)a+=W(n,t,e[o],46===a.charCodeAt(a.length-1)),r&&(a+=i[o]);B.lastIndex=0;for(var s,u="";null!==(s=B.exec(a));)u+="-"+s[1];return{name:(0,p.Z)(a)+u,styles:a,next:R}};const U=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return V(t)};var q=function(e,t){var n=arguments;if(null==t||!x.call(t,"css"))return a.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=H,i[1]=O(e,t);for(var o=2;o<r;o++)i[o]=n[o];return a.createElement.apply(null,i)},J=E((function(e,t){var n=e.styles;if("function"==typeof n)return(0,a.createElement)(T.Consumer,null,(function(e){var r=Y([n(e)]);return(0,a.createElement)(G,{serialized:r,cache:t})}));var r=Y([n]);return(0,a.createElement)(G,{serialized:r,cache:t})})),G=function(e){var t,n;function a(t,n,r){return e.call(this,t,n,r)||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var o=a.prototype;return o.componentDidMount=function(){this.sheet=new i({key:this.props.cache.key+"-global",nonce:this.props.cache.sheet.nonce,container:this.props.cache.sheet.container});var e=document.querySelector("style[data-emotion-"+this.props.cache.key+'="'+this.props.serialized.name+'"]');null!==e&&this.sheet.tags.push(e),this.props.cache.sheet.tags.length&&(this.sheet.before=this.props.cache.sheet.tags[0]),this.insertStyles()},o.componentDidUpdate=function(e){e.serialized.name!==this.props.serialized.name&&this.insertStyles()},o.insertStyles=function(){if(void 0!==this.props.serialized.next&&h(this.props.cache,this.props.serialized.next,!0),this.sheet.tags.length){var e=this.sheet.tags[this.sheet.tags.length-1].nextElementSibling;this.sheet.before=e,this.sheet.flush()}this.props.cache.insert("",this.props.serialized,this.sheet,!1)},o.componentWillUnmount=function(){this.sheet.flush()},o.render=function(){return null},a}(a.Component),$=function(){var e=U.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},K=function e(t){for(var n=t.length,r=0,a="";r<n;r++){var i=t[r];if(null!=i){var o=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))o=e(i);else for(var s in o="",i)i[s]&&s&&(o&&(o+=" "),o+=s);break;default:o=i}o&&(a&&(a+=" "),a+=o)}}return a};function Q(e,t,n){var r=[],a=c(e,r,n);return r.length<2?n:a+t(r)}var Z=E((function(e,t){return(0,a.createElement)(T.Consumer,null,(function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var a=Y(n,t.registered);return h(t,a,!1),t.key+"-"+a.name},a={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return Q(t.registered,r,K(n))},theme:n};return e.children(a)}))}))},1604:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e){for(var t,n=0,r=0,a=e.length;a>=4;++r,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(a){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}},576:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.r(t),n.d(t,{default:()=>T});var a=n(5466),i=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;const o=(s={},function(e){return void 0===s[e]&&(s[e]=(t=e,i.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91)),s[e];var t});var s,u=n(7044);function l(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var d=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var a=t;do{e.insert("."+r,a,e.sheet,!0),a=a.next}while(void 0!==a)}},c=n(1604),f=n(8319),h=/[A-Z]|^ms/g,p=/_EMO_([^_]+?)_([^]*?)_EMO_/g,m=function(e){return 45===e.charCodeAt(1)},_=function(e){return null!=e&&"boolean"!=typeof e},y=function(e){var t={};return function(e){return void 0===t[e]&&(t[e]=m(n=e)?n:n.replace(h,"-$&").toLowerCase()),t[e];var n}}(),g=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(p,(function(e,t,n){return M={name:t,styles:n,next:M},t}))}return 1===f.Z[e]||m(e)||"number"!=typeof t||0===t?t:t+"px"};function v(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return M={name:n.name,styles:n.styles,next:M},n.name;if(void 0!==n.styles){var a=n.next;if(void 0!==a)for(;void 0!==a;)M={name:a.name,styles:a.styles,next:M},a=a.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=v(e,t,n[a],!1);else for(var i in n){var o=n[i];if("object"!=typeof o)null!=t&&void 0!==t[o]?r+=i+"{"+t[o]+"}":_(o)&&(r+=y(i)+":"+g(i,o)+";");else if(!Array.isArray(o)||"string"!=typeof o[0]||null!=t&&void 0!==t[o[0]]){var s=v(e,t,o,!1);switch(i){case"animation":case"animationName":r+=y(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var u=0;u<o.length;u++)_(o[u])&&(r+=y(i)+":"+g(i,o[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=M,o=n(e);return M=i,v(e,t,o,r)}}if(null==t)return n;var s=t[n];return void 0===s||r?n:s}var M,b=/label:\s*([^\s;\n{]+)\s*;/g,L=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,a="";M=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,a+=v(n,t,i,!1)):a+=i[0];for(var o=1;o<e.length;o++)a+=v(n,t,e[o],46===a.charCodeAt(a.length-1)),r&&(a+=i[o]);b.lastIndex=0;for(var s,u="";null!==(s=b.exec(a));)u+="-"+s[1];return{name:(0,c.Z)(a)+u,styles:a,next:M}},w=o,k=function(e){return"theme"!==e&&"innerRef"!==e},Y=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?w:k};function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(n,!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const T=function e(t,n){var r,i,o;void 0!==n&&(r=n.label,o=n.target,i=t.__emotion_forwardProp&&n.shouldForwardProp?function(e){return t.__emotion_forwardProp(e)&&n.shouldForwardProp(e)}:n.shouldForwardProp);var s=t.__emotion_real===t,c=s&&t.__emotion_base||t;"function"!=typeof i&&s&&(i=t.__emotion_forwardProp);var f=i||Y(c),h=!f("as");return function(){var p=arguments,m=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&m.push("label:"+r+";"),null==p[0]||void 0===p[0].raw)m.push.apply(m,p);else{m.push(p[0][0]);for(var _=p.length,y=1;y<_;y++)m.push(p[y],p[0][y])}var g=(0,u.withEmotionCache)((function(e,t,n){return(0,a.createElement)(u.ThemeContext.Consumer,null,(function(r){var s=h&&e.as||c,u="",p=[],_=e;if(null==e.theme){for(var y in _={},e)_[y]=e[y];_.theme=r}"string"==typeof e.className?u=l(t.registered,p,e.className):null!=e.className&&(u=e.className+" ");var g=L(m.concat(p),t.registered,_);d(t,g,"string"==typeof s),u+=t.key+"-"+g.name,void 0!==o&&(u+=" "+o);var v=h&&void 0===i?Y(s):f,M={};for(var b in e)h&&"as"===b||v(b)&&(M[b]=e[b]);return M.className=u,M.ref=n||e.innerRef,(0,a.createElement)(s,M)}))}));return g.displayName=void 0!==r?r:"Styled("+("string"==typeof c?c:c.displayName||c.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=c,g.__emotion_styles=m,g.__emotion_forwardProp=i,Object.defineProperty(g,"toString",{value:function(){return"."+o}}),g.withComponent=function(t,r){return e(t,void 0!==r?D({},n||{},{},r):n).apply(void 0,m)},g}}},8319:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},7508:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(5466),a=(o(r),o(n(3074))),i=o(n(1532));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}o(n(6365));var d=1073741823;function c(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}t.default=function(e,t){var n,o,f="__create-react-context-"+(0,i.default)()+"__",h=function(e){function n(){var t,r;s(this,n);for(var a=arguments.length,i=Array(a),o=0;o<a;o++)i[o]=arguments[o];return t=r=u(this,e.call.apply(e,[this].concat(i))),r.emitter=c(r.props.value),u(r,t)}return l(n,e),n.prototype.getChildContext=function(){var e;return(e={})[f]=this.emitter,e},n.prototype.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n=this.props.value,r=e.value,a=void 0;((i=n)===(o=r)?0!==i||1/i==1/o:i!=i&&o!=o)?a=0:(a="function"==typeof t?t(n,r):d,0!=(a|=0)&&this.emitter.set(e.value,a))}var i,o},n.prototype.render=function(){return this.props.children},n}(r.Component);h.childContextTypes=((n={})[f]=a.default.object.isRequired,n);var p=function(t){function n(){var e,r;s(this,n);for(var a=arguments.length,i=Array(a),o=0;o<a;o++)i[o]=arguments[o];return e=r=u(this,t.call.apply(t,[this].concat(i))),r.state={value:r.getValue()},r.onUpdate=function(e,t){0!=((0|r.observedBits)&t)&&r.setState({value:r.getValue()})},u(r,e)}return l(n,t),n.prototype.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?d:t},n.prototype.componentDidMount=function(){this.context[f]&&this.context[f].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?d:e},n.prototype.componentWillUnmount=function(){this.context[f]&&this.context[f].off(this.onUpdate)},n.prototype.getValue=function(){return this.context[f]?this.context[f].get():e},n.prototype.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return p.contextTypes=((o={})[f]=a.default.object,o),{Provider:h,Consumer:p}},e.exports=t.default},5240:(e,t,n)=>{"use strict";t.__esModule=!0;var r=i(n(5466)),a=i(n(7508));function i(e){return e&&e.__esModule?e:{default:e}}t.default=r.default.createContext||a.default,e.exports=t.default},2325:(e,t,n)=>{"use strict";var r=n(8424);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,a.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var a=r(n(1310));e.exports=t.default},1310:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},8657:e=>{"use strict";function t(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,n){e.classList?e.classList.remove(n):"string"==typeof e.className?e.className=t(e.className,n):e.setAttribute("class",t(e.className&&e.className.baseVal||"",n))}},8768:e=>{function t(e){var t,n,r=(e=e||{}).keybindings||{};for(t in this._settings={keybindings:{next:r.next||{keyCode:40},prev:r.prev||{keyCode:38},first:r.first,last:r.last},wrap:e.wrap,stringSearch:e.stringSearch,stringSearchDelay:800},this._keybindingsLookup=[],this._settings.keybindings)(n=this._settings.keybindings[t])&&[].concat(n).forEach(function(e){e.metaKey=e.metaKey||!1,e.ctrlKey=e.ctrlKey||!1,e.altKey=e.altKey||!1,e.shiftKey=e.shiftKey||!1,this._keybindingsLookup.push({action:t,eventMatcher:e})}.bind(this));this._searchString="",this._members=[],e.members&&this.setMembers(e.members),this._boundHandleKeydownEvent=this._handleKeydownEvent.bind(this)}function n(e){e&&e.focus&&(e.focus(),"input"===e.tagName.toLowerCase()&&e.select())}t.prototype.activate=function(){return document.addEventListener("keydown",this._boundHandleKeydownEvent,!0),this},t.prototype.deactivate=function(){return document.removeEventListener("keydown",this._boundHandleKeydownEvent,!0),this._clearSearchStringRefreshTimer(),this},t.prototype._handleKeydownEvent=function(e){if(-1!==this._getActiveElementIndex()){var t=!1;this._keybindingsLookup.forEach(function(n){if(function(e,t){for(var n in e)if(void 0!==t[n]&&e[n]!==t[n])return!1;return!0}(n.eventMatcher,e))switch(t=!0,e.preventDefault(),n.action){case"next":this.moveFocusForward();break;case"prev":this.moveFocusBack();break;case"first":this.moveFocusToFirst();break;case"last":this.moveFocusToLast();break;default:return}}.bind(this)),t||this._handleUnboundKey(e)}},t.prototype.moveFocusForward=function(){var e,t=this._getActiveElementIndex();return e=t<this._members.length-1?t+1:this._settings.wrap?0:t,this.focusNodeAtIndex(e),e},t.prototype.moveFocusBack=function(){var e,t=this._getActiveElementIndex();return e=t>0?t-1:this._settings.wrap?this._members.length-1:t,this.focusNodeAtIndex(e),e},t.prototype.moveFocusToFirst=function(){this.focusNodeAtIndex(0)},t.prototype.moveFocusToLast=function(){this.focusNodeAtIndex(this._members.length-1)},t.prototype._handleUnboundKey=function(e){if(this._settings.stringSearch){if(""!==this._searchString&&(" "===e.key||32===e.keyCode))return e.preventDefault(),-1;if(!((t=e.keyCode)>=65&&t<=90))return-1;var t;if(e.ctrlKey||e.metaKey||e.altKey)return-1;e.preventDefault(),this._addToSearchString(String.fromCharCode(e.keyCode)),this._runStringSearch()}},t.prototype._clearSearchString=function(){this._searchString=""},t.prototype._addToSearchString=function(e){this._searchString+=e.toLowerCase()},t.prototype._startSearchStringRefreshTimer=function(){var e=this;this._clearSearchStringRefreshTimer(),this._stringSearchTimer=setTimeout((function(){e._clearSearchString()}),this._settings.stringSearchDelay)},t.prototype._clearSearchStringRefreshTimer=function(){clearTimeout(this._stringSearchTimer)},t.prototype._runStringSearch=function(){this._startSearchStringRefreshTimer(),this.moveFocusByString(this._searchString)},t.prototype.moveFocusByString=function(e){for(var t,r=0,a=this._members.length;r<a;r++)if((t=this._members[r]).text&&0===t.text.indexOf(e))return n(t.node)},t.prototype._findIndexOfNode=function(e){for(var t=0,n=this._members.length;t<n;t++)if(this._members[t].node===e)return t;return-1},t.prototype._getActiveElementIndex=function(){return this._findIndexOfNode(document.activeElement)},t.prototype.focusNodeAtIndex=function(e){var t=this._members[e];return t&&n(t.node),this},t.prototype.addMember=function(e,t){var n=e.node||e,r=e.text||n.getAttribute("data-focus-group-text")||n.textContent||"";this._checkNode(n);var a={node:n,text:r.replace(/[\W_]/g,"").toLowerCase()};return null!=t?this._members.splice(t,0,a):this._members.push(a),this},t.prototype.removeMember=function(e){var t="number"==typeof e?e:this._findIndexOfNode(e);if(-1!==t)return this._members.splice(t,1),this},t.prototype.clearMembers=function(){return this._members=[],this},t.prototype.setMembers=function(e){this.clearMembers();for(var t=0,n=e.length;t<n;t++)this.addMember(e[t]);return this},t.prototype.getMembers=function(){return this._members},t.prototype._checkNode=function(e){if(!e.nodeType||e.nodeType!==window.Node.ELEMENT_NODE)throw new Error("focus-group: only DOM nodes allowed");return e},e.exports=function(e){return new t(e)}},1532:(e,t,n)=>{"use strict";var r="__global_unique_id__";e.exports=function(){return n.g[r]=(n.g[r]||0)+1}},5820:function(e){e.exports=function(){"use strict";var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return o(e)?e:R(e)}function r(e){return s(e)?e:B(e)}function a(e){return u(e)?e:V(e)}function i(e){return o(e)&&!l(e)?e:U(e)}function o(e){return!(!e||!e[c])}function s(e){return!(!e||!e[f])}function u(e){return!(!e||!e[h])}function l(e){return s(e)||u(e)}function d(e){return!(!e||!e[p])}t(r,n),t(a,n),t(i,n),n.isIterable=o,n.isKeyed=s,n.isIndexed=u,n.isAssociative=l,n.isOrdered=d,n.Keyed=r,n.Indexed=a,n.Set=i;var c="@@__IMMUTABLE_ITERABLE__@@",f="@@__IMMUTABLE_KEYED__@@",h="@@__IMMUTABLE_INDEXED__@@",p="@@__IMMUTABLE_ORDERED__@@",m=32,_=31,y={},g={value:!1},v={value:!1};function M(e){return e.value=!1,e}function b(e){e&&(e.value=!0)}function L(){}function w(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),a=0;a<n;a++)r[a]=e[a+t];return r}function k(e){return void 0===e.size&&(e.size=e.__iterate(x)),e.size}function Y(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?k(e)+t:t}function x(){return!0}function D(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function T(e,t){return E(e,t,0)}function S(e,t){return E(e,t,t)}function E(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var j="function"==typeof Symbol&&Symbol.iterator,O="@@iterator",C=j||O;function H(e){this.next=e}function P(e,t,n,r){var a=0===e?t:1===e?n:[t,n];return r?r.value=a:r={value:a,done:!1},r}function A(){return{value:void 0,done:!0}}function z(e){return!!N(e)}function F(e){return e&&"function"==typeof e.next}function I(e){var t=N(e);return t&&t.call(e)}function N(e){var t=e&&(j&&e[j]||e["@@iterator"]);if("function"==typeof t)return t}function W(e){return e&&"number"==typeof e.length}function R(e){return null==e?te():o(e)?e.toSeq():function(e){var t=ae(e)||"object"==typeof e&&new Q(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function B(e){return null==e?te().toKeyedSeq():o(e)?s(e)?e.toSeq():e.fromEntrySeq():ne(e)}function V(e){return null==e?te():o(e)?s(e)?e.entrySeq():e.toIndexedSeq():re(e)}function U(e){return(null==e?te():o(e)?s(e)?e.entrySeq():e:re(e)).toSetSeq()}H.prototype.toString=function(){return"[Iterator]"},H.KEYS=0,H.VALUES=1,H.ENTRIES=2,H.prototype.inspect=H.prototype.toSource=function(){return this.toString()},H.prototype[C]=function(){return this},t(R,n),R.of=function(){return R(arguments)},R.prototype.toSeq=function(){return this},R.prototype.toString=function(){return this.__toString("Seq {","}")},R.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},R.prototype.__iterate=function(e,t){return ie(this,e,t,!0)},R.prototype.__iterator=function(e,t){return oe(this,e,t,!0)},t(B,R),B.prototype.toKeyedSeq=function(){return this},t(V,R),V.of=function(){return V(arguments)},V.prototype.toIndexedSeq=function(){return this},V.prototype.toString=function(){return this.__toString("Seq [","]")},V.prototype.__iterate=function(e,t){return ie(this,e,t,!1)},V.prototype.__iterator=function(e,t){return oe(this,e,t,!1)},t(U,R),U.of=function(){return U(arguments)},U.prototype.toSetSeq=function(){return this},R.isSeq=ee,R.Keyed=B,R.Set=U,R.Indexed=V;var q,J,G,$="@@__IMMUTABLE_SEQ__@@";function K(e){this._array=e,this.size=e.length}function Q(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function Z(e){this._iterable=e,this.size=e.length||e.size}function X(e){this._iterator=e,this._iteratorCache=[]}function ee(e){return!(!e||!e[$])}function te(){return q||(q=new K([]))}function ne(e){var t=Array.isArray(e)?new K(e).fromEntrySeq():F(e)?new X(e).fromEntrySeq():z(e)?new Z(e).fromEntrySeq():"object"==typeof e?new Q(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function re(e){var t=ae(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ae(e){return W(e)?new K(e):F(e)?new X(e):z(e)?new Z(e):void 0}function ie(e,t,n,r){var a=e._cache;if(a){for(var i=a.length-1,o=0;o<=i;o++){var s=a[n?i-o:o];if(!1===t(s[1],r?s[0]:o,e))return o+1}return o}return e.__iterateUncached(t,n)}function oe(e,t,n,r){var a=e._cache;if(a){var i=a.length-1,o=0;return new H((function(){var e=a[n?i-o:o];return o++>i?{value:void 0,done:!0}:P(t,r?e[0]:o-1,e[1])}))}return e.__iteratorUncached(t,n)}function se(e,t){return t?ue(t,e,"",{"":e}):le(e)}function ue(e,t,n,r){return Array.isArray(t)?e.call(r,n,V(t).map((function(n,r){return ue(e,n,r,t)}))):de(t)?e.call(r,n,B(t).map((function(n,r){return ue(e,n,r,t)}))):t}function le(e){return Array.isArray(e)?V(e).map(le).toList():de(e)?B(e).map(le).toMap():e}function de(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ce(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function fe(e,t){if(e===t)return!0;if(!o(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||u(e)!==u(t)||d(e)!==d(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!l(e);if(d(e)){var r=e.entries();return t.every((function(e,t){var a=r.next().value;return a&&ce(a[1],e)&&(n||ce(a[0],t))}))&&r.next().done}var a=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{a=!0;var i=e;e=t,t=i}var c=!0,f=t.__iterate((function(t,r){if(n?!e.has(t):a?!ce(t,e.get(r,y)):!ce(e.get(r,y),t))return c=!1,!1}));return c&&e.size===f}function he(e,t){if(!(this instanceof he))return new he(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(J)return J;J=this}}function pe(e,t){if(!e)throw new Error(t)}function me(e,t,n){if(!(this instanceof me))return new me(e,t,n);if(pe(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(G)return G;G=this}}function _e(){throw TypeError("Abstract")}function ye(){}function ge(){}function ve(){}R.prototype[$]=!0,t(K,V),K.prototype.get=function(e,t){return this.has(e)?this._array[Y(this,e)]:t},K.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,a=0;a<=r;a++)if(!1===e(n[t?r-a:a],a,this))return a+1;return a},K.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,a=0;return new H((function(){return a>r?{value:void 0,done:!0}:P(e,a,n[t?r-a++:a++])}))},t(Q,B),Q.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},Q.prototype.has=function(e){return this._object.hasOwnProperty(e)},Q.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,a=r.length-1,i=0;i<=a;i++){var o=r[t?a-i:i];if(!1===e(n[o],o,this))return i+1}return i},Q.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,a=r.length-1,i=0;return new H((function(){var o=r[t?a-i:i];return i++>a?{value:void 0,done:!0}:P(e,o,n[o])}))},Q.prototype[p]=!0,t(Z,V),Z.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=I(this._iterable),r=0;if(F(n))for(var a;!(a=n.next()).done&&!1!==e(a.value,r++,this););return r},Z.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=I(this._iterable);if(!F(n))return new H(A);var r=0;return new H((function(){var t=n.next();return t.done?t:P(e,r++,t.value)}))},t(X,V),X.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,a=this._iteratorCache,i=0;i<a.length;)if(!1===e(a[i],i++,this))return i;for(;!(n=r.next()).done;){var o=n.value;if(a[i]=o,!1===e(o,i++,this))break}return i},X.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,a=0;return new H((function(){if(a>=r.length){var t=n.next();if(t.done)return t;r[a]=t.value}return P(e,a,r[a++])}))},t(he,V),he.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},he.prototype.get=function(e,t){return this.has(e)?this._value:t},he.prototype.includes=function(e){return ce(this._value,e)},he.prototype.slice=function(e,t){var n=this.size;return D(e,t,n)?this:new he(this._value,S(t,n)-T(e,n))},he.prototype.reverse=function(){return this},he.prototype.indexOf=function(e){return ce(this._value,e)?0:-1},he.prototype.lastIndexOf=function(e){return ce(this._value,e)?this.size:-1},he.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},he.prototype.__iterator=function(e,t){var n=this,r=0;return new H((function(){return r<n.size?P(e,r++,n._value):{value:void 0,done:!0}}))},he.prototype.equals=function(e){return e instanceof he?ce(this._value,e._value):fe(e)},t(me,V),me.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},me.prototype.get=function(e,t){return this.has(e)?this._start+Y(this,e)*this._step:t},me.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},me.prototype.slice=function(e,t){return D(e,t,this.size)?this:(e=T(e,this.size),(t=S(t,this.size))<=e?new me(0,0):new me(this.get(e,this._end),this.get(t,this._end),this._step))},me.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},me.prototype.lastIndexOf=function(e){return this.indexOf(e)},me.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,a=t?this._start+n*r:this._start,i=0;i<=n;i++){if(!1===e(a,i,this))return i+1;a+=t?-r:r}return i},me.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,a=t?this._start+n*r:this._start,i=0;return new H((function(){var o=a;return a+=t?-r:r,i>n?{value:void 0,done:!0}:P(e,i++,o)}))},me.prototype.equals=function(e){return e instanceof me?this._start===e._start&&this._end===e._end&&this._step===e._step:fe(this,e)},t(_e,n),t(ye,_e),t(ge,_e),t(ve,_e),_e.Keyed=ye,_e.Indexed=ge,_e.Set=ve;var Me="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function be(e){return e>>>1&1073741824|3221225471&e}function Le(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){if(e!=e||e===1/0)return 0;var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return be(n)}if("string"===t)return e.length>Ee?function(e){var t=Ce[e];return void 0===t&&(t=we(e),Oe===je&&(Oe=0,Ce={}),Oe++,Ce[e]=t),t}(e):we(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return function(e){var t;if(De&&void 0!==(t=xe.get(e)))return t;if(void 0!==(t=e[Se]))return t;if(!Ye){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Se]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++Te,1073741824&Te&&(Te=0),De)xe.set(e,t);else{if(void 0!==ke&&!1===ke(e))throw new Error("Non-extensible objects are not allowed as keys.");if(Ye)Object.defineProperty(e,Se,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Se]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Se]=t}}return t}(e);if("function"==typeof e.toString)return we(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function we(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return be(t)}var ke=Object.isExtensible,Ye=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();var xe,De="function"==typeof WeakMap;De&&(xe=new WeakMap);var Te=0,Se="__immutablehash__";"function"==typeof Symbol&&(Se=Symbol(Se));var Ee=16,je=255,Oe=0,Ce={};function He(e){pe(e!==1/0,"Cannot perform this action with an infinite size.")}function Pe(e){return null==e?$e():Ae(e)&&!d(e)?e:$e().withMutations((function(t){var n=r(e);He(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Ae(e){return!(!e||!e[Fe])}t(Pe,ye),Pe.of=function(){var t=e.call(arguments,0);return $e().withMutations((function(e){for(var n=0;n<t.length;n+=2){if(n+1>=t.length)throw new Error("Missing value for key: "+t[n]);e.set(t[n],t[n+1])}}))},Pe.prototype.toString=function(){return this.__toString("Map {","}")},Pe.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t