1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{8711:function(i,u,c){"use strict";c.d(u,{Z:function(){return createCache}});var f=function(){function StyleSheet(i){var u=this;this._insertTag=function(i){var c;c=0===u.tags.length?u.insertionPoint?u.insertionPoint.nextSibling:u.prepend?u.container.firstChild:u.before:u.tags[u.tags.length-1].nextSibling,u.container.insertBefore(i,c),u.tags.push(i)},this.isSpeedy=void 0===i.speedy||i.speedy,this.tags=[],this.ctr=0,this.nonce=i.nonce,this.key=i.key,this.container=i.container,this.prepend=i.prepend,this.insertionPoint=i.insertionPoint,this.before=null}var i=StyleSheet.prototype;return i.hydrate=function(i){i.forEach(this._insertTag)},i.insert=function(i){if(this.ctr%(this.isSpeedy?65e3:1)==0){var u;this._insertTag(((u=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&u.setAttribute("nonce",this.nonce),u.appendChild(document.createTextNode("")),u.setAttribute("data-s",""),u))}var c=this.tags[this.tags.length-1];if(this.isSpeedy){var f=function(i){if(i.sheet)return i.sheet;for(var u=0;u<document.styleSheets.length;u++)if(document.styleSheets[u].ownerNode===i)return document.styleSheets[u]}(c);try{f.insertRule(i,f.cssRules.length)}catch(i){}}else c.appendChild(document.createTextNode(i));this.ctr++}
vendor: 4,935 bytes, line 1
1,i.flush=function(){this.tags.forEach(function(i){var u;return null==(u=i.parentNode)?void 0:u.removeChild(i)}),this.tags=[],this.ctr=0},StyleSheet}(),b=Math.abs,v=String.fromCharCode,E=Object.assign;function Utility_replace(i,u,c){return i.replace(u,c)}function indexof(i,u){return i.indexOf(u)}function Utility_charat(i,u){return 0|i.charCodeAt(u)}function Utility_substr(i,u,c){return i.slice(u,c)}function Utility_strlen(i){return i.length}function Utility_append(i,u){return u.push(i),i}var C=1,S=1,x=0,R=0,k=0,j="";function node(i,u,c,f,b,v,E){return{value:i,root:u,parent:c,type:f,props:b,children:v,line:C,column:S,length:E,return:""}}function Tokenizer_copy(i,u){return E(node("",null,null,"",null,null,0),i,{length:-i.length},u)}function next(){return k=R<x?Utility_charat(j,R++):0,S++,10===k&&(S=1,C++),k}function peek(){return Utility_charat(j,R)}function token(i){switch(i){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function alloc(i){return C=S=1,x=Utility_strlen(j=i),R=0,[]}function delimit(i){var u,c;return(u=R-1,c=function delimiter(i){for(;next();)switch(k){case i:return R;case 34:case 39:34!==i&&39!==i&&delimiter(k);break;case 40:41===i&&delimiter(i);break;case 92:next()}return R}(91===i?i+2:40===i?i+1:i),Utility_substr(j,u,c)).trim()}var F="-ms-",B="-moz-",M="-webkit-",q="comm",L="rule",U="decl",V="@keyframes";function Serializer_serialize(i,u){for(var c="",f=i.length,b=0;b<f;b++)c+=u(i[b],b,i,u)||"";return c}function stringify(i,u,c,f){switch(i.type){case"@layer":if(i.children.length)break;case"@import":case U:return i.return=i.return||i.value;case q:return"";case V:return i.return=i.value+"{"+Serializer_serialize(i.children,f)+"}";case L:i.value=i.props.join(",")}return Utility_strlen(c=Serializer_serialize(i.children,f))?i.return=i.value+"{"+c+"}":""}function ruleset(i,u,c,f,v,E,C,S,x,R,k){for(var j=v-1,F=0===v?E:[""],B=F.length,M=0,q=0,U=0;M<f;++M)for(var V=0,H=Utility_substr(i,j+1,j=b(q=C[M])),Z=i;V<B;++V)(Z=(q>0?F[V]+" "+H:Utility_replace(H,/&\f/g,F[V])).trim())&&(x[U++]=Z);return node(i,u,c,0===v?L:S,x,R,k)}function declaration(i,u,c,f){return node(i,u,c,U,Utility_substr(i,0,f),Utility_substr(i,f+1,-1),f)}var identifierWithPointTracking=function(i,u,c){for(var f=0,b=0;f=b,b=peek(),38===f&&12===b&&(u[c]=1),!token(b);)next();return Utility_substr(j,i,R)},toRules=function(i,u){var c=-1,f=44;do switch(token(f)){case 0:38===f&&12===peek()&&(u[c]=1),i[c]+=identifierWithPointTracking(R-1,u,c);break;case 2:i[c]+=delimit(f);break;case 4:if(44===f){i[++c]=58===peek()?"&\f":"",u[c]=i[c].length;break}default:i[c]+=v(f)}while(f=next());return i},getRules=function(i,u){var c;return c=toRules(alloc(i),u),j="",c},H=new WeakMap,compat=function(i){if("rule"===i.type&&i.parent&&!(i.length<1)){for(var u=i.value,c=i.parent,f=i.column===c.column&&i.line===c.line;"rule"!==c.type;)if(!(c=c.parent))return;if((1!==i.props.length||58===u.charCodeAt(0)||H.get(c))&&!f){H.set(i,!0);for(var b=[],v=getRules(u,b),E=c.props,C=0,S=0;C<v.length;C++)for(var x=0;x<E.length;x++,S++)i.props[S]=b[C]?v[C].replace(/&\f/g,E[x]):E[x]+" "+v[C]}}},removeLabel=function(i){if("decl"===i.type){var u=i.value;108===u.charCodeAt(0)&&98===u.charCodeAt(2)&&(i.return="",i.value="")}},Z=[function(i,u,c,f){if(i.length>-1&&!i.return)switch(i.type){case U:i.return=function emotion_cache_browser_esm_prefix(i,u){switch(45^Utility_charat(i,0)?(((u<<2^Utility_charat(i,0))<<2^Utility_charat(i,1))<<2^Utility_charat(i,2))<<2^Utility_charat(i,3):0){case 5103:return M+"print-"+i+i;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return M+i+i;case 5349:case 4246:case 4810:case 6968:case 2756:return M+i+B+i+F+i+i;case 6828:case 4268:return M+i+F+i+i;case 6165:return M+i+F+"flex-"+i+i;case 5187:return M+i+Utility_replace(i,/(\w+).+(:[^]+)/,M+"box-$1$2"+F+"flex-$1$2")+i;case 5443:return M+i+F+"flex-item-"+Utility_replace(i,/flex-|-self/,"")+i;case 4675:return M+i+F+"flex-line-pack"+Utility_replace(i,/align-content|flex-|-self/,"")+i;case 5548:return M+i+F+Utility_replace(i,"shrink","negative")+i;case 5292:return M+i+F+Utility_replace(i,"basis","preferred-size")+i;case 6060:return M+"box-"+Utility_replace(i,"-grow","")+M+i+F+Utility_replace(i,"grow","positive")+i;case 4554:return M+Utility_replace(i,/([^-])(transform)/g,"$1"+M+"$2")+i;case 6187:return Utility_replace(Utility_replace(Utility_replace(i,/(zoom-|grab)/,M+"$1"),/(image-set)/,M+"$1"),i,"")+i;case 5495:case 3959:return Utility_replace(i,/(image-set\([^]*)/,M+"$1$`$1");case 4968:return Utility_replace(Utility_replace(i,/(.+:)(flex-)?(.*)/,M+"box-pack:$3"+F+"flex-
1pack:$3"),/s.+-b[^;]+/,"justify")+M+i+i;case 4095:case 3583:case 4068:case 2532:return Utility_replace(i,/(.+)-inline(.+)/,M+"$1$2")+i;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Utility_strlen(i)-1-u>6)switch(Utility_charat(i,u+1)){case 109:if(45!==Utility_charat(i,u+4))break;case 102:return Utility_replace(i,/(.+:)(.+)-([^]+)/,"$1"+M+"$2-$3$1"+B+(108==Utility_charat(i,u+3)?"$3":"$2-$3"))+i;case 115:return~indexof(i,"stretch")?emotion_cache_browser_esm_prefix(Utility_replace(i,"stretch","fill-available"),u)+i:i}break;case 4949:if(115!==Utility_charat(i,u+1))break;case 6444:switch(Utility_charat(i,Utility_strlen(i)-3-(~indexof(i,"!important")&&10))){case 107:return Utility_replace(i,":",":"+M)+i;case 101:return Utility_replace(i,/(.+:)([^;!]+)(;|!.+)?/,"$1"+M+(45===Utility_charat(i,14)?"inline-":"")+"box$3$1"+M+"$2$3$1"+F+"$2box$3")+i}break;case 5936:switch(Utility_charat(i,u+11)){case 114:return M+i+F+Utility_replace(i,/[svh]\w+-[tblr]{2}/,"tb")+i;case 108:return M+i+F+Utility_replace(i,/[svh]\w+-[tblr]{2}/,"tb-rl")+i;case 45:return M+i+F+Utility_replace(i,/[svh]\w+-[tblr]{2}/,"lr")+i}return M+i+F+i+i}return i}(i.value,i.length);break;case V:return Serializer_serialize([Tokenizer_copy(i,{value:Utility_replace(i.value,"@","@"+M)})],f);case L:if(i.length)return i.props.map(function(u){var c;switch(c=u,(c=/(::plac\w+|:read-\w+)/.exec(c))?c[0]:c){case":read-only":case":read-write":return Serializer_serialize([Tokenizer_copy(i,{props:[Utility_replace(u,/:(read-\w+)/,":"+B+"$1")]})],f);case"::placeholder":return Serializer_serialize([Tokenizer_copy(i,{props:[Utility_replace(u,/:(plac\w+)/,":"+M+"input-$1")]}),Tokenizer_copy(i,{props:[Utility_replace(u,/:(plac\w+)/,":"+B+"$1")]}),Tokenizer_copy(i,{props:[Utility_replace(u,/:(plac\w+)/,F+"input-$1")]})],f)}return""}).join("")}}],createCache=function(i){var u,c,b,E,x,F=i.key;if("css"===F){var B=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(B,function(i){-1!==i.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(i),i.setAttribute("data-s",""))})}var M=i.stylisPlugins||Z,L={},U=[];E=i.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+F+' "]'),function(i){for(var u=i.getAttribute("data-emotion").split(" "),c=1;c<u.length;c++)L[u[c]]=!0;U.push(i)});var V=(c=(u=[compat,removeLabel].concat(M,[stringify,(b=function(i){x.insert(i)},function(i){!i.root&&(i=i.return)&&b(i)})])).length,function(i,f,b,v){for(var E="",C=0;C<c;C++)E+=u[C](i,f,b,v)||"";return E}),stylis=function(i){var u,c;return Serializer_serialize((c=function parse(i,u,c,f,b,E,x,F,B){for(var M,L=0,U=0,V=x,H=0,Z=0,W=0,G=1,Y=1,X=1,Q=0,K="",J=b,ee=E,et=f,er=K;Y;)switch(W=Q,Q=next()){case 40:if(108!=W&&58==Utility_charat(er,V-1)){-1!=indexof(er+=Utility_replace(delimit(Q),"&","&\f"),"&\f")&&(X=-1);break}case 34:case 39:case 91:er+=delimit(Q);break;case 9:case 10:case 13:case 32:er+=function(i){for(;k=peek();)if(k<33)next();else break;return token(i)>2||token(k)>3?"":" "}(W);break;case 92:er+=function(i,u){for(var c;--u&&next()&&!(k<48)&&!(k>102)&&(!(k>57)||!(k<65))&&(!(k>70)||!(k<97)););return c=R+(u<6&&32==peek()&&32==next()),Utility_substr(j,i,c)}(R-1,7);continue;case 47:switch(peek()){case 42:case 47:Utility_append(node(M=function(i,u){for(;next();)if(i+k===57)break;else if(i+k===84&&47===peek())break;return"/*"+Utility_substr(j,u,R-1)+"*"+v(47===i?i:next())}(next(),R),u,c,q,v(k),Utility_substr(M,2,-2),0),B);break;default:er+="/"}break;case 123*G:F[L++]=Utility_strlen(er)*X;case 125*G:case 59:case 0:switch(Q){case 0:case 125:Y=0;case 59+U:-1==X&&(er=Utility_replace(er,/\f/g,"")),Z>0&&Utility_strlen(er)-V&&Utility_append(Z>32?declaration(er+";",f,c,V-1):declaration(Utility_replace(er," ","")+";",f,c,V-2),B);break;case 59:er+=";";default:if(Utility_append(et=ruleset(er,u,c,L,U,b,F,K,J=[],ee=[],V),E),123===Q){if(0===U)parse(er,u,et,et,J,E,V,F,ee);else switch(99===H&&110===Utility_charat(er,3)?100:H){case 100:case 108:case 109:case 115:p
1arse(i,et,et,f&&Utility_append(ruleset(i,et,et,0,0,b,F,K,b,J=[],V),ee),b,ee,V,F,f?J:ee);break;default:parse(er,et,et,et,[""],ee,0,F,ee)}}}L=U=Z=0,G=X=1,K=er="",V=x;break;case 58:V=1+Utility_strlen(er),Z=W;default:if(G<1){if(123==Q)--G;else if(125==Q&&0==G++&&125==(k=R>0?Utility_charat(j,--R):0,S--,10===k&&(S=1,C--),k))continue}switch(er+=v(Q),Q*G){case 38:X=U>0?1:(er+="\f",-1);break;case 44:F[L++]=(Utility_strlen(er)-1)*X,X=1;break;case 64:45===peek()&&(er+=delimit(next())),H=peek(),U=V=Utility_strlen(K=er+=function(i){for(;!token(peek());)next();return Utility_substr(j,i,R)}(R)),Q++;break;case 45:45===W&&2==Utility_strlen(er)&&(G=0)}}return E}("",null,null,null,[""],u=alloc(u=i),0,[0],u),j="",c),V)},H={key:F,sheet:new f({key:F,container:E,nonce:i.nonce,speedy:i.speedy,prepend:i.prepend,insertionPoint:i.insertionPoint}),nonce:i.nonce,inserted:L,registered:{},insert:function(i,u,c,f){x=c,stylis(i?i+"{"+u.styles+"}":u.styles),f&&(H.inserted[u.name]=!0)}};return H.sheet.hydrate(U),H}},5042:function(i,u,c){"use strict";function memoize(i){var u=Object.create(null);return function(c){return void 0===u[c]&&(u[c]=i(c)),u[c]}}c.d(u,{Z:function(){return memoize}})},442:function(i,u,c){"use strict";c.d(u,{C:function(){return R},E:function(){return M},T:function(){return k},a:function(){return ThemeProvider},c:function(){return createEmotionProps},h:function(){return F},w:function(){return withEmotionCache}});var f=c(7294),b=c(8711),v=c(7462),weakMemoize=function(i){var u=new WeakMap;return function(c){if(u.has(c))return u.get(c);var f=i(c);return u.set(c,f),f}},E=c(444),C=c(5662),S=c(7278),x=f.createContext("undefined"!=typeof HTMLElement?(0,b.Z)({key:"css"}):null),R=x.Provider,withEmotionCache=function(i){return(0,f.forwardRef)(function(u,c){return i(u,(0,f.useContext)(x),c)})},k=f.createContext({}),j=weakMemoize(function(i){return weakMemoize(function(u){return"function"==typeof u?u(i):(0,v.Z)({},i,u)})}),ThemeProvider=function(i){var u=f.useContext(k);return i.theme!==u&&(u=j(u)(i.theme)),f.createElement(k.Provider,{value:u},i.children)},F={}.hasOwnProperty,B="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",createEmotionProps=function(i,u){var c={};for(var f in u)F.call(u,f)&&(c[f]=u[f]);return c[B]=i,c},Insertion=function(i){var u=i.cache,c=i.serialized,f=i.isStringTag;return(0,E.hC)(u,c,f),(0,S.L)(function(){return(0,E.My)(u,c,f)}),null},M=withEmotionCache(function(i,u,c){var b=i.css;"string"==typeof b&&void 0!==u.registered[b]&&(b=u.registered[b]);var v=i[B],S=[b],x="";"string"==typeof i.className?x=(0,E.fp)(u.registered,S,i.className):null!=i.className&&(x=i.className+" ");var R=(0,C.O)(S,void 0,f.useContext(k));x+=u.key+"-"+R.name;var j={};for(var M in i)F.call(i,M)&&"css"!==M&&M!==B&&(j[M]=i[M]);return j.className=x,c&&(j.ref=c),f.createElement(f.Fragment,null,f.createElement(Insertion,{cache:u,serialized:R,isStringTag:"string"==typeof v}),f.createElement(v,j))})},917:function(i,u,c){"use strict";c.d(u,{F4:function(){return keyframes},xB:function(){return R}});var f,b,v=c(442),E=c(7294),C=c(444),S=c(7278),x=c(5662);c(8711),c(8679);var jsx=function(i,u){var c=arguments;if(null==u||!v.h.call(u,"css"))return E.createElement.apply(void 0,c);var f=c.length,b=Array(f);b[0]=v.E,b[1]=(0,v.c)(i,u);for(var C=2;C<f;C++)b[C]=c[C];return E.createElement.apply(null,b)};f=jsx||(jsx={}),b||(b=f.JSX||(f.JSX={}));var R=(0,v.w)(function(i,u){var c=i.styles,f=(0,x.O)([c],void 0,E.useContext(v.T)),b=E.useRef();return(0,S.j)(function(){var i=u.key+"-global",c=new u.sheet.constructor({key:i,nonce:u.sheet.nonce,container:u.sheet.container,speedy:u.sheet.isSpeedy}),v=!1,E=document.querySelector('style[data-emotion="'+i+" "+f.name+'"]');return u.sheet.tags.length&&(c.before=u.sheet.tags[0]),null!==E&&(v=!0,E.setAttribute("data-emotion",i),c.hydrate([E])),b.current=[c,v],function(){c.flush()}},[u]),(0,S.j)(function(){var i=b.current,c=i[0];if(i[1]){i[1]=!1;return}if(void 0!==f.next&&(0,C.My)(u,f.next,!0),c.tags.length){var v=c.tags[c.tags.length-1].nextElementSibling;c.before=v,c.flush()}u.insert("",f,c,!1)},[u,f.name]),null});function css(){for(var i=arguments.length,u=Array(i),c=0;c<i;c++)u[c]=arguments[c];return(0,x.O)(u)}function keyframes(){var i=css.apply(void 0,arguments),u="animation-"+i.name;return{name:u,styles:"@keyframes "+u+"{"+i.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},6811:function(i,u,c){"use strict";c.d(u,{BX:function(){return jsxs},HY:function(){return v},tZ:function(){return jsx}});var f=c(5893),b=c(442);c(7294),c(8711),c(8679),c(5662),c(7278);var v=f.Fragment,jsx=function(i,u,c){return b.h.call(u,"css")?f.jsx(b.E,(0,b.c)(i,u),c):f.jsx(i,u,c)},jsxs=function(i,u,c){return b.h.call(u,"css")?f.jsxs(b.E,(0,b.c)(i,u),c):f.jsxs(i,u,c)}},5662:function(i,u,c){"use strict";c.d(u,{O:function(){return serializeStyles}});var f,b={animationIterationCount:1,aspectRatio: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,msGr
vendor: 4,936 bytes, line 1
1idRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale: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},v=c(5042),E=/[A-Z]|^ms/g,C=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function(i){return 45===i.charCodeAt(1)},isProcessableValue=function(i){return null!=i&&"boolean"!=typeof i},S=(0,v.Z)(function(i){return isCustomProperty(i)?i:i.replace(E,"-$&").toLowerCase()}),processStyleValue=function(i,u){switch(i){case"animation":case"animationName":if("string"==typeof u)return u.replace(C,function(i,u,c){return f={name:u,styles:c,next:f},u})}return 1===b[i]||isCustomProperty(i)||"number"!=typeof u||0===u?u:u+"px"};function handleInterpolation(i,u,c){if(null==c)return"";if(void 0!==c.__emotion_styles)return c;switch(typeof c){case"boolean":return"";case"object":if(1===c.anim)return f={name:c.name,styles:c.styles,next:f},c.name;if(void 0!==c.styles){var b=c.next;if(void 0!==b)for(;void 0!==b;)f={name:b.name,styles:b.styles,next:f},b=b.next;return c.styles+";"}return function(i,u,c){var f="";if(Array.isArray(c))for(var b=0;b<c.length;b++)f+=handleInterpolation(i,u,c[b])+";";else for(var v in c){var E=c[v];if("object"!=typeof E)null!=u&&void 0!==u[E]?f+=v+"{"+u[E]+"}":isProcessableValue(E)&&(f+=S(v)+":"+processStyleValue(v,E)+";");else if(Array.isArray(E)&&"string"==typeof E[0]&&(null==u||void 0===u[E[0]]))for(var C=0;C<E.length;C++)isProcessableValue(E[C])&&(f+=S(v)+":"+processStyleValue(v,E[C])+";");else{var x=handleInterpolation(i,u,E);switch(v){case"animation":case"animationName":f+=S(v)+":"+x+";";break;default:f+=v+"{"+x+"}"}}}return f}(i,u,c);case"function":if(void 0!==i){var v=f,E=c(i);return f=v,handleInterpolation(i,u,E)}}if(null==u)return c;var C=u[c];return void 0!==C?C:c}var x=/label:\s*([^\s;{]+)\s*(;|$)/g;function serializeStyles(i,u,c){if(1===i.length&&"object"==typeof i[0]&&null!==i[0]&&void 0!==i[0].styles)return i[0];var b,v=!0,E="";f=void 0;var C=i[0];null==C||void 0===C.raw?(v=!1,E+=handleInterpolation(c,u,C)):E+=C[0];for(var S=1;S<i.length;S++)E+=handleInterpolation(c,u,i[S]),v&&(E+=C[S]);x.lastIndex=0;for(var R="";null!==(b=x.exec(E));)R+="-"+b[1];return{name:function(i){for(var u,c=0,f=0,b=i.length;b>=4;++f,b-=4)u=(65535&(u=255&i.charCodeAt(f)|(255&i.charCodeAt(++f))<<8|(255&i.charCodeAt(++f))<<16|(255&i.charCodeAt(++f))<<24))*1540483477+((u>>>16)*59797<<16),u^=u>>>24,c=(65535&u)*1540483477+((u>>>16)*59797<<16)^(65535&c)*1540483477+((c>>>16)*59797<<16);switch(b){case 3:c^=(255&i.charCodeAt(f+2))<<16;case 2:c^=(255&i.charCodeAt(f+1))<<8;case 1:c^=255&i.charCodeAt(f),c=(65535&c)*1540483477+((c>>>16)*59797<<16)}return c^=c>>>13,(((c=(65535&c)*1540483477+((c>>>16)*59797<<16))^c>>>15)>>>0).toString(36)}(E)+R,styles:E,next:f}}},6829:function(i,u,c){"use strict";c.d(u,{Z:function(){return j}});var f=c(7462),b=c(442),v=c(5662),E=c(7278),C=c(444),S=c(7294),x=c(5042),R=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|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|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|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|popover|popoverTarget|popoverTargetAction|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|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|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|colorRen
1dering|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)-.*))$/,k=(0,x.Z)(function(i){return R.test(i)||111===i.charCodeAt(0)&&110===i.charCodeAt(1)&&91>i.charCodeAt(2)}),testOmitPropsOnComponent=function(i){return"theme"!==i},getDefaultShouldForwardProp=function(i){return"string"==typeof i&&i.charCodeAt(0)>96?k:testOmitPropsOnComponent},composeShouldForwardProps=function(i,u,c){var f;if(u){var b=u.shouldForwardProp;f=i.__emotion_forwardProp&&b?function(u){return i.__emotion_forwardProp(u)&&b(u)}:b}return"function"!=typeof f&&c&&(f=i.__emotion_forwardProp),f},Insertion=function(i){var u=i.cache,c=i.serialized,f=i.isStringTag;return(0,C.hC)(u,c,f),(0,E.L)(function(){return(0,C.My)(u,c,f)}),null},j=(function createStyled(i,u){var c,E,x=i.__emotion_real===i,R=x&&i.__emotion_base||i;void 0!==u&&(c=u.label,E=u.target);var k=composeShouldForwardProps(i,u,x),j=k||getDefaultShouldForwardProp(R),F=!j("as");return function(){var B=arguments,M=x&&void 0!==i.__emotion_styles?i.__emotion_styles.slice(0):[];if(void 0!==c&&M.push("label:"+c+";"),null==B[0]||void 0===B[0].raw)M.push.apply(M,B);else{var q=B[0];M.push(q[0]);for(var L=B.length,U=1;U<L;U++)M.push(B[U],q[U])}var V=(0,b.w)(function(i,u,c){var f=F&&i.as||R,x="",B=[],q=i;if(null==i.theme){for(var L in q={},i)q[L]=i[L];q.theme=S.useContext(b.T)}"string"==typeof i.className?x=(0,C.fp)(u.registered,B,i.className):null!=i.className&&(x=i.className+" ");var U=(0,v.O)(M.concat(B),u.registered,q);x+=u.key+"-"+U.name,void 0!==E&&(x+=" "+E);var V=F&&void 0===k?getDefaultShouldForwardProp(f):j,H={};for(var Z in i)(!F||"as"!==Z)&&V(Z)&&(H[Z]=i[Z]);return H.className=x,c&&(H.ref=c),S.createElement(S.Fragment,null,S.createElement(Insertion,{cache:u,serialized:U,isStringTag:"string"==typeof f}),S.createElement(f,H))});return V.displayName=void 0!==c?c:"Styled("+("string"==typeof R?R:R.displayName||R.name||"Component")+")",V.defaultProps=i.defaultProps,V.__emotion_real=V,V.__emotion_base=R,V.__emotion_styles=M,V.__emotion_forwardProp=k,Object.defineProperty(V,"toString",{value:function(){return"."+E}}),V.withComponent=function(i,c){return createStyled(i,(0,f.Z)({},u,c,{shouldForwardProp:composeShouldForwardProps(V,c,!0)})).apply(void 0,M)},V}}).bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(i){j[i]=j(i)})},7278:function(i,u,c){"use strict";c.d(u,{L:function(){return E},j:function(){return C}});var f,b=c(7294),v=!!(f||(f=c.t(b,2))).useInsertionEffect&&(f||(f=c.t(b,2))).useInsertionEffect,
1E=v||function(i){return i()},C=v||b.useLayoutEffect},444:function(i,u,c){"use strict";function getRegisteredStyles(i,u,c){var f="";return c.split(" ").forEach(function(c){void 0!==i[c]?u.push(i[c]+";"):c&&(f+=c+" ")}),f}c.d(u,{My:function(){return insertStyles},fp:function(){return getRegisteredStyles},hC:function(){return registerStyles}});var registerStyles=function(i,u,c){var f=i.key+"-"+u.name;!1===c&&void 0===i.registered[f]&&(i.registered[f]=u.styles)},insertStyles=function(i,u,c){registerStyles(i,u,c);var f=i.key+"-"+u.name;if(void 0===i.inserted[u.name]){var b=u;do i.insert(u===b?"."+f:"",b,i.sheet,!0),b=b.next;while(void 0!==b)}}},6803:function(i){i.exports=function(){function _arrayLikeToArray(i,u){(null==u||u>i.length)&&(u=i.length);for(var c=0,f=Array(u);c<u;c++)f[c]=i[c];return f}function _extends(){return(_extends=Object.assign?Object.assign.bind():function(i){for(var u=1;u<arguments.length;u++){var c=arguments[u];for(var f in c)({}).hasOwnProperty.call(c,f)&&(i[f]=c[f])}return i}).apply(null,arguments)}var i="image-Tb9Ew8CXIwaY6R1kjMvI0uRR-2000x3000-jpg";function urlToId(i){return("image-"+i.split("/").slice(-1)[0]).replace(/\.([a-z]+)$/,"-$1")}var u=[["width","w"],["height","h"],["format","fm"],["download","dl"],["blur","blur"],["sharpen","sharp"],["invert","invert"],["orientation","or"],["minHeight","min-h"],["maxHeight","max-h"],["minWidth","min-w"],["maxWidth","max-w"],["quality","q"],["fit","fit"],["crop","crop"],["saturation","sat"],["auto","auto"],["dpr","dpr"],["pad","pad"],["frame","frame"]],c=["clip","crop","fill","fillmax","max","scale","min"],f=["top","bottom","left","right","center","focalpoint","entropy"],b=["format"],v=function(){function ImageUrlBuilder(i,u){this.options=void 0,this.options=i?_extends({},i.options||{},u||{}):_extends({},u||{})}var v=ImageUrlBuilder.prototype;return v.withOptions=function(i){var c=i.baseUrl||this.options.baseUrl,f={baseUrl:c};for(var b in i)i.hasOwnProperty(b)&&(f[function(i){for(var c,f=function(i,u){var c="undefined"!=typeof Symbol&&i[Symbol.iterator]||i["@@iterator"];if(c)return(c=c.call(i)).next.bind(c);if(Array.isArray(i)||(c=function(i,u){if(i){if("string"==typeof i)return _arrayLikeToArray(i,u);var c=({}).toString.call(i).slice(8,-1);return"Object"===c&&i.constructor&&(c=i.constructor.name),"Map"===c||"Set"===c?Array.from(i):"Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?_arrayLikeToArray(i,u):void 0}}(i))){c&&(i=c);var f=0;return function(){return f>=i.length?{done:!0}:{done:!1,value:i[f++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(u);!(c=f()).done;){var b=c.value,v=b[0],E=b[1];if(i===v||i===E)return v}return i}(b)]=i[b]);return new ImageUrlBuilder(this,_extends({baseUrl:c},f))},v.image=function(i){return this.withOptions({source:i})},v.dataset=function(i){return this.withOptions({dataset:i})},v.projectId=function(i){return this.withOptions({projectId:i})},v.bg=function(i){return this.withOptions({bg:i})},v.dpr=function(i){return this.withOptions(i&&1!==i?{dpr:i}:{})},v.width=function(i){return this.withOptions({width:i})},v.height=function(i){return this.withOptions({height:i})},v.focalPoint=function(i,u){return this.withOptions({focalPoint:{x:i,y:u}})},v.maxWidth=function(i){return this.withOptions({maxWidth:i})},v.minWidth=function(i){return this.withOptions({minWidth:i})},v.maxHeight=function(i){return this.withOptions({maxHeight:i})},v.minHeight=function(i){return this.withOptions({minHeight:i})},v.size=function(i,u){return this.withOptions({width:i,height:u})},v.blur=function(i){return this.withOptions({blur:i})},v.sharpen=function(i){return this.withOptions({sharpen:i})},v.rect=function(i,u,c,f){return this.withOptions({rect:{left:i,top:u,width:c,height:f}})},v.format=function(i){return this.withOptions({format:i})},v.invert=function(i){return this.withOptions({invert:i})},v.orientation=function(i){return this.withOptions({orientation:i})},v.quality=function(i){return this.withOptions({quality:i})},v.forceDownload=function(i){return this.withOptions({download:i})},v.flipHorizontal=function(){return this.withOptions({flipHorizontal:!0})},v.flipVertical=function(){return this.withOptions({flipVertical:!0})},v.ignoreImageParams=function(){return this.withOptions({ignoreImageParams:!0})},v.fit=function(i){if(-1===c.indexOf(i))throw Error('Invalid fit mode "'+i+'"');return this.withOptions({fit:i})},v.crop=function(i){if(-1===f.indexOf(i))throw Error('Invalid crop mode "'+i+'"');return this.withOptions({crop:i})},v.saturation=function(i){return this.withOptions({saturation:i})},v.auto=function(i){if(-1===b.indexOf(i))throw Error('Invalid auto mode "'+i+'"');return this.withOptions({auto:i})},v.pad=function(i){return this.withOptions({pad:i})},v.vanityName=function(i){return this.withOptions({vanityName:i})},v.frame=function(i){if(1!==i)throw Error('Invalid frame value "'+i+'"');return this.withOptions({frame:i})},v.url=function(){return function(c){var f=_extends({},c||{}),b=f.source;delete f.source;var v=function(i){var u;if(!i)return null;if("string"==typeof i&&/^https?:\/\//.test(""+i))u={asset:{_ref:urlToId(i)}};else if("string"==typeof i)u={asset:{_ref:i}
1};else if(i&&"string"==typeof i._ref)u={asset:i};else if(i&&"string"==typeof i._id)u={asset:{_ref:i._id||""}};else if(i&&i.asset&&"string"==typeof i.asset.url)u={asset:{_ref:urlToId(i.asset.url)}};else{if("object"!=typeof i.asset)return null;u=_extends({},i)}return i.crop&&(u.crop=i.crop),i.hotspot&&(u.hotspot=i.hotspot),function(i){if(i.crop&&i.hotspot)return i;var u=_extends({},i);return u.crop||(u.crop={left:0,top:0,bottom:0,right:0}),u.hotspot||(u.hotspot={x:.5,y:.5,height:1,width:1}),u}(u)}(b);if(!v){if(b&&"object"==typeof b&&null!==b&&b._upload&&(!b.asset||!b.asset._ref))return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8HwQACfsD/QNViZkAAAAASUVORK5CYII=";throw Error("Unable to resolve image URL from source ("+JSON.stringify(b)+")")}var E=function(u){var c=u.split("-"),f=c[1],b=c[2],v=c[3];if(!f||!b||!v)throw Error("Malformed asset _ref '"+u+"'. Expected an id like \""+i+'".');var E=b.split("x"),C=E[0],S=E[1],x=+C,R=+S;if(!(isFinite(x)&&isFinite(R)))throw Error("Malformed asset _ref '"+u+"'. Expected an id like \""+i+'".');return{id:f,width:x,height:R,format:v}}(v.asset._ref||v.asset._id||""),C=Math.round(v.crop.left*E.width),S=Math.round(v.crop.top*E.height),x={left:C,top:S,width:Math.round(E.width-v.crop.right*E.width-C),height:Math.round(E.height-v.crop.bottom*E.height-S)},R=v.hotspot.height*E.height/2,k=v.hotspot.width*E.width/2,j=v.hotspot.x*E.width,F=v.hotspot.y*E.height;return f.rect||f.focalPoint||f.ignoreImageParams||f.crop||(f=_extends({},f,function(i,u){var c,f=u.width,b=u.height;if(!(f&&b))return{width:f,height:b,rect:i.crop};var v=i.crop,E=i.hotspot,C=f/b;if(v.width/v.height>C){var S=Math.round(v.height),x=Math.round(S*C),R=Math.max(0,Math.round(v.top)),k=Math.max(0,Math.round(Math.round((E.right-E.left)/2+E.left)-x/2));k<v.left?k=v.left:k+x>v.left+v.width&&(k=v.left+v.width-x),c={left:k,top:R,width:x,height:S}}else{var j=v.width,F=Math.round(j/C),B=Math.max(0,Math.round(v.left)),M=Math.max(0,Math.round(Math.round((E.bottom-E.top)/2+E.top)-F/2));M<v.top?M=v.top:M+F>v.top+v.height&&(M=v.top+v.height-F),c={left:B,top:M,width:j,height:F}}return{width:f,height:b,rect:c}}({crop:x,hotspot:{left:j-k,top:F-R,right:j+k,bottom:F+R}},f))),function(i){var c=(i.baseUrl||"https://cdn.sanity.io").replace(/\/+$/,""),f=i.vanityName?"/"+i.vanityName:"",b=i.asset.id+"-"+i.asset.width+"x"+i.asset.height+"."+i.asset.format+f,v=c+"/images/"+i.projectId+"/"+i.dataset+"/"+b,E=[];if(i.rect){var C=i.rect,S=C.left,x=C.top,R=C.width,k=C.height;(0!==S||0!==x||k!==i.asset.height||R!==i.asset.width)&&E.push("rect="+S+","+x+","+R+","+k)}i.bg&&E.push("bg="+i.bg),i.focalPoint&&(E.push("fp-x="+i.focalPoint.x),E.push("fp-y="+i.focalPoint.y));var j=[i.flipHorizontal&&"h",i.flipVertical&&"v"].filter(Boolean).join("");return(j&&E.push("flip="+j),u.forEach(function(u){var c=u[0],f=u[1];void 0!==i[c]?E.push(f+"="+encodeURIComponent(i[c])):void 0!==i[f]&&E.push(f+"="+encodeURIComponent(i[f]))}),0===E.length)?v:v+"?"+E.join("&")}(_extends({},f,{asset:E}))}(this.options)},v.toString=function(){return this.url()},ImageUrlBuilder}();return function(i){if(i&&"config"in i&&"function"==typeof i.config){var u=i.config(),c=u.apiHost,f=u.projectId,b=u.dataset;return new v(null,{baseUrl:(c||"https://api.sanity.io").replace(/^https:\/\/api\./,"https://cdn."),projectId:f,dataset:b})}if(i&&"clientConfig"in i&&"object"==typeof i.clientConfig){var E=i.
1clientConfig,C=E.apiHost,S=E.projectId,x=E.dataset;return new v(null,{baseUrl:(C||"https://api.sanity.io").replace(/^https:\/\/api\./,"https://cdn."),projectId:S,dataset:x})}return new v(null,i||{})}}()},7947:function(i,u,c){"use strict";function _extends(){return(_extends=Object.assign||function(i){for(var u=1;u<arguments.length;u++){var c=arguments[u];for(var f in c)Object.prototype.hasOwnProperty.call(c,f)&&(i[f]=c[f])}return i}).apply(this,arguments)}var get=function(i,u,c,f,b){for(f=0,u=u&&u.split?u.split("."):[u];f<u.length;f++)i=i?i[u[f]]:b;return i===b?c:i},f=[40,52,64].map(function(i){return i+"em"}),b={space:[0,4,8,16,32,64,128,256,512],fontSizes:[12,14,16,20,24,32,48,64,72]},v={bg:"backgroundColor",m:"margin",mt:"marginTop",mr:"marginRight",mb:"marginBottom",ml:"marginLeft",mx:"marginX",my:"marginY",p:"padding",pt:"paddingTop",pr:"paddingRight",pb:"paddingBottom",pl:"paddingLeft",px:"paddingX",py:"paddingY"},E={marginX:["marginLeft","marginRight"],marginY:["marginTop","marginBottom"],paddingX:["paddingLeft","paddingRight"],paddingY:["paddingTop","paddingBottom"],size:["width","height"]},C={color:"colors",backgroundColor:"colors",borderColor:"colors",margin:"space",marginTop:"space",marginRight:"space",marginBottom:"space",marginLeft:"space",marginX:"space",marginY:"space",padding:"space",paddingTop:"space",paddingRight:"space",paddingBottom:"space",paddingLeft:"space",paddingX:"space",paddingY:"space",top:"space",right:"space",bottom:"space",left:"space",gridGap:"space",gridColumnGap:"space",gridRowGap:"space",gap:"space",columnGap:"space",rowGap:"space",fontFamily:"fonts",fontSize:"fontSizes",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",border:"borders",borderTop:"borders",borderRight:"borders",borderBottom:"borders",borderLeft:"borders",borderWidth:"borderWidths",borderStyle:"borderStyles",borderRadius:"radii",borderTopRightRadius:"radii",borderTopLeftRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",borderTopWidth:"borderWidths",borderTopColor:"colors",borderTopStyle:"borderStyles",borderBottomWidth:"borderWidths",borderBottomColor:"colors",borderBottomStyle:"borderStyles",borderLeftWidth:"borderWidths",borderLeftColor:"colors",borderLeftStyle:"borderStyles",borderRightWidth:"borderWidths",borderRightColor:"colors",borderRightStyle:"borderStyles",outlineColor:"colors",boxShadow:"shadows",textShadow:"shadows",zIndex:"zIndices",width:"sizes",minWidth:"sizes",maxWidth:"sizes",height:"sizes",minHeight:"sizes",maxHeight:"sizes",flexBasis:"sizes",size:"sizes",fill:"colors",stroke:"colors"},positiveOrNegative=function(i,u){if("number"!=typeof u||u>=0)return get(i,u,u);var c=Math.abs(u),f=get(i,c,c);return"string"==typeof f?"-"+f:-1*f},S=["margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","top","bottom","left","right"].reduce(function(i,u){var c;return _extends({},i,((c={})[u]=positiveOrNegative,c))},{});u.ZP=function css(i){return function(u){void 0===u&&(u={});var c,x=_extends({},b,{},u.theme||u),R={},k=(c="function"==typeof i?i(x):i,function(i){var u={},b=[null].concat(get(i,"breakpoints",f).map(function(i){return"@media screen and (min-width: "+i+")"}));for(var v in c){var E="function"==typeof c[v]?c[v](i):c[v];if(null!=E){if(!Array.isArray(E)){u[v]=E;continue}for(var C=0;C<E.slice(0,b.length).length;C++){var S=b[C];if(!S){u[v]=E[C];continue}u[S]=u[S]||{},null!=E[C]&&(u[S][v]=E[C])}}}return u})(x);for(var j in k){var F=k[j],B="function"==typeof F?F(x):F;if("variant"===j){var M=css(get(x,B))(x);R=_extends({},R,{},M);continue}if(B&&"object"==typeof B){R[j]=css(B)(x);continue}var q=get(v,j,j),L=get(C,q),U=get(x,L,get(x,q,{})),V=get(S,q,get)(U,B,B);if(E[q])for(var H=E[q],Z=0;Z<H.length;Z++)R[H[Z]]=V;else R[q]=V}return R}}},8679:function(i,u,c){"use strict";var f=c(9864),b={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},v={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},E={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},C={};function getStatics(i){return f.isMemo(i)?E:C[i.$$typeof]||b}C[f.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},C[f.Memo]=E;var S=Object.defineProperty,x=Object.getOwnPropertyNames,R=Object.getOwnPropertySymbols,k=Object.getOwnPropertyDescriptor,j=Object.getPrototypeOf,F=Object.prototype;i.exports=function hoistNonReactStatics(i,u,c){if("string"!=typeof u){if(F){var f=j(u);f&&f!==F&&hoistNonReactStatics(i,f,c)}var b=x(u);R&&(b=b.concat(R(u)));for(var E=getStatics(i),C=getStatics(u),B=0;B<b.length;++B){var M=b[B];if(!v[M]&&!(c&&c[M])&&!(C&&C[M])&&!(E&&E[M])){var q=k(u,M);try{S(i,M,q)}catch(i){}}}}return i}},3454:function(i,u,c){"use strict";var f,b;i.exports=(null==(f=c.g.process)?void 0:f.env)&&"object"==typeof(null==(b=c.g.process)?void 0:b.env)?c.g.process:c(7663)},6840:function(i,u,c){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return c(8910)}])},9541:function(i,u,c){"use strict";c.d(u,{wJ:function(){return v}});var f,b=c(7294);(f||(f={})).NEW="new-application";let v={maximumPageviews:0,name:"",phone:"",contactName:"",registrationNumber:"",email:"",website:"",comment:""},E=(0,b.createContext)({values:v,setValues:()=>({}),thankYouPageSlug:"",submitForm:async()=>Promise.reject()});u.ZP=E},3723:function(i,u,c){"use strict";var f=c(7294);let b=(0,f.createContext)({errorMessages:{},clearError:()=>({}),validate:()=>!1});u.Z=b},4017:function(i,u,c){"use strict";var f=c(7294),b=c(8251);let v=(0,f.createContext)({host:b.$8,assetHost:b.Tn});u.Z=v},7800:function(i,u,c){"use strict";c.d(u,{y:function(){return v}});var f=c(7294),b=c(8251);let v=(0,f.createContext)({certificateLanguage:b.ez}),E=(0,f.createContext)({language:b.X9});u.Z=E},7472:function(i,u,c){"use strict";c.d(u,{d:function(){return E}});var f=c(7294),b=c(9117);let v=(0,f.createContext)(b.mu);u.Z=v;let E=(0,f.createContext)(b.mu)},7357:function(i,u,c){"use strict";var f=c(7294);let b=(0,f.createContext)({});u.Z=b},4838:function(i,u,c){"use strict";var f,b;
1function resolveCallToAction(i){if(!(null==i?void 0:i.text))return{href:"",children:null};let{text:u,type:c,url:f,reference:b}=i,v={children:u,href:f||""};if("reference"===c){var E;v.href=(null==b?void 0:b._type)==="homePage"?"/":"/".concat((null==b?void 0:null===(E=b.slug)||void 0===E?void 0:E.current)||"")}return v}function resolveCallToActionWithKey(i){if(!i)return{key:"",...resolveCallToAction(void 0)};let{_key:u,...c}=i;return{key:u,...resolveCallToAction({...c})}}c.d(u,{U:function(){return resolveCallToActionWithKey},i:function(){return resolveCallToAction}}),(b=f||(f={})).REFERENCE="reference",b.URL="url"},8382:function(i,u,c){"use strict";c.d(u,{qG:function(){return E},Nq:function(){return getPageContentItems},QX:function(){return hasPageContentItem}});var f,b,v,E,C=c(6746),S=c(4838);c(5282),(f=v||(v={})).LINK="Link",f.TEXT="TextContent",c(9117);var x=c(9457);(b=E||(E={})).APPLICATION_FORM="ApplicationForm",b.CALL_TO_ACTION="CallToAction",b.CASES="Cases",b.CERTIFICATE_DESCRIPTION="CertificateDescription",b.CERTIFICATE_INFO="CertificateInfo",b.CERTIFICATE_TITLE="CertificateTitle",b.HERO="Hero",b.ICON_GENERATOR="IconGenerator",b.INFO="Info",b.MEMBER_TABLE="MemberTable",b.QUOTES="Quotes",b.REFERENCES="References",b.SMALL_INFO="SmallInfo",b.SMALL_IMAGE_INFO="SmallImageInfo",b.STEPS="Steps",b.CONTENT_CARDS="ContentCards",b.TEXT="TextContent";let resolveItemContentCards=i=>{let{cards:u,backgroundColor:c,...f}=i,b={type:"ContentCards",cards:(null==u?void 0:u.map(i=>{let{_key:u,content:c,backgroundColor:f,...b}=i,v={key:u,content:c||[],backgroundColor:null==f?void 0:f.hex,...b};return v}))||[],backgroundColor:null==c?void 0:c.hex,...f};return b},getPageContentItems=(i,u)=>{var c,f;let b=null!==(c=null==u?void 0:u.map(i=>i._key))&&void 0!==c?c:[],v=null!==(f=null==i?void 0:i.filter(Boolean))&&void 0!==f?f:[];return v.map((i,u)=>{let c={key:b[u],...function(i){switch(null==i?void 0:i._type){case C.qy.APPLICATION_FORM:return function(i){let{priceOptions:u,...c}=i;return{type:"ApplicationForm",priceOptions:u.map(i=>{let{description:u,...c}=i;return{label:u,...c}}),...c}}(i);case C.qy.CALL_TO_ACTION:return function(i){let{actions:u,...c}=i;return{type:"CallToAction",actions:(null==u?void 0:u.map(S.U))||[],...c}}(i);case C.qy.CASES:return function(i){let{cases:u,callToAction:c,...f}=i;return{type:"Cases",cases:(null==u?void 0:u.map(i=>{let{_key:u,image:c}=i;return{key:u,image:c,imageDimensions:c.asset.metadata.dimensions}}))||[],callToAction:(0,S.i)(c),...f}}(i);case C.qy.CERTIFICATE_DESCRIPTION:return function(i){var u,c;let{signatureImage:f,...b}=i;return{type:"CertificateDescription",image:f,imageDimensions:null==f?void 0:null===(c=f.asset)||void 0===c?void 0:null===(u=c.metadata)||void 0===u?void 0:u.dimensions,...b}}(i);case C.qy.CERTIFICATE_INFO:return function(i){let{...u}=i;return{type:"CertificateInfo",...u}}(i);case C.qy.CERTIFICATE_TITLE:return function(i){let{...u}=i;return{type:"CertificateTitle",...u}}(i);case C.qy.HERO:return function(i){let{heading:u,text:c,actions:f,footerText:b,backgroundImage:v}=i;return{type:"Hero",heading:u||[],text:c||[],actions:(null==f?void 0:f.map(S.U))||[],footerText:b||[],backgroundImage:v}}(i);case C.qy.ICON_GENERATOR:return function(i){let{...u}=i;return{type:"IconGenerator",...u}}(i);case C.qy.INFO:return function(i){let{image:u,text:c,callToAction:f,inverse:b,whiteBackground:v,...E}=i;return{type:"Info",image:u,imageDimensions:u.asset.metadata.dimensions,text:c||[],callToAction:(0,S.i)(f),inverse:!!b,whiteBackground:!!v,...E}}(i);case C.qy.MEMBER_TABLE:return function(i){let{members:u,filterOptions:c,...f}=i,b=u.filter((i,u,c)=>u===c.findIndex(u=>u.id===i.id));return{type:"MemberTable",members:(null==b?void 0:b.map(i=>{let{_key:u,...c}=i;return{key:u,...c}}))||[],filterOptions:(null==c?void 0:c.map(i=>{let{label:u,showRecent:c,startingCharacter:f,endingCharacter:b}=i,v={value:c?x.r:"".concat(f,"-").concat(b),label:u,useIndex:!!c};return f&&(v.startingCharacter=f.toLowerCase()),b&&(v.endingCharacter=b.toLowerCase()),v}))||[],...f}}(i);case C.qy.QUOTES:return function(i){let{quotes:u,...c}=i;return{type:"Quotes",quotes:(null==u?void 0:u.map(i=>{let{_key:u,image:c,text:f,...b}=i;return{key:u,text:f||[],image:c,imageDimensions:c.asset.metadata.dimensions,...b}}))||[],...c}}(i);case C.qy.REFERENCES:return function(i){let{heading:u,text:c,logos:f,...b}=i;return{type:"References",heading:u||[],text:c||[],references:(null==f?void 0:f.map(i=>{let{_key:u,image:c,url:f,...b}=i;return{key:u,image:c,imageDimensions:c.asset.metadata.dimensions,url:f||"",...b}}))||[],...b}}(i);case C.qy.SMALL_INFO:return function(i){let{text:u,...c}=i;return{type:"SmallInfo",text:u||[],...c}}(i);case C.qy.SMALL_IMAGE_INFO:return function(i){let{text:u,callToAction:c,...f}=i;return{type:"SmallImageInfo",text:u||[],callToAction:(0,S.i)(c),...f}}(i);case C.qy.STEPS:return function(i){let{steps:u,...c}=i;return{type:"Steps",steps:(null==u?void 0:u.map(i=>{let{_key:u,name:c,...f}=i;return{key:u,name:c||[],...f}}))||[],...c}}(i);case C.qy.CONTENT_CARDS:return resolveItemContentCards(i);case C.qy.TEXT:return function(i){let{content:u,textColor:c,backgroundColor:f,...b}=i;return{type:"TextContent",blocks:u||[],textColor:null==c?void 0:c.hex,backgroundColor:null==f?void 0:f.hex,...b}}(i)}}(i)};return c})};function hasPageContentItem(i,u){return!!i.some(i=>i.type===u)}},2242:function(i,u,c){"use strict";var f=c(6829),b=c(7947),v=c(1267);let E=(0,f.Z)("button",{target:"e162ihg40"})(i=>{let{dark:u=!1,wired:c=!1,white:f=!1,theme:E}=i;return(0,b.ZP)({py:(0,v.hO)(c?17:19),px:(0,v.hO)(c?28:30),border:c?"2px solid transparent":"none",borderColor:f?"white":"dark",borderRadius:(0,v.hO)(4),fontWeight:"medium",fontSize:(0,v.hO)(16),lineHeight:19/16,backgroundColor:c?"transparent":u?"dark":"primary",color:c?"dark":"primaryText",cursor:"pointer",transition:"background-color 50ms, border 50ms","&:enabled:hover":{borderColor:f?"white":"primary",backgroundColor:c?null:u?"darkActive":"primaryActive"},"&:disabled":{cursor:"default",backgroundColor:c?null:"rgba(".concat((u?E.colors.darkRGBSource:E.colors.primaryRGBSource).join(","),", 0.5)")}})});u.Z=E},9457:function(i,u,c){"use strict";c.d(u,{r:function(){return k}});var f=c(6811),b=c(6829),v=c(7947),E=c(1267),C=c(2242);let S=(0,b.Z)(C.Z,{target:"e9t1vyk0"})(i=>{let{wired:u}=i;return(0,v.ZP)({flex:1,display:[u?"none":"block",null,"block"],width:["100%",null,"auto"],py:(0,E.hO)(17
1),px:(0,E.hO)(5),whiteSpace:"nowrap"})}),x=(0,b.Z)("select",{target:"e9t1vyk1"})((0,v.ZP)({position:"absolute",display:["block",null,"none"],top:0,left:0,width:(0,E.pc)(100),height:(0,E.pc)(100),border:"none",opacity:0,zIndex:1,cursor:"pointer"})),R=(0,b.Z)("div",{target:"e9t1vyk2"})((0,v.ZP)({position:"relative",display:"flex",["".concat(S," + ").concat(S)]:{ml:(0,E.hO)(null,null,20)}})),k="recent",j=(0,b.Z)(function(i){let{options:u,filterValue:c,setFilterValue:b,className:v}=i;return 0===u.length?null:(0,f.BX)(R,{className:v,children:[u.map(i=>{let{value:u,label:v}=i;return(0,f.tZ)(S,{dark:!0,wired:c!==u,onClick:()=>b(u),children:v},u)}),(0,f.tZ)(x,{value:c,onChange:i=>{let{target:u}=i;return b(u.value)},children:u.map(i=>{let{value:u,label:c}=i;return(0,f.tZ)("option",{value:u,children:c},u)})})]})},{target:"e9t1vyk3"})();u.Z=j},9676:function(i,u,c){"use strict";c.d(u,{V:function(){return E},f:function(){return v}});var f=c(2729),b=c(1972);function _templateObject(){let i=(0,f._)(["\n_type,\nslug {\n current\n}\n"]);return _templateObject=function(){return i},i}function _templateObject1(){let i=(0,f._)(["\n...,\n...select(type == 'reference' => {\n reference->{\n ","\n }\n})\n"]);return _templateObject1=function(){return i},i}let v=(0,b.Z)(_templateObject()),E=(0,b.Z)(_templateObject1(),v)},5282:function(i,u,c){"use strict";c.d(u,{VP:function(){return S},gw:function(){return x}});var f,b,v=c(2729),E=c(1972),C=c(9676);function _templateObject(){let i=(0,v._)(['\n *[\n _type == "footer" &&\n _id == "footer-" + $language &&\n language == $language\n ][0] {\n columns[] {\n ...,\n content[] {\n ...,\n ...select(_type == "callToAction" => {\n ',"\n }),\n },\n },\n copyright,\n legalLinks[] {\n ","\n },\n }\n"]);return _templateObject=function(){return i},i}function _templateObject1(){let i=(0,v._)(['\n *[\n _type == "certificateFooter" &&\n _id == "certificate-footer-" + $language &&\n language == $language\n ][0] {\n column {\n ...,\n content[] {\n ...,\n ...select(_type == "callToAction" => {\n ',"\n }),\n },\n },\n copyright,\n }\n"]);return _templateObject1=function(){return i},i}(f=b||(b={})).LINK="callToAction",f.TEXT="textObject";let S=(0,E.Z)(_templateObject(),C.V,C.V),x=(0,E.Z)(_templateObject1(),C.V)},2806:function(i,u,c){"use strict";c.d(u,{Y:function(){return v}});var f=c(2729),b=c(1972);function _templateObject(){let i=(0,f._)(["\nasset->{\n url,\n metadata {\n dimensions {\n width,\n height\n }\n }\n},\ncrop {\n top,\n right,\n bottom,\n left\n},\nhotspot {\n x,\n y,\n width,\n height\n}\n"]);return _templateObject=function(){return i},i}let v=(0,b.Z)(_templateObject())},9117:function(i,u,c){"use strict";c.d(u,{NP:function(){return S},Qb:function(){return C},mu:function(){return E}});var f=c(2729),b=c(1972),v=c(2806);function _templateObject(){let i=(0,f._)(["\n title,\n description,\n image {\n ","\n },\n"]);return _templateObject=function(){return i},i}function _templateObject1(){let i=(0,f._)(['\n *[\n _type == "defaultMetadata" &&\n _id == "default-metadata-" + $language &&\n language == $language\n ][0] {\n ',"\n }\n"]);return _templateObject1=function(){return i},i}let E={title:""},C=(0,b.Z)(_templateObject(),v.Y),S=(0,b.Z)(_templateObject1(),C)},6746:function(i,u,c){"use strict";c.d(u,{qy:function(){return b},yK:function(){return G},Ty:function(){return X},nC:function(){return W},qk:function(){return Y},Lt:function(){return Z}});var f,b,v=c(2729),E=c(1972),C=c(8073),S=c(9676),x=c(2806);function _templateObject(){let i=(0,v._)(['\n *[\n _type == "navigation" &&\n _id == "navigation-" + $language &&\n language == $language\n ][0] {\n items[] {\n _key,\n type,\n text,\n reference->{\n ',"\n },\n url,\n isHighlighted,\n },\n }\n"]);return _templateObject=function(){return i},i}let R=(0,E.Z)(_templateObject(),S.f);var k=c(5282);
1function strings_templateObject(){let i=(0,v._)(['\n *[\n _type == "strings" &&\n _id == "strings-" + $language &&\n language == $language\n ][0] {\n ',",\n }\n"]);return strings_templateObject=function(){return i},i}function _templateObject1(){let i=(0,v._)(['\n *[\n _type == "certificateStrings" &&\n _id == "certificate-strings-" + $certificateLanguage &&\n language == $certificateLanguage\n ][0] {\n ',",\n }\n"]);return _templateObject1=function(){return i},i}let j=(0,E.Z)(strings_templateObject(),"siteName,memberTableMember,memberTableId,applicationFormPerYear,applicationFormPerMonth,applicationFormContactForPrice,applicationFormNameLabel,applicationFormNameRequired,applicationFormNameMissing,applicationFormRegistrationNumberLabel,applicationFormRegistrationNumberRequired,applicationFormRegistrationNumberMissing,applicationFormPhoneLabel,applicationFormPhoneRequired,applicationFormPhoneMissing,applicationFormEmailLabel,applicationFormEmailRequired,applicationFormEmailMissing,applicationFormEmailInvalid,applicationFormContactNameLabel,applicationFormContactNameRequired,applicationFormContactNameMissing,applicationFormWebsiteLabel,applicationFormWebsiteRequired,applicationFormWebsiteMissing,applicationFormCommentLabel,applicationFormCommentRequired,applicationFormCommentMissing,applicationFormRulesText,applicationFormSubmitLabel,applicationFormSubmitError"),F=(0,E.Z)(_templateObject1(),"certificateFor,certificateInfoHeader,certificateStatusLabel,certificateStatusValid,certificateStatusInvalid,certificateMemberIdLabel,certificateExpirationDateLabel,certificateWebsiteLabel,certificateDescriptionHeader,certificateDescriptionText,certificateDescriptionSignatureLabel,certificateExpiredText");var B=c(9117);function member_templateObject(){let i=(0,v._)(['\n *[\n _type == "member" &&\n (\n id == $memberIdentifier ||\n website == $memberIdentifier\n )\n ][0]\n']);return member_templateObject=function(){return i},i}function member_templateObject1(){let i=(0,v._)(['\n *[\n _type == "member"\n ] {\n _id,\n id,\n }\n']);return member_templateObject1=function(){return i},i}function _templateObject2(){let i=(0,v._)(['\n *[\n _type == "member"\n ] {\n id,\n }\n']);return _templateObject2=function(){return i},i}function _templateObject3(){let i=(0,v._)(['\n *[\n _type == "portableText"\n ] {\n "documentId": _id,\n content[\n _type == "memberTable"\n ] {\n list[\n _ref in $memberInternalIds\n ] {\n "memberId": _ref,\n },\n },\n }\n']);return _templateObject3=function(){return i},i}let M=(0,E.Z)(member_templateObject());function general_settings_templateObject(){let i=(0,v._)(['\n *[\n _type == "generalSettings" &&\n _id == "general-settings-" + $language &&\n language == $language\n ][0] {\n gtmScriptUrls,\n }\n']);return general_settings_templateObject=function(){return i},i}(0,E.Z)(member_templateObject1()),(0,E.Z)(_templateObject2()),(0,E.Z)(_templateObject3());let q=(0,E.Z)(general_settings_templateObject());function page_templateObject(){let i=(0,v._)(['\n ...,\n ...select(_type == "image" => {\n ','\n }),\n ...select(_type == "bigImage" => {\n image {\n ','\n },\n }),\n ...select(_type == "callToActionButton" => {\n ','\n }),\n ...select(_type == "contactBox" => {\n image {\n ','\n },\n }),\n ...select(_type == "memberTable" => {\n list[] {\n "member": *[\n _type == "member" &&\n _id == ^._ref\n ][0] {\n id,\n name,\n },\n },\n }),\n']);return page_templateObject=function(){return i},i}function page_templateObject1(){let i=(0,v._)(['\n ...,\n ...select(_type == "callToActionBlock" => {\n actions[] {\n ','\n },\n }),\n ...select(_type == "casesBlock" => {\n ...,\n callToAction {\n ',"\n },\n cases[] {\n _key,\n image {\n ",'\n },\n },\n }),\n ...select(_type == "certificateDescription" => {\n signatureImage {\n ','\n },\n }),\n ...select(_type == "hero" => {\n actions[] {\n ',"\n },\n backgroundImage {\n ",'\n },\n }),\n ...select(_type == "infoBlock" => {\n image {\n ',"\n },\n callToAction {\n ",'\n },\n }),\n ...select(_type == "memberTableBlock" => {\n ...,\n "members": *[\n _type == "member" &&\n visible == true &&\n expirationDate >= "','"\n ] | order(id asc) {\n "_key": _id,\n id,\n name,\n iconUrl,\n indexDa,\n indexEn,\n indexDe,\n indexSv,\n indexNet,\n _createdAt,\n },\n }),\n ...select(_type == "quotesBlock" => {\n quotes[] {\n ...,\n image {\n ','\n },\n },\n }),\n ...select(_type == "referenceBlock" => {\n logos[] {\n ...,\n image {\n ','\n },\n },\n }),\n ...select(_type == "smallInfoBlock" => {\n image {\n ','\n },\n }),\n ...select(_type == "smallImageInfoBlock" => {\n image {\n ',"\n },\n callToAction {\n ",'\n },\n }),\n ...select(_type == "stepsBlock" => {\n steps[] {\n ...,\n image {\n ','\n },\n },\n }),\n ...select(_type == "contentCards" => {\n cards[] {\n ...,\n image {\n ',"\n },\n content[] {\n ","\n },\n reference->{\n _type,\n slug {\n current,\n },\n },\n },\n }),\n content[] {\n ","\n }\n"]);
1return page_templateObject1=function(){return i},i}function page_templateObject2(){let i=(0,v._)(['\n "contentKeys": content[] {\n _key\n },\n content[]->{\n ',"\n },\n"]);return page_templateObject2=function(){return i},i}function page_templateObject3(){let i=(0,v._)(["\n title,\n slug {\n current\n },\n metadata {\n ","\n },\n noIndex,\n ","\n"]);return page_templateObject3=function(){return i},i}function _templateObject4(){let i=(0,v._)(['\n *[\n _type == "page" &&\n language == $language &&\n slug.current in $pageSlugs\n ][0] {\n ',"\n }\n"]);return _templateObject4=function(){return i},i}function _templateObject5(){let i=(0,v._)(['\n *[\n _type == "page" &&\n language == $language &&\n slug.current in $pageSlugs\n ][0] {\n ',"\n }\n"]);return _templateObject5=function(){return i},i}function _templateObject6(){let i=(0,v._)(['\n *[\n _type == "homePage" &&\n _id == "home-page-" + $language &&\n language == $language\n ][0] {\n ',"\n }\n"]);return _templateObject6=function(){return i},i}function _templateObject7(){let i=(0,v._)(['\n *[\n _type == "homePage" &&\n _id == "home-page-" + $language &&\n language == $language\n ][0] {\n ',"\n }\n"]);return _templateObject7=function(){return i},i}function _templateObject8(){let i=(0,v._)(['\n *[\n _type == "page" &&\n _id == "page-certificate-" + $language &&\n language == $language\n ][0] {\n ',"\n }\n"]);return _templateObject8=function(){return i},i}function _templateObject9(){let i=(0,v._)(['\n *[\n _type == "page" &&\n _id == "page-certificate-" + $language &&\n language == $language\n ][0] {\n ',"\n }\n"]);return _templateObject9=function(){return i},i}function _templateObject10(){let i=(0,v._)(['\n *[\n _type == "page" &&\n _id == "page-certificate-inactive-" + $language &&\n language == $language\n ][0] {\n ',"\n }\n"]);return _templateObject10=function(){return i},i}function _templateObject11(){let i=(0,v._)(['\n *[\n _type == "page" &&\n _id == "page-certificate-inactive-" + $language &&\n language == $language\n ][0] {\n ',"\n }\n"]);return _templateObject11=function(){return i},i}function _templateObject12(){let i=(0,v._)(['\n *[\n _type == "errorPage" &&\n _id == "error-page-" + $language &&\n language == $language\n ][0] {\n ',"\n }\n"]);return _templateObject12=function(){return i},i}function _templateObject13(){let i=(0,v._)(['\n *[\n _type == "errorPage" &&\n _id == "error-page-" + $language &&\n language == $language\n ][0] {\n ',"\n }\n"]);return _templateObject13=function(){return i},i}function _templateObject14(){let i=(0,v._)(['\n *[\n _type == "page"\n ] {\n language,\n slug {\n current,\n },\n }\n']);return _templateObject14=function(){return i},i}function _templateObject15(){let i=(0,v._)(['\n *[\n _type == "page" &&\n language == $language\n ] {\n _id,\n noIndex,\n slug {\n current,\n },\n content[]->{\n ...select(_type == "memberTableBlock" => {\n filterOptions[] {\n startingCharacter,\n endingCharacter,\n showRecent,\n },\n }),\n },\n }\n']);return _templateObject15=function(){return i},i}function _templateObject16(){let i=(0,v._)(['\n "generalSettings": ',',\n "navigation": ',',\n "footer": ',',\n "strings": ',',\n "defaultMetadata": ',',\n "thankYouPage": *[\n _type == "page" &&\n _id == "page-thank-you-" + $language &&\n language == $language\n ][0] {\n slug {\n current,\n },\n }\n']);return _templateObject16=function(){return i},i}function _templateObject17(){let i=(0,v._)(['\n "generalSettings": ',',\n "navigation": ',',\n "footer": ',',\n "strings": ',',\n "defaultMetadata": ',',\n "thankYouPage": *[\n _type == "page" &&\n _id == "page-thank-you-" + $language &&\n language == $language\n ][0] {\n slug {\n current,\n },\n },\n "member": ',',\n "certificateStrings": ',"\n"]);return _templateObject17=function(){return i},i}(f=b||(b={})).APPLICATION_FORM="applicationForm",f.CALL_TO_ACTION="callToActionBlock",f.CASES="c
1asesBlock",f.CERTIFICATE_DESCRIPTION="certificateDescription",f.CERTIFICATE_INFO="certificateInfo",f.CERTIFICATE_TITLE="certificateTitle",f.HERO="hero",f.ICON_GENERATOR="iconGenerator",f.INFO="infoBlock",f.MEMBER_TABLE="memberTableBlock",f.QUOTES="quotesBlock",f.REFERENCES="referenceBlock",f.SMALL_INFO="smallInfoBlock",f.SMALL_IMAGE_INFO="smallImageInfoBlock",f.STEPS="stepsBlock",f.CONTENT_CARDS="contentCards",f.TEXT="portableText";let L=(0,E.Z)(page_templateObject(),x.Y,x.Y,S.V,x.Y),U=(0,E.Z)(page_templateObject1(),S.V,S.V,x.Y,x.Y,S.V,x.Y,x.Y,S.V,(0,C.Zf)(new Date),x.Y,x.Y,x.Y,x.Y,S.V,x.Y,x.Y,L,L),V=(0,E.Z)(page_templateObject2(),U),H=(0,E.Z)(page_templateObject3(),B.Qb,V);(0,E.Z)(_templateObject4(),H);let Z=(0,E.Z)(_templateObject5(),V);(0,E.Z)(_templateObject6(),H);let W=(0,E.Z)(_templateObject7(),V);(0,E.Z)(_templateObject8(),H);let G=(0,E.Z)(_templateObject9(),V);(0,E.Z)(_templateObject10(),H);let Y=(0,E.Z)(_templateObject11(),V);(0,E.Z)(_templateObject12(),H);let X=(0,E.Z)(_templateObject13(),V);(0,E.Z)(_templateObject14()),(0,E.Z)(_templateObject15()),(0,E.Z)(_templateObject16(),q,R,k.VP,j,B.NP),(0,E.Z)(_templateObject17(),q,R,k.gw,j,B.NP,M,F)},3481:function(i,u,c){"use strict";c.d(u,{l:function(){return triggerGoogleTagManagerEvent}});var f=c(3416);let triggerGoogleTagManagerEvent=(i,u)=>{let c=(0,f.kP)("1234567890abcdef",16);window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:i,event_id:c(),...u})}},8073:function(i,u,c){"use strict";function parseCertificateDate(i){let u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;
1if("string"==typeof i&&10===i.length){let b=i.split("-");if(3===b.length)return new Date(Number(b[0]),Number(b[1])-1,Number(b[2]),u,c,f)}}function getIsCertificateActive(i){let u=parseCertificateDate(null==i?void 0:i.expirationDate,23,59,59);return!!u&&u.valueOf()>=Date.now()}function getISODate(i){let padNumber=i=>i<10?"0".concat(i):"".concat(i),u=i.getUTCFullYear(),c=padNumber(i.getUTCMonth()+1),f=padNumber(i.getUTCDate());return"".concat(u,"-").concat(c,"-").concat(f)}function getCertificateUrl(i,u){return"/".concat("certificate","/").concat(i,"/").concat(u)}c.d(u,{JO:function(){return parseCertificateDate},Zf:function(){return getISODate},pd:function(){return getCertificateUrl},wh:function(){return getIsCertificateActive}}),c(8251)},8251:function(i,u,c){"use strict";c.d(u,{SQ:function(){return v},bw:function(){return ea},y7:function(){return es},oG:function(){return eo},QT:function(){return H},Tn:function(){return et},ez:function(){return en},$8:function(){return ee},X9:function(){return L},AJ:function(){return eu},id:function(){return Z},rR:function(){return getAssetHostByLanguage},EL:function(){return getCertificateLanguageOptions},Yy:function(){return getHostByLanguage},Cf:function(){return getLanguageOptions},$i:function(){return getProtocolByHost},d$:function(){return K},ur:function(){return ec},pg:function(){return G},Mj:function(){return q},k1:function(){return V},v3:function(){return W}});var f,b,v,E,C,S,x,R,k,j,F,B,M=c(7294);let DE=()=>(0,M.createElement)("svg",{viewBox:"85.333 85.333 341.333 341.333"},(0,M.createElement)("path",{fill:"#D80027",d:"M0 85.331h512v341.337H0z"}),(0,M.createElement)("path",{d:"M0 85.331h512v113.775H0z"}),(0,M.createElement)("path",{fill:"#FFDA44",d:"M0 312.882h512v113.775H0z"})),DK=()=>(0,M.createElement)("svg",{viewBox:"23.94 0 342 342"},(0,M.createElement)("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),(0,M.createElement)("path",{fill:"#FFF",d:"M190 0h-60v140H0v60h130v142h60V200h323v-60H190z"})),FI=()=>(0,M.createElement)("svg",{viewBox:"37.554 0 341.3 341.3"},(0,M.createElement)("path",{fill:"#FFF",d:"M0 0h512v341.3H0z"}),(0,M.createElement)("path",{fill:"#2E52B2",d:"M512 129.3V212H203.7v129.3H121V212H0v-82.7h121V0h82.7v129.3z"})),GB=()=>(0,M.createElement)("svg",{viewBox:"85.333 85.333 341.333 341.333"},(0,M.createElement)("path",{fill:"#FFF",d:"M0 85.333h512V426.67H0z"}),(0,M.createElement)("path",{fill:"#D80027",d:"M288 85.33h-64v138.666H0v64h224v138.666h64V287.996h224v-64H288z"}),(0,M.createElement)("g",{fill:"#0052B4"},(0,M.createElement)("path",{d:"M393.785 315.358L512 381.034v-65.676zM311.652 315.358L512 426.662v-31.474l-143.693-79.83zM458.634 426.662l-146.982-81.664v81.664z"})),(0,M.createElement)("path",{fill:"#FFF",d:"M311.652 315.358L512 426.662v-31.474l-143.693-79.83z"}),(0,M.createElement)("path",{fill:"#D80027",d:"M311.652 315.358L512 426.662v-31.474l-143.693-79.83z"}),(0,M.createElement)("g",{fill:"#0052B4"},(0,M.createElement)("path",{d:"M90.341 315.356L0 365.546v-50.19zM200.348 329.51v97.151H25.491z"})),(0,M.createElement)("path",{fill:"#D80027",d:"M143.693 315.358L0 395.188v31.474l200.348-111.304z"}),(0,M.createElement)("g",{fill:"#0052B4"},(0,M.createElement)("path",{d:"M118.215 196.634L0 130.958v65.676zM200.348 196.634L0 85.33v31.474l143.693 79.83zM53.366 85.33l146.982 81.664V85.33z"})),(0,M.createElement)("path",{fill:"#FFF",d:"M200.348 196.634L0 85.33v31.474l143.693 79.83z"}),(0,M.createElement)("path",{fill:"#D80027",d:"M200.348 196.634L0 85.33v31.474l143.693 79.83z"}),(0,M.createElement)("g",{fill:"#0052B4"},(0,M.createElement)("path",{d:"M421.659 196.636L512 146.446v50.19zM311.652 182.482V85.331h174.857z"})),(0,M.createElement)("path",{fill:"#D80027",d:"M368.307 196.634L512 116.804V85.33L311.652 196.634z"})),SE=()=>(0,M.createElement)("svg",{viewBox:"30.72 85.333 341.333 341.333"},(0,M.createElement)("path",{fill:"#0052B4",d:"M0 85.333h512V426.67H0z"}),(0,M.createElement)("path",{fill:"#FFDA44",d:"M192 85.33h-64v138.666H0v64h128v138.666h64V287.996h320v-64H192z"}));(f=v||(v={})).DANISH="da",f.ENGLISH="en",f.GERMAN="de",f.SWEDISH="sv",f.FINNISH="fi";let q=["da","en","de","sv","fi"],L="en",U={da:"Dansk",en:"English",de:"Deutsch",sv:"Svenska",fi:"Suomi"},V={da:"da-DK",en:"en-GB",de:"de-DE",sv:"sv-SE",fi:"fi-FI"},H={da:"DKK",en:"EUR",de:"EUR",sv:"SEK",fi:"EUR"},Z={da:DK,en:GB,de:DE,sv:SE,fi:FI},W={da:{url:"logo_regular_da.svg",dimensions:{width:378,height:123}},en:{url:"logo_regular_en.svg",dimensions:{width:374,height:123}},de:{url:"logo_regular_de.svg",dimensions:{width:357,height:123}},sv:{url:"logo_regular_sv.svg",dimensions:{width:387,height:123}},fi:{url:"logo_regular_fi.svg",dimensions:{width:419,height:123}}},G={da:{url:"logo_inverse_da.svg",dimensions:{width:378,height:123}},en:{url:"logo_inverse_en.svg",dimensions:{width:374,height:123}},de:{url:"logo_inverse_de.svg",dimensions:{width:357,height:123}},sv:{url:"logo_inverse_sv.svg",dimensions:{width:335,height:107}},fi:{url:"logo_inverse_fi.svg",dimensions:{width:363,height:107}}},getLanguageOptions=()=>q.map(i=>{let u={value:i,label:U[i]};return u}),getLocaleLanguage=i=>{if(!i)return L;let u=i.split("-");return u[0]};var Y=c(4378),X=JSON.parse('[{"defaultLocale":"en-GB","domains":["www.co2neutralwebsite.com"]},{"defaultLocale":"da-DK","domains":["www.ingenco2.dk"]},{"defaultLocale":"de-DE","domains":["www.wdku.de"]},{"defaultLocale":"de-X","domains":["www.co2neutralwebsite.de"]},{"defaultLocale":"sv-SE","domains":["www.minskaco2.se"]}
1,{"defaultLocale":"fi-FI","domains":["www.co2neutralwebsite.fi"]}]');let Q=[{defaultLocale:"en-GB",domains:["assets.co2neutralwebsite.com"]},{defaultLocale:"da-DK",domains:["assets.ingenco2.dk"]},{defaultLocale:"de-DE",domains:["assets.wdku.de"]},{defaultLocale:"de-X",domains:["assets.wdku.de"]},{defaultLocale:"sv-SE",domains:["assets.minskaco2.se"]},{defaultLocale:"fi-FI",domains:["assets.co2neutralwebsite.fi"]}],domainMapItemToHostLanguageMapItem=i=>({hosts:i.domains,language:getLocaleLanguage(i.defaultLocale)}),K=null!==(R=null==X?void 0:X.map(domainMapItemToHostLanguageMapItem))&&void 0!==R?R:[],J=null!==(k=null==Q?void 0:Q.map(domainMapItemToHostLanguageMapItem))&&void 0!==k?k:[],ee=null!==(j=null==K?void 0:null===(C=K[0])||void 0===C?void 0:null===(E=C.hosts)||void 0===E?void 0:E[0])&&void 0!==j?j:"ingenco2.dk",et=null!==(F=null==J?void 0:null===(x=J[0])||void 0===x?void 0:null===(S=x.hosts)||void 0===S?void 0:S[0])&&void 0!==F?F:"ingenco2.dk",findHostLanguageMapItem=i=>K.find(u=>u.hosts.some(u=>u==i||(0,Y.As)(i,u))),getProtocolByHost=i=>{var u,c;let f=null!==(c=null===(u=findHostLanguageMapItem(i))||void 0===u?void 0:u.hosts)&&void 0!==c?c:[];return f.some(i=>i.includes("local."))?"http":"https"},getHostByLanguage=i=>{var u,c;return null===(c=K.find(u=>u.language==i))||void 0===c?void 0:null===(u=c.hosts)||void 0===u?void 0:u[0]},getAssetHostByLanguage=i=>{var u,c;return null===(c=J.find(u=>u.language==i))||void 0===c?void 0:null===(u=c.hosts)||void 0===u?void 0:u[0]};(b=B||(B={})).DANISH="da",b.ENGLISH="en",b.GERMAN="de",b.SWEDISH="sv",b.FINNISH="fi",b.NORWEGIAN="no",b.FRENCH="fr",b.GREENLANDIC="kl",b.POLISH="pl",b.SPANISH="es",b.ROMANIAN="ro",b.ITALIAN="it",b.PORTUGUESE="pt",b.TURKISH="tr",b.ICELANDIC="is";let er=["da","en","de","sv","fi","no","fr","kl","pl","es","ro","it","pt","tr","is"],en="en",ei={da:"Dansk",en:"English",de:"Deutsch",sv:"Svenska",fi:"Suomi",no:"Norsk",fr:"Fran\xe7ais",kl:"Kalaallisut",pl:"Polski",es:"Espa\xf1ol",ro:"Rom\xe2n",it:"Italiano",pt:"Portugu\xeas",tr:"T\xfcrk\xe7e",is:"\xcdslenska"},eo={da:"da-DK",en:"en-GB",de:"de-DE",sv:"sv-SE",fi:"fi-FI",no:"nb-NO",fr:"fr-FR",kl:"kl-GL",pl:"pl-PL",es:"es-ES",ro:"ro-RO",it:"it-IT",pt:"pt-PT",tr:"tr-TR",is:"is-IS"},ea={da:DK,en:GB,de:DE,sv:SE,fi:FI,no:()=>(0,M.createElement)("svg",{viewBox:"37.547 85.333 341.333 341.333"},(0,M.createElement)("path",{fill:"#D80027",d:"M0 85.334h512v341.337H0z"}),(0,M.createElement)("path",{fill:"#FFF",d:"M512 295.883H202.195v130.783H122.435V295.883H0V216.111h122.435V85.329H202.195v130.782H512V277.329z"}),(0,M.createElement)("path",{fill:"#2E52B2",d:"M512 234.666v42.663H183.652v149.337h-42.674V277.329H0v-42.663h140.978V85.329h42.674v149.337z"})),fr:()=>(0,M.createElement)("svg",{viewBox:"85.333 85.333 341.333 341.333"},(0,M.createElement)("path",{fill:"#FFF",d:"M0 85.331h512v341.337H0z"}),(0,M.createElement)("path",{fill:"#0052B4",d:"M0 85.331h170.663v341.337H0z"}),(0,M.createElement)("path",{fill:"#D80027",d:"M341.337 85.331H512v341.337H341.337z"})),kl:()=>(0,M.createElement)("svg",{viewBox:"90.63 0 342 342"},(0,M.createElement)("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),(0,M.createElement)("path",{fill:"#FFF",d:"M513 0v171H0V0z"}),(0,M.createElement)("circle",{fill:"#FFF",cx:185.8,cy:171.2,r:117.8}),(0,M.createElement)("path",{fill:"#D80027",d:"M68 171c0-65.1 52.8-117.8 117.8-117.8 65.1 0 117.8 52.8 117.8 117.8"})),pl:()=>(0,M.createElement)("svg",{viewBox:"85.333 85.333 341.333 341.333"},(0,M.createElement)("g",{fill:"#FFF"},(0,M.createElement)("path",{d:"M0 85.337h512v341.326H0z"}),(0,M.createElement)("path",{d:"M0 85.337h512V256H0z"})),(0,M.createElement)("path",{fill:"#D80027",d:"M0 256h512v170.663H0z"})),es:()=>(0,M.createElement)("svg",{viewBox:"85.333 85.333 341.333 341.333"},(0,M.createElement)("path",{fill:"#FFDA44",d:"M0 85.331h512v341.337H0z"}),(0,M.createElement)("g",{fill:"#D80027"},(0,M.createElement)("path",{d:"M0 85.331h512v113.775H0zM0 312.882h512v113.775H0z"}))),ro:()=>(0,M.createElement)("svg",{viewBox:"85.333 85.333 341.333 341.333"},(0,M.createElement)("path",{fill:"#FFDA44",d:"M0 85.331h512v341.326H0z"}),(0,M.createElement)("path",{fill:"#0052B4",d:"M0 85.331h170.663v341.337H0z"}),(0,M.createElement)("path",{fill:"#D80027",d:"M341.337 85.331H512v341.337H341.337z"})),it:()=>(0,M.createElement)("svg",{viewBox:"0 0 3 2"},(0,M.createElement)("rect",{fill:"#009246",width:3,height:2}),(0,M.createElement)("rect",{fill:"#ffffff",width:2,height:2,x:1}),(0,M.createElement)("rect",{fill:"#ce2b37",width:1,height:2,x:2})),pt:()=>(0,M.createElement)("svg",{viewBox:"30.72 85.333 341.333 341.333"},(0,M.createElement)("path",{fill:"#D80027",d:"M0 85.337h512v341.326H0z"}),(0,M.createElement)("path",{fill:"#6DA544",d:"M196.641 85.337v341.326H0V85.337z"}),(0,M.createElement)("circle",{fill:"#FFDA44",cx:196.641,cy:256,r:64}),(0,M.createElement)("path",{fill:"#D80027",d:"M160.638 224v40.001c0 19.882 16.118 36 36 36s36-16.118 36-36V224h-72z"}),(0,M.createElement)("path",{fill:"#FFF",d:"M196.638 276c-6.617 0-12-5.383-12-12v-16h24.001v16c-.001 6.616-5.385 12-12.001 12z"})),tr:()=>(0,M.createElement)("svg",{viewBox:"67.5 0 300 300"},(0,M.createElement)("path",{fill:"#d80027",d:"M0 150V0h450v300H0V150z"}),(0,M.createElement)("path",{fill:"#FFF",d:"M247.3 118.3l35.2 5.8L307.4 99l5.1 32.8L344 150l-31.5 18.2-4.9 33.5-25.1-25.9-35.2 5.8L263 150z"}),(0,M.createElement)("path",{fill:"#FFF",d:"M240.6 228.6c-43.3 0-78.3-35.1-78.3-78.3S197.4 72 240.6 72c8.1 0 15.8 1.2 23.2 3.5-17.3-15-39.8-24-64.5-24-54.4 0-98.6 44.1-98.6 98.6s44.1 98.6 98.6 98.6c24.2 0 46.3-8.7 63.4-23.1-7 1.9-14.4 3-22.1 3z"})),is:()=>(0,M.createElement)("svg",{viewBox:"32.427 85.333 341.333 341.333"},(0,M.createElement)("path",{fill:"#0052B4",d:"M0 85.334h512v341.337H0z"}),(0,M.createElement)("path",{fill:"#FFF",d:"M512 295.883H202.195v130.783H122.435V295.883H0V216.111h122.435V85.329H202.195v130.782H512V277.329z"}),(0,M.createElement)("path",{fill:"#D80027",d:"M512 234.666v42.663H183.652v149.337h-42.674V277.329H0v-42.663h140.978V85.329h42.674v149.337z"}))},es={en:"Websites supporting <b>climate projects</b>",da:"Websites, der st\xf8tter <b>klimaprojekter</b>",de:"Websites, <b>die Klimaprojekte</b> unterst\xfctzen",sv:"Websites som st\xf6der <b>klimatprojekt</b>",fi:"Websites, jotka tukevat <b>ilmastohankkeita</b>",no:"Websites som st\xf8tter <b>klimaprosjekter</b>",fr:"Websites soutenant <b>des projets climatiques</b>",kl:"Nittartakkat <b>silap sanaatinik</b> ikiuuttut",pl:"Websites wspierające <b>projekty klimatyczne</b>",es:"Websites que apoyan <b>proyectos clim\xe1ticos</b>",ro:"Websites care susțin <b>proiecte climatice</b>",it:"Websites che supportano <b>progetti climatici</b>",pt:"Websites que apoiam <b>projetos clim\xe1ticos</b>",tr:"Websites, <b>iklim projelerini</b>
1 destekliyor",is:"Vefsv\xe6\xf0i sem sty\xf0ja <b>loftslagsverkefni</b>"},eu="embed",ec="icons",getCertificateLanguageOptions=()=>er.map(i=>{let u={value:i,label:ei[i]};return u})},3829:function(i,u,c){"use strict";c.d(u,{e:function(){return getPageLocation}});let getPageLocation=()=>{let i=document.location.protocol,u=document.location.hostname,c=document.location.pathname,f=document.location.search,b=document.location.port;return b=b&&"80"!==b?":".concat(b):"","".concat(i,"//").concat(u).concat(b).concat(c).concat(f)}},3901:function(i,u,c){"use strict";c.d(u,{g$:function(){return calculateImageSize},MH:function(){return td},xl:function(){return getPreviewSanityClient},hD:function(){return getSanityImageUrl}});let f=!(typeof navigator>"u")&&"ReactNative"===navigator.product,b={timeout:f?6e4:12e4},_commonjsHelpers_r=function(i){let u={...b,..."string"==typeof i?{url:i}:i};if(u.timeout=function n(i){if(!1===i||0===i)return!1;if(i.connect||i.socket)return i;let u=Number(i);return isNaN(u)?n(b.timeout):{connect:u,socket:u}}(u.timeout),u.query){let{url:i,searchParams:c}=function(i){let u=i.indexOf("?");if(-1===u)return{url:i,searchParams:new URLSearchParams};let c=i.slice(0,u),b=i.slice(u+1);if(!f)return{url:c,searchParams:new URLSearchParams(b)};if("function"!=typeof decodeURIComponent)throw Error("Broken `URLSearchParams` implementation, and `decodeURIComponent` is not defined");let v=new URLSearchParams;for(let i of b.split("&")){let[u,c]=i.split("=");u&&v.append(o(u),o(c||""))}return{url:c,searchParams:v}}(u.url);for(let[f,b]of Object.entries(u.query)){if(void 0!==b){if(Array.isArray(b))for(let i of b)c.append(f,i);else c.append(f,b)}let v=c.toString();v&&(u.url=`${i}?${v}`)}}return u.method=u.body&&!u.method?"POST":(u.method||"GET").toUpperCase(),u};function o(i){return decodeURIComponent(i.replace(/\+/g," "))}let v=/^https?:\/\//i,s=function(i){if(!v.test(i.url))throw Error(`"${i.url}" is not a valid URL`)},E=["request","response","progress","error","abort"],C=["processOptions","validateOptions","interceptRequest","finalizeOptions","onRequest","onResponse","onError","onReturn","onHeaders"];var S,x,R,k,j,F,B=(S=function(){if(F)return j;F=1;var e=function(i){return i.replace(/^\s+|\s+$/g,"")};return j=function(i){if(!i)return{};for(var u=Object.create(null),c=e(i).split("\n"),f=0;f<c.length;f++){var b,v=c[f],E=v.indexOf(":"),C=e(v.slice(0,E)).toLowerCase(),S=e(v.slice(E+1));typeof u[C]>"u"?u[C]=S:(b=u[C],"[object Array]"===Object.prototype.toString.call(b))?u[C].push(S):u[C]=[u[C],S]}return u}}())&&S.__esModule&&Object.prototype.hasOwnProperty.call(S,"default")?S.default:S;let l=class l{onabort;onerror;onreadystatechange;ontimeout;readyState=0;response;responseText="";responseType="";status;statusText;withCredentials;#e;#t;#r;#n={};#i;#o={};#a;open(i,u,c){this.#e=i,this.#t=u,this.#r="",this.readyState=1,this.onreadystatechange?.(),this.#i=void 0}abort(){this.#i&&this.#i.abort()}getAllResponseHeaders(){return this.#r}setRequestHeader(i,u){this.#n[i]=u}setInit(i,u=!0){this.#o=i,this.#a=u}send(i){let u="arraybuffer"!==this.responseType,c={...this.#o,method:this.#e,headers:this.#n,body:i};"function"==typeof AbortController&&this.#a&&(this.#i=new AbortController,"u">typeof EventTarget&&this.#i.signal instanceof EventTarget&&(c.signal=this.#i.signal)),"u">typeof document&&(c.credentials=this.withCredentials?"include":"omit"),fetch(this.#t,c).then(i=>(i.headers.forEach((i,u)=>{this.#r+=`${u}: ${i}\r 2`}),this.status=i.status,this.statusText=i.statusText,this.readyState=3,this.onreadystatechange?.(),u?i.text():i.arrayBuffer())).then(i=>{"string"==typeof i?this.responseText=i:this.response=i,this.readyState=4,this.onreadystatechange?.()}).catch(i=>{"AbortError"!==i.name?this.onerror?.(i):this.onabort?.()})}};let M="function"==typeof XMLHttpRequest?"xhr":"fetch",q="xhr"===M?XMLHttpRequest:l,d=(i,u)=>{let c=i.options,f=i.applyMiddleware("finalizeOptions",c),b={},v=i.applyMiddleware("interceptRequest",void 0,{adapter:M,context:i});if(v){let i=setTimeout(u,0,null,v);return{abort:()=>clearTimeout(i)}}let E=new q;E instanceof l&&"object"==typeof f.fetch&&E.setInit(f.fetch,f.useAbortSignal??!0);let C=f.headers,S=f.timeout,x=!1,R=!1,k=!1;if(E.onerror=i=>{m(E instanceof l?i instanceof Error?i:Error(`Request error while attempting to reach is ${f.url}`,{cause:i}):Error(`Request error while attempting to reach is ${f.url}${i.lengthComputable?`(${i.loaded} of ${i.total} bytes transferred)`:""}`))},E.ontimeout=i=>{m(Error(`Request timeout while attempting to reach ${f.url}${i.lengthComputable?`(${i.loaded} of ${i.total} bytes transferred)`:""}`))},E.onabort=()=>{w(!0),x=!0},E.onreadystatechange=function(){S&&(w(),b.socket=setTimeout(()=>y("ESOCKETTIMEDOUT"),S.socket)),!x&&E&&4===E.readyState&&0!==E.status&&function(){if(!(x||R||k)){if(0===E.status)return void m(Error("Unknown XHR error"));w(),R=!0,u(null,{body:E.response||(""===E.responseType||"text"===E.responseType?E.responseText:""),url:f.url,method:f.method,headers:B(E.getAllResponseHeaders()),statusCode:E.status,statusMessage:E.statusText})}}()},E.open(f.method,f.url,!0),E.withCredentials=!!f.withCredentials,C&&E.setRequestHeader)for(let i in C)C.hasOwnProperty(i)&&E.setRequestHeader(i,C[i]);return f.rawBody&&(E.responseType="arraybuffer"),i.applyMiddleware("onRequest",{options:f,adapter:M,request:E,context:i}),E.send(f.body||null),S&&(b.connect=setTimeout(()=>y("ETIMEDOUT"),S.connect)),{abort:function(){x=!0,E&&E.abort()}};function y(u){k=!0,E.abort();let c=Error("ESOCKETTIMEDOUT"===u?`Socket timed out on request to ${f.url}`:`Connection timed out on request to ${f.url}`);c.code=u,i.channels.error.publish(c)}function w(i){(i||x||E&&E.readyState>=2&&b.connect)&&clearTimeout(b.connect),b.socket&&clearTimeout(b.socket)}function m(i){if(R)return;w(!0),R=!0,E=null;
2let c=i||Error(`Network error while attempting to reach ${f.url}`);c.isNetworkError=!0,c.request=f,u(c)}},p=(i=[],u=d)=>(function index_browser_s(i,u){let c=[],f=C.reduce((i,u)=>(i[u]=i[u]||[],i),{processOptions:[_commonjsHelpers_r],validateOptions:[s]});function l(i){let c;let b=E.reduce((i,u)=>(i[u]=function(){let i=Object.create(null),u=0;return{publish:function(u){for(let c in i)i[c](u)},subscribe:function(c){let f=u++;return i[f]=c,function(){delete i[f]}}}}(),i),{}),r=function(i,u,...c){let b="onError"===i,v=u;for(let u=0;u<f[i].length&&(v=(0,f[i][u])(v,...c),!b||v);u++);return v},v=r("processOptions",i);r("validateOptions",v);let C={options:v,channels:b,applyMiddleware:r},S=b.request.subscribe(i=>{c=u(i,(u,c)=>((i,u,c)=>{let f=i,v=u;if(!f)try{v=r("onResponse",u,c)}catch(i){v=null,f=i}(f=f&&r("onError",f,c))?b.error.publish(f):v&&b.response.publish(v)})(u,c,i))});b.abort.subscribe(()=>{S(),c&&c.abort()});let x=r("onReturn",b,C);return x===b&&b.request.publish(C),x}return l.use=function(i){if(!i)throw Error("Tried to add middleware that resolved to falsey value");if("function"==typeof i)throw Error("Tried to add middleware that was a function. It probably expects you to pass options to it.");if(i.onReturn&&f.onReturn.length>0)throw Error("Tried to add new middleware with `onReturn` handler, but another handler has already been registered for this event");
2return C.forEach(u=>{i[u]&&f[u].push(i[u])}),c.push(i),l},l.clone=()=>index_browser_s(c,u),i.forEach(l.use),l})(i,u);var L,U,V,H,Z,W=c(3454),G=c(1876).Buffer,Y={exports:{}};Z||(Z=1,function(i,u){let c;u.formatArgs=function(u){if(u[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+u[0]+(this.useColors?"%c ":" ")+"+"+i.exports.humanize(this.diff),!this.useColors)return;let c="color: "+this.color;u.splice(1,0,c,"color: inherit");let f=0,b=0;u[0].replace(/%[a-zA-Z%]/g,i=>{"%%"!==i&&(f++,"%c"===i&&(b=f))}),u.splice(b,0,c)},u.save=function(i){try{i?u.storage.setItem("debug",i):u.storage.removeItem("debug")}catch{}},u.load=function(){let i;try{i=u.storage.getItem("debug")||u.storage.getItem("DEBUG")}catch{}return!i&&"u">typeof W&&"env"in W&&(i=W.env.DEBUG),i},u.useColors=function(){let i;return"u">typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("u">typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"u">typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"u">typeof navigator&&navigator.userAgent&&(i=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(i[1],10)>=31||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},u.storage=function(){try{return localStorage}catch{}}(),u.destroy=(c=!1,()=>{c||(c=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}),u.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],u.log=console.debug||console.log||(()=>{}),i.exports=(H?V:(H=1,V=function(i){function t(i){let u,c,f,b=null;function a(...i){if(!a.enabled)return;let c=Number(new Date),f=c-(u||c);a.diff=f,a.prev=u,a.curr=c,u=c,i[0]=t.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");let b=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,(u,c)=>{if("%%"===u)return"%";b++;let f=t.formatters[c];if("function"==typeof f){let c=i[b];u=f.call(a,c),i.splice(b,1),b--}return u}),t.formatArgs.call(a,i),(a.log||t.log).apply(a,i)}return a.namespace=i,a.useColors=t.useColors(),a.color=t.selectColor(i),a.extend=s,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==b?b:(c!==t.namespaces&&(c=t.namespaces,f=t.enabled(i)),f),set:i=>{b=i}}),"function"==typeof t.init&&t.init(a),a}function s(i,u){let c=t(this.namespace+(typeof u>"u"?":":u)+i);return c.log=this.log,c}function n(i,u){let c=0,f=0,b=-1,v=0;for(;c<i.length;)if(f<u.length&&(u[f]===i[c]||"*"===u[f]))"*"===u[f]?(b=f,v=c):c++,f++;else{if(-1===b)return!1;f=b+1,c=++v}for(;f<u.length&&"*"===u[f];)f++;return f===u.length}return t.debug=t,t.default=t,t.coerce=function(i){return i instanceof Error?i.stack||i.message:i},t.disable=function(){let i=[...t.names,...t.skips.map(i=>"-"+i)].join(",");return t.enable(""),i},t.enable=function(i){t.save(i),t.namespaces=i,t.names=[],t.skips=[];let u=("string"==typeof i?i:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let i of u)"-"===i[0]?t.skips.push(i.slice(1)):t.names.push(i)},t.enabled=function(i){for(let u of t.skips)if(n(i,u))return!1;for(let u of t.names)if(n(i,u))return!0;return!1},t.humanize=function(){if(U)return L;function o(i,u,c,f){return Math.round(i/c)+" "+f+(u>=1.5*c?"s":"")}return U=1,L=function(i,u){u=u||{};var c,f,b=typeof i;if("string"===b&&i.length>0)return function(i){if(!((i=String(i)).length>100)){var u=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i);if(u){var c=parseFloat(u[1]);switch((u[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*c;case"weeks":case"week":case"w":return 6048e5*c;case"days":case"day":case"d":return 864e5*c;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*c;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*c;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*c;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}}}(i);if("number"===b&&isFinite(i))return u.long?(f=Math.abs(i))>=864e5?o(i,f,864e5,"day"):f>=36e5?o(i,f,36e5,"hour"):f>=6e4?o(i,f,6e4,"minute"):f>=1e3?o(i,f,1e3,"second"):i+" ms":(c=Math.abs(i))>=864e5?Math.round(i/864e5)+"d":c>=36e5?Math.round(i/36e5)+"h":c>=6e4?Math.round(i/6e4)+"m":c>=1e3?Math.round(i/1e3)+"s":i+"ms";throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(i))}}(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}
2,Object.keys(i).forEach(u=>{t[u]=i[u]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(i){let u=0;for(let c=0;c<i.length;c++)u=(u<<5)-u+i.charCodeAt(c)|0;return t.colors[Math.abs(u)%t.colors.length]},t.enable(t.load()),t}))(u);let{formatters:f}=i.exports;f.j=function(i){try{return JSON.stringify(i)}catch(i){return"[UnexpectedJSONParseError]: "+i.message}}}(Y,Y.exports)),Y.exports,Object.prototype.hasOwnProperty;let X=typeof G>"u"?()=>!1:i=>G.isBuffer(i);function O(i){return"[object Object]"===Object.prototype.toString.call(i)}let Q=["boolean","string","number"],K={};"u">typeof globalThis?K=globalThis:"u">typeof window?K=window:"u">typeof global?K=global:"u">typeof self&&(K=self);var J=K;let N=(i={})=>{let u=i.implementation||Promise;if(!u)throw Error("`Promise` is not available in global scope, and no implementation was passed");return{onReturn:(c,f)=>new u((u,b)=>{let v=f.options.cancelToken;v&&v.promise.then(i=>{c.abort.publish(i),b(i)}),c.error.subscribe(b),c.response.subscribe(c=>{u(i.onlyBody?c.body:c)}),setTimeout(()=>{try{c.request.publish(f)}catch(i){b(i)}},0)})}};let I=class I{__CANCEL__=!0;message;constructor(i){this.message=i}toString(){return"Cancel"+(this.message?`: ${this.message}`:"")}};let T=class T{promise;reason;constructor(i){if("function"!=typeof i)throw TypeError("executor must be a function.");let u=null;this.promise=new Promise(i=>{u=i}),i(i=>{this.reason||(this.reason=new I(i),u(this.reason))})}static source=()=>{let i;return{token:new T(u=>{i=u}),cancel:i}}};N.Cancel=I,N.CancelToken=T,N.isCancel=i=>!(!i||!i?.__CANCEL__);var $=(i,u,c)=>("GET"===c.method||"HEAD"===c.method)&&(i.isNetworkError||!1);function _(i){return 100*Math.pow(2,i)+100*Math.random()}let P=(i={})=>(i=>{let u=i.maxRetries||5,c=i.retryDelay||_,f=i.shouldRetry;return{onError:(i,b)=>{var v;let E=b.options,C=E.maxRetries||u,S=E.retryDelay||c,x=E.shouldRetry||f,R=E.attemptNumber||0;if(null!==(v=E.body)&&"object"==typeof v&&"function"==typeof v.pipe||!x(i,R,E)||R>=C)return i;let k=Object.assign({},b,{options:Object.assign({},E,{attemptNumber:R+1})});return setTimeout(()=>b.channels.request.publish(k),S(R)),null}}})({shouldRetry:$,...i});P.shouldRetry=$;var ee=c(230),et=c(9917),er=c(8474);function isScheduler(i){return i&&(0,er.m)(i.schedule)}function last(i){return i[i.length-1]}function args_popScheduler(i){return isScheduler(last(i))?i.pop():void 0}var en=c(7878),ei=c(7845),eo=c(6798),ea=c(2566);function observeOn(i,u){return void 0===u&&(u=0),(0,eo.e)(function(c,f){c.subscribe((0,ea.x)(f,function(c){return(0,ei.f)(f,i,function(){return f.next(c)},u)},function(){return(0,ei.f)(f,i,function(){return f.complete()},u)},function(c){return(0,ei.f)(f,i,function(){return f.error(c)},u)}))})}function subscribeOn(i,u){return void 0===u&&(u=0),(0,eo.e)(function(c,f){f.add(i.schedule(function(){return c.subscribe(f)},u))})}var es=c(9768);function scheduleAsyncIterable(i,u){if(!i)throw Error("Iterable cannot be null");return new ee.y(function(c){(0,ei.f)(c,u,function(){var f=i[Symbol.asyncIterator]();(0,ei.f)(c,u,function(){f.next().then(function(i){i.done?c.complete():c.next(i.value)})},0,!0)})})}var eu=c(1764),ec=c(3841),el=c(5685),ef=c(1837),ed=c(8430),ep=c(8729),eh=c(8671);function from_from(i,u){return u?function(i,u){if(null!=i){if((0,eu.c)(i))return(0,en.Xf)(i).pipe(subscribeOn(u),observeOn(u));if((0,el.z)(i))return new ee.y(function(c){var f=0;return u.schedule(function(){f===i.length?c.complete():(c.next(i[f++]),c.closed||this.schedule())})});if((0,ec.t)(i))return(0,en.Xf)(i).pipe(subscribeOn(u),observeOn(u));if((0,ed.D)(i))return scheduleAsyncIterable(i,u);if((0,ef.T)(i))return new ee.y(function(c){var f;return(0,ei.f)(c,u,function(){f=i[es.h](),(0,ei.f)(c,u,function(){var i,u,b;try{u=(i=f.next()).value,b=i.done}catch(i){c.error(i);return}b?c.complete():c.next(u)},0,!0)}),function(){return(0,er.m)(null==f?void 0:f.return)&&f.return()}});if((0,eh.L)(i))return scheduleAsyncIterable((0,eh.Q)(i),u)}throw(0,ep.z)(i)}(i,u):(0,en.Xf)(i)}function of(){for(var i=[],u=0;u<arguments.length;u++)i[u]=arguments[u];var c=args_popScheduler(i);return from_from(i,c)}var eg=c(5014),ey=c(1819),eb=(0,ey.d)(function(i){return function(){i(this),this.name="EmptyError",this.message="no elements in sequence"}});function lastValueFrom(i,u){var c="object"==typeof u;return new Promise(function(f,b){var v,E=!1;i.subscribe({next:function(i){v=i,E=!0},error:b,complete:function(){E?f(v):c?f(u.defaultValue):b(new eb)}})})}var ev=c(7582),e_=c(4222),ew=(0,ey.d)(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),eE=c(3699),eC=c(8846),eS=function(i){function Subject(){var u=i.call(this)||this;return u.closed=!1,u.currentObservers=null,u.observers=[],u.isStopped=!1,u.hasError=!1,u.thrownError=null,u}return(0,ev.ZT)(Subject,i),Subject.prototype.lift=function(i){var u=new eO(this,this);return u.operator=i,u},Subject.prototype._throwIfClosed=function(){if(this.closed)throw new ew},Subject.prototype.next=function(i){var u=this;(0,eC.x)(function(){var c,f;if(u._throwIfClosed(),!u.isStopped){u.currentObservers||(u.currentObservers=Array.from(u.observers));try{for(var b=(0,ev.XA)(u.currentObservers),v=b.next();!v.done;v=b.next())v.value.next(i)}catch(i){c={error:i}}finally{try{v&&!v.done&&(f=b.return)&&f.call(b)}finally{if(c)throw c.error}}}})},Subject.prototype.error=function(i){var u=this;(0,eC.x)(function(){if(u._throwIfClosed(),!u.isStopped){u.hasError=u.isStopped=!0,u.thrownError=i;for(var c=u.observers;c.length;)c.shift().error(i)}})},Subject.prototype.complete=function(){var i=this;(0,eC.x)(function(){if(i._throwIfClosed(),!i.isStopped){i.isStopped=!0;for(var u=i.observers;u.length;)u.shift().complete()}})},Subject.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(Subject.prototype,"observed",{get:function(){var i;return(null===(i=this.observers)||void 0===i?void 0:i.length)>0}
2,enumerable:!1,configurable:!0}),Subject.prototype._trySubscribe=function(u){return this._throwIfClosed(),i.prototype._trySubscribe.call(this,u)},Subject.prototype._subscribe=function(i){return this._throwIfClosed(),this._checkFinalizedStatuses(i),this._innerSubscribe(i)},Subject.prototype._innerSubscribe=function(i){var u=this,c=this.hasError,f=this.isStopped,b=this.observers;return c||f?e_.Lc:(this.currentObservers=null,b.push(i),new e_.w0(function(){u.currentObservers=null,(0,eE.P)(b,i)}))},Subject.prototype._checkFinalizedStatuses=function(i){var u=this.hasError,c=this.thrownError,f=this.isStopped;u?i.error(c):f&&i.complete()},Subject.prototype.asObservable=function(){var i=new ee.y;return i.source=this,i},Subject.create=function(i,u){return new eO(i,u)},Subject}(ee.y),eO=function(i){function AnonymousSubject(u,c){var f=i.call(this)||this;return f.destination=u,f.source=c,f}return(0,ev.ZT)(AnonymousSubject,i),AnonymousSubject.prototype.next=function(i){var u,c;null===(c=null===(u=this.destination)||void 0===u?void 0:u.next)||void 0===c||c.call(u,i)},AnonymousSubject.prototype.error=function(i){var u,c;null===(c=null===(u=this.destination)||void 0===u?void 0:u.error)||void 0===c||c.call(u,i)},AnonymousSubject.prototype.complete=function(){var i,u;null===(u=null===(i=this.destination)||void 0===i?void 0:i.complete)||void 0===u||u.call(i)},AnonymousSubject.prototype._subscribe=function(i){var u,c;return null!==(c=null===(u=this.source)||void 0===u?void 0:u.subscribe(i))&&void 0!==c?c:e_.Lc},AnonymousSubject}(eS),ex={now:function(){return(ex.delegate||Date).now()},delegate:void 0},eI=function(i){function ReplaySubject(u,c,f){void 0===u&&(u=1/0),void 0===c&&(c=1/0),void 0===f&&(f=ex);var b=i.call(this)||this;return b._bufferSize=u,b._windowTime=c,b._timestampProvider=f,b._buffer=[],b._infiniteTimeWindow=!0,b._infiniteTimeWindow=c===1/0,b._bufferSize=Math.max(1,u),b._windowTime=Math.max(1,c),b}return(0,ev.ZT)(ReplaySubject,i),ReplaySubject.prototype.next=function(u){var c=this.isStopped,f=this._buffer,b=this._infiniteTimeWindow,v=this._timestampProvider,E=this._windowTime;!c&&(f.push(u),b||f.push(v.now()+E)),this._trimBuffer(),i.prototype.next.call(this,u)},ReplaySubject.prototype._subscribe=function(i){this._throwIfClosed(),this._trimBuffer();for(var u=this._innerSubscribe(i),c=this._infiniteTimeWindow,f=this._buffer.slice(),b=0;b<f.length&&!i.closed;b+=c?1:2)i.next(f[b]);return this._checkFinalizedStatuses(i),u},ReplaySubject.prototype._trimBuffer=function(){var i=this._bufferSize,u=this._timestampProvider,c=this._buffer,f=this._infiniteTimeWindow,b=(f?1:2)*i;if(i<1/0&&b<c.length&&c.splice(0,c.length-b),!f){for(var v=u.now(),E=0,C=1;C<c.length&&c[C]<=v;C+=2)E=C;E&&c.splice(0,E+1)}},ReplaySubject}(eS),eA=c(5044);function share(i){void 0===i&&(i={});var u=i.connector,c=void 0===u?function(){return new eS}:u,f=i.resetOnError,b=void 0===f||f,v=i.resetOnComplete,E=void 0===v||v,C=i.resetOnRefCountZero,S=void 0===C||C;return function(i){var u,f,v,C=0,x=!1,R=!1,cancelReset=function(){null==f||f.unsubscribe(),f=void 0},reset=function(){cancelReset(),u=v=void 0,x=R=!1},resetAndUnsubscribe=function(){var i=u;reset(),null==i||i.unsubscribe()};return(0,eo.e)(function(i,k){C++,R||x||cancelReset();var j=v=null!=v?v:c();k.add(function(){0!=--C||R||x||(f=handleReset(resetAndUnsubscribe,S))}),j.subscribe(k),!u&&C>0&&(u=new eA.Hp({next:function(i){return j.next(i)},error:function(i){R=!0,cancelReset(),f=handleReset(reset,b,i),j.error(i)},complete:function(){x=!0,cancelReset(),f=handleReset(reset,E),j.complete()}}),(0,en.Xf)(i).subscribe(u))})(i)}}function handleReset(i,u){for(var c=[],f=2;f<arguments.length;f++)c[f-2]=arguments[f];if(!0===u){i();return}if(!1!==u){var b=new eA.Hp({next:function(){b.unsubscribe(),i()}});return(0,en.Xf)(u.apply(void 0,(0,ev.ev)([],(0,ev.CR)(c)))).subscribe(b)}}function catchError(i){return(0,eo.e)(function(u,c){var f,b=null,v=!1;b=u.subscribe((0,ea.x)(c,void 0,void 0,function(E){f=(0,en.Xf)(i(E,catchError(i)(u))),b?(b.unsubscribe(),b=null,f.subscribe(c)):v=!0})),v&&(b.unsubscribe(),b=null,f.subscribe(c))})}var eT=c(278);function mergeAll(i){return void 0===i&&(i=1/0),(0,eg.z)(eT.y,i)}var eR=function(i){function Action(u,c){return i.call(this)||this}return(0,ev.ZT)(Action,i),Action.prototype.schedule=function(i,u){return void 0===u&&(u=0),this},Action}(e_.w0),ek={setInterval:function(i,u){for(var c=[],f=2;f<arguments.length;f++)c[f-2]=arguments[f];var b=ek.delegate;return(null==b?void 0:b.setInterval)?b.setInterval.apply(b,(0,ev.ev)([i,u],(0,ev.CR)(c))):setInterval.apply(void 0,(0,ev.ev)([i,u],(0,ev.CR)(c)))},clearInterval:function(i){var u=ek.delegate;return((null==u?void 0:u.clearInterval)||clearInterval)(i)},delegate:void 0},eP=function(i){function AsyncAction(u,c){var f=i.call(this,u,c)||this;
2return f.scheduler=u,f.work=c,f.pending=!1,f}return(0,ev.ZT)(AsyncAction,i),AsyncAction.prototype.schedule=function(i,u){if(void 0===u&&(u=0),this.closed)return this;this.state=i;var c,f=this.id,b=this.scheduler;return null!=f&&(this.id=this.recycleAsyncId(b,f,u)),this.pending=!0,this.delay=u,this.id=null!==(c=this.id)&&void 0!==c?c:this.requestAsyncId(b,this.id,u),this},AsyncAction.prototype.requestAsyncId=function(i,u,c){return void 0===c&&(c=0),ek.setInterval(i.flush.bind(i,this),c)},AsyncAction.prototype.recycleAsyncId=function(i,u,c){if(void 0===c&&(c=0),null!=c&&this.delay===c&&!1===this.pending)return u;null!=u&&ek.clearInterval(u)},AsyncAction.prototype.execute=function(i,u){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var c=this._execute(i,u);if(c)return c;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},AsyncAction.prototype._execute=function(i,u){var c,f=!1;try{this.work(i)}catch(i){f=!0,c=i||Error("Scheduled action threw falsy error")}if(f)return this.unsubscribe(),c},AsyncAction.prototype.unsubscribe=function(){if(!this.closed){var u=this.id,c=this.scheduler,f=c.actions;this.work=this.state=this.scheduler=null,this.pending=!1,(0,eE.P)(f,this),null!=u&&(this.id=this.recycleAsyncId(c,u,null)),this.delay=null,i.prototype.unsubscribe.call(this)}},AsyncAction}(eR),ej=function(){function Scheduler(i,u){void 0===u&&(u=Scheduler.now),this.schedulerActionCtor=i,this.now=u}return Scheduler.prototype.schedule=function(i,u,c){return void 0===u&&(u=0),new this.schedulerActionCtor(this,i).schedule(c,u)},Scheduler.now=ex.now,Scheduler}(),eF=new(function(i){function AsyncScheduler(u,c){void 0===c&&(c=ej.now);var f=i.call(this,u,c)||this;return f.actions=[],f._active=!1,f}return(0,ev.ZT)(AsyncScheduler,i),AsyncScheduler.prototype.flush=function(i){var u,c=this.actions;if(this._active){c.push(i);return}this._active=!0;do if(u=i.execute(i.state,i.delay))break;while(i=c.shift());if(this._active=!1,u){for(;i=c.shift();)i.unsubscribe();throw u}},AsyncScheduler}(ej))(eP);function throwError(i,u){var c=(0,er.m)(i)?i:function(){return i},init=function(i){return i.error(c())};return new ee.y(u?function(i){return u.schedule(init,0,i)}:init)}function finalize(i){return(0,eo.e)(function(u,c){try{u.subscribe(c)}finally{c.add(i)}})}var eB=c(1545),eM=c(9127);function firstValueFrom(i,u){var c="object"==typeof u;return new Promise(function(f,b){var v=new eA.Hp({next:function(i){f(i),v.unsubscribe()},error:b,complete:function(){c?f(u.defaultValue):b(new eb)}});i.subscribe(v)})}var eq=c(3259);function maybeSchedule(i,u,c){i?(0,ei.f)(c,i,u):u()}var eL=Array.isArray,e$=c(3211),eU=c(2749);function combineLatest_combineLatest(){for(var i=[],u=0;u<arguments.length;u++)i[u]=arguments[u];var c=(0,er.m)(last(i))?i.pop():void 0;return c?(0,eU.z)(combineLatest_combineLatest.apply(void 0,(0,ev.ev)([],(0,ev.CR)(i))),(0,e$.Z)(c)):(0,eo.e)(function(u,c){var f,b,v;(f=(0,ev.ev)([u],(0,ev.CR)(1===i.length&&eL(i[0])?i[0]:i)),void 0===v&&(v=eT.y),function(i){maybeSchedule(b,function(){for(var u=f.length,c=Array(u),E=u,C=u,_loop_1=function(u){maybeSchedule(b,function(){var S=from_from(f[u],b),x=!1;S.subscribe((0,ea.x)(i,function(f){c[u]=f,!x&&(x=!0,C--),C||i.next(v(c.slice()))},function(){--E||i.complete()}))},i)},S=0;S<u;S++)_loop_1(S)},i)})(c)})}var eD=c(4975);let eN="drafts.",ez="versions.";function isDraftId(i){return i.startsWith(eN)}function isVersionId(i){return i.startsWith(ez)}function getDraftId(i){if(isVersionId(i)){let u=getPublishedId(i);return eN+u}return isDraftId(i)?i:eN+i}function getVersionId(i,u){if("drafts"===u||"published"===u)throw Error('Version can not be "published" or "drafts"');return`${ez}${u}.${getPublishedId(i)}`}function getVersionFromId(i){if(!isVersionId(i))return;let[u,c]=i.split(".");return c}function getPublishedId(i){return isVersionId(i)?i.split(".").slice(2).join("."):isDraftId(i)?i.slice(eN.length):i}var eV=c(3416);let eH=/\r\n|[\n\r\u2028\u2029]/;function columnToLine(i,u){let c=0;for(let f=0;f<u.length;f++){let b=u[f].length+1;if(c+b>i)return{line:f+1,column:i-c};c+=b}return{line:u.length,column:u[u.length-1]?.length??0}}
2let ClientError=class ClientError extends Error{response;statusCode=400;responseBody;details;constructor(i,u){let c=extractErrorProps(i,u);super(c.message),Object.assign(this,c)}};let ServerError=class ServerError extends Error{response;statusCode=500;responseBody;details;constructor(i){let u=extractErrorProps(i);super(u.message),Object.assign(this,u)}};function extractErrorProps(i,u){let c=i.body,f={response:i,statusCode:i.statusCode,responseBody:-1!==(i.headers["content-type"]||"").toLowerCase().indexOf("application/json")?JSON.stringify(c,null,2):c,message:"",details:void 0};if(!(0,eq.Uy)(c))return f.message=httpErrorMessage(i,c),f;let b=c.error;if("string"==typeof b&&"string"==typeof c.message)return f.message=`${b} - ${c.message}`,f;if("object"!=typeof b||null===b)return"string"==typeof b?f.message=b:"string"==typeof c.message?f.message=c.message:f.message=httpErrorMessage(i,c),f;if("type"in b&&"mutationError"===b.type&&"description"in b&&"string"==typeof b.description||"type"in b&&"actionError"===b.type&&"description"in b&&"string"==typeof b.description){let i=b.items||[],u=i.slice(0,5).map(i=>i.error?.description).filter(Boolean),v=u.length?`: 3- ${u.join(` 4- `)}`:"";return i.length>5&&(v+=` 5...and ${i.length-5} more`),f.message=`${b.description}${v}`,f.details=c.error,f}if(isQueryParseError(b)){let i=u?.options?.query?.tag;return f.message=formatQueryParseError(b,i),f.details=c.error,f}return"description"in b&&"string"==typeof b.description?(f.message=b.description,f.details=b):f.message=httpErrorMessage(i,c),f}function isQueryParseError(i){return(0,eq.Uy)(i)&&"queryParseError"===i.type&&"string"==typeof i.query&&"number"==typeof i.start&&"number"==typeof i.end}function formatQueryParseError(i,u){let{query:c,start:f,end:b,description:v}=i;if(!c||typeof f>"u")return`GROQ query parse error: ${v}`;let E=u?` 6 7Tag: ${u}`:"";return`GROQ query parse error: 8${function(i,u,c){let f=i.split(eH),b={start:columnToLine(u.start,f),end:u.end?columnToLine(u.end,f):void 0},{start:v,end:E,markerLines:C}=function(i,u){let c={...i.start},f={...c,...i.end},b=c.line??-1,v=c.column??0,E=f.line,C=f.column,S=Math.max(b-3,0),x=Math.min(u.length,E+3);-1===b&&(S=0),-1===E&&(x=u.length);let R=E-b,k={};if(R)for(let i=0;i<=R;i++){let c=i+b;if(v){if(0===i){let i=u[c-1].length;k[c]=[v,i-v+1]}else if(i===R)k[c]=[0,C];else{let f=u[c-i].length;k[c]=[0,f]}}else k[c]=!0}else v===C?v?k[b]=[v,0]:k[b]=!0:k[b]=[v,C-v];return{start:S,end:x,markerLines:k}}(b,f),S=`${E}`.length;return i.split(eH,E).slice(v,E).map((i,u)=>{let f=v+1+u,b=` ${` ${f}`.slice(-S)} |`,E=C[f],x=!C[f+1];if(!E)return` ${b}${i.length>0?` ${i}`:""}`;let R="";if(Array.isArray(E)){let u=i.slice(0,Math.max(E[0]-1,0)).replace(/[^\t]/g," "),f=E[1]||1;R=[` 9 `,b.replace(/\d/g," ")," ",u,"^".repeat(f)].join(""),x&&c&&(R+=" "+c)}return[">",b,i.length>0?` ${i}`:"",R].join("")}).join(` 10`)}(c,{start:f,end:b},v)}${E}`}function httpErrorMessage(i,u){let c="string"==typeof u?` (${u.length>100?`${u.slice(0,100)}\u2026`:u})`:"",f=i.statusMessage?` ${i.statusMessage}`:"";return`${i.method}-request to ${i.url} resulted in HTTP ${i.statusCode}${f}${c}`}let CorsOriginError=class CorsOriginError extends Error{projectId;addOriginUrl;constructor({projectId:i}){super("CorsOriginError"),this.name="CorsOriginError",this.projectId=i;let u=new URL(`https://sanity.io/manage/project/${i}/api`);if("u">typeof location){let{origin:i}=location;u.searchParams.set("cors","add"),u.searchParams.set("origin",i),this.addOriginUrl=u,this.message=`The current origin is not allowed to connect to the Live Content API. Add it here: ${u}`}else this.message=`The current origin is not allowed to connect to the Live Content API. Change your configuration here: ${u}`}};let eZ={onResponse:(i,u)=>{if(i.statusCode>=500)throw new ServerError(i);if(i.statusCode>=400)throw new ClientError(i,u);return i}};function defineHttpRequest(i,u={}){var c;return p([P({shouldRetry}),...i,function(i={}){let u={},shouldIgnoreWarning=u=>void 0!==i.ignoreWarnings&&(Array.isArray(i.ignoreWarnings)?i.ignoreWarnings:[i.ignoreWarnings]).some(i=>"string"==typeof i?u.includes(i):i instanceof RegExp&&i.test(u));return{onResponse:i=>{let c=i.headers["x-sanity-warning"],f=Array.isArray(c)?c:[c];for(let i of f)!i||u[i]||shouldIgnoreWarning(i)||(u[i]=!0,console.warn(i));return i}}}(u),{processOptions:i=>{let u=i.body;return!u||"function"==typeof u.pipe||X(u)||-1===Q.indexOf(typeof u)&&!Array.isArray(u)&&!function(i){if(!1===O(i))return!1;let u=i.constructor;if(void 0===u)return!0;let c=u.prototype;return!(!1===O(c)||!1===c.hasOwnProperty("isPrototypeOf"))}(u)?i:Object.assign({},i,{body:JSON.stringify(i.body),headers:Object.assign({},i.headers,{"Content-Type":"application/json"})})}},{onResponse:i=>{let u=i.headers["content-type"]||"",f=c&&c.force||-1!==u.indexOf("application/json");return i.body&&u&&f?Object.assign({},i,{body:function(i){try{return JSON.parse(i)}catch(i){throw i.message=`Failed to parsed response body as JSON: ${i.message}`,i}}(i.body)}):i},processOptions:i=>Object.assign({},i,{headers:Object.assign({Accept:"application/json"},i.headers)})},{onRequest:i=>{if("xhr"!==i.adapter)return;
10let u=i.request,c=i.context;function n(i){return u=>{let f=u.lengthComputable?u.loaded/u.total*100:-1;c.channels.progress.publish({stage:i,percent:f,total:u.total,loaded:u.loaded,lengthComputable:u.lengthComputable})}}"upload"in u&&"onprogress"in u.upload&&(u.upload.onprogress=n("upload")),"onprogress"in u&&(u.onprogress=n("download"))}},eZ,function(i={}){let u=i.implementation||J.Observable;if(!u)throw Error("`Observable` is not available in global scope, and no implementation was passed");return{onReturn:(i,c)=>new u(u=>(i.error.subscribe(i=>u.error(i)),i.progress.subscribe(i=>u.next(Object.assign({type:"progress"},i))),i.response.subscribe(i=>{u.next(Object.assign({type:"response"},i)),u.complete()}),i.request.publish(c),()=>i.abort.publish()))}}({implementation:ee.y})])}function shouldRetry(i,u,c){if(0===c.maxRetries)return!1;let f="GET"===c.method||"HEAD"===c.method,b=(c.uri||c.url).startsWith("/data/query"),v=i.response&&(429===i.response.statusCode||502===i.response.statusCode||503===i.response.statusCode);return(!!f||!!b)&&!!v||P.shouldRetry(i,u,c)}function generateHelpUrl(i){return"https://www.sanity.io/help/"+i}let eW=["image","file"],eG=["before","after","replace"],dataset=i=>{if(!/^(~[a-z0-9]{1}[-\w]{0,63}|[a-z0-9]{1}[-\w]{0,63})$/.test(i))throw Error("Datasets can only contain lowercase characters, numbers, underscores and dashes, and start with tilde, and be maximum 64 characters")},projectId=i=>{if(!/^[-a-z0-9]+$/i.test(i))throw Error("`projectId` can only contain only a-z, 0-9 and dashes")},validateAssetType=i=>{if(-1===eW.indexOf(i))throw Error(`Invalid asset type: ${i}. Must be one of ${eW.join(", ")}`)},validateObject=(i,u)=>{if(null===u||"object"!=typeof u||Array.isArray(u))throw Error(`${i}() takes an object of properties`)},validateDocumentId=(i,u)=>{if("string"!=typeof u||!/^[a-z0-9_][a-z0-9_.-]{0,127}$/i.test(u)||u.includes(".."))throw Error(`${i}(): "${u}" is not a valid document ID`)},requireDocumentId=(i,u)=>{if(!u._id)throw Error(`${i}() requires that the document contains an ID ("_id" property)`);validateDocumentId(i,u._id)},validateDocumentType=(i,u)=>{if("string"!=typeof u)throw Error(`\`${i}()\`: \`${u}\` is not a valid document type`)},requireDocumentType=(i,u)=>{if(!u._type)throw Error(`\`${i}()\` requires that the document contains a type (\`_type\` property)`);validateDocumentType(i,u._type)},validateVersionIdMatch=(i,u)=>{if(u._id&&u._id!==i)throw Error(`The provided document ID (\`${u._id}\`) does not match the generated version ID (\`${i}\`)`)},validateInsert=(i,u,c)=>{let f="insert(at, selector, items)";if(-1===eG.indexOf(i)){let i=eG.map(i=>`"${i}"`).join(", ");throw Error(`${f} takes an "at"-argument which is one of: ${i}`)}if("string"!=typeof u)throw Error(`${f} takes a "selector"-argument which must be a string`);if(!Array.isArray(c))throw Error(`${f} takes an "items"-argument which must be an array`)},hasDataset=i=>{if(i.dataset)return i.dataset;let u=i.resource;if(u&&"dataset"===u.type){let i=u.id.split(".");if(2!==i.length)throw Error('Dataset resource ID must be in the format "project.dataset"');return i[1]}throw Error("`dataset` must be provided to perform queries")},requestTag=i=>{if("string"!=typeof i||!/^[a-z0-9._-]{1,75}$/i.test(i))throw Error("Tag can only contain alphanumeric characters, underscores, dashes and dots, and be between one and 75 characters long.");return i},resourceConfig=i=>{let u=i.resource;if(!u)throw Error("`resource` must be provided to perform resource queries");let{type:c,id:f}=u;switch(c){case"dataset":if(2!==f.split(".").length)throw Error('Dataset resource ID must be in the format "project.dataset"');return;case"dashboard":case"media-library":case"canvas":return;default:throw Error(`Unsupported resource type: ${c.toString()}`)}},resourceGuard=(i,u)=>{if(u.resource)throw Error(`\`${i}\` does not support resource-based operations`)},createWarningPrinter=i=>{var u;let c,f;return u=(...u)=>console.warn(i.join(" "),...u),c=!1,(...i)=>(c||(f=u(...i),c=!0),f)},eY=createWarningPrinter(["Because you set `withCredentials` to true, we will override your `useCdn`","setting to be false since (cookie-based) credentials are never set on the CDN"]),eX=createWarningPrinter(["Since you haven't set a value for `useCdn`, we will deliver content using our","global, edge-cached API-CDN. If you wish to have content delivered faster, set","`useCdn: false` to use the Live API. Note: You may incur higher costs using the live API."]),eQ=createWarningPrinter(["The Sanity client is configured with the `perspective` set to `drafts` or `previewDrafts`, which doesn't support the API-CDN.","The Live API will be used instead. Set `useCdn: false` in your configuration to hide this warning."]),eK=createWarningPrinter(["The `previewDrafts` perspective has been renamed to `drafts` and will be removed in a future API version"]),eJ=createWarningPrinter(["You have configured Sanity client to use a token in the browser. This may cause unintentional security issues.",`See ${generateHelpUrl("js-client-browser-token")} for more information and how to hide this warning.`]),e0=createWarningPrinter(["You have configured Sanity client to use a token, but also provided `withCredentials: true`.","This is no longer supported - only token will be used - remove `withCredentials: true`."]),e1=createWarningPrinter(["Using the Sanity client without specifying an API version is deprecated.",`See ${generateHelpUrl("js-client-api-version")}`]),e2=(createWarningPrinter(["The default export of @sanity/client has been deprecated. Use the named export `createClient` instead."]),createWarningPrinter(["You have called `createVersion()` with a defined `document`. The recommended approach is to provide a `baseId` and `releaseId` instead."])),e3=createWarningPrinter(["The `~experimental_resource` configuration property has been renamed to `resource`.","Please update your client configuration to use `resource` instead. Support for `~experimental_resource` will be removed in a future version."]),e4={apiHost:"https://api.sanity.io",apiVersion:"1",useProjectHostname:!0,stega:{enabled:!1}},e6=["localhost","127.0.0.1","0.0.0.0"],isLocal=i=>-1!==e6.indexOf(i);function validateApiPerspective(i){if(Array.isArray(i)&&i.length>1&&i.includes("raw"))throw TypeError('Invalid API perspective value: "raw". The raw-perspective can not be combined with other perspectives')}let initConfig=(i,u)=>{let c={...u,...i,stega:{..."boolean"==typeof u.stega?{enabled:u.stega}:u.stega||e4.stega,..."boolean"==typeof i.stega?{enabled:i.stega}:i.stega||{}}};c.apiVersion||e1();let f={...e4,...c};f["~experimental_resource"]&&!f.resource&&(e3(),f.resource=f["~experimental_resource"]);let b=f.resource,v=f.useProjectHostname&&!b;if(typeof Promise>"u"){let i=generateHelpUrl("js-client-promise-polyfill");throw Error(`No native Promise-implementation found, polyfill needed - see ${i}`)}if(v&&!f.projectId)throw Error("Configuration must contain `projectId`");if(b&&resourceConfig(f),"u">typeof f.perspective&&validateApiPerspective(f.perspective),"encodeSourceMap"in f)throw Error("It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMap' is not supported in '@sanity/client'. Did you mean 'stega.enabled'?");if("encodeSourceMapAtPath"in f)throw Error("It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMapAtPath' is not supported in '@sanity/client'. Did you mean 'stega.filter'?");
10if("boolean"!=typeof f.stega.enabled)throw Error(`stega.enabled must be a boolean, received ${f.stega.enabled}`);if(f.stega.enabled&&void 0===f.stega.studioUrl)throw Error("stega.studioUrl must be defined when stega.enabled is true");if(f.stega.enabled&&"string"!=typeof f.stega.studioUrl&&"function"!=typeof f.stega.studioUrl)throw Error(`stega.studioUrl must be a string or a function, received ${f.stega.studioUrl}`);let E="u">typeof window&&window.location&&window.location.hostname,C=E&&isLocal(window.location.hostname),S=!!f.token;f.withCredentials&&S&&(e0(),f.withCredentials=!1),E&&C&&S&&!0!==f.ignoreBrowserTokenWarning?eJ():typeof f.useCdn>"u"&&eX(),v&&projectId(f.projectId),f.dataset&&dataset(f.dataset),"requestTagPrefix"in f&&(f.requestTagPrefix=f.requestTagPrefix?requestTag(f.requestTagPrefix).replace(/\.+$/,""):void 0),f.apiVersion=`${f.apiVersion}`.replace(/^v/,""),f.isDefaultApi=f.apiHost===e4.apiHost,!0===f.useCdn&&f.withCredentials&&eY(),f.useCdn=!1!==f.useCdn&&!f.withCredentials,function(i){if("1"===i||"X"===i)return;let u=new Date(i);if(!(/^\d{4}-\d{2}-\d{2}$/.test(i)&&u instanceof Date&&u.getTime()>0))throw Error("Invalid API version string, expected `1` or date in format `YYYY-MM-DD`")}(f.apiVersion);let x=f.apiHost.split("://",2),R=x[0],k=x[1],j=f.isDefaultApi?"apicdn.sanity.io":k;return v?(f.url=`${R}://${f.projectId}.${k}/v${f.apiVersion}`,f.cdnUrl=`${R}://${f.projectId}.${j}/v${f.apiVersion}`):(f.url=`${f.apiHost}/v${f.apiVersion}`,f.cdnUrl=f.url),f};let ConnectionFailedError=class ConnectionFailedError extends Error{name="ConnectionFailedError"};let DisconnectError=class DisconnectError extends Error{name="DisconnectError";reason;constructor(i,u,c={}){super(i,c),this.reason=u}};let ChannelError=class ChannelError extends Error{name="ChannelError";data;constructor(i,u){super(i),this.data=u}};let MessageError=class MessageError extends Error{name="MessageError";data;constructor(i,u,c={}){super(i,c),this.data=u}};let MessageParseError=class MessageParseError extends Error{name="MessageParseError"};let e5=["channelError","disconnect"];function connectEventSource(i,u){return(0,et.P)(()=>{let u=i();return u&&(u instanceof ee.y||(0,er.m)(u.lift)&&(0,er.m)(u.subscribe))?u:of(u)}).pipe((0,eg.z)(i=>new ee.y(c=>{let f=u.includes("open"),b=u.includes("reconnect");function onError(u){if("data"in u){let[i,f]=parseEvent(u);c.error(i?new MessageParseError("Unable to parse EventSource error message",{cause:f}):new MessageError(f?.data.message,f));return}i.readyState===i.CLOSED?c.error(new ConnectionFailedError("EventSource connection failed")):b&&c.next({type:"reconnect"})}function onOpen(){c.next({type:"open"})}function onMessage(u){let[f,b]=parseEvent(u);if(f){c.error(new MessageParseError("Unable to parse EventSource message",{cause:f}));return}if("channelError"===u.type){let u=new URL(i.url).searchParams.get("tag");c.error(new ChannelError(function(i,u){let c=i.error;return c?isQueryParseError(c)?formatQueryParseError(c,u):c.description?c.description:"string"==typeof c?c:JSON.stringify(c,null,2):i.message||"Unknown listener error"}(b?.data,u),b.data));return}if("disconnect"===u.type){c.error(new DisconnectError(`Server disconnected client: ${b.data?.reason||"unknown error"}`));return}c.next({type:u.type,id:u.lastEventId,...b.data?{data:b.data}:{}})}i.addEventListener("error",onError),f&&i.addEventListener("open",onOpen);let v=[...new Set([...e5,...u])].filter(i=>"error"!==i&&"open"!==i&&"reconnect"!==i);return v.forEach(u=>i.addEventListener(u,onMessage)),()=>{i.removeEventListener("error",onError),f&&i.removeEventListener("open",onOpen),v.forEach(u=>i.removeEventListener(u,onMessage)),i.close()}})))}function parseEvent(i){try{let u="string"==typeof i.data&&JSON.parse(i.data);return[null,{type:i.type,id:i.lastEventId,...!function(i){for(let u in i)return!1;return!0}(u)?{data:u}:{}}]}catch(i){return[i,null]}}function getSelection(i){if("string"==typeof i)return{id:i};if(Array.isArray(i))return{query:"*[_id in $ids]",params:{ids:i}};if("object"==typeof i&&null!==i&&"query"in i&&"string"==typeof i.query)return"params"in i&&"object"==typeof i.params&&null!==i.params?{query:i.query,params:i.params}:{query:i.query};let u=["* Document ID (<docId>)","* Array of document IDs","* Object containing `query`"].join(` 11`);throw Error(`Unknown selection - must be one of: 12 13${u}`)}let BasePatch=class BasePatch{selection;operations;constructor(i,u={}){this.selection=i,this.operations=u}set(i){return this._assign("set",i)}setIfMissing(i){return this._assign("setIfMissing",i)}diffMatchPatch(i){return validateObject("diffMatchPatch",i),this._assign("diffMatchPatch",i)}unset(i){if(!Array.isArray(i))throw Error("unset(attrs) takes an array of attributes to unset, non-array given");return this.operations=Object.assign({},this.operations,{unset:i}),this}inc(i){return this._assign("inc",i)}dec(i){return this._assign("dec",i)}insert(i,u,c){return validateInsert(i,u,c),this._assign("insert",{[i]:u,items:c})}append(i,u){return this.insert("after",`${i}[-1]`,u)}prepend(i,u){return this.insert("before",`${i}[0]`,u)}splice(i,u,c,f){let b=u<0?u-1:u,v=typeof c>"u"||-1===c?-1:Math.max(0,u+c),E=b<0&&v>=0?"":v,C=`${i}[${b}:${E}]`;return this.insert("replace",C,f||[])}ifRevisionId(i){return this.operations.ifRevisionID=i,this}serialize(){return{...getSelection(this.selection),...this.operations}}toJSON(){return this.serialize()}reset(){return this.operations={},this}_assign(i,u,c=!0){return validateObject(i,u),this.operations=Object.assign({},this.operations,{[i]:Object.assign({},c&&this.operations[i]||{},u)}),this}_set(i,u){return this._assign(i,u,!1)}};let ObservablePatch=class ObservablePatch extends BasePatch{#s;constructor(i,u,c){super(i,u),this.#s=c}clone(){return new ObservablePatch(this.selection,{...this.operations},this.#s)}commit(i){if(!this.#s)throw Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");let u="string"==typeof this.selection,c=Object.assign({returnFirst:u,returnDocuments:!0},i);return this.#s.mutate({patch:this.serialize()},c)}};let Patch=class Patch extends BasePatch{#s;constructor(i,u,c){super(i,u),this.#s=c}clone(){return new Patch(this.selection,{...this.operations},this.#s)}commit(i){if(!this.#s)throw Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");let u="string"==typeof this.selection,c=Object.assign({returnFirst:u,returnDocuments:!0},i);return this.#s.mutate({patch:this.serialize()},c)}};let e8={returnDocuments:!1};let BaseTransaction=class BaseTransaction{operations;trxId;constructor(i=[],u){this.operations=i,this.trxId=u}create(i){return validateObject("create",i),this._add({create:i})}createIfNotExists(i){let u="createIfNotExists";return validateObject(u,i),requireDocumentId(u,i),this._add({[u]:i})}createOrReplace(i){let u="createOrReplace";return validateObject(u,i),requireDocumentId(u,i),this._add({[u]:i})}delete(i){return validateDocumentId("delete",i),this._add({delete:{id:i}})}transactionId(i){return i?(this.trxId=i,this):this.trxId}serialize(){return[...this.operations]}toJSON(){return this.serialize()}reset(){return this.operations=[],this}_add(i){return this.operations.push(i),this}};let Transaction=class Transaction extends BaseTransaction{#s;constructor(i,u,c){super(i,c),this.#s=u}clone(){return new Transaction([...this.operations],this.#s,this.trxId)}commit(i){if(!this.#s)throw Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return this.#s.mutate(this.serialize(),Object.assign({transactionId:this.trxId},e8,i||{}))}patch(i,u){let c="function"==typeof u,f="string"!=typeof i&&i instanceof Patch,b="object"==typeof i&&("query"in i||"id"in i);if(f)return this._add({patch:i.serialize()});if(c){let c=u(new Patch(i,{},this.#s));if(!(c instanceof Patch))throw Error("function passed to `patch()` must return the patch");
13return this._add({patch:c.serialize()})}if(b){let c=new Patch(i,u||{},this.#s);return this._add({patch:c.serialize()})}return this._add({patch:{id:i,...u}})}};let ObservableTransaction=class ObservableTransaction extends BaseTransaction{#s;constructor(i,u,c){super(i,c),this.#s=u}clone(){return new ObservableTransaction([...this.operations],this.#s,this.trxId)}commit(i){if(!this.#s)throw Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return this.#s.mutate(this.serialize(),Object.assign({transactionId:this.trxId},e8,i||{}))}patch(i,u){if("string"!=typeof i&&i instanceof ObservablePatch)return this._add({patch:i.serialize()});if("function"==typeof u){let c=u(new ObservablePatch(i,{},this.#s));if(!(c instanceof ObservablePatch))throw Error("function passed to `patch()` must return the patch");return this._add({patch:c.serialize()})}return this._add({patch:{id:i,...u}})}};let encodeQueryString=({query:i,params:u={},options:c={}})=>{let f=new URLSearchParams,{tag:b,includeMutations:v,returnQuery:E,...C}=c;for(let[c,v]of(b&&f.append("tag",b),f.append("query",i),Object.entries(u)))void 0!==v&&f.append(`$${c}`,JSON.stringify(v));for(let[i,u]of Object.entries(C))u&&f.append(i,`${u}`);return!1===E&&f.append("returnQuery","false"),!1===v&&f.append("includeMutations","false"),`?${f}`},excludeFalsey=(i,u)=>!1===i?void 0:typeof i>"u"?u:i,getMutationQuery=(i={})=>({dryRun:i.dryRun,returnIds:!0,returnDocuments:excludeFalsey(i.returnDocuments,!0),visibility:i.visibility||"sync",autoGenerateArrayKeys:i.autoGenerateArrayKeys,skipCrossDatasetReferenceValidation:i.skipCrossDatasetReferenceValidation}),isResponse=i=>"response"===i.type,getBody=i=>i.body,indexBy=(i,u)=>i.reduce((i,c)=>(i[u(c)]=c,i),Object.create(null));function _fetch(i,u,f,b,v={},E={}){let C="stega"in E?{...f||{},..."boolean"==typeof E.stega?{enabled:E.stega}:E.stega||{}}:f,S=C.enabled?(0,eq.NG)(v):v,x=!1===E.filterResponse?i=>i:i=>i.result,{cache:R,next:k,...j}={useAbortSignal:"u">typeof E.signal,resultSourceMap:C.enabled?"withKeyArraySelector":E.resultSourceMap,...E,returnQuery:!1===E.filterResponse&&!1!==E.returnQuery},F="u">typeof R||"u">typeof k?{...j,fetch:{cache:R,next:k}}:j,B=_dataRequest(i,u,"query",{query:b,params:S},F);return C.enabled?B.pipe(function(){for(var i=[],u=0;u<arguments.length;u++)i[u]=arguments[u];return combineLatest_combineLatest.apply(void 0,(0,ev.ev)([],(0,ev.CR)(i)))}(from_from(c.e(235).then(c.bind(c,4235)).then(function(i){return i.stegaEncodeSourceMap$1}).then(({stegaEncodeSourceMap:i})=>i))),(0,eM.U)(([i,u])=>{let c=u(i.result,i.resultSourceMap,C);return x({...i,result:c})})):B.pipe((0,eM.U)(x))}function _getDocument(i,u,c,f={}){let b=(()=>{if(!f.releaseId)return c;let i=getVersionFromId(c);if(!i){if(isDraftId(c))throw Error(`The document ID (\`${c}\`) is a draft, but \`options.releaseId\` is set as \`${f.releaseId}\``);return getVersionId(c,f.releaseId)}if(i!==f.releaseId)throw Error(`The document ID (\`${c}\`) is already a version of \`${i}\` release, but this does not match the provided \`options.releaseId\` (\`${f.releaseId}\`)`);return c})(),v={uri:_getDataUrl(i,"doc",b),json:!0,tag:f.tag,signal:f.signal,query:void 0!==f.includeAllVersions?{includeAllVersions:f.includeAllVersions}:void 0};return _requestObservable(i,u,v).pipe((0,eD.h)(isResponse),(0,eM.U)(i=>{let u=i.body.documents;return u?f.includeAllVersions?u:u[0]:f.includeAllVersions?[]:void 0}))}function _getDocuments(i,u,c,f={}){let b={uri:_getDataUrl(i,"doc",c.join(",")),json:!0,tag:f.tag,signal:f.signal};return _requestObservable(i,u,b).pipe((0,eD.h)(isResponse),(0,eM.U)(i=>{let u=indexBy(i.body.documents||[],i=>i._id);return c.map(i=>u[i]||null)}))}function _getReleaseDocuments(i,u,c,f={}){return _dataRequest(i,u,"query",{query:"*[sanity::partOfRelease($releaseId)]",params:{releaseId:c}},f)}function _createIfNotExists(i,u,c,f){return requireDocumentId("createIfNotExists",c),_create(i,u,c,"createIfNotExists",f)}function _createOrReplace(i,u,c,f){return requireDocumentId("createOrReplace",c),_create(i,u,c,"createOrReplace",f)}function _createVersion(i,u,c,f,b){return requireDocumentId("createVersion",c),requireDocumentType("createVersion",c),e2(),_action(i,u,{actionType:"sanity.action.document.version.create",publishedId:f,document:c},b)}function _createVersionFromBase(i,u,c,f,b,v,E){if(!f)throw Error("`createVersion()` requires `baseId` when no `document` is provided");
13if(!c)throw Error("`createVersion()` requires `publishedId` when `baseId` is provided");validateDocumentId("createVersion",f),validateDocumentId("createVersion",c);let C={actionType:"sanity.action.document.version.create",publishedId:c,baseId:f,versionId:b?getVersionId(c,b):getDraftId(c),ifBaseRevisionId:v};return _action(i,u,C,E)}function _delete(i,u,c,f){return _dataRequest(i,u,"mutate",{mutations:[{delete:getSelection(c)}]},f)}function _discardVersion(i,u,c,f=!1,b){return _action(i,u,{actionType:"sanity.action.document.version.discard",versionId:c,purge:f},b)}function _replaceVersion(i,u,c,f){return requireDocumentId("replaceVersion",c),requireDocumentType("replaceVersion",c),_action(i,u,{actionType:"sanity.action.document.version.replace",document:c},f)}function _unpublishVersion(i,u,c,f,b){return _action(i,u,{actionType:"sanity.action.document.version.unpublish",versionId:c,publishedId:f},b)}function _mutate(i,u,c,f){let b;b=c instanceof Patch||c instanceof ObservablePatch?{patch:c.serialize()}:c instanceof Transaction||c instanceof ObservableTransaction?c.serialize():c;let v=Array.isArray(b)?b:[b],E=f&&f.transactionId||void 0;return _dataRequest(i,u,"mutate",{mutations:v,transactionId:E},f)}function _action(i,u,c,f){let b=Array.isArray(c)?c:[c],v=f&&f.transactionId||void 0,E=f&&f.skipCrossDatasetReferenceValidation||void 0,C=f&&f.dryRun||void 0;return _dataRequest(i,u,"actions",{actions:b,transactionId:v,skipCrossDatasetReferenceValidation:E,dryRun:C},f)}function _dataRequest(i,u,c,f,b={}){let v="mutate"===c,E="actions"===c,C="query"===c,S=v||E?"":encodeQueryString(f),x=!v&&!E&&S.length<11264,R=b.returnFirst,{timeout:k,token:j,tag:F,headers:B,returnQuery:M,lastLiveEventId:q,cacheMode:L}=b,U=_getDataUrl(i,c,x?S:""),V={method:x?"GET":"POST",uri:U,json:!0,body:x?void 0:f,query:v&&getMutationQuery(b),timeout:k,headers:B,token:j,tag:F,returnQuery:M,perspective:b.perspective,resultSourceMap:b.resultSourceMap,lastLiveEventId:Array.isArray(q)?q[0]:q,cacheMode:L,canUseCdn:C,signal:b.signal,fetch:b.fetch,useAbortSignal:b.useAbortSignal,useCdn:b.useCdn};return _requestObservable(i,u,V).pipe((0,eD.h)(isResponse),(0,eM.U)(getBody),(0,eM.U)(i=>{if(!v)return i;let u=i.results||[];if(b.returnDocuments)return R?u[0]&&u[0].document:u.map(i=>i.document);let c=R?u[0]&&u[0].id:u.map(i=>i.id);return{transactionId:i.transactionId,results:u,[R?"documentId":"documentIds"]:c}}))}function _create(i,u,c,f,b={}){let v=Object.assign({returnFirst:!0,returnDocuments:!0},b);return _dataRequest(i,u,"mutate",{mutations:[{[f]:c}]},v)}let hasDataConfig=i=>{let u=i.config();return void 0!==u.dataset&&void 0!==u.projectId||void 0!==u.resource},isQuery=(i,u)=>hasDataConfig(i)&&u.startsWith(_getDataUrl(i,"query")),isMutate=(i,u)=>hasDataConfig(i)&&u.startsWith(_getDataUrl(i,"mutate")),isDoc=(i,u)=>hasDataConfig(i)&&u.startsWith(_getDataUrl(i,"doc","")),isListener=(i,u)=>hasDataConfig(i)&&u.startsWith(_getDataUrl(i,"listen")),isHistory=(i,u)=>hasDataConfig(i)&&u.startsWith(_getDataUrl(i,"history","")),isData=(i,u)=>u.startsWith("/data/")||isQuery(i,u)||isMutate(i,u)||isDoc(i,u)||isListener(i,u)||isHistory(i,u);function _requestObservable(i,u,c){var f;let b=c.url||c.uri,v=i.config(),E=typeof c.canUseCdn>"u"?["GET","HEAD"].indexOf(c.method||"GET")>=0&&isData(i,b):c.canUseCdn,C=(c.useCdn??v.useCdn)&&E,S=c.tag&&v.requestTagPrefix?[v.requestTagPrefix,c.tag].join("."):c.tag||v.requestTagPrefix;if(S&&null!==c.tag&&(c.query={tag:requestTag(S),...c.query}),["GET","HEAD","POST"].indexOf(c.method||"GET")>=0&&isQuery(i,b)){let i=c.resultSourceMap??v.resultSourceMap;void 0!==i&&!1!==i&&(c.query={resultSourceMap:i,...c.query});let u=c.perspective||v.perspective;"u">typeof u&&("previewDrafts"===u&&eK(),validateApiPerspective(u),c.query={perspective:Array.isArray(u)?u.join(","):u,...c.query},(Array.isArray(u)&&u.length>0||"previewDrafts"===u||"drafts"===u)&&C&&(C=!1,eQ())),c.lastLiveEventId&&(c.query={...c.query,lastLiveEventId:c.lastLiveEventId}),!1===c.returnQuery&&(c.query={returnQuery:"false",...c.query}),C&&"noStale"==c.cacheMode&&(c.query={cacheMode:"noStale",...c.query})}let x=function(i,u={}){let c={};i.headers&&Object.assign(c,i.headers);let f=u.token||i.token;f&&(c.Authorization=`Bearer ${f}`),u.useGlobalApi||i.useProjectHostname||!i.projectId||(c["X-Sanity-Project-ID"]=i.projectId);let b=!!(typeof u.withCredentials>"u"?i.withCredentials:u.withCredentials),v=typeof u.timeout>"u"?i.timeout:u.timeout;return Object.assign({},u,{headers:Object.assign({},c,u.headers||{}),timeout:typeof v>"u"?3e5:v,proxy:u.proxy||i.proxy,json:!0,withCredentials:b,fetch:"object"==typeof u.fetch&&"object"==typeof i.fetch?{...i.fetch,...u.fetch}:u.fetch||i.fetch})}(v,Object.assign({},c,{url:_getUrl(i,b,C)})),R=new ee.y(i=>u(x,v.requester).subscribe(i));return c.signal?R.pipe((f=c.signal,i=>new ee.y(u=>{let abort=()=>u.error(function(i){if(e7)return new DOMException(i?.reason??"The operation was aborted.","AbortError");let u=Error(i?.reason??"The operation was aborted.");return u.name="AbortError",u}(f));if(f&&f.aborted){abort();return}let c=i.subscribe(u);return f.addEventListener("abort",abort),()=>{f.removeEventListener("abort",abort),c.unsubscribe()}}))):R}function _request(i,u,c){return _requestObservable(i,u,c).pipe((0,eD.h)(i=>"response"===i.type),(0,eM.U)(i=>i.body))}function _getDataUrl(i,u,c){let f=i.config();if(f.resource){resourceConfig(f);let i=resourceDataBase(f),b=void 0!==c?`${u}/${c}`:u;return`${i}/${b}`.replace(/\/($|\?)/,"$1")}let b=hasDataset(f),v=`/${u}/${b}`;return`/data${void 0!==c?`${v}/${c}`:v}`.replace(/\/($|\?)/,"$1")}function _getUrl(i,u,c=!1){let{url:f,cdnUrl:b}=i.config();return`${c?b:f}/${u.replace(/^\//,"")}`}let e7=!!globalThis.DOMException,resourceDataBase=i=>{let u=i.resource;if(!u)throw Error("`resource` must be provided to perform resource queries");let{type:c,id:f}=u;switch(c){case"dataset":{let i=f.split(".");if(2!==i.length)throw Error('Dataset ID must be in the format "project.dataset"');return`/projects/${i[0]}/datasets/${i[1]}`}case"canvas":return`/canvases/${f}`;case"media-library":return`/media-libraries/${f}`;case"dashboard":return`/dashboards/${f}`;default:throw Error(`Unsupported resource type: ${c.toString()}`)}};function _generate(i,u,c){let f=hasDataset(i.config());return _request(i,u,{method:"POST",uri:`/agent/action/generate/${f}`,body:c})}function _transform(i,u,c){let f=hasDataset(i.config());return _request(i,u,{method:"POST",uri:`/agent/action/transform/${f}`,body:c})}function _translate(i,u,c){let f=hasDataset(i.config());return _request(i,u,{method:"POST",uri:`/agent/action/translate/${f}`,body:c})}let ObservableAgentsActionClient=class ObservableAgentsActionClient{#s;#u;constructor(i,u){this.#s=i,this.#u=u}generate(i){return _generate(this.#s,this.#u,i)}transform(i){return _transform(this.#s,this.#u,i)}translate(i){return _translate(this.#s,this.#u,i)}};let AgentActionsClient=class AgentActionsClient{#s;#u;constructor(i,u){this.#s=i,this.#u=u}generate(i){return lastValueFrom(_generate(this.#s,this.#u,i))}transform(i){return lastValueFrom(_transform(this.#s,this.#u,i))}translate(i){return lastValueFrom(_translate(this.#s,this.#u,i))}prompt(i){return lastValueFrom(function(i,u,c){let f=hasDataset(i.config());return _request(i,u,{method:"POST",uri:`/agent/action/prompt/${f}`,body:c})}(this.#s,this.#u,i))}patch(i){return lastValueFrom(function(i,u,c){let f=hasDataset(i.config());return _request(i,u,{method:"POST",uri:`/agent/action/patch/${f}`,body:c})}(this.#s,this.#u,i))}};let ObservableAssetsClient=class ObservableAssetsClient{#s;#u;constructor(i,u){this.#s=i,this.#u=u}upload(i,u,c){return _upload(this.#s,this.#u,i,u,c)}};let AssetsClient=class AssetsClient{#s;#u;constructor(i,u){this.#s=i,this.#u=u}upload(i,u,c){let f=_upload(this.#s,this.#u,i,u,c);return lastValueFrom(f.pipe((0,eD.h)(i=>"response"===i.type),(0,eM.U)(i=>i.body.document)))}};function _upload(i,u,c,f,b={}){validateAssetType(c);let v=b.extract||void 0;v&&!v.length&&(v=["none"]);
13let E=i.config(),C=!(typeof File>"u")&&f instanceof File?Object.assign({filename:!1===b.preserveFilename?void 0:f.name,contentType:f.type},b):b,{tag:S,label:x,title:R,description:k,creditLine:j,filename:F,source:B}=C,M=E.resource?.type==="media-library",q=M?{title:R,filename:F}:{label:x,title:R,description:k,filename:F,meta:v,creditLine:j};return B&&!M&&(q.sourceId=B.id,q.sourceName=B.name,q.sourceUrl=B.url),_requestObservable(i,u,{tag:S,method:"POST",timeout:C.timeout||0,uri:function(i,u){let c="image"===u?"images":"files",f=i.resource;if(f){let{type:i,id:u}=f;switch(i){case"dataset":throw Error("Assets are not supported for dataset resources, yet. Configure the client with `{projectId: <projectId>, dataset: <datasetId>}` instead.");case"canvas":return`/canvases/${u}/assets/${c}`;case"media-library":return`/media-libraries/${u}/upload`;case"dashboard":return`/dashboards/${u}/assets/${c}`;default:throw Error(`Unsupported resource type: ${i.toString()}`)}}let b=hasDataset(i);return`assets/${c}/${b}`}(E,c),headers:C.contentType?{"Content-Type":C.contentType}:{},query:q,body:f})}var defaults=(i,u)=>Object.keys(u).concat(Object.keys(i)).reduce((c,f)=>(c[f]=typeof i[f]>"u"?u[f]:i[f],c),{});let pick=(i,u)=>u.reduce((u,c)=>(typeof i[c]>"u"||(u[c]=i[c]),u),{}),e9=(0,et.P)(()=>c.e(699).then(c.t.bind(c,3752,19))).pipe((0,eM.U)(({default:i})=>i),share({connector:function(){return new eI(1,x,R)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:!1}));function reconnectOnConnectionFailure(){return function(i){return i.pipe(catchError((i,u)=>{var c,f,b;return i instanceof ConnectionFailedError?function(){for(var i=[],u=0;u<arguments.length;u++)i[u]=arguments[u];return mergeAll(1)(from_from(i,args_popScheduler(i)))}(of({type:"reconnect"}),(void 0===f&&(f=eF),b=-1,null!=c&&(isScheduler(c)?f=c:b=c),new ee.y(function(i){var u=1e3,c=0;return f.schedule(function(){i.closed||(i.next(c++),0<=b?this.schedule(void 0,b):i.complete())},u)})).pipe((0,eg.z)(()=>u))):throwError(()=>i)}))}}let te=["includePreviousRevision","includeResult","includeMutations","includeAllVersions","visibility","effectFormat","enableResume","tag"],tt={includeResult:!0};function _listen(i,u,c={}){let{url:f,token:b,withCredentials:v,requestTagPrefix:E,headers:C}=this.config(),S=c.tag&&E?[E,c.tag].join("."):c.tag,x={...defaults(c,tt),tag:S},R=pick(x,te),k=encodeQueryString({query:i,params:u,options:{tag:S,...R}}),j=`${f}${_getDataUrl(this,"listen",k)}`;if(j.length>14800)return throwError(()=>Error("Query too large for listener"));let F=x.events?x.events:["mutation"],B={};return v&&(B.withCredentials=!0),(b||C)&&(B.headers={},b&&(B.headers.Authorization=`Bearer ${b}`),C&&Object.assign(B.headers,C)),connectEventSource(()=>(typeof EventSource>"u"||B.headers?e9:of(EventSource)).pipe((0,eM.U)(i=>new i(j,B))),F).pipe(reconnectOnConnectionFailure(),(0,eD.h)(i=>F.includes(i.type)),(0,eM.U)(i=>({type:i.type,..."data"in i?i.data:{}})))}let tr="2021-03-25";let LiveClient=class LiveClient{#s;constructor(i){this.#s=i}events({includeDrafts:i=!1,tag:u}={}){var c,f,b;let{projectId:v,apiVersion:E,token:C,withCredentials:S,requestTagPrefix:x,headers:R}=this.#s.config(),k=E.replace(/^v/,"");if("X"!==k&&k<tr)throw Error(`The live events API requires API version ${tr} or later. The current API version is ${k}. Please update your API version to use this feature.`);if(i&&!C&&!S)throw Error("The live events API requires a token or withCredentials when 'includeDrafts: true'. Please update your client configuration. The token should have the lowest possible access role.");let j=_getDataUrl(this.#s,"live/events"),F=new URL(this.#s.getUrl(j,!1)),B=u&&x?[x,u].join("."):u;B&&F.searchParams.set("tag",B),i&&F.searchParams.set("includeDrafts","true");let M={};i&&S&&(M.withCredentials=!0),(i&&C||R)&&(M.headers={},i&&C&&(M.headers.Authorization=`Bearer ${C}`),R&&Object.assign(M.headers,R));let q=`${F.href}::${JSON.stringify(M)}`,L=tn.get(q);if(L)return L;let U=connectEventSource(()=>(typeof EventSource>"u"||M.headers?e9:of(EventSource)).pipe((0,eM.U)(i=>new i(F.href,M))),["message","restart","welcome","reconnect","goaway"]),V=(f={method:"OPTIONS",mode:"cors",credentials:M.withCredentials?"include":"omit",headers:M.headers},new ee.y(i=>{let u=new AbortController,c=u.signal;return fetch(F,{...f,signal:u.signal}).then(u=>{i.next(u),i.complete()},u=>{c.aborted||i.error(u)}),()=>u.abort()})).pipe(catchError(()=>{throw new CorsOriginError({projectId:v})})),H=U.pipe(reconnectOnConnectionFailure(),(0,eg.z)(i=>"reconnect"===i.type?V.pipe((0,eg.z)(()=>of(i))):of(i)),catchError(i=>V.pipe((0,eg.z)(()=>{throw i}))),(0,eM.U)(i=>{if("message"===i.type){let{data:u,...c}=i;return{...c,tags:u.tags}}return i})).pipe(finalize(()=>tn.delete(q)),(b="function"==typeof(c={predicate:i=>"welcome"===i.type})?{predicate:c}:c,i=>{var u,c,f,v;let E,C=!1,{predicate:S,...x}=b,R=i.pipe((u=i=>{b.predicate(i)&&(C=!0,E=i)},(v=(0,er.m)(u)||c||f?{next:u,error:c,complete:f}:u)?(0,eo.e)(function(i,u){null===(c=v.subscribe)||void 0===c||c.call(v);var c,f=!0;i.subscribe((0,ea.x)(u,function(i){var c;null===(c=v.next)||void 0===c||c.call(v,i),u.next(i)},function(){var i;f=!1,null===(i=v.complete)||void 0===i||i.call(v),u.complete()},function(i){var c;f=!1,null===(c=v.error)||void 0===c||c.call(v,i),u.error(i)},function(){var i,u;f&&(null===(i=v.unsubscribe)||void 0===i||i.call(v)),null===(u=v.finalize)||void 0===u||u.call(v)}))}):eT.y),finalize(()=>{C=!1,E=void 0}),share(x)),k=new ee.y(i=>{C&&i.next(E),i.complete()});return function(){for(var i=[],u=0;u<arguments.length;u++)i[u]=arguments[u];var c=args_popScheduler(i),f="number"==typeof last(i)?i.pop():1/0;return i.length?1===i.length?(0,en.Xf)(i[0]):mergeAll(f)(from_from(i,c)):eB.E}(R,k)}));return tn.set(q,H),H}};let tn=new Map;let ObservableDatasetsClient=class ObservableDatasetsClient{#s;#u;constructor(i,u){this.#s=i,this.#u=u}create(i,u){return _modify(this.#s,this.#u,"PUT",i,u)}edit(i,u){return _modify(this.#s,this.#u,"PATCH",i,u)}delete(i){return _modify(this.#s,this.#u,"DELETE",i)}list(){resourceGuard("dataset",this.#s.config());let i=this.#s.config(),u=i.projectId,c="/datasets";return!1===i.useProjectHostname&&(c=`/projects/${u}/datasets`),_request(this.#s,this.#u,{uri:c,tag:null})}getEmbeddingsSettings(i){return resourceGuard("dataset",this.#s.config()),dataset(i),_request(this.#s,this.#u,{uri:_embeddingsSettingsUri(this.#s,i),tag:null})}editEmbeddingsSettings(i,u){return resourceGuard("dataset",this.#s.config()),dataset(i),_request(this.#s,this.#u,{method:"PUT",uri:_embeddingsSettingsUri(this.#s,i),body:u,tag:null})}};let DatasetsClient=class DatasetsClient{#s;#u;constructor(i,u){this.#s=i,this.#u=u}create(i,u){return resourceGuard("dataset",this.#s.config()),lastValueFrom(_modify(this.#s,this.#u,"PUT",i,u))}edit(i,u){return resourceGuard("dataset",this.#s.config()),lastValueFrom(_modify(this.#s,this.#u,"PATCH",i,u))}delete(i){return resourceGuard("dataset",this.#s.config()),lastValueFrom(_modify(this.#s,this.#u,"DELETE",i))}list(){resourceGuard("dataset",this.#s.config());let i=this.#s.config(),u=i.projectId,c="/datasets";return!1===i.useProjectHostname&&(c=`/projects/${u}/datasets`),lastValueFrom(_request(this.#s,this.#u,{uri:c,tag:null}))}getEmbeddingsSettings(i){return resourceGuard("dataset",this.#s.config()),dataset(i),lastV
13alueFrom(_request(this.#s,this.#u,{uri:_embeddingsSettingsUri(this.#s,i),tag:null}))}editEmbeddingsSettings(i,u){return resourceGuard("dataset",this.#s.config()),dataset(i),lastValueFrom(_request(this.#s,this.#u,{method:"PUT",uri:_embeddingsSettingsUri(this.#s,i),body:u,tag:null}))}};function _embeddingsSettingsUri(i,u){let c=i.config();return!1===c.useProjectHostname?`/projects/${c.projectId}/datasets/${u}/settings/embeddings`:`/datasets/${u}/settings/embeddings`}function _modify(i,u,c,f,b){return resourceGuard("dataset",i.config()),dataset(f),_request(i,u,{method:c,uri:`/datasets/${f}`,body:b,tag:null})}let ObservableMediaLibraryVideoClient=class ObservableMediaLibraryVideoClient{#s;#u;constructor(i,u){this.#s=i,this.#u=u}getPlaybackInfo(i,u={}){let c=this.#s.config(),f=(c.resource||c["~experimental_resource"])?.id,{instanceId:b,libraryId:v}=function(i){let u="object"==typeof i&&"_ref"in i?i._ref:i,c=ti.exec(u);if(c){let[,i,u]=c;return{libraryId:i,instanceId:u}}if("string"==typeof i&&i.startsWith("video-"))return{instanceId:i};throw Error(`Invalid video asset instance identifier "${u}": must be a valid video instance id or a Global Dataset Reference (GDR) to the video asset in the Media Library`)}(i),E=v||f;if(!E)throw Error("Could not determine Media Library ID - you need to provide a valid Media Library ID in the client config or a Media Library GDR");let C=`/media-libraries/${E}/video/${b}/playback-info`,S=function(i){let u={};if(i.transformations){let{thumbnail:c,animated:f,storyboard:b}=i.transformations;c&&(c.width&&(u.thumbnailWidth=c.width),c.height&&(u.thumbnailHeight=c.height),void 0!==c.time&&(u.thumbnailTime=c.time),c.fit&&(u.thumbnailFit=c.fit),c.format&&(u.thumbnailFormat=c.format)),f&&(f.width&&(u.animatedWidth=f.
13width),f.height&&(u.animatedHeight=f.height),void 0!==f.start&&(u.animatedStart=f.start),void 0!==f.end&&(u.animatedEnd=f.end),f.fps&&(u.animatedFps=f.fps),f.format&&(u.animatedFormat=f.format)),b&&b.format&&(u.storyboardFormat=b.format)}return i.expiration&&(u.expiration=i.expiration),u}(u);return _request(this.#s,this.#u,{method:"GET",uri:C,query:S})}};let MediaLibraryVideoClient=class MediaLibraryVideoClient{#s;#u;constructor(i,u){this.#s=i,this.#u=u}getPlaybackInfo(i,u={}){return lastValueFrom(new ObservableMediaLibraryVideoClient(this.#s.observable,this.#u).getPlaybackInfo(i,u))}};let ti=/^media-library:(ml[^:]+):([^:]+)$/;let ObservableProjectsClient=class ObservableProjectsClient{#s;#u;constructor(i,u){this.#s=i,this.#u=u}list(i){let u={};return i?.includeMembers===!1&&(u.includeMembers="false"),i?.includeFeatures===!1&&(u.includeFeatures="false"),i?.organizationId&&(u.organizationId=i.organizationId),i?.onlyExplicitMembership&&(u.onlyExplicitMembership="true"),_request(this.#s,this.#u,{uri:"/projects",query:u})}getById(i){return _request(this.#s,this.#u,{uri:`/projects/${i}`})}};let ProjectsClient=class ProjectsClient{#s;#u;constructor(i,u){this.#s=i,this.#u=u}list(i){let u={};return i?.includeMembers===!1&&(u.includeMembers="false"),i?.includeFeatures===!1&&(u.includeFeatures="false"),i?.organizationId&&(u.organizationId=i.organizationId),i?.onlyExplicitMembership&&(u.onlyExplicitMembership="true"),lastValueFrom(_request(this.#s,this.#u,{uri:"/projects",query:u}))}getById(i){return lastValueFrom(_request(this.#s,this.#u,{uri:`/projects/${i}`}))}};let to=(0,eV.kP)("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",8),getDocumentVersionId=(i,u)=>u?getVersionId(i,u):getDraftId(i);function deriveDocumentVersionId(i,{releaseId:u,publishedId:c,document:f}){if(c&&f._id){let i=getDocumentVersionId(c,u);return validateVersionIdMatch(i,f),i}if(f._id){let c=isDraftId(f._id),b=isVersionId(f._id);if(!c&&!b)throw Error(`\`${i}()\` requires a document with an \`_id\` that is a version or draft ID`);if(u){if(c)throw Error(`\`${i}()\` was called with a document ID (\`${f._id}\`) that is a draft ID, but a release ID (\`${u}\`) was also provided.`);let b=getVersionFromId(f._id);if(b!==u)throw Error(`\`${i}()\` was called with a document ID (\`${f._id}\`) that is a version ID, but the release ID (\`${u}\`) does not match the document's version ID (\`${b}\`).`)}return f._id}if(c)return getDocumentVersionId(c,u);throw Error(`\`${i}()\` requires either a publishedId or a document with an \`_id\``)}let getArgs=(i,u)=>{if("object"==typeof i&&null!==i&&("releaseId"in i||"metadata"in i)){let{releaseId:c=to(),metadata:f={}}=i;return[c,f,u]}return[to(),{},i]},createRelease=(i,u)=>{let[c,f,b]=getArgs(i,u),v={...f,releaseType:f.releaseType||"undecided"};return{action:{actionType:"sanity.action.release.create",releaseId:c,metadata:v},options:b}};let ObservableReleasesClient=class ObservableReleasesClient{#s;#u;constructor(i,u){this.#s=i,this.#u=u}get({releaseId:i},u){return _getDocument(this.#s,this.#u,`_.releases.${i}`,u)}create(i,u){let{action:c,options:f}=createRelease(i,u),{releaseId:b,metadata:v}=c;return _action(this.#s,this.#u,c,f).pipe((0,eM.U)(i=>({...i,releaseId:b,metadata:v})))}edit({releaseId:i,patch:u},c){return _action(this.#s,this.#u,{actionType:"sanity.action.release.edit",releaseId:i,patch:u},c)}publish({releaseId:i},u){return _action(this.#s,this.#u,{actionType:"sanity.action.release.publish",releaseId:i},u)}archive({releaseId:i},u){return _action(this.#s,this.#u,{actionType:"sanity.action.release.archive",releaseId:i},u)}unarchive({releaseId:i},u){return _action(this.#s,this.#u,{actionType:"sanity.action.release.unarchive",releaseId:i},u)}schedule({releaseId:i,publishAt:u},c){return _action(this.#s,this.#u,{actionType:"sanity.action.release.schedule",releaseId:i,publishAt:u},c)}unschedule({releaseId:i},u){return _action(this.#s,this.#u,{actionType:"sanity.action.release.unschedule",releaseId:i},u)}delete({releaseId:i},u){return _action(this.#s,this.#u,{actionType:"sanity.action.release.delete",releaseId:i},u)}fetchDocuments({releaseId:i},u){return _getReleaseDocuments(this.#s,this.#u,i,u)}};let ReleasesClient=class ReleasesClient{#s;#u;constructor(i,u){this.#s=i,this.#u=u}get({releaseId:i},u){return lastValueFrom(_getDocument(this.#s,this.#u,`_.releases.${i}`,u))}async create(i,u){let{action:c,options:f}=createRelease(i,u),{releaseId:b,metadata:v}=c;
13return{...await lastValueFrom(_action(this.#s,this.#u,c,f)),releaseId:b,metadata:v}}edit({releaseId:i,patch:u},c){return lastValueFrom(_action(this.#s,this.#u,{actionType:"sanity.action.release.edit",releaseId:i,patch:u},c))}publish({releaseId:i},u){return lastValueFrom(_action(this.#s,this.#u,{actionType:"sanity.action.release.publish",releaseId:i},u))}archive({releaseId:i},u){return lastValueFrom(_action(this.#s,this.#u,{actionType:"sanity.action.release.archive",releaseId:i},u))}unarchive({releaseId:i},u){return lastValueFrom(_action(this.#s,this.#u,{actionType:"sanity.action.release.unarchive",releaseId:i},u))}schedule({releaseId:i,publishAt:u},c){return lastValueFrom(_action(this.#s,this.#u,{actionType:"sanity.action.release.schedule",releaseId:i,publishAt:u},c))}unschedule({releaseId:i},u){return lastValueFrom(_action(this.#s,this.#u,{actionType:"sanity.action.release.unschedule",releaseId:i},u))}delete({releaseId:i},u){return lastValueFrom(_action(this.#s,this.#u,{actionType:"sanity.action.release.delete",releaseId:i},u))}fetchDocuments({releaseId:i},u){return lastValueFrom(_getReleaseDocuments(this.#s,this.#u,i,u))}};let ObservableUsersClient=class ObservableUsersClient{#s;#u;constructor(i,u){this.#s=i,this.#u=u}getById(i){return _request(this.#s,this.#u,{uri:`/users/${i}`})}};let UsersClient=class UsersClient{#s;#u;constructor(i,u){this.#s=i,this.#u=u}getById(i){return lastValueFrom(_request(this.#s,this.#u,{uri:`/users/${i}`}))}};let ObservableSanityClient=class ObservableSanityClient{assets;datasets;live;mediaLibrary;projects;users;agent;releases;#c;#u;listen=_listen;constructor(i,u=e4){this.config(u),this.#u=i,this.assets=new ObservableAssetsClient(this,this.#u),this.datasets=new ObservableDatasetsClient(this,this.#u),this.live=new LiveClient(this),this.mediaLibrary={video:new ObservableMediaLibraryVideoClient(this,this.#u)},this.projects=new ObservableProjectsClient(this,this.#u),this.users=new ObservableUsersClient(this,this.#u),this.agent={action:new ObservableAgentsActionClient(this,this.#u)},this.releases=new ObservableReleasesClient(this,this.#u)}clone(){return new ObservableSanityClient(this.#u,this.config())}config(i){if(void 0===i)return{...this.#c};if(this.#c&&!1===this.#c.allowReconfigure)throw Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return this.#c=initConfig(i,this.#c||{}),this}withConfig(i){let u=this.config();return new ObservableSanityClient(this.#u,{...u,...i,stega:{...u.stega||{},..."boolean"==typeof i?.stega?{enabled:i.stega}:i?.stega||{}}})}fetch(i,u,c){return _fetch(this,this.#u,this.#c.stega,i,u,c)}getDocument(i,u){if(u?.includeAllVersions===!0)return _getDocument(this,this.#u,i,{...u,includeAllVersions:!0});let c={signal:u?.signal,tag:u?.tag,releaseId:u?.releaseId,...u&&"includeAllVersions"in u?{includeAllVersions:!1}:{}};return _getDocument(this,this.#u,i,c)}getDocuments(i,u){return _getDocuments(this,this.#u,i,u)}create(i,u){return _create(this,this.#u,i,"create",u)}createIfNotExists(i,u){return _createIfNotExists(this,this.#u,i,u)}createOrReplace(i,u){return _createOrReplace(this,this.#u,i,u)}createVersion({document:i,publishedId:u,releaseId:c,baseId:f,ifBaseRevisionId:b},v){if(!i)return _createVersionFromBase(this,this.#u,u,f,c,b,v);let E=deriveDocumentVersionId("createVersion",{document:i,publishedId:u,releaseId:c}),C={...i,_id:E},S=u||getPublishedId(i._id);return _createVersion(this,this.#u,C,S,v)}delete(i,u){return _delete(this,this.#u,i,u)}discardVersion({releaseId:i,publishedId:u},c,f){let b=getDocumentVersionId(u,i);return _discardVersion(this,this.#u,b,c,f)}replaceVersion({document:i,publishedId:u,releaseId:c},f){let b=deriveDocumentVersionId("replaceVersion",{document:i,publishedId:u,releaseId:c}),v={...i,_id:b};return _replaceVersion(this,this.#u,v,f)}unpublishVersion({releaseId:i,publishedId:u},c){let f=getVersionId(u,i);return _unpublishVersion(this,this.#u,f,u,c)}mutate(i,u){return _mutate(this,this.#u,i,u)}patch(i,u){return new ObservablePatch(i,u,this)}transaction(i){return new ObservableTransaction(i,this)}action(i,u){return _action(this,this.#u,i,u)}request(i){return _request(this,this.#u,i)}getUrl(i,u){return _getUrl(this,i,u)}getDataUrl(i,u){return _getDataUrl(this,i,u)}};let SanityClient=class SanityClient{assets;datasets;live;mediaLibrary;projects;users;agent;releases;observable;#c;#u;listen=_listen;constructor(i,u=e4){this.config(u),this.#u=i,this.assets=new AssetsClient(this,this.#u),this.datasets=new DatasetsClient(this,this.#u),this.live=new LiveClient(this),this.mediaLibrary={video:new MediaLibraryVideoClient(this,this.#u)}
13,this.projects=new ProjectsClient(this,this.#u),this.users=new UsersClient(this,this.#u),this.agent={action:new AgentActionsClient(this,this.#u)},this.releases=new ReleasesClient(this,this.#u),this.observable=new ObservableSanityClient(i,u)}clone(){return new SanityClient(this.#u,this.config())}config(i){if(void 0===i)return{...this.#c};if(this.#c&&!1===this.#c.allowReconfigure)throw Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return this.observable&&this.observable.config(i),this.#c=initConfig(i,this.#c||{}),this}withConfig(i){let u=this.config();return new SanityClient(this.#u,{...u,...i,stega:{...u.stega||{},..."boolean"==typeof i?.stega?{enabled:i.stega}:i?.stega||{}}})}fetch(i,u,c){return lastValueFrom(_fetch(this,this.#u,this.#c.stega,i,u,c))}getDocument(i,u){if(u?.includeAllVersions===!0)return lastValueFrom(_getDocument(this,this.#u,i,{...u,includeAllVersions:!0}));let c={signal:u?.signal,tag:u?.tag,releaseId:u?.releaseId,...u&&"includeAllVersions"in u?{includeAllVersions:!1}:{}};return lastValueFrom(_getDocument(this,this.#u,i,c))}getDocuments(i,u){return lastValueFrom(_getDocuments(this,this.#u,i,u))}create(i,u){return lastValueFrom(_create(this,this.#u,i,"create",u))}createIfNotExists(i,u){return lastValueFrom(_createIfNotExists(this,this.#u,i,u))}createOrReplace(i,u){return lastValueFrom(_createOrReplace(this,this.#u,i,u))}createVersion({document:i,publishedId:u,releaseId:c,baseId:f,ifBaseRevisionId:b},v){if(!i)return firstValueFrom(_createVersionFromBase(this,this.#u,u,f,c,b,v));let E=deriveDocumentVersionId("createVersion",{document:i,publishedId:u,releaseId:c}),C={...i,_id:E},S=u||getPublishedId(i._id);return firstValueFrom(_createVersion(this,this.#u,C,S,v))}delete(i,u){return lastValueFrom(_delete(this,this.#u,i,u))}discardVersion({releaseId:i,publishedId:u},c,f){let b=getDocumentVersionId(u,i);return lastValueFrom(_discardVersion(this,this.#u,b,c,f))}replaceVersion({document:i,publishedId:u,releaseId:c},f){let b=deriveDocumentVersionId("replaceVersion",{document:i,publishedId:u,releaseId:c}),v={...i,_id:b};return firstValueFrom(_replaceVersion(this,this.#u,v,f))}unpublishVersion({releaseId:i,publishedId:u},c){let f=getVersionId(u,i);return lastValueFrom(_unpublishVersion(this,this.#u,f,u,c))}mutate(i,u){return lastValueFrom(_mutate(this,this.#u,i,u))}patch(i,u){return new Patch(i,u,this)}transaction(i){return new Transaction(i,this)}action(i,u){return lastValueFrom(_action(this,this.#u,i,u))}request(i){return lastValueFrom(_request(this,this.#u,i))}dataRequest(i,u,c){return lastValueFrom(_dataRequest(this,this.#u,i,u,c))}getUrl(i,u){return _getUrl(this,i,u)}getDataUrl(i,u){return _getDataUrl(this,i,u)}};let ta={requester:defineHttpRequest(k=[]),createClient:i=>{let u=defineHttpRequest(k,{ignoreWarnings:i.ignoreWarnings});return new SanityClient((c,f)=>(f||u)({maxRedirects:0,maxRetries:i.maxRetries,retryDelay:i.retryDelay,lineage:i.lineage,...c}),i)}},ts=(ta.requester,ta.createClient);var tu=c(6803),tc=c.n(tu);let tl="y6snmb76",tf="production-v2";if(!tl)throw Error("Missing NEXT_PUBLIC_SANITY_PROJECT_ID");if(!tf)throw Error("Missing NEXT_PUBLIC_SANITY_DATASET");let td={language:null,pageSlugs:null,memberIdentifier:null},getPreviewSanityClient=i=>ts({projectId:tl,dataset:tf,token:i,apiVersion:"2021-04-26",useCdn:!1,perspective:"drafts",ignoreBrowserTokenWarning:!0}),getSanityImageUrl=(i,u)=>{if("string"==typeof i)return i;if(i){let c=tc()({projectId:tl,dataset:tf}),f=c.image(i);u&&(f=f.withOptions(u));let b=f.quality(100).auto("format").url();if(b)return b}},calculateImageSize=(i,u,c)=>{if((null==c?void 0:c.width)&&(null==c?void 0:c.height))return[c.width,c.height];let f=(null==c?void 0:c.fit)==="max";if((null==c?void 0:c.width)&&!(null==c?void 0:c.height)){let b=f?Math.min(i,c.width):c.width;return[b,Math.round(b*(u/i))]}if((null==c?void 0:c.maxWidth)||(null==c?void 0:c.maxHeight)){let f=Math.min((null==c?void 0:c.maxWidth)?c.maxWidth/i:1,(null==c?void 0:c.maxHeight)?c.maxHeight/u:1,1);return[Math.round(i*f),Math.round(u*f)]}return[i,u]}},1267:function(i,u,c){"use strict";c.d(u,{nz:function(){return GlobalStyles},AV:function(){return v.AV},Zo:function(){return v.Zo},xZ:function(){return v.xZ},em:function(){return em},Y7:function(){return v.Y7},pc:function(){return pc},St:function(){return pc100},hO:function(){return rem},rS:function(){return v.rS}});var f=c(6811),b=c(917),v=c(2844);let GlobalStyles=()=>(0,f.tZ)(b.xB,{styles:[i=>({"*":{fontFamily:"'Roboto', sans-serif",margin:0,padding:0,boxSizing:"border-box",lineHeight:1},html:{fontSize:"".concat(v.cM,"px")},body:{backgroundColor:i.colors.light,color:i.colors.dark},"h1, h2, h3, h4":{fontFamily:"'Cairo', sans-serif",fontWeight:600,"*":{fontFamily:"'Cairo', sans-serif"}},a:{textDecoration:"none",color:i.colors.medium}})]});function addUnit(i){return u=>
13null===u?null:"".concat(u).concat(i)}function pc(){for(var i=arguments.length,u=Array(i),c=0;c<i;c++)u[c]=arguments[c];return u&&u.map(addUnit("%"))}function pc100(){for(var i=arguments.length,u=Array(i),c=0;c<i;c++)u[c]=arguments[c];return u&&u.map(i=>null===i?null:"".concat(100*i,"%"))}function em(){for(var i=arguments.length,u=Array(i),c=0;c<i;c++)u[c]=arguments[c];return u&&u.map(addUnit("em"))}function rem(){for(var i=arguments.length,u=Array(i),c=0;c<i;c++)u[c]=arguments[c];return u&&u.map(i=>null===i?null:"".concat(i/v.cM,"rem"))}},2844:function(i,u,c){"use strict";c.d(u,{AV:function(){return C},Y7:function(){return f},Zo:function(){return E},cM:function(){return b},kP:function(){return S},rS:function(){return x},xZ:function(){return v}});let f="cnw",b=10,v=930,E=1600,C=[512,768,1024],S=1600,x={breakpoints:C.map(i=>"".concat(i,"px")),colors:{primary:"#45ab21",primaryRGBSource:[69,171,33],primaryActive:"#2c8f13",primaryText:"#ffffff",secondary:"#08222a",secondaryRGBSource:[8,34,42],dark:"#004343",darkRGBSource:[0,67,67],darkActive:"#003737",medium:"#485c5c",light:"#f8fafb",lightGraphic:"#eef4f8",border:"#ecf2f2",borderAlternative:"#e2ebef",borderInput:"#a3adad",error:"#ff3131",gray:"#c0cbcb"},fontWeights:{normal:400,medium:500,demi:600,bold:700}}},4378:function(i,u,c){"use strict";function matchWildcardString(i,u){return new RegExp("^".concat(u.replace(/[.?+^$[\]\\(){}|-]/g,"\\$&").split("*").join(".*"),"$")).test(i)}function isEmail(i){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(i)}function isNumeric(i){return null!=i&&""!==i&&!isNaN(Number(i.toString()))}c.d(u,{As:function(){return matchWildcardString},Jh:function(){return isEmail},kE:function(){return isNumeric}})},7498:function(i,u){"use strict";var c,f;Object.defineProperty(u,"__esModule",{value:!0}),function(i,u){for(var c in u)Object.defineProperty(i,c,{enumerable:!0,get:u[c]})}(u,{PrefetchKind:function(){return c},ACTION_REFRESH:function(){return b},ACTION_NAVIGATE:function(){return v},ACTION_RESTORE:function(){return E},ACTION_SERVER_PATCH:function(){return C},ACTION_PREFETCH:function(){return S},ACTION_FAST_REFRESH:function(){return x},ACTION_SERVER_ACTION:function(){return R}});let b="refresh",v="navigate",E="restore",C="server-patch",S="prefetch",x="fast-refresh",R="server-action";(f=c||(c={})).AUTO="auto",f.FULL="full",f.TEMPORARY="temporary",("function"==typeof u.default||"object"==typeof u.default&&null!==u.default)&&void 0===u.default.__esModule&&(Object.defineProperty(u.default,"__esModule",{value:!0}),Object.assign(u.default,u),i.exports=u.default)},30:function(i,u,c){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),Object.defineProperty(u,"getDomainLocale",{enumerable:!0,get:function(){return getDomainLocale}});let f=c(2866);function getDomainLocale(i,u,b,v){{let E=c(3530).normalizeLocalePath,C=c(6728).detectDomainLocale,S=u||E(i,b).detectedLocale,x=C(v,void 0,S);if(x){let u="http"+(x.http?"":"s")+"://",c=S===x.defaultLocale?"":"/"+S;return""+u+x.domain+(0,f.normalizePathTrailingSlash)(""+c+i)}return!1}}("function"==typeof u.default||"object"==typeof u.default&&null!==u.default)&&void 0===u.default.__esModule&&(Object.defineProperty(u.default,"__esModule",{value:!0}),Object.assign(u.default,u),i.exports=u.default)},5170:function(i,u,c){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),Object.defineProperty(u,"default",{enumerable:!0,get:function(){return U}});let f=c(8754),b=f._(c(7294)),v=c(4450),E=c(2227),C=c(4364),S=c(109),x=c(3607),R=c(1823),k=c(9031),j=c(920),F=c(30),B=c(7192),M=c(7498),q=new Set;function prefetch(i,u,c,f,b,v){if(!v&&!(0,E.isLocalURL)(u))return;if(!f.bypassPrefetchedCheck){let b=void 0!==f.locale?f.locale:"locale"in i?i.locale:void 0,v=u+"%"+c+"%"+b;if(q.has(v))return;q.add(v)}let C=v?i.prefetch(u,b):i.prefetch(u,c,f);Promise.resolve(C).catch(i=>{})}function formatStringOrUrl(i){return"string"==typeof i?i:(0,C.formatUrl)(i)}let L=b.default.forwardRef(function(i,u){let c,f;let{href:C,as:q,children:L,prefetch:U=null,passHref:V,replace:H,shallow:Z,scroll:W,locale:G,onClick:Y,onMouseEnter:X,onTouchStart:Q,legacyBehavior:K=!1,...J}=i;c=L,K&&("string"==typeof c||"number"==typeof c)&&(c=b.default.createElement("a",null,c));let ee=b.default.useContext(R.RouterContext),et=b.default.useContext(k.AppRouterContext),er=null!=ee?ee:et,en=!ee,ei=!1!==U,eo=null===U?M.PrefetchKind.AUTO:M.PrefetchKind.FULL,{href:ea,as:es}=b.default.useMemo(()=>
13{if(!ee){let i=formatStringOrUrl(C);return{href:i,as:q?formatStringOrUrl(q):i}}let[i,u]=(0,v.resolveHref)(ee,C,!0);return{href:i,as:q?(0,v.resolveHref)(ee,q):u||i}},[ee,C,q]),eu=b.default.useRef(ea),ec=b.default.useRef(es);K&&(f=b.default.Children.only(c));let el=K?f&&"object"==typeof f&&f.ref:u,[ef,ed,ep]=(0,j.useIntersection)({rootMargin:"200px"}),eh=b.default.useCallback(i=>{(ec.current!==es||eu.current!==ea)&&(ep(),ec.current=es,eu.current=ea),ef(i),el&&("function"==typeof el?el(i):"object"==typeof el&&(el.current=i))},[es,el,ea,ep,ef]);b.default.useEffect(()=>{er&&ed&&ei&&prefetch(er,ea,es,{locale:G},{kind:eo},en)},[es,ea,ed,G,ei,null==ee?void 0:ee.locale,er,en,eo]);let eg={ref:eh,onClick(i){K||"function"!=typeof Y||Y(i),K&&f.props&&"function"==typeof f.props.onClick&&f.props.onClick(i),er&&!i.defaultPrevented&&function(i,u,c,f,v,C,S,x,R,k){let{nodeName:j}=i.currentTarget,F="A"===j.toUpperCase();if(F&&(function(i){let u=i.currentTarget,c=u.getAttribute("target");return c&&"_self"!==c||i.metaKey||i.ctrlKey||i.shiftKey||i.altKey||i.nativeEvent&&2===i.nativeEvent.which}(i)||!R&&!(0,E.isLocalURL)(c)))return;i.preventDefault();let navigate=()=>{let i=null==S||S;"beforePopState"in u?u[v?"replace":"push"](c,f,{shallow:C,locale:x,scroll:i}):u[v?"replace":"push"](f||c,{forceOptimisticNavigation:!k,scroll:i})};R?b.default.startTransition(navigate):navigate()}(i,er,ea,es,H,Z,W,G,en,ei)},onMouseEnter(i){K||"function"!=typeof X||X(i),K&&f.props&&"function"==typeof f.props.onMouseEnter&&f.props.onMouseEnter(i),er&&(ei||!en)&&prefetch(er,ea,es,{locale:G,priority:!0,bypassPrefetchedCheck:!0},{kind:eo},en)},onTouchStart(i){K||"function"!=typeof Q||Q(i),K&&f.props&&"function"==typeof f.props.onTouchStart&&f.props.onTouchStart(i),er&&(ei||!en)&&prefetch(er,ea,es,{locale:G,priority:!0,bypassPrefetchedCheck:!0},{kind:eo},en)}};if((0,S.isAbsoluteUrl)(es))eg.href=es;else if(!K||V||"a"===f.type&&!("href"in f.props)){let i=void 0!==G?G:null==ee?void 0:ee.locale,u=(null==ee?void 0:ee.isLocaleDomain)&&(0,F.getDomainLocale)(es,i,null==ee?void 0:ee.locales,null==ee?void 0:ee.domainLocales);eg.href=u||(0,B.addBasePath)((0,x.addLocale)(es,i,null==ee?void 0:ee.defaultLocale))}return K?b.default.cloneElement(f,eg):b.default.createElement("a",{...J,...eg},c)}),U=L;("function"==typeof u.default||"object"==typeof u.default&&null!==u.default)&&void 0===u.default.__esModule&&(Object.defineProperty(u.default,"__esModule",{value:!0}),Object.assign(u.default,u),i.exports=u.default)},3530:function(i,u,c){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),Object.defineProperty(u,"normalizeLocalePath",{enumerable:!0,get:function(){return normalizeLocalePath}});let normalizeLocalePath=(i,u)=>c(1774).normalizeLocalePath(i,u);("function"==typeof u.default||"object"==typeof u.default&&null!==u.default)&&void 0===u.default.__esModule&&(Object.defineProperty(u.default,"__esModule",{value:!0}),Object.assign(u.default,u),i.exports=u.default)},920:function(i,u,c){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),Object.defineProperty(u,"useIntersection",{enumerable:!0,get:function(){return useIntersection}});let f=c(7294),b=c(3436),v="function"==typeof IntersectionObserver,E=new Map,C=[];function useIntersection(i){let{rootRef:u,rootMargin:c,disabled:S}=i,x=S||!v,[R,k]=(0,f.useState)(!1),j=(0,f.useRef)(null),F=(0,f.useCallback)(i=>{j.current=i},[]);(0,f.useEffect)(()=>{if(v){if(x||R)return;let i=j.current;if(i&&i.tagName){let f=function(i,u,c){let{id:f,observer:b,elements:v}=function(i){let u;let c={root:i.root||null,margin:i.rootMargin||""},f=C.find(i=>i.root===c.root&&i.margin===c.margin);if(f&&(u=E.get(f)))return u;let b=new Map,v=new IntersectionObserver(i=>{i.forEach(i=>{let u=b.get(i.target),c=i.isIntersecting||i.intersectionRatio>0;u&&c&&u(c)})},i);return u={id:c,observer:v,elements:b},C.push(c),E.set(c,u),u}(c);return v.set(i,u),b.observe(i),function(){if(v.delete(i),b.unobserve(i),0===v.size){b.disconnect(),E.delete(f);let i=C.findIndex(i=>i.root===f.root&&i.margin===f.margin);i>-1&&C.splice(i,1)}}}(i,i=>i&&k(i),{root:null==u?void 0:u.current,rootMargin:c});return f}}else if(!R){let i=(0,b.requestIdleCallback)(()=>k(!0));return()=>(0,b.cancelIdleCallback)(i)}},[x,c,u,R,j.current]);let B=(0,f.useCallback)(()=>{k(!1)},[]);return[F,R,B]}("function"==typeof u.default||"object"==typeof u.default&&null!==u.default)&&void 0===u.default.__esModule&&(Object.defineProperty(u.default,"__esMo
13dule",{value:!0}),Object.assign(u.default,u),i.exports=u.default)},8910:function(i,u,c){"use strict";c.r(u),c.d(u,{default:function(){return _app}});var f=c(6811),b=c(7294),v=c(1163),E=c(917),C=c(442),S=c(8711),x=c(7947),R=c(259),k=c(8382),j=c(1267),F=c(8251),B=c(7357),M=c(7472),q=c(4017),L=c(7800);function LanguageProvider(i){let{language:u,children:c}=i;return(0,f.tZ)(L.Z.Provider,{value:{language:u},children:c})}var U=c(9541);function ApplicationFormProvider(i){let{thankYouPageSlug:u,children:c}=i,{language:v}=(0,b.useContext)(L.Z),[E,C]=(0,b.useState)(U.wJ),submitForm=async(i,u)=>{let c=await fetch("/api/applications/create",{cache:"no-cache",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({captchaToken:u,language:v,...i})});return await c.json()};return(0,f.tZ)(U.ZP.Provider,{value:{values:E,setValues:C,submitForm,thankYouPageSlug:u},children:c})}var V=c(4378),H=c(3723);function ApplicationFormValidationProvider(i){let{children:u}=i,c=(0,b.useContext)(B.Z),{values:v}=(0,b.useContext)(U.ZP),[E,C]=(0,b.useState)({});return(0,f.tZ)(H.Z.Provider,{value:{errorMessages:E,clearError:i=>{C(u=>({...u,[i]:""}))},validate:()=>{var i,u,f,b,E,S,x;let R=!0,setError=(i,u)=>{R=!1,C(c=>({...c,[i]:u||""}))};return(null===(i=c.applicationFormNameRequired)||void 0===i||i)&&!v.name&&setError("name",c.applicationFormNameMissing),(null===(u=c.applicationFormPhoneRequired)||void 0===u||u)&&!v.phone&&setError("phone",c.applicationFormPhoneMissing),(null===(f=c.applicationFormContactNameRequired)||void 0===f||f)&&!v.contactName&&setError("contactName",c.applicationFormContactNameMissing),(null===(b=c.applicationFormRegistrationNumberRequired)||void 0===b||b)&&!v.registrationNumber&&setError("registrationNumber",c.applicationFormRegistrationNumberMissing),(null===(E=c.applicationFormEmailRequired)||void 0===E||E)&&!v.email&&setError("email",c.applicationFormEmailMissing),v.email&&!(0,V.Jh)(v.email)&&setError("email",c.applicationFormEmailInvalid),(null===(S=c.applicationFormWebsiteRequired)||void 0===S||S)&&!v.website&&setError("website",c.applicationFormWebsiteMissing),(null===(x=c.applicationFormCommentRequired)||void 0===x||x)&&!v.comment&&setError("comment",c.applicationFormCommentMissing),R}},children:u})}var Z=c(6829);let clamp=(i,u,c)=>i<u?u:i>c?c:i,createQueue=()=>{let i=!1,u=[],next=()=>{i=!0;let c=u.shift();if(c)return c(next);i=!1};return{clear:()=>{i=!1,u=[]},enqueue:c=>{u.push(c),i||1!==u.length||next()}}},createTimeout=()=>{let i;return{cancel:()=>{i&&window.cancelAnimationFrame(i)},schedule:(u,c)=>{let f;let frame=b=>{if(f=f||b,b-f>c){u();return}i=window.requestAnimationFrame(frame)};i=window.requestAnimationFrame(frame)}}},increment=i=>{let u=0;return i>=0&&i<.2&&(u=.1),i>=.2&&i<.5&&(u=.04),i>=.5&&i<.8&&(u=.02),i>=.8&&i<.99&&(u=.005),clamp(i+u,0,.994)},useEffectOnce=i=>{(0,b.useEffect)(i,[])},useGetSetState=function(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[,u]=(0,b.useState)(0),c=(0,b.useCallback)(()=>u(i=>++i%1e6),[]),f=(0,b.useRef)({...i}),v=(0,b.useCallback)(()=>f.current,[]),E=(0,b.useCallback)(i=>{i&&(Object.assign(f.current,i),c())},[]);return[v,E]},useFirstMountState=()=>{let i=(0,b.useRef)(!0);return!!i.current&&(i.current=!1,!0)},useUpdateEffect=(i,u)=>{let c=useFirstMountState();(0,b.useEffect)(()=>{if(!c)return i()},u)},W={isFinished:!0,progress:0,sideEffect:()=>void 0},useNProgress=function(){let{animationDuration:i=200,incrementDuration:u=800,isAnimating:c=!1,minimum:f=.08}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[v,E]=useGetSetState(W),C=(0,b.useRef)(null),S=(0,b.useRef)(null);useEffectOnce(()=>{C.current=createQueue(),S.current=createTimeout()});let x=(0,b.useCallback)(()=>{var i,u;null===(i=S.current)||void 0===i||i.cancel(),null===(u=C.current)||void 0===u||u.clear()},[]),R=(0,b.useCallback)(u=>{var c,b,v;if(1===(u=clamp(u,f,1))){x(),null===(b=C.current)||void 0===b||b.enqueue(c=>{E({progress:u,sideEffect:()=>{var u;return null===(u=S.current)||void 0===u?void 0:u.schedule(c,i)}})}),null===(v=C.current)||void 0===v||v.enqueue(()=>{E({isFinished:!0,sideEffect:x})});return}null===(c=C.current)||void 0===c||c.enqueue(c=>{E({isFinished:!1,progress:u,sideEffect:()=>{var u;return null===(u=S.current)||void 0===u?void 0:u.schedule(c,i)}})})},[i,x,f,C,E,S]),k=(0,b.useCallback)(()=>{R(increment(v().progress))},[v,R]),j=(0,b.useCallback)(()=>{let work=()=>{var i;k(),null===(i=C.current)||void 0===i||i.enqueue(i=>{var c;null===(c=S.current)||void 0===c||c.schedule(()=>{work(),i()},u)})};work()},[u,C,S,k]),F=(0,b.useRef)(()=>void 0),B=v().sideEffect;return(0,b.useEffect)(()=>{F.current=k}),useEffectOnce(()=>(c&&j(),x)),useUpdateEffect(()=>
13{v().sideEffect()},[v,B]),useUpdateEffect(()=>{c||R(1),c&&E({...W,sideEffect:j})},[c,R,E,j]),{animationDuration:i,isFinished:v().isFinished,progress:v().progress}},G=(0,Z.Z)("div",{target:"enmabe90"})(i=>{let{animationDuration:u,isFinished:c}=i;return(0,x.ZP)({opacity:c?0:1,pointerEvents:"none",transition:"opacity ".concat(u,"ms linear")})}),Y=(0,Z.Z)("div",{target:"enmabe91"})(i=>{let{theme:u,animationDuration:c,progress:f}=i;return(0,x.ZP)({position:"fixed",top:0,left:0,height:(0,j.hO)(2),width:(0,j.pc)(100),marginLeft:(0,j.pc)((-1+f)*100),transition:"margin-left ".concat(c,"ms linear"),zIndex:1031,backgroundColor:u.colors.primary})}),X=(0,Z.Z)("div",{target:"enmabe92"})(i=>{let{theme:u}=i;return(0,x.ZP)({position:"absolute",display:"block",right:0,width:(0,j.hO)(100),height:(0,j.pc)(100),boxShadow:"0 0 10px ".concat(u.colors.primary,", 0 0 5px ").concat(u.colors.primary),opacity:1,transform:"rotate(3deg) translate(0px, -4px)"})}),PageLoadingBar=i=>{let{isRouteChanging:u}=i,{animationDuration:c,isFinished:b,progress:v}=useNProgress({isAnimating:u});return(0,f.tZ)(G,{animationDuration:c,isFinished:b,children:(0,f.tZ)(Y,{animationDuration:c,progress:v,children:(0,f.tZ)(X,{})})})};var Q=c(3481),K=c(3829);let J=(0,b.createContext)({}),AnalyticsContextProvider=i=>{let{children:u}=i;return(0,b.useEffect)(()=>{(0,Q.l)("page_view",{page_title:document.title,page_location:(0,K.e)(),page_referrer:document.referrer})},[]),(0,f.tZ)(J.Provider,{value:{},children:u})};var ee=c(3416),et=c(4298),er=c.n(et),external_scripts=i=>{var u;let{generalSettings:c}=i,v=null!==(u=null==c?void 0:c.gtmScriptUrls)&&void 0!==u?u:[],E=(0,b.useMemo)(()=>{let i=(0,ee.kP)("1234567890abcdef",16);return i()},[]);return(0,f.tZ)(f.HY,{children:v.length>0&&(0,f.BX)(f.HY,{children:[(0,f.tZ)(er(),{id:"google-tag-manager-variables",strategy:"afterInteractive",children:"\n window['dataLayer'] = window['dataLayer'] || []\n window['dataLayer'].push({ event_id: '".concat(E,"' })\n window['dataLayer'].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' })\n ")}),v.map(i=>(0,f.tZ)(er(),{id:"google-tag-manager-".concat(i),src:i,strategy:"afterInteractive"},"google-tag-manager-".concat(i)))]})})};let en=(0,b.lazy)(()=>c.e(93).then(c.bind(c,4093)));var ei=c(3901),preview=i=>{let{token:u,children:c}=i,v=(0,b.useMemo)(()=>(0,ei.xl)(u),[u]);return(0,f.tZ)(en,{client:v,children:c})},eo=c(1664),ea=c.n(eo);let es=(0,Z.Z)("div",{target:"e1pi04gg0"})((0,x.ZP)({position:"sticky",bottom:0,left:0,right:0,zIndex:90,backgroundColor:"rgba(255,255,255,0.95)"})),eu=(0,Z.Z)("div",{target:"e1pi04gg1"})((0,x.ZP)({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:(0,j.hO)(j.Zo),mx:"auto",px:(0,j.hO)(20,null,40,95),py:(0,j.hO)(10)})),ec=(0,Z.Z)("p",{target:"e1pi04gg2"})((0,x.ZP)({margin:0,fontSize:(0,j.hO)(14)})),el=(0,Z.Z)("button",{target:"e1pi04gg3"})((0,x.ZP)({textDecoration:"underline",textDecorationThickness:"1px",fontSize:(0,j.hO)(14),color:"currentColor",background:"none",border:"none",cursor:"pointer","&:hover":{textDecorationThickness:"2px"}}));var draft_mode_overlay=()=>(0,f.tZ)(es,{children:(0,f.BX)(eu,{children:[(0,f.tZ)(ec,{children:"Preview mode is active."}),(0,f.tZ)(ea(),{href:"/api/disable-draft",prefetch:!1,children:(0,f.tZ)(el,{children:"Exit preview mode"})})]})});let useRouterEvents=(i,u)=>{(0,b.useEffect)(()=>{function handleRouteChangeStart(){u(i=>({...i,isRouteChanging:!0,key:1^i.key}))}function handleRouteChangeComplete(){u(i=>({...i,isRouteChanging:!1})),setTimeout(()=>{(0,Q.l)("page_view",{page_title:document.title,page_location:(0,K.e)()})},500)}function handleRouteChangeError(){u(i=>({...i,isRouteChanging:!1}))}return i.events.on("routeChangeStart",handleRouteChangeStart),i.events.on("routeChangeComplete",handleRouteChangeComplete),i.events.on("routeChangeError",handleRouteChangeError),()=>{i.events.off("routeChangeStart",handleRouteChangeStart),i.events.off("routeChangeComplete",handleRouteChangeComplete),i.events.off("routeChangeError",handleRouteChangeError)}},[i.events,u])};var _app=function(i){let{Component:u,pageProps:c}=i,[L,U]=(0,b.useState)({isRouteChanging:!1,key:0}),V=(0,v.useRouter)(),H=c.draftMode,Z=c.draftModeToken,W=(null==c?void 0:c.language)||F.X9,G=(0,F.Yy)(W)||F.$8,Y=(0,F.rR)(W)||F.Tn;useRouterEvents(V,U);let X=(0,f.BX)(f.HY,{children:[(0,f.tZ)(external_scripts,{generalSettings:null==c?void 0:c.generalSettings}),(0,f.tZ)(j.nz,{}),(0,f.tZ)(PageLoadingBar,{isRouteChanging:L.isRouteChanging},L.key),(0,f.tZ)(u,{...c}),!!H&&(0,f.tZ)(draft_mode_overlay,{})]}),Q=(null==c?void 0:c.pageContent)?(0,k.Nq)(c.pageContent,c.pageContentKeys):[],K=(0,k.QX)(Q,k.qG.APPLICATION_FORM);K&&(X=(0,f.tZ)(ApplicationFormProvider,{thankYouPageSlug:null==c?void 0:c.thankYouPageSlug,children:(0,f.tZ)(ApplicationFormValidationProvider,{children:X})})),X=(0,f.BX)(f.HY,{children:[(0,f.tZ)(E.xB,{styles:[(0,x.ZP)({".grecaptcha-badge":{visibility:"hidden","body.show-recaptcha &":{visibility:"visible"}}})]}),(0,f.tZ)(R.pm,{reCaptchaKey:"6Lc5eW0sAAAAAAx_VjdJtJ32gstxmYVzFR1tiRnp",language:F.k1[W],children:X})]});let J=(0,f.tZ)(C.C,{value:(0,S.Z)({key:j.Y7}
13),children:(0,f.tZ)(C.a,{theme:j.rS,children:(0,f.tZ)(B.Z.Provider,{value:(null==c?void 0:c.strings)||{},children:(0,f.tZ)(M.d.Provider,{value:null==c?void 0:c.defaultMetadata,children:(0,f.tZ)(q.Z.Provider,{value:{host:G,assetHost:Y},children:(0,f.tZ)(LanguageProvider,{language:W,children:(0,f.tZ)(AnalyticsContextProvider,{children:X})})})})})})});return H&&Z&&(J=(0,f.tZ)(preview,{token:Z,children:J})),J}},1876:function(i){!function(){var u={675:function(i,u){"use strict";u.byteLength=function(i){var u=getLens(i),c=u[0],f=u[1];return(c+f)*3/4-f},u.toByteArray=function(i){var u,c,v=getLens(i),E=v[0],C=v[1],S=new b((E+C)*3/4-C),x=0,R=C>0?E-4:E;for(c=0;c<R;c+=4)u=f[i.charCodeAt(c)]<<18|f[i.charCodeAt(c+1)]<<12|f[i.charCodeAt(c+2)]<<6|f[i.charCodeAt(c+3)],S[x++]=u>>16&255,S[x++]=u>>8&255,S[x++]=255&u;return 2===C&&(u=f[i.charCodeAt(c)]<<2|f[i.charCodeAt(c+1)]>>4,S[x++]=255&u),1===C&&(u=f[i.charCodeAt(c)]<<10|f[i.charCodeAt(c+1)]<<4|f[i.charCodeAt(c+2)]>>2,S[x++]=u>>8&255,S[x++]=255&u),S},u.fromByteArray=function(i){for(var u,f=i.length,b=f%3,v=[],E=0,C=f-b;E<C;E+=16383)v.push(function(i,u,f){for(var b,v=[],E=u;E<f;E+=3)v.push(c[(b=(i[E]<<16&16711680)+(i[E+1]<<8&65280)+(255&i[E+2]))>>18&63]+c[b>>12&63]+c[b>>6&63]+c[63&b]);return v.join("")}(i,E,E+16383>C?C:E+16383));return 1===b?v.push(c[(u=i[f-1])>>2]+c[u<<4&63]+"=="):2===b&&v.push(c[(u=(i[f-2]<<8)+i[f-1])>>10]+c[u>>4&63]+c[u<<2&63]+"="),v.join("")};for(var c=[],f=[],b="undefined"!=typeof Uint8Array?Uint8Array:Array,v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",E=0,C=v.length;E<C;++E)c[E]=v[E],f[v.charCodeAt(E)]=E;function getLens(i){var u=i.length;if(u%4>0)throw Error("Invalid string. Length must be a multiple of 4");var c=i.indexOf("=");-1===c&&(c=u);var f=c===u?0:4-c%4;return[c,f]}f["-".charCodeAt(0)]=62,f["_".charCodeAt(0)]=63},72:function(i,u,c){"use strict";/*! 14 * The buffer module from node.js, for the browser. 15 * 16 * @author Feross Aboukhadijeh <https://feross.org> 17 * @license MIT 18 */var f=c(675),b=c(783),v="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function createBuffer(i){if(i>2147483647)throw RangeError('The value "'+i+'" is invalid for option "size"');var u=new Uint8Array(i);return Object.setPrototypeOf(u,Buffer.prototype),u}function Buffer(i,u,c){if("number"==typeof i){if("string"==typeof u)throw TypeError('The "string" argument must be of type string. Received type number');return allocUnsafe(i)}return from(i,u,c)}function from(i,u,c){if("string"==typeof i)return function(i,u){if(("string"!=typeof u||""===u)&&(u="utf8"),!Buffer.isEncoding(u))throw TypeError("Unknown encoding: "+u);var c=0|byteLength(i,u),f=createBuffer(c),b=f.write(i,u);return b!==c&&(f=f.slice(0,b)),f}(i,u);if(ArrayBuffer.isView(i))return fromArrayLike(i);if(null==i)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof i);if(isInstance(i,ArrayBuffer)||i&&isInstance(i.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(isInstance(i,SharedArrayBuffer)||i&&isInstance(i.buffer,SharedArrayBuffer)))return function(i,u,c){var f;if(u<0||i.byteLength<u)throw RangeError('"offset" is outside of buffer bounds');if(i.byteLength<u+(c||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(f=void 0===u&&void 0===c?new Uint8Array(i):void 0===c?new Uint8Array(i,u):new Uint8Array(i,u,c),Buffer.prototype),f}(i,u,c);if("number"==typeof i)throw TypeError('The "value" argument must not be of type number. Received type number');var f=i.valueOf&&i.valueOf();if(null!=f&&f!==i)return Buffer.from(f,u,c);var b=function(i){if(Buffer.isBuffer(i)){var u,c=0|checked(i.length),f=createBuffer(c);return 0===f.length||i.copy(f,0,0,c),f}return void 0!==i.length?"number"!=typeof i.length||(u=i.length)!=u?createBuffer(0):fromArrayLike(i):"Buffer"===i.type&&Array.isArray(i.data)?fromArrayLike(i.data):void 0}(i);if(b)return b;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof i[Symbol.toPrimitive])return Buffer.from(i[Symbol.toPrimitive]("string"),u,c);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof i)}function assertSize(i){if("number"!=typeof i)throw TypeError('"size" argument must be of type number');
18if(i<0)throw RangeError('The value "'+i+'" is invalid for option "size"')}function allocUnsafe(i){return assertSize(i),createBuffer(i<0?0:0|checked(i))}function fromArrayLike(i){for(var u=i.length<0?0:0|checked(i.length),c=createBuffer(u),f=0;f<u;f+=1)c[f]=255&i[f];return c}function checked(i){if(i>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|i}function byteLength(i,u){if(Buffer.isBuffer(i))return i.length;if(ArrayBuffer.isView(i)||isInstance(i,ArrayBuffer))return i.byteLength;if("string"!=typeof i)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof i);var c=i.length,f=arguments.length>2&&!0===arguments[2];if(!f&&0===c)return 0;for(var b=!1;;)switch(u){case"ascii":case"latin1":case"binary":return c;case"utf8":case"utf-8":return utf8ToBytes(i).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*c;case"hex":return c>>>1;case"base64":return base64ToBytes(i).length;default:if(b)return f?-1:utf8ToBytes(i).length;u=(""+u).toLowerCase(),b=!0}}function slowToString(i,u,c){var b,v,E=!1;if((void 0===u||u<0)&&(u=0),u>this.length||((void 0===c||c>this.length)&&(c=this.length),c<=0||(c>>>=0)<=(u>>>=0)))return"";for(i||(i="utf8");;)switch(i){case"hex":return function(i,u,c){var f=i.length;(!u||u<0)&&(u=0),(!c||c<0||c>f)&&(c=f);for(var b="",v=u;v<c;++v)b+=C[i[v]];return b}(this,u,c);case"utf8":case"utf-8":return utf8Slice(this,u,c);case"ascii":return function(i,u,c){var f="";c=Math.min(i.length,c);for(var b=u;b<c;++b)f+=String.fromCharCode(127&i[b]);return f}(this,u,c);case"latin1":case"binary":return function(i,u,c){var f="";c=Math.min(i.length,c);for(var b=u;b<c;++b)f+=String.fromCharCode(i[b]);return f}(this,u,c);case"base64":return b=u,v=c,0===b&&v===this.length?f.fromByteArray(this):f.fromByteArray(this.slice(b,v));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(i,u,c){for(var f=i.slice(u,c),b="",v=0;v<f.length;v+=2)b+=String.fromCharCode(f[v]+256*f[v+1]);return b}(this,u,c);default:if(E)throw TypeError("Unknown encoding: "+i);i=(i+"").toLowerCase(),E=!0}}function swap(i,u,c){var f=i[u];i[u]=i[c],i[c]=f}function bidirectionalIndexOf(i,u,c,f,b){var v;if(0===i.length)return -1;if("string"==typeof c?(f=c,c=0):c>2147483647?c=2147483647:c<-2147483648&&(c=-2147483648),(v=c=+c)!=v&&(c=b?0:i.length-1),c<0&&(c=i.length+c),c>=i.length){if(b)return -1;c=i.length-1}else if(c<0){if(!b)return -1;c=0}if("string"==typeof u&&(u=Buffer.from(u,f)),Buffer.isBuffer(u))return 0===u.length?-1:arrayIndexOf(i,u,c,f,b);if("number"==typeof u)return(u&=255,"function"==typeof Uint8Array.prototype.indexOf)?b?Uint8Array.prototype.indexOf.call(i,u,c):Uint8Array.prototype.lastIndexOf.call(i,u,c):arrayIndexOf(i,[u],c,f,b);throw TypeError("val must be string, number or Buffer")}function arrayIndexOf(i,u,c,f,b){var v,E=1,C=i.length,S=u.length;if(void 0!==f&&("ucs2"===(f=String(f).toLowerCase())||"ucs-2"===f||"utf16le"===f||"utf-16le"===f)){if(i.length<2||u.length<2)return -1;E=2,C/=2,S/=2,c/=2}function read(i,u){return 1===E?i[u]:i.readUInt16BE(u*E)}if(b){var x=-1;for(v=c;v<C;v++)if(read(i,v)===read(u,-1===x?0:v-x)){if(-1===x&&(x=v),v-x+1===S)return x*E}else -1!==x&&(v-=v-x),x=-1}else for(c+S>C&&(c=C-S),v=c;v>=0;v--){for(var R=!0,k=0;k<S;k++)if(read(i,v+k)!==read(u,k)){R=!1;break}if(R)return v}return -1}function utf8Slice(i,u,c){c=Math.min(i.length,c);for(var f=[],b=u;b<c;){var v,E,C,S,x=i[b],R=null,k=x>239?4:x>223?3:x>191?2:1;if(b+k<=c)switch(k){case 1:x<128&&(R=x);break;case 2:(192&(v=i[b+1]))==128&&(S=(31&x)<<6|63&v)>127&&(R=S);break;case 3:v=i[b+1],E=i[b+2],(192&v)==128&&(192&E)==128&&(S=(15&x)<<12|(63&v)<<6|63&E)>2047&&(S<55296||S>57343)&&(R=S);break;case 4:v=i[b+1],E=i[b+2],C=i[b+3],(192&v)==128&&(192&E)==128&&(192&C)==128&&(S=(15&x)<<18|(63&v)<<12|(63&E)<<6|63&C)>65535&&S<1114112&&(R=S)}null===R?(R=65533,k=1):R>65535&&(R-=65536,f.push(R>>>10&1023|55296),R=56320|1023&R),f.push(R),b+=k}return function(i){var u=i.length;if(u<=4096)return String.fromCharCode.apply(String,i);for(var c="",f=0;f<u;)c+=String.fromCharCode.apply(String,i.slice(f,f+=4096));return c}(f)}function checkOffset(i,u,c){if(i%1!=0||i<0)throw RangeError("offset is not uint");if(i+u>c)throw RangeError("Trying to access beyond buffer length")}function checkInt(i,u,c,f,b,v){if(!Buffer.isBuffer(i))throw TypeError('"buffer" argument must be a Buffer instance');if(u>b||u<v)throw RangeError('"value" argument is out of bounds');if(c+f>i.length)throw RangeError("Index out of range")}
vendor: 9,643 bytes, line 18
18function checkIEEE754(i,u,c,f,b,v){if(c+f>i.length||c<0)throw RangeError("Index out of range")}function writeFloat(i,u,c,f,v){return u=+u,c>>>=0,v||checkIEEE754(i,u,c,4,34028234663852886e22,-34028234663852886e22),b.write(i,u,c,f,23,4),c+4}function writeDouble(i,u,c,f,v){return u=+u,c>>>=0,v||checkIEEE754(i,u,c,8,17976931348623157e292,-17976931348623157e292),b.write(i,u,c,f,52,8),c+8}u.Buffer=Buffer,u.SlowBuffer=function(i){return+i!=i&&(i=0),Buffer.alloc(+i)},u.INSPECT_MAX_BYTES=50,u.kMaxLength=2147483647,Buffer.TYPED_ARRAY_SUPPORT=function(){try{var i=new Uint8Array(1),u={foo:function(){return 42}};return Object.setPrototypeOf(u,Uint8Array.prototype),Object.setPrototypeOf(i,u),42===i.foo()}catch(i){return!1}}(),Buffer.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(Buffer.prototype,"parent",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.buffer}}),Object.defineProperty(Buffer.prototype,"offset",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.byteOffset}}),Buffer.poolSize=8192,Buffer.from=function(i,u,c){return from(i,u,c)},Object.setPrototypeOf(Buffer.prototype,Uint8Array.prototype),Object.setPrototypeOf(Buffer,Uint8Array),Buffer.alloc=function(i,u,c){return(assertSize(i),i<=0)?createBuffer(i):void 0!==u?"string"==typeof c?createBuffer(i).fill(u,c):createBuffer(i).fill(u):createBuffer(i)},Buffer.allocUnsafe=function(i){return allocUnsafe(i)},Buffer.allocUnsafeSlow=function(i){return allocUnsafe(i)},Buffer.isBuffer=function(i){return null!=i&&!0===i._isBuffer&&i!==Buffer.prototype},Buffer.compare=function(i,u){if(isInstance(i,Uint8Array)&&(i=Buffer.from(i,i.offset,i.byteLength)),isInstance(u,Uint8Array)&&(u=Buffer.from(u,u.offset,u.byteLength)),!Buffer.isBuffer(i)||!Buffer.isBuffer(u))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(i===u)return 0;for(var c=i.length,f=u.length,b=0,v=Math.min(c,f);b<v;++b)if(i[b]!==u[b]){c=i[b],f=u[b];break}return c<f?-1:f<c?1:0},Buffer.isEncoding=function(i){switch(String(i).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Buffer.concat=function(i,u){if(!Array.isArray(i))throw TypeError('"list" argument must be an Array of Buffers');if(0===i.length)return Buffer.alloc(0);if(void 0===u)for(c=0,u=0;c<i.length;++c)u+=i[c].length;var c,f=Buffer.allocUnsafe(u),b=0;for(c=0;c<i.length;++c){var v=i[c];if(isInstance(v,Uint8Array)&&(v=Buffer.from(v)),!Buffer.isBuffer(v))throw TypeError('"list" argument must be an Array of Buffers');v.copy(f,b),b+=v.length}return f},Buffer.byteLength=byteLength,Buffer.prototype._isBuffer=!0,Buffer.prototype.swap16=function(){var i=this.length;if(i%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var u=0;u<i;u+=2)swap(this,u,u+1);return this},Buffer.prototype.swap32=function(){var i=this.length;if(i%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var u=0;u<i;u+=4)swap(this,u,u+3),swap(this,u+1,u+2);return this},Buffer.prototype.swap64=function(){var i=this.length;if(i%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var u=0;u<i;u+=8)swap(this,u,u+7),swap(this,u+1,u+6),swap(this,u+2,u+5),swap(this,u+3,u+4);return this},Buffer.prototype.toString=function(){var i=this.length;return 0===i?"":0==arguments.length?utf8Slice(this,0,i):slowToString.apply(this,arguments)},Buffer.prototype.toLocaleString=Buffer.prototype.toString,Buffer.prototype.equals=function(i){if(!Buffer.isBuffer(i))throw TypeError("Argument must be a Buffer");return this===i||0===Buffer.compare(this,i)},Buffer.prototype.inspect=function(){var i="",c=u.INSPECT_MAX_BYTES;return i=this.toString("hex",0,c).replace(/(.{2})/g,"$1 ").trim(),this.length>c&&(i+=" ... "),"<Buffer "+i+">"},v&&(Buffer.prototype[v]=Buffer.prototype.inspect),Buffer.prototype.compare=function(i,u,c,f,b){if(isInstance(i,Uint8Array)&&(i=Buffer.from(i,i.offset,i.byteLength)),!Buffer.isBuffer(i))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof i);if(void 0===u&&(u=0),void 0===c&&(c=i?i.length:0),void 0===f&&(f=0),void 0===b&&(b=this.length),u<0||c>i.length||f<0||b>this.length)throw RangeError("out of range index");if(f>=b&&u>=c)return 0;if(f>=b)return -1;if(u>=c)return 1;if(u>>>=0,c>>>=0,f>>>=0,b>>>=0,this===i)return 0;for(var v=b-f,E=c-u,C=Math.min(v,E),S=this.slice(f,b),x=i.slice(u,c),R=0;R<C;++R)if(S[R]!==x[R]){v=S[R],E=x[R];break}return v<E?-1:E<v?1:0},Buffer.prototype.includes=function(i,u,c){return -1!==this.indexOf(i,u,c)},Buffer.prototype.indexOf=function(i,u,c){return bidirectionalIndexOf(this,i,u,c,!0)},Buffer.prototype.lastIndexOf=function(i,u,c){return bidirectionalIndexOf(this,i,u,c,!1)},Buffer.prototype.write=function(i,u,c,f){if(void 0===u)f="utf8",c=this.length,u=0;else if(void 0===c&&"string"==typeof u)f=u,c=this.length,u=0;else if(isFinite(u))u>>>=0,isFinite(c)?(c>>>=0,void 0===f&&(f="utf8")):(f=c,c=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var b,v,E,C,S,x,R,k,j,F,B,M,q=this.length-u;if((void 0===c||c>q)&&(c=q),i.length>0&&(c<0||u<0)||u>this.length)throw RangeError("Attempt to write outside buffer bounds");f||(f="utf8");for(var L=!1;;)switch(f){case"hex":return function(i,u,c,f){c=Number(c)||0;var b=i.length-c;f?(f=Number(f))>b&&(f=b):f=b;var v=u.length;f>v/2&&(f=v/2);for(var E=0;E<f;++E){var C=parseInt(u.substr(2*E,2),16);if(C!=C)break;i[c+E]=C}return E}(this,i,u,c);case"utf8":case"utf-8":return S=u,x=c,blitBuffer(utf8ToBytes(i,this.length-S),this,S,x);case"ascii":return R=u,k=c,blitBuffer(asciiToBytes(i),this,R,k);case"latin1":case"binary":return b=this,v=i,E=u,C=c,blitBuffer(asciiToBytes(v),b,E,C);case"base64":return j=u,F=c,blitBuffer(base64ToBytes(i),this,j,F);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B=u,M=c,blitBuffer(function(i,u){for(var c,f,b=[],v=0;v<i.length&&!((u-=2)<0);++v)f=(c=i.charCodeAt(v))>>8,b.push(c%256),b.push(f);return b}(i,this.length-B),this,B,M);default:if(L)throw TypeError("Unknown encoding: "+f);f=(""+f).toLowerCase(),L=!0}},Buffer.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},Buffer.prototype.slice=function(i,u){var c=this.length;i=~~i,u=void 0===u?c:~~u,i<0?(i+=c)<0&&(i=0):i>c&&(i=c),u<0?(u+=c)<0&&(u=0):u>c&&(u=c),u<i&&(u=i);var f=this.subarray(i,u);return Object.setPrototypeOf(f,Buffer.prototype),f},Buffer.prototype.readUIntLE=function(i,u,c){i>>>=0,u>>>=0,c||checkOffset(i,u,this.length);for(var f=this[i],b=1,v=0;++v<u&&(b*=256);)f+=this[i+v]*b;return f},Buffer.prototype.readUIntBE=function(i,u,c){i>>>=0,u>>>=0,c||checkOffset(i,u,this.length);for(var f=this[i+--u],b=1;u>0&&(b*=256);)f+=this[i+--u]*b;return f},Buffer.prototype.readUInt8=function(i,u){return i>>>=0,u||checkOffset(i,1,this.length),this[i]},Buffer.prototype.readUInt16LE=function(i,u){return i>>>=0,u||checkOffset(i,2,this.length),this[i]|this[i+1]<<8},Buffer.prototype.readUInt16BE=function(i,u){return i>>>=0,u||checkOffset(i,2,this.length),this[i]<<8|this[i+1]},Buffer.prototype.readUInt32LE=function(i,u){return i>>>=0,u||checkOffset(i,4,this.length),(this[i]|this[i+1]<<8|this[i+2]<<16)+16777216*this[i+3]},Buffer.prototype.readUInt32BE=function(i,u){return i>>>=0,u||checkOffset(i,4,this.length),16777216*this[i]+(this[i+1]<<16|this[i+2]<<8|this[i+3])},Buffer.prototype.readIntLE=function(i,u,c){i>>>=0,u>>>=0,c||checkOffset(i,u,this.length);for(var f=this[i],b=1,v=0;++v<u&&(b*=256);)f+=this[i+v]*b;return f>=(b*=128)&&(f-=Math.pow(2,8*u)),f},Buffer.prototype.readIntBE=function(i,u,c){i>>>=0,u>>>=0,c||checkOffset(i,u,this.length);for(var f=u,b=1,v=this[i+--f];f>0&&(b*=256);)v+=this[i+--f]*b;return v>=(b*=128)&&(v-=Math.pow(2,8*u)),v},Buffer.prototype.readInt8=function(i,u){return(i>>>=0,u||checkOffset(i,1,this.length),128&this[i])?-((255-this[i]+1)*1):this[i]},Buffer.prototype.readInt16LE=function(i,u){i>>>=0,u||checkOffset(i,2,this.length);var c=this[i]|this[i+1]<<8;return 32768&c?4294901760|c:c},Buffer.prototype.readInt16BE=function(i,u){i>>>=0,u||checkOffset(i,2,this.length);var c=this[i+1]|this[i]<<8;return 32768&c?4294901760|c:c},Buffer.prototype.readInt32LE=function(i,u){return i>>>=0,u||checkOffset(i,4,this.length),this[i]|this[i+1]<<8|this[i+2]<<16|this[i+3]<<24},Buffer.prototype.readInt32BE=function(i,u){return i>>>=0,u||checkOffset(i,4,this.length),this[i]<<24|this[i+1]<<16|this[i+2]<<8|this[i+3]},Buffer.prototype.readFloatLE=function(i,u){return i>>>=0,u||checkOffset(i,4,this.length),b.read(this,i,!0,23,4)},Buffer.prototype.readFloatBE=function(i,u){return i>>>=0,u||checkOffset(i,4,this.length),b.read(this,i,!1,23,4)},Buffer.prototype.readDoubleLE=function(i,u){return i>>>=0,u||checkOffset(i,8,this.length),b.read(this,i,!0,52,8)},Buffer.prototype.readDoubleBE=function(i,u){return i>>>=0,u||checkOffset(i,8,this.length),b.read(this,i,!1,52,8)},Buffer.prototype.writeUIntLE=function(i,u,c,f){if(i=+i,u>>>=0,c>>>=0,!f){var b=Math.pow(2,8*c)-1;checkInt(this,i,u,c,b,0)}var v=1,E=0;for(this[u]=255&i;++E<c&&(v*=256);)this[u+E]=i/v&255;return u+c},Buffer.prototype.writeUIntBE=function(i,u,c,f){if(i=+i,u>>>=0,c>>>=0,!f){var b=Math.pow(2,8*c)-1;checkInt(this,i,u,c,b,0)}var v=c-1,E=1;for(this[u+v]=255&i;--v>=0&&(E*=256);)this[u+v]=i/E&255;return u+c},Buffer.prototype.writeUInt8=function(i,u,c){return i=+i,u>>
18>=0,c||checkInt(this,i,u,1,255,0),this[u]=255&i,u+1},Buffer.prototype.writeUInt16LE=function(i,u,c){return i=+i,u>>>=0,c||checkInt(this,i,u,2,65535,0),this[u]=255&i,this[u+1]=i>>>8,u+2},Buffer.prototype.writeUInt16BE=function(i,u,c){return i=+i,u>>>=0,c||checkInt(this,i,u,2,65535,0),this[u]=i>>>8,this[u+1]=255&i,u+2},Buffer.prototype.writeUInt32LE=function(i,u,c){return i=+i,u>>>=0,c||checkInt(this,i,u,4,4294967295,0),this[u+3]=i>>>24,this[u+2]=i>>>16,this[u+1]=i>>>8,this[u]=255&i,u+4},Buffer.prototype.writeUInt32BE=function(i,u,c){return i=+i,u>>>=0,c||checkInt(this,i,u,4,4294967295,0),this[u]=i>>>24,this[u+1]=i>>>16,this[u+2]=i>>>8,this[u+3]=255&i,u+4},Buffer.prototype.writeIntLE=function(i,u,c,f){if(i=+i,u>>>=0,!f){var b=Math.pow(2,8*c-1);checkInt(this,i,u,c,b-1,-b)}var v=0,E=1,C=0;for(this[u]=255&i;++v<c&&(E*=256);)i<0&&0===C&&0!==this[u+v-1]&&(C=1),this[u+v]=(i/E>>0)-C&255;return u+c},Buffer.prototype.writeIntBE=function(i,u,c,f){if(i=+i,u>>>=0,!f){var b=Math.pow(2,8*c-1);checkInt(this,i,u,c,b-1,-b)}var v=c-1,E=1,C=0;for(this[u+v]=255&i;--v>=0&&(E*=256);)i<0&&0===C&&0!==this[u+v+1]&&(C=1),this[u+v]=(i/E>>0)-C&255;return u+c},Buffer.prototype.writeInt8=function(i,u,c){return i=+i,u>>>=0,c||checkInt(this,i,u,1,127,-128),i<0&&(i=255+i+1),this[u]=255&i,u+1},Buffer.prototype.writeInt16LE=function(i,u,c){return i=+i,u>>>=0,c||checkInt(this,i,u,2,32767,-32768),this[u]=255&i,this[u+1]=i>>>8,u+2},Buffer.prototype.writeInt16BE=function(i,u,c){return i=+i,u>>>=0,c||checkInt(this,i,u,2,32767,-32768),this[u]=i>>>8,this[u+1]=255&i,u+2},Buffer.prototype.writeInt32LE=function(i,u,c){return i=+i,u>>>=0,c||checkInt(this,i,u,4,2147483647,-2147483648),this[u]=255&i,this[u+1]=i>>>8,this[u+2]=i>>>16,this[u+3]=i>>>24,u+4},Buffer.prototype.writeInt32BE=function(i,u,c){return i=+i,u>>>=0,c||checkInt(this,i,u,4,2147483647,-2147483648),i<0&&(i=4294967295+i+1),this[u]=i>>>24,this[u+1]=i>>>16,this[u+2]=i>>>8,this[u+3]=255&i,u+4},Buffer.prototype.writeFloatLE=function(i,u,c){return writeFloat(this,i,u,!0,c)},Buffer.prototype.writeFloatBE=function(i,u,c){return writeFloat(this,i,u,!1,c)},Buffer.prototype.writeDoubleLE=function(i,u,c){return writeDouble(this,i,u,!0,c)},Buffer.prototype.writeDoubleBE=function(i,u,c){return writeDouble(this,i,u,!1,c)},Buffer.prototype.copy=function(i,u,c,f){if(!Buffer.isBuffer(i))throw TypeError("argument should be a Buffer");if(c||(c=0),f||0===f||(f=this.length),u>=i.length&&(u=i.length),u||(u=0),f>0&&f<c&&(f=c),f===c||0===i.length||0===this.length)return 0;if(u<0)throw RangeError("targetStart out of bounds");if(c<0||c>=this.length)throw RangeError("Index out of range");if(f<0)throw RangeError("sourceEnd out of bounds");f>this.length&&(f=this.length),i.length-u<f-c&&(f=i.length-u+c);var b=f-c;if(this===i&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(u,c,f);else if(this===i&&c<u&&u<f)for(var v=b-1;v>=0;--v)i[v+u]=this[v+c];else Uint8Array.prototype.set.call(i,this.subarray(c,f),u);return b},Buffer.prototype.fill=function(i,u,c,f){if("string"==typeof i){if("string"==typeof u?(f=u,u=0,c=this.length):"string"==typeof c&&(f=c,c=this.length),void 0!==f&&"string"!=typeof f)throw TypeError("encoding must be a string");if("string"==typeof f&&!Buffer.isEncoding(f))throw TypeError("Unknown encoding: "+f);if(1===i.length){var b,v=i.charCodeAt(0);("utf8"===f&&v<128||"latin1"===f)&&(i=v)}}else"number"==typeof i?i&=255:"boolean"==typeof i&&(i=Number(i));if(u<0||this.length<u||this.length<c)throw RangeError("Out of range index");if(c<=u)return this;if(u>>>=0,c=void 0===c?this.length:c>>>0,i||(i=0),"number"==typeof i)for(b=u;b<c;++b)this[b]=i;else{var E=Buffer.isBuffer(i)?i:Buffer.from(i,f),C=E.length;if(0===C)throw TypeError('The value "'+i+'" is invalid for argument "value"');for(b=0;b<c-u;++b)this[b+u]=E[b%C]}return this};var E=/[^+/0-9A-Za-z-_]/g;function utf8ToBytes(i,u){u=u||1/0;for(var c,f=i.length,b=null,v=[],E=0;E<f;++E){if((c=i.charCodeAt(E))>55295&&c<57344){if(!b){if(c>56319||E+1===f){(u-=3)>-1&&v.push(239,191,189);continue}b=c;continue}if(c<56320){(u-=3)>-1&&v.push(239,191,189),b=c;continue}c=(b-55296<<10|c-56320)+65536}else b&&(u-=3)>-1&&v.push(239,191,189);if(b=null,c<128){if((u-=1)<0)break;v.push(c)}else if(c<2048){if((u-=2)<0)break;v.push(c>>6|192,63&c|128)}
18else if(c<65536){if((u-=3)<0)break;v.push(c>>12|224,c>>6&63|128,63&c|128)}else if(c<1114112){if((u-=4)<0)break;v.push(c>>18|240,c>>12&63|128,c>>6&63|128,63&c|128)}else throw Error("Invalid code point")}return v}function asciiToBytes(i){for(var u=[],c=0;c<i.length;++c)u.push(255&i.charCodeAt(c));return u}function base64ToBytes(i){return f.toByteArray(function(i){if((i=(i=i.split("=")[0]).trim().replace(E,"")).length<2)return"";for(;i.length%4!=0;)i+="=";return i}(i))}function blitBuffer(i,u,c,f){for(var b=0;b<f&&!(b+c>=u.length)&&!(b>=i.length);++b)u[b+c]=i[b];return b}function isInstance(i,u){return i instanceof u||null!=i&&null!=i.constructor&&null!=i.constructor.name&&i.constructor.name===u.name}var C=function(){for(var i="0123456789abcdef",u=Array(256),c=0;c<16;++c)for(var f=16*c,b=0;b<16;++b)u[f+b]=i[c]+i[b];return u}()},783:function(i,u){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */u.read=function(i,u,c,f,b){var v,E,C=8*b-f-1,S=(1<<C)-1,x=S>>1,R=-7,k=c?b-1:0,j=c?-1:1,F=i[u+k];for(k+=j,v=F&(1<<-R)-1,F>>=-R,R+=C;R>0;v=256*v+i[u+k],k+=j,R-=8);for(E=v&(1<<-R)-1,v>>=-R,R+=f;R>0;E=256*E+i[u+k],k+=j,R-=8);if(0===v)v=1-x;else{if(v===S)return E?NaN:(F?-1:1)*(1/0);E+=Math.pow(2,f),v-=x}return(F?-1:1)*E*Math.pow(2,v-f)},u.write=function(i,u,c,f,b,v){var E,C,S,x=8*v-b-1,R=(1<<x)-1,k=R>>1,j=23===b?5960464477539062e-23:0,F=f?0:v-1,B=f?1:-1,M=u<0||0===u&&1/u<0?1:0;for(isNaN(u=Math.abs(u))||u===1/0?(C=isNaN(u)?1:0,E=R):(E=Math.floor(Math.log(u)/Math.LN2),u*(S=Math.pow(2,-E))<1&&(E--,S*=2),E+k>=1?u+=j/S:u+=j*Math.pow(2,1-k),u*S>=2&&(E++,S/=2),E+k>=R?(C=0,E=R):E+k>=1?(C=(u*S-1)*Math.pow(2,b),E+=k):(C=u*Math.pow(2,k-1)*Math.pow(2,b),E=0));b>=8;i[c+F]=255&C,F+=B,C/=256,b-=8);for(E=E<<b|C,x+=b;x>0;i[c+F]=255&E,F+=B,E/=256,x-=8);i[c+F-B]|=128*M}}},c={};function __nccwpck_require__(i){var f=c[i];if(void 0!==f)return f.exports;var b=c[i]={exports:{}},v=!0;try{u[i](b,b.exports,__nccwpck_require__),v=!1}finally{v&&delete c[i]}return b.exports}__nccwpck_require__.ab="//";var f=__nccwpck_require__(72);i.exports=f}()},7663:function(i){!function(){var u={229:function(i){var u,c,f,b=i.exports={};function defaultSetTimout(){throw Error("setTimeout has not been defined")}function defaultClearTimeout(){throw Error("clearTimeout has not been defined")}function runTimeout(i){if(u===setTimeout)return setTimeout(i,0);if((u===defaultSetTimout||!u)&&setTimeout)return u=setTimeout,setTimeout(i,0);try{return u(i,0)}catch(c){try{return u.call(null,i,0)}catch(c){return u.call(this,i,0)}}}!function(){try{u="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(i){u=defaultSetTimout}try{c="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(i){c=defaultClearTimeout}}();var v=[],E=!1,C=-1;function cleanUpNextTick(){E&&f&&(E=!1,f.length?v=f.concat(v):C=-1,v.length&&drainQueue())}function drainQueue(){if(!E){var i=runTimeout(cleanUpNextTick);E=!0;for(var u=v.length;u;){for(f=v,v=[];++C<u;)f&&f[C].run();C=-1,u=v.length}f=null,E=!1,function(i){if(c===clearTimeout)return clearTimeout(i);if((c===defaultClearTimeout||!c)&&clearTimeout)return c=clearTimeout,clearTimeout(i);try{c(i)}catch(u){try{return c.call(null,i)}catch(u){return c.call(this,i)}}}(i)}}function Item(i,u){this.fun=i,this.array=u}function noop(){}b.nextTick=function(i){var u=Array(arguments.length-1);if(arguments.length>1)for(var c=1;c<arguments.length;c++)u[c-1]=arguments[c];v.push(new Item(i,u)),1!==v.length||E||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},b.title="browser",b.browser=!0,b.env={},b.argv=[],b.version="",b.versions={},b.on=noop,b.addListener=noop,b.once=noop,b.off=noop,b.removeListener=noop,b.removeAllListeners=noop,b.emit=noop,b.prependListener=noop,b.prependOnceListener=noop,b.listeners=function(i){return[]},b.binding=function(i){throw Error("process.binding is not supported")},b.cwd=function(){return"/"},b.chdir=function(i){throw Error("process.chdir is not supported")},b.umask=function(){return 0}}},c={};function __nccwpck_require__(i){var f=c[i];if(void 0!==f)return f.exports;
18var b=c[i]={exports:{}},v=!0;try{u[i](b,b.exports,__nccwpck_require__),v=!1}finally{v&&delete c[i]}return b.exports}__nccwpck_require__.ab="//";var f=__nccwpck_require__(229);i.exports=f}()},1664:function(i,u,c){i.exports=c(5170)},1163:function(i,u,c){i.exports=c(9974)},4298:function(i,u,c){i.exports=c(5354)},259:function(i,u,c){"use strict";c.d(u,{pm:function(){return h},xX:function(){return g}});var f,b=c(7294),v=c(3454),s=function(){return(s=Object.assign||function(i){for(var u,c=1,f=arguments.length;c<f;c++)for(var b in u=arguments[c])Object.prototype.hasOwnProperty.call(u,b)&&(i[b]=u[b]);return i}).apply(this,arguments)},p=function(i){var u;i?function(i){if(i)for(;i.lastChild;)i.lastChild.remove()}("string"==typeof i?document.getElementById(i):i):(u=document.querySelector(".grecaptcha-badge"))&&u.parentNode&&document.body.removeChild(u.parentNode)},d=function(i,u){p(u),window.___grecaptcha_cfg=void 0;var c,f=document.querySelector("#"+i);f&&f.remove(),(c=document.querySelector('script[src^="https://www.gstatic.com/recaptcha/releases"]'))&&c.remove()},y=function(i){var u=i.render,c=i.onLoadCallbackName,f=i.language,b=i.onLoad,v=i.useRecaptchaNet,E=i.useEnterprise,C=i.scriptProps,S=void 0===C?{}:C,x=S.nonce,R=void 0===x?"":x,k=S.defer,j=S.async,F=S.id,B=S.appendTo,M=(void 0===F?"":F)||"google-recaptcha-v3";if(document.querySelector("#"+M))b();else{var q,L="https://www."+((q={useEnterprise:E,useRecaptchaNet:v}).useRecaptchaNet?"recaptcha.net":"google.com")+"/recaptcha/"+(q.useEnterprise?"enterprise.js":"api.js"),U=document.createElement("script");U.id=M,U.src=L+"?render="+u+("explicit"===u?"&onload="+c:"")+(f?"&hl="+f:""),R&&(U.nonce=R),U.defer=!!(void 0!==k&&k),U.async=!!(void 0!==j&&j),U.onload=b,("body"===B?document.body:document.getElementsByTagName("head")[0]).appendChild(U)}},m=function(i){void 0===v||v.env,console.warn(i)};(f||(f={})).SCRIPT_NOT_AVAILABLE="Recaptcha script is not available";var E=(0,b.createContext)({executeRecaptcha:function(){throw Error("GoogleReCaptcha Context has not yet been implemented, if you are using useGoogleReCaptcha hook, make sure the hook is called inside component wrapped by GoogleRecaptchaProvider")}});function h(i){var u=i.reCaptchaKey,c=i.useEnterprise,v=void 0!==c&&c,C=i.useRecaptchaNet,S=void 0!==C&&C,x=i.scriptProps,R=i.language,k=i.container,j=i.children,F=(0,b.useState)(null),B=F[0],M=F[1],q=(0,b.useRef)(u),L=JSON.stringify(x),U=JSON.stringify(null==k?void 0:k.parameters);(0,b.useEffect)(function(){if(u){var i=(null==x?void 0:x.id)||"google-recaptcha-v3",c=(null==x?void 0:x.onLoadCallbackName)||"onRecaptchaLoadCallback";return window[c]=function(){var i=v?window.grecaptcha.enterprise:window.grecaptcha,c=s({badge:"inline",size:"invisible",sitekey:u},(null==k?void 0:k.parameters)||{});q.current=i.render(null==k?void 0:k.element,c)},y({render:(null==k?void 0:k.element)?"explicit":u,onLoadCallbackName:c,useEnterprise:v,useRecaptchaNet:S,scriptProps:x,language:R,onLoad:function(){if(window&&window.grecaptcha){var i=v?window.grecaptcha.enterprise:window.grecaptcha;i.ready(function(){M(i)})}else m("<GoogleRecaptchaProvider /> "+f.SCRIPT_NOT_AVAILABLE)},onError:function(){m("Error loading google recaptcha script")}}),function(){d(i,null==k?void 0:k.element)}}m("<GoogleReCaptchaProvider /> recaptcha key not provided")},[v,S,L,U,R,u,null==k?void 0:k.element]);var V=(0,b.useCallback)(function(i){if(!B||!B.execute)throw Error("<GoogleReCaptchaProvider /> Google Recaptcha has not been loaded");return B.execute(q.current,{action:i})},[B,q]),H=(0,b.useMemo)(function(){return{executeRecaptcha:B?V:void 0,container:null==k?void 0:k.element}},[V,B,null==k?void 0:k.element]);return b.createElement(E.Provider,{value:H},j)}E.Consumer;var g=function(){return(0,b.useContext)(E)};function w(i,u){return i(u={exports:{}},u.exports),u.exports;/** @license React v16.13.1 19 * react-is.production.min.js 20 * 21 * Copyright (c) Facebook, Inc. and its affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */}var C="function"==typeof Symbol&&Symbol.for,S=C?Symbol.for("react.element"):60103,x=C?Symbol.for("react.portal"):60106,R=C?Symbol.for("react.fragment"):60107,k=C?Symbol.for("react.strict_mode"):60108,j=C?Symbol.for("react.profiler"):60114,F=C?Symbol.for("react.provider"):60109,B=C?Symbol.for("react.context"):60110,M=C?Symbol.for("react.async_mode"):60111,q=C?Symbol.for("react.concurrent_mode"):60111,L=C?Symbol.for("react.forward_ref"):60112,U=C?Symbol.for("react.suspense"):60113,V=C?Symbol.for("react.suspense_list"):60120,H=C?Symbol.for("react.memo"):60115,Z=C?Symbol.for("react.lazy"):60116,W=C?Symbol.for("react.block"):60121,G=C?Symbol.for("react.fundamental"):60117,Y=C?Symbol.for("react.responder"):60118,X=C?Symbol.for("react.scope"):60119;function I(i){if("object"==typeof i&&null!==i){var u=i.$$typeof;switch(u){case S:switch(i=i.type){case M:case q:case R:case j:case k:case U:return i;default:switch(i=i&&i.$$typeof){case B:case L:case Z:case H:case F:return i;default:return u}}case x:return u}}}function D(i){return I(i)===q}var Q={AsyncMode:M,ConcurrentMode:q,ContextConsumer:B,ContextProvider:F,Element:S,ForwardRef:L,Fragment:R,Lazy:Z,Memo:H,Portal:x,Profiler:j,Str
25ictMode:k,Suspense:U,isAsyncMode:function(i){return D(i)||I(i)===M},isConcurrentMode:D,isContextConsumer:function(i){return I(i)===B},isContextProvider:function(i){return I(i)===F},isElement:function(i){return"object"==typeof i&&null!==i&&i.$$typeof===S},isForwardRef:function(i){return I(i)===L},isFragment:function(i){return I(i)===R},isLazy:function(i){return I(i)===Z},isMemo:function(i){return I(i)===H},isPortal:function(i){return I(i)===x},isProfiler:function(i){return I(i)===j},isStrictMode:function(i){return I(i)===k},isSuspense:function(i){return I(i)===U},isValidElementType:function(i){return"string"==typeof i||"function"==typeof i||i===R||i===q||i===j||i===k||i===U||i===V||"object"==typeof i&&null!==i&&(i.$$typeof===Z||i.$$typeof===H||i.$$typeof===F||i.$$typeof===B||i.$$typeof===L||i.$$typeof===G||i.$$typeof===Y||i.$$typeof===X||i.$$typeof===W)},typeOf:I},K=w(function(i,u){}),J=(K.AsyncMode,K.ConcurrentMode,K.ContextConsumer,K.ContextProvider,K.Element,K.ForwardRef,K.Fragment,K.Lazy,K.Memo,K.Portal,K.Profiler,K.StrictMode,K.Suspense,K.isAsyncMode,K.isConcurrentMode,K.isContextConsumer,K.isContextProvider,K.isElement,K.isForwardRef,K.isFragment,K.isLazy,K.isMemo,K.isPortal,K.isProfiler,K.isStrictMode,K.isSuspense,K.isValidElementType,K.typeOf,w(function(i){i.exports=Q})),ee={};ee[J.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ee[J.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0}},9921:function(i,u){"use strict";/** @license React v16.13.1 26 * react-is.production.min.js 27 * 28 * Copyright (c) Facebook, Inc. and its affiliates. 29 * 30 * This source code is licensed under the MIT license found in the 31 * LICENSE file in the root directory of this source tree. 32 */var c="function"==typeof Symbol&&Symbol.for,f=c?Symbol.for("react.element"):60103,b=c?Symbol.for("react.portal"):60106,v=c?Symbol.for("react.fragment"):60107,E=c?Symbol.for("react.strict_mode"):60108,C=c?Symbol.for("react.profiler"):60114,S=c?Symbol.for("react.provider"):60109,x=c?Symbol.for("react.context"):60110,R=c?Symbol.for("react.async_mode"):60111,k=c?Symbol.for("react.concurrent_mode"):60111,j=c?Symbol.for("react.forward_ref"):60112,F=c?Symbol.for("react.suspense"):60113,B=c?Symbol.for("react.suspense_list"):60120,M=c?Symbol.for("react.memo"):60115,q=c?Symbol.for("react.lazy"):60116,L=c?Symbol.for("react.block"):60121,U=c?Symbol.for("react.fundamental"):60117,V=c?Symbol.for("react.responder"):60118,H=c?Symbol.for("react.scope"):60119;function z(i){if("object"==typeof i&&null!==i){var u=i.$$typeof;switch(u){case f:switch(i=i.type){case R:case k:case v:case C:case E:case F:return i;default:switch(i=i&&i.$$typeof){case x:case j:case q:case M:case S:return i;default:return u}}case b:return u}}}function A(i){return z(i)===k}u.AsyncMode=R,u.ConcurrentMode=k,u.ContextConsumer=x,u.ContextProvider=S,u.Element=f,u.ForwardRef=j,u.Fragment=v,u.Lazy=q,u.Memo=M,u.Portal=b,u.Profiler=C,u.StrictMode=E,u.Suspense=F,u.isAsyncMode=function(i){return A(i)||z(i)===R},u.isConcurrentMode=A,u.isContextConsumer=function(i){return z(i)===x},u.isContextProvider=function(i){return z(i)===S},u.isElement=function(i){return"object"==typeof i&&null!==i&&i.$$typeof===f},u.isForwardRef=function(i){return z(i)===j},u.isFragment=function(i){return z(i)===v},u.isLazy=function(i){return z(i)===q},u.isMemo=function(i){return z(i)===M},u.isPortal=function(i){return z(i)===b},u.isProfiler=function(i){return z(i)===C},u.isStrictMode=function(i){return z(i)===E},u.isSuspense=function(i){return z(i)===F},u.isValidElementType=function(i){return"string"==typeof i||"function"==typeof i||i===v||i===k||i===C||i===E||i===F||i===B||"object"==typeof i&&null!==i&&(i.$$typeof===q||i.$$typeof===M||i.$$typeof===S||i.$$typeof===x||i.$$typeof===j||i.$$typeof===U||i.$$typeof===V||i.$$typeof===H||i.$$typeof===L)},u.typeOf=z},9864:function(i,u,c){"use strict";i.exports=c(9921)},230:function(i,u,c){"use strict";c.d(u,{y:function(){return R}});var f=c(5044),b=c(4222),v=c(6766),E=c(2749),C=c(3912),S=c(8474),x=c(8846),R=function(){function Observable(i){i&&(this._subscribe=i)}return Observable.prototype.lift=function(i){var u=new Observable;return u.source=this,u.operator=i,u},Observable.prototype.subscribe=function(i,u,c){var v,E=this,C=(v=i)&&v instanceof f.Lv||v&&(0,S.m)(v.next)&&(0,S.m)(v.error)&&(0,S.m)(v.complete)&&(0,b.Nn)(v)?i:new f.Hp(i,u,c);return(0,x.x)(function(){var i=E.operator,u=E.source;C.add(i?i.call(C,u):u?E._subscribe(C):E._trySubscribe(C))}),C},Observable.prototype._trySubscribe=function(i){try{return this._subscribe(i)}catch(u){i.error(u)}},Observable.prototype.forEach=function(i,u){var c=this;return new(u=getPromiseCtor(u))(function(u,b){var v=new f.Hp({next:function(u){try{i(u)}catch(i){b(i),v.unsubscribe()}},error:b,complete:u});c.subscribe(v)})},Observable.prototype._subscribe=function(i){var u;return null===(u=this.source)||void 0===u?void 0:u.subscribe(i)},Observable.prototype[v.L]=function(){return this},Observable.prototype.pipe=function(){for(var i=[],u=0;u<arguments.length;u++)i[u]=arguments[u];return(0,E.U)(i)(this)},Observable.prototype.toPromise=function(i){var u=this;return new(i=getPromiseCtor(i))(function(i,c){var f;u.subscribe(function(i){return f=i},function(i){return c(i)},function(){return i(f)})})},Observable.create=function(i){return new Observable(i)},Observable}();function getPromiseCtor(i){var u;return null!==(u=null!=i?i:C.v.Promise)&&void 0!==u?u:Promise}},5044:function(i,u,c){"use strict";c.d(u,{Hp:function(){return M},Lv:function(){return j}});var f=c(7582),b=c(8474),v=c(4222),E=c(3912),C=c(5),S=c(2967),x=createNotification("C",void 0,void 0);function createNotification(i,u,c){return{kind:i,value:u,error:c}}var R=c(8380),k=c(8846),j=function(i){function Subscriber(u){var c=i.call(this)||this;return c.isStopped=!1,u?(c.destination=u,(0,v.Nn)(u)&&u.add(c)):c.destination=q,c}return(0,f.ZT)(Subscriber,i),Subscriber.create=function(i,u,c){return new M(i,u,c)},Subscriber.prototype.next=function(i){this.isStopped?handleStoppedNotification(createNotification("N",i,void 0),this):this._next(i)},Subscriber.prototype.error=function(i){this.isStopped?handleStoppedNotification(createNotification("E",void 0,i),this):(this.isStopped=!0,this._error(i))},Subscriber.prototype.complete=function(){this.isStopped?handleStoppedNotification(x,this):(this.isStopped=!0,this._complete())},Subscriber.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,i.prototype.unsubscribe.call(this),this.destination=null)},Subscriber.prototype._next=function(i){this.destination.next(i)},Subscriber.prototype._error=function(i){try{this.destination.error(i)}finally{this.unsubscribe()}},Subscriber.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},Subscriber}(v.w0),F=Function.prototype.bind;function bind(i,u){return F.call(i,u)}var B=function(){function ConsumerObserver(i){this.partialObserver=i}return ConsumerObserver.prototype.next=function(i){var u=this.partialObserver;if(u.next)try{u.next(i)}catch(i){handleUnhandledError(i)}},ConsumerObserver.prototype.error=function(i){var u=this.partialObserver;if(u.error)try{u.error(i)}catch(i){handleUnhandledError(i)}else handleUnhandledError(i)},ConsumerObserver.prototype.complete=function(){var i=this.partialObserver;if(i.complete)try{i.complete()}catch(i){handleUnhandledError(i)}},ConsumerObserver}(),M=function(i){function SafeSubscriber(u,c,f){var v,C,S=i.call(this)||this;return(0,b.m)(u)||!u?v={next:null!=u?u:void 0,error:null!=c?c:void 0,complete:null!=f?f:void 0}
32:S&&E.v.useDeprecatedNextContext?((C=Object.create(u)).unsubscribe=function(){return S.unsubscribe()},v={next:u.next&&bind(u.next,C),error:u.error&&bind(u.error,C),complete:u.complete&&bind(u.complete,C)}):v=u,S.destination=new B(v),S}return(0,f.ZT)(SafeSubscriber,i),SafeSubscriber}(j);function handleUnhandledError(i){E.v.useDeprecatedSynchronousErrorHandling?(0,k.O)(i):(0,C.h)(i)}function handleStoppedNotification(i,u){var c=E.v.onStoppedNotification;c&&R.z.setTimeout(function(){return c(i,u)})}var q={closed:!0,next:S.Z,error:function(i){throw i},complete:S.Z}},4222:function(i,u,c){"use strict";c.d(u,{Lc:function(){return S},w0:function(){return C},Nn:function(){return isSubscription}});var f=c(7582),b=c(8474),v=(0,c(1819).d)(function(i){return function(u){i(this),this.message=u?u.length+" errors occurred during unsubscription:\n"+u.map(function(i,u){return u+1+") "+i.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=u}}),E=c(3699),C=function(){var i;function Subscription(i){this.initialTeardown=i,this.closed=!1,this._parentage=null,this._finalizers=null}return Subscription.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var i,u,c,E,C,S=this._parentage;if(S){if(this._parentage=null,Array.isArray(S))try{for(var x=(0,f.XA)(S),R=x.next();!R.done;R=x.next())R.value.remove(this)}catch(u){i={error:u}}finally{try{R&&!R.done&&(u=x.return)&&u.call(x)}finally{if(i)throw i.error}}else S.remove(this)}var k=this.initialTeardown;if((0,b.m)(k))try{k()}catch(i){C=i instanceof v?i.errors:[i]}var j=this._finalizers;if(j){this._finalizers=null;try{for(var F=(0,f.XA)(j),B=F.next();!B.done;B=F.next()){var M=B.value;try{execFinalizer(M)}catch(i){C=null!=C?C:[],i instanceof v?C=(0,f.ev)((0,f.ev)([],(0,f.CR)(C)),(0,f.CR)(i.errors)):C.push(i)}}}catch(i){c={error:i}}finally{try{B&&!B.done&&(E=F.return)&&E.call(F)}finally{if(c)throw c.error}}}if(C)throw new v(C)}},Subscription.prototype.add=function(i){var u;if(i&&i!==this){if(this.closed)execFinalizer(i);else{if(i instanceof Subscription){if(i.closed||i._hasParent(this))return;i._addParent(this)}(this._finalizers=null!==(u=this._finalizers)&&void 0!==u?u:[]).push(i)}}},Subscription.prototype._hasParent=function(i){var u=this._parentage;return u===i||Array.isArray(u)&&u.includes(i)},Subscription.prototype._addParent=function(i){var u=this._parentage;this._parentage=Array.isArray(u)?(u.push(i),u):u?[u,i]:i},Subscription.prototype._removeParent=function(i){var u=this._parentage;u===i?this._parentage=null:Array.isArray(u)&&(0,E.P)(u,i)},Subscription.prototype.remove=function(i){var u=this._finalizers;u&&(0,E.P)(u,i),i instanceof Subscription&&i._removeParent(this)},Subscription.EMPTY=((i=new Subscription).closed=!0,i),Subscription}(),S=C.EMPTY;function isSubscription(i){return i instanceof C||i&&"closed"in i&&(0,b.m)(i.remove)&&(0,b.m)(i.add)&&(0,b.m)(i.unsubscribe)}function execFinalizer(i){(0,b.m)(i)?i():i.unsubscribe()}},3912:function(i,u,c){"use strict";c.d(u,{v:function(){return f}});var f={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9917:function(i,u,c){"use strict";c.d(u,{P:function(){return defer}});var f=c(230),b=c(7878);function defer(i){return new f.y(function(u){(0,b.Xf)(i()).subscribe(u)})}},1545:function(i,u,c){"use strict";c.d(u,{E:function(){return f}});var f=new(c(230)).y(function(i){return i.complete()})},7878:function(i,u,c){"use strict";c.d(u,{Xf:function(){return innerFrom}});var f=c(7582),b=c(5685),v=c(3841),E=c(230),C=c(1764),S=c(8430),x=c(8729),R=c(1837),k=c(8671),j=c(8474),F=c(5),B=c(6766);function innerFrom(i){if(i instanceof E.y)return i;if(null!=i){if((0,C.c)(i))return new E.y(function(u){var c=i[B.L]();if((0,j.m)(c.subscribe))return c.subscribe(u);throw TypeError("Provided object does not correctly implement Symbol.observable")});if((0,b.z)(i))return new E.y(function(u){for(var c=0;c<i.length&&!u.closed;c++)u.next(i[c]);u.complete()});if((0,v.t)(i))return new E.y(function(u){i.then(function(i){u.closed||(u.next(i),u.complete())},function(i){return u.error(i)}).then(null,F.h)});if((0,S.D)(i))return fromAsyncIterable(i);if((0,R.T)(i))return new E.y(function(u){var c,b;try{for(var v=(0,f.XA)(i),E=v.next();!E.done;E=v.next()){var C=E.value;if(u.next(C),u.closed)return}}catch(i){c={error:i}}finally{try{E&&!E.done&&(b=v.return)&&b.call(v)}finally{if(c)throw c.error}}u.complete()});if((0,k.L)(i))return fromAsyncIterable((0,k.Q)(i))}throw(0,x.z)(i)}function fromAsyncIterable(i){return new E.y(function(u){(function(i,u){var c,b,v,E;return(0,f.mG)(this,void 0,void 0,function(){var C;return(0,f.Jh)(this,function(S){switch(S.label){case 0:S.trys.push([0,5,6,11]),c=(0,f.KL)(i),S.label=1;case 1:return[4,c.next()];case 2:if((b=S.sent()).done)return[3,4];if(C=b.value,u.next(C),u.closed)return[2];S.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return v={error:S.sent()},[3,11];case 6:if(S.trys.push([6,,9,10]),!(b&&!b.done&&(E=c.return)))return[3,8];return[4,E.call(c)];case 7:S.sent(),S.label=8;case 8:return[3,10];case 9:if(v)throw v.error;return[7];
32case 10:return[7];case 11:return u.complete(),[2]}})})})(i,u).catch(function(i){return u.error(i)})})}},2566:function(i,u,c){"use strict";c.d(u,{x:function(){return createOperatorSubscriber}});var f=c(7582);function createOperatorSubscriber(i,u,c,f,v){return new b(i,u,c,f,v)}var b=function(i){function OperatorSubscriber(u,c,f,b,v,E){var C=i.call(this,u)||this;return C.onFinalize=v,C.shouldUnsubscribe=E,C._next=c?function(i){try{c(i)}catch(i){u.error(i)}}:i.prototype._next,C._error=b?function(i){try{b(i)}catch(i){u.error(i)}finally{this.unsubscribe()}}:i.prototype._error,C._complete=f?function(){try{f()}catch(i){u.error(i)}finally{this.unsubscribe()}}:i.prototype._complete,C}return(0,f.ZT)(OperatorSubscriber,i),OperatorSubscriber.prototype.unsubscribe=function(){var u;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var c=this.closed;i.prototype.unsubscribe.call(this),c||null===(u=this.onFinalize)||void 0===u||u.call(this)}},OperatorSubscriber}(c(5044).Lv)},4975:function(i,u,c){"use strict";c.d(u,{h:function(){return filter}});var f=c(6798),b=c(2566);function filter(i,u){return(0,f.e)(function(c,f){var v=0;c.subscribe((0,b.x)(f,function(c){return i.call(u,c,v++)&&f.next(c)}))})}},9127:function(i,u,c){"use strict";c.d(u,{U:function(){return map}});var f=c(6798),b=c(2566);function map(i,u){return(0,f.e)(function(c,f){var v=0;c.subscribe((0,b.x)(f,function(c){f.next(i.call(u,c,v++))}))})}},5014:function(i,u,c){"use strict";c.d(u,{z:function(){return function mergeMap(i,u,c){return(void 0===c&&(c=1/0),(0,S.m)(u))?mergeMap(function(c,v){return(0,f.U)(function(i,f){return u(c,i,v,f)})((0,b.Xf)(i(c,v)))},c):("number"==typeof u&&(c=u),(0,v.e)(function(u,f){var v,S,x,R,k,j,F,B,M,q,L,U;return v=c,j=[],F=0,B=0,M=!1,q=function(){!M||j.length||F||f.complete()},L=function(i){return F<v?U(i):j.push(i)},U=function(u){x&&f.next(u),F++;var c=!1;(0,b.Xf)(i(u,B++)).subscribe((0,C.x)(f,function(i){null==S||S(i),x?L(i):f.next(i)},function(){c=!0},void 0,function(){if(c)try{for(F--;j.length&&F<v;)!function(){var i=j.shift();R?(0,E.f)(f,R,function(){return U(i)}):U(i)}();
32q()}catch(i){f.error(i)}}))},u.subscribe((0,C.x)(f,L,function(){M=!0,q()})),function(){null==k||k()}}))}}});var f=c(9127),b=c(7878),v=c(6798),E=c(7845),C=c(2566),S=c(8474)},8380:function(i,u,c){"use strict";c.d(u,{z:function(){return b}});var f=c(7582),b={setTimeout:function(i,u){for(var c=[],v=2;v<arguments.length;v++)c[v-2]=arguments[v];var E=b.delegate;return(null==E?void 0:E.setTimeout)?E.setTimeout.apply(E,(0,f.ev)([i,u],(0,f.CR)(c))):setTimeout.apply(void 0,(0,f.ev)([i,u],(0,f.CR)(c)))},clearTimeout:function(i){var u=b.delegate;return((null==u?void 0:u.clearTimeout)||clearTimeout)(i)},delegate:void 0}},9768:function(i,u,c){"use strict";c.d(u,{h:function(){return f}});var f="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},6766:function(i,u,c){"use strict";c.d(u,{L:function(){return f}});var f="function"==typeof Symbol&&Symbol.observable||"@@observable"},3699:function(i,u,c){"use strict";function arrRemove(i,u){if(i){var c=i.indexOf(u);0<=c&&i.splice(c,1)}}c.d(u,{P:function(){return arrRemove}})},1819:function(i,u,c){"use strict";function createErrorClass(i){var u=i(function(i){Error.call(i),i.stack=Error().stack});return u.prototype=Object.create(Error.prototype),u.prototype.constructor=u,u}c.d(u,{d:function(){return createErrorClass}})},8846:function(i,u,c){"use strict";c.d(u,{O:function(){return captureError},x:function(){return errorContext}});var f=c(3912),b=null;function errorContext(i){if(f.v.useDeprecatedSynchronousErrorHandling){var u=!b;if(u&&(b={errorThrown:!1,error:null}),i(),u){var c=b,v=c.errorThrown,E=c.error;if(b=null,v)throw E}}else i()}function captureError(i){f.v.useDeprecatedSynchronousErrorHandling&&b&&(b.errorThrown=!0,b.error=i)}},7845:function(i,u,c){"use strict";function executeSchedule(i,u,c,f,b){void 0===f&&(f=0),void 0===b&&(b=!1);var v=u.schedule(function(){c(),b?i.add(this.schedule(null,f)):this.unsubscribe()},f);if(i.add(v),!b)return v}c.d(u,{f:function(){return executeSchedule}})},278:function(i,u,c){"use strict";function identity(i){return i}c.d(u,{y:function(){return identity}})},5685:function(i,u,c){"use strict";c.d(u,{z:function(){return isArrayLike}});var isArrayLike=function(i){return i&&"number"==typeof i.length&&"function"!=typeof i}},8430:function(i,u,c){"use strict";c.d(u,{D:function(){return isAsyncIterable}});var f=c(8474);function isAsyncIterable(i){return Symbol.asyncIterator&&(0,f.m)(null==i?void 0:i[Symbol.asyncIterator])}},8474:function(i,u,c){"use strict";function isFunction(i){return"function"==typeof i}c.d(u,{m:function(){return isFunction}})},1764:function(i,u,c){"use strict";c.d(u,{c:function(){return isInteropObservable}});var f=c(6766),b=c(8474);function isInteropObservable(i){return(0,b.m)(i[f.L])}},1837:function(i,u,c){"use strict";c.d(u,{T:function(){return isIterable}});var f=c(9768),b=c(8474);function isIterable(i){return(0,b.m)(null==i?void 0:i[f.h])}},3841:function(i,u,c){"use strict";c.d(u,{t:function(){return isPromise}});var f=c(8474);function isPromise(i){return(0,f.m)(null==i?void 0:i.then)}},8671:function(i,u,c){"use strict";c.d(u,{L:function(){return isReadableStreamLike},Q:function(){return readableStreamLikeToAsyncGenerator}});var f=c(7582),b=c(8474);function readableStreamLikeToAsyncGenerator(i){return(0,f.FC)(this,arguments,function(){var u,c,b;return(0,f.Jh)(this,function(v){switch(v.label){case 0:u=i.getReader(),v.label=1;case 1:v.trys.push([1,,9,10]),v.label=2;case 2:return[4,(0,f.qq)(u.read())];case 3:if(b=(c=v.sent()).value,!c.done)return[3,5];return[4,(0,f.qq)(void 0)];case 4:return[2,v.sent()];case 5:return[4,(0,f.qq)(b)];case 6:return[4,v.sent()];case 7:return v.sent(),[3,2];case 8:return[3,10];case 9:return u.releaseLock(),[7];case 10:return[2]}})})}function isReadableStreamLike(i){return(0,b.m)(null==i?void 0:i.getReader)}},6798:function(i,u,c){"use strict";c.d(u,{e:function(){return operate}});var f=c(8474);function operate(i){return function(u){if((0,f.m)(null==u?void 0:u.lift))return u.lift(function(u){try{return i(u,this)}catch(i){this.error(i)}});throw TypeError("Unable to lift unknown Observable type")}}},3211:function(i,u,c){"use strict";c.d(u,{Z:function(){return mapOneOrManyArgs}});var f=c(7582),b=c(9127),v=Array.isArray;function mapOneOrManyArgs(i){return(0,b.U)(function(u){return v(u)?i.apply(void 0,(0,f.ev)([],(0,f.CR)(u))):i(u)})}},2967:function(i,u,c){"use strict";function noop(){}c.d(u,{Z:function(){return noop}})},2749:function(i,u,c){"use strict";c.d(u,{U:function(){return pipeFromArray},z:function(){return pipe}});var f=c(278);function pipe(){for(var i=[],u=0;u<arguments.length;u++)i[u]=arguments[u];return pipeFromArray(i)}
32function pipeFromArray(i){return 0===i.length?f.y:1===i.length?i[0]:function(u){return i.reduce(function(i,u){return u(i)},u)}}},5:function(i,u,c){"use strict";c.d(u,{h:function(){return reportUnhandledError}});var f=c(3912),b=c(8380);function reportUnhandledError(i){b.z.setTimeout(function(){var u=f.v.onUnhandledError;if(u)u(i);else throw i})}},8729:function(i,u,c){"use strict";function createInvalidObservableTypeError(i){return TypeError("You provided "+(null!==i&&"object"==typeof i?"an invalid object":"'"+i+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}c.d(u,{z:function(){return createInvalidObservableTypeError}})},7462:function(i,u,c){"use strict";function _extends(){return(_extends=Object.assign?Object.assign.bind():function(i){for(var u=1;u<arguments.length;u++){var c=arguments[u];for(var f in c)({}).hasOwnProperty.call(c,f)&&(i[f]=c[f])}return i}).apply(null,arguments)}c.d(u,{Z:function(){return _extends}})},3259:function(i,u,c){"use strict";function isRecord(i){return"object"==typeof i&&null!==i&&!Array.isArray(i)}c.d(u,{NG:function(){return stegaClean},Uy:function(){return isRecord},y:function(){return y}});var f={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},b={0:8203,1:8204,2:8205,3:65279},v={0:String.fromCodePoint(b[0]),1:String.fromCodePoint(b[1]),2:String.fromCodePoint(b[2]),3:String.fromCodePoint(b[3])},E=[,,,,].fill(String.fromCodePoint(b[0])).join("");function y(i,u,c="auto"){return!0===c||"auto"===c&&(!(!Number.isNaN(Number(i))||/[a-z]/i.test(i)&&!/\d+(?:[-:\/]\d+){2}(?:T\d+(?:[-:\/]\d+){1,2}(\.\d+)?Z?)?/.test(i))&&Date.parse(i)||function(i){try{new URL(i,i.startsWith("/")?"https://acme.com":void 0)}catch{return!1}return!0}(i))?i:`${i}${function(i){let u=JSON.stringify(i),c=new TextEncoder().encode(u),f="";for(let i=0;i<c.length;i++){let u=c[i];f+=v[u>>6&3]+v[u>>4&3]+v[u>>2&3]+v[3&u]}return E+f}(u)}`}Object.fromEntries(Object.entries(v).map(i=>[i[1],+i[0]])),Object.fromEntries(Object.entries(f).map(i=>i.reverse()));var C=`${Object.values(f).map(i=>`\\u{${i.toString(16)}}`).join("")}`,S=RegExp(`[${C}]{4,}`,"gu");function stegaClean(i){var u,c;return i&&JSON.parse({cleaned:(u=JSON.stringify(i)).replace(S,""),encoded:(null==(c=u.match(S))?void 0:c[0])||""}.cleaned)}},2729:function(i,u,c){"use strict";function _tagged_template_literal(i,u){return u||(u=i.slice(0)),Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(u)}}))}c.d(u,{_:function(){return _tagged_template_literal}})},1972:function(i,u,c){"use strict";function groq(i,...u){let c=i.length-1;return i.slice(0,c).reduce((i,c,f)=>i+c+u[f],"")+i[c]}c.d(u,{Z:function(){return groq}})},3416:function(i,u,c){"use strict";c.d(u,{kP:function(){return customAlphabet}});let random=i=>crypto.getRandomValues(new Uint8Array(i)),customRandom=(i,u,c)=>{let f=(2<<Math.log(i.length-1)/Math.LN2)-1,b=-~(1.6*f*u/i.length);return (v=u)=>{let E="";for(;;){let u=c(b),C=0|b;for(;C--;)if((E+=i[u[C]&f]||"").length===v)return E}}},customAlphabet=(i,u=21)=>customRandom(i,u,random)},7582:function(i,u,c){"use strict";c.d(u,{CR:function(){return __read},FC:function(){return __asyncGenerator},Jh:function(){return __generator},KL:function(){return __asyncValues},XA:function(){return __values},ZT:function(){return __extends},ev:function(){return __spreadArray},mG:function(){return __awaiter},qq:function(){return __await}});var extendStatics=function(i,u){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(i,u){i.__proto__=u}||function(i,u){for(var c in u)Object.prototype.hasOwnProperty.call(u,c)&&(i[c]=u[c])})(i,u)};function __extends(i,u){if("function"!=typeof u&&null!==u)throw TypeError("Class extends value "+String(u)+" is not a constructor or null");function __(){this.constructor=i}extendStatics(i,u),i.prototype=null===u?Object.create(u):(__.prototype=u.prototype,new __)}function __awaiter(i,u,c,f){return new(c||(c=Promise))(function(b,v){function fulfilled(i){try{step(f.next(i))}catch(i){v(i)}}function rejected(i){try{step(f.throw(i))}catch(i){v(i)}}function step(i){var u;i.done?b(i.value):((u=i.value)instanceof c?u:new c(function(i){i(u)})).then(fulfilled,rejected)}step((f=f.apply(i,u||[])).next())})}function __generator(i,u){var c,f,b,v={label:0,sent:function(){if(1&b[0])throw b[1];return b[1]}
32,trys:[],ops:[]},E=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return E.next=verb(0),E.throw=verb(1),E.return=verb(2),"function"==typeof Symbol&&(E[Symbol.iterator]=function(){return this}),E;function verb(C){return function(S){return function(C){if(c)throw TypeError("Generator is already executing.");for(;E&&(E=0,C[0]&&(v=0)),v;)try{if(c=1,f&&(b=2&C[0]?f.return:C[0]?f.throw||((b=f.return)&&b.call(f),0):f.next)&&!(b=b.call(f,C[1])).done)return b;switch(f=0,b&&(C=[2&C[0],b.value]),C[0]){case 0:case 1:b=C;break;case 4:return v.label++,{value:C[1],done:!1};case 5:v.label++,f=C[1],C=[0];continue;case 7:C=v.ops.pop(),v.trys.pop();continue;default:if(!(b=(b=v.trys).length>0&&b[b.length-1])&&(6===C[0]||2===C[0])){v=0;continue}if(3===C[0]&&(!b||C[1]>b[0]&&C[1]<b[3])){v.label=C[1];break}if(6===C[0]&&v.label<b[1]){v.label=b[1],b=C;break}if(b&&v.label<b[2]){v.label=b[2],v.ops.push(C);break}b[2]&&v.ops.pop(),v.trys.pop();continue}C=u.call(i,v)}catch(i){C=[6,i],f=0}finally{c=b=0}if(5&C[0])throw C[1];return{value:C[0]?C[1]:void 0,done:!0}}([C,S])}}}function __values(i){var u="function"==typeof Symbol&&Symbol.iterator,c=u&&i[u],f=0;if(c)return c.call(i);if(i&&"number"==typeof i.length)return{next:function(){return i&&f>=i.length&&(i=void 0),{value:i&&i[f++],done:!i}}};throw TypeError(u?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(i,u){var c="function"==typeof Symbol&&i[Symbol.iterator];if(!c)return i;var f,b,v=c.call(i),E=[];try{for(;(void 0===u||u-- >0)&&!(f=v.next()).done;)E.push(f.value)}catch(i){b={error:i}}finally{try{f&&!f.done&&(c=v.return)&&c.call(v)}finally{if(b)throw b.error}}return E}function __spreadArray(i,u,c){if(c||2==arguments.length)for(var f,b=0,v=u.length;b<v;b++)!f&&b in u||(f||(f=Array.prototype.slice.call(u,0,b)),f[b]=u[b]);return i.concat(f||Array.prototype.slice.call(u))}function __await(i){return this instanceof __await?(this.v=i,this):new __await(i)}function __asyncGenerator(i,u,c){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var f,b=c.apply(i,u||[]),v=[];return f=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),verb("next"),verb("throw"),verb("return",function(i){return function(u){return Promise.resolve(u).then(i,reject)}}),f[Symbol.asyncIterator]=function(){return this},f;function verb(i,u){b[i]&&(f[i]=function(u){return new Promise(function(c,f){v.push([i,u,c,f])>1||resume(i,u)})},u&&(f[i]=u(f[i])))}function resume(i,u){try{var c;(c=b[i](u)).value instanceof __await?Promise.resolve(c.value.v).then(fulfill,reject):settle(v[0][2],c)}catch(i){settle(v[0][3],i)}}function fulfill(i){resume("next",i)}function reject(i){resume("throw",i)}function settle(i,u){i(u),v.shift(),v.length&&resume(v[0][0],v[0][1])}}function __asyncValues(i){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var u,c=i[Symbol.asyncIterator];return c?c.call(i):(i=__values(i),u={},verb("next"),verb("throw"),verb("return"),u[Symbol.asyncIterator]=function(){return this},u);function verb(c){u[c]=i[c]&&function(u){return new Promise(function(f,b){!function(i,u,c,f){Promise.resolve(f).then(function(u){i({value:u,done:c})},u)}(f,b,(u=i[c](u)).done,u.value)})}}}"function"==typeof SuppressedError&&SuppressedError}},function(i){var __webpack_exec__=function(u){return i(i.s=u)};i.O(0,[774,179],function(){return __webpack_exec__(6840),__webpack_exec__(9974)}),_N_E=i.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.