1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{48711:function(r,n,i){"use strict";i.d(n,{Z:function(){return G}});var o=function(){function r(r){var n=this;this._insertTag=function(r){var i;i=0===n.tags.length?n.insertionPoint?n.insertionPoint.nextSibling:n.prepend?n.container.firstChild:n.before:n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(r,i),n.tags.push(r)},this.isSpeedy=void 0===r.speedy||r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var n=r.prototype;return n.hydrate=function(r){r.forEach(this._insertTag)},n.insert=function(r){if(this.ctr%(this.isSpeedy?65e3:1)==0){var n;this._insertTag(((n=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&n.setAttribute("nonce",this.nonce),n.appendChild(document.createTextNode("")),n.setAttribute("data-s",""),n))}var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(r){if(r.sheet)return r.sheet;for(var n=0;n<document.styleSheets.length;n++)if(document.styleSheets[n].ownerNode===r)return document.styleSheets[n]}(i);try{o.insertRule(r,o.cssRules.length)}catch(r){}}else i.appendChild(document.createTextNode(r));this.ctr++}
vendor: 1,315 bytes, line 1
1,n.flush=function(){this.tags.forEach(function(r){var n;return null==(n=r.parentNode)?void 0:n.removeChild(r)}),this.tags=[],this.ctr=0},r}(),a=Math.abs,s=String.fromCharCode,l=Object.assign;function c(r,n,i){return r.replace(n,i)}function u(r,n){return r.indexOf(n)}function d(r,n){return 0|r.charCodeAt(n)}function h(r,n,i){return r.slice(n,i)}function p(r){return r.length}function f(r,n){return n.push(r),r}var m=1,g=1,v=0,y=0,b=0,x="";function _(r,n,i,o,a,s,l){return{value:r,root:n,parent:i,type:o,props:a,children:s,line:m,column:g,length:l,return:""}}function w(r,n){return l(_("",null,null,"",null,null,0),r,{length:-r.length},n)}function S(){return b=y<v?d(x,y++):0,g++,10===b&&(g=1,m++),b}function T(){return d(x,y)}function E(r){switch(r){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 k(r){return m=g=1,v=p(x=r),y=0,[]}function C(r){var n,i;return(n=y-1,i=function r(n){for(;S();)switch(b){case n:return y;case 34:case 39:34!==n&&39!==n&&r(b);break;case 40:41===n&&r(n);break;case 92:S()}return y}(91===r?r+2:40===r?r+1:r),h(x,n,i)).trim()}var P="-ms-",O="-moz-",j="-webkit-",A="comm",M="rule",I="decl",Z="@ke
1yframes";function R(r,n){for(var i="",o=r.length,a=0;a<o;a++)i+=n(r[a],a,r,n)||"";return i}function D(r,n,i,o){switch(r.type){case"@layer":if(r.children.length)break;case"@import":case I:return r.return=r.return||r.value;case A:return"";case Z:return r.return=r.value+"{"+R(r.children,o)+"}";case M:r.value=r.props.join(",")}return p(i=R(r.children,o))?r.return=r.value+"{"+i+"}":""}function L(r,n,i,o,s,l,u,d,p,f,m){for(var g=s-1,v=0===s?l:[""],y=v.length,b=0,x=0,w=0;b<o;++b)for(var S=0,T=h(r,g+1,g=a(x=u[b])),E=r;S<y;++S)(E=(x>0?v[S]+" "+T:c(T,/&\f/g,v[S])).trim())&&(p[w++]=E);return _(r,n,i,0===s?M:d,p,f,m)}function z(r,n,i,o){return _(r,n,i,I,h(r,0,o),h(r,o+1,-1),o)}var B=function(r,n,i){for(var o=0,a=0;o=a,a=T(),38===o&&12===a&&(n[i]=1),!E(a);)S();return h(x,r,y)},F=function(r,n){var i=-1,o=44;do switch(E(o)){case 0:38===o&&12===T()&&(n[i]=1),r[i]+=B(y-1,n,i);break;case 2:r[i]+=C(o);break;case 4:if(44===o){r[++i]=58===T()?"&\f":"",n[i]=r[i].length;break}default:r[i]+=s(o)}while(o=S());return r},N=function(r,n){var i;return i=F(k(r),n),x="",i},U=new WeakMap,V=function(r){if("rule"===r.type&&r.parent&&!(r.length<1)){for(var n=r.value,i=r.parent,o=r.column===i.column&&r.line===i.line;"rule"!==i.type;)if(!(i=i.parent))return;if((1!==r.props.length||58===n.charCodeAt(0)||U.get(i))&&!o){U.set(r,!0);for(var a=[],s=N(n,a),l=i.props,c=0,u=0;c<s.length;c++)for(var d=0;d<l.length;d++,u++)r.props[u]=a[c]?s[c].replace(/&\f/g,l[d]):l[d]+" "+s[c]}}},q=function(r){if("decl"===r.type){var n=r.value;108===n.charCodeAt(0)&&98===n.charCodeAt(2)&&(r.return="",r.value="")}},$=[function(r,n,i,o){if(r.length>-1&&!r.return)switch(r.type){case I:r.return=function r(n,i){switch(45^d(n,0)?(((i<<2^d(n,0))<<2^d(n,1))<<2^d(n,2))<<2^d(n,3):0){case 5103:return j+"print-"+n+n;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 j+n+n;case 5349:case 4246:case 4810:case 6968:case 2756:return j+n+O+n+P+n+n;case 6828:case 4268:return j+n+P+n+n;case 6165:return j+n+P+"flex-"+n+n;case 5187:return j+n+c(n,/(\w+).+(:[^]+)/,j+"box-$1$2"+P+"flex-$1$2")+n;case 5443:return j+n+P+"flex-item-"+c(n,/flex-|-self/,"")+n;case 4675:return j+n+P+"flex-line-pack"+c(n,/align-content|flex-|-self/,"")+n;case 5548:return j+n+P+c(n,"shrink","negative")+n;case 5292:return j+n+P+c(n,"basis","preferred-size")+n;case 6060:return j+"box-"+c(n,"-grow","")+j+n+P+c(n,"grow","positive")+n;case 4554:return j+c(n,/([^-])(transform)/g,"$1"+j+"$2")+n;case 6187:return c(c(c(n,/(zoom-|grab)/,j+"$1"),/(image-set)/,j+"$1"),n,"")+n;case 5495:case 3959:return c(n,/(image-set\([^]*)/,j+"$1$`$1");case 4968:return c(c(n,/(.+:)(flex-)?(.*)/,j+"box-pack:$3"+P+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+j+n+n;case 4095:case 3583:case 4068:case 2532:return c(n,/(.+)-inline(.+)/,j+"$1$2")+n;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(p(n)-1-i>6)switch(d(n,i+1)){case 109:if(45!==d(n,i+4))break;case 102:return c(n,/(.+:)(.+)-([^]+)/,"$1"+j+"$2-$3$1"+O+(108==d(n,i+3)?"$3":"$2-$3"))+n;case 115:return~u(n,"stretch")?r(c(n,"stretch","fill-available"),i)+n:n}break;case 4949:if(115!==d(n,i+1))break;case 6444:switch(d(n,p(n)-3-(~u(n,"!important")&&10))){case 107:return c(n,":",":"+j)+n;case 101:return c(n,/(.+:)([^;!]+)(;|!.+)?/,"$1"+j+(45===d(n,14)?"inline-":"")+"box$3$1"+j+"$2$3$1"+P+"$2box$3")+n}break;case 5936:switch(d(n,i+11)){case 114:return j+n+P+c(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return j+n+P+c(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return j+n+P+c(n,/[svh]\w+-[tblr]{2}/,"lr")+n}return j+n+P+n+n}return n}(r.value,r.length);break;case Z:return R([w(r,{value:c(r.value,"@","@"+j)})],o);case M:if(r.length)return r.props.map(function(n){var i;switch(i=n,(i=/(::plac\w+|:read-\w+)/.exec(i))?i[0]:i){case":read-only":case":read-write":return R([w(r,{props:[c(n,/:(read-\w+)/,":"+O+"$1")]})],o);case"::placeholder":return R([w(r,{props:[c(n,/:(plac\w+)/,":"+j+"input-$1")]}),w(r,{props:[c(n,/:(plac\w+)/,":"+O+"$1")]}),w(r,{props:[c(n,/:(plac\w+)/,P+"input-$1")]})],o)}return""}).join("")}}],G=function(r){var n,i,a,l,v,w=r.key;if("css"===w){var P=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(P,function(r){-1!==r.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(r),r.setAttribute("data-s",""))})}var O=r.stylisPlugins||$,j={},M=[];l=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+w+' "]'),function(r){for(var n=r.getAttribute("data-emotion").split(" "),i=1;i<n.length;i++)j[n[i]]=!0;M.push(r)});var I=(i=(n=[V,q].concat(O,[D,(a=function(r){v.insert(r)},function(r){!r.root&&(r=r.return)&&a(r)})])).length,function(r,o,a,s){for(var l="",c=0;c<i;c++)l+=n[c](r,o,a,s)||"";return l}),Z=function(r){var n,i;return R((i=function r(n,i,o,a,l,v,w,k,P){for(var O,j=0,M=0,I=w,Z=0,R=0,D=0,B=1,F=1,N=1,U=0,V="",q=l,$=v,G=a,W=V;F;)switch(D=U,U=S()){case 40:if(108!=D&&58==d(W,I-1)){-1!=u(W+=c(C(U),"&","&\f"),"&\f")&&(N=-1);break}case 34:case 39:case 91:W+=C(U);break;case 9:case 10:case 13:case 32:W+=function(r){for(;b=T();)if(b<33)S();else break;return E(r)>2||E(b)>3?"":" "}(D);break;case 92:W+=function(r,n){for(var i;--n&&S()&&!(b<48)&&!(b>102)&&(!(b>
157)||!(b<65))&&(!(b>70)||!(b<97)););return i=y+(n<6&&32==T()&&32==S()),h(x,r,i)}(y-1,7);continue;case 47:switch(T()){case 42:case 47:f(_(O=function(r,n){for(;S();)if(r+b===57)break;else if(r+b===84&&47===T())break;return"/*"+h(x,n,y-1)+"*"+s(47===r?r:S())}(S(),y),i,o,A,s(b),h(O,2,-2),0),P);break;default:W+="/"}break;case 123*B:k[j++]=p(W)*N;case 125*B:case 59:case 0:switch(U){case 0:case 125:F=0;case 59+M:-1==N&&(W=c(W,/\f/g,"")),R>0&&p(W)-I&&f(R>32?z(W+";",a,o,I-1):z(c(W," ","")+";",a,o,I-2),P);break;case 59:W+=";";default:if(f(G=L(W,i,o,j,M,l,k,V,q=[],$=[],I),v),123===U){if(0===M)r(W,i,G,G,q,v,I,k,$);else switch(99===Z&&110===d(W,3)?100:Z){case 100:case 108:case 109:case 115:r(n,G,G,a&&f(L(n,G,G,0,0,l,k,V,l,q=[],I),$),l,$,I,k,a?q:$);break;default:r(W,G,G,G,[""],$,0,k,$)}}}j=M=R=0,B=N=1,V=W="",I=w;break;case 58:I=1+p(W),R=D;default:if(B<1){if(123==U)--B;else if(125==U&&0==B++&&125==(b=y>0?d(x,--y):0,g--,10===b&&(g=1,m--),b))continue}switch(W+=s(U),U*B){case 38:N=M>0?1:(W+="\f",-1);break;case 44:k[j++]=(p(W)-1)*N,N=1;break;case 64:45===T()&&(W+=C(S())),Z=T(),M=I=p(V=W+=function(r){for(;!E(T());)S();return h(x,r,y)}(y)),U++;break;case 45:45===D&&2==p(W)&&(B=0)}}return v}("",null,null,null,[""],n=k(n=r),0,[0],n),x="",i),I)},B={key:w,sheet:new o({key:w,container:l,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:j,registered:{},insert:function(r,n,i,o){v=i,Z(r?r+"{"+n.styles+"}":n.styles),o&&(B.inserted[n.name]=!0)}};return B.sheet.hydrate(M),B}},45042:function(r,n,i){"use strict";function o(r){var n=Object.create(null);return function(i){return void 0===n[i]&&(n[i]=r(i)),n[i]}}i.d(n,{Z:function(){return o}})},38741:function(r,n,i){"use strict";i.d(n,{C:function(){return l},T:function(){return u},w:function(){return c}});var o=i(67294),a=i(48711);i(85662),i(27278);var s=o.createContext("undefined"!=typeof HTMLElement?(0,a.Z)({key:"css"}):null),l=s.Provider,c=function(r){return(0,o.forwardRef)(function(n,i){return r(n,(0,o.useContext)(s),i)})},u=o.createContext({})},70917:function(r,n,i){"use strict";i.d(n,{F4:function(){return h},iv:function(){return d},xB:function(){return u}});var o=i(38741),a=i(67294),s=i(70444),l=i(27278),c=i(85662);i(48711),i(8679);var u=(0,o.w)(function(r,n){var i=r.styles,u=(0,c.O)([i],void 0,a.useContext(o.T)),d=a.useRef();return(0,l.j)(function(){var r=n.key+"-global",i=new n.sheet.constructor({key:r,nonce:n.sheet.nonce,container:n.sheet.container,speedy:n.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+r+" "+u.name+'"]');return n.sheet.tags.length&&(i.before=n.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",r),i.hydrate([a])),d.current=[i,o],function(){i.flush()}},[n]),(0,l.j)(function(){var r=d.current,i=r[0];if(r[1]){r[1]=!1;return}if(void 0!==u.next&&(0,s.My)(n,u.next,!0),i.tags.length){var o=i.tags[i.tags.length-1].nextElementSibling;i.before=o,i.flush()}n.insert("",u,i,!1)},[n,u.name]),null});function d(){for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return(0,c.O)(n)}var h=function(){var r=d.apply(void 0,arguments),n="animation-"+r.name;return{name:n,styles:"@keyframes "+n+"{"+r.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},85662:function(r,n,i){"use strict";i.d(n,{O:function(){return g}});var o,a={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,msGridRow: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},s=i(45042),l=/[A-Z]|^ms/g,c=/_EMO_([^_]+?)_([^]*?)_EMO_/g,u=function(r){return 45===r.charCodeAt(1)},d=function(r){return null!=r&&"boolean"!=typeof r},h=(0,s.Z)(function(r){return u(r)?r:r.replace(l,"-$&").toLowerCase()}
vendor: 4,250 bytes, line 1
1),p=function(r,n){switch(r){case"animation":case"animationName":if("string"==typeof n)return n.replace(c,function(r,n,i){return o={name:n,styles:i,next:o},n})}return 1===a[r]||u(r)||"number"!=typeof n||0===n?n:n+"px"};function f(r,n,i){if(null==i)return"";if(void 0!==i.__emotion_styles)return i;switch(typeof i){case"boolean":return"";case"object":if(1===i.anim)return o={name:i.name,styles:i.styles,next:o},i.name;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)o={name:a.name,styles:a.styles,next:o},a=a.next;return i.styles+";"}return function(r,n,i){var o="";if(Array.isArray(i))for(var a=0;a<i.length;a++)o+=f(r,n,i[a])+";";else for(var s in i){var l=i[s];if("object"!=typeof l)null!=n&&void 0!==n[l]?o+=s+"{"+n[l]+"}":d(l)&&(o+=h(s)+":"+p(s,l)+";");else if(Array.isArray(l)&&"string"==typeof l[0]&&(null==n||void 0===n[l[0]]))for(var c=0;c<l.length;c++)d(l[c])&&(o+=h(s)+":"+p(s,l[c])+";");else{var u=f(r,n,l);switch(s){case"animation":case"animationName":o+=h(s)+":"+u+";";break;default:o+=s+"{"+u+"}"}}}return o}(r,n,i);case"function":if(void 0!==r){var s=o,l=i(r);return o=s,f(r,n,l)}}if(null==n)return i;var c=n[i];return void 0!==c?c:i}var m=/label:\s*([^\s;{]+)\s*(;|$)/g;function g(r,n,i){if(1===r.length&&"object"==typeof r[0]&&null!==r[0]&&void 0!==r[0].styles)return r[0];var a,s=!0,l="";o=void 0;var c=r[0];null==c||void 0===c.raw?(s=!1,l+=f(i,n,c)):l+=c[0];for(var u=1;u<r.length;u++)l+=f(i,n,r[u]),s&&(l+=c[u]);m.lastIndex=0;for(var d="";null!==(a=m.exec(l));)d+="-"+a[1];return{name:function(r){for(var n,i=0,o=0,a=r.length;a>=4;++o,a-=4)n=(65535&(n=255&r.charCodeAt(o)|(255&r.charCodeAt(++o))<<8|(255&r.charCodeAt(++o))<<16|(255&r.charCodeAt(++o))<<24))*1540483477+((n>>>16)*59797<<16),n^=n>>>24,i=(65535&n)*1540483477+((n>>>16)*59797<<16)^(65535&i)*1540483477+((i>>>16)*59797<<16);switch(a){case 3:i^=(255&r.charCodeAt(o+2))<<16;case 2:i^=(255&r.charCodeAt(o+1))<<8;case 1:i^=255&r.charCodeAt(o),i=(65535&i)*1540483477+((i>>>16)*59797<<16)}return i^=i>>>13,(((i=(65535&i)*1540483477+((i>>>16)*59797<<16))^i>>>15)>>>0).toString(36)}(l)+d,styles:l,next:o}}},16829:function(r,n,i){"use strict";i.d(n,{Z:function(){return y}});var o=i(87462),a=i(67294),s=i(45042),l=/^((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|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|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackgroun
1d|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)-.*))$/,c=(0,s.Z)(function(r){return l.test(r)||111===r.charCodeAt(0)&&110===r.charCodeAt(1)&&91>r.charCodeAt(2)}),u=i(38741),d=i(70444),h=i(85662),p=i(27278),f=function(r){return"theme"!==r},m=function(r){return"string"==typeof r&&r.charCodeAt(0)>96?c:f},g=function(r,n,i){var o;if(n){var a=n.shouldForwardProp;o=r.__emotion_forwardProp&&a?function(n){return r.__emotion_forwardProp(n)&&a(n)}:a}return"function"!=typeof o&&i&&(o=r.__emotion_forwardProp),o},v=function(r){var n=r.cache,i=r.serialized,o=r.isStringTag;return(0,d.hC)(n,i,o),(0,p.L)(function(){return(0,d.My)(n,i,o)}),null},y=(function r(n,i){var s,l,c=n.__emotion_real===n,p=c&&n.__emotion_base||n;void 0!==i&&(s=i.label,l=i.target);var f=g(n,i,c),y=f||m(p),b=!y("as");return function(){var x=arguments,_=c&&void 0!==n.__emotion_styles?n.__emotion_styles.slice(0):[];if(void 0!==s&&_.push("label:"+s+";"),null==x[0]||void 0===x[0].raw)_.push.apply(_,x);else{_.push(x[0][0]);for(var w=x.length,S=1;S<w;S++)_.push(x[S],x[0][S])}var T=(0,u.w)(function(r,n,i){var o=b&&r.as||p,s="",c=[],g=r;if(null==r.theme){for(var x in g={},r)g[x]=r[x];g.theme=a.useContext(u.T)}"string"==typeof r.className?s=(0,d.fp)(n.registered,c,r.className):null!=r.className&&(s=r.className+" ");var w=(0,h.O)(_.concat(c),n.registered,g);s+=n.key+"-"+w.name,void 0!==l&&(s+=" "+l);var S=b&&void 0===f?m(o):y,T={};for(var E in r)(!b||"as"!==E)&&S(E)&&(T[E]=r[E]);return T.className=s,i&&(T.ref=i),a.createElement(a.Fragment,null,a.createElement(v,{cache:n,serialized:w,isStringTag:"string"==typeof o}),a.createElement(o,T))});return T.displayName=void 0!==s?s:"Styled("+("string"==typeof p?p:p.displayName||p.name||"Component")+")",T.defaultProps=n.defaultProps,T.__emotion_real=T,T.__emotion_base=p,T.__emotion_styles=_,T.__emotion_forwardProp=f,Object.defineProperty(T,"toString",{value:function(){return"."+l}}),T.withComponent=function(n,a){return r(n,(0,o.Z)({},i,a,{shouldForwardProp:g(T,a,!0)})).apply(void 0,_)},T}}).bind();["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(r){y[r]=y(r)})},27278:function(r,n,i){"use strict";i.d(n,{L:function(){return l},j:function(){return c}});var o,a=i(67294),s=!!(o||(o=i.t(a,2))).useInsertionEffect&&(o||(o=i.t(a,2))).useInsertionEffect,l=s||function(r){return r()},c=s||a.useLayoutEffect},70444:function(r,n,i){"use strict";function o(r,n,i){var o="";return i.split(" ").forEach(function(i){void 0!==r[i]?n.push(r[i]+";"):i&&(o+=i+" ")}),o}i.d(n,{My:function(){return s},fp:function(){return o},hC:function(){return a}});var a=function(r,n,i){var o=r.key+"-"+n.name;!1===i&&void 0===r.registered[o]&&(r.registered[o]=n.styles)},s=function(r,n,i){a(r,n,i);var o=r.key+"-"+n.name;if(void 0===r.inserted[n.name]){var s=n;do r.insert(n===s?"."+o:"",s,r.sheet,!0),s=s.next;while(void 0!==s)}}},33936:function(r,n){"use strict";n.DF={prefix:"fab",iconName:"bluesky",icon:[512,512,[],"e671","M111.8 62.2C170.2 105.9 233 194.7 256 242.4c23-47.6 85.8-136.4 144.2-180.2c42.1-31.6 110.3-56 110.3 21.8c0 15.5-8.9 130.5-14.1 149.2C478.2 298 412 314.6 353.1 304.5c102.9 17.5 129.1 75.5 72.5 133.5c-107.4 110.2-154.3-27.6-166.3-62.9l0 0c-1.7-4.9-2.6-7.8-3.3-7.8s-1.6 3-3.3 7.8l0 0c-12 35.3-59 173.1-166.3 62.9c-56.5-58-30.4-116 72.5-133.5C100 314.6 33.8 298 15.7 233.1C10.4 214.4 1.5 99.4 1.5 83.9c0-77.8 68.2-53.4 110.3-21.8z"]},n.pq=n.DF},54470:function(r,n){"use strict";n.DF={prefix:"fab",iconName:"facebook-f",icon:[320,512,[],"f39e","M80 299.3V512H196V299.3h86.5l18-97.8H196V166.9c0-51.7 20.3-71.5 72.7-71.5c16.3 0 29.4 .4 37 1.2V7.9C291.4 4 256.4 0 236.2 0C129.3 0 80 50.5 80 159.4v42.1H14v97.8H80z"]},n.AY=n.DF},81936:function(r,n){"use strict";n.DF={prefix:"fab",iconName:"flipboard",icon:[448,512,[],"f44d","M0 32v448h448V32H0zm358.4 179.2h-89.6v89.6h-89.6v89.6H89.6V121.6h268.8v89.6z"]},n.hs=n.DF},71299:function(r,n){"use strict";n.DF={prefix:"fab",iconName:"google",icon:[488,512,[],"f1a0","M488 261.8C488 403.3 391.1 504 248 504 110.8 504 0 393.2 0 256S110.8 8 248 8c66.8 0 123 24.5 166.3 64.9l-67.5 64.9C258.5 52.6 94.3 116.6 94.3 256c0 86.5 69.1 156.6 153.7 156.6 98.2 0 135-70.4 140.8-106.9H248v-85.3h236.1c2.3 12.7 3.9 24.9 3.9 41.4z"]},n.xY=n.DF},78279:function(r,n){"use strict";n.DF={prefix:"fab",iconName:"instagram",icon:[448,512,[],"f16d","M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"]},n.Zz=n.DF},58259:function(r,n){"use strict";n.DF={prefix:"fab",iconName:"linkedin",icon:[448,512,[],"f08c","M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"]},n.D9=n.DF},55149:function(r,n){"use strict";n.DF={prefix:"fab",iconName:"pinterest-p",icon:[384,512,[],"f231","M204 6.5C101.4 6.5 0 74.9 0 185.6 0 256 39.6 296 63.6 296c9.9 0 15.6-27.6 15.6-35.4 0-9.3-23.7-29.1-23.7-67.8 0-80.4 61.2-137.4 140.4-137.4 68.1 0 118.5 38.7 118.5 109.8 0 53.1-21.3 152.7-90.3 152.7-24.9 0-46.2-18-46.2-43.8 0-37.8 26.4-74.4 26.4-113.4 0-66.2-93.9-54.2-93.9 25.8 0 16.8 2.1 35.4 9.6 50.7-13.8 59.4-42 147.9-42 209.1 0 18.9 2.7 37.5 4.5 56.4 3.4 3.8 1.7 3.4 6.9 1.5 50.4-69 48.6-82.5 71.4-172.8 12.3 23.4 44.1 36 69.3 36 106.2 0 153.9-103.5 153.9-196.8C384 71.3 298.2 6.5 204 6.5z"]},n.eG=n.DF},50416:function(r,n){"use strict";n.DF={prefix:"fab",iconName:"snapchat",icon:[512,512,[62124,"snapchat-ghost"],"f2ab","M496.926,366.6c-3.373-9.176-9.8-14.086-17.112-18.153-1.376-.806-2.641-1.451-3.72-1.947-2.182-1.128-4.414-2.22-6.634-3.373-22.8-12.09-40.609-27.341-52.959-45.42a102.889,102.889,0,0,1-9.089-16.12c-1.054-3.013-1-4.724-.248-6.287a10.221,10.221,0,0,1,2.914-3.038c3.918-2.591,7.96-5.22,10.7-6.993,4.885-3.162,8.754-5.667,11.246-7.44,9.362-6.547,15.909-13.5,20-21.278a42.371,42.371,0,0,0,2.1-35.191c-6.2-16.318-21.613-26.449-40.287-26.449a55.543,55.543,0,0,0-11.718,1.24c-1.029.224-2.059.459-3.063.72.174-11.16-.074-22.94-1.066-34.534-3.522-40.758-17.794-62.123-32.674-79.16A130.167,130.167,0,0,0,332.1,36.443C309.515,23.547,283.91,17,256,17S202.6,23.547,180,36.443a129.735,129.735,0,0,0-33.281,26.783c-14.88,17.038-29.152,38.44-32.673,79.161-.992,11.594-1.24,23.435-1.079,34.533-1-.26-2.021-.5-3.051-.719a55.461,55.461,0,0,0-11.717-1.24c-18.687,0-34.125,10.131-40.3,26.449a42.423,42.423,0,0,0,2.046,35.228c4.105,7.774,10.652,14.731,20.014,21.278,2.48,1.736,6.361,4.24,11.246,7.44,2.641,1.711,6.5,4.216,10.28,6.72a11.054,11.054,0,0,1,3.3,3.311c.794,1.624.818,3.373-.36,6.6a102.02,102.02,0,0,1-8.94,15.785c-12.077,17.669-29.363,32.648-51.434,44.639C32.355,348.608,20.2,352.75,15.069,366.7c-3.868,10.528-1.339,22.506,8.494,32.6a49.137,49.137,0,0,0,12.4,9.387,134.337,134.337,0,0,0,30.342,12.139,20.024,20.024,0,0,1,6.126,2.741c3.583,3.137,3.075,7.861,7.849,14.78a34.468,34.468,0,0,0,8.977,9.127c10.019,6.919,21.278,7.353,33.207,7.811,10.776.41,22.989.881,36.939,5.481,5.778,1.91,11.78,5.605,18.736,9.92C194.842,480.951,217.707,495,255.973,495s61.292-14.123,78.118-24.428c6.907-4.24,12.872-7.9,18.489-9.758,13.949-4.613,26.163-5.072,36.939-5.481,11.928-.459,23.187-.893,33.206-7.812a34.584,34.584,0,0,0,10.218-11.16c3.434-5.84,3.348-9.919,6.572-12.771a18.971,18.971,0,0,1,5.753-2.629A134.893,134.893,0,0,0,476.02,408.71a48.344,48.344,0,0,0,13.019-10.193l.124-.149C498.389,388.5,500.708,376.867,496.926,366.6Zm-34.013,18.277c-20.745,11.458-34.533,10.23-45.259,17.137-9.114,5.865-3.72,18.513-10.342,23.076-8.134,5.617-32.177-.4-63.239,9.858-25.618,8.469-41.961,32.822-88.038,32.822s-62.036-24.3-88.076-32.884c-31-10.255-55.092-4.241-63.239-9.858-6.609-4.563-1.24-17.211-10.341-23.076-10.739-6.907-24.527-5.679-45.26-17.075-13.206-7.291-5.716-11.8-1.314-13.937,75.143-36.381,87.133-92.552,87.666-96.719.645-5.046,1.364-9.014-4.191-14.148-5.369-4.96-29.189-19.7-35.8-24.316-10.937-7.638-15.748-15.264-12.2-24.638,2.48-6.485,8.531-8.928,14.879-8.928a27.643,27.643,0,0,1,5.965.67c12,2.6,23.659,8.617,30.392,10.242a10.749,10.749,0,0,0,2.48.335c3.6,0,4.86-1.811,4.612-5.927-.768-13.132-2.628-38.725-.558-62.644,2.84-32.909,13.442-49.215,26.04-63.636,6.051-6.932,34.484-36.976,88.857-36.976s82.88,29.92,88.931,36.827c12.611,14.421,23.225,30.727,26.04,63.636,2.071,23.919.285,49.525-.558,62.644-.285,4.327,1.017,5.927,4.613,5.927a10.648,10.648,0,0,0,2.48-.335c6.745-1.624,18.4-7.638,30.4-10.242a27.641,27.641,0,0,1,5.964-.67c6.386,0,12.4,2.48,14.88,8.928,3.546,9.374-1.24,17-12.189,24.639-6.609,4.612-30.429,19.343-35.8,24.315-5.568,5.134-4.836,9.1-4.191,14.149.533,4.228,12.511,60.4,87.666,96.718C468.629,373.011,476.119,377.524,462.913,384.877Z"]},n.ct=n.DF},67732:function(r,n){"use strict";n.DF={prefix:"fab",iconName:"spotify",icon:[496,512,[],"f1bc","M248 8C111.1 8 0 119.1 0 256s111.1 248 248 248 248-111.1 248-248S384.9 8 248 8zm100.7 364.9c-4.2 0-6.8-1.3-10.7-3.6-62.4-37.6-135-39.2-206.7-24.5-3.9 1-9 2.6-11.9 2.6-9.7 0-15.8-7.7-15.8-15.8 0-10.3 6.1-15.2 13.6-16.8 81.9-18.1 165.6-16.5 237 26.2 6.1 3.9 9.7 7.4 9.7 16.5s-7.1 15.4-15.2 15.4zm26.9-65.6c-5.2 0-8.7-2.3-12.3-4.2-62.5-37-155.7-51.9-238.6-29.4-4.8 1.3-7.4 2.6-11.9 2.6-10.7 0-19.4-8.7-19.4-19.4s5.2-17.8 15.5-20.7c27.8-7.8 56.2-13.6 97.8-13.6 64.9 0 127.6 16.1 177 45.5 8.1 4.8 11.3 11 11.3 19.7-.1 10.8-8.5 19.5-19.4 19.5zm31-76.2c-5.2 0-8.4-1.3-12.9-3.9-71.2-42.5-198.5-52.7-280.9-29.7-3.6 1-8.1 2.6-12.9 2.6-13.2 0-23.3-10.3-23.3-23.6 0-13.6 8.4-21.3 17.4-23.9 35.2-10.3 74.6-15.2 117.5-15.2 73 0 149.5 15.2 205.4 47.8 7.8 4.5 12.9 10.7 12.9 22.6 0 13.6-11 23.3-23.2 23.3z"]},n.H=n.DF},41153:function(r,n){"use strict";n.DF={prefix:"fab",iconName:"tiktok",icon:[448,512,[],"e07b","M448,209.91a210.06,210.06,0,0,1-122.77-39.25V349.38A162.55,162.55,0,1,1,185,188.31V278.2a74.62,74.62,0,1,0,52.23,71.18V0l88,0a121.18,121.18,0,0,0,1.86,22.17h0A122.18,122.18,0,0,0,381,102.39a121.43,121.43,0,0,0,67,20.14Z"]},n.AB=n.DF},55838:function(r,n){"use strict";n.DF={prefix:"fab",iconName:"tumblr",icon:[320,512,[],"f173","M309.8 480.3c-13.6 14.5-50 31.7-97.4 31.7-120.8 0-147-88.8-147-140.6v-144H17.9c-5.5 0-10-4.5-10-10v-68c0-7.2 4.5-13.6 11.3-16 62-21.8 81.5-76 84.3-117.1.8-11 6.5-16.3 16.1-16.3h70.9c5.5 0 10 4.5 10 10v115.2h83c5.5 0 10 4.4 10 9.9v81.7c0 5.5-4.5 10-10 10h-83.4V360c0 34.2 23.7 53.6 68 35.8 4.8-1.9 9-3.2 12.7-2.2 3.5.9 5.8 3.4 7.4 7.9l22 64.3c1.8 5 3.3 10.6-.4 14.5z"]},n.yY=n.DF},8785:function(r,n){"use strict";n.DF={prefix:"fab",iconName:"vimeo",icon:[448,512,[],"f40a","M403.2 32H44.8C20.1 32 0 52.1 0 76.8v358.4C0 459.9 20.1 480 44.8 480h358.4c24.7 0 44.8-20.1 44.8-44.8V76.8c0-24.7-20.1-44.8-44.8-44.8zM377 180.8c-1.4 31.5-23.4 74.7-66 129.4-44 57.2-81.3 85.8-111.7 85.8-18.9 0-34.8-17.4-47.9-52.3-25.5-93.3-36.4-148-57.4-148-2.4 0-10.9 5.
11-25.4 15.2l-15.2-19.6c37.3-32.8 72.9-69.2 95.2-71.2 25.2-2.4 40.7 14.8 46.5 51.7 20.7 131.2 29.9 151 67.6 91.6 13.5-21.4 20.8-37.7 21.8-48.9 3.5-33.2-25.9-30.9-45.8-22.4 15.9-52.1 46.3-77.4 91.2-76 33.3.9 49 22.5 47.1 64.7z"]},n.xL=n.DF},80147:function(r,n){"use strict";n.DF={prefix:"fab",iconName:"x-twitter",icon:[512,512,[],"e61b","M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"]},n.NC=n.DF},28138:function(r,n){"use strict";n.DF={prefix:"fab",iconName:"youtube",icon:[576,512,[61802],"f167","M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"]},n.op=n.DF},81511:function(r,n){"use strict";n.DF={prefix:"fas",iconName:"envelope",icon:[512,512,[128386,9993,61443],"f0e0","M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48L48 64zM0 176L0 384c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-208L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z"]},n.FU=n.DF},57982:function(r,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i="magnifying-glass",o=[128269,"search"],a="f002",s="M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z";n.definition={prefix:"fas",iconName:i,icon:[512,512,o,a,s]},n.faMagnifyingGlass=n.definition,n.prefix="fas",n.iconName=i,n.width=512,n.height=512,n.ligatures=o,n.unicode=a,n.svgPathData=s,n.aliases=o},33020:function(r,n){"use strict";n.DF={prefix:"fas",iconName:"rss",icon:[448,512,["feed"],"f09e","M0 64C0 46.3 14.3 32 32 32c229.8 0 416 186.2 416 416c0 17.7-14.3 32-32 32s-32-14.3-32-32C384 253.6 226.4 96 32 96C14.3 96 0 81.7 0 64zM0 416a64 64 0 1 1 128 0A64 64 0 1 1 0 416zM32 160c159.1 0 288 128.9 288 288c0 17.7-14.3 32-32 32s-32-14.3-32-32c0-123.7-100.3-224-224-224c-17.7 0-32-14.3-32-32s14.3-32 32-32z"]},n.Fw=n.DF},95337:function(r,n,i){"use strict";var o=i(57982);n.DF={prefix:o.prefix,iconName:o.iconName,icon:[o.width,o.height,o.aliases,o.unicode,o.svgPathData]},n.wn=n.DF,o.prefix,o.iconName,o.width,o.height,o.aliases,o.unicode,o.svgPathData,o.aliases},53359:function(r,n){"use strict";n.DF={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480L40 480c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},n.ik=n.DF},28442:function(r,n){"use strict";n.Z=function(r){return"string"==typeof r}},78298:function(r,n,i){"use strict";var o=i(64836);n.Z=void 0;var a=o(i(64938)),s=i(85893);n.Z=(0,a.default)((0,s.jsx)("path",{d:"M17.77 3.77 16 2 6 12l10 10 1.77-1.77L9.54 12z"}),"ArrowBackIosNew")},67976:function(r,n,i){"use strict";var o=i(64836);n.Z=void 0;var a=o(i(64938)),s=i(85893);n.Z=(0,a.default)((0,s.jsx)("path",{d:"M22 12c0-5.52-4.48-10-10-10S2 6.48 2 12s4.48 10 10 10 10-4.48 10-10m-10 1H8v-2h4V8l4 4-4 4z"}),"ArrowCircleRight")},13379:function(r,n,i){"use strict";var o=i(64836);n.Z=void 0;var a=o(i(64938)),s=i(85893);n.Z=(0,a.default)((0,s.jsx)("path",{d:"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"}),"ArrowForwardIos")},19572:function(r,n,i){"use strict";var o=i(64836);n.Z=void 0;var a=o(i(64938)),s=i(85893);n.Z=(0,a.default)((0,s.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft")},11817:function(r,n,i){"use strict";var o=i(64836);n.Z=void 0;var a=o(i(64938)),s=i(85893);n.Z=(0,a.default)((0,s.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight")},50594:function(r,n,i){"use strict";var o=i(64836);n.Z=void 0;var a=o(i(64938)),s=i(85893);n.Z=(0,a.default)((0,s.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},23508:function(r,n,i){"use strict";var o=i(64836);n.Z=void 0;var a=o(i(64938)),s=i(85893);n.Z=(0,a.default)((0,s.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore")},69773:function(r,n,i){"use strict";var o=i(64836);n.Z=void 0;var a=o(i(64938)),s=i(85893);n.Z=(0,a.default)((0,s.jsx)("path",{d:"m16 5-1.42 1.42-1.59-1.59V16h-1.98V4.83L9.42 6.42 8 5l4-4zm4 5v11c0 1.1-.9 2-2 2H6c-1.11 0-2-.9-2-2V10c0-1.11.89-2 2-2h3v2H6v11h12V10h-3V8h3c1.1 0 2 .89 2 2"}),"IosShare")},326:function(r,n,i){"use strict";var o=i(64836);n.Z=void 0;var a=o(i(64938)),s=i(85893);n.Z=(0,a.default)((0,s.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu")},42761:function(r,n,i){"use strict";var o=i(64836);n.Z=void 0;var a=o(i(64938)),s=i(85893);n.Z=(0,a.default)((0,s.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search")},64938:function(r,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.createSvgIcon}});var o=i(60449)},21737:function(r,n,i){"use strict";i.d(n,{Z:function(){return D}});var o,a=i(63366),s=i(87462),l=i(67294),c=i(93680),u=i(94780),d=i(8423),h=i(90948),p=i(71657),f=i(98216),m=i(55113),g=i(34867),v=i(1588);function y(r){return(0,g.ZP)("MuiAlert",r)}let b=(0,v.Z)("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);var x=i(93946),_=i(82066),w=i(85893),S=(0,_.Z)((0,w.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}
1),"SuccessOutlined"),T=(0,_.Z)((0,w.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),E=(0,_.Z)((0,w.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),k=(0,_.Z)((0,w.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),C=(0,_.Z)((0,w.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");let P=["action","children","className","closeText","color","icon","iconMapping","onClose","role","severity","variant"],O=r=>{let{variant:n,color:i,severity:o,classes:a}=r,s={root:["root",`${n}${(0,f.Z)(i||o)}`,`${n}`],icon:["icon"],message:["message"],action:["action"]};return(0,u.Z)(s,y,a)},j=(0,h.ZP)(m.Z,{name:"MuiAlert",slot:"Root",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[n.root,n[i.variant],n[`${i.variant}${(0,f.Z)(i.color||i.severity)}`]]}})(({theme:r,ownerState:n})=>{let i="light"===r.palette.mode?d._j:d.$n,o="light"===r.palette.mode?d.$n:d._j,a=n.color||n.severity;return(0,s.Z)({},r.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},a&&"standard"===n.variant&&{color:r.vars?r.vars.palette.Alert[`${a}Color`]:i(r.palette[a].light,.6),backgroundColor:r.vars?r.vars.palette.Alert[`${a}StandardBg`]:o(r.palette[a].light,.9),[`& .${b.icon}`]:r.vars?{color:r.vars.palette.Alert[`${a}IconColor`]}:{color:"dark"===r.palette.mode?r.palette[a].main:r.palette[a].light}},a&&"outlined"===n.variant&&{color:r.vars?r.vars.palette.Alert[`${a}Color`]:i(r.palette[a].light,.6),border:`1px solid ${(r.vars||r).palette[a].light}`,[`& .${b.icon}`]:r.vars?{color:r.vars.palette.Alert[`${a}IconColor`]}:{color:"dark"===r.palette.mode?r.palette[a].main:r.palette[a].light}},a&&"filled"===n.variant&&(0,s.Z)({fontWeight:r.typography.fontWeightMedium},r.vars?{color:r.vars.palette.Alert[`${a}FilledColor`],backgroundColor:r.vars.palette.Alert[`${a}FilledBg`]}:{backgroundColor:"dark"===r.palette.mode?r.palette[a].dark:r.palette[a].main,color:r.palette.getContrastText("dark"===r.palette.mode?r.palette[a].dark:r.palette[a].main)}))}),A=(0,h.ZP)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(r,n)=>n.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),M=(0,h.ZP)("div",{name:"MuiAlert",slot:"Message",overridesResolver:(r,n)=>n.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),I=(0,h.ZP)("div",{name:"MuiAlert",slot:"Action",overridesResolver:(r,n)=>n.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Z={success:(0,w.jsx)(S,{fontSize:"inherit"}),warning:(0,w.jsx)(T,{fontSize:"inherit"}),error:(0,w.jsx)(E,{fontSize:"inherit"}),info:(0,w.jsx)(k,{fontSize:"inherit"})},R=l.forwardRef(function(r,n){let i=(0,p.Z)({props:r,name:"MuiAlert"}),{action:l,children:u,className:d,closeText:h="Close",color:f,icon:m,iconMapping:g=Z,onClose:v,role:y="alert",severity:b="success",variant:_="standard"}=i,S=(0,a.Z)(i,P),T=(0,s.Z)({},i,{color:f,severity:b,variant:_}),E=O(T);return(0,w.jsxs)(j,(0,s.Z)({role:y,elevation:0,ownerState:T,className:(0,c.Z)(E.root,d),ref:n},S,{children:[!1!==m?(0,w.jsx)(A,{ownerState:T,className:E.icon,children:m||g[b]||Z[b]}):null,(0,w.jsx)(M,{ownerState:T,className:E.message,children:u}),null!=l?(0,w.jsx)(I,{ownerState:T,className:E.action,children:l}):null,null==l&&v?(0,w.jsx)(I,{ownerState:T,className:E.action,children:(0,w.jsx)(x.Z,{size:"small","aria-label":h,title:h,color:"inherit",onClick:v,children:o||(o=(0,w.jsx)(C,{fontSize:"small"}))})}):null]}))});var D=R},84808:function(r,n,i){"use strict";i.d(n,{Z:function(){return x}});var o=i(63366),a=i(87462),s=i(67294),l=i(93680),c=i(94780),u=i(90948),d=i(71657),h=i(16628),p=i(34867);function f(r){return(0,p.ZP)("MuiBackdrop",r)}(0,i(1588).Z)("MuiBackdrop",["root","invisible"]);var m=i(85893);let g=["children","component","components","componentsProps","className","invisible","open","transitionDuration","TransitionComponent"],v=r=>{let{classes:n,invisible:i}=r;return(0,c.Z)({root:["root",i&&"invisible"]},f,n)},y=(0,u.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[n.root,i.invisible&&n.invisible]}})(({ownerState:r})=>(0,a.Z)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},r.invisible&&{backgroundColor:"transparent"})),b=s.forwardRef(function(r,n){var i,s;let c=(0,d.Z)({props:r,name:"MuiBackdrop"}),{children:u,component:p="div",components:f={},componentsProps:b={},className:x,invisible:_=!1,open:w,transitionDuration:S,TransitionComponent:T=h.Z}=c,E=(0,o.Z)(c,g),k=(0,a.Z)({},c,{component:p,invisible:_}),C=v(k);return(0,m.jsx)(T,(0,a.Z)({in:w,timeout:S},E,{children:(0,m.jsx)(y,{"aria-hidden":!0,as:null!=(i=f.Root)?i:p,className:(0,l.Z)(C.root,x),ownerState:(0,a.Z)({},k,null==(s=b.root)?void 0:s.ownerState),classes:C,ref:n,children:u})}))});var x=b},87357:function(r,n,i){"use strict";i.d(n,{Z:function(){return b}});var o=i(87462),a=i(63366),s=i(67294),l=i(90512),c=i(78883),u=i(86523),d=i(39707),h=i(96682),p=i(85893);let f=["className","component"];var m=i(37078),g=i(36076);let v=(0,g.Z)(),y=function(r={}){let{themeId:n,defaultTheme:i,defaultClassName:m="MuiBox-root",generateClassName:g}=r,v=(0,c.ZP)("div",{shouldForwardProp:r=>"theme"!==r&&"sx"!==r&&"as"!==r})(u.Z),y=s.forwardRef(function(r,s){let c=(0,h.Z)(i),u=(0,d.Z)(r),{className:y,component:b="div"}=u,x=(0,a.Z)(u,f);return(0,p.jsx)(v,(0,o.Z)({as:b,ref:s,className:(0,l.Z)(y,g?g(m):m),theme:n&&c[n]||c},x))});return y}({defaultTheme:v,defaultClassName:"MuiBox-root",generateClassName:m.Z.generate});var b=y},83321:function(r,n,i){"use strict";i.d(n,{Z:function(){return j}});var o=i(63366),a=i(87462),s=i(67294),l=i(93680),c=i(35971),u=i(94780),d=i(8423),h=i(90948),p=i(71657),f=i(82607),m=i(98216),g=i(34867),v=i(1588);function y(r){return(0,g.ZP)("MuiButton",r)}let b=(0,v.Z)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),x=s.createContext({});var _=i(85893);let w=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],S=["root"],T=r=>{let{color:n,disableElevation:i,fullWidth:o,size:s,variant:l,classes:c}=r,d={root:["root",l,`${l}${(0,m.Z)(n)}`,`size${(0,m.Z)(s)}`,`${l}Size${(0,m.Z)(s)}`,"inherit"===n&&"colorInherit",i&&"disableElevation",o&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${(0,m.Z)(s)}`],endIcon:["endIcon",`iconSize${(0,m.Z)(s)}`]},h=(0,u.Z)(d,y,c);return(0,a.Z)({},c,h)},E=r=>(0,a.Z)({},"small"===r.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===r.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===r.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),k=(0,h.ZP)(f.Z,{shouldForwardProp:r=>(0,h.FO)(r)||"classes"===r,name:"MuiButton",slot:"Root",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[n.root,n[i.variant],n[`${i.variant}${(0,m.Z)(i.color)}`],n[`size${(0,m.Z)(i.size)}`],n[`${i.variant}Size${(0,m.Z)(i.size)}`],"inherit"===i.color&&n.colorInherit,i.disableElevation&&n.disableElevation,i.fullWidth&&n.fullWidth]}})(({theme:r,ownerState:n})=>{var i,o;return(0,a.Z)({},r.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(r.vars||r).shape.borderRadius,transition:r.transitions.create(["background-color","box-shadow","border-color","color"],{duration:r.transitions.duration.short}),"&:hover":(0,a.Z)({textDecoration:"none",backgroundColor:r.vars?`rgba(${r.vars.palette.text.primaryChannel} / ${r.vars.palette.action.hoverOpacity})`:(0,d.Fq)(r.palette.text.primary,r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===n.variant&&"inherit"!==n.color&&{backgroundColor:r.vars?`rgba(${r.vars.palette[n.color].mainCh
1annel} / ${r.vars.palette.action.hoverOpacity})`:(0,d.Fq)(r.palette[n.color].main,r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===n.variant&&"inherit"!==n.color&&{border:`1px solid ${(r.vars||r).palette[n.color].main}`,backgroundColor:r.vars?`rgba(${r.vars.palette[n.color].mainChannel} / ${r.vars.palette.action.hoverOpacity})`:(0,d.Fq)(r.palette[n.color].main,r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===n.variant&&{backgroundColor:(r.vars||r).palette.grey.A100,boxShadow:(r.vars||r).shadows[4],"@media (hover: none)":{boxShadow:(r.vars||r).shadows[2],backgroundColor:(r.vars||r).palette.grey[300]}},"contained"===n.variant&&"inherit"!==n.color&&{backgroundColor:(r.vars||r).palette[n.color].dark,"@media (hover: none)":{backgroundColor:(r.vars||r).palette[n.color].main}}),"&:active":(0,a.Z)({},"contained"===n.variant&&{boxShadow:(r.vars||r).shadows[8]}),[`&.${b.focusVisible}`]:(0,a.Z)({},"contained"===n.variant&&{boxShadow:(r.vars||r).shadows[6]}),[`&.${b.disabled}`]:(0,a.Z)({color:(r.vars||r).palette.action.disabled},"outlined"===n.variant&&{border:`1px solid ${(r.vars||r).palette.action.disabledBackground}`},"outlined"===n.variant&&"secondary"===n.color&&{border:`1px solid ${(r.vars||r).palette.action.disabled}`},"contained"===n.variant&&{color:(r.vars||r).palette.action.disabled,boxShadow:(r.vars||r).shadows[0],backgroundColor:(r.vars||r).palette.action.disabledBackground})},"text"===n.variant&&{padding:"6px 8px"},"text"===n.variant&&"inherit"!==n.color&&{color:(r.vars||r).palette[n.color].main},"outlined"===n.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===n.variant&&"inherit"!==n.color&&{color:(r.vars||r).palette[n.color].main,border:r.vars?`1px solid rgba(${r.vars.palette[n.color].mainChannel} / 0.5)`:`1px solid ${(0,d.Fq)(r.palette[n.color].main,.5)}`},"contained"===n.variant&&{color:r.vars?r.vars.palette.text.primary:null==(i=(o=r.palette).getContrastText)?void 0:i.call(o,r.palette.grey[300]),backgroundColor:(r.vars||r).palette.grey[300],boxShadow:(r.vars||r).shadows[2]},"contained"===n.variant&&"inherit"!==n.color&&{color:(r.vars||r).palette[n.color].contrastText,backgroundColor:(r.vars||r).palette[n.color].main},"inherit"===n.color&&{color:"inherit",borderColor:"currentColor"},"small"===n.size&&"text"===n.variant&&{padding:"4px 5px",fontSize:r.typography.pxToRem(13)},"large"===n.size&&"text"===n.variant&&{padding:"8px 11px",fontSize:r.typography.pxToRem(15)},"small"===n.size&&"outlined"===n.variant&&{padding:"3px 9px",fontSize:r.typography.pxToRem(13)},"large"===n.size&&"outlined"===n.variant&&{padding:"7px 21px",fontSize:r.typography.pxToRem(15)},"small"===n.size&&"contained"===n.variant&&{padding:"4px 10px",fontSize:r.typography.pxToRem(13)},"large"===n.size&&"contained"===n.variant&&{padding:"8px 22px",fontSize:r.typography.pxToRem(15)},n.fullWidth&&{width:"100%"})},({ownerState:r})=>r.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${b.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${b.disabled}`]:{boxShadow:"none"}}),C=(0,h.ZP)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[n.startIcon,n[`iconSize${(0,m.Z)(i.size)}`]]}})(({ownerState:r})=>(0,a.Z)({display:"inherit",marginRight:8,marginLeft:-4},"small"===r.size&&{marginLeft:-2},E(r))),P=(0,h.ZP)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[n.endIcon,n[`iconSize${(0,m.Z)(i.size)}`]]}})(({ownerState:r})=>(0,a.Z)({display:"inherit",marginRight:-4,marginLeft:8},"small"===r.size&&{marginRight:-2},E(r))),O=s.forwardRef(function(r,n){let i=s.useContext(x),u=(0,c.Z)(i,r),d=(0,p.Z)({props:u,name:"MuiButton"}),{children:h,color:f="primary",component:m="button",className:g,disabled:v=!1,disableElevation:y=!1,disableFocusRipple:b=!1,endIcon:E,focusVisibleClassName:O,fullWidth:j=!1,size:A="medium",startIcon:M,type:I,variant:Z="text"}=d,R=(0,o.Z)(d,w),D=(0,a.Z)({},d,{color:f,component:m,disabled:v,disableElevation:y,disableFocusRipple:b,fullWidth:j,size:A,type:I,variant:Z}),L=T(D),{root:z}=L,B=(0,o.Z)(L,S),F=M&&(0,_.jsx)(C,{className:B.startIcon,ownerState:D,children:M}),N=E&&(0,_.jsx)(P,{className:B.endIcon,ownerState:D,children:E});return(0,_.jsxs)(k,(0,a.Z)({ownerState:D,className:(0,l.Z)(i.className,z,g),component:m,disabled:v,focu
1sRipple:!b,focusVisibleClassName:(0,l.Z)(B.focusVisible,O),ref:n,type:I},R,{classes:B,children:[F,h,N]}))});var j=O},82607:function(r,n,i){"use strict";let o,a,s,l;i.d(n,{Z:function(){return q}});var c=i(87462),u=i(63366),d=i(67294),h=i(93680),p=i(94780),f=i(90948),m=i(71657),g=i(51705),v=i(2068),y=i(39184),b=i(97326),x=i(94578),_=i(220);function w(r,n){var i=Object.create(null);return r&&d.Children.map(r,function(r){return r}).forEach(function(r){i[r.key]=n&&(0,d.isValidElement)(r)?n(r):r}),i}function S(r,n,i){return null!=i[n]?i[n]:r.props[n]}var T=Object.values||function(r){return Object.keys(r).map(function(n){return r[n]})},E=function(r){function n(n,i){var o,a=(o=r.call(this,n,i)||this).handleExited.bind((0,b.Z)(o));return o.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},o}(0,x.Z)(n,r);var i=n.prototype;return i.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},i.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(r,n){var i,o,a=n.children,s=n.handleExited;return{children:n.firstRender?w(r.children,function(n){return(0,d.cloneElement)(n,{onExited:s.bind(null,n),in:!0,appear:S(n,"appear",r),enter:S(n,"enter",r),exit:S(n,"exit",r)})}):(Object.keys(o=function(r,n){function i(i){return i in n?n[i]:r[i]}r=r||{},n=n||{};var o,a=Object.create(null),s=[];for(var l in r)l in n?s.length&&(a[l]=s,s=[]):s.push(l);var c={};for(var u in n){if(a[u])for(o=0;o<a[u].length;o++){var d=a[u][o];c[a[u][o]]=i(d)}c[u]=i(u)}for(o=0;o<s.length;o++)c[s[o]]=i(s[o]);return c}(a,i=w(r.children))).forEach(function(n){var l=o[n];if((0,d.isValidElement)(l)){var c=n in a,u=n in i,h=a[n],p=(0,d.isValidElement)(h)&&!h.props.in;u&&(!c||p)?o[n]=(0,d.cloneElement)(l,{onExited:s.bind(null,l),in:!0,exit:S(l,"exit",r),enter:S(l,"enter",r)}):u||!c||p?u&&c&&(0,d.isValidElement)(h)&&(o[n]=(0,d.cloneElement)(l,{onExited:s.bind(null,l),in:h.props.in,exit:S(l,"exit",r),enter:S(l,"enter",r)})):o[n]=(0,d.cloneElement)(l,{in:!1})}}),o),firstRender:!1}},i.handleExited=function(r,n){var i=w(this.props.children);r.key in i||(r.props.onExited&&r.props.onExited(n),this.mounted&&this.setState(function(n){var i=(0,c.Z)({},n.children);return delete i[r.key],{children:i}}))},i.render=function(){var r=this.props,n=r.component,i=r.childFactory,o=(0,u.Z)(r,["component","childFactory"]),a=this.state.contextValue,s=T(this.state.children).map(i);return(delete o.appear,delete o.enter,delete o.exit,null===n)?d.createElement(_.Z.Provider,{value:a},s):d.createElement(_.Z.Provider,{value:a},d.createElement(n,o,s))},n}(d.Component);E.propTypes={},E.defaultProps={component:"div",childFactory:function(r){return r}};var k=i(70917),C=i(85893),P=i(1588);let O=(0,P.Z)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),j=["center","classes","className"],A=(0,k.F4)(o||(o=(r=>r)` 2 0% { 3 transform: scale(0); 4 opacity: 0.1; 5 } 6 7 100% { 8 transform: scale(1); 9 opacity: 0.3; 10 } 11`)),M=(0,k.F4)(a||(a=(r=>r)` 12 0% { 13 opacity: 1; 14 } 15 16 100% { 17 opacity: 0; 18 } 19`)),I=(0,k.F4)(s||(s=(r=>r)` 20 0% { 21 transform: scale(1); 22 } 23 24 50% { 25 transform: scale(0.92); 26 } 27 28 100% { 29 transform: scale(1); 30 } 31`)),Z=(0,f.ZP)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),R=(0,f.ZP)(function(r){let{className:n,classes:i,pulsate:o=!1,rippleX:a,rippleY:s,rippleSize:l,in:c,onExited:u,timeout:p}=r,[f,m]=d.useState(!1),g=(0,h.Z)(n,i.ripple,i.rippleVisible,o&&i.ripplePulsate),v=(0,h.Z)(i.child,f&&i.childLeaving,o&&i.childPulsate);return c||f||m(!0),d.useEffect(()=>{if(!c&&null!=u){let r=setTimeout(u,p);return()=>{clearTimeout(r)}}},[u,c,p]),(0,C.jsx)("span",{className:g,style:{width:l,height:l,top:-(l/2)+s,left:-(l/2)+a},children:(0,C.jsx)("span",{className:v})})},{name:"MuiTouchRipple",slot:"Ripple"})(l||(l=(r=>r)` 32 opacity: 0; 33 position: absolute; 34 35 &.${0} { 36 opacity: 0.3; 37 transform: scale(1); 38 animation-name: ${0}; 39 animation-duration: ${0}ms; 40 animation-timing-function: ${0}; 41 } 42 43 &.${0} { 44 animation-duration: ${0}ms; 45 } 46 47 & .${0} { 48 opacity: 1; 49 display: block; 50 width: 100%; 51 height: 100%; 52 border-radius: 50%; 53 background-color: currentColor; 54 } 55 56 & .${0} { 57 opacity: 0; 58 animation-name: ${0}; 59 animation-duration: ${0}ms; 60 animation-timing-function: ${0}; 61 } 62 63 & .${0} { 64 position: absolute; 65 /* @noflip */ 66 left: 0px; 67 top: 0; 68 animation-name: ${0}; 69 animation-duration: 2500ms; 70 animation-timing-function: ${0}; 71 animation-iteration-count: infinite; 72 animation-delay: 200ms; 73 } 74`),O.rippleVisible,A,550,({theme:r})=>r.transitions.easing.easeInOut,O.ripplePulsate,({theme:r})=>r.transitions.duration.shorter,O.child,O.childLeaving,M,550,({theme:r})=>
74r.transitions.easing.easeInOut,O.childPulsate,I,({theme:r})=>r.transitions.easing.easeInOut),D=d.forwardRef(function(r,n){let i=(0,m.Z)({props:r,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:s}=i,l=(0,u.Z)(i,j),[p,f]=d.useState([]),g=d.useRef(0),v=d.useRef(null);d.useEffect(()=>{v.current&&(v.current(),v.current=null)},[p]);let y=d.useRef(!1),b=d.useRef(null),x=d.useRef(null),_=d.useRef(null);d.useEffect(()=>()=>{clearTimeout(b.current)},[]);let w=d.useCallback(r=>{let{pulsate:n,rippleX:i,rippleY:o,rippleSize:s,cb:l}=r;f(r=>[...r,(0,C.jsx)(R,{classes:{ripple:(0,h.Z)(a.ripple,O.ripple),rippleVisible:(0,h.Z)(a.rippleVisible,O.rippleVisible),ripplePulsate:(0,h.Z)(a.ripplePulsate,O.ripplePulsate),child:(0,h.Z)(a.child,O.child),childLeaving:(0,h.Z)(a.childLeaving,O.childLeaving),childPulsate:(0,h.Z)(a.childPulsate,O.childPulsate)},timeout:550,pulsate:n,rippleX:i,rippleY:o,rippleSize:s},g.current)]),g.current+=1,v.current=l},[a]),S=d.useCallback((r={},n={},i)=>{let a,s,l;let{pulsate:c=!1,center:u=o||n.pulsate,fakeElement:d=!1}=n;if((null==r?void 0:r.type)==="mousedown"&&y.current){y.current=!1;return}(null==r?void 0:r.type)==="touchstart"&&(y.current=!0);let h=d?null:_.current,p=h?h.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(!u&&void 0!==r&&(0!==r.clientX||0!==r.clientY)&&(r.clientX||r.touches)){let{clientX:n,clientY:i}=r.touches&&r.touches.length>0?r.touches[0]:r;a=Math.round(n-p.left),s=Math.round(i-p.top)}else a=Math.round(p.width/2),s=Math.round(p.height/2);if(u)(l=Math.sqrt((2*p.width**2+p.height**2)/3))%2==0&&(l+=1);else{let r=2*Math.max(Math.abs((h?h.clientWidth:0)-a),a)+2,n=2*Math.max(Math.abs((h?h.clientHeight:0)-s),s)+2;l=Math.sqrt(r**2+n**2)}null!=r&&r.touches?null===x.current&&(x.current=()=>{w({pulsate:c,rippleX:a,rippleY:s,rippleSize:l,cb:i})},b.current=setTimeout(()=>{x.current&&(x.current(),x.current=null)},80)):w({pulsate:c,rippleX:a,rippleY:s,rippleSize:l,cb:i})},[o,w]),T=d.useCallback(()=>{S({},{pulsate:!0})},[S]),k=d.useCallback((r,n)=>{if(clearTimeout(b.current),(null==r?void 0:r.type)==="touchend"&&x.current){x.current(),x.current=null,b.current=setTimeout(()=>{k(r,n)});return}x.current=null,f(r=>r.length>0?r.slice(1):r),v.current=n},[]);return d.useImperativeHandle(n,()=>({pulsate:T,start:S,stop:k}),[T,S,k]),(0,C.jsx)(Z,(0,c.Z)({className:(0,h.Z)(O.root,a.root,s),ref:_},l,{children:(0,C.jsx)(E,{component:null,exit:!0,children:p})}))});var L=i(34867);function z(r){return(0,L.ZP)("MuiButtonBase",r)}let B=(0,P.Z)("MuiButtonBase",["root","disabled","focusVisible"]),F=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],N=r=>{let{disabled:n,focusVisible:i,focusVisibleClassName:o,classes:a}=r,s=(0,p.Z)({root:["root",n&&"disabled",i&&"focusVisible"]},z,a);return i&&o&&(s.root+=` ${o}`),s},U=(0,f.ZP)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(r,n)=>n.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${B.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),V=d.forwardRef(function(r,n){let i=(0,m.Z)({props:r,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:s,className:l,component:p="button",disabled:f=!1,disableRipple:b=!1,disableTouchRipple:x=!1,focusRipple:_=!1,LinkComponent:w="a",onBlur:S,onClick:T,onContextMenu:E,onDragLeave:k,onFocus:P,onFocusVisible:O,onKeyDown:j,onKeyUp:A,onMouseDown:M,onMouseLeave:I,onMouseUp:Z,onTouchEnd:R,onTouchMove:L,onTouchStart:z,tabIndex:B=0,TouchRippleProps:V,touchRippleRef:q,type:$}=i,G=(0,u.Z)(i,F),W=d.useRef(null),H=d.useRef(null),X=(0,g.Z)(H,q),{isFocusVisibleRef:Y,onFocus:K,onBlur:J,ref:Q}=(0,y.Z)(),[ee,et]=d.useState(!1);f&&ee&&et(!1),d.useImperativeHandle(o,()=>({focusVisible:()=>{et(!0),W.current.focus()}}),[]);
74let[er,en]=d.useState(!1);function ei(r,n,i=x){return(0,v.Z)(o=>(n&&n(o),!i&&H.current&&H.current[r](o),!0))}d.useEffect(()=>{en(!0)},[]),d.useEffect(()=>{ee&&_&&!b&&er&&H.current.pulsate()},[b,_,ee,er]);let eo=ei("start",M),ea=ei("stop",E),es=ei("stop",k),el=ei("stop",Z),ec=ei("stop",r=>{ee&&r.preventDefault(),I&&I(r)}),eu=ei("start",z),ed=ei("stop",R),eh=ei("stop",L),ep=ei("stop",r=>{J(r),!1===Y.current&&et(!1),S&&S(r)},!1),ef=(0,v.Z)(r=>{W.current||(W.current=r.currentTarget),K(r),!0===Y.current&&(et(!0),O&&O(r)),P&&P(r)}),em=()=>{let r=W.current;return p&&"button"!==p&&!("A"===r.tagName&&r.href)},eg=d.useRef(!1),ev=(0,v.Z)(r=>{_&&!eg.current&&ee&&H.current&&" "===r.key&&(eg.current=!0,H.current.stop(r,()=>{H.current.start(r)})),r.target===r.currentTarget&&em()&&" "===r.key&&r.preventDefault(),j&&j(r),r.target===r.currentTarget&&em()&&"Enter"===r.key&&!f&&(r.preventDefault(),T&&T(r))}),ey=(0,v.Z)(r=>{_&&" "===r.key&&H.current&&ee&&!r.defaultPrevented&&(eg.current=!1,H.current.stop(r,()=>{H.current.pulsate(r)})),A&&A(r),T&&r.target===r.currentTarget&&em()&&" "===r.key&&!r.defaultPrevented&&T(r)}),eb=p;"button"===eb&&(G.href||G.to)&&(eb=w);let ex={};"button"===eb?(ex.type=void 0===$?"button":$,ex.disabled=f):(G.href||G.to||(ex.role="button"),f&&(ex["aria-disabled"]=f));let e_=(0,g.Z)(Q,W),ew=(0,g.Z)(n,e_),eS=(0,c.Z)({},i,{centerRipple:a,component:p,disabled:f,disableRipple:b,disableTouchRipple:x,focusRipple:_,tabIndex:B,focusVisible:ee}),eT=N(eS);return(0,C.jsxs)(U,(0,c.Z)({as:eb,className:(0,h.Z)(eT.root,l),ownerState:eS,onBlur:ep,onClick:T,onContextMenu:ea,onFocus:ef,onKeyDown:ev,onKeyUp:ey,onMouseDown:eo,onMouseLeave:ec,onMouseUp:el,onDragLeave:es,onTouchEnd:ed,onTouchMove:eh,onTouchStart:eu,ref:ew,tabIndex:f?-1:B,type:$},ex,G,{children:[s,!er||b||f?null:(0,C.jsx)(D,(0,c.Z)({ref:X,center:a},V))]}))});var q=V},98456:function(r,n,i){"use strict";i.d(n,{Z:function(){return j}});var o=i(63366),a=i(87462),s=i(67294),l=i(93680),c=i(94780),u=i(70917),d=i(98216),h=i(71657),p=i(90948),f=i(34867);function m(r){return(0,f.ZP)("MuiCircularProgress",r)}(0,i(1588).Z)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var g=i(85893);let v=["className","color","disableShrink","size","style","thickness","value","variant"],y=r=>r,b,x,_,w,S=(0,u.F4)(b||(b=y` 75 0% { 76 transform: rotate(0deg); 77 } 78 79 100% { 80 transform: rotate(360deg); 81 } 82`)),T=(0,u.F4)(x||(x=y` 83 0% { 84 stroke-dasharray: 1px, 200px; 85 stroke-dashoffset: 0; 86 } 87 88 50% { 89 stroke-dasharray: 100px, 200px; 90 stroke-dashoffset: -15px; 91 } 92 93 100% { 94 stroke-dasharray: 100px, 200px; 95 stroke-dashoffset: -125px; 96 } 97`)),E=r=>{let{classes:n,variant:i,color:o,disableShrink:a}=r,s={root:["root",i,`color${(0,d.Z)(o)}`],svg:["svg"],circle:["circle",`circle${(0,d.Z)(i)}`,a&&"circleDisableShrink"]};return(0,c.Z)(s,m,n)},k=(0,p.ZP)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[n.root,n[i.variant],n[`color${(0,d.Z)(i.color)}`]]}})(({ownerState:r,theme:n})=>(0,a.Z)({display:"inline-block"},"determinate"===r.variant&&{transition:n.transitions.create("transform")},"inherit"!==r.color&&{color:(n.vars||n).palette[r.color].main}),({ownerState:r})=>"indeterminate"===r.variant&&(0,u.iv)(_||(_=y` 98 animation: ${0} 1.4s linear infinite; 99 `),S)),C=(0,p.ZP)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(r,n)=>n.svg})({display:"block"}),P=(0,p.ZP)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[n.circle,n[`circle${(0,d.Z)(i.variant)}`],i.disableShrink&&n.circleDisableShrink]}})(({ownerState:r,theme:n})=>(0,a.Z)({stroke:"currentColor"},"determinate"===r.variant&&{transition:n.transitions.create("stroke-dashoffset")},"indeterminate"===r.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:r})=>"indeterminate"===r.variant&&!r.disableShrink&&(0,u.iv)(w||(w=y` 100 animation: ${0} 1.4s ease-in-out infinite; 101 `),T)),O=s.forwardRef(function(r,n){let i=(0,h.Z)({props:r,name:"MuiCircularProgress"}),{className:s,color:c="primary",disableShrink:u=!1,size:d=40,style:p,thickness:f=3.6,value:m=0,variant:y="indeterminate"}=i,b=(0,o.Z)(i,v),x=(0,a.Z)({},i,{color:c,disableShrink:u,size:d,thickness:f,value:m,variant:y}),_=E(x),w={},S={},T={};if("determinate"===y){let r=2*Math.PI*((44-f)/2);w.strokeDasharray=r.toFixed(3),T["aria-valuenow"]=Math.round(m),w.strokeDashoffset=`${((100-m)/100*r).toFixed(3)}px`,S.transform="rotate(-90deg)"}return(0,g.jsx)(k,(0,a.Z)({className:(0,l.Z)(_.root,s),style:(0,a.Z)({width:d,height:d},S,p),ownerState:x,ref:n,role:"progressbar"},T,b,{children:(0,g.jsx)(C,{className:_.svg,ownerState:x,viewBox:"22 22 44 44",children:(0,g.jsx)(P,{className:_.circle,style:w,ownerState:x,cx:44,cy:44,r:(44-f)/2,fill:"none",strokeWidth:f})})}))});var j=O},57922:function(r,n,i){"use strict";i.d(n,{Z:function(){return k}});var o=i(63366),a=i(87462),s=i(67294),l=i(93680),c=i(8662),u=i(94780),d=i(90948),h=i(71657),p=i(96067),f=i(30577),m=i(2734),g=i(51705),v=i(34867);function y(r){return(0,v.ZP)("MuiCollapse",r)}(0,i(1588).Z)("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);var b=i(85893);let x=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],_=r=>{let{orientation:n,classes:i}=r,o={root:["root",`${n}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${n}`],wrapperInner:["wrapperInner",`${n}`]};return(0,u.Z)(o,y,i)},w=(0,d.ZP)("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[n.root,n[i.orientation],"entered"===i.state&&n.entered,"exited"===i.state&&!i.in&&"0px"===i.collapsedSize&&n.hidden]}})(({theme:r,ownerState:n})=>
101(0,a.Z)({height:0,overflow:"hidden",transition:r.transitions.create("height")},"horizontal"===n.orientation&&{height:"auto",width:0,transition:r.transitions.create("width")},"entered"===n.state&&(0,a.Z)({height:"auto",overflow:"visible"},"horizontal"===n.orientation&&{width:"auto"}),"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&{visibility:"hidden"})),S=(0,d.ZP)("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(r,n)=>n.wrapper})(({ownerState:r})=>(0,a.Z)({display:"flex",width:"100%"},"horizontal"===r.orientation&&{width:"auto",height:"100%"})),T=(0,d.ZP)("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(r,n)=>n.wrapperInner})(({ownerState:r})=>(0,a.Z)({width:"100%"},"horizontal"===r.orientation&&{width:"auto",height:"100%"})),E=s.forwardRef(function(r,n){let i=(0,h.Z)({props:r,name:"MuiCollapse"}),{addEndListener:u,children:d,className:v,collapsedSize:y="0px",component:E,easing:k,in:C,onEnter:P,onEntered:O,onEntering:j,onExit:A,onExited:M,onExiting:I,orientation:Z="vertical",style:R,timeout:D=p.x9.standard,TransitionComponent:L=c.ZP}=i,z=(0,o.Z)(i,x),B=(0,a.Z)({},i,{orientation:Z,collapsedSize:y}),F=_(B),N=(0,m.Z)(),U=s.useRef(),V=s.useRef(null),q=s.useRef(),$="number"==typeof y?`${y}px`:y,G="horizontal"===Z,W=G?"width":"height";s.useEffect(()=>()=>{clearTimeout(U.current)},[]);let H=s.useRef(null),X=(0,g.Z)(n,H),Y=r=>n=>{if(r){let i=H.current;void 0===n?r(i):r(i,n)}},K=()=>V.current?V.current[G?"clientWidth":"clientHeight"]:0,J=Y((r,n)=>{V.current&&G&&(V.current.style.position="absolute"),r.style[W]=$,P&&P(r,n)}),Q=Y((r,n)=>{let i=K();V.current&&G&&(V.current.style.position="");let{duration:o,easing:a}=(0,f.C)({style:R,timeout:D,easing:k},{mode:"enter"});if("auto"===D){let n=N.transitions.getAutoHeightDuration(i);r.style.transitionDuration=`${n}ms`,q.current=n}else r.style.transitionDuration="string"==typeof o?o:`${o}ms`;r.style[W]=`${i}px`,r.style.transitionTimingFunction=a,j&&j(r,n)}),ee=Y((r,n)=>{r.style[W]="auto",O&&O(r,n)}),et=Y(r=>{r.style[W]=`${K()}px`,A&&A(r)}),er=Y(M),en=Y(r=>{let n=K(),{duration:i,easing:o}=(0,f.C)({style:R,timeout:D,easing:k},{mode:"exit"});if("auto"===D){let i=N.transitions.getAutoHeightDuration(n);r.style.transitionDuration=`${i}ms`,q.current=i}else r.style.transitionDuration="string"==typeof i?i:`${i}ms`;r.style[W]=$,r.style.transitionTimingFunction=o,I&&I(r)}),ei=r=>{"auto"===D&&(U.current=setTimeout(r,q.current||0)),u&&u(H.current,r)};return(0,b.jsx)(L,(0,a.Z)({in:C,onEnter:J,onEntered:ee,onEntering:Q,onExit:et,onExited:er,onExiting:en,addEndListener:ei,nodeRef:H,timeout:"auto"===D?null:D},z,{children:(r,n)=>(0,b.jsx)(w,(0,a.Z)({as:E,className:(0,l.Z)(F.root,v,{entered:F.entered,exited:!C&&"0px"===$&&F.hidden}[r]),style:(0,a.Z)({[G?"minWidth":"minHeight"]:$},R),ownerState:(0,a.Z)({},B,{state:r}),ref:X},n,{children:(0,b.jsx)(S,{ownerState:(0,a.Z)({},B,{state:r}),className:F.wrapper,ref:V,children:(0,b.jsx)(T,{ownerState:(0,a.Z)({},B,{state:r}),className:F.wrapperInner,children:d})})}))}))});E.muiSupportAuto=!0;var k=E},50657:function(r,n,i){"use strict";i.d(n,{Z:function(){return M}});var o=i(63366),a=i(87462),s=i(67294),l=i(93680),c=i(94780),u=i(92996),d=i(98216),h=i(2999),p=i(16628),f=i(55113),m=i(71657),g=i(90948),v=i(34867),y=i(1588);function b(r){return(0,v.ZP)("MuiDialog",r)}let x=(0,y.Z)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);var _=i(34182),w=i(84808),S=i(2734),T=i(85893);let E=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],k=(0,g.ZP)(w.Z,{name:"MuiDialog",slot:"Backdrop",overrides:(r,n)=>n.backdrop})({zIndex:-1}),C=r=>{let{classes:n,scroll:i,maxWidth:o,fullWidth:a,fullScreen:s}=r,l={root:["root"],container:["container",`scroll${(0,d.Z)(i)}`],paper:["paper",`paperScroll${(0,d.Z)(i)}`,`paperWidth${(0,d.Z)(String(o))}`,a&&"paperFullWidth",s&&"paperFullScreen"]};return(0,c.Z)(l,b,n)},P=(0,g.ZP)(h.Z,{name:"MuiDialog",slot:"Root",overridesResolver:(r,n)=>n.root})({"@media print":{position:"absolute !important"}}),O=(0,g.ZP)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[n.container,n[`scroll${(0,d.Z)(i.scroll)}`]]}})(({ownerState:r})=>
101(0,a.Z)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===r.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===r.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),j=(0,g.ZP)(f.Z,{name:"MuiDialog",slot:"Paper",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[n.paper,n[`scrollPaper${(0,d.Z)(i.scroll)}`],n[`paperWidth${(0,d.Z)(String(i.maxWidth))}`],i.fullWidth&&n.paperFullWidth,i.fullScreen&&n.paperFullScreen]}})(({theme:r,ownerState:n})=>(0,a.Z)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===n.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===n.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!n.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===n.maxWidth&&{maxWidth:"px"===r.breakpoints.unit?Math.max(r.breakpoints.values.xs,444):`${r.breakpoints.values.xs}${r.breakpoints.unit}`,[`&.${x.paperScrollBody}`]:{[r.breakpoints.down(Math.max(r.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},n.maxWidth&&"xs"!==n.maxWidth&&{maxWidth:`${r.breakpoints.values[n.maxWidth]}${r.breakpoints.unit}`,[`&.${x.paperScrollBody}`]:{[r.breakpoints.down(r.breakpoints.values[n.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},n.fullWidth&&{width:"calc(100% - 64px)"},n.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${x.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),A=s.forwardRef(function(r,n){let i=(0,m.Z)({props:r,name:"MuiDialog"}),c=(0,S.Z)(),d={enter:c.transitions.duration.enteringScreen,exit:c.transitions.duration.leavingScreen},{"aria-describedby":h,"aria-labelledby":g,BackdropComponent:v,BackdropProps:y,children:b,className:x,disableEscapeKeyDown:w=!1,fullScreen:A=!1,fullWidth:M=!1,maxWidth:I="sm",onBackdropClick:Z,onClose:R,open:D,PaperComponent:L=f.Z,PaperProps:z={},scroll:B="paper",TransitionComponent:F=p.Z,transitionDuration:N=d,TransitionProps:U}=i,V=(0,o.Z)(i,E),q=(0,a.Z)({},i,{disableEscapeKeyDown:w,fullScreen:A,fullWidth:M,maxWidth:I,scroll:B}),$=C(q),G=s.useRef(),W=r=>{G.current=r.target===r.currentTarget},H=r=>{G.current&&(G.current=null,Z&&Z(r),R&&R(r,"backdropClick"))},X=(0,u.Z)(g),Y=s.useMemo(()=>({titleId:X}),[X]);return(0,T.jsx)(P,(0,a.Z)({className:(0,l.Z)($.root,x),closeAfterTransition:!0,components:{Backdrop:k},componentsProps:{backdrop:(0,a.Z)({transitionDuration:N,as:v},y)},disableEscapeKeyDown:w,onClose:R,open:D,ref:n,onClick:H,ownerState:q},V,{children:(0,T.jsx)(F,(0,a.Z)({appear:!0,in:D,timeout:N,role:"presentation"},U,{children:(0,T.jsx)(O,{className:(0,l.Z)($.container),onMouseDown:W,ownerState:q,children:(0,T.jsx)(j,(0,a.Z)({as:L,elevation:24,role:"dialog","aria-describedby":h,"aria-labelledby":X},z,{className:(0,l.Z)($.paper,z.className),ownerState:q,children:(0,T.jsx)(_.Z.Provider,{value:Y,children:b})}))})}))}))});var M=A},34182:function(r,n,i){"use strict";var o=i(67294);let a=(0,o.createContext)({});n.Z=a},6514:function(r,n,i){"use strict";i.d(n,{Z:function(){return x}});var o=i(63366),a=i(87462),s=i(67294),l=i(93680),c=i(94780),u=i(90948),d=i(71657),h=i(34867);function p(r){return(0,h.ZP)("MuiDialogContent",r)}(0,i(1588).Z)("MuiDialogContent",["root","dividers"]);var f=i(4472),m=i(85893);let g=["className","dividers"],v=r=>{let{classes:n,dividers:i}=r;return(0,c.Z)({root:["root",i&&"dividers"]},p,n)},y=(0,u.ZP)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[n.root,i.dividers&&n.dividers]}})(({theme:r,ownerState:n})=>(0,a.Z)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},n.dividers?{padding:"16px 24px",borderTop:`1px solid ${(r.vars||r).palette.divider}`,borderBottom:`1px solid ${(r.vars||r).palette.divider}`}:{[`.${f.Z.root} + &`]:{paddingTop:0}})),b=s.forwardRef(function(r,n){let i=(0,d.Z)({props:r,name:"MuiDialogContent"}),{className:s,dividers:c=!1}=i,u=(0,o.Z)(i,g),h=(0,a.Z)({},i,{dividers:c}),p=v(h);return(0,m.jsx)(y,(0,a.Z)({className:(0,l.Z)(p.root,s),ownerState:h,ref:n},u))});var x=b},37645:function(r,n,i){"use strict";var o=i(87462),a=i(63366),s=i(67294),l=i(93680),c=i(94780),u=i(15861),d=i(90948),h=i(71657),p=i(4472),f=i(34182),m=i(85893);let g=["className","id"],v=r=>{let{classes:n}=r;return(0,c.Z)({root:["root"]},p.a,n)},y=(0,d.ZP)(u.Z,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(r,n)=>n.root})({padding:"16px 24px",flex:"0 0 auto"}),b=s.forwardRef(function(r,n){let i=(0,h.Z)({props:r,name:"MuiDialogTitle"}),{className:c,id:u}=i,d=(0,a.Z)(i,g),p=v(i),{titleId:b=u}=s.useContext(f.Z);return(0,m.jsx)(y,(0,o.Z)({component:"h2",className:(0,l.Z)(p.root,c),ownerState:i,ref:n,variant:"h6",id:b},d))});n.Z=b},4472:function(r,n,i){"use strict";i.d(n,{a:function(){return s}});var o=i(34867),a=i(1588);function s(r){return(0,o.ZP)("MuiDialogTitle",r)}let l=(0,a.Z)("MuiDialogTitle",["root"]);n.Z=l},67720:function(r,n,i){"use strict";var o=i(63366),a=i(87462),s=i(67294),l=i(93680),c=i(94780),u=i(8423),d=i(90948),h=i(71657),p=i(35097),f=i(85893);let m=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],g=r=>{let{absolute:n,children:i,classes:o,flexItem:a,light:s,orientation:l,textAlign:u,variant:d}=r;return(0,c.Z)({root:["root",n&&"absolute",d,s&&"light","vertical"===l&&"vertical",a&&"flexItem",i&&"withChildren",i&&"vertical"===l&&"withChildrenVertical","right"===u&&"vertical"!==l&&"textAlignRight","left"===u&&"vertical"!==l&&"textAlignLeft"],wrapper:["wrapper","vertical"===l&&"wrapperVertical"]},p.V,o)},v=(0,d.ZP)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[n.root,i.absolute&&n.absolute,n[i.variant],i.light&&n.light,"vertical"===i.orientation&&n.vertical,i.flexItem&&n.flexItem,i.children&&n.withChildren,i.children&&"vertical"===i.orientation&&n.withChildrenVertical,"right"===i.textAlign&&"vertical"!==i.orientation&&n.textAlignRight,"left"===i.textAlign&&"vertical"!==i.orientation&&n.textAlignLeft]}})(({theme:r,ownerState:n})=>(0,a.Z)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(r.vars||r).palette.divider,borderBottomWidth:"thin"},n.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},n.light&&{borderColor:r.vars?`rgba(${r.vars.palette.dividerChannel} / 0.08)`:(0,u.Fq)(r.palette.divider,.08)},"inset"===n.variant&&{marginLeft:72},"middle"===n.variant&&"horizontal"===n.orientation&&{marginLeft:r.spacing(2),marginRight:r.spacing(2)},"middle"===n.variant&&"vertical"===n.orientation&&{marginTop:r.spacing(1),marginBottom:r.spacing(1)},"vertical"===n.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},n.flexItem&&{alignSelf:"stretch",height:"auto"}),({theme:r,ownerState:n})=>(0,a.Z)({},n.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{position:"relative",width:"100%",borderTop:`thin solid ${(r.vars||r).palette.divider}`,top:"50%",content:'""',transform:"translateY(50%)"}}),({theme:r,ownerState:n})=>(0,a.Z)({},n.children&&"vertical"===n.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",top:"0%",left:"50%",borderTop:0,borderLeft:`thin solid ${(r.vars||r).palette.divider}`,transform:"translateX(0%)"}}),({ownerState:r})=>(0,a.Z)({},"right"===r.textAlign&&"vertical"!==r.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===r.textAlign&&"vertical"!==r.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),y=(0,d.ZP)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[n.wrapper,"vertical"===i.orientation&&n.wrapperVertical]}})(({theme:r,ownerState:n})=>(0,a.Z)({display:"inline-block",paddingLeft:`calc(${r.spacing(1)} * 1.2)`,paddingRight:`calc(${r.spacing(1)} * 1.2)`},"vertical"===n.orientation&&{paddingTop:`calc(${r.spacing(1)} * 1.2)`,paddingBottom:`calc(${r.spacing(1)} * 1.2)`})),b=s.forwardRef(function(r,n){let i=(0,h.Z)({props:r,name:"MuiDivider"}),{absolute:s=!1,children:c,className:u,component:d=c?"div":"hr",flexItem:p=!1,light:b=!1,orientation:x="horizontal",role:_="hr"!==d?"separator":void 0,textAlign:w="center",variant:S="fullWidth"}=i,T=(0,o.Z)(i,m),E=(0,a.Z)({},i,{absolute:s,component:d,flexItem:p,light:b,orientation:x,role:_,textAlign:w,variant:S}),k=g(E);return(0,f.jsx)(v,(0,a.Z)({as:d,className:(0,l.Z)(k.root,u),role:_,ref:n,ownerState:E},T,{children:c?(0,f.jsx)(y,{className:k.wrapper,ownerState:E,children:c}):null}))});n.Z=b},35097:function(r,n,i){"use strict";i.d(n,{V:function(){return s}});var o=i(34867),a=i(1588);function s(r){return(0,o.ZP)("MuiDivider",r)}let l=(0,a.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);n.Z=l},16628:function(r,n,i){"use strict";var o=i(87462),a=i(63366),s=i(67294),l=i(8662),c=i(2734),u=i(30577),d=i(
10151705),h=i(85893);let p=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],f={entering:{opacity:1},entered:{opacity:1}},m=s.forwardRef(function(r,n){let i=(0,c.Z)(),m={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:g,appear:v=!0,children:y,easing:b,in:x,onEnter:_,onEntered:w,onEntering:S,onExit:T,onExited:E,onExiting:k,style:C,timeout:P=m,TransitionComponent:O=l.ZP}=r,j=(0,a.Z)(r,p),A=s.useRef(null),M=(0,d.Z)(y.ref,n),I=(0,d.Z)(A,M),Z=r=>n=>{if(r){let i=A.current;void 0===n?r(i):r(i,n)}},R=Z(S),D=Z((r,n)=>{(0,u.n)(r);let o=(0,u.C)({style:C,timeout:P,easing:b},{mode:"enter"});r.style.webkitTransition=i.transitions.create("opacity",o),r.style.transition=i.transitions.create("opacity",o),_&&_(r,n)}),L=Z(w),z=Z(k),B=Z(r=>{let n=(0,u.C)({style:C,timeout:P,easing:b},{mode:"exit"});r.style.webkitTransition=i.transitions.create("opacity",n),r.style.transition=i.transitions.create("opacity",n),T&&T(r)}),F=Z(E),N=r=>{g&&g(A.current,r)};return(0,h.jsx)(O,(0,o.Z)({appear:v,in:x,nodeRef:A,onEnter:D,onEntered:L,onEntering:R,onExit:B,onExited:F,onExiting:z,addEndListener:N,timeout:P},j,{children:(r,n)=>s.cloneElement(y,(0,o.Z)({style:(0,o.Z)({opacity:0,visibility:"exited"!==r||x?void 0:"hidden"},f[r],C,y.props.style),ref:I},n))}))});n.Z=m},78288:function(r,n,i){"use strict";i.d(n,{Z:function(){return T}});var o=i(63366),a=i(87462),s=i(67294),l=i(4953),c=i(94780),u=i(13970),d=i(90948),h=i(71657),p=i(34867),f=i(1588),m=i(55827);function g(r){return(0,p.ZP)("MuiFilledInput",r)}let v=(0,a.Z)({},m.Z,(0,f.Z)("MuiFilledInput",["root","underline","input"]));var y=i(85893);let b=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","type"],x=r=>{let{classes:n,disableUnderline:i}=r,o=(0,c.Z)({root:["root",!i&&"underline"],input:["input"]},g,n);return(0,a.Z)({},n,o)},_=(0,d.ZP)(u.Ej,{shouldForwardProp:r=>(0,d.FO)(r)||"classes"===r,name:"MuiFilledInput",slot:"Root",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[...(0,u.Gx)(r,n),!i.disableUnderline&&n.underline]}})(({theme:r,ownerState:n})=>{var i;let o="light"===r.palette.mode,s=o?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)";return(0,a.Z)({position:"relative",backgroundColor:r.vars?r.vars.palette.FilledInput.bg:s,borderTopLeftRadius:(r.vars||r).shape.borderRadius,borderTopRightRadius:(r.vars||r).shape.borderRadius,transition:r.transitions.create("background-color",{duration:r.transitions.duration.shorter,easing:r.transitions.easing.easeOut}),"&:hover":{backgroundColor:r.vars?r.vars.palette.FilledInput.hoverBg:o?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:r.vars?r.vars.palette.FilledInput.bg:s}},[`&.${v.focused}`]:{backgroundColor:r.vars?r.vars.palette.FilledInput.bg:s},[`&.${v.disabled}`]:{backgroundColor:r.vars?r.vars.palette.FilledInput.disabledBg:o?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},!n.disableUnderline&&{"&:after":{borderBottom:`2px solid ${null==(i=(r.vars||r).palette[n.color||"primary"])?void 0:i.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:r.transitions.create("transform",{duration:r.transitions.duration.shorter,easing:r.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${v.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${v.error}:after`]:{borderBottomColor:(r.vars||r).palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:`1px solid ${r.vars?`rgba(${r.vars.palette.common.onBackgroundChannel} / ${r.vars.opacity.inputUnderline})`:o?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)"}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:r.transitions.create("border-bottom-color",{duration:r.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${v.disabled}):before`]:{borderBottom:`1px solid ${(r.vars||r).palette.text.primary}`},[`&.${v.disabled}:before`]:{borderBottomStyle:"dotted"}},n.startAdornment&&{paddingLeft:12},n.endAdornment&&{paddingRight:12},n.multiline&&(0,a.Z)({padding:"25px 12px 8px"},"small"===n.size&&{paddingTop:21,paddingBottom:4},n.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),w=(0,d.ZP)(u.rA,{name:"MuiFilledInput",slot:"Input",overridesResolver:u._o})(({theme:r,ownerState:n})=>(0,a.Z)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!r.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===r.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===r.palette.mode?null:"#fff",caretColor:"light"===r.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},r.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[r.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===n.size&&{paddingTop:21,paddingBottom:4},n.hiddenLabel&&{paddingTop:16,paddingBottom:17},n.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0},n.hiddenLabel&&"small"===n.size&&{paddingTop:8,paddingBottom:9})),S=s.forwardRef(function(r,n){let i=(0,h.Z)({props:r,name:"MuiFilledInput"}),{components:s={},componentsProps:c,fullWidth:d=!1,inputComponent:p="input",multiline:f=!1,type:m="text"}=i,g=(0,o.Z)(i,b),v=(0,a.Z)({},i,{fullWidth:d,inputComponent:p,multiline:f,type:m}),S=x(i),T={root:{ownerState:v},input:{ownerState:v}},E=c?(0,l.Z)(c,T):T;return(0,y.jsx)(u.ZP,(0,a.Z)({components:(0,a.Z)({Root:_,Input:w},s),componentsProps:E,fullWidth:d,inputComponent:p,multiline:f,ref:n,t
101ype:m},g,{classes:S}))});S.muiName="Input";var T=S},94054:function(r,n,i){"use strict";i.d(n,{Z:function(){return S}});var o=i(63366),a=i(87462),s=i(67294),l=i(93680),c=i(94780),u=i(71657),d=i(90948),h=i(5108),p=i(98216),f=i(50700),m=i(47167),g=i(34867);function v(r){return(0,g.ZP)("MuiFormControl",r)}(0,i(1588).Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var y=i(85893);let b=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],x=r=>{let{classes:n,margin:i,fullWidth:o}=r,a={root:["root","none"!==i&&`margin${(0,p.Z)(i)}`,o&&"fullWidth"]};return(0,c.Z)(a,v,n)},_=(0,d.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:r},n)=>(0,a.Z)({},n.root,n[`margin${(0,p.Z)(r.margin)}`],r.fullWidth&&n.fullWidth)})(({ownerState:r})=>(0,a.Z)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===r.margin&&{marginTop:16,marginBottom:8},"dense"===r.margin&&{marginTop:8,marginBottom:4},r.fullWidth&&{width:"100%"})),w=s.forwardRef(function(r,n){let i;let c=(0,u.Z)({props:r,name:"MuiFormControl"}),{children:d,className:p,color:g="primary",component:v="div",disabled:w=!1,error:S=!1,focused:T,fullWidth:E=!1,hiddenLabel:k=!1,margin:C="none",required:P=!1,size:O="medium",variant:j="outlined"}=c,A=(0,o.Z)(c,b),M=(0,a.Z)({},c,{color:g,component:v,disabled:w,error:S,fullWidth:E,hiddenLabel:k,margin:C,required:P,size:O,variant:j}),I=x(M),[Z,R]=s.useState(()=>{let r=!1;return d&&s.Children.forEach(d,n=>{if(!(0,f.Z)(n,["Input","Select"]))return;let i=(0,f.Z)(n,["Select"])?n.props.input:n;i&&(0,h.B7)(i.props)&&(r=!0)}),r}),[D,L]=s.useState(()=>{let r=!1;return d&&s.Children.forEach(d,n=>{(0,f.Z)(n,["Input","Select"])&&(0,h.vd)(n.props,!0)&&(r=!0)}),r}),[z,B]=s.useState(!1);w&&z&&B(!1);let F=s.useCallback(()=>{L(!0)},[]),N=s.useCallback(()=>{L(!1)},[]);return(0,y.jsx)(m.Z.Provider,{value:{adornedStart:Z,setAdornedStart:R,color:g,disabled:w,error:S,filled:D,focused:void 0===T||w?z:T,fullWidth:E,hiddenLabel:k,size:O,onBlur:()=>{B(!1)},onEmpty:N,onFilled:F,onFocus:()=>{B(!0)},registerEffect:i,required:P,variant:j},children:(0,y.jsx)(_,(0,a.Z)({as:v,ownerState:M,className:(0,l.Z)(I.root,p),ref:n},A,{children:d}))})});var S=w},47167:function(r,n,i){"use strict";var o=i(67294);let a=o.createContext();n.Z=a},15704:function(r,n,i){"use strict";function o({props:r,states:n,muiFormControl:i}){return n.reduce((n,o)=>(n[o]=r[o],i&&void 0===r[o]&&(n[o]=i[o]),n),{})}i.d(n,{Z:function(){return o}})},74423:function(r,n,i){"use strict";i.d(n,{Z:function(){return s}});var o=i(67294),a=i(47167);function s(){return o.useContext(a.Z)}},56815:function(r,n,i){"use strict";i.d(n,{Z:function(){return E}});var o,a=i(63366),s=i(87462),l=i(67294),c=i(93680),u=i(94780),d=i(15704),h=i(74423),p=i(90948),f=i(98216),m=i(34867),g=i(1588);function v(r){return(0,m.ZP)("MuiFormHelperText",r)}let y=(0,g.Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var b=i(71657),x=i(85893);let _=["children","className","component","disabled","error","filled","focused","margin","required","variant"],w=r=>{let{classes:n,contained:i,size:o,disabled:a,error:s,filled:l,focused:c,required:d}=r,h={root:["root",a&&"disabled",s&&"error",o&&`size${(0,f.Z)(o)}`,i&&"contained",c&&"focused",l&&"filled",d&&"required"]};return(0,u.Z)(h,v,n)},S=(0,p.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[n.root,i.size&&n[`size${(0,f.Z)(i.size)}`],i.contained&&n.contained,i.filled&&n.filled]}})(({theme:r,ownerState:n})=>(0,s.Z)({color:(r.vars||r).palette.text.secondary},r.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${y.disabled}`]:{color:(r.vars||r).palette.text.disabled},[`&.${y.error}`]:{color:(r.vars||r).palette.error.main}},"small"===n.size&&{marginTop:4},n.contained&&{marginLeft:14,marginRight:14})),T=l.forwardRef(function(r,n){let i=(0,b.Z)({props:r,name:"MuiFormHelperText"}),{children:l,className:u,component:p="p"}=i,f=(0,a.Z)(i,_),m=(0,h.Z)(),g=(0,d.Z)({props:i,muiFormControl:m,states:["variant","size","disabled","error","filled","focused","required"]}),v=(0,s.Z)({},i,{component:p,contained:"filled"===g.variant||"outlined"===g.variant,variant:g.variant,size:g.size,disabled:g.disabled,error:g.error,filled:g.filled,focused:g.focused,required:g.required}),y=w(v);
101return(0,x.jsx)(S,(0,s.Z)({as:p,ownerState:v,className:(0,c.Z)(y.root,u),ref:n},f,{children:" "===l?o||(o=(0,x.jsx)("span",{className:"notranslate",children:"â"})):l}))});var E=T},40476:function(r,n,i){"use strict";var o=i(63366),a=i(87462),s=i(67294),l=i(93680),c=i(94780),u=i(15704),d=i(74423),h=i(98216),p=i(71657),f=i(90948),m=i(64748),g=i(85893);let v=["children","className","color","component","disabled","error","filled","focused","required"],y=r=>{let{classes:n,color:i,focused:o,disabled:a,error:s,filled:l,required:u}=r,d={root:["root",`color${(0,h.Z)(i)}`,a&&"disabled",s&&"error",l&&"filled",o&&"focused",u&&"required"],asterisk:["asterisk",s&&"error"]};return(0,c.Z)(d,m.M,n)},b=(0,f.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:r},n)=>(0,a.Z)({},n.root,"secondary"===r.color&&n.colorSecondary,r.filled&&n.filled)})(({theme:r,ownerState:n})=>(0,a.Z)({color:(r.vars||r).palette.text.secondary},r.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${m.Z.focused}`]:{color:(r.vars||r).palette[n.color].main},[`&.${m.Z.disabled}`]:{color:(r.vars||r).palette.text.disabled},[`&.${m.Z.error}`]:{color:(r.vars||r).palette.error.main}})),x=(0,f.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(r,n)=>n.asterisk})(({theme:r})=>({[`&.${m.Z.error}`]:{color:(r.vars||r).palette.error.main}})),_=s.forwardRef(function(r,n){let i=(0,p.Z)({props:r,name:"MuiFormLabel"}),{children:s,className:c,component:h="label"}=i,f=(0,o.Z)(i,v),m=(0,d.Z)(),_=(0,u.Z)({props:i,muiFormControl:m,states:["color","required","focused","disabled","error","filled"]}),w=(0,a.Z)({},i,{color:_.color||"primary",component:h,disabled:_.disabled,error:_.error,filled:_.filled,focused:_.focused,required:_.required}),S=y(w);return(0,g.jsxs)(b,(0,a.Z)({as:h,ownerState:w,className:(0,l.Z)(S.root,c),ref:n},f,{children:[s,_.required&&(0,g.jsxs)(x,{ownerState:w,"aria-hidden":!0,className:S.asterisk,children:["â","*"]})]}))});n.Z=_},64748:function(r,n,i){"use strict";i.d(n,{M:function(){return s}});var o=i(34867),a=i(1588);function s(r){return(0,o.ZP)("MuiFormLabel",r)}let l=(0,a.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]);n.Z=l},17297:function(r,n,i){"use strict";i.d(n,{Z:function(){return h}});var o=i(87462);i(67294);var a=i(70917),s=i(85893);function l(r){let{styles:n,defaultTheme:i={}}=r;return(0,s.jsx)(a.xB,{styles:"function"==typeof n?r=>n(null==r||0===Object.keys(r).length?i:r):n})}var c=i(96682),u=function({styles:r,themeId:n,defaultTheme:i={}}){let o=(0,c.Z)(i),a="function"==typeof r?r(n&&o[n]||o):r;return(0,s.jsx)(l,{styles:a})},d=i(90247),h=function(r){return(0,s.jsx)(u,(0,o.Z)({},r,{defaultTheme:d.Z}))}},86886:function(r,n,i){"use strict";i.d(n,{ZP:function(){return O}});var o=i(63366),a=i(87462),s=i(67294),l=i(93680),c=i(95408),u=i(39707),d=i(94780),h=i(90948),p=i(71657),f=i(2734);let m=s.createContext();var g=i(34867),v=i(1588);function y(r){return(0,g.ZP)("MuiGrid",r)}let b=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],x=(0,v.Z)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map(r=>`spacing-xs-${r}`),...["column-reverse","column","row-reverse","row"].map(r=>`direction-xs-${r}`),...["nowrap","wrap-reverse","wrap"].map(r=>`wrap-xs-${r}`),...b.map(r=>`grid-xs-${r}`),...b.map(r=>`grid-sm-${r}`),...b.map(r=>`grid-md-${r}`),...b.map(r=>`grid-lg-${r}`),...b.map(r=>`grid-xl-${r}`)]);var _=x,w=i(85893);let S=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function T(r){let n=parseFloat(r);return`${n}${String(r).replace(String(n),"")||"px"}`}function E({breakpoints:r,values:n}){let i="";Object.keys(n).forEach(r=>{""===i&&0!==n[r]&&(i=r)});let o=Object.keys(r).sort((n,i)=>r[n]-r[i]);return o.slice(0,o.indexOf(i))}let k=(0,h.ZP)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(r,n)=>{let{ownerState:i}=r,{container:o,direction:a,item:s,spacing:l,wrap:c,zeroMinWidth:u,breakpoints:d}=i,h=[];o&&(h=function(r,n,i={}){if(!r||r<=0)return[];if("string"==typeof r&&!Number.isNaN(Number(r))||"number"==typeof r)return[i[`spacing-xs-${String(r)}`]];let o=[];
101return n.forEach(n=>{let a=r[n];Number(a)>0&&o.push(i[`spacing-${n}-${String(a)}`])}),o}(l,d,n));let p=[];return d.forEach(r=>{let o=i[r];o&&p.push(n[`grid-${r}-${String(o)}`])}),[n.root,o&&n.container,s&&n.item,u&&n.zeroMinWidth,...h,"row"!==a&&n[`direction-xs-${String(a)}`],"wrap"!==c&&n[`wrap-xs-${String(c)}`],...p]}})(({ownerState:r})=>(0,a.Z)({boxSizing:"border-box"},r.container&&{display:"flex",flexWrap:"wrap",width:"100%"},r.item&&{margin:0},r.zeroMinWidth&&{minWidth:0},"wrap"!==r.wrap&&{flexWrap:r.wrap}),function({theme:r,ownerState:n}){let i=(0,c.P$)({values:n.direction,breakpoints:r.breakpoints.values});return(0,c.k9)({theme:r},i,r=>{let n={flexDirection:r};return 0===r.indexOf("column")&&(n[`& > .${_.item}`]={maxWidth:"none"}),n})},function({theme:r,ownerState:n}){let{container:i,rowSpacing:o}=n,a={};if(i&&0!==o){let n;let i=(0,c.P$)({values:o,breakpoints:r.breakpoints.values});"object"==typeof i&&(n=E({breakpoints:r.breakpoints.values,values:i})),a=(0,c.k9)({theme:r},i,(i,o)=>{var a;let s=r.spacing(i);return"0px"!==s?{marginTop:`-${T(s)}`,[`& > .${_.item}`]:{paddingTop:T(s)}}:null!=(a=n)&&a.includes(o)?{}:{marginTop:0,[`& > .${_.item}`]:{paddingTop:0}}})}return a},function({theme:r,ownerState:n}){let{container:i,columnSpacing:o}=n,a={};if(i&&0!==o){let n;let i=(0,c.P$)({values:o,breakpoints:r.breakpoints.values});"object"==typeof i&&(n=E({breakpoints:r.breakpoints.values,values:i})),a=(0,c.k9)({theme:r},i,(i,o)=>{var a;let s=r.spacing(i);return"0px"!==s?{width:`calc(100% + ${T(s)})`,marginLeft:`-${T(s)}`,[`& > .${_.item}`]:{paddingLeft:T(s)}}:null!=(a=n)&&a.includes(o)?{}:{width:"100%",marginLeft:0,[`& > .${_.item}`]:{paddingLeft:0}}})}return a},function({theme:r,ownerState:n}){let i;return r.breakpoints.keys.reduce((o,s)=>{let l={};if(n[s]&&(i=n[s]),!i)return o;if(!0===i)l={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===i)l={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{let u=(0,c.P$)({values:n.columns,breakpoints:r.breakpoints.values}),d="object"==typeof u?u[s]:u;if(null==d)return o;let h=`${Math.round(i/d*1e8)/1e6}%`,p={};if(n.container&&n.item&&0!==n.columnSpacing){let i=r.spacing(n.columnSpacing);if("0px"!==i){let r=`calc(${h} + ${T(i)})`;p={flexBasis:r,maxWidth:r}}}l=(0,a.Z)({flexBasis:h,flexGrow:0,maxWidth:h},p)}return 0===r.breakpoints.values[s]?Object.assign(o,l):o[r.breakpoints.up(s)]=l,o},{})}),C=r=>{let{classes:n,container:i,direction:o,item:a,spacing:s,wrap:l,zeroMinWidth:c,breakpoints:u}=r,h=[];i&&(h=function(r,n){if(!r||r<=0)return[];if("string"==typeof r&&!Number.isNaN(Number(r))||"number"==typeof r)return[`spacing-xs-${String(r)}`];let i=[];return n.forEach(n=>{let o=r[n];if(Number(o)>0){let r=`spacing-${n}-${String(o)}`;i.push(r)}}),i}(s,u));let p=[];u.forEach(n=>{let i=r[n];i&&p.push(`grid-${n}-${String(i)}`)});let f={root:["root",i&&"container",a&&"item",c&&"zeroMinWidth",...h,"row"!==o&&`direction-xs-${String(o)}`,"wrap"!==l&&`wrap-xs-${String(l)}`,...p]};return(0,d.Z)(f,y,n)},P=s.forwardRef(function(r,n){let i=(0,p.Z)({props:r,name:"MuiGrid"}),{breakpoints:c}=(0,f.Z)(),d=(0,u.Z)(i),{className:h,columns:g,columnSpacing:v,component:y="div",container:b=!1,direction:x="row",item:_=!1,rowSpacing:T,spacing:E=0,wrap:P="wrap",zeroMinWidth:O=!1}=d,j=(0,o.Z)(d,S),A=s.useContext(m),M=b?g||12:A,I={},Z=(0,a.Z)({},j);c.keys.forEach(r=>{null!=j[r]&&(I[r]=j[r],delete Z[r])});let R=(0,a.Z)({},d,{columns:M,container:b,direction:x,item:_,rowSpacing:T||E,columnSpacing:v||E,wrap:P,zeroMinWidth:O,spacing:E},I,{breakpoints:c.keys}),D=C(R);return(0,w.jsx)(m.Provider,{value:M,children:(0,w.jsx)(k,(0,a.Z)({ownerState:R,className:(0,l.Z)(D.root,h),as:y,ref:n},Z))})});var O=P},96514:function(r,n,i){"use strict";var o=i(87462),a=i(63366),s=i(67294),l=i(8662),c=i(2734),u=i(30577),d=i(51705),h=i(85893);let p=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function f(r){return`scale(${r}, ${r**2})`}let m={entering:{opacity:1,transform:f(1)},entered:{opacity:1,transform:"none"}},g="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),v=s.forwardRef(function(r,n){let{addEndListener:i,appear:v=!0,children:y,easing:b,in:x,onEnter:_,onEntered:w,onEntering:S,onExit:T,onExited:E,onExiting:k,style:C,timeout:P="auto",TransitionComponent:O=l.ZP}=r,j=(0,a.Z)(r,p),A=s.useRef(),M=s.useRef(),I=(0,c.Z)(),Z=s.useRef(null),R=(0,d.Z)(y.ref,n),D=(0,d.Z)(Z,R),L=r=>n=>{if(r){let i=Z.current;void 0===n?r(i):r(i,n)}},z=L(S),B=L((r,n)=>{let i;(0,u.n)(r);let{duration:o,delay:a,easing:s}=(0,u.C)({style:C,timeout:P,easing:b},{mode:"enter"});"auto"===P?(i=I.transitions.getAutoHeightDuration(r.clientHeight),M.current=i):i=o,r.style.transition=[I.transitions.create("opacity",{duration:i,delay:a}
101),I.transitions.create("transform",{duration:g?i:.666*i,delay:a,easing:s})].join(","),_&&_(r,n)}),F=L(w),N=L(k),U=L(r=>{let n;let{duration:i,delay:o,easing:a}=(0,u.C)({style:C,timeout:P,easing:b},{mode:"exit"});"auto"===P?(n=I.transitions.getAutoHeightDuration(r.clientHeight),M.current=n):n=i,r.style.transition=[I.transitions.create("opacity",{duration:n,delay:o}),I.transitions.create("transform",{duration:g?n:.666*n,delay:g?o:o||.333*n,easing:a})].join(","),r.style.opacity=0,r.style.transform=f(.75),T&&T(r)}),V=L(E),q=r=>{"auto"===P&&(A.current=setTimeout(r,M.current||0)),i&&i(Z.current,r)};return s.useEffect(()=>()=>{clearTimeout(A.current)},[]),(0,h.jsx)(O,(0,o.Z)({appear:v,in:x,nodeRef:Z,onEnter:B,onEntered:F,onEntering:z,onExit:U,onExited:V,onExiting:N,addEndListener:q,timeout:"auto"===P?null:P},j,{children:(r,n)=>s.cloneElement(y,(0,o.Z)({style:(0,o.Z)({opacity:0,transform:f(.75),visibility:"exited"!==r||x?void 0:"hidden"},m[r],C,y.props.style),ref:D},n))}))});v.muiSupportAuto=!0,n.Z=v},93946:function(r,n,i){"use strict";i.d(n,{Z:function(){return T}});var o=i(63366),a=i(87462),s=i(67294),l=i(93680),c=i(94780),u=i(8423),d=i(90948),h=i(71657),p=i(82607),f=i(98216),m=i(34867),g=i(1588);function v(r){return(0,m.ZP)("MuiIconButton",r)}let y=(0,g.Z)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);var b=i(85893);let x=["edge","children","className","color","disabled","disableFocusRipple","size"],_=r=>{let{classes:n,disabled:i,color:o,edge:a,size:s}=r,l={root:["root",i&&"disabled","default"!==o&&`color${(0,f.Z)(o)}`,a&&`edge${(0,f.Z)(a)}`,`size${(0,f.Z)(s)}`]};return(0,c.Z)(l,v,n)},w=(0,d.ZP)(p.Z,{name:"MuiIconButton",slot:"Root",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[n.root,"default"!==i.color&&n[`color${(0,f.Z)(i.color)}`],i.edge&&n[`edge${(0,f.Z)(i.edge)}`],n[`size${(0,f.Z)(i.size)}`]]}})(({theme:r,ownerState:n})=>(0,a.Z)({textAlign:"center",flex:"0 0 auto",fontSize:r.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(r.vars||r).palette.action.active,transition:r.transitions.create("background-color",{duration:r.transitions.duration.shortest})},!n.disableRipple&&{"&:hover":{backgroundColor:r.vars?`rgba(${r.vars.palette.action.active} / ${r.vars.palette.action.hoverOpacity})`:(0,u.Fq)(r.palette.action.active,r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===n.edge&&{marginLeft:"small"===n.size?-3:-12},"end"===n.edge&&{marginRight:"small"===n.size?-3:-12}),({theme:r,ownerState:n})=>(0,a.Z)({},"inherit"===n.color&&{color:"inherit"},"inherit"!==n.color&&"default"!==n.color&&(0,a.Z)({color:(r.vars||r).palette[n.color].main},!n.disableRipple&&{"&:hover":{backgroundColor:r.vars?`rgba(${r.vars.palette[n.color].mainChannel} / ${r.vars.palette.action.hoverOpacity})`:(0,u.Fq)(r.palette[n.color].main,r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}}),"small"===n.size&&{padding:5,fontSize:r.typography.pxToRem(18)},"large"===n.size&&{padding:12,fontSize:r.typography.pxToRem(28)},{[`&.${y.disabled}`]:{backgroundColor:"transparent",color:(r.vars||r).palette.action.disabled}})),S=s.forwardRef(function(r,n){let i=(0,h.Z)({props:r,name:"MuiIconButton"}),{edge:s=!1,children:c,className:u,color:d="default",disabled:p=!1,disableFocusRipple:f=!1,size:m="medium"}=i,g=(0,o.Z)(i,x),v=(0,a.Z)({},i,{edge:s,color:d,disabled:p,disableFocusRipple:f,size:m}),y=_(v);return(0,b.jsx)(w,(0,a.Z)({className:(0,l.Z)(y.root,u),centerRipple:!0,focusRipple:!f,disabled:p,ref:n,ownerState:v},g,{children:c}))});var T=S},90089:function(r,n,i){"use strict";i.d(n,{Z:function(){return T}});var o=i(63366),a=i(87462),s=i(67294),l=i(94780),c=i(4953),u=i(13970),d=i(90948),h=i(71657),p=i(34867),f=i(1588),m=i(55827);function g(r){return(0,p.ZP)("MuiInput",r)}let v=(0,a.Z)({},m.Z,(0,f.Z)("MuiInput",["root","underline","input"]));var y=i(85893);let b=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","type"],x=r=>{let{classes:n,disableUnderline:i}=r,o=(0,l.Z)({root:["root",!i&&"underline"],input:["input"]},g,n);return(0,a.Z)({},n,o)},_=(0,d.ZP)(u.Ej,{shouldForwardProp:r=>(0,d.FO)(r)||"classes"===r,name:"MuiInput",slot:"Root",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[...(0,u.Gx)(r,n),!i.disableUnderline&&n.underline]}})(({theme:r,ownerState:n})=>{let i="light"===r.palette.mode,o=i?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";
101return r.vars&&(o=`rgba(${r.vars.palette.common.onBackgroundChannel} / ${r.vars.opacity.inputUnderline})`),(0,a.Z)({position:"relative"},n.formControl&&{"label + &":{marginTop:16}},!n.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(r.vars||r).palette[n.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:r.transitions.create("transform",{duration:r.transitions.duration.shorter,easing:r.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${v.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${v.error}:after`]:{borderBottomColor:(r.vars||r).palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:`1px solid ${o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:r.transitions.create("border-bottom-color",{duration:r.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${v.disabled}):before`]:{borderBottom:`2px solid ${(r.vars||r).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${o}`}},[`&.${v.disabled}:before`]:{borderBottomStyle:"dotted"}})}),w=(0,d.ZP)(u.rA,{name:"MuiInput",slot:"Input",overridesResolver:u._o})({}),S=s.forwardRef(function(r,n){let i=(0,h.Z)({props:r,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:d,fullWidth:p=!1,inputComponent:f="input",multiline:m=!1,type:g="text"}=i,v=(0,o.Z)(i,b),S=x(i),T={root:{ownerState:{disableUnderline:s}}},E=d?(0,c.Z)(d,T):T;return(0,y.jsx)(u.ZP,(0,a.Z)({components:(0,a.Z)({Root:_,Input:w},l),componentsProps:E,fullWidth:p,inputComponent:f,multiline:m,ref:n,type:g},v,{classes:S}))});S.muiName="Input";var T=S},13970:function(r,n,i){"use strict";i.d(n,{rA:function(){return B},Ej:function(){return z},ZP:function(){return U},_o:function(){return D},Gx:function(){return R}});var o=i(63366),a=i(87462),s=i(56535),l=i(67294),c=i(93680),u=i(94780),d=i(73935),h=i(33703),p=i(74161),f=i(39336),m=i(73546),g=i(85893);let v=["onChange","maxRows","minRows","style","value"];function y(r,n){return parseInt(r[n],10)||0}let b={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function x(r){return null==r||0===Object.keys(r).length}let _=l.forwardRef(function(r,n){let{onChange:i,maxRows:s,minRows:c=1,style:u,value:_}=r,w=(0,o.Z)(r,v),{current:S}=l.useRef(null!=_),T=l.useRef(null),E=(0,h.Z)(n,T),k=l.useRef(null),C=l.useRef(0),[P,O]=l.useState({}),j=l.useCallback(()=>{let n=T.current,i=(0,p.Z)(n),o=i.getComputedStyle(n);if("0px"===o.width)return{};let a=k.current;a.style.width=o.width,a.value=n.value||r.placeholder||"x","\n"===a.value.slice(-1)&&(a.value+=" ");let l=o["box-sizing"],u=y(o,"padding-bottom")+y(o,"padding-top"),d=y(o,"border-bottom-width")+y(o,"border-top-width"),h=a.scrollHeight;a.value="x";let f=a.scrollHeight,m=h;c&&(m=Math.max(Number(c)*f,m)),s&&(m=Math.min(Number(s)*f,m)),m=Math.max(m,f);let g=m+("border-box"===l?u+d:0),v=1>=Math.abs(m-h);return{outerHeightStyle:g,overflow:v}},[s,c,r.placeholder]),A=(r,n)=>{let{outerHeightStyle:i,overflow:o}=n;return C.current<20&&(i>0&&Math.abs((r.outerHeightStyle||0)-i)>1||r.overflow!==o)?(C.current+=1,{overflow:o,outerHeightStyle:i}):r},M=l.useCallback(()=>{let r=j();x(r)||O(n=>A(n,r))},[j]),I=()=>{let r=j();x(r)||(0,d.flushSync)(()=>{O(n=>A(n,r))})};l.useEffect(()=>{let r;let n=(0,f.Z)(()=>{C.current=0,T.current&&I()}),i=(0,p.Z)(T.current);return i.addEventListener("resize",n),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver(n)).observe(T.current),()=>{n.clear(),i.removeEventListener("resize",n),r&&r.disconnect()}}),(0,m.Z)(()=>{M()}),l.useEffect(()=>{C.current=0},[_]);let Z=r=>{C.current=0,S||M(),i&&i(r)};return(0,g.jsxs)(l.Fragment,{children:[(0,g.jsx)("textarea",(0,a.Z)({value:_,onChange:Z,ref:E,rows:c,style:(0,a.Z)({height:P.outerHeightStyle,overflow:P.overflow?"hidden":null},u)},w)),(0,g.jsx)("textarea",{"aria-hidden":!0,className:r.className,readOnly:!0,ref:k,tabIndex:-1,style:(0,a.Z)({},b.shadow,u,{padding:0})})]})});var w=i(28442),S=i(15704),T=i(47167),E=i(74423),k=i(90948),C=i(71657),P=i(98216),O=i(51705),j=i(58974),A=i(17297),M=i(5108),I=i(55827);
101let Z=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","startAdornment","type","value"],R=(r,n)=>{let{ownerState:i}=r;return[n.root,i.formControl&&n.formControl,i.startAdornment&&n.adornedStart,i.endAdornment&&n.adornedEnd,i.error&&n.error,"small"===i.size&&n.sizeSmall,i.multiline&&n.multiline,i.color&&n[`color${(0,P.Z)(i.color)}`],i.fullWidth&&n.fullWidth,i.hiddenLabel&&n.hiddenLabel]},D=(r,n)=>{let{ownerState:i}=r;return[n.input,"small"===i.size&&n.inputSizeSmall,i.multiline&&n.inputMultiline,"search"===i.type&&n.inputTypeSearch,i.startAdornment&&n.inputAdornedStart,i.endAdornment&&n.inputAdornedEnd,i.hiddenLabel&&n.inputHiddenLabel]},L=r=>{let{classes:n,color:i,disabled:o,error:a,endAdornment:s,focused:l,formControl:c,fullWidth:d,hiddenLabel:h,multiline:p,readOnly:f,size:m,startAdornment:g,type:v}=r,y={root:["root",`color${(0,P.Z)(i)}`,o&&"disabled",a&&"error",d&&"fullWidth",l&&"focused",c&&"formControl","small"===m&&"sizeSmall",p&&"multiline",g&&"adornedStart",s&&"adornedEnd",h&&"hiddenLabel",f&&"readOnly"],input:["input",o&&"disabled","search"===v&&"inputTypeSearch",p&&"inputMultiline","small"===m&&"inputSizeSmall",h&&"inputHiddenLabel",g&&"inputAdornedStart",s&&"inputAdornedEnd",f&&"readOnly"]};return(0,u.Z)(y,I.u,n)},z=(0,k.ZP)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:R})(({theme:r,ownerState:n})=>(0,a.Z)({},r.typography.body1,{color:(r.vars||r).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${I.Z.disabled}`]:{color:(r.vars||r).palette.text.disabled,cursor:"default"}},n.multiline&&(0,a.Z)({padding:"4px 0 5px"},"small"===n.size&&{paddingTop:1}),n.fullWidth&&{width:"100%"})),B=(0,k.ZP)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:D})(({theme:r,ownerState:n})=>{let i="light"===r.palette.mode,o=(0,a.Z)({color:"currentColor"},r.vars?{opacity:r.vars.opacity.inputPlaceholder}:{opacity:i?.42:.5},{transition:r.transitions.create("opacity",{duration:r.transitions.duration.shorter})}),s={opacity:"0 !important"},l=r.vars?{opacity:r.vars.opacity.inputPlaceholder}:{opacity:i?.42:.5};return(0,a.Z)({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${I.Z.formControl} &`]:{"&::-webkit-input-placeholder":s,"&::-moz-placeholder":s,"&:-ms-input-placeholder":s,"&::-ms-input-placeholder":s,"&:focus::-webkit-input-placeholder":l,"&:focus::-moz-placeholder":l,"&:focus:-ms-input-placeholder":l,"&:focus::-ms-input-placeholder":l},[`&.${I.Z.disabled}`]:{opacity:1,WebkitTextFillColor:(r.vars||r).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===n.size&&{paddingTop:1},n.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===n.type&&{MozAppearance:"textfield"})}),F=(0,g.jsx)(A.Z,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),N=l.forwardRef(function(r,n){let i=(0,C.Z)({props:r,name:"MuiInputBase"}),{"aria-describedby":u,autoComplete:d,autoFocus:h,className:p,components:f={},componentsProps:m={},defaultValue:v,disabled:y,disableInjectingGlobalStyles:b,endAdornment:x,fullWidth:k=!1,id:P,inputComponent:A="input",inputProps:I={},inputRef:R,maxRows:D,minRows:N,multiline:U=!1,name:V,onBlur:q,onChange:$,onClick:G,onFocus:W,onKeyDown:H,onKeyUp:X,placeholder:Y,readOnly:K,renderSuffix:J,rows:Q,startAdornment:ee,type:et="text",value:er}=i,en=(0,o.Z)(i,Z),ei=null!=I.value?I.value:er,{current:eo}=l.useRef(null!=ei),ea=l.useRef(),es=l.useCallback(r=>{},[]),el=(0,O.Z)(I.ref,es),ec=(0,O.Z)(R,el),eu=(0,O.Z)(ea,ec),[ed,eh]=l.useState(!1),ep=(0,E.Z)(),ef=(0,S.Z)({props:i,muiFormControl:ep,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ef.focused=ep?ep.focused:ed,l.useEffect(()=>{!ep&&y&&ed&&(eh(!1),q&&q())},[ep,y,ed,q]);let em=ep&&ep.onFilled,eg=ep&&ep.onEmpty,ev=l.useCallback(r=>{(0,M.vd)(r)?em&&em():eg&&eg()},[em,eg]);(0,j.Z)(()=>{eo&&ev({value:ei})},[ei,ev,eo]);let ey=r=>{if(ef.disabled){r.stopPropagation();return}W&&W(r),I.onFocus&&I.onFocus(r),ep&&ep.onFocus?ep.onFocus(r):eh(!0)},eb=r=>{q&&q(r),I.onBlur&&I.onBlur(r),ep&&ep.onBlur?ep.onBlur(r):eh(!1)},ex=(r,...n)=>{if(!eo){let n=r.target||ea.current;if(null==n)throw Error((0,s.Z)(1));ev({value:n.value})}I.onChange&&I.onChange(r,...n),$&&$(r,...n)};l.useEffect(()=>{ev(ea.current)},[]);let e_=r=>{ea.current&&r.currentTarget===r.target&&ea.current.focus(),G&&G(r)},ew=A,eS=I;U&&"input"===ew&&(eS=Q?(0,a.Z)({type:void 0,minRows:Q,maxRows:Q},eS):(0,a.Z)({type:void 0,maxRows:D,minRows:N},eS),ew=_);let eT=r=>{ev("mui-auto-fill-cancel"===r.animationName?ea.current:{value:"x"})};l.useEffect(()=>{ep&&ep.setAdornedStart(Boolean(ee))},[ep,ee]);let eE=(0,a.Z)({},i,{color:ef.color||"primary",disabled:ef.disabled,endAdornment:x,error:ef.error,focused:ef.focused,formControl:ep,fullWidth:k,hiddenLabel:ef.hiddenLabel,multiline:U,size:ef.size,startAdornment:ee,type:et}),ek=L(eE),eC=f.Root||z,eP=m.root||{},eO=f.Input||B;return eS=(0,a.Z)({},eS,m.input),(0,g.jsxs)(l.Fragment,{children:[!b&&F,(0,g.jsxs)(eC,(0,a.Z)({},eP,!(0,w.Z)(eC)&&{ownerState:(0,a.Z)({},eE,eP.ownerState)},{ref:n,onClick:e_}
101,en,{className:(0,c.Z)(ek.root,eP.className,p),children:[ee,(0,g.jsx)(T.Z.Provider,{value:null,children:(0,g.jsx)(eO,(0,a.Z)({ownerState:eE,"aria-invalid":ef.error,"aria-describedby":u,autoComplete:d,autoFocus:h,defaultValue:v,disabled:ef.disabled,id:P,onAnimationStart:eT,name:V,placeholder:Y,readOnly:K,required:ef.required,rows:Q,value:ei,onKeyDown:H,onKeyUp:X,type:et},eS,!(0,w.Z)(eO)&&{as:ew,ownerState:(0,a.Z)({},eE,eS.ownerState)},{ref:eu,className:(0,c.Z)(ek.input,eS.className),onBlur:eb,onChange:ex,onFocus:ey}))}),x,J?J((0,a.Z)({},ef,{startAdornment:ee})):null]}))]})});var U=N},55827:function(r,n,i){"use strict";i.d(n,{u:function(){return s}});var o=i(34867),a=i(1588);function s(r){return(0,o.ZP)("MuiInputBase",r)}let l=(0,a.Z)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);n.Z=l},5108:function(r,n,i){"use strict";function o(r){return null!=r&&!(Array.isArray(r)&&0===r.length)}function a(r,n=!1){return r&&(o(r.value)&&""!==r.value||n&&o(r.defaultValue)&&""!==r.defaultValue)}function s(r){return r.startAdornment}i.d(n,{B7:function(){return s},vd:function(){return a}})},47312:function(r,n,i){"use strict";i.d(n,{Z:function(){return w}});var o=i(63366),a=i(87462),s=i(67294),l=i(94780),c=i(15704),u=i(74423),d=i(40476),h=i(64748),p=i(71657),f=i(90948),m=i(34867);function g(r){return(0,m.ZP)("MuiInputLabel",r)}(0,i(1588).Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);var v=i(85893);let y=["disableAnimation","margin","shrink","variant"],b=r=>{let{classes:n,formControl:i,size:o,shrink:s,disableAnimation:c,variant:u,required:d}=r,h=(0,l.Z)({root:["root",i&&"formControl",!c&&"animated",s&&"shrink","small"===o&&"sizeSmall",u],asterisk:[d&&"asterisk"]},g,n);return(0,a.Z)({},n,h)},x=(0,f.ZP)(d.Z,{shouldForwardProp:r=>(0,f.FO)(r)||"classes"===r,name:"MuiInputLabel",slot:"Root",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[{[`& .${h.Z.asterisk}`]:n.asterisk},n.root,i.formControl&&n.formControl,"small"===i.size&&n.sizeSmall,i.shrink&&n.shrink,!i.disableAnimation&&n.animated,n[i.variant]]}})(({theme:r,ownerState:n})=>(0,a.Z)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},n.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===n.size&&{transform:"translate(0, 17px) scale(1)"},n.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!n.disableAnimation&&{transition:r.transitions.create(["color","transform","max-width"],{duration:r.transitions.duration.shorter,easing:r.transitions.easing.easeOut})},"filled"===n.variant&&(0,a.Z)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(12px, 13px) scale(1)"},n.shrink&&(0,a.Z)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===n.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===n.variant&&(0,a.Z)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(14px, 9px) scale(1)"},n.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 24px)",transform:"translate(14px, -9px) scale(0.75)"}))),_=s.forwardRef(function(r,n){let i=(0,p.Z)({name:"MuiInputLabel",props:r}),{disableAnimation:s=!1,shrink:l}=i,d=(0,o.Z)(i,y),h=(0,u.Z)(),f=l;void 0===f&&h&&(f=h.filled||h.focused||h.adornedStart);let m=(0,c.Z)({props:i,muiFormControl:h,states:["size","variant","required"]}),g=(0,a.Z)({},i,{disableAnimation:s,formControl:h,shrink:f,size:m.size,variant:m.variant,required:m.required}),_=b(g);return(0,v.jsx)(x,(0,a.Z)({"data-shrink":f,ownerState:g,ref:n},d,{classes:_}))});var w=_},23795:function(r,n,i){"use strict";i.d(n,{Z:function(){return j}});var o=i(63366),a=i(87462),s=i(67294),l=i(93680),c=i(94780),u=i(98216),d=i(90948),h=i(71657),p=i(39184),f=i(51705),m=i(15861),g=i(34867),v=i(1588);function y(r){return(0,g.ZP)("MuiLink",r)}let b=(0,v.Z)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);var x=i(54844),_=i(8423);let w={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},S=r=>w[r]||r,T=({theme:r,ownerState:n})=>{let i=S(n.color),o=(0,x.DW)(r,`palette.${i}`,!1)||n.color,a=(0,x.DW)(r,`palette.${i}Channel`);return"vars"in r&&a?`rgba(${a} / 0.4)`:(0,_.Fq)(o,.4)};var E=i(85893);let k=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],C=r=>{let{classes:n,component:i,focusVisible:o,underline:a}=r,s={root:["root",`underline${(0,u.Z)(a)}
101`,"button"===i&&"button",o&&"focusVisible"]};return(0,c.Z)(s,y,n)},P=(0,d.ZP)(m.Z,{name:"MuiLink",slot:"Root",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[n.root,n[`underline${(0,u.Z)(i.underline)}`],"button"===i.component&&n.button]}})(({theme:r,ownerState:n})=>(0,a.Z)({},"none"===n.underline&&{textDecoration:"none"},"hover"===n.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===n.underline&&(0,a.Z)({textDecoration:"underline"},"inherit"!==n.color&&{textDecorationColor:T({theme:r,ownerState:n})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===n.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${b.focusVisible}`]:{outline:"auto"}})),O=s.forwardRef(function(r,n){let i=(0,h.Z)({props:r,name:"MuiLink"}),{className:c,color:u="primary",component:d="a",onBlur:m,onFocus:g,TypographyClasses:v,underline:y="always",variant:b="inherit",sx:x}=i,_=(0,o.Z)(i,k),{isFocusVisibleRef:S,onBlur:T,onFocus:O,ref:j}=(0,p.Z)(),[A,M]=s.useState(!1),I=(0,f.Z)(n,j),Z=r=>{T(r),!1===S.current&&M(!1),m&&m(r)},R=r=>{O(r),!0===S.current&&M(!0),g&&g(r)},D=(0,a.Z)({},i,{color:u,component:d,focusVisible:A,underline:y,variant:b}),L=C(D);return(0,E.jsx)(P,(0,a.Z)({color:u,className:(0,l.Z)(L.root,c),classes:v,component:d,onBlur:Z,onFocus:R,ref:I,ownerState:D,variant:b,sx:[...Object.keys(w).includes(u)?[]:[{color:u}],...Array.isArray(x)?x:[x]]},_))});var j=O},78462:function(r,n,i){"use strict";i.d(n,{Z:function(){return x}});var o=i(63366),a=i(87462),s=i(67294),l=i(93680),c=i(94780),u=i(90948),d=i(71657),h=i(59773),p=i(34867);function f(r){return(0,p.ZP)("MuiList",r)}(0,i(1588).Z)("MuiList",["root","padding","dense","subheader"]);var m=i(85893);let g=["children","className","component","dense","disablePadding","subheader"],v=r=>{let{classes:n,disablePadding:i,dense:o,subheader:a}=r;return(0,c.Z)({root:["root",!i&&"padding",o&&"dense",a&&"subheader"]},f,n)},y=(0,u.ZP)("ul",{name:"MuiList",slot:"Root",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[n.root,!i.disablePadding&&n.padding,i.dense&&n.dense,i.subheader&&n.subheader]}})(({ownerState:r})=>(0,a.Z)({listStyle:"none",margin:0,padding:0,position:"relative"},!r.disablePadding&&{paddingTop:8,paddingBottom:8},r.subheader&&{paddingTop:0})),b=s.forwardRef(function(r,n){let i=(0,d.Z)({props:r,name:"MuiList"}),{children:c,className:u,component:p="ul",dense:f=!1,disablePadding:b=!1,subheader:x}=i,_=(0,o.Z)(i,g),w=s.useMemo(()=>({dense:f}),[f]),S=(0,a.Z)({},i,{component:p,dense:f,disablePadding:b}),T=v(S);return(0,m.jsx)(h.Z.Provider,{value:w,children:(0,m.jsxs)(y,(0,a.Z)({as:p,className:(0,l.Z)(T.root,u),ref:n,ownerState:S},_,{children:[x,c]}))})});var x=b},59773:function(r,n,i){"use strict";var o=i(67294);let a=o.createContext({});n.Z=a},97212:function(r,n,i){"use strict";i.d(n,{ZP:function(){return L}});var o=i(63366),a=i(87462),s=i(67294),l=i(93680),c=i(94780),u=i(28442),d=i(8423),h=i(90948),p=i(71657),f=i(82607),m=i(50700),g=i(58974),v=i(51705),y=i(59773),b=i(34867),x=i(1588);function _(r){return(0,b.ZP)("MuiListItem",r)}let w=(0,x.Z)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);var S=i(68686);function T(r){return(0,b.ZP)("MuiListItemSecondaryAction",r)}(0,x.Z)("MuiListItemSecondaryAction",["root","disableGutters"]);var E=i(85893);let k=["className"],C=r=>{let{disableGutters:n,classes:i}=r;return(0,c.Z)({root:["root",n&&"disableGutters"]},T,i)},P=(0,h.ZP)("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[n.root,i.disableGutters&&n.disableGutters]}})(({ownerState:r})=>(0,a.Z)({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},r.disableGutters&&{right:0})),O=s.forwardRef(function(r,n){let i=(0,p.Z)({props:r,name:"MuiListItemSecondaryAction"}),{className:c}=i,u=(0,o.Z)(i,k),d=s.useContext(y.Z),h=(0,a.Z)({},i,{disableGutters:d.disableGutters}),f=C(h);return(0,E.jsx)(P,(0,a.Z)({className:(0,l.Z)(f.root,c),ownerState:h,ref:n},u))});O.muiName="ListItemSecondaryAction";let j=["className"],A=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected"],M=(r,n)=>{let{ownerState:i}=r;return[n.root,i.dense&&n.dense,"flex-start"===i.alignItems&&n.alignItemsFlexStart,i.divider&&n.divider,!i.disableGutters&&n.gutters,!i.disablePadding&&n.padding,i.button&&n.button,i.hasSecondaryAction&&n.secondaryAction]},I=r=>{let{alignItems:n,button:i,classes:o,dense:a,disabled:s,disableGutters:l,disablePadding:u,divi
101der:d,hasSecondaryAction:h,selected:p}=r;return(0,c.Z)({root:["root",a&&"dense",!l&&"gutters",!u&&"padding",d&&"divider",s&&"disabled",i&&"button","flex-start"===n&&"alignItemsFlexStart",h&&"secondaryAction",p&&"selected"],container:["container"]},_,o)},Z=(0,h.ZP)("div",{name:"MuiListItem",slot:"Root",overridesResolver:M})(({theme:r,ownerState:n})=>(0,a.Z)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!n.disablePadding&&(0,a.Z)({paddingTop:8,paddingBottom:8},n.dense&&{paddingTop:4,paddingBottom:4},!n.disableGutters&&{paddingLeft:16,paddingRight:16},!!n.secondaryAction&&{paddingRight:48}),!!n.secondaryAction&&{[`& > .${S.Z.root}`]:{paddingRight:48}},{[`&.${w.focusVisible}`]:{backgroundColor:(r.vars||r).palette.action.focus},[`&.${w.selected}`]:{backgroundColor:r.vars?`rgba(${r.vars.palette.primary.mainChannel} / ${r.vars.palette.action.selectedOpacity})`:(0,d.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity),[`&.${w.focusVisible}`]:{backgroundColor:r.vars?`rgba(${r.vars.palette.primary.mainChannel} / calc(${r.vars.palette.action.selectedOpacity} + ${r.vars.palette.action.focusOpacity}))`:(0,d.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity+r.palette.action.focusOpacity)}},[`&.${w.disabled}`]:{opacity:(r.vars||r).palette.action.disabledOpacity}},"flex-start"===n.alignItems&&{alignItems:"flex-start"},n.divider&&{borderBottom:`1px solid ${(r.vars||r).palette.divider}`,backgroundClip:"padding-box"},n.button&&{transition:r.transitions.create("background-color",{duration:r.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(r.vars||r).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${w.selected}:hover`]:{backgroundColor:r.vars?`rgba(${r.vars.palette.primary.mainChannel} / calc(${r.vars.palette.action.selectedOpacity} + ${r.vars.palette.action.hoverOpacity}))`:(0,d.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity+r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:r.vars?`rgba(${r.vars.palette.primary.mainChannel} / ${r.vars.palette.action.selectedOpacity})`:(0,d.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity)}}},n.hasSecondaryAction&&{paddingRight:48})),R=(0,h.ZP)("li",{name:"MuiListItem",slot:"Container",overridesResolver:(r,n)=>n.container})({position:"relative"}),D=s.forwardRef(function(r,n){let i=(0,p.Z)({props:r,name:"MuiListItem"}),{alignItems:c="center",autoFocus:d=!1,button:h=!1,children:b,className:x,component:_,components:S={},componentsProps:T={},ContainerComponent:k="li",ContainerProps:{className:C}={},dense:P=!1,disabled:M=!1,disableGutters:D=!1,disablePadding:L=!1,divider:z=!1,focusVisibleClassName:B,secondaryAction:F,selected:N=!1}=i,U=(0,o.Z)(i.ContainerProps,j),V=(0,o.Z)(i,A),q=s.useContext(y.Z),$={dense:P||q.dense||!1,alignItems:c,disableGutters:D},G=s.useRef(null);(0,g.Z)(()=>{d&&G.current&&G.current.focus()},[d]);let W=s.Children.toArray(b),H=W.length&&(0,m.Z)(W[W.length-1],["ListItemSecondaryAction"]),X=(0,a.Z)({},i,{alignItems:c,autoFocus:d,button:h,dense:$.dense,disabled:M,disableGutters:D,disablePadding:L,divider:z,hasSecondaryAction:H,selected:N}),Y=I(X),K=(0,v.Z)(G,n),J=S.Root||Z,Q=T.root||{},ee=(0,a.Z)({className:(0,l.Z)(Y.root,Q.className,x),disabled:M},V),et=_||"li";return(h&&(ee.component=_||"div",ee.focusVisibleClassName=(0,l.Z)(w.focusVisible,B),et=f.Z),H)?(et=ee.component||_?et:"div","li"===k&&("li"===et?et="div":"li"===ee.component&&(ee.component="div")),(0,E.jsx)(y.Z.Provider,{value:$,children:(0,E.jsxs)(R,(0,a.Z)({as:k,className:(0,l.Z)(Y.container,C),ref:K,ownerState:X},U,{children:[(0,E.jsx)(J,(0,a.Z)({},Q,!(0,u.Z)(J)&&{as:et,ownerState:(0,a.Z)({},X,Q.ownerState)},ee,{children:W})),W.pop()]}))})):(0,E.jsx)(y.Z.Provider,{value:$,children:(0,E.jsxs)(J,(0,a.Z)({},Q,{as:et,ref:K,ownerState:X},!(0,u.Z)(J)&&{ownerState:(0,a.Z)({},X,Q.ownerState)},ee,{children:[W,F&&(0,E.jsx)(O,{children:F})]}))})});var L=D},68686:function(r,n,i){"use strict";i.d(n,{t:function(){return s}});var o=i(34867),a=i(1588);function s(r){return(0,o.ZP)("MuiListItemButton",r)}let l=(0,a.Z)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);n.Z=l},84592:function(r,n,i){"use strict";i.d(n,{f:function(){return s}});var o=i(34867),a=i(1588);function s(r){return(0,o.ZP)("MuiListItemIcon",r)}let l=(0,a.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);n.Z=l},26336:function(r,n,i){"use strict";i.d(n,{L:function(){return s}});var o=i(34867),a=i(1588);function s(r){return(0,o.ZP)("MuiListItemText",r)}let l=(0,a.Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);n.Z=l},44347:function(r,n,i){"use strict";i.d(n,{Z:function(){return z}});var o=i(87462),a=i(63366),s=i(67294);i(59864);var l=i(93680),c=i(94780),u=i(8038),d=i(78462),h=i(29726).Z,p=i(51705),f=i(58974),m=i(85893);let g=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function v(r,n,i){return r===n?r.firstChild:n&&n.nextElementSibling?n.nextElementSibling:i?null:r.firstChild}function y(r,n,i){return r===n?i?r.firstChild:r.lastChild:n&&n.previousElementSibling?n.previousElementSibling:i?null:r.lastChild}function b(r,n){if(void 0===n)return!0;let i=r.innerText;return void 0===i&&(i=r.textContent),0!==(i=i.trim().toLowerCase()).length&&(n.repeating?i[0]===n.keys[0]:0===i.indexOf(n.keys.join("")))}function x(r,n,i,o,a,s){let l=!1,c=a(r,n,!!n&&i);for(;c;){if(c===r.firstChild){if(l)return!1;l=!0}let n=!o&&(c.disabled||"true"===c.getAttribute("aria-disabled"));if(c.hasAttribute("tabindex")&&b(c,s)&&!n)return c.focus(),!0;c=a(r,c,i)}return!1}let _=s.forwardRef(function(r,n){let{actions:i,autoFocus:l=!1,autoFocusItem:c=!1,children:_,className:w,disabledItemsFocusable:S=!1,disableListWrap:T=!1,onKeyDown:E,variant:k="selectedMenu"}=r,C=(0,a.Z)(r,g),P=s.useRef(null),O=s.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,f.Z)(()=>{l&&P.current.focus()},[l]),s.useImperativeHandle(i,()=>({adjustStyleForScrollbar:(r,n)=>{let i=!P.current.style.width;if(r.clientHeight<P.current.clientHeight&&i){let i=`${h((0,u.Z)(r))}px`;P.current.style["rtl"===n.direction?"paddingLeft":"paddingRight"]=i,P.current.style.width=`calc(100% + ${i})`}return P.current}}),[]);let j=r=>{let n=P.current,i=r.key,o=(0,u.Z)(n).activeElement;if("ArrowDown"===i)r.preventDefault(),x(n,o,T,S,v);else if("ArrowUp"===i)r.preventDefault(),x(n,o,T,S,y);else if("Home"===i)r.preventDefault(),x(n,null,T,S,v);else if("End"===i)r.preventDefault(),x(n,null,T,S,y);else if(1===i.length){let a=O.current,s=i.toLowerCase(),l=performance.now();a.keys.length>0&&(l-a.lastTime>500?(a.keys=[],a.repeating=!0,a.previousKeyMatched=!0):a.repeating&&s!==a.keys[0]&&(a.repeating=!1)),a.lastTime=l,a.keys.push(s);let c=o&&!a.repeating&&b(o,a);a.previousKeyMatched&&(c||x(n,o,!1,S,v,a))?r.preventDefault():a.previousKeyMatched=!1}E&&E(r)},A=(0,p.Z)(P,n),M=-1;
101s.Children.forEach(_,(r,n)=>{s.isValidElement(r)&&(r.props.disabled||("selectedMenu"===k&&r.props.selected?M=n:-1!==M||(M=n)))});let I=s.Children.map(_,(r,n)=>{if(n===M){let n={};return c&&(n.autoFocus=!0),void 0===r.props.tabIndex&&"selectedMenu"===k&&(n.tabIndex=0),s.cloneElement(r,n)}return r});return(0,m.jsx)(d.Z,(0,o.Z)({role:"menu",ref:A,className:w,onKeyDown:j,tabIndex:l?0:-1},C,{children:I}))});var w=i(55113),S=i(90103),T=i(90948),E=i(2734),k=i(71657),C=i(34867);function P(r){return(0,C.ZP)("MuiMenu",r)}(0,i(1588).Z)("MuiMenu",["root","paper","list"]);let O=["onEntering"],j=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],A={vertical:"top",horizontal:"right"},M={vertical:"top",horizontal:"left"},I=r=>{let{classes:n}=r;return(0,c.Z)({root:["root"],paper:["paper"],list:["list"]},P,n)},Z=(0,T.ZP)(S.ZP,{shouldForwardProp:r=>(0,T.FO)(r)||"classes"===r,name:"MuiMenu",slot:"Root",overridesResolver:(r,n)=>n.root})({}),R=(0,T.ZP)(w.Z,{name:"MuiMenu",slot:"Paper",overridesResolver:(r,n)=>n.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),D=(0,T.ZP)(_,{name:"MuiMenu",slot:"List",overridesResolver:(r,n)=>n.list})({outline:0}),L=s.forwardRef(function(r,n){let i=(0,k.Z)({props:r,name:"MuiMenu"}),{autoFocus:c=!0,children:u,disableAutoFocusItem:d=!1,MenuListProps:h={},onClose:p,open:f,PaperProps:g={},PopoverClasses:v,transitionDuration:y="auto",TransitionProps:{onEntering:b}={},variant:x="selectedMenu"}=i,_=(0,a.Z)(i.TransitionProps,O),w=(0,a.Z)(i,j),S=(0,E.Z)(),T="rtl"===S.direction,C=(0,o.Z)({},i,{autoFocus:c,disableAutoFocusItem:d,MenuListProps:h,onEntering:b,PaperProps:g,transitionDuration:y,TransitionProps:_,variant:x}),P=I(C),L=s.useRef(null),z=(r,n)=>{L.current&&L.current.adjustStyleForScrollbar(r,S),b&&b(r,n)},B=r=>{"Tab"===r.key&&(r.preventDefault(),p&&p(r,"tabKeyDown"))},F=-1;return s.Children.map(u,(r,n)=>{s.isValidElement(r)&&(r.props.disabled||("selectedMenu"===x&&r.props.selected?F=n:-1!==F||(F=n)))}),(0,m.jsx)(Z,(0,o.Z)({classes:v,onClose:p,anchorOrigin:{vertical:"bottom",horizontal:T?"right":"left"},transformOrigin:T?A:M,PaperProps:(0,o.Z)({component:R},g,{classes:(0,o.Z)({},g.classes,{root:P.paper})}),className:P.root,open:f,ref:n,transitionDuration:y,TransitionProps:(0,o.Z)({onEntering:z},_),ownerState:C},w,{children:(0,m.jsx)(D,(0,o.Z)({onKeyDown:B,actions:L,autoFocus:c&&(-1===F||d),autoFocusItem:c&&!d&&f,variant:x},h,{className:(0,l.Z)(P.list,h.className),children:u}))}))});var z=L},18972:function(r,n,i){"use strict";i.d(n,{Z:function(){return j}});var o=i(63366),a=i(87462),s=i(67294),l=i(93680),c=i(94780),u=i(8423),d=i(90948),h=i(71657),p=i(59773),f=i(82607),m=i(58974),g=i(51705),v=i(35097),y=i(84592),b=i(26336),x=i(34867),_=i(1588);function w(r){return(0,x.ZP)("MuiMenuItem",r)}let S=(0,_.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);var T=i(85893);let E=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex"],k=(r,n)=>{let{ownerState:i}=r;return[n.root,i.dense&&n.dense,i.divider&&n.divider,!i.disableGutters&&n.gutters]},C=r=>{let{disabled:n,dense:i,divider:o,disableGutters:s,selected:l,classes:u}=r,d=(0,c.Z)({root:["root",i&&"dense",n&&"disabled",!s&&"gutters",o&&"divider",l&&"selected"]},w,u);return(0,a.Z)({},u,d)},P=(0,d.ZP)(f.Z,{shouldForwardProp:r=>(0,d.FO)(r)||"classes"===r,name:"MuiMenuItem",slot:"Root",overridesResolver:k})(({theme:r,ownerState:n})=>(0,a.Z)({},r.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.divider&&{borderBottom:`1px solid ${(r.vars||r).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(r.vars||r).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${S.selected}`]:{backgroundColor:r.vars?`rgba(${r.vars.palette.primary.mainChannel} / ${r.vars.palette.action.selectedOpacity})`:(0,u.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity),[`&.${S.focusVisible}`]:{backgroundColor:r.vars?`rgba(${r.vars.palette.primary.mainChannel} / calc(${r.vars.palette.action.selectedOpacity} + ${r.vars.palette.action.focusOpacity}))`:(0,u.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity+r.palette.action.focusOpacity)}},[`&.${S.selected}:hover`]:{backgroundColor:r.vars?`rgba(${r.vars.palette.primary.mainChannel} / calc(${r.vars.palette.action.selectedOpacity} + ${r.vars.palette.action.hoverOpacity}))`:(0,u.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity+r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:r.vars?`rgba(${r.vars.palette.primary.mainChannel} / ${r.vars.palette.action.selectedOpacity})`:(0,u.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity)}},[`&.${S.focusVisible}`]:{backgroundColor:(r.vars||r).palette.action.focus},[`&.${S.disabled}`]:{opacity:(r.vars||r).palette.action.disabledOpacity},[`& + .${v.Z.root}`]:{marginTop:r.spacing(1),marginBottom:r.spacing(1)},[`& + .${v.Z.inset}`]:{marginLeft:52},[`& .${b.Z.root}`]:{marginTop:0,marginBottom:0},[`& .${b.Z.inset}`]:{paddingLeft:36},[`& .${y.Z.root}`]:{minWidth:36}},!n.dense&&{[r.breakpoints.up("sm")]:{minHeight:"auto"}},n.dense&&(0,a.Z)({minHeight:32,paddingTop:4,paddingBottom:4},r.typography.body2,{[`& .${y.Z.root} svg`]:{fontSize:"1.25rem"}}))),O=s.forwardRef(function(r,n){let i;let c=(0,h.Z)({props:r,name:"MuiMenuItem"}),{autoFocus:u=!1,component:d="li",dense:f=!1,divider:v=!1,disableGutters:y=!1,focusVisibleClassName:b,role:x="menuitem",tabIndex:_}=c,w=(0,o.Z)(c,E),S=s.useContext(p.Z),k={dense:f||S.dense||!1,disableGutters:y},O=s.useRef(null);(0,m.Z)(()=>{u&&O.current&&O.current.focus()},[u]);let j=(0,a.Z)({},c,{dense:k.dense,divider:v,disableGutters:y}),A=C(c),M=(0,g.Z)(O,n);return c.disabled||(i=void 0!==_?_:-1),(0,T.jsx)(p.Z.Provider,{value:k,children:(0,T.jsx)(P,(0,a.Z)({ref:M,role:x,tabIndex:i,component:d,focusVisibleClassName:(0,l.Z)(A.focusVisible,b)},w,{ownerState:j,classes:A}))})});var j=O},2999:function(r,n,i){"use strict";i.d(n,{Z:function(){return H}});var o=i(63366),a=i(87462),s=i(67294),l=i(33703),c=i(82690),u=i(59948),d=i(91476),h=i(94780),p=i(73935),f=i(73546),m=i(27364);let g=s.forwardRef(function(r,n){let{children:i,container:o,disablePortal:a=!1}=r,[c,u]=s.useState(null),d=(0,l.Z)(s.isValidElement(i)?i.ref:null,n);return((0,f.Z)(()=>{!a&&u(("function"==typeof o?o():o)||document.body)},[o,a]),(0,f.Z)(()=>
101{if(c&&!a)return(0,m.Z)(n,c),()=>{(0,m.Z)(n,null)}},[n,c,a]),a)?s.isValidElement(i)?s.cloneElement(i,{ref:d}):i:c?p.createPortal(i,c):c});var v=i(74161),y=i(29726);function b(r,n){n?r.setAttribute("aria-hidden","true"):r.removeAttribute("aria-hidden")}function x(r){return parseInt((0,v.Z)(r).getComputedStyle(r).paddingRight,10)||0}function _(r,n,i,o=[],a){let s=[n,i,...o];[].forEach.call(r.children,r=>{let n=-1===s.indexOf(r),i=!function(r){let n=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(r.tagName),i="INPUT"===r.tagName&&"hidden"===r.getAttribute("type");return n||i}(r);n&&i&&b(r,a)})}function w(r,n){let i=-1;return r.some((r,o)=>!!n(r)&&(i=o,!0)),i}var S=i(85893);function T(r){let n=[],i=[];return Array.from(r.querySelectorAll('input,select,textarea,a[href],button,[tabindex],audio[controls],video[controls],[contenteditable]:not([contenteditable="false"])')).forEach((r,o)=>{let a=function(r){let n=parseInt(r.getAttribute("tabindex"),10);return Number.isNaN(n)?"true"===r.contentEditable||("AUDIO"===r.nodeName||"VIDEO"===r.nodeName||"DETAILS"===r.nodeName)&&null===r.getAttribute("tabindex")?0:r.tabIndex:n}(r);-1===a||r.disabled||"INPUT"===r.tagName&&"hidden"===r.type||function(r){if("INPUT"!==r.tagName||"radio"!==r.type||!r.name)return!1;let n=n=>r.ownerDocument.querySelector(`input[type="radio"]${n}`),i=n(`[name="${r.name}"]:checked`);return i||(i=n(`[name="${r.name}"]`)),i!==r}(r)||(0===a?n.push(r):i.push({documentOrder:o,tabIndex:a,node:r}))}),i.sort((r,n)=>r.tabIndex===n.tabIndex?r.documentOrder-n.documentOrder:r.tabIndex-n.tabIndex).map(r=>r.node).concat(n)}function E(){return!0}var k=function(r){let{children:n,disableAutoFocus:i=!1,disableEnforceFocus:o=!1,disableRestoreFocus:a=!1,getTabbable:u=T,isEnabled:d=E,open:h}=r,p=s.useRef(),f=s.useRef(null),m=s.useRef(null),g=s.useRef(null),v=s.useRef(null),y=s.useRef(!1),b=s.useRef(null),x=(0,l.Z)(n.ref,b),_=s.useRef(null);s.useEffect(()=>{h&&b.current&&(y.current=!i)},[i,h]),s.useEffect(()=>{if(!h||!b.current)return;let r=(0,c.Z)(b.current);return!b.current.contains(r.activeElement)&&(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex",-1),y.current&&b.current.focus()),()=>{a||(g.current&&g.current.focus&&(p.current=!0,g.current.focus()),g.current=null)}},[h]),s.useEffect(()=>{if(!h||!b.current)return;let r=(0,c.Z)(b.current),n=n=>{let{current:i}=b;if(null!==i){if(!r.hasFocus()||o||!d()||p.current){p.current=!1;return}if(!i.contains(r.activeElement)){if(n&&v.current!==n.target||r.activeElement!==v.current)v.current=null;else if(null!==v.current)return;if(!y.current)return;let o=[];if((r.activeElement===f.current||r.activeElement===m.current)&&(o=u(b.current)),o.length>0){var a,s;let r=Boolean((null==(a=_.current)?void 0:a.shiftKey)&&(null==(s=_.current)?void 0:s.key)==="Tab"),n=o[0],i=o[o.length-1];r?i.focus():n.focus()}else i.focus()}}},i=n=>{_.current=n,!o&&d()&&"Tab"===n.key&&r.activeElement===b.current&&n.shiftKey&&(p.current=!0,m.current.focus())};r.addEventListener("focusin",n),r.addEventListener("keydown",i,!0);let a=setInterval(()=>{"BODY"===r.activeElement.tagName&&n()},50);return()=>{clearInterval(a),r.removeEventListener("focusin",n),r.removeEventListener("keydown",i,!0)}},[i,o,a,d,h,u]);let w=r=>{null===g.current&&(g.current=r.relatedTarget),y.current=!0,v.current=r.target;let i=n.props.onFocus;i&&i(r)},k=r=>{null===g.current&&(g.current=r.relatedTarget),y.current=!0};return(0,S.jsxs)(s.Fragment,{children:[(0,S.jsx)("div",{tabIndex:0,onFocus:k,ref:f,"data-test":"sentinelStart"}),s.cloneElement(n,{ref:x,onFocus:w}),(0,S.jsx)("div",{tabIndex:0,onFocus:k,ref:m,"data-test":"sentinelEnd"})]})},C=i(1588),P=i(34867);function O(r){return(0,P.ZP)("MuiModal",r)}(0,C.Z)("MuiModal",["root","hidden"]);var j=i(28442),A=function(){for(var r,n,i=0,o="";i<arguments.length;)(r=arguments[i++])&&(n=function r(n){var i,o,a="";if("string"==typeof n||"number"==typeof n)a+=n;else if("object"==typeof n){if(Array.isArray(n))for(i=0;i<n.length;i++)n[i]&&(o=r(n[i]))&&(a&&(a+=" "),a+=o);else for(i in n)n[i]&&(a&&(a+=" "),a+=i)}return a}(r))&&(o&&(o+=" "),o+=n);return o};function M(r){if(void 0===r)return{};let n={};return Object.keys(r).filter(n=>
101!(n.match(/^on[A-Z]/)&&"function"==typeof r[n])).forEach(i=>{n[i]=r[i]}),n}function I(r,n){return"function"==typeof r?r(n):r}let Z=["elementType","externalSlotProps","ownerState"];function R(r){var n;let{elementType:i,externalSlotProps:s,ownerState:c}=r,u=(0,o.Z)(r,Z),d=I(s,c),{props:h,internalRef:p}=function(r){let{getSlotProps:n,additionalProps:i,externalSlotProps:o,externalForwardedProps:s,className:l}=r;if(!n){let r=A(null==s?void 0:s.className,null==o?void 0:o.className,l,null==i?void 0:i.className),n=(0,a.Z)({},null==i?void 0:i.style,null==s?void 0:s.style,null==o?void 0:o.style),c=(0,a.Z)({},i,s,o);return r.length>0&&(c.className=r),Object.keys(n).length>0&&(c.style=n),{props:c,internalRef:void 0}}let c=function(r,n=[]){if(void 0===r)return{};let i={};return Object.keys(r).filter(i=>i.match(/^on[A-Z]/)&&"function"==typeof r[i]&&!n.includes(i)).forEach(n=>{i[n]=r[n]}),i}((0,a.Z)({},s,o)),u=M(o),d=M(s),h=n(c),p=A(null==h?void 0:h.className,null==i?void 0:i.className,l,null==s?void 0:s.className,null==o?void 0:o.className),f=(0,a.Z)({},null==h?void 0:h.style,null==i?void 0:i.style,null==s?void 0:s.style,null==o?void 0:o.style),m=(0,a.Z)({},h,i,d,u);return p.length>0&&(m.className=p),Object.keys(f).length>0&&(m.style=f),{props:m,internalRef:h.ref}}((0,a.Z)({},u,{externalSlotProps:d})),f=(0,l.Z)(p,(0,l.Z)(null==d?void 0:d.ref,null==(n=r.additionalProps)?void 0:n.ref)),m=function(r,n={},i){return(0,j.Z)(r)?n:(0,a.Z)({},n,{ownerState:(0,a.Z)({},n.ownerState,i)})}(i,(0,a.Z)({},h,{ref:f}),c);return m}let D=["children","classes","closeAfterTransition","component","components","componentsProps","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited"],L=r=>{let{open:n,exited:i,classes:o}=r;return(0,h.Z)({root:["root",!n&&i&&"hidden"]},O,o)},z=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(r,n){let i=this.modals.indexOf(r);if(-1!==i)return i;i=this.modals.length,this.modals.push(r),r.modalRef&&b(r.modalRef,!1);let o=function(r){let n=[];return[].forEach.call(r.children,r=>{"true"===r.getAttribute("aria-hidden")&&n.push(r)}),n}(n);_(n,r.mount,r.modalRef,o,!0);let a=w(this.containers,r=>r.container===n);return -1!==a?(this.containers[a].modals.push(r),i):(this.containers.push({modals:[r],container:n,restore:null,hiddenSiblings:o}),i)}mount(r,n){let i=w(this.containers,n=>-1!==n.modals.indexOf(r)),o=this.containers[i];o.restore||(o.restore=function(r,n){let i=[],o=r.container;if(!n.disableScrollLock){let r;if(function(r){let n=(0,c.Z)(r);return n.body===r?(0,v.Z)(r).innerWidth>n.documentElement.clientWidth:r.scrollHeight>r.clientHeight}(o)){let r=(0,y.Z)((0,c.Z)(o));i.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${x(o)+r}px`;let n=(0,c.Z)(o).querySelectorAll(".mui-fixed");[].forEach.call(n,n=>{i.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${x(n)+r}px`})}if(o.parentNode instanceof DocumentFragment)r=(0,c.Z)(o).body;else{let n=o.parentElement,i=(0,v.Z)(o);r=(null==n?void 0:n.nodeName)==="HTML"&&"scroll"===i.getComputedStyle(n).overflowY?n:o}i.push({value:r.style.overflow,property:"overflow",el:r},{value:r.style.overflowX,property:"overflow-x",el:r},{value:r.style.overflowY,property:"overflow-y",el:r}),r.style.overflow="hidden"}let a=()=>{i.forEach(({value:r,el:n,property:i})=>{r?n.style.setProperty(i,r):n.style.removeProperty(i)})};return a}(o,n))}remove(r,n=!0){let i=this.modals.indexOf(r);if(-1===i)return i;let o=w(this.containers,n=>-1!==n.modals.indexOf(r)),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(r),1),this.modals.splice(i,1),0===a.modals.length)a.restore&&a.restore(),r.modalRef&&b(r.modalRef,n),_(a.container,r.mount,r.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{let r=a.modals[a.modals.length-1];r.modalRef&&b(r.modalRef,!1)}return i}isTopModal(r){return this.modals.length>0&&this.modals[this.modals.length-1]===r}},B=s.forwardRef(function(r,n){var i;let{children:h,classes:p,closeAfterTransition:f=!1,component:m="div",components:v={},componentsProps:y={},container:x,disableAutoFocus:_=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:T=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:P=!1,hideBackdrop:O=!1,keepMounted:j=!1,manager:A=z,onBackdropClick:M,onClose:I,onKeyDown:Z,open:B,onTransitionEnter:F,onTransitionExited:N}=r,U=(0,o.Z)(r,D),[V,q]=s.useState(!0),$=s.useRef({}),G=s.useRef(null),W=s.useRef(null),H=(0,l.Z)(W,n),X=!!r.children&&r.children.props.hasOwnProperty("in"),Y=null==(i=r["aria-hidden"])||i,K=()=>(0,c.Z)(G.current),J=()=>($.current.modalRef=W.current,$.current.mountNode=G.current,$.current),Q=()=>{A.mount(J(),{disableScrollLock:P}),W.current.scrollTop=0},ee=(0,u.Z)(()=>{let r=("function"==typeof x?x():x)||K().body;A.add(J(),r),W.current&&Q()}),et=s.useCallback(()=>A.isTopModal(J()),[A]),er=(0,u.Z)(r=>{G.current=r,r&&(B&&et()?Q():b(W.current,Y))}),en=s.useCallback(()=>{A.remove(J(),Y)},[A,Y]);s.useEffect(()=>()=>{en()},[en]),s.useEffect(()=>{B?ee():X&&f||en()},[B,en,X,f,ee]);let ei=(0,a.Z)({},r,{classes:p,closeAfterTransition:f,disableAutoFocus:_,disableEnforceFocus:w,disableEscapeKeyDown:T,disablePortal:E,disableRestoreFocus:C,disableScrollLock:P,exited:V,hideBackdrop:O,keepMounted:j}
101),eo=L(ei),ea=()=>{q(!1),F&&F()},es=()=>{q(!0),N&&N(),f&&en()},el=r=>{r.target===r.currentTarget&&(M&&M(r),I&&I(r,"backdropClick"))},ec=r=>{Z&&Z(r),"Escape"===r.key&&et()&&!T&&(r.stopPropagation(),I&&I(r,"escapeKeyDown"))},eu={};void 0===h.props.tabIndex&&(eu.tabIndex="-1"),X&&(eu.onEnter=(0,d.Z)(ea,h.props.onEnter),eu.onExited=(0,d.Z)(es,h.props.onExited));let ed=v.Root||m,eh=R({elementType:ed,externalSlotProps:y.root,externalForwardedProps:U,additionalProps:{ref:H,role:"presentation",onKeyDown:ec},className:eo.root,ownerState:ei}),ep=v.Backdrop,ef=R({elementType:ep,externalSlotProps:y.backdrop,additionalProps:{"aria-hidden":!0,onClick:el,open:B},ownerState:ei});return j||B||X&&!V?(0,S.jsx)(g,{ref:er,container:x,disablePortal:E,children:(0,S.jsxs)(ed,(0,a.Z)({},eh,{children:[!O&&ep?(0,S.jsx)(ep,(0,a.Z)({},ef)):null,(0,S.jsx)(k,{disableEnforceFocus:w,disableAutoFocus:_,disableRestoreFocus:C,isEnabled:et,open:B,children:s.cloneElement(h,eu)})]}))}):null});var F=i(90948),N=i(71657),U=i(84808);let V=["BackdropComponent","BackdropProps","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","theme"],q=r=>r.classes,$=(0,F.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[n.root,!i.open&&i.exited&&n.hidden]}})(({theme:r,ownerState:n})=>(0,a.Z)({position:"fixed",zIndex:(r.vars||r).zIndex.modal,right:0,bottom:0,top:0,left:0},!n.open&&n.exited&&{visibility:"hidden"})),G=(0,F.ZP)(U.Z,{name:"MuiModal",slot:"Backdrop",overridesResolver:(r,n)=>n.backdrop})({zIndex:-1}),W=s.forwardRef(function(r,n){var i,l;let c=(0,N.Z)({name:"MuiModal",props:r}),{BackdropComponent:u=G,BackdropProps:d,closeAfterTransition:h=!1,children:p,component:f,components:m={},componentsProps:g={},disableAutoFocus:v=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:b=!1,disablePortal:x=!1,disableRestoreFocus:_=!1,disableScrollLock:w=!1,hideBackdrop:T=!1,keepMounted:E=!1,theme:k}=c,C=(0,o.Z)(c,V),[P,O]=s.useState(!0),A={closeAfterTransition:h,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:b,disablePortal:x,disableRestoreFocus:_,disableScrollLock:w,hideBackdrop:T,keepMounted:E},M=(0,a.Z)({},c,A,{exited:P}),Z=q(M),R=null!=(i=null!=(l=m.Root)?l:f)?i:$;return(0,S.jsx)(B,(0,a.Z)({components:(0,a.Z)({Root:R,Backdrop:u},m),componentsProps:{root:()=>(0,a.Z)({},I(g.root,M),!(0,j.Z)(R)&&{as:f,theme:k}),backdrop:()=>(0,a.Z)({},d,I(g.backdrop,M))},onTransitionEnter:()=>O(!1),onTransitionExited:()=>O(!0),ref:n},C,{classes:Z},A,{children:p}))});var H=W},37058:function(r,n,i){"use strict";i.d(n,{Z:function(){return j}});var o,a=i(63366),s=i(87462),l=i(67294),c=i(94780),u=i(90948),d=i(85893);let h=["children","classes","className","label","notched"],p=(0,u.ZP)("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),f=(0,u.ZP)("legend")(({ownerState:r,theme:n})=>(0,s.Z)({float:"unset",overflow:"hidden"},!r.withLabel&&{padding:0,lineHeight:"11px",transition:n.transitions.create("width",{duration:150,easing:n.transitions.easing.easeOut})},r.withLabel&&(0,s.Z)({display:"block",width:"auto",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:n.transitions.create("max-width",{duration:50,easing:n.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},r.notched&&{maxWidth:"100%",transition:n.transitions.create("max-width",{duration:100,easing:n.transitions.easing.easeOut,delay:50})})));var m=i(74423),g=i(15704),v=i(34867),y=i(1588),b=i(55827);function x(r){return(0,v.ZP)("MuiOutlinedInput",r)}let _=(0,s.Z)({},b.Z,(0,y.Z)("MuiOutlinedInput",["root","notchedOutline","input"]));var w=i(13970),S=i(71657);let T=["components","fullWidth","inputComponent","label","multiline","notched","type"],E=r=>{let{classes:n}=r,i=(0,c.Z)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},x,n);return(0,s.Z)({},n,i)},k=(0,u.ZP)(w.Ej,{shouldForwardProp:r=>(0,u.FO)(r)||"classes"===r,name:"MuiOutlinedInput",slot:"Root",overridesResolver:w.Gx})(({theme:r,ownerState:n})=>{let i="light"===r.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,s.Z)({position:"relative",borderRadius:(r.vars||r).shape.borderRadius,[`&:hover .${_.notchedOutline}`]:{borderColor:(r.vars||r).palette.text.primary},"@media (hover: none)":{[`&:hover .${_.notchedOutline}`]:{borderColor:r.vars?`rgba(${r.vars.palette.common.onBackgroun
101dChannel} / 0.23)`:i}},[`&.${_.focused} .${_.notchedOutline}`]:{borderColor:(r.vars||r).palette[n.color].main,borderWidth:2},[`&.${_.error} .${_.notchedOutline}`]:{borderColor:(r.vars||r).palette.error.main},[`&.${_.disabled} .${_.notchedOutline}`]:{borderColor:(r.vars||r).palette.action.disabled}},n.startAdornment&&{paddingLeft:14},n.endAdornment&&{paddingRight:14},n.multiline&&(0,s.Z)({padding:"16.5px 14px"},"small"===n.size&&{padding:"8.5px 14px"}))}),C=(0,u.ZP)(function(r){let{className:n,label:i,notched:l}=r,c=(0,a.Z)(r,h),u=null!=i&&""!==i,m=(0,s.Z)({},r,{notched:l,withLabel:u});return(0,d.jsx)(p,(0,s.Z)({"aria-hidden":!0,className:n,ownerState:m},c,{children:(0,d.jsx)(f,{ownerState:m,children:u?(0,d.jsx)("span",{children:i}):o||(o=(0,d.jsx)("span",{className:"notranslate",children:"â"}))})}))},{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(r,n)=>n.notchedOutline})(({theme:r})=>{let n="light"===r.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:r.vars?`rgba(${r.vars.palette.common.onBackgroundChannel} / 0.23)`:n}}),P=(0,u.ZP)(w.rA,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:w._o})(({theme:r,ownerState:n})=>(0,s.Z)({padding:"16.5px 14px"},!r.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===r.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===r.palette.mode?null:"#fff",caretColor:"light"===r.palette.mode?null:"#fff",borderRadius:"inherit"}},r.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[r.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===n.size&&{padding:"8.5px 14px"},n.multiline&&{padding:0},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0})),O=l.forwardRef(function(r,n){var i;let o=(0,S.Z)({props:r,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:h="input",label:p,multiline:f=!1,notched:v,type:y="text"}=o,b=(0,a.Z)(o,T),x=E(o),_=(0,m.Z)(),O=(0,g.Z)({props:o,muiFormControl:_,states:["required"]}),j=(0,s.Z)({},o,{color:O.color||"primary",disabled:O.disabled,error:O.error,focused:O.focused,formControl:_,fullWidth:u,hiddenLabel:O.hiddenLabel,multiline:f,size:O.size,type:y});return(0,d.jsx)(w.ZP,(0,s.Z)({components:(0,s.Z)({Root:k,Input:P},c),renderSuffix:r=>(0,d.jsx)(C,{ownerState:j,className:x.notchedOutline,label:null!=p&&""!==p&&O.required?i||(i=(0,d.jsxs)(l.Fragment,{children:[p,"\xa0","*"]})):p,notched:void 0!==v?v:Boolean(r.startAdornment||r.filled||r.focused)}),fullWidth:u,inputComponent:h,multiline:f,ref:n,type:y},b,{classes:(0,s.Z)({},x,{notchedOutline:null})}))});O.muiName="Input";var j=O},70872:function(r,n,i){"use strict";i.d(n,{Z:function(){return T}});var o=i(87462),a=i(63366),s=i(67294),l=i(93680),c=i(94780),u=i(71657),d=i(34867);function h(r){return(0,d.ZP)("MuiPagination",r)}(0,i(1588).Z)("MuiPagination",["root","ul","outlined","text"]);var p=i(19032);let f=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];var m=i(58886),g=i(90948),v=i(85893);let y=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],b=r=>{let{classes:n,variant:i}=r;return(0,c.Z)({root:["root",i],ul:["ul"]},h,n)},x=(0,g.ZP)("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[n.root,n[i.variant]]}})({}),_=(0,g.ZP)("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(r,n)=>n.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function w(r,n,i){return"page"===r?`${i?"":"Go to "}page ${n}`:`Go to ${r} page`}let S=s.forwardRef(function(r,n){let i=(0,u.Z)({props:r,name:"MuiPagination"}),{boundaryCount:s=1,className:c,color:d="standard",count:h=1,defaultPage:g=1,disabled:S=!1,getItemAriaLabel:T=w,hideNextButton:E=!1,hidePrevButton:k=!1,renderItem:C=r=>(0,v.jsx)(m.Z,(0,o.Z)({},r)),shape:P="circular",showFirstButton:O=!1,showLastButton:j=!1,siblingCount:A=1,size:M="medium",variant:I="text"}=i,Z=(0,a.Z)(i,y),{items:R}=function(r={}
101){let{boundaryCount:n=1,componentName:i="usePagination",count:s=1,defaultPage:l=1,disabled:c=!1,hideNextButton:u=!1,hidePrevButton:d=!1,onChange:h,page:m,showFirstButton:g=!1,showLastButton:v=!1,siblingCount:y=1}=r,b=(0,a.Z)(r,f),[x,_]=(0,p.Z)({controlled:m,default:l,name:i,state:"page"}),w=(r,n)=>{m||_(n),h&&h(r,n)},S=(r,n)=>Array.from({length:n-r+1},(n,i)=>r+i),T=S(1,Math.min(n,s)),E=S(Math.max(s-n+1,n+1),s),k=Math.max(Math.min(x-y,s-n-2*y-1),n+2),C=Math.min(Math.max(x+y,n+2*y+2),E.length>0?E[0]-2:s-1),P=[...g?["first"]:[],...d?[]:["previous"],...T,...k>n+2?["start-ellipsis"]:n+1<s-n?[n+1]:[],...S(k,C),...C<s-n-1?["end-ellipsis"]:s-n>n?[s-n]:[],...E,...u?[]:["next"],...v?["last"]:[]],O=r=>{switch(r){case"first":return 1;case"previous":return x-1;case"next":return x+1;case"last":return s;default:return null}},j=P.map(r=>"number"==typeof r?{onClick:n=>{w(n,r)},type:"page",page:r,selected:r===x,disabled:c,"aria-current":r===x?"true":void 0}:{onClick:n=>{w(n,O(r))},type:r,page:O(r),selected:!1,disabled:c||-1===r.indexOf("ellipsis")&&("next"===r||"last"===r?x>=s:x<=1)});return(0,o.Z)({items:j},b)}((0,o.Z)({},i,{componentName:"Pagination"})),D=(0,o.Z)({},i,{boundaryCount:s,color:d,count:h,defaultPage:g,disabled:S,getItemAriaLabel:T,hideNextButton:E,hidePrevButton:k,renderItem:C,shape:P,showFirstButton:O,showLastButton:j,siblingCount:A,size:M,variant:I}),L=b(D);return(0,v.jsx)(x,(0,o.Z)({"aria-label":"pagination navigation",className:(0,l.Z)(L.root,c),ownerState:D,ref:n},Z,{children:(0,v.jsx)(_,{className:L.ul,ownerState:D,children:R.map((r,n)=>(0,v.jsx)("li",{children:C((0,o.Z)({},r,{color:d,"aria-label":T(r.type,r.page,r.selected),shape:P,size:M,variant:I}))},n))})}))});var T=S},58886:function(r,n,i){"use strict";i.d(n,{Z:function(){return I}});var o=i(63366),a=i(87462),s=i(67294),l=i(93680),c=i(94780),u=i(8423),d=i(71657),h=i(34867),p=i(1588);function f(r){return(0,h.ZP)("MuiPaginationItem",r)}let m=(0,p.Z)("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon"]);var g=i(2734),v=i(82607),y=i(98216),b=i(42989),x=i(63046),_=i(82066),w=i(85893),S=(0,_.Z)((0,w.jsx)("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),T=(0,_.Z)((0,w.jsx)("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),E=i(90948);let k=["className","color","component","components","disabled","page","selected","shape","size","type","variant"],C=(r,n)=>{let{ownerState:i}=r;return[n.root,n[i.variant],n[`size${(0,y.Z)(i.size)}`],"text"===i.variant&&n[`text${(0,y.Z)(i.color)}`],"outlined"===i.variant&&n[`outlined${(0,y.Z)(i.color)}`],"rounded"===i.shape&&n.rounded,"page"===i.type&&n.page,("start-ellipsis"===i.type||"end-ellipsis"===i.type)&&n.ellipsis,("previous"===i.type||"next"===i.type)&&n.previousNext,("first"===i.type||"last"===i.type)&&n.firstLast]},P=r=>{let{classes:n,color:i,disabled:o,selected:a,size:s,shape:l,type:u,variant:d}=r,h={root:["root",`size${(0,y.Z)(s)}`,d,l,"standard"!==i&&`${d}${(0,y.Z)(i)}`,o&&"disabled",a&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[u]],icon:["icon"]};return(0,c.Z)(h,f,n)},O=(0,E.ZP)("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:C})(({theme:r,ownerState:n})=>(0,a.Z)({},r.typography.body2,{borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(r.vars||r).palette.text.primary,height:"auto",[`&.${m.disabled}`]:{opacity:(r.vars||r).palette.action.disabledOpacity}},"small"===n.size&&{minWidth:26,borderRadius:13,margin:"0 1px",padding:"0 4px"},"large"===n.size&&{minWidth:40,borderRadius:20,padding:"0 10px",fontSize:r.typography.pxToRem(15)})),j=(0,E.ZP)(v.Z,{name:"MuiPaginationItem",slot:"Root",overridesResolver:C})(({theme:r,ownerState:n})=>(0,a.Z)({},r.typography.body2,{borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(r.vars||r).palette.text.primary,[`&.${m.focusVisible}`]:{backgroundColor:(r.vars||r).palette.action.focus},[`&.${m.disabled}`]:{opacity:(r.vars||r).palette.action.disabledOpacity},transition:r.transitions.create(["color","background-color"],{duration:r.transitions.duration.short}),"&:hover":{backgroundColor:(r.vars||r).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${m.selected}`]:{backgroundColor:(r.vars||r).palette.action.selected,"&:hover":{backgroundColor:r.vars?`rgba(${r.vars.palette.action.selected} / calc(${r.vars.palette.action.selectedOpacity} + ${r.vars.palette.action.hoverOpacity}))`:(0,u.Fq)(r.palette.action.selected,r.palette.action.selectedOpacity+r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(r.vars||r).palette.action.selected}},[`&.${m.focusVisible}`]:{backgroundColor:r.vars?`rgba(${r.vars.palette.action.selected} / calc(${r.vars.palette.action.selectedOpacity} + ${r.vars.palette.action.focusOpacity}))`:(0,u.Fq)(r.palette.action.selected,r.palette.action.selectedOpacity+r.palette.action.focusOpacity)},[`&.${m.disabled}`]:{opacity:1,color:(r.vars||r).palette.action.disabled,backgroundColor:(r.vars||r).palette.action.selected}}},"small"===n.size&&{minWidth:26,height:26,borderRadius:13,margin:"0 1px",padding:"0 4px"},"large"===n.size&&{minWidth:40,height:40,borderRadius:20,padding:"0 10px",fontSize:r.typography.pxToRem(15)},"rounded"===n.shape&&{borderRadius:(r.vars||r).shape.borderRadius}),({theme:r,ownerState:n})=>(0,a.Z)({},"text"===n.variant&&{[`&.${m.selected}`]:(0,a.Z)({},"standard"!==n.color&&{color:(r.vars||r).palette[n.color].contrastText,backgroundColor:(r.vars||r).palette[n.color].main,"&:hover":{backgroundColor:(r.vars||r).palette[n.color].dark,"@media (hover: none)":{backgroundColor:(r.vars||r).palette[n.color].main}},[`&.${m.focusVisible}`]:{backgroundColor:(r.vars||r).palette[n.color].dark}},{[`&.${m.disabled}`]:{color:(r.vars||r).palette.action.disabled}})},"outlined"===n.variant&&{border:r.vars?`1px solid rgba(${r.vars.palette.common.onBackgroun
101dChannel} / 0.23)`:`1px solid ${"light"===r.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${m.selected}`]:(0,a.Z)({},"standard"!==n.color&&{color:(r.vars||r).palette[n.color].main,border:`1px solid ${r.vars?`rgba(${r.vars.palette[n.color].mainChannel} / 0.5)`:(0,u.Fq)(r.palette[n.color].main,.5)}`,backgroundColor:r.vars?`rgba(${r.vars.palette[n.color].mainChannel} / ${r.vars.palette.action.activatedOpacity})`:(0,u.Fq)(r.palette[n.color].main,r.palette.action.activatedOpacity),"&:hover":{backgroundColor:r.vars?`rgba(${r.vars.palette[n.color].mainChannel} / calc(${r.vars.palette.action.activatedOpacity} + ${r.vars.palette.action.focusOpacity}))`:(0,u.Fq)(r.palette[n.color].main,r.palette.action.activatedOpacity+r.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${m.focusVisible}`]:{backgroundColor:r.vars?`rgba(${r.vars.palette[n.color].mainChannel} / calc(${r.vars.palette.action.activatedOpacity} + ${r.vars.palette.action.focusOpacity}))`:(0,u.Fq)(r.palette[n.color].main,r.palette.action.activatedOpacity+r.palette.action.focusOpacity)}},{[`&.${m.disabled}`]:{borderColor:(r.vars||r).palette.action.disabledBackground,color:(r.vars||r).palette.action.disabled}})})),A=(0,E.ZP)("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(r,n)=>n.icon})(({theme:r,ownerState:n})=>(0,a.Z)({fontSize:r.typography.pxToRem(20),margin:"0 -8px"},"small"===n.size&&{fontSize:r.typography.pxToRem(18)},"large"===n.size&&{fontSize:r.typography.pxToRem(22)})),M=s.forwardRef(function(r,n){let i=(0,d.Z)({props:r,name:"MuiPaginationItem"}),{className:s,color:c="standard",component:u,components:h={first:b.Z,last:x.Z,next:T,previous:S},disabled:p=!1,page:f,selected:m=!1,shape:v="circular",size:y="medium",type:_="page",variant:E="text"}=i,C=(0,o.Z)(i,k),M=(0,a.Z)({},i,{color:c,disabled:p,selected:m,shape:v,size:y,type:_,variant:E}),I=(0,g.Z)(),Z=P(M),R="rtl"===I.direction?{previous:h.next||T,next:h.previous||S,last:h.first||b.Z,first:h.last||x.Z}:{previous:h.previous||S,next:h.next||T,first:h.first||b.Z,last:h.last||x.Z},D=R[_];return"start-ellipsis"===_||"end-ellipsis"===_?(0,w.jsx)(O,{ref:n,ownerState:M,className:(0,l.Z)(Z.root,s),children:"â¦"}):(0,w.jsxs)(j,(0,a.Z)({ref:n,ownerState:M,component:u,disabled:p,className:(0,l.Z)(Z.root,s)},C,{children:["page"===_&&f,D?(0,w.jsx)(A,{as:D,ownerState:M,className:Z.icon}):null]}))});var I=M},55113:function(r,n,i){"use strict";i.d(n,{Z:function(){return _}});var o=i(63366),a=i(87462),s=i(67294),l=i(93680),c=i(94780),u=i(8423),d=i(90948),h=i(71657),p=i(34867);function f(r){return(0,p.ZP)("MuiPaper",r)}(0,i(1588).Z)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var m=i(85893);let g=["className","component","elevation","square","variant"],v=r=>((r<1?5.11916*r**2:4.5*Math.log(r+1)+2)/100).toFixed(2),y=r=>{let{square:n,elevation:i,variant:o,classes:a}=r,s={root:["root",o,!n&&"rounded","elevation"===o&&`elevation${i}`]};return(0,c.Z)(s,f,a)},b=(0,d.ZP)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[n.root,n[i.variant],!i.square&&n.rounded,"elevation"===i.variant&&n[`elevation${i.elevation}`]]}})(({theme:r,ownerState:n})=>{var i;return(0,a.Z)({backgroundColor:(r.vars||r).palette.background.paper,color:(r.vars||r).palette.text.primary,transition:r.transitions.create("box-shadow")},!n.square&&{borderRadius:r.shape.borderRadius},"outlined"===n.variant&&{border:`1px solid ${(r.vars||r).palette.divider}`},"elevation"===n.variant&&(0,a.Z)({boxShadow:(r.vars||r).shadows[n.elevation]},!r.vars&&"dark"===r.palette.mode&&{backgroundImage:`linear-gradient(${(0,u.Fq)("#fff",v(n.elevation))}, ${(0,u.Fq)("#fff",v(n.elevation))})`},r.vars&&{backgroundImage:null==(i=r.vars.overlays)?void 0:i[n.elevation]}))}),x=s.forwardRef(function(r,n){let i=(0,h.Z)({props:r,name:"MuiPaper"}),{className:s,component:c="div",elevation:u=1,square:d=!1,variant:p="elevation"}=i,f=(0,o.Z)(i,g),v=(0,a.Z)({},i,{component:c,elevation:u,square:d,variant:p}),x=y(v);return(0,m.jsx)(b,(0,a.Z)({as:c,ownerState:v,className:(0,l.Z)(x.root,s),ref:n},f))});var _=x},90103:function(r,n,i){"use strict";var o=i(87462),a=i(63366),s=i(67294),l=i(93680),c=i(94780),u=i(90948),d=i(71657),h=i(57144),p=i(8038),f=i(5340),m=i(51705),g=i(96514),v=i(2999),y=i(55113),b=i(3994),x=i(85893);let _=["onEntering"],w=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function S(r,n){let i=0;return"number"==typeof n?i=n:"center"===n?i=r.height/2:"bottom"===n&&(i=r.height),i}function T(r,n){let i=0;return"number"==typeof n?i=n:"center"===n?i=r.width/2:"right"===n&&(i=r.width),i}function E(r){return[r.horizontal,r.vertical].map(r=>"number"==typeof r?`${r}px`:r).join(" ")}function k(r){return"function"==typeof r?r():r}let C=r=>{let{classes:n}=r;return(0,c.Z)({root:["root"],paper:["paper"]},b.s,n)},P=(0,u.ZP)(v.Z,{name:"MuiPopover",slot:"Root",overridesResolver:(r,n)=>n.root})({}),O=(0,u.ZP)(y.Z,{name:"MuiPopover",slot:"Paper",overridesResolver:(r,n)=>n.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),j=s.forwardRef(function(r,n){let i=(0,d.Z)({props:r,name:"MuiPopover"}),{action:c,anchorEl:u,anchorOrigin:v={vertical:"top",horizontal:"left"},anchorPosition:y,anchorReference:b="anchorEl",children:j,className:A,container:M,elevation:I=8,marginThreshold:Z=16,open:R,PaperProps:D={},transformOrigin:L={vertical:"top",horizontal:"left"},TransitionComponent:z=g.Z,transitionDuration:B="auto",TransitionProps:{onEntering:F}={}}
101=i,N=(0,a.Z)(i.TransitionProps,_),U=(0,a.Z)(i,w),V=s.useRef(),q=(0,m.Z)(V,D.ref),$=(0,o.Z)({},i,{anchorOrigin:v,anchorReference:b,elevation:I,marginThreshold:Z,PaperProps:D,transformOrigin:L,TransitionComponent:z,transitionDuration:B,TransitionProps:N}),G=C($),W=s.useCallback(()=>{if("anchorPosition"===b)return y;let r=k(u),n=r&&1===r.nodeType?r:(0,p.Z)(V.current).body,i=n.getBoundingClientRect();return{top:i.top+S(i,v.vertical),left:i.left+T(i,v.horizontal)}},[u,v.horizontal,v.vertical,y,b]),H=s.useCallback(r=>({vertical:S(r,L.vertical),horizontal:T(r,L.horizontal)}),[L.horizontal,L.vertical]),X=s.useCallback(r=>{let n={width:r.offsetWidth,height:r.offsetHeight},i=H(n);if("none"===b)return{top:null,left:null,transformOrigin:E(i)};let o=W(),a=o.top-i.vertical,s=o.left-i.horizontal,l=a+n.height,c=s+n.width,d=(0,f.Z)(k(u)),h=d.innerHeight-Z,p=d.innerWidth-Z;if(a<Z){let r=a-Z;a-=r,i.vertical+=r}else if(l>h){let r=l-h;a-=r,i.vertical+=r}if(s<Z){let r=s-Z;s-=r,i.horizontal+=r}else if(c>p){let r=c-p;s-=r,i.horizontal+=r}return{top:`${Math.round(a)}px`,left:`${Math.round(s)}px`,transformOrigin:E(i)}},[u,b,W,H,Z]),Y=s.useCallback(()=>{let r=V.current;if(!r)return;let n=X(r);null!==n.top&&(r.style.top=n.top),null!==n.left&&(r.style.left=n.left),r.style.transformOrigin=n.transformOrigin},[X]),K=(r,n)=>{F&&F(r,n),Y()};s.useEffect(()=>{R&&Y()}),s.useImperativeHandle(c,()=>R?{updatePosition:()=>{Y()}}:null,[R,Y]),s.useEffect(()=>{if(!R)return;let r=(0,h.Z)(()=>{Y()}),n=(0,f.Z)(u);return n.addEventListener("resize",r),()=>{r.clear(),n.removeEventListener("resize",r)}},[u,R,Y]);let J=B;"auto"!==B||z.muiSupportAuto||(J=void 0);let Q=M||(u?(0,p.Z)(k(u)).body:void 0);return(0,x.jsx)(P,(0,o.Z)({BackdropProps:{invisible:!0},className:(0,l.Z)(G.root,A),container:Q,open:R,ref:n,ownerState:$},U,{children:(0,x.jsx)(z,(0,o.Z)({appear:!0,in:R,onEntering:K,timeout:J},N,{children:(0,x.jsx)(O,(0,o.Z)({elevation:I},D,{ref:q,className:(0,l.Z)(G.paper,D.className),children:j}))}))}))});n.ZP=j},3994:function(r,n,i){"use strict";i.d(n,{s:function(){return s}});var o=i(34867),a=i(1588);function s(r){return(0,o.ZP)("MuiPopover",r)}let l=(0,a.Z)("MuiPopover",["root","paper"]);n.Z=l},10315:function(r,n,i){"use strict";i.d(n,{Z:function(){return en}});var o,a,s,l=i(87462),c=i(63366),u=i(67294),d=i(93680),h=i(4953),p=i(56535);i(59864);var f=i(94780),m=i(8038),g=i(98216),v=i(44347),y=i(34867),b=i(1588);function x(r){return(0,y.ZP)("MuiNativeSelect",r)}let _=(0,b.Z)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]);var w=i(90948),S=i(85893);let T=["className","disabled","IconComponent","inputRef","variant"],E=r=>{let{classes:n,variant:i,disabled:o,multiple:a,open:s}=r,l={select:["select",i,o&&"disabled",a&&"multiple"],icon:["icon",`icon${(0,g.Z)(i)}`,s&&"iconOpen",o&&"disabled"]};return(0,f.Z)(l,x,n)},k=({ownerState:r,theme:n})=>(0,l.Z)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{backgroundColor:"light"===n.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},[`&.${_.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:n.palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===r.variant&&{"&&&":{paddingRight:32}},"outlined"===r.variant&&{borderRadius:n.shape.borderRadius,"&:focus":{borderRadius:n.shape.borderRadius},"&&&":{paddingRight:32}}),C=(0,w.ZP)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:w.FO,overridesResolver:(r,n)=>{let{ownerState:i}=r;return[n.select,n[i.variant],{[`&.${_.multiple}`]:n.multiple}]}})(k),P=({ownerState:r,theme:n})=>(0,l.Z)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:n.palette.action.active,[`&.${_.disabled}`]:{color:n.palette.action.disabled}},r.open&&{transform:"rotate(180deg)"},"filled"===r.variant&&{right:7},"outlined"===r.variant&&{right:7}),O=(0,w.ZP)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[n.icon,i.variant&&n[`icon${(0,g.Z)(i.variant)}`],i.open&&n.iconOpen]}})(P),j=u.forwardRef(function(r,n){let{className:i,disabled:o,IconComponent:a,inputRef:s,variant:h="standard"}=r,p=(0,c.Z)(r,T),f=(0,l.Z)({},r,{disabled:o,variant:h}),m=E(f);return(0,S.jsxs)(u.Fragment,{children:[(0,S.jsx)(C,(0,l.Z)({ownerState:f,className:(0,d.Z)(m.select,i),disabled:o,ref:s||n},p)),r.multiple?null:(0,S.jsx)(O,{as:a,ownerState:f,className:m.icon})]})});var A=i(5108),M=i(51705),I=i(49299);function Z(r){return(0,y.ZP)("MuiSelect",r)}let R=(0,b.Z)("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),D=["aria-describedby","aria-label","autoF
101ocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],L=(0,w.ZP)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[{[`&.${R.select}`]:n.select},{[`&.${R.select}`]:n[i.variant]},{[`&.${R.multiple}`]:n.multiple}]}})(k,{[`&.${R.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),z=(0,w.ZP)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[n.icon,i.variant&&n[`icon${(0,g.Z)(i.variant)}`],i.open&&n.iconOpen]}})(P),B=(0,w.ZP)("input",{shouldForwardProp:r=>(0,w.Dz)(r)&&"classes"!==r,name:"MuiSelect",slot:"NativeInput",overridesResolver:(r,n)=>n.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function F(r,n){return"object"==typeof n&&null!==n?r===n:String(r)===String(n)}let N=r=>{let{classes:n,variant:i,disabled:o,multiple:a,open:s}=r,l={select:["select",i,o&&"disabled",a&&"multiple"],icon:["icon",`icon${(0,g.Z)(i)}`,s&&"iconOpen",o&&"disabled"],nativeInput:["nativeInput"]};return(0,f.Z)(l,Z,n)},U=u.forwardRef(function(r,n){var i;let a,s;let{"aria-describedby":h,"aria-label":f,autoFocus:g,autoWidth:y,children:b,className:x,defaultOpen:_,defaultValue:w,disabled:T,displayEmpty:E,IconComponent:k,inputRef:C,labelId:P,MenuProps:O={},multiple:j,name:Z,onBlur:R,onChange:U,onClose:V,onFocus:q,onOpen:$,open:G,readOnly:W,renderValue:H,SelectDisplayProps:X={},tabIndex:Y,value:K,variant:J="standard"}=r,Q=(0,c.Z)(r,D),[ee,et]=(0,I.Z)({controlled:K,default:w,name:"Select"}),[er,en]=(0,I.Z)({controlled:G,default:_,name:"Select"}),ei=u.useRef(null),eo=u.useRef(null),[ea,es]=u.useState(null),{current:el}=u.useRef(null!=G),[ec,eu]=u.useState(),ed=(0,M.Z)(n,C),eh=u.useCallback(r=>{eo.current=r,r&&es(r)},[]);u.useImperativeHandle(ed,()=>({focus:()=>{eo.current.focus()},node:ei.current,value:ee}),[ee]),u.useEffect(()=>{_&&er&&ea&&!el&&(eu(y?null:ea.clientWidth),eo.current.focus())},[ea,y]),u.useEffect(()=>{g&&eo.current.focus()},[g]),u.useEffect(()=>{if(!P)return;let r=(0,m.Z)(eo.current).getElementById(P);if(r){let n=()=>{getSelection().isCollapsed&&eo.current.focus()};return r.addEventListener("click",n),()=>{r.removeEventListener("click",n)}}},[P]);let ep=(r,n)=>{r?$&&$(n):V&&V(n),el||(eu(y?null:ea.clientWidth),en(r))},ef=r=>{0===r.button&&(r.preventDefault(),eo.current.focus(),ep(!0,r))},em=r=>{ep(!1,r)},eg=u.Children.toArray(b),ev=r=>{let n=eg.map(r=>r.props.value).indexOf(r.target.value);if(-1===n)return;let i=eg[n];et(i.props.value),U&&U(r,i)},ey=r=>n=>{let i;if(n.currentTarget.hasAttribute("tabindex")){if(j){i=Array.isArray(ee)?ee.slice():[];let n=ee.indexOf(r.props.value);-1===n?i.push(r.props.value):i.splice(n,1)}else i=r.props.value;if(r.props.onClick&&r.props.onClick(n),ee!==i&&(et(i),U)){let o=n.nativeEvent||n,a=new o.constructor(o.type,o);Object.defineProperty(a,"target",{writable:!0,value:{value:i,name:Z}}),U(a,r)}j||ep(!1,n)}},eb=r=>{W||-1===[" ","ArrowUp","ArrowDown","Enter"].indexOf(r.key)||(r.preventDefault(),ep(!0,r))},ex=null!==ea&&er,e_=r=>{!ex&&R&&(Object.defineProperty(r,"target",{writable:!0,value:{value:ee,name:Z}}),R(r))};delete Q["aria-invalid"];let ew=[],eS=!1;((0,A.vd)({value:ee})||E)&&(H?a=H(ee):eS=!0);let eT=eg.map((r,n,i)=>{let o;if(!u.isValidElement(r))return null;if(j){if(!Array.isArray(ee))throw Error((0,p.Z)(2));(o=ee.some(n=>F(n,r.props.value)))&&eS&&ew.push(r.props.children)}else(o=F(ee,r.props.value))&&eS&&(s=r.props.children);return void 0===r.props.value?u.cloneElement(r,{"aria-readonly":!0,role:"option"}):u.cloneElement(r,{"aria-selected":o?"true":"false",onClick:ey(r),onKeyUp:n=>{" "===n.key&&n.preventDefault(),r.props.onKeyUp&&r.props.onKeyUp(n)},role:"option",selected:void 0===i[0].props.value||!0===i[0].props.disabled?(()=>{if(ee)return o;let n=i.find(r=>void 0!==r.props.value&&!0!==r.props.disabled);return r===n||o})():o,value:void 0,"data-value":r.props.value})});eS&&(a=j?0===ew.length?null:ew.reduce((r,n,i)=>(r.push(n),i<ew.length-1&&r.push(", "),r),[]):s);let eE=ec;!y&&el&&ea&&(eE=ea.clientWidth);let ek=X.id||(Z?`mui-component-select-${Z}`:void 0),eC=(0,l.Z)({},r,{variant:J,value:ee,open:ex}),eP=N(eC);return(0,S.jsxs)(u.Fragment,{children:[(0,S.jsx)(L,(0,l.Z)({ref:eh,tabIndex:void 0!==Y?Y:T?null:0,role:"button","aria-disabled":T?"true":void 0,"aria-expanded":ex?"true":"false","aria-haspopup":"listbox","aria-label":f,"aria-labelledby":[P,ek].filter(
101Boolean).join(" ")||void 0,"aria-describedby":h,onKeyDown:eb,onMouseDown:T||W?null:ef,onBlur:e_,onFocus:q},X,{ownerState:eC,className:(0,d.Z)(X.className,eP.select,x),id:ek,children:null!=(i=a)&&("string"!=typeof i||i.trim())?a:o||(o=(0,S.jsx)("span",{className:"notranslate",children:"â"}))})),(0,S.jsx)(B,(0,l.Z)({value:Array.isArray(ee)?ee.join(","):ee,name:Z,ref:ei,"aria-hidden":!0,onChange:ev,tabIndex:-1,disabled:T,className:eP.nativeInput,autoFocus:g,ownerState:eC},Q)),(0,S.jsx)(z,{as:k,className:eP.icon,ownerState:eC}),(0,S.jsx)(v.Z,(0,l.Z)({id:`menu-${Z||""}`,anchorEl:ea,open:ex,onClose:em,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},O,{MenuListProps:(0,l.Z)({"aria-labelledby":P,role:"listbox",disableListWrap:!0},O.MenuListProps),PaperProps:(0,l.Z)({},O.PaperProps,{style:(0,l.Z)({minWidth:eE},null!=O.PaperProps?O.PaperProps.style:null)}),children:eT}))]})});var V=i(15704),q=i(74423),$=(0,i(82066).Z)((0,S.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),G=i(90089),W=i(78288),H=i(37058),X=i(71657);let Y=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],K=r=>{let{classes:n}=r;return n},J={name:"MuiSelect",overridesResolver:(r,n)=>n.root,shouldForwardProp:r=>(0,w.FO)(r)&&"variant"!==r,slot:"Root"},Q=(0,w.ZP)(G.Z,J)(""),ee=(0,w.ZP)(H.Z,J)(""),et=(0,w.ZP)(W.Z,J)(""),er=u.forwardRef(function(r,n){let i=(0,X.Z)({name:"MuiSelect",props:r}),{autoWidth:o=!1,children:p,classes:f={},className:m,defaultOpen:g=!1,displayEmpty:v=!1,IconComponent:y=$,id:b,input:x,inputProps:_,label:w,labelId:T,MenuProps:E,multiple:k=!1,native:C=!1,onClose:P,onOpen:O,open:A,renderValue:I,SelectDisplayProps:Z,variant:R="outlined"}=i,D=(0,c.Z)(i,Y),L=(0,q.Z)(),z=(0,V.Z)({props:i,muiFormControl:L,states:["variant"]}),B=z.variant||R,F=x||({standard:a||(a=(0,S.jsx)(Q,{})),outlined:(0,S.jsx)(ee,{label:w}),filled:s||(s=(0,S.jsx)(et,{}))})[B],N=(0,l.Z)({},i,{variant:B,classes:f}),G=K(N),W=(0,M.Z)(n,F.ref);return u.cloneElement(F,(0,l.Z)({inputComponent:C?j:U,inputProps:(0,l.Z)({children:p,IconComponent:y,variant:B,type:void 0,multiple:k},C?{id:b}:{autoWidth:o,defaultOpen:g,displayEmpty:v,labelId:T,MenuProps:E,onClose:P,onOpen:O,open:A,renderValue:I,SelectDisplayProps:(0,l.Z)({id:b},Z)},_,{classes:_?(0,h.Z)(G,_.classes):G},x?x.props.inputProps:{})},k&&C&&"outlined"===B?{notched:!0}:{},{ref:W,className:(0,d.Z)(F.props.className,m),variant:B},D))});er.muiName="Select";var en=er},18979:function(r,n,i){"use strict";i.d(n,{Z:function(){return O}});var o=i(63366),a=i(87462),s=i(67294),l=i(93680),c=i(70917),u=i(94780),d=i(88606),h=i(8423),p=i(90948),f=i(71657),m=i(34867);function g(r){return(0,m.ZP)("MuiSkeleton",r)}(0,i(1588).Z)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);var v=i(85893);let y=["animation","className","component","height","style","variant","width"],b=r=>r,x,_,w,S,T=r=>{let{classes:n,variant:i,animation:o,hasChildren:a,width:s,height:l}=r;return(0,u.Z)({root:["root",i,o,a&&"withChildren",a&&!s&&"fitContent",a&&!l&&"heightAuto"]},g,n)},E=(0,c.F4)(x||(x=b` 102 0% { 103 opacity: 1; 104 } 105 106 50% { 107 opacity: 0.4; 108 } 109 110 100% { 111 opacity: 1; 112 } 113`)),k=(0,c.F4)(_||(_=b` 114 0% { 115 transform: translateX(-100%); 116 } 117 118 50% { 119 /* +0.5s of delay between each loop */ 120 transform: translateX(100%); 121 } 122 123 100% { 124 transform: translateX(100%); 125 } 126`)),C=(0,p.ZP)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[n.root,n[i.variant],!1!==i.animation&&n[i.animation],i.hasChildren&&n.withChildren,i.hasChildren&&!i.width&&n.fitContent,i.hasChildren&&!i.height&&n.heightAuto]}})(({theme:r,ownerState:n})=>{let i=(0,d.Wy)(r.shape.borderRadius)||"px",o=(0,d.YL)(r.shape.borderRadius);return(0,a.Z)({display:"block",backgroundColor:r.vars?r.vars.palette.Skeleton.bg:(0,h.Fq)(r.palette.text.primary,"light"===r.palette.mode?.11:.13),height:"1.2em"},"text"===n.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${o}${i}/${Math.round(o/.6*10)/10}${i}`,"&:empty:before":{content:'"\\00a0"'}},"circular"===n.variant&&{borderRadius:"50%"},"rounded"===n.variant&&{borderRadius:(r.vars||r).shape.borderRadius},n.hasChildren&&{"& > *":{visibility:"hidden"}},n.hasChildren&&!n.width&&{maxWidth:"fit-content"},n.hasChildren&&!n.height&&{height:"auto"})},({ownerState:r})=>"pulse"===r.animation&&(0,c.iv)(w||(w=b` 127 animation: ${0} 1.5s ease-in-out 0.5s infinite; 128 `),E),({ownerState:r,theme:n})=>"wave"===r.animation&&(0,c.iv)(S||(S=b` 129 position: relative; 130 overflow: hidden; 131 132 /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */ 133 -webkit-mask-image: -webkit-radial-gradient(white, black); 134 135 &::after { 136 animation: ${0} 1.6s linear 0.5s infinite; 137 background: linear-gradient( 138 90deg, 139 transparent, 140 ${0}, 141 transparent 142 ); 143 content: ''; 144 position: absolute; 145 transform: translateX(-100%); /* Avoid flash during server-side hydration */ 146 bottom: 0; 147 left: 0; 148 right: 0; 149 top: 0; 150 } 151 `),k,(n.vars||n).palette.action.hover)),P=s.forwardRef(function(r,n){let i=(0,f.Z)({props:r,name:"MuiSkeleton"}),{animation:s="pulse",className:c,component:u="span",height:d,style:h,variant:p="text",width:m}=i,g=(0,o.Z)(i,y),b=(0,a.Z)({},i,{animation:s,component:u,variant:p,hasChildren:Boolean(g.children)}),x=T(b);return(0,v.jsx)(C,(0,a.Z)({as:u,ref:n,className:(0,l.Z)(x.root,c),ownerState:b},g,{style:(0,a.Z)({width:m,height:d},h)}))});var O=P},76798:function(r,n,i){"use strict";i.d(n,{Z:function(){return B}});var o=i(63366),a=i(87462),s=i(67294),l=i(93680),c=i(94780),u=i(33703),d=i(59948),h=i(82690),p=i(85893);function f(r){return r.substring(2).toLowerCase()}var m=function(r){let{children:n,disableReactTree:i=!1,mouseEvent:o="onClick",onClickAway:a,touchEvent:l="onTouchEnd"}=r,c=s.useRef(!1),m=s.useRef(null),g=s.useRef(!1),v=s.useRef(!1);s.useEffect(()=>(setTimeout(()=>{g.current=!0},0),()=>{g.current=!1}),[]);let y=(0,u.Z)(n.ref,m),b=(0,d.Z)(r=>{let n=v.current;v.current=!1;let o=(0,h.Z)(m.current);if(g.current&&m.current&&(!("clientX"in r)||!(o.documentElement.clientWidth<r.clientX)&&!(o.documentElement.clientHeight<r.clientY))){if
151(c.current){c.current=!1;return}(r.composedPath?r.composedPath().indexOf(m.current)>-1:!o.documentElement.contains(r.target)||m.current.contains(r.target))||!i&&n||a(r)}}),x=r=>i=>{v.current=!0;let o=n.props[r];o&&o(i)},_={ref:y};return!1!==l&&(_[l]=x(l)),s.useEffect(()=>{if(!1!==l){let r=f(l),n=(0,h.Z)(m.current),i=()=>{c.current=!0};return n.addEventListener(r,b),n.addEventListener("touchmove",i),()=>{n.removeEventListener(r,b),n.removeEventListener("touchmove",i)}}},[b,l]),!1!==o&&(_[o]=x(o)),s.useEffect(()=>{if(!1!==o){let r=f(o),n=(0,h.Z)(m.current);return n.addEventListener(r,b),()=>{n.removeEventListener(r,b)}}},[b,o]),(0,p.jsx)(s.Fragment,{children:s.cloneElement(n,_)})},g=i(90948),v=i(2734),y=i(71657),b=i(2068),x=i(98216),_=i(96514),w=i(8423),S=i(55113),T=i(34867),E=i(1588);function k(r){return(0,T.ZP)("MuiSnackbarContent",r)}(0,E.Z)("MuiSnackbarContent",["root","message","action"]);let C=["action","className","message","role"],P=r=>{let{classes:n}=r;return(0,c.Z)({root:["root"],action:["action"],message:["message"]},k,n)},O=(0,g.ZP)(S.Z,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(r,n)=>n.root})(({theme:r})=>{let n="light"===r.palette.mode?.8:.98,i=(0,w._4)(r.palette.background.default,n);return(0,a.Z)({},r.typography.body2,{color:r.vars?r.vars.palette.SnackbarContent.color:r.palette.getContrastText(i),backgroundColor:r.vars?r.vars.palette.SnackbarContent.bg:i,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(r.vars||r).shape.borderRadius,flexGrow:1,[r.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),j=(0,g.ZP)("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(r,n)=>n.message})({padding:"8px 0"}),A=(0,g.ZP)("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(r,n)=>n.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),M=s.forwardRef(function(r,n){let i=(0,y.Z)({props:r,name:"MuiSnackbarContent"}),{action:s,className:c,message:u,role:d="alert"}=i,h=(0,o.Z)(i,C),f=P(i);return(0,p.jsxs)(O,(0,a.Z)({role:d,square:!0,elevation:6,className:(0,l.Z)(f.root,c),ownerState:i,ref:n},h,{children:[(0,p.jsx)(j,{className:f.message,ownerState:i,children:u}),s?(0,p.jsx)(A,{className:f.action,ownerState:i,children:s}):null]}))});function I(r){return(0,T.ZP)("MuiSnackbar",r)}(0,E.Z)("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);let Z=["onEnter","onExited"],R=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],D=r=>{let{classes:n,anchorOrigin:i}=r,o={root:["root",`anchorOrigin${(0,x.Z)(i.vertical)}${(0,x.Z)(i.horizontal)}`]};return(0,c.Z)(o,I,n)},L=(0,g.ZP)("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[n.root,n[`anchorOrigin${(0,x.Z)(i.anchorOrigin.vertical)}${(0,x.Z)(i.anchorOrigin.horizontal)}`]]}})(({theme:r,ownerState:n})=>(0,a.Z)({zIndex:(r.vars||r).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===n.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===n.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===n.anchorOrigin.horizontal&&{justifyContent:"flex-end"},{[r.breakpoints.up("sm")]:(0,a.Z)({},"top"===n.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===n.anchorOrigin.horizontal&&{left:"50%",right:"auto",transform:"translateX(-50%)"},"left"===n.anchorOrigin.horizontal&&{left:24,right:"auto"},"right"===n.anchorOrigin.horizontal&&{right:24,left:"auto"})})),z=s.forwardRef(function(r,n){let i=(0,y.Z)({props:r,name:"MuiSnackbar"}),c=(0,v.Z)(),u={enter:c.transitions.duration.enteringScreen,exit:c.transitions.duration.leavingScreen},{action:d,anchorOrigin:{vertical:h,horizontal:f}={vertical:"bottom",horizontal:"left"},autoHideDuration:g=null,children:x,className:w,ClickAwayListenerProps:S,ContentProps:T,disableWindowBlurListener:E=!1,message:k,onBlur:C,onClose:P,onFocus:O,onMouseEnter:j,onMouseLeave:A,open:I,resumeHideDuration:z,TransitionComponent:B=_.Z,transitionDuration:F=u,TransitionProps:{onEnter:N,onExited:U}={}}
151=i,V=(0,o.Z)(i.TransitionProps,Z),q=(0,o.Z)(i,R),$=(0,a.Z)({},i,{anchorOrigin:{vertical:h,horizontal:f}}),G=D($),W=s.useRef(),[H,X]=s.useState(!0),Y=(0,b.Z)((...r)=>{P&&P(...r)}),K=(0,b.Z)(r=>{P&&null!=r&&(clearTimeout(W.current),W.current=setTimeout(()=>{Y(null,"timeout")},r))});s.useEffect(()=>(I&&K(g),()=>{clearTimeout(W.current)}),[I,g,K]);let J=()=>{clearTimeout(W.current)},Q=s.useCallback(()=>{null!=g&&K(null!=z?z:.5*g)},[g,z,K]),ee=r=>{O&&O(r),J()},et=r=>{j&&j(r),J()},er=r=>{C&&C(r),Q()},en=r=>{A&&A(r),Q()},ei=r=>{P&&P(r,"clickaway")},eo=r=>{X(!0),U&&U(r)},ea=(r,n)=>{X(!1),N&&N(r,n)};return(s.useEffect(()=>{if(!E&&I)return window.addEventListener("focus",Q),window.addEventListener("blur",J),()=>{window.removeEventListener("focus",Q),window.removeEventListener("blur",J)}},[E,Q,I]),s.useEffect(()=>{if(I)return document.addEventListener("keydown",r),()=>{document.removeEventListener("keydown",r)};function r(r){!r.defaultPrevented&&("Escape"===r.key||"Esc"===r.key)&&P&&P(r,"escapeKeyDown")}},[H,I,P]),!I&&H)?null:(0,p.jsx)(m,(0,a.Z)({onClickAway:ei},S,{children:(0,p.jsx)(L,(0,a.Z)({className:(0,l.Z)(G.root,w),onBlur:er,onFocus:ee,onMouseEnter:et,onMouseLeave:en,ownerState:$,ref:n,role:"presentation"},q,{children:(0,p.jsx)(B,(0,a.Z)({appear:!0,in:I,timeout:F,direction:"top"===h?"down":"up",onEnter:ea,onExited:eo},V,{children:x||(0,p.jsx)(M,(0,a.Z)({message:k,action:d},T))}))}))}))});var B=z},26447:function(r,n,i){"use strict";var o=i(63366),a=i(87462),s=i(67294),l=i(95408),c=i(98700),u=i(39707),d=i(4953),h=i(90948),p=i(71657),f=i(85893);let m=["component","direction","spacing","divider","children"],g=r=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[r],v=({ownerState:r,theme:n})=>{let i=(0,a.Z)({display:"flex",flexDirection:"column"},(0,l.k9)({theme:n},(0,l.P$)({values:r.direction,breakpoints:n.breakpoints.values}),r=>({flexDirection:r})));if(r.spacing){let o=(0,c.hB)(n),a=Object.keys(n.breakpoints.values).reduce((n,i)=>(("object"==typeof r.spacing&&null!=r.spacing[i]||"object"==typeof r.direction&&null!=r.direction[i])&&(n[i]=!0),n),{}),s=(0,l.P$)({values:r.direction,base:a}),u=(0,l.P$)({values:r.spacing,base:a});"object"==typeof s&&Object.keys(s).forEach((r,n,i)=>{let o=s[r];if(!o){let o=n>0?s[i[n-1]]:"column";s[r]=o}});let h=(n,i)=>({"& > :not(style) + :not(style)":{margin:0,[`margin${g(i?s[i]:r.direction)}`]:(0,c.NA)(o,n)}});i=(0,d.Z)(i,(0,l.k9)({theme:n},u,h))}return(0,l.dt)(n.breakpoints,i)},y=(0,h.ZP)("div",{name:"MuiStack",slot:"Root",overridesResolver:(r,n)=>[n.root]})(v),b=s.forwardRef(function(r,n){let i=(0,p.Z)({props:r,name:"MuiStack"}),l=(0,u.Z)(i),{component:c="div",direction:d="column",spacing:h=0,divider:g,children:v}=l,b=(0,o.Z)(l,m);return(0,f.jsx)(y,(0,a.Z)({as:c,ownerState:{direction:d,spacing:h},ref:n},b,{children:g?function(r,n){let i=s.Children.toArray(r).filter(Boolean);return i.reduce((r,o,a)=>(r.push(o),a<i.length-1&&r.push(s.cloneElement(n,{key:`separator-${a}`})),r),[])}(v,g):v}))});n.Z=b},53219:function(r,n,i){"use strict";i.d(n,{Z:function(){return x}});var o=i(87462),a=i(63366),s=i(67294),l=i(93680),c=i(94780),u=i(98216),d=i(71657),h=i(90948),p=i(34867);function f(r){return(0,p.ZP)("MuiSvgIcon",r)}(0,i(1588).Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var m=i(85893);let g=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],v=r=>{let{color:n,fontSize:i,classes:o}=r,a={root:["root","inherit"!==n&&`color${(0,u.Z)(n)}`,`fontSize${(0,u.Z)(i)}`]};return(0,c.Z)(a,f,o)},y=(0,h.ZP)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[n.root,"inherit"!==i.color&&n[`color${(0,u.Z)(i.color)}`],n[`fontSize${(0,u.Z)(i.fontSize)}`]]}})(({theme:r,ownerState:n})=>{var i,o,a,s,l,c,u,d,h,p,f,m,g,v,y,b,x;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(i=r.transitions)?void 0:null==(o=i.create)?void 0:o.call(i,"fill",{duration:null==(a=r.transitions)?void 0:null==(s=a.duration)?void 0:s.shorter}),fontSize:({inherit:"inherit",small:(null==(l=r.typography)?void 0:null==(c=l.pxToRem)?void 0:c.call(l,20))||"1.25rem",medium:(null==(u=r.typography)?void 0:null==(d=u.pxToRem)?void 0:d.call(u,24))||"1.5rem",large:(null==(h=r.typography)?void 0:null==(p=h.pxToRem)?void 0:p.call(h,35))||"2.1875"})[n.fontSize],color:null!=(f=null==(m=(r.vars||r).palette)?void 0:null==(g=m[n.color])?void 0:g.main)?f:({action:null==(v=(r.vars||r).palette)?void 0:null==(y=v.action)?void 0:y.active,disabled:null==(b=(r.vars||r).palette)?void 0:null==(x=b.action)?void 0:x.disabled,inherit:void 0})[n.color]}}),b=s.forwardRef(function(r,n){let i=(0,d.Z)({props:r,name:"MuiSvgIcon"}),{children:s,className:c,color:u="inherit",component:h="svg",fontSize:p="medium",htmlColor:f,inheritViewBox:b=!1,titleAccess:x,viewB
151ox:_="0 0 24 24"}=i,w=(0,a.Z)(i,g),S=(0,o.Z)({},i,{color:u,component:h,fontSize:p,instanceFontSize:r.fontSize,inheritViewBox:b,viewBox:_}),T={};b||(T.viewBox=_);let E=v(S);return(0,m.jsxs)(y,(0,o.Z)({as:h,className:(0,l.Z)(E.root,c),ownerState:S,focusable:"false",color:f,"aria-hidden":!x||void 0,role:x?"img":void 0,ref:n},T,w,{children:[s,x?(0,m.jsx)("title",{children:x}):null]}))});b.muiName="SvgIcon";var x=b},7906:function(r,n,i){"use strict";i.d(n,{Z:function(){return _}});var o=i(63366),a=i(87462),s=i(67294),l=i(93680),c=i(94780),u=i(31618),d=i(71657),h=i(90948),p=i(34867);function f(r){return(0,p.ZP)("MuiTable",r)}(0,i(1588).Z)("MuiTable",["root","stickyHeader"]);var m=i(85893);let g=["className","component","padding","size","stickyHeader"],v=r=>{let{classes:n,stickyHeader:i}=r;return(0,c.Z)({root:["root",i&&"stickyHeader"]},f,n)},y=(0,h.ZP)("table",{name:"MuiTable",slot:"Root",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[n.root,i.stickyHeader&&n.stickyHeader]}})(({theme:r,ownerState:n})=>(0,a.Z)({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,a.Z)({},r.typography.body2,{padding:r.spacing(2),color:(r.vars||r).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},n.stickyHeader&&{borderCollapse:"separate"})),b="table",x=s.forwardRef(function(r,n){let i=(0,d.Z)({props:r,name:"MuiTable"}),{className:c,component:h=b,padding:p="normal",size:f="medium",stickyHeader:x=!1}=i,_=(0,o.Z)(i,g),w=(0,a.Z)({},i,{component:h,padding:p,size:f,stickyHeader:x}),S=v(w),T=s.useMemo(()=>({padding:p,size:f,stickyHeader:x}),[p,f,x]);return(0,m.jsx)(u.Z.Provider,{value:T,children:(0,m.jsx)(y,(0,a.Z)({as:h,role:h===b?null:"table",ref:n,className:(0,l.Z)(S.root,c),ownerState:w},_))})});var _=x},31618:function(r,n,i){"use strict";var o=i(67294);let a=o.createContext();n.Z=a},44063:function(r,n,i){"use strict";var o=i(67294);let a=o.createContext();n.Z=a},295:function(r,n,i){"use strict";i.d(n,{Z:function(){return w}});var o=i(87462),a=i(63366),s=i(67294),l=i(93680),c=i(94780),u=i(44063),d=i(71657),h=i(90948),p=i(34867);function f(r){return(0,p.ZP)("MuiTableBody",r)}(0,i(1588).Z)("MuiTableBody",["root"]);var m=i(85893);let g=["className","component"],v=r=>{let{classes:n}=r;return(0,c.Z)({root:["root"]},f,n)},y=(0,h.ZP)("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(r,n)=>n.root})({display:"table-row-group"}),b={variant:"body"},x="tbody",_=s.forwardRef(function(r,n){let i=(0,d.Z)({props:r,name:"MuiTableBody"}),{className:s,component:c=x}=i,h=(0,a.Z)(i,g),p=(0,o.Z)({},i,{component:c}),f=v(p);return(0,m.jsx)(u.Z.Provider,{value:b,children:(0,m.jsx)(y,(0,o.Z)({className:(0,l.Z)(f.root,s),as:c,ref:n,role:c===x?null:"rowgroup",ownerState:p},h))})});var w=_},53252:function(r,n,i){"use strict";i.d(n,{Z:function(){return E}});var o=i(63366),a=i(87462),s=i(67294),l=i(93680),c=i(94780),u=i(8423),d=i(98216),h=i(31618),p=i(44063),f=i(71657),m=i(90948),g=i(34867),v=i(1588);function y(r){return(0,g.ZP)("MuiTableCell",r)}let b=(0,v.Z)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);var x=i(85893);let _=["align","className","component","padding","scope","size","sortDirection","variant"],w=r=>{let{classes:n,variant:i,align:o,padding:a,size:s,stickyHeader:l}=r,u={root:["root",i,l&&"stickyHeader","inherit"!==o&&`align${(0,d.Z)(o)}`,"normal"!==a&&`padding${(0,d.Z)(a)}`,`size${(0,d.Z)(s)}`]};return(0,c.Z)(u,y,n)},S=(0,m.ZP)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[n.root,n[i.variant],n[`size${(0,d.Z)(i.size)}`],"normal"!==i.padding&&n[`padding${(0,d.Z)(i.padding)}`],"inherit"!==i.align&&n[`align${(0,d.Z)(i.align)}`],i.stickyHeader&&n.stickyHeader]}})(({theme:r,ownerState:n})=>(0,a.Z)({},r.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:r.vars?`1px solid ${r.vars.palette.TableCell.border}`:`1px solid 152 ${"light"===r.palette.mode?(0,u.$n)((0,u.Fq)(r.palette.divider,1),.88):(0,u._j)((0,u.Fq)(r.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===n.variant&&{color:(r.vars||r).palette.text.primary,lineHeight:r.typography.pxToRem(24),fontWeight:r.typography.fontWeightMedium},"body"===n.variant&&{color:(r.vars||r).palette.text.primary},"footer"===n.variant&&{color:(r.vars||r).palette.text.secondary,lineHeight:r.typography.pxToRem(21),fontSize:r.typography.pxToRem(12)},"small"===n.size&&{padding:"6px 16px",[`&.${b.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===n.padding&&{width:48,padding:"0 0 0 4px"},"none"===n.padding&&{padding:0},"left"===n.align&&{textAlign:"left"},"center"===n.align&&{textAlign:"center"},"right"===n.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===n.align&&{textAlign:"justify"},n.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(r.vars||r).palette.background.default})),T=s.forwardRef(function(r,n){let i;let c=(0,f.Z)({props:r,name:"MuiTableCell"}),{align:u="inherit",className:d,component:m,padding:g,scope:v,size:y,sortDirection:b,variant:T}=c,E=(0,o.Z)(c,_),k=s.useContext(h.Z),C=s.useContext(p.Z),P=C&&"head"===C.variant;i=m||(P?"th":"td");let O=v;!O&&P&&(O="col");let j=T||C&&C.variant,A=(0,a.Z)({},c,{align:u,component:i,padding:g||(k&&k.padding?k.padding:"normal"),size:y||(k&&k.size?k.size:"medium"),sortDirection:b,stickyHeader:"head"===j&&k&&k.stickyHeader,variant:j}),M=w(A),I=null;
152return b&&(I="asc"===b?"ascending":"descending"),(0,x.jsx)(S,(0,a.Z)({as:i,ref:n,className:(0,l.Z)(M.root,d),"aria-sort":I,scope:O,ownerState:A},E))});var E=T},53184:function(r,n,i){"use strict";i.d(n,{Z:function(){return w}});var o=i(87462),a=i(63366),s=i(67294),l=i(93680),c=i(94780),u=i(44063),d=i(71657),h=i(90948),p=i(34867);function f(r){return(0,p.ZP)("MuiTableHead",r)}(0,i(1588).Z)("MuiTableHead",["root"]);var m=i(85893);let g=["className","component"],v=r=>{let{classes:n}=r;return(0,c.Z)({root:["root"]},f,n)},y=(0,h.ZP)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(r,n)=>n.root})({display:"table-header-group"}),b={variant:"head"},x="thead",_=s.forwardRef(function(r,n){let i=(0,d.Z)({props:r,name:"MuiTableHead"}),{className:s,component:c=x}=i,h=(0,a.Z)(i,g),p=(0,o.Z)({},i,{component:c}),f=v(p);return(0,m.jsx)(u.Z.Provider,{value:b,children:(0,m.jsx)(y,(0,o.Z)({as:c,className:(0,l.Z)(f.root,s),ref:n,role:c===x?null:"rowgroup",ownerState:p},h))})});var w=_},53816:function(r,n,i){"use strict";i.d(n,{Z:function(){return S}});var o=i(87462),a=i(63366),s=i(67294),l=i(93680),c=i(94780),u=i(8423),d=i(44063),h=i(71657),p=i(90948),f=i(34867),m=i(1588);function g(r){return(0,f.ZP)("MuiTableRow",r)}let v=(0,m.Z)("MuiTableRow",["root","selected","hover","head","footer"]);var y=i(85893);let b=["className","component","hover","selected"],x=r=>{let{classes:n,selected:i,hover:o,head:a,footer:s}=r;return(0,c.Z)({root:["root",i&&"selected",o&&"hover",a&&"head",s&&"footer"]},g,n)},_=(0,p.ZP)("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[n.root,i.head&&n.head,i.footer&&n.footer]}})(({theme:r})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${v.hover}:hover`]:{backgroundColor:(r.vars||r).palette.action.hover},[`&.${v.selected}`]:{backgroundColor:r.vars?`rgba(${r.vars.palette.primary.mainChannel} / ${r.vars.palette.action.selectedOpacity})`:(0,u.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity),"&:hover":{backgroundColor:r.vars?`rgba(${r.vars.palette.primary.mainChannel} / calc(${r.vars.palette.action.selectedOpacity} + ${r.vars.palette.action.hoverOpacity}))`:(0,u.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity+r.palette.action.hoverOpacity)}}})),w=s.forwardRef(function(r,n){let i=(0,h.Z)({props:r,name:"MuiTableRow"}),{className:c,component:u="tr",hover:p=!1,selected:f=!1}=i,m=(0,a.Z)(i,b),g=s.useContext(d.Z),v=(0,o.Z)({},i,{component:u,hover:p,selected:f,head:g&&"head"===g.variant,footer:g&&"footer"===g.variant}),w=x(v);return(0,y.jsx)(_,(0,o.Z)({as:u,ref:n,className:(0,l.Z)(w.root,c),role:"tr"===u?null:"row",ownerState:v},m))});var S=w},50135:function(r,n,i){"use strict";i.d(n,{Z:function(){return P}});var o=i(87462),a=i(63366),s=i(67294),l=i(93680),c=i(94780),u=i(92996),d=i(90948),h=i(71657),p=i(90089),f=i(78288),m=i(37058),g=i(47312),v=i(94054),y=i(56815),b=i(10315),x=i(34867);function _(r){return(0,x.ZP)("MuiTextField",r)}(0,i(1588).Z)("MuiTextField",["root"]);var w=i(85893);let S=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],T={standard:p.Z,filled:f.Z,outlined:m.Z},E=r=>{let{classes:n}=r;return(0,c.Z)({root:["root"]},_,n)},k=(0,d.ZP)(v.Z,{name:"MuiTextField",slot:"Root",overridesResolver:(r,n)=>n.root})({}),C=s.forwardRef(function(r,n){let i=(0,h.Z)({props:r,name:"MuiTextField"}),{autoComplete:s,autoFocus:c=!1,children:d,className:p,color:f="primary",defaultValue:m,disabled:v=!1,error:x=!1,FormHelperTextProps:_,fullWidth:C=!1,helperText:P,id:O,InputLabelProps:j,inputProps:A,InputProps:M,inputRef:I,label:Z,maxRows:R,minRows:D,multiline:L=!1,name:z,onBlur:B,onChange:F,onFocus:N,placeholder:U,required:V=!1,rows:q,select:$=!1,SelectProps:G,type:W,value:H,variant:X="outlined"}=i,Y=(0,a.Z)(i,S),K=(0,o.Z)({},i,{autoFocus:c,color:f,disabled:v,error:x,fullWidth:C,multiline:L,required:V,select:$,variant:X}),J=E(K),Q={};"outlined"===X&&(j&&void 0!==j.shrink&&(Q.notched=j.shrink),Q.label=Z),$&&(G&&G.native||(Q.id=void 0),Q["aria-describedby"]=void 0);let ee=(0,u.Z)(O),et=P&&ee?`${ee}
152-helper-text`:void 0,er=Z&&ee?`${ee}-label`:void 0,en=T[X],ei=(0,w.jsx)(en,(0,o.Z)({"aria-describedby":et,autoComplete:s,autoFocus:c,defaultValue:m,fullWidth:C,multiline:L,name:z,rows:q,maxRows:R,minRows:D,type:W,value:H,id:ee,inputRef:I,onBlur:B,onChange:F,onFocus:N,placeholder:U,inputProps:A},Q,M));return(0,w.jsxs)(k,(0,o.Z)({className:(0,l.Z)(J.root,p),disabled:v,error:x,fullWidth:C,ref:n,required:V,color:f,variant:X,ownerState:K},Y,{children:[null!=Z&&""!==Z&&(0,w.jsx)(g.Z,(0,o.Z)({htmlFor:ee,id:er},j,{children:Z})),$?(0,w.jsx)(b.Z,(0,o.Z)({"aria-describedby":et,id:ee,labelId:er,value:H,input:ei},G,{children:d})):ei,P&&(0,w.jsx)(y.Z,(0,o.Z)({id:et},_,{children:P}))]}))});var P=C},10155:function(r,n,i){"use strict";i.d(n,{Z:function(){return b}});var o=i(63366),a=i(87462),s=i(67294),l=i(93680),c=i(94780),u=i(71657),d=i(90948),h=i(34867);function p(r){return(0,h.ZP)("MuiToolbar",r)}(0,i(1588).Z)("MuiToolbar",["root","gutters","regular","dense"]);var f=i(85893);let m=["className","component","disableGutters","variant"],g=r=>{let{classes:n,disableGutters:i,variant:o}=r;return(0,c.Z)({root:["root",!i&&"gutters",o]},p,n)},v=(0,d.ZP)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[n.root,!i.disableGutters&&n.gutters,n[i.variant]]}})(({theme:r,ownerState:n})=>(0,a.Z)({position:"relative",display:"flex",alignItems:"center"},!n.disableGutters&&{paddingLeft:r.spacing(2),paddingRight:r.spacing(2),[r.breakpoints.up("sm")]:{paddingLeft:r.spacing(3),paddingRight:r.spacing(3)}},"dense"===n.variant&&{minHeight:48}),({theme:r,ownerState:n})=>"regular"===n.variant&&r.mixins.toolbar),y=s.forwardRef(function(r,n){let i=(0,u.Z)({props:r,name:"MuiToolbar"}),{className:s,component:c="div",disableGutters:d=!1,variant:h="regular"}=i,p=(0,o.Z)(i,m),y=(0,a.Z)({},i,{component:c,disableGutters:d,variant:h}),b=g(y);return(0,f.jsx)(v,(0,a.Z)({as:c,className:(0,l.Z)(b.root,s),ref:n,ownerState:y},p))});var b=y},15861:function(r,n,i){"use strict";i.d(n,{Z:function(){return T}});var o=i(63366),a=i(87462),s=i(67294),l=i(93680),c=i(39707),u=i(94780),d=i(90948),h=i(71657),p=i(98216),f=i(34867);function m(r){return(0,f.ZP)("MuiTypography",r)}(0,i(1588).Z)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);var g=i(85893);let v=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],y=r=>{let{align:n,gutterBottom:i,noWrap:o,paragraph:a,variant:s,classes:l}=r,c={root:["root",s,"inherit"!==r.align&&`align${(0,p.Z)(n)}`,i&&"gutterBottom",o&&"noWrap",a&&"paragraph"]};return(0,u.Z)(c,m,l)},b=(0,d.ZP)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[n.root,i.variant&&n[i.variant],"inherit"!==i.align&&n[`align${(0,p.Z)(i.align)}`],i.noWrap&&n.noWrap,i.gutterBottom&&n.gutterBottom,i.paragraph&&n.paragraph]}})(({theme:r,ownerState:n})=>(0,a.Z)({margin:0},n.variant&&r.typography[n.variant],"inherit"!==n.align&&{textAlign:n.align},n.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n.gutterBottom&&{marginBottom:"0.35em"},n.paragraph&&{marginBottom:16})),x={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},_={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},w=r=>_[r]||r,S=s.forwardRef(function(r,n){let i=(0,h.Z)({props:r,name:"MuiTypography"}),s=w(i.color),u=(0,c.Z)((0,a.Z)({},i,{color:s})),{align:d="inherit",className:p,component:f,gutterBottom:m=!1,noWrap:_=!1,paragraph:S=!1,variant:T="body1",variantMapping:E=x}=u,k=(0,o.Z)(u,v),C=(0,a.Z)({},u,{align:d,color:s,className:p,component:f,gutterBottom:m,noWrap:_,paragraph:S,variant:T,variantMapping:E}),P=f||(S?"p":E[T]||x[T])||"span",O=y(C);return(0,g.jsx)(b,(0,a.Z)({as:P,ref:n,ownerState:C,className:(0,l.Z)(O.root,p)},k))});var T=S},6949:function(r,n){"use strict";n.Z={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"}},13486:function(r,n){"use strict";n.Z={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"}},47036:function(r,n){"use strict";n.Z={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"}},60265:function(r,n){"use strict";n.Z={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"}},42989:function(r,n,i){"use strict";i(67294);var o=i(82066),a=i(85893);n.Z=(0,o.Z)((0,a.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage")},63046:function(r,n,i){"use strict";i(67294);var o=i(82066),a=i(85893);n.Z=(0,o.Z)((0,a.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage")},93680:function(r,n,i){"use strict";n.Z=function(){for(var r,n,i=0,o="";i<arguments.length;)(r=arguments[i++])&&(n=function r(n){var i,o,a="";if("string"==typeof n||"number"==typeof n)a+=n;else if("object"==typeof n){if(Array.isArray(n))for(i=0;i<n.length;
152i++)n[i]&&(o=r(n[i]))&&(a&&(a+=" "),a+=o);else for(i in n)n[i]&&(a&&(a+=" "),a+=i)}return a}(r))&&(o&&(o+=" "),o+=n);return o}},36076:function(r,n,i){"use strict";i.d(n,{Z:function(){return A}});var o=i(87462),a=i(63366),s=i(56535),l=i(4953),c=i(67506),u=i(8423),d={black:"#000",white:"#fff"},h=i(47036),p={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},f=i(60265),m={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},g=i(6949),v={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},y=i(13486);let b=["mode","contrastThreshold","tonalOffset"],x={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:d.white,default:d.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},_={text:{primary:d.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:d.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function w(r,n,i,o){let a=o.light||o,s=o.dark||1.5*o;r[n]||(r.hasOwnProperty(i)?r[n]=r[i]:"light"===n?r.light=(0,u.$n)(r.main,a):"dark"===n&&(r.dark=(0,u._j)(r.main,s)))}let S=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"],T={textTransform:"uppercase"},E='"Roboto", "Helvetica", "Arial", sans-serif';function k(...r){return`${r[0]}px ${r[1]}px ${r[2]}px ${r[3]}px rgba(0,0,0,0.2),${r[4]}px ${r[5]}px ${r[6]}px ${r[7]}px rgba(0,0,0,0.14),${r[8]}px ${r[9]}px ${r[10]}px ${r[11]}px rgba(0,0,0,0.12)`}let C=["none",k(0,2,1,-1,0,1,1,0,0,1,3,0),k(0,3,1,-2,0,2,2,0,0,1,5,0),k(0,3,3,-2,0,3,4,0,0,1,8,0),k(0,2,4,-1,0,4,5,0,0,1,10,0),k(0,3,5,-1,0,5,8,0,0,1,14,0),k(0,3,5,-1,0,6,10,0,0,1,18,0),k(0,4,5,-2,0,7,10,1,0,2,16,1),k(0,5,5,-3,0,8,10,1,0,3,14,2),k(0,5,6,-3,0,9,12,1,0,3,16,2),k(0,6,6,-3,0,10,14,1,0,4,18,3),k(0,6,7,-4,0,11,15,1,0,4,20,3),k(0,7,8,-4,0,12,17,2,0,5,22,4),k(0,7,8,-4,0,13,19,2,0,5,24,4),k(0,7,9,-4,0,14,21,2,0,5,26,4),k(0,8,9,-5,0,15,22,2,0,6,28,5),k(0,8,10,-5,0,16,24,2,0,6,30,5),k(0,8,11,-5,0,17,26,2,0,6,32,5),k(0,9,11,-5,0,18,28,2,0,7,34,6),k(0,9,12,-6,0,19,29,2,0,7,36,6),k(0,10,13,-6,0,20,31,3,0,8,38,7),k(0,10,13,-6,0,21,33,3,0,8,40,7),k(0,10,14,-6,0,22,35,3,0,8,42,7),k(0,11,14,-7,0,23,36,3,0,9,44,8),k(0,11,15,-7,0,24,38,3,0,9,46,8)];var P=i(96067),O={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};let j=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];var A=function(r={},...n){var i;let{mixins:k={},palette:A={},transitions:M={},typography:I={}}=r,Z=(0,a.Z)(r,j);if(r.vars)throw Error((0,s.Z)(18));let R=function(r){let{mode:n="light",contrastThreshold:i=3,tonalOffset:c=.2}=r,S=(0,a.Z)(r,b),T=r.primary||function(r="light"){return"dark"===r?{main:g.Z[200],light:g.Z[50],dark:g.Z[400]}:{main:g.Z[700],light:g.Z[400],dark:g.Z[800]}}(n),E=r.secondary||function(r="light"){return"dark"===r?{main:p[200],light:p[50],dark:p[400]}:{main:p[500],light:p[300],dark:p[700]}}(n),k=r.error||function(r="light"){return"dark"===r?{main:f.Z[500],light:f.Z[300],dark:f.Z[700]}:{main:f.Z[700],light:f.Z[400],dark:f.Z[800]}}(n),C=r.info||function(r="light"){return"dark"===r?{main:v[400],light:v[300],dark:v[700]}:{main:v[700],light:v[500],dark:v[900]}}(n),P=r.success||function(r="light"){return"dark"===r?{main:y.Z[400],light:y.Z[300],dark:y.Z[700]}:{main:y.Z[800],light:y.Z[500],dark:y.Z[900]}}(n),O=r.warning||function(r="light"){return"dark"===r?{main:m[400],light:m[300],dark:m[700]}:{main:"#ed6c02",light:m[500],dark:m[900]}}(n);function j(r){let n=(0,u.mi)(r,_.text.primary)>=i?_.text.primary:x.text.primary;return n}let A=({color:r,name:n,mainShade:i=500,lightShade:a=300,darkShade:l=700})=>{if(!(r=(0,o.Z)({},r)).main&&r[i]&&(r.main=r[i]),!r.hasOwnProperty("main"))throw Error((0,s.Z)(11,n?` (${n})`:"",i));if("string"!=typeof r.main)throw Error((0,s.Z)(12,n?` (${n})`:"",JSON.stringify(r.main)));return w(r,"light",a,c),w(r,"dark",l,c),r.contrastText||(r.contrastText=j(r.main)),r},M=(0,l.Z)((0,o.Z)({common:(0,o.Z)({},d),mode:n,primary:A({color:T,name:"primary"}
152),secondary:A({color:E,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:A({color:k,name:"error"}),warning:A({color:O,name:"warning"}),info:A({color:C,name:"info"}),success:A({color:P,name:"success"}),grey:h.Z,contrastThreshold:i,getContrastText:j,augmentColor:A,tonalOffset:c},{dark:_,light:x}[n]),S);return M}(A),D=(0,c.Z)(r),L=(0,l.Z)(D,{mixins:(i=D.breakpoints,(0,o.Z)({toolbar:{minHeight:56,[i.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[i.up("sm")]:{minHeight:64}}},k)),palette:R,shadows:C.slice(),typography:function(r,n){let i="function"==typeof n?n(r):n,{fontFamily:s=E,fontSize:c=14,fontWeightLight:u=300,fontWeightRegular:d=400,fontWeightMedium:h=500,fontWeightBold:p=700,htmlFontSize:f=16,allVariants:m,pxToRem:g}=i,v=(0,a.Z)(i,S),y=c/14,b=g||(r=>`${r/f*y}rem`),x=(r,n,i,a,l)=>(0,o.Z)({fontFamily:s,fontWeight:r,fontSize:b(n),lineHeight:i},s===E?{letterSpacing:`${Math.round(1e5*(a/n))/1e5}em`}:{},l,m),_={h1:x(u,96,1.167,-1.5),h2:x(u,60,1.2,-.5),h3:x(d,48,1.167,0),h4:x(d,34,1.235,.25),h5:x(d,24,1.334,0),h6:x(h,20,1.6,.15),subtitle1:x(d,16,1.75,.15),subtitle2:x(h,14,1.57,.1),body1:x(d,16,1.5,.15),body2:x(d,14,1.43,.15),button:x(h,14,1.75,.4,T),caption:x(d,12,1.66,.4),overline:x(d,12,2.66,1,T)};return(0,l.Z)((0,o.Z)({htmlFontSize:f,pxToRem:b,fontFamily:s,fontSize:c,fontWeightLight:u,fontWeightRegular:d,fontWeightMedium:h,fontWeightBold:p},_),v,{clone:!1})}(R,I),transitions:(0,P.ZP)(M),zIndex:(0,o.Z)({},O)});return L=(0,l.Z)(L,Z),L=n.reduce((r,n)=>(0,l.Z)(r,n),L)}},96067:function(r,n,i){"use strict";i.d(n,{ZP:function(){return h},x9:function(){return c}});var o=i(63366),a=i(87462);let s=["duration","easing","delay"],l={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},c={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function u(r){return`${Math.round(r)}ms`}function d(r){if(!r)return 0;let n=r/36;return Math.round((4+15*n**.25+n/5)*10)}function h(r){let n=(0,a.Z)({},l,r.easing),i=(0,a.Z)({},c,r.duration),h=(r=["all"],a={})=>{let{duration:l=i.standard,easing:c=n.easeInOut,delay:d=0}=a;return(0,o.Z)(a,s),(Array.isArray(r)?r:[r]).map(r=>`${r} ${"string"==typeof l?l:u(l)} ${c} ${"string"==typeof d?d:u(d)}`).join(",")};return(0,a.Z)({getAutoHeightDuration:d,create:h},r,{easing:n,duration:i})}},88606:function(r,n,i){"use strict";function o(r){return String(parseFloat(r)).length===String(r).length}function a(r){return String(r).match(/[\d.\-+]*\s*(.*)/)[1]||""}function s(r){return parseFloat(r)}function l(r){return(n,i)=>{let o=a(n);if(o===i)return n;let l=s(n);"px"!==o&&("em"===o?l=s(n)*s(r):"rem"===o&&(l=s(n)*s(r)));let c=l;if("px"!==i){if("em"===i)c=l/s(r);else{if("rem"!==i)return n;c=l/s(r)}}return parseFloat(c.toFixed(5))+i}}function c({size:r,grid:n}){let i=r-r%n,o=i+n;return r-i<o-r?i:o}function u({lineHeight:r,pixels:n,htmlFontSize:i}){return n/(r*i)}function d({cssProperty:r,min:n,max:i,unit:o="rem",breakpoints:a=[600,900,1200],transform:s=null}){let l={[r]:`${n}${o}`},c=(i-n)/a[a.length-1];return a.forEach(i=>{let a=n+c*i;null!==s&&(a=s(a)),l[`@media (min-width:${i}px)`]={[r]:`${Math.round(1e4*a)/1e4}${o}`}}),l}i.d(n,{LV:function(){return c},Wy:function(){return a},YL:function(){return s},dA:function(){return o},vY:function(){return u},vs:function(){return l},ze:function(){return d}})},90247:function(r,n,i){"use strict";var o=i(36076);let a=(0,o.Z)();n.Z=a},90948:function(r,n,i){"use strict";i.d(n,{Dz:function(){return l},FO:function(){return s}});var o=i(86154),a=i(90247);let s=r=>(0,o.x9)(r)&&"classes"!==r,l=o.x9,c=(0,o.ZP)({defaultTheme:a.Z,rootShouldForwardProp:s});n.ZP=c},2734:function(r,n,i){"use strict";i.d(n,{Z:function(){return s}}),i(67294);var o=i(96682),a=i(90247);function s(){let r=(0,o.Z)(a.Z);return r}},71657:function(r,n,i){"use strict";i.d(n,{Z:function(){return s}});var o=i(29628),a=i(90247);function s({props:r,name:n}){return(0,o.Z)({props:r,name:n,defaultTheme:a.Z})}},30577:function(r,n,i){"use strict";i.d(n,{C:function(){return a},n:function(){return o}});let o=r=>r.scrollTop;function a(r,n){var i,o;let{timeout:a,easing:s,style:l={}}=r;return{duration:null!=(i=l.transitionDuration)?i:"number"==typeof a?a:a[n.mode]||0,easing:null!=(o=l.transitionTimingFunction)?o:"object"==typeof s?s[n.mode]:s,delay:l.transitionDelay}}},98396:function(r,n,i){"use strict";i.d(n,{Z:function(){return p}});var o,a=i(67294),s=i(34168),l=i(20539),c=i(58974);function u(r,n,i,o,s){let l="undefined"!=typeof window&&void 0!==window.matchMedia,[u,d]=a.use
152State(()=>s&&l?i(r).matches:o?o(r).matches:n);return(0,c.Z)(()=>{let n=!0;if(!l)return;let o=i(r),a=()=>{n&&d(o.matches)};return a(),o.addListener(a),()=>{n=!1,o.removeListener(a)}},[r,i,l]),u}let d=(o||(o=i.t(a,2))).useSyncExternalStore;function h(r,n,i,o){let s=a.useCallback(()=>n,[n]),l=a.useMemo(()=>{if(null!==o){let{matches:n}=o(r);return()=>n}return s},[s,r,o]),[c,u]=a.useMemo(()=>{if(null===i)return[s,()=>()=>{}];let n=i(r);return[()=>n.matches,r=>(n.addListener(r),()=>{n.removeListener(r)})]},[s,i,r]),h=d(u,c,l);return h}function p(r,n={}){let i=(0,s.Z)(),o="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:a=!1,matchMedia:c=o?window.matchMedia:null,ssrMatchMedia:p=null,noSsr:f}=(0,l.Z)({name:"MuiUseMediaQuery",props:n,theme:i}),m="function"==typeof r?r(i):r;m=m.replace(/^@media( ?)/m,"");let g=(void 0!==d?h:u)(m,a,c,p,f);return g}},98216:function(r,n,i){"use strict";var o=i(14142);n.Z=o.Z},35893:function(r,n,i){"use strict";var o=i(91476);n.Z=o.Z},82066:function(r,n,i){"use strict";i.d(n,{Z:function(){return c}});var o=i(87462),a=i(67294),s=i(53219),l=i(85893);function c(r,n){let i=(i,a)=>(0,l.jsx)(s.Z,(0,o.Z)({"data-testid":`${n}Icon`,ref:a},i,{children:r}));return i.muiName=s.Z.muiName,a.memo(a.forwardRef(i))}},57144:function(r,n,i){"use strict";var o=i(39336);n.Z=o.Z},60449:function(r,n,i){"use strict";i.r(n),i.d(n,{capitalize:function(){return a.Z},createChainedFunction:function(){return s.Z},createSvgIcon:function(){return l.Z},debounce:function(){return c.Z},deprecatedPropType:function(){return u},isMuiElement:function(){return d.Z},ownerDocument:function(){return h.Z},ownerWindow:function(){return p.Z},requirePropFactory:function(){return f},setRef:function(){return m},unstable_ClassNameGenerator:function(){return S},unstable_useEnhancedEffect:function(){return g.Z},unstable_useId:function(){return v.Z},unsupportedProp:function(){return y},useControlled:function(){return b.Z},useEventCallback:function(){return x.Z},useForkRef:function(){return _.Z},useIsFocusVisible:function(){return w.Z}});var o=i(37078),a=i(98216),s=i(35893),l=i(82066),c=i(57144),u=function(r,n){return()=>null},d=i(50700),h=i(8038),p=i(5340);i(87462);var f=function(r,n){return()=>null},m=i(27364).Z,g=i(58974),v=i(27909),y=function(r,n,i,o,a){return null},b=i(49299),x=i(2068),_=i(51705),w=i(39184);let S={configure:r=>{console.warn("MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.\n\nYou should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead\n\nThe detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401\n\nThe updated documentation: https://mui.com/guides/classname-generator/"),o.Z.configure(r)}}},50700:function(r,n,i){"use strict";i.d(n,{Z:function(){return a}});var o=i(67294),a=function(r,n){var i,a;return o.isValidElement(r)&&-1!==n.indexOf(null!=(i=r.type.muiName)?i:null==(a=r.type)||null==(a=a._payload)||null==(a=a.value)?void 0:a.muiName)}},8038:function(r,n,i){"use strict";var o=i(82690);n.Z=o.Z},5340:function(r,n,i){"use strict";var o=i(74161);n.Z=o.Z},49299:function(r,n,i){"use strict";var o=i(19032);n.Z=o.Z},58974:function(r,n,i){"use strict";var o=i(73546);n.Z=o.Z},2068:function(r,n,i){"use strict";var o=i(59948);n.Z=o.Z},51705:function(r,n,i){"use strict";var o=i(33703);n.Z=o.Z},27909:function(r,n,i){"use strict";var o=i(92996);n.Z=o.Z},39184:function(r,n,i){"use strict";i.d(n,{Z:function(){return f}});var o=i(67294);class a{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new a}start(r,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},r)}}let s=!0,l=!1,c=new a,u={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function d(r){r.metaKey||r.altKey||r.ctrlKey||(s=!0)}function h(){s=!1}function p(){"hidden"===this.visibilityState&&l&&(s=!0)}var f=function(){let r=o.useCallback(r=>
152{if(null!=r){var n;(n=r.ownerDocument).addEventListener("keydown",d,!0),n.addEventListener("mousedown",h,!0),n.addEventListener("pointerdown",h,!0),n.addEventListener("touchstart",h,!0),n.addEventListener("visibilitychange",p,!0)}},[]),n=o.useRef(!1);return{isFocusVisibleRef:n,onFocus:function(r){return!!function(r){let{target:n}=r;try{return n.matches(":focus-visible")}catch(r){}return s||function(r){let{type:n,tagName:i}=r;return"INPUT"===i&&!!u[n]&&!r.readOnly||"TEXTAREA"===i&&!r.readOnly||!!r.isContentEditable}(n)}(r)&&(n.current=!0,!0)},onBlur:function(){return!!n.current&&(l=!0,c.start(100,()=>{l=!1}),n.current=!1,!0)},ref:r}}},44819:function(r,n,i){"use strict";var o=i(67294);let a=o.createContext(null);n.Z=a},56760:function(r,n,i){"use strict";i.d(n,{Z:function(){return s}});var o=i(67294),a=i(44819);function s(){let r=o.useContext(a.Z);return r}},78883:function(r,n,i){"use strict";i.d(n,{Co:function(){return s},ZP:function(){return a}});var o=i(16829);function a(r,n){let i=(0,o.Z)(r,n);return i}let s=(r,n)=>{Array.isArray(r.__emotion_styles)&&(r.__emotion_styles=n(r.__emotion_styles))}},95408:function(r,n,i){"use strict";i.d(n,{L7:function(){return u},P$:function(){return h},VO:function(){return a},W8:function(){return c},dt:function(){return d},k9:function(){return l}});var o=i(4953);let a={xs:0,sm:600,md:900,lg:1200,xl:1536},s={keys:["xs","sm","md","lg","xl"],up:r=>`@media (min-width:${a[r]}px)`};function l(r,n,i){let o=r.theme||{};if(Array.isArray(n)){let r=o.breakpoints||s;return n.reduce((o,a,s)=>(o[r.up(r.keys[s])]=i(n[s]),o),{})}if("object"==typeof n){let r=o.breakpoints||s;return Object.keys(n).reduce((o,s)=>{if(-1!==Object.keys(r.values||a).indexOf(s)){let a=r.up(s);o[a]=i(n[s],s)}else o[s]=n[s];return o},{})}let l=i(n);return l}function c(r={}){var n;let i=null==(n=r.keys)?void 0:n.reduce((n,i)=>{let o=r.up(i);return n[o]={},n},{});return i||{}}function u(r,n){return r.reduce((r,n)=>{let i=r[n],o=!i||0===Object.keys(i).length;return o&&delete r[n],r},n)}function d(r,...n){let i=c(r),a=[i,...n].reduce((r,n)=>(0,o.Z)(r,n),{});return u(Object.keys(i),a)}function h({values:r,breakpoints:n,base:i}){let o;let a=i||function(r,n){if("object"!=typeof r)return{};let i={},o=Object.keys(n);return Array.isArray(r)?o.forEach((n,o)=>{o<r.length&&(i[n]=!0)}):o.forEach(n=>{null!=r[n]&&(i[n]=!0)}),i}(r,n),s=Object.keys(a);return 0===s.length?r:s.reduce((n,i,a)=>(Array.isArray(r)?(n[i]=null!=r[a]?r[a]:r[o],o=a):"object"==typeof r?(n[i]=null!=r[i]?r[i]:r[o],o=i):n[i]=r,n),{})}},8423:function(r,n,i){"use strict";i.d(n,{Fq:function(){return d},_j:function(){return h},_4:function(){return f},mi:function(){return u},$n:function(){return p}});var o=i(56535);function a(r,n=0,i=1){return function(r,n=Number.MIN_SAFE_INTEGER,i=Number.MAX_SAFE_INTEGER){return Math.max(n,Math.min(r,i))}(r,n,i)}function s(r){let n;if(r.type)return r;if("#"===r.charAt(0))return s(function(r){r=r.slice(1);let n=RegExp(`.{1,${r.length>=6?2:1}}`,"g"),i=r.match(n);return i&&1===i[0].length&&(i=i.map(r=>r+r)),i?`rgb${4===i.length?"a":""}(${i.map((r,n)=>n<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}(r));let i=r.indexOf("("),a=r.substring(0,i);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(a))throw Error((0,o.Z)(9,r));let l=r.substring(i+1,r.length-1);if("color"===a){if(n=(l=l.split(" ")).shift(),4===l.length&&"/"===l[3].charAt(0)&&(l[3]=l[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw Error((0,o.Z)(10,n))}else l=l.split(",");return{type:a,values:l=l.map(r=>parseFloat(r)),colorSpace:n}}function l(r){let{type:n,colorSpace:i}=r,{values:o}=r;return -1!==n.indexOf("rgb")?o=o.map((r,n)=>n<3?parseInt(r,10):r):-1!==n.indexOf("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),`${n}(${o=-1!==n.indexOf("color")?`${i} ${o.join(" ")}`:`${o.join(", ")}`})`}function c(r){let n="hsl"===(r=s(r)).type||"hsla"===r.type?s(function(r){r=s(r);let{values:n}=r,i=n[0],o=n[1]/100,a=n[2]/100,c=o*Math.min(a,1-a),u=(r,n=(r+i/30)%12)=>a-c*Math.max(Math.min(n-3,9-n,1),-1),d="rgb",h=[Math.round(255*u(0)),Math.round(255*u(8)),Math.round(255*u(4))];return"hsla"===r.type&&(d+="a",h.push(n[3])),l({type:d,values:h})}(r)).values:r.values;return Number((.2126*(n=n.map(n=>("color"!==r.type&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)))[0]+.7152*n[1]+.0722*n[2]).toFixed(3))}function u(r,n){let i=c(r),o=c(n);return(Math.max(i,o)+.05)/(Math.min(i,o)+.05)}function d(r,n){return r=s(r),n=a(n),("rgb"===r.type||"hsl"===r.type)&&(r.type+="a"),"color"===r.type?r.values[3]=`/${n}`:r.values[3]=n,l(r)}function h(r,n){if(r=s(r),n=a(n),-1!==r.type.indexOf("hsl"))r.values[2]*=1-n;else if(-1!==r.type.indexOf("rgb")||-1!==r.type.indexOf("color"))for(let i=0;i<3;i+=1)r.values[i]*=1-n;return l(r)}function p(r,n){if(r=s(r),n=a(n),-1!==r.type.indexOf("hsl"))r.values[2]+=(100-r.values[2])*n;else if(-1!==r.type.indexOf("rgb"))for(let i=0;i<3;i+=1)r.values[i]+=(255-r.values[i])*n;else if(-1!==r.type.indexOf("color"))for(let i=0;i<3;i+=1)r.values[i]+=(1-r.values[i])*n;return l(r)}function f(r,n=.15){return c(r)>.5?h(r,n):p(r,n)}},86154:function(r,n,i){"use strict";i.d(n,{ZP:function(){return b},x9:function(){return f}});var o=i(87462),a=i(63366),s=i(78883),l=i(4953),c=i(67506),u=i(86523);let d=["ownerState"],h=["variants"],p=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function f(r){return"ownerState"!==r&&"theme"!==r&&"sx"!==r&&"as"!==r}let m=(0,c.Z)(),g=r=>r?r.charAt(0).toLowerCase()+r.slice(1):r;function v({defaultTheme:r,theme:n,themeId:i}){return 0===Object.keys(n).length?r:n[i]||n}function y(r,n){let{ownerState:i}=n,s=(0,a.Z)(n,d),l="function"==typeof r?r((0,o.Z)({ownerState:i},s)):r;if(Array.isArray(l))return l.flatMap(r=>y(r,(0,o.Z)({ownerState:i},s)));
152if(l&&"object"==typeof l&&Array.isArray(l.variants)){let{variants:r=[]}=l,n=(0,a.Z)(l,h),c=n;return r.forEach(r=>{let n=!0;"function"==typeof r.props?n=r.props((0,o.Z)({ownerState:i},s,i)):Object.keys(r.props).forEach(o=>{(null==i?void 0:i[o])!==r.props[o]&&s[o]!==r.props[o]&&(n=!1)}),n&&(Array.isArray(c)||(c=[c]),c.push("function"==typeof r.style?r.style((0,o.Z)({ownerState:i},s,i)):r.style))}),c}return l}function b(r={}){let{themeId:n,defaultTheme:i=m,rootShouldForwardProp:c=f,slotShouldForwardProp:d=f}=r,h=r=>(0,u.Z)((0,o.Z)({},r,{theme:v((0,o.Z)({},r,{defaultTheme:i,themeId:n}))}));return h.__mui_systemSx=!0,(r,u={})=>{var m;let b;(0,s.Co)(r,r=>r.filter(r=>!(null!=r&&r.__mui_systemSx)));let{name:x,slot:_,skipVariantsResolver:w,skipSx:S,overridesResolver:T=(m=g(_))?(r,n)=>n[m]:null}=u,E=(0,a.Z)(u,p),k=void 0!==w?w:_&&"Root"!==_&&"root"!==_||!1,C=S||!1,P=f;"Root"===_||"root"===_?P=c:_?P=d:"string"==typeof r&&r.charCodeAt(0)>96&&(P=void 0);let O=(0,s.ZP)(r,(0,o.Z)({shouldForwardProp:P,label:b},E)),j=r=>"function"==typeof r&&r.__emotion_real!==r||(0,l.P)(r)?a=>y(r,(0,o.Z)({},a,{theme:v({theme:a.theme,defaultTheme:i,themeId:n})})):r,A=(a,...s)=>{let l=j(a),c=s?s.map(j):[];x&&T&&c.push(r=>{let a=v((0,o.Z)({},r,{defaultTheme:i,themeId:n}));if(!a.components||!a.components[x]||!a.components[x].styleOverrides)return null;let s=a.components[x].styleOverrides,l={};return Object.entries(s).forEach(([n,i])=>{l[n]=y(i,(0,o.Z)({},r,{theme:a}))}),T(r,l)}),x&&!k&&c.push(r=>{var a;let s=v((0,o.Z)({},r,{defaultTheme:i,themeId:n})),l=null==s||null==(a=s.components)||null==(a=a[x])?void 0:a.variants;return y({variants:l},(0,o.Z)({},r,{theme:s}))}),C||c.push(h);let u=c.length-s.length;if(Array.isArray(a)&&u>0){let r=Array(u).fill("");(l=[...a,...r]).raw=[...a.raw,...r]}let d=O(l,...c);return r.muiName&&(d.muiName=r.muiName),d};return O.withConfig&&(A.withConfig=O.withConfig),A}}},67506:function(r,n,i){"use strict";i.d(n,{Z:function(){return g}});var o=i(87462),a=i(63366),s=i(4953);let l=["values","unit","step"],c=r=>{let n=Object.keys(r).map(n=>({key:n,val:r[n]}))||[];return n.sort((r,n)=>r.val-n.val),n.reduce((r,n)=>(0,o.Z)({},r,{[n.key]:n.val}),{})};var u={borderRadius:4},d=i(98700),h=i(86523),p=i(44920);function f(r,n){if(this.vars&&"function"==typeof this.getColorSchemeSelector){let i=this.getColorSchemeSelector(r).replace(/(\[[^\]]+\])/,"*:where($1)");return{[i]:n}}return this.palette.mode===r?n:{}}let m=["breakpoints","palette","spacing","shape"];var g=function(r={},...n){let{breakpoints:i={},palette:g={},spacing:v,shape:y={}}=r,b=(0,a.Z)(r,m),x=function(r){let{values:n={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:i="px",step:s=5}=r,u=(0,a.Z)(r,l),d=c(n),h=Object.keys(d);function p(r){let o="number"==typeof n[r]?n[r]:r;return`@media (min-width:${o}${i})`}function f(r){let o="number"==typeof n[r]?n[r]:r;return`@media (max-width:${o-s/100}${i})`}function m(r,o){let a=h.indexOf(o);return`@media (min-width:${"number"==typeof n[r]?n[r]:r}${i}) and (max-width:${(-1!==a&&"number"==typeof n[h[a]]?n[h[a]]:o)-s/100}${i})`}return(0,o.Z)({keys:h,values:d,up:p,down:f,between:m,only:function(r){return h.indexOf(r)+1<h.length?m(r,h[h.indexOf(r)+1]):p(r)},not:function(r){let n=h.indexOf(r);return 0===n?p(h[1]):n===h.length-1?f(h[n]):m(r,h[h.indexOf(r)+1]).replace("@media","@media not all and")},unit:i},u)}(i),_=function(r=8){if(r.mui)return r;let n=(0,d.hB)({spacing:r}),i=(...r)=>{let i=0===r.length?[1]:r;return i.map(r=>{let i=n(r);return"number"==typeof i?`${i}px`:i}).join(" ")};return i.mui=!0,i}(v),w=(0,s.Z)({breakpoints:x,direction:"ltr",components:{},palette:(0,o.Z)({mode:"light"},g),spacing:_,shape:(0,o.Z)({},u,y)},b);return w.applyStyles=f,(w=n.reduce((r,n)=>(0,s.Z)(r,n),w)).unstable_sxConfig=(0,o.Z)({},p.Z,null==b?void 0:b.unstable_sxConfig),w.unstable_sx=function(r){return(0,h.Z)({sx:r,theme:this})},w}},47730:function(r,n,i){"use strict";var o=i(4953);n.Z=function(r,n){return n?(0,o.Z)(r,n,{clone:!1}):r}},98700:function(r,n,i){"use strict";i.d(n,{hB:function(){return g},eI:function(){return m},NA:function(){return v},e6:function(){return b},o3:function(){return x}});var o=i(95408),a=i(54844),s=i(47730);let l={m:"margin",p:"padding"},c={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},u={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},d=function(r){let n={};return i=>(void 0===n[i]&&(n[i]=r(i)),n[i])}(r=>{if(r.length>2){if(!u[r])return[r];r=u[r]}let[n,i]=r.split(""),o=l[n],a=c[i]||"";return Array.isArray(a)?a.map(r=>o+r):[o+a]}),h=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],p=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],f=[...h,...p];function m(r,n,i,o){var s;let l=null!=(s=(0,a.DW)(r,n,!1))?s:i;return"number"==typeof l?r=>"string"==typeof r?r:l*r:Array.isArray(l)?r=>"string"==typeof r?r:l[r]:"function"==typeof l?l:()=>void 0}function g(r){return m(r,"spacing",8,"spacing")}function v(r,n){if("string"==typeof n||null==n)return n;let i=Math.abs(n),o=r(i);return n>=0?o:"number"==typeof o?-o:`-${o}`}function y(r,n){let i=g(r.theme);return Object.keys(r).map(a=>(function(r,n,i,a){if(-1===n.indexOf(i))return null;let s=d(i),l=r=>s.reduce((n,i)=>(n[i]=v(a,r),n),{}),c=r[i];return(0,o.k9)(r,c,l)})(r,n,a,i)).reduce(s.Z,{})}function b(r){return y(r,h)}function x(r){return y(r,p)}function _(r){return y(r,f)}b.propTypes={},b.filterProps=h,x.propTypes={},x.filterProps=p,_.propTypes={},_.filterProps=f},54844:function(r,n,i){"use strict";i.d(n,{DW:function(){return s},Jq:function(){return l}});var o=i(14142),a=i(95408);function s(r,n,i=!0){if(!n||"string"!=typeof n)return null;if(r&&r.vars&&i){let i=`vars.${n}`.split(".").reduce((r,n)=>r&&r[n]?r[n]:null,r);if(null!=i)return i}return n.split(".").reduce((r,n)=>r&&null!=r[n]?r[n]:null,r)}function l(r,n,i,o=i){let a;return a="function"==typeof r?r(i):Array.isArray(r)?r[i]||o:s(r,i)||o,n&&(a=n(a,o,r)),a}n.ZP=function(r){let{prop:n,cssProperty:i=r.prop,themeKey:c,transform:u}=r,d=r=>{if(null==r[n])return null;let d=r[n],h=r.theme,p=s(h,c)||{},f=r=>{let a=l(p,u,r);return(r===a&&"string"==typeof r&&(a=l(p,u,`${n}${"default"===r?"":(0,o.Z)(r)}`,r)),!1===i)?a:{[i]:a}};return(0,a.k9)(r,d,f)};return d.propTypes={},d.filterProps=[n],d}},44920:function(r,n,i){"use strict";i.d(n,{Z:function(){return Y}});
152var o=i(98700),a=i(54844),s=i(47730),l=function(...r){let n=r.reduce((r,n)=>(n.filterProps.forEach(i=>{r[i]=n}),r),{}),i=r=>Object.keys(r).reduce((i,o)=>n[o]?(0,s.Z)(i,n[o](r)):i,{});return i.propTypes={},i.filterProps=r.reduce((r,n)=>r.concat(n.filterProps),[]),i},c=i(95408);function u(r){return"number"!=typeof r?r:`${r}px solid`}function d(r,n){return(0,a.ZP)({prop:r,themeKey:"borders",transform:n})}let h=d("border",u),p=d("borderTop",u),f=d("borderRight",u),m=d("borderBottom",u),g=d("borderLeft",u),v=d("borderColor"),y=d("borderTopColor"),b=d("borderRightColor"),x=d("borderBottomColor"),_=d("borderLeftColor"),w=d("outline",u),S=d("outlineColor"),T=r=>{if(void 0!==r.borderRadius&&null!==r.borderRadius){let n=(0,o.eI)(r.theme,"shape.borderRadius",4,"borderRadius"),i=r=>({borderRadius:(0,o.NA)(n,r)});return(0,c.k9)(r,r.borderRadius,i)}return null};T.propTypes={},T.filterProps=["borderRadius"],l(h,p,f,m,g,v,y,b,x,_,T,w,S);let E=r=>{if(void 0!==r.gap&&null!==r.gap){let n=(0,o.eI)(r.theme,"spacing",8,"gap"),i=r=>({gap:(0,o.NA)(n,r)});return(0,c.k9)(r,r.gap,i)}return null};E.propTypes={},E.filterProps=["gap"];let k=r=>{if(void 0!==r.columnGap&&null!==r.columnGap){let n=(0,o.eI)(r.theme,"spacing",8,"columnGap"),i=r=>({columnGap:(0,o.NA)(n,r)});return(0,c.k9)(r,r.columnGap,i)}return null};k.propTypes={},k.filterProps=["columnGap"];let C=r=>{if(void 0!==r.rowGap&&null!==r.rowGap){let n=(0,o.eI)(r.theme,"spacing",8,"rowGap"),i=r=>({rowGap:(0,o.NA)(n,r)});return(0,c.k9)(r,r.rowGap,i)}return null};C.propTypes={},C.filterProps=["rowGap"];let P=(0,a.ZP)({prop:"gridColumn"}),O=(0,a.ZP)({prop:"gridRow"}),j=(0,a.ZP)({prop:"gridAutoFlow"}),A=(0,a.ZP)({prop:"gridAutoColumns"}),M=(0,a.ZP)({prop:"gridAutoRows"}),I=(0,a.ZP)({prop:"gridTemplateColumns"}),Z=(0,a.ZP)({prop:"gridTemplateRows"}),R=(0,a.ZP)({prop:"gridTemplateAreas"}),D=(0,a.ZP)({prop:"gridArea"});function L(r,n){return"grey"===n?n:r}l(E,k,C,P,O,j,A,M,I,Z,R,D);let z=(0,a.ZP)({prop:"color",themeKey:"palette",transform:L}),B=(0,a.ZP)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:L}),F=(0,a.ZP)({prop:"backgroundColor",themeKey:"palette",transform:L});function N(r){return r<=1&&0!==r?`${100*r}%`:r}l(z,B,F);let U=(0,a.ZP)({prop:"width",transform:N}),V=r=>{if(void 0!==r.maxWidth&&null!==r.maxWidth){let n=n=>{var i,o;let a=(null==(i=r.theme)||null==(i=i.breakpoints)||null==(i=i.values)?void 0:i[n])||c.VO[n];return a?(null==(o=r.theme)||null==(o=o.breakpoints)?void 0:o.unit)!=="px"?{maxWidth:`${a}${r.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:N(n)}};return(0,c.k9)(r,r.maxWidth,n)}return null};V.filterProps=["maxWidth"];let q=(0,a.ZP)({prop:"minWidth",transform:N}),$=(0,a.ZP)({prop:"height",transform:N}),G=(0,a.ZP)({prop:"maxHeight",transform:N}),W=(0,a.ZP)({prop:"minHeight",transform:N});(0,a.ZP)({prop:"size",cssProperty:"width",transform:N}),(0,a.ZP)({prop:"size",cssProperty:"height",transform:N});let H=(0,a.ZP)({prop:"boxSizing"});l(U,V,q,$,G,W,H);let X={border:{themeKey:"borders",transform:u},borderTop:{themeKey:"borders",transform:u},borderRight:{themeKey:"borders",transform:u},borderBottom:{themeKey:"borders",transform:u},borderLeft:{themeKey:"borders",transform:u},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:u},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:T},color:{themeKey:"palette",transform:L},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:L},backgroundColor:{themeKey:"palette",transform:L},p:{style:o.o3},pt:{style:o.o3},pr:{style:o.o3},pb:{style:o.o3},pl:{style:o.o3},px:{style:o.o3},py:{style:o.o3},padding:{style:o.o3},paddingTop:{style:o.o3},paddingRight:{style:o.o3},paddingBottom:{style:o.o3},paddingLeft:{style:o.o3},paddingX:{style:o.o3},paddingY:{style:o.o3},paddingInline:{style:o.o3},paddingInlineStart:{style:o.o3},paddingInlineEnd:{style:o.o3},paddingBlock:{style:o.o3},paddingBlockStart:{style:o.o3},paddingBlockEnd:{style:o.o3},m:{style:o.e6},mt:{style:o.e6},mr:{style:o.e6},mb:{style:o.e6},ml:{style:o.e6},mx:{style:o.e6},my:{style:o.e6},margin:{style:o.e6},marginTop:{style:o.e6},marginRight:{style:o.e6},marginBottom:{style:o.e6},marginLeft:{style:o.e6},marginX:{style:o.e6},marginY:{style:o.e6},marginInline:{style:o.e6},marginInlineStart:{style:o.e6},marginInlineEnd:{style:o.e6},marginBlock:{style:o.e6},marginBlockStart:{style:o.e6},marginBlockEnd:{style:o.e6},displayPrint:{cssProperty:!1,transform:r=>({"@media print":{display:r}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:E},rowGap:{style:C},columnGap:{style:k},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:N},maxWidth:{style:V},minWidth:{transform:N},height:{transform:N},maxHeight:{transform:N},minHeight:{transform:N},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};var Y=X},39707:function(r,n,i){"use strict";i.d(n,{Z:function(){return d}});var o=i(87462),a=i(63366),s=i(4953),l=i(44920);let c=["sx"],u=r=>{var n,i;let o={systemProps:{},otherProps:{}},a=null!=(n=null==r||null==(i=r.theme)?void 0:i.unstable_sxConfig)?n:l.Z;return Object.keys(r).forEach(n=>{a[n]?o.systemProps[n]=r[n]:o.otherProps[n]=r[n]}),o};function d(r){let n;let{sx:i}=r,l=(0,a.Z)(r,c),{systemProps:d,otherProps:h}=u(l);return n=Array.isArray(i)?[d,...i]:"function"==typeof i?(...r)=>{let n=i(...r);return(0,s.P)(n)?(0,o.Z)({},d,n):d}:(0,o.Z)({},d,i),(0,o.Z)({},h,{sx:n})}},86523:function(r,n,i){"use strict";var o=i(14142),a=i(47730),s=i(54844),l=i(95408),c=i(44920);let u=function(){function r(r,n,i,a){let c={[r]:n,theme:i},u=a[r];if(!u)return{[r]:n};let{cssProperty:d=r,themeKey:h,transform:p,style:f}=u;if(null==n)return null;if("typography"===h&&"inherit"===n)return{[r]:n};let m=(0,s.DW)(i,h)||{};if(f)return f(c);let g=n=>{let i=(0,s.Jq)(m,p,n);return(n===i&&"string"==typeof n&&(i=(0,s.Jq)(m,p,`${r}${"default"===n?"":(0,o.Z)(n)}`,n)),!1===d)?i:{[d]:i}};return(0,l.k9)(c,n,g)}return function n(i){var o;let{sx:s,theme:u={}}=i||{};if(!s)return null;let d=null!=(o=u.unstable_sxConfig)?o:c.Z;function h(i){let o=i;if("function"==typeof i)o=i(u);else if("object"!=typeof i)return i;if(!o)return null;let s=(0,l.W8)(u.breakpoints),c=Object.keys(s),h=s;
152return Object.keys(o).forEach(i=>{var s;let c="function"==typeof(s=o[i])?s(u):s;if(null!=c){if("object"==typeof c){if(d[i])h=(0,a.Z)(h,r(i,c,u,d));else{let r=(0,l.k9)({theme:u},c,r=>({[i]:r}));(function(...r){let n=r.reduce((r,n)=>r.concat(Object.keys(n)),[]),i=new Set(n);return r.every(r=>i.size===Object.keys(r).length)})(r,c)?h[i]=n({sx:c,theme:u}):h=(0,a.Z)(h,r)}}else h=(0,a.Z)(h,r(i,c,u,d))}}),(0,l.L7)(c,h)}return Array.isArray(s)?s.map(h):h(s)}}();u.filterProps=["sx"],n.Z=u},96682:function(r,n,i){"use strict";var o=i(67506),a=i(34168);let s=(0,o.Z)();n.Z=function(r=s){return(0,a.Z)(r)}},20539:function(r,n,i){"use strict";i.d(n,{Z:function(){return a}});var o=i(35971);function a(r){let{theme:n,name:i,props:a}=r;return n&&n.components&&n.components[i]&&n.components[i].defaultProps?(0,o.Z)(n.components[i].defaultProps,a):a}},29628:function(r,n,i){"use strict";i.d(n,{Z:function(){return s}});var o=i(20539),a=i(96682);function s({props:r,name:n,defaultTheme:i,themeId:s}){let l=(0,a.Z)(i);s&&(l=l[s]||l);let c=(0,o.Z)({theme:l,name:n,props:r});return c}},34168:function(r,n,i){"use strict";var o=i(67294),a=i(38741);n.Z=function(r=null){let n=o.useContext(a.T);return n&&0!==Object.keys(n).length?n:r}},37078:function(r,n){"use strict";let i;let o=r=>r,a=(i=o,{configure(r){i=r},generate:r=>i(r),reset(){i=o}});n.Z=a},14142:function(r,n,i){"use strict";i.d(n,{Z:function(){return a}});var o=i(56535);function a(r){if("string"!=typeof r)throw Error((0,o.Z)(7));return r.charAt(0).toUpperCase()+r.slice(1)}},94780:function(r,n,i){"use strict";function o(r,n,i){let o={};return Object.keys(r).forEach(a=>{o[a]=r[a].reduce((r,o)=>{if(o){let a=n(o);""!==a&&r.push(a),i&&i[o]&&r.push(i[o])}return r},[]).join(" ")}),o}i.d(n,{Z:function(){return o}})},91476:function(r,n,i){"use strict";function o(...r){return r.reduce((r,n)=>null==n?r:function(...i){r.apply(this,i),n.apply(this,i)},()=>{})}i.d(n,{Z:function(){return o}})},39336:function(r,n,i){"use strict";function o(r,n=166){let i;function o(...a){let s=()=>{r.apply(this,a)};clearTimeout(i),i=setTimeout(s,n)}return o.clear=()=>{clearTimeout(i)},o}i.d(n,{Z:function(){return o}})},4953:function(r,n,i){"use strict";i.d(n,{P:function(){return a},Z:function(){return function r(n,i,s={clone:!0}){let l=s.clone?(0,o.Z)({},n):n;
152return a(n)&&a(i)&&Object.keys(i).forEach(o=>{a(i[o])&&Object.prototype.hasOwnProperty.call(n,o)&&a(n[o])?l[o]=r(n[o],i[o],s):s.clone?l[o]=a(i[o])?function r(n){if(!a(n))return n;let i={};return Object.keys(n).forEach(o=>{i[o]=r(n[o])}),i}(i[o]):i[o]:l[o]=i[o]}),l}}});var o=i(87462);function a(r){if("object"!=typeof r||null===r)return!1;let n=Object.getPrototypeOf(r);return(null===n||n===Object.prototype||null===Object.getPrototypeOf(n))&&!(Symbol.toStringTag in r)&&!(Symbol.iterator in r)}},56535:function(r,n,i){"use strict";function o(r){let n="https://mui.com/production-error/?code="+r;for(let r=1;r<arguments.length;r+=1)n+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+r+"; visit "+n+" for the full message."}i.d(n,{Z:function(){return o}})},34867:function(r,n,i){"use strict";i.d(n,{ZP:function(){return s}});var o=i(37078);let a={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function s(r,n,i="Mui"){let s=a[n];return s?`${i}-${s}`:`${o.Z.generate(r)}-${n}`}},1588:function(r,n,i){"use strict";i.d(n,{Z:function(){return a}});var o=i(34867);function a(r,n,i="Mui"){let a={};return n.forEach(n=>{a[n]=(0,o.ZP)(r,n,i)}),a}},29726:function(r,n,i){"use strict";function o(r){let n=r.documentElement.clientWidth;return Math.abs(window.innerWidth-n)}i.d(n,{Z:function(){return o}})},82690:function(r,n,i){"use strict";function o(r){return r&&r.ownerDocument||document}i.d(n,{Z:function(){return o}})},74161:function(r,n,i){"use strict";i.d(n,{Z:function(){return a}});var o=i(82690);function a(r){let n=(0,o.Z)(r);return n.defaultView||window}},35971:function(r,n,i){"use strict";i.d(n,{Z:function(){return function r(n,i){let a=(0,o.Z)({},i);return Object.keys(n).forEach(s=>{if(s.toString().match(/^(components|slots)$/))a[s]=(0,o.Z)({},n[s],a[s]);else if(s.toString().match(/^(componentsProps|slotProps)$/)){let l=n[s]||{},c=i[s];a[s]={},c&&Object.keys(c)?l&&Object.keys(l)?(a[s]=(0,o.Z)({},c),Object.keys(l).forEach(n=>{a[s][n]=r(l[n],c[n])})):a[s]=c:a[s]=l}else void 0===a[s]&&(a[s]=n[s])}),a}}});var o=i(87462)},27364:function(r,n,i){"use strict";function o(r,n){"function"==typeof r?r(n):r&&(r.current=n)}i.d(n,{Z:function(){return o}})},19032:function(r,n,i){"use strict";i.d(n,{Z:function(){return a}});var o=i(67294);function a({controlled:r,default:n,name:i,state:a="value"}){let{current:s}=o.useRef(void 0!==r),[l,c]=o.useState(n),u=o.useCallback(r=>{s||c(r)},[]);return[s?r:l,u]}},73546:function(r,n,i){"use strict";var o=i(67294);let a="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;n.Z=a},59948:function(r,n,i){"use strict";var o=i(67294),a=i(73546);n.Z=function(r){let n=o.useRef(r);return(0,a.Z)(()=>{n.current=r}),o.useRef((...r)=>(0,n.current)(...r)).current}},33703:function(r,n,i){"use strict";i.d(n,{Z:function(){return s}});var o=i(67294),a=i(27364);function s(...r){return o.useMemo(()=>r.every(r=>null==r)?null:n=>{r.forEach(r=>{(0,a.Z)(r,n)})},r)}},92996:function(r,n,i){"use strict";i.d(n,{Z:function(){return c}});var o,a=i(67294);let s=0,l=(o||(o=i.t(a,2)))["useId".toString()];function c(r){if(void 0!==l){let n=l();return null!=r?r:n}return function(r){let[n,i]=a.useState(r);return a.useEffect(()=>{null==n&&i(`mui-${s+=1}`)},[n]),r||n}(r)}},54098:function(r,n){var i,o="undefined"!=typeof self?self:this,a=function(){function r(){this.fetch=!1,this.DOMException=o.DOMException}return r.prototype=o,new r}();i=a,function(r){var n={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch(r){return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};if(n.arrayBuffer)var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],a=ArrayBuffer.isView||function(r){return r&&o.indexOf(Object.prototype.toString.call(r))>-1};function s(r){if("string"!=typeof r&&(r=String(r)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(r))throw TypeError("Invalid character in header field name");return r.toLowerCase()}function l(r){return"string"!=typeof r&&(r=String(r)),r}function c(r){var i={next:function(){var n=r.shift();return{done:void 0===n,value:n}}};return n.iterable&&(i[Symbol.iterator]=function(){return i}),i}function u(r){this.map={},r instanceof u?r.forEach(function(r,n){this.append(n,r)},this):Array.isArray(r)?r.forEach(function(r){this.append(r[0],r[1])},this):r&&Object.getOwnPropertyNames(r).forEach(function(n){this.append(n,r[n])},this)}function d(r){if(r.bodyUsed)return Promise.reject(TypeError("Already read"));r.bodyUsed=!0}function h(r){return new Promise(function(n,i){r.onload=function(){n(r.result)},r.onerror=function(){i(r.error)}})}function p(r){var n=new FileReader,i=h(n);return n.readAsArrayBuffer(r),i}function f(r){if(r.slice)return r.slice(0);var n=new Uint8Array(r.byteLength);return n.set(new Uint8Array(r)),n.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(r){if(this._bodyInit=r,r){if("string"==typeof r)this._bodyText=r;else if(n.blob&&Blob.prototype.isPrototypeOf(r))this._bodyBlob=r;else if(n.formData&&FormData.prototype.isPrototypeOf(r))this._bodyFormData=r;else if(n.searchParams&&URLSearchParams.prototype.isPrototypeOf(r))this._bodyText=r.toString();else{var i;n.arrayBuffer&&n.blob&&(i=r)&&DataView.prototype.isPrototypeOf(i)?(this._bodyArrayBuffer=f(r.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(r)||a(r))?this._bodyArrayBuffer=f(r):this._bodyText=r=Object.prototype.toString.call(r)}}else this._bodyText="";!this.headers.get("content-type")&&("string"==typeof r?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(r)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var r=d(this);if(r)return r;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")},this.arrayBuffer=function(){return this._bodyArrayBuffer?d(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(p)}),this.text=function(){var r,n,i,o=d(this);if(o)return o;if(this._bodyBlob)return r=this._bodyBlob,i=h(n=new FileReader),n.readAsText(r),i;if(this._bodyArrayBuffer)return Promise.resolve(function(r){for(var n=new Uint8Array(r),i=Array(n.length),o=0;o<n.length;o++)i[o]=String.fromCharCode(n[o]);return i.join("")}(this._bodyArrayBuffer));if(!this._bodyFormData)return Promise.resolve(this._bodyText);throw Error("could not read FormData body as text")},n.formData&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}u.prototype.append=function(r,n){r=s(r),n=l(n);var i=this.map[r];this.map[r]=i?i+", "+n:n},u.prototype.delete=function(r){delete this.map[s(r)]},u.prototype.get=function(r){return r=s(r),this.has(r)?this.map[r]:null},u.prototype.has=function(r){return this.map.hasOwnProperty(s(r))},u.prototype.set=function(r,n){this.map[s(r)]=l(n)},u.prototype.forEach=function(r,n){for(var i in this.map)this.map.hasOwnProperty(i)&&r.call(n,this.map[i],i,this)},u.prototype.keys=function(){var r=[];return this.forEach(function(n,i){r.push(i)}),c(r)},u.prototype.values=function(){var r=[];return this.forEach(function(n){r.push(n)}),c(r)},u.prototype.entries=function(){var r=[];return this.forEach(function(n,i){r.push([i,n])}),c(r)},n.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);var g=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function v(r,n){var i,o,a=(n=n||{}).body;if(r instanceof v){if(r.bodyUsed)throw TypeError("Already read");this.url=r.url,this.credentials=r.credentials,n.headers||(this.headers=new u(r.headers)),this.method=r.method,this.mode=r.mode,this.signal=r.signal,a||null==r._bodyInit||(a=r._bodyInit,r.bodyUsed=!0)}else this.url=String(r);if(this.credentials=n.credentials||this.credentials||"same-origin",(n.headers||!this.headers)&&(this.headers=new u(n.headers)),this.method=(o=(i=n.method||this.method||"GET").toUpperCase(),g.indexOf(o)>-1?o:i),this.mode=n.mode||this.mode||null,this.signal=n.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&a)throw TypeError("Body not allowed for GET or HEAD requests");this._initBody(a)}function y(r){var n=new FormData;return r.trim().split("&").forEach(function(r){if(r){var i=r.split("="),o=i.shift().replace(/\+/g," "),a=i.join("=").replace(/\+/g," ");n.append(decodeURIComponent(o),decodeURIComponent(a))}}),n}function b(r,n){n||(n={}),this.type="default",this.status=void 0===n.status?200:n.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in n?n.statusText:"OK",this.headers=new u(n.headers),this.url=n.url||"",this._initBody(r)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},m.call(v.prototype),m.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},b.error=function(){var r=new b(null,{status:0,statusText:""});return r.type="error",r};var x=[301,302,303,307,308];b.redirect=function(r,n){if(-1===x.indexOf(n))throw RangeError("Invalid status code");return new b(null,{status:n,headers:{location:r}})},r.DOMException=i.DOMException;try{new r.DOMException}catch(n){r.DOMException=function(r,n){this.message=r,this.name=n;var i=Error(r);this.stack=i.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function _(i,o){return new Promise(function(a,s){var l=new v(i,o);if(l.signal&&l.signal.aborted)return s(new r.DOMException("Aborted","AbortError"));var c=new XMLHttpRequest;function d(){c.abort()}c.onload=function(){var r,n,i={status:c.status,statusText:c.statusText,headers:(r=c.getAllResponseHeaders()||"",n=new u,r.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEac
152h(function(r){var i=r.split(":"),o=i.shift().trim();if(o){var a=i.join(":").trim();n.append(o,a)}}),n)};i.url="responseURL"in c?c.responseURL:i.headers.get("X-Request-URL");var o="response"in c?c.response:c.responseText;a(new b(o,i))},c.onerror=function(){s(TypeError("Network request failed"))},c.ontimeout=function(){s(TypeError("Network request failed"))},c.onabort=function(){s(new r.DOMException("Aborted","AbortError"))},c.open(l.method,l.url,!0),"include"===l.credentials?c.withCredentials=!0:"omit"===l.credentials&&(c.withCredentials=!1),"responseType"in c&&n.blob&&(c.responseType="blob"),l.headers.forEach(function(r,n){c.setRequestHeader(n,r)}),l.signal&&(l.signal.addEventListener("abort",d),c.onreadystatechange=function(){4===c.readyState&&l.signal.removeEventListener("abort",d)}),c.send(void 0===l._bodyInit?null:l._bodyInit)})}_.polyfill=!0,i.fetch||(i.fetch=_,i.Headers=u,i.Request=v,i.Response=b),r.Headers=u,r.Request=v,r.Response=b,r.fetch=_,Object.defineProperty(r,"__esModule",{value:!0})}({}),a.fetch.ponyfill=!0,delete a.fetch.polyfill,(n=a.fetch).default=a.fetch,n.fetch=a.fetch,n.Headers=a.Headers,n.Request=a.Request,n.Response=a.Response,r.exports=n},86559:function(r,n,i){"use strict";i.d(n,{Z:function(){return h}});var o,a={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function s(r){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=n.width?String(n.width):r.defaultWidth;return r.formats[i]||r.formats[r.defaultWidth]}}var l={date:s({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:s({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:s({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},c={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function u(r){return function(n,i){var o;if("formatting"===(null!=i&&i.context?String(i.context):"standalone")&&r.formattingValues){var a=r.defaultFormattingWidth||r.defaultWidth,s=null!=i&&i.width?String(i.width):a;o=r.formattingValues[s]||r.formattingValues[a]}else{var l=r.defaultWidth,c=null!=i&&i.width?String(i.width):r.defaultWidth;o=r.values[c]||r.values[l]}return o[r.argumentCallback?r.argumentCallback(n):n]}}function d(r){return function(n){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=o.width,s=a&&r.matchPatterns[a]||r.matchPatterns[r.defaultMatchWidth],l=n.match(s);if(!l)return null;var c=l[0],u=a&&r.parsePatterns[a]||r.parsePatterns[r.defaultParseWidth],d=Array.isArray(u)?function(r,n){for(var i=0;i<r.length;i++)if(n(r[i]))return i}(u,function(r){return r.test(c)}):function(r,n){for(var i in r)if(r.hasOwnProperty(i)&&n(r[i]))return i}(u,function(r){return r.test(c)});return i=r.valueCallback?r.valueCallback(d):d,{value:i=o.valueCallback?o.valueCallback(i):i,rest:n.slice(c.length)}}}var h={code:"en-US",formatDistance:function(r,n,i){var o,s=a[r];return(o="string"==typeof s?s:1===n?s.one:s.other.replace("{{count}}",n.toString()),null!=i&&i.addSuffix)?i.comparison&&i.comparison>0?"in "+o:o+" ago":o},formatLong:l,formatRelative:function(r,n,i,o){return c[r]},localize:{ordinalNumber:function(r,n){var i=Number(r),o=i%100;if(o>20||o<10)switch(o%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},era:u({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:u({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(r){return r-1}}),month:u({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:u({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
152ay","Saturday"]},defaultWidth:"wide"}),dayPeriod:u({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(o={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(r){return parseInt(r,10)}},function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.match(o.matchPattern);if(!i)return null;var a=i[0],s=r.match(o.parsePattern);if(!s)return null;var l=o.valueCallback?o.valueCallback(s[0]):s[0];return{value:l=n.valueCallback?n.valueCallback(l):l,rest:r.slice(a.length)}}),era:d({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:d({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(r){return r+1}}),month:d({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:d({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:d({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},84314:function(r,n,i){"use strict";i.d(n,{j:function(){return a}});var o={};function a(){return o}},24262:function(r,n,i){"use strict";function o(r){var n=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return n.setUTCFullYear(r.getFullYear()),r.getTime()-n.getTime()}i.d(n,{Z:function(){return o}})},13882:function(r,n,i){"use strict";function o(r,n){if(n.length<r)throw TypeError(r+" argument"+(r>1?"s":"")+" required, but only "+n.length+" present")}i.d(n,{Z:function(){return o}})},11510:function(r,n,i){"use strict";i.d(n,{Z:function(){return Z}});var o=i(71002),a=i(13882),s=i(19013);function l(r){if(null===r||!0===r||!1===r)return NaN;var n=Number(r);return isNaN(n)?n:n<0?Math.ceil(n):Math.floor(n)}function c(r){(0,a.Z)(1,arguments);var n=(0,s.Z)(r),i=n.getUTCDay();return n.setUTCDate(n.getUTCDate()-((i<1?7:0)+i-1)),n.setUTCHours(0,0,0,0),n}function u(r){(0,a.Z)(1,arguments);var n=(0,s.Z)(r),i=n.getUTCFullYear(),o=new Date(0);o.setUTCFullYear(i+1,0,4),o.setUTCHours(0,0,0,0);var l=c(o),u=new Date(0);u.setUTCFullYear(i,0,4),u.setUTCHours(0,0,0,0);var d=c(u);return n.getTime()>=l.getTime()?i+1:n.getTime()>=d.getTime()?i:i-1}var d=i(84314);function h(r,n){(0,a.Z)(1,arguments);var i,o,c,u,h,p,f,m,g=(0,d.j)(),v=l(null!==(i=null!==(o=null!==(c=null!==(u=null==n?void 0:n.weekStartsOn)&&void 0!==u?u:null==n?void 0:null===(h=n.locale)||void 0===h?void 0:null===(p=h.options)||void 0===p?void 0:p.weekStartsOn)&&void 0!==c?c:g.weekStartsOn)&&void 0!==o?o:null===(f=g.locale)||void 0===f?void 0:null===(m=f.options)||void 0===m?void 0:m.weekStartsOn)&&void 0!==i?i:0);if(!(v>=0&&v<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var y=(0,s.Z)(r),b=y.getUTCDay();return y.setUTCDate(y.getUTCDate()-((b<v?7:0)+b-v)),y.setUTCHours(0,0,0,0),y}function p(r,n){(0,a.Z)(1,arguments);var i,o,c,u,p,f,m,g,v=(0,s.Z)(r),y=v.getUTCFullYear(),b=(0,d.j)(),x=l(null!==(i=null!==(o=null!==(c=null!==(u=null==n?void 0:n.firstWeekContainsDate)&&void 0!==u?u:null==n?void 0:null===(p=n.locale)||void 0===p?void 0:null===(f=p.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==c?c:b.firstWeekContainsDate)&&void 0!==o?o:null===(m=b.locale)||void 0===m?void 0:null===(g=m.options)||void 0===g?void 0:g.firstWeekContainsDate)&&void 0!==i?i:1);if(!(x>=1&&x<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var _=new Date(0);_.setUTCFullYear(y+1,0,x),_.setUTCHours(0,0,0,0);var w=h(_,n),S=new Date(0);S.setUTCFullYear(y,0,x),S.setUTCHours(0,0,0,0);var T=h(S,n);return v.getTime()>=w.getTime()?y+1:v.getTime()>=T.getTime()?y:y-1}function f(r,n){for(var i=Math.abs(r).toString();i.length<n;)i="0"+i;return(r<0?"-":"")+i}var m={y:function(r,n){var i=r.getUTCFullYear(),o=i>0?i:1-i;return f("yy"===n?o%100:o,n.length)},M:function(r,n){var i=r.getUTCMonth();return"M"===n?String(i+1):f(i+1,2)},d:function(r,n){return f(r.getUTCDate(),n.length)},a:function(r,n){var i=r.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return i.toUpperCase();case"aaa":return i;case"aaaaa":return i[0];
152default:return"am"===i?"a.m.":"p.m."}},h:function(r,n){return f(r.getUTCHours()%12||12,n.length)},H:function(r,n){return f(r.getUTCHours(),n.length)},m:function(r,n){return f(r.getUTCMinutes(),n.length)},s:function(r,n){return f(r.getUTCSeconds(),n.length)},S:function(r,n){var i=n.length;return f(Math.floor(r.getUTCMilliseconds()*Math.pow(10,i-3)),n.length)}},g={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};function v(r,n){var i=r>0?"-":"+",o=Math.abs(r),a=Math.floor(o/60),s=o%60;return 0===s?i+String(a):i+String(a)+(n||"")+f(s,2)}function y(r,n){return r%60==0?(r>0?"-":"+")+f(Math.abs(r)/60,2):b(r,n)}function b(r,n){var i=Math.abs(r);return(r>0?"-":"+")+f(Math.floor(i/60),2)+(n||"")+f(i%60,2)}var x={G:function(r,n,i){var o=r.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return i.era(o,{width:"abbreviated"});case"GGGGG":return i.era(o,{width:"narrow"});default:return i.era(o,{width:"wide"})}},y:function(r,n,i){if("yo"===n){var o=r.getUTCFullYear();return i.ordinalNumber(o>0?o:1-o,{unit:"year"})}return m.y(r,n)},Y:function(r,n,i,o){var a=p(r,o),s=a>0?a:1-a;return"YY"===n?f(s%100,2):"Yo"===n?i.ordinalNumber(s,{unit:"year"}):f(s,n.length)},R:function(r,n){return f(u(r),n.length)},u:function(r,n){return f(r.getUTCFullYear(),n.length)},Q:function(r,n,i){var o=Math.ceil((r.getUTCMonth()+1)/3);switch(n){case"Q":return String(o);case"QQ":return f(o,2);case"Qo":return i.ordinalNumber(o,{unit:"quarter"});case"QQQ":return i.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(o,{width:"narrow",context:"formatting"});default:return i.quarter(o,{width:"wide",context:"formatting"})}},q:function(r,n,i){var o=Math.ceil((r.getUTCMonth()+1)/3);switch(n){case"q":return String(o);case"qq":return f(o,2);case"qo":return i.ordinalNumber(o,{unit:"quarter"});case"qqq":return i.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(o,{width:"narrow",context:"standalone"});default:return i.quarter(o,{width:"wide",context:"standalone"})}},M:function(r,n,i){var o=r.getUTCMonth();switch(n){case"M":case"MM":return m.M(r,n);case"Mo":return i.ordinalNumber(o+1,{unit:"month"});case"MMM":return i.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(o,{width:"narrow",context:"formatting"});default:return i.month(o,{width:"wide",context:"formatting"})}},L:function(r,n,i){var o=r.getUTCMonth();switch(n){case"L":return String(o+1);case"LL":return f(o+1,2);case"Lo":return i.ordinalNumber(o+1,{unit:"month"});case"LLL":return i.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(o,{width:"narrow",context:"standalone"});default:return i.month(o,{width:"wide",context:"standalone"})}},w:function(r,n,i,o){var c=function(r,n){(0,a.Z)(1,arguments);var i=(0,s.Z)(r);return Math.round((h(i,n).getTime()-(function(r,n){(0,a.Z)(1,arguments);var i,o,s,c,u,f,m,g,v=(0,d.j)(),y=l(null!==(i=null!==(o=null!==(s=null!==(c=null==n?void 0:n.firstWeekContainsDate)&&void 0!==c?c:null==n?void 0:null===(u=n.locale)||void 0===u?void 0:null===(f=u.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==s?s:v.firstWeekContainsDate)&&void 0!==o?o:null===(m=v.locale)||void 0===m?void 0:null===(g=m.options)||void 0===g?void 0:g.firstWeekContainsDate)&&void 0!==i?i:1),b=p(r,n),x=new Date(0);return x.setUTCFullYear(b,0,y),x.setUTCHours(0,0,0,0),h(x,n)})(i,n).getTime())/6048e5)+1}(r,o);return"wo"===n?i.ordinalNumber(c,{unit:"week"}):f(c,n.length)},I:function(r,n,i){var o=function(r){(0,a.Z)(1,arguments);var n=(0,s.Z)(r);return Math.round((c(n).getTime()-(function(r){(0,a.Z)(1,arguments);var n=u(r),i=new Date(0);return i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0),c(i)})(n).getTime())/6048e5)+1}(r);return"Io"===n?i.ordinalNumber(o,{unit:"week"}):f(o,n.length)},d:function(r,n,i){return"do"===n?i.ordinalNumber(r.getUTCDate(),{unit:"date"}):m.d(r,n)},D:function(r,n,i){var o=function(r){(0,a.Z)(1,arguments);var n=(0,s.Z)(r),i=n.getTime();return n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0),Math.floor((i-n.getTime())/864e5)+1}(r);return"Do"===n?i.ordinalNumber(o,{unit:"dayOfYear"}):f(o,n.length)},E:function(r,n,i){var o=r.getUTCDay();switch(n){case"E":case"EE":case"EEE":return i.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(o,{width:"short",context:"formatting"});default:return i.day(o,{width:"wide",context:"formatting"})}},e:function(r,n,i,o){var a=r.getUTCDay(),s=(a-o.weekStartsOn+8)%7||7;switch(n){case"e":return String(s);case"ee":return f(s,2);case"eo":return i.ordinalNumber(s,{unit:"day"});case"eee":return i.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(a,{width:"short",context:"formatting"});default:return i.day(a,{width:"wide",context:"formatting"})}},c:function(r,n,i,o){var a=r.getUTCDay(),s=(a-o.weekStartsOn+8)%7||7;switch(n){case"c":return String(s);case"cc":return f(s,n.length);case"co":return i.ordinalNumber(s,{unit:"day"});case"ccc":return i.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(a,{width:"narrow",context:"standalone"});case"cccccc":return i.day(a,{width:"short",context:"standalone"});default:return i.day(a,{width:"wide",context:"standalone"})}},i:function(r,n,i){var o=r.getUTCDay(),a=0===o?7:o;switch(n){case"i":return String(a);case"ii":return f(a,n.length);case"io":return i.ordinalNumber(a,{unit:"day"});case"iii":return i.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(o,{width:"short",context:"formatting"});default:return i.day(o,{width:"wide",context:"formatting"})}},a:function(r,n,i){var o=r.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(o,{width:"narrow",context:"formatting"});default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(r,n,i){var o,a=r.getUTCHours();switch(o=12===a?g.noon:0===a?g.midnight:a/12>
152=1?"pm":"am",n){case"b":case"bb":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(o,{width:"narrow",context:"formatting"});default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(r,n,i){var o,a=r.getUTCHours();switch(o=a>=17?g.evening:a>=12?g.afternoon:a>=4?g.morning:g.night,n){case"B":case"BB":case"BBB":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(o,{width:"narrow",context:"formatting"});default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(r,n,i){if("ho"===n){var o=r.getUTCHours()%12;return 0===o&&(o=12),i.ordinalNumber(o,{unit:"hour"})}return m.h(r,n)},H:function(r,n,i){return"Ho"===n?i.ordinalNumber(r.getUTCHours(),{unit:"hour"}):m.H(r,n)},K:function(r,n,i){var o=r.getUTCHours()%12;return"Ko"===n?i.ordinalNumber(o,{unit:"hour"}):f(o,n.length)},k:function(r,n,i){var o=r.getUTCHours();return(0===o&&(o=24),"ko"===n)?i.ordinalNumber(o,{unit:"hour"}):f(o,n.length)},m:function(r,n,i){return"mo"===n?i.ordinalNumber(r.getUTCMinutes(),{unit:"minute"}):m.m(r,n)},s:function(r,n,i){return"so"===n?i.ordinalNumber(r.getUTCSeconds(),{unit:"second"}):m.s(r,n)},S:function(r,n){return m.S(r,n)},X:function(r,n,i,o){var a=(o._originalDate||r).getTimezoneOffset();if(0===a)return"Z";switch(n){case"X":return y(a);case"XXXX":case"XX":return b(a);default:return b(a,":")}},x:function(r,n,i,o){var a=(o._originalDate||r).getTimezoneOffset();switch(n){case"x":return y(a);case"xxxx":case"xx":return b(a);default:return b(a,":")}},O:function(r,n,i,o){var a=(o._originalDate||r).getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+v(a,":");default:return"GMT"+b(a,":")}},z:function(r,n,i,o){var a=(o._originalDate||r).getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+v(a,":");default:return"GMT"+b(a,":")}},t:function(r,n,i,o){return f(Math.floor((o._originalDate||r).getTime()/1e3),n.length)},T:function(r,n,i,o){return f((o._originalDate||r).getTime(),n.length)}}
152,_=function(r,n){switch(r){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});default:return n.date({width:"full"})}},w=function(r,n){switch(r){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});default:return n.time({width:"full"})}},S={p:w,P:function(r,n){var i,o=r.match(/(P+)(p+)?/)||[],a=o[1],s=o[2];if(!s)return _(r,n);switch(a){case"P":i=n.dateTime({width:"short"});break;case"PP":i=n.dateTime({width:"medium"});break;case"PPP":i=n.dateTime({width:"long"});break;default:i=n.dateTime({width:"full"})}return i.replace("{{date}}",_(a,n)).replace("{{time}}",w(s,n))}},T=i(24262),E=["D","DD"],k=["YY","YYYY"];function C(r,n,i){if("YYYY"===r)throw RangeError("Use `yyyy` instead of `YYYY` (in `".concat(n,"`) for formatting years to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===r)throw RangeError("Use `yy` instead of `YY` (in `".concat(n,"`) for formatting years to the input `").
152concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===r)throw RangeError("Use `d` instead of `D` (in `".concat(n,"`) for formatting days of the month to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===r)throw RangeError("Use `dd` instead of `DD` (in `".concat(n,"`) for formatting days of the month to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var P=i(86559),O=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,j=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,A=/^'([^]*?)'?$/,M=/''/g,I=/[a-zA-Z]/;function Z(r,n,i){(0,a.Z)(2,arguments);var c,u,h,p,f,m,g,v,y,b,_,w,Z,R,D,L,z,B,F=String(n),N=(0,d.j)(),U=null!==(c=null!==(u=null==i?void 0:i.locale)&&void 0!==u?u:N.locale)&&void 0!==c?c:P.Z,V=l(null!==(h=null!==(p=null!==(f=null!==(m=null==i?void 0:i.firstWeekContainsDate)&&void 0!==m?m:null==i?void 0:null===(g=i.locale)||void 0===g?void 0:null===(v=g.options)||void 0===v?void 0:v.firstWeekContainsDate)&&void 0!==f?f:N.firstWeekContainsDate)&&void 0!==p?p:null===(y=N.locale)||void 0===y?void 0:null===(b=y.options)||void 0===b?void 0:b.firstWeekContainsDate)&&void 0!==h?h:1);if(!(V>=1&&V<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var q=l(null!==(_=null!==(w=null!==(Z=null!==(R=null==i?void 0:i.weekStartsOn)&&void 0!==R?R:null==i?void 0:null===(D=i.locale)||void 0===D?void 0:null===(L=D.options)||void 0===L?void 0:L.weekStartsOn)&&void 0!==Z?Z:N.weekStartsOn)&&void 0!==w?w:null===(z=N.locale)||void 0===z?void 0:null===(B=z.options)||void 0===B?void 0:B.weekStartsOn)&&void 0!==_?_:0);if(!(q>=0&&q<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!U.localize)throw RangeError("locale must contain localize property");if(!U.formatLong)throw RangeError("locale must contain formatLong property");var $=(0,s.Z)(r);if(!function(r){return(0,a.Z)(1,arguments),(!!function(r){return(0,a.Z)(1,arguments),r instanceof Date||"object"===(0,o.Z)(r)&&"[object Date]"===Object.prototype.toString.call(r)}(r)||"number"==typeof r)&&!isNaN(Number((0,s.Z)(r)))}($))throw RangeError("Invalid time value");var G=(0,T.Z)($),W=function(r,n){return(0,a.Z)(2,arguments),function(r,n){(0,a.Z)(2,arguments);var i=(0,s.Z)(r).getTime(),o=l(n);return new Date(i+o)}(r,-l(n))}($,G),H={firstWeekContainsDate:V,weekStartsOn:q,locale:U,_originalDate:$};return F.match(j).map(function(r){var n=r[0];return"p"===n||"P"===n?(0,S[n])(r,U.formatLong):r}).join("").match(O).map(function(o){if("''"===o)return"'";var a,s=o[0];if("'"===s)return(a=o.match(A))?a[1].replace(M,"'"):o;var l=x[s];if(l)return null!=i&&i.useAdditionalWeekYearTokens||-1===k.indexOf(o)||C(o,n,String(r)),null!=i&&i.useAdditionalDayOfYearTokens||-1===E.indexOf(o)||C(o,n,String(r)),l(W,o,U.localize,H);if(s.match(I))throw RangeError("Format string contains an unescaped latin alphabet character `"+s+"`");return o}).join("")}},19013:function(r,n,i){"use strict";i.d(n,{Z:function(){return s}});var o=i(71002),a=i(13882);function s(r){(0,a.Z)(1,arguments);var n=Object.prototype.toString.call(r);return r instanceof Date||"object"===(0,o.Z)(r)&&"[object Date]"===n?new Date(r.getTime()):"number"==typeof r||"[object Number]"===n?new Date(r):(("string"==typeof r||"[object String]"===n)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(Error().stack)),new Date(NaN))}},44020:function(r){"use strict";var n="%[a-f0-9]{2}",i=RegExp("("+n+")|([^%]+?)","gi"),o=RegExp("("+n+")+","gi");r.exports=function(r){if("string"!=typeof r)throw TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof r+"`");try{return r=r.replace(/\+/g," "),decodeURIComponent(r)}catch(n){return function(r){for(var n={"%FE%FF":"��","%FF%FE":"��"},a=o.exec(r);a;){try{n[a[0]]=decodeURIComponent(a[0])}catch(r){var s=function(r){try{return decodeURIComponent(r)}catch(a){for(var n=r.match(i)||[],o=1;o<n.length;o++)n=(r=(function r(n,i){try{return[decodeURIComponent(n.join(""))]}catch(r){}if(1===n.length)return n;i=i||1;var o=n.slice(0,i),a=n.slice(i);return Array.prototype.concat.call([],r(o),r(a))})(n,o).join("")).match(i)||[];return r}}(a[0]);s!==a[0]&&(n[a[0]]=s)}a=o.exec(r)}n["%C2"]="�";for(var l=Object.keys(n),c=0;c<l.length;c++){var u=l[c];r=r.replace(RegExp(u,"g"),n[u])}return r}(r)}}},92806:function(r){"use strict";r.exports=function(r,n){for(var i={},o=Object.keys(r),a=Array.isArray(n),s=0;s<o.length;s++){var l=o[s],c=r[l];(a?-1!==n.indexOf(l):n(l,c,r))&&(i[l]=c)}return i}},56263:function(r,n,i){"use strict";i.d(n,{l0:function(){return H},J9:function(){return q},TA:function(){return V},u6:function(){return M}});var o=function(r){var n;return!!r&&"object"==typeof r&&"[object RegExp]"!==(n=Object.prototype.toString.call(r))&&"[object Date]"!==n&&r.$$typeof!==a},a="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function s(r,n){return!1!==n.clone&&n.isMergeableObject(r)?c(Array.isArray(r)?[]:{},r,n):r}function l(r,n,i){return r.concat(n).map(function(r){return s(r,i)})}function c(r,n,i){(i=i||{}).arrayMerge=i.arrayMerge||l,i.isMergeableObject=i.isMergeableObject||o;var a,u,d=Array.isArray(n);return d!==Array.isArray(r)?s(n,i):d?i.arrayMerge(r,n,i):(u={},(a=i).isMergeableObject(r)&&Object.keys(r).forEach(function(n){u[n]=s(r[n],a)}
152),Object.keys(n).forEach(function(i){a.isMergeableObject(n[i])&&r[i]?u[i]=c(r[i],n[i],a):u[i]=s(n[i],a)}),u)}c.all=function(r,n){if(!Array.isArray(r))throw Error("first argument should be an array");return r.reduce(function(r,i){return c(r,i,n)},{})};var u=c,d=i(37514),h=i(8272),p=function(r){return(0,h.Z)(r,5)},f=i(67294),m=i(69590),g=i.n(m),v=function(r,n){},y=function(r){return(0,h.Z)(r,4)},b=i(74073),x=i(87215),_=i(27771),w=i(72714),S=i(77612),T=i(62281),E=i(50751),k=function(r){return(0,_.Z)(r)?(0,b.Z)(r,T.Z):(0,w.Z)(r)?[r]:(0,x.Z)((0,S.Z)((0,E.Z)(r)))};function C(){return(C=Object.assign||function(r){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])}return r}).apply(this,arguments)}function P(r,n){if(null==r)return{};var i,o,a={},s=Object.keys(r);for(o=0;o<s.length;o++)i=s[o],n.indexOf(i)>=0||(a[i]=r[i]);return a}function O(r){if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}i(8679);var j=(0,f.createContext)(void 0);j.displayName="FormikContext";var A=j.Provider;function M(){var r=(0,f.useContext)(j);return r||v(!1),r}j.Consumer;var I=function(r){return Array.isArray(r)&&0===r.length},Z=function(r){return"function"==typeof r},R=function(r){return null!==r&&"object"==typeof r},D=function(r){return"[object String]"===Object.prototype.toString.call(r)},L=function(r){return 0===f.Children.count(r)},z=function(r){return R(r)&&Z(r.then)};function B(r,n,i,o){void 0===o&&(o=0);for(var a=k(n);r&&o<a.length;)r=r[a[o++]];return o===a.length||r?void 0===r?i:r:i}function F(r,n,i){for(var o=y(r),a=o,s=0,l=k(n);s<l.length-1;s++){var c=l[s],u=B(r,l.slice(0,s+1));if(u&&(R(u)||Array.isArray(u)))a=a[c]=y(u);else{var d=l[s+1];a=a[c]=String(Math.floor(Number(d)))===d&&Number(d)>=0?[]:{}}}return(0===s?r:a)[l[s]]===i?r:(void 0===i?delete a[l[s]]:a[l[s]]=i,0===s&&void 0===i&&delete o[l[s]],o)}var N={},U={};function V(r){var n=r.validateOnChange,i=void 0===n||n,o=r.validateOnBlur,a=void 0===o||o,s=r.validateOnMount,l=void 0!==s&&s,c=r.isInitialValid,h=r.enableReinitialize,m=void 0!==h&&h,v=r.onSubmit,y=C({validateOnChange:i,validateOnBlur:a,validateOnMount:l,onSubmit:v},P(r,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"])),b=(0,f.useRef)(y.initialValues),x=(0,f.useRef)(y.initialErrors||N),_=(0,f.useRef)(y.initialTouched||U),w=(0,f.useRef)(y.initialStatus),S=(0,f.useRef)(!1),T=(0,f.useRef)({});(0,f.useEffect)(function(){return S.current=!0,function(){S.current=!1}},[]);var E=(0,f.useState)(0)[1],k=(0,f.useRef)({values:p(y.initialValues),errors:p(y.initialErrors)||N,touched:p(y.initialTouched)||U,status:p(y.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),O=k.current,j=(0,f.useCallback)(function(r){var n=k.current;
152k.current=function(r,n){switch(n.type){case"SET_VALUES":return C({},r,{values:n.payload});case"SET_TOUCHED":return C({},r,{touched:n.payload});case"SET_ERRORS":if(g()(r.errors,n.payload))return r;return C({},r,{errors:n.payload});case"SET_STATUS":return C({},r,{status:n.payload});case"SET_ISSUBMITTING":return C({},r,{isSubmitting:n.payload});case"SET_ISVALIDATING":return C({},r,{isValidating:n.payload});case"SET_FIELD_VALUE":return C({},r,{values:F(r.values,n.payload.field,n.payload.value)});case"SET_FIELD_TOUCHED":return C({},r,{touched:F(r.touched,n.payload.field,n.payload.value)});case"SET_FIELD_ERROR":return C({},r,{errors:F(r.errors,n.payload.field,n.payload.value)});case"RESET_FORM":return C({},r,n.payload);case"SET_FORMIK_STATE":return n.payload(r);case"SUBMIT_ATTEMPT":return C({},r,{touched:function r(n,i,o,a){void 0===o&&(o=new WeakMap),void 0===a&&(a={});for(var s=0,l=Object.keys(n);s<l.length;s++){var c=l[s],u=n[c];R(u)?o.get(u)||(o.set(u,!0),a[c]=Array.isArray(u)?[]:{},r(u,i,o,a[c])):a[c]=i}return a}(r.values,!0),isSubmitting:!0,submitCount:r.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return C({},r,{isSubmitting:!1});default:return r}}(n,r),n!==k.current&&E(function(r){return r+1})},[]),A=(0,f.useCallback)(function(r,n){return new Promise(function(i,o){var a=y.validate(r,n);null==a?i(N):z(a)?a.then(function(r){i(r||N)},function(r){o(r)}):i(a)})},[y.validate]),M=(0,f.useCallback)(function(r,n){var i,o,a=y.validationSchema,s=Z(a)?a(n):a,l=n&&s.validateAt?s.validateAt(n,r):(void 0===i&&(i=!1),o=function r(n){var i=Array.isArray(n)?[]:{};for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)){var a=String(o);!0===Array.isArray(n[a])?i[a]=n[a].map(function(n){return!0===Array.isArray(n)||(0,d.Z)(n)?r(n):""!==n?n:void 0}):(0,d.Z)(n[a])?i[a]=r(n[a]):i[a]=""!==n[a]?n[a]:void 0}return i}(r),s[i?"validateSync":"validate"](o,{abortEarly:!1,context:o}));return new Promise(function(r,n){l.then(function(){r(N)},function(i){"ValidationError"===i.name?r(function(r){var n={};if(r.inner){if(0===r.inner.length)return F(n,r.path,r.message);for(var i=r.inner,o=Array.isArray(i),a=0,i=o?i:i[Symbol.iterator]();;){if(o){if(a>=i.length)break;s=i[a++]}else{if((a=i.next()).done)break;s=a.value}var s,l=s;B(n,l.path)||(n=F(n,l.path,l.message))}}return n}(i)):n(i)})})},[y.validationSchema]),I=(0,f.useCallback)(function(r,n){return new Promise(function(i){return i(T.current[r].validate(n))})},[]),L=(0,f.useCallback)(function(r){var n=Object.keys(T.current).filter(function(r){return Z(T.current[r].validate)});return Promise.all(n.length>0?n.map(function(n){return I(n,B(r,n))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")]).then(function(r){return r.reduce(function(r,i,o){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===i||i&&(r=F(r,n[o],i)),r},{})})},[I]),V=(0,f.useCallback)(function(r){return Promise.all([L(r),y.validationSchema?M(r):{},y.validate?A(r):{}]).then(function(r){var n=r[0],i=r[1],o=r[2];return u.all([n,i,o],{arrayMerge:$})})},[y.validate,y.validationSchema,L,A,M]),q=W(function(r){return void 0===r&&(r=O.values),j({type:"SET_ISVALIDATING",payload:!0}),V(r).then(function(r){return S.current&&(j({type:"SET_ISVALIDATING",payload:!1}),j({type:"SET_ERRORS",payload:r})),r})});(0,f.useEffect)(function(){l&&!0===S.current&&g()(b.current,y.initialValues)&&q
152(b.current)},[l,q]);var G=(0,f.useCallback)(function(r){var n=r&&r.values?r.values:b.current,i=r&&r.errors?r.errors:x.current?x.current:y.initialErrors||{},o=r&&r.touched?r.touched:_.current?_.current:y.initialTouched||{},a=r&&r.status?r.status:w.current?w.current:y.initialStatus;b.current=n,x.current=i,_.current=o,w.current=a;var s=function(){j({type:"RESET_FORM",payload:{isSubmitting:!!r&&!!r.isSubmitting,errors:i,touched:o,status:a,values:n,isValidating:!!r&&!!r.isValidating,submitCount:r&&r.submitCount&&"number"==typeof r.submitCount?r.submitCount:0}})};if(y.onReset){var l=y.onReset(O.values,eh);z(l)?l.then(s):s()}else s()},[y.initialErrors,y.initialStatus,y.initialTouched,y.onReset]);(0,f.useEffect)(function(){!0===S.current&&!g()(b.current,y.initialValues)&&m&&(b.current=y.initialValues,G(),l&&q(b.current))},[m,y.initialValues,G,l,q]),(0,f.useEffect)(function(){m&&!0===S.current&&!g()(x.current,y.initialErrors)&&(x.current=y.initialErrors||N,j({type:"SET_ERRORS",payload:y.initialErrors||N}))},[m,y.initialErrors]),(0,f.useEffect)(function(){m&&!0===S.current&&!g()(_.current,y.initialTouched)&&(_.current=y.initialTouched||U,j({type:"SET_TOUCHED",payload:y.initialTouched||U}))},[m,y.initialTouched]),(0,f.useEffect)(function(){m&&!0===S.current&&!g()(w.current,y.initialStatus)&&(w.current=y.initialStatus,j({type:"SET_STATUS",payload:y.initialStatus}))},[m,y.initialStatus,y.initialTouched]);var H=W(function(r){if(T.current[r]&&Z(T.current[r].validate)){var n=B(O.values,r),i=T.current[r].validate(n);return z(i)?(j({type:"SET_ISVALIDATING",payload:!0}),i.then(function(r){return r}).then(function(n){j({type:"SET_FIELD_ERROR",payload:{field:r,value:n}}),j({type:"SET_ISVALIDATING",payload:!1})})):(j({type:"SET_FIELD_ERROR",payload:{field:r,value:i}}),Promise.resolve(i))}return y.validationSchema?(j({type:"SET_ISVALIDATING",payload:!0}),M(O.values,r).then(function(r){return r}).then(function(n){j({type:"SET_FIELD_ERROR",payload:{field:r,value:B(n,r)}}),j({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),X=(0,f.useCallback)(function(r,n){var i=n.validate;T.current[r]={validate:i}},[]),Y=(0,f.useCallback)(function(r){delete T.current[r]},[]),K=W(function(r,n){return j({type:"SET_TOUCHED",payload:r}),(void 0===n?a:n)?q(O.values):Promise.resolve()}),J=(0,f.useCallback)(function(r){j({type:"SET_ERRORS",payload:r})},[]),Q=W(function(r,n){var o=Z(r)?r(O.values):r;return j({type:"SET_VALUES",payload:o}),(void 0===n?i:n)?q(o):Promise.resolve()}),ee=(0,f.useCallback)(function(r,n){j({type:"SET_FIELD_ERROR",payload:{field:r,value:n}})},[]),et=W(function(r,n,o){return j({type:"SET_FIELD_VALUE",payload:{field:r,value:n}}),(void 0===o?i:o)?q(F(O.values,r,n)):Promise.resolve()}),er=(0,f.useCallback)(function(r,n){var i,o=n,a=r;if(!D(r)){r.persist&&r.persist();var s=r.target?r.target:r.currentTarget,l=s.type,c=s.name,u=s.id,d=s.value,h=s.checked,p=(s.outerHTML,s.options),f=s.multiple;o=n||c||u,a=/number|range/.test(l)?isNaN(i=parseFloat(d))?"":i:/checkbox/.test(l)?function(r,n,i){if("boolean"==typeof r)return Boolean(n);var o=[],a=!1,s=-1;if(Array.isArray(r))o=r,a=(s=r.indexOf(i))>=0;else if(!i||"true"==i||"false"==i)return Boolean(n);return n&&i&&!a?o.concat(i):a?o.slice(0,s).concat(o.slice(s+1)):o}(B(O.values,o),h,d):p&&f?Array.from(p).filter(function(r){return r.selected}).map(function(r){return r.value}):d}o&&et(o,a)},[et,O.values]),en=W(function(r){if(D(r))return function(n){return er(n,r)};er(r)}),ei=W(function(r,n,i){return void 0===n&&(n=!0),j({type:"SET_FIELD_TOUCHED",payload:{field:r,value:n}}),(void 0===i?a:i)?q(O.values):Promise.resolve()}),eo=(0,f.useCallback)(function(r,n){r.persist&&r.persist();var i=r.target,o=i.name,a=i.id;i.outerHTML,ei(n||o||a,!0)},[ei]),ea=W(function(r){if(D(r))return function(n){return eo(n,r)};eo(r)}),es=(0,f.useCallback)(function(r){Z(r)?j({type:"SET_FORMIK_STATE",payload:r}):j({type:"SET_FORMIK_STATE",payload:function(){return r}})},[]),el=(0,f.useCallback)(function(r){j({type:"SET_STATUS",payload:r})},[]),ec=(0,f.useCallback)(function(r){j({type:"SET_ISSUBMITTING",payload:r})},[]),eu=W(function(){return j({type:"SUBMIT_ATTEMPT"}),q().then(function(r){var n,i=r instanceof Error;if(!i&&0===Object.keys(r).length){try{if(n=ep(),void 0===n)return}catch(r){throw r}return Promise.resolve(n).then(function(r){return S.current&&j({type:"SUBMIT_SUCCESS"}),r}).catch(function(r){if(S.current)throw j({type:"SUBMIT_FAILURE"}),r})}if(S.current&&(j({type:"SUBMIT_FAILURE"}),i))throw r})}),ed=W(function(r){r&&r.preventDefault&&Z(r.preventDefault)&&r.preventDefault(),r&&r.stopPropagation&&Z(r.stopPropagation)&&r.stopPropagation(),eu().catch(function(r){console.warn("Warning: An unhandled error was caught from submitForm(
152)",r)})}),eh={resetForm:G,validateForm:q,validateField:H,setErrors:J,setFieldError:ee,setFieldTouched:ei,setFieldValue:et,setStatus:el,setSubmitting:ec,setTouched:K,setValues:Q,setFormikState:es,submitForm:eu},ep=W(function(){return v(O.values,eh)}),ef=W(function(r){r&&r.preventDefault&&Z(r.preventDefault)&&r.preventDefault(),r&&r.stopPropagation&&Z(r.stopPropagation)&&r.stopPropagation(),G()}),em=(0,f.useCallback)(function(r){return{value:B(O.values,r),error:B(O.errors,r),touched:!!B(O.touched,r),initialValue:B(b.current,r),initialTouched:!!B(_.current,r),initialError:B(x.current,r)}},[O.errors,O.touched,O.values]),eg=(0,f.useCallback)(function(r){return{setValue:function(n,i){return et(r,n,i)},setTouched:function(n,i){return ei(r,n,i)},setError:function(n){return ee(r,n)}}},[et,ei,ee]),ev=(0,f.useCallback)(function(r){var n=R(r),i=n?r.name:r,o=B(O.values,i),a={name:i,value:o,onChange:en,onBlur:ea};if(n){var s=r.type,l=r.value,c=r.as,u=r.multiple;"checkbox"===s?void 0===l?a.checked=!!o:(a.checked=!!(Array.isArray(o)&&~o.indexOf(l)),a.value=l):"radio"===s?(a.checked=o===l,a.value=l):"select"===c&&u&&(a.value=a.value||[],a.multiple=!0)}return a},[ea,en,O.values]),ey=(0,f.useMemo)(function(){return!g()(b.current,O.values)},[b.current,O.values]),eb=(0,f.useMemo)(function(){return void 0!==c?ey?O.errors&&0===Object.keys(O.errors).length:!1!==c&&Z(c)?c(y):c:O.errors&&0===Object.keys(O.errors).length},[c,ey,O.errors,y]);return C({},O,{initialValues:b.current,initialErrors:x.current,initialTouched:_.current,initialStatus:w.
152current,handleBlur:ea,handleChange:en,handleReset:ef,handleSubmit:ed,resetForm:G,setErrors:J,setFormikState:es,setFieldTouched:ei,setFieldValue:et,setFieldError:ee,setStatus:el,setSubmitting:ec,setTouched:K,setValues:Q,submitForm:eu,validateForm:q,validateField:H,isValid:eb,dirty:ey,unregisterField:Y,registerField:X,getFieldProps:ev,getFieldMeta:em,getFieldHelpers:eg,validateOnBlur:a,validateOnChange:i,validateOnMount:l})}function q(r){var n=V(r),i=r.component,o=r.children,a=r.render,s=r.innerRef;return(0,f.useImperativeHandle)(s,function(){return n}),(0,f.createElement)(A,{value:n},i?(0,f.createElement)(i,n):a?a(n):o?Z(o)?o(n):L(o)?null:f.Children.only(o):null)}function $(r,n,i){var o=r.slice();return n.forEach(function(n,a){if(void 0===o[a]){var s=!1!==i.clone&&i.isMergeableObject(n);o[a]=s?u(Array.isArray(n)?[]:{},n,i):n}else i.isMergeableObject(n)?o[a]=u(r[a],n,i):-1===r.indexOf(n)&&o.push(n)}),o}var G="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?f.useLayoutEffect:f.useEffect;function W(r){var n=(0,f.useRef)(r);return G(function(){n.current=r}),(0,f.useCallback)(function(){for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return n.current.apply(void 0,i)},[])}var H=(0,f.forwardRef)(function(r,n){var i=r.action,o=P(r,["action"]),a=M(),s=a.handleReset,l=a.handleSubmit;return(0,f.createElement)("form",C({onSubmit:l,ref:n,onReset:s,action:null!=i?i:"#"},o))});H.displayName="Form";var X=function(r,n,i){var o=Q(r),a=o[n];return o.splice(n,1),o.splice(i,0,a),o},Y=function(r,n,i){var o=Q(r),a=o[n];return o[n]=o[i],o[i]=a,o},K=function(r,n,i){var o=Q(r);return o.splice(n,0,i),o},J=function(r,n,i){var o=Q(r);return o[n]=i,o},Q=function(r){if(!r)return[];if(Array.isArray(r))return[].concat(r);var n=Object.keys(r).map(function(r){return parseInt(r)}).reduce(function(r,n){return n>r?n:r},0);return Array.from(C({},r,{length:n+1}))},ee=function(r,n){var i="function"==typeof r?r:n;return function(r){return Array.isArray(r)||R(r)?i(Q(r)):r}};(function(r){function n(n){var i;return(i=r.call(this,n)||this).updateArrayField=function(r,n,o){var a=i.props,s=a.name;(0,a.formik.setFormikState)(function(i){var a=ee(o,r),l=ee(n,r),c=F(i.values,s,r(B(i.values,s))),u=o?a(B(i.errors,s)):void 0,d=n?l(B(i.touched,s)):void 0;return I(u)&&(u=void 0),I(d)&&(d=void 0),C({},i,{values:c,errors:o?F(i.errors,s,u):i.errors,touched:n?F(i.touched,s,d):i.touched})})},i.push=function(r){return i.updateArrayField(function(n){return[].concat(Q(n),[p(r)])},!1,!1)},i.handlePush=function(r){return function(){return i.push(r)}},i.swap=function(r,n){return i.updateArrayField(function(i){return Y(i,r,n)},!0,!0)},i.handleSwap=function(r,n){return function(){return i.swap(r,n)}},i.move=function(r,n){return i.updateArrayField(function(i){return X(i,r,n)},!0,!0)},i.handleMove=function(r,n){return function(){return i.move(r,n)}},i.insert=function(r,n){return i.updateArrayField(function(i){return K(i,r,n)},function(n){return K(n,r,null)},function(n){return K(n,r,null)})},i.handleInsert=function(r,n){return function(){return i.insert(r,n)}},i.replace=function(r,n){return i.updateArrayField(function(i){return J(i,r,n)},!1,!1)},i.handleReplace=function(r,n){return function(){return i.replace(r,n)}},i.unshift=function(r){var n=-1;return i.updateArrayField(function(i){var o=i?[r].concat(i):[r];return n=o.length,o},function(r){return r?[null].concat(r):[null]},function(r){return r?[null].concat(r):[null]}),n},i.handleUnshift=function(r){return function(){return i.unshift(r)}},i.handleRemove=function(r){return function(){return i.remove(r)}},i.handlePop=function(){return function(){return i.pop()}},i.remove=i.remove.bind(O(i)),i.pop=i.pop.bind(O(i)),i}(i=n).prototype=Object.create(r.prototype),i.prototype.constructor=i,i.__proto__=r;var i,o=n.prototype;return o.componentDidUpdate=function(r){this.props.validateOnChange&&this.props.formik.validateOnChange&&!g()(B(r.formik.values,r.name),B(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},o.remove=function(r){var n;return this.updateArrayField(function(i){var o=i?Q(i):[];return n||(n=o[r]),Z(o.splice)&&o.splice(r,1),Z(o.every)&&o.every(function(r){return void 0===r})?[]:o},!0,!0),n},o.pop=function(){var r;return this.updateArrayField(function(n){var i=n.slice();return r||(r=i&&i.pop&&i.pop()),i},!0,!0),r},o.render=function(){var r={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},n=this.props,i=n.component,o=n.render,a=n.children,s=n.name,l=C({},r,{form:P(n.formik,["validate","validationSchema"]),name:s});return i?(0,f.createElement)(i,l):o?o(l):a?"function"==typeof a?a(l):L(a)?null:f.Children.only(a):null},n})(f.Component).defaultProps={validateOnChange:!0},f.Component,f.Component},50840:function(r,n,i){var o;/*! Hammer.JS - v2.0.7 - 2016-04-22 153 * http://hammerjs.github.io/ 154 * 155 * Copyright (c) 2016 Jorik Tangelder; 156 * Licensed under the MIT license */!function(a,s,l,c){"use strict";var u,d=["","webkit","Moz","MS","ms","o"],h=s.createElement("div"),p=Math.round,f=Math.abs,m=Date.now;function g(r,n,i){return setTimeout(S(r,i),n)}function v(r,n,i){return!!Array.isArray(r)&&(y(r,i[n],i),!0)}function y(r,n,i){var o;if(r){if(r.forEach)r.forEach(n,i);else if(c!==r.length)for(o=0;o<r.length;)n.call(i,r[o],o,r),o++;else for(o in r)r.hasOwnProperty(o)&&n.call(i,r[o],o,r)}}function b(r,n,i){var o="DEPRECATED METHOD: "+n+"\n"+i+" AT \n";return function(){var n=Error("get-stack-trace"),i=n&&n.stack?n.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}
156()@"):"Unknown Stack Trace",s=a.console&&(a.console.warn||a.console.log);return s&&s.call(a.console,o,i),r.apply(this,arguments)}}u="function"!=typeof Object.assign?function(r){if(null==r)throw TypeError("Cannot convert undefined or null to object");for(var n=Object(r),i=1;i<arguments.length;i++){var o=arguments[i];if(null!=o)for(var a in o)o.hasOwnProperty(a)&&(n[a]=o[a])}return n}:Object.assign;var x=b(function(r,n,i){for(var o=Object.keys(n),a=0;a<o.length;)(!i||i&&c===r[o[a]])&&(r[o[a]]=n[o[a]]),a++;return r},"extend","Use `assign`."),_=b(function(r,n){return x(r,n,!0)},"merge","Use `assign`.");function w(r,n,i){var o,a=n.prototype;(o=r.prototype=Object.create(a)).constructor=r,o._super=a,i&&u(o,i)}function S(r,n){return function(){return r.apply(n,arguments)}}function T(r,n){return"function"==typeof r?r.apply(n&&n[0]||c,n):r}function E(r,n,i){y(O(n),function(n){r.addEventListener(n,i,!1)})}function k(r,n,i){y(O(n),function(n){r.removeEventListener(n,i,!1)})}function C(r,n){for(;r;){if(r==n)return!0;r=r.parentNode}return!1}function P(r,n){return r.indexOf(n)>-1}function O(r){return r.trim().split(/\s+/g)}function j(r,n,i){if(r.indexOf&&!i)return r.indexOf(n);for(var o=0;o<r.length;){if(i&&r[o][i]==n||!i&&r[o]===n)return o;o++}return -1}function A(r){return Array.prototype.slice.call(r,0)}function M(r,n,i){for(var o=[],a=[],s=0;s<r.length;
156){var l=n?r[s][n]:r[s];0>j(a,l)&&o.push(r[s]),a[s]=l,s++}return i&&(o=n?o.sort(function(r,i){return r[n]>i[n]}):o.sort()),o}function I(r,n){for(var i,o,a=n[0].toUpperCase()+n.slice(1),s=0;s<d.length;){if((o=(i=d[s])?i+a:n)in r)return o;s++}}var Z=1;function R(r){var n=r.ownerDocument||r;return n.defaultView||n.parentWindow||a}var D="ontouchstart"in a,L=c!==I(a,"PointerEvent"),z=D&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),B="touch",F="mouse",N=["x","y"],U=["clientX","clientY"];function V(r,n){var i=this;this.manager=r,this.callback=n,this.element=r.element,this.target=r.options.inputTarget,this.domHandler=function(n){T(r.options.enable,[r])&&i.handler(n)},this.init()}function q(r,n,i){var o,a,s,l,u,d,h,p,g,v,y,b,x,_,w,S,T,E,k=i.pointers.length,P=i.changedPointers.length,O=1&n&&k-P==0;i.isFirst=!!O,i.isFinal=!!(12&n&&k-P==0),O&&(r.session={}),i.eventType=n,o=i,a=r.session,l=(s=o.pointers).length,a.firstInput||(a.firstInput=$(o)),l>1&&!a.firstMultiple?a.firstMultiple=$(o):1===l&&(a.firstMultiple=!1),u=a.firstInput,h=(d=a.firstMultiple)?d.center:u.center,p=o.center=G(s),o.timeStamp=m(),o.deltaTime=o.timeStamp-u.timeStamp,o.angle=Y(h,p),o.distance=X(h,p),g=a,y=(v=o).center,b=g.offsetDelta||{},x=g.prevDelta||{},_=g.prevInput||{},(1===v.eventType||4===_.eventType)&&(x=g.prevDelta={x:_.deltaX||0,y:_.deltaY||0},b=g.offsetDelta={x:y.x,y:y.y}),v.deltaX=x.x+(y.x-b.x),v.deltaY=x.y+(y.y-b.y),o.offsetDirection=H(o.deltaX,o.deltaY),w=W(o.deltaTime,o.deltaX,o.deltaY),o.overallVelocityX=w.x,o.overallVelocityY=w.y,o.overallVelocity=f(w.x)>f(w.y)?w.x:w.y,o.scale=d?(S=d.pointers,X(s[0],s[1],U)/X(S[0],S[1],U)):1,o.rotation=d?(T=d.pointers,Y(s[1],s[0],U)+Y(T[1],T[0],U)):0,o.maxPointers=a.prevInput?o.pointers.length>a.prevInput.maxPointers?o.pointers.length:a.prevInput.maxPointers:o.pointers.length,function(r,n){var i,o,a,s,l=r.lastInterval||n,u=n.timeStamp-l.timeStamp;if(8!=n.eventType&&(u>25||c===l.velocity)){var d=n.deltaX-l.deltaX,h=n.deltaY-l.deltaY,p=W(u,d,h);o=p.x,a=p.y,i=f(p.x)>f(p.y)?p.x:p.y,s=H(d,h),r.lastInterval=n}else i=l.velocity,o=l.velocityX,a=l.velocityY,s=l.direction;n.velocity=i,n.velocityX=o,n.velocityY=a,n.direction=s}(a,o),E=r.element,C(o.srcEvent.target,E)&&(E=o.srcEvent.target),o.target=E,r.emit("hammer.input",i),r.recognize(i),r.session.prevInput=i}function $(r){for(var n=[],i=0;i<r.pointers.length;)n[i]={clientX:p(r.pointers[i].clientX),clientY:p(r.pointers[i].clientY)},i++;return{timeStamp:m(),pointers:n,center:G(n),deltaX:r.deltaX,deltaY:r.deltaY}}function G(r){var n=r.length;if(1===n)return{x:p(r[0].clientX),y:p(r[0].clientY)};for(var i=0,o=0,a=0;a<n;)i+=r[a].clientX,o+=r[a].clientY,a++;return{x:p(i/n),y:p(o/n)}}function W(r,n,i){return{x:n/r||0,y:i/r||0}}function H(r,n){return r===n?1:f(r)>=f(n)?r<0?2:4:n<0?8:16}function X(r,n,i){i||(i=N);var o=n[i[0]]-r[i[0]],a=n[i[1]]-r[i[1]];return Math.sqrt(o*o+a*a)}function Y(r,n,i){i||(i=N);var o=n[i[0]]-r[i[0]];return 180*Math.atan2(n[i[1]]-r[i[1]],o)/Math.PI}V.prototype={handler:function(){},init:function(){this.evEl&&E(this.element,this.evEl,this.domHandler),this.evTarget&&E(this.target,this.evTarget,this.domHandler),this.evWin&&E(R(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&k(this.element,this.evEl,this.domHandler),this.evTarget&&k(this.target,this.evTarget,this.domHandler),this.evWin&&k(R(this.element),this.evWin,this.domHandler)}};var K={mousedown:1,mousemove:2,mouseup:4};function J(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,V.apply(this,arguments)}w(J,V,{handler:function(r){var n=K[r.type];1&n&&0===r.button&&(this.pressed=!0),2&n&&1!==r.which&&(n=4),this.pressed&&(4&n&&(this.pressed=!1),this.callback(this.manager,n,{pointers:[r],changedPointers:[r],pointerType:F,srcEvent:r}))}});var Q={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},ee={2:B,3:"pen",4:F,5:"kinect"},et="pointerdown",er="pointermove pointerup pointercancel";function en(){this.evEl=et,this.evWin=er,V.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}a.MSPointerEvent&&!a.PointerEvent&&(et="MSPointerDown",er="MSPointerMove MSPointerUp MSPointerCancel"),w(en,V,{handler:function(r){var n=this.store,i=!1,o=Q[r.type.toLowerCase().replace("ms","")],a=ee[r.pointerType]||r.pointerType,s=j(n,r.pointerId,"pointerId");1&o&&(0===r.button||a==B)?s<0&&(n.push(r),s=n.length-1):12&o&&(i=!0),!(s<0)&&(n[s]=r,this.callback(this.manager,o,{pointers:n,changedPointers:[r],pointerType:a,srcEvent:r}),i&&n.splice(s,1))}});var ei={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function eo(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,V.apply(this,arguments)}function ea(r,n){var i=A(r.touches),o=A(r.changedTouches);return 12&n&&(i=M(i.concat(o),"identifier",!0)),[i,o]}
156w(eo,V,{handler:function(r){var n=ei[r.type];if(1===n&&(this.started=!0),this.started){var i=ea.call(this,r,n);12&n&&i[0].length-i[1].length==0&&(this.started=!1),this.callback(this.manager,n,{pointers:i[0],changedPointers:i[1],pointerType:B,srcEvent:r})}}});var es={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function el(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},V.apply(this,arguments)}function ec(r,n){var i=A(r.touches),o=this.targetIds;if(3&n&&1===i.length)return o[i[0].identifier]=!0,[i,i];var a,s,l=A(r.changedTouches),c=[],u=this.target;if(s=i.filter(function(r){return C(r.target,u)}),1===n)for(a=0;a<s.length;)o[s[a].identifier]=!0,a++;for(a=0;a<l.length;)o[l[a].identifier]&&c.push(l[a]),12&n&&delete o[l[a].identifier],a++;if(c.length)return[M(s.concat(c),"identifier",!0),c]}function eu(){V.apply(this,arguments);var r=S(this.handler,this);this.touch=new el(this.manager,r),this.mouse=new J(this.manager,r),this.primaryTouch=null,this.lastTouches=[]}function ed(r,n){1&r?(this.primaryTouch=n.changedPointers[0].identifier,eh.call(this,n)):12&r&&eh.call(this,n)}function eh(r){var n=r.changedPointers[0];if(n.identifier===this.primaryTouch){var i={x:n.clientX,y:n.clientY};this.lastTouches.push(i);var o=this.lastTouches;setTimeout(function(){var r=o.indexOf(i);r>-1&&o.splice(r,1)},2500)}}function ep(r){for(var n=r.srcEvent.clientX,i=r.srcEvent.clientY,o=0;o<this.lastTouches.length;o++){var a=this.lastTouches[o],s=Math.abs(n-a.x),l=Math.abs(i-a.y);if(s<=25&&l<=25)return!0}return!1}w(el,V,{handler:function(r){var n=es[r.type],i=ec.call(this,r,n);i&&this.callback(this.manager,n,{pointers:i[0],changedPointers:i[1],pointerType:B,srcEvent:r})}}),w(eu,V,{handler:function(r,n,i){var o=i.pointerType==B,a=i.pointerType==F;if(!a||!i.sourceCapabilities||!i.sourceCapabilities.firesTouchEvents){if(o)ed.call(this,n,i);else if(a&&ep.call(this,i))return;this.callback(r,n,i)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var ef=I(h.style,"touchAction"),em=c!==ef,eg="compute",ev="auto",ey="manipulation",eb="none",ex="pan-x",e_="pan-y",ew=function(){if(!em)return!1;var r={},n=a.CSS&&a.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(i){r[i]=!n||a.CSS.supports("touch-action",i)}),r}();function eS(r,n){this.manager=r,this.set(n)}function eT(r){var n;this.options=u({},this.defaults,r||{}),this.id=Z++,this.manager=null,this.options.enable=c===(n=this.options.enable)||n,this.state=1,this.simultaneous={},this.requireFail=[]}function eE(r){return 16&r?"cancel":8&r?"end":4&r?"move":2&r?"start":""}function ek(r){return 16==r?"down":8==r?"up":2==r?"left":4==r?"right":""}function eC(r,n){var i=n.manager;return i?i.get(r):r}function eP(){eT.apply(this,arguments)}function eO(){eP.apply(this,arguments),this.pX=null,this.pY=null}function ej(){eP.apply(this,arguments)}function eA(){eT.apply(this,arguments),this._timer=null,this._input=null}function eM(){eP.apply(this,arguments)}function eI(){eP.apply(this,arguments)}function eZ(){eT.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function eR(r,n){var i,o;return(n=n||{}).recognizers=(i=n.recognizers,o=eR.defaults.preset,c===i?o:i),new eD(r,n)}function eD(r,n){var i;this.options=u({},eR.defaults,n||{}),this.options.inputTarget=this.options.inputTarget||r,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=r,this.input=new((i=this.options.inputClass)?i:L?en:z?el:D?eu:J)(this,q),this.touchAction=new eS(this,this.options.touchAction),eL(this,!0),y(this.options.recognizers,function(r){var n=this.add(new r[0](r[1]));r[2]&&n.recognizeWith(r[2]),r[3]&&n.requireFailure(r[3])},this)}function eL(r,n){var i,o=r.element;o.style&&(y(r.options.cssProps,function(a,s){i=I(o.style,s),n?(r.oldCssProps[i]=o.style[i],o.style[i]=a):o.style[i]=r.oldCssProps[i]||""}),n||(r.oldCssProps={}))}eS.prototype={set:function(r){r==eg&&(r=this.compute()),em&&this.manager.element.style&&ew[r]&&(this.manager.element.style[ef]=r),this.actions=r.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var r=[];return y(this.manager.recognizers,function(n){T(n.options.enable,[n])&&(r=r.concat(n.getTouchAction()))}),function(r){if(P(r,eb))return eb;var n=P(r,ex),i=P(r,e_);return n&&i?eb:n||i?n?ex:e_:P(r,ey)?ey:ev}(r.join(" "))},preventDefaults:function(r){var n=r.srcEvent,i=r.offsetDirection;if(this.manager.session.prevented){n.preventDefault();return}var o=this.actions,a=P(o,eb)&&!ew[eb],s=P(o,e_)&&!ew[e_],l=P(o,ex)&&
156!ew[ex];if(a){var c=1===r.pointers.length,u=r.distance<2,d=r.deltaTime<250;if(c&&u&&d)return}if((!l||!s)&&(a||s&&6&i||l&&24&i))return this.preventSrc(n)},preventSrc:function(r){this.manager.session.prevented=!0,r.preventDefault()}},eT.prototype={defaults:{},set:function(r){return u(this.options,r),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(r){if(v(r,"recognizeWith",this))return this;var n=this.simultaneous;return n[(r=eC(r,this)).id]||(n[r.id]=r,r.recognizeWith(this)),this},dropRecognizeWith:function(r){return v(r,"dropRecognizeWith",this)||(r=eC(r,this),delete this.simultaneous[r.id]),this},requireFailure:function(r){if(v(r,"requireFailure",this))return this;var n=this.requireFail;return -1===j(n,r=eC(r,this))&&(n.push(r),r.requireFailure(this)),this},dropRequireFailure:function(r){if(v(r,"dropRequireFailure",this))return this;r=eC(r,this);var n=j(this.requireFail,r);return n>-1&&this.requireFail.splice(n,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(r){return!!this.simultaneous[r.id]},emit:function(r){var n=this,i=this.state;function o(i){n.manager.emit(i,r)}i<8&&o(n.options.event+eE(i)),o(n.options.event),r.additionalEvent&&o(r.additionalEvent),i>=8&&o(n.options.event+eE(i))},tryEmit:function(r){if(this.canEmit())return this.emit(r);this.state=32},canEmit:function(){for(var r=0;r<this.requireFail.length;){if(!(33&this.requireFail[r].state))return!1;r++}return!0},recognize:function(r){var n=u({},r);if(!T(this.options.enable,[this,n])){this.reset(),this.state=32;return}56&this.state&&(this.state=1),this.state=this.process(n),30&this.state&&this.tryEmit(n)},process:function(r){},getTouchAction:function(){},reset:function(){}},w(eP,eT,{defaults:{pointers:1},attrTest:function(r){var n=this.options.pointers;return 0===n||r.pointers.length===n},process:function(r){var n=this.state,i=r.eventType,o=6&n,a=this.attrTest(r);return o&&(8&i||!a)?16|n:o||a?4&i?8|n:2&n?4|n:2:32}}),w(eO,eP,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var r=this.options.direction,n=[];return 6&r&&n.push(e_),24&r&&n.push(ex),n},directionTest:function(r){var n=this.options,i=!0,o=r.distance,a=r.direction,s=r.deltaX,l=r.deltaY;return a&n.direction||(6&n.direction?(a=0===s?1:s<0?2:4,i=s!=this.pX,o=Math.abs(r.deltaX)):(a=0===l?1:l<0?8:16,i=l!=this.pY,o=Math.abs(r.deltaY))),r.direction=a,i&&o>n.threshold&&a&n.direction},attrTest:function(r){return eP.prototype.attrTest.call(this,r)&&(2&this.state||!(2&this.state)&&this.directionTest(r))},emit:function(r){this.pX=r.deltaX,this.pY=r.deltaY;var n=ek(r.direction);n&&(r.additionalEvent=this.options.event+n),this._super.emit.call(this,r)}}),w(ej,eP,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[eb]},attrTest:function(r){return this._super.attrTest.call(this,r)&&(Math.abs(r.scale-1)>this.options.threshold||2&this.state)},emit:function(r){if(1!==r.scale){var n=r.scale<1?"in":"out";r.additionalEvent=this.options.event+n}this._super.emit.call(this,r)}}),w(eA,eT,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[ev]},process:function(r){var n=this.options,i=r.pointers.length===n.pointers,o=r.distance<n.threshold,a=r.deltaTime>n.time;if(this._input=r,o&&i&&(!(12&r.eventType)||a)){if(1&r.eventType)this.reset(),this._timer=g(function(){this.state=8,this.tryEmit()},n.time,this);else if(4&r.eventType)return 8}else this.reset();return 32},reset:function(){clearTimeout(this._timer)},emit:function(r){8===this.state&&(r&&4&r.eventType?this.manager.emit(this.options.event+"up",r):(this._input.timeStamp=m(),this.manager.emit(this.options.event,this._input)))}}),w(eM,eP,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[eb]},attrTest:function(r){return this._super.attrTest.call(this,r)&&(Math.abs(r.rotation)>this.options.threshold||2&this.state)}}),w(eI,eP,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return eO.prototype.getTouchAction.call(this)},attrTest:function(r){var n,i=this.options.direction;return 30&i?n=r.overallVelocity:6&i?n=r.overallVelocityX:24&i&&(n=r.overallVelocityY),this._super.attrTest.call(this,r)&&i&r.offsetDirection&&r.distance>this.options.threshold&&r.maxPointers==this.options.pointers&&f(n)>this.options.velocity&&4&r.eventType},emit:function(r){var n=ek(r.offsetDirection);n&&this.manager.emit(this.options.event+n,r),this.manager.emit(this.options.event,r)}}),w(eZ,eT,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[ey]},process:function(r){var n=this.options,i=r.pointers.length===n.pointers,o=r.distance<n.threshold,a=r.deltaTime<n.time;if(this.reset(),1&r.eventType&&0===this.count)return this.failTimeout();if(o&&a&&i){if(4!=r.eventType)return this.failTimeout();var s=!this.pTime||r.timeStamp-this.pTime<n.interval,l=!this.pCenter||X(this.pCenter,r.center)<n.posThreshold;
156if(this.pTime=r.timeStamp,this.pCenter=r.center,l&&s?this.count+=1:this.count=1,this._input=r,0==this.count%n.taps)return this.hasRequireFailures()?(this._timer=g(function(){this.state=8,this.tryEmit()},n.interval,this),2):8}return 32},failTimeout:function(){return this._timer=g(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),eR.VERSION="2.0.7",eR.defaults={domEvents:!1,touchAction:eg,enable:!0,inputTarget:null,inputClass:null,preset:[[eM,{enable:!1}],[ej,{enable:!1},["rotate"]],[eI,{direction:6}],[eO,{direction:6},["swipe"]],[eZ],[eZ,{event:"doubletap",taps:2},["tap"]],[eA]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},eD.prototype={set:function(r){return u(this.options,r),r.touchAction&&this.touchAction.update(),r.inputTarget&&(this.input.destroy(),this.input.target=r.inputTarget,this.input.init()),this},stop:function(r){this.session.stopped=r?2:1},recognize:function(r){var n,i=this.session;if(!i.stopped){this.touchAction.preventDefaults(r);var o=this.recognizers,a=i.curRecognizer;(!a||a&&8&a.state)&&(a=i.curRecognizer=null);for(var s=0;s<o.length;)n=o[s],2!==i.stopped&&(!a||n==a||n.canRecognizeWith(a))?n.recognize(r):n.reset(),!a&&14&n.state&&(a=i.curRecognizer=n),s++}},get:function(r){if(r instanceof eT)return r;for(var n=this.recognizers,i=0;i<n.length;i++)if(n[i].options.event==r)return n[i];return null},add:function(r){if(v(r,"add",this))return this;var n=this.get(r.options.event);return n&&this.remove(n),this.recognizers.push(r),r.manager=this,this.touchAction.update(),r},remove:function(r){if(v(r,"remove",this))return this;if(r=this.get(r)){var n=this.recognizers,i=j(n,r);-1!==i&&(n.splice(i,1),this.touchAction.update())}return this},on:function(r,n){if(c!==r&&c!==n){var i=this.handlers;return y(O(r),function(r){i[r]=i[r]||[],i[r].push(n)}),this}},off:function(r,n){if(c!==r){var i=this.handlers;return y(O(r),function(r){n?i[r]&&i[r].splice(j(i[r],n),1):delete i[r]}),this}},emit:function(r,n){this.options.domEvents&&((i=s.createEvent("Event")).initEvent(r,!0,!0),i.gesture=n,n.target.dispatchEvent(i));var i,o=this.handlers[r]&&this.handlers[r].slice();if(o&&o.length){n.type=r,n.preventDefault=function(){n.srcEvent.preventDefault()};for(var a=0;a<o.length;)o[a](n),a++}},destroy:function(){this.element&&eL(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},u(eR,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:eD,Input:V,TouchAction:eS,TouchInput:el,MouseInput:J,PointerEventInput:en,TouchMouseInput:eu,SingleTouchInput:eo,Recognizer:eT,AttrRecognizer:eP,Tap:eZ,Pan:eO,Swipe:eI,Pinch:ej,Rotate:eM,Press:eA,on:E,off:k,each:y,merge:_,extend:x,assign:u,inherit:w,bindFn:S,prefixed:I}),(void 0!==a?a:"undefined"!=typeof self?self:{}).Hammer=eR,c!==(o=(function(){return eR}).call(n,i,n,r))&&(r.exports=o)}(window,document,0)},8679:function(r,n,i){"use strict";var o=i(21296),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function u(r){return o.isMemo(r)?l:c[r.$$typeof]||a}c[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[o.Memo]=l;var d=Object.defineProperty,h=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,g=Object.prototype;r.exports=function r(n,i,o){if("string"!=typeof i){if(g){var a=m(i);a&&a!==g&&r(n,a,o)}var l=h(i);p&&(l=l.concat(p(i)));for(var c=u(n),v=u(i),y=0;y<l.length;++y){var b=l[y];
156if(!s[b]&&!(o&&o[b])&&!(v&&v[b])&&!(c&&c[b])){var x=f(i,b);try{d(n,b,x)}catch(r){}}}}return n}},96103:function(r,n){"use strict";/** @license React v16.13.1 157 * react-is.production.min.js 158 * 159 * Copyright (c) Facebook, Inc. and its affiliates. 160 * 161 * This source code is licensed under the MIT license found in the 162 * LICENSE file in the root directory of this source tree. 163 */var i="function"==typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,s=i?Symbol.for("react.fragment"):60107,l=i?Symbol.for("react.strict_mode"):60108,c=i?Symbol.for("react.profiler"):60114,u=i?Symbol.for("react.provider"):60109,d=i?Symbol.for("react.context"):60110,h=i?Symbol.for("react.async_mode"):60111,p=i?Symbol.for("react.concurrent_mode"):60111,f=i?Symbol.for("react.forward_ref"):60112,m=i?Symbol.for("react.suspense"):60113,g=i?Symbol.for("react.suspense_list"):60120,v=i?Symbol.for("react.memo"):60115,y=i?Symbol.for("react.lazy"):60116,b=i?Symbol.for("react.block"):60121,x=i?Symbol.for("react.fundamental"):60117,_=i?Symbol.for("react.responder"):60118,w=i?Symbol.for("react.scope"):60119;function S(r){if("object"==typeof r&&null!==r){var n=r.$$typeof;switch(n){case o:switch(r=r.type){case h:case p:case s:case c:case l:case m:return r;default:switch(r=r&&r.$$typeof){case d:case f:case y:case v:case u:return r;default:return n}}case a:return n}}}function T(r){return S(r)===p}n.AsyncMode=h,n.ConcurrentMode=p,n.ContextConsumer=d,n.ContextProvider=u,n.Element=o,n.ForwardRef=f,n.Fragment=s,n.Lazy=y,n.Memo=v,n.Portal=a,n.Profiler=c,n.StrictMode=l,n.Suspense=m,n.isAsyncMode=function(r){return T(r)||S(r)===h},n.isConcurrentMode=T,n.isContextConsumer=function(r){return S(r)===d},n.isContextProvider=function(r){return S(r)===u},n.isElement=function(r){return"object"==typeof r&&null!==r&&r.$$typeof===o},n.isForwardRef=function(r){return S(r)===f},n.isFragment=function(r){return S(r)===s},n.isLazy=function(r){return S(r)===y},n.isMemo=function(r){return S(r)===v},n.isPortal=function(r){return S(r)===a},n.isProfiler=function(r){return S(r)===c},n.isStrictMode=function(r){return S(r)===l},n.isSuspense=function(r){return S(r)===m},n.isValidElementType=function(r){return"string"==typeof r||"function"==typeof r||r===s||r===p||r===c||r===l||r===m||r===g||"object"==typeof r&&null!==r&&(r.$$typeof===y||r.$$typeof===v||r.$$typeof===u||r.$$typeof===d||r.$$typeof===f||r.$$typeof===x||r.$$typeof===_||r.$$typeof===w||r.$$typeof===b)},n.typeOf=S},21296:function(r,n,i){"use strict";r.exports=i(96103)},69111:function(r,n,i){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(r){for(var n,i=1,o=arguments.length;i<o;i++)for(var a in n=arguments[i])Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a]);return r}).apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0});var a=i(57206),s=i(92642),l=i(59726),c=o(o({},a.namedReferences),{all:a.namedReferences.html5});function u(r,n,i){n.lastIndex=0;var o,a=n.exec(r);if(a){o="";var s=0;do{s!==a.index&&(o+=r.substring(s,a.index));var l=a[0];o+=i(l),s=a.index+l.length}while(a=n.exec(r));s!==r.length&&(o+=r.substring(s))}else o=r;return o}var d={specialChars:/[<>'"&]/g,nonAscii:/[<>'"&\u0080-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,nonAsciiPrintable:/[<>'"&\x01-\x08\x11-\x15\x17-\x1F\x7f-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,nonAsciiPrintableOnly:/[\x01-\x08\x11-\x15\x17-\x1F\x7f-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,extensive:/[\x01-\x0c\x0e-\x1f\x21-\x2c\x2e-\x2f\x3a-\x40\x5b-\x60\x7b-\x7d\x7f-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g},h={mode:"specialChars",level:"all",numeric:"decimal"};n.encode=function(r,n){var i=void 0===n?h:n,o=i.mode,a=i.numeric,s=i.level;if(!r)return"";var p=d[void 0===o?"specialChars":o],f=c[void 0===s?"all":s].characters,m="hexadecimal"===(void 0===a?"decimal":a);return u(r,p,function(r){var n=f[r];if(!n){var i=r.length>1?l.getCodePoint(r,0):r.charCodeAt(0);n=(m?"&#x"+i.toString(16):"&#"+i)+";"}return n})};var p={scope:"body",level:"all"},f=/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);/g,m=/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+)[;=]?/g,g={xml:{strict:f,attribute:m,body:a.bodyRegExps.xml},html4:{strict:f,attribute:m,body:a.bodyRegExps.html4},html5:{strict:f,attribute:m,body:a.bodyRegExps.html5}},v=o(o({},g),{all:g.html5}),y=String.fromCharCode,b=y(65533),x={level:"all"};function _(r,n,i,o){var a=r,c=r[r.length-1];if(i&&"="===c)a=r;else if(o&&";"!==c)a=r;else{var u=n[r];if(u)a=u;else if("&"===r[0]&&"#"===r[1]){var d=r[2],h="x"==d||"X"==d?parseInt(r.substr(3),16):parseInt(r.substr(2));a=h>=1114111?b:h>65535?l.fromCodePoint(h):y(s.numericUnicodeMap[h]||h)}}return a}n.decodeEntity=function(r,n){var i=(void 0===n?x:n).level;return r?_(r,c[void 0===i?"all":i].entities,!1,!1):""},n.decode=function(r,n){var i=void 0===n?p:n,o=i.level,a=void 0===o?"all":o,s=i.scope,l=void 0===s?"xml"===a?"strict":"body":s;if(!r)return"";var d=v[a][l],h=c[a].entities,f="attribute"===l,m="strict"===l;return u(r,d,function(r){return _(r,h,f,m)})}},57206:function(r,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.bodyRegExps={xml:/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g,html4:/∉|&(?:nbsp|iexcl|cent|pound|curren|yen|brvbar|sect|uml|copy|ordf|laquo|not|shy|reg|macr|deg|plusmn|sup2|sup3|acute|micro|para|middot|cedil|sup1|ordm|raquo|frac14|frac12|frac34|iquest|Agrave|Aacute|Acirc|Atilde|Auml|Aring|AElig|Ccedil|Egrave|Eacute|Ecirc|Euml|Igrave|Iacute|Icirc|Iuml|ETH|Ntilde|Ograve|Oacute|Ocirc|Otilde|Ouml|times|Oslash|Ugrave|Uacute|Ucirc|Uuml|Yacute|THORN|szlig|agrave|aacute|acirc|atilde|auml|aring|aelig|ccedil|egrave|eacute|ecirc|euml|igrave|iacute|icirc|iuml|eth|ntilde|ograve|oacute|ocirc|otilde|ouml|divide|oslash|ugrave|uacute|ucirc|uuml|yacute|thorn|yuml|quot|amp|lt|gt|#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g,html5:/·|℗|⋇|⪧|⩺|⋗|⦕|⩼|⪆|⥸|⋗|⋛|⪌|≷|≳|⪦|⩹|⋖|⋋|⋉|⥶|⩻|⦖|◃|⊴|◂|∉|⋹̸|⋵̸|∉|⋷|⋶|∌|∌|⋾|⋽|∥|⊠|⨱|⨰|&(?:AElig|AMP|Aacute|Acirc|Agrave|Aring|Atilde|Auml|COPY|Ccedil|ETH|Eacute|Ecirc|Egrave|Euml|GT|Iacute|Icirc|Igrave|Iuml|LT|Ntilde|Oacute|Ocirc|Ograve|Oslash|Otilde|Ouml|QUOT|REG|THORN|Uacute|Ucirc|Ugrave|Uuml|Yacute|aacute|acirc|acute|aelig|agrave|amp|aring|atilde|auml|brvbar|ccedil|cedil|cent|copy|curren|deg|divide|eacute|ecirc|egrave|eth|euml|frac12|frac14|frac34|gt|iacute|icirc|iexcl|igrave|iquest|iuml|laquo|lt|macr|micro|middot|nbsp|not|ntilde|oacute|ocirc|ograve|ordf|ordm|oslash|otilde|ouml|para|plusmn|pound|quot|raquo|reg|sect|shy|sup1|sup2|sup3|szlig|thorn|times|uacute|ucirc|ugrave|uml|uuml|yacute|yen|yuml|#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g},n.namedReferences={xml:{entities:{"<":"<",">":">",""":'"',"'":"'","&":"&"},characters:{"<":"<",">":">",'"':""","'":"'","&":"&"}},html4:{entities:{"'":"'"," ":"\xa0"," ":"\xa0","¡":"\xa1","¡":"\xa1","¢":"\xa2","¢":"\xa2","£":"\xa3","£":"\xa3","¤":"\xa4","¤":"\xa4","¥":"\xa5","¥":"\xa5","¦":"\xa6","¦":"\xa6","§":"\xa7","§":"\xa7","¨":"\xa8","¨":"\xa8","©":"\xa9","©":"\xa9","ª":"\xaa","ª":"\xaa","«":"\xab","«":"\xab","¬":"\xac","¬":"\xac","­":"\xad","­":"\xad","®":"\xae","®":"\xae","¯":"\xaf","¯":"\xaf","°":"\xb0","°":"\xb0","±":"\xb1","±":"\xb1","²":"\xb2","²":"\xb2","³":"\xb3","³":"\xb3","´":"\xb4","´":"\xb4","µ":"\xb5","µ":"\xb5","¶":"\xb6","¶":"\xb6","·":"\xb7","·":"\xb7","¸":"\xb8","¸":"\xb8","¹":"\xb9","¹":"\xb9","º":"\xba","º":"\xba","»":"\xbb","»":"\xbb","¼":"\xbc","¼":"\xbc","½":"\xbd","½":"\xbd","¾":"\xbe","¾":"\xbe","¿":"\xbf","¿":"\xbf","À":"\xc0","À":"\xc0","Á":"\xc1","Á":"\xc1","Â":"\xc2","Â":"\xc2","Ã":"\xc3","Ã":"\xc3","Ä":"\xc4","Ä":"\xc4","Å":"\xc5","Å":"\xc5","Æ":"\xc6","Æ":"\xc6","Ç":"\xc7","Ç":"\xc7","È":"\xc8","È":"\xc8","É":"\xc9","É":"\xc9","Ê":"\xca","Ê":"\xca","Ë":"\xcb","Ë":"\xcb","Ì":"\xcc","Ì":"\xcc","Í":"\xcd","Í":"\xcd","Î":"\xce","Î":"\xce","Ï":"\xcf","Ï":"\xcf","Ð":"\xd0","Ð":"\xd0","Ñ":"\xd1","Ñ":"\xd1","Ò":"\xd2","Ò":"\xd2","Ó":"\xd3","Ó":"\xd3","Ô":"\xd4","Ô":"\xd4","Õ":"\xd5","Õ":"\xd5","Ö":"\xd6","Ö":"\xd6","×":"\xd7","×":"\xd7","Ø":"\xd8","Ø":"\xd8","Ù":"\xd9","Ù":"\xd9","Ú":"\xda","Ú":"\xda","Û":"\xdb","Û":"\xdb","Ü":"\xdc","Ü":"\xdc","Ý":"\xdd","Ý":"\xdd","Þ":"\xde","Þ":"\xde","ß":"\xdf","ß":"\xdf","à":"\xe0","à":"\xe0","á":"\xe1","á":"\xe1","â":"\xe2","â":"\xe2","ã":"\xe3","ã":"\xe3","ä":"\xe4","ä":"\xe4","å":"\xe5","å":"\xe5","æ":"\xe6","æ":"\xe6","ç":"\xe7","ç":"\xe7","è":"\xe8","è":"\xe8","é":"\xe9","é":"\xe9","ê":"\xea","ê":"\xea","ë":"\xeb","ë":"\xeb","ì":"\xec","ì":"\xec","í":"\xed","í":"\xed","î":"\xee","î":"\xee","ï":"\xef","ï":"\xef","ð":"\xf0","ð":"\xf0","ñ":"\xf1","ñ":"\xf1","ò":"\xf2","ò":"\xf2","ó":"\xf3","ó":"\xf3","ô":"\xf4","ô":"\xf4","õ":"\xf5","õ":"\xf5","ö":"\xf6","ö":"\xf6","÷":"\xf7","÷":"\xf7","ø":"\xf8","ø":"\xf8","ù":"\xf9","ù":"\xf9","ú":"\xfa","ú":"\xfa","û":"\xfb","û":"\xfb","ü":"\xfc","ü":"\xfc","ý":"\xfd","ý":"\xfd","þ":"\xfe","þ":"\xfe","ÿ":"\xff","ÿ":"\xff",""":'"',""":'"',"&":"&","&":"&","<":"<","<":"<",">":">",">":">","Œ":"Å","œ":"Å","Š":"Å ","š":"Å¡","Ÿ":"Ÿ","ˆ":"Ë","˜":"Ë"," ":"â"," ":"â"," ":"â","‌":"â","‍":"â","‎":"â","‏":"â","–":"â","—":"â","‘":"â","’":"â","‚":"â","“":"â","”":"â","„":"â","†":"â ","‡":"â¡","‰":"â°","‹":"â¹","›":"âº","€":"â¬","ƒ":"Æ","Α":"Î","Β":"Î","Γ":"Î","Δ":"Î","Ε":"Î","Ζ
163":"Î","Η":"Î","Θ":"Î","Ι":"Î","Κ":"Î","Λ":"Î","Μ":"Î","Ν":"Î","Ξ":"Î","Ο":"Î","Π":"Î ","Ρ":"Ρ","Σ":"Σ","Τ":"Τ","Υ":"Î¥","Φ":"Φ","Χ":"Χ","Ψ":"Ψ","Ω":"Ω","α":"α","β":"β","γ":"γ","δ":"δ","ε":"ε","ζ":"ζ","η":"η","θ":"θ","ι":"ι","κ":"κ","λ":"λ","μ":"μ","ν":"ν","ξ":"ξ","ο":"ο","π":"Ï","ρ":"Ï","ς":"Ï","σ":"Ï","τ":"Ï","υ":"Ï
","φ":"Ï","χ":"Ï","ψ":"Ï","ω":"Ï","ϑ":"Ï","ϒ":"Ï","ϖ":"Ï","•":"â¢","…":"â¦","′":"â²","″":"â³","‾":"â¾","⁄":"â","℘":"â","ℑ":"â","ℜ":"â","™":"â¢","ℵ":"âµ","←":"â","↑":"â","→":"â","↓":"â","↔":"â","↵":"âµ","⇐":"â","⇑":"â","⇒":"â","⇓":"â","⇔":"â","∀":"â","∂":"â","∃":"â","∅":"â
","∇":"â","∈":"â","∉":"â","∋":"â","∏":"â","∑":"â","−":"â","∗":"â","√":"â","∝":"â","∞":"â","∠":"â ","∧":"â§","∨":"â¨","∩":"â©","∪":"âª","∫":"â«","∴":"â´","∼":"â¼","≅":"â
","≈":"â","≠":"â ","≡":"â¡","≤":"â¤","≥":"â¥","⊂":"â","⊃":"â","⊄":"â","⊆":"â","⊇":"â","⊕":"â","⊗":"â","⊥":"â¥","⋅":"â
","⌈":"â","⌉":"â","⌊":"â","⌋":"â","⟨":"â©","⟩":"âª","◊":"â","♠":"â ","♣":"â£","♥":"â¥","♦":"â¦"},characters:{"'":"'","\xa0":" ","\xa1":"¡","\xa2":"¢","\xa3":"£","\xa4":"¤","\xa5":"¥","\xa6":"¦","\xa7":"§","\xa8":"¨","\xa9":"©",ª:"ª","\xab":"«","\xac":"¬","\xad":"­","\xae":"®","\xaf":"¯","\xb0":"°","\xb1":"±","\xb2":"²","\xb3":"³","\xb4":"´",µ:"µ","\xb6":"¶","\xb7":"·","\xb8":"¸","\xb9":"¹",º:"º","\xbb":"»","\xbc":"¼","\xbd":"½","\xbe":"¾","\xbf":"¿",Ã:"À",Ã:"Á",Ã:"Â",Ã:"Ã",Ã:"Ä",Ã
:"Å",Ã:"Æ",Ã:"Ç",Ã:"È",Ã:"É",Ã:"Ê",Ã:"Ë",Ã:"Ì",Ã:"Í",Ã:"Î",Ã:"Ï",Ã:"Ð",Ã:"Ñ",Ã:"Ò",Ã:"Ó",Ã:"Ô",Ã:"Õ",Ã:"Ö","\xd7":"×",Ã:"Ø",Ã:"Ù",Ã:"Ú",Ã:"Û",Ã:"Ü",Ã:"Ý",Ã:"Þ",Ã:"ß",à :"à",á:"á",â:"â",ã:"ã",ä:"ä",Ã¥:"å",æ:"æ",ç:"ç",è:"è",é:"é",ê:"ê",ë:"ë",ì:"ì",Ã:"í",î:"î",ï:"ï",ð:"ð",ñ:"ñ",ò:"ò",ó:"ó",ô:"ô",õ:"õ",ö:"ö","\xf7":"÷",ø:"ø",ù:"ù",ú:"ú",û:"û",ü:"ü",ý:"ý",þ:"þ",ÿ:"ÿ",'"':""","&":"&","<":"<",">":">",Å:"Œ",Å:"œ",Å :"Š",Å¡:"š",Ÿ:"Ÿ",Ë:"ˆ","Ë":"˜","â":" ","â":" ","â":" ","â":"‌","â":"‍","â":"‎","â":"‏","â":"–","â":"—","â":"‘","â":"’","â":"‚","â":"“","â":"”","â":"„","â ":"†","â¡":"‡","â°":"‰","â¹":"‹","âº":"›","â¬":"€",Æ:"ƒ",Î:"Α",Î:"Β",Î:"Γ",Î:"Δ",Î:"Ε",Î:"Ζ",Î:"Η",Î:"Θ",Î:"Ι",Î:"Κ",Î:"Λ",Î:"Μ",Î:"Ν",Î:"Ξ",Î:"Ο",Î :"Π",Ρ:"Ρ",Σ:"Σ",Τ:"Τ",Î¥:"Υ",Φ:"Φ",Χ:"Χ",Ψ:"Ψ",Ω:"Ω",α:"α",β:"β",γ:"γ",δ:"δ",ε:"ε",ζ:"ζ",η:"η",θ:"θ",ι:"ι",κ:"κ",λ:"λ",μ:"μ",ν:"ν",ξ:"ξ",ο:"ο",Ï:"π",Ï:"ρ",Ï:"ς",Ï:"σ",Ï:"τ",Ï
:"υ",Ï:"φ",Ï:"χ",Ï:"ψ",Ï:"ω",Ï:"ϑ",Ï:"ϒ",Ï:"ϖ","â¢":"•","â¦":"…","â²":"′","â³":"″","â¾":"‾","â":"⁄",â:"℘",â:"ℑ",â:"ℜ","â¢":"™",âµ:"ℵ","â":"←","â":"↑","â":"→","â":"↓","â":"↔","âµ":"↵","â":"⇐","â":"⇑","â":"⇒","â":"⇓","â":"⇔","â":"∀","â":"∂","â":"∃","â
":"∅","â":"∇","â":"∈","â":"∉","â":"∋","â":"∏","â":"∑","â":"−","â":"∗","â":"√","â":"∝","â":"∞","â ":"∠","â§":"∧","â¨":"∨","â©":"∩","âª":"∪","â«":"∫","â´":"∴","â¼":"∼","â
":"≅","â":"≈","â ":"≠","â¡":"≡","â¤":"≤","â¥":"≥","â":"⊂","â":"⊃","â":"⊄","â":"⊆","â":"⊇","â":"⊕","â":"⊗","â¥":"⊥","â
":"⋅","â":"⌈","â":"⌉","â":"⌊","â":"⌋","â©":"⟨","âª":"⟩","â":"◊","â ":"♠","â£":"♣","â¥":"♥","â¦":"♦"}},html5:{entities:{"Æ":"\xc6","Æ":"\xc6","&":"&","&":"&","Á":"\xc1","Á":"\xc1","Ă":"Ä","Â":"\xc2","Â":"\xc2","А":"Ð","𝔄":"\uD835\uDD04","À":"\xc0","À":"\xc0","Α":"Î","Ā":"Ä","⩓":"â©","Ą":"Ä","𝔸":"\uD835\uDD38","⁡":"â¡","Å":"\xc5","Å":"\xc5","𝒜":"\uD835\uDC9C","≔":"â","Ã":"\xc3","Ã":"\xc3","Ä":"\xc4","Ä":"\xc4","∖":"â","⫧":"â«§","⌆":"â","Б":"Ð","∵":"âµ","ℬ":"â¬","Β":"Î","𝔅":"\uD835\uDD05","𝔹":"\uD835\uDD39","˘
163":"Ë","ℬ":"â¬","≎":"â","Ч":"Ч","©":"\xa9","©":"\xa9","Ć":"Ä","⋒":"â","ⅅ":"â
","ℭ":"â","Č":"Ä","Ç":"\xc7","Ç":"\xc7","Ĉ":"Ä","∰":"â°","Ċ":"Ä","¸":"\xb8","·":"\xb7","ℭ":"â","Χ":"Χ","⊙":"â","⊖":"â","⊕":"â","⊗":"â","∲":"â²","”":"â","’":"â","∷":"â·","⩴":"â©´","≡":"â¡","∯":"â¯","∮":"â®","ℂ":"â","∐":"â","∳":"â³","⨯":"⨯","𝒞":"\uD835\uDC9E","⋓":"â","≍":"â","ⅅ":"â
","⤑":"â¤","Ђ":"Ð","Ѕ":"Ð
","Џ":"Ð","‡":"â¡","↡":"â¡","⫤":"⫤","Ď":"Ä","Д":"Ð","∇":"â","Δ":"Î","𝔇":"\uD835\uDD07","´":"\xb4","˙":"Ë","˝":"Ë","`":"`","˜":"Ë","⋄":"â","ⅆ":"â
","𝔻":"\uD835\uDD3B","¨":"\xa8","⃜":"â","≐":"â","∯":"â¯","¨":"\xa8","⇓":"â","⇐":"â","⇔":"â","⫤":"⫤","⟸":"â¸","⟺":"âº","⟹":"â¹","⇒":"â","⊨":"â¨","⇑":"â","⇕":"â","∥":"â¥","↓":"â","⤓":"â¤","⇵":"âµ","̑":"Ì","⥐":"â¥","⥞":"â¥","↽":"â½","⥖":"â¥","⥟":"â¥","⇁":"â","⥗":"â¥","⊤":"â¤","↧":"â§","⇓":"â","𝒟":"\uD835\uDC9F","Đ":"Ä","Ŋ":"Å","Ð":"\xd0","Ð":"\xd0","É":"\xc9","É":"\xc9","Ě":"Ä","Ê":"\xca","Ê":"\xca","Э":"Ð","Ė":"Ä","𝔈":"\uD835\uDD08","È":"\xc8","È":"\xc8","∈":"â","Ē":"Ä","◻":"â»","▫":"â«","Ę":"Ä","𝔼":"\uD835\uDD3C","Ε":"Î","⩵":"⩵","≂":"â","⇌":"â","ℰ":"â°","⩳":"⩳","Η":"Î","Ë":"\xcb","Ë":"\xcb","∃":"â","ⅇ":"â
","Ф":"Ф","𝔉":"\uD835\uDD09","◼":"â¼","▪":"âª","𝔽":"\uD835\uDD3D","∀":"â","ℱ":"â±","ℱ":"â±","Ѓ":"Ð",">":">",">":">","Γ":"Î","Ϝ":"Ï","Ğ":"Ä","Ģ":"Ä¢","Ĝ":"Ä","Г":"Ð","Ġ":"Ä ","𝔊":"\uD835\uDD0A","⋙":"â","𝔾":"\uD835\uDD3E","≥":"â¥","⋛":"â","≧":"â§","⪢":"⪢","≷":"â·","⩾":"⩾","≳":"â³","𝒢":"\uD835\uDCA2","≫":"â«","Ъ":"Ъ","ˇ":"Ë","^":"^","Ĥ":"Ĥ","ℌ":"â","ℋ":"â","ℍ":"â","─":"â","ℋ":"â","Ħ":"Ħ","≎":"â","≏":"â","Е":"Ð","IJ":"IJ","Ё":"Ð","Í":"\xcd","Í":"\xcd","Î":"\xce","Î":"\xce","И":"Ð","İ":"İ","ℑ":"â","Ì":"\xcc","Ì":"\xcc","ℑ":"â","Ī":"Ī","ⅈ":"â
","⇒":"â","∬":"â¬","∫":"â«","⋂":"â","⁣":"â£","⁢":"â¢","Į":"Ä®","𝕀":"\uD835\uDD40","Ι":"Î","ℐ":"â","Ĩ":"Ĩ","І":"Ð","Ï":"\xcf","Ï":"\xcf","Ĵ":"Ä´","Й":"Ð","𝔍":"\uD835\uDD0D","𝕁":"\uD835\uDD41","𝒥":"\uD835\uDCA5","Ј":"Ð","Є":"Ð","Х":"Ð¥","Ќ":"Ð","Κ":"Î","Ķ":"Ķ","К":"Ð","𝔎":"\uD835\uDD0E","𝕂":"\uD835\uDD42","𝒦":"\uD835\uDCA6","Љ":"Ð","<":"<","<":"<","Ĺ":"Ĺ","Λ":"Î","⟪":"âª","ℒ":"â","↞":"â","Ľ":"Ľ","Ļ":"Ä»","Л":"Ð","⟨":"â¨","←
163":"â","⇤":"â¤","⇆":"â","⌈":"â","⟦":"â¦","⥡":"⥡","⇃":"â","⥙":"â¥","⌊":"â","↔":"â","⥎":"â¥","⊣":"â£","↤":"â¤","⥚":"â¥","⊲":"â²","⧏":"â§","⊴":"â´","⥑":"â¥","⥠":"⥠","↿":"â¿","⥘":"â¥","↼":"â¼","⥒":"â¥","⇐":"â","⇔":"â","⋚":"â","≦":"â¦","≶":"â¶","⪡":"⪡","⩽":"⩽","≲":"â²","𝔏":"\uD835\uDD0F","⋘":"â","⇚":"â","Ŀ":"Ä¿","⟵":"âµ","⟷":"â·","⟶":"â¶","⟸":"â¸","⟺":"âº","⟹":"â¹","𝕃":"\uD835\uDD43","↙":"â","↘":"â","ℒ":"â","↰":"â°","Ł":"Å","≪":"âª","⤅":"â¤
","М":"Ð"," ":"â","ℳ":"â³","𝔐":"\uD835\uDD10","∓":"â","𝕄":"\uD835\uDD44","ℳ":"â³","Μ":"Î","Њ":"Ð","Ń":"Å","Ň":"Å","Ņ":"Å
","Н":"Ð","​":"â","​":"â","​":"â","​":"â","≫":"â«","≪":"âª","
":"\n","𝔑":"\uD835\uDD11","⁠":"â "," ":"\xa0","ℕ":"â","⫬":"⫬","≢":"â¢","≭":"â","∦":"â¦","∉":"â","≠":"â ","≂̸":"â̸","∄":"â","≯":"â¯","≱":"â±","≧̸":"â§Ì¸","≫̸":"â«Ì¸","≹":"â¹","⩾̸":"⩾̸","≵":"âµ","≎̸":"â̸","≏̸":"â̸","⋪":"âª","⧏̸":"â§Ì¸","⋬":"â¬","≮":"â®","≰":"â°","≸":"â¸","≪̸":"âªÌ¸","⩽̸":"⩽̸","≴":"â´","⪢̸":"⪢̸","⪡̸":"⪡̸","⊀":"â","⪯̸":"⪯̸","⋠":"â ","∌":"â","⋫":"â«","⧐̸":"â§Ì¸","⋭":"â","⊏̸":"â̸","⋢":"â¢","⊐̸":"â̸","⋣":"â£","⊂⃒":"ââ","⊈":"â","⊁":"â","⪰̸":"⪰̸","⋡":"â¡","≿̸":"â¿Ì¸","⊃⃒":"ââ","⊉":"â","≁":"â","≄":"â","≇":"â","≉":"â","∤":"â¤","𝒩":"\uD835\uDCA9","Ñ":"\xd1","Ñ":"\xd1","Ν":"Î","Œ":"Å","Ó":"\xd3","Ó":"\xd3","Ô":"\xd4","Ô":"\xd4","О":"Ð","Ő":"Å","𝔒":"\uD835\uDD12","Ò":"\xd2","Ò":"\xd2","Ō":"Å","Ω":"Ω","Ο":"Î","𝕆":"\uD835\uDD46","“":"â","‘":"â","⩔":"â©","𝒪":"\uD835\uDCAA","Ø":"\xd8","Ø":"\xd8","Õ":"\xd5","Õ":"\xd5","⨷":"⨷","Ö":"\xd6","Ö":"\xd6","‾":"â¾","⏞":"â","⎴":"â´","⏜":"â","∂":"â","П":"Ð","𝔓":"\uD835\uDD13","Φ":"Φ","Π":"Î ","±":"\xb1","ℌ":"â","ℙ":"â","⪻":"⪻","≺":"âº","⪯":"⪯","≼":"â¼","≾":"â¾","″":"â³","∏":"â","∷":"â·","∝":"â","𝒫":"\uD835\uDCAB","Ψ":"Ψ",""":'"',""":'"',"𝔔":"\uD835\uDD14","ℚ":"â","𝒬":"\uD835\uDCAC","⤐":"â¤","®":"\xae","®":"\xae","Ŕ":"Å","⟫":"â«","↠":"â ","⤖":"â¤","Ř":"Å","Ŗ":"Å","Р":"Ð ","ℜ":"â","∋":"â","⇋":"â","⥯":"⥯","ℜ":"â","Ρ":"Ρ","⟩":"â©","→":"â","⇥":"â¥","⇄
163":"â","⌉":"â","⟧":"â§","⥝":"â¥","⇂":"â","⥕":"â¥","⌋":"â","⊢":"â¢","↦":"â¦","⥛":"â¥","⊳":"â³","⧐":"â§","⊵":"âµ","⥏":"â¥","⥜":"â¥","↾":"â¾","⥔":"â¥","⇀":"â","⥓":"â¥","⇒":"â","ℝ":"â","⥰":"⥰","⇛":"â","ℛ":"â","↱":"â±","⧴":"â§´","Щ":"Щ","Ш":"Ш","Ь":"Ь","Ś":"Å","⪼":"⪼","Š":"Å ","Ş":"Å","Ŝ":"Å","С":"С","𝔖":"\uD835\uDD16","↓":"â","←":"â","→":"â","↑":"â","Σ":"Σ","∘":"â","𝕊":"\uD835\uDD4A","√":"â","□":"â¡","⊓":"â","⊏":"â","⊑":"â","⊐":"â","⊒":"â","⊔":"â","𝒮":"\uD835\uDCAE","⋆":"â","⋐":"â","⋐":"â","⊆":"â","≻":"â»","⪰":"⪰","≽":"â½","≿":"â¿","∋":"â","∑":"â","⋑":"â","⊃":"â","⊇":"â","⋑":"â","Þ":"\xde","Þ":"\xde","™":"â¢","Ћ":"Ð","Ц":"Ц","	":" ","Τ":"Τ","Ť":"Ť","Ţ":"Å¢","Т":"Т","𝔗":"\uD835\uDD17","∴":"â´","Θ":"Î","  ":"ââ"," ":"â","∼":"â¼","≃":"â","≅":"â
","≈":"â","𝕋":"\uD835\uDD4B","⃛":"â","𝒯":"\uD835\uDCAF","Ŧ":"Ŧ","Ú":"\xda","Ú":"\xda","↟":"â","⥉":"â¥","Ў":"Ð","Ŭ":"Ŭ","Û":"\xdb","Û":"\xdb","У":"У","Ű":"Ű","𝔘":"\uD835\uDD18","Ù":"\xd9","Ù":"\xd9","Ū":"Ū","_":"_","⏟":"â","⎵":"âµ","⏝":"â","⋃":"â","⊎":"â","Ų":"Ų","𝕌":"\uD835\uDD4C","↑":"â","⤒":"â¤","⇅":"â
","↕":"â","⥮":"⥮","⊥":"â¥","↥":"â¥","⇑":"â","⇕":"â","↖":"â","↗":"â","ϒ":"Ï","Υ":"Î¥","Ů":"Å®","𝒰":"\uD835\uDCB0","Ũ":"Ũ","Ü":"\xdc","Ü":"\xdc","⊫":"â«","⫫":"â««","В":"Ð","⊩":"â©","⫦":"⫦","⋁":"â","‖":"â","‖":"â","∣":"â£","|":"|","❘":"â","≀":"â"," ":"â","𝔙":"\uD835\uDD19","𝕍":"\uD835\uDD4D","𝒱":"\uD835\uDCB1","⊪":"âª","Ŵ":"Å´","⋀":"â","𝔚":"\uD835\uDD1A","𝕎":"\uD835\uDD4E","𝒲":"\uD835\uDCB2","𝔛":"\uD835\uDD1B","Ξ":"Î","𝕏":"\uD835\uDD4F","𝒳":"\uD835\uDCB3","Я":"Я","Ї":"Ð","Ю":"Ю","Ý":"\xdd","Ý":"\xdd","Ŷ":"Ŷ","Ы":"Ы","𝔜":"\uD835\uDD1C","𝕐":"\uD835\uDD50","𝒴":"\uD835\uDCB4","Ÿ":"Ÿ","Ж":"Ð","Ź":"Ź","Ž":"Ž","З":"Ð","Ż":"Å»","​":"â","Ζ":"Î","ℨ":"â¨","ℤ":"â¤","𝒵":"\uD835\uDCB5","á":"\xe1","á":"\xe1","ă":"Ä","∾":"â¾","∾̳":"â¾Ì³","∿":"â¿","â":"\xe2","â":"\xe2","´":"\xb4","´":"\xb4","а":"а","æ":"\xe6","æ":"\xe6","⁡":"â¡","𝔞":"\uD835\uDD1E","à":"\xe0","à":"\xe0","ℵ":"âµ","ℵ":"âµ","α":"α","ā":"Ä","⨿":"⨿","&":"&","&":"&","∧":"â§","⩕":"â©","⩜":"â©","⩘":"â©","⩚":"â©","∠":"â ","⦤":"⦤","∠":"â ","∡":"â¡","⦨":"⦨","⦩":"⦩","⦪":"⦪","⦫":"⦫","⦬":"⦬","⦭":"â¦","⦮":"⦮","⦯":"⦯","∟":"â","⊾":"â¾","⦝":"â¦","∢":"â¢","Å":"\xc5","⍼":"â¼","ą":"Ä
","𝕒":"\uD835\uDD52","≈":"â","⩰":"â©°","⩯":"⩯","≊":"â","≋":"â","'":"'","≈":"â","≊":"â","å":"\xe5","å":"\xe5","𝒶":"\uD835\uDCB6","*":"*","≈":"â","≍":"â","ã":"\xe3","ã":"\xe3","ä":"\xe4","ä":"\xe4","∳":"â³","⨑":"â¨","⫭":"â«","≌":"â","϶":"϶","‵":"âµ","∽":"â½","⋍":"â","⊽":"â½","⌅":"â
","⌅":"â
","⎵":"âµ","⎶":"â¶","≌":"â","б":"б","„":"â","∵":"âµ","∵":"âµ","⦰":"⦰","϶":"϶","ℬ":"â¬","β":"β","ℶ":"â¶","≬":"â¬","𝔟":"\uD835\uDD1F","⋂":"â","◯":"â¯","⋃":"â","⨀":"â¨","⨁":"â¨","⨂":"â¨","⨆":"â¨","★":"â
","▽":"â½","△":"â³","⨄":"â¨","⋁":"â","⋀":"â","⤍":"â¤","⧫":"â§«","▪":"âª","▴":"â´","▾":"â¾","◂":"â","▸":"â¸","␣":"â£","▒":"â","░":"â","▓":"â","█":"â","=⃥":"=â¥","≡⃥":"â¡â¥","⌐":"â","𝕓":"\uD835\uDD53","⊥":"â¥","⊥":"â¥","⋈":"â","╗":"â","╔":"â","╖":"â","╓":"â","═":"â","╦":"â¦","╩":"â©","╤":"â¤","╧":"â§","╝":"â","╚":"â","╜":"â","╙":"â","║":"â","╬":"â¬","╣":"â£","╠":"â ","╫":"â«","╢":"â¢","╟":"â","⧉":"â§","╕":"â","╒":"â","┐":"â","┌":"â","─":"â","╥":"â¥","╨":"â¨","┬":"â¬","┴":"â´","⊟":"â","⊞":"â","⊠":"â ","╛":"â","╘":"â","┘":"â","└":"â","│":"â","╪":"âª","╡":"â¡","╞":"â","┼":"â¼","┤":"â¤","├":"â","‵":"âµ","˘
163":"Ë","¦":"\xa6","¦":"\xa6","𝒷":"\uD835\uDCB7","⁏":"â","∽":"â½","⋍":"â","\":"\\","⧅":"â§
","⟈":"â","•":"â¢","•":"â¢","≎":"â","⪮":"⪮","≏":"â","≏":"â","ć":"Ä","∩":"â©","⩄":"â©","⩉":"â©","⩋":"â©","⩇":"â©","⩀":"â©","∩︀":"â©ï¸","⁁":"â","ˇ":"Ë","⩍":"â©","č":"Ä","ç":"\xe7","ç":"\xe7","ĉ":"Ä","⩌":"â©","⩐":"â©","ċ":"Ä","¸":"\xb8","¸":"\xb8","⦲":"⦲","¢":"\xa2","¢":"\xa2","·":"\xb7","𝔠":"\uD835\uDD20","ч":"Ñ","✓":"â","✓":"â","χ":"Ï","○":"â","⧃":"â§","ˆ":"Ë","≗":"â","↺":"âº","↻":"â»","®":"\xae","Ⓢ":"â","⊛":"â","⊚":"â","⊝":"â","≗":"â","⨐":"â¨","⫯":"⫯","⧂":"â§","♣":"â£","♣":"â£",":":":","≔":"â","≔":"â",",":",","@":"@","∁":"â","∘":"â","∁":"â","ℂ":"â","≅":"â
","⩭":"â©","∮":"â®","𝕔":"\uD835\uDD54","∐":"â","©":"\xa9","©":"\xa9","℗":"â","↵":"âµ","✗":"â","𝒸":"\uD835\uDCB8","⫏":"â«","⫑":"â«","⫐":"â«","⫒":"â«","⋯":"â¯","⤸":"⤸","⤵":"⤵","⋞":"â","⋟":"â","↶":"â¶","⤽":"⤽","∪":"âª","⩈":"â©","⩆":"â©","⩊":"â©","⊍":"â","⩅":"â©
","∪︀":"âªï¸","↷":"â·","⤼":"⤼","⋞":"â","⋟":"â","⋎":"â","⋏":"â","¤":"\xa4","¤":"\xa4","↶":"â¶","↷":"â·","⋎":"â","⋏":"â","∲":"â²","∱":"â±","⌭":"â","⇓":"â","⥥":"⥥","†":"â ","ℸ":"â¸","↓":"â","‐":"â","⊣":"â£","⤏":"â¤","˝":"Ë","ď":"Ä","д":"д","ⅆ":"â
","‡":"â¡","⇊":"â","⩷":"â©·","°":"\xb0","°":"\xb0","δ":"δ","⦱":"⦱","⥿":"⥿","𝔡":"\uD835\uDD21","⇃":"â","⇂":"â","⋄":"â","⋄":"â","♦":"â¦","♦":"â¦","¨":"\xa8","ϝ":"Ï","⋲":"â²","÷":"\xf7","÷":"\xf7","÷":"\xf7","⋇":"â","⋇":"â","ђ":"Ñ","⌞":"â","⌍":"â","$":"$","𝕕":"\uD835\uDD55","˙":"Ë","≐":"â","≑":"â","∸":"â¸","∔":"â","⊡":"â¡","⌆":"â","↓":"â","⇊":"â","⇃":"â","⇂":"â","⤐":"â¤","⌟":"â","⌌":"â","𝒹":"\uD835\uDCB9","ѕ":"Ñ","⧶":"â§¶","đ":"Ä","⋱":"â±","▿":"â¿","▾":"â¾","⇵":"âµ","⥯":"⥯","⦦":"⦦","џ":"Ñ","⟿":"â¿","⩷":"â©·","≑":"â","é":"\xe9","é":"\xe9","⩮":"â©®","ě":"Ä","≖":"â","ê":"\xea","ê":"\xea","≕":"â","э":"Ñ","ė":"Ä","ⅇ":"â
","≒":"â","𝔢":"\uD835\uDD22","⪚":"âª","è":"\xe8","è":"\xe8","⪖":"âª","⪘":"âª","⪙":"âª","⏧":"â§","ℓ":"â","⪕":"âª","⪗":"âª","ē":"Ä","∅":"â
","∅":"â
","∅":"â
"," ":"â"," ":"â
"," ":"â","ŋ":"Å"," ":"â","ę":"Ä","𝕖":"\uD835\uDD56","⋕":"â","⧣":"â§£","⩱":"⩱","ε":"ε","ε":"ε","ϵ":"ϵ","≖
163":"â","≕":"â","≂":"â","⪖":"âª","⪕":"âª","=":"=","≟":"â","≡":"â¡","⩸":"⩸","⧥":"â§¥","≓":"â","⥱":"⥱","ℯ":"â¯","≐":"â","≂":"â","η":"η","ð":"\xf0","ð":"\xf0","ë":"\xeb","ë":"\xeb","€":"â¬","!":"!","∃":"â","ℰ":"â°","ⅇ":"â
","≒":"â","ф":"Ñ","♀":"â","ffi":"ï¬","ff":"ï¬","ffl":"ï¬","𝔣":"\uD835\uDD23","fi":"ï¬","fj":"fj","♭":"â","fl":"ï¬","▱":"â±","ƒ":"Æ","𝕗":"\uD835\uDD57","∀":"â","⋔":"â","⫙":"â«","⨍":"â¨","½":"\xbd","½":"\xbd","⅓":"â
","¼":"\xbc","¼":"\xbc","⅕":"â
","⅙":"â
","⅛":"â
","⅔":"â
","⅖":"â
","¾":"\xbe","¾":"\xbe","⅗":"â
","⅜":"â
","⅘":"â
","⅚":"â
","⅝":"â
","⅞":"â
","⁄":"â","⌢":"â¢","𝒻":"\uD835\uDCBB","≧":"â§","⪌":"âª","ǵ":"ǵ","γ":"γ","ϝ":"Ï","⪆":"âª","ğ":"Ä","ĝ":"Ä","г":"г","ġ":"Ä¡","≥":"â¥","⋛":"â","≥":"â¥","≧":"â§","⩾":"⩾","⩾":"⩾","⪩":"⪩","⪀":"âª","⪂":"âª","⪄":"âª","⋛︀":"âï¸","⪔":"âª","𝔤":"\uD835\uDD24","≫":"â«","⋙":"â","ℷ":"â·","ѓ":"Ñ","≷":"â·","⪒":"âª","⪥":"⪥","⪤":"⪤","≩":"â©","⪊":"âª","⪊":"âª","⪈":"âª","⪈":"âª","≩":"â©","⋧":"â§","𝕘":"\uD835\uDD58","`":"`","ℊ":"â","≳":"â³","⪎":"âª","⪐":"âª",">":">",">":">","⪧":"⪧","⩺":"⩺","⋗":"â","⦕":"â¦","⩼":"⩼","⪆":"âª","⥸":"⥸","⋗":"â","⋛":"â","⪌":"âª","≷":"â·","≳":"â³","≩︀":"â©ï¸","≩︀":"â©ï¸","⇔":"â"," ":"â","½":"\xbd","ℋ":"â","ъ":"Ñ","↔":"â","⥈":"â¥","↭":"â","ℏ":"â","ĥ":"Ä¥","♥":"â¥","♥":"â¥","…":"â¦","⊹":"â¹","𝔥":"\uD835\uDD25","⤥":"⤥","⤦":"⤦","⇿":"â¿","∻":"â»","↩":"â©","↪":"âª","𝕙":"\uD835\uDD59","―":"â","𝒽":"\uD835\uDCBD","ℏ":"â","ħ":"ħ","⁃":"â","‐":"â","í":"\xed","í":"\xed","⁣":"â£","î":"\xee","î":"\xee","и":"и","е":"е","¡":"\xa1","¡":"\xa1","⇔":"â","𝔦":"\uD835\uDD26","ì":"\xec","ì":"\xec","ⅈ":"â
","⨌":"â¨","∭":"â","⧜":"â§","℩":"â©","ij":"ij","ī":"Ä«","ℑ":"â","ℐ":"â","ℑ":"â","ı":"ı","⊷":"â·","Ƶ":"Ƶ","∈":"â","℅":"â
","∞":"â","⧝":"â§","ı":"ı","∫":"â«","⊺":"âº","ℤ":"â¤","⊺":"âº","⨗":"â¨","⨼":"⨼","ё":"Ñ","į":"į","𝕚":"\uD835\uDD5A","ι":"ι","⨼":"⨼","¿":"\xbf","¿":"\xbf","𝒾":"\uD835\uDCBE","∈":"â","⋹":"â¹","⋵":"âµ","⋴":"â´","⋳":"â³","∈":"â","⁢":"â¢","ĩ":"Ä©","і":"Ñ","ï":"\xef","ï":"\xef","ĵ":"ĵ","й":"й","𝔧":"\uD835\uDD27","ȷ":"È·","𝕛":"\uD835\uDD5B","𝒿":"\uD835\uDCBF","ј":"Ñ","є":"Ñ","κ":"κ","ϰ":"ϰ","ķ":"Ä·","к":"к","𝔨":"\uD835\uDD28","ĸ":"ĸ","х":"Ñ
","ќ":"Ñ","𝕜":"\uD835\uDD5C","𝓀":"\uD835\uDCC0","⇚":"â","⇐":"â","⤛":"â¤","⤎":"â¤","≦":"â¦","⪋":"âª","⥢":"⥢","ĺ":"ĺ","⦴":"⦴","ℒ":"â","λ":"λ","⟨":"â¨","⦑":"â¦","⟨":"â¨","⪅":"âª
","«":"\xab","«":"\xab","←":"â","⇤":"â¤","⤟":"â¤","⤝":"â¤","↩":"â©","↫":"â«","⤹":"⤹","⥳":"⥳","↢":"â¢","⪫":"⪫","⤙":"â¤","⪭":"âª","⪭︀":"âªï¸","⤌":"â¤","❲":"â²","{":"{","[":"[","⦋":"â¦","⦏":"â¦","⦍":"â¦","ľ":"ľ","ļ":"ļ","⌈":"â","{":"{","л":"л","⤶":"⤶","“":"â","„
163":"â","⥧":"⥧","⥋":"â¥","↲":"â²","≤":"â¤","←":"â","↢":"â¢","↽":"â½","↼":"â¼","⇇":"â","↔":"â","⇆":"â","⇋":"â","↭":"â","⋋":"â","⋚":"â","≤":"â¤","≦":"â¦","⩽":"⩽","⩽":"⩽","⪨":"⪨","⩿":"â©¿","⪁":"âª","⪃":"âª","⋚︀":"âï¸","⪓":"âª","⪅":"âª
","⋖":"â","⋚":"â","⪋":"âª","≶":"â¶","≲":"â²","⥼":"⥼","⌊":"â","𝔩":"\uD835\uDD29","≶":"â¶","⪑":"âª","↽":"â½","↼":"â¼","⥪":"⥪","▄":"â","љ":"Ñ","≪":"âª","⇇":"â","⌞":"â","⥫":"⥫","◺":"âº","ŀ":"Å","⎰":"â°","⎰":"â°","≨":"â¨","⪉":"âª","⪉":"âª","⪇":"âª","⪇":"âª","≨":"â¨","⋦":"â¦","⟬":"â¬","⇽":"â½","⟦":"â¦","⟵":"âµ","⟷":"â·","⟼":"â¼","⟶":"â¶","↫":"â«","↬":"â¬","⦅":"â¦
","𝕝":"\uD835\uDD5D","⨭":"â¨","⨴":"⨴","∗":"â","_":"_","◊":"â","◊":"â","⧫":"â§«","(":"(","⦓":"â¦","⇆":"â","⌟":"â","⇋":"â","⥭":"â¥","‎":"â","⊿":"â¿","‹":"â¹","𝓁":"\uD835\uDCC1","↰":"â°","≲":"â²","⪍":"âª","⪏":"âª","[":"[","‘":"â","‚":"â","ł":"Å","<":"<","<":"<","⪦":"⪦","⩹":"⩹","⋖":"â","⋋":"â","⋉":"â","⥶":"⥶","⩻":"â©»","⦖":"â¦","◃":"â","⊴":"â´","◂":"â","⥊":"â¥","⥦":"⥦","≨︀":"â¨ï¸","≨︀":"â¨ï¸","∺":"âº","¯":"\xaf","¯":"\xaf","♂":"â","✠":"â ","✠":"â ","↦":"â¦","↦":"â¦","↧":"â§","↤":"â¤","↥":"â¥","▮":"â®","⨩":"⨩","м":"м","—":"â","∡":"â¡","𝔪":"\uD835\uDD2A","℧":"â§","µ":"\xb5","µ":"\xb5","∣":"â£","*":"*","⫰":"â«°","·":"\xb7","·":"\xb7","−":"â","⊟":"â","∸":"â¸","⨪":"⨪","⫛":"â«","…":"â¦","∓":"â","⊧":"â§","𝕞":"\uD835\uDD5E","∓":"â","𝓂":"\uD835\uDCC2","∾":"â¾","μ":"μ","⊸":"â¸","⊸":"â¸","⋙̸":"â̸","≫⃒":"â«â","≫̸":"â«Ì¸","⇍":"â","⇎":"â","⋘̸":"â̸","≪⃒":"âªâ","≪̸":"âªÌ¸","⇏":"â","⊯":"â¯","⊮":"â®","∇":"â","ń":"Å","∠⃒":"â â","≉":"â","⩰̸":"⩰̸","≋̸":"â̸","ʼn":"Å","≉":"â","♮":"â®","♮":"â®","ℕ":"â"," ":"\xa0"," ":"\xa0","≎̸":"â̸","≏̸":"â̸","⩃":"â©","ň":"Å","ņ":"Å","≇":"â","⩭̸":"â©Ì¸","⩂":"â©","н":"н","–":"â","≠":"â ","⇗":"â","⤤":"⤤","↗":"â","↗":"â","≐̸":"â̸","≢":"â¢","⤨":"⤨","≂̸":"â̸","∄":"â","∄":"â","𝔫":"\uD835\uDD2B","≧̸":"â§Ì¸","≱":"â±","≱":"â±","≧̸":"â§Ì¸","⩾̸":"⩾̸","⩾̸":"⩾̸","≵":"âµ","≯":"â¯","≯":"â¯","⇎":"â","↮":"â®","⫲":"⫲","∋":"â","⋼":"â¼","⋺":"âº","∋":"â","њ":"Ñ","⇍":"â","≦̸":"â¦Ì¸","↚":"â","‥":"â¥","≰":"â°","↚":"â","↮":"â®","≰":"â°","≦̸":"â¦Ì¸","⩽̸":"⩽̸","⩽̸":"⩽̸","≮":"â®","≴":"â´","≮":"â®","⋪":"âª","⋬":"â¬","∤":"â¤","𝕟":"\uD835\uDD5F","¬":"\xac","¬":"\xac","∉":"â","⋹̸":"â¹Ì¸","⋵̸":"âµÌ¸","∉":"â","⋷":"â·","⋶":"â¶","∌":"â","∌":"â","⋾":"â¾","⋽":"â½","∦":"â¦","∦":"â¦","⫽⃥":"⫽â¥","∂̸":"â̸","⨔":"â¨","⊀":"â","⋠":"â ","⪯̸":"⪯̸","⊀":"â","⪯̸":"⪯̸","⇏":"â","↛":"â","⤳̸":"⤳̸","↝̸":"â̸","↛":"â","⋫":"â«","⋭":"â","⊁":"â","⋡":"â¡","⪰̸":"⪰̸","𝓃":"\uD835\uDCC3","∤":"â¤","∦":"â¦","≁":"â","≄":"â","≄":"â","∤":"â¤","∦":"â¦","⋢":"â¢","⋣":"â£","⊄":"â","⫅̸":"â«
̸","⊈":"â","⊂⃒":"ââ","⊈":"â","⫅̸":"â«
̸","⊁":"â","⪰̸":"⪰̸","⊅":"â
","⫆̸":"â«Ì¸","⊉":"â","⊃⃒":"ââ","⊉":"â","⫆̸":"â«Ì¸","≹":"â¹","ñ":"\xf1","ñ":"\xf1","≸":"â¸","⋪":"âª","⋬":"â¬","⋫":"â«","⋭":"â","ν":"ν","#":"#","№":"â"," ":"â","⊭":"â","⤄":"â¤","≍⃒":"ââ","⊬":"â¬","≥⃒":"â¥â",">⃒":">â","⧞":"â§","⤂":"â¤","≤⃒":"â¤â","<⃒":"<â","⊴⃒":"â´â","⤃":"â¤","⊵⃒":"âµâ","∼⃒":"â¼â","⇖":"â","⤣":"⤣","↖":"â","↖":"â","⤧":"⤧","Ⓢ":"â","ó":"\xf3","ó":"\xf3","⊛":"â","⊚":"â","ô":"\xf4","ô":"\xf4","о":"о","⊝":"â","ő":"Å","⨸":"⨸","⊙":"â","⦼":"⦼","œ":"Å","⦿":"⦿","𝔬":"\uD835\uDD2C","˛":"Ë","ò":"\xf2","ò":"\xf2","⧁":"â§","⦵":"⦵","Ω":"Ω","∮":"â®","↺":"âº","⦾":"⦾","⦻":"⦻","‾":"â¾","⧀":"â§","ō":"Å","ω":"Ï","ο":"ο","⦶":"⦶","⊖":"â","𝕠":"\uD835\uDD60","⦷":"⦷","⦹":"⦹","⊕":"â","∨":"â¨","↻":"â»","⩝":"â©","ℴ":"â´","ℴ":"â´","ª":"\xaa","ª":"\xaa","º":"\xba","º":"\xba","⊶":"â¶","⩖":"â©","⩗":"â©","⩛":"â©","ℴ":"â´","ø":"\xf8","ø":"\xf8","⊘":"â","õ":"\xf5","õ":"\xf5","⊗":"â","⨶":"⨶","ö":"\xf6","ö":"\xf6","⌽":"â½","∥":"â¥","¶":"\xb6","¶":"\xb6","∥":"â¥","⫳":"⫳","⫽":"⫽","∂":"â","п":"п","%":"%",".":".","‰":"â°","⊥":"â¥","‱":"â±","𝔭":"\uD835\uDD2D","φ":"Ï","ϕ":"Ï","ℳ":"â³","☎":"â","π
163":"Ï","⋔":"â","ϖ":"Ï","ℏ":"â","ℎ":"â","ℏ":"â","+":"+","⨣":"⨣","⊞":"â","⨢":"⨢","∔":"â","⨥":"⨥","⩲":"⩲","±":"\xb1","±":"\xb1","⨦":"⨦","⨧":"⨧","±":"\xb1","⨕":"â¨","𝕡":"\uD835\uDD61","£":"\xa3","£":"\xa3","≺":"âº","⪳":"⪳","⪷":"⪷","≼":"â¼","⪯":"⪯","≺":"âº","⪷":"⪷","≼":"â¼","⪯":"⪯","⪹":"⪹","⪵":"⪵","⋨":"â¨","≾":"â¾","′":"â²","ℙ":"â","⪵":"⪵","⪹":"⪹","⋨":"â¨","∏":"â","⌮":"â®","⌒":"â","⌓":"â","∝":"â","∝":"â","≾":"â¾","⊰":"â°","𝓅":"\uD835\uDCC5","ψ":"Ï"," ":"â","𝔮":"\uD835\uDD2E","⨌":"â¨","𝕢":"\uD835\uDD62","⁗":"â","𝓆":"\uD835\uDCC6","ℍ":"â","⨖":"â¨","?":"?","≟":"â",""":'"',""":'"',"⇛":"â","⇒":"â","⤜":"â¤","⤏":"â¤","⥤":"⥤","∽̱":"â½Ì±","ŕ":"Å","√":"â","⦳":"⦳","⟩":"â©","⦒":"â¦","⦥":"⦥","⟩":"â©","»":"\xbb","»":"\xbb","→":"â","⥵":"⥵","⇥":"â¥","⤠":"⤠","⤳":"⤳","⤞":"â¤","↪":"âª","↬":"â¬","⥅":"â¥
","⥴":"⥴","↣":"â£","↝":"â","⤚":"â¤","∶":"â¶","ℚ":"â","⤍":"â¤","❳":"â³","}":"}","]":"]","⦌":"â¦","⦎":"â¦","⦐":"â¦","ř":"Å","ŗ":"Å","⌉":"â","}":"}","р":"Ñ","⤷":"⤷","⥩":"⥩","”":"â","”":"â","↳":"â³","ℜ":"â","ℛ":"â","ℜ":"â","ℝ":"â","▭":"â","®":"\xae","®":"\xae","⥽":"⥽","⌋":"â","𝔯":"\uD835\uDD2F","⇁":"â","⇀":"â","⥬":"⥬","ρ":"Ï","ϱ":"ϱ","→":"â","↣":"â£","⇁":"â","⇀":"â","⇄":"â","⇌":"â","⇉":"â","↝":"â","⋌":"â","˚":"Ë","≓":"â","⇄":"â","⇌":"â","‏":"â","⎱":"â±","⎱":"â±","⫮":"â«®","⟭":"â","⇾":"â¾","⟧":"â§","⦆":"â¦","𝕣":"\uD835\uDD63","⨮":"⨮","⨵":"⨵",")":")","⦔":"â¦","⨒":"â¨","⇉":"â","›":"âº","𝓇":"\uD835\uDCC7","↱":"â±","]":"]","’":"â","’":"â","⋌":"â","⋊":"â","▹":"â¹","⊵":"âµ","▸":"â¸","⧎":"â§","⥨":"⥨","℞":"â","ś":"Å","‚":"â","≻":"â»","⪴":"⪴","⪸":"⪸","š":"Å¡","≽":"â½","⪰":"⪰","ş":"Å","ŝ":"Å","⪶":"⪶","⪺":"⪺","⋩":"â©","⨓":"â¨","≿":"â¿","с":"Ñ","⋅":"â
","⊡":"â¡","⩦":"⩦","⇘":"â","⤥":"⤥","↘":"â","↘":"â","§":"\xa7","§":"\xa7",";":";","⤩":"⤩","∖":"â","∖":"â","✶":"â¶","𝔰":"\uD835\uDD30","⌢":"â¢","♯":"â¯","щ":"Ñ","ш":"Ñ","∣":"â£","∥":"â¥","­":"\xad","­":"\xad","σ":"Ï","ς":"Ï","ς":"Ï","∼":"â¼","⩪":"⩪","≃":"â","≃":"â","⪞":"âª","⪠":"⪠","⪝":"âª","⪟":"âª","≆":"â","⨤":"⨤","⥲":"⥲","←":"â","∖":"â","⨳":"⨳","⧤":"⧤","∣":"â£","⌣":"â£","⪪":"⪪","⪬":"⪬","⪬︀":"⪬ï¸","ь":"Ñ","/":"/","⧄":"â§","⌿":"â¿","𝕤":"\uD835\uDD64","♠":"â ","♠":"â ","∥":"â¥","⊓":"â","⊓︀":"âï¸","⊔":"â","⊔︀":"âï¸","⊏":"â","⊑":"â","⊏":"â","⊑":"â","⊐":"â","⊒":"â","⊐":"â","⊒":"â","□":"â¡","□":"â¡","▪":"âª","▪":"âª","→":"â","𝓈":"\uD835\uDCC8","∖":"â","⌣":"â£","⋆":"â","☆":"â","★":"â
","ϵ":"ϵ","ϕ":"Ï","¯":"\xaf","⊂":"â","⫅":"â«
","⪽":"⪽","⊆":"â","⫃":"â«","⫁":"â«","⫋":"â«","⊊":"â","⪿":"⪿","⥹":"⥹","⊂":"â","⊆":"â","⫅":"â«
","⊊":"â","⫋":"â«","⫇":"â«","⫕":"â«","⫓":"â«","≻":"â»","⪸":"⪸","≽":"â½","⪰":"⪰","⪺":"⪺","⪶":"⪶","⋩":"â©","≿":"â¿","∑":"â","♪":"âª","¹":"\xb9","¹":"\xb9","²":"\xb2","²":"\xb2","³":"\xb3","³":"\xb3","⊃":"â","⫆":"â«","⪾":"⪾","⫘":"â«","⊇":"â","⫄":"â«","⟉":"â","⫗":"â«","⥻":"⥻","⫂":"â«","⫌":"â«","⊋":"â","⫀":"â«","⊃":"â","⊇":"â","⫆":"â«","⊋":"â","⫌":"â«","⫈":"â«","⫔":"â«","⫖":"â«","⇙":"â","⤦":"⤦","↙":"â","↙":"â","⤪":"⤪","ß":"\xdf","ß":"\xdf","⌖":"â","τ":"Ï","⎴":"â´","ť":"Å¥","ţ":"Å£","т":"Ñ","⃛":"â","⌕":"â","𝔱":"\uD835\uDD31","∴":"â´","∴":"â´","θ":"θ","ϑ":"Ï","ϑ":"Ï","≈":"â","∼":"â¼"," ":"â","≈":"â","∼":"â¼","þ":"\xfe","þ":"\xfe","˜":"Ë","×":"\xd7","×":"\xd7","⊠":"â ","⨱":"⨱","⨰":"⨰","∭":"â","⤨":"⤨","⊤":"â¤","⌶":"â¶","⫱":"⫱","𝕥":"\uD835\uDD65","⫚":"â«","⤩":"⤩","‴":"â´","™":"â¢","▵":"âµ","▿":"â¿","◃":"â","⊴":"â´","≜":"â","▹":"â¹","⊵":"âµ","◬":"â¬","≜":"â","⨺":"⨺","⨹":"⨹","⧍":"â§","⨻":"⨻","⏢":"â¢","𝓉":"\uD835\uDCC9","ц":"Ñ","ћ":"Ñ","ŧ":"ŧ","≬":"â¬","↞":"â","↠":"â ","⇑":"â","⥣":"⥣","ú":"\xfa","ú":"\xfa","↑":"â","ў":"Ñ","ŭ":"Å","û":"\xfb","û":"\xfb","у":"Ñ","⇅":"â
","ű":"ű","⥮":"⥮","⥾":"⥾","𝔲":"\uD835\uDD32","ù":"\xf9","ù":"\xf9","↿":"â¿","↾":"â¾","▀":"â","⌜":"â","⌜":"â","⌏":"â","◸":"â¸","ū":"Å«","¨":"\xa8","¨":"\xa8","ų":"ų","𝕦":"\uD835\uDD66","↑":"â","↕":"â","↿":"â¿","↾":"â¾","⊎":"â","υ":"Ï
","ϒ":"Ï","υ":"Ï
","⇈":"â","⌝":"â","⌝":"â","⌎":"â","ů":"ů","◹":"â¹","𝓊":"\uD835\uDCCA","⋰":"â°","ũ":"Å©","▵":"âµ","▴":"â´","⇈":"â","ü":"\xfc","ü":"\xfc","⦧":"⦧","⇕":"â","⫨":"⫨","⫩":"â«©","⊨":"â¨","⦜":"â¦","ϵ":"ϵ","ϰ":"ϰ","∅":"â
","ϕ":"Ï","ϖ":"Ï","∝":"â","↕":"â","ϱ":"ϱ","ς":"Ï","⊊︀":"âï¸","⫋︀":"â«ï¸","⊋︀":"âï¸","⫌︀":"â«ï¸","ϑ":"Ï","⊲":"â²","⊳":"â³","в":"в","⊢":"â¢","∨":"â¨","⊻":"â»","≚":"â","⋮":"â®","|":"|","|":"|","𝔳":"\uD835\uDD33","⊲":"â²","⊂⃒":"ââ","⊃⃒":"ââ","𝕧":"\uD835\uDD67","∝":"â","⊳":"â³","𝓋":"\uD835\uDCCB","⫋︀":"â«ï¸","⊊︀":"âï¸","⫌︀":"â«ï¸","⊋︀":"âï¸","⦚":"â¦","ŵ":"ŵ","⩟":"â©","∧":"â§","≙":"â","℘":"â","𝔴":"\uD835\uDD34","𝕨":"\uD835\uDD68","℘":"â","≀":"â","≀
163":"â","𝓌":"\uD835\uDCCC","⋂":"â","◯":"â¯","⋃":"â","▽":"â½","𝔵":"\uD835\uDD35","⟺":"âº","⟷":"â·","ξ":"ξ","⟸":"â¸","⟵":"âµ","⟼":"â¼","⋻":"â»","⨀":"â¨","𝕩":"\uD835\uDD69","⨁":"â¨","⨂":"â¨","⟹":"â¹","⟶":"â¶","𝓍":"\uD835\uDCCD","⨆":"â¨","⨄":"â¨","△":"â³","⋁":"â","⋀":"â","ý":"\xfd","ý":"\xfd","я":"Ñ","ŷ":"Å·","ы":"Ñ","¥":"\xa5","¥":"\xa5","𝔶":"\uD835\uDD36","ї":"Ñ","𝕪":"\uD835\uDD6A","𝓎":"\uD835\uDCCE","ю":"Ñ","ÿ":"\xff","ÿ":"\xff","ź":"ź","ž":"ž","з":"з","ż":"ż","ℨ":"â¨","ζ":"ζ","𝔷":"\uD835\uDD37","ж":"ж","⇝":"â","𝕫":"\uD835\uDD6B","𝓏":"\uD835\uDCCF","‍":"â","‌":"â"},characters:{Ã:"Æ","&":"&",Ã:"Á",Ä:"Ă",Ã:"Â",Ð:"А",ð:"𝔄",Ã:"À",Î:"Α",Ä:"Ā","â©":"⩓",Ä:"Ą",ð¸:"𝔸","â¡":"⁡",Ã
:"Å",ð:"𝒜","â":"≔",Ã:"Ã",Ã:"Ä","â":"∖","â«§":"⫧","â":"⌆",Ð:"Б","âµ":"∵",â¬:"ℬ",Î:"Β",ð
:"𝔅",ð¹:"𝔹","Ë":"˘","â":"≎",Ч:"Ч","\xa9":"©",Ä:"Ć","â":"⋒",â
:"ⅅ",â:"ℭ",Ä:"Č",Ã:"Ç",Ä:"Ĉ","â°":"∰",Ä:"Ċ","\xb8":"¸","\xb7":"·",Χ:"Χ","â":"⊙","â":"⊖","â":"⊕","â":"⊗","â²":"∲","â":"”","â":"’","â·":"∷","â©´":"⩴","â¡":"≡","â¯":"∯","â®":"∮",â:"ℂ","â":"∐","â³":"∳","⨯":"⨯",ð:"𝒞","â":"⋓","â":"≍","â¤":"⤑",Ð:"Ђ",Ð
:"Ѕ",Ð:"Џ","â¡":"‡","â¡":"↡","⫤":"⫤",Ä:"Ď",Ð:"Д","â":"∇",Î:"Δ",ð:"𝔇","\xb4":"´","Ë":"˙","Ë":"˝","`":"`","Ë":"˜","â":"⋄",â
:"ⅆ",ð»:"𝔻","\xa8":"¨","â":"⃜","â":"≐","â":"⇓","â":"⇐","â":"⇔","â¸":"⟸","âº":"⟺","â¹":"⟹","â":"⇒","â¨":"⊨","â":"⇑","â":"⇕","â¥":"∥","â":"↓","â¤":"⤓","âµ":"⇵","Ì":"̑","â¥":"⥐","â¥":"⥞","â½":"↽","â¥":"⥖","â¥":"⥟","â":"⇁","â¥":"⥗","â¤":"⊤","â§":"↧",ð:"𝒟",Ä:"Đ",Å:"Ŋ",Ã:"Ð",Ã:"É",Ä:"Ě",Ã:"Ê",Ð:"Э",Ä:"Ė",ð:"𝔈",Ã:"È","â":"∈",Ä:"Ē","â»":"◻","â«":"▫",Ä:"Ę",ð¼:"𝔼",Î:"Ε","⩵":"⩵","â":"≂","â":"⇌",â°:"ℰ","⩳":"⩳",Î:"Η",Ã:"Ë","â":"∃",â
:"ⅇ",Ф:"Ф",ð:"𝔉","â¼":"◼","âª":"▪",ð½:"𝔽","â":"∀",â±:"ℱ",Ð:"Ѓ",">":">",Î:"Γ",Ï:"Ϝ",Ä:"Ğ",Ä¢:"Ģ",Ä:"Ĝ",Ð:"Г",Ä :"Ġ",ð:"𝔊","â":"⋙",ð¾:"𝔾","â¥":"≥","â":"⋛","â§":"≧","⪢":"⪢","â·":"≷","⩾":"⩾","â³":"≳",ð¢:"𝒢","â«":"≫",Ъ:"Ъ",Ë:"ˇ","^":"^",Ĥ:"Ĥ",â:"ℌ",â:"ℋ",â:"ℍ","â":"─",Ħ:"Ħ","â":"≏",Ð:"Е",IJ:"IJ",Ð:"Ё",Ã:"Í",Ã:"Î",Ð:"И",İ:"İ",â:"ℑ",Ã:"Ì",Ī:"Ī",â
:"ⅈ","â¬":"∬","â«":"∫","â":"⋂","â£":"⁣","â¢":"⁢",Ä®:"Į",ð:"𝕀",Î:"Ι",â:"ℐ",Ĩ:"Ĩ",Ð:"І",Ã:"Ï",Ä´:"Ĵ",Ð:"Й",ð:"𝔍",ð:"𝕁",ð¥:"𝒥",Ð:"Ј",Ð:"Є",Ð¥:"Х",Ð:"Ќ",Î:"Κ",Ķ:"Ķ",Ð:"К",ð:"𝔎",ð:"𝕂",ð¦:"𝒦",Ð:"Љ","<":"<",Ĺ:"Ĺ
163",Î:"Λ","âª":"⟪",â:"ℒ","â":"↞",Ľ:"Ľ",Ä»:"Ļ",Ð:"Л","â¨":"⟨","â":"←","â¤":"⇤","â":"⇆","â":"⌈","â¦":"⟦","⥡":"⥡","â":"⇃","â¥":"⥙","â":"⌊","â":"↔","â¥":"⥎","â£":"⊣","â¤":"↤","â¥":"⥚","â²":"⊲","â§":"⧏","â´":"⊴","â¥":"⥑","⥠":"⥠","â¿":"↿","â¥":"⥘","â¼":"↼","â¥":"⥒","â":"⋚","â¦":"≦","â¶":"≶","⪡":"⪡","⩽":"⩽","â²":"≲",ð:"𝔏","â":"⋘","â":"⇚",Ä¿:"Ŀ","âµ":"⟵","â·":"⟷","â¶":"⟶",ð:"𝕃","â":"↙","â":"↘","â°":"↰",Å:"Ł","âª":"≪","â¤
":"⤅",Ð:"М","â":" ",â³:"ℳ",ð:"𝔐","â":"∓",ð:"𝕄",Î:"Μ",Ð:"Њ
163",Å:"Ń",Å:"Ň",Å
:"Ņ",Ð:"Н","â":"​","\n":"
",ð:"𝔑","â ":"⁠","\xa0":" ",â:"ℕ","⫬":"⫬","â¢":"≢","â":"≭","â¦":"∦","â":"∉","â ":"≠","â̸":"≂̸","â":"∄","â¯":"≯","â±":"≱","â§Ì¸":"≧̸","â«Ì¸":"≫̸","â¹":"≹","⩾̸":"⩾̸","âµ":"≵","â̸":"≎̸","â̸":"≏̸","âª":"⋪","â§Ì¸":"⧏̸","â¬":"⋬","â®":"≮","â°":"≰","â¸":"≸","âªÌ¸":"≪̸","⩽̸":"⩽̸","â´":"≴","⪢̸":"⪢̸","⪡̸":"⪡̸","â":"⊀","⪯̸":"⪯̸","â ":"⋠","â":"∌","â«":"⋫","â§Ì¸":"⧐̸","â":"⋭","â̸":"⊏̸","â¢":"⋢","â̸":"⊐̸","â£":"⋣","ââ":"⊂⃒","â":"⊈","â":"⊁","⪰̸":"⪰̸","â¡":"⋡","â¿Ì¸":"≿̸","ââ":"⊃⃒","â":"⊉","â":"≁","â":"≄","â":"≇","â":"≉","â¤":"∤",ð©:"𝒩",Ã:"Ñ",Î:"Ν",Å:"Œ",Ã:"Ó",Ã:"Ô",Ð:"О",Å:"Ő",ð:"𝔒",Ã:"Ò",Å:"Ō",Ω:"Ω",Î:"Ο",ð:"𝕆","â":"“","â":"‘","â©":"⩔",ðª:"𝒪",Ã:"Ø",Ã:"Õ","⨷":"⨷",Ã:"Ö","â¾":"‾","â":"⏞","â´":"⎴","â":"⏜","â":"∂",Ð:"П",ð:"𝔓",Φ:"Φ",Î :"Π","\xb1":"±",â:"ℙ","⪻":"⪻","âº":"≺","⪯":"⪯","â¼":"≼","â¾":"≾","â³":"″","â":"∏","â":"∝",ð«:"𝒫",Ψ:"Ψ",'"':""",ð:"𝔔",â:"ℚ",ð¬:"𝒬","â¤":"⤐","\xae":"®",Å:"Ŕ","â«":"⟫","â ":"↠","â¤":"⤖",Å:"Ř",Å:"Ŗ",Ð :"Р",â:"ℜ","â":"∋","â":"⇋","⥯":"⥯",Ρ:"Ρ","â©":"⟩","â":"→","â¥":"⇥","â":"⇄","â":"⌉","â§":"⟧","â¥":"⥝","â":"⇂","â¥":"⥕","â":"⌋","â¢":"⊢","â¦":"↦","â¥":"⥛","â³":"⊳","â§":"⧐","âµ":"⊵","â¥":"⥏","â¥":"⥜","â¾":"↾","â¥":"⥔","â":"⇀","â¥":"⥓",â:"ℝ","⥰":"⥰","â":"⇛",â:"ℛ","â±":"↱","â§´":"⧴",Щ:"Щ",Ш:"Ш",Ь:"Ь",Å:"Ś","⪼":"⪼",Å :"Š",Å:"Ş",Å:"Ŝ",С:"С",ð:"𝔖","â":"↑",Σ:"Σ","â":"∘",ð:"𝕊","â":"√","â¡":"□","â":"⊓","â":"⊏","â":"⊑","â":"⊐","â":"⊒","â":"⊔",ð®:"𝒮","â":"⋆","â":"⋐","â":"⊆","â»":"≻","⪰":"⪰","â½":"≽","â¿":"≿","â":"∑","â":"⋑","â":"⊃","â":"⊇",Ã:"Þ","â¢":"™",Ð:"Ћ",Ц:"Ц"," ":"	",Τ:"Τ",Ť:"Ť",Å¢:"Ţ",Т:"Т",ð:"𝔗","â´":"∴",Î:"Θ","ââ":"  ","â":" ","â¼":"∼","â":"≃","â
":"≅","â":"≈",ð:"𝕋","â":"⃛",ð¯:"𝒯",Ŧ:"Ŧ",Ã:"Ú","â":"↟","â¥":"⥉",Ð:"Ў",Ŭ:"Ŭ",Ã:"Û",У:"У",Ű:"Ű",ð:"𝔘",Ã:"Ù",Ū:"Ū",_:"_","â":"⏟","âµ":"⎵","â":"⏝","â":"⋃","â":"⊎",Ų:"Ų",ð:"𝕌","â¤":"⤒","â
":"⇅","â":"↕","⥮":"⥮","â¥":"⊥","â¥":"↥","â":"↖","â":"↗",Ï:"ϒ",Î¥:"Υ",Å®:"Ů",ð°:"𝒰",Ũ:"Ũ",Ã:"Ü","â«":"⊫","â««":"⫫",Ð:"В","â©":"⊩","⫦":"⫦","â":"⋁","â":"‖","â£":"∣","|":"|","â":"❘","â":"≀","â":" ",ð:"𝔙",ð:"𝕍",ð±:"𝒱","âª":"⊪",Å´:"Ŵ","â":"⋀",ð:"𝔚",ð:"𝕎",ð²:"𝒲",ð:"𝔛",Î:"Ξ",ð:"𝕏",ð³:"𝒳",Я:"Я",Ð:"Ї",Ю:"Ю",Ã:"Ý",Ŷ:"Ŷ",Ы:"Ы",ð:"𝔜",ð:"𝕐",ð´:"𝒴",Ÿ:"Ÿ",Ð:"Ж",Ź:"Ź",Ž:"Ž",Ð:"З",Å»:"Ż",Î:"Ζ",â¨:"ℨ",â¤:"ℤ",ðµ:"𝒵",á:"á",Ä:"ă","â¾":"∾","â¾Ì³":"∾̳","â¿":"∿",â:"â",а:"а",æ:"æ",ð:"𝔞",à :"à",âµ:"ℵ",α:"α",Ä:"ā","⨿":"⨿","â§":"∧","â©":"⩕","â©":"⩜","â©":"⩘","â©":"⩚","â ":"∠","⦤":"⦤","â¡":"∡","⦨":"⦨","⦩":"⦩","⦪":"⦪","⦫":"⦫","⦬":"⦬","â¦":"⦭","⦮":"⦮","⦯":"⦯","â":"∟","â¾":"⊾","â¦":"⦝","â¢":"∢","â¼":"⍼",Ä
:"ą",ð:"𝕒","â©°":"⩰","⩯":"⩯","â":"≊","â":"≋","'":"'",Ã¥:"å","\uD835\uDCB6":"𝒶","*":"*",ã:"ã",ä:"ä","â¨":"⨑","â«":"⫭","â":"≌","϶":"϶","âµ":"‵","â½":"∽","â":"⋍","â½":"⊽","â
":"⌅","â¶":"⎶",б:"б","â":"„","⦰":"⦰",β:"β",â¶:"ℶ","â¬":"≬",ð:"𝔟","â¯":"◯","â¨":"⨀","â¨":"⨁","â¨":"⨂","â¨":"⨆","â
":"★","â½":"▽","â³":"△","â¨":"⨄","â¤":"⤍","â§«":"⧫","â´":"▴","â¾":"▾","â":"◂","â¸":"▸","â£":"␣","â":"▒","â":"░","â":"▓","â":"█","=â¥":"=⃥","â¡â¥":"≡⃥","â":"⌐",ð:"𝕓","â":"⋈","â":"╗","â":"╔","â":"╖","â":"╓","â":"═","â¦":"╦","â©":"╩","â¤":"╤","â§":"╧","â":"╝","â":"╚","â":"╜","â":"╙","â":"║","â¬":"╬","â£":"╣","â ":"╠","â«":"╫","â¢":"╢","â":"╟","â§":"⧉","â":"╕","â":"╒","â":"┐","â":"┌","â¥":"╥","â¨":"╨","â¬":"┬","â´":"┴","â":"⊟","â":"⊞","â ":"⊠","â":"╛","â":"╘","â":"┘","â":"└","â":"│","âª":"╪","â¡":"╡","â":"╞","â¼":"┼","â¤":"┤","â":"├","\xa6":"¦",ð·:"𝒷","â":"⁏","\\":"\","â§
":"⧅","â":"⟈","â¢":"•","⪮":"⪮",Ä:"ć","â©":"∩","â©":"⩄","â©":"⩉","â©":"⩋
163","â©":"⩇","â©":"⩀","â©ï¸":"∩︀","â":"⁁","â©":"⩍",Ä:"č",ç:"ç",Ä:"ĉ","â©":"⩌","â©":"⩐",Ä:"ċ","⦲":"⦲","\xa2":"¢",ð :"𝔠",Ñ:"ч","â":"✓",Ï:"χ","â":"○","â§":"⧃",Ë:"ˆ","â":"≗","âº":"↺","â»":"↻","â":"Ⓢ","â":"⊛","â":"⊚","â":"⊝","â¨":"⨐","⫯":"⫯","â§":"⧂","â£":"♣",":":":",",":",","@":"@","â":"∁","â©":"⩭",ð:"𝕔","â":"℗","âµ":"↵","â":"✗",ð¸:"𝒸","â«":"⫏","â«":"⫑","â«":"⫐","â«":"⫒","â¯":"⋯","⤸":"⤸","⤵":"⤵","â":"⋞","â":"⋟","â¶":"↶","⤽":"⤽","âª":"∪","â©":"⩈","â©":"⩆","â©":"⩊","â":"⊍","â©
":"⩅","âªï¸":"∪︀","â·":"↷","⤼":"⤼","â":"⋎","â":"⋏","\xa4":"¤","â±":"∱","â":"⌭","⥥":"⥥","â ":"†",â¸:"ℸ","â":"‐","â¤":"⤏",Ä:"ď",д:"д","â":"⇊","â©·":"⩷","\xb0":"°",δ:"δ","⦱":"⦱","⥿":"⥿",ð¡:"𝔡","â¦":"♦",Ï:"ϝ","â²":"⋲","\xf7":"÷","â":"⋇",Ñ:"ђ","â":"⌞","â":"⌍",$:"$",ð:"𝕕","â":"≑","â¸":"∸","â":"∔","â¡":"⊡","â":"⌟","â":"⌌",ð¹:"𝒹",Ñ:"ѕ","â§¶":"⧶",Ä:"đ","â±":"⋱","â¿":"▿","⦦":"⦦",Ñ:"џ","â¿":"⟿",é:"é","â©®":"⩮",Ä:"ě","â":"≖",ê:"ê","â":"≕",Ñ:"э",Ä:"ė","â":"≒",ð¢:"𝔢","âª":"⪚",è:"è","âª":"⪖","âª":"⪘","âª":"⪙","â§":"⏧",â:"ℓ","âª":"⪕","âª":"⪗",Ä:"ē","â
":"∅","â":" ","â
":" ","â":" ",Å:"ŋ","â":" ",Ä:"ę",ð:"𝕖","â":"⋕","â§£":"⧣","⩱":"⩱",ε:"ε",ϵ:"ϵ","=":"=","â":"≟","⩸":"⩸","â§¥":"⧥","â":"≓","⥱":"⥱",â¯:"ℯ",η:"η",ð:"ð",ë:"ë","â¬":"€","!":"!",Ñ:"ф","â":"♀",ï¬:"ffi",ï¬:"ff",ï¬:"ffl",ð£:"𝔣",ï¬:"fi",fj:"fj","â":"♭",ï¬:"fl","â±":"▱",Æ:"ƒ",ð:"𝕗","â":"⋔","â«":"⫙","â¨":"⨍","\xbd":"½","â
":"⅓","\xbc":"¼","â
":"⅕","â
":"⅙","â
":"⅛","â
":"⅔","â
":"⅖","\xbe":"¾","â
":"⅗","â
":"⅜","â
":"⅘","â
":"⅚","â
":"⅝","â
":"⅞","â":"⁄","â¢":"⌢",ð»:"𝒻","âª":"⪌",ǵ:"ǵ",γ:"γ","âª":"⪆",Ä:"ğ",Ä:"ĝ",г:"г",Ä¡:"ġ","⪩":"⪩","âª":"⪀","âª":"⪂","âª":"⪄","âï¸":"⋛︀","âª":"⪔",ð¤:"𝔤",â·:"ℷ",Ñ:"ѓ","âª":"⪒","⪥":"⪥","⪤":"⪤","â©":"≩","âª":"⪊","âª":"⪈","â§":"⋧",ð:"𝕘",â:"ℊ","âª":"⪎","âª":"⪐","⪧":"⪧","⩺":"⩺","â":"⋗","â¦":"⦕","⩼":"⩼","⥸":"⥸","â©ï¸":"≩︀",Ñ:"ъ","â¥":"⥈","â":"↭",â:"ℏ",Ä¥:"ĥ","â¥":"♥","â¦":"…","â¹":"⊹",ð¥:"𝔥","⤥":"⤥","⤦":"⤦","â¿":"⇿","â»":"∻","â©":"↩","âª":"↪",ð:"𝕙","â":"―",ð½:"𝒽",ħ:"ħ","â":"⁃",Ã:"í",î:"î",и:"и",е:"е","\xa1":"¡",ð¦:"𝔦",ì:"ì","â¨":"⨌","â":"∭","â§":"⧜","â©":"℩",ij:"ij",Ä«:"ī",ı:"ı","â·":"⊷",Ƶ:"Ƶ","â
":"℅","â":"∞","â§":"⧝","âº":"⊺","â¨":"⨗","⨼":"⨼",Ñ:"ё",į:"į",ð:"𝕚",ι:"ι","\xbf":"¿",ð¾:"𝒾","â¹":"⋹","âµ":"⋵","â´":"⋴","â³":"⋳",Ä©:"ĩ",Ñ:"і",ï:"ï",ĵ:"ĵ",й:"й",ð§:"𝔧",È·:"ȷ",ð:"𝕛",ð¿:"𝒿",Ñ:"ј",Ñ:"є",κ:"κ",ϰ:"ϰ",Ä·:"ķ",к:"к",ð¨:"𝔨",ĸ:"ĸ",Ñ
:"х",Ñ:"ќ",ð:"𝕜",ð:"𝓀","â¤":"⤛","â¤":"⤎","âª":"⪋","⥢":"⥢",ĺ:"ĺ","⦴":"⦴",λ:"λ","â¦":"⦑","âª
":"⪅","\xab":"«","â¤":"⤟","â¤":"⤝","â«":"↫","⤹":"⤹","⥳":"⥳","â¢":"↢","⪫":"⪫","â¤":"⤙","âª":"⪭","âªï¸":"⪭︀","â¤":"⤌","â²":"❲","{":"{","[":"[","â¦":"⦋","â¦":"⦏","â¦":"⦍",ľ:"ľ",ļ:"ļ",л:"л","⤶":"⤶","⥧":"⥧","â¥":"⥋","â²":"↲","â¤":"≤","â":"⇇","â":"⋋","⪨":"⪨","â©¿":"⩿","âª":"⪁","âª":"⪃","âï¸":"⋚︀","âª":"⪓","â":"⋖","⥼":"⥼",ð©:"𝔩","âª":"⪑","⥪":"⥪","â":"▄",Ñ:"љ","⥫":"⥫","âº":"◺",Å:"ŀ","â°":"⎰","â¨":"≨","âª":"⪉","âª":"⪇","â¦":"⋦","â¬":"⟬","â½":"⇽","â¼":"⟼","â¬":"↬","â¦
":"⦅",ð:"𝕝","â¨":"⨭","⨴":"⨴","â":"∗","â":"◊","(":"(","â¦":"⦓","â¥":"⥭","â":"‎","â¿":"⊿","â¹":"‹",ð:"𝓁","âª":"⪍","âª":"⪏","â":"‚",Å:"ł","⪦":"⪦","⩹":"⩹","â":"⋉","⥶":"⥶","â©»":"⩻","â¦":"⦖","â":"◃","â¥":"⥊","⥦":"⥦","â¨ï¸":"≨︀","âº":"∺","\xaf":"¯","â":"♂","â ":"✠","â®":"▮","⨩":"⨩",м:"м","â":"—",ðª:"𝔪","â§":"℧",µ:"µ","â«°":"⫰","â":"−","⨪":"⨪","â«":"⫛","â§":"⊧",ð:"𝕞",ð:"𝓂",μ:"μ","â¸":"⊸","â̸":"⋙̸","â«â":"≫⃒","â":"⇍","â":"⇎","â̸":"⋘̸","âªâ":"≪⃒","â":"⇏","â¯":"⊯","â®":"⊮",Å:"ń","â â":"∠⃒","⩰̸":"⩰̸","â̸":"≋̸",Å:"ʼn","â®":"♮","â©":"⩃",Å:"ň",Å:"ņ","â©Ì¸":"⩭̸","â©":"⩂",н:"н","â":"–","â":"⇗","⤤":"⤤","â̸":"≐̸","⤨":"⤨",ð«:"𝔫","â®":"↮","⫲":"⫲","â¼":"⋼","âº":"⋺",Ñ:"њ","â¦Ì¸":"≦̸","â":"↚","â¥":"‥",ð:"𝕟","\xac":"¬","â¹Ì¸":"⋹̸","âµÌ¸":"⋵̸","â·":"⋷","â¶":"⋶","â¾":"⋾","â½":"⋽","⫽â¥":"⫽⃥","â̸":"∂̸","â¨":"⨔","â":"↛","⤳̸":"⤳̸","â̸":"↝̸",ð:"𝓃","â":"⊄","â«
̸":"⫅̸","â
":"⊅","â«Ì¸":"⫆̸",ñ:"ñ",ν:"ν","#":"#","â":"№","â":" ","â":"⊭","â¤":"⤄","ââ":"≍⃒","â¬":"⊬","â¥â":"≥⃒",">â":">⃒","â§":"⧞","â¤":"⤂","â¤â":"≤⃒","<â":"<⃒","â´â":"⊴⃒","â¤":"⤃","âµâ":"⊵⃒","â¼â":"∼⃒","â":"⇖","⤣":"⤣","⤧":"⤧",ó:"ó",ô:"ô",о:"о",Å:"ő","⨸":"⨸","⦼":"⦼",Å:"œ","⦿":"⦿",ð¬:"𝔬","Ë":"˛",ò:"ò","â§":"⧁","⦵":"⦵","⦾":"⦾","⦻":"⦻","â§":"⧀",Å:"ō",Ï:"ω",ο:"ο","⦶":"⦶",ð :"𝕠","⦷":"⦷","⦹":"⦹","â¨":"∨","â©":"⩝",â´:"ℴ",ª:"ª",º:"º","â¶":"⊶","â©":"⩖","â©":"⩗","â©":"⩛",ø:"ø","â":"⊘",õ:"õ","⨶":"⨶",ö:"ö","â½":"⌽","\xb6":"¶","⫳":"⫳","⫽":"⫽",п:"п","%":"%",".":".","â°":"‰","â±":"‱",ð:"𝔭",Ï:"φ",Ï:"ϕ","â":"☎",Ï:"π",Ï:"ϖ",â:"ℎ","+":"+","⨣":"⨣","⨢":"⨢","⨥":"⨥","⩲":"⩲","⨦":"⨦","⨧":"⨧","â¨":"⨕",ð¡:"𝕡","\xa3":"£","⪳":"⪳","⪷":"⪷","⪹":"⪹","⪵":"⪵","â¨":"⋨","â²":"′","â®":"⌮","â":"⌒","â":"⌓","â°":"⊰",ð
:"𝓅",Ï:"ψ","â":" ",ð®:"𝔮",ð¢:"𝕢","â":"⁗",ð:"𝓆","â¨":"⨖","?":"?","â¤":"⤜","⥤":"⥤","â½Ì±":"∽̱",Å:"ŕ","⦳":"⦳","â¦":"⦒","⦥":"⦥","\xbb":"»","⥵":"⥵","⤠":"⤠","⤳":"⤳","â¤":"⤞","â¥
":"⥅","⥴":"⥴","â£":"↣","â":"↝","â¤":"⤚","â¶":"∶","â³":"❳","}":"}","]":"]","â¦":"⦌","â¦":"⦎","â¦":"⦐",Å:"ř",Å:"ŗ",Ñ:"р","⤷":"⤷","⥩":"⥩","â³":"↳","â":"▭","⥽":"⥽",ð¯:"𝔯","⥬":"⥬",Ï:"ρ",ϱ:"ϱ","â":"⇉","â":"⋌","Ë":"˚","â":"‏","â±":"⎱","â«®":"⫮","â":"⟭","â¾":"⇾","â¦":"⦆",ð£:"𝕣","⨮":"⨮","⨵":"⨵",")":")","â¦":"⦔","â¨":"⨒","âº":"›",ð:"𝓇","â":"⋊","â¹":"▹","â§":"⧎","⥨":"⥨","â":"℞",Å:"ś","⪴":"⪴","⪸":"⪸",Å¡:"š",Å:"ş",Å:"ŝ","⪶":"⪶","⪺":"⪺","â©":"⋩","â¨":"⨓",Ñ:"с","â
":"⋅","⩦":"⩦","â":"⇘","\xa7":"§",";":";","⤩":"⤩","â¶":"✶",ð°:"𝔰","â¯":"♯",Ñ:"щ",Ñ:"ш","\xad":"­",Ï:"σ",Ï:"ς","⩪":"⩪","âª":"⪞","⪠":"⪠","âª":"⪝","âª":"⪟","â":"≆","⨤":"⨤","⥲":"⥲","⨳":"⨳","⧤":"⧤","â£":"⌣","⪪":"⪪","⪬":"⪬","⪬ï¸":"⪬︀",Ñ:"ь","/":"/","â§":"⧄","â¿":"⌿",ð¤:"𝕤","â ":"♠","âï¸":"⊓︀","âï¸":"⊔︀",ð:"𝓈","â":"☆","â":"⊂","â«
":"⫅","⪽":"⪽","â«":"⫃","â«":"⫁","â«":"⫋","â":"⊊","⪿":"⪿","⥹":"⥹","â«":"⫇","â«":"⫕","â«":"⫓","âª":"♪","\xb9":"¹","\xb2":"²","\xb3":"³","â«":"⫆","⪾":"⪾","â«":"⫘","â«":"⫄","â":"⟉","â«":"⫗","⥻":"⥻","â«":"⫂","â«":"⫌","â":"⊋","â«":"⫀","â«":"⫈","â«":"⫔","â«":"⫖","â":"⇙","⤪":"⤪",Ã:"ß","â":"⌖",Ï:"τ",Å¥:"ť",Å£:"ţ",Ñ:"т","â":"⌕",ð±:"𝔱",θ:"θ",Ï:"ϑ",þ:"þ","\xd7":"×","⨱":"⨱","⨰":"⨰","â¶":"⌶","⫱":"⫱",ð¥:"𝕥","â«":"⫚","â´":"‴","âµ":"▵","â":"≜","â¬":"◬","⨺":"⨺","⨹":"⨹","â§":"⧍","⨻":"⨻","â¢":"⏢",ð:"𝓉",Ñ:"ц",Ñ:"ћ",ŧ:"ŧ","⥣":"⥣",ú:"ú",Ñ:"ў",Å:"ŭ",û:"û",Ñ:"у",ű:"ű","⥾":"⥾",ð²:"𝔲",ù:"ù","â":"▀","â":"⌜","â":"⌏","â¸":"◸",Å«:"ū",ų:"ų",ð¦:"𝕦",Ï
:"υ","â":"⇈","â":"⌝","â":"⌎",ů:"ů","â¹":"◹",ð:"𝓊","â°":"⋰",Å©:"ũ",ü:"ü","⦧":"⦧","⫨":"⫨","â«©":"⫩","â¦":"⦜","âï¸":"⊊︀","â«ï¸":"⫋︀","âï¸":"⊋︀","â«ï¸":"⫌︀",в:"в","â»":"⊻","â":"≚","â®":"⋮",ð³:"𝔳",ð§:"𝕧",ð:"𝓋","â¦":"⦚",ŵ:"ŵ","â©":"⩟","â":"≙",â:"℘",ð´:"𝔴",ð¨:"𝕨",ð:"𝓌",ðµ:"𝔵",ξ:"ξ","â»":"⋻",ð©:"𝕩",ð:"𝓍",ý:"ý",Ñ:"я",Å·:"ŷ",Ñ:"ы","\xa5":"¥",ð¶:"𝔶",Ñ:"ї",ðª:"𝕪",ð:"𝓎",Ñ:"ю",ÿ:"ÿ",ź:"ź",ž:"ž",з:"з",ż:"ż",ζ:"ζ",ð·:"𝔷",ж:"ж","â":"⇝",ð«:"𝕫",ð:"𝓏","â":"‍","â":"‌"}}}},92642:function(r,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.numericUnicodeMap={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}},59726:function(r,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.fromCodePoint=String.fromCodePoint||function(r){return String.fromCharCode(Math.floor((r-65536)/1024)+55296,(r-65536)%1024+56320)},n.getCodePoint=String.prototype.codePointAt?function(r,n){return r.codePointAt(n)}:function(r,n){return(r.charCodeAt(n)-55296)*1024+r.charCodeAt(n+1)-56320+65536},n.highSurrogateFrom=55296,n.highSurrogateTo=56319},6158:function(r,n,i){var o=i(34155);
163r.exports=function(){"use strict";var r,n,i;function a(o,a){if(r){if(n){var s="self.onerror = function() { console.error('An error occurred while parsing the WebWorker bundle. This is most likely due to improper transpilation by Babel; please see https://docs.mapbox.com/mapbox-gl-js/guides/install/#transpiling'); }; var sharedChunk = {}; ("+r+")(sharedChunk); ("+n+")(sharedChunk); self.onerror = null;",l={};r(l),i=a(l),"undefined"!=typeof window&&window&&window.URL&&window.URL.createObjectURL&&(i.workerUrl=window.URL.createObjectURL(new Blob([s],{type:"text/javascript"})))}else n=a}else r=a}return a(["exports"],function(r){let n,i,a,s,l,c,u,d,h;var p,f="undefined"!=typeof self?self:{},m="2.15.0";let g={API_URL:"https://api.mapbox.com",get API_URL_REGEX(){if(null==n){let r=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;try{n=null!=o.env.API_URL_REGEX?RegExp(o.env.API_URL_REGEX):r}catch(i){n=r}}return n},get API_TILEJSON_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/v[0-9]*\/.*\.json.*$)/i},get API_SPRITE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*\/sprite.*\..*$)/i},get API_FONTS_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/fonts\/v[0-9]*\/)(.*\.pbf.*$)/i},get API_STYLE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*$)/i},get API_CDN_URL_REGEX(){return/^((https?:)?\/\/)?api\.mapbox\.c(n|om)(\/mapbox-gl-js\/)(.*$)/i},get EVENTS_URL(){if(!g.API_URL)return null;try{let r=new URL(g.API_URL);return"api.mapbox.cn"===r.hostname?"https://events.mapbox.cn/events/v2":"api.mapbox.com"===r.hostname?"https://events.mapbox.com/events/v2":null}catch(r){return null}},SESSION_PATH:"/map-sessions/v1",FEEDBACK_URL:"https://apps.mapbox.com/feedback",TILE_URL_VERSION:"v4",RASTER_URL_PREFIX:"raster/v1",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},v={supported:!1,testSupport:function(r){!x&&b&&(_?w(r):y=r)}},y,b,x=!1,_=!1;function w(r){let n=r.createTexture();r.bindTexture(r.TEXTURE_2D,n);try{if(r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,b),r.isContextLost())return;v.supported=!0}
163catch(r){}r.deleteTexture(n),x=!0}function S(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function T(r,n,i,o){this.cx=3*r,this.bx=3*(i-r)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*n,this.by=3*(o-n)-this.cy,this.ay=1-this.cy-this.by,this.p1x=r,this.p1y=n,this.p2x=i,this.p2y=o}f.document&&((b=f.document.createElement("img")).onload=function(){y&&w(y),y=null,_=!0},b.onerror=function(){x=!0,y=null},b.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA="),T.prototype={sampleCurveX:function(r){return((this.ax*r+this.bx)*r+this.cx)*r},sampleCurveY:function(r){return((this.ay*r+this.by)*r+this.cy)*r},sampleCurveDerivativeX:function(r){return(3*this.ax*r+2*this.bx)*r+this.cx},solveCurveX:function(r,n){if(void 0===n&&(n=1e-6),r<0)return 0;if(r>1)return 1;for(var i=r,o=0;o<8;o++){var a=this.sampleCurveX(i)-r;if(Math.abs(a)<n)return i;var s=this.sampleCurveDerivativeX(i);if(1e-6>Math.abs(s))break;i-=a/s}var l=0,c=1;for(i=r,o=0;o<20&&!(Math.abs((a=this.sampleCurveX(i))-r)<n);o++)r>a?l=i:c=i,i=.5*(c-l)+l;return i},solve:function(r,n){return this.sampleCurveY(this.solveCurveX(r,n))}};var E=S(T);function k(r,n){this.x=r,this.y=n}k.prototype={clone:function(){return new k(this.x,this.y)},add:function(r){return this.clone()._add(r)},sub:function(r){return this.clone()._sub(r)},multByPoint:function(r){return this.clone()._multByPoint(r)},divByPoint:function(r){return this.clone()._divByPoint(r)},mult:function(r){return this.clone()._mult(r)},div:function(r){return this.clone()._div(r)},rotate:function(r){return this.clone()._rotate(r)},rotateAround:function(r,n){return this.clone()._rotateAround(r,n)},matMult:function(r){return this.clone()._matMult(r)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(r){return this.x===r.x&&this.y===r.y},dist:function(r){return Math.sqrt(this.distSqr(r))},distSqr:function(r){var n=r.x-this.x,i=r.y-this.y;return n*n+i*i},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(r){return Math.atan2(this.y-r.y,this.x-r.x)},angleWith:function(r){return this.angleWithSep(r.x,r.y)},angleWithSep:function(r,n){return Math.atan2(this.x*n-this.y*r,this.x*r+this.y*n)},_matMult:function(r){var n=r[2]*this.x+r[3]*this.y;return this.x=r[0]*this.x+r[1]*this.y,this.y=n,this},_add:function(r){return this.x+=r.x,this.y+=r.y,this},_sub:function(r){return this.x-=r.x,this.y-=r.y,this},_mult:function(r){return this.x*=r,this.y*=r,this},_div:function(r){return this.x/=r,this.y/=r,this},_multByPoint:function(r){return this.x*=r.x,this.y*=r.y,this},_divByPoint:function(r){return this.x/=r.x,this.y/=r.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var r=this.y;return this.y=this.x,this.x=-r,this},_rotate:function(r){var n=Math.cos(r),i=Math.sin(r),o=i*this.x+n*this.y;return this.x=n*this.x-i*this.y,this.y=o,this},_rotateAround:function(r,n){var i=Math.cos(r),o=Math.sin(r),a=n.y+o*(this.x-n.x)+i*(this.y-n.y);return this.x=n.x+i*(this.x-n.x)-o*(this.y-n.y),this.y=a,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},k.convert=function(r){return r instanceof k?r:Array.isArray(r)?new k(r[0],r[1]):r};var C=S(k);let P=Math.PI/180,O=180/Math.PI,j=[[0,0],[1,0],[1,1],[0,1]];function A(r){if(r<=0)return 0;if(r>=1)return 1;let n=r*r,i=n*r;return 4*(r<.5?i:3*(r-n)+i-.75)}function M(r,n,i,o){let a=new E(r,n,i,o);return function(r){return a.solve(r)}}let I=M(.25,.1,.25,1);function Z(r,n,i){return Math.min(i,Math.max(n,r))}function R(r,n,i){return(i=Z((i-r)/(n-r),0,1))*i*(3-2*i)}function D(r,n,i){let o=i-n,a=((r-n)%o+o)%o+n;return a===n?i:a}function L(r,n,i){if(!r.length)return i(null,[]);let o=r.length,a=Array(r.length),s=null;r.forEach((r,l)=>{n(r,(r,n)=>{r&&(s=r),a[l]=n,0==--o&&i(s,a)})})}function z(r){let n=[];for(let i in r)n.push(r[i]);return n}function B(r,...n){for(let i of n)for(let n in i)r[n]=i[n];return r}let F=1;function N(){return F++}function U(){return function r(n){return n?(n^Math.random()*(16>>n/4)).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,r)}()}function V(r){return r<=1?1:Math.pow(2,Math.ceil(Math.log(r)/Math.LN2))}function q(r){return!!r&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(r)}function $(r,n){r.forEach(r=>{n[r]&&(n[r]=n[r].bind(n))})}function G(r,n){return -1!==r.indexOf(n,r.length-n.length)}function W(r,n,i){let o={};for(let a in r)o[a]=n.call(i||this,r[a],a,r);return o}function H(r,n,i){let o={};for(let a in r)n.call(i||this,r[a],a,r)&&(o[a]=r[a]);return o}function X(r){return Array.isArray(r)?r.map(X):"object"==typeof r&&r?W(r,X):r}let Y={};function K(r){Y[r]||("undefined"!=typeof console&&console.warn(r),Y[r]=!0)}function J(r,n,i){return(i.y-r.y)*(n.x-r.x)>(n.y-r.y)*(i.x-r.x)}function Q(){return"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope}function ee(r){let n={};if(r.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(r,i,o,a)=>{let s=o||a;return n[i]=!s||s.toLowerCase(),""}),n["max-age"]){let r=parseInt(n["max-age"],10);isNaN(r)?delete n["max-age"]:n["max-age"]=r}return n}let et=null;function er(r){if(null==et){let n=r.navigator?r.navigator.userAgent:null;et=!!r.safari||!(!n||!(/\b(iPad|iPhone|iPod)\b/.test(n)||n.match("Safari")&&!n.match("Chrome")))}return et}function en(r){try{let n=f[r];return n.setItem("_mapbox_test_",1),n.removeItem("_mapbox_test_"),!0}catch(r){return!1}}function ei(r,n){return[r[4*n],r[4*n+1],r[4*n+2],r[4*n+3]]}let eo="mapbox-tiles",ea=500,es=50;function el(){try{return f.caches}catch(r){}}function ec(){el()&&!i&&(i=f.caches.open(eo))}function eu(r){let n=r.indexOf("?");if(n<0)return r;let i=function(r){let n=r.indexOf("?");return n>0?r.slice(n+1).split("&"):[]}(r),o=i.filter(r=>{let n=r.split("=");return"language"===n[0]||"worldview"===n[0]});return o.length?`${r.slice(0,n)}?${o.join("&")}`:r.slice(0,n)}let ed=1/0,eh={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};"function"==typeof Object.freeze&&Object.freeze(eh);
163class ep extends Error{constructor(r,n,i){401===n&&e_(i)&&(r+=": you may have provided an invalid Mapbox access token. See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes"),super(r),this.status=n,this.url=i}toString(){return`${this.name}: ${this.message} (${this.status}): ${this.url}`}}let ef=Q()?()=>self.worker&&self.worker.referrer:()=>("blob:"===f.location.protocol?f.parent:f).location.href,em=function(r,n){var o;if(!(/^file:/.test(o=r.url)||/^file:/.test(ef())&&!/^\w+:/.test(o))){if(f.fetch&&f.Request&&f.AbortController&&f.Request.prototype.hasOwnProperty("signal"))return function(r,n){var o;let s=new f.AbortController,l=new f.Request(r.url,{method:r.method||"GET",body:r.body,credentials:r.credentials,headers:r.headers,referrer:ef(),referrerPolicy:r.referrerPolicy,signal:s.signal}),c=!1,u=!1,d=(o=l.url).indexOf("sku=")>0&&e_(o);"json"===r.type&&l.headers.set("Accept","application/json");let h=(i,o,a)=>{if(u)return;if(i&&"SecurityError"!==i.message&&K(i.toString()),o&&a)return p(o);let s=Date.now();f.fetch(l).then(i=>{if(i.ok){let r=d?i.clone():null;return p(i,r,s)}return n(new ep(i.statusText,i.status,r.url))}).catch(i=>{"AbortError"!==i.name&&n(Error(`${i.message} ${r.url}`))})},p=(o,s,d)=>{("arrayBuffer"===r.type?o.arrayBuffer():"json"===r.type?o.json():o.text()).then(r=>{u||(s&&d&&function(r,n,o){if(ec(),!i)return;let s={status:n.status,statusText:n.statusText,headers:new f.Headers};n.headers.forEach((r,n)=>s.headers.set(n,r));let l=ee(n.headers.get("Cache-Control")||"");if(l["no-store"])return;l["max-age"]&&s.headers.set("Expires",new Date(o+1e3*l["max-age"]).toUTCString());let c=s.headers.get("Expires");c&&(new Date(c).getTime()-o<42e4||function(r,n){if(void 0===a)try{new Response(new ReadableStream),a=!0}catch(r){a=!1}a?n(r.body):r.blob().then(n)}(n,n=>{let o=new f.Response(n,s);ec(),i&&i.then(n=>n.put(eu(r.url),o)).catch(r=>K(r.message))}))}(l,s,d),c=!0,n(null,r,o.headers.get("Cache-Control"),o.headers.get("Expires")))}).catch(r=>{u||n(Error(r.message))})};return d?function(r,n){if(ec(),!i)return n(null);let o=eu(r.url);i.then(r=>{r.match(o).then(i=>{let a=function(r){if(!r)return!1;let n=new Date(r.headers.get("Expires")||0),i=ee(r.headers.get("Cache-Control")||"");return n>Date.now()&&!i["no-cache"]}(i);r.delete(o),a&&r.put(o,i.clone()),n(null,i,a)}).catch(n)}).catch(n)}(l,h):h(null,null),{cancel:()=>{u=!0,c||s.abort()}}}(r,n);if(Q()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",r,n,void 0,!0)}return function(r,n){let i=new f.XMLHttpRequest;for(let n in i.open(r.method||"GET",r.url,!0),"arrayBuffer"===r.type&&(i.responseType="arraybuffer"),r.headers)i.setRequestHeader(n,r.headers[n]);return"json"===r.type&&(i.responseType="text",i.setRequestHeader("Accept","application/json")),i.withCredentials="include"===r.credentials,i.onerror=()=>{n(Error(i.statusText))},i.onload=()=>{if((i.status>=200&&i.status<300||0===i.status)&&null!==i.response){let o=i.response;if("json"===r.type)try{o=JSON.parse(i.response)}catch(r){return n(r)}n(null,o,i.getResponseHeader("Cache-Control"),i.getResponseHeader("Expires"))}else n(new ep(i.statusText,i.status,r.url))},i.send(r.body),{cancel:()=>i.abort()}}(r,n)},eg=function(r,n){return em(B(r,{type:"arrayBuffer"}),n)},ev="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";s=[],l=0;let ey=function(r,n){if(v.supported&&(r.headers||(r.headers={}),r.headers.accept="image/webp,*/*"),l>=g.MAX_PARALLEL_IMAGE_REQUESTS){let i={requestParameters:r,callback:n,cancelled:!1,cancel(){this.cancelled=!0}};return s.push(i),i}l++;let i=!1,o=()=>{if(!i)for(i=!0,l--;s.length&&l<g.MAX_PARALLEL_IMAGE_REQUESTS;){let r=s.shift(),{requestParameters:n,callback:i,cancelled:o}=r;o||(r.cancel=ey(n,i).cancel)}},a=eg(r,(r,i,a,s)=>{o(),r?n(r):i&&(f.createImageBitmap?function(r,n){let i=new f.Blob([new Uint8Array(r)],{type:"image/png"});f.createImageBitmap(i).then(r=>{n(null,r)}).catch(r=>{n(Error(`Could not load image because of ${r.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))})}(i,(r,i)=>n(r,i,a,s)):function(r,n){let i=new f.Image,o=f.URL;i.onload=()=>{n(null,i),o.revokeObjectURL(i.src),i.onload=null,f.requestAnimationFrame(()=>{i.src=ev})},i.onerror=()=>n(Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));let a=new f.Blob([new Uint8Array(r)],{type:"image/png"});i.src=r.byteLength?o.createObjectURL(a):ev}(i,(r,i)=>n(r,i,a,s)))});return{cancel:()=>{a.cancel(),o()}}},eb="NO_ACCESS_TOKEN";function ex(r){return 0===r.indexOf("mapbox:")}function e_(r){return g.API_URL_REGEX.test(r)}
163function ew(r){return g.API_CDN_URL_REGEX.test(r)}function eS(r){return g.API_STYLE_REGEX.test(r)&&!eT(r)}function eT(r){return g.API_SPRITE_REGEX.test(r)}let eE=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function ek(r){let n=r.match(eE);if(!n)throw Error("Unable to parse URL object");return{protocol:n[1],authority:n[2],path:n[3]||"/",params:n[4]?n[4].split("&"):[]}}function eC(r){let n=r.params.length?`?${r.params.join("&")}`:"";return`${r.protocol}://${r.authority}${r.path}${n}`}let eP="mapbox.eventData";function eO(r){if(!r)return null;let n=r.split(".");if(!n||3!==n.length)return null;try{return JSON.parse(decodeURIComponent(f.atob(n[1]).split("").map(r=>"%"+("00"+r.charCodeAt(0).toString(16)).slice(-2)).join("")))}catch(r){return null}}class ej{constructor(r){this.type=r,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null}getStorageKey(r){let n=eO(g.ACCESS_TOKEN),i="";return i=n&&n.u?f.btoa(encodeURIComponent(n.u).replace(/%([0-9A-F]{2})/g,(r,n)=>String.fromCharCode(Number("0x"+n)))):g.ACCESS_TOKEN||"",r?`${eP}.${r}:${i}`:`${eP}:${i}`}fetchEventData(){let r=en("localStorage"),n=this.getStorageKey(),i=this.getStorageKey("uuid");if(r)try{let r=f.localStorage.getItem(n);r&&(this.eventData=JSON.parse(r));let o=f.localStorage.getItem(i);o&&(this.anonId=o)}catch(r){K("Unable to read from LocalStorage")}}saveEventData(){let r=en("localStorage"),n=this.getStorageKey(),i=this.getStorageKey("uuid");if(r)try{f.localStorage.setItem(i,this.anonId),Object.keys(this.eventData).length>=1&&f.localStorage.setItem(n,JSON.stringify(this.eventData))}catch(r){K("Unable to write to LocalStorage")}}processRequests(r){}postEvent(r,n,i,o){var a;if(!g.EVENTS_URL)return;let s=ek(g.EVENTS_URL);s.params.push(`access_token=${o||g.ACCESS_TOKEN||""}`);let l={event:this.type,created:new Date(r).toISOString()},c=n?B(l,n):l,u={url:eC(s),headers:{"Content-Type":"text/plain"},body:JSON.stringify([c])};this.pendingRequest=(a=r=>{this.pendingRequest=null,i(r),this.saveEventData(),this.processRequests(o)},em(B(u,{method:"POST"}),a))}
163queueRequest(r,n){this.queue.push(r),this.processRequests(n)}}let eA=new class extends ej{constructor(r){super("appUserTurnstile"),this._customAccessToken=r}postTurnstileEvent(r,n){g.EVENTS_URL&&g.ACCESS_TOKEN&&Array.isArray(r)&&r.some(r=>ex(r)||e_(r))&&this.queueRequest(Date.now(),n)}processRequests(r){if(this.pendingRequest||0===this.queue.length)return;this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();let n=eO(g.ACCESS_TOKEN),i=n?n.u:g.ACCESS_TOKEN,o=i!==this.eventData.tokenU;q(this.anonId)||(this.anonId=U(),o=!0);let a=this.queue.shift();if(this.eventData.lastSuccess){let r=new Date(this.eventData.lastSuccess),n=new Date(a),i=(a-this.eventData.lastSuccess)/864e5;o=o||i>=1||i<-1||r.getDate()!==n.getDate()}else o=!0;o?this.postEvent(a,{sdkIdentifier:"mapbox-gl-js",sdkVersion:m,skuId:"01","enabled.telemetry":!1,userId:this.anonId},r=>{r||(this.eventData.lastSuccess=a,this.eventData.tokenU=i)},r):this.processRequests()}},eM=eA.postTurnstileEvent.bind(eA),eI=new class extends ej{constructor(){super("map.load"),this.success={},this.skuToken=""}postMapLoadEvent(r,n,i,o){this.skuToken=n,this.errorCb=o,g.EVENTS_URL&&(i||g.ACCESS_TOKEN?this.queueRequest({id:r,timestamp:Date.now()},i):this.errorCb(Error(eb)))}processRequests(r){if(this.pendingRequest||0===this.queue.length)return;let{id:n,timestamp:i}=this.queue.shift();n&&this.success[n]||(this.anonId||this.fetchEventData(),q(this.anonId)||(this.anonId=U()),this.postEvent(i,{sdkIdentifier:"mapbox-gl-js",sdkVersion:m,skuId:"01",skuToken:this.skuToken,userId:this.anonId},r=>{r?this.errorCb(r):n&&(this.success[n]=!0)},r))}},eZ=eI.postMapLoadEvent.bind(eI),eR=new class extends ej{constructor(){super("gljs.performance")}postPerformanceEvent(r,n){g.EVENTS_URL&&(r||g.ACCESS_TOKEN)&&this.queueRequest({timestamp:Date.now(),performanceData:n},r)}processRequests(r){if(this.pendingRequest||0===this.queue.length)return;let{timestamp:n,performanceData:i}=this.queue.shift(),o=function(r){let n=f.performance.getEntriesByType("resource"),i=f.performance.getEntriesByType("mark"),o=function(r){let n={};if(r){for(let i in r)if("other"!==i)for(let o of r[i]){let r=`${i}ResolveRangeMin`,a=`${i}ResolveRangeMax`,s=`${i}RequestCount`,l=`${i}RequestCachedCount`;n[r]=Math.min(n[r]||1/0,o.startTime),n[a]=Math.max(n[a]||-1/0,o.responseEnd);let c=r=>{void 0===n[r]&&(n[r]=0),++n[r]};void 0!==o.transferSize&&0===o.transferSize&&c(l),c(s)}}return n}(function(r,n){let i={};if(r)for(let o of r){let r=n(o);void 0===i[r]&&(i[r]=[]),i[r].push(o)}return i}(n,eN)),a=f.devicePixelRatio,s=f.navigator.connection||f.navigator.mozConnection||f.navigator.webkitConnection,l={counters:[],metadata:[],attributes:[]},c=(r,n,i)=>{null!=i&&r.push({name:n,value:i.toString()})};for(let r in o)c(l.counters,r,o[r]);if(r.interactionRange[0]!==1/0&&r.interactionRange[1]!==-1/0&&(c(l.counters,"interactionRangeMin",r.interactionRange[0]),c(l.counters,"interactionRangeMax",r.interactionRange[1])),i)for(let r of Object.keys(eF)){let n=eF[r],o=i.find(r=>r.name===n);o&&c(l.counters,n,o.startTime)}return c(l.counters,"visibilityHidden",r.visibilityHidden),c(l.attributes,"style",function(r){if(r)for(let n of r){let r=n.name.split("?")[0];if(eS(r)){let n=r.split("/").slice(-2);if(2===n.length)return`mapbox://styles/${n[0]}/${n[1]}`}}}(n)),c(l.attributes,"terrainEnabled",r.terrainEnabled?"true":"false"),c(l.attributes,"fogEnabled",r.fogEnabled?"true":"false"),c(l.attributes,"projection",r.projection),c(l.attributes,"zoom",r.zoom),c(l.metadata,"devicePixelRatio",a),c(l.metadata,"connectionEffectiveType",s?s.effectiveType:void 0),c(l.metadata,"navigatorUserAgent",f.navigator.userAgent),c(l.metadata,"screenWidth",f.screen.width),c(l.metadata,"screenHeight",f.screen.height),c(l.metadata,"windowWidth",f.innerWidth),c(l.metadata,"windowHeight",f.innerHeight),c(l.metadata,"mapWidth",r.width/a),c(l.metadata,"mapHeight",r.height/a),c(l.metadata,"webglRenderer",r.renderer),c(l.metadata,"webglVendor",r.vendor),c(l.metadata,"sdkVersion",m),c(l.metadata,"sdkIdentifier","mapbox-gl-js"),l}(i);for(let r of o.metadata);for(let r of o.counters);for(let r of o.attributes);this.postEvent(n,o,()=>{},r)}},eD=eR.postPerformanceEvent.bind(eR),eL=new class extends ej{constructor(){super("map.auth"),this.success={},this.skuToken=""}getSession(r,n,i,o){var a;if(!g.API_URL||!g.SESSION_PATH)return;let s=ek(g.API_URL+g.SESSION_PATH);s.params.push(`sku=${n||""}`),s.params.push(`access_token=${o||g.ACCESS_TOKEN||""}`);let l={url:eC(s),headers:{"Content-Type":"text/plain"}};this.pendingRequest=(a=r=>{this.pendingRequest=null,i(r),this.saveEventData(),this.processRequests(o)},em(B(l,{method:"GET"}),a))}getSessionAPI(r,n,i,o){this.skuToken=n,this.errorCb=o,g.SESSION_PATH&&g.API_URL&&(i||g.ACCESS_TOKEN?this.queueRequest({id:r,timestamp:Date.now()},i):this.errorCb(Error(eb)))}processRequests(r){if(this.pendingRequest||0===this.queue.length)return;let{id:n,timestamp:i}=this.queue.shift();
163n&&this.success[n]||this.getSession(i,this.skuToken,r=>{r?this.errorCb(r):n&&(this.success[n]=!0)},r)}},ez=eL.getSessionAPI.bind(eL),eB=new Set,eF={create:"create",load:"load",fullLoad:"fullLoad"};function eN(r){let n=r.name.split("?")[0];return ew(n)&&n.includes("mapbox-gl.js")?"javascript":ew(n)&&n.includes("mapbox-gl.css")?"css":g.API_FONTS_REGEX.test(n)?"fontRange":eT(n)?"sprite":eS(n)?"style":g.API_TILEJSON_REGEX.test(n)?"tilejson":"other"}let eU=f.performance;function eV(r){let n=r?r.url.toString():void 0;return eU.getEntriesByName(n)}let eq={now:()=>void 0!==d?d:f.performance.now(),setNow(r){d=r},restoreNow(){d=void 0},frame(r){let n=f.requestAnimationFrame(r);return{cancel:()=>f.cancelAnimationFrame(n)}},getImageData(r,n=0){let{width:i,height:o}=r;h||(h=f.document.createElement("canvas"));let a=h.getContext("2d",{willReadFrequently:!0});if(!a)throw Error("failed to create canvas 2d context");return(i>h.width||o>h.height)&&(h.width=i,h.height=o),a.clearRect(-n,-n,i+2*n,o+2*n),a.drawImage(r,0,0,i,o),a.getImageData(-n,-n,i+2*n,o+2*n)},resolveURL:r=>(c||(c=f.document.createElement("a")),c.href=r,c.href),get devicePixelRatio(){return f.devicePixelRatio},get prefersReducedMotion(){return!!f.matchMedia&&(null==u&&(u=f.matchMedia("(prefers-reduced-motion: reduce)")),u.matches)}};function e$(r,n,i){i[r]&&-1!==i[r].indexOf(n)||(i[r]=i[r]||[],i[r].push(n))}function eG(r,n,i){if(i&&i[r]){let o=i[r].indexOf(n);-1!==o&&i[r].splice(o,1)}}class eW{constructor(r,n={}){B(this,n),this.type=r}}class eH extends eW{constructor(r,n={}){super("error",B({error:r},n))}}class eX{on(r,n){return this._listeners=this._listeners||{},e$(r,n,this._listeners),this}off(r,n){return eG(r,n,this._listeners),eG(r,n,this._oneTimeListeners),this}once(r,n){return n?(this._oneTimeListeners=this._oneTimeListeners||{},e$(r,n,this._oneTimeListeners),this):new Promise(n=>this.once(r,n))}fire(r,n){"string"==typeof r&&(r=new eW(r,n||{}));let i=r.type;if(this.listens(i)){r.target=this;let n=this._listeners&&this._listeners[i]?this._listeners[i].slice():[];for(let i of n)i.call(this,r);let o=this._oneTimeListeners&&this._oneTimeListeners[i]?this._oneTimeListeners[i].slice():[];for(let n of o)eG(i,n,this._oneTimeListeners),n.call(this,r);let a=this._eventedParent;a&&(B(r,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),a.fire(r))}else r instanceof eH&&console.error(r.error);return this}listens(r){return!!(this._listeners&&this._listeners[r]&&this._listeners[r].length>0||this._oneTimeListeners&&this._oneTimeListeners[r]&&this._oneTimeListeners[r].length>0||this._eventedParent&&this._eventedParent.listens(r))}setEventedParent(r,n){return this._eventedParent=r,this._eventedParentData=n,this}}var eY=JSON.parse('{"$version":8,"$root":{"version":{"required":true,"type":"enum","values":[8]},"name":{"type":"string"},"metadata":{"type":"*"},"center":{"type":"array","value":"number"},"zoom":{"type":"number"},"bearing":{"type":"number","default":0,"period":360,"units":"degrees"},"pitch":{"type":"number","default":0,"units":"degrees"},"light":{"type":"light"},"terrain":{"type":"terrain"},"fog":{"type":"fog"},"sources":{"required":true,"type":"sources"},"sprite":{"type":"string"},"glyphs":{"type":"string"},"transition":{"type":"transition"},"projection":{"type":"projection"},"layers":{"required":true,"type":"array","value":"layer"}},"sources":{"*":{"type":"source"}},"source":["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],"source_vector":{"type":{"required":true,"type":"enum","values":{"vector":{}}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"scheme":{"type":"enum","values":{"xyz":{},"tms":{}},"default":"xyz"},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"attribution":{"type":"string"},"promoteId":{"type":"promoteId"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster":{"type":{"required":true,"type":"enum","values":{"raster":{}}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512,"units":"pixels"},"scheme":{"type":"enum","values":{"xyz":{},"tms":{}},"default":"xyz"},"attribution":{"type":"string"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_dem":{"type":{"required":true,"type":"enum","values":{"raster-dem":{}}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512,"units":"pixels"},"attribution":{"type":"string"},"encoding":{"type":"enum","values":{"terrarium":{},"mapbox":{}},"default":"mapbox"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_geojson":{"type":{"required":true,"type":"enum","values":{"geojson":{}}},"data":{"type":"*"},"maxzoom":{"type":"number","default":18},"attribution":{"type":"string"},"buffer":{"type":"number","default":128,"maximum":512,"minimum":0},"filter":{"type":"*"},"tolerance":{"type":"number","default":0.375},"cluster":{"type":"boolean","default":false},"clusterRadius":{"type":"number","default":50,"minimum":0}
163,"clusterMaxZoom":{"type":"number"},"clusterMinPoints":{"type":"number"},"clusterProperties":{"type":"*"},"lineMetrics":{"type":"boolean","default":false},"generateId":{"type":"boolean","default":false},"promoteId":{"type":"promoteId"}},"source_video":{"type":{"required":true,"type":"enum","values":{"video":{}}},"urls":{"required":true,"type":"array","value":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"source_image":{"type":{"required":true,"type":"enum","values":{"image":{}}},"url":{"required":true,"type":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"layer":{"id":{"type":"string","required":true},"type":{"type":"enum","values":{"fill":{},"line":{},"symbol":{},"circle":{},"heatmap":{},"fill-extrusion":{},"raster":{},"hillshade":{},"background":{},"sky":{}},"required":true},"metadata":{"type":"*"},"source":{"type":"string"},"source-layer":{"type":"string"},"minzoom":{"type":"number","minimum":0,"maximum":24},"maxzoom":{"type":"number","minimum":0,"maximum":24},"filter":{"type":"filter"},"layout":{"type":"layout"},"paint":{"type":"paint"}},"layout":["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background","layout_sky"],"layout_background":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_sky":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_fill":{"fill-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_circle":{"circle-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_heatmap":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_fill-extrusion":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"},"fill-extrusion-edge-radius":{"type":"number","private":true,"default":0,"minimum":0,"maximum":1
vendor: 16,128 bytes, line 163
163,"property-type":"constant"}},"layout_line":{"line-cap":{"type":"enum","values":{"butt":{},"round":{},"square":{}},"default":"butt","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-join":{"type":"enum","values":{"bevel":{},"round":{},"miter":{}},"default":"miter","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{"type":"number","default":2,"requires":[{"line-join":"miter"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-round-limit":{"type":"number","default":1.05,"requires":[{"line-join":"round"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_symbol":{"symbol-placement":{"type":"enum","values":{"point":{},"line":{},"line-center":{}},"default":"point","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-spacing":{"type":"number","default":250,"minimum":1,"units":"pixels","requires":[{"symbol-placement":"line"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{"type":"boolean","default":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{"type":"enum","values":{"auto":{},"viewport-y":{},"source":{}},"default":"auto","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{"type":"boolean","default":false,"requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{"type":"boolean","default":false,"requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-optional":{"type":"boolean","default":false,"requires":["icon-image","text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-size":{"type":"number","default":1,"minimum":0,"units":"factor of the original icon size","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{"type":"enum","values":{"none":{},"width":{},"height":{},"both":{}},"default":"none","requires":["icon-image","text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{"type":"array","value":"number","length":4,"default":[0,0,0,0],"units":"pixels","requires":["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-image":{"type":"resolvedImage","tokens":true,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{"type":"number","default":0,"period":360,"units":"degrees","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{"type":"number","default":2,"minimum":0,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{"type":"boolean","default":false,"requires":["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-offset":{"type":"array","value":"number","length":2,"default":[0,0],"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{"type":"enum","values":{"center":{},"left":{},"right":{},"top":{},"bottom":{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},"default":"center","requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-field":{"type":"formatted","default":"","tokens":true,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-font":{"type":"array","value":"string","default":["Open Sans Regular","Arial Unicode MS Regular"],"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-size":{"type":"number","default":16,"minimum":0,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{"type":"number","default":10,"minimum":0,"units":"ems","requires":["text-field",{"symbol-placement":["point"]}],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{"type":"number","default":1.2,"units":"ems","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{"type":"number","default":0,"units":"ems","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-justify":{"type":"enum","values":{"auto":{},"left":{},"center":{},"right":{}},"default":"center","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{"type":"number","units":"ems","default":0,"requires":["text-field"],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["zoom","feature"]}},"text-variable-anchor":{"type":"array","value":"enum","values":{"center":{},"left":{},"right":{},"top":{},"bottom":{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},"requires":["text-field",{"symbol-placement":["point"]}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-anchor":{"type":"enum","values":{"center":{},"left":{},"right":{},"top":{},"bottom":{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},"default":"center","requires":["text-field",{"!":"text-variable-anchor"}],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{"type":"number","default":45,"units":"degrees","requires":["text-field",{"symbol-placement":["line","line-center"]}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-writing-mode":{"type":"array","value":"enum","values":{"horizontal":{},"vertical":{}},"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-rotate":{"type":"number","default":0,"period":360,"units":"degrees","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-padding":{"type":"number","default":2,"minimum":0,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-keep-upright":{"type":"boolean","default":true,"requires":["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-transform":{"type":"enum","values":{"none":{},"uppercase":{},"lowercase":{}},"default":"none","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-offset":{"type":"array","value":"number","units":"ems","length":2,"default":[0,0],"requires":["text-field",{"!":"text-radial-offset"}],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{"type":"boolean","default":false,"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{"type":"boolean","default":false,"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-optional":{"type":"boolean","default":false,"requires":["text-field","icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_raster":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_hillshade":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"filter":{"type":"array","value":"*"},"filter_symbol":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature","pitch","distance-from-center"]}},"filter_fill":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_line":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_circle":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_fill-extrusion":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_heatmap":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_operator":{"type":"enum","values":{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},"in":{},"!in":{},"all":{},"any":{},"none":{},"has":{},"!has":{},"within":{}}},"geometry_type":{"type":"enum","values":{"Point":{},"LineString":{},"Polygon":{}}},"function":{"expression":{"type":"expression"},"stops":{"type":"array","value":"function_stop"},"base":{"type":"number","default":1,"minimum":0},"property":{"type":"string","default":"$zoom"},"type":{"type":"enum","values":{"identity":{},"exponential":{},"interval":{},"categorical":{}},"default":"exponential"},"colorSpace":{"type":"enum","values":{"rgb":{},"lab":{},"hcl":{}},"default":"rgb"},"default":{"type":"*","required":false}},"function_stop":{"type":"array","minimum":0,"maximum":24,"value":["number","color"],"length":2},"expression":{"type":"array","value":"*","minimum":1},"fog":{"range":{"type":"array","default":[0.5,10],"minimum":-20,"maximum":20,"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"high-color":{"type":"color","property-type":"data-constant","default":"#245cdf","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"space-color":{"type":"color","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"horizon-blend":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,0.2,7,0.1],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"star-intensity":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],5,0.35,6,0],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"light":{"anchor":{"type":"enum","default":"viewport","values":{"map":{},"viewport":{}},"property-type":"data-constant","transition":false,"expression":{"interpolated":false,"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"projection":{"name":{"type":"enum","values":{"albers":{},"equalEarth":{},"equirectangular":{},"lambertConformalConic":{},"mercator":{},"naturalEarth":{},"winkelTripel":{},"globe":{}},"default":"mercator","required":true},"center":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-180,-90],"maximum":[180,90],"transition":false,"requires":[{"name":["albers","lambertConformalConic"]}]},"parallels":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-90,-90],"maximum":[90,90],"transition":false,"requires":[{"name":["albers","lambertConformalConic"]}]}},"terrain":{"source":{"type":"string","required":true},"exaggeration":{"type":"number","property-type":"data-constant","default":1,"minimum":0,"maximum":1000,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true,"requires":["source"]}},"paint":["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background","paint_sky"],"paint_fill":{"fill-antialias":{"type":"boolean","default":true,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"fill-pattern"}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{"type":"color","transition":true,"requires":[{"!":"fill-pattern"},{"fill-antialias":true}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["fill-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-pattern":{"type":"resolvedImage","transition":
vendor: 3,928 bytes, line 163
163false,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"fill-extrusion-pattern"}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["fill-extrusion-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{"type":"resolvedImage","transition":false,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-extrusion-height":{"type":"number","default":0,"minimum":0,"units":"meters","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{"type":"number","default":0,"minimum":0,"units":"meters","transition":true,"requires":["fill-extrusion-height"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{"type":"boolean","default":true,"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-ambient-occlusion-intensity":{"property-type":"data-constant","type":"number","private":true,"default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-radius":{"property-type":"data-constant","type":"number","private":true,"default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true,"requires":["fill-extrusion-edge-radius"]},"fill-extrusion-rounded-roof":{"type":"boolean","default":true,"requires":["fill-extrusion-edge-radius"],"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_line":{"line-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"line-pattern"}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["line-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"line-width":{"type":"number","default":1,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{"type":"number","default":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"}
163,"line-blur":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{"type":"array","value":"number","minimum":0,"transition":false,"units":"line widths","requires":[{"!":"line-pattern"}],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-pattern":{"type":"resolvedImage","transition":false,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-gradient":{"type":"color","transition":false,"requires":[{"!":"line-pattern"},{"source":"geojson","has":{"lineMetrics":true}}],"expression":{"interpolated":true,"parameters":["line-progress"]},"property-type":"color-ramp"},"line-trim-offset":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1],"transition":false,"requires":[{"source":"geojson","has":{"lineMetrics":true}}],"property-type":"constant"}},"paint_circle":{"circle-radius":{"type":"number","default":5,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["circle-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{"type":"enum","values":{"map":{},"viewport":{}},"default":"viewport","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"}},"paint_heatmap":{"heatmap-radius":{"type":"number","default":30,"minimum":1,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{"type":"number","default":1,"minimum":0,"transition":false,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"heatmap-color":{"type":"color","default":["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",0.1,"royalblue",0.3,"cyan",0.5,"lime",0.7,"yellow",1,"red"],"transition":false,"expression":{"interpolated":true,"parameters":["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_symbol":{"icon-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{"type":"color","default":"#000000","transition":true,"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["icon-image","icon-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{"type":"color","default":"#000000","transition":true,"overridable":true,"requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["text-field","text-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_raster":{"raster-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{"type":"number","default":0,"period":360,"transition":true,"units":"degrees","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-resampling":{"type":"enum","values":{"linear":{},"nearest":{}},"default":"linear","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{"type":"number","default":300,"minimum":0,"transition":false,"units":"milliseconds","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_hillshade":{"hillshade-illumination-direction":{"type":"number","default":335,"minimum":0,"maximum":359,"transition":false,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"viewport","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{"type":"number","default":0.5,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{"type":"color","default":"#FFFFFF","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_background":{"background-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"background-pattern"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"background-pattern":{"type":"resolvedImage","transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"background-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_sky":{"sky-type":{"type":"enum","values":{"gradient":{},"atmosphere":{}},"default":"atmosphere","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{"type":"array","value":"number","length":2,"units":"degrees","minimum":[0,0],"maximum":[360,180],"transition":false,"requires":[{"sky-type":"atmosphere"}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{"type":"number","requires":[{"sky-type":"atmosphere"}],"default":10,"minimum":0,"maximum":100,"transition":false,"property-type":"data-constant"},"sky-gradient-center":{"type":"array","requires":[{"sky-type":"gradient"}],"value":"number","default":[0,0],"length":2,"units":"degrees","minimum":[0,0],"maximum":[360,180],"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{"type":"number","requires":[{"sky-type":"gradient"}],"default":90,"minimum":0,"maximum":180,"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient":{"type":"color","default":["interpolate",["linear"],["sky-radial-progress"],0.8,"#87ceeb",1,"white"],"transition":false,"requires":[{"sky-type":"gradient"}],"expression":{"interpolated":true,"parameters":["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{"type":"color","default":"white","transition":false,"requires":[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-atmosphere-color":{"type":"color","default":"white","transition":false,"requires":[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"transition":{"duration":{"type":"number","default":300,"minimum":0,"units":"milliseconds"},"delay":{"type":"number","default":0,"minimum":0,"units":"milliseconds"}},"property-type":{"data-driven":{"type":"property-type"},"color-ramp":{"type":"property-type"},"data-constant":{"type":"property-type"},"constant":{"type":"property-type"}},"promoteId":{"*":{"type":"string"}}}');function eK(r,...n){for(let i of n)for(let n in i)r[n]=i[n];return r}function eJ(r){return r instanceof Number||r instanceof String||r instanceof Boolean?r.valueOf():r}function eQ(r){if(Array.isArray(r))return r.map(eQ);if(r instanceof Object&&!(r instanceof Number||r instanceof String||r instanceof Boolean)){let n={};for(let i in r)n[i]=eQ(r[i]);return n}return eJ(r)}
163var e0=class extends Error{constructor(r,n){super(n),this.message=n,this.key=r}};class e1{constructor(r,n=[]){for(let[i,o]of(this.parent=r,this.bindings={},n))this.bindings[i]=o}concat(r){return new e1(this,r)}get(r){if(this.bindings[r])return this.bindings[r];if(this.parent)return this.parent.get(r);throw Error(`${r} not found in scope.`)}has(r){return!!this.bindings[r]||!!this.parent&&this.parent.has(r)}}let e2={kind:"null"},e3={kind:"number"},e4={kind:"string"},e5={kind:"boolean"},e6={kind:"color"},e8={kind:"object"},e9={kind:"value"},e7={kind:"collator"},te={kind:"formatted"},tt={kind:"resolvedImage"};function tr(r,n){return{kind:"array",itemType:r,N:n}}function tn(r){if("array"===r.kind){let n=tn(r.itemType);return"number"==typeof r.N?`array<${n}, ${r.N}>`:"value"===r.itemType.kind?"array":`array<${n}>`}return r.kind}let ti=[e2,e3,e4,e5,e6,te,e8,tr(e9),tt];function to(r,n){if("error"===n.kind)return null;if("array"===r.kind){if("array"===n.kind&&(0===n.N&&"value"===n.itemType.kind||!to(r.itemType,n.itemType))&&("number"!=typeof r.N||r.N===n.N))return null}else{if(r.kind===n.kind)return null;if("value"===r.kind){for(let r of ti)if(!to(r,n))return null}}return`Expected ${tn(r)} but found ${tn(n)} instead.`}function ta(r,n){return n.some(n=>n.kind===r.kind)}function ts(r,n){return n.some(n=>"null"===n?null===r:"array"===n?Array.isArray(r):"object"===n?r&&!Array.isArray(r)&&"object"==typeof r:n===typeof r)}var tl,tc={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function tu(r){return(r=Math.round(r))<0?0:r>255?255:r}function td(r){return tu("%"===r[r.length-1]?parseFloat(r)/100*255:parseInt(r))}function th(r){var n;return(n="%"===r[r.length-1]?parseFloat(r)/100:parseFloat(r))<0?0:n>1?1:n}function tp(r,n,i){return i<0?i+=1:i>1&&(i-=1),6*i<1?r+(n-r)*i*6:2*i<1?n:3*i<2?r+(n-r)*(2/3-i)*6:r}try{tl=({}).parseCSSColor=function(r){var n,i=r.replace(/ /g,"").toLowerCase();if(i in tc)return tc[i].slice();if("#"===i[0])return 4===i.length?(n=parseInt(i.substr(1),16))>=0&&n<=4095?[(3840&n)>>4|(3840&n)>>8,240&n|(240&n)>>4,15&n|(15&n)<<4,1]:null:7===i.length&&(n=parseInt(i.substr(1),16))>=0&&n<=16777215?[(16711680&n)>>16,(65280&n)>>8,255&n,1]:null;var o=i.indexOf("("),a=i.indexOf(")");if(-1!==o&&a+1===i.length){var s=i.substr(0,o),l=i.substr(o+1,a-(o+1)).split(","),c=1;switch(s){case"rgba":if(4!==l.length)break;c=th(l.pop());case"rgb":return 3!==l.length?null:[td(l[0]),td(l[1]),td(l[2]),c];case"hsla":if(4!==l.length)break;c=th(l.pop());case"hsl":if(3!==l.length)break;var u=(parseFloat(l[0])%360+360)%360/360,d=th(l[1]),h=th(l[2]),p=h<=.5?h*(d+1):h+d-h*d,f=2*h-p;return[tu(255*tp(f,p,u+1/3)),tu(255*tp(f,p,u)),tu(255*tp(f,p,u-1/3)),c]}}return null}}catch(r){}class tf{constructor(r,n,i,o=1){this.r=r,this.g=n,this.b=i,this.a=o}static parse(r){if(!r)return;if(r instanceof tf)return r;if("string"!=typeof r)return;let n=tl(r);return n?new tf(n[0]/255*n[3],n[1]/255*n[3],n[2]/255*n[3],n[3]):void 0}toString(){let[r,n,i,o]=this.toArray();return`rgba(${Math.round(r)},${Math.round(n)},${Math.round(i)},${o})`}toArray(){let{r:r,g:n,b:i,a:o}=this;return 0===o?[0,0,0,0]:[255*r/o,255*n/o,255*i/o,o]}toArray01(){let{r:r,g:n,b:i,a:o}=this;
163return 0===o?[0,0,0,0]:[r/o,n/o,i/o,o]}toArray01PremultipliedAlpha(){let{r:r,g:n,b:i,a:o}=this;return[r,n,i,o]}}tf.black=new tf(0,0,0,1),tf.white=new tf(1,1,1,1),tf.transparent=new tf(0,0,0,0),tf.red=new tf(1,0,0,1),tf.blue=new tf(0,0,1,1);class tm{constructor(r,n,i){this.sensitivity=r?n?"variant":"case":n?"accent":"base",this.locale=i,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(r,n){return this.collator.compare(r,n)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class tg{constructor(r,n,i,o,a){this.text=r.normalize?r.normalize():r,this.image=n,this.scale=i,this.fontStack=o,this.textColor=a}}class tv{constructor(r){this.sections=r}static fromString(r){return new tv([new tg(r,null,null,null,null)])}isEmpty(){return 0===this.sections.length||!this.sections.some(r=>0!==r.text.length||r.image&&0!==r.image.name.length)}static factory(r){return r instanceof tv?r:tv.fromString(r)}toString(){return 0===this.sections.length?"":this.sections.map(r=>r.text).join("")}serialize(){let r=["format"];for(let n of this.sections){if(n.image){r.push(["image",n.image.name]);continue}r.push(n.text);let i={};n.fontStack&&(i["text-font"]=["literal",n.fontStack.split(",")]),n.scale&&(i["font-scale"]=n.scale),n.textColor&&(i["text-color"]=["rgba"].concat(n.textColor.toArray())),r.push(i)}return r}}class ty{constructor(r){this.name=r.name,this.available=r.available}toString(){return this.name}static fromString(r){return r?new ty({name:r,available:!1}):null}serialize(){return["image",this.name]}}function tb(r,n,i,o){return"number"==typeof r&&r>=0&&r<=255&&"number"==typeof n&&n>=0&&n<=255&&"number"==typeof i&&i>=0&&i<=255?void 0===o||"number"==typeof o&&o>=0&&o<=1?null:`Invalid rgba value [${[r,n,i,o].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${("number"==typeof o?[r,n,i,o]:[r,n,i]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function tx(r){if(null===r||"string"==typeof r||"boolean"==typeof r||"number"==typeof r||r instanceof tf||r instanceof tm||r instanceof tv||r instanceof ty)return!0;if(Array.isArray(r)){for(let n of r)if(!tx(n))return!1;return!0}if("object"==typeof r){for(let n in r)if(!tx(r[n]))return!1;return!0}return!1}function t_(r){if(null===r)return e2;if("string"==typeof r)return e4;if("boolean"==typeof r)return e5;if("number"==typeof r)return e3;if(r instanceof tf)return e6;if(r instanceof tm)return e7;if(r instanceof tv)return te;if(r instanceof ty)return tt;if(Array.isArray(r)){let n;let i=r.length;for(let i of r){let r=t_(i);if(n){if(n===r)continue;n=e9;break}n=r}return tr(n||e9,i)}return e8}function tw(r){let n=typeof r;return null===r?"":"string"===n||"number"===n||"boolean"===n?String(r):r instanceof tf||r instanceof tv||r instanceof ty?r.toString():JSON.stringify(r)}class tS{constructor(r,n){this.type=r,this.value=n}static parse(r,n){if(2!==r.length)return n.error(`'literal' expression requires exactly one argument, but found ${r.length-1} instead.`);if(!tx(r[1]))return n.error("invalid value");let i=r[1],o=t_(i),a=n.expectedType;return"array"===o.kind&&0===o.N&&a&&"array"===a.kind&&("number"!=typeof a.N||0===a.N)&&(o=a),new tS(o,i)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof tf?["rgba"].concat(this.value.toArray()):this.value instanceof tv?this.value.serialize():this.value}}var tT=class{constructor(r){this.name="ExpressionEvaluationError",this.message=r}toJSON(){return this.message}};let tE={string:e4,number:e3,boolean:e5,object:e8};class tk{constructor(r,n){this.type=r,this.args=n}static parse(r,n){if(r.length<2)return n.error("Expected at least one argument.");let i,o=1,a=r[0];if("array"===a){let a,s;if(r.length>2){let i=r[1];if("string"!=typeof i||!(i in tE)||"object"===i)return n.error('The item type argument of "array" must be one of string, number, boolean',1);a=tE[i],o++}else a=e9;if(r.length>3){if(null!==r[2]&&("number"!=typeof r[2]||r[2]<0||r[2]!==Math.floor(r[2])))return n.error('The length argument to "array" must be a positive integer literal',2);s=r[2],o++}i=tr(a,s)}else i=tE[a];let s=[];for(;o<r.length;o++){let i=n.parse(r[o],o,e9);if(!i)return null;s.push(i)}return new tk(i,s)}evaluate(r){for(let n=0;n<this.args.length;n++){let i=this.args[n].evaluate(r);if(!to(this.type,t_(i)))return i;if(n===this.args.length-1)throw new tT(`Expected value to be of type ${tn(this.type)}, but found ${tn(t_(i))} instead.`)}return null}
163eachChild(r){this.args.forEach(r)}outputDefined(){return this.args.every(r=>r.outputDefined())}serialize(){let r=this.type,n=[r.kind];if("array"===r.kind){let i=r.itemType;if("string"===i.kind||"number"===i.kind||"boolean"===i.kind){n.push(i.kind);let o=r.N;("number"==typeof o||this.args.length>1)&&n.push(o)}}return n.concat(this.args.map(r=>r.serialize()))}}class tC{constructor(r){this.type=te,this.sections=r}static parse(r,n){if(r.length<2)return n.error("Expected at least one argument.");let i=r[1];if(!Array.isArray(i)&&"object"==typeof i)return n.error("First argument must be an image or text section.");let o=[],a=!1;for(let i=1;i<=r.length-1;++i){let s=r[i];if(a&&"object"==typeof s&&!Array.isArray(s)){a=!1;let r=null;if(s["font-scale"]&&!(r=n.parse(s["font-scale"],1,e3)))return null;let i=null;if(s["text-font"]&&!(i=n.parse(s["text-font"],1,tr(e4))))return null;let l=null;if(s["text-color"]&&!(l=n.parse(s["text-color"],1,e6)))return null;let c=o[o.length-1];c.scale=r,c.font=i,c.textColor=l}else{let s=n.parse(r[i],1,e9);if(!s)return null;let l=s.type.kind;if("string"!==l&&"value"!==l&&"null"!==l&&"resolvedImage"!==l)return n.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");a=!0,o.push({content:s,scale:null,font:null,textColor:null})}}return new tC(o)}evaluate(r){return new tv(this.sections.map(n=>{let i=n.content.evaluate(r);return t_(i)===tt?new tg("",i,null,null,null):new tg(tw(i),null,n.scale?n.scale.evaluate(r):null,n.font?n.font.evaluate(r).join(","):null,n.textColor?n.textColor.evaluate(r):null)}))}eachChild(r){for(let n of this.sections)r(n.content),n.scale&&r(n.scale),n.font&&r(n.font),n.textColor&&r(n.textColor)}outputDefined(){return!1}serialize(){let r=["format"];for(let n of this.sections){r.push(n.content.serialize());let i={};n.scale&&(i["font-scale"]=n.scale.serialize()),n.font&&(i["text-font"]=n.font.serialize()),n.textColor&&(i["text-color"]=n.textColor.serialize()),r.push(i)}return r}}class tP{constructor(r){this.type=tt,this.input=r}static parse(r,n){if(2!==r.length)return n.error("Expected two arguments.");let i=n.parse(r[1],1,e4);return i?new tP(i):n.error("No image name provided.")}evaluate(r){let n=this.input.evaluate(r),i=ty.fromString(n);return i&&r.availableImages&&(i.available=r.availableImages.indexOf(n)>-1),i}eachChild(r){r(this.input)}outputDefined(){return!1}serialize(){return["image",this.input.serialize()]}}let tO={"to-boolean":e5,"to-color":e6,"to-number":e3,"to-string":e4};class tj{constructor(r,n){this.type=r,this.args=n}static parse(r,n){if(r.length<2)return n.error("Expected at least one argument.");let i=r[0];if(("to-boolean"===i||"to-string"===i)&&2!==r.length)return n.error("Expected one argument.");let o=tO[i],a=[];for(let i=1;i<r.length;i++){let o=n.parse(r[i],i,e9);if(!o)return null;a.push(o)}return new tj(o,a)}evaluate(r){if("boolean"===this.type.kind)return Boolean(this.args[0].evaluate(r));if("color"===this.type.kind){let n,i;for(let o of this.args){if(n=o.evaluate(r),i=null,n instanceof tf)return n;if("string"==typeof n){let i=r.parseColor(n);if(i)return i}else if(Array.isArray(n)&&!(i=n.length<3||n.length>4?`Invalid rbga value ${JSON.stringify(n)}: expected an array containing either three or four numeric values.`:tb(n[0],n[1],n[2],n[3])))return new tf(n[0]/255,n[1]/255,n[2]/255,n[3])}throw new tT(i||`Could not parse color from value '${"string"==typeof n?n:String(JSON.stringify(n))}'`)}if("number"===this.type.kind){let n=null;for(let i of this.args){if(null===(n=i.evaluate(r)))return 0;let o=Number(n);if(!isNaN(o))return o}throw new tT(`Could not convert ${JSON.stringify(n)} to number.`)}return"formatted"===this.type.kind?tv.fromString(tw(this.args[0].evaluate(r))):"resolvedImage"===this.type.kind?ty.fromString(tw(this.args[0].evaluate(r))):tw(this.args[0].evaluate(r))}eachChild(r){this.args.forEach(r)}outputDefined(){return this.args.every(r=>r.outputDefined())}serialize(){if("formatted"===this.type.kind)return new tC([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new tP(this.args[0]).serialize();let r=[`to-${this.type.kind}`];return this.eachChild(n=>{r.push(n.serialize())}),r}}let tA=["Unknown","Point","LineString","Polygon"];var tM=class{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null,this.featureTileCoord=null,this.featureDistanceData=null}id(){return this.feature&&void 0!==this.feature.id?this.feature.id:null}geometryType(){return this.feature?"number"==typeof this.feature.type?tA[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}distanceFromCenter(){if(this.featureTileCoord&&this.featureDistanceData){let r=this.featureDistanceData.center,n=this.featureDistanceData.scale,{x:i,y:o}=this.featureTileCoord;return this.featureDistanceData.bearing[0]*(i*n-r[0])+this.featureDistanceData.bearing[1]*(o*n-r[1])}return 0}parseColor(r){let n=this._parseColorCache[r];return n||(n=this._parseColorCache[r]=tf.parse(r)),n}};class tI{constructor(r,n,i,o){this.name=r,this.type=n,this._evaluate=i,this.args=o}evaluate(r){return this._evaluate(r,this.args)}
163eachChild(r){this.args.forEach(r)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map(r=>r.serialize()))}static parse(r,n){let i=r[0],o=tI.definitions[i];if(!o)return n.error(`Unknown expression "${i}". If you wanted a literal array, use ["literal", [...]].`,0);let a=Array.isArray(o)?o[0]:o.type,s=Array.isArray(o)?[[o[1],o[2]]]:o.overloads,l=s.filter(([n])=>!Array.isArray(n)||n.length===r.length-1),c=null;for(let[o,s]of l){c=new tK(n.registry,n.path,null,n.scope);let l=[],u=!1;for(let n=1;n<r.length;n++){let i=r[n],a=Array.isArray(o)?o[n-1]:o.type,s=c.parse(i,1+l.length,a);if(!s){u=!0;break}l.push(s)}if(!u){if(Array.isArray(o)&&o.length!==l.length)c.error(`Expected ${o.length} arguments, but found ${l.length} instead.`);else{for(let r=0;r<l.length;r++){let n=Array.isArray(o)?o[r]:o.type,i=l[r];c.concat(r+1).checkSubtype(n,i.type)}if(0===c.errors.length)return new tI(i,a,s,l)}}}if(1===l.length)n.errors.push(...c.errors);else{let i=(l.length?l:s).map(([r])=>Array.isArray(r)?`(${r.map(tn).join(", ")})`:`(${tn(r.type)}...)`).join(" | "),o=[];for(let i=1;i<r.length;i++){let a=n.parse(r[i],1+o.length);if(!a)return null;o.push(tn(a.type))}n.error(`Expected arguments of type ${i}, but found (${o.join(", ")}) instead.`)}return null}static register(r,n){for(let i in tI.definitions=n,n)r[i]=tI}}class tZ{constructor(r,n,i){this.type=e7,this.locale=i,this.caseSensitive=r,this.diacriticSensitive=n}static parse(r,n){if(2!==r.length)return n.error("Expected one argument.");let i=r[1];if("object"!=typeof i||Array.isArray(i))return n.error("Collator options argument must be an object.");let o=n.parse(void 0!==i["case-sensitive"]&&i["case-sensitive"],1,e5);if(!o)return null;let a=n.parse(void 0!==i["diacritic-sensitive"]&&i["diacritic-sensitive"],1,e5);if(!a)return null;let s=null;return!i.locale||(s=n.parse(i.locale,1,e4))?new tZ(o,a,s):null}evaluate(r){return new tm(this.caseSensitive.evaluate(r),this.diacriticSensitive.evaluate(r),this.locale?this.locale.evaluate(r):null)}eachChild(r){r(this.caseSensitive),r(this.diacriticSensitive),this.locale&&r(this.locale)}outputDefined(){return!1}serialize(){let r={};return r["case-sensitive"]=this.caseSensitive.serialize(),r["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(r.locale=this.locale.serialize()),["collator",r]}}function tR(r,n){r[0]=Math.min(r[0],n[0]),r[1]=Math.min(r[1],n[1]),r[2]=Math.max(r[2],n[0]),r[3]=Math.max(r[3],n[1])}function tD(r,n){return!(r[0]<=n[0]||r[2]>=n[2]||r[1]<=n[1]||r[3]>=n[3])}function tL(r,n){var i,o;let a=!1;for(let s=0,l=n.length;s<l;s++){let l=n[s];for(let n=0,s=l.length;n<s-1;n++){if(function(r,n,i){let o=r[0]-n[0],a=r[1]-n[1],s=r[0]-i[0],l=r[1]-i[1];return o*l-s*a==0&&o*s<=0&&a*l<=0}(r,l[n],l[n+1]))return!1;(i=l[n])[1]>r[1]!=(o=l[n+1])[1]>r[1]&&r[0]<(o[0]-i[0])*(r[1]-i[1])/(o[1]-i[1])+i[0]&&(a=!a)}}return a}function tz(r,n,i,o){let a=o[0]-i[0],s=o[1]-i[1],l=(r[0]-i[0])*s-a*(r[1]-i[1]),c=(n[0]-i[0])*s-a*(n[1]-i[1]);return l>0&&c<0||l<0&&c>0}function tB(r,n){for(let i=0;i<r.length;++i)if(!tL(r[i],n))return!1;for(let i=0;i<r.length-1;++i)if(function(r,n,i){var o,a,s,l;for(let c of i)for(let i=0;i<c.length-1;++i)if(0!=(s=[(a=c[i+1])[0]-(o=c[i])[0],a[1]-o[1]])[0]*(l=[n[0]-r[0],n[1]-r[1]])[1]-s[1]*l[0]&&tz(r,n,o,a)&&tz(o,a,r,n))return!0;return!1}(r[i],r[i+1],n))return!1;return!0}function tF(r,n,i){let o=[];for(let a=0;a<r.length;a++){let s=[];for(let o=0;o<r[a].length;o++){let l=function(r,n){let i=(180+r[0])/360,o=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+r[1]*Math.PI/360)))/360,a=Math.pow(2,n.z);return[Math.round(i*a*8192),Math.round(o*a*8192)]}(r[a][o],i);tR(n,l),s.push(l)}o.push(s)}return o}function tN(r,n,i){let o=[];for(let a=0;a<r.length;a++){let s=tF(r[a],n,i);o.push(s)}return o}function tU(r,n,i,o){if(r[0]<i[0]||r[0]>i[2]){let n=.5*o,a=r[0]-i[0]>n?-o:i[0]-r[0]>n?o:0;0===a&&(a=r[0]-i[2]>n?-o:i[2]-r[0]>n?o:0),r[0]+=a}tR(n,r)}function tV(r,n,i,o){let a=8192*Math.pow(2,o.z),s=[8192*o.x,8192*o.y],l=[];if(!r)return l;for(let o of r)for(let r of o){let o=[r.x+s[0],r.y+s[1]];tU(o,n,i,a),l.push(o)}return l}function tq(r,n,i,o){var a;let s=8192*Math.pow(2,o.z),l=[8192*o.x,8192*o.y],c=[];if(!r)return c;for(let i of r){let r=[];for(let o of i){let i=[o.x+l[0],o.y+l[1]];tR(n,i),r.push(i)}c.push(r)}if(n[2]-n[0]<=s/2)for(let r of((a=n)[0]=a[1]=1/0,a[2]=a[3]=-1/0,c))for(let o of r)tU(o,n,i,s);return c}class t${constructor(r,n){this.type=e5,this.geojson=r,this.geometries=n}static parse(r,n){if(2!==r.length)return n.error(`'within' expression requires exactly one argument, but found ${r.length-1} instead.`);if(tx(r[1])){let n=r[1];if("FeatureCollection"===n.type)for(let r=0;r<n.features.length;++r){let i=n.features[r].geometry.type;if("Polygon"===i||"MultiPolygon"===i)return new t$(n,n.features[r].geometry)}else if("Feature"===n.type){let r=n.geometry.type;if("Polygon"===r||"MultiPolygon"===r)return new t$(n,n.geometry)}else if("Polygon"===n.type||"MultiPolygon"===n.type)return new t$(n,n)}return n.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(r){if(null!=r.geometry()&&null!=r.canonicalID()){if("Point"===r.geometryType())return function(r,n){let i=[1/0,1/0,-1/0,-1/0],o=[1/0,1/0,-1/0,-1/0],a=r.canonicalID();if(!a)return!1;if("Polygon"===n.type){let s=tF(n.coordinates,o,a),l=tV(r.geometry(),i,o,a);if(!tD(i,o))return!1;for(let r of l)if(!tL(r,s))return!1}if("MultiPolygon"===n.type){let s=tN(n.coordinates,o,a),l=tV(r.geometry(),i,o,a);if(!tD(i,o))return!1;for(let r of l)if(!function(r,n){for(let i=0;i<n.length;i++)if(tL(r,n[i]))return!0;return!1}(r,s))return!1}return!0}(r,this.geometries);if("LineString"===r.geometryType())return function(r,n){let i=[1/0,1/0,-1/0,-1/0],o=[1/0,1/0,-1/0,-1/0],a=r.canonicalID();if(!a)return!1;if("Polygon"===n.type){let s=tF(n.coordinates,o,a),l=tq(r.geometry(),i,o,a);if(!tD(i,o))return!1;for(let r of l)if(!tB(r,s))return!1}if("MultiPolygon"===n.type){let s=tN(n.coordinates,o,a),l=tq(r.geometry(),i,o,a);if(!tD(i,o))return!1;for(let r of l)if(!function(r,n){for(let i=0;i<n.length;i++)if(tB(r,n[i]))return!0;return!1}(r,s))return!1}return!0}(r,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}serialize(){return["within",this.geojson]}}function tG(r){if(r instanceof tI&&("get"===r.name&&1===r.args.length||"feature-state"===r.name||"has"===r.
163name&&1===r.args.length||"properties"===r.name||"geometry-type"===r.name||"id"===r.name||/^filter-/.test(r.name))||r instanceof t$)return!1;let n=!0;return r.eachChild(r=>{n&&!tG(r)&&(n=!1)}),n}function tW(r){if(r instanceof tI&&"feature-state"===r.name)return!1;let n=!0;return r.eachChild(r=>{n&&!tW(r)&&(n=!1)}),n}function tH(r,n){if(r instanceof tI&&n.indexOf(r.name)>=0)return!1;let i=!0;return r.eachChild(r=>{i&&!tH(r,n)&&(i=!1)}),i}class tX{constructor(r,n){this.type=n.type,this.name=r,this.boundExpression=n}static parse(r,n){if(2!==r.length||"string"!=typeof r[1])return n.error("'var' expression requires exactly one string literal argument.");let i=r[1];return n.scope.has(i)?new tX(i,n.scope.get(i)):n.error(`Unknown variable "${i}". Make sure "${i}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(r){return this.boundExpression.evaluate(r)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}class tY{constructor(r,n=[],i,o=new e1,a=[]){this.registry=r,this.path=n,this.key=n.map(r=>`[${r}]`).join(""),this.scope=o,this.errors=a,this.expectedType=i}parse(r,n,i,o,a={}){return n?this.concat(n,i,o)._parse(r,a):this._parse(r,a)}_parse(r,n){function i(r,n,i){return"assert"===i?new tk(n,[r]):"coerce"===i?new tj(n,[r]):r}if(null!==r&&"string"!=typeof r&&"boolean"!=typeof r&&"number"!=typeof r||(r=["literal",r]),Array.isArray(r)){if(0===r.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');let o=r[0];if("string"!=typeof o)return this.error(`Expression name must be a string, but found ${typeof o} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;let a=this.registry[o];if(a){let o=a.parse(r,this);if(!o)return null;if(this.expectedType){let r=this.expectedType,a=o.type;if("string"!==r.kind&&"number"!==r.kind&&"boolean"!==r.kind&&"object"!==r.kind&&"array"!==r.kind||"value"!==a.kind){if("color"!==r.kind&&"formatted"!==r.kind&&"resolvedImage"!==r.kind||"value"!==a.kind&&"string"!==a.kind){if(this.checkSubtype(r,a))return null}else o=i(o,r,n.typeAnnotation||"coerce")}else o=i(o,r,n.typeAnnotation||"assert")}if(!(o instanceof tS)&&"resolvedImage"!==o.type.kind&&function r(n){if(n instanceof tX)return r(n.boundExpression);if(n instanceof tI&&"error"===n.name||n instanceof tZ||n instanceof t$)return!1;let i=n instanceof tj||n instanceof tk,o=!0;return n.eachChild(n=>{o=i?o&&r(n):o&&n instanceof tS}),!!o&&tG(n)&&tH(n,["zoom","heatmap-density","line-progress","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center"])}(o)){let r=new tM;try{o=new tS(o.type,o.evaluate(r))}catch(r){return this.error(r.message),null}}return o}return this.error(`Unknown expression "${o}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(void 0===r?"'undefined' value invalid. Use null instead.":"object"==typeof r?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof r} instead.`)}concat(r,n,i){let o="number"==typeof r?this.path.concat(r):this.path,a=i?this.scope.concat(i):this.scope;return new tY(this.registry,o,n||null,a,this.errors)}error(r,...n){let i=`${this.key}${n.map(r=>`[${r}]`).join("")}`;this.errors.push(new e0(i,r))}checkSubtype(r,n){let i=to(r,n);return i&&this.error(i),i}}var tK=tY;function tJ(r,n){let i=r.length-1,o,a,s=0,l=i,c=0;for(;s<=l;)if(o=r[c=Math.floor((s+l)/2)],a=r[c+1],o<=n){if(c===i||n<a)return c;s=c+1}else{if(!(o>n))throw new tT("Input is not a number.");l=c-1}return 0}class tQ{constructor(r,n,i){for(let[o,a]of(this.type=r,this.input=n,this.labels=[],this.outputs=[],i))this.labels.push(o),this.outputs.push(a)}static parse(r,n){if(r.length-1<4)return n.error(`Expected at least 4 arguments, but found only ${r.length-1}.`);if((r.length-1)%2!=0)return n.error("Expected an even number of arguments.");let i=n.parse(r[1],1,e3);if(!i)return null;let o=[],a=null;n.expectedType&&"value"!==n.expectedType.kind&&(a=n.expectedType);for(let i=1;i<r.length;i+=2){let s=1===i?-1/0:r[i],l=r[i+1],c=i,u=i+1;if("number"!=typeof s)return n.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not c
163omputed expressions) for the input values.',c);if(o.length&&o[o.length-1][0]>=s)return n.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',c);let d=n.parse(l,u,a);if(!d)return null;a=a||d.type,o.push([s,d])}return new tQ(a,i,o)}evaluate(r){let n=this.labels,i=this.outputs;if(1===n.length)return i[0].evaluate(r);let o=this.input.evaluate(r);if(o<=n[0])return i[0].evaluate(r);let a=n.length;return o>=n[a-1]?i[a-1].evaluate(r):i[tJ(n,o)].evaluate(r)}eachChild(r){for(let n of(r(this.input),this.outputs))r(n)}outputDefined(){return this.outputs.every(r=>r.outputDefined())}serialize(){let r=["step",this.input.serialize()];for(let n=0;n<this.labels.length;n++)n>0&&r.push(this.labels[n]),r.push(this.outputs[n].serialize());return r}}function t0(r,n,i){return r*(1-i)+n*i}var t1=Object.freeze({__proto__:null,array:function(r,n,i){return r.map((r,o)=>t0(r,n[o],i))},color:function(r,n,i){return new tf(t0(r.r,n.r,i),t0(r.g,n.g,i),t0(r.b,n.b,i),t0(r.a,n.a,i))},number:t0});let t2=4/29,t3=6/29,t4=3*t3*t3,t5=t3*t3*t3,t6=Math.PI/180,t8=180/Math.PI;function t9(r){return r>t5?Math.pow(r,1/3):r/t4+t2}function t7(r){return r>t3?r*r*r:t4*(r-t2)}function re(r){return 255*(r<=.0031308?12.92*r:1.055*Math.pow(r,1/2.4)-.055)}function rt(r){return(r/=255)<=.04045?r/12.92:Math.pow((r+.055)/1.055,2.4)}function rr(r){let n=rt(r.r),i=rt(r.g),o=rt(r.b),a=t9((.4124564*n+.3575761*i+.1804375*o)/.95047),s=t9((.2126729*n+.7151522*i+.072175*o)/1);return{l:116*s-16,a:500*(a-s),b:200*(s-t9((.0193339*n+.119192*i+.9503041*o)/1.08883)),alpha:r.a}}function rn(r){let n=(r.l+16)/116,i=isNaN(r.a)?n:n+r.a/500,o=isNaN(r.b)?n:n-r.b/200;return n=1*t7(n),i=.95047*t7(i),o=1.08883*t7(o),new tf(re(3.2404542*i-1.5371385*n-.4985314*o),re(-.969266*i+1.8760108*n+.041556*o),re(.0556434*i-.2040259*n+1.0572252*o),r.alpha)}let ri={forward:rr,reverse:rn,interpolate:function(r,n,i){return{l:t0(r.l,n.l,i),a:t0(r.a,n.a,i),b:t0(r.b,n.b,i),alpha:t0(r.alpha,n.alpha,i)}}},ro={forward:function(r){let{l:n,a:i,b:o}=rr(r),a=Math.atan2(o,i)*t8;return{h:a<0?a+360:a,c:Math.sqrt(i*i+o*o),l:n,alpha:r.a}},reverse:function(r){let n=r.h*t6,i=r.c;return rn({l:r.l,a:Math.cos(n)*i,b:Math.sin(n)*i,alpha:r.alpha})},interpolate:function(r,n,i){return{h:function(r,n,i){let o=n-r;return r+i*(o>180||o<-180?o-360*Math.round(o/360):o)}(r.h,n.h,i),c:t0(r.c,n.c,i),l:t0(r.l,n.l,i),alpha:t0(r.alpha,n.alpha,i)}}};var ra=Object.freeze({__proto__:null,hcl:ro,lab:ri});class rs{constructor(r,n,i,o,a){for(let[s,l]of(this.type=r,this.operator=n,this.interpolation=i,this.input=o,this.labels=[],this.outputs=[],a))this.labels.push(s),this.outputs.push(l)}static interpolationFactor(r,n,i,o){let a=0;if("exponential"===r.name)a=rl(n,r.base,i,o);else if("linear"===r.name)a=rl(n,1,i,o);else if("cubic-bezier"===r.name){let s=r.controlPoints;a=new E(s[0],s[1],s[2],s[3]).solve(rl(n,1,i,o))}return a}static parse(r,n){let[i,o,a,...s]=r;if(!Array.isArray(o)||0===o.length)return n.error("Expected an interpolation type expression.",1);if("linear"===o[0])o={name:"linear"};else if("exponential"===o[0]){let r=o[1];if("number"!=typeof r)return n.error("Exponential interpolation requires a numeric base.",1,1);o={name:"exponential",base:r}}else{if("cubic-bezier"!==o[0])return n.error(`Unknown interpolation type ${String(o[0])}`,1,0);{let r=o.slice(1);if(4!==r.length||r.some(r=>"number"!=typeof r||r<0||r>1))return n.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);o={name:"cubic-bezier",controlPoints:r}}}if(r.length-1<4)return n.error(`Expected at least 4 arguments, but found only ${r.length-1}.`);if((r.length-1)%2!=0)return n.error("Expected an even number of arguments.");if(!(a=n.parse(a,2,e3)))return null;let l=[],c=null;"interpolate-hcl"===i||"interpolate-lab"===i?c=e6:n.expectedType&&"value"!==n.expectedType.kind&&(c=n.expectedType);for(let r=0;r<s.length;r+=2){let i=s[r],o=s[r+1],a=r+3,u=r+4;if("number"!=typeof i)return n.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',a);if(l.length&&l[l.length-1][0]>=i)return n.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',a);let d=n.parse(o,u,c);if(!d)return null;c=c||d.type,l.push([i,d])}return"number"===c.kind||"color"===c.kind||"array"===c.kind&&"number"===c.itemType.kind&&"number"==typeof c.N?new rs(c,i,o,a,l):n.error(`Type ${tn(c)} is not interpolatable.`)}evaluate(r){let n=this.labels,i=this.outputs;if(1===n.length)return i[0].evaluate(r);let o=this.input.evaluate(r);if(o<=n[0])return i[0].evaluate(r);let a=n.length;if(o>=n[a-1])return i[a-1].evaluate(r);let s=tJ(n,o),l=rs.interpolationFactor(this.interpolation,o,n[s],n[s+1]),c=i[s].evaluate(r),u=i[s+1].evaluate(r);return"interpolate"===this.operator?t1[this.type.kind.toLowerCase()](c,u,l):"interpolate-hcl"===this.operator?ro.reverse(ro.interpolate(ro.forward(c),ro.forward(u),l)):ri.reverse(ri.interpolate(ri.forward(c),ri.forward(u),l))}eachChild(r){for(let n of(r(this.input),this.outputs))r(n)}outputDefined(){return this.outputs.every(r=>r.outputDefined())}serialize(){let r;r="linear"===this.interpolation.name?["linear"]:"exponential"===this.interpolation.name?1===this.interpolation.base?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);let n=[this.operator,r,this.input.serialize()];for(let r=0;r<this.labels.length;
163r++)n.push(this.labels[r],this.outputs[r].serialize());return n}}function rl(r,n,i,o){let a=o-i,s=r-i;return 0===a?0:1===n?s/a:(Math.pow(n,s)-1)/(Math.pow(n,a)-1)}class rc{constructor(r,n){this.type=r,this.args=n}static parse(r,n){if(r.length<2)return n.error("Expectected at least one argument.");let i=null,o=n.expectedType;o&&"value"!==o.kind&&(i=o);let a=[];for(let o of r.slice(1)){let r=n.parse(o,1+a.length,i,void 0,{typeAnnotation:"omit"});if(!r)return null;i=i||r.type,a.push(r)}let s=o&&a.some(r=>to(o,r.type));return new rc(s?e9:i,a)}evaluate(r){let n,i=null,o=0;for(let a of this.args){if(o++,(i=a.evaluate(r))&&i instanceof ty&&!i.available&&(n||(n=i),i=null,o===this.args.length))return n;if(null!==i)break}return i}eachChild(r){this.args.forEach(r)}outputDefined(){return this.args.every(r=>r.outputDefined())}serialize(){let r=["coalesce"];return this.eachChild(n=>{r.push(n.serialize())}),r}}class ru{constructor(r,n){this.type=n.type,this.bindings=[].concat(r),this.result=n}evaluate(r){return this.result.evaluate(r)}eachChild(r){for(let n of this.bindings)r(n[1]);r(this.result)}static parse(r,n){if(r.length<4)return n.error(`Expected at least 3 arguments, but found ${r.length-1} instead.`);let i=[];for(let o=1;o<r.length-1;o+=2){let a=r[o];if("string"!=typeof a)return n.error(`Expected string, but found ${typeof a} instead.`,o);if(/[^a-zA-Z0-9_]/.test(a))return n.error("Variable names must contain only alphanumeric characters or '_'.",o);let s=n.parse(r[o+1],o+1);if(!s)return null;i.push([a,s])}let o=n.parse(r[r.length-1],r.length-1,n.expectedType,i);return o?new ru(i,o):null}outputDefined(){return this.result.outputDefined()}serialize(){let r=["let"];for(let[n,i]of this.bindings)r.push(n,i.serialize());return r.push(this.result.serialize()),r}}class rd{constructor(r,n,i){this.type=r,this.index=n,this.input=i}static parse(r,n){if(3!==r.length)return n.error(`Expected 2 arguments, but found ${r.length-1} instead.`);let i=n.parse(r[1],1,e3),o=n.parse(r[2],2,tr(n.expectedType||e9));return i&&o?new rd(o.type.itemType,i,o):null}evaluate(r){let n=this.index.evaluate(r),i=this.input.evaluate(r);if(n<0)throw new tT(`Array index out of bounds: ${n} < 0.`);if(n>=i.length)throw new tT(`Array index out of bounds: ${n} > ${i.length-1}.`);if(n!==Math.floor(n))throw new tT(`Array index must be an integer, but found ${n} instead.`);return i[n]}eachChild(r){r(this.index),r(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}class rh{constructor(r,n){this.type=e5,this.needle=r,this.haystack=n}static parse(r,n){if(3!==r.length)return n.error(`Expected 2 arguments, but found ${r.length-1} instead.`);let i=n.parse(r[1],1,e9),o=n.parse(r[2],2,e9);return i&&o?ta(i.type,[e5,e4,e3,e2,e9])?new rh(i,o):n.error(`Expected first argument to be of type boolean, string, number or null, but found ${tn(i.type)} instead`):null}evaluate(r){let n=this.needle.evaluate(r),i=this.haystack.evaluate(r);if(null==i)return!1;if(!ts(n,["boolean","string","number","null"]))throw new tT(`Expected first argument to be of type boolean, string, number or null, but found ${tn(t_(n))} instead.`);if(!ts(i,["string","array"]))throw new tT(`Expected second argument to be of type array or string, but found ${tn(t_(i))} instead.`);return i.indexOf(n)>=0}eachChild(r){r(this.needle),r(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}class rp{constructor(r,n,i){this.type=e3,this.needle=r,this.haystack=n,this.fromIndex=i}static parse(r,n){if(r.length<=2||r.length>=5)return n.error(`Expected 3 or 4 arguments, but found ${r.length-1} instead.`);let i=n.parse(r[1],1,e9),o=n.parse(r[2],2,e9);if(!i||!o)return null;if(!ta(i.type,[e5,e4,e3,e2,e9]))return n.error(`Expected first argument to be of type boolean, string, number or null, but found ${tn(i.type)} instead`);if(4===r.length){let a=n.parse(r[3],3,e3);return a?new rp(i,o,a):null}return new rp(i,o)}evaluate(r){let n=this.needle.evaluate(r),i=this.haystack.evaluate(r);if(!ts(n,["boolean","string","number","null"]))throw new tT(`Expected first argument to be of type boolean, string, number or null, but found ${tn(t_(n))} instead.`);if(!ts(i,["string","array"]))throw new tT(`Expected second argument to be of type array or string, but found ${tn(t_(i))} instead.`);if(this.fromIndex){let o=this.fromIndex.evaluate(r);return i.indexOf(n,o)}return i.indexOf(n)}eachChild(r){r(this.needle),r(this.haystack),this.fromIndex&&r(this.fromIndex)}outputDefined(){return!1}serialize(){if(null!=this.fromIndex&&void 0!==this.fromIndex){let r=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),r]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}class rf{constructor(r,n,i,o,a,s){this.inputType=r,this.type=n,this.input=i,this.cases=o,this.outputs=a,this.otherwise=s}static parse(r,n){let i,o;if(r.length<5)return n.error(`Expected at least 4 arguments, but found only ${r.length-1}.`);if(r.length%2!=1)return n.error("Expected an even number of arguments.");n.expectedType&&"value"!==n.expectedType.kind&&(o=n.expectedType);let a={},s=[];for(let l=2;l<r.length-1;l+=2){let c=r[l],u=r[l+1];Array.isArray(c)||(c=[c]);let d=n.concat(l);
163if(0===c.length)return d.error("Expected at least one branch label.");for(let r of c){if("number"!=typeof r&&"string"!=typeof r)return d.error("Branch labels must be numbers or strings.");if("number"==typeof r&&Math.abs(r)>Number.MAX_SAFE_INTEGER)return d.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if("number"==typeof r&&Math.floor(r)!==r)return d.error("Numeric branch labels must be integer values.");if(i){if(d.checkSubtype(i,t_(r)))return null}else i=t_(r);if(void 0!==a[String(r)])return d.error("Branch labels must be unique.");a[String(r)]=s.length}let h=n.parse(u,l,o);if(!h)return null;o=o||h.type,s.push(h)}let l=n.parse(r[1],1,e9);if(!l)return null;let c=n.parse(r[r.length-1],r.length-1,o);return c?"value"!==l.type.kind&&n.concat(1).checkSubtype(i,l.type)?null:new rf(i,o,l,a,s,c):null}evaluate(r){let n=this.input.evaluate(r);return(t_(n)===this.inputType&&this.outputs[this.cases[n]]||this.otherwise).evaluate(r)}eachChild(r){r(this.input),this.outputs.forEach(r),r(this.otherwise)}outputDefined(){return this.outputs.every(r=>r.outputDefined())&&this.otherwise.outputDefined()}serialize(){let r=["match",this.input.serialize()],n=Object.keys(this.cases).sort(),i=[],o={};for(let r of n){let n=o[this.cases[r]];void 0===n?(o[this.cases[r]]=i.length,i.push([this.cases[r],[r]])):i[n][1].push(r)}let a=r=>"number"===this.inputType.kind?Number(r):r;for(let[n,o]of i)r.push(1===o.length?a(o[0]):o.map(a)),r.push(this.outputs[n].serialize());return r.push(this.otherwise.serialize()),r}}class rm{constructor(r,n,i){this.type=r,this.branches=n,this.otherwise=i}static parse(r,n){let i;if(r.length<4)return n.error(`Expected at least 3 arguments, but found only ${r.length-1}.`);if(r.length%2!=0)return n.error("Expected an odd number of arguments.");n.expectedType&&"value"!==n.expectedType.kind&&(i=n.expectedType);let o=[];for(let a=1;a<r.length-1;a+=2){let s=n.parse(r[a],a,e5);if(!s)return null;let l=n.parse(r[a+1],a+1,i);if(!l)return null;o.push([s,l]),i=i||l.type}let a=n.parse(r[r.length-1],r.length-1,i);return a?new rm(i,o,a):null}evaluate(r){for(let[n,i]of this.branches)if(n.evaluate(r))return i.evaluate(r);return this.otherwise.evaluate(r)}eachChild(r){for(let[n,i]of this.branches)r(n),r(i);r(this.otherwise)}outputDefined(){return this.branches.every(([r,n])=>n.outputDefined())&&this.otherwise.outputDefined()}serialize(){let r=["case"];return this.eachChild(n=>{r.push(n.serialize())}),r}}class rg{constructor(r,n,i,o){this.type=r,this.input=n,this.beginIndex=i,this.endIndex=o}static parse(r,n){if(r.length<=2||r.length>=5)return n.error(`Expected 3 or 4 arguments, but found ${r.length-1} instead.`);let i=n.parse(r[1],1,e9),o=n.parse(r[2],2,e3);if(!i||!o)return null;if(!ta(i.type,[tr(e9),e4,e9]))return n.error(`Expected first argument to be of type array or string, but found ${tn(i.type)} instead`);if(4===r.length){let a=n.parse(r[3],3,e3);return a?new rg(i.type,i,o,a):null}return new rg(i.type,i,o)}evaluate(r){let n=this.input.evaluate(r),i=this.beginIndex.evaluate(r);if(!ts(n,["string","array"]))throw new tT(`Expected first argument to be of type array or string, but found ${tn(t_(n))} instead.`);if(this.endIndex){let o=this.endIndex.evaluate(r);return n.slice(i,o)}return n.slice(i)}eachChild(r){r(this.input),r(this.beginIndex),this.endIndex&&r(this.endIndex)}outputDefined(){return!1}serialize(){if(null!=this.endIndex&&void 0!==this.endIndex){let r=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),r]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}function rv(r,n){return"=="===r||"!="===r?"boolean"===n.kind||"string"===n.kind||"number"===n.kind||"null"===n.kind||"value"===n.kind:"string"===n.kind||"number"===n.kind||"value"===n.kind}function ry(r,n,i,o){return 0===o.compare(n,i)}function rb(r,n,i){let o="=="!==r&&"!="!==r;return class a{constructor(r,n,i){this.type=e5,this.lhs=r,this.rhs=n,this.collator=i,this.hasUntypedArgument="value"===r.type.kind||"value"===n.type.kind}static parse(r,n){if(3!==r.length&&4!==r.length)return n.error("Expected two or three arguments.");let i=r[0],s=n.parse(r[1],1,e9);if(!s)return null;if(!rv(i,s.type))return n.concat(1).error(`"${i}" comparisons are not supported for type '${tn(s.type)}'.`);let l=n.parse(r[2],2,e9);if(!l)return null;if(!rv(i,l.type))return n.concat(2).error(`"${i}" comparisons are not supported for type '${tn(l.type)}'.`);if(s.type.kind!==l.type.kind&&"value"!==s.type.kind&&"value"!==l.type.kind)return n.error(`Cannot compare types '${tn(s.type)}' and '${tn(l.type)}'.`);o&&("value"===s.type.kind&&"value"!==l.type.kind?s=new tk(l.type,[s]):"value"!==s.type.kind&&"value"===l.type.kind&&(l=new tk(s.type,[l])));let c=null;if(4===r.length){if("string"!==s.type.kind&&"string"!==l.type.kind&&"value"!==s.type.kind&&"value"!==l.type.kind)return n.error("Cannot use collator to compare non-string types.");if(!(c=n.parse(r[3],3,e7)))return null}return new a(s,l,c)}evaluate(a){let s=this.lhs.evaluate(a),l=this.rhs.evaluate(a);if(o&&this.hasUntypedArgument){let n=t_(s),i=t_(l);if(n.kind!==i.kind||"string"!==n.kind&&"number"!==n.kind)throw new tT(`Expected arguments for "${r}" to be (string, string) or (number, number), but found (${n.kind}, ${i.kind}) instead.`)}if(this.collator&&!o&&this.hasUntypedArgument){let r=t_(s),i=t_(l);if("string"!==r.kind||"string"!==i.kind)return n(a,s,l)}return this.collator?i(a,s,l,this.collator.evaluate(a)):n(a,s,l)}eachChild(r){r(this.lhs),r(this.rhs),this.collator&&r(this.collator)}outputDefined(){return!0}serialize(){let n=[r];return this.eachChild(r=>{n.push(r.serialize())}),n}}}let rx=rb("==",function(r,n,i){return n===i},ry),r_=rb("!=",function(r,n,i){return n!==i},function(r,n,i,o){return!ry(0,n,i,o)}),rw=rb("<",function(r,n,i){return n<i},function(r,n,i,o){return 0>o.compare(n,i)}),rS=rb(">",function(r,n,i){return n>i},function(r,n,i,o){return o.compare(n,i)>0}
163),rT=rb("<=",function(r,n,i){return n<=i},function(r,n,i,o){return 0>=o.compare(n,i)}),rE=rb(">=",function(r,n,i){return n>=i},function(r,n,i,o){return o.compare(n,i)>=0});class rk{constructor(r,n,i,o,a,s){this.type=e4,this.number=r,this.locale=n,this.currency=i,this.unit=o,this.minFractionDigits=a,this.maxFractionDigits=s}static parse(r,n){if(3!==r.length)return n.error("Expected two arguments.");let i=n.parse(r[1],1,e3);if(!i)return null;let o=r[2];if("object"!=typeof o||Array.isArray(o))return n.error("NumberFormat options argument must be an object.");let a=null;if(o.locale&&!(a=n.parse(o.locale,1,e4)))return null;let s=null;if(o.currency&&!(s=n.parse(o.currency,1,e4)))return null;let l=null;if(o.unit&&!(l=n.parse(o.unit,1,e4)))return null;let c=null;if(o["min-fraction-digits"]&&!(c=n.parse(o["min-fraction-digits"],1,e3)))return null;let u=null;return!o["max-fraction-digits"]||(u=n.parse(o["max-fraction-digits"],1,e3))?new rk(i,a,s,l,c,u):null}evaluate(r){return new Intl.NumberFormat(this.locale?this.locale.evaluate(r):[],{style:(this.currency?"currency":this.unit&&"unit")||"decimal",currency:this.currency?this.currency.evaluate(r):void 0,unit:this.unit?this.unit.evaluate(r):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(r):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(r):void 0}).format(this.number.evaluate(r))}eachChild(r){r(this.number),this.locale&&r(this.locale),this.currency&&r(this.currency),this.unit&&r(this.unit),this.minFractionDigits&&r(this.minFractionDigits),this.maxFractionDigits&&r(this.maxFractionDigits)}outputDefined(){return!1}serialize(){let r={};return this.locale&&(r.locale=this.locale.serialize()),this.currency&&(r.currency=this.currency.serialize()),this.unit&&(r.unit=this.unit.serialize()),this.minFractionDigits&&(r["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(r["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),r]}}class rC{constructor(r){this.type=e3,this.input=r}static parse(r,n){if(2!==r.length)return n.error(`Expected 1 argument, but found ${r.length-1} instead.`);let i=n.parse(r[1],1);return i?"array"!==i.type.kind&&"string"!==i.type.kind&&"value"!==i.type.kind?n.error(`Expected argument of type string or array, but found ${tn(i.type)} instead.`):new rC(i):null}evaluate(r){let n=this.input.evaluate(r);if("string"==typeof n||Array.isArray(n))return n.length;throw new tT(`Expected value to be of type string or array, but found ${tn(t_(n))} instead.`)}eachChild(r){r(this.input)}outputDefined(){return!1}serialize(){let r=["length"];return this.eachChild(n=>{r.push(n.serialize())}),r}}let rP={"==":rx,"!=":r_,">":rS,"<":rw,">=":rE,"<=":rT,array:tk,at:rd,boolean:tk,case:rm,coalesce:rc,collator:tZ,format:tC,image:tP,in:rh,"index-of":rp,interpolate:rs,"interpolate-hcl":rs,"interpolate-lab":rs,length:rC,let:ru,literal:tS,match:rf,number:tk,"number-format":rk,object:tk,slice:rg,step:tQ,string:tk,"to-boolean":tj,"to-color":tj,"to-number":tj,"to-string":tj,var:tX,within:t$};function rO(r,[n,i,o,a]){n=n.evaluate(r),i=i.evaluate(r),o=o.evaluate(r);let s=a?a.evaluate(r):1,l=tb(n,i,o,s);if(l)throw new tT(l);return new tf(n/255*s,i/255*s,o/255*s,s)}function rj(r,n){let i=n[r];return void 0===i?null:i}function rA(r){return{type:r}}function rM(r){return{result:"success",value:r}}function rI(r){return{result:"error",value:r}}function rZ(r){return"data-driven"===r["property-type"]}function rR(r){return!!r.expression&&r.expression.parameters.indexOf("zoom")>-1}function rD(r){return!!r.expression&&r.expression.interpolated}function rL(r){return r instanceof Number?"number":r instanceof String?"string":r instanceof Boolean?"boolean":Array.isArray(r)?"array":null===r?"null":typeof r}function rz(r){return"object"==typeof r&&null!==r&&!Array.isArray(r)}function rB(r){return r}function rF(r,n,i){return void 0!==r?r:void 0!==n?n:void 0!==i?i:void 0}function rN(r,n,i,o,a){return rF(typeof i===a?o[i]:void 0,r.default,n.default)}function rU(r,n,i){if("number"!==rL(i))return rF(r.default,n.default);let o=r.stops.length;if(1===o||i<=r.stops[0][0])return r.stops[0][1];if(i>=r.stops[o-1][0])return r.stops[o-1][1];let a=tJ(r.stops.map(r=>r[0]),i);return r.stops[a][1]}function rV(r,n,i){let o=void 0!==r.base?r.base:1;if("number"!==rL(i))return rF(r.default,n.default);let a=r.stops.length;if(1===a||i<=r.stops[0][0])return r.stops[0][1];if(i>=r.stops[a-1][0])return r.stops[a-1][1];let s=tJ(r.stops.map(r=>r[0]),i),l=function(r,n,i,o){let a=o-i,s=r-i;return 0===a?0:1===n?s/a:(Math.pow(n,s)-1)/(Math.pow(n,a)-1)}(i,o,r.stops[s][0],r.stops[s+1][0]),c=r.stops[s][1],u=r.stops[s+1][1],d=t1[n.type]||rB;
163if(r.colorSpace&&"rgb"!==r.colorSpace){let n=ra[r.colorSpace];d=(r,i)=>n.reverse(n.interpolate(n.forward(r),n.forward(i),l))}return"function"==typeof c.evaluate?{evaluate(...r){let n=c.evaluate.apply(void 0,r),i=u.evaluate.apply(void 0,r);if(void 0!==n&&void 0!==i)return d(n,i,l)}}:d(c,u,l)}function rq(r,n,i){return"color"===n.type?i=tf.parse(i):"formatted"===n.type?i=tv.fromString(i.toString()):"resolvedImage"===n.type?i=ty.fromString(i.toString()):rL(i)===n.type||"enum"===n.type&&n.values[i]||(i=void 0),rF(i,r.default,n.default)}tI.register(rP,{error:[{kind:"error"},[e4],(r,[n])=>{throw new tT(n.evaluate(r))}],typeof:[e4,[e9],(r,[n])=>tn(t_(n.evaluate(r)))],"to-rgba":[tr(e3,4),[e6],(r,[n])=>n.evaluate(r).toArray()],rgb:[e6,[e3,e3,e3],rO],rgba:[e6,[e3,e3,e3,e3],rO],has:{type:e5,overloads:[[[e4],(r,[n])=>n.evaluate(r) in r.properties()],[[e4,e8],(r,[n,i])=>n.evaluate(r) in i.evaluate(r)]]},get:{type:e9,overloads:[[[e4],(r,[n])=>rj(n.evaluate(r),r.properties())],[[e4,e8],(r,[n,i])=>rj(n.evaluate(r),i.evaluate(r))]]},"feature-state":[e9,[e4],(r,[n])=>rj(n.evaluate(r),r.featureState||{})],properties:[e8,[],r=>r.properties()],"geometry-type":[e4,[],r=>r.geometryType()],id:[e9,[],r=>r.id()],zoom:[e3,[],r=>r.globals.zoom],pitch:[e3,[],r=>r.globals.pitch||0],"distance-from-center":[e3,[],r=>r.distanceFromCenter()],"heatmap-density":[e3,[],r=>r.globals.heatmapDensity||0],"line-progress":[e3,[],r=>r.globals.lineProgress||0],"sky-radial-progress":[e3,[],r=>r.globals.skyRadialProgress||0],accumulated:[e9,[],r=>void 0===r.globals.accumulated?null:r.globals.accumulated],"+":[e3,rA(e3),(r,n)=>{let i=0;for(let o of n)i+=o.evaluate(r);return i}],"*":[e3,rA(e3),(r,n)=>{let i=1;for(let o of n)i*=o.evaluate(r);return i}],"-":{type:e3,overloads:[[[e3,e3],(r,[n,i])=>n.evaluate(r)-i.evaluate(r)],[[e3],(r,[n])=>-n.evaluate(r)]]},"/":[e3,[e3,e3],(r,[n,i])=>n.evaluate(r)/i.evaluate(r)],"%":[e3,[e3,e3],(r,[n,i])=>n.evaluate(r)%i.evaluate(r)],ln2:[e3,[],()=>Math.LN2],pi:[e3,[],()=>Math.PI],e:[e3,[],()=>Math.E],"^":[e3,[e3,e3],(r,[n,i])=>Math.pow(n.evaluate(r),i.evaluate(r))],sqrt:[e3,[e3],(r,[n])=>Math.sqrt(n.evaluate(r))],log10:[e3,[e3],(r,[n])=>Math.log(n.evaluate(r))/Math.LN10],ln:[e3,[e3],(r,[n])=>Math.log(n.evaluate(r))],log2:[e3,[e3],(r,[n])=>Math.log(n.evaluate(r))/Math.LN2],sin:[e3,[e3],(r,[n])=>Math.sin(n.evaluate(r))],cos:[e3,[e3],(r,[n])=>Math.cos(n.evaluate(r))],tan:[e3,[e3],(r,[n])=>Math.tan(n.evaluate(r))],asin:[e3,[e3],(r,[n])=>Math.asin(n.evaluate(r))],acos:[e3,[e3],(r,[n])=>Math.acos(n.evaluate(r))],atan:[e3,[e3],(r,[n])=>Math.atan(n.evaluate(r))],min:[e3,rA(e3),(r,n)=>Math.min(...n.map(n=>n.evaluate(r)))],max:[e3,rA(e3),(r,n)=>Math.max(...n.map(n=>n.evaluate(r)))],abs:[e3,[e3],(r,[n])=>Math.abs(n.evaluate(r))],round:[e3,[e3],(r,[n])=>{let i=n.evaluate(r);return i<0?-Math.round(-i):Math.round(i)}],floor:[e3,[e3],(r,[n])=>Math.floor(n.evaluate(r))],ceil:[e3,[e3],(r,[n])=>Math.ceil(n.evaluate(r))],"filter-==":[e5,[e4,e9],(r,[n,i])=>r.properties()[n.value]===i.value],"filter-id-==":[e5,[e9],(r,[n])=>r.id()===n.value],"filter-type-==":[e5,[e4],(r,[n])=>r.geometryType()===n.value],"filter-<":[e5,[e4,e9],(r,[n,i])=>{let o=r.properties()[n.value],a=i.value;return typeof o==typeof a&&o<a}],"filter-id-<":[e5,[e9],(r,[n])=>{let i=r.id(),o=n.value;return typeof i==typeof o&&i<o}],"filter->":[e5,[e4,e9],(r,[n,i])=>{let o=r.properties()[n.value],a=i.value;return typeof o==typeof a&&o>a}],"filter-id->":[e5,[e9],(r,[n])=>{let i=r.id(),o=n.value;return typeof i==typeof o&&i>o}],"filter-<=":[e5,[e4,e9],(r,[n,i])=>{let o=r.properties()[n.value],a=i.value;return typeof o==typeof a&&o<=a}],"filter-id-<=":[e5,[e9],(r,[n])=>{let i=r.id(),o=n.value;return typeof i==typeof o&&i<=o}],"filter->=":[e5,[e4,e9],(r,[n,i])=>{let o=r.properties()[n.value],a=i.value;return typeof o==typeof a&&o>=a}],"filter-id->=":[e5,[e9],(r,[n])=>{let i=r.id(),o=n.value;return typeof i==typeof o&&i>=o}],"filter-has":[e5,[e9],(r,[n])=>n.value in r.properties()],"filter-has-id":[e5,[],r=>null!==r.id()&&void 0!==r.id()],"filter-type-in":[e5,[tr(e4)],(r,[n])=>n.value.indexOf(r.geometryType())>=0],"filter-id-in":[e5,[tr(e9)],(r,[n])=>n.value.indexOf(r.id())>=0],"filter-in-small":[e5,[e4,tr(e9)],(r,[n,i])=>i.value.indexOf(r.properties()[n.value])>=0],"filter-in-large":[e5,[e4,tr(e9)],(r,[n,i])=>(function(r,n,i,o){for(;i<=o;){let a=i+o>>1;if(n[a]===r)return!0;n[a]>r?o=a-1:i=a+1}return!1})(r.properties()[n.value],i.value,0,i.value.length-1)],all:{type:e5,overloads:[[[e5,e5],(r,[n,i])=>n.evaluate(r)&&i.evaluate(r)],[rA(e5),(r,n)=>{for(let i of n)if(!i.evaluate(r))return!1;return!0}]]},any:{type:e5,overloads:[[[e5,e5],(r,[n,i])=>n.evaluate(r)||i.evaluate(r)],[rA(e5),(r,n)=>{for(let i of n)if(i.evaluate(r))return!0;return!1}]]},"!":[e5,[e5],(r,[n])=>!n.evaluate(r)],"is-supported-script":[e5,[e4],(r,[n])=>{let i=r.globals&&r.globals.isSupportedScript;return!i||i(n.evaluate(r))}],upcase:[e4,[e4],(r,[n])=>n.evaluate(r).toUpperCase()],downcase:[e4,[e4],(r,[n])=>n.evaluate(r).toLowerCase()],concat:[e4,rA(e9),(r,n)=>n.map(n=>tw(n.evaluate(r))).join("")],"resolved-locale":[e4,[e7],(r,[n])=>n.evaluate(r).resolvedLocale()]});class r${constructor(r,n){this.expression=r,this._warningHistory={},this._evaluator=new tM,this._defaultValue=n?"color"===n.type&&(rz(n.default)||Array.isArray(n.default))?new tf(0,0,0,0):"color"===n.type?tf.parse(n.default)||null:void 0===n.default?null:n.default:null,this._enumValues=n&&"enum"===n.type?n.values:null}evaluateWithoutErrorHandling(r,n,i,o,a,s,l,c){return this._evaluator.globals=r,this._evaluator.feature=n,this._evaluator.featureState=i,this._evaluator.canonical=o||null,this._evaluator.availableImages=a||null,this._evaluator.formattedSection=s,this._evaluator.featureTileCoord=l||null,this._evaluator.featureDistanceData=c||null,this.expression.evaluate(this._evaluator)}evaluate(r,n,i,o,a,s,l,c){this._evaluator.globals=r,this._evaluator.feature=n||null,this._evaluator.featureState=i||null,this._evaluator.canonical=o||null,this._evaluator.availableImages=a||null,this._evaluator.formattedSection=s||null,this._evaluator.featureTileCoord=l||null,this._evaluator.featureDistanceData=c||null;try{let r=this.expression.evaluate(this._evaluator);if(null==r||"number"==typeof r&&r!=r)return this._defaultValue;if(this._enumValues&&!(r in this._enumValues))throw new tT(`Expected value to be one of ${Object.keys(this._enumValues).map(r=>JSON.stringify(r)).join(", ")}, but found ${JSON.stringify(r)} instead.`);return r}catch(r){return this._warningHistory[r.message]||(this._warningHistory[r.message]=!0,"undefined"!=typeof console&&console.warn(r.message)),this._defaultValue}}}function rG(r){return Array.isArray(r)&&r.length>0&&"string"==typeof r[0]&&r[0]in rP}function rW(r,n){let i=new tK(rP,[],n?function(r){let n={color:e6,str
163ing:e4,number:e3,enum:e4,boolean:e5,formatted:te,resolvedImage:tt};return"array"===r.type?tr(n[r.value]||e9,r.length):n[r.type]}(n):void 0),o=i.parse(r,void 0,void 0,void 0,n&&"string"===n.type?{typeAnnotation:"coerce"}:void 0);return o?rM(new r$(o,n)):rI(i.errors)}class rH{constructor(r,n){this.kind=r,this._styleExpression=n,this.isStateDependent="constant"!==r&&!tW(n.expression)}evaluateWithoutErrorHandling(r,n,i,o,a,s){return this._styleExpression.evaluateWithoutErrorHandling(r,n,i,o,a,s)}evaluate(r,n,i,o,a,s){return this._styleExpression.evaluate(r,n,i,o,a,s)}}class rX{constructor(r,n,i,o){this.kind=r,this.zoomStops=i,this._styleExpression=n,this.isStateDependent="camera"!==r&&!tW(n.expression),this.interpolationType=o}evaluateWithoutErrorHandling(r,n,i,o,a,s){return this._styleExpression.evaluateWithoutErrorHandling(r,n,i,o,a,s)}evaluate(r,n,i,o,a,s){return this._styleExpression.evaluate(r,n,i,o,a,s)}interpolationFactor(r,n,i){return this.interpolationType?rs.interpolationFactor(this.interpolationType,r,n,i):0}}function rY(r,n){if("error"===(r=rW(r,n)).result)return r;let i=r.value.expression,o=tG(i);if(!o&&!rZ(n))return rI([new e0("","data expressions not supported")]);let a=tH(i,["zoom","pitch","distance-from-center"]);if(!a&&!rR(n))return rI([new e0("","zoom expressions not supported")]);let s=function r(n){let i=null;if(n instanceof ru)i=r(n.result);else if(n instanceof rc){for(let o of n.args)if(i=r(o))break}else(n instanceof tQ||n instanceof rs)&&n.input instanceof tI&&"zoom"===n.input.name&&(i=n);return i instanceof e0||n.eachChild(n=>{let o=r(n);o instanceof e0?i=o:!i&&o?i=new e0("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):i&&o&&i!==o&&(i=new e0("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),i}(i);return s||a?s instanceof e0?rI([s]):s instanceof rs&&!rD(n)?rI([new e0("",'"interpolate" expressions cannot be used with this property')]):rM(s?new rX(o?"camera":"composite",r.value,s.labels,s instanceof rs?s.interpolation:void 0):new rH(o?"constant":"source",r.value)):rI([new e0("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class rK{constructor(r,n){this._parameters=r,this._specification=n,eK(this,function r(n,i){let o,a,s;let l="color"===i.type,c=n.stops&&"object"==typeof n.stops[0][0],u=c||!(c||void 0!==n.property),d=n.type||(rD(i)?"exponential":"interval");if(l&&((n=eK({},n)).stops&&(n.stops=n.stops.map(r=>[r[0],tf.parse(r[1])])),n.default=tf.parse(n.default?n.default:i.default)),n.colorSpace&&"rgb"!==n.colorSpace&&!ra[n.colorSpace])throw Error(`Unknown color space: ${n.colorSpace}`);if("exponential"===d)o=rV;else if("interval"===d)o=rU;else if("categorical"===d){for(let r of(o=rN,a=Object.create(null),n.stops))a[r[0]]=r[1];s=typeof n.stops[0][0]}else{if("identity"!==d)throw Error(`Unknown function type "${d}"`);o=rq}if(c){let o={},a=[];for(let r=0;r<n.stops.length;r++){let i=n.stops[r],s=i[0].zoom;void 0===o[s]&&(o[s]={zoom:s,type:n.type,property:n.property,default:n.default,stops:[]},a.push(s)),o[s].stops.push([i[0].value,i[1]])}let s=[];for(let n of a)s.push([o[n].zoom,r(o[n],i)]);let l={name:"linear"};return{kind:"composite",interpolationType:l,interpolationFactor:rs.interpolationFactor.bind(void 0,l),zoomStops:s.map(r=>r[0]),evaluate:({zoom:r},o)=>rV({stops:s,base:n.base},i,r).evaluate(r,o)}}if(u){let r="exponential"===d?{name:"exponential",base:void 0!==n.base?n.base:1}:null;return{kind:"camera",interpolationType:r,interpolationFactor:rs.interpolationFactor.bind(void 0,r),zoomStops:n.stops.map(r=>r[0]),evaluate:({zoom:r})=>o(n,i,r,a,s)}}return{kind:"source",evaluate(r,l){let c=l&&l.properties?l.properties[n.property]:void 0;return void 0===c?rF(n.default,i.default):o(n,i,c,a,s)}}}(this._parameters,this._specification))}static deserialize(r){return new rK(r._parameters,r._specification)}static serialize(r){return{_parameters:r._parameters,_specification:r._specification}}}class rJ{constructor(r,n,i,o){this.message=(r?`${r}: `:"")+i,o&&(this.identifier=o),null!=n&&n.__line__&&(this.line=n.__line__)}}function rQ(r){let n=r.key,i=r.value,o=r.valueSpec||{},a=r.objectElementValidators||{},s=r.style,l=r.styleSpec,c=[],u=rL(i);if("object"!==u)return[new rJ(n,i,`object expected, ${u}
163 found`)];for(let r in i){let u;let d=r.split(".")[0];a[d]?u=a[d]:o[d]?u=ng:a["*"]?u=a["*"]:o["*"]&&(u=ng),u?c=c.concat(u({key:(n?`${n}.`:n)+r,value:i[r],valueSpec:o[d]||o["*"],style:s,styleSpec:l,object:i,objectKey:r},i)):c.push(new rJ(n,i[r],`unknown property "${r}"`))}for(let r in o)a[r]||o[r].required&&void 0===o[r].default&&void 0===i[r]&&c.push(new rJ(n,i,`missing required property "${r}"`));return c}function r0(r){let n=r.value,i=r.valueSpec,o=r.style,a=r.styleSpec,s=r.key,l=r.arrayElementValidator||ng;if("array"!==rL(n))return[new rJ(s,n,`array expected, ${rL(n)} found`)];if(i.length&&n.length!==i.length)return[new rJ(s,n,`array length ${i.length} expected, length ${n.length} found`)];if(i["min-length"]&&n.length<i["min-length"])return[new rJ(s,n,`array length at least ${i["min-length"]} expected, length ${n.length} found`)];let c={type:i.value,values:i.values,minimum:i.minimum,maximum:i.maximum,function:void 0};a.$version<7&&(c.function=i.function),"object"===rL(i.value)&&(c=i.value);let u=[];for(let r=0;r<n.length;r++)u=u.concat(l({array:n,arrayIndex:r,value:n[r],valueSpec:c,style:o,styleSpec:a,key:`${s}[${r}]`}));return u}function r1(r){let n=r.key,i=r.value,o=r.valueSpec,a=rL(i);if("number"===a&&i!=i&&(a="NaN"),"number"!==a)return[new rJ(n,i,`number expected, ${a} found`)];if("minimum"in o){let a=o.minimum;if("array"===rL(o.minimum)&&(a=o.minimum[r.arrayIndex]),i<a)return[new rJ(n,i,`${i} is less than the minimum value ${a}`)]}if("maximum"in o){let a=o.maximum;if("array"===rL(o.maximum)&&(a=o.maximum[r.arrayIndex]),i>a)return[new rJ(n,i,`${i} is greater than the maximum value ${a}`)]}return[]}function r2(r){let n=r.valueSpec,i=eJ(r.value.type),o,a,s,l={},c="categorical"!==i&&void 0===r.value.property,u="array"===rL(r.value.stops)&&"array"===rL(r.value.stops[0])&&"object"===rL(r.value.stops[0][0]),d=rQ({key:r.key,value:r.value,valueSpec:r.styleSpec.function,style:r.style,styleSpec:r.styleSpec,objectElementValidators:{stops:function(r){if("identity"===i)return[new rJ(r.key,r.value,'identity function may not have a "stops" property')];let n=[],o=r.value;return n=n.concat(r0({key:r.key,value:o,valueSpec:r.valueSpec,style:r.style,styleSpec:r.styleSpec,arrayElementValidator:h})),"array"===rL(o)&&0===o.length&&n.push(new rJ(r.key,o,"array must have at least one stop")),n},default:function(r){return ng({key:r.key,value:r.value,valueSpec:n,style:r.style,styleSpec:r.styleSpec})}}});return"identity"===i&&c&&d.push(new rJ(r.key,r.value,'missing required property "property"')),"identity"===i||r.value.stops||d.push(new rJ(r.key,r.value,'missing required property "stops"')),"exponential"===i&&r.valueSpec.expression&&!rD(r.valueSpec)&&d.push(new rJ(r.key,r.value,"exponential functions not supported")),r.styleSpec.$version>=8&&(c||rZ(r.valueSpec)?c&&!rR(r.valueSpec)&&d.push(new rJ(r.key,r.value,"zoom functions not supported")):d.push(new rJ(r.key,r.value,"property functions not supported"))),("categorical"===i||u)&&void 0===r.value.property&&d.push(new rJ(r.key,r.value,'"property" property is required')),d;function h(r){let i=[],o=r.value,c=r.key;if("array"!==rL(o))return[new rJ(c,o,`array expected, ${rL(o)} found`)];if(2!==o.length)return[new rJ(c,o,`array length 2 expected, length ${o.length} found`)];if(u){if("object"!==rL(o[0]))return[new rJ(c,o,`object expected, ${rL(o[0])} found`)];if(void 0===o[0].zoom)return[new rJ(c,o,"object stop key must have zoom")];if(void 0===o[0].value)return[new rJ(c,o,"object stop key must have value")];let n=eJ(o[0].zoom);if("number"!=typeof n)return[new rJ(c,o[0].zoom,"stop zoom values must be numbers")];if(s&&s>n)return[new rJ(c,o[0].zoom,"stop zoom values must appear in ascending order")];n!==s&&(s=n,a=void 0,l={}),i=i.concat(rQ({key:`${c}[0]`,value:o[0],valueSpec:{zoom:{}},style:r.style,styleSpec:r.styleSpec,objectElementValidators:{zoom:r1,value:p}}))}else i=i.concat(p({key:`${c}[0]`,value:o[0],valueSpec:{},style:r.style,styleSpec:r.styleSpec},o));return rG(eQ(o[1]))?i.concat([new rJ(`${c}[1]`,o[1],"expressions are not allowed in function stops.")]):i.concat(ng({key:`${c}[1]`,value:o[1],valueSpec:n,style:r.style,styleSpec:r.styleSpec}))}function p(r,s){let c=rL(r.value),u=eJ(r.value),d=null!==r.value?r.value:s;if(o){if(c!==o)return[new rJ(r.key,d,`${c} stop domain type must match previous stop domain type ${o}`)]}else o=c;if("number"!==c&&"string"!==c&&"boolean"!==c&&"number"!=typeof u&&"string"!=typeof u&&"boolean"!=typeof u)return[new rJ(r.key,d,"stop domain value must be a number, string, or boolean")];if("number"!==c&&"categorical"!==i){let o=`number expected, ${c} found`;return rZ(n)&&void 0===i&&(o+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new rJ(r.key,d,o)]}return"categorical"!==i||"number"!==c||"number"==typeof u&&isFinite(u)&&Math.floor(u)===u?"categorical"!==i&&"number"===c&&"number"==typeof u&&"number"==typeof a&&void 0!==a&&u<a?[new rJ(r.key,d,"stop domain values must appear in ascending order")]:(a=u,"categorical"===i&&u in l?[new rJ(r.key,d,"stop domain values must be unique")]:(l[u]=!0,[])):[new rJ(r.key,d,`integer expected, found ${String(u)}`)]}}function r3(r){let n=("property"===r.expressionContext?rY:rW)(eQ(r.value),r.valueSpec);if("error"===n.result)return n.value.map(n=>new rJ(`${r.key}${n.key}`,r.value,n.message));let i=n.value.expression||n.value._styleExpression.expression;if("property"===r.expressionContext&&"text-font"===r.propertyKey&&!i.outputDefined())return[new rJ(r.key,r.value,`Invalid data expression for "${r.propertyKey}". Output values must be contained as literals within the expression.`)];if("property"===r.expressionContext&&"layout"===r.propertyType&&!tW(i))return[new rJ(r.key,r.value,'"feature-state" data expressions are not supported with layout properties.')];if("filter"===r.expressionContext)return function r(n,i){let o=new Set(["zoom","feature-state","pitch","distance-from-center"]);if(i.valueSpec&&i.valueSpec.expression)for(let r of i.valueSpec.expression.parameters)o.delete(r);if(0===o.size)return[];let a=[];return n instanceof tI&&o.has(n.name)?[new rJ(i.key,i.value,`["${n.name}"] expression is not supported in a filter for a ${i.object.type}
163 layer with id: ${i.object.id}`)]:(n.eachChild(n=>{a.push(...r(n,i))}),a)}(i,r);if(r.expressionContext&&0===r.expressionContext.indexOf("cluster")){if(!tH(i,["zoom","feature-state"]))return[new rJ(r.key,r.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if("cluster-initial"===r.expressionContext&&!tG(i))return[new rJ(r.key,r.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function r4(r){let n=r.key,i=r.value,o=r.valueSpec,a=[];return Array.isArray(o.values)?-1===o.values.indexOf(eJ(i))&&a.push(new rJ(n,i,`expected one of [${o.values.join(", ")}], ${JSON.stringify(i)} found`)):-1===Object.keys(o.values).indexOf(eJ(i))&&a.push(new rJ(n,i,`expected one of [${Object.keys(o.values).join(", ")}], ${JSON.stringify(i)} found`)),a}function r5(r){if(!0===r||!1===r)return!0;if(!Array.isArray(r)||0===r.length)return!1;switch(r[0]){case"has":return r.length>=2&&"$id"!==r[1]&&"$type"!==r[1];case"in":return r.length>=3&&("string"!=typeof r[1]||Array.isArray(r[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==r.length||Array.isArray(r[1])||Array.isArray(r[2]);case"any":case"all":for(let n of r.slice(1))if(!r5(n)&&"boolean"!=typeof n)return!1;return!0;default:return!0}}function r6(r,n="fill"){if(null==r)return{filter:()=>!0,needGeometry:!1,needFeature:!1};r5(r)||(r=function r(n){if(!n)return!0;let i=n[0];return n.length<=1?"any"!==i:"=="===i?ne(n[1],n[2],"=="):"!="===i?nn(ne(n[1],n[2],"==")):"<"===i||">"===i||"<="===i||">="===i?ne(n[1],n[2],i):"any"===i?["any"].concat(n.slice(1).map(r)):"all"===i?["all"].concat(n.slice(1).map(r)):"none"===i?["all"].concat(n.slice(1).map(r).map(nn)):"in"===i?nt(n[1],n.slice(2)):"!in"===i?nn(nt(n[1],n.slice(2))):"has"===i?nr(n[1]):"!has"===i?nn(nr(n[1])):"within"!==i||n}(r));let i=r,o=!0;try{o=function(r){if(!r8(r))return r;let n=eQ(r);return function r(n){let i=!1,o=[];if("case"===n[0]){for(let r=1;r<n.length-1;r+=2)i=i||r8(n[r]),o.push(n[r+1]);o.push(n[n.length-1])}else if("match"===n[0]){i=i||r8(n[1]);for(let r=2;r<n.length-1;r+=2)o.push(n[r+1]);o.push(n[n.length-1])}else if("step"===n[0]){i=i||r8(n[1]);for(let r=1;r<n.length-1;r+=2)o.push(n[r+1])}i&&(n.length=0,n.push("any",...o));for(let i=1;i<n.length;i++)r(n[i])}(n),n=function r(n){if(!Array.isArray(n))return n;
163let i=function(r){if(r9.has(r[0])){for(let n=1;n<r.length;n++)if(r8(r[n]))return!0}return r}(n);return!0===i?i:i.map(n=>r(n))}(n)}(i)}catch(r){console.warn(`Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate. 164This is most likely a bug, please report this via https://github.com/mapbox/mapbox-gl-js/issues/new?assignees=&labels=&template=Bug_report.md 165and paste the contents of this message in the report. 166Thank you! 167Filter Expression: 168${JSON.stringify(i,null,2)} 169 `)}let a=eY[`filter_${n}`],s=rW(o,a),l=null;if("error"===s.result)throw Error(s.value.map(r=>`${r.key}: ${r.message}`).join(", "));l=(r,n,i)=>s.value.evaluate(r,n,{},i);let c=null,u=null;if(o!==i){let r=rW(i,a);if("error"===r.result)throw Error(r.value.map(r=>`${r.key}: ${r.message}`).join(", "));c=(n,i,o,a,s)=>r.value.evaluate(n,i,{},o,void 0,void 0,a,s),u=!tG(r.value.expression)}return{filter:l,dynamicFilter:c||void 0,needGeometry:function r(n){if(!Array.isArray(n))return!1;if("within"===n[0])return!0;for(let i=1;i<n.length;i++)if(r(n[i]))return!0;return!1}(o),needFeature:!!u}}function r8(r){var n;if(!Array.isArray(r))return!1;if("pitch"===(n=r[0])||"distance-from-center"===n)return!0;for(let n=1;n<r.length;n++)if(r8(r[n]))return!0;return!1}let r9=new Set(["in","==","!=",">",">=","<","<=","to-boolean"]);function r7(r,n){return r<n?-1:r>n?1:0}function ne(r,n,i){switch(r){case"$type":return[`filter-type-${i}`,n];case"$id":return[`filter-id-${i}`,n];default:return[`filter-${i}`,r,n]}}function nt(r,n){if(0===n.length)return!1;switch(r){case"$type":return["filter-type-in",["literal",n]];case"$id":return["filter-id-in",["literal",n]];default:return n.length>200&&!n.some(r=>typeof r!=typeof n[0])?["filter-in-large",r,["literal",n.sort(r7)]]:["filter-in-small",r,["literal",n]]}}function nr(r){switch(r){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",r]}}function nn(r){return["!",r]}function ni(r){return r5(eQ(r.value))?r3(eK({},r,{expressionContext:"filter",valueSpec:r.styleSpec[`filter_${r.layerType||"fill"}`]})):function r(n){let i=n.value,o=n.key;if("array"!==rL(i))return[new rJ(o,i,`array expected, ${rL(i)} found`)];let a=n.styleSpec,s,l=[];if(i.length<1)return[new rJ(o,i,"filter array must have at least 1 element")];switch(l=l.concat(r4({key:`${o}[0]`,value:i[0],valueSpec:a.filter_operator,style:n.style,styleSpec:n.styleSpec})),eJ(i[0])){case"<":case"<=":case">":case">=":i.length>=2&&"$type"===eJ(i[1])&&l.push(new rJ(o,i,`"$type" cannot be use with operator "${i[0]}"`));case"==":case"!=":3!==i.length&&l.push(new rJ(o,i,`filter array for operator "${i[0]}" must have 3 elements`));case"in":case"!in":i.length>=2&&"string"!==(s=rL(i[1]))&&l.push(new rJ(`${o}[1]`,i[1],`string expected, ${s} found`));for(let r=2;r<i.length;r++)s=rL(i[r]),"$type"===eJ(i[1])?l=l.concat(r4({key:`${o}[${r}]`,value:i[r],valueSpec:a.geometry_type,style:n.style,styleSpec:n.styleSpec})):"string"!==s&&"number"!==s&&"boolean"!==s&&l.push(new rJ(`${o}[${r}]`,i[r],`string, number, or boolean expected, ${s} found`));break;case"any":case"all":case"none":for(let a=1;a<i.length;a++)l=l.concat(r({key:`${o}[${a}]`,value:i[a],style:n.style,styleSpec:n.styleSpec}));break;case"has":case"!has":s=rL(i[1]),2!==i.length?l.push(new rJ(o,i,`filter array for "${i[0]}" operator must have 2 elements`)):"string"!==s&&l.push(new rJ(`${o}[1]`,i[1],`string expected, ${s} found`));break;case"within":s=rL(i[1]),2!==i.length?l.push(new rJ(o,i,`filter array for "${i[0]}" operator must have 2 elements`)):"object"!==s&&l.push(new rJ(`${o}[1]`,i[1],`object expected, ${s} found`))}return l}(r)}function no(r,n){let i;let o=r.key,a=r.style,s=r.styleSpec,l=r.value,c=r.objectKey,u=s[`${n}_${r.layerType}`];if(!u)return[];let d=c.match(/^(.*)-transition$/);if("paint"===n&&d&&u[d[1]]&&u[d[1]].transition)return ng({key:o,value:l,valueSpec:s.transition,style:a,styleSpec:s});let h=r.valueSpec||u[c];if(!h)return[new rJ(o,l,`unknown property "${c}"`)];if("string"===rL(l)&&rZ(h)&&!h.tokens&&(i=/^{([^}]+)}$/.exec(l))){let r=`\`{ "type": "identity", "property": ${i?JSON.stringify(i[1]):'"_"'} }\``;return[new rJ(o,l,`"${c}" does not support interpolation syntax 170Use an identity property function instead: ${r}.`)]}let p=[];return"symbol"===r.layerType&&("text-field"===c&&a&&!a.glyphs&&p.push(new rJ(o,l,'use of "text-field" requires a style "glyphs" property')),"text-font"===c&&rz(eQ(l))&&"identity"===eJ(l.type)&&p.push(new rJ(o,l,'"text-font" does not support identity functions'))),p.concat(ng({key:r.key,value:l,valueSpec:h,style:a,styleSpec:s,expressionContext:"property",propertyType:n,propertyKey:c}))}function na(r){return no(r,"paint")}function ns(r){return no(r,"layout")}function nl(r){let n=[],i=r.value,o=r.key,a=r.style,s=r.styleSpec;i.type||i.ref||n.push(new rJ(o,i,'either "type" or "ref" is required'));let l=eJ(i.type),c=eJ(i.ref);
170if(i.id){let s=eJ(i.id);for(let l=0;l<r.arrayIndex;l++){let r=a.layers[l];eJ(r.id)===s&&n.push(new rJ(o,i.id,`duplicate layer id "${i.id}", previously used at line ${r.id.__line__}`))}}if("ref"in i){let r;["type","source","source-layer","filter","layout"].forEach(r=>{r in i&&n.push(new rJ(o,i[r],`"${r}" is prohibited for ref layers`))}),a.layers.forEach(n=>{eJ(n.id)===c&&(r=n)}),r?r.ref?n.push(new rJ(o,i.ref,"ref cannot reference another ref layer")):l=eJ(r.type):"string"==typeof c&&n.push(new rJ(o,i.ref,`ref layer "${c}" not found`))}else if("background"!==l&&"sky"!==l){if(i.source){let r=a.sources&&a.sources[i.source],s=r&&eJ(r.type);r?"vector"===s&&"raster"===l?n.push(new rJ(o,i.source,`layer "${i.id}" requires a raster source`)):"raster"===s&&"raster"!==l?n.push(new rJ(o,i.source,`layer "${i.id}" requires a vector source`)):"vector"!==s||i["source-layer"]?"raster-dem"===s&&"hillshade"!==l?n.push(new rJ(o,i.source,"raster-dem source can only be used with layer type 'hillshade'.")):"line"===l&&i.paint&&(i.paint["line-gradient"]||i.paint["line-trim-offset"])&&("geojson"!==s||!r.lineMetrics)&&n.push(new rJ(o,i,`layer "${i.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):n.push(new rJ(o,i,`layer "${i.id}" must specify a "source-layer"`)):n.push(new rJ(o,i.source,`source "${i.source}" not found`))}else n.push(new rJ(o,i,'missing required property "source"'))}return n=n.concat(rQ({key:o,value:i,valueSpec:s.layer,style:r.style,styleSpec:r.styleSpec,objectElementValidators:{"*":()=>[],type:()=>ng({key:`${o}.type`,value:i.type,valueSpec:s.layer.type,style:r.style,styleSpec:r.styleSpec,object:i,objectKey:"type"}),filter:r=>ni(eK({layerType:l},r)),layout:r=>rQ({layer:i,key:r.key,value:r.value,valueSpec:{},style:r.style,styleSpec:r.styleSpec,objectElementValidators:{"*":r=>ns(eK({layerType:l},r))}}),paint:r=>rQ({layer:i,key:r.key,value:r.value,valueSpec:{},style:r.style,styleSpec:r.styleSpec,objectElementValidators:{"*":r=>na(eK({layerType:l},r))}})}}))}function nc(r){let n=r.value,i=r.key,o=rL(n);return"string"!==o?[new rJ(i,n,`string expected, ${o} found`)]:[]}let nu={promoteId:function({key:r,value:n}){if("string"===rL(n))return nc({key:r,value:n});{let i=[];for(let o in n)i.push(...nc({key:`${r}.${o}`,value:n[o]}));return i}}};function nd(r){let n;let i=r.value,o=r.key,a=r.styleSpec,s=r.style;if(!i.type)return[new rJ(o,i,'"type" is required')];let l=eJ(i.type);switch(l){case"vector":case"raster":case"raster-dem":return rQ({key:o,value:i,valueSpec:a[`source_${l.replace("-","_")}`],style:r.style,styleSpec:a,objectElementValidators:nu});case"geojson":if(n=rQ({key:o,value:i,valueSpec:a.source_geojson,style:s,styleSpec:a,objectElementValidators:nu}),i.cluster)for(let r in i.clusterProperties){let[a,s]=i.clusterProperties[r],l="string"==typeof a?[a,["accumulated"],["get",r]]:a;n.push(...r3({key:`${o}.${r}.map`,value:s,expressionContext:"cluster-map"})),n.push(...r3({key:`${o}.${r}.reduce`,value:l,expressionContext:"cluster-reduce"}))}return n;case"video":return rQ({key:o,value:i,valueSpec:a.source_video,style:s,styleSpec:a});case"image":return rQ({key:o,value:i,valueSpec:a.source_image,style:s,styleSpec:a});case"canvas":return[new rJ(o,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return r4({key:`${o}.type`,value:i.type,valueSpec:{values:a.source.reduce((r,n)=>{let i=a[n];return"enum"===i.type.type&&(r=r.concat(Object.keys(i.type.values))),r},[])},style:s,styleSpec:a})}}function nh(r){let n=r.value,i=r.styleSpec,o=i.light,a=r.style,s=[],l=rL(n);if(void 0===n)return s;if("object"!==l)return s.concat([new rJ("light",n,`object expected, ${l} found`)]);for(let r in n){let l=r.match(/^(.*)-transition$/);s=s.concat(l&&o[l[1]]&&o[l[1]].transition?ng({key:r,value:n[r],valueSpec:i.transition,style:a,styleSpec:i}):o[r]?ng({key:r,value:n[r],valueSpec:o[r],style:a,styleSpec:i}):[new rJ(r,n[r],`unknown property "${r}"`)])}return s}function np(r){let n=r.value,i=r.key,o=r.style,a=r.styleSpec,s=a.terrain,l=[],c=rL(n);if(void 0===n)return l;if("object"!==c)return l.concat([new rJ("terrain",n,`object expected, ${c} found`)]);for(let r in n){let i=r.match(/^(.*)-transition$/);l=l.concat(i&&s[i[1]]&&s[i[1]].transition?ng({key:r,value:n[r],valueSpec:a.transition,style:o,styleSpec:a}):s[r]?ng({key:r,value:n[r],valueSpec:s[r],style:o,styleSpec:a}):[new rJ(r,n[r],`unknown property "${r}"`)])}if(n.source){let r=o.sources&&o.sources[n.source],a=r&&eJ(r.type);r?"raster-dem"!==a&&l.push(new rJ(i,n.source,`terrain cannot be used with a source of type ${String(a)}, it only be used with a "raster-dem" source type`)):l.push(new rJ(i,n.source,`source "${n.source}" not found`))}else l.push(new rJ(i,n,'terrain is missing required property "source"'));return l}function nf(r){let n=r.value,i=r.style,o=r.styleSpec,a=o.fog,s=[],l=rL(n);if(void 0===n)return s;if("object"!==l)return s.concat([new rJ("fog",n,`object expected, ${l}
170 found`)]);for(let r in n){let l=r.match(/^(.*)-transition$/);s=s.concat(l&&a[l[1]]&&a[l[1]].transition?ng({key:r,value:n[r],valueSpec:o.transition,style:i,styleSpec:o}):a[r]?ng({key:r,value:n[r],valueSpec:a[r],style:i,styleSpec:o}):[new rJ(r,n[r],`unknown property "${r}"`)])}return s}let nm={"*":()=>[],array:r0,boolean:function(r){let n=r.value,i=r.key,o=rL(n);return"boolean"!==o?[new rJ(i,n,`boolean expected, ${o} found`)]:[]},number:r1,color:function(r){let n=r.key,i=r.value,o=rL(i);return"string"!==o?[new rJ(n,i,`color expected, ${o} found`)]:null===tl(i)?[new rJ(n,i,`color expected, "${i}" found`)]:[]},enum:r4,filter:ni,function:r2,layer:nl,object:rQ,source:nd,light:nh,terrain:np,fog:nf,string:nc,formatted:function(r){return 0===nc(r).length?[]:r3(r)},resolvedImage:function(r){return 0===nc(r).length?[]:r3(r)},projection:function(r){let n=r.value,i=r.styleSpec,o=i.projection,a=r.style,s=[],l=rL(n);if("object"===l)for(let r in n)s=s.concat(ng({key:r,value:n[r],valueSpec:o[r],style:a,styleSpec:i}));else"string"!==l&&(s=s.concat([new rJ("projection",n,`object or string expected, ${l} found`)]));return s}};function ng(r){let n=r.value,i=r.valueSpec,o=r.styleSpec;return i.expression&&rz(eJ(n))?r2(r):i.expression&&rG(eQ(n))?r3(r):i.type&&nm[i.type]?nm[i.type](r):rQ(eK({},r,{valueSpec:i.type?o[i.type]:i}))}function nv(r){let n=r.value,i=r.key,o=nc(r);return o.length||(-1===n.indexOf("{fontstack}")&&o.push(new rJ(i,n,'"glyphs" url must include a "{fontstack}" token')),-1===n.indexOf("{range}")&&o.push(new rJ(i,n,'"glyphs" url must include a "{range}" token'))),o}function ny(r,n=eY){return n_(ng({key:"",value:r,valueSpec:n.$root,styleSpec:n,style:r,objectElementValidators:{glyphs:nv,"*":()=>[]}}))}let nb=r=>n_(na(r)),nx=r=>n_(ns(r));function n_(r){return r.slice().sort((r,n)=>r.line&&n.line?r.line-n.line:0)}function nw(r,n){let i=!1;if(n&&n.length)for(let o of n)r.fire(new eH(Error(o.message))),i=!0;return i}function nS(r,n,i){var o=this.cells=[];if(r instanceof ArrayBuffer){this.arrayBuffer=r;var a=new Int32Array(this.arrayBuffer);r=a[0],this.d=(n=a[1])+2*(i=a[2]);for(var s=0;s<this.d*this.d;s++){var l=a[3+s],c=a[3+s+1];o.push(l===c?null:a.subarray(l,c))}var u=a[3+o.length+1];this.keys=a.subarray(a[3+o.length],u),this.bboxes=a.subarray(u),this.insert=this._insertReadonly}else{this.d=n+2*i;for(var d=0;d<this.d*this.d;d++)o.push([]);this.keys=[],this.bboxes=[]}this.n=n,this.extent=r,this.padding=i,this.scale=n/r,this.uid=0;var h=i/n*r;this.min=-h,this.max=r+h}nS.prototype.insert=function(r,n,i,o,a){this._forEachCell(n,i,o,a,this._insertCell,this.uid++),this.keys.push(r),this.bboxes.push(n),this.bboxes.push(i),this.bboxes.push(o),this.bboxes.push(a)},nS.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},nS.prototype._insertCell=function(r,n,i,o,a,s){this.cells[a].push(s)},nS.prototype.query=function(r,n,i,o,a){var s=this.min,l=this.max;if(r<=s&&n<=s&&l<=i&&l<=o&&!a)return Array.prototype.slice.call(this.keys);var c=[];return this._forEachCell(r,n,i,o,this._queryCell,c,{},a),c},nS.prototype._queryCell=function(r,n,i,o,a,s,l,c){var u=this.cells[a];if(null!==u)for(var d=this.keys,h=this.bboxes,p=0;p<u.length;p++){var f=u[p];if(void 0===l[f]){var m=4*f;(c?c(h[m+0],h[m+1],h[m+2],h[m+3]):r<=h[m+2]&&n<=h[m+3]&&i>=h[m+0]&&o>=h[m+1])?(l[f]=!0,s.push(d[f])):l[f]=!1}}},nS.prototype._forEachCell=function(r,n,i,o,a,s,l,c){for(var u=this._convertToCellCoord(r),d=this._convertToCellCoord(n),h=this._convertToCellCoord(i),p=this._convertToCellCoord(o),f=u;f<=h;f++)for(var m=d;m<=p;m++){var g=this.d*m+f;if((!c||c(this._convertFromCellCoord(f),this._convertFromCellCoord(m),this._convertFromCellCoord(f+1),this._convertFromCellCoord(m+1)))&&a.call(this,r,n,i,o,g,s,l,c))return}},nS.prototype._convertFromCellCoord=function(r){return(r-this.padding)/this.scale},nS.prototype._convertToCellCoord=function(r){return Math.max(0,Math.min(this.d-1,Math.floor(r*this.scale)+this.padding))},nS.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var r=this.cells,n=3+this.cells.length+1+1,i=0,o=0;o<this.cells.length;o++)i+=this.cells[o].length;var a=new Int32Array(n+i+this.keys.length+this.bboxes.length);a[0]=this.extent,a[1]=this.n,a[2]=this.padding;
170for(var s=n,l=0;l<r.length;l++){var c=r[l];a[3+l]=s,a.set(c,s),s+=c.length}return a[3+r.length]=s,a.set(this.keys,s),a[3+r.length+1]=s+=this.keys.length,a.set(this.bboxes,s),s+=this.bboxes.length,a.buffer};var nT=S(nS);let nE={};function nk(r,n,i={}){Object.defineProperty(r,"_classRegistryKey",{value:n,writeable:!1}),nE[n]={klass:r,omit:i.omit||[]}}for(let r in nk(Object,"Object"),nT.serialize=function(r,n){let i=r.toArrayBuffer();return n&&n.push(i),{buffer:i}},nT.deserialize=function(r){return new nT(r.buffer)},Object.defineProperty(nT,"name",{value:"Grid"}),nk(nT,"Grid"),nk(tf,"Color"),nk(Error,"Error"),nk(ep,"AJAXError"),nk(ty,"ResolvedImage"),nk(rK,"StylePropertyFunction"),nk(r$,"StyleExpression",{omit:["_evaluator"]}),nk(rX,"ZoomDependentExpression"),nk(rH,"ZoomConstantExpression"),nk(tI,"CompoundExpression",{omit:["_evaluate"]}),rP)nE[rP[r]._classRegistryKey]||nk(rP[r],`Expression${r}`);function nC(r){return r&&"undefined"!=typeof ArrayBuffer&&(r instanceof ArrayBuffer||r.constructor&&"ArrayBuffer"===r.constructor.name)}function nP(r){return f.ImageBitmap&&r instanceof f.ImageBitmap}function nO(r,n){if(null==r||"boolean"==typeof r||"number"==typeof r||"string"==typeof r||r instanceof Boolean||r instanceof Number||r instanceof String||r instanceof Date||r instanceof RegExp)return r;if(nC(r)||nP(r))return n&&n.push(r),r;if(ArrayBuffer.isView(r))return n&&n.push(r.buffer),r;if(r instanceof f.ImageData)return n&&n.push(r.data.buffer),r;if(Array.isArray(r)){let i=[];for(let o of r)i.push(nO(o,n));return i}if("object"==typeof r){let i=r.constructor,o=i._classRegistryKey;if(!o)throw Error(`can't serialize object of unregistered class ${o}`);let a=i.serialize?i.serialize(r,n):{};if(!i.serialize){for(let i in r)r.hasOwnProperty(i)&&(nE[o].omit.indexOf(i)>=0||(a[i]=nO(r[i],n)));r instanceof Error&&(a.message=r.message)}if(a.$name)throw Error("$name property is reserved for worker serialization logic.");return"Object"!==o&&(a.$name=o),a}throw Error("can't serialize object of type "+typeof r)}function nj(r){if(null==r||"boolean"==typeof r||"number"==typeof r||"string"==typeof r||r instanceof Boolean||r instanceof Number||r instanceof String||r instanceof Date||r instanceof RegExp||nC(r)||nP(r)||ArrayBuffer.isView(r)||r instanceof f.ImageData)return r;if(Array.isArray(r))return r.map(nj);if("object"==typeof r){let n=r.$name||"Object",{klass:i}=nE[n];if(!i)throw Error(`can't deserialize unregistered class ${n}`);if(i.deserialize)return i.deserialize(r);let o=Object.create(i.prototype);for(let n of Object.keys(r))"$name"!==n&&(o[n]=nj(r[n]));return o}throw Error("can't deserialize object of type "+typeof r)}let nA={"Latin-1 Supplement":r=>r>=128&&r<=255,Arabic:r=>r>=1536&&r<=1791,"Arabic Supplement":r=>r>=1872&&r<=1919,"Arabic Extended-A":r=>r>=2208&&r<=2303,"Hangul Jamo":r=>r>=4352&&r<=4607,"Unified Canadian Aboriginal Syllabics":r=>r>=5120&&r<=5759,Khmer:r=>r>=6016&&r<=6143,"Unified Canadian Aboriginal Syllabics Extended":r=>r>=6320&&r<=6399,"General Punctuation":r=>r>=8192&&r<=8303,"Letterlike Symbols":r=>r>=8448&&r<=8527,"Number Forms":r=>r>=8528&&r<=8591,"Miscellaneous Technical":r=>r>=8960&&r<=9215,"Control Pictures":r=>r>=9216&&r<=9279,"Optical Character Recognition":r=>r>=9280&&r<=9311,"Enclosed Alphanumerics":r=>r>=9312&&r<=9471,"Geometric Shapes":r=>r>=9632&&r<=9727,"Miscellaneous Symbols":r=>r>=9728&&r<=9983,"Miscellaneous Symbols and Arrows":r=>r>=11008&&r<=11263,"CJK Radicals Supplement":r=>r>=11904&&r<=12031,"Kangxi Radicals":r=>r>=12032&&r<=12255,"Ideographic Description Characters":r=>r>=12272&&r<=12287,"CJK Symbols and Punctuation":r=>r>=12288&&r<=12351,Hiragana:r=>r>=12352&&r<=12447,Katakana:r=>r>=12448&&r<=12543,Bopomofo:r=>r>=12544&&r<=12591,"Hangul Compatibility Jamo":r=>r>=12592&&r<=12687,Kanbun:r=>r>=12688&&r<=12703,"Bopomofo Extended":r=>r>=12704&&r<=12735,"CJK Strokes":r=>r>=12736&&r<=12783,"Katakana Phonetic Extensions":r=>r>=12784&&r<=12799,"Enclosed CJK Letters and Months":r=>r>=12800&&r<=13055,"CJK Compatibility":r=>r>=13056&&r<=13311,"CJK Unified Ideographs Extension A":r=>r>=13312&&r<=19903,"Yijing Hexagram Symbols":r=>r>=19904&&r<=19967,"CJK Unified Ideographs":r=>r>=19968&&r<=40959,"Yi Syllables":r=>r>=40960&&r<=42127,"Yi Radicals":r=>r>=42128&&r<=42191,"Hangul Jamo Extended-A":r=>r>=43360&&r<=43391,"Hangul Syllables":r=>r>=44032&&r<=55215,"Hangul Jamo Extended-B":r=>r>=55216&&r<=55295,"Private Use Area":r=>r>=57344&&r<=63743,"CJK Compatibility Ideographs":r=>r>=63744&&r<=64255,"Arabic Presentation Forms-A":r=>r>=64336&&r<=65023,"Vertical Forms":r=>r>=65040&&r<=65055,"CJK Compatibility Forms":r=>r>=65072&&r<=65103,"Small Form Variants":r=>r>=65104&&r<=65135,"Arabic Presentation Forms-B":r=>r>=65136&&r<=65279,"Halfwidth and Fullwidth Forms":r=>r>=65280&&r<=65519};function nM(r){for(let n of r)if(nI(n.charCodeAt(0)))return!0;return!1}function nI(r){return!(746!==r&&747!==r&&(r<4352||!(nA["Bopomofo Extended"](r)||nA.Bopomofo(r)||nA["CJK Compatibility Forms"](r)&&!(r>=65097&&r<=65103)||nA["CJK Compatibility Ideographs"](r)||nA["CJK Compatibility"](r)||nA["CJK Radicals Supplement"](r)||nA["CJK Strokes"](r)||!(!nA["CJK Symbols and Punctuation"](r)||r>=12296&&r<=12305||r>=12308&&r<=12319||12336===r)||nA["CJK Unified Ideographs Extension A"](r)||nA["CJK Unified Ideographs"](r)||nA["Enclosed CJK Letters and Months"](r)||nA["Hangul Compatibility Jamo"](r)||nA["Hangul Jamo Extended-A"](r)||nA["Hangul Jamo Extended-B"](r)||nA["Hangul Jamo"](r)||nA["Hangul Syllables"](r)||nA.Hiragana(r)||nA["Ideographic Description Characters"](r)||nA.Kanbun(r)||nA["Kangxi Radicals"](r)||nA["Katakana Phonet
170ic Extensions"](r)||nA.Katakana(r)&&12540!==r||!(!nA["Halfwidth and Fullwidth Forms"](r)||65288===r||65289===r||65293===r||r>=65306&&r<=65310||65339===r||65341===r||65343===r||r>=65371&&r<=65503||65507===r||r>=65512&&r<=65519)||!(!nA["Small Form Variants"](r)||r>=65112&&r<=65118||r>=65123&&r<=65126)||nA["Unified Canadian Aboriginal Syllabics"](r)||nA["Unified Canadian Aboriginal Syllabics Extended"](r)||nA["Vertical Forms"](r)||nA["Yijing Hexagram Symbols"](r)||nA["Yi Syllables"](r)||nA["Yi Radicals"](r))))}function nZ(r){return!(nI(r)||nA["Latin-1 Supplement"](r)&&(167===r||169===r||174===r||177===r||188===r||189===r||190===r||215===r||247===r)||nA["General Punctuation"](r)&&(8214===r||8224===r||8225===r||8240===r||8241===r||8251===r||8252===r||8258===r||8263===r||8264===r||8265===r||8273===r)||nA["Letterlike Symbols"](r)||nA["Number Forms"](r)||nA["Miscellaneous Technical"](r)&&(r>=8960&&r<=8967||r>=8972&&r<=8991||r>=8996&&r<=9e3||9003===r||r>=9085&&r<=9114||r>=9150&&r<=9165||9167===r||r>=9169&&r<=9179||r>=9186&&r<=9215)||nA["Control Pictures"](r)&&9251!==r||nA["Optical Character Recognition"](r)||nA["Enclosed Alphanumerics"](r)||nA["Geometric Shapes"](r)||nA["Miscellaneous Symbols"](r)&&!(r>=9754&&r<=9759)||nA["Miscellaneous Symbols and Arrows"](r)&&(r>=11026&&r<=11055||r>=11088&&r<=11097||r>=11192&&r<=11243)||nA["CJK Symbols and Punctuation"](r)||nA.Katakana(r)||nA["Private Use Area"](r)||nA["CJK Compatibility Forms"](r)||nA["Small Form Variants"](r)||nA["Halfwidth and Fullwidth Forms"](r)||8734===r||8756===r||8757===r||r>=9984&&r<=10087||r>=10102&&r<=10131||65532===r||65533===r)}function nR(r){return r>=1424&&r<=2303||nA["Arabic Presentation Forms-A"](r)||nA["Arabic Presentation Forms-B"](r)}let nD="deferred",nL="loading",nz="loaded",nB=null,nF="unavailable",nN=null,nU=function(r){r&&"string"==typeof r&&r.indexOf("NetworkError")>-1&&(nF="error"),nB&&nB(r)};function nV(){nq.fire(new eW("pluginStateChange",{pluginStatus:nF,pluginURL:nN}))}let nq=new eX,n$=function(){return nF},nG=function(){if(nF!==nD||!nN)throw Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");nF=nL,nV(),nN&&eg({url:nN},r=>{r?nU(r):(nF=nz,nV())})},nW={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>nF===nz||null!=nW.applyArabicShaping,isLoading:()=>nF===nL,setState(r){nF=r.pluginStatus,nN=r.pluginURL},isParsed:()=>null!=nW.applyArabicShaping&&null!=nW.processBidirectionalText&&null!=nW.processStyledBidirectionalText,getPluginURL:()=>nN};class nH{constructor(r,n){this.zoom=r,n?(this.now=n.now,this.fadeDuration=n.fadeDuration,this.transition=n.transition,this.pitch=n.pitch):(this.now=0,this.fadeDuration=0,this.transition={},this.pitch=0)}isSupportedScript(r){return function(r,n){for(let o of r){var i;if(i=o.charCodeAt(0),!n&&nR(i)||i>=2304&&i<=3583||i>=3840&&i<=4255||nA.Khmer(i))return!1}return!0}(r,nW.isLoaded())}}class nX{constructor(r,n){this.property=r,this.value=n,this.expression=function(r,n){if(rz(r))return new rK(r,n);if(rG(r)){let i=rY(r,n);if("error"===i.result)throw Error(i.value.map(r=>`${r.key}: ${r.message}`).join(", "));return i.value}{let i=r;return"string"==typeof r&&"color"===n.type&&(i=tf.parse(r)),{kind:"constant",evaluate:()=>i}}}(void 0===n?r.specification.default:n,r.specification)}isDataDriven(){return"source"===this.expression.kind||"composite"===this.expression.kind}possiblyEvaluate(r,n,i){return this.property.possiblyEvaluate(this,r,n,i)}}class nY{constructor(r){this.property=r,this.value=new nX(r,void 0)}transitioned(r,n){return new nJ(this.property,this.value,n,B({},r.transition,this.transition),r.now)}untransitioned(){return new nJ(this.property,this.value,null,{},0)}}class nK{constructor(r){this._properties=r,this._values=Object.create(r.defaultTransitionablePropertyValues)}getValue(r){return X(this._values[r].value.value)}setValue(r,n){this._values.hasOwnProperty(r)||(this._values[r]=new nY(this._values[r].property)),this._values[r].value=new nX(this._values[r].property,null===n?void 0:X(n))}getTransition(r){return X(this._values[r].transition)}setTransition(r,n){this._values.hasOwnProperty(r)||(this._values[r]=new nY(this._values[r].property)),this._values[r].transition=X(n)||void 0}serialize(){let r={};for(let n of Object.keys(this._values)){let i=this.getValue(n);void 0!==i&&(r[n]=i);let o=this.getTransition(n);void 0!==o&&(r[`${n}-transition`]=o)}return r}transitioned(r,n){let i=new nQ(this._properties);for(let o of Object.keys(this._values))i._values[o]=this._values[o].transitioned(r,n._values[o]);return i}untransitioned(){let r=new nQ(this._properties);for(let n of Object.keys(this._values))r._values[n]=this._values[n].untransitioned();return r}}class nJ{constructor(r,n,i,o,a){let s=o.delay||0,l=o.duration||0;a=a||0,this.property=r,this.value=n,this.begin=a+s,this.end=this.begin+l,r.specification.transition&&(o.delay||o.duration)&&(this.prior=i)}possiblyEvaluate(r,n,i){let o=r.now||0,a=this.value.possiblyEvaluate(r,n,i),s=this.prior;if(s){if(o>this.end||this.value.isDataDriven())return this.prior=null,a;if(o<this.begin)return s.possiblyEvaluate(r,n,i);{let l=(o-this.begin)/(this.end-this.begin);return this.property.interpolate(s.possiblyEvaluate(r,n,i),a,A(l))}}return a}}class nQ{constructor(r){this._properties=r,this._values=Object.create(r.defaultTransitioningPropertyValues)}possiblyEvaluate(r,n,i){let o=new n2(this._properties);for(let a of Object.keys(this._values))o._values[a]=this._values[a].possiblyEvaluate(r,n,i);return o}hasTransition(){for(let r of Object.keys(this._values))if(this._values[r].prior)return!0;return!1}}class n0{constructor(r){this._properties=r,this._values=Object.create(r.defaultPropertyValues)}getValue(r){return X(this._values[r].value)}setValue(r,n){this._values[r]=new nX(this._values[r].property,null===n?void 0:X(n))}serialize(){let r={};for(let n of Object.keys(this._values)){let i=this.getValue(n);void 0!==i&&(r[n]=i)}return r}possiblyEvaluate(r,n,i){let o=new n2(this._properties);for(let a of Object.keys(this._values))o._values[a]=this._values[a].possiblyEvaluate(r,n,i);return o}}class n1{constructor(r,n,i){this.property=r,this.value=n,this.parameters=i}isConstant(){return"constant"===this.value.kind}constantOr(r){return"constant"===this.value.kind?this.value.value:r}evaluate(r,n,i,o){return this.property.evaluate(this.value,this.parameters,r,n,i,o)}}class n2{constructor(r){this._properties=r,this._values=Object.create(r.defaultPossiblyEvaluatedValues)}get(r){return this._values[r]}}class n3{constructor(r){this.specification=r}possiblyEvaluate(r,n){return r.expression.evaluate(n)}interpolate(r,n,i){let o=t1[this.specification.type];return o?o(r,n,i):r}}class n4{constructor(r,n){this.specification=r,this.overrides=n}possiblyEvaluate(r,n,i,o){return new n1(this,"constant"===r.expression.kind||"camera"===r.expression.kind?{kind:"constant",value:r.expression.evaluate(n,null,{},i,o)}:r.expression,n)}interpolate(r,n,i){if("constant"!==r.value.kind||"constant"!==n.value.kind)return r;if(void 0===r.value.value||void 0===n.value.value)return new n1(this,{kind:"constant",value:void 0},r.parameters);let o=t1[this.specification.type];return o?new n1(this,{kind:"constant",value:o(r.value.value,n.value.value,i)},r.parameters):r}evaluate(r,n,i,o,a,s){return"constant"===r.kind?r.value:r.evaluate(n,i,o,a,s)}}class n5{constructor(r){this.specification=r}possiblyEvaluate(r,n,i,o){return!!r.expression.evaluate(n,null,{},i,o)}interpolate(){return!1}}class n6{constructor(r){this.properties=r,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];let n=new nH(0,{});for(let i in r){let o=r[i];o.specification.overridable&&this.overridableProperties.push(i);let a=this.defaultPropertyValues[i]=new nX(o,void 0),s=this.defaultTransitionablePropertyValues[i]=new nY(o);this.defaultTransitioningPropertyValues[i]=s.untransitioned(),this.defaultPossiblyEvaluatedValues[i]=a.possiblyEvaluate(n)}}}function n8(r,n){return 256*(r=Z(Math.floor(r),0,255))+Z(Math.floor(n),0,255)}nk(n4,"DataDrivenProperty"),nk(n3,"DataConstantProperty"),nk(n5,"ColorRampProperty");let n9={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};
170class n7{constructor(r,n){this._structArray=r,this._pos1=n*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class ie{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(r,n){return r._trim(),n&&(r.isTransferred=!0,n.push(r.arrayBuffer)),{length:r.length,arrayBuffer:r.arrayBuffer}}static deserialize(r){let n=Object.create(this.prototype);return n.arrayBuffer=r.arrayBuffer,n.length=r.length,n.capacity=r.arrayBuffer.byteLength/n.bytesPerElement,n._refreshViews(),n}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(r){this.reserve(r),this.length=r}reserve(r){if(r>this.capacity){this.capacity=Math.max(r,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);let n=this.uint8;this._refreshViews(),n&&this.uint8.set(n)}}_refreshViews(){throw Error("_refreshViews() must be implemented by each concrete StructArray layout")}destroy(){this.int8=this.uint8=this.int16=this.uint16=this.int32=this.uint32=this.float32=null,this.arrayBuffer=null}}function it(r,n=1){let i=0,o=0;return{members:r.map(r=>{let a=n9[r.type].BYTES_PER_ELEMENT,s=i=ir(i,Math.max(n,a)),l=r.components||1;return o=Math.max(o,a),i+=a*l,{name:r.name,type:r.type,components:l,offset:s}}),size:ir(i,Math.max(o,n)),alignment:n}}function ir(r,n){return Math.ceil(r/n)*n}class ii extends ie{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(r,n){let i=this.length;return this.resize(i+1),this.emplace(i,r,n)}emplace(r,n,i){let o=2*r;return this.int16[o+0]=n,this.int16[o+1]=i,r}}ii.prototype.bytesPerElement=4,nk(ii,"StructArrayLayout2i4");class io extends ie{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(r,n,i){let o=this.length;return this.resize(o+1),this.emplace(o,r,n,i)}emplace(r,n,i,o){let a=3*r;return this.int16[a+0]=n,this.int16[a+1]=i,this.int16[a+2]=o,r}}io.prototype.bytesPerElement=6,nk(io,"StructArrayLayout3i6");class ia extends ie{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(r,n,i,o){let a=this.length;return this.resize(a+1),this.emplace(a,r,n,i,o)}emplace(r,n,i,o,a){let s=4*r;return this.int16[s+0]=n,this.int16[s+1]=i,this.int16[s+2]=o,this.int16[s+3]=a,r}}ia.prototype.bytesPerElement=8,nk(ia,"StructArrayLayout4i8");class is extends ie{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(r,n,i,o,a,s,l){let c=this.length;return this.resize(c+1),this.emplace(c,r,n,i,o,a,s,l)}emplace(r,n,i,o,a,s,l,c){let u=6*r,d=12*r;return this.int16[u+0]=n,this.int16[u+1]=i,this.uint8[d+4]=o,this.uint8[d+5]=a,this.uint8[d+6]=s,this.uint8[d+7]=l,this.float32[3*r+2]=c,r}}is.prototype.bytesPerElement=12,nk(is,"StructArrayLayout2i4ub1f12");class il extends ie{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(r,n,i,o){let a=this.length;return this.resize(a+1),this.emplace(a,r,n,i,o)}emplace(r,n,i,o,a){let s=4*r;return this.float32[s+0]=n,this.float32[s+1]=i,this.float32[s+2]=o,this.float32[s+3]=a,r}}il.prototype.bytesPerElement=16,nk(il,"StructArrayLayout4f16");class ic extends ie{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(r,n,i,o,a){let s=this.length;return this.resize(s+1),this.emplace(s,r,n,i,o,a)}emplace(r,n,i,o,a,s){let l=6*r;return this.uint16[l+0]=n,this.uint16[l+1]=i,this.uint16[l+2]=o,this.uint16[l+3]=a,this.float32[3*r+2]=s,r}}ic.prototype.bytesPerElement=12,nk(ic,"StructArrayLayout4ui1f12");class iu extends ie{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(r,n,i,o){let a=this.length;return this.resize(a+1),this.emplace(a,r,n,i,o)}emplace(r,n,i,o,a){let s=4*r;return this.uint16[s+0]=n,this.uint16[s+1]=i,this.uint16[s+2]=o,this.uint16[s+3]=a,r}}iu.prototype.bytesPerElement=8,nk(iu,"StructArrayLayout4ui8");class id extends ie{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(r,n,i,o,a,s){let l=this.length;return this.resize(l+1),this.emplace(l,r,n,i,o,a,s)}emplace(r,n,i,o,a,s,l){let c=6*r;return this.int16[c+0]=n,this.int16[c+1]=i,this.int16[c+2]=o,this.int16[c+3]=a,this.int16[c+4]=s,this.int16[c+5]=l,r}}id.prototype.bytesPerElement=12,nk(id,"StructArrayLayout6i12");class ih extends ie{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(r,n,i,o,a,s,l,c,u,d,h,p){let f=this.length;return this.resize(f+1),this.emplace(f,r,n,i,o,a,s,l,c,u,d,h,p)}emplace(r,n,i,o,a,s,l,c,u,d,h,p,f){let m=12*r;return this.int16[m+0]=n,this.int16[m+1]=i,this.int16[m+2]=o,this.int16[m+3]=a,this.uint16[m+4]=s,this.uint16[m+5]=l,this.uint16[m+6]=c,this.uint16[m+7]=u,this.int16[m+8]=d,this.int16[m+9]=h,this.int16[m+10]=p,this.int16[m+11]=f,r}}ih.prototype.bytesPerElement=24,nk(ih,"StructArrayLayout4i4ui4i24");class ip extends ie{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(r,n,i,o,a,s){let l=this.length;return this.resize(l+1),this.emplace(l,r,n,i,o,a,s)}emplace(r,n,i,o,a,s,l){let c=10*r,u=5*r;return this.int16[c+0]=n,this.int16[c+1]=i,this.int16[c+2]=o,this.float32[u+2]=a,this.float32[u+3]=s,this.float32[u+4]=l,r}}ip.prototype.bytesPerElement=20,nk(ip,"StructArrayLayout3i3f20");class im extends ie{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(r){let n=this.length;return this.resize(n+1),this.emplace(n,r)}emplace(r,n){return this.uint32[1*r+0]=n,r}}
170im.prototype.bytesPerElement=4,nk(im,"StructArrayLayout1ul4");class ig extends ie{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(r,n,i,o,a,s,l,c,u,d,h,p,f){let m=this.length;return this.resize(m+1),this.emplace(m,r,n,i,o,a,s,l,c,u,d,h,p,f)}emplace(r,n,i,o,a,s,l,c,u,d,h,p,f,m){let g=20*r,v=10*r;return this.int16[g+0]=n,this.int16[g+1]=i,this.int16[g+2]=o,this.int16[g+3]=a,this.int16[g+4]=s,this.float32[v+3]=l,this.float32[v+4]=c,this.float32[v+5]=u,this.float32[v+6]=d,this.int16[g+14]=h,this.uint32[v+8]=p,this.uint16[g+18]=f,this.uint16[g+19]=m,r}}ig.prototype.bytesPerElement=40,nk(ig,"StructArrayLayout5i4f1i1ul2ui40");class iv extends ie{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(r,n,i,o,a,s,l){let c=this.length;return this.resize(c+1),this.emplace(c,r,n,i,o,a,s,l)}emplace(r,n,i,o,a,s,l,c){let u=8*r;return this.int16[u+0]=n,this.int16[u+1]=i,this.int16[u+2]=o,this.int16[u+4]=a,this.int16[u+5]=s,this.int16[u+6]=l,this.int16[u+7]=c,r}}iv.prototype.bytesPerElement=16,nk(iv,"StructArrayLayout3i2i2i16");class iy extends ie{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(r,n,i,o,a){let s=this.length;return this.resize(s+1),this.emplace(s,r,n,i,o,a)}emplace(r,n,i,o,a,s){let l=4*r,c=8*r;return this.float32[l+0]=n,this.float32[l+1]=i,this.float32[l+2]=o,this.int16[c+6]=a,this.int16[c+7]=s,r}}iy.prototype.bytesPerElement=16,nk(iy,"StructArrayLayout2f1f2i16");class ib extends ie{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(r,n,i,o){let a=this.length;return this.resize(a+1),this.emplace(a,r,n,i,o)}emplace(r,n,i,o,a){let s=12*r,l=3*r;return this.uint8[s+0]=n,this.uint8[s+1]=i,this.float32[l+1]=o,this.float32[l+2]=a,r}}ib.prototype.bytesPerElement=12,nk(ib,"StructArrayLayout2ub2f12");class ix extends ie{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(r,n,i){let o=this.length;return this.resize(o+1),this.emplace(o,r,n,i)}emplace(r,n,i,o){let a=3*r;return this.float32[a+0]=n,this.float32[a+1]=i,this.float32[a+2]=o,r}}ix.prototype.bytesPerElement=12,nk(ix,"StructArrayLayout3f12");class i_ extends ie{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(r,n,i){let o=this.length;return this.resize(o+1),this.emplace(o,r,n,i)}emplace(r,n,i,o){let a=3*r;return this.uint16[a+0]=n,this.uint16[a+1]=i,this.uint16[a+2]=o,r}}i_.prototype.bytesPerElement=6,nk(i_,"StructArrayLayout3ui6");class iw extends ie{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(r,n,i,o,a,s,l,c,u,d,h,p,f,m,g,v,y,b,x,_,w){let S=this.length;return this.resize(S+1),this.emplace(S,r,n,i,o,a,s,l,c,u,d,h,p,f,m,g,v,y,b,x,_,w)}emplace(r,n,i,o,a,s,l,c,u,d,h,p,f,m,g,v,y,b,x,_,w,S){let T=30*r,E=15*r,k=60*r;return this.int16[T+0]=n,this.int16[T+1]=i,this.int16[T+2]=o,this.float32[E+2]=a,this.float32[E+3]=s,this.uint16[T+8]=l,this.uint16[T+9]=c,this.uint32[E+5]=u,this.uint32[E+6]=d,this.uint32[E+7]=h,this.uint16[T+16]=p,this.uint16[T+17]=f,this.uint16[T+18]=m,this.float32[E+10]=g,this.float32[E+11]=v,this.uint8[k+48]=y,this.uint8[k+49]=b,this.uint8[k+50]=x,this.uint32[E+13]=_,this.int16[T+28]=w,this.uint8[k+58]=S,r}}iw.prototype.bytesPerElement=60,nk(iw,"StructArrayLayout3i2f2ui3ul3ui2f3ub1ul1i1ub60");class iS extends ie{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}
170emplaceBack(r,n,i,o,a,s,l,c,u,d,h,p,f,m,g,v,y,b,x,_,w,S,T,E,k,C,P,O,j,A){let M=this.length;return this.resize(M+1),this.emplace(M,r,n,i,o,a,s,l,c,u,d,h,p,f,m,g,v,y,b,x,_,w,S,T,E,k,C,P,O,j,A)}emplace(r,n,i,o,a,s,l,c,u,d,h,p,f,m,g,v,y,b,x,_,w,S,T,E,k,C,P,O,j,A,M){let I=38*r,Z=19*r;return this.int16[I+0]=n,this.int16[I+1]=i,this.int16[I+2]=o,this.float32[Z+2]=a,this.float32[Z+3]=s,this.int16[I+8]=l,this.int16[I+9]=c,this.int16[I+10]=u,this.int16[I+11]=d,this.int16[I+12]=h,this.int16[I+13]=p,this.uint16[I+14]=f,this.uint16[I+15]=m,this.uint16[I+16]=g,this.uint16[I+17]=v,this.uint16[I+18]=y,this.uint16[I+19]=b,this.uint16[I+20]=x,this.uint16[I+21]=_,this.uint16[I+22]=w,this.uint16[I+23]=S,this.uint16[I+24]=T,this.uint16[I+25]=E,this.uint16[I+26]=k,this.uint16[I+27]=C,this.uint16[I+28]=P,this.uint32[Z+15]=O,this.float32[Z+16]=j,this.float32[Z+17]=A,this.float32[Z+18]=M,r}}iS.prototype.bytesPerElement=76,nk(iS,"StructArrayLayout3i2f6i15ui1ul3f76");class iT extends ie{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(r){let n=this.length;return this.resize(n+1),this.emplace(n,r)}emplace(r,n){return this.float32[1*r+0]=n,r}}iT.prototype.bytesPerElement=4,nk(iT,"StructArrayLayout1f4");class iE extends ie{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(r,n,i,o,a){let s=this.length;return this.resize(s+1),this.emplace(s,r,n,i,o,a)}emplace(r,n,i,o,a,s){let l=5*r;return this.float32[l+0]=n,this.float32[l+1]=i,this.float32[l+2]=o,this.float32[l+3]=a,this.float32[l+4]=s,r}}iE.prototype.bytesPerElement=20,nk(iE,"StructArrayLayout5f20");class ik extends ie{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(r,n,i,o){let a=this.length;return this.resize(a+1),this.emplace(a,r,n,i,o)}emplace(r,n,i,o,a){let s=6*r;return this.uint32[3*r+0]=n,this.uint16[s+2]=i,this.uint16[s+3]=o,this.uint16[s+4]=a,r}}ik.prototype.bytesPerElement=12,nk(ik,"StructArrayLayout1ul3ui12");class iC extends ie{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(r,n){let i=this.length;return this.resize(i+1),this.emplace(i,r,n)}emplace(r,n,i){let o=2*r;return this.uint16[o+0]=n,this.uint16[o+1]=i,r}}iC.prototype.bytesPerElement=4,nk(iC,"StructArrayLayout2ui4");class iP extends ie{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(r){let n=this.length;return this.resize(n+1),this.emplace(n,r)}emplace(r,n){return this.uint16[1*r+0]=n,r}}iP.prototype.bytesPerElement=2,nk(iP,"StructArrayLayout1ui2");class iO extends ie{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(r,n){let i=this.length;return this.resize(i+1),this.emplace(i,r,n)}emplace(r,n,i){let o=2*r;return this.float32[o+0]=n,this.float32[o+1]=i,r}}iO.prototype.bytesPerElement=8,nk(iO,"StructArrayLayout2f8");class ij extends n7{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.int16[this._pos2+3]}get tileAnchorY(){return this._structArray.int16[this._pos2+4]}get x1(){return this._structArray.float32[this._pos4+3]}get y1(){return this._structArray.float32[this._pos4+4]}get x2(){return this._structArray.float32[this._pos4+5]}get y2(){return this._structArray.float32[this._pos4+6]}get padding(){return this._structArray.int16[this._pos2+14]}get featureIndex(){return this._structArray.uint32[this._pos4+8]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+18]}get bucketIndex(){return this._structArray.uint16[this._pos2+19]}}ij.prototype.size=40;class iA extends ig{get(r){return new ij(this,r)}}nk(iA,"CollisionBoxArray");class iM extends n7{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.float32[this._pos4+2]}get tileAnchorY(){return this._structArray.float32[this._pos4+3]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+8]}get numGlyphs(){return this._structArray.uint16[this._pos2+9]}
170get vertexStartIndex(){return this._structArray.uint32[this._pos4+5]}get lineStartIndex(){return this._structArray.uint32[this._pos4+6]}get lineLength(){return this._structArray.uint32[this._pos4+7]}get segment(){return this._structArray.uint16[this._pos2+16]}get lowerSize(){return this._structArray.uint16[this._pos2+17]}get upperSize(){return this._structArray.uint16[this._pos2+18]}get lineOffsetX(){return this._structArray.float32[this._pos4+10]}get lineOffsetY(){return this._structArray.float32[this._pos4+11]}get writingMode(){return this._structArray.uint8[this._pos1+48]}get placedOrientation(){return this._structArray.uint8[this._pos1+49]}set placedOrientation(r){this._structArray.uint8[this._pos1+49]=r}get hidden(){return this._structArray.uint8[this._pos1+50]}set hidden(r){this._structArray.uint8[this._pos1+50]=r}get crossTileID(){return this._structArray.uint32[this._pos4+13]}set crossTileID(r){this._structArray.uint32[this._pos4+13]=r}get associatedIconIndex(){return this._structArray.int16[this._pos2+28]}get flipState(){return this._structArray.uint8[this._pos1+58]}set flipState(r){this._structArray.uint8[this._pos1+58]=r}}iM.prototype.size=60;class iI extends iw{get(r){return new iM(this,r)}}nk(iI,"PlacedSymbolArray");class iZ extends n7{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.float32[this._pos4+2]}get tileAnchorY(){return this._structArray.float32[this._pos4+3]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+8]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+9]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+10]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+11]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+12]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+13]}get key(){return this._structArray.uint16[this._pos2+14]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+17]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+18]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+19]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+20]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+21]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+22]}get featureIndex(){return this._structArray.uint16[this._pos2+23]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+24]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+25]}get numIconVertices(){return this._structArray.uint16[this._pos2+26]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+27]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+28]}get crossTileID(){return this._structArray.uint32[this._pos4+15]}set crossTileID(r){this._structArray.uint32[this._pos4+15]=r}get textOffset0(){return this._structArray.float32[this._pos4+16]}get textOffset1(){return this._structArray.float32[this._pos4+17]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+18]}}iZ.prototype.size=76;class iR extends iS{get(r){return new iZ(this,r)}}nk(iR,"SymbolInstanceArray");class iD extends iT{getoffsetX(r){return this.float32[1*r+0]}}nk(iD,"GlyphOffsetArray");class iL extends ii{getx(r){return this.int16[2*r+0]}gety(r){return this.int16[2*r+1]}}nk(iL,"SymbolLineVertexArray");class iz extends n7{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}get layoutVertexArrayOffset(){return this._structArray.uint16[this._pos2+4]}}iz.prototype.size=12;class iB extends ik{get(r){return new iz(this,r)}}nk(iB,"FeatureIndexArray");class iF extends iC{geta_centroid_pos0(r){return this.uint16[2*r+0]}geta_centroid_pos1(r){return this.uint16[2*r+1]}}nk(iF,"FillExtrusionCentroidArray");let iN=it([{name:"a_pattern",components:4,type:"Uint16"},{name:"a_pixel_ratio",components:1,type:"Float32"}]),iU=it([{name:"a_dash",components:4,type:"Uint16"}]);var iV={exports:{}},iq={exports:{}};iq.exports=function(r,n){var i,o,a,s,l,c;for(o=r.length-(i=3&r.length),a=n,c=0;c<o;)l=255&r.charCodeAt(c)|(255&r.charCodeAt(++c))<<8|(255&r.charCodeAt(++c))<<16|(255&r.charCodeAt(++c))<<24,++c,a=27492+(65535&(s=5*(65535&(a=(a^=l=(65535&(l=(l=(65535&l)*3432918353+(((l>>>16)*3432918353&65535)<<16)&4294967295)<<15|l>>>17))*461845907+(((l>>>16)*461845907&65535)<<16)&4294967295)<<13|a>>>19))+((5*(a>>>16)&65535)<<16)&4294967295))+((58964+(s>>>16)&65535)<<16);switch(l=0,i){case 3:l^=(255&r.charCodeAt(c+2))<<16;case 2:l^=(255&r.charCodeAt(c+1))<<8;
170case 1:a^=l=(65535&(l=(l=(65535&(l^=255&r.charCodeAt(c)))*3432918353+(((l>>>16)*3432918353&65535)<<16)&4294967295)<<15|l>>>17))*461845907+(((l>>>16)*461845907&65535)<<16)&4294967295}return a^=r.length,a=2246822507*(65535&(a^=a>>>16))+((2246822507*(a>>>16)&65535)<<16)&4294967295,a=3266489909*(65535&(a^=a>>>13))+((3266489909*(a>>>16)&65535)<<16)&4294967295,(a^=a>>>16)>>>0};var i$=iq.exports,iG={exports:{}};iG.exports=function(r,n){for(var i,o=r.length,a=n^o,s=0;o>=4;)i=1540483477*(65535&(i=255&r.charCodeAt(s)|(255&r.charCodeAt(++s))<<8|(255&r.charCodeAt(++s))<<16|(255&r.charCodeAt(++s))<<24))+((1540483477*(i>>>16)&65535)<<16),a=1540483477*(65535&a)+((1540483477*(a>>>16)&65535)<<16)^(i=1540483477*(65535&(i^=i>>>24))+((1540483477*(i>>>16)&65535)<<16)),o-=4,++s;switch(o){case 3:a^=(255&r.charCodeAt(s+2))<<16;case 2:a^=(255&r.charCodeAt(s+1))<<8;case 1:a=1540483477*(65535&(a^=255&r.charCodeAt(s)))+((1540483477*(a>>>16)&65535)<<16)}return a=1540483477*(65535&(a^=a>>>13))+((1540483477*(a>>>16)&65535)<<16),(a^=a>>>15)>>>0};var iW=iG.exports;iV.exports=i$,iV.exports.murmur3=i$,iV.exports.murmur2=iW;
170var iH=S(iV.exports);class iX{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(r,n,i,o){this.ids.push(iY(r)),this.positions.push(n,i,o)}getPositions(r){let n=iY(r),i=0,o=this.ids.length-1;for(;i<o;){let r=i+o>>1;this.ids[r]>=n?o=r:i=r+1}let a=[];for(;this.ids[i]===n;)a.push({index:this.positions[3*i],start:this.positions[3*i+1],end:this.positions[3*i+2]}),i++;return a}static serialize(r,n){let i=new Float64Array(r.ids),o=new Uint32Array(r.positions);return function r(n,i,o,a){for(;o<a;){let s=n[o+a>>1],l=o-1,c=a+1;for(;;){do l++;while(n[l]<s);do c--;while(n[c]>s);if(l>=c)break;iK(n,l,c),iK(i,3*l,3*c),iK(i,3*l+1,3*c+1),iK(i,3*l+2,3*c+2)}c-o<a-c?(r(n,i,o,c),o=c+1):(r(n,i,c+1,a),a=c)}}(i,o,0,i.length-1),n&&n.push(i.buffer,o.buffer),{ids:i,positions:o}}static deserialize(r){let n=new iX;return n.ids=r.ids,n.positions=r.positions,n.indexed=!0,n}}function iY(r){let n=+r;return!isNaN(n)&&Number.MIN_SAFE_INTEGER<=n&&n<=Number.MAX_SAFE_INTEGER?n:iH(String(r))}function iK(r,n,i){let o=r[n];r[n]=r[i],r[i]=o}nk(iX,"FeaturePositionMap");class iJ{constructor(r){this.gl=r.gl,this.initialized=!1}fetchUniformLocation(r,n){return this.location||this.initialized||(this.location=this.gl.getUniformLocation(r,n),this.initialized=!0),!!this.location}}class iQ extends iJ{constructor(r){super(r),this.current=0}set(r,n,i){this.fetchUniformLocation(r,n)&&this.current!==i&&(this.current=i,this.gl.uniform1f(this.location,i))}}class i0 extends iJ{constructor(r){super(r),this.current=[0,0,0,0]}set(r,n,i){this.fetchUniformLocation(r,n)&&(i[0]===this.current[0]&&i[1]===this.current[1]&&i[2]===this.current[2]&&i[3]===this.current[3]||(this.current=i,this.gl.uniform4f(this.location,i[0],i[1],i[2],i[3])))}}class i1 extends iJ{constructor(r){super(r),this.current=tf.transparent}set(r,n,i){this.fetchUniformLocation(r,n)&&(i.r===this.current.r&&i.g===this.current.g&&i.b===this.current.b&&i.a===this.current.a||(this.current=i,this.gl.uniform4f(this.location,i.r,i.g,i.b,i.a)))}}let i2=new Float32Array(16),i3=new Float32Array(9),i4=new Float32Array(4);function i5(r){return[n8(255*r.r,255*r.g),n8(255*r.b,255*r.a)]}class i6{constructor(r,n,i){this.value=r,this.uniformNames=n.map(r=>`u_${r}`),this.type=i}setUniform(r,n,i,o,a){n.set(r,a,o.constantOr(this.value))}getBinding(r,n){return"color"===this.type?new i1(r):new iQ(r)}}class i8{constructor(r,n){this.uniformNames=n.map(r=>`u_${r}`),this.pattern=null,this.pixelRatio=1}setConstantPatternPositions(r){this.pixelRatio=r.pixelRatio||1,this.pattern=r.tl.concat(r.br)}setUniform(r,n,i,o,a){let s="u_pattern"===a||"u_dash"===a?this.pattern:"u_pixel_ratio"===a?this.pixelRatio:null;s&&n.set(r,a,s)}getBinding(r,n){return"u_pattern"===n||"u_dash"===n?new i0(r):new iQ(r)}}class i9{constructor(r,n,i,o){this.expression=r,this.type=i,this.maxValue=0,this.paintVertexAttributes=n.map(r=>({name:`a_${r}`,type:"Float32",components:"color"===i?2:1,offset:0})),this.paintVertexArray=new o}populatePaintArray(r,n,i,o,a,s){let l=this.paintVertexArray.length,c=this.expression.evaluate(new nH(0),n,{},a,o,s);this.paintVertexArray.resize(r),this._setPaintValue(l,r,c)}updatePaintArray(r,n,i,o,a){let s=this.expression.evaluate({zoom:0},i,o,void 0,a);this._setPaintValue(r,n,s)}_setPaintValue(r,n,i){if("color"===this.type){let o=i5(i);for(let i=r;i<n;i++)this.paintVertexArray.emplace(i,o[0],o[1])}else{for(let o=r;o<n;o++)this.paintVertexArray.emplace(o,i);this.maxValue=Math.max(this.maxValue,Math.abs(i))}}upload(r){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=r.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}}class i7{constructor(r,n,i,o,a,s){this.expression=r,this.uniformNames=n.map(r=>`u_${r}_t`),this.type=i,this.useIntegerZoom=o,this.zoom=a,this.maxValue=0,this.paintVertexAttributes=n.map(r=>({name:`a_${r}`,type:"Float32",components:"color"===i?4:2,offset:0})),this.paintVertexArray=new s}populatePaintArray(r,n,i,o,a,s){let l=this.expression.evaluate(new nH(this.zoom),n,{},a,o,s),c=this.expression.evaluate(new nH(this.zoom+1),n,{},a,o,s),u=this.paintVertexArray.length;this.paintVertexArray.resize(r),this._setPaintValue(u,r,l,c)}updatePaintArray(r,n,i,o,a){let s=this.expression.evaluate({zoom:this.zoom},i,o,void 0,a),l=this.expression.evaluate({zoom:this.zoom+1},i,o,void 0,a);this._setPaintValue(r,n,s,l)}_setPaintValue(r,n,i,o){if("color"===this.type){let a=i5(i),s=i5(o);for(let i=r;i<n;i++)this.paintVertexArray.emplace(i,a[0],a[1],s[0],s[1])}else{for(let a=r;a<n;a++)this.paintVertexArray.emplace(a,i,o);this.maxValue=Math.max(this.maxValue,Math.abs(i),Math.abs(o))}}upload(r){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=r.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}setUniform(r,n,i,o,a){let s=this.useIntegerZoom?Math.floor(i.zoom):i.zoom,l=Z(this.expression.interpolationFactor(s,this.zoom,this.zoom+1),0,1);n.set(r,a,l)}getBinding(r,n){return new iQ(r)}}class oe{constructor(r,n,i,o,a){this.expression=r,this.layerId=a,this.paintVertexAttributes=("array"===i?iU:iN).members;for(let r=0;r<n.length;++r);this.paintVertexArray=new o}populatePaintArray(r,n,i){let o=this.paintVertexArray.length;this.paintVertexArray.resize(r),this._setPaintValues(o,r,n.patterns&&n.patterns[this.layerId],i)}updatePaintArray(r,n,i,o,a,s){this._setPaintValues(r,n,i.patterns&&i.patterns[this.layerId],s)}_setPaintValues(r,n,i,o){if(!o||!i)return;let a=o[i];if(!a)return;let{tl:s,br:l,pixelRatio:c}=a;for(let i=r;i<n;i++)this.paintVertexArray.emplace(i,s[0],s[1],l[0],l[1],c)}upload(r){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer=r.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}}
170class ot{constructor(r,n,i=()=>!0){this.binders={},this._buffers=[];let o=[];for(let l in r.paint._values){var a,s;if(!i(l))continue;let c=r.paint.get(l);if(!(c instanceof n1&&rZ(c.property.specification)))continue;let u=(a=l,s=r.type,on[a]||[a.replace(`${s}-`,"").replace(/-/g,"_")]),d=c.value,h=c.property.specification.type,p=!!c.property.useIntegerZoom,f="line-dasharray"===l||l.endsWith("pattern"),m="line-dasharray"===l&&"constant"!==r.layout.get("line-cap").value.kind;if("constant"!==d.kind||m){if("source"===d.kind||m||f){let n=oa(l,h,"source");this.binders[l]=f?new oe(d,u,h,n,r.id):new i9(d,u,h,n),o.push(`/a_${l}`)}else{let r=oa(l,h,"composite");this.binders[l]=new i7(d,u,h,p,n,r),o.push(`/z_${l}`)}}else this.binders[l]=f?new i8(d.value,u):new i6(d.value,u,h),o.push(`/u_${l}`)}this.cacheKey=o.sort().join("")}getMaxValue(r){let n=this.binders[r];return n instanceof i9||n instanceof i7?n.maxValue:0}populatePaintArrays(r,n,i,o,a,s){for(let l in this.binders){let c=this.binders[l];(c instanceof i9||c instanceof i7||c instanceof oe)&&c.populatePaintArray(r,n,i,o,a,s)}}setConstantPatternPositions(r){for(let n in this.binders){let i=this.binders[n];i instanceof i8&&i.setConstantPatternPositions(r)}}updatePaintArrays(r,n,i,o,a,s){let l=!1;for(let c in r){let u=n.getPositions(c);for(let n of u){let u=i.feature(n.index);for(let i in this.binders){let d=this.binders[i];if((d instanceof i9||d instanceof i7||d instanceof oe)&&!0===d.expression.isStateDependent){let h=o.paint.get(i);d.expression=h.value,d.updatePaintArray(n.start,n.end,u,r[c],a,s),l=!0}}}}return l}defines(){let r=[];for(let n in this.binders){let i=this.binders[n];(i instanceof i6||i instanceof i8)&&r.push(...i.uniformNames.map(r=>`#define HAS_UNIFORM_${r}`))}return r}getBinderAttributes(){let r=[];for(let n in this.binders){let i=this.binders[n];if(i instanceof i9||i instanceof i7||i instanceof oe)for(let n=0;n<i.paintVertexAttributes.length;n++)r.push(i.paintVertexAttributes[n].name)}return r}getBinderUniforms(){let r=[];for(let n in this.binders){let i=this.binders[n];if(i instanceof i6||i instanceof i8||i instanceof i7)for(let n of i.uniformNames)r.push(n)}return r}getPaintVertexBuffers(){return this._buffers}getUniforms(r){let n=[];for(let i in this.binders){let o=this.binders[i];if(o instanceof i6||o instanceof i8||o instanceof i7)for(let a of o.uniformNames)n.push({name:a,property:i,binding:o.getBinding(r,a)})}return n}setUniforms(r,n,i,o,a){for(let{name:n,property:s,binding:l}of i)this.binders[s].setUniform(r,l,a,o.get(s),n)}updatePaintBuffers(){for(let r in this._buffers=[],this.binders){let n=this.binders[r];(n instanceof i9||n instanceof i7||n instanceof oe)&&n.paintVertexBuffer&&this._buffers.push(n.paintVertexBuffer)}}upload(r){for(let n in this.binders){let i=this.binders[n];(i instanceof i9||i instanceof i7||i instanceof oe)&&i.upload(r)}this.updatePaintBuffers()}destroy(){for(let r in this.binders){let n=this.binders[r];(n instanceof i9||n instanceof i7||n instanceof oe)&&n.destroy()}}}class or{constructor(r,n,i=()=>!0){for(let o of(this.programConfigurations={},r))this.programConfigurations[o.id]=new ot(o,n,i);this.needsUpload=!1,this._featureMap=new iX,this._bufferOffset=0}populatePaintArrays(r,n,i,o,a,s,l){for(let i in this.programConfigurations)this.programConfigurations[i].populatePaintArrays(r,n,o,a,s,l);void 0!==n.id&&this._featureMap.add(n.id,i,this._bufferOffset,r),this._bufferOffset=r,this.needsUpload=!0}updatePaintArrays(r,n,i,o,a){for(let s of i)this.needsUpload=this.programConfigurations[s.id].updatePaintArrays(r,this._featureMap,n,s,o,a)||this.needsUpload}get(r){return this.programConfigurations[r]}upload(r){if(this.needsUpload){for(let n in this.programConfigurations)this.programConfigurations[n].upload(r);this.needsUpload=!1}}destroy(){for(let r in this.programConfigurations)this.programConfigurations[r].destroy()}}let on={"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["ga
170pwidth"],"line-pattern":["pattern","pixel_ratio"],"fill-pattern":["pattern","pixel_ratio"],"fill-extrusion-pattern":["pattern","pixel_ratio"],"line-dasharray":["dash"]},oi={"line-pattern":{source:ic,composite:ic},"fill-pattern":{source:ic,composite:ic},"fill-extrusion-pattern":{source:ic,composite:ic},"line-dasharray":{source:iu,composite:iu}},oo={color:{source:iO,composite:il},number:{source:iT,composite:iO}};function oa(r,n,i){let o=oi[r];return o&&o[i]||oo[n][i]}nk(i6,"ConstantBinder"),nk(i8,"PatternConstantBinder"),nk(i9,"SourceExpressionBinder"),nk(oe,"PatternCompositeBinder"),nk(i7,"CompositeExpressionBinder"),nk(ot,"ProgramConfiguration",{omit:["_buffers"]}),nk(or,"ProgramConfigurationSet");let os="-transition";class ol extends eX{constructor(r,n){if(super(),this.id=r.id,this.type=r.type,this._featureFilter={filter:()=>!0,needGeometry:!1,needFeature:!1},this._filterCompiled=!1,"custom"!==r.type&&(this.metadata=r.metadata,this.minzoom=r.minzoom,this.maxzoom=r.maxzoom,"background"!==r.type&&"sky"!==r.type&&(this.source=r.source,this.sourceLayer=r["source-layer"],this.filter=r.filter),n.layout&&(this._unevaluatedLayout=new n0(n.layout)),n.paint)){for(let i in this._transitionablePaint=new nK(n.paint),r.paint)this.setPaintProperty(i,r.paint[i],{validate:!1});for(let n in r.layout)this.setLayoutProperty(n,r.layout[n],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new n2(n.paint)}}getLayoutProperty(r){return"visibility"===r?this.visibility:this._unevaluatedLayout.getValue(r)}setLayoutProperty(r,n,i={}){null!=n&&this._validate(nx,`layers.${this.id}.layout.${r}`,r,n,i)||("visibility"!==r?this._unevaluatedLayout.setValue(r,n):this.visibility=n)}getPaintProperty(r){return G(r,os)?this._transitionablePaint.getTransition(r.slice(0,-11)):this._transitionablePaint.getValue(r)}setPaintProperty(r,n,i={}){if(null!=n&&this._validate(nb,`layers.${this.id}.paint.${r}`,r,n,i))return!1;if(G(r,os))return this._transitionablePaint.setTransition(r.slice(0,-11),n||void 0),!1;{let i=this._transitionablePaint._values[r],o=i.value.isDataDriven(),a=i.value;this._transitionablePaint.setValue(r,n),this._handleSpecialPaintPropertyUpdate(r);let s=this._transitionablePaint._values[r].value,l=s.isDataDriven(),c=G(r,"pattern")||"line-dasharray"===r;return l||o||c||this._handleOverridablePaintPropertyUpdate(r,a,s)}}_handleSpecialPaintPropertyUpdate(r){}getProgramIds(){return null}getProgramConfiguration(r){return null}_handleOverridablePaintPropertyUpdate(r,n,i){return!1}isHidden(r){return!!(this.minzoom&&r<this.minzoom)||!!(this.maxzoom&&r>=this.maxzoom)||"none"===this.visibility}updateTransitions(r){this._transitioningPaint=this._transitionablePaint.transitioned(r,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(r,n){this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(r,void 0,n)),this.paint=this._transitioningPaint.possiblyEvaluate(r,void 0,n)}
170serialize(){let r={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(r.layout=r.layout||{},r.layout.visibility=this.visibility),H(r,(r,n)=>!(void 0===r||"layout"===n&&!Object.keys(r).length||"paint"===n&&!Object.keys(r).length))}_validate(r,n,i,o,a={}){return(!a||!1!==a.validate)&&nw(this,r.call(ny,{key:n,layerType:this.type,objectKey:i,value:o,styleSpec:eY,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isSky(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(let r in this.paint._values){let n=this.paint.get(r);if(n instanceof n1&&rZ(n.property.specification)&&("source"===n.value.kind||"composite"===n.value.kind)&&n.value.isStateDependent)return!0}return!1}compileFilter(){this._filterCompiled||(this._featureFilter=r6(this.filter),this._filterCompiled=!0)}invalidateCompiledFilter(){this._filterCompiled=!1}dynamicFilter(){return this._featureFilter.dynamicFilter}dynamicFilterNeedsFeature(){return this._featureFilter.needFeature}}let oc=it([{name:"a_pos",components:2,type:"Int16"}],4),ou=it([{name:"a_pos_3",components:3,type:"Int16"},{name:"a_pos_normal_3",components:3,type:"Int16"}]);class od{constructor(r=[]){this.segments=r}prepareSegment(r,n,i,o){let a=this.segments[this.segments.length-1];return r>od.MAX_VERTEX_ARRAY_LENGTH&&K(`Max vertices per segment is ${od.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${r}`),(!a||a.vertexLength+r>od.MAX_VERTEX_ARRAY_LENGTH||a.sortKey!==o)&&(a={vertexOffset:n.length,primitiveOffset:i.length,vertexLength:0,primitiveLength:0},void 0!==o&&(a.sortKey=o),this.segments.push(a)),a}get(){return this.segments}destroy(){for(let r of this.segments)for(let n in r.vaos)r.vaos[n].destroy()}static simpleSegment(r,n,i,o){return new od([{vertexOffset:r,primitiveOffset:n,vertexLength:i,primitiveLength:o,vaos:{},sortKey:0}])}}od.MAX_VERTEX_ARRAY_LENGTH=65535,nk(od,"SegmentVector");class oh{constructor(r,n){r&&(n?this.setSouthWest(r).setNorthEast(n):4===r.length?this.setSouthWest([r[0],r[1]]).setNorthEast([r[2],r[3]]):this.setSouthWest(r[0]).setNorthEast(r[1]))}setNorthEast(r){return this._ne=r instanceof aS?new aS(r.lng,r.lat):aS.convert(r),this}setSouthWest(r){return this._sw=r instanceof aS?new aS(r.lng,r.lat):aS.convert(r),this}extend(r){let n,i;let o=this._sw,a=this._ne;
vendor: 4,275 bytes, line 170
170if(r instanceof aS)n=r,i=r;else{if(!(r instanceof oh))return Array.isArray(r)?4===r.length||r.every(Array.isArray)?this.extend(oh.convert(r)):this.extend(aS.convert(r)):"object"==typeof r&&null!==r&&r.hasOwnProperty("lat")&&(r.hasOwnProperty("lon")||r.hasOwnProperty("lng"))?this.extend(aS.convert(r)):this;if(n=r._sw,i=r._ne,!n||!i)return this}return o||a?(o.lng=Math.min(n.lng,o.lng),o.lat=Math.min(n.lat,o.lat),a.lng=Math.max(i.lng,a.lng),a.lat=Math.max(i.lat,a.lat)):(this._sw=new aS(n.lng,n.lat),this._ne=new aS(i.lng,i.lat)),this}getCenter(){return new aS((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new aS(this.getWest(),this.getNorth())}getSouthEast(){return new aS(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(r){let{lng:n,lat:i}=aS.convert(r),o=this._sw.lng<=n&&n<=this._ne.lng;return this._sw.lng>this._ne.lng&&(o=this._sw.lng>=n&&n>=this._ne.lng),this._sw.lat<=i&&i<=this._ne.lat&&o}static convert(r){return!r||r instanceof oh?r:new oh(r)}}var op="undefined"!=typeof Float32Array?Float32Array:Array;function of(){var r=new op(9);return op!=Float32Array&&(r[1]=0,r[2]=0,r[3]=0,r[5]=0,r[6]=0,r[7]=0),r[0]=1,r[4]=1,r[8]=1,r}function om(r,n,i){var o=n[0],a=n[1],s=n[2],l=n[3],c=n[4],u=n[5],d=n[6],h=n[7],p=n[8],f=i[0],m=i[1],g=i[2],v=i[3],y=i[4],b=i[5],x=i[6],_=i[7],w=i[8];return r[0]=f*o+m*l+g*d,r[1]=f*a+m*c+g*h,r[2]=f*s+m*u+g*p,r[3]=v*o+y*l+b*d,r[4]=v*a+y*c+b*h,r[5]=v*s+y*u+b*p,r[6]=x*o+_*l+w*d,r[7]=x*a+_*c+w*h,r[8]=x*s+_*u+w*p,r}function og(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=1,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=1,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}function ov(r,n){var i=n[0],o=n[1],a=n[2],s=n[3],l=n[4],c=n[5],u=n[6],d=n[7],h=n[8],p=n[9],f=n[10],m=n[11],g=n[12],v=n[13],y=n[14],b=n[15],x=i*c-o*l,_=i*u-a*l,w=i*d-s*l,S=o*u-a*c,T=o*d-s*c,E=a*d-s*u,k=h*v-p*g,C=h*y-f*g,P=h*b-m*g,O=p*y-f*v,j=p*b-m*v,A=f*b-m*y,M=x*A-_*j+w*O+S*P-T*C+E*k;return M?(r[0]=(c*A-u*j+d*O)*(M=1/M),r[1]=(a*j-o*A-s*O)*M,r[2]=(v*E-y*T+b*S)*M,r[3]=(f*T-p*E-m*S)*M,r[4]=(u*P-l*A-d*C)*M,r[5]=(i*A-a*P+s*C)*M,r[6]=(y*w-g*E-b*_)*M,r[7]=(h*E-f*w+m*_)*M,r[8]=(l*j-c*P+d*k)*M,r[9]=(o*P-i*j-s*k)*M,r[10]=(g*T-v*w+b*x)*M,r[11]=(p*w-h*T-m*x)*M,r[12]=(c*C-l*O-u*k)*M,r[13]=(i*O-o*C+a*k)*M,r[14]=(v*_-g*S-y*x)*M,r[15]=(h*S-p*_+f*x)*M,r):null}function oy(r,n,i){var o=n[0],a=n[1],s=n[2],l=n[3],c=n[4],u=n[5],d=n[6],h=n[7],p=n[8],f=n[9],m=n[10],g=n[11],v=n[12],y=n[13],b=n[14],x=n[15],_=i[0],w=i[1],S=i[2],T=i[3];return r[0]=_*o+w*c+S*p+T*v,r[1]=_*a+w*u+S*f+T*y,r[2]=_*s+w*d+S*m+T*b,r[3]=_*l+w*h+S*g+T*x,r[4]=(_=i[4])*o+(w=i[5])*c+(S=i[6])*p+(T=i[7])*v,r[5]=_*a+w*u+S*f+T*y,r[6]=_*s+w*d+S*m+T*b,r[7]=_*l+w*h+S*g+T*x,r[8]=(_=i[8])*o+(w=i[9])*c+(S=i[10])*p+(T=i[11])*v,r[9]=_*a+w*u+S*f+T*y,r[10]=_*s+w*d+S*m+T*b,r[11]=_*l+w*h+S*g+T*x,r[12]=(_=i[12])*o+(w=i[13])*c+(S=i[14])*p+(T=i[15])*v,r[13]=_*a+w*u+S*f+T*y,r[14]=_*s+w*d+S*m+T*b,r[15]=_*l+w*h+S*g+T*x,r}function ob(r,n,i){var o,a,s,l,c,u,d,h,p,f,m,g,v=i[0],y=i[1],b=i[2];return n===r?(r[12]=n[0]*v+n[4]*y+n[8]*b+n[12],r[13]=n[1]*v+n[5]*y+n[9]*b+n[13],r[14]=n[2]*v+n[6]*y+n[10]*b+n[14],r[15]=n[3]*v+n[7]*y+n[11]*b+n[15]):(a=n[1],s=n[2],l=n[3],c=n[4],u=n[5],d=n[6],h=n[7],p=n[8],f=n[9],m=n[10],g=n[11],r[0]=o=n[0],r[1]=a,r[2]=s,r[3]=l,r[4]=c,r[5]=u,r[6]=d,r[7]=h,r[8]=p,r[9]=f,r[10]=m,r[11]=g,r[12]=o*v+c*y+p*b+n[12],r[13]=a*v+u*y+f*b+n[13],r[14]=s*v+d*y+m*b+n[14],r[15]=l*v+h*y+g*b+n[15]),r}function ox(r,n,i){var o=i[0],a=i[1],s=i[2];return r[0]=n[0]*o,r[1]=n[1]*o,r[2]=n[2]*o,r[3]=n[3]*o,r[4]=n[4]*a,r[5]=n[5]*a,r[6]=n[6]*a,r[7]=n[7]*a,r[8]=n[8]*s,r[9]=n[9]*s,r[10]=n[10]*s,r[11]=n[11]*s,r[12]=n[12],r[13]=n[13],r[14]=n[14],r[15]=n[15],r}function o_(r,n,i){var o=Math.sin(i),a=Math.cos(i),s=n[4],l=n[5],c=n[6],u=n[7],d=n[8],h=n[9],p=n[10],f=n[11];return n!==r&&(r[0]=n[0],r[1]=n[1],r[2]=n[2],r[3]=n[3],r[12]=n[12],r[13]=n[13],r[14]=n[14],r[15]=n[15]),r[4]=s*a+d*o,r[5]=l*a+h*o,r[6]=c*a+p*o,r[7]=u*a+f*o,r[8]=d*a-s*o,r[9]=h*a-l*o,r[10]=p*
170a-c*o,r[11]=f*a-u*o,r}function ow(r,n,i){var o=Math.sin(i),a=Math.cos(i),s=n[0],l=n[1],c=n[2],u=n[3],d=n[8],h=n[9],p=n[10],f=n[11];return n!==r&&(r[4]=n[4],r[5]=n[5],r[6]=n[6],r[7]=n[7],r[12]=n[12],r[13]=n[13],r[14]=n[14],r[15]=n[15]),r[0]=s*a-d*o,r[1]=l*a-h*o,r[2]=c*a-p*o,r[3]=u*a-f*o,r[8]=s*o+d*a,r[9]=l*o+h*a,r[10]=c*o+p*a,r[11]=u*o+f*a,r}function oS(r,n){return r[0]=n[0],r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=n[1],r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=n[2],r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}function oT(r,n,i){var o,a,s,l=i[0],c=i[1],u=i[2],d=Math.hypot(l,c,u);return d<1e-6?null:(l*=d=1/d,c*=d,u*=d,o=Math.sin(n),a=Math.cos(n),r[0]=l*l*(s=1-a)+a,r[1]=c*l*s+u*o,r[2]=u*l*s-c*o,r[3]=0,r[4]=l*c*s-u*o,r[5]=c*c*s+a,r[6]=u*c*s+l*o,r[7]=0,r[8]=l*u*s+c*o,r[9]=c*u*s-l*o,r[10]=u*u*s+a,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r)}function oE(){var r=new op(3);return op!=Float32Array&&(r[0]=0,r[1]=0,r[2]=0),r}function ok(r){var n=new op(3);return n[0]=r[0],n[1]=r[1],n[2]=r[2],n}function oC(r){return Math.hypot(r[0],r[1],r[2])}function oP(r,n,i){var o=new op(3);return o[0]=r,o[1]=n,o[2]=i,o}function oO(r,n,i){return r[0]=n[0]+i[0],r[1]=n[1]+i[1],r[2]=n[2]+i[2],r}function oj(r,n,i){return r[0]=n[0]-i[0],r[1]=n[1]-i[1],r[2]=n[2]-i[2],r}function oA(r,n,i){return r[0]=n[0]*i[0],r[1]=n[1]*i[1],r[2]=n[2]*i[2],r}function oM(r,n,i){return r[0]=Math.min(n[0],i[0]),r[1]=Math.min(n[1],i[1]),r[2]=Math.min(n[2],i[2]),r}function oI(r,n,i){return r[0]=Math.max(n[0],i[0]),r[1]=Math.max(n[1],i[1]),r[2]=Math.max(n[2],i[2]),r}function oZ(r,n,i){return r[0]=n[0]*i,r[1]=n[1]*i,r[2]=n[2]*i,r}function oR(r,n,i,o){return r[0]=n[0]+i[0]*o,r[1]=n[1]+i[1]*o,r[2]=n[2]+i[2]*o,r}function oD(r,n){var i=n[0],o=n[1],a=n[2],s=i*i+o*o+a*a;return s>0&&(s=1/Math.sqrt(s)),r[0]=n[0]*s,r[1]=n[1]*s,r[2]=n[2]*s,r}function oL(r,n){return r[0]*n[0]+r[1]*n[1]+r[2]*n[2]}function oz(r,n,i){var o=n[0],a=n[1],s=n[2],l=i[0],c=i[1],u=i[2];return r[0]=a*u-s*c,r[1]=s*l-o*u,r[2]=o*c-a*l,r}function oB(r,n,i){var o=n[0],a=n[1],s=n[2],l=i[3]*o+i[7]*a+i[11]*s+i[15];return r[0]=(i[0]*o+i[4]*a+i[8]*s+i[12])/(l=l||1),r[1]=(i[1]*o+i[5]*a+i[9]*s+i[13])/l,r[2]=(i[2]*o+i[6]*a+i[10]*s+i[14])/l,r}function oF(r,n,i){var o=i[0],a=i[1],s=i[2],l=n[0],c=n[1],u=n[2],d=a*u-s*c,h=s*l-o*u,p=o*c-a*l,f=a*p-s*h,m=s*d-o*p,g=o*h-a*d,v=2*i[3];return h*=v,p*=v,m*=2,g*=2,r[0]=l+(d*=v)+(f*=2),r[1]=c+h+m,r[2]=u+p+g,r}function oN(r,n,i){return r[0]=n[0]*i,r[1]=n[1]*i,r[2]=n[2]*i,r[3]=n[3]*i,r}function oU(r,n){var i=n[0],o=n[1],a=n[2],s=n[3],l=i*i+o*o+a*a+s*s;return l>0&&(l=1/Math.sqrt(l)),r[0]=i*l,r[1]=o*l,r[2]=a*l,r[3]=s*l,r}function oV(r,n,i){var o=n[0],a=n[1],s=n[2],l=n[3];return r[0]=i[0]*o+i[4]*a+i[8]*s+i[12]*l,r[1]=i[1]*o+i[5]*a+i[9]*s+i[13]*l,r[2]=i[2]*o+i[6]*a+i[10]*s+i[14]*l,r[3]=i[3]*o+i[7]*a+i[11]*s+i[15]*l,r}function oq(){var r=new op(4);return op!=Float32Array&&(r[0]=0,r[1]=0,r[2]=0),r[3]=1,r}function o$(r){return r[0]=0,r[1]=0,r[2]=0,r[3]=1,r}function oG(r,n,i){i*=.5;var o=n[0],a=n[1],s=n[2],l=n[3],c=Math.sin(i),u=Math.cos(i);return r[0]=o*u+l*c,r[1]=a*u+s*c,r[2]=s*u-a*c,r[3]=l*u-o*c,r}function oW(r,n,i){i*=.5;var o=n[0],a=n[1],s=n[2],l=n[3],c=Math.sin(i),u=Math.cos(i);return r[0]=o*u-s*c,r[1]=a*u+l*c,r[2]=s*u+o*c,r[3]=l*u-a*c,r}Math.hypot||(Math.hypot=function(){for(var r=0,n=arguments.length;n--;)r+=arguments[n]*arguments[n];return Math.sqrt(r)}),oE(),p=new op(4),op!=Float32Array&&(p[0]=0,p[1]=0,p[2]=0,p[3]=0),oE(),oP(1,0,0),oP(0,1,0),oq(),oq(),of();let oH=it([{type:"Float32",name:"a_globe_pos",components:3},{type:"Float32",name:"a_uv",components:2}]),{members:oX}=oH,oY=it([{name:"a_pos_3",components:3,type:"Int16"}]);var oK=it([{name:"a_pos",type:"Int16",components:2}]);class oJ{constructor(r,n){this.pos=r,this.dir=n}intersectsPlane(r,n,i){let o=oL(n,this.dir);if(1e-6>Math.abs(o))return!1;let a=((r[0]-this.pos[0])*n[0]+(r[1]-this.pos[1])*n[1]+(r[2]-this.pos[2])*n[2])/o;return i[0]=this.pos[0]+this.dir[0]*a,i[1]=this.pos[1]+this.dir[1]*a,i[2]=this.pos[2]+this.dir[2]*a,!0}closestPointOnSphere(r,n,i){var o,a,s,l,c,u,d;if(a=(o=this.pos)[0],s=o[1],l=o[2],c=r[0],u=r[1],d=r[2],Math.abs(a-c)<=1e-6*Math.max(1,Math.abs(a),Math.abs(c))&&Math.abs(s-u)<=1e-6*Math.max(1,Math.abs(s),Math.abs(u))&&Math.abs(l-d)<=1e-6*Math.max(1,Math.abs(l),Math.abs(d))||0===n)return i[0]=i[1]=i[2]=0,!1;let[h,p,f]=this.dir,m=this.pos[0]-r[0],g=this.pos[1]-r[1],v=this.pos[2]-r[2],y=h*h+p*p+f*f,b=2*(m*h+g*p+v*f),x=b*b-4*y*(m*m+g*g+v*v-n*n);if(x<0){let r=Math.max(-b/2,0),o=m+h*r,a=g+p*r,s=v+f*r,l=Math.hypot(o,a,s);return i[0]=o*n/l,i[1]=a*n/l,i[2]=s*n/l,!1}{let r=(-b-Math.sqrt(x))/(2*y);if(r<0){let r=Math.hypot(m,g,v);return i[0]=m*n/r,i[1]=g*n/r,i[2]=v*n/r,!1}return i[0]=m+h*r,i[1]=g+p*r,i[2]=v+f*r,!0}}}class oQ{constructor(r,n,i,o,a){this.TL=r,this.TR=n,this.BR=i,this.BL=o,this.horizon=a}static fromInvProjectionMatrix(r,n,i){let o=[-1,1,1],a=[1,1,1],s=[1,-1,1],l=[-1,-1,1],c=oB(o,o,r),u=oB(a,a,r),d=oB(s,s,r),h=oB(l,l,r);return new oQ(c,u,d,h,n/i)}}class o0{constructor(r,n){this.points=r,this.planes=n}static fromInvProjectionMatrix(r,n,i,o){let a=Math.pow(2,i),s=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(i=>{var s,l;let c=oV([],i,r),u=1/c[3]/n*a;return s=c,l=[u,u,o?1/c[3]:u,u],s[0]=c[0]*l[0],s[1]=c[1]*l[1],s[2]=c[2]*l[2],s[3]=c[3]*l[3],s}),l=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(r=>{let n=oD([],oz([],oj([],s[r[0]],s[r[1]]),oj([],s[r[2]],s[r[1]]))),i=-oL(n,s[r[1]]);return n.concat(i)});return new o0(s,l)}}class o1{static fromPoints(r){let n=[1/0,1/0,1/0],i=[-1/0,-1/0,-1/0];for(let o of r)oM(n,n,o),oI(i,i,o);return new o1(n,i)}static applyTransform(r,n){let i=r.getCorners();for(let r=0;r<i.length;++r)oB(i[r],i[r],n);return o1.fromPoints(i)}constructor(r,n){this.min=r,this.max=n,this.center=oZ([],oO([],this.min,this.max),.5)}quadrant(r){let n=[r%2==0,r<2],i=ok(this.min),o=ok(this.max);for(let r=0;r<n.length;r++)i[r]=n[r]?this.min[r]:this.center[r],o[r]=n[r]?this.center[r]:this.max[r];return o[2]=this.max[2],new o1(i,o)}distanceX(r){return Math.max(Math.min(this.max[0],r[0]),this.min[0])-r[0]}distanceY(r){return Math.max(Math.min(this.max[1],r[1]),this.min[1])-r[1]}distanceZ(r){return Math.max(Math.min(this.max[2],r[2]),this.min[2])-r[2]}getCorners(){let r=this.min,n=this.max;return[[r[0],r[1],r[2]],[n[0],r[1],r[2]],[n[0],n[1],r[2]],[r[0],n[1],r[2]],[r[0],r[1],n[2]],[n[0],r[1],n[2]],[n[0],n[1],n[2]],[r[0],n[1],n[2]]]}intersects(r){let n=this.getCorners(),i=!0;for(let o=0;o<r.planes.length;o++){let a=r.planes[o],s=0;for(let r=0;r<n.length;r++)s+=oL(a,n[r])+a[3]>=0;if(0===s)return 0;s!==n.length&&(i=!1)}if(i)return 2;for(let n=0;n<3;n++){let i=Number.MAX_VALUE,o=-Number.MAX_VALUE;for(let a=0;a<r.points.length;a++){let s=r.points[a][n]-this.min[n];i=Math.min(i,s),o=Math.max(o,s)}if(o<0||i>this.max[n]-this.min[n])return 0}return 1}}
170let o2=8192/Math.PI/2,o3=[64,32,16],o4=-o2,o5=[new o1([o4,o4,o4],[o2,o2,o2]),new o1([o4,o4,o4],[0,0,o2]),new o1([0,o4,o4],[o2,0,o2]),new o1([o4,0,o4],[0,o2,o2]),new o1([0,0,o4],[o2,o2,o2])];function o6(r){return r*o2/ax}function o8(r,n,i,o=!0){let a=oZ([],r._camera.position,r.worldSize),s=[n,i,1,1];oV(s,s,r.pixelMatrixInverse),oN(s,s,1/s[3]);let l=oD([],oj([],s,a)),c=r.globeMatrix,u=[c[12],c[13],c[14]],d=oj([],u,a),h=oC(d),p=oD([],d),f=r.worldSize/(2*Math.PI),m=oL(p,l),g=Math.asin(f/h);if(g<Math.acos(m)){if(!o)return null;let r=[],n=[];oZ(r,l,h/m),oD(n,oj(n,r,d)),oD(l,oO(l,d,oZ(l,n,Math.tan(g)*h)))}let v=[];new oJ(a,l).closestPointOnSphere(u,f,v);let y=oD([],ei(c,0)),b=oD([],ei(c,1)),x=oD([],ei(c,2)),_=oL(y,v),w=oL(b,v),S=oL(x,v),T=Math.asin(-w/f)*O,E=Math.atan2(_,S)*O;E=r.center.lng+function(r,n){let i=(n-r+180)%360-180;return i<-180?i+360:i}(r.center.lng,E);let k=aE(E),C=Z(ak(T),0,1);return new aj(k,C)}class o9{constructor(r,n,i){this.a=oj([],r,i),this.b=oj([],n,i),this.center=i;let o=oD([],this.a),a=oD([],this.b);this.angle=Math.acos(oL(o,a))}}function o7(r,n){let i;return 0===r.angle?null:(i=0===r.a[n]?1/r.angle*.5*Math.PI:1/r.angle*Math.atan(r.b[n]/r.a[n]/Math.sin(r.angle)-1/Math.tan(r.angle)))<0||i>1?null:function(r,n,i,o){let a=Math.sin(i);
170return r*(Math.sin((1-o)*i)/a)+n*(Math.sin(o*i)/a)}(r.a[n],r.b[n],r.angle,Z(i,0,1))+r.center[n]}function ae(r){if(r.z<=1)return o5[r.z+2*r.y+r.x];let n=ao(ai(r));return o1.fromPoints(n)}function at(r,n,i){return oZ(r,r,1-i),oR(r,r,n,i)}function ar(r,n){let i=af(n.zoom);if(0===i)return ae(r);let o=ai(r),a=ao(o),s=aE(o.getWest())*n.worldSize,l=aE(o.getEast())*n.worldSize,c=ak(o.getNorth())*n.worldSize,u=ak(o.getSouth())*n.worldSize,d=[s,c,0],h=[l,c,0],p=[s,u,0],f=[l,u,0],m=ov([],n.globeMatrix);return oB(d,d,m),oB(h,h,m),oB(p,p,m),oB(f,f,m),a[0]=at(a[0],p,i),a[1]=at(a[1],f,i),a[2]=at(a[2],h,i),a[3]=at(a[3],d,i),o1.fromPoints(a)}function an(r,n,i){for(let o of r)oB(o,o,n),oZ(o,o,i)}function ai({x:r,y:n,z:i}){let o=1/(1<<i),a=new aS(aC(r*o),aP((n+1)*o)),s=new aS(aC((r+1)*o),aP(n*o));return new oh(a,s)}function ao(r){let n=r.getNorth()*P,i=r.getSouth()*P,o=Math.cos(n),a=Math.cos(i),s=Math.sin(n),l=Math.sin(i),c=r.getWest(),u=r.getEast();return[aa(a,l,c),aa(a,l,u),aa(o,s,u),aa(o,s,c)]}function aa(r,n,i,o=o2){return[r*Math.sin(i*=P)*o,-n*o,r*Math.cos(i)*o]}function as(r,n,i){return aa(Math.cos(r*P),Math.sin(r*P),n,i)}function al(r,n,i,o){let a=1<<i.z,s=(r/8192+i.x)/a;return as(aP((n/8192+i.y)/a),aC(s),o)}function ac({min:r,max:n}){return 16383/Math.max(n[0]-r[0],n[1]-r[1],n[2]-r[2])}let au=new Float64Array(16);function ad(r){var n,i;let o=ac(r),a=oS(au,[o,o,o]);return ob(a,a,((n=[])[0]=-(i=r.min)[0],n[1]=-i[1],n[2]=-i[2],n))}function ah(r){var n,i;let o=(i=r.min,(n=au)[0]=1,n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[5]=1,n[6]=0,n[7]=0,n[8]=0,n[9]=0,n[10]=1,n[11]=0,n[12]=i[0],n[13]=i[1],n[14]=i[2],n[15]=1,n),a=1/ac(r);return ox(o,o,[a,a,a])}function ap(r,n,i,o,a){let s=function(r){let n=8192/(2*Math.PI);return r/(2*Math.PI)/n}(i),l=[r,n,-i/(2*Math.PI)],c=og(new Float64Array(16));return ob(c,c,l),ox(c,c,[s,s,s]),o_(c,c,-a*P),ow(c,c,-o*P),c}function af(r){return R(5,6,r)}function am(r,n){var i,o,a,s,l,c,u,d;let h=as(n.lat,n.lng),p=function(r){let n=as(r._center.lat,r._center.lng),i=oz([],oP(0,1,0),n),o=oT([],-r.angle,n);i=oB(i,i,o),oT(o,-r._pitch,i);let a=oD([],n);return oZ(a,a,o6(r.cameraToCenterDistance/r.pixelsPerMeter)),oB(a,a,o),oO([],n,a)}(r);return o=(i=oj([],p,h))[0],a=i[1],s=i[2],Math.acos(Math.min(Math.max((d=Math.sqrt(o*o+a*a+s*s)*Math.sqrt((l=h[0])*l+(c=h[1])*c+(u=h[2])*u))&&oL(i,h)/d,-1),1))}function ag(r,n){return am(r,n)>Math.PI/2*1.01}let av=85*P,ay=Math.cos(av),ab=Math.sin(av),ax=6371008.8,a_=2*Math.PI*ax;class aw{constructor(r,n){if(isNaN(r)||isNaN(n))throw Error(`Invalid LngLat object: (${r}, ${n})`);if(this.lng=+r,this.lat=+n,this.lat>90||this.lat<-90)throw Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new aw(D(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(r){let n=Math.PI/180,i=this.lat*n,o=r.lat*n,a=Math.sin(i)*Math.sin(o)+Math.cos(i)*Math.cos(o)*Math.cos((r.lng-this.lng)*n);return ax*Math.acos(Math.min(a,1))}toBounds(r=0){let n=360*r/40075017,i=n/Math.cos(Math.PI/180*this.lat);return new oh(new aw(this.lng-i,this.lat-n),new aw(this.lng+i,this.lat+n))}toEcef(r){let n=o6(r);return as(this.lat,this.lng,o2+n)}static convert(r){if(r instanceof aw)return r;if(Array.isArray(r)&&(2===r.length||3===r.length))return new aw(Number(r[0]),Number(r[1]));if(!Array.isArray(r)&&"object"==typeof r&&null!==r)return new aw(Number("lng"in r?r.lng:r.lon),Number(r.lat));throw Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, an object {lon: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]")}}var aS=aw;function aT(r){return a_*Math.cos(r*Math.PI/180)}function aE(r){return(180+r)/360}function ak(r){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+r*Math.PI/360)))/360}function aC(r){return 360*r-180}function aP(r){return 360/Math.PI*Math.atan(Math.exp((180-360*r)*Math.PI/180))-90}function aO(r){return 1/Math.cos(r*Math.PI/180)}class aj{constructor(r,n,i=0){this.x=+r,this.y=+n,this.z=+i}static fromLngLat(r,n=0){let i=aS.convert(r);return new aj(aE(i.lng),ak(i.lat),n/aT(i.lat))}toLngLat(){return new aS(aC(this.x),aP(this.y))}toAltitude(){return this.z*aT(aP(this.y))}meterInMercatorCoordinateUnits(){return 1/a_*aO(aP(this.y))}}function aA(r,n,i){let o=r[0],a=o.x,s=o.y;n(o);let l=[o];for(let c=1;c<r.length;c++){let u=r[c],{x:d,y:h}=u;n(u),function r(n,i,o,a,s,l,c,u,d){let h=(i+a)/2,p=(o+s)/2,f=new C(h,p);u(f),function(r,n,i,o,a,s){let l=i-a,c=o-s;return Math.abs((o-n)*l-(i-r)*c)/Math.hypot(l,c)}(f.x,f.y,l.x,l.y,c.x,c.y)>=d?(r(n,i,o,h,p,l,f,u,d),r(n,h,p,a,s,f,c,u,d)):n.push(c)}(l,a,s,d,h,o,u,n,i),a=d,s=h,o=u}return l}let aM=-16383-1;function aI(r,n,i){let o=r.loadGeometry(),a=r.extent,s=8192/a;if(n&&i&&i.projection.isReprojectedInTileSpace){let s=1<<n.z,{scale:l,x:c,y:u,projection:d}=i,h=r=>
170{let i=aC((n.x+r.x/a)/s),o=aP((n.y+r.y/a)/s),h=d.project(i,o);r.x=(h.x*l-c)*a,r.y=(h.y*l-u)*a};for(let n=0;n<o.length;n++)if(1!==r.type)o[n]=aA(o[n],h,1);else{let r=[];for(let i of o[n])i.x<0||i.x>=a||i.y<0||i.y>=a||(h(i),r.push(i));o[n]=r}}for(let r of o)for(let n of r)!function(r,n){let i=Math.round(r.x*n),o=Math.round(r.y*n);r.x=Z(i,aM,16383),r.y=Z(o,aM,16383),(i<r.x||i>r.x+1||o<r.y||o>r.y+1)&&K("Geometry exceeds allowed extent, reduce your vector tile buffer size")}(n,s);return o}function aZ(r,n){return{type:r.type,id:r.id,properties:r.properties,geometry:n?aI(r):[]}}function aR(r,n,i,o,a){r.emplaceBack(2*n+(o+1)/2,2*i+(a+1)/2)}function aD(r,n,i){r.emplaceBack(n.x,n.y,n.z,16384*i[0],16384*i[1],16384*i[2])}class aL{constructor(r){this.zoom=r.zoom,this.overscaling=r.overscaling,this.layers=r.layers,this.layerIds=this.layers.map(r=>r.id),this.index=r.index,this.hasPattern=!1,this.projection=r.projection,this.layoutVertexArray=new ii,this.indexArray=new i_,this.segments=new od,this.programConfigurations=new or(r.layers,r.zoom),this.stateDependentLayerIds=this.layers.filter(r=>r.isStateDependent()).map(r=>r.id)}populate(r,n,i,o){let a=this.layers[0],s=[],l=null;for(let{feature:n,id:c,index:u,sourceLayerIndex:d}of("circle"===a.type&&(l=a.layout.get("circle-sort-key")),r)){let r=this.layers[0]._featureFilter.needGeometry,a=aZ(n,r);if(!this.layers[0]._featureFilter.filter(new nH(this.zoom),a,i))continue;let h=l?l.evaluate(a,{},i):void 0,p={id:c,properties:n.properties,type:n.type,sourceLayerIndex:d,index:u,geometry:r?a.geometry:aI(n,i,o),patterns:{},sortKey:h};s.push(p)}l&&s.sort((r,n)=>r.sortKey-n.sortKey);let c=null;for(let a of("globe"===o.projection.name&&(this.globeExtVertexArray=new id,c=o.projection),s)){let{geometry:o,index:s,sourceLayerIndex:l}=a,u=r[s].feature;this.addFeature(a,o,s,n.availableImages,i,c),n.featureIndex.insert(u,o,s,l,this.index)}}update(r,n,i,o){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(r,n,this.stateDependentLayers,i,o)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(r){this.uploaded||(this.layoutVertexBuffer=r.createVertexBuffer(this.layoutVertexArray,oc.members),this.indexBuffer=r.createIndexBuffer(this.indexArray),this.globeExtVertexArray&&(this.globeExtVertexBuffer=r.createVertexBuffer(this.globeExtVertexArray,ou.members))),this.programConfigurations.upload(r),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.globeExtVertexBuffer&&this.globeExtVertexBuffer.destroy())}addFeature(r,n,i,o,a,s){for(let i of n)for(let n of i){let i=n.x,o=n.y;if(i<0||i>=8192||o<0||o>=8192)continue;if(s){let r=s.projectTilePoint(i,o,a),n=s.upVector(a,i,o),l=this.globeExtVertexArray;aD(l,r,n),aD(l,r,n),aD(l,r,n),aD(l,r,n)}let l=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,r.sortKey),c=l.vertexLength;aR(this.layoutVertexArray,i,o,-1,-1),aR(this.layoutVertexArray,i,o,1,-1),aR(this.layoutVertexArray,i,o,1,1),aR(this.layoutVertexArray,i,o,-1,1),this.indexArray.emplaceBack(c,c+1,c+2),this.indexArray.emplaceBack(c,c+2,c+3),l.vertexLength+=4,l.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,r,i,{},o,a)}}function az(r,n){for(let i=0;i<r.length;i++)if(aq(n,r[i]))return!0;for(let i=0;i<n.length;i++)if(aq(r,n[i]))return!0;return!!aF(r,n)}function aB(r,n){if(1===r.length)return aV(n,r[0]);for(let i=0;i<n.length;i++){let o=n[i];for(let n=0;n<o.length;n++)if(aq(r,o[n]))return!0}for(let i=0;i<r.length;i++)if(aV(n,r[i]))return!0;for(let i=0;i<n.length;i++)if(aF(r,n[i]))return!0;return!1}function aF(r,n){if(0===r.length||0===n.length)return!1;for(let a=0;a<r.length-1;a++){let s=r[a],l=r[a+1];for(let r=0;r<n.length-1;r++){var i,o;if(J(s,i=n[r],o=n[r+1])!==J(l,i,o)&&J(s,l,i)!==J(s,l,o))return!0}}return!1}function aN(r,n,i){let o=i*i;if(1===n.length)return r.distSqr(n[0])<o;for(let i=1;i<n.length;i++)if(aU(r,n[i-1],n[i])<o)return!0;return!1}function aU(r,n,i){let o=n.distSqr(i);if(0===o)return r.distSqr(n);let a=((r.x-n.x)*(i.x-n.x)+(r.y-n.y)*(i.y-n.y))/o;return r.distSqr(a<0?n:a>1?i:i.sub(n)._mult(a)._add(n))}function aV(r,n){let i,o,a,s=!1;for(let l=0;l<r.length;l++){i=r[l];for(let r=0,l=i.length-1;r<i.length;l=r++)o=i[r],a=i[l],o.y>n.y!=a.y>n.y&&n.x<(a.x-o.x)*(n.y-o.y)/(a.y-o.y)+o.x&&(s=!s)}return s}function aq(r,n){let i=!1;for(let o=0,a=r.length-1;o<r.length;a=o++){let s=r[o],l=r[a];s.y>n.y!=l.y>n.y&&n.x<(l.x-s.x)*(n.y-s.y)/(l.y-s.y)+s.x&&(i=!i)}return i}function a$(r,n,i,o,a){for(let s of r)if(n<=s.x&&i<=s.y&&o>=s.x&&a>=s.y)return!0;let s=[new C(n,i),new C(n,a),new C(o,a),new C(o,i)];if(r.length>2){for(let n of s)if(aq(r,n))return!0}for(let n=0;n<r.length-1;n++)if(function(r,n,i){let o=i[0],a=i[2];if(r.x<o.x&&n.x<o.x||r.x>a.x&&n.x>a.x||r.y<o.y&&n.y<o.y||r.y>a.y&&n.y>a.y)return!1;let s=J(r,n,i[0]);return s!==J(r,n,i[1])||s!==J(r,n,i[2])||s!==J(r,n,i[3])}(r[n],r[n+1],s))return!0;return!1}function aG(r,n,i){let o=n.paint.get(r).value;return"constant"===o.kind?o.value:i.programConfigurations.get(n.id).getMaxValue(r)}function aW(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function aH(r,n,i,o,a){if(!n[0]&&!n[1])return r;let s=C.convert(n)._mult(a);"viewport"===i&&s._rotate(-o);let l=[];for(let n=0;n<r.length;
170n++)l.push(r[n].sub(s));return l}function aX(r,n,i,o){let a=C.convert(r)._mult(o);return"viewport"===n&&a._rotate(-i),a}nk(aL,"CircleBucket",{omit:["layers"]});let aY=new n6({"circle-sort-key":new n4(eY.layout_circle["circle-sort-key"])});var aK={paint:new n6({"circle-radius":new n4(eY.paint_circle["circle-radius"]),"circle-color":new n4(eY.paint_circle["circle-color"]),"circle-blur":new n4(eY.paint_circle["circle-blur"]),"circle-opacity":new n4(eY.paint_circle["circle-opacity"]),"circle-translate":new n3(eY.paint_circle["circle-translate"]),"circle-translate-anchor":new n3(eY.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new n3(eY.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new n3(eY.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new n4(eY.paint_circle["circle-stroke-width"]),"circle-stroke-color":new n4(eY.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new n4(eY.paint_circle["circle-stroke-opacity"])}),layout:aY};function aJ(r,n,i,o,a,s,l,c,u){if(s&&r.queryGeometry.isAboveHorizon)return!1;s&&(u*=r.pixelToTileUnitsFactor);let d=r.tileID.canonical,h=i.projection.upVectorScale(d,i.center.lat,i.worldSize).metersToTile;for(let f of n)for(let n of f){var p;let f=n.add(c),m=a&&i.elevation?i.elevation.exaggeration()*a.getElevationAt(f.x,f.y,!0):0,g=i.projection.projectTilePoint(f.x,f.y,d);if(m>0){let r=i.projection.upVector(d,f.x,f.y);g.x+=r[0]*h*m,g.y+=r[1]*h*m,g.z+=r[2]*h*m}let v=s?f:function(r,n,i,o){let a=oV([],[r,n,i,1],o);return new C(a[0]/a[3],a[1]/a[3])}(g.x,g.y,g.z,o),y=s?r.tilespaceRays.map(r=>(function(r,n){let i=oE();return aQ[2]=n,r.intersectsPlane(aQ,a0,i),new C(i[0],i[1])})(r,m)):r.queryGeometry.screenGeometry,b=oV([],[g.x,g.y,g.z,1],o);if(!l&&s?u*=b[3]/i.cameraToCenterDistance:l&&!s&&(u*=i.cameraToCenterDistance/b[3]),s){let r=aP((n.y/8192+d.y)/(1<<d.z));u/=i.projection.pixelsPerMeter(r,1)/(1/aT(r))}if(p=u,aq(y,v)||aN(v,y,p))return!0}return!1}let aQ=oP(0,0,0),a0=oP(0,0,1);class a1 extends aL{}function a2(r,{width:n,height:i},o,a){if(a){if(a instanceof Uint8ClampedArray)a=new Uint8Array(a.buffer);else if(a.length!==n*i*o)throw RangeError("mismatched image size")}else a=new Uint8Array(n*i*o);return r.width=n,r.height=i,r.data=a,r}function a3(r,n,i){let{width:o,height:a}=n;o===r.width&&a===r.height||(a4(r,n,{x:0,y:0},{x:0,y:0},{width:Math.min(r.width,o),height:Math.min(r.height,a)},i),r.width=o,r.height=a,r.data=n.data)}function a4(r,n,i,o,a,s){if(0===a.width||0===a.height)return n;if(a.width>r.width||a.height>r.height||i.x>r.width-a.width||i.y>r.height-a.height)throw RangeError("out of range source coordinates for image copy");if(a.width>n.width||a.height>n.height||o.x>n.width-a.width||o.y>n.height-a.height)throw RangeError("out of range destination coordinates for image copy");let l=r.data,c=n.data;for(let u=0;u<a.height;u++){let d=((i.y+u)*r.width+i.x)*s,h=((o.y+u)*n.width+o.x)*s;for(let r=0;r<a.width*s;r++)c[h+r]=l[d+r]}return n}nk(a1,"HeatmapBucket",{omit:["layers"]});class a5{constructor(r,n){a2(this,r,1,n)}resize(r){a3(this,new a5(r),1)}clone(){return new a5({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(r,n,i,o,a){a4(r,n,i,o,a,1)}}class a6{constructor(r,n){a2(this,r,4,n)}resize(r){a3(this,new a6(r),4)}replace(r,n){n?this.data.set(r):this.data=r instanceof Uint8ClampedArray?new Uint8Array(r.buffer):r}clone(){return new a6({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(r,n,i,o,a){a4(r,n,i,o,a,4)}}nk(a5,"AlphaImage"),nk(a6,"RGBAImage");var a8={paint:new n6({"heatmap-radius":new n4(eY.paint_heatmap["heatmap-radius"]),"heatmap-weight":new n4(eY.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new n3(eY.paint_heatmap["heatmap-intensity"]),"heatmap-color":new n5(eY.paint_heatmap["heatmap-color"]),"heatmap-opacity":new n3(eY.paint_heatmap["heatmap-opacity"])})};function a9(r){let n={},i=r.resolution||256,o=r.clips?r.clips.length:1,a=r.image||new a6({width:i,height:o}),s=(i,o,s)=>{n[r.evaluationKey]=s;let l=r.expression.evaluate(n);a.data[i+o+0]=Math.floor(255*l.r/l.a),a.data[i+o+1]=Math.floor(255*l.g/l.a),a.data[i+o+2]=Math.floor(255*l.b/l.a),a.data[i+o+3]=Math.floor(255*l.a)};if(r.clips)for(let n=0,a=0;n<o;++n,a+=4*i)for(let o=0,l=0;o<i;o++,l+=4){let c=o/(i-1),{start:u,end:d}=r.clips[n];s(a,l,u*(1-c)+d*c)}else for(let r=0,n=0;r<i;r++,n+=4)s(0,n,r/(i-1));return a}var a7={paint:new n6({"hillshade-illumination-direction":new n3(eY.paint_hillshade["hillshade-illumination-direction"]),"hillshade-illumination-anchor":new n3(eY.paint_hillshade["hillshade-illumination-anchor"]),"hillshade-exaggeration":new n3(eY.paint_hillshade["hillshade-exaggeration"]),"hillshade-shadow-color":new n3(eY.paint_hillshade["hillshade-shadow-color"]),"hillshade-highlight-color":new n3(eY.paint_hillshade["hillshade-highlight-color"]),"hillshade-accent-color":new n3(eY.paint_hillshade["hillshade-accent-color"])})};let se=it([{name:"a_pos",components:2,type:"Int16"}],4),{members:st}=se;var sr={exports:{}};function sn(r,n,i){i=i||2;var o,a,s,l,c,u,d,h=n&&n.length,p=h?n[0]*i:r.length,f=si(r,0,p,i,!0),m=[];
170if(!f||f.next===f.prev)return m;if(h&&(f=function(r,n,i,o){var a,s,l,c=[];for(a=0,s=n.length;a<s;a++)(l=si(r,n[a]*o,a<s-1?n[a+1]*o:r.length,o,!1))===l.next&&(l.steiner=!0),c.push(function(r){var n=r,i=r;do(n.x<i.x||n.x===i.x&&n.y<i.y)&&(i=n),n=n.next;while(n!==r);return i}(l));for(c.sort(sa),a=0;a<c.length;a++)i=function(r,n){var i=function(r,n){var i,o,a,s=n,l=r.x,c=r.y,u=-1/0;do{if(c<=s.y&&c>=s.next.y&&s.next.y!==s.y){var d=s.x+(c-s.y)*(s.next.x-s.x)/(s.next.y-s.y);if(d<=l&&d>u&&(u=d,a=s.x<s.next.x?s:s.next,d===l))return a}s=s.next}while(s!==n);if(!a)return null;var h,p=a,f=a.x,m=a.y,g=1/0;s=a;do l>=s.x&&s.x>=f&&l!==s.x&&sl(c<m?l:u,c,f,m,c<m?u:l,c,s.x,s.y)&&(h=Math.abs(c-s.y)/(l-s.x),sf(s,r)&&(h<g||h===g&&(s.x>a.x||s.x===a.x&&(i=a,o=s,0>sc(i.prev,i,o.prev)&&0>sc(o.next,i,i.next))))&&(a=s,g=h)),s=s.next;while(s!==p);return a}(r,n);if(!i)return n;var o=sm(i,r);return so(o,o.next),so(i,i.next)}(c[a],i);return i}(r,n,f,i)),r.length>80*i){o=s=r[0],a=l=r[1];for(var g=i;g<p;g+=i)(c=r[g])<o&&(o=c),(u=r[g+1])<a&&(a=u),c>s&&(s=c),u>l&&(l=u);d=0!==(d=Math.max(s-o,l-a))?32767/d:0}return function r(n,i,o,a,s,l,c){if(n){!c&&l&&function(r,n,i,o){var a=r;do 0===a.z&&(a.z=ss(a.x,a.y,n,i,o)),a.prevZ=a.prev,a.nextZ=a.next,a=a.next;while(a!==r);a.prevZ.nextZ=null,a.prevZ=null,function(r){var n,i,o,a,s,l,c,u,d=1;do{for(i=r,r=null,s=null,l=0;i;){for(l++,o=i,c=0,n=0;n<d&&(c++,o=o.nextZ);n++);for(u=d;c>0||u>0&&o;)0!==c&&(0===u||!o||i.z<=o.z)?(a=i,i=i.nextZ,c--):(a=o,o=o.nextZ,u--),s?s.nextZ=a:r=a,a.prevZ=s,s=a;i=o}s.nextZ=null,d*=2}while(l>1)}(a)}(n,a,s,l);for(var u,d,h=n;n.prev!==n.next;)if(u=n.prev,d=n.next,l?function(r,n,i,o){var a=r.prev,s=r.next;if(sc(a,r,s)>=0)return!1;for(var l=a.x,c=r.x,u=s.x,d=a.y,h=r.y,p=s.y,f=l<c?l<u?l:u:c<u?c:u,m=d<h?d<p?d:p:h<
170p?h:p,g=l>c?l>u?l:u:c>u?c:u,v=d>h?d>p?d:p:h>p?h:p,y=ss(f,m,n,i,o),b=ss(g,v,n,i,o),x=r.prevZ,_=r.nextZ;x&&x.z>=y&&_&&_.z<=b;){if(x.x>=f&&x.x<=g&&x.y>=m&&x.y<=v&&x!==a&&x!==s&&sl(l,d,c,h,u,p,x.x,x.y)&&sc(x.prev,x,x.next)>=0||(x=x.prevZ,_.x>=f&&_.x<=g&&_.y>=m&&_.y<=v&&_!==a&&_!==s&&sl(l,d,c,h,u,p,_.x,_.y)&&sc(_.prev,_,_.next)>=0))return!1;_=_.nextZ}for(;x&&x.z>=y;){if(x.x>=f&&x.x<=g&&x.y>=m&&x.y<=v&&x!==a&&x!==s&&sl(l,d,c,h,u,p,x.x,x.y)&&sc(x.prev,x,x.next)>=0)return!1;x=x.prevZ}for(;_&&_.z<=b;){if(_.x>=f&&_.x<=g&&_.y>=m&&_.y<=v&&_!==a&&_!==s&&sl(l,d,c,h,u,p,_.x,_.y)&&sc(_.prev,_,_.next)>=0)return!1;_=_.nextZ}return!0}(n,a,s,l):function(r){var n=r.prev,i=r.next;if(sc(n,r,i)>=0)return!1;for(var o=n.x,a=r.x,s=i.x,l=n.y,c=r.y,u=i.y,d=o<a?o<s?o:s:a<s?a:s,h=l<c?l<u?l:u:c<u?c:u,p=o>a?o>s?o:s:a>s?a:s,f=l>c?l>u?l:u:c>u?c:u,m=i.next;m!==n;){if(m.x>=d&&m.x<=p&&m.y>=h&&m.y<=f&&sl(o,l,a,c,s,u,m.x,m.y)&&sc(m.prev,m,m.next)>=0)return!1;m=m.next}return!0}(n))i.push(u.i/o|0),i.push(n.i/o|0),i.push(d.i/o|0),sv(n),n=d.next,h=d.next;else if((n=d)===h){c?1===c?r(n=function(r,n,i){var o=r;do{var a=o.prev,s=o.next.next;!su(a,s)&&sd(a,o,o.next,s)&&sf(a,s)&&sf(s,a)&&(n.push(a.i/i|0),n.push(o.i/i|0),n.push(s.i/i|0),sv(o),sv(o.next),o=r=s),o=o.next}while(o!==r);return so(o)}(so(n),i,o),i,o,a,s,l,2):2===c&&function(n,i,o,a,s,l){var c=n;do{for(var u,d,h=c.next.next;h!==c.prev;){if(c.i!==h.i&&(u=c,d=h,u.next.i!==d.i&&u.prev.i!==d.i&&!function(r,n){var i=r;do{if(i.i!==r.i&&i.next.i!==r.i&&i.i!==n.i&&i.next.i!==n.i&&sd(i,i.next,r,n))return!0;i=i.next}while(i!==r);return!1}
170(u,d)&&(sf(u,d)&&sf(d,u)&&function(r,n){var i=r,o=!1,a=(r.x+n.x)/2,s=(r.y+n.y)/2;do i.y>s!=i.next.y>s&&i.next.y!==i.y&&a<(i.next.x-i.x)*(s-i.y)/(i.next.y-i.y)+i.x&&(o=!o),i=i.next;while(i!==r);return o}(u,d)&&(sc(u.prev,u,d.prev)||sc(u,d.prev,d))||su(u,d)&&sc(u.prev,u,u.next)>0&&sc(d.prev,d,d.next)>0))){var p=sm(c,h);return c=so(c,c.next),p=so(p,p.next),r(c,i,o,a,s,l,0),void r(p,i,o,a,s,l,0)}h=h.next}c=c.next}while(c!==n)}(n,i,o,a,s,l):r(so(n),i,o,a,s,l,1);break}}}(f,m,i,o,a,d,0),m}function si(r,n,i,o,a){var s,l;if(a===sb(r,n,i,o)>0)for(s=n;s<i;s+=o)l=sg(s,r[s],r[s+1],l);else for(s=i-o;s>=n;s-=o)l=sg(s,r[s],r[s+1],l);return l&&su(l,l.next)&&(sv(l),l=l.next),l}function so(r,n){if(!r)return r;n||(n=r);var i,o=r;do if(i=!1,o.steiner||!su(o,o.next)&&0!==sc(o.prev,o,o.next))o=o.next;else{if(sv(o),(o=n=o.prev)===o.next)break;i=!0}while(i||o!==n);return n}function sa(r,n){return r.x-n.x}function ss(r,n,i,o,a){return(r=1431655765&((r=858993459&((r=252645135&((r=16711935&((r=(r-i)*a|0)|r<<8))|r<<4))|r<<2))|r<<1))|(n=1431655765&((n=858993459&((n=252645135&((n=16711935&((n=(n-o)*a|0)|n<<8))|n<<4))|n<<2))|n<<1))<<1}function sl(r,n,i,o,a,s,l,c){return(a-l)*(n-c)>=(r-l)*(s-c)&&(r-l)*(o-c)>=(i-l)*(n-c)&&(i-l)*(s-c)>=(a-l)*(o-c)}function sc(r,n,i){return(n.y-r.y)*(i.x-n.x)-(n.x-r.x)*(i.y-n.y)}function su(r,n){return r.x===n.x&&r.y===n.y}function sd(r,n,i,o){var a=sp(sc(r,n,i)),s=sp(sc(r,n,o)),l=sp(sc(i,o,r)),c=sp(sc(i,o,n));return a!==s&&l!==c||!(0!==a||!sh(r,i,n))||!(0!==s||!sh(r,o,n))||!(0!==l||!sh(i,r,o))||!(0!==c||!sh(i,n,o))}function sh(r,n,i){return n.x<=Math.max(r.x,i.x)&&n.x>=Math.min(r.x,i.x)&&n.y<=Math.max(r.y,i.y)&&n.y>=Math.min(r.y,i.y)}function sp(r){return r>0?1:r<0?-1:0}function sf(r,n){return 0>sc(r.prev,r,r.next)?sc(r,n,r.next)>=0&&sc(r,r.prev,n)>=0:0>sc(r,n,r.prev)||0>sc(r,r.next,n)}function sm(r,n){var i=new sy(r.i,r.x,r.y),o=new sy(n.i,n.x,n.y),a=r.next,s=n.prev;return r.next=n,n.prev=r,i.next=a,a.prev=i,o.next=i,i.prev=o,s.next=o,o.prev=s,o}function sg(r,n,i,o){var a=new sy(r,n,i);return o?(a.next=o.next,a.prev=o,o.next.prev=a,o.next=a):(a.prev=a,a.next=a),a}function sv(r){r.next.prev=r.prev,r.prev.next=r.next,r.prevZ&&(r.prevZ.nextZ=r.nextZ),r.nextZ&&(r.nextZ.prevZ=r.prevZ)}function sy(r,n,i){this.i=r,this.x=n,this.y=i,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function sb(r,n,i,o){for(var a=0,s=n,l=i-o;s<i;s+=o)a+=(r[l]-r[s])*(r[s+1]+r[l+1]),l=s;return a}sr.exports=sn,sr.exports.default=sn,sn.deviation=function(r,n,i,o){var a=n&&n.length,s=Math.abs(sb(r,0,a?n[0]*i:r.length,i));if(a)for(var l=0,c=n.length;l<c;l++)s-=Math.abs(sb(r,n[l]*i,l<c-1?n[l+1]*i:r.length,i));var u=0;for(l=0;l<o.length;l+=3){var d=o[l]*i,h=o[l+1]*i,p=o[l+2]*i;u+=Math.abs((r[d]-r[p])*(r[h+1]-r[d+1])-(r[d]-r[h])*(r[p+1]-r[d+1]))}return 0===s&&0===u?0:Math.abs((u-s)/s)},sn.flatten=function(r){for(var n=r[0][0].length,i={vertices:[],holes:[],dimensions:n},o=0,a=0;a<r.length;a++){for(var s=0;s<r[a].length;s++)for(var l=0;l<n;l++)i.vertices.push(r[a][s][l]);a>0&&i.holes.push(o+=r[a-1].length)}return i};var sx=S(sr.exports);function s_(r,n,i){var o=r[n];r[n]=r[i],r[i]=o}function sw(r,n){return r<n?-1:r>n?1:0}function sS(r,n){let i,o;let a=r.length;if(a<=1)return[r];let s=[];for(let n=0;n<a;n++){let a=function(r){let n=0;for(let i,o,a=0,s=r.length,l=s-1;a<s;l=a++)i=r[a],n+=((o=r[l]).x-i.x)*(i.y+o.y);return n}(r[n]);0!==a&&(r[n].area=Math.abs(a),void 0===o&&(o=a<0),o===a<0?(i&&s.push(i),i=[r[n]]):i.push(r[n]))}if(i&&s.push(i),n>1)for(let r=0;r<s.length;r++){var l,c;s[r].length<=n||(l=s[r],c=s[r].length-1,function r(n,i,o,a,s){for(;a>o;){if(a-o>600){var l=a-o+1,c=i-o+1,u=Math.log(l),d=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*d*(l-d)/l)*(c-l/2<0?-1:1);r(n,i,Math.max(o,Math.floor(i-c*d/l+h)),Math.min(a,Math.floor(i+(l-c)*d/l+h)),s)}var p=n[i],f=o,m=a;for(s_(n,o,i),s(n[a],p)>0&&s_(n,o,a);f<m;){for(s_(n,f,m),f++,m--;0>s(n[f],p);)f++;for(;s(n[m],p)>0;)m--}0===s(n[o],p)?s_(n,o,m):s_(n,++m,a),m<=i&&(o=m+1),i<=m&&(a=m-1)}}(l,n,1,c||l.length-1,sT||sw),s[r]=s[r].slice(0,n))}return s}function sT(r,n){return n.area-r.area}function sE(r,n,i){let o=i.patternDependencies,a=!1;for(let i of n){let n=i.paint.get(`${r}-pattern`);n.isConstant()||(a=!0);let s=n.constantOr(null);
170s&&(a=!0,o[s]=!0)}return a}function sk(r,n,i,o,a){let s=a.patternDependencies;for(let l of n){let n=l.paint.get(`${r}-pattern`).value;if("constant"!==n.kind){let r=n.evaluate({zoom:o},i,{},a.availableImages);s[r=r&&r.name?r.name:r]=!0,i.patterns[l.id]=r}}return i}class sC{constructor(r){this.zoom=r.zoom,this.overscaling=r.overscaling,this.layers=r.layers,this.layerIds=this.layers.map(r=>r.id),this.index=r.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new ii,this.indexArray=new i_,this.indexArray2=new iC,this.programConfigurations=new or(r.layers,r.zoom),this.segments=new od,this.segments2=new od,this.stateDependentLayerIds=this.layers.filter(r=>r.isStateDependent()).map(r=>r.id),this.projection=r.projection}populate(r,n,i,o){this.hasPattern=sE("fill",this.layers,n);let a=this.layers[0].layout.get("fill-sort-key"),s=[];for(let{feature:l,id:c,index:u,sourceLayerIndex:d}of r){let r=this.layers[0]._featureFilter.needGeometry,h=aZ(l,r);if(!this.layers[0]._featureFilter.filter(new nH(this.zoom),h,i))continue;let p=a?a.evaluate(h,{},i,n.availableImages):void 0,f={id:c,properties:l.properties,type:l.type,sourceLayerIndex:d,index:u,geometry:r?h.geometry:aI(l,i,o),patterns:{},sortKey:p};s.push(f)}for(let o of(a&&s.sort((r,n)=>r.sortKey-n.sortKey),s)){let{geometry:a,index:s,sourceLayerIndex:l}=o;if(this.hasPattern){let r=sk("fill",this.layers,o,this.zoom,n);this.patternFeatures.push(r)}else this.addFeature(o,a,s,i,{},n.availableImages);n.featureIndex.insert(r[s].feature,a,s,l,this.index)}}update(r,n,i,o){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(r,n,this.stateDependentLayers,i,o)}addFeatures(r,n,i,o,a){for(let r of this.patternFeatures)this.addFeature(r,r.geometry,r.index,n,i,o)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(r){this.uploaded||(this.layoutVertexBuffer=r.createVertexBuffer(this.layoutVertexArray,st),this.indexBuffer=r.createIndexBuffer(this.indexArray),this.indexBuffer2=r.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(r),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(r,n,i,o,a,s=[]){for(let r of sS(n,500)){let n=0;for(let i of r)n+=i.length;let i=this.segments.prepareSegment(n,this.layoutVertexArray,this.indexArray),o=i.vertexLength,a=[],s=[];for(let n of r){if(0===n.length)continue;n!==r[0]&&s.push(a.length/2);let i=this.segments2.prepareSegment(n.length,this.layoutVertexArray,this.indexArray2),o=i.vertexLength;this.layoutVertexArray.emplaceBack(n[0].x,n[0].y),this.indexArray2.emplaceBack(o+n.length-1,o),a.push(n[0].x),a.push(n[0].y);for(let r=1;r<n.length;r++)this.layoutVertexArray.emplaceBack(n[r].x,n[r].y),this.indexArray2.emplaceBack(o+r-1,o+r),a.push(n[r].x),a.push(n[r].y);i.vertexLength+=n.length,i.primitiveLength+=n.length}let l=sx(a,s);for(let r=0;r<l.length;r+=3)this.indexArray.emplaceBack(o+l[r],o+l[r+1],o+l[r+2]);i.vertexLength+=n,i.primitiveLength+=l.length/3}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,r,i,a,s,o)}}nk(sC,"FillBucket",{omit:["layers","patternFeatures"]});let sP=new n6({"fill-sort-key":new n4(eY.layout_fill["fill-sort-key"])});var sO={paint:new n6({"fill-antialias":new n3(eY.paint_fill["fill-antialias"]),"fill-opacity":new n4(eY.paint_fill["fill-opacity"]),"fill-color":new n4(eY.paint_fill["fill-color"]),"fill-outline-color":new n4(eY.paint_fill["fill-outline-color"]),"fill-translate":new n3(eY.paint_fill["fill-translate"]),"fill-translate-anchor":new n3(eY.paint_fill["fill-translate-anchor"]),"fill-pattern":new n4(eY.paint_fill["fill-pattern"])}),layout:sP};let sj=it([{name:"a_pos_normal_ed",components:4,type:"Int16"}]),sA=it([{name:"a_centroid_pos",components:2,type:"Uint16"}]),sM=it([{name:"a_pos_3",components:3,type:"Int16"},{name:"a_pos_normal_3",components:3,type:"Int16"}]),{members:sI}=sj;var sZ={};function sR(r,n,i,o,a){this.properties={},this.extent=i,this.type=0,this._pbf=r,this._geometry=-1,this._keys=o,this._values=a,r.readFields(sD,this,n)}function sD(r,n,i){1==r?n.id=i.readVarint():2==r?function(r,n){for(var i=r.readVarint()+r.pos;r.pos<i;){var o=n._keys[r.readVarint()],a=n._values[r.readVarint()];n.properties[o]=a}}(i,n):3==r?n.type=i.readVarint():4==r&&(n._geometry=i.pos)}function sL(r,n){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=r,this._keys=[],this._values=[],this._features=[],r.readFields(sz,this,n),this.length=this._features.length}
170function sz(r,n,i){15===r?n.version=i.readVarint():1===r?n.name=i.readString():5===r?n.extent=i.readVarint():2===r?n._features.push(i.pos):3===r?n._keys.push(i.readString()):4===r&&n._values.push(function(r){for(var n=null,i=r.readVarint()+r.pos;r.pos<i;){var o=r.readVarint()>>3;n=1===o?r.readString():2===o?r.readFloat():3===o?r.readDouble():4===o?r.readVarint64():5===o?r.readVarint():6===o?r.readSVarint():7===o?r.readBoolean():null}return n}(i))}function sB(r,n,i){if(3===r){var o=new sL(i,i.readVarint()+i.pos);o.length&&(n[o.name]=o)}}sR.types=["Unknown","Point","LineString","Polygon"],sR.prototype.loadGeometry=function(){var r=this._pbf;r.pos=this._geometry;for(var n,i=r.readVarint()+r.pos,o=1,a=0,s=0,l=0,c=[];r.pos<i;){if(a<=0){var u=r.readVarint();o=7&u,a=u>>3}if(a--,1===o||2===o)s+=r.readSVarint(),l+=r.readSVarint(),1===o&&(n&&c.push(n),n=[]),n.push(new k(s,l));else{if(7!==o)throw Error("unknown command "+o);n&&n.push(n[0].clone())}}return n&&c.push(n),c},sR.prototype.bbox=function(){var r=this._pbf;r.pos=this._geometry;for(var n=r.readVarint()+r.pos,i=1,o=0,a=0,s=0,l=1/0,c=-1/0,u=1/0,d=-1/0;r.pos<n;){if(o<=0){var h=r.readVarint();i=7&h,o=h>>3}if(o--,1===i||2===i)(a+=r.readSVarint())<l&&(l=a),a>c&&(c=a),(s+=r.readSVarint())<u&&(u=s),s>d&&(d=s);else if(7!==i)throw Error("unknown command "+i)}return[l,u,c,d]},sR.prototype.toGeoJSON=function(r,n,i){var o,a,s=this.extent*Math.pow(2,i),l=this.extent*r,c=this.extent*n,u=this.loadGeometry(),d=sR.types[this.type];function h(r){for(var n=0;n<r.length;n++){var i=r[n];r[n]=[360*(i.x+l)/s-180,360/Math.PI*Math.atan(Math.exp((180-360*(i.y+c)/s)*Math.PI/180))-90]}}switch(this.type){case 1:var p=[];for(o=0;o<u.length;o++)p[o]=u[o][0];h(u=p);break;case 2:for(o=0;o<u.length;o++)h(u[o]);break;case 3:for(u=function(r){var n=r.length;if(n<=1)return[r];for(var i,o,a=[],s=0;s<n;s++){var l=function(r){for(var n,i,o=0,a=0,s=r.length,l=s-1;a<s;l=a++)o+=((i=r[l]).x-(n=r[a]).x)*(n.y+i.y);return o}(r[s]);0!==l&&(void 0===o&&(o=l<0),o===l<0?(i&&a.push(i),i=[r[s]]):i.push(r[s]))}return i&&a.push(i),a}(u),o=0;o<u.length;o++)for(a=0;a<u[o].length;a++)h(u[o][a])}1===u.length?u=u[0]:d="Multi"+d;var f={type:"Feature",geometry:{type:d,coordinates:u},properties:this.properties};return"id"in this&&(f.id=this.id),f},sL.prototype.feature=function(r){if(r<0||r>=this._features.length)throw Error("feature index out of bounds");this._pbf.pos=this._features[r];var n=this._pbf.readVarint()+this._pbf.pos;return new sR(this._pbf,n,this.extent,this._keys,this._values)};var sF=sZ.VectorTile=function(r,n){this.layers=r.readFields(sB,{},n)},sN=sZ.VectorTileFeature=sR;function sU(r,n,i,o){let a=[],s=0===o?(r,n,i,o,a,s)=>{r.push(new C(s,i+(s-n)/(o-n)*(a-i)))}:(r,n,i,o,a,s)=>{r.push(new C(n+(s-i)/(a-i)*(o-n),s))};for(let l of r){let r=[];for(let a of l){if(a.length<=2)continue;let l=[];for(let r=0;r<a.length-1;r++){let c=a[r].x,u=a[r].y,d=a[r+1].x,h=a[r+1].y,p=0===o?c:u,f=0===o?d:h;p<n?f>n&&s(l,c,u,d,h,n):p>i?f<i&&s(l,c,u,d,h,i):l.push(a[r]),f<n&&p>=n&&s(l,c,u,d,h,n),f>i&&p<=i&&s(l,c,u,d,h,i)}let c=a[a.length-1],u=0===o?c.x:c.y;u>=n&&u<=i&&l.push(c),l.length&&(c=l[l.length-1],l[0].x===c.x&&l[0].y===c.y||l.push(l[0]),r.push(l))}r.length&&a.push(r)}return a}sZ.VectorTileLayer=sL;let sV=sN.types;function sq(r,n,i,o,a,s,l,c){r.emplaceBack((n<<1)+l,(i<<1)+s,(Math.floor(8192*o)<<1)+a,Math.round(c))}function s$(r,n,i){r.emplaceBack(n.x,n.y,n.z,16384*i[0],16384*i[1],16384*i[2])}class sG{constructor(){this.acc=new C(0,0),this.polyCount=[]}startRing(r){this.currentPolyCount={edges:0,top:0},this.polyCount.push(this.currentPolyCount),this.min||(this.min=new C(r.x,r.y),this.max=new C(r.x,r.y))}append(r,n){this.currentPolyCount.edges++,this.acc._add(r);let i=this.min,o=this.max;r.x<i.x?i.x=r.x:r.x>o.x&&(o.x=r.x),r.y<i.y?i.y=r.y:r.y>o.y&&(o.y=r.y),((0===r.x||8192===r.x)&&r.x===n.x)!=((0===r.y||8192===r.y)&&r.y===n.y)&&this.processBorderOverlap(r,n),n.x<0!=r.x<0&&this.addBorderIntersection(0,t0(n.y,r.y,(0-n.x)/(r.x-n.x))),n.x>8192!=r.x>8192&&this.addBorderIntersection(1,t0(n.y,r.y,(8192-n.x)/(r.x-n.x))),n.y<0!=r.y<0&&this.addBorderIntersection(2,t0(n.x,r.x,(0-n.y)/(r.y-n.y))),n.y>8192!=r.y>8192&&this.addBorderIntersection(3,t0(n.x,r.x,(8192-n.y)/(r.y-n.y)))}addBorderIntersection(r,n){this.borders||(this.borders=[[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE]]);let i=this.borders[r];n<i[0]&&(i[0]=n),n>i[1]&&(i[1]=n)}processBorderOverlap(r,n){if(r.x===n.x){if(r.y===n.y)return;let i=0===r.x?0:1;this.addBorderIntersection(i,n.y),this.addBorderIntersection(i,r.y)}else{let i=0===r.y?2:3;this.addBorderIntersection(i,n.x),this.addBorderIntersection(i,r.x)}}centroid(){let r=this.polyCount.reduce((r,n)=>r+n.edges,0);
170return 0!==r?this.acc.div(r)._round():new C(0,0)}span(){return new C(this.max.x-this.min.x,this.max.y-this.min.y)}intersectsCount(){return this.borders.reduce((r,n)=>r+ +(n[0]!==Number.MAX_VALUE),0)}}class sW{constructor(r){this.zoom=r.zoom,this.canonical=r.canonical,this.overscaling=r.overscaling,this.layers=r.layers,this.layerIds=this.layers.map(r=>r.id),this.index=r.index,this.hasPattern=!1,this.edgeRadius=0,this.projection=r.projection,this.layoutVertexArray=new ia,this.centroidVertexArray=new iF,this.indexArray=new i_,this.programConfigurations=new or(r.layers,r.zoom),this.segments=new od,this.stateDependentLayerIds=this.layers.filter(r=>r.isStateDependent()).map(r=>r.id),this.enableTerrain=r.enableTerrain}populate(r,n,i,o){for(let{feature:a,id:s,index:l,sourceLayerIndex:c}of(this.features=[],this.hasPattern=sE("fill-extrusion",this.layers,n),this.featuresOnBorder=[],this.borders=[[],[],[],[]],this.borderDoneWithNeighborZ=[-1,-1,-1,-1],this.tileToMeter=function(r){let n=Math.exp(Math.PI*(1-r.y/(1<<r.z)*2));return 80150034*n/(n*n+1)/8192/(1<<r.z)}(i),this.edgeRadius=this.layers[0].layout.get("fill-extrusion-edge-radius")/this.tileToMeter,r)){let r=this.layers[0]._featureFilter.needGeometry,u=aZ(a,r);if(!this.layers[0]._featureFilter.filter(new nH(this.zoom),u,i))continue;let d={id:s,sourceLayerIndex:c,index:l,geometry:r?u.geometry:aI(a,i,o),properties:a.properties,type:a.type,patterns:{}},h=this.layoutVertexArray.length;this.hasPattern?this.features.push(sk("fill-extrusion",this.layers,d,this.zoom,n)):this.addFeature(d,d.geometry,l,i,{},n.availableImages,o),n.featureIndex.insert(a,d.geometry,l,c,this.index,h)}this.sortBorders()}addFeatures(r,n,i,o,a){for(let r of this.features){let{geometry:s}=r;this.addFeature(r,s,r.index,n,i,o,a)}this.sortBorders()}update(r,n,i,o){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(r,n,this.stateDependentLayers,i,o)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(r){this.uploaded||(this.layoutVertexBuffer=r.createVertexBuffer(this.layoutVertexArray,sI),this.indexBuffer=r.createIndexBuffer(this.indexArray),this.layoutVertexExtArray&&(this.layoutVertexExtBuffer=r.createVertexBuffer(this.layoutVertexExtArray,sM.members,!0))),this.programConfigurations.upload(r),this.uploaded=!0}uploadCentroid(r){0!==this.centroidVertexArray.length&&(this.centroidVertexBuffer?this.needsCentroidUpdate&&this.centroidVertexBuffer.updateData(this.centroidVertexArray):this.centroidVertexBuffer=r.createVertexBuffer(this.centroidVertexArray,sA.members,!0),this.needsCentroidUpdate=!1)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.centroidVertexBuffer&&this.centroidVertexBuffer.destroy(),this.layoutVertexExtBuffer&&this.layoutVertexExtBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(r,n,i,o,a,s,l){var c;let u;let d=[new C(0,0),new C(8192,8192)],h=l.projection,p="globe"===h.name,f=this.enableTerrain&&!p?new sG:null,m="Polygon"===sV[r.type];p&&!this.layoutVertexExtArray&&(this.layoutVertexExtArray=new id);let g=sS(n,500);for(let r=g.length-1;r>=0;r--){let n=g[r];(0===n.length||(c=n[0]).every(r=>r.x<=0)||c.every(r=>r.x>=8192)||c.every(r=>r.y<=0)||c.every(r=>r.y>=8192))&&g.splice(r,1)}if(p)u=s0(g,d,o);else for(let r of(u=[],g))u.push({polygon:r,bounds:d});let v=m?this.edgeRadius:0;for(let{polygon:r,bounds:n}of u){let i=0,a=0;for(let n of r)m&&!n[0].equals(n[n.length-1])&&n.push(n[0]),a+=m?n.length-1:n.length;let s=this.segments.prepareSegment((m?5:4)*a,this.layoutVertexArray,this.indexArray);if(m){let n=[],a=[];for(let l of(i=s.vertexLength,r)){let i,c;l.length&&l!==r[0]&&a.push(n.length/2),i=l[1].sub(l[0])._perp()._unit();for(let r=1;r<l.length;r++){let a=l[r],u=l[r===l.length-1?1:r+1],{x:d,y:f}=a;if(v){c=u.sub(a)._perp()._unit();let r=i.add(c)._unit(),n=v*Math.min(4,1/(i.x*r.x+i.y*r.y));d+=n*r.x,f+=n*r.y,i=c}sq(this.layoutVertexArray,d,f,0,0,1,1,0),s.vertexLength++,n.push(a.x,a.y),p&&s$(this.layoutVertexExtArray,h.projectTilePoint(d,f,o),h.upVector(o,d,f))}}let l=sx(n,a);for(let r=0;r<l.length;r+=3)this.indexArray.emplaceBack(i+l[r],i+l[r+2],i+l[r+1]),s.primitiveLength++}for(let a of r){f&&a.length&&f.startRing(a[0]);let r,l,c,u=a.length>4&&sK(a[a.length-2],a[0],a[1]),d=v?function(r,n,i,o){let a=n.sub(r)._perp()._unit(),s=i.sub(n)._perp()._unit();return sX(r,n,i,sH(a,s),o)}(a[a.length-2],a[0],a[1],v):0;l=a[1].sub(a[0])._perp()._unit();let g=!0;for(let y=1,b=0;y<a.length;y++){let x=a[y-1],_=a[y],w=a[y===a.length-1?1:y+1];if(f&&m&&f.currentPolyCount.top++,sY(_,x,n)){v&&(l=w.sub(_)._perp()._unit(),g=!g);continue}f&&f.append(_,x);let S=_.sub(x)._perp(),T=S.x/(Math.abs(S.x)+Math.abs(S.y)),E=S.y>0?1:0,k=x.dist(_);if(b+k>32768&&(b=0),v){c=w.sub(_)._perp()._unit();let r=sX(x,_,w,sH(l,c),v);isNaN(r)&&(r=0);let n=_.sub(x)._unit();x=x.add(n.mult(d))._round(),_=_.add(n.mult(-r))._round(),d=r,l=c}let C=s.vertexLength,P=a.length>4&&sK(x,_,w),O=sJ(b,u,g);if(sq(this.layoutVertexArray,x.x,x.y,T,E,0,0,O),sq(this.layoutVertexArray,x.x,x.y,T,E,0,1,O),b+=k,O=sJ(b,P,!g),u=P,sq(this.layoutVertexArray,_.x,_.y,T,E,0,0,O),sq(this.layoutVertexArray,_.x,_.y,T,E,0,1,O),s.vertexLength+=4,this.indexArray.emplaceBack(C+0,C+1,C+2),this.indexArray.emplaceBack(C+1,C+3,C+2),s.primitiveLength+=2,v){let o=i+(1===y?a.length-2:y-2),l=1===y?i:o+1;
170if(this.indexArray.emplaceBack(C+1,o,C+3),this.indexArray.emplaceBack(o,l,C+3),s.primitiveLength+=2,void 0===r&&(r=C),!sY(w,a[y],n)){let n=y===a.length-1?r:s.vertexLength;this.indexArray.emplaceBack(C+2,C+3,n),this.indexArray.emplaceBack(C+3,n+1,n),this.indexArray.emplaceBack(C+3,l,n+1),s.primitiveLength+=3}g=!g}if(p){let r=this.layoutVertexExtArray,n=h.projectTilePoint(x.x,x.y,o),i=h.projectTilePoint(_.x,_.y,o),a=h.upVector(o,x.x,x.y),s=h.upVector(o,_.x,_.y);s$(r,n,a),s$(r,n,a),s$(r,i,s),s$(r,i,s)}}m&&(i+=a.length-1)}}if(f&&f.polyCount.length>0){if(f.borders){f.vertexArrayOffset=this.centroidVertexArray.length;let r=f.borders,n=this.featuresOnBorder.push(f)-1;for(let i=0;i<4;i++)r[i][0]!==Number.MAX_VALUE&&this.borders[i].push(n)}this.encodeCentroid(f.borders?void 0:f.centroid(),f)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,r,i,a,s,o)}sortBorders(){for(let r=0;r<4;r++)this.borders[r].sort((n,i)=>this.featuresOnBorder[n].borders[r][0]-this.featuresOnBorder[i].borders[r][0])}encodeCentroid(r,n,i=!0){let o,a;if(r){if(0!==r.y){let i=n.span()._mult(this.tileToMeter);o=(Math.max(r.x,1)<<3)+Math.min(7,Math.round(i.x/10)),a=(Math.max(r.y,1)<<3)+Math.min(7,Math.round(i.y/10))}else o=Math.ceil(7*(r.x+450)),a=0}else o=0,a=+i;let s=i?this.centroidVertexArray.length:n.vertexArrayOffset;for(let r of n.polyCount){i&&this.centroidVertexArray.resize(this.centroidVertexArray.length+4*r.edges+r.top);for(let n=0;n<r.top;n++)this.centroidVertexArray.emplace(s++,o,a);for(let n=0;n<2*r.edges;n++)this.centroidVertexArray.emplace(s++,0,a),this.centroidVertexArray.emplace(s++,o,a)}}}function sH(r,n){let i=r.add(n)._unit();return r.x*i.x+r.y*i.y}function sX(r,n,i,o,a){let s=Math.sqrt(1-o*o);return Math.min(r.dist(n)/3,n.dist(i)/3,a*s/o)}function sY(r,n,i){return r.x<i[0].x&&n.x<i[0].x||r.x>i[1].x&&n.x>i[1].x||r.y<i[0].y&&n.y<i[0].y||r.y>i[1].y&&n.y>i[1].y}function sK(r,n,i){if(r.x<0||r.x>=8192||n.x<0||n.x>=8192||i.x<0||i.x>=8192)return!1;let o=i.sub(n),a=o.perp(),s=r.sub(n);return(o.x*s.x+o.y*s.y)/Math.sqrt((o.x*o.x+o.y*o.y)*(s.x*s.x+s.y*s.y))>-.866&&a.x*s.x+a.y*s.y<0}function sJ(r,n,i){let o=n?2|r:-3&r;return i?1|o:-2&o}function sQ(){let r=Math.PI/32,n=Math.tan(r);return ax*Math.sqrt(1+2*n*n)-ax}function s0(r,n,i){let o=1<<i.z,a=aC(i.x/o),s=aC((i.x+1)/o),l=aP(i.y/o),c=aP((i.y+1)/o);return function(r,n,i,o,a=0,s){let l=[];if(!r.length||!i||!o)return l;let c=(r,n)=>{for(let i of r)l.push({polygon:i,bounds:n})},u=Math.ceil(Math.log2(i)),d=Math.ceil(Math.log2(o)),h=u-d,p=[];for(let r=0;r<Math.abs(h);r++)p.push(h>0?0:1);for(let r=0;r<Math.min(u,d);r++)p.push(0),p.push(1);let f=r;if(f=sU(f,n[0].y-a,n[1].y+a,1),!(f=sU(f,n[0].x-a,n[1].x+a,0)).length)return l;let m=[];for(p.length?m.push({polygons:f,bounds:n,depth:0}):c(f,n);m.length;){let r=m.pop(),n=r.depth,i=p[n],o=r.bounds[0],l=r.bounds[1],u=0===i?o.x:o.y,d=0===i?l.x:l.y,h=s?s(i,u,d):.5*(u+d),f=sU(r.polygons,u-a,h+a,i),g=sU(r.polygons,h-a,d+a,i);if(f.length){let r=[o,new C(0===i?h:l.x,1===i?h:l.y)];p.length>n+1?m.push({polygons:f,bounds:r,depth:n+1}):c(f,r)}if(g.length){let r=[new C(0===i?h:o.x,1===i?h:o.y),l];p.length>n+1?m.push({polygons:g,bounds:r,depth:n+1}):c(g,r)}}return l}(r,n,Math.ceil((s-a)/11.25),Math.ceil((l-c)/11.25),1,(r,n,a)=>{if(0===r)return .5*(n+a);{let r=aP((i.y+n/8192)/o);return(ak(.5*(aP((i.y+a/8192)/o)+r))*o-i.y)*8192}})}nk(sW,"FillExtrusionBucket",{omit:["layers","features"]}),nk(sG,"PartMetadata");let s1=new n6({"fill-extrusion-edge-radius":new n3(eY["layout_fill-extrusion"]["fill-extrusion-edge-radius"])});var s2={paint:new n6({"fill-extrusion-opacity":new n3(eY["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new n4(eY["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new n3(eY["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new n3(eY["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new n4(eY["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new n4(eY["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new n4(eY["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new n3(eY["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"]),"fill-extrusion-ambient-occlusion-intensity":new n3(eY["paint_fill-extrusion"]["fill-extrusion-ambient-occlusion-intensity"]),"fill-extrusion-ambient-occlusion-radius":new n3(eY["paint_fill-extrusion"]["fill-extrusion-ambient-occlusion-radius"]),"fill-extrusion-rounded-roof":new n3(eY["paint_fill-extrusion"]["fill-extrusion-rounded-roof"])}),layout:s1};function s3(r,n,i){var o=2*Math.PI*6378137/256/Math.pow(2,i);return[r*o-2*Math.PI*6378137/2,n*o-2*Math.PI*6378137/2]}class s4{constructor(r,n,i){this.z=r,this.x=n,this.y=i,this.key=s8(0,r,r,n,i)}equals(r){return this.z===r.z&&this.x===r.x&&this.y===r.y}url(r,n){var i,o,a,s,l;let c=(i=this.x,o=this.y,s=s3(256*i,256*(o=Math.pow(2,a=this.z)-o-1),a),l=s3(256*(i+1),256*(o+1),a),s[0]+","+s[1]+","+l[0]+","+l[1]),u=function(r,n,i){let o,a="";for(let s=r;s>0;s--)a+=(n&(o=1<<s-1)?1:0)+(i&o?2:0);return a}(this.z,this.x,this.y);return r[(this.x+this.y)%r.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace(/{z}/g,String(this.z)).replace(/{x}/g,String(this.x)).replace(/{y}/g,String("tms"===n?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",u).replace("{bbox-epsg-3857}",c)}toString(){return`${this.z}/${this.x}/${this.y}`}}class s5{constructor(r,n){this.wrap=r,this.canonical=n,this.key=s8(r,n.z,n.z,n.x,n.y)}}class s6{constructor(r,n,i,o,a){this.overscaledZ=r,this.wrap=n,this.canonical=new s4(i,+
170o,+a),this.key=0===n&&r===i?this.canonical.key:s8(n,r,i,o,a)}equals(r){return this.overscaledZ===r.overscaledZ&&this.wrap===r.wrap&&this.canonical.equals(r.canonical)}scaledTo(r){let n=this.canonical.z-r;return r>this.canonical.z?new s6(r,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new s6(r,this.wrap,r,this.canonical.x>>n,this.canonical.y>>n)}calculateScaledKey(r,n=!0){if(this.overscaledZ===r&&n)return this.key;if(r>this.canonical.z)return s8(this.wrap*+n,r,this.canonical.z,this.canonical.x,this.canonical.y);{let i=this.canonical.z-r;return s8(this.wrap*+n,r,r,this.canonical.x>>i,this.canonical.y>>i)}}isChildOf(r){if(r.wrap!==this.wrap)return!1;let n=this.canonical.z-r.canonical.z;return 0===r.overscaledZ||r.overscaledZ<this.overscaledZ&&r.canonical.x===this.canonical.x>>n&&r.canonical.y===this.canonical.y>>n}children(r){if(this.overscaledZ>=r)return[new s6(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];let n=this.canonical.z+1,i=2*this.canonical.x,o=2*this.canonical.y;return[new s6(n,this.wrap,n,i,o),new s6(n,this.wrap,n,i+1,o),new s6(n,this.wrap,n,i,o+1),new s6(n,this.wrap,n,i+1,o+1)]}isLessThan(r){return this.wrap<r.wrap||!(this.wrap>r.wrap)&&(this.overscaledZ<r.overscaledZ||!(this.overscaledZ>r.overscaledZ)&&(this.canonical.x<r.canonical.x||!(this.canonical.x>r.canonical.x)&&this.canonical.y<r.canonical.y))}wrapped(){return new s6(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)}unwrapTo(r){return new s6(this.overscaledZ,r,this.canonical.z,this.canonical.x,this.canonical.y)}overscaleFactor(){return Math.pow(2,this.overscaledZ-this.canonical.z)}toUnwrapped(){return new s5(this.wrap,this.canonical)}toString(){return`${this.overscaledZ}/${this.canonical.x}/${this.canonical.y}`}}function s8(r,n,i,o,a){let s=1<<Math.min(i,22),l=s*(a%s)+o%s;return r&&i<22&&(l+=s*s*((r<0?-2*r-1:2*r)%(1<<2*(22-i)))),16*(32*l+i)+(n-i)}nk(s4,"CanonicalTileID"),nk(s6,"OverscaledTileID",{omit:["projMatrix"]});class s9 extends C{constructor(r,n,i){super(r,n),this.z=i}}function s7(r,n){return r.x*n.x+r.y*n.y}function le(r,n){if(1===r.length){let i,o=0,a=n[o++];for(;!i||a.equals(i);)if(!(i=n[o++]))return 1/0;for(;o<n.length;o++){let s=n[o],l=r[0],c=i.sub(a),u=s.sub(a),d=l.sub(a),h=s7(c,c),p=s7(c,u),f=s7(u,u),m=s7(d,c),g=s7(d,u),v=h*f-p*p,y=(f*m-p*g)/v,b=(h*g-p*m)/v,x=a.z*(1-y-b)+i.z*y+s.z*b;if(isFinite(x))return x}return 1/0}{let r=1/0;for(let i of n)r=Math.min(r,i.z);return r}}function lt(r,n,i,o,a,s,l,c){let u=l*a.getElevationAt(r,n,!0,!0),d=0!==s[0],h=d?0===s[1]?l*(s[0]/7-450):l*function(r,n,i){var o,a;let s=Math.floor(n[0]/8),l=Math.floor(n[1]/8),c=10*(n[0]-8*s),u=10*(n[1]-8*l),d=r.getElevationAt(s,l,!0,!0),h=r.getMeterToDEM(i),p=Math.floor(.5*(c*h-1)),f=Math.floor(.5*(u*h-1)),m=r.tileCoordToPixel(s,l),g=2*p+1,v=2*f+1,y=(o=m.x-p,a=m.y-f,[r.getElevationAtPixel(o,a,!0),r.getElevationAtPixel(o+v,a,!0),r.getElevationAtPixel(o,a+v,!0),r.getElevationAtPixel(o+g,a+v,!0)]),b=Math.abs(y[0]-y[1]),x=Math.abs(y[2]-y[3]),_=Math.abs(y[0]-y[2])+Math.abs(y[1]-y[3]),w=Math.min(.25,.5*h*(b+x)/g),S=Math.min(.25,.5*h*_/v);return d+Math.max(w*c,S*u)}(a,s,c):u;return{base:u+(0===i)?-1:i,top:d?Math.max(h+o,u+i+2):u+o}}let lr=it([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"},{name:"a_linesofar",components:1,type:"Float32"}],4),{members:ln}=lr,li=it([{name:"a_packed",components:4,type:"Float32"}]),{members:lo}=li,la=sN.types,ls=Math.cos(Math.PI/180*37.5);class ll{constructor(r){this.zoom=r.zoom,this.overscaling=r.overscaling,this.layers=r.layers,this.layerIds=this.layers.map(r=>r.id),this.index=r.index,this.projection=r.projection,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach(r=>{this.gradients[r.id]={}}),this.layoutVertexArray=new is,this.layoutVertexArray2=new il,this.indexArray=new i_,this.programConfigurations=new or(r.layers,r.zoom),this.segments=new od,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(r=>r.isStateDependent()).map(r=>r.id)}populate(r,n,i,o){this.hasPattern=sE("line",this.layers,n);let a=this.layers[0].layout.get("line-sort-key"),s=[];for(let{feature:n,id:l,index:c,sourceLayerIndex:u}of r){let r=this.layers[0]._featureFilter.needGeometry,d=aZ(n,r);if(!this.layers[0]._featureFilter.filter(new nH(this.zoom),d,i))continue;let h=a?a.evaluate(d,{},i):void 0,p={id:l,properties:n.properties,type:n.type,sourceLayerIndex:u,index:c,geometry:r?d.geometry:aI(n,i,o),patterns:{},sortKey:h};s.push(p)}a&&s.sort((r,n)=>r.sortKey-n.sortKey);let{lineAtlas:l,featureIndex:c}=n,u=this.addConstantDashes(l);for(let o of s){let{geometry:a,index:s,sourceLayerIndex:d}=o;if(u&&this.addFeatureDashes(o,l),this.hasPattern){let r=sk("line",this.layers,o,this.zoom,n);this.patternFeatures.push(r)}else this.addFeature(o,a,s,i,l.positions,n.availableImages);c.insert(r[s].feature,a,s,d,this.index)}}addConstantDashes(r){let n=!1;for(let i of this.layers){let o=i.paint.get("line-dasharray").value,a=i.layout.get("line-cap").value;if("constant"!==o.kind||"constant"!==a.kind)n=!0;else{let n=a.value,i=o.value;if(!i)continue;r.addDash(i,n)}}return n}addFeatureDashes(r,n){let i=this.zoom;for(let o of this.layers){let a,s;let l=o.paint.get("line-dasharray").value,c=o.layout.get("line-cap").value;if("constant"!==l.kind||"constant"!==c.kind){if("constant"===l.kind){if(!(a=l.value))continue}else a=l.evaluate({zoom:i},r);s="constant"===c.kind?c.value:c.evaluate({zoom:i},r),n.addDash(a,s),r.patterns[o.id]=n.getKey(a,s)}}}update(r,n,i,o){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(r,n,this.stateDependentLayers,i,o)}
170addFeatures(r,n,i,o,a){for(let r of this.patternFeatures)this.addFeature(r,r.geometry,r.index,n,i,o)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(r){this.uploaded||(0!==this.layoutVertexArray2.length&&(this.layoutVertexBuffer2=r.createVertexBuffer(this.layoutVertexArray2,lo)),this.layoutVertexBuffer=r.createVertexBuffer(this.layoutVertexArray,ln),this.indexBuffer=r.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(r),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(r){if(r.properties&&r.properties.hasOwnProperty("mapbox_clip_start")&&r.properties.hasOwnProperty("mapbox_clip_end"))return{start:+r.properties.mapbox_clip_start,end:+r.properties.mapbox_clip_end}}addFeature(r,n,i,o,a,s){let l=this.layers[0].layout,c=l.get("line-join").evaluate(r,{}),u=l.get("line-cap").evaluate(r,{}),d=l.get("line-miter-limit"),h=l.get("line-round-limit");for(let i of(this.lineClips=this.lineFeatureClips(r),n))this.addLine(i,r,c,u,d,h);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,r,i,a,s,o)}addLine(r,n,i,o,a,s){let l,c,u,d,h;if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineSoFar=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let n=0;n<r.length-1;n++)this.totalDistance+=r[n].dist(r[n+1]);this.updateScaledDistance(),this.maxLineLength=Math.max(this.maxLineLength,this.totalDistance)}let p="Polygon"===la[n.type],f=r.length;for(;f>=2&&r[f-1].equals(r[f-2]);)f--;let m=0;for(;m<f-1&&r[m].equals(r[m+1]);)m++;if(f<(p?3:2))return;"bevel"===i&&(a=1.05);let g=this.overscaling<=16?122880/(512*this.overscaling):0,v=this.segments.prepareSegment(10*f,this.layoutVertexArray,this.indexArray);this.e1=this.e2=-1,p&&(l=r[f-2],h=r[m].sub(l)._unit()._perp());for(let n=m;n<f;n++){if((u=n===f-1?p?r[m+1]:void 0:r[n+1])&&r[n].equals(u))continue;h&&(d=h),l&&(c=l),l=r[n],h=u?u.sub(l)._unit()._perp():d;let y=(d=d||h).add(h);0===y.x&&0===y.y||y._unit();let b=d.x*h.x+d.y*h.y,x=y.x*h.x+y.y*h.y,_=0!==x?1/x:1/0,w=2*Math.sqrt(2-2*x),S=x<ls&&c&&u,T=d.x*h.y-d.y*h.x>0;if(S&&n>m){let r=l.dist(c);if(r>2*g){let n=l.sub(l.sub(c)._mult(g/r)._round());this.updateDistance(c,n),this.addCurrentVertex(n,d,0,0,v),c=n}}let E=c&&u,k=E?i:p?"butt":o;if(E&&"round"===k&&(_<s?k="miter":_<=2&&(k="fakeround")),"miter"===k&&_>a&&(k="bevel"),"bevel"===k&&(_>2&&(k="flipbevel"),_<a&&(k="miter")),c&&this.updateDistance(c,l),"miter"===k)y._mult(_),this.addCurrentVertex(l,y,0,0,v);else if("flipbevel"===k){if(_>100)y=h.mult(-1);else{let r=_*d.add(h).mag()/d.sub(h).mag();y._perp()._mult(r*(T?-1:1))}this.addCurrentVertex(l,y,0,0,v),this.addCurrentVertex(l,y.mult(-1),0,0,v)}else if("bevel"===k||"fakeround"===k){let r=-Math.sqrt(_*_-1),n=T?r:0,i=T?0:r;if(c&&this.addCurrentVertex(l,d,n,i,v),"fakeround"===k){let r=Math.round(180*w/Math.PI/20);for(let n=1;n<r;n++){let i=n/r;if(.5!==i){let r=i-.5;i+=i*r*(i-1)*((1.0904+b*(b*(3.55645-1.43519*b)-3.2452))*r*r+(.848013+b*(.215638*b-1.06021)))}let o=h.sub(d)._mult(i)._add(d)._unit()._mult(T?-1:1);this.addHalfVertex(l,o.x,o.y,!1,T,0,v)}}u&&this.addCurrentVertex(l,h,-n,-i,v)}else if("butt"===k)this.addCurrentVertex(l,y,0,0,v);else if("square"===k){let r=c?1:-1;c||this.addCurrentVertex(l,y,r,r,v),this.addCurrentVertex(l,y,0,0,v),c&&this.addCurrentVertex(l,y,r,r,v)}else"round"===k&&(c&&(this.addCurrentVertex(l,d,0,0,v),this.addCurrentVertex(l,d,1,1,v,!0)),u&&(this.addCurrentVertex(l,h,-1,-1,v,!0),this.addCurrentVertex(l,h,0,0,v)));if(S&&n<f-1){let r=l.dist(u);if(r>2*g){let n=l.add(u.sub(l)._mult(g/r)._round());this.updateDistance(l,n),this.addCurrentVertex(n,h,0,0,v),l=n}}}}addCurrentVertex(r,n,i,o,a,s=!1){let l=n.y*o-n.x,c=-n.y-n.x*o;this.addHalfVertex(r,n.x+n.y*i,n.y-n.x*i,s,!1,i,a),this.addHalfVertex(r,l,c,s,!0,-o,a)}addHalfVertex({x:r,y:n},i,o,a,s,l,c){this.layoutVertexArray.emplaceBack((r<<1)+(a?1:0),(n<<1)+(s?1:0),Math.round(63*i)+128,Math.round(63*o)+128,1+(0===l?0:l<0?-1:1),0,this.lineS
170oFar),this.lineClips&&this.layoutVertexArray2.emplaceBack(this.scaledDistance,this.lineClipsArray.length,this.lineClips.start,this.lineClips.end);let u=c.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,u),c.primitiveLength++),s?this.e2=u:this.e1=u}updateScaledDistance(){if(this.lineClips){let r=this.totalDistance/(this.lineClips.end-this.lineClips.start);this.scaledDistance=this.distance/this.totalDistance,this.lineSoFar=r*this.lineClips.start+this.distance}else this.lineSoFar=this.distance}updateDistance(r,n){this.distance+=r.dist(n),this.updateScaledDistance()}}nk(ll,"LineBucket",{omit:["layers","patternFeatures"]});let lc=new n6({"line-cap":new n4(eY.layout_line["line-cap"]),"line-join":new n4(eY.layout_line["line-join"]),"line-miter-limit":new n3(eY.layout_line["line-miter-limit"]),"line-round-limit":new n3(eY.layout_line["line-round-limit"]),"line-sort-key":new n4(eY.layout_line["line-sort-key"])});var lu={paint:new n6({"line-opacity":new n4(eY.paint_line["line-opacity"]),"line-color":new n4(eY.paint_line["line-color"]),"line-translate":new n3(eY.paint_line["line-translate"]),"line-translate-anchor":new n3(eY.paint_line["line-translate-anchor"]),"line-width":new n4(eY.paint_line["line-width"]),"line-gap-width":new n4(eY.paint_line["line-gap-width"]),"line-offset":new n4(eY.paint_line["line-offset"]),"line-blur":new n4(eY.paint_line["line-blur"]),"line-dasharray":new n4(eY.paint_line["line-dasharray"]),"line-pattern":new n4(eY.paint_line["line-pattern"]),"line-gradient":new n5(eY.paint_line["line-gradient"]),"line-trim-offset":new n3(eY.paint_line["line-trim-offset"])}),layout:lc};let ld=new class extends n4{possiblyEvaluate(r,n){return n=new nH(Math.floor(n.zoom),{now:n.now,fadeDuration:n.fadeDuration,transition:n.transition}),super.possiblyEvaluate(r,n)}evaluate(r,n,i,o){return n=B({},n,{zoom:Math.floor(n.zoom)}),super.evaluate(r,n,i,o)}}(lu.paint.properties["line-width"].specification);ld.useIntegerZoom=!0;let lh=it([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_tex_size",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),lp=it([{name:"a_globe_anchor",components:3,type:"Int16"},{name:"a_globe_normal",components:3,type:"Float32"}],4),lf=it([{name:"a_projected_pos",components:4,type:"Float32"}],4);it([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);let lm=it([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}]),lg=it([{name:"a_size_scale",components:1,type:"Float32"},{name:"a_padding",components:2,type:"Float32"}]);it([{type:"Int16",name:"projectedAnchorX"},{type:"Int16",name:"projectedAnchorY"},{type:"Int16",name:"projectedAnchorZ"},{type:"Int16",name:"tileAnchorX"},{type:"Int16",name:"tileAnchorY"},{type:"Float32",name:"x1"},{type:"Float32",name:"y1"},{type:"Float32",name:"x2"},{type:"Float32",name:"y2"},{type:"Int16",name:"padding"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);let lv=it([{name:"a_pos",components:3,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),ly=it([{name:"a_pos_2f",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function lb(r,n){let{expression:i}=n;if("constant"===i.kind)return{kind:"constant",layoutSize:i.evaluate(new nH(r+1))};if("source"===i.kind)return{kind:"source"};{let{zoomStops:n,interpolationType:o}=i,a=0;for(;a<n.length&&n[a]<=r;)a++;let s=a=Math.max(0,a-1);for(;s<n.length&&n[s]<r+1;)s++;s=Math.min(n.length-1,s);let l=n[a],c=n[s];return"composite"===i.kind?{kind:"composite",minZoom:l,maxZoom:c,interpolationType:o}:{kind:"camera",minZoom:l,maxZoom:c,minSize:i.evaluate(new nH(l)),maxSize:i.evaluate(new nH(c)),interpolationType:o}}}function lx(r,{uSize:n,uSizeT:i},{lowerSize:o,upperSize:a}){return"source"===r.kind?o/128:"composite"===r.kind?t0(o/128,a/128,i):n}function l_(r,n){let i=0,o=0;if("constant"===r.kind)o=r.layoutSize;else if("source"!==r.kind){let{interpolationType:a,minZoom:s,maxZoom:l}=r,c=a?Z(rs.interpolationFactor(a,n,s,l),0,1):0;"camera"===r.kind?o=t0(r.minSize,r.maxSize,c):i=c}return{uSizeT:i,uSize:o}}it([{name:"triangle",components:3,type:"Uint16"}]),it([{type:"Int16",name:"projectedAnchorX"},{type:"Int16",name:"projectedAnchorY"},{type:"Int16",name:"projectedAnchorZ"},{type:"Float32",name:"tileAnchorX"},{type:"Float32",name:"tileAnchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"},{type:"Uint8",name:"flipState"}]),it([{type:"Int16",name:"projectedAnchorX"},{type:"Int16",name:"projectedAnchorY"},{type:"Int16",name:"projectedAnchorZ"},{type:"Float32",name:"tileAnchorX"},{type:"Float32",name:"tileAnchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),it([{type:"Float32",name:"offsetX"}]),it([{type:"Int16",name:"x"},{type:"Int16",name:"y"}]);var lw=Object.freeze({__proto__:null,SIZE_PACK_FACTOR:128,evaluateSizeForFeature:lx,evaluateSizeForZoom:l_,getSizeData:lb});let lS={"!":"ï¸","#":"ï¼",$:"ï¼","%":"ï¼
","&":"ï¼","(":"︵",")":"︶","*":"ï¼","+":"ï¼",",":"ï¸","-":"︲",".":"ã»","/":"ï¼",":":"ï¸",";":"ï¸","<":"︿","=":"ï¼",">":"ï¹","?":"ï¸","@":"ï¼ ","[":"ï¹","\\":"ï¼¼","]":"ï¹","^":"ï¼¾",_:"︳","`":"ï½","{":"︷","|":"â","}":"︸","~":"ï½","\xa2":"ï¿ ","\xa3":"ï¿¡","\xa5":"ï¿¥","\xa6":"¦","\xac":"ï¿¢","\xaf":"ï¿£","â":"︲","â":"︱","â":"ï¹","â":"ï¹","â":"ï¹","â":"ï¹","â¦":"ï¸","â§":"ã»","â©":"₩","ã":"ï¸","ã":"ï¸","ã":"︿","ã":"ï¹","ã":"︽","ã":"︾","ã":"ï¹","ã":"ï¹","ã":"ï¹","ã":"ï¹","ã":"︻","ã":"︼","ã":"︹","ã":"︺","ã":"ï¸","ã":"ï¸","ï¼":"ï¸","ï¼":"︵","ï¼":"︶","ï¼":"ï¸","ï¼":"︲","ï¼":"ã»","ï¼":"ï¸","ï¼":"ï¸","ï¼":"︿","ï¼":"ï¹","ï¼":"ï¸","ï¼»":"ï¹","ï¼½":"ï¹","_":"︳","ï½":"︷","ï½":"â","ï½":"︸","ï½":"︵","ï½ ":"︶","。":"ï¸","ï½¢":"ï¹","ï½£":"ï¹","â":"â","â":"â"};var lT=function(r,n,i,o,a){var s,l,c=8*a-o-1,u=(1<<c)-1,d=u>>1,h=-7,p=i?a-1:0,f=i?-1:1,m=r[n+p];for(p+=f,s=m&(1<<-h)-1,m>>
170=-h,h+=c;h>0;s=256*s+r[n+p],p+=f,h-=8);for(l=s&(1<<-h)-1,s>>=-h,h+=o;h>0;l=256*l+r[n+p],p+=f,h-=8);if(0===s)s=1-d;else{if(s===u)return l?NaN:1/0*(m?-1:1);l+=Math.pow(2,o),s-=d}return(m?-1:1)*l*Math.pow(2,s-o)},lE=function(r,n,i,o,a,s){var l,c,u,d=8*s-a-1,h=(1<<d)-1,p=h>>1,f=23===a?5960464477539062e-23:0,m=o?0:s-1,g=o?1:-1,v=n<0||0===n&&1/n<0?1:0;for(isNaN(n=Math.abs(n))||n===1/0?(c=isNaN(n)?1:0,l=h):(l=Math.floor(Math.log(n)/Math.LN2),n*(u=Math.pow(2,-l))<1&&(l--,u*=2),(n+=l+p>=1?f/u:f*Math.pow(2,1-p))*u>=2&&(l++,u/=2),l+p>=h?(c=0,l=h):l+p>=1?(c=(n*u-1)*Math.pow(2,a),l+=p):(c=n*Math.pow(2,p-1)*Math.pow(2,a),l=0));a>=8;r[i+m]=255&c,m+=g,c/=256,a-=8);for(l=l<<a|c,d+=a;d>0;r[i+m]=255&l,m+=g,l/=256,d-=8);r[i+m-g]|=128*v};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */function lk(r){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(r)?r:new Uint8Array(r||0),this.pos=0,this.type=0,this.length=this.buf.length}lk.Varint=0,lk.Fixed64=1,lk.Bytes=2,lk.Fixed32=5;var lC="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function lP(r){return r.type===lk.Bytes?r.readVarint()+r.pos:r.pos+1}function lO(r,n,i){var o=n<=16383?1:n<=2097151?2:n<=268435455?3:Math.floor(Math.log(n)/(7*Math.LN2));i.realloc(o);for(var a=i.pos-1;a>=r;a--)i.buf[a+o]=i.buf[a]}function lj(r,n){for(var i=0;i<r.length;i++)n.writeVarint(r[i])}function lA(r,n){for(var i=0;i<r.length;i++)n.writeSVarint(r[i])}function lM(r,n){for(var i=0;i<r.length;i++)n.writeFloat(r[i])}function lI(r,n){for(var i=0;i<r.length;i++)n.writeDouble(r[i])}function lZ(r,n){for(var i=0;i<r.length;i++)n.writeBoolean(r[i])}function lR(r,n){for(var i=0;i<r.length;i++)n.writeFixed32(r[i])}function lD(r,n){for(var i=0;i<r.length;i++)n.writeSFixed32(r[i])}function lL(r,n){for(var i=0;i<r.length;i++)n.writeFixed64(r[i])}function lz(r,n){for(var i=0;i<r.length;i++)n.writeSFixed64(r[i])}function lB(r,n){return(r[n]|r[n+1]<<8|r[n+2]<<16)+16777216*r[n+3]}function lF(r,n,i){r[i]=n,r[i+1]=n>>>8,r[i+2]=n>>>16,r[i+3]=n>>>24}function lN(r,n){return(r[n]|r[n+1]<<8|r[n+2]<<16)+(r[n+3]<<24)}lk.prototype={destroy:function(){this.buf=null},readFields:function(r,n,i){for(i=i||this.length;this.pos<i;){var o=this.readVarint(),a=o>>3,s=this.pos;this.type=7&o,r(a,n,this),this.pos===s&&this.skip(o)}return n},readMessage:function(r,n){return this.readFields(r,n,this.readVarint()+this.pos)},readFixed32:function(){var r=lB(this.buf,this.pos);return this.pos+=4,r},readSFixed32:function(){var r=lN(this.buf,this.pos);return this.pos+=4,r},readFixed64:function(){var r=lB(this.buf,this.pos)+4294967296*lB(this.buf,this.pos+4);return this.pos+=8,r},readSFixed64:function(){var r=lB(this.buf,this.pos)+4294967296*lN(this.buf,this.pos+4);return this.pos+=8,r},readFloat:function(){var r=lT(this.buf,this.pos,!0,23,4);return this.pos+=4,r},readDouble:function(){var r=lT(this.buf,this.pos,!0,52,8);return this.pos+=8,r},readVarint:function(r){var n,i,o=this.buf;return n=127&(i=o[this.pos++]),i<128?n:(n|=(127&(i=o[this.pos++]))<<7,i<128?n:(n|=(127&(i=o[this.pos++]))<<14,i<128?n:(n|=(127&(i=o[this.pos++]))<<21,i<128?n:function(r,n,i){var o,a,s,l=i.buf;if(a=(112&(s=l[i.pos++]))>>4,s<128||(a|=(127&(s=l[i.pos++]))<<3,s<128)||(a|=(127&(s=l[i.pos++]))<<10,s<128)||(a|=(127&(s=l[i.pos++]))<<17,s<128)||(a|=(127&(s=l[i.pos++]))<<24,s<128)||(a|=(1&(s=l[i.pos++]))<<31,s<128))return o=a,n?4294967296*o+(r>>>0):4294967296*(o>>>0)+(r>>>0);throw Error("Expected varint not more than 10 bytes")}(n|=(15&(i=o[this.pos]))<<28,r,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var r=this.readVarint();return r%2==1?-((r+1)/2):r/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var r,n=this.readVarint()+this.pos,i=this.pos;return this.pos=n,n-i>=12&&lC?(r=this.buf,lC.decode(r.subarray(i,n))):function(r,n,i){for(var o="",a=n;a<i;){var s,l,c,u=r[a],d=null,h=u>239?4:u>223?3:u>191?2:1;if(a+h>i)break;1===h?u<128&&(d=u):2===h?128==(192&(s=r[a+1]))&&(d=(31&u)<<6|63&s)<=127&&(d=null):3===h?(l=r[a+2],128==(192&(s=r[a+1]))&&128==(192&l)&&((d=(15&u)<<12|(63&s)<<6|63&l)<=2047||d>=55296&&d<=57343)&&(d=null)):4===h&&(l=r[a+2],c=r[a+3],128==(192&(s=r[a+1]))&&128==(192&l)&&128==(192&c)&&
vendor: 5,979 bytes, line 170
170((d=(15&u)<<18|(63&s)<<12|(63&l)<<6|63&c)<=65535||d>=1114112)&&(d=null)),null===d?(d=65533,h=1):d>65535&&(d-=65536,o+=String.fromCharCode(d>>>10&1023|55296),d=56320|1023&d),o+=String.fromCharCode(d),a+=h}return o}(this.buf,i,n)},readBytes:function(){var r=this.readVarint()+this.pos,n=this.buf.subarray(this.pos,r);return this.pos=r,n},readPackedVarint:function(r,n){if(this.type!==lk.Bytes)return r.push(this.readVarint(n));var i=lP(this);for(r=r||[];this.pos<i;)r.push(this.readVarint(n));return r},readPackedSVarint:function(r){if(this.type!==lk.Bytes)return r.push(this.readSVarint());var n=lP(this);for(r=r||[];this.pos<n;)r.push(this.readSVarint());return r},readPackedBoolean:function(r){if(this.type!==lk.Bytes)return r.push(this.readBoolean());var n=lP(this);for(r=r||[];this.pos<n;)r.push(this.readBoolean());return r},readPackedFloat:function(r){if(this.type!==lk.Bytes)return r.push(this.readFloat());var n=lP(this);for(r=r||[];this.pos<n;)r.push(this.readFloat());return r},readPackedDouble:function(r){if(this.type!==lk.Bytes)return r.push(this.readDouble());var n=lP(this);for(r=r||[];this.pos<n;)r.push(this.readDouble());return r},readPackedFixed32:function(r){if(this.type!==lk.Bytes)return r.push(this.readFixed32());var n=lP(this);for(r=r||[];this.pos<n;)r.push(this.readFixed32());return r},readPackedSFixed32:function(r){if(this.type!==lk.Bytes)return r.push(this.readSFixed32());var n=lP(this);for(r=r||[];this.pos<n;)r.push(this.readSFixed32());return r},readPackedFixed64:function(r){if(this.type!==lk.Bytes)return r.push(this.readFixed64());var n=lP(this);for(r=r||[];this.pos<n;)r.push(this.readFixed64());return r},readPackedSFixed64:function(r){if(this.type!==lk.Bytes)return r.push(this.readSFixed64());var n=lP(this);for(r=r||[];this.pos<n;)r.push(this.readSFixed64());return r},skip:function(r){var n=7&r;if(n===lk.Varint)for(;this.buf[this.pos++]>127;);else if(n===lk.Bytes)this.pos=this.readVarint()+this.pos;else if(n===lk.Fixed32)this.pos+=4;else{if(n!==lk.Fixed64)throw Error("Unimplemented type: "+n);this.pos+=8}},writeTag:function(r,n){this.writeVarint(r<<3|n)},realloc:function(r){for(var n=this.length||16;n<this.pos+r;)n*=2;if(n!==this.length){var i=new Uint8Array(n);i.set(this.buf),this.buf=i,this.length=n}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(r){this.realloc(4),lF(this.buf,r,this.pos),this.pos+=4},writeSFixed32:function(r){this.realloc(4),lF(this.buf,r,this.pos),this.pos+=4},writeFixed64:function(r){this.realloc(8),lF(this.buf,-1&r,this.pos),lF(this.buf,Math.floor(23283064365386963e-26*r),this.pos+4),this.pos+=8},writeSFixed64:function(r){this.realloc(8),lF(this.buf,-1&r,this.pos),lF(this.buf,Math.floor(23283064365386963e-26*r),this.pos+4),this.pos+=8},writeVarint:function(r){(r=+r||0)>268435455||r<0?function(r,n){var i,o,a,s,l,c,u;if(r>=0?(i=r%4294967296|0,o=r/4294967296|0):(o=~(-r/4294967296),4294967295^(i=~(-r%4294967296))?i=i+1|0:(i=0,o=o+1|0)),r>=18446744073709552e3||r<-18446744073709552e3)throw Error("Given varint doesn't fit into 10 bytes");n.realloc(10),a=i,(s=n).buf[s.pos++]=127&a|128,a>>>=7,s.buf[s.pos++]=127&a|128,a>>>=7,s.buf[s.pos++]=127&a|128,a>>>=7,s.buf[s.pos++]=127&a|128,s.buf[s.pos]=127&(a>>>=7),l=o,c=n,u=(7&l)<<4,c.buf[c.pos++]|=u|((l>>>=3)?128:0),l&&(c.buf[c.pos++]=127&l|((l>>>=7)?128:0),l&&(c.buf[c.pos++]=127&l|((l>>>=7)?128:0),l&&(c.buf[c.pos++]=127&l|((l>>>=7)?128:0),l&&(c.buf[c.pos++]=127&l|((l>>>=7)?128:0),l&&(c.buf[c.pos++]=127&l)))))}(r,this):(this.realloc(4),this.buf[this.pos++]=127&r|(r>127?128:0),r<=127||(this.buf[this.pos++]=127&(r>>>=7)|(r>127?128:0),r<=127||(this.buf[this.pos++]=127&(r>>>=7)|(r>127?128:0),r<=127||(this.buf[this.pos++]=r>>>7&127))))},writeSVarint:function(r){this.writeVarint(r<0?-(2*r)-1:2*r)},writeBoolean:function(r){this.writeVarint(Boolean(r))},writeString:function(r){r=String(r),this.realloc(4*r.length),this.pos++;var n=this.pos;this.pos=function(r,n,i){for(var o,a,s=0;s<n.length;s++){if((o=n.charCodeAt(s))>55295&&o<57344){if(!a){o>56319||s+1===n.length?(r[i++]=239,r[i++]=191,r[i++]=189):a=o;continue}if(o<56320){r[i++]=239,r[i++]=191,r[i++]=189,a=o;continue}o=a-55296<<10|o-56320|65536,a=null}else a&&(r[i++]=239,r[i++]=191,r[i++]=189,a=null);o<128?r[i++]=o:(o<2048?r[i++]=o>>6|192:(o<65536?r[i++]=o>>12|224:(r[i++]=o>>18|240,r[i++]=o>>12&63|128),r[i++]=o>>6&63|128),r[i++]=63&o|128)}return i}(this.buf,r,this.pos);var i=this.pos-n;i>=128&&lO(n,i,this),this.pos=n-1,this.writeVarint(i),this.pos+=i},writeFloat:function(r){this.realloc(4),lE(this.buf,r,this.pos,!0,23,4),this.pos+=4},writeDouble:function(r){this.realloc(8),lE(this.buf,r,this.pos,!0,52,8),this.pos+=8},writeBytes:function(r){var n=r.length;this.writeVarint(n),this.realloc(n);for(var i=0;i<n;i++)this.buf[this.pos++]=r[i]},writeRawMessage:function(r,n){this.pos++;var i=this.pos;r(n,this);var o=this.pos-i;o>=128&&lO(i,o,this),this.pos=i-1,this.writeVarint(o),this.pos+=o},writeMessage:function(r,n,i){this.writeTag(r,lk.Bytes),this.writeRawMessage(n,i)},writePackedVarint:function(r,n){n.length&&this.writeMessage(r,lj,n)},writePackedSVarint:function(r,n){n.length&&this.writeMessage(r,lA,n)},writePackedBoolean:function(r,n){n.length&&this.writeMessage(r,lZ,n)},writePackedFloat:function(r,n){n.length&&this.writeMessage(r,lM,n)},writePackedDouble:function(r,n){n.length&&this.writeMessage(r,lI,n)},writePackedFixed32:function(r,n){n.length&&this.writeMessage(r,lR,n)},writePackedSFixed32:function(r,n){n.length&&this.writeMessage(r,lD,n)},writePackedFixed64:function(r,n){n.length&&this.writeMessage(r,lL,n)},writePackedSFixed64:function(r,n){n.length&&this.writeMessage(r,lz,n)},writeBytesField:function(r,n){this.writeTag(r,lk.Bytes),this.writeBytes(n)},writeFixed32Field:function(r,n){this.writeTag(r,lk.Fixed32),this.writeFixed32(n)},writeSFixed32Field:function(r,n){this.writeTag(r,lk.Fixed32),this.writeSFixed32(n)},writeFixed64Field:function(r,n){this.writeTag(r,lk.Fixed64),this.writeFixed64
170(n)},writeSFixed64Field:function(r,n){this.writeTag(r,lk.Fixed64),this.writeSFixed64(n)},writeVarintField:function(r,n){this.writeTag(r,lk.Varint),this.writeVarint(n)},writeSVarintField:function(r,n){this.writeTag(r,lk.Varint),this.writeSVarint(n)},writeStringField:function(r,n){this.writeTag(r,lk.Bytes),this.writeString(n)},writeFloatField:function(r,n){this.writeTag(r,lk.Fixed32),this.writeFloat(n)},writeDoubleField:function(r,n){this.writeTag(r,lk.Fixed64),this.writeDouble(n)},writeBooleanField:function(r,n){this.writeVarintField(r,Boolean(n))}};var lU=S(lk);function lV(r,n,i){n.glyphs=[],1===r&&i.readMessage(lq,n)}function lq(r,n,i){if(3===r){let{id:r,bitmap:o,width:a,height:s,left:l,top:c,advance:u}=i.readMessage(l$,{});n.glyphs.push({id:r,bitmap:new a5({width:a+6,height:s+6},o),metrics:{width:a,height:s,left:l,top:c,advance:u}})}else 4===r?n.ascender=i.readSVarint():5===r&&(n.descender=i.readSVarint())}function l$(r,n,i){1===r?n.id=i.readVarint():2===r?n.bitmap=i.readBytes():3===r?n.width=i.readVarint():4===r?n.height=i.readVarint():5===r?n.left=i.readSVarint():6===r?n.top=i.readSVarint():7===r&&(n.advance=i.readVarint())}function lG(r){let n=0,i=0;for(let o of r)n+=o.w*o.h,i=Math.max(i,o.w);r.sort((r,n)=>n.h-r.h);let o=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(n/.95)),i),h:1/0}],a=0,s=0;for(let n of r)for(let r=o.length-1;r>=0;r--){let i=o[r];if(!(n.w>i.w||n.h>i.h)){if(n.x=i.x,n.y=i.y,s=Math.max(s,n.y+n.h),a=Math.max(a,n.x+n.w),n.w===i.w&&n.h===i.h){let n=o.pop();r<o.length&&(o[r]=n)}else n.h===i.h?(i.x+=n.w,i.w-=n.w):n.w===i.w?(i.y+=n.h,i.h-=n.h):(o.push({x:i.x+n.w,y:i.y,w:i.w-n.w,h:n.h}),i.y+=n.h,i.h-=n.h);break}}return{w:a,h:s,fill:n/(a*s)||0}}class lW{constructor(r,{pixelRatio:n,version:i,stretchX:o,stretchY:a,content:s}){this.paddedRect=r,this.pixelRatio=n,this.stretchX=o,this.stretchY=a,this.content=s,this.version=i}get tl(){return[this.paddedRect.x+1,this.paddedRect.y+1]}get br(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]}get displaySize(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]}}class lH{constructor(r,n){let i={},o={};this.haveRenderCallbacks=[];let a=[];this.addImages(r,i,a),this.addImages(n,o,a);let{w:s,h:l}=lG(a),c=new a6({width:s||1,height:l||1});for(let n in r){let o=r[n],a=i[n].paddedRect;a6.copy(o.data,c,{x:0,y:0},{x:a.x+1,y:a.y+1},o.data)}for(let r in n){let i=n[r],a=o[r].paddedRect,s=a.x+1,l=a.y+1,u=i.data.width,d=i.data.height;a6.copy(i.data,c,{x:0,y:0},{x:s,y:l},i.data),a6.copy(i.data,c,{x:0,y:d-1},{x:s,y:l-1},{width:u,height:1}),a6.copy(i.data,c,{x:0,y:0},{x:s,y:l+d},{width:u,height:1}),a6.copy(i.data,c,{x:u-1,y:0},{x:s-1,y:l},{width:1,height:d}),a6.copy(i.data,c,{x:0,y:0},{x:s+u,y:l},{width:1,height:d})}this.image=c,this.iconPositions=i,this.patternPositions=o}addImages(r,n,i){for(let o in r){let a=r[o],s={x:0,y:0,w:a.data.width+2,h:a.data.height+2};i.push(s),n[o]=new lW(s,a),a.hasRenderCallback&&this.haveRenderCallbacks.push(o)}}patchUpdatedImages(r,n){for(let i in this.haveRenderCallbacks=this.haveRenderCallbacks.filter(n=>r.hasImage(n)),r.dispatchRenderCallbacks(this.haveRenderCallbacks),r.updatedImages)this.patchUpdatedImage(this.iconPositions[i],r.getImage(i),n),this.patchUpdatedImage(this.patternPositions[i],r.getImage(i),n)}patchUpdatedImage(r,n,i){if(!r||!n||r.version===n.version)return;r.version=n.version;let[o,a]=r.tl;i.update(n.data,void 0,{x:o,y:a})}}nk(lW,"ImagePosition"),nk(lH,"ImageAtlas");let lX={horizontal:1,vertical:2,horizontalOnly:3};class lY{constructor(){this.scale=1,this.fontStack="",this.imageName=null}static forText(r,n){let i=new lY;return i.scale=r||1,i.fontStack=n,i}static forImage(r){let n=new lY;return n.imageName=r,n}}class lK{constructor(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null}
170static fromFeature(r,n){let i=new lK;for(let o=0;o<r.sections.length;o++){let a=r.sections[o];a.image?i.addImageSection(a):i.addTextSection(a,n)}return i}length(){return this.text.length}getSection(r){return this.sections[this.sectionIndex[r]]}getSections(){return this.sections}getSectionIndex(r){return this.sectionIndex[r]}getCharCode(r){return this.text.charCodeAt(r)}verticalizePunctuation(r){this.text=function(r,n){let i="";for(let o=0;o<r.length;o++){let a=r.charCodeAt(o+1)||null,s=r.charCodeAt(o-1)||null;i+=!n&&(a&&nZ(a)&&!lS[r[o+1]]||s&&nZ(s)&&!lS[r[o-1]])||!lS[r[o]]?r[o]:lS[r[o]]}return i}(this.text,r)}trim(){let r=0;for(let n=0;n<this.text.length&&lQ[this.text.charCodeAt(n)];n++)r++;let n=this.text.length;for(let i=this.text.length-1;i>=0&&i>=r&&lQ[this.text.charCodeAt(i)];i--)n--;this.text=this.text.substring(r,n),this.sectionIndex=this.sectionIndex.slice(r,n)}substring(r,n){let i=new lK;return i.text=this.text.substring(r,n),i.sectionIndex=this.sectionIndex.slice(r,n),i.sections=this.sections,i}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((r,n)=>Math.max(r,this.sections[n].scale),0)}addTextSection(r,n){this.text+=r.text,this.sections.push(lY.forText(r.scale,r.fontStack||n));let i=this.sections.length-1;for(let n=0;n<r.text.length;++n)this.sectionIndex.push(i)}addImageSection(r){let n=r.image?r.image.name:"";if(0===n.length)return void K("Can't add FormattedSection with an empty image.");let i=this.getNextImageSectionCharCode();i?(this.text+=String.fromCharCode(i),this.sections.push(lY.forImage(n)),this.sectionIndex.push(this.sections.length-1)):K("Reached maximum number of images 6401")}getNextImageSectionCharCode(){return this.imageSectionID?this.imageSectionID>=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function lJ(r,n,i,o,a,s,l,c,u,d,h,p,f,m,g){let v=lK.fromFeature(r,a);p===lX.vertical&&v.verticalizePunctuation(f);let y=[],b=function(r,n,i,o,a,s){if(!r)return[];let l=[],c=function(r,n,i,o,a,s){let l=0;for(let i=0;i<r.length();i++){let c=r.getSection(i);l+=l1(r.getCharCode(i),c,o,a,n,s)}return l/Math.max(1,Math.ceil(l/i))}(r,n,i,o,a,s),u=r.text.indexOf("â")>=0,d=0;for(let i=0;i<r.length();i++){let h=r.getSection(i),p=r.getCharCode(i);if(lQ[p]||(d+=l1(p,h,o,a,n,s)),i<r.length()-1){let n=!(p<11904||!(nA["Bopomofo Extended"](p)||nA.Bopomofo(p)||nA["CJK Compatibility Forms"](p)||nA["CJK Compatibility Ideographs"](p)||nA["CJK Compatibility"](p)||nA["CJK Radicals Supplement"](p)||nA["CJK Strokes"](p)||nA["CJK Symbols and Punctuation"](p)||nA["CJK Unified Ideographs Extension A"](p)||nA["CJK Unified Ideographs"](p)||nA["Enclosed CJK Letters and Months"](p)||nA["Halfwidth and Fullwidth Forms"](p)||nA.Hiragana(p)||nA["Ideographic Description Characters"](p)||nA["Kangxi Radicals"](p)||nA["Katakana Phonetic Extensions"](p)||nA.Katakana(p)||nA["Vertical Forms"](p)||nA["Yi Radicals"](p)||nA["Yi Syllables"](p)));(l0[p]||n||h.imageName)&&l.push(l3(i+1,d,c,l,function(r,n,i){let o=0;return 10===r&&(o-=1e4),i&&(o+=150),40!==r&&65288!==r||(o+=50),41!==n&&65289!==n||(o+=50),o}(p,r.getCharCode(i+1),n&&u),!1))}}return function r(n){return n?r(n.priorBreak).concat(n.index):[]}(l3(r.length(),d,c,l,0,!0))}(v,d,s,n,o,m),{processBidirectionalText:x,processStyledBidirectionalText:_}=nW;if(x&&1===v.sections.length){let r=x(v.toString(),b);for(let n of r){let r=new lK;r.text=n,r.sections=v.sections;for(let i=0;i<n.length;i++)r.sectionIndex.push(0);y.push(r)}}else if(_){let r=_(v.text,v.sectionIndex,b);for(let n of r){let r=new lK;r.text=n[0],r.sectionIndex=n[1],r.sections=v.sections,y.push(r)}}else y=function(r,n){let i=[],o=r.text,a=0;for(let o of n)i.push(r.substring(a,o)),a=o;return a<o.length&&i.push(r.substring(a,o.length)),i}(v,b);let w=[],S={positionedLines:w,text:v.toString(),top:h[1],bottom:h[1],left:h[0],right:h[0],writingMode:p,iconsInText:!1,verticalizable:!1,hasBaseline:!1};return function(r,n,i,o,a,s,l,c,u,d,h,p){let f=0,m=0,g=0,v="right"===c?1:"left"===c?0:.5,y=!1;for(let r of a){let i=r.getSections();for(let r of i){if(r.imageName)continue;let i=n[r.fontStack];if(i&&!(y=void 0!==i.ascender&&void 0!==i.descender))break}if(!y)break}let b=0;for(let l of a){l.trim();let a=l.getMaxScale(),c=(a-1)*24,x={positionedGlyphs:[],lineOffset:0};r.positionedLines[b]=x;let _=x.positionedGlyphs,w=0;if(!l.length()){m+=s,++b;continue}let S=0,T=0;for(let s=0;s<l.length();s++){let c=l.getSection(s),g=l.getSectionIndex(s),v=l.getCharCode(s),b=c.scale,x=null,E=null,k=null,C=24,P=0,O=!(u===lX.horizontal||!h&&
170!nI(v)||h&&(lQ[v]||nA.Arabic(v)||nA["Arabic Supplement"](v)||nA["Arabic Extended-A"](v)||nA["Arabic Presentation Forms-A"](v)||nA["Arabic Presentation Forms-B"](v)));if(c.imageName){let n=o[c.imageName];if(!n)continue;k=c.imageName,r.iconsInText=r.iconsInText||!0,E=n.paddedRect;let i=n.displaySize;b=24*b/p,x={width:i[0],height:i[1],left:1,top:-3,advance:O?i[1]:i[0],localGlyph:!1},P=y?-x.height*b:-17+24*a-i[1]*b,C=x.advance;let s=(O?i[0]:i[1])*b-24*a;s>0&&s>w&&(w=s)}else{let r=i[c.fontStack];if(!r)continue;r[v]&&(E=r[v]);let o=n[c.fontStack];if(!o)continue;let s=o.glyphs[v];if(!s)continue;if(x=s.metrics,C=8203!==v?24:0,y){let r=void 0!==o.ascender?Math.abs(o.ascender):0,n=void 0!==o.descender?Math.abs(o.descender):0,i=(r+n)*b;S<i&&(S=i,T=(r-n)/2*b),P=-r*b}else P=-17+(a-b)*24}O?(r.verticalizable=!0,_.push({glyph:v,imageName:k,x:f,y:m+P,vertical:O,scale:b,localGlyph:x.localGlyph,fontStack:c.fontStack,sectionIndex:g,metrics:x,rect:E}),f+=C*b+d):(_.push({glyph:v,imageName:k,x:f,y:m+P,vertical:O,scale:b,localGlyph:x.localGlyph,fontStack:c.fontStack,sectionIndex:g,metrics:x,rect:E}),f+=x.advance*b+d)}0!==_.length&&(g=Math.max(f-d,g),y?l5(_,v,w,T,s*a/2):l5(_,v,w,0,s/2)),f=0;let E=s*a+w;x.lineOffset=Math.max(w,c),m+=E,++b}let x=m,{horizontalAlign:_,verticalAlign:w}=l4(l);(function(r,n,i,o,a,s){let l=(n-i)*a,c=-s*o;for(let n of r)for(let r of n.positionedGlyphs)r.x+=l,r.y+=c})(r.positionedLines,v,_,w,g,x),r.top+=-w*x,r.bottom=r.top+x,r.left+=-_*g,r.right=r.left+g,r.hasBaseline=y}(S,n,i,o,y,l,c,u,p,d,f,g),!function(r){for(let n of r)if(0!==n.positionedGlyphs.length)return!1;return!0}(w)&&S}let lQ={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},l0={10:!0,32:!0,38:!0,40:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0};function l1(r,n,i,o,a,s){if(n.imageName){let r=o[n.imageName];return r?r.displaySize[0]*n.scale*24/s+a:0}{let o=i[n.fontStack],s=o&&o.glyphs[r];return s?s.metrics.advance*n.scale+a:0}}function l2(r,n,i,o){let a=Math.pow(r-n,2);return o?r<n?a/2:2*a:a+Math.abs(i)*i}function l3(r,n,i,o,a,s){let l=null,c=l2(n,i,a,s);for(let r of o){let o=l2(n-r.x,i,a,s)+r.badness;o<=c&&(l=r,c=o)}return{index:r,x:n,priorBreak:l,badness:c}}function l4(r){let n=.5,i=.5;switch(r){case"right":case"top-right":case"bottom-right":n=1;break;case"left":case"top-left":case"bottom-left":n=0}switch(r){case"bottom":case"bottom-right":case"bottom-left":i=1;break;case"top":case"top-right":case"top-left":i=0}return{horizontalAlign:n,verticalAlign:i}}function l5(r,n,i,o,a){if(!(n||i||o||a))return;let s=r.length-1,l=r[s],c=(l.x+l.metrics.advance*l.scale)*n;for(let n=0;n<=s;n++)r[n].x-=c,r[n].y+=i+o+a}function l6(r,n,i,o,a,s){let l,c,u,d,h;let p=r.image;if(p.content){let r=p.content,n=p.pixelRatio||1;l=[r[0]/n,r[1]/n,p.displaySize[0]-r[2]/n,p.displaySize[1]-r[3]/n]}let f=n.left*s,m=n.right*s;"width"===i||"both"===i?(h=a[0]+f-o[3],u=a[0]+m+o[1]):u=(h=a[0]+(f+m-p.displaySize[0])/2)+p.displaySize[0];let g=n.top*s,v=n.bottom*s;return"height"===i||"both"===i?(c=a[1]+g-o[0],d=a[1]+v+o[2]):d=(c=a[1]+(g+v-p.displaySize[1])/2)+p.displaySize[1],{image:p,top:c,right:u,bottom:d,left:h,collisionPadding:l}}class l8 extends C{constructor(r,n,i,o,a){super(r,n),this.angle=o,this.z=i,void 0!==a&&(this.segment=a)}clone(){return new l8(this.x,this.y,this.z,this.angle,this.segment)}}function l9(r,n,i,o,a){if(void 0===n.segment)return!0;let s=n,l=n.segment+1,c=0;for(;c>-i/2;){if(--l<0)return!1;c-=r[l].dist(s),s=r[l]}c+=r[l].dist(r[l+1]),l++;let u=[],d=0;for(;c<i/2;){let n=r[l],i=r[l+1];if(!i)return!1;let s=r[l-1].angleTo(n)-n.angleTo(i);for(s=Math.abs((s+3*Math.PI)%(2*Math.PI)-Math.PI),u.push({distance:c,angleDelta:s}),d+=s;c-u[0].distance>o;)d-=u.shift().angleDelta;if(d>a)return!1;l++,c+=n.dist(i)}return!0}function l7(r){let n=0;for(let i=0;i<r.length-1;i++)n+=r[i].dist(r[i+1]);return n}function ce(r,n){return Math.max(r?r.right-r.left:0,n?n.right-n.left:0)}function ct(r,n,i,o,a){let s=[];for(let l=0;l<r.length;l++){let c;let u=r[l];for(let r=0;r<u.length-1;r++){let l=u[r],d=u[r+1];l.x<n&&d.x<n||(l.x<n?l=new C(n,l.y+(n-l.x)/(d.x-l.x)*(d.y-l.y))._round():d.x<n&&(d=new C(n,l.y+(n-l.x)/(d.x-l.x)*(d.y-l.y))._round()),l.y<i&&d.y<i||(l.y<i?l=new C(l.x+(i-l.y)/(d.y-l.y)*(d.x-l.x),i)._round():d.y<i&&(d=new C(l.x+(i-l.y)/(d.y-l.y)*(d.x-l.x),i)._round()),l.x>=o&&d.x>=o||(l.x>=o?l=new C(o,l.y+(o-l.x)/(d.x-l.x)*(d.y-l.y))._round():d.x>=o&&(d=new C(o,l.y+(o-l.x)/(d.x-l.x)*(d.y-l.y))._round()),l.y>=a&&d.y>=a||(l.y>=a?l=new C(l.x+(a-l.y)/(d.y-l.y)*(d.x-l.x),a)._round():d.y>=a&&(d=new C(l.x+(a-l.y)/(d.y-l.y)*(d.x-l.x),a)._round()),c&&l.equals(c[c.length-1])||(c=[l],s.push(c)),c.push(d)))))}}return s}function cr(r,n,i,o,a,s,l,c,u){for(let d=n;d<n+o;d++)cn(r,i*s+d,s,a,l,c,u);for(let d=i;d<i+a;d++)cn(r,d*s+n,1,o,l,c,u)}function cn(r,n,i,o,a,s,l){s[0]=0,l[0]=-1e20,l[1]=1e20,a[0]=r[n];for(let c=1,u=0,d=0;c<o;c++){a[c]=r[n+c*i];let o=c*c;do{let r=s[u];d=(a[c]-a[r]+o-r*r)/(c-r)/2}while(d<=l[u]&&--u>-1);s[++u]=c,l[u]=d,l[u+1]=1e20}for(let c=0,u=0;c<o;c++){for(;l[u+1]<c;)u++;let o=s[u],d=c-o;r[n+c*i]=a[o]+d*d}}nk(l8,"Anchor");let ci={none:0,ideographs:1,all:2};class co{constructor(r,n,i){this.requestManager=r,this.localGlyphMode=n,this.localFontFamily=i,this.entries={},this.localGlyphs={200:{},400:{},500:{},900:{}}}setURL(r){this.url=r}getGlyphs(r,n){let i=[];for(let n in r)for(let o of r[n])i.push({stack:n,id:o});L(i,({stack:r,id:n},i)=>{let o=this.entries[r];o||(o=this.entries[r]={glyphs:{},requests:{},ranges:{},ascender:void 0,descender:void 0});let a=o.glyphs[n];if(void 0!==a)return void i(null,{stack:r,id:n,glyph:a});if(a=this._tinySDF(o,r,n))return o.glyphs[n]=a,void i(null,{stack:r,id:n,glyph:a});let s=Math.floor(n/256);if(256*s>65535)return void i(Error("glyphs > 65535 not supported"));if(o.ranges[s])return void i(null,{stack:r,id:n,glyph:a});let l=o.requests[s];l||(l=o.requests[s]=[],co.loadGlyphRange(r,s,this.url,this.requestManager,(r,n)=>{if(n){for(let r in o.ascender=n.ascender,o.descender=n.descender,n.glyphs)this._doesCharSupportLocalGlyph(+r)||(o.glyphs[+r]=n.glyphs[+r]);o.ranges[s]=!0}for(let i of l)i(r,n);delete o.requests[s]})),l.push((o,a)=>{o?i(o):a&&i(null,{stack:r,id:n,glyph:a.glyphs[n]||null})})},(r,i)=>{if(r)n(r);else if(i){let r={};for(let{stack:n,id:o,glyph:a}of i)void 0===r[n]&&(r[n]={}),void 0===r[n].glyphs&&(r[n].glyphs={}),r[n].glyphs[o]=a&&{id:a.id,bitmap:a.bitmap.clone(),metrics:a.metrics},r[n].ascender=this.entries[n].ascender,r[n].descender=this.entries[n].descender;n(null,r)}})}_doesCharSupportLocalGlyph(r){return this.localGlyphMode!==ci.none&&(this.localGlyphMode===ci.all?!!this.localFontFamily:!!this.localFontFamily&&
170(nA["CJK Unified Ideographs"](r)||nA["Hangul Syllables"](r)||nA.Hiragana(r)||nA.Katakana(r)||nA["CJK Symbols and Punctuation"](r)))}_tinySDF(r,n,i){let o=this.localFontFamily;if(!o||!this._doesCharSupportLocalGlyph(i))return;let a=r.tinySDF;if(!a){let i="400";/bold/i.test(n)?i="900":/medium/i.test(n)?i="500":/light/i.test(n)&&(i="200"),(a=r.tinySDF=new co.TinySDF({fontFamily:o,fontWeight:i,fontSize:48,buffer:6,radius:16})).fontWeight=i}if(this.localGlyphs[a.fontWeight][i])return this.localGlyphs[a.fontWeight][i];let s=String.fromCharCode(i),{data:l,width:c,height:u,glyphWidth:d,glyphHeight:h,glyphLeft:p,glyphTop:f,glyphAdvance:m}=a.draw(s);return this.localGlyphs[a.fontWeight][i]={id:i,bitmap:new a5({width:c,height:u},l),metrics:{width:d/2,height:h/2,left:p/2,top:f/2-27,advance:m/2,localGlyph:!0}}}}function ca(r,n,i,o){let a=[],s=r.image,l=s.pixelRatio,c=s.paddedRect.w-2,u=s.paddedRect.h-2,d=r.right-r.left,h=r.bottom-r.top,p=s.stretchX||[[0,c]],f=s.stretchY||[[0,u]],m=(r,n)=>r+n[1]-n[0],g=p.reduce(m,0),v=f.reduce(m,0),y=c-g,b=u-v,x=0,_=g,w=0,S=v,T=0,E=y,k=0,P=b;if(s.content&&o){let r=s.content;x=cs(p,0,r[0]),w=cs(f,0,r[1]),_=cs(p,r[0],r[2]),S=cs(f,r[1],r[3]),T=r[0]-x,k=r[1]-w,E=r[2]-r[0]-_,P=r[3]-r[1]-S}let O=(o,a,c,u)=>{var p,f,m,y,b,O,j,A,M,I,Z,R;let D=(o.stretch-x)/_*d+r.left,L=(m=o.fixed-T,m-E*o.stretch/g),z=(a.stretch-w)/S*h+r.top,B=(O=a.fixed-k,O-P*a.stretch/v),F=(c.stretch-x)/_*d+r.left,N=(M=c.fixed-T,M-E*c.stretch/g),U=(u.stretch-w)/S*h+r.top,V=(R=u.fixed-k,R-P*u.stretch/v),q=new C(D,z),$=new C(F,z),G=new C(F,U),W=new C(D,U),H=new C(L/l,B/l),X=new C(N/l,V/l),Y=n*Math.PI/180;if(Y){let r=Math.sin(Y),n=Math.cos(Y),i=[n,-r,r,n];q._matMult(i),$._matMult(i),W._matMult(i),G._matMult(i)}let K=o.stretch+o.fixed,J=a.stretch+a.fixed;return{tl:q,tr:$,bl:W,br:G,tex:{x:s.paddedRect.x+1+K,y:s.paddedRect.y+1+J,w:c.stretch+c.fixed-K,h:u.stretch+u.fixed-J},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:H,pixelOffsetBR:X,minFontScaleX:E/l/d,minFontScaleY:P/l/h,isSDF:i}};if(o&&(s.stretchX||s.stretchY)){let r=cl(p,y,g),n=cl(f,b,v);for(let i=0;i<r.length-1;i++){let o=r[i],s=r[i+1];for(let r=0;r<n.length-1;r++)a.push(O(o,n[r],s,n[r+1]))}}else a.push(O({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:c+1},{fixed:0,stretch:u+1}));return a}function cs(r,n,i){let o=0;for(let a of r)o+=Math.max(n,Math.min(i,a[1]))-Math.max(n,Math.min(i,a[0]));return o}function cl(r,n,i){let o=[{fixed:-1,stretch:0}];for(let[n,i]of r){let r=o[o.length-1];o.push({fixed:n-r.stretch,stretch:r.stretch}),o.push({fixed:n-r.stretch,stretch:r.stretch+(i-n)})}return o.push({fixed:n+1,stretch:i}),o}co.loadGlyphRange=function(r,n,i,o,a){let s=256*n,l=o.transformRequest(o.normalizeGlyphsURL(i).replace("{fontstack}",r).replace("{range}",`${s}-${s+255}`),eh.Glyphs);eg(l,(r,n)=>{if(r)a(r);else if(n){let r={},i=new lU(n).readFields(lV,{});for(let n of i.glyphs)r[n.id]=n;a(null,{glyphs:r,ascender:i.ascender,descender:i.descender})}})},co.TinySDF=class{constructor({fontSize:r=24,buffer:n=3,radius:i=8,cutoff:o=.25,fontFamily:a="sans-serif",fontWeight:s="normal",fontStyle:l="normal"}={}){this.buffer=n,this.cutoff=o,this.radius=i;let c=this.size=r+4*n,u=this._createCanvas(c),d=this.ctx=u.getContext("2d",{willReadFrequently:!0});d.font=`${l} ${s} ${r}px ${a}`,d.textBaseline="alphabetic",d.textAlign="left",d.fillStyle="black",this.gridOuter=new Float64Array(c*c),this.gridInner=new Float64Array(c*c),this.f=new Float64Array(c),this.z=new Float64Array(c+1),this.v=new Uint16Array(c)}_createCanvas(r){let n=document.createElement("canvas");return n.width=n.height=r,n}draw(r){let{width:n,actualBoundingBoxAscent:i,actualBoundingBoxDescent:o,actualBoundingBoxLeft:a,actualBoundingBoxRight:s}=this.ctx.measureText(r),l=Math.ceil(i),c=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(s-a))),u=Math.min(this.size-this.buffer,l+Math.ceil(o)),d=c+2*this.buffer,h=u+2*this.buffer,p=Math.max(d*h,0),f=new Uint8ClampedArray(p),m={data:f,width:d,height:h,glyphWidth:c,glyphHeight:u,glyphTop:l,glyphLeft:0,glyphAdvance:n};if(0===c||0===u)return m;let{ctx:g,buffer:v,gridInner:y,gridOuter:b}=this;g.clearRect(v,v,c,u),g.fillText(r,v,v+l);let x=g.getImageData(v,v,c,u);b.fill(1e20,0,p),y.fill(0,0,p);for(let r=0;r<u;r++)for(let n=0;n<c;n++){let i=x.data[4*(r*c+n)+3]/255;if(0===i)continue;let o=(r+v)*d+n+v;if(1===i)b[o]=0,y[o]=1e20;else{let r=.5-i;b[o]=r>0?r*r:0,y[o]=r<0?r*r:0}}cr(b,0,0,d,h,d,this.f,this.v,this.z),cr(y,v,v,c,u,d,this.f,this.v,this.z);for(let r=0;r<p;r++){let n=Math.sqrt(b[r])-Math.sqrt(y[r]);f[r]=Math.round(255-255*(n/this.radius+this.cutoff))}return m}};class cc{constructor(r=[],n=cu){if(this.data=r,this.length=this.data.length,this.compare=n,this.length>0)for(let r=(this.length>>1)-1;r>=0;r--)this._down(r)}push(r){this.data.push(r),this.length++,this._up(this.length-1)}pop(){if(0===this.length)return;let r=this.data[0],n=this.data.pop();return this.length--,this.length>0&&(this.data[0]=n,this._down(0)),r}peek(){return this.data[0]}_up(r){let{data:n,compare:i}=this,o=n[r];for(;r>0;){let a=r-1>>1,s=n[a];if(i(o,s)>=0)break;n[r]=s,r=a}n[r]=o}_down(r){let{data:n,compare:i}=this,o=this.length>>1,a=n[r];for(;r<o;){let o=1+(r<<1),s=n[o],l=o+1;if(l<this.length&&0>i(n[l],s)&&(o=l,s=n[l]),i(s,a)>=0)break;n[r]=s,r=o}n[r]=a}}function cu(r,n){return r<n?-1:r>n?1:0}function cd(r,n){return n.max-r.max}class ch{constructor(r,n,i,o){this.p=new C(r,n),this.h=i,this.d=function(r,n){let i=!1,o=1/0;for(let a=0;a<n.length;a++){let s=n[a];for(let n=0,a=s.length,l=a-1;n<a;l=n++){let a=s[n],c=s[l];a.y>r.y!=c.y>r.y&&r.x<(c.x-a.x)*(r.y-a.y)/(c.y-a.y)+a.x&&(i=!i),o=Math.min(o,aU(r,a,c))}}return(i?1:-1)*Math.sqrt(o)}(this.p,o),this.max=this.d+this.h*Math.SQRT2}}let cp=Number.POSITIVE_INFINITY,cf=Math.sqrt(2);function cm(r,[n,i]){let o=0,a=0;if(i===cp){n<0&&(n=0);let i=n/cf;switch(r){case"top-right":case"top-left":a=i-7;break;case"bottom-right":case"bottom-left":a=-i+7;break;case"bottom":a=-n+7;break;case"top":a=n-7}switch(r){case"top-right":case"bottom-right":o=-i;break;case"top-left":case"bottom-left":o=i;break;case"left":o=n;break;case"right":o=-n}}else{switch(n=Math.abs(n),i=Math.abs(i),r){case"top-right":case"top-left":case"top":a=i-7;break;case"bottom-right":case"bottom-left":case"bottom":a=-i+7}switch(r){case"top-right":case"bottom-right":case"right":o=-n;break;case"top-left":case"bottom-left":case"left":o=n}}return[o,a]}function cg(r){switch(r){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function cv(r,n,i,o,a,s,l,c,u,d,h,p,f,m,g,v,y){let b=function(r,n,i,o,a,s,l,c){let u=[];
170if(0===n.positionedLines.length)return u;let d=o.layout.get("text-rotate").evaluate(s,{})*Math.PI/180,h=function(r){let n=r[0],i=r[1],o=n*i;return o>0?[n,-i]:o<0?[-n,i]:0===n?[i,n]:[i,-n]}(i),p=Math.abs(n.top-n.bottom);for(let r of n.positionedLines)p-=r.lineOffset;let f=n.positionedLines.length,m=p/f,g=n.top-i[1];for(let r=0;r<f;++r){let o=n.positionedLines[r];for(let s of(g=function(r,n,i,o){let a=n+r.positionedLines[o].lineOffset;return 0===o?i+a/2:i+(a+(n+r.positionedLines[o-1].lineOffset))/2}(n,m,g,r),o.positionedGlyphs)){let r,o,p,f;if(!s.rect)continue;let m=s.rect||{},v=4,y=!0,b=1,x=0;if(s.imageName){let r=l[s.imageName];if(!r)continue;if(r.sdf){K("SDF images are not supported in formatted text and will be ignored.");continue}y=!1,v=1/(b=r.pixelRatio)}let _=(a||c)&&s.vertical,w=s.metrics.advance*s.scale/2,S=s.metrics,T=s.rect;if(null===T)continue;c&&n.verticalizable&&(x=s.imageName?w-s.metrics.width*s.scale/2:0);let E=a?[s.x+w,s.y]:[0,0],k=[0,0],P=[0,0],O=!1;a||(_?(P=[s.x+w+h[0],s.y+h[1]-x],O=!0):k=[s.x+w+i[0],s.y+i[1]-x]);let j=T.w*s.scale/(b*(s.localGlyph?2:1)),A=T.h*s.scale/(b*(s.localGlyph?2:1));if(_){let n=s.y-g,i=new C(-w,w-n),a=-Math.PI/2,l=new C(...P);(r=new C(-w+k[0],k[1]))._rotateAround(a,i)._add(l),r.x+=-n+w,r.y-=(S.left-v)*s.scale;let c=s.imageName?S.advance*s.scale:24*s.scale,u=String.fromCharCode(s.glyph);"︶"===u||"ï¹"===u||"︸"===u||"ï¹"===u||"ï¹"===u||"︾"===u||"︼"===u||"︺"===u||"ï¸"===u||"ï¹"===u||"ï¸"===u||"ï¸"===u||"ï¸"===u||"ï½"===u||"ï¿£"===u||"ï¸"===u||"ï¸"===u?r.x+=(1-v)*s.scale:"︵"===u||"ï¹"===u||"︷"===u||"ï¹"===u||"ï¹"===u||"︽"===u||"︻"===u||"︹"===u||"ï¸"===u||"︿"===u?r.x+=c-S.height*s.scale+(-v-1)*s.scale:r.x+=s.imageName||S.width+2*v===T.w&&S.height+2*v===T.h?(c-A)/2:(c-(S.height+2*v)*s.scale)/2,o=new C(r.x,r.y-j),p=new C(r.x+A,r.y),f=new C(r.x+A,r.y-j)}else{let n=(S.left-v)*s.scale-w+k[0],i=(-S.top-v)*s.scale+k[1],a=n+j,l=i+A;r=new C(n,i),o=new C(a,i),p=new C(n,l),f=new C(a,l)}if(d){let n;n=a?new C(0,0):O?new C(h[0],h[1]):new C(i[0],i[1]),r._rotateAround(d,n),o._rotateAround(d,n),p._rotateAround(d,n),f._rotateAround(d,n)}let M=new C(0,0),I=new C(0,0);u.push({tl:r,tr:o,bl:p,br:f,tex:m,writingMode:n.writingMode,glyphOffset:E,sectionIndex:s.sectionIndex,isSDF:y,pixelOffsetTL:M,pixelOffsetBR:I,minFontScaleX:0,minFontScaleY:0})}}return u}(0,o,u,s,l,c,a,r.allowVerticalPlacement),x=r.textSizeData,_=null;for(let o of("source"===x.kind?(_=[128*s.layout.get("text-size").evaluate(c,{},y)])[0]>32640&&K(`${r.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`):"composite"===x.kind&&((_=[128*g.compositeTextSizes[0].evaluate(c,{},y),128*g.compositeTextSizes[1].evaluate(c,{},y)])[0]>32640||_[1]>32640)&&K(`${r.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`),r.addSymbols(r.text,b,_,u,l,c,h,n,i,d.lineStartIndex,d.lineLength,m,v,y),p))f[o]=r.text.placedSymbolArray.length-1;return 4*b.length}function cy(r){for(let n in r)return r[n];return null}function cb(r,n,i,o,a,s,l,c,u,d){let h=l.top,p=l.bottom,f=l.left,m=l.right,g=l.collisionPadding;if(g&&(f-=g[0],h-=g[1],m+=g[2],p+=g[3]),u){let r=new C(f,h),n=new C(m,h),i=new C(f,p),o=new C(m,p),a=u*P,s=new C(0,0);d&&(s=new C(d[0],d[1])),r._rotateAround(a,s),n._rotateAround(a,s),i._rotateAround(a,s),o._rotateAround(a,s),f=Math.min(r.x,n.x,i.x,o.x),m=Math.max(r.x,n.x,i.x,o.x),h=Math.min(r.y,n.y,i.y,o.y),p=Math.max(r.y,n.y,i.y,o.y)}return r.emplaceBack(n.x,n.y,n.z,i.x,i.y,f,h,m,p,c,o,a,s),r.length-1}function cx(r){r.collisionPadding&&(r.top-=r.collisionPadding[1],r.bottom+=r.collisionPadding[3]);let n=r.bottom-r.top;return n>0?Math.max(10,n):null}function c_(r,n){let i=r.fovAboveCenter,o=r.elevation?r.elevation.getMinElevationBelowMSL()*n:0,a=(r._camera.position[2]*r.worldSize-o)/Math.cos(r._pitch),s=Math.sin(i)*a/Math.sin(Math.max(Math.PI/2-r._pitch-i,.01)),l=Math.sin(r._pitch)*s+a;return Math.min(1.01*l,a*(1/r._horizonShift))}function cw(r,n){if(!n.isReprojectedInTileSpace)return{scale:1<<r.z,x:r.x,y:r.y,x2:r.x+1,y2:r.y+1,projection:n};let i=Math.pow(2,-r.z),o=r.x*i,a=(r.x+1)*i,s=r.y*i,l=(r.y+1)*i,c=aC(o),u=aC(a),d=aP(s),h=aP(l),p=n.project(c,d),f=n.project(u,d),m=n.project(u,h),g=n.project(c,h),v=Math.min(p.x,f.x,m.x,g.x),y=Math.min(p.y,f.y,m.y,g.y),b=Math.max(p.x,f.x,m.x,g.x),x=Math.max(p.y,f.y,m.y,g.y),_=i/16;function w(r,i,o,a,s,l){let c=(o+s)/2,u=(a+l)/2,d=n.project(aC(c),aP(u)),h=Math.max(0,v-d.x,y-d.y,d.x-b,d.y-x);v=Math.min(v,d.x),b=Math.max(b,d.x),y=Math.min(y,d.y),x=Math.max(x,d.y),h>_&&(w(r,d,o,a,c,u),w(d,i,c,u,s,l))}w(p,f,o,s,a,s),w(f,m,a,s,a,l),w(m,g,a,l,o,l),w(g,p,o,l,o,s),v-=_,y-=_,b+=_,x+=_;let S=1/Math.max(b-v,x-y);return{scale:S,x:v*S,y:y*S,x2:b*S,y2:x*S,projection:n}}let cS=og(new Float32Array(16));class cT{constructor(r){this.spec=r,this.name=r.name,this.wrap=!1,this.requiresDraping=!1,this.supportsWorldCopies=!1,this.supportsTerrain=!1,this.supportsFog=!1,this.supportsFreeCamera=!1,this.zAxisUnit="meters",this.isReprojectedInTileSpace=!0,this.unsupportedLayers=["custom"],this.center=[0,0],this.range=[3.5,7]}project(r,n){return{x:0,y:0,z:0}}unproject(r,n){return new aS(0,0)}projectTilePoint(r,n,i){return{x:r,y:n,z:0}}locationPoint(r,n,i=!0){return r._coordinatePoint(r.locationCoordinate(n),i)}pixelsPerMeter(r,n){return 1/aT(r)*n}pixelSpaceConversion(r,n,i){return 1}farthestPixelDistance(r){return c_(r,r.pixelsPerMeter)}pointCoordinate(r,n,i,o){let a=r.horizonLineFromTop(!1),s=new C(n,Math.max(a,i));return r.rayIntersectionCoordinate(r.pointRayIntersection(s,o))}pointCoordinate3D(r,n,i){let o=new C(n,i);if(r.elevation)return r.elevation.pointCoordinate(o);{let n=this.pointCoordinate(r,o.x,o.y,0);return[n.x,n.y,n.z]}}isPointAboveHorizon(r,n){if(r.elevation)return!this.pointCoordinate3D(r,n.x,n.y);let i=r.horizonLineFromTop();return n.y<i}createInversionMatrix(r,n){return cS}createTileMatrix(r,n,i){let o,a,s;let l=i.canonical,c=og(new Float64Array(16));if(this.isReprojectedInTileSpace){let u=cw(l,this);
170o=1,a=u.x+i.wrap*u.scale,s=u.y,ox(c,c,[o/u.scale,o/u.scale,r.pixelsPerMeter/n])}else o=n/r.zoomScale(l.z),a=(l.x+Math.pow(2,l.z)*i.wrap)*o,s=l.y*o;return ob(c,c,[a,s,0]),ox(c,c,[o/8192,o/8192,1]),c}upVector(r,n,i){return[0,0,1]}upVectorScale(r,n,i){return{metersToTile:1}}}class cE extends cT{constructor(r){super(r),this.range=[4,7],this.center=r.center||[-96,37.5];let[n,i]=this.parallels=r.parallels||[29.5,45.5],o=Math.sin(n*P);this.n=(o+Math.sin(i*P))/2,this.c=1+o*(2*this.n-o),this.r0=Math.sqrt(this.c)/this.n}project(r,n){let{n:i,c:o,r0:a}=this,s=(r-this.center[0])*P,l=Math.sqrt(o-2*i*Math.sin(n*P))/i;return{x:l*Math.sin(s*i),y:l*Math.cos(s*i)-a,z:0}}unproject(r,n){let{n:i,c:o,r0:a}=this,s=a+n,l=Math.atan2(r,Math.abs(s))*Math.sign(s);s*i<0&&(l-=Math.PI*Math.sign(r)*Math.sign(s));let c=this.center[0]*P*i;l=D(l,-Math.PI-c,Math.PI-c);let u=Z(l/i*O+this.center[0],-180,180),d=Math.asin(Z((o-(r*r+s*s)*i*i)/(2*i),-1,1)),h=Z(d*O,-85.051129,85.051129);return new aS(u,h)}}let ck=Math.sqrt(3)/2;class cC extends cT{project(r,n){n=n/180*Math.PI,r=r/180*Math.PI;let i=Math.asin(ck*Math.sin(n)),o=i*i,a=o*o*o;return{x:.5*(r*Math.cos(i)/(ck*(1.340264+-.24331799999999998*o+a*(.0062510000000000005+.034164*o)))/Math.PI+.5),y:1-.5*(i*(1.340264+-.081106*o+a*(893e-6+.003796*o))/Math.PI+1),z:0}}unproject(r,n){r=(2*r-.5)*Math.PI;let i=n=(2*(1-n)-1)*Math.PI,o=i*i,a=o*o*o;for(let r,s,l=0;l<12&&(s=i*(1.340264+-.081106*o+a*(893e-6+.003796*o))-n,a=(o=(i=Z(i-(r=s/(1.340264+-.24331799999999998*o+a*(.0062510000000000005+.034164*o))),-Math.PI/3,Math.PI/3))*i)*o*o,!(1e-12>Math.abs(r)));++l);let s=ck*r*(1.340264+-.24331799999999998*o+a*(.0062510000000000005+.034164*o))/Math.cos(i),l=Math.asin(Math.sin(i)/ck),c=Z(180*s/Math.PI,-180,180),u=Z(180*l/Math.PI,-85.051129,85.051129);return new aS(c,u)}}class cP extends cT{constructor(r){super(r),this.wrap=!0,this.supportsWorldCopies=!0}project(r,n){return{x:.5+r/360,y:.5-n/360,z:0}}unproject(r,n){let i=Z(360*(.5-n),-85.051129,85.051129);return new aS(360*(r-.5),i)}}let cO=Math.PI/2;function cj(r){return Math.tan((cO+r)/2)}class cA extends cT{constructor(r){super(r),this.center=r.center||[0,30];let[n,i]=this.parallels=r.parallels||[30,30],o=n*P,a=i*P;this.southernCenter=o+a<0,this.southernCenter&&(o=-o,a=-a);let s=Math.cos(o),l=cj(o);this.n=o===a?Math.sin(o):Math.log(s/Math.cos(a))/Math.log(cj(a)/l),this.f=s*Math.pow(cj(o),this.n)/this.n}project(r,n){n*=P,this.southernCenter&&(n=-n),r=(r-this.center[0])*P;let{n:i,f:o}=this;o>0?n<-cO+1e-6&&(n=-cO+1e-6):n>cO-1e-6&&(n=cO-1e-6);let a=o/Math.pow(cj(n),i),s=a*Math.sin(i*r),l=o-a*Math.cos(i*r);return s=.5*(s/Math.PI+.5),l=.5*(l/Math.PI+.5),{x:s,y:this.southernCenter?l:1-l,z:0}}unproject(r,n){r=(2*r-.5)*Math.PI,this.southernCenter&&(n=1-n),n=(2*(1-n)-.5)*Math.PI;let{n:i,f:o}=this,a=o-n,s=Math.sign(a),l=Math.sign(i)*Math.sqrt(r*r+a*a),c=Math.atan2(r,Math.abs(a))*s;a*i<0&&(c-=Math.PI*Math.sign(r)*s);let u=Z(c/i*O+this.center[0],-180,180),d=Z((2*Math.atan(Math.pow(o/l,1/i))-cO)*O,-85.051129,85.051129);return new aS(u,this.southernCenter?-d:d)}}class cM extends cT{constructor(r){super(r),this.wrap=!0,this.supportsWorldCopies=!0,this.supportsTerrain=!0,this.supportsFog=!0,this.supportsFreeCamera=!0,this.isReprojectedInTileSpace=!1,this.unsupportedLayers=[],this.range=null}project(r,n){return{x:aE(r),y:ak(n),z:0}}unproject(r,n){let i=aC(r),o=aP(n);return new aS(i,o)}}let cI=85.051129*P;class cZ extends cT{project(r,n){let i=(n*=P)*n,o=i*i;return{x:.5*((r*=P)*(.8707-.131979*i+o*(o*(.003971*i-.001529*o)-.013791))/Math.PI+.5),y:1-.5*(n*(1.007226+i*(.015085+o*(.028874*i-.044475-.005916*o)))/Math.PI+1),z:0}}unproject(r,n){r=(2*r-.5)*Math.PI;let i=n=(2*(1-n)-1)*Math.PI,o=25,a=0,s=i*i;do{s=i*i;let r=s*s;a=(i*(1.007226+s*(.015085+r*(.028874*s-.044475-.005916*r)))-n)/(1.007226+s*(.045255+r*(.259866*s-.311325-.005916*11*r))),i=Z(i-a,-cI,cI)}while(Math.abs(a)>1e-6&&--o>0);s=i*i;let l=Z(r/(.8707+s*(s*(s*s*s*(.003971-.001529*s)-.013791)-.131979))*O,-180,180),c=i*O;return new aS(l,c)}}let cR=85.051129*P;class cD extends cT{project(r,n){n*=P,r*=P;let i=Math.cos(n),o=2/Math.PI,a=Math.acos(i*Math.cos(r/2)),s=Math.sin(a)/a,l=.5*(r*o+2*i*Math.sin(r/2)/s)||0,c=.5*(n+Math.sin(n)/s)||0;return{x:.5*(l/Math.PI+.5),y:1-.5*(c/Math.PI+1),z:0}}unproject(r,n){let i=r=(2*r-.5)*Math.PI,o=n=(2*(1-n)-1)*Math.PI,a=25,s=0,l=0;do{let a=Math.cos(o),c=Math.sin(o),u=2*c*a,d=c*c,h=a*a,p=Math.cos(i/2),f=Math.sin(i/2),m=2*p*f,g=f*f,v=1-h*p
170*p,y=v?1/v:0,b=v?Math.acos(a*p)*Math.sqrt(1/v):0,x=.5*(2*b*a*f+2*i/Math.PI)-r,_=.5*(b*c+o)-n,w=.5*y*(h*g+b*a*p*d)+1/Math.PI,S=y*(m*u/4-b*c*f),T=.125*y*(u*f-b*c*h*m),E=.5*y*(d*p+b*g*a)+.5,k=S*T-E*w;s=(_*S-x*E)/k,l=(x*T-_*w)/k,i=Z(i-s,-Math.PI,Math.PI),o=Z(o-l,-cR,cR)}while((Math.abs(s)>1e-6||Math.abs(l)>1e-6)&&--a>0);return new aS(i*O,o*O)}}class cL extends cT{constructor(r){super(r),this.center=r.center||[0,0],this.parallels=r.parallels||[0,0],this.cosPhi=Math.max(.01,Math.cos(this.parallels[0]*P)),this.scale=1/(2*Math.max(Math.PI*this.cosPhi,1/this.cosPhi)),this.wrap=!0,this.supportsWorldCopies=!0}project(r,n){let{scale:i,cosPhi:o}=this;return{x:r*P*o*i+.5,y:-Math.sin(n*P)/o*i+.5,z:0}}unproject(r,n){let{scale:i,cosPhi:o}=this,a=Z((r-.5)/i*O/o,-180,180),s=Math.asin(Z(-(n-.5)/i*o,-1,1)),l=Z(s*O,-85.051129,85.051129);return new aS(a,l)}}class cz extends cM{constructor(r){super(r),this.requiresDraping=!0,this.supportsWorldCopies=!1,this.supportsFog=!0,this.zAxisUnit="pixels",this.unsupportedLayers=["debug"],this.range=[3,5]}projectTilePoint(r,n,i){let o=al(r,n,i);return oB(o,o,ad(ae(i))),{x:o[0],y:o[1],z:o[2]}}locationPoint(r,n){let i=as(n.lat,n.lng),o=oD([],i),a=r.elevation?r.elevation.getAtPointOrZero(r.locationCoordinate(n),r._centerAltitude):r._centerAltitude;oR(i,i,o,1/aT(0)*8192*a);let s=og(new Float64Array(16));return oy(s,r.pixelMatrix,r.globeMatrix),oB(i,i,s),new C(i[0],i[1])}pixelsPerMeter(r,n){return 1/aT(0)*n}pixelSpaceConversion(r,n,i){let o=1/aT(r)*n,a=t0(1/aT(45)*n,o,i);return this.pixelsPerMeter(r,n)/a}createTileMatrix(r,n,i){let o=ah(ae(i.canonical));return oy(new Float64Array(16),r.globeMatrix,o)}createInversionMatrix(r,n){let{center:i}=r,o=ad(ae(n));return ow(o,o,i.lng*P),o_(o,o,i.lat*P),ox(o,o,[r._pixelsPerMercatorPixel,r._pixelsPerMercatorPixel,1]),Float32Array.from(o)}pointCoordinate(r,n,i,o){return o8(r,n,i,!0)||new aj(0,0)}pointCoordinate3D(r,n,i){let o=this.pointCoordinate(r,n,i,0);return[o.x,o.y,o.z]}isPointAboveHorizon(r,n){return!o8(r,n.x,n.y,!1)}farthestPixelDistance(r){let n=function(r,n){let i;let o=r.cameraToCenterDistance,a=r._centerAltitude*n,s=r._camera,l=r._camera.forward(),c=oO([],oZ([],l,-o),[0,0,a]),u=r.worldSize/(2*Math.PI),d=[0,0,-u],h=r.width/r.height,p=Math.tan(r.fovAboveCenter),f=oZ([],s.up(),p),m=oZ([],s.right(),p*h),g=oD([],oO([],oO([],l,f),m)),v=[];if(new oJ(c,g).closestPointOnSphere(d,u,v)){let n=oO([],v,d),o=oj([],n,c);i=Math.cos(r.fovAboveCenter)*oC(o)}else{let r=oj([],c,d),n=oj([],d,c);oD(n,n);let o=oC(r)-u;i=Math.sqrt(o*(o+2*u));let a=Math.acos(i/(u+o))-Math.acos(oL(l,n));i*=Math.cos(a)}return 1.01*i}(r,this.pixelsPerMeter(r.center.lat,r.worldSize)),i=af(r.zoom);if(i>0){let o=c_(r,1/aT(r.center.lat)*r.worldSize),a=r.worldSize/(2*Math.PI),s=Math.max(r.width,r.height)/r.worldSize*Math.PI;return t0(n,o+a*(1-Math.cos(s)),Math.pow(i,10))}return n}upVector(r,n,i){return al(n,i,r,1)}upVectorScale(r){return{metersToTile:o6(ac(ae(r)))}}}function cB(r){let n=r.parallels,i=!!n&&.01>Math.abs(n[0]+n[1]);switch(r.name){case"mercator":return new cM(r);case"equirectangular":return new cP(r);case"naturalEarth":return new cZ(r);case"equalEarth":return new cC(r);case"winkelTripel":return new cD(r);case"albers":return i?new cL(r):new cE(r);case"lambertConformalConic":return i?new cL(r):new cA(r);case"globe":return new cz(r)}throw Error(`Invalid projection name: ${r.name}`)}let cF=sN.types,cN=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];function cU(r,n,i,o,a,s,l,c,u,d,h,p,f){let m=c?Math.min(32640,Math.round(c[0])):0,g=c?Math.min(32640,Math.round(c[1])):0;r.emplaceBack(n,i,Math.round(32*o),Math.round(32*a),s,l,(m<<1)+(u?1:0),g,16*d,16*h,256*p,256*f)}function cV(r,n,i,o,a,s,l){r.emplaceBack(n,i,o,a,s,l)}function cq(r,n,i,o,a){r.emplaceBack(n,i,o,a),r.emplaceBack(n,i,o,a),r.emplaceBack(n,i,o,a),r.emplaceBack(n,i,o,a)}class c${constructor(r){this.layoutVertexArray=new ih,this.indexArray=new i_,this.programConfigurations=r,this.segments=new od,this.dynamicLayoutVertexArray=new il,this.opacityVertexArray=new im,this.placedSymbolArray=new iI,this.globeExtVertexArray=new ip}isEmpty(){return 0===this.layoutVertexArray.length&&0===this.indexArray.length&&0===this.dynamicLayoutVertexArray.length&&0===this.opacityVertexArray.length}upload(r,n,i,o){this.isEmpty()||(i&&(this.layoutVertexBuffer=r.createVertexBuffer(this.layoutVertexArray,lh.members),this.indexBuffer=r.createIndexBuffer(this.indexArray,n),this.dynamicLayoutVertexBuffer=r.createVertexBuffer(this.dynamicLayoutVertexArray,lf.members,!0),this.opacityVertexBuffer=r.createVertexBuffer(this.opacityVertexArray,cN,!0),this.globeExtVertexArray.length>0&&(this.globeExtVertexBuffer=r.createVertexBuffer(this.globeExtVertexArray,lp.members,!0)),this.opacityVertexBuffer.itemSize=1),(i||o)&&this.programConfigurations.upload(r))}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy(),this.globeExtVertexBuffer&&this.globeExtVertexBuffer.destroy())}}nk(c$,"SymbolBuffers");class cG{constructor(r,n,i){this.layoutVertexArray=new r,this.layoutAttributes=n,this.indexArray=new i,this.segments=new od,this.collisionVertexArray=new ib,this.collisionVertexArrayExt=new ix}upload(r){this.layoutVertexBuffer=r.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=r.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=r.createVertexBuffer(this.collisionVertexArray,lm.members,!0),this.collisionVertexBufferExt=r.createVertexBuffer(this.collisionVertexArrayExt,lg.members,!0)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy(),this.collisionVertexBufferExt.de
170stroy())}}nk(cG,"CollisionBuffers");class cW{constructor(r){this.collisionBoxArray=r.collisionBoxArray,this.zoom=r.zoom,this.overscaling=r.overscaling,this.layers=r.layers,this.layerIds=this.layers.map(r=>r.id),this.index=r.index,this.pixelRatio=r.pixelRatio,this.sourceLayerIndex=r.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.fullyClipped=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=og([]),this.placementViewportMatrix=og([]);let n=this.layers[0]._unevaluatedLayout._values;this.textSizeData=lb(this.zoom,n["text-size"]),this.iconSizeData=lb(this.zoom,n["icon-size"]);let i=this.layers[0].layout,o=i.get("symbol-sort-key"),a=i.get("symbol-z-order");this.canOverlap=i.get("text-allow-overlap")||i.get("icon-allow-overlap")||i.get("text-ignore-placement")||i.get("icon-ignore-placement"),this.sortFeaturesByKey="viewport-y"!==a&&void 0!==o.constantOr(1),this.sortFeaturesByY=("viewport-y"===a||"auto"===a&&!this.sortFeaturesByKey)&&this.canOverlap,this.writingModes=i.get("text-writing-mode").map(r=>lX[r]),this.stateDependentLayerIds=this.layers.filter(r=>r.isStateDependent()).map(r=>r.id),this.sourceID=r.sourceID,this.projection=r.projection}createArrays(){this.text=new c$(new or(this.layers,this.zoom,r=>/^text/.test(r))),this.icon=new c$(new or(this.layers,this.zoom,r=>/^icon/.test(r))),this.glyphOffsetArray=new iD,this.lineVertexArray=new iL,this.symbolInstances=new iR}calculateGlyphDependencies(r,n,i,o,a){for(let i=0;i<r.length;i++)if(n[r.charCodeAt(i)]=!0,o&&a){let o=lS[r.charAt(i)];o&&(n[o.charCodeAt(0)]=!0)}}populate(r,n,i,o){let a=this.layers[0],s=a.layout,l="globe"===this.projection.name,c=s.get("text-font"),u=s.get("text-field"),d=s.get("icon-image"),h=("constant"!==u.value.kind||u.value.value instanceof tv&&!u.value.value.isEmpty()||u.value.value.toString().length>0)&&("constant"!==c.value.kind||c.value.value.length>0),p="constant"!==d.value.kind||!!d.value.value||Object.keys(d.parameters).length>0,f=s.get("symbol-sort-key");if(this.features=[],!h&&!p)return;let m=n.iconDependencies,g=n.glyphDependencies,v=n.availableImages,y=new nH(this.zoom);for(let{feature:n,id:u,index:d,sourceLayerIndex:b}of r){let r,x;let _=a._featureFilter.needGeometry,w=aZ(n,_);if(!a._featureFilter.filter(y,w,i))continue;if(_||(w.geometry=aI(n,i,o)),l&&1!==n.type&&i.z<=5){let r=w.geometry,n=(r,n)=>.98078528056>oL(al(r.x,r.y,i,1),al(n.x,n.y,i,1));for(let i=0;i<r.length;i++)r[i]=function(r,n){let i=r[0],o=[i];for(let a=1;a<r.length;a++){let s=r[a];(function r(n,i,o,a){if(a(i,o)){let s=i.add(o)._mult(.5);r(n,i,s,a),r(n,s,o,a)}else n.push(o)})(o,i,s,n),i=s}return o}(r[i],n)}if(h){let n=a.getValueAndResolveTokens("text-field",w,i,v),o=tv.factory(n);(function(r){for(let n of r.sections)if(function(r){for(let n of r)if(nR(n.charCodeAt(0)))return!0;return!1}(n.text))return!0;return!1})(o)&&(this.hasRTLText=!0),(!this.hasRTLText||"unavailable"===n$()||this.hasRTLText&&nW.isParsed())&&(r=function(r,n,i){return r.sections.forEach(r=>{r.text=function(r,n,i){let o=n.layout.get("text-transform").evaluate(i,{});return"uppercase"===o?r=r.toLocaleUpperCase():"lowercase"===o&&(r=r.toLocaleLowerCase()),nW.applyArabicShaping&&(r=nW.applyArabicShaping(r)),r}(r.text,n,i)}),r}(o,a,w))}if(p){let r=a.getValueAndResolveTokens("icon-image",w,i,v);x=r instanceof ty?r:ty.fromString(r)}if(!r&&!x)continue;let S=this.sortFeaturesByKey?f.evaluate(w,{},i):void 0;if(this.features.push({id:u,text:r,icon:x,index:d,sourceLayerIndex:b,geometry:w.geometry,properties:n.properties,type:cF[n.type],sortKey:S}),x&&(m[x.name]=!0),r){let n=c.evaluate(w,{},i).join(","),o="map"===s.get("text-rotation-alignment")&&"point"!==s.get("symbol-placement");for(let i of(this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(lX.vertical)>=0,r.sections))if(i.image)m[i.image.name]=!0;else{let a=nM(r.toString()),s=i.fontStack||n,l=g[s]=g[s]||{};this.calculateGlyphDependencies(i.text,l,o,this.allowVerticalPlacement,a)}}}"line"===s.get("symbol-placement")&&(this.features=function(r){let n={},i={},o=[],a=0;function s(n){o.push(r[n]),a++}function l(r,n,a){let s=i[r];return delete i[r],i[n]=s,o[s].geometry[0].pop(),o[s].geometry[0]=o[s].geometry[0].concat(a[0]),s}function c(r,i,a){let s=n[i];return delete n[i],n[r]=s,o[s].geometry[0].shift(),o[s].geometry[0]=a[0].concat(o[s].geometry[0]),s}function u(r,n,i){let o=i?n[0][n[0].length-1]:n[0][0];return`${r}:${o.x}:${o.y}`}for(let d=0;d<r.length;d++){let h=r[d],p=h.geometry,f=h.text?h.text.toString():null;if(!f){s(d);continue}let m=u(f,p),g=u(f,p,!0);if(m in i&&g in n&&i[m]!==n[g]){let r=c(m,g,p),a=l(m,g,o[r].geometry);delete n[m],delete i[g],i[u(f,o[a].geometry,!0)]=a,o[r].geometry=null}else m in i?l(m,g,p):g in n?c(m,g,p):(s(d),n[m]=a-1,i[g]=a-1)}return o.filter(r=>r.geometry)}(this.features)),this.sortFeaturesByKey&&this.features.sort((r,n)=>r.sortKey-n.sortKey)}update(r,n,i,o){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(r,n,this.layers,i,o),this.icon.programConfigurations.updatePaintArrays(r,n,this.layers,i,o))}isEmpty(){return 0===this.symbolInstances.length&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(r){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(r),this.iconCollisionBox.upload(r)),this.text.upload(r,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(r,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}getProjection(){return this.projectionInstance||(this.projectionInstance=cB(this.projection)),this.projectionInstance}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(r,n){let i=this.lineVertexArray.length;if(void 0!==r.segment)for(let{x:r,y:i}of n)this.lineVertexArray.emplaceBack(r,i);return{lineStartIndex:i,lineLength:this.lineVertexArray.length-i}}addSymbols(r,n,i,o,a,s,l,c,u,d,h,p,f,m){let g=r.indexArray,v=r.layoutVertexArray,y=r.globeExtVertexArray,b=r.segments.prepareSegment(4*n.length,v,g,this.canOverlap?s.sortKey:void 0),x=this.glyphOffsetArray.length,_=b.vertexLength,w=this.allowVerticalPlacement&&l===lX.vertical?Math.PI/2:0,S=s.text&&s.text.sections;for(let o=0;o<n.length;o++){let{tl:a,tr:l,bl:d,br:h,tex:p,pixelOffsetTL:x,pixelOffsetBR:_,minFontScaleX:T,minFontScaleY:E,glyphOffset:k,isSDF:C,sectionIndex:P}=n[o],O=b.vertexLength,j=k[1];if(cU(v,u.x,u.y,a.x,j+a.y,p.x,p.y,i,C,x.x,x.y,T,E),cU(v,u.x,u.y,l.x,j+l.y,p.x+p.w,p.y,i,C,_.x,x.y,T,E),cU(v,u.x,u.y,d.x,j+d.y,p.x,p.y+p.h,i,C,x.x,_.y,T,E),cU(v,u.x,u.y,h.x,j+h.y,p.x+p.w,p.y+
170p.h,i,C,_.x,_.y,T,E),c){let{x:n,y:i,z:o}=c.anchor,[a,s,l]=c.up;cV(y,n,i,o,a,s,l),cV(y,n,i,o,a,s,l),cV(y,n,i,o,a,s,l),cV(y,n,i,o,a,s,l),cq(r.dynamicLayoutVertexArray,n,i,o,w)}else cq(r.dynamicLayoutVertexArray,u.x,u.y,u.z,w);g.emplaceBack(O,O+1,O+2),g.emplaceBack(O+1,O+2,O+3),b.vertexLength+=4,b.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(k[0]),o!==n.length-1&&P===n[o+1].sectionIndex||r.programConfigurations.populatePaintArrays(v.length,s,s.index,{},f,m,S&&S[P])}let T=c?c.anchor:u;r.placedSymbolArray.emplaceBack(T.x,T.y,T.z,u.x,u.y,x,this.glyphOffsetArray.length-x,_,d,h,u.segment,i?i[0]:0,i?i[1]:0,o[0],o[1],l,0,!1,0,p,0)}_commitLayoutVertex(r,n,i,o,a,s,l){r.emplaceBack(n,i,o,a,s,Math.round(l.x),Math.round(l.y))}_addCollisionDebugVertices(r,n,i,o,a,s,l){let c=i.segments.prepareSegment(4,i.layoutVertexArray,i.indexArray),u=c.vertexLength,d=l.tileAnchorX,h=l.tileAnchorY;for(let r=0;r<4;r++)i.collisionVertexArray.emplaceBack(0,0,0,0);i.collisionVertexArrayExt.emplaceBack(n,-r.padding,-r.padding),i.collisionVertexArrayExt.emplaceBack(n,r.padding,-r.padding),i.collisionVertexArrayExt.emplaceBack(n,r.padding,r.padding),i.collisionVertexArrayExt.emplaceBack(n,-r.padding,r.padding),this._commitLayoutVertex(i.layoutVertexArray,o,a,s,d,h,new C(r.x1,r.y1)),this._commitLayoutVertex(i.layoutVertexArray,o,a,s,d,h,new C(r.x2,r.y1)),this._commitLayoutVertex(i.layoutVertexArray,o,a,s,d,h,new C(r.x2,r.y2)),this._commitLayoutVertex(i.layoutVertexArray,o,a,s,d,h,new C(r.x1,r.y2)),c.vertexLength+=4;let p=i.indexArray;p.emplaceBack(u,u+1),p.emplaceBack(u+1,u+2),p.emplaceBack(u+2,u+3),p.emplaceBack(u+3,u),c.primitiveLength+=4}_addTextDebugCollisionBoxes(r,n,i,o,a,s){for(let l=o;l<a;l++){let o=i.get(l),a=this.getSymbolInstanceTextSize(r,s,n,l);this._addCollisionDebugVertices(o,a,this.textCollisionBox,o.projectedAnchorX,o.projectedAnchorY,o.projectedAnchorZ,s)}}_addIconDebugCollisionBoxes(r,n,i,o,a,s){for(let l=o;l<a;l++){let o=i.get(l),a=this.getSymbolInstanceIconSize(r,n,s.placedIconSymbolIndex);this._addCollisionDebugVertices(o,a,this.iconCollisionBox,o.projectedAnchorX,o.projectedAnchorY,o.projectedAnchorZ,s)}}generateCollisionDebugBuffers(r,n){this.hasDebugData()&&this.destroyDebugData(),this.textCollisionBox=new cG(iv,lv.members,iC),this.iconCollisionBox=new cG(iv,lv.members,iC);let i=l_(this.iconSizeData,r),o=l_(this.textSizeData,r);for(let a=0;a<this.symbolInstances.length;a++){let s=this.symbolInstances.get(a);this._addTextDebugCollisionBoxes(o,r,n,s.textBoxStartIndex,s.textBoxEndIndex,s),this._addTextDebugCollisionBoxes(o,r,n,s.verticalTextBoxStartIndex,s.verticalTextBoxEndIndex,s),this._addIconDebugCollisionBoxes(i,r,n,s.iconBoxStartIndex,s.iconBoxEndIndex,s),this._addIconDebugCollisionBoxes(i,r,n,s.verticalIconBoxStartIndex,s.verticalIconBoxEndIndex,s)}}getSymbolInstanceTextSize(r,n,i,o){let a=this.text.placedSymbolArray.get(n.rightJustifiedTextSymbolIndex>=0?n.rightJustifiedTextSymbolIndex:n.centerJustifiedTextSymbolIndex>=0?n.centerJustifiedTextSymbolIndex:n.leftJustifiedTextSymbolIndex>=0?n.leftJustifiedTextSymbolIndex:n.verticalPlacedTextSymbolIndex>=0?n.verticalPlacedTextSymbolIndex:o),s=lx(this.textSizeData,r,a)/24;return this.tilePixelRatio*s}getSymbolInstanceIconSize(r,n,i){let o=this.icon.placedSymbolArray.get(i),a=lx(this.iconSizeData,r,o);return this.tilePixelRatio*a}_commitDebugCollisionVertexUpdate(r,n,i){r.emplaceBack(n,-i,-i),r.emplaceBack(n,i,-i),r.emplaceBack(n,i,i),r.emplaceBack(n,-i,i)}_updateTextDebugCollisionBoxes(r,n,i,o,a,s){for(let l=o;l<a;l++){let o=i.get(l),a=this.getSymbolInstanceTextSize(r,s,n,l);this._commitDebugCollisionVertexUpdate(this.textCollisionBox.collisionVertexArrayExt,a,o.padding)}}_updateIconDebugCollisionBoxes(r,n,i,o,a,s){for(let l=o;l<a;l++){let o=i.get(l),a=this.getSymbolInstanceIconSize(r,n,s);this._commitDebugCollisionVertexUpdate(this.iconCollisionBox.collisionVertexArrayExt,a,o.padding)}}updateCollisionDebugBuffers(r,n){if(!this.hasDebugData())return;this.hasTextCollisionBoxData()&&this.textCollisionBox.collisionVertexArrayExt.clear(),this.hasIconCollisionBoxData()&&this.iconCollisionBox.collisionVertexArrayExt.clear();let i=l_(this.iconSizeData,r),o=l_(this.textSizeData,r);for(let a=0;a<this.symbolInstances.length;a++){let s=this.symbolInstances.get(a);this._updateTextDebugCollisionBoxes(o,r,n,s.textBoxStartIndex,s.textBoxEndIndex,s),this._updateTextDebugCollisionBoxes(o,r,n,s.verticalTextBoxStartIndex,s.verticalTextBoxEndIndex,s),this._updateIconDebugCollisionBoxes(i,r,n,s.iconBoxStartIndex,s.iconBoxEndIndex,s.placedIconSymbolIndex),this._updateIconDebugCollisionBoxes(i,r,n,s.verticalIconBoxStartIndex,s.verticalIconBoxEndIndex,s.placedIconSymbolIndex)}this.hasTextCollisionBoxData()&&this.textCollisionBox.collisionVertexBufferExt&&this.textCollisionBox.collisionVertexBufferExt.updateData(this.textCollisionBox.collisionVertexArrayExt),this.hasIconCollisionBoxData()&&this.iconCollisionBox.collisionVertexBufferExt&&this.iconCollisionBox.collisionVertexBufferExt.updateData(this.iconCollisionBox.collisionVertexArrayExt)}_deserializeCollisionBoxesForSymbol(r,n,i,o,a,s,l,c,u){let d={};if(n<i){let{x1:i,y1:o,x2:a,y2:s,padding:l,projectedAnchorX:c,projectedAnchorY:u,projectedAnchorZ:h,tileAnchorX:p,tileAnchorY:f,featureIndex:m}=r.get(n);d.textBox={x1:i,y1:o,x2:a,y2:s,padding:l,projectedAnchorX:c,projectedAnchorY:u,projectedAnchorZ:h,tileAnchorX:p,tileAnchorY:f},d.textFeatureIndex=m}if(o<a){let{x1:n,y1:i,x2:a,y2:s,padding:l,projectedAnchorX:c,projectedAnchorY:u,projectedAnchorZ:h,tileAnchorX:p,tileAnchorY:f,featureIndex:m}=r.get(o);d.verticalTextBox={x1:n,y1:i,x2:a,y2:s,padding:l,projectedAnchorX:c,projectedAnchorY:u,projectedAnchorZ:h,tileAnchorX:p,tileAnchorY:f},d.verticalTextFeatureIndex=m}if(s<l){let{x1:n,y1:i,x2:o,y2:a,padding:l,projectedAnchorX:c,projectedAnchorY:u,projectedAnchorZ:h,tileAnchorX:p,tileAnchorY:f,featureIndex:m}=r.get(s);d.iconBox={x1:n,y1:i,x2:o,y2:a,padding:l,projectedAnchorX:c,projectedAnchorY:u,projectedAnchorZ:h,tileAnchorX:p,tileAnchorY:f},d.iconFeatureIndex=m}if(c<u){let{x1:n,y1:i,x2:o,y2:a,padding:s,projectedAnchorX:l,projectedAnchorY:u,projectedAnchorZ:h,tileAnchorX:p,tileAnchorY:f,featureIndex:m}=r.get(c);d.verticalIconBox={x1:n,y1:i,x2:o,y2:a,padding:s,projectedAnchorX:l,projectedAnchorY:u,projectedAnchorZ:h,tileAnchorX:p,tileAnchorY:f},d.verticalIconFeatureIndex=m}return d}deserializeCollisionBoxes(r){this.collisionArrays=[];for(let n=0;n<this.symbolInstances.length;n++){let i=this.symbolInstances.get(n);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(r,i.textBoxStartIndex,i.textBoxEndIndex,i.verticalTextBoxStartIndex,i.verticalTextBoxEndIndex,i.iconBoxStartIndex,i.iconBoxEndIndex,i.verticalIconBoxStartIndex,i.verticalIconBoxEndIndex))}}hasTextData(){return this.text.segments.get().length>0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(r,n){let i=r.placedSymbolArray.get(n),o=i.vertexStartIndex+4*i.numGlyphs;for(let n=i.vertexStartIndex;n<o;n+=4)r.indexArray.emplaceBack(n,n+1,n+2),r.indexArray.emplaceBack(n+1,n+2,n+3)}
170getSortedSymbolIndexes(r){if(this.sortedAngle===r&&void 0!==this.symbolInstanceIndexes)return this.symbolInstanceIndexes;let n=Math.sin(r),i=Math.cos(r),o=[],a=[],s=[];for(let r=0;r<this.symbolInstances.length;++r){s.push(r);let l=this.symbolInstances.get(r);o.push(0|Math.round(n*l.tileAnchorX+i*l.tileAnchorY)),a.push(l.featureIndex)}return s.sort((r,n)=>o[r]-o[n]||a[n]-a[r]),s}addToSortKeyRanges(r,n){let i=this.sortKeyRanges[this.sortKeyRanges.length-1];i&&i.sortKey===n?i.symbolInstanceEnd=r+1:this.sortKeyRanges.push({sortKey:n,symbolInstanceStart:r,symbolInstanceEnd:r+1})}sortFeatures(r){if(this.sortFeaturesByY&&this.sortedAngle!==r&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){for(let n of(this.symbolInstanceIndexes=this.getSortedSymbolIndexes(r),this.sortedAngle=r,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[],this.symbolInstanceIndexes)){let r=this.symbolInstances.get(n);this.featureSortOrder.push(r.featureIndex);let{rightJustifiedTextSymbolIndex:i,centerJustifiedTextSymbolIndex:o,leftJustifiedTextSymbolIndex:a,verticalPlacedTextSymbolIndex:s,placedIconSymbolIndex:l,verticalPlacedIconSymbolIndex:c}=r;i>=0&&this.addIndicesForPlacedSymbol(this.text,i),o>=0&&o!==i&&this.addIndicesForPlacedSymbol(this.text,o),a>=0&&a!==o&&a!==i&&this.addIndicesForPlacedSymbol(this.text,a),s>=0&&this.addIndicesForPlacedSymbol(this.text,s),l>=0&&this.addIndicesForPlacedSymbol(this.icon,l),c>=0&&this.addIndicesForPlacedSymbol(this.icon,c)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}nk(cW,"SymbolBucket",{omit:["layers","collisionBoxArray","features","compareText"]}),cW.MAX_GLYPHS=65535,cW.addDynamicAttributes=cq;let cH=new n6({"symbol-placement":new n3(eY.layout_symbol["symbol-placement"]),"symbol-spacing":new n3(eY.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new n3(eY.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new n4(eY.layout_symbol["symbol-sort-key"]),"symbol-z-order":new n3(eY.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new n3(eY.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new n3(eY.layout_symbol["icon-ignore-placement"]),"icon-optional":new n3(eY.layout_symbol["icon-optional"]),"icon-rotation-alignment":new n3(eY.layout_symbol["icon-rotation-alignment"]),"icon-size":new n4(eY.layout_symbol["icon-size"]),"icon-text-fit":new n3(eY.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new n3(eY.layout_symbol["icon-text-fit-padding"]),"icon-image":new n4(eY.layout_symbol["icon-image"]),"icon-rotate":new n4(eY.layout_symbol["icon-rotate"]),"icon-padding":new n3(eY.layout_symbol["icon-padding"]),"icon-keep-upright":new n3(eY.layout_symbol["icon-keep-upright"]),"icon-offset":new n4(eY.layout_symbol["icon-offset"]),"icon-anchor":new n4(eY.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new n3(eY.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new n3(eY.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new n3(eY.layout_symbol["text-rotation-alignment"]),"text-field":new n4(eY.layout_symbol["text-field"]),"text-font":new n4(eY.layout_symbol["text-font"]),"text-size":new n4(eY.layout_symbol["text-size"]),"text-max-width":new n4(eY.layout_symbol["text-max-width"]),"text-line-height":new n4(eY.layout_symbol["text-line-height"]),"text-letter-spacing":new n4(eY.layout_symbol["text-letter-spacing"]),"text-justify":new n4(eY.layout_symbol["text-justify"]),"text-radial-offset":new n4(eY.layout_symbol["text-radial-offset"]),"text-variable-anchor":new n3(eY.layout_symbol["text-variable-anchor"]),"text-anchor":new n4(eY.layout_symbol["text-anchor"]),"text-max-angle":new n3(eY.layout_symbol["text-max-angle"]),"text-writing-mode":new n3(eY.layout_symbol["text-writing-mode"]),"text-rotate":new n4(eY.layout_symbol["text-rotate"]),"text-padding":new n3(eY.layout_symbol["text-padding"]),"text-keep-upright":new n3(eY.layout_symbol["text-keep-upright"]),"text-transform":new n4(eY.layout_symbol["text-transform"]),"text-offset":new n4(eY.layout_symbol["text-offset"]),"text-allow-overlap":new n3(eY.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new n3(eY.layout_symbol["text-ignore-placement"]),"text-optional":new n3(eY.layout_symbol["text-optional"])});var cX={paint:new n6({"icon-opacity":new n4(eY.paint_symbol["icon-opacity"]),"icon-color":new n4(eY.paint_symbol["icon-color"]),"icon-halo-color":new n4(eY.paint_symbol["icon-halo-color"]),"icon-halo-width":new n4(eY.paint_symbol["icon-halo-width"]),"icon-halo-blur":new n4(eY.paint_symbol["icon-halo-blur"]),"icon-translate":new n3(eY.paint_symbol["icon-translate"]),"icon-translate-anchor":new n3(eY.paint_symbol["icon-translate-anchor"]),"text-opacity":new n4(eY.paint_symbol["text-opacity"]),"text-color":new n4(eY.paint_symbol["text-color"],{runtimeType:e6,getOverride:r=>r.textColor,hasOverride:r=>!!r.textColor}),"text-halo-color":new n4(eY.paint_symbol["text-halo-color"]),"text-halo-width":new n4(eY.paint_symbol["text-halo-width"]),"text-halo-blur":new n4(eY.paint_symbol["text-halo-blur"]),"text-translate":new n3(eY.paint_symbol["text-translate"]),"text-translate-anchor":new n3(eY.paint_symbol["text-translate-anchor"])}),layout:cH};class cY{constructor(r){this.type=r.property.overrides?r.property.overrides.runtimeType:e2,this.defaultValue=r}evaluate(r){if(r.formattedSection){let n=this.defaultValue.property.overrides;if(n&&n.hasOverride(r.formattedSection))return n.getOverride(r.formattedSection)}return r.feature&&r.featureState?this.defaultValue.evaluate(r.feature,r.featureState):this.defaultValue.property.specification.default}eachChild(r){this.defaultValue.isConstant()||r(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}nk(cY,"FormatSectionOverride",{omit:["defaultValue"]});class cK extends ol{constructor(r){super(r,cX)}recalculate(r,n){super.recalculate(r,n),"auto"===this.layout.get("icon-rotation-alignment")&&(this.layout._values["icon-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-rotation-alignment")&&(this.layout._values["text-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment"));let i=this.layout.get("text-writing-mode");if(i){let r=[];for(let n of i)0>r.indexOf(n)&&r.push(n);this.layout._values["text-writing-mode"]=r}else this.layout._values["text-writing-mode"]="point"===this.layout.get("symbol-placement")?["horizontal"]:["horizontal","vertical"];this._setPaintOverrides()}getValueAndResolveTokens(r,n,i,o){var a;let s=this.layout.get(r).evaluate(n,{},i,o),l=this._unevaluatedLayout._values[r];return l.isDataDriven()||rG(l.value)||!s?s:(a=n.properties,s.replace(/{([^{}]+)}/g,(r,n)=>n in a?String(a[n]):""))}createBucket(r){return new cW(r)}queryRadius(){return 0}queryIntersectsFeature(){return!1}_setPaintOverrides(){for(let r of cX.paint.overridableProperties){if(!cK.hasPaintOverride(this.layout,r))continue;let n=this.paint.get(r),i=new cY(n),o=new r$(i,n.property.specification),a=null;a="constant"===n.value.kind||"source"===n.value.kind?new rH("source",o):new rX("composite",o,n.value.zoomStops,n.value._interpolationType),this.paint._values[r]=new n1(n.property,a,n.parameters)}}_handleOverridablePaintPropertyUpdate(r,n,i){return!(!this.layout||n.isDataDriven()||i.isDataDriven())&&cK.hasPaintOverride(this.layout,r)}static hasPaintOverride(r,n){let i=r.get("text-field"),o=cX.paint.properties[n],a=!1,s=r=>{for(let n of r)if(o.overrides&&o.overrides.hasOverride(n))return void(a=!0)};if("constant"===i.value.kind&&i.value.value instanceof tv)s(i.value.value.sections);else if("source"===i.value.kind){let r=n=>{a||(n instanceof tS&&t_(n.value)===te?s(n.value.sections):n instanceof tC?s(n.sections):n.eachChild(r))},n=i.value;n._styleExpression&&r(n._styleExpression.expression)}return a}getProgramConfiguration(r){return new ot(this,r)}}var cJ={paint:new n6({"background-color":new n3(eY.paint_background["background-color"]),"background-pattern":new n3(eY.paint_background["background-pattern"]),"background-opacity":new n3(eY.paint_background["background-opacity"])})},cQ={paint:new n6({"raster-opacity":new n3(eY.paint_raster["raster-opacity"]),"raster-hue-rotate":new n3(eY.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new n3(eY.paint_raster["raster-brightness-min"]),"raster-brightness-max":new n3(eY.paint_raster["raster-brightness-max"]),"raster-saturation":new n3(eY.paint_raster["raster-saturation"]),"raster-contrast":new n3(eY.paint_raster["raster-contrast"]),"raster-resampling":new n3(eY.paint_raster["raster-resampling"]),"raster-fade-duration":new n3(eY.paint_raster["raster-fade-duration"])})};class c0 extends ol{constructor(r){super(r,{}),this.implementation=r}is3D(){return"3d"===this.implementation.renderingMode}hasOffscreenPass(){return void 0!==this.implementation.prerender}isLayerDraped(){return void 0!==this.implementation.renderToTile}shouldRedrape(){return!!this.implementation.shouldRerenderTiles&&this.implementation.shouldRerenderTiles()}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){}onAdd(r){this.implementation.onAdd&&this.implementation.onAdd(r,r.painter.context.gl)}onRemove(r){this.implementation.onRemove&&this.implementation.onRemove(r,r.painter.context.gl)}}var c1={paint:new n6({"sky-type":new n3(eY.paint_sky["sky-type"]),"sky-atmosphere-sun":new n3(eY.paint_sky["sky-atmosphere-sun"]),"sky-atmosphere-sun-intensity":new n3(eY.paint_sky["sky-atmosphere-sun-intensity"]),"sky-gradient-center":new n3(eY.paint_sky["sky-gradient-center"]),"sky-gradient-radius":new n3(eY.paint_sky["sky-gradient-radius"]),"sky-gradient":new n5(eY.paint_sky["sky-gradient"]),"sky-atmosphere-halo-color":new n3(eY.paint_sky["sky-atmosphere-halo-color"]),"sky-atmosphere-color":new n3(eY.paint_sky["sky-atmosphere-color"]),"sky-opacity":new n3(eY.paint_sky["sky-opacity"])})};function c2(r,n,i){let o=[0,0,1],a=o$([]);return oW(a,a,i?-(r*P)+Math.PI:r*P),oG(a,a,-(n*P)),oF(o,o,a),oD(o,o)}let c3={circle:class extends ol{constructor(r){super(r,aK)}createBucket(r){return new aL(r)}queryRadius(r){return aG("circle-radius",this,r)+aG("circle-stroke-width",this,r)+aW(this.paint.get("circle-translate"))}
170queryIntersectsFeature(r,n,i,o,a,s,l,c){let u=aX(this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),s.angle,r.pixelToTileUnitsFactor),d=this.paint.get("circle-radius").evaluate(n,i)+this.paint.get("circle-stroke-width").evaluate(n,i);return aJ(r,o,s,l,c,"map"===this.paint.get("circle-pitch-alignment"),"map"===this.paint.get("circle-pitch-scale"),u,d)}getProgramIds(){return["circle"]}getProgramConfiguration(r){return new ot(this,r)}},heatmap:class extends ol{createBucket(r){return new a1(r)}constructor(r){super(r,a8),this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(r){"heatmap-color"===r&&this._updateColorRamp()}_updateColorRamp(){this.colorRamp=a9({expression:this._transitionablePaint._values["heatmap-color"].value.expression,evaluationKey:"heatmapDensity",image:this.colorRamp}),this.colorRampTexture=null}resize(){this.heatmapFbo&&(this.heatmapFbo.destroy(),this.heatmapFbo=null)}queryRadius(r){return aG("heatmap-radius",this,r)}queryIntersectsFeature(r,n,i,o,a,s,l,c){let u=this.paint.get("heatmap-radius").evaluate(n,i);return aJ(r,o,s,l,c,!0,!0,new C(0,0),u)}hasOffscreenPass(){return 0!==this.paint.get("heatmap-opacity")&&"none"!==this.visibility}getProgramIds(){return["heatmap","heatmapTexture"]}getProgramConfiguration(r){return new ot(this,r)}},hillshade:class extends ol{constructor(r){super(r,a7)}hasOffscreenPass(){return 0!==this.paint.get("hillshade-exaggeration")&&"none"!==this.visibility}getProgramIds(){return["hillshade","hillshadePrepare"]}},fill:class extends ol{constructor(r){super(r,sO)}getProgramIds(){let r=this.paint.get("fill-pattern"),n=r&&r.constantOr(1),i=[n?"fillPattern":"fill"];return this.paint.get("fill-antialias")&&i.push(n&&!this.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline"),i}getProgramConfiguration(r){return new ot(this,r)}recalculate(r,n){super.recalculate(r,n);let i=this.paint._values["fill-outline-color"];"constant"===i.value.kind&&void 0===i.value.value&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])}createBucket(r){return new sC(r)}queryRadius(){return aW(this.paint.get("fill-translate"))}queryIntersectsFeature(r,n,i,o,a,s){return!r.queryGeometry.isAboveHorizon&&aB(aH(r.tilespaceGeometry,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),s.angle,r.pixelToTileUnitsFactor),o)}isTileClipped(){return!0}},"fill-extrusion":class extends ol{constructor(r){super(r,s2)}createBucket(r){return new sW(r)}queryRadius(){return aW(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}getProgramIds(){return[this.paint.get("fill-extrusion-pattern").constantOr(1)?"fillExtrusionPattern":"fillExtrusion"]}getProgramConfiguration(r){return new ot(this,r)}queryIntersectsFeature(r,n,i,o,a,s,l,c,u){var d,h,p,f;let m=aX(this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),s.angle,r.pixelToTileUnitsFactor),g=this.paint.get("fill-extrusion-height").evaluate(n,i),v=this.paint.get("fill-extrusion-base").evaluate(n,i),y=[0,0],b=c&&s.elevation,x=s.elevation?s.elevation.exaggeration():1,_=r.tile.getBucket(this);if(b&&_ instanceof sW){let r=_.centroidVertexArray,n=u+1;n<r.length&&(y[0]=r.geta_centroid_pos0(n),y[1]=r.geta_centroid_pos1(n))}if(0===y[0]&&1===y[1])return!1;"globe"===s.projection.name&&(o=s0([o],[new C(0,0),new C(8192,8192)],r.tileID.canonical).map(r=>r.polygon).flat());let[w,S]=(d=o,h=b?c:null,p=s.center.lat,f=r.tileID.canonical,"globe"===s.projection.name?function(r,n,i,o,a,s,l,c,u,d,h){let p=[],f=[],m=r.projection.upVectorScale(h,r.center.lat,r.worldSize).metersToTile,g=[0,0,0,1],v=[0,0,0,1],y=(r,n,i,o)=>{r[0]=n,r[1]=i,r[2]=o,r[3]=1},b=sQ();for(let x of(i>0&&(i+=b),o+=b,n)){let n=[],b=[];for(let p of x){let f=p.x+a.x,x=p.y+a.y,_=r.projection.projectTilePoint(f,x,h),w=r.projection.upVector(h,p.x,p.y),S=i,T=o;if(l){let r=lt(f,x,i,o,l,c,u,d);S+=r.base,T+=r.top}0!==i?y(g,_.x+w[0]*m*S,_.y+w[1]*m*S,_.z+w[2]*m*S):y(g,_.x,_.y,_.z),y(v,_.x+w[0]*m*T,_.y+w[1]*m*T,_.z+w[2]*m*T),oB(g,g,s),oB(v,v,s),n.push(new s9(g[0],g[1],g[2])),b.push(new s9(v[0],v[1],v[2]))}p.push(n),f.push(b)}return[p,f]}(s,d,v,g,m,l,h,y,x,p,f):h?function(r,n,i,o,a,s,l,c,u){let d=[],h=[],p=[0,0,0,1];for(let f of r){let r=[],m=[];for(let d of f){let h=d.x+o.x,f=d.y+o.y,g=lt(h,f,n,i,s,l,c,u);p[0]=h,p[1]=f,p[2]=g.base,p[3]=1,oV(p,p,a),p[3]=Math.max(p[3],1e-5);let v=new s9(p[0]/p[3],p[1]/p[3],p[2]/p[3]);p[0]=h,p[1]=f,p[2]=g.top,p[3]=1,oV(p,p,a),p[3]=Math.max(p[3],1e-5);let y=new s9(p[0]/p[3],p[1]/p[3],p[2]/p[3]);r.push(v),m.push(y)}d.push(r),h.push(m)}return[d,h]}(d,v,g,m,l,h,y,x,p):function(r,n,i,o,a){let s=[],l=[],c=a[8]*n,u=a[9]*n,d=a[10]*n,h=a[11]*n,p=a[8]*i,f=a[9]*i,m=a[10]*i,g=a[11]*i;for(let n of r){let r=[],i=[];for(let s of n){let n=s.x+o.x,l=s.y+o.y,v=a[0]*n+a[4]*l+a[12],y=a[1]*n+a[5]*l+a[13],b=a[2]*n+a[6]*l+a[14],x=a[3]*n+a[7]*l+a[15],_=v+c,w=y+u,S=b+d,T=Math.max(x+h,1e-5),E=v+p,k=y+f,C=b+m,P=Math.max(x+g,1e-5);r.push(new s9(_/T,w/T,S/T)),i.push(new s9(E/P,k/P,C/P))}s.push(r),l.push(i)}return[s,l]}(d,v,g,m,l)),T=r.queryGeometry;return function(r,n,i){let o=1/0;aB(i,n)&&(o=le(i,n[0]));for(let a=0;a<n.length;a++){let s=n[a],l=r[a];for(let r=0;r<s.length-1;r++){let n=s[r],a=[n,s[r+1],l[r+1],l[r],n];az(i,a)&&(o=Math.min(o,le(i,a)))}}return o!==1/0&&o}(w,S,T.isPointQuery()?T.screenBounds:T.screenGeometry)}},line:class extends ol{constructor(r){super(r,lu),this.gradientVersion=0}_handleSpecialPaintPropertyUpdate(r){if("line-gradient"===r){let r=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=r._styleExpression&&r._styleExpression.expression instanceof tQ,this.gradientVersion=(this.gradientVersion+1)%Number.MAX_SAFE_INTEGER}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}widthExpression(){return this._transitionablePaint._values["line-width"].value.expression}recalculate(r,n){super.recalculate(r,n),this.paint._values["line-floorwidth"]=ld.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,r)}createBucket(r){return new ll(r)}getProgramIds(){return[this.paint.get("line-pattern").constantOr(1)?"linePattern":"line"]}getProgramConfiguration(r){return new ot(this,r)}queryRadius(r){var n,i;let o=(n=aG("line-width",this,r),(i=aG("line-gap-width",this,r))>0?i+2*n:n),a=aG("line-offset",this,r);return o/2+Math.abs(a)+aW(this.paint.get("line-translate"))}
170queryIntersectsFeature(r,n,i,o,a,s){var l,c;if(r.queryGeometry.isAboveHorizon)return!1;let u=aH(r.tilespaceGeometry,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),s.angle,r.pixelToTileUnitsFactor),d=r.pixelToTileUnitsFactor/2*(l=this.paint.get("line-width").evaluate(n,i),(c=this.paint.get("line-gap-width").evaluate(n,i))>0?c+2*l:l),h=this.paint.get("line-offset").evaluate(n,i);return h&&(o=function(r,n){let i=[],o=new C(0,0);for(let a=0;a<r.length;a++){let s=r[a],l=[];for(let r=0;r<s.length;r++){let i=s[r],a=s[r+1],c=0===r?o:i.sub(s[r-1])._unit()._perp(),u=r===s.length-1?o:a.sub(i)._unit()._perp(),d=c._add(u)._unit();d._mult(1/(d.x*u.x+d.y*u.y)),l.push(d._mult(n)._add(i))}i.push(l)}return i}(o,h*r.pixelToTileUnitsFactor)),function(r,n,i){for(let o=0;o<n.length;o++){let a=n[o];if(r.length>=3){for(let n=0;n<a.length;n++)if(aq(r,a[n]))return!0}if(function(r,n,i){if(r.length>1){if(aF(r,n))return!0;for(let o=0;o<n.length;o++)if(aN(n[o],r,i))return!0}for(let o=0;o<r.length;o++)if(aN(r[o],n,i))return!0;return!1}(r,a,i))return!0}return!1}(u,o,d)}isTileClipped(){return!0}},symbol:cK,background:class extends ol{constructor(r){super(r,cJ)}getProgramIds(){return[this.paint.get("background-pattern")?"backgroundPattern":"background"]}},raster:class extends ol{constructor(r){super(r,cQ)}getProgramIds(){return["raster"]}},sky:class extends ol{constructor(r){super(r,c1),this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(r){"sky-gradient"===r?this._updateColorRamp():"sky-atmosphere-sun"!==r&&"sky-atmosphere-halo-color"!==r&&"sky-atmosphere-color"!==r&&"sky-atmosphere-sun-intensity"!==r||(this._skyboxInvalidated=!0)}_updateColorRamp(){this.colorRamp=a9({expression:this._transitionablePaint._values["sky-gradient"].value.expression,evaluationKey:"skyRadialProgress"}),this.colorRampTexture&&(this.colorRampTexture.destroy(),this.colorRampTexture=null)}needsSkyboxCapture(r){if(this._skyboxInvalidated||!this.skyboxTexture||!this.skyboxGeometry)return!0;if(!this.paint.get("sky-atmosphere-sun")){let n=r.style.light.properties.get("position");return this._lightPosition.azimuthal!==n.azimuthal||this._lightPosition.polar!==n.polar}return!1}getCenter(r,n){if("atmosphere"===this.paint.get("sky-type")){let i=this.paint.get("sky-atmosphere-sun"),o=!i,a=r.style.light,s=a.properties.get("position");return o&&"viewport"===a.properties.get("anchor")&&K("The sun direction is attached to a light with viewport anchor, lighting may behave unexpectedly."),o?c2(s.azimuthal,90-s.polar,n):c2(i[0],90-i[1],n)}let i=this.paint.get("sky-gradient-center");return c2(i[0],90-i[1],n)}is3D(){return!1}isSky(){return!0}markSkyboxValid(r){this._skyboxInvalidated=!1,this._lightPosition=r.style.light.properties.get("position")}hasOffscreenPass(){return!0}getProgramIds(){let r=this.paint.get("sky-type");return"atmosphere"===r?["skyboxCapture","skybox"]:"gradient"===r?["skyboxGradient"]:null}}};class c4{constructor(r,n,i,o){this.context=r,this.format=i,this.texture=r.gl.createTexture(),this.update(n,o)}update(r,n,i){let{width:o,height:a}=r,{context:s}=this,{gl:l}=s,{HTMLImageElement:c,HTMLCanvasElement:u,HTMLVideoElement:d,ImageData:h,ImageBitmap:p}=f;if(l.bindTexture(l.TEXTURE_2D,this.texture),s.pixelStoreUnpackFlipY.set(!1),s.pixelStoreUnpack.set(1),s.pixelStoreUnpackPremultiplyAlpha.set(this.format===l.RGBA&&(!n||!1!==n.premultiply)),i||this.size&&this.size[0]===o&&this.size[1]===a){let{x:n,y:s}=i||{x:0,y:0};r instanceof c||r instanceof u||r instanceof d||r instanceof h||p&&r instanceof p?l.texSubImage2D(l.TEXTURE_2D,0,n,s,l.RGBA,l.UNSIGNED_BYTE,r):l.texSubImage2D(l.TEXTURE_2D,0,n,s,o,a,l.RGBA,l.UNSIGNED_BYTE,r.data)}else this.size=[o,a],r instanceof c||r instanceof u||r instanceof d||r instanceof h||p&&r instanceof p?l.texImage2D(l.TEXTURE_2D,0,this.format,this.format,l.UNSIGNED_BYTE,r):l.texImage2D(l.TEXTURE_2D,0,this.format,o,a,0,this.format,l.UNSIGNED_BYTE,r.data);this.useMipmap=Boolean(n&&n.useMipmap&&this.isSizePowerOfTwo()),this.useMipmap&&l.generateMipmap(l.TEXTURE_2D)}bind(r,n){let{context:i}=this,{gl:o}=i;o.bindTexture(o.TEXTURE_2D,this.texture),r!==this.filter&&(o.texParameteri(o.TEXTURE_2D,o.TEXTURE_MAG_FILTER,r),o.texParameteri(o.TEXTURE_2D,o.TEXTURE_MIN_FILTER,this.useMipmap?r===o.NEAREST?o.NEAREST_MIPMAP_NEAREST:o.LINEAR_MIPMAP_NEAREST:r),this.filter=r),n!==this.wrap&&(o.texParameteri(o.TEXTURE_2D,o.TEXTURE_WRAP_S,n),o.texParameteri(o.TEXTURE_2D,o.TEXTURE_WRAP_T,n),this.wrap=n)}isSizePowerOfTwo(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0}destroy(){let{gl:r}=this.context;r.deleteTexture(this.texture),this.texture=null}}class c5{constructor(r){this._callback=r,this._triggered=!1,"undefined"!=typeof MessageChannel&&(this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._callback()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout(()=>{this._triggered=!1,this._callback()},0))}remove(){this._channel=void 0,this._callback=()=>{}}}class c6{constructor(){this.tasks={},this.taskQueue=[],$(["process"],this),this.invoker=new c5(this.process),this.nextId=0}add(r,n){let i=this.nextId++,o=function({type:r,isSymbolTile:n,zoom:i}){return i=i||0,"message"===r?0:"maybePrepare"!==r||n?"parseTile"!==r||n?"parseTile"===r&&n?300-i:"maybePrepare"===r&&n?400-i:500:200-i:100-i}(n);return 0===o?(Q(),r(),{cancel:()=>{}}):(this.tasks[i]={fn:r,metadata:n,priority:o,id:i},this.taskQueue.push(i),this.invoker.trigger(),{cancel:()=>{delete this.tasks[i]}})}process(){Q();{if(this.taskQueue=this.taskQueue.filter(r=>!!this.tasks[r]),!this.taskQueue.length)return;let r=this.pick();if(null===r)return;let n=this.tasks[r];if(delete this.tasks[r],this.taskQueue.length&&this.invoker.trigger(),!n)return;n.fn()}}pick(){let r=null,n=1/0;for(let i=0;i<this.taskQueue.length;i++){let o=this.tasks[this.taskQueue[i]];o.priority<n&&(n=o.priority,r=i)}if(null===r)return null;let i=this.taskQueue[r];return this.taskQueue.splice(r,1),i}remove(){this.invoker.remove()}}class c8{constructor(r){this._stringToNumber={},this._numberToString=[];for(let n=0;n<r.length;n++){let i=r[n];this._stringToNumber[i]=n,this._numberToString[n]=i}}encode(r){return this._stringToNumber[r]}decode(r){return this._numberToString[r]}}let c9=["tile","layer","source","sourceLayer","state"];class c7{constructor(r,n,i,o,a){this.type="Feature",this._vectorTileFeature=r,this._z=n,this._x=i,this._y=o,this.properties=r.properties,this.id=a}get geometry(){return void 0===this._geometry&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._x,this._y,this._z).geometry),this._geometry}set geometry(r){this._geometry=r}toJSON(){let r={type:"Feature",state:void 0,geometry:this.geometry,properties:this.properties};for(let n of(void 0!==this.id&&(r.id=this.id),c9))void 0!==this[n]&&(r[n]=this[n]);return r}}let ue=new Uint16Array(8184);for(let r=0;r<2046;r++){let n=r+2,i=0,o=0,a=0,s=0,l=0,c=0;for(1&n?a=s=l=32:i=o=c=32;(n>>=1)>1;){let r=i+a>>1,u=o+s>>1;1&n?(a=i,s=o,i=l,o=c):(i=a,o=s,a=l,s=c),l=r,c=u}let u=4*r;ue[u+0]=i,ue[u+1]=o,ue[u+2]=a,ue[u+3]=s}
170let ut=new Uint16Array(2178),ur=new Uint8Array(1089),un=new Uint16Array(1089);function ui(r){return 0===r?-.03125:32===r?.03125:0}var uo=it([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);let ua={type:2,extent:8192,loadGeometry:()=>[[new C(0,0),new C(8193,0),new C(8193,8193),new C(0,8193),new C(0,0)]]};class us{constructor(r,n,i,o,a){this.tileID=r,this.uid=N(),this.uses=0,this.tileSize=n,this.tileZoom=i,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.isRaster=a,this.expiredRequestCount=0,this.state="loading",o&&o.transform&&(this.projection=o.transform.projection)}registerFadeDuration(r){let n=r+this.timeAdded;n<eq.now()||this.fadeEndTime&&n<this.fadeEndTime||(this.fadeEndTime=n)}wasRequested(){return"errored"===this.state||"loaded"===this.state||"reloading"===this.state}get tileTransform(){return this._tileTransform||(this._tileTransform=cw(this.tileID.canonical,this.projection)),this._tileTransform}loadVectorData(r,n,i){if(this.unloadVectorData(),this.state="loaded",r){for(let o in r.featureIndex&&(this.latestFeatureIndex=r.featureIndex,r.rawTileData?(this.latestRawTileData=r.rawTileData,this.latestFeatureIndex.rawTileData=r.rawTileData):this.latestRawTileData&&(this.latestFeatureIndex.rawTileData=this.latestRawTileData)),this.collisionBoxArray=r.collisionBoxArray,this.buckets=function(r,n){let i={};if(!n)return i;for(let o of r){let r=o.layerIds.map(r=>n.getLayer(r)).filter(Boolean);if(0!==r.length)for(let n of(o.layers=r,o.stateDependentLayerIds&&(o.stateDependentLayers=o.stateDependentLayerIds.map(n=>r.filter(r=>r.id===n)[0])),r))i[n.id]=o}return i}(r.buckets,n.style),this.hasSymbolBuckets=!1,this.buckets){let r=this.buckets[o];if(r instanceof cW){if(this.hasSymbolBuckets=!0,!i)break;r.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(let r in this.buckets){let n=this.buckets[r];if(n instanceof cW&&n.hasRTLText){this.hasRTLText=!0,nW.isLoading()||nW.isLoaded()||"deferred"!==n$()||nG();break}}for(let r in this.queryPadding=0,this.buckets){let i=this.buckets[r];this.queryPadding=Math.max(this.queryPadding,n.style.getLayer(r).queryRadius(i))}r.imageAtlas&&(this.imageAtlas=r.imageAtlas),r.glyphAtlasImage&&(this.glyphAtlasImage=r.glyphAtlasImage),r.lineAtlas&&(this.lineAtlas=r.lineAtlas)}else this.collisionBoxArray=new iA}unloadVectorData(){if(this.hasData()){for(let r in this.buckets)this.buckets[r].destroy();this.buckets={},this.imageAtlas&&(this.imageAtlas=null),this.lineAtlas&&(this.lineAtlas=null),this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.lineAtlasTexture&&this.lineAtlasTexture.destroy(),this._tileBoundsBuffer&&(this._tileBoundsBuffer.destroy(),this._tileBoundsIndexBuffer.destroy(),this._tileBoundsSegments.destroy(),this._tileBoundsBuffer=null),this._tileDebugBuffer&&(this._tileDebugBuffer.destroy(),this._tileDebugSegments.destroy(),this._tileDebugBuffer=null),this._tileDebugIndexBuffer&&(this._tileDebugIndexBuffer.destroy(),this._tileDebugIndexBuffer=null),this._globeTileDebugBorderBuffer&&(this._globeTileDebugBorderBuffer.destroy(),this._globeTileDebugBorderBuffer=null),this._tileDebugTextBuffer&&(this._tileDebugTextBuffer.destroy(),this._tileDebugTextSegments.destroy(),this._tileDebugTextIndexBuffer.destroy(),this._tileDebugTextBuffer=null),this._globeTileDebugTextBuffer&&(this._globeTileDebugTextBuffer.destroy(),this._globeTileDebugTextBuffer=null),this.latestFeatureIndex=null,this.state="unloaded"}}getBucket(r){return this.buckets[r.id]}upload(r){for(let n in this.buckets){let i=this.buckets[n];i.uploadPending()&&i.upload(r)}let n=r.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new c4(r,this.imageAtlas.image,n.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new c4(r,this.glyphAtlasImage,n.ALPHA),this.glyphAtlasImage=null),this.lineAtlas&&!this.lineAtlas.uploaded&&(this.lineAtlasTexture=new c4(r,this.lineAtlas.image,n.ALPHA),this.lineAtlas.uploaded=!0)}prepare(r){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(r,this.imageAtlasTexture)}queryRenderedFeatures(r,n,i,o,a,s,l,c){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({tileResult:o,pixelPosMatrix:l,transform:s,params:a,tileTransform:this.tileTransform},r,n,i):{}}querySourceFeatures(r,n){let i=this.latestFeatureIndex;if(!i||!i.rawTileData)return;let o=i.loadVTLayers(),a=n?n.sourceLayer:"",s=o._geojsonTileLayer||o[a];if(!s)return;let l=r6(n&&n.filter),{z:c,x:u,y:d}=this.tileID.canonical,h={z:c,x:u,y:d};for(let n=0;n<s.length;n++){let o=s.feature(n);if(l.needGeometry){let r=aZ(o,!0);
170if(!l.filter(new nH(this.tileID.overscaledZ),r,this.tileID.canonical))continue}else if(!l.filter(new nH(this.tileID.overscaledZ),o))continue;let p=i.getId(o,a),f=new c7(o,c,u,d,p);f.tile=h,r.push(f)}}hasData(){return"loaded"===this.state||"reloading"===this.state||"expired"===this.state}patternsLoaded(){return!!this.imageAtlas&&!!Object.keys(this.imageAtlas.patternPositions).length}setExpiryData(r){let n=this.expirationTime;if(r.cacheControl){let n=ee(r.cacheControl);n["max-age"]&&(this.expirationTime=Date.now()+1e3*n["max-age"])}else r.expires&&(this.expirationTime=new Date(r.expires).getTime());if(this.expirationTime){let r=Date.now(),i=!1;if(this.expirationTime>r)i=!1;else if(n){if(this.expirationTime<n)i=!0;else{let o=this.expirationTime-n;o?this.expirationTime=r+Math.max(o,3e4):i=!0}}else i=!0;i?(this.expiredRequestCount++,this.state="expired"):this.expiredRequestCount=0}}getExpiryTimeout(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1<<Math.min(this.expiredRequestCount-1,31)):Math.min(this.expirationTime-(new Date).getTime(),2147483647)}setFeatureState(r,n){if(!this.latestFeatureIndex||!this.latestFeatureIndex.rawTileData||0===Object.keys(r).length||!n)return;let i=this.latestFeatureIndex.loadVTLayers(),o=n.style.listImages();for(let a in this.buckets){if(!n.style.hasLayer(a))continue;let s=this.buckets[a],l=s.layers[0].sourceLayer||"_geojsonTileLayer",c=i[l],u=r[l];if(!c||!u||0===Object.keys(u).length)continue;if(s.update(u,c,o,this.imageAtlas&&this.imageAtlas.patternPositions||{}),s instanceof ll||s instanceof sC){let r=n.style._getSourceCache(s.layers[0].source);n._terrain&&n._terrain.enabled&&r&&s.programConfigurations.needsUpload&&n._terrain._clearRenderCacheForTile(r.id,this.tileID)}let d=n&&n.style&&n.style.getLayer(a);d&&(this.queryPadding=Math.max(this.queryPadding,d.queryRadius(s)))}}holdingForFade(){return void 0!==this.symbolFadeHoldUntil}symbolFadeFinished(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil<eq.now()}clearFadeHold(){this.symbolFadeHoldUntil=void 0}setHoldDuration(r){this.symbolFadeHoldUntil=eq.now()+r}setTexture(r,n){let i=n.context,o=i.gl;this.texture=this.texture||n.getTileTexture(r.width),this.texture?this.texture.update(r,{useMipmap:!0}):(this.texture=new c4(i,r,o.RGBA,{useMipmap:!0}),this.texture.bind(o.LINEAR,o.CLAMP_TO_EDGE))}setDependencies(r,n){let i={};for(let r of n)i[r]=!0;this.dependencies[r]=i}hasDependency(r,n){for(let i of r){let r=this.dependencies[i];if(r){for(let i of n)if(r[i])return!0}}return!1}clearQueryDebugViz(){}_makeDebugTileBoundsBuffers(r,n){if(!n||"mercator"===n.name||this._tileDebugBuffer)return;let i=aI(ua,this.tileID.canonical,this.tileTransform)[0],o=new ii,a=new iP;for(let r=0;r<i.length;r++){let{x:n,y:s}=i[r];o.emplaceBack(n,s),a.emplaceBack(r)}a.emplaceBack(0),this._tileDebugIndexBuffer=r.createIndexBuffer(a),this._tileDebugBuffer=r.createVertexBuffer(o,oK.members),this._tileDebugSegments=od.simpleSegment(0,0,o.length,a.length)}_makeTileBoundsBuffers(r,n){let i,o;if(this._tileBoundsBuffer||!n||"mercator"===n.name)return;let a=aI(ua,this.tileID.canonical,this.tileTransform)[0];if(this.isRaster){let r=function(r,n){let i=cw(r,n),o=Math.pow(2,r.z);for(let a=0;a<33;a++)for(let s=0;s<33;s++){let l=aC((r.x+(s+ui(s))/32)/o),c=aP((r.y+(a+ui(a))/32)/o),u=n.project(l,c),d=33*a+s;ut[2*d+0]=Math.round((u.x*i.scale-i.x)*8192),ut[2*d+1]=Math.round((u.y*i.scale-i.y)*8192)}ur.fill(0),un.fill(0);for(let r=2045;r>=0;r--){let n=4*r,i=ue[n+0],o=ue[n+1],a=ue[n+2],s=ue[n+3],l=i+a>>1,c=o+s>>1,u=l+c-o,d=c+i-l,h=33*o+i,p=33*s+a,f=33*c+l,m=Math.hypot((ut[2*h+0]+ut[2*p+0])/2-ut[2*f+0],(ut[2*h+1]+ut[2*p+1])/2-ut[2*f+1])>=16;ur[f]=ur[f]||(m?1:0),r<1022&&(ur[f]=ur[f]||ur[(o+d>>1)*33+(i+u>>1)]||ur[(s+d>>1)*33+(a+u>>1)])}let a=new ia,s=new i_,l=0;function c(r,n){let i=33*n+r;return 0===un[i]&&(a.emplaceBack(ut[2*i+0],ut[2*i+1],8192*r/32,8192*n/32),un[i]=++l),un[i]-1}function u(r,n,i,o,a,l){let d=r+i>>1,h=n+o>>1;if(Math.abs(r-a)+Math.abs(n-l)>1&&ur[33*h+d])u(a,l,r,n,d,h),u(i,o,a,l,d,h);else{let u=c(r,n),d=c(i,o),h=c(a,l);s.emplaceBack(u,d,h)}}return u(0,0,32,32,32,0),u(32,32,0,0,0,32),{vertices:a,indices:s}}(this.tileID.canonical,n);i=r.vertices,o=r.indices}else{for(let{x:r,y:n}of(i=new ia,o=new i_,a))i.emplaceBack(r,n,0,0);let r=sx(i.int16,void 0,4);for(let n=0;n<r.length;n+=3)o.emplaceBack(r[n],r[n+1],r[n+2])}this._tileBoundsBuffer=r.createVertexBuffer(i,uo.members),this._tileBoundsIndexBuffer=r.createIndexBuffer(o),this._tileBoundsSegments=od.simpleSegment(0,0,i.length,o.length)}_makeGlobeTileDebugBuffers(r,n){let i;let o=n.projection;if(!o||"globe"!==o.name||n.freezeTileCoverage)return;let a=this.tileID.canonical,s=ad(ar(a,n)),l=af(n.zoom);l>0&&(i=ov(new Float64Array(16),n.globeMatrix)),this._makeGlobeTileDebugBorderBuffer(r,a,n,s,i,l),this._makeGlobeTileDebugTextBuffer(r,a,n,s,i,l)}_globePoint(r,n,i,o,a,s,l){let c=al(r,n,i);if(s){let a=1<<i.z,u=aE(o.center.lng),d=ak(o.center.lat),h=(i.x+.5)/a-u,p=0;h>.5?p=-1:h<-.5&&(p=1);let f=(r/8192+i.x)/a+p,m=(n/8192+i.y)/a;
170f=(f-u)*o._pixelsPerMercatorPixel+u,m=(m-d)*o._pixelsPerMercatorPixel+d;let g=[f*o.worldSize,m*o.worldSize,0];oB(g,g,s),c=at(c,g,l)}return oB(c,c,a)}_makeGlobeTileDebugBorderBuffer(r,n,i,o,a,s){let l=new ii,c=new iP,u=new io,d=(r,d,h,p,f)=>{let m=(h-r)/(f-1),g=(p-d)/(f-1),v=l.length;for(let h=0;h<f;h++){let p=r+h*m,f=d+h*g;l.emplaceBack(p,f);let y=this._globePoint(p,f,n,i,o,a,s);u.emplaceBack(y[0],y[1],y[2]),c.emplaceBack(v+h)}};d(0,0,8192,0,16),d(8192,0,8192,8192,16),d(8192,8192,0,8192,16),d(0,8192,0,0,16),this._tileDebugIndexBuffer=r.createIndexBuffer(c),this._tileDebugBuffer=r.createVertexBuffer(l,oK.members),this._globeTileDebugBorderBuffer=r.createVertexBuffer(u,oY.members),this._tileDebugSegments=od.simpleSegment(0,0,l.length,c.length)}_makeGlobeTileDebugTextBuffer(r,n,i,o,a,s){let l=new ii,c=new i_,u=new io;c.reserve(32),l.reserve(25),u.reserve(25);for(let r=0;r<25;r++){let c=2048*r;for(let r=0;r<25;r++){let d=2048*r;l.emplaceBack(d,c);let h=this._globePoint(d,c,n,i,o,a,s);u.emplaceBack(h[0],h[1],h[2])}}for(let r=0;r<4;r++)for(let n=0;n<4;n++){let i=25*r+n,o=25*r+(n+1),a=25*(r+1)+n,s=25*(r+1)+(n+1);c.emplaceBack(i,o,a),c.emplaceBack(a,o,s)}this._tileDebugTextIndexBuffer=r.createIndexBuffer(c),this._tileDebugTextBuffer=r.createVertexBuffer(l,oK.members),this._globeTileDebugTextBuffer=r.createVertexBuffer(u,oY.members),this._tileDebugTextSegments=od.simpleSegment(0,0,25,32)}}class ul{constructor(){this.state={},this.stateChanges={},this.deletedStates={}}updateState(r,n,i){let o=String(n);if(this.stateChanges[r]=this.stateChanges[r]||{},this.stateChanges[r][o]=this.stateChanges[r][o]||{},B(this.stateChanges[r][o],i),null===this.deletedStates[r])for(let n in this.deletedStates[r]={},this.state[r])n!==o&&(this.deletedStates[r][n]=null);else if(this.deletedStates[r]&&null===this.deletedStates[r][o])for(let n in this.deletedStates[r][o]={},this.state[r][o])i[n]||(this.deletedStates[r][o][n]=null);else for(let n in i)this.deletedStates[r]&&this.deletedStates[r][o]&&null===this.deletedStates[r][o][n]&&delete this.deletedStates[r][o][n]}removeFeatureState(r,n,i){if(null===this.deletedStates[r])return;let o=String(n);if(this.deletedStates[r]=this.deletedStates[r]||{},i&&void 0!==n)null!==this.deletedStates[r][o]&&(this.deletedStates[r][o]=this.deletedStates[r][o]||{},this.deletedStates[r][o][i]=null);else if(void 0!==n){if(this.stateChanges[r]&&this.stateChanges[r][o])for(i in this.deletedStates[r][o]={},this.stateChanges[r][o])this.deletedStates[r][o][i]=null;else this.deletedStates[r][o]=null}else this.deletedStates[r]=null}getState(r,n){let i=String(n),o=B({},(this.state[r]||{})[i],(this.stateChanges[r]||{})[i]);if(null===this.deletedStates[r])return{};if(this.deletedStates[r]){let i=this.deletedStates[r][n];if(null===i)return{};for(let r in i)delete o[r]}return o}initializeTileState(r,n){r.setFeatureState(this.state,n)}coalesceChanges(r,n){let i={};for(let r in this.stateChanges){this.state[r]=this.state[r]||{};let n={};for(let i in this.stateChanges[r])this.state[r][i]||(this.state[r][i]={}),B(this.state[r][i],this.stateChanges[r][i]),n[i]=this.state[r][i];i[r]=n}for(let r in this.deletedStates){this.state[r]=this.state[r]||{};let n={};if(null===this.deletedStates[r])for(let i in this.state[r])n[i]={},this.state[r][i]={};else for(let i in this.deletedStates[r]){if(null===this.deletedStates[r][i])this.state[r][i]={};else if(this.state[r][i])for(let n of Object.keys(this.deletedStates[r][i]))delete this.state[r][i][n];n[i]=this.state[r][i]}i[r]=i[r]||{},B(i[r],n)}if(this.stateChanges={},this.deletedStates={},0!==Object.keys(i).length)for(let o in r)r[o].setFeatureState(i,n)}}class uc{constructor(r){this.size=r,this.minimums=[],this.maximums=[],this.leaves=[]}getElevation(r,n){let i=this.toIdx(r,n);return{min:this.minimums[i],max:this.maximums[i]}}isLeaf(r,n){return this.leaves[this.toIdx(r,n)]}toIdx(r,n){return n*this.size+r}}function uu(r,n,i,o){let a=0,s=Number.MAX_VALUE;for(let l=0;l<3;l++)if(1e-15>Math.abs(o[l])){if(i[l]<r[l]||i[l]>n[l])return null}else{let c=1/o[l],u=(r[l]-i[l])*c,d=(n[l]-i[l])*c;if(u>d){let r=u;u=d,d=r}if(u>a&&(a=u),d<s&&(s=d),a>s)return null}return a}function ud(r,n,i,o,a,s,l,c,u,d,h){let p=o-r,f=a-n,m=s-i,g=l-r,v=c-n,y=u-i,b=h[1]
170*y-h[2]*v,x=h[2]*g-h[0]*y,_=h[0]*v-h[1]*g,w=p*b+f*x+m*_;if(1e-15>Math.abs(w))return null;let S=1/w,T=d[0]-r,E=d[1]-n,k=d[2]-i,C=(T*b+E*x+k*_)*S;if(C<0||C>1)return null;let P=E*m-k*f,O=k*p-T*m,j=T*f-E*p,A=(h[0]*P+h[1]*O+h[2]*j)*S;return A<0||C+A>1?null:(g*P+v*O+y*j)*S}function uh(r,n,i,o,a,s,l,c,u){let d=1<<i,h=s-o,p=l-a;c[0]=(r+0)/d*h+o,c[1]=(n+0)/d*p+a,u[0]=(r+1)/d*h+o,u[1]=(n+1)/d*p+a}class up{constructor(r){if(this.maximums=[],this.minimums=[],this.leaves=[],this.childOffsets=[],this.nodeCount=0,this.dem=r,this._siblingOffset=[[0,0],[1,0],[0,1],[1,1]],!this.dem)return;let n=function(r){let n=Math.ceil(Math.log2(r.dim/8)),i=[],o=Math.ceil(Math.pow(2,n)),a=1/o,s=(r,n,i,o,a)=>{let s=o?1:0;a[0]=r*i,a[1]=n*i,a[2]=(r+1)*i-s,a[3]=(n+1)*i-s},l=new uc(o),c=[];for(let n=0;n<o*o;n++){s(n%o,Math.floor(n/o),a,!1,c);let i=um(c[0],c[1],r),u=um(c[2],c[1],r),d=um(c[2],c[3],r),h=um(c[0],c[3],r);l.minimums.push(Math.min(i,u,d,h)),l.maximums.push(Math.max(i,u,d,h)),l.leaves.push(1)}for(i.push(l),o/=2;o>=1;o/=2){let r=i[i.length-1];l=new uc(o);for(let n=0;n<o*o;n++){s(n%o,Math.floor(n/o),2,!0,c);let i=r.getElevation(c[0],c[1]),a=r.getElevation(c[2],c[1]),u=r.getElevation(c[2],c[3]),d=r.getElevation(c[0],c[3]),h=r.isLeaf(c[0],c[1]),p=r.isLeaf(c[2],c[1]),f=r.isLeaf(c[2],c[3]),m=r.
170isLeaf(c[0],c[3]),g=Math.min(i.min,a.min,u.min,d.min),v=Math.max(i.max,a.max,u.max,d.max),y=h&&p&&f&&m;l.maximums.push(v),l.minimums.push(g),l.leaves.push(v-g<=5&&y?1:0)}i.push(l)}return i}(this.dem),i=n.length-1,o=n[i];this._addNode(o.minimums[0],o.maximums[0],o.leaves[0]),this._construct(n,0,0,i,0)}raycastRoot(r,n,i,o,a,s,l=1){return uu([r,n,-100],[i,o,this.maximums[0]*l],a,s)}raycast(r,n,i,o,a,s,l=1){if(!this.nodeCount)return null;let c=this.raycastRoot(r,n,i,o,a,s,l);if(null==c)return null;let u=[],d=[],h=[],p=[],f=[{idx:0,t:c,nodex:0,nodey:0,depth:0}];for(;f.length>0;){let{idx:c,t:v,nodex:y,nodey:b,depth:x}=f.pop();if(this.leaves[c]){uh(y,b,x,r,n,i,o,h,p);let c=1<<x,u=(y+0)/c,d=(y+1)/c,f=(b+0)/c,_=(b+1)/c,w=um(u,f,this.dem)*l,S=um(d,f,this.dem)*l,T=um(d,_,this.dem)*l,E=um(u,_,this.dem)*l,k=ud(h[0],h[1],w,p[0],h[1],S,p[0],p[1],T,a,s),C=ud(p[0],p[1],T,h[0],p[1],E,h[0],h[1],w,a,s),P=Math.min(null!==k?k:Number.MAX_VALUE,null!==C?C:Number.MAX_VALUE);if(P!==Number.MAX_VALUE)return P;{var m,g;let r=oR([],a,s,v);if(uf(w,S,E,T,(r[0]-(m=h[0]))/(p[0]-m),(r[1]-(g=h[1]))/(p[1]-g))>=r[2])return v}continue}let _=0;for(let f=0;f<this._siblingOffset.length;f++){uh((y<<1)+this._siblingOffset[f][0],(b<<1)+this._siblingOffset[f][1],x+1,r,n,i,o,h,p),h[2]=-100,p[2]=this.maximums[this.childOffsets[c]+f]*l;let m=uu(h,p,a,s);if(null!=m){u[f]=m;let r=!1;for(let n=0;n<_&&!r;n++)m>=u[d[n]]&&(d.splice(n,0,f),r=!0);r||(d[_]=f),_++}}for(let r=0;r<_;r++){let n=d[r];f.push({idx:this.childOffsets[c]+n,t:u[n],nodex:(y<<1)+this._siblingOffset[n][0],nodey:(b<<1)+this._siblingOffset[n][1],depth:x+1})}}return null}_addNode(r,n,i){return this.minimums.push(r),this.maximums.push(n),this.leaves.push(i),this.childOffsets.push(0),this.nodeCount++}_construct(r,n,i,o,a){if(1===r[o].isLeaf(n,i))return;this.childOffsets[a]||(this.childOffsets[a]=this.nodeCount);let s=o-1,l=r[s],c=0,u=0;for(let r=0;r<this._siblingOffset.length;r++){let o=2*n+this._siblingOffset[r][0],a=2*i+this._siblingOffset[r][1],s=l.getElevation(o,a),d=l.isLeaf(o,a),h=this._addNode(s.min,s.max,d);d&&(c|=1<<r),u||(u=h)}for(let o=0;o<this._siblingOffset.length;o++)c&1<<o||this._construct(r,2*n+this._siblingOffset[o][0],2*i+this._siblingOffset[o][1],s,u+o)}}function uf(r,n,i,o,a,s){return t0(t0(r,i,s),t0(n,o,s),a)}function um(r,n,i){let o=i.dim,a=Z(r*o-.5,0,o-1),s=Z(n*o-.5,0,o-1),l=Math.floor(a),c=Math.floor(s),u=Math.min(l+1,o-1),d=Math.min(c+1,o-1);return uf(i.get(l,c),i.get(u,c),i.get(l,d),i.get(u,d),a-l,s-c)}let ug={mapbox:[6553.6,25.6,.1,1e4],terrarium:[256,1,1/256,32768]};function uv(r,n,i){return(256*r*256+256*n+i)/10-1e4}function uy(r,n,i){return 256*r+n+i/256-32768}class ub{get tree(){return this._tree||this._buildQuadTree(),this._tree}constructor(r,n,i,o=!1,a=!1){if(this.uid=r,n.height!==n.width)throw RangeError("DEM tiles must be square");if(i&&"mapbox"!==i&&"terrarium"!==i)return K(`"${i}" is not a valid encoding type. Valid types include "mapbox" and "terrarium".`);this.stride=n.height;let s=this.dim=n.height-2,l=new Uint32Array(n.data.buffer);if(this.pixels=new Uint8Array(n.data.buffer),this.encoding=i||"mapbox",this.borderReady=o,!o){for(let r=0;r<s;r++)l[this._idx(-1,r)]=l[this._idx(0,r)],l[this._idx(s,r)]=l[this._idx(s-1,r)],l[this._idx(r,-1)]=l[this._idx(r,0)],l[this._idx(r,s)]=l[this._idx(r,s-1)];l[this._idx(-1,-1)]=l[this._idx(0,0)],l[this._idx(s,-1)]=l[this._idx(s-1,0)],l[this._idx(-1,s)]=l[this._idx(0,s-1)],l[this._idx(s,s)]=l[this._idx(s-1,s-1)],a&&this._buildQuadTree()}}_buildQuadTree(){this._tree=new up(this)}get(r,n,i=!1){i&&(r=Z(r,-1,this.dim),n=Z(n,-1,this.dim));let o=4*this._idx(r,n);return("terrarium"===this.encoding?uy:uv)(this.pixels[o],this.pixels[o+1],this.pixels[o+2])}static getUnpackVector(r){return ug[r]}get unpackVector(){return ug[this.encoding]}_idx(r,n){if(r<-1||r>=this.dim+1||n<-1||n>=this.dim+1)throw RangeError("out of range source coordinates for DEM data");return(n+1)*this.stride+(r+1)}static pack(r,n){let i=[0,0,0,0],o=ub.getUnpackVector(n),a=Math.floor((r+o[3])/o[2]);return i[2]=a%256,a=Math.floor(a/256),i[1]=a%256,a=Math.floor(a/256),i[0]=a,i}getPixels(){return new a6({width:this.stride,height:this.stride},this.pixels)}backfillBorder(r,n,i){if(this.dim!==r.dim)throw Error("dem dimension mismatch");let o=n*this.dim,a=n*this.dim+this.dim,s=i*this.dim,l=i*this.dim+this.dim;switch(n){case -1:o=a-1;break;case 1:a=o+1}switch(i){case -1:s=l-1;break;case 1:l=s+1}let c=-n*this.dim,u=-i*this.dim;for(let n=s;n<l;n++)for(let i=o;i<a;i++){let o=4*this._idx(i,n),a=4*this._idx(i+c,n+u);this.pixels[o+0]=r.pixels[a+0],this.pixels[o+1]=r.pixels[a+1],this.pixels[o+2]=r.pixels[a+2],this.pixels[o+3]=r.pixels[a+3]}}onDeserialize(){this._tree&&(this._tree.dem=this)}}nk(ub,"DEMData"),nk(up,"DemMinMaxQuadTree",{omit:["dem"]});class ux{constructor(r,n){this.max=r,this.onRemove=n,this.reset()}reset(){for(let r in this.data)for(let n of this.data[r])n.timeout&&clearTimeout(n.timeout),this.onRemove(n.value);return this.data={},this.order=[],this}add(r,n,i){let o=r.wrapped().key;void 0===this.data[o]&&(this.data[o]=[]);let a={value:n,timeout:void 0};if(void 0!==i&&(a.timeout=setTimeout(()=>{this.remove(r,a)},i)),this.data[o].push(a),this.order.push(o),this.order.length>this.max){let r=this._getAndRemoveByKey(this.order[0]);r&&this.onRemove(r)}return this}has(r){return r.wrapped().key in this.data}getAndRemove(r){return this.has(r)?this._getAndRemoveByKey(r.wrapped().key):null}_getAndRemoveByKey(r){let n=this.data[r].shift();return n.timeout&&clearTimeout(n.timeout),0===this.data[r].length&&delete this.data[r],this.order.splice(this.order.indexOf(r),1),n.value}getByKey(r){let n=this.data[r];return n?n[0].value:null}get(r){return this.has(r)?this.data[r.wrapped().key][0].value:null}remove(r,n){if(!this.has(r))return this;let i=r.wrapped().key,o=void 0===n?0:this.data[i].indexOf(n),a=this.data[i][o];return this.data[i].splice(o,1),a.timeout&&clearTimeout(a.timeout),0===this.data[i].length&&delete this.data[i],this.onRemove(a.value),this.order.splice(this.order.indexOf(i),1),this}setMaxSize(r){for(this.max=r;this.order.length>this.max;){let r=this._getAndRemoveByKey(this.order[0]);r&&this.onRemove(r)}return this}filter(r){let n=[];for(let i in this.data)for(let o of this.data[i])r(o.value)||n.push(o);for(let r of n)this.remove(r.value.tileID,r)}}class u_{constructor(r,n,i){this.func=r,this.mask=n,this.range=i}}u_.ReadOnly=!1,u_.ReadWrite=!0,u_.disabled=new u_(519,u_.ReadOnly,[0,1]);class uw{constructor(r,n,i,o,a,s){this.test=r,this.ref=n,this.mask=i,this.fail=o,this.depthFail=a,this.pass=s}}uw.disabled=new uw({func:519,mask:0},0,0,7680,7680,7680);class uS{constructor(r,n,i){this.blendFunction=r,this.blendColor=n,this.mask=i}}uS.Replace=[1,0],uS.disabled=new uS(uS.Replace,tf.transparent,[!1,!1,!1,!1]),uS.unblended=new uS(uS.Replace,tf.transparent,[!0,!0,!0,!0]),uS.alphaBlended=new uS([1,771],tf.transparent,[!0,!0,!0,!0]);class uT{constructor(r,n,i){this.enable=r,this.mode=n,this.frontFace=i}}
170uT.disabled=new uT(!1,1029,2305),uT.backCCW=new uT(!0,1029,2305),uT.backCW=new uT(!0,1029,2304),uT.frontCW=new uT(!0,1028,2304),uT.frontCCW=new uT(!0,1028,2305);class uE extends eX{constructor(r,n,i){super(),this.id=r,this._onlySymbols=i,n.on("data",r=>{"source"===r.dataType&&"metadata"===r.sourceDataType&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&"source"===r.dataType&&"content"===r.sourceDataType&&(this.reload(),this.transform&&this.update(this.transform))}),n.on("error",()=>{this._sourceErrored=!0}),this._source=n,this._tiles={},this._cache=new ux(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._minTileCacheSize=n.minTileCacheSize,this._maxTileCacheSize=n.maxTileCacheSize,this._loadedParentTiles={},this._coveredTiles={},this._state=new ul,this._isRaster="raster"===this._source.type||"raster-dem"===this._source.type||"custom"===this._source.type&&"raster"===this._source._dataType}onAdd(r){this.map=r,this._minTileCacheSize=void 0===this._minTileCacheSize&&r?r._minTileCacheSize:this._minTileCacheSize,this._maxTileCacheSize=void 0===this._maxTileCacheSize&&r?r._maxTileCacheSize:this._maxTileCacheSize}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded||!this._source.loaded())return!1;for(let r in this._tiles){let n=this._tiles[r];if("loaded"!==n.state&&"errored"!==n.state)return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;let r=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,r&&this.reload(),this.transform&&this.update(this.transform)}_loadTile(r,n){return r.isSymbolTile=this._onlySymbols,this._source.loadTile(r,n)}_unloadTile(r){if(this._source.unloadTile)return this._source.unloadTile(r,()=>{})}_abortTile(r){if(this._source.abortTile)return this._source.abortTile(r,()=>{})}serialize(){return this._source.serialize()}prepare(r){for(let n in this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null),this._tiles){let i=this._tiles[n];i.upload(r),i.prepare(this.map.style.imageManager)}}getIds(){return z(this._tiles).map(r=>r.tileID).sort(uk).map(r=>r.key)}getRenderableIds(r){let n=[];for(let i in this._tiles)this._isIdRenderable(+i,r)&&n.push(this._tiles[i]);return r?n.sort((r,n)=>{let i=r.tileID,o=n.tileID,a=new C(i.canonical.x,i.canonical.y)._rotate(this.transform.angle),s=new C(o.canonical.x,o.canonical.y)._rotate(this.transform.angle);return i.overscaledZ-o.overscaledZ||s.y-a.y||s.x-a.x}).map(r=>r.tileID.key):n.map(r=>r.tileID).sort(uk).map(r=>r.key)}hasRenderableParent(r){let n=this.findLoadedParent(r,0);return!!n&&this._isIdRenderable(n.tileID.key)}_isIdRenderable(r,n){return this._tiles[r]&&this._tiles[r].hasData()&&!this._coveredTiles[r]&&(n||!this._tiles[r].holdingForFade())}reload(){if(this._paused)this._shouldReloadOnResume=!0;else for(let r in this._cache.reset(),this._tiles)"errored"!==this._tiles[r].state&&this._reloadTile(+r,"reloading")}_reloadTile(r,n){let i=this._tiles[r];i&&("loading"!==i.state&&(i.state=n),this._loadTile(i,this._tileLoaded.bind(this,i,r,n)))}_tileLoaded(r,n,i,o){if(o){if(r.state="errored",404!==o.status)this._source.fire(new eH(o,{tile:r}));else if("raster-dem"===this._source.type&&this.usedForTerrain&&this.map.painter.terrain){let r=this.map.painter.terrain;this.update(this.transform,r.getScaledDemTileSize(),!0),r.resetTileLookupCache(this.id)}else this.update(this.transform)}else r.timeAdded=eq.now(),"expired"===i&&(r.refreshedUponExpiration=!0),this._setTileReloadTimer(n,r),"raster-dem"===this._source.type&&r.dem&&this._backfillDEM(r),this._state.initializeTileState(r,this.map?this.map.painter:null),this._source.fire(new eW("data",{dataType:"source",tile:r,coord:r.tileID,sourceCacheId:this.id}))}_backfillDEM(r){let n=this.getRenderableIds();for(let o=0;o<n.length;o++){let a=n[o];if(r.neighboringTiles&&r.neighboringTiles[a]){let n=this.getTileByID(a);i(r,n),i(n,r)}}function i(r,n){if(!r.dem||r.dem.borderReady)return;r.needsHillshadePrepare=!0,r.needsDEMTextureUpload=!0;let i=n.tileID.canonical.x-r.tileID.canonical.x,o=n.tileID.canonical.y-r.tileID.canonical.y,a=Math.pow(2,r.tileID.canonical.z),s=n.tileID.key;0===i&&0===o||Math.abs(o)>1||(Math.abs(i)>1&&(1===Math.abs(i+a)?i+=a:1===Math.abs(i-a)&&(i-=a)),n.dem&&r.dem&&(r.dem.backfillBorder(n.dem,i,o),r.neighboringTiles&&r.neighboringTiles[s]&&(r.neighboringTiles[s].backfilled=!0)))}}getTile(r){return this.getTileByID(r.key)}getTileByID(r){return this._tiles[r]}_retainLoadedChildren(r,n,i,o){for(let a in this._tiles){let s=this._tiles[a];if(o[a]||!s.hasData()||s.tileID.overscaledZ<=n||s.tileID.overscaledZ>i)continue;let l=s.tileID;for(;s&&s.tileID.overscaledZ>n+1;){let r=s.tileID.scaledTo(s.tileID.overscaledZ-1);(s=this._tiles[r.key])&&s.hasData()&&(l=r)}let c=l;for(;c.overscaledZ>n;)if(r[(c=c.scaledTo(c.overscaledZ-1)).key]){o[l.key]=l;break}}}findLoadedParent(r,n){if(r.key in this._loadedParentTiles){let i=this._loadedParentTiles[r.key];return i&&i.tileID.overscaledZ>=n?i:null}for(let i=r.overscaledZ-1;i>=n;i--){let n=r.scaledTo(i),o=this._getLoadedTile(n);if(o)return o}}_getLoadedTile(r){let n=this._tiles[r.key];return n&&n.hasData()?n:this._cache.getByKey(this._source.reparseOverscaled?r.wrapped().key:r.canonical.key)}updateCacheSize(r,n){n=n||this._source.tileSize;let i=Math.ceil(r.width/n)+1,o=Math.ceil(r.height/n)+1,a=Math.floor(i*o*5),s="number"==typeof this._minTileCacheSize?Math.max(this._minTileCacheSize,a):a,l="number"==typeof this._maxTileC
170acheSize?Math.min(this._maxTileCacheSize,s):s;this._cache.setMaxSize(l)}handleWrapJump(r){let n=Math.round((r-(void 0===this._prevLng?r:this._prevLng))/360);if(this._prevLng=r,n){let r={};for(let i in this._tiles){let o=this._tiles[i];o.tileID=o.tileID.unwrapTo(o.tileID.wrap+n),r[o.tileID.key]=o}for(let n in this._tiles=r,this._timers)clearTimeout(this._timers[n]),delete this._timers[n];for(let r in this._tiles)this._setTileReloadTimer(+r,this._tiles[r])}}update(r,n,i){let o;if(this.transform=r,!this._sourceLoaded||this._paused||this.transform.freezeTileCoverage||this.usedForTerrain&&!i)return;this.updateCacheSize(r,n),"globe"!==this.transform.projection.name&&this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used||this.usedForTerrain?this._source.tileID?o=r.getVisibleUnwrappedCoordinates(this._source.tileID).map(r=>new s6(r.canonical.z,r.wrap,r.canonical.z,r.canonical.x,r.canonical.y)):(o=r.coveringTiles({tileSize:n||this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom&&!i,reparseOverscaled:this._source.reparseOverscaled,isTerrainDEM:this.usedForTerrain}),this._source.hasTile&&(o=o.filter(r=>this._source.hasTile(r)))):o=[];let a=this._updateRetainedTiles(o);if(uC(this._source.type)&&0!==o.length){let r={},n={},i=Object.keys(a);for(let o of i){let i=a[o],s=this._tiles[o];if(!s||s.fadeEndTime&&s.fadeEndTime<=eq.now())continue;let l=this.findLoadedParent(i,Math.max(i.overscaledZ-uE.maxOverzooming,this._source.minzoom));l&&(this._addTile(l.tileID),r[l.tileID.key]=l.tileID),n[o]=i}let s=o[o.length-1].overscaledZ;for(let r in this._tiles){let i=this._tiles[r];if(a[r]||!i.hasData())continue;let o=i.tileID;for(;o.overscaledZ>s;){o=o.scaledTo(o.overscaledZ-1);let s=this._tiles[o.key];if(s&&s.hasData()&&n[o.key]){a[r]=i.tileID;break}}}for(let n in r)a[n]||(this._coveredTiles[n]=!0,a[n]=r[n])}for(let r in a)this._tiles[r].clearFadeHold();let s=function(r,n){let i=[];for(let o in r)o in n||i.push(o);return i}(this._tiles,a);for(let r of s){let n=this._tiles[r];n.hasSymbolBuckets&&!n.holdingForFade()?n.setHoldDuration(this.map._fadeDuration):n.hasSymbolBuckets&&!n.symbolFadeFinished()||this._removeTile(+r)}this._updateLoadedParentTileCache(),this._onlySymbols&&this._source.afterUpdate&&this._source.afterUpdate()}releaseSymbolFadeTiles(){for(let r in this._tiles)this._tiles[r].holdingForFade()&&this._removeTile(+r)}_updateRetainedTiles(r){let n={};if(0===r.length)return n;let i={},o=r.reduce((r,n)=>Math.min(r,n.overscaledZ),1/0),a=r[0].overscaledZ,s=Math.max(a-uE.maxOverzooming,this._source.minzoom),l=Math.max(a+uE.maxUnderzooming,this._source.minzoom),c={};for(let i of r){let r=this._addTile(i);n[i.key]=i,r.hasData()||o<this._source.maxzoom&&(c[i.key]=i)}for(let a of(this._retainLoadedChildren(c,o,l,n),r)){let r=this._tiles[a.key];if(r.hasData())continue;if(a.canonical.z>=this._source.maxzoom){let r=a.children(this._source.maxzoom)[0],i=this.getTile(r);if(i&&i.hasData()){n[r.key]=r;continue}}else{let r=a.children(this._source.maxzoom);if(n[r[0].key]&&n[r[1].key]&&n[r[2].key]&&n[r[3].key])continue}let o=r.wasRequested();for(let l=a.overscaledZ-1;l>=s;--l){let s=a.scaledTo(l);if(i[s.key]||(i[s.key]=!0,(r=this.getTile(s))||!o||(r=this._addTile(s)),r&&(n[s.key]=s,o=r.wasRequested(),r.hasData())))break}}return n}_updateLoadedParentTileCache(){for(let r in this._loadedParentTiles={},this._tiles){let n=[],i,o=this._tiles[r].tileID;for(;o.overscaledZ>0;){if(o.key in this._loadedParentTiles){i=this._loadedParentTiles[o.key];break}n.push(o.key);let r=o.scaledTo(o.overscaledZ-1);if(i=this._getLoadedTile(r))break;o=r}for(let r of n)this._loadedParentTiles[r]=i}}_addTile(r){let n=this._tiles[r.key];if(n)return n;(n=this._cache.getAndRemove(r))&&(this._setTileReloadTimer(r.key,n),n.tileID=r,this._state.initializeTileState(n,this.map?this.map.painter:null),this._cacheTimers[r.key]&&(clearTimeout(this._cacheTimers[r.key]),delete this._cacheTimers[r.key],this._setTileReloadTimer(r.key,n)));let i=Boolean(n);if(!i){let i=this.map?this.map.painter:null;n=new us(r,this._source.tileSize*r.overscaleFactor(),this.transform.tileZoom,i,this._isRaster),this._loadTile(n,this._tileLoaded.bind(this,n,r.key,n.state))}return n?(n.uses++,this._tiles[r.key]=n,i||this._source.fire(new eW("dataloading",{tile:n,coord:n.tileID,dataType:"source"})),n):null}_setTileReloadTimer(r,n){r in this._timers&&(clearTimeout(this._timers[r]),delete this._timers[r]);let i=n.getExpiryTimeout();i&&(this._timers[r]=setTimeout(()=>{this._reloadTile(r,"expired"),delete this._timers[r]},i))}_removeTile(r){let n=this._tiles[r];n&&(n.uses--,delete this._tiles[r],this._timers[r]&&(clearTimeout(this._timers[r]),delete this._timers[r]),n.uses>0||(n.hasData()&&"reloading"!==n.state?this._cache.add(n.tileID,n,n.getExpiryTimeout()):(n.aborted=!0,this._abortTile(n),this._unloadTile(n))))}clearTiles(){for(let r in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(+r);this._source._clear&&this._source._clear(),this._cache.reset(),this.map&&this.usedForTerrain&&this.map.painter.terrain&&this.map.painter.terrain.resetTileLookupCache(this.id
170)}tilesIn(r,n,i){let o=[],a=this.transform;if(!a)return o;let s="globe"===a.projection.name,l=aE(a.center.lng);for(let c in this._tiles){let u;let d=this._tiles[c];if(i&&d.clearQueryDebugViz(),!d.holdingForFade()){if(s){let r=d.tileID.canonical;if(0===r.z){let n=[Math.abs(Z(l,...uP(r,-1))-l),Math.abs(Z(l,...uP(r,1))-l)];u=[0,2*n.indexOf(Math.min(...n))-1]}else{let n=[Math.abs(Z(l,...uP(r,-1))-l),Math.abs(Z(l,...uP(r,0))-l),Math.abs(Z(l,...uP(r,1))-l)];u=[n.indexOf(Math.min(...n))-1]}}else u=[0];for(let i of u){let s=r.containsTile(d,a,n,i);s&&o.push(s)}}}return o}getVisibleCoordinates(r){let n=this.getRenderableIds(r).map(r=>this._tiles[r].tileID);for(let r of n)r.projMatrix=this.transform.calculateProjMatrix(r.toUnwrapped());return n}hasTransition(){if(this._source.hasTransition())return!0;if(uC(this._source.type))for(let r in this._tiles){let n=this._tiles[r];if(void 0!==n.fadeEndTime&&n.fadeEndTime>=eq.now())return!0}return!1}setFeatureState(r,n,i){this._state.updateState(r=r||"_geojsonTileLayer",n,i)}removeFeatureState(r,n,i){this._state.removeFeatureState(r=r||"_geojsonTileLayer",n,i)}getFeatureState(r,n){return this._state.getState(r=r||"_geojsonTileLayer",n)}setDependencies(r,n,i){let o=this._tiles[r];o&&o.setDependencies(n,i)}reloadTilesForDependencies(r,n){for(let i in this._tiles)this._tiles[i].hasDependency(r,n)&&this._reloadTile(+i,"reloading");this._cache.filter(i=>!i.hasDependency(r,n))}_preloadTiles(r,n){if(!this._sourceLoaded){let i=()=>{this._sourceLoaded&&(this._source.off("data",i),this._preloadTiles(r,n))};return void this._source.on("data",i)}let i=new Map,o=Array.isArray(r)?r:[r],a=this.map.painter.terrain,s=this.usedForTerrain&&a?a.getScaledDemTileSize():this._source.tileSize;for(let r of o){let n=r.coveringTiles({tileSize:s,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom&&!this.usedForTerrain,reparseOverscaled:this._source.reparseOverscaled,isTerrainDEM:this.usedForTerrain});for(let r of n)i.set(r.key,r);this.usedForTerrain&&r.updateElevation(!1)}L(Array.from(i.values()),(r,n)=>{let i=new us(r,this._source.tileSize*r.overscaleFactor(),this.transform.tileZoom,this.map.painter,this._isRaster);this._loadTile(i,r=>{"raster-dem"===this._source.type&&i.dem&&this._backfillDEM(i),n(r,i)})},n)}}function uk(r,n){let i=Math.abs(2*r.wrap)-+(r.wrap<0),o=Math.abs(2*n.wrap)-+(n.wrap<0);return r.overscaledZ-n.overscaledZ||o-i||n.canonical.y-r.canonical.y||n.canonical.x-r.canonical.x}function uC(r){return"raster"===r||"image"===r||"video"===r||"custom"===r}function uP(r,n){let i=1<<r.z;return[r.x/i+n,(r.x+1)/i+n]}uE.maxOverzooming=10,uE.maxUnderzooming=3;class uO{constructor(r,n,i){this._demTile=r,this._dem=this._demTile.dem,this._scale=n,this._offset=i}static create(r,n,i){let o=i||r.findDEMTileFor(n);if(!o||!o.dem)return;let a=o.dem,s=o.tileID,l=1<<n.canonical.z-s.canonical.z;return new uO(o,o.tileSize/8192/l,[(n.canonical.x/l-s.canonical.x)*a.dim,(n.canonical.y/l-s.canonical.y)*a.dim])}tileCoordToPixel(r,n){let i=n*this._scale+this._offset[1],o=Math.floor(r*this._scale+this._offset[0]),a=Math.floor(i);return new C(o,a)}getElevationAt(r,n,i,o){let a=r*this._scale+this._offset[0],s=n*this._scale+this._offset[1],l=Math.floor(a),c=Math.floor(s),u=this._dem;return o=!!o,i?t0(t0(u.get(l,c,o),u.get(l,c+1,o),s-c),t0(u.get(l+1,c,o),u.get(l+1,c+1,o),s-c),a-l):u.get(l,c,o)}getElevationAtPixel(r,n,i){return this._dem.get(r,n,!!i)}getMeterToDEM(r){return(1<<this._demTile.tileID.canonical.z)*(1/aT(r))*this._dem.stride}}class uj{constructor(r,n){this.tileID=r,this.x=r.canonical.x,this.y=r.canonical.y,this.z=r.canonical.z,this.grid=new nT(8192,16,0),this.featureIndexArray=new iB,this.promoteId=n}insert(r,n,i,o,a,s=0){let l=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(i,o,a,s);let c=this.grid;for(let r=0;r<n.length;r++){let i=n[r],o=[1/0,1/0,-1/0,-1/0];for(let r=0;r<i.length;r++){let n=i[r];o[0]=Math.min(o[0],n.x),o[1]=Math.min(o[1],n.y),o[2]=Math.max(o[2],n.x),o[3]=Math.max(o[3],n.y)}o[0]<8192&&o[1]<8192&&o[2]>=0&&o[3]>=0&&c.insert(l,o[0],o[1],o[2],o[3])}}loadVTLayers(){if(!this.vtLayers)for(let r in this.vtLayers=new sF(new lU(this.rawTileData)).layers,this.sourceLayerCoder=new c8(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"]),this.vtFeatures={},this.vtLayers)this.vtFeatures[r]=[];return this.vtLayers}query(r,n,i,o){let a;this.loadVTLayers();let s=r.params||{},l=r6(s.filter),c=r.tileResult,u=r.transform,d=c.bufferedTilespaceBounds,h=this.grid.query(d.min.x,d.min.y,d.max.x,d.max.y,(r,n,i,o)=>a$(c.bufferedTilespaceGeometry,r,n,i,o));h.sort(uM);let p=null;u.elevation&&h.length>0&&(p=uO.create(u.elevation,this.tileID));let f={};for(let u=0;u<h.length;u++){let d=h[u];if(d===a)continue;a=d;let m=this.featureIndexArray.get(d),g=null;
170this.loadMatchingFeature(f,m,l,s.layers,s.availableImages,n,i,o,(n,i,o,a=0)=>(g||(g=aI(n,this.tileID.canonical,r.tileTransform)),i.queryIntersectsFeature(c,n,o,g,this.z,r.transform,r.pixelPosMatrix,p,a)))}return f}loadMatchingFeature(r,n,i,o,a,s,l,c,u){let{featureIndex:d,bucketIndex:h,sourceLayerIndex:p,layoutVertexArrayOffset:f}=n,m=this.bucketLayerIDs[h];if(o&&!function(r,n){for(let i=0;i<r.length;i++)if(n.indexOf(r[i])>=0)return!0;return!1}(o,m))return;let g=this.sourceLayerCoder.decode(p),v=this.vtLayers[g].feature(d);if(i.needGeometry){let r=aZ(v,!0);if(!i.filter(new nH(this.tileID.overscaledZ),r,this.tileID.canonical))return}else if(!i.filter(new nH(this.tileID.overscaledZ),v))return;let y=this.getId(v,g);for(let n=0;n<m.length;n++){let i=m[n];if(o&&0>o.indexOf(i))continue;let h=s[i];if(!h)continue;let p={};void 0!==y&&c&&(p=c.getState(h.sourceLayer||"_geojsonTileLayer",y));let g=B({},l[i]);g.paint=uA(g.paint,h.paint,v,p,a),g.layout=uA(g.layout,h.layout,v,p,a);let b=!u||u(v,h,p,f);if(!b)continue;let x=new c7(v,this.z,this.x,this.y,y);x.layer=g;let _=r[i];void 0===_&&(_=r[i]=[]),_.push({featureIndex:d,feature:x,intersectionZ:b})}}lookupSymbolFeatures(r,n,i,o,a,s,l,c){let u={};this.loadVTLayers();let d=r6(a);for(let a of r)this.loadMatchingFeature(u,{bucketIndex:i,sourceLayerIndex:o,featureIndex:a,layoutVertexArrayOffset:0},d,s,l,c,n);return u}loadFeature(r){let{featureIndex:n,sourceLayerIndex:i}=r;this.loadVTLayers();let o=this.sourceLayerCoder.decode(i),a=this.vtFeatures[o];if(a[n])return a[n];let s=this.vtLayers[o].feature(n);return a[n]=s,s}hasLayer(r){for(let n of this.bucketLayerIDs)for(let i of n)if(r===i)return!0;return!1}getId(r,n){let i=r.id;if(this.promoteId){let o="string"==typeof this.promoteId?this.promoteId:this.promoteId[n];null!=o&&(i=r.properties[o]),"boolean"==typeof i&&(i=Number(i))}return i}}function uA(r,n,i,o,a){return W(r,(r,s)=>{let l=n instanceof n2?n.get(s):null;return l&&l.evaluate?l.evaluate(i,o,a):l})}function uM(r,n){return n-r}nk(uj,"FeatureIndex",{omit:["rawTileData","sourceLayerCoder"]});class uI{constructor(r,n){this.width=r,this.height=n,this.nextRow=0,this.image=new a5({width:r,height:n}),this.positions={},this.uploaded=!1}getDash(r,n){let i=this.getKey(r,n);return this.positions[i]}trim(){let r=this.width,n=this.height=V(this.nextRow);this.image.resize({width:r,height:n})}getKey(r,n){return r.join(",")+n}getDashRanges(r,n,i){let o=[],a=r.length%2==1?-r[r.length-1]*i:0,s=r[0]*i,l=!0;o.push({left:a,right:s,isDash:l,zeroLength:0===r[0]});let c=r[0];for(let n=1;n<r.length;n++){l=!l;let u=r[n];a=c*i,c+=u,s=c*i,o.push({left:a,right:s,isDash:l,zeroLength:0===u})}return o}addRoundDash(r,n,i){let o=n/2;for(let n=-i;n<=i;n++){let a=this.width*(this.nextRow+i+n),s=0,l=r[0];for(let c=0;c<this.width;c++){let u;c/l.right>1&&(l=r[++s]);let d=Math.abs(c-l.left),h=Math.abs(c-l.right),p=Math.min(d,h),f=n/i*(o+1);if(l.isDash){let r=o-Math.abs(f);u=Math.sqrt(p*p+r*r)}else u=o-Math.sqrt(p*p+f*f);this.image.data[a+c]=Math.max(0,Math.min(255,u+128))}}}addRegularDash(r,n){for(let n=r.length-1;n>=0;--n){let i=r[n],o=r[n+1];i.zeroLength?r.splice(n,1):o&&o.isDash===i.isDash&&(o.left=i.left,r.splice(n,1))}let i=r[0],o=r[r.length-1];i.isDash===o.isDash&&(i.left=o.left-this.width,o.right=i.right+this.width);let a=this.width*this.nextRow,s=0,l=r[0];for(let i=0;i<this.width;i++){i/l.right>1&&(l=r[++s]);let o=Math.abs(i-l.left),c=Math.abs(i-l.right),u=Math.min(o,c);this.image.data[a+i]=Math.max(0,Math.min(255,(l.isDash?u:-u)+n+128))}}addDash(r,n){let i=this.getKey(r,n);if(this.positions[i])return this.positions[i];let o="round"===n,a=o?7:0,s=2*a+1;
170if(this.nextRow+s>this.height)return K("LineAtlas out of space"),null;0===r.length&&r.push(1);let l=0;for(let n=0;n<r.length;n++)r[n]<0&&(K("Negative value is found in line dasharray, replacing values with 0"),r[n]=0),l+=r[n];if(0!==l){let i=this.width/l,s=this.getDashRanges(r,this.width,i);o?this.addRoundDash(s,i,a):this.addRegularDash(s,"square"===n?.5*i:0)}let c=this.nextRow+a;this.nextRow+=s;let u={tl:[c,a],br:[l,0]};return this.positions[i]=u,u}}nk(uI,"LineAtlas");class uZ{constructor(r){let n={},i=[];for(let o in r){let a=r[o],s=n[o]={};for(let r in a.glyphs){let n=a.glyphs[+r];if(!n||0===n.bitmap.width||0===n.bitmap.height)continue;let o=n.metrics.localGlyph?2:1,l={x:0,y:0,w:n.bitmap.width+2*o,h:n.bitmap.height+2*o};i.push(l),s[r]=l}}let{w:o,h:a}=lG(i),s=new a5({width:o||1,height:a||1});for(let i in r){let o=r[i];for(let r in o.glyphs){let a=o.glyphs[+r];if(!a||0===a.bitmap.width||0===a.bitmap.height)continue;let l=n[i][r],c=a.metrics.localGlyph?2:1;a5.copy(a.bitmap,s,{x:0,y:0},{x:l.x+c,y:l.y+c},a.bitmap)}}this.image=s,this.positions=n}}nk(uZ,"GlyphAtlas");class uR{constructor(r){this.tileID=new s6(r.tileID.overscaledZ,r.tileID.wrap,r.tileID.canonical.z,r.tileID.canonical.x,r.tileID.canonical.y),this.tileZoom=r.tileZoom,this.uid=r.uid,this.zoom=r.zoom,this.canonical=r.tileID.canonical,this.pixelRatio=r.pixelRatio,this.tileSize=r.tileSize,this.source=r.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=r.showCollisionBoxes,this.collectResourceTiming=!!r.collectResourceTiming,this.returnDependencies=!!r.returnDependencies,this.promoteId=r.promoteId,this.enableTerrain=!!r.enableTerrain,this.isSymbolTile=r.isSymbolTile,this.tileTransform=cw(r.tileID.canonical,r.projection),this.projection=r.projection}parse(r,n,i,o,a){let s,l,c,u;this.status="parsing",this.data=r,this.collisionBoxArray=new iA;let d=new c8(Object.keys(r.layers).sort()),h=new uj(this.tileID,this.promoteId);h.bucketLayerIDs=[];let p={},f=new uI(256,256),m={featureIndex:h,iconDependencies:{},patternDependencies:{},glyphDependencies:{},lineAtlas:f,availableImages:i},g=n.familiesBySource[this.source];for(let n in g){let o=r.layers[n];if(!o)continue;let a=!1,s=!1;for(let r of g[n])"symbol"===r[0].type?a=!0:s=!0;if(!0===this.isSymbolTile&&!a||!1===this.isSymbolTile&&!s)continue;1===o.version&&K(`Vector tile source "${this.source}" layer "${n}" does not use vector tile spec v2 and therefore may have some rendering errors.`);let l=d.encode(n),c=[];for(let r=0;r<o.length;r++){let i=o.feature(r),a=h.getId(i,n);c.push({feature:i,id:a,index:r,sourceLayerIndex:l})}for(let r of g[n]){let n=r[0];void 0!==this.isSymbolTile&&"symbol"===n.type!==this.isSymbolTile||n.minzoom&&this.zoom<Math.floor(n.minzoom)||n.maxzoom&&this.zoom>=n.maxzoom||"none"!==n.visibility&&(uD(r,this.zoom,i),(p[n.id]=n.createBucket({index:h.bucketLayerIDs.length,layers:r,zoom:this.zoom,canonical:this.canonical,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:l,sourceID:this.source,enableTerrain:this.enableTerrain,projection:this.projection.spec,availableImages:i})).populate(c,m,this.tileID.canonical,this.tileTransform),h.bucketLayerIDs.push(r.map(r=>r.id)))}}f.trim();let v={type:"maybePrepare",isSymbolTile:this.isSymbolTile,zoom:this.zoom},y=()=>
170{if(s)return a(s);if(l&&c&&u){let r=new uZ(l),n=new lH(c,u);for(let o in p){let a=p[o];a instanceof cW?(uD(a.layers,this.zoom,i),function(r,n,i,o,a,s,l,c,u,d){r.createArrays(),r.tilePixelRatio=8192/(512*r.overscaling),r.compareText={},r.iconsNeedLinear=!1;let h=r.layers[0].layout,p=r.layers[0]._unevaluatedLayout._values,f={};if("composite"===r.textSizeData.kind){let{minZoom:n,maxZoom:i}=r.textSizeData;f.compositeTextSizes=[p["text-size"].possiblyEvaluate(new nH(n),c),p["text-size"].possiblyEvaluate(new nH(i),c)]}if("composite"===r.iconSizeData.kind){let{minZoom:n,maxZoom:i}=r.iconSizeData;f.compositeIconSizes=[p["icon-size"].possiblyEvaluate(new nH(n),c),p["icon-size"].possiblyEvaluate(new nH(i),c)]}f.layoutTextSize=p["text-size"].possiblyEvaluate(new nH(u+1),c),f.layoutIconSize=p["icon-size"].possiblyEvaluate(new nH(u+1),c),f.textMaxSize=p["text-size"].possiblyEvaluate(new nH(18),c);let m="map"===h.get("text-rotation-alignment")&&"point"!==h.get("symbol-placement"),g=h.get("text-size");for(let s of r.features){let u=h.get("text-font").evaluate(s,{},c).join(","),p=g.evaluate(s,{},c),v=f.layoutTextSize.evaluate(s,{},c),y=(f.layoutIconSize.evaluate(s,{},c),{horizontal:{},vertical:void 0}),b=s.text,x,_=[0,0];if(b){let o=b.toString(),l=24*h.get("text-letter-spacing").evaluate(s,{},c),d=24*h.get("text-line-height").evaluate(s,{},c),f=!function(r){for(let i of r){var n;if(n=i.charCodeAt(0),nA.Arabic(n)||nA["Arabic Supplement"](n)||nA["Arabic Extended-A"](n)||nA["Arabic Presentation Forms-A"](n)||nA["Arabic Presentation Forms-B"](n))return!1}return!0}(o)?0:l,g=h.get("text-anchor").evaluate(s,{},c),x=h.get("text-variable-anchor");if(!x){let r=h.get("text-radial-offset").evaluate(s,{},c);_=r?cm(g,[24*r,cp]):h.get("text-offset").evaluate(s,{},c).map(r=>24*r)}let w=m?"center":h.get("text-justify").evaluate(s,{},c),S="point"===h.get("symbol-placement"),T=S?24*h.get("text-max-width").evaluate(s,{},c):1/0,E=s=>{r.allowVerticalPlacement&&nM(o)&&(y.vertical=lJ(b,n,i,a,u,T,d,g,s,f,_,lX.vertical,!0,v,p))};if(!m&&x){let r="auto"===w?x.map(r=>cg(r)):[w],o=!1;for(let s=0;s<r.length;s++){let l=r[s];if(!y.horizontal[l]){if(o)y.horizontal[l]=y.horizontal[0];else{let r=lJ(b,n,i,a,u,T,d,"center",l,f,_,lX.horizontal,!1,v,p);r&&(y.horizontal[l]=r,o=1===r.positionedLines.length)}}}E("left")}else{if("auto"===w&&(w=cg(g)),S||h.get("text-writing-mode").indexOf("horizontal")>=0||!nM(o)){let r=lJ(b,n,i,a,u,T,d,g,w,f,_,lX.horizontal,!1,v,p);r&&(y.horizontal[w]=r)}E(S?"left":w)}}let w=!1;if(s.icon&&s.icon.name){let n=o[s.icon.name];n&&(x=function(r,n,i){let{horizontalAlign:o,verticalAlign:a}=l4(i),s=n[0]-r.displaySize[0]*o,l=n[1]-r.displaySize[1]*a;return{image:r,top:l,bottom:l+r.displaySize[1],left:s,right:s+r.displaySize[0]}}(a[s.icon.name],h.get("icon-offset").evaluate(s,{},c),h.get("icon-anchor").evaluate(s,{},c)),w=n.sdf,void 0===r.sdfIcons?r.sdfIcons=n.sdf:r.sdfIcons!==n.sdf&&K("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),(n.pixelRatio!==r.pixelRatio||0!==h.get("icon-rotate").constantOr(1))&&(r.iconsNeedLinear=!0))}let S=cy(y.horizontal)||y.vertical;r.iconsInText||(r.iconsInText=!!S&&S.iconsInText),(S||x)&&function(r,n,i,o,a,s,l,c,u,d,h,p,f){var m;let g,v=s.textMaxSize.evaluate(n,{},p);void 0===v&&(v=l);let y=r.layers[0].layout,b=y.get("icon-offset").evaluate(n,{},p),x=cy(i.horizontal)||i.vertical,_="globe"===f.name,w=l/24,S=r.tilePixelRatio*v/24,T=(m=r.overscaling,r.zoom>18&&m>2&&(m>>=1),Math.max(8192/(512*m),1)*y.get("symbol-spacing")),E=y.get("text-padding")*r.tilePixelRatio,k=y.get("icon-padding")*r.tilePixelRatio,O=y.get("text-max-angle")*P,j="map"===y.get("text-rotation-alignment")&&"point"!==y.get("symbol-placement"),A="map"===y.get("icon-rotation-alignment")&&"point"!==y.get("symbol-placement"),M=y.get("symbol-placement"),I=T/2,Z=y.get("icon-text-fit");o&&"none"!==Z&&(r.allowVerticalPlacement&&i.vertical&&(g=l6(o,i.vertical,Z,y.get("icon-text-fit-padding"),b,w)),x&&(o=l6(o,x,Z,y.get("icon-text-fit-padding"),b,w)));let R=(l,c,m)=>{if(c.x<0||c.x>=8192||c.y<0||c.y>=8192)return;let v=null;if(_){let{x:r,y:n,z:i}=f.projectTilePoint(c.x,c.y,m);v={anchor:new l8(r,n,i,0,void 0),up:f.upVector(m,c.x,c.y)}}!function(r,n,i,o,a,s,l,c,u,d,h,p,f,m,g,v,y,b,x,_,w,S,T,E,k){let C=r.addToLineVertexArray(n,o),P,O,j,A,M,I,Z,R=0,D=0,L=0,z=0,B=-1,F=-1,N={},U=iH(""),V=i?i.anchor:n,q=0,$=0;if(void 0===u._unevaluatedLayout.getValue("text-radial-offset")?[q,$]=u.layout.get("text-offset").evaluate(w,{},k).map(r=>24*r):(q=24*u.layout.get("text-radial-offset").evaluate(w,{},k),$=cp),r.allowVerticalPlacement&&a.vertical){let r=a.vertical;if(g)I=cx(r),c&&(Z=cx(c));else{let i=u.layout.get("text-rotate").evaluate(w,{},k)+90;
170j=cb(d,V,n,h,p,f,r,m,i,v),c&&(A=cb(d,V,n,h,p,f,c,b,i))}}if(s){let o=u.layout.get("icon-rotate").evaluate(w,{},k),a="none"!==u.layout.get("icon-text-fit"),l=ca(s,o,T,a),m=c?ca(c,o,T,a):void 0;O=cb(d,V,n,h,p,f,s,b,o),R=4*l.length;let g=r.iconSizeData,v=null;"source"===g.kind?(v=[128*u.layout.get("icon-size").evaluate(w,{},k)])[0]>32640&&K(`${r.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`):"composite"===g.kind&&((v=[128*S.compositeIconSizes[0].evaluate(w,{},k),128*S.compositeIconSizes[1].evaluate(w,{},k)])[0]>32640||v[1]>32640)&&K(`${r.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`),r.addSymbols(r.icon,l,v,_,x,w,!1,i,n,C.lineStartIndex,C.lineLength,-1,E,k),B=r.icon.placedSymbolArray.length-1,m&&(D=4*m.length,r.addSymbols(r.icon,m,v,_,x,w,lX.vertical,i,n,C.lineStartIndex,C.lineLength,-1,E,k),F=r.icon.placedSymbolArray.length-1)}for(let o in a.horizontal){let s=a.horizontal[o];P||(U=iH(s.text),g?M=cx(s):P=cb(d,V,n,h,p,f,s,m,u.layout.get("text-rotate").evaluate(w,{},k),v));let c=1===s.positionedLines.length;if(L+=cv(r,i,n,s,l,u,g,w,v,C,a.vertical?lX.horizontal:lX.horizontalOnly,c?Object.keys(a.horizontal):[o],N,B,S,E,k),c)break}a.vertical&&(z+=cv(r,i,n,a.vertical,l,u,g,w,v,C,lX.vertical,["vertical"],N,F,S,E,k));let G=-1,W=(r,n)=>r?Math.max(r,n):n;G=W(M,G),G=W(I,G),G=W(Z,G);let H=G>-1?1:0;r.glyphOffsetArray.length>=cW.MAX_GLYPHS&&K("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),void 0!==w.sortKey&&r.addToSortKeyRanges(r.symbolInstances.length,w.sortKey),r.symbolInstances.emplaceBack(V.x,V.y,V.z,n.x,n.y,N.right>=0?N.right:-1,N.center>=0?N.center:-1,N.left>=0?N.left:-1,N.vertical>=0?N.vertical:-1,B,F,U,void 0!==P?P:r.collisionBoxArray.length,void 0!==P?P+1:r.collisionBoxArray.length,void 0!==j?j:r.collisionBoxArray.length,void 0!==j?j+1:r.collisionBoxArray.length,void 0!==O?O:r.collisionBoxArray.length,void 0!==O?O+1:r.collisionBoxArray.length,A||r.collisionBoxArray.length,A?A+1:r.collisionBoxArray.length,h,L,z,R,D,H,0,q,$,G)}(r,c,v,l,i,o,a,g,r.layers[0],r.collisionBoxArray,n.index,n.sourceLayerIndex,r.index,E,j,u,0,k,A,b,n,s,d,h,p)};if("line"===M)for(let a of ct(n.geometry,0,0,8192,8192)){let n=function(r,n,i,o,a,s,l,c,u){let d=o?.6*s*l:0,h=ce(o,a),p=h*l,f=0===r[0].x||r[0].x===u||0===r[0].y||r[0].y===u;return n-p<n/4&&(n=p+n/4),function r(n,i,o,a,s,l,c,u,d){let h=l/2,p=l7(n),f=0,m=i-o,g=[];for(let r=0;r<n.length-1;r++){let i=n[r],c=n[r+1],u=i.dist(c),v=c.angleTo(i);for(;m+o<f+u;){m+=o;let y=(m-f)/u,b=t0(i.x,c.x,y),x=t0(i.y,c.y,y);if(b>=0&&b<d&&x>=0&&x<d&&m-h>=0&&m+h<=p){let i=new l8(b,x,0,v,r);i._round(),a&&!l9(n,i,l,a,s)||g.push(i)}}f+=u}return u||g.length||c||(g=r(n,f/2,o,a,s,l,c,!0,d)),g}(r,f?n/2*c%n:(h/2+2*s)*l*c%n,n,d,i,p,f,!1,u)}(a,T,O,i.vertical||x,o,24,S,r.overscaling,8192);for(let i of n)x&&function(r,n,i,o){let a=r.compareText;if(n in a){let r=a[n];for(let n=r.length-1;n>=0;n--)if(o.dist(r[n])<i)return!0}else a[n]=[];return a[n].push(o),!1}(r,x.text,I,i)||R(a,i,p)}else if("line-center"===M){for(let r of n.geometry)if(r.length>1){let n=function(r,n,i,o,a,s){let l=i?14.399999999999999*s:0,c=ce(i,o)*s,u=0,d=l7(r)/2;for(let i=0;i<r.length-1;i++){let o=r[i],a=r[i+1],s=o.dist(a);if(u+s>d){let h=(d-u)/s,p=t0(o.x,a.x,h),f=t0(o.y,a.y,h),m=new l8(p,f,0,a.angleTo(o),i);return!l||l9(r,m,c,l,n)?m:void 0}u+=s}}(r,O,i.vertical||x,o,0,S);n&&R(r,n,p)}}else if("Polygon"===n.type)for(let r of sS(n.geometry,0)){let n=function(r,n=1,i=!1){let o=1/0,a=1/0,s=-1/0,l=-1/0,c=r[0];for(let r=0;r<c.length;r++){let n=c[r];(!r||n.x<o)&&(o=n.x),(!r||n.y<a)&&(a=n.y),(!r||n.x>s)&&(s=n.x),(!r||n.y>l)&&(l=n.y)}let u=Math.min(s-o,l-a),d=u/2,h=new cc([],cd);if(0===u)return new C(o,a);for(let n=o;n<s;n+=u)for(let i=a;i<l;i+=u)h.push(new ch(n+d,i+d,d,r));let p=function(r){let n=0,i=0,o=0,a=r[0];for(let r=0,s=a.length,l=s-1;r<s;l=r++){let s=a[r],c=a[l],u=s.x*c.y-c.x*s.y;i+=(s.x+c.x)*u,o+=(s.y+c.y)*u,n+=3*u}return new ch(i/n,o/n,0,r)}(r),f=h.length;for(;h.length;){let o=h.pop();(o.d>p.d||!p.d)&&(p=o,i&&console.log("found best %d after %d probes",Math.round(1e4*o.d)/1e4,f)),o.max-p.d<=n||(d=o.h/2,h.push(new ch(o.p.x-d,o.p.y-d,d,r)),h.push(new ch(o.p.x+d,o.p.y-d,d,r)),h.push(new ch(o.p.x-d,o.p.y+d,d,r)),h.push(new ch(o.p.x+d,o.p.y+d,d,r)),f+=4)}return i&&(console.log(`num probes: ${f}`),console.log(`best distance: ${p.d}`)),p.p}(r,16);R(r[0],new l8(n.x,n.y,0,0,void 0),p)}else if("LineString"===n.type)for(let r of n.geometry)R(r,new l8(r[0].x,r[0].y,0,0,void 0),p);else if("Point"===n.type)for(let r of n.geometry)for(let n of r)R([n],new l8(n.x,n.y,0,0,void 0),p)}(r,s,y,x,o,f,v,0,_,w,l,c,d)}s&&r.generateCollisionDebugBuffers(u,r.collisionBoxArray)}(a,l,r.positions,c,n.iconPositions,this.showCollisionBoxes,i,this.tileID.canonical,this.tileZoom,this.projection)):a.hasPattern&&(a instanceof ll||a instanceof sC||a instanceof sW)&&(uD(a.layers,this.zoom,i),a.addFeatures(m,this.tileID.canonical,n.patternPositions,i,this.tileTransform))}this.status="done",a(null,{buckets:z(p).filter(r=>!r.isEmpty()),featureIndex:h,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:r.image,lineAtlas:f,imageAtlas:n,glyphMap:this.returnDependencies?l:null,iconMap:this.returnDependencies?c:null,glyphPositions:this.returnDependencies?r.positions:null})}},b=W(m.glyphDependencies,r=>Object.keys(r).map(Number));Object.keys(b).length?o.send("getGlyphs",{uid:this.uid,stacks:b},(r,n)=>{s||(s=r,l=n,y())},void 0,!1,v):l={};let x=Object.keys(m.iconDependencies);x.length?o.send("getImages",{icons:x,source:this.source,tileID:this.tileID,type:"icons"},(r,n)=>{s||(s=r,c=n,y())},void 0,!1,v):c={};let _=Object.keys(m.patternDependencies);_.length?o.send("getImages",{icons:_,source:this.source,tileID:this.tileID,type:"patterns"}
170,(r,n)=>{s||(s=r,u=n,y())},void 0,!1,v):u={},y()}}function uD(r,n,i){let o=new nH(n);for(let n of r)n.recalculate(o,i)}class uL{constructor(r){this.entries={},this.scheduler=r}request(r,n,i,o){let a=this.entries[r]=this.entries[r]||{callbacks:[]};if(a.result){let[r,i]=a.result;return this.scheduler?this.scheduler.add(()=>{o(r,i)},n):o(r,i),()=>{}}return a.callbacks.push(o),a.cancel||(a.cancel=i((i,o)=>{for(let r of(a.result=[i,o],a.callbacks))this.scheduler?this.scheduler.add(()=>{r(i,o)},n):r(i,o);setTimeout(()=>delete this.entries[r],3e3)})),()=>{a.result||(a.callbacks=a.callbacks.filter(r=>r!==o),a.callbacks.length||(a.cancel(),delete this.entries[r]))}}}function uz(r,n,i){let o=JSON.stringify(r.request);return r.data&&(this.deduped.entries[o]={result:[null,r.data]}),this.deduped.request(o,{type:"parseTile",isSymbolTile:r.isSymbolTile,zoom:r.tileZoom},n=>{let o=eg(r.request,(r,o,a,s)=>{r?n(r):o&&n(null,{vectorTile:i?void 0:new sF(new lU(o)),rawData:o,cacheControl:a,expires:s})});return()=>{o.cancel(),n()}},n)}let uB=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class uF{static from(r){if(!(r instanceof ArrayBuffer))throw Error("Data must be an instance of ArrayBuffer.");let[n,i]=new Uint8Array(r,0,2);if(219!==n)throw Error("Data does not appear to be in a KDBush format.");let o=i>>4;if(1!==o)throw Error(`Got v${o} data when expected v1.`);let a=uB[15&i];if(!a)throw Error("Unrecognized array type.");let[s]=new Uint16Array(r,2,1),[l]=new Uint32Array(r,4,1);return new uF(l,s,a,r)}constructor(r,n=64,i=Float64Array,o){if(isNaN(r)||r<0)throw Error(`Unpexpected numItems value: ${r}.`);this.numItems=+r,this.nodeSize=Math.min(Math.max(+n,2),65535),this.ArrayType=i,this.IndexArrayType=r<65536?Uint16Array:Uint32Array;let a=uB.indexOf(this.ArrayType),s=2*r*this.ArrayType.BYTES_PER_ELEMENT,l=r*this.IndexArrayType.BYTES_PER_ELEMENT,c=(8-l%8)%8;if(a<0)throw Error(`Unexpected typed array class: ${i}.`);o&&o instanceof ArrayBuffer?(this.data=o,this.ids=new this.IndexArrayType(this.data,8,r),this.coords=new this.ArrayType(this.data,8+l+c,2*r),this._pos=2*r,this._finished=!0):(this.data=new ArrayBuffer(8+s+l+c),this.ids=new this.IndexArrayType(this.data,8,r),this.coords=new this.ArrayType(this.data,8+l+c,2*r),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+a]),new Uint16Array(this.data,2,1)[0]=n,new Uint32Array(this.data,4,1)[0]=r)}add(r,n){let i=this._pos>>1;return this.ids[i]=i,this.coords[this._pos++]=r,this.coords[this._pos++]=n,i}finish(){let r=this._pos>>1;if(r!==this.numItems)throw Error(`Added ${r} items when expected ${this.numItems}.`);return function r(n,i,o,a,s,l){if(s-a<=o)return;let c=a+s>>1;(function r(n,i,o,a,s,l){for(;s>a;){if(s-a>600){let c=s-a+1,u=o-a+1,d=Math.log(c),h=.5*Math.exp(2*d/3),p=.5*Math.sqrt(d*h*(c-h)/c)*(u-c/2<0?-1:1);r(n,i,o,Math.max(a,Math.floor(o-u*h/c+p)),Math.min(s,Math.floor(o+(c-u)*h/c+p)),l)}let c=i[2*o+l],u=a,d=s;for(uN(n,i,a,o),i[2*s+l]>c&&uN(n,i,a,s);u<d;){for(uN(n,i,u,d),u++,d--;i[2*u+l]<c;)u++;for(;i[2*d+l]>c;)d--}i[2*a+l]===c?uN(n,i,a,d):uN(n,i,++d,s),d<=o&&(a=d+1),o<=d&&(s=d-1)}})(n,i,c,a,s,l),r(n,i,o,a,c-1,1-l),r(n,i,o,c+1,s,1-l)}(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(r,n,i,o){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:a,coords:s,nodeSize:l}=this,c=[0,a.length-1,0],u=[];for(;c.length;){let d=c.pop()||0,h=c.pop()||0,p=c.pop()||0;if(h-p<=l){for(let l=p;l<=h;l++){let c=s[2*l],d=s[2*l+1];c>=r&&c<=i&&d>=n&&d<=o&&u.push(a[l])}continue}let f=p+h>>1,m=s[2*f],g=s[2*f+1];m>=r&&m<=i&&g>=n&&g<=o&&u.push(a[f]),(0===d?r<=m:n<=g)&&(c.push(p),c.push(f-1),c.push(1-d)),(0===d?i>=m:o>=g)&&(c.push(f+1),c.push(h),c.push(1-d))}return u}within(r,n,i){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:o,coords:a,nodeSize:s}=this,l=[0,o.length-1,0],c=[],u=i*i;for(;l.length;){let d=l.pop()||0,h=l.pop()||0,p=l.pop()||0;if(h-p<=s){for(let i=p;i<=h;i++)uV(a[2*i],a[2*i+1],r,n)<=u&&c.push(o[i]);continue}let f=p+h>>1,m=a[2*f],g=a[2*f+1];uV(m,g,r,n)<=u&&c.push(o[f]),(0===d?r-i<=m:n-i<=g)&&(l.push(p),l.push(f-1),l.push(1-d)),(0===d?r+i>=m:n+i>=g)&&(l.push(f+1),l.push(h),l.push(1-d))}return c}}function uN(r,n,i,o){uU(r,i,o),uU(n,2*i,2*o),uU(n,2*i+1,2*o+1)}function uU(r,n,i){let o=r[n];r[n]=r[i],r[i]=o}function uV(r,n,i,o){let a=r-i,s=n-o;return a*a+s*s}r.ARRAY_TYPE=op,r.AUTH_ERR_MSG=eb,r.Aabb=o1,r.Actor=class{constructor(r,n,i){this.target=r,this.parent=n,this.mapId=i,this.callbacks={},this.cancelCallbacks={},$(["receive"],this),this.target.addEventListener("message",this.receive,!1),this.globalScope=Q()?r:f,this.scheduler
170=new c6}send(r,n,i,o,a=!1,s){let l=Math.round(1e18*Math.random()).toString(36).substring(0,10);i&&(i.metadata=s,this.callbacks[l]=i);let c=er(this.globalScope)?void 0:[];return this.target.postMessage({id:l,type:r,hasCallback:!!i,targetMapId:o,mustQueue:a,sourceMapId:this.mapId,data:nO(n,c)},c),{cancel:()=>{i&&delete this.callbacks[l],this.target.postMessage({id:l,type:"<cancel>",targetMapId:o,sourceMapId:this.mapId})}}}receive(r){let n=r.data,i=n.id;if(i&&(!n.targetMapId||this.mapId===n.targetMapId)){if("<cancel>"===n.type){let r=this.cancelCallbacks[i];delete this.cancelCallbacks[i],r&&r.cancel()}else if(n.mustQueue||Q()){let r=this.callbacks[i];this.cancelCallbacks[i]=this.scheduler.add(()=>this.processTask(i,n),r&&r.metadata||{type:"message"})}else this.processTask(i,n)}}processTask(r,n){if("<response>"===n.type){let i=this.callbacks[r];delete this.callbacks[r],i&&(n.error?i(nj(n.error)):i(null,nj(n.data)))}else{let i=er(this.globalScope)?void 0:[],o=n.hasCallback?(n,o)=>{delete this.cancelCallbacks[r],this.target.postMessage({id:r,type:"<response>",sourceMapId:this.mapId,error:n?nO(n):null,data:nO(o,i)},i)}:r=>{},a=nj(n.data);if(this.parent[n.type])this.parent[n.type](n.sourceMapId,a,o);else if(this.parent.getWorkerSource){let r=n.type.split(".");this.parent.getWorkerSource(n.sourceMapId,r[0],a.source)[r[1]](a,o)}else o(Error(`Could not find function ${n.type}`))}}remove(){this.scheduler.remove(),this.target.removeEventListener("message",this.receive,!1)}},r.CanonicalTileID=s4,r.Color=tf,r.ColorMode=uS,r.CullFaceMode=uT,r.DEMData=ub,r.DataConstantProperty=n3,r.DedupedRequest=uL,r.DepthMode=u_,r.EXTENT=8192,r.Elevation=class{isDataAvailableAtPoint(r){let n=this._source();if(this.isUsingMockSource()||!n||r.y<0||r.y>1)return!1;let i=n.getSource().maxzoom,o=1<<i,a=Math.floor(r.x),s=Math.floor((r.x-a)*o),l=Math.floor(r.y*o),c=this.findDEMTileFor(new s6(i,a,i,s,l));return!(!c||!c.dem)}getAtPointOrZero(r,n=0){return this.getAtPoint(r,n)||0}getAtPoint(r,n,i=!0){if(this.isUsingMockSource())return null;null==n&&(n=null);let o=this._source();if(!o||r.y<0||r.y>1)return n;let a=o.getSource().maxzoom,s=1<<a,l=Math.floor(r.x),c=r.x-l,u=new s6(a,l,a,Math.floor(c*s),Math.floor(r.y*s)),d=this.findDEMTileFor(u);if(!d||!d.dem)return n;let h=d.dem,p=1<<d.tileID.canonical.z,f=(c*p-d.tileID.canonical.x)*h.dim,m=(r.y*p-d.tileID.canonical.y)*h.dim,g=Math.floor(f),v=Math.floor(m);return(i?this.exaggeration():1)*t0(t0(h.get(g,v),h.get(g,v+1),m-v),t0(h.get(g+1,v),h.get(g+1,v+1),m-v),f-g)}getAtTileOffset(r,n,i){let o=1<<r.canonical.z;return this.getAtPointOrZero(new aj(r.wrap+(r.canonical.x+n/8192)/o,(r.canonical.y+i/8192)/o))}getAtTileOffsetFunc(r,n,i,o){return a=>{let s=this.getAtTileOffset(r,a.x,a.y),l=o.upVector(r.canonical,a.x,a.y);return oZ(l,l,s*o.upVectorScale(r.canonical,n,i).metersToTile),l}}getForTilePoints(r,n,i,o){if(this.isUsingMockSource())return!1;let a=uO.create(this,r,o);return!!a&&(n.forEach(r=>{r[2]=this.exaggeration()*a.getElevationAt(r[0],r[1],i)}),!0)}getMinMaxForTile(r){if(this.isUsingMockSource())return null;let n=this.findDEMTileFor(r);if(!n||!n.dem)return null;let i=n.dem.tree,o=n.tileID,a=1<<r.canonical.z-o.canonical.z,s=r.canonical.x/a-o.canonical.x,l=r.canonical.y/a-o.canonical.y,c=0;for(let n=0;n<r.canonical.z-o.canonical.z&&!i.leaves[c];n++){s*=2,l*=2;let r=2*Math.floor(l)+Math.floor(s);c=i.childOffsets[c]+r,s%=1,l%=1}return{min:this.exaggeration()*i.minimums[c],max:this.exaggeration()*i.maximums[c]}}getMinElevationBelowMSL(){throw Error("Pure virtual method called.")}raycast(r,n,i){throw Error("Pure virtual method called.")}pointCoordinate(r){throw Error("Pure virtual method called.")}_source(){throw Error("Pure virtual method called.")}isUsingMockSource(){throw Error("Pure virtual method called.")}exaggeration(){throw Error("Pure virtual method called.")}findDEMTileFor(r){throw Error("Pure virtual method called.")}get visibleDemTiles(){throw Error("Getter must be implemented in subclass.")}},r.ErrorEvent=eH,r.EvaluationParameters=nH,r.Event=eW,r.Evented=eX,r.FillExtrusionBucket=sW,r.Frustum=o0,r.FrustumCorners=oQ,r.G
170LOBE_RADIUS=o2,r.GLOBE_SCALE_MATCH_LATITUDE=45,r.GLOBE_ZOOM_THRESHOLD_MAX=6,r.GLOBE_ZOOM_THRESHOLD_MIN=5,r.GlobeSharedBuffers=class{constructor(r){this._createGrid(r),this._createPoles(r)}destroy(){for(let r of(this._poleIndexBuffer.destroy(),this._gridBuffer.destroy(),this._gridIndexBuffer.destroy(),this._poleNorthVertexBuffer.destroy(),this._poleSouthVertexBuffer.destroy(),this._poleSegments))r.destroy();for(let r of this._gridSegments)r.withSkirts.destroy(),r.withoutSkirts.destroy();if(this._wireframeIndexBuffer)for(let r of(this._wireframeIndexBuffer.destroy(),this._wireframeSegments))r.destroy()}_fillGridMeshWithLods(r,n){let i=new ii,o=new i_,a=[],s=r+1+2,l=n[0]+1,c=n[0]+1+(1+n.length),u=(r,n,i)=>{let o=r===s-1?r-2:0===r?r:r-1;return[o+=i?24575:0,n]};for(let r=0;r<s;++r)i.emplaceBack(...u(r,0,!0));for(let r=0;r<l;++r)for(let n=0;n<s;++n)i.emplaceBack(...u(n,r,0===n||n===s-1));for(let r=0;r<n.length;++r){let o=n[r];for(let r=0;r<s;++r)i.emplaceBack(...u(r,o,!0))}for(let r=0;r<n.length;++r){let l=o.length,u=n[r]+1+2,d=new i_;for(let i=0;i<u-1;i++){let a=i===u-2,l=a?s*(c-n.length+r-i):s;for(let r=0;r<s-1;r++){let n=i*s+r;0===i||a||0===r||r===s-2?(d.emplaceBack(n+1,n,n+l),d.emplaceBack(n+l,n+l+1,n+1)):(o.emplaceBack(n+1,n,n+l),o.emplaceBack(n+l,n+l+1,n+1))}}let h=od.simpleSegment(0,l,i.length,o.length-l);for(let r=0;r<d.uint16.length;r+=3)o.emplaceBack(d.uint16[r],d.uint16[r+1],d.uint16[r+2]);let p=od.simpleSegment(0,l,i.length,o.length-l);a.push({withoutSkirts:h,withSkirts:p})}return{vertices:i,indices:o,segments:a}}_createGrid(r){let n=this._fillGridMeshWithLods(64,o3);this._gridSegments=n.segments,this._gridBuffer=r.createVertexBuffer(n.vertices,oK.members),this._gridIndexBuffer=r.createIndexBuffer(n.indices,!0)}_createPoles(r){let n=new i_;for(let r=0;r<=64;r++)n.emplaceBack(0,r+1,r+2);this._poleIndexBuffer=r.createIndexBuffer(n,!0);let i=new iE,o=new iE;this._poleSegments=[];for(let r=0,n=0;r<5;r++){let a=360/(1<<r);i.emplaceBack(0,-o2,0,.5,0),o.emplaceBack(0,-o2,0,.5,1);for(let r=0;r<=64;r++){let n=r/64,s=t0(0,a,n),[l,c,u]=aa(ay,ab,s,o2);i.emplaceBack(l,c,u,n,0),o.emplaceBack(l,c,u,n,1)}this._poleSegments.push(od.simpleSegment(n,0,66,64)),n+=66}this._poleNorthVertexBuffer=r.createVertexBuffer(i,oX,!1),this._poleSouthVertexBuffer=r.createVertexBuffer(o,oX,!1)}getGridBuffers(r,n){return[this._gridBuffer,this._gridIndexBuffer,n?this._gridSegments[r].withSkirts:this._gridSegments[r].withoutSkirts]}getPoleBuffers(r){return[this._poleNorthVertexBuffer,this._poleSouthVertexBuffer,this._poleIndexBuffer,this._poleSegments[r]]}getWirefameBuffers(r,n){if(!this._wireframeSegments){let n=new iC;this._wireframeSegments=[];for(let r=0,i=0;r<o3.length;r++){let o=o3[r];for(let r=1;r<o+1;r++)for(let i=1;i<65;i++){let o=67*r+i;n.emplaceBack(o,o+1),n.emplaceBack(o,o+67),n.emplaceBack(o,o+67+1)}let a=192*o;this._wireframeSegments.push(od.simpleSegment(0,i,(o+1)*67,a)),i+=a}this._wireframeIndexBuffer=r.createIndexBuffer(n)}return[this._gridBuffer,this._wireframeIndexBuffer,this._wireframeSegments[n]]}},r.GlyphManager=co,r.ImagePosition=lW,r.KDBush=uF,r.LivePerformanceUtils={mark(r){f.performance.mark(r)},measure(r,n,i){f.performance.measure(r,n,i)}},r.LngLat=aS,r.LngLatBounds=oh,r.LocalGlyphMode=ci,r.MAX_MERCATOR_LATITUDE=85.051129,r.MercatorCoordinate=aj,r.ONE_EM=24,r.OverscaledTileID=s6,r.PerformanceMarkers=eF,r.Point=C,r.Properties=n6,r.RGBAImage=a6,r.Ray=oJ,r.RequestManager=class{constructor(r,n,i){this._transformRequestFn=r,this._customAccessToken=n,this._silenceAuthErrors=!!i,this._createSkuToken()}_createSkuToken(){let r=function(){let r="";for(let n=0;n<10;n++)r+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1","01",r].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=r.token,this._skuTokenExpiresAt=r.tokenExpiresAt}_isSkuTokenExpired(){return Date.now()>this._skuTokenExpiresAt}
170transformRequest(r,n){return this._transformRequestFn&&this._transformRequestFn(r,n)||{url:r}}normalizeStyleURL(r,n){if(!ex(r))return r;let i=ek(r);return i.path=`/styles/v1${i.path}`,this._makeAPIURL(i,this._customAccessToken||n)}normalizeGlyphsURL(r,n){if(!ex(r))return r;let i=ek(r);return i.path=`/fonts/v1${i.path}`,this._makeAPIURL(i,this._customAccessToken||n)}normalizeSourceURL(r,n,i,o){if(!ex(r))return r;let a=ek(r);return a.path=`/v4/${a.authority}.json`,a.params.push("secure"),i&&a.params.push(`language=${i}`),o&&a.params.push(`worldview=${o}`),this._makeAPIURL(a,this._customAccessToken||n)}normalizeSpriteURL(r,n,i,o){let a=ek(r);return ex(r)?(a.path=`/styles/v1${a.path}/sprite${n}${i}`,this._makeAPIURL(a,this._customAccessToken||o)):(a.path+=`${n}${i}`,eC(a))}normalizeTileURL(r,n,i){if(this._isSkuTokenExpired()&&this._createSkuToken(),r&&!ex(r))return r;let o=ek(r);o.path=o.path.replace(/(\.(png|jpg)\d*)(?=$)/,`${n||i&&"raster"!==o.authority&&512===i?"@2x":""}${v.supported?".webp":"$1"}`),"raster"===o.authority?o.path=`/${g.RASTER_URL_PREFIX}${o.path}`:(o.path=o.path.replace(/^.+\/v4\//,"/"),o.path=`/${g.TILE_URL_VERSION}${o.path}`);let a=this._customAccessToken||function(r){for(let n of r){let r=n.match(/^access_token=(.*)$/);if(r)return r[1]}return null}(o.params)||g.ACCESS_TOKEN;return g.REQUIRE_ACCESS_TOKEN&&a&&this._skuToken&&o.params.push(`sku=${this._skuToken}`),this._makeAPIURL(o,a)}canonicalizeTileURL(r,n){let i=ek(r);if(!i.path.match(/^(\/v4\/|\/raster\/v1\/)/)||!i.path.match(/\.[\w]+$/))return r;let o="mapbox://";i.path.match(/^\/raster\/v1\//)?o+=`raster/${i.path.replace(`/${g.RASTER_URL_PREFIX}/`,"")}`:o+=`tiles/${i.path.replace(`/${g.TILE_URL_VERSION}/`,"")}`;let a=i.params;return n&&(a=a.filter(r=>!r.match(/^access_token=/))),a.length&&(o+=`?${a.join("&")}`),o}canonicalizeTileset(r,n){let i=!!n&&ex(n),o=[];for(let n of r.tiles||[])e_(n)?o.push(this.canonicalizeTileURL(n,i)):o.push(n);return o}_makeAPIURL(r,n){let i="See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes",o=ek(g.API_URL);if(r.protocol=o.protocol,r.authority=o.authority,"http"===r.protocol){let n=r.params.indexOf("secure");n>=0&&r.params.splice(n,1)}if("/"!==o.path&&(r.path=`${o.path}${r.path}`),!g.REQUIRE_ACCESS_TOKEN)return eC(r);if(n=n||g.ACCESS_TOKEN,!this._silenceAuthErrors){if(!n)throw Error(`An API access token is required to use Mapbox GL. ${i}`);if("s"===n[0])throw Error(`Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). ${i}`)}return r.params=r.params.filter(r=>-1===r.indexOf("access_token")),r.params.push(`access_token=${n||""}`),eC(r)}},r.ResourceType=eh,r.SegmentVector=od,r.SourceCache=uE,r.StencilMode=uw,r.StructArrayLayout1ui2=iP,r.StructArrayLayout2f1f2i16=iy,r.StructArrayLayout2i4=ii,r.StructArrayLayout2ui4=iC,r.StructArrayLayout3f12=ix,r.StructArrayLayout3ui6=i_,r.StructArrayLayout4i8=ia,r.StructArrayLayout5f20=iE,r.Texture=c4,r.Tile=us,r.Transitionable=nK,r.Uniform1f=iQ,r.Uniform1i=class extends iJ{constructor(r){super(r),this.current=0}set(r,n,i){this.fetchUniformLocation(r,n)&&this.current!==i&&(this.current=i,this.gl.uniform1i(this.location,i))}},r.Uniform2f=class extends iJ{constructor(r){super(r),this.current=[0,0]}set(r,n,i){this.fetchUniformLocation(r,n)&&(i[0]===this.current[0]&&i[1]===this.current[1]||(this.current=i,this.gl.uniform2f(this.location,i[0],i[1])))}},r.Uniform3f=class extends iJ{constructor(r){super(r),this.current=[0,0,0]}set(r,n,i){this.fetchUniformLocation(r,n)&&(i[0]===this.current[0]&&i[1]===this.current[1]&&i[2]===this.current[2]||(this.current=i,this.gl.uniform3f(this.location,i[0],i[1],i[2])))}},r.Uniform4f=i0,r.UniformColor=i1,r.UniformMatrix2f=class extends iJ{constructor(r){super(r),this.current=i4}set(r,n,i){if(this.fetchUniformLocation(r,n)){for(let r=0;r<4;r++)if(i[r]!==this.current[r]){this.current=i,this.gl.uniformMatrix2fv(this.location,!1,i);break}}}},r.UniformMatrix3f=class extends iJ{constructor(r){super(r),this.current=i3}set(r,n,i){if(this.fetchUniformLocation(r,n)){for(let r=0;r<9;r++)if(i[r]!==this.current[r]){this.current=i,this.gl.uniformMatrix3fv(this.location,!1,i);break}}}},r.UniformMatrix4f=class extends iJ{constructor(r){super(r),this.current=i2}set(r,n,i){if(this.fetchUniformLocation(r,n)){if(i[12]!==this.current[12]||i[0]!==this.current[0])return this.current=i,void this.gl.uniformMatrix4fv(this.location,!1,i);for(let r=1;r<16;r++)if(i[r]!==this.current[r]){this.current=i,this.gl.uniformMatrix4fv(this.location,!1,i);break}}}},r.UnwrappedTileID=s5,r.ValidationError=rJ,r.VectorTileFeature=sN,r.VectorTileWorkerSource=class extends eX{constructor(r,n,i,o,a){super(),this.actor=r,this.layerIndex=n,this.availableImages=i,this.loadVectorData=a||uz,this.loading={},this.loaded={},this.deduped=new uL(r.scheduler),this.isSpriteLoaded=o,this.scheduler
170=r.scheduler}loadTile(r,n){let i=r.uid,o=r&&r.request,a=o&&o.collectResourceTiming,s=this.loading[i]=new uR(r);s.abort=this.loadVectorData(r,(l,c)=>{let u=!this.loading[i];if(delete this.loading[i],u||l||!c)return s.status="done",u||(this.loaded[i]=s),n(l);let d=c.rawData,h={};c.expires&&(h.expires=c.expires),c.cacheControl&&(h.cacheControl=c.cacheControl),s.vectorTile=c.vectorTile||new sF(new lU(d));let p=()=>{s.parse(s.vectorTile,this.layerIndex,this.availableImages,this.actor,(r,i)=>{if(r||!i)return n(r);let s={};if(a){let r=eV(o);r.length>0&&(s.resourceTiming=JSON.parse(JSON.stringify(r)))}n(null,B({rawTileData:d.slice(0)},i,h,s))})};this.isSpriteLoaded?p():this.once("isSpriteLoaded",()=>{this.scheduler?this.scheduler.add(p,{type:"parseTile",isSymbolTile:r.isSymbolTile,zoom:r.tileZoom}):p()}),this.loaded=this.loaded||{},this.loaded[i]=s})}reloadTile(r,n){let i=this.loaded,o=r.uid,a=this;if(i&&i[o]){let s=i[o];s.showCollisionBoxes=r.showCollisionBoxes,s.enableTerrain=!!r.enableTerrain,s.projection=r.projection,s.tileTransform=cw(r.tileID.canonical,r.projection);let l=(r,i)=>{let o=s.reloadCallback;o&&(delete s.reloadCallback,s.parse(s.vectorTile,a.layerIndex,this.availableImages,a.actor,o)),n(r,i)};"parsing"===s.status?s.reloadCallback=l:"done"===s.status&&(s.vectorTile?s.parse(s.vectorTile,this.layerIndex,this.availableImages,this.actor,l):l())}}abortTile(r,n){let i=r.uid,o=this.loading[i];o&&(o.abort&&o.abort(),delete this.loading[i]),n()}removeTile(r,n){let i=this.loaded,o=r.uid;i&&i[o]&&delete i[o],n()}},r.WritingMode=lX,r.ZoomDependentExpression=rX,r.add=oO,r.addDynamicAttributes=cq,r.adjoint=function(r,n){var i=n[0],o=n[1],a=n[2],s=n[3],l=n[4],c=n[5],u=n[6],d=n[7],h=n[8];return r[0]=l*h-c*d,r[1]=a*d-o*h,r[2]=o*c-a*l,r[3]=c*u-s*h,r[4]=i*h-a*u,r[5]=a*s-i*c,r[6]=s*d-l*u,r[7]=o*u-i*d,r[8]=i*l-o*s,r},r.asyncAll=L,r.bezier=M,r.bindAll=$,r.boundsAttributes=uo,r.bufferConvexPolygon=function(r,n){let i=[];for(let o=0;o<r.length;o++){let a=D(o-1,-1,r.length-1),s=D(o+1,-1,r.length-1),l=r[o],c=r[s],u=r[a].sub(l).unit(),d=c.sub(l).unit(),h=d.angleWithSep(u.x,u.y),p=u.add(d).unit().mult(-1*n/Math.sin(h/2));i.push(l.add(p))}return i},r.cacheEntryPossiblyAdded=function(r){++ed>es&&(r.getActor().send("enforceCacheSizeLimit",ea),ed=0)},r.calculateGlobeLabelMatrix=function(r,n){let{x:i,y:o}=r.point,a=ap(i,o,r.worldSize/r._pixelsPerMercatorPixel,0,0);return oy(a,a,ah(ae(n)))},r.calculateGlobeMatrix=function(r){let{x:n,y:i}=r.point,{lng:o,lat:a}=r._center;return ap(n,i,r.worldSize,o,a)},r.calculateGlobeMercatorMatrix=function(r){let n=r.pixelsPerMeter,i=n/(1/aT(r.center.lat)),o=og(new Float64Array(16));return ob(o,o,[r.point.x,r.point.y,0]),ox(o,o,[i,i,n]),Float32Array.from(o)},r.circumferenceAtLatitude=aT,r.clamp=Z,r.clearTileCache=function(r){if(!el())return;let n=f.caches.delete(eo);r&&n.catch(r).then(()=>r())},r.clipLine=ct,r.clone=function(r){var n=new op(16);return n[0]=r[0],n[1]=r[1],n[2]=r[2],n[3]=r[3],n[4]=r[4],n[5]=r[5],n[6]=r[6],n[7]=r[7],n[8]=r[8],n[9]=r[9],n[10]=r[10],n[11]=r[11],n[12]=r[12],n[13]=r[13],n[14]=r[14],n[15]=r[15],n},r.clone$1=X,r.collisionCircleLayout=ly,r.config=g,r.conjugate=function(r,n){return r[0]=-n[0],r[1]=-n[1],r[2]=-n[2],r[3]=n[3],r},r.create=function(){var r=new op(16);return op!=Float32Array&&(r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[11]=0,r[12]=0,r[13]=0,r[14]=0),r[0]=1,r[5]=1,r[10]=1,r[15]=1,r},r.create$1=of,r.createExpression=rW,r.createLayout=it,r.createStyleLayer=function(r){return"custom"===r.type?new c0(r):new c3[r.type](r)},r.cross=oz,r.degToRad=function(r){return r*P},r.distance=function(r,n){return Math.hypot(n[0]-r[0],n[1]-r[1],n[2]-r[2])},r.div=function(r,n,i){return r[0]=n[0]/i[0],r[1]=n[1]/i[1],r[2]=n[2]/i[2],r},r.dot=oL,r.earthRadius=ax,r.ease=I,r.easeCubicInOut=A,r.ecefToLatLng=function([r,n,i]){let o=Math.hypot(r,n,i),a=Math.atan2(r,i),s=.5*Math.PI-Math.acos(-n/o);return new aS(a*O,s*O)},r.emitValidationErrors=nw,r.endsWith=G,r.enforceCacheSizeLimit=function(r){ec(),i&&i.then(n=>{n.keys().then(i=>{for(let o=0;o<i.length-r;o++)n.delete(i[o])})})},r.evaluateSizeForFeature=lx,r.evaluateSizeForZoom=l_,r.evaluateVariableOffset=cm,r.evented=nq,r.exactEquals=function(r,n){return r[0]===n[0]&&r[1]===n[1]&&r[2]===n[2]&&r[3]===n[3]},r.exactEquals$1=function(r,n){return r[0]===n[0]&&r[1]===n[1]&&r[2]===n[2]},r.exported=eq,r.exported$1=v,r.extend=B,r.extend$1=eK,r.fillExtrusionHeightLift=sQ,r.filterObject=H,r.fromMat4=function(r,n){return r[0]=n[0],r[1]=n[1],r[2]=n[2],r[3]=n[4],r[4]=n[5],r[5]=n[6],r[6]=n[8],r[7]=n[9],r[8]=n[10],r},r.fromQuat=function(r,n){var i=n[0],o=n[1],a=n[2],s=n[3],l=i+i,c=o+o,u=a+a,d=i*l,h=o*l,p=o*c,f=a*l,m=a*c,g=a*u,v=s*l,y=s*c,b=s*u;return r[0]=1-p-g,r[1]=h+b,r[2]=f-y,r[3]=0,r[4]=h-b,r[5]=1-d-g,r[6]=m+v,r[7]=0,r[8]=f+y,r[9]=m-v,r[10]=1-d-p,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r},r.fromRotation=function(r,n){var i=Math.sin(n),o=Math.cos(n);return r[0]=o,r[1]=i,r[2]=0,r[3]=-i,r[4]=o,r[5]=0,r[6]=0,r[7]=0,r[8]=1,r},r.fromScaling=oS,r.furthestTileCorner=function(r){let n=Math.round((r+45+360)%360/90)%4;return j[n]},r.getAABBPointSquareDist=function(r,n,i){let o=0;for(let a=0;a<2;++a){let s=i?i[a]:0;r[a]>s&&(o+=(r[a]-s)*(r[a]-s)),n[a]<s&&(o+=(s-n[a])*(s-n[a]))}return o},r.getAnchorAlignment=l4,r.getAnchorJustification=cg,r.getBounds=function(r){let n=1/0,i=1/0,o=-1/0,a=-1/0;for(let s of r)n=Math.min(n,s.x),i=Math.min(i,s.y),o=Math.max(o,s.x),a=Math.max(a,s.y);return{min:new C(n,i),max:new C(o,a)}},r.getColumn=ei,r.getDefaultExportFromCjs=S,r.getGridMatrix=function(r,n,i,o){let a=n.getNorth(),s=n.getSouth(),l=n.getWest(),c=n.getEast(),u=1<<r.z,d=c-l,h=a-s,p=d/64,f=-h/o3[i],m=[0,p,0,f,0,0,a,l,0];if(r.z>0){let r=180/o;om(m,m,[r/d+1,0,0,0,r/h+1,0,-.5*r/p,.5*r/f,1])}return m[2]=u,m[5]=r.x,m[8]=r.y,m},r.getImage=ey,r.getJSON=function(r,n){return em(B(r,{type:"json"}),n)},r.getLatitudinalLod=function(r){r=Z(r,-80.051129,80.051129)/80.051129*90;let n=Math.pow(Math.abs(Math.sin(r*P)),3);return Math.round(n*(o3.length-1))},r.getMapSessionAPI=ez,r.getPerformanceMeasurement=eV,r.getProjection=cB,r.getRTLTextPluginStatus=n$,r.getReferrer=ef,r.getTilePoint=function(r,{x:n,y:i},o=0){return new C(((n-o)*r.scale-r.x)*8192,(i*r.scale-r.y)*8192)},r.getTileVec3=function(r,n,i=0){return oP(((n.x-i)*r.scale-r.x)*8192,(n.y*r.scale-r.y)*8192,n.z*aT(aP(n.y)))},r.getVideo=function(r,n){let i=f.document.createElement("video");i.muted=!0,i.onloadstart=function(){n(null,i)};for(let n=0;n<r.length;n++){let o=f.document.createElement("source");(function(r){let n=f.document.createElement("a");return n.href=r,n.protocol===f.document.location.protocol&&n.host===f.document.location.host})(r[n])||(i.crossOrigin="Anonymous"),o.src=r[n],i.appendChild(o)}return{cancel:()=>{}}},r.globeCenterToScreenPoint=function(r){let n=[0,0,0],i=og(new Float64Array(16));return oy(i,r.pixelMatrix,r.globeMatrix),oB(n,n,i),new C(n[0],n[1])},r.globeDenormalizeECEF=ah,r.globeECEFOrigin=function(r,n){let i=[0,0,0];return oB(i,i,ad(ae(n.canonical))),oB(i,i,r),i},r.globeMetersToEcef=o6,r.globeNormalizeECEF=ad,r.globePixelsToTileUnits=function(r,n){return 8192/(512*Math.pow(2,r))*ac(ae(n))},r.globePoleMatrixForTile=function(r,n,i){let o=og(new Float64Array(16)),a=(n/(1<<r)-.5)*Math.PI*2;return ow(o,i.globeMatrix,a),Float32Array.from(o)},r.globeTileBounds=ae,r.globeTiltAtLngLat=am,r.globeToMercatorTransition=af,r.globeUseCustomAntiAliasing=function(r,n,i){let o=af(i.zoom),a=r.style.map._antialias,s=!!n.extStandardDerivatives,l=n.extStandardDerivativesForceOff||r.terrain&&r.terrain.exaggeration()>0;return 0===o&&!a&&!l&&s},r.identity=og,r.identity$1=o$,r.invert=ov,r.isFullscreen=function(){return!!f.document.fullscreenElement||!!f.document.webkitFullscreenElement},r.isLngLatBehindGlobe=ag,r.isMapAuthenticated=function(r){return eB.has(r)},r.isMapboxURL=ex,r.isSafariWithAntialiasingBug=function(r){let n=r.navigator?r.navigator.userAgent:null;return!!er(r)&&n&&(n.match("Version/15.4")||n.match("Version/15.5")||n.match(/CPU (OS|iPhone OS) (15_4|15_5) like Mac OS X/))},r.latFromMercatorY=aP,r.latLngToECEF=as,r.len=oC,r.length=oC,r.length$1=function(r){return Math.hypot(r[0],r[1],r[2],r[3])},r.lngFromMercatorX=aC,r.loadVectorTile=uz,r.makeRequest=em,r.mapValue=function(r,n,i,o,a){return Z((r-n)/(i-n)*(a-o)+o,o,a)},r.mercatorScale=aO,r.mercatorXfromLng=aE,r.mercatorYfromLat=ak,r.mercatorZfromAltitude=function(r,n){return r/aT(n)},r.mul=oy,r.mul$1=oA,r.multiply=oy,r.multiply$1=om,r.multiply$2=oA,r.nextPowerOfTwo=V,r.normalize=oD,r.normalize$1=oU,r.normalize$2
170=oU,r.number=t0,r.ortho=function(r,n,i,o,a,s,l){var c=1/(n-i),u=1/(o-a),d=1/(s-l);return r[0]=-2*c,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=-2*u,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=2*d,r[11]=0,r[12]=(n+i)*c,r[13]=(a+o)*u,r[14]=(l+s)*d,r[15]=1,r},r.pbf=lk,r.perspective=function(r,n,i,o,a){var s,l=1/Math.tan(n/2);return r[0]=l/i,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=l,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[11]=-1,r[12]=0,r[13]=0,r[15]=0,null!=a&&a!==1/0?(r[10]=(a+o)*(s=1/(o-a)),r[14]=2*a*o*s):(r[10]=-1,r[14]=-2*o),r},r.pick=function(r,n){let i={};for(let o=0;o<n.length;o++){let a=n[o];a in r&&(i[a]=r[a])}return i},r.plugin=nW,r.pointGeometry=k,r.polesInViewport=function(r){let n=og(new Float64Array(16));oy(n,r.pixelMatrix,r.globeMatrix);let i=[0,o4,0],o=[0,o2,0];return oB(i,i,n),oB(o,o,n),[i[0]>0&&i[0]<=r.width&&i[1]>0&&i[1]<=r.height&&!ag(r,new aS(r.center.lat,90)),o[0]>0&&o[0]<=r.width&&o[1]>0&&o[1]<=r.height&&!ag(r,new aS(r.center.lat,-90))]},r.polygonContainsPoint=aq,r.polygonIntersectsBox=a$,r.polygonIntersectsPolygon=az,r.polygonizeBounds=function(r,n,i=0,o=!0){let a=new C(i,i),s=r.sub(a),l=n.add(a),c=[s,new C(l.x,s.y),l,new C(s.x,l.y)];return o&&c.push(s.clone()),c},r.posAttributes=oK,r.postMapLoadEvent=eZ,r.postPerformanceEvent=eD,r.postTurnstileEvent=eM,r.potpack=lG,r.prevPowerOfTwo=function(r){return r<=1?1:Math.pow(2,Math.floor(Math.log(r)/Math.LN2))},r.radToDeg=function(r){return r*O},r.refProperties=["type","source","source-layer","minzoom","maxzoom","filter","layout"],r.registerForPluginStateChange=function(r){return r({pluginStatus:nF,pluginURL:nN}),nq.on("pluginStateChange",r),r},r.removeAuthState=function(r){eB.delete(r)},r.renderColorRamp=a9,r.resample=aA,r.rotateX=o_,r.rotateX$1=oG,r.rotateY=ow,r.rotateY$1=oW,r.rotateZ=function(r,n,i){var o=Math.sin(i),a=Math.cos(i),s=n[0],l=n[1],c=n[2],u=n[3],d=n[4],h=n[5],p=n[6],f=n[7];return n!==r&&(r[8]=n[8],r[9]=n[9],r[10]=n[10],r[11]=n[11],r[12]=n[12],r[13]=n[13],r[14]=n[14],r[15]=n[15]),r[0]=s*a+d*o,r[1]=l*a+h*o,r[2]=c*a+p*o,r[3]=u*a+f*o,r[4]=d*a-s*o,r[5]=h*a-l*o,r[6]=p*a-c*o,r[7]=f*a-u*o,r},r.rotateZ$1=function(r,n,i){i*=.5;var o=n[0],a=n[1],s=n[2],l=n[3],c=Math.sin(i),u=Math.cos(i);return r[0]=o*u+a*c,r[1]=a*u-o*c,r[2]=s*u+l*c,r[3]=l*u-s*c,r},r.scale=ox,r.scale$1=oN,r.scale$2=oZ,r.scaleAndAdd=oR,r.set=function(r,n,i,o){return r[0]=n,r[1]=i,r[2]=o,r},r.setCacheLimits=function(r,n){ea=r,es=n},r.setColumn=function(r,n,i){r[4*n+0]=i[0],r[4*n+1]=i[1],r[4*n+2]=i[2],r[4*n+3]=i[3]},r.setRTLTextPlugin=function(r,n,i=!1){if(nF===nD||nF===nL||nF===nz)throw Error("setRTLTextPlugin cannot be called multiple times.");nN=eq.resolveURL(r),nF=nD,nB=n,nV(),i||nG()},r.smoothstep=R,r.spec=eY,r.squaredLength=function(r){var n=r[0],i=r[1],o=r[2];return n*n+i*i+o*o},r.storeAuthState=function(r,n){n?eB.add(r):eB.delete(r)},r.sub=oj,r.subtract=oj,r.symbolSize=lw,r.tileAABB=function(r,n,i,o,a,s,l,c,u){if("globe"===u.name)return function(r,n,i){let o=n/r.worldSize,a=r.globeMatrix;if(i.z<=1){let r=ae(i).getCorners();return an(r,a,o),o1.fromPoints(r)}let s=ai(i),l=ao(s);an(l,a,o);let c=Number.MAX_VALUE,u=[-c,-c,-c],d=[c,c,c];if(s.contains(r.center)){for(let r of l)oM(d,d,r),oI(u,u,r);u[2]=0;let n=r.point,i=[n.x*o,n.y*o,0];return oM(d,d,i),oI(u,u,i),new o1(d,u)}let h=[a[12]*o,a[13]*o,a[14]*o],p=s.getCenter(),f=Z(r.center.lat,-85.051129,85.051129),m=Z(p.lat,-85.051129,85.051129),g=aE(r.center.lng),v=ak(f),y=g-aE(p.lng),b=v-ak(m);y>.5?y-=1:y<-.5&&(y+=1);let x=0;Math.abs(y)>Math.abs(b)?x=y>=0?1:3:(x=b>=0?0:2,oR(h,h,[a[4]*o,a[5]*o,a[6]*o],-Math.sin((b>=0?s.getSouth():s.getNorth())*P)*o2));let _=l[x],w=l[(x+1)%4],S=new o9(_,w,h),T=[o7(S,0)||_[0],o7(S,1)||_[1],o7(S,2)||_[2]],E=af(r.zoom);if(E>0){let o=function({x:r,y:n,z:i},o,a,s,l){let c=1/(1<<i),u=r*c,d=u+c,h=n*c,p=h+c,f=0,m=(u+d)/2-s;return m>.5?f=-1:m<-.5&&(f=1),u=((u+f)*o-(s*=o))*a+s,d=((d+f)*o-s)*a+s,h=(h*o-(l*=o))*a+l,[[u,p=(p*o-l)*a+l,0],[d,p,0],[d,h,0],[u,h,0]]}(i,n,r._pixelsPerMercatorPixel,g,v);for(let r=0;r<l.length;r++)at(l[r],o[r],E);let a=oO([],o[x],o[(x+1)%4]);oZ(a,a,.5),at(T,a,E)}for(let r of l)oM(d,d,r),oI(u,u,r);return d[2]=Math.min(_[2],w[2]),oM(d,d,T),oI(u,u,T),new o1(d,u)}(r,n,new s4(i,o,a));let d=cw({z:i,x:o,y:a},u);return new o1([(s+d.x/d.scale)*n,n*(d.y/d.scale),l],[(s+d.x2/d.scale)*n,n*(d.y2/d.scale),c])},r.tileCornersToBounds=ai,r.tileTransform=cw,r.transformMat3=function(r,n,i){var o=n[0],a=n[1],s=n[2];return r[0]=o*i[0]+a*i[3]+s*i[6],r[1]=o*i[1]+a*i[4]+s*i[7],r[2]=o*i[2]+a*i[5]+s*i[8],r},r.transformMat4=oB,r.transformMat4$1=oV,r.transformQuat=oF,r.transitionTileAABBinECEF=ar,r.translate=ob,r.transpose=function(r,n){if(r===n){var i=n[1],o=n[2],a=n[5];r[1]=n[3],r[2]=n[6],r[3]=i,r[5]=n[7],r[6]=o,r[7]=a}else r[0]=n[0],r[1]=n[3],r[2]=n[6],r[3]=n[1],r[4]=n[4],r[5]=n[7],r[6]=n[2],r[7]=n[5],r[8]=n[8];return r},r.triggerPluginCompletionEvent=nU,r.uniqueId=N,r.updateGlobeVertexNormal=function(r,n,i,o,a){let s=5*n+2;r.float32[s+0]=i,r.float32[s+1]=o,r.float32[s+2]=a},r.validateCustomStyleLayer=function(r){let n=[],i=r.id;return void 0===i&&n.push({message:`layers.${i}: missing required property "id"`}),void 0===r.render&&n.push({message:`layers.${i}: missing required method "render"`}),r.renderingMode&&"2d"!==r.renderingMode&&"3d"!==r.renderingMode&&n.push({message:`layers.${i}: property "renderingMode" must be either "2d" or "3d"`}),n},r.validateFilter=r=>n_(ni(r)),r.validateFog=r=>n_(nf(r)),r.validateLayer=r=>n_(nl(r)),r.validateLight=r=>n_(nh(r)),r.validateSource=r=>n_(nd(r)),r.validateStyle=ny,r.validateTerrain=r=>n_(np(r)),r.values=z,r.vectorTile=sZ,r.version=m,r.warnOnce=K,r.window=f,r.wrap=D}
170),a(["./shared"],function(r){class n{constructor(r){this.keyCache={},r&&this.replace(r)}replace(r){this._layerConfigs={},this._layers={},this.update(r,[])}update(n,i){for(let i of n)this._layerConfigs[i.id]=i,(this._layers[i.id]=r.createStyleLayer(i)).compileFilter(),this.keyCache[i.id]&&delete this.keyCache[i.id];for(let r of i)delete this.keyCache[r],delete this._layerConfigs[r],delete this._layers[r];this.familiesBySource={};let o=function(n,i){let o={};for(let a=0;a<n.length;a++){let s=i&&i[n[a].id]||function(n){let i="";for(let o of r.refProperties)i+=`/${function r(n){if("number"==typeof n||"boolean"==typeof n||"string"==typeof n||null==n)return JSON.stringify(n);if(Array.isArray(n)){let i="[";for(let o of n)i+=`${r(o)},`;return`${i}]`}let i="{";for(let o of Object.keys(n).sort())i+=`${o}:${r(n[o])},`;return`${i}}`}(n[o])}`;return i}(n[a]);i&&(i[n[a].id]=s);let l=o[s];l||(l=o[s]=[]),l.push(n[a])}let a=[];for(let r in o)a.push(o[r]);return a}(r.values(this._layerConfigs),this.keyCache);for(let r of o){let n=r.map(r=>this._layers[r.id]),i=n[0];if("none"===i.visibility)continue;let o=i.source||"",a=this.familiesBySource[o];a||(a=this.familiesBySource[o]={});let s=i.sourceLayer||"_geojsonTileLayer",l=a[s];l||(l=a[s]=[]),l.push(n)}}}class i{loadTile(n,i){let{uid:o,encoding:a,rawImageData:s,padding:l,buildQuadTree:c}=n,u=r.window.ImageBitmap&&s instanceof r.window.ImageBitmap?this.getImageData(s,l):s;i(null,new r.DEMData(o,u,a,l<1,c))}getImageData(r,n){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(r.width,r.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d",{willReadFrequently:!0})),this.offscreenCanvas.width=r.width,this.offscreenCanvas.height=r.height,this.offscreenCanvasContext.drawImage(r,0,0,r.width,r.height);let i=this.offscreenCanvasContext.getImageData(-n,-n,r.width+2*n,r.height+2*n);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),i}}function o(r,n){if(0!==r.length){a(r[0],n);for(var i=1;i<r.length;i++)a(r[i],!n)}}function a(r,n){for(var i=0,o=0,a=0,s=r.length,l=s-1;a<s;l=a++){var c=(r[a][0]-r[l][0])*(r[l][1]+r[a][1]),u=i+c;o+=Math.abs(i)>=Math.abs(c)?i-u+c:c-u+i,i=u}i+o>=0!=!!n&&r.reverse()}var s,l=r.getDefaultExportFromCjs(function r(n,i){var a,s=n&&n.type;if("FeatureCollection"===s)for(a=0;a<n.features.length;a++)r(n.features[a],i);else if("GeometryCollection"===s)for(a=0;a<n.geometries.length;a++)r(n.geometries[a],i);else if("Feature"===s)r(n.geometry,i);else if("Polygon"===s)o(n.coordinates,i);else if("MultiPolygon"===s)for(a=0;a<n.coordinates.length;a++)o(n.coordinates[a],i);return n});let c=r.VectorTileFeature.prototype.toGeoJSON;var u={exports:{}},d=r.pointGeometry,h=r.vectorTile.VectorTileFeature;function p(r,n){this.options=n||{},this.features=r,this.length=r.length}function f(r,n){this.id="number"==typeof r.id?r.id:void 0,this.type=r.type,this.rawGeometry=1===r.type?[r.geometry]:r.geometry,this.properties=r.tags,this.extent=n||4096}p.prototype.feature=function(r){return new f(this.features[r],this.options.extent)},f.prototype.loadGeometry=function(){var r=this.rawGeometry;this.geometry=[];for(var n=0;n<r.length;n++){for(var i=r[n],o=[],a=0;a<i.length;a++)o.push(new d(i[a][0],i[a][1]));this.geometry.push(o)}return this.geometry},f.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var r=this.geometry,n=1/0,i=-1/0,o=1/0,a=-1/0,s=0;s<r.length;s++)for(var l=r[s],c=0;c<l.length;c++){var u=l[c];n=Math.min(n,u.x),i=Math.max(i,u.x),o=Math.min(o,u.y),a=Math.max(a,u.y)}return[n,o,i,a]},f.prototype.toGeoJSON=h.prototype.toGeoJSON;var m=r.pbf;function g(r){var n=new m;return function(r,n){for(var i in r.layers)n.writeMessage(3,v,r.layers[i])}(r,n),n.finish()}function v(r,n){n.writeVarintField(15,r.version||1),n.writeStringField(1,r.name||""),n.writeVarintField(5,r.extent||4096);var i,o={keys:[],values:[],keycache:{},valuecache:{}};for(i=0;i<r.length;i++)o.feature=r.feature(i),n.writeMessage(2,y,o);var a=o.keys;for(i=0;i<a.length;i++)n.writeStringField(3,a[i]);var s=o.values;for(i=0;i<s.length;i++)n.writeMessage(4,_,s[i])}function y(r,n){var i=r.feature;void 0!==i.id&&n.writeVarintField(1,i.id),n.writeMessage(2,b,r),n.writeVarintField(3,i.type),n.writeMessage(4,x,i)}function b(r,n){var i=r.feature,o=r.keys,a=r.values,s=r.keycache,l=r.valuecache;for(var c in i.properties){var u=i.properties[c],d=s[c];if(null!==u){void 0===d&&(o.push(c),s[c]=d=o.length-1),n.writeVarint(d);var h=typeof u;
170"string"!==h&&"boolean"!==h&&"number"!==h&&(u=JSON.stringify(u));var p=h+":"+u,f=l[p];void 0===f&&(a.push(u),l[p]=f=a.length-1),n.writeVarint(f)}}}function x(r,n){for(var i=r.loadGeometry(),o=r.type,a=0,s=0,l=i.length,c=0;c<l;c++){var u=i[c],d=1;1===o&&(d=u.length),n.writeVarint((d<<3)+1);for(var h=3===o?u.length-1:u.length,p=0;p<h;p++){1===p&&1!==o&&n.writeVarint((h-1<<3)+2);var f=u[p].x-a,m=u[p].y-s;n.writeVarint(f<<1^f>>31),n.writeVarint(m<<1^m>>31),a+=f,s+=m}3===o&&n.writeVarint(15)}}function _(r,n){var i=typeof r;"string"===i?n.writeStringField(1,r):"boolean"===i?n.writeBooleanField(7,r):"number"===i&&(r%1!=0?n.writeDoubleField(3,r):r<0?n.writeSVarintField(6,r):n.writeVarintField(5,r))}u.exports=g,u.exports.fromVectorTileJs=g,u.exports.fromGeojsonVt=function(r,n){n=n||{};var i={};for(var o in r)i[o]=new p(r[o].features,n),i[o].name=o,i[o].version=n.version,i[o].extent=n.extent;return g({layers:i})},u.exports.GeoJSONWrapper=p;var w=r.getDefaultExportFromCjs(u.exports);let S={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:r=>r},T=Math.fround||(s=new Float32Array(1),r=>(s[0]=+r,s[0]));class E{constructor(r){this.options=Object.assign(Object.create(S),r),this.trees=Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(r){let{log:n,minZoom:i,maxZoom:o}=this.options;n&&console.time("total time");let a=`prepare ${r.length} points`;n&&console.time(a),this.points=r;let s=[];for(let n=0;n<r.length;n++){let i=r[n];if(!i.geometry)continue;let[o,a]=i.geometry.coordinates,l=T(P(o)),c=T(O(a));s.push(l,c,1/0,n,-1,1),this.options.reduce&&s.push(0)}let l=this.trees[o+1]=this._createTree(s);n&&console.timeEnd(a);for(let r=o;r>=i;r--){let i=+Date.now();l=this.trees[r]=this._createTree(this._cluster(l,r)),n&&console.log("z%d: %d clusters in %dms",r,l.numItems,+Date.now()-i)}return n&&console.timeEnd("total time"),this}getClusters(r,n){let i=((r[0]+180)%360+360)%360-180,o=Math.max(-90,Math.min(90,r[1])),a=180===r[2]?180:((r[2]+180)%360+360)%360-180,s=Math.max(-90,Math.min(90,r[3]));if(r[2]-r[0]>=360)i=-180,a=180;else if(i>a){let r=this.getClusters([i,o,180,s],n),l=this.getClusters([-180,o,a,s],n);return r.concat(l)}let l=this.trees[this._limitZoom(n)],c=l.range(P(i),O(s),P(a),O(o)),u=l.data,d=[];for(let r of c){let n=this.stride*r;d.push(u[n+5]>1?k(u,n,this.clusterProps):this.points[u[n+3]])}return d}getChildren(r){let n=this._getOriginId(r),i=this._getOriginZoom(r),o="No cluster with the specified id.",a=this.trees[i];if(!a)throw Error(o);let s=a.data;if(n*this.stride>=s.length)throw Error(o);let l=this.options.radius/(this.options.extent*Math.pow(2,i-1)),c=a.within(s[n*this.stride],s[n*this.stride+1],l),u=[];for(let n of c){let i=n*this.stride;s[i+4]===r&&u.push(s[i+5]>1?k(s,i,this.clusterProps):this.points[s[i+3]])}if(0===u.length)throw Error(o);return u}getLeaves(r,n,i){let o=[];return this._appendLeaves(o,r,n=n||10,i=i||0,0),o}getTile(r,n,i){let o=this.trees[this._limitZoom(r)],a=Math.pow(2,r),{extent:s,radius:l}=this.options,c=l/s,u=(i-c)/a,d=(i+1+c)/a,h={features:[]};return this._addTileFeatures(o.range((n-c)/a,u,(n+1+c)/a,d),o.data,n,i,a,h),0===n&&this._addTileFeatures(o.range(1-c/a,u,1,d),o.data,a,i,a,h),n===a-1&&this._addTileFeatures(o.range(0,u,c/a,d),o.data,-1,i,a,h),h.features.length?h:null}getClusterExpansionZoom(r){let n=this._getOriginZoom(r)-1;for(;n<=this.options.maxZoom;){let i=this.getChildren(r);if(n++,1!==i.length)break;r=i[0].properties.cluster_id}return n}_appendLeaves(r,n,i,o,a){let s=this.getChildren(n);for(let n of s){let s=n.properties;if(s&&s.cluster?a+s.point_count<=o?a+=s.point_count:a=this._appendLeaves(r,s.cluster_id,i,o,a):a<o?a++:r.push(n),r.length===i)break}return a}_createTree(n){let i=new r.KDBush(n.length/this.stride|0,this.options.nodeSize,Float32Array);for(let r=0;r<n.length;r+=this.stride)i.add(n[r],n[r+1]);return i.finish(),i.data=n,i}_addTileFeatures(r,n,i,o,a,s){for(let l of r){let r,c,u,d;let h=l*this.stride,p=n[h+5]>1;if(p)r=C(n,h,this.clusterProps),c=n[h],u=n[h+1];else{let i=this.points[n[h+3]];r=i.properties;let[o,a]=i.geometry.coordinates;c=P(o),u=O(a)}let f={type:1,geometry:[[Math.round(this.options.extent*(c*a-i)),Math.round(this.options.extent*(u*a-o))]],tags:r};void 0!==(d=p||this.options.generateId?n[h+3]:this.points[n[h+3]].id)&&(f.id=d),s.features.push(f)}}_limitZoom(r){return Math.max(this.options.minZoom,Math.min(Math.floor(+r),this.options.maxZoom+1))}_cluster(r,n){let{radius:i,extent:o,reduce:a,minPoints:s}=this.options,l=i/(o*Math.pow(2,n)),c=r.data,u=[],d=this.stride;for(let i=0;i<c.length;i+=d){if(c[i+2]<=n)continue;c[i+2]=n;let o=c[i],h=c[i+1],p=r.within(c[i],c[i+1],l),f=c[i+5],m=f;for(let r of p){let i=r*d;c[i+2]>n&&(m+=c[i+5])}if(m>f&&m>=s){let r,s=o*f,l=h*f,g=-1,v=((i/d|0)<<5)+(n+1)+this.points.length;for(let o of p){let u=o*d;if(c[u+2]<=n)continue;c[u+2]=n;let h=c[u+5];s+=c[u]*h,l+=c[u+1]*h,c[u+4]=v,a&&(r||(r=this._map(c,i,!0),g=this.clusterProps.length,this.clusterProps.push(r)),a(r,this._map(c,u)))}c[i+4]=v,u.push(s/m,l/m,1/0,v,-1,m),a&&u.push(g)}else{for(let r=0;r<d;r++)u.push(c[i+r]);if(m>1)for(let r of p){let i=r*d;if(!(c[i+2]<=n)){c[i+2]=n;for(let r=0;r<d;r++)u.push(c[i+r])}}}}return u}_getOriginId(r){return r-this.points.length>>5}_getOriginZoom(r){return(r-this.points.length)%32}_map(r,n,i){if(r[n+5]>1){let o=this.clusterProps[r[n+6]];return i?Object.assign({},o):o}let o=this.points[r[n+3]].properties,a=this.options.map(o);return i&&a===o?Object.assign({},a):a}}function k(r,n,i){return{type:"Feature",id:r[n+3],properties:C(r,n,i),geometry:{type:"Point",coordinates:[360*(r[n]-.5),function(r){let n=(180-360*r)*Math.PI/180;return 360*Math.atan(Math.exp(n))/Math.PI-90}(r[n+1])]}}}function C(r,n,i){let o=r[n+5],a=o>=1e4?`${Math.round(o/1e3)}
170k`:o>=1e3?Math.round(o/100)/10+"k":o,s=r[n+6],l=-1===s?{}:Object.assign({},i[s]);return Object.assign(l,{cluster:!0,cluster_id:r[n+3],point_count:o,point_count_abbreviated:a})}function P(r){return r/360+.5}function O(r){let n=Math.sin(r*Math.PI/180),i=.5-.25*Math.log((1+n)/(1-n))/Math.PI;return i<0?0:i>1?1:i}function j(r,n,i,o){var a={id:void 0===r?null:r,type:n,geometry:i,tags:o,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(r){var n=r.geometry,i=r.type;if("Point"===i||"MultiPoint"===i||"LineString"===i)A(r,n);else if("Polygon"===i||"MultiLineString"===i)for(var o=0;o<n.length;o++)A(r,n[o]);else if("MultiPolygon"===i)for(o=0;o<n.length;o++)for(var a=0;a<n[o].length;a++)A(r,n[o][a])}(a),a}function A(r,n){for(var i=0;i<n.length;i+=3)r.minX=Math.min(r.minX,n[i]),r.minY=Math.min(r.minY,n[i+1]),r.maxX=Math.max(r.maxX,n[i]),r.maxY=Math.max(r.maxY,n[i+1])}function M(r,n,i,o){if(n.geometry){var a=n.geometry.coordinates,s=n.geometry.type,l=Math.pow(i.tolerance/((1<<i.maxZoom)*i.extent),2),c=[],u=n.id;if(i.promoteId?u=n.properties[i.promoteId]:i.generateId&&(u=o||0),"Point"===s)I(a,c);else if("MultiPoint"===s)for(var d=0;d<a.length;d++)I(a[d],c);else if("LineString"===s)Z(a,c,l,!1);else if("MultiLineString"===s){if(i.lineMetrics){for(d=0;d<a.length;d++)Z(a[d],c=[],l,!1),r.push(j(u,"LineString",c,n.properties));return}R(a,c,l,!1)}else if("Polygon"===s)R(a,c,l,!0);else{if("MultiPolygon"!==s){if("GeometryCollection"===s){for(d=0;d<n.geometry.geometries.length;d++)M(r,{id:u,geometry:n.geometry.geometries[d],properties:n.properties},i,o);return}throw Error("Input data is not a valid GeoJSON object.")}for(d=0;d<a.length;d++){var h=[];R(a[d],h,l,!0),c.push(h)}}r.push(j(u,s,c,n.properties))}}function I(r,n){var i;n.push(r[0]/360+.5),n.push(D(r[1])),n.push(0)}function Z(r,n,i,o){for(var a,s,l=0,c=0;c<r.length;c++){var u,d=r[c][0]/360+.5,h=D(r[c][1]);n.push(d),n.push(h),n.push(0),c>0&&(l+=o?(a*h-d*s)/2:Math.sqrt(Math.pow(d-a,2)+Math.pow(h-s,2))),a=d,s=h}var p=n.length-3;n[2]=1,function r(n,i,o,a){for(var s,l=a,c=o-i>>1,u=o-i,d=n[i],h=n[i+1],p=n[o],f=n[o+1],m=i+3;m<o;m+=3){var g=function(r,n,i,o,a,s){var l=a-i,c=s-o;if(0!==l||0!==c){var u=((r-i)*l+(n-o)*c)/(l*l+c*c);u>1?(i=a,o=s):u>0&&(i+=l*u,o+=c*u)}return(l=r-i)*l+(c=n-o)*c}(n[m],n[m+1],d,h,p,f);if(g>l)s=m,l=g;else if(g===l){var v=Math.abs(m-c);v<u&&(s=m,u=v)}}l>a&&(s-i>3&&r(n,i,s,a),n[s+2]=l,o-s>3&&r(n,s,o,a))}(n,0,p,i),n[p+2]=1,n.size=Math.abs(l),n.start=0,n.end=n.size}function R(r,n,i,o){for(var a=0;a<r.length;a++){var s=[];Z(r[a],s,i,o),n.push(s)}}function D(r){var n=Math.sin(r*Math.PI/180),i=.5-.25*Math.log((1+n)/(1-n))/Math.PI;return i<0?0:i>1?1:i}function L(r,n,i,o,a,s,l,c){if(o/=n,s>=(i/=n)&&l<o)return r;if(l<i||s>=o)return null;for(var u=[],d=0;d<r.length;d++){var h=r[d],p=h.geometry,f=h.type,m=0===a?h.minX:h.minY,g=0===a?h.maxX:h.maxY;if(m>=i&&g<o)u.push(h);else if(!(g<i||m>=o)){var v=[];if("Point"===f||"MultiPoint"===f)(function(r,n,i,o,a){for(var s=0;s<r.length;s+=3){var l=r[s+a];l>=i&&l<=o&&(n.push(r[s]),n.push(r[s+1]),n.push(r[s+2]))}})(p,v,i,o,a);else if("LineString"===f)z(p,v,i,o,a,!1,c.lineMetrics);else if("MultiLineString"===f)F(p,v,i,o,a,!1);else if("Polygon"===f)F(p,v,i,o,a,!0);else if("MultiPolygon"===f)for(var y=0;y<p.length;y++){var b=[];F(p[y],b,i,o,a,!0),b.length&&v.push(b)}if(v.length){if(c.lineMetrics&&"LineString"===f){for(y=0;y<v.length;y++)u.push(j(h.id,f,v[y],h.tags));continue}"LineString"!==f&&"MultiLineString"!==f||(1===v.length?(f="LineString",v=v[0]):f="MultiLineString"),"Point"!==f&&"MultiPoint"!==f||(f=3===v.length?"Point":"MultiPoint"),u.push(j(h.id,f,v,h.tags))}}}return u.length?u:null}function z(r,n,i,o,a,s,l){for(var c,u,d=B(r),h=0===a?U:V,p=r.start,f=0;f<r.length-3;f+=3){var m=r[f],g=r[f+1],v=r[f+2],y=r[f+3],b=r[f+4],x=0===a?m:g,_=0===a?y:b,w=!1;l&&(c=Math.sqrt(Math.pow(m-y,2)+Math.pow(g-b,2))),x<i?_>i&&(u=h(d,m,g,y,b,i),l&&(d.start=p+c*u)):x>o?_<o&&(u=h(d,m,g,y,b,o),l&&(d.start=p+c*u)):N(d,m,g,v),_<i&&x>=i&&(u=h(d,m,g,y,b,i),w=!0),_>o&&x<=o&&(u=h(d,m,g,y,b,o),w=!0),!s&&w&&(l&&(d.end=p+c*u),n.push(d),d=B(r)),l&&(p+=c)}var S=r.length-3;m=r[S],g=r[S+1],v=r[S+2],(x=0===a?m:g)>=i&&x<=o&&N(d,m,g,v),S=d.length-3,s&&S>=3&&(d[S]!==d[0]||d[S+1]!==d[1])&&N(d,d[0],d[1],d[2]),d.length&&n.push(d)}function B(r){var n=[];return n.size=r.size,n.start=r.start,n.end=r.end,n}function F(r,n,i,o,a,s){for(var l=0;l<r.length;l++)z(r[l],n,i,o,a,s,!1)}function N(r,n,i,o){r.push(n),r.push(i),r.push(o)}function U(r,n,i,o,a,s){var l=(s-n)/(o-n);return r.push(s),r.push(i+(a-i)*l),r.push(1),l}function V(r,n,i,o,a,s){var l=(s-i)/(a-i);return r.push(n+(o-n)*l),r.push(s),r.push(1),l}function q(r,n){for(var i=[],o=0;o<r.length;o++){var a,s=r[o],l=s.type;if("Point"===l||"MultiPoint"===l||"LineString"===l)a=$(s.geometry,n);else if("MultiLineString"===l||"Polygon"===l){a=[];for(var c=0;c<s.geometry.length;c++)a.push($(s.geometry[c],n))}else if("MultiPolygon"===l)for(a=[],c=0;c<s.geometry.length;c++){for(var u=[],d=0;d<s.geometry[c].length;d++)u.push($(s.geometry[c][d],n));a.push(u)}
170i.push(j(s.id,l,a,s.tags))}return i}function $(r,n){var i=[];i.size=r.size,void 0!==r.start&&(i.start=r.start,i.end=r.end);for(var o=0;o<r.length;o+=3)i.push(r[o]+n,r[o+1],r[o+2]);return i}function G(r,n){if(r.transformed)return r;var i,o,a,s=1<<r.z,l=r.x,c=r.y;for(i=0;i<r.features.length;i++){var u=r.features[i],d=u.geometry,h=u.type;if(u.geometry=[],1===h)for(o=0;o<d.length;o+=2)u.geometry.push(W(d[o],d[o+1],n,s,l,c));else for(o=0;o<d.length;o++){var p=[];for(a=0;a<d[o].length;a+=2)p.push(W(d[o][a],d[o][a+1],n,s,l,c));u.geometry.push(p)}}return r.transformed=!0,r}function W(r,n,i,o,a,s){return[Math.round(i*(r*o-a)),Math.round(i*(n*o-s))]}function H(r,n,i,o,a,s){var l=o*o;if(o>0&&n.size<(a?l:o))i.numPoints+=n.length/3;else{for(var c=[],u=0;u<n.length;u+=3)(0===o||n[u+2]>l)&&(i.numSimplified++,c.push(n[u]),c.push(n[u+1])),i.numPoints++;a&&function(r,n){for(var i=0,o=0,a=r.length,s=a-2;o<a;s=o,o+=2)i+=(r[o]-r[s])*(r[o+1]+r[s+1]);if(i>0===n)for(o=0,a=r.length;o<a/2;o+=2){var l=r[o],c=r[o+1];r[o]=r[a-2-o],r[o+1]=r[a-1-o],r[a-2-o]=l,r[a-1-o]=c}}(c,s),r.push(c)}}function X(r,n){var i,o,a,s,l,c,u=(n=this.options=function(r,n){for(var i in n)r[i]=n[i];return r}(Object.create(this.options),n)).debug;if(u&&console.time("preprocess data"),n.maxZoom<0||n.maxZoom>24)throw Error("maxZoom should be in the 0-24 range");if(n.promoteId&&n.generateId)throw Error("promoteId and generateId cannot be used together.");var d=function(r,n){var i=[];if("FeatureCollection"===r.type)for(var o=0;o<r.features.length;o++)M(i,r.features[o],n,o);else M(i,"Feature"===r.type?r:{geometry:r},n);return i}(r,n);this.tiles={},this.tileCoords=[],u&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",n.indexMaxZoom,n.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),i=d,a=(o=n).buffer/o.extent,s=i,l=L(i,1,-1-a,a,0,-1,2,o),c=L(i,1,1-a,2+a,0,-1,2,o),(l||c)&&(s=L(i,1,-a,1+a,0,-1,2,o)||[],l&&(s=q(l,1).concat(s)),c&&(s=s.concat(q(c,-1)))),(d=s).length&&this.splitTile(d,0,0,0),u&&(d.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}function Y(r,n,i){return 32*((1<<r)*i+n)+r}function K(n,i){let o=n.tileID.canonical;if(!this._geoJSONIndex)return i(null,null);let a=this._geoJSONIndex.getTile(o.z,o.x,o.y);if(!a)return i(null,null);let s=new class{constructor(n){this.layers={_geojsonTileLayer:this},this.name="_geojsonTileLayer",this.extent=r.EXTENT,this.length=n.length,this._features=n}feature(n){return new class{constructor(n){this._feature=n,this.extent=r.EXTENT,this.type=n.type,this.properties=n.tags,"id"in n&&!isNaN(n.id)&&(this.id=parseInt(n.id,10))}loadGeometry(){if(1===this._feature.type){let n=[];for(let i of this._feature.geometry)n.push([new r.Point(i[0],i[1])]);return n}{let n=[];for(let i of this._feature.geometry){let o=[];for(let n of i)o.push(new r.Point(n[0],n[1]));n.push(o)}return n}}toGeoJSON(r,n,i){return c.call(this,r,n,i)}}(this._features[n])}}(a.features),l=w(s);0===l.byteOffset&&l.byteLength===l.buffer.byteLength||(l=new Uint8Array(l)),i(null,{vectorTile:s,rawData:l.buffer})}X.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},X.prototype.splitTile=function(r,n,i,o,a,s,l){for(var c=[r,n,i,o],u=this.options,d=u.debug;c.length;){o=c.pop(),i=c.pop(),n=c.pop(),r=c.pop();var h=1<<n,p=Y(n,i,o),f=this.tiles[p];if(!f&&(d>1&&console.time("creation"),f=this.tiles[p]=function(r,n,i,o,a){for(var s=n===a.maxZoom?0:a.tolerance/((1<<n)*a.extent),l={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:i,y:o,z:n,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0},c=0;c<r.length;c++){l.numFeatures++,function(r,n,i,o){var a=n.geometry,s=n.type,l=[];if("Point"===s||"MultiPoint"===s)for(var c=0;c<a.length;c+=3)l.push(a[c]),l.push(a[c+1]),r.numPoints++,r.numSimplified++;else if("LineString"===s)H(l,a,r,i,!1,!1);else if("MultiLineString"===s||"Polygon"===s)for(c=0;c<a.length;c++)H(l,a[c],r,i,"Polygon"===s,0===c);else if("MultiPolygon"===s)for(var u=0;u<a.length;u++){var d=a[u];for(c=0;c<d.length;c++)H(l,d[c],r,i,!0,0===c)}if(l.length){var h=n.tags||null;if("LineString"===s&&o.lineMetrics){for(var p in h={},n.tags)h[p]=n.tags[p];h.mapbox_clip_start=a.start/a.size,h.mapbox_clip_end=a.end/a.size}var f={geometry:l,type:"Polygon"===s||"MultiPolygon"===s?3:"LineString"===s||"MultiLineString"===s?2:1,tags:h};null!==n.id&&(f.id=n.id),r.features.push(f)}}(l,r[c],s,a);var u=r[c].minX,d=r[c].minY,h=r[c].maxX,p=r[c].maxY;u<l.minX&&(l.minX=u),d<l.minY&&(l.minY=d),h>l.maxX&&(l.maxX=h),p>l.maxY&&(l.maxY=p)}return l}(r,n,i,o,u),this.tileCoords.push({z:n,x:i,y:o}),d)){d>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",n,i,o,f.numFeatures,f.numPoints,f.numSimplified),console.timeEnd("creation"));var m="z"+n;this.stats[m]=(this.stats[m]||0)+1,this.total++}if(f.source=r,a){if(n===u.maxZoom||n===a)continue;var g=1<<a-n;if(i!==Math.floor(s/g)||o!==Math.floor(l/g))continue}else if(n===u.indexMaxZoom||f.numPoints<=u.indexMaxPoints)continue;if(f.source=null,0!==r.length){d>1&&console.time("clipping");var v,y,b,x,_,w,S=.5*u.buffer/u.extent,T=.5-S,E=.5+S,k=1+S;v=y=b=x=null,_=L(r,h,i-S,i+E,0,f.minX,f.maxX,u),w=L(r,h,i+T,i+k,0,f.minX,f.maxX,u),r=null,_&&(v=L(_,h,o-S,o+E,1,f.minY,f.maxY,u),y=L(_,h,o+T,o+k,1,f.minY,f.maxY,u),_=null),w&&(b=L(w,h,o-S,o+E,1,f.minY,f.maxY,u),x=L(w,h,o+T,o+k,1,f.minY,f.maxY,u),w=null),d>1&&console.timeEnd("clipping"),c.push(v||[],n+1,2*i,2*o),c.push(y||[],n+1,2*i,2*o+1),c.push(b||[],n+1,2*i+1,2*o),c.push(x||[],n+1,2*i+1,2*o+1)}}},X.prototype.getTile=function(r,n,i){var o=this.options,a=o.extent,s=o.debug;if(r<0||r>24)return null;var l=1<<r,c=Y(r,n=(n%l+l)%l,i);if(this.tiles[c])return G(this.tiles[c],a);s>1&&console.log("drilling down to z%d-%d-%d",r,n,i);for(var u,d=r,h=n,p=i;!u&&d>0;)d--,h=Math.floor(h/2),p=Math.floor(p/2),u=this.tiles[Y(d,h,p)];return u&&u.source?(s>1&&console.log("found parent tile z%d-%d-%d",d,h,p),s>1&&console.time("drilling down"),this.splitTile(u.source,d,h,p,r,n,i),s>1&&console.timeEnd("drilling down"),this.tiles[c]?G(this.tiles[c],a):null):null};class J extends r.VectorTileWorkerSource{constructor(r,n,i,o,a){super(r,n,i,o,K),a&&(this.loadGeoJSON=a)}loadData(n,i){let o=n&&n.request,a=o&&o.collectResourceTiming;this.loadGeoJSON(n,(s,c)=>{if(s||!c)return i(s);if("object"!=typeof c)return i(Error(`Input data given to '${n.source}' is not a valid GeoJSON object.`));{l(c,!0);try{var u,d;if(n.filter){let i=r.createExpression(n.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if("error"===i.result)throw Error(i.value.map(r=>`${r.key}: ${r.message}`).join(", "));let o=c.features.filter(r=>i.value.evaluate({zoom:0},r));c={type:"FeatureCollection",features:o}}this._geoJSONIndex=n.cluster?new E(function({superclusterOptions:n,clusterProperties:i}){if(!i||!n)return n;let o={},a={},s={accumulated:null,zoom:0},l={properties:null},c=Object.keys(i);for(let n of c){let[s,l]=i[n],c=r.createExpression(l),u=r.createExpression("string"==typeof s?[s,["accumulated"],["get",n]]:s);o[n]=c.value,a[n]=u.value}return n.map=r=>{l.properties=r;let n={};for(let r of c)n[r]=o[r].evaluate(s,l);return n},n.reduce=(r,n)=>{for(let i of(l.properties=n,c))s.accumulated=r[i],r[i]=a[i].evaluate(s,l)},n}(n)).load(c.features):(u=c,d=n.geojsonVtOptions,new X(u,d))}catch(r){return i(r)}this.loaded={};let s={};if(a){let i=r.getPerformanceMeasurement(o);i&&(s.resourceTiming={},s.resourceTiming[n.source]=JSON.parse(JSON.stringify(i)))}
170i(null,s)}})}reloadTile(r,n){let i=this.loaded;return i&&i[r.uid]?super.reloadTile(r,n):this.loadTile(r,n)}loadGeoJSON(n,i){if(n.request)r.getJSON(n.request,i);else{if("string"!=typeof n.data)return i(Error(`Input data given to '${n.source}' is not a valid GeoJSON object.`));try{return i(null,JSON.parse(n.data))}catch(r){return i(Error(`Input data given to '${n.source}' is not a valid GeoJSON object.`))}}}getClusterExpansionZoom(r,n){try{n(null,this._geoJSONIndex.getClusterExpansionZoom(r.clusterId))}catch(r){n(r)}}getClusterChildren(r,n){try{n(null,this._geoJSONIndex.getChildren(r.clusterId))}catch(r){n(r)}}getClusterLeaves(r,n){try{n(null,this._geoJSONIndex.getLeaves(r.clusterId,r.limit,r.offset))}catch(r){n(r)}}}class Q{constructor(n){this.self=n,this.actor=new r.Actor(n,this),this.layerIndexes={},this.availableImages={},this.isSpriteLoaded={},this.projections={},this.defaultProjection=r.getProjection({name:"mercator"}),this.workerSourceTypes={vector:r.VectorTileWorkerSource,geojson:J},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=(r,n)=>{if(this.workerSourceTypes[r])throw Error(`Worker source with name "${r}" already registered.`);this.workerSourceTypes[r]=n},this.self.registerRTLTextPlugin=n=>{if(r.plugin.isParsed())throw Error("RTL text plugin already registered.");r.plugin.applyArabicShaping=n.applyArabicShaping,r.plugin.processBidirectionalText=n.processBidirectionalText,r.plugin.processStyledBidirectionalText=n.processStyledBidirectionalText}}clearCaches(r,n,i){delete this.layerIndexes[r],delete this.availableImages[r],delete this.workerSources[r],delete this.demWorkerSources[r],i()}checkIfReady(r,n,i){i()}setReferrer(r,n){this.referrer=n}spriteLoaded(n,i){for(let o in this.isSpriteLoaded[n]=i,this.workerSources[n]){let a=this.workerSources[n][o];for(let n in a)a[n]instanceof r.VectorTileWorkerSource&&(a[n].isSpriteLoaded=i,a[n].fire(new r.Event("isSpriteLoaded")))}}setImages(r,n,i){for(let i in this.availableImages[r]=n,this.workerSources[r]){let o=this.workerSources[r][i];for(let r in o)o[r].availableImages=n}i()}enableTerrain(r,n,i){this.terrain=n,i()}setProjection(n,i){this.projections[n]=r.getProjection(i)}setLayers(r,n,i){this.getLayerIndex(r).replace(n),i()}updateLayers(r,n,i){this.getLayerIndex(r).update(n.layers,n.removedIds),i()}loadTile(n,i,o){let a=this.enableTerrain?r.extend({enableTerrain:this.terrain},i):i;a.projection=this.projections[n]||this.defaultProjection,this.getWorkerSource(n,i.type,i.source).loadTile(a,o)}loadDEMTile(n,i,o){let a=this.enableTerrain?r.extend({buildQuadTree:this.terrain},i):i;this.getDEMWorkerSource(n,i.source).loadTile(a,o)}reloadTile(n,i,o){let a=this.enableTerrain?r.extend({enableTerrain:this.terrain},i):i;a.projection=this.projections[n]||this.defaultProjection,this.getWorkerSource(n,i.type,i.source).reloadTile(a,o)}abortTile(r,n,i){this.getWorkerSource(r,n.type,n.source).abortTile(n,i)}removeTile(r,n,i){this.getWorkerSource(r,n.type,n.source).removeTile(n,i)}removeSource(r,n,i){if(!this.workerSources[r]||!this.workerSources[r][n.type]||!this.workerSources[r][n.type][n.source])return;let o=this.workerSources[r][n.type][n.source];delete this.workerSources[r][n.type][n.source],void 0!==o.removeSource?o.removeSource(n,i):i()}loadWorkerSource(r,n,i){try{this.self.importScripts(n.url),i()}catch(r){i(r.toString())}}syncRTLPluginState(n,i,o){try{r.plugin.setState(i);let n=r.plugin.getPluginURL();if(r.plugin.isLoaded()&&!r.plugin.isParsed()&&null!=n){this.self.importScripts(n);let i=r.plugin.isParsed();o(i?void 0:Error(`RTL Text Plugin failed to import scripts from ${n}`),i)}}catch(r){o(r.toString())}}getAvailableImages(r){let n=this.availableImages[r];return n||(n=[]),n}getLayerIndex(r){let i=this.layerIndexes[r];return i||(i=this.layerIndexes[r]=new n),i}getWorkerSource(r,n,i){if(this.workerSources[r]||(this.workerSources[r]={}),this.workerSources[r][n]||(this.workerSources[r][n]={}),!this.workerSources[r][n][i]){let o={send:(n,i,o,a,s,l)=>{this.actor.send(n,i,o,r,s,l)},scheduler:this.actor.scheduler};this.workerSources[r][n][i]=new this.workerSourceTypes[n](o,this.getLayerIndex(r),this.getAvailableImages(r),this.isSpriteLoaded[r])}return this.workerSources[r][n][i]}getDEMWorkerSource(r,n){return this.demWorkerSources[r]||(this.demWorkerSources[r]={}),this.demWorkerSources[r][n]||(this.demWorkerSources[r][n]=new i),this.demWorkerSources[r][n]}enforceCacheSizeLimit(n,i){r.enforceCacheSizeLimit(i)}getWorkerPerformanceMetrics(r,n,i){i(void 0,void 0)}}return"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope&&(self.worker=new Q(self)),Q}),a(["./shared"],function(r){let n,i,o;function a(r,n){if(Array.isArray(r)){if(!Array.isArray(n)||r.length!==n.length)return!1;for(let i=0;i<r.length;i++)if(!a(r[i],n[i]))return!1;return!0}if("object"==typeof r&&null!==r&&null!==n){if("object"!=typeof n||Object.keys(r).length!==Object.keys(n).length)return!1;for(let i in r)if(!a(r[i],n[i]))return!1;return!0}return r===n}function s(r){var n;return"undefined"!=typeof window&&"undefined"!=typeof document&&!!Array.prototype&&!!Array.prototype.every&&!!Array.prototype.filter&&!!Array.prototype.forEach&&!!Array.prototype.indexOf&&!!Array.prototype.lastIndexOf&&!!Array.prototype.map&&!!Array.prototype.some&&!!Array.prototype.reduce&&!!Array.prototype.reduceRight&&!!Array.isArray&&!!Function.prototype&&!!Function.prototype.bind&&!!Object.keys&&!!Object.create&&!!Object.getPrototypeOf&&!!Object.getOwnPropertyNames&&!!Object.isSealed&&!!Object.isFrozen&&!!Object.isExtensible&&!!Object.getOwnPropertyDescriptor&&!!Object.defineProperty&&!!Object.defineProperties&&!!Object.
170seal&&!!Object.freeze&&!!Object.preventExtensions&&!!("JSON"in window&&"parse"in JSON&&"stringify"in JSON)&&!!function(){if(!("Worker"in window&&"Blob"in window&&"URL"in window))return!1;var r,n,i=new Blob([""],{type:"text/javascript"}),o=URL.createObjectURL(i);try{n=new Worker(o),r=!0}catch(n){r=!1}return n&&n.terminate(),URL.revokeObjectURL(o),r}()&&"Uint8ClampedArray"in window&&!!ArrayBuffer.isView&&!!function(){var r=document.createElement("canvas");r.width=r.height=1;var n=r.getContext("2d");if(!n)return!1;var i=n.getImageData(0,0,1,1);return i&&i.width===r.width}()&&(void 0===l[n=r&&r.failIfMajorPerformanceCaveat]&&(l[n]=function(r){var n,i,o,a=(n=document.createElement("canvas"),(i=Object.create(s.webGLContextAttributes)).failIfMajorPerformanceCaveat=r,n.getContext("webgl",i)||n.getContext("experimental-webgl",i));if(!a)return!1;try{o=a.createShader(a.VERTEX_SHADER)}catch(r){return!1}return!(!o||a.isContextLost())&&(a.shaderSource(o,"void main() {}"),a.compileShader(o),!0===a.getShaderParameter(o,a.COMPILE_STATUS))}(n)),!!l[n]&&!document.documentMode)}var l={};function c(n,i,o){let a=r.window.document.createElement(n);return void 0!==i&&(a.className=i),o&&o.appendChild(a),a}function u(n,i,o){let a=r.window.document.createElementNS("http://www.w3.org/2000/svg",n);for(let r of Object.keys(i))a.setAttributeNS(null,r,i[r]);return o&&o.appendChild(a),a}s.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0};let d=r.window.document&&r.window.document.documentElement.style,h=d&&void 0!==d.userSelect?"userSelect":"WebkitUserSelect";function p(){d&&h&&(n=d[h],d[h]="none")}function f(){d&&h&&(d[h]=n)}function m(n){n.preventDefault(),n.stopPropagation(),r.window.removeEventListener("click",m,!0)}function g(){r.window.addEventListener("click",m,!0),r.window.setTimeout(()=>{r.window.removeEventListener("click",m,!0)},0)}function v(r,n){let i=r.getBoundingClientRect();return x(r,i,n)}function y(r,n){let i=r.getBoundingClientRect(),o=[];for(let a=0;a<n.length;a++)o.push(x(r,i,n[a]));return o}function b(n){return void 0!==r.window.InstallTrigger&&2===n.button&&n.ctrlKey&&r.window.navigator.platform.toUpperCase().indexOf("MAC")>=0?0:n.button}function x(n,i,o){let a=n.offsetWidth===i.width?1:n.offsetWidth/i.width;return new r.Point((o.clientX-i.left)*a,(o.clientY-i.top)*a)}function _(r,n){var i=n[0],o=n[1],a=n[2],s=n[3],l=i*s-a*o;return l?(r[0]=s*(l=1/l),r[1]=-o*l,r[2]=-a*l,r[3]=i*l,r):null}class w extends r.Evented{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new r.RGBAImage({width:1,height:1}),this.dirty=!0}isLoaded(){return this.loaded}setLoaded(r){if(this.loaded!==r&&(this.loaded=r,r)){for(let{ids:r,callback:n}of this.requestors)this._notify(r,n);this.requestors=[]}}hasImage(r){return!!this.getImage(r)}getImage(r){return this.images[r]}addImage(r,n){this._validate(r,n)&&(this.images[r]=n)}_validate(n,i){let o=!0;return this._validateStretch(i.stretchX,i.data&&i.data.width)||(this.fire(new r.ErrorEvent(Error(`Image "${n}" has invalid "stretchX" value`))),o=!1),this._validateStretch(i.stretchY,i.data&&i.data.height)||(this.fire(new r.ErrorEvent(Error(`Image "${n}" has invalid "stretchY" value`))),o=!1),this._validateContent(i.content,i)||(this.fire(new r.ErrorEvent(Error(`Image "${n}" has invalid "content" value`))),o=!1),o}_validateStretch(r,n){if(!r)return!0;let i=0;for(let o of r){if(o[0]<i||o[1]<o[0]||n<o[1])return!1;i=o[1]}return!0}_validateContent(r,n){return!(r&&(4!==r.length||r[0]<0||n.data.width<r[0]||r[1]<0||n.data.height<r[1]||r[2]<0||n.data.width<r[2]||r[3]<0||n.data.height<r[3]||r[2]<r[0]||r[3]<r[1]))}updateImage(r,n){n.version=this.images[r].version+1,this.images[r]=n,this.updatedImages[r]=!0}removeImage(r){let n=this.images[r];delete this.images[r],delete this.patterns[r],n.userImage&&n.userImage.onRemove&&n.userImage.onRemove()}listImages(){return Object.keys(this.images)}getImages(r,n){let i=!0;if(!this.isLoaded())for(let n of r)this.images[n]||(i=!1);this.isLoaded()||i?this._notify(r,n):this.requestors.push({ids:r,callback:n})}_notify(n,i){let o={};for(let i of n){this.images[i]||this.fire(new r.Event("styleimagemissing",{id:i}));let n=this.images[i];n?o[i]={data:n.data.clone(),pixelRatio:n.pixelRatio,sdf:n.sdf,ver
170sion:n.version,stretchX:n.stretchX,stretchY:n.stretchY,content:n.content,hasRenderCallback:Boolean(n.userImage&&n.userImage.render)}:r.warnOnce(`Image "${i}" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.`)}i(null,o)}getPixelSize(){let{width:r,height:n}=this.atlasImage;return{width:r,height:n}}getPattern(n){let i=this.patterns[n],o=this.getImage(n);if(!o)return null;if(i&&i.position.version===o.version)return i.position;if(i)i.position.version=o.version;else{let i={w:o.data.width+2,h:o.data.height+2,x:0,y:0},a=new r.ImagePosition(i,o);this.patterns[n]={bin:i,position:a}}return this._updatePatternAtlas(),this.patterns[n].position}bind(n){let i=n.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new r.Texture(n,this.atlasImage,i.RGBA),this.atlasTexture&&this.atlasTexture.bind(i.LINEAR,i.CLAMP_TO_EDGE)}_updatePatternAtlas(){let n=[];for(let r in this.patterns)n.push(this.patterns[r].bin);let{w:i,h:o}=r.potpack(n),a=this.atlasImage;for(let n in a.resize({width:i||1,height:o||1}),this.patterns){let{bin:i}=this.patterns[n],o=i.x+1,s=i.y+1,l=this.images[n].data,c=l.width,u=l.height;r.RGBAImage.copy(l,a,{x:0,y:0},{x:o,y:s},{width:c,height:u}),r.RGBAImage.copy(l,a,{x:0,y:u-1},{x:o,y:s-1},{width:c,height:1}),r.RGBAImage.copy(l,a,{x:0,y:0},{x:o,y:s+u},{width:c,height:1}),r.RGBAImage.copy(l,a,{x:c-1,y:0},{x:o-1,y:s},{width:1,height:u}),r.RGBAImage.copy(l,a,{x:0,y:0},{x:o+c,y:s},{width:1,height:u})}this.dirty=!0}beginFrame(){this.callbackDispatchedThisFrame={}}dispatchRenderCallbacks(r){for(let n of r){if(this.callbackDispatchedThisFrame[n])continue;this.callbackDispatchedThisFrame[n]=!0;let r=this.images[n];(function(r){let{userImage:n}=r;return!!(n&&n.render&&n.render())&&(r.data.replace(new Uint8Array(n.data.buffer)),!0)})(r)&&this.updateImage(n,r)}}}let S=new r.Properties({anchor:new r.DataConstantProperty(r.spec.light.anchor),position:new class{constructor(){this.specification=r.spec.light.position}possiblyEvaluate(n,i){return function([n,i,o]){let a=r.degToRad(i+90),s=r.degToRad(o);return{x:n*Math.cos(a)*Math.sin(s),y:n*Math.sin(a)*Math.sin(s),z:n*Math.cos(s),azimuthal:i,polar:o}}(n.expression.evaluate(i))}interpolate(n,i,o){return{x:r.number(n.x,i.x,o),y:r.number(n.y,i.y,o),z:r.number(n.z,i.z,o),azimuthal:r.number(n.azimuthal,i.azimuthal,o),polar:r.number(n.polar,i.polar,o)}}},color:new r.DataConstantProperty(r.spec.light.color),intensity:new r.DataConstantProperty(r.spec.light.intensity)});class T extends r.Evented{constructor(n){super(),this._transitionable=new r.Transitionable(S),this.setLight(n),this._transitioning=this._transitionable.untransitioned()}getLight(){return this._transitionable.serialize()}setLight(n,i={}){if(!this._validate(r.validateLight,n,i))for(let i in n){let o=n[i];r.endsWith(i,"-transition")?this._transitionable.setTransition(i.slice(0,-11),o):this._transitionable.setValue(i,o)}}updateTransitions(r){this._transitioning=this._transitionable.transitioned(r,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(r){this.properties=this._transitioning.possiblyEvaluate(r)}_validate(n,i,o){return(!o||!1!==o.validate)&&r.emitValidationErrors(this,n.call(r.validateStyle,r.extend({value:i,style:{glyphs:!0,sprite:!0},styleSpec:r.spec})))}}let E=new r.Properties({source:new r.DataConstantProperty(r.spec.terrain.source),exaggeration:new r.DataConstantProperty(r.spec.terrain.exaggeration)}),k=class extends r.Evented{constructor(n,i){super(),this._transitionable=new r.Transitionable(E),this.set(n),this._transitioning=this._transitionable.untransitioned(),this.drapeRenderMode=i}get(){return this._transitionable.serialize()}set(n){for(let i in n){let o=n[i];r.endsWith(i,"-transition")?this._transitionable.setTransition(i.slice(0,-11),o):this._transitionable.setValue(i,o)}}updateTransitions(r){this._transitioning=this._transitionable.transitioned(r,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(r){this.properties=this._transitioning.possiblyEvaluate(r)}};function C(n,i,o,a){let s=r.smoothstep(45,65,o),[l,c]=P(n,a),u=r.length(i),d=1-Math.min(1,Math.exp(-((u-l)/(c-l)*6)));
170return d*=d*d,(d=Math.min(1,1.00747*d))*s*n.alpha}function P(r,n){let i=.5/Math.tan(.5*n);return[r.range[0]+i,r.range[1]+i]}let O=new r.Properties({range:new r.DataConstantProperty(r.spec.fog.range),color:new r.DataConstantProperty(r.spec.fog.color),"high-color":new r.DataConstantProperty(r.spec.fog["high-color"]),"space-color":new r.DataConstantProperty(r.spec.fog["space-color"]),"horizon-blend":new r.DataConstantProperty(r.spec.fog["horizon-blend"]),"star-intensity":new r.DataConstantProperty(r.spec.fog["star-intensity"])});class j extends r.Evented{constructor(n,i){super(),this._transitionable=new r.Transitionable(O),this.set(n),this._transitioning=this._transitionable.untransitioned(),this._transform=i}get state(){let n=this._transform,i="globe"===n.projection.name,o=r.globeToMercatorTransition(n.zoom),a=this.properties.get("range");return{range:i?[r.number(.5,a[0],o),r.number(3,a[1],o)]:a,horizonBlend:this.properties.get("horizon-blend"),alpha:this.properties.get("color").a}}get(){return this._transitionable.serialize()}set(n,i={}){if(!this._validate(r.validateFog,n,i)){for(let i of Object.keys(r.spec.fog))n&&void 0===n[i]&&(n[i]=r.spec.fog[i].default);for(let i in n){let o=n[i];r.endsWith(i,"-transition")?this._transitionable.setTransition(i.slice(0,-11),o):this._transitionable.setValue(i,o)}}}getOpacity(n){if(!this._transform.projection.supportsFog)return 0;let i=this.properties&&this.properties.get("color")||1;return("globe"===this._transform.projection.name?1:r.smoothstep(45,65,n))*i.a}getOpacityAtLatLng(n,i){return this._transform.projection.supportsFog?function(n,i,o){let a=r.MercatorCoordinate.fromLngLat(i),s=o.elevation?o.elevation.getAtPointOrZero(a):0,l=[a.x,a.y,s];return r.transformMat4(l,l,o.mercatorFogMatrix),C(n,l,o.pitch,o._fov)}(this.state,n,i):0}getFovAdjustedRange(r){return this._transform.projection.supportsFog?P(this.state,r):[0,1]}updateTransitions(r){this._transitioning=this._transitionable.transitioned(r,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(r){this.properties=this._transitioning.possiblyEvaluate(r)}_validate(n,i,o){return(!o||!1!==o.validate)&&r.emitValidationErrors(this,n.call(r.validateStyle,r.extend({value:i,style:{glyphs:!0,sprite:!0},styleSpec:r.spec})))}}class A{constructor(n,i){this.workerPool=n,this.actors=[],this.currentActor=0,this.id=r.uniqueId();let o=this.workerPool.acquire(this.id);for(let r=0;r<o.length;r++){let n=new A.Actor(o[r],i,this.id);n.name=`Worker ${r}`,this.actors.push(n)}this.ready=!1,this.broadcast("checkIfReady",null,()=>{this.ready=!0})}broadcast(n,i,o){r.asyncAll(this.actors,(r,o)=>{r.send(n,i,o)},o=o||function(){})}getActor(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]}remove(){this.actors.forEach(r=>{r.remove()}),this.actors=[],this.workerPool.release(this.id)}}function M(n,i,o){return i*(r.EXTENT/(n.tileSize*Math.pow(2,o-n.tileID.overscaledZ)))}A.Actor=r.Actor;class I{constructor(r,n,i,o){this.screenBounds=r,this.cameraPoint=n,this._screenRaycastCache={},this._cameraRaycastCache={},this.isAboveHorizon=i,this.screenGeometry=this.bufferedScreenGeometry(0),this.screenGeometryMercator=this._bufferedScreenMercator(0,o)}static createFromScreenPoints(n,i){let o,a;if(n instanceof r.Point||"number"==typeof n[0]){let s=r.Point.convert(n);o=[s],a=i.isPointAboveHorizon(s)}else{let s=r.Point.convert(n[0]),l=r.Point.convert(n[1]);o=[s,l],a=r.polygonizeBounds(s,l).every(r=>i.isPointAboveHorizon(r))}return new I(o,i.getCameraPoint(),a,i)}isPointQuery(){return 1===this.screenBounds.length}bufferedScreenGeometry(n){return r.polygonizeBounds(this.screenBounds[0],1===this.screenBounds.length?this.screenBounds[0]:this.screenBounds[1],n)}bufferedCameraGeometry(n){let i=this.screenBounds[0],o=1===this.screenBounds.length?this.screenBounds[0].add(new r.Point(1,1)):this.screenBounds[1],a=r.polygonizeBounds(i,o,0,!1);return this.cameraPoint.y>o.y&&(this.cameraPoint.x>i.x&&this.cameraPoint.x<o.x?a.splice(3,0,this.cameraPoint):this.cameraPoint.x>=o.x?a[2]=this.cameraPoint:this.cameraPoint.x<=i.x&&(a[3]=this.cameraPoint)),r.bufferConvexPolygon(a,n)}bufferedCameraGeometryGlobe(n){let i=this.screenBounds[0],o=1===this.screenBounds.length?this.screenBounds[0].add(new r.Point(1,1)):this.screenBounds[1],a=r.polygonizeBounds(i,o,n),s=this.cameraPoint.clone();switch(3*((s.y>i.y)+(s.y>o.y))+((s.x>i.x)+(s.x>o.x))){case 0:a[0]=s,a[4]=s.clone();break;case 1:a.splice(1,0,s);break;case 2:a[1]=s;break;case 3:a.splice(4,0,s);break;case 5:a.splice(2,0,s);break;case 6:a[3]=s;break;case 7:a.splice(3,0,s);break;case 8:a[2]=s}return a}containsTile(n,i,o,a=0){var s;let l=n.queryPadding/i._pixelsPerMercatorPixel+1,c=o?this._bufferedCameraMercator(l,i):this._bufferedScreenMercator(l,i),u=n.tileID.wrap+(c.unwrapped?a:0),d=c.polygon.map(i=>r.getTilePoint(n.tileTransform,i,u));if(!r.polygonIntersectsBox(d,0,0,r.EXTENT,r.EXTENT))return;u=n.tileID.wrap+(this.screenGeometryMercator.unwrapped?a:0);let h=this.screenGeometryMercator.polygon.map(i=>r.getTileVec3(n.tileTransform,i,u)),p=h.map(n=>new r.Point(n[0],n[1])),f=i.getFreeCameraOptions().position||new r.MercatorCoordinate(0,0,0),m=r.getTileVec3(n.tileTransform,f,u),g=h.map(n=>{let i=r.sub(n,n,m);return r.normalize(i,i),new r.Ray(m,i)}),v=M(n,1,i.zoom)*i._pixelsPerMercatorPixel;return{queryGeometry:this,tilespaceGeometry:p,tilespaceRays:g,bufferedTilespaceGeometry:d,bufferedTilespaceBounds:((s=r.getBounds(d)).min.x=r.clamp(s.min.x,0,r.EXTENT),s.min.y=r.clamp(s.min.y,0,r.EXTENT),s.max.x=r.clamp(s.max.x,
1700,r.EXTENT),s.max.y=r.clamp(s.max.y,0,r.EXTENT),s),tile:n,tileID:n.tileID,pixelToTileUnitsFactor:v}}_bufferedScreenMercator(r,n){let i=100*r|0;if(this._screenRaycastCache[i])return this._screenRaycastCache[i];{let o;return o="globe"===n.projection.name?this._projectAndResample(this.bufferedScreenGeometry(r),n):{polygon:this.bufferedScreenGeometry(r).map(r=>n.pointCoordinate3D(r)),unwrapped:!0},this._screenRaycastCache[i]=o,o}}_bufferedCameraMercator(r,n){let i=100*r|0;if(this._cameraRaycastCache[i])return this._cameraRaycastCache[i];{let o;return o="globe"===n.projection.name?this._projectAndResample(this.bufferedCameraGeometryGlobe(r),n):{polygon:this.bufferedCameraGeometry(r).map(r=>n.pointCoordinate3D(r)),unwrapped:!0},this._cameraRaycastCache[i]=o,o}}_projectAndResample(n,i){let o=function(n,i){let o=r.multiply([],i.pixelMatrix,i.globeMatrix),a=[0,-r.GLOBE_RADIUS,0,1],s=[0,r.GLOBE_RADIUS,0,1],l=[0,0,0,1];r.transformMat4$1(a,a,o),r.transformMat4$1(s,s,o),r.transformMat4$1(l,l,o);let c=new r.Point(a[0]/a[3],a[1]/a[3]),u=new r.Point(s[0]/s[3],s[1]/s[3]),d=r.polygonContainsPoint(n,c)&&a[3]<l[3],h=r.polygonContainsPoint(n,u)&&s[3]<l[3];if(!d&&!h)return null;let p=function(r,n,i){for(let o=1;o<r.length;o++){let a=R(n.pointCoordinate3D(r[o-1]).x),s=R(n.pointCoordinate3D(r[o]).x);if(i<0){if(a<s)return{idx:o,t:-a/(s-1-a)}}else if(s<a)return{idx:o,t:(1-a)/(s+1-a)}}return null}(n,i,d?-1:1);if(!p)return null;let{idx:f,t:m}=p,g=f>1?Z(n.slice(0,f),i):[],v=f<n.length?Z(n.slice(f),i):[];g=g.map(n=>new r.Point(R(n.x),n.y)),v=v.map(n=>new r.Point(R(n.x),n.y));let y=[...g];0===y.length&&y.push(v[v.length-1]);let b=r.number(y[y.length-1].y,(0===v.length?g[0]:v[0]).y,m);return y.push(...d?[new r.Point(0,b),new r.Point(0,0),new r.Point(1,0),new r.Point(1,b)]:[new r.Point(1,b),new r.Point(1,1),new r.Point(0,1),new r.Point(0,b)]),0===v.length?y.push(g[0]):y.push(...v),{polygon:y.map(n=>new r.MercatorCoordinate(n.x,n.y)),unwrapped:!1}}(n,i);if(o)return o;let a=function(n,i){let o=!1,a=-1/0,s=0;for(let r=0;r<n.length-1;r++)n[r].x>a&&(a=n[r].x,s=r);for(let r=0;r<n.length-1;r++){let i=(s+r)%(n.length-1),a=n[i],l=n[i+1];Math.abs(a.x-l.x)>.5&&(a.x<l.x?(a.x+=1,0===i&&(n[n.length-1].x+=1)):(l.x+=1,i+1===n.length-1&&(n[0].x+=1)),o=!0)}let l=r.mercatorXfromLng(i.center.lng);return o&&l<Math.abs(l-1)&&n.forEach(r=>{r.x-=1}),{polygon:n,unwrapped:o}}(Z(n,i).map(n=>new r.Point(R(n.x),n.y)),i);return{polygon:a.polygon.map(n=>new r.MercatorCoordinate(n.x,n.y)),unwrapped:a.unwrapped}}}function Z(n,i){return r.resample(n,r=>{let n=i.pointCoordinate3D(r);r.x=n.x,r.y=n.y},1/256)}function R(r){return r<0?1+r%1:r%1}function D(n,i,o,a,s){let l=function(o,a){if(o)return s(o);if(a){n.url&&a.tiles&&n.tiles&&delete n.tiles;let o=r.pick(r.extend(a,n),["tiles","minzoom","maxzoom","attribution","mapbox_logo","bounds","scheme","tileSize","encoding"]);a.vector_layers&&(o.vectorLayers=a.vector_layers,o.vectorLayerIds=o.vectorLayers.map(r=>r.id)),o.tiles=i.canonicalizeTileset(o,n.url),s(null,o)}};return n.url?r.getJSON(i.transformRequest(i.normalizeSourceURL(n.url,null,o,a),r.ResourceType.Source),l):r.exported.frame(()=>l(null,n))}class L{constructor(n,i,o){this.bounds=r.LngLatBounds.convert(this.validateBounds(n)),this.minzoom=i||0,this.maxzoom=o||24}
170validateBounds(r){return Array.isArray(r)&&4===r.length?[Math.max(-180,r[0]),Math.max(-90,r[1]),Math.min(180,r[2]),Math.min(90,r[3])]:[-180,-90,180,90]}contains(n){let i=Math.pow(2,n.z),o=Math.floor(r.mercatorXfromLng(this.bounds.getWest())*i),a=Math.floor(r.mercatorYfromLat(this.bounds.getNorth())*i),s=Math.ceil(r.mercatorXfromLng(this.bounds.getEast())*i),l=Math.ceil(r.mercatorYfromLat(this.bounds.getSouth())*i);return n.x>=o&&n.x<s&&n.y>=a&&n.y<l}}class z{constructor(r,n,i){this.context=r;let o=r.gl;this.buffer=o.createBuffer(),this.dynamicDraw=Boolean(i),this.context.unbindVAO(),r.bindElementBuffer.set(this.buffer),o.bufferData(o.ELEMENT_ARRAY_BUFFER,n.arrayBuffer,this.dynamicDraw?o.DYNAMIC_DRAW:o.STATIC_DRAW),this.dynamicDraw||n.destroy()}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(r){let n=this.context.gl;this.context.unbindVAO(),this.bind(),n.bufferSubData(n.ELEMENT_ARRAY_BUFFER,0,r.arrayBuffer)}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}let B={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class F{constructor(r,n,i,o){this.length=n.length,this.attributes=i,this.itemSize=n.bytesPerElement,this.dynamicDraw=o,this.context=r;let a=r.gl;this.buffer=a.createBuffer(),r.bindVertexBuffer.set(this.buffer),a.bufferData(a.ARRAY_BUFFER,n.arrayBuffer,this.dynamicDraw?a.DYNAMIC_DRAW:a.STATIC_DRAW),this.dynamicDraw||n.destroy()}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(r){let n=this.context.gl;this.bind(),n.bufferSubData(n.ARRAY_BUFFER,0,r.arrayBuffer)}enableAttributes(r,n){for(let i=0;i<this.attributes.length;i++){let o=n.attributes[this.attributes[i].name];void 0!==o&&r.enableVertexAttribArray(o)}}setVertexAttribPointers(r,n,i){for(let o=0;o<this.attributes.length;o++){let a=this.attributes[o],s=n.attributes[a.name];void 0!==s&&r.vertexAttribPointer(s,a.components,r[B[a.type]],!1,this.itemSize,a.offset+this.itemSize*(i||0))}}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}class N{constructor(r){this.gl=r.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1}get(){return this.current}set(r){}getDefault(){return this.default}setDefault(){this.set(this.default)}}class U extends N{getDefault(){return r.Color.transparent}set(r){let n=this.current;(r.r!==n.r||r.g!==n.g||r.b!==n.b||r.a!==n.a||this.dirty)&&(this.gl.clearColor(r.r,r.g,r.b,r.a),this.current=r,this.dirty=!1)}}class V extends N{getDefault(){return 1}set(r){(r!==this.current||this.dirty)&&(this.gl.clearDepth(r),this.current=r,this.dirty=!1)}}class q extends N{getDefault(){return 0}set(r){(r!==this.current||this.dirty)&&(this.gl.clearStencil(r),this.current=r,this.dirty=!1)}}class $ extends N{getDefault(){return[!0,!0,!0,!0]}set(r){let n=this.current;(r[0]!==n[0]||r[1]!==n[1]||r[2]!==n[2]||r[3]!==n[3]||this.dirty)&&(this.gl.colorMask(r[0],r[1],r[2],r[3]),this.current=r,this.dirty=!1)}}class G extends N{getDefault(){return!0}set(r){(r!==this.current||this.dirty)&&(this.gl.depthMask(r),this.current=r,this.dirty=!1)}}class W extends N{getDefault(){return 255}set(r){(r!==this.current||this.dirty)&&(this.gl.stencilMask(r),this.current=r,this.dirty=!1)}}class H extends N{getDefault(){return{func:this.gl.ALWAYS,ref:0,mask:255}}set(r){let n=this.current;(r.func!==n.func||r.ref!==n.ref||r.mask!==n.mask||this.dirty)&&(this.gl.stencilFunc(r.func,r.ref,r.mask),this.current=r,this.dirty=!1)}}class X extends N{getDefault(){let r=this.gl;return[r.KEEP,r.KEEP,r.KEEP]}set(r){let n=this.current;(r[0]!==n[0]||r[1]!==n[1]||r[2]!==n[2]||this.dirty)&&(this.gl.stencilOp(r[0],r[1],r[2]),this.current=r,this.dirty=!1)}}class Y extends N{getDefault(){return!1}set(r){if(r===this.current&&!this.dirty)return;let n=this.gl;r?n.enable(n.STENCIL_TEST):n.disable(n.STENCIL_TEST),this.current=r,this.dirty=!1}}class K extends N{getDefault(){return[0,1]}set(r){let n=this.current;(r[0]!==n[0]||r[1]!==n[1]||this.dirty)&&(this.gl.depthRange(r[0],r[1]),this.current=r,this.dirty=!1)}}class J extends N{getDefault(){return!1}set(r){if(r===this.current&&!this.dirty)return;let n=this.gl;r?n.enable(n.DEPTH_TEST):n.disable(n.DEPTH_TEST),this.current=r,this.dirty=!1}}class Q extends N{getDefault(){return this.gl.LESS}set(r){(r!==this.current||this.dirty)&&(this.gl.depthFunc(r),this.current=r,this.dirty=!1)}}class ee extends N{getDefault(){return!1}set(r){if(r===this.current&&!this.dirty)return;let n=this.gl;r?n.enable(n.BLEND):n.disable(n.BLEND),this.current=r,this.dirty=!1}}class et extends N{getDefault(){let r=this.gl;return[r.ONE,r.ZERO]}set(r){let n=this.current;(r[0]!==n[0]||r[1]!==n[1]||this.dirty)&&(this.gl.blendFunc(r[0],r[1]),this.current=r,this.dirty=!1)}}class er extends N{getDefault(){return r.Color.transparent}set(r){let n=this.current;(r.r!==n.r||r.g!==n.g||r.b!==n.b||r.a!==n.a||this.dirty)&&(this.gl.blendColor
170(r.r,r.g,r.b,r.a),this.current=r,this.dirty=!1)}}class en extends N{getDefault(){return this.gl.FUNC_ADD}set(r){(r!==this.current||this.dirty)&&(this.gl.blendEquation(r),this.current=r,this.dirty=!1)}}class ei extends N{getDefault(){return!1}set(r){if(r===this.current&&!this.dirty)return;let n=this.gl;r?n.enable(n.CULL_FACE):n.disable(n.CULL_FACE),this.current=r,this.dirty=!1}}class eo extends N{getDefault(){return this.gl.BACK}set(r){(r!==this.current||this.dirty)&&(this.gl.cullFace(r),this.current=r,this.dirty=!1)}}class ea extends N{getDefault(){return this.gl.CCW}set(r){(r!==this.current||this.dirty)&&(this.gl.frontFace(r),this.current=r,this.dirty=!1)}}let es,el=class extends N{getDefault(){return null}set(r){(r!==this.current||this.dirty)&&(this.gl.useProgram(r),this.current=r,this.dirty=!1)}};class ec extends N{getDefault(){return this.gl.TEXTURE0}set(r){(r!==this.current||this.dirty)&&(this.gl.activeTexture(r),this.current=r,this.dirty=!1)}}class eu extends N{getDefault(){let r=this.gl;return[0,0,r.drawingBufferWidth,r.drawingBufferHeight]}set(r){let n=this.current;(r[0]!==n[0]||r[1]!==n[1]||r[2]!==n[2]||r[3]!==n[3]||this.dirty)&&(this.gl.viewport(r[0],r[1],r[2],r[3]),this.current=r,this.dirty=!1)}}class ed extends N{getDefault(){return null}set(r){if(r===this.current&&!this.dirty)return;let n=this.gl;n.bindFramebuffer(n.FRAMEBUFFER,r),this.current=r,this.dirty=!1}}class eh extends N{getDefault(){return null}set(r){if(r===this.current&&!this.dirty)return;let n=this.gl;n.bindRenderbuffer(n.RENDERBUFFER,r),this.current=r,this.dirty=!1}}class ep extends N{getDefault(){return null}set(r){if(r===this.current&&!this.dirty)return;let n=this.gl;n.bindTexture(n.TEXTURE_2D,r),this.current=r,this.dirty=!1}}class ef extends N{getDefault(){return null}set(r){if(r===this.current&&!this.dirty)return;let n=this.gl;n.bindBuffer(n.ARRAY_BUFFER,r),this.current=r,this.dirty=!1}}class em extends N{getDefault(){return null}set(r){let n=this.gl;n.bindBuffer(n.ELEMENT_ARRAY_BUFFER,r),this.current=r,this.dirty=!1}}class eg extends N{constructor(r){super(r),this.vao=r.extVertexArrayObject}getDefault(){return null}set(r){this.vao&&(r!==this.current||this.dirty)&&(this.vao.bindVertexArrayOES(r),this.current=r,this.dirty=!1)}}class ev extends N{getDefault(){return 4}set(r){if(r===this.current&&!this.dirty)return;let n=this.gl;n.pixelStorei(n.UNPACK_ALIGNMENT,r),this.current=r,this.dirty=!1}}class ey extends N{getDefault(){return!1}set(r){if(r===this.current&&!this.dirty)return;let n=this.gl;n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL,r),this.current=r,this.dirty=!1}}class eb extends N{getDefault(){return!1}set(r){if(r===this.current&&!this.dirty)return;let n=this.gl;n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,r),this.current=r,this.dirty=!1}}class ex extends N{constructor(r,n){super(r),this.context=r,this.parent=n}getDefault(){return null}}class e_ extends ex{setDirty(){this.dirty=!0}set(r){if(r===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);let n=this.gl;n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,r,0),this.current=r,this.dirty=!1}}class ew extends ex{attachment(){return this.gl.DEPTH_ATTACHMENT}set(r){if(r===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);let n=this.gl;n.framebufferRenderbuffer(n.FRAMEBUFFER,this.attachment(),n.RENDERBUFFER,r),this.current=r,this.dirty=!1}}class eS extends ew{attachment(){return this.gl.DEPTH_STENCIL_ATTACHMENT}}class eT{constructor(r,n,i,o){this.context=r,this.width=n,this.height=i;let a=this.framebuffer=r.gl.createFramebuffer();this.colorAttachment=new e_(r,a),o&&(this.depthAttachment=new ew(r,a))}destroy(){let r=this.context.gl,n=this.colorAttachment.get();if(n&&r.deleteTexture(n),this.depthAttachment){let n=this.depthAttachment.get();n&&r.deleteRenderbuffer(n)}r.deleteFramebuffer(this.framebuffer)}}class eE{constructor(r,n=!1){this.gl=r,this.isWebGL2=n,this.extVertexArrayObject=this.gl.getExtension("OES_vertex_array_object"),n&&(this.extVertexArrayObject={createVertexArrayOES:r.createVertexArray.bind(r),deleteVertexArrayOES:r.deleteVertexArray.bind(r),bindVertexArrayOES:r.bindVertexArray.bind(r)}),this.clearColor=new U(this),this.clearDepth=new V(this),this.clearStencil=new q(this),this.colorMask=new $(this),this.depthMask=new G(this),this.stencilMask=new W(this),this.stencilFunc=new H(this),this.stencilOp=new X(this),this.stencilTest=new Y(this),this.depthRange=new K(this),this.depthTest=new J(this),this.depthFunc=new Q(this),this.blend=new ee(this),this.blendFunc=new et(this),this.blendColor=new er(this),this.blendEquation=new en(this),this.cullFace=new ei(this),this.cullFaceSide=new eo(this),this.frontFace=new ea(this),this.program=new el(this),this.activeTexture=new ec(this),this.viewport=new eu(this),this.bindFramebuffer=new ed(this),this.bindRenderbuffer=new eh(this),this.bindTexture=new ep(this),this.bindVertexBuffer=new ef(this),this.bindElementBuffer=new em(this),this.bindVertexArrayOES=this.extVertexArrayObject&&new eg(this),this.pixelStoreUnpack=new ev(this),this.pixelStoreUnpackPremultiplyAlpha=new ey(this),this.pixelStoreUnpackFlipY=new eb(this),this.extTextureFilterAnisotropic=r.getExtension("EXT_texture_filter_anisotropic")||r.getExtension("MOZ_EXT_texture_filter_anisotropic")||r.getExtension("WEBKIT_EXT_texture_filter_anisotropic"),this.extTextureFilterAnisotropic&&(this.extTextureFilterAnisotropicMax=r.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.extTextureFilterAnisotropicForceOff=!1,this.extStandardDerivativesForceOff=!1,this.extDebugRendererInfo=r.getExtension("WEBGL_debug_renderer_info"),this.extDebugRendererInfo&&(this.renderer=r.getParameter(this.extDebugRendererInfo.UNMASKED_RENDERER_WEBGL),this.vendor=r.getParameter(this.extDebugRendererInfo.UNMASKED_VENDOR_WEBGL)),n||(this.extTextureHalfFloat=r.getExtension("OES_texture_half_float")),(n||this.extTextureHalfFloat&&r.getExtension("OES_texture_half_float_linear"))&&(this.extRenderToTextureHalfFloat=r.getExtension("EXT_color_buffer_half_float")),this.extStandardDerivatives=n||r.getExtension("OES_standard_derivatives"),this.extTimerQuery=r.getExtension("EXT_disjoint_timer_query"),this.maxTextureSize=r.getParameter(r.MAX_TEXTURE_SIZE)}setDefault(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()}setDirty(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.extVertexArrayObject&&(this.bindVertexArrayOES.dirty=!0),this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0}createIndexBuffer(r,n){return new z(this,r,n)}createVertexBuffer(r,n,i){return new F(this,r,n,i)}createRenderbuffer(r,n,i){let o=this.gl,a=o.createRenderbuffer();return this.bindRenderbuffer.set(a),o.renderbufferStorage(o.RENDERBUFFER,r,n,i),this.bindRenderbuffer.set(null),a}createFramebuffer(r,n,i){return new eT(this,r,n,i)}clear({color:r,depth:n,stencil:i}){let o=this.gl,a=0;r&&(a|=o.COLOR_BUFFER_BIT,this.clearColor.set(r),this.colorMask.set([!0,!0,!0,!0])),void 0!==n&&(a|=o.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(n),this.depthMask.set(!0)),void 0!==i&&(a|=o.STENCIL_BUFFER_BIT,this.clearStencil.set(i),this.stencilMask.set(255)),o.clear(a)}setCullFace(r){!1===r.enable?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(r.mode),this.frontFace.set(r.frontFace))}setDepthMode(r){r.func!==this.gl.ALWAYS||r.mask?(this.depthTest.set(!0),this.depthFunc.set(r.func),this.depthMask.set(r.mask),this.depthRange.set(r.range)):this.depthTest.set(!1)}setStencilMode(r){r.test.func!==this.gl.ALWAYS||r.mask?(this.stencilTest.set(!0),this.stencilMask.set(r.mask),this.stencilOp.set([r.fail,r.depthFail,r.pass]),this.stencilFunc.set({func:r.test.func,ref:r.ref,mask:r.test.mask})):this.stencilTest.set(!1)}setColorMode(n){a(n.blendFunction,r.ColorMode.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(n.blendFunction),this.blendColor.set(n.blendColor)),this.colorMask.set(n.mask)}unbindVAO(){this.extVertexArrayObject&&this.bindVertexArrayOES.set(null)}}class ek extends r.Evented{constructor(n,i,o,a){if(super(),this.id=n,this.dispatcher=o,this.type="vector",this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,r.extend(this,r.pick(i,["url","scheme","tileSize","promoteId"])),this._options=r.extend({type:"vector"},i),this._collectResourceTiming=i.collectResourceTiming,512!==this.tileSize)throw Error("vector tile sources must have a tileSize of 512");this.setEventedParent(a),this._tileWorkers={},this._deduped=new r.DedupedRequest}load(n){this._loaded=!1,this.fire(new r.Event("dataloading",{dataType:"source"}));let i=Array.isArray(this.map._language)?this.map._language.join():this.map._language,o=this.map._worldview;this._tileJSONRequest=D(this._options,this.map._requestManager,i,o,(a,s)=>{this._tileJSONRequest=null,this._loaded=!0,a?(i&&console.warn(`Ensure that your requested language string is a valid BCP-47 code or list of codes. Found: ${i}`),o&&2!==o.length&&console.warn(`Requested worldview strings must be a valid ISO alpha-2 code. Found: ${o}`),this.fire(new r.ErrorEvent(a))):s&&(r.extend(this,s),s.bounds&&(this.tileBounds=new L(s.bounds,this.minzoom,this.maxzoom)),r.postTurnstileEvent(s.tiles,this.map._requestManager._customAccessToken),this.fire(new r.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new r.Event("data",{dataType:"source",sourceDataType:"content"}))),n&&n(a)})}loaded(){return this._loaded}hasTile(r){return!this.tileBounds||this.tileBounds.contains(r.canonical)}onAdd(r){this.map=r,this.load()}reload(){this.cancelTileJSONRequest(),this.load(()=>
170this.map.style._clearSource(this.id))}setTiles(r){return this._options.tiles=r,this.reload(),this}setUrl(r){return this.url=r,this._options.url=r,this.reload(),this}onRemove(){this.cancelTileJSONRequest()}serialize(){return r.extend({},this._options)}loadTile(n,i){let o=this.map._requestManager.normalizeTileURL(n.tileID.canonical.url(this.tiles,this.scheme)),a={request:this.map._requestManager.transformRequest(o,r.ResourceType.Tile),data:void 0,uid:n.uid,tileID:n.tileID,tileZoom:n.tileZoom,zoom:n.tileID.overscaledZ,tileSize:this.tileSize*n.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:r.exported.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,isSymbolTile:n.isSymbolTile};if(a.request.collectResourceTiming=this._collectResourceTiming,n.actor&&"expired"!==n.state)"loading"===n.state?n.reloadCallback=i:n.request=n.actor.send("reloadTile",a,s.bind(this));else if(n.actor=this._tileWorkers[o]=this._tileWorkers[o]||this.dispatcher.getActor(),this.dispatcher.ready)n.request=n.actor.send("loadTile",a,s.bind(this),void 0,!0);else{let i=r.loadVectorTile.call({deduped:this._deduped},a,(r,i)=>{r||!i?s.call(this,r):(a.data={cacheControl:i.cacheControl,expires:i.expires,rawData:i.rawData.slice(0)},n.actor&&n.actor.send("loadTile",a,s.bind(this),void 0,!0))},!0);n.request={cancel:i}}function s(o,a){return delete n.request,n.aborted?i(null):o&&404!==o.status?i(o):(a&&a.resourceTiming&&(n.resourceTiming=a.resourceTiming),this.map._refreshExpiredTiles&&a&&n.setExpiryData(a),n.loadVectorData(a,this.map.painter),r.cacheEntryPossiblyAdded(this.dispatcher),i(null),void(n.reloadCallback&&(this.loadTile(n,n.reloadCallback),n.reloadCallback=null)))}}abortTile(r){r.request&&(r.request.cancel(),delete r.request),r.actor&&r.actor.send("abortTile",{uid:r.uid,type:this.t
170ype,source:this.id})}unloadTile(r){r.unloadVectorData(),r.actor&&r.actor.send("removeTile",{uid:r.uid,type:this.type,source:this.id})}hasTransition(){return!1}afterUpdate(){this._tileWorkers={}}cancelTileJSONRequest(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}}class eC extends r.Evented{constructor(n,i,o,a){super(),this.id=n,this.dispatcher=o,this.setEventedParent(a),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=r.extend({type:"raster"},i),r.extend(this,r.pick(i,["url","scheme","tileSize"]))}load(n){this._loaded=!1,this.fire(new r.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=D(this._options,this.map._requestManager,null,null,(i,o)=>{this._tileJSONRequest=null,this._loaded=!0,i?this.fire(new r.ErrorEvent(i)):o&&(r.extend(this,o),o.bounds&&(this.tileBounds=new L(o.bounds,this.minzoom,this.maxzoom)),r.postTurnstileEvent(o.tiles),this.fire(new r.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new r.Event("data",{dataType:"source",sourceDataType:"content"}))),n&&n(i)})}loaded(){return this._loaded}onAdd(r){this.map=r,this.load()}reload(){this.cancelTileJSONRequest(),this.load(()=>this.map.style._clearSource(this.id))}setTiles(r){return this._options.tiles=r,this.reload(),this}setUrl(r){return this.url=r,this._options.url=r,this.reload(),this}onRemove(){this.cancelTileJSONRequest()}serialize(){return r.extend({},this._options)}hasTile(r){return!this.tileBounds||this.tileBounds.contains(r.canonical)}loadTile(n,i){let o=r.exported.devicePixelRatio>=2,a=this.map._requestManager.normalizeTileURL(n.tileID.canonical.url(this.tiles,this.scheme),o,this.tileSize);n.request=r.getImage(this.map._requestManager.transformRequest(a,r.ResourceType.Tile),(o,a,s,l)=>(delete n.request,n.aborted?(n.state="unloaded",i(null)):o?(n.state="errored",i(o)):a?(this.map._refreshExpiredTiles&&n.setExpiryData({cacheControl:s,expires:l}),n.setTexture(a,this.map.painter),n.state="loaded",r.cacheEntryPossiblyAdded(this.dispatcher),void i(null)):i(null)))}static loadTileData(r,n,i){r.setTexture(n,i)}static unloadTileData(r,n){r.texture&&n.saveTileTexture(r.texture)}abortTile(r,n){r.request&&(r.request.cancel(),delete r.request),n()}unloadTile(r,n){r.texture&&this.map.painter.saveTileTexture(r.texture),n()}hasTransition(){return!1}cancelTileJSONRequest(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}}function eP(n,i,o,a,s,l,c,u){let d=[n,o,s,i,a,l,1,1,1],h=[c,u,1],p=r.adjoint([],d),[f,m,g]=r.transformMat3(h,h,r.transpose(p,p));return r.multiply$1(d,[f,0,0,0,m,0,0,0,g],d)}class eO extends r.Evented{constructor(r,n,i,o){super(),this.id=r,this.dispatcher=i,this.coordinates=n.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(o),this.options=n,this._dirty=!1}load(n,i){this._loaded=i||!1,this.fire(new r.Event("dataloading",{dataType:"source"})),this.url=this.options.url,this._imageRequest=r.getImage(this.map._requestManager.transformRequest(this.url,r.ResourceType.Image),(i,o)=>{if(this._imageRequest=null,this._loaded=!0,i)this.fire(new r.ErrorEvent(i));else if(o){let{HTMLImageElement:i}=r.window;this.image=o instanceof i?r.exported.getImageData(o):o,this._dirty=!0,this.width=this.image.width,this.height=this.image.height,n&&(this.coordinates=n),this._finishLoading()}})}loaded(){return this._loaded}updateImage(r){return this.image&&r.url&&(this._imageRequest&&r.url!==this.options.url&&(this._imageRequest.cancel(),this._imageRequest=null),this.options.url=r.url,this.load(r.coordinates,this._loaded)),this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new r.Event("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(r){this.map=r,this.load()}onRemove(){this._imageRequest&&(this._imageRequest.cancel(),this._imageRequest=null),this.texture&&this.texture.destroy()}setCoordinates(n){this.coordinates=n,this._boundsArray=void 0;let i=n.map(r.MercatorCoordinate.fromLngLat);return this.tileID=function(n){let i=1/0,o=1/0,a=-1/0,s=-1/0;for(let r of n)i=Math.min(i,r.x),o=Math.min(o,r.y),a=Math.max(a,r.x),s=Math.max(s,r.y);let l=Math.max(a-i,s-o),c=Math.max(0,Math.floor(-Math.log(l)/Math.LN2)),u=Math.pow(2,c);return new r.CanonicalTileID(c,Math.floor((i+a)/2*u),Math.floor((o+s)/2*u))}(i),this.minzoom=this.maxzoom=this.tileID.z,this.fire(new r.Event("data",{dataType:"source",sourceDataType:"content"})),this}_clear(){this._boundsArray=void 0}_prepareData(n){for(let r in this.tiles){let n=this.tiles[r];"loaded"!==n.state&&(n.state="loaded",n.texture=this.texture)}if(this._boundsArray)return;let i=r.tileTransform(this.tileID,this.map.transform.projection),[o,a,s,l]=this.coordinates.map(n=>{let o=i.projection.project(n[0],n[1]);return r.getTilePoint(i,o)._round()});this.perspectiveTransform=function(n,i,o,a,s,l,c,u,d,h){let p=eP(0,0,n,0,0,i,n,i),f=eP(o,a,s,l,c,u,d,h);return r.multiply$1(f,r.adjoint(p,p),f),[f[6]/f[8]*n/r.EXTENT,f[7]/f[8]*i/r.EXTENT]}(this.width,this.height,o.x,o.y,a.x,a.y,l.x,l.y,s.x,s.y);let c=this._boundsArray=new r.StructArrayLayout4i8;c.emplaceBack(o.x,o.y,0,0),c.emplaceBack(a.x,a.y,r.EXTENT,0),c.emplaceBack(l.x,l.y,0,r.EXTENT),c.emplaceBack(s.x,s.y,r.EXTENT,r.EXTENT),this.boundsBuffer&&this.boundsBuffer.destroy(),this.boundsBuffer=n.createVertexBuffer(c,r.boundsAttributes.members),this.boundsSegments=r.SegmentVector.simpleSegment(0,0,4,2)}prepare(){if(0===Object.keys(this.tiles).length||!this.image)return;let n=this.map.painter.context,i=n.gl;this._dirty&&(this.texture?this.texture.update(this.image):(this.texture=new r.Texture(n,this.image,i.RGBA),this.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE)),this._dirty=!1),this._prepareData(n)}loadTile(r,n){this.tileID&&this.tileID.equals(r.tileID.canonical)?(this.tiles[String(r.tileID.wrap)]=r,r.buckets={},n(null)):(r.state="errored",n(null))}serialize(){return{type:"image",url:this.options.url,coordinates:this.coordinates}}hasTransition(){return!1}}let ej={vector:ek,raster:eC,"raster-dem":class extends eC{constructor(n,i,o,a){super(n,i,o,a),this.type="raster-dem",this.maxzoom=22,this._options=r.extend({type:"raster-dem"},i),this.encoding=i.encoding||"mapbox"}loadTile(n,i){let o=this.map._requestManager.normalizeTileURL(n.tileID.canonical.url(this.tiles,this.scheme),!1,this.tileSize);function a(r,o){r&&(n.state="errored",i(r)),o&&(n.dem=o,n.dem.onDeserialize(),n.needsHillshadePrepare=!0,n.needsDEMTextureUpload=!0,n.state="loaded",i(null))}n.request=r.getImage(this.map._requestManager.transformRequest(o,r.ResourceType.Tile),(function(o,s,l,c){if(delete n.request,n.aborted)n.state="unloaded",i(null);else if(o)n.state="errored",i(o);
170else if(s){this.map._refreshExpiredTiles&&n.setExpiryData({cacheControl:l,expires:c});let i=r.window.ImageBitmap&&s instanceof r.window.ImageBitmap&&(null==es&&(es=r.window.OffscreenCanvas&&new r.window.OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof r.window.createImageBitmap),es),o=1-(s.width-r.prevPowerOfTwo(s.width))/2;o<1||n.neighboringTiles||(n.neighboringTiles=this._getNeighboringTiles(n.tileID));let u=i?s:r.exported.getImageData(s,o),d={uid:n.uid,coord:n.tileID,source:this.id,rawImageData:u,encoding:this.encoding,padding:o};n.actor&&"expired"!==n.state||(n.actor=this.dispatcher.getActor(),n.actor.send("loadDEMTile",d,a.bind(this),void 0,!0))}}).bind(this))}_getNeighboringTiles(n){let i=n.canonical,o=Math.pow(2,i.z),a=(i.x-1+o)%o,s=0===i.x?n.wrap-1:n.wrap,l=(i.x+1+o)%o,c=i.x+1===o?n.wrap+1:n.wrap,u={};return u[new r.OverscaledTileID(n.overscaledZ,s,i.z,a,i.y).key]={backfilled:!1},u[new r.OverscaledTileID(n.overscaledZ,c,i.z,l,i.y).key]={backfilled:!1},i.y>0&&(u[new r.OverscaledTileID(n.overscaledZ,s,i.z,a,i.y-1).key]={backfilled:!1},u[new r.OverscaledTileID(n.overscaledZ,n.wrap,i.z,i.x,i.y-1).key]={backfilled:!1},u[new r.OverscaledTileID(n.overscaledZ,c,i.z,l,i.y-1).key]={backfilled:!1}),i.y+1<o&&(u[new r.OverscaledTileID(n.overscaledZ,s,i.z,a,i.y+1).key]={backfilled:!1},u[new r.OverscaledTileID(n.overscaledZ,n.wrap,i.z,i.x,i.y+1).key]={backfilled:!1},u[new r.OverscaledTileID(n.overscaledZ,c,i.z,l,i.y+1).key]={backfilled:!1}),u}unloadTile(r){r.demTexture&&this.map.painter.saveTileTexture(r.demTexture),r.fbo&&(r.fbo.destroy(),delete r.fbo),r.dem&&delete r.dem,delete r.neighboringTiles,r.state="unloaded"}},geojson:class extends r.Evented{constructor(n,i,o,a){super(),this.id=n,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._loaded=!1,this.actor=o.getActor(),this.setEventedParent(a),this._data=i.data,this._options=r.extend({},i),this._collectResourceTiming=i.collectResourceTiming,void 0!==i.maxzoom&&(this.maxzoom=i.maxzoom),i.type&&(this.type=i.type),i.attribution&&(this.attribution=i.attribution),this.promoteId=i.promoteId;let s=r.EXTENT/this.tileSize;this.workerOptions=r.extend({source:this.id,cluster:i.cluster||!1,geojsonVtOptions:{buffer:(void 0!==i.buffer?i.buffer:128)*s,tolerance:(void 0!==i.tolerance?i.tolerance:.375)*s,extent:r.EXTENT,maxZoom:this.maxzoom,lineMetrics:i.lineMetrics||!1,generateId:i.generateId||!1},superclusterOptions:{maxZoom:void 0!==i.clusterMaxZoom?i.clusterMaxZoom:this.maxzoom-1,minPoints:Math.max(2,i.clusterMinPoints||2),extent:r.EXTENT,radius:(void 0!==i.clusterRadius?i.clusterRadius:50)*s,log:!1,generateId:i.generateId||!1},clusterProperties:i.clusterProperties,filter:i.filter},i.workerOptions)}onAdd(r){this.map=r,this.setData(this._data)}setData(r){return this._data=r,this._updateWorkerData(),this}getClusterExpansionZoom(r,n){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:r,source:this.id},n),this}getClusterChildren(r,n){return this.actor.send("geojson.getClusterChildren",{clusterId:r,source:this.id},n),this}getClusterLeaves(r,n,i,o){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:r,limit:n,offset:i},o),this}_updateWorkerData(){if(this._pendingLoad)return void(this._coalesce=!0);this.fire(new r.Event("dataloading",{dataType:"source"})),this._loaded=!1;let n=r.extend({},this.workerOptions),i=this._data;"string"==typeof i?(n.request=this.map._requestManager.transformRequest(r.exported.resolveURL(i),r.ResourceType.Source),n.request.collectResourceTiming=this._collectResourceTiming):n.data=JSON.stringify(i),this._pendingLoad=this.actor.send(`${this.type}.loadData`,n,(n,i)=>{if(this._loaded=!0,this._pendingLoad=null,n)this.fire(new r.ErrorEvent(n));else{let n={dataType:"source",sourceDataType:this._metadataFired?"content":"metadata"};this._collectResourceTiming&&i&&i.resourceTiming&&i.resourceTiming[this.id]&&(n.resourceTiming=i.resourceTiming[this.id]),this.fire(new r.Event("data",n)),this._metadataFired=!0}this._coalesce&&(this._updateWorkerData(),this._coalesce=!1)})}loaded(){return this._loaded}loadTile(n,i){let o=n.actor?"reloadTile":"loadTile";
170n.actor=this.actor,n.request=this.actor.send(o,{type:this.type,uid:n.uid,tileID:n.tileID,tileZoom:n.tileZoom,zoom:n.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:r.exported.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},(r,a)=>(delete n.request,n.unloadVectorData(),n.aborted?i(null):r?i(r):(n.loadVectorData(a,this.map.painter,"reloadTile"===o),i(null))),void 0,"loadTile"===o)}abortTile(r){r.request&&(r.request.cancel(),delete r.request),r.aborted=!0}unloadTile(r){r.unloadVectorData(),this.actor.send("removeTile",{uid:r.uid,type:this.type,source:this.id})}onRemove(){this._pendingLoad&&this._pendingLoad.cancel()}serialize(){return r.extend({},this._options,{type:this.type,data:this._data})}hasTransition(){return!1}},video:class extends eO{constructor(r,n,i,o){super(r,n,i,o),this.roundZoom=!0,this.type="video",this.options=n}load(){this._loaded=!1;let n=this.options;for(let i of(this.urls=[],n.urls))this.urls.push(this.map._requestManager.transformRequest(i,r.ResourceType.Source).url);r.getVideo(this.urls,(n,i)=>{this._loaded=!0,n?this.fire(new r.ErrorEvent(n)):i&&(this.video=i,this.video.loop=!0,this.video.setAttribute("playsinline",""),this.video.addEventListener("playing",()=>{this.map.triggerRepaint()}),this.map&&this.video.play(),this._finishLoading())})}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(n){if(this.video){let i=this.video.seekable;n<i.start(0)||n>i.end(0)?this.fire(new r.ErrorEvent(new r.ValidationError(`sources.${this.id}`,null,`Playback for this video can be set only between the ${i.start(0)} and ${i.end(0)}-second mark.`))):this.video.currentTime=n}}getVideo(){return this.video}onAdd(r){this.map||(this.map=r,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}prepare(){if(0===Object.keys(this.tiles).length||this.video.readyState<2)return;let n=this.map.painter.context,i=n.gl;this.texture?this.video.paused||(this.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE),i.texSubImage2D(i.TEXTURE_2D,0,0,0,i.RGBA,i.UNSIGNED_BYTE,this.video)):(this.texture=new r.Texture(n,this.video,i.RGBA),this.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE),this.width=this.video.videoWidth,this.height=this.video.videoHeight),this._prepareData(n)}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}},image:eO,canvas:class extends eO{constructor(n,i,o,a){super(n,i,o,a),i.coordinates?Array.isArray(i.coordinates)&&4===i.coordinates.length&&!i.coordinates.some(r=>!Array.isArray(r)||2!==r.length||r.some(r=>"number"!=typeof r))||this.fire(new r.ErrorEvent(new r.ValidationError(`sources.${n}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new r.ErrorEvent(new r.ValidationError(`sources.${n}`,null,'missing required property "coordinates"'))),i.animate&&"boolean"!=typeof i.animate&&this.fire(new r.ErrorEvent(new r.ValidationError(`sources.${n}`,null,'optional "animate" property must be a boolean value'))),i.canvas?"string"==typeof i.canvas||i.canvas instanceof r.window.HTMLCanvasElement||this.fire(new r.ErrorEvent(new r.ValidationError(`sources.${n}`,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new r.ErrorEvent(new r.ValidationError(`sources.${n}`,null,'missing required property "canvas"'))),this.options=i,this.animate=void 0===i.animate||i.animate}load(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof r.window.HTMLCanvasElement?this.options.canvas:r.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new r.ErrorEvent(Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())}getCanvas(){return this.canvas}onAdd(r){this.map=r,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}prepare(){let n=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,n=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,n=!0),this._hasInvalidDimensions()||0===Object.keys(this.tiles).length)return;let i=this.map.painter.context;this.texture?(n||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new r.Texture(i,this.canvas,i.gl.RGBA,{premultiply:!0}),this._prepareData(i)}serialize(){return{type:"canvas",coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(let r of[this.canvas.width,this.canvas.height])if(isNaN(r)||r<=0)return!0;return!1}},custom:class extends r.Evented{constructor(n,i,o,a){super(),this.id=n,this.type="custom",this._dataType="raster",this._dispatcher=o,this._implementation=i,this.setEventedParent(a),this.scheme="xyz",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this._loaded=!1,this.roundZoom=!0,this._implementation||this.fire(new r.ErrorEvent(Error(`Missing implementation for ${this.id} custom source`))),this._implementation.loadTile||this.fire(new r.ErrorEvent(Error(`Missing loadTile implementation for ${this.id} custom source`))),this._implementation.bounds&&(this.tileBounds=new L(this._implementation.bounds,this.minzoom,this.maxzoom)),i.update=this._update.bind(this),i.clearTiles=this._clearTiles.bind(this),i.coveringTiles=this._coveringTiles.bind(this),r.extend(this,r.pick(i,["dataType","scheme","minzoom","maxzoom","tileSize","attribution","minTileCacheSize","maxTileC
170acheSize"]))}serialize(){return r.pick(this,["type","scheme","minzoom","maxzoom","tileSize","attribution"])}load(){this._loaded=!0,this.fire(new r.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new r.Event("data",{dataType:"source",sourceDataType:"content"}))}loaded(){return this._loaded}onAdd(n){this._map=n,this._loaded=!1,this.fire(new r.Event("dataloading",{dataType:"source"})),this._implementation.onAdd&&this._implementation.onAdd(n),this.load()}onRemove(r){this._implementation.onRemove&&this._implementation.onRemove(r)}hasTile(r){if(this._implementation.hasTile){let{x:n,y:i,z:o}=r.canonical;return this._implementation.hasTile({x:n,y:i,z:o})}return!this.tileBounds||this.tileBounds.contains(r.canonical)}loadTile(n,i){let{x:o,y:a,z:s}=n.tileID.canonical,l=new r.window.AbortController;n.request=Promise.resolve(this._implementation.loadTile({x:o,y:a,z:s},{signal:l.signal})).then((function(o){return delete n.request,n.aborted?(n.state="unloaded",i(null)):void 0===o?(n.state="errored",i(null)):null===o?(this.loadTileData(n,{width:this.tileSize,height:this.tileSize,data:null}),n.state="loaded",i(null)):o instanceof r.window.ImageData||o instanceof r.window.HTMLCanvasElement||o instanceof r.window.ImageBitmap||o instanceof r.window.HTMLImageElement?(this.loadTileData(n,o),n.state="loaded",void i(null)):(n.state="errored",i(Error(`Can't infer data type for ${this.id}, only raster data supported at the moment`)))}).bind(this)).catch(r=>{20!==r.code&&(n.state="errored",i(r))}),n.request.cancel=()=>l.abort()}loadTileData(r,n){eC.loadTileData(r,n,this._map.painter)}unloadTileData(r){eC.unloadTileData(r,this._map.painter)}unloadTile(r,n){if(this.unloadTileData(r),this._implementation.unloadTile){let{x:n,y:i,z:o}=r.tileID.canonical;this._implementation.unloadTile({x:n,y:i,z:o})}n()}abortTile(r,n){r.request&&r.request.cancel&&(r.request.cancel(),delete r.request),n()}hasTransition(){return!1}_coveringTiles(){return this._map.transform.coveringTiles({tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,roundZoom:this.roundZoom}).map(r=>({x:r.canonical.x,y:r.canonical.y,z:r.canonical.z}))}_clearTiles(){this._map.style._clearSource(this.id)}_update(){this.fire(new r.Event("data",{dataType:"source",sourceDataType:"content"}))}}},eA=function(n,i,o,a){let s=new ej[i.type](n,i,o,a);if(s.id!==n)throw Error(`Expected Source id to be ${n} instead of ${s.id}`);return r.bindAll(["load","abort","unload","serialize","prepare"],s),s};function eM(r,n){let i=r.tileID,o=n.tileID;return i.overscaledZ-o.overscaledZ||i.canonical.y-o.canonical.y||i.wrap-o.wrap||i.canonical.x-o.canonical.x}function eI(){return null!=n4.workerClass?new n4.workerClass:new r.window.Worker(n4.workerUrl)}let eZ="mapboxgl_preloaded_worker_pool";class eR{constructor(){this.active={}}acquire(r){if(!this.workers)for(this.workers=[];this.workers.length<eR.workerCount;)this.workers.push(new eI);return this.active[r]=!0,this.workers.slice()}release(r){delete this.active[r],0===this.numActive()&&(this.workers.forEach(r=>{r.terminate()}),this.workers=null)}isPreloaded(){return!!this.active[eZ]}numActive(){return Object.keys(this.active).length}}function eD(){return i||(i=new eR),i}function eL(n){n=n.slice();let i=Object.create(null);for(let r=0;r<n.length;r++)i[n[r].id]=n[r];for(let o=0;o<n.length;o++)"ref"in n[o]&&(n[o]=function(n,i){let o={};for(let r in n)"ref"!==r&&(o[r]=n[r]);return r.refProperties.forEach(r=>{r in i&&(o[r]=i[r])}),o}(n[o],i[n[o].ref]));return n}eR.workerCount=2;let ez={setStyle:"setStyle",addLayer:"addLayer",removeLayer:"removeLayer",setPaintProperty:"setPaintProperty",setLayoutProperty:"setLayoutProperty",setFilter:"setFilter",addSource:"addSource",removeSource:"removeSource",setGeoJSONSourceData:"setGeoJSONSourceData",setLayerZoomRange:"setLayerZoomRange",setLayerProperty:"setLayerProperty",setCenter:"setCenter",setZoom:"setZoom",setBearing:"setBearing",setPitch:"setPitch",setSprite:"setSprite",setGlyphs:"setGlyphs",setTransition:"setTransition",setLight:"setLight",setTerrain:"setTerrain",setFog:"setFog",setProjection:"setProjection"};function eB(r,n,i){i.push({command:ez.addSource,args:[r,n[r]]})}function eF(r,n,i){n.push({command:ez.removeSource,args:[r]}),i[r]=!0}function eN(r,n,i,o,s,l){let c;for(c in n=n||{},r=r||{})r.hasOwnProperty(c)&&(a(r[c],n[c])||i.push({command:l,args:[o,c,n[c],s]}));for(c in n)n.hasOwnProperty(c)&&!r.hasOwnProperty(c)&&(a(r[c],n[c])||i.push({command:l,args:[o,c,n[c],s]}))}function eU(r){return r.id}function eV(r,n){return r[n.id]=n,r}class eq{constructor(r,n){this.reset(r,n)}reset(r,n){this.points=r||[],this._distances=[0];for(let r=1;r<this.points.length;r++)this._distances[r]=this._distances[r-1]+this.points[r].dist(this.points[r-1]);this.length=this._distances[this._distances.length-1],this.padding=Math.min(n||0,.5*this.length),this.paddedLength=this.length-2*this.padding}lerp(n){if(1===this.points.length)return this.points[0];n=r.clamp(n,0,1);let i=1,o=this._distances[i],a=n*this.paddedLength+this.padding;
vendor: 1,186 bytes, line 170
170for(;o<a&&i<this._distances.length;)o=this._distances[++i];let s=i-1,l=this._distances[s],c=o-l,u=c>0?(a-l)/c:0;return this.points[s].mult(1-u).add(this.points[i].mult(u))}}class e${constructor(r,n,i){let o=this.boxCells=[],a=this.circleCells=[];this.xCellCount=Math.ceil(r/i),this.yCellCount=Math.ceil(n/i);for(let r=0;r<this.xCellCount*this.yCellCount;r++)o.push([]),a.push([]);this.circleKeys=[],this.boxKeys=[],this.bboxes=[],this.circles=[],this.width=r,this.height=n,this.xScale=this.xCellCount/r,this.yScale=this.yCellCount/n,this.boxUid=0,this.circleUid=0}keysLength(){return this.boxKeys.length+this.circleKeys.length}insert(r,n,i,o,a){this._forEachCell(n,i,o,a,this._insertBoxCell,this.boxUid++),this.boxKeys.push(r),this.bboxes.push(n),this.bboxes.push(i),this.bboxes.push(o),this.bboxes.push(a)}insertCircle(r,n,i,o){this._forEachCell(n-o,i-o,n+o,i+o,this._insertCircleCell,this.circleUid++),this.circleKeys.push(r),this.circles.push(n),this.circles.push(i),this.circles.push(o)}_insertBoxCell(r,n,i,o,a,s){this.boxCells[a].push(s)}_insertCircleCell(r,n,i,o,a,s){this.circleCells[a].push(s)}_query(r,n,i,o,a,s){if(i<0||r>this.width||o<0||n>this.height)return!a&&[];let l=[];
170if(r<=0&&n<=0&&this.width<=i&&this.height<=o){if(a)return!0;for(let r=0;r<this.boxKeys.length;r++)l.push({key:this.boxKeys[r],x1:this.bboxes[4*r],y1:this.bboxes[4*r+1],x2:this.bboxes[4*r+2],y2:this.bboxes[4*r+3]});for(let r=0;r<this.circleKeys.length;r++){let n=this.circles[3*r],i=this.circles[3*r+1],o=this.circles[3*r+2];l.push({key:this.circleKeys[r],x1:n-o,y1:i-o,x2:n+o,y2:i+o})}return s?l.filter(s):l}return this._forEachCell(r,n,i,o,this._queryCell,l,{hitTest:a,seenUids:{box:{},circle:{}}},s),a?l.length>0:l}_queryCircle(r,n,i,o,a){let s=r-i,l=r+i,c=n-i,u=n+i;if(l<0||s>this.width||u<0||c>this.height)return!o&&[];let d=[];return this._forEachCell(s,c,l,u,this._queryCellCircle,d,{hitTest:o,circle:{x:r,y:n,radius:i},seenUids:{box:{},circle:{}}},a),o?d.length>0:d}query(r,n,i,o,a){return this._query(r,n,i,o,!1,a)}hitTest(r,n,i,o,a){return this._query(r,n,i,o,!0,a)}hitTestCircle(r,n,i,o){return this._queryCircle(r,n,i,!0,o)}_queryCell(r,n,i,o,a,s,l,c){let u=l.seenUids,d=this.boxCells[a];if(null!==d){let a=this.bboxes;for(let h of d)if(!u.box[h]){u.box[h]=!0;let d=4*h;if(r<=a[d+2]&&n<=a[d+3]&&i>=a[d+0]&&o>=a[d+1]&&(!c||c(this.boxKeys[h]))){if(l.hitTest)return s.push(!0),!0;s.push({key:this.boxKeys[h],x1:a[d],y1:a[d+1],x2:a[d+2],y2:a[d+3]})}}}let h=this.circleCells[a];if(null!==h){let a=this.circles;for(let d of h)if(!u.circle[d]){u.circle[d]=!0;let h=3*d;if(this._circleAndRectCollide(a[h],a[h+1],a[h+2],r,n,i,o)&&(!c||c(this.circleKeys[d]))){if(l.hitTest)return s.push(!0),!0;{let r=a[h],n=a[h+1],i=a[h+2];s.push({key:this.circleKeys[d],x1:r-i,y1:n-i,x2:r+i,y2:n+i})}}}}}_queryCellCircle(r,n,i,o,a,s,l,c){let u=l.circle,d=l.seenUids,h=this.boxCells[a];if(null!==h){let r=this.bboxes;for(let n of h)if(!d.box[n]){d.box[n]=!0;let i=4*n;if(this._circleAndRectCollide(u.x,u.y,u.radius,r[i+0],r[i+1],r[i+2],r[i+3])&&(!c||c(this.boxKeys[n])))return s.push(!0),!0}}let p=this.circleCells[a];if(null!==p){let r=this.circles;for(let n of p)if(!d.circle[n]){d.circle[n]=!0;let i=3*n;if(this._circlesCollide(r[i],r[i+1],r[i+2],u.x,u.y,u.radius)&&(!c||c(this.circleKeys[n])))return s.push(!0),!0}}}_forEachCell(r,n,i,o,a,s,l,c){let u=this._convertToXCellCoord(r),d=this._convertToYCellCoord(n),h=this._convertToXCellCoord(i),p=this._convertToYCellCoord(o);for(let f=u;f<=h;f++)for(let u=d;u<=p;u++)if(a.call(this,r,n,i,o,this.xCellCount*u+f,s,l,c))return}_convertToXCellCoord(r){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(r*this.xScale)))}_convertToYCellCoord(r){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(r*this.yScale)))}_circlesCollide(r,n,i,o,a,s){let l=o-r,c=a-n,u=i+s;return u*u>l*l+c*c}_circleAndRectCollide(r,n,i,o,a,s,l){let c=(s-o)/2,u=Math.abs(r-(o+c));if(u>c+i)return!1;let d=(l-a)/2,h=Math.abs(n-(a+d));if(h>d+i)return!1;if(u<=c||h<=d)return!0;let p=u-c,f=h-d;return p*p+f*f<=i*i}}let eG={unknown:0,flipRequired:1,flipNotRequired:2},eW=Math.tan(85*Math.PI/180);function eH(n,i,o,a,s,l,c){let u=r.create();if(o){if("globe"===l.name){let n=r.calculateGlobeLabelMatrix(s,i);r.multiply(u,u,n)}else{let n=_([],c);u[0]=n[0],u[1]=n[1],u[4]=n[2],u[5]=n[3],a||r.rotateZ(u,u,s.angle)}}else r.multiply(u,s.labelPlaneMatrix,n);return u}function eX(r,n,i,o,a,s,l){let c=eH(r,n,i,o,a,s,l);return"globe"===s.name&&i||(c[2]=c[6]=c[10]=c[14]=0),c}function eY(n,i,o,a,s,l,c){if(o){if("globe"===l.name){let u=eH(n,i,o,a,s,l,c);return r.invert(u,u),r.multiply(u,n,u),u}{let i=r.clone(n),o=r.identity([]);return o[0]=c[0],o[1]=c[1],o[4]=c[2],o[5]=c[3],r.multiply(i,i,o),a||r.rotateZ(i,i,-s.angle),i}}return s.glCoordMatrix}function eK(n,i,o,a){let s=[n,i,o,1];o?r.transformMat4$1(s,s,a):e6(s,s,a);let l=s[3];return s[0]/=l,s[1]/=l,s[2]/=l,s}function eJ(r,n){return Math.min(.5+r/n*.5,1.5)}function eQ(r,n,i,o,a,s,l,c,u,d,h,p,f,m,g,v){let{lineStartIndex:y,glyphStartIndex:b,segment:x}=c,_=b+c.numGlyphs,w=y+c.lineLength,S=n.getoffsetX(b),T=n.getoffsetX(_-1),E=e4(r*S,i,o,a,s,l,x,y,w,u,d,h,p,f,!0,m,g,v);if(!E)return null;let k=e4(r*T,i,o,a,s,l,x,y,w,u,d,h,p,f,!0,m,g,v);return k?{first:E,last:k}:null}function e0(n,i,o,a){return n===r.WritingMode.horizontal&&Math.abs(a)>Math.abs(o)?{useVertical:!0}:n===r.WritingMode.vertical?a>0?{needsFlipping:!0}:null:i!==eG.unknown&&(0===o||Math.abs(a/o)>eW)?i===eG.flipRequired?{needsFlipping:!0}:null:o<0?{needsFlipping:!0}:null}function e1(n,i,o,a,s,l,c,u,d,h,p,f,m,g,v,y,b,x,_){let w=i/24,S=n.lineOffsetX*w,T=n.lineOffsetY*w,{lineStartIndex:E,glyphStartIndex:k,numGlyphs:C,segment:P,writingMode:O,flipState:j}=n,A=E+n.lineLength,M=n=>{if(p){let[i,o,a]=n.up,s=h.length;r.updateGlobeVertexNormal(p,s+0,i,o,a),r.updateGlobeVertexNormal(p,s+1,i,o,a),r.updateGlobeVertexNormal(p,s+2,i,o,a),r.updateGlobeVertexNormal(p,s+3,i,o,a)}let[i,o,a]=n.point;r.addDynamicAttributes(h,i,o,a,n.angle)};if(C>1){let r=eQ(w,u,S,T,o,f,m,n,d,l,g,y,!1,b,x,_);if(!r)return{notEnoughRoom:!0};if(a&&!o){let[i,o,a]=r.first.point,[s,l,u]=r.last.point;[i,o]=eK(i,o,a,c),[s,l]=eK(s,l,u,c);let d=e0(O,j,(s-i)*v,l-o);if(n.flipState=d&&d.needsFlipping?eG.flipRequired:eG.flipNotRequired,d)return d}M(r.first);for(let r=k+1;r<k+C-1;r++){let n=e4(w*u.getoffsetX(r),S,T,o,f,m,P,E,A,d,l,g,y,!1,!1,b,x,_);if(!n)return h.length-=4*(r-k),{notEnoughRoom:!0};M(n)}M(r.last)}else{if(a&&!o){let i=eK(m.x,m.y,0,s),o=E+P+1,a=new r.Point(d.getx(o),d.gety(o)),l=eK(a.x,a.y,0,s),c=l[3]>0?l:e3(m,a,i,1,s,void 0,b,x.canonical),u=e0(O,j,(c[0]-i[0])*v,c[1]-i[1]);if(n.flipState=u&&u.needsFlipping?eG.flipRequired:eG.flipNotRequired,u)return u}let i=e4(w*u.getoffsetX(k),S,T,o,f,m,P,E,A,d,l,g,y,!1,!1,b,x,_);if(!i)return{notEnoughRoom:!0};M(i)}return{}}function e2(r,n,i,o,a){let{x:s,y:l,z:c}=o.projectTilePoint(r.x,r.y,n);if(!a)return eK(s,l,c,i);let[u,d,h]=a(r);return eK(s+u,l+d,c+h,i)}function e3(n,i,o,a,s,l,c,u){let d=e2(n.sub(i)._unit()._add(n),u,s,c,l);
170return r.sub(d,o,d),r.normalize(d,d),r.scaleAndAdd(d,o,d,a)}function e4(n,i,o,a,s,l,c,u,d,h,p,f,m,g,v,y,b,x){let _=a?n-i:n+i,w=_>0?1:-1,S=0;a&&(w*=-1,S=Math.PI),w<0&&(S+=Math.PI);let T=u+c+(w>0?0:1)|0,E=s,k=s,C=0,P=0,O=Math.abs(_),j=[],A=[],M=l,I=M,Z=()=>e3(I,M,k,O-C+1,p,m,y,b.canonical);for(;C+P<=O;){if((T+=w)<u||T>=d)return null;if(k=E,I=M,j.push(k),g&&A.push(I),M=new r.Point(h.getx(T),h.gety(T)),!(E=f[T])){let r=e2(M,b.canonical,p,y,m);E=r[3]>0?f[T]=r:Z()}C+=P,P=r.distance(k,E)}v&&m&&(f[T]&&(E=Z(),P=r.distance(k,E)),f[T]=E);let R=(O-C)/P,D=M.sub(I)._mult(R)._add(I),L=r.sub([],E,k),z=r.scaleAndAdd([],k,L,R),B=[0,0,1],F=L[0],N=L[1];if(x&&(0!==(B=y.upVector(b.canonical,D.x,D.y))[0]||0!==B[1]||1!==B[2])){let n=[B[2],0,-B[0]],i=r.cross([],B,n);r.normalize(n,n),r.normalize(i,i),F=r.dot(L,n),N=r.dot(L,i)}if(o){let n=r.cross([],B,L);r.normalize(n,n),r.scaleAndAdd(z,z,n,o*w)}let U=S+Math.atan2(N,F);return j.push(z),g&&A.push(D),{point:z,angle:U,path:j,tilePath:A,up:B}}function e5(r,n){let i=n.length,o=i+4*r;n.resize(o),n.float32.fill(-1/0,4*i,4*o)}function e6(r,n,i){let o=n[0],a=n[1];return r[0]=i[0]*o+i[4]*a+i[12],r[1]=i[1]*o+i[5]*a+i[13],r[3]=i[3]*o+i[7]*a+i[15],r}class e8{constructor(r,n,i=new e$(r.width+200,r.height+200,25),o=new e$(r.width+200,r.height+200,25)){this.transform=r,this.grid=i,this.ignoredGrid=o,this.pitchfactor=Math.cos(r._pitch)*r.cameraToCenterDistance,this.screenRightBoundary=r.width+100,this.screenBottomBoundary=r.height+100,this.gridRightBoundary=r.width+200,this.gridBottomBoundary=r.height+200,this.fogState=n}placeCollisionBox(r,n,i,o,a,s,l,c){let u=i.projectedAnchorX,d=i.projectedAnchorY,h=i.projectedAnchorZ,p=i.elevation,f=i.tileID,m=r.getProjection();if(p&&f){let[r,n,o]=m.upVector(f.canonical,i.tileAnchorX,i.tileAnchorY),a=m.upVectorScale(f.canonical,this.transform.center.lat,this.transform.worldSize).metersToTile;u+=r*p*a,d+=n*p*a,h+=o*p*a}let g=this.projectAndGetPerspectiveRatio(l,u,d,h,i.tileID,"globe"===m.name||!!p||this.transform.pitch>0,m),v=s*g.perspectiveRatio,y=(i.x1*n+o.x-i.padding)*v+g.point.x,b=(i.y1*n+o.y-i.padding)*v+g.point.y,x=(i.x2*n+o.x+i.padding)*v+g.point.x,_=(i.y2*n+o.y+i.padding)*v+g.point.y,w=g.perspectiveRatio<=.55||g.occluded;return!this.isInsideGrid(y,b,x,_)||!a&&this.grid.hitTest(y,b,x,_,c)||w?{box:[],offscreen:!1,occluded:g.occluded}:{box:[y,b,x,_],offscreen:this.isOffscreen(y,b,x,_),occluded:!1}}placeCollisionCircles(n,i,o,a,s,l,c,u,d,h,p,f,m,g,v){let y=[],b=this.transform.elevation,x=n.getProjection(),_=b?b.getAtTileOffsetFunc(v,this.transform.center.lat,this.transform.worldSize,x):null,w=new r.Point(o.tileAnchorX,o.tileAnchorY),{x:S,y:T,z:E}=x.projectTilePoint(w.x,w.y,v.canonical);if(_){let[r,n,i]=_(w);S+=r,T+=n,E+=i}let k="globe"===x.name,C=this.projectAndGetPerspectiveRatio(c,S,T,E,v,k||!!b||this.transform.pitch>0,x),{perspectiveRatio:P}=C,O=(p?l/P:l*P)/r.ONE_EM,j=eK(S,T,E,u),A=C.signedDistanceFromCamera>0?eQ(O,s,o.lineOffsetX*O,o.lineOffsetY*O,!1,j,w,o,a,u,{},b&&!p?_:null,p&&!!b,x,v,p):null,M=!1,I=!1,Z=!0;if(A&&!C.occluded){let n=.5*m*P+g,o=new r.Point(-100,-100),a=new r.Point(this.screenRightBoundary,this.screenBottomBoundary),s=new eq,{first:l,last:c}=A,u=l.path.length,p=[];for(let r=u-1;r>=1;r--)p.push(l.path[r]);for(let r=1;r<c.path.length;r++)p.push(c.path[r]);let v=2.5*n;d&&(p=p.map(([r,n,i],o)=>(_&&!k&&(i=_(o<u-1?l.tilePath[u-1-o]:c.tilePath[o-u+2])[2]),eK(r,n,i,d)))).some(r=>r[3]<=0)&&(p=[]);let b=[];if(p.length>0){let n=1/0,i=-1/0,s=1/0,l=-1/0;for(let r of p)n=Math.min(n,r[0]),s=Math.min(s,r[1]),i=Math.max(i,r[0]),l=Math.max(l,r[1]);i>=o.x&&n<=a.x&&l>=o.y&&s<=a.y&&(b=[p.map(n=>new r.Point(n[0],n[1]))],(n<o.x||i>a.x||s<o.y||l>a.y)&&(b=r.clipLine(b,o.x,o.y,a.x,a.y)))}for(let r of b){s.reset(r,.25*n);let o=0;o=s.length<=.5*n?1:Math.ceil(s.paddedLength/v)+1;for(let r=0;r<o;r++){let a=r/Math.max(o-1,1),l=s.lerp(a),c=l.x+100,u=l.y+100;y.push(c,u,n,0);let d=c-n,p=u-n,m=c+n,g=u+n;if(Z=Z&&this.isOffscreen(d,p,m,g),I=I||this.isInsideGrid(d,p,m,g),!i&&this.grid.hitTestCircle(c,u,n,f)&&(M=!0,!h))return{circles:[],offscreen:!1,collisionDetected:M,occluded:!1}}}}return{circles:(h||!M)&&I?y:[],offscreen:Z,collisionDetected:M,occluded:C.occluded}}queryRenderedSymbols(n){if(0===n.length||0===this.grid.keysLength()&&0===this.ignoredGrid.keysLength())return{};let i=[],o=1/0,a=1/0,s=-1/0,l=-1/0;for(let c of n){let n=new r.Point(c.x+100,c.y+100);o=Math.min(o,n.x),a=Math.min(a,n.y),s=Math.max(s,n.x),l=Math.max(l,n.y),i.push(n)}let c=this.grid.query(o,a,s,l).concat(this.ignoredGrid.query(o,a,s,l)),u={},d={};for(let n of c){let o=n.key;if(void 0===u[o.bucketInstanceId]&&(u[o.bucketInstanceId]={}),u[o.bucketInstanceId][o.featureIndex])continue;let a=[new r.Point(n.x1,n.y1),new r.Point(n.x2,n.y1),new r.Point(n.x2,n.y2),new r.Point(n.x1,n.y2)];r.polygonIntersectsPolygon(i,a)&&(u[o.bucketInstanceId][o.featureIndex]=!0,void 0===d[o.bucketInstanceId]&&(d[o.bucketInstanceId]=[]),d[o.bucketInstanceId].push(o.featureIndex))}return d}insertCollisionBox(r,n,i,o,a){(n?this.ignoredGrid:this.grid).insert({bucketInstanceId:i,featureIndex:o,collisionGroupID:a},r[0],r[1],r[2],r[3])}insertCollisionCircles(r,n,i,o,a){let s=n?this.ignoredGrid:this.grid,l={bucketInstanceId:i,featureIndex:o,collisionGroupID:a};for(let n=0;n<r.length;
170n+=4)s.insertCircle(l,r[n],r[n+1],r[n+2])}projectAndGetPerspectiveRatio(n,i,o,a,s,l,c){let u=[i,o,a,1],d=!1;if(a||this.transform.pitch>0){if(r.transformMat4$1(u,u,n),this.fogState&&s&&"globe"!==c.name){let n=function(n,i,o,a,s,l){let c=l.calculateFogTileMatrix(s),u=[i,o,a];return r.transformMat4(u,u,c),C(n,u,l.pitch,l._fov)}(this.fogState,i,o,a,s.toUnwrapped(),this.transform);d=n>.9}}else e6(u,u,n);let h=u[3];return{point:new r.Point((u[0]/h+1)/2*this.transform.width+100,(-u[1]/h+1)/2*this.transform.height+100),perspectiveRatio:Math.min(.5+this.transform.getCameraToCenterDistance(c)/h*.5,1.5),signedDistanceFromCamera:h,occluded:l&&u[2]>h||d}}isOffscreen(r,n,i,o){return i<100||r>=this.screenRightBoundary||o<100||n>this.screenBottomBoundary}isInsideGrid(r,n,i,o){return i>=0&&r<this.gridRightBoundary&&o>=0&&n<this.gridBottomBoundary}getViewportMatrix(){let n=r.identity([]);return r.translate(n,n,[-100,-100,0]),n}}function e9(n,i,o){let a=i.createTileMatrix(n,n.worldSize,o.toUnwrapped());return r.multiply(new Float32Array(16),n.projMatrix,a)}function e7(r,n,i){return n.name===i.projection.name?r.projMatrix:e9(i,n,r)}class te{constructor(r,n,i,o){this.opacity=r?Math.max(0,Math.min(1,r.opacity+(r.placed?n:-n))):o&&i?1:0,this.placed=i}isHidden(){return 0===this.opacity&&!this.placed}}class tt{constructor(r,n,i,o,a,s=!1){this.text=new te(r?r.text:null,n,i,a),this.icon=new te(r?r.icon:null,n,o,a),this.clipped=s}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}}class tr{constructor(r,n,i,o=!1){this.text=r,this.icon=n,this.skipFade=i,this.clipped=o}}class tn{constructor(){this.invProjMatrix=r.create(),this.viewportMatrix=r.create(),this.circles=[]}}class ti{constructor(r,n,i,o,a){this.bucketInstanceId=r,this.featureIndex=n,this.sourceLayerIndex=i,this.bucketIndex=o,this.tileID=a}}class to{constructor(r){this.crossSourceCollisions=r,this.maxGroupID=0,this.collisionGroups={}}get(r){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[r]){let n=++this.maxGroupID;this.collisionGroups[r]={ID:n,predicate:r=>r.collisionGroupID===n}}return this.collisionGroups[r]}}function ta(n,i,o,a,s){let{horizontalAlign:l,verticalAlign:c}=r.getAnchorAlignment(n),u=r.evaluateVariableOffset(n,a);return new r.Point(-(l-.5)*i+u[0]*s,-(c-.5)*o+u[1]*s)}function ts(n,i,o,a,s){let l=new r.Point(n,i);return o&&l._rotate(a?s:-s),l}class tl{constructor(r,n,i,o,a){this.transform=r.clone(),this.projection=r.projection.name,this.collisionIndex=new e8(this.transform,a),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=n,this.retainedQueryData={},this.collisionGroups=new to(i),this.collisionCircleArrays={},this.prevPlacement=o,o&&(o.prevPlacement=void 0),this.placedOrientations={}}getBucketParts(n,i,o,a){var s,l,c;let u=o.getBucket(i),d=o.latestFeatureIndex;if(!u||!d||i.id!==u.layerIds[0])return;let h=u.layers[0].layout,p=o.collisionBoxArray,f=Math.pow(2,this.transform.zoom-o.tileID.overscaledZ),m=o.tileSize/r.EXTENT,g=o.tileID.toUnwrapped();this.transform.setProjection(u.projection);let v=(s=o.tileID,l=u.getProjection(),c=this.transform,l.name===this.projection?c.calculateProjMatrix(s.toUnwrapped()):e9(c,l,s)),y="map"===h.get("text-pitch-alignment"),b="map"===h.get("text-rotation-alignment");i.compileFilter();let x=i.dynamicFilter(),_=i.dynamicFilterNeedsFeature(),w=this.transform.calculatePixelsToTileUnitsMatrix(o),S=eX(v,o.tileID.canonical,y,b,this.transform,u.getProjection(),w),T=null;if(y){let n=eY(v,o.tileID.canonical,y,b,this.transform,u.getProjection(),w);T=r.multiply([],this.transform.labelPlaneMatrix,n)}let E=null;x&&o.latestFeatureIndex&&(E={unwrappedTileID:g,dynamicFilter:x,dynamicFilterNeedsFeature:_,featureIndex:o.latestFeatureIndex}),this.retainedQueryData[u.bucketInstanceId]=new ti(u.bucketInstanceId,d,u.sourceLayerIndex,u.index,o.tileID);let k={bucket:u,layout:h,posMatrix:v,textLabelPlaneMatrix:S,labelToScreenMatrix:T,clippingData:E,scale:f,textPixelRatio:m,holdingForFade:o.holdingForFade(),collisionBoxArray:p,partiallyEvaluatedTextSize:r.evaluateSizeForZoom(u.textSizeData,this.transform.zoom),partiallyEvaluatedIconSize:r.evaluateSizeForZoom(u.iconSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(u.sourceID)};if(a)for(let r of u.sortKeyRanges){let{sortKey:i,symbolInstanceStart:o,symbolInstanceEnd:a}=r;n.push({sortKey:i,symbolInstanceStart:o,symbolInstanceEnd:a,parameters:k})}else n.push({symbolInstanceStart:0,symbolInstanceEnd:u.symbolInstances.length,parameters:k})}attemptAnchorPlacement(r,n,i,o,a,s,l,c,u,d,h,p,f,m,g,v,y,b){let{textOffset0:x,textOffset1:_,crossTileID:w}=p,S=[x,_],T=ta(r,i,o,S,a),E=this.collisionIndex.placeCollisionBox(m,a,n,ts(T.x,T.y,s,l,this.transform.angle),h,c,u,d.predicate);if(v){let r=m.getSymbolInstanceIconSize(b,this.transform.zoom,p.placedIconSymbolIndex);if(0===this.collisionIndex.placeCollisionBox(m,r,v,ts(T.x,T.y,s,l,this.transform.angle),h,c,u,d.predicate).box.length)return}if(E.box.length>0){let n;return this.prevPlacement&&this.prevPlacement.variableOffsets[w]&&this.prevPlacement.placements[w]&&this.prevPlacement.placements[w].text&&(n=this.prevPlacement.variableOffsets[w].anchor),this.variableOffsets[w]={textOffset:S,width:i,height:o,anchor:r,textScale:a,prevAnchor:n},this.markUsedJustification(m,r,p,g),m.allowVerticalPlacement&&(this.markUsedOrientation(m,g,p),this.placedOrientations[w]=g),{shift:T,placedGlyphBoxes:E}}}placeLayerBucketPart(n,i,o,a){let{bucket:s,layout:l,posMatrix:c,textLabelPlaneMatr
170ix:u,labelToScreenMatrix:d,clippingData:h,textPixelRatio:p,holdingForFade:f,collisionBoxArray:m,partiallyEvaluatedTextSize:g,partiallyEvaluatedIconSize:v,collisionGroup:y}=n.parameters,b=l.get("text-optional"),x=l.get("icon-optional"),_=l.get("text-allow-overlap"),w=l.get("icon-allow-overlap"),S="map"===l.get("text-rotation-alignment"),T="map"===l.get("text-pitch-alignment"),E="none"!==l.get("icon-text-fit"),k="viewport-y"===l.get("symbol-z-order");this.transform.setProjection(s.projection);let C=_&&(w||!s.hasIconData()||x),P=w&&(_||!s.hasTextData()||b);!s.collisionArrays&&m&&s.deserializeCollisionBoxes(m),o&&a&&s.updateCollisionDebugBuffers(this.transform.zoom,m);let O=(n,a,m)=>{let{crossTileID:k,numVerticalGlyphVertices:O}=n;if(h){let o={zoom:this.transform.zoom,pitch:this.transform.pitch},a=null;if(h.dynamicFilterNeedsFeature){let r=this.retainedQueryData[s.bucketInstanceId];a=h.featureIndex.loadFeature({featureIndex:n.featureIndex,bucketIndex:r.bucketIndex,sourceLayerIndex:r.sourceLayerIndex,layoutVertexArrayOffset:0})}if(!(0,h.dynamicFilter)(o,a,this.retainedQueryData[s.bucketInstanceId].tileID.canonical,new r.Point(n.tileAnchorX,n.tileAnchorY),this.transform.calculateDistanceTileData(h.unwrappedTileID)))return this.placements[k]=new tr(!1,!1,!1,!0),void i.add(k)}if(i.has(k))return;if(f)return void(this.placements[k]=new tr(!1,!1,!1));let j=!1,A=!1,M=!0,I=!1,Z=!1,R=null,D={box:null,offscreen:null,occluded:null},L={box:null,offscreen:null,occluded:null},z=null,B=null,F=null,N=0,U=0,V=0;m.textFeatureIndex?N=m.textFeatureIndex:n.useRuntimeCollisionCircles&&(N=n.featureIndex),m.verticalTextFeatureIndex&&(U=m.verticalTextFeatureIndex);let q=r=>{r.tileID=this.retainedQueryData[s.bucketInstanceId].tileID;let n=this.transform.elevation;(n||r.elevation)&&(r.elevation=n?n.getAtTileOffset(r.tileID,r.tileAnchorX,r.tileAnchorY):0)},$=m.textBox;if($){q($);let i=i=>{let o=r.WritingMode.horizontal;if(s.allowVerticalPlacement&&!i&&this.prevPlacement){let r=this.prevPlacement.placedOrientations[k];r&&(this.placedOrientations[k]=r,o=r,this.markUsedOrientation(s,o,n))}return o},o=(n,i)=>{if(s.allowVerticalPlacement&&O>0&&m.verticalTextBox){for(let o of s.writingModes)if(o===r.WritingMode.vertical?L=D=i():D=n(),D&&D.box&&D.box.length)break}else D=n()};if(l.get("text-variable-anchor")){let u=l.get("text-variable-anchor");if(this.prevPlacement&&this.prevPlacement.variableOffsets[k]){let r=this.prevPlacement.variableOffsets[k];u.indexOf(r.anchor)>0&&(u=u.filter(n=>n!==r.anchor)).unshift(r.anchor)}let d=(r,i,o)=>{let l=s.getSymbolInstanceTextSize(g,n,this.transform.zoom,a),d=(r.x2-r.x1)*l+2*r.padding,h=(r.y2-r.y1)*l+2*r.padding,f=E&&!w?i:null;f&&q(f);let m={box:[],offscreen:!1,occluded:!1},b=_?2*u.length:u.length;for(let i=0;i<b;++i){let b=this.attemptAnchorPlacement(u[i%u.length],r,d,h,l,S,T,p,c,y,i>=u.length,n,a,s,o,f,g,v);if(b&&(m=b.placedGlyphBoxes)&&m.box&&m.box.length){j=!0,R=b.shift;break}}return m};o(()=>d($,m.iconBox,r.WritingMode.horizontal),()=>{let n=m.verticalTextBox;return n&&q(n),s.allowVerticalPlacement&&!(D&&D.box&&D.box.length)&&O>0&&n?d(n,m.verticalIconBox,r.WritingMode.vertical):{box:null,offscreen:null,occluded:null}}),D&&(j=D.box,M=D.offscreen,I=D.occluded);let h=i(!(!D||!D.box));if(!j&&this.prevPlacement){let r=this.prevPlacement.variableOffsets[k];r&&(this.variableOffsets[k]=r,this.markUsedJustification(s,r.anchor,n,h))}}else{let l=(i,o)=>{let l=s.getSymbolInstanceTextSize(g,n,this.transform.zoom,a),u=this.collisionIndex.placeCollisionBox(s,l,i,new r.Point(0,0),_,p,c,y.predicate);return u&&u.box&&u.box.length&&(this.markUsedOrientation(s,o,n),this.placedOrientations[k]=o),u};o(()=>l($,r.WritingMode.horizontal),()=>{let n=m.verticalTextBox;return s.allowVerticalPlacement&&O>0&&n?(q(n),l(n,r.WritingMode.vertical)):{box:null,offscreen:null,occluded:null}}),i(!!(D&&D.box&&D.box.length))}}if(j=(z=D)&&z.box&&z.box.length>0,M=z&&z.offscreen,I=z&&z.occluded,n.useRuntimeCollisionCircles){let i=s.text.placedSymbolArray.get(n.centerJustifiedTextSymbolIndex>=0?n.centerJustifiedTextSymbolIndex:n.verticalPlacedTextSymbolIndex),a=r.evaluateSizeForFeature
170(s.textSizeData,g,i),h=l.get("text-padding");B=this.collisionIndex.placeCollisionCircles(s,_,i,s.lineVertexArray,s.glyphOffsetArray,a,c,u,d,o,T,y.predicate,n.collisionCircleDiameter*a/r.ONE_EM,h,this.retainedQueryData[s.bucketInstanceId].tileID),j=_||B.circles.length>0&&!B.collisionDetected,M=M&&B.offscreen,I=B.occluded}if(m.iconFeatureIndex&&(V=m.iconFeatureIndex),m.iconBox){let i=i=>{q(i);let o=E&&R?ts(R.x,R.y,S,T,this.transform.angle):new r.Point(0,0),a=s.getSymbolInstanceIconSize(v,this.transform.zoom,n.placedIconSymbolIndex);return this.collisionIndex.placeCollisionBox(s,a,i,o,w,p,c,y.predicate)};A=L&&L.box&&L.box.length&&m.verticalIconBox?(F=i(m.verticalIconBox)).box.length>0:(F=i(m.iconBox)).box.length>0,M=M&&F.offscreen,Z=F.occluded}let G=b||0===n.numHorizontalGlyphVertices&&0===O,W=x||0===n.numIconVertices;if(G||W?W?G||(A=A&&j):j=A&&j:A=j=A&&j,j&&z&&z.box&&this.collisionIndex.insertCollisionBox(z.box,l.get("text-ignore-placement"),s.bucketInstanceId,L&&L.box&&U?U:N,y.ID),A&&F&&this.collisionIndex.insertCollisionBox(F.box,l.get("icon-ignore-placement"),s.bucketInstanceId,V,y.ID),B&&(j&&this.collisionIndex.insertCollisionCircles(B.circles,l.get("text-ignore-placement"),s.bucketInstanceId,N,y.ID),o)){let r=s.bucketInstanceId,n=this.collisionCircleArrays[r];void 0===n&&(n=this.collisionCircleArrays[r]=new tn);for(let r=0;r<B.circles.length;r+=4)n.circles.push(B.circles[r+0]),n.circles.push(B.circles[r+1]),n.circles.push(B.circles[r+2]),n.circles.push(B.collisionDetected?1:0)}let H="globe"!==s.projection.name;C=C&&(H||!I),P=P&&(H||!Z),this.placements[k]=new tr(j||C,A||P,M||s.justReloaded),i.add(k)};if(k){let r=s.getSortedSymbolIndexes(this.transform.angle);for(let n=r.length-1;n>=0;--n){let i=r[n];O(s.symbolInstances.get(i),i,s.collisionArrays[i])}}else for(let r=n.symbolInstanceStart;r<n.symbolInstanceEnd;r++)O(s.symbolInstances.get(r),r,s.collisionArrays[r]);if(o&&s.bucketInstanceId in this.collisionCircleArrays){let n=this.collisionCircleArrays[s.bucketInstanceId];r.invert(n.invProjMatrix,c),n.viewportMatrix=this.collisionIndex.getViewportMatrix()}s.justReloaded=!1}markUsedJustification(n,i,o,a){let{leftJustifiedTextSymbolIndex:s,centerJustifiedTextSymbolIndex:l,rightJustifiedTextSymbolIndex:c,verticalPlacedTextSymbolIndex:u,crossTileID:d}=o,h=r.getAnchorJustification(i),p=a===r.WritingMode.vertical?u:"left"
170===h?s:"center"===h?l:"right"===h?c:-1;s>=0&&(n.text.placedSymbolArray.get(s).crossTileID=p>=0&&s!==p?0:d),l>=0&&(n.text.placedSymbolArray.get(l).crossTileID=p>=0&&l!==p?0:d),c>=0&&(n.text.placedSymbolArray.get(c).crossTileID=p>=0&&c!==p?0:d),u>=0&&(n.text.placedSymbolArray.get(u).crossTileID=p>=0&&u!==p?0:d)}markUsedOrientation(n,i,o){let a=i===r.WritingMode.horizontal||i===r.WritingMode.horizontalOnly?i:0,s=i===r.WritingMode.vertical?i:0,{leftJustifiedTextSymbolIndex:l,centerJustifiedTextSymbolIndex:c,rightJustifiedTextSymbolIndex:u,verticalPlacedTextSymbolIndex:d}=o,h=n.text.placedSymbolArray;l>=0&&(h.get(l).placedOrientation=a),c>=0&&(h.get(c).placedOrientation=a),u>=0&&(h.get(u).placedOrientation=a),d>=0&&(h.get(d).placedOrientation=s)}commit(r){this.commitTime=r,this.zoomAtLastRecencyCheck=this.transform.zoom;let n=this.prevPlacement,i=!1;this.prevZoomAdjustment=n?n.zoomAdjustment(this.transform.zoom):0;let o=n?n.symbolFadeChange(r):1,a=n?n.opacities:{},s=n?n.variableOffsets:{},l=n?n.placedOrientations:{};for(let r in this.placements){let n=this.placements[r],s=a[r];s?(this.opacities[r]=new tt(s,o,n.text,n.icon,null,n.clipped),i=i||n.text!==s.text.placed||n.icon!==s.icon.placed):(this.opacities[r]=new tt(null,o,n.text,n.icon,n.skipFade,n.clipped),i=i||n.text||n.icon)}for(let r in a){let n=a[r];if(!this.opacities[r]){let a=new tt(n,o,!1,!1);a.isHidden()||(this.opacities[r]=a,i=i||n.text.placed||n.icon.placed)}}for(let r in s)this.variableOffsets[r]||!this.opacities[r]||this.opacities[r].isHidden()||(this.variableOffsets[r]=s[r]);for(let r in l)this.placedOrientations[r]||!this.opacities[r]||this.opacities[r].isHidden()||(this.placedOrientations[r]=l[r]);i?this.lastPlacementChangeTime=r:"number"!=typeof this.lastPlacementChangeTime&&(this.lastPlacementChangeTime=n?n.lastPlacementChangeTime:r)}updateLayerOpacities(r,n){let i=new Set;for(let o of n){let n=o.getBucket(r);n&&o.latestFeatureIndex&&r.id===n.layerIds[0]&&this.updateBucketOpacities(n,i,o.collisionBoxArray)}}updateBucketOpacities(n,i,o){n.hasTextData()&&n.text.opacityVertexArray.clear(),n.hasIconData()&&n.icon.opacityVertexArray.clear(),n.hasIconCollisionBoxData()&&n.iconCollisionBox.collisionVertexArray.clear(),n.hasTextCollisionBoxData()&&n.textCollisionBox.collisionVertexArray.clear();let a=n.layers[0].layout,s=!!n.layers[0].dynamicFilter(),l=new tt(null,0,!1,!1,!0),c=a.get("text-allow-overlap"),u=a.get("icon-allow-overlap"),d=a.get("text-variable-anchor"),h="map"===a.get("text-rotation-alignment"),p="map"===a.get("text-pitch-alignment"),f="none"!==a.get("icon-text-fit"),m=new tt(null,0,c&&(u||!n.hasIconData()||a.get("icon-optional")),u&&(c||!n.hasTextData()||a.get("text-optional")),!0);!n.collisionArrays&&o&&(n.hasIconCollisionBoxData()||n.hasTextCollisionBoxData())&&n.deserializeCollisionBoxes(o);let g=(r,n,i)=>{for(let o=0;o<n/4;o++)r.opacityVertexArray.emplaceBack(i)},v=0;for(let o=0;o<n.symbolInstances.length;o++){let a=n.symbolInstances.get(o),{numHorizontalGlyphVertices:c,numVerticalGlyphVertices:u,crossTileID:y,numIconVertices:b}=a,x=i.has(y),_=this.opacities[y];x?_=l:_||(_=m,this.opacities[y]=_),i.add(y);let w=c>0||u>0,S=b>0,T=this.placedOrientations[y],E=T===r.WritingMode.vertical,k=T===r.WritingMode.horizontal||T===r.WritingMode.horizontalOnly;if(!w&&!S||_.isHidden()||v++,w){let r=tu(_.text);g(n.text,c,E?td:r),g(n.text,u,k?td:r);let i=_.text.isHidden(),{leftJustifiedTextSymbolIndex:o,centerJustifiedTextSymbolIndex:s,rightJustifiedTextSymbolIndex:l,verticalPlacedTextSymbolIndex:d}=a,h=n.text.placedSymbolArray,p=i||E?1:0;o>=0&&(h.get(o).hidden=p),s>=0&&(h.get(s).hidden=p),l>=0&&(h.get(l).hidden=p),d>=0&&(h.get(d).hidden=i||k?1:0);let f=this.variableOffsets[y];f&&this.markUsedJustification(n,f.anchor,a,T);let m=this.placedOrientations[y];m&&(this.markUsedJustification(n,"left",a,m),this.markUsedOrientation(n,m,a))}if(S){let r=tu(_.icon),{placedIconSymbolIndex:i,verticalPlacedIconSymbolIndex:o}=a,s=n.icon.placedSymbolArray,l=_.icon.isHidden()?1:0;i>=0&&(g(n.icon,b,E?td:r),s.get(i).hidden=l),o>=0&&(g(n.icon,a.numVerticalIconVertices,k?td:r),s.get(o).hidden=l)}if(n.hasIconCollisionBoxData()||n.hasTextCollisionBoxData()){let i=n.collisionArrays[o];if(i){let o=new r.Point(0,0),a=!0;if(i.textBox||i.verticalTextBox){if(d){let r=this.variableOffsets[y];r?(o=ta(r.anchor,r.width,r.height,r.textOffset,r.textScale),h&&o._rotate(p?this.transform.angle:-this.transform.angle)):a=!1}s&&(a=!_.clipped),i.textBox&&tc(n.textCollisionBox.collisionVertexArray,_.text.placed,!a||E,o.x,o.y),i.verticalTextBox&&tc(n.textCollisionBox.collisionVertexArray,_.text.placed,!a||k,o.x,o.y)}let l=a&&Boolean(!k&&i.verticalIconBox);i.iconBox&&tc(n.iconCollisionBox.collisionVertexArray,_.icon.placed,l,f?o.x:0,f?o.y:0),i.verticalIconBox&&tc(n.iconCollisionBox.collisionVertexArray,_.icon.placed,!l,f?o.x:0,f?o.y:0)}}}if(n.fullyClipped=0===v,n.sortFeatures(this.transform.angle),this.retainedQueryData[n.bucketInstanceId]&&(this.retainedQueryData[n.bucketInstanceId].featureSortOrder=n.featureSortOrder),n.hasTextData()&&n.text.opacityVertexBuffer&&n.text.opacityVertexBuffer.updateData(n.text.o
170pacityVertexArray),n.hasIconData()&&n.icon.opacityVertexBuffer&&n.icon.opacityVertexBuffer.updateData(n.icon.opacityVertexArray),n.hasIconCollisionBoxData()&&n.iconCollisionBox.collisionVertexBuffer&&n.iconCollisionBox.collisionVertexBuffer.updateData(n.iconCollisionBox.collisionVertexArray),n.hasTextCollisionBoxData()&&n.textCollisionBox.collisionVertexBuffer&&n.textCollisionBox.collisionVertexBuffer.updateData(n.textCollisionBox.collisionVertexArray),n.bucketInstanceId in this.collisionCircleArrays){let r=this.collisionCircleArrays[n.bucketInstanceId];n.placementInvProjMatrix=r.invProjMatrix,n.placementViewportMatrix=r.viewportMatrix,n.collisionCircleArray=r.circles,delete this.collisionCircleArrays[n.bucketInstanceId]}}symbolFadeChange(r){return 0===this.fadeDuration?1:(r-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(r){return Math.max(0,(this.transform.zoom-r)/1.5)}hasTransitions(r){return this.stale||r-this.lastPlacementChangeTime<this.fadeDuration}stillRecent(r,n){let i=this.zoomAtLastRecencyCheck===n?1-this.zoomAdjustment(n):1;return this.zoomAtLastRecencyCheck=n,this.commitTime+this.fadeDuration*i>r}setStale(){this.stale=!0}}function tc(r,n,i,o,a){r.emplaceBack(n?1:0,i?1:0,o||0,a||0),r.emplaceBack(n?1:0,i?1:0,o||0,a||0),r.emplaceBack(n?1:0,i?1:0,o||0,a||0),r.emplaceBack(n?1:0,i?1:0,o||0,a||0)}function tu(r){if(0===r.opacity&&!r.placed)return 0;if(1===r.opacity&&r.placed)return 4294967295;let n=r.placed?1:0,i=Math.floor(127*r.opacity);return 33554432*i+16777216*n+131072*i+65536*n+512*i+256*n+2*i+n}let td=0;class th{constructor(r){this._sortAcrossTiles="viewport-y"!==r.layout.get("symbol-z-order")&&void 0!==r.layout.get("symbol-sort-key").constantOr(1),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs=new Set,this._bucketParts=[]}continuePlacement(r,n,i,o,a){let s=this._bucketParts;for(;this._currentTileIndex<r.length;)if(n.getBucketParts(s,o,r[this._currentTileIndex],this._sortAcrossTiles),this._currentTileIndex++,a())return!0;for(this._sortAcrossTiles&&(this._sortAcrossTiles=!1,s.sort((r,n)=>r.sortKey-n.sortKey));this._currentPartIndex<s.length;){let r=s[this._currentPartIndex];if(n.placeLayerBucketPart(r,this._seenCrossTileIDs,i,0===r.symbolInstanceStart),this._currentPartIndex++,a())return!0}return!1}}class tp{constructor(r,n,i,o,a,s,l,c){this.placement=new tl(r,a,s,l,c),this._currentPlacementIndex=n.length-1,this._forceFullPlacement=i,this._showCollisionBoxes=o,this._done=!1}isDone(){return this._done}continuePlacement(n,i,o){let a=r.exported.now(),s=()=>{let n=r.exported.now()-a;return!this._forceFullPlacement&&n>2};for(;this._currentPlacementIndex>=0;){let r=i[n[this._currentPlacementIndex]],a=this.placement.collisionIndex.transform.zoom;if("symbol"===r.type&&(!r.minzoom||r.minzoom<=a)&&(!r.maxzoom||r.maxzoom>a)){if(this._inProgressLayer||(this._inProgressLayer=new th(r)),this._inProgressLayer.continuePlacement(o[r.source],this.placement,this._showCollisionBoxes,r,s))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(r){return this.placement.commit(r),this.placement}}let tf=512/r.EXTENT/2;class tm{constructor(n,i,o){this.tileID=n,this.bucketInstanceId=o,this.index=new r.KDBush(i.length,16,Int32Array),this.keys=[],this.crossTileIDs=[];let a=n.canonical.x*r.EXTENT,s=n.canonical.y*r.EXTENT;for(let r=0;r<i.length;r++){let{key:n,crossTileID:o,tileAnchorX:l,tileAnchorY:c}=i.get(r),u=Math.floor((a+l)*tf),d=Math.floor((s+c)*tf);this.index.add(u,d),this.keys.push(n),this.crossTileIDs.push(o)}this.index.finish()}findMatches(n,i,o){let a=this.tileID.canonical.z<i.canonical.z?1:Math.pow(2,this.tileID.canonical.z-i.canonical.z),s=tf/Math.pow(2,i.canonical.z-this.tileID.canonical.z),l=i.canonical.x*r.EXTENT,c=i.canonical.y*r.EXTENT;for(let r=0;r<n.length;r++){let i=n.get(r);if(i.crossTileID)continue;let{key:u,tileAnchorX:d,tileAnchorY:h}=i,p=Math.floor((l+d)*s),f=Math.floor((c+h)*s),m=this.index.range(p-a,f-a,p+a,f+a);for(let r of m){let n=this.crossTileIDs[r];if(this.keys[r]===u&&!o.has(n)){o.add(n),i.crossTileID=n;break}}}}}class tg{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class tv{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(r){let n=Math.round((r-this.lng)/360);if(0!==n)for(let r in this.indexes){let i=this.indexes[r],o={};for(let r in i){let a=i[r];a.tileID=a.tileID.unwrapTo(a.tileID.wrap+n),o[a.tileID.key]=a}this.indexes[r]=o}this.lng=r}addBucket(r,n,i){if(this.indexes[r.overscaledZ]&&this.indexes[r.overscaledZ][r.key]){if
170(this.indexes[r.overscaledZ][r.key].bucketInstanceId===n.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(r.overscaledZ,this.indexes[r.overscaledZ][r.key])}for(let r=0;r<n.symbolInstances.length;r++)n.symbolInstances.get(r).crossTileID=0;this.usedCrossTileIDs[r.overscaledZ]||(this.usedCrossTileIDs[r.overscaledZ]=new Set);let o=this.usedCrossTileIDs[r.overscaledZ];for(let i in this.indexes){let a=this.indexes[i];if(Number(i)>r.overscaledZ)for(let i in a){let s=a[i];s.tileID.isChildOf(r)&&s.findMatches(n.symbolInstances,r,o)}else{let s=a[r.scaledTo(Number(i)).key];s&&s.findMatches(n.symbolInstances,r,o)}}for(let r=0;r<n.symbolInstances.length;r++){let a=n.symbolInstances.get(r);a.crossTileID||(a.crossTileID=i.generate(),o.add(a.crossTileID))}return void 0===this.indexes[r.overscaledZ]&&(this.indexes[r.overscaledZ]={}),this.indexes[r.overscaledZ][r.key]=new tm(r,n.symbolInstances,n.bucketInstanceId),!0}removeBucketCrossTileIDs(r,n){for(let i of n.crossTileIDs)this.usedCrossTileIDs[r].delete(i)}removeStaleBuckets(r){let n=!1;for(let i in this.indexes){let o=this.indexes[i];for(let a in o)r[o[a].bucketInstanceId]||(this.removeBucketCrossTileIDs(i,o[a]),delete o[a],n=!0)}return n}}class ty{constructor(){this.layerIndexes={},this.crossTileIDs=new tg,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}}addLayer(r,n,i,o){let a=this.layerIndexes[r.id];void 0===a&&(a=this.layerIndexes[r.id]=new tv);let s=!1,l={};for(let c of("globe"!==o.name&&a.handleWrapJump(i),n)){let n=c.getBucket(r);n&&r.id===n.layerIds[0]&&(n.bucketInstanceId||(n.bucketInstanceId=++this.maxBucketInstanceId),a.addBucket(c.tileID,n,this.crossTileIDs)&&(s=!0),l[n.bucketInstanceId]=!0)}return a.removeStaleBuckets(l)&&(s=!0),s}pruneUnusedLayers(r){let n={};for(let i in r.forEach(r=>{n[r]=!0}),this.layerIndexes)n[i]||delete this.layerIndexes[i]}}let tb=(n,i)=>r.emitValidationErrors(n,i&&i.filter(r=>"source.canvas"!==r.identifier)),tx=r.pick(ez,["addLayer","removeLayer","setPaintProperty","setLayoutProperty","setFilter","addSource","removeSource","setLayerZoomRange","setLight","setTransition","setGeoJSONSourceData","setTerrain","setFog","setProjection"]),t_=r.pick(ez,["setCenter","setZoom","setBearing","setPitch"]),tw={version:8,layers:[],sources:{}},tS={fill:!0,line:!0,background:!0,hillshade:!0,raster:!0};class tT extends r.Evented{constructor(n,i={}){super(),this.map=n,this.dispatcher=new A(eD(),this),this.imageManager=new w,this.imageManager.setEventedParent(this),this.glyphManager=new r.GlyphManager(n._requestManager,i.localFontFamily?r.LocalGlyphMode.all:i.localIdeographFontFamily?r.LocalGlyphMode.ideographs:r.LocalGlyphMode.none,i.localFontFamily||i.localIdeographFontFamily),this.crossTileSymbolIndex=new ty,this._layers={},this._num3DLayers=0,this._numSymbolLayers=0,this._numCircleLayers=0,this._serializedLayers={},this._sourceCaches={},this._otherSourceCaches={},this._symbolSourceCaches={},this._loaded=!1,this._availableImages=[],this._order=[],this._drapedFirstOrder=[],this._markersNeedUpdate=!1,this._resetUpdates(),this.dispatcher.broadcast("setReferrer",r.getReferrer());let o=this;this._rtlTextPluginCallback=tT.registerForPluginStateChange(n=>{o.dispatcher.broadcast("syncRTLPluginState",{pluginStatus:n.pluginStatus,pluginURL:n.pluginURL},(n,i)=>{if(r.triggerPluginCompletionEvent(n),i&&i.every(r=>r))for(let r in o._sourceCaches){let n=o._sourceCaches[r],i=n.getSource().type;"vector"!==i&&"geojson"!==i||n.reload()}})}),this.on("data",r=>{if("source"!==r.dataType||"metadata"!==r.sourceDataType)return;let n=this.getSource(r.sourceId);if(n&&n.vectorLayerIds)for(let r in this._layers){let i=this._layers[r];i.source===n.id&&this._validateLayer(i)}})}loadURL(n,i={}){this.fire(new r.Event("dataloading",{dataType:"style"}));let o="boolean"==typeof i.validate?i.validate:!r.isMapboxURL(n);n=this.map._requestManager.normalizeStyleURL(n,i.accessToken);let a=this.map._requestManager.transformRequest(n,r.ResourceType.Style);this._request=r.getJSON(a,(n,i)=>{this._request=null,n?this.fire(new r.ErrorEvent(n)):i&&this._load(i,o)})}loadJSON(n,i={}){this.fire(new r.Event("dataloading",{dataType:"style"})),this._request=r.exported.frame(()=>{this._request=null,this._load(n,!1!==i.validate)})}loadEmpty(){this.fire(new r.Event("dataloading",{dataType:"style"})),this._load(tw,!1)}_updateLayerCount(r,n){let i=n?1:-1;r.is3D()&&(this._num3DLayers+=i),"circle"===r.type&&(this._numCircleLayers+=i),"symbol"===r.type&&(this._numSymbolLayers+=i)}
170_load(n,i){if(i&&tb(this,r.validateStyle(n)))return;for(let i in this._loaded=!0,this.stylesheet=r.clone$1(n),this._updateMapProjection(),n.sources)this.addSource(i,n.sources[i],{validate:!1});this._changed=!1,n.sprite?this._loadSprite(n.sprite):(this.imageManager.setLoaded(!0),this.dispatcher.broadcast("spriteLoaded",!0)),this.glyphManager.setURL(n.glyphs);let o=eL(this.stylesheet.layers);for(let n of(this._order=o.map(r=>r.id),this._layers={},this._serializedLayers={},o)){let i=r.createStyleLayer(n);i.setEventedParent(this,{layer:{id:i.id}}),this._layers[i.id]=i,this._serializedLayers[i.id]=i.serialize(),this._updateLayerCount(i,!0)}this.dispatcher.broadcast("setLayers",this._serializeLayers(this._order)),this.light=new T(this.stylesheet.light),this.stylesheet.terrain&&!this.terrainSetForDrapingOnly()&&this._createTerrain(this.stylesheet.terrain,1),this.stylesheet.fog&&this._createFog(this.stylesheet.fog),this._updateDrapeFirstLayers(),this.fire(new r.Event("data",{dataType:"style"})),this.fire(new r.Event("style.load"))}terrainSetForDrapingOnly(){return!!this.terrain&&0===this.terrain.drapeRenderMode}setProjection(r){r?this.stylesheet.projection=r:delete this.stylesheet.projection,this._updateMapProjection()}applyProjectionUpdate(){this._loaded&&(this.dispatcher.broadcast("setProjection",this.map.transform.projectionOptions),this.map.transform.projection.requiresDraping?this.getTerrain()||this.stylesheet.terrain||this.setTerrainForDraping():this.terrainSetForDrapingOnly()&&this.setTerrain(null))}_updateMapProjection(){this.map._useExplicitProjection?this.applyProjectionUpdate():this.map._prioritizeAndUpdateProjection(null,this.stylesheet.projection)}_loadSprite(n){this._spriteRequest=function(n,i,o){let a,s,l;let c=r.exported.devicePixelRatio>1?"@2x":"",u=r.getJSON(i.transformRequest(i.normalizeSpriteURL(n,c,".json"),r.ResourceType.SpriteJSON),(r,n)=>{u=null,l||(l=r,a=n,h())}),d=r.getImage(i.transformRequest(i.normalizeSpriteURL(n,c,".png"),r.ResourceType.SpriteImage),(r,n)=>{d=null,l||(l=r,s=n,h())});function h(){if(l)o(l);else if(a&&s){let n=r.exported.getImageData(s),i={};for(let o in a){let{width:s,height:l,x:c,y:u,sdf:d,pixelRatio:h,stretchX:p,stretchY:f,content:m}=a[o],g=new r.RGBAImage({width:s,height:l});r.RGBAImage.copy(n,g,{x:c,y:u},{x:0,y:0},{width:s,height:l}),i[o]={data:g,pixelRatio:h,sdf:d,stretchX:p,stretchY:f,content:m}}o(null,i)}}return{cancel(){u&&(u.cancel(),u=null),d&&(d.cancel(),d=null)}}}(n,this.map._requestManager,(n,i)=>{if(this._spriteRequest=null,n)this.fire(new r.ErrorEvent(n));else if(i)for(let r in i)this.imageManager.addImage(r,i[r]);this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),this.dispatcher.broadcast("setImages",this._availableImages),this.dispatcher.broadcast("spriteLoaded",!0),this.fire(new r.Event("data",{dataType:"style"}))})}_validateLayer(n){let i=this.getSource(n.source);if(!i)return;let o=n.sourceLayer;
170o&&("geojson"===i.type||i.vectorLayerIds&&-1===i.vectorLayerIds.indexOf(o))&&this.fire(new r.ErrorEvent(Error(`Source layer "${o}" does not exist on source "${i.id}" as specified by style layer "${n.id}"`)))}loaded(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(let r in this._sourceCaches)if(!this._sourceCaches[r].loaded())return!1;return!!this.imageManager.isLoaded()}_serializeLayers(r){let n=[];for(let i of r){let r=this._layers[i];"custom"!==r.type&&n.push(r.serialize())}return n}hasTransitions(){if(this.light&&this.light.hasTransition()||this.fog&&this.fog.hasTransition())return!0;for(let r in this._sourceCaches)if(this._sourceCaches[r].hasTransition())return!0;for(let r in this._layers)if(this._layers[r].hasTransition())return!0;return!1}get order(){return this.map._optimizeForTerrain&&this.terrain?this._drapedFirstOrder:this._order}isLayerDraped(r){return!!this.terrain&&("function"==typeof r.isLayerDraped?r.isLayerDraped():tS[r.type])}_checkLoaded(){if(!this._loaded)throw Error("Style is not done loading")}update(n){if(!this._loaded)return;let i=this._changed;if(this._changed){let r=Object.keys(this._updatedLayers),i=Object.keys(this._removedLayers);for(let n in(r.length||i.length)&&this._updateWorkerLayers(r,i),this._updatedSources){let r=this._updatedSources[n];"reload"===r?this._reloadSource(n):"clear"===r&&this._clearSource(n)}for(let r in this._updateTilesForChangedImages(),this._updatedPaintProps)this._layers[r].updateTransitions(n);this.light.updateTransitions(n),this.fog&&this.fog.updateTransitions(n),this._resetUpdates()}let o={};for(let r in this._sourceCaches){let n=this._sourceCaches[r];o[r]=n.used,n.used=!1}for(let r of this._order){let i=this._layers[r];if(i.recalculate(n,this._availableImages),!i.isHidden(n.zoom)){let r=this._getLayerSourceCache(i);r&&(r.used=!0)}let o=this.map.painter;if(o){let r=i.getProgramIds();if(!r)continue;let a=i.getProgramConfiguration(n.zoom);for(let n of r)o.useProgram(n,a)}}for(let n in o){let i=this._sourceCaches[n];o[n]!==i.used&&i.getSource().fire(new r.Event("data",{sourceDataType:"visibility",dataType:"source",sourceId:i.getSource().id}))}this.light.recalculate(n),this.terrain&&this.terrain.recalculate(n),this.fog&&this.fog.recalculate(n),this.z=n.zoom,this._markersNeedUpdate&&(this._updateMarkersOpacity(),this._markersNeedUpdate=!1),i&&this.fire(new r.Event("data",{dataType:"style"}))}_updateTilesForChangedImages(){let r=Object.keys(this._changedImages);if(r.length){for(let n in this._sourceCaches)this._sourceCaches[n].reloadTilesForDependencies(["icons","patterns"],r);this._changedImages={}}}_updateWorkerLayers(r,n){this.dispatcher.broadcast("updateLayers",{layers:this._serializeLayers(r),removedIds:n})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={}}setState(n){if(this._checkLoaded(),tb(this,r.validateStyle(n)))return!1;(n=r.clone$1(n)).layers=eL(n.layers);let i=(function(r,n){if(!r)return[{command:ez.setStyle,args:[n]}];let i=[];try{if(!a(r.version,n.version))return[{command:ez.setStyle,args:[n]}];a(r.center,n.center)||i.push({command:ez.setCenter,args:[n.center]}),a(r.zoom,n.zoom)||i.push({command:ez.setZoom,args:[n.zoom]}),a(r.bearing,n.bearing)||i.push({command:ez.setBearing,args:[n.bearing]}),a(r.pitch,n.pitch)||i.push({command:ez.setPitch,args:[n.pitch]}),a(r.sprite,n.sprite)||i.push({command:ez.setSprite,args:[n.sprite]}),a(r.glyphs,n.glyphs)||i.push({command:ez.setGlyphs,args:[n.glyphs]}),a(r.transition,n.transition)||i.push({command:ez.setTransition,args:[n.transition]}),a(r.light,n.light)||i.push({command:ez.setLight,args:[n.light]}),a(r.fog,n.fog)||i.push({command:ez.setFog,args:[n.fog]}),a(r.projection,n.projection)||i.push({command:ez.setProjection,args:[n.projection]});let o={},s=[];!function(r,n,i,o){let s;for(s in n=n||{},r=r||{})r.hasOwnProperty(s)&&(n.hasOwnProperty(s)||eF(s,i,o));for(s in n){var l,c;if(!n.hasOwnProperty(s))continue;let u=n[s];r.hasOwnProperty(s)?a(r[s],u)||("geojson"===r[s].type&&"geojson"===u.type&&function(r,n,i){let o;for(o in r[i])if(r[i].hasOwnProperty(o)&&"data"!==o&&!a(r[i][o],n[i][o]))return!1;for(o in n[i])if(n[i].hasOwnProperty(o)&&"data"!==o&&!a(r[i][o],n[i][o]))return!1;return!0}(r,n,s)?i.push({command:ez.setGeoJSONSourceData,args:[s,u.data]}):(l=s,c=n,eF(l,i,o),eB(l,c,i))):eB(s,n,i)}}(r.sources,n.sources,s,o);let l=[];
170r.layers&&r.layers.forEach(r=>{r.source&&o[r.source]?i.push({command:ez.removeLayer,args:[r.id]}):l.push(r)});let c=r.terrain;c&&o[c.source]&&(i.push({command:ez.setTerrain,args:[void 0]}),c=void 0),i=i.concat(s),a(c,n.terrain)||i.push({command:ez.setTerrain,args:[n.terrain]}),function(r,n,i){let o,s,l,c,u,d,h;n=n||[];let p=(r=r||[]).map(eU),f=n.map(eU),m=r.reduce(eV,{}),g=n.reduce(eV,{}),v=p.slice(),y=Object.create(null);for(o=0,s=0;o<p.length;o++)l=p[o],g.hasOwnProperty(l)?s++:(i.push({command:ez.removeLayer,args:[l]}),v.splice(v.indexOf(l,s),1));for(o=0,s=0;o<f.length;o++)l=f[f.length-1-o],v[v.length-1-o]!==l&&(m.hasOwnProperty(l)?(i.push({command:ez.removeLayer,args:[l]}),v.splice(v.lastIndexOf(l,v.length-s),1)):s++,d=v[v.length-o],i.push({command:ez.addLayer,args:[g[l],d]}),v.splice(v.length-o,0,l),y[l]=!0);for(o=0;o<f.length;o++)if(c=m[l=f[o]],u=g[l],!y[l]&&!a(c,u)){if(a(c.source,u.source)&&a(c["source-layer"],u["source-layer"])&&a(c.type,u.type)){for(h in eN(c.layout,u.layout,i,l,null,ez.setLayoutProperty),eN(c.paint,u.paint,i,l,null,ez.setPaintProperty),a(c.filter,u.filter)||i.push({command:ez.setFilter,args:[l,u.filter]}),a(c.minzoom,u.minzoom)&&a(c.maxzoom,u.maxzoom)||i.push({command:ez.setLayerZoomRange,args:[l,u.minzoom,u.maxzoom]}),c)c.hasOwnProperty(h)&&"layout"!==h&&"paint"!==h&&"filter"!==h&&"metadata"!==h&&"minzoom"!==h&&"maxzoom"!==h&&(0===h.indexOf("paint.")?eN(c[h],u[h],i,l,h.slice(6),ez.setPaintProperty):a(c[h],u[h])||i.push({command:ez.setLayerProperty,args:[l,h,u[h]]}));for(h in u)u.hasOwnProperty(h)&&!c.hasOwnProperty(h)&&"layout"!==h&&"paint"!==h&&"filter"!==h&&"metadata"!==h&&"minzoom"!==h&&"maxzoom"!==h&&(0===h.indexOf("paint.")?eN(c[h],u[h],i,l,h.slice(6),ez.setPaintProperty):a(c[h],u[h])||i.push({command:ez.setLayerProperty,args:[l,h,u[h]]}))}else i.push({command:ez.removeLayer,args:[l]}),d=v[v.lastIndexOf(l)+1],i.push({command:ez.addLayer,args:[u,d]})}}(l,n.layers,i)}catch(r){console.warn("Unable to compute style diff:",r),i=[{command:ez.setStyle,args:[n]}]}return i})(this.serialize(),n).filter(r=>!(r.command in t_));if(0===i.length)return!1;let o=i.filter(r=>!(r.command in tx));if(o.length>0)throw Error(`Unimplemented: ${o.map(r=>r.command).join(", ")}.`);return i.forEach(r=>{"setTransition"!==r.command&&"setProjection"!==r.command&&this[r.command].apply(this,r.args)}),this.stylesheet=n,this._updateMapProjection(),!0}addImage(n,i){return this.getImage(n)?this.fire(new r.ErrorEvent(Error("An image with this name already exists."))):(this.imageManager.addImage(n,i),this._afterImageUpdated(n),this)}updateImage(r,n){this.imageManager.updateImage(r,n)}getImage(r){return this.imageManager.getImage(r)}removeImage(n){return this.getImage(n)?(this.imageManager.removeImage(n),this._afterImageUpdated(n),this):this.fire(new r.ErrorEvent(Error("No image with this name exists.")))}_afterImageUpdated(n){this._availableImages=this.imageManager.listImages(),this._changedImages[n]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new r.Event("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this._availableImages.slice()}addSource(n,i,o={}){if(this._checkLoaded(),void 0!==this.getSource(n))throw Error("There is already a source with this ID");if(!i.type)throw Error(`The type property must be defined, but only the following properties were given: ${Object.keys(i).join(", ")}.`);if(["vector","raster","geojson","video","image"].indexOf(i.type)>=0&&this._validate(r.validateSource,`sources.${n}`,i,null,o))return;this.map&&this.map._collectResourceTiming&&(i.collectResourceTiming=!0);let a=eA(n,i,this.dispatcher,this);a.setEventedParent(this,()=>({isSourceLoaded:this._isSourceCacheLoaded(n),source:a.serialize(),sourceId:n}));let s=i=>{let o=(i?"symbol:":"other:")+n,s=this._sourceCaches[o]=new r.SourceCache(o,a,i);(i?this._symbolSourceCaches:this._otherSourceCaches)[n]=s,s.style=this,s.onAdd(this.map)};s(!1),"vector"!==i.type&&"geojson"!==i.type||s(!0),a.onAdd&&a.onAdd(this.map),this._changed=!0}removeSource(n){this._checkLoaded();let i=this.getSource(n);if(!i)throw Error("There is no source with this ID");for(let i in this._layers)if(this._layers[i].source===n)return this.fire(new r.ErrorEvent(Error(`Source "${n}" cannot be removed while layer "${i}" is using it.`)));if(this.terrain&&this.terrain.get().source===n)return this.fire(new r.ErrorEvent(Error(`Source "${n}" cannot be removed while terrain is using it.`)));let o=this._getSourceCaches(n);for(let n of o)delete this._sourceCaches[n.id],delete this._updatedSources[n.id],n.fire(new r.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:n.getSource().id})),n.setEventedParent(null),n.clearTiles();return delete this._otherSourceCaches[n],delete this._symbolSourceCaches[n],i.setEventedParent(null),i.onRemove&&i.onRemove(this.map),this._changed=!0,this}
170setGeoJSONSourceData(r,n){this._checkLoaded(),this.getSource(r).setData(n),this._changed=!0}getSource(r){let n=this._getSourceCache(r);return n&&n.getSource()}_getSources(){let r=[];for(let n in this._otherSourceCaches){let i=this._getSourceCache(n);i&&r.push(i.getSource())}return r}addLayer(n,i,o={}){let a;this._checkLoaded();let s=n.id;if(this.getLayer(s))return void this.fire(new r.ErrorEvent(Error(`Layer with id "${s}" already exists on this map`)));if("custom"===n.type){if(tb(this,r.validateCustomStyleLayer(n)))return;a=r.createStyleLayer(n)}else{if("object"==typeof n.source&&(this.addSource(s,n.source),n=r.clone$1(n),n=r.extend(n,{source:s})),this._validate(r.validateLayer,`layers.${s}`,n,{arrayIndex:-1},o))return;a=r.createStyleLayer(n),this._validateLayer(a),a.setEventedParent(this,{layer:{id:s}}),this._serializedLayers[a.id]=a.serialize(),this._updateLayerCount(a,!0)}let l=i?this._order.indexOf(i):this._order.length;if(i&&-1===l)return void this.fire(new r.ErrorEvent(Error(`Layer with id "${i}" does not exist on this map.`)));this._order.splice(l,0,s),this._layerOrderChanged=!0,this._layers[s]=a;let c=this._getLayerSourceCache(a);if(this._removedLayers[s]&&a.source&&c&&"custom"!==a.type){let r=this._removedLayers[s];delete this._removedLayers[s],r.type!==a.type?this._updatedSources[a.source]="clear":(this._updatedSources[a.source]="reload",c.pause())}this._updateLayer(a),a.onAdd&&a.onAdd(this.map),this._updateDrapeFirstLayers()}moveLayer(n,i){if(this._checkLoaded(),this._changed=!0,!this._layers[n])return void this.fire(new r.ErrorEvent(Error(`The layer '${n}' does not exist in the map's style and cannot be moved.`)));if(n===i)return;let o=this._order.indexOf(n);this._order.splice(o,1);let a=i?this._order.indexOf(i):this._order.length;
170i&&-1===a?this.fire(new r.ErrorEvent(Error(`Layer with id "${i}" does not exist on this map.`))):(this._order.splice(a,0,n),this._layerOrderChanged=!0,this._updateDrapeFirstLayers())}removeLayer(n){this._checkLoaded();let i=this._layers[n];if(!i)return void this.fire(new r.ErrorEvent(Error(`The layer '${n}' does not exist in the map's style and cannot be removed.`)));i.setEventedParent(null),this._updateLayerCount(i,!1);let o=this._order.indexOf(n);this._order.splice(o,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[n]=i,delete this._layers[n],delete this._serializedLayers[n],delete this._updatedLayers[n],delete this._updatedPaintProps[n],i.onRemove&&i.onRemove(this.map),this._updateDrapeFirstLayers()}getLayer(r){return this._layers[r]}hasLayer(r){return r in this._layers}hasLayerType(r){for(let n in this._layers)if(this._layers[n].type===r)return!0;return!1}setLayerZoomRange(n,i,o){this._checkLoaded();let a=this.getLayer(n);a?a.minzoom===i&&a.maxzoom===o||(null!=i&&(a.minzoom=i),null!=o&&(a.maxzoom=o),this._updateLayer(a)):this.fire(new r.ErrorEvent(Error(`The layer '${n}' does not exist in the map's style and cannot have zoom extent.`)))}setFilter(n,i,o={}){this._checkLoaded();let s=this.getLayer(n);if(s){if(!a(s.filter,i))return null==i?(s.filter=void 0,void this._updateLayer(s)):void(this._validate(r.validateFilter,`layers.${s.id}.filter`,i,{layerType:s.type},o)||(s.filter=r.clone$1(i),this._updateLayer(s)))}else this.fire(new r.ErrorEvent(Error(`The layer '${n}' does not exist in the map's style and cannot be filtered.`)))}getFilter(n){let i=this.getLayer(n);return i&&r.clone$1(i.filter)}setLayoutProperty(n,i,o,s={}){this._checkLoaded();let l=this.getLayer(n);l?a(l.getLayoutProperty(i),o)||(l.setLayoutProperty(i,o,s),this._updateLayer(l)):this.fire(new r.ErrorEvent(Error(`The layer '${n}' does not exist in the map's style and cannot be styled.`)))}getLayoutProperty(n,i){let o=this.getLayer(n);if(o)return o.getLayoutProperty(i);this.fire(new r.ErrorEvent(Error(`The layer '${n}' does not exist in the map's style.`)))}setPaintProperty(n,i,o,s={}){this._checkLoaded();let l=this.getLayer(n);l?a(l.getPaintProperty(i),o)||(l.setPaintProperty(i,o,s)&&this._updateLayer(l),this._changed=!0,this._updatedPaintProps[n]=!0):this.fire(new r.ErrorEvent(Error(`The layer '${n}' does not exist in the map's style and cannot be styled.`)))}getPaintProperty(r,n){let i=this.getLayer(r);return i&&i.getPaintProperty(n)}setFeatureState(n,i){this._checkLoaded();let o=n.source,a=n.sourceLayer,s=this.getSource(o);if(!s)return void this.fire(new r.ErrorEvent(Error(`The source '${o}' does not exist in the map's style.`)));let l=s.type;if("geojson"===l&&a)return void this.fire(new r.ErrorEvent(Error("GeoJSON sources cannot have a sourceLayer parameter.")));if("vector"===l&&!a)return void this.fire(new r.ErrorEvent(Error("The sourceLayer parameter must be provided for vector source types.")));void 0===n.id&&this.fire(new r.ErrorEvent(Error("The feature id parameter must be provided.")));let c=this._getSourceCaches(o);for(let r of c)r.setFeatureState(a,n.id,i)}removeFeatureState(n,i){this._checkLoaded();let o=n.source,a=this.getSource(o);if(!a)return void this.fire(new r.ErrorEvent(Error(`The source '${o}' does not exist in the map's style.`)));let s=a.type,l="vector"===s?n.sourceLayer:void 0;if("vector"===s&&!l)return void this.fire(new r.ErrorEvent(Error("The sourceLayer parameter must be provided for vector source types.")));if(i&&"string"!=typeof n.id&&"number"!=typeof n.id)return void this.fire(new r.ErrorEvent(Error("A feature id is required to remove its specific state property.")));let c=this._getSourceCaches(o);for(let r of c)r.removeFeatureState(l,n.id,i)}getFeatureState(n){this._checkLoaded();let i=n.source,o=n.sourceLayer,a=this.getSource(i);if(a){if("vector"!==a.type||o)return void 0===n.id&&this.fire(new r.ErrorEvent(Error("The feature id parameter must be provided."))),this._getSourceCaches(i)[0].getFeatureState(o,n.id);this.fire(new r.ErrorEvent(Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new r.ErrorEvent(Error(`The source '${i}' does not exist in the map's style.`)))}getTransition(){return r.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)}serialize(){let n={};for(let r in this._sourceCaches){let i=this._sourceCaches[r].getSource();n[i.id]||(n[i.id]=i.serialize())}return r.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,terrain:this.getTerrain()||void 0,fog:this.stylesheet.fog,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,projection:this.stylesheet.projection,sources:n,layers:this._serializeLayers(this._order)},r=>void 0!==r)}_updateLayer(r){this._updatedLayers[r.id]=!0;let n=this._getLayerSourceCache(r);
170r.source&&!this._updatedSources[r.source]&&n&&"raster"!==n.getSource().type&&(this._updatedSources[r.source]="reload",n.pause()),this._changed=!0,r.invalidateCompiledFilter()}_flattenAndSortRenderedFeatures(r){let n={},i=[];for(let o=this._order.length-1;o>=0;o--){let a=this._order[o];if("fill-extrusion"===this._layers[a].type)for(let s of(n[a]=o,r)){let r=s[a];if(r)for(let n of r)i.push(n)}}i.sort((r,n)=>n.intersectionZ-r.intersectionZ);let o=[];for(let a=this._order.length-1;a>=0;a--){let s=this._order[a];if("fill-extrusion"===this._layers[s].type)for(let r=i.length-1;r>=0;r--){let s=i[r].feature;if(n[s.layer.id]<a)break;o.push(s),i.pop()}else for(let n of r){let r=n[s];if(r)for(let n of r)o.push(n.feature)}}return o}queryRenderedFeatures(n,i,o){i&&i.filter&&this._validate(r.validateFilter,"queryRenderedFeatures.filter",i.filter,null,i);let a={};if(i&&i.layers){if(!Array.isArray(i.layers))return this.fire(new r.ErrorEvent(Error("parameters.layers must be an Array."))),[];for(let n of i.layers){let i=this._layers[n];if(!i)return this.fire(new r.ErrorEvent(Error(`The layer '${n}' does not exist in the map's style and cannot be queried for features.`))),[];a[i.source]=!0}}let s=[];i.availableImages=this._availableImages;let l=i&&i.layers?i.layers.some(r=>{let n=this.getLayer(r);return n&&n.is3D()}):this.has3DLayers(),c=I.createFromScreenPoints(n,o);for(let n in this._sourceCaches){let u=this._sourceCaches[n].getSource().id;i.layers&&!a[u]||s.push(function(n,i,o,a,s,l,c,u=!1){let d=n.tilesIn(a,c,u);d.sort(eM);let h=[];for(let a of d)h.push({wrappedTileID:a.tile.tileID.wrapped().key,queryResults:a.tile.queryRenderedFeatures(i,o,n._state,a,s,l,function(n,i){let o=r.identity([]);return r.scale(o,o,[.5*n.width,-(.5*n.height),1]),r.translate(o,o,[1,-1,0]),r.multiply(o,o,n.calculateProjMatrix(i.toUnwrapped())),Float32Array.from(o)}(n.transform,a.tile.tileID),u)});let p=function(r){let n={},i={};for(let o of r){let r=o.queryResults,a=o.wrappedTileID,s=i[a]=i[a]||{};for(let i in r){let o=r[i],a=s[i]=s[i]||{},l=n[i]=n[i]||[];for(let r of o)a[r.featureIndex]||(a[r.featureIndex]=!0,l.push(r))}}return n}(h);for(let r in p)p[r].forEach(r=>{let i=r.feature,o=i.layer;o&&"background"!==o.type&&"sky"!==o.type&&(i.source=o.source,o["source-layer"]&&(i.sourceLayer=o["source-layer"]),i.state=void 0!==i.id?n.getFeatureState(o["source-layer"],i.id):{})});return p}(this._sourceCaches[n],this._layers,this._serializedLayers,c,i,o,l,!!this.map._showQueryGeometry))}return this.placement&&s.push(function(r,n,i,o,a,s,l){let c={},u=s.queryRenderedSymbols(o),d=[];for(let r of Object.keys(u).map(Number))d.push(l[r]);for(let i of(d.sort(eM),d)){let o=i.featureIndex.lookupSymbolFeatures(u[i.bucketInstanceId],n,i.bucketIndex,i.sourceLayerIndex,a.filter,a.layers,a.availableImages,r);for(let r in o){let n=c[r]=c[r]||[],a=o[r];for(let r of(a.sort((r,n)=>{let o=i.featureSortOrder;if(o){let i=o.indexOf(r.featureIndex);return o.indexOf(n.featureIndex)-i}return n.featureIndex-r.featureIndex}),a))n.push(r)}}for(let n in c)c[n].forEach(o=>{let a=o.feature,s=i(r[n]);if(!s)return;let l=s.getFeatureState(a.layer["source-layer"],a.id);a.source=a.layer.source,a.layer["source-layer"]&&(a.sourceLayer=a.layer["source-layer"]),a.state=l});return c}(this._layers,this._serializedLayers,this._getLayerSourceCache.bind(this),c.screenGeometry,i,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(s)}querySourceFeatures(n,i){i&&i.filter&&this._validate(r.validateFilter,"querySourceFeatures.filter",i.filter,null,i);let o=this._getSourceCaches(n),a=[];for(let r of o)a=a.concat(function(r,n){let i=r.getRenderableIds().map(n=>r.getTileByID(n)),o=[],a={};for(let r=0;r<i.length;r++){let s=i[r],l=s.tileID.canonical.key;a[l]||(a[l]=!0,s.querySourceFeatures(o,n))}return o}(r,i));return a}addSourceType(r,n,i){return tT.getSourceType(r)?i(Error(`A source type called "${r}" already exists.`)):(tT.setSourceType(r,n),n.workerSourceURL?void this.dispatcher.broadcast("loadWorkerSource",{name:r,url:n.workerSourceURL},i):i(null,null))}getLight(){return this.light.getLight()}setLight(r,n={}){this._checkLoaded();let i=this.light.getLight(),o=!1;for(let n in r)if(!a(r[n],i[n])){o=!0;break}if(!o)return;let s=this._setTransitionParameters({duration:300,delay:0});this.light.setLight(r,n),this.light.updateTransitions(s)}getTerrain(){return this.terrain&&1===this.terrain.drapeRenderMode?this.terrain.get():null}setTerrainForDraping(){this.setTerrain({source:"",exaggeration:0},0)}setTerrain(n,i=1){if(this._checkLoaded(),!n)return delete this.terrain,delete this.stylesheet.terrain,this.dispatcher.broadcast("enableTerrain",!1),this._force3DLayerUpdate(),void(this._markersNeedU
170pdate=!0);let o=n;if(1===i){if("object"==typeof o.source){let n="terrain-dem-src";this.addSource(n,o.source),o=r.clone$1(o),o=r.extend(o,{source:n})}if(this._validate(r.validateTerrain,"terrain",o))return}if(!this.terrain||this.terrain&&i!==this.terrain.drapeRenderMode){if(!o)return;this._createTerrain(o,i)}else{let n=this.terrain,i=n.get();for(let n of Object.keys(r.spec.terrain))!o.hasOwnProperty(n)&&r.spec.terrain[n].default&&(o[n]=r.spec.terrain[n].default);for(let r in o)if(!a(o[r],i[r])){n.set(o),this.stylesheet.terrain=o;let r=this._setTransitionParameters({duration:0});n.updateTransitions(r);break}}this._updateDrapeFirstLayers(),this._markersNeedUpdate=!0}_createFog(r){let n=this.fog=new j(r,this.map.transform);this.stylesheet.fog=r;let i=this._setTransitionParameters({duration:0});n.updateTransitions(i)}_updateMarkersOpacity(){0!==this.map._markers.length&&this.map._requestDomTask(()=>{for(let r of this.map._markers)r._evaluateOpacity()})}getFog(){return this.fog?this.fog.get():null}setFog(r){if(this._checkLoaded(),!r)return delete this.fog,delete this.stylesheet.fog,void(this._markersNeedUpdate=!0);if(this.fog){let n=this.fog,i=n.get();for(let o in 0===Object.keys(r).length&&n.set(r),r)if(!a(r[o],i[o])){n.set(r),this.stylesheet.fog=r;let i=this._setTransitionParameters({duration:0});n.updateTransitions(i);break}}else this._createFog(r);this._markersNeedUpdate=!0}_setTransitionParameters(n){return{now:r.exported.now(),transition:r.extend(n,this.stylesheet.transition)}}_updateDrapeFirstLayers(){if(!this.map._optimizeForTerrain||!this.terrain)return;let r=this._order.filter(r=>this.isLayerDraped(this._layers[r])),n=this._order.filter(r=>!this.isLayerDraped(this._layers[r]));this._drapedFirstOrder=[],this._drapedFirstOrder.push(...r),this._drapedFirstOrder.push(...n)}_createTerrain(r,n){let i=this.terrain=new k(r,n);this.stylesheet.terrain=r,this.dispatcher.broadcast("enableTerrain",!this.terrainSetForDrapingOnly()),this._force3DLayerUpdate();let o=this._setTransitionParameters({duration:0});i.updateTransitions(o)}_force3DLayerUpdate(){for(let r in this._layers){let n=this._layers[r];"fill-extrusion"===n.type&&this._updateLayer(n)}}_forceSymbolLayerUpdate(){for(let r in this._layers){let n=this._layers[r];"symbol"===n.type&&this._updateLayer(n)}}_validate(n,i,o,a,s={}){return(!s||!1!==s.validate)&&tb(this,n.call(r.validateStyle,r.extend({key:i,style:this.serialize(),value:o,styleSpec:r.spec},a)))}_remove(){for(let n in this._request&&(this._request.cancel(),this._request=null),this._spriteRequest&&(this._spriteRequest.cancel(),this._spriteRequest=null),r.evented.off("pluginStateChange",this._rtlTextPluginCallback),this._layers)this._layers[n].setEventedParent(null);for(let r in this._sourceCaches)this._sourceCaches[r].clearTiles(),this._sourceCaches[r].setEventedParent(null);this.imageManager.setEventedParent(null),this.setEventedParent(null),this.dispatcher.remove()}_clearSource(r){let n=this._getSourceCaches(r);for(let r of n)r.clearTiles()}_reloadSource(r){let n=this._getSourceCaches(r);for(let r of n)r.resume(),r.reload()}_reloadSources(){for(let r of this._getSources())r.reload&&r.reload()}_updateSources(r){for(let n in this._sourceCaches)this._sourceCaches[n].update(r)}_generateCollisionBoxes(){for(let r in this._sourceCaches){let n=this._sourceCaches[r];n.resume(),n.reload()}}_updatePlacement(n,i,o,a,s=!1){let l=!1,c=!1,u={};for(let r of this._order){let i=this._layers[r];if("symbol"!==i.type)continue;if(!u[i.source]){let r=this._getLayerSourceCache(i);if(!r)continue;u[i.source]=r.getRenderableIds(!0).map(n=>r.getTileByID(n)).sort((r,n)=>n.tileID.overscaledZ-r.tileID.overscaledZ||(r.tileID.isLessThan(n.tileID)?-1:1))}let o=this.crossTileSymbolIndex.addLayer(i,u[i.source],n.center.lng,n.projection);l=l||o}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),s=s||this._layerOrderChanged||0===o,this._layerOrderChanged&&this.fire(new r.Event("neworder")),(s||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(r.exported.now(),n.zoom))&&(this.pauseablePlacement=new tp(n,this._order,s,i,o,a,this.placement,this.fog&&n.projection.supportsFog?this.fog.state:null),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,u),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(r.exported.now()),c=!0),l&&this.pauseablePlacement.placement.setStale()),c||l)for(let r of this._order){let n=this._layers[r];"symbol"===n.type&&this.placement.updateLayerOpacities(n,u[n.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(r.exported.now())}_releaseSymbolFadeTiles(){for(let r in this._sourceCaches)this._sourceCaches[r].releaseSymbolFadeTiles()}getImages(r,n,i){this.imageManager.getImages(n.icons,i),this._updateTilesForChangedImages();let o=r=>{r&&r.setDependencies(n.tileID.key,n.type,n.icons)};o(this._otherSourceCaches[n.source]),o(this._symbolSourceCaches[n.source])}getGlyphs(r,n,i){this.glyphManager.getGlyphs(n.stacks,i)}
170getResource(n,i,o){return r.makeRequest(i,o)}_getSourceCache(r){return this._otherSourceCaches[r]}_getLayerSourceCache(r){return"symbol"===r.type?this._symbolSourceCaches[r.source]:this._otherSourceCaches[r.source]}_getSourceCaches(r){let n=[];return this._otherSourceCaches[r]&&n.push(this._otherSourceCaches[r]),this._symbolSourceCaches[r]&&n.push(this._symbolSourceCaches[r]),n}_isSourceCacheLoaded(n){let i=this._getSourceCaches(n);return 0===i.length?(this.fire(new r.ErrorEvent(Error(`There is no source with ID '${n}'`))),!1):i.every(r=>r.loaded())}has3DLayers(){return this._num3DLayers>0}hasSymbolLayers(){return this._numSymbolLayers>0}hasCircleLayers(){return this._numCircleLayers>0}_clearWorkerCaches(){this.dispatcher.broadcast("clearCaches")}destroy(){this._clearWorkerCaches(),this.terrainSetForDrapingOnly()&&(delete this.terrain,delete this.stylesheet.terrain)}}tT.getSourceType=function(r){return ej[r]},tT.setSourceType=function(r,n){ej[r]=n},tT.registerForPluginStateChange=r.registerForPluginStateChange;var tE="\n#define EPSILON 0.0000001\n#define PI 3.141592653589793\n#define EXTENT 8192.0\n#define HALF_PI PI/2.0\n#define QUARTER_PI PI/4.0\n#define RAD_TO_DEG 180.0/PI\n#define DEG_TO_RAD PI/180.0\n#define GLOBE_RADIUS EXTENT/PI/2.0",tk="attribute highp vec3 a_pos_3f;uniform lowp mat4 u_matrix;varying highp vec3 v_uv;void main() {const mat3 half_neg_pi_around_x=mat3(1.0,0.0, 0.0,0.0,0.0,-1.0,0.0,1.0, 0.0);v_uv=half_neg_pi_around_x*a_pos_3f;vec4 pos=u_matrix*vec4(a_pos_3f,1.0);gl_Position=pos.xyww;}",tC="\n#define ELEVATION_SCALE 7.0\n#define ELEVATION_OFFSET 450.0\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_tl_up;uniform vec3 u_tile_tr_up;uniform vec3 u_tile_br_up;uniform vec3 u_tile_bl_up;uniform float u_tile_up_scale;vec3 elevationVector(vec2 pos) {vec2 uv=pos/EXTENT;vec3 up=normalize(mix(\nmix(u_tile_tl_up,u_tile_tr_up,uv.xxx),mix(u_tile_bl_up,u_tile_br_up,uv.xxx),uv.yyy));return up*u_tile_up_scale;}\n#else\nvec3 elevationVector(vec2 pos) { return vec3(0,0,1); }\n#endif\nconst float skirtOffset=24575.0;vec3 decomposeToPosAndSkirt(vec2 posWithComposedSkirt)\n{float skirt=float(posWithComposedSkirt.x >=skirtOffset);vec2 pos=posWithComposedSkirt-vec2(skirt*skirtOffset,0.0);return vec3(pos,skirt);}\n#ifdef TERRAIN\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nuniform highp sampler2D u_dem;uniform highp sampler2D u_dem_prev;\n#else\nuniform sampler2D u_dem;uniform sampler2D u_dem_prev;\n#endif\nuniform vec4 u_dem_unpack;uniform vec2 u_dem_tl;uniform vec2 u_dem_tl_prev;uniform float u_dem_scale;uniform float u_dem_scale_prev;uniform float u_dem_size;uniform float u_dem_lerp;uniform float u_exaggeration;uniform float u_meter_to_dem;uniform mat4 u_label_plane_matrix_inv;uniform sampler2D u_depth;uniform vec2 u_depth_size_inv;vec4 tileUvToDemSample(vec2 uv,float dem_size,float dem_scale,vec2 dem_tl) {vec2 pos=dem_size*(uv*dem_scale+dem_tl)+1.0;vec2 f=fract(pos);return vec4((pos-f+0.5)/(dem_size+2.0),f);}float decodeElevation(vec4 v) {return dot(vec4(v.xyz*255.0,-1.0),u_dem_unpack);}float currentElevation(vec2 apos) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nvec2 pos=(u_dem_size*(apos/8192.0*u_dem_scale+u_dem_tl)+1.5)/(u_dem_size+2.0);return u_exaggeration*texture2D(u_dem,pos).a;\n#else\nfloat dd=1.0/(u_dem_size+2.0);vec4 r=tileUvToDemSample(apos/8192.0,u_dem_size,u_dem_scale,u_dem_tl);vec2 pos=r.xy;vec2 f=r.zw;float tl=decodeElevation(texture2D(u_dem,pos));\n#ifdef TERRAIN_DEM_NEAREST_FILTER\nreturn u_exaggeration*tl;\n#endif\nfloat tr=decodeElevation(texture2D(u_dem,pos+vec2(dd,0.0)));float bl=decodeElevation(texture2D(u_dem,pos+vec2(0.0,dd)));float br=decodeElevation(texture2D(u_dem,pos+vec2(dd,dd)));return u_exaggeration*mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);\n#endif\n}float prevElevation(vec2 apos) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nvec2 pos=(u_dem_size*(apos/8192.0*u_dem_scale_prev+u_dem_tl_prev)+1.5)/(u_dem_size+2.0);return u_exaggeration*texture2D(u_dem_prev,pos).a;\n#else\nfloat dd=1.0/(u_dem_size+2.0);vec4 r=tileUvToDemSample(apos/8192.0,u_dem_size,u_dem_scale_prev,u_dem_tl_prev);vec2 pos=r.xy;vec2 f=r.zw;float tl=decodeElevation(texture2D(u_dem_prev,pos));float tr=decodeElevation(texture2D(u_dem_prev,pos+vec2(dd,0.0)));float bl=decodeElevation(texture2D(u_dem_prev,pos+vec2(0.0,dd)));float br=decodeElevation(texture2D(u_dem_prev,pos+vec2(dd,dd)));return u_exaggeration*mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);\n#endif\n}
170\n#ifdef TERRAIN_VERTEX_MORPHING\nfloat elevation(vec2 apos) {\n#ifdef ZERO_EXAGGERATION\nreturn 0.0;\n#endif\nfloat nextElevation=currentElevation(apos);float prevElevation=prevElevation(apos);return mix(prevElevation,nextElevation,u_dem_lerp);}\n#else\nfloat elevation(vec2 apos) {\n#ifdef ZERO_EXAGGERATION\nreturn 0.0;\n#endif\nreturn currentElevation(apos);}\n#endif\nhighp float unpack_depth(highp vec4 rgba_depth)\n{const highp vec4 bit_shift=vec4(1.0/(255.0*255.0*255.0),1.0/(255.0*255.0),1.0/255.0,1.0);return dot(rgba_depth,bit_shift)*2.0-1.0;}bool isOccluded(vec4 frag) {vec3 coord=frag.xyz/frag.w;float depth=unpack_depth(texture2D(u_depth,(coord.xy+1.0)*0.5));return coord.z > depth+0.0005;}float occlusionFade(vec4 frag) {vec3 coord=frag.xyz/frag.w;vec3 df=vec3(5.0*u_depth_size_inv,0.0);vec2 uv=0.5*coord.xy+0.5;vec4 depth=vec4(\nunpack_depth(texture2D(u_depth,uv-df.xz)),unpack_depth(texture2D(u_depth,uv+df.xz)),unpack_depth(texture2D(u_depth,uv-df.zy)),unpack_depth(texture2D(u_depth,uv+df.zy))\n);return dot(vec4(0.25),vec4(1.0)-clamp(300.0*(vec4(coord.z-0.001)-depth),0.0,1.0));}vec4 fourSample(vec2 pos,vec2 off) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nfloat tl=texture2D(u_dem,pos).a;float tr=texture2D(u_dem,pos+vec2(off.x,0.0)).a;float bl=texture2D(u_dem,pos+vec2(0.0,off.y)).a;float br=texture2D(u_dem,pos+off).a;\n#else\nvec4 demtl=vec4(texture2D(u_dem,pos).xyz*255.0,-1.0);float tl=dot(demtl,u_dem_unpack);vec4 demtr=vec4(texture2D(u_dem,pos+vec2(off.x,0.0)).xyz*255.0,-1.0);float tr=dot(demtr,u_dem_unpack);vec4 dembl=vec4(texture2D(u_dem,pos+vec2(0.0,off.y)).xyz*255.0,-1.0);float bl=dot(dembl,u_dem_unpack);vec4 dembr=vec4(texture2D(u_dem,pos+off).xyz*255.0,-1.0);float br=dot(dembr,u_dem_unpack);\n#endif\nreturn vec4(tl,tr,bl,br);}float flatElevation(vec2 pack) {vec2 apos=floor(pack/8.0);vec2 span=10.0*(pack-apos*8.0);vec2 uvTex=(apos-vec2(1.0,1.0))/8190.0;float size=u_dem_size+2.0;float dd=1.0/size;vec2 pos=u_dem_size*(uvTex*u_dem_scale+u_dem_tl)+1.0;vec2 f=fract(pos);pos=(pos-f+0.5)*dd;vec4 h=fourSample(pos,vec2(dd));float z=mix(mix(h.x,h.y,f.x),mix(h.z,h.w,f.x),f.y);vec2 w=floor(0.5*(span*u_meter_to_dem-1.0));vec2 d=dd*w;h=fourSample(pos-d,2.0*d+vec2(dd));vec4 diff=abs(h.xzxy-h.ywzw);vec2 slope=min(vec2(0.25),u_meter_to_dem*0.5*(diff.xz+diff.yw)/(2.0*w+vec2(1.0)));vec2 fix=slope*span;float base=z+max(fix.x,fix.y);return u_exaggeration*base;}float elevationFromUint16(float word) {return u_exaggeration*(word/ELEVATION_SCALE-ELEVATION_OFFSET);}\n#else\nfloat elevation(vec2 pos) { return 0.0; }bool isOccluded(vec4 frag) { return false; }float occlusionFade(vec4 frag) { return 1.0; }\n#endif",tP="#ifdef FOG\nuniform mediump vec4 u_fog_color;uniform mediump vec2 u_fog_range;uniform mediump float u_fog_horizon_blend;uniform mediump mat4 u_fog_matrix;varying vec3 v_fog_pos;float fog_range(float depth) {return (depth-u_fog_range[0])/(u_fog_range[1]-u_fog_range[0]);}float fog_horizon_blending(vec3 camera_dir) {float t=max(0.0,camera_dir.z/u_fog_horizon_blend);return u_fog_color.a*exp(-3.0*t*t);}float fog_opacity(float t) {const float decay=6.0;float falloff=1.0-min(1.0,exp(-decay*t));falloff*=falloff*falloff;return u_fog_color.a*min(1.0,1.00747*falloff);}vec3 fog_position(vec3 pos) {return (u_fog_matrix*vec4(pos,1.0)).xyz;}vec3 fog_position(vec2 pos) {return fog_position(vec3(pos,0.0));}float fog(vec3 pos) {float depth=length(pos);float opacity=fog_opacity(fog_range(depth));return opacity*fog_horizon_blending(pos/depth);}\n#endif",tO="#ifdef FOG\nuniform mediump vec4 u_fog_color;uniform mediump vec2 u_fog_range;uniform mediump float u_fog_horizon_blend;uniform mediump float u_fog_temporal_offset;varying vec3 v_fog_pos;uniform highp vec3 u_frustum_tl;uniform highp vec3 u_frustum_tr;uniform highp vec3 u_frustum_br;uniform highp vec3 u_frustum_bl;uniform highp vec3 u_globe_pos;uniform highp float u_globe_radius;uniform highp vec2 u_viewport;uniform float u_globe_transition;uniform int u_is_globe;float fog_range(float depth) {return (depth-u_fog_range[0])/(u_fog_range[1]-u_fog_range[0]);}float fog_horizon_blending(vec3 camera_dir) {float t=max(0.0,camera_dir.z/u_fog_horizon_blend);return u_fog_color.a*exp(-3.0*t*t);}float fog_opacity(float t) {const float decay=6.0;float falloff=1.0-min(1.0,exp(-decay*t));falloff*=falloff*falloff;return u_fog_color.a*min(1.0,1.00747*falloff);}float globe_glow_progress() {highp vec2 uv=gl_FragCoord.xy/u_viewport;
170highp vec3 ray_dir=mix(\nmix(u_frustum_tl,u_frustum_tr,uv.x),mix(u_frustum_bl,u_frustum_br,uv.x),1.0-uv.y);highp vec3 dir=normalize(ray_dir);highp vec3 closest_point=dot(u_globe_pos,dir)*dir;highp float sdf=length(closest_point-u_globe_pos)/u_globe_radius;return sdf+PI*0.5;}float fog_opacity(vec3 pos) {float depth=length(pos);return fog_opacity(fog_range(depth));}vec3 fog_apply(vec3 color,vec3 pos) {float depth=length(pos);float opacity;if (u_is_globe==1) {float glow_progress=globe_glow_progress();float t=mix(glow_progress,depth,u_globe_transition);opacity=fog_opacity(fog_range(t));} else {opacity=fog_opacity(fog_range(depth));opacity*=fog_horizon_blending(pos/depth);}return mix(color,u_fog_color.rgb,opacity);}vec4 fog_apply_from_vert(vec4 color,float fog_opac) {float alpha=EPSILON+color.a;color.rgb=mix(color.rgb/alpha,u_fog_color.rgb,fog_opac)*alpha;return color;}vec3 fog_apply_sky_gradient(vec3 camera_ray,vec3 sky_color) {float horizon_blend=fog_horizon_blending(normalize(camera_ray));return mix(sky_color,u_fog_color.rgb,horizon_blend);}vec4 fog_apply_premultiplied(vec4 color,vec3 pos) {float alpha=EPSILON+color.a;color.rgb=fog_apply(color.rgb/alpha,pos)*alpha;return color;}vec3 fog_dither(vec3 color) {vec2 dither_seed=gl_FragCoord.xy+u_fog_temporal_offset;return dither(color,dither_seed);}vec4 fog_dither(vec4 color) {return vec4(fog_dither(color.rgb),color.a);}\n#endif";let tj={},tA={},tM=[];tD(tE,tM),tD(tC,tM),tD(tP,tM),tD(tO,tM),tj=tL("",tC),tA=tL(tO,tP);let tI=tL("\n#if __VERSION__ >=300\n#define varying in\n#define gl_FragColor glFragColor\n#define texture2D texture\n#define textureCube texture\nout vec4 glFragColor;\n#endif\nhighp vec3 hash(highp vec2 p) {highp vec3 p3=fract(p.xyx*vec3(443.8975,397.2973,491.1871));p3+=dot(p3,p3.yxz+19.19);return fract((p3.xxy+p3.yzz)*p3.zyx);}vec3 dither(vec3 color,highp vec2 seed) {vec3 rnd=hash(seed)+hash(seed+0.59374)-0.5;return color+rnd/255.0;}highp float unpack_depth(highp vec4 rgba_depth)\n{const highp vec4 bit_shift=vec4(1.0/(255.0*255.0*255.0),1.0/(255.0*255.0),1.0/255.0,1.0);return dot(rgba_depth,bit_shift)*2.0-1.0;}highp vec4 pack_depth(highp float ndc_z) {highp float depth=ndc_z*0.5+0.5;const highp vec4 bit_shift=vec4(255.0*255.0*255.0,255.0*255.0,255.0,1.0);const highp vec4 bit_mask =vec4(0.0,1.0/255.0,1.0/255.0,1.0/255.0);highp vec4 res=fract(depth*bit_shift);res-=res.xxyz*bit_mask;return res;}","\n#if __VERSION__ >=300\n#define attribute in\n#define varying out\n#define texture2D texture\n#endif\nfloat wrap(float n,float min,float max) {float d=max-min;float w=mod(mod(n-min,d)+d,d)+min;return (w==min) ? max : w;}\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 mercator_tile_position(mat4 matrix,vec2 tile_anchor,vec3 tile_id,vec2 mercator_center) {\n#ifndef PROJECTED_POS_ON_VIEWPORT\nfloat tiles=tile_id.z;vec2 mercator=(tile_anchor/EXTENT+tile_id.xy)/tiles;mercator-=mercator_center;mercator.x=wrap(mercator.x,-0.5,0.5);vec4 mercator_tile=vec4(mercator.xy*EXTENT,EXTENT/(2.0*PI),1.0);mercator_tile=matrix*mercator_tile;return mercator_tile.xyz;\n#else\nreturn vec3(0.0);\n#endif\n}vec3 mix_globe_mercator(vec3 globe,vec3 mercator,float t) {return mix(globe,mercator,t);}mat3 globe_mercator_surface_vectors(vec3 pos_normal,vec3 up_dir,float zoom_transition) {vec3 normal=zoom_transition==0.0 ? pos_normal : normalize(mix(pos_normal,up_dir,zoom_transition));vec3 xAxis=normalize(vec3(normal.z,0.0,-normal.x));vec3 yAxis=normalize(cross(normal,xAxis));return mat3(xAxis,yAxis,normal);}\n#endif\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(\nunpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);
170return (tile_units_to_pixels*pos+offset)/pattern_size;}const vec4 AWAY=vec4(-1000.0,-1000.0,-1000.0,1);//Normalized device coordinate that is not rendered."),tZ="\n#ifdef GL_ES\nprecision mediump float;\n#else\n\n#if !defined(lowp)\n#define lowp\n#endif\n\n#if !defined(mediump)\n#define mediump\n#endif\n\n#if !defined(highp)\n#define highp\n#endif\n\n#endif";var tR={background:tL("uniform vec4 u_color;uniform float u_opacity;\n#ifdef LIGHTING_3D_MODE\nvarying vec4 v_color;\n#endif\nvoid main() {vec4 out_color;\n#ifdef LIGHTING_3D_MODE\nout_color=v_color;\n#else\nout_color=u_color;\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;\n#ifdef LIGHTING_3D_MODE\nuniform vec4 u_color;varying vec4 v_color;\n#endif\nvoid main() {gl_Position=u_matrix*vec4(a_pos,0,1);\n#ifdef LIGHTING_3D_MODE\nv_color=apply_lighting(u_color);\n#endif\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),backgroundPattern:tL("uniform vec2 u_pattern_tl;uniform vec2 u_pattern_br;uniform vec2 u_texsize;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos;void main() {vec2 imagecoord=mod(v_pos,1.0);vec2 pos=mix(u_pattern_tl/u_texsize,u_pattern_br/u_texsize,imagecoord);vec4 out_color=texture2D(u_image,pos);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pattern_size;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_pattern_size,u_tile_units_to_pixels,a_pos);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),circle:tL("varying vec3 v_data;varying float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(\nantialiased_blur,0.0,extrude_length-radius/(radius+stroke_width)\n);vec4 out_color=mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_apply_premultiplied(out_color,v_fog_pos);\n#endif\ngl_FragColor=out_color*(v_visibility*opacity_t);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","#define NUM_VISIBILITY_RINGS 2\n#define INV_SQRT2 0.70710678\n#define ELEVATION_BIAS 0.0001\n#define NUM_SAMPLES_PER_RING 16\nuniform mat4 u_matrix;uniform mat2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;\n#endif\nvarying vec3 v_data;varying float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvec2 calc_offset(vec2 extrusion,float radius,float stroke_width, float view_scale) {return extrusion*(radius+stroke_width)*u_extrude_scale*v
170iew_scale;}float cantilevered_elevation(vec2 pos,float radius,float stroke_width,float view_scale) {vec2 c1=pos+calc_offset(vec2(-1,-1),radius,stroke_width,view_scale);vec2 c2=pos+calc_offset(vec2(1,-1),radius,stroke_width,view_scale);vec2 c3=pos+calc_offset(vec2(1,1),radius,stroke_width,view_scale);vec2 c4=pos+calc_offset(vec2(-1,1),radius,stroke_width,view_scale);float h1=elevation(c1)+ELEVATION_BIAS;float h2=elevation(c2)+ELEVATION_BIAS;float h3=elevation(c3)+ELEVATION_BIAS;float h4=elevation(c4)+ELEVATION_BIAS;return max(h4,max(h3,max(h1,h2)));}float circle_elevation(vec2 pos) {\n#if defined(TERRAIN)\nreturn elevation(pos)+ELEVATION_BIAS;\n#else\nreturn 0.0;\n#endif\n}vec4 project_vertex(vec2 extrusion,vec4 world_center,vec4 projected_center,float radius,float stroke_width, float view_scale,mat3 surface_vectors) {vec2 sample_offset=calc_offset(extrusion,radius,stroke_width,view_scale);\n#ifdef PITCH_WITH_MAP\n#ifdef PROJECTION_GLOBE_VIEW\nreturn u_matrix*( world_center+vec4(sample_offset.x*surface_vectors[0]+sample_offset.y*surface_vectors[1],0) );\n#else\nreturn u_matrix*( world_center+vec4(sample_offset,0,0) );\n#endif\n#else\nreturn projected_center+vec4(sample_offset,0,0);\n#endif\n}float get_sample_step() {\n#ifdef PITCH_WITH_MAP\nreturn 2.0*PI/float(NUM_SAMPLES_PER_RING);\n#else\nreturn PI/float(NUM_SAMPLES_PER_RING);\n#endif\n}void main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);vec4 world_center;mat3 surface_vectors;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 pos_normal_3=a_pos_normal_3/16384.0;surface_vectors=globe_mercator_surface_vectors(pos_normal_3,u_up_dir,u_zoom_transition);vec3 surface_extrusion=extrude.x*surface_vectors[0]+extrude.y*surface_vectors[1];vec3 globe_elevation=elevationVector(circle_center)*circle_elevation(circle_center);vec3 globe_pos=a_pos_3+surface_extrusion+globe_elevation;vec3 mercator_elevation=u_up_dir*u_tile_up_scale*circle_elevation(circle_center);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,circle_center,u_tile_id,u_merc_center)+surface_extrusion+mercator_elevation;vec3 pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);world_center=vec4(pos,1);\n#else \nsurface_vectors=mat3(1.0);float height=circle_elevation(circle_center);world_center=vec4(circle_center,height,1);\n#endif\nvec4 projected_center=u_matrix*world_center;float view_scale=0.0;\n#ifdef PITCH_WITH_MAP\n#ifdef SCALE_WITH_MAP\nview_scale=1.0;\n#else\nview_scale=projected_center.w/u_camera_to_center_distance;\n#endif\n#else\n#ifdef SCALE_WITH_MAP\nview_scale=u_camera_to_center_distance;\n#else\nview_scale=projected_center.w;\n#endif\n#endif\ngl_Position=project_vertex(extrude,world_center,projected_center,radius,stroke_width,view_scale,surface_vectors);float visibility=0.0;\n#ifdef TERRAIN\nfloat step=get_sample_step();vec4 occlusion_world_center;vec4 occlusion_projected_center;\n#ifdef PITCH_WITH_MAP\nfloat cantilevered_height=cantilevered_elevation(circle_center,radius,stroke_width,view_scale);occlusion_world_center=vec4(circle_center,cantilevered_height,1);occlusion_projected_center=u_matrix*occlusion_world_center;\n#else\nocclusion_world_center=world_center;occlusion_projected_center=projected_center;\n#endif\nfor(int ring=0; ring < NUM_VISIBILITY_RINGS; ring++) {float scale=(float(ring)+1.0)/float(NUM_VISIBILITY_RINGS);for(int i=0; i < NUM_SAMPLES_PER_RING; i++) {vec2 extrusion=vec2(cos(step*float(i)),-sin(step*float(i)))*scale;vec4 frag_pos=project_vertex(extrusion,occlusion_world_center,occlusion_projected_center,radius,stroke_width,view_scale,surface_vectors);visibility+=float(!isOccluded(frag_pos));}}visibility/=float(NUM_VISIBILITY_RINGS)*float(NUM_SAMPLES_PER_RING);\n#else\nvisibility=1.0;\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nvisibility=1.0;\n#endif\nv_visibility=visibility;lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);\n#ifdef FOG\nv_fog_pos=fog_position(world_center.xyz);\n#endif\n}"),clippingMask:tL("void main() {gl_FragColor=vec4(1.0);}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),heatmap:tL("uniform highp float u_intensity;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);\n#ifdef FOG\nif (u_is_globe==0) {gl_FragColor.r*=pow(1.0-fog_opacity(v_fog_pos),2.0);}\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;\n#endif\nvarying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec2 tilePos=floor(a_pos*0.5);vec3 pos;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 pos_normal_3=a_pos_normal_3/16384.0;mat3 surface_vectors=globe_mercator_surface_vectors(pos_normal_3,u_up_dir,u_zoom_transition);vec3 surface_extrusion=extrude.x*surface_vectors[0]+extrude.y*surface_vectors[1];vec3 globe_elevation=elevationVector(tilePos)*elevation(tilePos);vec3 globe_pos=a_pos_3+surface_extrusion+globe_elevation;vec3 mercator_elevation=u_up_dir*u_tile_up_scale*elevation(tilePos);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,tilePos,u_tile_id,u_merc_center)+surface_extrusion+mercator_elevation;pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#else\npos=vec3(tilePos+extrude,elevation(tilePos));\n#endif\ngl_Position=u_matrix*vec4(pos,1);\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),heatmapTexture:tL("uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(0.0);\n#endif\n}","attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=vec4(a_pos,0,1);v_pos=a_pos*0.5+0.5;}"),collisionBox:tL("varying float v_placed;varying float v_notUsed;void main() {vec4 red =vec4(1.0,0.0,0.0,1.0);vec4 blue=vec4(0.0,0.0,1.0,0.5);gl_FragColor =mix(red,blue,step(0.5,v_placed))*0.5;gl_FragColor*=mix(1.0,0.1,step(0.5,v_notUsed));}","attribute vec3 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;attribute float a_size_scale;attribute vec2 a_padding;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_pos+elevationVector(a_anchor_pos)*elevation(a_anchor_pos),1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(\n0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,1.5);gl_Position=projectedPoint;gl_Position.xy+=(a_extrude*a_size_scale+a_shift+a_padding)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:tL("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos_2f;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos_2f;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(\nmix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(\n0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),debug:tL("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;\n#endif\nvarying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {float h=elevation(a_pos);v_uv=a_pos/8192.0;\n#ifdef PROJECTION_GLOBE_VIEW\ngl_Position=u_matrix*vec4(a_pos_3+elevationVector(a_pos)*h,1
170);\n#else\ngl_Position=u_matrix*vec4(a_pos*u_overlay_scale,h,1);\n#endif\n}"),fill:tL("#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\nvec4 out_color=color;\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillOutline:tL("varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);vec4 out_color=outline_color;\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillOutlinePattern:tL("uniform vec2 u_texsize;uniform sampler2D u_image;varying vec2 v_pos;varying vec2 v_pos_world;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 imagecoord=mod(v_pos,1.0);vec2 pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,imagecoord);float dist=length(v_pos_world-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);vec4 out_color=texture2D(u_image,pos);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos;varying vec2 v_pos_world;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern\n#pragma mapbox: define lowp float pixel_ratio\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize lowp float pixel_ratio\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,display_size,u_tile_units_to_pixels,a_pos);v_pos_world=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillPattern:tL("uniform vec2 u_texsize;uniform sampler2D u_image;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 imagecoord=mod(v_pos,1.0);vec2 pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,imagecoord);vec4 out_color=texture2D(u_image,pos);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern\n#pragma mapbox: define lowp float pixel_ratio\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize lowp float pixel_ratio\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,display_size,u_tile_units_to_pixels,a_pos);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillExtrusion:tL("varying vec4 v_color;\n#ifdef RENDER_SHADOWS\nvarying highp vec4 v_pos_light_view_0;varying highp vec4 v_pos_light_view_1;varying float v_depth;\n#endif\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;varying vec3 v_ao;\n#endif\n#ifdef ZERO_ROOF_RADIUS\nvarying vec4 v_roof_color;\n#endif\n#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS)\nvarying highp vec3 v_normal;\n#endif\nvoid main() {\n#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS)\nvec3 normal=v_normal;\n#endif\nfloat z;vec4 color;\n#ifdef ZERO_ROOF_RADIUS\nz=float(normal.z > 0.00001);color=mix(v_color,v_roof_color,z);\n#else\ncolor=v_color;\n#endif\n#ifdef FAUX_AO\nfloat intensity=u_ao[0];float h=max(0.0,v_ao.z);float h_floors=h/u_ao[1];float y_shade=1.0-0.9*intensity*min(v_ao.y,1.0);float shade=(1.0-0.08*intensity)*(y_shade+(1.0-y_shade)*(1.0-pow(1.0-min(h_floors/16.0,1.0
170),16.0)))+0.08*intensity*min(h_floors/160.0,1.0);float concave=v_ao.x*v_ao.x;\n#ifdef ZERO_ROOF_RADIUS\nconcave*=(1.0-z);\n#endif\nfloat x_shade=mix(1.0,mix(0.6,0.75,min(h_floors/30.0,1.0)),intensity)+0.1*intensity*min(h,1.0);shade*=mix(1.0,x_shade*x_shade*x_shade,concave);color.rgb=color.rgb*shade;\n#endif\n#ifdef RENDER_SHADOWS\n#ifdef ZERO_ROOF_RADIUS\nnormal=mix(normal,vec3(0.0,0.0,1.0),z);\n#endif\ncolor.xyz=shadowed_color_normal(color.xyz,normalize(normal),v_pos_light_view_0,v_pos_light_view_1,v_depth);\n#endif\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#endif\ngl_FragColor=color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform float u_edge_radius;attribute vec4 a_pos_normal_ed;attribute vec2 a_centroid_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;uniform float u_height_lift;\n#endif\nvarying vec4 v_color;\n#ifdef RENDER_SHADOWS\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;varying highp vec4 v_pos_light_view_0;varying highp vec4 v_pos_light_view_1;varying float v_depth;\n#endif\n#ifdef ZERO_ROOF_RADIUS\nvarying vec4 v_roof_color;\n#endif\n#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS)\nvarying highp vec3 v_normal;\n#endif\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;varying vec3 v_ao;\n#endif\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec4 pos_nx=floor(a_pos_normal_ed*0.5);vec4 top_up_ny_start=a_pos_normal_ed-2.0*pos_nx;vec3 top_up_ny=top_up_ny_start.xyz;float x_normal=pos_nx.z/8192.0;vec3 normal=top_up_ny.y==1.0 ? vec3(0.0,0.0,1.0) : normalize(vec3(x_normal,(2.0*top_up_ny.z-1.0)*(1.0-abs(x_normal)),0.0));\n#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS)\nv_normal=normal;\n#endif\nbase=max(0.0,base);height=max(0.0,top_up_ny.y==0.0 && top_up_ny.x==1.0 ? height-u_edge_radius : height);float t=top_up_ny.x;vec2 centroid_pos=vec2(0.0);\n#if defined(HAS_CENTROID) || defined(TERRAIN)\ncentroid_pos=a_centroid_pos;\n#endif\nfloat ele=0.0;float h=0.0;float c_ele;vec3 pos;\n#ifdef TERRAIN\nbool flat_roof=centroid_pos.x !=0.0 && t > 0.0;ele=elevation(pos_nx.xy);c_ele=flat_roof ? centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos) : ele;h=flat_roof ? max(c_ele+height,ele+base+2.0) : ele+(t > 0.0 ? height : base==0.0 ?-5.0 : base);pos=vec3(pos_nx.xy,h);\n#else\nh=t > 0.0 ? height : base;pos=vec3(pos_nx.xy,h);\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nfloat lift=float((t+base) > 0.0)*u_height_lift;h+=lift;vec3 globe_normal=normalize(mix(a_pos_normal_3/16384.0,u_up_dir,u_zoom_transition));vec3 globe_pos=a_pos_3+globe_normal*(u_tile_up_scale*h);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,pos.xy,u_tile_id,u_merc_center)+u_up_dir*u_tile_up_scale*pos.z;pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#endif\nfloat hidden=float(centroid_pos.x==0.0 && centroid_pos.y==1.0);gl_Position=mix(u_matrix*vec4(pos,1),AWAY,hidden);\n#ifdef RENDER_SHADOWS\nv_pos_light_view_0=u_light_matrix_0*vec4(pos,1);v_pos_light_view_1=u_light_matrix_1*vec4(pos,1);v_depth=gl_Position.w;\n#endif\nfloat NdotL=0.0;float colorvalue=0.0;\n#ifdef LIGHTING_3D_MODE\nNdotL=calculate_NdotL(normal);\n#else\ncolorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;NdotL=clamp(dot(normal,u_lightpos),0.0,1.0);NdotL=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),NdotL);\n#endif\nif (normal.y !=0.0) {float r=0.84;\n#ifndef LIGHTING_3D_MODE\nr=mix(0.7,0.98,1.0-u_lightintensity);
170\n#endif\nNdotL*=(\n(1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),r,1.0)));}v_color=vec4(0.0,0.0,0.0,1.0);\n#ifdef FAUX_AO\nfloat concave=pos_nx.w-floor(pos_nx.w*0.5)*2.0;float start=top_up_ny_start.w;float y_ground=1.0-clamp(t+base,0.0,1.0);float top_height=height;\n#ifdef TERRAIN\ntop_height=mix(max(c_ele+height,ele+base+2.0),ele+height,float(centroid_pos.x==0.0))-ele;y_ground+=y_ground*5.0/max(3.0,top_height);\n#endif\nv_ao=vec3(mix(concave,-concave,start),y_ground,h-ele);NdotL*=(1.0+0.05*(1.0-top_up_ny.y)*u_ao[0]);\n#ifdef PROJECTION_GLOBE_VIEW\ntop_height+=u_height_lift;\n#endif\ngl_Position.z-=(0.0000006*(min(top_height,500.)+2.0*min(base,500.0)+60.0*concave+3.0*start))*gl_Position.w;\n#endif\n#ifdef LIGHTING_3D_MODE\nv_color=apply_lighting(color,NdotL);\n#else\nv_color.rgb+=clamp(color.rgb*NdotL*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));\n#endif\nv_color*=u_opacity;\n#ifdef ZERO_ROOF_RADIUS\nv_roof_color=vec4(0.0,0.0,0.0,1.0);\n#ifdef LIGHTING_3D_MODE\nv_roof_color=apply_lighting(color,calculate_NdotL(vec3(0.0,0.0,1.0)));\n#else\nfloat roofNdotL=clamp(u_lightpos.z,0.0,1.0);roofNdotL=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),roofNdotL);v_roof_color.rgb+=clamp(color.rgb*roofNdotL*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));\n#endif\nv_roof_color*=u_opacity;\n#endif\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),fillExtrusionPattern:tL("uniform vec2 u_texsize;uniform sampler2D u_image;\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;varying vec3 v_ao;\n#endif\n#ifdef LIGHTING_3D_MODE\nvarying float v_NdotL;\n#endif\nvarying vec2 v_pos;varying vec4 v_lighting;uniform lowp float u_opacity;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern\n#pragma mapbox: define lowp float pixel_ratio\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize lowp float pixel_ratio\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 imagecoord=mod(v_pos,1.0);vec2 pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,imagecoord);vec4 out_color=texture2D(u_image,pos);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color,v_NdotL)*u_opacity;\n#else\nout_color=out_color*v_lighting;\n#endif\n#ifdef FAUX_AO\nfloat intensity=u_ao[0];float h=max(0.0,v_ao.z);float h_floors=h/u_ao[1];float y_shade=1.0-0.9*intensity*min(v_ao.y,1.0);float shade=(1.0-0.08*intensity)*(y_shade+(1.0-y_shade)*(1.0-pow(1.0-min(h_floors/16.0,1.0),16.0)))+0.08*intensity*min(h_floors/160.0,1.0);float concave=v_ao.x*v_ao.x;float x_shade=mix(1.0,mix(0.6,0.75,min(h_floors/30.0,1.0)),intensity)+0.1*intensity*min(h,1.0);shade*=mix(1.0,x_shade*x_shade*x_shade,concave);out_color.rgb=out_color.rgb*shade;\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform float u_tile_units_to_pixels;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec4 a_pos_normal_ed;attribute vec2 a_centroid_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;uniform float u_height_lift;\n#endif\nvarying vec2 v_pos;varying vec4 v_lighting;\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;varying vec3 v_ao;\n#endif\n#ifdef LIGHTING_3D_MODE\nvarying float v_NdotL;\n#endif\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern\n#pragma mapbox: define lowp float pixel_ratio\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize lowp float pixel_ratio\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec4 pos_nx=floor(a_pos_normal_ed*0.5);mediump vec4 top_up_ny_start=a_pos_normal_ed-2.0*pos_nx;mediump vec3 top_up_ny=top_up_ny_start.xyz;float x_normal=pos_nx.z/8192.0;vec3 normal=top_up_ny.y==1.0 ? vec3(0.0,0.0,1.0) : normalize(vec3(x_normal,(2.0*top_up_ny.z-1.0)*(1.0-abs(x_normal)),0.0));float edgedistance=a_pos_normal_ed.w;vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;
170base=max(0.0,base);height=max(0.0,height);float t=top_up_ny.x;float z=t > 0.0 ? height : base;vec2 centroid_pos=vec2(0.0);\n#if defined(HAS_CENTROID) || defined(TERRAIN)\ncentroid_pos=a_centroid_pos;\n#endif\nfloat ele=0.0;float h=z;vec3 p;float c_ele;\n#ifdef TERRAIN\nbool flat_roof=centroid_pos.x !=0.0 && t > 0.0;ele=elevation(pos_nx.xy);c_ele=flat_roof ? centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos) : ele;h=flat_roof ? max(c_ele+height,ele+base+2.0) : ele+(t > 0.0 ? height : base==0.0 ?-5.0 : base);p=vec3(pos_nx.xy,h);\n#else\np=vec3(pos_nx.xy,z);\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nfloat lift=float((t+base) > 0.0)*u_height_lift;h+=lift;vec3 globe_normal=normalize(mix(a_pos_normal_3/16384.0,u_up_dir,u_zoom_transition));vec3 globe_pos=a_pos_3+globe_normal*(u_tile_up_scale*(p.z+lift));vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,p.xy,u_tile_id,u_merc_center)+u_up_dir*u_tile_up_scale*p.z;p=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#endif\nfloat hidden=float(centroid_pos.x==0.0 && centroid_pos.y==1.0);gl_Position=mix(u_matrix*vec4(p,1),AWAY,hidden);vec2 pos=normal.z==1.0\n? pos_nx.xy\n: vec2(edgedistance,z*u_height_factor);v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,display_size,u_tile_units_to_pixels,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float NdotL=0.0;\n#ifdef LIGHTING_3D_MODE\nNdotL=calculate_NdotL(normal);\n#else\nNdotL=clamp(dot(normal,u_lightpos),0.0,1.0);NdotL=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),NdotL);\n#endif\nif (normal.y !=0.0) {float r=0.84;\n#ifndef LIGHTING_3D_MODE\nr=mix(0.7,0.98,1.0-u_lightintensity);\n#endif\nNdotL*=(\n(1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),r,1.0)));}\n#ifdef FAUX_AO\nfloat concave=pos_nx.w-floor(pos_nx.w*0.5)*2.0;float start=top_up_ny_start.w;float y_ground=1.0-clamp(t+base,0.0,1.0);float top_height=height;\n#ifdef TERRAIN\ntop_height=mix(max(c_ele+height,ele+base+2.0),ele+height,float(ce
170ntroid_pos.x==0.0))-ele;y_ground+=y_ground*5.0/max(3.0,top_height);\n#endif\nv_ao=vec3(mix(concave,-concave,start),y_ground,h-ele);NdotL*=(1.0+0.05*(1.0-top_up_ny.y)*u_ao[0]);\n#ifdef PROJECTION_GLOBE_VIEW\ntop_height+=u_height_lift;\n#endif\ngl_Position.z-=(0.0000006*(min(top_height,500.)+2.0*min(base,500.0)+60.0*concave+3.0*start))*gl_Position.w;\n#endif\n#ifdef LIGHTING_3D_MODE\nv_NdotL=NdotL;\n#else\nv_lighting.rgb+=clamp(NdotL*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;\n#endif \n#ifdef FOG\nv_fog_pos=fog_position(p);\n#endif\n}"),hillshadePrepare:tL("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nreturn texture2D(u_image,coord).a/4.0;\n#else\nvec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;\n#endif\n}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y));float b=getElevation(v_pos+vec2(0,-epsilon.y));float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y));float d=getElevation(v_pos+vec2(-epsilon.x,0));float e=getElevation(v_pos+vec2(epsilon.x,0));float f=getElevation(v_pos+vec2(-epsilon.x,epsilon.y));float g=getElevation(v_pos+vec2(0,epsilon.y));float h=getElevation(v_pos+vec2(epsilon.x,epsilon.y));float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2(\n(c+e+e+h)-(a+d+d+f),(f+g+g+h)-(a+b+b+c)\n)/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(\nderiv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hillshade:tL("uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;void main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef LIGHTING_3D_MODE\ngl_FragColor=apply_lighting(gl_FragColor);\n#endif\n#ifdef FOG\ngl_FragColor=fog_dither(fog_apply_premultiplied(gl_FragColor,v_fog_pos));\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),line:tL("uniform lowp float u_device_pixel_ratio;uniform float u_alpha_discard_threshold;uniform highp vec2 u_trim_offset;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec4 v_uv;\n#ifdef RENDER_LINE_DASH\nuniform sampler2D u_dash_image;varying vec2 v_tex;\n#endif\n#ifdef RENDER_LINE_GRADIENT\nuniform sampler2D u_gradient_image;\n#endif\nuniform float u_border_width;uniform vec4 u_border_color;float luminance(vec3 c) {return (c.r+c.r+c.b+c.g+c.g+c.g)*0.1667;}\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 dash\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nfloat linearstep(float edge0,float edge1,float x) {return
170clamp((x-edge0)/(edge1-edge0),0.0,1.0);}void main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize lowp vec4 dash\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);\n#ifdef RENDER_LINE_DASH\nfloat sdfdist=texture2D(u_dash_image,v_tex).a;float sdfgamma=1.0/(2.0*u_device_pixel_ratio)/dash.z;alpha*=linearstep(0.5-sdfgamma/floorwidth,0.5+sdfgamma/floorwidth,sdfdist);\n#endif\nhighp vec4 out_color;\n#ifdef RENDER_LINE_GRADIENT\nout_color=texture2D(u_gradient_image,v_uv.xy);\n#else\nout_color=color;\n#endif\nfloat trimmed=1.0;\n#ifdef RENDER_LINE_TRIM_OFFSET\nhighp float start=v_uv[2];highp float end=v_uv[3];highp float trim_start=u_trim_offset[0];highp float trim_end=u_trim_offset[1];highp float line_progress=(start+(v_uv.x)*(end-start));if (trim_end > trim_start) {if (line_progress <=trim_end && line_progress >=trim_start) {out_color=vec4(0,0,0,0);trimmed=0.0;}}\n#endif\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\n#ifdef RENDER_LINE_ALPHA_DISCARD\nif (alpha < u_alpha_discard_threshold) {discard;}\n#endif\n#ifdef RENDER_LINE_BORDER\nfloat edgeBlur=(u_border_width+1.0/u_device_pixel_ratio);float alpha2=clamp(min(dist-(v_width2.t-edgeBlur),v_width2.s-dist)/edgeBlur,0.0,1.0);if (alpha2 < 1.) {float smoothAlpha=smoothstep(0.6,1.0,alpha2);\n#ifdef RENDER_LINE_BORDER_AUTO\nfloat Y=(out_color.a > 0.01) ? luminance(out_color.rgb/out_color.a) : 1.;float adjustment=(Y > 0.) ? 0.5/Y : 0.45;if (out_color.a > 0.25 && Y < 0.25) {vec3 borderColor=(Y > 0.) ? out_color.rgb : vec3(1,1,1)*out_color.a;out_color.rgb=out_color.rgb+borderColor*(adjustment*(1.0-smoothAlpha));} else {out_color.rgb*=(0.6 +0.4*smoothAlpha);}\n#else\nout_color.rgb=mix(u_border_color.rgb*u_border_color.a*trimmed,out_color.rgb,smoothAlpha);\n#endif\n}\n#endif\ngl_FragColor=out_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define EXTRUDE_SCALE 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;\n#if defined(RENDER_LINE_GRADIENT) || defined(RENDER_LINE_TRIM_OFFSET)\nattribute highp vec4 a_packed;\n#endif\n#ifdef RENDER_LINE_DASH\nattribute float a_linesofar;\n#endif\nuniform mat4 u_matrix;uniform mat2 u_pixels_to_tile_units;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec4 v_uv;\n#ifdef RENDER_LINE_DASH\nuniform vec2 u_texsize;uniform float u_tile_units_to_pixels;varying vec2 v_tex;\n#endif\n#ifdef RENDER_LINE_GRADIENT\nuniform float u_image_height;\n#endif\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 dash\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize lowp vec4 dash\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*EXTRUDE_SCALE;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*EXTRUDE_SCALE*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist*u_pixels_to_tile_units,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2*u_pixels_to_tile_units,0.0,1.0)+projected_extrude;\n#ifndef RENDER_TO_TEXTURE\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#else\nv_gamma_scale=1.0;\n#endif\n#if defined(RENDER_LINE_GRADIENT) || defined(RENDER_LINE_TRIM_OFFSET)\nfloat a_uv_x=a_packed[0];float a_split_index=a_packed[1];highp float a_clip_start=a_packed[2];highp float a_clip_end=a_packed[3];\n#ifdef RENDER_LINE_GRADIENT\nhighp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec4(a_uv_x,a_split_index*texel_height-half_texel_height,a_clip_start,a_clip_end);\n#else\nv_uv=vec4(a_uv_x,0.0,a_clip_start,a_clip_end);\n#endif\n#endif\n#ifdef RENDER_LINE_DASH\nfloat scale=dash.z==0.0 ? 0.0 : u_tile_units_to_pixels/dash.z;float height=dash.y;v_tex=vec2(a_linesofar*scale/floorwidth,(-normal.y*height+dash.x+0.5)/u_texsize.y);\n#endif\nv_width2=vec2(outset,inset);\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),linePattern:tL("uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_tile_units_to_pixels;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern\n#pragma mapbox: define lowp float pixel_ratio\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize lowp float pixel_ratio\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;vec2 pattern_size=vec2(display_size.x/u_tile_units_to_pixels,display_size.y);float aspect=display_size.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x=mod(v_linesofar/pattern_size.x*aspect,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos=mix(pattern_tl*texel_size-texel_size,pattern_br*texel_size+texel_size,vec2(x,y));vec4 color=texture2D(u_image,pos);\n#ifdef LIGHTING_3D_MODE\ncolor=apply_lighting(color);\n#endif\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#endif\ngl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_linesofar;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mat2 u_pixels_to_tile_units;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern\n#pragma mapbox: define lowp float pixel_ratio\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize lowp float pixel_ratio\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist*u_pixels_to_tile_units,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2*u_pixels_to_tile_units,0.0,1.0)+projected_extrude;\n#ifndef RENDER_TO_TEXTURE\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#else\nv_gamma_scale=1.0;\n#endif\nv_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),raster:tL("uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(\ndot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);vec3 out_color=mix(u_high_vec,u_low_vec,rgb);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply(out_color,v_fog_pos));\n#endif\ngl_FragColor=vec4(out_color*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform vec2 u_perspective_transform;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {float w=1.0+dot(a_texture_pos,u_perspective_transform);gl_Position=u_matrix*vec4(a_pos*w,0,w);v_pos0=a_texture_pos/8192.0;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),symbolIcon:tL("uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_pixeloffset;attribute vec4 a_projected_pos;attribute float a_fade_opacity;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_globe_anchor;attribute vec3 a_globe_normal;\n#endif\nuniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;uniform vec3 u_up_vector;\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;\n#endif\nvarying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_min_font_scale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[3];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 tile_anchor=a_pos;vec3 h=elevationVector(tile_anchor)*elevation(tile_anchor);float globe_occlusion_fade;vec3 world_pos;vec3 mercator_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nmercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);world_pos=mix_globe_mercator(a_globe_anchor+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;\n#else\nworld_pos=vec3(tile_anchor,0)+h;globe_occlusion_fade=1.0;\n#endif\nvec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float font_scale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjected_point;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 displacement=vec3(a_globe_normal.z,0,-a_globe_normal.x);offsetProjected_point=u_matrix*vec4(a_globe_anchor+displacement,1);\n#else\noffsetProjected_point=u_matrix*vec4(tile_anchor+vec2(1,0),0,1);\n#endif\nvec2 a=projected_point.xy/projected_point.w;vec2 b=offsetProjected_point.xy/offsetProjected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}vec4 projected_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 proj_pos=mix_globe_mercator(a_projected_pos.xyz+h,mercator_pos,u_zoom_transition);projected_pos=u_label_plane_matrix*vec4(proj_pos,1.0);\n#else\nprojected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h.z,1.0);\n#endif\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*max(a_min_font_scale,font_scale)+a_pxoffset/16.0);\n#ifdef TERRAIN\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\n#endif\nfloat occlusion_fade=occlusionFade(projected_point)*globe_occlusion_fade;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec3(1,0,0);vec3 yAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,xAxis)) : vec3(0,1,0);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xyz/projected_pos.w+xAxis*offset.x+yAxis*offset.y,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#else\ngl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#endif\nfloat projection_transition_fade=1.0;\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\n#endif\nv_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change))*projection_transition_fade;}"),symbolSDF:tL("#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;u
170niform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_pixeloffset;attribute vec4 a_projected_pos;attribute float a_fade_opacity;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_globe_anchor;attribute vec3 a_globe_normal;\n#endif\nuniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec3 u_up_vector;\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;\n#endif\nvarying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[3];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 tile_anchor=a_pos;vec3 h=elevationVector(tile_anchor)*elevation(tile_anchor);float globe_occlusion_fade;vec3 world_pos;vec3 mercator_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nmercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);world_pos=mix_globe_mercator(a_globe_anchor+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;\n#else\nworld_pos=vec3(tile_anchor,0)+h;globe_occlusion_fade=1.0;\n#endif\nvec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetprojected_point;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 displacement=vec3(a_globe_normal.z,0,-a_globe_normal.x);offsetprojected_point=u_matrix*vec4(a_globe_anchor+displacement,1);\n#else\noffsetprojected_point=u_matrix*vec4(tile_anchor+vec2(1,0),0,1);\n#endif\nvec2 a=projected_point.xy/projected_point.w;vec2 b=offsetprojected_point.xy/offsetprojected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}vec4 projected_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 proj_pos=mix_globe_mercator(a_projected_pos.xyz+h,mercator_pos,u_zoom_transition);projected_pos=u_label_plane_matrix*vec4(proj_pos,1.0);\n#else\nprojected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h.z,1.0);\n#endif\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset);\n#ifdef TERRAIN\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\n#endif\nfloat occlusion_fade=occlusionFade(projected_point)*globe_occlusion_fade;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec3(1,0,0);vec3 yAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,xAxis)) : vec3(0,1,0);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xyz/projected_pos.w+xAxis*offset.x+yAxis*offset.y,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#else\ngl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#endif\nfloat gamma_scale=gl_Position.w;float projection_transition_fade=1.0;\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\n#endif\nvec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity*projection_transition_fade);}"),symbolTextAndIcon:tL("#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;
170gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_projected_pos;attribute float a_fade_opacity;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_globe_anchor;attribute vec3 a_globe_normal;\n#endif\nuniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec3 u_up_vector;uniform vec2 u_texsize_icon;\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;\n#endif\nvarying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[3];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 tile_anchor=a_pos;vec3 h=elevationVector(tile_anchor)*elevation(tile_anchor);float globe_occlusion_fade;vec3 world_pos;vec3 mercator_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nmercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);world_pos=mix_globe_mercator(a_globe_anchor+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;\n#else\nworld_pos=vec3(tile_anchor,0)+h;globe_occlusion_fade=1.0;\n#endif\nvec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float font_scale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offset_projected_point=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projected_point.xy/projected_point.w;vec2 b=offset_projected_point.xy/offset_projected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}vec4 projected_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 proj_pos=mix_globe_mercator(a_projected_pos.xyz+h,mercator_pos,u_zoom_transition);projected_pos=u_label_plane_matrix*vec4(proj_pos,1.0);\n#else\nprojected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h.z,1.0);\n#endif\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*font_scale);\n#ifdef TERRAIN\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\n#endif\nfloat occlusion_fade=occlusionFade(projected_point)*globe_occlusion_fade;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec3(1,0,0);vec3 yAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,xAxis)) : vec3(0,1,0);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xyz/projected_pos.w+xAxis*offset.x+yAxis*offset.y,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#else\ngl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#endif\nfloat gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change));float projection_transition_fade=1.0;\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\n#endif\nv_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity*projection_transition_fade,is_s
170df);}"),terrainRaster:tL("uniform sampler2D u_image0;varying vec2 v_pos0;\n#ifdef FOG\nvarying float v_fog_opacity;\n#endif\n#ifdef RENDER_SHADOWS\nvarying vec4 v_pos_light_view_0;varying vec4 v_pos_light_view_1;varying float v_depth;\n#endif\nvoid main() {vec4 color=texture2D(u_image0,v_pos0);\n#ifdef RENDER_SHADOWS\ncolor.xyz=shadowed_color(color.xyz,v_pos_light_view_0,v_pos_light_view_1,v_depth);\n#endif\n#ifdef FOG\n#ifdef ZERO_EXAGGERATION\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#else\ncolor=fog_dither(fog_apply_from_vert(color,v_fog_opacity));\n#endif\n#endif\ngl_FragColor=color;\n#ifdef TERRAIN_WIREFRAME\ngl_FragColor=vec4(1.0,0.0,0.0,0.8);\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform float u_skirt_height;attribute vec2 a_pos;varying vec2 v_pos0;\n#ifdef FOG\nvarying float v_fog_opacity;\n#endif\n#ifdef RENDER_SHADOWS\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;varying vec4 v_pos_light_view_0;varying vec4 v_pos_light_view_1;varying float v_depth;\n#endif\nconst float wireframeOffset=0.00015;void main() {vec3 decomposedPosAndSkirt=decomposeToPosAndSkirt(a_pos);float skirt=decomposedPosAndSkirt.z;vec2 decodedPos=decomposedPosAndSkirt.xy;float elevation=elevation(decodedPos)-skirt*u_skirt_height;\n#ifdef TERRAIN_WIREFRAME\nelevation+=wireframeOffset;\n#endif\nv_pos0=decodedPos/8192.0;gl_Position=u_matrix*vec4(decodedPos,elevation,1.0);\n#ifdef FOG\n#ifdef ZERO_EXAGGERATION\nv_fog_pos=fog_position(decodedPos);\n#else\nv_fog_opacity=fog(fog_position(vec3(decodedPos,elevation)));\n#endif\n#endif\n#ifdef RENDER_SHADOWS\nvec3 pos=vec3(decodedPos,elevation);v_pos_light_view_0=u_light_matrix_0*vec4(pos,1.);v_pos_light_view_1=u_light_matrix_1*vec4(pos,1.);v_depth=gl_Position.w;\n#endif\n}"),terrainDepth:tL("#ifdef GL_ES\nprecision highp float;\n#endif\nvarying float v_depth;void main() {gl_FragColor=pack_depth(v_depth);}","uniform mat4 u_matrix;attribute vec2 a_pos;varying float v_depth;void main() {float elevation=elevation(a_pos);gl_Position=u_matrix*vec4(a_pos,elevation,1.0);v_depth=gl_Position.z/gl_Position.w;}"),skybox:tL("\nvarying lowp vec3 v_uv;uniform lowp samplerCube u_cubemap;uniform lowp float u_opacity;uniform highp float u_temporal_offset;uniform highp vec3 u_sun_direction;float sun_disk(highp vec3 ray_direction,highp vec3 sun_direction) {highp float cos_angle=dot(normalize(ray_direction),sun_direction);const highp float cos_sun_angular_diameter=0.99996192306;const highp float smoothstep_delta=1e-5;return smoothstep(\ncos_sun_angular_diameter-smoothstep_delta,cos_sun_angular_diameter+smoothstep_delta,cos_angle);}float map(float value,float start,float end,float new_start,float new_end) {return ((value-start)*(new_end-new_start))/(e
170nd-start)+new_start;}void main() {vec3 uv=v_uv;const float y_bias=0.015;uv.y+=y_bias;uv.y=pow(abs(uv.y),1.0/5.0);uv.y=map(uv.y,0.0,1.0,-1.0,1.0);vec3 sky_color=textureCube(u_cubemap,uv).rgb;\n#ifdef FOG\nsky_color=fog_apply_sky_gradient(v_uv.xzy,sky_color);\n#endif\nsky_color.rgb=dither(sky_color.rgb,gl_FragCoord.xy+u_temporal_offset);sky_color+=0.1*sun_disk(v_uv,u_sun_direction);gl_FragColor=vec4(sky_color*u_opacity,u_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",tk),skyboxGradient:tL("varying highp vec3 v_uv;uniform lowp sampler2D u_color_ramp;uniform highp vec3 u_center_direction;uniform lowp float u_radius;uniform lowp float u_opacity;uniform highp float u_temporal_offset;void main() {float progress=acos(dot(normalize(v_uv),u_center_direction))/u_radius;vec4 color=texture2D(u_color_ramp,vec2(progress,0.5));\n#ifdef FOG\ncolor.rgb=fog_apply_sky_gradient(v_uv.xzy,color.rgb/color.a)*color.a;\n#endif\ncolor*=u_opacity;color.rgb=dither(color.rgb,gl_FragCoord.xy+u_temporal_offset);gl_FragColor=color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",tk),skyboxCapture:tL
vendor: 3,851 bytes, line 170
170("\nvarying highp vec3 v_position;uniform highp float u_sun_intensity;uniform highp float u_luminance;uniform lowp vec3 u_sun_direction;uniform highp vec4 u_color_tint_r;uniform highp vec4 u_color_tint_m;\n#ifdef GL_ES\nprecision highp float;\n#endif\n#define BETA_R vec3(5.5e-6,13.0e-6,22.4e-6)\n#define BETA_M vec3(21e-6,21e-6,21e-6)\n#define MIE_G 0.76\n#define DENSITY_HEIGHT_SCALE_R 8000.0\n#define DENSITY_HEIGHT_SCALE_M 1200.0\n#define PLANET_RADIUS 6360e3\n#define ATMOSPHERE_RADIUS 6420e3\n#define SAMPLE_STEPS 10\n#define DENSITY_STEPS 4\nfloat ray_sphere_exit(vec3 orig,vec3 dir,float radius) {float a=dot(dir,dir);float b=2.0*dot(dir,orig);float c=dot(orig,orig)-radius*radius;float d=sqrt(b*b-4.0*a*c);return (-b+d)/(2.0*a);}vec3 extinction(vec2 density) {return exp(-vec3(BETA_R*u_color_tint_r.a*density.x+BETA_M*u_color_tint_m.a*density.y));}vec2 local_density(vec3 point) {float height=max(length(point)-PLANET_RADIUS,0.0);float exp_r=exp(-height/DENSITY_HEIGHT_SCALE_R);float exp_m=exp(-height/DENSITY_HEIGHT_SCALE_M);return vec2(exp_r,exp_m);}float phase_ray(float cos_angle) {return (3.0/(16.0*PI))*(1.0+cos_angle*cos_angle);}float phase_mie(float cos_angle) {return (3.0/(8.0*PI))*((1.0-MIE_G*MIE_G)*(1.0+cos_angle*cos_angle))/((2.0+MIE_G*MIE_G)*pow(1.0+MIE_G*MIE_G-2.0*MIE_G*cos_angle,1.5));}vec2 density_to_atmosphere(vec3 point,vec3 light_dir) {float ray_len=ray_sphere_exit(point,light_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(DENSITY_STEPS);vec2 density_point_to_atmosphere=vec2(0.0);for (int i=0; i < DENSITY_STEPS;++i) {vec3 point_on_ray=point+light_dir*((float(i)+0.5)*step_len);density_point_to_atmosphere+=local_density(point_on_ray)*step_len;;}return density_point_to_atmosphere;}vec3 atmosphere(vec3 ray_dir,vec3 sun_direction,float sun_intensity) {vec2 density_orig_to_point=vec2(0.0);vec3 scatter_r=vec3(0.0);vec3 scatter_m=vec3(0.0);vec3 origin=vec3(0.0,PLANET_RADIUS,0.0);float ray_len=ray_sphere_exit(origin,ray_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(SAMPLE_STEPS);for (int i=0; i < SAMPLE_STEPS;++i) {vec3 point_on_ray=origin+ray_dir*((float(i)+0.5)*step_len);vec2 density=local_density(point_on_ray)*step_len;density_orig_to_point+=density;vec2 density_point_to_atmosphere=density_to_atmosphere(point_on_ray,sun_direction);vec2 density_orig_to_atmosphere=density_orig_to_point+density_point_to_atmosphere;vec3 extinction=extinction(density_orig_to_atmosphere);scatter_r+=density.x*extinction;scatter_m+=density.y*extinction;}float cos_angle=dot(ray_dir,sun_direction);float phase_r=phase_ray(cos_angle);float phase_m=phase_mie(cos_angle);vec3 beta_r=BETA_R*u_color_tint_r.rgb*u_color_tint_r.a;vec3 beta_m=BETA_M*u_color_tint_m.rgb*u_color_tint_m.a;return (scatter_r*phase_r*beta_r+scatter_m*phase_m*beta_m)*sun_intensity;}const float A=0.15;const float B=0.50;const float C=0.10;const float D=0.20;const float E=0.02;const float F=0.30;vec3 uncharted2_tonemap(vec3 x) {return ((x*(A*x+C*B)+D*E)/(x*(A*x+B)+D*F))-E/F;}void main() {vec3 ray_direction=v_position;ray_direction.y=pow(ray_direction.y,5.0);const float y_bias=0.015;ray_direction.y+=y_bias;vec3 color=atmosphere(normalize(ray_direction),u_sun_direction,u_sun_intensity);float white_scale=1.0748724675633854;color=uncharted2_tonemap((log2(2.0/pow(u_luminance,4.0)))*color)*white_scale;gl_FragColor=vec4(color,1.0);}","attribute highp vec3 a_pos_3f;uniform mat3 u_matrix_3f;varying highp vec3 v_position;float map(float value,float start,float end,float new_start,float new_end) {return ((value-start)*(new_end-new_start))/(end-start)+new_start;}void main() {vec4 pos=vec4(u_matrix_3f*a_pos_3f,1.0);v_position=pos.xyz;v_position.y*=-1.0;v_position.y=map(v_position.y,-1.0,1.0,0.0,1.0);gl_Position=vec4(a_pos_3f.xy,0.0,1.0);}"),globeRaster:
170tL("uniform sampler2D u_image0;varying vec2 v_pos0;\n#ifndef FOG\nuniform highp vec3 u_frustum_tl;uniform highp vec3 u_frustum_tr;uniform highp vec3 u_frustum_br;uniform highp vec3 u_frustum_bl;uniform highp vec3 u_globe_pos;uniform highp float u_globe_radius;uniform vec2 u_viewport;\n#endif\nvoid main() {vec4 color;\n#ifdef CUSTOM_ANTIALIASING\nvec2 uv=gl_FragCoord.xy/u_viewport;highp vec3 ray_dir=mix(\nmix(u_frustum_tl,u_frustum_tr,uv.x),mix(u_frustum_bl,u_frustum_br,uv.x),1.0-uv.y);vec3 dir=normalize(ray_dir);vec3 closest_point=dot(u_globe_pos,dir)*dir;float norm_dist_from_center=1.0-length(closest_point-u_globe_pos)/u_globe_radius;const float antialias_pixel=2.0;float antialias_factor=antialias_pixel*fwidth(norm_dist_from_center);float antialias=smoothstep(0.0,antialias_factor,norm_dist_from_center);vec4 raster=texture2D(u_image0,v_pos0);color=vec4(raster.rgb*antialias,raster.a*antialias);\n#else\ncolor=texture2D(u_image0,v_pos0);\n#endif\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#endif\ngl_FragColor=color;\n#ifdef TERRAIN_WIREFRAME\ngl_FragColor=vec4(1.0,0.0,0.0,0.8);\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_proj_matrix;uniform mat4 u_normalize_matrix;uniform mat4 u_globe_matrix;uniform mat4 u_merc_matrix;uniform float u_zoom_transition;uniform vec2 u_merc_center;uniform mat3 u_grid_matrix;uniform float u_skirt_height;\n#ifdef GLOBE_POLES\nattribute vec3 a_globe_pos;attribute vec2 a_uv;\n#else\nattribute vec2 a_pos;\n#endif\nvarying vec2 v_pos0;const float wireframeOffset=1e3;float mercatorXfromLng(float lng) {return (180.0+lng)/360.0;}float mercatorYfromLat(float lat) {return (180.0-(RAD_TO_DEG*log(tan(QUARTER_PI+lat/2.0*DEG_TO_RAD))))/360.0;}vec3 latLngToECEF(vec2 latLng) {latLng=DEG_TO_RAD*latLng;float cosLat=cos(latLng[0]);float sinLat=sin(latLng[0]);float cosLng=cos(latLng[1]);float sinLng=sin(latLng[1]);float sx=cosLat*sinLng*GLOBE_RADIUS;float sy=-sinLat*GLOBE_RADIUS;float sz=cosLat*cosLng*GLOBE_RADIUS;return vec3(sx,sy,sz);}void main() {\n#ifdef GLOBE_POLES\nvec3 globe_pos=a_globe_pos;vec2 uv=a_uv;\n#else\nfloat tiles=u_grid_matrix[0][2];float idx=u_grid_matrix[1][2];float idy=u_grid_matrix[2][2];vec3 decomposed_pos_and_skirt=decomposeToPosAndSkirt(a_pos);vec3 latLng=u_grid_matrix*vec3(decomposed_pos_and_skirt.xy,1.0);float mercatorY=mercatorYfromLat(latLng[0]);float uvY=mercatorY*tiles-idy;float mercatorX=mercatorXfromLng(latLng[1]);float uvX=mercatorX*tiles-idx;vec3 globe_pos=latLngToECEF(latLng.xy);vec2 merc_pos=vec2(mercatorX,mercatorY);vec2 uv=vec2(uvX,uvY);\n#endif\nv_pos0=uv;vec2 tile_pos=uv*EXTENT;vec3 globe_derived_up_vector=normalize(globe_pos)*u_tile_up_scale;\n#ifdef GLOBE_POLES\nvec3 up_vector=globe_derived_up_vector;\n#else\nvec3 up_vector=elevationVector(tile_pos);\n#endif\nfloat height=elevation(tile_pos);\n#ifdef TERRAIN_WIREFRAME\nheight+=wireframeOffset;\n#endif\nglobe_pos+=up_vector*height;\n#ifndef GLOBE_POLES\nglobe_pos-=globe_derived_up_vector*u_skirt_height*decomposed_pos_and_skirt.z;\n#endif\n#ifdef GLOBE_POLES\nvec4 interpolated_pos=u_globe_matrix*vec4(globe_pos,1.0);\n#else\nvec4 globe_world_pos=u_globe_matrix*vec4(globe_pos,1.0);vec4 merc_world_pos=vec4(0.0);if (u_zoom_transition > 0.0) {merc_world_pos=vec4(merc_pos,height-u_skirt_height*decomposed_pos_and_skirt.z,1.0);merc_world_pos.xy-=u_merc_center;merc_world_pos.x=wrap(merc_world_pos.x,-0.5,0.5);merc_world_pos=u_merc_matrix*merc_world_pos;}vec4 interpolated_pos=vec4(mix(globe_world_pos.xyz,merc_world_pos.xyz,u_zoom_transition),1.0);\n#endif\ngl_Position=u_proj_matrix*interpolated_pos;\n#ifdef FOG\nv_fog_pos=fog_position((u_normalize_matrix*vec4(globe_pos,1.0)).xyz);\n#endif\n}"),globeAtmosphere:tL("uniform float u_transition;uniform highp float u_fadeout_range;uniform highp float u_temporal_offset;uniform vec3 u_start_color;uniform vec4 u_color;uniform vec4 u_space_color;uniform vec4 u_high_color;uniform float u_star_intensity;uniform float u_star_size;uniform float u_star_density;uniform float u_horizon_angle;uniform mat4 u_rotation_matrix;varying highp vec3 v_ray_dir;varying highp vec3 v_horizon_dir;
170highp float random(highp vec3 p) {p=fract(p*vec3(23.2342,97.1231,91.2342));p+=dot(p.zxy,p.yxz+123.1234);return fract(p.x*p.y);}float stars(vec3 p,float scale,vec2 offset) {vec2 uv_scale=(u_viewport/u_star_size)*scale;vec3 position=vec3(p.xy*uv_scale+offset*u_viewport,p.z);vec3 q=fract(position)-0.5;vec3 id=floor(position);float random_visibility=step(random(id),u_star_density);float circle=smoothstep(0.5+u_star_intensity,0.5,length(q));return circle*random_visibility;}void main() {highp vec3 dir=normalize(v_ray_dir);float globe_pos_dot_dir;\n#ifdef PROJECTION_GLOBE_VIEW\nglobe_pos_dot_dir=dot(u_globe_pos,dir);highp vec3 closest_point_forward=abs(globe_pos_dot_dir)*dir;float norm_dist_from_center=length(closest_point_forward-u_globe_pos)/u_globe_radius;if (norm_dist_from_center < 0.98) {discard;return;}\n#endif\nhighp vec3 horizon_dir=normalize(v_horizon_dir);float horizon_angle_mercator=dir.y < horizon_dir.y ?\n0.0 : max(acos(dot(dir,horizon_dir)),0.0);float horizon_angle;\n#ifdef PROJECTION_GLOBE_VIEW\nhighp vec3 closest_point=globe_pos_dot_dir*dir;float closest_point_to_center=length(closest_point-u_globe_pos);float theta=asin(clamp(closest_point_to_center/length(u_globe_pos),-1.0,1.0));horizon_angle=globe_pos_dot_dir < 0.0 ?\nPI-theta-u_horizon_angle : theta-u_horizon_angle;float angle_t=pow(u_transition,10.0);horizon_angle=mix(horizon_angle,horizon_angle_mercator,angle_t);\n#else\nhorizon_angle=horizon_angle_mercator;\n#endif\nhorizon_angle/=PI;float t=exp(-horizon_angle/u_fadeout_range);float alpha_0=u_color.a;float alpha_1=u_high_color.a;float alpha_2=u_space_color.a;vec3 color_stop_0=u_color.rgb;vec3 color_stop_1=u_high_color.rgb;vec3 color_stop_2=u_space_color.rgb;vec3 c0=mix(color_stop_2,color_stop_1,alpha_1);vec3 c1=mix(c0,color_stop_0,alpha_0);vec3 c2=mix(c0,c1,t);vec3 c =mix(color_stop_2,c2,t);float a0=mix(alpha_2,1.0,alpha_1);float a1=mix(a0,1.0,alpha_0);float a2=mix(a0,a1,t);float a =mix(alpha_2,a2,t);vec2 uv=gl_FragCoord.xy/u_viewport-0.5;float aspect_ratio=u_viewport.x/u_viewport.y;vec4 uv_dir=vec4(normalize(vec3(uv.x*aspect_ratio,uv.y,1.0)),1.0);uv_dir=u_rotation_matrix*uv_dir;vec3 n=abs(uv_dir.xyz);vec2 uv_remap=(n.x > n.y && n.x > n.z) ? uv_dir.yz/uv_dir.x:\n(n.y > n.x && n.y > n.z) ? uv_dir.zx/uv_dir.y:\nuv_dir.xy/uv_dir.z;uv_remap.x/=aspect_ratio;vec3 D=vec3(uv_remap,1.0);highp float star_field=0.0;if (u_star_intensity > 0.0) {star_field+=stars(D,1.2,vec2(0.0,0.0));star_field+=stars(D,1.0,vec2(1.0,0.0));star_field+=stars(D,0.8,vec2(0.0,1.0));star_field+=stars(D,0.6,vec2(1.0,1.0));star_field*=(1.0-pow(t,0.25+(1.0-u_high_color.a)*0.75));c+=star_field*alpha_2;}c=dither(c,gl_FragCoord.xy+u_temporal_offset);gl_FragColor=vec4(c,a);}","attribute vec3 a_pos;attribute vec2 a_uv;uniform vec3 u_frustum_tl;uniform vec3 u_frustum_tr;uniform vec3 u_frustum_br;uniform vec3 u_frustum_bl;uniform float u_horizon;varying highp vec3 v_ray_dir;varying highp vec3 v_horizon_dir;void main() {v_ray_dir=mix(\nmix(u_frustum_tl,u_frustum_tr,a_uv.x),mix(u_frustum_bl,u_frustum_br,a_uv.x),a_uv.y);v_horizon_dir=mix(\nmix(u_frustum_tl,u_frustum_bl,u_horizon),mix(u_frustum_tr,u_frustum_br,u_horizon),a_uv.x);gl_Position=vec4(a_pos,1.0);}")};function tD(r,n){let i=r.replace(/\s*\/\/[^\n]*\n/g,"\n").split("\n");for(let r of i)if("#"===(r=r.trim())[0]&&r.includes("if")&&!r.includes("endif")){r=r.replace("#","").replace(/ifdef|ifndef|elif|if/g,"").replace(/!|defined|\(|\)|\|\||&&/g,"").replace(/\s+/g," ").trim();let i=r.split(" ");for(let r of i)n.includes(r)||n.push(r)}}function tL(r,n){let i=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,o=n.match(/attribute (highp |mediump |lowp )?([\w]+) ([\w]+)/g),a={},s=[...tM];return tD(r,s),tD(n,s),{fragmentSource:r=r.replace(i,(r,n,i,o,s)=>(a[s]=!0,"define"===n?` 171#ifndef HAS_UNIFORM_u_${s} 172varying ${i} ${o} ${s}; 173#else 174uniform ${i} ${o} u_${s}; 175#endif 176`:` 177#ifdef HAS_UNIFORM_u_${s} 178 ${i} ${o} ${s} = u_${s}; 179#endif 180`)),vertexSource:n=n.replace(i,(r,n,i,o,s)=>{let l="float"===o?"vec2":"vec4",c=s.match(/color/)?"color":l;return a[s]?"define"===n?` 181#ifndef HAS_UNIFORM_u_${s} 182uniform lowp float u_${s}_t; 183attribute ${i} ${l} a_${s}; 184varying ${i} ${o} ${s}; 185#else 186uniform ${i} ${o} u_${s}; 187#endif 188`:"vec4"===c?` 189#ifndef HAS_UNIFORM_u_${s} 190 ${s} = a_${s}; 191#else 192 ${i} ${o} ${s} = u_${s}; 193#endif 194`:` 195#ifndef HAS_UNIFORM_u_${s} 196 ${s} = unpack_mix_${c}(a_${s}, u_${s}_t); 197#else 198 ${i} ${o} ${s} = u_${s}; 199#endif 200`:"define"===n?` 201#ifndef HAS_UNIFORM_u_${s} 202uniform lowp float u_${s}_t; 203attribute ${i} ${l} a_${s}; 204#else 205uniform ${i} ${o} u_${s}; 206#endif 207`:"vec4"===c?` 208#ifndef HAS_UNIFORM_u_${s} 209 ${i} ${o} ${s} = a_${s}; 210#else 211 ${i} ${o} ${s} = u_${s}; 212#endif 213`:` 214#ifndef HAS_UNIFORM_u_${s} 215 ${i} ${o} ${s} = unpack_mix_${c}(a_${s}, u_${s}_t); 216#else 217 ${i} ${o} ${s} = u_${s}; 218#endif 219`}),staticAttributes:o,usedDefines:s}}class tz{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffers=[],this.vao=null}bind(r,n,i,o,a,s,l){this.context=r;let c=this.boundPaintVertexBuffers.length!==o.length;for(let r=0;!c&&r<o.length;r++)this.boundPaintVertexBuffers[r]!==o[r]&&(c=!0);let u=this.boundDynamicVertexBuffers.length!==l.length;for(let r=0;!u&&r<l.length;r++)this.boundDynamicVertexBuffers[r]!==l[r]&&(u=!0);if(!r.extVertexArrayObject||!this.vao||this.boundProgram!==n||this.boundLayoutVertexBuffer!==i||c||u||this.boundIndexBuffer!==a||this.boundVertexOffset!==s)this.freshBind(n,i,o,a,s,l);else{for(let n of(r.bindVertexArrayOES.set(this.vao),l))n&&n.bind();a&&a.dynamicDraw&&a.bind()}}freshBind(r,n,i,o,a,s){let l;
219let c=r.numAttributes,u=this.context,d=u.gl;if(u.extVertexArrayObject)this.vao&&this.destroy(),this.vao=u.extVertexArrayObject.createVertexArrayOES(),u.bindVertexArrayOES.set(this.vao),l=0,this.boundProgram=r,this.boundLayoutVertexBuffer=n,this.boundPaintVertexBuffers=i,this.boundIndexBuffer=o,this.boundVertexOffset=a,this.boundDynamicVertexBuffers=s;else{l=u.currentNumAttributes||0;for(let r=c;r<l;r++)d.disableVertexAttribArray(r)}for(let o of(n.enableAttributes(d,r),n.bind(),n.setVertexAttribPointers(d,r,a),i))o.enableAttributes(d,r),o.bind(),o.setVertexAttribPointers(d,r,a);for(let n of s)n&&(n.enableAttributes(d,r),n.bind(),n.setVertexAttribPointers(d,r,a));o&&o.bind(),u.currentNumAttributes=c}destroy(){this.vao&&(this.context.extVertexArrayObject.deleteVertexArrayOES(this.vao),this.vao=null)}}function tB(n,i,o){if(!i.needsDEMTextureUpload)return;let a=n.context,s=a.gl;a.pixelStoreUnpackPremultiplyAlpha.set(!1),i.demTexture=i.demTexture||n.getTileTexture(o.stride);let l=o.getPixels();i.demTexture?i.demTexture.update(l,{premultiply:!1}):i.demTexture=new r.Texture(a,l,s.RGBA,{premultiply:!1}),i.needsDEMTextureUpload=!1}let tF=n=>({u_matrix:new r.UniformMatrix4f(n),u_image0:new r.Uniform1i(n),u_skirt_height:new r.Uniform1f(n)}),tN=(r,n)=>({u_matrix:r,u_image0:0,u_skirt_height:n}),tU=(r,n,i,o,a,s,l,c,u,d,h,p,f,m,g)=>({u_proj_matrix:Float32Array.from(r),u_globe_matrix:n,u_normalize_matrix:Float32Array.from(o),u_merc_matrix:i,u_zoom_transition:a,u_merc_center:s,u_image0:0,u_frustum_tl:l,u_frustum_tr:c,u_frustum_br:u,u_frustum_bl:d,u_globe_pos:h,u_globe_radius:p,u_viewport:f,u_grid_matrix:g?Float32Array.from(g):new Float32Array(9),u_skirt_height:m});function tV(r,n){return null!=r&&null!=n&&!(!r.hasData()||!n.hasData())&&null!=r.demTexture&&null!=n.demTexture&&r.tileID.key!==n.tileID.key}let tq=new class{constructor(){this.operations={}}newMorphing(r,n,i,o,a){if(r in this.operations){let n=this.operations[r];n.to.tileID.key!==i.tileID.key&&(n.queued=i)}else this.operations[r]={startTime:o,phase:0,duration:a,from:n,to:i,queued:null}}getMorphValuesForProxy(r){if(!(r in this.operations))return null;let n=this.operations[r];return{from:n.from,to:n.to,phase:n.phase}}update(r){for(let n in this.operations){let i=this.operations[n];for(i.phase=(r-i.startTime)/i.duration;i.phase>=1||!this._validOp(i);)if(!this._nextOp(i,r)){delete this.operations[n];break}}}_nextOp(r,n){return!!r.queued&&(r.from=r.to,r.to=r.queued,r.queued=null,r.phase=0,r.startTime=n,!0)}_validOp(r){return r.from.hasData()&&r.to.hasData()}},t$={0:null,1:"TERRAIN_VERTEX_MORPHING",2:"TERRAIN_WIREFRAME"};function tG(r){return 6*Math.pow(1.5,22-r)}let tW=r=>({u_matrix:r});function tH(n,i,o,a,s){if(s>0){let l=r.exported.now(),c=(l-n.timeAdded)/s,u=i?(l-i.timeAdded)/s:-1,d=o.getSource(),h=a.coveringZoomLevel({tileSize:d.tileSize,roundZoom:d.roundZoom}),p=!i||Math.abs(i.tileID.overscaledZ-h)>Math.abs(n.tileID.overscaledZ-h),f=p&&n.refreshedUponExpiration?1:r.clamp(p?c:1-u,0,1);return n.refreshedUponExpiration&&c>=1&&(n.refreshedUponExpiration=!1),i?{opacity:1,mix:1-f}:{opacity:f,mix:0}}return{opacity:1,mix:0}}class tX extends r.SourceCache{constructor(r){let n={type:"raster-dem",maxzoom:r.transform.maxZoom},i=new A(eD(),null),o=eA("mock-dem",n,i,r.style);super("mock-dem",o,!1),o.setEventedParent(this),this._sourceLoaded=!0}_loadTile(r,n){r.state="loaded",n(null)}}class tY extends r.SourceCache{constructor(r){let n=eA("proxy",{type:"geojson",maxzoom:r.transform.maxZoom},new A(eD(),null),r.style);super("proxy",n,!1),n.setEventedParent(this),this.map=this.getSource().map=r,this.used=this._sourceLoaded=!0,this.renderCache=[],this.renderCachePool=[],this.proxyCachedFBO={}}update(n,i,o){if(n.freezeTileCoverage)return;this.transform=n;let a=n.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}).reduce((i,o)=>
219{if(i[o.key]="",!this._tiles[o.key]){let i=new r.Tile(o,this._source.tileSize*o.overscaleFactor(),n.tileZoom);i.state="loaded",this._tiles[o.key]=i}return i},{});for(let r in this._tiles)r in a||(this.freeFBO(r),this._tiles[r].unloadVectorData(),delete this._tiles[r])}freeFBO(r){let n=this.proxyCachedFBO[r];if(void 0!==n){let i=Object.values(n);this.renderCachePool.push(...i),delete this.proxyCachedFBO[r]}}deallocRenderCache(){this.renderCache.forEach(r=>r.fb.destroy()),this.renderCache=[],this.renderCachePool=[],this.proxyCachedFBO={}}}class tK extends r.OverscaledTileID{constructor(r,n,i){super(r.overscaledZ,r.wrap,r.canonical.z,r.canonical.x,r.canonical.y),this.proxyTileKey=n,this.projMatrix=i}}class tJ extends r.Elevation{constructor(n,i){super(),this.painter=n,this.terrainTileForTile={},this.prevTerrainTileForTile={};let[o,a,s]=function(n){let i=new r.StructArrayLayout2i4,o=new r.StructArrayLayout3ui6;i.reserve(17161),o.reserve(33800);let a=r.EXTENT/128,s=r.EXTENT+a/2,l=s+a;for(let n=-a;n<l;n+=a)for(let o=-a;o<l;o+=a){let a=o<0||o>s||n<0||n>s?24575:0,l=r.clamp(Math.round(o),0,r.EXTENT),c=r.clamp(Math.round(n),0,r.EXTENT);i.emplaceBack(l+a,c)}let c=(r,n)=>{let i=131*n+r;o.emplaceBack(i+1,i,i+131),o.emplaceBack(i+131,i+131+1,i+1)};for(let r=1;r<129;r++)for(let n=1;n<129;n++)c(n,r);return[0,129].forEach(r=>{for(let n=0;n<130;n++)c(n,r),c(r,n)}),[i,o,32768]}(),l=n.context;this.gridBuffer=l.createVertexBuffer(o,r.posAttributes.members),this.gridIndexBuffer=l.createIndexBuffer(a),this.gridSegments=r.SegmentVector.simpleSegment(0,0,o.length,a.length),this.gridNoSkirtSegments=r.SegmentVector.simpleSegment(0,0,o.length,s),this.proxyCoords=[],this.proxiedCoords={},this._visibleDemTiles=[],this._drapedRenderBatches=[],this._sourceTilesOverlap={},this.proxySourceCache=new tY(i.map),this.orthoMatrix=r.create(),r.ortho(this.orthoMatrix,"globe"===this.painter.transform.projection.name?.015:0,r.EXTENT,0,r.EXTENT,0,1);let c=l.gl;this._overlapStencilMode=new r.StencilMode({func:c.GEQUAL,mask:255},0,255,c.KEEP,c.KEEP,c.REPLACE),this._previousZoom=n.transform.zoom,this.pool=[],this._findCoveringTileCache={},this._tilesDirty={},this.style=i,this._useVertexMorphing=!0,this._exaggeration=1,this._mockSourceCache=new tX(i.map)}set style(r){r.on("data",this._onStyleDataEvent.bind(this)),r.on("neworder",this._checkRenderCacheEfficiency.bind(this)),this._style=r,this._checkRenderCacheEfficiency(),this._style.map.on("moveend",()=>{this._clearLineLayersFromRenderCache()})}update(n,i,o){if(n&&n.terrain){this._style!==n&&(this.style=n),this.enabled=!0;let a=n.terrain.properties;this.sourceCache=0===n.terrain.drapeRenderMode?this._mockSourceCache:n._getSourceCache(a.get("source")),this._exaggeration=a.get("exaggeration");let s=()=>{this.sourceCache.used&&r.warnOnce(`Raster DEM source '${this.sourceCache.id}' is used both for terrain and as layer source. 220This leads to lower resolution of hillshade. For full hillshade resolution but higher memory consumption, define another raster DEM source.`);let n=this.getScaledDemTileSize();this.sourceCache.update(i,n,!0),this.resetTileLookupCache(this.sourceCache.id)};this.sourceCache.usedForTerrain||(this.resetTileLookupCache(this.sourceCache.id),this.sourceCache.usedForTerrain=!0,s(),this._initializing=!0),s(),i.updateElevation(!0,o),this.resetTileLookupCache(this.proxySourceCache.id),this.proxySourceCache.update(i),this._emptyDEMTextureDirty=!0}else this._disable()}resetTileLookupCache(r){this._findCoveringTileCache[r]={}}getScaledDemTileSize(){return this.sourceCache.getSource().tileSize/128*this.proxySourceCache.getSource().tileSize}_checkRenderCacheEfficiency(){let n=this.renderCacheEfficiency(this._style);this._style.map._optimizeForTerrain||100!==n.efficiency&&r.warnOnce(`Terrain render cache efficiency is not optimal (${n.efficiency}%) and performance 221 may be affected negatively, consider placing all background, fill and line layers before layer 222 with id '${n.firstUndrapedLayer}' or create a map using optimizeForTerrain: true option.`)}_onStyleDataEvent(r){r.coord&&"source"===r.dataType?this._clearRenderCacheForTile(r.sourceCacheId,r.coord):"style"===r.dataType&&(this._invalidateRenderCache=!0)}_disable(){if(this.enabled&&(this.enabled=!1,this._sharedDepthStencil=void 0,this.proxySourceCache.deallocRenderCache(),this._style))for(let r in this._style._sourceCaches)this._style._sourceCaches[r].usedForTerrain=!1}destroy(){this._disable(),this._emptyDEMTexture&&this._emptyDEMTexture.destroy(),this._emptyDepthBufferTexture&&this._emptyDepthBufferTexture.destroy(),this.pool.forEach(r=>r.fb.destroy()),this.pool=[],this._depthFBO&&(this._depthFBO.destroy(),this._depthFBO=void 0,this._depthTexture=void 0)}_source(){return this.enabled?this.sourceCache:null}isUsingMockSource(){return this.sourceCache===this._mockSourceCache}exaggeration(){return this._exaggeration}get visibleDemTiles(){return this._visibleDemTiles}get drapeBufferSize(){let r=2*this.proxySourceCache.getSource().tileSize;return[r,r]}set useVertexMorphing(r){this._useVertexMorphing=r}updateTileBinding(n){if(!this.enabled)return;this.prevTerrainTileForTile=this.terrainTileForTile;let i=this.proxySourceCache,o=this.painter.transform;this._initializing&&(this._initializing=0===o._centerAltitude&&-1===this.getAtPointOrZero(r.MercatorCoordinate.fromLngLat(o.center),-1),this._emptyDEMTextureDirty=!this._initializing);let a=this.proxyCoords=i.getIds().map(r=>{let n=i.getTileByID(r).tileID;return n.projMatrix=o.calculateProjMatrix(n.toUnwrapped()),n});(function(n,i){let o=i.transform.pointCoordinate(i.transform.getCameraPoint()),a=new r.Point(o.x,o.y);n.sort((n,i)=>
222{if(i.overscaledZ-n.overscaledZ)return i.overscaledZ-n.overscaledZ;let o=new r.Point(n.canonical.x+(1<<n.canonical.z)*n.wrap,n.canonical.y),s=new r.Point(i.canonical.x+(1<<i.canonical.z)*i.wrap,i.canonical.y),l=a.mult(1<<n.canonical.z);return l.x-=.5,l.y-=.5,l.distSqr(o)-l.distSqr(s)})})(a,this.painter),this._previousZoom=o.zoom;let s=this.proxyToSource||{};this.proxyToSource={},a.forEach(r=>{this.proxyToSource[r.key]={}}),this.terrainTileForTile={};let l=this._style._sourceCaches;for(let r in l){let i=l[r];if(!i.used||(i!==this.sourceCache&&this.resetTileLookupCache(i.id),this._setupProxiedCoordsForOrtho(i,n[r],s),i.usedForTerrain))continue;let o=n[r];i.getSource().reparseOverscaled&&this._assignTerrainTiles(o)}this.proxiedCoords[i.id]=a.map(r=>new tK(r,r.key,this.orthoMatrix)),this._assignTerrainTiles(a),this._prepareDEMTextures(),this._setupDrapedRenderBatches(),this._initFBOPool(),this._setupRenderCache(s),this.renderingToTexture=!1,this._updateTimestamp=r.exported.now();let c={};for(let r of(this._visibleDemTiles=[],this.proxyCoords)){let n=this.terrainTileForTile[r.key];if(!n)continue;let i=n.tileID.key;i in c||(this._visibleDemTiles.push(n),c[i]=i)}}_assignTerrainTiles(r){this._initializing||r.forEach(r=>{if(this.terrainTileForTile[r.key])return;let n=this._findTileCoveringTileID(r,this.sourceCache);n&&(this.terrainTileForTile[r.key]=n)})}_prepareDEMTextures(){let r=this.painter.context,n=r.gl;for(let i in this.terrainTileForTile){let o=this.terrainTileForTile[i],a=o.dem;a&&(!o.demTexture||o.needsDEMTextureUpload)&&(r.activeTexture.set(n.TEXTURE1),tB(this.painter,o,a))}}_prepareDemTileUniforms(r,n,i,o){if(!n||null==n.demTexture)return!1;let a=r.tileID.canonical,s=Math.pow(2,n.tileID.canonical.z-a.z),l=o||"";return i[`u_dem_tl${l}`]=[a.x*s%1,a.y*s%1],i[`u_dem_scale${l}`]=s,!0}get emptyDEMTexture(){return!this._emptyDEMTextureDirty&&this._emptyDEMTexture?this._emptyDEMTexture:this._updateEmptyDEMTexture()}get emptyDepthBufferTexture(){let n=this.painter.context,i=n.gl;if(!this._emptyDepthBufferTexture){let o=new r.RGBAImage({width:1,height:1},Uint8Array.of(255,255,255,255));this._emptyDepthBufferTexture=new r.Texture(n,o,i.RGBA,{premultiply:!1})}return this._emptyDepthBufferTexture}_getLoadedAreaMinimum(){let r=0,n=this._visibleDemTiles.reduce((n,i)=>{if(!i.dem)return n;let o=i.dem.tree.minimums[0];return o>0&&r++,n+o},0);return r?n/r:0}_updateEmptyDEMTexture(){let n=this.painter.context,i=n.gl;n.activeTexture.set(i.TEXTURE2);let o=this._getLoadedAreaMinimum(),a=new r.RGBAImage({width:1,height:1},new Uint8Array(r.DEMData.pack(o,this.sourceCache.getSource().encoding)));this._emptyDEMTextureDirty=!1;let s=this._emptyDEMTexture;return s?s.update(a,{premultiply:!1}):s=this._emptyDEMTexture=new r.Texture(n,a,i.RGBA,{premultiply:!1}),s}setupElevationDraw(n,i,o){var a;let s=this.painter.context,l=s.gl,c=(a=this.sourceCache.getSource().encoding,{u_dem:2,u_dem_prev:4,u_dem_unpack:r.DEMData.getUnpackVector(a),u_dem_tl:[0,0],u_dem_tl_prev:[0,0],u_dem_scale:0,u_dem_scale_prev:0,u_dem_size:0,u_dem_lerp:1,u_depth:3,u_depth_size_inv:[0,0],u_exaggeration:0});c.u_dem_size=this.sourceCache.getSource().tileSize,c.u_exaggeration=this.exaggeration();let u=null,d=null,h=1;if(o&&o.morphing&&this._useVertexMorphing){let r=o.morphing.srcDemTile,i=o.morphing.dstDemTile;h=o.morphing.phase,r&&i&&(this._prepareDemTileUniforms(n,r,c,"_prev")&&(d=r),this._prepareDemTileUniforms(n,i,c)&&(u=i))}if(d&&u?(s.activeTexture.set(l.TEXTURE2),u.demTexture.bind(l.NEAREST,l.CLAMP_TO_EDGE,l.NEAREST),s.activeTexture.set(l.TEXTURE4),d.demTexture.bind(l.NEAREST,l.CLAMP_TO_EDGE,l.NEAREST),c.u_dem_lerp=h):(u=this.terrainTileForTile[n.tileID.key],s.activeTexture.set(l.TEXTURE2),(this._prepareDemTileUniforms(n,u,c)?u.demTexture:this.emptyDEMTexture).bind(l.NEAREST,l.CLAMP_TO_EDGE)),s.activeTexture.set(l.TEXTURE3),o&&o.useDepthForOcclusion?(this._depthTexture&&this._depthTexture.bind(l.NEAREST,l.CLAMP_TO_EDGE),this._depthFBO&&(c.u_depth_size_inv=[1/this._depthFBO.width,1/this._depthFBO.height])):(this.emptyDepthBufferTexture.bind(l.NEAREST,l.CLAMP_TO_EDGE),c.u_depth_size_inv=[1,1]),o&&o.useMeterToDem&&u){let n=(1<<u.tileID.canonical.z)*r.mercatorZfromAltitude(1,this.painter.transform.center.lat)*this.sourceCache.getSource().tileSize;c.u_meter_to_dem=n}
222if(o&&o.labelPlaneMatrixInv&&(c.u_label_plane_matrix_inv=o.labelPlaneMatrixInv),i.setTerrainUniformValues(s,c),"globe"===this.painter.transform.projection.name){let r=this.globeUniformValues(this.painter.transform,n.tileID.canonical,o&&o.useDenormalizedUpVectorScale);i.setGlobeUniformValues(s,r)}}globeUniformValues(n,i,o){let a=n.projection;return{u_tile_tl_up:a.upVector(i,0,0),u_tile_tr_up:a.upVector(i,r.EXTENT,0),u_tile_br_up:a.upVector(i,r.EXTENT,r.EXTENT),u_tile_bl_up:a.upVector(i,0,r.EXTENT),u_tile_up_scale:o?r.globeMetersToEcef(1):a.upVectorScale(i,n.center.lat,n.worldSize).metersToTile}}renderToBackBuffer(n){let i=this.painter,o=this.painter.context;0!==n.length&&(o.bindFramebuffer.set(null),o.viewport.set([0,0,i.width,i.height]),i.gpuTimingDeferredRenderStart(),this.renderingToTexture=!1,function(n,i,o,a,s){if("globe"===n.transform.projection.name)!function(n,i,o,a,s){let l,c;let u=n.context,d=u.gl,h=n.options.showTerrainWireframe?2:0,p=n.transform,f=r.globeUseCustomAntiAliasing(n,u,p),m=(r,i)=>{if(c===r)return;let o=[t$[r],"PROJECTION_GLOBE_VIEW"];f&&o.push("CUSTOM_ANTIALIASING"),i&&o.push(t$[h]),l=n.useProgram("globeRaster",null,o),c=r},g=n.colorModeForRenderPass(),v=new r.DepthMode(d.LEQUAL,r.DepthMode.ReadWrite,n.depthRangeFor3D);tq.update(s);let y=r.calculateGlobeMercatorMatrix(p),b=[r.mercatorXfromLng(p.center.lng),r.mercatorYfromLat(p.center.lat)],x=n.globeSharedBuffers,_=[p.width*r.exported.devicePixelRatio,p.height*r.exported.devicePixelRatio],w=Float32Array.from(p.globeMatrix),S={useDenormalizedUpVectorScale:!0};if((h?[!1,!0]:[!1]).forEach(h=>{let p=n.transform,f=tG(p.zoom)*i.exaggeration();c=-1;let T=h?d.LINES:d.TRIANGLES;for(let c of a){let a=o.getTile(c),E=r.StencilMode.disabled,k=i.prevTerrainTileForTile[c.key],C=i.terrainTileForTile[c.key];tV(k,C)&&tq.newMorphing(c.key,k,C,s,250),u.activeTexture.set(d.TEXTURE0),a.texture.bind(d.LINEAR,d.CLAMP_TO_EDGE);let P=tq.getMorphValuesForProxy(c.key),O=P?1:0;P&&r.extend$1(S,{morphing:{srcDemTile:P.from,dstDemTile:P.to,phase:r.easeCubicInOut(P.phase)}});let j=r.tileCornersToBounds(c.canonical),A=r.getLatitudinalLod(j.getCenter().lat),M=r.getGridMatrix(c.canonical,j,A,p.worldSize/p._pixelsPerMercatorPixel),I=r.globeNormalizeECEF(r.globeTileBounds(c.canonical)),Z=tU(p.projMatrix,w,y,I,r.globeToMercatorTransition(p.zoom),b,p.frustumCorners.TL,p.frustumCorners.TR,p.frustumCorners.BR,p.frustumCorners.BL,p.globeCenterInViewSpace,p.globeRadius,_,f,M);if(m(O,h),i.setupElevationDraw(a,l,S),n.prepareDrawProgram(u,l,c.toUnwrapped()),x){let[i,o,a]=h?x.getWirefameBuffers(n.context,A):x.getGridBuffers(A,0!==f);l.draw(u,T,v,E,g,r.CullFaceMode.backCCW,Z,"globe_raster",i,o,a)}}}),x){let s=["GLOBE_POLES","PROJECTION_GLOBE_VIEW"];for(let c of(f&&s.push("CUSTOM_ANTIALIASING"),l=n.useProgram("globeRaster",null,s),a)){let{x:a,y:s,z:h}=c.canonical,f=0===s,m=s===(1<<h)-1,[y,w,T,E]=x.getPoleBuffers(h);if(E&&(f||m)){let s=o.getTile(c);u.activeTexture.set(d.TEXTURE0),s.texture.bind(d.LINEAR,d.CLAMP_TO_EDGE);let x=r.globePoleMatrixForTile(h,a,p),k=r.globeNormalizeECEF(r.globeTileBounds(c.canonical)),C=(n,i)=>n.draw(u,d.TRIANGLES,v,r.StencilMode.disabled,g,r.CullFaceMode.disabled,tU(p.projMatrix,x,x,k,0,b,p.frustumCorners.TL,p.frustumCorners.TR,p.frustumCorners.BR,p.frustumCorners.BL,p.globeCenterInViewSpace,p.globeRadius,_,0),"globe_pole_raster",i,T,E);i.setupElevationDraw(s,l,S),n.prepareDrawProgram(u,l,c.toUnwrapped()),f&&C(l,y),m&&(x=r.scale(r.create(),x,[1,-1,1]),C(l,w))}}}}(n,i,o,a,s);else{let l,c;let u=n.context,d=u.gl,h=n.options.showTerrainWireframe?2:0,p=(r,i)=>{if(c===r)return;let o=[t$[r]];i&&o.push(t$[h]),l=n.useProgram("terrainRaster",null,o),c=r},f=n.colorModeForRenderPass(),m=new r.DepthMode(d.LEQUAL,r.DepthMode.ReadWrite,n.depthRangeFor3D);tq.update(s);let g=n.transform,v=tG(g.zoom)*i.exaggeration();(h?[!1,!0]:[!1]).forEach(h=>{c=-1;let y=h?d.LINES:d.TRIANGLES,[b,x]=h?i.getWirefameBuffer():[i.gridIndexBuffer,i.gridSegments];for(let c of a){let a;let _=o.getTile(c),w=r.StencilMode.disabled,S=i.prevTerrainTileForTile[c.key],T=i.terrainTileForTile[c.key];tV(S,T)&&tq.newMorphing(c.key,S,T,s,250),u.activeTexture.set(d.TEXTURE0),_.texture.bind(d.LINEAR,d.CLAMP_TO_EDGE,d.LINEAR_MIPMAP_NEAREST);let E=tq.getMorphValuesForProxy(c.key),k=E?1:0;E&&(a={morphing:{srcDemTile:E.from,dstDemTile:E.to,phase:r.easeCubicInOut(E.phase)}});let C=tN(c.projMatrix,!function(r,n){let i=1<<r.z;return!n&&(0===r.x||r.x===i-1)||0===r.y||r.y===i-1}(c.canonical,g.renderWorldCopies)?v:v/10);p(k,h),i.setupElevationDraw(_,l,a),n.prepareDrawProgram(u,l,c.toUnwrapped()),l.draw(u,y,m,w,f,r.CullFaceMode.backCCW,C,"terrain_raster",i.gridBuffer,b,x)}})}}(i,this,this.proxySourceCache,n,this._updateTimestamp),this.renderingToTexture=!0,i.gpuTimingDeferredRenderEnd(),n.splice(0,n.length))}renderBatch(n){if(0===this._drapedRenderBatches.length)return n+1;this.renderingToTexture=!0;let i=this.painter,o=this.painter.context,a=this.proxySourceCache,s=this.proxiedCoords[a.id],l=this._drapedRenderBatches.shift(),c=[],u=i.style.order,d=0;for(let h of s){let s;let p=a.getTileByID(h.proxyTileKey),f=a.proxyCachedFBO[h.key]?a.proxyCachedFBO[h.key][n]:void 0,m=void 0!==f?a.renderCache[f]:this.pool[d++],g=void 0!==f;if(p.texture=m.tex,g&&!m.dirty){c.push(p.tileID);continue}o.bindFramebuffer.set(m.fb.framebuffer),this.renderedToTile=!1,m.dirty&&(o.clear({color:r.Color.transparent,stencil:0}),m.dirty=!1);for(let r=l.start;r<=l.end;++r){let n=i.style._layers[u[r]];if(n.isHidden(i.transform.zoom))continue;let a=i.style._getLayerSourceCache(n),l=a?this.proxyToSource[h.key][a.id]:[h];l&&(o.viewport.set([0,0,m.fb.width,m.fb.height]),s!==(a?a.id:null)&&(this._setupStencil(m,l,n,a),s=a?a.id:null),i.renderLayer(i,a,n,l))}this.renderedToTile?(m.dirty=!0,c.push(p.tileID)):g||--d,5===d&&(d=0,this.renderToBackBuffer(c))}return this.renderToBackBuffer(c),this.renderingToTexture=!1,o.bindFramebuffer.set(null),o.viewport.set([0,0,i.width,i.height]),l.end+1}postRender(){}renderCacheEfficiency(r){let n=r.order.length;
222if(0===n)return{efficiency:100};let i,o=0,a=0,s=!1;for(let l=0;l<n;++l){let n=r._layers[r.order[l]];this._style.isLayerDraped(n)?(s&&++o,++a):s||(s=!0,i=n.id)}return 0===a?{efficiency:100}:{efficiency:100*(1-o/a),firstUndrapedLayer:i}}getMinElevationBelowMSL(){let r=0;return this._visibleDemTiles.filter(r=>r.dem).forEach(n=>{r=Math.min(r,n.dem.tree.minimums[0])}),0===r?r:(r-30)*this._exaggeration}raycast(r,n,i){if(!this._visibleDemTiles)return null;let o=this._visibleDemTiles.filter(r=>r.dem).map(o=>{let a=o.tileID,s=1<<a.overscaledZ,{x:l,y:c}=a.canonical,u=l/s,d=(l+1)/s,h=c/s,p=(c+1)/s;return{minx:u,miny:h,maxx:d,maxy:p,t:o.dem.tree.raycastRoot(u,h,d,p,r,n,i),tile:o}});for(let a of(o.sort((r,n)=>(null!==r.t?r.t:Number.MAX_VALUE)-(null!==n.t?n.t:Number.MAX_VALUE)),o)){if(null==a.t)break;let o=a.tile.dem.tree.raycast(a.minx,a.miny,a.maxx,a.maxy,r,n,i);if(null!=o)return o}return null}_createFBO(){let n=this.painter.context,i=n.gl,o=this.drapeBufferSize;n.activeTexture.set(i.TEXTURE0);let a=new r.Texture(n,{width:o[0],height:o[1],data:null},i.RGBA);a.bind(i.LINEAR,i.CLAMP_TO_EDGE);let s=n.createFramebuffer(o[0],o[1],!1);return s.colorAttachment.set(a.texture),s.depthAttachment=new eS(n,s.framebuffer),void 0===this._sharedDepthStencil?(this._sharedDepthStencil=n.createRenderbuffer(n.gl.DEPTH_STENCIL,o[0],o[1]),this._stencilRef=0,s.depthAttachment.set(this._sharedDepthStencil),n.clear({stencil:0})):s.depthAttachment.set(this._sharedDepthStencil),n.extTextureFilterAnisotropic&&!n.extTextureFilterAnisotropicForceOff&&i.texParameterf(i.TEXTURE_2D,n.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,n.extTextureFilterAnisotropicMax),{fb:s,tex:a,dirty:!1}}_initFBOPool(){for(;this.pool.length<Math.min(5,this.proxyCoords.length);)this.pool.push(this._createFBO())}_shouldDisableRenderCache(){if(this._style.light&&this._style.light.hasTransition())return!0;for(let r in this._style._sourceCaches)if(this._style._sourceCaches[r].hasTransition())return!0;return this._style.order.some(r=>{let n=this._style._layers[r],i=n.isHidden(this.painter.transform.zoom);return"custom"===n.type?!i&&n.shouldRedrape():!i&&n.hasTransition()})}_clearLineLayersFromRenderCache(){let n=!1;for(let r of this._style._getSources())if(r instanceof ek){n=!0;break}if(!n)return;let i={};for(let n=0;n<this._style.order.length;++n){let o=this._style._layers[this._style.order[n]],a=this._style._getLayerSourceCache(o);if(a&&!i[a.id]&&!o.isHidden(this.painter.transform.zoom)&&"line"===o.type&&o.widthExpression() instanceof r.ZoomDependentExpression)for(let r of(i[a.id]=!0,this.proxyCoords)){let n=this.proxyToSource[r.key][a.id];if(n)for(let r of n)this._clearRenderCacheForTile(a.id,r)}}}_clearRasterLayersFromRenderCache(){let r=!1;for(let n in this._style._sourceCaches)if(this._style._sourceCaches[n]._source instanceof eC){r=!0;break}if(!r)return;let n={};for(let r=0;r<this._style.order.length;++r){let i=this._style._layers[this._style.order[r]],o=this._style._getLayerSourceCache(i);if(!o||n[o.id]||i.isHidden(this.painter.transform.zoom)||"raster"!==i.type)continue;let a=i.paint.get("raster-fade-duration");for(let r of this.proxyCoords){let n=this.proxyToSource[r.key][o.id];if(n)for(let r of n){let n=tH(o.getTile(r),o.findLoadedParent(r,0),o,this.painter.transform,a);(1!==n.opacity||0!==n.mix)&&this._clearRenderCacheForTile(o.id,r)}}}}_setupDrapedRenderBatches(){let r=this._style.order,n=r.length;if(0===n)return;let i=[],o,a=0,s=this._style._layers[r[a]];for(;!this._style.isLayerDraped(s)&&s.isHidden(this.painter.transform.zoom)&&++a<n;)s=this._style._layers[r[a]];for(;a<n;++a){let n=this._style._layers[r[a]];n.isHidden(this.painter.transform.zoom)||(this._style.isLayerDraped(n)?void 0===o&&(o=a):void 0!==o&&(i.push({start:o,end:a-1}),o=void 0))}void 0!==o&&i.push({start:o,end:a-1}),this._drapedRenderBatches=i}_setupRenderCache(r){let n=this.proxySourceCache;if(this._shouldDisableRenderCache()||this._invalidateRenderCache){if(this._invalidateRenderCache=!1,n.renderCache.length>n.renderCachePool.length){let r=Object.values(n.proxyCachedFBO);n.proxyCachedFBO={};for(let i=0;i<r.length;++i){let o=Object.values(r[i]);n.renderCachePool.push(...o)}}return}this._clearRasterLayersFromRenderCache();let i=this.proxyCoords,o=this._tilesDirty;for(let a=i.length-1;a>=0;a--){let s=i[a];if(n.getTileByID(s.key),void 0!==n.proxyCachedFBO[s.key]){let i=r[s.key],a=this.proxyToSource[s.key],l=0;for(let r in a){let n=a[r],s=i[r];if(!s||s.length!==n.length||n.some((n,i)=>n!==s[i]||o[r]&&o[r].hasOwnProperty(n.key))){l=-1;break}++l}for(let r in n.proxyCachedFBO[s.key])n.renderCache[n.proxyCachedFBO[s.key][r]].dirty=l<0||l!==Object.values(i).length}}let a=[...this._drapedRenderBatches];for(let r of(a.sort((r,n)=>n.end-n.start-(r.end-r.start)),a))for(let o of i){if(n.proxyCachedFBO[o.key])continue;let i=n.renderCachePool.pop();void 0===i&&n.renderCache.length<50&&(i=n.renderCache.length,n.renderCache.push(this._createFBO())),void 0!==i&&(n.proxyCachedFBO[o.key]={},n.proxyCachedFBO[o.key][r.start]=i,n.renderCache[i].dirty=!0)}this._tilesDirty={}}_setupStencil(r,n,i,o){let a;if(!o||!this._sourceTilesOverlap[o.id])return void(this._overlapStencilType&&(this._overlapStencilType=!1));let s=this.painter.context,l=s.gl;if(n.length<=1)return void(this._overlapStencilType=!1);if(i.isTileClipped())a=n.length,this._overlapStencilMode.test={func:l.EQUAL,mask:255},this._overlapStencilType="Clip";else{if(!(n[0].overscaledZ>
222n[n.length-1].overscaledZ))return void(this._overlapStencilType=!1);a=1,this._overlapStencilMode.test={func:l.GREATER,mask:255},this._overlapStencilType="Mask"}this._stencilRef+a>255&&(s.clear({stencil:0}),this._stencilRef=0),this._stencilRef+=a,this._overlapStencilMode.ref=this._stencilRef,i.isTileClipped()&&this._renderTileClippingMasks(n,this._overlapStencilMode.ref)}clipOrMaskOverlapStencilType(){return"Clip"===this._overlapStencilType||"Mask"===this._overlapStencilType}stencilModeForRTTOverlap(n){return this.renderingToTexture&&this._overlapStencilType?("Clip"===this._overlapStencilType&&(this._overlapStencilMode.ref=this.painter._tileClippingMaskIDs[n.key]),this._overlapStencilMode):r.StencilMode.disabled}_renderTileClippingMasks(n,i){let o=this.painter,a=this.painter.context,s=a.gl;o._tileClippingMaskIDs={},a.setColorMode(r.ColorMode.disabled),a.setDepthMode(r.DepthMode.disabled);let l=o.useProgram("clippingMask");for(let c of n){let n=o._tileClippingMaskIDs[c.key]=--i;l.draw(a,s.TRIANGLES,r.DepthMode.disabled,new r.StencilMode({func:s.ALWAYS,mask:0},n,255,s.KEEP,s.KEEP,s.REPLACE),r.ColorMode.disabled,r.CullFaceMode.disabled,tW(c.projMatrix),"$clipping",o.tileExtentBuffer,o.quadTriangleIndexBuffer,o.tileExtentSegments)}}pointCoordinate(n){let i=this.painter.transform;if(n.x<0||n.x>i.width||n.y<0||n.y>i.height)return null;let o=[n.x,n.y,1,1];r.transformMat4$1(o,o,i.pixelMatrixInverse),r.scale$1(o,o,1/o[3]),o[0]/=i.worldSize,o[1]/=i.worldSize;let a=i._camera.position,s=r.mercatorZfromAltitude(1,i.center.lat),l=[a[0],a[1],a[2]/s,0],c=r.subtract([],o.slice(0,3),l);r.normalize(c,c);let u=this.raycast(l,c,this._exaggeration);return null!==u&&u?(r.scaleAndAdd(l,l,c,u),l[3]=l[2],l[2]*=s,l):null}drawDepth(){let n=this.painter,i=n.context,o=this.proxySourceCache,a=Math.ceil(n.width),s=Math.ceil(n.height);if(this._depthFBO&&(this._depthFBO.width!==a||this._depthFBO.height!==s)&&(this._depthFBO.destroy(),this._depthFBO=void 0,this._depthTexture=void 0),!this._depthFBO){let n=i.gl,o=i.createFramebuffer(a,s,!0);i.activeTexture.set(n.TEXTURE0);let l=new r.Texture(i,{width:a,height:s,data:null},n.RGBA);l.bind(n.NEAREST,n.CLAMP_TO_EDGE),o.colorAttachment.set(l.texture);let c=i.createRenderbuffer(i.gl.DEPTH_COMPONENT16,a,s);o.depthAttachment.set(c),this._depthFBO=o,this._depthTexture=l}i.bindFramebuffer.set(this._depthFBO.framebuffer),i.viewport.set([0,0,a,s]),function(n,i,o,a){if("globe"===n.transform.projection.name)return;let s=n.context,l=s.gl;s.clear({depth:1});let c=n.useProgram("terrainDepth"),u=new r.DepthMode(l.LESS,r.DepthMode.ReadWrite,n.depthRangeFor3D);for(let n of a){let a=o.getTile(n),d=tN(n.projMatrix,0);i.setupElevationDraw(a,c),c.draw(s,l.TRIANGLES,u,r.StencilMode.disabled,r.ColorMode.unblended,r.CullFaceMode.backCCW,d,"terrain_depth",i.gridBuffer,i.gridIndexBuffer,i.gridNoSkirtSegments)}}(n,this,o,this.proxyCoords)}_setupProxiedCoordsForOrtho(r,n,i){if(r.getSource() instanceof eO)return this._setupProxiedCoordsForImageSource(r,n,i);this._findCoveringTileCache[r.id]=this._findCoveringTileCache[r.id]||{};let o=this.proxiedCoords[r.id]=[],a=this.proxyCoords;for(let n=0;n<a.length;n++){let s=a[n],l=this._findTileCoveringTileID(s,r);if(l){let n=this._createProxiedId(s,l,i[s.key]&&i[s.key][r.id]);o.push(n),this.proxyToSource[s.key][r.id]=[n]}}let s=!1;for(let a=0;a<n.length;a++){let l=r.getTile(n[a]);if(!l||!l.hasData())continue;let c=this._findTileCoveringTileID(l.tileID,this.proxySourceCache);if(c&&c.tileID.canonical.z!==l.tileID.canonical.z){let n=this.proxyToSource[c.tileID.key][r.id],a=this._createProxiedId(c.tileID,l,i[c.tileID.key]&&i[c.tileID.key][r.id]);n?n.splice(n.length-1,0,a):this.proxyToSource[c.tileID.key][r.id]=[a],o.push(a),s=!0}}this._sourceTilesOverlap[r.id]=s}_setupProxiedCoordsForImageSource(n,i,o){if(!n.getSource().loaded())return;let a=this.proxiedCoords[n.id]=[],s=this.proxyCoords,l=n.getSource(),c=new r.Point(l.tileID.x,l.tileID.y)._div(1<<l.tileID.z),u=l.coordinates.map(r.MercatorCoordinate.fromLngLat).reduce((r,n)=>(r.min.x=Math.min(r.min.x,n.x-c.x),r.min.y=Math.min(r.min.y,n.y-c.y),r.max.x=Math.max(r.max.x,n.x-c.x),r.max.y=Math.max(r.max.y,n.y-c.y),r),{min:new r.Point(Number.MAX_VALUE,Number.MAX_VALUE),max:new r.Point(-Number.MAX_VALUE,-Number.MAX_VALUE)}),d=(n,i)=>{let o=n.wrap+n.canonical.x/(1<<n.canonical.z),a=n.canonical.y/(1<<n.canonical.z),s=r.EXTENT/(1<<n.canonical.z),l=i.wrap+i.canonical.x/(1<<i.canonical.z),c=i.canonical.y/(1<<i.canonical.z);return o+s<l+u.min.x||o>l+u.max.x||a+s<c+u.min.y||a>c+u.max.y};for(let r=0;r<s.length;r++){let l=s[r];for(let r=0;r<i.length;r++){let s=n.getTile(i[r]);if(!s||!s.hasData()||d(l,s.tileID))continue;let c=this._createProxiedId(l,s,o[l.key]&&o[l.key][n.id]),u=this.proxyToSource[l.key][n.id];u?u.push(c):this.proxyToSource[l.key][n.id]=[c],a.push(c)}}}_createProxiedId(n,i,o){let a=this.orthoMatrix;if(o){let r=o.find(r=>r.key===i.tileID.key);if(r)return r}if(i.tileID.key!==n.key){let o,s,l;let c=n.canonical.z-i.tileID.canonical.z;a=r.create();let u=i.tileID.wrap-n.wrap<<n.overscaledZ;c>0?(s=(o=r.EXTENT>>c)*((i.tileID.canonical.x<<c)-n.canonical.x+u),l=o*((i.tileID.canonical.y<<c)-n.canonical.y)):(o=r.EXTENT<<-c,s=r.EXTENT*(i.tileID.canonical.x-(n.canonical.x+u<<-c)),l=r.EXTENT*(i.tileID.canonical.y-(n.canonical.y<<-c))),r.ortho(a,0,o,0,o,0,1),r.translate(a,a,[s,l,0])}return new tK(i.tileID,n.key,a)}_findTileCoveringTileID(n,i){let o=i.getTile(n);if(o&&o.hasData())return o;let a=this._findCoveringTileCache[i.id],s=a[n.key];if((o=s?i.getTileByID(s):null)&&o.hasData()||null===s)return o;let l=o?o.tileID:n,c=l.overscaledZ,u=i.getSource().minzoom,d=[];if(!s){let a=i.getSource().maxzoom;if(n.canonical.z>=a){let o=n.canonical.z-a;i.getSource().reparseOverscaled?(c=Math.max(n.canonical.z+2,i.transform.tileZoom),l=new r.OverscaledTileID(c,n.wrap,a,n.canonical.x>>o,n.canonical.y>>o)):0!==o&&(c=a,l=new r.OverscaledTileID(c,n.wrap,a,n.canonical.x>>o,n.canonical.y>>o))}l.key!==n.key&&(d.push(l.key),o=i.getTile(l))}let h=r=>{d.forEach(n=>{a[n]=r}),d.length=0};for(c-=1;c>=u&&(!o||!o.hasData());c--){o&&h(o.tileID.key);let r=l.calculateScaledKey(c);if((o=i.getTileByID(r))&&o.hasData())break;let n=a[r];if(null===n)break;void 0===n?d.push(r):o=i.getTileByID(n)}return h(o?o.tileID.key:null),o&&o.hasData()?o:null}findDEMTileFor(r){return this.enabled?this._findTileCoveringTileID(r,this.sourceCache):null}prepareDrawTile(){this.renderedToTile=!0}_clearRenderCacheForTile(r,n){let i=this._tilesDirty[r];i||(i=this._tilesDirty[r]={}),i[n.key]=!0}getWirefameBuffer(){if(!this.wireframeSegments){let n=function(n){let i=0,o=new r.StructArrayLayout2ui4;for(let r=1;r<129;r++){for(let n=1;n<129;n++)i=131*r+n,o.emplaceBack(i,i+1),o.emplaceBack(i,i+131),o.emplaceBack(i+1,i+131),128===r&&o.emplaceBack(i+131,i+131+1);o.emplaceBack(i+1,i+1+131)}return o}();this.wireframeIndexBuffer=this.painter.context.createIndexBuffer(n),this.wireframeSegments=r.SegmentVector.simpleSegment(0,0,this.gridBuffer.length,n.length)}return[this.wireframeIndexBuffer,this.wireframeSegments]}}class tQ{static cacheKey(r,n,i,o){let a=`${n}${o?o.cacheKey:""}`;for(let n of i)r.usedDefines.includes(n)&&(a+=`/${n}`);return a}constructor(n,i,o,a,s,l){let c=n.gl;this.program=c.createProgram();let u=function(r){let n=[];for(let i=0;i<r.length;i++){if(null===r[i])continue;let o=r[i].split(" ");n.push(o.pop())}return n}(o.staticAttributes),d=a?a.getBinderAttributes():[],h=u.concat(d),p=a?a.defines():[];p=p.concat(l.map(r=>`#define ${r}`));
222let f=n.isWebGL2?"#version 300 es\n":"",m=f+p.concat(n.extStandardDerivatives&&0===f.length?"#extension GL_OES_standard_derivatives : enable\n".concat(tZ):tZ,tZ,tE,tI.fragmentSource,tA.fragmentSource,o.fragmentSource).join("\n"),g=f+p.concat("\n#ifdef GL_ES\nprecision highp float;\n#else\n\n#if !defined(lowp)\n#define lowp\n#endif\n\n#if !defined(mediump)\n#define mediump\n#endif\n\n#if !defined(highp)\n#define highp\n#endif\n\n#endif",tE,tI.vertexSource,tA.vertexSource,tj.vertexSource,o.vertexSource).join("\n"),v=c.createShader(c.FRAGMENT_SHADER);if(c.isContextLost())return void(this.failedToCreate=!0);c.shaderSource(v,m),c.compileShader(v),c.attachShader(this.program,v);let y=c.createShader(c.VERTEX_SHADER);if(c.isContextLost())this.failedToCreate=!0;else{c.shaderSource(y,g),c.compileShader(y),c.attachShader(this.program,y),this.attributes={},this.numAttributes=h.length;for(let r=0;r<this.numAttributes;r++)h[r]&&(c.bindAttribLocation(this.program,r,h[r]),this.attributes[h[r]]=r);c.linkProgram(this.program),c.deleteShader(y),c.deleteShader(v),this.fixedUniforms=s(n),this.binderUniforms=a?a.getUniforms(n):[],l.includes("TERRAIN")&&(this.terrainUniforms={u_dem:new r.Uniform1i(n),u_dem_prev:new r.Uniform1i(n),u_dem_unpack:new r.Uniform4f(n),u_dem_tl:new r.Uniform2f(n),u_dem_scale:new r.Uniform1f(n),u_dem_tl_prev:new r.Uniform2f(n),u_dem_scale_prev:new r.Uniform1f(n),u_dem_size:new r.Uniform1f(n),u_dem_lerp:new r.Uniform1f(n),u_exaggeration:new r.Uniform1f(n),u_depth:new r.Uniform1i(n),u_depth_size_inv:new r.Uniform2f(n),u_meter_to_dem:new r.Uniform1f(n),u_label_plane_matrix_inv:new r.UniformMatrix4f(n)}),l.includes("GLOBE")&&(this.globeUniforms={u_tile_tl_up:new r.Uniform3f(n),u_tile_tr_up:new r.Uniform3f(n),u_tile_br_up:new r.Uniform3f(n),u_tile_bl_up:new r.Uniform3f(n),u_tile_up_scale:new r.Uniform1f(n)}),l.includes("FOG")&&(this.fogUniforms={u_fog_matrix:new r.UniformMatrix4f(n),u_fog_range:new r.Uniform2f(n),u_fog_color:new r.Uniform4f(n),u_fog_horizon_blend:new r.Uniform1f(n),u_fog_temporal_offset:new r.Uniform1f(n),u_frustum_tl:new r.Uniform3f(n),u_frustum_tr:new r.Uniform3f(n),u_frustum_br:new r.Uniform3f(n),u_frustum_bl:new r.Uniform3f(n),u_globe_pos:new r.Uniform3f(n),u_globe_radius:new r.Uniform1f(n),u_globe_transition:new r.Uniform1f(n),u_is_globe:new r.Uniform1i(n),u_viewport:new r.Uniform2f(n)})}}setTerrainUniformValues(r,n){if(!this.terrainUniforms)return;let i=this.terrainUniforms;if(!this.failedToCreate)for(let o in r.program.set(this.program),n)i[o]&&i[o].set(this.program,o,n[o])}setGlobeUniformValues(r,n){if(!this.globeUniforms)return;let i=this.globeUniforms;if(!this.failedToCreate)for(let o in r.program.set(this.program),n)i[o]&&i[o].set(this.program,o,n[o])}setFogUniformValues(r,n){if(!this.fogUniforms)return;let i=this.fogUniforms;if(!this.failedToCreate)for(let o in r.program.set(this.program),n)i[o].set(this.program,o,n[o])}draw(r,n,i,o,a,s,l,c,u,d,h,p,f,m,g){let v=r.gl;if(this.failedToCreate)return;for(let n of(r.program.set(this.program),r.setDepthMode(i),r.setStencilMode(o),r.setColorMode(a),r.setCullFace(s),Object.keys(this.fixedUniforms)))this.fixedUniforms[n].set(this.program,n,l[n]);m&&m.setUniforms(this.program,r,this.binderUniforms,p,{zoom:f});let y={[v.LINES]:2,[v.TRIANGLES]:3,[v.LINE_STRIP]:1}[n];for(let i of h.get()){let o=i.vaos||(i.vaos={});(o[c]||(o[c]=new tz)).bind(r,this,u,m?m.getPaintVertexBuffers():[],d,i.vertexOffset,g||[]),v.drawElements(n,i.primitiveLength*y,v.UNSIGNED_SHORT,i.primitiveOffset*y*2)}}}function t0(r,n){let i=Math.pow(2,n.tileID.overscaledZ),o=n.tileSize*Math.pow(2,r.transform.tileZoom)/i,a=o*(n.tileID.canonical.x+n.tileID.wrap*i),s=o*n.tileID.canonical.y;return{u_image:0,u_texsize:n.imageAtlasTexture.size,u_tile_units_to_pixels:1/M(n,1,r.transform.tileZoom),u_pixel_coord_upper:[a>>16,s>>16],u_pixel_coord_lower:[65535&a,65535&s]}}let t1=r.create(),t2=(n,i,o,a,s,l,c,u,d,h,p)=>{let f=i.style.light,m=f.properties.get("position"),g=[m.x,m.y,m.z],v=r.create$1();"viewport"===f.properties.get("anchor")&&(r.fromRotation(v,-i.transform.angle),r.transformMat3(g,g,v));let y=f.properties.get("color"),b=i.transform,x={u_matrix:n,u_lightpos:g,u_lightintensity:f.properties.get("intensity"),u_lightcolor:[y.r,y.g,y.b],u_vertical_gradient:+o,u_opacity:a,u_tile_id:[0,0,0],u_zoom_transition:0,u_inv_rot_matrix:t1,u_merc_center:[0,0],u_up_dir:[0,0,0],u_height_lift:0,u_ao:s,u_edge_radius:l};return"globe"===b.projection.name&&(x.u_tile_id=[c.canonical.x,c.canonical.y,1<<c.canonical.z],x.u_zoom_transition=d,x.u_inv_rot_matrix=p,x.u_merc_center=h,x.u_up_dir=b.projection.upVector(new r.CanonicalTileID(0,0,0),h[0]*r.EXTENT,h[1]*r.EXTENT),x.u_height_lift=u),x},t3=(n,i,o,a,s,l,c,u,d,h,p,f)=>{let m=t2(n,i,o,a,s,l,c,d,h,p,f),g={u_height_factor:-Math.pow(2,c.overscaledZ
222)/u.tileSize/8};return r.extend(m,t0(i,u),g)},t4=r=>({u_matrix:r}),t5=(n,i,o)=>r.extend(t4(n),t0(i,o)),t6=(r,n)=>({u_matrix:r,u_world:n}),t8=(n,i,o,a)=>r.extend(t5(n,i,o),{u_world:a}),t9=r.create(),t7=(n,i,o,a,s,l)=>{let c;let u=n.transform,d="globe"===u.projection.name;if("map"===l.paint.get("circle-pitch-alignment")){if(d){let n=r.globePixelsToTileUnits(u.zoom,i.canonical)*u._pixelsPerMercatorPixel;c=Float32Array.from([n,0,0,n])}else c=u.calculatePixelsToTileUnitsMatrix(o)}else c=new Float32Array([u.pixelsToGLUnits[0],0,0,u.pixelsToGLUnits[1]]);let h={u_camera_to_center_distance:u.cameraToCenterDistance,u_matrix:n.translatePosMatrix(i.projMatrix,o,l.paint.get("circle-translate"),l.paint.get("circle-translate-anchor")),u_device_pixel_ratio:r.exported.devicePixelRatio,u_extrude_scale:c,u_inv_rot_matrix:t9,u_merc_center:[0,0],u_tile_id:[0,0,0],u_zoom_transition:0,u_up_dir:[0,0,0]};if(d){h.u_inv_rot_matrix=a,h.u_merc_center=s,h.u_tile_id=[i.canonical.x,i.canonical.y,1<<i.canonical.z],h.u_zoom_transition=r.globeToMercatorTransition(u.zoom);let n=s[0]*r.EXTENT,o=s[1]*r.EXTENT;h.u_up_dir=u.projection.upVector(new r.CanonicalTileID(0,0,0),n,o)}return h},re=r=>{let n=[];return"map"===r.paint.get("circle-pitch-alignment")&&n.push("PITCH_WITH_MAP"),"map"===r.paint.get("circle-pitch-scale")&&n.push("SCALE_WITH_MAP"),n},rt=(n,i,o,a)=>{let s=r.EXTENT/o.tileSize;return{u_matrix:n,u_camera_to_center_distance:i.getCameraToCenterDistance(a),u_extrude_scale:[i.pixelsToGLUnits[0]/s,i.pixelsToGLUnits[1]/s]}},rr=(r,n,i=1)=>({u_matrix:r,u_color:n,u_overlay:0,u_overlay_scale:i}),rn=r.create(),ri=(n,i,o,a,s,l,c)=>{let u=n.transform,d="globe"===u.projection.name,h=d?r.globePixelsToTileUnits(u.zoom,i.canonical)*u._pixelsPerMercatorPixel:M(o,1,l),p={u_matrix:i.projMatrix,u_extrude_scale:h,u_intensity:c,u_inv_rot_matrix:rn,u_merc_center:[0,0],u_tile_id:[0,0,0],u_zoom_transition:0,u_up_dir:[0,0,0]};if(d){p.u_inv_rot_matrix=a,p.u_merc_center=s,p.u_tile_id=[i.canonical.x,i.canonical.y,1<<i.canonical.z],p.u_zoom_transition=r.globeToMercatorTransition(u.zoom);let n=s[0]*r.EXTENT,o=s[1]*r.EXTENT;p.u_up_dir=u.projection.upVector(new r.CanonicalTileID(0,0,0),n,o)}return p},ro=(r,n,i,o,a,s,l)=>{let c=r.transform,u=c.calculatePixelsToTileUnitsMatrix(n);return{u_matrix:rl(r,n,i,o),u_pixels_to_tile_units:u,u_device_pixel_ratio:s,u_units_to_pixels:[1/c.pixelsToGLUnits[0],1/c.pixelsToGLUnits[1]],u_dash_image:0,u_gradient_image:1,u_image_height:a,u_texsize:rc(i)?n.lineAtlasTexture.size:[0,0],u_tile_units_to_pixels:rs(n,r.transform),u_alpha_discard_threshold:0,u_trim_offset:l}},ra=(r,n,i,o,a)=>{let s=r.transform;return{u_matrix:rl(r,n,i,o),u_texsize:n.imageAtlasTexture.size,u_pixels_to_tile_units:s.calculatePixelsToTileUnitsMatrix(n),u_device_pixel_ratio:a,u_image:0,u_tile_units_to_pixels:rs(n,s),u_units_to_pixels:[1/s.pixelsToGLUnits[0],1/s.pixelsToGLUnits[1]],u_alpha_discard_threshold:0}};function rs(r,n){return 1/M(r,1,n.tileZoom)}function rl(r,n,i,o){return r.translatePosMatrix(o||n.tileID.projMatrix,n,i.paint.get("line-translate"),i.paint.get("line-translate-anchor"))}function rc(r){let n=r.paint.get("line-dasharray").value;return n.value||"constant"!==n.kind}let ru=(r,n,i,o,a,s)=>{var l,c;return{u_matrix:r,u_tl_parent:n,u_scale_parent:i,u_fade_t:o.mix,u_opacity:o.opacity*a.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:a.paint.get("raster-brightness-min"),u_brightness_high:a.paint.get("raster-brightness-max"),u_saturation_factor:(c=a.paint.get("raster-saturation"))>0?1-1/(1.001-c):-c,u_contrast_factor:(l=a.paint.get("raster-contrast"))>0?1/(1-l):1+l,u_spin_weights:function(r){r*=Math.PI/180;let n=Math.sin(r),i=Math.cos(r);return[(2*i+1)/3,(-Math.sqrt(3)*n-i+1)/3,(Math.sqrt(3)*n-i+1)/3]}(a.paint.get("raster-hue-rotate")),u_perspective_transform:s}},rd=r.create(),rh=(n,i,o,a,s,l,c,u,d,h,p,f,m,g,v,y)=>{let b=s.transform,x={u_is_size_zoom_constant:+("constant"===n||"source"===n),u_is_size_feature_constant:+("constant"===n||"camera"===n),u_size_t:i?i.uSizeT:0,u_size:i?i.uSize:0,u_camera_to_center_distance:b.cameraToCenterDistance,u_rotate_symbol:+o,u_aspect_ratio:b.width/b.height,u_fade_change:s.options.fadeDuration?s.symbolFadeChange:1,u_matrix:l,u_label_plane_matrix:c,u_coord_matrix:u,u_is_text:+d,u_pitch_with_map:+a,u_texsize:h,u_texture:0,u_tile_id:[0,0,0],u_zoom_transition:0,u_inv_rot_matrix:rd,u_merc_center:[0,0],u_camera_forward:[0,0,0],u_ecef_origin:[0,0,0],u_tile_matrix:rd,u_up_vector:[0,-1,0]};return"globe"===y.name&&(x.u_tile_id=[p.canonical.x,p.canonical.y,1<<p.canonical.z],x.u_zoom_transition=f,x.u_inv_rot_matrix=g,x.u_merc_center=m,x.u_camera_forward=b._camera.forward(),x.u_ecef_origin=r.globeECEFOrigin(b.globeMatrix,p.toUnwrapped()),x.u_tile_matrix=Float32Array.from(b.globeMatrix),x.u_up_vector=v),x},rp=(n,i,o,a,s,l,c,u,d,h,p,f,m,g,v,y,b)=>r.extend(rh(n,i,o,a,s,l,c,u,d,h,f,m,g,v,y,b),{u_gamma_scale:a?s.transform.cameraToCenterDistance*Math.cos(s.terrain?0:s.transform._pitch):1,u_device_pixel_ratio:r.exported.devicePixelRatio,u_is_halo:+p}),rf=(n,i,o,a,s,l,c,u,d,h,p,f,m,g,v,y)=>r.extend(rp(n,i,o,a,s,l,c,u,!0,d,!0,p,f,m,g,v,y),{u_texsize_icon:h,u_texture_icon:1}),rm=(r,n,i)=>({u_matrix:r,u_opacity:n,u_color:i}),rg=(n,i,o,a,s)=>r.extend(function(r,n,i){let o=n.imageManager.getPattern(r.toString()),{width:a,height:s}=n.imageManager.getPixelSize(),l=Math.pow(2,i.tileID.overscaledZ
222),c=i.tileSize*Math.pow(2,n.transform.tileZoom)/l,u=c*(i.tileID.canonical.x+i.tileID.wrap*l),d=c*i.tileID.canonical.y;return{u_image:0,u_pattern_tl:o.tl,u_pattern_br:o.br,u_texsize:[a,s],u_pattern_size:o.displaySize,u_tile_units_to_pixels:1/M(i,1,n.transform.tileZoom),u_pixel_coord_upper:[u>>16,d>>16],u_pixel_coord_lower:[65535&u,65535&d]}}(a,o,s),{u_matrix:n,u_opacity:i}),rv={fillExtrusion:n=>({u_matrix:new r.UniformMatrix4f(n),u_lightpos:new r.Uniform3f(n),u_lightintensity:new r.Uniform1f(n),u_lightcolor:new r.Uniform3f(n),u_vertical_gradient:new r.Uniform1f(n),u_opacity:new r.Uniform1f(n),u_edge_radius:new r.Uniform1f(n),u_ao:new r.Uniform2f(n),u_tile_id:new r.Uniform3f(n),u_zoom_transition:new r.Uniform1f(n),u_inv_rot_matrix:new r.UniformMatrix4f(n),u_merc_center:new r.Uniform2f(n),u_up_dir:new r.Uniform3f(n),u_height_lift:new r.Uniform1f(n)}),fillExtrusionPattern:n=>({u_matrix:new r.UniformMatrix4f(n),u_lightpos:new r.Uniform3f(n),u_lightintensity:new r.Uniform1f(n),u_lightcolor:new r.Uniform3f(n),u_vertical_gradient:new r.Uniform1f(n),u_height_factor:new r.Uniform1f(n),u_edge_radius:new r.Uniform1f(n),u_ao:new r.Uniform2f(n),u_tile_id:new r.Uniform3f(n),u_zoom_transition:new r.Uniform1f(n),u_inv_rot_matrix:new r.UniformMatrix4f(n),u_merc_center:new r.Uniform2f(n),u_up_dir:new r.Uniform3f(n),u_height_lift:new r.Uniform1f(n),u_image:new r.Uniform1i(n),u_texsize:new r.Uniform2f(n),u_pixel_coord_upper:new r.Uniform2f(n),u_pixel_coord_lower:new r.Uniform2f(n),u_tile_units_to_pixels:new r.Uniform1f(n),u_opacity:new r.Uniform1f(n)}),fill:n=>({u_matrix:new r.UniformMatrix4f(n)}),fillPattern:n=>({u_matrix:new r.UniformMatrix4f(n),u_image:new r.Uniform1i(n),u_texsize:new r.Uniform2f(n),u_pixel_coord_upper:new r.Uniform2f(n),u_pixel_coord_lower:new r.Uniform2f(n),u_tile_units_to_pixels:new r.Uniform1f(n)}),fillOutline:n=>({u_matrix:new r.UniformMatrix4f(n),u_world:new r.Uniform2f(n)}),fillOutlinePattern:n=>({u_matrix:new r.UniformMatrix4f(n),u_world:new r.Uniform2f(n),u_image:new r.Uniform1i(n),u_texsize:new r.Uniform2f(n),u_pixel_coord_upper:new r.Uniform2f(n),u_pixel_coord_lower:new r.Uniform2f(n),u_tile_units_to_pixels:new r.Uniform1f(n)}),circle:n=>({u_camera_to_center_distance:new r.Uniform1f(n),u_extrude_scale:new r.UniformMatrix2f(n),u_device_pixel_ratio:new r.Uniform1f(n),u_matrix:new r.UniformMatrix4f(n),u_inv_rot_matrix:new r.UniformMatrix4f(n),u_merc_center:new r.Uniform2f(n),u_tile_id:new r.Uniform3f(n),u_zoom_transition:new r.Uniform1f(n),u_up_dir:new r.Uniform3f(n)}),collisionBox:n=>({u_matrix:new r.UniformMatrix4f(n),u_camera_to_center_distance:new r.Uniform1f(n),u_extrude_scale:new r.Uniform2f(n)}),collisionCircle:n=>({u_matrix:new r.UniformMatrix4f(n),u_inv_matrix:new r.UniformMatrix4f(n),u_camera_to_center_distance:new r.Uniform1f(n),u_viewport_size:new r.Uniform2f(n)}),debug:n=>({u_color:new r.UniformColor(n),u_matrix:new r.UniformMatrix4f(n),u_overlay:new r.Uniform1i(n),u_overlay_scale:new r.Uniform1f(n)}),clippingMask:n=>({u_matrix:new r.UniformMatrix4f(n)}),heatmap:n=>({u_extrude_scale:new r.Uniform1f(n),u_intensity:new r.Uniform1f(n),u_matrix:new r.UniformMatrix4f(n),u_inv_rot_matrix:new r.UniformMatrix4f(n),u_merc_center:new r.Uniform2f(n),u_tile_id:new r.Uniform3f(n),u_zoom_transition:new r.Uniform1f(n),u_up_dir:new r.Uniform3f(n)}),heatmapTexture:n=>({u_image:new r.Uniform1i(n),u_color_ramp:new r.Uniform1i(n),u_opacity:new r.Uniform1f(n)}),hillshade:n=>({u_matrix:new r.UniformMatrix4f(n),u_image:new r.Uniform1i(n),u_latrange:new r.Uniform2f(n),u_light:new r.Uniform2f(n),u_shadow:new r.UniformColor(n),u_highlight:new r.UniformColor(n),u_accent:new r.UniformColor(n)}),hillshadePrepare:n=>({u_matrix:new r.UniformMatrix4f(n),u_image:new r.Uniform1i(n),u_dimension:new r.Uniform2f(n),u_zoom:new r.Uniform1f(n),u_unpack:new r.Uniform4f(n)}),line:n=>({u_matrix:new r.UniformMatrix4f(n),u_pixels_to_tile_units:new r.UniformMatrix2f(n),u_device_pixel_ratio:new r.Uniform1f(n),u_units_to_pixels:new r.Uniform2f(n),u_dash_image:new r.Uniform1i(n),u_gradient_image:new r.Uniform1i(n),u_image_height:new r.Uniform1f(n),u_texsize:new r.Uniform2f(n),u_tile_units_to_pixels:new r.Uniform1f(n),u_alph
222a_discard_threshold:new r.Uniform1f(n),u_trim_offset:new r.Uniform2f(n)}),linePattern:n=>({u_matrix:new r.UniformMatrix4f(n),u_texsize:new r.Uniform2f(n),u_pixels_to_tile_units:new r.UniformMatrix2f(n),u_device_pixel_ratio:new r.Uniform1f(n),u_image:new r.Uniform1i(n),u_units_to_pixels:new r.Uniform2f(n),u_tile_units_to_pixels:new r.Uniform1f(n),u_alpha_discard_threshold:new r.Uniform1f(n)}),raster:n=>({u_matrix:new r.UniformMatrix4f(n),u_tl_parent:new r.Uniform2f(n),u_scale_parent:new r.Uniform1f(n),u_fade_t:new r.Uniform1f(n),u_opacity:new r.Uniform1f(n),u_image0:new r.Uniform1i(n),u_image1:new r.Uniform1i(n),u_brightness_low:new r.Uniform1f(n),u_brightness_high:new r.Uniform1f(n),u_saturation_factor:new r.Uniform1f(n),u_contrast_factor:new r.Uniform1f(n),u_spin_weights:new r.Uniform3f(n),u_perspective_transform:new r.Uniform2f(n)}),symbolIcon:n=>({u_is_size_zoom_constant:new r.Uniform1i(n),u_is_size_feature_constant:new r.Uniform1i(n),u_size_t:new r.Uniform1f(n),u_size:new r.Uniform1f(n),u_camera_to_center_distance:new r.Uniform1f(n),u_rotate_symbol:new r.Uniform1i(n),u_aspect_ratio:new r.Uniform1f(n),u_fade_change:new r.Uniform1f(n),u_matrix:new r.UniformMatrix4f(n),u_label_plane_matrix:new r.UniformMatrix4f(n),u_coord_matrix:new r.UniformMatrix4f(n),u_is_text:new r.Uniform1i(n),u_pitch_with_map:new r.Uniform1i(n),u_texsize:new r.Uniform2f(n),u_tile_id:new r.Uniform3f(n),u_zoom_transition:new r.Uniform1f(n),u_inv_rot_matrix:new r.UniformMatrix4f(n),u_merc_center:new r.Uniform2f(n),u_camera_forward:new r.Uniform3f(n),u_tile_matrix:new r.UniformMatrix4f(n),u_up_vector:new r.Uniform3f(n),u_ecef_origin:new r.Uniform3f(n),u_texture:new r.Uniform1i(n)}),symbolSDF:n=>({u_is_size_zoom_constant:new r.Uniform1i(n),u_is_size_feature_constant:new r.Uniform1i(n),u_size_t:new r.Uniform1f(n),u_size:new r.Uniform1f(n),u_camera_to_center_distance:new r.Uniform1f(n),u_rotate_symbol:new r.Uniform1i(n),u_aspect_ratio:new r.Uniform1f(n),u_fade_change:new r.Uniform1f(n),u_matrix:new r.UniformMatrix4f(n),u_label_plane_matrix:new r.UniformMatrix4f(n),u_coord_matrix:new r.UniformMatrix4f(n),u_is_text:new r.Uniform1i(n),u_pitch_with_map:new r.Uniform1i(n),u_texsize:new r.Uniform2f(n),u_texture:new r.Uniform1i(n),u_gamma_scale:new r.Uniform1f(n),u_device_pixel_ratio:new r.Uniform1f(n),u_tile_id:new r.Uniform3f(n),u_zoom_transition:new r.Uniform1f(n),u_inv_rot_matrix:new r.UniformMatrix4f(n),u_merc_center:new r.Uniform2f(n),u_camera_forward:new r.Uniform3f(n),u_tile_matrix:new r.UniformMatrix4f(n),u_up_vector:new r.Uniform3f(n),u_ecef_origin:new r.Uniform3f(n),u_is_halo:new r.Uniform1i(n)}),symbolTextAndIcon:n=>({u_is_size_zoom_constant:new r.Uniform1i(n),u_is_size_feature_constant:new r.Uniform1i(n),u_size_t:new r.Uniform1f(n),u_size:new r.Uniform1f(n),u_camera_to_center_distance:new r.Uniform1f(n),u_rotate_symbol:new r.Uniform1i(n),u_aspect_ratio:new r.Uniform1f(n),u_fade_change:new r.Uniform1f(n),u_matrix:new r.UniformMatrix4f(n),u_label_plane_matrix:new r.UniformMatrix4f(n),u_coord_matrix:new r.UniformMatrix4f(n),u_is_text:new r.Uniform1i(n),u_pitch_with_map:new r.Uniform1i(n),u_texsize:new r.Uniform2f(n),u_texsize_icon:new r.Uniform2f(n),u_texture:new r.Uniform1i(n),u_texture_icon:new r.Uniform1i(n),u_gamma_scale:new r.Uniform1f(n),u_device_pixel_ratio:new r.Uniform1f(n),u_is_halo:new r.Uniform1i(n)}),background:n=>({u_matrix:new r.UniformMatrix4f(n),u_opacity:new r.Uniform1f(n),u_color:new r.UniformColor(n)}),backgroundPattern:n=>({u_matrix:new r.UniformMatrix4f(n),u_opacity:new r.Uniform1f(n),u_image:new r.Uniform1i(n),u_pattern_tl:new r.Uniform2f(n),u_pattern_br:new r.Uniform2f(n),u_texsize:new r.Uniform2f(n),u_pattern_size:new r.Uniform2f(n),u_pixel_coord_upper:new r.Uniform2f(n),u_pixel_coord_lower:new r.Uniform2f(n),u_tile_units_to_pixels:new r.Uniform1f(n)}),terrainRaster:tF,terrainDepth:tF,skybox:n=>({u_matrix:new r.UniformMatrix4f(n),u_sun_direction:new r.Uniform3f(n),u_cubemap:new r.Uniform1i(n),u_opacity:new r.Uniform1f(n),u_temporal_offset:new r.Uniform1f(n)}),skyboxGradient:n=>({u_matrix:new r.UniformMatrix4f(n),u_color_ramp:new r.Uniform1i(n),u_center_direction:new r.Uniform3f(n),u_radius:new r.Uniform1f(n),u_opacity:new r.Uniform1f(n),u_temporal_offset:new r.Uniform1f(n)}),skyboxCapture:n=>({u_matrix_3f:new r.UniformMatrix3f(n),u_sun_direction:new r.Uniform3f(n),u_sun_intensity:new r.Uniform1f(n),u_color_tint_r:new r.Uniform4f(n),u_color_tint_m:new r.Uniform4f(n),u_luminance:new r.Uniform1f(n)}),globeRaster:n=>({u_proj_matrix:new r.UniformMatrix4f(n),u_globe_matrix:new r.UniformMatrix4f(n),u_normalize_matrix:new r.UniformMatrix4f(n),u_merc_matrix:new r.UniformMatrix4f(n),u_zoom_transition:new r.Uniform1f(n),u_merc_center:new r.Uniform2f(n),u_image0:new r.Uniform1i(n),u_grid_matrix:new r.UniformMatrix3f(n),u_skirt_height:new r.Uniform1f(n),u_frustum_tl:new r.Uniform3f(n),u_frustum_tr:new r.Uniform3f(n),u_frustum_br:new r.Uniform3f(n),u_frustum_bl:new r.Uniform3f(n),u_globe_pos:new r.Uniform3f(n),u_globe_radius:new r.Uniform1f(n),u_viewport:new r.Uniform2f(n)}),globeAtmosphere:n=>({u_frustum_tl:new r.Uniform3f(n),u_frustum_tr:new r.Uniform3f(n),u_frustum_br:new r.Uniform3f(n),u_frustum_bl:new r.Uniform3f(n),u_horizon:new r.Uniform1f(n),u_transition:new r.Uniform1f(n),u_fadeout_range:new r.Uniform1f(n),u_color:new r.Uniform4f(n),u_high_color:new r.Uniform4f(n),u_space_color:new r.Uniform4f(n),u_star_intensity:new r.Uniform1f(n),u_star_density:new r.Uniform1f(n),u_star_size:new r.Uniform1f(n),u_temporal_offset:new r.Uniform1f(n),u_horizon_angle:new r.Uniform1f(n),u_rotation_matrix:new r.UniformMatrix4f(n)})};function ry(n,i,a,s,l,c,u){let d=n.context,h=d.gl,p=n.transform,f=n.useProgram("collisionBox"),m=[],g=0,v=0;for(let o=0;o<s.length;o++){let y=s[o],b=i.getTile(y),x=b.getBucket(a);if(!x)continue;let _=function(r,n,i){if(n.projection.name===i.projection.name)return r.projMatrix;let o=i.clone();return o.setProjection(n.projection),e9(o,n.getProjection(),r)}(y,x,p),w=_;0===l[0]&&0===l[1]||(w=n.translatePosMatrix(_,b,l,c));let S=u?x.textCollisionBox:x.iconCollisionBox,T=x.collisionCircleArray;
222if(T.length>0){let n=r.create(),i=w;r.mul(n,x.placementInvProjMatrix,p.glCoordMatrix),r.mul(n,n,x.placementViewportMatrix),m.push({circleArray:T,circleOffset:v,transform:i,invTransform:n,projection:x.getProjection()}),g+=T.length/4,v=g}S&&(n.terrain&&n.terrain.setupElevationDraw(b,f),f.draw(d,h.LINES,r.DepthMode.disabled,r.StencilMode.disabled,n.colorModeForRenderPass(),r.CullFaceMode.disabled,rt(w,p,b,x.getProjection()),a.id,S.layoutVertexBuffer,S.indexBuffer,S.segments,null,p.zoom,null,[S.collisionVertexBuffer,S.collisionVertexBufferExt]))}if(!u||!m.length)return;let y=n.useProgram("collisionCircle"),b=new r.StructArrayLayout2f1f2i16;b.resize(4*g),b._trim();let x=0;for(let r of m)for(let n=0;n<r.circleArray.length/4;n++){let i=4*n,o=r.circleArray[i+0],a=r.circleArray[i+1],s=r.circleArray[i+2],l=r.circleArray[i+3];b.emplace(x++,o,a,s,l,0),b.emplace(x++,o,a,s,l,1),b.emplace(x++,o,a,s,l,2),b.emplace(x++,o,a,s,l,3)}(!o||o.length<2*g)&&(o=function(n){let i=2*n,o=new r.StructArrayLayout3ui6;o.resize(i),o._trim();for(let r=0;r<i;r++){let n=6*r;o.uint16[n+0]=4*r+0,o.uint16[n+1]=4*r+1,o.uint16[n+2]=4*r+2,o.uint16[n+3]=4*r+2,o.uint16[n+4]=4*r+3,o.uint16[n+5]=4*r+0}return o}(g));let _=d.createIndexBuffer(o,!0),w=d.createVertexBuffer(b,r.collisionCircleLayout.members,!0);for(let i of m){let o={u_matrix:i.transform,u_inv_matrix:i.invTransform,u_camera_to_center_distance:p.getCameraToCenterDistance(i.projection),u_viewport_size:[p.width,p.height]};y.draw(d,h.TRIANGLES,r.DepthMode.disabled,r.StencilMode.disabled,n.colorModeForRenderPass(),r.CullFaceMode.disabled,o,a.id,w,_,r.SegmentVector.simpleSegment(0,2*i.circleOffset,i.circleArray.length,i.circleArray.length/2),null,p.zoom)}w.destroy(),_.destroy()}let rb=r.create();function rx(n,i,o,a,s,l,c,u,d,h,p,f){let m=n.context,g=m.gl,v=n.transform,y="map"===u,b="map"===d,x=y&&"point"!==o.layout.get("symbol-placement"),_=y&&!b&&!x,w=void 0!==o.layout.get("symbol-sort-key").constantOr(1),S=!1,T=n.depthModeForSublayer(0,r.DepthMode.ReadOnly),E=[r.mercatorXfromLng(v.center.lng),r.mercatorYfromLat(v.center.lat)],k=o.layout.get("text-variable-anchor"),C="globe"===v.projection.name,P=[],O=[0,-1,0],j=O;for(let u of((C||v.mercatorFromTransition)&&!y&&(j=function(n){let i=n._camera.getWorldToCamera(n.worldSize,1),o=r.multiply([],i,n.globeMatrix);r.invert(o,o);let a=[0,0,0],s=[0,1,0,0];return r.transformMat4$1(s,s,o),a[0]=s[0],a[1]=s[1],a[2]=s[2],r.normalize(a,a),a}(v)),a)){let a;let d=i.getTile(u),p=d.getBucket(o);if(!p||"mercator"===p.projection.name&&C)continue;let f=s?p.text:p.icon;if(!f||p.fullyClipped||!f.segments.get().length)continue;let m=f.programConfigurations.get(o.id),T=s||p.sdfIcons,A=s?p.textSizeData:p.iconSizeData,M=b||0!==v.pitch,I=r.evaluateSizeForZoom(A,v.zoom),Z,R,D,L,z=[0,0],B=null;if(s)R=d.glyphAtlasTexture,D=g.LINEAR,Z=d.glyphAtlasTexture.size,p.iconsInText&&(z=d.imageAtlasTexture.size,B=d.imageAtlasTexture,L=M||n.options.rotating||n.options.zooming||"composite"===A.kind||"camera"===A.kind?g.LINEAR:g.NEAREST);else{let r=1!==o.layout.get("icon-size").constantOr(0)||p.iconsNeedLinear;R=d.imageAtlasTexture,D=T||n.options.rotating||n.options.zooming||r||M?g.LINEAR:g.NEAREST,Z=d.imageAtlasTexture.size}let F="globe"===p.projection.name,N=F?j:O,U=F?r.globeToMercatorTransition(v.zoom):0,V=e7(u,p.getProjection(),v),q=v.calculatePixelsToTileUnitsMatrix(d),$=eH(V,d.tileID.canonical,b,y,v,p.getProjection(),q),G=n.terrain&&b&&x?r.invert(r.create(),$):rb,W=eY(V,d.tileID.canonical,b,y,v,p.getProjection(),q),H=k&&p.hasTextData(),X="none"!==o.layout.get("icon-text-fit")&&H&&p.hasIconData();if(x){let i=v.elevation,o=i?i.getAtTileOffsetFunc(u,v.center.lat,v.worldSize,p.getProjection()):null,a=eX(V,d.tileID.canonical,b,y,v,p.getProjection(),q);!function(n,i,o,a,s,l,c,u,d,h){let p=o.transform,f=a?n.textSizeData:n.iconSizeData,m=r.evaluateSizeForZoom(f,o.transform.zoom),g="globe"===p.projection.name,v=[256/o.width*2+1,256/o.height*2+1],y=a?n.text.dynamicLayoutVertexArray:n.icon.dynamicLayoutVertexArray;y.clear();let b=null;g&&(b=a?n.text.globeExtVertexArray:n.icon.globeExtVertexArray);let x=n.lineVertexArray,_=a?n.text.placedSymbolArray:n.icon.placedSymbolArray,w=o.transform.width/o.transform.height,S,T=!1;for(let a=0;a<_.length;a++){let g=_.get(a),{numGlyphs:E,writingMode:k}=g;if(k!==r.WritingMode.vertical||T||S===r.WritingMode.horizontal||(T=!0),S=k,(g.hidden||k===r.WritingMode.vertical)&&!T){e5(E,y);continue}T=!1;let C=new r.Point(g.tileAnchorX,g.tileAnchorY),{x:P,y:O,z:j}=p.projection.projectTilePoint(C.x,C.y,h.canonical);if(d){let[r,n,i]=d(C);P+=r,O+=n,j+=i}let A=[P,O,j,1];if(r.transformMat4$1(A,A,i),!function(r,n){let i=r[0]/r[3],o=r[1]/r[3];return i>=-n[0]&&i<=n[0]&&o>=-n[1]&&o<=n[1]}(A,v)){e5(E,y);continue}let M=eJ(o.transform.cameraToCenterDistance,A[3]),I=r.evaluateSizeForFeature
222(f,m,g),Z=c?I/M:I*M,R=eK(P,O,j,s);if(R[3]<=0){e5(E,y);continue}let D={},L=c?null:d,z=e1(g,Z,!1,u,i,s,l,n.glyphOffsetArray,x,y,b,R,C,D,w,L,p.projection,h,c);T=z.useVertical,L&&z.needsFlipping&&(D={}),(z.notEnoughRoom||T||z.needsFlipping&&e1(g,Z,!0,u,i,s,l,n.glyphOffsetArray,x,y,b,R,C,D,w,L,p.projection,h,c).notEnoughRoom)&&e5(E,y)}a?(n.text.dynamicLayoutVertexBuffer.updateData(y),b&&n.text.globeExtVertexBuffer.updateData(b)):(n.icon.dynamicLayoutVertexBuffer.updateData(y),b&&n.icon.globeExtVertexBuffer.updateData(b))}(p,V,n,s,a,W,b,h,o,u)}let Y=x||s&&k||X,K=n.translatePosMatrix(V,d,l,c),J=Y?rb:$,Q=n.translatePosMatrix(W,d,l,c,!0),ee=p.getProjection().createInversionMatrix(v,u.canonical),et=[];n.terrainRenderModeElevated()&&b&&et.push("PITCH_WITH_MAP_TERRAIN"),F&&et.push("PROJECTION_GLOBE_VIEW"),Y&&et.push("PROJECTED_POS_ON_VIEWPORT");let er=T&&0!==o.paint.get(s?"text-halo-width":"icon-halo-width").constantOr(1);a=T?p.iconsInText?rf(A.kind,I,_,b,n,K,J,Q,Z,z,u,U,E,ee,N,p.getProjection()):rp(A.kind,I,_,b,n,K,J,Q,s,Z,!0,u,U,E,ee,N,p.getProjection()):rh(A.kind,I,_,b,n,K,J,Q,s,Z,u,U,E,ee,N,p.getProjection());let en={program:n.useProgram(p.iconsInText&&s?"symbolTextAndIcon":T?"symbolSDF":"symbolIcon",m,et),buffers:f,uniformValues:a,atlasTexture:R,atlasTextureIcon:B,atlasInterpolation:D,atlasInterpolationIcon:L,isSDF:T,hasHalo:er,tile:d,labelPlaneMatrixInv:G};if(w&&p.canOverlap){S=!0;let n=f.segments.get();for(let i of n)P.push({segments:new r.SegmentVector([i]),sortKey:i.sortKey,state:en})}else P.push({segments:f.segments,sortKey:0,state:en})}for(let r of(S&&P.sort((r,n)=>r.sortKey-n.sortKey),P)){let i=r.state;if(n.terrain&&n.terrain.setupElevationDraw(i.tile,i.program,{useDepthForOcclusion:!C,labelPlaneMatrixInv:i.labelPlaneMatrixInv}),m.activeTexture.set(g.TEXTURE0),i.atlasTexture.bind(i.atlasInterpolation,g.CLAMP_TO_EDGE),i.atlasTextureIcon&&(m.activeTexture.set(g.TEXTURE1),i.atlasTextureIcon&&i.atlasTextureIcon.bind(i.atlasInterpolationIcon,g.CLAMP_TO_EDGE)),i.isSDF){let a=i.uniformValues;i.hasHalo&&(a.u_is_halo=1,r_(i.buffers,r.segments,o,n,i.program,T,p,f,a)),a.u_is_halo=0}r_(i.buffers,r.segments,o,n,i.program,T,p,f,i.uniformValues)}}function r_(n,i,o,a,s,l,c,u,d){let h=a.context,p=[n.dynamicLayoutVertexBuffer,n.opacityVertexBuffer,n.globeExtVertexBuffer];s.draw(h,h.gl.TRIANGLES,l,c,u,r.CullFaceMode.disabled,d,o.id,n.layoutVertexBuffer,n.indexBuffer,i,o.paint,a.transform.zoom,n.programConfigurations.get(o.id),p)}function rw(n,i,o,a,s,l,c){let u,d,h,p,f;let m=n.context.gl,g=o.paint.get("fill-pattern"),v=g&&g.constantOr(1);for(let y of(c?(d=v&&!o.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",u=m.LINES):(d=v?"fillPattern":"fill",u=m.TRIANGLES),a)){let a=i.getTile(y);if(v&&!a.patternsLoaded())continue;let b=a.getBucket(o);if(!b)continue;n.prepareDrawTile();let x=b.programConfigurations.get(o.id),_=n.useProgram(d,x);v&&(n.context.activeTexture.set(m.TEXTURE0),a.imageAtlasTexture.bind(m.LINEAR,m.CLAMP_TO_EDGE),x.updatePaintBuffers());let w=g.constantOr(null);if(w&&a.imageAtlas){let r=a.imageAtlas.patternPositions[w.toString()];r&&x.setConstantPatternPositions(r)}let S=n.translatePosMatrix(y.projMatrix,a,o.paint.get("fill-translate"),o.paint.get("fill-translate-anchor"));if(c){p=b.indexBuffer2,f=b.segments2;let r=n.terrain&&n.terrain.renderingToTexture?n.terrain.drapeBufferSize:[m.drawingBufferWidth,m.drawingBufferHeight];h="fillOutlinePattern"===d&&v?t8(S,n,a,r):t6(S,r)}else p=b.indexBuffer,f=b.segments,h=v?t5(S,n,a):t4(S);n.prepareDrawProgram(n.context,_,y.toUnwrapped()),_.draw(n.context,u,s,n.stencilModeForClipping(y),l,r.CullFaceMode.disabled,h,o.id,b.layoutVertexBuffer,p,f,o.paint,n.transform.zoom,x)}}function rS(n,i,o,a,s,l,c){let u=n.context,d=u.gl,h=n.transform,p=o.paint.get("fill-extrusion-pattern"),f=p.constantOr(1),m=o.paint.get("fill-extrusion-opacity"),g=[o.paint.get("fill-extrusion-ambient-occlusion-intensity"),o.paint.get("fill-extrusion-ambient-occlusion-radius")],v=o.layout.get("fill-extrusion-edge-radius"),y=v>0&&!o.paint.get("fill-extrusion-rounded-roof"),b=y?0:v,x="globe"===h.projection.name?r.fillExtrusionHeightLift():0,_="globe"===h.projection.name,w=_?r.globeToMercatorTransition(h.zoom):0,S=[r.mercatorXfromLng(h.center.lng),r.mercatorYfromLat(h.center.lat)],T=[];for(let v of(_&&T.push("PROJECTION_GLOBE_VIEW"),g[0]>0&&T.push("FAUX_AO"),y&&T.push("ZERO_ROOF_RADIUS"),a)){let a=i.getTile(v),y=a.getBucket(o);if(!y||y.projection.name!==h.projection.name)continue;let E=y.programConfigurations.get(o.id),k=n.useProgram(f?"fillExtrusionPattern":"fillExtrusion",E,T);if(n.terrain){let s=n.terrain;if(n.style.terrainSetForDrapingOnly())s.setupElevationDraw(a,k,{useMeterToDem:!0});else{if(!y.enableTerrain)continue;if(s.setupElevationDraw(a,k,{useMeterToDem:!0}),function(n,i,o,a,s,l){let c,u,d;let h=[n=>{let i=n.canonical.x-1,o=n.wrap;return i<0&&(i=(1<<n.canonical.z)-1,o--),new r.OverscaledTileID(n.overscaledZ,o,n.canonical.z,i,n.canonical.y)},n=>{let i=n.canonical.x+1,o=n.wrap;return i===1<<n.canonical.z&&(i=0,o++),new r.OverscaledTileID(n.overscaledZ,o,n.canonical.z,i,n.canonical.y)},n=>new r.OverscaledTileID(n.overscaledZ,n.wrap,n.canonical.z,n.canonical.x,(0===n.canonical.y?1<<n.canonical.z:n.canonical.y)-1),n=>new r.OverscaledTileID(n.overscaledZ,n.wrap,n.canonical.z,n.canonical.x,n.canonical.y===(1<<n.canonical.z)-1?0:n.canonical.y+1)],p=r=>{let n=i.getSource().minzoom,o=r=>{let n=i.getTileByID(r);if(n&&n.hasData())return n.getBucket(s)};
222for(let i of[0,-1,1]){if(r.overscaledZ+i<n)continue;let a=o(r.calculateScaledKey(r.overscaledZ+i));if(a)return a}},f=[0,0,0],m=(n,i)=>(f[0]=Math.min(n.min.y,i.min.y),f[1]=Math.max(n.max.y,i.max.y),f[2]=r.EXTENT-i.min.x>n.max.x?i.min.x-r.EXTENT:n.max.x,f),g=(n,i)=>(f[0]=Math.min(n.min.x,i.min.x),f[1]=Math.max(n.max.x,i.max.x),f[2]=r.EXTENT-i.min.y>n.max.y?i.min.y-r.EXTENT:n.max.y,f),v=[(r,n)=>m(r,n),(r,n)=>m(n,r),(r,n)=>g(r,n),(r,n)=>g(n,r)],y=new r.Point(0,0),b=(n,i,a,s,h)=>{let p=[[s?a:n,s?n:a,0],[s?a:i,s?i:a,0]],f=h<0?r.EXTENT+h:h,m=[s?f:(n+i)/2,s?(n+i)/2:f,0];return 0===a&&h<0||0!==a&&h>0?l.getForTilePoints(d,[m],!0,u):p.push(m),l.getForTilePoints(o,p,!0,c),Math.max(p[0][2],p[1][2],m[2])/l.exaggeration()};for(let n=0;n<4;n++){let i=(n<2?1:5)-n,s=a.borders[n];if(0===s.length)continue;let f=d=h[n](o),m=p(f);if(!(m&&m instanceof r.FillExtrusionBucket&&m.enableTerrain)||a.borderDoneWithNeighborZ[n]===m.canonical.z&&m.borderDoneWithNeighborZ[i]===a.canonical.z||!(u=l.findDEMTileFor(f))||!u.dem)continue;if(!c){let r=l.findDEMTileFor(o);if(!r||!r.dem)return;c=r}let g=m.borders[i],x=0,_=m.borderDoneWithNeighborZ[i]!==a.canonical.z;if(a.canonical.z===m.canonical.z){for(let o=0;o<s.length;o++){let l;let c=a.featuresOnBorder[s[o]],u=c.borders[n];for(;x<g.length&&!((l=m.featuresOnBorder[g[x]]).borders[i][1]>u[0]+3);)_&&m.encodeCentroid(void 0,l,!1),x++;if(l&&x<g.length){let o=x,s=0;for(;!(l.borders[i][0]>u[1]-3)&&(s++,++x!==g.length);)l=m.featuresOnBorder[g[x]];if(l=m.featuresOnBorder[g[o]],c.intersectsCount()>1||l.intersectsCount()>1||1!==s){1!==s&&(x=o),a.encodeCentroid(void 0,c,!1),_&&m.encodeCentroid(void 0,l,!1);continue}let d=v[n](c,l),h=n%2?r.EXTENT-1:0;y.x=b(d[0],Math.min(r.EXTENT-1,d[1]),h,n<2,d[2]),y.y=0,a.encodeCentroid(y,c,!1),_&&m.encodeCentroid(y,l,!1)}else a.encodeCentroid(void 0,c,!1)}a.borderDoneWithNeighborZ[n]=m.canonical.z,a.needsCentroidUpdate=!0,_&&(m.borderDoneWithNeighborZ[i]=a.canonical.z,m.needsCentroidUpdate=!0)}else{for(let r of s)a.encodeCentroid(void 0,a.featuresOnBorder[r],!1);if(_){for(let r of g)m.encodeCentroid(void 0,m.featuresOnBorder[r],!1);m.borderDoneWithNeighborZ[i]=a.canonical.z,m.needsCentroidUpdate=!0}a.borderDoneWithNeighborZ[n]=m.canonical.z,a.needsCentroidUpdate=!0}}(a.needsCentroidUpdate||!a.centroidVertexBuffer&&0!==a.centroidVertexArray.length)&&a.uploadCentroid(n)}(u,i,v,y,o,s),!y.centroidVertexBuffer){let r=k.attributes.a_centroid_pos;void 0!==r&&d.vertexAttrib2f(r,0,0)}}}f&&(n.context.activeTexture.set(d.TEXTURE0),a.imageAtlasTexture.bind(d.LINEAR,d.CLAMP_TO_EDGE),E.updatePaintBuffers());let C=p.constantOr(null);if(C&&a.imageAtlas){let r=a.imageAtlas.patternPositions[C.toString()];r&&E.setConstantPatternPositions(r)}let P=n.translatePosMatrix(v.projMatrix,a,o.paint.get("fill-extrusion-translate"),o.paint.get("fill-extrusion-translate-anchor")),O=h.projection.createInversionMatrix(h,v.canonical),j=o.paint.get("fill-extrusion-vertical-gradient"),A=f?t3(P,n,j,m,g,b,v,a,x,w,S,O):t2(P,n,j,m,g,b,v,x,w,S,O);n.prepareDrawProgram(u,k,v.toUnwrapped());let M=[];n.terrain&&M.push(y.centroidVertexBuffer),_&&M.push(y.layoutVertexExtBuffer),k.draw(u,u.gl.TRIANGLES,s,l,c,r.CullFaceMode.backCCW,A,o.id,y.layoutVertexBuffer,y.indexBuffer,y.segments,o.paint,n.transform.zoom,E,M)}}let rT=new r.Color(1,0,0,1),rE=new r.Color(0,1,0,1),rk=new r.Color(0,0,1,1),rC=new r.Color(1,0,1,1),rP=new r.Color(0,1,1,1);function rO(r,n,i,o){rA(r,0,n+i/2,r.transform.width,i,o)}function rj(r,n,i,o){rA(r,n-i/2,0,i,r.transform.height,o)}function rA(n,i,o,a,s,l){let c=n.context,u=c.gl;u.enable(u.SCISSOR_TEST),u.scissor(i*r.exported.devicePixelRatio,o*r.exported.devicePixelRatio,a*r.exported.devicePixelRatio,s*r.exported.devicePixelRatio),c.clear({color:l}),u.disable(u.SCISSOR_TEST)}let rM=r.createLayout([{name:"a_pos_3f",components:3,type:"Float32"}]),{members:rI}=rM;function rZ(r,n,i,o){r.emplaceBack(n,i,o)}class rR{constructor(n){this.vertexArray=new r.StructArrayLayout3f12,this.indices=new r.StructArrayLayout3ui6,rZ(this.vertexArray,-1,-1,1),rZ(this.vertexArray,1,-1,1),rZ(this.vertexArray,-1,1,1),rZ(this.vertexArray,1,1,1),rZ(this.vertexArray,-1,-1,-1),rZ(this.vertexArray,1,-1,-1),rZ(this.vertexArray,-1,1,-1),rZ(this.vertexArray,1,1,-1),this.indices.emplaceBack(5,1,3),this.indices.emplaceBack(3,7,5),this.indices.emplaceBack(6,2,0),this.indices.emplaceBack(0,4,6),this.indices.emplaceBack(2,6,7),this.indices.emplaceBack(7,3,2),this.indices.emplaceBack(5,4,0),this.indices.emplaceBack(0,1,5),this.indices.emplaceBack(0,2,3),this.indices.emplaceBack(3,1,0),this.indices.emplaceBack(7,6,4),this.indices.emplaceBack(4,5,7),this.vertexBuffer=n.createVertexBuffer(this.vertexArray,rI),this.indexBuffer=n.createIndexBuffer(this.indices),this.segment=r.SegmentVector.simpleSegment(0,0,36,12)}}function rD(n,i,o,a,s,l){let c=n.gl,u=i.paint.get("sky-atmosphere-color"),d=i.paint.get("sky-atmosphere-halo-color"),h=i.paint.get("sky-atmosphere-sun-intensity"),p={u_matrix_3f:r.fromMat4(r.create$1(),a),u_sun_direction:s,u_sun_intensity:h,u_color_tint_r:[u.r,u.g,u.b,u.a],u_color_tint_m:[d.r,d.g,d.b,d.a],u_luminance:5e-5};c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_CUBE_MAP_POSITIVE_X+l,i.skyboxTexture,0),o.draw(n,c.TRIANGLES,r.DepthMode.disabled,r.StencilMode.disabled,r.ColorMode.unblended,r.CullFaceMode.frontCW,p,"skyboxCapture",i.skyboxGeometry.vertexBuffer,i.skyboxGeometry.indexBuffer,i.skyboxGeometry.segment)}let rL=r.createLayout([{type:"Float32",name:"a_pos",components:3},{type:"Float32",name:"a_uv",components:2}]);class rz{constructor(n){let i=new r.StructArrayLayout5f20;i.emplaceBack(-1,1,1,0,0),i.emplaceBack(1,1,1,1,0),i.emplaceBack(1,-1,1,1,1),i.emplaceBack(-1,-1,1,0,1);let o=new r.StructArrayLayout3ui6;o.emplaceBack(0,1,2),o.emplaceBack(2,3,0),this.vertexBuffer=n.createVertexBuffer(i,rL.members),this.indexBuffer=n.createIndexBuffer(o),this.segments=r.SegmentVector.simpleSegment(0,0,4,2)}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy()}}
222let rB={symbol:function(n,i,o,a,s){if("translucent"!==n.renderPass)return;let l=r.StencilMode.disabled,c=n.colorModeForRenderPass();o.layout.get("text-variable-anchor")&&function(n,i,o,a,s,l,c){let u=i.transform,d="map"===s,h="map"===l;for(let i of n){let n=a.getTile(i),s=n.getBucket(o);if(!s||!s.text||!s.text.segments.get().length)continue;let l=r.evaluateSizeForZoom(s.textSizeData,u.zoom),p=e7(i,s.getProjection(),u),f=u.calculatePixelsToTileUnitsMatrix(n),m=eH(p,n.tileID.canonical,h,d,u,s.getProjection(),f),g="none"!==o.layout.get("icon-text-fit")&&s.hasIconData();if(l){let o=Math.pow(2,u.zoom-n.tileID.overscaledZ);(function(n,i,o,a,s,l,c,u,d,h,p){let f=n.text.placedSymbolArray,m=n.text.dynamicLayoutVertexArray,g=n.icon.dynamicLayoutVertexArray,v={},y=n.getProjection(),b=e7(u,y,l),x=l.elevation,_=y.upVectorScale(u.canonical,l.center.lat,l.worldSize).metersToTile;m.clear();for(let g=0;g<f.length;g++){let w=f.get(g),{tileAnchorX:S,tileAnchorY:T,numGlyphs:E}=w,k=w.hidden||!w.crossTileID||n.allowVerticalPlacement&&!w.placedOrientation?null:a[w.crossTileID];if(k){let a=0,f=0,g=0;if(x){let r=x?x.getAtTileOffset(u,S,T):0,[n,i,o]=y.upVector(u.canonical,S,T);a=r*n*_,f=r*i*_,g=r*o*_}let[C,P,O,j]=eK(w.projectedAnchorX+a,w.projectedAnchorY+f,w.projectedAnchorZ+g,o?b:c),A=eJ(l.getCameraToCenterDistance(y),j),M=s.evaluateSizeForFeature(n.textSizeData,h,w)*A/r.ONE_EM;o&&(M*=n.tilePixelRatio/d);let I=function({width:n,height:i,anchor:o,textOffset:a,textScale:s},l){let{horizontalAlign:c,verticalAlign:u}=r.getAnchorAlignment(o),d=r.evaluateVariableOffset(o,a);return new r.Point((-(c-.5)*n/s+d[0])*l,(-(u-.5)*i/s+d[1])*l)}(k,M);o?({x:C,y:P,z:O}=y.projectTilePoint(S+I.x,T+I.y,u.canonical),[C,P,O]=eK(C+a,P+f,O+g,c)):(i&&I._rotate(-l.angle),C+=I.x,P+=I.y,O=0);let Z=n.allowVerticalPlacement&&w.placedOrientation===r.WritingMode.vertical?Math.PI/2:0;for(let n=0;n<E;n++)r.addDynamicAttributes(m,C,P,O,Z);p&&w.associatedIconIndex>=0&&(v[w.associatedIconIndex]={x:C,y:P,z:O,angle:Z})}else e5(E,m)}if(p){g.clear();let i=n.icon.placedSymbolArray;for(let n=0;n<i.length;n++){let o=i.get(n),{numGlyphs:a}=o,s=v[n];if(o.hidden||!s)e5(a,g);else{let{x:n,y:i,z:o,angle:l}=s;for(let s=0;s<a;s++)r.addDynamicAttributes(g,n,i,o,l)}}n.icon.dynamicLayoutVertexBuffer.updateData(g)}n.text.dynamicLayoutVertexBuffer.updateData(m)})(s,d,h,c,r.symbolSize,u,m,i,o,l,g)}}}(a,n,o,i,o.layout.get("text-rotation-alignment"),o.layout.get("text-pitch-alignment"),s),0!==o.paint.get("icon-opacity").constantOr(1)&&rx(n,i,o,a,!1,o.paint.get("icon-translate"),o.paint.get("icon-translate-anchor"),o.layout.get("icon-rotation-alignment"),o.layout.get("icon-pitch-alignment"),o.layout.get("icon-keep-upright"),l,c),0!==o.paint.get("text-opacity").constantOr(1)&&rx(n,i,o,a,!0,o.paint.get("text-translate"),o.paint.get("text-translate-anchor"),o.layout.get("text-rotation-alignment"),o.layout.get("text-pitch-alignment"),o.layout.get("text-keep-upright"),l,c),i.map.showCollisionBoxes&&(ry(n,i,o,a,o.paint.get("text-translate"),o.paint.get("text-translate-anchor"),!0),ry(n,i,o,a,o.paint.get("icon-translate"),o.paint.get("icon-translate-anchor"),!1))},circle:function(n,i,o,a){if("translucent"!==n.renderPass)return;let s=o.paint.get("circle-opacity"),l=o.paint.get("circle-stroke-width"),c=o.paint.get("circle-stroke-opacity"),u=void 0!==o.layout.get("circle-sort-key").constantOr(1);if(0===s.constantOr(1)&&(0===l.constantOr(1)||0===c.constantOr(1)))return;let d=n.context,h=d.gl,p=n.transform,f=n.depthModeForSublayer(0,r.DepthMode.ReadOnly),m=r.StencilMode.disabled,g=n.colorModeForRenderPass(),v="globe"===p.projection.name,y=[r.mercatorXfromLng(p.center.lng),r.mercatorYfromLat(p.center.lat)],b=[];for(let s=0;s<a.length;s++){let l=a[s],c=i.getTile(l),d=c.getBucket(o);if(!d||d.projection.name!==p.projection.name)continue;let h=d.programConfigurations.get(o.id),f=re(o);v&&f.push("PROJECTION_GLOBE_VIEW");let m=n.useProgram("circle",h,f),g=d.layoutVertexBuffer,x=d.globeExtVertexBuffer,_=d.indexBuffer,w=p.projection.createInversionMatrix(p,l.canonical),S={programConfiguration:h,program:m,layoutVertexBuffer:g,globeExtVertexBuffer:x,indexBuffer:_,uniformValues:t7(n,l,c,w,y,o),tile:c};if(u){let n=d.segments.get();for(let i of n)b.push({segments:new r.SegmentVector([i]),sortKey:i.sortKey,state:S})}else b.push({segments:d.segments,sortKey:0,state:S})}u&&b.sort((r,n)=>r.sortKey-n.sortKey);let x={useDepthForOcclusion:!v};for(let i of b){let{programConfiguration:a,program:s,layoutVertexBuffer:l,globeExtVertexBuffer:c,indexBuffer:u,uniformValues:v,tile:y}=i.state,b=i.segments;n.terrain&&n.terrain.setupElevationDraw(y,s,x),n.prepareDrawProgram(d,s,y.tileID.toUnwrapped()),s.draw(d,h.TRIANGLES,f,m,g,r.CullFaceMode.disabled,v,o.id,l,u,b,o.paint,p.zoom,a,[c])}},heatmap:function(n,i,o,a){if(0!==o.paint.get("heatmap-opacity")){if("offscreen"===n.renderPass){let s=n.context,l=s.gl,c=r.StencilMode.disabled,u=new r.ColorMode([l.ONE,l.ONE],r.Color.transparent,[!0,!0,!0,!0]);(function(r,n,i,o){let a=r.gl,s=n.width*o,l=n.height*o;r.activeTexture.set(a.TEXTURE1),r.viewport.set([0,0,s,l]);let c=i.heatmapFbo;if(!c||c&&(c.width!==s||c.height!==l)){c&&c.destroy();let n=a.createTexture();a.bindTexture(a.TEXTURE_2D,n),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.LINEAR),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.LINEAR),c=i.heatmapFbo=r.createFramebuffer(s,l,!1),function(r,n,i,o,a,s){let l=r.gl;l.texImage2D(l.TEXTURE_2D,0,r.isWebGL2&&r.extRenderToTextureHalfFloat?l.RGBA16F:l.RGBA,a,s,0,l.RGBA,r.extRenderToTextureHalfFloat?r.isWebGL2?l.HALF_FLOAT:r.extTextureHalfFloat.HALF_FLOAT_OES:l.UNSIGNED_BYTE,null),o.colorAttachment.set(i)}(r,0,n,c,s,l)}else a.bindTexture(a.TEXTURE_2D,c.colorAttachment.get()),r.bindFramebuffer.set(c.framebuffer)})(s,n,o,"globe"===n.transform.projection.name?.5:.25),s.clear({color:r.Color.transparent});let d=n.transform,h="globe"===d.projection.name,p=h?["PROJECTION_GLOBE_VIEW"]:null,f=h?r.CullFaceMode.frontCCW:r.CullFaceMode.disabled,m=[r.mercatorXfromLng(d.center.lng),r.mercatorYfromLat(
222d.center.lat)];for(let g=0;g<a.length;g++){let v=a[g];if(i.hasRenderableParent(v))continue;let y=i.getTile(v),b=y.getBucket(o);if(!b||b.projection.name!==d.projection.name)continue;let x=b.programConfigurations.get(o.id),_=n.useProgram("heatmap",x,p),{zoom:w}=n.transform;n.terrain&&n.terrain.setupElevationDraw(y,_),n.prepareDrawProgram(s,_,v.toUnwrapped());let S=d.projection.createInversionMatrix(d,v.canonical);_.draw(s,l.TRIANGLES,r.DepthMode.disabled,c,u,f,ri(n,v,y,S,m,w,o.paint.get("heatmap-intensity")),o.id,b.layoutVertexBuffer,b.indexBuffer,b.segments,o.paint,n.transform.zoom,x,h?[b.globeExtVertexBuffer]:null)}s.viewport.set([0,0,n.width,n.height])}else"translucent"===n.renderPass&&(n.context.setColorMode(n.colorModeForRenderPass()),function(n,i){let o=n.context,a=o.gl,s=i.heatmapFbo;if(!s)return;o.activeTexture.set(a.TEXTURE0),a.bindTexture(a.TEXTURE_2D,s.colorAttachment.get()),o.activeTexture.set(a.TEXTURE1);let l=i.colorRampTexture;l||(l=i.colorRampTexture=new r.Texture(o,i.colorRamp,a.RGBA)),l.bind(a.LINEAR,a.CLAMP_TO_EDGE),n.useProgram("heatmapTexture").draw(o,a.TRIANGLES,r.DepthMode.disabled,r.StencilMode.disabled,n.colorModeForRenderPass(),r.CullFaceMode.disabled,{u_image:0,u_color_ramp:1,u_opacity:i.paint.get("heatmap-opacity")},i.id,n.viewportBuffer,n.quadTriangleIndexBuffer,n.viewportSegments,i.paint,n.transform.zoom)}(n,o))}},line:function(n,i,o,a){if("translucent"!==n.renderPass)return;let s=o.paint.get("line-opacity"),l=o.paint.get("line-width");if(0===s.constantOr(1)||0===l.constantOr(1))return;let c=n.depthModeForSublayer(0,r.DepthMode.ReadOnly),u=n.colorModeForRenderPass(),d=n.terrain&&n.terrain.renderingToTexture?1:r.exported.devicePixelRatio,h=o.paint.get("line-dasharray"),p=h.constantOr(1),f=o.layout.get("line-cap"),m=o.paint.get("line-pattern"),g=m.constantOr(1),v=o.paint.get("line-gradient"),y=g?"linePattern":"line",b=n.context,x=b.gl,_=(r=>{let n=[];rc(r)&&n.push("RENDER_LINE_DASH"),r.paint.get("line-gradient")&&n.push("RENDER_LINE_GRADIENT");let i=r.paint.get("line-trim-offset");0===i[0]&&0===i[1]||n.push("RENDER_LINE_TRIM_OFFSET");let o=r.paint.get("line-pattern").constantOr(1),a=1!==r.paint.get("line-opacity").constantOr(1);return!o&&a&&n.push("RENDER_LINE_ALPHA_DISCARD"),n})(o),w=_.includes("RENDER_LINE_ALPHA_DISCARD");for(let s of(n.terrain&&n.terrain.clipOrMaskOverlapStencilType()&&(w=!1),a)){let a=i.getTile(s);if(g&&!a.patternsLoaded())continue;let l=a.getBucket(o);if(!l)continue;n.prepareDrawTile();let S=l.programConfigurations.get(o.id),T=n.useProgram(y,S,_),E=m.constantOr(null);if(E&&a.imageAtlas){let r=a.imageAtlas.patternPositions[E.toString()];r&&S.setConstantPatternPositions(r)}let k=h.constantOr(null),C=f.constantOr(null);if(!g&&k&&C&&a.lineAtlas){let r=a.lineAtlas.getDash(k,C);r&&S.setConstantPatternPositions(r)}let[P,O]=o.paint.get("line-trim-offset");("round"===C||"square"===C)&&P!==O&&(0===P&&(P-=1),1===O&&(O+=1));let j=n.terrain?s.projMatrix:null,A=g?ra(n,a,o,j,d):ro(n,a,o,j,l.lineClipsArray.length,d,[P,O]);if(v){let a=l.gradients[o.id],c=a.texture;if(o.gradientVersion!==a.version){let u=256;if(o.stepInterpolant){let o=i.getSource().maxzoom,a=s.canonical.z===o?Math.ceil(1<<n.transform.maxZoom-s.canonical.z):1;u=r.clamp(r.nextPowerOfTwo(l.maxLineLength/r.EXTENT*1024*a),256,b.maxTextureSize)}a.gradient=r.renderColorRamp({expression:o.gradientExpression(),evaluationKey:"lineProgress",resolution:u,image:a.gradient||void 0,clips:l.lineClipsArray}),a.texture?a.texture.update(a.gradient):a.texture=new r.Texture(b,a.gradient,x.RGBA),a.version=o.gradientVersion,c=a.texture}b.activeTexture.set(x.TEXTURE1),c.bind(o.stepInterpolant?x.NEAREST:x.LINEAR,x.CLAMP_TO_EDGE)}p&&(b.activeTexture.set(x.TEXTURE0),a.lineAtlasTexture.bind(x.LINEAR,x.REPEAT),S.updatePaintBuffers()),g&&(b.activeTexture.set(x.TEXTURE0),a.imageAtlasTexture.bind(x.LINEAR,x.CLAMP_TO_EDGE),S.updatePaintBuffers()),n.prepareDrawProgram(b,T,s.toUnwrapped());let M=i=>{T.draw(b,x.TRIANGLES,c,i,u,r.CullFaceMode.disabled,A,o.id,l.layoutVertexBuffer,l.indexBuffer,l.segments,o.paint,n.transform.zoom,S,[l.layoutVertexBuffer2])};if(w){let i=n.stencilModeForClipping(s).ref;0===i&&n.terrain&&b.clear({stencil:0});let o={func:x.EQUAL,mask:255};A.u_alpha_discard_threshold=.8,M(new r.StencilMode(o,i,255,x.KEEP,x.KEEP,x.INVERT)),A.u_alpha_discard_threshold=0,M(new r.StencilMode(o,i,255,x.KEEP,x.KEEP,x.KEEP))}else M(n.stencilModeForClipping(s))}w&&(n.resetStencilClippingMasks(),n.terrain&&b.clear({stencil:0}))},fill:function(n,i,o,a){let s=o.paint.get("fill-color"),l=o.paint.get("fill-opacity");if(0===l.constantOr(1))return;let c=n.colorModeForRenderPass(),u=o.paint.get("fill-pattern"),d=n.opaquePassEnabledForLayer()&&!u.constantOr(1)&&1===s.constantOr(r.Color.transparent).a&&1===l.constantOr(0)?"opaque":"translucent";if(n.renderPass===d){let s=n.depthModeForSublayer(1,"opaque"===n.renderPass?r.DepthMode.ReadWrite:r.DepthMode.ReadOnly);rw(n,i,o,a,s,c,!1)}if("translucent"===n.renderPass&&o.paint.get("fill-antialias")){let s=n.depthModeForSublayer(o.getPaintProperty("fill-outline-color")?2:0,r.DepthMode.ReadOnly);rw(n,i,o,a,s,c,!0)}},"fill-extrusion":function(n,i,o,a){let s=o.paint.get("fill-extrusion-opacity");if(0!==s&&"translucent"===n.renderPass){let l=new r.DepthMode(n.context.gl.LEQUAL,r.DepthMode.ReadWrite,n.depthRangeFor3D);if(1!==s||o.paint.get("fill-extrusion-pattern").constantOr(1))rS(n,i,o,a,l,r.StencilMode.disabled,r.ColorMode.disabled),rS(n,i,o,a,l,n.stencilModeFor3D(),n.colorModeForRenderPass()),n.resetStencilClippingMasks();else{let s=n.colorModeForRenderPass();rS(n,i,o,a,l,r.StencilMode.disabled,s)}}},hillshade:function(n,i,o,a){if("offscreen"!==n.renderPass&&"translucent"!==n.renderPass)return;let s=n.context,l=n.depthModeForSublayer(0,r.DepthMode.ReadOnly),c=n.colorModeForRenderPass(),u=n.terrain&&n.terrain.renderingToTexture,[d,h]="translucent"!==n.renderPass||u?[{},a]:n.stencilConfigForOverlap(a);for(let a of h){let s=i.getTile(a);if(s.needsHillshadePrepare&&"offscreen"===n.renderPass)!function(n,i,o,a,s,l){let c=n.context,u=c.gl;if(!i.dem)return;let d=i.dem;if(c.activeTexture.set(u.TEXTURE1),tB(n,i,d),!i.demTexture)return;i.demTexture.bind(u.NEAREST,u.CLAMP_TO_EDGE);let h=d.dim;c.activeTexture.set(u.TEXTURE0);let p=i.fbo;if(!p){let n=new r.Texture(c,{width:h,height:h,data:null},u.RGBA);n.bind(u.LINEAR,u.CLAMP_TO_EDGE),(p=i.fbo=c.createFramebuffer(h,h,!0)).colorAttachment.set(n.texture)}c.bindFramebuffer.set(p.framebuffer),c.viewport.set([0,0,h,h]);let{tileBoundsBuffer:f,tileBoundsIndexBuffer:m,tileBoundsSegments:g}=n.getMercatorTileBoundsBuffers();n.useProgram("hillshadePrepare").draw(c,u.TRIANGLES,a,s,l,r.CullFaceMode.disabled,((n,i)=>{let o=i.stride,a=r.create();return r.ortho(a,0,r.EXTENT,-r.EXTENT,0,0,1),r.translate(a,a,[0,-r.EXTENT,0]),{u_matrix:a,u_image:1,u_dimension:[o,o],u_zoom:n.overscaledZ,u_unpack:i.unpackVector}})(i.tileID,d),o.id,f,m,g),i.needsHillshadePrepare=!1}(n,s,o,l,r.StencilMode.disabled,c);else if("translucent"===n.renderPass){let i=u&&n.terrain?n.terrain.stencilModeForRTTOverlap(a):d[a.overscaledZ];!function(n,i,o,a,s,l,c){let u=n.context,d=u.gl,h=o.fbo;if(!h)return;n.prepareDrawTile();let p=n.useProgram("hillshade");u.activeTexture.set(d.TEXTURE0),d.bindTexture(d.TEXTURE_2D,h.colorAttachment.get());let f=((n,i,o,a)=>{let s=o.paint.get("hillshade-shadow-color"),l=o.paint.get("hillshade-highlight-color"),c=o.paint.get("hillshade-accent-color"),u=o.paint.get("hillshade-illumination-direction")*(Math.PI/180);"viewport"===o.paint.get("hillshade-illumination-anchor")&&(u-=n.transform.angle);let d=!n.options.moving;return{u_matrix:a||n.transform.calculateProjMatrix(i.tileID.toUnwrapped(),d),u_image:0,u_latrange:function(n,i){let o=Math.pow(2,i.canonical.z),a=i.canonical.y;return[new r.MercatorCoordinate(0,a/o).toLngLat().lat,new r.MercatorCoordinate(0,(a+1)/o).toLngLat().lat]}(0,i.tileID),u_light:[o.paint.get("hillshade-exaggeration"),u],u_shadow:s,u_highlight:l,u_accent:c}})(n,o,a,n.terrain?i.projMatrix:null);n.prepareDrawProgram(u,p,i.toUnwrapped());let{tileBoundsBuffer:m,tileBoundsIndexBuffer:g,tileBoundsSegments:v}=n.getTileBoundsBuffers(o);p.draw(u,d.TRIANGLES,s,l,c,r.CullFaceMode.disabled,f,a.id,m,g,v)}(n,a,s,o,l,i,c)}}s.viewport.set([0,0,n.width,n.height]),n.resetStencilClippingMasks()},raster:function(n,i,o,a,s,l){if("translucent"!==n.renderPass||0===o.paint.get("raster-opacity")||!a.length)return;
222let c=n.context,u=c.gl,d=i.getSource(),h=n.useProgram("raster"),p=n.colorModeForRenderPass(),f=n.terrain&&n.terrain.renderingToTexture,[m,g]=d instanceof eO||f?[{},a]:n.stencilConfigForOverlap(a),v=g[g.length-1].overscaledZ,y=!n.options.moving;for(let a of g){let s,g;let b=f?r.DepthMode.disabled:n.depthModeForSublayer(a.overscaledZ-v,1===o.paint.get("raster-opacity")?r.DepthMode.ReadWrite:r.DepthMode.ReadOnly,u.LESS),x=a.toUnwrapped(),_=i.getTile(a);if(f&&(!_||!_.hasData()))continue;let w=f?a.projMatrix:n.transform.calculateProjMatrix(x,y),S=n.terrain&&f?n.terrain.stencilModeForRTTOverlap(a):m[a.overscaledZ],T=l?0:o.paint.get("raster-fade-duration");_.registerFadeDuration(T);let E=i.findLoadedParent(a,0),k=tH(_,E,i,n.transform,T);n.terrain&&n.terrain.prepareDrawTile();let C="nearest"===o.paint.get("raster-resampling")?u.NEAREST:u.LINEAR;c.activeTexture.set(u.TEXTURE0),_.texture.bind(C,u.CLAMP_TO_EDGE),c.activeTexture.set(u.TEXTURE1),E?(E.texture.bind(C,u.CLAMP_TO_EDGE),s=Math.pow(2,E.tileID.overscaledZ-_.tileID.overscaledZ),g=[_.tileID.canonical.x*s%1,_.tileID.canonical.y*s%1]):_.texture.bind(C,u.CLAMP_TO_EDGE),_.texture.useMipmap&&c.extTextureFilterAnisotropic&&n.transform.pitch>20&&u.texParameterf(u.TEXTURE_2D,c.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,c.extTextureFilterAnisotropicMax);let P=ru(w,g||[0,0],s||1,k,o,d instanceof eO?d.perspectiveTransform:[0,0]);if(n.prepareDrawProgram(c,h,x),d instanceof eO)d.boundsBuffer&&d.boundsSegments&&h.draw(c,u.TRIANGLES,b,r.StencilMode.disabled,p,r.CullFaceMode.disabled,P,o.id,d.boundsBuffer,n.quadTriangleIndexBuffer,d.boundsSegments);else{let{tileBoundsBuffer:i,tileBoundsIndexBuffer:a,tileBoundsSegments:s}=n.getTileBoundsBuffers(_);h.draw(c,u.TRIANGLES,b,S,p,r.CullFaceMode.disabled,P,o.id,i,a,s)}}n.resetStencilClippingMasks()},background:function(n,i,o,a){let s=o.paint.get("background-color"),l=o.paint.get("background-opacity");if(0===l)return;let c=n.context,u=c.gl,d=n.transform,h=d.tileSize,p=o.paint.get("background-pattern");if(n.isPatternMissing(p))return;let f=!p&&1===s.a&&1===l&&n.opaquePassEnabledForLayer()?"opaque":"translucent";if(n.renderPass!==f)return;let m=r.StencilMode.disabled,g=n.depthModeForSublayer(0,"opaque"===f?r.DepthMode.ReadWrite:r.DepthMode.ReadOnly),v=n.colorModeForRenderPass(),y=n.useProgram(p?"backgroundPattern":"background"),b,x=a;for(let f of(x||(x=Object.values(b=n.getBackgroundTiles()).map(r=>r.tileID)),p&&(c.activeTexture.set(u.TEXTURE0),n.imageManager.bind(n.context)),x)){let x=f.toUnwrapped(),_=a?f.projMatrix:n.transform.calculateProjMatrix(x);n.prepareDrawTile();let w=i?i.getTile(f):b?b[f.key]:new r.Tile(f,h,d.zoom,n),S=p?rg(_,l,n,p,{tileID:f,tileSize:h}):rm(_,l,s);n.prepareDrawProgram(c,y,x);let{tileBoundsBuffer:T,tileBoundsIndexBuffer:E,tileBoundsSegments:k}=n.getTileBoundsBuffers(w);y.draw(c,u.TRIANGLES,g,m,v,r.CullFaceMode.disabled,S,o.id,T,E,k)}},sky:function(n,i,o){let a=n.transform,s="mercator"===a.projection.name||"globe"===a.projection.name?1:r.smoothstep(7,8,a.zoom),l=o.paint.get("sky-opacity")*s;if(0===l)return;let c=n.context,u=o.paint.get("sky-type"),d=new r.DepthMode(c.gl.LEQUAL,r.DepthMode.ReadOnly,[0,1]),h=n.frameCounter/1e3%1;"atmosphere"===u?"offscreen"===n.renderPass?o.needsSkyboxCapture(n)&&(function(n,i,o,a){let s=n.context,l=s.gl,c=i.skyboxFbo;if(!c){c=i.skyboxFbo=s.createFramebuffer(32,32,!1),i.skyboxGeometry=new rR(s),i.skyboxTexture=s.gl.createTexture(),l.bindTexture(l.TEXTURE_CUBE_MAP,i.skyboxTexture),l.texParameteri(l.TEXTURE_CUBE_MAP,l.TEXTURE_WRAP_S,l.CLAMP_TO_EDGE),l.texParameteri(l.TEXTURE_CUBE_MAP,l.TEXTURE_WRAP_T,l.CLAMP_TO_EDGE),l.texParameteri(l.TEXTURE_CUBE_MAP,l.TEXTURE_MIN_FILTER,l.LINEAR),l.texParameteri(l.TEXTURE_CUBE_MAP,l.TEXTURE_MAG_FILTER,l.LINEAR);for(let r=0;r<6;++r)l.texImage2D(l.TEXTURE_CUBE_MAP_POSITIVE_X+r,0,l.RGBA,32,32,0,l.RGBA,l.UNSIGNED_BYTE,null)}s.bindFramebuffer.set(c.framebuffer),s.viewport.set([0,0,32,32]);let u=i.getCenter(n,!0),d=n.useProgram("skyboxCapture"),h=new Float64Array(16);r.identity(h),r.rotateY(h,h,-(.5*Math.PI)),rD(s,i,d,h,u,0),r.identity(h),r.rotateY(h,h,.5*Math.PI),rD(s,i,d,h,u,1),r.identity(h),r.rotateX(h,h,-(.5*Math.PI)),rD(s,i,d,h,u,2),r.identity(h),r.rotateX(h,h,.5*Math.PI),rD(s,i,d,h,u,3),r.identity(h),rD(s,i,d,h,u,4),r.identity(h),r.rotateY(h,h,Math.PI),rD(s,i,d,h,u,5),s.viewport.set([0,0,n.width,n.height])}(n,o),o.markSkyboxValid(n)):"sky"===n.renderPass&&function(n,i,o,a,s){let l=n.context,c=l.gl,u=n.transform,d=n.useProgram("skybox");l.activeTexture.set(c.TEXTURE0),c.bindTexture(c.TEXTURE_CUBE_MAP,i.skyboxTexture);let h={u_matrix:u.skyboxMatrix,u_sun_direction:i.getCenter(n,!1),u_cubemap:0,u_opacity:a,u_temporal_offset:s};n.prepareDrawProgram(l,d),d.draw(l,c.TRIANGLES,o,r.StencilMode.disabled,n.colorModeForRenderPass(),r.CullFaceMode.backCW,h,"skybox",i.skyboxGeometry.vertexBuffer,i.skyboxGeometry.indexBuffer,i.skyboxGeometry.segment)}(n,o,d,l,h):"gradient"===u&&"sky"===n.renderPass&&function(n,i,o,a,s){var l,c,u;let d=n.context,h=d.gl,p=n.transform,f=n.useProgram("skyboxGradient");i.skyboxGeometry||(i.skyboxGeometry=new rR(d)),d.activeTexture.set(h.TEXTURE0);let m=i.colorRampTexture;m||(m=i.colorRampTexture=new r.Texture(d,i.colorRamp,h.RGBA)),m.bind(h.LINEAR,h.CLAMP_TO_EDGE);let g=(l=p.skyboxMatrix,c=i.getCenter(n,!1),u=i.paint.get("sky-gradient-radius"),{u_matrix:l,u_color_ramp:0,u_center_direction:c,u_radius:r.degToRad(u),u_opacity:a,u_temporal_offset:s});n.prepareDrawProgram(d,f),f.draw(d,h.TRIANGLES,o,r.StencilMode.disabled,n.colorModeForRenderPass(),r.CullFaceMode.backCW,g,"skyboxGradient",i.skyboxGeometry.vertexBuffer,i.skyboxGeometry.indexBuffer,i.skyboxGeometry.segment)}(n,o,d,l,h)},debug:function(n,i,o){for(let a=0;a<o.length;a++)!function(n,i,o){let a=n.context,s=n.transform,l=a.gl,c="globe"===s.projection.name,u=o.projMatrix;if(c&&r.globeToMercatorTransition(s.zoom)>0){let n=r.transitionTileAABBinECEF(o.canonical,s),i=r.globeDenormalizeECEF(n);u=r.multiply(new Float32Array(16),s.globeMatrix,i),r.multiply(u,s.projMatrix,u)}let d=n.useProgram("debug",null,c?["PROJECTION_GLOBE_VIEW"]:null),h=i.getTileByID(o.key);n.terrain&&n.terrain.setupElevationDraw(h,d);let p=r.DepthMode.disabled,f=r.StencilMode.disabled,m=n.colorModeForRenderPass(),g="$debug";a.activeTexture.set(l.TEXTURE0),n.emptyTexture.bind(l.LINEAR,l.CLAMP_TO_EDGE),c?h._makeGlobeTileDebugBuffers(n.context,s):h._makeDebugTileBoundsBuffers(n.context,s.projection);let v=h._tileDebugBuffer||n.debugBuffer,y=h._tileDebugIndexBuffer||n.debugIndexBuffer,b=h._tileDebugSegments||n.debugSegments;d.draw(a,l.LINE_STRIP,p,f,m,r.CullFaceMode.disabled,rr(u,r.Color.red),g,v,y,b,null,null,null,[h._globeTileDebugBorderBuffer]);let x=h.latestRawTileData,_=Math.floor((x&&x.byteLength||0)/1024),w=i.getTile(o).tileSize,S=512/Math.min(w,512)*(o.overscaledZ/s.zoom)*.5,T=o.canonical.toString();o.overscaledZ!==o.canonical.z&&(T+=` => ${o.overscaledZ}`),function(r,n){r.initDebugOverlayCanvas();let i=r.debugOverlayCanvas,o=r.context.gl,a=r.debugOverlayCanvas.getContext("2d");a.clearRect(0,0,i.width,i.height),a.shadowColor="white",a.shadowBlur=2,a.lineWidth=1.5,a.strokeStyle="white",a.textBaseline="top",a.font="bold 36px Open Sans, sans-serif",a.fillText(n,5,5),a.strokeText(n,5,5),r.debugOverlayTexture.update(i),r.debugOverlayTexture.bind(o.LINEAR,o.CLAMP_TO_EDGE)}(n,T+=` ${_}kb`);let E=h._tileDebugTextBuffer||n.debugBuffer,k=h._tileDebugTextIndexBuffer||n.quadTriangleIndexBuffer,C=h._tileDebugTextSegments||n.debugSegments;d.draw(a,l.TRIANGLES,p,f,r.ColorMode.alphaBlended,r.CullFaceMode.disabled,rr(u,r.Color.transparent,S),g,E,k,C,null,null,null,[h._globeTileDebugTextBuffer])}(n,i,o[a])},custom:function(n,i,o,a){let s=n.context,l=o.implementation;if(!n.transform.projection.unsupportedLayers||!n.transform.projection.unsupportedLayers.includes("custom")||n.terrain&&(n.terrain.renderingToTexture||"offscreen"===n.renderPass)&&o.isLayerDraped()){if("offscreen"===n.renderPass){let i=l.prerender;if(i){if(n.setCustomLayerDefaults(),s.setColorMode(n.colorModeForRenderPass()),"globe"===n.transform.projection.name){let o=n.transform.pointMerc;i.call(l,s.gl,n.transform.customLayerMatrix(),n.transform.getProjection(),n.transform.globeToMercatorMatrix(),r.globeToMercatorTransition(n.transform.zoom),[o.x,o.y],n.transform.pixelsPerMeterRatio)}else i.call(l,s.gl,n.transform.customLayerMatrix());s.setDirty(),n.setBaseState()}}else if("translucent"===n.renderPass){if(n.terrain&&n.terrain.renderingToTexture){let i=l.renderToTile;if(i){let o=a[0].canonical,c=new r.MercatorCoordinate(o.x+a[0].wrap*(1<<o.z),o.y,o.z);s.setDepthMode(r.DepthMode.disabled),s.setStencilMode(r.StencilMode.disabled),s.setColorMode(n.colorModeForRenderPass()),n.setCustomLayerDefaults(),i.call(l,s.gl,c),s.setDirty(),n.setBaseState()}return}n.setCustomLayerDefaults(),s.setColorMode(n.colorModeForRenderPass()),s.setStencilMode(r.StencilMode.disabled);let i="3d"===l.renderingMode?new r.DepthMode(n.context.gl.LEQUAL,r.DepthMode.ReadWrite,n.depthRangeFor3D):n.depthModeForSublayer(0,r.DepthMode.ReadOnly);if(s.setDepthMode(i),"globe"===n.transform.projection.name){let i=n.transform.pointMerc;l.render(s.gl,n.transform.customLayerMatrix(),n.transform.getProjection(),n.transform.globeToMercatorMatrix(),r.globeToMercatorTransition(n.transform.zoom),[i.x,i.y],n.transform.pixelsPerMeterRatio)}else l.render(s.gl,n.transform.customLayerMatrix());s.setDirty(),n.setBaseState(),s.bindFramebuffer.set(null)}}else r.warnOnce("Custom layers are not yet supported with this projection. Use mercator or globe to enable usage of custom layers.")}};class rF{constructor(n,i,o=!1){this.context=new eE(n,o),this.transform=i,this._tileTextures={},this.frameCopies=[],this.loadTimeStamps=[],this.setup(),this.numSublayers=r.SourceCache.maxUnderzooming+r.SourceCache.maxOverzooming+1,this.depthEpsilon=1/65536,this.deferredRenderGpuTimeQueries=[],this.gpuTimers={},this.frameCounter=0,this._backgroundTiles={}}updateTerrain(r,n){let i=!!r&&!!r.terrain&&this.transform.projection.supportsTerrain;if(!(i||this._terrain&&this._terrain.enabled))return;this._terrain||(this._terrain=new tJ(this,r));let o=this._terrain;this.transform.elevation=i?o:null,o.update(r,this.transform,n)}_updateFog(r){let n=r.fog;if(!n||"globe"===this.transform.projection.name||1>n.getOpacity(this.transform.pitch)||.03>n.properties.get("horizon-blend"))return void(this.transform.fogCullDistSq=null);let[i,o]=n.getFovAdjustedRange(this.transform._fov);if(i>o)return void(this.transform.fogCullDistSq=null);let a=i+.78*(o-i);this.transform.fogCullDistSq=a*a}get terrain(){return this.transform._terrainEnabled()&&this._terrain&&this._terrain.enabled?this._terrain:null}resize(n,i){if(this.width=n*r.exported.devicePixelRatio,this.height=i*r.exported.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(let r of this.style.order)this.style._layers[r].resize()}setup(){let n=this.context,i=new r.StructArrayLayout2i4;i.emplaceBack(0,0),i.emplaceBack(r.EXTENT,0),i.emplaceBack(0,r.EXTENT),i.emplaceBack(r.EXTENT,r.EXTENT),this.tileExtentBuffer=n.createVertexBuffer(i,r.posAttributes.members),this.tileExtentSegments=r.SegmentVector.simpleSegment(0,0,4,2);let o=new r.StructArrayLayout2i4;o.emplaceBack(0,0),o.emplaceBack(r.EXTENT,0),o.emplaceBack(0,r.EXTENT),o.emplaceBack(r.EXTENT,r.EXTENT),this.debugBuffer=n.createVertexBuffer(o,r.posAttributes.members),this.debugSegments=r.SegmentVector.simpleSegment(0,0,4,5);let a=new r.StructArrayLayout2i4;a.emplaceBack(-1,-1),a.emplaceBack(1,-1),a.emplaceBack(-1,1),a.emplaceBack(1,1),this.viewportBuffer=n.createVertexBuffer(a,r.posAttributes.members),this.viewportSegments=r.SegmentVector.simpleSegment(0,0,4,2);let s=new r.StructArrayLayout4i8;s.emplaceBack(0,0,0,0),s.emplaceBack(r.EXTENT,0,r.EXTENT,0),s.emplaceBack(0,r.EXTENT,0,r.EXTENT),s.emplaceBack(r.EXTENT,r.EXTENT,r.EXTENT,r.EXTENT),this.mercatorBoundsBuffer=n.createVertexBuffer(s,r.boundsAttributes.members),this.mercatorBoundsSegments=r.SegmentVector.simpleSegment(0,0,4,2);let l=new r.StructArrayLayout3ui6;l.emplaceBack(0,1,2),l.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=n.createIndexBuffer(l);let c=new r.StructArrayLayout1ui2;for(let r of[0,1,3,2,0])c.emplaceBack(r);this.debugIndexBuffer=n.createIndexBuffer(c),this.emptyTexture=new r.Texture(n,new r.RGBAImage({width:1,height:1},Uint8Array.of(0,0,0,0)),n.gl.RGBA),this.identityMat=r.create();let u=this.context.gl;this.stencilClearMode=new r.StencilMode({func:u.ALWAYS,mask:0},0,255,u.ZERO,u.ZERO,u.ZERO),this.loadTimeStamps.push(r.window.performance.now()),this.atmosphereBuffer=new rz(this.context)}getMercatorTileBoundsBuffers(){return{tileBoundsBuffer:this.mercatorBoundsBuffer,tileBoundsIndexBuffer:this.quadTriangleIndexBuffer,tileBoundsSegments:this.mercatorBoundsSegments}}getTileBoundsBuffers(r){return r._makeTileBoundsBuffers(this.context,this.transform.projection),r._tileBoundsBuffer?{tileBoundsBuffer:r._tileBoundsBuffer,tileBoundsIndexBuffer:r._tileBoundsIndexBuffer,tileBoundsSegments:r._tileBoundsSegments}:this.getMercatorTileBoundsBuffers()}clearStencil(){let n=this.context,i=n.gl;this.nextStencilID=1,this.currentStencilSource=void 0,this._tileClippingMaskIDs={},this.useProgram("clippingMask").draw(n,i.TRIANGLES,r.DepthMode.disabled,this.stencilClearMode,r.ColorMode.disabled,r.CullFaceMode.disabled,tW(this.identityMat),"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}resetStencilClippingMasks(){this.terrain||(this.currentStencilSource=void 0,this._tileClippingMaskIDs={})}_renderTileClippingMasks(n,i,o){if(!i||this.currentStencilSource===i.id||!n.isTileClipped()||!o||0===o.length)return;if(this._tileClippingMaskIDs&&!this.terrain){let r=!1;for(let n of o)if(void 0===this._tileClippingMaskIDs[n.key]){r=!0;break}if(!r)return}this.currentStencilSource=i.id;let a=this.context,s=a.gl;this.nextStencilID+o.length>256&&this.clearStencil(),a.setColorMode(r.ColorMode.disabled),a.setDepthMode(r.DepthMode.disabled);let l=this.useProgram("clippingMask");for(let n of(this._tileClippingMaskIDs={},o)){let o=i.getTile(n),c=this._tileClippingMaskIDs[n.key]=this.nextStencilID++,{tileBoundsBuffer:u,tileBoundsIndexBuffer:d,tileBoundsSegments:h}=this.getTileBoundsBuffers(o);l.draw(a,s.TRIANGLES,r.DepthMode.disabled,new r.StencilMode({func:s.ALWAYS,mask:0},c,255,s.KEEP,s.KEEP,s.REPLACE),r.ColorMode.disabled,r.CullFaceMode.disabled,tW(n.projMatrix),"$clipping",u,d,h)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();let n=this.nextStencilID++,i=this.context.gl;return new r.StencilMode({func:i.NOTEQUAL,mask:255},n,255,i.KEEP,i.KEEP,i.REPLACE)}stencilModeForClipping(n){if(this.terrain)return this.terrain.stencilModeForRTTOverlap(n);let i=this.context.gl;return new r.StencilMode({func:i.EQUAL,mask:255},this._tileClippingMaskIDs[n.key],0,i.KEEP,i.KEEP,i.REPLACE)}stencilConfigForOverlap(n){let i=this.context.gl,o=n.sort((r,n)=>
222n.overscaledZ-r.overscaledZ),a=o[o.length-1].overscaledZ,s=o[0].overscaledZ-a+1;if(s>1){this.currentStencilSource=void 0,this.nextStencilID+s>256&&this.clearStencil();let n={};for(let o=0;o<s;o++)n[o+a]=new r.StencilMode({func:i.GEQUAL,mask:255},o+this.nextStencilID,255,i.KEEP,i.KEEP,i.REPLACE);return this.nextStencilID+=s,[n,o]}return[{[a]:r.StencilMode.disabled},o]}colorModeForRenderPass(){let n=this.context.gl;if(this._showOverdrawInspector){let i=1/8;return new r.ColorMode([n.CONSTANT_COLOR,n.ONE],new r.Color(i,i,i,0),[!0,!0,!0,!0])}return"opaque"===this.renderPass?r.ColorMode.unblended:r.ColorMode.alphaBlended}depthModeForSublayer(n,i,o){if(!this.opaquePassEnabledForLayer())return r.DepthMode.disabled;let a=1-((1+this.currentLayer)*this.numSublayers+n)*this.depthEpsilon;return new r.DepthMode(o||this.context.gl.LEQUAL,i,[a,a])}opaquePassEnabledForLayer(){return this.currentLayer<this.opaquePassCutoff}render(n,i){this.style=n,this.options=i,this.imageManager=n.imageManager,this.glyphManager=n.glyphManager,this.symbolFadeChange=n.placement.symbolFadeChange(r.exported.now()),this.imageManager.beginFrame();let o=this.style.order,a=this.style._sourceCaches;for(let r in a){let n=a[r];n.used&&n.prepare(this.context)}let s={},l={},c={};for(let r in a){let n=a[r];s[r]=n.getVisibleCoordinates(),l[r]=s[r].slice().reverse(),c[r]=n.getVisibleCoordinates(!0).reverse()}this.opaquePassCutoff=1/0;for(let r=0;r<o.length;r++)if(this.style._layers[o[r]].is3D()){this.opaquePassCutoff=r;break}if(this.terrain&&(this.terrain.updateTileBinding(c),this.opaquePassCutoff=0),"globe"!==this.transform.projection.name||this.globeSharedBuffers||(this.globeSharedBuffers=new r.GlobeSharedBuffers(this.context)),!r.isMapAuthenticated(this.context.gl))return;for(let r of(this.renderPass="offscreen",o)){let i=this.style._layers[r],o=n._getLayerSourceCache(i);if(!i.hasOffscreenPass()||i.isHidden(this.transform.zoom))continue;let a=o?l[o.id]:void 0;("custom"===i.type||i.isSky()||a&&a.length)&&this.renderLayer(this,o,i,a)}this.depthRangeFor3D=[0,1-(n.order.length+2)*this.numSublayers*this.depthEpsilon];let u=this.terrain;if(u&&(this.style.hasSymbolLayers()||this.style.hasCircleLayers())&&u.drawDepth(),this.context.bindFramebuffer.set(null),this.context.viewport.set([0,0,this.width,this.height]),this.context.clear({color:i.showOverdrawInspector?r.Color.black:r.Color.transparent,depth:1}),this.clearStencil(),this._showOverdrawInspector=i.showOverdrawInspector,this.renderPass="opaque",!this.terrain)for(this.currentLayer=o.length-1;this.currentLayer>=0;this.currentLayer--){let r=this.style._layers[o[this.currentLayer]],i=n._getLayerSourceCache(r);if(r.isSky())continue;let a=i?l[i.id]:void 0;this._renderTileClippingMasks(r,i,a),this.renderLayer(this,i,r,a)}if(this.style.fog&&this.transform.projection.supportsFog&&function(n,i){var o,a,s;let l=n.context,c=l.gl,u=n.transform,d=new r.DepthMode(c.LEQUAL,r.DepthMode.ReadOnly,[0,1]),h=n.useProgram("globeAtmosphere",null,"globe"===u.projection.name?["PROJECTION_GLOBE_VIEW","FOG"]:["FOG"]),p=r.globeToMercatorTransition(u.zoom),f=i.properties.get("color").toArray01(),m=i.properties.get("high-color").toArray01(),g=i.properties.get("space-color").toArray01PremultipliedAlpha(),v=r.identity$1([]);r.rotateY$1(v,v,-r.degToRad(u._center.lng)),r.rotateX$1(v,v,r.degToRad(u._center.lat)),r.rotateZ$1(v,v,u.angle),r.rotateX$1(v,v,-u._pitch);let y=r.fromQuat(new Float32Array(16),v),b=r.mapValue(i.properties.get("star-intensity"),0,1,0,.25),x=r.mapValue(i.properties.get("horizon-blend"),0,1,5e-4,.25),_=r.globeUseCustomAntiAliasing(n,l,u)&&5e-4===x?u.worldSize/(2*Math.PI*1.025)-1:u.globeRadius,w=n.frameCounter/1e3%1,S=r.length(u.globeCenterInViewSpace),T=Math.sqrt(Math.pow(S,2)-Math.pow(_,2)),E=Math.acos(T/S),k=(o=u.frustumCorners.TL,a=u.frustumCorners.TR,s=u.frustumCorners.BR,{u_frustum_tl:o,u_frustum_tr:a,u_frustum_br:s,u_frustum_bl:u.frustumCorners.BL,u_horizon:u.frustumCorners.horizon,u_transition:p,u_fadeout_range:x,u_color:f,u_high_color:m,u_space_color:g,u_star_intensity:b,u_star_size:5*r.exported.devicePixelRatio,u_star_density:0,u_temporal_offset:w,u_horizon_angle:E,u_rotation_matrix:y});n.prepareDrawProgram(l,h);let C=n.atmosphereBuffer;C&&h.draw(l,c.TRIANGLES,d,r.StencilMode.disabled,r.ColorMode.alphaBlended,r.CullFaceMode.backCW,k,"skybox",C.vertexBuffer,C.indexBuffer,C.segments)}(this,this.style.fog),this.renderPass="sky",(r.globeToMercatorTransition(this.transform.zoom)>0||"globe"!==this.transform.projection.name)&&this.transform.isH
222orizonVisible())for(this.currentLayer=0;this.currentLayer<o.length;this.currentLayer++){let r=this.style._layers[o[this.currentLayer]],i=n._getLayerSourceCache(r);r.isSky()&&this.renderLayer(this,i,r,i?l[i.id]:void 0)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer<o.length;){let r=this.style._layers[o[this.currentLayer]],i=n._getLayerSourceCache(r);if(r.isSky()){++this.currentLayer;continue}if(this.terrain&&this.style.isLayerDraped(r)){if(r.isHidden(this.transform.zoom)){++this.currentLayer;continue}this.currentLayer=this.terrain.renderBatch(this.currentLayer);continue}let a=i?("symbol"===r.type?c:l)[i.id]:void 0;this._renderTileClippingMasks(r,i,i?s[i.id]:void 0),this.renderLayer(this,i,r,a),++this.currentLayer}if(this.terrain&&this.terrain.postRender(),this.options.showTileBoundaries||this.options.showQueryGeometry||this.options.showTileAABBs){let i=null;r.values(this.style._layers).forEach(r=>{let o=n._getLayerSourceCache(r);o&&!r.isHidden(this.transform.zoom)&&(!i||i.getSource().maxzoom<o.getSource().maxzoom)&&(i=o)}),i&&this.options.showTileBoundaries&&rB.debug(this,i,i.getVisibleCoordinates())}this.options.showPadding&&function(r){var n,i;let o=r.transform.padding;rO(r,r.transform.height-(o.top||0),3,rT),rO(r,o.bottom||0,3,rE),rj(r,o.left||0,3,rk),rj(r,r.transform.width-(o.right||0),3,rC);let a=r.transform.centerPoint;n=a.x,i=r.transform.height-a.y,rA(r,n-1,i-10,2,20,rP),rA(r,n-10,i-1,20,2,rP)}(this),this.context.setDefault(),this.frameCounter=(this.frameCounter+1)%Number.MAX_SAFE_INTEGER,this.tileLoaded&&this.options.speedIndexTiming&&(this.loadTimeStamps.push(r.window.performance.now()),this.saveC
222anvasCopy())}renderLayer(r,n,i,o){i.isHidden(this.transform.zoom)||("background"===i.type||"sky"===i.type||"custom"===i.type||o&&o.length)&&(this.id=i.id,this.gpuTimingStart(i),r.transform.projection.unsupportedLayers&&r.transform.projection.unsupportedLayers.includes(i.type)&&(!r.terrain||"custom"!==i.type)||rB[i.type](r,n,i,o,this.style.placement.variableOffsets,this.options.isInitialLoad),this.gpuTimingEnd())}gpuTimingStart(r){if(!this.options.gpuTiming)return;let n=this.context.extTimerQuery,i=this.gpuTimers[r.id];i||(i=this.gpuTimers[r.id]={calls:0,cpuTime:0,query:n.createQueryEXT()}),i.calls++,n.beginQueryEXT(n.TIME_ELAPSED_EXT,i.query)}gpuTimingDeferredRenderStart(){if(this.options.gpuTimingDeferredRender){let r=this.context.extTimerQuery,n=r.createQueryEXT();this.deferredRenderGpuTimeQueries.push(n),r.beginQueryEXT(r.TIME_ELAPSED_EXT,n)}}gpuTimingDeferredRenderEnd(){if(!this.options.gpuTimingDeferredRender)return;let r=this.context.extTimerQuery;r.endQueryEXT(r.TIME_ELAPSED_EXT)}gpuTimingEnd(){if(!this.options.gpuTiming)return;let r=this.context.extTimerQuery;r.endQueryEXT(r.TIME_ELAPSED_EXT)}collectGpuTimers(){let r=this.gpuTimers;return this.gpuTimers={},r}collectDeferredRenderGpuQueries(){let r=this.deferredRenderGpuTimeQueries;return this.deferredRenderGpuTimeQueries=[],r}queryGpuTimers(r){let n={};for(let i in r){let o=r[i],a=this.context.extTimerQuery,s=a.getQueryObjectEXT(o.query,a.QUERY_RESULT_EXT)/1e6;a.deleteQueryEXT(o.query),n[i]=s}return n}queryGpuTimeDeferredRender(r){if(!this.options.gpuTimingDeferredRender)return 0;let n=this.context.extTimerQuery,i=0;for(let o of r)i+=n.getQueryObjectEXT(o,n.QUERY_RESULT_EXT)/1e6,n.deleteQueryEXT(o);return i}translatePosMatrix(n,i,o,a,s){if(!o[0]&&!o[1])return n;let l=s?"map"===a?this.transform.angle:0:"viewport"===a?-this.transform.angle:0;if(l){let r=Math.sin(l),n=Math.cos(l);o=[o[0]*n-o[1]*r,o[0]*r+o[1]*n]}let c=[s?o[0]:M(i,o[0],this.transform.zoom),s?o[1]:M(i,o[1],this.transform.zoom),0],u=new Float32Array(16);return r.translate(u,n,c),u}saveTileTexture(r){let n=this._tileTextures[r.size[0]];n?n.push(r):this._tileTextures[r.size[0]]=[r]}getTileTexture(r){let n=this._tileTextures[r];return n&&n.length>0?n.pop():null}isPatternMissing(r){return null===r||void 0!==r&&!this.imageManager.getPattern(r.toString())}terrainRenderModeElevated(){return this.style&&!!this.style.getTerrain()&&!!this.terrain&&!this.terrain.renderingToTexture}currentGlobalDefines(){let r=this.terrain&&this.terrain.renderingToTexture,n=this.terrain&&0===this.terrain.exaggeration(),i=this.style&&this.style.fog,o=[];return this.terrainRenderModeElevated()&&o.push("TERRAIN"),"globe"===this.transform.projection.name&&o.push("GLOBE"),n&&o.push("ZERO_EXAGGERATION"),i&&!r&&0!==i.getOpacity(this.transform.pitch)&&o.push("FOG"),r&&o.push("RENDER_TO_TEXTURE"),this._showOverdrawInspector&&o.push("OVERDRAW_INSPECTOR"),o}useProgram(r,n,i){this.cache=this.cache||{};let o=this.currentGlobalDefines().concat(i||[]),a=tQ.cacheKey(tR[r],r,o,n);return this.cache[a]||(this.cache[a]=new tQ(this.context,r,tR[r],n,rv[r],o)),this.cache[a]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.frontFace.setDefault(),this.context.cullFaceSide.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){let r=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(r.FUNC_ADD)}initDebugOverlayCanvas(){null==this.debugOverlayCanvas&&(this.debugOverlayCanvas=r.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new r.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this._terrain&&this._terrain.destroy(),this.globeSharedBuffers&&this.globeSharedBuffers.destroy(),this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy(),this.atmosphereBuffer&&this.atmosphereBuffer.destroy()}prepareDrawTile(){this.terrain&&this.terrain.prepareDrawTile()}prepareDrawProgram(n,i,o){if(this.terrain&&this.terrain.renderingToTexture)return;let a=this.style.fog;if(a){let s=a.getOpacity(this.transform.pitch),l=((n,i,o,a,s,l,c,u,d,h,p)=>{let f=n.transform,m=i.properties.get("color").toArray01();m[3]=a;let g=n.frameCounter/1e3%1;return{u_fog_matrix:o?f.calculateFogTileMatrix(o):n.identityMat,u_fog_range:i.getFovAdjustedRange(f._fov),u_fog_color:m,u_fog_horizon_blend:i.properties.get("horizon-blend"),u_fog_temporal_offset:g,u_frustum_tl:s,u_frustum_tr:l,u_frustum_br:c,u_frustum_bl:u,u_globe_pos:d,u_globe_radius:h,u_viewport:p,u_globe_transition:r.globeToMercatorTransition(f.zoom),u_is_globe:+("globe"===f.projection.name)}})(this,a,o,s,this.transform.frustumCorners.TL,this.transform.frustumCorners.TR,this.transform.frustumCorners.BR,this.transform.frustumCorners.BL,this.transform.globeCenterInViewSpace,this.transform.globeRadius,[this.transform.width*r.exported.devicePixelRatio,this.transform.height*r.exported.devicePixelRatio]);i.setFogUniformValues(n,l)}}setTileLoadedFlag(r){this.tileLoaded=r}saveCanvasCopy(){let r=this.canvasCopy();r&&(this.frameCopies.push(r),this.tileLoaded=!1)}canvasCopy(){let r=this.context.gl,n=r.createTexture();return r.bindTexture(r.TEXTURE_2D,n),r.copyTexImage2D(r.TEXTURE_2D,0,r.RGBA,0,0,r.drawingBufferWidth,r.drawingBufferHeight,0),n}getCanvasCopiesAndTimestamps(){return{canvasCopies:this.frameCopies,timeStamps:this.loadTimeStamps}}averageElevationNeedsEasing(){if(!this.transform._elevation)return!1;let r=this.style&&this.style.fog;return!!r&&0!==r.getOpacity(this.transform.pitch)}
222getBackgroundTiles(){let n=this._backgroundTiles,i=this._backgroundTiles={},o=this.transform.coveringTiles({tileSize:512});for(let a of o)i[a.key]=n[a.key]||new r.Tile(a,512,this.transform.tileZoom,this);return i}clearBackgroundTiles(){this._backgroundTiles={}}}class rN{constructor(r=0,n=0,i=0,o=0){if(isNaN(r)||r<0||isNaN(n)||n<0||isNaN(i)||i<0||isNaN(o)||o<0)throw Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=r,this.bottom=n,this.left=i,this.right=o}interpolate(n,i,o){return null!=i.top&&null!=n.top&&(this.top=r.number(n.top,i.top,o)),null!=i.bottom&&null!=n.bottom&&(this.bottom=r.number(n.bottom,i.bottom,o)),null!=i.left&&null!=n.left&&(this.left=r.number(n.left,i.left,o)),null!=i.right&&null!=n.right&&(this.right=r.number(n.right,i.right,o)),this}getCenter(n,i){let o=r.clamp((this.left+n-this.right)/2,0,n),a=r.clamp((this.top+i-this.bottom)/2,0,i);return new r.Point(o,a)}equals(r){return this.top===r.top&&this.bottom===r.bottom&&this.left===r.left&&this.right===r.right}clone(){return new rN(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function rU(n,i){let o=r.getColumn(n,3);r.fromQuat(n,i),r.setColumn(n,3,o)}function rV(n,i){let o=r.identity$1([]);return r.rotateZ$1(o,o,-i),r.rotateX$1(o,o,-n),o}function rq(n,i){let o=[n[0],n[1],0],a=[i[0],i[1],0];if(r.length(o)>=1e-15){let n=r.normalize([],o);r.scale$2(a,n,r.dot(a,n)),i[0]=a[0],i[1]=a[1]}let s=r.cross([],i,n);if(1e-15>r.len(s))return null;let l=Math.atan2(-s[1],s[0]);return rV(Math.atan2(Math.sqrt(n[0]*n[0]+n[1]*n[1]),-n[2]),l)}class r${constructor(r,n){this.position=r,this.orientation=n}get position(){return this._position}set position(n){if(n){let i=n instanceof r.MercatorCoordinate?n:new r.MercatorCoordinate(n[0],n[1],n[2]);
222this._renderWorldCopies&&(i.x=r.wrap(i.x,0,1)),this._position=i}else this._position=null}lookAtPoint(n,i){if(this.orientation=null,!this.position)return;let o=this.position,a=this._elevation?this._elevation.getAtPointOrZero(r.MercatorCoordinate.fromLngLat(n)):0,s=r.MercatorCoordinate.fromLngLat(n,a),l=[s.x-o.x,s.y-o.y,s.z-o.z];i||(i=[0,0,1]),i[2]=Math.abs(i[2]),this.orientation=rq(l,i)}setPitchBearing(n,i){this.orientation=rV(r.degToRad(n),r.degToRad(-i))}}class rG{constructor(n,i){this._transform=r.identity([]),this.orientation=i,this.position=n}get mercatorPosition(){let n=this.position;return new r.MercatorCoordinate(n[0],n[1],n[2])}get position(){let n=r.getColumn(this._transform,3);return[n[0],n[1],n[2]]}set position(n){n&&r.setColumn(this._transform,3,[n[0],n[1],n[2],1])}get orientation(){return this._orientation}set orientation(n){this._orientation=n||r.identity$1([]),n&&rU(this._transform,this._orientation)}getPitchBearing(){let r=this.forward(),n=this.right();return{bearing:Math.atan2(-n[1],n[0]),pitch:Math.atan2(Math.sqrt(r[0]*r[0]+r[1]*r[1]),-r[2])}}setPitchBearing(r,n){this._orientation=rV(r,n),rU(this._transform,this._orientation)}forward(){let n=r.getColumn(this._transform,2);return[-n[0],-n[1],-n[2]]}up(){let n=r.getColumn(this._transform,1);return[-n[0],-n[1],-n[2]]}right(){let n=r.getColumn(this._transform,0);return[n[0],n[1],n[2]]}getCameraToWorld(n,i){let o=new Float64Array(16);return r.invert(o,this.getWorldToCamera(n,i)),o}getWorldToCameraPosition(n,i,o){let a=this.position;r.scale$2(a,a,-n);let s=new Float64Array(16);return r.fromScaling(s,[o,o,o]),r.translate(s,s,a),s[10]*=i,s}getWorldToCamera(n,i){let o=new Float64Array(16),a=new Float64Array(4),s=this.position;return r.conjugate(a,this._orientation),r.scale$2(s,s,-n),r.fromQuat(o,a),r.translate(o,o,s),o[1]*=-1,o[5]*=-1,o[9]*=-1,o[13]*=-1,o[8]*=i,o[9]*=i,o[10]*=i,o[11]*=i,o}getCameraToClipPerspective(n,i,o,a){let s=new Float64Array(16);return r.perspective(s,n,i,o,a),s}getDistanceToElevation(n,i=!1){let o=0===n?0:r.mercatorZfromAltitude(n,i?r.latFromMercatorY(this.position[1]):this.position[1]),a=this.forward();return(o-this.position[2])/a[2]}clone(){return new rG([...this.position],[...this.orientation])}}function rW(n,i){let o=rX(n.projection,n.zoom,n.width,n.height),a=function(n,i,o,a,s){let l=new r.LngLat(o.lng-180*rY,o.lat),c=new r.LngLat(o.lng+180*rY,o.lat),u=n.project(l.lng,l.lat),d=n.project(c.lng,c.lat),h=-Math.atan2(d.y-u.y,d.x-u.x),p=r.MercatorCoordinate.fromLngLat(o);p.y=r.clamp(p.y,-1+rY,1-rY);let f=p.toLngLat(),m=n.project(f.lng,f.lat),g=r.MercatorCoordinate.fromLngLat(f);g.x+=rY;let v=g.toLngLat(),y=n.project(v.lng,v.lat),b=rJ(y.x-m.x,y.y-m.y,h),x=r.MercatorCoordinate.fromLngLat(f);x.y+=rY;let _=x.toLngLat(),w=n.project(_.lng,_.lat),S=rJ(w.x-m.x,w.y-m.y,h),T=Math.abs(b.x)/Math.abs(S.y),E=r.identity([]);r.rotateZ(E,E,-h*(1-(s?0:a)));let k=r.identity([]);return r.scale(k,k,[1,1-(1-T)*a,1]),k[4]=-S.x/S.y*a,r.rotateZ(k,k,h),r.multiply(k,E,k),k}(n.projection,0,n.center,o,i),s=rH(n);return r.scale(a,a,[s,s,1]),a}function rH(n){let i=n.projection,o=rX(n.projection,n.zoom,n.width,n.height),a=rK(i,n.center),s=rK(i,r.LngLat.convert(i.center));return Math.pow(2,a*o+(1-o)*s)}function rX(n,i,o,a,s=1/0){let l=n.range;if(!l)return 0;let c=Math.min(s,Math.max(o,a)),u=Math.log(c/1024)/Math.LN2;return r.smoothstep(l[0]+u,l[1]+u,i)}let rY=1/4e4;function rK(n,i){let o=r.clamp(i.lat,-r.MAX_MERCATOR_LATITUDE,r.MAX_MERCATOR_LATITUDE),a=new r.LngLat(i.lng-180*rY,o),s=new r.LngLat(i.lng+180*rY,o),l=n.project(a.lng,o),c=n.project(s.lng,o),u=r.MercatorCoordinate.fromLngLat(a),d=r.MercatorCoordinate.fromLngLat(s),h=c.x-l.x,p=c.y-l.y,f=d.x-u.x,m=d.y-u.y,g=Math.sqrt((f*f+m*m)/(h*h+p*p));return Math.log(g)/Math.LN2}function rJ(r,n,i){let o=Math.cos(i),a=Math.sin(i);return{x:r*o-n*a,y:r*a+n*o}}class rQ{constructor(n,i,o,a,s,l,c){this.tileSize=512,this._renderWorldCopies=void 0===s||s,this._minZoom=n||0,this._maxZoom=i||22,this._minPitch=null==o?0:o,this._maxPitch=null==a?60:a,this.setProjection(l),this.setMaxBounds(c),this.width=0,this.height=0,this._center=new r.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._nearZ=0,this._farZ=0,this._unmodified=!0,this._edgeInsets=new rN,this._projMatrixCache={},this._alignedProjMatrixCache={},this._fogTileMatrixCache={},this._distanceTileDataCache={},this._camera=new rG,this._centerAltitude=0,this._averageElevation=0,this.cameraElevationReference="ground",this._pixelsPerMercatorPixel=1,this.globeRadius=0,this.globeCenterInViewSpace=[0,0,0],this._horizonShift=.1}clone(){let r=new rQ(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies,this.getProjection());return r._elevation=this._elevation,r._centerAltitude=this._centerAltitude,r._centerAltitudeValidForE
222xaggeration=this._centerAltitudeValidForExaggeration,r.tileSize=this.tileSize,r.mercatorFromTransition=this.mercatorFromTransition,r.width=this.width,r.height=this.height,r.cameraElevationReference=this.cameraElevationReference,r._center=this._center,r._setZoom(this.zoom),r._seaLevelZoom=this._seaLevelZoom,r.angle=this.angle,r._fov=this._fov,r._pitch=this._pitch,r._nearZ=this._nearZ,r._farZ=this._farZ,r._averageElevation=this._averageElevation,r._unmodified=this._unmodified,r._edgeInsets=this._edgeInsets.clone(),r._camera=this._camera.clone(),r._calcMatrices(),r.freezeTileCoverage=this.freezeTileCoverage,r.frustumCorners=this.frustumCorners,r}get elevation(){return this._elevation}set elevation(r){this._elevation!==r&&(this._elevation=r,this._updateCameraOnTerrain(),this._calcMatrices())}updateElevation(r,n=!1){let i=this._elevation&&this._elevation.exaggeration()!==this._centerAltitudeValidForExaggeration;(null==this._seaLevelZoom||i)&&this._updateCameraOnTerrain(),(r||i)&&this._constrainCamera(n),this._calcMatrices()}getProjection(){return r.pick(this.projection,["name","center","parallels"])}setProjection(n){this.projectionOptions=n||{name:"mercator"};let i=this.projection?this.getProjection():void 0;this.projection=r.getProjection(this.projectionOptions);let o=!a(i,this.getProjection());return o&&this._calcMatrices(),this.mercatorFromTransition=!1,o}setMercatorFromTransition(){let n=this.projection.name;this.mercatorFromTransition=!0,this.projectionOptions={name:"mercator"},this.projection=r.getProjection({name:"mercator"});let i=n!==this.projection.name;return i&&this._calcMatrices(),i}get minZoom(){return this._minZoom}set minZoom(r){this._minZoom!==r&&(this._minZoom=r,this.zoom=Math.max(this.zoom,r))}get maxZoom(){return this._maxZoom}set maxZoom(r){this._maxZoom!==r&&(this._maxZoom=r,this.zoom=Math.min(this.zoom,r))}get minPitch(){return this._minPitch}set minPitch(r){this._minPitch!==r&&(this._minPitch=r,this.pitch=Math.max(this.pitch,r))}get maxPitch(){return this._maxPitch}set maxPitch(r){this._maxPitch!==r&&(this._maxPitch=r,this.pitch=Math.min(this.pitch,r))}get renderWorldCopies(){return this._renderWorldCopies&&!0===this.projection.supportsWorldCopies}set renderWorldCopies(r){void 0===r?r=!0:null===r&&(r=!1),this._renderWorldCopies=r}get worldSize(){return this.tileSize*this.scale}get cameraWorldSizeForFog(){let r=Math.max(this._camera.getDistanceToElevation(this._averageElevation),Number.EPSILON);return this._worldSizeFromZoom(this._zoomFromMercatorZ(r))}get cameraWorldSize(){let r=Math.max(this._camera.getDistanceToElevation(this._averageElevation,!0),Number.EPSILON);return this._worldSizeFromZoom(this._zoomFromMercatorZ(r))}get pixelsPerMeter(){return this.projection.pixelsPerMeter(this.center.lat,this.worldSize)}get cameraPixelsPerMeter(){return r.mercatorZfromAltitude(this.center.lat,this.cameraWorldSizeForFog)}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new r.Point(this.width,this.height)}get bearing(){return r.wrap(this.rotation,-180,180)}set bearing(r){this.rotation=r}get rotation(){return-this.angle/Math.PI*180}set rotation(n){var i,o,a,s,l,c,u,d,h,p;let f=-n*Math.PI/180;this.angle!==f&&(this._unmodified=!1,this.angle=f,this._calcMatrices(),this.rotationMatrix=(i=new r.ARRAY_TYPE(4),r.ARRAY_TYPE!=Float32Array&&(i[1]=0,i[2]=0),i[0]=1,i[3]=1,i),o=this.rotationMatrix,a=this.rotationMatrix,s=this.angle,l=a[0],c=a[1],u=a[2],d=a[3],h=Math.sin(s),p=Math.cos(s),o[0]=l*p+u*h,o[1]=c*p+d*h,o[2]=-(l*h)+u*p,o[3]=-(c*h)+d*p)}get pitch(){return this._pitch/Math.PI*180}set pitch(n){let i=r.clamp(n,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==i&&(this._unmodified=!1,this._pitch=i,this._calcMatrices())}get aspect(){return this.width/this.height}get fov(){return this._fov/Math.PI*180}get fovX(){return this._fov}get fovY(){let r=1/Math.tan(.5*this.fovX);return 2*Math.atan(1/this.aspect/r)}set fov(n){n=Math.max(.01,Math.min(60,n)),this._fov!==n&&(this._unmodified=!1,this._fov=r.degToRad(n),this._calcMatrices())}get averageElevation(){return this._averageElevation}set averageElevation(r){this._averageElevation=r,this._calcFogMatrices(),this._distanceTileDataCache={}}get zoom(){return this._zoom}set zoom(r){let n=Math.min(Math.max(r,this.minZoom),this.maxZoom);this._zoom!==n&&(this._unmodified=!1,this._setZoom(n),this._updateSeaLevelZoom(),this._constrain(),this._calcMatrices())}_setZoom(r){this._zoom=r,this.scale=this.zoomScale(r),this.tileZoom=Math.floor(r),this.zoomFraction=r-this.tileZoom}_updateCameraOnTerrain(){if(!this._elevation||!this._elevation.isDataAvailableAtPoint(this.locationCoordinate(this.center)))return this._centerAltitude=0,this._seaLevelZoom=null,void(this._centerAltitudeValidForE
222xaggeration=void 0);let r=this._elevation;this._centerAltitude=r.getAtPointOrZero(this.locationCoordinate(this.center)),this._centerAltitudeValidForExaggeration=r.exaggeration(),this._updateSeaLevelZoom()}_updateSeaLevelZoom(){void 0!==this._centerAltitudeValidForExaggeration&&(this._seaLevelZoom=this._zoomFromMercatorZ((this.pixelsPerMeter*this._centerAltitude+this.cameraToCenterDistance)/this.worldSize))}sampleAverageElevation(){if(!this._elevation)return 0;let n=this._elevation,i=[[.5,.2],[.3,.5],[.5,.5],[.7,.5],[.5,.8]],o=this.horizonLineFromTop(),a=0,s=0;for(let l=0;l<i.length;l++){let c=new r.Point(i[l][0]*this.width,o+i[l][1]*(this.height-o)),u=n.pointCoordinate(c);if(!u)continue;let d=1/Math.hypot(u[0]-this._camera.position[0],u[1]-this._camera.position[1]);a+=u[3]*d,s+=d}return 0===s?NaN:a/s}get center(){return this._center}set center(r){r.lat===this._center.lat&&r.lng===this._center.lng||(this._unmodified=!1,this._center=r,this._terrainEnabled()&&("ground"===this.cameraElevationReference?this._updateCameraOnTerrain():this._updateZoomFromElevation()),this._constrain(),this._calcMatrices())}_updateZoomFromElevation(){if(null==this._seaLevelZoom||!this._elevation)return;let r=this._seaLevelZoom,n=this._elevation.getAtPointOrZero(this.locationCoordinate(this.center)),i=this.pixelsPerMeter/this.worldSize*n,o=this._mercatorZfromZoom(r),a=this._mercatorZfromZoom(this._maxZoom),s=Math.max(o-i,a);this._setZoom(this._zoomFromMercatorZ(s))}get padding(){return this._edgeInsets.toJSON()}set padding(r){this._edgeInsets.equals(r)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,r,1),this._calcMatrices())}computeZoomRelativeTo(n){let i;let o=this.rayIntersectionCoordinate(this.pointRayIntersection(this.centerPoint,n.toAltitude()));i=n.z<this._camera.position[2]?[o.x,o.y,o.z]:[n.x,n.y,n.z];let a=r.length(r.sub([],this._camera.position,i));return r.clamp(this._zoomFromMercatorZ(a),this._minZoom,this._maxZoom)}setFreeCameraOptions(n){if(!this.height||!n.position&&!n.orientation)return;this._updateCameraState();let i=!1;if(n.orientation&&!r.exactEquals(n.orientation,this._camera.orientation)&&(i=this._setCameraOrientation(n.orientation)),n.position){let o=[n.position.x,n.position.y,n.position.z];r.exactEquals$1(o,this._camera.position)||(this._setCameraPosition(o),i=!0)}i&&(this._updateStateFromCamera(),this.recenterOnTerrain())}getFreeCameraOptions(){this._updateCameraState();let n=this._camera.position,i=new r$;return i.position=new r.MercatorCoordinate(n[0],n[1],n[2]),i.orientation=this._camera.orientation,i._elevation=this.elevation,i._renderWorldCopies=this.renderWorldCopies,i}_setCameraOrientation(n){if(!r.length$1(n))return!1;r.normalize$1(n,n);let i=r.transformQuat([],[0,0,-1],n),o=r.transformQuat([],[0,-1,0],n);if(o[2]<0)return!1;let a=rq(i,o);return!!a&&(this._camera.orientation=a,!0)}_setCameraPosition(n){let i=this.zoomScale(this.minZoom)*this.tileSize,o=this.zoomScale(this.maxZoom)*this.tileSize,a=this.cameraToCenterDistance;n[2]=r.clamp(n[2],a/o,a/i),this._camera.position=n}get centerPoint(){return this._edgeInsets.getCenter(this.width,this.height)}get fovAboveCenter(){return this._fov*(.5+this.centerOffset.y/this.height)}isPaddingEqual(r){return this._edgeInsets.equals(r)}interpolatePadding(r,n,i){this._unmodified=!1,this._edgeInsets.interpolate(r,n,i),this._constrain(),this._calcMatrices()}coveringZoomLevel(r){let n=(r.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/r.tileSize));return Math.max(0,n)}getVisibleUnwrappedCoordinates(n){let i=[new r.UnwrappedTileID(0,n)];if(this.renderWorldCopies){let o=this.pointCoordinate(new r.Point(0,0)),a=this.pointCoordinate(new r.Point(this.width,0)),s=this.pointCoordinate(new r.Point(this.width,this.height)),l=this.pointCoordinate(new r.Point(0,this.height)),c=Math.floor(Math.min(o.x,a.x,s.x,l.x)),u=Math.floor(Math.max(o.x,a.x,s.x,l.x));for(let o=c-1;o<=u+1;o++)0!==o&&i.push(new r.UnwrappedTileID(o,n))}return i}coveringTiles(n){let i=this.coveringZoomLevel(n),o=i,a=this.elevation&&!n.isTerrainDEM,s="mercator"===this.projection.name;if(void 0!==n.minzoom&&i<n.minzoom)return[];void 0!==n.maxzoom&&i>n.maxzoom&&(i=n.maxzoom);let l=this.locationCoordinate(this.center),c=this.center.lat,u=1<<i,d=[u*l.x,u*l.y,0],h="globe"===this.projection.name,p=!h,f=r.Frustum.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,i,p),m=h?this._camera.mercatorPosition:this.pointCoordinate(this.getCameraPoint()),g=u*r.mercatorZfromAltitude(1,this.center.lat),v=this._camera.position[2]/r.mercatorZfromAltitude(1,this.center.lat),y=[u*m.x,u*m.y,v*(p?1:g)],b=this.cameraToCenterDistance/n.tileSize*(n.roundZoom?1:.502),x=this.pitch<=60&&this._edgeInsets.top<=this._edgeInsets.bottom&&!this._elevation&&!this.projection.isReprojectedInTileSpace?i:0,_=n.isTerrainDEM&&this._elevation?1e4*this._elevation.exaggeration():this._centerAltitude,w=n.isTerrainDEM?-_:this._elevation?this._elevation.getMinElevationBelowMSL():0,S=this.projection.isReprojectedInTileSpace?rH(this):1,T=n=>{let i=1/4e4,o=new r.MercatorCoordinate(n.x+i,n.y,n.z),a=new r.MercatorCoordinate(n.x,n.y+i,n.z),s=n.toLngLat(),l=o.toLngLat(),c=a.toLngLat(),u=this.locationCoordinate(s),d=this.locationCoordinate(l),h=this.locationCoordinate(c),p=Math.hypot(d.x-u.x,d.y-u.y),f=Math.hypot(h.x-u.x,h.y-u.
222y);return Math.sqrt(p*f)*S/i},E=n=>({aabb:r.tileAABB(this,u,0,0,0,n,w,_,this.projection),zoom:0,x:0,y:0,minZ:w,maxZ:_,wrap:n,fullyVisible:!1}),k=[],C=[],P=i,O=n.reparseOverscaled?o:i,j=r=>r*r,A=j((v-this._centerAltitude)*g),M=r=>{if(!this._elevation||!r.tileID||!s)return;let n=this._elevation.getMinMaxForTile(r.tileID),i=r.aabb;n?(i.min[2]=n.min,i.max[2]=n.max,i.center[2]=(i.min[2]+i.max[2])/2):(r.shouldSplit=I(r),r.shouldSplit||(i.min[2]=i.max[2]=i.center[2]=this._centerAltitude))},I=n=>{if(n.zoom<x)return!0;if(n.zoom===P)return!1;if(null!=n.shouldSplit)return n.shouldSplit;let i=n.aabb.distanceX(y),s=n.aabb.distanceY(y),l=A,u=1;if(h){l=j(n.aabb.distanceZ(y));let i=Math.pow(2,n.zoom),o=r.latFromMercatorY((n.y+1)/i),a=r.latFromMercatorY(n.y/i),s=Math.min(Math.max(c,o),a),d=r.circumferenceAtLatitude(s)/r.circumferenceAtLatitude(c);if(u=s===c?1/Math.max(1,this._mercatorScaleRatio-.3):Math.min(1,d/this._mercatorScaleRatio),this.zoom<=r.GLOBE_ZOOM_THRESHOLD_MIN&&n.zoom===P-1&&d>=.9)return!0}else if(a&&(l=j(n.aabb.distanceZ(y)*g)),this.projection.isReprojectedInTileSpace&&o<=5){let i=Math.pow(2,n.zoom),o=T(new r.MercatorCoordinate((n.x+.5)/i,(n.y+.5)/i));u=o>.85?1:o}let d=i*i+s*s+l,p=j((1<<P-n.zoom)*b*u*((r,n)=>{if(n*j(.707)<r)return 1;let i=Math.sqrt(n/r);return i/(1.4144271570014144+(Math.pow(1.1,i-1.4144271570014144+1)-1)/(1.1-1)-1)})(Math.max(l,A),d));return d<p};if(this.renderWorldCopies)for(let r=1;r<=3;r++)k.push(E(-r)),k.push(E(r));for(k.push(E(0));k.length>0;){let o=k.pop(),l=o.x,c=o.y,p=o.fullyVisible;if(!p){let r=o.aabb.intersects(f);if(0===r)continue;p=2===r}if(o.zoom!==P&&I(o))for(let n=0;n<4;n++){let i=(l<<1)+n%2,d=(c<<1)+(n>>1),f={aabb:s?o.aabb.quadrant(n):r.tileAABB(this,u,o.zoom+1,i,d,o.wrap,o.minZ,o.maxZ,this.projection),zoom:o.zoom+1,x:i,y:d,wrap:o.wrap,fullyVisible:p,tileID:void 0,shouldSplit:void 0,minZ:o.minZ,maxZ:o.maxZ};a&&!h&&(f.tileID=new r.OverscaledTileID(o.zoom+1===P?O:o.zoom+1,o.wrap,o.zoom+1,i,d),M(f)),k.push(f)}else{let a=o.zoom===P?O:o.zoom;if(n.minzoom&&n.minzoom>a)continue;let s=d[0]-(.5+l+(o.wrap<<o.zoom))*(1<<i-o.zoom),u=d[1]-.5-c,h=o.tileID?o.tileID:new r.OverscaledTileID(a,o.wrap,o.zoom,l,c);C.push({tileID:h,distanceSq:s*s+u*u})}}if(this.fogCullDistSq){let i=this.fogCullDistSq,o=this.horizonLineFromTop();C=C.filter(a=>{let s=[0,0,0,1],l=[r.EXTENT,r.EXTENT,0,1],c=this.calculateFogTileMatrix(a.tileID.toUnwrapped());r.transformMat4$1(s,s,c),r.transformMat4$1(l,l,c);let u=r.getAABBPointSquareDist(s,l);if(0===u)return!0;let d=!1,h=this._elevation;if(h&&u>i&&0!==o){let i;let s=this.calculateProjMatrix(a.tileID.toUnwrapped());n.isTerrainDEM||(i=h.getMinMaxForTile(a.tileID)),i||(i={min:w,max:_});let l=r.furthestTileCorner(this.rotation),c=[l[0]*r.EXTENT,l[1]*r.EXTENT,i.max];r.transformMat4(c,c,s),d=(1-c[1])*this.height*.5<o}return u<i||d})}return C.sort((r,n)=>r.distanceSq-n.distanceSq).map(r=>r.tileID)}resize(r,n){this.width=r,this.height=n,this.pixelsToGLUnits=[2/r,-2/n],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(r){return Math.pow(2,r)}scaleZoom(r){return Math.log(r)/Math.LN2}project(n){let i=r.clamp(n.lat,-r.MAX_MERCATOR_LATITUDE,r.MAX_MERCATOR_LATITUDE),o=this.projection.project(n.lng,i);return new r.Point(o.x*this.worldSize,o.y*this.worldSize)}unproject(r){return this.projection.unproject(r.x/this.worldSize,r.y/this.worldSize)}get point(){return this.project(this.center)}get pointMerc(){return this.point._div(this.worldSize)}get pixelsPerMeterRatio(){return this.pixelsPerMeter/r.mercatorZfromAltitude(1,this.center.lat)/this.worldSize}setLocationAtPoint(n,i){let o,a;let s=this.centerPoint;if("globe"===this.projection.name){let r=this.worldSize;o=(i.x-s.x)/r,a=(i.y-s.y)/r}else{let r=this.pointCoordinate(i),n=this.pointCoordinate(s);o=r.x-n.x,a=r.y-n.y}let l=this.locationCoordinate(n);this.setLocation(new r.MercatorCoordinate(l.x-o,l.y-a))}setLocation(r){this.center=this.coordinateLocation(r),this.projection.wrap&&(this.center=this.center.wrap())}locationPoint(r){return this.projection.locationPoint(this,r)}locationPoint3D(r){return this.projection.locationPoint(this,r,!0)}pointLocation(r){return this.coordinateLocation(this.pointCoordinate(r))}pointLocation3D(r){return this.coordinateLocation(this.pointCoordinate3D(r))}locationCoordinate(n,i){let o=i?r.mercatorZfromAltitude(i,n.lat):void 0,a=this.projection.project(n.lng,n.lat);return new r.MercatorCoordinate(a.x,a.y,o)}coordinateLocation(r){return this.projection.unproject(r.x,r.y)}pointRayIntersection(n,i){let o=null!=i?i:this._centerAltitude,a=[n.x,n.y,0,1],s=[n.x,n.y,1,1];r.transformMat4$1(a,a,this.pixelMatrixInverse),r.transformMat4$1(s,s,this.pixelMatrixInverse);let l=s[3];r.scale$1(a,a,1/a[3]),r.scale$1(s,s,1/l);let c=a[2],u=s[2];return{p0:a,p1:s,t:c===u?0:(o-c)/(u-c)}}screenPointToMercatorRay(n){let i=[n.x,n.y,0,1],o=[n.x,n.y,1,1];return r.transformMat4$1(i,i,this.pixelMatrixInverse),r.transformMat4$1(o,o,this.pixelMatrixInverse),r.scale$1(i,i,1/i[3]),r.scale$1(o,o,1/o[3]),i[2]=r.mercatorZfromAltitude(i[2],this._center.lat)*this.worldSize,o[2]=r.mercatorZfromAltitude(o[2],this._center.lat)*this.worldSize,r.scale$1(i,i,1/this.worldSize),r.scale$1(o,o,1/this.worldSize),new r.Ray([i[0],i[1],i[2]],r.normalize([],r.sub([],o,i)))}rayIntersectionCoordinate(n){let{p0:i,p1:o,t:a}=n,s=r.mercatorZfromAltitude(i[2],this._center.lat),l=r.mercatorZfromAltitude(o[2],this._center.lat);return new r.MercatorCoordinate(r.number(i[0],o[0],a)/this.worldSize,r.number(i[1],o[1],a)/this.worldSize,r.number(s,l,a))}pointCoordinate(r,n=this._centerAltitude){return this.projection.pointCoordinate(this,r.x,r.y,n)}pointCoordinate3D(n){if(!this.elevation)return this.pointCoordinate(n);let i=this.projection.pointCoordinate3D(this,n.x,n.y);if(i)return new r.MercatorCoordinate(i[0],i[1],i[2]);let o=0,a=this.horizonLineFromTop();if(n.y>a)return this.pointCoordinate(n);let s=.02*a,l=n.clone();for(let n=0;n<10&&a-o>s;n++){l.y=r.number(o,a,.66);let n=this.projection.pointCoordinate3D(this,l.x,l.y);n?(a=l.y,i=n):o=l.y}return i?new r.MercatorCoordinate(i[0],i[1],i[2]):this.pointCoordinate(n)}isPointAboveHorizon(r){return this.projection.isPointAboveHorizon(this,r)}isPointOnSurface(n){if(n.y<0||n.y>this.height||n.x<0||n.x>this.width)return!1;if(this.elevation||this.zoom>=r.GLOBE_ZOOM_THRESHOLD_MAX)return!this.isPointAboveHorizon(n);let i=this.pointCoordinate(n);return i.y>=0&&i.y<=1}_coordinatePoint(n,i){let o=i&&this.elevation?this.elevation.getAtPointOrZero(n,this._centerAltitude):this._centerAltitude,a=[n.x*this.worldSize,n.y*this.worldSize,o+n.toAltitude(),1];return r.transformMat4$1(a,a,this.pixelMatrix),a[3]>0?new r.Point(a[0]/a[3],a[1]/a[3]):new r.Point(Number.MAX_VALUE,Number.MAX_VALUE)}_getBoundsNonRectangular(){let{top:n,left:i}=this._edgeInsets,o=this.height-this._edgeInsets.bottom,a=this.width-this._edgeInsets.right,s=this.pointLocation3D(new r.Point(i,n)),l=this.pointLocation3D(new r.Point(a,n)),c=this.pointLocation3D(new r.Point(a,o)),u=this.pointLocation3D(new r.Point(i,o)),d=Math.min(s.lng,l.lng,c.lng,u.lng),h=Math.max(s.lng,l.lng,c.lng,u.lng),p=Math.min(s.lat,l.lat,c.lat,u.lat),f=Math.max(s.lat,l.lat,c.lat,u.lat),m=Math.pow(2,-this.zoom)/16*270,g="globe"===this.projection.name?1:4,v=(n,i,o,a,s)=>{let l=(n+o)/2,c=(i+a)/2,u=new r.Point(l,c),{lng:y,lat:b}=this.pointLocation3D(u),x=Math.max(0,d-y,p-b,y-h,b-f);d=Math.min(d,y),h=Math.max(h,y),p=Math.min(p,b),f=Math.max(f,b),(s<g||x>m)&&(v(n,i,l,c,s+1),v(l,c,o,a,s+1))};
222if(v(i,n,a,n,1),v(a,n,a,o,1),v(a,o,i,o,1),v(i,o,i,n,1),"globe"===this.projection.name){let[n,i]=r.polesInViewport(this);n?(f=90,h=180,d=-180):i&&(p=-90,h=180,d=-180)}return new r.LngLatBounds(new r.LngLat(d,p),new r.LngLat(h,f))}_getBoundsRectangular(n,i){var o,a,s,l;let{top:c,left:u}=this._edgeInsets,d=this.height-this._edgeInsets.bottom,h=this.width-this._edgeInsets.right,p=new r.Point(u,c),f=new r.Point(h,c),m=new r.Point(h,d),g=new r.Point(u,d),v=this.pointCoordinate(p,n),y=this.pointCoordinate(f,n),b=this.pointCoordinate(m,i),x=this.pointCoordinate(g,i);return v.y>1&&y.y>=0?v=new r.MercatorCoordinate((1-x.y)/(((o=v).y-x.y)/(o.x-x.x))+x.x,1):v.y<0&&y.y<=1&&(v=new r.MercatorCoordinate(-x.y/(((a=v).y-x.y)/(a.x-x.x))+x.x,0)),y.y>1&&v.y>=0?y=new r.MercatorCoordinate((1-b.y)/(((s=y).y-b.y)/(s.x-b.x))+b.x,1):y.y<0&&v.y<=1&&(y=new r.MercatorCoordinate(-b.y/(((l=y).y-b.y)/(l.x-b.x))+b.x,0)),(new r.LngLatBounds).extend(this.coordinateLocation(v)).extend(this.coordinateLocation(y)).extend(this.coordinateLocation(x)).extend(this.coordinateLocation(b))}_getBoundsRectangularTerrain(){let r=this.elevation;if(!r.visibleDemTiles.length||r.isUsingMockSource())return this._getBoundsRectangular(0,0);let n=r.visibleDemTiles.reduce((r,n)=>{if(n.dem){let i=n.dem.tree;r.min=Math.min(r.min,i.minimums[0]),r.max=Math.max(r.max,i.maximums[0])}return r},{min:Number.MAX_VALUE,max:0});return this._getBoundsRectangular(n.min*r.exaggeration(),n.max*r.exaggeration())}getBounds(){return"mercator"===this.projection.name||"equirectangular"===this.projection.name?this._terrainEnabled()?this._getBoundsRectangularTerrain():this._getBoundsRectangular(0,0):this._getBoundsNonRectangular()}horizonLineFromTop(r=!0){let n=this.height/2/Math.tan(this._fov/2)/Math.tan(Math.max(this._pitch,.1))+this.centerOffset.y,i=this.height/2-n*(1-this._horizonShift);return r?Math.max(0,i):i}getMaxBounds(){return this.maxBounds}setMaxBounds(n){this.maxBounds=n,this.minLat=-r.MAX_MERCATOR_LATITUDE,this.maxLat=r.MAX_MERCATOR_LATITUDE,this.minLng=-180,this.maxLng=180,n&&(this.minLat=n.getSouth(),this.maxLat=n.getNorth(),this.minLng=n.getWest(),this.maxLng=n.getEast(),this.maxLng<this.minLng&&(this.maxLng+=360)),this.worldMinX=r.mercatorXfromLng(this.minLng)*this.tileSize,this.worldMaxX=r.mercatorXfromLng(this.maxLng)*this.tileSize,this.worldMinY=r.mercatorYfromLat(this.maxLat)*this.tileSize,this.worldMaxY=r.mercatorYfromLat(this.minLat)*this.tileSize,this._constrain()}calculatePosMatrix(r,n){return this.projection.createTileMatrix(this,n,r)}calculateDistanceTileData(n){let i=n.key,o=this._distanceTileDataCache;if(o[i])return o[i];let a=n.canonical,s=1/this.height,l=this.cameraWorldSize,c=l/this.zoomScale(a.z),u=(a.x+Math.pow(2,a.z)*n.wrap)*c,d=a.y*c,h=this.point;h.x*=l/this.worldSize,h.y*=l/this.worldSize;let p=this.angle,f=Math.sin(-p),m=-Math.cos(-p);return o[i]={bearing:[f,m],center:[(h.x-u)*s,(h.y-d)*s],scale:c/r.EXTENT*s},o[i]}calculateFogTileMatrix(n){let i=n.key,o=this._fogTileMatrixCache;if(o[i])return o[i];let a=this.projection.createTileMatrix(this,this.cameraWorldSizeForFog,n);return r.multiply(a,this.worldToFogMatrix,a),o[i]=new Float32Array(a),o[i]}calculateProjMatrix(n,i=!1){let o=n.key,a=i?this._alignedProjMatrixCache:this._projMatrixCache;if(a[o])return a[o];let s=this.calculatePosMatrix(n,this.worldSize);return r.multiply(s,this.projection.isReprojectedInTileSpace?this.mercatorMatrix:i?this.alignedProjMatrix:this.projMatrix,s),a[o]=new Float32Array(s),a[o]}calculatePixelsToTileUnitsMatrix(n){let i=n.tileID.key,o=this._pixelsToTileUnitsCache;if(o[i])return o[i];let a=function(n,i){var o,a,s,l,c,u,d,h;let{scale:p}=n.tileTransform,f=p*r.EXTENT/(n.tileSize*Math.pow(2,i.zoom-n.tileID.overscaledZ+n.tileID.canonical.z));return o=new Float32Array(4),l=(a=i.inverseAdjustmentMatrix)[1],c=a[2],u=a[3],h=(s=[f,f])[1],o[0]=a[0]*(d=s[0]),o[1]=l*d,o[2]=c*h,o[3]=u*h,o}(n,this);return o[i]=a,o[i]}customLayerMatrix(){return this.mercatorMatrix.slice()}globeToMercatorMatrix(){if("globe"===this.projection.name){let n=1/this.worldSize,i=r.fromScaling([],[n,n,n]);return r.multiply(i,i,this.globeMatrix),i}}recenterOnTerrain(){if(!this._elevation||"globe"===this.projection.name)return;let n=this._elevation;this._updateCameraState();let i=r.mercatorZfromAltitude(1,this._center.lat)*this.worldSize,o=this._computeCameraPosition(i),a=this._camera.forward(),s=r.mercatorZfromAltitude(1,this._center.lat);o[2]/=s,a[2]/=s,r.normalize(a,a);let l=n.raycast(o,a,n.exaggeration());if(l){let n=r.scaleAndAdd([],o,a,l),i=new r.MercatorCoordinate(n[0],n[1],r.mercatorZfromAltitude(n[2],r.latFromMercatorY(n[1]))),c=(i.z+r.length([i.x-o[0],i.y-o[1],i.z-o[2]*s]))*this._pixelsPerMercatorPixel;this._seaLevelZoom=this._zoomFromMercatorZ(c),this._centerAltitude=i.toAltitude(),this._center=this.coordinateLocation(i),this._updateZoomFromElevation(),this._constrain(),this._calcMatrices()}}_constrainCamera(n=!1){if(!this._elevation)return;let i=this._elevation,o=r.mercatorZfromAltitude(1,this._center.lat)*this.worldSize,a=this._computeCameraPosition(o),s=i.getAtPointOrZero(new r.MercatorCoordinate(...a)),l=this.pixelsPerMeter/this.worldSize*s,c=this._minimumHeightOverTerrain(),u=a[2]-l;if(u<=c){if(u<0||n){let n=this.locationCoordinate(this._center,this._centerAltitude),i=[a[0],a[1],n.z-a[2]],o=r.length(i);i[2]-=(c-u)/this._pixelsPerMercatorPixel;let s=r.length(i);if(0===s)return;r.scale$2(i,i,o/s*this._pixelsPerMercatorPixel),this._camera.position=[a[0],a[1],n.z*this._pixelsPerMercatorPixel-i[2]],this._updateStateFromCamera()}else this._isCameraConstrained=!0}}_constrain(){if(!this.center||!this.width||!this.height||this._constraining)return;this._constraining=!0;let n="globe"===this.projection.name||this.mercatorFromTransition;if(this.projection.isReprojectedInTileSpace||n){let i=this.center;return i.lat=r.clamp(i.lat,this.minLat,this.maxLat),!this.maxBounds&&(this.renderWorldCopies||n)||(i.lng=r.clamp(i.lng,this.minLng,this.maxLng)),this.center=i,void(this._constraining=!1)}let i=this._unmodified,{x:o,y:a}=this.point,s=0,l=o,c=a,u=this.width/2,d=this.height/2,h=this.worldMinY*this.scale,p=this.worldMaxY*this.scale;if(a-d<h&&(c=h+d),a+d>p&&(c=p-d),p-h<this.height&&(s=Math.max(s,this.height/(p-h)),c=(p+h)/2),this.maxBounds||!this._renderWorldCopies||!this.projection.wrap){let r=this.worldMinX*this.scale,n=this.worldMaxX*this.scale,i=this.worldSize/2-(r+n)/2;(l=(o+i+this.worldSize)%this.worldSize-i)-u<r&&(l=r+u),l+u>n&&(l=n-u),n-r<this.width&&(s=Math.max(s,this.width/(n-r)),l=(n+r)/2)}l===o&&c===a||(this.center=this.unproject(new r.Point(l,c))),s&&(this.zoom+=this.scaleZoom(s)),this._constrainCamera(),this._unmodified=i,this._constraining=!1}_minZoomForBounds(){let r=Math.max(0,this.scaleZoom(this.height/(this.worldMaxY-this.worldMinY)));return this.maxBounds&&(r=Math.max(r,this.scaleZoom(this.width/(this.worldMaxX-this.worldMinX)))),r}_maxCameraBoundsDistance(){return this._mercatorZfromZoom(this._minZoomForBounds())}
222_calcMatrices(){if(!this.height)return;let n=this.centerOffset,i=this.pixelsPerMeter;"globe"===this.projection.name&&(this._mercatorScaleRatio=r.mercatorZfromAltitude(1,this.center.lat)/r.mercatorZfromAltitude(1,r.GLOBE_SCALE_MATCH_LATITUDE));let o=rX(this.projection,this.zoom,this.width,this.height,1024);this._pixelsPerMercatorPixel=this.projection.pixelSpaceConversion(this.center.lat,this.worldSize,o),this.cameraToCenterDistance=.5/Math.tan(.5*this._fov)*this.height*this._pixelsPerMercatorPixel,this._updateCameraState(),this._farZ=this.projection.farthestPixelDistance(this),this._nearZ=this.height/50;let a="meters"===this.projection.zAxisUnit?i:1,s=this._camera.getWorldToCamera(this.worldSize,a),l=this._camera.getCameraToClipPerspective(this._fov,this.width/this.height,this._nearZ,this._farZ);l[8]=-(2*n.x)/this.width,l[9]=2*n.y/this.height;let c=r.mul([],l,s);if(this.projection.isReprojectedInTileSpace){let n=this.locationCoordinate(this.center),i=r.identity([]);r.translate(i,i,[n.x*this.worldSize,n.y*this.worldSize,0]),r.multiply(i,i,rW(this)),r.translate(i,i,[-n.x*this.worldSize,-n.y*this.worldSize,0]),r.multiply(c,c,i),this.inverseAdjustmentMatrix=function(r){let n=rW(r,!0);return _([],[n[0],n[1],n[4],n[5]])}(this)}else this.inverseAdjustmentMatrix=[1,0,0,1];this.mercatorMatrix=r.scale([],c,[this.worldSize,this.worldSize,this.worldSize/a,1]),this.projMatrix=c,this.invProjMatrix=r.invert(new Float64Array(16),this.projMatrix);let u=r.invert([],l);this.frustumCorners=r.FrustumCorners.fromInvProjectionMatrix(u,this.horizonLineFromTop(),this.height);let d=new Float32Array(16);r.identity(d),r.scale(d,d,[1,-1,1]),r.rotateX(d,d,this._pitch),r.rotateZ(d,d,this.angle);let h=r.perspective(new Float32Array(16),this._fov,this.width/this.height,this._nearZ,this._farZ),p=(Math.PI/2-this._pitch)*(this.height/this._fov)*this._horizonShift;h[8]=-(2*n.x)/this.width,h[9]=2*(n.y+p)/this.height,this.skyboxMatrix=r.multiply(d,h,d);let f=this.point,m=f.x,g=f.y,v=this.width%2/2,y=this.height%2/2,b=Math.cos(this.angle),x=Math.sin(this.angle),w=m-Math.round(m)+b*v+x*y,S=g-Math.round(g)+b*y+x*v,T=new Float64Array(c);if(r.translate(T,T,[w>.5?w-1:w,S>.5?S-1:S,0]),this.alignedProjMatrix=T,c=r.create(),r.scale(c,c,[this.width/2,-this.height/2,1]),r.translate(c,c,[1,-1,0]),this.labelPlaneMatrix=c,c=r.create(),r.scale(c,c,[1,-1,1]),r.translate(c,c,[-1,-1,0]),r.scale(c,c,[2/this.width,2/this.height,1]),this.glCoordMatrix=c,this.pixelMatrix=r.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),this._calcFogMatrices(),this._distanceTileDataCache={},!(c=r.invert(new Float64Array(16),this.pixelMatrix)))throw Error("failed to invert matrix");if(this.pixelMatrixInverse=c,"globe"===this.projection.name||this.mercatorFromTransition){this.globeMatrix=r.calculateGlobeMatrix(this);let n=[this.globeMatrix[12],this.globeMatrix[13],this.globeMatrix[14]];this.globeCenterInViewSpace=r.transformMat4(n,n,s),this.globeRadius=this.worldSize/2/Math.PI-1}else this.globeMatrix=c;this._projMatrixCache={},this._alignedProjMatrixCache={},this._pixelsToTileUnitsCache={}}_calcFogMatrices(){this._fogTileMatrixCache={};let n=this.cameraWorldSizeForFog,i=this.cameraPixelsPerMeter,o=this._camera.position,a=1/this.height/this._pixelsPerMercatorPixel,s=[n,n,i];r.scale$2(s,s,a),r.scale$2(o,o,-1),r.multiply$2(o,o,s);let l=r.create();r.translate(l,l,o),r.scale(l,l,s),this.mercatorFogMatrix=l,this.worldToFogMatrix=this._camera.getWorldToCameraPosition(n,i,a)}_computeCameraPosition(r){let n=(r=r||this.pixelsPerMeter)/this.pixelsPerMeter,i=this._camera.forward(),o=this.point,a=this._mercatorZfromZoom(this._seaLevelZoom?this._seaLevelZoom:this._zoom)*n-r/this.worldSize*this._centerAltitude;return[o.x/this.worldSize-i[0]*a,o.y/this.worldSize-i[1]*a,r/this.worldSize*this._centerAltitude-i[2]*a]}_updateCameraState(){this.height&&(this._camera.setPitchBearing(this._pitch,this.angle),this._camera.position=this._computeCameraPosition())}_translateCameraConstrained(n){let i=this._maxCameraBoundsDistance()*Math.cos(this._pitch),o=this._camera.position[2],a=n[2],s=1;this.projection.wrap&&(this.center=this.center.wrap()),a>0&&(s=Math.min((i-o)/a,1)),this._camera.position=r.scaleAndAdd([],this._camera.position,n,s),this._updateStateFromCamera()}_updateStateFromCamera(){let n=this._camera.position,i=this._camera.forward(),{pitch:o,bearing:a}=this._camera.getPitchBearing(),s=r.mercatorZfromAltitude(this._centerAltitude,this.center.lat)*this._pixelsPerMercatorPixel,l=this._mercatorZfromZoom(this._maxZoom)*Math.cos(r.degToRad(this._maxPitch)),c=Math.max((n[2]-s)/Math.cos(o),l),u=this._zoomFromMercatorZ(c);r.scaleAndAdd(n,n,i,c),this._pitch=r.clamp(o,r.degToRad(this.minPitch),r.degToRad(this.maxPitch)),this.angle=r.wrap(a,-Math.PI,Math.PI),this._setZoom(r.clamp(u,this._minZoom,this._maxZoom)),this._updateSeaLevelZoom(),this._center=this.coordinateLocation(new r.MercatorCoordinate(n[0],n[1],n[2])),this._unmodified=!1,this._constrain(),this._calcMatrices()}_worldSizeFromZoom(r){return Math.pow(2,r)*this.tileSize}_mercatorZfromZoom(r){return this.cameraToCenterDistance/this._worldSizeFromZoom(r)}_minimumHeightOverTerrain(){let r=Math.min((null!=this._seaLevelZoom?this._seaLevelZoom:this._zoom)+4,this._maxZoom);return this._mercatorZfromZoom(r)}_zoomFromMercatorZ(r){return this.scaleZoom(this.cameraToCenterDistance/(r*this.tileSize))}zoomFromMercatorZAdjusted(n){let i=0,o=r.GLOBE_ZOOM_THRESHOLD_MAX,a=0,s=1/0;for(;o-i>1e-6&&o>i;){let r=i+.5*(o-i),l=this.tileSize*Math.pow(2,r),c=this.getCameraToCenterDistance(this.projection,r,l),u=this.scaleZoom(c/(n*this.tileSize)),d=Math.abs(r-u);d<s&&(s=d,a=r),r<u?i=r:o=r}return a}_terrainEnabled(){return!(!this._elevation||!this.projection.supportsTerrain&&(r.warnOnce("Terrain is not yet supported with alternate projections. Use mercator or globe to enable terrain."),1))}anyCornerOffEdge(n,i){let o=Math.min(n.x,i.x),a=Math.max(n.x,i.x),s=Math.min(n.y,i.y),l=Math.max(n.y,i.y);if(s<this.horizonLineFromTop(!1))return!0;
222if("mercator"!==this.projection.name)return!1;let c=[new r.Point(o,s),new r.Point(a,l),new r.Point(o,l),new r.Point(a,s)],u=this.renderWorldCopies?-3:0,d=this.renderWorldCopies?4:1;for(let r of c){let n=this.pointRayIntersection(r);if(n.t<0)return!0;let i=this.rayIntersectionCoordinate(n);if(i.x<u||i.y<0||i.x>d||i.y>1)return!0}return!1}isHorizonVisible(){return this.pitch+r.radToDeg(this.fovAboveCenter)>88||this.anyCornerOffEdge(new r.Point(0,0),new r.Point(this.width,this.height))}zoomDeltaToMovement(n,i){let o=r.length(r.sub([],this._camera.position,n)),a=this._zoomFromMercatorZ(o)+i;return o-this._mercatorZfromZoom(a)}getCameraPoint(){if("globe"===this.projection.name){let n=function([n,i,o],a){let s=[n,i,o,1];r.transformMat4$1(s,s,a);let l=s[3]=Math.max(s[3],1e-6);return s[0]/=l,s[1]/=l,s[2]/=l,s}([this.globeMatrix[12],this.globeMatrix[13],this.globeMatrix[14]],this.pixelMatrix);return new r.Point(n[0],n[1])}{let n=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new r.Point(0,n))}}getCameraToCenterDistance(r,n=this.zoom,i=this.worldSize){let o=rX(r,n,this.width,this.height,1024),a=r.pixelSpaceConversion(this.center.lat,i,o);return .5/Math.tan(.5*this._fov)*this.height*a}getWorldToCameraMatrix(){let n=this._camera.getWorldToCamera(this.worldSize,"meters"===this.projection.zAxisUnit?this.pixelsPerMeter:1);return"globe"===this.projection.name&&r.multiply(n,n,this.globeMatrix),n}}function r0(r,n){let i=!1,o=null,a=()=>{o=null,i&&(r(),o=setTimeout(a,n),i=!1)};return()=>(i=!0,o||a(),o)}class r1{constructor(n){this._hashName=n&&encodeURIComponent(n),r.bindAll(["_getCurrentHash","_onHashChange","_updateHash"],this),this._updateHash=r0(this._updateHashUnthrottled.bind(this),300)}addTo(n){return this._map=n,r.window.addEventListener("hashchange",this._onHashChange,!1),n.on("moveend",this._updateHash),this}remove(){return this._map&&(this._map.off("moveend",this._updateHash),r.window.removeEventListener("hashchange",this._onHashChange,!1),clearTimeout(this._updateHash()),this._map=void 0),this}getHashString(){let n=this._map;if(!n)return"";let i=r2(n);if(this._hashName){let n=this._hashName,o=!1,a=r.window.location.hash.slice(1).split("&").map(r=>{let a=r.split("=")[0];return a===n?(o=!0,`${a}=${i}`):r}).filter(r=>r);return o||a.push(`${n}=${i}`),`#${a.join("&")}`}return`#${i}`}_getCurrentHash(){let n=r.window.location.hash.replace("#","");if(this._hashName){let r;return n.split("&").map(r=>r.split("=")).forEach(n=>{n[0]===this._hashName&&(r=n)}),(r&&r[1]||"").split("/")}return n.split("/")}_onHashChange(){let r=this._map;if(!r)return!1;let n=this._getCurrentHash();if(n.length>=3&&!n.some(r=>isNaN(r))){let i=r.dragRotate.isEnabled()&&r.touchZoomRotate.isEnabled()?+(n[3]||0):r.getBearing();return r.jumpTo({center:[+n[2],+n[1]],zoom:+n[0],bearing:i,pitch:+(n[4]||0)}),!0}return!1}_updateHashUnthrottled(){let n=r.window.location.href.replace(/(#.+)?$/,this.getHashString());r.window.history.replaceState(r.window.history.state,null,n)}}function r2(r,n){let i=r.getCenter(),o=Math.round(100*r.getZoom())/100,a=Math.ceil((o*Math.LN2+Math.log(512/360/.5))/Math.LN10),s=Math.pow(10,a),l=Math.round(i.lng*s)/s,c=Math.round(i.lat*s)/s,u=r.getBearing(),d=r.getPitch(),h=n?`/${l}/${c}/${o}`:`${o}/${c}/${l}`;return(u||d)&&(h+="/"+Math.round(10*u)/10),d&&(h+=`/${Math.round(d)}`),h}let r3={linearity:.3,easing:r.bezier(0,0,.3,1)},r4=r.extend({deceleration:2500,maxSpeed:1400},r3),r5=r.extend({deceleration:20,maxSpeed:1400},r3),r6=r.extend({deceleration:1e3,maxSpeed:360},r3),r8=r.extend({deceleration:1e3,maxSpeed:90},r3);class r9{constructor(r){this._map=r,this.clear()}clear(){this._inertiaBuffer=[]}record(n){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:r.exported.now(),settings:n})}_drainInertiaBuffer(){let n=this._inertiaBuffer,i=r.exported.now();for(;n.length>0&&i-n[0].time>160;)n.shift()}_onMoveEnd(n){if(this._map._prefersReducedMotion()||(this._drainInertiaBuffer(),this._inertiaBuffer.length<2))return;let i={zoom:0,bearing:0,pitch:0,pan:new r.Point(0,0),pinchAround:void 0,around:void 0};for(let{settings:r}of this._inertiaBuffer)i.zoom+=r.zoomDelta||0,i.bearing+=r.bearingDelta||0,i.pitch+=r.pitchDelta||0,r.panDelta&&i.pan._add(r.panDelta),r.around&&(i.around=r.around),r.pinchAround&&(i.pinchAround=r.pinchAround);let o=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,a={};if(i.pan.mag()){let s=ne(i.pan.mag(),o,r.extend({},r4,n||{}));a.offset=i.pan.mult(s.amount/i.pan.mag()),a.center=this._map.transform.center,r7(a,s)}if(i.zoom){let r=ne(i.zoom,o,r5);a.zoom=this._map.transform.zoom+r.amount,r7(a,r)}if(i.bearing){let n=ne(i.bearing,o,r6);
222a.bearing=this._map.transform.bearing+r.clamp(n.amount,-179,179),r7(a,n)}if(i.pitch){let r=ne(i.pitch,o,r8);a.pitch=this._map.transform.pitch+r.amount,r7(a,r)}if(a.zoom||a.bearing){let r=void 0===i.pinchAround?i.around:i.pinchAround;a.around=r?this._map.unproject(r):this._map.getCenter()}return this.clear(),a.noMoveStart=!0,a}}function r7(r,n){(!r.duration||r.duration<n.duration)&&(r.duration=n.duration,r.easing=n.easing)}function ne(n,i,o){let{maxSpeed:a,linearity:s,deceleration:l}=o,c=r.clamp(n*s/(i/1e3),-a,a),u=Math.abs(c)/(l*s);return{easing:o.easing,duration:1e3*u,amount:c*(u/2)}}class nt extends r.Event{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(n,i,o,a={}){let s=v(i.getCanvasContainer(),o),l=i.unproject(s);super(n,r.extend({point:s,lngLat:l,originalEvent:o},a)),this._defaultPrevented=!1,this.target=i}}class nr extends r.Event{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(n,i,o){let a="touchend"===n?o.changedTouches:o.touches,s=y(i.getCanvasContainer(),a),l=s.map(r=>i.unproject(r)),c=s.reduce((r,n,i,o)=>r.add(n.div(o.length)),new r.Point(0,0));super(n,{points:s,point:c,lngLats:l,lngLat:i.unproject(c),originalEvent:o}),this._defaultPrevented=!1}}class nn extends r.Event{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(r,n,i){super(r,{originalEvent:i}),this._defaultPrevented=!1}}class ni{constructor(r,n){this._map=r,this._clickTolerance=n.clickTolerance}reset(){this._mousedownPos=void 0}wheel(r){return this._firePreventable(new nn(r.type,this._map,r))}mousedown(r,n){return this._mousedownPos=n,this._firePreventable(new nt(r.type,this._map,r))}mouseup(r){this._map.fire(new nt(r.type,this._map,r))}preclick(n){let i=r.extend({},n);i.type="preclick",this._map.fire(new nt(i.type,this._map,i))}click(r,n){this._mousedownPos&&this._mousedownPos.dist(n)>=this._clickTolerance||(this.preclick(r),this._map.fire(new nt(r.type,this._map,r)))}dblclick(r){return this._firePreventable(new nt(r.type,this._map,r))}mouseover(r){this._map.fire(new nt(r.type,this._map,r))}mouseout(r){this._map.fire(new nt(r.type,this._map,r))}touchstart(r){return this._firePreventable(new nr(r.type,this._map,r))}touchmove(r){this._map.fire(new nr(r.type,this._map,r))}touchend(r){this._map.fire(new nr(r.type,this._map,r))}touchcancel(r){this._map.fire(new nr(r.type,this._map,r))}_firePreventable(r){if(this._map.fire(r),r.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class no{constructor(r){this._map=r}reset(){this._delayContextMenu=!1,this._contextMenuEvent=void 0}mousemove(r){this._map.fire(new nt(r.type,this._map,r))}mousedown(){this._delayContextMenu=!0}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new nt("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(r){this._delayContextMenu?this._contextMenuEvent=r:this._map.fire(new nt(r.type,this._map,r)),this._map.listens("contextmenu")&&r.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class na{constructor(r,n){this._map=r,this._el=r.getCanvasContainer(),this._container=r.getContainer(),this._clickTolerance=n.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(r,n){this.isEnabled()&&r.shiftKey&&0===r.button&&(p(),this._startPos=this._lastPos=n,this._active=!0)}mousemoveWindow(r,n){if(!this._active)return;let i=this._startPos,o=this._lastPos;if(!i||!o||o.equals(n)||!this._box&&n.dist(i)<this._clickTolerance)return;this._lastPos=n,this._box||(this._box=c("div","mapboxgl-boxzoom",this._container),this._container.classList.add("mapboxgl-crosshair"),this._fireEvent("boxzoomstart",r));let a=Math.min(i.x,n.x),s=Math.max(i.x,n.x),l=Math.min(i.y,n.y),u=Math.max(i.y,n.y);this._map._requestDomTask(()=>{this._box&&(this._box.style.transform=`translate(${a}px,${l}px)`,this._box.style.width=s-a+"px",this._box.style.height=u-l+"px")})}
222mouseupWindow(n,i){if(!this._active)return;let o=this._startPos;if(o&&0===n.button){if(this.reset(),g(),o.x!==i.x||o.y!==i.y)return this._map.fire(new r.Event("boxzoomend",{originalEvent:n})),{cameraAnimation:r=>r.fitScreenCoordinates(o,i,this._map.getBearing(),{linear:!1})};this._fireEvent("boxzoomcancel",n)}}keydown(r){this._active&&27===r.keyCode&&(this.reset(),this._fireEvent("boxzoomcancel",r))}blur(){this.reset()}reset(){this._active=!1,this._container.classList.remove("mapboxgl-crosshair"),this._box&&(this._box.remove(),this._box=null),f(),delete this._startPos,delete this._lastPos}_fireEvent(n,i){return this._map.fire(new r.Event(n,{originalEvent:i}))}}function ns(r,n){let i={};for(let o=0;o<r.length;o++)i[r[o].identifier]=n[o];return i}class nl{constructor(r){this.reset(),this.numTouches=r.numTouches}reset(){this.centroid=void 0,this.startTime=0,this.touches={},this.aborted=!1}touchstart(n,i,o){(this.centroid||o.length>this.numTouches)&&(this.aborted=!0),this.aborted||(0===this.startTime&&(this.startTime=n.timeStamp),o.length===this.numTouches&&(this.centroid=function(n){let i=new r.Point(0,0);for(let r of n)i._add(r);return i.div(n.length)}(i),this.touches=ns(o,i)))}touchmove(r,n,i){if(this.aborted||!this.centroid)return;let o=ns(i,n);for(let r in this.touches){let n=o[r];(!n||n.dist(this.touches[r])>30)&&(this.aborted=!0)}}touchend(r,n,i){if((!this.centroid||r.timeStamp-this.startTime>500)&&(this.aborted=!0),0===i.length){let r=!this.aborted&&this.centroid;if(this.reset(),r)return r}}}class nc{constructor(r){this.singleTap=new nl(r),this.numTaps=r.numTaps,this.reset()}reset(){this.lastTime=1/0,this.lastTap=void 0,this.count=0,this.singleTap.reset()}touchstart(r,n,i){this.singleTap.touchstart(r,n,i)}touchmove(r,n,i){this.singleTap.touchmove(r,n,i)}touchend(r,n,i){let o=this.singleTap.touchend(r,n,i);if(o){let n=r.timeStamp-this.lastTime<500,i=!this.lastTap||30>this.lastTap.dist(o);if(n&&i||this.reset(),this.count++,this.lastTime=r.timeStamp,this.lastTap=o,this.count===this.numTaps)return this.reset(),o}}}class nu{constructor(){this._zoomIn=new nc({numTouches:1,numTaps:2}),this._zoomOut=new nc({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(r,n,i){this._zoomIn.touchstart(r,n,i),this._zoomOut.touchstart(r,n,i)}touchmove(r,n,i){this._zoomIn.touchmove(r,n,i),this._zoomOut.touchmove(r,n,i)}touchend(r,n,i){let o=this._zoomIn.touchend(r,n,i),a=this._zoomOut.touchend(r,n,i);return o?(this._active=!0,r.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:n=>n.easeTo({duration:300,zoom:n.getZoom()+1,around:n.unproject(o)},{originalEvent:r})}):a?(this._active=!0,r.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:n=>n.easeTo({duration:300,zoom:n.getZoom()-1,around:n.unproject(a)},{originalEvent:r})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}let nd={0:1,2:2};class nh{constructor(r){this.reset(),this._clickTolerance=r.clickTolerance||1}blur(){this.reset()}reset(){this._active=!1,this._moved=!1,this._lastPoint=void 0,this._eventButton=void 0}_correctButton(r,n){return!1}_move(r,n){return{}}mousedown(r,n){if(this._lastPoint)return;let i=b(r);this._correctButton(r,i)&&(this._lastPoint=n,this._eventButton=i)}mousemoveWindow(r,n){let i=this._lastPoint;if(i){if(r.preventDefault(),null!=this._eventButton&&function(r,n){let i=nd[n];return void 0===r.buttons||(r.buttons&i)!==i}(r,this._eventButton))this.reset();else if(this._moved||!(n.dist(i)<this._clickTolerance))return this._moved=!0,this._lastPoint=n,this._move(i,n)}}mouseupWindow(r){this._lastPoint&&b(r)===this._eventButton&&(this._moved&&g(),this.reset())}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class np extends nh{mousedown(r,n){super.mousedown(r,n),this._lastPoint&&(this._active=!0)}_correctButton(r,n){return 0===n&&!r.ctrlKey}_move(r,n){return{around:n,panDelta:n.sub(r)}}}class nf extends nh{_correctButton(r,n){return 0===n&&r.ctrlKey||2===n}_move(r,n){let i=.8*(n.x-r.x);if(i)return this._active=!0,{bearingDelta:i}}contextmenu(r){r.preventDefault()}}class nm extends nh{_correctButton(r,n){return 0===n&&r.ctrlKey||2===n}_move(r,n){let i=-.5*(n.y-r.y);if(i)return this._active=!0,{pitchDelta:i}}contextmenu(r){r.preventDefault()}}class ng{constructor(n,i){this._map=n,this._el=n.getCanvasContainer(),this._minTouches=1,this._clickTolerance=i.clickTolerance||1,this.reset(),r.bindAll(["_addTouchPanBlocker","_showTouchPanBlockerAlert"],this)}reset(){this._active=!1,this._touches={},this._sum=new r.Point(0,0)}touchstart(r,n,i){return this._calculateTransform(r,n,i)}touchmove(n,i,o){if(this._active&&!(o.length<this._minTouches)){if(this._map._cooperativeGestures&&!this._map.isMoving()){if(1===o.length&&!r.isFullscreen())return void this._showTouchPanBlockerAlert();
222"hidden"!==this._alertContainer.style.visibility&&(this._alertContainer.style.visibility="hidden",clearTimeout(this._alertTimer))}return n.cancelable&&n.preventDefault(),this._calculateTransform(n,i,o)}}touchend(r,n,i){this._calculateTransform(r,n,i),this._active&&i.length<this._minTouches&&this.reset()}touchcancel(){this.reset()}_calculateTransform(n,i,o){o.length>0&&(this._active=!0);let a=ns(o,i),s=new r.Point(0,0),l=new r.Point(0,0),c=0;for(let r in a){let n=a[r],i=this._touches[r];i&&(s._add(n),l._add(n.sub(i)),c++,a[r]=n)}if(this._touches=a,c<this._minTouches||!l.mag())return;let u=l.div(c);return this._sum._add(u),this._sum.mag()<this._clickTolerance?void 0:{around:s.div(c),panDelta:u}}enable(){this._enabled=!0,this._map._cooperativeGestures&&(this._addTouchPanBlocker(),this._el.classList.add("mapboxgl-touch-pan-blocker-override","mapboxgl-scrollable-page"))}disable(){this._enabled=!1,this._map._cooperativeGestures&&(clearTimeout(this._alertTimer),this._alertContainer.remove(),this._el.classList.remove("mapboxgl-touch-pan-blocker-override","mapboxgl-scrollable-page")),this.reset()}isEnabled(){return!!this._enabled}isActive(){return!!this._active}_addTouchPanBlocker(){this._map&&!this._alertContainer&&(this._alertContainer=c("div","mapboxgl-touch-pan-blocker",this._map._container),this._alertContainer.textContent=this._map._getUIString("TouchPanBlocker.Message"),this._alertContainer.style.fontSize=`${Math.max(10,Math.min(24,Math.floor(.05*this._el.clientWidth)))}px`)}_showTouchPanBlockerAlert(){this._alertContainer.style.visibility="visible",this._alertContainer.classList.add("mapboxgl-touch-pan-blocker-show"),this._alertContainer.setAttribute("role","alert"),clearTimeout(this._alertTimer),this._alertTimer=setTimeout(()=>{this._alertContainer.classList.remove("mapboxgl-touch-pan-blocker-show"),this._alertContainer.setAttribute("role","null")},500)}}class nv{constructor(){this.reset()}reset(){this._active=!1,this._firstTwoTouches=void 0}_start(r){}_move(r,n,i){return{}}touchstart(r,n,i){this._firstTwoTouches||i.length<2||(this._firstTwoTouches=[i[0].identifier,i[1].identifier],this._start([n[0],n[1]]))}touchmove(r,n,i){let o=this._firstTwoTouches;if(!o)return;r.preventDefault();let[a,s]=o,l=ny(i,n,a),c=ny(i,n,s);if(!l||!c)return;let u=this._aroundCenter?null:l.add(c).div(2);return this._move([l,c],u,r)}touchend(r,n,i){if(!this._firstTwoTouches)return;let[o,a]=this._firstTwoTouches,s=ny(i,n,o),l=ny(i,n,a);s&&l||(this._active&&g(),this.reset())}touchcancel(){this.reset()}enable(r){this._enabled=!0,this._aroundCenter=!!r&&"center"===r.around}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}function ny(r,n,i){for(let o=0;o<r.length;o++)if(r[o].identifier===i)return n[o]}function nb(r,n){return Math.log(r/n)/Math.LN2}class nx extends nv{reset(){super.reset(),this._distance=0,this._startDistance=0}_start(r){this._startDistance=this._distance=r[0].dist(r[1])}_move(r,n){let i=this._distance;if(this._distance=r[0].dist(r[1]),this._active||!(.1>Math.abs(nb(this._distance,this._startDistance))))return this._active=!0,{zoomDelta:nb(this._distance,i),pinchAround:n}}}function n_(r,n){return 180*r.angleWith(n)/Math.PI}class nw extends nv{reset(){super.reset(),this._minDiameter=0,this._startVector=void 0,this._vector=void 0}_start(r){this._startVector=this._vector=r[0].sub(r[1]),this._minDiameter=r[0].dist(r[1])}_move(r,n){let i=this._vector;if(this._vector=r[0].sub(r[1]),i&&(this._active||!this._isBelowThreshold(this._vector)))return this._active=!0,{bearingDelta:n_(this._vector,i),pinchAround:n}}_isBelowThreshold(r){this._minDiameter=Math.min(this._minDiameter,r.mag());let n=25/(Math.PI*this._minDiameter)*360,i=this._startVector;if(!i)return!1;let o=n_(r,i);return Math.abs(o)<n}}function nS(r){return Math.abs(r.y)>Math.abs(r.x)}class nT extends nv{constructor(r){super(),this._map=r}reset(){super.reset(),this._valid=void 0,this._firstMove=void 0,this._lastPoints=void 0}_start(r){this._lastPoints=r,nS(r[0].sub(r[1]))&&(this._valid=!1)}_move(n,i,o){let a=this._lastPoints;if(!a)return;let s=n[0].sub(a[0]),l=n[1].sub(a[1]);return this._map._cooperativeGestures&&!r.isFullscreen()&&o.touches.length<3||(this._val
222id=this.gestureBeginsVertically(s,l,o.timeStamp),!this._valid)?void 0:(this._lastPoints=n,this._active=!0,{pitchDelta:-((s.y+l.y)/2*.5)})}gestureBeginsVertically(r,n,i){if(void 0!==this._valid)return this._valid;let o=r.mag()>=2,a=n.mag()>=2;if(!o&&!a)return;if(!o||!a)return null==this._firstMove&&(this._firstMove=i),i-this._firstMove<100&&void 0;let s=r.y>0==n.y>0;return nS(r)&&nS(n)&&s}}let nE={panStep:100,bearingStep:15,pitchStep:10};class nk{constructor(){this._panStep=nE.panStep,this._bearingStep=nE.bearingStep,this._pitchStep=nE.pitchStep,this._rotationDisabled=!1}blur(){this.reset()}reset(){this._active=!1}keydown(r){if(r.altKey||r.ctrlKey||r.metaKey)return;let n=0,i=0,o=0,a=0,s=0;switch(r.keyCode){case 61:case 107:case 171:case 187:n=1;break;case 189:case 109:case 173:n=-1;break;case 37:r.shiftKey?i=-1:(r.preventDefault(),a=-1);break;case 39:r.shiftKey?i=1:(r.preventDefault(),a=1);break;case 38:r.shiftKey?o=1:(r.preventDefault(),s=-1);break;case 40:r.shiftKey?o=-1:(r.preventDefault(),s=1);break;default:return}return this._rotationDisabled&&(i=0,o=0),{cameraAnimation:l=>{let c=l.getZoom();l.easeTo({duration:300,easeId:"keyboardHandler",easing:nC,zoom:n?Math.round(c)+n*(r.shiftKey?2:1):c,bearing:l.getBearing()+i*this._bearingStep,pitch:l.getPitch()+o*this._pitchStep,offset:[-a*this._panStep,-s*this._panStep],center:l.getCenter()},{originalEvent:r})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function nC(r){return r*(2-r)}class nP{constructor(n,i){this._map=n,this._el=n.getCanvasContainer(),this._handler=i,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222,r.bindAll(["_onTimeout","_addScrollZoomBlocker","_showBlockerAlert"],this)}setZoomRate(r){this._defaultZoomRate=r}setWheelZoomRate(r){this._wheelZoomRate=r}isEnabled(){return!!this._enabled}isActive(){return this._active||void 0!==this._finishTimeout}isZooming(){return!!this._zooming}enable(r){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!r&&"center"===r.around,this._map._cooperativeGestures&&this._addScrollZoomBlocker())}disable(){this.isEnabled()&&(this._enabled=!1,this._map._cooperativeGestures&&(clearTimeout(this._alertTimer),this._alertContainer.remove()))}wheel(n){if(!this.isEnabled())return;if(this._map._cooperativeGestures){if(!(n.ctrlKey||n.metaKey||this.isZooming()||r.isFullscreen()))return void this._showBlockerAlert();"hidden"!==this._alertContainer.style.visibility&&(this._alertContainer.style.visibility="hidden",clearTimeout(this._alertTimer))}let i=n.deltaMode===r.window.WheelEvent.DOM_DELTA_LINE?40*n.deltaY:n.deltaY,o=r.exported.now(),a=o-(this._lastWheelEventTime||0);this._lastWheelEventTime=o,0!==i&&i%4.000244140625==0?this._type="wheel":0!==i&&4>Math.abs(i)?this._type="trackpad":a>400?(this._type=null,this._lastValue=i,this._timeout=setTimeout(this._onTimeout,40,n)):this._type||(this._type=200>Math.abs(a*i)?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,i+=this._lastValue)),n.shiftKey&&i&&(i/=4),this._type&&(this._lastWheelEvent=n,this._delta-=i,this._active||this._start(n)),n.preventDefault()}_onTimeout(r){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(r)}_start(r){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);let n=v(this._el,r);this._aroundPoint=this._aroundCenter?this._map.transform.centerPoint:n,this._aroundCoord=this._map.transform.pointCoordinate3D(this._aroundPoint),this._targetZoom=void 0,this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}renderFrame(){if(!this._frameId||(this._frameId=null,!this.isActive()))return;let n=this._map.transform;"wheel"===this._type&&n.projection.wrap&&(n._center.lng>=180||n._center.lng<=-180)&&(this._prevEase=null,this._easing=null,this._lastWheelEvent=null,this._lastWheelEventTime=0);let i=()=>n._terrainEnabled()&&this._aroundCoord?n.computeZoomRelativeTo(this._aroundCoord):n.zoom;if(0!==this._delta){let r="wheel"===this._type&&Math.abs(this._delta)>4.000244140625?this._wheelZoomRate:this._defaultZoomRate,o=2/(1+Math.exp(-Math.abs(this._delta*r)));this._delta<0&&0!==o&&(o=1/o);let a=i(),s=Math.pow(2,a),l="number"==typeof this._targetZoom?n.zoomScale(this._targetZoom):s;this._targetZoom=Math.min(n.maxZoom,Math.max(n.minZoom,n.scaleZoom(l*o))),"wheel"===this._type&&(this._startZoom=a,this._easing=this._smoothOutEasing(200)),this._delta=0}let o="number"==typeof this._targetZoom?this._targetZoom:i(),a=this._startZoom,s=this._easing,l,c=!1;if("wheel"===this._type&&a&&s){let n=Math.min((r.exported.now()-this._lastWheelEventTime)/200,1),i=s(n);l=r.number(a,o,i),n<1?this._frameId||(this._frameId=!0):c=!0}else l=o,c=!0;return this._active=!0,c&&(this._active=!1,this._finishTimeout=setTimeout(()=>
222{this._zooming=!1,this._handler._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!c,zoomDelta:l-i(),around:this._aroundPoint,aroundCoord:this._aroundCoord,originalEvent:this._lastWheelEvent}}_smoothOutEasing(n){let i=r.ease;if(this._prevEase){let n=this._prevEase,o=(r.exported.now()-n.start)/n.duration,a=n.easing(o+.01)-n.easing(o),s=.27/Math.sqrt(a*a+1e-4)*.01,l=Math.sqrt(.0729-s*s);i=r.bezier(s,l,.25,1)}return this._prevEase={start:r.exported.now(),duration:n,easing:i},i}blur(){this.reset()}reset(){this._active=!1}_addScrollZoomBlocker(){this._map&&!this._alertContainer&&(this._alertContainer=c("div","mapboxgl-scroll-zoom-blocker",this._map._container),this._alertContainer.textContent=/(Mac|iPad)/i.test(r.window.navigator.userAgent)?this._map._getUIString("ScrollZoomBlocker.CmdMessage"):this._map._getUIString("ScrollZoomBlocker.CtrlMessage"),this._alertContainer.style.fontSize=`${Math.max(10,Math.min(24,Math.floor(.05*this._el.clientWidth)))}px`)}_showBlockerAlert(){this._alertContainer.style.visibility="visible",this._alertContainer.classList.add("mapboxgl-scroll-zoom-blocker-show"),this._alertContainer.setAttribute("role","alert"),clearTimeout(this._alertTimer),this._alertTimer=setTimeout(()=>{this._alertContainer.classList.remove("mapboxgl-scroll-zoom-blocker-show"),this._alertContainer.setAttribute("role","null")},200)}}class nO{constructor(r,n){this._clickZoom=r,this._tapZoom=n}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class nj{constructor(){this.reset()}reset(){this._active=!1}blur(){this.reset()}dblclick(r,n){return r.preventDefault(),{cameraAnimation:i=>{i.easeTo({duration:300,zoom:i.getZoom()+(r.shiftKey?-1:1),around:i.unproject(n)},{originalEvent:r})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class nA{constructor(){this._tap=new nc({numTouches:1,numTaps:1}),this.reset()}reset(){this._active=!1,this._swipePoint=void 0,this._swipeTouch=0,this._tapTime=0,this._tap.reset()}touchstart(r,n,i){this._swipePoint||(this._tapTime&&r.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?i.length>0&&(this._swipePoint=n[0],this._swipeTouch=i[0].identifier):this._tap.touchstart(r,n,i))}touchmove(r,n,i){if(this._tapTime){if(this._swipePoint){if(i[0].identifier!==this._swipeTouch)return;let o=n[0],a=o.y-this._swipePoint.y;return this._swipePoint=o,r.preventDefault(),this._active=!0,{zoomDelta:a/128}}}else this._tap.touchmove(r,n,i)}touchend(r,n,i){this._tapTime?this._swipePoint&&0===i.length&&this.reset():this._tap.touchend(r,n,i)&&(this._tapTime=r.t
222imeStamp)}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class nM{constructor(r,n,i){this._el=r,this._mousePan=n,this._touchPan=i}enable(r){this._inertiaOptions=r||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class nI{constructor(r,n,i){this._pitchWithRotate=r.pitchWithRotate,this._mouseRotate=n,this._mousePitch=i}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class nZ{constructor(r,n,i,o){this._el=r,this._touchZoom=n,this._touchRotate=i,this._tapDragZoom=o,this._rotationDisabled=!1,this._enabled=!0}enable(r){this._touchZoom.enable(r),this._rotationDisabled||this._touchRotate.enable(r),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}let nR=r=>r.zoom||r.drag||r.pitch||r.rotate;class nD extends r.Event{}class nL{constructor(){this.constants=[1,1,.01],this.radius=0}setup(n,i){let o=r.sub([],i,n);this.radius=r.length(o[2]<0?r.div([],o,this.constants):[o[0],o[1],0])}projectRay(n){r.div(n,n,this.constants),r.normalize(n,n),r.mul$1(n,n,this.constants);let i=r.scale$2([],n,this.radius);if(i[2]>0){let n=r.scale$2([],[0,0,1],r.dot(i,[0,0,1])),o=r.scale$2([],r.normalize([],[i[0],i[1],0]),this.radius),a=r.add([],i,r.scale$2([],r.sub([],r.add([],o,n),i),2));i[0]=a[0],i[1]=a[1]}return i}}function nz(r){return r.panDelta&&r.panDelta.mag()||r.zoomDelta||r.bearingDelta||r.pitchDelta}class nB{constructor(n,i){this._map=n,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new r9(n),this._bearingSnap=i.bearingSnap,this._previousActiveHandlers={},this._trackingEllipsoid=new nL,this._dragOrigin=null,this._eventsInProgress={},this._addDefaultHandlers(i),r.bindAll(["handleEvent","handleWindowEvent"],this);let o=this._el;for(let[n,i,a]of(this._listeners=[[o,"touchstart",{passive:!0}],[o,"touchmove",{passive:!1}],[o,"touchend",void 0],[o,"touchcancel",void 0],[o,"mousedown",void 0],[o,"mousemove",void 0],[o,"mouseup",void 0],[r.window.document,"mousemove",{capture:!0}],[r.window.document,"mouseup",void 0],[o,"mouseover",void 0],[o,"mouseout",void 0],[o,"dblclick",void 0],[o,"click",void 0],[o,"keydown",{capture:!1}],[o,"keyup",void 0],[o,"wheel",{passive:!1}],[o,"contextmenu",void 0],[r.window,"blur",void 0]],this._listeners))n.addEventListener(i,n===r.window.document?this.handleWindowEvent:this.handleEvent,a)}destroy(){for(let[n,i,o]of this._listeners)n.removeEventListener(i,n===r.window.document?this.handleWindowEvent:this.handleEvent,o)}_addDefaultHandlers(r){let n=this._map,i=n.getCanvasContainer();this._add("mapEvent",new ni(n,r));let o=n.boxZoom=new na(n,r);this._add("boxZoom",o);let a=new nu,s=new nj;n.doubleClickZoom=new nO(s,a),this._add("tapZoom",a),this._add("clickZoom",s);let l=new nA;this._add("tapDragZoom",l);let c=n.touchPitch=new nT(n);this._add("touchPitch",c);let u=new nf(r),d=new nm(r);n.dragRotate=new nI(r,u,d),this._add("mouseRotate",u,["mousePitch"]),this._add("mousePitch",d,["mouseRotate"]);let h=new np(r),p=new ng(n,r);n.dragPan=new nM(i,h,p),this._add("mousePan",h),this._add("touchPan",p,["touchZoom","touchRotate"]);let f=new nw,m=new nx;n.touchZoomRotate=new nZ(i,m,f,l),this._add("touchRotate",f,["touchPan","touchZoom"]),this._add("touchZoom",m,["touchPan","touchRotate"]),this._add("blockableMapEvent",new no(n));let g=n.scrollZoom=new nP(n,this);this._add("scrollZoom",g,["mousePan"]);let v=n.keyboard=new nk;for(let i of(this._add("keyboard",v),["boxZoom","doubleClickZoom","tapDragZoom","touchPitch","dragRotate","dragPan","touchZoomRotate","scrollZoom","keyboard"]))r.interactive&&r[i]&&n[i].enable(r[i])}_add(r,n,i){this._handlers.push({handlerName:r,handler:n,allowed:i}),this._handlersById[r]=n}stop(r){if(!this._updatingCamera){for(let{handler:r}of this._handlers)r.reset();this._inertia.clear(),this._fireEvents({},{},r),this._changes=[]}}isActive(){for(let{handler:r}of this._handlers)if(r.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!nR(this._eventsInProgress)||this.isZooming()}_isDragging(){return!!this._eventsInProgress.drag}
222_blockedByActive(r,n,i){for(let o in r)if(o!==i&&(!n||0>n.indexOf(o)))return!0;return!1}handleWindowEvent(r){this.handleEvent(r,`${r.type}Window`)}_getMapTouches(r){let n=[];for(let i of r)this._el.contains(i.target)&&n.push(i);return n}handleEvent(r,n){this._updatingCamera=!0;let i="renderFrame"===r.type,o=i?void 0:r,a={needsRenderFrame:!1},s={},l={},c=r.touches?this._getMapTouches(r.touches):void 0,u=c?y(this._el,c):i?void 0:v(this._el,r);for(let{handlerName:i,handler:d,allowed:h}of this._handlers){let p;d.isEnabled()&&(this._blockedByActive(l,h,i)?d.reset():d[n||r.type]&&(p=d[n||r.type](r,u,c),this.mergeHandlerResult(a,s,p,i,o),p&&p.needsRenderFrame&&this._triggerRenderFrame()),(p||d.isActive())&&(l[i]=d))}let d={};for(let r in this._previousActiveHandlers)l[r]||(d[r]=o);this._previousActiveHandlers=l,(Object.keys(d).length||nz(a))&&(this._changes.push([a,s,d]),this._triggerRenderFrame()),(Object.keys(l).length||nz(a))&&this._map._stop(!0),this._updatingCamera=!1;let{cameraAnimation:h}=a;h&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],h(this._map))}mergeHandlerResult(n,i,o,a,s){if(!o)return;r.extend(n,o);let l={handlerName:a,originalEvent:o.originalEvent||s};void 0!==o.zoomDelta&&(i.zoom=l),void 0!==o.panDelta&&(i.drag=l),void 0!==o.pitchDelta&&(i.pitch=l),void 0!==o.bearingDelta&&(i.rotate=l)}_applyChanges(){let n={},i={},o={};for(let[a,s,l]of this._changes)a.panDelta&&(n.panDelta=(n.panDelta||new r.Point(0,0))._add(a.panDelta)),a.zoomDelta&&(n.zoomDelta=(n.zoomDelta||0)+a.zoomDelta),a.bearingDelta&&(n.bearingDelta=(n.bearingDelta||0)+a.bearingDelta),a.pitchDelta&&(n.pitchDelta=(n.pitchDelta||0)+a.pitchDelta),void 0!==a.around&&(n.around=a.around),void 0!==a.aroundCoord&&(n.aroundCoord=a.aroundCoord),void 0!==a.pinchAround&&(n.pinchAround=a.pinchAround),a.noInertia&&(n.noInertia=a.noInertia),r.extend(i,s),r.extend(o,l);this._updateMapTransform(n,i,o),this._changes=[]}_updateMapTransform(n,i,o){var a;let s=this._map,l=s.transform,c=r=>[r.x,r.y,r.z];if((r=>{let n=this._eventsInProgress.drag;return n&&!this._handlersById[n.handlerName].isActive()})()&&!nz(n)){let r=l.zoom;l.cameraElevationReference="sea",l.recenterOnTerrain(),l.cameraElevationReference="ground",r!==l.zoom&&this._map._update(!0)}if(l._isCameraConstrained&&s._stop(!0),!nz(n))return void this._fireEvents(i,o,!0);let{panDelta:u,zoomDelta:d,bearingDelta:h,pitchDelta:p,around:f,aroundCoord:m,pinchAround:g}=n;l._isCameraConstrained&&(d>0&&(d=0),l._isCameraConstrained=!1),void 0!==g&&(f=g),(d||i[a="drag"]&&!this._eventsInProgress[a])&&f&&(this._dragOrigin=c(l.pointCoordinate3D(f)),this._trackingEllipsoid.setup(l._camera.position,this._dragOrigin)),l.cameraElevationReference="sea",s._stop(!0),f=f||s.transform.centerPoint,h&&(l.bearing+=h),p&&(l.pitch+=p),l._updateCameraState();let v=[0,0,0];if(u){if("mercator"===l.projection.name){let r=this._trackingEllipsoid.projectRay(l.screenPointToMercatorRay(f).dir),n=this._trackingEllipsoid.projectRay(l.screenPointToMercatorRay(f.sub(u)).dir);v[0]=n[0]-r[0],v[1]=n[1]-r[1]}else{let n=l.pointCoordinate(f);if("globe"===l.projection.name){u=u.rotate(-l.angle);let i=l._pixelsPerMercatorPixel/l.worldSize;v[0]=-u.x*r.mercatorScale(r.latFromMercatorY(n.y))*i,v[1]=-u.y*r.mercatorScale(l.center.lat)*i}else{let r=l.pointCoordinate(f.sub(u));n&&r&&(v[0]=r.x-n.x,v[1]=r.y-n.y)}}}let y=l.zoom,b=[0,0,0];if(d){let n=c(m||l.pointCoordinate3D(f)),i={dir:r.normalize([],r.sub([],n,l._camera.position))};if(i.dir[2]<0){let o=l.zoomDeltaToMovement(n,d);r.scale$2(b,i.dir,o)}}let x=r.add(v,v,b);l._translateCameraConstrained(x),d&&Math.abs(l.zoom-y)>1e-4&&l.recenterOnTerrain(),l.cameraElevationReference="ground",this._map._update(),n.noInertia||this._inertia.record(n),this._fireEvents(i,o,!0)}_fireEvents(n,i,o){let a;let s=nR(this._eventsInProgress),l=nR(n),c={};for(let r in n){let{originalEvent:i}=n[r];this._eventsInProgress[r]||(c[`${r}start`]=i),this._eventsInProgress[r]=n[r]}for(let r in!s&&l&&this._fireEvent("movestart",l.originalEvent),c)this._fireEvent(r,c[r]);for(let r in l&&this._fireEvent("move",l.originalEvent),n){let{originalEvent:i}=n[r];this._fireEvent(r,i)}let u={};for(let r in this._eventsInProgress){let{handlerName:n,originalEvent:o}=this._eventsInProgress[r];this._handlersById[n].isActive()||(delete this._eventsInProgress[r],a=i[n]||o,u[`${r}end`]=a)}for(let r in u)this._fireEvent(r,u[r]);let d=nR(this._eventsInProgress);if(o&&(s||l)&&!d){var h,p;this._updatingCamera=!0;let n=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions);n?(0!==(h=n.bearing||this._map.getBearing())&&-this._bearingSnap<h&&h<this._bearingSnap&&(n.bearing=0),this._map.easeTo(n,{originalEvent:a})):(this._map.fire(new r.Event("moveend",{originalEvent:a})),0!==(p=this._map.getBearing())&&-this._bearingSnap<p&&p<this._bearingSnap&&this._map.resetNorth()),this._updatingCamera=!1}}_fireEvent(n,i){this._map.fire(new r.Event(n,i?{originalEvent:i}:{}))}_requestFrame(){return this._map.triggerRepaint(),this._map._renderTaskQueue.add(r=>{this._frameId=void 0,this.handleEvent(new nD("renderFrame",{timeStamp:r})),this._applyChanges()})}
222_triggerRenderFrame(){void 0===this._frameId&&(this._frameId=this._requestFrame())}}let nF="map.setFreeCameraOptions(...) and map.getFreeCameraOptions() are not yet supported for non-mercator projections.";class nN extends r.Evented{constructor(n,i){super(),this._moving=!1,this._zooming=!1,this.transform=n,this._bearingSnap=i.bearingSnap,this._respectPrefersReducedMotion=!1!==i.respectPrefersReducedMotion,r.bindAll(["_renderFrameCallback"],this)}getCenter(){return new r.LngLat(this.transform.center.lng,this.transform.center.lat)}setCenter(r,n){return this.jumpTo({center:r},n)}panBy(n,i,o){return n=r.Point.convert(n).mult(-1),this.panTo(this.transform.center,r.extend({offset:n},i),o)}panTo(n,i,o){return this.easeTo(r.extend({center:n},i),o)}getZoom(){return this.transform.zoom}setZoom(r,n){return this.jumpTo({zoom:r},n),this}zoomTo(n,i,o){return this.easeTo(r.extend({zoom:n},i),o)}zoomIn(r,n){return this.zoomTo(this.getZoom()+1,r,n),this}zoomOut(r,n){return this.zoomTo(this.getZoom()-1,r,n),this}getBearing(){return this.transform.bearing}setBearing(r,n){return this.jumpTo({bearing:r},n),this}getPadding(){return this.transform.padding}setPadding(r,n){return this.jumpTo({padding:r},n),this}rotateTo(n,i,o){return this.easeTo(r.extend({bearing:n},i),o)}resetNorth(n,i){return this.rotateTo(0,r.extend({duration:1e3},n),i),this}resetNorthPitch(n,i){return this.easeTo(r.extend({bearing:0,pitch:0,duration:1e3},n),i),this}snapToNorth(r,n){return Math.abs(this.getBearing())<this._bearingSnap?this.resetNorth(r,n):this}getPitch(){return this.transform.pitch}setPitch(r,n){return this.jumpTo({pitch:r},n),this}cameraForBounds(n,i){n=r.LngLatBounds.convert(n);let o=i&&i.bearing||0,a=i&&i.pitch||0,s=n.getNorthWest(),l=n.getSouthEast();return this._cameraForBounds(this.transform,s,l,o,a,i)}_extendCameraOptions(n){let i={top:0,bottom:0,right:0,left:0};if("number"==typeof(n=r.extend({padding:i,offset:[0,0],maxZoom:this.transform.maxZoom},n)).padding){let r=n.padding;n.padding={top:r,bottom:r,right:r,left:r}}return n.padding=r.extend(i,n.padding),n}_minimumAABBFrustumDistance(r,n){let i=n.max[0]-n.min[0],o=n.max[1]-n.min[1];return i/o>r.aspect?i/(2*Math.tan(.5*r.fovX)*r.aspect):o/(2*Math.tan(.5*r.fovY)*r.aspect)}_cameraForBoundsOnGlobe(n,i,o,a,s,l){let c=n.clone(),u=this._extendCameraOptions(l);c.bearing=a,c.pitch=s;let d=r.LngLat.convert(i),h=r.LngLat.convert(o),p=.5*(d.lat+h.lat),f=.5*(d.lng+h.lng),m=r.latLngToECEF(p,f),g=r.normalize([],m),v=r.normalize([],r.cross([],g,[0,1,0])),y=r.cross([],v,g),b=[v[0],v[1],v[2],0,y[0],y[1],y[2],0,g[0],g[1],g[2],0,0,0,0,1],x=[m,r.latLngToECEF(d.lat,d.lng),r.latLngToECEF(h.lat,d.lng),r.latLngToECEF(h.lat,h.lng),r.latLngToECEF(d.lat,h.lng),r.latLngToECEF(p,d.lng),r.latLngToECEF(p,h.lng),r.latLngToECEF(d.lat,f),r.latLngToECEF(h.lat,f)],_=r.Aabb.fromPoints(x.map(n=>[r.dot(v,n),r.dot(y,n),r.dot(g,n)])),w=r.transformMat4([],_.center,b);0===r.squaredLength(w)&&r.set(w,0,0,1),r.normalize(w,w),r.scale$2(w,w,r.GLOBE_RADIUS),c.center=r.ecefToLatLng(w);let S=c.getWorldToCameraMatrix(),T=r.invert(new Float64Array(16),S);_=r.Aabb.applyTransform(_,r.multiply([],S,b)),r.transformMat4(w,w,S);let E=.5*(_.max[2]-_.min[2]),k=this._minimumAABBFrustumDistance(c,_),C=r.scale$2([],[0,0,1],E),P=r.add(C,w,C),O=k+(0===c.pitch?0:r.distance(w,P)),j=c.globeCenterInViewSpace,A=r.sub([],w,[j[0],j[1],j[2]]);r.normalize(A,A),r.scale$2(A,A,O);let M=r.add([],w,A);r.transformMat4(M,M,T);let I=r.earthRadius/r.GLOBE_RADIUS,Z=r.length(M),R=r.mercatorZfromAltitude(Math.max(Z*I-r.earthRadius,Number.EPSILON),0),D=Math.min(c.zoomFromMercatorZAdjusted(R),u.maxZoom);return D>.5*(r.GLOBE_ZOOM_THRESHOLD_MIN+r.GLOBE_ZOOM_THRESHOLD_MAX)?(c.setProjection({name:"mercator"}),c.zoom=D,this._cameraForBounds(c,i,o,a,s,l)):{center:c.center,zoom:D,bearing:a,pitch:s}}queryTerrainElevation(n,i){let o=this.transform.elevation;return o?(i=r.extend({},{exaggerated:!0},i),o.getAtPoint(r.MercatorCoordinate.fromLngLat(n),null,i.exaggerated)):null}_cameraForBounds(n,i,o,a,s,l){if("globe"===n.projection.name)return this._cameraForBoundsOnGlobe(n,i,o,a,s,l);let c=n.clone(),u=this._extendCameraOptions(l),d=c.padding;c.bearing=a,c.pitch=s;let h=r.LngLat.convert(i),p=r.LngLat.convert(o),f=new r.LngLat(h.lng,p.lat),m=new r.LngLat(p.lng,h.lat),g=c.project(h),v=c.project(p),y=this.queryTerrainElevation(h),b=this.queryTerrainElevation(p),x=this.queryTerrainElevation(f),_=this.queryTerrainElevation(m),w=[[g.x,g.y,Math.min(y||0,b||0,x||0,_||0)],[v.x,v.y,Math.max(y||0,b||0,x||0,_||0)]],S=r.Aabb.fromPoints(w),T=c.getWorldToCameraMatrix(),E=r.invert(new Float64Array(16),T);S=r.Aabb.applyTransform(S,T);let k=r.sub([],S.max,S.min),C=d.left||0,P=d.right||0,O=d.bottom||0,j=d.top||0,{left:A,right:M,top:I,bottom:Z}=u.padding,R=.5*(C+P),D=.5*(j+O),L=Math.min(c.scaleZoom(c.scale*Math.min((c.width-(C+P+A+M))/k[0],(c.height-(O+j+Z+I))/k[1])),u.maxZoom),z=c.scale/c.zoomScale(L);S=new r.Aabb([S.min[0]-(A+R)*z,S.min[1]-(Z+D)*z,S.min[2]],[S.max[0]+(M+R)*z,S.max[1]+(I+D)*z,S.max[2]]);let B=.5*k[2],F=this._minimumAABBFrustumDistance(c,S),N=[0,0,1,0];r.transformMat4$1(N,N,T),r.normalize$2(N,N);let U=r.scale$2([],N,F+B),V=r.add([],S.center,U),q=("number"==typeof u.offset.x&&"number"==typeof u.offset.y?new r.Point(u.offset.x,u.offset.y):r.Point.convert(u.offset)).rotate(-r.degToRad(a));S.center[0]-=q.x*z,S.center[1]+=q.y*z,r.transformMat4(S.center,S.center,E),r.transformMat4(V,V,E);let $=[S.center[0],S.center[1],V[2]*c.pixelsPerMeter];r.scale$2($,$,1/c.worldSize);let G=r.lngFromMercatorX($[0]),W=r.latFromMercatorY($[1]),H=Math.min(c._zoomFromMercatorZ($[2]),u.maxZoom),X=new r.LngLat(G,W);return c.mercatorFromTransition&&H<.5*(r.GLOBE_ZOOM_THRESHOLD_MIN+r.GLOBE_ZOOM_THRESHOLD_MAX)?(c.setProjection({name:"globe"}),c.zoom=H,this._cameraForBounds(c,i,o,a,s,l)):{center:X,zoom:H,bearing:a,pitch:s}}fitBounds(r,n,i){let o=this.cameraForBounds(r,n);return this._fitInternal(o,n,i)}fitScreenCoordinates(n,i,o,a,s){let l=r.Point.convert(n),c=r.Point.convert(i),u=new r.Point(Math.min(l.x,c.x),Math.min(l.y,c.y)),d=new r.Point(Math.max(l.x,c.x),Math.max(l.y,c.y));if("mercator"===this.transform.projection.name&&this.transform.anyCornerOffEdge(l,c))return this;let h=this.transform.pointLocation3D(u),p=this.transform.pointLocation3D(d),f=this.transform.pointLocation3D(new r.Point(u.x,d.y)),m=this.transform.pointLocation3D(new r.Point(d.x,u.y)),g=[Math.min(h.lng,p.lng,f.lng,m.lng),Math.min(h.lat,p.lat,f.lat,m.lat)],v=[Math.max(h.lng,p.lng,f.lng,m.lng),Math.max(h.lat,p.lat,f.lat,m.lat)],y=a&&a.pitch?a.pitch:this.getPitch(),b=this._cameraForBounds(this.transform,g,v,o,y,a);return this._fitInternal(b,a,s)}_fitInternal(n,i,o){return n?(delete(i=r.extend(n,i)).padding,i.linear?this.easeTo(i,o):this.flyTo(i,o)):this}jumpTo(n,i){this.stop();let o=n.preloadOnly?this.transform.clone():this.transform,a=!1,s=!1,l=!1;return"zoom"in n&&o.zoom!==+n.zoom&&(a=!0,o.zoom=+n.zoom),void 0!==n.center&&(o.center=r.LngLat.convert(n.center)),"bearing"in n&&o.bearing!==+n.bearing&&(s=!0,o.bearing=+n.bearing),"pitch"in n&&o.pitch!==+n.pitch&&(l=!0,o.pitch=+n.pitch),null==n.padding||o.isPaddingEqual(n.padding)||(o.padding=n.padding),n.preloadOnly?(this._preloadTiles(o),this):(this.fire(new r.Event("movestart",i)).fire(new r.Event("move",i)),a&&this.fire(new r.Event("zoomstart",i)).fire(new r.Event("zoom",i)).fire(new r.Event("zoomend",i)),s&&this.fire(new r.Event("rotatestart",i)).fire(new r.Event("rotate",i)).fire(new r.Event("rotateend",i)),l&&this.fire(new r.Event("pitchstart",i)).fire(new r.Event("pitch",i)).fire(new r.Event("pitchend",
222i)),this.fire(new r.Event("moveend",i)))}getFreeCameraOptions(){return this.transform.projection.supportsFreeCamera||r.warnOnce(nF),this.transform.getFreeCameraOptions()}setFreeCameraOptions(n,i){let o=this.transform;if(!o.projection.supportsFreeCamera)return r.warnOnce(nF),this;this.stop();let a=o.zoom,s=o.pitch,l=o.bearing;o.setFreeCameraOptions(n);let c=a!==o.zoom,u=s!==o.pitch,d=l!==o.bearing;return this.fire(new r.Event("movestart",i)).fire(new r.Event("move",i)),c&&this.fire(new r.Event("zoomstart",i)).fire(new r.Event("zoom",i)).fire(new r.Event("zoomend",i)),d&&this.fire(new r.Event("rotatestart",i)).fire(new r.Event("rotate",i)).fire(new r.Event("rotateend",i)),u&&this.fire(new r.Event("pitchstart",i)).fire(new r.Event("pitch",i)).fire(new r.Event("pitchend",i)),this.fire(new r.Event("moveend",i)),this}easeTo(n,i){let o,a,s,l,c;this._stop(!1,n.easeId),(!1===(n=r.extend({offset:[0,0],duration:500,easing:r.ease},n)).animate||this._prefersReducedMotion(n))&&(n.duration=0);let u=this.transform,d=this.getZoom(),h=this.getBearing(),p=this.getPitch(),f=this.getPadding(),m="zoom"in n?+n.zoom:d,g="bearing"in n?this._normalizeBearing(n.bearing,h):h,v="pitch"in n?+n.pitch:p,y="padding"in n?n.padding:u.padding,b=r.Point.convert(n.offset);if("globe"===u.projection.name){let i=r.MercatorCoordinate.fromLngLat(u.center),l=b.rotate(-u.angle);i.x+=l.x/u.worldSize,i.y+=l.y/u.worldSize;let c=i.toLngLat(),d=r.LngLat.convert(n.center||c);this._normalizeCenter(d),o=u.centerPoint.add(l),a=new r.Point(i.x,i.y).mult(u.worldSize),s=new r.Point(r.mercatorXfromLng(d.lng),r.mercatorYfromLat(d.lat)).mult(u.worldSize).sub(a)}else{o=u.centerPoint.add(b);let i=u.pointLocation(o),l=r.LngLat.convert(n.center||i);this._normalizeCenter(l),a=u.project(i),s=u.project(l).sub(a)}let x=u.zoomScale(m-d);n.around&&(l=r.LngLat.convert(n.around),c=u.locationPoint(l));let _=this._zooming||m!==d,w=this._rotating||h!==g,S=this._pitching||v!==p,T=!u.isPaddingEqual(y),E=u=>E=>{if(_&&(u.zoom=r.number(d,m,E)),w&&(u.bearing=r.number(h,g,E)),S&&(u.pitch=r.number(p,v,E)),T&&(u.interpolatePadding(f,y,E),o=u.centerPoint.add(b)),l)u.setLocationAtPoint(l,c);else{let r=u.zoomScale(u.zoom-d),n=m>d?Math.min(2,x):Math.max(.5,x),i=Math.pow(n,1-E),l=u.unproject(a.add(s.mult(E*i)).mult(r));u.setLocationAtPoint(u.renderWorldCopies?l.wrap():l,o)}return n.preloadOnly||this._fireMoveEvents(i),u};if(n.preloadOnly){let r=this._emulate(E,n.duration,u);return this._preloadTiles(r),this}let k={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching};return this._zooming=_,this._rotating=w,this._pitching=S,this._padding=T,this._easeId=n.easeId,this._prepareEase(i,n.noMoveStart,k),this._ease(E(u),r=>{u.recenterOnTerrain(),this._afterEase(i,r)},n),this}_prepareEase(n,i,o={}){this._moving=!0,this.transform.cameraElevationReference="sea",i||o.moving||this.fire(new r.Event("movestart",n)),this._zooming&&!o.zooming&&this.fire(new r.Event("zoomstart",n)),this._rotating&&!o.rotating&&this.fire(new r.Event("rotatestart",n)),this._pitching&&!o.pitching&&this.fire(new r.Event("pitchstart",n))}_fireMoveEvents(n){this.fire(new r.Event("move",n)),this._zooming&&this.fire(new r.Event("zoom",n)),this._rotating&&this.fire(new r.Event("rotate",n)),this._pitching&&this.fire(new r.Event("pitch",n))}_afterEase(n,i){if(this._easeId&&i&&this._easeId===i)return;this._easeId=void 0,this.transform.cameraElevationReference="ground";let o=this._zooming,a=this._rotating,s=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,o&&this.fire(new r.Event("zoomend",n)),a&&this.fire(new r.Event("rotateend",n)),s&&this.fire(new r.Event("pitchend",n)),this.fire(new r.Event("moveend",n))}flyTo(n,i){if(this._prefersReducedMotion(n)){let o=r.pick(n,["center","zoom","bearing","pitch","around"]);return this.jumpTo(o,i)}this.stop(),n=r.extend({offset:[0,0],speed:1.2,curve:1.42,easing:r.ease},n);let o=this.transform,a=this.getZoom(),s=this.getBearing(),l=this.getPitch(),c=this.getPadding(),u="zoom"in n?r.clamp(+n.zoom,o.minZoom,o.maxZoom):a,d="bearing"in n?this._normalizeBearing(n.bearing,s):s,h="pitch"in n?+n.pitch:l,p="padding"in n?n.padding:o.padding,f
222=o.zoomScale(u-a),m=r.Point.convert(n.offset),g=o.centerPoint.add(m),v=o.pointLocation(g),y=r.LngLat.convert(n.center||v);this._normalizeCenter(y);let b=o.project(v),x=o.project(y).sub(b),_=n.curve,w=Math.max(o.width,o.height),S=w/f,T=x.mag();if("minZoom"in n){let i=r.clamp(Math.min(n.minZoom,a,u),o.minZoom,o.maxZoom),s=w/o.zoomScale(i-a);_=Math.sqrt(s/T*2)}let E=_*_;function k(r){let n=(S*S-w*w+(r?-1:1)*E*E*T*T)/(2*(r?S:w)*E*T);return Math.log(Math.sqrt(n*n+1)-n)}function C(r){return(Math.exp(r)-Math.exp(-r))/2}function P(r){return(Math.exp(r)+Math.exp(-r))/2}let O=k(0),j=function(r){return P(O)/P(O+_*r)},A=function(r){var n;return w*((P(O)*(C(n=O+_*r)/P(n))-C(O))/E)/T},M=(k(1)-O)/_;if(1e-6>Math.abs(T)||!isFinite(M)){if(1e-6>Math.abs(w-S))return this.easeTo(n,i);let r=S<w?-1:1;M=Math.abs(Math.log(S/w))/_,A=function(){return 0},j=function(n){return Math.exp(r*_*n)}}n.duration="duration"in n?+n.duration:1e3*M/("screenSpeed"in n?+n.screenSpeed/_:+n.speed),n.maxDuration&&n.duration>n.maxDuration&&(n.duration=0);let I=s!==d,Z=h!==l,R=!o.isPaddingEqual(p),D=o=>f=>{let v=f*M,_=1/j(v);o.zoom=1===f?u:a+o.scaleZoom(_),I&&(o.bearing=r.number(s,d,f)),Z&&(o.pitch=r.number(l,h,f)),R&&(o.interpolatePadding(c,p,f),g=o.centerPoint.add(m));let w=1===f?y:o.unproject(b.add(x.mult(A(v))).mult(_));return o.setLocationAtPoint(o.renderWorldCopies?w.wrap():w,g),o._updateCameraOnTerrain(),n.preloadOnly||this._fireMoveEvents(i),o};if(n.preloadOnly){let r=this._emulate(D,n.duration,o);return this._preloadTiles(r),this}return this._zooming=!0,this._rotating=I,this._pitching=Z,this._padding=R,this._prepareEase(i,!1),this._ease(D(o),()=>this._afterEase(i),n),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(r,n){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),this._easeFrameId=void 0,this._onEaseFrame=void 0),this._onEaseEnd){let r=this._onEaseEnd;this._onEaseEnd=void 0,r.call(this,n)}if(!r){let r=this.handlers;r&&r.stop(!1)}return this}_ease(n,i,o){!1===o.animate||0===o.duration?(n(1),i()):(this._easeStart=r.exported.now(),this._easeOptions=o,this._onEaseFrame=n,this._onEaseEnd=i,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_renderFrameCallback(){let n=Math.min((r.exported.now()-this._easeStart)/this._easeOptions.duration,1),i=this._onEaseFrame;i&&i(this._easeOptions.easing(n)),n<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()}_normalizeBearing(n,i){n=r.wrap(n,-180,180);let o=Math.abs(n-i);return Math.abs(n-360-i)<o&&(n-=360),Math.abs(n+360-i)<o&&(n+=360),n}_normalizeCenter(r){let n=this.transform;if(!n.renderWorldCopies||n.maxBounds)return;let i=r.lng-n.center.lng;r.lng+=i>180?-360:i<-180?360:0}_prefersReducedMotion(n){return this._respectPrefersReducedMotion&&r.exported.prefersReducedMotion&&!(n&&n.essential)}_emulate(r,n,i){let o=Math.ceil(15*n/1e3),a=[],s=r(i.clone());for(let r=0;r<=o;r++){let n=s(r/o);a.push(n.clone())}return a}}class nU{constructor(n={}){this.options=n,r.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)}getDefaultPosition(){return"bottom-right"}onAdd(r){let n=this.options&&this.options.compact;return this._map=r,this._container=c("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=c("button","mapboxgl-ctrl-attrib-button",this._container),c("span","mapboxgl-ctrl-icon",this._compactButton).setAttribute("aria-hidden","true"),this._compactButton.type="button",this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=c("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),n&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),void 0===n&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container}onRemove(){this._container.remove(),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0}_setElementTitle(r,n){let i=this._map._getUIString(`AttributionControl.${n}`);r.setAttribute("aria-label",i),r.removeAttribute("title"),r.firstElementChild&&r.f
222irstElementChild.setAttribute("title",i)}_toggleAttribution(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-expanded","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-expanded","true"))}_updateEditLink(){let n=this._editLink;n||(n=this._editLink=this._container.querySelector(".mapbox-improve-map"));let i=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||r.config.ACCESS_TOKEN}];if(n){let o=i.reduce((r,n,o)=>(n.value&&(r+=`${n.key}=${n.value}${o<i.length-1?"&":""}`),r),"?");n.href=`${r.config.FEEDBACK_URL}/${o}#${r2(this._map,!0)}`,n.rel="noopener nofollow",this._setElementTitle(n,"MapFeedback")}}_updateData(r){r&&("metadata"===r.sourceDataType||"visibility"===r.sourceDataType||"style"===r.dataType)&&(this._updateAttributions(),this._updateEditLink())}_updateAttributions(){if(!this._map.style)return;let r=[];if(this._map.style.stylesheet){let r=this._map.style.stylesheet;this.styleOwner=r.owner,this.styleId=r.id}let n=this._map.style._sourceCaches;for(let i in n){let o=n[i];if(o.used){let n=o.getSource();n.attribution&&0>r.indexOf(n.attribution)&&r.push(n.attribution)}}r.sort((r,n)=>r.length-n.length),r=r.filter((n,i)=>{for(let o=i+1;o<r.length;o++)if(r[o].indexOf(n)>=0)return!1;return!0}),this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?r=[...this.options.customAttribution,...r]:r.unshift(this.options.customAttribution));let i=r.join(" | ");i!==this._attribHTML&&(this._attribHTML=i,r.length?(this._innerContainer.innerHTML=i,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}_updateCompact(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")}}class nV{constructor(){r.bindAll(["_updateLogo","_updateCompact"],this)}onAdd(r){this._map=r,this._container=c("div","mapboxgl-ctrl");let n=c("a","mapboxgl-ctrl-logo");return n.target="_blank",n.rel="noopener nofollow",n.href="https://www.mapbox.com/",n.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),n.setAttribute("rel","noopener nofollow"),this._container.appendChild(n),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){this._container.remove(),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)}getDefaultPosition(){return"bottom-left"}_updateLogo(r){r&&"metadata"!==r.sourceDataType||(this._container.style.display=this._logoRequired()?"block":"none")}_logoRequired(){if(!this._map.style)return!0;let r=this._map.style._sourceCaches;if(0===Object.entries(r).length)return!0;for(let n in r){let i=r[n].getSource();if(i.hasOwnProperty("mapbox_logo")&&!i.mapbox_logo)return!1}return!0}_updateCompact(){let r=this._container.children;if(r.length){let n=r[0];this._map.getCanvasContainer().offsetWidth<250?n.classList.add("mapboxgl-compact"):n.classList.remove("mapboxgl-compact")}}}class nq{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(r){let n=++this._id;return this._queue.push({callback:r,id:n,cancelled:!1}),n}remove(r){let n=this._currentlyRunning,i=n?this._queue.concat(n):this._queue;for(let n of i)if(n.id===r)return void(n.cancelled=!0)}run(r=0){let n=this._currentlyRunning=this._queue;for(let i of(this._queue=[],n))if(!i.cancelled&&(i.callback(r),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}function n$(n,i,o){if(n=new r.LngLat(n.lng,n.lat),i){let a=new r.LngLat(n.lng-360,n.lat),s=new r.LngLat(n.lng+360,n.lat),l=360*Math.ceil(Math.abs(n.lng-o.center.lng)/360),c=o.locationPoint(n).distSqr(i),u=i.x<0||i.y<0||i.x>o.width||i.y>o.height;o.locationPoint(a).distSqr(i)<c&&(u||Math.abs(a.lng-o.center.lng)<l)?n=a:o.locationPoint(s).distSqr(i)<c&&(u||Math.abs(s.lng-o.center.lng)<l)&&(n=s)}for(;Math.abs(n.lng-o.center.lng)>180;){let r=o.locationPoint(n);if(r.x>=0&&r.y>=0&&r.x<=o.width&&r.y<=o.height)break;n.lng>o.center.lng?n.lng-=360:n.lng+=360}return n}
222let nG={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};class nW extends r.Evented{constructor(n,i){if(super(),(n instanceof r.window.HTMLElement||i)&&(n=r.extend({element:n},i)),r.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress","_clearFadeTimer"],this),this._anchor=n&&n.anchor||"center",this._color=n&&n.color||"#3FB1CE",this._scale=n&&n.scale||1,this._draggable=n&&n.draggable||!1,this._clickTolerance=n&&n.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=n&&n.rotation||0,this._rotationAlignment=n&&n.rotationAlignment||"auto",this._pitchAlignment=n&&n.pitchAlignment&&n.pitchAlignment||"auto",this._updateMoving=()=>this._update(!0),this._occludedOpacity=n&&n.occludedOpacity||.2,n&&n.element)this._element=n.element,this._offset=r.Point.convert(n&&n.offset||[0,0]);else{this._defaultMarker=!0,this._element=c("div");let i=u("svg",{display:"block",height:41*this._scale+"px",width:27*this._scale+"px",viewBox:"0 0 27 41"},this._element),o=u("radialGradient",{id:"shadowGradient"},u("defs",{},i));u("stop",{offset:"10%","stop-opacity":.4},o),u("stop",{offset:"100%","stop-opacity":.05},o),u("ellipse",{cx:13.5,cy:34.8,rx:10.5,ry:5.25,fill:"url(#shadowGradient)"},i),u("path",{fill:this._color,d:"M27,13.5C27,19.07 20.25,27 14.75,34.5C14.02,35.5 12.98,35.5 12.25,34.5C6.75,27 0,19.22 0,13.5C0,6.04 6.04,0 13.5,0C20.96,0 27,6.04 27,13.5Z"},i),u("path",{opacity:.25,d:"M13.5,0C6.04,0 0,6.04 0,13.5C0,19.22 6.75,27 12.25,34.5C13,35.52 14.02,35.5 14.75,34.5C20.25,27 27,19.07 27,13.5C27,6.04 20.96,0 13.5,0ZM13.5,1C20.42,1 26,6.58 26,13.5C26,15.9 24.5,19.18 22.22,22.74C19.95,26.3 16.71,30.14 13.94,33.91C13.74,34.18 13.61,34.32 13.5,34.44C13.39,34.32 13.26,34.18 13.06,33.91C10.28,30.13 7.41,26.31 5.02,22.77C2.62,19.23 1,15.95 1,13.5C1,6.58 6.58,1 13.5,1Z"},i),u("circle",{fill:"white",cx:13.5,cy:13.5,r:5.5},i),this._offset=r.Point.convert(n&&n.offset||[0,-14])}this._element.hasAttribute("aria-label")||this._element.setAttribute("aria-label","Map marker"),this._element.classList.add("mapboxgl-marker"),this._element.addEventListener("dragstart",r=>{r.preventDefault()}),this._element.addEventListener("mousedown",r=>{r.preventDefault()});let o=this._element.classList;for(let r in nG)o.remove(`mapboxgl-marker-anchor-${r}`);o.add(`mapboxgl-marker-anchor-${this._anchor}`),this._popup=null}addTo(r){return r===this._map||(this.remove(),this._map=r,r.getCanvasContainer().appendChild(this._element),r.on("move",this._updateMoving),r.on("moveend",this._update),r.on("remove",this._clearFadeTimer),r._addMarker(this),this.setDraggable(this._draggable),this._update(),r.on("click",this._onMapClick)),this}remove(){let r=this._map;return r&&(r.off("click",this._onMapClick),r.off("move",this._updateMoving),r.off("moveend",this._update),r.off("mousedown",this._addDragHandler),r.off("touchstart",this._addDragHandler),r.off("mouseup",this._onUp),r.off("touchend",this._onUp),r.off("mousemove",this._onMove),r.off("touchmove",this._onMove),r.off("remove",this._clearFadeTimer),r._removeMarker(this),this._map=void 0),this._clearFadeTimer(),this._element.remove(),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(n){return this._lngLat=r.LngLat.convert(n),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(!0),this}getElement(){return this._element}setPopup(r){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeAttribute("role"),this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),r){if(!("offset"in r.options)){let n=Math.sqrt(91.125);r.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-38.1],"bottom-left":[n,-1*(24.6+n)],"bottom-right":[-n,-1*(24.6+n)],left:[13.5,-24.6],right:[-13.5,-24.6]}:this._offset}this._popup=r,r._marker=this,this._lngLat&&this._popup.setLngLat(this._lngLat),this._element.setAttribute("role","button"),this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress),this._element.setAttribute("aria-expanded","fal
222se")}return this}_onKeyPress(r){let n=r.code,i=r.charCode||r.keyCode;"Space"!==n&&"Enter"!==n&&32!==i&&13!==i||this.togglePopup()}_onMapClick(r){let n=r.originalEvent.target,i=this._element;this._popup&&(n===i||i.contains(n))&&this.togglePopup()}getPopup(){return this._popup}togglePopup(){let r=this._popup;return r&&(r.isOpen()?(r.remove(),this._element.setAttribute("aria-expanded","false")):this._map&&(r.addTo(this._map),this._element.setAttribute("aria-expanded","true"))),this}_behindTerrain(){let r=this._map,n=this._pos;if(!r||!n)return!1;let i=r.unproject(n),o=r.getFreeCameraOptions();if(!o.position)return!1;let a=o.position.toLngLat();return a.distanceTo(i)<.9*a.distanceTo(this._lngLat)}_evaluateOpacity(){let n;let i=this._map;if(!i)return;let o=this._pos;if(!o||o.x<0||o.x>i.transform.width||o.y<0||o.y>i.transform.height)return void this._clearFadeTimer();let a=i.unproject(o);i._showingGlobe()&&r.isLngLatBehindGlobe(i.transform,this._lngLat)?n=0:(n=1-i._queryFogOpacity(a),i.transform._terrainEnabled()&&i.getTerrain()&&this._behindTerrain()&&(n*=this._occludedOpacity)),this._element.style.opacity=`${n}`,this._element.style.pointerEvents=n>0?"auto":"none",this._popup&&this._popup._setOpacity(n),this._fadeTimer=null}_clearFadeTimer(){this._fadeTimer&&(clearTimeout(this._fadeTimer),this._fadeTimer=null)}_updateDOM(){let r=this._pos;if(!r||!this._map)return;let n=this._offset.mult(this._scale);this._element.style.transform=` 223 translate(${r.x}px,${r.y}px) 224 ${nG[this._anchor]} 225 ${this._calculateXYTransform()} ${this._calculateZTransform()} 226 translate(${n.x}px,${n.y}px) 227 `}_calculateXYTransform(){let n=this._pos,i=this._map,o=this.getPitchAlignment();if(!i||!n||"map"!==o)return"";if(!i._showingGlobe()){let r=i.getPitch();return r?`rotateX(${r}deg)`:""}let a=r.radToDeg(r.globeTiltAtLngLat(i.transform,this._lngLat)),s=n.sub(r.globeCenterToScreenPoint(i.transform)),l=Math.abs(s.x)+Math.abs(s.y);if(0===l)return"";let c=a/l;return`rotateX(${-s.y*c}deg) rotateY(${s.x*c}deg)`}_calculateZTransform(){let n=this._pos,i=this._map;if(!i||!n)return"";let o=0,a=this.getRotationAlignment();if("map"===a){if(i._showingGlobe()){let n=i.project(new r.LngLat(this._lngLat.lng,this._lngLat.lat+.001)),a=i.project(new r.LngLat(this._lngLat.lng,this._lngLat.lat-.001)).sub(n);o=r.radToDeg(Math.atan2(a.y,a.x))-90}else o=-i.getBearing()}else if("horizon"===a){let a=r.smoothstep(4,6,i.getZoom()),s=r.globeCenterToScreenPoint(i.transform);s.y+=a*i.transform.height;let l=n.sub(s),c=r.radToDeg(Math.atan2(l.y,l.x));o=(c>90?c-270:c+90)*(1-a)}return(o+=this._rotation)?`rotateZ(${o}deg)`:""}_update(n){r.window.cancelAnimationFrame(this._updateFrameId);let i=this._map;
227i&&(i.transform.renderWorldCopies&&(this._lngLat=n$(this._lngLat,this._pos,i.transform)),this._pos=i.project(this._lngLat),!0===n?this._updateFrameId=r.window.requestAnimationFrame(()=>{this._element&&this._pos&&this._anchor&&(this._pos=this._pos.round(),this._updateDOM())}):this._pos=this._pos.round(),i._requestDomTask(()=>{this._map&&(this._element&&this._pos&&this._anchor&&this._updateDOM(),(i._showingGlobe()||i.getTerrain()||i.getFog())&&!this._fadeTimer&&(this._fadeTimer=setTimeout(this._evaluateOpacity.bind(this),60)))}))}getOffset(){return this._offset}setOffset(n){return this._offset=r.Point.convert(n),this._update(),this}_onMove(n){let i=this._map;if(!i)return;let o=this._pointerdownPos,a=this._positionDelta;if(o&&a){if(!this._isDragging){let r=this._clickTolerance||i._clickTolerance;if(n.point.dist(o)<r)return;this._isDragging=!0}this._pos=n.point.sub(a),this._lngLat=i.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none","pending"===this._state&&(this._state="active",this.fire(new r.Event("dragstart"))),this.fire(new r.Event("drag"))}}_onUp(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1;let n=this._map;n&&(n.off("mousemove",this._onMove),n.off("touchmove",this._onMove)),"active"===this._state&&this.fire(new r.Event("dragend")),this._state="inactive"}_addDragHandler(r){let n=this._map,i=this._pos;n&&i&&this._element.contains(r.originalEvent.target)&&(r.preventDefault(),this._positionDelta=r.point.sub(i),this._pointerdownPos=r.point,this._state="pending",n.on("mousemove",this._onMove),n.on("touchmove",this._onMove),n.once("mouseup",this._onUp),n.once("touchend",this._onUp))}setDraggable(r){this._draggable=!!r;let n=this._map;return n&&(r?(n.on("mousedown",this._addDragHandler),n.on("touchstart",this._addDragHandler)):(n.off("mousedown",this._addDragHandler),n.off("touchstart",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(r){return this._rotation=r||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(r){return this._rotationAlignment=r||"auto",this._update(),this}getRotationAlignment(){return"auto"===this._rotationAlignment||"horizon"===this._rotationAlignment&&this._map&&!this._map._showingGlobe()?"viewport":this._rotationAlignment}setPitchAlignment(r){return this._pitchAlignment=r||"auto",this._update(),this}getPitchAlignment(){return"auto"===this._pitchAlignment?this.getRotationAlignment():this._pitchAlignment}setOccludedOpacity(r){return this._occludedOpacity=r||.2,this._update(),this}getOccludedOpacity(){return this._occludedOpacity}}let nH={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"};function nX(n=new r.Point(0,0),i="bottom"){if("number"==typeof n){let o=Math.round(Math.sqrt(.5*Math.pow(n,2)));switch(i){case"top":return new r.Point(0,n);case"top-left":return new r.Point(o,o);case"top-right":return new r.Point(-o,o);case"bottom":return new r.Point(0,-n);case"bottom-left":return new r.Point(o,-o);case"bottom-right":return new r.Point(-o,-o);case"left":return new r.Point(n,0);case"right":return new r.Point(-n,0)}return new r.Point(0,0)}return n instanceof r.Point||Array.isArray(n)?r.Point.convert(n):r.Point.convert(n[i]||[0,0])}class nY{constructor(r){this.jumpTo(r)}getValue(n){if(n<=this._startTime)return this._start;if(n>=this._endTime)return this._end;let i=r.easeCubicInOut((n-this._startTime)/(this._endTime-this._startTime));return this._start*(1-i)+this._end*i}isEasing(r){return r>=this._startTime&&r<=this._endTime}jumpTo(r){this._startTime=-1/0,this._endTime=-1/0,this._start=r,this._end=r}easeTo(r,n,i){this._start=this.getValue(n),this._end=r,this._startTime=n,this._endTime=n+i}}let nK={"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"Mapbox logo","Map.Title":"Map","NavigationControl.ResetBearing":"Reset bearing to north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","ScrollZoomBlocker.CtrlMessage":"Use ctrl + scroll to zoom the map","ScrollZoomBlocker.CmdMessage":"Use â + scroll to zoom the map","TouchPanBlocker.Message":"Use two fingers to move the map"},nJ={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:85,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,cooperativeGestures:!1,performanceMetricsCollection:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,optimizeForTerrain:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,minTileCacheSize:null,maxTileC
227acheSize:null,localIdeographFontFamily:"sans-serif",localFontFamily:null,transformRequest:null,accessToken:null,fadeDuration:300,respectPrefersReducedMotion:!0,crossSourceCollisions:!0},nQ={showCompass:!0,showZoom:!0,visualizePitch:!1};class n0{constructor(n,i,o=!1){this._clickTolerance=10,this.element=i,this.mouseRotate=new nf({clickTolerance:n.dragRotate._mouseRotate._clickTolerance}),this.map=n,o&&(this.mousePitch=new nm({clickTolerance:n.dragRotate._mousePitch._clickTolerance})),r.bindAll(["mousedown","mousemove","mouseup","touchstart","touchmove","touchend","reset"],this),i.addEventListener("mousedown",this.mousedown),i.addEventListener("touchstart",this.touchstart,{passive:!1}),i.addEventListener("touchmove",this.touchmove),i.addEventListener("touchend",this.touchend),i.addEventListener("touchcancel",this.reset)}down(r,n){this.mouseRotate.mousedown(r,n),this.mousePitch&&this.mousePitch.mousedown(r,n),p()}move(r,n){let i=this.map,o=this.mouseRotate.mousemoveWindow(r,n),a=o&&o.bearingDelta;if(a&&i.setBearing(i.getBearing()+a),this.mousePitch){let o=this.mousePitch.mousemoveWindow(r,n),a=o&&o.pitchDelta;a&&i.setPitch(i.getPitch()+a)}}off(){let r=this.element;r.removeEventListener("mousedown",this.mousedown),r.removeEventListener("touchstart",this.touchstart,{passive:!1}),r.removeEventListener("touchmove",this.touchmove),r.removeEventListener("touchend",this.touchend),r.removeEventListener("touchcancel",this.reset),this.offTemp()}offTemp(){f(),r.window.removeEventListener("mousemove",this.mousemove),r.window.removeEventListener("mouseup",this.mouseup)}mousedown(n){this.down(r.extend({},n,{ctrlKey:!0,preventDefault:()=>n.preventDefault()}),v(this.element,n)),r.window.addEventListener("mousemove",this.mousemove),r.window.addEventListener("mouseup",this.mouseup)}mousemove(r){this.move(r,v(this.element,r))}mouseup(r){this.mouseRotate.mouseupWindow(r),this.mousePitch&&this.mousePitch.mouseupWindow(r),this.offTemp()}touchstart(r){1!==r.targetTouches.length?this.reset():(this._startPos=this._lastPos=y(this.element,r.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:()=>r.preventDefault()},this._startPos))}touchmove(r){1!==r.targetTouches.length?this.reset():(this._lastPos=y(this.element,r.targetTouches)[0],this.move({preventDefault:()=>r.preventDefault()},this._lastPos))}touchend(r){0===r.targetTouches.length&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)<this._clickTolerance&&this.element.click(),this.reset()}reset(){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()}}let n1={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0,showUserHeading:!1},n2={maxWidth:100,unit:"metric"},n3={kilometer:"km",meter:"m",mile:"mi",foot:"ft","nautical-mile":"nm"},n4={version:r.version,supported:s,setRTLTextPlugin:r.setRTLTextPlugin,getRTLTextPluginStatus:r.getRTLTextPluginStatus,Map:class extends nN{constructor(n){if(r.LivePerformanceUtils.mark(r.PerformanceMarkers.create),null!=(n=r.extend({},nJ,n)).minZoom&&null!=n.maxZoom&&n.minZoom>n.maxZoom)throw Error("maxZoom must be greater than or equal to minZoom");if(null!=n.minPitch&&null!=n.maxPitch&&n.minPitch>n.maxPitch)throw Error("maxPitch must be greater than or equal to minPitch");if(null!=n.minPitch&&n.minPitch<0)throw Error("minPitch must be greater than or equal to 0");if(null!=n.maxPitch&&n.maxPitch>85)throw Error("maxPitch must be less than or equal to 85");if(n.antialias&&r.isSafariWithAntialiasingBug(r.window)&&(n.antialias=!1,r.warnOnce("Antialiasing is disabled for this WebGL context to avoid browser bug: https://github.com/mapbox/mapbox-gl-js/issues/11609")),super(new rQ(n.minZoom,n.maxZoom,n.minPitch,n.maxPitch,n.renderWorldCopies),n),this._interactive=n.interactive,this._minTileCacheSize=n.minTileCacheSize,this._maxTileCacheSize=n.maxTileCacheSize,this._failIfMajorPerformanceCaveat=n.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=n.preserveDrawingBuffer,this._antialias=n.antialias,this._useWebGL2=n.useWebGL2,this._trackResize=n.trackResize,this._bearingSnap=n.bearingSnap,this._refreshExpiredTiles=n.refreshExpiredTiles,this._fadeDuration=n.fadeDuration,this._isInitialLoad=!0,this._crossSourceCollisions=n.crossSourceCollisions,this._collectResourceTiming=n.collectResourceTiming,this._optimizeForTerrain=n.optimizeForTerrain,this._language=this._parseLanguage(n.language),this._worldview=n.worldview,this._renderTaskQueue=new nq,this._domRenderTaskQueue=new nq,this._controls=[],this._markers=[],this._popups=[],this._mapId=r.uniqueId(),this._locale=r.extend({},nK,n.locale),this._clickTolerance=n.clickTolerance,this._cooperativeGestures=n.cooperativeGestures,this._performanceMetricsCollection=n.performanceMetricsCollection,this._containerWidth=0,this._containerHeight=0,this._averageElevationLastSampledAt=-1/0,this._averageElevationExaggeration=0,this._averageElevation=new nY(0),this._interactionRange=[1/0,-1/0],this._visibilityHidden=0,this._useExplicitProjection=!1,this._requestManager=new r.RequestManager(n.transformRequest,n.accessToken,n.testMode),this._silenceAuthErrors=!!n.testMode,"string"==typeof n.container){if(this._container=r.window.document.getElementById(n.container),!this._container)throw Error(`Container '${n.container}' not found.`)}else{if(!(n.container instanceof r.window.HTMLElement))throw Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=n.container}if(this._container.childNodes.length>0&&r.warnOnce("The map container element should be empty, otherwise the map's interactivity will be negatively impacted. If you want to display a message when WebGL is not supported, use the Mapbox GL Supported plugin instead."),n.maxBounds&&this.setMaxBounds(n.maxBounds),r.bindAll(["_onWindowOnline","_onWindowResize","_onVisibilityChange","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw Error("Failed to initialize WebGL.");this.on("move",()=>this._update(!1)),this.on("moveend",()=>this._update(!1)),this.on("zoom",()=>this._update(!0)),void 0!==r.window&&(r.window.addEventListener("online",this._onWindowOnline,!1),r.window.addEventListener("resize",this._onWindowResize,!1),r.window.addEventListener("orientationchange",this._onWindowResize,!1),r.window.addEventListener("webkitfullscreenchange",this._onWindowResize,!1),r.window.addEventListener("visibilitychange",this._onVisibilityChange,!1)),this.handlers=new nB(this,n),this._localFontFamily=n.localFontFamily,this._localIdeographFontFamily=n.localIdeographFontFamily,n.style&&this.setStyle(n.style,{localFontFamily:this._localFontFamily,localIdeographFontFamily:this._localIdeographFontFamily}),n.projection&&this.setProjection(n.projection),this._hash=n.hash&&new r1("string"==typeof n.hash&&n.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:n.center,zoom:n.zoom,bearing:n.bearing,pitch:n.pitch}),n.bounds&&(this.resize(),this.fitBounds(n.bounds,r.extend({},n.fitBoundsOptions,{duration:0})))),this.resize(),n.attributionControl&&this.addControl(new nU({customAttribution:n.customAttribution}
227)),this._logoControl=new nV,this.addControl(this._logoControl,n.logoPosition),this.on("style.load",()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet)}),this.on("data",n=>{this._update("style"===n.dataType),this.fire(new r.Event(`${n.dataType}data`,n))}),this.on("dataloading",n=>{this.fire(new r.Event(`${n.dataType}dataloading`,n))})}_getMapId(){return this._mapId}addControl(n,i){if(void 0===i&&(i=n.getDefaultPosition?n.getDefaultPosition():"top-right"),!n||!n.onAdd)return this.fire(new r.ErrorEvent(Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));let o=n.onAdd(this);this._controls.push(n);let a=this._controlPositions[i];return -1!==i.indexOf("bottom")?a.insertBefore(o,a.firstChild):a.appendChild(o),this}removeControl(n){if(!n||!n.onRemove)return this.fire(new r.ErrorEvent(Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));let i=this._controls.indexOf(n);return i>-1&&this._controls.splice(i,1),n.onRemove(this),this}hasControl(r){return this._controls.indexOf(r)>-1}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}resize(n){if(this._updateContainerDimensions(),this._containerWidth===this.transform.width&&this._containerHeight===this.transform.height)return this;this._resizeCanvas(this._containerWidth,this._containerHeight),this.transform.resize(this._containerWidth,this._containerHeight),this.painter.resize(Math.ceil(this._containerWidth),Math.ceil(this._containerHeight));let i=!this._moving;return i&&this.fire(new r.Event("movestart",n)).fire(new r.Event("move",n)),this.fire(new r.Event("resize",n)),i&&this.fire(new r.Event("moveend",n)),this}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()||null}setMaxBounds(n){return this.transform.setMaxBounds(r.LngLatBounds.convert(n)),this._update()}setMinZoom(n){if((n=null==n?-2:n)>=-2&&n<=this.transform.maxZoom)return this.transform.minZoom=n,this._update(),this.getZoom()<n?this.setZoom(n):this.fire(new r.Event("zoomstart")).fire(new r.Event("zoom")).fire(new r.Event("zoomend")),this;throw Error("minZoom must be between -2 and the current maxZoom, inclusive")}getMinZoom(){return this.transform.minZoom}setMaxZoom(n){if((n=null==n?22:n)>=this.transform.minZoom)return this.transform.maxZoom=n,this._update(),this.getZoom()>n?this.setZoom(n):this.fire(new r.Event("zoomstart")).fire(new r.Event("zoom")).fire(new r.Event("zoomend")),this;throw Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(n){if((n=null==n?0:n)<0)throw Error("minPitch must be greater than or equal to 0");if(n>=0&&n<=this.transform.maxPitch)return this.transform.minPitch=n,this._update(),this.getPitch()<n?this.setPitch(n):this.fire(new r.Event("pitchstart")).fire(new r.Event("pitch")).fire(new r.Event("pitchend")),this;throw Error("minPitch must be between 0 and the current maxPitch, inclusive")}getMinPitch(){return this.transform.minPitch}setMaxPitch(n){if((n=null==n?85:n)>85)throw Error("maxPitch must be less than or equal to 85");if(n>=this.transform.minPitch)return this.transform.maxPitch=n,this._update(),this.getPitch()>n?this.setPitch(n):this.fire(new r.Event("pitchstart")).fire(new r.Event("pitch")).fire(new r.Event("pitchend")),this;throw Error("maxPitch must be greater than or equal to minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(r){return this.transform.renderWorldCopies=r,this.transform.renderWorldCopies||this._forceMarkerAndPopupUpdate(!0),this._update()}getLanguage(){return this._language}_parseLanguage(n){return"auto"===n?r.window.navigator.language:Array.isArray(n)?0===n.length?void 0:n.map(n=>"auto"===n?r.window.navigator.language:n):n}setLanguage(r){let n=this._parseLanguage(r);if(!this.style||n===this._language)return this;for(let r of(this._language=n,this.style._reloadSources(),this._controls))r._setLanguage&&r._setLanguage(this._language);return this}getWorldview(){return this._worldview}setWorldview(r){return this.style&&r!==this._worldview&&(this._worldview=r,this.style._reloadSources()),this}getProjection(){return this.transform.mercatorFromTransition?{name:"globe",center:[0,0]}:this.transform.getProjection()}_showingGlobe(){return"globe"===this.transform.projection.name}setProjection(r){return this._lazyInitEmptyStyle(),r?"string"==typeof r&&(r={name:r}):r=null,this._useExplicitProjection=!!r,this._prioritizeAndUpdateProjection(r,this.style.stylesheet?this.style.stylesheet.projection:null)}_updateProjectionTransition(){let n;if("globe"!==this.getProjection().name)return;let i=this.transform,o=i.projection.name;"globe"===o&&i.zoom>=r.GLOBE_ZOOM_THRESHOLD_MAX?(i.setMercatorFromTransition(),n=!0):"mercator"===o&&i.zoom<r.GLOBE_ZOOM_THRESHOLD_MAX&&(i.setProjection({name:"globe"}),n=!0),n&&(this.style.applyProjectionUpdate(),this.style._forceSymbolLayer
227Update())}_prioritizeAndUpdateProjection(r,n){return this._updateProjection(r||n||{name:"mercator"})}_updateProjection(n){let i;if(i="globe"===n.name&&this.transform.zoom>=r.GLOBE_ZOOM_THRESHOLD_MAX?this.transform.setMercatorFromTransition():this.transform.setProjection(n),this.style.applyProjectionUpdate(),i){for(let r in this.painter.clearBackgroundTiles(),this.style._sourceCaches)this.style._sourceCaches[r].clearTiles();this._update(!0),this._forceMarkerAndPopupUpdate(!0)}return this}project(n){return this.transform.locationPoint3D(r.LngLat.convert(n))}unproject(n){return this.transform.pointLocation3D(r.Point.convert(n))}isMoving(){return this._moving||this.handlers&&this.handlers.isMoving()||!1}isZooming(){return this._zooming||this.handlers&&this.handlers.isZooming()||!1}isRotating(){return this._rotating||this.handlers&&this.handlers.isRotating()||!1}_isDragging(){return this.handlers&&this.handlers._isDragging()||!1}_createDelegatedListener(r,n,i){if("mouseenter"===r||"mouseover"===r){let o=!1,a=a=>{let s=n.filter(r=>this.getLayer(r)),l=s.length?this.queryRenderedFeatures(a.point,{layers:s}):[];l.length?o||(o=!0,i.call(this,new nt(r,this,a.originalEvent,{features:l}))):o=!1},s=()=>{o=!1};return{layers:new Set(n),listener:i,delegates:{mousemove:a,mouseout:s}}}if("mouseleave"===r||"mouseout"===r){let o=!1,a=a=>{let s=n.filter(r=>this.getLayer(r));(s.length?this.queryRenderedFeatures(a.point,{layers:s}):[]).length?o=!0:o&&(o=!1,i.call(this,new nt(r,this,a.originalEvent)))},s=n=>{o&&(o=!1,i.call(this,new nt(r,this,n.originalEvent)))};return{layers:new Set(n),listener:i,delegates:{mousemove:a,mouseout:s}}}{let o=r=>{let o=n.filter(r=>this.getLayer(r)),a=o.length?this.queryRenderedFeatures(r.point,{layers:o}):[];a.length&&(r.features=a,i.call(this,r),delete r.features)};return{layers:new Set(n),listener:i,delegates:{[r]:o}}}}on(r,n,i){if(void 0===i)return super.on(r,n);Array.isArray(n)||(n=[n]);let o=this._createDelegatedListener(r,n,i);for(let n in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[r]=this._delegatedListeners[r]||[],this._delegatedListeners[r].push(o),o.delegates)this.on(n,o.delegates[n]);return this}once(r,n,i){if(void 0===i)return super.once(r,n);Array.isArray(n)||(n=[n]);let o=this._createDelegatedListener(r,n,i);for(let r in o.delegates)this.once(r,o.delegates[r]);return this}off(r,n,i){if(void 0===i)return super.off(r,n);n=new Set(Array.isArray(n)?n:[n]);let o=(r,n)=>{if(r.size!==n.size)return!1;for(let i of r)if(!n.has(i))return!1;return!0},a=this._delegatedListeners?this._delegatedListeners[r]:void 0;return a&&(r=>{for(let a=0;a<r.length;a++){let s=r[a];if(s.listener===i&&o(s.layers,n)){for(let r in s.delegates)this.off(r,s.delegates[r]);return r.splice(a,1),this}}})(a),this}queryRenderedFeatures(n,i){return this.style?(void 0!==i||void 0===n||n instanceof r.Point||Array.isArray(n)||(i=n,n=void 0),this.style.queryRenderedFeatures(n=n||[[0,0],[this.transform.width,this.transform.height]],i=i||{},this.transform)):[]}querySourceFeatures(r,n){return this.style.querySourceFeatures(r,n)}isPointOnSurface(n){let{name:i}=this.transform.projection;return"globe"!==i&&"mercator"!==i&&r.warnOnce(`${i} projection does not support isPointOnSurface, this API may behave unexpectedly.`),this.transform.isPointOnSurface(r.Point.convert(n))}setStyle(n,i){return!1!==(i=r.extend({},{localIdeographFontFamily:this._localIdeographFontFamily,localFontFamily:this._localFontFamily},i)).diff&&i.localIdeographFontFamily===this._localIdeographFontFamily&&i.localFontFamily===this._localFontFamily&&this.style&&n?(this._diffStyle(n,i),this):(this._localIdeographFontFamily=i.localIdeographFontFamily,this._localFontFamily=i.localFontFamily,this._updateStyle(n,i))}_getUIString(r){let n=this._locale[r];if(null==n)throw Error(`Missing UI string '${r}'`);return n}_updateStyle(r,n){return this.style&&(this.style.setEventedParent(null),this.style._remove(),this.style=void 0),r&&(this.style=new tT(this,n||{}),this.style.setEventedParent(this,{style:this.style}),"string"==typeof r?this.style.loadURL(r):this.style.loadJSON(r)),this._updateTerrain(),this}_lazyInitEmptyStyle(){this.style||(this.style=new tT(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(n,i){if("string"==typeof n){let o=this._requestManager.normalizeStyleURL(n),a=this._requestManager.transformRequest(o,r.ResourceType.Style);r.getJSON(a,(n,o)=>{n?this.fire(new r.ErrorEvent(n)):o&&this._updateDiff(o,i)})}else"object"==typeof n&&this._updateDiff(n,i)}_updateDiff(n,i){try{this.style.setState(n)&&this._update(!0)}catch(o){r.warnOnce(`Unable to perform style diff: ${o.message||o.error||o}. Rebuilding the style from scratch.`),this._updateStyle(n,i)}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():(r.warnOnce("There is no style added to the map."),!1)}addSource(r,n){return this._lazyInitEmptyStyle(),this.style.addSource(r,n),this._update(!0)}isSourceLoaded(r){return!!this.style&&this.style._isSourceCacheLoaded(r)}areTilesLoaded(){let r=this.style&&this.style._sourceCaches;for(let n in r){let i=r[n]._tiles;for(let r in i){let n=i[r];if("loaded"!==n.state&&"errored"!==n.state)return!1}}return!0}addSourceType(r,n,i){this._lazyInitEmptyStyle(),this.style.addSourceType(r,n,i)}removeSource(r){return this.style.removeSource(r),this._updateTerrain(),this._update(!0)}getSource(r){return this.style.getSource(r)}
227addImage(n,i,{pixelRatio:o=1,sdf:a=!1,stretchX:s,stretchY:l,content:c}={}){if(this._lazyInitEmptyStyle(),i instanceof r.window.HTMLImageElement||r.window.ImageBitmap&&i instanceof r.window.ImageBitmap){let{width:u,height:d,data:h}=r.exported.getImageData(i);this.style.addImage(n,{data:new r.RGBAImage({width:u,height:d},h),pixelRatio:o,stretchX:s,stretchY:l,content:c,sdf:a,version:0})}else if(void 0===i.width||void 0===i.height)this.fire(new r.ErrorEvent(Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));else{let{width:u,height:d}=i;this.style.addImage(n,{data:new r.RGBAImage({width:u,height:d},new Uint8Array(i.data)),pixelRatio:o,stretchX:s,stretchY:l,content:c,sdf:a,version:0,userImage:i}),i.onAdd&&i.onAdd(this,n)}}updateImage(n,i){let o=this.style.getImage(n);if(!o)return void this.fire(new r.ErrorEvent(Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));let a=i instanceof r.window.HTMLImageElement||r.window.ImageBitmap&&i instanceof r.window.ImageBitmap?r.exported.getImageData(i):i,{width:s,height:l}=a;void 0!==s&&void 0!==l?s===o.data.width&&l===o.data.height?(o.data.replace(a.data,!(i instanceof r.window.HTMLImageElement||r.window.ImageBitmap&&i instanceof r.window.ImageBitmap)),this.style.updateImage(n,o)):this.fire(new r.ErrorEvent(Error(`The width and height of the updated image (${s}, ${l}) 228 must be that same as the previous version of the image 229 (${o.data.width}, ${o.data.height})`))):this.fire(new r.ErrorEvent(Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")))}hasImage(n){return n?!!this.style.getImage(n):(this.fire(new r.ErrorEvent(Error("Missing required image id"))),!1)}removeImage(r){this.style.removeImage(r)}loadImage(n,i){r.getImage(this._requestManager.transformRequest(n,r.ResourceType.Image),(n,o)=>{i(n,o instanceof r.window.HTMLImageElement?r.exported.getImageData(o):o)})}listImages(){return this.style.listImages()}addLayer(r,n){return this._lazyInitEmptyStyle(),this.style.addLayer(r,n),this._update(!0)}moveLayer(r,n){return this.style.moveLayer(r,n),this._update(!0)}removeLayer(r){return this.style.removeLayer(r),this._update(!0)}getLayer(r){return this.style.getLayer(r)}setLayerZoomRange(r,n,i){return this.style.setLayerZoomRange(r,n,i),this._update(!0)}setFilter(r,n,i={}){return this.style.setFilter(r,n,i),this._update(!0)}getFilter(r){return this.style.getFilter(r)}setPaintProperty(r,n,i,o={}){return this.style.setPaintProperty(r,n,i,o),this._update(!0)}getPaintProperty(r,n){return this.style.getPaintProperty(r,n)}setLayoutProperty(r,n,i,o={}){return this.style.setLayoutProperty(r,n,i,o),this._update(!0)}getLayoutProperty(r,n){return this.style.getLayoutProperty(r,n)}setLight(r,n={}){return this._lazyInitEmptyStyle(),this.style.setLight(r,n),this._update(!0)}getLight(){return this.style.getLight()}setTerrain(r){return this._lazyInitEmptyStyle(),!r&&this.transform.projection.requiresDraping?this.style.setTerrainForDraping():this.style.setTerrain(r),this._averageElevationLastSampledAt=-1/0,this._update(!0)}getTerrain(){return this.style?this.style.getTerrain():null}setFog(r){return this._lazyInitEmptyStyle(),this.style.setFog(r),this._update(!0)}getFog(){return this.style?this.style.getFog():null}_queryFogOpacity(n){return this.style&&this.style.fog?this.style.fog.getOpacityAtLatLng(r.LngLat.convert(n),this.transform):0}setFeatureState(r,n){return this.style.setFeatureState(r,n),this._update()}removeFeatureState(r,n){return this.style.removeFeatureState(r,n),this._update()}getFeatureState(r){return this.style.getFeatureState(r)}_updateContainerDimensions(){if(!this._container)return;let n=this._container.getBoundingClientRect().width||400,i=this._container.getBoundingClientRect().height||300,o,a,s,l=this._container;for(;l&&(!a||!s);){let n=r.window.getComputedStyle(l).transform;n&&"none"!==n&&((o=n.match(/matrix.*\((.+)\)/)[1].split(", "))[0]&&"0"!==o[0]&&"1"!==o[0]&&(a=o[0]),o[3]&&"0"!==o[3]&&"1"!==o[3]&&(s=o[3])),l=l.parentElement}this._containerWidth=a?Math.abs(n/a):n,this._containerHeight=s?Math.abs(i/s):i}_detectMissingCSS(){"rgb(250, 128, 114)"!==r.window.getComputedStyle(this._missingCSSCanary).getPropertyValue("background-color")&&r.warnOnce("This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described
229in https://www.mapbox.com/mapbox-gl-js/api/.")}_setupContainer(){let r=this._container;r.classList.add("mapboxgl-map"),(this._missingCSSCanary=c("div","mapboxgl-canary",r)).style.visibility="hidden",this._detectMissingCSS();let n=this._canvasContainer=c("div","mapboxgl-canvas-container",r);this._interactive&&n.classList.add("mapboxgl-interactive"),this._canvas=c("canvas","mapboxgl-canvas",n),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex","0"),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region"),this._updateContainerDimensions(),this._resizeCanvas(this._containerWidth,this._containerHeight);let i=this._controlContainer=c("div","mapboxgl-control-container",r),o=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(r=>{o[r]=c("div",`mapboxgl-ctrl-${r}`,i)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(n,i){let o=r.exported.devicePixelRatio||1;this._canvas.width=o*Math.ceil(n),this._canvas.height=o*Math.ceil(i),this._canvas.style.width=`${n}px`,this._canvas.style.height=`${i}px`}_addMarker(r){this._markers.push(r)}_removeMarker(r){let n=this._markers.indexOf(r);-1!==n&&this._markers.splice(n,1)}_addPopup(r){this._popups.push(r)}_removePopup(r){let n=this._popups.indexOf(r);-1!==n&&this._popups.splice(n,1)}_setupPainter(){let n=r.extend({},s.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),i=this._useWebGL2&&this._canvas.getContext("webgl2",n),o=i||this._canvas.getContext("webgl",n)||this._canvas.getContext("experimental-webgl",n);
229o?(this._useWebGL2&&!i&&r.warnOnce("Failed to create WebGL 2 context. Using WebGL 1."),r.storeAuthState(o,!0),this.painter=new rF(o,this.transform,!!i),this.on("data",r=>{"source"===r.dataType&&this.painter.setTileLoadedFlag(!0)}),r.exported$1.testSupport(o)):this.fire(new r.ErrorEvent(Error("Failed to initialize WebGL")))}_contextLost(n){n.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new r.Event("webglcontextlost",{originalEvent:n}))}_contextRestored(n){this._setupPainter(),this.resize(),this._update(),this.fire(new r.Event("webglcontextrestored",{originalEvent:n}))}_onMapScroll(r){if(r.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(r){return this.style&&(this._styleDirty=this._styleDirty||r,this._sourcesDirty=!0,this.triggerRepaint()),this}_requestRenderFrame(r){return this._update(),this._renderTaskQueue.add(r)}_cancelRenderFrame(r){this._renderTaskQueue.remove(r)}_requestDomTask(r){!this.loaded()||this.loaded()&&!this.isMoving()?r():this._domRenderTaskQueue.add(r)}_render(n){let i;let o=this.painter.context.extTimerQuery,a=r.exported.now();if(this.listens("gpu-timing-frame")&&(i=o.createQueryEXT(),o.beginQueryEXT(o.TIME_ELAPSED_EXT,i)),this.painter.context.setDirty(),this.painter.setBaseState(),(this.isMoving()||this.isRotating()||this.isZooming())&&(this._interactionRange[0]=Math.min(this._interactionRange[0],r.window.performance.now()),this._interactionRange[1]=Math.max(this._interactionRange[1],r.window.performance.now())),this._renderTaskQueue.run(n),this._domRenderTaskQueue.run(n),this._removed)return;this._updateProjectionTransition();let s=this._isInitialLoad?0:this._fadeDuration;if(this.style&&this._styleDirty){this._styleDirty=!1;let n=this.transform.zoom,i=this.transform.pitch,o=r.exported.now(),a=new r.EvaluationParameters(n,{now:o,fadeDuration:s,pitch:i,transition:this.style.getTransition()});this.style.update(a)}this.style&&this.style.fog&&this.style.fog.hasTransition()&&(this.style._markersNeedUpdate=!0,this._sourcesDirty=!0);let l=!1;if(this.style&&this._sourcesDirty?(this._sourcesDirty=!1,this.painter._updateFog(this.style),this._updateTerrain(),l=this._updateAverageElevation(a),this.style._updateSources(this.transform),this._forceMarkerAndPopupUpdate()):l=this._updateAverageElevation(a),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,s,this._crossSourceCollisions),this.style&&this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showTerrainWireframe:this.showTerrainWireframe,showOverdrawInspector:this._showOverdrawInspector,showQueryGeometry:!!this._showQueryGeometry,showTileAABBs:this.showTileAABBs,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:s,isInitialLoad:this._isInitialLoad,showPadding:this.showPadding,gpuTiming:!!this.listens("gpu-timing-layer"),gpuTimingDeferredRender:!!this.listens("gpu-timing-deferred-render"),speedIndexTiming:this.speedIndexTiming}),this.fire(new r.Event("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new r.Event("load"))),this.style&&this.style.hasTransitions()&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),i){let n=r.exported.now()-a;o.endQueryEXT(o.TIME_ELAPSED_EXT,i),setTimeout(()=>{let s=o.getQueryObjectEXT(i,o.QUERY_RESULT_EXT)/1e6;o.deleteQueryEXT(i),this.fire(new r.Event("gpu-timing-frame",{cpuTime:n,gpuTime:s})),r.window.performance.mark("frame-gpu",{startTime:a,detail:{gpuTime:s}})},50)}if(this.listens("gpu-timing-layer")){let n=this.painter.collectGpuTimers();setTimeout(()=>{let i=this.painter.queryGpuTimers(n);this.fire(new r.Event("gpu-timing-layer",{layerTimes:i}))},50)}if(this.listens("gpu-timing-deferred-render")){let n=this.painter.collectDeferredRenderGpuQueries();setTimeout(()=>{let i=this.painter.queryGpuTimeDeferredRender(n);this.fire(new r.Event("gpu-timing-deferred-render",{gpuTime:i}))},50)}let c=this._sourcesDirty||this._styleDirty||this._placementDirty||l;if(c||this._repaint)this.triggerRepaint();else{let n=!this.isMoving()&&this.loaded();if(n&&(l=this._updateAverageElevation(a,!0)),l)this.triggerRepaint();else if(this._triggerFrame(!1),n&&(this.fire(new r.Event("idle")),this._isInitialLoad=!1,this.speedIndexTiming)){let n=this._calculateSpeedIndex();this.fire(new r.Event("speedindexcompleted",{speedIndex:n})),this.speedIndexTiming=!1}}!this._loaded||this._fullyLoaded||c||(this._fullyLoaded=!0,r.LivePerformanceUtils.mark(r.PerformanceMarkers.fullLoad),this._performanceMetricsCollection&&r.postPerformanceEvent(this._requestManager._customAccessToken,{width:this.painter.width,height:this.painter.height,interactionRange:this._interactionRange,visibilityHidden:this._visibilityHidden,terrainEnabled:!!this.painter.style.getTerrain(),fogEnabled:!!this.painter.style.getFog(),projection:this.getProjection().name,zoom:this.transform.zoom,renderer:this.painter.context.renderer,vendor:this.painter.context.vendor}),this._authenticate())}
229_forceMarkerAndPopupUpdate(r){for(let n of this._markers)r&&!this.getRenderWorldCopies()&&(n._lngLat=n._lngLat.wrap()),n._update();for(let n of this._popups)!r||this.getRenderWorldCopies()||n._trackPointer||(n._lngLat=n._lngLat.wrap()),n._update()}_updateAverageElevation(r,n=!1){let i=r=>(this.transform.averageElevation=r,this._update(!1),!0);if(!this.painter.averageElevationNeedsEasing())return 0!==this.transform.averageElevation&&i(0);if((n||r-this._averageElevationLastSampledAt>500)&&!this._averageElevation.isEasing(r)){let n=this.transform.averageElevation,o=this.transform.sampleAverageElevation(),a=!1;this.transform.elevation&&(a=this.transform.elevation.exaggeration()!==this._averageElevationExaggeration,this._averageElevationExaggeration=this.transform.elevation.exaggeration()),isNaN(o)?o=0:this._averageElevationLastSampledAt=r;let s=Math.abs(n-o);if(s>1){if(this._isInitialLoad||a)return this._averageElevation.jumpTo(o),i(o);this._averageElevation.easeTo(o,r,300)}else if(s>1e-4)return this._averageElevation.jumpTo(o),i(o)}return!!this._averageElevation.isEasing(r)&&i(this._averageElevation.getValue(r))}_authenticate(){r.getMapSessionAPI(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,n=>{if(n&&(n.message===r.AUTH_ERR_MSG||401===n.status)){let n=this.painter.context.gl;r.storeAuthState(n,!1),this._logoControl instanceof nV&&this._logoControl._updateLogo(),n&&n.clear(n.DEPTH_BUFFER_BIT|n.COLOR_BUFFER_BIT|n.STENCIL_BUFFER_BIT),this._silenceAuthErrors||this.fire(new r.ErrorEvent(Error("A valid Mapbox access token is required to use Mapbox GL JS. To create an account or a new access token, visit https://account.mapbox.com/")))}}),r.postMapLoadEvent(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,()=>{})}_updateTerrain(){let r=this._isDragging();this.painter.updateTerrain(this.style,r)}_calculateSpeedIndex(){let r=this.painter.canvasCopy(),n=this.painter.getCanvasCopiesAndTimestamps();n.timeStamps.push(performance.now());let i=this.painter.context.gl,o=i.createFramebuffer();function a(r){i.framebufferTexture2D(i.FRAMEBUFFER,i.COLOR_ATTACHMENT0,i.TEXTURE_2D,r,0);let n=new Uint8Array(i.drawingBufferWidth*i.drawingBufferHeight*4);return i.readPixels(0,0,i.drawingBufferWidth,i.drawingBufferHeight,i.RGBA,i.UNSIGNED_BYTE,n),n}return i.bindFramebuffer(i.FRAMEBUFFER,o),this._canvasPixelComparison(a(r),n.canvasCopies.map(a),n.timeStamps)}_canvasPixelComparison(r,n,i){let o=i[1]-i[0],a=r.length/4;for(let s=0;s<n.length;s++){let l=n[s],c=0;for(let n=0;n<l.length;n+=4)l[n]===r[n]&&l[n+1]===r[n+1]&&l[n+2]===r[n+2]&&l[n+3]===r[n+3]&&(c+=1);o+=(i[s+2]-i[s+1])*(1-c/a)}return o}remove(){for(let r of(this._hash&&this._hash.remove(),this._controls))r.onRemove(this);this._controls=[],this._frame&&(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this._domRenderTaskQueue.clear(),this.style&&this.style.destroy(),this.painter.destroy(),this.handlers&&this.handlers.destroy(),this.handlers=void 0,this.setStyle(null),void 0!==r.window&&(r.window.removeEventListener("resize",this._onWindowResize,!1),r.window.removeEventListener("orientationchange",this._onWindowResize,!1),r.window.removeEventListener("webkitfullscreenchange",this._onWindowResize,!1),r.window.removeEventListener("online",this._onWindowOnline,!1),r.window.removeEventListener("visibilitychange",this._onVisibilityChange,!1));let n=this.painter.context.gl.getExtension("WEBGL_lose_context");n&&n.loseContext(),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvasContainer.remove(),this._controlContainer.remove(),this._missingCSSCanary.remove(),this._canvas=void 0,this._canvasContainer=void 0,this._controlContainer=void 0,this._missingCSSCanary=void 0,this._container.classList.remove("mapboxgl-map"),this._container.removeEventListener("scroll",this._onMapScroll,!1),r.removeAuthState(this.painter.context.gl),this._removed=!0,this.fire(new r.Event("remove"))}triggerRepaint(){this._triggerFrame(!0)}_triggerFrame(n){this._renderNextFrame=this._renderNextFrame||n,this.style&&!this._frame&&(this._frame=r.exported.frame(r=>{let n=!!this._renderNextFrame;this._frame=null,this._renderNextFrame=null,n&&this._render(r)}))}_preloadTiles(n){let i=this.style?Object.values(this.style._sourceCaches):[];return r.asyncAll(i,(r,i)=>r._preloadTiles(n,i),()=>{this.triggerRepaint()}),this}_onWindowOnline(){this._update()}_onWindowResize(r){this._trackResize&&this.resize({originalEvent:r})._update()}_onVisibilityChange(){"hidden"===r.window.document.visibilityState&&this._visibilityHidden++}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(r){this._showTileBoundaries!==r&&(this._showTileBoundaries=r,this._update())}get showTerrainWireframe(){return!!this._showTerrainWireframe}set showTerrainWireframe(r){this._showTerrainWireframe!==r&&(this._showTerrainWireframe=r,this._update())}get speedIndexTiming(){return!!this._speedIndexTiming}set speedIndexTiming(r){this._speedIndexTiming!==r&&(this._speedIndexTiming=r,this._update())}get showPadding(){return!!this._showPadding}set showPadding(r){this._showPadding!==r&&(this._showPadding=r,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(r){this._showCollisionBoxes!==r&&(this._showCollisionBoxes=r,r?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(r){this._showOverdrawInspector!==r&&(this._showOverdrawInspector=r,this._update())}get repaint(){return!!this._repaint}set repaint(r){this._repaint!==r&&(this._repaint=r,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(r){this._vertices=r,this._update()}get showTileAABBs(){return!!this._showTileAABBs}set showTileAABBs(r){this._showTileAABBs!==r&&(this._showTileAABBs=r,r&&this._update())}_setCacheLimits(n,i){r.setCacheLimits(n,i)}get version(){return r.version}},NavigationControl:class{constructor(n){this.options=r.extend({},nQ,n),this._container=c("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.addEventListener("contextmenu",r=>r.preventDefault()),this.options.showZoom&&(r.bindAll(["_setButtonTitle","_updateZoomButtons"],this),this._zoomInButton=this._createButton("mapboxgl-ctrl-zoom-in",r=>{this._map&&this._map.zoomIn({},{originalEvent:r})}),c("span","mapboxgl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("mapboxgl-ctrl-zoom-out",r=>{this._map&&this._map.zoomOut({},{originalEvent:r})}),c("span","mapboxgl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(r.bindAll(["_rotateCompassArrow"],this),this._compass=this._createButton("mapboxgl-ctrl-compass",r=>{let n=this._map;n&&(this.options.visualizePitch?n.resetNorthPitch({},{originalEvent:r}):n.resetNorth({},{originalEvent:r}))}),this._compassIcon=c("span","mapboxgl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}_updateZoomButtons(){let r=this._map;if(!r)return;let n=r.getZoom(),i=n===r.getMaxZoom(),o=n===r.getMinZoom();this._zoomInButton.disabled=i,this._zoomOutButton.disabled=o,this._zoomInButton.setAttribute("aria-disabled",i.toString()),this._zoomOutButton.setAttribute("aria-disabled",o.toString())}_rotateCompassArrow(){let r=this._map;if(!r)return;let n=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(r.transform.pitch*(Math.PI/180)
229),.5)}) rotateX(${r.transform.pitch}deg) rotateZ(${r.transform.angle*(180/Math.PI)}deg)`:`rotate(${r.transform.angle*(180/Math.PI)}deg)`;r._requestDomTask(()=>{this._compassIcon&&(this._compassIcon.style.transform=n)})}onAdd(r){return this._map=r,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),r.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&r.on("pitch",this._rotateCompassArrow),r.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new n0(r,this._compass,this.options.visualizePitch)),this._container}onRemove(){let r=this._map;r&&(this._container.remove(),this.options.showZoom&&r.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&r.off("pitch",this._rotateCompassArrow),r.off("rotate",this._rotateCompassArrow),this._handler&&this._handler.off(),this._handler=void 0),this._map=void 0)}_createButton(r,n){let i=c("button",r,this._container);return i.type="button",i.addEventListener("click",n),i}_setButtonTitle(r,n){if(!this._map)return;let i=this._map._getUIString(`NavigationControl.${n}`);r.setAttribute("aria-label",i),r.firstElementChild&&r.firstElementChild.setAttribute("title",i)}},GeolocateControl:class extends r.Evented{constructor(n){super(),this.options=r.extend({geolocation:r.window.navigator.geolocation},n1,n),r.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker","_updateMarkerRotation","_onDeviceOrientation"],this),this._updateMarkerRotationThrottled=r0(this._updateMarkerRotation,20),this._numberOfWatches=0}onAdd(r){return this._map=r,this._container=c("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkGeolocationSupport(this._setupUI),this._container}onRemove(){void 0!==this._geolocationWatchID&&(this.options.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),this._container.remove(),this._map.off("zoom",this._onZoom),this._map=void 0,this._numberOfWatches=0,this._noTimeout=!1}_checkGeolocationSupport(n){let i=(r=!!this.options.geolocation)=>{this._supportsGeolocation=r,n(r)};void 0!==this._supportsGeolocation?n(this._supportsGeolocation):void 0!==r.window.navigator.permissions?r.window.navigator.permissions.query({name:"geolocation"}).then(r=>i("denied"!==r.state)).catch(()=>i()):i()}_isOutOfMapMaxBounds(r){let n=this._map.getMaxBounds(),i=r.coords;return!!n&&(i.longitude<n.getWest()||i.longitude>n.getEast()||i.latitude<n.getSouth()||i.latitude>n.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}}_onSuccess(n){if(this._map){if(this._isOutOfMapMaxBounds(n))return this._setErrorState(),this.fire(new r.Event("outofmaxbounds",n)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=n,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&"OFF"!==this._watchState&&this._updateMarker(n),this.options.trackUserLocation&&"ACTIVE_LOCK"!==this._watchState||this._updateCamera(n),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new r.Event("geolocate",n)),this._finish()}}_updateCamera(n){let i=new r.LngLat(n.coords.longitude,n.coords.latitude),o=n.coords.accuracy,a=this._map.getBearing(),s=r.extend({bearing:a},this.options.fitBoundsOptions);this._map.fitBounds(i.toBounds(o),s,{geolocateSource:!0})}_updateMarker(n){if(n){let i=new r.LngLat(n.coords.longitude,n.coords.latitude);this._accuracyCircleMarker.setLngLat(i).addTo(this._map),this._userLocationDotMarker.setLngLat(i).addTo(this._map),this._accuracy=n.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()}_updateCircleRadius(){let n=this._map.transform,i=r.mercatorZfromAltitude(1,n._center.lat)*n.worldSize,o=Math.ceil(2*this._accuracy*i);this._circleElement.style.width=`${o}px`,this._circleElement.style.height=`${o}px`}_onZoom(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}_updateMarkerRotation(){this._userLocationDotMarker&&"number"==typeof this._heading?(this._userLocationDotMarker.setRotation(this._heading),this._dotElement.classList.add("mapboxgl-user-location-show-heading")):(this._dotElement.classList.remove("mapboxgl-user-location-show-heading"),this._userLocationDotMarker.setRotation(0))}_onError(n){if(this._map){if(this.options.trackUserLocation){if(1===n.code){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;let r=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.setAttribute("aria-label",r),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",r),void 0!==this._geolocationWatchID&&this._clearWatch()}else{if(3===n.code&&this._noTimeout)return;this._setErrorState()}}"OFF"!==this._watchState&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new r.Event("error",n)),this._finish()}}_finish(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0}_setupUI(n){if(void 0!==this._map){if(this._container.addEventListener("contextmenu",r=>r.preventDefault()),this._geolocateButton=c("button","mapboxgl-ctrl-geolocate",this._container),c("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",!1===n){r.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");let n=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.setAttribute("aria-label",n),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",n)}else{let r=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.setAttribute("aria-label",r),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",r)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","fal
229se"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=c("div","mapboxgl-user-location"),this._dotElement.appendChild(c("div","mapboxgl-user-location-dot")),this._dotElement.appendChild(c("div","mapboxgl-user-location-heading")),this._userLocationDotMarker=new nW({element:this._dotElement,rotationAlignment:"map",pitchAlignment:"map"}),this._circleElement=c("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new nW({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",n=>{n.geolocateSource||"ACTIVE_LOCK"!==this._watchState||n.originalEvent&&"resize"===n.originalEvent.type||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this.fire(new r.Event("trackuserlocationend")))})}}_onDeviceOrientation(r){this._userLocationDotMarker&&(r.webkitCompassHeading?this._heading=r.webkitCompassHeading:!0===r.absolute&&(this._heading=-1*r.alpha),this._updateMarkerRotationThrottled())}trigger(){if(!this._setup)return r.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new r.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":this._numberOfWatches--,this._noTimeout=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new r.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new r.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if("OFF"===this._watchState&&void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){let r;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),this._numberOfWatches++,this._numberOfWatches>1?(r={maximumAge:6e5,timeout:0},this._noTimeout=!0):(r=this.options.positionOptions,this._noTimeout=!1),this._geolocationWatchID=this.options.geolocation.watchPosition(this._onSuccess,this._onError,r),this.options.showUserHeading&&this._addDeviceOrientationListener()}}else this.options.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_addDeviceOrientationListener(){let n=()=>{r.window.addEventListener("ondeviceorientationabsolute"in r.window?"deviceorientationabsolute":"deviceorientation",this._onDeviceOrientation)};void 0!==r.window.DeviceMotionEvent&&"function"==typeof r.window.DeviceMotionEvent.requestPermission?DeviceOrientationEvent.requestPermission().then(r=>{"granted"===r&&n()}).catch(console.error):n()}_clearWatch(){this.options.geolocation.clearWatch(this._geolocationWatchID),r.window.removeEventListener("deviceorientation",this._onDeviceOrientation),r.window.removeEventListener("deviceorientationabsolute",this._onDeviceOrientation),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","fal
229se"),this.options.showUserLocation&&this._updateMarker(null)}},AttributionControl:nU,ScaleControl:class{constructor(n){this.options=r.extend({},n2,n),this._isNumberFormatSupported=function(){try{return new Intl.NumberFormat("en",{style:"unit",unitDisplay:"short",unit:"meter"}),!0}catch(r){return!1}}(),r.bindAll(["_update","_setScale","setUnit"],this)}getDefaultPosition(){return"bottom-left"}_update(){let r=this.options.maxWidth||100,n=this._map,i=n._containerHeight/2,o=n._containerWidth/2-r/2,a=n.unproject([o,i]),s=n.unproject([o+r,i]),l=a.distanceTo(s);if("imperial"===this.options.unit){let n=3.2808*l;n>5280?this._setScale(r,n/5280,"mile"):this._setScale(r,n,"foot")}else"nautical"===this.options.unit?this._setScale(r,l/1852,"nautical-mile"):l>=1e3?this._setScale(r,l/1e3,"kilometer"):this._setScale(r,l,"meter")}_setScale(r,n,i){this._map._requestDomTask(()=>{let o=function(r){let n=Math.pow(10,`${Math.floor(r)}`.length-1),i=r/n;return n*(i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:i>=1?1:function(r){let n=Math.pow(10,Math.ceil(-Math.log(r)/Math.LN10));return Math.round(r*n)/n}(i))}(n);this._container.innerHTML=this._isNumberFormatSupported&&"nautical-mile"!==i?new Intl.NumberFormat(this._language,{style:"unit",unitDisplay:"short",unit:i}).format(o):`${o} ${n3[i]}`,this._container.style.width=r*(o/n)+"px"})}onAdd(r){return this._map=r,this._language=r.getLanguage(),this._container=c("div","mapboxgl-ctrl mapboxgl-ctrl-scale",r.getContainer()),this._container.dir="auto",this._map.on("move",this._update),this._update(),this._container}onRemove(){this._container.remove(),this._map.off("move",this._update),this._map=void 0}_setLanguage(r){this._language=r,this._update()}setUnit(r){this.options.unit=r,this._update()}},FullscreenControl:class{constructor(n){this._fullscreen=!1,n&&n.container&&(n.container instanceof r.window.HTMLElement?this._container=n.container:r.warnOnce("Full screen control 'container' must be a DOM element.")),r.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in r.window.document?this._fullscreenchange="fullscreenchange":"onwebkitfullscreenchange"in r.window.document&&(this._fullscreenchange="webkitfullscreenchange")}onAdd(n){return this._map=n,this._container||(this._container=this._map.getContainer()),this._controlContainer=c("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",r.warnOnce("This device does not support fullscreen mode.")),this._controlContainer}onRemove(){this._controlContainer.remove(),this._map=null,r.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)}_checkFullscreenSupport(){return!(!r.window.document.fullscreenEnabled&&!r.window.document.webkitFullscreenEnabled)}_setupUI(){let n=this._fullscreenButton=c("button","mapboxgl-ctrl-fullscreen",this._controlContainer);c("span","mapboxgl-ctrl-icon",n).setAttribute("aria-hidden","true"),n.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),r.window.document.addEventListener(this._fullscreenchange,this._changeIcon)}_updateTitle(){let r=this._getTitle();this._fullscreenButton.setAttribute("aria-label",r),this._fullscreenButton.firstElementChild&&this._fullscreenButton.firstElementChild.setAttribute("title",r)}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_changeIcon(){(r.window.document.fullscreenElement||r.window.document.webkitFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())}_onClickFullscreen(){this._isFullscreen()?r.window.document.exitFullscreen?r.window.document.exitFullscreen():r.window.document.webkitCancelFullScreen&&r.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()}},Popup:class extends r.Evented{constructor(n){super(),this.options=r.extend(Object.create(nH),n),r.bindAll(["_update","_onClose","remove","_onMouseEvent"],this),this._classList=new Set(n&&n.className?n.className.trim().split(/\s+/):[])}addTo(n){return this._map&&this.remove(),this._map=n,this.options.closeOnClick&&n.on("preclick",this._onClose),this.options.closeOnMove&&n.on("move",this._onClose),n.on("remove",this.remove),this._update(),n._addPopup(this),this._focusFirstElement(),this._trackPointer?(n.on("mousemove",this._onMouseEvent),n.on("mouseup",this._onMouseEvent),n._canvasContainer.classList.add("mapboxgl-track-pointer")):n.on("move",this._update),this.fire(new r.Event("open")),this}isOpen(){return!!this._map}remove(){this._content&&this._content.remove(),this._container&&(this._container.remove(),this._container=void 0);let n=this._map;return n&&(n.off("move",this._update),n.off("move",this._onClose),n.off("preclick",this._onClose),n.off("click",this._onClose),n.off("remove",this.remove),n.off("mousemove",this._onMouseEvent),n.off("mouseup",this._onMouseEvent),n.off("drag",this._onMouseEvent),n._canvasContainer&&n._canvasContainer.classList.remove("mapboxgl-track-pointer"),n._removePopup(this),this._map=void 0),this.fire(new r.Event("close")),this}getLngLat(){return this._lngLat}setLngLat(n){this._lngLat=r.LngLat.convert(n),this._pos=null,this._trackPointer=!1,this._update();let i=this._map;return i&&(i.on("move",this._update),i.off("mousemove",this._onMouseEvent),i._canvasContainer.classList.remove("mapboxgl-track-pointer")),this}trackPointer(){this._trackPointer=!0,this._pos=null,this._update();let r=this._map;return r&&(r.off("move",this._update),r.on("mousemove",this._onMouseEvent),r.on("drag",this._onMouseEvent),r._canvasContainer.classList.add("mapboxgl-track-pointer")),this}getElement(){return this._container}setText(n){return this.setDOMContent(r.window.document.createTextNode(n))}setHTML(n){let i;let o=r.window.document.createDocumentFragment(),a=r.window.document.createElement("body");for(a.innerHTML=n;i=a.firstChild;)o.appendChild(i);return this.setDOMContent(o)}getMaxWidth(){return this._container&&this._container.style.maxWidth}setMaxWidth(r){return this.options.maxWidth=r,this._update(),this}setDOMContent(r){let n=this._content;if(n)for(;n.hasChildNodes();)n.firstChild&&n.removeChild(n.firstChild);else n=this._content=c("div","mapboxgl-popup-content",this._container||void 0);if(n.appendChild(r),this.options.closeButton){let r=this._closeButton=c("button","mapboxgl-popup-close-button",n);r.type="button",r.setAttribute("aria-label","Close popup"),r.setAttribute("aria-hidden","true"),r.innerHTML="×",r.addEventListener("click",this._onClose)}return this._update(),this._focusFirstElement(),this}addClassName(r){return this._classList.add(r),this._updateClassList(),this}removeClassName(r){return this._classList.delete(r),this._updateClassList(),this}setOffset(r){return this.options.offset=r,this._update(),this}toggleClassName(r){let n;return this._classList.delete(r)?n=!1:(this._classList.add(r),n=!0),this._updateClassList(),n}_onMouseEvent(r){this._update(r.point)}_getAnchor(r){if(this.options.anchor)return this.options.anchor;let n=this._map,i=this._container,o=this._pos;if(!n||!i||!o)return"bottom";let a=i.offsetWidth,s=i.offsetHeight,l=o.x<a/2,c=o.x>n.transform.width-a/2;if(o.y+r<s)return l?"top-left":c?"top-right":"top";if(o.y>n.transform.height-s){if(l)return"bottom-left";if(c)return"bottom-right"}return l?"left":c?"right":"bottom"}_updateClassList(){let r=this._container;if(!r)return;let n=[...this._classList];n.push("mapboxgl-popup"),this._anchor&&n.push(`mapboxgl-popup-anchor-${this._anchor}`),this._trackPointer&&n.push("mapboxgl-popup-track-pointer"),r.className=n.join(" ")}_update(n){let i=this._map,o=this._content;if(!i||!this._lngLat&&!this._trackPointer||!o)return;let a=this._container;if(a||(a=this._container=c("div","mapboxgl-popup",i.getContainer()),this._tip=c("div","mapboxgl-popup-tip",a),a.appendChild(o)),this.options.maxWidth&&a.style.maxWidth!==this.options.maxWidth&&(a.style.maxWidth=this.options.maxWidth),i.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=n$(this._lngLat,this._pos,i.transform)),!this._trackPointer||n){let r=this._pos=this._trackPointer&&n?n:i.project(this._lngLat),o=nX(this.options.offset),a=this._anchor=this._getAnchor(o.y),s=nX(this.options.offset,a),l=r.add(s).round();i._requestDomTask(()=>{this._container&&a&&(this._container.style.transform=`${nG[a]} translate(${l.x}px,${l.y}px)`)})}if(!this._marker&&i._showingGlobe()){let n=r.isLngLatBehindGlobe(i.transform,this._lngLat)?0:1;this._setOpacity(n)}this._updateClassList()}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;
229let r=this._container.querySelector("a[href], [tabindex]:not([tabindex='-1']), [contenteditable]:not([contenteditable='false']), button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled])");r&&r.focus()}_onClose(){this.remove()}_setOpacity(r){this._container&&(this._container.style.opacity=`${r}`),this._content&&(this._content.style.pointerEvents=r?"auto":"none")}},Marker:nW,Style:tT,LngLat:r.LngLat,LngLatBounds:r.LngLatBounds,Point:r.Point,MercatorCoordinate:r.MercatorCoordinate,FreeCameraOptions:r$,Evented:r.Evented,config:r.config,prewarm:function(){eD().acquire(eZ)},clearPrewarmedResources:function(){let r=i;r&&(r.isPreloaded()&&1===r.numActive()?(r.release(eZ),i=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return r.config.ACCESS_TOKEN},set accessToken(t){r.config.ACCESS_TOKEN=t},get baseApiUrl(){return r.config.API_URL},set baseApiUrl(t){r.config.API_URL=t},get workerCount(){return eR.workerCount},set workerCount(e){eR.workerCount=e},get maxParallelImageRequests(){return r.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(t){r.config.MAX_PARALLEL_IMAGE_REQUESTS=t},clearStorage(n){r.clearTileCache(n)},workerUrl:"",workerClass:null,setNow:r.exported.setNow,restoreNow:r.exported.restoreNow};return n4}),i}()},7544:function(r,n,i){r.exports=i(65035)},11752:function(r,n,i){r.exports=i(7905)},75492:function(r,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return i(61202)}])},66225:function(r,n,i){"use strict";i.d(n,{Z:function(){return p}});var o=i(85893),a=i(67294),s=i(43169),l=i(71743),c=i(23538),u=i(75439),d=i(18705),h=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&0>n.indexOf(o)&&(i[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)0>n.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(i[o[a]]=r[o[a]]);return i};function p(r){var{alt:n,height:i,loading:p="lazy",objectFit:f="cover",src:m="",style:g,width:v}=r,y=h(r,["alt","height","loading","objectFit","src","style","width"]);let{site:{domain:b}}=(0,s.$Y)(),x=(0,l.Z)(m),_=a.useMemo(()=>(0,c.Z)(m)&&x?(0,u.Z)(b,new URL(m)):null,[x,m,b]);return m?(0,o.jsx)(d.Z,Object.assign({alt:n,loading:p,src:(null==_?void 0:_.toString())||m,style:Object.assign({objectFit:f,objectPosition:"center",position:"absolute",inset:0,width:v||"100%",height:"100%",maxWidth:"100%"},g)},y)):(0,o.jsx)(o.Fragment,{})}},76386:function(r,n,i){"use strict";var o=i(85893),a=i(15861),s=i(47018),l=i(59471);let c=r=>{let{author:{name:n,uri:i},color:c="primary.main",sx:u,variant:d}=r,h=(0,o.jsx)(a.Z,Object.assign({component:"a","data-og-area":s.Z.author.link,sx:Object.assign({color:c,textTransform:"uppercase",textDecoration:"none",":hover":{textDecoration:"none"}},u),variant:d},{children:n}));return i?(0,o.jsx)(l.Z,Object.assign({href:i,passHref:!0},{children:h})):h};n.Z=c},75780:function(r,n,i){"use strict";var o=i(85893),a=i(15861),s=i(43169),l=i(59471);let c=r=>{let{link:n,linkText:i,sx:c={}}=r,u=(0,s.y$)();return(0,o.jsx)(l.Z,Object.assign({href:n,passHref:!0},{children:(0,o.jsx)(a.Z,Object.assign({component:"a",sx:Object.assign({color:"common.black",textDecoration:"none",borderBottom:"2px solid",fontSize:"1.25rem",pb:.4,borderBottomColor:null==u?void 0:u.postCategoryBorder},c)},{children:i}))}))};n.Z=c},93773:function(r,n,i){"use strict";var o=i(85893),a=i(87357),s=i(43169),l=i(60328),c=i(21596),u=i(59471);let d=r=>{let{categoryName:n,categoryUri:i,customHeaderBackground:d,iconUrl:h}=r,p=(0,s.y$)();return(0,o.jsxs)(a.Z,Object.assign({sx:{background:d||(null==p?void 0:p.sectionBackgroundColor),display:"flex",alignItems:"center",paddingX:2,paddingY:1.5,minHeight:"66px"}},{children:[h&&(0,o.jsx)("img",{alt:"",height:42,src:(0,l.Z)(h),srcSet:(0,c.Z)(h,42),width:42}),(0,o.jsx)(u.Z,Object.assign({href:i,passHref:!0},{children:(0,o.jsx)(a.Z,Object.assign({component:"a",sx:{fontSize:"32px",color:null==p?void 0:p.sectionTitleColor,textTransform:"uppercase",fontWeight:700,lineHeight:1,wordBreak:"keep-all",marginLeft:1.5,textDecoration:"none"}},{children:n}))}))]}))};n.Z=d},59471:function(r,n,i){"use strict";var o=i(85893),a=i(41664),s=i.n(a),l=i(67294),c=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&0>n.indexOf(o)&&(i[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)0>n.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(i[o[a]]=r[o[a]]);return i};let u=(0,l.forwardRef)((r,n)=>{var{as:i,href:a,legacyBehavior:l}=r,u=c(r,["as","href","legacyBehavior"]);return(0,o.jsx)(s(),Object.assign({ref:n,as:null!=i?i:"string"==typeof a&&a.startsWith("/")?a:void 0,href:a,legacyBehavior:null==l||l},u,{prefetch:!1}))});n.Z=u},80364:function(r,n,i){"use strict";var o=i(85893),a=i(53359),s=i(26447),l=i(15861),c=i(83321),u=i(59471),d=i(11288);let h=r=>{let{component:n="div",title:i,message:h,icon:p=a.ik,children:f,minHeight:m=200,action:g}=r;return(0,o.jsxs)(s.Z,Object.assign({alignItems:"center",component:n,"data-test-element":"empty-state",justifyContent:"center",spacing:1,sx:{minHeight:m,textAlign:"center"}},{children:[p&&(0,o.jsx)(d.Z,{icon:p,sx:{fontSize:40}}),(0,o.jsx)(l.Z,Object.assign({component:"div",variant:"h4"},{children:i})),h&&(0,o.jsx)(l.Z,Object.assign({component:"p",variant:"body1"},{children:h})),g&&(0,o.jsx)(c.Z,Object.assign({component:g.href?u.Z:"button",href:g.href,onClick:g.onClick,startIcon:g.startIcon?(0,o.jsx)(d.Z,{icon:g.startIcon}):null,variant:"contained"},{children:g.text})),f]}))};n.Z=h},18705:function(r,n,i){"use strict";i.d(n,{Z:function(){return h}});var o=i(85893),a=i(60328),s=i(9008),l=i.n(s);let c=r=>{let{sizes:n,srcSet:i}=r;return i?(0,o.jsx)(l(),{children:(0,o.jsx)("link",Object.assign({rel:"preload"},{fetchpriority:"high"},{as:"image",imageSrcSet:i,imageSizes:n}))}):null};var u=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&0>n.indexOf(o)&&(i[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)0>n.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(i[o[a]]=r[o[a]]);return i};let d=r=>{var n,i,{alt:s,fetchPriority:l,loading:d="lazy",src:h="",style:p}=r,f=u(r,["alt","fetchPriority","loading","src","style"]);let m=null!==(n=null==f?void 0:f.srcSet)&&void 0!==n?n:"\n ".concat((0,a.Z)(h,{width:"320"})," 320w,\n ").concat((0,a.Z)(h,{width:"640"})," 640w,\n ").concat((0,a.Z)(h,{width:"750"})," 750w,\n ").concat((0,a.Z)(h,{width:"828"})," 828w,\n ").concat((0,a.Z)(h,{width:"1080"})," 1080w,\n ").concat((0,a.Z)(h,{width:"1200"})," 1200w,\n ").concat((0,a.Z)(h,{width:"1920"})," 1920w,\n ").concat((0,a.Z)(h,{width:"2018"})," 2048w,\n ").concat((0,a.Z)(h,{width:"3840"})," 3840w\n "),g=null!==(i=null==f?void 0:f.sizes)&&void 0!==i?i:"100vw";return(0,o.jsxs)(o.Fragment,{children:["high"===("eager"===d?"high":l)&&(0,o.jsx)(c,{srcSet:m,sizes:g}),(0,o.jsx)("img",Object.assign({alt:s||"",loading:d,src:(0,a.Z)(h),style:Object.assign({maxWidth:"100%",width:"100%"},p)},f,{srcSet:m,sizes:g}))]})};var h=d},22494:function(r,n,i){"use strict";i.d(n,{v:function(){return m}});var o=i(85893),a=i(77226),s=i(67294),l=i(43169),c=i(71743),u=i(60328),d=i(21596),h=i(23538),p=i(75439),f=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&0>n.indexOf(o)&&(i[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)0>n.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(i[o[a]]=r[o[a]]);return i};let m={412:380,600:568,900:868,1200:1168,3840:1440},g=r=>{let{image:n,sizes:i}=r,{site:{domain:m}}=(0,l.$Y)(),{alt:g,loading:v,src:y,style:b}=n,x=f(n,["alt","loading","src","style"]),_=(0,c.Z)(y||""),w=s.useMemo(()=>(0,h.Z)(y)&&_?y&&(0,p.Z)(m,new URL(y)):null,[_,y,m]);if(!y||!w)return(0,o.jsx)(o.Fragment,{});let S=w.toString();return(0,o.jsxs)("picture",{children:[(0,a.Z)(i)?Object.entries(i).map(r=>{let[n,i]=r,a=(0,d.Z)(y,i);return(0,o.jsx)("source",{media:"(max-width: ".concat(n,"px)"),srcSet:a},n)}):(0,o.jsx)("source",{srcSet:(0,d.Z)(y,i)}),(0,o.jsx)("img",Object.assign({alt:g||"",loading:v,src:(0,u.Z)(S),style:b},x))]})};n.Z=g},11288:function(r,n,i){"use strict";var o=i(85893),a=i(53219),s=i(67294),l=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&0>n.indexOf(o)&&(i[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)0>n.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(i[o[a]]=r[o[a]]);return i};let c=s.forwardRef((r,n)=>{let{classes:i,color:s,disabled:c,fontSize:u,htmlColor:d,icon:h}=r,p=l(r,["classes","color","disabled","fontSize","htmlColor","icon"]),{icon:[f,m,,,g]}=h;return(0,o.jsx)(a.Z,Object.assign({},p,{ref:n,classes:i,color:c?"disabled":s,fontSize:u,htmlColor:d,viewBox:"0 0 ".concat(f," ").concat(m)},{children:"string"==typeof g?(0,o.jsx)("path",{d:g}):g.map((r,n)=>(0,o.jsx)("path",{d:r,style:{opacity:0===n?.4:1}}
229,n))}))});n.Z=c},22770:function(r,n,i){"use strict";i.d(n,{Z:function(){return y}});var o=i(85893),a=i(11752),s=i.n(a),l=i(89755),c=i.n(l),u=i(67294),d=i(43169),h=i(71743),p=i(23538),f=i(75439),m=i(18705),g=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&0>n.indexOf(o)&&(i[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)0>n.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(i[o[a]]=r[o[a]]);return i};let{publicRuntimeConfig:v}=s()();function y(r){var n,{alt:i,forceHTMLImage:a=!1,height:s,layout:l="fill",objectFit:y="cover",objectPosition:b="center",src:x,style:_,width:w}=r,S=g(r,["alt","forceHTMLImage","height","layout","objectFit","objectPosition","src","style","width"]);let{site:{domain:T}}=(0,d.$Y)(),E=(0,h.Z)(x),k=u.useMemo(()=>(0,p.Z)(x)&&E?(0,f.Z)(T,new URL(x)):null,[E,x,T]);if(!x)return(0,o.jsx)(o.Fragment,{});let C=!E||(null==k?void 0:k.host)&&(null===(n=v.imageDomains)||void 0===n?void 0:n.includes(k.host));return(0,o.jsx)(o.Fragment,{children:C&&!a&&w&&s?(0,o.jsx)(c(),Object.assign({alt:i,height:s,layout:w&&s?void 0:l,objectFit:y,objectPosition:b,src:(null==k?void 0:k.toString())||x,width:w},S)):(0,o.jsx)(m.Z,Object.assign({alt:i,loading:"lazy",src:(null==k?void 0:k.toString())||x,style:Object.assign({objectFit:y,objectPosition:b,position:"absolute",inset:0,width:"100%",height:"100%",maxWidth:"100%"},_)},S))})}},21283:function(r,n,i){"use strict";i.d(n,{Z:function(){return c}});var o=i(85893),a=i(43169),s=i(18705),l=i(20275);function c(r){let{id:n,width:i,loading:c,style:u={}}=r,d=(0,a.ki)(n);if(!d)return(0,o.jsx)(o.Fragment,{});let{altText:h,mediaDetails:p,sourceUrl:f}=d,m=p&&p.height&&p.width?p.height/p.width:void 0,g=i&&m?"".concat(Math.round(i*m),"px"):void 0;return f?(0,o.jsx)(l.Z,{children:(0,o.jsx)(s.Z,{alt:null!=h?h:"",height:g,loading:c,src:f,style:Object.assign({he
229ight:g,objectFit:"contain",objectPosition:"center top",width:i},u),width:i},n)}):(0,o.jsx)(o.Fragment,{})}},83634:function(r,n,i){"use strict";var o=i(85893),a=i(2734),s=i(18979);let l=r=>{let{height:n,width:i,ratio:l=16/9}=r,c=(0,a.Z)();return(0,o.jsx)(s.Z,{animation:!1,height:n||i||c.breakpoints.values.xl*(1/l),variant:"rectangular",width:i||(n?n*l:"100%")})};n.Z=l},20275:function(r,n,i){"use strict";i.d(n,{Z:function(){return h}});var o=i(85893),a=i(87357),s=i(67294),l=i(72679),c=i(60328);let u=r=>{let{alt:n,src:i,style:a}=r;return(0,o.jsx)("noscript",{children:(0,o.jsx)("img",{alt:n||"",src:(0,c.Z)(i),style:a})})},d=r=>{var n,i,o;let a,s,l;let c=!1,{props:u,type:d}=r;if(d){let{name:r}=d;"FastlyOptimizedImage"===r&&(c=!0,a=null==u?void 0:u.alt,s=null==u?void 0:u.src,l=null==u?void 0:u.style),"AbsolutePositionedFillerImage"===r&&(c=!0,a=null==u?void 0:u.alt,s=null==u?void 0:u.src,l={objectFit:"cover",objectPosition:"center",position:"absolute",inset:0,width:(null==u?void 0:u.width)||"100%",height:"100%",maxWidth:"100%"})}if(r&&(null===(n=Object.values(r)[0].type)||void 0===n?void 0:n.name)==="FastlyOptimizedPicture"){c=!0;let n=null===(o=null===(i=Object.values(r)[0])||void 0===i?void 0:i.props)||void 0===o?void 0:o.image;a=null==n?void 0:n.alt,s=null==n?void 0:n.src,l=null==n?void 0:n.style}return{alt:a||null,isImage:c,src:s||"",style:l||null}};function h(r){let{children:n}=r,[i,c]=(0,s.useState)(!1),h=()=>c(!0),{alt:p,isImage:f,src:m,style:g}=d(n);return(0,o.jsxs)(o.Fragment,{children:[f&&(0,o.jsx)(u,{alt:p||null,src:m||"",style:g||null}),(0,o.jsx)(a.Z,Object.assign({sx:{transition:"all 0.7s ease-in-out 0.075s",opacity:i?1:0}},{children:(0,o.jsx)(l.LazyLoadComponent,Object.assign({afterLoad:h,threshold:400},{children:n}))}))]})}},73746:function(r,n,i){"use strict";var o=i(16829),a=i(26447);(0,o.Z)(a.Z)(r=>{let{lineclamp:n,selector:i="a"}=r;return n?"\n ".concat(i," {\n display: -webkit-box;\n overflow: hidden;\n text-overflow: ellipsis;\n -webkit-line-clamp: ").concat(n,";\n -webkit-box-orient: vertical;\n }"):""})},95810:function(r,n,i){"use strict";var o=i(85893),a=i(83321),s=i(61247),l=i(59471),c=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&0>n.indexOf(o)&&(i[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)0>n.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(i[o[a]]=r[o[a]]);return i};let u={color:"primary",variant:"contained"},d=r=>{var n,{as:i,className:d,href:h,rel:p,target:f,text:m}=r,g=c(r,["as","className","href","rel","target","text"]);let v=Object.assign(Object.assign({},u),g.buttonProps||{});return(0,o.jsx)(l.Z,Object.assign({as:i,href:h},{children:(0,o.jsx)(a.Z,Object.assign({},g,{className:d,color:v.color,component:"a",href:(0,s.m)(h),rel:p,sx:null===(n=g.buttonProps)||void 0===n?void 0:n.sx,target:f,variant:v.variant},{children:m}))}))};n.Z=d},52010:function(r,n,i){"use strict";var o=i(85893),a=i(97212),s=i(55113),l=i(78462),c=i(59471);let u=r=>{let{bordered:n,links:i,maxHeight:u=450,sx:d}=r,h=null==i?void 0:i.map(r=>(0,o.jsx)(c.Z,Object.assign({href:r.href,passHref:!0},{children:(0,o.jsx)(a.ZP,Object.assign({component:"a",button:!0},{children:r.title}))}),r.href));return(0,o.jsx)(s.Z,Object.assign({elevation:3,sx:Object.assign({margin:"15px 0 20px"},d)},{children:(0,o.jsx)(l.Z,Object.assign({sx:Object.assign(Object.assign({},n?{borderWidth:"2px 0 2px 0",borderStyle:"solid",borderColor:"primary.main"}:{}),{maxHeight:u,overflowY:"scroll"})},{children:h}))}))};n.Z=u},95155:function(r,n,i){"use strict";var o=i(85893),a=i(87357),s=i(59471);let l=r=>{let{height:n,href:i="/",imgSx:l={},sourceUrl:c,sx:u,title:d,width:h}=r;return c&&h&&n?(0,o.jsx)(s.Z,Object.assign({href:i,passHref:!0},{children:(0,o.jsx)(a.Z,Object.assign({component:"a",sx:Object.assign({display:"inline-flex","& > img":Object.assign({width:"auto",maxWidth:"100%"},l)},u),title:null!=d?d:""},{children:(0,o.jsx)("img",{alt:d||"",height:n,src:c,width:h})}))})):null};n.Z=l},48134:function(r,n,i){"use strict";var o=i(85893),a=i(15861);let s=r=>{let{children:n,color:i}=r;return(0,o.jsx)(a.Z,Object.assign({component:"h2",sx:{color:i||"text.primary",fontWeight:400,textAlign:"center",textTransform:"uppercase",fontSize:"28px"},variant:"h5"},{children:n}))};n.Z=s},11908:function(r,n,i){"use strict";var o=i(85893),a=i(50594),s=i(2999),l=i(93946);let c=r=>{let{children:n,description:i,isOpen:c,onClose:u,sx:d,title:h}=r;return(0,o.jsx)(s.Z,Object.assign({"aria-describedby":i,"aria-labelledby":h,onBackdropClick:u,open:c,sx:d},{children:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(l.Z,Object.assign({onClick:u,sx:{position:"absolute",zIndex:20,inset:"20px 20px auto auto",color:r=>r.palette.grey[200]}},{children:(0,o.jsx)(a.Z,{fontSize:"large"})})),n]})}))};n.Z=c},19317:function(r,n,i){"use strict";var o=i(85893),a=i(42761),s=i(87357),l=i(13970),c=i(93946),u=i(79697),d=i(11163),h=i(67294),p=i(14741);let f=r=>{let{iconColor:n="black",iconSize:i="small",placeholder:f="Search by keywordâ¦",sxInput:m,value:g="",iconSearch:v=a.Z}=r,y=(0,d.useRouter)(),[b,x]=(0,h.useState)(g),_=(0,h.useRef)(),w=(0,p.L)(),S=r=>{x(r.target.value)},T=r=>{r.preventDefault(),(0,u.Z)(b.trim())||(null==w||w(!0),y.push("/search/".concat(b)))};return(0,o.jsx)(s.Z,Object.assign({component:"form",onSubmit:T,sx:m},{children:(0,o.jsxs)(s.Z,Object.assign({sx:{alignItems:"center",display:"flex"}},{children:[(0,o.jsx)(l.ZP,{autoComplete:"off",id:"standard-basic",inputRef:_,onChange:S,placeholder:f,sx:{flexGrow:1}
229,value:b,autoFocus:!0}),(0,o.jsx)(c.Z,Object.assign({"aria-label":"search",disabled:!(null==b?void 0:b.length),sx:{p:1.5,color:(null==b?void 0:b.length)>0?n:"grey.300",fontSize:"inherit"},type:"submit",disableRipple:!0},{children:(0,h.createElement)(v,{fontSize:i})}))]}))}))};n.Z=f},79071:function(r,n,i){"use strict";var o=i(85893),a=i(52109);let s=r=>{let{align:n="left",sx:i,text:s}=r;return(0,o.jsx)(a.Z,{align:n,sx:Object.assign({fontWeight:700,fontSize:32,marginBottom:"20px",width:1},i),text:s,withTopLine:!1})};n.Z=s},52109:function(r,n,i){"use strict";var o=i(85893),a=i(15861);let s=r=>"center"===r?"center":"right"===r?"flex-end":"flex-start",l=r=>{let{align:n="left",sx:i,text:l,withTopLine:c=!0}=r;return(0,o.jsx)(a.Z,Object.assign({component:"h2",sx:Object.assign(Object.assign({alignItems:s(n),display:"flex",flexDirection:"column",fontSize:28,fontWeight:"bold",justifyContent:"center",textAlign:"center"===n?"center":null},i),{"::before":{content:'""',backgroundColor:r=>r.palette.primary.main,display:c?"block":"none",height:2,mb:.1,width:40}})},{children:l}))};n.Z=l},69168:function(r,n,i){"use strict";i.d(n,{Z:function(){return D}});var o=i(85893),a=i(33936),s=i(54470),l=i(81936),c=i(71299),u=i(78279),d=i(58259),h=i(55149),p=i(50416),f=i(67732),m=i(41153),g=i(55838),v=i(8785),y=i(80147),b=i(28138),x=i(81511),_=i(33020),w=i(93946),S=i(60265),T=i(6949),E={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",A100:"#ffff8d",A200:"#ffff00",A400:"#ffea00",A700:"#ffd600"},k=i(13486),C=i(50751),P=i(43880),O=function(r){return(0,P.Z)((0,C.Z)(r).toLowerCase())},j=i(67294),A=i(11288);let M=r=>{switch(r){case"email":return x.FU;case"facebook":return s.AY;case"flipboard":return l.hs;case"google_news":return c.xY;case"instagram":return u.Zz;case"linkedin":return d.D9;case"pinterest":return h.eG;case"rss":return _.Fw;case"snapchat":return p.ct;case"spotify":return f.H;case"tiktok":return m.AB;case"tumblr":return g.yY;case"twitter":case"x":return y.NC;case"vimeo":return v.xL;case"youtube":return b.op;case"bluesky":return a.pq;default:return null}},I=r=>{switch(r){case"facebook":return"#1877F2";case"twitter":case"x":return"#000000";case"instagram":return S.Z.A400;case"pinterest":return"#E60023";case"youtube":return S.Z[600];case"linkedin":return"#0077B5";case"tumblr":return T.Z[900];case"snapchat":return E[500];case"vimeo":return T.Z[500];case"email":return S.Z[400];case"spotify":return k.Z[500];default:return"black"}},Z=r=>{let n=new Set(["https:","mailto:"]);if(!r||""===r.trim()||r.toLowerCase().startsWith("mailto:"))return r;let i=/^[a-zA-Z][a-zA-Z\d+\-.]*:\/\//.test(r)?r:"https://".concat(r);try{let o=new URL(i);return n.has(o.protocol)||(i="https://".concat(r.replace(/^[a-zA-Z][a-zA-Z\d+\-.]*:\/\//,""))),i}catch(n){return r}},R=r=>{let{color:n,customIcon:i,href:a,icon:s,openNewTab:l=!1,size:c="medium",sx:u={},type:d,variant:h="filled"}=r,p=(0,j.useMemo)(()=>M(d),[d]),f=(0,j.useMemo)(()=>n||I(d),[n,d]),m=(0,j.useMemo)(()=>i||(p?(0,o.jsx)(A.Z,Object.assign({color:"inherit",fontSize:c,icon:p},s)):null),[i,s,c,p]);return m?(0,o.jsx)(w.Z,Object.assign({component:a?"a":"div",href:Z(null!=a?a:""),rel:l?"noopener noreferrer nofollow":void 0,sx:Object.assign(Object.assign(Object.assign(Object.assign({color:f,display:"inline-flex"},"square"===h?{justifyContent:"center",px:1.5,py:1,color:"white",backgroundColor:n,borderRadius:.5,"&:hover":{backgroundColor:n}}:{}),"filled"===h?{color:"white",backgroundColor:n,"&:hover":{backgroundColor:n}}:{}),"circle"===h?{border:1,borderRadius:"50%",p:1.3,backgroundColor:n}:{}),u),target:l?"_blank":void 0,title:O(d),"aria-label":O(d)},{children:m})):null};var D=R},38323:function(r,n,i){"use strict";var o=i(85893),a=i(18979);let s=r=>{let{sx:n,width:i}=r;return(0,o.jsx)(a.Z,{height:"1rem",sx:Object.assign({marginRight:i?"1rem":void 0},n),variant:"rectangular",width:i||"100%"})};n.Z=s},93199:function(r,n,i){"use strict";i.d(n,{ID:function(){return a.Z},ub:function(){return s.Z},hr:function(){return o.Z},Pe:function(){return l.Z},TR:function(){return c.Z},Mj:function(){return u.Z},nE:function(){return d.Z}}),i(66225),i(85893);var o=i(18705);i(76386),i(38665),i(40641),i(47018);var a=i(59471);i(75780),i(93773);var s=i(80364),l=i(22494);i(67294),i(11288),i(22770),i(21283),i(83634),i(20275),i(73746),i(95810),i(52010);var c=i(95155);i(48134),i(11908);var u=i(19317);i(52109);var d=i(69168);i(38323)},71849:function(r,n,i){"use strict";var o=i(85893),a=i(23795),s=i(15861),l=i(67294),c=i(93166),u=i(93199),d=i(31548),h=i(77424);let p=r=>{let{excludeAuthorLink:n=!1,excludeCategoryLink:i=!1,hasImageLazyLoad:p=!0,posts:f}=r,m=(0,l.useMemo)(()=>{var r,l,m,g,v,y,b,x,_,w,S;if(Array.isArray(f)){let T=[...f.slice(0,2)];if(T.length>0){let f=T[0];return(0,o.jsxs)(d.CT,Object.assign({side:"right",sideWidth:"300px",space:3},{children:[(0,o.jsxs)(d.CT,Object.assign({side:"left",sideWidth:"300px",space:3},{children:[(0,o.jsxs)(d.Pt,Object.assign({space:3},{children:[(null===(r=f.primaryCategory)||void 0===r?void 0:r.name)&&!i&&(0,o.jsx)(u.ID,Object.assign({href:f.primaryCategory.uri||"#",passHref:!0},{children:(0,o.jsx)(a.Z,Object.assign({"aria-label":null===(l=f.primaryCategory)||void 0===l?void 0:l.name,sx:{fontWeight:700},underline:"hover",variant:"overline"},{children:null===(m=f.primaryCategory)||void 0===m?void 0:m.name}))})),f.title&&f.uri&&(0,o.jsx)(u.ID,Object.assign({href:f.uri,passHref:!0},{children:(0,o.jsx)(a.Z,{"aria-label":f.title,color:"inherit",dangerouslySetInnerHTML:{__html:f.title},underline:"hover",variant:"h4"})})),(null==f?void 0:f.excerpt)&&(0,o.jsx)(s.Z,Object.assign({sx:{color:"inherit",my:.5},variant:"body1"},{children:(0,c.Z)(f.excerpt)})),(null===(g=f.authorTags)||void 0===g?void 0:g.nodes)&&!n&&f.authorTags.nodes.length>0&&(0,o.jsx)(u.ID,Object.assign({href:(null===(v=f.authorTags.nodes[0])||void 0===v?void 0:v.uri)||"#",passHref:!0},{children:(0,o.jsx)(a.Z,Object.assign({"aria-label":(null===(y=f.authorTags.nodes[0])||void 0===y?void 0:y.name)||"",underline:"hover",variant:"overline"},{children:null===(b=f.authorTags.nodes[0])||void 0===b?void 0:b.name}))}))]})),(null===(_=null===(x=f.featuredImage)||void 0===x?void 0:x.node)||void 0===_?void 0:_.sourceUrl)?(0,o.jsx)(u.ID,Object.assign({href:f.uri||"",passHref:!0},{children:(0,o.jsx)(h.yM,{children:(0,o.jsx)(h.Q_,{ratio:"3:2",loading:p?"lazy":"eager",src:f.featuredImage.node.sourceUrl})})})):(0,o.jsx)(o.Fragment,{})]})),T[1]&&(0,o.jsxs)(d.Pt,Object.assign({component:"article"},{children:[(null===(S=null===(w=T[1].featuredImage)||void 0===w?void 0:w.node)||void 0===S?void 0:S.sourceUrl)&&(0,o.jsx)(u.ID,Object.assign({href:T[1].uri||"",passHref:!0},{children:(0,o.jsx)(h.yM,{children:(0,o.jsx)(h.Q_,{ratio:"1:1",loading:p?"lazy":"eager",src:T[1].featuredImage.node.sourceUrl})})})),(0,o.jsx)(h.U0,{divider:!1,excludeAuthorLink:n,excludeCategoryLink:i,post:T[1]})]}))]}))}}return null},[n,i,f,p]),g=(0,l.useMemo)(()=>
229{if(Array.isArray(f)){let r=[...f.slice(2)];if(r.length>0)return(0,o.jsx)(d.Me,Object.assign({min:"260px",space:3},{children:r.map(r=>{var a,s;return(0,o.jsxs)(d.Pt,Object.assign({component:"article"},{children:[(null===(s=null===(a=r.featuredImage)||void 0===a?void 0:a.node)||void 0===s?void 0:s.sourceUrl)&&(0,o.jsx)(u.ID,Object.assign({href:r.uri||"",passHref:!0},{children:(0,o.jsx)(h.yM,{children:(0,o.jsx)(h.Q_,{ratio:"1:1",loading:p?"lazy":"eager",src:r.featuredImage.node.sourceUrl})})})),(0,o.jsx)(h.U0,{divider:!1,excludeAuthorLink:n,excludeCategoryLink:i,post:r})]}),r.databaseId)})}))}return null},[n,i,f,p]);return m||g?(0,o.jsxs)(d.Pt,Object.assign({space:{xs:3,sm:4}},{children:[m,g]})):null};n.Z=p},57865:function(r,n,i){"use strict";i.d(n,{cb:function(){return p},ZL:function(){return f.Z},dz:function(){return g},mL:function(){return b},Eo:function(){return _},qx:function(){return S},OR:function(){return E},Bt:function(){return C}});var o=i(85893),a=i(2734),s=i(67294);let l=(r,n)=>{let i=r.length,o=0,a=0,s=n.reduce((r,n)=>r+n,0);if(1!==s)throw Error("The sum of the ratios must be 1");return n.map((s,l)=>{if(l===n.length-1)return r.slice(o);let c=Math.round(i*s);(a+=c)>i&&(c-=a-i);let u=r.slice(o,o+c);return o+=c,u})};var c=i(93199),u=i(31548),d=i(77424);let h=r=>{let{excludeAuthorLink:n=!1,excludeCategoryLink:i=!1,hasImageLazyLoad:h=!0,posts:p}=r,f=(0,a.Z)(),m=(0,s.useMemo)(()=>Array.isArray(p)?l(p,[.2,.8]):[],[p]);return Array.isArray(p)?(0,o.jsxs)(u.sB,Object.assign({limit:16,space:f.spacing(5),threshold:"400px"},{children:[(0,o.jsx)("div",{children:m[0].map(r=>{var a,s;return(0,o.jsxs)(u.Pt,Object.assign({component:"article"},{children:[(null===(s=null===(a=r.featuredImage)||void 0===a?void 0:a.node)||void 0===s?void 0:s.sourceUrl)&&(0,o.jsx)(c.ID,Object.assign({href:r.uri||"",passHref:!0},{children:(0,o.jsx)(d.yM,{children:(0,o.jsx)(d.Q_,{ratio:"4:3",loading:h?"lazy":"eager",src:r.featuredImage.node.sourceUrl})})})),(0,o.jsx)(d.U0,{divider:!1,excludeAuthorLink:n,excludeCategoryLink:i,post:r,showExcerpt:!0})]}),r.databaseId)})}),(0,o.jsx)("div",{children:m[1].map(r=>(0,o.jsx)(u.Pt,Object.assign({component:"article"},{children:(0,o.jsx)(d.U0,{divider:!1,post:r})}),r.databaseId))})]})):null};var p=h,f=i(71849);let m=r=>{let{excludeAuthorLink:n=!1,excludeCategoryLink:i=!1,hasImageLazyLoad:a=!0,posts:l}=r,h=(0,s.useMemo)(()=>Array.isArray(l)&&l.length>0?(0,o.jsx)(u.Me,Object.assign({min:"260px",space:3},{children:l.map(r=>{var s,l;return(0,o.jsxs)(u.Pt,Object.assign({component:"article"},{children:[(null===(l=null===(s=r.featuredImage)||void 0===s?void 0:s.node)||void 0===l?void 0:l.sourceUrl)&&(0,o.jsx)(c.ID,Object.assign({href:r.uri||"",passHref:!0},{children:(0,o.jsx)(d.yM,{children:(0,o.jsx)(d.Q_,{ratio:"1:1",loading:a?"lazy":"eager",src:r.featuredImage.node.sourceUrl})})})),(0,o.jsx)(d.U0,{divider:!1,excludeAuthorLink:n,excludeCategoryLink:i,post:r})]}),r.databaseId)})})):null,[n,i,l,a]);return h||null};var g=m,v=i(86886);let y=r=>{let{excludeAuthorLink:n=!1,excludeCategoryLink:i=!1,hasImageLazyLoad:a=!0,posts:s}=r;if(!Array.isArray(s))return null;let h=l(s,[2/7,1/7,4/7]);return(0,o.jsxs)(v.ZP,Object.assign({spacing:4,container:!0},{children:[(0,o.jsx)(v.ZP,Object.assign({lg:3,md:4,xs:12,item:!0},{children:(0,o.jsx)(u.Pt,{children:h[0].map(r=>{var s,l;return(0,o.jsxs)(u.Pt,Object.assign({component:"article"},{children:[(null===(l=null===(s=r.featuredImage)||void 0===s?void 0:s.node)||void 0===l?void 0:l.sourceUrl)&&(0,o.jsx)(c.ID,Object.assign({href:r.uri||"",passHref:!0},{children:(0,o.jsx)(d.yM,{children:(0,o.jsx)(d.Q_,{loading:a?"lazy":"eager",src:r.featuredImage.node.sourceUrl})})})),(0,o.jsx)(d.U0,{divider:!1,excludeAuthorLink:n,excludeCategoryLink:i,post:r})]}),r.databaseId)})})})),(0,o.jsx)(v.ZP,Object.assign({lg:6,md:4,xs:12,item:!0},{children:(0,o.jsx)(u.Pt,{children:h[1].map(r=>{var s,l;return(0,o.jsxs)(u.Pt,Object.assign({component:"article"},{children:[(null===(l=null===(s=r.featuredImage)||void 0===s?void 0:s.node)||void 0===l?void 0:l.sourceUrl)&&(0,o.jsx)(c.ID,Object.assign({href:r.uri||"",passHref:!0},{children:(0,o.jsx)(d.yM,{children:(0,o.jsx)(d.Q_,{ratio:"4:3",loading:a?"lazy":"eager",src:r.featuredImage.node.sourceUrl})})})),(0,o.jsx)(d.U0,{divider:!1,excludeAuthorLink:n,excludeCategoryLink:i,post:r,showExcerpt:!0})]}),r.databaseId)})})})),(0,o.jsx)(v.ZP,Object.assign({lg:3,md:4,xs:12,item:!0},{children:(0,o.jsx)(u.Pt,Object.assign({component:"article"},{children:h[2].map(r=>(0,o.jsx)(d.U0,{excludeAuthorLink:n,excludeCategoryLink:i,post:r},r.databaseId))}))}))]}))};var b=y;let x=r=>{let{excludeAuthorLink:n=!1,excludeCategoryLink:i=!1,hasImageLazyLoad:l=!0,posts:h}=r,p=(0,a.Z)(),f=(0,s.useMemo)(()=>
229{if(Array.isArray(h)){let r=[...h.slice(0,2)];if(r.length>0)return(0,o.jsx)(o.Fragment,{children:r.map(r=>{var a,s;return(0,o.jsxs)(u.Pt,Object.assign({component:"article"},{children:[(null===(s=null===(a=r.featuredImage)||void 0===a?void 0:a.node)||void 0===s?void 0:s.sourceUrl)&&(0,o.jsx)(c.ID,Object.assign({href:r.uri||"",passHref:!0},{children:(0,o.jsx)(d.yM,{children:(0,o.jsx)(d.Q_,{ratio:"1:1",loading:l?"lazy":"eager",src:r.featuredImage.node.sourceUrl})})})),(0,o.jsx)(d.U0,{divider:!1,excludeAuthorLink:n,excludeCategoryLink:i,post:r,showExcerpt:!0})]}),r.databaseId)})})}return null},[n,i,h,l]),m=(0,s.useMemo)(()=>{if(Array.isArray(h)){let r=[...h.slice(2)];if(r.length>0)return(0,o.jsx)(o.Fragment,{children:r.map(r=>{var a,s;return(0,o.jsxs)(u.Pt,Object.assign({component:"article"},{children:[(null===(s=null===(a=r.featuredImage)||void 0===a?void 0:a.node)||void 0===s?void 0:s.sourceUrl)&&(0,o.jsx)(c.ID,Object.assign({href:r.uri||"",passHref:!0},{children:(0,o.jsx)(d.yM,{children:(0,o.jsx)(d.Q_,{ratio:"1:1",loading:l?"lazy":"eager",src:r.featuredImage.node.sourceUrl})})})),(0,o.jsx)(d.U0,{divider:!1,excludeAuthorLink:n,excludeCategoryLink:i,post:r})]}),r.databaseId)})})}return null},[n,i,h,l]);return f||m?(0,o.jsxs)(u.Pt,{children:[f&&(0,o.jsx)(u.sB,Object.assign({limit:16,space:p.spacing(5),threshold:"400px"},{children:f})),m&&(0,o.jsx)(u.d8,Object.assign({itemWidth:"275px",space:p.spacing(5),thumbColor:p.palette.primary.main,trackColor:p.palette.primary.light},{children:m}))]}):null};var _=x;let w=r=>{let{excludeAuthorLink:n=!1,excludeCategoryLink:i=!1,hasImageLazyLoad:l=!0,posts:h}=r,p=(0,a.Z)(),f=(0,s.useMemo)(()=>Array.isArray(h)&&h.length>0?(0,o.jsx)(u.d8,Object.assign({itemWidth:"275px",space:p.spacing(5),thumbColor:p.palette.primary.main,trackColor:p.palette.primary.light},{children:h.map(r=>{var a,s;return(0,o.jsxs)(u.Pt,Object.assign({component:"article"},{children:[(null===(s=null===(a=r.featuredImage)||void 0===a?void 0:a.node)||void 0===s?void 0:s.sourceUrl)&&(0,o.jsx)(c.ID,Object.assign({href:r.uri||"",passHref:!0},{children:(0,o.jsx)(d.yM,{children:(0,o.jsx)(d.Q_,{ratio:"1:1",loading:l?"lazy":"eager",src:r.featuredImage.node.sourceUrl})})})),(0,o.jsx)(d.U0,{divider:!1,excludeAuthorLink:n,excludeCategoryLink:i,post:r})]}),r.databaseId)})})):null,[n,i,h,p,l]);return f||null};var S=w;let T=r=>{let{excludeAuthorLink:n=!1,excludeCategoryLink:i=!1,hasImageLazyLoad:a=!0,posts:s}=r;return Array.isArray(s)?(0,o.jsxs)(u.Pt,Object.assign({space:{xs:3,sm:4}},{children:[(0,o.jsxs)(u.Me,Object.assign({min:"500px",space:3},{children:[(0,o.jsx)(d.TB,{hasImageLazyLoad:a,excludeAuthorLink:n,excludeCategoryLink:i,post:s[0],aspectRatio:{xs:"4/5",sm:"16/9"},showExcerpt:!0},s[0].databaseId),(0,o.jsx)(u.Me,Object.assign({min:"225px",space:3},{children:s.slice(1,3).map(r=>(0,o.jsx)(d.TB,{hasImageLazyLoad:a,excludeAuthorLink:n,excludeCategoryLink:i,post:r},r.databaseId))}))]})),(0,o.jsx)(u.Me,Object.assign({min:"300px",space:3},{children:s.slice(3).map(r=>(0,o.jsx)(d.Lj,{hasImageLazyLoad:a,post:r},r.databaseId))}))]})):null};var E=T;let k=r=>{let{excludeAuthorLink:n=!1,excludeCategoryLink:i=!1,hasImageLazyLoad:a=!0,posts:l}=r,h=(0,s.useMemo)(()=>Array.isArray(l)&&l.length>0?(0,o.jsx)(u.Pt,Object.assign({space:3},{children:l.map(r=>{var s,l;return(0,o.jsxs)(u.Pt,Object.assign({component:"article"},{children:[(null===(l=null===(s=r.featuredImage)||void 0===s?void 0:s.node)||void 0===l?void 0:l.sourceUrl)&&(0,o.jsx)(c.ID,Object.assign({href:r.uri||"",passHref:!0},{children:(0,o.jsx)(d.yM,{children:(0,o.jsx)(d.Q_,{ratio:"2:1",loading:a?"lazy":"eager",src:r.featuredImage.node.sourceUrl})})})),(0,o.jsx)(d.U0,{divider:!1,excludeAuthorLink:n,excludeCategoryLink:i,post:r,size:"md",sx:{maxWidth:"lg"},showExcerpt:!0})]}),r.databaseId)})})):null,[n,i,l,a]);return h||null};var C=k},25900:function(r,n,i){"use strict";var o=i(67294);let a=(0,o.createContext)(null);n.Z=a},30487:function(r,n,i){"use strict";i.d(n,{Z:function(){return eL}});var o=i(85893),a=i(48568),s=i(5152),l=i.n(s),c=i(85165),u=i(85454),d=i(97924),h=i(12771),p=i(15861),f=i(93967),m=i.n(f),g=i(59751),v=i(51594);let y={1:{variant:"h1"},2:{variant:"h2"},3:{variant:"h3"},4:{variant:"h4"},5:{variant:"h5"},6:{variant:"h6"}},b=r=>{let{area:n,className:i,content:a,frequency:s,level:l,originalContent:c,textAlign:u}=r;return(0,o.jsx)(p.Z,Object.assign({},y[l],{className:m()(i,"heading"),dangerouslySetInnerHTML:{__html:a},"data-og-block-area":n,"data-og-block-nth":s,"data-og-block-type":v.Z.CoreHeadingBlock,"data-rawhtml":"1",id:(0,g.Z)(a,c),sx:{textAlign:null!=u?u:"left"}}))};var x=i(87357),_=i(41664),w=i.n(_),S=i(67294),T=i(49287),E=i(66225),k=i(22494),C=i(20275),P=i(11908),O=i(4298),j=i.n(O);let A=()=>(0,o.jsx)(j(),{id:"pinit",src:"//assets.pinterest.com/js/pinit.js","data-
229pin-build":"parsePinBtns",strategy:"lazyOnload"}),M=(r,n,i)=>{let o=i&&n?"min(".concat(Math.min(n,850),"px, 50%)"):"".concat(n,"px");return"left"===r?{float:"left",marginRight:2,width:o,maxWidth:"50%",display:"flex",flexDirection:"column",justifyContent:"center"}:"right"===r?{float:"right",marginLeft:2,width:o,maxWidth:"50%",display:"flex",flexDirection:"column",justifyContent:"center"}:"center"===r?{display:"flex",alignItems:"center",flexDirection:"column"}:{}},I=r=>{var n,i,a,s;let{area:l,attributes:u,className:d,frequency:h,isResized:f=!1,loading:g="lazy",style:y,zoom:b=!0}=r,{ShareImageButton:_,options:O}=(0,c.Z)(),{enablePinterestIcon:j}=(0,T.Z)(),[I,Z]=(0,S.useState)(!1),R=(0,S.useCallback)(()=>Z(!1),[]),D=(0,S.useCallback)(r=>{"Escape"===r.code&&R()},[R]);(0,S.useEffect)(()=>(window.addEventListener("keydown",D),()=>window.removeEventListener("keydown",D)),[D]);let L=Object.fromEntries(Object.entries(k.v).filter((r,n)=>n<=2)),z=(null==u?void 0:u.width)?parseInt(u.width,10):0,B=(null==u?void 0:u.height)?parseInt(u.height,10):0,F=(null==u?void 0:u.scale)||"cover",N=(null===(n=null==O?void 0:O.CoreImageBlock)||void 0===n?void 0:n.disableLightboxByDefault)!==!0,U=b&&!(null==u?void 0:u.href),V=U&&N;U&&(null===(i=null==u?void 0:u.lightbox)||void 0===i?void 0:i.enabled)===!0&&(V=!0);let q=null==u?void 0:u.align,$=V?(0,o.jsx)(P.Z,Object.assign({isOpen:I,onClose:R,sx:{p:{xs:2,sm:3,md:5}}},{children:(0,o.jsx)(x.Z,Object.assign({onClick:r=>{r.target===r.currentTarget&&R()},sx:{position:"relative",height:"100%"}},{children:(0,o.jsx)(C.Z,{children:(0,o.jsx)(k.Z,{image:{alt:u.alt,src:u.url,title:u.alt,loading:g,style:{position:"absolute",inset:0,maxHeight:"100%",width:f&&z||"auto",margin:"auto",maxWidth:"100%"}},sizes:L})})}))})):null,G=(0,o.jsx)(C.Z,{children:(0,o.jsx)(E.Z,{alt:null==u?void 0:u.alt,loading:g,src:null==u?void 0:u.url,title:null==u?void 0:u.alt,width:f&&z?"min(".concat(Math.min(z,850),", 100%)"):"100%",objectFit:F})}),W=(null==u?void 0:u.caption)?u.caption:"",H=(null==u?void 0:u.creditText)?"<em>".concat(u.creditText,"</em>"):"";return(0,o.jsxs)(o.Fragment,{children:[j?A():null,$,(null==u?void 0:u.url)&&(0,o.jsxs)(x.Z,Object.assign({className:m()("image",d),component:"figure","data-og-block-area":l,"data-og-block-nth":h,"data-og-block-type":v.Z.CoreImageBlock,style:y,sx:M(q,z,f)},{children:[(0,o.jsxs)(x.Z,Object.assign({sx:{position:"relative",":hover":{cursor:V?"zoom-in":"auto",a:{opacity:1}},width:f&&z?"min(".concat(Math.min(z,850),"px, 100%)"):"100%"}},{children:[j&&_&&(0,o.jsx)(_,{url:null==u?void 0:u.url}),(0,o.jsx)(x.Z,Object.assign({onClick:()=>V?Z(!0):null,sx:{position:"relative",overflow:"hidden",borderRadius:1,aspectRatio:(null==u?void 0:u.aspectRatio)||(z&&B?"".concat(z," / ").concat(B):"16/9"),width:f&&z?"min(".concat(Math.min(z,850),"px, 100%)"):"100%"}},{children:(null==u?void 0:u.href)?(0,o.jsx)(w(),Object.assign({className:(null==u?void 0:u.linkClass)||void 0,href:u.href,rel:(null==u?void 0:u.rel)||void 0,target:(null==u?void 0:u.linkTarget)||(null==u?void 0:u.target)||"_self"},{children:G})):G}))]})),(null==u?void 0:u.attribution)&&(0,o.jsx)(p.Z,{dangerouslySetInnerHTML:{__html:null==u?void 0:u.attribution},"data-rawhtml":"1",sx:{color:r=>r.palette.grey[400],textTransform:"uppercase",display:"block",fontStyle:"italic",fontSize:10,textAlign:"right","& > *":{display:"inline"}}}),(W||H)&&(0,o.jsx)(p.Z,{component:"figcaption","data-rawhtml":"1",sx:(null===(a=null==O?void 0:O.disableDefaultBlocksStyles)||void 0===a?void 0:a.CoreImageBlock)||(null===(s=null==O?void 0:O.disableDefaultBlocksStyles)||void 0===s?void 0:s.all)?{px:2,py:1}:{color:r=>r.palette.grey[500],fontSize:15,px:2,py:1,pl:"15px",mt:(null==u?void 0:u.attribution)?.5:2,display:"inline-block",borderLeft:r=>"2px solid ".concat(r.palette.primary.main),"& > *":{display:"inline"}},dangerouslySetInnerHTML:{__html:"".concat(W," ").concat(H)},variant:"caption"})]}))]})};var Z=i(35034);let R={small:"1rem",medium:"1.125rem",large:"1.75rem","x-large":"2.25rem","xx-large":"5rem"},D=r=>{let n,{area:i,attributes:a,component:s="p",content:l,dropCap:c=!1,frequency:u,id:d}=r,{data:h}=(0,Z.Z)();return(null==a?void 0:a.fontSize)&&(n=R[a.fontSize]),(0,o.jsx)(p.Z,{className:"paragraph",component:s,dangerouslySetInnerHTML:{__html:l},"data-og-block-area":i,"data-og-block-nth":u,"data-og-block-type":v.Z.CoreParagraphBlock,"data-rawhtml":"1",id:d,s
229x:{fontSize:n,"&::after":{clear:"both",content:'""',display:"block"},"&::first-letter, p:first-of-type::first-letter":r=>{var n,i,o,a,s,l,u,d;let{palette:p,typography:f}=r;return c?{color:(null===(n=null==f?void 0:f.dropCap)||void 0===n?void 0:n.color)||(null===(i=null==h?void 0:h.dropCap)||void 0===i?void 0:i.color)||p.primary.main,float:null===(o=null==f?void 0:f.dropCap)||void 0===o?void 0:o.float,fontFamily:null===(a=null==f?void 0:f.dropCap)||void 0===a?void 0:a.fontFamily,fontSize:null===(s=null==f?void 0:f.dropCap)||void 0===s?void 0:s.fontSize,fontWeight:null===(l=null==f?void 0:f.dropCap)||void 0===l?void 0:l.fontWeight,lineHeight:null===(u=null==f?void 0:f.dropCap)||void 0===u?void 0:u.lineHeight,margin:null===(d=null==f?void 0:f.dropCap)||void 0===d?void 0:d.margin}:null},"> p":{my:0},"p.has-text-align-right":{textAlign:"right"},"p.has-text-align-left":{textAlign:"left"},"p.has-text-align-center":{textAlign:"center"}},variant:"paragraph"})};var L=i(94018);let z=l()(()=>i.e(1990).then(i.bind(i,71990)),{loadableGenerated:{webpack:()=>[71990]}}),B=l()(()=>i.e(9016).then(i.bind(i,89016)),{loadableGenerated:{webpack:()=>[89016]}}),F=l()(()=>i.e(5606).then(i.bind(i,85606)),{loadableGenerated:{webpack:()=>[85606]}}),N=l()(()=>i.e(2424).then(i.bind(i,82424)),{loadableGenerated:{webpack:()=>[82424]}}),U=l()(()=>i.e(9309).then(i.bind(i,99309)),{loadableGenerated:{webpack:()=>[99309]}}),V=l()(()=>i.e(6004).then(i.bind(i,46004)),{loadableGenerated:{webpack:()=>[46004]}}),q=l()(()=>i.e(8931).then(i.bind(i,98931)),{loadableGenerated:{webpack:()=>[98931]}}),$=l()(()=>i.e(9928).then(i.bind(i,59928)),{loadableGenerated:{webpack:()=>[59928]}}),G=l()(()=>i.e(3834).then(i.bind(i,93834)),{loadableGenerated:{webpack:()=>[93834]}}),W=l()(()=>i.e(8587).then(i.bind(i,58587)),{loadableGenerated:{webpack:()=>[58587]}}),H=l()(()=>i.e(9249).then(i.bind(i,79249)),{loadableGenerated:{webpack:()=>[79249]}}),X=l()(()=>i.e(2333).then(i.bind(i,32333)),{loadableGenerated:{webpack:()=>[32333]}}),Y=l()(()=>i.e(5692).then(i.bind(i,15692)),{loadableGenerated:{webpack:()=>[15692]}}),K=l()(()=>i.e(2093).then(i.bind(i,52093)),{loadableGenerated:{webpack:()=>[52093]}}),J=l()(()=>i.e(5205).then(i.bind(i,65205)),{loadableGenerated:{webpack:()=>[65205]}}),Q=l()(()=>i.e(7792).then(i.bind(i,67792)),{loadableGenerated:{webpack:()=>[67792]}}),ee=l()(()=>i.e(3123).then(i.bind(i,93123)),{loadableGenerated:{webpack:()=>[93123]}}),et=l()(()=>i.e(9456).then(i.bind(i,29456)),{loadableGenerated:{webpack:()=>[29456]}}),er=l()(()=>i.e(8214).then(i.bind(i,8214)),{loadableGenerated:{webpack:()=>[8214]}}),en=l()(()=>i.e(2440).then(i.bind(i,22440)),{loadableGenerated:{webpack:()=>[22440]}}),ei=l()(()=>i.e(2156).then(i.bind(i,92156)),{loadableGenerated:{webpack:()=>[92156]}}),eo=l()(()=>i.e(3474).then(i.bind(i,63474)),{loadableGenerated:{webpack:()=>[63474]}}),ea=l()(()=>i.e(4987).then(i.bind(i,4987)),{loadableGenerated:{webpack:()=>[4987]}}),es=l()(()=>i.e(2797).then(i.bind(i,92797)),{loadableGenerated:{webpack:()=>[92797]}}),el=l()(()=>i.e(4328).then(i.bind(i,44328)),{loadableGenerated:{webpack:()=>[44328]}}),ec=l()(()=>i.e(7959).then(i.bind(i,57959)),{loadableGenerated:{webpack:()=>[57959]}}),eu=l()(()=>i.e(5316).then(i.bind(i,35316)),{loadableGenerated:{webpack:()=>[35316]}}),ed=l()(()=>i.e(4625).then(i.bind(i,44625)),{loadableGenerated:{webpack:()=>[44625]}}),eh=l()(()=>i.e(8494).then(i.bind(i,68494)),{loadableGenerated:{webpack:()=>[68494]}}),ep=l()(()=>i.e(4911).then(i.bind(i,74911)),{loadableGenerated:{webpack:()=>[74911]}}),ef=l()(()=>i.e(5877).then(i.bind(i,35877)),{loadableGenerated:{webpack:()=>[35877]}}),em=l()(()=>i.e(4887).then(i.bind(i,4887)),{loadableGenerated:{webpack:()=>[4887]}}),eg=l()(()=>i.e(9907).then(i.bind(i,69907)),{loadableGenerated:{webpack:()=>[69907]}}),ev=l()(()=>i.e(1127).then(i.bind(i,71127)),{loadableGenerated:{webpack:()=>[71127]}}),ey=l()(()=>i.e(236).then(i.bind(i,10195)),{loadableGenerated:{webpack:()=>[10195]}}),eb=l()(()=>i.e(7083).then(i.bind(i,37083)),{loadableGenerated:{webpack:()=>[37083]}}),ex=l()(()=>i.e(5887).then(i.bind(i,55887)),{loadableGenerated:{webpack:()=>[55887]}}),e_=l()(()=>i.e(9398).then(i.bind(i,19398)),{loadableGenerated:{webpack:()=>[19398]}}),ew=l()(()=>i.e(5261).then(i.bind(i,25261)),{loadableGenerated:{webpack:()=>[25261]}}),eS=l()(()=>i.e(2471).then(i.bind(i,62471)),{loadableGenerated:{webpack:()=>[62471]}}),eT=l()(()=>i.e(7275).then(i.bind(i,57275)),{loadableGenerated:{webpack:()=>[57275]}}),eE=l()(()=>i.e(1676).then(i.bind(i,61676)),{loadableGenerated:{webpack:()=>[61676]}}),ek=l()(()=>i.e(107).then(i.bind(i,40107)),{loadableGenerated:{webpack:()=>[40107]}}),eC=l()(()=>i.e(9808).then(i.bind(i,59808)),{loadableGenerated:{webpack:()=>[59808]}}),eP=l()(()=>i.e(5042).then(i.bind(i,65042)),{loadableGenerated:{webpack:()=>[65042]}}),eO=l()(()=>i.e(2323).then(i.bind(i,12323)),{loadableGenerated:{webpack:()=>[12323]}}),ej=l()(()=>i.e(3198).then(i.bind(i,63198)),{loadableGenerated:{webpack:()=>[63198]}}),eA=l()(()=>i.e(9864).then(i.bind(i,29864)),{loadableGenerated:{webpack:()=>[29864]}}),eM=l()(()=>i.e(1928).then(i.bind(i,61928)),{loadableGenerated:{webpack:()=>[61928]}}),eI=l()(()=>i.e(9821).then(i.bind(i,59821)),{loadableGenerated:{webpack:()=>[59821]}}),eZ=l()(()=>i.e(8578).then(i.bind(i,38578)),{loadableGenerated:{webpack:()=>[38578]}}),eR=l()(()=>i.e(9189).then(i.bind(i,49189)),{loadableGenerated:{webpack:()=>[49189]}}),eD=l()(()=>i.e(5267).then(i.bind(i,45267)),{loadableGenerated:{webpack:()=>[45267]}});
229function eL(r){var n,i,s,l,p,f,m,g,y,x,_,w,S,T,E,k,C,P,O,j,A,M,Z,R,ez,eB,eF,eN,eU,eV,eq,e$,eG,eW,eH,eX,eY,eK,eJ,eQ,e0,e1,e2,e3,e4,e5,e6,e8,e9,e7,te,tt,tr,tn,ti,to,ta,ts,tl,tc,tu,td,th,tp,tf,tm,tg,tv,ty,tb,tx,t_,tw,tS,tT,tE,tk,tC,tP,tO,tj;let{area:tA,block:tM,components:tI,frequency:tZ}=r,{attributes:tR,name:tD,order:tL}=tM,{blocks:tz,extend:tB}=(0,c.Z)(),tF=(0,a.Z)({},tI,null==tz?void 0:tz.components),tN=null===(n=null==tB?void 0:tB.blocks)||void 0===n?void 0:n.find(r=>r.name===tD);if(tN){let{component:r}=tN;return(0,o.jsx)(r,{area:tA,block:tM,components:tF,frequency:tZ},tL)}switch(tD){case v.Z.CoreButtonsBlock:{let r=(null==tF?void 0:tF.CoreButtonsBlock)||G;return(0,o.jsx)(r,{anchor:null==tR?void 0:tR.anchor,area:tA,className:null===(i=null==tM?void 0:tM.attributes)||void 0===i?void 0:i.className,frequency:tZ,innerBlocks:null==tM?void 0:tM.innerBlocks,layout:null===(s=null==tM?void 0:tM.attributes)||void 0===s?void 0:s.layout},tL)}case v.Z.CoreColumnsBlock:{let r=(null==tF?void 0:tF.CoreColumnsBlock)||W;return(0,o.jsx)(r,{anchor:null==tR?void 0:tR.anchor,area:tA,attributes:tR,
229className:null===(l=null==tM?void 0:tM.attributes)||void 0===l?void 0:l.className,components:tF,frequency:tZ,innerBlocks:null==tM?void 0:tM.innerBlocks},tL)}case v.Z.CoreCoverBlock:{let r=(null==tF?void 0:tF.CoreCoverBlock)||H;return(0,o.jsx)(r,{area:tA,attributes:tR,background:null==tR?void 0:tR.customOverlayColor,className:null===(p=null==tM?void 0:tM.attributes)||void 0===p?void 0:p.className,components:tF,frequency:tZ,innerBlocks:null==tM?void 0:tM.innerBlocks},tL)}case v.Z.CoreEmbedBlock:{let r=(null==tF?void 0:tF.CoreEmbedBlock)||J;return(0,o.jsx)(r,{area:tA,attributes:tR,className:tR.className,frequency:tZ},tL)}case v.Z.CoreAudioBlock:{let r=(null==tF?void 0:tF.CoreAudioBlock)||et;return(0,o.jsx)(r,{area:tA,className:null===(f=null==tM?void 0:tM.attributes)||void 0===f?void 0:f.className,frequency:tZ,html:tM.originalContent},tL)}case v.Z.CoreFileBlock:{let r=(null==tF?void 0:tF.CoreFileBlock)||er;return(0,o.jsx)(r,{area:tA,className:tR.className,displayPreview:null==tR?void 0:tR.displayPreview,downloadButtonText:null==tR?void 0:tR.downloadButtonText,fileName:null==tR?void 0:tR.fileName,frequency:tZ,href:null==tR?void 0:tR.href,previewHeight:null==tR?void 0:tR.previewHeight,showDownloadButton:null==tR?void 0:tR.showDownloadButton},tL)}case v.Z.CoreGalleryBlock:{let r=(null==tF?void 0:tF.CoreGalleryBlock)||ea;return(0,o.jsx)(r,{align:null==tR?void 0:tR.align,area:tA,caption:null==tR?void 0:tR.caption,className:tR.className,columns:null==tR?void 0:tR.columns,frequency:tZ,aspectRatio:null==tR?void 0:tR.aspectRatio,galleryType:null==tR?void 0:tR.galleryType,imageCrop:null==tR?void 0:tR.imageCrop,images:null==tR?void 0:tR.images,innerBlocks:null==tM?void 0:tM.innerBlocks},tL)}case v.Z.CoreGroupBlock:{let r=(null==tF?void 0:tF.CoreGroupBlock)||en;return(0,o.jsx)(r,{area:tA,attributes:tR,blocks:null==tM?void 0:tM.innerBlocks,className:null===(m=null==tM?void 0:tM.attributes)||void 0===m?void 0:m.className,components:tF,frequency:tZ},tL)}case v.Z.CoreHeadingBlock:{let r=(null==tF?void 0:tF.CoreHeadingBlock)||b;return(0,o.jsx)(r,{anchor:null==tR?void 0:tR.anchor,area:tA,className:null==tR?void 0:tR.className,content:null==tR?void 0:tR.content,originalContent:null==tM?void 0:tM.originalContent,frequency:tZ,level:null==tR?void 0:tR.level,textAlign:null==tR?void 0:tR.textAlign,textColor:null===(y=null===(g=null==tR?void 0:tR.style)||void 0===g?void 0:g.color)||void 0===y?void 0:y.text},tL)}case v.Z.CoreImageBlock:{let r=(null==tF?void 0:tF.CoreImageBlock)||I;
229return(0,o.jsx)(r,{area:tA,attributes:tR,className:null===(x=null==tM?void 0:tM.attributes)||void 0===x?void 0:x.className,frequency:tZ,isResized:null===(_=null==tM?void 0:tM.originalContent)||void 0===_?void 0:_.includes("is-resized")},tL)}case v.Z.CoreHtmlBlock:{let r=(null==tF?void 0:tF.CoreHtmlBlock)||ei;return(0,o.jsx)(r,{area:tA,className:null===(w=null==tM?void 0:tM.attributes)||void 0===w?void 0:w.className,frequency:tZ,html:tM.originalContent},tL)}case v.Z.CoreLatestPostsBlock:{let r=(null==tF?void 0:tF.CoreHtmlBlock)||ei;return(0,o.jsx)(r,{area:tA,className:null===(S=null==tM?void 0:tM.attributes)||void 0===S?void 0:S.className,frequency:tZ,html:tM.html},tL)}case v.Z.CoreVideoBlock:{let r=(null==tF?void 0:tF.CoreVideoBlock)||eo;return(0,o.jsx)(r,{area:tA,attributes:tR,frequency:tZ},tL)}case v.Z.CoreListBlock:{let r=(null==tF?void 0:tF.CoreListBlock)||ed;return(0,o.jsx)(r,{area:tA,className:null===(T=null==tM?void 0:tM.attributes)||void 0===T?void 0:T.className,frequency:tZ,innerBlocks:null==tM?void 0:tM.innerBlocks,ordered:null==tR?void 0:tR.ordered,values:null==tR?void 0:tR.values},tL)}case v.Z.CoreParagraphBlock:{let r=(null==tF?void 0:tF.CoreParagraphBlock)||D;return(0,o.jsx)(r,{area:tA,component:"div",content:null!==(E=null==tM?void 0:tM.originalContent)&&void 0!==E?E:null==tR?void 0:tR.content,dropCap:null==tR?void 0:tR.dropCap,frequency:tZ,attributes:tR},tL)}case v.Z.CorePullquoteBlock:{let r=(null==tF?void 0:tF.CorePullquoteBlock)||ev;return(0,o.jsx)(r,{anchor:null==tR?void 0:tR.anchor,area:tA,citation:null==tR?void 0:tR.citation,className:null===(k=null==tM?void 0:tM.attributes)||void 0===k?void 0:k.className,frequency:tZ,value:null==tR?void 0:tR.value},tL)}case v.Z.CoreQuoteBlock:{let r=(null==tF?void 0:tF.CoreQuoteBlock)||eb;return(0,o.jsx)(r,{area:tA,citation:null==tR?void 0:tR.citation,className:null===(C=null==tM?void 0:tM.attributes)||void 0===C?void 0:C.className,frequency:tZ,innerBlocks:tM.innerBlocks,value:null==tR?void 0:tR.value},tL)}case v.Z.CoreSearchBlock:{let r=(null==tF?void 0:tF.CoreSearchBlock)||eA;return(0,o.jsx)(r,{area:tA,className:null===(P=null==tM?void 0:tM.attributes)||void 0===P?void 0:P.className,frequency:tZ,placeholder:null==tR?void 0:tR.placeholder},tL)}case v.Z.CoreSeparatorBlock:{let r=(null==tF?void 0:tF.CoreSeparatorBlock)||eC;return(0,o.jsx)(r,{anchor:null==tR?void 0:tR.anchor,area:tA,className:null==tR?void 0:tR.className,color:null==tR?void 0:tR.color,customColor:null==tR?void 0:tR.customColor,frequency:tZ},tL)}case v.Z.CoreTableBlock:{let r=(null==tF?void 0:tF.CoreTableBlock)||$;return(0,o.jsx)(r,{area:tA,body:null==tR?void 0:tR.body,caption:null==tR?void 0:tR.caption,className:null===(O=null==tM?void 0:tM.attributes)||void 0===O?void 0:O.className,foot:null==tR?void 0:tR.foot,frequency:tZ,head:null==tR?void 0:tR.head},tL)}case v.Z.CoreBlockBlock:return(0,L.t7)(tM.innerBlocks).map(r=>{let{block:n,frequency:i}=r,a=tZ&&tM.innerBlocks.length>1?parseFloat("".concat(tZ,".").concat(i)):tZ;return(0,o.jsx)(eL,{area:tA,block:n,frequency:a},n.order)});case v.Z.AcfArticleGridBlock:{let r=(null==tF?void 0:tF.AcfArticleGridBlock)||N;return(0,o.jsx)(r,{area:tA,className:tR.className,columnsLg:null===(j=null==tR?void 0:tR.data)||void 0===j?void 0:j.columns_lg,columnsMd:null===(A=null==tR?void 0:tR.data)||void 0===A?void 0:A.columns_md,columnsSm:null===(M=null==tR?void 0:tR.data)||void 0===M?void 0:M.columns_sm,columnsXs:null===(Z=null==tR?void 0:tR.data)||void 0===Z?void 0:Z.columns_xs,enablePagination:(null===(R=null==tR?void 0:tR.data)||void 0===R?void 0:R.enable_pagination)==="1",featuredImageRatio:null===(ez=null==tR?void 0:tR.data)||void 0===ez?void 0:ez.image_ratio,frequency:tZ,posts:null!==(eN=null===(eF=null===(eB=tM.posts)||void 0===eB?void 0:eB.nodes)||void 0===eF?void 0:eF.filter(d.Z))&&void 0!==eN?eN:[],postsPerPage:null===(eU=null==tR?void 0:tR.data)||void 0===eU?void 0:eU.max_post_count,spacing:null===(eV=null==tR?void 0:tR.data)||void 0===eV?void 0:eV.spacing,title:null===(eq=null==tR?void 0:tR.data)||void 0===eq?void 0:eq.title,totalPosts:null===(eW=null===(eG=null===(e$=null==tM?void 0:tM.posts)||void 0===e$?void 0:e$.pageInfo)||void 0===eG?void 0:eG.offsetPagination)||void 0===eW?void 0:eW.total},tL)}case v.Z.AcfArticleBlock:{let r=(null==tF?void 0:tF.AcfArticleBlock)||B;return(0,o.jsx)(r,{area:tA,article:tM.article,className:tR.className,frequency:tZ,orientation:tM.orientation}
229,tL)}case v.Z.AcfArticleSliderBlock:{let r=(null==tF?void 0:tF.AcfArticleSliderBlock)||eM;return(0,o.jsx)(r,{area:tA,className:tR.className,ctaText:null===(eH=null==tR?void 0:tR.data)||void 0===eH?void 0:eH.slider_cta,frequency:tZ,posts:null===(eY=null===(eX=tM.posts)||void 0===eX?void 0:eX.nodes)||void 0===eY?void 0:eY.filter(d.Z)})}case v.Z.AcfCallToActionBlock:{let r=(null==tF?void 0:tF.AcfCallToActionBlock)||X;return(0,o.jsx)(r,{area:tA,btnCTABackgroundColor:null===(eK=null==tR?void 0:tR.data)||void 0===eK?void 0:eK.cta_button_color,btnCTAText:null===(eJ=null==tR?void 0:tR.data)||void 0===eJ?void 0:eJ.cta_button_text,btnCTAUrl:null===(eQ=null==tR?void 0:tR.data)||void 0===eQ?void 0:eQ.cta_url,className:tR.className,coupon:null===(e0=null==tR?void 0:tR.data)||void 0===e0?void 0:e0.cta_post_button_text,ctaProvider:tM.brand,frequency:tZ,superTitle:null===(e1=null==tR?void 0:tR.data)||void 0===e1?void 0:e1.cta_super_title,text:null===(e2=null==tR?void 0:tR.data)||void 0===e2?void 0:e2.cta_text,title:null===(e3=null==tR?void 0:tR.data)||void 0===e3?void 0:e3.cta_title},tL)}case v.Z.AcfSingleToutSmallBlock:{let r=(null==tF?void 0:tF.AcfSingleToutSmallBlock)||Y;return(0,o.jsx)(r,{area:tA,categories:tM.categories,className:tR.className,frequency:tZ,postsList:tM.postsList,tags:tM.tags,title:tM.title},tL)}case v.Z.AcfFacebookPostBlock:{let r=(null==tF?void 0:tF.AcfFacebookPostBlock)||Q;return(0,o.jsx)(r,{url:null===(e4=null==tR?void 0:tR.data)||void 0===e4?void 0:e4.facebook_url},tL)}case v.Z.AcfFacebookVideoBlock:{let r=(null==tF?void 0:tF.AcfFacebookVideoBlock)||ee;return(0,o.jsx)(r,{url:null===(e5=null==tR?void 0:tR.data)||void 0===e5?void 0:e5.facebook_url},tL)}case v.Z.AcfHowToStepBlock:{let r=(null==tF?void 0:tF.AcfHowToStepBlock)||z;return(0,o.jsx)(r,{area:tA,className:tR.className,frequency:tZ,howtoStep:tM.howtoStep},tL)}case v.Z.AcfInfoBadgeBlock:{let r=(null==tF?void 0:tF.AcfInfoBadgeBlock)||ec;return(0,o.jsx)(r,{area:tA,className:tR.className,frequency:tZ,text:null===(e6=null==tR?void 0:tR.data)||void 0===e6?void 0:e6.text,title:null===(e8=null==tR?void 0:tR.data)||void 0===e8?void 0:e8.title},tL)}case v.Z.AcfImageWithSubtitleBlock:{let r=(null==tF?void 0:tF.AcfImageWithSubtitleBlock)||es;return(0,o.jsx)(r,{area:tA,className:tR.className,frequency:tZ,image:tM.image})}case v.Z.AcfGraphicalCtaBlock:{let r=(null==tF?void 0:tF.AcfGraphicalCtaBlock)||el;return(0,o.jsx)(r,{area:tA,buttonText:tM.buttonText,className:tR.className,deck:tM.deck,frequency:tZ,headline:tM.headline,image:tM.image,label:tM.label,orientation:tM.orientation,url:tM.url})}case v.Z.AcfLatestRecipesBlock:{let r=(null==tF?void 0:tF.AcfLatestRecipesBlock)||eu;return(0,o.jsx)(r,{area:tA,className:tR.className,frequency:tZ,link:null===(te=null===(e7=null===(e9=tM.terms)||void 0===e9?void 0:e9.nodes)||void 0===e7?void 0:e7[0])||void 0===te?void 0:te.uri,linkText:tR.data.view_all_button_text,posts:null!==(tn=null===(tr=null===(tt=null==tM?void 0:tM.posts)||void 0===tt?void 0:tt.nodes)||void 0===tr?void 0:tr.filter(d.Z))&&void 0!==tn?tn:[],title:tR.data.title},tL)}case v.Z.AcfListArticleBlock:{let r=(null==tF?void 0:tF.AcfListArticleBlock)||V;return(0,o.jsx)(r,{area:tA,className:tR.className,excludeCategoryId:(null===(ti=tM.excludedCategoryIds)||void 0===ti?void 0:ti.filter(d.Z))||[],firstPagePosts:tM.posts,frequency:tZ,loadMoreLabel:tM.loadMoreLabel,layout:tM.layout,postsCount:tM.postsCount,showLoadMore:tM.showLoadMoreButton,showShareButton:tM.showShareButton,title:tM.title},tL)}case v.Z.AcfArticleListBlock:{let r=(null==tF?void 0:tF.AcfArticleListBlock)||q;return(0,o.jsx)(r,{area:tA,className:tR.className,frequency:tZ,layout:null!==(to=tM.layout)&&void 0!==to?to:void 0,postsCount:null!==(ta=tM.postsCount)&&void 0!==ta?ta:void 0,where:null!==(ts=tM.where)&&void 0!==ts?ts:void 0,actionButtonType:tM.actionButtonType,actionButtonLabel:null!==(tl=tM.actionButtonLabel)&&void 0!==tl?tl:void 0,actionButtonLink:null!==(tc=tM.actionButtonLink)&&void 0!==tc?tc:void 0,postsDeduplicationEnabled:"yes"===tM.postsDeduplicationEnabled,firstPagePosts:tM.posts,title:null!==(tu=tM.title)&&void 0!==tu?tu:"",includeSectionDivider:"0"!==tM.includeSectionDivider,hasImageLazyLoad:null===(td=null==tM?void 0:tM.hasImageLazyLoad)||void 0===td||td},tL)}case v.Z.AcfProductSummaryBlock:{let r=(null==tF?void 0:tF.AcfProductSummaryBlock)||ef;return(0,o.jsx)(r,{area:tA,className:null==tR?void 0:tR.className,frequency:tZ,headings:tM.headings,title:tM.title},tL)}case v.Z.YoastSeoTableOfContentsBlock:{let r=(null==tF?void 0:tF.YoastSeoTableOfContentsBlock)||em;return(0,o.jsx)(r,{area:tA,className:null==tR?void 0:tR.className,frequency:tZ,maxHeadingLevel:tM.attributes.maxHeadingLevel,title:tM.attributes.title},tL)}case v.Z.AcfProductCardBlock:{let r=(null==tF?void 0:tF.AcfProductCardBlock)||ey;return(null==tR?void 0:tR.data)&&(0,o.jsx)(r,{area:tA,className:null==tR?void 0:tR.className,data:null==tR?void 0:tR.data,frequency:tZ,image:tM.image},tL)}case v.Z.AcfProductTableBlock:{let r=(null==tR?void 0:tR.data)?(0,u.Z)(tR.data,"items"):void 0,n=(null==tF?void 0:tF.AcfProductTableBlock)||ep;return(0,o.jsx)(n,{area:tA,className:null==tR?void 0:tR.className,data:r,frequency:tZ,items:tM.items},tL)}case v.Z.AcfProductListLightBlock:{let r=(null==tF?void 0:tF.AcfProductListLightBlock)||eg;return(0,o.jsx)(r,{area:tA,className:tR.className,frequency:tZ,products:null!==(tp=null===(th=tM.products)||void 0===th?void 0:th.filter(d.Z))&&void 0!==tp?tp:[]},tL)}case v.Z.AcfRecipeBlock:{let r=(null==tF?void 0:tF.AcfRecipeBlock)||F,n="extend"in r?r.component:r;return(0,o.jsx)(n,{area:tA,className:tR.className,frequency:tZ,recipe:null==tM?void 0:tM.recipe})}case v.Z.AcfRecipeSearchBlock:{let r=(0,u.Z)(tR.data,"items"),n=(null==tF?void 0:tF.AcfRecipeSearchBlock)||ej;return(0,o.jsx)(n,{area:tA,className:tR.className,frequency:tZ,items:r,showImages:(null===(tf=null==tR?void 0:tR.data)||void 0===tf?void 0:tf.use_item_image)==="1",title:null===(tm=null==tR?void 0:tR.data)||void 0===tm?void 0:tm.title})}case v.Z.AcfRecipeResearchCollectionBlock:{let r=(null==tF?void 0:tF.AcfRecipeResearchCollectionBlock)||eO;return(0,o.jsx)(r,{area:tA,className:tR.className,description:null===(tg=null==tR?void 0:tR.data)||void 0===tg?void 0:tg.recipe_collection_description,frequency:tZ,image:null===(tv=null==tR?void 0:tR.data)||void 0===tv?void 0:tv.recipe_collection_image,link:null===(ty=null==tR?void 0:tR.data)||void 0===ty?void 0:ty.recipe_collection_link,linkText:null===(tb=null==tR?void 0:tR.data)||void 0===tb?void 0:tb.recipe_collection_text_of_link,title:null===(tx=null==tR?void 0:tR.data)||void 0===tx?void 0:tx.recipe_collection_title})}case v.Z.AcfRelatedArticlesInlineBlock:{let r=(null==tF?void 0:tF.AcfRelatedArticlesInlineBlock)||eP;return(0,o.jsx)(r,{},tL)}case v.Z.AcfSidebarBlockBlock:{let r=(null==tF?void 0:tF.AcfSidebarBlockBlock)||U;return(0,o.jsx)(r,{area:tA,category:tM.category,className:tR.className,frequency:tZ,posts:tM.posts,showShareButton:tM.showShareButton,showViewAllButton:tM.showViewAllButton,title:tM.title,type:tM.type,viewAllLabel:tM.viewAllLabel},tL)}case v.Z.AcfToolsAndMaterialsBlock:{let r=(null==tF?void 0:tF.AcfToolsAndMaterialsBlock)||K;return(0,o.jsx)(r,{area:tA,className:tR.className,frequency:tZ,toolsAndMaterials:tM.toolsAndMaterials})}case v.Z.AcfToutCategoryBlock:{let r=(null==tF?void 0:tF.AcfToutCategoryBlock)||ew;return(0,o.jsx)(r,{area:tA,category:tM.category,className:tR.className,frequency:tZ,imagesLoadingType:(null===(t_=null==tR?void 0:tR.data)||void 0===t_?void 0:t_.images_loading_type)||"lazy",posts:tM.posts,title:tM.title,type:tM.type,viewAllLabel:tM.viewAllLabel},tL)}case v.Z.AcfTrustBadgeBlock:{let r=(null==tF?void 0:tF.AcfTrustBadgeBlock)||ex;return(0,o.jsx)(r,{area:tA,className:tR.className,frequency:tZ,linkText:null===(tw=null==tR?void 0:tR.data)||void 0===tw?void 0:tw.url_text,text:null===(tS=null==tR?void 0:tR.data)||void 0===tS?void 0:tS.text,title:null===(tT=null==tR?void 0:tR.data)||void 0===tT?void 0:tT.title,url:null===(tE=null==tR?void 0:tR.data)||void 0===tE?void 0:tE.url},tL)}case v.Z.AcfTopStoryBlock:{let r=(null==tF?void 0:tF.AcfTopStoryBlock)||e_;return(null==tM?void 0:tM.post)&&(0,o.jsx)(r,{area:tA,className:tR.className,frequency:tZ,imagesLoadingType:(null===(tk=null==tR?void 0:tR.data)||void 0===tk?void 0:tk.images_loading_type)||"lazy",post:tM.post},tL)}case v.Z.AcfWarrantyBlock:{let r=(null==tF?void 0:tF.AcfWarrantyBlock)||eS;return(0,o.jsx)(r,{area:tA,className:tR.className,data:null==tR?void 0:tR.data,frequency:tZ},tL)}case v.Z.AcfSitemapBlock:{let r=(null==tF?void 0:tF.AcfSitemapBlock)||eI;return(0,o.jsx)(r,{area:tA,className:tR.className,frequency:tZ,links:tM.links,title:null!==(tC=tM.title)&&void 0!==tC?tC:""},tL)}case v.Z.EmpireioConnatixElementsBlock:{let r=(null==tF?void 0:tF.EmpireioConnatixElementsBlock)||eZ;return(0,o.jsx)(r,{area:tA,className:null==tR?void 0:tR.className,frequency:tZ,videoId:null==tR?void 0:tR.videoId},tL)}case v.Z.PdfembPdfEmbedderViewerBlock:{let r=(null==tF?void 0:tF.PdfembPdfEmbedderViewerBlock)||eh;return(0,o.jsx)(r,{area:tA,className:null==tR?void 0:tR.className,frequency:tZ,height:null==tR?void 0:tR.height,url:null==tR?void 0:tR.url,width:null==tR?void 0:tR.width},tL)}case v.Z.YoastSeoBreadcrumbsBlock:{let r=(null==tF?void 0:tF.YoastSeoBreadcrumbsBlock)||eT;return(0,o.jsx)(r,{area:tA,breadcrumbs:tM.breadcrumbs,className:null==tR?void 0:tR.className,frequency:tZ},tL)}case v.Z.YoastFaqBlock:{let r=(null==tF?void 0:tF.YoastFaqBlock)||eE;return(0,o.jsx)(r,{area:tA,className:null==tR?void 0:tR.className,frequency:tZ,questions:null==tR?void 0:tR.questions},tL)}case v.Z.YoastHowToBlock:{let r=(null==tF?void 0:tF.YoastHowToBlock)||ek;return(0,o.jsx)(r,{area:tA,className:null==tR?void 0:tR.className,days:null==tR?void 0:tR.days,defaultDurationText:null==tR?void 0:tR.defaultDurationText,frequency:tZ,hasDuration:null==tR?void 0:tR.hasDuration,hours:null==tR?void 0:tR.hours,jsonDescription:null==tR?void 0:tR.jsonDescription,minutes:null==tR?void 0:tR.minutes,steps:null==tR?void 0:tR.steps},tL)}case v.Z.OrganicAffiliateProductCardBlock:{let r=(null==tF?void 0:tF.OrganicAffiliateProductCardBlock)||eR;return(0,o.jsx)(r,{area:tA,className:null==tR?void 0:tR.className,frequency:tZ,productCardSnippet:null==tR?void 0:tR.productCardSnippet},tL)}case v.Z.OrganicAffiliateProductCarouselBlock:{let r=(null==tF?void 0:tF.OrganicAffiliateProductCarouselBlock)||eD;return(0,o.jsx)(r,{area:tA,className:null==tR?void 0:tR.className,frequency:tZ,productCarouselSnippet:null==tR?void 0:tR.productCarouselSnippet},tL)}case v.Z.AcfInlinePostBlock:{let r=["core/html","core/paragraph","core/image","core/gallery","core/heading","core/list","core/embed","core/video","core/audio","core/pullquote","core/quote","core/separator"];if(!(null===(tO=null===(tP=tM.inlinePost)||void 0===tP?void 0:tP.post)||void 0===tO?void 0:tO.blocks))return null;let n=tM.inlinePost.post.blocks.filter(d.Z).filter(n=>r.includes(n.name));return tM.inlinePost.showDescription&&(n=[{name:"core/heading",attributes:{level:2,anchor:"#",content:tM.inlinePost.post.title,innerBlocks:[]}},...n]),(0,L.t7)(n.map(h.Z)).map(r=>{let{block:i,frequency:a}=r,s=tZ&&n.length>1?parseFloat("".concat(tZ,".").concat(a)):tZ;return(0,o.jsx)(eL,{area:tA,block:i,frequency:s},i.order)})}case"element":return null==tR?void 0:tR.element;default:return(0,o.jsx)("div",{dangerouslySetInnerHTML:{__html:null===(tj=tM.attributes)||void 0===tj?void 0:tj.content},className:"original-content","data-rawhtml":"1"})}}},94018:function(r,n,i){"use strict";i.d(n,{t7:function(){return a},u7:function(){return o}});let o=r=>{let n=r.find(r=>"core/paragraph"===r.name||"core/list"===r.name);return r.map(r=>r.order===(null==n?void 0:n.order)?Object.assign(Object.assign({},r),{attributes:Object.assign(Object.assign({},null==r?void 0:r.attributes),{dropCap:!0})}):r)},a=r=>{let n=new Map;return(null==r?void 0:r.map(r=>{let i=n.get(r.name)||1;return n.set(r.name,i+1),{block:r,frequency:i}}))||[]}},34344:function(r,n,i){"use strict";var o=i(85893),a=i(30487),s=i(94018);let l=r=>{var n;let{area:i,blocks:l,components:c}=r;return(0,o.jsx)(o.Fragment,{children:!!(null==l?void 0:l.length)&&(null===(n=(0,s.t7)(l))||void 0===n?void 0:n.map(r=>{let{block:n,frequency:s}=r;return(0,o.jsx)(a.Z,{area:i,block:n,components:c,frequency:s},n.order)}))})};n.Z=l},51594:function(r,n){"use strict";n.Z={AcfArticleBlock:"acf/article",AcfArticleListBlock:"acf/article-list",AcfArticleGridBlock:"acf/article-grid",AcfArticleSliderBlock:"acf/articles-slider",AcfCallToActionBlock:"acf/call-to-action",AcfFacebookPostBlock:"acf/facebook-post",AcfFacebookVideoBlock:"acf/facebook-video",AcfGraphicalCtaBlock:"acf/graphical-cta",AcfHowToStepBlock:"acf/howtostep",AcfImageWithSubtitleBlock:"acf/image-with-subtitle",AcfInfoBadgeBlock:"acf/info-badge",AcfInlinePostBlock:"acf/inline-post",AcfLatestRecipesBlock:"acf/latest-recipes",AcfListArticleBlock:"acf/list-article",AcfProductCardBlock:"acf/product-card",AcfProductListLightBlock:"acf/product-list-light",AcfProductSummaryBlock:"acf/product-summary",AcfProductTableBlock:"acf/product-table",AcfRecipeBlock:"acf/recipe",AcfRecipeResearchCollectionBlock:"acf/recipe
229-research-collection",AcfRecipeSearchBlock:"acf/recipe-search",AcfRelatedArticlesInlineBlock:"acf/related-articles-inline",AcfSidebarBlockBlock:"acf/sidebarblock",AcfSingleToutSmallBlock:"acf/single-tout-small",AcfSitemapBlock:"acf/sitemapblock",AcfToolsAndMaterialsBlock:"acf/toolsandmaterials",AcfTopStoryBlock:"acf/topstory",AcfToutCategoryBlock:"acf/tout-category",AcfTrustBadgeBlock:"acf/trust-badge",AcfWarrantyBlock:"acf/warranty",CoreAudioBlock:"core/audio",CoreBlockBlock:"core/block",CoreButtonBlock:"core/button",CoreButtonsBlock:"core/buttons",CoreColumnsBlock:"core/columns",CoreCoverBlock:"core/cover",CoreEmbedBlock:"core/embed",CoreFileBlock:"core/file",CoreGalleryBlock:"core/gallery",CoreGroupBlock:"core/group",CoreHeadingBlock:"core/heading",CoreHtmlBlock:"core/html",CoreImageBlock:"core/image",CoreLatestPostsBlock:"core/latest-posts",CoreListBlock:"core/list",CoreParagraphBlock:"core/paragraph",CorePullquoteBlock:"core/pullquote",CoreQuoteBlock:"core/quote",CoreSearchBlock:"core/search",CoreSeparatorBlock:"core/separator",CoreTableBlock:"core/table",CoreVideoBlock:"core/video",EmpireioConnatixElementsBlock:"empireio/connatix-elements",OrganicAffiliateProductCardBlock:"organic/affiliate-product-card",OrganicAffiliateProductCarouselBlock:"organic/affiliate-product-carousel",PdfembPdfEmbedderViewerBlock:"pdfemb/pdf-embedder-viewer",YoastFaqBlock:"yoast/faq-block",YoastHowToBlock:"yoast/how-to-block",YoastSeoBreadcrumbsBlock:"yoast-seo/breadcrumbs",YoastSeoTableOfContentsBlock:"yoast-seo/table-of-contents"}},95156:function(r,n,i){"use strict";i.d(n,{Z:function(){return y}});var o=i(85893),a=i(26447),s=i(86886),l=i(93967),c=i.n(l),u=i(79071),d=i(87357),h=i(15861),p=i(98010),f=i(59471),m=i(93985);let g=r=>{let{date:n,featuredImageAltText:i,featuredImageUrl:s,featuredImageRatio:l=4/3,modified:c,showModifiedDate:u,title:g,uri:v,sx:y}=r;return v&&g?(0,o.jsxs)(a.Z,Object.assign({className:"article-grid__item",sx:Object.assign({fontSize:20},y)},{children:[!!s&&(0,o.jsx)(f.Z,Object.assign({href:v,passHref:!0},{children:(0,o.jsx)(d.Z,Object.assign({className:"article-grid__item-image",component:"a",title:g},{children:(0,o.jsx)(m.Z,{alt:i||g,maxWidth:560,ratio:l,src:s,title:g})}))})),(0,o.jsx)(f.Z,Object.assign({href:v,passHref:!0},{children:(0,o.jsxs)(a.Z,Object.assign({className:"article-grid__item-text",component:"a",spacing:.25,sx:{px:1.25,py:2,textDecoration:"none",color:"text.primary"}}
229,{children:[(0,o.jsx)(h.Z,Object.assign({className:"article-grid__item-title",sx:{lineHeight:1.2,fontSize:"inherit"},title:g,variant:"h6"},{children:g})),n&&(0,o.jsx)(h.Z,Object.assign({className:"article-grid__item-date",color:"grey.500",component:"p",sx:{textTransform:"uppercase"},variant:"body2"},{children:(0,p.Z)(n,null!=c?c:void 0,!!u)}))]}))}))]})):null},v=r=>{let{Header:n,area:i,blockType:l,className:d,featuredImageRatio:h,frequency:p,gridProps:f,posts:m,spacing:v=3.75,sxItem:y,title:b}=r,x=n?(0,o.jsx)(n,{children:b}):(0,o.jsx)(u.Z,{align:"left",sx:{fontWeight:500,color:"grey.500"},text:b});return(0,o.jsxs)(a.Z,Object.assign({className:c()("article-grid",d),"data-og-block-area":i,"data-og-block-nth":p,"data-og-block-type":l,direction:"column"},{children:[b&&x,(0,o.jsx)(s.ZP,Object.assign({mt:0,spacing:v,container:!0},{children:null==m?void 0:m.map(r=>(0,o.jsx)(s.ZP,Object.assign({lg:3,md:4,sm:6,xs:12},f,{item:!0},{children:(0,o.jsx)(g,{date:r.date,featuredImageAltText:r.featuredImageAltText,featuredImageRatio:h,featuredImageUrl:r.featuredImageUrl,id:r.id,modified:r.modified,showModifiedDate:r.showModifiedDate,sx:y,title:r.title,uri:r.uri})}),r.id||r.uri))}))]}))};var y=v},23632:function(r,n,i){"use strict";var o=i(85893),a=i(15861),s=i(76386);let l=r=>{let{authorLinkSx:n,authors:i,color:l="primary.main",spacer:c=", ",variant:u}=r;return i.length?(0,o.jsx)(a.Z,Object.assign({color:l,component:"span",variant:u},{children:i.map(r=>(0,o.jsx)(s.Z,{author:r,color:l,sx:Object.assign({px:2,py:1},n),variant:u},r.uri)).reduce((r,n)=>[r,c,n])})):(0,o.jsx)(o.Fragment,{})};n.Z=l},13491:function(r,n,i){"use strict";i.d(n,{s:function(){return a}});var o,a,s=i(85893),l=i(87357),c=i(15861),u=i(26447),d=i(83321),h=i(55113),p=i(78462),f=i(97212),m=i(41920),g=i(60328),v=i(21596),y=i(17140),b=i(59471),x=i(51594),_=i(23632),w=i(93985);(o=a||(a={})).DEFAULT="default",o.SIDEBAR="sidebar";let S=r=>{var n,i,o,u;let{imagesLoadingType:d="lazy",post:h,showImage:p,style:f}=r,{featuredImage:m}=(0,y.Z)(h),g=f===a.DEFAULT?"primary.main":void 0;return h.uri?(0,s.jsxs)(l.Z,{children:[p&&(0,s.jsx)(l.Z,Object.assign({mb:2,pb:2},{children:(0,s.jsx)(b.Z,Object.assign({href:h.uri,passHref:!0},{children:(0,s.jsx)(l.Z,Object.assign({component:"a"},{children:(0,s.jsx)(w.Z,{crop:{widthRatio:16,heightRatio:9},image:m.node,loading:d,maxWidth:900})}))}))})),(0,s.jsxs)(l.Z,Object.assign({sx:{px:p?2:0}},{children:[(0,s.jsx)(b.Z,Object.assign({href:h.uri,passHref:!0},{children:(0,s.jsx)(l.Z,Object.assign({component:"a",sx:{textDecoration:"none",color:"black",lineHeight:"1.2",transition:"color .2s ease-out;",":hover":{color:f===a.DEFAULT?"primary.main":null}}},{children:(0,s.jsx)(c.Z,{component:"h3",dangerouslySetInnerHTML:{__html:null!==(n=h.title)&&void 0!==n?n:""},"data-rawhtml":"1",fontWeight:500,lineHeight:1.1,sx:{fontSize:"1.25em",mb:.5}})}))})),(0,s.jsxs)(l.Z,Object.assign({color:f===a.DEFAULT?"primary":"black",display:"flex",sx:{textTransform:"uppercase"}},{children:[(0,s.jsx)(c.Z,Object.assign({component:"span",sx:{pr:.5,color:g}},{children:"by"})),(0,s.jsx)(_.Z,{authors:null!==(u=null===(o=null===(i=h.authorTags)||void 0===i?void 0:i.nodes)||void 0===o?void 0:o.filter(r=>Boolean(r)))&&void 0!==u?u:[],color:g})]}))]}))]}):(0,s.jsx)(s.Fragment,{})},T=r=>{let{category:n,customHeaderBackground:i,iconUrl:o,style:u,title:d}=r,h=(0,m.Z)();return n.uri?(0,s.jsxs)(c.Z,Object.assign({component:"h2",sx:{px:3,display:"flex",alignItems:"center",whiteSpace:"nowrap",justifyContent:u===a.SIDEBAR?"center":null,background:u===a.DEFAULT?i||(null==h?void 0:h.sectionBackgroundColor):"white",color:u===a.DEFAULT?null==h?void 0:h.sectionTitleColor:"black"}},{children:[o&&u===a.DEFAULT&&(0,s.jsx)("img",{alt:"",height:30,src:(0,g.Z)(o),srcSet:(0,v.Z)(o,30),width:30}),(0,s.jsx)(b.Z,Object.assign({href:n.uri,passHref:!0},{children:(0,s.jsx)(l.Z,Object.assign({component:"a",sx:{textDecoration:"none"}},{children:(0,s.jsx)(c.Z,Object.assign({component:"p",sx:{color:u===a.DEFAULT?"white":"primary.main",pl:.5,whiteSpace:"nowrap",textTransform:"uppercase",fontWeight:u===a.DEFAULT?700:400,lineHeight:2.1,fontSize:u===a.DEFAULT?"1.4em":"28px",justifyContent:u===a.SIDEBAR?"center":null}},{children:d||n.name}))}))}))]})):(0,s.jsx)(s.Fragment,{})},E=r=>{let{link:n,text:i}=r,o=(0,m.Z)();return(0,s.jsx)(u.Z,Object.assign({display:"flex",justifyContent:"center",pb:2,sx:{position:"absolute",bottom:0,left:"50%",transform:"translate(-50%, 0)",whiteSpace:"nowrap"}},{children:(0,s.jsx)(b.Z,Object.assign({href:n,passHref:!0},{children:(0,s.jsx)(d.Z,Object.assign({"data-analytics":i,sx:{color:null==o?void 0:o.loadMoreButtonColor,background:null==o?void 0:o.loadMoreButtonBackgroun
229d,fontSize:{xxs:"0.8em",md:"1em"}},title:i,variant:"contained"},{children:i}))}))}))},k=r=>{let{button:n,category:i,headerIconUrl:o,customHeaderBackground:l,posts:c,style:d=a.DEFAULT,title:m,area:g,frequency:v,className:y,imagesLoadingType:b="lazy"}=r,[_,...w]=c;return(0,s.jsxs)(h.Z,Object.assign({className:y,component:"section","data-og-block-area":g,"data-og-block-nth":v,"data-og-block-type":x.Z.AcfToutCategoryBlock,elevation:3,sx:{position:"relative",pb:"4rem",width:d===a.DEFAULT?"100%":null,height:d===a.DEFAULT?"100%":null,minWidth:{sm:"200px"},flexGrow:0,flexShrink:0,mx:d===a.SIDEBAR?{xs:0,md:1}:null}},{children:[(0,s.jsx)(T,{category:i,customHeaderBackground:l,iconUrl:o,style:d,title:m}),(0,s.jsxs)(u.Z,Object.assign({flex:"auto",flexDirection:"column"},{children:[(0,s.jsx)(S,{post:_,style:d,showImage:!0}),(0,s.jsx)(p.Z,{children:w.map(r=>(0,s.jsx)(f.ZP,{children:(0,s.jsx)(S,{imagesLoadingType:b,post:r,style:d})},r.id))}),(0,s.jsx)(E,Object.assign({},n))]}))]}))};n.Z=k},68281:function(r,n,i){"use strict";i.r(n);var o=i(85893),a=i(87357),s=i(98456),l=i(67294);class c extends l.Component{static scriptAlreadyExists(){return null!==document.querySelector("script#connatix-player")}static getConnatixCnx(){return void 0===window.cnx&&(window.cnx={cmd:[]}),window.cnx}componentDidMount(){c.scriptAlreadyExists()||this.loadConnatixScript(),this.renderPlayer()}componentWillUnmount(){this.removePlayer()}render(){let{hidePlaylist:r}=this.props,{isLoaded:n}=this.state;return(0,o.jsxs)(a.Z,Object.assign({sx:{displayPrint:"none",width:"100%","cnx.cnx-g-container":{display:r?"none":"block"}}},{children:[(0,o.jsx)(a.Z,{id:this.getRenderId()}),(0,o.jsx)(a.Z,Object.assign({sx:{display:"flex",alignItems:"center",justifyContent:"center"}},{children:!n&&(0,o.jsx)(a.Z,Object.assign({sx:{paddingTop:"28%",paddingBottom:"28%"}},{children:(0,o.jsx)(s.Z,{"aria-describedby":"Video is loading",size:70,sx:{},"aria-busy":!0})}))}))]}))}constructor(r){super(r),this.loadConnatixScript=()=>{let r=document.createElement("script");r.id="connatix-player",r.src="//cd.connatix.com/connatix.player.js",r.async=!0,r.onload=()=>{this.renderPlayer()},document.body.append(r)},this.getRenderId=()=>{let{mediaId:r,playerId:n}=this.props;return["cntx_",n,null!=r?r:""].join("_")},this.renderPlayer=()=>{let{mediaId:r,playerId:n}=this.props,i=c.getConnatixCnx();i.cmd.push(()=>{i({playerId:n,mediaId:r}).render(this.getRenderId(),(r,n)=>{this.setState({playerApi:n,isLoaded:!0})})})},this.removePlayer=()=>{let{playerApi:r}=this.state;null==r||r.destroy()},this.state={playerApi:void 0,isLoaded:!1}}}n.default=c},17515:function(r,n,i){"use strict";var o=i(85893),a=i(78298),s=i(13379),l=i(87357),c=i(83321),u=i(12916);let d=r=>{let{hasNextPage:n,hasPreviousPage:i,loading:d=!1,onNextClick:h,onPreviousClick:p}=r;return n||i?(0,o.jsxs)(l.Z,{children:[(0,o.jsx)(u.Z,{loading:d}),(0,o.jsx)(c.Z,Object.assign({disabled:!i,onClick:p,startIcon:(0,o.jsx)(a.Z,{}),sx:{mr:2,fontWeight:"bold"},variant:"outlined"},{children:"Previous"})),(0,o.jsx)(c.Z,Object.assign({disabled:!n,endIcon:(0,o.jsx)(s.Z,{}),onClick:h,sx:{fontWeight:"bold"},variant:"outlined"},{children:"Next"}))]}):null};n.Z=d},88654:function(r,n,i){"use strict";i.d(n,{Z:function(){return h}});var o=i(85893),a=i(26447),s=i(23795),l=i(15861),c=i(83321);let u=r=>"/"===r.slice(-1)?u(r.slice(0,-1)):r.substring(r.lastIndexOf("/")+1),d=r=>{let{downloadButtonText:n,fileName:i,href:d,showDownloadButton:h,sx:p}=r;return d?(0,o.jsxs)(a.Z,Object.assign({alignItems:"center",direction:"row",spacing:2,sx:p},{children:[(0,o.jsx)(s.Z,Object.assign({color:"inherit",href:d,target:"_blank",underline:"none"},{children:(0,o.jsx)(l.Z,Object.assign({component:"span"},{children:i||u(d)}))})),h&&(0,o.jsx)(c.Z,Object.assign({color:"secondary",href:d,variant:"contained"},{children:n}))]})):null};var h=d},89633:function(r,n,i){"use strict";i.d(n,{Z:function(){return u}});var o=i(85893),a=i(94054),s=i(50135),l=i(56815),c=i(56263);function u(r){let{cssClass:n,description:i,id:u,isRequired:d,label:h,placeholder:p}=r,{setFieldValue:f}=(0,c.u6)();return(0,o.jsxs)(a.Z,Object.assign({className:n,sx:{display:"block",my:2}},{children:[(0,o.jsx)(s.Z,{id:"input_".concat(u),name:"".concat(u),onChange:r=>{f(r.target.name,{emailValues:{value:r.target.value}})},placeholder:p||"EMAIL",required:d||!1,sx:{background:"#fff"},type:"email",variant:"outlined",fullWidth:!0,label:h}),(0,o.jsx)(l.Z,{"data-rawhtml":"1",dangerouslySetInnerHTML:{__html:i||""}})]}),u)}},29725:function(r,n,i){"use strict";i.d(n,{Z:function(){return u}});var o=i(85893),a=i(94054),s=i(50135),l=i(56815),c=i(56263);function u(r){let{cssClass:n,description:i,id:u,isRequired:d,label:h,placeholder:p}=r,{handleChange:f}=(0,c.u6)();return(0,o.jsxs)(a.Z,Object.assign({className:n,sx:{display:"block",my:2}},{children:[(0,o.jsx)(s.Z,{id:"input_".concat(u),name:"".concat(u),onChange:f,placeholder:p||"",required:d||!1,sx:{background:"#fff"},type:"text",variant:"outlined",fullWidth:!0,label:h}),(0,o.jsx)(l.Z,{"data-rawhtml":"1",dangerouslySetInnerHTML:{__html:i||""}})]}),u)}},98567:function(r,n,i){"use strict";i.d(n,{Z:function(){return d}});var o=i(85893),a=i(94054),s=i(40476),l=i(87357),c=i(50135),u=i(56263);function d(r){let{cssClass:n,id:i,inputs:d,isRequired:h}=r,{setFieldValue:p}=(0,u.u6)();return(0,o.jsxs)(a.Z,Object.assign({className:n,sx:{display:"block",my:2}},{children:[(0,o.jsx)(s.Z,{children:"Name"}),(0,o.jsx)(l.Z,Object.assign({display:"flex",gap:1},{children:d&&d.filter(r=>!r.isHidden).map((r,n)=>{let{id:i,key:a,label:s}=r;return(0,o.jsx)(c.Z,{id:"input_".concat(i),name:"".concat(i),onChange:r=>{p(r.target.name,{nameValues:{name:a,value:r.target.value}})},variant:"outlined",required:h&&0===n,label:s,margin:"dense",sx:{flex:1}},i)})}))]}),i)}},82634:function(r,n,i){"use strict";var o=i(85893),a=i(87357),s=i(95810),l=i(52010),c=i(48134);let u=r=>{let{articles:n,button:i,title:u}=r;return(0,o.jsxs)(a.Z,Object.assign({mt:1},{children:[(0,o.jsx)(c.Z,{children:u}),(0,o.jsx)(l.Z,{links:n,bordered:!0}
229),i&&(0,o.jsx)(a.Z,Object.assign({sx:{textAlign:"center"}},{children:(0,o.jsx)(s.Z,Object.assign({},i))}))]}))};n.Z=u},32477:function(r,n,i){"use strict";var o=i(85893),a=i(87357),s=i(55113),l=i(38665),c=i(41920),u=i(95810),d=i(48134),h=i(44106);let p=r=>{let{category:n,showViewAllButton:i=!0,stories:p,title:f,viewAllLabel:m="See all"}=r,g=(0,c.Z)(),{absoluteUrl:v}=(0,l.Z)();return(0,o.jsxs)(a.Z,Object.assign({mb:1,mt:1},{children:[(0,o.jsx)(d.Z,Object.assign({color:null==g?void 0:g.sectionsTitleColor},{children:f||n.name})),(0,o.jsxs)(s.Z,Object.assign({elevation:25,sx:{mt:1}},{children:[null==p?void 0:p.map(r=>(0,o.jsx)(a.Z,Object.assign({sx:{paddingTop:3.5,paddingBottom:1.5,margin:"auto",paddingX:{xs:"10%",sm:"6%",md:"10%",lg:"20%"},textAlign:"center"}},{children:(0,o.jsx)(h.Z,Object.assign({},r))}),r.id)),i&&n.uri&&(0,o.jsx)(a.Z,Object.assign({sx:{textAlign:"center",paddingY:1.5}},{children:(0,o.jsx)(u.Z,{as:n.uri,buttonProps:{sx:{color:null==g?void 0:g.loadMoreButtonColor,background:null==g?void 0:g.loadMoreButtonBackground}},href:v(n.uri),text:m})}))]}))]}))};n.Z=p},64176:function(r,n,i){"use strict";i.d(n,{Z:function(){return b}});var o=i(85893),a=i(87357),s=i(67720),l=i(15861),c=i(47036),u=i(59471),d=i(93985),h=i(26447),p=i(83321),f=i(85165),m=i(98010),g=i(40785);let v=r=>{var n;let{author:i,category:s,date:c,modified:d,shareButton:v,showModifiedDate:y}=r,{options:b}=(0,f.Z)(),x=(0,m.Z)(c,d,y,null==b?void 0:b.dateFormatListArticle);return(0,o.jsxs)(o.Fragment,{children:[i&&(0,o.jsxs)(a.Z,Object.assign({sx:{marginBottom:1}},{children:[(0,o.jsx)(l.Z,Object.assign({component:"span",sx:{display:"inline"}},{children:"BY"})),(0,o.jsx)(u.Z,Object.assign({href:null!==(n=i.uri)&&void 0!==n?n:"",passHref:!0},{children:(0,o.jsx)(l.Z,Object.assign({component:"a",sx:{color:"unset",textDecoration:"none",marginLeft:.5,textTransform:"uppercase",cursor:"pointer",":hover":{color:"primary.main"}}},{children:i.name}))}))]})),x&&(0,o.jsx)(l.Z,Object.assign({component:"p",sx:{color:"grey.500",marginBottom:1.5}},{children:x})),(0,o.jsxs)(h.Z,Object.assign({spacing:1,sx:{alignItems:{xs:"flex-start",sm:"flex-end"}}},{children:[(null==s?void 0:s.uri)&&(0,o.jsx)(u.Z,Object.assign({href:s.uri,passHref:!0},{children:(0,o.jsx)(p.Z,Object.assign({component:"a",sx:{variant:"outlined",fontWeight:600,fontSize:"13px",px:.5,lineHeight:"1.1em",justifyContent:"center",width:"auto"},variant:"outlined"},{children:s.name}))})),v&&(0,o.jsx)(g.Z,Object.assign({},v))]}))]})},y=r=>{let{author:n,category:i,contentType:h,date:p,excerpt:f,href:m,modified:g,shareButton:y,showCategory:b=!1,showModifiedDate:x,sx:_={},title:w,featuredImage:S,featuredImageRatio:T}=r,E=n?(0,o.jsx)(v,{author:n,category:b?i:void 0,date:p,modified:g,shareButton:y,showModifiedDate:x}):null;return(0,o.jsxs)(a.Z,Object.assign({component:"article",sx:Object.assign({display:"flex",flexDirection:{xs:"column-reverse",sm:"row"},justifyContent:"center",textAlign:"center"},_)},{children:[(0,o.jsx)(a.Z,Object.assign({sx:{flex:.8,marginTop:4,marginRight:1,textAlign:"right",display:{xs:"none",sm:"block"}}},{children:E})),(0,o.jsx)(s.Z,{orientation:"vertical",sx:{backgroundColor:"primary.main",display:{xs:"none",sm:"block"}},flexItem:!0}),(0,o.jsx)(u.Z,Object.assign({href:m,passHref:!0},{children:(0,o.jsxs)(a.Z,Object.assign({component:"a",sx:{flex:2,textDecoration:"none",color:"black",paddingX:{xs:0,sm:1},marginTop:{xs:1,sm:2},marginBottom:1,textAlign:"left"}},{children:[h&&(0,o.jsx)(l.Z,Object.assign({component:"span",sx:{display:"inline-block",color:"primary.main",border:"1px solid",paddingX:3,borderColor:c.Z[500],marginBottom:{xs:0,sm:1}},variant:"button"},{children:h})),(0,o.jsx)(l.Z,Object.assign({component:"h3",sx:{marginTop:{xs:1,sm:0,md:1},lineHeight:1,marginBottom:1,":hover":{color:"primary.main"}},variant:"h5"},{children:w})),(0,o.jsx)(l.Z,Object.assign({component:"p",sx:{fontWeight:300}},{children:f}))]}))})),(0,o.jsxs)(a.Z,Object.assign({sx:{flex:2,display:"flex",flexDirection:"row"}},{children:[(0,o.jsx)(a.Z,Object.assign({sx:{flex:7,display:"grid"}},{children:(0,o.jsx)(u.Z,Object.assign({href:m,passHref:!0},{children:(0,o.jsx)(a.Z,Object.assign({component:"a"},{children:(0,o.jsx)(d.Z,{crop:{widthRatio:16,heightRatio:9},image:S.node,maxWidth:380,ratio:T,title:w})}))}))})),(0,o.jsx)(s.Z,{orientation:"vertical",sx:{backgroundColor:"primary.main",marginX:1,display:{xs:"block",sm:"none"}},flexItem:!0}),(0,o.jsx)(a.Z,Object.assign({sx:{flex:3,display:{xs:"block",sm:"none"},textAlign:"left",paddingRight:1,maxWidth:180}},{children:E}))]}))]}))};var b=y},33100:function(r,n,i){"use strict";i.d(n,{$:function(){return g}});var o=i(85893),a=i(26447),s=i(87357),l=i(15861),c=i(11510),u=i(93166),d=i(59471),h=i(83634),p=i(38323),f=i(93985);let m=r=>{var n;let{category:i,date:h,dateFormat:p="MMM d, yyyy",featuredImage:m,href:g,sx:v,title:y}=r;return(0,o.jsxs)(a.Z,Object.assign({component:"article",spacing:1,sx:Object.assign({a:{color:"text.primary"}},v)},{children:[(0,o.jsx)(d.Z,Object.assign({href:g,passHref:!0},{children:(0,o.jsx)(s.Z,Object.assign({component:"a",sx:{overflow:"hidden",position:"relative",width:"100%"},title:y},{children:(0,o.jsx)(f.Z,{crop:{widthRatio:16,heightRatio:9},image:m.node,maxWidth:400,title:y})}))})),(0,o.jsxs)(a.Z,Object.assign({alignItems:"center",direction:"row",spacing:.5},{children:[(null==i?void 0:i.uri)&&(0,o.jsx)(d.Z,Object.assign({href:i.uri,passHref:!0},{children:(0,o.jsx)(l.Z,Object.assign({component:"a",fontSize:14,title:null!==(n=i.name)&&void 0!==n?n:void 0},{children:i.name}))})),h&&(0,o.jsxs)(o.Fragment,{children:[i&&(0,o.jsx)(l.Z,{children:" - "}),(0,o.jsx)(l.Z,Object.assign({color:"grey.400"},{children:(0,c.Z)(new Date(h),p)}))]})]})),(0,o.jsx)(d.Z,Object.assign({href:g,passHref:!0},{children:(0,o.jsx)(l.Z,Object.assign({component:"a",href:g,sx:{fontSize:16,textDecoration:"none",lineHeight:"1.2",transition:"color .2s ease-out;",":hover":{color:"primary.main"}},title:(0,u.Z)(y)},{children:(0,u.Z)(y)}))}))]}))},g=()=>(0,o.jsxs)(a.Z,Object.assign({component:"article",spacing:1},{children:[(0,o.jsx)(h.Z,{height:143}),(0,o.jsxs)(a.Z,Object.assign({alignItems:"center",direction:"row"},{children:[(0,o.jsx)(p.Z,{width:"6rem"}),(0,o.jsx)(p.Z,{width:"4rem"})]})),(0,o.jsx)(p.Z,{}),(0,o.jsx)(p.Z,{})]}));n.Z=m},44106:function(r,n,i){"use strict";var o=i(85893),a=i(87357),s=i(15861),l=i(47036),c=i(98010),u=i(59471),d=i(93985),h=i(40785);let p=r=>{let{date:n,modified:i,showModifiedDate:p,href:f,featuredImage:m,shareButton:g,sx:v={},title:y}=r,b=(0,c.Z)(n,i,p);return(0,o.jsxs)(a.Z,Object.assign({component:"article",sx:Object.assign({display:"flex",flexDirection:{xs:"column",sm:"row",md:"column"},justifyContent:"center",textAlign:"center",margin:"auto",maxWidth:{xs:600,sm:"unset",md:400},mx:0},v)},{children:[(0,o.jsx)(a.Z,Object.assign({sx:{flex:1,display:"grid"}},{children:(0,o.jsx)(u.Z,Object.assign({href:f,passHref:!0},{children:(0,o.jsx)(a.Z,Object.assign({component:"a"},{children:(0,o.jsx)(d.Z,{crop:{widthRatio:16,heightRatio:9},image:m.node,maxWidth:400,ratio:1.6,title:y})}))}))})),(0,o.jsxs)(a.Z,Object.assign({sx:{flex:1,paddingX:{xs:0,sm:2,md:0}}},{children:[(0,o.jsx)(u.Z,Object.assign({href:f,passHref:!0},{children:(0,o.jsxs)(a.Z,Object.assign({component:"a",sx:{textDecoration:"none",color:"black"}},{children:[(0,o.jsx)(s.Z,Object.assign({component:"h3",sx:{textAlign:{xs:"center",sm:"left",md:"center"},marginTop:{xs:1,sm:0,md:1},lineHeight:1,marginBottom:1,":hover":{color:"primary.main"}},variant:"h6"},{children:y})),n&&(0,o.jsx)(s.Z,Object.assign({component:"p",sx:{color:l.Z[500]},variant:"body2"},{children:b}))]}))})),g&&(0,o.jsx)(a.Z,Object.assign({sx:{marginTop:2}},{children:(0,o.jsx)(h.Z,Object.assign({},g))}))]}))]}))};
229n.Z=p},12916:function(r,n,i){"use strict";var o=i(85893),a=i(84808),s=i(98456);let l=r=>{let{loading:n}=r;return(0,o.jsx)(a.Z,Object.assign({open:n,sx:{color:"#fff",zIndex:r=>{let{zIndex:n}=r;return n.tooltip+1}}},{children:(0,o.jsx)(s.Z,{color:"inherit"})}))};n.Z=l},76780:function(r,n,i){"use strict";var o=i(85893),a=i(98396),s=i(87357),l=i(26447),c=i(23795),u=i(15861),d=i(47036),h=i(10615);i(1538);var p=i(93166),f=i(97924);let m=r=>{let{posts:n}=r,i=(0,a.Z)(r=>r.breakpoints.down("sm"));return(0,o.jsx)(s.Z,Object.assign({sx:{li:{borderLeft:"1px dotted #adadad",":first-child":{borderLeft:"none"}}}},{children:(0,o.jsx)(h.lr,Object.assign({autoPlay:!1,centerSlidePercentage:100/(i?2:3),showIndicators:!1,showStatus:!1,showThumbs:!1,centerMode:!0,infiniteLoop:!0,showArrows:!0,swipeable:!0},{children:n.map(r=>{var n,i,a,s,h;let m=(null===(i=null===(n=null==r?void 0:r.categories)||void 0===n?void 0:n.nodes)||void 0===i?void 0:i.length)?r.categories.nodes[r.categories.nodes.length-1]:null,g=null===(h=null===(s=null===(a=r.authorTags)||void 0===a?void 0:a.nodes)||void 0===s?void 0:s.filter(f.Z))||void 0===h?void 0:h.map(r=>{let{name:n}=r;return n}).join(", ");return(0,o.jsxs)(l.Z,Object.assign({direction:"column",sx:{px:3,alignItems:"center"}},{children:[(0,o.jsx)(c.Z,Object.assign({href:r.uri||"",sx:{textDecoration:"none",color:"secondary.main",":hover":{color:"primary.main"}}},{children:(0,o.jsx)(u.Z,Object.assign({sx:{fontWeight:700,fontSize:"0.8rem",textTransform:"uppercase"}},{children:(0,p.Z)(r.title||"")}))})),g&&(0,o.jsxs)(u.Z,Object.assign({sx:{color:d.Z[600],fontSize:"0.7rem"}},{children:["By\xa0",(0,p.Z)(g)]})),(null==m?void 0:m.uri)&&m.name&&(0,o.jsxs)(u.Z,Object.assign({sx:{fontSize:"0.7rem",color:d.Z[600]}},{children:["Posted in\xa0",(0,o.jsx)(c.Z,Object.assign({href:m.uri,sx:{textTransform:"uppercase",textDecoration:"none",":hover":{color:"inherit"}}},{children:(0,p.Z)(m.name)}))]}))]}),r.uri)})}))}))};n.Z=m},14741:function(r,n,i){"use strict";i.d(n,{L:function(){return s}});var o=i(67294);let a=(0,o.createContext)(null),s=()=>(0,o.useContext)(a);n.Z=a},68465:function(r,n,i){"use strict";var o=i(85893),a=i(11163),s=i(67294),l=i(12916),c=i(14741);let u=r=>{let{children:n}
229=r,i=(0,a.useRouter)(),[u,d]=(0,s.useState)(!1);return s.useEffect(()=>{let r;let n=n=>{n!==i.asPath&&(r=setTimeout(()=>d(!0),500))},o=()=>{clearTimeout(r),d(!1)},a=(r,n)=>{"undefined"==typeof document||r&&"object"==typeof r&&"cancelled"in r&&r.cancelled||(window.stop(),document.location.href=n)};return i.events.on("routeChangeStart",n),i.events.on("routeChangeComplete",o),i.events.on("routeChangeError",a),()=>{clearTimeout(r),i.events.off("routeChangeStart",n),i.events.off("routeChangeComplete",o),i.events.off("routeChangeError",a)}},[i.asPath,i.events]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(l.Z,{loading:u}),(0,o.jsx)(c.Z.Provider,Object.assign({value:d},{children:n}))]})};n.Z=u},79371:function(r,n,i){"use strict";i.d(n,{C6:function(){return p},sW:function(){return h}});var o=i(85893),a=i(87357),s=i(8423),l=i(34344),c=i(51594),u=i(47018),d=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&0>n.indexOf(o)&&(i[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)0>n.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(i[o[a]]=r[o[a]]);return i};let h="sm",p=r=>{var n;let{enabled:i,useUncomfortableCPL:l}=r,u=d(r,["enabled","useUncomfortableCPL"]);return(0,o.jsx)(a.Z,Object.assign({},u,{sx:Object.assign(Object.assign({},i?{"> * + *":{marginBlockStart:r=>{let{spacing:n}=r;return n(4)}},'[data-og-block-type="core/column"] > div > * + *':{marginBlockStart:r=>{let{spacing:n}=r;return n(4)}},"> h2, > h3, > h4, > h5, > h6":{marginBlockStart:r=>{let{spacing:n}=r;return n(5)},"+ *":{marginBlockStart:r=>{let{spacing:n}=r;return n(3)}}},'\n [data-og-block-type="core/column"] > div > h2,\n [data-og-block-type="core/column"] > div > h3,\n [data-og-block-type="core/column"] > div > h4,\n [data-og-block-type="core/column"] > div > h5,\n [data-og-block-type="core/column"] > div > h6\n ':{marginBlockStart:r=>{let{spacing:n}=r;return n(5)},"+ *":{marginBlockStart:r=>{let{spacing:n}=r;return n(3)}},"&:first-child":{marginBlockStart:0}},['\n [data-og-block-type="'.concat(c.Z.CoreParagraphBlock,'"] a,\n [data-og-block-type="').concat(c.Z.CoreHeadingBlock,'"] a,\n [data-rawhtml="1"] a\n ')]:{color:"primary.main",textDecoration:"underline",textDecorationColor:r=>{let{palette:n}=r;return(0,s.Fq)(n.primary.main,.4)},"&:hover":{textDecorationColor:"inherit"}},['\n /* all paragraphs */\n [data-og-block-type="'.concat(c.Z.CoreParagraphBlock,'"],\n [data-rawhtml="1"] p,\n /* all list items */\n [data-og-block-type="').concat(c.Z.CoreListBlock,'"] > li,\n [data-rawhtml="1"] li\n ')]:l?{}:{maxWidth:h},['\n /* top-level paragraphs */\n > [data-og-block-type="'.concat(c.Z.CoreParagraphBlock,'"],\n > [data-rawhtml="1"] p,\n /* top-level lists */\n > [data-og-block-type="').concat(c.Z.CoreListBlock,'"],\n > [data-rawhtml="1"] ul,\n > [data-rawhtml="1"] ol,\n /* top-level headings */\n > [data-og-block-type="').concat(c.Z.CoreHeadingBlock,'"],\n > [data-rawhtml="1"] h1,\n > [data-rawhtml="1"] h2,\n > [data-rawhtml="1"] h3,\n > [data-rawhtml="1"] h4,\n > [data-rawhtml="1"] h5,\n > [data-rawhtml="1"] h6\n ')]:l?{}:{maxWidth:h,mx:"auto"},['\n > [data-og-block-type="'.concat(c.Z.CoreListBlock,'"] > li,\n > [data-rawhtml="1"] ul > li,\n > [data-rawhtml="1"] ol > li\n ')]:{ml:2.25}}:{}),null!==(n=u.sx)&&void 0!==n?n:{})}))},f=r=>{let{blocks:n,components:i,includeContentBlockStyling:a=!1,useUncomfortableCPL:s=!1,sx:c={},area:d=u.Z.article.blocks}=r;return(0,o.jsx)(p,Object.assign({enabled:a,useUncomfortableCPL:s,"data-id":"page-content","data-og-area":d,sx:c},{children:(0,o.jsx)(l.Z,{area:d,blocks:n,components:i})}))};n.ZP=f},3552:function(r,n,i){"use strict";i.d(n,{Z:function(){return em}});var o,a,s,l,c,u,d,h,p,f=i(85893),m=i(23795),g=i(58886),v=i(87357),y=i(63366),b=i(87462),x=i(67294),_=i(93680),w=i(94780),S=i(28442),T=i(90948),E=i(71657),k=i(13970),C=i(18972),P=i(10315),O=i(53252),j=i(10155),A=i(82066),M=(0,A.Z)((0,f.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),I=(0,A.Z)((0,f.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),Z=i(2734),R=i(93946),D=i(63046),L=i(42989);let z=["backIconButtonProps","count","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton"],B=x.forwardRef(function(r,n){let{backIconButtonProps:i,count:p,getItemAriaLabel:m,nextIconButtonProps:g,onPageChange:v,page:x,rowsPerPage:_,showFirstButton:w,showLastButton:S}=r,T=(0,y.Z)(r,z),E=(0,Z.Z)(),k=r=>{v(r,0)},C=r=>{v(r,x-1)},P=r=>{v(r,x+1)},O=r=>{v(r,Math.max(0,Math.ceil(p/_)-1))};return(0,f.jsxs)("div",(0,b.Z)({ref:n},T,{children:[w&&(0,f.jsx)(R.Z,{onClick:k,disabled:0===x,"aria-label":m("first",x),title:m("first",x),children:"rtl"===E.direction?o||(o=(0,f.jsx)(D.Z,{})):a||(a=(0,f.jsx)(L.Z,{}))}),(0,f.jsx)(R.Z,(0,b.Z)({onClick:C,disabled:0===x,color:"inherit","aria-label":m("previous",x),title:m("previous",x)},i,{children:"rtl"===E.direction?s||(s=(0,f.jsx)(I,{})):l||(l=(0,f.jsx)(M,{}))})),(0,f.jsx)(R.Z,(0,b.Z)({onClick:P,disabled:-1!==p&&x>=Math.ceil(p/_)-1,color:"inherit","aria-label":m("next",x),title:m("next",x)},g,{children:"rtl"===E.direction?c||(c=(0,f.jsx)(M,{})):u||(u=(0,f.jsx)(I,{}))})),S&&(0,f.jsx)(R.Z,{onClick:O,disabled:x>=Math.ceil(p/_)-1,"aria-label":m("last",x),title:m("last",x),children:"rtl"===E.direction?d||(d=(0,f.jsx)(L.Z,{})):h||(h=(0,f.jsx)(D.Z,{}))})]}))});var F=i(27909),N=i(34867),U=i(1588);function V(r){return(0,N.ZP)("MuiTablePagination",r)}let q=(0,U.Z)("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),$=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","
229showFirstButton","showLastButton"],G=(0,T.ZP)(O.Z,{name:"MuiTablePagination",slot:"Root",overridesResolver:(r,n)=>n.root})(({theme:r})=>({overflow:"auto",color:(r.vars||r).palette.text.primary,fontSize:r.typography.pxToRem(14),"&:last-child":{padding:0}})),W=(0,T.ZP)(j.Z,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(r,n)=>(0,b.Z)({[`& .${q.actions}`]:n.actions},n.toolbar)})(({theme:r})=>({minHeight:52,paddingRight:2,[`${r.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[r.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${q.actions}`]:{flexShrink:0,marginLeft:20}})),H=(0,T.ZP)("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(r,n)=>n.spacer})({flex:"1 1 100%"}),X=(0,T.ZP)("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(r,n)=>n.selectLabel})(({theme:r})=>(0,b.Z)({},r.typography.body2,{flexShrink:0})),Y=(0,T.ZP)(P.Z,{name:"MuiTablePagination",slot:"Select",overridesResolver:(r,n)=>(0,b.Z)({[`& .${q.selectIcon}`]:n.selectIcon,[`& .${q.select}`]:n.select},n.input,n.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${q.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),K=(0,T.ZP)(C.Z,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(r,n)=>n.menuItem})({}),J=(0,T.ZP)("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(r,n)=>n.displayedRows})(({theme:r})=>(0,b.Z)({},r.typography.body2,{flexShrink:0}));function Q({from:r,to:n,count:i}){return`${r}â${n} of ${-1!==i?i:`more than ${n}`}`}function ee(r){return`Go to ${r} page`}let et=r=>{let{classes:n}=r;return(0,w.Z)({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},V,n)},er=x.forwardRef(function(r,n){let i;let o=(0,E.Z)({props:r,name:"MuiTablePagination"}),{ActionsComponent:a=B,backIconButtonProps:s,className:l,colSpan:c,component:u=O.Z,count:d,getItemAriaLabel:h=ee,labelDisplayedRows:m=Q,labelRowsPerPage:g="Rows per page:",nextIconButtonProps:v,onPageChange:w,onRowsPerPageChange:T,page:C,rowsPerPage:P,rowsPerPageOptions:j=[10,25,50,100],SelectProps:A={},showFirstButton:M=!1,showLastButton:I=!1}=o,Z=(0,y.Z)(o,$),R=et(o),D=A.native?"option":K;(u===O.Z||"td"===u)&&(i=c||1e3);let L=(0,F.Z)(A.id),z=(0,F.Z)(A.labelId);return(0,f.jsx)(G,(0,b.Z)({colSpan:i,ref:n,as:u,ownerState:o,className:(0,_.Z)(R.root,l)},Z,{children:(0,f.jsxs)(W,{className:R.toolbar,children:[(0,f.jsx)(H,{className:R.spacer}),j.length>1&&(0,f.jsx)(X,{className:R.selectLabel,id:z,children:g}),j.length>1&&(0,f.jsx)(Y,(0,b.Z)({variant:"standard",input:p||(p=(0,f.jsx)(k.ZP,{})),value:P,onChange:T,id:L,labelId:z},A,{classes:(0,b.Z)({},A.classes,{root:(0,_.Z)(R.input,R.selectRoot,(A.classes||{}).root),select:(0,_.Z)(R.select,(A.classes||{}).select),icon:(0,_.Z)(R.selectIcon,(A.classes||{}).icon)}),children:j.map(r=>(0,x.createElement)(D,(0,b.Z)({},!(0,S.Z)(D)&&{ownerState:o},{className:R.menuItem,key:r.label?r.label:r,value:r.value?r.value:r}),r.label?r.label:r))})),(0,f.jsx)(J,{className:R.displayedRows,children:m({from:0===d?0:C*P+1,to:-1===d?(C+1)*P:-1===P?d:Math.min(d,(C+1)*P),count:-1===d?-1:d,page:C})}),(0,f.jsx)(a,{className:R.actions,backIconButtonProps:s,count:d,nextIconButtonProps:v,onPageChange:w,page:C,rowsPerPage:P,showFirstButton:M,showLastButton:I,getItemAriaLabel:h})]})}))});var en=i(67720),ei=i(70872),eo=i(9008),ea=i.n(eo),es=i(38665),el=i(22350),ec=i(61247),eu=i(60101),ed=i(59471),eh=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&0>n.indexOf(o)&&(i[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)0>n.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(i[o[a]]=r[o[a]]);return i};let ep=x.forwardRef((r,n)=>{let{href:i=""}=r,{absoluteUrl:o}=(0,es.Z)(),a=(0,x.useMemo)(()=>{let r=(0,eu.Z)(o(""));return"string"==typeof i&&i.startsWith(r)?i.slice(r.length):i},[o,i]);return(0,f.jsx)(ed.Z,Object.assign({as:a,href:i,ref:n},{children:(0,f.jsx)(m.Z,Object.assign({href:(0,ec.m)(i)},r))}))}),ef=r=>{var{allowChangeRowPerPage:n=!0,customPagination:i,numberOfRows:o,onRowsPerPageChange:a,page:s,rowsPerPage:l,showDividers:c=!0,totalPages:u}=r,d=eh(r,["allowChangeRowPerPage","customPagination","numberOfRows","onRowsPerPageChange","page","rowsPerPage","showDividers","totalPages"]);let h="getPageUri"in d?d.getPageUri:void 0,p="onPageChange"in d?d.onPageChange:void 0,m=u||l&&Math.ceil((o-((null==i?void 0:i.firstPageSize)||l))/((null==i?void 0:i.pageSize)||l))+1;if(m<=1)return(0,f.jsx)(f.Fragment,{});let y=r=>{null==p||p(r)},b=r=>{null==a||a(parseInt(r.target.value,10)),null==p||p(1)}
229,x={[s-1]:"prev",[s]:"canonical",[s+1]:"next",[m+1]:void 0},_=r=>{let n=Object.assign(Object.assign({},r),{sx:{border:0,fontWeight:"bold"}}),i=r.page?x[r.page]:void 0,o=r.page&&h&&r.page<=m?h(r.page):null;return o?(0,f.jsx)(g.Z,Object.assign({href:o,rel:i},n,{component:ep}),r.page):(0,f.jsx)(g.Z,Object.assign({},n))},w=h?h(s):null,{relUrlNext:S,relUrlPrev:T}=(0,el.yU)(s,m,w);return(0,f.jsxs)(f.Fragment,{children:[(S||T)&&(0,f.jsxs)(ea(),{children:[S&&(0,f.jsx)("link",{href:S,rel:"next"}),T&&(0,f.jsx)("link",{href:T,rel:"prev"})]}),(0,f.jsxs)(v.Z,Object.assign({sx:{marginBottom:3}},{children:[n&&(0,f.jsxs)(v.Z,Object.assign({sx:{display:{xs:"none",sm:"block"}}},{children:[(0,f.jsx)(er,{backIconButtonProps:{style:{display:"none"}},component:"div",count:null!=o?o:0,labelDisplayedRows:r=>{let{count:n,from:i,to:o}=r;return"Showing ".concat(i,"-").concat(o," of ").concat(n)},labelRowsPerPage:"PER PAGE",nextIconButtonProps:{style:{display:"none"}},onPageChange:(r,n)=>y(n+1),onRowsPerPageChange:b,page:s-1,rowsPerPage:l}),c&&(0,f.jsx)(en.Z,{sx:{marginBottom:1.5}})]})),(0,f.jsx)(ei.Z,{color:"primary",count:m,onChange:(r,n)=>y(n),page:s,renderItem:_,variant:"outlined"}),c&&(0,f.jsx)(en.Z,{sx:{marginTop:1.5}})]}))]})};var em=ef},7314:function(r,n,i){"use strict";var o=i(85893),a=i(87357),s=i(93967),l=i.n(s),c=i(67294),u=i(88654);let d=r=>{let{area:n,blockType:i,className:s,fileName:d,frequency:h,href:p,previewHeight:f,previewWidth:m}=r,[g,v]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{v(navigator.pdfViewerEnabled||!1)},[v]),g?(0,o.jsx)(a.Z,Object.assign({className:l()(s,"embed-pdf"),"data-og-block-area":n,"data-og-block-nth":h,"data-og-block-type":i,sx:{"> *":{display:"block",width:m?"".concat(m,"px"):"100%",height:"".concat(f,"px")}}},{children:(0,o.jsx)("object",{"aria-label":d,data:p,type:"application/pdf"})})):(0,o.jsx)(a.Z,Object.assign({className:l()(s,"embed-pdf"),"data-og-block-area":n,"data-og-block-nth":h,"data-og-block-type":i},{children:(0,o.jsx)(u.Z,{downloadButtonText:"Download",fileName:d||"",href:p,sx:{marginTop:"1.7em"},showDownloadButton:!0})}))};n.Z=d},93985:function(r,n,i){"use strict";i.d(n,{Z:function(){return h}});var o=i(85893),a=i(87357),s=i(67294),l=i(49287),c=i(21596),u=i(23538),d=i(66225);function h(r){let{alt:n,ratio:i=16/9,src:h,image:p,title:f,maxWidth:m,crop:g,loading:v="lazy",fetchPriority:y}=r,{defaultImage:b}=(0,l.Z)(),x=null;if(g&&(null==p?void 0:p.sourceUrl)&&(0,u.Z)(p.sourceUrl)){let r="".concat(g.widthRatio,":").concat(g.heightRatio);p.cropPosition&&(r="".concat(r,",").concat(p.cropPosition)),(x=new URL(p.sourceUrl)).searchParams.set("crop",r),x=x.toString()}let _=h||x||(null==p?void 0:p.sourceUrl),w=_||(null==b?void 0:b.sourceUrl),S=(0,s.useMemo)(()=>m&&_&&(0,u.Z)(_)?(0,c.Z)(_,m,g):void 0,[_,m,g]);return(0,o.jsx)(o.Fragment,{children:w&&(0,o.jsx)(a.Z,Object.assign({sx:{position:"relative",paddingBottom:"".concat(1/i*100,"%"),overflow:"hidden"}},{children:(0,o.jsx)(d.Z,{alt:n||(null==p?void 0:p.altText)||f,fetchPriority:y,loading:v,src:w,srcSet:S,title:f})}))})}},87573:function(r,n,i){"use strict";var o=i(85893),a=i(95337),s=i(87357),l=i(26447),c=i(50135),u=i(93946),d=i(15861),h=i(56263),p=i(11288);let f=r=>{let{handleOnSubmit:n,iconColor:i="black",iconSize:f,initialValues:m,inputSx:g,placeholder:v="Search...",searchResultsCount:y,sx:b}=r,x=(0,h.TA)({initialValues:m,onSubmit:n,enableReinitialize:!0}),_=void 0!==y;return(0,o.jsxs)(s.Z,Object.assign({sx:Object.assign({maxWidth:{lg:"680px",sm:"450px"},width:"100%",px:{xs:2,sm:0}},b)},{children:[(0,o.jsx)("form",Object.assign({onSubmit:x.handleSubmit},{children:(0,o.jsxs)(l.Z,Object.assign({direction:"row"},{children:[(0,o.jsx)(c.Z,{inputProps:{sx:Object.assign({fontWeight:700},g)},name:"term",onChange:x.handleChange,placeholder:v,type:"search",value:x.values.term,variant:"standard",fullWidth:!0}),(0,o.jsx)(u.Z,Object.assign({"aria-label":"search",sx:{p:1.5,paddingBottom:_?.25:1.5,color:i,fontSize:f},type:"submit",disableRipple:!0},{children:(0,o.jsx)(p.Z,{fontSize:f?"inherit":"small",icon:a.wn})}))]}))})),_&&(0,o.jsxs)(d.Z,Object.assign({fontSize:"0.9em"},{children:[y,"\xa0search results"]}))]}))};n.Z=f},40785:function(r,n,i){"use strict";var o=i(85893),a=i(69773),s=i(83321),l=i(90103),c=i(26447),u=i(67294),d=i(49287),h=i(23538),p=i(69168);let f=(r,n,i)=>{let o=(0,h.Z)(n.uri,i)?new URL(n.uri,i).href:"";switch(r){case"facebook":return{href:"https://www.facebook.com/sharer/sharer.php?u=".concat(o),color:"#1877F2"};case"twitter":case"x":return{href:"https://x.com/share?url=".concat(o,"&text=").concat((null==n?void 0:n.text)||""),color:"#000000"};case"pinterest":return{href:"https://pinterest.com/pin/create/button/?url=".concat(o,"&description=").concat((null==n?void 0:n.text)||"","&media=").concat((null==n?void 0:n.media)||""),color:"#E60023"};case"linkedin":return{href:"https://www.linkedin.com/shareArticle?mini=true&url=".concat(o,"&text=").concat((null==n?void 0:n.text)||""),color:"#0077B5"};case"email":return{href:"mailto:?subject=".concat((null==n?void 0:n.text)||"","&body=").concat(o),color:"#333"};default:return null}},m=r=>{let{buttonText:n="Share",variant:i="outlined",data:h,networks:m=["facebook","x","pinterest","linkedin","email"],popupPlacement:g="bottom"}=r,{site:v}=(0,d.Z)(),[y,b]=(0,u.useState)(null),x=r=>{b(r.currentTarget)},_=()=>{b(null)};(0,u.useEffect)(()=>(window.addEventListener("scroll",_),()=>window.removeEventListener("scroll",_)),[]);
229let w=Boolean(y),S=w?"popup-share":void 0;return(0,o.jsxs)("div",{children:[(0,o.jsx)(s.Z,Object.assign({"aria-describedby":S,endIcon:(0,o.jsx)(a.Z,{}),onClick:x,sx:{fontWeight:"bold"},variant:i},{children:n})),(0,o.jsx)(l.ZP,Object.assign({anchorEl:y,anchorOrigin:{vertical:g,horizontal:"left"},id:S,onClose:()=>b(null),open:w,transformOrigin:{vertical:"top"===g?"bottom":"top",horizontal:"left"},disableScrollLock:!0},{children:(0,o.jsx)(c.Z,Object.assign({direction:"row",spacing:.2},{children:m.map(r=>{let n=f(r,h,v.frontendUrl);return null===n?null:(0,o.jsx)(p.Z,Object.assign({},n,{type:r,variant:"square",openNewTab:!0}),r.toString())})}))}))]})};n.Z=m},64692:function(r,n,i){"use strict";var o=i(85893),a=i(26447),s=i(15861),l=i(87357),c=i(21596),u=i(18705);let d=r=>{var n,i,d,h;let{brand:p,enabled:f=!0,sx:m,text:g}=r;if(!f||!p)return null;let v=null===(n=p.nodes)||void 0===n?void 0:n[0];if(!v||!("featuredImage"in v))return null;let y=null===(i=null==v?void 0:v.featuredImage)||void 0===i?void 0:i.node;return(0,o.jsxs)(a.Z,Object.assign({alignItems:"center",direction:"row",justifyContent:"center",spacing:{xs:1,sm:2},sx:m},{children:[(0,o.jsx)(s.Z,Object.assign({component:"div"},{children:g||"In partnership with"})),(null==y?void 0:y.sourceUrl)&&(0,o.jsx)(l.Z,Object.assign({sx:{height:"35px"}},{children:(0,o.jsx)(u.Z,{alt:(null==v?void 0:v.title)||(null==y?void 0:y.altText)||"",src:y.sourceUrl,srcSet:(0,c.Z)(y.sourceUrl,300),style:{height:30,objectFit:"contain"}})})),(null===(d=null==v?void 0:v.brandMeta)||void 0===d?void 0:d.url)?(0,o.jsx)(s.Z,Object.assign({component:"a",href:(null===(h=null==v?void 0:v.brandMeta)||void 0===h?void 0:h.url)||void 0,rel:"nofollow noopener noreferrer sponsored"},{children:(null==v?void 0:v.title)||""})):(0,o.jsx)(s.Z,Object.assign({component:"div"},{children:(null==v?void 0:v.title)||""}))]}))};n.Z=d},49493:function(r,n,i){"use strict";var o=i(85893),a=i(87357),s=i(67294),l=i(59471);let c=r=>{let{authors:n,sx:i}=r;return n.length<1?null:(0,o.jsxs)(a.Z,Object.assign({sx:Object.assign({textTransform:"uppercase",fontWeight:500,textDecoration:"none",color:"primary.main",fontSize:{sm:14,lg:16},"& > a":{color:"inherit",textDecoration:"none"}},i)},{children:["By",n.map((r,n)=>{let{name:i,uri:a}=r;return(0,o.jsxs)(s.Fragment,{children:[n>0?", ":" ",i&&a&&(0,o.jsx)(l.Z,Object.assign({href:a},{children:i}),a)]},a)})]}))};n.Z=c},94708:function(r,n,i){"use strict";var o=i(85893),a=i(87357),s=i(15861),l=i(86886),c=i(93166),u=i(59471),d=i(93985),h=i(49493);let p=r=>{let{authors:n,excerpt:i,featuredImageAltText:p,featuredImageUrl:f,imagesLoadingType:m="lazy",link:g,title:v}=r,y=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(u.Z,Object.assign({href:g,passHref:!0},{children:(0,o.jsx)(a.Z,Object.assign({component:"a",sx:{textDecoration:"none",color:"secondary.main","&:hover":{color:"primary.main"}}},{children:(0,o.jsx)(s.Z,{component:"h3",dangerouslySetInnerHTML:{__html:v},"data-rawhtml":"1",fontSize:"20px",fontWeight:500,lineHeight:"1.375rem",marginBottom:"0.3em"})}))})),i&&(0,o.jsx)(s.Z,{component:"span",dangerouslySetInnerHTML:{__html:(0,c.Z)(i)},"data-rawhtml":"1"}),(0,o.jsx)(h.Z,{authors:n})]});return f?(0,o.jsxs)(l.ZP,Object.assign({className:"side-article",columnSpacing:0,marginBottom:2,paddingLeft:{md:0,xs:2,sm:0},paddingRight:2,container:!0},{children:[(0,o.jsx)(l.ZP,Object.assign({md:5,sm:0,item:!0},{children:(0,o.jsx)(u.Z,Object.assign({href:g,passHref:!0},{children:(0,o.jsx)(a.Z,Object.assign({component:"a",sx:{display:{sm:"none",md:"block"}}},{children:(0,o.jsx)(d.Z,{alt:p||"",loading:m,maxWidth:272,ratio:16/9,src:f,title:v})}))}))})),(0,o.jsx)(l.ZP,Object.assign({md:7,sm:12,sx:{paddingTop:{xs:2,sm:0},paddingLeft:{md:2},paddingRight:{md:2}},item:!0},{children:y}))]})):(0,o.jsx)(a.Z,Object.assign({marginBottom:3,marginTop:1,paddingLeft:{md:0,xs:2,sm:0},paddingRight:2},{children:y}))};n.Z=p},87753:function(r,n,i){"use strict";var o=i(85893),a=i(55113),s=i(86886),l=i(87357),c=i(15861),u=i(93967),d=i.n(u),h=i(67294),p=i(77424),f=i(93166),m=i(97924),g=i(93773),v=i(59471),y=i(25900),b=i(51594),x=i(93985),_=i(49493),w=i(94708);let S=r=>{var n,i;
229let{area:u,category:S,className:T,customHeaderBackground:E,frequency:k,headerIconUrl:C,imagesLoadingType:P="lazy",mainPost:O,sidebarArticles:j,title:A,viewAllLabel:M}=r,{authorTags:I,excerpt:Z,featuredImage:R,title:D,uri:L}=O,z=(0,h.useContext)(y.Z),B=null===z||1===z.columnsCount,F={lg:8,md:8,sm:6,xs:12},N={lg:4,md:4,sm:6,xs:12};return B&&(F={lg:7,md:6,sm:6,xs:12},N={lg:5,md:6,sm:6,xs:12}),(0,o.jsxs)(a.Z,Object.assign({className:d()("two-column-content",T),component:"section","data-og-block-area":u,"data-og-block-nth":k,"data-og-block-type":b.Z.AcfToutCategoryBlock,sx:{boxShadow:"3",borderRadius:0,paddingTop:0,paddingBottom:2.5,height:"100%",display:"flex",flexDirection:"column",minWidth:{sm:"430px"}}},{children:[A&&(null==S?void 0:S.uri)&&(0,o.jsx)(g.Z,{categoryName:A,categoryUri:null==S?void 0:S.uri,customHeaderBackground:E,iconUrl:C}),(0,o.jsxs)(s.ZP,Object.assign({columnSpacing:2,container:!0},{children:[(0,o.jsxs)(s.ZP,Object.assign({sx:{"&::after":{content:'" "',display:{sm:"none",xs:"block"},width:"100%",height:"1px",background:"#e5e5e5",marginTop:2}}},F,{item:!0},{children:[R&&L&&(0,o.jsx)(v.Z,Object.assign({href:L,passHref:!0},{children:(0,o.jsx)(l.Z,Object.assign({className:"main-article-image",component:"a"},{children:(0,o.jsx)(x.Z,{crop:{widthRatio:16,heightRatio:9},image:R.node,loading:P,maxWidth:600,ratio:16/9})}))})),L&&(0,o.jsxs)(l.Z,Object.assign({paddingX:2},{children:[(0,o.jsx)(v.Z,Object.assign({href:L,passHref:!0},{children:(0,o.jsxs)(l.Z,Object.assign({component:"a",display:"block",sx:{color:"unset",textDecoration:"none"}},{children:[(0,o.jsx)(c.Z,Object.assign({component:"h3",fontSize:"1.7rem",fontWeight:500,lineHeight:1.1,marginTop:2.5,sx:{"&:hover":{color:"primary.main"}},variant:"h5"},{children:D})),(0,o.jsx)(c.Z,Object.assign({fontSize:"1.2em",fontWeight:200,lineHeight:1.2,marginY:1},{children:Z&&(0,f.Z)(Z)}))]}))})),(0,o.jsx)(_.Z,{authors:null!==(i=null===(n=null==I?void 0:I.nodes)||void 0===n?void 0:n.filter(m.Z))&&void 0!==i?i:[]})]}))]})),(0,o.jsx)(s.ZP,Object.assign({item:!0},N,{children:j.map(r=>{var n,i;let{authorTags:a,excerpt:s,featuredImageAltText:l,featuredImageListUrl:c,title:u,uri:d}=r;return(0,o.jsx)(w.Z,{authors:null!==(i=null===(n=null==a?void 0:a.nodes)||void 0===n?void 0:n.filter(m.Z))&&void 0!==i?i:[],excerpt:B?s:null,featuredImageAltText:B?l:null,featuredImageUrl:B?c:null,imagesLoadingType:P,link:null!=d?d:"",title:null!=u?u:""},u)})}))]})),(null==S?void 0:S.uri)&&(0,o.jsx)(l.Z,Object.assign({sx:{textAlign:"center"}},{children:(0,o.jsx)(v.Z,Object.assign({href:S.uri,passHref:!0},{children:(0,o.jsx)(p.zx,Object.assign({sx:{mt:1},variant:"contained"},{children:M||"View all in ".concat(S.name)}))}))}))]}))};n.Z=S},70522:function(r,n,i){"use strict";i.d(n,{SM:function(){return tc},JH:function(){return i2.ZP},MV:function(){return i5.Z}}),i(95156);var o,a,s,l,c,u=i(85893),d=i(67294);i(38665),i(59471),i(47018),i(23632),i(60328),i(13491),i(68281),i(17515),i(88654);var h=i(21737),p=i(15861),f=i(83321),m=i(76798),g=i(56263),v=i(13876),y=i(34853),b=i(49048);let x=d.createContext(null),_=()=>{let[r,n]=(0,d.useState)({}),i=(0,d.useCallback)((r,i)=>{n(n=>Object.assign(Object.assign({},n),{[r]:i}))},[n]),o=(0,d.useCallback)(()=>{let n=Object.entries(r).map(r=>{var n,i,o,a;let[s,l]=r;return n=void 0,i=void 0,o=void 0,a=function*(){if(null===l)return[s,null];let r=yield l();return[s,r]},new(o||(o=Promise))(function(r,s){function l(r){try{u(a.next(r))}catch(r){s(r)}}function c(r){try{u(a.throw(r))}catch(r){s(r)}}function u(n){var i;n.done?r(n.value):((i=n.value)instanceof o?i:new o(function(r){r(i)})).then(l,c)}u((a=a.apply(n,i||[])).next())})});return Promise.all(n).then(r=>r.reduce((r,n)=>{let[i,o]=n;return r[i]=o,r},{}))},[r]);return{captchas:r,onVerifyCaptcha:o,onRegistryCaptcha:i}};var w=i(74073),S=i(8272),T=i(27449),E=i(935),k=i(13317),C=i(47855),P=i(62281),O=function(r,n){var i,o;return n=(0,T.Z)(n,r),i=r,null==(r=(o=n).length<2?i:(0,k.Z)(i,(0,C.Z)(o,0,-1)))||delete r[P.Z(E.Z(n))]},j=i(31899),A=i(37514),M=function(r){return(0,A.Z)(r)?void 0:r},I=i(58694),Z=i(17685),R=i(29169),D=i(27771),L=Z.Z?Z.Z.isConcatSpreadable:void 0,z=function(r){return(0,D.Z)(r)||(0,R.Z)(r)||!!(L&&r&&r[L])},B=function r(n,i,o,a,s){var l=-1,c=n.length;for(o||(o=z),s||(s=[]);++l<c;){var u=n[l];i>0&&o(u)?i>1?r(u,i-1,o,a,s):(0,I.Z)(s,u):a||(s[s.length]=u)}return s},F=i(81211),N=i(64594),U=i(4403),V=(o=function(r,n){var i={};if(null==r)return i;var o=!1;n=(0,w.Z)(n,function(n){return n=(0,T.Z)(n,r),o||(o=n.length>1),n}),(0,j.Z)(r,(0,U.Z)(r),i),o&&(i=(0,S.Z)(i,7,M));for(var a=n.length;a--;)O(i,n[a]);return i},(0,N.Z)((0,F.Z)(o,void 0,function(r){return(null==r?0:r.length)?B(r,1):[]}),o+"")),q=i(11752),$=i.n(q),G=i(94054),W=i(40476),H=i(87357),X=i(47312),Y=i(10315),K=i(18972),J=i(50135),Q=i(56815),ee=i(63366),et=i(87462),er=i(93680),en=i(94780),ei=i(90948),eo=i(71657),ea=i(34867),es=i(1588);function el(r){return(0,ea.ZP)("MuiFormGroup",r)}(0,es.Z)("MuiFormGroup",["root","row","error"]);var ec=i(74423),eu=i(15704);let ed=["className","row"],eh=r=>{let{classes:n,row:i,error:o}=r;return(0,en.Z)({root:["root",i&&"row",o&&"error"]},el,n)},ep=(0,ei.ZP)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[n.root,i.row&&n.row]}})(({ownerState:r})=>(0,et.Z)({display:"flex",flexDirection:"column",flexWrap:"wrap"},r.row&&{flexDirection:"row"})),ef=d.forwardRef(function(r,n){let i=(0,eo.Z)({props:r,name:"MuiFormGroup"}),{className:o,row:a=!1}=i,s=(0,ee.Z)(i,ed),l=(0,ec.Z)(),c=(0,eu.Z)({props:i,muiFormControl:l,states:["error"]}),d=(0,et.Z)({},i,{row:a,error:c.error}),h=eh(d);return(0,u.jsx)(ep,(0,et.Z)({className:(0,er.Z)(h.root,o),ownerState:d,ref:n},s))});var em=i(98216);
229function eg(r){return(0,ea.ZP)("MuiFormControlLabel",r)}let ev=(0,es.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error"]),ey=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","value"],eb=r=>{let{classes:n,disabled:i,labelPlacement:o,error:a}=r,s={root:["root",i&&"disabled",`labelPlacement${(0,em.Z)(o)}`,a&&"error"],label:["label",i&&"disabled"]};return(0,en.Z)(s,eg,n)},ex=(0,ei.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[{[`& .${ev.label}`]:n.label},n.root,n[`labelPlacement${(0,em.Z)(i.labelPlacement)}`]]}})(({theme:r,ownerState:n})=>(0,et.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${ev.disabled}`]:{cursor:"default"}},"start"===n.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===n.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===n.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${ev.label}`]:{[`&.${ev.disabled}`]:{color:(r.vars||r).palette.text.disabled}}})),e_=d.forwardRef(function(r,n){let i=(0,eo.Z)({props:r,name:"MuiFormControlLabel"}),{className:o,componentsProps:a={},control:s,disabled:l,disableTypography:c,label:h,labelPlacement:f="end"}=i,m=(0,ee.Z)(i,ey),g=(0,ec.Z)(),v=l;void 0===v&&void 0!==s.props.disabled&&(v=s.props.disabled),void 0===v&&g&&(v=g.disabled);let y={disabled:v};["checked","name","onChange","value","inputRef"].forEach(r=>{void 0===s.props[r]&&void 0!==i[r]&&(y[r]=i[r])});let b=(0,eu.Z)({props:i,muiFormControl:g,states:["error"]}),x=(0,et.Z)({},i,{disabled:v,labelPlacement:f,error:b.error}),_=eb(x),w=h;return null==w||w.type===p.Z||c||(w=(0,u.jsx)(p.Z,(0,et.Z)({component:"span",className:_.label},a.typography,{children:w}))),(0,u.jsxs)(ex,(0,et.Z)({className:(0,er.Z)(_.root,o),ownerState:x,ref:n},m,{children:[d.cloneElement(s,y),w]}))});var ew=i(8423),eS=i(49299),eT=i(82607);function eE(r){return(0,ea.ZP)("PrivateSwitchBase",r)}(0,es.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);let ek=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],eC=r=>{let{classes:n,checked:i,disabled:o,edge:a}=r,s={root:["root",i&&"checked",o&&"disabled",a&&`edge${(0,em.Z)(a)}`],input:["input"]};return(0,en.Z)(s,eE,n)},eP=(0,ei.ZP)(eT.Z)(({ownerState:r})=>(0,et.Z)({padding:9,borderRadius:"50%"},"start"===r.edge&&{marginLeft:"small"===r.size?-3:-12},"end"===r.edge&&{marginRight:"small"===r.size?-3:-12})),eO=(0,ei.ZP)("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),ej=d.forwardRef(function(r,n){let{autoFocus:i,checked:o,checkedIcon:a,className:s,defaultChecked:l,disabled:c,disableFocusRipple:d=!1,edge:h=!1,icon:p,id:f,inputProps:m,inputRef:g,name:v,onBlur:y,onChange:b,onFocus:x,readOnly:_,required:w,tabIndex:S,type:T,value:E}=r,k=(0,ee.Z)(r,ek),[C,P]=(0,eS.Z)({controlled:o,default:Boolean(l),name:"SwitchBase",state:"checked"}),O=(0,ec.Z)(),j=r=>{x&&x(r),O&&O.onFocus&&O.onFocus(r)},A=r=>{y&&y(r),O&&O.onBlur&&O.onBlur(r)},M=r=>{if(r.nativeEvent.defaultPrevented)return;let n=r.target.checked;P(n),b&&b(r,n)},I=c;O&&void 0===I&&(I=O.disabled);let Z=(0,et.Z)({},r,{checked:C,disabled:I,disableFocusRipple:d,edge:h}),R=eC(Z);return(0,u.jsxs)(eP,(0,et.Z)({component:"span",className:(0,er.Z)(R.root,s),centerRipple:!0,focusRipple:!d,disabled:I,tabIndex:null,role:void 0,onFocus:j,onBlur:A,ownerState:Z,ref:n},k,{children:[(0,u.jsx)(eO,(0,et.Z)({autoFocus:i,checked:o,defaultChecked:l,className:R.input,disabled:I,id:("checkbox"===T||"radio"===T)&&f,name:v,onChange:M,readOnly:_,ref:g,required:w,ownerState:Z,tabIndex:S,type:T},"checkbox"===T&&void 0===E?{}:{value:E},m)),C?a:p]}))});var eA=i(82066),eM=(0,eA.Z)((0,u.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),eI=(0,eA.Z)((0,u.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),eZ=(0,eA.Z)((0,u.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function eR(r){return(0,ea.ZP)("MuiCheckbox",r)}let eD=(0,es.Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),eL=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","
229size"],ez=r=>{let{classes:n,indeterminate:i,color:o}=r,a={root:["root",i&&"indeterminate",`color${(0,em.Z)(o)}`]},s=(0,en.Z)(a,eR,n);return(0,et.Z)({},n,s)},eB=(0,ei.ZP)(ej,{shouldForwardProp:r=>(0,ei.FO)(r)||"classes"===r,name:"MuiCheckbox",slot:"Root",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[n.root,i.indeterminate&&n.indeterminate,"default"!==i.color&&n[`color${(0,em.Z)(i.color)}`]]}})(({theme:r,ownerState:n})=>(0,et.Z)({color:(r.vars||r).palette.text.secondary},!n.disableRipple&&{"&:hover":{backgroundColor:r.vars?`rgba(${"default"===n.color?r.vars.palette.action.activeChannel:r.vars.palette.primary.mainChannel} / ${r.vars.palette.action.hoverOpacity})`:(0,ew.Fq)("default"===n.color?r.palette.action.active:r.palette[n.color].main,r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==n.color&&{[`&.${eD.checked}, &.${eD.indeterminate}`]:{color:(r.vars||r).palette[n.color].main},[`&.${eD.disabled}`]:{color:(r.vars||r).palette.action.disabled}})),eF=(0,u.jsx)(eI,{}),eN=(0,u.jsx)(eM,{}),eU=(0,u.jsx)(eZ,{}),eV=d.forwardRef(function(r,n){var i,o;let a=(0,eo.Z)({props:r,name:"MuiCheckbox"}),{checkedIcon:s=eF,color:l="primary",icon:c=eN,indeterminate:h=!1,indeterminateIcon:p=eU,inputProps:f,size:m="medium"}=a,g=(0,ee.Z)(a,eL),v=h?p:c,y=h?p:s,b=(0,et.Z)({},a,{color:l,indeterminate:h,size:m}),x=ez(b);return(0,u.jsx)(eB,(0,et.Z)({type:"checkbox",inputProps:(0,et.Z)({"data-indeterminate":h},f),icon:d.cloneElement(v,{fontSize:null!=(i=v.props.fontSize)?i:m}),checkedIcon:d.cloneElement(y,{fontSize:null!=(o=y.props.fontSize)?o:m}),ownerState:b,ref:n},g,{classes:x}))});function eq(r){let{id:n,type:i}=r;return(0,u.jsx)(h.Z,Object.assign({severity:"error",sx:{my:2},variant:"filled"},{children:"Field type not supported: ".concat(i,".")}),n)}var e$=i(89633),eG=i(29725);let eW=()=>(0,u.jsx)(H.Z,{});var eH=i(98567),eX=i(51705);let eY=d.createContext(void 0);var eK=i(27909);let eJ=["actions","children","defaultValue","name","onChange","value"],eQ=d.forwardRef(function(r,n){let{actions:i,children:o,defaultValue:a,name:s,onChange:l,value:c}=r,h=(0,ee.Z)(r,eJ),p=d.useRef(null),[f,m]=(0,eS.Z)({controlled:c,default:a,name:"RadioGroup"});d.useImperativeHandle(i,()=>({focus:()=>{let r=p.current.querySelector("input:not(:disabled):checked");r||(r=p.current.querySelector("input:not(:disabled)")),r&&r.focus()}}),[]);let g=(0,eX.Z)(n,p),v=r=>{m(r.target.value),l&&l(r,r.target.value)},y=(0,eK.Z)(s);return(0,u.jsx)(eY.Provider,{value:{name:y,onChange:v,value:f},children:(0,u.jsx)(ef,(0,et.Z)({role:"radiogroup",ref:g},h,{children:o}))})});var e0=(0,eA.Z)((0,u.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),e1=(0,eA.Z)((0,u.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked");let e2=(0,ei.ZP)("span")({position:"relative",display:"flex"}),e3=(0,ei.ZP)(e0)({transform:"scale(1)"}),e4=(0,ei.ZP)(e1)(({theme:r,ownerState:n})=>(0,et.Z)({left:0,position:"absolute",transform:"scale(0)",transition:r.transitions.create("transform",{easing:r.transitions.easing.easeIn,duration:r.transitions.duration.shortest})},n.checked&&{transform:"scale(1)",transition:r.transitions.create("transform",{easing:r.transitions.easing.easeOut,duration:r.transitions.duration.shortest})}));var e5=function(r){let{checked:n=!1,classes:i={},fontSize:o}=r,a=(0,et.Z)({},r,{checked:n});return(0,u.jsxs)(e2,{className:i.root,ownerState:a,children:[(0,u.jsx)(e3,{fontSize:o,className:i.background,ownerState:a}),(0,u.jsx)(e4,{fontSize:o,className:i.dot,ownerState:a})]})},e6=i(35893);function e8(r){return(0,ea.ZP)("MuiRadio",r)}let e9=(0,es.Z)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary"]),e7=["checked","checkedIcon","color","icon","name","onChange","size"],te=r=>{let{classes:n,color:i}=r,o={root:["root",`color${(0,em.Z)(i)}`]};return(0,et.Z)({}
229,n,(0,en.Z)(o,e8,n))},tt=(0,ei.ZP)(ej,{shouldForwardProp:r=>(0,ei.FO)(r)||"classes"===r,name:"MuiRadio",slot:"Root",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[n.root,n[`color${(0,em.Z)(i.color)}`]]}})(({theme:r,ownerState:n})=>(0,et.Z)({color:(r.vars||r).palette.text.secondary,"&:hover":{backgroundColor:r.vars?`rgba(${"default"===n.color?r.vars.palette.action.activeChannel:r.vars.palette[n.color].mainChannel} / ${r.vars.palette.action.hoverOpacity})`:(0,ew.Fq)("default"===n.color?r.palette.action.active:r.palette[n.color].main,r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==n.color&&{[`&.${e9.checked}`]:{color:(r.vars||r).palette[n.color].main}},{[`&.${e9.disabled}`]:{color:(r.vars||r).palette.action.disabled}})),tr=(0,u.jsx)(e5,{checked:!0}),tn=(0,u.jsx)(e5,{}),ti=d.forwardRef(function(r,n){var i,o,a,s;let l=(0,eo.Z)({props:r,name:"MuiRadio"}),{checked:c,checkedIcon:h=tr,color:p="primary",icon:f=tn,name:m,onChange:g,size:v="medium"}=l,y=(0,ee.Z)(l,e7),b=(0,et.Z)({},l,{color:p,size:v}),x=te(b),_=d.useContext(eY),w=c,S=(0,e6.Z)(g,_&&_.onChange),T=m;return _&&(void 0===w&&(a=_.value,w="object"==typeof(s=l.value)&&null!==s?a===s:String(a)===String(s)),void 0===T&&(T=_.name)),(0,u.jsx)(tt,(0,et.Z)({type:"radio",icon:d.cloneElement(f,{fontSize:null!=(i=tn.props.fontSize)?i:v}),checkedIcon:d.cloneElement(h,{fontSize:null!=(o=tr.props.fontSize)?o:v}),ownerState:b,classes:x,name:T,checked:w,onChange:S,ref:n},y))});var to=i(67720);let ta={email:e$.Z,text:eG.Z,textarea:function(r){let{cssClass:n,description:i,id:o,isRequired:a,label:s,placeholder:l}=r,{handleChange:c}=(0,g.u6)();return(0,u.jsxs)(G.Z,Object.assign({className:n,sx:{display:"block",my:2}},{children:[(0,u.jsx)(J.Z,{id:"input_".concat(o),minRows:4,name:"".concat(o),onChange:c,placeholder:l||"",required:a||!1,label:s,multiline:!0,variant:"outlined",style:{background:"#fff",width:"100%"}}),(0,u.jsx)(Q.Z,{"data-rawhtml":"1",dangerouslySetInnerHTML:{__html:i||""}})]}),o)},select:function(r){let{choices:n,databaseId:i,description:o,id:a,isRequired:s,label:l,placeholder:c}=r,{handleChange:d,values:h}=(0,g.u6)();return(0,u.jsxs)(G.Z,Object.assign({sx:{display:"block",my:2}},{children:[l&&(0,u.jsxs)(W.Z,{children:[l,s?" *":""]}),(0,u.jsx)(Y.Z,Object.assign({id:"input_".concat(i),name:"".concat(i),onChange:d,placeholder:c||"",required:s||!1,sx:{minWidth:120,display:"block"},value:String(h[i])},{children:null==n?void 0:n.map(r=>(0,u.jsx)(K.Z,Object.assign({value:r.value||r.text},{children:r.text||r.value}),r.value||r.text))})),o&&(0,u.jsx)(Q.Z,{dangerouslySetInnerHTML:{__html:o}})]}),a)},hidden:function(r){let{id:n,label:i}=r,{handleChange:o}=(0,g.u6)();return(0,u.jsx)(J.Z,{id:"input_".concat(n),label:i,name:"".concat(n),onChange:o,sx:{display:"none"},type:"hidden",required:!0},n)},checkbox:function(r){let{choices:n,cssClass:i,description:o,id:a,inputs:s,isRequired:l,label:c,visibility:d}=r,{setFieldValue:h}=(0,g.u6)(),f=(null==n?void 0:n.map((r,n)=>{var i;return Object.assign(Object.assign({},r),{id:null===(i=null==s?void 0:s[n])||void 0===i?void 0:i.id})}))||[];return(0,u.jsxs)(G.Z,Object.assign({className:i,sx:{display:"HIDDEN"===d?"none":"block",my:2}},{children:[c&&(0,u.jsxs)(W.Z,Object.assign({id:c},{children:[c," ",l&&(0,u.jsx)(p.Z,Object.assign({className:"danger",component:"span"},{children:"*"}))]})),(0,u.jsx)(ef,{children:null==f?void 0:f.map(r=>{let{id:n,text:i,value:o}=r;return(0,u.jsx)(e_,{control:(0,u.jsx)(eV,{name:"".concat(n),onChange:r=>{h(r.target.name,{checkboxValues:{inputId:Number(r.target.name),value:r.target.value}})},value:String(o)}),label:(0,u.jsx)("span",{dangerouslySetInnerHTML:{__html:i||o||"No label"}})},n)})}),o&&(0,u.jsx)(Q.Z,{dangerouslySetInnerHTML:{__html:o},"data-rawhtml":"1"})]}),a)},radio:function(r){let{choices:n,description:i,id:o,label:a}=r,{handleChange:s}=(0,g.u6)();return(0,u.jsxs)(G.Z,Object.assign({sx:{display:"block",my:2}},{children:[a&&(0,u.jsx)(W.Z,{children:a}),(0,u.jsx)(eQ,{children:null==n?void 0:n.map(r=>(0,u.jsx)(e_,{control:(0,u.jsx)(ti,{}),label:r.text||r.value||"No label",name:String(o),onChange:s,value:r.value},r.value))}),i&&(0,u.jsx)(Q.Z,{dangerouslySetInnerHTML:{__html:i}})]}),o)},html:function(r){let{content:n,cssClass:i,id:o,visibility:a}=r;return(0,u.jsx)(p.Z,{className:i,component:"div",dangerouslySetInnerHTML:{__html:n||""},"data-rawhtml":"1",my:1,sx:{display:"block"},visibility:"HIDDEN"===a?"hidden":"visible"},o)}
229,captcha:function(r){let{id:n}=r,{data:i}=(0,b.Z)(),o=(0,d.useRef)(null),a=(0,d.useContext)(x),s=(null==i?void 0:i.recaptchaSiteKey)||null,l=(0,d.useCallback)(()=>{var r,n;return null!==(n=null===(r=o.current)||void 0===r?void 0:r.executeAsync())&&void 0!==n?n:Promise.resolve(null)},[]);return(0,d.useEffect)(()=>{let r="".concat(n);return null==a||a(r,l),()=>null==a?void 0:a(r,null)},[a,l,n]),s?(0,u.jsx)(y.Z,{ref:o,size:"invisible",sitekey:s},n):(0,u.jsx)(h.Z,Object.assign({severity:"error",sx:{my:2},variant:"filled"},{children:"Missing ReCaptcha SiteKey"}),n)},name:eH.Z,mailchimp:eW,fileupload:function(r){let{allowedExtensions:n,canAcceptMultipleFiles:i,cssClass:o,description:a,id:s,label:l}=r,{setFieldValue:c}=(0,g.u6)();return(0,u.jsxs)(G.Z,Object.assign({className:o,sx:{display:"block",my:2}},{children:[l&&(0,u.jsx)(W.Z,{children:(0,u.jsx)("span",{dangerouslySetInnerHTML:{__html:l||""}})}),(0,u.jsx)("input",{accept:null==n?void 0:n.map(r=>".".concat(r.trim())).join(", "),id:"input_".concat(s),multiple:i,name:"".concat(s),onChange:r=>{var n,i;c("".concat(s),null===(i=null===(n=r.currentTarget)||void 0===n?void 0:n.files)||void 0===i?void 0:i[0])},type:"file"}),a&&(0,u.jsx)(Q.Z,{children:(0,u.jsx)("div",{dangerouslySetInnerHTML:{__html:a||""}})})]}),s)},section:function(r){let{cssClass:n,description:i,id:o,label:a,visibility:s}=r;return(0,u.jsxs)(H.Z,Object.assign({sx:{my:2,visibility:"HIDDEN"===s?"hidden":"visible"}},{children:[a&&(0,u.jsx)(p.Z,Object.assign({className:n},{children:a}),"form_section_label_".concat(o)),(0,u.jsx)(to.Z,{}),i&&(0,u.jsx)(p.Z,{className:n,variant:"caption",sx:{ml:2},dangerouslySetInnerHTML:{__html:i||""},"data-rawhtml":"1"},"form_section_description_".concat(o))]}),"form_section_".concat(o))},date:function(r){let{cssClass:n,description:i,id:o,isRequired:a,label:s}=r,{handleChange:l}=(0,g.u6)();return(0,u.jsxs)(G.Z,Object.assign({className:n,sx:{display:"block",my:2}},{children:[(0,u.jsx)(J.Z,{id:"input_".concat(o),name:"".concat(o),onChange:l,required:a||!1,sx:{background:"#fff"},fullWidth:!0,type:"date",variant:"outlined",label:s,InputLabelProps:{shrink:!0}}),(0,u.jsx)(Q.Z,{"data-rawhtml":"1",dangerouslySetInnerHTML:{__html:i||""}})]}),o)},address:function(r){let{countries:n,cssClass:i,defaultCountry:o,description:a,id:s,inputs:l,isRequired:c,label:d}=r,{setFieldValue:h}=(0,g.u6)(),p={street:"100%",lineTwo:"100%",city:"49%",state:"49%",zip:"49%",country:"49%"};return c=!1!==c,(0,u.jsxs)(G.Z,Object.assign({className:i||"",sx:{display:"block",my:2}},{children:[(0,u.jsxs)(W.Z,{children:[d,c?" *":""]}),(0,u.jsx)(H.Z,Object.assign({gap:1,sx:{display:"flex",flexWrap:"wrap",justifyContent:"space-between"}},{children:l&&l.filter(r=>!(null==r?void 0:r.isHidden)).map(r=>r&&("country"===r.key?!r.isHidden&&(0,u.jsxs)(G.Z,Object.assign({margin:"dense",sx:{width:{sm:r.key&&p[r.key]?p[r.key]:"100%",xs:"100%"}}},{children:[(0,u.jsx)(X.Z,Object.assign({id:"address_input_label_".concat(r.id)},{children:r.customLabel||r.label})),(0,u.jsx)(Y.Z,Object.assign({id:"address_input_".concat(r.id),labelId:"address_input_label_".concat(r.id),name:"".concat(r.id),onChange:n=>{h(n.target.name,{addressValues:{name:r.key,value:n.target.value}})},required:c,variant:"outlined",defaultValue:o||"",label:(r.customLabel||r.label||"")+(c?" *":""),placeholder:r.placeholder||""},{children:null==n?void 0:n.map(r=>r&&r.code&&(0,u.jsx)(K.Z,Object.assign({value:r.code},{children:r.value}),"address_country_".concat(r.code)))}))]}),"address_input_".concat(r.id)):!r.isHidden&&(0,u.jsx)(J.Z,{id:"address_input_".concat(r.id),name:"".concat(r.id),placeholder:r.placeholder||"",defaultValue:r.defaultValue,onChange:n=>{h(n.target.name,{addressValues:{name:r.key,value:n.target.value}})},variant:"outlined",required:c,label:r.customLabel||r.label,margin:"dense",sx:{width:{sm:r.key&&p[r.key]?p[r.key]:"100%",xs:"100%"}}},"address_input_".concat(r.id))))})),(0,u.jsx)(Q.Z,{"data-rawhtml":"1",dangerouslySetInnerHTML:{__html:a||""}})]}),s)},default:eq};function ts(r){let{field:n,fieldComponents:i}=r,o=$()(),{databaseId:a,type:s}=n,l=s.toLowerCase(),c=(null==i?void 0:i[l])||ta[l]||(null==i?void 0:i.default)||("production"===o.publicRuntimeConfig.env?null:eq),d=V(n,"id");return c&&(0,u.jsx)(c,Object.assign({id:a.toString()},d),a)}let tl=r=>{let n=[];return Object.entries(r).forEach(r=>{let[i,o]=r;if(o){if(o.emailValues){n.push({id:Number(i),emailValues:o.emailValues});return}if(Array.isArray(o)){let r={},a={},s=[];if(o.filter(r=>void 0!==r).forEach(n=>
229{n.nameValues&&(r=Object.assign(Object.assign({},r),{[n.nameValues.name]:n.nameValues.value})),n.addressValues&&(a=Object.assign(Object.assign({},a),{[n.addressValues.name]:n.addressValues.value})),n.checkboxValues&&s.push(n.checkboxValues)}),Object.keys(r).length>0){n.push({id:Number(i),nameValues:r});return}if(Object.keys(a).length>0){n.push({id:Number(i),addressValues:a});return}s.length>0&&n.push({id:Number(i),checkboxValues:s})}else o instanceof File?n.push({id:Number(i),fileUploadValues:[o]}):n.push({id:Number(i),value:o})}}),n};function tc(r){var n,i,o;let{fieldComponents:a,form:s,hideOnSuccess:l=!1,onSuccess:c}=r,{onRegistryCaptcha:y,onVerifyCaptcha:b}=_(),{data:w,error:S,isLoading:T,mutate:E}=(0,v.Z)(),[k,C]=d.useState(""),P=(null===(n=s.formFields)||void 0===n?void 0:n.nodes)||[],O=(0,d.useCallback)(()=>C(""),[]),j={};if(P.forEach(r=>{Object.assign(j,{[r.databaseId]:r.defaultValue||r.value||""})}),(null===(i=null==w?void 0:w.submitGfForm)||void 0===i?void 0:i.entry)!==null&&(null===(o=null==w?void 0:w.submitGfForm)||void 0===o?void 0:o.errors)===null)return l?null:(0,u.jsx)(h.Z,Object.assign({severity:"success"},{children:"Form successfully submitted - thank you."}));let A=r=>{T||b().then(n=>{let i=tl(Object.assign(Object.assign({},r),n));E({id:s.databaseId,fieldValues:i},{onError:r=>{console.log(r)},onSuccess:r=>{null==c||c(i),console.log("onSuccess: ".concat(JSON.stringify(r)))}})}).catch(()=>{C("Something went wrong with captcha validation")})};return(0,u.jsxs)(x.Provider,Object.assign({value:y},{children:[(0,u.jsx)(g.J9,Object.assign({initialValues:j,onSubmit:A},{children:()=>{var r;return(0,u.jsx)(g.l0,{children:(0,u.jsxs)(u.Fragment,{children:[(null==s?void 0:s.title)&&(0,u.jsx)(p.Z,Object.assign({className:"gform-title",component:"h3"},{children:s.title})),P.map(r=>(0,u.jsx)(ts,{field:r,fieldComponents:a},r.databaseId)),S&&(0,u.jsx)(h.Z,Object.assign({severity:"error",variant:"filled"},{children:(0,u.jsx)("pre",{children:JSON.stringify(S,null,2)})})),(0,u.jsx)(f.Z,Object.assign({disabled:T,size:"large",sx:{backgroundColor:"primary.main",color:"#fff",fontWeight:600,mt:"20px",width:1},type:"submit",variant:"contained"},{children:(null===(r=null==s?void 0:s.button)||void 0===r?void 0:r.text)||"Submit"}))]})})}})),(0,u.jsx)(m.Z,Object.assign({open:Boolean(k),autoHideDuration:6e3,onClose:O},{children:(0,u.jsx)(h.Z,Object.assign({variant:"filled",severity:"error",onClose:O},{children:k}))}))]}))}i(11163),i(95155),i(85420),i(69168);let tu=(r,n,i)=>{var o;return _jsxs(Box,Object.assign({component:"li",itemType:"https://www.schema.org/SiteNavigationElement",sx:{listStyle:"none",position:"relative","&:hover":{"> ul":{display:"block"}}},itemScope:!0},{children:[_jsx(Link,Object.assign({href:r.path||"",passHref:!0},{children:_jsxs(Typography,Object.assign({component:"a",sx:Object.assign({alignItems:"center",backgroundColor:"transparent",color:n,cursor:"pointer",display:"inline-flex",fontSize:"1rem",fontWeight:"600",justifyContent:"center",lineHeight:1.6,minWidth:0,padding:"6px 16px",position:"relative",textAlign:"left",textDecoration:"none",textTransform:"uppercase",whiteSpace:"nowrap","&:hover":{backgroundColor:"transparent",textDecoration:"underline"}},i),title:r.label||""},{children:[r.label,r.children&&r.children.length>0&&_jsx(ArrowDropDownIcon,{sx:{color:n}})]}))})),r.children&&r.children.length>0&&_jsx(Box,Object.assign({component:"ul",role:"menu",sx:{textAlign:"left",display:"none",backgroundColor:"white",border:1,borderTop:2,borderTopColor:"primary.main",position:"absolute",columns:"auto 2",left:"50%",top:36,transform:"translateX(-50%)",mt:0,px:2,py:.5,zIndex:1,"&:before":{content:'""',position:"absolute",top:-7,left:"45%",width:0,height:0,borderWidth:6,borderTopWidth:0,borderColor:"transparent",borderBottomColor:"primary.main",borderStyle:"solid",zIndex:2},"> li a":{px:1,py:.5,fontWeight:"400",textTransform:"none"}}},{children:null===(o=r.children)||void 0===o?void 0:o.map(r=>tu(r,"black"))}))]}),r.id)};function td(r,n){(null==n||n>r.length)&&(n=r.length);for(var i=0,o=Array(n);i<n;i++)o[i]=r[i];return o}function th(r,n){if(r){if("string"==typeof r)return td(r,n);var i=({}).toString.call(r).slice(8,-1);return"Object"===i&&r.constructor&&(i=r.constructor.name),"Map"===i||"Set"===i?Array.from(r):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?td(r,n):void 0}}i(28777),i(82634),i(32477),i(64176),i(33100),i(44106),i(73746),i(93985),i(12916),i(34472);var tp=i(71002);function tf(r){var n=function(r,n){if("object"!=(0,tp.Z)(r)||!r)return r;var i=r[Symbol.toPrimitive];if(void 0!==i){var o=i.call(r,n||"default");if("object"!=(0,tp.Z)(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(r)}(r,"string");return"symbol"==(0,tp.Z)(n)?n:n+""}function tm(r,n,i){return(n=tf(n))in r?Object.defineProperty(r,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[n]=i,r}var tg=i(45697);function tv(r,n){return function(r){if(Array.isArray(r))return r}(r)||function(r,n){var i=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=i){var o,a,s,l,c=[],u=!0,d=!1;try{if(s=(i=i.call(r)).next,0===n){if(Object(i)!==i)return;u=!1}else for(;
229!(u=(o=s.call(i)).done)&&(c.push(o.value),c.length!==n);u=!0);}catch(r){d=!0,a=r}finally{try{if(!u&&null!=i.return&&(l=i.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}(r,n)||th(r,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ty="undefined"!=typeof Float32Array?Float32Array:Array;function tb(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function tx(r,n){var i,o,a,s,l,c,u;let d=(i=[],o=n[0],a=n[1],s=n[2],l=n[3],i[0]=r[0]*o+r[4]*a+r[8]*s+r[12]*l,i[1]=r[1]*o+r[5]*a+r[9]*s+r[13]*l,i[2]=r[2]*o+r[6]*a+r[10]*s+r[14]*l,i[3]=r[3]*o+r[7]*a+r[11]*s+r[15]*l,i);return c=d,u=1/d[3],c[0]=d[0]*u,c[1]=d[1]*u,c[2]=d[2]*u,c[3]=d[3]*u,d}function t_(r,n){let i=r%n;return i<0?n+i:i}function tw(r,n,i){return r<n?n:r>i?i:r}Math.hypot||(Math.hypot=function(){for(var r=0,n=arguments.length;n--;)r+=arguments[n]*arguments[n];return Math.sqrt(r)}),a=new ty(4),ty!=Float32Array&&(a[0]=0,a[1]=0,a[2]=0,a[3]=0);let tS=Math.log2||function(r){return Math.log(r)*Math.LOG2E};function tT(r,n,i){var o=n[0],a=n[1],s=n[2],l=n[3],c=n[4],u=n[5],d=n[6],h=n[7],p=n[8],f=n[9],m=n[10],g=n[11],v=n[12],y=n[13],b=n[14],x=n[15],_=i[0],w=i[1],S=i[2],T=i[3];return r[0]=_*o+w*c+S*p+T*v,r[1]=_*a+w*u+S*f+T*y,r[2]=_*s+w*d+S*m+T*b,r[3]=_*l+w*h+S*g+T*x,_=i[4],w=i[5],S=i[6],T=i[7],r[4]=_*o+w*c+S*p+T*v,r[5]=_*a+w*u+S*f+T*y,r[6]=_*s+w*d+S*m+T*b,r[7]=_*l+w*h+S*g+T*x,_=i[8],w=i[9],S=i[10],T=i[11],r[8]=_*o+w*c+S*p+T*v,r[9]=_*a+w*u+S*f+T*y,r[10]=_*s+w*d+S*m+T*b,r[11]=_*l+w*h+S*g+T*x,_=i[12],w=i[13],S=i[14],T=i[15],r[12]=_*o+w*c+S*p+T*v,r[13]=_*a+w*u+S*f+T*y,r[14]=_*s+w*d+S*m+T*b,r[15]=_*l+w*h+S*g+T*x,r}function tE(r,n,i){var o,a,s,l,c,u,d,h,p,f,m,g,v=i[0],y=i[1],b=i[2];return n===r?(r[12]=n[0]*v+n[4]*y+n[8]*b+n[12],r[13]=n[1]*v+n[5]*y+n[9]*b+n[13],r[14]=n[2]*v+n[6]*y+n[10]*b+n[14],r[15]=n[3]*v+n[7]*y+n[11]*b+n[15]):(o=n[0],a=n[1],s=n[2],l=n[3],c=n[4],u=n[5],d=n[6],h=n[7],p=n[8],f=n[9],m=n[10],g=n[11],r[0]=o,r[1]=a,r[2]=s,r[3]=l,r[4]=c,r[5]=u,r[6]=d,r[7]=h,r[8]=p,r[9]=f,r[10]=m,r[11]=g,r[12]=o*v+c*y+p*b+n[12],r[13]=a*v+u*y+f*b+n[13],r[14]=s*v+d*y+m*b+n[14],r[15]=l*v+h*y+g*b+n[15]),r}function tk(r,n,i){var o=i[0],a=i[1],s=i[2];return r[0]=n[0]*o,r[1]=n[1]*o,r[2]=n[2]*o,r[3]=n[3]*o,r[4]=n[4]*a,r[5]=n[5]*a,r[6]=n[6]*a,r[7]=n[7]*a,r[8]=n[8]*s,r[9]=n[9]*s,r[10]=n[10]*s,r[11]=n[11]*s,r[12]=n[12],r[13]=n[13],r[14]=n[14],r[15]=n[15],r}var tC=function(r,n,i,o,a){var s,l=1/Math.tan(n/2);return r[0]=l/i,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=l,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[11]=-1,r[12]=0,r[13]=0,r[15]=0,null!=a&&a!==1/0?(s=1/(o-a),r[10]=(a+o)*s,r[14]=2*a*o*s):(r[10]=-1,r[14]=-2*o),r};function tP(r,n){var i=r[0],o=r[1],a=r[2],s=r[3],l=r[4],c=r[5],u=r[6],d=r[7],h=r[8],p=r[9],f=r[10],m=r[11],g=r[12],v=r[13],y=r[14],b=r[15],x=n[0],_=n[1],w=n[2],S=n[3],T=n[4],E=n[5],k=n[6],C=n[7],P=n[8],O=n[9],j=n[10],A=n[11],M=n[12],I=n[13],Z=n[14],R=n[15];return Math.abs(i-x)<=1e-6*Math.max(1,Math.abs(i),Math.abs(x))&&Math.abs(o-_)<=1e-6*Math.max(1,Math.abs(o),Math.abs(_))&&Math.abs(a-w)<=1e-6*Math.max(1,Math.abs(a),Math.abs(w))&&Math.abs(s-S)<=1e-6*Math.max(1,Math.abs(s),Math.abs(S))&&Math.abs(l-T)<=1e-6*Math.max(1,Math.abs(l),Math.abs(T))&&Math.abs(c-E)<=1e-6*Math.max(1,Math.abs(c),Math.abs(E))&&Math.abs(u-k)<=1e-6*Math.max(1,Math.abs(u),Math.abs(k))&&Math.abs(d-C)<=1e-6*Math.max(1,Math.abs(d),Math.abs(C))&&Math.abs(h-P)<=1e-6*Math.max(1,Math.abs(h),Math.abs(P))&&Math.abs(p-O)<=1e-6*Math.max(1,Math.abs(p),Math.abs(O))&&Math.abs(f-j)<=1e-6*Math.max(1,Math.abs(f),Math.abs(j))&&Math.abs(m-A)<=1e-6*Math.max(1,Math.abs(m),Math.abs(A))&&Math.abs(g-M)<=1e-6*Math.max(1,Math.abs(g),Math.abs(M))&&Math.abs(v-I)<=1e-6*Math.max(1,Math.abs(v),Math.abs(I))&&Math.abs(y-Z)<=1e-6*Math.max(1,Math.abs(y),Math.abs(Z))&&Math.abs(b-R)<=1e-6*Math.max(1,Math.abs(b),Math.abs(R))}function tO(r,n,i){return r[0]=n[0]+i[0],r[1]=n[1]+i[1],r}function tj(r,n,i,o){var a=n[0],s=n[1];return r[0]=a+o*(i[0]-a),r[1]=s+o*(i[1]-s),r}function tA(r,n){if(!r)throw Error(n||"@math.gl/web-mercator: assertion failed.")}s=new ty(2),ty!=Float32Array&&(s[0]=0,s[1]=0),l=new ty(3),ty!=Float32Array&&(l[0]=0,l[1]=0,l[2]=0);let tM=Math.PI,tI=tM/4,tZ=tM/180,tR=180/tM;function tD(r){return Math.pow(2,r)}function tL(r){let[n,i]=r;tA(Number.isFinite(n)),tA(Number.isFinite(i)&&i>=-90&&i<=90,"invalid latitude");let o=512*(tM+Math.log(Math.tan(tI+.5*(i*tZ))))/(2*tM);return[512*(n*tZ+tM)/(2*tM),o]}function tz(r){let[n,i]=r,o=2*(Math.atan(Math.exp(i/512*(2*tM)-tM))-tI);return[(n/512*(2*tM)-tM)*tR,o*tR]}function tB(r){return 2*Math.atan(.5/r)*tR}
229function tF(r){return .5/Math.tan(.5*r*tZ)}function tN(r,n,i=0){let[o,a,s]=r;if(tA(Number.isFinite(o)&&Number.isFinite(a),"invalid pixel coordinate"),Number.isFinite(s)){let r=tx(n,[o,a,s,1]);return r}let l=tx(n,[o,a,0,1]),c=tx(n,[o,a,1,1]),u=l[2],d=c[2];return tj([],l,c,u===d?0:((i||0)-u)/(d-u))}let tU=Math.PI/180;function tV(r,n,i){let{pixelUnprojectionMatrix:o}=r,a=tx(o,[n,0,1,1]),s=tx(o,[n,r.height,1,1]),l=i*r.distanceScales.unitsPerMeter[2],c=(l-a[2])/(s[2]-a[2]),u=tj([],a,s,c),d=tz(u);return d.push(i),d}class tq{constructor(r={width:1,height:1}){tm(this,"latitude",void 0),tm(this,"longitude",void 0),tm(this,"zoom",void 0),tm(this,"pitch",void 0),tm(this,"bearing",void 0),tm(this,"altitude",void 0),tm(this,"fovy",void 0),tm(this,"meterOffset",void 0),tm(this,"center",void 0),tm(this,"width",void 0),tm(this,"height",void 0),tm(this,"scale",void 0),tm(this,"distanceScales",void 0),tm(this,"viewMatrix",void 0),tm(this,"projectionMatrix",void 0),tm(this,"viewProjectionMatrix",void 0),tm(this,"pixelProjectionMatrix",void 0),tm(this,"pixelUnprojectionMatrix",void 0),tm(this,"equals",r=>r instanceof tq&&r.width===this.width&&r.height===this.height&&tP(r.projectionMatrix,this.projectionMatrix)&&tP(r.viewMatrix,this.viewMatrix)),tm(this,"project",(r,n={})=>{let{topLeft:i=!0}=n,o=this.projectPosition(r),a=function(r,n){let[i,o,a=0]=r;return tA(Number.isFinite(i)&&Number.isFinite(o)&&Number.isFinite(a)),tx(n,[i,o,a,1])}(o,this.pixelProjectionMatrix),[s,l]=a,c=i?l:this.height-l;return 2===r.length?[s,c]:[s,c,a[2]]}),tm(this,"unproject",(r,n={})=>{let{topLeft:i=!0,targetZ:o}=n,[a,s,l]=r,c=i?s:this.height-s,u=o&&o*this.distanceScales.unitsPerMeter[2],d=tN([a,c,l],this.pixelUnprojectionMatrix,u),[h,p,f]=this.unprojectPosition(d);return Number.isFinite(l)?[h,p,f]:Number.isFinite(o)?[h,p,o]:[h,p]}),tm(this,"projectPosition",r=>{let[n,i]=tL(r),o=(r[2]||0)*this.distanceScales.unitsPerMeter[2];return[n,i,o]}),tm(this,"unprojectPosition",r=>{let[n,i]=tz(r),o=(r[2]||0)*this.distanceScales.metersPerUnit[2];return[n,i,o]});let{width:n,height:i,altitude:o=null,fovy:a=null}=r,{latitude:s=0,longitude:l=0,zoom:c=0,pitch:u=0,bearing:d=0,position:h=null,nearZMultiplier:p=.02,farZMultiplier:f=1.01}=r;n=n||1,i=i||1,null===a&&null===o?a=tB(o=1.5):null===a?a=tB(o):null===o&&(o=tF(a));let m=tD(c);o=Math.max(.75,o);let g=function(r){let{latitude:n,longitude:i,highPrecision:o=!1}=r;tA(Number.isFinite(n)&&Number.isFinite(i));let a=Math.cos(n*tZ),s=512/360,l=s/a,c=512/4003e4/a,u={unitsPerMeter:[c,c,c],metersPerUnit:[1/c,1/c,1/c],unitsPerDegree:[s,l,c],degreesPerUnit:[1/s,1/l,1/c]};if(o){let r=tZ*Math.tan(n*tZ)/a,i=512/4003e4*r,o=i/l*c;u.unitsPerDegree2=[0,s*r/2,i],u.unitsPerMeter2=[o,0,o]}return u}({longitude:l,latitude:s}),v=tL([l,s]);if(v.push(0),h){var y,b,x;x=v,y=[],b=g.unitsPerMeter,y[0]=h[0]*b[0],y[1]=h[1]*b[1],y[2]=h[2]*b[2],x[0]=v[0]+y[0],x[1]=v[1]+y[1],x[2]=v[2]+y[2]}this.projectionMatrix=function(r){let{fov:n,aspect:i,near:o,far:a}=function(r){let{width:n,height:i,altitude:o,pitch:a=0,offset:s,center:l,scale:c,nearZMultiplier:u=1,farZMultiplier:d=1}=r,{fovy:h=tB(1.5)}=r;void 0!==o&&(h=tB(o));let p=h*tZ,f=a*tZ,m=tF(h),g=m;l&&(g+=l[2]*c/Math.cos(f)/i);let v=p*(.5+(s?s[1]:0)/i),y=Math.sin(v)*g/Math.sin(tw(Math.PI/2-f-v,.01,Math.PI-.01)),b=Math.sin(f)*y+g,x=10*g,_=Math.min(b*d,x);return{fov:p,aspect:n/i,focalDistance:m,near:u,far:_}}(r),s=tC([],n,i,o,a);return s}({width:n,height:i,scale:m,center:v,pitch:u,fovy:a,nearZMultiplier:p,farZMultiplier:f}),this.viewMatrix=function(r){var n,i,o,a,s,l,c,u,d,h,p,f,m,g,v,y,b,x,_,w,S,T,E,k,C;let{height:P,pitch:O,bearing:j,altitude:A,scale:M,center:I}=r,Z=tb();tE(Z,Z,[0,0,-A]),n=Z,o=Math.sin(i=-O*tZ),a=Math.cos(i),s=Z[4],l=Z[5],c=Z[6],u=Z[7],d=Z[8],h=Z[9],p=Z[10],f=Z[11],Z!==n&&(n[0]=Z[0],n[1]=Z[1],n[2]=Z[2],n[3]=Z[3],n[12]=Z[12],n[13]=Z[13],n[14]=Z[14],n[15]=Z[15]),n[4]=s*a+d*o,n[5]=l*a+h*o,n[6]=c*a+p*o,n[7]=u*a+f*o,n[8]=d*a-s*o,n[9]=h*a-l*o,n[10]=p*a-c*o,n[11]=f*a-u*o,m=Z,v=Math.sin(g=j*tZ),y=Math.cos(g),b=Z[0],x=Z[1],_=Z[2],w=Z[3],S=Z[4],T=Z[5],E=Z[6],k=Z[7],Z!==m&&(m[8]=Z[8],m[9]=Z[9],m[10]=Z[10],m[11]=Z[11],m[12]=Z[12],m[13]=Z[13],m[14]=Z[14],m[15]=Z[15]),m[0]=b*y+S*v,m[1]=x*y+T*v,m[2]=_*y+E*v,m[3]=w*y+k*v,m[4]=S*y-b*v,m[5]=T*y-x*v,m[6]=E*y-_*v,m[7]=k*y-w*v;let R=M/P;return tk(Z,Z,[R,R,R]),I&&tE(Z,Z,((C=[])[0]=-I[0],C[1]=-I[1],C[2]=-I[2],C)),Z}({height:i,scale:m,center:v,pitch:u,bearing:d,altitude:o}),this.width=n,this.height=i,this.scale=m,this.latitude=s,this.longitude=l,this.zoom=c,this.pitch=u,this.bearing=d,this.altitude=o,this.fovy=a,this.center=v,this.meterOffset=h||[0,0,0],this.distanceScales=g,this._initMatrices(),Ob
229ject.freeze(this)}_initMatrices(){var r,n,i,o,a,s,l,c,u,d,h,p,f,m,g,v,y,b,x,_,w,S,T,E,k,C,P,O,j,A;let{width:M,height:I,projectionMatrix:Z,viewMatrix:R}=this,D=tb();tT(D,D,Z),tT(D,D,R),this.viewProjectionMatrix=D;let L=tb();tk(L,L,[M/2,-I/2,1]),tE(L,L,[1,-1,0]),tT(L,L,D);let z=(r=tb(),n=L[0],i=L[1],o=L[2],a=L[3],s=L[4],l=L[5],c=L[6],u=L[7],d=L[8],h=L[9],p=L[10],f=L[11],m=L[12],g=L[13],v=L[14],y=L[15],b=n*l-i*s,x=n*c-o*s,_=n*u-a*s,w=i*c-o*l,S=i*u-a*l,T=o*u-a*c,E=d*g-h*m,k=d*v-p*m,C=d*y-f*m,P=h*v-p*g,O=h*y-f*g,(A=b*(j=p*y-f*v)-x*O+_*P+w*C-S*k+T*E)?(A=1/A,r[0]=(l*j-c*O+u*P)*A,r[1]=(o*O-i*j-a*P)*A,r[2]=(g*T-v*S+y*w)*A,r[3]=(p*S-h*T-f*w)*A,r[4]=(c*C-s*j-u*k)*A,r[5]=(n*j-o*C+a*k)*A,r[6]=(v*_-m*T-y*x)*A,r[7]=(d*T-p*_+f*x)*A,r[8]=(s*O-l*C+u*E)*A,r[9]=(i*C-n*O-a*E)*A,r[10]=(m*S-g*_+y*b)*A,r[11]=(h*_-d*S-f*b)*A,r[12]=(l*k-s*P-c*E)*A,r[13]=(n*P-i*k+o*E)*A,r[14]=(g*x-m*w-v*b)*A,r[15]=(d*w-h*x+p*b)*A,r):null);if(!z)throw Error("Pixel project matrix not invertible");this.pixelProjectionMatrix=L,this.pixelUnprojectionMatrix=z}projectFlat(r){return tL(r)}unprojectFlat(r){return tz(r)}getMapCenterByLngLatPosition({lngLat:r,pos:n}){var i;let o=tN(n,this.pixelUnprojectionMatrix),a=tL(r),s=tO([],a,((i=[])[0]=-o[0],i[1]=-o[1],i)),l=tO([],this.center,s);return tz(l)}fitBounds(r,n={}){let{width:i,height:o}=this,{longitude:a,latitude:s,zoom:l}=function(r){let{width:n,height:i,bounds:o,minExtent:a=0,maxZoom:s=24,offset:l=[0,0]}=r,[[c,u],[d,h]]=o,p=function(r=0){return"number"==typeof r?{top:r,bottom:r,left:r,right:r}:(tA(Number.isFinite(r.top)&&Number.isFinite(r.bottom)&&Number.isFinite(r.left)&&Number.isFinite(r.right)),r)}(r.padding),f=tL([c,tw(h,-85.051129,85.051129)]),m=tL([d,tw(u,-85.051129,85.051129)]),g=[Math.max(Math.abs(m[0]-f[0]),a),Math.max(Math.abs(m[1]-f[1]),a)],v=[n-p.left-p.right-2*Math.abs(l[0]),i-p.top-p.bottom-2*Math.abs(l[1])];tA(v[0]>0&&v[1]>0);let y=v[0]/g[0],b=v[1]/g[1],x=(p.right-p.left)/2/y,_=(p.top-p.bottom)/2/b,w=[(m[0]+f[0])/2+x,(m[1]+f[1])/2+_],S=tz(w),T=Math.min(s,tS(Math.abs(Math.min(y,b))));return tA(Number.isFinite(T)),{longitude:S[0],latitude:S[1],zoom:T}}(Object.assign({width:i,height:o,bounds:r},n));return new tq({width:i,height:o,longitude:a,latitude:s,zoom:l})}getBounds(r){let n=this.getBoundingRegion(r),i=Math.min(...n.map(r=>r[0])),o=Math.max(...n.map(r=>r[0])),a=Math.min(...n.map(r=>r[1])),s=Math.max(...n.map(r=>r[1]));return[[i,a],[o,s]]}getBoundingRegion(r={}){return function(r,n=0){let i,o;let{width:a,height:s,unproject:l}=r,c={targetZ:n},u=l([0,s],c),d=l([a,s],c),h=r.fovy?.5*r.fovy*tU:Math.atan(.5/r.altitude),p=(90-r.pitch)*tU;return h>p-.01?(i=tV(r,0,n),o=tV(r,a,n)):(i=l([0,0],c),o=l([a,0],c)),[u,d,o,i]}(this,r.z||0)}getLocationAtPoint({lngLat:r,pos:n}){return this.getMapCenterByLngLatPosition({lngLat:r,pos:n})}}let t$=["longitude","latitude","zoom"],tG={curve:1.414,speed:1.2};function tW(r,n,i){var o;i=Object.assign({},tG,i);let a=i.curve,s=r.zoom,l=[r.longitude,r.latitude],c=tD(s),u=n.zoom,d=[n.longitude,n.latitude],h=tD(u-s),p=tL(l),f=tL(d),m=((o=[])[0]=f[0]-p[0],o[1]=f[1]-p[1],o),g=Math.max(r.width,r.height),v=g/h,y=Math.hypot(m[0],m[1])*c,b=Math.max(y,.01),x=a*a,_=(v*v-g*g+x*x*b*b)/(2*g*x*b),w=(v*v-g*g-x*x*b*b)/(2*v*x*b),S=Math.log(Math.sqrt(_*_+1)-_),T=Math.log(Math.sqrt(w*w+1)-w);return{startZoom:s,startCenterXY:p,uDelta:m,w0:g,u1:y,S:(T-S)/a,rho:a,rho2:x,r0:S,r1:T}}var tH=function(){if("undefined"!=typeof Map)return Map;function r(r,n){var i=-1;return r.some(function(r,o){return r[0]===n&&(i=o,!0)}),i}return function(){function n(){this.__entries__=[]}return Object.defineProperty(n.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),n.prototype.get=function(n){var i=r(this.__entries__,n),o=this.__entries__[i];return o&&o[1]},n.prototype.set=function(n,i){var o=r(this.__entries__,n);~o?this.__entries__[o][1]=i:this.__entries__.push([n,i])},n.prototype.delete=function(n){var i=this.__entries__,o=r(i,n);~o&&i.splice(o,1)},n.prototype.has=function(n){return!!~r(this.__entries__,n)},n.prototype.clear=function(){this.__entries__.splice(0)},n.prototype.forEach=function(r,n){void 0===n&&(n=null);for(var i=0,o=this.__entries__;i<o.length;i++){var a=o[i];r.call(n,a[1],a[0])}},n}()}(),tX="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,tY=void 0!==i.g&&i.g.Math===Math?i.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),tK="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(tY):function(r){return setTimeout(function(){return r(Date.now())},1e3/60)},tJ=["top","right","bottom","left","width","height","size","weight"],tQ="undefined"!=typeof MutationObserver,t0=function(){function r(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(r,n){var i=!1,o=!1,a=0;function s(){i&&(i=!1,r()),o&&c()}function l(){tK(s)}function c(){var r=Date.now();if(i){if(r-a<2)return;o=!0}else i=!0,o=!1,setTimeout(l,20);a=r}return c}(this.refresh.bind(this),0)}return r.prototype.addObserver=function(r){~this.observers_.indexOf(r)||this.observers_.push(r),this.connected_||this.connect_()},r.prototype.removeObserver=function(r){var n=this.observers_,i=n.indexOf(r);~i&&n.splice(i,1),!n.length&&this.connected_&&this.disconnect_()},r.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},r.prototype.updateObservers_=function(){var r=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return r.forEach(function(r){return r.broadcastActive()}),r.length>0},r.prototype.connect_=function(){tX&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),tQ?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},r.prototype.disconnect_=function(){tX&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},r.prototype.onTransitionEnd_=function(r){var n=r.propertyName,i=void 0===n?"":n;tJ.some(function(r){return!!~i.indexOf(r)})&&this.refresh()},r.getInstance=function(){return this.instance_||(this.instance_=ne
229w r),this.instance_},r.instance_=null,r}(),t1=function(r,n){for(var i=0,o=Object.keys(n);i<o.length;i++){var a=o[i];Object.defineProperty(r,a,{value:n[a],enumerable:!1,writable:!1,configurable:!0})}return r},t2=function(r){return r&&r.ownerDocument&&r.ownerDocument.defaultView||tY},t3=t8(0,0,0,0);function t4(r){return parseFloat(r)||0}function t5(r){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return n.reduce(function(n,i){return n+t4(r["border-"+i+"-width"])},0)}var t6="undefined"!=typeof SVGGraphicsElement?function(r){return r instanceof t2(r).SVGGraphicsElement}:function(r){return r instanceof t2(r).SVGElement&&"function"==typeof r.getBBox};function t8(r,n,i,o){return{x:r,y:n,width:i,height:o}}var t9=function(){function r(r){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=t8(0,0,0,0),this.target=r}return r.prototype.isActive=function(){var r=function(r){if(!tX)return t3;if(t6(r)){var n;return t8(0,0,(n=r.getBBox()).width,n.height)}return function(r){var n=r.clientWidth,i=r.clientHeight;if(!n&&!i)return t3;var o=t2(r).getComputedStyle(r),a=function(r){for(var n={},i=0,o=["top","right","bottom","left"];i<o.length;i++){var a=o[i],s=r["padding-"+a];n[a]=t4(s)}return n}(o),s=a.left+a.right,l=a.top+a.bottom,c=t4(o.width),u=t4(o.height);if("border-box"===o.boxSizing&&(Math.round(c+s)!==n&&(c-=t5(o,"left","right")+s),Math.round(u+l)!==i&&(u-=t5(o,"top","bottom")+l)),r!==t2(r).document.documentElement){var d=Math.round(c+s)-n,h=Math.round(u+l)-i;1!==Math.abs(d)&&(c-=d),1!==Math.abs(h)&&(u-=h)}return t8(a.left,a.top,c,u)}(r)}(this.target);return this.contentRect_=r,r.width!==this.broadcastWidth||r.height!==this.broadcastHeight},r.prototype.broadcastRect=function(){var r=this.contentRect_;return this.broadcastWidth=r.width,this.broadcastHeight=r.height,r},r}(),t7=function(r,n){var i,o,a,s,l,c=(i=n.x,o=n.y,a=n.width,s=n.height,t1(l=Object.create(("undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object).prototype),{x:i,y:o,width:a,height:s,top:o,right:i+a,bottom:s+o,left:i}),l);t1(this,{target:r,contentRect:c})},re=function(){function r(r,n,i){if(this.activeObservations_=[],this.observations_=new tH,"function"!=typeof r)throw TypeError("The callback provided as parameter 1 is not a function.");this.callback_=r,this.controller_=n,this.callbackCtx_=i}return r.prototype.observe=function(r){if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(r instanceof t2(r).Element))throw TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(r)||(n.set(r,new t9(r)),this.controller_.addObserver(this),this.controller_.refresh())}},r.prototype.unobserve=function(r){if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(r instanceof t2(r).Element))throw TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(r)&&(n.delete(r),n.size||this.controller_.removeObserver(this))}},r.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},r.prototype.gatherActive=function(){var r=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&r.activeObservations_.push(n)})},r.prototype.broadcastActive=function(){if(this.hasActive()){var r=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new t7(r.target,r.broadcastRect())});this.callback_.call(r,n,r),this.clearActive()}},r.prototype.clearActive=function(){this.activeObservations_.splice(0)},r.prototype.hasActive=function(){return this.activeObservations_.length>0},r}(),rt="undefined"!=typeof WeakMap?new WeakMap:new tH,rr=function r(n){if(!(this instanceof r))throw TypeError("Cannot call a class as a function.");if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");var i=t0.getInstance(),o=new re(n,i,this);rt.set(this,o)};["observe","unobserve","disconnect"].forEach(function(r){rr.prototype[r]=function(){var n;return(n=rt.get(this))[r].apply(n,arguments)}});
229var rn=void 0!==tY.ResizeObserver?tY.ResizeObserver:rr;function ri(r,n){if(!(r instanceof n))throw TypeError("Cannot call a class as a function")}function ro(r,n){for(var i=0;i<n.length;i++){var o=n[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(r,tf(o.key),o)}}function ra(r,n,i){return n&&ro(r.prototype,n),i&&ro(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r}"undefined"!=typeof window?window:i.g,void 0!==i.g?i.g:window;var rs="undefined"!=typeof document?document:{};function rl(r,n){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),i.push.apply(i,o)}return i}function rc(r){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?rl(Object(i),!0).forEach(function(n){tm(r,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):rl(Object(i)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(i,n))})}return r}function ru(r,n){if("undefined"==typeof Symbol||null==r[Symbol.iterator]){if(Array.isArray(r)||(a=function(r,n){if(r){if("string"==typeof r)return rd(r,n);var i=Object.prototype.toString.call(r).slice(8,-1);if("Object"===i&&r.constructor&&(i=r.constructor.name),"Map"===i||"Set"===i)return Array.from(r);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return rd(r,n)}}(r))||n&&r&&"number"==typeof r.length){a&&(r=a);var i=0,o=function(){};return{s:o,n:function(){return i>=r.length?{done:!0}:{done:!1,value:r[i++]}},e:function(r){throw r},f:o}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s,l=!0,c=!1;return{s:function(){a=r[Symbol.iterator]()},n:function(){var r=a.next();return l=r.done,r},e:function(r){c=!0,s=r},f:function(){try{l||null==a.return||a.return()}finally{if(c)throw s}}}}function rd(r,n){(null==n||n>r.length)&&(n=r.length);for(var i=0,o=Array(n);i<n;i++)o[i]=r[i];return o}var rh=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function rp(r){if(!r)return null;if("string"==typeof r)return r;r.toJS&&(r=r.toJS());var n,i={},o=ru(r.layers);try{for(o.s();!(n=o.n()).done;){var a=n.value;i[a.id]=a}}catch(r){o.e(r)}finally{o.f()}var s=r.layers.map(function(r){var n=i[r.ref],o=null;if("interactive"in r&&delete(o=rc({},r)).interactive,n){delete(o=o||rc({},r)).ref;var a,s=ru(rh);try{for(s.s();!(a=s.n()).done;){var l=a.value;l in n&&(o[l]=n[l])}}catch(r){s.e(r)}finally{s.f()}}return o||r});return rc(rc({},r),{},{layers:s})}var rf=i(34155),rm={container:tg.object,gl:tg.object,mapboxApiAccessToken:tg.string,mapboxApiUrl:tg.string,attributionControl:tg.bool,preserveDrawingBuffer:tg.bool,reuseMaps:tg.bool,transformRequest:tg.func,mapOptions:tg.object,mapStyle:tg.oneOfType([tg.string,tg.object]),preventStyleDiffing:tg.bool,visible:tg.bool,asyncRender:tg.bool,onLoad:tg.func,onError:tg.func,width:tg.number,height:tg.number,viewState:tg.object,longitude:tg.number,latitude:tg.number,zoom:tg.number,bearing:tg.number,pitch:tg.number,altitude:tg.number},rg={container:rs.body,mapboxApiAccessToken:function(){var r=null;if("undefined"!=typeof window&&window.location){var n=window.location.search.match(/access_token=([^&\/]*)/);r=n&&n[1]}return r||void 0===rf||(r=r||rf.env.MapboxAccessToken||rf.env.REACT_APP_MAPBOX_ACCESS_TOKEN),r||"no-token"}(),mapboxApiUrl:"https://api.mapbox.com",preserveDrawingBuffer:!1,attributionControl:!0,reuseMaps:!1,mapOptions:{},mapStyle:"mapbox://styles/mapbox/light-v8",preventStyleDiffing:!1,visible:!0,asyncRender:!1,onLoad:function(){},onError:function(r){r&&console.error(r.error)},width:0,height:0,longitude:0,latitude:0,zoom:0,bearing:0,pitch:0,altitude:1.5};function rv(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"component";r.debug&&tg.checkPropTypes(rm,r,"prop",n)}var ry=function(){function r(n){var i=this;if(ri(this,r),tm(this,"props",rg),tm(this,"width",0),tm(this,"height",0),tm(this,"_fireLoadEvent",function(){i.props.onLoad({type:"load",target:i._map})}),tm(this,"_handleError",function(r){i.props.onError(r)}),!n.mapboxgl)throw Error("Mapbox not available");this.mapboxgl=n.mapboxgl,r.initialized||(r.initialized=!0,this._checkStyleSheet(this.mapboxgl.version)),this._initialize(n)}return ra(r,[{key:"finalize",value:function(){return this._destroy(),this}},{key:"setProps",value:function(r){return this._update(this.props,r),this}},{key:"redraw",value:function(){var r=this._map;r.style&&(r._frame&&(r._frame.cancel(),r._frame=null),r._render())}},{key:"getMap",value:function(){return this._map}},{key:"_reuse",value:function(n){this._map=r.savedMap;var i=this._map.getContainer(),o=n.container;for(o.classList.add("mapboxgl-map");i.childNodes.length>0;)o.appendChild(i.childNodes[0]);this._map._container=o,r.savedMap=null,n.mapStyle&&this._map.setStyle(rp(n.mapStyle),{diff:!1}),this._map.isStyleLoaded()?this._fireLoadEvent():this._map.once("styledata",this._fireLoadEvent)}},{key:"_create",value:function(n){if(n.reuseMaps&&r.savedMap)this._reuse(n);else{if(n.gl){var i=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=function(){return HTMLCanvasElement.prototype.getContext=i,n.gl}}var o={container:n.container,center:[0,0],zoom:8,pitch:0,bearing:0,maxZoom:24,style:rp(n.mapStyle),interactive:!1,trackResize:!1,attributionControl:n.attributionControl,preserveDrawingBuffer:n.preserveDrawingBuffer};n.transformRequest&&(o.transformRequest=n.transformRequest),this._map=new this.mapboxgl.Map(Object.assign({},o,n.mapOptions)),this._map.once("load",this._fireLoadEvent),this._map.on("error",this._handleError)}return this}},{key:"_destroy",value:function(){this._map&&(this.props.reuseMaps&&!r.savedMap?(r.savedMap=this._map,this._map.off("load",this._fireLoadEvent),this._map.off("error",this._handleError),this._map.off("styledata",this._fireLoadEvent)):this._map.remove(),this._map=null)}},{key:"_initialize",value:function(r){var n=this;rv(r=Object.assign({},rg,r),"Mapbox"),this.mapboxgl.accessToken=r.mapboxApiAccessToken||rg.mapboxApiAccessToken,this.mapboxgl.baseApiUrl=r.mapboxApiUrl,this._create(r);var i=r.container;Object.defineProperty(i,"offsetWidth",{configurable:!0,get:function(){return n.width}}),Object.defineProperty(i,"clientWidth",{configurable:!0,get:function(){return n.width}}),Object.defineProperty(i,"offsetHeight",{configurable:!0,get:function(){return n.height}}),Object.defineProperty(i,"clientHeight",{configurable:!0,get:function(){return n.height}});var o=this._map.getCanvas();o&&(o.style.outline="none"),this._updateMapViewport({},r),this._updateMapSize({},r),this.props=r}},{key:"_update",value:function(r,n){if(this._map){rv(n=Object.assign({},this.props,n),"Mapbox");var i=this._updateMapViewport(r,n),o=this._updateMapSize(r,n);this._updateMapStyle(r,n),!n.asyncRender&&(i||o)&&this.redraw(),this.props=n}}},{key:"_updateMapStyle",value:function(r,n){r.mapStyle!==n.mapStyle&&this._map.setStyle(rp(n.mapStyle),{diff:!n.preventStyleDiffing})}},{key:"_updateMapSize",value:function(r,n){var i=r.width!==n.width||r.height!==n.height;return i&&(this.width=n.width,this.height=n.height,this._map.resize()),i}},{key:"_updateMapViewport",value:function(r,n){var i=this._getViewState(r),o=this._getViewState(n),a=o.latitude!==i.latitude||o.longitude!==i.longitude||o.zoom!==i.zoom||o.pitch!==i.pitch||o.bearing!==i.bearing||o.altitude!==i.altitude;return a&&(this._map.jumpTo(this._viewStateToMapboxProps(o)),o.altitude!==i.altitude&&(this._map.transform.altitude=o.altitude)),a}},{key:"_getViewState",value:function(r){var n=r.viewState||r,i=n.longitude,o=n.latitude,a=n.zoom,s=n.pitch,l=n.bearing,c=n.altitude;
229return{longitude:i,latitude:o,zoom:a,pitch:void 0===s?0:s,bearing:void 0===l?0:l,altitude:void 0===c?1.5:c}}},{key:"_checkStyleSheet",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"0.47.0";if(void 0!==rs)try{var n=rs.createElement("div");if(n.className="mapboxgl-map",n.style.display="none",rs.body.appendChild(n),!("static"!==window.getComputedStyle(n).position)){var i=rs.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("type","text/css"),i.setAttribute("href","https://api.tiles.mapbox.com/mapbox-gl-js/v".concat(r,"/mapbox-gl.css")),rs.head.appendChild(i)}}catch(r){}}},{key:"_viewStateToMapboxProps",value:function(r){return{center:[r.longitude,r.latitude],zoom:r.zoom,bearing:r.bearing,pitch:r.pitch}}}]),r}();tm(ry,"initialized",!1),tm(ry,"propTypes",rm),tm(ry,"defaultProps",rg),tm(ry,"savedMap",null);var rb=i(6158),rx=i.n(rb);function r_(r){return Array.isArray(r)||ArrayBuffer.isView(r)}function rw(r,n,i){return Math.max(n,Math.min(i,r))}function rS(r,n,i){return r_(r)?r.map(function(r,o){return rS(r,n[o],i)}):i*n+(1-i)*r}function rT(r,n){if(!r)throw Error(n||"react-map-gl: assertion failed.")}function rE(r,n){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),i.push.apply(i,o)}return i}function rk(r){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?rE(Object(i),!0).forEach(function(n){tm(r,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):rE(Object(i)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(i,n))})}return r}var rC={minZoom:0,maxZoom:24,minPitch:0,maxPitch:85},rP={pitch:0,bearing:0,altitude:1.5},rO=function(){function r(n){var i=n.width,o=n.height,a=n.latitude,s=n.longitude,l=n.zoom,c=n.bearing,u=void 0===c?rP.bearing:c,d=n.pitch,h=void 0===d?rP.pitch:d,p=n.altitude,f=void 0===p?rP.altitude:p,m=n.maxZoom,g=void 0===m?rC.maxZoom:m,v=n.minZoom,y=void 0===v?rC.minZoom:v,b=n.maxPitch,x=void 0===b?rC.maxPitch:b,_=n.minPitch,w=void 0===_?rC.minPitch:_,S=n.transitionDuration,T=n.transitionEasing,E=n.transitionInterpolator,k=n.transitionInterruption,C=n.startPanLngLat,P=n.startZoomLngLat,O=n.startRotatePos,j=n.startBearing,A=n.startPitch,M=n.startZoom;ri(this,r),rT(Number.isFinite(i),"`width` must be supplied"),rT(Number.isFinite(o),"`height` must be supplied"),rT(Number.isFinite(s),"`longitude` must be supplied"),rT(Number.isFinite(a),"`latitude` must be supplied"),rT(Number.isFinite(l),"`zoom` must be supplied"),this._viewportProps=this._applyConstraints({width:i,height:o,latitude:a,longitude:s,zoom:l,bearing:u,pitch:h,altitude:f,maxZoom:g,minZoom:y,maxPitch:x,minPitch:w,transitionDuration:S,transitionEasing:T,transitionInterpolator:E,transitionInterruption:k}),this._state={startPanLngLat:C,startZoomLngLat:P,startRotatePos:O,startBearing:j,startPitch:A,startZoom:M}}return ra(r,[{key:"getViewportProps",value:function(){return this._viewportProps}},{key:"getState",value:function(){return this._state}},{key:"panStart",value:function(r){var n=r.pos;return this._getUpdatedMapState({startPanLngLat:this._unproject(n)})}},{key:"pan",value:function(r){var n=r.pos,i=r.startPos,o=this._state.startPanLngLat||this._unproject(i);if(!o)return this;var a=tv(this._calculateNewLngLat({startPanLngLat:o,pos:n}),2),s=a[0],l=a[1];return this._getUpdatedMapState({longitude:s,latitude:l})}},{key:"panEnd",value:function(){return this._getUpdatedMapState({startPanLngLat:null})}},{key:"rotateStart",value:function(r){var n=r.pos;return this._getUpdatedMapState({startRotatePos:n,startBearing:this._viewportProps.bearing,startPitch:this._viewportProps.pitch})}},{key:"rotate",value:function(r){var n,i=r.pos,o=r.deltaAngleX,a=r.deltaAngleY,s=this._state,l=s.startRotatePos,c=s.startBearing,u=s.startPitch;return Number.isFinite(c)&&Number.isFinite(u)?(n=i?this._calculateNewPitchAndBearing(rk(rk({},this._getRotationParams(i,l)),{},{startBearing:c,startPitch:u})):{bearing:c+(void 0===o?0:o),pitch:u+(void 0===a?0:a)}
229,this._getUpdatedMapState(n)):this}},{key:"rotateEnd",value:function(){return this._getUpdatedMapState({startBearing:null,startPitch:null})}},{key:"zoomStart",value:function(r){var n=r.pos;return this._getUpdatedMapState({startZoomLngLat:this._unproject(n),startZoom:this._viewportProps.zoom})}},{key:"zoom",value:function(r){var n=r.pos,i=r.startPos,o=r.scale;rT(o>0,"`scale` must be a positive number");var a=this._state,s=a.startZoom,l=a.startZoomLngLat;Number.isFinite(s)||(s=this._viewportProps.zoom,l=this._unproject(i)||this._unproject(n)),rT(l,"`startZoomLngLat` prop is required for zoom behavior to calculate where to position the map.");var c=this._calculateNewZoom({scale:o,startZoom:s||0}),u=tv(new tq(Object.assign({},this._viewportProps,{zoom:c})).getMapCenterByLngLatPosition({lngLat:l,pos:n}),2),d=u[0],h=u[1];return this._getUpdatedMapState({zoom:c,longitude:d,latitude:h})}},{key:"zoomEnd",value:function(){return this._getUpdatedMapState({startZoomLngLat:null,startZoom:null})}},{key:"_getUpdatedMapState",value:function(n){return new r(Object.assign({},this._viewportProps,this._state,n))}},{key:"_applyConstraints",value:function(r){var n=r.maxZoom,i=r.minZoom,o=r.zoom;r.zoom=rw(o,i,n);var a=r.maxPitch,s=r.minPitch,l=r.pitch;return r.pitch=rw(l,s,a),Object.assign(r,function(r){let{width:n,height:i,pitch:o=0}=r,{longitude:a,latitude:s,zoom:l,bearing:c=0}=r;(a<-180||a>180)&&(a=t_(a+180,360)-180),(c<-180||c>180)&&(c=t_(c+180,360)-180);let u=tS(i/512);if(l<=u)l=u,s=0;else{let r=i/2/Math.pow(2,l),n=tz([0,r])[1];if(s<n)s=n;else{let n=tz([0,512-r])[1];s>n&&(s=n)}}return{width:n,height:i,longitude:a,latitude:s,zoom:l,pitch:o,bearing:c}}(r)),r}},{key:"_unproject",value:function(r){var n=new tq(this._viewportProps);return r&&n.unproject(r)}},{key:"_calculateNewLngLat",value:function(r){var n=r.startPanLngLat,i=r.pos;return new tq(this._viewportProps).getMapCenterByLngLatPosition({lngLat:n,pos:i})}},{key:"_calculateNewZoom",value:function(r){var n=r.scale,i=r.startZoom,o=this._viewportProps,a=o.maxZoom;return rw(i+Math.log2(n),o.minZoom,a)}},{key:"_calculateNewPitchAndBearing",value:function(r){var n=r.deltaScaleX,i=r.deltaScaleY,o=r.startBearing,a=r.startPitch;i=rw(i,-1,1);var s=this._viewportProps,l=s.minPitch,c=s.maxPitch,u=a;return i>0?u=a+i*(c-a):i<0&&(u=a-i*(l-a)),{pitch:u,bearing:o+180*n}}},{key:"_getRotationParams",value:function(r,n){var i=r[0]-n[0],o=r[1]-n[1],a=r[1],s=n[1],l=this._viewportProps,c=l.width,u=l.height,d=0;return o>0?Math.abs(u-s)>5&&(d=o/(s-u)*1.2):o<0&&s>5&&(d=1-a/s),{deltaScaleX:i/c,deltaScaleY:d=Math.min(1,Math.max(-1,d))}}}]),r}();function rj(r,n){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),i.push.apply(i,o)}return i}function rA(r){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?rj(Object(i),!0).forEach(function(n){tm(r,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):rj(Object(i)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(i,n))})}return r}var rM=(0,d.createContext)({viewport:null,map:null,container:null,onViewportChange:null,onViewStateChange:null,eventManager:null}),rI=rM.Provider;rM.Provider=function(r){var n=r.value,i=r.children,o=tv((0,d.useState)(null),2),a=o[0],s=o[1],l=(0,d.useContext)(rM);return n=rA(rA({setMap:s},l),{},{map:l&&l.map||a},n),d.createElement(rI,{value:n},i)};var rZ="undefined"!=typeof window?d.useLayoutEffect:d.useEffect;function rR(r,n){var i=n.longitude,o=n.latitude;return r&&r.queryTerrainElevation&&r.queryTerrainElevation([i,o])||0}function rD(r,n){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),i.push.apply(i,o)}return i}function rL(r){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?rD(Object(i),!0).forEach(function(n){tm(r,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):rD(Object(i)).forEac
229h(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(i,n))})}return r}var rz="A valid API access token is required to use Mapbox data";function rB(r){var n=r.map,i=r.props,o=r.width,a=r.height,s=rL(rL(rL({},i),i.viewState),{},{width:o,height:a});return s.position=[0,0,rR(n,s)],new tq(s)}var rF={position:"absolute",width:"100%",height:"100%",overflow:"hidden"},rN=Object.assign({},ry.propTypes,{width:tg.oneOfType([tg.number,tg.string]),height:tg.oneOfType([tg.number,tg.string]),onResize:tg.func,disableTokenWarning:tg.bool,visible:tg.bool,className:tg.string,style:tg.object,visibilityConstraints:tg.object}),rU=Object.assign({},ry.defaultProps,{disableTokenWarning:!1,visible:!0,onResize:function(){},className:"",style:null,visibilityConstraints:rC});function rV(){return d.createElement("div",{key:"warning",id:"no-token-warning",style:{position:"absolute",left:0,top:0}},d.createElement("h3",{key:"header"},rz),d.createElement("div",{key:"text"},"For information on setting up your basemap, read"),d.createElement("a",{key:"link",href:"https://visgl.github.io/react-map-gl/docs/get-started/mapbox-tokens"},"Note on Map Tokens"))}var rq=(0,d.forwardRef)(function(r,n){var i=tv((0,d.useState)(!0),2),o=i[0],a=i[1],s=tv((0,d.useState)({width:0,height:0}),2),l=s[0],c=s[1],u=(0,d.useRef)(null),h=(0,d.useRef)(null),p=(0,d.useRef)(null),f=(0,d.useRef)(null),m=(0,d.useContext)(rM);rZ(function(){if(rq.supported()){var n=new ry(rL(rL(rL({},r),l),{},{mapboxgl:rx(),container:h.current,onError:function(n){401===(n.error&&n.error.status||n.status)&&o&&(console.error(rz),a(!1)),r.onError(n)}}));u.current=n,m&&m.setMap&&m.setMap(n.getMap());var i=new rn(function(n){if(n[0].contentRect){var i=n[0].contentRect,o=i.width,a=i.height;c({width:o,height:a}),r.onResize({width:o,height:a})}});return i.observe(p.current),function(){n.finalize(),u.current=null,i.disconnect()}}},[]),rZ(function(){u.current&&u.current.setProps(rL(rL({},r),l))});var g=u.current&&u.current.getMap();(0,d.useImperativeHandle)(n,function(){return{getMap:function(){return u.current&&u.current.getMap()},queryRenderedFeatures:function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=u.current&&u.current.getMap();return i&&i.queryRenderedFeatures(r,n)}}},[]);var v=(0,d.useCallback)(function(r){var n=r.target;n===f.current&&n.scrollTo(0,0)},[]),y=g&&d.createElement(rI,{value:rL(rL({},m),{},{viewport:m.viewport||rB(rL({map:g,props:r},l)),map:g,container:m.container||p.current})},d.createElement("div",{key:"map-overlays",className:"overlays",ref:f,style:rF,onScroll:v},r.children)),b=r.className,x=r.width,_=r.height,w=r.style,S=r.visibilityConstraints,T=Object.assign({position:"relative"},w,{width:x,height:_}),E=Object.assign({},rF,{visibility:r.visible&&function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rC;for(var i in n){var o,a=i.slice(0,3),s=(o=i.slice(3))[0].toLowerCase()+o.slice(1);if("min"===a&&r[s]<n[i]||"max"===a&&r[s]>n[i])return!1}return!0}(r.viewState||r,S)?"inherit":"hidden"});return d.createElement("div",{key:"map-container",ref:p,style:T},d.createElement("div",{key:"map-mapbox",ref:h,style:E,className:b}),y,!o&&!r.disableTokenWarning&&d.createElement(rV,null))});function r$(r,n){(null==n||n>r.length)&&(n=r.length);for(var i=0,o=Array(n);i<n;i++)o[i]=r[i];return o}rq.supported=function(){return rx()&&rx().supported()},rq.propTypes=rN,rq.defaultProps=rU;var rG=function(){function r(){ri(this,r),tm(this,"propNames",[])}return ra(r,[{key:"arePropsEqual",value:function(r,n){var i,o=function(r,n){if("undefined"==typeof Symbol||null==r[Symbol.iterator]){if(Array.isArray(r)||(a=function(r,n){if(r){if("string"==typeof r)return r$(r,n);var i=Object.prototype.toString.call(r).slice(8,-1);if("Object"===i&&r.constructor&&(i=r.constructor.name),"Map"===i||"Set"===i)return Array.from(r);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return r$(r,n)}}(r))){a&&(r=a);var i=0,o=function(){};return{s:o,n:function(){return i>=r.length?{done:!0}:{done:!1,value:r[i++]}},e:function(r){throw r},f:o}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s,l=!0,c=!1;return{s:function(){a=r[Symbol.iterator]()},n:function(){var r=a.next();return l=r.done,r},e:function(r){c=!0,s=r},f:function(){try{l||null==a.return||a.return()}finally{if(c)throw s}}}}(this.propNames||[]);try{for(o.s();!(i=o.n()).done;){var a=i.value;if(!function r(n,i){if(n===i)return!0;
229if(r_(n)&&r_(i)){if(n.length!==i.length)return!1;for(var o=0;o<n.length;++o)if(!r(n[o],i[o]))return!1;return!0}return 1e-7>=Math.abs(n-i)}(r[a],n[a]))return!1}}catch(r){o.e(r)}finally{o.f()}return!0}},{key:"initializeProps",value:function(r,n){return{start:r,end:n}}},{key:"interpolateProps",value:function(r,n,i){rT(!1,"interpolateProps is not implemented")}},{key:"getDuration",value:function(r,n){return n.transitionDuration}}]),r}(),rW=i(97326),rH=i(89611);function rX(r,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),n&&(0,rH.Z)(r,n)}function rY(r,n){if(n&&("object"==(0,tp.Z)(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return(0,rW.Z)(r)}function rK(r){return(rK=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)})(r)}var rJ={longitude:1,bearing:1};function rQ(r){return Number.isFinite(r)||Array.isArray(r)}function r0(r,n,i){return r in rJ&&Math.abs(i-n)>180&&(i=i<0?i+360:i-360),i}function r1(r,n){if("undefined"==typeof Symbol||null==r[Symbol.iterator]){if(Array.isArray(r)||(a=function(r,n){if(r){if("string"==typeof r)return r2(r,n);var i=Object.prototype.toString.call(r).slice(8,-1);if("Object"===i&&r.constructor&&(i=r.constructor.name),"Map"===i||"Set"===i)return Array.from(r);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return r2(r,n)}}(r))||n&&r&&"number"==typeof r.length){a&&(r=a);var i=0,o=function(){};return{s:o,n:function(){return i>=r.length?{done:!0}:{done:!1,value:r[i++]}},e:function(r){throw r},f:o}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s,l=!0,c=!1;return{s:function(){a=r[Symbol.iterator]()},n:function(){var r=a.next();return l=r.done,r},e:function(r){c=!0,s=r},f:function(){try{l||null==a.return||a.return()}finally{if(c)throw s}}}}function r2(r,n){(null==n||n>r.length)&&(n=r.length);for(var i=0,o=Array(n);i<n;i++)o[i]=r[i];return o}var r3=["longitude","latitude","zoom","bearing","pitch"],r4=["latitude","longitude","zoom","width","height"],r5=["bearing","pitch"],r6={speed:1.2,curve:1.414};function r8(r,n){if("undefined"==typeof Symbol||null==r[Symbol.iterator]){if(Array.isArray(r)||(a=function(r,n){if(r){if("string"==typeof r)return r9(r,n);var i=Object.prototype.toString.call(r).slice(8,-1);if("Object"===i&&r.constructor&&(i=r.constructor.name),"Map"===i||"Set"===i)return Array.from(r);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return r9(r,n)}}(r))||n&&r&&"number"==typeof r.length){a&&(r=a);var i=0,o=function(){};return{s:o,n:function(){return i>=r.length?{done:!0}:{done:!1,value:r[i++]}},e:function(r){throw r},f:o}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s,l=!0,c=!1;return{s:function(){a=r[Symbol.iterator]()},n:function(){var r=a.next();return l=r.done,r},e:function(r){c=!0,s=r},f:function(){try{l||null==a.return||a.return()}finally{if(c)throw s}}}}function r9(r,n){(null==n||n>r.length)&&(n=r.length);for(var i=0,o=Array(n);i<n;i++)o[i]=r[i];return o}!function(r){rX(o,r);var n,i=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(r){return!1}}(),function(){var r,i=rK(o);if(n){var a=rK(this).constructor;r=Reflect.construct(i,arguments,a)}else r=i.apply(this,arguments);return rY(this,r)});function o(){var r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ri(this,o),r=i.call(this),tm((0,rW.Z)(r),"propNames",r3),r.props=Object.assign({},r6,n),r}ra(o,[{key:"initializeProps",value:function(r,n){var i,o={},a={}
229,s=r1(r4);try{for(s.s();!(i=s.n()).done;){var l=i.value,c=r[l],u=n[l];rT(rQ(c)&&rQ(u),"".concat(l," must be supplied for transition")),o[l]=c,a[l]=r0(l,c,u)}}catch(r){s.e(r)}finally{s.f()}var d,h=r1(r5);try{for(h.s();!(d=h.n()).done;){var p=d.value,f=r[p]||0,m=n[p]||0;o[p]=f,a[p]=r0(p,f,m)}}catch(r){h.e(r)}finally{h.f()}return{start:o,end:a}}},{key:"interpolateProps",value:function(r,n,i){var o,a=function(r,n,i,o){var a;let{startZoom:s,startCenterXY:l,uDelta:c,w0:u,u1:d,S:h,rho:p,rho2:f,r0:m}=tW(r,n,o);if(d<.01){let o={};for(let a of t$){let s=r[a],l=n[a];o[a]=i*l+(1-i)*s}return o}let g=i*h,v=Math.cosh(m)/Math.cosh(m+p*g),y=u*((Math.cosh(m)*Math.tanh(m+p*g)-Math.sinh(m))/f)/d,b=s+tS(1/v),x=((a=[])[0]=c[0]*y,a[1]=c[1]*y,a);tO(x,x,l);let _=tz(x);return{longitude:_[0],latitude:_[1],zoom:b}}(r,n,i,this.props),s=r1(r5);try{for(s.s();!(o=s.n()).done;){var l=o.value;a[l]=rS(r[l],n[l],i)}}catch(r){s.e(r)}finally{s.f()}return a}},{key:"getDuration",value:function(r,n){var i=n.transitionDuration;return"auto"===i&&(i=function(r,n,i){let o;let a={...tG,...i},{screenSpeed:s,speed:l,maxDuration:c}=a,{S:u,rho:d}=tW(r,n,a),h=1e3*u;return o=Number.isFinite(s)?h/(s/d):h/l,Number.isFinite(c)&&o>c?0:o}(r,n,this.props)),i}}])}(rG);var r7=["longitude","latitude","zoom","bearing","pitch"],ne=function(r){rX(o,r);var n,i=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(r){return!1}}(),function(){var r,i=rK(o);if(n){var a=rK(this).constructor;r=Reflect.construct(i,arguments,a)}else r=i.apply(this,arguments);return rY(this,r)});function o(){var r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ri(this,o),r=i.call(this),Array.isArray(n)&&(n={transitionProps:n}),r.propNames=n.transitionProps||r7,n.around&&(r.around=n.around),r}return ra(o,[{key:"initializeProps",value:function(r,n){var i={},o={};if(this.around){i.around=this.around;var a=new tq(r).unproject(this.around);Object.assign(o,n,{around:new tq(n).project(a),aroundLngLat:a})}var s,l=r8(this.propNames);try{for(l.s();!(s=l.n()).done;){var c=s.value,u=r[c],d=n[c];rT(rQ(u)&&rQ(d),"".concat(c," must be supplied for transition")),i[c]=u,o[c]=r0(c,u,d)}}catch(r){l.e(r)}finally{l.f()}return{start:i,end:o}}},{key:"interpolateProps",value:function(r,n,i){var o,a={},s=r8(this.propNames);try{for(s.s();!(o=s.n()).done;){var l=o.value;a[l]=rS(r[l],n[l],i)}}catch(r){s.e(r)}finally{s.f()}if(n.around){var c=tv(new tq(Object.assign({},n,a)).getMapCenterByLngLatPosition({lngLat:n.aroundLngLat,pos:rS(r.around,n.around,i)}),2),u=c[0],d=c[1];a.longitude=u,a.latitude=d}return a}}]),o}(rG),nt=function(){},nr={BREAK:1,SNAP_TO_END:2,IGNORE:3,UPDATE:4},nn={transitionDuration:0,transitionEasing:function(r){return r},transitionInterpolator:new ne,transitionInterruption:nr.BREAK,onTransitionStart:nt,onTransitionInterrupt:nt,onTransitionEnd:nt},ni=function(){function r(){var n=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ri(this,r),tm(this,"_animationFrame",null),tm(this,"_onTransitionFrame",function(){n._animationFrame=requestAnimationFrame(n._onTransitionFrame),n._updateViewport()}),this.props=null,this.onViewportChange=i.onViewportChange||nt,this.onStateChange=i.onStateChange||nt,this.time=i.getTime||Date.now}return ra(r,[{key:"getViewportInTransition",value:function(){return this._animationFrame?this.state.propsInTransition:null}},{key:"processViewportChange",value:function(r){var n=this.props;if(this.props=r,!n||this._shouldIgnoreViewportChange(n,r))return!1;if(this._isTransitionEnabled(r)){var i=Object.assign({},n),o=Object.assign({},r);if(this._isTransitionInProgress()&&(n.onTransitionInterrupt(),this.state.interruption===nr.SNAP_TO_END?Object.assign(i,this.state.endProps):Object.assign(i,this.state.propsInTransition),this.state.interruption===nr.UPDATE)){var a,s,l=this.time(),c=(l-this.state.startTime)/this.state.duration;o.transitionDuration=this.state.duration-(l-this.state.startTime),o.transitionEasing=(s=(a=this.state.easing)(c),function(r){return 1/(1-s)*(a(r*(1-c)+c)-s)}),o.transitionInterpolator=i.transitionInterpolator}return o.onTransitionStart(),this._triggerTransition(i,o),!0}return this._isTransitionInProgress()&&(n.onTransitionInterrupt(),this._endTransition()),!1}},{key:"_isTransitionInProgress",value:function(){return Boolean(this._animationFrame)}},{key:"_isTransitionEnabled",value:function(r){var n=r.transitionDuration,i=r.transitionInterpolator;return(n>0||"auto"===n)&&Boolean(i)}},{key:"_isUpdateDueToCurrentTransition",value:function(r){return!!this.state.propsInTransition&&this.state.interpolator.arePropsEqual(r,this.state.propsInTransition)}},{key:"_shouldIgnoreViewportChange",value:function(r,n){return!r||(this._isTransitionInProgress()?this.state.interruption===nr.IGNORE||this._isUpdateDueToCurrentTransition(n):!this._isTransitionEnabled(n)||n.transitionInterpolator.arePropsEqual(r,n))}},{key:"_triggerTransition",value:function(r,n){rT(this._isTransitionEnabled(n)),this._animationFrame&&cancelAnimationFrame(this._animationFrame);var i=n.transitionInterpolator,o=i.getDuration?i.getDuration(r,n):n.transitionDuration;if(0!==o){var a=n.transitionInterpolator.initializeProps(r,n),s={inTransition:!0,isZooming:r.zoom!==n.zoom,isPanning:r.longitude!==n.longitude||r.latitude!==n.latitude,isRotating:r.bearing!==n.bearing||r.pitch!==n.pitch};this.state={duration:o,easing:n.transitionEasing,interpolator:n.transitionInterpolator,interruption:n.transitionInterruption,startTime:this.time(),startProps:a.start,endProps:a.end,animation:null,propsInTransition:{}},this._onTransitionFrame(),this.onStateChange(s)}}},{key:"_endTransition",value:function(){this._animationFrame&&(cancelAnimationFrame(this._animationFrame),this._animationFrame=null),this.onStateChange({inTransition:!1,isZooming:!1,isPanning:!1,isRotating:!1})}},{key:"_updateViewport",value:function(){var r=this.time(),n=this.state,i=n.startTime,o=n.duration,a=n.easing,s=n.interpolator,l=n.startProps,c=n.endProps,u=!1,d=(r-i)/o;d>=1&&(d=1,u=!0),d=a(d);var h=s.interpolateProps(l,c,d),p=new rO(Object.assign({},this.props,h));this.state.propsInTransition=p.getViewportProps(),this.onViewportChange(this.state.propsInTransition,this.props),u&&(this._endTransition(),this.props.onTransitionEnd())}}]),r}();tm(ni,"defaultProps",nn);var no=i(50840);
229let na={mousedown:1,mousemove:2,mouseup:4};!function(r){let n=r.prototype.handler;r.prototype.handler=function(r){let i=this.store;r.button>0&&"pointerdown"===r.type&&!function(r,n){for(let i=0;i<r.length;i++)if(n(r[i]))return!0;return!1}(i,n=>n.pointerId===r.pointerId)&&i.push(r),n.call(this,r)}}(no.PointerEventInput),no.MouseInput.prototype.handler=function(r){let n=na[r.type];1&n&&r.button>=0&&(this.pressed=!0),2&n&&0===r.buttons&&(n=4),this.pressed&&(4&n&&(this.pressed=!1),this.callback(this.manager,n,{pointers:[r],changedPointers:[r],pointerType:"mouse",srcEvent:r}))};let ns=no.Manager;class nl{constructor(r,n,i){this.element=r,this.callback=n,this.options={enable:!0,...i}}}let nc=no?[[no.Pan,{event:"tripan",pointers:3,threshold:0,enable:!1}],[no.Rotate,{enable:!1}],[no.Pinch,{enable:!1}],[no.Swipe,{enable:!1}],[no.Pan,{threshold:0,enable:!1}],[no.Press,{enable:!1}],[no.Tap,{event:"doubletap",taps:2,enable:!1}],[no.Tap,{event:"anytap",enable:!1}],[no.Tap,{enable:!1}]]:null,nu={tripan:["rotate","pinch","pan"],rotate:["pinch"],pinch:["pan"],pan:["press","doubletap","anytap","tap"],doubletap:["anytap"],anytap:["tap"]},nd={doubletap:["tap"]},nh={pointerdown:"pointerdown",pointermove:"pointermove",pointerup:"pointerup",touchstart:"pointerdown",touchmove:"pointermove",touchend:"pointerup",mousedown:"pointerdown",mousemove:"pointermove",mouseup:"pointerup"},np={KEY_EVENTS:["keydown","keyup"],MOUSE_EVENTS:["mousedown","mousemove","mouseup","mouseover","mouseout","mouseleave"],WHEEL_EVENTS:["wheel","mousewheel"]},nf={tap:"tap",anytap:"anytap",doubletap:"doubletap",press:"press",pinch:"pinch",pinchin:"pinch",pinchout:"pinch",pinchstart:"pinch",pinchmove:"pinch",pinchend:"pinch",pinchcancel:"pinch",rotate:"rotate",rotatestart:"rotate",rotatemove:"rotate",rotateend:"rotate",rotatecancel:"rotate",tripan:"tripan",tripanstart:"tripan",tripanmove:"tripan",tripanup:"tripan",tripandown:"tripan",tripanleft:"tripan",tripanright:"tripan",tripanend:"tripan",tripancancel:"tripan",pan:"pan",panstart:"pan",panmove:"pan",panup:"pan",pandown:"pan",panleft:"pan",panright:"pan",panend:"pan",pancancel:"pan",swipe:"swipe",swipeleft:"swipe",swiperight:"swipe",swipeup:"swipe",swipedown:"swipe"},nm={click:"tap",anyclick:"anytap",dblclick:"doubletap",mousedown:"pointerdown",mousemove:"pointermove",mouseup:"pointerup",mouseover:"pointerover",mouseout:"pointerout",mouseleave:"pointerleave"},ng="undefined"!=typeof navigator&&navigator.userAgent?navigator.userAgent.toLowerCase():"",nv="undefined"!=typeof window?window:i.g;void 0!==i.g?i.g:window;let ny=!1;try{let r={get passive(){return ny=!0,!0}};nv.addEventListener("test",null,r),nv.removeEventListener("test",null)}catch(r){ny=!1}let nb=-1!==ng.indexOf("firefox"),{WHEEL_EVENTS:nx}=np,n_="wheel";class nw extends nl{constructor(r,n,i){super(r,n,i),this.handleEvent=r=>{if(!this.options.enable)return;let n=r.deltaY;nv.WheelEvent&&(nb&&r.deltaMode===nv.WheelEvent.DOM_DELTA_PIXEL&&(n/=nv.devicePixelRatio),r.deltaMode===nv.WheelEvent.DOM_DELTA_LINE&&(n*=40)),0!==n&&n%4.000244140625==0&&(n=Math.floor(n/4.000244140625)),r.shiftKey&&n&&(n*=.25),this.callback({type:n_,center:{x:r.clientX,y:r.clientY},delta:-n,srcEvent:r,pointerType:"mouse",target:r.target})},this.events=(this.options.events||[]).concat(nx),this.events.forEach(n=>r.addEventListener(n,this.handleEvent,!!ny&&{passive:!1}))}destroy(){this.events.forEach(r=>this.element.removeEventListener(r,this.handleEvent))}enableEventType(r,n){r===n_&&(this.options.enable=n)}}let{MOUSE_EVENTS:nS}=np,nT="pointermove",nE="pointerover",nk="pointerout",nC="pointerenter",nP="pointerleave";class nO extends nl{constructor(r,n,i){super(r,n,i),this.handleEvent=r=>{this.handleOverEvent(r),this.handleOutEvent(r),this.handleEnterEvent(r),this.handleLeaveEvent(r),this.handleMoveEvent(r)},this.pressed=!1;let{enable:o}=this.options;this.enableMoveEvent=o,this.enableLeaveEvent=o,this.enableEnterEvent=o,this.enableOutEvent=o,this.enableOverEvent=o,this.events=(this.options.events||[]).concat(nS),this.events.forEach(n=>r.addEventListener(n,this.handleEvent))}
229destroy(){this.events.forEach(r=>this.element.removeEventListener(r,this.handleEvent))}enableEventType(r,n){r===nT&&(this.enableMoveEvent=n),r===nE&&(this.enableOverEvent=n),r===nk&&(this.enableOutEvent=n),r===nC&&(this.enableEnterEvent=n),r===nP&&(this.enableLeaveEvent=n)}handleOverEvent(r){this.enableOverEvent&&"mouseover"===r.type&&this._emit(nE,r)}handleOutEvent(r){this.enableOutEvent&&"mouseout"===r.type&&this._emit(nk,r)}handleEnterEvent(r){this.enableEnterEvent&&"mouseenter"===r.type&&this._emit(nC,r)}handleLeaveEvent(r){this.enableLeaveEvent&&"mouseleave"===r.type&&this._emit(nP,r)}handleMoveEvent(r){if(this.enableMoveEvent)switch(r.type){case"mousedown":r.button>=0&&(this.pressed=!0);break;case"mousemove":0===r.buttons&&(this.pressed=!1),this.pressed||this._emit(nT,r);break;case"mouseup":this.pressed=!1}}_emit(r,n){this.callback({type:r,center:{x:n.clientX,y:n.clientY},srcEvent:n,pointerType:"mouse",target:n.target})}}let{KEY_EVENTS:nj}=np,nA="keydown",nM="keyup";class nI extends nl{constructor(r,n,i){super(r,n,i),this.handleEvent=r=>{let n=r.target||r.srcElement;("INPUT"!==n.tagName||"text"!==n.type)&&"TEXTAREA"!==n.tagName&&(this.enableDownEvent&&"keydown"===r.type&&this.callback({type:nA,srcEvent:r,key:r.key,target:r.target}),this.enableUpEvent&&"keyup"===r.type&&this.callback({type:nM,srcEvent:r,key:r.key,target:r.target}))},this.enableDownEvent=this.options.enable,this.enableUpEvent=this.options.enable,this.events=(this.options.events||[]).concat(nj),r.tabIndex=this.options.tabIndex||0,r.style.outline="none",this.events.forEach(n=>r.addEventListener(n,this.handleEvent))}destroy(){this.events.forEach(r=>this.element.removeEventListener(r,this.handleEvent))}enableEventType(r,n){r===nA&&(this.enableDownEvent=n),r===nM&&(this.enableUpEvent=n)}}let nZ="contextmenu";class nR extends nl{constructor(r,n,i){super(r,n,i),this.handleEvent=r=>{this.options.enable&&this.callback({type:nZ,center:{x:r.clientX,y:r.clientY},srcEvent:r,pointerType:"mouse",target:r.target})},r.addEventListener("contextmenu",this.handleEvent)}destroy(){this.element.removeEventListener("contextmenu",this.handleEvent)}enableEventType(r,n){r===nZ&&(this.options.enable=n)}}let nD={pointerdown:1,pointermove:2,pointerup:4,mousedown:1,mousemove:2,mouseup:4},nL={srcElement:"root",priority:0};class nz{constructor(r){this.handleEvent=r=>{if(this.isEmpty())return;let n=this._normalizeEvent(r),i=r.srcEvent.target;for(;i&&i!==n.rootElement;){if(this._emit(n,i),n.handled)return;i=i.parentNode}this._emit(n,"root")},this.eventManager=r,this.handlers=[],this.handlersByElement=new Map,this._active=!1}isEmpty(){return!this._active}add(r,n,i,o=!1,a=!1){let{handlers:s,handlersByElement:l}=this,c=nL;"string"==typeof i||i&&i.addEventListener?c={...nL,srcElement:i}:i&&(c={...nL,...i});let u=l.get(c.srcElement);u||(u=[],l.set(c.srcElement,u));let d={type:r,handler:n,srcElement:c.srcElement,priority:c.priority};o&&(d.once=!0),a&&(d.passive=!0),s.push(d),this._active=this._active||!d.passive;let h=u.length-1;for(;h>=0&&!(u[h].priority>=d.priority);)h--;u.splice(h+1,0,d)}remove(r,n){let{handlers:i,handlersByElement:o}=this;for(let a=i.length-1;a>=0;a--){let s=i[a];if(s.type===r&&s.handler===n){i.splice(a,1);let r=o.get(s.srcElement);r.splice(r.indexOf(s),1),0===r.length&&o.delete(s.srcElement)}}this._active=i.some(r=>!r.passive)}_emit(r,n){let i=this.handlersByElement.get(n);if(i){let n=!1,o=()=>{r.handled=!0},a=()=>{r.handled=!0,n=!0},s=[];for(let l=0;l<i.length;l++){let{type:c,handler:u,once:d}=i[l];if(u({...r,type:c,stopPropagation:o,stopImmediatePropagation:a}),d&&s.push(i[l]),n)break}for(let r=0;r<s.length;r++){let{type:n,handler:i}=s[r];this.remove(n,i)}}}_normalizeEvent(r){let n=this.eventManager.getElement();return{...r,...function(r){let n=nD[r.srcEvent.type];if(!n)return null;let{buttons:i,button:o}=r.srcEvent,a=!1,s=!1,l=!1;return 2===n?(a=Boolean(1&i),s=Boolean(4&i),l=Boolean(2&i)):(a=0===o,s=1===o,l=2===o),{leftButton:a,middleButton:s,rightButton:l}}(r),...function(r,n){let i=r.center;if(!i)return null;let o=n.getBoundingClientRect(),a=o.width/n.offsetWidth||1,s=o.height/n.offsetHeight||1,l={x:(i.x-o.left-n.clientLeft)/a,y:(i.y-o.top-n.clientTop)/s};return{center:i,offsetCenter:l}}(r,n),preventDefault:()=>{r.srcEvent.preventDefault()},stopImmediatePropagation:null,stopPropagation:null,handled:!1,rootElement:n}}}let nB={events:null,recognizers:null,recognizerOptions:{},Manager:ns,touchAction:"none",tabIndex:0};
229class nF{constructor(r=null,n){this._onBasicInput=r=>{let{srcEvent:n}=r,i=nh[n.type];i&&this.manager.emit(i,r)},this._onOtherEvent=r=>{this.manager.emit(r.type,r)},this.options={...nB,...n},this.events=new Map,this.setElement(r);let{events:i}=this.options;i&&this.on(i)}getElement(){return this.element}setElement(r){if(this.element&&this.destroy(),this.element=r,!r)return;let{options:n}=this,i=n.Manager;for(let o in this.manager=new i(r,{touchAction:n.touchAction,recognizers:n.recognizers||nc}).on("hammer.input",this._onBasicInput),n.recognizers||Object.keys(nu).forEach(r=>{let n=this.manager.get(r);n&&nu[r].forEach(r=>{n.recognizeWith(r)})}),n.recognizerOptions){let r=this.manager.get(o);if(r){let i=n.recognizerOptions[o];delete i.enable,r.set(i)}}for(let[i,o]of(this.wheelInput=new nw(r,this._onOtherEvent,{enable:!1}),this.moveInput=new nO(r,this._onOtherEvent,{enable:!1}),this.keyInput=new nI(r,this._onOtherEvent,{enable:!1,tabIndex:n.tabIndex}),this.contextmenuInput=new nR(r,this._onOtherEvent,{enable:!1}),this.events))o.isEmpty()||(this._toggleRecognizer(o.recognizerName,!0),this.manager.on(i,o.handleEvent))}destroy(){this.element&&(this.wheelInput.destroy(),this.moveInput.destroy(),this.keyInput.destroy(),this.contextmenuInput.destroy(),this.manager.destroy(),this.wheelInput=null,this.moveInput=null,this.keyInput=null,this.contextmenuInput=null,this.manager=null,this.element=null)}on(r,n,i){this._addEventHandler(r,n,i,!1)}once(r,n,i){this._addEventHandler(r,n,i,!0)}watch(r,n,i){this._addEventHandler(r,n,i,!1,!0)}off(r,n){this._removeEventHandler(r,n)}_toggleRecognizer(r,n){let{manager:i}=this;if(!i)return;let o=i.get(r);if(o&&o.options.enable!==n){o.set({enable:n});let a=nd[r];a&&!this.options.recognizers&&a.forEach(a=>{let s=i.get(a);n?(s.requireFailure(r),o.dropRequireFailure(a)):s.dropRequireFailure(r)})}this.wheelInput.enableEventType(r,n),this.moveInput.enableEventType(r,n),this.keyInput.enableEventType(r,n),this.contextmenuInput.enableEventType(r,n)}_addEventHandler(r,n,i,o,a){if("string"!=typeof r){for(let s in i=n,r)this._addEventHandler(s,r[s],i,o,a);return}let{manager:s,events:l}=this,c=nm[r]||r,u=l.get(c);!u&&(u=new nz(this),l.set(c,u),u.recognizerName=nf[c]||c,s&&s.on(c,u.handleEvent)),u.add(r,n,i,o,a),u.isEmpty()||this._toggleRecognizer(u.recognizerName,!0)}_removeEventHandler(r,n){if("string"!=typeof r){for(let n in r)this._removeEventHandler(n,r[n]);return}let{events:i}=this,o=nm[r]||r,a=i.get(o);if(a&&(a.remove(r,n),a.isEmpty())){let{recognizerName:r}=a,n=!1;for(let o of i.values())if(o.recognizerName===r&&!o.isEmpty()){n=!0;break}n||this._toggleRecognizer(r,!1)}}}function nN(r,n){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),i.push.apply(i,o)}return i}function nU(r){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?nN(Object(i),!0).forEach(function(n){tm(r,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):nN(Object(i)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(i,n))})}return r}var nV={transitionDuration:0},nq={transitionDuration:300,transitionEasing:function(r){return r},transitionInterpolator:new ne,transitionInterruption:nr.BREAK},n$=function(r){return 1-(1-r)*(1-r)},nG={WHEEL:["wheel"],PAN:["panstart","panmove","panend"],PINCH:["pinchstart","pinchmove","pinchend"],TRIPLE_PAN:["tripanstart","tripanmove","tripanend"],DOUBLE_TAP:["doubletap"],KEYBOARD:["keydown"]},nW=function(){function r(){var n=this;ri(this,r),tm(this,"events",[]),tm(this,"scrollZoom",!0),tm(this,"dragPan",!0),tm(this,"dragRotate",!0),tm(this,"doubleClickZoom",!0),tm(this,"touchZoom",!0),tm(this,"touchRotate",!1),tm(this,"keyboard",!0),tm(this,"_interactionState",{isDragging:!1}),tm(this,"_events",{}),tm(this,"_setInteractionState",function(r){Object.assign(n._interactionState,r),n.onStateChange&&n.onStateChange(n._interactionState)}),tm(this,"_onTransition",function(r,i){n.onViewportChange(r,n._interactionState,i)}),this.handleEvent=this.handleEvent.bind(this),this._transitionManager=new ni({onViewportChange:this._onTransition,onStateChange:this._setInteractionState})}return ra(r,[{key:"handleEvent",value:function(r){this.mapState=this.getMapState();var n=this._eventStartBlocked;switch(r.type){case"panstart":return!n&&this._onPanStart(r);case"panmove":return this._onPan(r);case"panend":return this._onPanEnd(r);case"pinchstart":return!n&&this._onPinchStart(r);case"pinchmove":return this._onPinch(r);case"pinchend":return this._onPinchEnd(r);case"tripanstart":return!n&&this._onTriplePanStart(r);case"tripanmove":return this._onTriplePan(r);case"tripanend":return this._onTriplePanEnd(r);case"doubletap":return this._onDoubleTap(r);case"wheel":return this._onWheel(r);case"keydown":return this._onKeyDown(r);default:return!1}}},{key:"getCenter",value:function(r){var n=r.offsetCenter;return[n.x,n.y]}},{key:"isFunctionKeyPressed",value:function(r){var n=r.srcEvent;return Boolean(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}},{key:"blockEvents",value:function(r){var n=this,i=setTimeout(function(){n._eventStartBlocked===i&&(n._eventStartBlocked=null)},r);this._eventStartBlocked=i}},{key:"updateViewport",value:function(r,n,i){var o=this.mapState instanceof rO?this.mapState.getViewportProps():this.mapState,a=nU(nU({},r.getViewportProps()),n),s=Object.keys(a).some(function(r){return o[r]!==a[r]});this._state=r.getState(),this._setInteractionState(i),s&&this.onViewportChange(a,this._interactionState,o)}},{key:"getMapState",value:function(r){return new rO(nU(nU(nU({},this.mapStateProps),this._state),r))}},{key:"isDragging",value:function(){return this._interactionState.isDragging}},{key:"setOptions",value:function(r){var n=r.onViewportChange,i=r.onStateChange,o=r.eventManager,a=void 0===o?this.eventManager:o,s=r.isInteractive,l=void 0===s||s,c=r.scrollZoom,u=void 0===c?this.scrollZoom:c,d=r.dragPan,h=void 0===d?this.dragPan:d,p=r.dragRotate,f=void 0===p?this.dragRotate:p,m=r.doubleClickZoom,g=void 0===m?this.doubleClickZoom:m,v=r.touchZoom,y=void 0===v?this.touchZoom:v,b=r.touchRotate,x=void 0===b?this.touchRotate:b,_=r.keyboard,w=void 0===_?this.keyboard:_;this.onViewportChange=n,this.onStateChange=i;var S=this.mapStateProps||{},T=S.height!==r.height||S.width!==r.width;this.mapStateProps=r,T&&(this.mapState=S,this.updateViewport(new rO(r))),this._transitionManager.processViewportChange(r),this.eventManager!==a&&(this.eventManager=a,this._events={},this.toggleEvents(this.events,!0)),this.toggleEvents(nG.WHEEL,l&&Boolean(u)),this.toggleEvents(nG.PAN,l&&Boolean(h||f)),this.toggleEvents(nG.PINCH,l&&Boolean(y||x)),this.toggleEvents(nG.TRIPLE_PAN,l&&Boolean(x)),this.toggleEvents(nG.DOUBLE_TAP,l&&Boolean(g)),this.toggleEvents(nG.KEYBOARD,l&&Boolean(w)),this.scrollZoom=u,this.dragPan=h,this.dragRotate=f,this.doubleClickZoom=g,this.touchZoom=y,this.touchRotate=x,this.keyboard=w}},{key:"toggleEvents",value:function(r,n){var i=this;this.eventManager&&r.forEach(function(r){i._events[r]!==n&&(i._events[r]=n,n?i.eventManager.on(r,i.handleEvent):i.eventManager.off(r,i.handleEvent))})}},{key:"_onPanStart",value:function(r){var n=this.getCenter(r);this._panRotate=this.isFunctionKeyPressed(r)||r.rightButton;var i=this._panRotate?this.mapState.rotateStart({pos:n}):this.mapState.panStart({pos:n});return this.updateViewport(i,nV,{isDragging:!0}),!0}},{key:"_onPan",value:function(r){return!!this.isDragging()&&(this._panRotate?this._onPanRotate(r):this._onPanMove(r))}},{key:"_onPanEnd",value:function(r){return!!this.isDragging()&&(this._panRotate?this._onPanRotateEnd(r):this._onPanMoveEnd(r))}},{key:"_onPanMove",value:function(r){if(!this.dragPan)return!1;var n=this.getCenter(r),i=this.mapState.pan({pos:n});return this.updateViewport(i,nV,{isPanning:!0}),!0}},{key:"_onPanMoveEnd",value:function(r){if(this.dragPan){var n=this.dragPan.inertia,i=void 0===n?300:n;if(i&&r.velocity){var o=this.getCenter(r),a=[o[0]+r.velocityX*i/2,o[1]+r.velocityY*i/2],s=this.mapState.pan({pos:a}).panEnd();return this.updateViewport(s,nU(nU({},nq),{},{transitionDuration:i,transitionEasing:n$}),{isDragging:!1,isPanning:!0}),!0}}var l=this.mapState.panEnd();return this.updateViewport(l,null,{isDragging:!1,isPanning:!1}),!0}},{key:"_onPanRotate",value:function(r){if(!this.dragRotate)return!1;var n=this.getCenter(r),i=this.mapState.rotate({pos:n});return this.updateViewport(i,nV,{isRotating:!0}),!0}},{key:"_onPanRotateEnd",value:function(r){if(this.dragRotate){var n=this.dragRotate.inertia,i=void 0===n?300:n;if(i&&r.velocity){var o=this.getCenter(r),a=[o[0]+r.velocityX*i/2,o[1]+r.velocityY*i/2],s=this.mapState.rotate({pos:a}).rotateEnd();return this.updateViewport(s,nU(nU({},nq),{},{transitionDuration:i,transitionEasing:n$}),{isDragging:!1,isRotating:!0}),!0}}var l=this.mapState.panEnd();return this.updateViewport(l,null,{isDragging:!1,isRotating:!1}),!0}},{key:"_onWheel",value:function(r){if(!this.scrollZoom)return!1;var n=this.scrollZoom,i=n.speed,o=n.smooth;r.preventDefault();var a=this.getCenter(r),s=r.delta,l=2/(1+Math.exp(-Math.abs(s*(void 0===i?.01:i))));s<0&&0!==l&&(l=1/l);var c=this.mapState.zoom({pos:a,scale:l});return c.getViewportProps().zoom!==this.mapStateProps.zoom&&(this.updateViewport(c,nU(nU({},nq),{},{transitionInterpolator:new ne({around:a}),transitionDuration:void 0!==o&&o?250:1}),{isPanning:!0,isZooming:!0}),!0)}},{key:"_onPinchStart",value:function(r){var n=this.getCenter(r),i=this.mapState.zoomStart({pos:n}).rotateStart({pos:n});return this._startPinchRotation=r.rotation,this._lastPinchEvent=r,this.updateViewport(i,nV,{isDragging:!0}),!0}},{key:"_onPinch",value:function(r){if(!this.isDragging()||!this.touchZoom&&!this.touchRotate)return!1;var n=this.mapState;if(this.touchZoom){var i=r.scale,o=this.getCenter(r);n=n.zoom({pos:o,scale:i})}if(this.touchRotate){var a=r.rotation;n=n.rotate({deltaAngleX:this._startPinchRotation-a})}return this.updateViewport(n,nV,{isDragging:!0,isPanning:Boolean(this.touchZoom),isZooming:Boolean(this.touchZoom),isRotating:Boolean(this.touchRotate)}),this._lastPinchEvent=r,!0}},{key:"_onPinchEnd",value:function(r){if(!this.isDragging())return!1;if(this.touchZoom){var n=this.touchZoom.inertia,i=void 0===n?300:n,o=this._lastPinchEvent;if(i&&o&&r.scale!==o.scale){var a=this.getCenter(r),s=this.mapState.rotateEnd(),l=Math.log2(r.scale),c=(l-Math.log2(o.scale))/(r.deltaTime-o.deltaT
229ime),u=Math.pow(2,l+c*i/2);return s=s.zoom({pos:a,scale:u}).zoomEnd(),this.updateViewport(s,nU(nU({},nq),{},{transitionInterpolator:new ne({around:a}),transitionDuration:i,transitionEasing:n$}),{isDragging:!1,isPanning:Boolean(this.touchZoom),isZooming:Boolean(this.touchZoom),isRotating:!1}),this.blockEvents(i),!0}}var d=this.mapState.zoomEnd().rotateEnd();return this._state.startPinchRotation=0,this.updateViewport(d,null,{isDragging:!1,isPanning:!1,isZooming:!1,isRotating:!1}),this._startPinchRotation=null,this._lastPinchEvent=null,!0}},{key:"_onTriplePanStart",value:function(r){var n=this.getCenter(r),i=this.mapState.rotateStart({pos:n});return this.updateViewport(i,nV,{isDragging:!0}),!0}},{key:"_onTriplePan",value:function(r){if(!this.isDragging()||!this.touchRotate)return!1;var n=this.getCenter(r);n[0]-=r.deltaX;var i=this.mapState.rotate({pos:n});return this.updateViewport(i,nV,{isRotating:!0}),!0}},{key:"_onTriplePanEnd",value:function(r){if(!this.isDragging())return!1;if(this.touchRotate){var n=this.touchRotate.inertia,i=void 0===n?300:n;if(i&&r.velocityY){var o=this.getCenter(r),a=[o[0],o[1]+=r.velocityY*i/2],s=this.mapState.rotate({pos:a});return this.updateViewport(s,nU(nU({},nq),{},{transitionDuration:i,transitionEasing:n$}),{isDragging:!1,isRotating:!0}),this.blockEvents(i),!1}}var l=this.mapState.rotateEnd();return this.updateViewport(l,null,{isDragging:!1,isRotating:!1}),!0}},{key:"_onDoubleTap",value:function(r){if(!this.doubleClickZoom)return!1;var n=this.getCenter(r),i=this.isFunctionKeyPressed(r),o=this.mapState.zoom({pos:n,scale:i?.5:2});return this.updateViewport(o,Object.assign({},nq,{transitionInterpolator:new ne({around:n})}),{isZooming:!0}),!0}},{key:"_onKeyDown",value:function(r){if(!this.keyboard)return!1;var n,i=this.isFunctionKeyPressed(r),o=this.keyboard,a=o.zoomSpeed,s=void 0===a?2:a,l=o.moveSpeed,c=void 0===l?100:l,u=o.rotateSpeedX,d=void 0===u?15:u,h=o.rotateSpeedY,p=void 0===h?10:h,f=this.mapStateProps;switch(r.srcEvent.keyCode){case 189:n=i?this.getMapState({zoom:f.zoom-Math.log2(s)-1}):this.getMapState({zoom:f.zoom-Math.log2(s)});break;case 187:n=i?this.getMapState({zoom:f.zoom+Math.log2(s)+1}):this.getMapState({zoom:f.zoom+Math.log2(s)});break;case 37:n=i?this.getMapState({bearing:f.bearing-d}):this.mapState.pan({pos:[c,0],startPos:[0,0]});break;case 39:n=i?this.getMapState({bearing:f.bearing+d}):this.mapState.pan({pos:[-c,0],startPos:[0,0]});break;case 38:n=i?this.getMapState({pitch:f.pitch+p}):this.mapState.pan({pos:[0,c],startPos:[0,0]});break;case 40:n=i?this.getMapState({pitch:f.pitch-p}):this.mapState.pan({pos:[0,-c],startPos:[0,0]});break;default:return!1}return this.updateViewport(n,nq)}}]),r}();function nH(r,n){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),i.push.apply(i,o)}return i}function nX(r){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?nH(Object(i),!0).forEach(function(n){tm(r,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):nH(Object(i)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(i,n))})}return r}var nY=Object.assign({},rq.propTypes,{maxZoom:tg.number,minZoom:tg.number,maxPitch:tg.number,minPitch:tg.number,onViewStateChange:tg.func,onViewportChange:tg.func,onInteractionStateChange:tg.func,transitionDuration:tg.oneOfType([tg.number,tg.string]),transitionInterpolator:tg.object,transitionInterruption:tg.number,transitionEasing:tg.func,onTransitionStart:tg.func,onTransitionInterrupt:tg.func,onTransitionEnd:tg.func,scrollZoom:tg.oneOfType([tg.bool,tg.object]),dragPan:tg.oneOfType([tg.bool,tg.object]),dragRotate:tg.oneOfType([tg.bool,tg.object]),doubleClickZoom:tg.bool,touchZoom:tg.oneOfType([tg.bool,tg.object]),touchRotate:tg.oneOfType([tg.bool,tg.object]),keyboard:tg.oneOfType([tg.bool,tg.object]),onHover:tg.func,onClick:tg.func,onDblClick:tg.func,onContextMenu:tg.func,onMouseDown:tg.func,onMouseMove:tg.func,onMouseUp:tg.func,onTouchStart:tg.func,onTouchMove:tg.func,onTouchEnd:tg.func,onMouseEnter:tg.func,onMouseLeave:tg.func,onMouseOut:tg.func,onWheel:tg.func,touchAction:tg.string,eventRecognizerOptions:tg.object,clickRadius:tg.number,interactiveLayerIds:tg.array,getCursor:tg.func,controller:tg.instanceOf(nW)}),nK=Object.assign({},rq.defaultProps,rC,ni.defaultProps,{onViewStateChange:null,onViewportChange:null,onClick:null,onNativeClick:null,onHover:null,onContextMenu:function(r){return r.preventDefault()},scrollZoom:!0,dragPan:!0,dragRotate:!0,doubleClickZoom:!0,touchZoom:!0,touchRotate:!1,keyboard:!0,touchAction:"none",eventRecognizerOptions:{},clickRadius:0,getCursor:function(r){var n=r.isDragging,i=r.isHovering;return n?"grabbing":i?"pointer":"grab"}});function nJ(r){if(r.lngLat||!r.offsetCenter)return r;var n=r.offsetCenter,i=n.x,o=n.y;if(!Number.isFinite(i)||!Number.isFinite(o))return r;var a=[i,o];if(r.point=a,this.map){var s=this.map.unproject(a);r.lngLat=[s.lng,s.lat]}return r}function nQ(r){var n=this.map;if(!n||!r)return null;var i={},o=this.props.clickRadius;this.props.interactiveLayerIds&&(i.layers=this.props.interactiveLayerIds);try{return n.queryRenderedFeatures(o?[[r[0]-o,r[1]+o],[r[0]+o,r[1]-o]]:r,i)}catch(r){return null}}function n0(r,n){var i=this.props[r];i&&i(nJ.call(this,n))}function n1(r){n0.call(this,"touch"===r.pointerType?"onTouchStart":"onMouseDown",r)}function n2(r){n0.call(this,"touch"===r.pointerType?"onTouchEnd":"onMouseUp",r)}function n3(r){if(n0.call(this,"touch"===r.pointerType?"onTouchMove":"onMouseMove",r),!this.state.isDragging){var n,i=this.props,o=i.onHover,a=i.interactiveLayerIds;r=nJ.call(this,r),(a||o)&&(n=nQ.call(this,r.point));var s=Boolean(a&&n&&n.length>0),l=s&&!this.state.isHovering,c=!s&&this.state.isHovering;(o||l)&&(r.features=n,o&&o(r)),l&&n0.call(this,"onMouseEnter",r),c&&n0.call(this,"onMouseLeave",r),(l||c)&&this.setState({isHovering:s})}}function n4(r){var n=this.props,i=n.onClick,o=n.onNativeClick,a=n.onDblClick,s=n.doubleClickZoom,l=[],c=a||s;switch(r.type){case"anyclick":l.push(o),c||l.push(i);break;case"click":c&&l.push(i)}(l=l.filter(Boolean)).length&&((r=nJ.call(this,r)).features=nQ.call(this,r.point),l.forEach(function(n){return n(r)}))}var n5=(0,d.forwardRef)(function(r,n){var i,o,a=(0,d.useContext)(rM),s=(0,d.useMemo)(function(){return r.controller||new nW},[]),l=(0,d.useMemo)(function(){return new nF(null,{touchAction:r.touchAction,recognizerOptions:r.eventRecognizerOptions})},[]),c=(0,d.useRef)(null),u=(0,d.useRef)(null),h=(0,d.useRef)({width:0,height:0,state:{isHovering:!1,isDragging:!1}}).current;h.props=r,h.map=u.current&&u.current.getMap(),h.setState=function(n){h.state=nX(nX({},h.state),n),c.current.style.cursor=r.getCursor(h.state)};var p=!0,f=function(r,n,o){if(p){i=[r,n,o];return}var a=h.props,s=a.onViewStateChange,l=a.onViewportChange;Object.defineProperty(r,"position",{get:function(){return[0,0,rR(h.map,r)]}}),s&&s({viewState:r,interactionState:n,oldViewState:o}),l&&l(r,n,o)};(0,d.useImperativeHandle)(n,function(){return{getMap:u.current&&u.current.getMap,queryRenderedFeatures:u.current&&u.current.queryRenderedFeatures}},[]);var m=(0,d.useMemo)(function(){return nX(nX({},a),{},{eventManager:l,container:a.container||c.current})},[a,c.current]);m.onViewportChange=f,m.viewport=a.viewport||rB(h),h.viewport=m.viewport;var g=function(r){var n=r.isDragging,i=void 0!==n&&n;if(i!==h.state.isDragging&&h.setState({isDragging:i}),p){o=r;return}var a=h.props.onInteractionStateChange;a&&a(r)},v=function(){h.width&&h.height&&s.setOptions(nX(nX(nX({},h.props),h.props.viewState),{},{isInteractive:Boolean(h.props.onViewStateChange||h.props.onViewportChange),onViewportChange:f,onStateChange:g,eventManager:l,width:h.width,height:h.height}))};(0,d.useEffect)(function(){return l.setElement(c.current),l.on({pointerdown:n1.bind(h),pointermove:n3.b
229ind(h),pointerup:n2.bind(h),pointerleave:n0.bind(h,"onMouseOut"),click:n4.bind(h),anyclick:n4.bind(h),dblclick:n0.bind(h,"onDblClick"),wheel:n0.bind(h,"onWheel"),contextmenu:n0.bind(h,"onContextMenu")}),function(){l.destroy()}},[]),rZ(function(){if(i){var r;f.apply(void 0,function(r){if(Array.isArray(r))return td(r)}(r=i)||function(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||th(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}o&&g(o)}),v();var y=r.width,b=r.height,x=r.style,_=r.getCursor,w=(0,d.useMemo)(function(){return nX(nX({position:"relative"},x),{},{width:y,height:b,cursor:_(h.state)})},[x,y,b,_,h.state]);return i&&h._child||(h._child=d.createElement(rI,{value:m},d.createElement("div",{key:"event-canvas",ref:c,style:w},d.createElement(rq,(0,et.Z)({},r,{width:"100%",height:"100%",style:null,onResize:function(r){var n=r.width,i=r.height;h.width=n,h.height=i,v(),h.props.onResize({width:n,height:i})},ref:u}))))),p=!1,h._child});n5.supported=rq.supported,n5.propTypes=nY,n5.defaultProps=nK,tg.string.isRequired,tg.string,tg.oneOf(["fill","line","symbol","circle","fill-extrusion","raster","background","heatmap","hillshade","sky"]).isRequired,tg.string,tg.string,tg.string;var n6={captureScroll:!1,captureDrag:!0,captureClick:!0,captureDoubleClick:!0,capturePointerMove:!1},n8={captureScroll:tg.bool,captureDrag:tg.bool,captureClick:tg.bool,captureDoubleClick:tg.bool,capturePointerMove:tg.bool};function n9(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(0,d.useContext)(rM),i=(0,d.useRef)(null),o=(0,d.useRef)({props:r,state:{},context:n,containerRef:i}).current;return o.props=r,o.context=n,(0,d.useEffect)(function(){return function(r){var n=r.containerRef.current,i=r.context.eventManager;if(n&&i){var o={wheel:function(n){var i=r.props;i.captureScroll&&n.stopPropagation(),i.onScroll&&i.onScroll(n,r)},panstart:function(n){var i=r.props;i.captureDrag&&n.stopPropagation(),i.onDragStart&&i.onDragStart(n,r)},anyclick:function(n){var i=r.props;i.captureClick&&n.stopPropagation(),i.onNativeClick&&i.onNativeClick(n,r)},click:function(n){var i=r.props;i.captureClick&&n.stopPropagation(),i.onClick&&i.onClick(n,r)},dblclick:function(n){var i=r.props;i.captureDoubleClick&&n.stopPropagation(),i.onDoubleClick&&i.onDoubleClick(n,r)},pointermove:function(n){var i=r.props;i.capturePointerMove&&n.stopPropagation(),i.onPointerMove&&i.onPointerMove(n,r)}};return i.watch(o,n),function(){i.off(o)}}}(o)},[n.eventManager]),o}function n7(r){var n=r.instance,i=n9(r),o=i.context,a=i.containerRef;return n._context=o,n._containerRef=a,n._render()}var ie=function(r){rX(o,r);var n,i=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(r){return!1}}(),function(){var r,i=rK(o);if(n){var a=rK(this).constructor;r=Reflect.construct(i,arguments,a)}else r=i.apply(this,arguments);return rY(this,r)});function o(){var r;ri(this,o);for(var n=arguments.length,a=Array(n),s=0;s<n;s++)a[s]=arguments[s];return r=i.call.apply(i,[this].concat(a)),tm((0,rW.Z)(r),"_context",{}),tm((0,rW.Z)(r),"_containerRef",(0,d.createRef)()),tm((0,rW.Z)(r),"_onScroll",function(r){}),tm((0,rW.Z)(r),"_onDragStart",function(r){}),tm((0,rW.Z)(r),"_onDblClick",function(r){}),tm((0,rW.Z)(r),"_onClick",function(r){}),tm((0,rW.Z)(r),"_onPointerMove",function(r){}),r}return ra(o,[{key:"_render",value:function(){throw Error("_render() not implemented")}},{key:"render",value:function(){return d.createElement(n7,(0,et.Z)({instance:this},this.props,{onScroll:this._onScroll,onDragStart:this._onDragStart,onDblClick:this._onDblClick,onClick:this._onClick,onPointerMove:this._onPointerMove}))}}]),o}
229(d.PureComponent);function it(r,n){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),i.push.apply(i,o)}return i}function ir(r){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?it(Object(i),!0).forEach(function(n){tm(r,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):it(Object(i)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(i,n))})}return r}tm(ie,"propTypes",n8),tm(ie,"defaultProps",n6);var ii=Object.assign({},n8,{draggable:tg.bool,onDrag:tg.func,onDragEnd:tg.func,onDragStart:tg.func,offsetLeft:tg.number,offsetTop:tg.number}),io=Object.assign({},n6,{draggable:!1,offsetLeft:0,offsetTop:0});function ia(r){var n=r.offsetCenter;return[n.x,n.y]}function is(r,n,i,o){var a=r[0]+n[0]-i.offsetLeft,s=r[1]+n[1]-i.offsetTop;return o.viewport.unproject([a,s])}function il(r,n){var i=n.props,o=n.callbacks,a=n.state,s=n.context,l=n.containerRef;if(i.draggable){r.stopPropagation();var c=ia(r),u=function(r,n){var i=r.center,o=i.x,a=i.y;if(n){var s=n.getBoundingClientRect();return[s.left-o,s.top-a]}return null}(r,l.current);if(a.setDragPos(c),a.setDragOffset(u),o.onDragStart&&u){var d=Object.assign({},r);d.lngLat=is(c,u,i,s),o.onDragStart(d)}}}var ic="undefined"!=typeof window&&window.devicePixelRatio||1,iu=function(r){return Math.round(r*ic)/ic},id=function(r,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"x";if(null===r)return n;var o="x"===i?r.offsetWidth:r.offsetHeight;return iu(n/100*o)/o*100};function ih(r,n){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),i.push.apply(i,o)}return i}var ip=Object.assign({},ii,{className:tg.string,longitude:tg.number.isRequired,latitude:tg.number.isRequired,style:tg.object}),im=Object.assign({},io,{className:""});function ig(r){var n,i,o,a,s,l,c,u=(i=(n=tv((0,d.useState)(null),2))[0],o=n[1],s=(a=tv((0,d.useState)(null),2))[0],l=a[1],(c=n9(ir(ir({},r),{},{onDragStart:il}))).callbacks=r,c.state.dragPos=i,c.state.setDragPos=o,c.state.dragOffset=s,c.state.setDragOffset=l,(0,d.useEffect)(function(){return function(r){var n=r.context.eventManager;if(n&&r.state.dragPos){var i={panmove:function(n){return function(r,n){var i=n.props,o=n.callbacks,a=n.state,s=n.context;r.stopPropagation();var l=ia(r);a.setDragPos(l);var c=a.dragOffset;if(o.onDrag&&c){var u=Object.assign({},r);u.lngLat=is(l,c,i,s),o.onDrag(u)}}(n,r)},panend:function(n){return function(r,n){var i=n.props,o=n.callbacks,a=n.state,s=n.context;r.stopPropagation();var l=a.dragPos,c=a.dragOffset;if(a.setDragPos(null),a.setDragOffset(null),o.onDragEnd&&l&&c){var u=Object.assign({},r);u.lngLat=is(l,c,i,s),o.onDragEnd(u)}}(n,r)},pancancel:function(n){var i;return i=r.state,void(n.stopPropagation(),i.setDragPos(null),i.setDragOffset(null))}};return n.watch(i),function(){n.off(i)}}}(c)},[c.context.eventManager,Boolean(i)]),c),h=u.state,p=u.containerRef,f=r.children,m=r.className,g=r.draggable,v=r.style,y=h.dragPos,b=function(r){var n=r.props,i=r.state,o=r.context,a=n.longitude,s=n.latitude,l=n.offsetLeft,c=n.offsetTop,u=i.dragPos,d=i.dragOffset,h=o.viewport,p=o.map;if(u&&d)return[u[0]+d[0],u[1]+d[1]];var f=rR(p,{longitude:a,latitude:s}),m=tv(h.project([a,s,f]),2),g=m[0],v=m[1];return[g+=l,v+=c]}(u),x=tv(b,2),_=x[0],w=x[1],S="translate(".concat(iu(_),"px, ").concat(iu(w),"px)"),T=g?y?"grabbing":"grab":"auto",E=(0,d.useMemo)(function(){var r=function(r){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?ih(Object(i),!0).forEach(function(n){tm(r,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):ih(Object(i)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(i,n))})}return r}({position:"absolute",left:0,top:0,transform:S,cursor:T},v);return d.createElement("div",{className:"mapboxgl-marker ".concat(m),ref:u.containerRef,style:r},f)},[f,m]),k=p.current;return k&&(k.style.transform=S,k.style.cursor=T),E}ig.defaultProps=im,ig.propTypes=ip,d.memo(ig);var iv={top:{x:.5,y:0},"top-left":{x:0,y:0},"top-right":{x:1,y:0},bottom:{x:.5,y:1},"bottom-left":{x:0,y:1},"bottom-right":{x:1,y:1}
229,left:{x:0,y:.5},right:{x:1,y:.5}},iy=Object.keys(iv),ib=Object.assign({},n8,{className:tg.string,longitude:tg.number.isRequired,latitude:tg.number.isRequired,altitude:tg.number,offsetLeft:tg.number,offsetTop:tg.number,tipSize:tg.number,closeButton:tg.bool,closeOnClick:tg.bool,anchor:tg.oneOf(Object.keys(iv)),dynamicPosition:tg.bool,sortByDepth:tg.bool,onClose:tg.func}),ix=Object.assign({},n6,{className:"",offsetLeft:0,offsetTop:0,tipSize:10,anchor:"bottom",dynamicPosition:!0,sortByDepth:!1,closeButton:!0,closeOnClick:!0,onClose:function(){}});function i_(r){var n,i,o,a,s,l,c,u,h,p,f,m,g,v,y,b,x,_,w,S=(0,d.useRef)(null),T=n9(r),E=T.context,k=T.containerRef,C=tv((0,d.useState)(!1),2)[1];(0,d.useEffect)(function(){C(!0)},[S.current]),(0,d.useEffect)(function(){if(E.eventManager&&r.closeOnClick){var n=function(){return T.props.onClose()};return E.eventManager.on("anyclick",n),function(){E.eventManager.off("anyclick",n)}}},[E.eventManager,r.closeOnClick]);var P=E.viewport,O=E.map,j=r.className,A=r.longitude,M=r.latitude,I=r.tipSize,Z=r.closeButton,R=r.children,D=r.altitude;void 0===D&&(D=rR(O,{longitude:A,latitude:M}));var L=P.project([A,M,D]),z=(n=S.current,o=(i=tv(L,2))[0],a=i[1],s=r.anchor,l=r.dynamicPosition,c=r.tipSize,n&&l?function(r){var n=r.x,i=r.y,o=r.width,a=r.height,s=r.selfWidth,l=r.selfHeight,c=r.anchor,u=r.padding,d=void 0===u?0:u,h=iv[c],p=h.x,f=h.y,m=i-f*l,g=m+l,v=Math.max(0,d-m)+Math.max(0,g-a+d);if(v>0){var y=f,b=v;for(f=0;f<=1;f+=.5)g=(m=i-f*l)+l,(v=Math.max(0,d-m)+Math.max(0,g-a+d))<b&&(b=v,y=f);f=y}var x=.5;.5===f&&(p=Math.floor(p),x=1);var _=n-p*s,w=_+s,S=Math.max(0,d-_)+Math.max(0,w-o+d);if(S>0){var T=p,E=S;for(p=0;p<=1;p+=x)w=(_=n-p*s)+s,(S=Math.max(0,d-_)+Math.max(0,w-o+d))<E&&(E=S,T=p);p=T}return iy.find(function(r){var n=iv[r];return n.x===p&&n.y===f})||c}({x:o,y:a,anchor:s,padding:c,width:P.width,height:P.height,selfWidth:n.clientWidth,selfHeight:n.clientHeight}):s),B=(u=k.current,p=(h=tv(L,3))[0],f=h[1],m=h[2],g=r.offsetLeft,v=r.offsetTop,y=r.sortByDepth,x=id(u,-(100*(b=iv[z]).x)),_=id(u,-(100*b.y),"y"),w={position:"absolute",transform:"\n translate(".concat(x,"%, ").concat(_,"%)\n translate(").concat(iu(p+g),"px, ").concat(iu(f+v),"px)\n "),display:void 0,zIndex:void 0},y&&(m>1||m<-1||p<0||p>P.width||f<0||f>P.height?w.display="none":w.zIndex=Math.floor((1-m)/2*1e5)),w),F=(0,d.useCallback)(function(r){T.props.onClose();var n=T.context.eventManager;n&&n.once("click",function(r){return r.stopPropagation()},r.target)},[]);return d.createElement("div",{className:"mapboxgl-popup mapboxgl-popup-anchor-".concat(z," ").concat(j),style:B,ref:k},d.createElement("div",{key:"tip",className:"mapboxgl-popup-tip",style:{borderWidth:I}}),d.createElement("div",{key:"content",ref:S,className:"mapboxgl-popup-content"},Z&&d.createElement("button",{key:"close-button",className:"mapboxgl-popup-close-button",type:"button",onClick:F},"\xd7"),R))}function iw(r,n){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),i.push.apply(i,o)}return i}i_.propTypes=ib,i_.defaultProps=ix,d.memo(i_);var iS=Object.assign({},n8,{toggleLabel:tg.string,className:tg.string,style:tg.object,compact:tg.bool,customAttribution:tg.oneOfType([tg.string,tg.arrayOf(tg.string)])}),iT=Object.assign({},n6,{className:"",toggleLabel:"Toggle Attribution"});function iE(r){var n=n9(r),i=n.context,o=n.containerRef,a=(0,d.useRef)(null),s=tv((0,d.useState)(!1),2),l=s[0],c=s[1];(0,d.useEffect)(function(){var n,s,l,c,u,d;return i.map&&(s={customAttribution:r.customAttribution},l=i.map,c=o.current,u=a.current,(d=new(rx()).AttributionControl(s))._map=l,d._container=c,d._innerContainer=u,d._updateAttributions(),d._updateEditLink(),l.on("styledata",d._updateData),l.on("sourcedata",d._updateData),n=d),function(){var r;return n&&void((r=n)._map.off("styledata",r._updateData),r._map.off("sourcedata",r._updateData))}},[i.map]);var u=void 0===r.compact?i.viewport.width<=640:r.compact;(0,d.useEffect)(function(){!u&&l&&c(!1)},[u]);var h=(0,d.useCallback)(function(){return c(function(r){return!r})},[]),p=(0,d.useMemo)(function(){return function(r){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};
229n%2?iw(Object(i),!0).forEach(function(n){tm(r,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):iw(Object(i)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(i,n))})}return r}({position:"absolute"},r.style)},[r.style]);return d.createElement("div",{style:p,className:r.className},d.createElement("div",{ref:o,"aria-pressed":l,className:"mapboxgl-ctrl mapboxgl-ctrl-attrib ".concat(u?"mapboxgl-compact":""," ").concat(l?"mapboxgl-compact-show":"")},d.createElement("button",{type:"button",className:"mapboxgl-ctrl-attrib-button",title:r.toggleLabel,onClick:h}),d.createElement("div",{ref:a,className:"mapboxgl-ctrl-attrib-inner",role:"list"})))}function ik(r,n){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),i.push.apply(i,o)}return i}iE.propTypes=iS,iE.defaultProps=iT,d.memo(iE);var iC=Object.assign({},n8,{className:tg.string,style:tg.object,container:tg.object,label:tg.string}),iP=Object.assign({},n6,{className:"",container:null,label:"Toggle fullscreen"});function iO(r){var n=n9(r),i=n.context,o=n.containerRef,a=tv((0,d.useState)(!1),2),s=a[0],l=a[1],c=tv((0,d.useState)(!1),2),u=c[0],h=c[1],p=tv((0,d.useState)(null),2),f=p[0],m=p[1];(0,d.useEffect)(function(){var r=new(rx()).FullscreenControl;m(r),h(r._checkFullscreenSupport());var n=function(){var n=!r._fullscreen;r._fullscreen=n,l(n)};return rs.addEventListener(r._fullscreenchange,n),function(){rs.removeEventListener(r._fullscreenchange,n)}},[]);var g=(0,d.useMemo)(function(){return function(r){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?ik(Object(i),!0).forEach(function(n){tm(r,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):ik(Object(i)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(i,n))})}return r}({position:"absolute"},r.style)},[r.style]);if(!u)return null;var v=r.className,y=r.label,b=s?"shrink":"fullscreen";return d.createElement("div",{style:g,className:v},d.createElement("div",{className:"mapboxgl-ctrl mapboxgl-ctrl-group",ref:o},d.createElement("button",{key:b,className:"mapboxgl-ctrl-icon mapboxgl-ctrl-".concat(b),type:"button",title:y,onClick:function(){f&&(f._container=r.container||i.container,f._onClickFullscreen())}},d.createElement("span",{className:"mapboxgl-ctrl-icon","aria-hidden":"true"}))))}function ij(r,n){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),i.push.apply(i,o)}return i}iO.propTypes=iC,iO.defaultProps=iP,d.memo(iO);var iA=function(){},iM=Object.assign({},n8,{className:tg.string,style:tg.object,label:tg.string,disabledLabel:tg.string,auto:tg.bool,positionOptions:tg.object,fitBoundsOptions:tg.object,trackUserLocation:tg.bool,showUserLocation:tg.bool,showAccuracyCircle:tg.bool,showUserHeading:tg.bool,onViewStateChange:tg.func,onViewportChange:tg.func,onGeolocate:tg.func}),iI=Object.assign({},n6,{className:"",label:"Find My Location",disabledLabel:"Location Not Available",auto:!1,positionOptions:{enableHighAccuracy:!1,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showUserLocation:!0,showUserHeading:!1,showAccuracyCircle:!0,onGeolocate:function(){}});function iZ(r){var n=n9(r),i=n.context,o=n.containerRef,a=(0,d.useRef)(null),s=tv((0,d.useState)(null),2),l=s[0],u=s[1],h=tv((0,d.useState)(!1),2),p=h[0],f=h[1];(0,d.useEffect)(function(){var o;return i.map&&(void 0!==c?Promise.resolve(c):void 0!==window.navigator.permissions?window.navigator.permissions.query({name:"geolocation"}).then(function(r){return c="denied"!==r.state}):Promise.resolve(c=Boolean(window.navigator.geolocation))).then(function(s){if(f(s),a.current){var l,c,d;l=a.current,(c=new(rx()).GeolocateControl(r))._container=rs.createElement("div"),c._map={on:function(){},_getUIString:function(){return""}},c._setupUI(!0),c._map=i.map,c._geolocateButton=l,d=i.eventManager,c.options.trackUserLocation&&d&&d.on("panstart",function(){"ACTIVE_LOCK"===c._watchState&&(c._watchState="BACKGROUND",l.classList.add("mapboxgl-ctrl-geolocate-background"),l.classList.remove("mapboxgl-ctrl-geolocate-active"))}),c.on("geolocate",r.onGeolocate),(o=c)._updateCamera=function(r){var i,o,a,s,l,c,u,d,h,p,f,m,g;return i=n.context,o=n.props,a=new(rx()).LngLat(r.coords.longitude,r.co
229ords.latitude),s=r.coords.accuracy,c=[[(l=a.toBounds(s))._ne.lng,l._ne.lat],[l._sw.lng,l._sw.lat]],d=(u=i.viewport.fitBounds(c,o.fitBoundsOptions)).longitude,h=u.latitude,p=u.zoom,f=Object.assign({},i.viewport,{longitude:d,latitude:h,zoom:p}),m=Object.assign({},new rO(f).getViewportProps(),nq),g=o.onViewportChange||i.onViewportChange||iA,void((o.onViewStateChange||i.onViewStateChange||iA)({viewState:m}),g(m))},u(o)}}),function(){o&&o._clearWatch()}},[i.map]);var m=(0,d.useCallback)(function(){l&&(l.options=n.props,l.trigger())},[l]);(0,d.useEffect)(function(){r.auto&&m()},[l,r.auto]),(0,d.useEffect)(function(){l&&l._onZoom()},[i.viewport.zoom]);var g=r.className,v=r.label,y=r.disabledLabel,b=r.trackUserLocation,x=(0,d.useMemo)(function(){return function(r){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?ij(Object(i),!0).forEach(function(n){tm(r,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):ij(Object(i)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(i,n))})}return r}({position:"absolute"},r.style)},[r.style]);return d.createElement("div",{style:x,className:g},d.createElement("div",{key:"geolocate-control",className:"mapboxgl-ctrl mapboxgl-ctrl-group",ref:o},d.createElement("button",{key:"geolocate",className:"mapboxgl-ctrl-icon mapboxgl-ctrl-geolocate",ref:a,disabled:!p,"aria-pressed":!b,type:"button",title:p?v:y,"aria-label":p?v:y,onClick:m},d.createElement("span",{className:"mapboxgl-ctrl-icon","aria-hidden":"true"}))))}function iR(r,n){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),i.push.apply(i,o)}return i}iZ.propTypes=iM,iZ.defaultProps=iI,d.memo(iZ);var iD=function(){},iL=Object.assign({},n8,{className:tg.string,style:tg.object,onViewStateChange:tg.func,onViewportChange:tg.func,showCompass:tg.bool,showZoom:tg.bool,zoomInLabel:tg.string,zoomOutLabel:tg.string,compassLabel:tg.string}),iz=Object.assign({},n6,{className:"",showCompass:!0,showZoom:!0,zoomInLabel:"Zoom In",zoomOutLabel:"Zoom Out",compassLabel:"Reset North"});function iB(r,n,i){var o=r.viewport,a=Object.assign({},new rO(Object.assign({},o,i)).getViewportProps(),nq),s=n.onViewportChange||r.onViewportChange||iD;(n.onViewStateChange||r.onViewStateChange||iD)({viewState:a}),s(a)}function iF(r,n,i,o){return d.createElement("button",{key:r,className:"mapboxgl-ctrl-icon mapboxgl-ctrl-".concat(r),type:"button",title:n,onClick:i},o||d.createElement("span",{className:"mapboxgl-ctrl-icon","aria-hidden":"true"}))}function iN(r){var n,i,o,a=n9(r),s=a.context,l=a.containerRef,c=r.className,u=r.showCompass,h=r.showZoom,p=r.zoomInLabel,f=r.zoomOutLabel,m=r.compassLabel,g=(0,d.useMemo)(function(){return function(r){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?iR(Object(i),!0).forEach(function(n){tm(r,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):iR(Object(i)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(i,n))})}return r}({position:"absolute"},r.style)},[r.style]);return d.createElement("div",{style:g,className:c},d.createElement("div",{className:"mapboxgl-ctrl mapboxgl-ctrl-group",ref:l},h&&iF("zoom-in",p,function(){iB(s,r,{zoom:s.viewport.zoom+1})}),h&&iF("zoom-out",f,function(){iB(s,r,{zoom:s.viewport.zoom-1})}),u&&iF("compass",m,function(){iB(s,r,{bearing:0,pitch:0})},(n=(0,d.useMemo)(function(){return s.map?function(r,n){for(var i=(r||"").split(".").map(Number),o=(n||"").split(".").map(Number),a=0;a<3;a++){var s=i[a]||0,l=o[a]||0;if(s<l)return -1;if(s>l)return 1}return 0}(s.map.version,"1.6.0")>=0?2:1:2},[s.map]),i=s.viewport.bearing,o={transform:"rotate(".concat(-i,"deg)")},2===n?d.createElement("span",{className:"mapboxgl-ctrl-icon","aria-hidden":"true",style:o}):d.createElement("span",{className:"mapboxgl-ctrl-compass-arrow",style:o})))))}function iU(r,n){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),i.push.apply(i,o)}return i}iN.propTypes=iL,iN.defaultProps=iz,d.memo(iN);var iV=Object.assign({},n8,{className:tg.string,style:tg.object,maxWidth:tg.number,unit:tg.oneOf(["imperial","metric","
229nautical"])}),iq=Object.assign({},n6,{className:"",maxWidth:100,unit:"metric"});function i$(r){var n=n9(r),i=n.context,o=n.containerRef,a=tv((0,d.useState)(null),2),s=a[0],l=a[1];(0,d.useEffect)(function(){if(i.map){var r=new(rx()).ScaleControl;r._map=i.map,r._container=o.current,l(r)}},[i.map]),s&&(s.options=r,s._onMove&&s._onMove());var c=(0,d.useMemo)(function(){return function(r){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?iU(Object(i),!0).forEach(function(n){tm(r,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):iU(Object(i)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(i,n))})}return r}({position:"absolute"},r.style)},[r.style]);return d.createElement("div",{style:c,className:r.className},d.createElement("div",{ref:o,className:"mapboxgl-ctrl mapboxgl-ctrl-scale"}))}i$.propTypes=iV,i$.defaultProps=iq,d.memo(i$);var iG="undefined"!=typeof window&&window.devicePixelRatio||1,iW=Object.assign({},n8,{redraw:tg.func.isRequired});function iH(r){var n=n9(r),i=n.context,o=n.containerRef,a=tv((0,d.useState)(null),2),s=a[0],l=a[1];(0,d.useEffect)(function(){l(o.current.getContext("2d"))},[]);var c=i.viewport,u=i.isDragging;return s&&(s.save(),s.scale(iG,iG),r.redraw({width:c.width,height:c.height,ctx:s,isDragging:u,project:c.project,unproject:c.unproject}),s.restore()),d.createElement("canvas",{ref:o,width:c.width*iG,height:c.height*iG,style:{width:"".concat(c.width,"px"),height:"".concat(c.height,"px"),position:"absolute",left:0,top:0}})}function iX(r,n){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),i.push.apply(i,o)}return i}iH.propTypes=iW,iH.defaultProps={captureScroll:!1,captureDrag:!1,captureClick:!1,captureDoubleClick:!1,capturePointerMove:!1};var iY=Object.assign({},n8,{redraw:tg.func.isRequired,style:tg.object});function iK(r){var n=n9(r),i=n.context,o=n.containerRef,a=i.viewport,s=i.isDragging,l=function(r){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?iX(Object(i),!0).forEach(function(n){tm(r,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):iX(Object(i)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(i,n))})}return r}({position:"absolute",left:0,top:0,width:a.width,height:a.height},r.style);return d.createElement("div",{ref:o,style:l},r.redraw({width:a.width,height:a.height,isDragging:s,project:a.project,unproject:a.unproject}))}function iJ(r,n){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),i.push.apply(i,o)}return i}iK.propTypes=iY,iK.defaultProps={captureScroll:!1,captureDrag:!1,captureClick:!1,captureDoubleClick:!1,capturePointerMove:!1};var iQ=Object.assign({},n8,{redraw:tg.func.isRequired,style:tg.object});function i0(r){var n=n9(r),i=n.context,o=n.containerRef,a=i.viewport,s=i.isDragging,l=function(r){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?iJ(Object(i),!0).forEach(function(n){tm(r,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):iJ(Object(i)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(i,n))})}return r}({position:"absolute",left:0,top:0},r.style);return d.createElement("svg",{width:a.width,height:a.height,ref:o,style:l},r.redraw({width:a.width,height:a.height,isDragging:s,project:a.project,unproject:a.unproject}))}i0.propTypes=iQ,i0.defaultProps={captureScroll:!1,captureDrag:!1,captureClick:!1,captureDoubleClick:!1,capturePointerMove:!1},rx()&&rx().setRTLTextPlugin;var i1=i(44347);(0,ei.ZP)(r=>(0,u.jsx)(i1.Z,Object.assign({anchorOrigin:{vertical:"bottom",horizontal:"right"},elevation:0,transformOrigin:{vertical:"top",horizontal:"right"}},r)))(r=>{let{theme:n}=r;return{"& .MuiPaper-root":{backgroundColor:n.palette.secondary.main,borderRadius:0,marginTop:n.spacing(1),minWidth:180,color:"white",border:"1px solid ".concat(n.palette.grey[300]),"& .MuiMenu-list":{padding:"4px 0"},"& .MuiMenuItem-root":{"&:hover":{color:n.palette.primary.main},"&:active":{backgroundColor:(0,ew.Fq)(n.palette.primary.main,n.palette.action.selectedOpacity)}}}}}
229),i(49287),i(66225),i(76780),i(68465);var i2=i(79371);i(3552),i(7314);var i3=i(5152),i4=i.n(i3);i(85165),i4()(()=>Promise.resolve().then(i.bind(i,68281)),{loadableGenerated:{webpack:()=>[68281]}}),i(98755),i(11288),i(19317),i(87573),i(89755),i(10615),i(1538),i(40785);var i5=i(64692);i(87753),i(93967),i(25900),i(49493),i(94708)},13344:function(r,n,i){"use strict";i.d(n,{Z:function(){return ti}});var o,a,s,l=i(85893),c=i(23508),u=i(87357),d=i(15861),h=i(67720),p=i(63366),f=i(87462),m=i(67294);i(59864);var g=i(93680),v=i(94780),y=i(90948),b=i(71657),x=i(57922),_=i(55113);let w=m.createContext({});var S=i(49299),T=i(34867),E=i(1588);function k(r){return(0,T.ZP)("MuiAccordion",r)}let C=(0,E.Z)("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),P=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],O=r=>{let{classes:n,square:i,expanded:o,disabled:a,disableGutters:s}=r;return(0,v.Z)({root:["root",!i&&"rounded",o&&"expanded",a&&"disabled",!s&&"gutters"],region:["region"]},k,n)},j=(0,y.ZP)(_.Z,{name:"MuiAccordion",slot:"Root",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[{[`& .${C.region}`]:n.region},n.root,!i.square&&n.rounded,!i.disableGutters&&n.gutters]}})(({theme:r})=>{let n={duration:r.transitions.duration.shortest};return{position:"relative",transition:r.transitions.create(["margin"],n),overflowAnchor:"none","&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(r.vars||r).palette.divider,transition:r.transitions.create(["opacity","background-color"],n)},"&:first-of-type":{"&:before":{display:"none"}},[`&.${C.expanded}`]:{"&:before":{opacity:0}
229,"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${C.disabled}`]:{backgroundColor:(r.vars||r).palette.action.disabledBackground}}},({theme:r,ownerState:n})=>(0,f.Z)({},!n.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(r.vars||r).shape.borderRadius,borderTopRightRadius:(r.vars||r).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(r.vars||r).shape.borderRadius,borderBottomRightRadius:(r.vars||r).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!n.disableGutters&&{[`&.${C.expanded}`]:{margin:"16px 0"}})),A=m.forwardRef(function(r,n){let i=(0,b.Z)({props:r,name:"MuiAccordion"}),{children:o,className:a,defaultExpanded:s=!1,disabled:c=!1,disableGutters:u=!1,expanded:d,onChange:h,square:v=!1,TransitionComponent:y=x.Z,TransitionProps:_}=i,T=(0,p.Z)(i,P),[E,k]=(0,S.Z)({controlled:d,default:s,name:"Accordion",state:"expanded"}),C=m.useCallback(r=>{k(!E),h&&h(r,!E)},[E,h,k]),[A,...M]=m.Children.toArray(o),I=m.useMemo(()=>({expanded:E,disabled:c,disableGutters:u,toggle:C}),[E,c,u,C]),Z=(0,f.Z)({},i,{square:v,disabled:c,disableGutters:u,expanded:E}),R=O(Z);return(0,l.jsxs)(j,(0,f.Z)({className:(0,g.Z)(R.root,a),ref:n,ownerState:Z,square:v},T,{children:[(0,l.jsx)(w.Provider,{value:I,children:A}),(0,l.jsx)(y,(0,f.Z)({in:E,timeout:"auto"},_,{children:(0,l.jsx)("div",{"aria-labelledby":A.props.id,id:A.props["aria-controls"],role:"region",className:R.region,children:M})}))]}))});var M=i(82607);function I(r){return(0,T.ZP)("MuiAccordionSummary",r)}let Z=(0,E.Z)("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),R=["children","className","expandIcon","focusVisibleClassName","onClick"],D=r=>{let{classes:n,expanded:i,disabled:o,disableGutters:a}=r;return(0,v.Z)({root:["root",i&&"expanded",o&&"disabled",!a&&"gutters"],focusVisible:["focusVisible"],content:["content",i&&"expanded",!a&&"contentGutters"],expandIconWrapper:["expandIconWrapper",i&&"expanded"]},I,n)},L=(0,y.ZP)(M.Z,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(r,n)=>n.root})(({theme:r,ownerState:n})=>{let i={duration:r.transitions.duration.shortest};return(0,f.Z)({display:"flex",minHeight:48,padding:r.spacing(0,2),transition:r.transitions.create(["min-height","background-color"],i),[`&.${Z.focusVisible}`]:{backgroundColor:(r.vars||r).palette.action.focus},[`&.${Z.disabled}`]:{opacity:(r.vars||r).palette.action.disabledOpacity},[`&:hover:not(.${Z.disabled})`]:{cursor:"pointer"}},!n.disableGutters&&{[`&.${Z.expanded}`]:{minHeight:64}})}),z=(0,y.ZP)("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(r,n)=>n.content})(({theme:r,ownerState:n})=>(0,f.Z)({display:"flex",flexGrow:1,margin:"12px 0"},!n.disableGutters&&{transition:r.transitions.create(["margin"],{duration:r.transitions.duration.shortest}),[`&.${Z.expanded}`]:{margin:"20px 0"}})),B=(0,y.ZP)("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(r,n)=>n.expandIconWrapper})(({theme:r})=>({display:"flex",color:(r.vars||r).palette.action.active,transform:"rotate(0deg)",transition:r.transitions.create("transform",{duration:r.transitions.duration.shortest}),[`&.${Z.expanded}`]:{transform:"rotate(180deg)"}})),F=m.forwardRef(function(r,n){let i=(0,b.Z)({props:r,name:"MuiAccordionSummary"}),{children:o,className:a,expandIcon:s,focusVisibleClassName:c,onClick:u}=i,d=(0,p.Z)(i,R),{disabled:h=!1,disableGutters:v,expanded:y,toggle:x}=m.useContext(w),_=r=>{x&&x(r),u&&u(r)},S=(0,f.Z)({},i,{expanded:y,disabled:h,disableGutters:v}),T=D(S);return(0,l.jsxs)(L,(0,f.Z)({focusRipple:!1,disableRipple:!0,disabled:h,component:"div","aria-expanded":y,className:(0,g.Z)(T.root,a),focusVisibleClassName:(0,g.Z)(T.focusVisible,c),onClick:_,ref:n,ownerState:S},d,{children:[(0,l.jsx)(z,{className:T.content,ownerState:S,children:o}),s&&(0,l.jsx)(B,{className:T.expandIconWrapper,ownerState:S,children:s})]}))});var N=i(83321);function U(r){return(0,T.ZP)("MuiAccordionDetails",r)}
229(0,E.Z)("MuiAccordionDetails",["root"]);let V=["className"],q=r=>{let{classes:n}=r;return(0,v.Z)({root:["root"]},U,n)},$=(0,y.ZP)("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(r,n)=>n.root})(({theme:r})=>({padding:r.spacing(1,2,2)})),G=m.forwardRef(function(r,n){let i=(0,b.Z)({props:r,name:"MuiAccordionDetails"}),{className:o}=i,a=(0,p.Z)(i,V),s=q(i);return(0,l.jsx)($,(0,f.Z)({className:(0,g.Z)(s.root,o),ref:n,ownerState:i},a))});var W=i(97924),H=i(50135),X=i(76798),Y=i(21737),K=i(34853),J=i(90976),Q=i(49048),ee=i(31548);function et(r){let{id:n,parentComment:i,nestingIdx:o=0,postId:a,onCancel:s=()=>{}}=r,c=(0,m.useRef)(null),[h,p]=(0,m.useState)(!1),[f,g]=(0,m.useState)(""),{mutateAsync:v}=(0,J.Z)(a),y=(0,m.useRef)(null),{data:b}=(0,Q.Z)(),x=(null==b?void 0:b.recaptchaSiteKey)||null,_=(0,m.useCallback)(()=>{s(),setTimeout(()=>{c.current&&c.current.reset()},500)},[s]),w=(0,m.useCallback)(()=>g(""),[]),S=(0,m.useCallback)(r=>{r.preventDefault();let n=c.current;if(n){var o,s;p(!0),(null!==(s=null===(o=y.current)||void 0===o?void 0:o.executeAsync())&&void 0!==s?s:Promise.resolve(null)).then(r=>v({content:n.comment.value,author:n.author.value,authorEmail:n.email.value,commentOn:a,parent:i?"".concat(i):null,recaptchaToken:r})).then(()=>{_()}).catch(r=>{var n;g((null===(n=r.response.errors[0])||void 0===n?void 0:n.message)||"Comment failed to post")}).finally(()=>{p(!1)})}},[_,v,i,a]);return(0,l.jsxs)(u.Z,Object.assign({component:"form",sx:{pl:2*o},onSubmit:S,ref:c},{children:[x&&(0,l.jsx)(K.Z,{ref:y,size:"invisible",sitekey:x}),(0,l.jsxs)(ee.Pt,Object.assign({space:4},{children:[(0,l.jsx)(ee.Pt,Object.assign({space:1},{children:(0,l.jsx)(H.Z,{label:i?"Reply":"Comment",required:!0,id:"outlined-basic",variant:"outlined",size:"small",multiline:!0,placeholder:i?"Write your reply here...":"Write your review or comment hereâ¦",minRows:7,sx:{backgroundColor:r=>{let{palette:n}=r;return n.grey[200]},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:"transparent"}}},InputProps:{sx:{borderRadius:0,border:0}},inputProps:{id:"comment-field-".concat(n),name:"comment",required:!0}})})),(0,l.jsx)(ee.Pt,Object.assign({space:1},{children:(0,l.jsx)(H.Z,{label:"Name",required:!0,id:"outlined-basic",variant:"outlined",size:"small",sx:{backgroundColor:r=>{let{palette:n}=r;return n.grey[200]},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:"transparent"}}},InputProps:{sx:{borderRadius:0,border:0}},inputProps:{id:"name-field-".concat(n),name:"author",required:!0}})})),(0,l.jsxs)(ee.Pt,Object.assign({space:1},{children:[(0,l.jsx)(H.Z,{label:"Email",required:!0,id:"outlined-basic",variant:"outlined",size:"small",sx:{backgroundColor:r=>{let{palette:n}=r;return n.grey[200]},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:"transparent"}}},InputProps:{sx:{borderRadius:0,border:0}},inputProps:{id:"email-field-".concat(n),type:"email",name:"email",required:!0}}),(0,l.jsx)(d.Z,Object.assign({component:"p",variant:"caption",sx:{textAlign:"left",padding:0}},{children:"Your email address will not be published. Required fields are marked *"}))]})),(0,l.jsx)(X.Z,Object.assign({open:Boolean(f),autoHideDuration:6e3,onClose:w},{children:(0,l.jsx)(Y.Z,Object.assign({variant:"filled",severity:"error",onClose:w},{children:f}))})),(0,l.jsxs)(u.Z,Object.assign({sx:{display:"flex",gap:2.5}},{children:[(0,l.jsx)(N.Z,Object.assign({type:"submit",variant:"contained",size:"large",disabled:h},{children:h?"Submitting...":"Submit"})),(0,l.jsx)(N.Z,Object.assign({variant:"text",size:"large",onClick:_},{children:"Cancel"}))]}))]}))]}))}var er=i(74752),en=function(r,n,i,o){for(var a=-1,s=null==r?0:r.length;++a<s;){var l=r[a];n(o,l,i(l),r)}return o},ei=i(61395),eo=i(17179),ea=i(50585),es=function(r,n){if(null==r)return r;if(!(0,ea.Z)(r))return r&&(0,ei.Z)(r,n,eo.Z);for(var i=r.length,a=o?i:-1,s=Object(r);(o?a--:++a<i)&&!1!==n(s[a],a,s););return r},el=function(r,n,i,o){return es(r,function(r,a,s){n(o,r,i(r),s)}),o},ec=i(31667),eu=i(63001),ed=function(r,n){for(var i=-1,o=null==r?0:r.length;++i<o;)if(n(r[i],i,r))return!0;return!1},eh=i(59548),ep=function(r,n,i,o,a,s){var l=1&i,c=r.length,u=n.length;if(c!=u&&!(l&&u>c))return!1;var d=s.get(r),h=s.get(n);if(d&&h)return d==n&&h==r;var p=-1,f=!0,m=2&i?new eu.Z:void 0;for(s.set(r,n),s.set(n,r);++p<c;){var g=r[p],v=n[p];if(o)var y=l?o(v,g,p,n,r,s):o(g,v,p,r,n,s);if(void 0!==y){if(y)continue;f=!1;break}if(m){if(!ed(n,function(r,n){if(!(0,eh.Z)(m,n)&&(g===r||a(g,r,i,o,s)))return m.push(n)})){f=!1;break}}
229else if(!(g===v||a(g,v,i,o,s))){f=!1;break}}return s.delete(r),s.delete(n),f},ef=i(17685),em=i(84073),eg=i(79651),ev=function(r){var n=-1,i=Array(r.size);return r.forEach(function(r,o){i[++n]=[o,r]}),i},ey=function(r){var n=-1,i=Array(r.size);return r.forEach(function(r){i[++n]=r}),i},eb=ef.Z?ef.Z.prototype:void 0,ex=eb?eb.valueOf:void 0,e_=function(r,n,i,o,a,s,l){switch(i){case"[object DataView]":if(r.byteLength!=n.byteLength||r.byteOffset!=n.byteOffset)break;r=r.buffer,n=n.buffer;case"[object ArrayBuffer]":if(r.byteLength!=n.byteLength||!s(new em.Z(r),new em.Z(n)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,eg.Z)(+r,+n);case"[object Error]":return r.name==n.name&&r.message==n.message;case"[object RegExp]":case"[object String]":return r==n+"";case"[object Map]":var c=ev;case"[object Set]":var u=1&o;if(c||(c=ey),r.size!=n.size&&!u)break;var d=l.get(r);if(d)return d==n;o|=2,l.set(r,n);var h=ep(c(r),c(n),o,a,s,l);return l.delete(r),h;case"[object Symbol]":if(ex)return ex.call(r)==ex.call(n)}return!1},ew=i(1808),eS=Object.prototype.hasOwnProperty,eT=function(r,n,i,o,a,s){var l=1&i,c=(0,ew.Z)(r),u=c.length;if(u!=(0,ew.Z)(n).length&&!l)return!1;for(var d=u;d--;){var h=c[d];if(!(l?h in n:eS.call(n,h)))return!1}var p=s.get(r),f=s.get(n);if(p&&f)return p==n&&f==r;var m=!0;s.set(r,n),s.set(n,r);for(var g=l;++d<u;){var v=r[h=c[d]],y=n[h];if(o)var b=l?o(y,v,h,n,r,s):o(v,y,h,r,n,s);if(!(void 0===b?v===y||a(v,y,i,o,s):b)){m=!1;break}g||(g="constructor"==h)}if(m&&!g){var x=r.constructor,_=n.constructor;x!=_&&"constructor"in r&&"constructor"in n&&!("function"==typeof x&&x instanceof x&&"function"==typeof _&&_ instanceof _)&&(m=!1)}return s.delete(r),s.delete(n),m},eE=i(23353),ek=i(27771),eC=i(77008),eP=i(18843),eO="[object Arguments]",ej="[object Array]",eA="[object Object]",eM=Object.prototype.hasOwnProperty,eI=function(r,n,i,o,a,s){var l=(0,ek.Z)(r),c=(0,ek.Z)(n),u=l?ej:(0,eE.Z)(r),d=c?ej:(0,eE.Z)(n);u=u==eO?eA:u,d=d==eO?eA:d;var h=u==eA,p=d==eA,f=u==d;if(f&&(0,eC.Z)(r)){if(!(0,eC.Z)(n))return!1;l=!0,h=!1}if(f&&!h)return s||(s=new ec.Z),l||(0,eP.Z)(r)?ep(r,n,i,o,a,s):e_(r,n,u,i,o,a,s);if(!(1&i)){var m=h&&eM.call(r,"__wrapped__"),g=p&&eM.call(n,"__wrapped__");
229if(m||g){var v=m?r.value():r,y=g?n.value():n;return s||(s=new ec.Z),a(v,y,i,o,s)}}return!!f&&(s||(s=new ec.Z),eT(r,n,i,o,a,s))},eZ=i(18533),eR=function r(n,i,o,a,s){return n===i||(null!=n&&null!=i&&((0,eZ.Z)(n)||(0,eZ.Z)(i))?eI(n,i,o,a,r,s):n!=n&&i!=i)},eD=function(r,n,i,o){var a=i.length,s=a,l=!o;if(null==r)return!s;for(r=Object(r);a--;){var c=i[a];if(l&&c[2]?c[1]!==r[c[0]]:!(c[0]in r))return!1}for(;++a<s;){var u=(c=i[a])[0],d=r[u],h=c[1];if(l&&c[2]){if(void 0===d&&!(u in r))return!1}else{var p=new ec.Z;if(o)var f=o(d,h,u,r,n,p);if(!(void 0===f?eR(h,d,3,o,p):f))return!1}}return!0},eL=i(77226),ez=function(r){return r==r&&!(0,eL.Z)(r)},eB=function(r){for(var n=(0,eo.Z)(r),i=n.length;i--;){var o=n[i],a=r[o];n[i]=[o,a,ez(a)]}return n},eF=function(r,n){return function(i){return null!=i&&i[r]===n&&(void 0!==n||r in Object(i))}},eN=function(r){var n=eB(r);return 1==n.length&&n[0][2]?eF(n[0][0],n[0][1]):function(i){return i===r||eD(i,r,n)}},eU=i(13317),eV=function(r,n,i){var o=null==r?void 0:(0,eU.Z)(r,n);return void 0===o?i:o},eq=function(r,n){return null!=r&&n in Object(r)},e$=i(27449),eG=i(29169),eW=i(56009),eH=i(1656),eX=i(62281),eY=function(r,n,i){n=(0,e$.Z)(n,r);for(var o=-1,a=n.length,s=!1;++o<a;){var l=(0,eX.Z)(n[o]);if(!(s=null!=r&&i(r,l)))break;r=r[l]}return s||++o!=a?s:!!(a=null==r?0:r.length)&&(0,eH.Z)(a)&&(0,eW.Z)(l,a)&&((0,ek.Z)(r)||(0,eG.Z)(r))},eK=i(99365),eJ=i(69203),eQ=function(r){var n;return(0,eK.Z)(r)?(n=(0,eX.Z)(r),function(r){return null==r?void 0:r[n]}):function(n){return(0,eU.Z)(n,r)}},e0=function(r){if("function"==typeof r)return r;if(null==r)return eJ.Z;if("object"==typeof r){var n,i;return(0,ek.Z)(r)?(n=r[0],i=r[1],(0,eK.Z)(n)&&ez(i)?eF((0,eX.Z)(n),i):function(r){var o=eV(r,n);return void 0===o&&o===i?null!=r&&eY(r,n,eq):eR(i,o,3)}):eN(r)}return eQ(r)},e1=Object.prototype.hasOwnProperty,e2=(a=function(r,n,i){e1.call(r,i)?r[i].push(n):(0,er.Z)(r,i,[n])},function(r,n){var i=(0,ek.Z)(r)?en:el,o=s?s():{};return i(r,a,e0(n,2),o)}),e3=i(84314),e4=i(19013),e5=i(13882);function e6(r,n){(0,e5.Z)(2,arguments);var i=(0,e4.Z)(r),o=(0,e4.Z)(n),a=i.getTime()-o.getTime();return a<0?-1:a>0?1:a}var e8={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(r){return r<0?Math.ceil(r):Math.floor(r)}},e9=i(86559);function e7(r,n){if(null==r)throw TypeError("assign requires that input parameter not be null or undefined");for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i]);return r}var te=i(24262);function tt(r){var n,i,o,a;let{comment:s,onReply:c,sx:h}=r,p=r=>{r.preventDefault(),c&&c()},f=Array.isArray(s.comments)?s.comments:[],m=(null==s?void 0:s.date)?new Date(s.date):null;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(u.Z,Object.assign({sx:h},{children:[(0,l.jsxs)(u.Z,Object.assign({sx:{display:"flex",gap:2,alignItems:"center"}},{children:[(0,l.jsx)(d.Z,Object.assign({sx:{fontWeight:"700"}},{children:null===(i=null===(n=s.author)||void 0===n?void 0:n.node)||void 0===i?void 0:i.name})),m&&"null"!==JSON.stringify(m)?(0,l.jsx)(d.Z,Object.assign({variant:"caption",sx:{padding:0}},{children:function(r,n){return(0,e5.Z)(1,arguments),function(r,n,i){(0,e5.Z)(2,arguments);var o,a,s,l,c,u=(0,e3.j)(),d=null!==(o=null!==(a=null==i?void 0:i.locale)&&void 0!==a?a:u.locale)&&void 0!==o?o:e9.Z;if(!d.formatDistance)throw RangeError("locale must contain formatDistance property");var h=e6(r,n);if(isNaN(h))throw RangeError("Invalid time value");var p=e7(e7({},i),{addSuffix:Boolean(null==i?void 0:i.addSuffix),comparison:h});h>0?(s=(0,e4.Z)(n),l=(0,e4.Z)(r)):(s=(0,e4.Z)(r),l=(0,e4.Z)(n));var f=function(r,n,i){(0,e5.Z)(2,arguments);var o,a=function(r,n){return(0,e5.Z)(2,arguments),(0,e4.Z)(r).getTime()-(0,e4.Z)(n).getTime()}(r,n)/1e3;return((o=null==i?void 0:i.roundingMethod)?e8[o]:e8.trunc)(a)}(l,s),m=Math.round((f-((0,te.Z)(l)-(0,te.Z)(s))/1e3)/60);if(m<2){if(null!=i&&i.includeSeconds){if(f<5)return d.formatDistance("lessThanXSeconds",5,p);if(f<10)return d.formatDistance("lessThanXSeconds",10,p);if(f<20)return d.formatDistance("lessThanXSeconds",20,p);if(f<40)return d.formatDistance("halfAMinute",0,p);else if(f<60)return d.formatDistance("lessThanXMinutes",1,p);else return d.formatDistance("xMinutes",1,p)}return 0===m?d.formatDistance("lessThanXMinutes",1,p):d.formatDistance("xMinutes",m,p)}if(m<45)return d.formatDistance("xMinutes",m,p);if(m<90)return d.formatDistance("aboutXHours",1,p);if(m<1440){var g=Math.round(m/60);return d.formatDistance("aboutXHours",g,p)}if(m<2520)return d.formatDistance("xDays",1,p);if(m<43200){var v=Math.round(m/1440);return d.formatDistance("xDays",v,p)}if(m<86400)return c=Math.round(m/43200),d.formatDistance("aboutXMonths",c,p);if((c=function(r,n){(0,e5.Z)(2,arguments);var i,o=(0,e4.Z)(r),a=(0,e4.Z)(n),s=e6(o,a),l=Math.abs(function(r,n){(0,e5.Z)(2,arguments);var i=(0,e4.Z)(r),o=(0,e4.Z)(n);return 12*(i.getFullYear()-o.getFullYear())+(i.getMonth()-o.getMonth())}(o,a));if(l<1)i=0;else{1===o.getMonth()&&o.getDate()>27&&o.setDate(30),o.setMonth(o.getMonth()-s*l);var c=e6(o,a)===-s;(function(r){(0,e5.Z)(1,arguments);var n=(0,e4.Z)(r);return(function(r){(0,e5.Z)(1,arguments);var n=(0,e4.Z)(r);return n.setHours(23,59,59,999),n})(n).getTime()===(function(r){(0,e5.Z)(1,arguments);var n=(0,e4.Z)(r),i=n.getMonth();return n.setFullYear(n.getFullYear(),i+1,0),n.setHours(23,59,59,999),n})(n).getTime()})((0,e4.Z)(r))&&1===l&&1===e6(r,a)&&(c=!1),i=s*(l-Number(c))}return 0===i?0:i}
229(l,s))<12){var y=Math.round(m/43200);return d.formatDistance("xMonths",y,p)}var b=c%12,x=Math.floor(c/12);return b<3?d.formatDistance("aboutXYears",x,p):b<9?d.formatDistance("overXYears",x,p):d.formatDistance("almostXYears",x+1,p)}(r,Date.now(),n)}(m,{addSuffix:!0})})):null,c&&(0,l.jsx)(N.Z,Object.assign({sx:{marginLeft:"auto"},"aria-label":"Reply to ".concat(null===(a=null===(o=s.author)||void 0===o?void 0:o.node)||void 0===a?void 0:a.name),variant:"text",onClick:p},{children:"Reply"}))]})),(0,l.jsx)(d.Z,{dangerouslySetInnerHTML:{__html:s.content||""},variant:"body1",component:"div"})]})),f.map(r=>{var n;return(0,l.jsx)(tt,{comment:r,sx:{pl:2*(null!==(n=r.nestingIdx)&&void 0!==n?n:1)}},r.databaseId)})]})}var tr=i(22949);function tn(r){var n,i;let{comments:o,postId:a}=r,s=function(r){var n,i;let o=r.filter(r=>r.content),a=e2(o,r=>r.parentDatabaseId),s=function(r){var n;let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.assign(Object.assign({},r),{nestingIdx:i,comments:null===(n=a[r.databaseId])||void 0===n?void 0:n.map(r=>s(r,i+1))})};return null!==(i=null===(n=a[0])||void 0===n?void 0:n.map(r=>s(r)))&&void 0!==i?i:[]}(o),[c,u]=(0,m.useState)(null),d=null!==(i=null===(n=s.find(r=>{let{databaseId:n}=r;return n===c}))||void 0===n?void 0:n.nestingIdx)&&void 0!==i?i:0;return(0,l.jsx)(tr.Z,Object.assign({space:2},{children:s.map(r=>(0,l.jsxs)(m.Fragment,{children:[(0,l.jsx)(tt,{comment:r,onReply:()=>u(r.databaseId)}),c===r.databaseId&&(0,l.jsx)(et,{postId:a,id:"reply",nestingIdx:d+1,parentComment:r.databaseId,onCancel:()=>u(null)})]},r.databaseId))}))}function ti(r){let{comments:n,postId:i}=r,[o,a]=(0,m.useState)(!1),s=n.filter(r=>!!(null==r?void 0:r.content)).length;return(0,l.jsxs)("section",{children:[(0,l.jsxs)(u.Z,Object.assign({sx:{pb:2,display:"flex",alignItems:"center",gap:1}},{children:[(0,l.jsx)(d.Z,Object.assign({component:"span",variant:"h4"},{children:"Comments"})),(0,l.jsxs)(d.Z,Object.assign({component:"span",variant:"caption",sx:{padding:0,display:"inline"}},{children:["(",s,")"]}))]})),(0,l.jsx)(h.Z,{}),(0,l.jsxs)(A,Object.assign({disableGutters:!0,expanded:o,onChange:(r,n)=>a(n),sx:{border:0,margin:0,backgroundColor:"transparent",boxShadow:"none","&::before":{display:"none"}}},{children:[(0,l.jsx)(F,Object.assign({expandIcon:(0,l.jsx)(c.Z,{sx:{color:"primary.main"}}),sx:{pl:0,mt:0}},{children:(0,l.jsx)(N.Z,Object.assign({variant:"text"},{children:"Add a comment"}))})),(0,l.jsx)(G,Object.assign({sx:{pl:0}},{children:(0,l.jsx)(et,{postId:i,id:"main",onCancel:()=>a(!1)})}))]})),(0,l.jsx)(h.Z,{}),(0,l.jsx)(u.Z,Object.assign({paddingY:1},{children:(0,l.jsx)(tn,{comments:n.filter(W.Z),postId:i})}))]})}},23962:function(r,n,i){"use strict";i.d(n,{H:function(){return s}});var o=i(67294);let a=(0,o.createContext)(null),s=()=>(0,o.useContext)(a);n.Z=a},47018:function(r,n,i){"use strict";i.d(n,{z:function(){return o}});let o={article:"article",author:"author",category:"category",homepage:"homepage",loadingPlaceholder:"loading-placeholder",page:"page",pageNotFound:"page-not-found",search:"search",tag:"tag"};n.Z={author:{content:"author-content",root:"author-root",header:"author-header",sidebar:"author-sidebar",link:"author-link"},article:{author:"article-author",blocks:"article-blocks",breadcrumbs:"article-breadcrumbs",content:"article-content",header:"article-header",moreToRead:"more-to-read",root:"article-root",sidebar:"article-sidebar",tags:"article-tags"},page:{content:"page-content",root:"page-root",header:"page-header",sidebar:"page-sidebar",blocks:"page-blocks"},category:{content:"category-content",root:"category-root",header:"category-header",sidebar:"category-sidebar"},tag:{content:"tag-content",root:"tag-root",header:"tag-header",sidebar:"tag-sidebar"}}},6410:function(r,n,i){"use strict";var o=i(85893),a=i(87357),s=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&0>n.indexOf(o)&&(i[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)0>n.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(i[o[a]]=r[o[a]]);return i};let l=r=>{var{borderWidth:n="",children:i,component:l="div",padding:c=""}=r,u=s(r,["borderWidth","children","component","padding"]);return(0,o.jsx)(a.Z,Object.assign({component:l,sx:Object.assign({backgroundColor:"inherit",borderWidth:n,border:n?"".concat(n," solid"):"",display:"block",padding:c||""},n?{}:{outline:"var(--border-thin, 1px) solid transparent",outlineOffset:"calc(var(--border-thin, 1px) * -1)"})},u,{children:i}))};n.Z=l},97543:function(r,n,i){"use strict";var o=i(85893),a=i(87357),s=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&0>n.indexOf(o)&&(i[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)0>n.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(i[o[a]]=r[o[a]]);return i};let l=r=>{var{andText:n=!1,children:i,component:l="div",gutters:c="0px",intrinsic:u=!1,max:d="",maxWidth:h="",sx:p={}}=r,f=s(r,["andText","children","component","gutters","intrinsic","max","maxWidth","sx"]);return(0,o.jsx)(a.Z,Object.assign({component:l,sx:Object.assign(Object.assign({boxSizing:"content-box",marginInline:"auto",maxInlineSize:h||d,paddingInlineEnd:c,paddingInlineStart:c,textAlign:n?"center":"inherit"},u?{display:"flex",flexDirection:"column",alignItems:"center"}:{}),p)},f,{children:i}))};n.Z=l},28902:function(r,n,i){"use strict";var o=i(85893),a=i(87357),s=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&0>n.indexOf(o)&&(i[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)0>n.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(i[o[a]]=r[o[a]]);return i};function l(r){if(r.includes("/"))return r;let n=r.split(":",2);return"".concat(n[0]," / ").concat(n[1])}let c=r=>{var{children:n,component:i="div",ratio:c="16/9",sx:u}=r,d=s(r,["children","component","ratio","sx"]);
229let h="string"==typeof c?l(c):Array.isArray(c)?c.map(r=>null!==r?l(r):null):Object.fromEntries(Object.entries(c).map(r=>{let[n,i]=r;return[n,null!==i?l(i):null]})),p={inlineSize:"100%",blockSize:"100%",objectFit:"cover"};return(0,o.jsx)(a.Z,Object.assign({component:i,sx:Object.assign(Object.assign({aspectRatio:h,overflow:"hidden",display:"flex",justifyContent:"center",alignItems:"center"},u),{"> img":p,"> video":p,"> picture":p})},d,{children:n}))};n.Z=c},80645:function(r,n,i){"use strict";var o=i(85893),a=i(87357),s=i(67294),l=i(29196),c=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&0>n.indexOf(o)&&(i[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)0>n.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(i[o[a]]=r[o[a]]);return i};let u=r=>{var{children:n,component:i="div",min:u="250px",space:d="var(--step-0, 1rem)"}=r,h=c(r,["children","component","min","space"]);let p=s.useRef(null),[f,m]=s.useState(!0);return(0,l.Z)(p,()=>{let r=p.current;if(r){let n=document.createElement("div");n.style.width=u,r.appendChild(n);let i=n.offsetWidth;r.removeChild(n),m(r.scrollWidth>i)}}),(0,o.jsx)(a.Z,Object.assign({ref:p,component:i,sx:{display:"grid",gap:d,gridAutoRows:"min-content",gridTemplateColumns:f?"repeat(auto-fit, minmax(".concat(u,", 1fr))"):"100%"}},h,{children:n}))};n.Z=u},22949:function(r,n,i){"use strict";var o=i(85893),a=i(87357),s=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&0>n.indexOf(o)&&(i[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)0>n.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(i[o[a]]=r[o[a]]);return i};let l=r=>{var{children:n,component:i="div",recursive:l=!1,space:c="1rem",splitAfter:u}=r,d=s(r,["children","component","recursive","space","splitAfter"]);let h=Object.assign({["".concat(l?"*":"> *")]:{marginBlock:0},["".concat(l?"* + *":"> * + *")]:{marginBlockStart:c}},u?{":only-child":{blockSize:"100%"},["> :nth-child(".concat(u,")")]:{marginBlockEnd:"auto"}}:{});return(0,o.jsx)(a.Z,Object.assign({component:i,sx:Object.assign({display:"flex",flexDirection:"column",justifyContent:"flex-start"},h)},d,{children:n}))};n.Z=l},31548:function(r,n,i){"use strict";i.d(n,{Po:function(){return o.Z},PT:function(){return a.Z},sg:function(){return d},TB:function(){return h.Z},Me:function(){return p.Z},d8:function(){return y},CT:function(){return w},Pt:function(){return S.Z},sB:function(){return k}});var o=i(6410),a=i(97543),s=i(85893),l=i(87357),c=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&0>n.indexOf(o)&&(i[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)0>n.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(i[o[a]]=r[o[a]]);return i};let u=r=>{var{align:n="flex-start",children:i,component:o="div",justify:a="flex-start",space:u="var(--step-0, 1rem)"}=r,d=c(r,["align","children","component","justify","space"]);return(0,s.jsx)(l.Z,Object.assign({component:o,sx:{display:"flex",flexWrap:"wrap",gap:u,justifyContent:a,alignItems:n}},d,{children:i}))};var d=u,h=i(28902),p=i(80645),f=i(67294),m=i(29196),g=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&0>n.indexOf(o)&&(i[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)0>n.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(i[o[a]]=r[o[a]]);return i};let v=r=>{var{children:n,component:i="div",height:o="auto",itemWidth:a="auto",noBar:c=!1,space:u="1rem",thumbColor:d="var(--color-primary, #ccc)",trackColor:h="transparent"}=r,p=g(r,["children","component","height","itemWidth","noBar","space","thumbColor","trackColor"]);let v=f.useRef(null),[y,b]=f.useState(!1);return(0,m.y)(v,r=>{let n=v.current;n&&b(n.scrollWidth>r.width)}),(0,s.jsx)(l.Z,Object.assign({ref:v,component:i,sx:{display:"flex",blockSize:o,overflowX:"auto",overflowY:"hidden",scrollbarColor:"".concat(d," ").concat(h),"::-webkit-scrollbar":{blockSize:"1rem",display:c?"none":""},"::-webkit-scrollbar-track":{backgroundColor:h},"::-webkit-scrollbar-thumb":{backgroundColor:d,backgroundImage:"linear-gradient(".concat(h," 0, ").concat(h," 0.25rem, ").concat(d," 0.25rem, ").concat(d," 0.75rem, ").concat(h," 0.75rem)")},"> *":{flex:"0 0 ".concat(a)},"> img":{blockSize:"100%",flexBasis:"auto",width:"auto"},"> * + *":{marginInlineStart:u},paddingBlockEnd:y&&!c?u:"",scrollbarWidth:c?"none":""}},p,{children:n}))};var y=v,b=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&0>n.indexOf(o)&&(i[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)0>n.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(i[o[a]]=r[o[a]]);return i};let x=r=>/^(100|[1-9][0-9]?)%$/.test(r),_=r=>{var{children:n,component:i="div",contentMin:o="50%",noStretch:a=!1,side:c="left",sideWidth:u="",space:d="0",wrapReverse:h=!1}=r,p=b(r,["children","component","contentMin","noStretch","side","sideW
229idth","space","wrapReverse"]);if(!x(o)){let r="contentMin";throw Error("Invalid prop '".concat(r,"' supplied to '").concat(_.name,"'. \n '").concat(r,"' must be a string representing a percentage between 1% and 100%, e.g., '50%'."))}let f={flexBasis:0,flexGrow:999,minInlineSize:o},m={flexBasis:u,flexGrow:1};return(0,s.jsx)(l.Z,Object.assign({component:i,sx:{alignItems:a?"flex-start":void 0,display:"flex",flexDirection:"row",flexWrap:h?"wrap-reverse":"wrap",gap:d,"> :first-child":"left"===c?m:f,"> :last-child":"left"===c?f:m}},p,{children:n}))};var w=_,S=i(22949),T=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&0>n.indexOf(o)&&(i[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)0>n.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(i[o[a]]=r[o[a]]);return i};let E=r=>{var{children:n,component:i="div",limit:o=2,space:a="0",threshold:c="0"}=r,u=T(r,["children","component","limit","space","threshold"]);return(0,s.jsx)(l.Z,Object.assign({component:i,sx:{display:"flex",flexWrap:"wrap",gap:a,"> *":{flexGrow:1,flexBasis:"calc(( ".concat(c," - 100%) * 999)")},["> :nth-last-child(n+ ".concat(o+1,")")]:{flexBasis:"100%"},["> :nth-last-child(n+ ".concat(o+1,") ~ *")]:{flexBasis:"100%"}}},u,{children:n}))};var k=E},60655:function(r,n,i){"use strict";i.d(n,{Z:function(){return eb}});var o=i(5152),a=i.n(o),s=i(82665),l=i(63098),c=i(15300),u=i(85893),d=i(87357);let h=r=>{let{children:n,mediaUrl:i}=r;return(0,u.jsx)("a",Object.assign({"data-pin-do":"buttonBookmark","data-pin-hover":"true","data-pin-shape":"round","data-pin-tall":"true",href:"https://www.pinterest.com/pin/create/button/?media=".concat(i),rel:"noreferrer",target:"_blank"},{children:n}))},p=r=>{let{url:n}=r;return(0,u.jsx)(d.Z,Object.assign({sx:{position:"absolute",inset:"10px auto auto 10px",zIndex:10,a:{transition:"opacity 150ms",opacity:0}}},{children:(0,u.jsx)(h,{mediaUrl:n})}
229))};var f=i(68465),m=i(55617),g=i(74114),v=i(5077),y=i(9988),b=i(28954),x=i(77485),_=i(89336),w=i(2734),S=i(23655),T=i(31548),E=i(43098),k=i(67720),C=i(26447),P=i(67294),O=i(35034),j=i(99216),A=i(40641),M=i(94018),I=i(77424),Z=i(97924),R=i(93199),D=i(51594),L=i(79371),z=i(40785),B=i(64692),F=i(13344);let N=r=>{var n,i,o,a,s,l,h,p,f,m,g,v,y,b,x,_,S,E,N,U,V;let{afterContentSlot:q,beforeContentSlot:$,beforeSidebarContent:G,options:W,post:H,sidebarContent:X}=r,Y=(0,w.Z)(),{data:K}=(0,O.Z)(),{data:J}=(0,j.Z)(c.Z,H),{data:Q}=(0,A.Z)(),ee=null!==(a=null===(o=null===(i=null===(n=null==J?void 0:J.post)||void 0===n?void 0:n.comments)||void 0===i?void 0:i.nodes)||void 0===o?void 0:o.filter(Z.Z))&&void 0!==a?a:[],et=(null==W?void 0:W.variant)==="small",er=!(null==W?void 0:W.disableFeaturedImage)&&!(null===(s=H.featuredImageOptions)||void 0===s?void 0:s.hideFromArticle),en=!(null==W?void 0:W.disableBreadcrumbs),ei=!(null==W?void 0:W.disableCategoryLink),eo=!(null==W?void 0:W.disableAuthorLink),ea=String((null==W?void 0:W.relatedStoriesTitle)||"Related Stories"),es=(null===(l=null==K?void 0:K.dropCap)||void 0===l?void 0:l.option)&&!(null===(h=H.autoDropCapOption)||void 0===h?void 0:h.disableDropCap)?(0,M.u7)(H.blocks):H.blocks,el=H.blocks.some(r=>r.name===D.Z.AcfProductTableBlock),ec=(0,P.useMemo)(()=>(0,u.jsx)(z.Z,{data:{uri:H.uri,media:H.featuredImage.node.sourceUrl,text:H.title},buttonText:"Share this story",variant:"contained"}),[H.featuredImage.node.sourceUrl,H.uri,H.title]),eu=(0,u.jsxs)(T.Pt,Object.assign({space:Y.spacing(4)},{children:[er&&H.featuredImage.node&&et&&(0,u.jsx)(I.Q_,{alt:H.featuredImage.node.altText||"",caption:H.featuredImage.node.caption||"",credit:(null===(m=null===(f=null===(p=H.featuredImage)||void 0===p?void 0:p.node.mediaAdditionalData)||void 0===f?void 0:f.mediaCredit)||void 0===m?void 0:m.mcName)||"",loading:"eager",src:H.featuredImage.node.sourceUrl||""}),(null===(g=H.sponsored)||void 0===g?void 0:g.brand)?(0,u.jsxs)(d.Z,{children:[(0,u.jsx)(k.Z,{}),(0,u.jsx)(B.Z,{enabled:!0,text:H.sponsored.text||"",brand:H.sponsored.brand,sx:{my:1}}),(0,u.jsx)(k.Z,{})]}):null,(0,u.jsx)(d.Z,Object.assign({sx:{textAlign:"right"}},{children:ec})),(0,u.jsx)(L.ZP,{blocks:es,useUncomfortableCPL:Boolean(null==W?void 0:W.useUncomfortableCPL),includeContentBlockStyling:!0}),ec,H.tags.nodes.length>0&&(0,u.jsx)(d.Z,Object.assign({sx:{borderTop:"1px solid ".concat(Y.palette.text.disabled),borderBottom:"1px solid ".concat(Y.palette.text.disabled)}},{children:(0,u.jsx)(T.Po,Object.assign({padding:"".concat(Y.spacing(5)," ").concat(Y.spacing(3))},{children:(0,u.jsx)(T.sg,Object.assign({justify:"center"},{children:H.tags.nodes.map(r=>(0,u.jsx)(I.Vp,{href:r.uri||"",label:r.name||""},r.slug))}))}))})),H.contributors.length>0&&H.contributors.slice(0,1).map(r=>(0,u.jsx)(I.$Z,{authorTag:r.authorTag}))]}));return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(T.Pt,Object.assign({space:"0"},{children:[(0,u.jsx)(d.Z,Object.assign({sx:{py:5,px:{xs:3,sm:10}}},{children:(0,u.jsx)(I.S1,{align:et?"left":"center",includeCategoryTags:ei,includeBreadcrumbs:en,post:H})})),er&&H.featuredImage.node&&!et&&(0,u.jsx)(I.Q_,{alt:H.featuredImage.node.altText||"",caption:H.featuredImage.node.caption||"",credit:(null===(b=null===(y=null===(v=H.featuredImage)||void 0===v?void 0:v.node.mediaAdditionalData)||void 0===y?void 0:y.mediaCredit)||void 0===b?void 0:b.mcName)||"",loading:"eager",src:H.featuredImage.node.sourceUrl||""})]})),(0,u.jsx)(T.Po,Object.assign({padding:{xs:"".concat(et?0:Y.spacing(3)," ").concat(Y.spacing(3)," ").concat(Y.spacing(10)),sm:"".concat(et?0:Y.spacing(5)," ").concat(Y.spacing(10)," ").concat(Y.spacing(10))}},{children:(0,u.jsxs)(T.Pt,Object.assign({space:Y.spacing(10)},{children:[(0,u.jsx)(T.Pt,{children:el?(0,u.jsx)(T.PT,Object.assign({maxWidth:"840px"},{children:(0,u.jsxs)(d.Z,Object.assign({component:"main"},{children:[$,eu,q]}))})):(0,u.jsxs)(T.CT,Object.assign({contentMin:"55%",side:"right",sideWidth:"400px",space:Y.spacing(10)},{children:[(0,u.jsxs)(d.Z,Object.assign({component:"main"},{children:[$,eu,q]})),(0,u.jsxs)(C.Z,Object.assign({component:"aside",spacing:3},{children:[G,H.relatedStories.length>0&&(0,u.jsx)(I.$0,Object.assign({sx:{bgcolor:"primary.light",display:{xs:"none",lg:"block"}},title:ea||"Related Stories"},{children:(0,u.jsxs)(T.Pt,{children:[(null===(_=null===(x=H.relatedStories[0].featuredImage)||void 0===x?void 0:x.node)||void 0===_?void 0:_.sourceUrl)&&(0,u.jsx)(R.ID,Object.assign({href:H.relatedStories[0].uri||"#",passHref:!0},{children:(0,u.jsx)(I.yM,{children:(0,u.jsx)(I.Q_,{alt:(null===(E=null===(S=H.relatedStories[0].featuredImage)||void 0===S?void 0:S.node)||void 0===E?void 0:E.altText)||"",src:(null===(U=null===(N=H.relatedStories[0].featuredImage)||void 0===N?void 0:N.node)||void 0===U?void 0:U.sourceUrl)||"",title:H.relatedStories[0].title||""})})})),(0,u.jsx)(d.Z,Object.assign({px:Y.spacing(3)},{children:(0,u.jsx)(T.Me,Object.assign({space:Y.spacing(3)},{children:H.relatedStories.map((r,n)=>r.title&&r.uri?(0,u.jsx)(I.U0,{divider:n!==H.relatedStories.length-1,excludeCategoryLink:!ei,excludeAuthorLink:!eo,post:r},r.id):null)}))}))]})})),X]}))]}))}),(null===(V=null==Q?void 0:Q.wpComments)||void 0===V?void 0:V.enabled)&&H.showComments&&(0,u.jsx)(F.Z,{postId:H.databaseId,comments:ee}),(0,u.jsx)(I.fW,{excludeCategoryLink:!ei,excludeAuthorLink:!eo,post:H,relatedStoriesTitle:ea})]}))}))]})},U=(0,S.$Z)((r,n)=>{var i,o;let a=(0,w.Z)();return(0,u.jsxs)(d.Z,Object.assign({ref:n,component:"article",sx:null!==(o=null===(i=r.options)||void 0===i?void 0:i.sx)&&void 0!==o?o:{}},{children:[(0,u.jsx)(T.PT,Object.assign({maxWidth:"".concat(a.breakpoints.values.xl).concat(a.breakpoints.unit)},{children:(0,u.jsx)(N,Object.assign({},r))})),(0,u.jsx)(E.OF,{})]}))});var V=i(15861),q=i(8423),$=i(23795),G=i(70872),W=i(58886),H=i(11163),X=i(22350),Y=i(57053),K=i(67035),J=i(45797),Q=i(61154);function ee(r){var n;let{alignment:i="left",authorData:o,networks:a}=r,s=(0,w.Z)();return(null==a?void 0:a.length)?(0,u.jsx)(d.Z,Object.assign({sx:{borderTop:(null===(n=o.author)||void 0===n?void 0:n.authorTitle)?"":"1px solid ".concat(s.palette.primary.main),borderBottom:"1px solid ".concat(s.palette.primary.main),py:2,px:3}},{children:(0,u.jsx)(Q.Z,{iconsSx:{background:s.palette.primary.main,padding:"0.5rem",borderRadius:"50%",svg:{color:"white",fontSize:"0.875rem"}}
229,justifyContent:"left"===i?"flex-start":"center",networks:a,spacing:s.spacing(1)})})):null}function et(r){var n,i;let{authorData:o}=r,a=(0,w.Z)();return(null===(n=o.author)||void 0===n?void 0:n.authorTitle)?(0,u.jsx)(d.Z,Object.assign({sx:{borderTop:"1px solid ".concat(a.palette.primary.main),borderBottom:"1px solid ".concat(a.palette.primary.main),py:2,px:3}},{children:(0,u.jsx)(V.Z,Object.assign({variant:"overline"},{children:null===(i=o.author)||void 0===i?void 0:i.authorTitle}))})):null}let er=r=>{var n,i,o,a,s,l,c,h,p,f,m,g,v,y,b,x,_,S,E;let{categoryPageData:O,options:j,pagination:M}=r,{category:Z}=O,D=(0,H.useRouter)(),z=(0,w.Z)(),{data:B}=(0,A.Z)(),F=(null==B?void 0:B.categoryPostsPerPage)||Y.$.categoryPostsPerPage,N=null!==(a=null===(o=null===(i=null===(n=Z.posts)||void 0===n?void 0:n.pageInfo)||void 0===i?void 0:i.offsetPagination)||void 0===o?void 0:o.total)&&void 0!==a?a:0,U=Math.ceil(N/F),q=!(null==j?void 0:j.disableBreadcrumbs),$=!(null===(s=Z.displayOptions)||void 0===s?void 0:s.hideSubcategoryPills),X=Boolean(null==j?void 0:j.disableTitle),J=null===(c=null===(l=Z.displayOptions)||void 0===l?void 0:l.featuredImage)||void 0===c?void 0:c.node,Q=(0,P.useMemo)(()=>{var r;if(!q)return[];let n=[{text:"Home",url:"/"}];return(null===(r=Z.ancestors)||void 0===r?void 0:r.nodes)&&Z.ancestors.nodes.length>0&&Z.ancestors.nodes.forEach(r=>{(null==r?void 0:r.name)&&(null==r?void 0:r.uri)&&n.push({text:r.name,url:r.uri})}),n},[null===(h=Z.ancestors)||void 0===h?void 0:h.nodes,q]),ee=Boolean(null==j?void 0:j.excludeAuthorLink),et=Boolean(null==j?void 0:j.excludeCategoryLink),er=Boolean(null==j?void 0:j.excludePublishDate),en=String(null==j?void 0:j.subcategoryTagVariant)||"filled",ei=(0,P.useCallback)((r,n)=>{D.push("".concat((0,K.Z)(O.category.uri),"page/").concat(n))},[D,O.category.uri]),eo=Z.posts.nodes[0],ea=(0,P.useMemo)(()=>"string"!=typeof Z.name?Z.name:"Recent ".concat(Z.name," ").concat(Z.name.toLowerCase().endsWith("stories")?"":"Stories"),[Z.name]);return(0,u.jsxs)(T.Pt,Object.assign({space:z.spacing(5)},{children:[(0,u.jsxs)(d.Z,Object.assign({sx:{px:{xs:3,md:10}}},{children:[Q.length>0&&(0,u.jsx)(I.Oo,{breadcrumbs:Q}),(0,u.jsx)(T.PT,Object.assign({andText:!0},{children:(0,u.jsxs)(T.Pt,Object.assign({space:z.spacing(2)},{children:[!X&&(0,u.jsx)(V.Z,Object.assign({variant:"h1"},{children:(0,u.jsx)(d.Z,Object.assign({sx:{display:"inline-block",borderBottom:"4px solid ".concat(z.palette.text.primary)}},{children:Z.name}))})),(0,u.jsxs)(C.Z,Object.assign({sx:{alignItems:"center"},direction:{xs:"column",lg:"row"},spacing:2},{children:[J&&(0,u.jsx)(I.Q_,{alt:J.altText||"",ratio:"4:3",src:J.sourceUrl||""}),(null==Z?void 0:Z.description)&&(0,u.jsx)(L.C6,Object.assign({enabled:!0,useUncomfortableCPL:!1,sx:{display:"flex",justifyContent:"center"}},{children:(0,u.jsx)(V.Z,{component:"div",dangerouslySetInnerHTML:{__html:Z.description},"data-rawhtml":"1",sx:{color:"text.secondary",fontFamily:r=>{var n,i;let{typography:o}=r;return null===(i=null===(n=o.fonts)||void 0===n?void 0:n.sans)||void 0===i?void 0:i.primary},mt:2,mb:1,alignSelf:"center",maxWidth:"88%",iframe:{border:0}},variant:"h6"})}))]})),$&&(null===(m=null===(f=null===(p=null==O?void 0:O.category)||void 0===p?void 0:p.children)||void 0===f?void 0:f.nodes)||void 0===m?void 0:m.length)?(0,u.jsx)(T.sg,Object.assign({align:"center",justify:"center",space:z.spacing(1)},{children:null===(v=null===(g=Z.children)||void 0===g?void 0:g.nodes)||void 0===v?void 0:v.map(r=>(0,u.jsx)(I.Vp,{href:(null==r?void 0:r.uri)||"",label:(null==r?void 0:r.name)||"",variant:en},null==r?void 0:r.slug))})):null]}))}))]})),eo?(0,u.jsxs)(d.Z,Object.assign({sx:{px:{xs:3,md:10}}},{children:[!X&&(0,u.jsx)(k.Z,{sx:{bgcolor:"primary.light"}}),(0,u.jsxs)(T.Pt,Object.assign({space:z.spacing(6)},{children:[(0,u.jsxs)(T.Pt,{children:[(0,u.jsx)(V.Z,Object.assign({component:"h2",sx:{mt:2},variant:"h5"},{children:ea})),(null===(b=null===(y=null==eo?void 0:eo.featuredImage)||void 0===y?void 0:y.node)||void 0===b?void 0:b.sourceUrl)&&(0,u.jsx)(R.ID,Object.assign({href:eo.uri||"#",passHref:!0},{children:(0,u.jsx)("a",{children:(0,u.jsx)(I.Q_,{alt:(null===(_=null===(x=null==eo?void 0:eo.featuredImage)||void 0===x?void 0:x.node)||void 0===_?void 0:_.altText)||"",ratio:"4:2",src:(null===(E=null===(S=null==eo?void 0:eo.featuredImage)||void 0===S?void 0:S.node)||void 0===E?void 0:E.sourceUrl)||""})})})),(0,u.jsx)(I.U0,{excludeAuthorLink:ee,excludeCategoryLink:et,excludePublishDate:er,post:eo,size:"lg",showExcerpt:!0})]}),(0,u.jsx)(T.Me,{children:Z.posts.nodes.slice(1).map(r=>{var n,i,o,a,s,l;return(0,u.jsxs)(T.Pt,{children:[(null===(i=null===(n=null==r?void 0:r.featuredImage)||void 0===n?void 0:n.node)||void 0===i?void 0:i.sourceUrl)&&(0,u.jsx)(R.ID,Object.assign({href:r.uri||"#",passHref:!0},{children:(0,u.jsx)("a",{children:(0,u.jsx)(I.Q_,{alt:(null===(a=null===(o=null==r?void 0:r.featuredImage)||void 0===o?void 0:o.node)||void 0===a?void 0:a.altText)||"",ratio:"4:2",src:(null===(l=null===(s=null==r?void 0:r.featuredImage)||void 0===s?void 0:s.node)||void 0===l?void 0:l.sourceUrl)||""})})})),(0,u.jsx)(I.U0,{divider:!1,excludeAuthorLink:ee,excludeCategoryLink:et,excludePublishDate:er,post:r})]},r.databaseId)})}),U>1&&(0,u.jsx)(T.PT,{children:(0,u.jsx)(G.Z,{color:"secondary",count:U,onChange:ei,page:M.pageNum,renderItem:r=>(0,u.jsx)(W.Z,Object.assign({},r))})})]}))]})):(0,u.jsx)(R.ub,{title:"No articles found."})]}))};var en=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&0>n.indexOf(o)&&(i[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)0>n.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(i[o[a]]=r[o[a]]);return i};let ei=r=>{var n,{options:i={}}=r,o=en(r,["options"]);let a=(0,w.Z)();return(0,u.jsx)(d.Z,Object.assign({sx:Object.assign({pt:5},null!==(n=null==i?void 0:i.sx)&&void 0!==n?n:{})},{children:(0,u.jsxs)(T.Pt,Object.assign({space:a.spacing(4)},{children:[(0,u.jsx)(T.PT,Object.assign({maxWidth:"".concat(a.breakpoints.values.xl).concat(a.breakpoints.unit),sx:{width:"100%"}},{children:(0,u.jsx)(er,Object.assign({},o))})),(0,u.jsx)(J.Z,{})]}))}))};function eo(r){var n,i,o,a,s,c;let{breakpoints:h}=(0,w.Z)(),p="840px",f=(0,l.Z)(null===(i=null===(n=null==r?void 0:r.page)||void 0===n?void 0:n.postTemplate)||void 0===i?void 0:i.postTemplate,"");return"Wide"===f&&(p="".concat(h.values.xl).concat(h.unit)),(0,u.jsx)(d.Z,Object.assign({px:{xs:3,md:5},py:4,sx:null!==(a=null===(o=r.options)||void 0===o?void 0:o.sx)&&void 0!==a?a:{}},{children:(0,u.jsxs)(T.PT,Object.assign({maxWidth:p},{children:[r.page.title&&(0,u.jsx)(V.Z,{component:"h1",dangerouslySetInnerHTML:{__html:r.page.title},sx:{mb:4},variant:"h1"}),(null===(s=r.page.sponsored)||void 0===s?void 0:s.brand)?(0,u.jsxs)(d.Z,Object.assign({sx:{my:2}},{children:[(0,u.jsx)(k.Z,{}),(0,u.jsx)(B.Z,{enabled:!0,text:r.page.sponsored.text||"",brand:r.page.sponsored.brand,sx:{my:1}}),(0,u.jsx)(k.Z,{})]})):null,(0,u.jsx)(L.ZP,{blocks:r.page.blocks,useUncomfortableCPL:Boolean(null===(c=r.options)||void 0===c?void 0:c.useUncomfortableCPL),includeContentBlockStyling:!0}),r.afterContentSlot]}))}))}let ea=r=>{var n;let{page:i,options:o={}}=r,{breakpoints:a}=(0,w.Z)();return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(T.PT,Object.assign({sx:null!==(n=o.sx)&&void 0!==n?n:{},maxWidth:"".concat(a.values.xl).concat(a.unit)},{children:(0,u.jsx)(L.ZP,{blocks:i.blocks,sx:{my:6,['[data-og-block-type="'.concat(D.Z.AcfListArticleBlock,'"], [data-og-block-type="').concat(D.Z.AcfArticleListBlock,'"], [data-og-block-type="').concat(D.Z.AcfArticleGridBlock,'"]')]:{mx:"auto",px:{xs:2,sm:3}}
229},includeContentBlockStyling:!0})})),(0,u.jsx)(E.OF,{})]})};var es=i(43880),el=i(71849);let ec=r=>{var n,i,o,a,s,l;let{data:c,pagination:h,options:p={}}=r,f=(0,H.useRouter)(),m=(0,w.Z)(),g=null!==(a=null===(o=null===(i=null===(n=c.posts)||void 0===n?void 0:n.pageInfo)||void 0===i?void 0:i.offsetPagination)||void 0===o?void 0:o.total)&&void 0!==a?a:0,v=Math.ceil((g-16)/64)+1,y=(0,P.useCallback)((r,n)=>{f.push("".concat((0,K.Z)(c.uri),"page/").concat(n))},[f,c.uri]),b=(0,P.useMemo)(()=>{var r;return(null===(r=c.posts)||void 0===r?void 0:r.nodes)&&c.posts.nodes.length>0?c.posts.nodes.filter(Z.Z):[]},[null===(s=c.posts)||void 0===s?void 0:s.nodes]),x=(0,es.Z)(c.name||"");return(0,u.jsx)(d.Z,Object.assign({sx:Object.assign({pt:5},null!==(l=null==p?void 0:p.sx)&&void 0!==l?l:{})},{children:(0,u.jsxs)(T.Pt,Object.assign({space:m.spacing(4)},{children:[(0,u.jsx)(T.PT,Object.assign({maxWidth:"".concat(m.breakpoints.values.xl).concat(m.breakpoints.unit)},{children:(0,u.jsxs)(T.Pt,Object.assign({space:m.spacing(5)},{children:[(0,u.jsx)(d.Z,Object.assign({sx:{px:{xs:3,md:10}}},{children:(0,u.jsx)(T.PT,Object.assign({andText:!0},{children:(0,u.jsxs)(T.Pt,Object.assign({space:m.spacing(2)},{children:[(0,u.jsx)(V.Z,Object.assign({variant:"h1"},{children:(0,u.jsx)(d.Z,Object.assign({sx:{display:"inline-block",borderBottom:"4px solid ".concat(m.palette.text.primary)}},{children:x}))})),(null==c?void 0:c.description)&&(0,u.jsx)(V.Z,{component:"div",dangerouslySetInnerHTML:{__html:c.description},sx:{color:"text.secondary",fontFamily:r=>{var n,i;let{typography:o}=r;return null===(i=null===(n=o.fonts)||void 0===n?void 0:n.sans)||void 0===i?void 0:i.primary},mt:2,mb:1,alignSelf:"center",maxWidth:"88%"},variant:"h6"})]}))}))})),b.length>0?(0,u.jsx)(d.Z,Object.assign({sx:{px:{xs:3,md:10}}},{children:(0,u.jsx)(el.Z,{posts:b})})):(0,u.jsx)(R.ub,{title:"No articles found."}),v>1&&(0,u.jsx)(d.Z,Object.assign({sx:{mb:4,display:"flex"}},{children:(0,u.jsx)(T.PT,{children:(0,u.jsx)(G.Z,{color:"primary",count:v,onChange:y,page:h.pageNum,renderItem:r=>(0,u.jsx)(W.Z,Object.assign({},r))})})}))]}))})),(0,u.jsx)(J.Z,{})]}))}))};var eu=i(49287),ed=i(76978),eh=i(85165),ep=i(59471),ef=i(3552),em=i(97131);let eg=a()(()=>i.e(5664).then(i.bind(i,65664)),{loadableGenerated:{webpack:()=>[65664]}}),ev="default",ey={themeId:"default-theme",contentStyleSheet:()=>({}),_document:{Head:()=>null},Footer:m.Z,Header:function(){var r;let{headerOptions:n,logos:i,menus:o}=(0,eu.Z)(),{options:a}=(0,eh.Z)();return(0,u.jsx)(I.l2,{sticky:n.sticky,menuItems:o[ed.Xe.Header],mobileMenuItems:o[ed.Xe.Hamburger],logo:i.main,separateDesktopNavigationRow:null===(r=null==a?void 0:a.header)||void 0===r?void 0:r.separateDesktopNavigationRow})},muiTheme:em.ZP,OnPageChangeLoadingIndicator:f.Z,globalStyleSheet:{"h1,h2,h3,h4,p,figure,blockquote,dl,dd,pre,code":{margin:0}},pageTypes:{article:{templates:[{name:ev,component:U,queries:[c.Z]}]},author:{templates:[{name:ev,component:function(r){var n,i,o,a,s,c,h,p,f,m,g,v,y,b,x,_,S,E,k,P,O,j;let{authorData:A,options:M,pagination:Z}=r,D=(0,w.Z)(),L=(0,H.useRouter)(),z=null===(i=null===(n=A.author)||void 0===n?void 0:n.authorSocial)||void 0===i?void 0:i.map(r=>{let n=(null==r?void 0:r.icon)?null==r?void 0:r.icon.filter(Boolean):null;return{url:null==r?void 0:r.url,name:n?[(0,l.Z)(n,"")]:null}}),B=(0,X.yJ)({pagination:Z,total:null===(a=null===(o=A.posts.pageInfo)||void 0===o?void 0:o.offsetPagination)||void 0===a?void 0:a.total}),F=(null===(s=B.customPagination)||void 0===s?void 0:s.pageSize)||Y.$.optAuthorPostsPerPage,N=!!(null==M?void 0:M.excludeAuthorLink),U=!!(null==M?void 0:M.excludeCategoryLink),Q=!!(null==M?void 0:M.excludePublishDate),er=B.numberOfRows,en=Math.ceil(er/F),ei=(r,n)=>{L.push("".concat((0,K.Z)(A.uri),"page/").concat(n))},eo=null!==(f=null===(p=null===(h=null===(c=A.author)||void 0===c?void 0:c.authorAvatar)||void 0===h?void 0:h.node)||void 0===p?void 0:p.sourceUrl)&&void 0!==f?f:null;return(0,u.jsx)(d.Z,Object.assign({sx:null!==(m=null==M?void 0:M.sx)&&void 0!==m?m:{}},{children:(0,u.jsxs)(T.Pt,Object.assign({space:D.spacing(4)},{children:[(0,u.jsx)(d.Z,Object.assign({bgcolor:D.palette.primary.light,minHeight:"500px",pt:{xs:5,md:10},px:{xs:3,md:10}},{children:null!==eo?(0,u.jsx)(T.PT,Object.assign({max:"840px"},{children:(0,u.jsxs)(T.sB,Object.assign({space:D.spacing(4),threshold:"780px"},{children:[(0,u.jsxs)(T.Pt,Object.assign({space:D.spacing(4)},{children:[(0,u.jsx)(V.Z,Object.assign({mt:{xs:0,md:10},variant:"h1"},{children:(0,u.jsx)(d.Z,Object.assign({component:"span",sx:{borderTop:"4px solid ".concat(D.palette.text.primary),borderBottom:"4px solid ".concat(D.palette.text.primary),display:"inline-block",py:2}},{children:A.name}))})),(0,u.jsxs)(T.Pt,Object.assign({space:"0px"},{children:[(0,u.jsx)(et,{authorData:A}),(0,u.jsx)(ee,{authorData:A,networks:z})]}))]})),(0,u.jsx)(d.Z,Object.assign({sx:{filter:"grayscale(1)",mb:-4}},{children:(0,u.jsx)(T.TB,Object.assign({ratio:"4:5"},{children:(0,u.jsx)(R.hr,{src:eo})}))}))]}))})):(0,u.jsx)(T.PT,Object.assign({max:"389px",andText:!0},{children:(0,u.jsxs)(T.Pt,Object.assign({space:D.spacing(4)},{children:[(0,u.jsx)(d.Z,Object.assign({mt:{xs:0,md:10},sx:{borderTop:"4px solid ".concat(D.palette.text.primary),borderBottom:"4px solid ".concat(D.palette.text.primary),py:2}},{children:(0,u.jsx)(V.Z,Object.assign({variant:"h1"},{children:A.name}))})),(0,u.jsxs)(T.Pt,Object.assign({space:"0px"},{children:[(0,u.jsx)(et,{authorData:A}),(0,u.jsx)(ee,{alignment:"center",authorData:A,networks:z})]}))]}))}))})),(0,u.jsx)(d.Z,Object.assign({sx:{my:8,px:3}},{children:(0,u.jsx)(T.PT,Object.assign({max:"840px"},{children:(0,u.jsx)(d.Z,Object.assign({sx:{"& a":{color:"primary.main",textDecoration:"underline",textDecorationColor:r=>{let{palette:n}=r;return(0,q.Fq)(n.primary.main,.4)},"&:hover":{textDecorationColor:"inherit"}}}},{children:(0,u.jsxs)(T.Pt,Object.assign({space:D.spacing(5)},{children:[(null===(g=A.author)||void 0===g?void 0:g.authorBio)&&(0,u.jsx)(V.Z,Object.assign({variant:"paragraph"},{children:(0,u.jsx)("div",{dangerouslySetInnerHTML:{__html:null===(v=A.author)||void 0===v?void 0:v.authorBio}})})),(null===(y=A.author)||void 0===y?void 0:y.authorHighlights)&&(0,u.jsxs)(T.Pt,Object.assign({space:D.spacing(3)},{children:[(0,u.jsx)(V.Z,Object.assign({component:"h2",variant:"h4"},{children:"Highlights"})),(0,u.jsx)(V.Z,{dangerouslySetInnerHTML:{__html:null===(b=A.author)||void 0===b?void 0:b.authorHighlights},variant:"paragraph"})]})),(null===(x=A.author)||void 0===x?void 0:x.authorExperience)&&(0,u.jsxs)(T.Pt,Object.assign({space:D.spacing(3)},{children:[(0,u.jsx)(V.Z,Object.assign({component:"h2",variant:"h4"},{children:"Experience"})),(0,u.jsx)(V.Z,{dangerouslySetInnerHTML:{__html:null===(_=A.author)||void 0===_?void 0:_.authorExperience},variant:"paragraph"})]})),(null===(S=A.author)||void 0===S?void 0:S.authorEducation)&&(0,u.jsxs)(T.Pt,Object.assign({space:D.spacing(3)},{children:[(0,u.jsx)(V.Z,Object.assign({component:"h2",variant:"h4"},{children:"Education"})),(0,u.jsx)(V.Z,{dangerouslySetInnerHTML:{__html:null===(E=A.author)||void 0===E?void 0:E.authorEducation},variant:"paragraph"})]})),(null===(P=null===(k=null==A?void 0:A.author)||void 0===k?void 0:k.authorNotableWork)||void 0===P?void 0:P.length)?(0,u.jsxs)(T.Pt,Object.assign({space:D.spacing(3)},{children:[(0,u.jsx)(V.Z,Object.assign({component:"h2",variant:"h4"},{children:"Notable Work"})),(0,u.jsx)(C.Z,Object.assign({direction:"column",spacing:1},{children:null===(j=null===(O=null==A?void 0:A.author)||void 0===O?void 0:O.authorNotableWork)||void 0===j?void 0:j.map(r=>(0,u.jsxs)("div",{children:[(null==r?void 0:r.title)&&(0,u.jsx)($.Z,Object.assign({href:(null==r?void 0:r.url)||"",rel:"noopener",target:"_blank",gutterBottom:!0},{children:r.title})),(null==r?void 0:r.name)&&(0,u.jsx)(V.Z,Object.assign({color:"text.secondary"},{children:"on ".concat(r.name)}))]},"".concat(null==r?void 0:r.url,"-").concat(null==r?void 0:r.title,"-").concat(null==r?void 0:r.name)))}))]})):null]}))}))}))})),A.posts.nodes.length>0&&(0,u.jsx)(d.Z,Object.assign({px:{xs:3}},{children:(0,u.jsxs)(T.PT,Object.assign({max:"1280px"},{children:[(0,u.jsx)(I.dv,{}),(0,u.jsxs)(T.Pt,Object.assign({space:D.spacing(4)},{children:[(0,u.jsx)(V.Z,Object.assign({component:"h2",sx:{pt:2},variant:"h4"},{children:"Recent Stories from ".concat(A.name)}
229)),(0,u.jsx)(T.Me,{children:A.posts.nodes.map(r=>{var n,i,o,a,s,l;return(0,u.jsxs)(T.Pt,{children:[(null===(i=null===(n=null==r?void 0:r.featuredImage)||void 0===n?void 0:n.node)||void 0===i?void 0:i.sourceUrl)&&(0,u.jsx)(R.ID,Object.assign({href:r.uri||"#",passHref:!0},{children:(0,u.jsx)("a",{children:(0,u.jsx)(I.Q_,{alt:(null===(a=null===(o=null==r?void 0:r.featuredImage)||void 0===o?void 0:o.node)||void 0===a?void 0:a.altText)||"",ratio:"4:2",src:(null===(l=null===(s=null==r?void 0:r.featuredImage)||void 0===s?void 0:s.node)||void 0===l?void 0:l.sourceUrl)||""})})})),(0,u.jsx)(I.U0,{divider:!1,excludeAuthorLink:N,excludeCategoryLink:U,excludePublishDate:Q,post:r})]},r.databaseId)})}),en>1&&(0,u.jsx)(T.PT,{children:(0,u.jsx)(G.Z,{color:"primary",count:en,onChange:ei,page:Z.pageNum,renderItem:r=>(0,u.jsx)(W.Z,Object.assign({},r))})})]}))]}))})),(0,u.jsx)(J.Z,{})]}))}))}}],plural:{default:{name:ev,component:function(r){var n,i,o,a,s,l;let{authors:c,pagination:d}=r,{authors:h}=c,{authorSettings:p}=(0,eu.Z)();return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("h1",{children:"Author plural page"}),(0,u.jsx)("ul",{children:null===(i=null===(n=null==h?void 0:h.nodes)||void 0===n?void 0:n.filter(Z.Z))||void 0===i?void 0:i.map(r=>(0,u.jsx)("li",{children:(0,u.jsx)(ep.Z,Object.assign({href:r.uri||""},{children:r.name}))},r.databaseId))}),(0,u.jsx)(ef.Z,{allowChangeRowPerPage:!1,getPageUri:d.getPageUri,numberOfRows:(null===(a=null===(o=null==h?void 0:h.pageInfo)||void 0===o?void 0:o.offsetPagination)||void 0===a?void 0:a.total)||0,page:null!==(s=d.pageNum)&&void 0!==s?s:0,rowsPerPage:null!==(l=p.plural.perPage)&&void 0!==l?l:10})]})}}}},category:{templates:[{name:ev,component:ei}]},page:{templates:[{name:ev,component:eo},{name:"Wide",component:eo}],getTemplate:r=>{var n;if("/"===r.uri)return{name:"Homepage",component:ea};let i=(0,l.Z)(null===(n=null==r?void 0:r.postTemplate)||void 0===n?void 0:n.postTemplate,ev);return"Homepage"===i&&(i="Wide"),(0,s.OY)(ey,i)}},tag:{templates:[{name:ev,component:ec}]}},ShareImageButton:p,options:{disableDefaultBlocksStyles:{CoreImageBlock:!0},CoreImageBlock:{disableLightboxByDefault:!0},CoreEmbedBlock:{providers:{dailymotion:eg}}},blocks:{components:{AcfListArticleBlock:g.ZP,AcfProductCardBlock:v.Z,AcfProductTableBlock:y.Z,AcfRecipeBlock:b.ZP,AcfTopStoryBlock:x.Z,YoastFaqBlock:_.Z}}};var eb=ey},97131:function(r,n,i){"use strict";i.d(n,{UG:function(){return y},ZP:function(){return x},T:function(){return v}});var o=i(8423),a=i(36076),s=i(87462),l=i(56535),c=i(88606);function u(r){return null!==r&&"object"==typeof r&&r.constructor===Object}var d=i(46841),h=i.n(d),p=i(61572),f=i.n(p);let m="#325baf",g="#000000",v={palette:{primary:{main:m,light:(0,o.$n)(m,.95),dark:(0,o._j)(m,.3)},secondary:{main:g,light:(0,o.$n)(g,.95),dark:(0,o._j)(g,.3)},accent:{main:"#814791",light:"#E6D6EB",dark:"#341C3A",contrastText:"#fff"},text:{secondary:"#505050"}}},y=(r,n)=>{var i,o,d,h,p,f,m,g,v,y,b,x,_,w,S,T,E,k,C,P,O,j;let A={base:{primary:"".concat(n.base||n.sans,", '-apple-system', 'BlinkMacSystemFont', 'avenir next', 'avenir', 'segoe ui', 'helvetica neue', 'helvetica', 'Cantarell', 'Ubuntu', 'roboto', 'noto', 'arial', sans-serif")},sans:{primary:"".concat(n.sans,", '-apple-system', 'BlinkMacSystemFont', 'avenir next', 'avenir', 'segoe ui', 'helvetica neue', 'helvetica', 'Cantarell', 'Ubuntu', 'roboto', 'noto', 'arial', sans-serif")},serif:{primary:"".concat(n.serif,", 'Iowan Old Style', 'Apple Garamond', 'Baskerville', 'Times New Roman', 'Droid Serif', 'Times', 'Source Serif Pro', serif")}},M=(0,a.Z)({shape:{borderRadius:2},typography:{fontFamily:null===(i=A.base)||void 0===i?void 0:i.primary,fonts:A,h1:{fontSize:"2.441rem",lineHeight:1.3,fontWeight:700,letterSpacing:0,fontFamily:null===(o=A.serif)||void 0===o?void 0:o.primary},h2:{fontSize:"2.441rem",fontWeight:700,lineHeight:1.11,letterSpacing:0,fontFamily:null===(d=A.serif)||void 0===d?void 0:d.primary},h3:{fontSize:"1.953rem",fontWeight:700,lineHeight:1.2,letterSpacing:0,fontFamily:null===(h=A.serif)||void 0===h?void 0:h.primary},h4:{fontSize:"1.563rem",fontWeight:700,lineHeight:1.3,letterSpacing:0,fontFamily:null===(p=A.serif)||void 0===p?void 0:p.primary},h5:{fontSize:"1.25rem",fontWeight:700,lineHeight:1.3,letterSpacing:0,fontFamily:null===(f=A.serif)||void 0===f?void 0:f.primary},h6:{fontSize:"1.25rem",fontWeight:500,lineHeight:1.3,letterSpacing:0,fontFamily:null===(m=A.serif)||void 0===m?void 0:m.primary},paragraph:{fontSize:"1rem",fontWeight:400,lineHeight:1.7,letterSpacing:0,margin:void 0,fontFamily:null===(g=A.base)||void 0===g?void 0:g.primary},body1:{fontSize:"1rem",fontWeight:400,letterSpacing:0,fontFamily:null===(v=A.base)||void 0===v?void 0:v.primary},body2:{fontSize:"0.875rem",lineHeight:1.63,letterSpacing:0,fontFamily:null===(y=A.sans)||void 0===y?void 0:y.primary},button:{fontFamily:null===(b=A.base)||void 0===b?void 0:b.primary},caption:{color:null===(_=null===(x=r.palette)||void 0===x?void 0:x.text)||void 0===_?void 0:_.secondary,display:"block",fontSize:"0.875rem",letterSpacing:0,fontFamily:null===(w=A.sans)||void 0===w?void 0:w.primary},subtitle1:{color:null===(T=null===(S=r.palette)||void 0===S?void 0:S.text)||void 0===T?void 0:T.primary,fontSize:"1rem",fontStyle:"normal",fontWeight:700,lineHeight:1.3,letterSpacing:0,fontFamily:null===(E=A.sans)||void 0===E?void 0:E.primary},subtitle2:{color:null===(C=null===(k=r.palette)||void 0===k?void 0:k.text)||void 0===C?void 0:C.primary,fontFamily:null===(P=A.sans)||void 0===P?void 0:P.primary,fontSize:"0.875rem",lineHeight:1.63,fontWeight:700,letterSpacing:0},overline:{fontSize:"0.75rem",lineHeight:1.44,textTransform:"uppercase",letterSpacing:0,fontFamily:null===(O=A.sans)||void 0===O?void 0:O.primary},dropCap:{color:"inherit",float:"left",fontSize:"3.815rem",fontWeight:800,lineHeight:.675,margin:"4px 8px 0 0",letterSpacing:0,fontFamily:null===(j=A.base)||void 0===j?void 0:j.primary}},components:{MuiButton:{defaultProps:{disableElevation:!0,type:"button"}},MuiCssBaseline:{styleOverrides:"\n body {\n letter-spacing: 0;\n }\n "},MuiBreadcrumbs:{styleOverrides:{root:{letterSpacing:0}}}},modularScale:{steps:{[-3]:"10px",[-2]:"12px",[-1]:"14px",0:"16px",1:"1.250rem",2:"1.563rem",3:"1.953rem",4:"2.441rem",5:"3.052rem",6:"3.815rem"}}});return function(r,n={}){let{breakpoints:i=["sm","md","lg"],disableAlign:o=!1,factor:a=2,variants:u=["h1","h2","h3","h4","h5","h6","
229subtitle1","subtitle2","body1","body2","caption","button","overline"]}=n,d=(0,s.Z)({},r);d.typography=(0,s.Z)({},d.typography);let h=d.typography,p=(0,c.vs)(h.htmlFontSize),f=i.map(r=>d.breakpoints.values[r]);return u.forEach(r=>{let n=h[r],i=parseFloat(p(n.fontSize,"rem"));if(i<=1)return;let{lineHeight:u}=n;if(!(0,c.dA)(u)&&!o)throw Error((0,l.Z)(6));(0,c.dA)(u)||(u=parseFloat(p(u,"rem"))/parseFloat(i));let d=null;o||(d=r=>(0,c.LV)({size:r,grid:(0,c.vY)({pixels:4,lineHeight:u,htmlFontSize:h.htmlFontSize})})),h[r]=(0,s.Z)({},n,(0,c.ze)({cssProperty:"fontSize",min:1+(i-1)/a,max:i,unit:"rem",breakpoints:f,transform:d}))}),d}(function r(n,i){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},a=o.clone?(0,s.Z)({},n):n;return u(n)&&u(i)&&Object.keys(i).forEach(s=>{"__proto__"!==s&&(u(i[s])&&s in n&&u(n[s])?a[s]=r(n[s],i[s],o):a[s]=i[s])}),a}(M,r))},b=y(v,{base:"".concat(h().style.fontFamily),sans:"".concat(h().style.fontFamily),serif:"".concat(f().style.fontFamily)});var x=b},15195:function(r,n,i){"use strict";var o=i(85893),a=i(83321),s=i(67294),l=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&0>n.indexOf(o)&&(i[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)0>n.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(i[o[a]]=r[o[a]]);return i};let c=(0,s.forwardRef)((r,n)=>{var{children:i,color:s="primary",disableElevation:c=!0,disableRipple:u=!1,sx:d,variant:h="text"}=r,p=l(r,["children","color","disableElevation","disableRipple","sx","variant"]);return(0,o.jsx)(a.Z,Object.assign({ref:n,color:s,disableElevation:c,disableRipple:u,sx:d,variant:h},p,{children:i}))});n.Z=c},26544:function(r,n,i){"use strict";var o=i(85893),a=i(59471),s=i(15195),l=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&0>n.indexOf(o)&&(i[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)0>n.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(i[o[a]]=r[o[a]]);return i};let c=r=>{var{children:n,href:i,size:c="small",sx:u,variant:d="contained"}=r,h=l(r,["children","href","size","sx","variant"]);return(0,o.jsx)(a.Z,Object.assign({href:i||"#",passHref:!0},{children:(0,o.jsx)(s.Z,Object.assign({href:i||"",size:c,sx:Object.assign({borderRadius:"0px"},u),variant:d},h,{children:n}))}))};n.Z=c},55617:function(r,n,i){"use strict";i.d(n,{Z:function(){return V}});var o=i(85893),a=i(87357),s=i(83321),l=i(15861),c=i(23795),u=i(67720),d=i(2734),h=i(98396),p=i(48568),f=i(67294),m=i(43169),g=i(63098),v=i(93199),y=i(4298),b=i.n(y);let x=r=>{let{children:n,siteId:i}=r;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(b(),{"data-domain-script":i,id:"one-trust-head-import",src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",strategy:"afterInteractive",type:"text/javascript"},"one-trust-head-import"),(0,o.jsx)(b(),Object.assign({id:"one-trust-head-wrapper",strategy:"afterInteractive",type:"text/javascript"},{children:"\n function OptanonWrapper(){}\n "}),"one-trust-head-wrapper")]}),(0,o.jsx)("button",Object.assign({className:"ot-sdk-show-settings",id:"ot-sdk-btn",type:"button"},{children:n}),"one-trust-cookie-button")]})};var _=i(31548),w=i(50594),S=i(50657),T=i(93946),E=i(37645),k=i(6514),C=i(63366),P=i(87462),O=i(93680),j=i(94780),A=i(90948),M=i(71657),I=i(34867);function Z(r){return(0,I.ZP)("MuiDialogActions",r)}(0,i(1588).Z)("MuiDialogActions",["root","spacing"]);let R=["className","disableSpacing"],D=r=>{let{classes:n,disableSpacing:i}=r;return(0,j.Z)({root:["root",!i&&"spacing"]},Z,n)},L=(0,A.ZP)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[n.root,!i.disableSpacing&&n.spacing]}})(({ownerState:r})=>(0,P.Z)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!r.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}})),z=f.forwardRef(function(r,n){let i=(0,M.Z)({props:r,name:"MuiDialogActions"}),{className:a,disableSpacing:s=!1}=i,l=(0,C.Z)(i,R),c=(0,P.Z)({},i,{disableSpacing:s}),u=D(c);return(0,o.jsx)(L,(0,P.Z)({className:(0,O.Z)(u.root,a),ownerState:c,ref:n},l))});var B=i(99194);let F=r=>{let{buttonColor:n,buttonLabel:i="Newsletter",buttonSize:a="medium",buttonSx:l,buttonVariant:c="contained"}=r,[u,d]=(0,f.useState)(!1),h=(0,f.useCallback)(()=>{d(!0)},[]),p=(0,f.useCallback)(()=>{d(!1)},[]),m=(0,f.useMemo)(()=>"newsletterSignupFormId-".concat(Date.now()),[]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s.Z,Object.assign({color:n,disableElevation:!0,size:a,onClick:h,sx:l,variant:c},{children:i})),(0,o.jsxs)(S.Z,Object.assign({disableEscapeKeyDown:!0,open:u,onClose:p},{children:[(0,o.jsx)(T.Z,Object.assign({"aria-label":"close",onClick:p,sx:{position:"absolute",right:r=>{let{spacing:n}=r;return n(1)},top:r=>{let{spacing:n}=r;return n(1)},color:r=>{let{palette:n}=r;return n.grey[500]}}},{children:(0,o.jsx)(w.Z,{})})),(0,o.jsx)(E.Z,Object.assign({sx:{mr:3}},{children:"Subscribe to our newsletter!"})),(0,o.jsx)(k.Z,Object.assign({dividers:!0},{children:(0,o.jsx)(B.Z,{typographyColor:"text.primary",hideTitle:!0,formId:m})})),(0,o.jsx)(z,{children:(0,o.jsx)(s.Z,Object.assign({disableElevation:!0,form:m,type:"submit",variant:"contained"},{children:"Subscribe"}))})]}))]})};var N=i(61154);let U=r=>{var n;let{iconsSx:i,sx:y}=r,b=(0,d.Z)(),{data:w}=(0,m.Ny)(),S=(0,h.Z)(b.breakpoints.down("sm")),T=(0,h.Z)(b.breakpoints.down("md")),{copyright:E,footerLinks:k,logos:C,menus:{FOOTER_NAVIGATION:P},networks:O,newsletter:j}=(0,m.$Y)(),A=T?_.PT:a.Z;return(0,o.jsx)(a.Z,Object.assign({component:"footer",sx:(0,p.Z)({padding:T?"".concat(b.spacing(12)," ").concat(b.spacing(2)):b.spacing(12),backgroundColor:b.palette.secondary.dark,color:b.palette.primary.light,ul:{marginBlock:0,paddingInline:0},li:{listStyle:"none"},a:{color:b.palette.primary.light,textDecoration:"none",":hover":{':not([type="button"])':{textDecoration:"underline"}}}},y)},{children:(0,o.jsxs)(_.Pt,Object.assign({space:b.spacing(10)}
229,{children:[(0,o.jsxs)(_.sB,Object.assign({limit:S?1:2,space:b.spacing(10),threshold:"850px"},{children:[(0,o.jsx)(_.PT,Object.assign({andText:T},{children:(0,o.jsxs)(_.Pt,Object.assign({space:b.spacing(10),splitAfter:1},{children:[(0,o.jsxs)(_.Pt,Object.assign({space:b.spacing(3)},{children:[(null===(n=C.footer)||void 0===n?void 0:n.sourceUrl)?(0,o.jsx)(A,{children:(0,o.jsx)(s.Z,Object.assign({component:"a",href:"/"},{children:(0,o.jsx)("img",{alt:C.footer.altText||"",src:C.footer.sourceUrl,style:{maxWidth:160,width:"100%"}})}))}):null,O.length?(0,o.jsx)(A,{children:(0,o.jsx)(N.Z,{color:b.palette.primary.light,iconsSx:(0,p.Z)({border:"none",padding:1,borderRadius:"50%",svg:{color:b.palette.secondary.main}},i),networks:O,size:"inherit",spacing:2,variant:"filled"})}):null]})),(null==j?void 0:j.enabled)?(0,o.jsxs)(_.Pt,Object.assign({space:b.spacing(3)},{children:[(0,o.jsxs)(_.Pt,Object.assign({space:b.spacing(1)},{children:[(0,o.jsx)(l.Z,Object.assign({variant:"h6"},{children:null==j?void 0:j.title})),(0,o.jsx)(l.Z,{children:null==j?void 0:j.description})]})),(0,o.jsx)("div",{children:(null==j?void 0:j.directLink)?(0,o.jsx)(s.Z,Object.assign({color:"inherit",disableElevation:!0,size:"small",href:null==j?void 0:j.directLink,variant:"outlined"},{children:j.label||"Subscribe"})):(0,o.jsx)(F,{buttonColor:"inherit",buttonLabel:j.label||void 0,buttonSize:"small",buttonVariant:"outlined"})})]})):null]}))})),P.length?(0,o.jsx)(_.PT,Object.assign({andText:T},{children:(0,o.jsx)(_.sB,Object.assign({limit:S?1:P.length,space:b.spacing(4),threshold:"380px"},{children:P.map(r=>{var n;return(0,o.jsxs)(_.Pt,Object.assign({component:"ul",space:b.spacing(2)},{children:[(0,o.jsx)("li",{children:(0,o.jsx)("strong",{children:r.label})}),(0,o.jsx)(_.Pt,Object.assign({space:b.spacing(1)},{children:null===(n=r.children)||void 0===n?void 0:n.map(r=>(0,o.jsx)("li",{children:(0,o.jsx)(c.Z,Object.assign({component:v.ID,href:r.path||"#",target:r.target||"",legacyBehavior:!1},{children:r.label}))},r.id))}))]}),r.id)})}))})):(0,o.jsx)(o.Fragment,{})]})),k&&(0,o.jsx)(A,Object.assign({},T?{andText:!0}:{},{children:(0,o.jsxs)(_.Pt,Object.assign({space:"0.5rem"},{children:[(0,o.jsx)(_.sg,{children:k.map((r,n)=>(0,o.jsxs)(f.Fragment,{children:[(0,o.jsx)(l.Z,Object.assign({variant:"body2"},{children:"do_not_sell_my_info"===(0,g.Z)(null==r?void 0:r.type,"")&&(null==w?void 0:w.organicAds.oneTrustSiteId)?(0,o.jsx)(x,Object.assign({siteId:null==w?void 0:w.organicAds.oneTrustSiteId},{children:null==r?void 0:r.label})):(0,o.jsx)(v.ID,Object.assign({href:(null==r?void 0:r.url)||"#",target:(0,g.Z)(null==r?void 0:r.target,""),legacyBehavior:!1},{children:null==r?void 0:r.label}))})),n!==k.length-1&&(0,o.jsx)(u.Z,{orientation:"vertical",sx:{backgroundColor:b.palette.primary.light,height:"0.75rem",alignSelf:"center"},flexItem:!0})]},null==r?void 0:r.url))}),E&&(0,o.jsx)("small",{dangerouslySetInnerHTML:{__html:E}})]}))}))]}))}))};var V=U},42363:function(r,n,i){"use strict";var o=i(85893),a=i(98396),s=i(2734),l=i(87357),c=i(15861),u=i(23795),d=i(93199),h=i(31548),p=i(26544),f=i(864);let m=(r,n,i)=>{let o={md:(0,a.Z)(i.breakpoints.down("md")),sm:(0,a.Z)(i.breakpoints.down("sm"))};return n?o.sm?"4:5":o.md?"4:3":r:r},g=r=>{var n,i,a,g,v,y,b,x,_,w,S;let{image:T,initialRatio:E="16:9",post:k,responsiveRatio:C=!0}=r,P=(0,s.Z)(),O=m(E,C,P);return(0,o.jsxs)(l.Z,Object.assign({sx:{position:"relative",overflow:"hidden"},component:"article"},{children:[T||(0,o.jsx)(l.Z,Object.assign({sx:{":after":{content:'""',position:"absolute",inset:0,background:"linear-gradient(to top, black 20%, transparent 50%)"}}},{children:(0,o.jsx)(h.TB,Object.assign({ratio:O},{children:(0,o.jsx)(d.hr,{alt:(null===(i=null===(n=k.featuredImage)||void 0===n?void 0:n.node)||void 0===i?void 0:i.altText)||"",src:(null===(g=null===(a=k.featuredImage)||void 0===a?void 0:a.node)||void 0===g?void 0:g.sourceUrl)||""})}))})),(0,o.jsxs)(l.Z,Object.assign({sx:{position:"absolute",inset:0,display:"flex",flexDirection:"column",zIndex:1,color:"white",a:{color:"white",textDecoration:"none",":hover":{textDecoration:"underline"}}}},{children:[(0,o.jsx)(d.ID,Object.assign({passHref:!0,href:k.uri||"a"},{children:(0,o.jsx)(l.Z,{display:"flex",flexGrow:1,width:"100%",component:"a"})})),(0,o.jsx)(l.Z,Object.assign({sx:{marginTop:"auto",p:{xs:4,md:8}}},{children:(0,o.jsxs)(h.Pt,Object.assign({space:"0.75rem"},{children:[k.primaryCategory&&(0,o.jsx)("div",{children:(0,o.jsx)(p.Z,Object.assign({href:k.primaryCategory.uri||"",size:"small",color:"secondary",sx:{backgroundColor:"secondary.main",color:"secondary.c
229ontrastText",borderColor:"secondary.contrastText",borderStyle:"solid",borderWidth:"1px"}},{children:k.primaryCategory.name}))}),(0,o.jsxs)("div",{children:[(0,o.jsx)(d.ID,Object.assign({href:(null==k?void 0:k.uri)||"#",passHref:!0},{children:(0,o.jsx)(c.Z,Object.assign({"aria-label":(null==k?void 0:k.title)||"",component:"a",fontFamily:null===(y=null===(v=P.typography.fonts)||void 0===v?void 0:v.serif)||void 0===y?void 0:y.primary,variant:"h3"},{children:null==k?void 0:k.title}))})),(null==k?void 0:k.excerpt)&&(0,o.jsx)(c.Z,{"aria-label":(null==k?void 0:k.excerpt)||"",color:"white",component:"h4",dangerouslySetInnerHTML:{__html:k.excerpt},sx:{display:{xs:"none",sm:"block"},mt:1},variant:"subtitle1"})]}),(0,o.jsxs)(h.sg,Object.assign({align:"center"},{children:[(null===(x=null===(b=null==k?void 0:k.authorTags)||void 0===b?void 0:b.nodes)||void 0===x?void 0:x.length)?(0,o.jsx)(d.ID,Object.assign({href:(null===(_=null==k?void 0:k.authorTags.nodes[0])||void 0===_?void 0:_.uri)||"#",passHref:!0},{children:(0,o.jsx)(u.Z,Object.assign({"aria-label":(null===(w=null==k?void 0:k.authorTags.nodes[0])||void 0===w?void 0:w.name)||"",color:P.palette.primary.main,fontWeight:700,sx:{fontWeight:700,textTransform:"uppercase"},variant:"caption"},{children:null===(S=null==k?void 0:k.authorTags.nodes[0])||void 0===S?void 0:S.name}))})):null,(0,o.jsx)(f.Z,{date:k.date||"",modified:k.modified||"",showModifiedDate:(null==k?void 0:k.showModifiedDate)||!1,sx:{color:"common.white"}})]}))]}))}))]}))]}))};n.Z=g},99194:function(r,n,i){"use strict";i.d(n,{Z:function(){return D}});var o,a=i(85893),s=i(67976),l=i(2734),c=i(15861),u=i(50135),d=i(63366),h=i(87462),p=i(67294),f=i(93680),m=i(94780),g=i(98216),v=i(47167),y=i(74423),b=i(90948),x=i(34867),_=i(1588);function w(r){return(0,x.ZP)("MuiInputAdornment",r)}let S=(0,_.Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var T=i(71657);let E=["children","className","component","disablePointerEvents","disableTypography","position","variant"],k=(r,n)=>{let{ownerState:i}=r;return[n.root,n[`position${(0,g.Z)(i.position)}`],!0===i.disablePointerEvents&&n.disablePointerEvents,n[i.variant]]},C=r=>{let{classes:n,disablePointerEvents:i,hiddenLabel:o,position:a,size:s,variant:l}=r,c={root:["root",i&&"disablePointerEvents",a&&`position${(0,g.Z)(a)}`,l,o&&"hiddenLabel",s&&`size${(0,g.Z)(s)}`]};return(0,m.Z)(c,w,n)},P=(0,b.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:k})(({theme:r,ownerState:n})=>(0,h.Z)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(r.vars||r).palette.action.active},"filled"===n.variant&&{[`&.${S.positionStart}&:not(.${S.hiddenLabel})`]:{marginTop:16}},"start"===n.position&&{marginRight:8},"end"===n.position&&{marginLeft:8},!0===n.disablePointerEvents&&{pointerEvents:"none"})),O=p.forwardRef(function(r,n){let i=(0,T.Z)({props:r,name:"MuiInputAdornment"}),{children:s,className:l,component:u="div",disablePointerEvents:m=!1,disableTypography:g=!1,position:b,variant:x}=i,_=(0,d.Z)(i,E),w=(0,y.Z)()||{},S=x;x&&w.variant,w&&!S&&(S=w.variant);let k=(0,h.Z)({},i,{hiddenLabel:w.hiddenLabel,size:w.size,disablePointerEvents:m,position:b,variant:S}),O=C(k);return(0,a.jsx)(v.Z.Provider,{value:null,children:(0,a.jsx)(P,(0,h.Z)({as:u,ownerState:k,className:(0,f.Z)(O.root,l),ref:n},_,{children:"string"!=typeof s||g?(0,a.jsxs)(p.Fragment,{children:["start"===b?o||(o=(0,a.jsx)("span",{className:"notranslate",children:"â"})):null,s]}):(0,a.jsx)(c.Z,{color:"text.secondary",children:s})}))})});var j=i(93946),A=i(76798),M=i(21737),I=i(74236),Z=i(31548);let R=r=>{let{formId:n,hideTitle:i=!1,disclaimer:o,placeholder:d="Email address",successMessage:h="Thanks for joining!",title:f="Subscribe to our newsletter",typographyColor:m="inherit"}=r,g=(0,l.Z)(),{isLoading:v,mutate:y}=(0,I.Z)(),[b,x]=(0,p.useState)({open:!1,severity:"success",message:void 0}),[_,w]=(0,p.useState)(""),S=b.open&&"success"===b.severity,T=(0,p.useCallback)(()=>{x(r=>Object.assign(Object.assign({},r),{open:!1}))},[]),E=(0,p.useCallback)(r=>{r.preventDefault(),y({email:_},{onSuccess:r=>{let{newsletterSignup:n}=r,i=!0!==n.result;x({open:!0,severity:i?"error":"success",message:i?n.error||"There was an error. Please try again.":"Success"})}})},[y,_]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(Z.Pt,Object.assign({space:g.spacing(1)},{children:[!i&&(0,a.jsx)(c.Z,Object.assign({variant:"subtitle1",fontWeight:700,sx:{color:m}},{children:f})),S?(0,a.jsx)(c.Z,Object.assign({variant:"subtitle1",sx:{color:m}},{children:h})):(0,a.jsx)("form",Object.assign({id:n,onSubmit:E},{children:(0,a.jsxs)(Z.Pt,Object.assign({space:g.spacing(2)},{children:[(0,a.jsx)(u.Z,{placeholder:d,variant:"outlined",color:"info",sx:{maxWidth:346,width:"100%"},inputProps:{sx:{p:0}}
229,value:_,onChange:r=>w(r.target.value),disabled:v,InputProps:{sx:{bgcolor:"background.paper",pl:2,pr:1,py:1.75},endAdornment:(0,a.jsx)(O,Object.assign({position:"end"},{children:(0,a.jsx)(j.Z,Object.assign({"aria-label":"Submit",disabled:v,title:"Submit",type:"submit"},{children:(0,a.jsx)(s.Z,{})}))})),type:"email"}}),o&&(0,a.jsx)(c.Z,Object.assign({variant:"subtitle2",fontWeight:400,sx:{color:m}},{children:o}))]}))}))]})),(0,a.jsx)(A.Z,Object.assign({anchorOrigin:{horizontal:"right",vertical:"bottom"},open:b.open&&"error"===b.severity,autoHideDuration:5e3,onClose:T},{children:(0,a.jsx)(M.Z,Object.assign({onClose:T,severity:b.severity,variant:"filled",sx:{width:"100%"}},{children:b.message}))}))]})};var D=R},65517:function(r,n,i){"use strict";var o=i(85893),a=i(2734),s=i(87357),l=i(15861),c=i(83321),u=i(18705),d=i(31548),h=i(99194);let p=r=>{let{directLink:n,directLinkLabel:i,disclaimer:p,formTitle:f,image:m,imageAlt:g,placeholder:v,subtitle:y,successMessage:b,title:x}=r,_=(0,a.Z)();return(0,o.jsxs)(d.CT,Object.assign({contentMin:"50%",sideWidth:"max(37%, 330px)"},{children:[(0,o.jsx)(d.TB,Object.assign({ratio:{xs:"4:2",md:"4:3",lg:"4:2"}},{children:(0,o.jsx)(u.Z,{src:m,alt:g})})),(0,o.jsx)(s.Z,Object.assign({sx:{display:"flex",flexDirection:"column",bgcolor:"primary.main",color:"primary.contrastText","> :only-child":{flexGrow:"1"}}},{children:(0,o.jsx)(d.Po,Object.assign({padding:_.spacing(5)},{children:(0,o.jsxs)(d.Pt,Object.assign({space:_.spacing(2),splitAfter:1},{children:[(0,o.jsxs)(d.Pt,Object.assign({space:_.spacing(1)},{children:[(0,o.jsx)(l.Z,Object.assign({variant:"h2"},{children:x})),y&&(0,o.jsx)(l.Z,Object.assign({variant:"body1"},{children:y}))]})),n?(0,o.jsx)(s.Z,{children:(0,o.jsx)(c.Z,Object.assign({color:"inherit",disableElevation:!0,size:"large",href:n,variant:"outlined"},{children:i||"Subscribe"}))}):(0,o.jsx)(h.Z,{title:f,placeholder:v,successMessage:b,disclaimer:p})]}))}))}))]}))};n.Z=p},864:function(r,n,i){"use strict";var o=i(85893),a=i(15861),s=i(43169);let l=r=>{let{date:n,modified:i,showModifiedDate:l=!1,sx:c}=r,u=(0,s.wp)(i&&l?i:n),d=u.view.split(" "),h=d[0],p=d[1],f=d[2],m="".concat(d[3]," ").concat(d[4]),g=d[5];return(0,o.jsx)(a.Z,Object.assign({component:"time",dateTime:n,sx:Object.assign({color:"text.disabled"},c),variant:"caption"},{children:"".concat(l?"Updated":"Published"," ").concat(h," ").concat(p," ").concat(f," ").concat(m," ").concat(g)}))};n.Z=l},26215:function(r,n,i){"use strict";var o=i(85893),a=i(87357),s=i(15861),l=i(67720),c=i(31548),u=i(31377);let d=r=>{let{children:n,includeBottomBorder:i=!1,space:d="0",sx:h,title:p}=r,f=Boolean(h&&"object"==typeof h&&!Array.isArray(h)&&("bgcolor"in h&&h.bgcolor||"backgroundColor"in h&&h.backgroundColor||"background"in h&&h.background));return(0,o.jsxs)(a.Z,Object.assign({sx:Object.assign({pb:5},h)},{children:[(0,o.jsx)(u.Z,{}),(0,o.jsxs)(c.Pt,Object.assign({space:d},{children:[p&&(0,o.jsx)(s.Z,Object.assign({component:"div",sx:{ml:f?3:0,my:3},variant:"h4"},{children:p})),n]})),i&&(0,o.jsx)(l.Z,{sx:{borderWidth:r=>{let{spacing:n}=r;return n(.25)},borderColor:"primary.main",mt:2}})]}))};n.Z=d},31377:function(r,n,i){"use strict";var o=i(85893),a=i(67720),s=i(85165);let l=()=>{var r,n;let{options:i}=(0,s.Z)();return(0,o.jsx)(a.Z,{sx:{height:null!==(n=null===(r=null==i?void 0:i.SectionDivider)||void 0===r?void 0:r.height)&&void 0!==n?n:4,bgcolor:"secondary.main"}})};n.Z=l},61154:function(r,n,i){"use strict";var o=i(85893),a=i(26447),s=i(63098),l=i(93199);let c=r=>{let{color:n,className:i,customIcons:c,justifyContent:u,direction:d="row",iconsSx:h,networks:p,size:f="medium",variant:m,spacing:g={xs:1,md:2},sx:v}=r;return(0,o.jsx)(a.Z,Object.assign({className:i,component:"div",direction:d,justifyContent:u,spacing:g,sx:Object.assign({marginBlock:0,paddingInline:0,li:{listStyle:"none"}},v)},{children:null==p?void 0:p.filter(r=>null==r?void 0:r.url).map(r=>(0,o.jsx)(l.nE,{color:n,customIcon:null==c?void 0:c[(0,s.Z)(null==r?void 0:r.name,"").toLowerCase()],href:r.url||"",size:f,sx:h,type:(0,s.Z)(null==r?void 0:r.name,"").toLowerCase(),variant:m,openNewTab:!0},(0,s.Z)(null==r?void 0:r.name,""))||(0,o.jsx)(o.Fragment,{}))}))};n.Z=c},74114:function(r,n,i){"use strict";i.d(n,{ZP:function(){return S}});var o=i(85893),a=i(87357),s=i(15861),l=i(11163),c=i(67294),u=i(22350),d=i(77424),h=i(78529),p=i(40641),f=i(97924),m=i(80364).Z,g=i(51594),v=i(57865),y=v.OR,b=v.OR,x=v.mL,_=v.Eo;let w=r=>{var n,i;let{area:v,className:w,excludeCategoryId:S,firstPagePosts:T,frequency:E,layout:k,loadMoreLabel:C,postsCount:P,showLoadMore:O,title:j="Latest"}=r,A=(0,c.useMemo)(()=>{var r;return(null==T?void 0:T.pageInfo)?{pages:[{posts:{nodes:(null===(r=T.nodes)||void 0===r?void 0:r.filter(f.Z))||[],pageInfo:T.pageInfo}}],pageParams:[]}:void 0},[T]),{data:M}=(0,p.Z)(),{asPath:I}=(0,l.useRouter)(),{data:Z,fetchNextPage:R,hasNextPage:D,isFetchingNextPage:L}=(0,h.Z)(S.map(r=>r.toString()),Object.assign(Object.assign({},u.Yx),{first:P?parseInt(P,10):25}),A,(null==M?void 0:M.isHomepageRefeed)||"/"===I?{orderField:"MODIFIED",order:"DESC"}:void 0);if(!Z||(null===(n=null==Z?void 0:Z.pages)||void 0===n?void 0:n.length)===0)return(0,o.jsx)(o.Fragment,{});let z=null===(i=Z.pages)||void 0===i?void 0:i.map(r=>r.posts.nodes).flat(),B=Array.from(new Map(z.map(r=>[r.databaseId,r])).values());return(0,o.jsxs)(a.Z,Object.assign({className:w,"data-og-block-area":v,"data-og-block-nth":E,"data-og-block-type":g.Z.AcfListArticleBlock},{children:[(0,o.jsx)(d.dv,{}),(0,o.jsx)(s.Z,Object.assign({component:"h2",sx:{py:3},variant:"h5"},{children:j})),B.length>0?(0,o.jsxs)("div",{children:[(0,o.jsx)("div",Object.assign({"data-type":"latest-posts"},{children:(0,o.jsx)({"article-mix":x,"compact-article-gallery":y,"article-split":_,"article-feature-with-sidebar":b,"article-strip":x,"article-gallery":x,"article-grid":x,"single-article-feature":x}[k||"article-mix"]||x,{posts:B})})),O&&D&&(0,o.jsx)(a.Z,Object.assign({sx:{textAlign:"center",mt:2}},{children:(0,o.jsx)(d.zx,Object.assign({color:"secondary",disabled:L,onClick:()=>R(),variant:"contained"},{children:L?"Loading...":C||"Show more"}))}))]}):(0,o.jsx)(m,{title:"No articles found"})]}))};var S=w},51927:function(r,n,i){"use strict";i.d(n,{Z:function(){return J}});var o=i(85893),a=i(2734),s=i(87357),l=i(15861),c=i(63366),u=i(87462),d=i(67294),h=i(93680),p={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},f=i(94780),m=i(98216),g=i(27909),v=i(49299),y=i(39184),b=i(51705),x=i(82066),_=(0,x.Z)((0,o.jsx)("path",{d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star"),w=(0,x.Z)((0,o.jsx)("path",{d:"M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarBorder"),S=i(71657),T=i(90948),E=i(34867),k=i(1588);function C(r){return(0,E.ZP)("MuiRating",r)}let P=(0,k.Z)("MuiRating",["root","sizeSmall","sizeMedium","sizeLarge","readOnly","disabled","focusVisible","visuallyHidden","pristine","label","labelEmptyValueActive","
229icon","iconEmpty","iconFilled","iconHover","iconFocus","iconActive","decimal"]),O=["value"],j=["className","defaultValue","disabled","emptyIcon","emptyLabelText","getLabelText","highlightSelectedOnly","icon","IconContainerComponent","max","name","onChange","onChangeActive","onMouseLeave","onMouseMove","precision","readOnly","size","value"];function A(r,n){if(null==r)return r;let i=Math.round(r/n)*n;return Number(i.toFixed(function(r){let n=r.toString().split(".")[1];return n?n.length:0}(n)))}let M=r=>{let{classes:n,size:i,readOnly:o,disabled:a,emptyValueFocused:s,focusVisible:l}=r,c={root:["root",`size${(0,m.Z)(i)}`,a&&"disabled",l&&"focusVisible",o&&"readyOnly"],label:["label","pristine"],labelEmptyValue:[s&&"labelEmptyValueActive"],icon:["icon"],iconEmpty:["iconEmpty"],iconFilled:["iconFilled"],iconHover:["iconHover"],iconFocus:["iconFocus"],iconActive:["iconActive"],decimal:["decimal"],visuallyHidden:["visuallyHidden"]};return(0,f.Z)(c,C,n)},I=(0,T.ZP)("span",{name:"MuiRating",slot:"Root",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[{[`& .${P.visuallyHidden}`]:n.visuallyHidden},n.root,n[`size${(0,m.Z)(i.size)}`],i.readOnly&&n.readOnly]}})(({theme:r,ownerState:n})=>(0,u.Z)({display:"inline-flex",position:"relative",fontSize:r.typography.pxToRem(24),color:"#faaf00",cursor:"pointer",textAlign:"left",WebkitTapHighlightColor:"transparent",[`&.${P.disabled}`]:{opacity:(r.vars||r).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${P.focusVisible} .${P.iconActive}`]:{outline:"1px solid #999"},[`& .${P.visuallyHidden}`]:p},"small"===n.size&&{fontSize:r.typography.pxToRem(18)},"large"===n.size&&{fontSize:r.typography.pxToRem(30)},n.readOnly&&{pointerEvents:"none"})),Z=(0,T.ZP)("label",{name:"MuiRating",slot:"Label",overridesResolver:(r,n)=>n.label})(({ownerState:r})=>(0,u.Z)({cursor:"inherit"},r.emptyValueFocused&&{top:0,bottom:0,position:"absolute",outline:"1px solid #999",width:"100%"})),R=(0,T.ZP)("span",{name:"MuiRating",slot:"Icon",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[n.icon,i.iconEmpty&&n.iconEmpty,i.iconFilled&&n.iconFilled,i.iconHover&&n.iconHover,i.iconFocus&&n.iconFocus,i.iconActive&&n.iconActive]}})(({theme:r,ownerState:n})=>(0,u.Z)({display:"flex",transition:r.transitions.create("transform",{duration:r.transitions.duration.shortest}),pointerEvents:"none"},n.iconActive&&{transform:"scale(1.2)"},n.iconEmpty&&{color:(r.vars||r).palette.action.disabled})),D=(0,T.ZP)("span",{name:"MuiRating",slot:"Decimal",shouldForwardProp:r=>(0,T.Dz)(r)&&"iconActive"!==r,overridesResolver:(r,n)=>{let{iconActive:i}=r;return[n.decimal,i&&n.iconActive]}})(({iconActive:r})=>(0,u.Z)({position:"relative"},r&&{transform:"scale(1.2)"}));function L(r){let n=(0,c.Z)(r,O);return(0,o.jsx)("span",(0,u.Z)({},n))}function z(r){let{classes:n,disabled:i,emptyIcon:a,focus:s,getLabelText:l,highlightSelectedOnly:c,hover:p,icon:f,IconContainerComponent:m,isActive:v,itemValue:y,labelProps:b,name:x,onBlur:_,onChange:w,onClick:S,onFocus:T,readOnly:E,ownerState:k,ratingValue:C,ratingValueRounded:P}=r,O=c?y===C:y<=C,j=y<=p,A=y<=s,M=(0,g.Z)(),I=(0,o.jsx)(R,{as:m,value:y,className:(0,h.Z)(n.icon,O?n.iconFilled:n.iconEmpty,j&&n.iconHover,A&&n.iconFocus,v&&n.iconActive),ownerState:(0,u.Z)({},k,{iconEmpty:!O,iconFilled:O,iconHover:j,iconFocus:A,iconActive:v}),children:a&&!O?a:f});return E?(0,o.jsx)("span",(0,u.Z)({},b,{children:I})):(0,o.jsxs)(d.Fragment,{children:[(0,o.jsxs)(Z,(0,u.Z)({ownerState:(0,u.Z)({},k,{emptyValueFocused:void 0}),htmlFor:M},b,{children:[I,(0,o.jsx)("span",{className:n.visuallyHidden,children:l(y)})]})),(0,o.jsx)("input",{className:n.visuallyHidden,onFocus:T,onBlur:_,onChange:w,onClick:S,disabled:i,value:y,id:M,type:"radio",name:x,checked:y===P})]})}let B=(0,o.jsx)(_,{fontSize:"inherit"}),F=(0,o.jsx)(w,{fontSize:"inherit"});function N(r){return`${r} Star${1!==r?"s":""}`}let U=d.forwardRef(function(r,n){let i=(0,S.Z)({name:"MuiRating",props:r}),{className:s,defaultValue:l=null,disabled:p=!1,emptyIcon:f=F,emptyLabelText:m="Empty",getLabelText:x=N,highlightSelectedOnly:_=!1,icon:w=B,IconContainerComponent:T=L,max:E=5,name:k,onChange:C,onChangeActive:P,onMouseLeave:O,onMouseMove:R,precision:U=1,readOnly:V=!1,size:q="medium",value:$}=i,G=(0,c.Z)(i,j),W=(0,g.Z)(k),[H,X]=(0,v.Z)({controlled:$,default:l,name:"Rating"}),Y=A(H,U),K=(0,a.Z)(),[{hover:J,focus:Q},ee]=d.useState({hover:-1,focus:-1}),et=Y;-1!==J&&(et=J),-1!==Q&&(et=Q);let{isFocusVisibleRef:er,onBlur:en,onFocus:ei,ref:eo}
229=(0,y.Z)(),[ea,es]=d.useState(!1),el=d.useRef(),ec=(0,b.Z)(eo,el),eu=(0,b.Z)(ec,n),ed=r=>{var n;let i;R&&R(r);let o=el.current,{right:a,left:s}=o.getBoundingClientRect(),{width:l}=o.firstChild.getBoundingClientRect();i="rtl"===K.direction?(a-r.clientX)/(l*E):(r.clientX-s)/(l*E);let c=A(E*i+U/2,U);c=(n=c)<U?U:n>E?E:n,ee(r=>r.hover===c&&r.focus===c?r:{hover:c,focus:c}),es(!1),P&&J!==c&&P(r,c)},eh=r=>{O&&O(r),ee({hover:-1,focus:-1}),P&&-1!==J&&P(r,-1)},ep=r=>{let n=""===r.target.value?null:parseFloat(r.target.value);-1!==J&&(n=J),X(n),C&&C(r,n)},ef=r=>{(0!==r.clientX||0!==r.clientY)&&(ee({hover:-1,focus:-1}),X(null),C&&parseFloat(r.target.value)===Y&&C(r,null))},em=r=>{ei(r),!0===er.current&&es(!0);let n=parseFloat(r.target.value);ee(r=>({hover:r.hover,focus:n}))},eg=r=>{-1===J&&(en(r),!1===er.current&&es(!1),ee(r=>({hover:r.hover,focus:-1})))},[ev,ey]=d.useState(!1),eb=(0,u.Z)({},i,{defaultValue:l,disabled:p,emptyIcon:f,emptyLabelText:m,emptyValueFocused:ev,focusVisible:ea,getLabelText:x,icon:w,IconContainerComponent:T,max:E,precision:U,readOnly:V,size:q}),ex=M(eb);return(0,o.jsxs)(I,(0,u.Z)({ref:eu,onMouseMove:ed,onMouseLeave:eh,className:(0,h.Z)(ex.root,s),ownerState:eb,role:V?"img":null,"aria-label":V?x(et):null},G,{children:[Array.from(Array(E)).map((r,n)=>{let i=n+1,a={classes:ex,disabled:p,emptyIcon:f,focus:Q,getLabelText:x,highlightSelectedOnly:_,hover:J,icon:w,IconContainerComponent:T,name:W,onBlur:eg,onChange:ep,onClick:ef,onFocus:em,ratingValue:et,ratingValueRounded:Y,readOnly:V,ownerState:eb},s=i===Math.ceil(et)&&(-1!==J||-1!==Q);if(U<1){let r=Array.from(Array(1/U));return(0,o.jsx)(D,{className:(0,h.Z)(ex.decimal,s&&ex.iconActive),ownerState:eb,iconActive:s,children:r.map((n,s)=>{let l=A(i-1+(s+1)*U,U);return(0,o.jsx)(z,(0,u.Z)({},a,{isActive:!1,itemValue:l,labelProps:{style:r.length-1===s?{}:{width:l===et?`${(s+1)*U*100}%`:"0%",overflow:"hidden",position:"absolute"}}}),l)})},i)}return(0,o.jsx)(z,(0,u.Z)({},a,{isActive:s,itemValue:i}),i)}),!V&&!p&&(0,o.jsxs)(Z,{className:(0,h.Z)(ex.label,ex.labelEmptyValue),ownerState:eb,children:[(0,o.jsx)("input",{className:ex.visuallyHidden,value:"",id:`${W}-empty`,type:"radio",name:W,checked:null==Y,onFocus:()=>ey(!0),onBlur:()=>ey(!1),onChange:ep}),(0,o.jsx)("span",{className:ex.visuallyHidden,children:m})]})]}))});var V=i(40641),q=i(93166),$=i(18705),G=i(6410),W=i(97543),H=i(28902),X=i(22949),Y=i(15195);let K=r=>{let{amazonLink:n,award:i,buttonLabel:c,description:u,imageAlt:d,imageSrc:h,rating:p,showRating:f=!1,sx:m,title:g}=r,v=(0,a.Z)(),{data:y}=(0,V.Z)();return(0,o.jsxs)(s.Z,Object.assign({sx:m},{children:[(0,o.jsxs)(s.Z,Object.assign({bgcolor:"white"},{children:[i?(0,o.jsx)(s.Z,Object.assign({bgcolor:v.palette.secondary.main,px:3,py:2},{children:(0,o.jsx)(l.Z,Object.assign({color:v.palette.secondary.contrastText,fontWeight:"bold",textAlign:"center",textTransform:"uppercase",variant:"body1"},{children:i}))})):(0,o.jsx)(o.Fragment,{}),(0,o.jsx)(G.Z,Object.assign({padding:v.spacing(5)},{children:(0,o.jsx)(W.Z,Object.assign({max:"320px"},{children:(0,o.jsxs)(X.Z,Object.assign({space:v.spacing(5)},{children:[(0,o.jsx)("a",Object.assign({href:n||"",rel:"noopener noreferrer nofollow sponsored",title:(0,q.Z)(g)},{children:(0,o.jsx)(H.Z,Object.assign({ratio:"1:1"},{children:(0,o.jsx)($.Z,{alt:d,src:h})}))})),(0,o.jsx)(W.Z,{children:(0,o.jsx)(Y.Z,Object.assign({disabled:!n,href:n,variant:"contained"},{children:c||(null==y?void 0:y.ctaButtonLabel)||"Check Latest Price"}))}),f?(0,o.jsx)(W.Z,{children:(0,o.jsx)(U,{disabled:!p,name:p?"read-only":"disabled",precision:.5,size:"large",value:p||null,readOnly:!0})}):(0,o.jsx)(o.Fragment,{})]}))}))}))]})),(0,o.jsx)(s.Z,Object.assign({bgcolor:v.palette.secondary.main,color:v.palette.secondary.contrastText,padding:3},{children:(0,o.jsxs)(X.Z,Object.assign({space:v.spacing(3)},{children:[(0,o.jsx)(l.Z,Object.assign({component:"h3",variant:"h3"},{children:(0,o.jsx)(s.Z,Object.assign({color:v.palette.getContrastText(v.palette.secondary.main),component:"a",href:n||"",rel:"sponsored nofollow noopener noreferrer",sx:{textDecoration:"none"}},{children:(0,q.Z)(g)}))})),(0,o.jsxs)(X.Z,Object.assign({space:v.spacing(1)},{children:[(0,o.jsx)(l.Z,Object.assign({fontWeight:"bold",variant:"paragraph"},{children:"Summary"})),(0,o.jsx)(l.Z,{dangerouslySetInnerHTML:{__html:u},"data-rawhtml":"1","data-testid":"description",variant:"paragraph"})]}))]}))}))]}))};var J=K},5077:function(r,n,i){"use strict";var o=i(85893),a=i(2734),s=i(87357),l=i(7906),c=i(53184),u=i(53816),d=i(53252),h=i(15861),p=i(295),f=i(8423),m=i(93967),g=i.n(m),v=i(85454),y=i(68192),b=i(51594),x=i(51927);let _=r=>{let{area:n,className:i,data:m,frequency:_,image:w}=r,S=(0,a.Z)();if(!m)return(0,o.jsx)(o.Fragment,{});let T=m.product_name||m.empire_pc_title||"",E=m.empire_pc_direct_image_alt||(null==w?void 0:w.altText)||T,k=m.empire_pc_direct_image_url||(null==w?void 0:w.sourceUrl),C=m.empire_pc_amazon_link,P=(0,v.Z)(m,"pros"),O=(0,v.Z)(m,"cons");return(0,o.jsx)(s.Z,Object.assign({className:g()(i,"acf-product-card-block"),"data-og-block-area":n,"data-og-block-nth":_,"data-og-block-type":b.Z.AcfProductCardBlock,id:(0,y.Z)(T)},{children:(0,o.jsxs)(s.Z,Object.assign({border:"1px solid ".concat(S.palette.secondary.main),borderBottom:"8px solid ".concat(S.palette.secondary.main),margin:"auto",maxWidth:"700px"},{children:[(0,o.jsx)(x.Z,{amazonLink:C,award:m.empire_pc_award,buttonLabel:m.empire_pc_button_label,description:m.empire_pc_description,imageAlt:E,imageSrc:k,title:T}),O.length||P.length?(0,o.jsxs)(l.Z,Object.assign({"aria-label":"".concat(T,"'s Product Table"),sx:{"th, td":{width:"50%",padding:2}}},{children:[(0,o.jsx)(c.Z,{children:(0,o.jsxs)(u.Z,{children:[O.length?(0,o.jsx)(d.Z,Object.assign({align:"left",sx:{backgroundColor:S.palette.secondary.main,opacity:.9}},{children:(0,o.jsx)(h.Z,Object.assign({color:S.palette.secondary.c
229ontrastText,fontWeight:"bold",textTransform:"uppercase",variant:"paragraph"},{children:"Pros"}))})):(0,o.jsx)(o.Fragment,{}),P.length?(0,o.jsx)(d.Z,Object.assign({align:"left",sx:{backgroundColor:S.palette.secondary.main,opacity:.8}},{children:(0,o.jsx)(h.Z,Object.assign({color:S.palette.secondary.contrastText,fontWeight:"bold",textTransform:"uppercase",variant:"paragraph"},{children:"Cons"}))})):(0,o.jsx)(o.Fragment,{})]})}),(0,o.jsx)(p.Z,Object.assign({sx:{backgroundColor:S.palette.secondary.light}},{children:Array(Math.max(P.length,O.length)).fill("").map((r,n)=>{var i,a;return(0,o.jsxs)(u.Z,Object.assign({sx:{"&:last-child td, &:last-child th":{border:0}}},{children:[(0,o.jsx)(d.Z,Object.assign({component:"th",scope:"row",sx:{borderColor:(0,f._j)(S.palette.secondary.light,.2),backgroundColor:(0,f._j)(S.palette.secondary.light,.1)}},{children:(0,o.jsx)(h.Z,Object.assign({variant:"paragraph"},{children:(null===(i=P[n])||void 0===i?void 0:i.value)||""}))})),(0,o.jsx)(d.Z,Object.assign({component:"th",scope:"row",sx:{borderColor:(0,f._j)(S.palette.secondary.light,.2)}},{children:(0,o.jsx)(h.Z,Object.assign({variant:"paragraph"},{children:(null===(a=O[n])||void 0===a?void 0:a.value)||""}))}))]}),n)})}))]})):(0,o.jsx)(o.Fragment,{})]}))}))};n.Z=_},9988:function(r,n,i){"use strict";var o=i(85893),a=i(2734),s=i(87357),l=i(15861),c=i(98396),u=i(8423),d=i(51594),h=i(80645),p=i(22949),f=i(51927);let m=r=>{let{bodyMinHeight:n=200,content:i,sx:c,title:u}=r,d=(0,a.Z)();return(0,o.jsx)(s.Z,Object.assign({sx:c},{children:i?(0,o.jsxs)(s.Z,{children:[(0,o.jsx)(s.Z,Object.assign({bgcolor:d.palette.secondary.main,p:2,sx:{opacity:.9}},{children:(0,o.jsx)(l.Z,Object.assign({color:d.palette.secondary.contrastText,fontWeight:"bold",textTransform:"uppercase",variant:"paragraph"},{children:u}))})),(0,o.jsx)(s.Z,Object.assign({p:2,sx:{ul:{paddingInlineStart:2,marginBlockStart:0,marginBlockEnd:0},minHeight:{md:"".concat(n,"px")}}},{children:(0,o.jsx)(l.Z,{component:"div",dangerouslySetInnerHTML:{__html:i},"data-rawhtml":"1",variant:"paragraph"})}))]}):(0,o.jsx)(o.Fragment,{})}))},g=r=>{let{area:n,className:i,data:l,frequency:g,items:v}=r,y=(0,a.Z)(),b=(0,c.Z)(y.breakpoints.up("md")),x=null==l?void 0:l.reduce((r,n)=>{var i;return Math.max(r,null===(i=String(null==n?void 0:n.pros))||void 0===i?void 0:i.length)},0),_=null==l?void 0:l.reduce((r,n)=>{var i;return Math.max(r,null===(i=String(null==n?void 0:n.cons))||void 0===i?void 0:i.length)},0);return(0,o.jsx)(s.Z,Object.assign({border:"0.5px solid ".concat(y.palette.secondary.main),borderBottom:"8px solid ".concat(y.palette.secondary.main),className:i,"data-og-block-area":n,"data-og-block-nth":g,"data-og-block-type":d.Z.AcfProductTableBlock,maxWidth:"1000px",mx:"auto"},{children:(0,o.jsx)(h.Z,Object.assign({min:b?"279px":"700px",space:"0"},{children:null==l?void 0:l.map((r,n)=>{var i;let a=(null==r?void 0:r.link)||"",l=null===(i=null==v?void 0:v[n])||void 0===i?void 0:i.image,c=(null==l?void 0:l.sourceUrl)||r.image_url,d=r.rating&&parseFloat(r.rating)>=0?parseFloat(r.rating):0;return(0,o.jsx)(s.Z,Object.assign({bgcolor:n%2!=0?(0,u._j)(y.palette.secondary.main,.1):y.palette.secondary.main,border:"0.5px solid ".concat(y.palette.secondary.main)},{children:(0,o.jsxs)(p.Z,Object.assign({space:"0",splitAfter:1},{children:[(0,o.jsx)(f.Z,{amazonLink:a,award:r.award,buttonLabel:r.button_label,description:r.summary,imageAlt:(null==l?void 0:l.altText)||r.image_alt||r.product_name,imageSrc:c,rating:d>10?5:d/2,sx:{"> div:nth-child(2)":{backgroundColor:n%2!=0?(0,u._j)(y.palette.secondary.main,.1):""}},title:r.product_name,showRating:!0}),(0,o.jsxs)(s.Z,Object.assign({bgcolor:y.palette.secondary.light},{children:[(0,o.jsx)(m,{bodyMinHeight:x,content:r.pros,sx:{"div:nth-child(1)":{"> div:nth-child(1)":{backgroundColor:n%2!=0?(0,u._j)(y.palette.secondary.main,.1):""},"> div:nth-child(2)":{backgroundColor:n%2!=0?(0,u._j)(y.palette.secondary.light,.1):""}}},title:"Pros"}),(0,o.jsx)(m,{bodyMinHeight:_,content:r.cons,sx:{"div:nth-child(1)":{"> div:nth-child(1)":{backgroundColor:n%2!=0?(0,u._j)(y.palette.secondary.main,.1):""},"> div:nth-child(2)":{backgroundColor:n%2!=0?(0,u._j)(y.palette.secondary.light,.1):""}}},title:"Cons"})]}))]}))}),r.product_name)})}))}))};n.Z=g},28954:function(r,n,i){"use strict";var o=i(85893),a=i(2734),s=i(87357),l=i(15861),c=i(93967),u=i.n(c),d=i(4298),h=i.n(d),p=i(67294),f=i(5438),m=i(97924),g=i(51594),v=i(31548);let y=function(){for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return n.filter(m.Z).reduce((r,n)=>{var i,o,a;let{days:s,hours:l,minutes:c}=r,u=Number(null!==(i=n.minutes)&&void 0!==i?i:"0")+c,d=Number(null!==(o=n.hours)&&void 0!==o?o:"0")+l+Math.floor(u/60),h=Number(null!==(a=n.days)&&void 0!==a?a:"0")+s+Math.floor(d/24);return{days:h,hours:d%24,minutes:u%60}},{days:0,hours:0,minutes:0})},b=r=>r&&r.replace(/(<(\/)?[ol|li|ul]([^>]+)>)/gi,""),x=r=>{if(!r)return r;let n={"1/4":"\xbc","1/2":"\xbd","3/4":"\xbe","1/7":"â
","1/9":"â
","1/10":"â
","1/3":"â
","2/3"
229:"â
","1/5":"â
","2/5":"â
","3/5":"â
","4/5":"â
","1/6":"â
","5/6":"â
","1/8":"â
","3/8":"â
","5/8":"â
","7/8":"â
"},i=r.trim();return i in n?n[i]:r},_=r=>{if(!r)return null;let n={days:"D",hours:"H",minutes:"M"},i=Object.keys(n).reduce((i,o)=>{if(!(o in r))return i;let a=r[o],s=n[o];return[...i,"".concat(a||0).concat(s)]},[]).join("");return"PT".concat(i)},w=function(r){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return r?"".concat(r," ").concat(n).trim():""},S=r=>{var n,i,o,a;return{"@context":"https://schema.org/","@type":"Recipe",name:r.name,image:r.image?[r.image]:[],author:{"@type":"Person",name:r.author},datePublished:r.pub_date,description:(0,f.Z)((null===(n=r.description)||void 0===n?void 0:n.trim())||""),prepTime:_(r.prep_time),cookTime:_(r.cook_time),totalTime:_(y(r.cook_time,r.prep_time)),keywords:r.keywords,recipeYield:r.serves,recipeCategory:r.category,recipeCuisine:r.cuisine,suitableForDiet:(null===(i=null==r?void 0:r.suitable_for_diet)||void 0===i?void 0:i.length)?null==r?void 0:r.suitable_for_diet.map(r=>"https://schema.org/".concat(r)):void 0,nutrition:{"@type":"NutritionInformation",calories:w(r.nutrition,"calories"),carbohydrateContent:w(r.carbohydrate_content,"grams"),cholesterolContent:w(r.cholesterol_content,"milligrams"),fatContent:w(r.fat_content,"grams"),fiberContent:w(r.fiber_content,"grams"),proteinContent:w(r.protein_content,"grams"),saturatedFatContent:w(r.saturated_fat_content,"grams"),servingSize:w(r.serving_size),sodiumContent:w(r.sodium_content,"grams"),sugarContent:w(r.sugar_content,"grams"),transFatContent:w(r.trans_fat_content,"grams"),unsaturatedFatContent:w(r.unsaturated_fat_content,"grams")},recipeIngredient:null===(o=r.ingredients)||void 0===o?void 0:o.flatMap(r=>{var n,i;return null!==(i=null===(n=null==r?void 0:r.items)||void 0===n?void 0:n.filter(m.Z).map(r=>{let{ingredient:n,measurement:i,quantity:o}=r;return"".concat(o," ").concat(i," ").concat(n)}).filter(m.Z))&&void 0!==i?i:[]}),recipeInstructions:null===(a=r.instructions)||void 0===a?void 0:a.filter(m.Z).map(r=>{let{name:n,text:i}=r;return{"@type":"HowToStep",name:n,text:i}})}},T=r=>{var n,i,c,d,f,y,_,w,T,E,k,C,P,O,j,A,M,I,Z,R,D,L,z,B,F,N,U,V,q,$,G,W,H;let{area:X,className:Y,frequency:K,recipe:J}=r,Q=(0,a.Z)(),ee=(0,p.useMemo)(()=>{if(!J)return null;try{return JSON.stringify(S(J),null,2)}catch(r){console.error(r)}return null},[J]);if(!J)return(0,o.jsx)(o.Fragment,{});let et=(null===(i=null===(n=null==J?void 0:J.chicory)||void 0===n?void 0:n.button)||void 0===i?void 0:i.useCustomStyle)?{displayPrint:"none",my:"20px","#chicory-default-btn":{background:null===(d=null===(c=null==J?void 0:J.chicory)||void 0===c?void 0:c.button)||void 0===d?void 0:d.background,border:0,borderRadius:null===(y=null===(f=null==J?void 0:J.chicory)||void 0===f?void 0:f.button)||void 0===y?void 0:y.borderRadius,color:null===(w=null===(_=null==J?void 0:J.chicory)||void 0===_?void 0:_.button)||void 0===w?void 0:w.color,cursor:"pointer",fontFamily:"Source Sans Pro, Helvetica, Arial, sans-serif",fontSize:"".concat(null===(E=null===(T=null==J?void 0:J.chicory)||void 0===T?void 0:T.button)||void 0===E?void 0:E.fontSize,"px"),height:"".concat(null===(C=null===(k=null==J?void 0:J.chicory)||void 0===k?void 0:k.button)||void 0===C?void 0:C.height,"px"),padding:"0 15px",textTransform:"uppercase",width:"".concat(null===(O=null===(P=null==J?void 0:J.chicory)||void 0===P?void 0:P.button)||void 0===O?void 0:O.width,"px")},".chicory-button-container a":{display:"block"},"@media print":{display:"none"}}:{};return(0,o.jsxs)(o.Fragment,{children:[ee&&(0,o.jsx)(h(),{dangerouslySetInnerHTML:{__html:ee},id:"".concat(J.name,"-schema"),type:"application/ld+json"},J.name),(0,o.jsxs)(s.Z,Object.assign({className:u()(Y,"recipe-block"),"data-og-block-area":X,"data-og-block-nth":K,"data-og-block-type":g.Z.AcfRecipeBlock},{children:[(null===(j=null==J?void 0:J.chicory)||void 0===j?void 0:j.adsInjEnabled)&&(0,o.jsx)(h(),{id:"chicory-script",src:"//www.chicoryapp.com/widget_v2/",defer:!0}),(0,o.jsx)(s.Z,Object.assign({bgcolor:Q.palette.primary.dark,p:3},{children:(0,o.jsx)(l.Z,Object.assign({color:Q.palette.common.white,component:"h2",variant:"h5"},{children:J.name||"Recipe"}))})),(0,o.jsxs)(v.Pt,{children:[(0,o.jsx)(s.Z,Object.assign({bgcolor:Q.palette.primary.light,px:3,py:5},{children:(0,o.jsxs)(v.Pt,Object.assign({space:Q.spacing(4)},{children:[(0,o.jsxs)(v.sg,Object.assign({space:Q.spacing(5)},{children:[J.serves&&(0,o.jsxs)(v.Pt,Object.assign({space:Q.spacing(1)},{children:[(0,o.jsx)(l.Z,Object.assign({color:Q.palette.primary.dark,variant:"overline"},{children:"Serves"})),(0,o.jsx)(l.Z,Object.assign({fontFamily:null===(M=null===(A=Q.typography.fonts)||void 0===A?void 0:A.serif)||void 0===M?void 0:M.primary,variant:"h6"},{children:J.serves}))]})),J.prep_time&&(J.prep_time.days||J.prep_time.hours||J.prep_time.minutes)&&(0,o.jsxs)(v.Pt,Object.assign({space:Q.spacing(1)},{children:[(0,o.jsx)(l.Z,Object.assign({color:Q.palette.primary.dark,variant:"overline"},{children:"Prep Time:"})),J.prep_time.days&&(0,o.jsx)(l.Z,Object.assign({fontFamily:null===(Z=null===(I=Q.typography.fonts)||void 0===I?void 0:I.serif)||void 0===Z?void 0:Z.primary,fontWeight:600,variant:"body1"},{children:"".concat(J.prep_time.days," ").concat("1"===J.prep_time.days?"day":"days")})),J.prep_time.hours&&(0,o.jsx)(l.Z,Object.assign({fontFamily:null===(D=null===(R=Q.typography.fonts)||void 0===R?void 0:R.serif)||void 0===D?void 0:D.primary,fontWeight:600,variant:"body1"},{children:"".concat(J.prep_time.hours," ").concat("1"===J.prep_time.hours?"hour":"hours")})),J.prep_time.minutes&&(0,o.jsx)(l.Z,Object.assign({fontFamily:null===(z=null===(L=Q.typography.fonts)||void 0===L?void 0:L.serif)||void 0===z?void 0:z.primary,fontWeight:600,variant:"body1"},{children:"".concat(J.prep_time.minutes," minutes")}))]})),J.cook_time&&(J.cook_time.days||J.cook_time.hours||J.cook_time.minutes)&&(0,o.jsxs)(v.Pt,Object.assign({space:Q.spacing(1)},{children:[(0,o.jsx)(l.Z,Object.assign({color:Q.palette.primary.dark,variant:"overline"},{children:"Cooking Time:"})),J.cook_time.days&&(0,o.jsx)(l.Z,Object.assign({fontFamily:null===(F=null===(B=Q.typography.fonts)||void 0===B?void 0:B.serif)||void 0===F?void 0:F.primary,fontWeight:600,variant:"body1"},{children:"".concat(J.cook_time.days," ").concat("1"===J.cook_time.days?"day":"days")})),J.cook_time.hours&&(0,o.jsx)(l.Z,Object.assign({fontFamily:null===(U=null===(N=Q.typography.fonts)||void 0===N?void 0:N.serif)||void 0===U?void 0:U.primary,fontWeight:600,variant:"body1"},{children:"".concat(J.cook_time.hours," ").concat("1"===J.cook_time.hours?"hour":"hours")})),J.cook_time.minutes&&(0,o.jsx)(l.Z,Object.assign({fontFamily:null===(q=null===(V=Q.typography.fonts)||void 0===V?void 0:V.serif)||void 0===q?void 0:q.primary,fontWeight:600,variant:"body1"},{children:"".concat(J.cook_time.minutes," minutes")}))]}))]})),!!(null===($=null==J?void 0:J.ingredients)||void 0===$?void 0:$.length)&&(0,o.jsxs)(v.Pt,{children:[(0,o.jsx)(l.Z,Object.assign({borderBottom:"2px s
229olid ".concat(Q.palette.primary.main),color:Q.palette.primary.main,component:"h2",pb:2,variant:"h6"},{children:"Ingredients"})),(0,o.jsx)(s.Z,Object.assign({id:(null===(G=null==J?void 0:J.chicory)||void 0===G?void 0:G.adsInjEnabled)?"recipe":void 0},{children:J.ingredients.filter(m.Z).map((r,n)=>{var i,a;return(0,o.jsx)("div",{children:!!(null===(i=r.items)||void 0===i?void 0:i.length)&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s.Z,Object.assign({component:"ul",id:(null===(a=null==J?void 0:J.chicory)||void 0===a?void 0:a.adsInjEnabled)?"recipe-ingredients":void 0,sx:{margin:0,padding:0,marginLeft:3,li:{position:"relative"},"li::marker":{color:Q.palette.primary.main},"li:last-child":{mb:0}}},{children:r.items.filter(m.Z).map(r=>[r.quantity?x(r.quantity.trim()):null,r.measurement,r.ingredient].filter(m.Z).join(" ")).filter(Boolean).map((r,n)=>(0,o.jsx)(l.Z,{component:"li",dangerouslySetInnerHTML:{__html:r},sx:{paddingLeft:.5}},"".concat(r||"text","-").concat(n)))})),(0,o.jsx)(s.Z,{className:"chicory-order-ingredients",sx:et})]})},"".concat(r.title||"title","-").concat(n))})}))]})]}))})),Boolean(null===(W=J.instructions)||void 0===W?void 0:W.length)&&(0,o.jsxs)(v.Pt,Object.assign({space:Q.spacing(5)},{children:[(0,o.jsx)(l.Z,Object.assign({color:Q.palette.common.black,component:"h2",sx:{mb:3,pb:2,borderBottom:"2px solid ".concat(Q.palette.primary.main)},variant:"h6"},{children:"Directions"})),(0,o.jsx)(s.Z,Object.assign({component:"ol",sx:{margin:0,padding:0,listStylePosition:"outside",listStyle:"none"}},{children:(0,o.jsx)(v.Pt,Object.assign({component:"li",space:Q.spacing(5)},{children:null===(H=J.instructions)||void 0===H?void 0:H.map((r,n)=>(0,o.jsxs)(v.Pt,Object.assign({space:Q.spacing(2)},{children:[(0,o.jsx)("div",{children:(0,o.jsx)(l.Z,Object.assign({variant:"subtitle1"},{children:"Step ".concat(n+1)}))}),(0,o.jsx)("div",{children:(0,o.jsx)(l.Z,{component:"p",dangerouslySetInnerHTML:{__html:(null==r?void 0:r.text)?b(null==r?void 0:r.text):""},variant:"paragraph"})})]}),"".concat((null==r?void 0:r.name)||"instruction","-").concat(n)))}))}))]}))]})]}))]})};n.ZP=T},77485:function(r,n,i){"use strict";var o=i(85893),a=i(87357),s=i(51594),l=i(42363);let c=r=>{let{area:n,className:i,frequency:c,post:u}=r;return(0,o.jsx)(a.Z,Object.assign({className:i,"data-og-block-area":n,"data-og-block-nth":c,"data-og-block-type":s.Z.AcfTopStoryBlock},{children:(0,o.jsx)(l.Z,{post:u})}))};n.Z=c},45797:function(r,n,i){"use strict";var o=i(85893),a=i(49287),s=i(65517);let l=()=>{var r,n,i,l,c,u,d;let{newsletter:h}=(0,a.Z)();if(!(null==h?void 0:h.enabled))return null;let p=null!==(n=null===(r=h.background)||void 0===r?void 0:r.sourceUrl)&&void 0!==n?n:void 0;return(0,o.jsx)(s.Z,{title:null!==(i=h.title)&&void 0!==i?i:void 0,subtitle:null!==(l=h.description)&&void 0!==l?l:void 0,imageAlt:null!==(u=null===(c=h.background)||void 0===c?void 0:c.altTxt)&&void 0!==u?u:void 0,disclaimer:null!==(d=h.disclaimer)&&void 0!==d?d:void 0,image:p,directLink:h.directLink||void 0,directLinkLabel:h.label||void 0})};n.Z=l},89336:function(r,n,i){"use strict";var o=i(85893),a=i(26447),s=i(67720),l=i(15861),c=i(93967),u=i.n(c),d=i(51594),h=i(26215);let p=r=>{let{area:n,className:i,frequency:c,questions:p}=r;return(0,o.jsx)(a.Z,Object.assign({className:u()(i,"faq"),"data-og-block-area":n,"data-og-block-nth":c,"data-og-block-type":d.Z.YoastFaqBlock},{children:(0,o.jsxs)(h.Z,Object.assign({title:"FAQ",includeBottomBorder:!0},{children:[(0,o.jsx)(s.Z,{}),(0,o.jsx)(a.Z,Object.assign({spacing:2,sx:{mt:2.5,mb:1}},{children:p.map(r=>{let{id:n,jsonAnswer:i,jsonQuestion:s}=r;return(0,o.jsx)(a.Z,Object.assign({id:n,spacing:2},{children:(0,o.jsxs)("div",{children:[(0,o.jsx)(l.Z,{component:"h3",dangerouslySetInnerHTML:{__html:s},"data-rawhtml":"1",variant:"subtitle1",gutterBottom:!0}),(0,o.jsx)(l.Z,{dangerouslySetInnerHTML:{__html:i},"data-rawhtml":"1",variant:"body1"})]})}),n)})}))]}))}))};n.Z=p},43098:function(r,n,i){"use strict";i.d(n,{OF:function(){return o.Z}}),i(74114),i(5077),i(9988),i(28954),i(77485);var o=i(45797);i(85893),i(93967),i(236),i(51594),i(89336)},77424:function(r,n,i){"use strict";i.d(n,{fW:function(){return A},Oo:function(){return ei},zx:function(){return eo.Z},TB:function(){return es},Q_:function(){return k},yM:function(){return eu},S1:function(){return eA},U0:function(){return w},Lj:function(){return eI},l2:function(){return rT},$Z:function(){return rC},$0:function(){return S.Z},dv:function(){return rP.Z},Vp:function(){return rB}});var o=i(85893),a=i(2734),s=i(87357),l=i(31548),c=i(23795),u=i(15861),d=i(93166),h=i(59471),p=i(26544),f=i(864);let m=r=>{var n,i,m,g,v;let{excludeAuthorLink:y=!1,excludeCategoryLink:b=!1,excludePublishDate:x=!1,post:_,showExcerpt:w=!1,sx:S}=r,T=(0,a.Z)();return(0,o.jsx)(s.Z,Object.assign({sx:S}
229,{children:(0,o.jsxs)(l.Pt,Object.assign({space:"0.5rem"},{children:[_.primaryCategory&&!b&&(0,o.jsx)("div",{children:(0,o.jsx)(p.Z,Object.assign({href:_.primaryCategory.uri||"",size:"small",variant:"contained",sx:{backgroundColor:"secondary.main",color:"secondary.contrastText"}},{children:_.primaryCategory.name}))}),(null==_?void 0:_.title)&&(0,o.jsx)("div",{children:(0,o.jsx)(h.Z,Object.assign({href:(null==_?void 0:_.uri)||"#",passHref:!0},{children:(0,o.jsx)(c.Z,{color:"inherit",dangerouslySetInnerHTML:{__html:_.title},fontFamily:null===(i=null===(n=T.typography.fonts)||void 0===n?void 0:n.serif)||void 0===i?void 0:i.primary,underline:"hover",variant:"h3"})}))}),w&&(null==_?void 0:_.excerpt)&&(0,o.jsx)("div",{children:(0,o.jsx)(u.Z,Object.assign({"aria-label":(null==_?void 0:_.excerpt)||"",sx:{color:"text.secondary",display:{xs:"none",sm:"block"}},variant:"subtitle1"},{children:(0,d.Z)(null==_?void 0:_.excerpt)}))}),(0,o.jsxs)(l.sg,Object.assign({align:"center"},{children:[(null==_?void 0:_.contributors)&&_.contributors.length>0&&!y&&(0,o.jsx)(h.Z,Object.assign({href:(null===(m=_.contributors[0])||void 0===m?void 0:m.authorTag.uri)||"#",passHref:!0},{children:(0,o.jsx)(c.Z,Object.assign({"aria-label":(null===(g=_.contributors[0])||void 0===g?void 0:g.authorTag.name)||"",fontWeight:700,variant:"overline",sx:{color:"secondary.main"},underline:"hover"},{children:null===(v=_.contributors[0])||void 0===v?void 0:v.authorTag.name}))})),"upda",!x&&(0,o.jsx)(f.Z,{date:_.date||"",modified:_.modified||"",showModifiedDate:Boolean(null==_?void 0:_.showModifiedDate)||!1,sx:{color:"text.secondary"}})]}))]}))}))};var g=i(93199),v=i(96592),y=i.n(v);let b=r=>{var n,i,l,h,p,f,m,v;let{divider:b=!0,excludeAuthorLink:x=!1,excludeCategoryLink:_=!1,post:w,showExcerpt:S=!1,sx:T}=r,E=(0,a.Z)();return(0,o.jsxs)(s.Z,Object.assign({sx:Object.assign({pb:2,position:"relative",maxWidth:555,mt:1,a:{textDecoration:"none",cursor:"pointer",":hover":{textDecoration:"underline"}},":after":b?{content:'""',background:r=>{let{palette:n}=r;return n.primary.main},position:"absolute",bottom:0,left:0,height:"2px",width:r=>{let{spacing:n}=r;return n(3)},opacity:"0.2"}:{}},T)},{children:[(null===(n=null==w?void 0:w.primaryCategory)||void 0===n?void 0:n.name)&&!_&&(0,o.jsx)(g.ID,Object.assign({href:(null==w?void 0:w.primaryCategory.uri)||"#",passHref:!0},{children:(0,o.jsx)(c.Z,Object.assign({"aria-label":null===(i=null==w?void 0:w.primaryCategory)||void 0===i?void 0:i.name,sx:{fontWeight:700,color:"secondary.main"},variant:"overline"},{children:null===(l=null==w?void 0:w.primaryCategory)||void 0===l?void 0:l.name}))})),(null==w?void 0:w.title)&&(0,o.jsx)(g.ID,Object.assign({href:(null==w?void 0:w.uri)||"#",passHref:!0},{children:(0,o.jsx)(c.Z,{"aria-label":w.title,color:"inherit",className:[y().LineClamp,y()["LineClamp-3"]].join(" "),dangerouslySetInnerHTML:{__html:w.title},sx:{fontFamily:null===(p=null===(h=E.typography.fonts)||void 0===h?void 0:h.serif)||void 0===p?void 0:p.primary},variant:"h5"})})),S&&(null==w?void 0:w.excerpt)&&(0,o.jsx)(u.Z,Object.assign({sx:{color:"inherit",my:.5}},{children:(0,d.Z)(w.excerpt)})),(null==w?void 0:w.contributors)&&w.contributors.length>0&&!x&&(0,o.jsx)(g.ID,Object.assign({href:(null===(f=w.contributors[0])||void 0===f?void 0:f.authorTag.uri)||"#",passHref:!0},{children:(0,o.jsx)(c.Z,Object.assign({"aria-label":(null===(m=w.contributors[0])||void 0===m?void 0:m.authorTag.name)||"",variant:"overline",sx:{color:"secondary.main"}},{children:null===(v=w.contributors[0])||void 0===v?void 0:v.authorTag.name}))}))]}))};var x=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&0>n.indexOf(o)&&(i[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)0>n.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(i[o[a]]=r[o[a]]);return i};let _=r=>{var{size:n="md"}=r,i=x(r,["size"]);return"lg"===n?(0,o.jsx)(m,Object.assign({},i)):(0,o.jsx)(b,Object.assign({},i))};var w=_,S=i(26215),T=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&0>n.indexOf(o)&&(i[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)0>n.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(i[o[a]]=r[o[a]]);return i};let E=r=>{var{caption:n,credit:i,loading:a="lazy",ratio:s="16:9",space:c="0"}=r,d=T(r,["caption","credit","loading","ratio","space"]);return(0,o.jsxs)(l.Pt,Object.assign({space:c}
229,{children:[(0,o.jsx)(l.TB,Object.assign({ratio:s},{children:(0,o.jsx)(g.hr,Object.assign({loading:a},d))})),(n||i)&&(0,o.jsxs)(u.Z,Object.assign({sx:{px:2,py:1},variant:"caption",component:"div"},{children:[n&&(0,o.jsx)("span",{dangerouslySetInnerHTML:{__html:n}}),i&&(0,o.jsx)("i",{children:i})]}))]}))};var k=E;function C(r){var n,i;let{gallery:c,sx:u}=r,d=(0,a.Z)(),p=null!==(i=null===(n=null==c?void 0:c.posts)||void 0===n?void 0:n.length)&&void 0!==i?i:0;if(null===c||0===p)return null;let{posts:f,title:m}=c,g=(0,o.jsx)(o.Fragment,{children:f.map(r=>{var n;return r.uri?(0,o.jsx)(s.Z,Object.assign({sx:{maxWidth:555}},{children:(0,o.jsxs)(l.Pt,{children:[(null===(n=r.image)||void 0===n?void 0:n.sourceUrl)&&(0,o.jsx)(h.Z,Object.assign({href:r.uri,passHref:!0},{children:(0,o.jsx)("a",Object.assign({title:r.title},{children:(0,o.jsx)(k,{alt:r.image.altText||r.title,ratio:"1:1",src:r.image.sourceUrl||""})}))})),(0,o.jsx)(w,{size:"md",post:Object.assign(Object.assign({},r.post),{title:r.title})})]})}),r.id):null})});return(0,o.jsx)(S.Z,Object.assign({sx:u,title:m},{children:(0,o.jsx)(l.Pt,{children:(0,o.jsx)(l.Me,Object.assign({space:d.spacing(3)},{children:g}))})}))}var P=i(97924);let O=r=>{var n,i;return null==r?null:{title:r.title||"Recommended Stories",posts:null!==(i=null===(n=r.posts)||void 0===n?void 0:n.filter(P.Z).map(r=>{var n,i,o,a,s,l,c,u;let{post:d,title:h}=r;return null===d?null:{id:d.databaseId.toString(),uri:null!==(n=d.uri)&&void 0!==n?n:void 0,title:null!==(i=null!=h?h:d.title)&&void 0!==i?i:"",image:{sourceUrl:null!==(s=null===(a=null===(o=d.featuredImage)||void 0===o?void 0:o.node)||void 0===a?void 0:a.sourceUrl)&&void 0!==s?s:void 0,altText:null!==(u=null===(c=null===(l=d.featuredImage)||void 0===l?void 0:l.node)||void 0===c?void 0:c.altText)&&void 0!==u?u:void 0},post:d}}).filter(P.Z))&&void 0!==i?i:[]}},j=(r,n)=>({title:r||"Related Stories",posts:n.map(r=>{var n,i,o,a,s,l,c,u;return{id:r.databaseId.toString(),uri:null!==(n=r.uri)&&void 0!==n?n:void 0,title:null!==(i=r.title)&&void 0!==i?i:"",image:{sourceUrl:null!==(s=null===(a=null===(o=r.featuredImage)||void 0===o?void 0:o.node)||void 0===a?void 0:a.sourceUrl)&&void 0!==s?s:void 0,altText:null!==(u=null===(c=null===(l=r.featuredImage)||void 0===l?void 0:l.node)||void 0===c?void 0:c.altText)&&void 0!==u?u:void 0},post:r}})});function A(r){var n,i;let{excludeAuthorLink:c=!1,excludeCategoryLink:u=!1,post:d,relatedStoriesTitle:h=""}=r,p=(0,a.Z)(),f=O(d.recommendedPosts),m=j(h||"Related Stories",d.relatedStories),g=null!==(n=null==f?void 0:f.posts.length)&&void 0!==n?n:0,v=null!==(i=null==m?void 0:m.posts.length)&&void 0!==i?i:0;return 0===g&&0===v?null:0===v||0===g?(0,o.jsx)(C,{gallery:0===v?f:m,sx:{borderBottom:"4px solid ".concat(p.palette.secondary.main)}}):(0,o.jsxs)(l.CT,Object.assign({contentMin:"60%",sideWidth:"290px",side:"right",space:p.spacing(5)},{children:[(0,o.jsx)(C,{gallery:f}),(0,o.jsx)(S.Z,Object.assign({title:null==m?void 0:m.title,sx:{borderBottom:"4px solid ".concat(p.palette.secondary.main)}},{children:(0,o.jsx)(l.Pt,{children:(0,o.jsx)(s.Z,Object.assign({px:p.spacing(3)},{children:(0,o.jsx)(l.Me,Object.assign({space:p.spacing(3)},{children:d.relatedStories.map(r=>r.title&&r.uri?(0,o.jsx)(w,{excludeAuthorLink:c,excludeCategoryLink:u,post:r,divider:!0},r.id):(0,o.jsx)(o.Fragment,{}))}))}))})}))]}))}var M=i(87462),I=i(63366),Z=i(67294);i(59864);var R=i(93680),D=i(94780),L=i(90948),z=i(71657),B=i(8423),F=i(82066),N=(0,F.Z)((0,o.jsx)("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),U=i(82607);let V=(0,L.ZP)(U.Z)(({theme:r})=>(0,M.Z)({display:"flex",marginLeft:`calc(${r.spacing(1)} * 0.5)`,marginRight:`calc(${r.spacing(1)} * 0.5)`},"light"===r.palette.mode?{backgroundColor:r.palette.grey[100],color:r.palette.grey[700]}:{backgroundColor:r.palette.grey[700],color:r.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":(0,M.Z)({},"light"===r.palette.mode?{backgroundColor:r.palette.grey[200]}:{backgroundColor:r.palette.grey[600]}),"&:active":(0,M.Z)({boxShadow:r.shadows[0]},"light"===r.palette.mode?{backgroundColor:(0,B._4)(r.palette.grey[200],.12)}:{backgroundColor:(0,B._4)(r.palette.grey[600],.12)})})),q=(0,L.ZP)(N)({width:24,height:16});var $=function(r){return(0,o.jsx)("li",{children:(0,o.jsx)(V,(0,M.Z)({focusRipple:!0},r,{ownerState:r,children:(0,o.jsx)(q,{ownerState:r})}))})},G=i(34867),W=i(1588);function H(r){return(0,G.ZP)("MuiBreadcrumbs",r)}let X=(0,W.Z)("MuiBreadcrumbs",["root","ol","li","separator"]),Y=["children","className","component","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],K=r=>{let{classes:n}=r;return(0,D.Z)({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},H,n)},J=(0,L.ZP)(u.Z,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(r,n)=>[{[`& .${X.li}`]:n.li},n.root]})({}),Q=(0,L.ZP)("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(r,n)=>n.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),ee=(0,L.ZP)("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(r,n)=>n.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8}),et=Z.forwardRef(function(r,n){var i,a;let s=(0,z.Z)({props:r,name:"MuiBreadcrumbs"}),{children:l,className:c,component:u="nav",expandText:d="Show path",itemsAfterCollapse:h=1,itemsBeforeCollapse:p=1,maxItems:f=8,separator:m="/"}=s,g=(0,I.Z)(s,Y),[v,y]=Z.useState(!1),b=(0,M.Z)({},s,{component:u,expanded:v,expandText:d,itemsAfterCollapse:h,itemsBeforeCollapse:p,maxItems:f,separator:m}),x=K(b),_=Z.useRef(null),w=Z.Children.toArray(l).filter(r=>Z.isValidElement(r)).map((r,n)=>(0,o.jsx)("li",{className:x.li,children:r},`child-${n}`));return(0,o.jsx)(J,(0,M.Z)({ref:n,component:u,color:"text.secondary",className:(0,R.Z)(x.root,c),ownerState:b},g,{children:(0,o.jsx)(Q,{className:x.ol,ref:_,ownerState:b,children:(i=v||f&&w.length<=f?w:(r=>{let n=()=>{y(!0);let r=_.current.querySelector("a[href],button,[tabindex]");r&&r.focus()};return p+h>=r.length?r:[...r.slice(0,p),(0,o.jsx)($,{"aria-label":d,onClick:n},"ellipsis"),...r.slice(r.length-h,r.length)]})(w),a=x.separator,i.reduce((r,n,s)=>
229(s<i.length-1?r=r.concat(n,(0,o.jsx)(ee,{"aria-hidden":!0,className:a,ownerState:b,children:m},`separator-${s}`)):r.push(n),r),[]))})}))});var er=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&0>n.indexOf(o)&&(i[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)0>n.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(i[o[a]]=r[o[a]]);return i};let en=r=>{var{breadcrumbs:n,sx:i}=r,a=er(r,["breadcrumbs","sx"]);return(0,o.jsx)(et,Object.assign({"aria-label":"breadcrumb",sx:i},a,{children:n.map(r=>(0,o.jsx)(g.ID,Object.assign({href:r.url||"#",passHref:!0},{children:(0,o.jsx)(c.Z,Object.assign({sx:{color:"text.secondary"},underline:"hover",variant:"body2"},{children:(0,d.Z)(r.text)}))}),r.url))}))};var ei=en,eo=i(15195);let ea=r=>{var n,i,a,c;let{aspectRatio:u="4/5",excludeAuthorLink:d=!1,excludeCategoryLink:h=!1,hasImageLazyLoad:p=!0,post:f,showExcerpt:m=!1,sx:v}=r;return(0,o.jsx)(s.Z,Object.assign({component:"article",sx:Object.assign({position:"relative",a:{textDecoration:"none",cursor:"pointer",":hover":{textDecoration:"underline"}},img:{transition:r=>r.transitions.create(["transform"],{duration:r.transitions.duration.complex,easing:r.transitions.easing.easeInOut})},":hover":{img:{transform:"scale(1.05)"}},":after":{background:"linear-gradient(to top, black 15%, transparent 50%)",content:'""',inset:0,position:"absolute"}},v)},{children:(0,o.jsxs)(s.Z,Object.assign({sx:{aspectRatio:u}},{children:[(0,o.jsx)(l.TB,Object.assign({ratio:u},{children:(0,o.jsx)(g.hr,{loading:p?"lazy":"eager",alt:(null===(i=null===(n=f.featuredImage)||void 0===n?void 0:n.node)||void 0===i?void 0:i.altText)||"",src:(null===(c=null===(a=f.featuredImage)||void 0===a?void 0:a.node)||void 0===c?void 0:c.sourceUrl)||""})})),(0,o.jsxs)(s.Z,Object.assign({sx:{color:"white",display:"flex",flexDirection:"column",inset:0,position:"absolute",zIndex:1,a:{color:"white",textDecoration:"none",":hover":{textDecoration:"underline"}}}},{children:[(0,o.jsx)(g.ID,Object.assign({href:f.uri||"",passHref:!0},{children:(0,o.jsx)(s.Z,{display:"flex",flexGrow:1,width:"100%",component:"a"})})),(0,o.jsx)(s.Z,Object.assign({sx:{marginTop:"auto",p:3}},{children:(0,o.jsx)(w,{excludeAuthorLink:d,excludeCategoryLink:h,post:f,sx:{pb:0},showExcerpt:m})}))]}))]}))}))};var es=ea,el=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&0>n.indexOf(o)&&(i[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)0>n.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(i[o[a]]=r[o[a]]);return i};let ec=(0,Z.forwardRef)((r,n)=>{var{children:i}=r,a=el(r,["children"]);return(0,o.jsx)(U.Z,Object.assign({ref:n,sx:{display:"block"}},a,{children:i}))});var eu=ec;function ed(r){return(0,G.ZP)("MuiAvatar",r)}i(55617);let eh=(0,W.Z)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);var ep=(0,F.Z)((0,o.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");let ef=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],em=r=>{let{classes:n,variant:i,colorDefault:o}=r;return(0,D.Z)({root:["root",i,o&&"colorDefault"],img:["img"],fallback:["fallback"]},ed,n)},eg=(0,L.ZP)("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[n.root,n[i.variant],i.colorDefault&&n.colorDefault]}})(({theme:r,ownerState:n})=>(0,M.Z)({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:r.typography.fontFamily,fontSize:r.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},"rounded"===n.variant&&{borderRadius:(r.vars||r).shape.borderRadius},"square"===n.variant&&{borderRadius:0},n.colorDefault&&(0,M.Z)({color:(r.vars||r).palette.background.default},r.vars?{backgroundColor:r.vars.palette.Avatar.defaultBg}:{backgroundColor:"light"===r.palette.mode?r.palette.grey[400]:r.palette.grey[600]}))),ev=(0,L.ZP)("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(r,n)=>n.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),ey=(0,L.ZP)(ep,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(r,n)=>n.fallback})({width:"75%",height:"75%"}),eb=Z.forwardRef(function(r,n){let i=(0,z.Z)({props:r,name:"MuiAvatar"}),{alt:a,children:s,className:l,component:c="div",imgProps:u,sizes:d,src:h,srcSet:p,variant:f="circular"}=i,m=(0,I.Z)(i,ef),g=null,v=function({crossOrigin:r,referrerPolicy:n,src:i,srcSet:o}){let[a,s]=Z.useState(!1);return Z.useEffect(()=>{if(!i&&!o)return;s(!1);let a=!0,l=new Image;return l.onload=()=>{a&&s("loaded")},l.onerror=()=>{a&&s("error")},l.crossOrigin=r,l.referrerPolicy=n,l.src=i,o&&(l.srcset=o),()=>{a=!1}},[r,n,i,o]),a}((0,M.Z)({},u,{src:h,srcSet:p})),y=h||p,b=y&&"error"!==v,x=(0,M.Z)({},i,{colorDefault:!b,component:c,variant:f}),_=em(x);return g=b?(0,o.jsx)(ev,(0,M.Z)({alt:a,src:h,srcSet:p,sizes:d,ownerState:x,className:_.img},u)):null!=s?s:y&&a?a[0]:(0,o.jsx)(ey,{className:_.fallback}),(0,o.jsx)(eg,(0,M.Z)({as:c,ownerState:x,className:(0,R.Z)(_.root,l),ref:n},m,{children:g}))});function ex(r){return(0,G.ZP)("MuiAvatarGroup",r)}let e_=(0,W.Z)("MuiAvatarGroup",["root","avatar"]),ew=["children","className","componentsProps","max","spacing","total","variant"],eS={small:-16,medium:null},eT=r=>{let{classes:n}=r;return(0,D.Z)({root:["root"],avatar:["avatar"]},ex,n)},eE=(0,L.ZP)("div",{name:"MuiAvatarGroup",slot:"Root",overridesResolver:(r,n)=>(0,M.Z)({[`& .${e_.avatar}`]:n.avatar},n.root)})(({theme:r})=>({[`& .${eh.root}`]:{border:`2px solid ${(r.vars||r).palette.background.default}`,boxSizing:"content-box",marginLeft:-8,"&:last-child":{marginLeft:0}},display:"flex",flexDirection:"row-reverse"})),ek=(0,L.ZP)(eb,{name:"MuiAvatarGroup",slot:"Avatar",overridesResolver:(r,n)=>n.avatar})(({theme:r})=>({border:`2px solid ${(r.vars||r).palette.background.default}`,boxSizing:"content-box",marginLeft:-8,"&:last-child":{marginLeft:0}})),eC=Z.forwardRef(function(r,n){var i,a;let s=(0,z.Z)({props:r,name:"MuiAvatarGroup"}),{children:l,className:c,componentsProps:u={},max:d=5,spacing:h="medium",total:p,variant:f="circular"}=s,m=(0,I.Z)(s,ew),g=d<2?2:d,v=(0,M.Z)({},s,{max:d,spacing:h,variant:f}),y=eT(v),b=Z.Children.toArray(l).filter(r=>Z.isValidElement(r)),x=p||b.length;x===g&&(g+=1),g=Math.min(x+1,g);let _=Math.min(b.length,g-1),w=Math.max(x-g,x-_,0),S=h&&void 0!==eS[h]?eS[h]:-h;return(0,o.jsxs)(eE,(0,M.Z)({ownerState:v,className:(0,R.Z)(y.root,c),ref:n},m,{children:[w?(0,o.jsxs)(ek,(0,M.Z)({ownerState:v,variant:f},u.additionalAvatar,{className:(0,R.Z)(y.avatar,null==(i=u.additionalAvatar)?void 0:i.className),style:(0,M.Z)({marginLeft:S},null==(a=u.additionalAvatar)?void 0:a.style),children:["+",w]})):null,b.slice(0,_).reverse().map((r,n)=>Z.cloneElement(r,{className:(0,R.Z)(r.props.className,y.avatar),style:(0,M.Z)({marginLeft:n===_-1?void 0:S},r.props.style),variant:r.props.variant||f}))]}))});var eP=i(49287);let eO=r=>{let{align:n="center",contributors:i,sx:a}=r,d="center"===n,h=d?l.Pt:l.sg,p=d?l.PT:s.Z,{authorSettings:f}=(0,eP.Z)(),m=f.customBylines&&i.length>1;return(0,o.jsx)(u.Z,Object.assign({sx:Object.assign({textTransform:"uppercase"},a),variant:"subtitle2"},{children:(0,o.jsxs)(h,Object.assign({},d?{}:{align:"center"},{children:[(0,o.jsx)(p,{children:(0,o.jsx)(eC,Object.assign({max:4},{children:i.map(r=>{var n,i,a;return(0,o.jsx)(eb,{alt:r.authorTag.name||"",src:(null===(a=null===(i=null===(n=r.authorTag.author)||void 0===n?void 0:n.authorAvatar)||void 0===i?void 0:i.node)||void 0===a?void 0:a.sourceUrl)||""},r.authorTag.databaseId)})}))}),(0,o.jsx)(s.Z,Object.assign({sx:{textAlign:n,mt:r=>{let{spacing:n}=r;return"".concat(n(.5)," !important")}}},{children:i.map((r,n)=>
229(0,o.jsxs)(s.Z,Object.assign({sx:{display:"inline-block"}},{children:[m&&(0,o.jsxs)("span",{children:[r.label,"\xa0"]}),(0,o.jsx)(g.ID,Object.assign({href:r.authorTag.uri||"#",passHref:!0},{children:(0,o.jsx)(c.Z,Object.assign({sx:{color:"secondary.main"},underline:"hover"},{children:r.authorTag.name}))})),n!==i.length-1&&(0,o.jsx)(s.Z,Object.assign({component:"span",sx:{mx:.5}},{children:"/"}))]}),r.authorTag.databaseId))}))]}))}))},ej=r=>{let{align:n="center",breadcrumbs:i=!1,includeBreadcrumbs:c=!0,includeCategoryTags:d=!0,post:h}=r,m=(0,a.Z)(),g="center"===n,v=g?l.PT:s.Z,y=g?l.Pt:l.sg,b=(0,Z.useMemo)(()=>{let r=(c||i)&&h.breadcrumbs&&h.breadcrumbs.length>0;if(r&&h.breadcrumbs){let r=[...h.breadcrumbs];return r.unshift({text:"Home",url:"/"}),r.pop(),r}return null},[i,c,h.breadcrumbs]);return(0,o.jsx)(v,Object.assign({},g?{andText:!0}:{},{children:(0,o.jsxs)(l.Pt,Object.assign({space:i?m.spacing(5):0},{children:[b&&(0,o.jsx)(ei,{breadcrumbs:b,sx:{mb:8}}),(0,o.jsxs)(l.Pt,Object.assign({space:m.spacing(2)},{children:[h.primaryCategory&&d&&(0,o.jsx)("div",{children:(0,o.jsx)(p.Z,Object.assign({href:h.primaryCategory.uri||"",size:"small",sx:{mb:2,backgroundColor:"secondary.main",color:"secondary.contrastText"}},{children:h.primaryCategory.name}))}),(0,o.jsx)(u.Z,{dangerouslySetInnerHTML:{__html:h.title},variant:"h1"}),h.excerpt&&(0,o.jsx)(u.Z,Object.assign({component:"h2",sx:{color:"text.secondary",fontFamily:r=>{var n,i;let{typography:o}=r;return null===(i=null===(n=o.fonts)||void 0===n?void 0:n.sans)||void 0===i?void 0:i.primary},maxWidth:"88%",alignSelf:n,mt:2},variant:"h6"},{children:h.excerpt})),(0,o.jsx)(v,{children:(0,o.jsxs)(y,Object.assign({space:g?m.spacing(1):m.spacing(2)},g?{}:{align:"center"},{children:[h.contributors.length>0&&(0,o.jsx)(eO,{align:n,contributors:h.contributors}),(0,o.jsx)(f.Z,{date:h.date,modified:h.modified,showModifiedDate:h.showModifiedDate||!1})]}))})]}))]}))}))};var eA=ej;i(42363);let eM=r=>{var n,i;let{hasImageLazyLoad:u=!0,post:d,sx:h}=r,p=(0,a.Z)();return(0,o.jsx)(s.Z,Object.assign({component:"article",sx:Object.assign({maxWidth:"555px"},h)},{children:(0,o.jsxs)(l.CT,Object.assign({side:"left",sideWidth:"100px",space:p.spacing(2)},{children:[(null===(i=null===(n=d.featuredImage)||void 0===n?void 0:n.node)||void 0===i?void 0:i.sourceUrl)?(0,o.jsx)("div",{children:(0,o.jsx)(g.ID,Object.assign({href:d.uri||"",passHref:!0},{children:(0,o.jsx)(eu,{children:(0,o.jsx)(k,{loading:u?"lazy":"eager",alt:(null==d?void 0:d.title)||"Article featured image",ratio:"1:1",src:d.featuredImage.node.sourceUrl})})}))}):(0,o.jsx)(o.Fragment,{}),(null==d?void 0:d.title)?(0,o.jsx)("div",{children:(0,o.jsx)(g.ID,Object.assign({href:(null==d?void 0:d.uri)||"#",passHref:!0},{children:(0,o.jsx)(c.Z,{"aria-label":d.title,color:"inherit",className:[y().LineClamp,y()["LineClamp-4"]].join(" "),dangerouslySetInnerHTML:{__html:d.title},sx:{fontFamily:"fonts.serif.primary"},underline:"hover",variant:"h5"})}))}):(0,o.jsx)(o.Fragment,{})]}))}))};var eI=eM,eZ=i(19572),eR=i(11817),eD=i(50594),eL=i(326),ez=i(42761);let eB=["getTrigger","target"];function eF(r,n){let{disableHysteresis:i=!1,threshold:o=100,target:a}=n,s=r.current;return a&&(r.current=void 0!==a.pageYOffset?a.pageYOffset:a.scrollTop),(!!i||void 0===s||!(r.current<s))&&r.current>o}let eN="undefined"!=typeof window?window:null;var eU=i(97212),eV=i(58974),eq=i(51705),e$=i(59773),eG=i(68686);let eW=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected"],eH=(r,n)=>{let{ownerState:i}=r;return[n.root,i.dense&&n.dense,"flex-start"===i.alignItems&&n.alignItemsFlexStart,i.divider&&n.divider,!i.disableGutters&&n.gutters]},eX=r=>{let{alignItems:n,classes:i,dense:o,disabled:a,disableGutters:s,divider:l,selected:c}=r,u=(0,D.Z)({root:["root",o&&"dense",!s&&"gutters",l&&"divider",a&&"disabled","flex-start"===n&&"alignItemsFlexStart",c&&"selected"]},eG.t,i);return(0,M.Z)({},i,u)},eY=(0,L.ZP)(U.Z,{shouldForwardProp:r=>(0,L.FO)(r)||"classes"===r,name:"MuiListItemButton",slot:"Root",overridesResolver:eH})(({theme:r,ownerState:n})=>(0,M.Z)({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:r.transitions.create("background-color",{duration:r.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(r.vars||r).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${eG.Z.selected}`]:{backgroundColor:r.vars?`rgba(${r.vars.palette.primary.mainChannel} / ${r.vars.palette.action.selectedOpacity})`:(0,B.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity),[`&.${eG.Z.focusVisible}`]:{backgroundColor:r.vars?`rgba(${r.vars.palette.primary.mainChannel} / calc(${r.vars.palette.action.selectedOpacity} + ${r.vars.palette.action.focusOpacity}))`:(0,B.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity+r.palette.action.focusOpacity)}},[`&.${eG.Z.selected}:hover`]:{backgroundColor:r.vars?`rgba(${r.vars.palette.primary.mainChannel} / calc(${r.vars.palette.action.selectedOpacity} + ${r.vars.palette.action.hoverOpacity}))`:(0,B.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity+r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:r.vars?`rgba(${r.vars.palette.primary.mainChannel} / ${r.vars.palette.action.selectedOpacity})`:(0,B.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity)}},[`&.${eG.Z.focusVisible}`]:{backgroundColor:(r.vars||r).palette.action.focus},[`&.${eG.Z.disabled}`]:{opacity:(r.vars||r).palette.action.disabledOpacity}},n.divider&&{borderBottom:`1px solid ${(r.vars||r).palette.divider}`,backgroundClip:"padding-box"},"flex-start"===n.alignItems&&{alignItems:"flex-start"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.dense&&{paddingTop:4,paddingBottom:4})),eK=Z.forwardRef(function(r,n){let i=(0,z.Z)({props:r,name:"MuiListItemButton"}),{alignItems:a="center",autoFocus:s=!1,component:l="div",children:c,dense:u=!1,disableGutters:d=!1,divider:h=!1,focusVisibleClassName:p,selected:f=!1}=i,m=(0,I.Z)(i,eW),g=Z.useContext(e$.Z),v={dense:u||g.dense||!1,alignItems:a,disableGutters:d},y=Z.useRef(null);(0,eV.Z)(()=>{s&&y.current&&y.current.focus()},[s]);let b=(0,M.Z)({},i,{alignItems:a,dense:v.dense,disableGutters:d,divider:h,selected:f}),x=eX(b),_=(0,eq.Z)(y,n);return(0,o.jsx)(e$.Z.Provider,{value:v,children:(0,o.jsx)(eY,(0,M.Z)({ref:_,href:m.href||m.to,component:(m.href||m.to)&&"div"===l?"a":l,focusVisibleClassName:(0,R.Z)(x.focusVisible,p),ownerState:b},m,{classes:x,children:c}))})});var eJ=i(84592);let eQ=["className"],e0=r=>{let{alignItems:n,classes:i}=r;return(0,D.Z)({root:["root","flex-start"===n&&"alignItemsFlexStart"]},eJ.f,i)},e1=(0,L.ZP)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[n.root,"flex-start"===i.alignItems&&n.alignItemsFlexStart]}})(({theme:r,ownerState:n})=>(0,M.Z)({minWidth:56,color:(r.vars||r).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===n.alignItems&&{marginTop:8})),e2=Z.forwardRef(function(r,n){let i=(0,z.Z)({props:r,name:"MuiListItemIcon"}),{className:a}=i,s=(0,I.Z)(i,eQ),l=Z.useContext(e$.Z),c=(0,M.Z)({},i,{alignItems:l.alignItems}),u=e0(c);return(0,o.jsx)(e1,(0,M.Z)({className:(0,R.Z)(u.root,a),ownerState:c,ref:n},s))});var e3=i(26336);let e4=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],e5=r=>{let{classes:n,inset:i,primary:o,secondary:a,dense:s}=r;return(0,D.Z)({root:["root",i&&"inset",s&&"dense",o&&a&&"multiline"],primary:["primary"],secondary:["secondary"]},e3.L,n)},e6=(0,L.ZP)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[{[`& .${e3.Z.primary}`]:n.primary},{[`& .${e3.Z.secondary}`]:n.secondary},n.root,i.inset&&n.inset,i.primary&&i.secondary&&n.multiline,i.dense&&n.dense]}})(({ownerState:r})=>(0,M.Z)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},r.primary&&r.secondary&&{marginTop:6,marginBottom:6},r.inset&&{paddingLeft:56})),e8=Z.forwardRef(function(r,n){let i=(0,z.Z)({props:r,name:"MuiListItemText"}),{children:a,className:s,disableTypography:l=!1,inset:c=!1,primary:d,primaryTypographyProps:h,secondary:p,secondaryTypographyProps:f}=i,m=(0,I.Z)(i,e4),{dense:g}=Z.useContext(e$.Z),v=null!=d?d:a,y=p,b=(0,M.Z)({},i,{disableTypography:l,inset:c,primary:!!v,secondary:!!y,dense:g}),x=e5(b);return null==v||v.type===u.Z||l||(v=(0,o.jsx)(u.Z,(0,M.Z)({variant:g?"body2":"body1",className:x.primary,component:"span",display:"block"},h,{children:v}))),null==y||y.type===u.Z||l||(y=(0,o.jsx)(u.Z,(0,M.Z)({variant:"body2",className:x.secondary,color:"text.secondary",display:"block"},f,{children:y}))),(0,o.jsxs)(e6,(0,M.Z)({className:(0,R.Z)(x.root,s),ownerState:b,ref:n},m,{children:[v,y]}))});var e9=i(78462),e7=i(90512),te=i(14142),tt=i(29628),tr=i(86154);let tn=(0,tr.ZP)();var ti=i(67506);let to=["className","component","disableGutters","fixed","maxWidth","classes"],ta=(0,ti.Z)(),ts=tn("div",{name:"MuiContainer",slot:"Root",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[n.root,n[`maxWidth${(0,te.Z)(String(i.maxWidth))}`],i.fixed&&n.fixed,i.disableGutters&&n.disableGutters]}}),tl=r=>(0,tt.Z)({props:r,name:"MuiContainer",defaultTheme:ta}),tc=(r,n)=>{let i=r=>(0,G.ZP)(n,r),{classes:o,fixed:a,disableGutters:s,maxWidth:l}=r,c={root:["root",l&&`maxWidth${(0,te.Z)(String(l))}`,a&&"fixed",s&&"disableGutters"]};return(0,D.Z)(c,i,o)};var tu=i(98216);let td=function(r={}){let{createStyledComponent:n=ts,useThemeProps:i=tl,componentName:a="MuiContainer"}=r,s=n(({theme:r,ownerState:n})=>(0,M.Z)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!n.disableGutters&&{paddingLeft:r.spacing(2),paddingRight:r.spacing(2),[r.breakpoints.up("sm")]:{paddingLeft:r.spacing(3),paddingRight:r.spacing(3)}}),({theme:r,ownerState:n})=>n.fixed&&Object.keys(r.breakpoints.values).reduce((n,i)=>{let o=r.breakpoints.values[i];return 0!==o&&(n[r.breakpoints.up(i)]={maxWidth:`${o}${r.breakpoints.unit}`}),n},{}),({theme:r,ownerState:n})=>(0,M.Z)({},"xs"===n.maxWidth&&{[r.breakpoints.up("xs")]:{maxWidth:Math.max(r.breakpoints.values.xs,444)}},n.maxWidth&&"xs"!==n.maxWidth&&{[r.breakpoints.up(n.maxWidth)]:{maxWidth:`${r.breakpoints.values[n.maxWidth]}${r.breakpoints.unit}`}})),l=Z.forwardRef(function(r,n){let l=i(r),{className:c,component:u="div",disableGutters:d=!1,fixed:h=!1,maxWidth:p="lg"}=l,f=(0,I.Z)(l,to),m=(0,M.Z)({},l,{component:u,disableGutters:d,fixed:h,maxWidth:p}),g=tc(m,a);return(0,o.jsx)(s,(0,M.Z)({as:u,ownerState:m,className:(0,e7.Z)(g.root,c),ref:n},f))});return l}({createStyledComponent:(0,L.ZP)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[n.root,n[`maxWidth${(0,tu.Z)(String(i.maxWidth))}`],i.fixed&&n.fixed,i.disableGutters&&n.disableGutters]}}),useThemeProps:r=>(0,z.Z)({props:r,name:"MuiContainer"})});var th=i(73546),tp=function(r){let{children:n,defer:i=!1,fallback:a=null}
229=r,[s,l]=Z.useState(!1);return(0,th.Z)(()=>{i||l(!0)},[i]),Z.useEffect(()=>{i&&l(!0)},[i]),(0,o.jsx)(Z.Fragment,{children:s?n:a})},tf=i(2999),tm=i(8662),tg=i(57144),tv=i(30577),ty=i(5340);let tb=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function tx(r,n,i){let o="function"==typeof i?i():i,a=function(r,n,i){let o;let a=n.getBoundingClientRect(),s=i&&i.getBoundingClientRect(),l=(0,ty.Z)(n);if(n.fakeTransform)o=n.fakeTransform;else{let r=l.getComputedStyle(n);o=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("transform")}let c=0,u=0;if(o&&"none"!==o&&"string"==typeof o){let r=o.split("(")[1].split(")")[0].split(",");c=parseInt(r[4],10),u=parseInt(r[5],10)}return"left"===r?s?`translateX(${s.right+c-a.left}px)`:`translateX(${l.innerWidth+c-a.left}px)`:"right"===r?s?`translateX(-${a.right-s.left-c}px)`:`translateX(-${a.left+a.width-c}px)`:"up"===r?s?`translateY(${s.bottom+u-a.top}px)`:`translateY(${l.innerHeight+u-a.top}px)`:s?`translateY(-${a.top-s.top+a.height-u}px)`:`translateY(-${a.top+a.height-u}px)`}(r,n,o);a&&(n.style.webkitTransform=a,n.style.transform=a)}let t_=Z.forwardRef(function(r,n){let i=(0,a.Z)(),s={enter:i.transitions.easing.easeOut,exit:i.transitions.easing.sharp},l={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:c,appear:u=!0,children:d,container:h,direction:p="down",easing:f=s,in:m,onEnter:g,onEntered:v,onEntering:y,onExit:b,onExited:x,onExiting:_,style:w,timeout:S=l,TransitionComponent:T=tm.ZP}=r,E=(0,I.Z)(r,tb),k=Z.useRef(null),C=(0,eq.Z)(d.ref,k),P=(0,eq.Z)(C,n),O=r=>n=>{r&&(void 0===n?r(k.current):r(k.current,n))},j=O((r,n)=>{tx(p,r,h),(0,tv.n)(r),g&&g(r,n)}),A=O((r,n)=>{let o=(0,tv.C)({timeout:S,style:w,easing:f},{mode:"enter"});r.style.webkitTransition=i.transitions.create("-webkit-transform",(0,M.Z)({},o)),r.style.transition=i.transitions.create("transform",(0,M.Z)({},o)),r.style.webkitTransform="none",r.style.transform="none",y&&y(r,n)}),R=O(v),D=O(_),L=O(r=>{let n=(0,tv.C)({timeout:S,style:w,easing:f},{mode:"exit"});r.style.webkitTransition=i.transitions.create("-webkit-transform",n),r.style.transition=i.transitions.create("transform",n),tx(p,r,h),b&&b(r)}),z=O(r=>{r.style.webkitTransition="",r.style.transition="",x&&x(r)}),B=r=>{c&&c(k.current,r)},F=Z.useCallback(()=>{k.current&&tx(p,k.current,h)},[p,h]);return Z.useEffect(()=>{if(m||"down"===p||"right"===p)return;let r=(0,tg.Z)(()=>{k.current&&tx(p,k.current,h)}),n=(0,ty.Z)(k.current);return n.addEventListener("resize",r),()=>{r.clear(),n.removeEventListener("resize",r)}},[p,m,h]),Z.useEffect(()=>{m||F()},[m,F]),(0,o.jsx)(T,(0,M.Z)({nodeRef:k,onEnter:j,onEntered:R,onEntering:A,onExit:L,onExited:z,onExiting:D,addEndListener:B,appear:u,in:m,timeout:S},E,{children:(r,n)=>Z.cloneElement(d,(0,M.Z)({ref:P,style:(0,M.Z)({visibility:"exited"!==r||m?void 0:"hidden"},w,d.props.style)},n))}))});var tw=i(55113);function tS(r){return(0,G.ZP)("MuiDrawer",r)}(0,W.Z)("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);let tT=["BackdropProps"],tE=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],tk=(r,n)=>{let{ownerState:i}=r;return[n.root,("permanent"===i.variant||"persistent"===i.variant)&&n.docked,n.modal]},tC=r=>{let{classes:n,anchor:i,variant:o}=r,a={root:["root"],docked:[("permanent"===o||"persistent"===o)&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${(0,tu.Z)(i)}`,"temporary"!==o&&`paperAnchorDocked${(0,tu.Z)(i)}`]};return(0,D.Z)(a,tS,n)},tP=(0,L.ZP)(tf.Z,{name:"MuiDrawer",slot:"Root",overridesResolver:tk})(({theme:r})=>({zIndex:(r.vars||r).zIndex.drawer})),tO=(0,L.ZP)("div",{shouldForwardProp:L.FO,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:tk})({flex:"0 0 auto"}),tj=(0,L.ZP)(tw.Z,{name:"MuiDrawer",slot:"Paper",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[n.paper,n[`paperAnchor${(0,tu.Z)(i.anchor)}`],"temporary"!==i.variant&&n[`paperAnchorDocked${(0,tu.Z)(i.anchor)}`]]}})(({theme:r,ownerState:n})=>(0,M.Z)({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(r.vars||r).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},"left"===n.anchor&&{left:0},"top"===n.anchor&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},"right"===n.anchor&&{right:0},"bottom"===n.anchor&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},"left"===n.anchor&&"temporary"!==n.variant&&{borderRight:`1px solid ${(r.vars||r).palette.divider}`},"top"===n.anchor&&"temporary"!==n.variant&&{borderBottom:`1px solid ${(r.vars||r).palette.divider}`},"right"===n.anchor&&"temporary"!==n.variant&&{borderLeft:`1px solid ${(r.vars||r).palette.divider}`},"bottom"===n.anchor&&"temporary"!==n.variant&&{borderTop:`1px solid ${(r.vars||r).palette.divider}`}
229)),tA={left:"right",right:"left",top:"down",bottom:"up"};function tM(r){return -1!==["left","right"].indexOf(r)}function tI(r,n){return"rtl"===r.direction&&tM(n)?tA[n]:n}let tZ=Z.forwardRef(function(r,n){let i=(0,z.Z)({props:r,name:"MuiDrawer"}),s=(0,a.Z)(),l={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{anchor:c="left",BackdropProps:u,children:d,className:h,elevation:p=16,hideBackdrop:f=!1,ModalProps:{BackdropProps:m}={},onClose:g,open:v=!1,PaperProps:y={},SlideProps:b,TransitionComponent:x=t_,transitionDuration:_=l,variant:w="temporary"}=i,S=(0,I.Z)(i.ModalProps,tT),T=(0,I.Z)(i,tE),E=Z.useRef(!1);Z.useEffect(()=>{E.current=!0},[]);let k=tI(s,c),C=(0,M.Z)({},i,{anchor:c,elevation:p,open:v,variant:w},T),P=tC(C),O=(0,o.jsx)(tj,(0,M.Z)({elevation:"temporary"===w?p:0,square:!0},y,{className:(0,R.Z)(P.paper,y.className),ownerState:C,children:d}));if("permanent"===w)return(0,o.jsx)(tO,(0,M.Z)({className:(0,R.Z)(P.root,P.docked,h),ownerState:C,ref:n},T,{children:O}));let j=(0,o.jsx)(x,(0,M.Z)({in:v,direction:tA[k],timeout:_,appear:E.current},b,{children:O}));return"persistent"===w?(0,o.jsx)(tO,(0,M.Z)({className:(0,R.Z)(P.root,P.docked,h),ownerState:C,ref:n},T,{children:j})):(0,o.jsx)(tP,(0,M.Z)({BackdropProps:(0,M.Z)({},u,m,{transitionDuration:_}),className:(0,R.Z)(P.root,P.modal,h),open:v,ownerState:C,onClose:g,hideBackdrop:f,ref:n},T,S,{children:j}))});var tR=i(8038),tD=i(2068);let tL=["anchor","classes","className","width","style"],tz=(0,L.ZP)("div")(({theme:r,ownerState:n})=>(0,M.Z)({position:"fixed",top:0,left:0,bottom:0,zIndex:r.zIndex.drawer-1},"left"===n.anchor&&{right:"auto"},"right"===n.anchor&&{left:"auto",right:0},"top"===n.anchor&&{bottom:"auto",right:0},"bottom"===n.anchor&&{top:"auto",bottom:0,right:0})),tB=Z.forwardRef(function(r,n){let{anchor:i,classes:a={},className:s,width:l,style:c}=r,u=(0,I.Z)(r,tL);return(0,o.jsx)(tz,(0,M.Z)({className:(0,R.Z)("PrivateSwipeArea-root",a.root,a[`anchor${(0,tu.Z)(i)}`],s),ref:n,style:(0,M.Z)({[tM(i)?"width":"height"]:l},c),ownerState:r},u))}),tF=["BackdropProps"],tN=["anchor","disableBackdropTransition","disableDiscovery","disableSwipeToOpen","hideBackdrop","hysteresis","minFlingVelocity","ModalProps","onClose","onOpen","open","PaperProps","SwipeAreaProps","swipeAreaWidth","transitionDuration","variant"],tU=null;function tV(r,n,i){return"right"===r?i.body.offsetWidth-n[0].pageX:n[0].pageX}function tq(r,n,i){return"bottom"===r?i.innerHeight-n[0].clientY:n[0].clientY}function t$(r,n){return r?n.clientWidth:n.clientHeight}function tG(r,n,i,o){return Math.min(Math.max(i?n-r:o+n-r,0),o)}let tW="undefined"!=typeof navigator&&/iPad|iPhone|iPod/.test(navigator.userAgent),tH=Z.forwardRef(function(r,n){let i=(0,tt.Z)({name:"MuiSwipeableDrawer",props:r}),s=(0,a.Z)(),l={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{anchor:c="left",disableBackdropTransition:u=!1,disableDiscovery:d=!1,disableSwipeToOpen:h=tW,hideBackdrop:p,hysteresis:f=.52,minFlingVelocity:m=450,ModalProps:{BackdropProps:g}={},onClose:v,onOpen:y,open:b,PaperProps:x={},SwipeAreaProps:_,swipeAreaWidth:w=20,transitionDuration:S=l,variant:T="temporary"}=i,E=(0,I.Z)(i.ModalProps,tF),k=(0,I.Z)(i,tN),[C,P]=Z.useState(!1),O=Z.useRef({isSwiping:null}),j=Z.useRef(),A=Z.useRef(),R=Z.useRef(),D=Z.useRef(!1),L=Z.useRef();(0,eV.Z)(()=>{L.current=null},[b]);let z=Z.useCallback((r,n={})=>{let{mode:i=null,changeTransition:o=!0}=n,a=tI(s,c),l=-1!==["right","bottom"].indexOf(a)?1:-1,d=tM(c),h=d?`translate(${l*r}px, 0)`:`translate(0, ${l*r}px)`,f=R.current.style;f.webkitTransform=h,f.transform=h;let m="";if(i&&(m=s.transitions.create("all",(0,tv.C)({easing:void 0,style:void 0,timeout:S},{mode:i}))),o&&(f.webkitTransition=m,f.transition=m),!u&&!p){let n=A.current.style;n.opacity=1-r/t$(d,R.current),o&&(n.webkitTransition=m,n.transition=m)}},[c,u,p,s,S]),B=(0,tD.Z)(r=>{let n;if(!D.current)return;if(tU=null,D.current=!1,P(!1),!O.current.isSwiping){O.current.isSwiping=null;return}O.current.isSwiping=null;let i=tI(s,c),o=tM(c);n=o?tV(i,r.changedTouches,(0,tR.Z)(r.currentTarget)):tq(i,r.changedTouches,(0,ty.Z)(r.currentTarget));let a=o?O.current.startX:O.current.startY,l=t$(o,R.current),u=tG(n,a,b,l),d=u/l;if(Math.abs(O.current.velocity)>m&&(L.current=1e3*Math.abs((l-u)/O.current.velocity)),b){O.current.velocity>m||d>f?v():z(0,{mode:"exit"});return}O.current.velocity<-m||1-d>f?y():z(t$(o,R.current),{mode:"enter"})}),F=(0,tD.Z)(r=>{if(!R.current||!D.current||null!==tU&&tU!==O.current)return;let n=tI(s,c),i=tM(c),o=tV(n,r.touches,(0,tR.Z)(r.currentTarget)),a=tq(n,r.touches,(0,ty.Z)(r.currentTarget));if(b&&R.current.contains(r.target)&&null===tU){let n=function(r,n){let i=[];for(;r&&r!==n.parentElement;){let o=(0,ty.Z)(n).getComputedStyle(r);"absolute"===o.getPropertyValue("position")||"hidden"===o.getPropertyValue("overflow-x")||(r.clientWidth>0&&r.scrollWidth>r.clientWidth||r.clientHeight>0&&r.scrollHeight>r.clientHeight)&&i.push(r),r=r.parentElement}return i}(r.target,R.current),s=function({domTreeShapes:r,start:n,current:i,anchor:o}){let a={scrollPosition:{x:"scrollLeft",y:"scrollTop"},scrollLength:{x:"scrollWidth",y:"scrollHeight"},clientLength:{x:"clientWidth",y:"clientHeight"}};return r.some(r=>{let s=i>=n;("top"===o||"left"===o)&&(s=!s);
229let l="left"===o||"right"===o?"x":"y",c=Math.round(r[a.scrollPosition[l]]),u=c+r[a.clientLength[l]]<r[a.scrollLength[l]];return!!s&&!!u||!s&&c>0})}({domTreeShapes:n,start:i?O.current.startX:O.current.startY,current:i?o:a,anchor:c});if(s){tU=!0;return}tU=O.current}if(null==O.current.isSwiping){let n=Math.abs(o-O.current.startX),s=Math.abs(a-O.current.startY),l=i?n>s&&n>3:s>n&&s>3;if(l&&r.cancelable&&r.preventDefault(),!0===l||(i?s>3:n>3)){if(O.current.isSwiping=l,!l){B(r);return}O.current.startX=o,O.current.startY=a,d||b||(i?O.current.startX-=20:O.current.startY-=20)}}if(!O.current.isSwiping)return;let l=t$(i,R.current),u=i?O.current.startX:O.current.startY;b&&!O.current.paperHit&&(u=Math.min(u,l));let h=tG(i?o:a,u,b,l);if(b){if(O.current.paperHit)0===h&&(O.current.startX=o,O.current.startY=a);else{if(i?!(o<l):!(a<l))return;O.current.paperHit=!0,O.current.startX=o,O.current.startY=a}}null===O.current.lastTranslate&&(O.current.lastTranslate=h,O.current.lastTime=performance.now()+1);let p=(h-O.current.lastTranslate)/(performance.now()-O.current.lastTime)*1e3;O.current.velocity=.4*O.current.velocity+.6*p,O.current.lastTranslate=h,O.current.lastTime=performance.now(),r.cancelable&&r.preventDefault(),z(h)}),N=(0,tD.Z)(r=>{if(r.defaultPrevented||r.defaultMuiPrevented||b&&(p||!A.current.contains(r.target))&&!R.current.contains(r.target))return;let n=tI(s,c),i=tM(c),o=tV(n,r.touches,(0,tR.Z)(r.currentTarget)),a=tq(n,r.touches,(0,ty.Z)(r.currentTarget));if(!b){if(h||r.target!==j.current)return;if(i){if(o>w)return}else if(a>w)return}r.defaultMuiPrevented=!0,tU=null,O.current.startX=o,O.current.startY=a,P(!0),!b&&R.current&&z(t$(i,R.current)+(d?15:-20),{changeTransition:!1}),O.current.velocity=0,O.current.lastTime=null,O.current.lastTranslate=null,O.current.paperHit=!1,D.current=!0});return Z.useEffect(()=>{if("temporary"===T){let r=(0,tR.Z)(R.current);return r.addEventListener("touchstart",N),r.addEventListener("touchmove",F,{passive:!b}),r.addEventListener("touchend",B),()=>{r.removeEventListener("touchstart",N),r.removeEventListener("touchmove",F,{passive:!b}),r.removeEventListener("touchend",B)}}},[T,b,N,F,B]),Z.useEffect(()=>()=>{tU===O.current&&(tU=null)},[]),Z.useEffect(()=>{b||P(!1)},[b]),(0,o.jsxs)(Z.Fragment,{children:[(0,o.jsx)(tZ,(0,M.Z)({open:"temporary"===T&&!!C||b,variant:T,ModalProps:(0,M.Z)({BackdropProps:(0,M.Z)({},g,{ref:A})},E),hideBackdrop:p,PaperProps:(0,M.Z)({},x,{style:(0,M.Z)({pointerEvents:"temporary"!==T||b?"":"none"},x.style),ref:R}),anchor:c,transitionDuration:L.current||S,onClose:v,ref:n},k)),!h&&"temporary"===T&&(0,o.jsx)(tp,{children:(0,o.jsx)(tB,(0,M.Z)({anchor:c,ref:j,width:w},_))})]})});var tX=i(18972),tY=i(57922),tK=i(67720);function tJ(r){return(0,G.ZP)("MuiAppBar",r)}(0,W.Z)("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);let tQ=["className","color","enableColorOnDark","position"],t0=r=>{let{color:n,position:i,classes:o}=r,a={root:["root",`color${(0,tu.Z)(n)}`,`position${(0,tu.Z)(i)}`]};return(0,D.Z)(a,tJ,o)},t1=(r,n)=>`${null==r?void 0:r.replace(")","")}, ${n})`,t2=(0,L.ZP)(tw.Z,{name:"MuiAppBar",slot:"Root",overridesResolver:(r,n)=>{let{ownerState:i}=r;return[n.root,n[`position${(0,tu.Z)(i.position)}`],n[`color${(0,tu.Z)(i.color)}`]]}})(({theme:r,ownerState:n})=>{let i="light"===r.palette.mode?r.palette.grey[100]:r.palette.grey[900];return(0,M.Z)({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===n.position&&{position:"fixed",zIndex:(r.vars||r).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===n.position&&{position:"absolute",zIndex:(r.vars||r).zIndex.appBar,top:0,left:"auto",right:0},"sticky"===n.position&&{position:"sticky",zIndex:(r.vars||r).zIndex.appBar,top:0,left:"auto",right:0},"static"===n.position&&{position:"static"},"relative"===n.position&&{position:"relative"},!r.vars&&(0,M.Z)({}
229,"default"===n.color&&{backgroundColor:i,color:r.palette.getContrastText(i)},n.color&&"default"!==n.color&&"inherit"!==n.color&&"transparent"!==n.color&&{backgroundColor:r.palette[n.color].main,color:r.palette[n.color].contrastText},"inherit"===n.color&&{color:"inherit"},"dark"===r.palette.mode&&!n.enableColorOnDark&&{backgroundColor:null,color:null},"transparent"===n.color&&(0,M.Z)({backgroundColor:"transparent",color:"inherit"},"dark"===r.palette.mode&&{backgroundImage:"none"})),r.vars&&(0,M.Z)({},"default"===n.color&&{"--AppBar-background":n.enableColorOnDark?r.vars.palette.AppBar.defaultBg:t1(r.vars.palette.AppBar.darkBg,r.vars.palette.AppBar.defaultBg),"--AppBar-color":n.enableColorOnDark?r.vars.palette.text.primary:t1(r.vars.palette.AppBar.darkColor,r.vars.palette.text.primary)},n.color&&!n.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":n.enableColorOnDark?r.vars.palette[n.color].main:t1(r.vars.palette.AppBar.darkBg,r.vars.palette[n.color].main),"--AppBar-color":n.enableColorOnDark?r.vars.palette[n.color].contrastText:t1(r.vars.palette.AppBar.darkColor,r.vars.palette[n.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:"inherit"===n.color?"inherit":"var(--AppBar-color)"},"transparent"===n.color&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),t3=Z.forwardRef(function(r,n){let i=(0,z.Z)({props:r,name:"MuiAppBar"}),{className:a,color:s="primary",enableColorOnDark:l=!1,position:c="fixed"}=i,u=(0,I.Z)(i,tQ),d=(0,M.Z)({},i,{color:s,position:c,enableColorOnDark:l}),h=t0(d);return(0,o.jsx)(t2,(0,M.Z)({square:!0,component:"header",ownerState:d,elevation:4,className:(0,R.Z)(h.root,a,"fixed"===c&&"mui-fixed"),ref:n},u))});var t4=i(10155),t5=i(93946),t6=i(63001),t8=function(r,n,i,o){for(var a=r.length,s=i+(o?1:-1);o?s--:++s<a;)if(n(r[s],s,r))return s;return -1},t9=function(r){return r!=r},t7=function(r,n,i){for(var o=i-1,a=r.length;++o<a;)if(r[o]===n)return o;return -1},re=function(r,n){return!!(null==r?0:r.length)&&(n==n?t7(r,n,0):t8(r,t9,0))>-1},rt=function(r,n,i){for(var o=-1,a=null==r?0:r.length;++o<a;)if(i(n,r[o]))return!0;return!1},rr=i(74073),rn=i(21162),ri=i(59548),ro=function(r,n,i,o){var a=-1,s=re,l=!0,c=r.length,u=[],d=n.length;if(!c)return u;i&&(n=(0,rr.Z)(n,(0,rn.Z)(i))),o?(s=rt,l=!1):n.length>=200&&(s=ri.Z,l=!1,n=new t6.Z(n));e:for(;++a<c;){var h=r[a],p=null==i?h:i(h);if(h=o||0!==h?h:0,l&&p==p){for(var f=d;f--;)if(n[f]===p)continue e;u.push(h)}else s(n,p,o)||u.push(h)}return u},ra=i(69581),rs=i(836),rl=(0,ra.Z)(function(r,n){return(0,rs.Z)(r)?ro(r,n):[]}),rc=i(39332),ru=i(11163),rd=i(67082),rh=i(67035),rp=i(23538);let rf=r=>{if(!(0,rp.Z)(r))return r;let n=new URL(r);return n.pathname};var rm=i(23508),rg=i(83321),rv=i(44347),ry=i(3994),rb=i(93967),rx=i.n(rb);let r_=r=>{let{buttonID:n,children:i,className:a,isCurrentPage:s,isExpandable:l,label:c,menuID:u,path:d}=r,h=(0,Z.useRef)(!1),[p,f]=(0,Z.useState)(null),m=(0,Z.useCallback)(r=>{r.preventDefault(),f(r.currentTarget)},[f]),v=(0,Z.useCallback)(()=>{h.current=!0},[]),y=(0,Z.useCallback)(()=>{f(null)},[]),b=(0,Z.useCallback)(()=>{h.current=!1,setTimeout(()=>{h.current||y()},50)},[y]),x=!!p;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(g.ID,Object.assign({href:d,passHref:!0},{children:(0,o.jsx)(rg.Z,Object.assign({"aria-controls":x?u:void 0,"aria-haspopup":l?"true":void 0,"aria-expanded":x?"true":void 0,className:rx()(a,s&&"current-menu-item"),color:s?"primary":"inherit",id:n,onClick:l?m:void 0,onMouseOver:m,onMouseLeave:b,sx:{height:"100%",fontWeight:600,whiteSpace:"nowrap","&:hover":{color:"primary.main",bgcolor:"transparent"},"& .MuiButton-endIcon":{marginLeft:0},"&.current-menu-item":{color:"primary.main"}},endIcon:l&&(0,o.jsx)(rm.Z,{}),variant:"text"},{children:c}))})),l&&(0,o.jsx)(rv.Z,Object.assign({id:u,anchorEl:p,open:x,onClose:y,MenuListProps:{"aria-labelledby":n,onMouseEnter:v,onMouseLeave:b,sx:{pointerEvents:"auto"}},disableAutoFocus:!0,sx:{["&.".concat(ry.Z.root)]:{pointerEvents:"none"}}},{children:i}))]})},rw=(r,n)=>(0,rh.Z)(r)===(0,rh.Z)(rf(n)),rS=r=>{let{logo:n,menuItems:i,mobileMenuItems:a,separateDesktopNavigationRow:l,extraItems:c=null,sticky:u,sx:d={}}=r,h=(0,rc.usePathname)(),p=function(r={}){let{getTrigger:n=eF,target:i=eN}=r,o=(0,I.Z)(r,eB),a=Z.useRef(),[s,l]=Z.useState(()=>n(a,o));return Z.useEffect(()=>{let r=()=>{l(n(a,(0,M.Z)({target:i},o)))};return r(),i.addEventListener("scroll",r,{passive:!0}),()=>{i.removeEventListener("scroll",r,{passive:!0})}},[i,n,JSON.stringify(o)]),s}(),f="mobile",m=(0,Z.useCallback)(function(r){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i={};return r.forEach(r=>{i=Object.assign(Object.assign(Object.assign({},i),{[n+r.id]:!1}),r.children?m(r.children,n):{})}),i},[]),v=(0,Z.useCallback)(()=>Object.assign(Object.assign({search:!1,"mobile-menu":!1},i?m(i):{}),a?m(a,f):{}),[i,a,m]),[y,b]=(0,Z.useState)(v()),x=(0,ru.useRouter)();(0,Z.useEffect)(()=>{let r=()=>{b(v())};return x.events.on("routeChangeComplete",r),()=>{x.events.off("routeChangeComplete",r)}},[v,x.asPath,x.events]);let _=(0,Z.useRef)(null),w=l?128:64,S=(0,Z.useCallback)((r,n,i)=>o=>{o&&"keydown"===o.type&&("Tab"===o.key||"Shift"===o.key)||(null==o||o.preventDefault(),b(Object.assign(Object.assign({},i?y:v()),{[r]:n})))},[y,v]),[T,E]=(0,Z.useState)([]),k=(0,Z.useCallback)(r=>
229{if(!r.currentTarget.id){console.error("Button id attribute is required in order to render the menu.");return}r.preventDefault(),T.includes(r.currentTarget.id)?E(rl(T,r.currentTarget.id)):E([...T,r.currentTarget.id])},[T]),C=(0,Z.useCallback)(function(r,n){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return(0,o.jsxs)(s.Z,Object.assign({sx:{display:"flex",flexDirection:{xs:"column",lg:"row"},alignItems:"stretch"}},{children:[n&&(0,o.jsx)(s.Z,Object.assign({sx:{flex:1,display:{xs:"block",lg:i>1?"block":"none"}}},{children:(0,o.jsx)(eU.ZP,Object.assign({onClick:S(a+n.id,!1,!0),disablePadding:!0,sx:{height:"100%"}},{children:(0,o.jsxs)(eK,Object.assign({sx:{bgcolor:"primary.light",height:"100%"}},{children:[(0,o.jsx)(e2,{children:(0,o.jsx)(eZ.Z,{})}),(0,o.jsx)(e8,{primary:n.label})]}))}))})),(0,o.jsx)(e9.Z,Object.assign({disablePadding:!0,sx:{columns:{xs:"unset",lg:n?3:4,flex:3}}},{children:r.map(r=>{let{children:i,id:s,label:l,path:c}=r;return c&&(0,o.jsx)(eU.ZP,Object.assign({disablePadding:!0},{children:(0,o.jsx)(g.ID,Object.assign({href:c,passHref:!0},{children:(0,o.jsxs)(eK,Object.assign({onClick:i&&i.length>0?S(a+s,!0,!0):void 0},{children:[i&&i.length>0&&(0,o.jsx)(e2,{children:(0,o.jsx)(eR.Z,{})}),(0,o.jsx)(e8,{sx:{flex:"none"},primary:l,inset:Boolean(n)&&!(i&&i.length>0)})]}))}))}),s)})}))]}))},[S]),P=(0,Z.useCallback)(function(r,n){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return(0,o.jsx)("div",{children:(0,o.jsxs)(td,Object.assign({maxWidth:"xl",sx:{padding:{xs:"0 !important",lg:"initial"}}},{children:[C(r,n,i,a),r.map(r=>r.children&&r.children.length>0&&(0,o.jsx)(Z.Fragment,{children:(0,o.jsx)(tH,Object.assign({disableSwipeToOpen:!0,anchor:"right",open:y[a+r.id],onClose:S(a+r.id,!1,!0),onOpen:S(a+r.id,!0,!0),PaperProps:{sx:{width:"100%",height:{xs:"calc(100vh - ".concat(64,"px)"),lg:"auto"},mt:"".concat(64,"px"),px:0,pb:{xs:2,lg:0}}}},{children:P(r.children,r,i+1,a)}))},r.id))]}))})},[C,y,S]),O=(0,Z.useMemo)(()=>(0,o.jsx)(s.Z,Object.assign({sx:{overflowX:"auto",display:{xs:"none",lg:"flex"},ml:2,flexGrow:1}},{children:(0,o.jsx)(s.Z,Object.assign({sx:{flexGrow:1,alignSelf:"stretch",display:"flex",color:"text.primary"}}
229,{children:i&&i.map(r=>{let{children:n,className:i,id:a,label:s,path:l}=r;if(!l)return null;let c=n&&n.length>0,u="navbar-menu-".concat(a.replace(/\W/gi,"")),d="".concat(u,"-menu"),p=l&&rw(h,l);return(0,o.jsx)(Z.Fragment,{children:(0,o.jsxs)(r_,Object.assign({label:s,menuID:d,buttonID:u,isExpandable:c,path:l,className:null!=i?i:void 0,isCurrentPage:!!p},{children:[(0,o.jsx)(g.ID,Object.assign({href:l,passHref:!0},{children:(0,o.jsx)(tX.Z,Object.assign({component:"a",href:l},{children:(0,o.jsx)(e8,{children:s})}))})),null==n?void 0:n.map(r=>{var n;let i=r.children&&r.children.length>0,a="".concat(d,"-item-").concat(r.label),s=i&&T.includes(a),l=rw(h,null!==(n=r.path)&&void 0!==n?n:"");return r.id&&r.label&&r.path&&[(0,o.jsx)(g.ID,Object.assign({href:r.path,passHref:!0},{children:(0,o.jsxs)(tX.Z,Object.assign({component:"a",href:r.path,id:a,onClick:i?k:void 0},{children:[i&&(0,o.jsx)(e2,{children:(0,o.jsx)(eR.Z,{sx:{transform:s?"rotate(90deg)":void 0}})}),(0,o.jsx)(e8,Object.assign({color:l?"primary":"inherit",inset:!i},{children:r.label}))]}))})),i&&(0,o.jsxs)(tY.Z,Object.assign({in:s},{children:[r.children&&r.children.map(r=>r.path&&r.label&&r.id?(0,o.jsx)(tX.Z,Object.assign({component:"a",href:r.path},{children:(0,o.jsx)(e8,Object.assign({color:rw(h,r.path)?"primary":"inherit",inset:!0},{children:r.label}))}),r.id):null),(0,o.jsx)(tK.Z,{variant:"inset"})]}))]})]}))},u)})}))})),[T,h,k,i]),j=(0,Z.useMemo)(()=>{var r,i;return(0,o.jsxs)(t3,Object.assign({ref:_,position:u===rd.O.NoSticky?"relative":"sticky",elevation:0,sx:Object.assign({zIndex:r=>{let{zIndex:n}=r;return n.drawer+1},bgcolor:"background.paper",height:{xs:64,lg:w}},d)},{children:[(0,o.jsx)(td,Object.assign({maxWidth:"xl",sx:{height:"100%"}},{children:(0,o.jsx)(t4.Z,Object.assign({disableGutters:!0,sx:{height:"100%"}},{children:(0,o.jsxs)(s.Z,Object.assign({sx:{display:"flex",flexDirection:"column",width:"100%",justifyContent:"center"}},{children:[(0,o.jsxs)(s.Z,Object.assign({sx:{display:"flex",height:64}},{children:[(0,o.jsx)(s.Z,Object.assign({sx:{flexGrow:0,display:{xs:"flex",lg:"none",justifyContent:"center"},color:"text.primary"}}
229,{children:(0,o.jsx)(t5.Z,Object.assign({edge:"start",onClick:S("mobile-menu",!y["mobile-menu"])},{children:y["mobile-menu"]?(0,o.jsx)(eD.Z,{}):(0,o.jsx)(eL.Z,{})}))})),(null==n?void 0:n.sourceUrl)&&(0,o.jsx)(g.TR,{sourceUrl:n.sourceUrl,width:null===(r=n.mediaDetails)||void 0===r?void 0:r.width,height:null===(i=n.mediaDetails)||void 0===i?void 0:i.height,title:n.altText,sx:{flexGrow:{xs:1,lg:0},display:{xs:"inline-flex",lg:"inline"},justifyContent:"center",py:1,height:"100%"},imgSx:{maxHeight:"100%",maxWidth:"none"}}),!l&&O,(0,o.jsxs)(s.Z,Object.assign({sx:{marginLeft:l?"auto":null,flexGrow:0,display:"flex",gap:1,alignItems:"center"}},{children:[(0,o.jsx)(t5.Z,Object.assign({edge:"end",onClick:S("search",!y.search),"aria-label":"search"},{children:y.search?(0,o.jsx)(eD.Z,{}):(0,o.jsx)(ez.Z,{})})),c&&(0,o.jsx)(s.Z,Object.assign({sx:{ml:2,display:{xs:"none",lg:"flex"},gap:1}},{children:c}))]}))]})),l&&(0,o.jsx)(s.Z,Object.assign({sx:{display:{xs:"none",lg:"flex"},height:64,ml:-2}},{children:O}))]}))}))})),(0,o.jsx)(tK.Z,{sx:{pointerEvents:"none"}})]}))},[y,n,u,d,S,c,O,l,w]),A=(0,Z.useMemo)(()=>(0,o.jsxs)(o.Fragment,{children:[a&&(0,o.jsxs)(tH,Object.assign({disableSwipeToOpen:!0,anchor:"top",open:y["mobile-menu"],onClose:S("mobile-menu",!1),onOpen:S("mobile-menu",!0),PaperProps:{sx:{height:"calc(100vh - ".concat(64,"px)"),justifyContent:"space-between",mt:"".concat(64,"px"),p:0,pb:{xs:2,lg:0}}}},{children:[C(a,void 0,1,f),c&&(0,o.jsx)(s.Z,Object.assign({sx:{display:"flex",gap:1,justifyContent:"center",flexWrap:"wrap"}},{children:c}))]})),i&&i.length>0&&i.map(r=>r.children&&r.children.length>0&&(0,o.jsx)(Z.Fragment,{children:(0,o.jsx)(tH,Object.assign({disableSwipeToOpen:!0,anchor:"right",open:y[r.id],onClose:S(r.id,!1,!0),onOpen:S(r.id,!0,!0),PaperProps:{sx:{width:"100%",height:{xs:"calc(100vh - ".concat(64,"px)"),lg:"auto"},mt:"".concat(64,"px"),p:0,pb:{xs:2,lg:0}}}},{children:(0,o.jsx)("div",Object.assign({role:"presentation",onMouseLeave:S(r.id,!1,!0),onMouseEnter:S(r.id,!0,!0)},{children:P(r.children,r)}))}))},r.id)),a&&a.length>0&&a.map(r=>r.children&&r.children.length>0&&(0,o.jsx)(Z.Fragment,{children:(0,o.jsx)(tH,Object.assign({disableSwipeToOpen:!0,anchor:"right",open:y["".concat(f).concat(r.id)],onClose:S("".concat(f).concat(r.id),!1,!0),onOpen:S("".concat(f).concat(r.id),!0,!0),PaperProps:{sx:{width:"100%",height:{xs:"calc(100vh - ".concat(64,"px)"),lg:"auto"},mt:"".concat(64,"px"),p:0,pb:{xs:2,lg:0}}}},{children:(0,o.jsx)("div",Object.assign({role:"presentation"},{children:P(r.children,r,1,f)}))}))},r.id))]}),[y,i,a,P,C,S,c]),R=(0,Z.useMemo)(()=>(0,o.jsx)(tH,Object.assign({anchor:"top",open:y.search,onClose:S("search",!1),onOpen:S("search",!0),PaperProps:{sx:{mt:{md:"".concat(w,"px"),xs:"".concat(64,"px")}}}},{children:(0,o.jsx)(td,Object.assign({maxWidth:"xl"},{children:(0,o.jsx)(g.Mj,{iconSearch:eR.Z,sxInput:{width:{lg:"764px",md:"620px",sm:"600px",xs:"100%"},maxWidth:"100%",m:"20px auto",border:1,borderColor:"grey.300",p:1}})}))})),[y.search,w,S]);return u===rd.O.StickyOnScroll?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t_,Object.assign({appear:!1,direction:"down",in:!p},{children:j})),R,A]}):(0,o.jsxs)(o.Fragment,{children:[j,R,A]})};var rT=rS;i(65517);var rE=i(61154);let rk=r=>{var n,i,d,h,p;let{authorTag:f}=r,m=(0,a.Z)(),v=(0,Z.useMemo)(()=>{var r,n;return null===(n=null===(r=f.author)||void 0===r?void 0:r.authorSocial)||void 0===n?void 0:n.map(r=>({name:null==r?void 0:r.icon,url:null==r?void 0:r.url}))},[null===(n=f.author)||void 0===n?void 0:n.authorSocial]);return(0,o.jsx)(s.Z,Object.assign({sx:{backgroundColor:m.palette.primary.light}},{children:(0,o.jsxs)(l.Po,Object.assign({padding:m.spacing(3)},{children:[(0,o.jsxs)(l.CT,Object.assign({contentMin:"70%",side:"right",space:m.spacing(2)},{children:[(0,o.jsxs)(l.sg,Object.assign({align:"center"},{children:[(0,o.jsx)(eb,{alt:f.name||"",src:(null===(h=null===(d=null===(i=f.author)||void 0===i?void 0:i.authorAvatar)||void 0===d?void 0:d.node)||void 0===h?void 0:h.sourceUrl)||"",sx:{width:64,height:64}}),(0,o.jsxs)(l.Pt,Object.assign({space:m.spacing(1)},{children:[(null==f?void 0:f.uri)?(0,o.jsx)(g.ID,Object.assign({href:f.uri,passHref:!0},{children:(0,o.jsx)(c.Z,Object.assign({underline:"hover",sx:{mb:.25,color:"secondary.main"},variant:"h4"},{children:f.name}))})):(0,o.jsx)(u.Z,Object.assign({component:"div",sx:{mb:.25,color:"secondary.main"},variant:"h4"},{children:f.name})),(0,o.jsx)(u.Z,Object.assign({variant:"overline"},{children:(null===(p=f.author)||void 0===p?void 0:p.authorTitle)||"Writer"}))]}))]})),(0,o.jsx)("div",{children:(0,o.jsx)(rE.Z,{iconsSx:{background:m.palette.primary.main,border:"none",padding:1,borderRadius:"50%",svg:{color:m.palette.primary.light,width:"0.875rem",he
229ight:"0.875rem"}},networks:v,spacing:m.spacing(1)})})]})),f.description&&(0,o.jsx)(u.Z,{component:"div",dangerouslySetInnerHTML:{__html:f.description},sx:{mt:2},variant:"body2"})]}))}))};var rC=rk,rP=i(31377),rO=(0,F.Z)((0,o.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function rj(r){return(0,G.ZP)("MuiChip",r)}let rA=(0,W.Z)("MuiChip",["root","sizeSmall","sizeMedium","colorPrimary","colorSecondary","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),rM=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"],rI=r=>{let{classes:n,disabled:i,size:o,color:a,onDelete:s,clickable:l,variant:c}=r,u={root:["root",c,i&&"disabled",`size${(0,tu.Z)(o)}`,`color${(0,tu.Z)(a)}`,l&&"clickable",l&&`clickableColor${(0,tu.Z)(a)}`,s&&"deletable",s&&`deletableColor${(0,tu.Z)(a)}`,`${c}${(0,tu.Z)(a)}`],label:["label",`label${(0,tu.Z)(o)}`],avatar:["avatar",`avatar${(0,tu.Z)(o)}`,`avatarColor${(0,tu.Z)(a)}`],icon:["icon",`icon${(0,tu.Z)(o)}`,`iconColor${(0,tu.Z)(a)}`],deleteIcon:["deleteIcon",`deleteIcon${(0,tu.Z)(o)}`,`deleteIconColor${(0,tu.Z)(a)}`,`deleteIcon${(0,tu.Z)(c)}Color${(0,tu.Z)(a)}`]};return(0,D.Z)(u,rj,n)},rZ=(0,L.ZP)("div",{name:"MuiChip",slot:"Root",overridesResolver:(r,n)=>{let{ownerState:i}=r,{color:o,clickable:a,onDelete:s,size:l,variant:c}=i;return[{[`& .${rA.avatar}`]:n.avatar},{[`& .${rA.avatar}`]:n[`avatar${(0,tu.Z)(l)}`]},{[`& .${rA.avatar}`]:n[`avatarColor${(0,tu.Z)(o)}`]},{[`& .${rA.icon}`]:n.icon},{[`& .${rA.icon}`]:n[`icon${(0,tu.Z)(l)}`]},{[`& .${rA.icon}`]:n[`iconColor${(0,tu.Z)(o)}`]},{[`& .${rA.deleteIcon}`]:n.deleteIcon},{[`& .${rA.deleteIcon}`]:n[`deleteIcon${(0,tu.Z)(l)}`]},{[`& .${rA.deleteIcon}`]:n[`deleteIconColor${(0,tu.Z)(o)}`]},{[`& .${rA.deleteIcon}`]:n[`deleteIcon${(0,tu.Z)(c)}Color${(0,tu.Z)(o)}`]},n.root,n[`size${(0,tu.Z)(l)}`],n[`color${(0,tu.Z)(o)}`],a&&n.clickable,a&&"default"!==o&&n[`clickableColor${(0,tu.Z)(o)})`],s&&n.deletable,s&&"default"!==o&&n[`deletableColor${(0,tu.Z)(o)}`],n[c],n[`${c}${(0,tu.Z)(o)}`]]}})(({theme:r,ownerState:n})=>{let i=(0,B.Fq)(r.palette.text.primary,.26),o="light"===r.palette.mode?r.palette.grey[700]:r.palette.grey[300];return(0,M.Z)({maxWidth:"100%",fontFamily:r.typography.fontFamily,fontSize:r.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(r.vars||r).palette.text.primary,backgroundColor:(r.vars||r).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:r.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${rA.disabled}`]:{opacity:(r.vars||r).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${rA.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:r.vars?r.vars.palette.Chip.defaultAvatarColor:o,fontSize:r.typography.pxToRem(12)},[`& .${rA.avatarColorPrimary}`]:{color:(r.vars||r).palette.primary.contrastText,backgroundColor:(r.vars||r).palette.primary.dark},[`& .${rA.avatarColorSecondary}`]:{color:(r.vars||r).palette.secondary.contrastText,backgroundColor:(r.vars||r).palette.secondary.dark},[`& .${rA.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:r.typography.pxToRem(10)},[`& .${rA.icon}`]:(0,M.Z)({color:r.vars?r.vars.palette.Chip.defaultIconColor:o,marginLeft:5,marginRight:-6},"small"===n.size&&{fontSize:18,marginLeft:4,marginRight:-4},"default"!==n.color&&{color:"inherit"}),[`& .${rA.deleteIcon}`]:(0,M.Z)({WebkitTapHighlightColor:"transparent",color:r.vars?`rgba(${r.vars.palette.text.primaryChannel} / 0.26)`:i,fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:r.vars?`rgba(${r.vars.palette.text.primaryChannel} / 0.4)`:(0,B.Fq)(i,.4)}},"small"===n.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==n.color&&{color:r.vars?`rgba(${r.vars.palette[n.color].contrastTextChannel} / 0.7)`:(0,B.Fq)(r.palette[n.color].contrastText,.7),"&:hover, &:active":{color:(r.vars||r).palette[n.color].contrastText}})},"small"===n.size&&{height:24},"default"!==n.color&&{backgroundColor:(r.vars||r).palette[n.color].main,color:(r.vars||r).palette[n.color].contrastText},n.onDelete&&{[`&.${rA.focusVisible}`]:{backgroundColor:r.vars?`rgba(${r.vars.palette.action.selectedChannel} / calc(${r.vars.palette.action.selectedOpacity+r.vars.palette.action.focusOpacity}))`:(0,B.Fq)(r.palette.action.selected,r.palette.action.selectedOpacity+r.palette.action.focusOpacity)}},n.onDelete&&"default"!==n.color&&{[`&.${rA.focusVisible}`]:{backgroundColor:(r.vars||r).palette[n.color].dark}})},({theme:r,ownerState:n})=>(0,M.Z)({},n.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",curs
229or:"pointer","&:hover":{backgroundColor:r.vars?`rgba(${r.vars.palette.action.selectedChannel} / calc(${r.vars.palette.action.selectedOpacity+r.vars.palette.action.hoverOpacity}))`:(0,B.Fq)(r.palette.action.selected,r.palette.action.selectedOpacity+r.palette.action.hoverOpacity)},[`&.${rA.focusVisible}`]:{backgroundColor:r.vars?`rgba(${r.vars.palette.action.selectedChannel} / calc(${r.vars.palette.action.selectedOpacity+r.vars.palette.action.focusOpacity}))`:(0,B.Fq)(r.palette.action.selected,r.palette.action.selectedOpacity+r.palette.action.focusOpacity)},"&:active":{boxShadow:(r.vars||r).shadows[1]}},n.clickable&&"default"!==n.color&&{[`&:hover, &.${rA.focusVisible}`]:{backgroundColor:(r.vars||r).palette[n.color].dark}}),({theme:r,ownerState:n})=>(0,M.Z)({},"outlined"===n.variant&&{backgroundColor:"transparent",border:r.vars?`1px solid ${r.vars.palette.Chip.defaultBorder}`:`1px solid ${"light"===r.palette.mode?r.palette.grey[400]:r.palette.grey[700]}`,[`&.${rA.clickable}:hover`]:{backgroundColor:(r.vars||r).palette.action.hover},[`&.${rA.focusVisible}`]:{backgroundColor:(r.vars||r).palette.action.focus},[`& .${rA.avatar}`]:{marginLeft:4},[`& .${rA.avatarSmall}`]:{marginLeft:2},[`& .${rA.icon}`]:{marginLeft:4},[`& .${rA.iconSmall}`]:{marginLeft:2},[`& .${rA.deleteIcon}`]:{marginRight:5},[`& .${rA.deleteIconSmall}`]:{marginRight:3}},"outlined"===n.variant&&"default"!==n.color&&{color:(r.vars||r).palette[n.color].main,border:`1px solid ${r.vars?`rgba(${r.vars.palette[n.color].mainChannel} / 0.7)`:(0,B.Fq)(r.palette[n.color].main,.7)}`,[`&.${rA.clickable}:hover`]:{backgroundColor:r.vars?`rgba(${r.vars.palette[n.color].mainChannel} / ${r.vars.palette.action.hoverOpacity})`:(0,B.Fq)(r.palette[n.color].main,r.palette.action.hoverOpacity)},[`&.${rA.focusVisible}`]:{backgroundColor:r.vars?`rgba(${r.vars.palette[n.color].mainChannel} / ${r.vars.palette.action.focusOpacity})`:(0,B.Fq)(r.palette[n.color].main,r.palette.action.focusOpacity)},[`& .${rA.deleteIcon}`]:{color:r.vars?`rgba(${r.vars.palette[n.color].mainChannel} / 0.7)`:(0,B.Fq)(r.palette[n.color].main,.7),"&:hover, &:active":{color:(r.vars||r).palette[n.color].main}}})),rR=(0,L.ZP)("span",{name:"MuiChip",slot:"Label",overridesResolver:(r,n)=>{let{ownerState:i}=r,{size:o}=i;return[n.label,n[`label${(0,tu.Z)(o)}`]]}})(({ownerState:r})=>(0,M.Z)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"small"===r.size&&{paddingLeft:8,paddingRight:8}));function rD(r){return"Backspace"===r.key||"Delete"===r.key}let rL=Z.forwardRef(function(r,n){let i=(0,z.Z)({props:r,name:"MuiChip"}),{avatar:a,className:s,clickable:l,color:c="default",component:u,deleteIcon:d,disabled:h=!1,icon:p,label:f,onClick:m,onDelete:g,onKeyDown:v,onKeyUp:y,size:b="medium",variant:x="filled"}=i,_=(0,I.Z)(i,rM),w=Z.useRef(null),S=(0,eq.Z)(w,n),T=r=>{r.stopPropagation(),g&&g(r)},E=r=>{r.currentTarget===r.target&&rD(r)&&r.preventDefault(),v&&v(r)},k=r=>{r.currentTarget===r.target&&(g&&rD(r)?g(r):"Escape"===r.key&&w.current&&w.current.blur()),y&&y(r)},C=!1!==l&&!!m||l,P=C||g?U.Z:u||"div",O=(0,M.Z)({},i,{component:P,disabled:h,size:b,color:c,onDelete:!!g,clickable:C,variant:x}),j=rI(O),A=P===U.Z?(0,M.Z)({component:u||"div",focusVisibleClassName:j.focusVisible},g&&{disableRipple:!0}):{},D=null;g&&(D=d&&Z.isValidElement(d)?Z.cloneElement(d,{className:(0,R.Z)(d.props.className,j.deleteIcon),onClick:T}):(0,o.jsx)(rO,{className:(0,R.Z)(j.deleteIcon),onClick:T}));let L=null;a&&Z.isValidElement(a)&&(L=Z.cloneElement(a,{className:(0,R.Z)(j.avatar,a.props.className)}));let B=null;return p&&Z.isValidElement(p)&&(B=Z.cloneElement(p,{className:(0,R.Z)(j.icon,p.props.className)})),(0,o.jsxs)(rZ,(0,M.Z)({as:P,className:(0,R.Z)(j.root,s),disabled:!!C&&!!h||void 0,onClick:m,onKeyDown:E,onKeyUp:k,ref:S,ownerState:O},A,_,{children:[L||B,(0,o.jsx)(rR,{className:(0,R.Z)(j.label),ownerState:O,children:f}),D]}))}),rz=r=>{let{href:n,label:i,variant:a="filled"}=r;return(0,o.jsx)(g.ID,Object.assign({href:n||"#",passHref:!0},{children:(0,o.jsx)(rL,{component:"a",label:i,variant:a})}))};var rB=rz},43169:function(r,n,i){"use strict";i.d(n,{Ny:function(){return o.Z},Fo:function(){return c.Z},$Y:function(){return u.Z},wp:function(){return d.Z},ki:function(){return g},nC:function(){return l.Z},XG:function(){return v.Z},y$:function(){return y.Z}}),i(38665);var o=i(85420);i(96421),i(69715),i(37447),i(67214),i(88235),i(22350);var a=i(41748);i(16211);var s=i(31858),l=i(85165),c=i(35034);i(17317),i(90976),i(1446),i(28223),i(61822),i(46034),i(31131),i(98755),i(97861),i(78529);var u=i(49287),d=i(72769),h=i(36492),p=i(60293);let f=(r,n)=>(0,a.ZP)(p.Z,{id:r},s.Z.MediaItem,n,void 0,void 0),m=r=>{let n=(0,l.Z)(),i=(0,h.a)([s.Z.MediaItem,r],()=>f(r,n),{enabled:!!r}),{data:o}=i;if(null==o?void 0:o.mediaItem){let{mediaItem:r}=o;return r}};var g=m;i(74236),i(30526),i(46631),i(67046),i(34684),i(44475),i(70686),i(26923),i(78378),i(72554);var v=i(40641);i(54912),i(60508),i(45619),i(84815),i(13001),i(62134),i(13876),i(99216),i(49048);var y=i(41920);i(62117)},38665:function(r,n,i){"use strict";i.d(n,{Z:function(){return m}});var o=i(11022),a=i(11752),s=i.n(a),l=i(11163),c=i(67294),u=i(61247);let d=r=>{let n=r.indexOf("#");return n>0?r.substring(0,n):r};var h=i(8881);let{publicRuntimeConfig:{protocol:p}}=s()(),f=()=>{let{host:r}=(0,h.Z)(),n=(0,l.useRouter)(),i=(0,c.useCallback)(n=>(0,u.m)("".concat(p,"://").concat(r).concat(n)),[r]),a=(0,c.useMemo)(()=>{var r;let a=i(null!==(r=(0,o.Z)(null==n?void 0:n.asPath.split("?")))&&void 0!==r?r:"");return(0,u.m)(d(a))},[i,null==n?void 0:n.asPath]);return{canonicalUrl:a,absoluteUrl:i}};var m=f},85420:function(r,n,i){"use strict";var o=i(36492),a=i(67294),s=i(5033),l=i(31858),c=i(85165);let u=()=>{let r=(0,c.Z)(),n=(0,a.useMemo)(()=>(0,s.Z)(r),[r]);return(0,o.a)(l.Z.Ads,n)};n.Z=u},96421:function(r,n,i){"use strict";var o=i(51594),a=i(23962),s=i(59751);let l=()=>{var r,n,i;let l=(0,a.H)();return null!==(i=null===(n=null===(r=null==l?void 0:l.blocks)||void 0===r?void 0:r.filter(r=>r.name===o.Z.CoreHeadingBlock))||void 0===n?void 0:n.map(r=>{var n;return{content:r.attributes.content,anchor:(0,s.Z)(r.attributes.content,r.originalContent),level:parseInt(null!==(n=r.attributes.level)&&void 0!==n?n:"3",10)}}))&&void 0!==i?i:[]};n.Z=l},69715:function(r,n,i){"use strict";var o=i(36492),a=i(67294),s=i(1990),l=i(31858),c=i(85165);let u=()=>{let r=(0,c.Z)(),n=(0,a.useMemo)(()=>(0,s.Z)(r),[r]);return(0,o.a)(l.Z.AuthorGeneralSettings,n)};n.Z=u},37447:function(r,n,i){"use strict";var o=i(64153),a=i(98755);let s=()=>{let{node:r}=(0,a.Z)();return(0,o.Z)(r)};n.Z=s},67214:function(r,n,i){"use strict";var o=i(56381),a=i(98755);let s=()=>{let{node:r}=(0,a.Z)();return(0,o.Z)(r)};n.Z=s},35034:function(r,n,i){"use strict";var o=i(36492),a=i(67294),s=i(18889),l=i(31858),c=i(85165);let u=()=>{let r=(0,c.Z)(),n=(0,a.useMemo)(()=>(0,s.Z)(r),[r]);return(0,o.a)(l.Z.ContentSettings,n)};n.Z=u}
229,17317:function(r,n,i){"use strict";i.d(n,{Z:function(){return d}});var o=i(36492);/*! js-cookie v3.0.5 | MIT */function a(r){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var o in i)r[o]=i[o]}return r}var s=function r(n,i){function o(r,o,s){if("undefined"!=typeof document){"number"==typeof(s=a({},i,s)).expires&&(s.expires=new Date(Date.now()+864e5*s.expires)),s.expires&&(s.expires=s.expires.toUTCString()),r=encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var c in s)s[c]&&(l+="; "+c,!0!==s[c]&&(l+="="+s[c].split(";")[0]));return document.cookie=r+"="+n.write(o,r)+l}}return Object.create({set:o,get:function(r){if("undefined"!=typeof document&&(!arguments.length||r)){for(var i=document.cookie?document.cookie.split("; "):[],o={},a=0;a<i.length;a++){var s=i[a].split("="),l=s.slice(1).join("=");try{var c=decodeURIComponent(s[0]);if(o[c]=n.read(l,c),r===c)break}catch(r){}}return r?o[r]:o}},remove:function(r,n){o(r,"",a({},n,{expires:-1}))},withAttributes:function(n){return r(this.converter,a({},this.attributes,n))},withConverter:function(n){return r(a({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(i)},converter:{value:Object.freeze(n)}})}({read:function(r){return'"'===r[0]&&(r=r.slice(1,-1)),r.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(r){return encodeURIComponent(r).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});let l=r=>{var n;return(null===(n=s.get("client_geo_country"))||void 0===n?void 0:n.toLowerCase())||r};var c=i(31858);let u=r=>{let{data:n}=(0,o.a)(c.Z.CountryCode,()=>l(r),{enabled:!0});return n};var d=u},90976:function(r,n,i){"use strict";i.d(n,{Z:function(){return g}});var o=i(85945),a=i(48228),s=i(41748),l=i(37340),c=i(65896),u=i(16487);function d(){let r=(0,l._)(["\n mutation CreateComment($input: CreateCommentInput!) {\n createComment(input: $input) {\n comment {\n ...CommentFragment\n }\n }\n }\n ","\n"]);return d=function(){return r},r}let h=(0,c.Ps)(d(),u.Z);var p=i(15300),f=i(85165);let m=r=>{let n=(0,o.NL)(),i=(0,f.Z)();return(0,a.D)(r=>{var n,o,a,l;return n=void 0,o=void 0,a=void 0,l=function*(){return(0,s.ZP)(h,{input:r},"createComment",i,void 0,void 0)},new(a||(a=Promise))(function(r,i){function s(r){try{u(l.next(r))}catch(r){i(r)}}function c(r){try{u(l.throw(r))}catch(r){i(r)}}function u(n){var i;n.done?r(n.value):((i=n.value)instanceof a?i:new a(function(r){r(i)})).then(s,c)}u((l=l.apply(n,o||[])).next())})},{onSettled:()=>{null==n||n.invalidateQueries(["template-query",p.Z.name,null==r?void 0:r.toString()])}})};var g=m},1446:function(r,n){"use strict";var i,o;(o=i||(i={})).Mobile="M",o.Tablet="T",o.Desktop="D",o.Other="O";let a=()=>{let r="undefined"==typeof navigator?"":navigator.userAgent;return r.match(/iphone|mobi/i)?i.Mobile:r.match(/ipad|android/i)?i.Tablet:r.match(/mac|win|x86_64/i)?i.Desktop:i.Other};n.Z=a},28223:function(r,n,i){"use strict";i.d(n,{Z:function(){return b}});var o=i(59403),a=i(22350);i(54912);var s=i(41748),l=i(37340),c=i(65896),u=i(64671),d=i(63451);function h(){let r=(0,l._)(["\n query FilteredPosts(\n $first: Int\n $last: Int\n $before: String\n $after: String\n $where: RootQueryToPostConnectionWhereArgs\n ) {\n posts(\n where: $where\n first: $first\n last: $last\n before: $before\n after: $after\n ) {\n pageInfo {\n ...PagePaginationInfoFragment\n }\n nodes {\n ...PostFragment\n }\n }\n }\n ","\n ","\n"]);return h=function(){return r},r}let p=(0,c.Ps)(h(),d.Z,u.p);var f=i(31858);let m=(r,n)=>[f.Z.FilteredPosts,...Object.values(n||{}),...Object.values(r)];var g=function(r){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.Yx,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return(0,s.ZP)(p,Object.assign(Object.assign({},n),{where:i||{}}),f.Z.FilteredPosts,r,void 0,void 0)},v=i(85165);let y=(r,n,i)=>{let a=(0,v.Z)(),s=(null==i?void 0:i.orderby)&&(null==i?void 0:i.orderby.length)>0?null==i?void 0:i.orderby[0]:void 0;return(0,o.N)(m(r,i),n=>{let{pageParam:o=r}=n;return g(a,o,i)},{initialData:n,getNextPageParam:n=>(null==n?void 0:n.posts.pageInfo.hasNextPage)?{first:r.first,after:(null==n?void 0:n.posts.pageInfo.endCursor)||null,last:null,before:null,orderField:null==s?void 0:s.field,order:null==s?void 0:s.order}:void 0})};var b=y},61822:function(r,n,i){"use strict";var o=i(85420),a=i(49287),s=i(13001),l=i(40641),c=i(49048);let u=()=>{let r=(0,a.Z)(),{data:n}=(0,c.Z)(),{data:i}=(0,l.Z)(),{data:u}=(0,s.Z)(),{data:d}=(0,o.Z)();return{ads:d,layout:r,siteSettings:u,themeSettings:i,tokens:n}};n.Z=u},46034:function(r,n,i){"use strict";var o=i(36492),a=i(96188),s=i(85165);let l=r=>{let n=(0,s.Z)();return(0,o.a)([r.name],()=>(0,a.tg)(r,n))};n.Z=l},97861:function(r,n,i){"use strict";var o=i(67294);n.Z=function(r){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},[i,a]=(0,o.useState)(!1),{rootMargin:s,threshold:l}=n;return(0,o.useEffect)(()=>
229{if(!(r.current&&"IntersectionObserver"in window))return()=>{};let n=new IntersectionObserver(r=>{let[n]=r;a(n.isIntersecting)},{rootMargin:s,threshold:l});return n.observe(r.current),()=>{n.disconnect()}},[r,s,l]),i}},78529:function(r,n,i){"use strict";i.d(n,{Z:function(){return m}});var o=i(59403),a=i(22350);i(54912);var s=i(88235),l=i(41748),c=i(29753),u=i(31858);let d=function(r){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0;return[u.Z.LatestPosts,...n,...Object.values(r),...Object.values(i||{})]};var h=function(r,n){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.Yx,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return(0,l.ZP)(c.Z,Object.assign(Object.assign({excludeCategory:r},i),o||s.e),u.Z.LatestPosts,n,void 0,void 0)},p=i(85165);let f=(r,n,i,a)=>{let s=(0,p.Z)();return(0,o.N)(d(n,r,a),i=>{let{pageParam:o=n}=i;return h(r,s,o,a)},{initialData:i,getNextPageParam:r=>(null==r?void 0:r.posts.pageInfo.hasNextPage)?{first:n.first,after:(null==r?void 0:r.posts.pageInfo.endCursor)||null,last:null,before:null,orderField:null==a?void 0:a.orderField,order:null==a?void 0:a.order}:void 0})};var m=f},49287:function(r,n,i){"use strict";var o=i(36492),a=i(67294),s=i(67082),l=i(80589),c=i(31858),u=i(85165);let d=()=>{let r=(0,u.Z)(),n=(0,a.useMemo)(()=>(0,l.Z)(r),[r]),{data:i}=(0,o.a)(c.Z.Layout,n);return null!=i?i:(0,s.Z)(void 0)};n.Z=d},72769:function(r,n,i){"use strict";var o=i(98010),a=i(35034);let s=(r,n)=>{let i=new Date(r);return i.toLocaleTimeString("en-us",{timeZone:n,timeZoneName:"short"}).split(" ").slice(-1).toString()},l=r=>{switch(r){case"EST":return"-05:00";case"EDT":return"-04:00";case"PST":return"-08:00";case"PDT":return"-07:00";default:return"+00:00"}},c=r=>{let{data:n}=(0,a.Z)(),i=(null==n?void 0:n.timezone)||"America/New_York",c=s(r,i),u=l(c),d=(0,o.Z)(r,null,!1,"yyyy-MM-dd'T'HH:mm:ss"),h=(0,o.Z)(r);return{iso:d+u,view:"".concat(h," ").concat(c)}};n.Z=c},74236:function(r,n,i){"use strict";i.d(n,{Z:function(){return p}});var o=i(48228),a=i(41748),s=i(37340),l=i(65896);function c(){let r=(0,s._)(["\n mutation newsletterSignup($email: String!) {\n newsletterSignup(input: { email: $email }) {\n result\n error\n }\n }\n"]);return c=function(){return r},r}let u=(0,l.Ps)(c());var d=i(85165);let h=()=>{let r=(0,d.Z)(),{data:n,error:i,isLoading:s,mutate:l}=(0,o.D)(n=>{var i,o,s,l;let{email:c}=n;return i=void 0,o=void 0,s=void 0,l=function*(){return(0,a.ZP)(u,{email:c},"newsletterSignup",r,void 0,void 0)},new(s||(s=Promise))(function(r,n){function a(r){try{u(l.next(r))}catch(r){n(r)}}function c(r){try{u(l.throw(r))}catch(r){n(r)}}function u(n){var i;n.done?r(n.value):((i=n.value)instanceof s?i:new s(function(r){r(i)})).then(a,c)}u((l=l.apply(i,o||[])).next())})});return{data:n,error:i,isLoading:s,mutate:l}};var p=h},30526:function(r,n,i){"use strict";i.d(n,{Z:function(){return h}});var o=i(36492),a=i(41748),s=i(32723);let l=(r,n)=>{var i,o,l,c;return i=void 0,o=void 0,l=void 0,c=function*(){let i=yield(0,a.ZP)((0,s.z)(n),{previousArticles:r,size:25,offset:0,autoDetect:!0},"getNextInfiniteScrollArticle",n,void 0,void 0);return i?i.nextInfiniteScrollArticle:null},new(l||(l=Promise))(function(r,n){function a(r){try{u(c.next(r))}catch(r){n(r)}}function s(r){try{u(c.throw(r))}catch(r){n(r)}}function u(n){var i;n.done?r(n.value):((i=n.value)instanceof l?i:new l(function(r){r(i)})).then(a,s)}u((c=c.apply(i,o||[])).next())})};var c=i(31858),u=i(85165);let d=r=>{let n=(0,u.Z)(),i=[...c.Z.NextInfiniteScrollArticle,...r];return(0,o.a)(i,()=>l(r,n))};var h=d},46631:function(r,n,i){"use strict";var o=i(47018),a=i(34684),s=i(44475),l=i(70686),c=i(26923),u=i(78378),d=i(72554),h=i(57053),p=i(85165),f=i(40641);let m=r=>{let n=(0,p.Z)(),i=null==r?void 0:r.type,m=(0,d.U)("Post"===i&&r?r:null),{data:g}=(0,f.Z)();if(r)switch(i){case"Post":return{contentType:o.z.article,template:m?(0,a.x)(m,g||h.$,n).name:""};case"Category":return{contentType:o.z.category,template:(0,l.y)({category:r},g||h.$,n).name};case"Tag":return{contentType:o.z.tag,template:(0,u.G)(r,g||h.$,n).name};case"AuthorTag":return{contentType:o.z.tag,template:(0,s.pC)(r,g||h.$,n).name};case"Page":{let i=(0,c.f)(r,g||h.$,n).name;return{contentType:(null==r?void 0:r.uri)==="/"?o.z.homepage:o.z.page,template:i}}default:return}};n.Z=m},67046:function(r,n,i){"use strict";var o=i(98755);let a={notFound:!0},s=["AuthorTag","Page","Post","Category","Tag","Authors"],l=()=>{let{location:r,node:n,status:i}=(0,o.Z)();
229return n&&n.type&&404!==i&&410!==i&&s.includes(n.type)?301===i?{redirect:{destination:r,permanent:!0}}:302===i?{redirect:{destination:r,permanent:!1}}:null:a};n.Z=l},98755:function(r,n,i){"use strict";var o=i(36492),a=i(11163),s=i(22350),l=i(75164),c=i(69057),u=i(85165);let d=()=>{var r;let{query:n}=(0,a.useRouter)(),{getParams:i,path:d,query:h}=(0,s.uZ)(n),p=(0,u.Z)(),f=(0,l.Z)(n),{data:m}=(0,o.a)((0,c.ox)(d,f,i,h),()=>(0,c.ZP)({url:d,originalUrl:f,paginationQuery:h,theme:p}),{enabled:!1,keepPreviousData:!0});return null!==(r=null==m?void 0:m.resolveUrl)&&void 0!==r?r:{node:void 0,status:void 0,location:void 0}};n.Z=d},84815:function(r,n,i){"use strict";var o=i(78923),a=i(38665),s=i(98755),l=i(85165);let c=()=>{let r=(0,l.Z)(),{canonicalUrl:n}=(0,a.Z)(),{node:i}=(0,s.Z)();return(0,o.Z)({node:i,routerCanonicalUrl:n,theme:r})};n.Z=c},13001:function(r,n,i){"use strict";var o=i(36492),a=i(97408),s=i(31858),l=i(85165);let c=()=>{let r=(0,l.Z)();return(0,o.a)(s.Z.SiteSettings,()=>(0,a.Z)(r))};n.Z=c},85165:function(r,n,i){"use strict";var o=i(67294),a=i(60655),s=i(12783);let l=()=>(0,o.useContext)(s.dH)||a.Z;n.Z=l},62134:function(r,n,i){"use strict";var o=i(36492),a=i(67294),s=i(10968),l=i(58502),c=i(31858),u=i(85165);let d=()=>{let r=(0,u.Z)(),n=(0,a.useMemo)(()=>(0,l.Z)(r),[r]),{data:i}=(0,o.a)(c.Z.SpotIM,n);return null!=i?i:s.E};n.Z=d},13876:function(r,n,i){"use strict";i.d(n,{Z:function(){return p}});var o=i(48228),a=i(41748),s=i(37340),l=i(65896);function c(){let r=(0,s._)(["\n mutation SubmitGravityFormik(\n $id: ID!\n $fieldValues: [FormFieldValuesInput]!\n ) {\n submitGfForm(\n input: { id: $id, fieldValues: $fieldValues, saveAsDraft: false }\n ) {\n errors {\n id\n message\n }\n entry {\n id\n ... on GfSubmittedEntry {\n id\n databaseId\n }\n ... on GfDraftEntry {\n resumeToken\n }\n }\n }\n }\n"]);return c=function(){return r},r}let u=(0,l.Ps)(c());var d=i(85165);let h=()=>{let r=(0,d.Z)(),{data:n,error:i,isLoading:s,mutate:l}=(0,o.D)(n=>{var i,o,s,l;let{fieldValues:c,id:d}=n;return i=void 0,o=void 0,s=void 0,l=function*(){return(0,a.ZP)(u,{id:d,fieldValues:c},"submitGravityFormik",r,void 0,void 0)},new(s||(s=Promise))(function(r,n){function a(r){try{u(l.next(r))}catch(r){n(r)}}function c(r){try{u(l.throw(r))}catch(r){n(r)}}function u(n){var i;n.done?r(n.value):((i=n.value)instanceof s?i:new s(function(r){r(i)})).then(a,c)}u((l=l.apply(i,o||[])).next())})});return{data:n,error:i,isLoading:s,mutate:l}};var p=h},99216:function(r,n,i){"use strict";var o=i(36492),a=i(96188),s=i(61822),l=i(85165);let c=(r,n)=>{var i;let c=(0,s.Z)(),u=(0,l.Z)(),d=null===(i=r.queryArguments)||void 0===i?void 0:i.call(r,n,c),h=(0,a.Pb)(r,d);return(0,o.a)(h,()=>(0,a.ZO)(r,n,c,u))};n.Z=c},40641:function(r,n,i){"use strict";var o=i(36492),a=i(67294),s=i(48857),l=i(31858),c=i(85165);let u=()=>{let r=(0,c.Z)(),n=(0,a.useMemo)(()=>(0,s.Z)(r),[r]);return(0,o.a)(l.Z.ThemeSettings,n)};n.Z=u},49048:function(r,n,i){"use strict";var o=i(36492),a=i(67294),s=i(24691),l=i(31858),c=i(85165);let u=()=>{let r=(0,c.Z)(),n=(0,a.useMemo)(()=>(0,s.Z)(r),[r]);return(0,o.a)(l.Z.Tokens,n)};n.Z=u},41920:function(r,n,i){"use strict";var o=i(85165);let a={sectionBackgroundColor:"primary.main",loadMoreButtonColor:"white",sectionTitleColor:"white",buyNowButtonColor:"white",buyNowButtonColorHover:"white",buyNowCardColor:"white",sectionsTitleColor:"primary.main",buyNowButtonBackground:"primary.main",buyNowButtonBackgroundHover:"primary.main",postCategoryBorder:"primary.main",buyNowCardBorder:"primary.main"},s=()=>{let{options:r}=(0,o.Z)();return Object.assign(Object.assign({},a),null==r?void 0:r.colors)};n.Z=s},62117:function(r,n,i){"use strict";var o=i(67294);let a=()=>{let[r,n]=(0,o.useState)(window.innerWidth),[i,a]=(0,o.useState)(window.innerHeight),s=(0,o.useCallback)(()=>{r&&r===window.innerWidth||(n(window.innerWidth),a(window.innerHeight))},[r]);return(0,o.useEffect)(()=>(s(),window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)),[s]),{width:r,height:i}};n.Z=a},6017:function(r,n,i){"use strict";var o=i(64153),a=i(56381),s=i(24983);let l=r=>{var n,i,l,c,u,d,h;let{node:p,url:f}=r;if(!(null===(n=window.pSUPERFLY)||void 0===n?void 0:n.virtualPage))return;let m=p&&"name"in p?p.name:"",g=p&&"title"in p&&p.title||"",v=(0,o.Z)(p),y=(0,a.Z)(p),b=(null===(c=null===(l=null===(i=null==v?void 0:v.nodes)||void 0===i?void 0:i.map(r=>{let{name:n}=r;return n}))||void 0===l?void 0:l.filter(s.Z))||void 0===c?void 0:c.join(","))||"",x=(null===(d=null===(u=null==y?void 0:y.map(r=>{let{name:n}=r;return n}))||void 0===u?void 0:u.filter(s.Z))||void 0===d?void 0:d.join(","))||m||"";null===(h=window.pSUPERFLY)||void 0===h||h.virtualPage({path:f,authors:b,sections:x,title:g})};n.Z=l},51924:function(r,n){"use strict";let i=r=>{let{url:n}=r;window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"nextjs-navigation-change",page:n})};n.Z=i},76655:function(r,n,i){"use strict";var o=i(93166),a=i(97924);let s=r=>{var n,i,o,s,l;return null!==(l=null===(s=null===(o=null===(i=null===(n=null==r?void 0:r.no
229des)||void 0===n?void 0:n.filter(a.Z))||void 0===i?void 0:i.map(r=>{let{name:n}=r;return n}))||void 0===o?void 0:o.filter(a.Z))||void 0===s?void 0:s.join(", "))&&void 0!==l?l:""},l=r=>{var n,i,a,l,c,u;let d=s(r.categories),h=s(r.tags),p=s(r.internalContentTypes),f=s(r.authorTags),m=null===(n=r.internalTags)||void 0===n?void 0:n.join(", "),g=null===(i=r.primaryCategory)||void 0===i?void 0:i.name,v=(null===(a=r.seo)||void 0===a?void 0:a.metaRobotsNoindex)==="noindex"?"noindex, nofollow":"max-image-preview:large",y=(0,o.Z)(r.excerpt),b=(null===(l=r.seo)||void 0===l?void 0:l.metaKeywords)||(null===(c=r.seo)||void 0===c?void 0:c.focuskw);return{Categories:d,Author:f,Excerpt:y,Keywords:b||"","Primary Category":g,"CMS Tags":h,"Content Types":p,"Internal Tags":m,"Item ID":r.databaseId,"Published Date":r.date,"Modified Date":r.modified,"Meta Robots":v,"CMS Title":r.title||"","Page Type":(null===(u=null==r?void 0:r.seo)||void 0===u?void 0:u.opengraphType)||""}},c=r=>{var n,i,o,a;let l=s(r.authorTags),c=(null===(n=r.seo)||void 0===n?void 0:n.metaRobotsNoindex)==="noindex"?"noindex, nofollow":"max-image-preview:large",u=(null===(i=r.seo)||void 0===i?void 0:i.metaKeywords)||(null===(o=r.seo)||void 0===o?void 0:o.focuskw);return{Author:l,Keywords:u||"","Item ID":r.databaseId,"Published Date":r.date,"Modified Date":r.modified,"Meta Robots":c,"CMS Title":r.title||"","Page Type":(null===(a=null==r?void 0:r.seo)||void 0===a?void 0:a.opengraphType)||""}},u=r=>{var n,i,o;let a=(null===(n=r.seo)||void 0===n?void 0:n.metaRobotsNoindex)==="noindex"?"noindex, nofollow":"max-image-preview:large",s=(null===(i=r.seo)||void 0===i?void 0:i.metaKeywords)||(null===(o=r.seo)||void 0===o?void 0:o.focuskw);return{Keywords:s||"","Item ID":r.databaseId,"Meta Robots":a,"CMS Title":r.name||"","Page Type":"category"}},d=r=>{var n,i,o;let a=(null===(n=r.seo)||void 0===n?void 0:n.metaRobotsNoindex)==="noindex"?"noindex, nofollow":"max-image-preview:large",s=(null===(i=r.seo)||void 0===i?void 0:i.metaKeywords)||(null===(o=r.seo)||void 0===o?void 0:o.focuskw);return{Keywords:s||"","Meta Robots":a,"CMS Title":r.name||"","Page Type":"author","Item ID":r.databaseId}},h=r=>{var n,i,o;let a=(null===(n=r.seo)||void 0===n?void 0:n.metaRobotsNoindex)==="noindex"?"noindex, nofollow":"max-image-preview:large",s=(null===(i=r.seo)||void 0===i?void 0:i.metaKeywords)||(null===(o=r.seo)||void 0===o?void 0:o.focuskw);return{Keywords:s||"","Meta Robots":a,"CMS Title":r.name||"","Page Type":"tag","Item ID":r.databaseId}},p=r=>{let{node:n,seoCanonical:i}=r;if(!n)return;window.dataLayer=window.dataLayer||[];let o=null;"Post"===n.type?o=l(n):"Page"===n.type?o=c(n):"Category"===n.type?o=u(n):"AuthorTag"===n.type?o=d(n):"Tag"===n.type&&(o=h(n)),window.dataLayer.push(Object.assign({event:"pageview",Permalink:i,"Canonical URL":i},o||{}))};n.Z=p},31131:function(r,n,i){"use strict";i(31858)},22350:function(r,n,i){"use strict";i.d(n,{No:function(){return y},Yx:function(){return g},fu:function(){return T},uZ:function(){return S},yJ:function(){return E},yU:function(){return x}});var o=i(11163),a=i(17563),s=i(67294),l=i(38665),c=i(40641),u=i(75164),d=i(61247),h=i(60101),p=i(28268),f=i(57053),m=i(88235);let g={first:25,last:null,before:null,after:null},v={size:25,offset:0,orderField:m.e.orderField};Object.assign(Object.assign({},v),{categoryIn:[],orderField:m.e.orderField});let y=function(r){let n=!(arguments.length>1)||void 0===arguments[1]||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:25;return n?{first:i,last:null,before:null,after:null==r?void 0:r.endCursor}:{first:null,last:i,before:null==r?void 0:r.startCursor,after:null}},b=function(r){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:25,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"DATE";return{offset:n*(r-1),size:n,orderField:i}},x=(r,n,i)=>{if(!r||!n||!i)return{relUrlNext:null,relUrlPrev:null};let o=(0,p.Z)(i),a=null==o?void 0:o.pathname,s=r=>o?"".concat(o.protocol,"//").concat(o.hostname).concat((0,d.R)(r)):null;return{relUrlNext:a&&n&&r<n?s(1===r?"".concat((0,h.Z)(a),"/page/2"):a.replace("/page/".concat(r),"/page/".concat(r+1))):null,relUrlPrev:a&&r>1?s(2===r?a.replace("/page/".concat(r),""):a.replace("/page/".concat(r),"/page/".concat(r-1))):null}},_=["utm_","fbclid"],w=r=>{if(!r)return!1;let n=r.toLowerCase();return!_.some(r=>n.startsWith(r))},S=function(r){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:25,i=(0,u.Z)(r),o=null!=r?r:{},a=Object.fromEntries(Object.keys(o).sort().map(r=>[r,o[r]])),s=Object.entries(a).filter(r=>{let[n]=r;return"path"!==n&&w(n)}).map(r=>{let[n,i]=r;return"".concat(n,"=").concat(i)}
229).join("&"),[l,c]=i.split("/page/"),h="string"==typeof(null==r?void 0:r.page)?r.page:void 0,p=parseInt(h||c||"1",10),f="string"==typeof(null==r?void 0:r.pageSize)?parseInt(r.pageSize,10):n,m=(null==r?void 0:r.pageSort)==="popular"?"MODIFIED":"DATE";return{path:(0,d.R)(l)||"/",page:p,query:b(p,f,m),getParams:s}},T=()=>{let r=(0,o.useRouter)(),{absoluteUrl:n}=(0,l.Z)(),{data:i}=(0,c.Z)(),u=(null==i?void 0:i.categoryPostsPerPage)||f.$.categoryPostsPerPage,{page:p,path:m,query:g}=S(null==r?void 0:r.query,u),v=(0,s.useCallback)((r,i)=>{let o=i?a.stringify(i):void 0,s=(0,d.R)("".concat((0,h.Z)(m)).concat(r&&1!==r?"/page/".concat(r):""));return n("".concat(s).concat(o?"?".concat(o):""))},[n,m]);return{query:g,pageNum:p,getPageUri:v}},E=r=>{let{pagination:n,total:i}=r,{data:o}=(0,c.Z)(),a=(null==o?void 0:o.optAuthorPostsPerPage)||f.$.optAuthorPostsPerPage;return{numberOfRows:i||0,onPageChange:()=>{},page:n.pageNum,rowsPerPage:n.query.size,getPageUri:n.getPageUri,customPagination:{firstPageSize:a,pageSize:a},allowChangeRowPerPage:!1}}},78923:function(r,n,i){"use strict";var o=i(23538),a=i(41748);let s=r=>{var n;let{node:i,routerCanonicalUrl:s,theme:l}=r;if((null==i?void 0:i.type)!=="Post"&&(null==i?void 0:i.type)!=="Page")return s;let c=null===(n=null==i?void 0:i.seo)||void 0===n?void 0:n.canonical;if(!c||!(0,o.Z)(c))return s;let u=(0,a.Zb)(null==l?void 0:l.graphqlClient,null==l?void 0:l.themeId),{wpDomain:d}=u;if(!c.toLowerCase().includes(d))return c;if(!(0,o.Z)(s))return s;let h=new URL(c),p=new URL(s);return h.pathname!==p.pathname?(p.pathname=h.pathname,p.href):s};n.Z=s},51472:function(r,n,i){"use strict";var o,a;i.d(n,{G:function(){return o}}),(a=o||(o={})).article="article",a.author="author",a.category="category",a.page="page",a.tag="tag"},12783:function(r,n,i){"use strict";i.d(n,{Hm:function(){return d},dH:function(){return c}});var o=i(85893),a=i(67294);i(60655);var s=i(82648),l=i(79965);let c=(0,a.createContext)(void 0),u=r=>{let{children:n,multiTheme:i}=r,a=(0,s.ZP)();return(0,o.jsx)(c.Provider,Object.assign({value:(0,l.JC)(a,i)},{children:n}))},d=r=>{let{children:n,hostname:i,multiTheme:a}=r;return(0,o.jsx)(s.m7,Object.assign({hostname:i},{children:(0,o.jsx)(u,Object.assign({multiTheme:a},{children:n}))}))}},10879:function(r,n,i){"use strict";i.d(n,{Z:function(){return d}});var o=i(27771),a=i(48568),s=i(11363),l=(0,i(41298).Z)(function(r,n,i,o){(0,s.Z)(r,n,i,o)}),c=i(60655);let u=(r,n)=>{if((0,o.Z)(r))return r.concat(n)};function d(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.Z,i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return i?(0,a.Z)({},n,r):l({},n,r,u)}},79965:function(r,n,i){"use strict";i.d(n,{JC:function(){return l},gh:function(){return a}}),i(82648);var o=i(10879);let a=(r,n)=>{var i;let a=null!==(i=n.variations[r])&&void 0!==i?i:void 0;return a||console.warn("Could not find theme spec with ID ".concat(r,". Using base theme")),Object.assign(Object.assign({},(0,o.Z)(null!=a?a:{},n.base,!1)),{themeId:r})},s=(r,n)=>{var i,o;let a=Object.keys(n.variations)[0];if(!r)return a;let s=null===(o=null===(i=null==r?void 0:r.replace(".com",""))||void 0===i?void 0:i.replace(".net",""))||void 0===o?void 0:o.replace(".org","");return s in n.variations?s:(console.warn("Could not find theme spec with ID ".concat(s,". Using default theme instead.")),a)},l=(r,n)=>{var i;let o=null!==(i=n.getThemeIdByDomain)&&void 0!==i?i:s,l=o(r,n);return a(l,n)}},23655:function(r,n,i){"use strict";i.d(n,{$Z:function(){return c},Zi:function(){return d},hh:function(){return u},W$:function(){return h}});var o=i(67294),a=i(51472),s=i(54275);let l=(r,n,i)=>r.pageTypes[i].templates.some(r=>r.name===n),c=r=>(0,o.forwardRef)(r),u=r=>(0,s.Z)(r,a.G.article),d=(r,n)=>r.pageTypes.article.templates.find(r=>r.name===n)||u(r),h=(r,n)=>l(r,n,a.G.article)},34684:function(r,n,i){"use strict";i.d(n,{x:function(){return l}});var o=i(63098),a=i(23655);let s=(r,n)=>{var i,s;let l=(0,o.Z)(null===(i=r.postTemplate)||void 0===i?void 0:i.postTemplate,"")||(null===(s=r.primaryCategory)||void 0===s?void 0:s.slug);return l&&(0,a.W$)(n,l)?(0,a.Zi)(n,l):(0,a.hh)(n)},l=(r,n,i)=>{var o,a,l;return null!==(l=null===(a=null===(o=i.pageTypes.article)||void 0===o?void 0:o.getTemplate)||void 0===a?void 0:a.call(o,r,n,i))&&void 0!==l?l:s(r,i)}},44475:function(r,n,i){"use strict";i.d(n,{pC:function(){return u}});var o=i(51472),a=i(54275);let s=r=>(0,a.Z)(r,o.G.author),l=(r,n)=>r.pageTypes.author.templates.find(r=>r.name===n)||s(r),c=(r,n)=>{var i;let o=null===(i=r.pageTemplate)||void 0===i?void 0:i.pageTemplate,a=Array.isArray(o)?o[0]:o,c=a?l(n,a):null;return c||s(n)},u=(r,n,i)=>{var o,a,s;return null!==(s=null===(a=null===(o=i.pageTypes.author)||void 0===o?void 0:o.getTemplate)||void 0===a?void 0:a.call(o,r,n,i))&&void 0!==s?s:c(r,i)}},70686:function(r,n,i){"use strict";i.d(n,{y:function(){return c}});var o=i(51472),a=i(54275);let s=r=>(0,a.Z)(r,o.G.category),l=(r,n,i)=>s(i),c=(r,n,i)=>{var o,a,s;return null!==(s=null===(a=null===(o=i.pageTypes.category)||void 0===o?void 0:o.getTemplate)||void 0===a?void 0:a.call(o,r,n,i))&&void 0!==s?s:l(r,n,i)}},26923:function(r,n,i){"use strict";i.d(n,{f:function(){return s}});var o=i(82665);let a=(r,n)=>{var i;let a=null===(i=r.postTemplate)||void 0===i?void 0:i.postTemplate,s=Array.isArray(a)?a[0]:a;return(s?(0,o.OY)(n,s):null)||(0,o.AX)(n)},s=(r,n,i)=>{var o,s,l;return null!==(l=null===(s=null===(o=i.pageTypes.page)||void 0===o?void 0:o.getTemplate)||void 0===s?void 0:s.call(o,r,n,i))&&void 0!==l?l:a(r,i)};n.Z=a},78378:function(r,n,i){"use strict";i.d(n,{G:function(){return l}});var o=i(51472),a=i(54275);let s=r=>(0,a.Z)(r,o.G.tag),l=(r,n,i)=>{var o,a,l;return null!==(l=null===(a=null===(o=i.pageTypes.tag)||void 0===o?void 0:o.getTemplate)||void 0===a?void 0:a.call(o,r,n,i))&&void 0!==l?l:s(i)}},82665:function(r,n,i){"use strict";i.d(n,{AX:function(){return s},OY:function(){return l}});var o=i(51472),a=i(54275);let s=r=>(0,a.Z)(r,o.G.page),l=(r,n)=>r.pageTypes.page.templates.find(r=>r.name===n)||s(r)},54275:function(r,n){"use strict";let i=(r,n)=>r.pageTypes[n].templates[0];n.Z=i},96188:function(r,n,i){"use strict";i.d(n,{Pb:function(){return l},ZO:function(){return s},tg:function(){return c}}),i(54912);var o=i(24983),a=i(41748);let s=(r,n,i,o)=>{var s,l;let c=null!==(l=null===(s=r.queryArguments)||void 0===s?void 0:s.call(r,n,i))&&void 0!==l?l:{};return(0,a.ZP)(r.query,c,r.name,o,void 0,void 0)},l=(r,n)=>{let i=Object.values(null!=n?n:{}),a=r.cacheKeys&&r.cacheSeparately;return["template-query",a?"cacheSeparately":null,r.name,...i].filter(o.Z)},c=(r,n)=>(0,a.ZP)(r.query,{},r.name,n,void 0,void 0)},67035:function(r,n){"use strict";let i=r=>null==r?"":r?r.endsWith("/")?r:"".concat(r,"/"):r;n.Z=i},71743:function(r,n){"use strict";let i=r=>/^https?:\/\//i.test(r||"");n.Z=i},93166:function(r,n,i){"use strict";i.d(n,{Z:function(){return s}});
229var o=i(69111),a=i(5438);function s(r){var n;return r?(n=(0,a.Z)(r))?(0,o.decode)(n):n:r||""}},60328:function(r,n,i){"use strict";var o=i(28268);let a={format:"auto",optimize:"high",width:"1440"},s=(r,n)=>{if(!r)return"";let i=!r.startsWith("http"),s="https://dummy",l=(0,o.Z)(r,i?s:void 0);return l?(l.searchParams.delete("auto"),n&&Object.entries(n).forEach(r=>{let[n,i]=r;void 0===i||l.searchParams.has(n)||l.searchParams.set(n,i)}),Object.entries(a).forEach(r=>{let[n,i]=r;void 0===i||l.searchParams.has(n)||l.searchParams.set(n,i)}),l.searchParams.sort(),l.toString().replace(s,"")):""};n.Z=s},21596:function(r,n,i){"use strict";var o=i(60328);let a=[1,1.5,2,3],s=(r,n,i)=>a.map(a=>{let s={width:"".concat(n),dpr:"".concat(a),crop:i?"".concat(i.widthRatio,":").concat(i.heightRatio):void 0};return"".concat((0,o.Z)(r,s)," ").concat(a,"x")}).join(", ");n.Z=s},59751:function(r,n,i){"use strict";var o=i(93166),a=i(68192);let s=(r,n)=>{let i="";if(null==n?void 0:n.includes(' id="')){let r=n.match(/^<\s*[\w-]+[^>]*\bid\s*=\s*["']([^"']+)["']/i);r&&(i=r[1])}return i||(i=(0,a.Z)((0,o.Z)(r))),i};n.Z=s},64153:function(r,n,i){"use strict";var o=i(97924);let a=r=>{var n,i,a,s;switch(null==r?void 0:r.type){case"Post":return{nodes:(null===(i=null===(n=null==r?void 0:r.authorTags)||void 0===n?void 0:n.nodes)||void 0===i?void 0:i.filter(o.Z))||[]};case"Page":return{nodes:(null===(s=null===(a=r.authorTags)||void 0===a?void 0:a.nodes)||void 0===s?void 0:s.filter(o.Z))||[]};default:return}};n.Z=a},56381:function(r,n,i){"use strict";var o=i(97924);let a=r=>{var n,i;switch(null==r?void 0:r.type){case"Post":return null===(i=null===(n=null==r?void 0:r.categories)||void 0===n?void 0:n.nodes)||void 0===i?void 0:i.filter(o.Z);case"Category":return[r];default:return}};n.Z=a},63098:function(r,n){"use strict";n.Z=function(r,n){return r&&null!==r[0]&&void 0!==r[0]?r[0]:n}},98010:function(r,n,i){"use strict";var o=i(11510);n.Z=function(r,n,i){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"MMM d, yyyy h:mm a",s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return n&&i?(s?"Updated ":"")+(0,o.Z)(new Date(n),a):r?(s?"Published ":"")+(0,o.Z)(new Date(r),a):null}},236:function(r,n,i){"use strict";i.d(n,{lu:function(){return l},nG:function(){return s}});var o=i(11022),a=i(935);let s="â",l="â",c=[s,'"',l],u=r=>{let n=(0,o.Z)(r),i=(0,a.Z)(r);return!!n&&!!i&&c.includes(n)&&c.includes(i)};n.ZP=u},81400:function(r,n){"use strict";let i=(r,n)=>!!n&&r.substring(0,3)==="<".concat(n,">")&&r.substring(r.length-4)==="</".concat(n,">");n.Z=i},23538:function(r,n,i){"use strict";let o=["http:","https:"],a=(r,n)=>{let i;if(!r)return!1;try{i=new URL(r,n)}catch(r){return!1}return o.includes(i.protocol)};n.Z=a},75164:function(r,n,i){"use strict";var o=i(82387);let a=r=>{if(!(null==r?void 0:r.path))return"";let n="string"==typeof r.path?r.path:"/".concat(r.path.join("/"));return(0,o.normalizePathTrailingSlash)(n)};n.Z=a},61247:function(r,n,i){"use strict";i.d(n,{R:function(){return c},m:function(){return u}});var o=i(11752),a=i.n(o),s=i(64046),l=i(67734);let c=r=>{var n;let i=a()();if(!r.startsWith("/"))return r;let{hash:o,pathname:c,query:u}=(0,s.parsePath)(r);return(null===(n=i.publicRuntimeConfig)||void 0===n?void 0:n.trailingSlash)?/\.[^/]+\/?$/.test(c)?"".concat((0,l.removeTrailingSlash)(c)).concat(u).concat(o):c.endsWith("/")?"".concat(c).concat(u).concat(o):"".concat(c,"/").concat(u).concat(o):"".concat((0,l.removeTrailingSlash)(c)).concat(u).concat(o)},u=r=>{var n,i;let o=null!==(i=null===(n=r.match(/^((?:https?:)?[/]{2})([^/]+)/i))||void 0===n?void 0:n[0])&&void 0!==i?i:"",a=o?r.slice(o.length):r,s=c(a&&!a.startsWith("/")?"/".concat(a):a);return"".concat(o).concat(o&&!s?"/":"").concat(s)}},85454:function(r,n){"use strict";let i=(r,n)=>{let i;let o=[],a=RegExp("".concat(n,"_(\\d+)_(.*)"));return Object.keys(r).forEach(n=>{if(i=a.exec(n)){let a=parseInt(i[1],10),s=i[2],l=r[n];o[a]=Object.assign({[s]:l},o[a]||{})}}),o};n.Z=i},75439:function(r,n,i){"use strict";i.d(n,{Z:function(){return a}});var o=i(23538);function a(r,n){let i=n.toString();if(!(null==r?void 0:r.startsWith("www."))||n.host.startsWith("www."))return n;if((0,o.Z)(i)&&r==="www.".concat(n.host)){let r=new URL(i);return r.host="www.".concat(n.host),r}return n}},54912:function(){},3814:function(r,n,i){"use strict";var o=i(86355),a=i(62938);let s={},l=r=>{if(void 0!==s[r])return s[r];let n=(0,o.Qc)(r),i=[],l=n.definitions.filter(r=>{if("FragmentDefinition"!==r.kind)return!0;let n="".concat(r.name.value,"-").concat(r.typeCondition.name.value),o=i.includes(n);return!o&&(i.push(n),!0)}),c=(0,a.print)(Object.assign(Object.assign({},n),{definitions:l}));return s[r]=c,c};n.Z=l},60101:function(r,n){"use strict";let i=r=>r.endsWith("/")?r.slice(0,-1):r;n.Z=i},76631:function(r,n){"use strict";let i=r=>r.substring(r.indexOf(">")+1,r.lastIndexOf("<"));n.Z=i},68192:function(r,n,i){"use strict";i.d(n,{Z:function(){return a}});var o=i(36309);function a(r){return(function(r,n){let i=r.trim().replace(/\W+/g,"_");return o.ES3[i]||o.ESnext[i]||/^\d/.test(i)?"_"+i:i})(r).toLowerCase()}},5438:function(r,n,i){"use strict";function o(r){return r?r.replace(/<\/?[^>]+>/gi,""):r}i.d(n,{Z:function(){return o}})},28268:function(r,n){"use strict";let i=(r,n)=>{try{return new URL(r,n)}catch(r){if(r instanceof TypeError)return;throw r}};n.Z=i},97924:function(r,n,i){"use strict";n.Z=r=>null!==r},24983:function(r,n){"use strict";n.Z=r=>null!=r},82648:function(r,n,i){"use strict";i.d(n,{m7:function(){return h}});var o=i(85893),a=i(11163),s=i(67294),l=i(34155);let c=r=>r.replace(".localhost:3000",".".concat(l.env.NEXT_PUBLIC_ROOT_DOMAIN)).replace("lcl.","").replace("stg.","").replace("www.","").replace("prodnew.","").replace(".builddemo",""),u=(r,n)=>{var i,o,a;if(!r.includes("/domains/"))return n?c(n):null;let s=r.split("/domains/"),l=null!==(a=null===(o=null===(i=null==s?void 0:s[1])||void 0===i?void 0:i.split("/"))||void 0===o?void 0:o[0])&&void 0!==a?a:null;return null===l?null:new URL("http://".concat(l)).hostname},d=s.createContext(null),h=r=>{let{children:n,hostname:i}=r,a=window.location.hostname?window.location.hostname:null;return(0,o.jsx)(d.Provider,Object.assign({value:null!=i?i:a},{children:n}))},p=()=>{let r=(0,a.useRouter)(),n=(0,s.useContext)(d),i=u(r.pathname,n);return i};n.ZP=p},8881:function(r,n,i){"use strict";i.d(n,{N:function(){return a},Z:function(){return s}});var o=i(67294);let a=(0,o.createContext)({});function s(){return(0,o.useContext)(a)}},72554:function(r,n,i){"use strict";i.d(n,{U:function(){return h}});var o=i(67294),a=i(93166),s=i(97924),l=i(12771),c=i(17140);let u=r=>Object.assign(Object.assign({},r),{name:(null==r?void 0:r.name)?(0,a.Z)(r.name):""}),d=r=>{var n,i,o,d,h,p,f,m,g,v,y,b,x,_,w;let S=(null===(n=r.contributors)||void 0===n?void 0:n.filter(s.Z))||[];return Object.assign(Object.assign(Object.assign({},r),(0,c.Z)(r)),{showComments:null!==r.commentStatus&&"closed"!==r.commentStatus,databaseId:r.databaseId,blocks:r.blocks.map(l.Z),c
229ategories:(null===(o=null===(i=r.categories)||void 0===i?void 0:i.nodes)||void 0===o?void 0:o.filter(s.Z).map(r=>u(r)))||[],excerpt:(0,a.Z)(r.excerpt),internalTags:null===(d=r.internalTags)||void 0===d?void 0:d.filter(s.Z),primaryCategory:r.primaryCategory?u(r.primaryCategory):null,relatedStories:(null===(p=null===(h=r.relatedStories)||void 0===h?void 0:h.relatedStories)||void 0===p?void 0:p.filter(s.Z))||[],relatedStoriesTitle:(null===(f=r.relatedStories)||void 0===f?void 0:f.title)||"",showModifiedDate:Boolean(r.showModifiedDate),spotImEnabled:!(null===(m=r.spotImOption)||void 0===m?void 0:m.spotImDisabledForThisPost),title:(0,a.Z)(r.title),authorTags:{nodes:(null===(v=null===(g=r.authorTags)||void 0===g?void 0:g.nodes)||void 0===v?void 0:v.filter(s.Z))||[]},contributors:S,breadcrumbs:(null===(y=r.breadcrumbs)||void 0===y?void 0:y.filter(s.Z))||[],featuredImageUrl:r.featuredImageUrl||"",featuredImageAltText:r.featuredImageAltText||"",featuredImageListUrl:r.featuredImageListUrl||"",modified:r.modified||"",reviewIntro:r.reviewIntro||"",tags:{nodes:(null===(x=null===(b=r.tags)||void 0===b?void 0:b.nodes)||void 0===x?void 0:x.filter(s.Z))||[]},uri:r.uri||"",date:r.date||"",template:(null===(_=r.template)||void 0===_?void 0:_.templateName)||"",sponsored:(null===(w=r.sponsored)||void 0===w?void 0:w.enabled)?r.sponsored:null})};function h(r){return(0,o.useMemo)(()=>r?d(r):null,[r])}},12771:function(r,n){"use strict";var i=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&0>n.indexOf(o)&&(i[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)0>n.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(i[o[a]]=r[o[a]]);return i};let o=r=>{var{attributes:n,attributesJSON:a,innerBlocks:s}=r,l=i(r,["attributes","attributesJSON","innerBlocks"]);let c=a?JSON.parse(a):{};return Object.assign(Object.assign({innerBlocks:s?s.map(o):[]},l),{attributes:Object.assign(Object.assign(Object.assign({},n),c),{className:(null==c?void 0:c.className)||""})})};n.Z=o},17140:function(r,n){"use strict";let i=r=>{var n;let i={node:(null===(n=r.featuredImage)||void 0===n?void 0:n.node)||{altText:r.featuredImageAltText||"",sourceUrl:r.featuredImageUrl||"",mediaDetails:{height:1080,width:1920},cropPosition:null,title:null,mediaAdditionalData:null,caption:null,id:""}};return Object.assign(Object.assign({},r),{featuredImage:i})};n.Z=i},67082:function(r,n,i){"use strict";i.d(n,{O:function(){return a}});var o,a,s=i(63098),l=i(23538),c=i(97924),u=i(76978);(o=a||(a={})).NoSticky="no_sticky",o.Sticky="sticky",o.StickyOnScroll="stick_on_scroll";let d=r=>{var n,i,o,d,h,p,f,m,g,v,y,b,x,_,w,S,T,E,k,C,P,O,j,A,M,I,Z,R,D,L,z,B,F,N,U,V,q,$,G,W,H,X,Y,K,J;let Q=null===(n=null==r?void 0:r.flexpressCMSSettings)||void 0===n?void 0:n.generalOptions,ee=null!==(o=null===(i=null==Q?void 0:Q.canonicalUrlFields)||void 0===i?void 0:i.frontendUrl)&&void 0!==o?o:null,et=null===(d=null==Q?void 0:Q.facebookMeta)||void 0===d?void 0:d.facebookDomainVerification,er=(null===(p=null===(h=null==Q?void 0:Q.optGeneralImgFav)||void 0===h?void 0:h.node)||void 0===p?void 0:p.sourceUrl)||"",en=(null===(g=null===(m=null===(f=null==Q?void 0:Q.optGeneralMainLogo)||void 0===f?void 0:f.taskPurpose)||void 0===m?void 0:m.node)||void 0===g?void 0:g.sourceUrl)||"",ei=null===(b=null===(y=null===(v=null==Q?void 0:Q.optLogoFooter)||void 0===v?void 0:v.taskPurpose)||void 0===y?void 0:y.node)||void 0===b?void 0:b.sourceUrl,eo=null==Q?void 0:Q.optGeneralCopyright,ea=null===(x=null==Q?void 0:Q.optGeneralImgDefault)||void 0===x?void 0:x.node,es={enable:null===(_=null==Q?void 0:Q.hambugerTnp)||void 0===_?void 0:_.hambugerEnable,textColor:null===(w=null==Q?void 0:Q.hambugerTnp)||void 0===w?void 0:w.hambugerTextColor,backgroundColor:null===(S=null==Q?void 0:Q.hambugerTnp)||void 0===S?void 0:S.hambugerBackgroundColor,logo:null===(T=null==Q?void 0:Q.hambugerTnp)||void 0===T?void 0:T.hambugerLogo},el={favicon:(null===(E=null==Q?void 0:Q.optGeneralImgFav)||void 0===E?void 0:E.node)&&Object.assign(Object.assign({},null==Q?void 0:Q.optGeneralImgFav.node),{sourceUrl:er}),footer:ei&&(null===(C=null===(k=null==Q?void 0:Q.optLogoFooter)||void 0===k?void 0:k.taskPurpose)||void 0===C?void 0:C.node)?Object.assign(Object.assign({},null==Q?void 0:Q.optLogoFooter.taskPurpose.node),{sourceUrl:ei}):null,main:(null===(O=null===(P=null==Q?void 0:Q.optGeneralMainLogo)||void 0===P?void 0:P.taskPurpose)||void 0===O?void 0:O.node)&&Object.assign(Object.assign({},null==Q?void 0:Q.optGeneralMainLogo.taskPurpose.node),{sourceUrl:en})},ec=(null===(j=null==Q?void 0:Q.socialItem)||void 0===j?void 0:j.filter(c.Z).map(r=>{let{taskPurpose:n}
229=r;return n?{count:n.count,icon:(0,s.Z)(n.icon,"")||null,name:n.name?[n.name]:null,url:n.url}:null}).filter(c.Z))||[],eu=(null==Q?void 0:Q.optNewsletter)?Object.assign(Object.assign({},Q.optNewsletter),{background:Q.optNewsletter.background?{sourceUrl:null!==(M=null===(A=Q.optNewsletter.background.node)||void 0===A?void 0:A.sourceUrl)&&void 0!==M?M:null,altTxt:null!==(Z=null===(I=Q.optNewsletter.background.node)||void 0===I?void 0:I.altText)&&void 0!==Z?Z:null}:null}):void 0,ed={enabled:(null==Q?void 0:Q.showNewslettersLinkOnNavbar)||!1,href:(null==Q?void 0:Q.newsletterLinkOnNavbar)||"/newsletter",label:(null==Q?void 0:Q.newsletterLabelOnNavbar)||"Newsletter Signup"},eh=null==Q?void 0:Q.newsletterFooter,ep={description:null!==(D=null===(R=null==r?void 0:r.generalSettings)||void 0===R?void 0:R.description)&&void 0!==D?D:"",name:null!==(z=null===(L=null==r?void 0:r.generalSettings)||void 0===L?void 0:L.title)&&void 0!==z?z:"",domain:ee&&(0,l.Z)(ee)?new URL(ee).hostname:"",frontendUrl:null!=ee?ee:""},ef={categories:(null===(U=null===(N=null===(F=null===(B=null==Q?void 0:Q.optApplyNewsarticleSchema)||void 0===B?void 0:B.categories)||void 0===F?void 0:F.nodes)||void 0===N?void 0:N.filter(c.Z))||void 0===U?void 0:U.map(r=>{let{slug:n}=r;return n}))||[],tags:(null===(G=null===($=null===(q=null===(V=null==Q?void 0:Q.optApplyNewsarticleSchema)||void 0===V?void 0:V.tags)||void 0===q?void 0:q.nodes)||void 0===$?void 0:$.filter(c.Z))||void 0===G?void 0:G.map(r=>{let{slug:n}=r;return n}))||[]},em={sticky:(null===(W=null==Q?void 0:Q.optHeader)||void 0===W?void 0:W.sticky)||a.NoSticky,reviewText:(null===(H=null==Q?void 0:Q.optReview)||void 0===H?void 0:H.optReviewHeaderDescription)||""},eg=null==Q?void 0:Q.promotionalStripe,ev={status:(null==eg?void 0:eg.status)||!1,content:(null==eg?void 0:eg.content)||"",linkHoverColor:(null==eg?void 0:eg.linkHoverColor)||"",color:(null==eg?void 0:eg.color)||"",bgColor:(null==eg?void 0:eg.bgColor)||"",linkColor:(null==eg?void 0:eg.linkColor)||"",enableAll:(null==eg?void 0:eg.enableAll)||!1,enableArticle:(null==eg?void 0:eg.enableArticle)||!1,enableCategory:(null==eg?void 0:eg.enableCategory)||!1,enableHomepage:(null==eg?void 0:eg.enableHomepage)||!1,enablePage:(null==eg?void 0:eg.enablePage)||!1,enableTag:(null==eg?void 0:eg.enableTag)||!1,enableAuthor:(null==eg?void 0:eg.enableAuthor)||!1},ey={taxonomySlug:(null==Q?void 0:Q.optAuthorTaxonomySlug)||"author",plural:{enabled:(null===(X=null==Q?void 0:Q.authorPlural)||void 0===X?void 0:X.optAuthorPluralEnable)||!1,perPage:(null===(Y=null==Q?void 0:Q.authorPlural)||void 0===Y?void 0:Y.optAuthorPluralPerPage)||10},customBylines:(null==Q?void 0:Q.optAuthorPostBylines)||!1};return{copyright:eo,defaultImage:ea,facebookVerification:et,hamburgerMenu:es,headerOptions:em,footerLinks:null==Q?void 0:Q.footerLinks,logos:el,menus:(0,u.ZP)(null==r?void 0:r.menus),networks:ec,newsArticlesTaxonomies:ef,newsletter:eu,newsletterFooter:eh,newsletterNavbar:ed,promotionalStripe:ev,site:ep,authorSettings:ey,enablePinterestIcon:null==Q?void 0:Q.pinterestIcon,blocks:{CoreGalleryBlock:{showCredits:null===(K=null==Q?void 0:Q.coreGalleryOptions)||void 0===K?void 0:K.showCredits,showImageCaptionsInMainCaption:null===(J=null==Q?void 0:Q.coreGalleryOptions)||void 0===J?void 0:J.showImageCaptionsInMainCaption}}}};n.Z=d},76978:function(r,n,i){"use strict";i.d(n,{Xe:function(){return a}});var o=i(97924);let a={Header:"MAIN_NAVIGATION",Footer:"FOOTER_NAVIGATION",Hamburger:"HEADER_NAVIGATION"},s=r=>r.filter(r=>null===r.parentId).map(n=>Object.assign(Object.assign({},n),{children:r.filter(r=>r.parentId===n.id).map(n=>Object.assign(Object.assign({},n),{children:r.filter(r=>r.parentId===n.id)}))})),l=r=>{var n,i,l;let c=null!==(l=null===(i=null===(n=null==r?void 0:r.nodes)||void 0===n?void 0:n.filter(o.Z))||void 0===i?void 0:i.reduce((r,n)=>{var i;let{locations:a,menuItems:s}=n;return s&&a&&(null===(i=a.filter(o.Z))||void 0===i||i.forEach(n=>{var i;r[n]=(null===(i=null==s?void 0:s.nodes)||void 0===i?void 0:i.filter(o.Z))||[]})),r},{}))&&void 0!==l?l:{},u={[a.Header]:s((null==c?void 0:c[a.Header])||[]),[a.Hamburger]:s((null==c?void 0:c[a.Hamburger])||[]),[a.Footer]:s((null==c?void 0:c[a.Footer])||[])},d=Object.keys(u),h=Object.fromEntries(Object.keys(c).filter(r=>!d.includes(r)).map(r=>[r,s((null==c?void 0:c[r])||[])]));return Object.assign(Object.assign({},h),u)};n.ZP=l},10968:function(r,n,i){"use strict";i.d(n,{E:function(){return o}});let o={enabled:!1,adsEnabled:!1,siteId:"",socialReviews:!1},a=r=>{var n,i,o,a,s;let l=null===(n=null==r?void 0:r.flexpressCMSSettings)||void 0===n?void 0:n.generalOptions;return{enabled:null!==(i=null==l?void 0:l.optSpotimEnabled)&&void 0!==i&&i,adsEnabled:null!==(o=null==l?void 0:l.optSpotimAdsEnabled)&&void 0!==o&&o,siteId:null!==(a=null==l?void 0:l.optSpotimId)&&void 0!==a?a:"",socialReviews:null!==(s=null==l?void 0:l.optSpotimSocialReviews)&&void 0!==s&&s}};n.Z=a},57053:function(r,n,i){"use strict";i.d(n,{$:function(){return a}});let o=r=>{var n,i,o,a,s,l,c;let u=null===(n=null==r?void 0:r.flexpressCMSSettings)||void 0===n?void 0:n.generalOptions,d=null===(i=null==u?void 0:u.refeedTimestamp)||void 0===i?void 0:i.homePage,h=null===(o=null==u?void 0:u.refeedTimestamp)||void 0===o?void 0:o.category;return{ctaButtonLabel:null==u?void 0:u.optCtaButtonLabel,tagSupportDisable:(null==u?void 0:u.optTagSupportDisable)||!1,tagsOnPost:{displayTags:(null===(a=null==u?void 0:u.tagsOnPost)||void 0===a?void 0:a.displayTags)||!1,numberOfTags:parseInt((null===(s=null==u?void 0:u.tagsOnPost)||void 0===s?void 0:s.numberOfTags)||"5",10)},searchResultPageSize:(null==u?void 0:u.optSearchResultsPostsPerPage)||20,optAuthorPostsPerPage:(null==u?void 0:u.optAuthorPostsPerPage)||20,c
229ategoryPostsPerPage:(null==u?void 0:u.optCategoryPostsPerPage)||16,isHomepageRefeed:d,isCategoryRefeed:h,enableBreadcrumbs:!!(null==u?void 0:u.breadcrumbs),infiniteScroll:{enabled:(null===(l=null==u?void 0:u.infiniteScroll)||void 0===l?void 0:l.enabled)||!1},wpComments:{enabled:(null===(c=null==u?void 0:u.wpComments)||void 0===c?void 0:c.enabled)===!0}}},a={ctaButtonLabel:"",tagSupportDisable:!1,tagsOnPost:{displayTags:!1,numberOfTags:5},searchResultPageSize:20,optAuthorPostsPerPage:20,categoryPostsPerPage:16,isHomepageRefeed:!1,isCategoryRefeed:!1,enableBreadcrumbs:!1,infiniteScroll:{enabled:!1},wpComments:{enabled:!1}};n.Z=o},75903:function(r,n,i){"use strict";var o=i(37340),a=i(65896),s=i(58747);function l(){let r=(0,o._)(["\n fragment AuthorTagsNodeFragment on AuthorTag {\n slug\n name\n uri\n databaseId\n description\n count\n author {\n authorFirstName\n authorLastName\n authorTitle\n authorAvatar {\n node {\n ...MediaFragment\n }\n }\n authorSocial {\n url\n icon\n }\n }\n seo {\n metaRobotsNoindex\n }\n }\n ","\n"]);return l=function(){return r},r}let c=(0,a.Ps)(l(),s.Z);n.Z=c},27422:function(r,n,i){"use strict";i.d(n,{Z:function(){return ew}});var o=i(37340),a=i(65896),s=i(58747);function l(){let r=(0,o._)(["\n fragment AcfGraphicalCtaBlockFragment on AcfGraphicalCtaBlock {\n image {\n ...MediaFragment\n }\n label\n headline\n deck\n buttonText\n url\n orientation\n }\n ","\n"]);return l=function(){return r},r}let c=(0,a.Ps)(l(),s.Z);function u(){let r=(0,o._)(["\n fragment AcfProductSummaryBlockFragment on AcfProductSummaryBlock {\n headings\n title\n }\n ","\n"]);return u=function(){return r},r}let d=(0,a.Ps)(u(),s.Z);function h(){let r=(0,o._)(["\n fragment YoastSeoTableOfContentsBlockAttributesFragment on YoastSeoTableOfContentsBlockAttributes {\n title\n maxHeadingLevel\n }\n\n fragment YoastSeoTableOfContentsBlockFragment on YoastSeoTableOfContentsBlock {\n attributes {\n ...YoastSeoTableOfContentsBlockAttributesFragment\n }\n }\n"]);return h=function(){return r},r}let p=(0,a.Ps)(h());function f(){let r=(0,o._)(["\n fragment AcfArticleBlockFragment on AcfArticleBlock {\n article {\n ...PostFragment\n }\n orientation\n }\n ","\n"]);return f=function(){return r},r}let m=(0,a.Ps)(f(),s.Z);var g=i(64671),v=i(63451);function y(){let r=(0,o._)(["\n fragment AcfArticleListBlockFragment on AcfArticleListBlock {\n title\n layout\n postsCount\n actionButtonType\n actionButtonLabel\n actionButtonLink\n postsDeduplicationEnabled\n includeSectionDivider\n where\n posts {\n nodes {\n ...PostFragment\n }\n pageInfo {\n ...PagePaginationInfoFragment\n }\n }\n }\n ","\n ","\n"]);return y=function(){return r},r}let b=(0,a.Ps)(y(),v.Z,g.p);function x(){let r=(0,o._)(["\n fragment AcfCallToActionBlockFragment on AcfCallToActionBlock {\n brand {\n featuredImage {\n node {\n ...MediaFragment\n }\n }\n }\n }\n ","\n"]);return x=function(){return r},r}let _=(0,a.Ps)(x(),s.Z);function w(){let r=(0,o._)(["\n fragment AcfHowtostepBlockFragment on AcfHowtostepBlock {\n howtoStep {\n name\n text\n id\n }\n }\n"]);return w=function(){return r},r}let S=(0,a.Ps)(w());function T(){let r=(0,o._)(["\n fragment AcfImageWithSubtitleBlockFragment on AcfImageWithSubtitleBlock {\n image {\n ...MediaFragment\n }\n }\n ","\n"]);return T=function(){return r},r}let E=(0,a.Ps)(T(),s.Z);function k(){let r=(0,o._)(["\n fragment CoreAudioBlockFragment on CoreAudioBlock {\n originalContent\n }\n"]);return k=function(){return r},r}let C=(0,a.Ps)(k());function P(){let r=(0,o._)(["\n fragment CoreImageBlockFragment on CoreImageBlock {\n attributes {\n ... on CoreImageBlockAttributes {\n alt\n caption\n creditText\n height\n url\n width\n }\n }\n originalContent\n }\n"]);return P=function(){return r},r}let O=(0,a.Ps)(P());function j(){let r=(0,o._)(["\n fragment CoreGalleryBlockFragment on CoreGalleryBlock {\n attributes {\n ... on CoreGalleryBlockAttributes {\n columns\n caption\n imageCrop\n aspectRatio\n galleryType\n images {\n alt\n caption\n fullUrl\n id\n link\n url\n }\n }\n }\n innerBlocks {\n ...CoreImageBlockFragment\n }\n }\n ","\n"]);return j=function(){return r},r}let A=(0,a.Ps)(j(),O);function M(){let r=(0,o._)(["\n fragment CoreHtmlBlockFragment on CoreHtmlBlock {\n originalContent\n }\n"]);return M=function(){return r},r}let I=(0,a.Ps)(M());function Z(){let r=(0,o._)(["\n fragment AcfInlinePostBlockFragment on AcfInlinePostBlock {\n inlinePost {\n post {\n title\n uri\n blocks {\n name\n order\n attributesJSON\n ... on CoreParagraphBlock {\n originalContent\n }\n ... on CoreHeadingBlock {\n originalContent\n }\n ...CoreGalleryBlockFragment\n ...CoreHtmlBlockFragment\n ...CoreImageBlockFragment\n ...CoreAudioBlockFragment\n }\n }\n showDescription\n }\n }\n ","\n ","\n ","\n ","\n"]);return Z=function(){return r},r}let R=(0,a.Ps)(Z(),A,I,O,C);function D(){let r=(0,o._)(["\n fragment AcfListArticleBlockFragment on AcfListArticleBlock {\n title\n showShareButton\n showLoadMoreButton\n loadM
229oreLabel\n layout\n postsCount\n excludedCategoryIds\n posts {\n nodes {\n ...PostFragment\n }\n pageInfo {\n ...PagePaginationInfoFragment\n }\n }\n }\n ","\n ","\n"]);return D=function(){return r},r}let L=(0,a.Ps)(D(),v.Z,g.p);function z(){let r=(0,o._)(["\n fragment AcfProductCardBlockFragment on AcfProductCardBlock {\n image {\n ...MediaFragment\n }\n }\n ","\n"]);return z=function(){return r},r}let B=(0,a.Ps)(z(),s.Z);function F(){let r=(0,o._)(["\n fragment AcfProductTableBlockFragment on AcfProductTableBlock {\n items {\n image {\n ...MediaFragment\n }\n }\n }\n ","\n"]);return F=function(){return r},r}let N=(0,a.Ps)(F(),s.Z);function U(){let r=(0,o._)(["\n fragment AcfRecipeBlockFragment on AcfRecipeBlock {\n recipe {\n author\n category\n cook_time {\n days\n hours\n minutes\n }\n cuisine\n suitable_for_diet\n chicory {\n button {\n background\n borderRadius\n color\n fontSize\n height\n useCustomStyle\n width\n }\n adsInjEnabled\n }\n description\n image\n ingredients {\n title\n items {\n ingredient\n measurement\n quantity\n }\n }\n instructions {\n text\n name\n }\n keywords\n name\n nutrition\n carbohydrate_content\n cholesterol_content\n fat_content\n fiber_content\n protein_content\n saturated_fat_content\n serving_size\n sodium_content\n sugar_content\n trans_fat_content\n unsaturated_fat_content\n prep_time {\n days\n hours\n minutes\n }\n pub_date\n serves\n }\n ...ExtendAcfRecipeBlockFragment\n }\n"]);return U=function(){return r},r}let V=(0,a.Ps)(U());var q=i(86033);function $(){let r=(0,o._)(["\n fragment AcfSidebarblockBlockFragment on AcfSidebarblockBlock {\n category {\n ...CategoryLinkFragment\n }\n title\n type\n viewAllLabel\n showShareButton\n showViewAllButton\n posts {\n nodes {\n ...PostFragment\n }\n }\n }\n ","\n ","\n"]);return $=function(){return r},r}let G=(0,a.Ps)($(),q.Z,v.Z);function W(){let r=(0,o._)(["\n fragment AcfSingleToutSmallBlockFragment on AcfSingleToutSmallBlock {\n title\n categories {\n name\n uri\n }\n tags {\n name\n uri\n }\n postsList {\n title\n uri\n }\n }\n"]);return W=function(){return r},r}let H=(0,a.Ps)(W());function X(){let r=(0,o._)(["\n fragment AcfSitemapblockBlockFragment on AcfSitemapblockBlock {\n title\n type\n links {\n id\n parentId\n title\n url\n }\n }\n"]);return X=function(){return r},r}let Y=(0,a.Ps)(X());function K(){let r=(0,o._)(["\n fragment AcfToolsAndMaterialsBlockFragment on AcfToolsandmaterialsBlock {\n toolsAndMaterials {\n resources {\n name\n type\n quantity\n link\n resourceImage {\n ...MediaFragment\n }\n }\n }\n }\n ","\n"]);return K=function(){return r},r}let J=(0,a.Ps)(K(),s.Z);function Q(){let r=(0,o._)(["\n fragment AcfTopstoryBlockFragment on AcfTopstoryBlock {\n post {\n ...PostFragment\n }\n }\n ","\n"]);return Q=function(){return r},r}let ee=(0,a.Ps)(Q(),v.Z);function et(){let r=(0,o._)(["\n fragment AcfToutCategoryBlockFragment on AcfToutCategoryBlock {\n category {\n ...CategoryLinkFragment\n }\n title\n type\n viewAllLabel\n posts {\n nodes {\n ...PostFragment\n }\n }\n }\n ","\n ","\n"]);return et=function(){return r},r}let er=(0,a.Ps)(et(),q.Z,v.Z);var en=i(45885);function ei(){let r=(0,o._)(["\n fragment AcfArticleGridBlockFragment on AcfArticleGridBlock {\n posts(\n first: 100\n where: {\n offsetPagination: {\n size: $size\n offset: $offset\n autoDetect: $autoDetectPagination\n contentKind: BLOCK\n }\n }\n ) {\n nodes {\n databaseId\n date\n featuredImageAltText\n featuredImageUrl\n featuredImage {\n node {\n ...MediaFragment\n }\n }\n id\n modified\n showModifiedDate\n title\n uri\n authorTags {\n nodes {\n name\n uri\n count\n }\n }\n primaryCategory {\n ...CategoryLinkFragment\n }\n }\n pageInfo {\n ...PageOffsetPaginationInfoFragment\n }\n }\n }\n ","\n ","\n"]);return ei=function(){return r},r}let eo=(0,a.Ps)(ei(),en.s,q.Z);function ea(){let r=(0,o._)(["\n fragment AcfArticlesSliderFragment on AcfArticlesSliderBlock {\n posts(first: 100) {\n nodes {\n uri\n title\n excerpt\n featuredImageAltText\n featuredImageUrl\n featuredImage {\n node {\n ...MediaFragment\n }\n }\n primaryCategory {\n uri\n name\n }\n }\n }\n }\n ","\n"]);return ea=function(){return r},r}let es=(0,a.Ps)(ea(),s.Z);function el(){let r=(0,o._)(["\n fragment CoreColumnsBlockFragment on CoreColumnsBlock {\n attributes {\n ... on CoreColumnsBlockAttributes {\n align\n anchor\n backgroundColor\n borderColor\n className\n fontFamily\n fontSize\n gradient\n isStackedOnMobile\n layout\n lock\n metadata\n style\n textColor\n verticalAlignment\n }\n }\n }\n"]);return el=function(){return r},r}let ec=(0,a.Ps)(el());function eu(){let r=(0,o._)(["\n fragment CoreLatestPostsBlockFragment on CoreLatestPostsBlock {\n html\n }\n"]);return eu=function(){return r},r}let ed=(0,a.Ps)(eu());function eh(){let r=(0,o._)(["\n fragment AcfLatestRecipesBlockFragment on AcfLatestRecipesBlock {\n posts(first: 100) {\n nodes {\n databaseId\n featuredImageAltText\n featuredImageUrl\n title\n uri\n }\n }\n terms {\n nodes {\n uri\n }\n }\n }\n"]);return eh=function(){return r},r}let ep=(0,a.Ps)(eh());function ef(){let r=(0,o._)(["\n fragment AcfProductListLightBlockFragment on AcfProductListLightBlock {\n products {\n databaseId\n productMeta {\n title\n offerUrl\n }\n featuredImage {\n node {\n ...MediaFragment\n }\n }\n }\n }\n ","\n"]);return ef=function(){return r},r}let em=(0,a.Ps)(ef(),s.Z);function eg(){let r=(0,o._)(["\n fragment YoastSeoBreadcrumbsBlockFragment on YoastSeoBreadcrumbsBlock {\n breadcrumbs {\n text\n uri\n }\n }\n"]);return eg=function(){return r},r}let ev=(0,a.Ps)(eg());function ey(){let r=(0,o._)(["\n fragment BlockFragment on Block {\n name\n order\n attributesJSON\n ... on CoreParagraphBlock {\n originalContent\n }\n ... on CoreHeadingBlock {\n originalContent\n }\n ...ExtendBlockFragment\n ...AcfArticleGridBlockFragment\n ...AcfArticlesSliderFragment\n ...AcfLatestRecipesBlockFragment\n ...AcfProductListLightBlockFragment\n ...AcfRecipeBlockFragment\n ...CoreAudioBlockFragment\n ...CoreColumnsBlockFragment\n ...CoreGalleryBlockFragment\n ...CoreHtmlBlockFragment\n ...CoreImageBlockFragment\n ...CoreLatestPostsBlockFragment\n ...YoastSeoBreadcrumbsBlockFragment\n ...AcfTopstoryBlockFragment\n ...AcfToutCategoryBlockFragment\n ...AcfSidebarblockBlockFragment\n ...AcfListArticleBlockFragment\n ...AcfArticleListBlockFragment\n ...AcfProductCardBlockFragment\n ...AcfProductTableBlockFragment\n ...AcfCallToActionBlockFragment\n ...AcfToolsAndMaterialsBlockFragment\n ...AcfHowtostepBlockFragment\n ...AcfGraphicalCtaBlockFragment\n ...AcfSingleToutSmallBlockFragment\n ...AcfArticleBlockFragment\n ...AcfImageWithSubtitleBlockFragment\n ...AcfSitemapblockBlockFragment\n ...AcfProductSummaryBlockFragment\n ...YoastSeoTableOfContentsBlockFragment\n ...AcfInlinePostBlockFragment\n }\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n"]);return ey=function(){return r},r}function eb(){let r=(0,o._)(["\n fragment BlocksFragment on Block {\n ...BlockFragment\n innerBlocks {\n ...BlockFragment\n innerBlocks {\n ...BlockFragment\n innerBlocks {\n ...BlockFragment\n innerBlocks {\n ...BlockFragment\n innerBlocks {\n ...BlockFragment\n innerBlocks {\n ...BlockFragment\n innerBlocks {\n ...BlockFragment\n innerBlocks {\n ...BlockFragment\n innerBlocks {\n ...BlockFragment\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n ","\n"]);return eb=function(){return r},r}let ex=(0,a.Ps)(ey(),eo,es,V,C,ec,A,I,O,ed,ev,ep,em,ee,er,G,L,b,B,N,_,J,S,H,c,m,E,Y,d,p,R),e_=(0,a.Ps)(eb(),ex);var ew=e_},69860:function(r,n,i){"use strict";var o=i(37340),a=i(65896),s=i(58747);function l(){let r=(0,o._)(["\n fragment BrandFragment on Brand {\n id\n databaseId\n featuredImage {\n node {\n ...MediaFragment\n }\n }\n uri\n title\n brandMeta {\n url\n isSponsor\n }\n }\n ","\n"]);return l=function(){return r},r}let c=(0,a.Ps)(l(),s.Z);n.Z=c},22143:function(r,n,i){"use strict";i.d(n,{Z:function(){return _}});var o=i(37340),a=i(65896),s=i(63451);function l(){let r=(0,o._)(["\n fragment CategoryChildrenFragment on Category {\n slug\n name\n uri\n databaseId\n count\n displayOptions {\n featuredImage {\n node {\n sourceUrl\n }\n }\n }\n posts(first: 12) {\n nodes {\n ...PostFragment\n }\n }\n }\n ","\n"]);return l=function(){return r},r}let c=(0,a.Ps)(l(),s.Z);var u=i(58747);function d(){let r=(0,o._)(["\n fragment CategoryDisplayOptionsFragment on DisplayOptions {\n hideSubcategoryPills\n featuredImage {\n node {\n ...MediaFragment\n }\n }\n }\n ","\n"]);return d=function(){return r},r}let h=(0,a.Ps)(d(),u.Z);
229var p=i(86033),f=i(90890),m=i(69860);function g(){let r=(0,o._)(["\n fragment CategorySponsoredFragment on SponsoredBrand {\n enabled: categorySponsorActive\n text: sponsorText\n brand: categorySponsor {\n nodes {\n ... on Brand {\n ...BrandFragment\n }\n }\n }\n }\n ","\n"]);return g=function(){return r},r}let v=(0,a.Ps)(g(),m.Z);var y=i(18707);function b(){let r=(0,o._)(["\n fragment CategoryFullFragment on Category {\n type: __typename\n ...CategoryPrimaryFragment\n databaseId\n taxonomyName\n seo {\n ...SeoTaxonomyFragment\n }\n children(where: { hideEmpty: true }, first: 100) {\n nodes {\n ...CategoryChildrenFragment\n }\n }\n ancestors {\n nodes {\n ...CategoryLinkFragment\n }\n }\n sponsoredBrand {\n ...CategorySponsoredFragment\n }\n displayOptions {\n ...CategoryDisplayOptionsFragment\n }\n }\n ","\n ","\n ","\n ","\n ","\n ","\n"]);return b=function(){return r},r}let x=(0,a.Ps)(b(),f.Z,y.y,c,p.Z,v,h);var _=x},86033:function(r,n,i){"use strict";var o=i(37340),a=i(65896);function s(){let r=(0,o._)(["\n fragment CategoryLinkFragment on Category {\n uri\n name\n slug\n databaseId\n parentDatabaseId\n }\n"]);return s=function(){return r},r}let l=(0,a.Ps)(s());n.Z=l},90890:function(r,n,i){"use strict";var o=i(37340),a=i(65896),s=i(86033),l=i(58747);function c(){let r=(0,o._)(["\n fragment CategoryPrimaryFragment on Category {\n ...CategoryLinkFragment\n description\n }\n ","\n ","\n"]);return c=function(){return r},r}let u=(0,a.Ps)(c(),s.Z,l.Z);n.Z=u},16487:function(r,n,i){"use strict";var o=i(37340),a=i(65896);function s(){let r=(0,o._)(["\n fragment CommentFragment on Comment {\n databaseId\n date\n parentDatabaseId\n content(format: RENDERED)\n author {\n node {\n name\n }\n }\n }\n"]);return s=function(){return r},r}let l=(0,a.Ps)(s());n.Z=l},58747:function(r,n,i){"use strict";var o=i(37340),a=i(65896);function s(){let r=(0,o._)(["\n fragment MediaFragment on MediaItem {\n altText\n caption\n cropPosition\n id\n sourceUrl\n title\n mediaDetails {\n height\n width\n }\n mediaAdditionalData {\n mediaSubtitle\n mediaCredit {\n mcName\n }\n }\n }\n"]);return s=function(){return r},r}let l=(0,a.Ps)(s());n.Z=l},45885:function(r,n,i){"use strict";i.d(n,{s:function(){return l}});var o=i(37340),a=i(65896);function s(){let r=(0,o._)(["\n fragment PageOffsetPaginationInfoFragment on WPPageInfo {\n offsetPagination {\n hasMore\n hasPrevious\n total\n }\n }\n"]);return s=function(){return r},r}let l=(0,a.Ps)(s())},28592:function(r,n,i){"use strict";var o=i(37340),a=i(65896),s=i(27422);function l(){let r=(0,o._)(["\n fragment PageBlocksFragment on Page {\n blocks: blocksLight {\n ...BlocksFragment\n }\n }\n ","\n"]);return l=function(){return r},r}let c=(0,a.Ps)(l(),s.Z);n.Z=c},42661:function(r,n,i){"use strict";var o=i(37340),a=i(65896),s=i(75903),l=i(27422),c=i(69860),u=i(58747),d=i(18707);function h(){let r=(0,o._)(["\n fragment PageDetailsFragment on Page {\n type: __typename\n authorTags {\n nodes {\n ...AuthorTagsNodeFragment\n }\n }\n databaseId\n date\n modified\n featuredImage {\n node {\n ...MediaFragment\n }\n }\n link\n modified\n seo {\n ...SeoPostTypeFragment\n }\n title\n uri\n postTemplate {\n postTemplate\n }\n sponsored {\n enabled: sponsoredArticle\n text: sponsoredText\n brand: sponsoredBrand {\n nodes {\n ... on Brand {\n ...BrandFragment\n }\n }\n }\n }\n skimlinks {\n skimlinksDisabled\n }\n }\n ","\n ","\n ","\n ","\n ","\n"]);return h=function(){return r},r}let p=(0,a.Ps)(h(),s.Z,u.Z,l.Z,d.A,c.Z);n.Z=p},64671:function(r,n,i){"use strict";i.d(n,{p:function(){return l}});var o=i(37340),a=i(65896);function s(){let r=(0,o._)(["\n fragment PagePaginationInfoFragment on WPPageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n"]);return s=function(){return r},r}let l=(0,a.Ps)(s())},41448:function(r,n,i){"use strict";var o=i(37340),a=i(65896),s=i(27422);function l(){let r=(0,o._)(["\n fragment PostBlocksFragment on Post {\n blocks: blocksLight {\n ...BlocksFragment\n }\n }\n ","\n"]);return l=function(){return r},r}let c=(0,a.Ps)(l(),s.Z);n.Z=c},73210:function(r,n,i){"use strict";i.d(n,{Z:function(){return A}});var o=i(37340),a=i(65896),s=i(75903);function l(){let r=(0,o._)(["\n fragment AutoDropCapOptionFragment on AutoDropCapOption {\n disableDropCap\n }\n"]);return l=function(){return r},r}let c=(0,a.Ps)(l());var u=i(69860),d=i(86033),h=i(90890),p=i(58747);function f(){let r=(0,o._)(["\n fragment ContributorFragment on Contributor {\n label\n authorTag {\n slug\n name\n uri\n databaseId\n description\n count\n author {\n authorFirstName\n authorLastName\n authorTitle\n authorAvatar {\n node {\n ...MediaFragment\n }\n }\n authorSocial {\n url\n icon\n }\n }\n seo {\n metaRobotsNoindex\n }\n }\n }\n ","\n"]);return f=function(){return r},r}let m=(0,a.Ps)(f(),p.Z);function g(){let r=(0,o._)(["\n fragment FeaturedVideoFragment on FeaturedVideo {\n id\n playerId\n }\n"]);return g=function(){return r},r}let v=(0,a.Ps)(g());function y(){let r=(0,o._)(["\n fragment PostTemplateFragment on PostTemplate {\n hideHeaderFooter\n isCerosArticle\n noSidebar\n postTemplate\n }\n"]);return y=function(){return r},r}let b=(0,a.Ps)(y());function x(){let r=(0,o._)(["\n fragment HubPageDisplayOverridesFragment on HubPageDisplayOverrides {\n articleListTitle\n }\n"]);return x=function(){return r},r}let _=(0,a.Ps)(x());var w=i(63451);function S(){let r=(0,o._)(["\n fragment RelatedStoryPostFragment on Post {\n ...PostFragment\n hubPageDisplayOverrides {\n ...HubPageDisplayOverridesFragment\n }\n }\n ","\n ","\n ","\n ","\n"]);return S=function(){return r},r}let T=(0,a.Ps)(S(),w.Z,p.Z,_,d.Z);function E(){let r=(0,o._)(["\n fragment RecommendedPostFragment on RecommendedPost {\n uri\n title\n post {\n ...RelatedStoryPostFragment\n }\n }\n ","\n"]);return E=function(){return r},r}let k=(0,a.Ps)(E(),T);function C(){let r=(0,o._)(["\n fragment RecommendedPostsFragment on RecommendedPosts {\n title\n posts {\n ...RecommendedPostFragment\n }\n }\n ","\n"]);return C=function(){return r},r}let P=(0,a.Ps)(C(),k);var O=i(18707);function j(){let r=(0,o._)(["\n fragment PostDetailsFragment on Post {\n type: __typename\n databaseId\n date\n excerpt\n reviewIntro\n authorTags {\n nodes {\n ...AuthorTagsNodeFragment\n }\n }\n contributors {\n ...ContributorFragment\n }\n\n featuredImage {\n node {\n ...MediaFragment\n }\n }\n featuredImageOptions {\n fieldGroupName\n hideFromArticle\n }\n featuredVideo {\n ...FeaturedVideoFragment\n }\n amazonLink {\n au\n ca\n gb\n us\n }\n breadcrumbs(includePage: true) {\n text\n url\n }\n autoDropCapOption {\n ...AutoDropCapOptionFragment\n }\n categories(first: 25) {\n nodes {\n ...CategoryLinkFragment\n }\n }\n commentStatus\n featuredImageUrl\n featuredImageAltText\n featuredImageListUrl\n internalTags\n link\n modified\n showModifiedDate\n primaryCategory {\n ...CategoryPrimaryFragment\n }\n relatedStories {\n title\n relatedStories {\n ...RelatedStoryPostFragment\n }\n }\n recommendedPosts {\n ...RecommendedPostsFragment\n }\n tags(first: 25) {\n nodes {\n name\n uri\n slug\n }\n }\n spotImOption {\n spotImDisabledForThisPost\n }\n internalContentTypes {\n nodes {\n name\n }\n }\n title\n uri\n postTemplate {\n ...PostTemplateFragment\n }\n template {\n templateName\n }\n seo {\n ...SeoPostTypeFragment\n }\n sponsored {\n enabled: sponsoredArticle\n text: sponsoredText\n brand: sponsoredBrand {\n nodes {\n ... on Brand {\n ...BrandFragment\n }\n }\n }\n }\n infiniteScroll {\n priority\n }\n\n skimlinks {\n skimlinksDisabled\n }\n }\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n"]);return j=function(){return r},r}var A=(0,a.Ps)(j(),v,d.Z,c,p.Z,s.Z,m,h.Z,T,P,b,O.A,u.Z)},63451:function(r,n,i){"use strict";var o=i(37340),a=i(65896),s=i(86033),l=i(58747);function c(){let r=(0,o._)(["\n fragment PostFragment on Post {\n id\n databaseId\n authorTags {\n nodes {\n name\n uri\n count\n }\n }\n contributors {\n label\n authorTag {\n name\n uri\n count\n }\n }\n categories(where: { orderby: TERM_ORDER }) {\n nodes {\n ...CategoryLinkFragment\n }\n }\n primaryCategory {\n ...CategoryLinkFragment\n }\n excerpt\n featuredImageAltText\n featuredImageUrl\n featuredImageListUrl\n featuredImage {\n node {\n ...MediaFragment\n }\n }\n featuredImageVertical {\n featuredImageVertical {\n node {\n ...MediaFragment\n }\n }\n }\n date\n modified\n showModifiedDate\n uri\n title\n tags(first: 25) {\n nodes {\n name\n uri\n slug\n }\n }\n slug\n }\n ","\n ","\n"]);return c=function(){return r},r}let u=(0,a.Ps)(c(),s.Z,l.Z);n.Z=u},88235:function(r,n,i){"use strict";i.d(n,{e:function(){return o}});let o={orderField:"DATE",order:"DESC"}},18707:function(r,n,i){"use strict";i.d(n,{A:function(){return d},y:function(){return u}});var o=i(37340),a=i(65896),s=i(58747);function l(){let r=(0,o._)(["\n fragment SeoTaxonomyFragment on TaxonomySEO {\n focuskw\n metaDesc\n metaKeywords\n opengraphDescription\n opengraphTitle\n opengraphUrl\n opengraphType\n opengraphImage {\n ...MediaFragment\n }\n title\n twitterDescription\n twitterTitle\n metaRobotsNoindex\n canonical\n }\n ","\n"]);return l=function(){return r},r}function c(){let r=(0,o._)(["\n fragment SeoPostTypeFragment on PostType
229SEO {\n focuskw\n metaDesc\n metaKeywords\n opengraphDescription\n opengraphTitle\n opengraphUrl\n opengraphType\n opengraphImage {\n ...MediaFragment\n }\n opengraphPublishedTime\n opengraphModifiedTime\n title\n twitterDescription\n twitterTitle\n schema {\n pageType\n articleType\n }\n jsonLDSchemas {\n schema\n type\n }\n metaRobotsNoindex\n readingTime\n canonical\n }\n ","\n"]);return c=function(){return r},r}let u=(0,a.Ps)(l(),s.Z),d=(0,a.Ps)(c(),s.Z)},41748:function(r,n,i){"use strict";i.d(n,{ZP:function(){return Y},Zb:function(){return X}});let o=Object.prototype.toString;function a(r){return"[object Object]"===o.call(r)}function s(r){return Boolean(r&&r.then&&"function"==typeof r.then)}function l(r){return r&&r.Math==Math?r:void 0}let c="object"==typeof globalThis&&l(globalThis)||"object"==typeof window&&l(window)||"object"==typeof self&&l(self)||"object"==typeof i.g&&l(i.g)||function(){return this}()||{};function u(r,n,i){let o=i||c,a=o.__SENTRY__=o.__SENTRY__||{},s=a[r]||(a[r]=n());return s}function d(){let r=c.crypto||c.msCrypto,n=()=>16*Math.random();try{if(r&&r.randomUUID)return r.randomUUID().replace(/-/g,"");r&&r.getRandomValues&&(n=()=>{let n=new Uint8Array(1);return r.getRandomValues(n),n[0]})}catch(r){}return"10000000100040008000100000000000".replace(/[018]/g,r=>(r^(15&n())>>r/4).toString(16))}function h(){return Date.now()/1e3}let p=function(){let{performance:r}=c;if(!r||!r.now)return h;let n=Date.now()-r.now(),i=void 0==r.timeOrigin?n:r.timeOrigin;return()=>(i+r.now())/1e3}();(()=>{let{performance:r}=c;if(!r||!r.now)return;let n=r.now(),i=Date.now(),o=r.timeOrigin?Math.abs(r.timeOrigin+n-i):36e5,a=r.timing&&r.timing.navigationStart,s="number"==typeof a?Math.abs(a+n-i):36e5;if(o<36e5||s<36e5)return o<=s?r.timeOrigin:void 0})();let f="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,m=["debug","info","warn","error","log","assert","trace"],g={};function v(r){if(!("console"in c))return r();let n=c.console,i={},o=Object.keys(g);o.forEach(r=>{let o=g[r];i[r]=n[r],n[r]=o});try{return r()}finally{o.forEach(r=>{n[r]=i[r]})}}let y=function(){let r=!1,n={enable:()=>{r=!0},disable:()=>{r=!1},isEnabled:()=>r};return f?m.forEach(i=>{n[i]=(...n)=>{r&&v(()=>{c.console[i](`Sentry Logger [${i}]:`,...n)})}}):m.forEach(r=>{n[r]=()=>void 0}),n}(),b="production",x="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;(R=D||(D={}))[R.PENDING=0]="PENDING",R[R.RESOLVED=1]="RESOLVED",R[R.REJECTED=2]="REJECTED";class _{constructor(r){_.prototype.__init.call(this),_.prototype.__init2.call(this),_.prototype.__init3.call(this),_.prototype.__init4.call(this),this._state=D.PENDING,this._handlers=[];try{r(this._resolve,this._reject)}catch(r){this._reject(r)}}then(r,n){return new _((i,o)=>{this._handlers.push([!1,n=>{if(r)try{i(r(n))}catch(r){o(r)}else i(n)},r=>{if(n)try{i(n(r))}catch(r){o(r)}else o(r)}]),this._executeHandlers()})}catch(r){return this.then(r=>r,r)}finally(r){return new _((n,i)=>{let o,a;return this.then(n=>{a=!1,o=n,r&&r()},n=>{a=!0,o=n,r&&r()}).then(()=>{if(a){i(o);return}n(o)})})}__init(){this._resolve=r=>{this._setResult(D.RESOLVED,r)}}__init2(){this._reject=r=>{this._setResult(D.REJECTED,r)}}__init3(){this._setResult=(r,n)=>{if(this._state===D.PENDING){if(s(n)){n.then(this._resolve,this._reject);return}this._state=r,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===D.PENDING)return;let r=this._handlers.slice();this._handlers=[],r.forEach(r=>{r[0]||(this._state===D.RESOLVED&&r[1](this._value),this._state===D.REJECTED&&r[2](this._value),r[0]=!0)})}}}function w(r){let n=new Map;return function r(n,i){if(function(r){if(!a(r))return!1;try{let n=Object.getPrototypeOf(r).constructor.name;return!n||"Object"===n}catch(r){return!0}}(n)){let o=i.get(n);if(void 0!==o)return o;let a={};for(let o of(i.set(n,a),Object.keys(n)))void 0!==n[o]&&(a[o]=r(n[o],i));return a}if(Array.isArray(n)){let o=i.get(n);if(void 0!==o)return o;let a=[];return i.set(n,a),n.forEach(n=>{a.push(r(n,i))}),a}return n}(r,n)}function S(r,n={}){if(!n.user||(!r.ipAddress&&n.user.ip_address&&(r.ipAddress=n.user.ip_address),r.did||n.did||(r.did=n.user.id||n.user.email||n.user.username)),r.timestamp=n.timestamp||p(),n.abnormal_mechanism&&(r.abnormal_mechanism=n.abnormal_mechanism),n.ignoreDuration&&(r.ignoreDuration=n.ignoreDuration),n.sid&&(r.sid=32===n.sid.length?n.sid:d()),void 0!==n.init&&(r.init=n.init),!r.did&&n.did&&(r.did=`${n.did}`),"number"==typeof n.started&&(r.started=n.started),r.ignoreDuration)r.duration=void 0;else if("number"==typeof n.duration)r.duration=n.duration;else{let n=r.timestamp-r.started;r.duration=n>=0?n:0}n.release&&(r.release=n.release),n.environment&&(r.environment=n.environment),!r.ipAddress&&n.ipAddress&&(r.ipAddress=n.ipAddress),!r.userAgent&&n.userAgent&&(r.userAgent=n.userAgent),"number"==typeof n.errors&&(r.errors=n.errors),n.status&&(r.status=n.status)}function T(r){return r.transaction}function E(r){return"function"==typeof r.getSpanJSON?r.getSpanJSON():"function"==typeof r.toJSON?r.toJSON():{}}class k{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=C()}static clone(r){return r?r.clone():new k}clone(){let r=new k;return r._breadcrumbs=[...this._breadcrumbs],r._tags={...this._tags},r._extra={...this._extra},r._contexts={...this._contexts},r._user=this._user,r._level=this._level,r._span=this._span,r._session=this._session,r._transactionName=this._transactionName,r._fingerprint=this._fingerprint,r._eventProcessors=[...this._eventProcessors],r._requestSession=this._requestSession,r._attachments=[...this._attachments],r._sdkProcessingMetadata={...this._sdkProcessingMetadata}
229,r._propagationContext={...this._propagationContext},r._client=this._client,r}setClient(r){this._client=r}getClient(){return this._client}addScopeListener(r){this._scopeListeners.push(r)}addEventProcessor(r){return this._eventProcessors.push(r),this}setUser(r){return this._user=r||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&S(this._session,{user:r}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(r){return this._requestSession=r,this}setTags(r){return this._tags={...this._tags,...r},this._notifyScopeListeners(),this}setTag(r,n){return this._tags={...this._tags,[r]:n},this._notifyScopeListeners(),this}setExtras(r){return this._extra={...this._extra,...r},this._notifyScopeListeners(),this}setExtra(r,n){return this._extra={...this._extra,[r]:n},this._notifyScopeListeners(),this}setFingerprint(r){return this._fingerprint=r,this._notifyScopeListeners(),this}setLevel(r){return this._level=r,this._notifyScopeListeners(),this}setTransactionName(r){return this._transactionName=r,this._notifyScopeListeners(),this}setContext(r,n){return null===n?delete this._contexts[r]:this._contexts[r]=n,this._notifyScopeListeners(),this}setSpan(r){return this._span=r,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){let r=this._span;return r&&r.transaction}setSession(r){return r?this._session=r:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(r){if(!r)return this;let n="function"==typeof r?r(this):r;if(n instanceof k){let r=n.getScopeData();this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&Object.keys(r.user).length&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint.length&&(this._fingerprint=r.fingerprint),n.getRequestSession()&&(this._requestSession=n.getRequestSession()),r.propagationContext&&(this._propagationContext=r.propagationContext)}else a(n)&&(this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint&&(this._fingerprint=r.fingerprint),r.requestSession&&(this._requestSession=r.requestSession),r.propagationContext&&(this._propagationContext=r.propagationContext));return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=C(),this}addBreadcrumb(r,n){let i="number"==typeof n?n:100;if(i<=0)return this;let o={timestamp:h(),...r},a=this._breadcrumbs;return a.push(o),this._breadcrumbs=a.length>i?a.slice(-i):a,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(r){return this._attachments.push(r),this}getAttachments(){let r=this.getScopeData();return r.attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){let{_breadcrumbs:r,_attachments:n,_contexts:i,_tags:o,_extra:a,_user:s,_level:l,_fingerprint:c,_eventProcessors:u,_propagationContext:d,_sdkProcessingMetadata:h,_transactionName:p,_span:f}=this;return{breadcrumbs:r,attachments:n,contexts:i,tags:o,extra:a,user:s,level:l,fingerprint:c||[],eventProcessors:u,propagationContext:d,sdkProcessingMetadata:h,transactionName:p,span:f}}applyToEvent(r,n={},i=[]){!function(r,n){var i,o,a;let{fingerprint:s,span:l,breadcrumbs:c,sdkProcessingMetadata:u}=n;(function(r,n){let{extra:i,tags:o,user:a,contexts:s,level:l,transactionName:c}=n,u=w(i);u&&Object.keys(u).length&&(r.extra={...u,...r.extra});let d=w(o);d&&Object.keys(d).length&&(r.tags={...d,...r.tags});let h=w(a);h&&Object.keys(h).length&&(r.user={...h,...r.user});let p=w(s);p&&Object.keys(p).length&&(r.contexts={...p,...r.contexts}
229),l&&(r.level=l),c&&(r.transaction=c)})(r,n),l&&function(r,n){r.contexts={trace:function(r){let{spanId:n,traceId:i}=r.spanContext(),{data:o,op:a,parent_span_id:s,status:l,tags:c,origin:u}=E(r);return w({data:o,op:a,parent_span_id:s,span_id:n,status:l,tags:c,trace_id:i,origin:u})}(n),...r.contexts};let i=T(n);if(i){r.sdkProcessingMetadata={dynamicSamplingContext:function(r){let n=M().getClient();if(!n)return{};let i=function(r,n,i){let o=n.getOptions(),{publicKey:a}=n.getDsn()||{},{segment:s}=i&&i.getUser()||{},l=w({environment:o.environment||b,release:o.release,user_segment:s,public_key:a,trace_id:r});return n.emit&&n.emit("createDsc",l),l}(E(r).trace_id||"",n,M().getScope()),o=T(r);if(!o)return i;let a=o&&o._frozenDynamicSamplingContext;if(a)return a;let{sampleRate:s,source:l}=o.metadata;null!=s&&(i.sample_rate=`${s}`);let c=E(o);return l&&"url"!==l&&(i.transaction=c.description),i.sampled=String(function(r){let{traceFlags:n}=r.spanContext();return Boolean(1&n)}(o)),n.emit&&n.emit("createDsc",i),i}(n),...r.sdkProcessingMetadata};let o=E(i).description;o&&(r.tags={transaction:o,...r.tags})}}(r,l),(i=r).fingerprint=i.fingerprint?Array.isArray(o=i.fingerprint)?o:[o]:[],s&&(i.fingerprint=i.fingerprint.concat(s)),i.fingerprint&&!i.fingerprint.length&&delete i.fingerprint,function(r,n){let i=[...r.breadcrumbs||[],...n];r.breadcrumbs=i.length?i:void 0}(r,c),(a=r).sdkProcessingMetadata={...a.sdkProcessingMetadata,...u}}(r,this.getScopeData());let o=[...i,...u("globalEventProcessors",()=>[]),...this._eventProcessors];return function r(n,i,o,a=0){return new _((l,c)=>{let u=n[a];if(null===i||"function"!=typeof u)l(i);else{let d=u({...i},o);x&&u.id&&null===d&&y.log(`Event processor "${u.id}" dropped event`),s(d)?d.then(i=>r(n,i,o,a+1).then(l)).then(null,c):r(n,d,o,a+1).then(l).then(null,c)}})}(o,r,n)}setSDKProcessingMetadata(r){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...r},this}setPropagationContext(r){return this._propagationContext=r,this}getPropagationContext(){return this._propagationContext}captureException(r,n){let i=n&&n.event_id?n.event_id:d();if(!this._client)return y.warn("No client configured on scope - will not capture exception!"),i;let o=Error("Sentry syntheticException");return this._client.captureException(r,{originalException:r,syntheticException:o,...n,event_id:i},this),i}captureMessage(r,n,i){let o=i&&i.event_id?i.event_id:d();if(!this._client)return y.warn("No client configured on scope - will not capture message!"),o;let a=Error(r);return this._client.captureMessage(r,n,{originalException:r,syntheticException:a,...i,event_id:o},this),o}captureEvent(r,n){let i=n&&n.event_id?n.event_id:d();return this._client?(this._client.captureEvent(r,{...n,event_id:i},this),i):(y.warn("No client configured on scope - will not capture event!"),i)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(r=>{r(this)}),this._notifyingListeners=!1)}}function C(){return{traceId:d(),spanId:d().substring(16)}}let P=parseFloat("7.120.0");class O{constructor(r,n,i,o=P){let a,s;this._version=o,n?a=n:(a=new k).setClient(r),i?s=i:(s=new k).setClient(r),this._stack=[{scope:a}],r&&this.bindClient(r),this._isolationScope=s}isOlderThan(r){return this._version<r}bindClient(r){let n=this.getStackTop();n.client=r,n.scope.setClient(r),r&&r.setupIntegrations&&r.setupIntegrations()}pushScope(){let r=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:r}),r}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(r){let n;let i=this.pushScope();try{n=r(i)}catch(r){throw this.popScope(),r}return s(n)?n.then(r=>(this.popScope(),r),r=>{throw this.popScope(),r}):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(r,n){let i=this._lastEventId=n&&n.event_id?n.event_id:d(),o=Error("Sentry syntheticException");
229return this.getScope().captureException(r,{originalException:r,syntheticException:o,...n,event_id:i}),i}captureMessage(r,n,i){let o=this._lastEventId=i&&i.event_id?i.event_id:d(),a=Error(r);return this.getScope().captureMessage(r,n,{originalException:r,syntheticException:a,...i,event_id:o}),o}captureEvent(r,n){let i=n&&n.event_id?n.event_id:d();return r.type||(this._lastEventId=i),this.getScope().captureEvent(r,{...n,event_id:i}),i}lastEventId(){return this._lastEventId}addBreadcrumb(r,n){let{scope:i,client:o}=this.getStackTop();if(!o)return;let{beforeBreadcrumb:a=null,maxBreadcrumbs:s=100}=o.getOptions&&o.getOptions()||{};if(s<=0)return;let l=h(),c={timestamp:l,...r},u=a?v(()=>a(c,n)):c;null!==u&&(o.emit&&o.emit("beforeAddBreadcrumb",u,n),i.addBreadcrumb(u,s))}setUser(r){this.getScope().setUser(r),this.getIsolationScope().setUser(r)}setTags(r){this.getScope().setTags(r),this.getIsolationScope().setTags(r)}setExtras(r){this.getScope().setExtras(r),this.getIsolationScope().setExtras(r)}setTag(r,n){this.getScope().setTag(r,n),this.getIsolationScope().setTag(r,n)}setExtra(r,n){this.getScope().setExtra(r,n),this.getIsolationScope().setExtra(r,n)}setContext(r,n){this.getScope().setContext(r,n),this.getIsolationScope().setContext(r,n)}configureScope(r){let{scope:n,client:i}=this.getStackTop();i&&r(n)}run(r){let n=A(this);try{r(this)}finally{A(n)}}getIntegration(r){let n=this.getClient();if(!n)return null;try{return n.getIntegration(r)}catch(n){return x&&y.warn(`Cannot retrieve integration ${r.id} from the current Hub`),null}}startTransaction(r,n){let i=this._callExtensionMethod("startTransaction",r,n);if(x&&!i){let r=this.getClient();r?y.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init': 230Sentry.addTracingExtensions(); 231Sentry.init({...}); 232`):y.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return i}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(r=!1){if(r)return this.endSession();this._sendSessionUpdate()}endSession(){let r=this.getStackTop(),n=r.scope,i=n.getSession();if(i){var o;let r;r={},o?r={status:o}:"ok"===i.status&&(r={status:"exited"}),S(i,r)}this._sendSessionUpdate(),n.setSession()}startSession(r){let{scope:n,client:i}=this.getStackTop(),{release:o,environment:a=b}=i&&i.getOptions()||{},{userAgent:s}=c.navigator||{},l=function(r){let n=p(),i={sid:d(),init:!0,timestamp:n,started:n,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>w({sid:`${i.sid}`,init:i.init,started:new Date(1e3*i.started).toISOString(),timestamp:new Date(1e3*i.timestamp).toISOString(),status:i.status,errors:i.errors,did:"number"==typeof i.did||"string"==typeof i.did?`${i.did}`:void 0,duration:i.duration,abnormal_mechanism:i.abnormal_mechanism,attrs:{release:i.release,environment:i.environment,ip_address:i.ipAddress,user_agent:i.userAgent}})};return r&&S(i,r),i}({release:o,environment:a,user:n.getUser(),...s&&{userAgent:s},...r}),u=n.getSession&&n.getSession();return u&&"ok"===u.status&&S(u,{status:"exited"}),this.endSession(),n.setSession(l),l}shouldSendDefaultPii(){let r=this.getClient(),n=r&&r.getOptions();return Boolean(n&&n.sendDefaultPii)}_sendSessionUpdate(){let{scope:r,client:n}=this.getStackTop(),i=r.getSession();i&&n&&n.captureSession&&n.captureSession(i)}_callExtensionMethod(r,...n){let i=j(),o=i.__SENTRY__;if(o&&o.extensions&&"function"==typeof o.extensions[r])return o.extensions[r].apply(this,n);x&&y.warn(`Extension method ${r} couldn't be found, doing nothing.`)}}function j(){return c.__SENTRY__=c.__SENTRY__||{extensions:{},hub:void 0},c}function A(r){let n=j(),i=I(n);return Z(n,r),i}function M(){let r=j();if(r.__SENTRY__&&r.__SENTRY__.acs){let n=r.__SENTRY__.acs.getCurrentHub();if(n)return n}return function(r=j()){return(!(r&&r.__SENTRY__&&r.__SENTRY__.hub)||I(r).isOlderThan(P))&&Z(r,new O),I(r)}(r)}function I(r){return u("hub",()=>new O,r)}function Z(r,n){if(!r)return!1;let i=r.__SENTRY__=r.__SENTRY__||{};return i.hub=n,!0}new WeakMap;var R,D,L=i(65896),z=i(11752),B=i.n(z),F=i(3814);let N=B()(),{wpDomain:U,xDebugSessionCookie:V}=N.publicRuntimeConfig,q=N.serverRuntimeConfig.wpDomain,$=V?{Cookie
232:"XDEBUG_SESSION=".concat(V)}:void 0,G=function(r){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"https";return"".concat(n,"://").concat(r).concat("/wp/graphql")},W=()=>q?G(q,"http"):G(U,"https"),H=function(r,n){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new L.g6(r,{credentials:i?"include":"same-origin",headers:Object.assign({host:n},$)})},X=(r,n)=>{var i;let o={hostEndpoint:W(),wpDomain:N.publicRuntimeConfig.wpDomain};if(void 0!==r&&"apiDomain"in r)return{hostEndpoint:r.apiDomain,wpDomain:r.wpPublicDomain};if(void 0===r||!r.useMultiTenantConfig)return o;let a=N.serverRuntimeConfig.wpDomain,s=N.publicRuntimeConfig.wpDomain,l=N.publicRuntimeConfig.wpMultitenantDomain,c=null!==(i=l[n])&&void 0!==i?i:s;return l?a?{hostEndpoint:G(a,"http"),wpDomain:c}:{hostEndpoint:G(c,"https"),wpDomain:c}:o};function Y(r,n,i,o,a,s){var l,c,u,d;return l=this,c=void 0,u=void 0,d=function*(){let{hostEndpoint:l,wpDomain:c}=X(o.graphqlClient,o.themeId);try{let i=H(l,c),o=H(l,c,!0),u=(0,F.Z)(r),d=s?yield o.request(u,n,Object.assign({authorization:"Basic ".concat(s)},a)):yield i.request(u,n,a);return JSON.parse(JSON.stringify(d))}catch(r){return console.error(r),function(...r){let n=M();if(2===r.length){let[i,o]=r;return i?n.withScope(()=>(n.getStackTop().scope=i,o(i))):n.withScope(o)}n.withScope(r[0])}(o=>{o.setExtra("query",Array.isArray(i)?i[0]:i),o.setExtra("variables",n),M().captureException(r,void 0)}),Promise.reject(r)}},new(u||(u=Promise))(function(r,n){function i(r){try{a(d.next(r))}catch(r){n(r)}}function o(r){try{a(d.throw(r))}catch(r){n(r)}}function a(n){var a;n.done?r(n.value):((a=n.value)instanceof u?a:new u(function(r){r(a)})).then(i,o)}a((d=d.apply(l,c||[])).next())})}},5033:function(r,n,i){"use strict";i.d(n,{Z:function(){return u}}),i(54912);let o=r=>{var n,i,o,a,s,l,c,u,d,h,p,f,m,g,v,y,b,x;let{flexpressCMSSettings:_,organicConfig:w,seo:S}=r,T=null==_?void 0:_.generalOptions,E=(null==w?void 0:w.adsRawData)||"{}",k={adsEnabled:(null==w?void 0:w.adsEnabled)||!1,adsPrebidUrl:(null==w?void 0:w.adsPrebidUrl)||"",adsPrebidUrlModule:(null==w?void 0:w.adsPrebidUrlModule)||"",affiliateEnabled:(null==w?void 0:w.affiliateEnabled)||!1,oneTrustEnabled:(null==w?void 0:w.oneTrustEnabled)||!1,oneTrustSiteId:(null==w?void 0:w.oneTrustSiteId)||"",organicEnabled:(null==w?void 0:w.organicEnabled)||!1,sdkCustomCSSUrl:(null==w?void 0:w.sdkCustomCSSUrl)||"",sdkUrl:(null==w?void 0:w.sdkUrl)||"",sdkUrlModule:(null==w?void 0:w.sdkUrlModule)||"",sdkVersion:(null==w?void 0:w.sdkVersion)||"v1",siteDomain:(null==w?void 0:w.siteDomain)||"",siteId:(null==w?void 0:w.siteId)||""},C={chartbeatEnabled:(null===(n=null==T?void 0:T.chartbeat)||void 0===n?void 0:n.optChartbeatEnabled)||!1,chartbeatUid:(null===(i=null==T?void 0:T.chartbeat)||void 0===i?void 0:i.chartbeatUid)||"",googleAnalyticsEnabled:(null===(o=null==T?void 0:T.googleAnalytics)||void 0===o?void 0:o.optGaEnabled)||!1,googleAnalyticsId:(null===(a=null==T?void 0:T.googleAnalytics)||void 0===a?void 0:a.gaId)||"",googleTagManagerEnabled:(null===(s=null==T?void 0:T.googleTagManager)||void 0===s?void 0:s.optGtmEnabled)||!1,googleTagManagerCode:(null===(l=null==T?void 0:T.googleTagManager)||void 0===l?void 0:l.gtmCode)||"",googleTagManagerAmpCode:(null===(c=null==T?void 0:T.googleTagManager)||void 0===c?void 0:c.gtmAmpCode)||"",quantcastEnabled:(null===(u=null==T?void 0:T.quantcastTag)||void 0===u?void 0:u.quantcastTagEnabled)||!1,quantcastTagId:(null===(d=null==T?void 0:T.quantcastTag)||void 0===d?void 0:d.quantcastTagId)||"",quantcastPCode:(null===(h=null==T?void 0:T.quantcastTag)||void 0===h?void 0:h.quantcastPCode)||"",sovrnKey:(null===(p=null==T?void 0:T.sovrnOptions)||void 0===p?void 0:p.sovrnKey)||"",sovrnEnabled:(null===(f=null==T?void 0:T.sovrnOptions)||void 0===f?void 0:f.sovrnEnabled)||!1},P=E?{adConfig:Object.assign({},JSON.parse(E)),adsEnabled:k.adsEnabled,adsPrebidUrl:k.adsPrebidUrl,adsPrebidUrlModule:k.adsPrebidUrlModule,affiliateEnabled:k.affiliateEnabled,organicEnabled:k.organicEnabled,sdkCustomCSSUrl:k.sdkCustomCSSUrl,sdkUrl:k.sdkUrl,sdkUrlModule:k.sdkUrlModule,sdkVersion:k.sdkVersion,siteDomain:k.siteDomain||"",siteId:k.siteId||""}:null,O={domain:(null===(m=null==T?void 0:T.pelcroOption)||void 0===m?void 0:m.domain)||"",enabled:(null===(g=null==T?void 0:T.pelcroOption)||void 0===g?void 0:g.enabled)||!1,environment:(()=>{var r;let n=null===(r=null==T?void 0:T.pelcroOption)||void 0===r?void 0:r.environment;return Array.isArray(n)?n[0]||"":n||""})(),menuTitle:(null===(v=null==T?void 0:T.pelcroOption)||void 0===v?void 0:v.menuTitle)||"",siteId:(null===(y=null==T?void 0:T.pelcroOption)||void 0===y?void 0:y.siteId)||"",stripe:(null===(b=null==T?void 0:T.pelcroOption)||void 0===b?void 0:b.stripe)||"",ui:(null===(x=null==T?void 0:T.pelcroOption)||void 0===x?void 0:x.ui)||""};return{organicAds:k,analytics:C,documentHeadOrganicTagsConfig:P,pelcroConfig:O,webmaster:(null==S?void 0:S.webmaster)||void 0}};var a=i(41748),s=i(86451),l=i(31858);let c=r=>()=>{var n,i,c,u;return n=void 0,i=void 0,c=void 0,u=function*(){let n=yield(0,a.ZP)(s.Z,{},l.Z.Ads,r,void 0,void 0);return o(n)},new(c||(c=Promise))(function(r,o){function a(r){try{l(u.next(r))}catch(r){o(r)}}function s(r){try{l(u.throw(r))}catch(r){o(r)}}function l(n){var i;n.done?r(n.value):((i=n.value)instanceof c?i:new c(function(r){r(i)})).then(a,s)}l((u=u.apply(n,i||[])).next())})};var u=c},1990:function(r,n,i){"use strict";i.d(n,{Z:function(){return u}});let o=r=>{var n;let i=null===(n=null==r?void 0:r.flexpressCMSSettings)||void 0===n?void 0:n.generalOptions;return{optAuthorMetadesc:null==i?void 0:i.optAuthorMetadesc}};var a=i(41748),s=i(18282),l=i(31858);let c=r=>()=>{var n,i,c,u;return n=void 0,i=void 0,c=void 0,u=function*(){let n=yield(0,a.ZP)(s.Z,{},l.Z.AuthorGeneralSettings,r,void 0,void 0);return o(n)},new(c||(c=Promise))(function(r,o){function a(r){try{l(u.next(r))}catch(r){o(r)}}function s(r){try{l(u.throw(r))}catch(r){o(r)}}function l(n){var i;n.done?r(n.value):((i=n.value)instanceof c?i:new c(function(r){r(i)})).then(a,s)}l((u=u.apply(n,i||[])).next())})};var u=c},18889:function(r,n,i){"use strict";i.d(n,{Z:function(){return u}}),i(54912);let o=r=>{var n,i,o,a,s,l,c,u;let d=null===(n=null==r?void 0:r.flexpressCMSSettings)||void 0===n?void 0:n.generalOptions,h={au:(null==d?void 0:d.optAmazonLinksAu)||null,ca:(null==d?void 0:d.optAmazonLinksCa)||null,gb:(null==d?void 0:d.optAmazonLinksGb)||null,us:(null==d?void 0:d.optAmazonLinksUs)||null},p={disclosure:(null===(i=null==d?void 0:d.groupDisclosureOptions)||void 0===i?void 0:i.disclosure)||null,displayIn:(null===(o=null==d?void 0:d.groupDisclosureOptions)||void 0===o?void 0:o.displayIn)||null,enabled:(null===(a=null==d?void 0:d.groupDisclosureOptions)||void 0===a?void 0:a.enabled)||null,feeds:(null===(s=null==d?void 0:d.groupDisclosureOptions)||void 0===s?void 0:s.feeds)||null,selectedTags:(null===(l=null==d?void 0:d.groupDisclosureOptions)||void 0===l?void 0:l.selectedTags)||null,selectedCategories:(null===(c=null==d?void 0:d.groupDisclosureOptions)||void 0===c?void 0:c.selectedCategories)||null},f=(null==d?void 0:d.dropcapAllArticles)||null,m=(null===(u=null==r?void 0:r.generalSettings)||void 0===u?void 0:u.timezone)||null;return{amazonLinksGlobal:h,dropCap:f,disclosureOptions:p,timezone:m}};var a=i(41748),s=i(16034),l=i(31858);let c=r=>()=>{var n,i,c,u;return n=void 0,i=void 0,c=void 0,u=function*(){let n=yield(0,a.ZP)(s.Z,{},l.Z.ContentSettings,r,void 0,void 0);return o(n)},new(c||(c=Promise))(function(r,o){function a(r){try{l(u.next(r))}catch(r){o(r)}}function s(r){try{l(u.throw(r))}catch(r){o(r)}}function l(n){var i;n.done?r(n.value):((i=n.value)instanceof c?i:new c(function(r){r(i)})).then(a,s)}l((u=u.apply(n,i||[])).next())})};var u=c},80589:function(r,n,i){"use strict";i(54912);var o=i(67082),a=i(41748),s=i(60435),l=i(31858);let c=r=>()=>{var n,i,c,u;return n=void 0,i=void 0,c=void 0,u=function*(){let n=yield(0,a.ZP)(s.Z,{},l.Z.Layout,r,void 0,void 0);return(0,o.Z)(n)},new(c||(c=Promise))(function(r,o){function a(r){try{l(u.next(r))}catch(r){o(r)}}function s(r){try{l(u.throw(r))}catch(r){o(r)}}function l(n){var i;n.done?r(n.value):((i=n.value)instanceof c?i:new c(function(r){r(i)})).then(a,s)}l((u=u.apply(n,i||[])).next())})};n.Z=c},97408:function(r,n,i){"use strict";i.d(n,{Z:function(){return f}}),i(54912);var o=i(41748),a=i(37340),s=i(65896),l=i(12361);function c(){let r=(0,a._)(["\n query SiteSettingsQuery {\n ...ExtendSettingsFragment\n }\n"]);return c=function(){return r},r}let u=(0,s.Ps)(c()),d=r=>(0,l.CN)({query:u,theme:r});var h=i(31858);let p=r=>{var n,i,a,s;return n=void 0,i=void 0,a=void 0,s=function*(){return(0,o.ZP)(d(r),{},h.Z.SiteSettings,r,void 0,void 0)},new(a||(a=Promise))(function(r,o){function l(r){try{u(s.next(r))}catch(r){o(r)}}function c(r){try{u(s.throw(r))}catch(r){o(r)}}function u(n){var i;n.done?r(n.value):((i=n.value)instanceof a?i:new a(function(r){r(i)})).then(l,c)}u((s=s.apply(n,i||[])).next())})};var f=p},58502:function(r,n,i){"use strict";var o=i(10968),a=i(41748),s=i(85253),l=i(31858);let c=r=>()=>{var n,i,c,u;return n=void 0,i=void 0,c=void 0,u=function*(){let n=yield(0,a.ZP)(s.Z,{},l.Z.SpotIM,r,void 0,void 0);return(0,o.Z)(n)},new(c||(c=Promise))(function(r,o){function a(r){try{l(u.next(r))}catch(r){o(r)}}function s(r){try{l(u.throw(r))}catch(r){o(r)}}function l(n){var i;n.done?r(n.value):((i=n.value)instanceof c?i:new c(function(r){r(i)})).then(a,s)}l((u=u.apply(n,i||[])).next())})};n.Z=c},48857:function(r,n,i){"use strict";i(54912);var o=i(57053),a=i(41748),s=i(33093),l=i(31858);let c=r=>()=>{var n,i,c,u;return n=void 0,i=void 0,c=void 0,u=function*(){let n=yield(0,a.ZP)(s.Z,{},l.Z.ThemeSettings,r,void 0,void 0);return(0,o.Z)(n)},new(c||(c=Promise))(function(r,o){function a(r){try{l(u.next(r))}catch(r){o(r)}}function s(r){try{l(u.throw(r))}catch(r){o(r)}}function l(n){var i;n.done?r(n.value):((i=n.value)instanceof c?i:new c(function(r){r(i)})).then(a,s)}l((u=u.apply(n,i||[])).next())})};n.Z=c},24691:function(r,n,i){"use strict";i.d(n,{Z:function(){return u}}),i(54912);let o=r=>{var n,i;let o=null===(n=null==r?void 0:r.flexpressCMSSettings)||void 0===n?void 0:n.generalOptions;return Object.assign(Object.assign(Object.assign({},(null===(i=null==r?void 0:r.flexpressCMSSettings)||void 0===i?void 0:i.tokensFb)||{}),(null==o?void 0:o.tokens)||{}),{skimlinks:(()=>
232{if(!(null==o?void 0:o.skimlinks))return null;let{enabled:r,publisherId:n,siteId:i}=o.skimlinks;return r&&n&&i?"".concat(n,"X").concat(i):null})()})};var a=i(41748),s=i(7127),l=i(31858);let c=r=>()=>{var n,i,c,u;return n=void 0,i=void 0,c=void 0,u=function*(){let n=yield(0,a.ZP)(s.Z,{},l.Z.Tokens,r,void 0,void 0);return o(n)},new(c||(c=Promise))(function(r,o){function a(r){try{l(u.next(r))}catch(r){o(r)}}function s(r){try{l(u.throw(r))}catch(r){o(r)}}function l(n){var i;n.done?r(n.value):((i=n.value)instanceof c?i:new c(function(r){r(i)})).then(a,s)}l((u=u.apply(n,i||[])).next())})};var u=c},69057:function(r,n,i){"use strict";i.d(n,{ox:function(){return d}}),i(22350),i(54912);var o=i(88235),a=i(41748),s=i(12361),l=i(27996),c=i(31858);let u=r=>{let{getParams:n,originalUrl:i,paginationQuery:u,theme:d,url:h,whereQuery:p}=r;return(0,a.ZP)((0,s.ZP)({query:l.Z,theme:d}),Object.assign(Object.assign(Object.assign(Object.assign({url:h,originalUrl:i,getParams:n},u),o.e),p),{autoDetectPagination:!0}),c.Z.Url,d,void 0,void 0)},d=(r,n,i,o)=>[c.Z.Url,r,n,i,...Object.values(o)];n.ZP=u},86451:function(r,n,i){"use strict";i.d(n,{Z:function(){return v}});var o=i(37340),a=i(65896);function s(){let r=(0,o._)(["\n fragment OrganicConfigFragment on OrganicConfig {\n adsEnabled\n adsRawData\n adsPrebidUrl\n adsPrebidUrlModule\n affiliateEnabled\n oneTrustEnabled\n oneTrustSiteId\n organicEnabled\n sdkCustomCSSUrl\n sdkUrl\n sdkUrlModule\n sdkVersion\n siteId\n siteDomain\n }\n"]);return s=function(){return r},r}let l=(0,a.Ps)(s());function c(){let r=(0,o._)(["\n fragment PelcroFragment on GeneralOptionsPelcroOption_Fields {\n domain\n enabled\n environment\n menuTitle\n siteId\n stripe\n ui\n }\n"]);return c=function(){return r},r}let u=(0,a.Ps)(c());function d(){let r=(0,o._)(["\n fragment AdsFragment on RootQuery {\n organicConfig {\n ...OrganicConfigFragment\n }\n flexpressCMSSettings {\n generalOptions {\n pelcroOption {\n ...PelcroFragment\n }\n }\n }\n }\n ","\n ","\n"]);return d=function(){return r},r}let h=(0,a.Ps)(d(),l,u);function p(){let r=(0,o._)(["\n fragment AnalyticsFragment on RootQuery {\n seo {\n webmaster {\n baiduVerify\n googleVerify\n msVerify\n yandexVerify\n pinterestVerify\n }\n }\n flexpressCMSSettings {\n generalOptions {\n chartbeat {\n chartbeatUid\n optChartbeatEnabled\n }\n googleAnalytics {\n gaId\n optGaEnabled\n }\n googleTagManager {\n gtmAmpCode\n gtmCode\n optGtmEnabled\n }\n quantcastTag {\n quantcastPCode\n quantcastTagEnabled\n quantcastTagId\n }\n sovrnOptions {\n sovrnEnabled\n sovrnKey\n }\n }\n }\n }\n"]);return p=function(){return r},r}let f=(0,a.Ps)(p());function m(){let r=(0,o._)(["\n query Ads {\n ...AdsFragment\n ...AnalyticsFragment\n }\n ","\n ","\n"]);return m=function(){return r},r}let g=(0,a.Ps)(m(),f,h);var v=g},18282:function(r,n,i){"use strict";i.d(n,{Z:function(){return d}});var o=i(37340),a=i(65896);function s(){let r=(0,o._)(["\n fragment AuthorGeneral on RootQuery {\n flexpressCMSSettings {\n generalOptions {\n optAuthorMetadesc\n }\n }\n }\n"]);return s=function(){return r},r}let l=(0,a.Ps)(s());function c(){let r=(0,o._)(["\n query AuthorGeneralSettings {\n ...AuthorGeneral\n }\n ","\n"]);return c=function(){return r},r}let u=(0,a.Ps)(c(),l);var d=u},16211:function(r,n,i){"use strict";var o=i(37340),a=i(65896),s=i(22143),l=i(1496);function c(){let r=(0,o._)(["\n query CategoryWithPosts(\n $id: ID!\n $idType: CategoryIdType\n $size: Int\n $offset: Int\n $orderField: PostObjectsConnectionOrderbyEnum!\n $order: OrderEnum!\n $autoDetectPagination: Boolean\n ) {\n category(id: $id, idType: $idType) {\n ...CategoryFullFragment\n ...PostsWithPaginationFragment\n }\n }\n ","\n ","\n"]);return c=function(){return r},r}(0,a.Ps)(c(),s.Z,l.Z)},16034:function(r,n,i){"use strict";i.d(n,{Z:function(){return m}});var o=i(37340),a=i(65896);function s(){let r=(0,o._)(["\n fragment AmazonLinksGlobalFragment on GeneralOptions {\n optAmazonLinksAu\n optAmazonLinksCa\n optAmazonLinksGb\n optAmazonLinksUs\n }\n"]);return s=function(){return r},r}let l=(0,a.Ps)(s());function c(){let r=(0,o._)(["\n fragment DisclosureFragment on GeneralOptions {\n groupDisclosureOptions {\n disclosure\n displayIn\n enabled\n feeds\n fieldGroupName\n selectedTags {\n nodes {\n uri\n name\n }\n }\n selectedCategories {\n nodes {\n uri\n name\n }\n }\n }\n }\n"]);return c=function(){return r},r}let u=(0,a.Ps)(c());function d(){let r=(0,o._)(["\n fragment DropCapAllArticlesFragment on GeneralOptions {\n dropcapAllArticles {\n color\n option\n }\n }\n"]);return d=function(){return r},r}let h=(0,a.Ps)(d());function p(){let r=(0,o._)(["\n query ContentSettingsQuery {\n flexpressCMSSettings {\n generalOptions {\n ...AmazonLinksGlobalFragment\n ...DropCapAllArticlesFragment\n ...DisclosureFragment\n }\n }\n generalSettings {\n timezone\n }\n }\n ","\n ","\n ","\n"]);return p=function(){return r},r}
232let f=(0,a.Ps)(p(),l,h,u);var m=f},12361:function(r,n,i){"use strict";i.d(n,{CN:function(){return y},ZP:function(){return b}});var o=i(93589),a=i(27771),s=i(18533),l=function(r){return"string"==typeof r||!(0,a.Z)(r)&&(0,s.Z)(r)&&"[object String]"==(0,o.Z)(r)},c=i(86355),u=i(11022);let d=r=>{let n=(0,c.Qc)(r),i=(0,u.Z)(n.definitions),o=(null==i?void 0:i.kind)==="FragmentDefinition";if(o)return i.name.value};var h=i(37340),p=i(65896);function f(){let r=(0,h._)(["\n fragment ExtendSettingsFragment on RootQuery {\n __typename\n }\n"]);return f=function(){return r},r}let m=(0,p.Ps)(f()),g=["ExtendAcfRecipeBlockFragment"],v=r=>{var n,i,o,a,s,c,u,h;let{query:p,theme:f}=r,m=null===(i=null===(n=f.extend)||void 0===n?void 0:n.blocks)||void 0===i?void 0:i.map(r=>{let{fragment:n}=r;return n}),v=(null===(o=f.blocks)||void 0===o?void 0:o.components)?Object.entries(null===(a=f.blocks)||void 0===a?void 0:a.components).map(r=>{let[,n]=r;return"extend"in n?n.extend.fragment:void 0}).filter(l):[],y=v.map(d).filter(l),b=g.filter(r=>!y.includes(r)).map(r=>"fragment ".concat(r," on Block { name }")).join("\n"),x=null===(h=null===(u=null===(c=null===(s=null==m?void 0:m.filter(l))||void 0===s?void 0:s.map(d))||void 0===c?void 0:c.filter(l))||void 0===u?void 0:u.map(r=>"...".concat(r)))||void 0===h?void 0:h.join("\n");return"\n ".concat(p,"\n\n fragment ExtendBlockFragment on Block {\n name\n ").concat(x||"","\n }\n\n ").concat(m||"","\n ").concat(b,"\n ").concat(v,"\n ")},y=r=>{var n,i;let{query:o,theme:a}=r,s=(null===(i=null===(n=a.extend)||void 0===n?void 0:n.fragments)||void 0===i?void 0:i.settings)||m;return"".concat(o,"\n").concat(s)};var b=v},29753:function(r,n,i){"use strict";var o=i(37340),a=i(65896),s=i(64671),l=i(63451);function c(){let r=(0,o._)(["\n query LatestPosts(\n $excludeCategory: [ID]\n $first: Int\n $last: Int\n $before: String\n $after: String\n $orderField: PostObjectsConnectionOrderbyEnum!\n $order: OrderEnum!\n ) {\n posts(\n where: {\n categoryNotIn: $excludeCategory\n syndicationWeb: true\n orderby: { field: $orderField, order: $order }\n }\n first: $first\n last: $last\n before: $before\n after: $after\n ) {\n pageInfo {\n ...PagePaginationInfoFragment\n }\n nodes {\n ...PostFragment\n }\n }\n }\n ","\n ","\n"]);return c=function(){return r},r}let u=(0,a.Ps)(c(),l.Z,s.p);n.Z=u},60435:function(r,n,i){"use strict";i.d(n,{Z:function(){return U}});var o=i(37340),a=i(65896);function s(){let r=(0,o._)(["\n fragment NewsArticlesTaxonomiesFragment on RootQuery {\n flexpressCMSSettings {\n generalOptions {\n optApplyNewsarticleSchema {\n categories {\n nodes {\n slug\n }\n }\n tags {\n nodes {\n slug\n }\n }\n }\n }\n }\n }\n"]);return s=function(){return r},r}let l=(0,a.Ps)(s());function c(){let r=(0,o._)(["\n fragment PromotionalStripeFragment on RootQuery {\n flexpressCMSSettings {\n generalOptions {\n promotionalStripe {\n bgColor\n color\n content\n linkColor\n linkHoverColor\n status\n enableAll\n enableArticle\n enableAuthor\n enableCategory\n enableHomepage\n enablePage\n enableTag\n }\n }\n }\n }\n"]);return c=function(){return r},r}let u=(0,a.Ps)(c());var d=i(58747);function h(){let r=(0,o._)(["\n fragment AuthorSettingsFragment on RootQuery {\n flexpressCMSSettings {\n generalOptions {\n optAuthorTaxonomySlug\n authorPlural {\n optAuthorPluralEnable\n optAuthorPluralPerPage\n }\n optAuthorPostBylines\n }\n }\n }\n ","\n"]);return h=function(){return r},r}var p=(0,a.Ps)(h(),d.Z);function f(){let r=(0,o._)(["\n fragment CanonicalUrlFieldsFragment on RootQuery {\n flexpressCMSSettings {\n generalOptions {\n canonicalUrlFields {\n frontendUrl\n }\n }\n }\n }\n"]);return f=function(){return r},r}let m=(0,a.Ps)(f());function g(){let r=(0,o._)(["\n fragment CopyrightFragment on RootQuery {\n flexpressCMSSettings {\n generalOptions {\n optGeneralCopyright\n }\n }\n }\n"]);return g=function(){return r},r}let v=(0,a.Ps)(g());function y(){let r=(0,o._)(["\n fragment DefaultOptionsFragment on RootQuery {\n flexpressCMSSettings {\n generalOptions {\n optGeneralImgDefault {\n node {\n ...MediaFragment\n }\n }\n optHeader {\n sticky\n }\n optReview {\n optReviewHeaderDescription\n }\n pinterestIcon\n coreGalleryOptions {\n showCredits\n showImageCaptionsInMainCaption\n }\n }\n }\n }\n ","\n"]);return y=function(){return r},r}var b=(0,a.Ps)(y(),d.Z);function x(){let r=(0,o._)(["\n fragment FacebookMetaFragment on RootQuery {\n flexpressCMSSettings {\n generalOptions {\n facebookMeta {\n facebookDomainVerification\n }\n }\n }\n }\n"]);return x=function(){return r},r}let _=(0,a.Ps)(x());function w(){let r=(0,o._)(["\n fragment FooterLinksFragment on RootQuery {\n flexpressCMSSettings {\n generalOptions {\n footerLinks {\n class\n label\n id\n rel\n target\n type\n url\n }\n }\n }\n }\n"]);return w=function(){return r},r}let S=(0,a.Ps)(w());function T(){let r=(0,o._)(["\n fragment GeneralSettingsFragment on RootQuery {\n generalSettings {\n description\n title\n }\n }\n"]);return T=function(){return r},r}let E=(0,a.Ps)(T());function k(){let r=(0,o._)(["\n fragment HamburgerMenuFragment on RootQuery {\n flexpressCMSSettings {\n generalOptions {\n hambugerTnp {\n hambugerTextColor\n hambugerEnable\n hambugerBackgroun
232dColor\n hambugerLogo {\n node {\n ...MediaFragment\n }\n }\n }\n }\n }\n }\n ","\n"]);return k=function(){return r},r}let C=(0,a.Ps)(k(),d.Z);function P(){let r=(0,o._)(["\n fragment LogosFragment on RootQuery {\n flexpressCMSSettings {\n generalOptions {\n optGeneralImgFav {\n node {\n ...MediaFragment\n }\n }\n optGeneralMainLogo {\n taskPurpose {\n node {\n ...MediaFragment\n }\n }\n }\n optLogoFooter {\n taskPurpose {\n node {\n ...MediaFragment\n }\n }\n }\n }\n }\n }\n ","\n"]);return P=function(){return r},r}let O=(0,a.Ps)(P(),d.Z);function j(){let r=(0,o._)(["\n fragment MenuFragment on MenuItem {\n id\n label\n order\n parentId\n path\n target\n }\n"]);return j=function(){return r},r}function A(){let r=(0,o._)(["\n fragment MenusFragment on RootQuery {\n menus {\n nodes {\n locations\n menuItems(first: 100) {\n nodes {\n ...MenuFragment\n }\n }\n }\n }\n }\n ","\n"]);return A=function(){return r},r}let M=(0,a.Ps)(j()),I=(0,a.Ps)(A(),M);function Z(){let r=(0,o._)(["\n fragment NetworksFragment on RootQuery {\n flexpressCMSSettings {\n generalOptions {\n socialItem {\n taskPurpose {\n count\n icon\n name\n url\n }\n }\n }\n }\n }\n"]);return Z=function(){return r},r}let R=(0,a.Ps)(Z());function D(){let r=(0,o._)(["\n fragment NewsletterFragment on RootQuery {\n flexpressCMSSettings {\n generalOptions {\n newsletterFooter {\n images {\n name\n image {\n node {\n ...MediaFragment\n }\n }\n }\n }\n optNewsletter {\n background {\n node {\n ...MediaFragment\n }\n }\n disclaimer\n description\n enabled\n label\n directLink\n title\n }\n }\n }\n }\n ","\n"]);return D=function(){return r},r}let L=(0,a.Ps)(D(),d.Z);function z(){let r=(0,o._)(["\n fragment NewsletterNavbarFragment on RootQuery {\n flexpressCMSSettings {\n generalOptions {\n showNewslettersLinkOnNavbar\n newsletterLabelOnNavbar\n newsletterLinkOnNavbar\n }\n }\n }\n"]);return z=function(){return r},r}let B=(0,a.Ps)(z());function F(){let r=(0,o._)(["\n query Layout {\n ...CanonicalUrlFieldsFragment\n ...CopyrightFragment\n ...DefaultOptionsFragment\n ...FacebookMetaFragment\n ...GeneralSettingsFragment\n ...HamburgerMenuFragment\n ...FooterLinksFragment\n ...LogosFragment\n ...MenusFragment\n ...NetworksFragment\n ...NewsletterFragment\n ...NewsletterNavbarFragment\n ...NewsArticlesTaxonomiesFragment\n ...PromotionalStripeFragment\n ...AuthorSettingsFragment\n }\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n"]);return F=function(){return r},r}let N=(0,a.Ps)(F(),m,v,b,_,E,C,S,O,I,R,L,B,l,u,p);var U=N},60293:function(r,n,i){"use strict";var o=i(37340),a=i(65896),s=i(58747);function l(){let r=(0,o._)(["\n query mediaById($id: ID!) {\n mediaItem(id: $id, idType: DATABASE_ID) {\n ...MediaFragment\n }\n }\n ","\n"]);return l=function(){return r},r}let c=(0,a.Ps)(l(),s.Z);n.Z=c},32723:function(r,n,i){"use strict";i.d(n,{z:function(){return h}});var o=i(37340),a=i(65896),s=i(41448),l=i(73210),c=i(12361);function u(){let r=(0,o._)(["\n query NextInfiniteScrollArticleQuery(\n $previousArticles: [Int]\n $autoDetectPagination: Boolean\n $size: Int\n $offset: Int\n ) {\n nextInfiniteScrollArticle(previousArticles: $previousArticles) {\n ...PostDetailsFragment\n ...PostBlocksFragment\n }\n }\n ","\n ","\n"]);return u=function(){return r},r}let d=(0,a.Ps)(u(),l.Z,s.Z),h=r=>(0,c.ZP)({query:d,theme:r})},1496:function(r,n,i){"use strict";var o=i(37340),a=i(65896),s=i(45885),l=i(63451);function c(){let r=(0,o._)(["\n fragment PostsWithPaginationFragment on Category {\n posts(\n where: {\
232n orderby: { field: $orderField, order: $order }\n offsetPagination: {\n size: $size\n offset: $offset\n autoDetect: $autoDetectPagination\n contentKind: CATEGORY\n }\n syndicationWeb: true\n }\n ) {\n pageInfo {\n ...PageOffsetPaginationInfoFragment\n }\n nodes {\n ...PostFragment\n }\n }\n }\n ","\n ","\n"]);return c=function(){return r},r}n.Z=(0,a.Ps)(c(),l.Z,s.s)},15300:function(r,n,i){"use strict";var o=i(37340),a=i(65896),s=i(16487);function l(){let r=(0,o._)(["\n query Comments($dbId: ID!) {\n post(id: $dbId, idType: DATABASE_ID) {\n databaseId\n comments(first: 1000, where: { order: DESC, orderby: COMMENT_DATE }) {\n nodes {\n ...CommentFragment\n }\n }\n }\n }\n ","\n"]);return l=function(){return r},r}let c=(0,a.Ps)(l(),s.Z);n.Z={name:"commentsQuery",query:c,queryArguments:r=>{var n;return{dbId:(null===(n=r.databaseId)||void 0===n?void 0:n.toString())||""}}}},27996:function(r,n,i){"use strict";i.d(n,{Z:function(){return C}});var o=i(37340),a=i(65896),s=i(58747),l=i(18707);function c(){let r=(0,o._)(["\n fragment AuthorPageFragment on AuthorTag {\n type: __typename\n slug\n name\n uri\n link\n databaseId\n taxonomyName\n count\n seo {\n ...SeoTaxonomyFragment\n }\n description\n author {\n authorFirstName\n authorLastName\n authorEmail\n authorTitle\n authorAvatar {\n node {\n ...MediaFragment\n }\n }\n authorBio\n authorSocial {\n url\n icon\n }\n authorHighlights\n authorExperience\n authorEducation\n authorAwardsAndCertification\n authorCustomSectionTitle\n authorCustomSectionText\n authorNotableWork {\n title\n url\n name\n }\n }\n pageTemplate {\n pageTemplate\n }\n }\n ","\n ","\n"]);return c=function(){return r},r}let u=(0,a.Ps)(c(),l.y,s.Z);var d=i(45885),h=i(63451);function p(){let r=(0,o._)(["\n fragment AuthorPagePostsFragment on AuthorTagToPostConnection {\n nodes {\n ...PostFragment\n }\n pageInfo {\n ...PageOffsetPaginationInfoFragment\n }\n }\n ","\n ","\n ","\n"]);return p=function(){return r},r}let f=(0,a.Ps)(p(),d.s,s.Z,h.Z);function m(){let r=(0,o._)(["\n fragment AuthorTagPluralFragment on AuthorTag {\n author {\n authorFirstName\n authorLastName\n authorTitle\n authorAvatar {\n node {\n ...MediaFragment\n }\n }\n }\n }\n\n fragment AuthorPluralFragment on Authors {\n type: __typename\n authors(\n where: {\n offsetPagination: {\n offset: $offset\n size: $size\n autoDetect: true\n contentKind: AUTHOR_PLURAL\n }\n }\n ) {\n nodes {\n slug\n name\n uri\n link\n databaseId\n taxonomyName\n count\n description\n ...AuthorTagPluralFragment\n }\n pageInfo {\n ...PageOffsetPaginationInfoFragment\n }\n }\n }\n ","\n ","\n"]);return m=function(){return r},r}let g=(0,a.Ps)(m(),d.s,s.Z);var v=i(22143),y=i(28592),b=i(42661),x=i(41448),_=i(73210);function w(){let r=(0,o._)(["\n fragment TagFullFragment on Tag {\n type: __typename\n databaseId\n description\n taxonomyName\n name\n link\n uri\n posts(\n where: {\n orderby: { field: $orderField, order: $order }\n offsetPagination: {\n size: $size\n offset: $offset\n autoDetect: true\n contentKind: TAG\n }\n syndicationWeb: true\n }\n ) {\n pageInfo {\n ...PageOffsetPaginationInfoFragment\n }\n nodes {\n ...PostFragment\n }\n }\n seo {\n ...SeoTaxonomyFragment\n }\n }\n ","\n ","\n"]);return w=function(){return r},r}let S=(0,a.Ps)(w(),h.Z,l.y);i(12361);var T=i(1496);function E(){let r=(0,o._)(["\n query ResolveUrl(\n $url: String!\n $originalUrl:
232String\n $getParams: String\n $size: Int\n $offset: Int\n $orderField: PostObjectsConnectionOrderbyEnum!\n $order: OrderEnum!\n $autoDetectPagination: Boolean\n ) {\n surrogateKeys\n resolveUrl(\n url: $url\n originalUrl: $originalUrl\n getParams: $getParams\n offsetPagination: { size: $size, offset: $offset }\n ) {\n status\n location\n node {\n type: __typename\n ...PostDetailsFragment\n ...PostBlocksFragment\n\n ...CategoryFullFragment\n ...PostsWithPaginationFragment\n\n ...TagFullFragment\n ...AuthorPluralFragment\n\n ...PageDetailsFragment\n ...PageBlocksFragment\n\n ...AuthorPageFragment\n ... on AuthorTag {\n posts(\n where: {\n syndicationWeb: true\n offsetPagination: {\n size: $size\n offset: $offset\n autoDetect: $autoDetectPagination\n contentKind: AUTHOR\n }\n }\n ) {\n ...AuthorPagePostsFragment\n }\n }\n }\n }\n }\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n"]);return E=function(){return r},r}let k=(0,a.Ps)(E(),v.Z,_.Z,x.Z,b.Z,u,T.Z,f,S,y.Z,g);var C=k},60508:function(r,n,i){"use strict";var o=i(37340),a=i(65896),s=i(64671),l=i(63451),c=i(18707);function u(){let r=(0,o._)(["\n query search(\n $term: String!\n $first: Int\n $last: Int\n $before: String\n $after: String\n ) {\n posts(\n where: { search: $term, syndicationWeb: true }\n first: $first\n last: $last\n before: $before\n after: $after\n ) {\n pageInfo {\n ...PagePaginationInfoFragment\n }\n nodes {\n ...PostFragment\n seo {\n ...SeoPostTypeFragment\n }\n }\n }\n }\n ","\n ","\n ","\n"]);return u=function(){return r},r}(0,a.Ps)(u(),l.Z,c.A,s.p)},45619:function(r,n,i){"use strict";var o=i(37340),a=i(65896),s=i(45885),l=i(63451),c=i(18707);function u(){let r=(0,o._)(["\n query searchPaged($term: String!, $size: Int, $offset: Int) {\n posts(\n where: {\n search: $term\n syndicationWeb: true\n offsetPagination: {\n size: $size\n offset: $offset\n autoDetect: true\n contentKind: SEARCH\n }\n }\n ) {\n pageInfo {\n ...PageOffsetPaginationInfoFragment\n }\n nodes {\n ...PostFragment\n seo {\n ...SeoPostTypeFragment\n }\n }\n }\n }\n ","\n ","\n ","\n"]);return u=function(){return r},r}(0,a.Ps)(u(),l.Z,c.A,s.s)},85253:function(r,n,i){"use strict";i.d(n,{Z:function(){return d}});var o=i(37340),a=i(65896);function s(){let r=(0,o._)(["\n fragment SpotIMFragment on RootQuery {\n flexpressCMSSettings {\n generalOptions {\n optSpotimEnabled\n optSpotimAdsEnabled\n optSpotimId\n optSpotimSocialReviews\n }\n }\n }\n"]);return s=function(){return r},r}let l=(0,a.Ps)(s());function c(){let r=(0,o._)(["\n query SpotIM {\n ...SpotIMFragment\n }\n ","\n"]);return c=function(){return r},r}let u=(0,a.Ps)(c(),l);var d=u},33093:function(r,n,i){"use strict";var o=i(37340),a=i(65896);function s(){let r=(0,o._)(["\n query ThemeSettingsQuery {\n flexpressCMSSettings {\n generalOptions {\n optAuthorPostsPerPage\n optCategoryPostsPerPage\n optCtaButtonLabel\n optTagSupportDisable\n tagsOnPost {\n displayTags\n numberOfTags\n }\n optSearchResultsPostsPerPage\n refeedTimestamp {\n homePage\n category\n }\n breadcrumbs\n infiniteScroll {\n enabled\n }\n wpComments {\n enabled\n }\n }\n }\n }\n"]);return s=function(){return r},r}let l=(0,a.Ps)(s());n.Z=l},7127:function(r,n,i){"use strict";i.d(n,{Z:function(){return d}});var o=i(37340),a=i(65896);function s(){let r=(0,o._)(["\n fragment TokensFragment on RootQuery {\n flexpressCMSSettings {\n generalOptions {\n tokens {\n mapboxAccessToken\n outdoorsyPartnerId\n recaptchaSiteKey\n connatixPlayerId\n }\n skimlinks {\n enabled\n publisherId\n siteId\n }\n }\n tokensFb {\n fbAppId\n fbAppSecret\n }\n }\n }\n"]);return s=function(){return r},r}let l=(0,a.Ps)(s());function c(){let r=(0,o._)(["\n query Tokens {\n ...TokensFragment\n }\n ","\n"]);return c=function(){return r},r}let u=(0,a.Ps)(c(),l);var d=u},31858:function(r,n){"use strict";
232n.Z={Ads:["ads"],AuthorGeneralSettings:["author-general-settings"],AuthorPagePosts:["author-page-posts"],Brand:["brand"],Category:["category"],CategoryWithPosts:["category-with-posts"],ContentSettings:["contentSettings"],CountryCode:["country-code"],GraphiteRelatedLinks:["graphite-related-links"],FilteredPosts:["filtered-posts"],LatestPosts:["latest-posts"],Layout:["layout"],MediaItem:["media-item"],Newsletter:["newsletter"],NextInfiniteScrollArticle:["next-infinite-scroll-article"],Page:["page"],Post:["post"],Posts:["posts"],Preview:["preview"],ReviewsPost:["reviews-posts"],SearchPosts:["search-posts"],SiteSettings:["siteSettings"],SpotIM:["spotIM"],ThemeSettings:["theme-settings"],Tokens:["tokens"],Url:["url"]}},79711:function(r){"use strict";r.exports=function(r){var n=r.uri,i=r.name,o=r.type;this.uri=n,this.name=i,this.type=o}},9509:function(r,n,i){"use strict";var o=i(87067);r.exports=function r(n,i,a){void 0===i&&(i=""),void 0===a&&(a=o);var s,l=new Map;function c(r,n){var i=l.get(n);i?i.push.apply(i,r):l.set(n,r)}if(a(n))s=null,c([i],n);else{var u=i?i+".":"";if("undefined"!=typeof FileList&&n instanceof FileList)s=Array.prototype.map.call(n,function(r,n){return c([""+u+n],r),null});else if(Array.isArray(n))s=n.map(function(n,i){var o=r(n,""+u+i,a);return o.files.forEach(c),o.clone});else if(n&&n.constructor===Object)for(var d in s={},n){var h=r(n[d],""+u+d,a);h.files.forEach(c),s[d]=h.clone}else s=n}return{clone:s,files:l}}},58931:function(r,n,i){"use strict";n.ReactNativeFile=i(79711),n.extractFiles=i(9509),n.isExtractableFile=i(87067)},87067:function(r,n,i){"use strict";var o=i(79711);r.exports=function(r){return"undefined"!=typeof File&&r instanceof File||"undefined"!=typeof Blob&&r instanceof Blob||r instanceof o}},40951:function(r){"use strict";r.exports="object"==typeof self?self.FormData:window.FormData},61372:function(r,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o,a=i(58931),s=(o=i(40951))&&o.__esModule?o:{default:o},l=function(r){return a.isExtractableFile(r)||null!==r&&"object"==typeof r&&"function"==typeof r.pipe};n.default=function(r,n,i){var o=a.extractFiles({query:r,variables:n,operationName:i},"",l),c=o.clone,u=o.files;if(0===u.size){if(!Array.isArray(r))return JSON.stringify(c);if(void 0!==n&&!Array.isArray(n))throw Error("Cannot create request body with given variable type, array expected");return JSON.stringify(r.reduce(function(r,i,o){return r.push({query:i,variables:n?n[o]:void 0}),r},[]))}var d=new("undefined"==typeof FormData?s.default:FormData);d.append("operations",JSON.stringify(c));var h={},p=0;return u.forEach(function(r){h[++p]=r}),d.append("map",JSON.stringify(h)),p=0,u.forEach(function(r,n){d.append(""+ ++p,n)}),d}},65896:function(r,n,i){"use strict";var o,a=function(){return(a=Object.assign||function(r){for(var n,i=1,o=arguments.length;i<o;i++)for(var a in n=arguments[i])Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a]);return r}).apply(this,arguments)},s=Object.create?function(r,n,i,o){void 0===o&&(o=i),Object.defineProperty(r,o,{enumerable:!0,get:function(){return n[i]}})}:function(r,n,i,o){void 0===o&&(o=i),r[o]=n[i]},l=Object.create?function(r,n){Object.defineProperty(r,"default",{enumerable:!0,value:n})}:function(r,n){r.default=n},c=function(r,n,i,o){return new(i||(i=Promise))(function(a,s){function l(r){try{u(o.next(r))}catch(r){s(r)}}function c(r){try{u(o.throw(r))}catch(r){s(r)}}function u(r){var n;r.done?a(r.value):((n=r.value)instanceof i?n:new i(function(r){r(n)})).then(l,c)}u((o=o.apply(r,n||[])).next())})},u=function(r,n){var i,o,a,s,l={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return s={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function c(s){return function(c){return function(s){if(i)throw TypeError("Generator is already executing.");for(;l;)try{if(i=1,o&&(a=2&s[0]?o.return:s[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,s[1])).done)return a;switch(o=0,a&&(s=[2&s[0],a.value]),s[0]){case 0:case 1:a=s;break;case 4:return l.label++,{value:s[1],done:!1};case 5:l.label++,o=s[1],s=[0];continue;case 7:s=l.ops.pop(),l.trys.pop();continue;default:if(!(a=(a=l.trys).length>0&&a[a.length-1])&&(6===s[0]||2===s[0])){l=0;continue}if(3===s[0]&&(!a||s[1]>a[0]&&s[1]<a[3])){l.label=s[1];break}if(6===s[0]&&l.label<a[1]){l.label=a[1],a=s;break}if(a&&l.label<a[2]){l.label=a[2],l.ops.push(s);break}a[2]&&l.ops.pop(),l.trys.pop();continue}s=n.call(r,l)}catch(r){s=[6,r],o=0}finally{i=a=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},d=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&0>n.indexOf(o)&&(i[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)0>n.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(i[o[a]]=r[o[a]]);return i};n.Ps=n.g6=void 0;var h=function(r){if(r&&r.__esModule)return r;var n={};if(null!=r)for(var i in r)"default"!==i&&Object.prototype.hasOwnProperty.call(r,i)&&s(n,r,i);return l(n,r),n}(i(54098)),p=i(62938),f=(o=i(61372))&&o.__esModule?o:{default:o},m=i(75982),g=function(r){var n,i={};return r&&("undefined"!=typeof Headers&&r instanceof Headers||r instanceof h.Headers?(n={},r.forEach(function(r,i){n[i]=r}),i=n):Array.isArray(r)?r.forEach(function(r){var n=r[0],o=r[1];i[n]=o}):i=r),i},v=function(r){return r.replace(/([\s,]|#[^\n\r]+)+/g," ").trim()},y=function(r){var n=r.query,i=r.variables,o=r.operationName;if(!Array.isArray(n)){var a=["query="+encodeURIComponent(v(n))];return i&&a.push("variables="+encodeURIComponent(JSON.stringify(i))),o&&a.push("operationName="+encodeURIComponent(o)),a.join("&")}if(void 0!==i&&!Array.isArray(i))throw Error("Cannot create query with given variable type, array expected");return"query="+encodeURIComponent(JSON.stringify(n.reduce(function(r,n,o){return r.push({query:v(n),variables:i?JSON.stringify(i[o]):void 0}),r},[])))},b=function(r){var n=r.url,i=r.query,o=r.variables,s=r.operationName,l=r.headers,d=r.fetch,h=r.fetchOptions;return c(void 0,void 0,void 0,function(){var r;return u(this,function(c){switch(c.label){case 0:return[4,d(n,a({method:"POST",headers:a(a({},"string"==typeof(r=f.default(i,o,s))?{"Content-Type":"application/json"}:{}),l),body:r},h))];case 1:return[2,c.sent()]}})})},x=function(r){var n=r.url,i=r.query,o=r.variables,s=r.operationName,l=r.headers,d=r.fetch,h=r.fetchOptions;return c(void 0,void 0,void 0,function(){return u(this,function(r){switch(r.label){case 0:return[4,d(n+"?"+y({query:i,variables:o,operationName:s}),a({method:"GET",headers:l},h))];case 1:return[2,r.sent()]}})})},_=function(){function r(r,n){this.url=r,this.options=n||{}}return r.prototype.rawRequest=function(r,n,i){var o=this.options,s=o.headers,l=o.fetch,c=void 0===l?h.default:l,u=o.method,p=d(o,["headers","fetch","method"]);return w({url:this.url,query:r,variables:n,headers:a(a({},g(s)),g(i)),operationName:void 0,fetch:c,method:void 0===u?"POST":u,fetchOptions:p})},r.prototype.request=function(r,n,i){return c(this,void 0,void 0,function(){var o,s,l,c,p,f,m,v,y,b,x;return u(this,function(u){switch(u.label){case 0:return s=(o=this.options).headers,c=void 0===(l=o.fetch)?h.default:l,f=void 0===(p=o.method)?"POST":p,m=d(o,["headers","fetch","method"]),v=this.url,b=(y=S(r)).query,x=y.operationName,[4,w({url:v,query:b,variables:n,headers:a(a({},g(s)),g(i)),operationName:x,fetch:c,method:f,fetchOptions:m})];case 1:return[2,u.sent().data]}})})},r.prototype.batchRequests=function(r,n){return c(this,void 0,void 0,function(){var i,o,s,l,c,p,f;return u(this,function(u){switch(u.label){case 0:return o=(i=this.options).headers,l=void 0===(s=i.fetch)?h.default:s,p=void 0===(c=i.method)?"POST":c,f=d(i,["headers","fetch","method"]),[4,w({url:this.url,query:r.map(function(r){return S(r.document).query}),variables:r.map(function(r){return r.variables}),headers:a(a({},g(o)),g(n)),operationName:void 0,fetch:l,method:p,fetchOptions:f})];case 1:return[2,u.sent().data]}})})},r.prototype.setHeaders=function(r){return this.options.headers=r,this},r.prototype.setHeader=function(r,n){var i,o=this.options.headers;return o?o[r]=n:this.options.headers=((i={})[r]=n,i),this},r.prototype.setEndpoint=function(r){return this.url=r,this},r}();function w(r){var n=r.url,i=r.query,o=r.variables,s=r.headers,l=r.operationName,d=r.fetch,h=r.method,p=void 0===h?"POST":h,f=r.fetchOptions;return c(this,void 0,void 0,function(){var r,c,h,g,v,y,_,w;return u(this,function(u){switch(u.label){case 0:return r="POST"===p.toUpperCase()?b:x,c=Array.isArray(i),[4,r({url:n,query:i,variables:o,operationName:l,headers:s,fetch:d,fetchOptions:f})];case 1:var S,T;return[4,(T=(S=h=u.sent()).headers.get("Content-Type"))&&T.startsWith("application/json")?S.json():S.text()];case 2:if(g=u.sent(),v=c&&Array.isArray(g)?!g.some(function(r){return!r.data}):!!g.data,h.ok&&!g.errors&&v)return y=h.headers,_=h.status,[2,a(a({},c?{data:g}:g),{headers:y,status:_})];throw w="string"==typeof g?{error:g}:g,new m.ClientError(a(a({},w),{status:h.status,headers:h.headers}),{query:i,variables:o})}})})}function S(r){if("string"==typeof r)return{query:r};var n,i=void 0,o=r.definitions.filter(function(r){return"OperationDefinition"===r.kind});return 1===o.length&&(i=null===(n=o[0].name)||void 0===n?void 0:n.value),{query:p.print(r),operationName:i}}n.g6=_,n.Ps=function(r){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return r.reduce(function(r,i,o){return""+r+i+(o in n?n[o]:"")},"")}},75982:function(r,n){"use strict";
232var i,o=(i=function(r,n){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])})(r,n)},function(r,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=r}i(r,n),r.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)});Object.defineProperty(n,"__esModule",{value:!0}),n.ClientError=void 0;var a=function(r){function n(i,o){var a=this,s=n.extractMessage(i)+": "+JSON.stringify({response:i,request:o});return Object.setPrototypeOf(a=r.call(this,s)||this,n.prototype),a.response=i,a.request=o,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(a,n),a}return o(n,r),n.extractMessage=function(r){try{return r.errors[0].message}catch(n){return"GraphQL Error (Code: "+r.status+")"}},n}(Error);n.ClientError=a},25182:function(r,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.clientHookInServerComponentError=function(r){},(0,i(81414).default)(i(67294)),("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),r.exports=n.default)},31414:function(r,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.useSearchParams=function(){l.clientHookInServerComponentError("useSearchParams");let r=o.useContext(s.SearchParamsContext),n=o.useMemo(()=>r?new f(r):null,[r]);return n},n.usePathname=function(){return l.clientHookInServerComponentError("usePathname"),o.useContext(s.PathnameContext)},Object.defineProperty(n,"ServerInsertedHTMLContext",{enumerable:!0,get:function(){return c.ServerInsertedHTMLContext}}),Object.defineProperty(n,"useServerInsertedHTML",{enumerable:!0,get:function(){return c.useServerInsertedHTML}}),n.useRouter=function(){l.clientHookInServerComponentError("useRouter");let r=o.useContext(a.AppRouterContext);if(null===r)throw Error("invariant expected app router to be mounted");return r},n.useSelectedLayoutSegments=m,n.useSelectedLayoutSegment=function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"children";l.clientHookInServerComponentError("useSelectedLayoutSegment");let n=m(r);return 0===n.length?null:n[0]},Object.defineProperty(n,"redirect",{enumerable:!0,get:function(){return u.redirect}}),Object.defineProperty(n,"notFound",{enumerable:!0,get:function(){return d.notFound}});var o=i(67294),a=i(24224),s=i(78463),l=i(25182),c=i(43014),u=i(48781),d=i(78147);let h=Symbol("internal for urlsearchparams readonly");function p(){return Error("ReadonlyURLSearchParams cannot be modified")}class f{[Symbol.iterator](){return this[h][Symbol.iterator]()}append(){throw p()}delete(){throw p()}set(){throw p()}sort(){throw p()}constructor(r){this[h]=r,this.entries=r.entries.bind(r),this.forEach=r.forEach.bind(r),this.get=r.get.bind(r),this.getAll=r.getAll.bind(r),this.has=r.has.bind(r),this.keys=r.keys.bind(r),this.values=r.values.bind(r),this.toString=r.toString.bind(r)}}function m(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"children";l.clientHookInServerComponentError("useSelectedLayoutSegments");let{tree:n}=o.useContext(a.LayoutRouterContext);return function r(n,i){let o,a=!(arguments.length>2)||void 0===arguments[2]||arguments[2],s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(a)o=n[1][i];else{var l;let r=n[1];o=null!=(l=r.children)?l:Object.values(r)[0]}if(!o)return s;let c=o[0],u=Array.isArray(c)?c[1]:c;return u?(s.push(u),r(o,i,!1,s)):s}(n,r)}n.ReadonlyURLSearchParams=f,("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),r.exports=n.default)},78147:function(r,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.notFound=function(){let r=Error(i);throw r.digest=i,r},n.isNotFoundError=function(r){return(null==r?void 0:r.digest)===i};let i="NEXT_NOT_FOUND";("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esMo
232dule",{value:!0}),Object.assign(n.default,n),r.exports=n.default)},48781:function(r,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.redirect=function(r){let n=Error(i);throw n.digest="".concat(i,";").concat(r),n},n.isRedirectError=o,n.getURLFromRedirectError=function(r){return o(r)?r.digest.slice(i.length+1):null};let i="NEXT_REDIRECT";function o(r){return"string"==typeof(null==r?void 0:r.digest)&&r.digest.startsWith(i+";")&&r.digest.length>i.length+1}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),r.exports=n.default)},81516:function(r,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getDomainLocale=function(r,n,i,o){return!1},("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),r.exports=n.default)},15619:function(r,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(r){let n;var i,{src:a,sizes:s,unoptimized:f=!1,priority:m=!1,loading:b,lazyRoot:T=null,lazyBoundary:k,className:C,quality:P,width:O,height:j,style:A,objectFit:M,objectPosition:I,onLoadingComplete:Z,placeholder:R="empty",blurDataURL:D}=r,L=l(r,["src","sizes","unoptimized","priority","loading","lazyRoot","lazyBoundary","className","quality","width","height","style","objectFit","objectPosition","onLoadingComplete","placeholder","blurDataURL"]);let z=c.useContext(p.ImageConfigContext),B=c.useMemo(()=>{let r=g||z||d.imageConfigDefault,n=[...r.deviceSizes,...r.imageSizes].sort((r,n)=>r-n),i=r.deviceSizes.sort((r,n)=>r-n);return o({},r,{allSizes:n,deviceSizes:i})},[z]),F=L,N=s?"responsive":"intrinsic";"layout"in F&&(F.layout&&(N=F.layout),delete F.layout);let U=S;if("loader"in F){if(F.loader){let r=F.loader;U=n=>{let{config:i}=n,o=l(n,["config"]);return r(o)}}delete F.loader}let V="";if("object"==typeof(i=a)&&(x(i)||void 0!==i.src)){let r=x(a)?a.default:a;if(!r.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ".concat(JSON.stringify(r)));if(D=D||r.blurDataURL,V=r.src,(!N||"fill"!==N)&&(j=j||r.height,O=O||r.width,!r.height||!r.width))throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ".concat(JSON.stringify(r)))}let q=!m&&("lazy"===b||void 0===b);((a="string"==typeof a?a:V).startsWith("data:")||a.startsWith("blob:"))&&(f=!0,q=!1),v.has(a)&&(q=!1),B.unoptimized&&(f=!0);let[$,G]=c.useState(!1),[W,H,X]=h.useIntersection({rootRef:T,rootMargin:k||"200px",disabled:!q}),Y=!q||H,K={boxSizing:"border-box",display:"block",overflow:"hidden",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},J={boxSizing:"border-box",display:"block",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},Q=!1,ee=w(O),et=w(j),er=w(P),en=Object.assign({},A,{position:"absolute",top:0,left:0,bottom:0,right:0,boxSizing:"border-box",padding:0,border:"none",margin:"auto",display:"block",width:0,height:0,minWidth:"100%",maxWidth:"100%",minHeight:"100%",maxHeight:"100%",objectFit:M,objectPosition:I}),ei="blur"!==R||$?{}:{backgroundSize:M||"cover",backgroundPosition:I||"0% 0%",filter:"blur(20px)",backgroundImage:'url("'.concat(D,'")')};if("fill"===N)K.display="block",K.position="absolute",K.top=0,K.left=0,K.bottom=0,K.right=0;else if(void 0!==ee&&void 0!==et){let r=et/ee,i=isNaN(r)?"100%":"".concat(100*r,"%");"responsive"===N?(K.display="block",K.position="relative",Q=!0,J.paddingTop=i):"intrinsic"===N?(K.display="inline-block",K.position="relative",K.maxWidth="100%",Q=!0,J.maxWidth="100%",n="data:image/svg+xml,%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20version=%271.1%27%20width=%27".concat(ee,"%27%20height=%27").concat(et,"%27/%3e")):"fixed"===N&&(K.display="inline-block",K.position="relative",K.width=ee,K.height=et)}let eo={src:y,srcSet:void 0,sizes:void 0};Y&&(eo=_({config:B,src:a,unoptimized:f,layout:N,width:ee,quality:er,sizes:s,loader:U}));let ea=a,es={imageSrcSet:eo.srcSet,imageSizes:eo.sizes,crossOrigin:F.crossOrigin},el=c.default.useLayoutEffect,ec=c.useRef(Z),eu=c.useRef(a);c.useEffect(()=>{ec.current=Z},[Z]),el(()=>{eu.current!==a&&(X(),eu.current=a)},[X,a]);let ed=o({isLazy:q,imgAttributes:eo,heightInt:et,widthInt:ee,qualityInt:er,layout:N,className:C,imgStyle:en,blurStyle:ei,loading:b,config:B,unoptimized:f,placeholder:R,loader:U,srcString:ea,onLoadingCompleteRef:ec,setBlurComplete:G,setIntersection:W,isVisible:Y,noscriptSizes:s},F);return c.default.createElement(c.default.Fragment,null,c.default.createElement("span",{style:K},Q?c.default.createElement("span",{style:J},n?c.default.createElement("img",{style:{display:"block",maxWidth:"100%",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},alt:"","aria-hidden":!0,src:n}):null):null,c.default.createElement(E,Object.assign({},ed))),m?c.default.createElement(u.default,null,c.default.createElement("link",Object.assign({key:"__nimg-"+eo.src+eo.srcSet+eo.sizes,rel:"preload",as:"image",href:eo.srcSet?void 0:eo.src},es))):null)};var o=i(21878).default,a=i(81414).default,s=i(78739).default,l=i(6917).default,c=s(i(67294)),u=a(i(42636)),d=i(3735),h=i(80508),p=i(83341);i(34210);var f=i(82387);function m(r){return"/"===r[0]?r.slice(1):r}let g={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!0,unoptimized:!1},v=new Set,y="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",b=new Map([["default",function(r){let{config:n,src:i,width:o,quality:a}=r;return i.endsWith(".svg")&&!n.dangerouslyAllowSVG?i:"".concat(f.normalizePathTrailingSlash(n.path),"?url=").concat(encodeURIComponent(i),"&w=").concat(o,"&q=").concat(a||75)}],["imgix",function(r){let{config:n,src:i,width:o,quality:a}=r,s=new URL("".concat(n.path).concat(m(i))),l=s.searchParams;return l.set("auto",l.getAll("auto").join(",")||"format"),l.set("fit",l.get("fit")||"max"),l.set("w",l.get("w")||o.toString()),a&&l.set("q",a.toString()),s.href}],["cloudinary",function(r){let{config:n,src:i,width:o,quality:a}=r,s=["f_auto","c_limit","w_"+o,"q_"+(a||"auto")].join(",")+"/";return"".concat(n.path).concat(s).concat(m(i))}],["akamai",function(r){let{config:n,src:i,width:o}=r;return"".concat(n.path).concat(m(i),"?imwidth=").concat(o)}],["custom",function(r){let{src:n}=r;throw Error('Image with src "'.concat(n,'" is missing "loader" prop.')+"\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader")}]]);function x(r){return void 0!==r.default}function _(r){let{config:n,src:i,unoptimized:o,layout:a,width:s,quality:l,sizes:c,loader:u}=r;if(o)return{src:i,srcSet:void 0,sizes:void 0};let{widths:d,kind:h}=function(r,n,i,o){let{deviceSizes:a,allSizes:s}=r;if(o&&("fill"===i||"responsive"===i)){let r=/(^|\s)(1?\d?\d)vw/g,n=[];for(let i;i=r.exec(o);i)n.push(parseInt(i[2]));if(n.length){let r=.01*Math.min(...n);return{widths:s.filter(n=>n>=a[0]*r),kind:"w"}}return{widths:s,kind:"w"}}if("number"!=typeof n||"fill"===i||"responsive"===i)return{widths:a,kind:"w"};let l=[...new Set([n,2*n].map(r=>s.find(n=>n>=r)||s[s.length-1]))];return{widths:l,kind:"x"}}(n,s,a,c),p=d.length-1;return{sizes:c||"w"!==h?c:"100vw",srcSet:d.map((r,o)=>"".concat(u({config:n,src:i,quality:l,width:r})," ").concat("w"===h?r:o+1).concat(h)).join(", "),src:u({config:n,src:i,quality:l,width:d[p]})}}function w(r){return"number"==typeof r?r:"string"==typeof r?parseInt(r,10):void 0}function S(r){var n;let i=(null==(n=r.config)?void 0:n.loader)||"default",o=b.get(i);if(o)return o(r);throw Error('Unknown "loader" found in "next.config.js". Expected: '.concat(d.VALID_LOADERS.join(", "),". Received: ").concat(i))}
232function T(r,n,i,o,a,s){if(!r||r.src===y||r["data-loaded-src"]===n)return;r["data-loaded-src"]=n;let l="decode"in r?r.decode():Promise.resolve();l.catch(()=>{}).then(()=>{if(r.parentNode&&(v.add(n),"blur"===o&&s(!0),null==a?void 0:a.current)){let{naturalWidth:n,naturalHeight:i}=r;a.current({naturalWidth:n,naturalHeight:i})}})}let E=r=>{var{imgAttributes:n,heightInt:i,widthInt:a,qualityInt:s,layout:u,className:d,imgStyle:h,blurStyle:p,isLazy:f,placeholder:m,loading:g,srcString:v,config:y,unoptimized:b,loader:x,onLoadingCompleteRef:w,setBlurComplete:S,setIntersection:E,onLoad:k,onError:C,isVisible:P,noscriptSizes:O}=r,j=l(r,["imgAttributes","heightInt","widthInt","qualityInt","layout","className","imgStyle","blurStyle","isLazy","placeholder","loading","srcString","config","unoptimized","loader","onLoadingCompleteRef","setBlurComplete","setIntersection","onLoad","onError","isVisible","noscriptSizes"]);return g=f?"lazy":g,c.default.createElement(c.default.Fragment,null,c.default.createElement("img",Object.assign({},j,n,{decoding:"async","data-nimg":u,className:d,style:o({},h,p),ref:c.useCallback(r=>{E(r),(null==r?void 0:r.complete)&&T(r,v,u,m,w,S)},[E,v,u,m,w,S]),onLoad:r=>{let n=r.currentTarget;T(n,v,u,m,w,S),k&&k(r)},onError:r=>{"blur"===m&&S(!0),C&&C(r)}})),(f||"blur"===m)&&c.default.createElement("noscript",null,c.default.createElement("img",Object.assign({},j,{loading:g,decoding:"async","data-nimg":u,style:h,className:d},_({config:y,src:v,unoptimized:b,layout:u,width:a,quality:s,sizes:O,loader:x})))))};("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),r.exports=n.default)},95569:function(r,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=i(81414).default,a=i(6917).default,s=o(i(67294)),l=i(14532),c=i(83353),u=i(61410),d=i(79064),h=i(370),p=i(69955),f=i(24224),m=i(80508),g=i(81516),v=i(64266);let y=new Set;function b(r,n,i,o,a){if(a||c.isLocalURL(n)){if(!o.bypassPrefetchedCheck){let a=void 0!==o.locale?o.locale:"locale"in r?r.locale:void 0,s=n+"%"+i+"%"+a;if(y.has(s))return;y.add(s)}Promise.resolve(r.prefetch(n,i,o)).catch(r=>{})}}function x(r){return"string"==typeof r?r:u.formatUrl(r)}let _=s.default.forwardRef(function(r,n){let i,o;let{href:u,as:y,children:_,prefetch:w,passHref:S,replace:T,shallow:E,scroll:k,locale:C,onClick:P,onMouseEnter:O,onTouchStart:j,legacyBehavior:A=!1}=r,M=a(r,["href","as","children","prefetch","passHref","replace","shallow","scroll","locale","onClick","onMouseEnter","onTouchStart","legacyBehavior"]);i=_,A&&("string"==typeof i||"number"==typeof i)&&(i=s.default.createElement("a",null,i));let I=!1!==w,Z=s.default.useContext(p.RouterContext),R=s.default.useContext(f.AppRouterContext),D=null!=Z?Z:R,L=!Z,{href:z,as:B}=s.default.useMemo(()=>{if(!Z){let r=x(u);return{href:r,as:y?x(y):r}}let[r,n]=l.resolveHref(Z,u,!0);return{href:r,as:y?l.resolveHref(Z,y):n||r}},[Z,u,y]),F=s.default.useRef(z),N=s.default.useRef(B);A&&(o=s.default.Children.only(i));let U=A?o&&"object"==typeof o&&o.ref:n,[V,q,$]=m.useIntersection({rootMargin:"200px"}),G=s.default.useCallback(r=>{(N.current!==B||F.current!==z)&&($(),N.current=B,F.current=z),V(r),U&&("function"==typeof U?U(r):"object"==typeof U&&(U.current=r))},[B,U,z,$,V]);s.default.useEffect(()=>{D&&q&&I&&b(D,z,B,{locale:C},L)},[B,z,q,C,I,null==Z?void 0:Z.locale,D,L]);let W={ref:G,onClick(r){A||"function"!=typeof P||P(r),A&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(r),D&&!r.defaultPrevented&&function(r,n,i,o,a,l,u,d,h,p){let{nodeName:f}=r.currentTarget,m="A"===f.toUpperCase();if(m&&(function(r){let n=r.currentTarget,i=n.getAttribute("target");return i&&"_self"!==i||r.metaKey||r.ctrlKey||r.shiftKey||r.altKey||r.nativeEvent&&2===r.nativeEvent.which}(r)||!h&&!c.isLocalURL(i)))return;r.preventDefault();let g=()=>{"beforePopState"in n?n[a?"replace":"push"](i,o,{shallow:l,locale:d,scroll:u}):n[a?"replace":"push"](o||i,{forceOptimisticNavigation:!p})};h?s.default.startTransition(g):g()}(r,D,z,B,T,E,k,C,L,I)},onMouseEnter(r){A||"function"!=typeof O||O(r),A&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(r),D&&(I||!L)&&b(D,z,B,{locale:C,priority:!0,bypassPrefetchedCheck:!0},L)},onTouchStart(r){A||"function"!=typeof j||j(r),A&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(r),D&&(I||!L)&&b(D,z,B,{locale:C,priority:!0,bypassPrefetchedCheck:!0},L)}};if(d.isAbsoluteUrl(B))W.href=B;else if(!A||S||"a"===o.type&&!("href"in o.props)){let r=void 0!==C?C:null==Z?void 0:Z.locale,n=(null==Z?void 0:Z.isLocaleDomain)&&g.getDomainLocale(B,r,null==Z?void 0:Z.locales,null==Z?void 0:Z.domainLocales);W.href=n||v.addBasePath(h.addLocale(B,r,null==Z?void 0:Z.defaultLocale))}return A?s.default.cloneElement(o,W):s.default.createElement("a",Object.assign({},M,W),i)});n.default=_,("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esMo
232dule",{value:!0}),Object.assign(n.default,n),r.exports=n.default)},80508:function(r,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.useIntersection=function(r){let{rootRef:n,rootMargin:i,disabled:u}=r,d=u||!s,[h,p]=o.useState(!1),f=o.useRef(null),m=o.useCallback(r=>{f.current=r},[]);o.useEffect(()=>{if(s){if(d||h)return;let r=f.current;if(r&&r.tagName){let o=function(r,n,i){let{id:o,observer:a,elements:s}=function(r){let n;let i={root:r.root||null,margin:r.rootMargin||""},o=c.find(r=>r.root===i.root&&r.margin===i.margin);if(o&&(n=l.get(o)))return n;let a=new Map,s=new IntersectionObserver(r=>{r.forEach(r=>{let n=a.get(r.target),i=r.isIntersecting||r.intersectionRatio>0;n&&i&&n(i)})},r);return n={id:i,observer:s,elements:a},c.push(i),l.set(i,n),n}(i);return s.set(r,n),a.observe(r),function(){if(s.delete(r),a.unobserve(r),0===s.size){a.disconnect(),l.delete(o);let r=c.findIndex(r=>r.root===o.root&&r.margin===o.margin);r>-1&&c.splice(r,1)}}}(r,r=>r&&p(r),{root:null==n?void 0:n.current,rootMargin:i});return o}}else if(!h){let r=a.requestIdleCallback(()=>p(!0));return()=>a.cancelIdleCallback(r)}},[d,i,n,h,f.current]);let g=o.useCallback(()=>{p(!1)},[]);return[m,h,g]};var o=i(67294),a=i(10029);let s="function"==typeof IntersectionObserver,l=new Map,c=[];("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),r.exports=n.default)},95677:function(r,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(r,n){let i=s.default,a={loading:r=>{let{error:n,isLoading:i,pastDelay:o}=r;return null}};r instanceof Promise?a.loader=()=>r:"function"==typeof r?a.loader=r:"object"==typeof r&&(a=o({},a,r)),a=o({},a,n);let u=a.loader,d=()=>null!=u?u().then(l):Promise.resolve(l(()=>null));return(a.loadableGenerated&&delete(a=o({},a,a.loadableGenerated)).loadableGenerated,"boolean"!=typeof a.ssr||a.ssr)?i(o({},a,{loader:d})):(delete a.webpack,delete a.modules,c(i,a))},n.noSSR=c;var o=i(21878).default,a=i(81414).default,s=(a(i(67294)),a(i(8976)));function l(r){return{default:(null==r?void 0:r.default)||r}}function c(r,n){return delete n.webpack,delete n.modules,r(n)}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),r.exports=n.default)},92254:function(r,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.LoadableContext=void 0;var o=(0,i(81414).default)(i(67294));let a=o.default.createContext(null);n.LoadableContext=a},8976:function(r,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=i(21878).default,a=(0,i(81414).default)(i(67294)),s=i(92254);let l=[],c=[],u=!1;function d(r){let n=r(),i={loading:!0,loaded:null,error:null};return i.promise=n.then(r=>(i.loading=!1,i.loaded=r,r)).catch(r=>{throw i.loading=!1,i.error=r,r}),i}class h{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:r,_opts:n}=this;r.loading&&("number"==typeof n.delay&&(0===n.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},n.delay)),"number"==typeof n.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},n.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(r=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(r){this._state=o({},this._state,{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading},r),this._callbacks.forEach(r=>r())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(r){return this._callbacks.add(r),()=>{this._callbacks.delete(r)}}constructor(r,n){this._loadFn=r,this._opts=n,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function p(r){return function(r,n){let i=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},n),o=null;function l(){if(!o){let n=new h(r,i);o={getCurrentValue:n.getCurrentValue.bind(n),subscribe:n.subscribe.bind(n),retry:n.retry.bind(n),promise:n.promise.bind(n)}}return o.promise()}if(!u){let r=i.webpack?i.webpack():i.modules;r&&c.push(n=>{for(let i of r)if(-1!==n.indexOf(i))return l()})}function d(r,n){!function(){l();let r=a.default.useContext(s.LoadableContext);
232r&&Array.isArray(i.modules)&&i.modules.forEach(n=>{r(n)})}();let c=a.default.useSyncExternalStore(o.subscribe,o.getCurrentValue,o.getCurrentValue);return a.default.useImperativeHandle(n,()=>({retry:o.retry}),[]),a.default.useMemo(()=>{var n;return c.loading||c.error?a.default.createElement(i.loading,{isLoading:c.loading,pastDelay:c.pastDelay,timedOut:c.timedOut,error:c.error,retry:o.retry}):c.loaded?a.default.createElement((n=c.loaded)&&n.default?n.default:n,r):null},[r,c])}return d.preload=()=>l(),d.displayName="LoadableComponent",a.default.forwardRef(d)}(d,r)}function f(r,n){let i=[];for(;r.length;){let o=r.pop();i.push(o(n))}return Promise.all(i).then(()=>{if(r.length)return f(r,n)})}p.preloadAll=()=>new Promise((r,n)=>{f(l).then(r,n)}),p.preloadReady=function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise(n=>{let i=()=>(u=!0,n());f(c,r).then(i,i)})},window.__NEXT_PRELOADREADY=p.preloadReady,n.default=p},43014:function(r,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.useServerInsertedHTML=function(r){let n=o.useContext(a);n&&n(r)},n.ServerInsertedHTMLContext=void 0;var o=(0,i(78739).default)(i(67294));let a=o.default.createContext(null);n.ServerInsertedHTMLContext=a},54429:function(r,n,i){"use strict";var o=i(85893),a=i(90512),s=i(93199);let l=r=>{let{alt:n,className:i,src:l,sizes:c}=r;return(0,o.jsx)(s.Pe,{image:{src:l,className:(0,a.Z)("inline-flex rounded-full overflow-hidden aspect-square object-cover",i),alt:n||""},sizes:c})};n.Z=l},45953:function(r,n,i){"use strict";i.d(n,{Z:function(){return h}});var o,a=i(85893),s=i(93967),l=i.n(s),c=i(67294);function u(){return(u=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var o in i)({}).hasOwnProperty.call(i,o)&&(r[o]=i[o])}return r}).apply(null,arguments)}var d=function(r){return c.createElement("svg",u({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},r),o||(o=c.createElement("path",{fill:"currentColor",d:"m9.707 16.95 5.707-5.708-5.707-5.707L8.293 6.95l4.293 4.293-4.293 4.293z"})))};function h(r){let{href:n,variant:i="solid",type:o="button",theme:s="n950-n500",className:u,isDisabled:h=!1,target:p,rel:f,title:m,children:g=null,...v}=r,y="_blank"===p?"noreferrer":null,b={className:l()("rw-button","theme-".concat(s),"m-0",{"text-center":"text"!==i&&"plain-link"!==o},"font-primary","text-lg","text-balance","leading-tight","font-medium","transition-colors","duration-300","rounded","max-sm:whitespace-normal","cursor-pointer","border-2","w-fit","inline-block",{"px-6 py-3":"text"!==i},{"rw-button--solid bg-neutral-950 text-neutral-800 border-neutral-950":"solid"===i&&("n950-n500"===s||"n950-b100"===s||"n950-b300"===s||"n950-b600"===s)},{"rw-button--solid bg-white text-neutral-950 border-white":"solid"===i&&("white-n500"===s||"white-b50"===s||"white-b200"===s||"white-b600"===s)},{"rw-button--solid bg-brand-800 text-neutral-950 border-brand-800":"solid"===i&&("b800-n500"===s||"b800-n950"===s)},{"rw-button--solid bg-brand-700 text-neutral-950 border-brand-700":"solid"===i&&"b700-b300"===s},{"rw-button--solid bg-brand-200 text-neutral-950 border-brand-200":"solid"===i&&"b200-b100"===s},{"rw-button--solid bg-brand-800 text-neutral-950 border-brand-800":"solid"===i&&"b800-white"===s},{"rw-button--solid bg-brand-50 text-neutral-950 border-brand-50":"solid"===i&&"b50-white"===s},{"rw-button--solid bg-brand-600 text-neutral-950 border-brand-600":"solid"===i&&"b600-b300"===s},{"rw-button--solid bg-brand-500 text-neutral-950 border-brand-500":"solid"===i&&"b500-b300"===s},{"rw-button--solid bg-neutral-700 text-neutral-950 border-neutral-700":"solid"===i&&"n700-b300"===s},{"rw-button--solid bg-neutral-600 text-neutral-950 border-neutral-600":"solid"===i&&"n600-b300"===s},{"rw-button--outline bg-transparent text-neutral-950 border-neutral-950":"outline"===i&&("n950-n500"===s||"n950-b100"===s||"n950-b300"===s||"white-n500"===s)},{"rw-button--solid bg-neutral-950 text-white border-neutral-950":"solid"===i&&"n950-white"===s},{"rw-button--outline bg-transparent text-neutral-950 border-neutral-950":"outline"===i&&"n950-white"===s},{"rw-button--outline bg-transparent text-neutral-800 border-neutral-800":"outline"===i&&("white-n500"===s||"white-b50"===s||"white-b200"===s||"white-b600"===s)},{"rw-button--outline bg-transparent text-brand-700 border-brand-700":"outline"===i&&"b700-b300"===s},{"rw-button--outline bg-transparent text-white border-white":"outline"===i&&"white-b600"===s},{"hover:bg-neutral-500 hover:text-neutral-800 hover:border-neutral-500 focus:bg-neutral-500 focus:text-neutral-800 focus:border-neutral-500":"text"!==i&&("n950-n500"===s||"white-n500"===s||"b800-n500"===s)},{"hover:bg-neutral-800 hover:text-neutral-950 hover:border-neutral-800 focus:bg-neutral-800 focus:text-neutral-950 focus:border-neutral-800":"text"!==i&&("n950-white"===s||"b50-white"===s||"b800-white"===s)},{"hover:bg-brand-300 hover:text-neutral-800 hover:border-brand-300 focus:bg-brand-300 focus:text-neutral-800 focus:border-brand-300":"text"!==i&&("n950-b300"===s||"b700-b300"===s||"b600-b300"===s||"b500-b300"===s||"n700-b300"===s||"n600-b300"===s)},{"hover:bg-brand-200 hover:text-neutral-950 hover:border-brand-200 focus:bg-brand-200 focus:text-neutral-950 focus:border-brand-200":"text"!==i&&("white-b200"===s||"b400-b200"===s)},{"hover:bg-brand-100 hover:text-neutral-800 hover:border-brand-100 focus:bg-brand-100 focus:text-neutral-800 focus:border-brand-100":"text"!==i&&("n950-b100"===s||"b200-b100"===s)},{"hover:bg-brand-50 hover:text-neutral-950 hover:border-brand-50 focus:bg-brand-50 focus:text-neutral-950 focus:border-brand-50":"text"!==i&&("white-b50"===s||"b900-b50"===s)},{"hover:bg-brand-600 hover:text-neutral-950 hover:border-brand-600 focus:bg-brand-600 focus:text-neutral-950 focus:border-brand-600":"text"!==i&&("n950-b600"===s||"white-b600"===s||"b300-b600"===s||"b100-b600"===s||"n400-b600"===s||"n500-b600"===s)},{"rw-button--text relative bg-transparent border-none inline px-0 py-0 text-left text-neutral-950 hover:underline focus:underline":"text"===i&&("n950-n500"===s||"n950-white"===s||"n950-b100"===s||"n950-b300"===s||"n950-b600"===s||"n950-n950"===s)},{"rw-button--text relative bg-transparent border-none inline px-0 py-0 text-left text-neutral-800 hover:underline focus:underline":"text"===i&&("white-n500"===s||"white-b50"===s||"white-b200"===s||"white-b600"===s)},{"rw-button--text relative bg-transparent border-none inline px-0 py-0 text-left text-brand-700 hover:underline focus:underline":"text"===i&&"b700-b300"===s},{"rw-button--text relative bg-transparent border-none inline px-0 py-0 text-left text-brand-800 hover:underline focus:underline":"text"===i&&"b800-n500"===s},{"rw-button--text relative bg-transparent border-none inline px-0 py-0 text-left text-white hover:underline focus:underline hover:text-white focus:text-white hover:
232decoration-white focus:decoration-white":"text"===i&&"white-white"===s},{"hover:text-neutral-500 focus:text-neutral-500":"text"===i&&("n950-n500"===s||"white-n500"===s||"b800-n500"===s)},{"hover:text-neutral-950 hover:decoration-neutral-950 focus:text-neutral-950 focus:decoration-neutral-950":"text"===i&&"n950-n950"===s},{"hover:text-brand-50":"text"===i&&("white-b50"===s||"b900-b50"===s)},{"hover:text-brand-200":"text"===i&&("white-b200"===s||"b400-b200"===s)},{"hover:text-brand-300":"text"===i&&("n950-b300"===s||"b700-b300"===s||"b600-b300"===s||"b500-b300"===s||"n700-b300"===s)},{"hover:text-brand-600":"text"===i&&("n950-b600"===s||"white-b600"===s||"b300-b600"===s||"b100-b600"===s||"n400-b600"===s||"n500-b600"===s)},{"hover:text-brand-100":"text"===i&&("n950-b100"===s||"b200-b100"===s)},{"hover:text-white":"text"===i&&("n950-white"===s||"b50-white"===s)},{"hover:text-white hover:bg-neutral-950 hover:border-neutral-500!":"outline"===i&&"n950-white"===s},{"disabled:pointer-events-none disabled:bg-neutral-500 disabled:text-neutral-400 disabled:hover:bg-neutral-500 disabled:hover:text-neutral-400 disabled:border-neutral-500":!0===h},u),type:n?null:o,disabled:h,rel:null!=f?f:y,target:p,title:m,...v};return n?(0,a.jsxs)("a",{href:n,...b,children:[g,y&&(0,a.jsx)("span",{className:"sr-only",children:"opens in new tab"}),"text"===i&&"plain-link"!==o&&(0,a.jsx)(d,{className:"inline-block"})]}):"text"===i?(0,c.createElement)("button",b,[g,(0,a.jsxs)(a.Fragment,{children:[y&&(0,a.jsx)("span",{className:"sr-only",children:"opens in new tab"}),(0,a.jsx)(d,{className:"inline-block","aria-hidden":"true"},"chevron")]})]):(0,c.createElement)("button",b,g)}},7500:function(r,n,i){"use strict";var o=i(85893),a=i(11400);let s=r=>{let{href:n,type:i,ariaLabel:s}=r;return(0,o.jsx)("a",{className:"flex size-8 items-center justify-center rounded-full bg-neutral-950 text-white transition-colors hocus:bg-neutral-800 hocus:text-neutral-950",href:n,"aria-label":"".concat(s," (opens in a new window)"),rel:"noreferrer",target:"blank",children:(0,o.jsx)(a.Z,{icon:i,className:"size-[18px]"})})};n.Z=s},11400:function(r,n,i){"use strict";i.d(n,{Z:function(){return S}});var o=i(85893);function a(r){let{className:n=""}=r;return(0,o.jsxs)("svg",{"aria-hidden":!0,className:n,fill:"none",focu
232sable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("path",{d:"M12 2C6.486 2 2 6.486 2 12s4.486 10 10 10 10-4.486 10-10S17.514 2 12 2Zm0 18c-4.411 0-8-3.589-8-8s3.589-8 8-8 8 3.589 8 8-3.589 8-8 8Z",fill:"currentColor"}),(0,o.jsx)("path",{d:"M13 7h-2v6h6v-2h-4V7Z",fill:"currentColor"})]})}function s(r){let{className:n=""}=r;return(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:n,children:(0,o.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M16 3.243H8a5 5 0 0 0-5 5v8a5 5 0 0 0 5 5h8a5 5 0 0 0 5-5v-8a5 5 0 0 0-5-5Zm3.25 13a3.26 3.26 0 0 1-3.25 3.25H8a3.26 3.26 0 0 1-3.25-3.25v-8A3.26 3.26 0 0 1 8 4.993h8a3.26 3.26 0 0 1 3.25 3.25v8Zm-2.5-7.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM12 7.743a4.5 4.5 0 1 0 4.5 4.5 4.49 4.49 0 0 0-4.5-4.5Zm-2.75 4.5a2.75 2.75 0 1 0 5.5 0 2.75 2.75 0 0 0-5.5 0Z",clipRule:"evenodd"})})}function l(r){let{className:n=""}=r;return(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:n,children:(0,o.jsx)("path",{fill:"currentColor",d:"M22 12.304c0-5.557-4.477-10.061-10-10.061S2 6.747 2 12.304c0 5.022 3.657 9.184 8.438 9.939v-7.03h-2.54v-2.909h2.54v-2.217c0-2.521 1.492-3.914 3.777-3.914 1.094 0 2.238.197 2.238.197v2.476h-1.26c-1.243 0-1.63.775-1.63 1.57v1.888h2.773l-.443 2.908h-2.33v7.03c4.78-.754 8.437-4.916 8.437-9.938Z"})})}function c(r){let{className:n=""}=r;return(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 19",fill:"currentColor",className:n,children:(0,o.jsx)("path",{fillRule:"evenodd",d:"M1.5.243a1.5 1.5 0 0 0-1.5 1.5v15a1.5 1.5 0 0 0 1.5 1.5h15a1.5 1.5 0 0 0 1.5-1.5v-15a1.5 1.5 0 0 0-1.5-1.5h-15Zm4.02 4.002c.006.957-.71 1.546-1.559 1.542a1.502 1.502 0 0 1-1.493-1.54 1.493 1.493 0 0 1 1.54-1.505c.88.02 1.518.665 1.513 1.503Zm3.76 2.76H6.758v8.56h2.664V14.224c-.002-1.014-.003-2.03.003-3.043.001-.246.012-.502.075-.737.238-.877 1.027-1.444 1.907-1.304.566.088.94.416 1.097.949.097.333.14.692.145 1.039.012 1.048.01 2.095.008 3.143v1.29h2.671v-1.56c-.001-1.13-.002-2.26.001-3.39a6.039 6.039 0 0 0-.178-1.507c-.187-.734-.574-1.341-1.203-1.78-.445-.312-.935-.513-1.482-.536a15.191 15.191 0 0 1-.188-.01c-.28-.014-.564-.03-.831.024-.765.154-1.437.504-1.945 1.121-.06.07-.117.143-.203.25l-.02.024V7.004Zm-6.598 8.562h2.65V7.01h-2.65v8.557Z",clipRule:"evenodd"})})}function u(r){let{className:n=""}=r;return(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:n,children:(0,o.jsx)("path",{fill:"currentColor",d:"M21.593 7.203a2.506 2.506 0 0 0-1.762-1.766c-1.566-.43-7.83-.437-7.83-.437s-6.265-.007-7.832.404a2.56 2.56 0 0 0-1.766 1.778c-.413 1.566-.417 4.814-.417 4.814s-.004 3.264.406 4.814c.23.857.905 1.534 1.763 1.765 1.582.43 7.83.437 7.83.437s6.265.007 7.831-.403a2.515 2.515 0 0 0 1.767-1.763c.414-1.565.417-4.812.417-4.812s.02-3.265-.407-4.83ZM9.996 15.005l.005-6 5.207 3.005-5.212 2.995Z"})})}function d(r){let{className:n=""}=r;return(0,o.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:n,style:{fill:"currentColor"},children:[(0,o.jsx)("path",{d:"M21 21.001C21 11.075 12.925 3 3 3v2.4c8.602 0 15.6 6.998 15.6 15.601H21Z"}),(0,o.jsx)("path",{d:"M12.6 21H15C15 14.383 9.615 9 3 9v2.4c5.293 0 9.6 4.306 9.6 9.6ZM5.4 21a2.4 2.4 0 1 0 0-4.8 2.4 2.4 0 0 0 0 4.8Z"})]})}function h(r){let{className:n=""}=r;return(0,o.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:n,style:{fill:"currentColor"},children:[(0,o.jsx)("path",{d:"M8.465 11.293c1.133-1.133 3.109-1.133 4.242 0l.707.707 1.414-1.414-.707-.707c-.943-.944-2.199-1.465-3.535-1.465s-2.592.521-3.535 1.465L4.929 12a5.008 5.008 0 0 0 0 7.071 4.983 4.983 0 0 0 3.535 1.462A4.982 4.982 0 0 0 12 19.071l.707-.707-1.414-1.414-.707.707a3.007 3.007 0 0 1-4.243 0 3.005 3.005 0 0 1 0-4.243l2.122-2.121z"}),(0,o.jsx)("path",{d:"m12 4.929-.707.707 1.414 1.414.707-.707a3.007 3.007 0 0 1 4.243 0 3.005 3.005 0 0 1 0 4.243l-2.122 2.121c-1.133 1.133-3.109 1.133-4.242 0L10.586 12l-1.414 1.414.707.707c.943.944 2.199 1.465 3.535 1.465s2.592-.521 3.535-1.465L19.071 12a5.008 5.008 0 0 0 0-7.071 5.006 5.006 0 0 0-7.071 0z"})]})}function p(r){let{className:n=""}=r;return(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:n,children:(0,o.jsx)("path",{fill:"currentColor",d:"M17.176 4.243h2.76l-6.03 6.777L21 20.243h-5.554l-4.35-5.593-4.979 5.593H3.355l6.45-7.25L3 4.244h5.695l3.933 5.113 4.548-5.113Zm-.969 14.375h1.53L7.864 5.782h-1.64l9.983 12.836Z"})})}function f(r){let{className:n=""}=r;return(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:n,children:(0,o.jsx)("path",{fill:"currentColor",d:"M20 4H4c-1.103 0-2 .897-2 2v12c0 1.103.897 2 2 2h16c1.103 0 2-.897 2-2V6c0-1.103-.897-2-2-2Zm0 2v.511l-8 6.223-8-6.222V6h16ZM4 18V9.044l7.386 5.745a.994.994 0 0 0 1.228 0L20 9.044 20.002 18H4Z"})})}function m(r){let{className:n=""}=r;return(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:n,children:(0,o.jsx)("path",{fill:"currentColor",d:"M10 18a7.952 7.952 0 0 0 4.897-1.688l4.396 4.396 1.414-1.414-4.396-4.396A7.952 7.952 0 0 0 18 10c0-4.411-3.589-8-8-8s-8 3.589-8 8 3.589 8 8 8Zm0-14c3.309 0 6 2.691 6 6s-2.691 6-6 6-6-2.691-6-6 2.691-6 6-6Z"})})}function g(r){let{className:n=""}=r;return(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",style:{fill:"currentColor"},viewBox:"0 0 24 24",className:n,children:(0,o.jsx)("path",{d:"M19.59 6.69a4.83 4.83 0 0 1-3.77-4.25V2h-3.45v13.67a2.89 2.89 0 0 1-5.2 1.74 2.89 2.89 0 0 1 2.31-4.64 2.93 2.93 0 0 1 .88.13V9.4a6.84 6.84 0 0 0-1-.05A6.33 6.33 0 0 0 5 20.1a6.34
2326.34 0 0 0 10.86-4.43v-7a8.16 8.16 0 0 0 4.77 1.52v-3.4a4.85 4.85 0 0 1-1-.1z"})})}function v(r){let{className:n=""}=r;return(0,o.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,children:(0,o.jsx)("path",{d:"M4 6H20V8H4V6ZM4 11H20V13H4V11ZM4 16H20V18H4V16Z",fill:"currentColor"})})}function y(r){let{className:n=""}=r;return(0,o.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,children:[(0,o.jsx)("path",{d:"M11.999 1.99219C6.48502 1.99319 1.99902 6.47919 1.99902 11.9932C1.99902 17.5072 6.48502 21.9932 12 21.9932C17.513 21.9932 21.999 17.5072 22 11.9932C22 6.47919 17.514 1.99319 11.999 1.99219ZM12 19.9932C7.58802 19.9932 3.99902 16.4042 3.99902 11.9932C3.99902 7.58219 7.58802 3.99319 11.999 3.99219C16.411 3.99319 20 7.58219 20 11.9932C19.999 16.4042 16.41 19.9932 12 19.9932Z",fill:"currentColor"}),(0,o.jsx)("path",{d:"M12 10.9931H8V12.9931H12V15.9991L16.005 11.9941L12 7.99011V10.9931Z",fill:"currentColor"})]})}function b(r){let{className:n=""}=r;return(0,o.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,children:(0,o.jsx)("path",{d:"M16.192 6.34375L11.949 10.5858L7.70697 6.34375L6.29297 7.75775L10.535 11.9998L6.29297 16.2418L7.70697 17.6558L11.949 13.4137L16.192 17.6558L17.606 16.2418L13.364 11.9998L17.606 7.75775L16.192 6.34375Z",fill:"currentColor"})})}function x(r){let{className:n=""}=r;return(0,o.jsx)("svg",{className:n,viewBox:"0 0 24 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("path",{d:"M3.776 18.112C3.136 18.112 2.53867 18.0267 1.984 17.856C1.472 17.6853 0.917334 17.3227 0.32 16.768C0.106667 16.0427 0 15.2747 0 14.464C0 11.6907 0.896 9.088 2.688 6.656C4.48 4.18133 6.89067 1.96267 9.92 0L11.2 1.856C9.74933 3.008 8.512 4.07467 7.488 5.056C6.50667 6.03734 5.52533 7.27467 4.544 8.768L5.696 10.368C6.16533 11.0507 6.54933 11.6907 6.848 12.288C7.14667 12.8427 7.296 13.3973 7.296 13.952C7.296 15.36 6.93333 16.4053 6.208 17.088C5.52533 17.7707 4.71467 18.112 3.776 18.112ZM16.576 18.112C15.936 18.112 15.3387 18.0267 14.784 17.856C14.272 17.6853 13.7173 17.3227 13.12 16.768C12.9067 16.0427 12.8 15.2747 12.8 14.464C12.8 11.6907 13.696 9.088 15.488 6.656C17.28 4.18133 19.6907 1.96267 22.72 0L24 1.856C22.5493 3.008 21.312 4.07467 20.288 5.056C19.3067 6.03734 18.3253 7.27467 17.344 8.768L18.496 10.368C18.9653 11.0507 19.3493 11.6907 19.648 12.288C19.9467 12.8427 20.096 13.3973 20.096 13.952C20.096 15.36 19.7333 16.4053 19.008 17.088C18.3253 17.7707 17.5147 18.112 16.576 18.112Z",fill:"currentColor"})})}function _(r){let{className:n=""}=r;return(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:n,children:(0,o.jsx)("path",{d:"M20 4H4C2.897 4 2 4.897 2 6V18C2 19.103 2.897 20 4 20H20C21.103 20 22 19.103 22 18V6C22 4.897 21.103 4 20 4ZM20 6V6.511L12 12.734L4 6.512V6H20ZM4 18V9.044L11.386 14.789C11.5611 14.9265 11.7773 15.0013 12 15.0013C12.2227 15.0013 12.4389 14.9265 12.614 14.789L20 9.044L20.002 18H4Z",fill:"currentColor"})})}function w(r){let{className:n=""}=r;return(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:n,children:(0,o.jsx)("path",{d:"M17.7071 12.2932C17.6143 12.2003 17.5041 12.1265 17.3828 12.0762C17.2615 12.0259 17.1314 12 17.0001 12C16.8688 12 16.7387 12.0259 16.6174 12.0762C16.4961 12.1265 16.3859 12.2003 16.2931 12.2932L14.6991 13.8872C13.9601 13.6672 12.5811 13.1672 11.7071 12.2932C10.8331 11.4192 10.3331 10.0402 10.1131 9.3012L11.7071 7.7072C11.8 7.61441 11.8738 7.50421 11.9241 7.38289C11.9744 7.26158 12.0003 7.13153 12.0003 7.0002C12.0003 6.86887 11.9744 6.73882 11.9241 6.61751C11.8738 6.49619 11.8 6.38599 11.7071 6.2932L7.70709 2.2932C7.6143 2.20026 7.5041 2.12652 7.38278 2.07621C7.26147 2.0259 7.13142 2 7.00009 2C6.86876 2 6.73871 2.0259 6.6174 2.07621C6.49608 2.12652 6.38588 2.20026 6.29309 2.2932L3.58109 5.0052C3.20109 5.3852 2.98709 5.9072 2.99509 6.4402C3.01809 7.8642 3.39509 12.8102 7.29309 16.7082C11.1911 20.6062 16.1371 20.9822 17.5621 21.0062H17.5901C18.1181 21.0062 18.6171 20.7982 18.9951 20.4202L21.7071 17.7082C21.8 17.6154 21.8738 17.5052 21.9241 17.3839C21.9744 17.2626 22.0003 17.1325 22.0003 17.0012C22.0003 16.8699 21.9744 16.7398 21.9241 16.6185C21.8738 16.4972 21.8 16.387 21.7071 16.2942L17.7071 12.2932ZM17.5801 19.0052C16.3321 18.9842 12.0621 18.6492 8.70709 15.2932C5.34109 11.9272 5.01509 7.6422 4.99509 6.4192L7.00009 4.4142L9.58609 7.0002L8.29309 8.2932C8.17555 8.41065 8.08913 8.55554 8.04164 8.71477C7.99415 8.874 7.98709 9.04256 8.02109 9.2052C8.04509 9.3202 8.63209 12.0472 10.2921 13.7072C11.9521 15.3672 14.6791 15.9542 14.7941 15.9782C14.9566 16.0132 15.1254 16.0067 15.2847 15.9593C15.4441 15.9119 15.589 15.8252 15.7061 15.7072L17.0001 14.4142L19.5861 17.0002L17.5801 19.0052Z",fill:"currentColor"})})}function S(r){let{icon:n,className:i=""}=r;switch(n){case"clock":return(0,o.jsx)(a,{className:i});case"instagram":return(0,o.jsx)(s,{className:i});case"facebook":return(0,o.jsx)(l,{className:i});case"linkedin":return(0,o.jsx)(c,{className:i});case"youtube":return(0,o.jsx)(u,{className:i});case"rss":return(0,o.jsx)(d,{className:i});case"twitter":case"x":return(0,o.jsx)(p,{className:i});case"newsletter":return(0,o.jsx)(f,{className:i});case"search":return(0,o.jsx)(m,{className:i});case"tiktok":return(0,o.jsx)(g,{className:i});case"hamburger":return(0,o.jsx)(v,{className:i});case"circle-right-arrow":return(0,o.jsx)(y,{className:i});
232case"close":return(0,o.jsx)(b,{className:i});case"quote":return(0,o.jsx)(x,{className:i});case"phone":return(0,o.jsx)(w,{className:i});case"mail":return(0,o.jsx)(_,{className:i});default:return(0,o.jsx)(h,{className:i})}}},75485:function(r,n,i){"use strict";i.d(n,{Z:function(){return d}});var o=i(85893);i(67294);var a=i(90512),s=i(43169),l=i(45953),c=i(36004);function u(r){let{layout:n,title:i,categoryName:s,text:u,imageData:d,linkType:h,linkData:p,linkColor:f,linkHoverColor:m}=r,g=(0,a.Z)("card-content-wrapper flex h-full flex-col grow box-border",{"items-center md:flex-row":"horizontal"===n}),v=(0,c.z)(null!=f?f:"black",null!=m?m:"gray");return(0,o.jsxs)("div",{className:g,children:[(null==d?void 0:d.url)&&(0,o.jsx)("div",{className:"card-image-wrapper relative min-h-60 w-full shrink-0 overflow-hidden ".concat("horizontal"===n?"md:w-1/2 md:flex-row md:rounded-l-sm":"rounded-t-sm"),children:(0,o.jsx)("img",{className:(0,a.Z)("absolute size-full object-cover will-change-transform transition-transform duration-300",void 0!==h&&"none"!==h&&"group-hover:scale-105"),src:d.url,alt:null==d?void 0:d.alt})}),(0,o.jsxs)("div",{className:"card-content flex w-full flex-col items-start gap-2 px-5 py-6",children:[s&&(0,o.jsx)("span",{className:"card-category font-tertiary text-sm font-semibold",children:s}),(0,o.jsx)("h3",{className:"card-title font-primary text-2xl font-black not-italic",children:i}),(0,o.jsx)("div",{className:"card-text line-clamp-4 text-lg",dangerouslySetInnerHTML:{__html:u}}),h&&"button"===h&&(0,o.jsx)(l.Z,{className:"card-button static! mt-4 p-0! font-medium text-lg before:absolute before:inset-0 before:z-1 before:content-['']",variant:"text",type:"button",theme:v,href:null==p?void 0:p.url,target:null==p?void 0:p.target,children:null==p?void 0:p.title})]})]})}function d(r){var n,i;let{layout:l,title:c,categoryName:d,text:h,imageData:p,linkType:f,linkData:m,theme:g="brightGreen",className:v}=r,{themeId:y}=(0,s.nC)(),b=(0,a.Z)("card","w-full","group","flex","border","overflow-hidden","*:text-neutral-400","border-brand-900",{"flex-col":"vertical"===l,"flex-col md:flex-row":"horizontal"===l},"relative","rounded-lg",{"card-theme-brightGreen bg-brand-600 border-white":"brightGreen"===g},{"card-theme-white bg-neutral-800":"white"===g},{"card-theme-off-white bg-neutral-550":"offWhite"===g},{"card-theme-yellow hocus-within:border-neutral-800 hocus-within:bg-brand-25":"yellow"===g},{"card-theme-blue bg-campus-blue-100":"blue"===g},{"card-theme-pink bg-campus-pink":"pink"===g},{"hocus-within:border-brand-25! hocus-within:bg-neutral-800! bg-brand-25!":"beewild"===y&&"white"===g},v),x="black",_="blue";return x="black",_="gray",(0,o.jsx)("div",{className:b,children:"card"===f&&(null==m?void 0:m.url)!==null?(0,o.jsx)("a",{href:null!==(n=null==m?void 0:m.url)&&void 0!==n?n:"",target:null!==(i=null==m?void 0:m.target)&&void 0!==i?i:"",className:"group block size-full",children:(0,o.jsx)(u,{layout:l,imageData:p,categoryName:d,title:c,text:h,linkType:"card"})}):(0,o.jsx)(o.Fragment,{children:"button"===f&&(null==m?void 0:m.url)!==""?(0,o.jsx)(u,{layout:l,imageData:p,categoryName:d,title:c,text:h,linkType:f,linkData:m,linkColor:x,linkHoverColor:_}):(0,o.jsx)(u,{layout:l,imageData:p,categoryName:d,title:c,text:h})})})}},28926:function(r,n,i){"use strict";var o=i(37340),a=i(94076);function s(){let r=(0,o._)(["\n query ExtraSettingsQuery {\n flexpressCMSSettings {\n generalOptions {\n extraLink {\n extraBtnLink\n extraBtnText\n }\n }\n }\n }\n"]);return s=function(){return r},r}let l=(0,a.Ps)(s());n.Z={name:"extraSettingsQuery",query:l}},28831:function(r,n,i){"use strict";i.d(n,{bW:function(){return h},WN:function(){return P},z4:function(){return D},QO:function(){return M},Wg:function(){return m},hL:function(){return B},Wy:function(){return c},i3:function(){return _},W$:function(){return w.Z},vV:function(){return U},Dx:function(){return y},CB:function(){return E},Qm:function(){return I.Z}});var o=i(37340),a=i(94076);function s(){let r=(0,o._)(["\n query AuthorBio($dbid: ID!) {\n authorTag(id: $dbid, idType: DATABASE_ID) {\n author {\n authorBio\n }\n }\n }\n"]);return s=function(){return r},r}let l=(0,a.Ps)(s());var c={name:"authorBioQuery",query:l,queryArguments:r=>{var n,i;return{dbid:null!==(i=null===(n=r.authorTags.nodes[0])||void 0===n?void 0:n.databaseId.toString())&&void 0!==i?i:""}}};function u(){let r=(0,o._)(["\n fragment AcfCollageCardsBlockFragment on AcfCollageCardsBlock {\n cards: cards {\n title\n subtitle\n buttonText\n buttonLink {\n url\n target\n }\n image {\n ...MediaFragment\n }\n }\n }\n"]);return u=function(){return r},r}let d=(0,a.Ps)(u());var h=d;function p(){let r=(0,o._)(["\n fragment AcfPlanAndGoalsBlockFragment on AcfPlanAndGoalsBlock {\n backgroundImage {\n sourceUrl\n altText\n }
232\n mobileBackgroundImage {\n sourceUrl\n altText\n }\n goals: goals {\n title\n subtitle\n icon {\n ...MediaFragment\n }\n }\n }\n"]);return p=function(){return r},r}let f=(0,a.Ps)(p());var m=f;function g(){let r=(0,o._)(["\n query PageSettingsQuery($slug: ID!) {\n page(id: $slug, idType: DATABASE_ID) {\n pageSettings {\n showTitle\n hideGlobalPrefooter\n }\n }\n }\n"]);return g=function(){return r},r}let v=(0,a.Ps)(g());var y={name:"pageSettingsQuery",query:v,queryArguments:r=>{var n;return{slug:(null==r?void 0:null===(n=r.databaseId)||void 0===n?void 0:n.toString())||""}}};function b(){let r=(0,o._)(["\n query EmailSignupForm($dbid: ID!) {\n gfForm(id: $dbid, idType: DATABASE_ID) {\n formId: databaseId\n databaseId\n formFields {\n nodes {\n id\n databaseId\n type\n ... on EmailField {\n id\n databaseId\n label\n placeholder\n isRequired\n }\n ... on NameField {\n id\n databaseId\n label\n inputs {\n label\n placeholder\n }\n isRequired\n }\n ... on TextField {\n id\n databaseId\n label\n placeholder\n isRequired\n }\n }\n }\n button: submitButton {\n type\n text\n }\n submitButton {\n type\n text\n }\n confirmations {\n type\n isActive\n message\n url\n }\n }\n }\n"]);return b=function(){return r},r}let x=(0,a.Ps)(b());var _=x,w=i(28926);function S(){let r=(0,o._)(["\n query RewildOptionsQuery {\n rewildOptions {\n options {\n prefooter {\n prefooterDonateModuleSettings {\n title\n text\n buttonText\n buttonLink {\n title\n url\n target\n }\n }\n prefooterEmailModuleSettings {\n title\n text\n formId\n disclaimerText\n disclaimerLink {\n title\n url\n target\n }\n disclaimerLinkText\n }\n }\n pressContact {\n pressContactModuleSettings {\n title\n text\n subtitle\n subText\n formId\n buttonText\n }\n }\n }\n }\n }\n"]);return S=function(){return r},r}let T=(0,a.Ps)(S());var E={name:"rewildOptionsQuery",query:T};function k(){let r=(0,o._)(["\n fragment AcfFeaturedCampaignBlockFragment on AcfFeaturedCampaignBlock {\n image {\n sourceUrl\n altText\n }\n }\n"]);return k=function(){return r},r}let C=(0,a.Ps)(k());var P=C,O=i(58747);function j(){let r=(0,o._)(["\n fragment AcfLinkCardsModuleFragment on AcfLinkCardsModuleBlock {\n postLinkCards {\n title\n text: excerpt\n uri\n featuredImage {\n node {\n ...MediaFragment\n }\n }\n }\n manualLinkCards {\n title\n text\n url {\n url\n title\n target\n }\n image {\n sourceUrl\n altText\n }\n }\n }\n ","\n"]);return j=function(){return r},r}let A=(0,a.Ps)(j(),O.Z);var M=A,I=i(13019);function Z(){let r=(0,o._)(["\n fragment AcfImageTextFeatureBlockFragment on AcfImageTextFeatureBlock {\n image {\n sourceUrl\n altText\n }\n }\n"]);return Z=function(){return r},r}let R=(0,a.Ps)(Z());var D=R;function L(){let r=(0,o._)(["\n fragment AcfPressContactFragment on AcfPressContactBlock {\n contacts {\n image {\n ...MediaFragment\n }\n name\n email\n phone\n }\n authorContacts {\n image {\n ...MediaFragment\n }\n name\n email\n phone\n }\n }\n ","\n"]);return L=function(){return r},r}let z=(0,a.Ps)(L(),O.Z);var B=z;function F(){let r=(0,o._)(['\n fragment FooterMenuFragment on RootQueryToMenuConnection {\n nodes {\n menuItems(where: { parentId: "" }) {\n nodes {\n databaseId\n label\n url\n target\n title\n cssClasse
232s\n }\n }\n name\n slug\n }\n }\n\n query FooterMenuQuery {\n footerMenu1: menus(where: { location: FOOTER_MENU_1 }) {\n ...FooterMenuFragment\n }\n footerMenu2: menus(where: { location: FOOTER_MENU_2 }) {\n ...FooterMenuFragment\n }\n footerMenu3: menus(where: { location: FOOTER_MENU_3 }) {\n ...FooterMenuFragment\n }\n footerMenu4: menus(where: { location: FOOTER_MENU_4 }) {\n ...FooterMenuFragment\n }\n }\n']);return F=function(){return r},r}let N=(0,a.Ps)(F());var U={name:"footerMenuQuery",query:N}},13019:function(r,n,i){"use strict";var o=i(37340),a=i(94076);function s(){let r=(0,o._)(["\n query TeamPageTemplateQuery($slug: ID!) {\n page(id: $slug, idType: DATABASE_ID) {\n teamMember {\n teamMemberCoverImage {\n node {\n altText\n sourceUrl\n }\n }\n teamMemberEmail\n teamMemberFacebook\n teamMemberInstagram\n teamMemberJobTitle\n teamMemberLinkedin\n teamMemberProfilePicture {\n node {\n altText\n sourceUrl\n }\n }\n teamMemberTwitter\n }\n }\n }\n"]);return s=function(){return r},r}let l=(0,a.Ps)(s());n.Z={name:"teamPageTemplateQuery",query:l,queryArguments:r=>{var n;return{slug:(null==r?void 0:null===(n=r.databaseId)||void 0===n?void 0:n.toString())||""}}}},61202:function(r,n,i){"use strict";i.r(n),i.d(n,{default:function(){return nD}});var o,a,s,l,c,u,d=i(85893),h=i(67294),p=i(12783),f=i(38741),m=i(87462),g=i(71657),v=i(17297);let y=(r,n)=>(0,m.Z)({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},n&&{colorScheme:r.palette.mode}),b=r=>(0,m.Z)({color:(r.vars||r).palette.text.primary},r.typography.body1,{backgroundColor:(r.vars||r).palette.background.default,"@media print":{backgroundColor:(r.vars||r).palette.common.white}}),x=(r,n=!1)=>{var i,o;let a={html:y(r,n),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:r.typography.fontWeightBold},body:(0,m.Z)({margin:0},b(r),{"&::backdrop":{backgroundColor:(r.vars||r).palette.background.default}})},s=null==(i=r.components)?void 0:null==(o=i.MuiCssBaseline)?void 0:o.styleOverrides;return s&&(a=[a,s]),a};var _=function(r){let n=(0,g.Z)({props:r,name:"MuiCssBaseline"}),{children:i,enableColorScheme:o=!1}=n;return(0,d.jsxs)(h.Fragment,{children:[(0,d.jsx)(v.Z,{styles:r=>x(r,o)}),i]})},w=i(85945),S=i(32161),T=i(30819),E=i(30081),k=i(72379),C=i(89643);class P extends C.F{constructor(r){super(),this.abortSignalConsumed=!1,this.defaultOptions=r.defaultOptions,this.setOptions(r.options),this.observers=[],this.cache=r.cache,this.logger=r.logger||T._,this.queryKey=r.queryKey,this.queryHash=r.queryHash,this.initialState=r.state||function(r){let n="function"==typeof r.initialData?r.initialData():r.initialData,i=void 0!==n,o=i?"function"==typeof r.initialDataUpdatedAt?r.initialDataUpdatedAt():r.initialDataUpdatedAt:0;return{data:n,dataUpdateCount:0,dataUpdatedAt:i?null!=o?o:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(r){this.options={...this.defaultOptions,...r},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(r,n){let i=(0,S.oE)(this.state.data,r,this.options);return this.dispatch({data:i,type:"success",dataUpdatedAt:null==n?void 0:n.updatedAt,manual:null==n?void 0:n.manual}),i}setState(r,n){this.dispatch({type:"setState",state:r,setStateOptions:n})}cancel(r){var n;let i=this.promise;return null==(n=this.retryer)||n.cancel(r),i?i.then(S.ZT).catch(S.ZT):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(r=>!1!==r.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(r=>r.getCurrentResult().isStale)}isStaleByTime(r=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,S.Kp)(this.state.dataUpdatedAt,r)}onFocus(){var r;let n=this.observers.find(r=>r.shouldFetchOnWindowFocus());n&&n.refetch({cancelRefetch:!1}),null==(r=this.retryer)||r.continue()}onOnline(){var r;let n=this.observers.find(r=>r.shouldFetchOnReconnect());n&&n.refetch({cancelRefetch:!1}),null==(r=this.retryer)||r.continue()}addObserver(r){this.observers.includes(r)||(this.observers.push(r),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:r}))}removeObserver(r){this.observers.includes(r)&&(this.observers=this.observers.filter(n=>
232n!==r),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:r}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(r,n){var i,o,a,s;if("idle"!==this.state.fetchStatus){if(this.state.dataUpdatedAt&&null!=n&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise)return null==(a=this.retryer)||a.continueRetry(),this.promise}if(r&&this.setOptions(r),!this.options.queryFn){let r=this.observers.find(r=>r.options.queryFn);r&&this.setOptions(r.options)}let l=(0,S.G9)(),c={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},u=r=>{Object.defineProperty(r,"signal",{enumerable:!0,get:()=>{if(l)return this.abortSignalConsumed=!0,l.signal}})};u(c);let d=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(c)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),h={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:d};u(h),null==(i=this.options.behavior)||i.onFetch(h),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(o=h.fetchOptions)?void 0:o.meta))&&this.dispatch({type:"fetch",meta:null==(s=h.fetchOptions)?void 0:s.meta});let p=r=>{if((0,k.DV)(r)&&r.silent||this.dispatch({type:"error",error:r}),!(0,k.DV)(r)){var n,i,o,a;null==(n=(i=this.cache.config).onError)||n.call(i,r,this),null==(o=(a=this.cache.config).onSettled)||o.call(a,this.state.data,r,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=(0,k.Mz)({fn:h.fetchFn,abort:null==l?void 0:l.abort.bind(l),onSuccess:r=>{var n,i,o,a;if(void 0===r){p(Error(this.queryHash+" data is undefined"));return}this.setData(r),null==(n=(i=this.cache.config).onSuccess)||n.call(i,r,this),null==(o=(a=this.cache.config).onSettled)||o.call(a,r,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:p,onFail:(r,n)=>{this.dispatch({type:"failed",failureCount:r,error:n})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(r){this.state=(n=>{var i,o;switch(r.type){case"failed":return{...n,fetchFailureCount:r.failureCount,fetchFailureReason:r.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(i=r.meta)?i:null,fetchStatus:(0,k.Kw)(this.options.networkMode)?"fetching":"paused",...!n.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...n,data:r.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:null!=(o=r.dataUpdatedAt)?o:Date.now(),error:null,isInvalidated:!1,status:"success",...!r.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let a=r.error;if((0,k.DV)(a)&&a.revert&&this.revertState)return{...this.revertState,fetchStatus:"idle"};return{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...r.state}}})(this.state),E.V.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate(r)}),this.cache.notify({query:this,type:"updated",action:r})})}}var O=i(33989);class j extends O.l{constructor(r){super(),this.config=r||{},this.queries=[],this.queriesMap={}}build(r,n,i){var o;let a=n.queryKey,s=null!=(o=n.queryHash)?o:(0,S.Rm)(a,n),l=this.get(s);return l||(l=new P({cache:this,logger:r.getLogger(),queryKey:a,queryHash:s,options:r.defaultQueryOptions(n),state:i,defaultOptions:r.getQueryDefaults(a)}),this.add(l)),l}add(r){this.queriesMap[r.queryHash]||(this.queriesMap[r.queryHash]=r,this.queries.push(r),this.notify({type:"added",query:r}))}remove(r){let n=this.queriesMap[r.queryHash];n&&(r.destroy(),this.queries=this.queries.filter(n=>n!==r),n===r&&delete this.queriesMap[r.queryHash],this.notify({type:"removed",query:r}))}clear(){E.V.batch(()=>
232{this.queries.forEach(r=>{this.remove(r)})})}get(r){return this.queriesMap[r]}getAll(){return this.queries}find(r,n){let[i]=(0,S.I6)(r,n);return void 0===i.exact&&(i.exact=!0),this.queries.find(r=>(0,S._x)(i,r))}findAll(r,n){let[i]=(0,S.I6)(r,n);return Object.keys(i).length>0?this.queries.filter(r=>(0,S._x)(i,r)):this.queries}notify(r){E.V.batch(()=>{this.listeners.forEach(({listener:n})=>{n(r)})})}onFocus(){E.V.batch(()=>{this.queries.forEach(r=>{r.onFocus()})})}onOnline(){E.V.batch(()=>{this.queries.forEach(r=>{r.onOnline()})})}}var A=i(89886);class M extends O.l{constructor(r){super(),this.config=r||{},this.mutations=[],this.mutationId=0}build(r,n,i){let o=new A.m({mutationCache:this,logger:r.getLogger(),mutationId:++this.mutationId,options:r.defaultMutationOptions(n),state:i,defaultOptions:n.mutationKey?r.getMutationDefaults(n.mutationKey):void 0});return this.add(o),o}add(r){this.mutations.push(r),this.notify({type:"added",mutation:r})}remove(r){this.mutations=this.mutations.filter(n=>n!==r),this.notify({type:"removed",mutation:r})}clear(){E.V.batch(()=>{this.mutations.forEach(r=>{this.remove(r)})})}getAll(){return this.mutations}find(r){return void 0===r.exact&&(r.exact=!0),this.mutations.find(n=>(0,S.X7)(r,n))}findAll(r){return this.mutations.filter(n=>(0,S.X7)(r,n))}notify(r){E.V.batch(()=>{this.listeners.forEach(({listener:n})=>{n(r)})})}resumePausedMutations(){var r;return this.resuming=(null!=(r=this.resuming)?r:Promise.resolve()).then(()=>{let r=this.mutations.filter(r=>
232r.state.isPaused);return E.V.batch(()=>r.reduce((r,n)=>r.then(()=>n.continue().catch(S.ZT)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}var I=i(15761),Z=i(96474),R=i(9499);class D{constructor(r={}){this.queryCache=r.queryCache||new j,this.mutationCache=r.mutationCache||new M,this.logger=r.logger||T._,this.defaultOptions=r.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=I.j.subscribe(()=>{I.j.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Z.N.subscribe(()=>{Z.N.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var r,n;this.mountCount--,0===this.mountCount&&(null==(r=this.unsubscribeFocus)||r.call(this),this.unsubscribeFocus=void 0,null==(n=this.unsubscribeOnline)||n.call(this),this.unsubscribeOnline=void 0)}isFetching(r,n){let[i]=(0,S.I6)(r,n);return i.fetchStatus="fetching",this.queryCache.findAll(i).length}isMutating(r){return this.mutationCache.findAll({...r,fetching:!0}).length}getQueryData(r,n){var i;return null==(i=this.queryCache.find(r,n))?void 0:i.state.data}ensureQueryData(r,n,i){let o=(0,S._v)(r,n,i),a=this.getQueryData(o.queryKey);return a?Promise.resolve(a):this.fetchQuery(o)}getQueriesData(r){return this.getQueryCache().findAll(r).map(({queryKey:r,state:n})=>{let i=n.data;return[r,i]})}setQueryData(r,n,i){let o=this.queryCache.find(r),a=null==o?void 0:o.state.data,s=(0,S.SE)(n,a);if(void 0===s)return;let l=(0,S._v)(r),c=this.defaultQueryOptions(l);return this.queryCache.build(this,c).setData(s,{...i,manual:!0})}setQueriesData(r,n,i){return E.V.batch(()=>this.getQueryCache().findAll(r).map(({queryKey:r})=>[r,this.setQueryData(r,n,i)]))}getQueryState(r,n){var i;return null==(i=this.queryCache.find(r,n))?void 0:i.state}removeQueries(r,n){let[i]=(0,S.I6)(r,n),o=this.queryCache;E.V.batch(()=>{o.findAll(i).forEach(r=>{o.remove(r)})})}resetQueries(r,n,i){let[o,a]=(0,S.I6)(r,n,i),s=this.queryCache,l={type:"active",...o};return E.V.batch(()=>(s.findAll(o).forEach(r=>{r.reset()}),this.refetchQueries(l,a)))}cancelQueries(r,n,i){let[o,a={}]=(0,S.I6)(r,n,i);void 0===a.revert&&(a.revert=!0);let s=E.V.batch(()=>this.queryCache.findAll(o).map(r=>r.cancel(a)));return Promise.all(s).then(S.ZT).catch(S.ZT)}invalidateQueries(r,n,i){let[o,a]=(0,S.I6)(r,n,i);return E.V.batch(()=>{var r,n;if(this.queryCache.findAll(o).forEach(r=>{r.invalidate()}),"none"===o.refetchType)return Promise.resolve();let i={...o,type:null!=(r=null!=(n=o.refetchType)?n:o.type)?r:"active"};return this.refetchQueries(i,a)})}refetchQueries(r,n,i){let[o,a]=(0,S.I6)(r,n,i),s=E.V.batch(()=>this.queryCache.findAll(o).filter(r=>!r.isDisabled()).map(r=>{var n;return r.fetch(void 0,{...a,cancelRefetch:null==(n=null==a?void 0:a.cancelRefetch)||n,meta:{refetchPage:o.refetchPage}})})),l=Promise.all(s).then(S.ZT);return null!=a&&a.throwOnError||(l=l.catch(S.ZT)),l}fetchQuery(r,n,i){let o=(0,S._v)(r,n,i),a=this.defaultQueryOptions(o);void 0===a.retry&&(a.retry=!1);let s=this.queryCache.build(this,a);return s.isStaleByTime(a.staleTime)?s.fetch(a):Promise.resolve(s.state.data)}prefetchQuery(r,n,i){return this.fetchQuery(r,n,i).then(S.ZT).catch(S.ZT)}fetchInfiniteQuery(r,n,i){let o=(0,S._v)(r,n,i);return o.behavior=(0,R.Gm)(),this.fetchQuery(o)}prefetchInfiniteQuery(r,n,i){return this.fetchInfiniteQuery(r,n,i).then(S.ZT).catch(S.ZT)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(r){this.defaultOptions=r}setQueryDefaults(r,n){let i=this.queryDefaults.find(n=>(0,S.yF)(r)===(0,S.yF)(n.queryKey));i?i.defaultOptions=n:this.queryDefaults.push({queryKey:r,defaultOptions:n})}getQueryDefaults(r){if(!r)return;let n=this.queryDefaults.find(n=>(0,S.to)(r,n.queryKey));return null==n?void 0:n.defaultOptions}setMutationDefaults(r,n){let i=this.mutationDefaults.find(n=>(0,S.yF)(r)===(0,S.yF)(n.mutationKey));i?i.defaultOptions=n:this.mutationDefaults.push({mutationKey:r,defaultOptions:n})}getMutationDefaults(r){if(!r)return;let n=this.mutationDefaults.find(n=>(0,S.to)(r,n.mutationKey));return null==n?void 0:n.defaultOptions}defaultQueryOptions(r){if(null!=r&&r._defaulted)return r;let n={...this.defaultOptions.queries,...this.getQueryDefaults(null==r?void 0:r.queryKey),...r,_defaulted:!0};return!n.queryHash&&n.queryKey&&(n.queryHash=(0,S.Rm)(n.queryKey,n)),void 0===n.refetchOnReconnect&&(n.refetchOnReconnect="always"!==n.networkMode),void 0===n.useErrorBoundary&&(n.useErrorBoundary=!!n.suspense),n}defaultMutationOptions(r){return null!=r&&r._defaulted?r:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==r?void 0:r.mutationKey),...r,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}let L=function(){return null};var z=i(7544),B=i.n(z),F=i(9008),N=i.n(F),U=i(11163),V=i(85420),q=i(37447),$=i(67214),G=i(49287),W=i(98755),H=i(6017),X=i(51924),Y=i(24983),K=i(4298),J=i.n(K),Q=i(49048);let ee=()=>{let{data:r}=(0,Q.Z)();return(null==r?void 0:r.skimlinks)?(0,d.jsx)(J(),{id:"skimlinks-content",src:"https://s.skimresources.com/js/".concat(r.skimlinks,".skimlinks.js"),strategy:"lazyOnload"},"skimlinks-content"):(0,d.jsx)(d.Fragment,{})},et=r=>null==r?void 0:r.replace(/'/g,"\\'"),er=r=>{let{authors:n,category:i,domain:o,enabled:a,uid:s}=r;return a&&s?(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(J(),Object.assign({id:"chartbeat-content",strategy:"lazyOnload"}
232,{children:"\n (function() {\n /** CONFIGURATION START **/\n var _sf_async_config = window._sf_async_config = (window._sf_async_config || {});\n _sf_async_config.uid = '".concat(s,"';\n _sf_async_config.domain = '").concat(o,"';\n _sf_async_config.useCanonical = true;\n _sf_async_config.useCanonicalDomain = true;\n _sf_async_config.sections = '").concat(et(i),"';\n if ('").concat(et(n),"') {\n _sf_async_config.authors = '").concat(et(n),"';\n }\n /** CONFIGURATION END **/\n function loadChartbeat() {\n var e = document.createElement('script');\n var n = document.getElementsByTagName('script')[0];\n e.type = 'text/javascript';\n e.async = true;\n e.src = '//static.chartbeat.com/js/chartbeat.js';\n n.parentNode.insertBefore(e, n);\n }\n loadChartbeat();\n })();\n ")}),"chartbeat-content")}):(0,d.jsx)(d.Fragment,{})},en=r=>{let{enabled:n,tagId:i}=r;return n&&i?(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(J(),{id:"google-analytics-content",src:"https://www.googletagmanager.com/gtag/js?id=".concat(i),strategy:"lazyOnload"},"google-analytics-content")}):(0,d.jsx)(d.Fragment,{})};var ei=i(84815),eo=i(76655);let ea=()=>{let{node:r}=(0,W.Z)(),n=(0,ei.Z)();return(0,h.useEffect)(()=>{(0,eo.Z)({seoCanonical:n,node:r})},[n,r]),null},es=r=>{let{enabled:n,tagId:i}=r,o=(0,U.useRouter)(),a=()=>{{let r=document.getElementsByTagName("link");Object.values(r).forEach(r=>{"canonical"===r.getAttribute("rel")&&r.remove()})}};return(0,h.useEffect)(()=>o?(o.events.on("routeChangeStart",a),()=>{o.events.off("routeChangeStart",a)}):()=>{}),n&&i?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(J(),Object.assign({id:"google-tag-manager-content",strategy:"afterInteractive"},{children:"\n (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n 'https://www.googletagmanager.com/gtm.js?id='
232+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','".concat(i,"');\n ")}),"google-tag-manager-content"),(0,d.jsx)(ea,{})]}):(0,d.jsx)(d.Fragment,{})},el=r=>{let{enabled:n,pCode:i,tagId:o}=r;return n&&o&&i?(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(J(),Object.assign({id:"quantcast-content",strategy:"lazyOnload"},{children:"\n window._qevents = window._qevents || [];\n (function() {\n var elem = document.createElement('script');\n elem.src = (document.location.protocol == 'https:' ? 'https://secure' : 'http://edge') + '.quantserve.com/quant.js';\n elem.async = true;\n elem.type = 'text/javascript';\n var scpt = document.getElementsByTagName('script')[0];\n scpt.parentNode.insertBefore(elem, scpt);\n })();\n window._qevents.push({qacct:'\" . ".concat(i," . \"',uid:'\" . ").concat(o," . \"'});\n ")}),"quantcast-content")}):(0,d.jsx)(d.Fragment,{})},ec=r=>{let{sovrnKey:n}=r;return n?(0,d.jsx)(J(),{dangerouslySetInnerHTML:{__html:"var vglnk = {key: '".concat(n,"'};(function(d, t) {var s = d.createElement(t);s.type = 'text/javascript';s.async = true;s.src = '//cdn.viglink.com/api/vglnk.js';var r = d.getElementsByTagName(t)[0];r.parentNode.insertBefore(s, r);}(document, 'script'));")},id:"sovrn-content",strategy:"lazyOnload"},"sovrn-content"):(0,d.jsx)(d.Fragment,{})},eu=()=>{var r,n,i,o,a;let{site:s}=(0,G.Z)(),{data:l}=(0,V.Z)(),c=(0,U.useRouter)(),{node:u}=(0,W.Z)(),p=(0,q.Z)(),f=(0,$.Z)(),m=u&&"name"in u?u.name:"",g=(null===(n=null===(r=null==f?void 0:f.map(r=>{let{name:n}=r;return n}))||void 0===r?void 0:r.filter(Y.Z))||void 0===n?void 0:n.join(","))||m||"",v=(null===(a=null===(o=null===(i=null==p?void 0:p.nodes)||void 0===i?void 0:i.map(r=>{let{name:n}=r;return n}))||void 0===o?void 0:o.filter(Y.Z))||void 0===a?void 0:a.join(","))||"";return(h.useEffect(()=>{let r=r=>{l&&((0,X.Z)({url:r}),(0,H.Z)({url:r,node:u}))};return c.events.on("routeChangeComplete",r),()=>{c.events.off("routeChangeComplete",r)}},[c.events,l,u]),l)?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(er,{authors:v,category:g,domain:s.domain,enabled:l.analytics.chartbeatEnabled,uid:l.analytics.chartbeatUid},"chartbeat"),(0,d.jsx)(en,{enabled:l.analytics.googleAnalyticsEnabled,tagId:l.analytics.googleAnalyticsId},"google-analytics"),(0,d.jsx)(es,{enabled:l.analytics.googleTagManagerEnabled,tagId:l.analytics.googleTagManagerCode},"google-tag-manager"),(0,d.jsx)(el,{enabled:l.analytics.quantcastEnabled,pCode:l.analytics.quantcastPCode,tagId:l.analytics.quantcastTagId},"quantcast"),l.analytics.sovrnEnabled&&(0,d.jsx)(ec,{sovrnKey:l.analytics.sovrnKey},"sorvn"),(0,d.jsx)(ee,{})]}):(0,d.jsx)(d.Fragment,{})};var ed=i(2734);let eh=()=>{let r=(0,ed.Z)();return(0,d.jsx)(N(),{children:(0,d.jsx)("meta",{content:r.palette.primary.main,name:"theme-color"})})};var ep=i(17563),ef=function(){return(ef=Object.assign||function(r){for(var n,i=1,o=arguments.length;i<o;i++)for(var a in n=arguments[i])Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a]);return r}).apply(this,arguments)};function em(r,n,i){var o=(0,ep.stringify)(r,i);i&&i.transformSearchString&&(o=i.transformSearchString(o));var a=o.length?"?"+o:"",s=(0,ep.parseUrl)(n.href||"").url+a;return ef(ef({},n),{key:""+Date.now(),href:s,search:a,query:r})}'{}[],":'.split("").map(function(r){return[r,encodeURIComponent(r)]});var eg=Object.prototype.hasOwnProperty;function ev(r,n){return r===n?0!==r||0!==n||1/r==1/n:r!=r&&n!=n}var ey=h.createContext({location:{},getLocation:function(){return{}},setLocation:function(){}});function eb(r){var n=r.history,i=r.location,o=r.children,a=r.stringifyOptions,s=h.useRef(i);h.useEffect(function(){s.current=i},[i]);var l=h.useCallback(function(){return s.current},[s]),c=h.useCallback(function(r,i){s.current=function(r,n,i,o){switch(void 0===i&&(i="pushIn"),i){case"replace":case"push":return em(r,n,o);default:return em(ef(ef({},(0,ep.parse)(n.search,{parseNumbers:!1})),r),n,o)}}(r,null==n||null==n.location?s.current:n.location,i,a),n&&function(r,n,i){switch(void 0===i&&(i="pushIn"),i){case"pushIn":case"push":r.push(n);break;default:r.replace(n)}}(n,s.current,i)},[n,a]);return h.createElement(ey.Provider,{value:{location:i,getLocation:l,setLocation:c}},o)}(0,ep.parse)("");var ex=function(){return(ex=Object.assign||function(r){for(var n,i=1,o=arguments.length;i<o;i++)for(var a in n=arguments[i])Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a]);return r}).apply(this,arguments)};function e_(r){var n=void 0===r?{}:r,i=n.history,o=n.location;if("undefined"==typeof window||(i||(i=function(r){if(r===a&&null!=s)return s;var n={replace:function(n){r.replaceState(n.state,"",n.protocol+"//"+n.host+n.pathname+n.search)},push:function(n){r.pushState(n.state,"",n.protocol+"//"+n.host+n.pathname+n.search)},get location(){return window.location}};return a=r,s=n,n}(window.history)),o||(o=window.location)),!o)throw Error("\n Could not read the location. Is the router wired up correctly?\n ");return{history:i,location:o}}function ew(r){var n=r.children,i=r.ReactRouterRoute,o=r.reachHistory,a=r.history,s=r.location,u=r.stringifyOptions,d=h.useRef(u),p=!function(r,n,i){if(ev(r,n))return!0;
232if("object"!=typeof r||null===r||"object"!=typeof n||null===n)return!1;var o,a,s=Object.keys(r),l=Object.keys(n);if(s.length!==l.length)return!1;for(var c=0;c<s.length;c++){var u=null!==(a=null===(o=null==i?void 0:i[s[c]])||void 0===o?void 0:o.equals)&&void 0!==a?a:ev;if(!eg.call(n,s[c])||!u(r[s[c]],n[s[c]]))return!1}return!0}(d.current,u)?u:d.current;return(h.useEffect(function(){d.current=p},[p]),i)?h.createElement(i,null,function(r){return h.createElement(eb,ex({stringifyOptions:p},e_(r)),n)}):o?h.createElement(eb,ex({stringifyOptions:p},e_({history:function(r){if(r===l&&null!=c)return c;var n={replace:function(n){r.navigate(n.protocol+"//"+n.host+n.pathname+n.search,{replace:!0})},push:function(n){r.navigate(n.protocol+"//"+n.host+n.pathname+n.search,{replace:!1})},get location(){return r.location}};return l=r,c=n,n}(o),location:s})),n):h.createElement(eb,ex({stringifyOptions:p},e_({history:a,location:s})),n)}var eS=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&0>n.indexOf(o)&&(i[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)0>n.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(i[o[a]]=r[o[a]]);return i};let eT=/[^?#]+/u;var eE=(0,h.memo)(function(r){var{children:n}=r,i=eS(r,["children"]);let o=(0,U.useRouter)(),a=o.asPath.match(eT),s=a?a[0]:o.asPath,l=(0,h.useMemo)(()=>o.isReady?window.location:{search:""},[o.asPath,o.isReady]),c=(0,h.useMemo)(()=>{function r(r){return function(n){let{hash:i,search:a}=n;r({pathname:o.pathname,search:a,hash:i},{pathname:s,search:a,hash:i},{shallow:!0,scroll:!1})}}return{push:r(o.push),replace:r(o.replace),location:l}},[l,s,o]);return(0,d.jsx)(ew,Object.assign({},i,{history:c,location:l},{children:n}))}),ek=i(56760),eC=i(44819);let eP="function"==typeof Symbol&&Symbol.for;var eO=eP?Symbol.for("mui.nested"):"__THEME_NESTED__",ej=function(r){let{children:n,theme:i}=r,o=(0,ek.Z)(),a=h.useMemo(()=>{let r=null===o?i:function(r,n){if("function"==typeof n){let i=n(r);return i}return(0,m.Z)({},r,n)}(o,i);return null!=r&&(r[eO]=null!==o),r},[i,o]);return(0,d.jsx)(eC.Z.Provider,{value:a,children:n})},eA=i(34168),eM=i(63366);let eI=["value"],eZ=h.createContext();var eR=function(r){let{value:n}=r,i=(0,eM.Z)(r,eI);return(0,d.jsx)(eZ.Provider,(0,m.Z)({value:null==n||n},i))};let eD=h.createContext(void 0);var eL=function({value:r,children:n}){return(0,d.jsx)(eD.Provider,{value:r,children:n})};let ez={};function eB(r,n,i,o=!1){return h.useMemo(()=>{let a=r&&n[r]||n;if("function"==typeof i){let s=i(a),l=r?(0,m.Z)({},n,{[r]:s}):s;return o?()=>l:l}return r?(0,m.Z)({},n,{[r]:i}):(0,m.Z)({},n,i)},[r,n,i,o])}var eF=function(r){let{children:n,theme:i,themeId:o}=r,a=(0,eA.Z)(ez),s=(0,ek.Z)()||ez,l=eB(o,a,i),c=eB(o,s,i,!0),u="rtl"===l.direction;return(0,d.jsx)(ej,{theme:c,children:(0,d.jsx)(f.T.Provider,{value:l,children:(0,d.jsx)(eR,{value:u,children:(0,d.jsx)(eL,{value:null==l?void 0:l.components,children:n})})})})},eN=i(85165);let eU=r=>{let{children:n}=r,{muiTheme:i}=(0,eN.Z)();return i?(0,d.jsx)(eF,Object.assign({theme:i},{children:n})):(0,d.jsx)(d.Fragment,{children:n})};var eV=i(48711),eq=i(43169),e$=i(28268);let eG=r=>{let n=(0,e$.Z)(r);return n?n.hostname.replace(/.*?(\w+\.\w+$)/m,"$1"):null},eW=r=>{var n;if(!r||r.startsWith("/"))return!1;let i=eG(r);if(null===i)return!1;let o=eG(null===(n=null==window?void 0:window.location)||void 0===n?void 0:n.href);return o!==i},eH=["noreferrer","noopener"],eX=r=>{let n=(null==r?void 0:r.getAttribute("rel"))||"";return eH.reduce((r,i)=>n.includes(i)?[...r,i]:r,[]).join(",")},eY=r=>{let{children:n,rootSelector:i="body"}=r,o=(0,eq.nC)();return(0,h.useEffect)(()=>{var r;if(!(null===(r=o.options)||void 0===r?void 0:r.openExternalLinksInNewTab))return;let n=document.querySelector(i),a=r=>{let n=r.target.closest("a"),i=null==n?void 0:n.getAttribute("href"),o=!r.defaultPrevented;n&&eW(i)&&o&&(r.preventDefault(),window.open(i,"_blank",eX(n)))};return null==n||n.addEventListener("click",a),()=>{null==n||n.removeEventListener("click",a)}},[i,o]),(0,d.jsx)(d.Fragment,{children:n})};var eK=i(8881);function eJ(r){let{children:n,state:i}=r,o=(0,w.NL)(),a=h.useRef();return i&&i!==a.current&&(function(r,n,i){if("object"!=typeof n||null===n)return;let o=r.getMutationCache(),a=r.getQueryCache(),s=n.mutations||[],l=n.queries||[];
232s.forEach(n=>{var a;o.build(r,{...null==i?void 0:null==(a=i.defaultOptions)?void 0:a.mutations,mutationKey:n.mutationKey},n.state)}),l.forEach(({queryKey:n,state:o,queryHash:s})=>{var l;let c=a.get(s);if(c){if(c.state.dataUpdatedAt<o.dataUpdatedAt){let{fetchStatus:r,...n}=o;c.setState(n)}return}a.build(r,{...null==i?void 0:null==(l=i.defaultOptions)?void 0:l.queries,queryKey:n,queryHash:s},{...o,fetchStatus:"idle"})})}(o,i),a.current=i),n}let eQ=function(){let r=(0,eV.Z)({key:"css"});return r.compat=!0,r}();function e0(r){let{Component:n,emotionCache:i=eQ,pageProps:o,requestHost:a}=r,[s]=h.useState(()=>new D({defaultOptions:{queries:{retry:!1,staleTime:1/0}}})),l=(0,h.useMemo)(()=>({host:a}),[a]);return(0,d.jsx)(eE,{children:(0,d.jsx)(eK.N.Provider,Object.assign({value:l},{children:(0,d.jsxs)(w.aH,Object.assign({client:s},{children:[(0,d.jsx)(eJ,Object.assign({state:o.dehydratedState},{children:(0,d.jsx)(f.C,Object.assign({value:i},{children:(0,d.jsx)(eU,{children:(0,d.jsxs)(eY,{children:[(0,d.jsx)(N(),{children:(0,d.jsx)("meta",{content:"initial-scale=1, width=device-width",name:"viewport"})}),(0,d.jsx)(eh,{}),(0,d.jsx)(eu,{}),(0,d.jsx)(_,{}),(0,d.jsx)(n,Object.assign({},o))]})})}))})),(0,d.jsx)(L,{position:"bottom-right"})]}))}))})}function e1(){var r;return{height:(null==document?void 0:null===(r=document.scrollingElement)||void 0===r?void 0:r.scrollHeight)||window.innerHeight,width:window.innerWidth}}e0.getInitialProps=r=>{var n,i,o,a;return n=void 0,i=void 0,o=void 0,a=function*(){var n;let i=yield B().getInitialProps(r);return Object.assign({requestHost:null===(n=r.ctx.req)||void 0===n?void 0:n.headers.host},i)},new(o||(o=Promise))(function(r,s){function l(r){try{u(a.next(r))}catch(r){s(r)}}function c(r){try{u(a.throw(r))}catch(r){s(r)}}function u(n){var i;n.done?r(n.value):((i=n.value)instanceof o?i:new o(function(r){r(i)})).then(l,c)}u((a=a.apply(n,i||[])).next())})};let e2={current:window},e3=()=>{let r;window.CSS&&window.CSS.supports("color","var(--some-var)")&&((r=window.innerWidth>document.body.clientWidth?window.innerWidth-document.body.clientWidth:0)>0&&15!==r&&requestAnimationFrame(()=>e3()),document.documentElement.style.setProperty("--scroll-bar","".concat(r,"px")))},e4=r=>{let{children:n}=r;return(0,h.useEffect)(()=>{e3()},[]),function(r){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300,i=(0,h.useRef)(e1()),o=function(r,n,i){let o=(0,h.useRef)(),a=(0,h.useRef)(r),s=(0,h.useCallback)(()=>{o.current&&clearTimeout(o.current),o.current=void 0},[]);return(0,h.useEffect)(()=>()=>s()),(0,h.useEffect)(()=>{a.current=r},[r,...n]),(0,h.useCallback)(function(){for(var r=arguments.length,n=Array(r),l=0;l<r;l++)n[l]=arguments[l];s(),o.current=setTimeout(()=>{s(),a.current(...n)},i)},[i,s])}(()=>{let n=e1();(n.width!==i.current.width||n.height!==i.current.height)&&(i.current=n,r())},[],n);!function(r,n,i){for(var o=arguments.length,a=Array(o>3?o-3:0),s=3;s<o;s++)a[s-3]=arguments[s];(0,h.useEffect)(()=>{let o=r.current;if(!i||!o)return()=>{};let s=r=>null==i?void 0:i.call(o,r);return o.addEventListener(n,s,...a),()=>{o&&o.removeEventListener(n,s,...a)}},[n,i,JSON.stringify(a)])}(e2,"resize",o)}(e3,500),(0,d.jsx)(d.Fragment,{children:n})};var e5=i(86003),e6=i.n(e5),e8=i(2737),e9=i.n(e8),e7=i(52694),te=i.n(e7),tt=i(48638),tr=i.n(tt),tn=i(13893),ti=i.n(tn);let to=r=>{let{children:n}=r,i=(0,eq.nC)();return(0,d.jsx)("div",{className:"app-root ".concat(e6().variable," ").concat(e9().variable," ").concat(te().variable," ").concat(tr().variable," ").concat(ti().variable," theme-").concat(i.themeId," font-sans overflow-x-hidden"),children:n})};var ta=i(5152),ts=i.n(ta),tl=i(10879),tc=i(60655),tu=i(15300),td=i(26923);let th=r=>{var n;return null!==(n=null==r?void 0:r.ownerDocument)&&void 0!==n?n:document},tp=r=>{if(r&&"window"in r&&r.window===r)return r;let n=th(r);return n.defaultView||window},tf=new Map,tm=new Set;function tg(){if("undefined"==typeof window)return;function r(r){return"propertyName"in r}let n=n=>{if(!r(n)||!n.target)return;let o=tf.get(n.target);o||(o=new Set,tf.set(n.target,o),n.target.addEventListener("transitioncancel",i,{once:!0})),o.add(n.propertyName)},i=n=>{if(!r(n)||!n.target)return;let o=tf.get(n.target);if(o&&(o.delete(n.propertyName),0===o.size&&(n.target.removeEventListener("transitioncancel",i),tf.delete(n.target)),0===tf.size)){for(let r of tm)r();tm.clear()}};document.body.addEventListener("transitionrun",n),document.body.addEventListener("transitionend",i)}function tv(r){if(function(){if(null==ty){ty=!1;try{document.createElement("div").focus({get preventScroll(){return ty=!0,!0}})}catch{}}return ty}())r.focus({preventScroll:!0});else{let n=function(r){let n=r.parentNode,i=[],o=document.scrollingElement||document.documentElement;for(;n instanceof HTMLElement&&n!==o;)(n.offsetHeight<n.scrollHeight||n.offsetWidth<n.scrollWidth)&&i.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),n=n.parentNode;return o instanceof HTMLElement&&i.push({element:o,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft}),i}(r);r.focus(),function(r){for(let{element:n,scrollTop:i,scrollLeft:o}of r)n.scrollTop=i,n.scrollLeft=o}(n)}}"undefined"!=typeof document&&("loading"!==document.readyState?tg():document.addEventListener("DOMContentLoaded",tg));let ty=null;function tb(r){var n;return"undefined"!=typeof window&&null!=window.navigator&&((null===(n=window.navigator.userAgentData)||void 0===n?void 0:n.brands.some(n=>r.test(n.brand)))||r.test(window.navigator.userAgent))}function tx(r){var n;return"undefined"!=typeof window&&null!=window.navigator&&r.test((null===(n=window.navigator.userAgentData)||void 0===n?void 0:n.platform)||window.navigator.platform)}function t_(r){let n=null;return()=>
232(null==n&&(n=r()),n)}let tw=t_(function(){return tx(/^Mac/i)}),tS=t_(function(){return tx(/^iPhone/i)}),tT=t_(function(){return tx(/^iPad/i)||tw()&&navigator.maxTouchPoints>1}),tE=t_(function(){return tS()||tT()});t_(function(){return tw()||tE()}),t_(function(){return tb(/AppleWebKit/i)&&!tk()});let tk=t_(function(){return tb(/Chrome/i)}),tC=t_(function(){return tb(/Android/i)});t_(function(){return tb(/Firefox/i)});let tP=null,tO=new Set,tj=new Map,tA=!1,tM=!1;function tI(r,n){for(let i of tO)i(r,n)}function tZ(r){tA=!0,r.metaKey||!tw()&&r.altKey||r.ctrlKey||"Control"===r.key||"Shift"===r.key||"Meta"===r.key||(tP="keyboard",tI("keyboard",r))}function tR(r){tP="pointer",("mousedown"===r.type||"pointerdown"===r.type)&&(tA=!0,tI("pointer",r))}function tD(r){(0!==r.mozInputSource||!r.isTrusted)&&(tC()&&r.pointerType?"click"!==r.type||1!==r.buttons:0!==r.detail||r.pointerType)||(tA=!0,tP="virtual")}function tL(r){r.target!==window&&r.target!==document&&(tA||tM||(tP="virtual",tI("virtual",r)),tA=!1,tM=!1)}function tz(){tA=!1,tM=!0}function tB(r){if("undefined"==typeof window||tj.get(tp(r)))return;let n=tp(r),i=th(r),o=n.HTMLElement.prototype.focus;n.HTMLElement.prototype.focus=function(){tA=!0,o.apply(this,arguments)},i.addEventListener("keydown",tZ,!0),i.addEventListener("keyup",tZ,!0),i.addEventListener("click",tD,!0),n.addEventListener("focus",tL,!0),n.addEventListener("blur",tz,!1),"undefined"!=typeof PointerEvent?(i.addEventListener("pointerdown",tR,!0),i.addEventListener("pointermove",tR,!0),i.addEventListener("pointerup",tR,!0)):(i.addEventListener("mousedown",tR,!0),i.addEventListener("mousemove",tR,!0),i.addEventListener("mouseup",tR,!0)),n.addEventListener("beforeunload",()=>{tF(r)},{once:!0}),tj.set(n,{focus:o})}let tF=(r,n)=>{let i=tp(r),o=th(r);n&&o.removeEventListener("DOMContentLoaded",n),tj.has(i)&&(i.HTMLElement.prototype.focus=tj.get(i).focus,o.removeEventListener("keydown",tZ,!0),o.removeEventListener("keyup",tZ,!0),o.removeEventListener("click",tD,!0),i.removeEventListener("focus",tL,!0),i.removeEventListener("blur",tz,!1),"undefined"!=typeof PointerEvent?(o.removeEventListener("pointerdown",tR,!0),o.removeEventListener("pointermove",tR,!0),o.removeEventListener("pointerup",tR,!0)):(o.removeEventListener("mousedown",tR,!0),o.removeEventListener("mousemove",tR,!0),o.removeEventListener("mouseup",tR,!0)),tj.delete(i))};"undefined"!=typeof document&&function(r){let n;let i=th(r);"loading"!==i.readyState?tB(r):(n=()=>{tB(r)},i.addEventListener("DOMContentLoaded",n)),()=>tF(r,n)}();let tN="undefined"!=typeof document?h.useLayoutEffect:()=>{},tU=h.createContext(null),tV="react-aria-focus-scope-restore",tq=null;function t$(r){var n,i,o;let a,s,{children:l,contain:c,restoreFocus:u,autoFocus:d}=r,p=(0,h.useRef)(null),f=(0,h.useRef)(null),m=(0,h.useRef)([]),{parentNode:g}=(0,h.useContext)(tU)||{},v=(0,h.useMemo)(()=>new t8({scopeRef:m}),[m]);tN(()=>{let r=g||t9.root;if(t9.getTreeNode(r.scopeRef)&&tq&&!tQ(tq,r.scopeRef)){let n=t9.getTreeNode(tq);n&&(r=n)}r.addChild(v),t9.addNode(v)},[v,g]),tN(()=>{let r=t9.getTreeNode(m);r&&(r.contain=!!c)},[c]),tN(()=>{var r;let n=null===(r=p.current)||void 0===r?void 0:r.nextSibling,i=[],o=r=>r.stopPropagation();for(;n&&n!==f.current;)i.push(n),n.addEventListener(tV,o),n=n.nextSibling;return m.current=i,()=>{for(let r of i)r.removeEventListener(tV,o)}},[l]),tN(()=>{if(i||o)return;let r=n.current,a=th(r?r[0]:void 0),s=r=>{let i=r.target;tK(i,n.current)?tq=n:tJ(i)||(tq=null)};return a.addEventListener("focusin",s,!1),null==r||r.forEach(r=>r.addEventListener("focusin",s,!1)),()=>{a.removeEventListener("focusin",s,!1),null==r||r.forEach(r=>r.removeEventListener("focusin",s,!1))}},[n=m,i=u,o=c]),a=(0,h.useRef)(void 0),s=(0,h.useRef)(void 0),tN(()=>{let r=m.current;if(!c){s.current&&(cancelAnimationFrame(s.current),s.current=void 0);return}let n=th(r?r[0]:void 0),i=r=>{if("Tab"!==r.key||r.altKey||r.ctrlKey||r.metaKey||!tY(m)||r.isComposing)return;let i=n.activeElement,o=m.current;if(!o||!tK(i,o))return;let a=t5(tX(o),{tabbable:!0},o);if(!i)return;a.currentNode=i;let s=r.shiftKey?a.previousNode():a.nextNode();s||(a.currentNode=r.shiftKey?o[o.length-1].nextElementSibling:o[0].previousElementSibling,s=r.shiftKey?a.previousNode():a.nextNode()),r.preventDefault(),s&&t0(s,!0)},o=r=>{(!tq||tQ(tq,m))&&tK(r.target,m.current)?(tq=m,a.current=r.target):tY(m)&&!tJ(r.target,m)?a.current?a.current.focus():tq&&tq.current&&t2(tq.current):tY(m)&&(a.current=r.target)},l=r=>{s.current&&cancelAnimationFrame(s.current),s.current=requestAnimationFrame(()=>{if(n.activeElement&&tY(m)&&!tJ(n.activeElement,m)){if(tq=m,n.body.contains(r.target)){var i;a.current=r.target,null===(i=a.current)||void 0===i||i.focus()}else tq.current&&t2(tq.current)}})};return n.addEventListener("keydown",i,!1),n.addEventListener("focusin",o,!1),null==r||r.forEach(r=>r.addEventListener("focusin",o,!1)),null==r||r.forEach(r=>r.addEventListener("focusout",l,!1)),()=>{n.removeEventListener("keydown",i,!1),n.removeEventListener("focusin",o,!1),null==r||r.forEach(r=>r.removeEventListener("focusin",o,!1)),null==r||r.forEach(r=>r.removeEventListener("focusout",l,!1))}}
232,[m,c]),tN(()=>()=>{s.current&&cancelAnimationFrame(s.current)},[s]),function(r,n,i){let o=(0,h.useRef)("undefined"!=typeof document?th(r.current?r.current[0]:void 0).activeElement:null);tN(()=>{let o=r.current,a=th(o?o[0]:void 0);if(!n||i)return;let s=()=>{(!tq||tQ(tq,r))&&tK(a.activeElement,r.current)&&(tq=r)};return a.addEventListener("focusin",s,!1),null==o||o.forEach(r=>r.addEventListener("focusin",s,!1)),()=>{a.removeEventListener("focusin",s,!1),null==o||o.forEach(r=>r.removeEventListener("focusin",s,!1))}},[r,i]),tN(()=>{let o=th(r.current?r.current[0]:void 0);if(!n)return;let a=n=>{if("Tab"!==n.key||n.altKey||n.ctrlKey||n.metaKey||!tY(r)||n.isComposing)return;let i=o.activeElement;if(!tJ(i,r)||!t3(r))return;let a=t9.getTreeNode(r);if(!a)return;let s=a.nodeToRestore,l=t5(o.body,{tabbable:!0});l.currentNode=i;let c=n.shiftKey?l.previousNode():l.nextNode();if(s&&o.body.contains(s)&&s!==o.body||(s=void 0,a.nodeToRestore=void 0),(!c||!tJ(c,r))&&s){l.currentNode=s;do c=n.shiftKey?l.previousNode():l.nextNode();while(tJ(c,r));(n.preventDefault(),n.stopPropagation(),c)?t0(c,!0):tJ(s)?t0(s,!0):i.blur()}};return i||o.addEventListener("keydown",a,!0),()=>{i||o.removeEventListener("keydown",a,!0)}},[r,n,i]),tN(()=>{var i;let a=th(r.current?r.current[0]:void 0);if(!n)return;let s=t9.getTreeNode(r);if(s)return s.nodeToRestore=null!==(i=o.current)&&void 0!==i?i:void 0,()=>{let i=t9.getTreeNode(r);if(!i)return;let o=i.nodeToRestore;if(n&&o&&(a.activeElement&&tJ(a.activeElement,r)||a.activeElement===a.body&&t3(r))){let n=t9.clone();requestAnimationFrame(()=>{if(a.activeElement===a.body){let i=n.getTreeNode(r);for(;i;){if(i.nodeToRestore&&i.nodeToRestore.isConnected){t4(i.nodeToRestore);return}i=i.parent}for(i=n.getTreeNode(r);i;){if(i.scopeRef&&i.scopeRef.current&&t9.getTreeNode(i.scopeRef)){t4(t1(i.scopeRef.current,!0));return}i=i.parent}}})}}},[r,n])}(m,u,c),function(r,n){let i=h.useRef(n);(0,h.useEffect)(()=>{if(i.current){tq=r;let n=th(r.current?r.current[0]:void 0);!tK(n.activeElement,tq.current)&&r.current&&t2(r.current)}i.current=!1},[r])}(m,d),(0,h.useEffect)(()=>{let r=th(m.current?m.current[0]:void 0).activeElement,n=null;if(tK(r,m.current)){for(let i of t9.traverse())i.scopeRef&&tK(r,i.scopeRef.current)&&(n=i);n===t9.getTreeNode(m)&&(tq=n.scopeRef)}},[m]),tN(()=>()=>{var r,n,i;let o=null!==(i=null===(n=t9.getTreeNode(m))||void 0===n?void 0:null===(r=n.parent)||void 0===r?void 0:r.scopeRef)&&void 0!==i?i:null;(m===tq||tQ(m,tq))&&(!o||t9.getTreeNode(o))&&(tq=o),t9.removeTreeNode(m)},[m]);let y=(0,h.useMemo)(()=>({focusNext(r={}){let n=m.current,{from:i,tabbable:o,wrap:a,accept:s}=r,l=i||th(n[0]).activeElement,c=n[0].previousElementSibling,u=t5(tX(n),{tabbable:o,accept:s},n);u.currentNode=tK(l,n)?l:c;let d=u.nextNode();return!d&&a&&(u.currentNode=c,d=u.nextNode()),d&&t0(d,!0),d},focusPrevious(r={}){let n=m.current,{from:i,tabbable:o,wrap:a,accept:s}=r,l=i||th(n[0]).activeElement,c=n[n.length-1].nextElementSibling,u=t5(tX(n),{tabbable:o,accept:s},n);u.currentNode=tK(l,n)?l:c;let d=u.previousNode();return!d&&a&&(u.currentNode=c,d=u.previousNode()),d&&t0(d,!0),d},focusFirst(r={}){let n=m.current,{tabbable:i,accept:o}=r,a=t5(tX(n),{tabbable:i,accept:o},n);a.currentNode=n[0].previousElementSibling;let s=a.nextNode();return s&&t0(s,!0),s},focusLast(r={}){let n=m.current,{tabbable:i,accept:o}=r,a=t5(tX(n),{tabbable:i,accept:o},n);a.currentNode=n[n.length-1].nextElementSibling;let s=a.previousNode();return s&&t0(s,!0),s}}),[]),b=(0,h.useMemo)(()=>({focusManager:y,parentNode:v}),[v,y]);return h.createElement(tU.Provider,{value:b},h.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:p}),l,h.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:f}))}let tG=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],tW=tG.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";tG.push('[tabindex]:not([tabindex="-1"]):not([disabled])');let tH=tG.join(':not([hidden]):not([tabindex="-1"]),');function tX(r){return r[0].parentElement}function tY(r){let n=t9.getTreeNode(tq);for(;n&&n.scopeRef!==r;){if(n.contain)return!1;n=n.parent}return!0}function tK(r,n){return!!r&&!!n&&n.some(n=>n.contains(r))}function tJ(r,n=null){if(r instanceof Element&&r.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:i}of t9.traverse(t9.getTreeNode(n)))if(i&&tK(r,i.current))return!0;return!1}function tQ(r,n){var i;let o=null===(i=t9.getTreeNode(n))||void 0===i?void 0:i.parent;for(;o;){if(o.scopeRef===r)return!0;o=o.parent}return!1}function t0(r,n=!1){if(null==r||n){if(null!=r)try{r.focus()}catch{}}else try{!function(r){let n=th(r);if("virtual"===tP){var i;let o=n.activeElement;i=()=>{n.activeElement===o&&r.isConnected&&tv(r)},requestAnimationFrame(()=>{0===tf.size?i():tm.add(i)})}else tv(r)}(r)}catch{}}function t1(r,n=!0){let i=r[0].previousElementSibling,o=tX(r),a=t5(o,{tabbable:n},r);a.currentNode=i;let s=a.nextNode();return n&&!s&&((a=t5(o=tX(r),{tabbable:!1},r)).currentNode=i,s=a.nextNode()),s}function t2(r,n=!0){t0(t1(r,n))}function t3(r){let n=t9.getTreeNode(tq);for(;n&&n.scopeRef!==r;){if(n.nodeToRestore)return!1;n=n.parent}return(null==n?void 0:n.scopeRef)===r}function t4(r){r.dispatchEvent(new CustomEvent(tV,{bubbles:!0,cancelable:!0}))&&t0(r)}function t5(r,n,i){let o=(null==n?void 0:n.tabbable)?tH:tW,a=th(r).createTreeWalker(r,NodeFilter.SHOW_ELEMENT,{acceptNode(r){var a;return(null==n?void 0:null===(a=n.from)||void 0===a?void 0:a.contains(r))?NodeFilter.FILTER_REJECT:r.matches(o)&&function r(n,i){return"#comment"!==n.nodeName&&function(r){let n=tp(r);if(!(r instanceof n.HTMLElement)&&!(r instanceof n.SVGElement))return!1;let{display:i,visibility:o}
232=r.style,a="none"!==i&&"hidden"!==o&&"collapse"!==o;if(a){let{getComputedStyle:n}=r.ownerDocument.defaultView,{display:i,visibility:o}=n(r);a="none"!==i&&"hidden"!==o&&"collapse"!==o}return a}(n)&&!n.hasAttribute("hidden")&&!n.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==n.nodeName||!i||"SUMMARY"===i.nodeName||n.hasAttribute("open"))&&(!n.parentElement||r(n.parentElement,n))}(r)&&(!i||tK(r,i))&&(!(null==n?void 0:n.accept)||n.accept(r))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return(null==n?void 0:n.from)&&(a.currentNode=n.from),a}class t6{get size(){return this.fastMap.size}getTreeNode(r){return this.fastMap.get(r)}addTreeNode(r,n,i){let o=this.fastMap.get(null!=n?n:null);if(!o)return;let a=new t8({scopeRef:r});o.addChild(a),a.parent=o,this.fastMap.set(r,a),i&&(a.nodeToRestore=i)}addNode(r){this.fastMap.set(r.scopeRef,r)}removeTreeNode(r){if(null===r)return;let n=this.fastMap.get(r);if(!n)return;let i=n.parent;for(let r of this.traverse())r!==n&&n.nodeToRestore&&r.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&tK(r.nodeToRestore,n.scopeRef.current)&&(r.nodeToRestore=n.nodeToRestore);let o=n.children;i&&(i.removeChild(n),o.size>0&&o.forEach(r=>i&&i.addChild(r))),this.fastMap.delete(n.scopeRef)}*traverse(r=this.root){if(null!=r.scopeRef&&(yield r),r.children.size>0)for(let n of r.children)yield*this.traverse(n)}clone(){var r,n;let i=new t6;for(let o of this.traverse())i.addTreeNode(o.scopeRef,null!==(n=null===(r=o.parent)||void 0===r?void 0:r.scopeRef)&&void 0!==n?n:null,o.nodeToRestore);return i}constructor(){this.fastMap=new Map,this.root=new t8({scopeRef:null}),this.fastMap.set(null,this.root)}}class t8{addChild(r){this.children.add(r),r.parent=this}removeChild(r){this.children.delete(r),r.parent=void 0}constructor(r){this.children=new Set,this.contain=!1,this.scopeRef=r.scopeRef}}let t9=new t6;var t7=i(46034),re=i(28926),rt=i(93967),rr=i.n(rt);function rn(r){var n;let{className:i="hidden"}=r,{menus:o}=(0,G.Z)();return(0,d.jsx)("ul",{className:rr()("flex-col md:flex-row md:items-center gap-4 xl:gap-8 md:flex",i),children:null===(n=o.MAIN_NAVIGATION)||void 0===n?void 0:n.map(r=>r.path&&r.label?(0,d.jsx)("li",{className:"flex items-center",children:(0,d.jsx)("a",{href:r.path,className:"font-primary text-sm font-black leading-5 text-black hover:underline hover:underline-offset-2",children:r.label})},r.id):null)})}var ri=i(11400);function ro(r){let{className:n=""}=r,{networks:i}=(0,G.Z)();return(null==i?void 0:i.length)?(0,d.jsx)("nav",{"aria-label":"Social Media",className:n,children:i.map(r=>(null==r?void 0:r.icon)&&(null==r?void 0:r.icon)&&(null==r?void 0:r.url)?(0,d.jsxs)("a",{href:r.url,target:"_blank",rel:"noopener noreferrer",className:"flex size-5 items-center justify-center rounded-full border-[1.33px] border-neutral-950 bg-neutral-950 p-[2.67px] text-white hocus:border-neutral-500 hocus:bg-neutral-500 hocus:text-white xl:size-8 xl:border-2 xl:p-1",children:[(0,d.jsxs)("span",{className:"sr-only",children:["Follow on ",r.name]}),(0,d.jsx)(ri.Z,{icon:r.icon,className:"size-[18px] object-contain"})]},"header-social-".concat(r.icon)):(0,d.jsx)(d.Fragment,{}))}):(0,d.jsx)(d.Fragment,{})}var ra=i(45953);function rs(r){var n,i;let{className:o="hidden lg:flex"}=r,{newsletterNavbar:a}=(0,G.Z)(),{data:s}=(0,t7.Z)(re.Z),l=null==s?void 0:null===(n=s.flexpressCMSSettings)||void 0===n?void 0:null===(i=n.generalOptions)||void 0===i?void 0:i.extraLink;return(0,d.jsxs)("ul",{className:rr()("flex-row items-center md:justify-center gap-3",o),children:[(null==l?void 0:l.extraBtnText)&&(null==l?void 0:l.extraBtnLink)&&(0,d.jsx)("li",{className:"flex",children:(0,d.jsx)(ra.Z,{href:l.extraBtnLink,className:"py-2! px-[38px] text-sm text-white",variant:"solid",type:"button",theme:"b800-n500",children:l.extraBtnText})}),(null==a?void 0:a.enabled)&&(0,d.jsx)("li",{className:"flex",children:(0,d.jsx)(ra.Z,{href:a.href,className:"whitespace-nowrap py-2! px-[38px] text-sm",type:"button",variant:"outline",theme:"white-n500",children:a.label})})]})}function rl(r){let{className:n="hidden md:block",direction:i="vertical"}=r,{themeId:o}=(0,eq.nC)();return"beewild"===o?null:"horizontal"===i?(0,d.jsx)("div",{className:"h-px w-full bg-neutral-500 md:hidden","aria-hidden":!0}):(0,d.jsx)("div",{className:rr()("h-[21px] xl:h-[31px] w-0.5 xl:w-0.5 min-w-0.5 xl:min-w-0.5 bg-neutral-500",
232n),"aria-hidden":!0})}function rc(r){let{...n}=r,{themeId:i}=(0,eq.nC)();return"beewild"===i||"rewildyourcampus"===i?null:(0,d.jsx)("div",{className:"flex flex-row items-center gap-6 xl:gap-8",children:(0,d.jsxs)("button",{className:rr()("flex size-5 items-center justify-center rounded-full border-[1.25px] p-[2.5px] text-white hover:border-neutral-500 hover:bg-neutral-500 xl:size-8 xl:border-2 xl:p-1",{"border-neutral-950 bg-neutral-950 hover:border-neutral-500 hover:bg-neutral-500":!(null==n?void 0:n["aria-expanded"]),"border-neutral-500 bg-neutral-500":null==n?void 0:n["aria-expanded"]}),"aria-label":"Press to open search input",type:"button",...n,children:[(0,d.jsx)("span",{className:"sr-only",children:"Search"}),(0,d.jsx)(ri.Z,{icon:"search",className:"size-5 xl:size-6"})]})})}function ru(r){let{isOpen:n=!1,...i}=r;return(0,d.jsx)("button",{"aria-label":n?"Close menu":"Open menu",className:"md:hidden",...i,children:n?(0,d.jsx)(ri.Z,{icon:"close",className:"size-6 text-neutral-500"}):(0,d.jsx)(ri.Z,{icon:"hamburger",className:"size-6"})})}function rd(r){var n,i;let{focusSearch:o=!1}=r,a=(0,U.useRouter)(),{themeId:s}=(0,eq.nC)(),{newsletterNavbar:l}=(0,eq.$Y)(),{data:c}=(0,t7.Z)(re.Z),u=null==c?void 0:null===(n=c.flexpressCMSSettings)||void 0===n?void 0:null===(i=n.generalOptions)||void 0===i?void 0:i.extraLink;return(0,d.jsx)("div",{className:"absolute left-1/2 top-[60px] z-50 flex w-screen -translate-x-1/2 border-t border-t-neutral-950 bg-white md:pointer-events-none md:top-[55px] md:border-t-0 md:bg-transparent xl:top-[70px]",children:(0,d.jsx)("div",{className:"container",children:(0,d.jsxs)("div",{className:"flex flex-col gap-4 py-4 md:items-end md:p-0",children:["beewild"!==s&&(0,d.jsxs)("form",{className:"flex flex-col gap-2 md:pointer-events-auto md:w-[560px] lg:mr-12",action:"/search/",method:"get",onSubmit:r=>{r.preventDefault();let n=new URLSearchParams(new FormData(r.currentTarget)),i=n.get("s");i&&a.push("/search/".concat(i))},children:[(0,d.jsx)("label",{htmlFor:"search",className:"font-primary text-sm font-black text-black md:sr-only",children:"Search"}),(0,d.jsxs)("div",{className:"search-form flex w-full flex-row items-center gap-3 rounded border border-neutral-500 px-3 py-1.5 focus-within:outline-solid focus-within:outline-2 focus-within:-outline-offset-2 focus-within:outline-brand-800 md:bg-neutral-800 md:shadow-navbar",children:[(0,d.jsx)("input",{type:"search",id:"search",name:"s",required:!0,placeholder:"Search Headlines, News...",className:"grow font-primary text-sm font-book placeholder:text-neutral focus:outline-solid focus:outline-0",autoFocus:o}),(0,d.jsx)("button",{className:"close-icon",type:"reset","aria-label":"Clear search",children:(0,d.jsx)(ri.Z,{icon:"close",className:"size-6 text-brand-800"})}),(0,d.jsx)("button",{type:"submit","aria-label":"View search results",className:"justify-self-end",children:(0,d.jsx)(ri.Z,{icon:"search",className:"size-6 text-brand-800"})})]})]}),(0,d.jsx)(rl,{direction:"horizontal"}),(0,d.jsx)(rn,{className:"flex md:hidden"}),((null==l?void 0:l.enabled)===!0||(null==u?void 0:u.extraBtnLink)&&(null==u?void 0:u.extraBtnText))&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(rl,{direction:"horizontal"}),(0,d.jsx)(rs,{className:"flex md:hidden"})]})]})})})}var rh=i(28831),rp=i(93199);function rf(r){let{className:n=""}=r,{networks:i}=(0,G.Z)();return(null==i?void 0:i.length)?(0,d.jsx)("nav",{"aria-label":"Social Media",className:n,children:i.map(r=>(null==r?void 0:r.icon)&&(null==r?void 0:r.icon)&&(null==r?void 0:r.url)?(0,d.jsxs)("a",{href:r.url,target:"_blank",rel:"noreferrer",className:"flex size-7 items-center justify-center rounded-full border-[1.33px] border-white bg-white p-[2.67px] text-black hocus:border-brand-600 hocus:bg-brand-600 xl:border-2 xl:p-1 hocus:[&_svg]:text-black",children:[(0,d.jsxs)("span",{className:"sr-only",children:["Follow on ",r.name]}),(0,d.jsx)(ri.Z,{icon:r.icon,className:"size-[16px] object-contain"})]},"footer-social-".concat(r.icon)):null)}):null}function rm(r){var n,i;let{menu:o}=r;return Array.isArray(null==o?void 0:null===(n=o.menuItems)||void 0===n?void 0:n.nodes)?(0,d.jsxs)("nav",{className:"footer-nav-col",children:[(0,d.jsx)("h2",{className:"mb-6 font-primary text-base font-black not-italic",children:o.name}),(0,d.jsx)("ul",{className:"list-none",children:null==o?void 0:null===(i=o.menuItems)||void 0===i?void 0:i.nodes.map(r=>(null==r?void 0:r.url)&&(null==r?void 0:r.label)?(0,d.jsx)("li",{className:"mb-4 leading-none",children:(0,d.jsx)("a",{href:r.url,className:" text-sm font-black leading-none text-white",children:r.label})},"lg-footer-menu-".concat(o.slug,"-").concat(r.label)):null)})]}):null}var rg=i(26447),rv=i(87357),ry=i(15861),rb=i(81400),rx=i(76631),r_=i(5438),rw=i(40785),rS=i(51594);let rT=r=>{let{anchor:n,area:i,citation:o,className:a,frequency:s,value:l}=r,c=(0,rb.Z)(l,"p")?(0,rx.Z)(l):l;return(0,d.jsx)(rg.Z,{className:rr()(a,"pullquote"),component:"figure","data-og-block-area":i,"data-og-block-nth":s,"data-og-block-type":rS.Z.CorePullquoteBlock,marginY:6,paddingX:3,spacing:1,children:(0,d.jsxs)(rv.Z,{component:"blockquote",sx:{marginBlockStart:0,marginBlockEnd:0,marginInlineStart:0,marginInlineEnd:0},children:[(0,d.jsx)(ri.Z,{icon:"quote",className:"size-6"}),(0,d.jsx)(ry.Z,{component:"p",dangerouslySetInnerHTML:{__html:c},"data-rawhtml":"1",fontWeight:700,sx:{mb:2},variant:"h4"}),(0,d.jsxs)(rg.Z,{alignItems:"center",direction:"row",justifyContent:"space-between",children:[n&&(0,d.jsx)(rw.Z,{buttonText:"Share",data:{ur
232i:n,text:(0,r_.Z)(l)},networks:["facebook","x"],popupPlacement:"bottom"}),o&&(0,d.jsx)(ry.Z,{alignItems:"center",component:"cite",dangerouslySetInnerHTML:{__html:o},"data-rawhtml":"1",display:"flex",fontWeight:600})]})]})})};var rE=i(41920);let rk={1:{component:"h1"},2:{component:"h2"},3:{component:"h3"},4:{component:"h4"},5:{component:"h5"},6:{component:"h6"}},rC=r=>{let{anchor:n,area:i,className:o,content:a,frequency:s,level:l,textAlign:c}=r,u=(0,rE.Z)(),h=rk[l];return(0,d.jsx)(ry.Z,{...h,id:n,className:rr()(o,"heading"),dangerouslySetInnerHTML:{__html:a},"data-og-block-area":i,"data-og-block-nth":s,"data-og-block-type":rS.Z.CoreHeadingBlock,"data-rawhtml":"1",sx:{fontFamily:r=>{let{typography:n}=r;return n.fontFamily},textAlign:c,a:{color:u.linkColor,textDecorationColor:u.underlineLinkColor},"a:hover":{color:u.linkColorHover}}})},rP=r=>{let{area:n,content:i,component:o="p",dropCap:a=!1,frequency:s,className:l,id:c}=r;return(0,h.createElement)("".concat(o),{className:rr()("core-paragraph",{"core-paragraph--drop-cap":a},l),dangerouslySetInnerHTML:{__html:i},"data-og-block-area":n,"data-og-block-nth":s,"data-og-block-type":rS.Z.CoreParagraphBlock,"data-raw-html":"1",id:c})};var rO=i(37340),rj=i(94076);function rA(){let r=(0,rO._)(["\n fragment AcfPageHeroBlockFragment on AcfPageHeroBlock {\n backgroundImageDesktop {\n sourceUrl\n }\n backgroundImageMobile {\n sourceUrl\n }\n }\n"]);return rA=function(){return r},r}let rM=(0,rj.Ps)(rA());function rI(){let r=(0,rO._)(["\n fragment AcfStatsWithIconsBlockFragment on AcfStatsWithIconsBlock {\n backgroundImageDesktop {\n sourceUrl\n }\n backgroundImageMobile {\n sourceUrl\n }\n stats {\n stat\n statSubtitle\n icon {\n sourceUrl\n }\n }\n }\n"]);return rI=function(){return r},r}let rZ=(0,rj.Ps)(rI());function rR(){let r=(0,rO._)(["\n fragment AcfOutlineTilesBlockFragment on AcfOutlineTilesBlock {\n backgroundImageDesktop {\n sourceUrl\n }\n backgroundImageMobile {\n sourceUrl\n }\n tileRows {\n tiles {\n title\n content\n cta {\n target\n title\n url\n }\n }\n }\n }\n"]);return rR=function(){return r},r}let rD=(0,rj.Ps)(rR());var rL=i(23655),rz=i(31548),rB=i(43098),rF=i(98396),rN=i(67720),rU=i(99216),rV=i(97924),rq=i(94018),r$=i(70522),rG=i(77424),rW=i(13344),rH=i(7500),rX=i(54429),rY=i(63098);let rK=r=>{var n,i,o,a,s,l,c;let{bio:u,authorTag:p}=r,f=(0,h.useMemo)(()=>{var r,n;return(null===(r=p.author)||void 0===r?void 0:null===(n=r.authorSocial)||void 0===n?void 0:n.map(r=>{var n,i;return{name:null!==(n=(0,rY.Z)(null==r?void 0:r.icon,"").toLowerCase())&&void 0!==n?n:"",url:null!==(i=null==r?void 0:r.url)&&void 0!==i?i:""}}))||[]},[null===(n=p.author)||void 0===n?void 0:n.authorSocial]);return(0,d.jsxs)("div",{className:"rounded bg-brand-700 px-[18px] py-6",children:[(0,d.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:items-center md:gap-3",children:[(0,d.jsxs)("div",{className:"flex grow gap-3",children:[(null==p?void 0:null===(i=p.author)||void 0===i?void 0:null===(o=i.authorAvatar)||void 0===o?void 0:null===(a=o.node)||void 0===a?void 0:a.sourceUrl)&&(0,d.jsx)(rX.Z,{src:p.author.authorAvatar.node.sourceUrl,sizes:220,className:"size-14 border-2 border-brand-300",alt:(null===(s=p.author.authorAvatar.node)||void 0===s?void 0:s.altText)||""}),(0,d.jsxs)("div",{className:"flex flex-col justify-center",children:[(0,d.jsx)("h2",{className:"font-tertiary text-base font-semibold not-italic",children:p.uri?(0,d.jsx)(rp.ID,{href:p.uri,passHref:!0,children:(0,d.jsx)("a",{className:"hocus:underline","aria-label":"Read more articles by ".concat(p.name),children:p.name})}):p.name}),(null===(l=p.author)||void 0===l?void 0:l.authorTitle)?(0,d.jsx)("p",{className:"font-primary text-xl-mob",children:null===(c=p.author)||void 0===c?void 0:c.authorTitle}):null]})]}),(0,d.jsx)("ul",{className:"flex items-center gap-3",children:f.map((r,n)=>(0,d.jsx)("li",{className:"flex",children:(0,d.jsx)(rH.Z,{type:r.name,href:r.url,ariaLabel:"Find ".concat(p.name," on ").concat(r.name)})},n))})]}),u&&(0,d.jsx)("div",{className:"my-4 text-base",dangerouslySetInnerHTML:{__html:u}})]})};var rJ=i(90512);function rQ(r){let{className:n="",shareData:i,shareHeading:o}=r,{site:a}=(0,eq.$Y)(),[s,l]=(0,h.useState)(a.frontendUrl||"");if((0,h.useEffect)(()=>{a.frontendUrl||l(window.location.origin)},[a.frontendUrl]),!i.uri)return null;
232let c="".concat(s).concat(i.uri),u=encodeURIComponent(c),p=encodeURIComponent(i.text||""),f=[{icon:"link",name:"Share link",cb:async()=>{navigator.clipboard.writeText(c),alert("Article link copied to clipboard")}},{icon:"linkedin",name:"LinkedIn",url:"https://www.linkedin.com/shareArticle?mini=true&url=".concat(u,"&title=").concat(p,"&summary=&source=").concat(encodeURIComponent(s))},{icon:"twitter",name:"Twitter",url:"https://twitter.com/intent/tweet?text=".concat(p,"%20").concat(u)},{icon:"facebook",name:"Facebook",url:"https://www.facebook.com/sharer/sharer.php?u=".concat(u)}];return(0,d.jsxs)("div",{className:(0,rJ.Z)("article-social-share",n),children:[""!==o?(0,d.jsx)("h2",{className:"share-heading mb-4 text-lg",children:o}):null,(0,d.jsx)("div",{className:"flex gap-[11px]",children:f.map(r=>"link"===r.icon&&r.cb?(0,d.jsxs)("button",{onClick:r.cb,className:"flex size-6 items-center justify-center rounded-full border-2 border-neutral-950 bg-neutral-950 p-[2.67px] text-white hocus:border-neutral-500 hocus:bg-neutral-500 hocus:text-white",children:[(0,d.jsx)("span",{className:"sr-only",children:"Copy link"}),(0,d.jsx)(ri.Z,{icon:r.icon,className:"size-[33px] object-contain"})]},"social-share-".concat(r.icon)):(0,d.jsxs)("a",{href:"".concat(r.url)||"#",target:"_blank",rel:"noopener noreferrer",className:(0,rJ.Z)("flex size-6 items-center justify-center rounded-full border-2 border-neutral-950 bg-neutral-950 p-[2.67px] text-white hocus:border-neutral-500 hocus:bg-neutral-500 hocus:text-white",{"[&_svg]:m-[3px]":"linkedin"===r.icon}),children:[(0,d.jsxs)("span",{className:"sr-only",children:["Share on ",r.name]}),(0,d.jsx)(ri.Z,{icon:r.icon,className:"size-[33px] object-contain"})]},"social-share-".concat(r.icon)))})]})}let r0=r=>{let{ariaLabel:n="Breadcrumb",breadcrumbs:i,className:o}=r;return(0,d.jsx)("nav",{className:(0,rJ.Z)("py-2.5 font-tertiary",o),"aria-label":n,children:(0,d.jsx)("ol",{className:"flex gap-1",children:i.map((r,n)=>(0,d.jsxs)("li",{className:"flex items-center",children:[(0,d.jsx)("a",{href:r.url||"#",className:"py-2.5 text-sm font-semibold text-neutral-500 hocus:underline",children:r.text}),n<i.length-1&&(0,d.jsx)("span",{"aria-hidden":"true",className:"px-2 text-neutral-500",children:(0,d.jsx)("svg",{width:"8",height:"12",viewBox:"0 0 8 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)("path",{d:"M1.70697 11.9496L7.41397 6.24264L1.70697 0.535645L0.292969 1.94964L4.58597 6.24264L0.292969 10.5356L1.70697 11.9496Z"})})})]},n))})})},r1=r=>{let{className:n,date:i,modified:o,readingTime:a,showModifiedDate:s=!1}=r,l=Boolean(o)&&s&&o!==i,c=(0,eq.wp)(l?o:i),u=c.view.split(" "),[h,p,f]=u;return(0,d.jsxs)("p",{className:(0,rJ.Z)("flex items-center font-primary text-xs font-normal text-neutral-400",n),children:[l?"Updated":"Published"," on\xa0",(0,d.jsx)("time",{dateTime:l?o:i,children:"".concat(h," ").concat(p," ").concat(f)}),a&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{className:"mx-1 text-xs",children:"â¢"}),(0,d.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,d.jsx)(ri.Z,{icon:"clock",className:"size-4"}),a," min read"]})]})]})},r2=r=>{let{avatars:n,avatarClassName:i,className:o}=r;return(0,d.jsx)("div",{className:(0,rJ.Z)("inline-flex [&_picture]:shrink-0 [&_picture]:relative -space-x-2.5",o),children:n.map((r,n)=>(0,d.jsx)(rX.Z,{className:(0,rJ.Z)(i,"size-11 border-2"),src:r.src,alt:r.alt,sizes:44},n))})},r3=r=>{let{className:n,authorTags:i}=r,o=i.map(r=>{var n,i,o,a,s,l;return{src:(null==r?void 0:null===(n=r.author)||void 0===n?void 0:null===(i=n.authorAvatar)||void 0===i?void 0:null===(o=i.node)||void 0===o?void 0:o.sourceUrl)||"",alt:(null==r?void 0:null===(a=r.author)||void 0===a?void 0:null===(s=a.authorAvatar)||void 0===s?void 0:null===(l=s.node)||void 0===l?void 0:l.altText)||""}});return(0,d.jsxs)("div",{className:n,children:[(0,d.jsx)(r2,{avatars:o,avatarClassName:"border-brand-800"}),(0,d.jsx)("ul",{className:"flex list-none justify-center gap-1 font-tertiary text-tagline leading-5 text-neutral-500",role:"list",children:i.map((r,n)=>(0,d.jsxs)("li",{children:[(0,d.jsx)("a",{className:"text-neutral-500 hocus:underline",href:r.uri||"#","aria-label":"Read more articles by ".concat(r.name),children:null==r?void 0:r.name}),n!==i.length-1&&" / "]},r.databaseId))})]})},r4=r=>{var n;let{includeBreadcrumbs:i=!0,post:o}=r,a=(0,h.useMemo)(()=>{let r=i&&o.breadcrumbs&&o.breadcrumbs.length>0;if(r&&o.breadcrumbs){let r=[...o.breadcrumbs];return r.unshift({text:"Home",url:"/"}),r.pop(),r}return null},[i,o.breadcrumbs]);return(0,d.jsx)("header",{className:"flex py-10",children:(0,d.jsx)("div",{className:"container",children:(0,d.jsxs)("div",{className:"flex flex-col gap-10",children:[a&&(0,d.jsx)(r0,{className:"md:pl-17.5",breadcrumbs:a}),(0,d.jsxs)("div",{children:[(0,d.jsx)("h1",{className:"text-pretty text-center font-primary text-3xl font-black not-italic tracking-[-0.02em] md:text-5xl lg:text-7xl",dangerouslySetInnerHTML:{__html:o.title}}),o.excerpt&&(0,d.jsx)("p",{className:"mt-4 text-balance text-center font-primary text-xl-mob font-normal text-neutral-400",children:o.excerpt})]}),(0,d.jsxs)("div",{className:"flex flex-col gap-2 text-center",children:[(0,d.jsx)(r3,{authorTags:o.authorTags.nodes,className:"flex flex-col gap-2 items-center"}),(0,d.jsx)(r1,{className:"justify-center",date:o.date,modified:o.modified,showModifiedDate:o.showModifiedDate||!1,readingTime:null===(n=o.seo)||void 0===n?void 0:n.readingTime})]})]})})})};var r5=i(75485);let r6=r=>{var n,i,o,a,s,l,c,u,p,f,m;let{afterContentSlot:g,beforeContentSlot:v,options:y,post:b}=r,x=(0,ed.Z)(),_=(0,rF.Z)(x.breakpoints.down("sm")),{data:w}=(0,eq.Fo)(),{data:S}=(0,rU.Z)(tu.Z,b),{data:T}=(0,eq.XG)(),{data:E}=(0,rU.Z)(rh.Wy,b),k=null!==(m=null==S?void 0:null===(n=S.post)||void 0===n?void 0:null===(i=n.comments)||void 0===i?void 0:null===(o=i.nodes)||void 0===o?void 0:o.filter(rV.Z))&&void 0!==m?m:[],C=(null==y?void 0:y.variant)==="small",P=!(null==y?void 0:y.disableFeaturedImage)&&!(null===(a=b.featuredImageOptions)||void 0===a?void 0:a.hideFromArticle),O=!(null==y?void 0:y.disableBreadcrumbs),j=String((null==b?void 0:b.relatedStoriesTitle)||"Related Stories"),A=(null==w?void 0:null===(s=w.dropCap)||void 0===s?void 0:s.option)&&!(null===(l=b.autoDropCapOption)||void 0===l?void 0:l.disableDropCap)?(0,rq.u7)(b.blocks):b.blocks,M=(0,h.useMemo)(()=>
232(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(rQ,{shareData:{uri:b.uri,media:b.featuredImage.node.sourceUrl,text:b.title},shareHeading:"Share this story"})}),[b.featuredImage.node.sourceUrl,b.title,b.uri]),I=(0,d.jsxs)(rz.Pt,{space:x.spacing(4),children:[P&&b.featuredImage.node&&C&&(0,d.jsx)(rG.Q_,{alt:b.featuredImage.node.altText||"",caption:b.featuredImage.node.caption||"",loading:"eager",src:b.featuredImage.node.sourceUrl||""}),(null===(c=b.sponsored)||void 0===c?void 0:c.brand)?(0,d.jsxs)(rv.Z,{children:[(0,d.jsx)(rN.Z,{}),(0,d.jsx)(r$.MV,{enabled:!0,text:b.sponsored.text||"",brand:b.sponsored.brand,sx:{my:1}}),(0,d.jsx)(rN.Z,{})]}):null,(0,d.jsx)(rv.Z,{className:"text-left",children:M}),(0,d.jsx)(r$.JH,{blocks:A,useUncomfortableCPL:Boolean(null==y?void 0:y.useUncomfortableCPL),includeContentBlockStyling:!0,sx:{'[data-og-block-area="article-blocks"]':{maxWidth:"100%"}}}),(0,d.jsx)(rv.Z,{className:"pb-4 pt-10",children:M}),b.tags.nodes.length>0&&(0,d.jsx)(rv.Z,{sx:{borderTop:"1px solid ".concat(x.palette.text.disabled),borderBottom:"1px solid ".concat(x.palette.text.disabled)},children:(0,d.jsx)(rz.Po,{padding:"".concat(x.spacing(6)," 0"),children:(0,d.jsx)(rz.sg,{justify:"start",space:x.spacing(1),children:b.tags.nodes.map(r=>(0,d.jsx)(rG.Vp,{href:r.uri||"",label:r.name||"",variant:"outlined"},r.slug))})})}),b.authorTags.nodes.length>0&&(0,d.jsx)(rK,{authorTag:b.authorTags.nodes[0],bio:(null==E?void 0:null===(u=E.authorTag)||void 0===u?void 0:null===(p=u.author)||void 0===p?void 0:p.authorBio)||""})]});return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(rz.Pt,{space:"0",children:[(0,d.jsx)(r4,{includeBreadcrumbs:O,post:b}),P&&b.featuredImage.node&&!C&&(0,d.jsx)(rG.Q_,{alt:b.featuredImage.node.altText||"",caption:b.featuredImage.node.caption||"",loading:"eager",src:b.featuredImage.node.sourceUrl||""})]}),(0,d.jsx)(rz.Po,{padding:_?"".concat(C?0:x.spacing(3)," ").concat(x.spacing(3)," ").concat(x.spacing(10)):"".concat(C?0:x.spacing(5)," ").concat(x.spacing(10)," ").concat(x.spacing(10)),children:(0,d.jsxs)(rz.Pt,{space:x.spacing(10),children:[(0,d.jsx)("div",{className:"entry-content lg:mx-auto lg:max-w-(--breakpoint-md)",children:(0,d.jsxs)(rv.Z,{component:"main",children:[v,I,g]})}),(null==T?void 0:null===(f=T.wpComments)||void 0===f?void 0:f.enabled)&&b.showComments&&(0,d.jsx)(rW.Z,{postId:b.databaseId,comments:k}),0!==b.relatedStories.length?(0,d.jsxs)(rz.Pt,{children:[j&&(0,d.jsx)("h2",{className:"!lg:mb-[80px] rw-heading-2 mb-9!",children:j}),(0,d.jsx)("ul",{className:"related-stories-grid flex flex-col gap-6 md:grid md:grid-cols-2 lg:my-14 lg:grid-cols-3",children:b.relatedStories.map(r=>{var n,i,o,a,s,l,c,u,h;return(0,d.jsx)("li",{className:"list-none",children:(0,d.jsx)(r5.Z,{className:"h-full",layout:"vertical",title:null!==(s=null==r?void 0:r.title)&&void 0!==s?s:"",text:null!==(l=null==r?void 0:r.excerpt)&&void 0!==l?l:"",linkType:"card",linkData:{url:null!==(c=null==r?void 0:r.uri)&&void 0!==c?c:""},theme:"white",imageData:{url:null!==(u=null==r?void 0:null===(n=r.featuredImage)||void 0===n?void 0:null===(i=n.node)||void 0===i?void 0:i.sourceUrl)&&void 0!==u?u:"",alt:null!==(h=null==r?void 0:null===(o=r.featuredImage)||void 0===o?void 0:null===(a=o.node)||void 0===a?void 0:a.altText)&&void 0!==h?h:""}})},r.title)})})]}):null]})})]})},r8=(0,rL.$Z)((r,n)=>{let i=(0,ed.Z)(),{afterContentSlot:o,beforeContentSlot:a,sidebarContent:s,options:l,post:c}=r;return(0,d.jsxs)(rv.Z,{ref:n,component:"article",children:[(0,d.jsx)(rz.PT,{maxWidth:"".concat(i.breakpoints.values.xl).concat(i.breakpoints.unit),children:(0,d.jsx)(r6,{afterContentSlot:o,beforeContentSlot:a,sidebarContent:s,options:l,post:c})}),(0,d.jsx)(rB.OF,{})]})}),r9=()=>(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("script",{id:"mcjs",dangerouslySetInnerHTML:{__html:'!function(c,h,i,m,p)\n {\n ((m = c.createElement(h)),\n (p = c.getElementsByTagName(h)[0]),\n (m.async = 1),\n (m.src = i),\n p.parentNode.insertBefore(m, p))\n }\n (document,"script","https://chimpstatic.com/mcjs-connected/js/users/fd65be5ed8a0748b2e46319c7/78bf12cc924dfcebe9da3b6c4.js");'}})});var r7=i(79965),ne=i(13019),nt=i(8423),nr=i(97131);let nn=r=>{let{font:n,color:i}=r,{primary:o,secondary:a,brand:s,text:l,error:c="#ea252a"}=i,{primary:u="#0a0a0a",secondary:d="#505050"}=null!=l?l:{},{main:h,text:p,highlight:f}=s,m=null!=f?f:(0,nt.$n)(h,.1),g={...nr.T,palette:{...nr.T.palette,primary:{main:o,light:(0,nt.$n)(o,.75),dark:(0,nt._j)(o,.3)},secondary:{main:a,light:(0,nt.$n)(a,.95),dark:(0,nt._j)(a,.3)},brand:{header:h,headerHighlight:m,text:p},text:{primary:u,secondary:d},error:{main:c,light:(0,nt.Fq)(c,.5),dark:(0,nt.Fq)(c,.9),contrastText:(0,nt.mi)(c,"#fff")>4.5?"#fff":"#111"}},typography:{caption:{fontSize:"0.625rem"}},components:{MuiChip:{styleOverrides:{root:{variants:[{props:{variant:"large"},style:{fontSize:"calc(16px + 3 * ((100vw - 600px) / 600))"}}]}}}}},v=(0,nr.UG)(g,{base:"var(--font-circular-std, CircularStd)",sans:"var(--font-circular-std, CircularStd)",serif:"var(--font-queens-medium, QueensMedium)",...n});return v},ni="#2CCC6C";var no=nn({color:{primary:ni,secondary:"#012F02",brand:{main:ni,text:"#0a0a0a"},text:{primary:"#0a0a0a",secondary:"#505050"}}}),na=nn({color:{primary:"#FFCC00",secondary:"#0e0140",error:"#ea252a",brand:{main:"#FFCC00",text:"rgb(247, 249, 242)"},text:{primary:"#333333",secondary:"#0e0140"}}}),ns=nn({color:{primary:"#0a7c0f",secondary:"#0e0140",error:"#ea252a",brand:{main:"#0a7c0f",text:"rgb(247, 249, 242)"},text:{primary:"#333333",secondary:"#0e0140"}}}),nl=nn({color:{primary:"#0a7c0f",secondary:"#0e0140",error:"#ea252a",brand:{main:"#0a7c0f",text:"rgb(247, 249, 242)"},text:{primary:"#333333",secondary:"#0e0140"}}});(o=u||(u={})).REWILD="rewild",o.BEEWILD="beewild",o.KAWARI="kawari",o.REWILDYOURCAMPUS="rewildyourcampus";let nc={[u.REWILD]:no,[u.BEEWILD]:na,[u.KAWARI]:ns,[u.REWILDYOURCAMPUS]:nl},nu={"lcl.beewild.org":"beewild.org","beewild.rewild.org":"beewild.org","rewild.com":"rewild.org","kawari.com":"k
232awari.earth","beewild.com":"beewild.org","rewildyourcampus.com":"rewildyourcampus.org"},nd=function(){var r;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!n)return u.REWILD;let i=null!==(r=nu[n])&&void 0!==r?r:n;switch(i){case"beewild.rewild.org":case"beewild.org":return u.BEEWILD;case"kawari.earth":return u.KAWARI;case"rewildyourcampus.org":return u.REWILDYOURCAMPUS;default:return u.REWILD}},nh=ts()(()=>i.e(3798).then(i.bind(i,13798)),{loadableGenerated:{webpack:()=>[13798]}}),np=ts()(()=>i.e(5779).then(i.bind(i,85779)),{loadableGenerated:{webpack:()=>[85779]}}),nf=ts()(()=>i.e(3857).then(i.bind(i,73857)),{loadableGenerated:{webpack:()=>[73857]}}),nm=ts()(()=>i.e(4409).then(i.bind(i,34409)),{loadableGenerated:{webpack:()=>[34409]}}),ng=ts()(()=>i.e(4036).then(i.bind(i,94036)),{loadableGenerated:{webpack:()=>[94036]}}),nv=ts()(()=>Promise.all([i.e(2562),i.e(433)]).then(i.bind(i,10433)),{loadableGenerated:{webpack:()=>[10433]}}),ny=ts()(()=>Promise.all([i.e(2562),i.e(9324)]).then(i.bind(i,39324)),{loadableGenerated:{webpack:()=>[39324]}}),nb=ts()(()=>i.e(1091).then(i.bind(i,1091)),{loadableGenerated:{webpack:()=>[1091]}}),nx=ts()(()=>i.e(6689).then(i.bind(i,96689)),{loadableGenerated:{webpack:()=>[96689]}}),n_=ts()(()=>i.e(4413).then(i.bind(i,34413)),{loadableGenerated:{webpack:()=>[34413]}}),nw=ts()(()=>Promise.all([i.e(9238),i.e(614)]).then(i.bind(i,90614)),{loadableGenerated:{webpack:()=>[90614]}}),nS=ts()(()=>i.e(9675).then(i.bind(i,49675)),{loadableGenerated:{webpack:()=>[49675]}}),nT=ts()(()=>i.e(8308).then(i.bind(i,28308)),{loadableGenerated:{webpack:()=>[28308]}}),nE=ts()(()=>i.e(9731).then(i.bind(i,19731)),{loadableGenerated:{webpack:()=>[19731]}}),nk=ts()(()=>i.e(7555).then(i.bind(i,7555)),{loadableGenerated:{webpack:()=>[7555]}}),nC=ts()(()=>i.e(7335).then(i.bind(i,87335)),{loadableGenerated:{webpack:()=>[87335]}}),nP=ts()(()=>i.e(5966).then(i.bind(i,85966)),{loadableGenerated:{webpack:()=>[85966]}}),nO=ts()(()=>i.e(4597).then(i.bind(i,34597)),{loadableGenerated:{webpack:()=>[34597]}}),nj=ts()(()=>i.e(8787).then(i.bind(i,48787)),{loadableGenerated:{webpack:()=>[48787]}}),nA=(0,tl.Z)({...tc.Z,Global:r9,Footer:function(){var r,n,i,o,a,s,l,c,u,h,p;let{logos:f,site:m,menus:g}=(0,G.Z)(),{data:v}=(0,t7.Z)(rh.vV),y=[];return(null==v?void 0:null===(r=v.footerMenu1)||void 0===r?void 0:null===(n=r.nodes)||void 0===n?void 0:n[0])&&y.push(v.footerMenu1.nodes[0]),(null==v?void 0:null===(i=v.footerMenu2)||void 0===i?void 0:null===(o=i.nodes)||void 0===o?void 0:o[0])&&y.push(v.footerMenu2.nodes[0]),(null==v?void 0:null===(a=v.footerMenu3)||void 0===a?void 0:null===(s=a.nodes)||void 0===s?void 0:s[0])&&y.push(v.footerMenu3.nodes[0]),(null==v?void 0:null===(l=v.footerMenu4)||void 0===l?void 0:null===(c=l.nodes)||void 0===c?void 0:c[0])&&y.push(v.footerMenu4.nodes[0]),(0,d.jsxs)("footer",{className:"bg-black py-[60px] font-bold text-white [&_a:hover]:text-brand-700",children:[(0,d.jsx)("div",{className:"container",children:(0,d.jsxs)("div",{className:"mb-12 grid grid-cols-2 gap-5 md:grid-cols-4 lg:grid-cols-5",children:[(0,d.jsx)("div",{className:"lg:w-min-content col-span-full w-full shrink-0 lg:col-span-1",children:(0,d.jsxs)("a",{href:"/",children:[(0,d.jsx)("span",{className:"sr-only",children:m.name}),(null==f?void 0:null===(u=f.footer)||void 0===u?void 0:u.sourceUrl)&&(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(rp.hr,{src:f.footer.sourceUrl,alt:(null==f?void 0:null===(h=f.footer)||void 0===h?void 0:h.altText)||"",className:"inline-block h-[39px] w-auto!",height:39})})]})}),y.map(r=>(0,d.jsx)(rm,{menu:r},"footer-menu-".concat(r.slug)))]})}),(0,d.jsx)("div",{className:"container border-t border-white px-0 pt-5",children:(0,d.jsxs)("div",{className:"flex w-full flex-col items-center gap-5 lg:flex-row",children:[(0,d.jsxs)("div",{className:"flex gap-2 text-sm font-normal",children:[(0,d.jsxs)("p",{className:"leading-none",children:["\xa9",new Date().getFullYear()," Re:wild."]}),(0,d.jsx)("p",{className:"leading-none",children:"All Rights Reserved."})]}),(null===(p=g.FOOTER_NAVIGATION)||void 0===p?void 0:p.length)>0&&(0,d.jsx)("nav",{className:"flex",children:(0,d.jsx)("ul",{className:"flex list-none flex-wrap gap-5",children:g.FOOTER_NAVIGATION.map(r=>(null==r?void 0:r.path)&&(null==r?void 0:r.label)?(0,d.jsx)("li",{className:"leading-none",children:(0,d.jsx)("a",{href:r.path,className:"text-xs font-black leading-none text-white underline underline-offset-2 md:text-sm",children:r.label})},"footer-terms-menu-".concat(r.label)):null)})}),(0,d.jsx)(rf,{className:"flex gap-1 justify-self-end lg:ml-auto"})]})})]})},Header:function(){var r,n,i;let o=(0,U.useRouter)(),{logos:a,site:s}=(0,G.Z)(),[l,c]=(0,h.useState)(!1),[u,p]=(0,h.useState)(!1);(0,h.useEffect)(()=>{l?document.body.classList.add("overflow-hidden","md:overflow-auto"):document.body.classList.remove("overflow-hidden")},[l]),(0,h.useEffect)(()=>{let r=r=>{"Escape"===r.key&&l&&(c(!1),p(!1))};return document.addEventListener("keydown",r),()=>{document.removeEventListener("keydown",r)}},[l]),(0,h.useEffect)(()=>{let r=()=>{c(!1),p(!1)};return o.events.on("routeChangeStart",r),()=>{o.events.off("routeChangeStart",r)}},[o.events]);let{newsletterNavbar:f}=(0,G.Z)(),{data:m}=(0,t7.Z)(re.Z),g=null==m?void 0:null===(r=m.flexpressCMSSettings)||void 0===r?void 0:null===(n=r.generalOptions)||void 0===n?void 0:n.extraLink;return(0,d.jsxs)("header",{className:"relative flex h-[60px] items-center justify-between bg-neutral-800 shadow-navbar xl:h-[84px]",children:[(0,d.jsx)("div",{className:"container",children:(0,d.jsxs)("nav",{"aria-label":"Global",className:"flex flex-row items-center justify-between gap-6 xl:gap-8",children:[(0,d.jsxs)("div",{className:"flex shrink items-center gap-2 xl:gap-6",children:[(0,d.jsxs)("a",{href:"/",children:[(0,d.jsx)("span",{className:"sr-only",children:s.name}),(null==a?void 0:null===(i=a.main)||void 0===i?void 0:i.sourceUrl)&&(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("img",{src:a.main.sourceUrl,alt:"",className:"block h-[24px] w-auto xl:h-[39px]"})})]}),(0,d.jsx)(rl,{className:"block"}),(0,d.jsx)("div",{className:"flex items-center",children:(0,d.jsx)(ro,{className:"flex flex-row items-center gap-2 xl:gap-3"})})]}),(0,d.jsxs)("div",{className:"flex flex-row items-center gap-2 xl:gap-8",children:[(0,d.jsxs)("div",{className:"flex flex-row items-center gap-6 xl:gap-8",children:[(0,d.jsx)(rn,{}),(0,d.jsx)(rc,{onClick:()=>{let r=!l;c(r),p(r)}})]}),((null==f?void 0:f.enabled)===!0||(null==g?void 0:g.extraBtnLink)&&(null==g?void 0:g.extraBtnText))&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(rl,{className:"block md:hidden lg:block"}),(0,d.jsx)(rs,{})]}),(0,d.jsx)(ru,{isOpen:l,onClick:()=>{c(!l),p(!1)}})]})]})}),l&&(0,d.jsxs)(t$,{contain:!0,restoreFocus:!0,autoFocus:u,children:[(0,d.jsx)("button",{className:"focus:outline-non fixed inset-0 top-[60
232px] z-50 bg-neutral-950/70 outline-hidden md:bg-transparent",onClick:()=>{c(!1),p(!1)},"aria-label":"Close search and menu",type:"button"}),(0,d.jsx)(rd,{focusSearch:u})]})]})},muiTheme:nc[u.REWILD],graphqlClient:{useMultiTenantConfig:!0},redisCache:{useMultiTenantConfig:!0},extend:{blocks:[{name:"acf/donate-module",component:nb},{name:"acf/email-signup-module",component:nx},{name:"acf/featured-campaign",fragment:rh.WN,component:n_},{name:"acf/image-text-feature",fragment:rh.z4,component:nw},{name:"acf/page-hero",component:nS,fragment:rM},{name:"acf/stats-with-icons",component:nP,fragment:rZ},{name:"acf/plan-and-goals",fragment:rh.Wg,component:nk},{name:"acf/collage-cards",fragment:rh.bW,component:nT},{name:"acf/press-contact",fragment:rh.hL,component:nE},{name:"acf/typeform-embed",component:nj},{name:"acf/link-cards-module",fragment:rh.QO,component:nC},{name:"acf/outline-tiles",fragment:rD,component:nO}],queries:{global:[rh.W$,rh.CB,rh.vV]}},options:{CoreImageBlock:{disableLightboxByDefault:!0}},pageTypes:{article:{templates:[{name:"default",component:r8,queries:[tu.Z,rh.Wy]}]},page:{templates:[{name:"default",component:nm,queries:[rh.Dx]},{name:"Homepage",component:nh,queries:[rh.Dx]},{name:"IFrame Embed",component:nf},{name:"Team Member",component:ng,queries:[ne.Z,rh.Dx]},{name:"Wide Layout",component:np,queries:[rh.Dx]}],getTemplate:(r,n,i)=>(0,td.Z)(r,i)},category:{templates:[{name:"default",component:nv}]},tag:{templates:[{name:"default",component:ny}]}},blocks:{components:{CoreHeadingBlock:rC,CoreParagraphBlock:rP,CorePullquoteBlock:rT}}}),nM={base:nA,variations:{[u.REWILD]:{muiTheme:nc[u.REWILD]},[u.BEEWILD]:{muiTheme:nc[u.BEEWILD]},[u.KAWARI]:{muiTheme:nc[u.KAWARI]},[u.REWILDYOURCAMPUS]:{muiTheme:nc[u.REWILDYOURCAMPUS]}},getThemeIdByDomain:(r,n)=>{let i=Object.keys(n.variations)[0];if(!r)return i;let o=nd(r);return o in n.variations?o:(console.warn("Could not find theme spec with ID ".concat(o,". Using default theme instead.")),i)}};(0,r7.gh)(u.REWILD,nM);var nI=i(53408);let nZ=r=>{let{children:n,requestHost:i}=r;return(0,d.jsx)(p.Hm,{hostname:null!=i?i:null,multiTheme:nM,children:(0,d.jsx)(e4,{children:(0,d.jsx)(to,{children:n})})})};i(39250);let nR=r=>{var n;let i="isError"in r&&r.isError;return i?(0,d.jsx)(nZ,{...r,children:(0,d.jsx)(r.Component,{...r.pageProps})}):(0,d.jsx)(p.Hm,{hostname:null!==(n=r.requestHost)&&void 0!==n?n:null,multiTheme:nM,children:(0,d.jsx)(e4,{children:(0,d.jsx)(to,{children:(0,d.jsx)(e0,{...r})})})})};nR.getInitialProps=async r=>{let n=(0,nI.e)(r.ctx),i=e0.getInitialProps?await e0.getInitialProps(r):{pageProps:{},requestHost:void 0};return{...i,isError:n>=400}};var nD=nR},36004:function(r,n,i){"use strict";function o(r,n){let i="",o="";switch(r){case"green":i="b800";break;case"white":i="white";break;default:i="n950"}switch(n){case"white":o="white";break;case"blue":o="b300";break;case"lightBlue":o="b200";break;case"orange":o="b50";break;case"purple":o="b100";break;case"lightGreen":o="b600";break;case"black":o="n950";break;default:o="n500"}return"".concat(i,"-").concat(o)}i.d(n,{z:function(){return o}})},53408:function(r,n,i){"use strict";i.d(n,{e:function(){return o}});let o=r=>{var n;if(r.res)return r.res.statusCode;let i=null===(n=r.err)||void 0===n?void 0:n.statusCode;return null!=i?i:404}},34472:function(){},1538:function(){},39250:function(){},46841:function(r){r.exports={style:{fontFamily:"'__Inter_72f7cb', '__Inter_Fallback_72f7cb'",fontStyle:"normal"},className:"__className_72f7cb"}},61572:function(r){r.exports={style:{fontFamily:"'__Merriweather_bcd876', '__Merriweather_Fallback_bcd876'"},className:"__className_bcd876"}},86003:function(r){r.exports={style:{fontFamily:"'__circularStd_480458', '__circularStd_Fallback_480458'"},className:"__className_480458",variable:"__variable_480458"}},13893:function(r){r.exports={style:{fontFamily:"'__merchant_676e02', '__merchant_Fallback_676e02'",fontWeight:400,fontStyle:"normal"},className:"__className_676e02",variable:"__variable_676e02"}},52694:function(r){r.exports={style:{fontFamily:"'__museoSlab_e344c6', '__museoSlab_Fallback_e344c6'"},className:"__className_e344c6",variable:"__variable_e344c6"}}
232,48638:function(r){r.exports={style:{fontFamily:"'__olivita_4fe387', '__olivita_Fallback_4fe387'"},className:"__className_4fe387",variable:"__variable_4fe387"}},2737:function(r){r.exports={style:{fontFamily:"'__queensMedium_680d06', '__queensMedium_Fallback_680d06'"},className:"__className_680d06",variable:"__variable_680d06"}},96592:function(r){r.exports={LineClamp:"HedCard_LineClamp__dybOA","LineClamp-2":"HedCard_LineClamp-2__eRJwc","LineClamp-3":"HedCard_LineClamp-3___sA3X","LineClamp-4":"HedCard_LineClamp-4__7oBZK"}},5152:function(r,n,i){r.exports=i(95677)},9008:function(r,n,i){r.exports=i(42636)},89755:function(r,n,i){r.exports=i(15619)},41664:function(r,n,i){r.exports=i(95569)},39332:function(r,n,i){r.exports=i(31414)},11163:function(r,n,i){r.exports=i(96885)},4298:function(r,n,i){r.exports=i(85442)},34155:function(r){var n,i,o,a=r.exports={};function s(){throw Error("setTimeout has not been defined")}function l(){throw Error("clearTimeout has not been defined")}function c(r){if(n===setTimeout)return setTimeout(r,0);if((n===s||!n)&&setTimeout)return n=setTimeout,setTimeout(r,0);try{return n(r,0)}catch(i){try{return n.call(null,r,0)}catch(i){return n.call(this,r,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:s}catch(r){n=s}try{i="function"==typeof clearTimeout?clearTimeout:l}catch(r){i=l}}();var u=[],d=!1,h=-1;function p(){d&&o&&(d=!1,o.length?u=o.concat(u):h=-1,u.length&&f())}function f(){if(!d){var r=c(p);d=!0;for(var n=u.length;n;){for(o=u,u=[];++h<n;)o&&o[h].run();h=-1,n=u.length}o=null,d=!1,function(r){if(i===clearTimeout)return clearTimeout(r);if((i===l||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(r);try{i(r)}catch(n){try{return i.call(null,r)}catch(n){return i.call(this,r)}}}(r)}}function m(r,n){this.fun=r,this.array=n}function g(){}a.nextTick=function(r){var n=Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)n[i-1]=arguments[i];u.push(new m(r,n)),1!==u.length||d||c(f)},m.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=g,a.addListener=g,a.once=g,a.off=g,a.removeListener=g,a.removeAllListeners=g,a.emit=g,a.prependListener=g,a.prependOnceListener=g,a.listeners=function(r){return[]},a.binding=function(r){throw Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(r){throw Error("process.chdir is not supported")},a.umask=function(){return 0}},92703:function(r,n,i){"use strict";var o=i(50414);function a(){}function s(){}s.resetWarningCache=a,r.exports=function(){function r(r,n,i,a,s,l){if(l!==o){var c=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function n(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:n,element:r,elementType:r,instanceOf:n,node:r,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:s,resetWarningCache:a};return i.PropTypes=i,i}},45697:function(r,n,i){r.exports=i(92703)()},50414:function(r){"use strict";r.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},28777:function(r,n,i){"use strict";i.d(n,{I5:function(){return eE},Mi:function(){return eV},P1:function(){return em},iR:function(){return eX},jp:function(){return el},oT:function(){return ex},ro:function(){return Y},sj:function(){return et}});var o=i(67294);function a(r,n){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),i.push.apply(i,o)}return i}function s(r){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?a(Object(i),!0).forEach(function(n){d(r,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(i,n))})}return r}function l(r,n){if(!(r instanceof n))throw TypeError("Cannot call a class as a function")}function c(r,n){for(var i=0;i<n.length;i++){var o=n[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(r,o.key,o)}}function u(r,n,i){return n&&c(r.prototype,n),i&&c(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r}function d(r,n,i){return n in r?Object.defineProperty(r,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[n]=i,r}
232function h(){return(h=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])}return r}).apply(this,arguments)}function p(r,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),n&&m(r,n)}function f(r){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)})(r)}function m(r,n){return(m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r})(r,n)}function g(r,n){if(null==r)return{};var i,o,a=function(r,n){if(null==r)return{};var i,o,a={},s=Object.keys(r);for(o=0;o<s.length;o++)i=s[o],n.indexOf(i)>=0||(a[i]=r[i]);return a}(r,n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);for(o=0;o<s.length;o++)i=s[o],n.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(r,i)&&(a[i]=r[i])}return a}function v(r){if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function y(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var i,o=f(r);if(n){var a=f(this).constructor;i=Reflect.construct(o,arguments,a)}else i=o.apply(this,arguments);return function(r,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return v(r)}(this,i)}}function b(r){return function(r){if(Array.isArray(r))return x(r)}(r)||function(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||function(r,n){if(r){if("string"==typeof r)return x(r,n);var i=Object.prototype.toString.call(r).slice(8,-1);return"Object"===i&&r.constructor&&(i=r.constructor.name),"Map"===i||"Set"===i?Array.from(r):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?x(r,n):void 0}}(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(r,n){(null==n||n>r.length)&&(n=r.length);for(var i=0,o=Array(n);i<n;i++)o[i]=r[i];return o}function _(r,n){return r(n={exports:{}},n.exports),n.exports}function w(){}function S(){}function T(r){return r.map(function(r){return!1===r?null:r}).join(" ").replace(/\s+/g," ").trim()}function E(r){return"".concat(r,"%")}function k(r,n,i){if(r===n)return!0;var o=q[V(r)],a=q[V(n)];return!(!o||o!==a)&&o(r,n,i)}function C(r){return function(n,i,o){if(!o)return r(n,i,[]);for(var a,s=o.length;a=o[--s];)if(a[0]===n&&a[1]===i)return!0;return r(n,i,o)}}function P(r){var n=[];for(var i in r)"constructor"!==i&&n.push(i);return n}function O(r,n){return!1!==n.clone&&n.isMergeableObject(r)?A(Array.isArray(r)?[]:{},r,n):r}function j(r,n,i){return r.concat(n).map(function(r){return O(r,i)})}function A(r,n,i){(i=i||{}).arrayMerge=i.arrayMerge||j,i.isMergeableObject=i.isMergeableObject||G;var o,a,s=Array.isArray(n);return s===Array.isArray(r)?s?i.arrayMerge(r,n,i):(a={},(o=i).isMergeableObject(r)&&Object.keys(r).forEach(function(n){a[n]=O(r[n],o)}),Object.keys(n).forEach(function(i){o.isMergeableObject(n[i])&&r[i]?a[i]=A(r[i],n[i],o):a[i]=O(n[i],o)}),a):O(n,i)}function M(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return{}},i=function(i){function a(r,i){var o;return l(this,a),(o=c.call(this,r,i)).state=n(s({},i.state)),o.updateStateProps=o.updateStateProps.bind(v(o)),o}p(a,i);var c=y(a);return u(a,[{key:"componentDidMount",value:function(){this.context.subscribe(this.updateStateProps)}},{key:"shouldComponentUpdate",value:function(r,n){return!$(n,this.state)||!$(r,this.props)}},{key:"componentWillUnmount",value:function(){this.context.unsubscribe(this.updateStateProps)}},{key:"updateStateProps",value:function(){this.setState(n(s({},this.context.state)))}},{key:"render",value:function(){var n=this,i=X(this.state,this.props);return o.createElement(r,h({ref:function(r){n.instance=r}},i,{carouselStore:{getStoreState:this.context.getStoreState,masterSpinnerError:this.context.masterSpinnerError,masterSpinnerSuccess:this.context.masterSpinnerSuccess,setStoreState:this.context.setStoreState,subscribeMasterSpinner:this.context.subscribeMasterSpinner,unsubscribeAllMasterSpinner:this.context.unsubscribeAllMasterSpinner,unsubscribeMasterSpinner:this.context.unsubscribeMasterSpinner}}),this.props.children)}}]),a}(o.Component);
232return d(i,"contextType",Y),d(i,"propTypes",{children:z.children}),d(i,"defaultProps",{children:null}),i}S.resetWarningCache=w;var I=function(){function r(r,n,i,o,a,s){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==s){var l=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function n(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:n,element:r,elementType:r,instanceOf:n,node:r,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:S,resetWarningCache:w};return i.PropTypes=i,i},Z=_(function(r){r.exports=I()}),R="loading",D="success",L="error",z={children:Z.oneOfType([Z.arrayOf(Z.node),Z.node]),direction:Z.oneOf(["forward","backward"]),height:function(r,n){var i=r[n];return"vertical"!==r.orientation||null!==i&&"number"==typeof i?null:Error("Missing required property '".concat(n,"' when orientation is vertical. You must supply a number representing the height in pixels"))},orientation:Z.oneOf(["horizontal","vertical"]),isBgImage:function(r,n){return!0===r[n]&&"img"===r.tag?Error("HTML img elements should not have a backgroundImage. Please use ".concat(n," for other block-level HTML tags, like div, a, section, etc...")):null}},B=function(r){var n=r.min;return Math.min(r.max,Math.max(n,r.x))},F={buttonBack:"buttonBack___1mlaL"},N=["carouselStore","className","currentSlide","disabled","onClick","step","totalSlides","visibleSlides","infinite"],U=function(r){function n(r){var o;return l(this,n),(o=i.call(this,r)).handleOnClick=o.handleOnClick.bind(v(o)),o}p(n,r);var i=y(n);return u(n,[{key:"handleOnClick",value:function(r){var n=this.props,i=n.carouselStore,o=n.currentSlide,a=n.onClick,s=n.step,l=n.infinite,c=n.visibleSlides,u=n.totalSlides-c,d=Math.max(o-s,0);l&&(d=0===o?u:d),i.setStoreState({currentSlide:d,isPlaying:!1},null!==a&&a.call(this,r))}},{key:"render",value:function(){var r=this.props,i=(r.carouselStore,r.className),a=(r.currentSlide,r.disabled,r.onClick,r.step,r.totalSlides,r.visibleSlides,r.infinite),s=g(r,N),l=T([F.buttonBack,"carousel__back-button",i]),c=n.setDisabled(this.props.disabled,this.props.currentSlide,a);return o.createElement("button",h({type:"button","aria-label":"previous",className:l,onClick:this.handleOnClick,disabled:c},s),this.props.children)}}],[{key:"setDisabled",value:function(r,n,i){return null!==r?r:0===n&&!i}}]),n}(o.Component);d(U,"propTypes",{carouselStore:Z.object.isRequired,children:z.children.isRequired,className:Z.string,currentSlide:Z.number.isRequired,disabled:Z.bool,onClick:Z.func,step:Z.number.isRequired,totalSlides:Z.number.isRequired,visibleSlides:Z.number.isRequired,infinite:Z.bool}),d(U,"defaultProps",{className:null,disabled:null,onClick:null,infinite:!1});var V=_(function(r,n){var i={}.toString,o="undefined"!=typeof window?window.Node:Function;r.exports=n=function(r){var n=typeof r;if("object"!=n)return n;if("object"==(n=a[i.call(r)]))return r instanceof Map?"map":r instanceof Set?"set":"object";if(n)return n;if(r instanceof o)switch(r.nodeType){case 1:return"element";case 3:return"text-node";case 9:return"document";case 11:return"document-fragment";default:return"dom-node"}};var a=n.types={"[object Function]":"function","[object Date]":"date","[object RegExp]":"regexp","[object Arguments]":"arguments","[object Array]":"array","[object Set]":"set","[object String]":"string","[object Null]":"null","[object Undefined]":"undefined","[object Number]":"number","[object Boolean]":"boolean","[object Object]":"object","[object Map]":"map","[object Text]":"text-node","[object Uint8Array]":"bit-array","[object Uint16Array]":"bit-array","[object Uint32Array]":"bit-array","[object Uint8ClampedArray]":"bit-array","[object Error]":"error","[object FormData]":"form-data","[object File]":"file","[object Blob]":"blob"}}),q=(V.types,{});q.number=function(r,n){return r!=r&&n!=n},q.function=function(r,n,i){return r.toString()===n.toString()&&q.object(r,n,i)&&k(r.prototype,n.prototype)},q.date=function(r,n){return+r==+n},q.regexp=function(r,n){return r.toString()===n.toString()},q.element=function(r,n){return r.outerHTML===n.outerHTML},q.textnode=function(r,n){return r.textContent===n.textContent},q.arguments=q["bit-array"]=q.array=C(function(r,n,i){var o=r.length;if(o!==n.length)return!1;for(i.push([r,n]);o--;)if(!k(r[o],n[o],i))return!1;return!0}),q.object=C(function(r,n,i){if("function"==typeof r.equal)return i.push([r,n]),r.equal(n,i);var o=P(r),a=P(n),s=o.length;if(s!==a.length)return!1;for(o.sort(),a.sort();s--;)if(o[s]!==a[s])return!1;for(i.push([r,n]),s=o.length;s--;){var l=o[s];if(!k(r[l],n[l],i))return!1}return!0});var $=k,G=function(r){var n;return!!r&&"object"==typeof r&&!("[object RegExp]"===(n=Object.prototype.toString.call(r))||"[object Date]"===n||r.$$typeof===W)},W="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;A.all=function(r,n){if(!Array.isArray(r))throw Error("first argument should be an array");return r.reduce(function(r,i){return A(r,i,n)},{})};var H,X=A,Y=o.createContext(),K=function r(n){return Object.freeze(n),Object.getOwnPropertyNames(n).forEac
232h(function(i){!n.hasOwnProperty(i)||null===n[i]||"object"!=typeof n[i]&&"function"!=typeof n[i]||Object.isFrozen(n[i])||r(n[i])}),n},J={masterSpinnerFinished:!1},Q=function(){function r(n){l(this,r),this.state=K(X(J,n)),this.subscriptions=[],this.masterSpinnerSubscriptions={},this.setStoreState=this.setStoreState.bind(this),this.getStoreState=this.getStoreState.bind(this),this.subscribe=this.subscribe.bind(this),this.unsubscribe=this.unsubscribe.bind(this),this.updateSubscribers=this.updateSubscribers.bind(this),this.subscribeMasterSpinner=this.subscribeMasterSpinner.bind(this),this.unsubscribeMasterSpinner=this.unsubscribeMasterSpinner.bind(this),this.unsubscribeAllMasterSpinner=this.unsubscribeAllMasterSpinner.bind(this),this.masterSpinnerSuccess=this.masterSpinnerSuccess.bind(this),this.masterSpinnerError=this.masterSpinnerError.bind(this)}return u(r,[{key:"setStoreState",value:function(r,n){this.state=K(X(this.state,r)),this.updateSubscribers(n)}},{key:"getStoreState",value:function(){return X({},this.state)}},{key:"subscribe",value:function(r){this.subscriptions.push(r)}},{key:"unsubscribe",value:function(r){var n=this.subscriptions.indexOf(r);-1!==n&&this.subscriptions.splice(n,1)}},{key:"updateSubscribers",value:function(r){this.subscriptions.forEach(function(r){return r()}),"function"==typeof r&&r(this.getStoreState())}},{key:"subscribeMasterSpinner",value:function(r){-1===Object.keys(this.masterSpinnerSubscriptions).indexOf(r)&&(this.masterSpinnerSubscriptions[r]={success:!1,error:!1,complete:!1})}},{key:"unsubscribeMasterSpinner",value:function(r){return -1!==Object.keys(this.masterSpinnerSubscriptions).indexOf(r)&&(this.setMasterSpinnerFinished(),delete this.masterSpinnerSubscriptions[r])}},{key:"unsubscribeAllMasterSpinner",value:function(){this.masterSpinnerSubscriptions={},this.setMasterSpinnerFinished()}},{key:"masterSpinnerSuccess",value:function(r){this.masterSpinnerSubscriptions[r].success=!0,this.masterSpinnerSubscriptions[r].complete=!0,this.setMasterSpinnerFinished()}},{key:"masterSpinnerError",value:function(r){this.masterSpinnerSubscriptions[r].error=!0,this.masterSpinnerSubscriptions[r].complete=!0,this.setMasterSpinnerFinished()}},{key:"setMasterSpinnerFinished",value:function(){this.setStoreState({masterSpinnerFinished:this.isMasterSpinnerFinished()})}},{key:"isMasterSpinnerFinished",value:function(){var r=this;return 0===Object.keys(this.masterSpinnerSubscriptions).filter(function(n){return!0!==r.masterSpinnerSubscriptions[n].complete}).length}}]),r}(),ee=["children","className","currentSlide","disableAnimation","disableKeyboard","hasMasterSpinner","interval","isPageScrollLocked","isPlaying","lockOnWindowScroll","naturalSlideHeight","naturalSlideWidth","orientation","playDirection","step","dragStep","tag","totalSlides","touchEnabled","dragEnabled","visibleSlides","infinite","isIntrinsicHeight"],et=(d(H=function(r){function n(r){if(l(this,n),a=i.call(this,r),r.isIntrinsicHeight&&"horizontal"!==r.orientation)throw Error('isIntrinsicHeight can only be used in "horizontal" orientation. See Readme for more information.');var o,a,s={currentSlide:r.currentSlide,disableAnimation:r.disableAnimation,disableKeyboard:r.disableKeyboard,hasMasterSpinner:r.hasMasterSpinner,imageErrorCount:0,imageSuccessCount:0,interval:r.interval,isPageScrollLocked:r.isPageScrollLocked,isPlaying:r.isPlaying,lockOnWindowScroll:r.lockOnWindowScroll,masterSpinnerThreshold:0,naturalSlideHeight:r.naturalSlideHeight,naturalSlideWidth:r.naturalSlideWidth,orientation:r.orientation,playDirection:r.playDirection,privateUnDisableAnimation:!1,slideSize:100/r.totalSlides*(o=r.visibleSlides)/o,slideTraySize:100*r.totalSlides/r.visibleSlides,step:r.step,dragStep:r.dragStep,totalSlides:r.totalSlides,touchEnabled:r.touchEnabled,dragEnabled:r.dragEnabled,visibleSlides:r.visibleSlides,infinite:r.infinite,isIntrinsicHeight:r.isIntrinsicHeight};return a.carouselStore=new Q(s),a}p(n,r);var i=y(n);return u(n,[{key:"componentDidUpdate",value:function(r){var n,i=this,o={};["currentSlide","disableAnimation","disableKeyboard","hasMasterSpinner","interval","isPlaying","naturalSlideHeight","naturalSlideWidth","lockOnWindowScroll","orientation","playDirection","step","dragStep","totalSlides","touchEnabled","dragEnabled","visibleSlides"].forEach(function(n){r[n]!==i.props[n]&&(o[n]=i.props[n])}),this.props.currentSlide===r.currentSlide||this.props.disableAnimation||(o.disableAnimation=!0,o.privateUnDisableAnimation=!0),this.props.totalSlides===r.totalSlides&&this.props.visibleSlides===r.visibleSlides||(o.slideSize=100/this.props.totalSlides*(n=this.props.visibleSlides)/n,o.slideTraySize=100*this.props.totalSlides/this.props.visibleSlides),this.carouselStore.state.currentSlide>=this.props.totalSlides&&(o.currentSlide=Math.max(this.props.totalSlides-1,0)),Object.keys(o).length>0&&this.carouselStore.setStoreState(o)}},{key:"componentWillUnmount",value:function(){this.carouselStore.unsubscribeAllMasterSpinner()}},{key:"getStore",value:function(){return this.carouselStore}},{key:"render",value:function(){var r=this.props,n=(r.children,r.className,r.currentSlide,r.disableAnimation,r.disableKeyboard,r.hasMasterSpinner,r.interval,r.isPageScrollLocked,r.isPlaying,r.lockOnWindowScroll,r.naturalSlideHeight,r.naturalSlideWidth,r.orientation,r.playDirection,r.step,r.dragStep,r.tag),i=(r.totalSlides,r.touchEnabled,r.dragEnabled,r.visibleSlides,r.infinite,r.isIntrinsicHeight,g(r,ee)),a=T(["carousel",this.props.className]);return o.createElement(n,h({className:a},i),o.createElement(Y.Provider,{value:this.carouselStore},this.props.children))}}]),n}
232(o.Component),"propTypes",{children:z.children.isRequired,className:Z.string,currentSlide:Z.number,disableAnimation:Z.bool,disableKeyboard:Z.bool,hasMasterSpinner:Z.bool,interval:Z.number,isPageScrollLocked:Z.bool,isPlaying:Z.bool,lockOnWindowScroll:Z.bool,naturalSlideHeight:Z.number.isRequired,naturalSlideWidth:Z.number.isRequired,orientation:z.orientation,playDirection:z.direction,step:Z.number,dragStep:Z.number,tag:Z.string,totalSlides:Z.number.isRequired,touchEnabled:Z.bool,dragEnabled:Z.bool,visibleSlides:Z.number,infinite:Z.bool,isIntrinsicHeight:Z.bool}),d(H,"defaultProps",{className:null,currentSlide:0,disableAnimation:!1,disableKeyboard:!1,hasMasterSpinner:!1,interval:5e3,isPageScrollLocked:!1,isPlaying:!1,lockOnWindowScroll:!1,orientation:"horizontal",playDirection:"forward",step:1,dragStep:1,tag:"div",touchEnabled:!0,dragEnabled:!0,visibleSlides:1,infinite:!1,isIntrinsicHeight:!1}),H);Y.Consumer;var er,en,ei,eo,ea,es,el=M(U,function(r){return{currentSlide:r.currentSlide,step:r.step,totalSlides:r.totalSlides,visibleSlides:r.visibleSlides,infinite:r.infinite}}),ec={buttonFirst:"buttonFirst___2rhFr"},eu=["carouselStore","className","currentSlide","disabled","onClick","totalSlides"],ed=(M((d(er=function(r){function n(){var r;return l(this,n),(r=i.call(this)).handleOnClick=r.handleOnClick.bind(v(r)),r}p(n,r);var i=y(n);return u(n,[{key:"handleOnClick",value:function(r){var n=this.props,i=n.carouselStore,o=n.onClick;i.setStoreState({currentSlide:0,isPlaying:!1},null!==o&&o.call(this,r))}},{key:"render",value:function(){var r=this.props,n=(r.carouselStore,r.className),i=r.currentSlide,a=r.disabled,s=(r.onClick,r.totalSlides,g(r,eu)),l=T([ec.buttonFirst,"carousel__first-button",n]);return o.createElement("button",h({type:"button","aria-label":"first",className:l,onClick:this.handleOnClick,disabled:null!==a?a:0===i},s),this.props.children)}}]),n}(o.Component),"propTypes",{carouselStore:Z.object.isRequired,children:z.children.isRequired,className:Z.string,currentSlide:Z.number.isRequired,disabled:Z.bool,onClick:Z.func,totalSlides:Z.number.isRequired}),d(er,"defaultProps",{className:null,disabled:null,onClick:null}),er),function(r){return{currentSlide:r.currentSlide,totalSlides:r.totalSlides}}),{buttonLast:"buttonLast___2yuh0"}),eh=["carouselStore","className","currentSlide","disabled","onClick","totalSlides","visibleSlides"],ep=(M((d(en=function(r){function n(){var r;return l(this,n),(r=i.call(this)).handleOnClick=r.handleOnClick.bind(v(r)),r}p(n,r);var i=y(n);return u(n,[{key:"handleOnClick",value:function(r){var n=this.props,i=n.carouselStore,o=n.onClick,a=n.totalSlides,s=n.visibleSlides;i.setStoreState({currentSlide:a-s,isPlaying:!1},null!==o&&o.call(this,r))}},{key:"render",value:function(){var r=this.props,n=(r.carouselStore,r.className),i=r.currentSlide,a=r.disabled,s=(r.onClick,r.totalSlides),l=r.visibleSlides,c=g(r,eh),u=T([ed.buttonLast,"carousel__last-button",n]);return o.createElement("button",h({type:"button","aria-label":"last",className:u,onClick:this.handleOnClick,disabled:null!==a?a:i>=s-l},c),this.props.children)}}]),n}(o.Component),"propTypes",{carouselStore:Z.object.isRequired,children:z.children.isRequired,className:Z.string,currentSlide:Z.number.isRequired,disabled:Z.bool,onClick:Z.func,totalSlides:Z.number.isRequired,visibleSlides:Z.number.isRequired}),d(en,"defaultProps",{className:null,disabled:null,onClick:null}),en),function(r){return{currentSlide:r.currentSlide,totalSlides:r.totalSlides,visibleSlides:r.visibleSlides}}),{buttonNext:"buttonNext___2mOCa"}),ef=["carouselStore","className","currentSlide","disabled","onClick","step","totalSlides","visibleSlides","infinite"],em=M((d(ei=function(r){function n(r){var o;return l(this,n),(o=i.call(this,r)).handleOnClick=o.handleOnClick.bind(v(o)),o}p(n,r);var i=y(n);return u(n,[{key:"handleOnClick",value:function(r){var n=this.props,i=n.currentSlide,o=n.onClick,a=n.step,s=n.carouselStore,l=n.infinite,c=n.totalSlides-n.visibleSlides,u=Math.min(a+i,c);l&&(u=c===i?0:u),s.setStoreState({currentSlide:u,isPlaying:!1},null!==o&&o.call(this,r))}},{key:"render",value:function(){var r=this.props,i=(r.carouselStore,r.className),a=r.currentSlide,s=r.disabled,l=(r.onClick,r.step,r.totalSlides),c=r.visibleSlides,u=r.
232infinite,d=g(r,ef),p=T([ep.buttonNext,"carousel__next-button",i]),f=n.setDisabled(s,a,c,l,u);return o.createElement("button",h({type:"button","aria-label":"next",className:p,onClick:this.handleOnClick,disabled:f},d),this.props.children)}}],[{key:"setDisabled",value:function(r,n,i,o,a){return null!==r?r:n>=o-i&&!a}}]),n}(o.PureComponent),"propTypes",{carouselStore:Z.object.isRequired,children:z.children.isRequired,className:Z.string,currentSlide:Z.number.isRequired,disabled:Z.bool,onClick:Z.func,step:Z.number.isRequired,totalSlides:Z.number.isRequired,visibleSlides:Z.number.isRequired,infinite:Z.bool}),d(ei,"defaultProps",{className:null,disabled:null,onClick:null,infinite:!1}),ei),function(r){return{currentSlide:r.currentSlide,step:r.step,totalSlides:r.totalSlides,visibleSlides:r.visibleSlides,infinite:r.infinite}}),eg={buttonNext:"buttonNext___3Lm3s"},ev=["carouselStore","children","childrenPaused","childrenPlaying","className","isPlaying","onClick"],ey=(M((d(eo=function(r){function n(r){var o;return l(this,n),(o=i.call(this,r)).handleOnClick=o.handleOnClick.bind(v(o)),o}p(n,r);var i=y(n);return u(n,[{key:"handleOnClick",value:function(r){var n=this.props.onClick;this.props.carouselStore.setStoreState({isPlaying:!this.props.isPlaying},null!==n&&n.call(this,r))}},{key:"render",value:function(){var r=this.props,n=(r.carouselStore,r.children,r.childrenPaused),i=r.childrenPlaying,a=r.className,s=r.isPlaying,l=(r.onClick,g(r,ev)),c=T([eg.buttonNext,"carousel__play-button",a]);return o.createElement("button",h({type:"button","aria-label":"play",className:c,onClick:this.handleOnClick},l),s&&i,!s&&n,this.props.children)}}]),n}(o.PureComponent),"propTypes",{carouselStore:Z.object.isRequired,children:Z.node,childrenPaused:Z.node,childrenPlaying:Z.node,className:Z.string,isPlaying:Z.bool.isRequired,onClick:Z.func}),d(eo,"defaultProps",{children:null,childrenPaused:null,childrenPlaying:null,className:null,onClick:null}),eo),function(r){return{isPlaying:r.isPlaying}}),{dot:"dot___3c3SI"}),eb=["carouselStore","children","className","currentSlide","disabled","onClick","selected","slide","totalSlides","visibleSlides"],ex=M((d(ea=function(r){function n(r){var o;return l(this,n),(o=i.call(this,r)).handleOnClick=o.handleOnClick.bind(v(o)),o}p(n,r);var i=y(n);return u(n,[{key:"handleOnClick",value:function(r){var n=this.props,i=n.carouselStore,o=n.onClick,a=n.slide,s=n.totalSlides,l=n.visibleSlides;i.setStoreState({currentSlide:a>=s-l?s-l:a,isPlaying:!1},null!==o&&o.call(this,r))}},{key:"render",value:function(){var r=this.props,n=(r.carouselStore,r.children,r.className),i=r.currentSlide,a=r.disabled,s=(r.onClick,r.selected),l=r.slide,c=(r.totalSlides,r.visibleSlides),u=g(r,eb),d=l>=i&&l<i+c,p="boolean"==typeof s?s:d,f=T([ey.dot,p&&ey.dotSelected,"carousel__dot","carousel__dot--".concat(l),p&&"carousel__dot--selected",n]);return o.createElement("button",h({"aria-label":"slide dot",type:"button",onClick:this.handleOnClick,className:f,disabled:"boolean"==typeof a?a:!0===d},u),this.props.children)}}]),n}(o.Component),"propTypes",{carouselStore:Z.object.isRequired,children:z.children,className:Z.string,currentSlide:Z.number.isRequired,disabled:Z.bool,onClick:Z.func,selected:Z.bool,slide:Z.number.isRequired,totalSlides:Z.number.isRequired,visibleSlides:Z.number.isRequired}),d(ea,"defaultProps",{children:null,className:null,disabled:null,onClick:null,selected:null}),ea),function(r){return{currentSlide:r.currentSlide,totalSlides:r.totalSlides,visibleSlides:r.visibleSlides}}),e_={},ew=["renderDots"],eS=["carouselStore","children","className","currentSlide","dotNumbers","totalSlides","visibleSlides","disableActiveDots","showAsSelectedForCurrentSlideOnly","renderDots"],eT=(d(es=function(r){function n(){return l(this,n),i.apply(this,arguments)}p(n,r);var i=y(n);return u(n,[{key:"renderDots",value:function(){var r=this.props,n=r.currentSlide,i=r.totalSlides,a=r.visibleSlides,s=r.disableActiveDots,l=r.showAsSelectedForCurrentSlideOnly,c=r.renderDots;if(c){var u=this.props;return u.renderDots,c(g(u,ew))}for(var d=[],h=0;h<i;h+=1){var p=h>=n&&h<n+a,f=h===n,m=l?f:p,v=h>=i-a?i-a:h;d.push(o.createElement(ex,{key:h,slide:v,selected:m,disabled:!!s&&m},o.createElement("span",{className:T["carousel__dot-group-dot"]},this.props.dotNumbers&&h+1)))}return d}},{key:"render",value:function(){var r=this.props,n=(r.carouselStore,r.children),i=r.className,a=(r.currentSlide,r.dotNumbers,r.totalSlides,r.visibleSlides,r.disableActiveDots,r.showAsSelectedForCurrentSlideOnly,r.renderDots,g(r,eS)),s=T([e_.DotGroup,"carousel__dot-group",i]);return o.createElement("div",h({className:s},a),this.renderDots(),n)}}]),n}
232(o.Component),"propTypes",{children:z.children,className:Z.string,currentSlide:Z.number.isRequired,carouselStore:Z.object.isRequired,totalSlides:Z.number.isRequired,visibleSlides:Z.number.isRequired,dotNumbers:Z.bool,disableActiveDots:Z.bool,showAsSelectedForCurrentSlideOnly:Z.bool,renderDots:Z.func}),d(es,"defaultProps",{children:null,className:null,dotNumbers:!1,disableActiveDots:!0,showAsSelectedForCurrentSlideOnly:!1,renderDots:null}),es),eE=M(eT,function(r){return{currentSlide:r.currentSlide,totalSlides:r.totalSlides,visibleSlides:r.visibleSlides}}),ek={image:"image___xtQGH"},eC=["src","alt"],eP=["carouselStore","children","className","hasMasterSpinner","isBgImage","onError","onLoad","renderError","renderLoading","style","tag"],eO=function(r){function n(r){var o;return l(this,n),(o=i.call(this,r)).state={imageStatus:R},o.handleImageLoad=o.handleImageLoad.bind(v(o)),o.handleImageError=o.handleImageError.bind(v(o)),o.image=null,o}p(n,r);var i=y(n);return u(n,[{key:"componentDidMount",value:function(){n.subscribeMasterSpinner(this.props),this.initImage()}},{key:"componentDidUpdate",value:function(r){r.src!==this.props.src&&(n.unsubscribeMasterSpinner(r),n.subscribeMasterSpinner(this.props),this.initImage())}},{key:"componentWillUnmount",value:function(){n.unsubscribeMasterSpinner(this.props),this.image.removeEventListener("load",this.handleImageLoad),this.image.removeEventListener("error",this.handleImageError),this.image=null}},{key:"initImage",value:function(){if(this.setState({imageStatus:R}),this.image=document.createElement("img"),this.image.addEventListener("load",this.handleImageLoad,!1),this.image.addEventListener("error",this.handleImageError,!1),this.image.src=this.props.src,this.image.readyState||this.image.complete){var r=this.image.src;this.image.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",this.image.src=r}}},{key:"handleImageLoad",value:function(r){this.setState({imageStatus:D}),this.props.hasMasterSpinner&&this.props.carouselStore.masterSpinnerSuccess(this.props.src),this.props.onLoad&&this.props.onLoad(r)}},{key:"handleImageError",value:function(r){this.setState({imageStatus:L}),this.props.hasMasterSpinner&&this.props.carouselStore.masterSpinnerError(this.props.src),this.props.onError&&this.props.onError(r)}},{key:"tempTag",value:function(){return"img"===this.props.tag?"div":this.props.tag}},{key:"customRender",value:function(r){return"function"==typeof this.props[r]?this.props[r]():this.props.children}},{key:"renderLoading",value:function(r){var n=this.tempTag(),i=T([ek.image,ek.imageLoading,"carousel__image",this.props.isBgImage&&"carousel__image--with-background","carousel__image--loading",this.props.className]);return o.createElement(n,h({className:i},r),this.customRender("renderLoading"))}},{key:"renderError",value:function(r){var n=this.tempTag(),i=T([ek.image,ek.imageError,"carousel__image",this.props.isBgImage&&"carousel__image--with-background","carousel__image--error",this.props.className]);return o.createElement(n,h({className:i},r),this.customRender("renderError"))}},{key:"renderSuccess",value:function(r){var n=this.props,i=n.style,a=n.tag,s=T([ek.image,"carousel__image",this.props.isBgImage&&"carousel__image--with-background","carousel__image--success",this.props.className]),l=h({},i),c=r;if("img"!==a){var u=r.src;r.alt,c=g(r,eC),l=h({},i,{backgroundImage:'url("'.concat(u,'")'),backgroundSize:"cover"})}return o.createElement(a,h({className:s,style:l},c),this.props.children)}},{key:"render",value:function(){var r=this.props,n=(r.carouselStore,r.children,r.className,r.hasMasterSpinner,r.isBgImage,r.onError,r.onLoad,r.renderError,r.renderLoading,r.style,r.tag,g(r,eP));switch(this.state.imageStatus){case R:return this.renderLoading(n);case D:return this.renderSuccess(n);case L:return this.renderError(n);default:throw Error("unknown value for this.state.imageStatus")}}}],[{key:"subscribeMasterSpinner",value:function(r){r.hasMasterSpinner&&r.carouselStore.subscribeMasterSpinner(r.src)}},{key:"unsubscribeMasterSpinner",value:function(r){r.hasMasterSpinner&&r.carouselStore.unsubscribeMasterSpinner(r.src)}}]),n}(o.Component);d(eO,"propTypes",{alt:Z.string,carouselStore:Z.object.isRequired,children:z.children,className:Z.string,hasMasterSpinner:Z.bool.isRequired,isBgImage:z.isBgImage,onError:Z.func,onLoad:Z.func,renderError:Z.func,renderLoading:Z.func,src:Z.string.isRequired,style:Z.object,tag:Z.string}),d(eO,"defaultProps",{alt:"",children:null,className:null,isBgImage:!1,onError:null,onLoad:null,renderError:null,renderLoading:null,style:null,tag:"img"});var ej,eA,eM,eI,eZ=M(eO,function(r){return{hasMasterSpinner:r.hasMasterSpinner,orientation:r.orientation}}),eR={spinner:"spinner___27VUp",spin:"spin___S3UuE"},eD=["className"],eL=(d(ej=function(r){function n(){return l(this,n),i.apply(this,arguments)}p(n,r);var i=y(n);return u(n,[{key:"render",value:function(){var r=this.props,n=r.className,i=g(r,eD),a=T([eR.spinner,"carousel__spinner",n]);return o.createElement("div",h({className:a},i))}}]),n}
232(o.PureComponent),"propTypes",{className:Z.string}),d(ej,"defaultProps",{className:null}),ej),ez={container:"container___2O72F",overlay:"overlay___IV4qY",hover:"hover___MYy31",zoom:"zoom___3kqYk",loading:"loading___1pvNI",imageLoadingSpinnerContainer:"imageLoadingSpinnerContainer___3UIPD"},eB=["alt","bgImageProps","bgImageTag","carouselStore","className","imageClassName","overlayClassName","isPinchZoomEnabled","spinner","src","srcZoomed","tag"],eF=(d(eA=function(r){function n(r){var o;return l(this,n),(o=i.call(this,r)).state={isImageLoading:!0,isImageLoadingError:!0,isHovering:!1,isZooming:!1,x:null,y:null,scale:1},o.tpCache={},o.handleImageComplete=o.handleImageComplete.bind(v(o)),o.handleImageLoadError=o.handleImageLoadError.bind(v(o)),o.handleOnMouseMove=o.handleOnMouseMove.bind(v(o)),o.handleOnMouseOut=o.handleOnMouseOut.bind(v(o)),o.handleOnMouseOver=o.handleOnMouseOver.bind(v(o)),o.handleOnTouchEnd=o.handleOnTouchEnd.bind(v(o)),o.handleOnTouchMove=o.handleOnTouchMove.bind(v(o)),o.handleOnTouchStart=o.handleOnTouchStart.bind(v(o)),o}p(n,r);var i=y(n);return u(n,[{key:"componentDidUpdate",value:function(r,n){!1===n.isZooming&&!0===this.state.isZooming&&this.props.carouselStore.setStoreState({isPageScrollLocked:!0}),!0===n.isZooming&&!1===this.state.isZooming&&this.props.carouselStore.setStoreState({isPageScrollLocked:!1})}},{key:"handleImageComplete",value:function(r){this.setState({isImageLoading:!1}),this.props&&this.props.onLoad&&this.props.onLoad(r)}},{key:"handleImageLoadError",value:function(r){this.setState({isImageLoadingError:!0,isImageLoading:!1}),this.props&&this.props.onError&&this.props.onError(r)}},{key:"handleOnMouseOver",value:function(){this.state.isZooming||this.setState({isHovering:!0,scale:2})}},{key:"handleOnMouseOut",value:function(){this.state.isZooming||this.setState({isHovering:!1,scale:1})}},{key:"handleOnMouseMove",value:function(r){if(!this.state.isZooming){var n=E(r.nativeEvent.offsetX/r.target.offsetWidth*100),i=E(r.nativeEvent.offsetY/r.target.offsetHeight*100);this.setState({x:n,y:i})}}},{key:"handleOnTouchStart",value:function(r){var n=this;this.props.isPinchZoomEnabled&&(b(r.targetTouches).forEach(function(r){n.tpCache[r.identifier]={clientX:r.clientX,clientY:r.clientY}}),this.setState(function(r){return{isZooming:r.isZooming||Object.keys(n.tpCache).length>1}}))}},{key:"handleOnTouchMove",value:function(r){var i=this;if(this.state.isZooming){r.persist();var o=b(r.targetTouches).filter(function(r){return i.tpCache[r.identifier]}).slice(0,2);if(2===o.length){r.stopPropagation();var a=r.target.getBoundingClientRect(),l=o[0].identifier,c=o[1].identifier,u={x1:this.tpCache[l].clientX,y1:this.tpCache[l].clientY,x2:this.tpCache[c].clientX,y2:this.tpCache[c].clientY};u.distance=n.distanceBetweenTwoTouches(s({},u));var d=n.midpointBetweenTwoTouches(s({},u));u.cx=d.x,u.cy=d.y;var h={x1:o[0].clientX,y1:o[0].clientY,x2:o[1].clientX,y2:o[1].clientY};h.distance=n.distanceBetweenTwoTouches(s({},h));var p=n.midpointBetweenTwoTouches(s({},h));h.cx=p.x,h.cy=p.y;var f=E(B({min:0,max:100,x:(h.cx-a.left)/a.width*100})),m=E(B({min:0,max:100,x:(h.cy-a.top)/a.height*100})),g=function(r){return B({min:1,max:3,x:r.scale+(h.distance-u.distance)/100})};this.setState(function(r){return{isZooming:1!==g(r),scale:g(r),x:f,y:m}})}}}},{key:"handleOnTouchEnd",value:function(r){var n=this;this.props.isPinchZoomEnabled&&(b(r.changedTouches).forEach(function(r){delete n.tpCache[r.identifier]}),0===Object.keys(this.tpCache).length&&this.setState({isZooming:!1}))}},{key:"renderLoading",value:function(){if(this.state.isImageLoading){var r=this.props.spinner;return o.createElement("div",{className:T([ez.imageLoadingSpinnerContainer,"carousel__image-loading-spinner-container"])},r&&r(),!r&&o.createElement(eL,null))}return null}},{key:"render",value:function(){var r=this.props,n=r.alt,i=r.bgImageProps,a=r.bgImageTag,s=(r.carouselStore,r.className),l=r.imageClassName,c=r.overlayClassName,u=(r.isPinchZoomEnabled,r.spinner,r.src),d=r.srcZoomed,p=r.tag,f=g(r,eB),m=T([ez.container,s]),v=T([ez.image,"carousel__zoom-image",l]),y=T([ez.overlay,"carousel__zoom-image-overlay",this.state.isHovering&&ez.hover,this.state.isZooming&&ez.zoom,this.state.isHovering&&"carousel__zoom-image-overlay--hovering",this.state.isZooming&&"carousel__zoom-image-overlay--zooming",c]),b={};return(this.state.isHovering||this.state.isZooming)&&(b.transformOrigin="".concat(this.state.x," ").concat(this.state.y),b.transform="scale(".concat(this.state.scale,")")),o.createElement(p,h({className:m},f),o.createElement(eZ,h({alt:n,className:v,tag:a,src:u,onLoad:this.handleImageComplete,onError:this.handleImageLoadError},i)),o.createElement(eZ,{className:y,tag:"div",src:d||u,style:b,isBgImage:!0,onFocus:this.handleOnMouseOver,onMouseOver:this.handleOnMouseOver,onBlur:this.handleOnMouseOut,onMouseOut:this.handleOnMouseOut,onMouseMove:this.handleOnMouseMove,onTouchStart:this.handleOnTouchStart,onTouchEnd:this.handleOnTouchEnd,onTouchMove:this.handleOnTouchMove}),this.renderLoading())}}],[{key:"midpointBetweenTwoTouches",value:function(r){var n=r.x1,i=r.y1;return{x:(n+r.x2)/2,y:(i+r.y2)/2}}},{key:"distanceBetweenTwoTouches",value:function(r){var n=r.x1,i=r.y1;return Math.sqrt(Math.pow(r.x2-n,2)+Math.pow(r.y2-i,2))}}]),n}
232(o.Component),"propTypes",{alt:Z.string,bgImageProps:Z.object,bgImageTag:Z.string,carouselStore:Z.object.isRequired,className:Z.string,imageClassName:Z.string,overlayClassName:Z.string,spinner:Z.func,onLoad:Z.func,onError:Z.func,src:Z.string.isRequired,srcZoomed:Z.string,tag:Z.string,isPinchZoomEnabled:Z.bool}),d(eA,"defaultProps",{alt:void 0,bgImageProps:{},bgImageTag:"div",className:null,imageClassName:null,overlayClassName:null,isPinchZoomEnabled:!0,spinner:null,onLoad:null,onError:null,srcZoomed:null,tag:"div"}),eA),eN=(M(eF,function(){return{}}),{slide:"slide___3-Nqo",slideHorizontal:"slideHorizontal___1NzNV",slideInner:"slideInner___2mfX9",focusRing:"focusRing___1airF"}),eU=["ariaLabel","carouselStore","children","className","classNameHidden","classNameVisible","currentSlide","index","innerClassName","innerTag","naturalSlideHeight","naturalSlideWidth","onBlur","onFocus","orientation","slideSize","style","tag","totalSlides","visibleSlides","isIntrinsicHeight"],eV=M((d(eM=function(r){function n(r){var o;return l(this,n),(o=i.call(this,r)).handleOnFocus=o.handleOnFocus.bind(v(o)),o.handleOnBlur=o.handleOnBlur.bind(v(o)),o.state={focused:!1},o}p(n,r);var i=y(n);return u(n,[{key:"isVisible",value:function(){var r=this.props,n=r.currentSlide,i=r.index,o=r.visibleSlides;return i>=n&&i<n+o}},{key:"handleOnFocus",value:function(r){var n=this,i=this.props.onFocus;this.setState({focused:!0},function(){null!==i&&i.call(n,r)})}},{key:"handleOnBlur",value:function(r){var n=this,i=this.props.onBlur;this.setState({focused:!1},function(){null!==i&&i.call(n,r)})}},{key:"renderFocusRing",value:function(){return this.state.focused?o.createElement("div",{className:[eN.focusRing,"carousel__slide-focus-ring"].join(" ")}):null}},{key:"render",value:function(){var r=this,n=this.props,i=n.ariaLabel,a=(n.carouselStore,n.children,n.className),s=n.classNameHidden,l=n.classNameVisible,c=(n.currentSlide,n.index,n.innerClassName),u=n.innerTag,d=n.naturalSlideHeight,p=n.naturalSlideWidth,f=(n.onBlur,n.onFocus,n.orientation),m=n.slideSize,v=n.style,y=n.tag,b=n.totalSlides,x=(n.visibleSlides,n.isIntrinsicHeight),_=g(n,eU),w={};"horizontal"===f?(w.width=E(m),w.paddingBottom=E(100*d/(p*b))):(w.width=E(100),w.paddingBottom=E(100*d/p));var S={};x&&("horizontal"===f?w.height="unset":w.width="unset",w.paddingBottom="unset",S.position="unset");var k=h({},w,v),C=this.isVisible(),P=T([eN.slide,"horizontal"===f&&eN.slideHorizontal,"carousel__slide",this.state.focused&&"carousel__slide--focused",C&&l,C&&"carousel__slide--visible",!C&&s,!C&&"carousel__slide--hidden",a]),O=T([eN.slideInner,"carousel__inner-slide",c]);return o.createElement(y,h({ref:function(n){r.tagRef=n},"aria-selected":this.isVisible(),"aria-label":i,role:this.props.role,onFocus:this.handleOnFocus,onBlur:this.handleOnBlur,className:P,style:k},_),o.createElement(u,{ref:function(n){r.innerTagRef=n},className:O,style:S},this.props.children,this.renderFocusRing()))}}]),n}(o.PureComponent),"propTypes",{ariaLabel:Z.string,carouselStore:Z.object,children:z.children,className:Z.string,classNameHidden:Z.string,classNameVisible:Z.string,currentSlide:Z.number.isRequired,index:Z.number.isRequired,innerClassName:Z.string,innerTag:Z.string,naturalSlideHeight:Z.number.isRequired,naturalSlideWidth:Z.number.isRequired,onBlur:Z.func,onFocus:Z.func,orientation:z.orientation.isRequired,slideSize:Z.number.isRequired,role:Z.string,style:Z.object,tag:Z.string,totalSlides:Z.number.isRequired,visibleSlides:Z.number.isRequired,isIntrinsicHeight:Z.bool}),d(eM,"defaultProps",{ariaLabel:"slide",carouselStore:null,children:null,className:null,classNameHidden:null,classNameVisible:null,innerClassName:null,innerTag:"div",onBlur:null,onFocus:null,role:"option",style:{},tag:"div",isIntrinsicHeight:!1}),eM),function(r){return{currentSlide:r.currentSlide,naturalSlideHeight:r.naturalSlideHeight,naturalSlideWidth:r.naturalSlideWidth,orientation:r.orientation,slideSize:r.slideSize,totalSlides:r.totalSlides,visibleSlides:r.visibleSlides,isIntrinsicHeight:r.isIntrinsicHeight}}),eq=function(){function r(){l(this,r)}return u(r,[{key:"parents",value:function(r,n){return null===r.parentNode?n:this.parents(r.parentNode,n.concat([r]))}},{key:"scrollParent",value:function(n){for(var i=this.parents(n.parentNode,[]),o=0;o<i.length;o+=1)if(r.scroll(i[o]))return i[o];return document.scrollingElement||document.documentElement}},{key:"getScrollParent",value:function(n){return r.isNodeValid(n)?this.scrollParent(n):null}}],[{key:"style",value:function(r,n){return getComputedStyle(r,null).getPropertyValue(n)}},{key:"overflow",value:function(n){return r.style(n,"overflow")+r.style(n,"overflow-y")+r.style(n,"overflow-x")}},{key:"scroll",value:function(n){return/(auto|scroll)/.test(r.overflow(n))}},{key:"isNodeValid",value:function(r){return r instanceof HTMLElement||r instanceof SVGElement}}]),r}(),e$={horizontalSlider:"horizontalSlider___281Ls",touchDisabled:"touchDisabled___2qs4y",horizontalSliderTray:"horizontalSliderTray___1L-0W",verticalSlider:"verticalSlider___34ZFD",verticalSliderTray:"verticalSliderTray___267D8",verticalTray:"verticalTray___12Key",verticalSlideTrayWrap:"verticalSlideTrayWrap___2nO7o",sliderTray:"sliderTray___-vHFQ",sliderAnimation:"sliderAnimation___300FY",masterSpinnerContainer:"masterSpinnerContainer___1Z6hB"},eG=["ariaLabel","carouselStore","children","className","classNameAnimation","classNameTray","classNameTrayWrap","currentSlide","disableAnimation","disableKeyboard","dragEnabled","hasMasterSpinner","interval","isPageScrollLocked","isPlaying","lockOnWindowScroll","masterSpinnerFinished","moveThreshold","naturalSlideHeight","naturalSlideWidth","onMasterSpinner","orientation","playDirection","privateUnDisableAnimation","slideSize","slideTraySize","spinner","style","totalSlides","touchEnabled","trayProps","trayTag","visibleSlides","isIntrinsicHeight"],eW=["dragStep","step","infinite","preventVerticalScrollOnTouch","preventingVerticalScroll","horizontalPixelThreshold","verticalPixelThreshold"],eH=["className","onClickCapture","onMouseDown","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","ref","style"],eX=M((d(eI=function(r){function n(r){var o;return l(this,n),(o=i.call(this,r)).getSliderRef=o.getSliderRef.bind(v(o)),o.handleDocumentScroll=o.handleDocumentScroll.bind(v(o)),o.handleOnClickCapture=o.handleOnClickCapture.bind(v(o)),o.handleOnKeyDown=o.handleOnKeyDown.bind(v(o)),o.handleOnMouseDown=o.handleOnMouseDown.bind(v(o)),o.handleOnMouseMove=o.handleOnMouseMove.bind(v(o)),o.handleOnMouseUp=o.handleOnMouseUp.bind(v(o)),o.handleOnTouchCancel=o.handleOnTouchCancel.bind(v(o)),o.handleOnTouchEnd=o.handleOnTouchEnd.bind(v(o)),o.handleOnTouchMove=o.handleOnTouchMove.bind(v(o)),o.handleOnTouchStart=
232o.handleOnTouchStart.bind(v(o)),o.playBackward=o.playBackward.bind(v(o)),o.playForward=o.playForward.bind(v(o)),o.callCallback=o.callCallback.bind(v(o)),o.blockWindowScroll=o.blockWindowScroll.bind(v(o)),o.state={cancelNextClick:!1,deltaX:0,deltaY:0,isBeingMouseDragged:!1,isBeingTouchDragged:!1,preventingVerticalScroll:!1,startX:0,startY:0},o.interval=null,o.isDocumentScrolling=null,o.moveTimer=null,o.originalOverflow=null,o.scrollParent=null,o.scrollStopTimer=null,o}p(n,r);var i=y(n);return u(n,[{key:"componentDidMount",value:function(){this.props.lockOnWindowScroll&&window.addEventListener("scroll",this.handleDocumentScroll,!1),(this.props.touchEnabled||this.props.preventVerticalScrollOnTouch)&&window.addEventListener("touchmove",this.blockWindowScroll,!1),document.documentElement.addEventListener("mouseleave",this.handleOnMouseUp,!1),document.documentElement.addEventListener("mousemove",this.handleOnMouseMove,!1),document.documentElement.addEventListener("mouseup",this.handleOnMouseUp,!1),this.props.isPlaying&&this.play()}},{key:"componentDidUpdate",value:function(r){!r.isPlaying&&this.props.isPlaying&&this.play(),r.isPlaying&&!this.props.isPlaying&&this.stop(),!r.isPageScrollLocked&&this.props.isPageScrollLocked&&this.lockScroll(),r.isPageScrollLocked&&!this.props.isPageScrollLocked&&this.unlockScroll(),!1===r.privateUnDisableAnimation&&!0===this.props.privateUnDisableAnimation&&this.props.carouselStore.setStoreState({privateUnDisableAnimation:!1,disableAnimation:!1})}},{key:"componentWillUnmount",value:function(){document.documentElement.removeEventListener("mouseleave",this.handleOnMouseUp,!1),document.documentElement.removeEventListener("mousemove",this.handleOnMouseMove,!1),document.documentElement.removeEventListener("mouseup",this.handleOnMouseUp,!1),window.removeEventListener("scroll",this.handleDocumentScroll,!1),window.removeEventListener("touchmove",this.blockWindowScroll,!1),this.stop(),window.cancelAnimationFrame.call(window,this.moveTimer),window.clearTimeout(this.scrollStopTimer),this.isDocumentScrolling=null,this.moveTimer=null,this.scrollStopTimer=null}},{key:"getSliderRef",value:function(r){if(this.sliderTrayElement=r,r&&window){var n=r.closest(".carousel");n&&(this.rtl="rtl"===window.getComputedStyle(n,null).getPropertyValue("direction"))}}},{key:"fakeOnDragStart",value:function(r){var n=r.screenX,i=r.screenY,o=r.touchDrag,a=r.mouseDrag;this.props.carouselStore.setStoreState({isPlaying:!1}),window.cancelAnimationFrame.call(window,this.moveTimer),"vertical"===this.props.orientation&&this.props.carouselStore.setStoreState({isPageScrollLocked:!0}),this.setState({isBeingTouchDragged:void 0!==o&&o,isBeingMouseDragged:void 0!==a&&a,startX:n,startY:i})}},{key:"fakeOnDragMove",value:function(r,n){var i=this;window.cancelAnimationFrame.call(window,this.moveTimer),this.moveTimer=window.requestAnimationFrame.call(window,function(){i.setState(function(o){return{deltaX:(r-o.startX)*(i.rtl?-1:1),deltaY:n-o.startY,preventingVerticalScroll:Math.abs(n-o.startY)<=i.props.verticalPixelThreshold&&Math.abs(r-o.startX)>=i.props.horizontalPixelThreshold}})})}},{key:"fakeOnDragEnd",value:function(){window.cancelAnimationFrame.call(window,this.moveTimer),this.computeCurrentSlide(),"vertical"===this.props.orientation&&this.props.carouselStore.setStoreState({isPageScrollLocked:!1}),this.setState({deltaX:0,deltaY:0,isBeingTouchDragged:!1,isBeingMouseDragged:!1}),this.isDocumentScrolling=!this.props.lockOnWindowScroll&&null}},{key:"callCallback",value:function(r,n){var i=this.props.trayProps;i&&"function"==typeof i[r]&&(n.persist(),i[r](n))}},{key:"handleOnMouseDown",value:function(r){if(!this.props.dragEnabled)return void this.callCallback("onMouseDown",r);r.preventDefault(),this.fakeOnDragStart({screenX:r.screenX,screenY:r.screenY,mouseDrag:!0}),this.callCallback("onMouseDown",r)}},{key:"handleOnMouseMove",value:function(r){this.state.isBeingMouseDragged&&(this.setState({cancelNextClick:!0}),r.preventDefault(),this.fakeOnDragMove(r.screenX,r.screenY))}},{key:"handleOnMouseUp",value:function(r){this.state.isBeingMouseDragged&&(r.preventDefault(),this.fakeOnDragEnd())}},{key:"handleOnClickCapture",value:function(r){if(!this.state.cancelNextClick)return void this.callCallback("onClickCapture",r);r.preventDefault(),this.setState({cancelNextClick:!1}),this.callCallback("onClickCapture",r)}},{key:"handleOnTouchStart",value:function(r){if(!this.props.touchEnabled)return void this.callCallback("onTouchStart",r);"vertical"===this.props.orientation&&r.preventDefault();var n=r.targetTouches[0];this.fakeOnDragStart({screenX:n.screenX,screenY:n.screenY,touchDrag:!0}),this.callCallback("onTouchStart",r)}},{key:"handleDocumentScroll",value:function(){var r=this;this.props.touchEnabled&&(this.isDocumentScrolling=!0,window.clearTimeout(this.scrollStopTimer),this.scrollStopTimer=window.setTimeout(function(){r.isDocumentScrolling=!1},66))}},{key:"handleOnTouchMove",value:function(r){if(!this.props.touchEnabled||this.props.lockOnWindowScroll&&this.isDocumentScrolling)return void this.callCallback("onTouchMove",r);var n=r.targetTouches[0];n&&(this.fakeOnDragMove(n.screenX,n.screenY),this.callCallback("onTouchMove",r))}},{key:"forward",value:function(){var r=this.props;return Math.min(r.currentSlide+r.step,r.totalSlides-r.visibleSlides)}},{key:"backward",value:function(){var r=this.props;return Math.max(r.currentSlide-r.step,0)}},{key:"handleOnKeyDown",value:function(r){var n=r.keyCode,i=this.props,o=i.carouselStore,a=i.currentSlide,s=i.disableKeyboard,l=i.totalSlides,c=i.visibleSlides,u={};!0===s||l<=c||(37===n&&(r.preventDefault(),this.focus(),u.currentSlide=Math.max(0,a-1),u.isPlaying=!1),39===n&&(r.preventDefault(),this.focus(),u.currentSlide=Math.min(l-c,a+1),u.isPlaying=!1),o.setStoreState(u))}},{key:"playForward",value:function(){var r=this.props,n=r.carouselStore,i=r.currentSlide;n.setStoreState({currentSlide:this.forward()===i?0:this.forward()})}},{key:"playBackward",value:function(){var r=this.props,n=r.carouselStore,i=r.currentSlide,o=r.totalSlides,a=r.visibleSlides;n.setStoreState({currentSlide:this.backward()===i?o-a:this.backward()})}},{key:"play",value:function(){var r=this.props.playDirection;this.interval=setInterval("forward"===r?this.playForward:this.playBackward,this.props.interval)}},{key:"stop",value:function(){window.clearInterval(this.interval),this.interval=null}},{key:"lockScroll",value:function(){var r=new eq;this.scrollParent=r.getScrollParent(this.sliderTrayElement),this.scrollParent&&(this.originalOverflow=this.originalOverflow||this.scrollParent.style.overflow,this.scrollParent.style.overflow="hidden")}},{key:"unlockScroll",value:function(){this.scrollParent&&(this.scrollParent.style.overflow=this.originalOverflow,this.originalOverflow=null,this.scrollParent=null)}},{key:"blockWindowScroll",value:function(r){this.state.preventingVerticalScroll&&(r.preventDefault(),r.stopImmediatePropagation())}},{key:"computeCurrentSlide",value:function(){var r=n.slideSizeInPx(this.props.orientation,this.sliderTrayElement.clientWidth,this.sliderTrayElement.clientHeight,this.props.totalSlides),i=n.slidesMoved(this.props.moveThreshold,this.props.orientation,this.state.deltaX,this.state.deltaY,r,this.props.dragStep),o=this.props.totalSlides-Math.min(this.props.totalSlides,this.props.visibleSlides),a=B({min:0,max:o,x:this.props.currentSlide+i});this.props.infinite&&(this.props.currentSlide>=o&&i>0&&(a=0),0===this.props.currentSlide&&i<0&&(a=o)),this.props.carouselStore.setStoreState({currentSlide:a})}},{key:"focus",value:function(){this.sliderElement.focus()}},{key:"handleOnTouchEnd",value:function(r){this.endTouchMove(),this.callCallback("onTouchEnd",r)}},{key:"handleOnTouchCancel",value:function(r){this.endTouchMove(),this.callCallback("onTouchCancel",r)}},{key:"endTouchMove",value:function(){this.props.touchEnabled&&this.fakeOnDragEnd()}},{key:"renderMasterSpinner",value:function(){var r=this.props,n=r.hasMasterSpinner,i=r.masterSpinnerFinished,a=r.spinner;return n&&!i?("function"==typeof this.props.onMasterSpinner&&this.props.onMasterSpinner(),o.createElement("div",{className:T([e$.masterSpinnerContainer,"carousel__master-spinner-container"])},a&&a(),!a&&o.createElement(eL,null))):null}},{key:"render",value:function(){var r=this,n=this.props,i=n.ariaLabel,a=(n.carouselStore,
232n.children),s=n.className,l=n.classNameAnimation,c=n.classNameTray,u=n.classNameTrayWrap,d=n.currentSlide,p=n.disableAnimation,f=(n.disableKeyboard,n.dragEnabled,n.hasMasterSpinner,n.interval,n.isPageScrollLocked,n.isPlaying,n.lockOnWindowScroll,n.masterSpinnerFinished,n.moveThreshold,n.naturalSlideHeight),m=n.naturalSlideWidth,v=(n.onMasterSpinner,n.orientation),y=(n.playDirection,n.privateUnDisableAnimation,n.slideSize),b=n.slideTraySize,x=(n.spinner,n.style),_=(n.totalSlides,n.touchEnabled),w=n.trayProps,S=n.trayTag,k=n.visibleSlides,C=n.isIntrinsicHeight,P=g(n,eG),O=h({},x),j={};"vertical"===v&&(j.height=0,j.paddingBottom=E(100*f*k/m),j.width=E(100));var A={},M=E(-(y*d*1));(this.state.isBeingTouchDragged||this.state.isBeingMouseDragged||p)&&(A.transition="none"),C&&(A.display="flex",A.alignItems="stretch"),"vertical"===v?(A.transform="translateY(".concat(M,") translateY(").concat(this.state.deltaY,"px)"),A.width=E(100),A.flexDirection="column"):(A.width=E(b),A.transform="translateX(".concat(M,") translateX(").concat(this.state.deltaX,"px)"),A.flexDirection="row");var I=T(["vertical"===v?e$.verticalSlider:e$.horizontalSlider,!_&&e$.touchDisabled,"carousel__slider","vertical"===v?"carousel__slider--vertical":"carousel__slider--horizontal",s]),Z=T([e$.sliderTrayWrap,"carousel__slider-tray-wrapper","vertical"===v?e$.verticalSlideTrayWrap:e$.horizontalTrayWrap,"vertical"===v?"carousel__slider-tray-wrap--vertical":"carousel__slider-tray-wrap--horizontal",u]),R=T([e$.sliderTray,l||e$.sliderAnimation,"carousel__slider-tray","vertical"===v?e$.verticalTray:e$.horizontalTray,"vertical"===v?"carousel__slider-tray--vertical":"carousel__slider-tray--horizontal",c]),D=(P.dragStep,P.step,P.infinite,P.preventVerticalScrollOnTouch,P.preventingVerticalScroll,P.horizontalPixelThreshold,P.verticalPixelThreshold,g(P,eW)),L=(w.className,w.onClickCapture,w.onMouseDown,w.onTouchCancel,w.onTouchEnd,w.onTouchMove,w.onTouchStart,w.ref,w.style,g(w,eH));return o.createElement("div",h({ref:function(n){r.sliderElement=n},className:I,"aria-live":"polite","aria-label":i,role:this.props.role,style:O,onKeyDown:this.handleOnKeyDown},D),o.createElement("div",{className:Z,style:j},o.createElement(S,h({ref:this.getSliderRef,className:R,style:A,onTouchStart:this.handleOnTouchStart,onTouchMove:this.handleOnTouchMove,onTouchEnd:this.handleOnTouchEnd,onTouchCancel:this.handleOnTouchCancel,onMouseDown:this.handleOnMouseDown,onClickCapture:this.handleOnClickCapture},L),a),this.renderMasterSpinner()))}}],[{key:"slideSizeInPx",value:function(r,n,i,o){return("horizontal"===r?n:i)/o}},{key:"slidesMoved",value:function(r,n,i,o,a,s){var l="horizontal"===n?i:o,c=Math.abs(Math.round(l/a)),u=Math.max(Math.abs(l)>=a*r?s:0,c);if(l<0)return u;var d=-u;return 0===d?0:d}}]),n}(o.Component),"propTypes",{ariaLabel:Z.string,carouselStore:Z.object.isRequired,children:Z.node.isRequired,className:Z.string,classNameAnimation:Z.string,classNameTray:Z.string,classNameTrayWrap:Z.string,currentSlide:Z.number.isRequired,disableAnimation:Z.bool,disableKeyboard:Z.bool,dragEnabled:Z.bool.isRequired,dragStep:Z.number,hasMasterSpinner:Z.bool.isRequired,infinite:Z.bool,interval:Z.number.isRequired,isPageScrollLocked:Z.bool.isRequired,isPlaying:Z.bool.isRequired,lockOnWindowScroll:Z.bool.isRequired,preventVerticalScrollOnTouch:Z.bool,horizontalPixelThreshold:Z.number,verticalPixelThreshold:Z.number,masterSpinnerFinished:Z.bool.isRequired,moveThreshold:Z.number,naturalSlideHeight:Z.number.isRequired,naturalSlideWidth:Z.number.isRequired,onMasterSpinner:Z.func,orientation:z.orientation.isRequired,playDirection:z.direction.isRequired,privateUnDisableAnimation:Z.bool,role:Z.string,slideSize:Z.number.isRequired,slideTraySize:Z.number.isRequired,spinner:Z.func,step:Z.number.isRequired,style:Z.object,totalSlides:Z.number.isRequired,touchEnabled:Z.bool.isRequired,trayProps:Z.shape({className:Z.string,onClickCapture:Z.func,onMouseDown:Z.func,onTouchCancel:Z.func,onTouchEnd:Z.func,onTouchMove:Z.func,onTouchStart:Z.func,ref:Z.shape({}),style:Z.string}),trayTag:Z.string,visibleSlides:Z.number,isIntrinsicHeight:Z.bool}),d(eI,"defaultProps",{ariaLabel:"slider",className:null,classNameAnimation:null,classNameTray:null,classNameTrayWrap:null,disableAnimation:!1,disableKeyboard:!1,dragStep:1,infinite:!1,preventVerticalScrollOnTouch:!0,horizontalPixelThreshold:15,verticalPixelThreshold:10,moveThreshold:.1,onMasterSpinner:null,privateUnDisableAnimation:!1,role:"listbox",spinner:null,style:{},trayProps:{},trayTag:"div",visibleSlides:1,isIntrinsicHeight:!1}),eI),function(r){return{currentSlide:r.currentSlide,disableAnimation:r.disableAnimation,privateUnDisableAnimation:r.privateUnDisableAnimation,disableKeyboard:r.disableKeyboard,dragEnabled:r.dragEnabled,hasMasterSpinner:r.hasMasterSpinner,infinite:r.infinite,interval:r.interval,isPageScrollLocked:r.isPageScrollLocked,isPlaying:r.isPlaying,lockOnWindowScroll:r.lockOnWindowScroll,preventingVerticalScroll:r.preventingVerticalScroll,masterSpinnerFinished:r.masterSpinnerFinished,naturalSlideHeight:r.naturalSlideHeight,naturalSlideWidth:r.naturalSlideWidth,orientation:r.orientation,playDirection:r.playDirection,slideSize:r.slideSize,slideTraySize:r.slideTraySize,step:r.step,dragStep:r.dragStep,totalSlides:r.totalSlides,touchEnabled:r.touchEnabled,visibleSlides:r.visibleSlides,isIntrinsicHeight:r.isIntrinsicHeight}})},17563:function(r,n,i){"use strict";let o=i(70610),a=i(44020),s=i(80500),l=i(92806),c=r=>null==r,u=Symbol("encodeFragmentIdentifier");function d(r){if("string"!=typeof r||1!==r.length)throw TypeError("arrayFormatSeparator must be single character string")}function h(r,n){return n.encode?n.strict?o(r):encodeURIComponent(r):r}function p(r,n){return n.decode?a(r):r}function f(r){let n=r.indexOf("#");return -1!==n&&(r=r.slice(0,n)),r}function m(r){r=f(r);let n=r.indexOf("?");return -1===n?"":r.slice(n+1)}function g(r,n){return n.parseNumbers&&!Number.isNaN(Number(r))&&"string"==typeof r&&""!==r.trim()?r=Number(r):n.parseBooleans&&null!==r&&("true"===r.toLowerCase()||"false"===r.toLowerCase())&&(r="true"===r.toLowerCase()),r}function v(r,n){d((n=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},n)).arrayFormatSeparator);let i=function(r){let n;switch(r.arrayFormat){case"index":return(r,i,o)=>
232{if(n=/\[(\d*)\]$/.exec(r),r=r.replace(/\[\d*\]$/,""),!n){o[r]=i;return}void 0===o[r]&&(o[r]={}),o[r][n[1]]=i};case"bracket":return(r,i,o)=>{if(n=/(\[\])$/.exec(r),r=r.replace(/\[\]$/,""),!n){o[r]=i;return}if(void 0===o[r]){o[r]=[i];return}o[r]=[].concat(o[r],i)};case"colon-list-separator":return(r,i,o)=>{if(n=/(:list)$/.exec(r),r=r.replace(/:list$/,""),!n){o[r]=i;return}if(void 0===o[r]){o[r]=[i];return}o[r]=[].concat(o[r],i)};case"comma":case"separator":return(n,i,o)=>{let a="string"==typeof i&&i.includes(r.arrayFormatSeparator),s="string"==typeof i&&!a&&p(i,r).includes(r.arrayFormatSeparator);i=s?p(i,r):i;let l=a||s?i.split(r.arrayFormatSeparator).map(n=>p(n,r)):null===i?i:p(i,r);o[n]=l};case"bracket-separator":return(n,i,o)=>{let a=/(\[\])$/.test(n);if(n=n.replace(/\[\]$/,""),!a){o[n]=i?p(i,r):i;return}let s=null===i?[]:i.split(r.arrayFormatSeparator).map(n=>p(n,r));if(void 0===o[n]){o[n]=s;return}o[n]=[].concat(o[n],s)};default:return(r,n,i)=>{if(void 0===i[r]){i[r]=n;return}i[r]=[].concat(i[r],n)}}}(n),o=Object.create(null);if("string"!=typeof r||!(r=r.trim().replace(/^[?#&]/,"")))return o;for(let a of r.split("&")){if(""===a)continue;let[r,l]=s(n.decode?a.replace(/\+/g," "):a,"=");l=void 0===l?null:["comma","separator","bracket-separator"].includes(n.arrayFormat)?l:p(l,n),i(p(r,n),l,o)}for(let r of Object.keys(o)){let i=o[r];if("object"==typeof i&&null!==i)for(let r of Object.keys(i))i[r]=g(i[r],n);else o[r]=g(i,n)}return!1===n.sort?o:(!0===n.sort?Object.keys(o).sort():Object.keys(o).sort(n.sort)).reduce((r,n)=>{let i=o[n];return Boolean(i)&&"object"==typeof i&&!Array.isArray(i)?r[n]=function r(n){return Array.isArray(n)?n.sort():"object"==typeof n?r(Object.keys(n)).sort((r,n)=>Number(r)-Number(n)).map(r=>n[r]):n}(i):r[n]=i,r},Object.create(null))}n.extract=m,n.parse=v,n.stringify=(r,n)=>{if(!r)return"";d((n=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},n)).arrayFormatSeparator);let i=i=>n.skipNull&&c(r[i])||n.skipEmptyString&&""===r[i],o=function(r){switch(r.arrayFormat){case"index":return n=>(i,o)=>{let a=i.length;return void 0===o||r.skipNull&&null===o||r.skipEmptyString&&""===o?i:null===o?[...i,[h(n,r),"[",a,"]"].join("")]:[...i,[h(n,r),"[",h(a,r),"]=",h(o,r)].join("")]};case"bracket":return n=>(i,o)=>void 0===o||r.skipNull&&null===o||r.skipEmptyString&&""===o?i:null===o?[...i,[h(n,r),"[]"].join("")]:[...i,[h(n,r),"[]=",h(o,r)].join("")];case"colon-list-separator":return n=>(i,o)=>void 0===o||r.skipNull&&null===o||r.skipEmptyString&&""===o?i:null===o?[...i,[h(n,r),":list="].join("")]:[...i,[h(n,r),":list=",h(o,r)].join("")];case"comma":case"separator":case"bracket-separator":{let n="bracket-separator"===r.arrayFormat?"[]=":"=";return i=>(o,a)=>void 0===a||r.skipNull&&null===a||r.skipEmptyString&&""===a?o:(a=null===a?"":a,0===o.length)?[[h(i,r),n,h(a,r)].join("")]:[[o,h(a,r)].join(r.arrayFormatSeparator)]}default:return n=>(i,o)=>void 0===o||r.skipNull&&null===o||r.skipEmptyString&&""===o?i:null===o?[...i,h(n,r)]:[...i,[h(n,r),"=",h(o,r)].join("")]}}(n),a={};for(let n of Object.keys(r))i(n)||(a[n]=r[n]);let s=Object.keys(a);return!1!==n.sort&&s.sort(n.sort),s.map(i=>{let a=r[i];return void 0===a?"":null===a?h(i,n):Array.isArray(a)?0===a.length&&"bracket-separator"===n.arrayFormat?h(i,n)+"[]":a.reduce(o(i),[]).join("&"):h(i,n)+"="+h(a,n)}).filter(r=>r.length>0).join("&")},n.parseUrl=(r,n)=>{n=Object.assign({decode:!0},n);let[i,o]=s(r,"#");return Object.assign({url:i.split("?")[0]||"",query:v(m(r),n)},n&&n.parseFragmentIdentifier&&o?{fragmentIdentifier:p(o,n)}:{})},n.stringifyUrl=(r,i)=>{i=Object.assign({encode:!0,strict:!0,[u]:!0},i);let o=f(r.url).split("?")[0]||"",a=n.extract(r.url),s=n.parse(a,{sort:!1}),l=Object.assign(s,r.query),c=n.stringify(l,i);c&&(c=`?${c}`);let d=function(r){let n="",i=r.indexOf("#");return -1!==i&&(n=r.slice(i)),n}(r.url);return r.fragmentIdentifier&&(d=`#${i[u]?h(r.fragmentIdentifier,i):r.fragmentIdentifier}`),`${o}${c}${d}`},n.pick=(r,i,o)=>{o=Object.assign({parseFragmentIdentifier:!0,[u]:!1},o);let{url:a,query:s,fragmentIdentifier:c}=n.parseUrl(r,o);return n.stringifyUrl({url:a,query:l(s,i),fragmentIdentifier:c},o)},n.exclude=(r,i,o)=>{let a=Array.isArray(i)?r=>!i.includes(r):(r,n)=>!i(r,n);return n.pick(r,a,o)}},86995:function(r,n,i){var o,a;o=[n,i(8532)],void 0!==(a=(function(r,n){"use strict";
232Object.defineProperty(r,"__esModule",{value:!0});var i=n&&n.__esModule?n:{default:n};r.default=i.default}).apply(n,o))&&(r.exports=a)},8532:function(r,n,i){var o,a;o=[n,i(67294),i(45697)],void 0!==(a=(function(r,n,i){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.setHasSupportToCaptureOption=function(r){u=r};var o=s(n),a=s(i);function s(r){return r&&r.__esModule?r:{default:r}}var l=Object.assign||function(r){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])}return r},c=function(){function r(r,n){for(var i=0;i<n.length;i++){var o=n[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(r,o.key,o)}}return function(n,i,o){return i&&r(n.prototype,i),o&&r(n,o),n}}(),u=!1;try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){u=!0}}))}catch(r){}function d(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{capture:!0};return u?r:r.capture}function h(r){if("touches"in r){var n=r.touches[0];return{x:n.pageX,y:n.pageY}}return{x:r.screenX,y:r.screenY}}var p=function(r){function n(){!function(r,n){if(!(r instanceof n))throw TypeError("Cannot call a class as a function")}(this,n);for(var r,i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];var s=function(r,n){if(!r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&("object"==typeof n||"function"==typeof n)?n:r}(this,(r=n.__proto__||Object.getPrototypeOf(n)).call.apply(r,[this].concat(o)));return s._handleSwipeStart=s._handleSwipeStart.bind(s),s._handleSwipeMove=s._handleSwipeMove.bind(s),s._handleSwipeEnd=s._handleSwipeEnd.bind(s),s._onMouseDown=s._onMouseDown.bind(s),s._onMouseMove=s._onMouseMove.bind(s),s._onMouseUp=s._onMouseUp.bind(s),s._setSwiperRef=s._setSwiperRef.bind(s),s}return function(r,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function, not "+typeof n);r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(r,n):r.__proto__=n)}(n,r),c(n,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,d({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,d({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function(r){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(r))}},{key:"_onMouseMove",value:function(r){this.mouseDown&&this._handleSwipeMove(r)}},{key:"_onMouseUp",value:function(r){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(r)}},{key:"_handleSwipeStart",value:function(r){var n=h(r),i=n.x,o=n.y;this.moveStart={x:i,y:o},this.props.onSwipeStart(r)}},{key:"_handleSwipeMove",value:function(r){if(this.moveStart){var n=h(r),i=n.x,o=n.y,a=i-this.moveStart.x,s=o-this.moveStart.y;this.moving=!0,this.props.onSwipeMove({x:a,y:s},r)&&r.cancelable&&r.preventDefault(),this.movePosition={deltaX:a,deltaY:s}}}},{key:"_handleSwipeEnd",value:function(r){this.props.onSwipeEnd(r);var n=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-n?this.props.onSwipeLeft(1,r):this.movePosition.deltaX>n&&this.props.onSwipeRight(1,r),this.movePosition.deltaY<-n?this.props.onSwipeUp(1,r):this.movePosition.deltaY>n&&this.props.onSwipeDown(1,r)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(r){this.swiper=r,this.props.innerRef(r)}},{key:"render",value:function(){var r=this.props,n=(r.tagName,r.className),i=r.style,a=r.children,s=(r.allowMouseEvents,r.onSwipeUp,r.onSwipeDown,r.onSwipeLeft,r.onSwipeRight,r.onSwipeStart,r.onSwipeMove,r.onSwipeEnd,r.innerRef,r.tolerance,function(r,n){var i={};for(var o in r)!(n.indexOf(o)>=0)&&Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o]);return i}(r,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]));return o.default.createElement(this.props.tagName,l({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:n,style:i},s),a)}}]),n}(n.Component);p.displayName="ReactSwipe",p.propTypes={tagName:a.default.string,className:a.default.string,style:a.default.object,children:a.default.node,allowMouseEvents:a.default.bool,onSwipeUp:a.default.func,onSwipeDown:a.default.func,onSwipeLeft:a.default.func,onSwipeRight:a.default.func,onSwipeStart:a.default.func,onSwipeMove:a.default.func,onSwipeEnd:a.default.func,innerRef:a.default.func,tolerance:a.default.number.isRequired},p.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},r.default=p}).apply(n,o))&&(r.exports=a)},69590:function(r){"use strict";var n=Array.isArray,i=Object.keys,o=Object.prototype.hasOwnProperty,a="undefined"!=typeof Element;r.exports=function(r,s){try{return function r(s,l){if(s===l)return!0;
232if(s&&l&&"object"==typeof s&&"object"==typeof l){var c,u,d,h=n(s),p=n(l);if(h&&p){if((u=s.length)!=l.length)return!1;for(c=u;0!=c--;)if(!r(s[c],l[c]))return!1;return!0}if(h!=p)return!1;var f=s instanceof Date,m=l instanceof Date;if(f!=m)return!1;if(f&&m)return s.getTime()==l.getTime();var g=s instanceof RegExp,v=l instanceof RegExp;if(g!=v)return!1;if(g&&v)return s.toString()==l.toString();var y=i(s);if((u=y.length)!==i(l).length)return!1;for(c=u;0!=c--;)if(!o.call(l,y[c]))return!1;if(a&&s instanceof Element&&l instanceof Element)return s===l;for(c=u;0!=c--;)if(("_owner"!==(d=y[c])||!s.$$typeof)&&!r(s[d],l[d]))return!1;return!0}return s!=s&&l!=l}(r,s)}catch(r){if(r.message&&r.message.match(/stack|recursion/i)||-2146828260===r.number)return console.warn("Warning: react-fast-compare does not handle circular references.",r.name,r.message),!1;throw r}}},34853:function(r,n,i){"use strict";i.d(n,{Z:function(){return b}});var o,a,s=i(67294),l=i(45697),c=i.n(l);function u(){return(u=Object.assign||function(r){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])}return r}).apply(this,arguments)}function d(r){if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}var h=function(r){function n(){var n;return(n=r.call(this)||this).handleExpired=n.handleExpired.bind(d(n)),n.handleErrored=n.handleErrored.bind(d(n)),n.handleChange=n.handleChange.bind(d(n)),n.handleRecaptchaRef=n.handleRecaptchaRef.bind(d(n)),n}(i=n).prototype=Object.create(r.prototype),i.prototype.constructor=i,i.__proto__=r;var i,o=n.prototype;return o.getValue=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this.props.grecaptcha.getResponse(this._widgetId):null},o.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},o.execute=function(){var r=this.props.grecaptcha;if(r&&void 0!==this._widgetId)return r.execute(this._widgetId);this._executeRequested=!0},o.executeAsync=function(){var r=this;return new Promise(function(n,i){r.executionResolve=n,r.executionReject=i,r.execute()})},o.reset=function(){this.props.grecaptcha&&void 0!==this._widgetId&&this.props.grecaptcha.reset(this._widgetId)},o.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},o.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},o.handleChange=function(r){this.props.onChange&&this.props.onChange(r),this.executionResolve&&(this.executionResolve(r),delete this.executionReject,delete this.executionResolve)},o.explicitRender=function(){if(this.props.grecaptcha&&this.props.grecaptcha.render&&void 0===this._widgetId){var r=document.createElement("div");this._widgetId=this.props.grecaptcha.render(r,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge}),this.captcha.appendChild(r)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},o.componentDidMount=function(){this.explicitRender()},o.componentDidUpdate=function(){this.explicitRender()},o.componentWillUnmount=function(){void 0!==this._widgetId&&(this.delayOfCaptchaIframeRemoving(),this.reset())},o.delayOfCaptchaIframeRemoving=function(){var r=document.createElement("div");for(document.body.appendChild(r),r.style.display="none";this.captcha.firstChild;)r.appendChild(this.captcha.firstChild);setTimeout(function(){document.body.removeChild(r)},5e3)},o.handleRecaptchaRef=function(r){this.captcha=r},o.render=function(){var r=this.props,n=(r.sitekey,r.onChange,r.theme,r.type,r.tabindex,r.onExpired,r.onErrored,r.size,r.stoken,r.grecaptcha,r.badge,r.hl,function(r,n){if(null==r)return{};var i,o,a={},s=Object.keys(r);for(o=0;o<s.length;o++)n.indexOf(i=s[o])>=0||(a[i]=r[i]);return a}(r,["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl"]));return s.createElement("div",u({},n,{ref:this.handleRecaptchaRef}))},n}(s.Component);h.displayName="ReCAPTCHA",h.propTypes={sitekey:c().string.isRequired,onChange:c().func,grecaptcha:c().object,theme:c().oneOf(["dark","light"]),type:c().oneOf(["image","audio"]),tabindex:c().number,onExpired:c().func,onErrored:c().func,size:c().oneOf(["compact","normal","invisible"]),stoken:c().string,hl:c().string,badge:c().oneOf(["bottomright","bottomleft","inline"])}
232,h.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var p=i(8679),f=i.n(p);function m(){return(m=Object.assign||function(r){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])}return r}).apply(this,arguments)}var g={},v=0,y="onloadcallback",b=(o=function(){return"https://"+(("undefined"!=typeof window&&window.recaptchaOptions||{}).useRecaptchaNet?"recaptcha.net":"www.google.com")+"/recaptcha/api.js?onload="+y+"&render=explicit"},a=(a={callbackName:y,globalName:"grecaptcha"})||{},function(r){var n=r.displayName||r.name||"Component",i=function(n){function i(r,i){var o;return(o=n.call(this,r,i)||this).state={},o.__scriptURL="",o}(l=i).prototype=Object.create(n.prototype),l.prototype.constructor=l,l.__proto__=n;var l,c=i.prototype;return c.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+v++),this.__scriptLoaderID},c.setupScriptURL=function(){return this.__scriptURL=0?o:o(),this.__scriptURL},c.asyncScriptLoaderHandleLoad=function(r){var n=this;this.setState(r,function(){return n.props.asyncScriptOnLoad&&n.props.asyncScriptOnLoad(n.state)})},c.asyncScriptLoaderTriggerOnScriptLoaded=function(){var r=g[this.__scriptURL];if(!r||!r.loaded)throw Error("Script is not loaded.");for(var n in r.observers)r.observers[n](r);delete window[a.callbackName]},c.componentDidMount=function(){var r=this,n=this.setupScriptURL(),i=this.asyncScriptLoaderGetScriptLoaderID(),o=a,s=o.globalName,l=o.callbackName,c=o.scriptId;if(s&&void 0!==window[s]&&(g[n]={loaded:!0,observers:{}}),g[n]){var u=g[n];if(u&&(u.loaded||u.errored)){this.asyncScriptLoaderHandleLoad(u);return}u.observers[i]=function(n){return r.asyncScriptLoaderHandleLoad(n)};return}var d={};d[i]=function(n){return r.asyncScriptLoaderHandleLoad(n)},g[n]={loaded:!1,observers:d};var h=document.createElement("script");for(var p in h.src=n,h.async=!0,a.attributes)h.setAttribute(p,a.attributes[p]);c&&(h.id=c);var f=function(r){if(g[n]){var i=g[n].observers;for(var o in i)r(i[o])&&delete i[o]}};l&&"undefined"!=typeof window&&(window[l]=function(){return r.asyncScriptLoaderTriggerOnScriptLoaded()}),h.onload=function(){var r=g[n];r&&(r.loaded=!0,f(function(n){return!l&&(n(r),!0)}))},h.onerror=function(){var r=g[n];r&&(r.errored=!0,f(function(n){return n(r),!0}))},document.body.appendChild(h)},c.componentWillUnmount=function(){var r=this.__scriptURL;if(!0===a.removeOnUnmount)for(var n=document.getElementsByTagName("script"),i=0;i<n.length;i+=1)n[i].src.indexOf(r)>-1&&n[i].parentNode&&n[i].parentNode.removeChild(n[i]);var o=g[r];o&&(delete o.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===a.removeOnUnmount&&delete g[r])},c.render=function(){var n=a.globalName,i=this.props,o=(i.asyncScriptOnLoad,i.forwardedRef),l=function(r,n){if(null==r)return{};var i,o,a={},s=Object.keys(r);for(o=0;o<s.length;o++)n.indexOf(i=s[o])>=0||(a[i]=r[i]);return a}(i,["asyncScriptOnLoad","forwardedRef"]);return n&&"undefined"!=typeof window&&(l[n]=void 0!==window[n]?window[n]:void 0),l.ref=o,(0,s.createElement)(r,l)},i}(s.Component),l=(0,s.forwardRef)(function(r,n){return(0,s.createElement)(i,m({},r,{forwardedRef:n}))});return l.displayName="AsyncScriptLoader("+n+")",l.propTypes={asyncScriptOnLoad:c().func},f()(l,r)})(h)},69921:function(r,n){"use strict";Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen"),Symbol.for("react.module.reference")},59864:function(r,n,i){"use strict";i(69921)},72679:function(r,n,i){(()=>{var n={181:(r,n,i)=>{var o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt,u="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g,d="object"==typeof self&&self&&self.Object===Object&&self,h=u||d||Function("return this")(),p=Object.prototype.toString,f=Math.max,m=Math.min,g=function(){return h.Date.now()};function v(r){var n=typeof r;return!!r&&("object"==n||"function"==n)}function y(r){if("number"==typeof r)return r;if("symbol"==typeof(n=r)||n&&"object"==typeof n&&"[object Symbol]"==p.call(n))return NaN;if(v(r)){var n,i="function"==typeof r.valueOf?r.valueOf():r;r=v(i)?i+"":i}if("string"!=typeof r)return 0===r?r:+r;r=r.replace(o,"");var u=s.test(r);return u||l.test(r)?c(r.slice(2),u?2:8):a.test(r)?NaN:+r}r.exports=function(r,n,i){var o,a,s,l,c,u,d=0,h=!1,p=!1,b=!0;if("function"!=typeof r)throw TypeError("Expected a function");function x(n){var i=o,s=a;return o=a=void 0,d=n,l=r.apply(s,i)}function _(r){var i=r-u;return void 0===u||i>=n||i<0||p&&r-d>=s}function w(){var r,i=g();if(_(i))return S(i);c=setTimeout(w,(r=n-(i-u),p?m(r,s-(i-d)):r))}function S(r){return c=void 0,b&&o?x(r):(o=a=void 0,l)}function T(){var r,i=g(),s=_(i);
232if(o=arguments,a=this,u=i,s){if(void 0===c)return d=r=u,c=setTimeout(w,n),h?x(r):l;if(p)return c=setTimeout(w,n),x(u)}return void 0===c&&(c=setTimeout(w,n)),l}return n=y(n)||0,v(i)&&(h=!!i.leading,s=(p="maxWait"in i)?f(y(i.maxWait)||0,n):s,b="trailing"in i?!!i.trailing:b),T.cancel=function(){void 0!==c&&clearTimeout(c),d=0,o=u=a=c=void 0},T.flush=function(){return void 0===c?l:S(g())},T}},858:(r,n,i)=>{var o="Expected a function",a=NaN,s=/^\s+|\s+$/g,l=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,u=/^0o[0-7]+$/i,d=parseInt,h="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g,p="object"==typeof self&&self&&self.Object===Object&&self,f=h||p||Function("return this")(),m=Object.prototype.toString,g=Math.max,v=Math.min,y=function(){return f.Date.now()};function b(r){var n=typeof r;return!!r&&("object"==n||"function"==n)}function x(r){if("number"==typeof r)return r;if("symbol"==typeof(n=r)||n&&"object"==typeof n&&"[object Symbol]"==m.call(n))return a;if(b(r)){var n,i="function"==typeof r.valueOf?r.valueOf():r;r=b(i)?i+"":i}if("string"!=typeof r)return 0===r?r:+r;r=r.replace(s,"");var o=c.test(r);return o||u.test(r)?d(r.slice(2),o?2:8):l.test(r)?a:+r}r.exports=function(r,n,i){var a=!0,s=!0;if("function"!=typeof r)throw TypeError(o);return b(i)&&(a="leading"in i?!!i.leading:a,s="trailing"in i?!!i.trailing:s),function(r,n,i){var a,s,l,c,u,d,h=0,p=!1,f=!1,m=!0;if("function"!=typeof r)throw TypeError(o);function _(n){var i=a,o=s;return a=s=void 0,h=n,c=r.apply(o,i)}function w(r){var i=r-d;return void 0===d||i>=n||i<0||f&&r-h>=l}function S(){var r,i=y();if(w(i))return T(i);u=setTimeout(S,(r=n-(i-d),f?v(r,l-(i-h)):r))}function T(r){return u=void 0,m&&a?_(r):(a=s=void 0,c)}function E(){var r,i=y(),o=w(i);if(a=arguments,s=this,d=i,o){if(void 0===u)return h=r=d,u=setTimeout(S,n),p?_(r):c;if(f)return u=setTimeout(S,n),_(d)}return void 0===u&&(u=setTimeout(S,n)),c}return n=x(n)||0,b(i)&&(p=!!i.leading,l=(f="maxWait"in i)?g(x(i.maxWait)||0,n):l,m="trailing"in i?!!i.trailing:m),E.cancel=function(){void 0!==u&&clearTimeout(u),h=0,a=d=s=u=void 0},E.flush=function(){return void 0===u?c:T(y())},E}(r,n,{leading:a,maxWait:n,trailing:s})}},694:(r,n,i)=>{"use strict";var o=i(925);function a(){}function s(){}s.resetWarningCache=a,r.exports=function(){function r(r,n,i,a,s,l){if(l!==o){var c=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function n(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:n,element:r,elementType:r,instanceOf:n,node:r,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:s,resetWarningCache:a};return i.PropTypes=i,i}},556:(r,n,i)=>{r.exports=i(694)()},925:r=>{"use strict";r.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},o={};function a(r){var i=o[r];if(void 0!==i)return i.exports;var s=o[r]={exports:{}};return n[r](s,s.exports,a),s.exports}a.n=r=>{var n=r&&r.__esModule?()=>r.default:()=>r;return a.d(n,{a:n}),n},a.d=(r,n)=>{for(var i in n)a.o(n,i)&&!a.o(r,i)&&Object.defineProperty(r,i,{enumerable:!0,get:n[i]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(r){if("object"==typeof window)return window}}(),a.o=(r,n)=>Object.prototype.hasOwnProperty.call(r,n),a.r=r=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})};var s={};(()=>{"use strict";a.r(s),a.d(s,{LazyLoadComponent:()=>$,LazyLoadImage:()=>er,trackWindowScroll:()=>I});let r=i(67294);var n=a.n(r),o=a(556);function l(){return"undefined"!=typeof window&&"IntersectionObserver"in window&&"isIntersecting"in window.IntersectionObserverEntry.prototype}function c(r){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}function u(r,n){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),i.push.apply(i,o)}return i}function d(r){var n=function(r,n){if("object"!=c(r)||!r)return r;var i=r[Symbol.toPrimitive];if(void 0!==i){var o=i.call(r,"string");if("object"!=c(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return String(r)}(r);return"symbol"==c(n)?n:n+""}function h(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(h=function(){return!!r})()}
232function p(r){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)})(r)}function f(r,n){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r})(r,n)}var m=function(r){r.forEach(function(r){r.isIntersecting&&r.target.onVisible()})},g={},v=function(r){var i;function o(r){if(function(r,n){if(!(r instanceof n))throw TypeError("Cannot call a class as a function")}(this,o),(i=o,a=[r],i=p(i),n=function(r,n){if(n&&("object"==c(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(r){if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(r)}(this,h()?Reflect.construct(i,a||[],p(this).constructor):i.apply(this,a))).supportsObserver=!r.scrollPosition&&r.useIntersectionObserver&&l(),n.supportsObserver){var n,i,a,s=r.threshold;n.observer=(g[s]=g[s]||new IntersectionObserver(m,{rootMargin:s+"px"}),g[s])}return n}return function(r,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),n&&f(r,n)}(o,r),i=[{key:"componentDidMount",value:function(){this.placeholder&&this.observer&&(this.placeholder.onVisible=this.props.onVisible,this.observer.observe(this.placeholder)),this.supportsObserver||this.updateVisibility()}},{key:"componentWillUnmount",value:function(){this.observer&&this.placeholder&&this.observer.unobserve(this.placeholder)}},{key:"componentDidUpdate",value:function(){this.supportsObserver||this.updateVisibility()}},{key:"getPlaceholderBoundingBox",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.scrollPosition,n=this.placeholder.getBoundingClientRect(),i=this.placeholder.style,o=parseInt(i.getPropertyValue("margin-left"),10)||0,a=parseInt(i.getPropertyValue("margin-top"),10)||0;return{bottom:r.y+n.bottom+a,left:r.x+n.left+o,right:r.x+n.right+o,top:r.y+n.top+a}}},{key:"isPlaceholderInViewport",value:function(){if("undefined"==typeof window||!this.placeholder)return!1;var r=this.props,n=r.scrollPosition,i=r.threshold,o=this.getPlaceholderBoundingBox(n),a=n.y+window.innerHeight,s=n.x,l=n.x+window.innerWidth;return Boolean(n.y-i<=o.bottom&&a+i>=o.top&&s-i<=o.right&&l+i>=o.left)}},{key:"updateVisibility",value:function(){this.isPlaceholderInViewport()&&this.props.onVisible()}},{key:"render",value:function(){var r=this,i=this.props,o=i.className,a=i.height,s=i.placeholder,l=i.style,c=i.width;if(s&&"function"!=typeof s.type)return n().cloneElement(s,{ref:function(n){return r.placeholder=n}});var h=function(r){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?u(Object(i),!0).forEach(function(n){var o,a,s;o=r,a=n,s=i[n],(a=d(a))in o?Object.defineProperty(o,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[a]=s}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):u(Object(i)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(i,n))})}return r}({display:"inline-block"},l);return void 0!==c&&(h.width=c),void 0!==a&&(h.height=a),n().createElement("span",{className:o,ref:function(n){return r.placeholder=n},style:h},s)}}],function(r,n){for(var i=0;i<n.length;i++){var o=n[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(r,d(o.key),o)}}(o.prototype,i),Object.defineProperty(o,"prototype",{writable:!1}),o}(n().Component);v.propTypes={onVisible:o.PropTypes.func.isRequired,className:o.PropTypes.string,height:o.PropTypes.oneOfType([o.PropTypes.number,o.PropTypes.string]),placeholder:o.PropTypes.element,threshold:o.PropTypes.number,useIntersectionObserver:o.PropTypes.bool,scrollPosition:o.PropTypes.shape({x:o.PropTypes.number.isRequired,y:o.PropTypes.number.isRequired}),width:o.PropTypes.oneOfType([o.PropTypes.number,o.PropTypes.string])},v.defaultProps={className:"",placeholder:null,threshold:100,useIntersectionObserver:!0};var y=a(181),b=a.n(y),x=a(858),_=a.n(x),w=function(r){var n=getComputedStyle(r,null);return n.getPropertyValue("overflow")+n.getPropertyValue("overflow-y")+n.getPropertyValue("overflow-x")};let S=function(r){if(!(r instanceof HTMLElement))return window;for(var n=r;n&&n instanceof HTMLElement;){if(/(scroll|auto)/.test(w(n)))return n;n=n.parentNode}return window}
232;function T(r){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}var E=["delayMethod","delayTime"];function k(){return(k=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var o in i)({}).hasOwnProperty.call(i,o)&&(r[o]=i[o])}return r}).apply(null,arguments)}function C(r,n){if(n&&("object"==T(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(r){if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(r)}function P(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(P=function(){return!!r})()}function O(r){return(O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)})(r)}function j(r,n){return(j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r})(r,n)}var A=function(){return"undefined"==typeof window?0:window.scrollX||window.pageXOffset},M=function(){return"undefined"==typeof window?0:window.scrollY||window.pageYOffset};let I=function(r){var i=function(i){var o;function a(r){if(function(r,n){if(!(r instanceof n))throw TypeError("Cannot call a class as a function")}(this,a),(i=a,o=[r],i=O(i),s=C(this,P()?Reflect.construct(i,o||[],O(this).constructor):i.apply(this,o))).useIntersectionObserver=r.useIntersectionObserver&&l(),s.useIntersectionObserver)return C(s);var i,o,s,c=s.onChangeScroll.bind(s);return"debounce"===r.delayMethod?s.delayedScroll=b()(c,r.delayTime):"throttle"===r.delayMethod&&(s.delayedScroll=_()(c,r.delayTime)),s.state={scrollPosition:{x:A(),y:M()}},s.baseComponentRef=n().createRef(),s}return function(r,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),n&&j(r,n)}(a,i),o=[{key:"componentDidMount",value:function(){this.addListeners()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"componentDidUpdate",value:function(){"undefined"==typeof window||this.useIntersectionObserver||S(this.baseComponentRef.current)!==this.scrollElement&&(this.removeListeners(),this.addListeners())}},{key:"addListeners",value:function(){"undefined"==typeof window||this.useIntersectionObserver||(this.scrollElement=S(this.baseComponentRef.current),this.scrollElement.addEventListener("scroll",this.delayedScroll,{passive:!0}),window.addEventListener("resize",this.delayedScroll,{passive:!0}),this.scrollElement!==window&&window.addEventListener("scroll",this.delayedScroll,{passive:!0}))}},{key:"removeListeners",value:function(){"undefined"==typeof window||this.useIntersectionObserver||(this.scrollElement.removeEventListener("scroll",this.delayedScroll),window.removeEventListener("resize",this.delayedScroll),this.scrollElement!==window&&window.removeEventListener("scroll",this.delayedScroll))}},{key:"onChangeScroll",value:function(){this.useIntersectionObserver||this.setState({scrollPosition:{x:A(),y:M()}})}},{key:"render",value:function(){var i=this.props,o=(i.delayMethod,i.delayTime,function(r,n){if(null==r)return{};var i,o,a=function(r,n){if(null==r)return{};var i={};for(var o in r)if(({}).hasOwnProperty.call(r,o)){if(n.indexOf(o)>=0)continue;i[o]=r[o]}return i}(r,n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);for(o=0;o<s.length;o++)i=s[o],n.indexOf(i)>=0||({}).propertyIsEnumerable.call(r,i)&&(a[i]=r[i])}return a}(i,E)),a=this.useIntersectionObserver?null:this.state.scrollPosition;return n().createElement(r,k({forwardRef:this.baseComponentRef,scrollPosition:a},o))}}],function(r,n){for(var i=0;i<n.length;i++){var o=n[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(r,function(r){var n=function(r,n){if("object"!=T(r)||!r)return r;var i=r[Symbol.toPrimitive];if(void 0!==i){var o=i.call(r,"string");if("object"!=T(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return String(r)}(r);return"symbol"==T(n)?n:n+""}(o.key),o)}}(a.prototype,o),Object.defineProperty(a,"prototype",{writable:!1}),a}(n().Component);return i.propTypes={delayMethod:o.PropTypes.oneOf(["debounce","throttle"]),delayTime:o.PropTypes.number,useIntersectionObserver:o.PropTypes.bool},i.defaultProps={delayMethod:"throttle",delayTime:300,useIntersectionObserver:!0},i};function Z(r){return(Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}function R(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(R=function(){return!!r})()}
232function D(r){return(D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)})(r)}function L(r,n){return(L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r})(r,n)}var z=function(r){var i;function o(r){var n,i;return function(r,n){if(!(r instanceof n))throw TypeError("Cannot call a class as a function")}(this,o),n=o,i=[r],n=D(n),function(r,n){if(n&&("object"==Z(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(r){if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(r)}(this,R()?Reflect.construct(n,i||[],D(this).constructor):n.apply(this,i))}return function(r,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),n&&L(r,n)}(o,r),i=[{key:"render",value:function(){return n().createElement(v,this.props)}}],function(r,n){for(var i=0;i<n.length;i++){var o=n[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(r,function(r){var n=function(r,n){if("object"!=Z(r)||!r)return r;var i=r[Symbol.toPrimitive];if(void 0!==i){var o=i.call(r,"string");if("object"!=Z(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return String(r)}(r);return"symbol"==Z(n)?n:n+""}(o.key),o)}}(o.prototype,i),Object.defineProperty(o,"prototype",{writable:!1}),o}(n().Component);let B=I(z);function F(r){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}function N(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(N=function(){return!!r})()}function U(r){return(U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)})(r)}function V(r,n){return(V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r})(r,n)}var q=function(r){var i;function o(r){(function(r,n){if(!(r instanceof n))throw TypeError("Cannot call a class as a function")})(this,o),n=o,i=[r],n=U(n),a=function(r,n){if(n&&("object"==F(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(r){if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(r)}(this,N()?Reflect.construct(n,i||[],U(this).constructor):n.apply(this,i));var n,i,a,s=r.afterLoad,l=r.beforeLoad,c=r.scrollPosition,u=r.visibleByDefault;return a.state={visible:u},u&&(l(),s()),a.onVisible=a.onVisible.bind(a),a.isScrollTracked=Boolean(c&&Number.isFinite(c.x)&&c.x>=0&&Number.isFinite(c.y)&&c.y>=0),a}return function(r,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),n&&V(r,n)}(o,r),i=[{key:"componentDidUpdate",value:function(r,n){n.visible!==this.state.visible&&this.props.afterLoad()}},{key:"onVisible",value:function(){this.props.beforeLoad(),this.setState({visible:!0})}},{key:"render",value:function(){if(this.state.visible)return this.props.children;var r=this.props,i=r.className,o=r.delayMethod,a=r.delayTime,s=r.height,c=r.placeholder,u=r.scrollPosition,d=r.style,h=r.threshold,p=r.useIntersectionObserver,f=r.width;return this.isScrollTracked||p&&l()?n().createElement(v,{className:i,height:s,onVisible:this.onVisible,placeholder:c,scrollPosition:u,style:d,threshold:h,useIntersectionObserver:p,width:f}):n().createElement(B,{className:i,delayMethod:o,delayTime:a,height:s,onVisible:this.onVisible,placeholder:c,style:d,threshold:h,width:f})}}],function(r,n){for(var i=0;i<n.length;i++){var o=n[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(r,function(r){var n=function(r,n){if("object"!=F(r)||!r)return r;var i=r[Symbol.toPrimitive];if(void 0!==i){var o=i.call(r,"string");if("object"!=F(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return String(r)}(r);return"symbol"==F(n)?n:n+""}(o.key),o)}}
232(o.prototype,i),Object.defineProperty(o,"prototype",{writable:!1}),o}(n().Component);q.propTypes={afterLoad:o.PropTypes.func,beforeLoad:o.PropTypes.func,useIntersectionObserver:o.PropTypes.bool,visibleByDefault:o.PropTypes.bool},q.defaultProps={afterLoad:function(){return{}},beforeLoad:function(){return{}},useIntersectionObserver:!0,visibleByDefault:!1};let $=q;function G(r){return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}var W=["afterLoad","beforeLoad","delayMethod","delayTime","effect","placeholder","placeholderSrc","scrollPosition","threshold","useIntersectionObserver","visibleByDefault","wrapperClassName","wrapperProps"];function H(r,n){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),i.push.apply(i,o)}return i}function X(r){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?H(Object(i),!0).forEach(function(n){var o,a,s;o=r,a=n,s=i[n],(a=K(a))in o?Object.defineProperty(o,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[a]=s}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):H(Object(i)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(i,n))})}return r}function Y(){return(Y=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var o in i)({}).hasOwnProperty.call(i,o)&&(r[o]=i[o])}return r}).apply(null,arguments)}function K(r){var n=function(r,n){if("object"!=G(r)||!r)return r;var i=r[Symbol.toPrimitive];if(void 0!==i){var o=i.call(r,"string");if("object"!=G(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return String(r)}(r);return"symbol"==G(n)?n:n+""}function J(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(J=function(){return!!r})()}function Q(r){return(Q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)})(r)}function ee(r,n){return(ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r})(r,n)}var et=function(r){var i;function o(r){var n,i,a;return function(r,n){if(!(r instanceof n))throw TypeError("Cannot call a class as a function")}(this,o),(i=o,a=[r],i=Q(i),n=function(r,n){if(n&&("object"==G(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(r){if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(r)}(this,J()?Reflect.construct(i,a||[],Q(this).constructor):i.apply(this,a))).state={loaded:!1},n}return function(r,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),n&&ee(r,n)}(o,r),i=[{key:"onImageLoad",value:function(){var r=this;return this.state.loaded?null:function(n){r.props.onLoad(n),r.props.afterLoad(),r.setState({loaded:!0})}}},{key:"getImg",value:function(){var r=this.props,i=(r.afterLoad,r.beforeLoad,r.delayMethod,r.delayTime,r.effect,r.placeholder,r.placeholderSrc,r.scrollPosition,r.threshold,r.useIntersectionObserver,r.visibleByDefault,r.wrapperClassName,r.wrapperProps,function(r,n){if(null==r)return{};var i,o,a=function(r,n){if(null==r)return{};var i={};for(var o in r)if(({}).hasOwnProperty.call(r,o)){if(n.indexOf(o)>=0)continue;i[o]=r[o]}return i}(r,n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);for(o=0;o<s.length;o++)i=s[o],n.indexOf(i)>=0||({}).propertyIsEnumerable.call(r,i)&&(a[i]=r[i])}return a}(r,W));return n().createElement("img",Y({},i,{onLoad:this.onImageLoad()}))}},{key:"getLazyLoadImage",value:function(){var r=this.props,i=r.beforeLoad,o=r.className,a=r.delayMethod,s=r.delayTime,l=r.height,c=r.placeholder,u=r.scrollPosition,d=r.style,h=r.threshold,p=r.useIntersectionObserver,f=r.visibleByDefault,m=r.width;return n().createElement($,{beforeLoad:i,className:o,delayMethod:a,delayTime:s,height:l,placeholder:c,scrollPosition:u,style:d,threshold:h,useIntersectionObserver:p,visibleByDefault:f,width:m},this.getImg())}},{key:"getWrappedLazyLoadImage",value:function(r){var i=this.props,o=i.effect,a=i.height,s=i.placeholderSrc,l=i.width,c=i.wrapperClassName,u=i.wrapperProps,d=this.state.loaded;return n().createElement("span",Y({className:c+" lazy-load-image-background "+o+(d?" lazy-load-image-loaded":""),style:X(X({},d||!s?{}:{backgroundImage:"url(".concat(s,")"),backgroundSize:"100% 100%"}),{},{color:"transparent",display:"inline-block",height:a,width:l})},u),r)}},{key:"render",value:function(){var r=this.props,n=r.effect,i=r.placeholderSrc,o=r.visibleByDefault,a=r.wrapperClassName,s=r.wrapperProps,l=this.getLazyLoadImage();return(n||i)&&!o||a||s?this.getWrappedLazyLoadImage(l):l}}],function(r,n){for(var i=0;i<n.length;i++){var o=n[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(r,K(o.key),o)}}
232(o.prototype,i),Object.defineProperty(o,"prototype",{writable:!1}),o}(n().Component);et.propTypes={onLoad:o.PropTypes.func,afterLoad:o.PropTypes.func,beforeLoad:o.PropTypes.func,delayMethod:o.PropTypes.string,delayTime:o.PropTypes.number,effect:o.PropTypes.string,placeholderSrc:o.PropTypes.string,threshold:o.PropTypes.number,useIntersectionObserver:o.PropTypes.bool,visibleByDefault:o.PropTypes.bool,wrapperClassName:o.PropTypes.string,wrapperProps:o.PropTypes.object},et.defaultProps={onLoad:function(){},afterLoad:function(){return{}},beforeLoad:function(){return{}},delayMethod:"throttle",delayTime:300,effect:"",placeholderSrc:null,threshold:100,useIntersectionObserver:!0,visibleByDefault:!1,wrapperClassName:""};let er=et})(),r.exports=s})()},29196:function(r,n,i){"use strict";i.d(n,{Z:function(){return a},y:function(){return a}});var o=i(67294),a=function(r,n){(0,o.useEffect)(function(){new window.ResizeObserver(function(r){n(r[0].contentRect)}).observe(r.current)},[r])}},12751:function(r,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=function(r,n,i){var o=0===r?r:r+n;return"translate3d("+("horizontal"===i?[o,0,0]:[0,o,0]).join(",")+")"}},94954:function(r,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.fadeAnimationHandler=n.slideStopSwipingHandler=n.slideSwipeAnimationHandler=n.slideAnimationHandler=void 0;var o,a=i(67294),s=(o=i(12751))&&o.__esModule?o:{default:o},l=i(98918);function c(r,n){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),i.push.apply(i,o)}return i}function u(r){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?c(Object(i),!0).forEach(function(n){var o,a;o=r,a=i[n],n in o?Object.defineProperty(o,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[n]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):c(Object(i)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(i,n))})}return r}n.slideAnimationHandler=function(r,n){var i={},o=n.selectedItem,c=a.Children.count(r.children)-1;if(r.infiniteLoop&&(o<0||o>c))return o<0?r.centerMode&&r.centerSlidePercentage&&"horizontal"===r.axis?i.itemListStyle=(0,l.setPosition)(-(c+2)*r.centerSlidePercentage-(100-r.centerSlidePercentage)/2,r.axis):i.itemListStyle=(0,l.setPosition)(-(100*(c+2)),r.axis):o>c&&(i.itemListStyle=(0,l.setPosition)(0,r.axis)),i;var d=(0,l.getPosition)(o,r),h=(0,s.default)(d,"%",r.axis),p=r.transitionTime+"ms";return i.itemListStyle={WebkitTransform:h,msTransform:h,OTransform:h,transform:h},n.swiping||(i.itemListStyle=u(u({},i.itemListStyle),{},{WebkitTransitionDuration:p,MozTransitionDuration:p,OTransitionDuration:p,transitionDuration:p,msTransitionDuration:p})),i},n.slideSwipeAnimationHandler=function(r,n,i,o){var s={},c="horizontal"===n.axis,u=a.Children.count(n.children),d=(0,l.getPosition)(i.selectedItem,n),h=n.infiniteLoop?(0,l.getPosition)(u-1,n)-100:(0,l.getPosition)(u-1,n),p=c?r.x:r.y,f=p;0===d&&p>0&&(f=0),d===h&&p<0&&(f=0);var m=d+100/(i.itemSize/f),g=Math.abs(p)>n.swipeScrollTolerance;return n.infiniteLoop&&g&&(0===i.selectedItem&&m>-100?m-=100*u:i.selectedItem===u-1&&m<-(100*u)&&(m+=100*u)),(!n.preventMovementUntilSwipeScrollTolerance||g||i.swipeMovementStarted)&&(i.swipeMovementStarted||o({swipeMovementStarted:!0}),s.itemListStyle=(0,l.setPosition)(m,n.axis)),g&&!i.cancelClick&&o({cancelClick:!0}),s},n.slideStopSwipingHandler=function(r,n){var i=(0,l.getPosition)(n.selectedItem,r);return{itemListStyle:(0,l.setPosition)(i,r.axis)}},n.fadeAnimationHandler=function(r,n){var i=r.transitionTime+"ms",o="ease-in-out",a={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:o,msTransitionTimingFunction:o,MozTransitionTimingFunction:o,WebkitTransitionTimingFunction:o,OTransitionTimingFunction:o};return n.swiping||(a=u(u({},a),{},{WebkitTransitionDuration:i,MozTransitionDuration:i,OTransitionDuration:i,transitionDuration:i,msTransitionDuration:i})),{slideStyle:a,selectedStyle:u(u({},a),{},{opacity:1,position:"relative"}),prevStyle:u({},a)}}},18684:function(r,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=function(r){if(r&&r.__esModule)return r;if(null===r||"object"!==m(r)&&"function"!=typeof r)return{default:r};var n=f();if(n&&n.has(r))return n.get(r);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in r)if(Object.prototype.hasOwnProperty.call(r,a)){var s=o?Object.getOwnPropertyDescriptor(r,a):null;s&&(s.get||s.set)?Object.defineProperty(i,a,s):i[a]=r[a]}return i.default=r,n&&n.set(r,i),i}(i(67294)),a=p(i(86995)),s=p(i(25702)),l=p(i(45040)),c=p(i(16513)),u=p(i(885)),d=i(98918),h=i(94954);function p(r){return r&&r.__esModule?r:{default:r}}function f(){if("function"!=typeof WeakMap)return null;var r=new WeakMap;return f=function(){return r},r}function m(r){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}function g(){return(g=Object.assign||function(r){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])}return r}).apply(this,arguments)}function v(r,n){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),i.push.apply(i,o)}return i}function y(r){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};
232n%2?v(Object(i),!0).forEach(function(n){S(r,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):v(Object(i)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(i,n))})}return r}function b(r,n){for(var i=0;i<n.length;i++){var o=n[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(r,o.key,o)}}function x(r,n){return(x=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r})(r,n)}function _(r){if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function w(r){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)})(r)}function S(r,n,i){return n in r?Object.defineProperty(r,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[n]=i,r}var T=function(r){!function(r,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),n&&x(r,n)}(v,r);var n,i,p,f=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(r){return!1}}(),function(){var r,i,o=w(v);if(n){var a=w(this).constructor;i=Reflect.construct(o,arguments,a)}else i=o.apply(this,arguments);return(r=i)&&("object"===m(r)||"function"==typeof r)?r:_(this)});function v(r){!function(r,n){if(!(r instanceof n))throw TypeError("Cannot call a class as a function")}(this,v),S(_(n=f.call(this,r)),"thumbsRef",void 0),S(_(n),"carouselWrapperRef",void 0),S(_(n),"listRef",void 0),S(_(n),"itemsRef",void 0),S(_(n),"timer",void 0),S(_(n),"animationHandler",void 0),S(_(n),"setThumbsRef",function(r){n.thumbsRef=r}),S(_(n),"setCarouselWrapperRef",function(r){n.carouselWrapperRef=r}),S(_(n),"setListRef",function(r){n.listRef=r}),S(_(n),"setItemsRef",function(r,i){n.itemsRef||(n.itemsRef=[]),n.itemsRef[i]=r}),S(_(n),"autoPlay",function(){!(1>=o.Children.count(n.props.children))&&(n.clearAutoPlay(),n.props.autoPlay&&(n.timer=setTimeout(function(){n.increment()},n.props.interval)))}),S(_(n),"clearAutoPlay",function(){n.timer&&clearTimeout(n.timer)}),S(_(n),"resetAutoPlay",function(){n.clearAutoPlay(),n.autoPlay()}),S(_(n),"stopOnHover",function(){n.setState({isMouseEntered:!0},n.clearAutoPlay)}),S(_(n),"startOnLeave",function(){n.setState({isMouseEntered:!1},n.autoPlay)}),S(_(n),"isFocusWithinTheCarousel",function(){return!!n.carouselWrapperRef&&!!((0,c.default)().activeElement===n.carouselWrapperRef||n.carouselWrapperRef.contains((0,c.default)().activeElement))}),S(_(n),"navigateWithKeyboard",function(r){if(n.isFocusWithinTheCarousel()){var i="horizontal"===n.props.axis,o={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},a=i?o.ArrowRight:o.ArrowDown,s=i?o.ArrowLeft:o.ArrowUp;a===r.keyCode?n.increment():s===r.keyCode&&n.decrement()}}),S(_(n),"updateSizes",function(){if(n.state.initialized&&n.itemsRef&&0!==n.itemsRef.length){var r="horizontal"===n.props.axis,i=n.itemsRef[0];if(i){var o=r?i.clientWidth:i.clientHeight;n.setState({itemSize:o}),n.thumbsRef&&n.thumbsRef.updateSizes()}}}),S(_(n),"setMountState",function(){n.setState({hasMount:!0}),n.updateSizes()}),S(_(n),"handleClickItem",function(r,i){if(0!==o.Children.count(n.props.children)){if(n.state.cancelClick){n.setState({cancelClick:!1});return}n.props.onClickItem(r,i),r!==n.state.selectedItem&&n.setState({selectedItem:r})}}),S(_(n),"handleOnChange",function(r,i){1>=o.Children.count(n.props.children)||n.props.onChange(r,i)}),S(_(n),"handleClickThumb",function(r,i){n.props.onClickThumb(r,i),n.moveTo(r)}),S(_(n),"onSwipeStart",function(r){n.setState({swiping:!0}),n.props.onSwipeStart(r)}),S(_(n),"onSwipeEnd",function(r){n.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),n.props.onSwipeEnd(r),n.clearAutoPlay(),n.state.autoPlay&&n.autoPlay()}),S(_(n),"onSwipeMove",function(r,i){n.props.onSwipeMove(i);var o=n.props.swipeAnimationHandler(r,n.props,n.state,n.setState.bind(_(n)));return n.setState(y({},o)),!!Object.keys(o).length}),S(_(n),"decrement",function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;n.moveTo(n.state.selectedItem-("number"==typeof r?r:1))}),S(_(n),"increment",function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;n.moveTo(n.state.selectedItem+("number"==typeof r?r:1))}),S(_(n),"moveTo",function(r){if("number"==typeof r){var i=o.Children.count(n.props.children)-1;r<0&&(r=n.props.infiniteLoop?i:0),r>i&&(r=n.props.infiniteLoop?0:i),n.selectItem({selectedItem:r}),n.state.autoPlay&&!1===n.state.isMouseEntered&&n.resetAutoPlay()}}),S(_(n),"onClickNext",function(){n.increment(1)}
232),S(_(n),"onClickPrev",function(){n.decrement(1)}),S(_(n),"onSwipeForward",function(){n.increment(1),n.props.emulateTouch&&n.setState({cancelClick:!0})}),S(_(n),"onSwipeBackwards",function(){n.decrement(1),n.props.emulateTouch&&n.setState({cancelClick:!0})}),S(_(n),"changeItem",function(r){return function(i){(0,d.isKeyboardEvent)(i)&&"Enter"!==i.key||n.moveTo(r)}}),S(_(n),"selectItem",function(r){n.setState(y({previousItem:n.state.selectedItem},r),function(){n.setState(n.animationHandler(n.props,n.state))}),n.handleOnChange(r.selectedItem,o.Children.toArray(n.props.children)[r.selectedItem])}),S(_(n),"getInitialImage",function(){var r=n.props.selectedItem,i=n.itemsRef&&n.itemsRef[r];return(i&&i.getElementsByTagName("img")||[])[0]}),S(_(n),"getVariableItemHeight",function(r){var i=n.itemsRef&&n.itemsRef[r];if(n.state.hasMount&&i&&i.children.length){var o=i.children[0].getElementsByTagName("img")||[];if(o.length>0){var a=o[0];a.complete||a.addEventListener("load",function r(){n.forceUpdate(),a.removeEventListener("load",r)})}var s=(o[0]||i.children[0]).clientHeight;return s>0?s:null}return null});var n,i={initialized:!1,previousItem:r.selectedItem,selectedItem:r.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:r.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return n.animationHandler="function"==typeof r.animationHandler&&r.animationHandler||"fade"===r.animationHandler&&h.fadeAnimationHandler||h.slideAnimationHandler,n.state=y(y({},i),n.animationHandler(r,i)),n}return i=[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(r,n){r.children||!this.props.children||this.state.initialized||this.setupCarousel(),!r.autoFocus&&this.props.autoFocus&&this.forceFocus(),n.swiping&&!this.state.swiping&&this.setState(y({},this.props.stopSwipingHandler(this.props,this.state))),(r.selectedItem!==this.props.selectedItem||r.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),r.autoPlay!==this.props.autoPlay&&(this.props.autoPlay?this.setupAutoPlay():this.destroyAutoPlay(),this.setState({autoPlay:this.props.autoPlay}))}},{key:"componentWillUnmount",value:function(){this.destroyCarousel()}},{key:"setupCarousel",value:function(){var r=this;this.bindEvents(),this.state.autoPlay&&o.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},function(){var n=r.getInitialImage();n&&!n.complete?n.addEventListener("load",r.setMountState):r.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var r=this.carouselWrapperRef;this.props.stopOnHover&&r&&(r.addEventListener("mouseenter",this.stopOnHover),r.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var r=this.carouselWrapperRef;this.props.stopOnHover&&r&&(r.removeEventListener("mouseenter",this.stopOnHover),r.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,u.default)().addEventListener("resize",this.updateSizes),(0,u.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,c.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,u.default)().removeEventListener("resize",this.updateSizes),(0,u.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var r=this.getInitialImage();r&&r.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,c.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var r;null===(r=this.carouselWrapperRef)||void 0===r||r.focus()}},{key:"renderItems",value:function(r){var n=this;return this.props.children?o.Children.map(this.props.children,function(i,a){var l=a===n.state.selectedItem,c=a===n.state.previousItem,u=l&&n.state.selectedStyle||c&&n.state.prevStyle||n.state.slideStyle||{};n.props.centerMode&&"horizontal"===n.props.axis&&(u=y(y({},u),{},{minWidth:n.props.centerSlidePercentage+"%"})),n.state.swiping&&n.state.swipeMovementStarted&&(u=y(y({},u),{},{pointerEvents:"none"}));var d={ref:function(r){return n.setItemsRef(r,a)}
232,key:"itemKey"+a+(r?"clone":""),className:s.default.ITEM(!0,a===n.state.selectedItem,a===n.state.previousItem),onClick:n.handleClickItem.bind(n,a,i),style:u};return o.default.createElement("li",d,n.props.renderItem(i,{isSelected:a===n.state.selectedItem,isPrevious:a===n.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var r=this,n=this.props,i=n.showIndicators,a=n.labels,s=n.renderIndicator,l=n.children;return i?o.default.createElement("ul",{className:"control-dots"},o.Children.map(l,function(n,i){return s&&s(r.changeItem(i),i===r.state.selectedItem,i,a.item)})):null}},{key:"renderStatus",value:function(){return this.props.showStatus?o.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,o.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return this.props.showThumbs&&this.props.children&&0!==o.Children.count(this.props.children)?o.default.createElement(l.default,{ref:this.setThumbsRef,onSelectItem:this.handleClickThumb,selectedItem:this.state.selectedItem,transitionTime:this.props.transitionTime,thumbWidth:this.props.thumbWidth,labels:this.props.labels,emulateTouch:this.props.emulateTouch},this.props.renderThumbs(this.props.children)):null}},{key:"render",value:function(){var r=this;if(!this.props.children||0===o.Children.count(this.props.children))return null;var n=this.props.swipeable&&o.Children.count(this.props.children)>1,i="horizontal"===this.props.axis,l=this.props.showArrows&&o.Children.count(this.props.children)>1,c=l&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,u=l&&(this.state.selectedItem<o.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,d=this.renderItems(!0),h=d.shift(),p=d.pop(),f={className:s.default.SLIDER(!0,this.state.swiping),onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:this.state.itemListStyle,tolerance:this.props.swipeScrollTolerance},m={};if(i){if(f.onSwipeLeft=this.onSwipeForward,f.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var v=this.getVariableItemHeight(this.state.selectedItem);m.height=v||"auto"}}else f.onSwipeUp="natural"===this.props.verticalSwipe?this.onSwipeBackwards:this.onSwipeForward,f.onSwipeDown="natural"===this.props.verticalSwipe?this.onSwipeForward:this.onSwipeBackwards,f.style=y(y({},f.style),{},{height:this.state.itemSize}),m.height=this.state.itemSize;return o.default.createElement("div",{"aria-label":this.props.ariaLabel,className:s.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:this.props.useKeyboardArrows?0:void 0},o.default.createElement("div",{className:s.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,c,this.props.labels.leftArrow),o.default.createElement("div",{className:s.default.WRAPPER(!0,this.props.axis),style:m},n?o.default.createElement(a.default,g({tagName:"ul",innerRef:this.setListRef},f,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&p,this.renderItems(),this.props.infiniteLoop&&h):o.default.createElement("ul",{className:s.default.SLIDER(!0,this.state.swiping),ref:function(n){return r.setListRef(n)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&p,this.renderItems(),this.props.infiniteLoop&&h)),this.props.renderArrowNext(this.onClickNext,u,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}],b(v.prototype,i),p&&b(v,p),v}(o.default.Component);n.default=T,S(T,"displayName","Carousel"),S(T,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:d.noop,onClickThumb:d.noop,onChange:d.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(r,n,i){return o.default.createElement("button",{type:"button","aria-label":i,className:s.default.ARROW_PREV(!n),onClick:r})},renderArrowNext:function(r,n,i){return o.default.createElement("button",{type:"button","aria-label":i,className:s.default.ARROW_NEXT(!n),onClick:r})},renderIndicator:function(r,n,i,a){return o.default.createElement("li",{className:s.default.DOT(n),onClick:r,onKeyDown:r,value:i,key:i,role:"button",tabIndex:0,"aria-label":"".concat(a," ").concat(i+1)})},renderItem:function(r){return r},renderThumbs:function(r){var n=o.Children.map(r,function(r){var n=r;if("img"!==r.type&&(n=o.Children.toArray(r.props.children).find(function(r){return"img"===r.type})),n)return n});return 0===n.filter(function(r){return r}).length?(console.warn("No images found! Can't build the thumb list without images. If you don't need thumbs, set showThumbs={false} in the Carousel. Note that it's not possible to get images rendered inside custom components. More info at https://github.com/leandrowd/react-responsive-carou
232sel/blob/master/TROUBLESHOOTING.md"),[]):n},statusFormatter:d.defaultStatusFormatter,selectedItem:0,showArrows:!0,showIndicators:!0,showStatus:!0,showThumbs:!0,stopOnHover:!0,swipeScrollTolerance:5,swipeable:!0,transitionTime:350,verticalSwipe:"standard",width:"100%",animationHandler:"slide",swipeAnimationHandler:h.slideSwipeAnimationHandler,stopSwipingHandler:h.slideStopSwipingHandler})},50629:function(){},98918:function(r,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.setPosition=n.getPosition=n.isKeyboardEvent=n.defaultStatusFormatter=n.noop=void 0;var o,a=i(67294),s=(o=i(12751))&&o.__esModule?o:{default:o};n.noop=function(){},n.defaultStatusFormatter=function(r,n){return"".concat(r," of ").concat(n)},n.isKeyboardEvent=function(r){return!!r&&r.hasOwnProperty("key")},n.getPosition=function(r,n){if(n.infiniteLoop&&++r,0===r)return 0;var i=a.Children.count(n.children);if(n.centerMode&&"horizontal"===n.axis){var o=-r*n.centerSlidePercentage,s=i-1;return r&&(r!==s||n.infiniteLoop)?o+=(100-n.centerSlidePercentage)/2:r===s&&(o+=100-n.centerSlidePercentage),o}return-(100*r)},n.setPosition=function(r,n){var i={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(o){i[o]=(0,s.default)(r,"%",n)}),i}},45040:function(r,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=function(r){if(r&&r.__esModule)return r;if(null===r||"object"!==p(r)&&"function"!=typeof r)return{default:r};var n=h();if(n&&n.has(r))return n.get(r);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in r)if(Object.prototype.hasOwnProperty.call(r,a)){var s=o?Object.getOwnPropertyDescriptor(r,a):null;s&&(s.get||s.set)?Object.defineProperty(i,a,s):i[a]=r[a]}return i.default=r,n&&n.set(r,i),i}(i(67294)),a=d(i(25702)),s=i(74528),l=d(i(12751)),c=d(i(86995)),u=d(i(885));function d(r){return r&&r.__esModule?r:{default:r}}function h(){if("function"!=typeof WeakMap)return null;var r=new WeakMap;return h=function(){return r},r}function p(r){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}function f(){return(f=Object.assign||function(r){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])}return r}).apply(this,arguments)}function m(r,n){for(var i=0;i<n.length;i++){var o=n[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(r,o.key,o)}}function g(r,n){return(g=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r})(r,n)}function v(r){if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function y(r){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)})(r)}function b(r,n,i){return n in r?Object.defineProperty(r,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[n]=i,r}var x=function(r){!function(r,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),n&&g(r,n)}(x,r);var n,i,d,h=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(r){return!1}}(),function(){var r,i,o=y(x);if(n){var a=y(this).constructor;i=Reflect.construct(o,arguments,a)}else i=o.apply(this,arguments);return(r=i)&&("object"===p(r)||"function"==typeof r)?r:v(this)});function x(r){var n;return!function(r,n){if(!(r instanceof n))throw TypeError("Cannot call a class as a function")}(this,x),b(v(n=h.call(this,r)),"itemsWrapperRef",void 0),b(v(n),"itemsListRef",void 0),b(v(n),"thumbsRef",void 0),b(v(n),"setItemsWrapperRef",function(r){n.itemsWrapperRef=r}),b(v(n),"setItemsListRef",function(r){n.itemsListRef=r}),b(v(n),"setThumbsRef",function(r,i){n.thumbsRef||(n.thumbsRef=[]),n.thumbsRef[i]=r}),b(v(n),"updateSizes",function(){if(n.props.children&&n.itemsWrapperRef&&n.thumbsRef){var r=o.Children.count(n.props.children),i=n.itemsWrapperRef.clientWidth,a=n.props.thumbWidth?n.props.thumbWidth:(0,s.outerWidth)(n.thumbsRef[0]),l=Math.floor(i/a),c=l<r,u=c?r-l:0;n.setState(function(r,i){return{itemSize:a,visibleItems:l,firstItem:c?n.getFirstItem(i.selectedItem):0,lastPosition:u,showArrows:c}})}}),b(v(n),"handleClickItem",function(r,i,o){if(!o.hasOwnProperty("key")||"Enter"===o.key){var a=n.props.onSelectItem;"function"==typeof a&&a(r,i)}}),b(v(n),"onSwipeStart",function(){n.setState({swiping:!0})}),b(v(n),"onSwipeEnd",function(){n.setState({swiping:!1})}),b(v(n),"onSwipeMove",function(r){var i=r.x;if(!n.state.itemSize||!n.itemsWrapperRef||!n.state.visibleItems)return!1;var a=o.Children.count(n.props.children),s=-(100*n.state.firstItem)/n.state.visibleItems;0===s&&i>
2320&&(i=0),s===-(100*Math.max(a-n.state.visibleItems,0))/n.state.visibleItems&&i<0&&(i=0);var c=s+100/(n.itemsWrapperRef.clientWidth/i);return n.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(r){n.itemsListRef.style[r]=(0,l.default)(c,"%",n.props.axis)}),!0}),b(v(n),"slideRight",function(r){n.moveTo(n.state.firstItem-("number"==typeof r?r:1))}),b(v(n),"slideLeft",function(r){n.moveTo(n.state.firstItem+("number"==typeof r?r:1))}),b(v(n),"moveTo",function(r){r=(r=r<0?0:r)>=n.state.lastPosition?n.state.lastPosition:r,n.setState({firstItem:r})}),n.state={selectedItem:r.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},n}return i=[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(r){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==r.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,u.default)().addEventListener("resize",this.updateSizes),(0,u.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,u.default)().removeEventListener("resize",this.updateSizes),(0,u.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(r){var n=r;return r>=this.state.lastPosition&&(n=this.state.lastPosition),r<this.state.firstItem+this.state.visibleItems&&(n=this.state.firstItem),r<this.state.firstItem&&(n=r),n}},{key:"renderItems",value:function(){var r=this;return this.props.children.map(function(n,i){var s=a.default.ITEM(!1,i===r.state.selectedItem),l={key:i,ref:function(n){return r.setThumbsRef(n,i)},className:s,onClick:r.handleClickItem.bind(r,i,r.props.children[i]),onKeyDown:r.handleClickItem.bind(r,i,r.props.children[i]),"aria-label":"".concat(r.props.labels.item," ").concat(i+1),style:{width:r.props.thumbWidth}};return o.default.createElement("li",f({},l,{role:"button",tabIndex:0}),n)})}},{key:"render",value:function(){var r=this;if(!this.props.children)return null;var n=o.Children.count(this.props.children)>1,i=this.state.showArrows&&this.state.firstItem>0,s=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,u={},d=-this.state.firstItem*(this.state.itemSize||0),h=(0,l.default)(d,"px",this.props.axis),p=this.props.transitionTime+"ms";return u={WebkitTransform:h,MozTransform:h,MsTransform:h,OTransform:h,transform:h,msTransform:h,WebkitTransitionDuration:p,MozTransitionDuration:p,MsTransitionDuration:p,OTransitionDuration:p,transitionDuration:p,msTransitionDuration:p},o.default.createElement("div",{className:a.default.CAROUSEL(!1)},o.default.createElement("div",{className:a.default.WRAPPER(!1),ref:this.setItemsWrapperRef},o.default.createElement("button",{type:"button",className:a.default.ARROW_PREV(!i),onClick:function(){return r.slideRight()},"aria-label":this.props.labels.leftArrow}),n?o.default.createElement(c.default,{tagName:"ul",className:a.default.SLIDER(!1,this.state.swiping),onSwipeLeft:this.slideLeft,onSwipeRight:this.slideRight,onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:u,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):o.default.createElement("ul",{className:a.default.SLIDER(!1,this.state.swiping),ref:function(n){return r.setItemsListRef(n)},style:u},this.renderItems()),o.default.createElement("button",{type:"button",className:a.default.ARROW_NEXT(!s),onClick:function(){return r.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}],m(x.prototype,i),d&&m(x,d),x}(o.Component);n.default=x,b(x,"displayName","Thumbs"),b(x,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350})},25702:function(r,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,a=(o=i(93967))&&o.__esModule?o:{default:o};n.default={ROOT:function(r){var n,i,o;return(0,a.default)((n={"carousel-root":!0},i=r||"",o=!!r,i in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o,n))},CAROUSEL:function(r){return(0,a.default)({carousel:!0,"carousel-slider":r})},WRAPPER:function(r,n){return(0,a.default)({"thumbs-wrapper":!r,"slider-wrapper":r,"axis-horizontal":"horizontal"===n,"axis-vertical":"horizontal"!==n})},SLIDER:function(r,n){return(0,a.default)({thumbs:!r,slider:r,animated:!n})}
232,ITEM:function(r,n,i){return(0,a.default)({thumb:!r,slide:r,selected:n,previous:i})},ARROW_PREV:function(r){return(0,a.default)({"control-arrow control-prev":!0,"control-disabled":r})},ARROW_NEXT:function(r){return(0,a.default)({"control-arrow control-next":!0,"control-disabled":r})},DOT:function(r){return(0,a.default)({dot:!0,selected:r})}}},74528:function(r,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.outerWidth=void 0,n.outerWidth=function(r){var n=r.offsetWidth,i=getComputedStyle(r);return n+(parseInt(i.marginLeft)+parseInt(i.marginRight))}},10615:function(r,n,i){"use strict";Object.defineProperty(n,"lr",{enumerable:!0,get:function(){return o.default}});var o=a(i(18684));function a(r){return r&&r.__esModule?r:{default:r}}i(50629),a(i(45040))},16513:function(r,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=function(){return document}},885:function(r,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=function(){return window}},8662:function(r,n,i){"use strict";i.d(n,{ZP:function(){return y}});var o=i(63366),a=i(94578),s=i(67294),l=i(73935),c={disabled:!1},u=i(220),d="unmounted",h="exited",p="entering",f="entered",m="exiting",g=function(r){function n(n,i){o=r.call(this,n,i)||this;var o,a,s=i&&!i.isMounting?n.enter:n.appear;return o.appearStatus=null,n.in?s?(a=h,o.appearStatus=p):a=f:a=n.unmountOnExit||n.mountOnEnter?d:h,o.state={status:a},o.nextCallback=null,o}(0,a.Z)(n,r),n.getDerivedStateFromProps=function(r,n){return r.in&&n.status===d?{status:h}:null};var i=n.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(r){var n=null;if(r!==this.props){var i=this.state.status;this.props.in?i!==p&&i!==f&&(n=p):(i===p||i===f)&&(n=m)}this.updateStatus(!1,n)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var r,n,i,o=this.props.timeout;return r=n=i=o,null!=o&&"number"!=typeof o&&(r=o.exit,n=o.enter,i=void 0!==o.appear?o.appear:n),{exit:r,enter:n,appear:i}},i.updateStatus=function(r,n){if(void 0===r&&(r=!1),null!==n){if(this.cancelNextCallback(),n===p){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:l.findDOMNode(this);i&&i.scrollTop}this.performEnter(r)}else this.performExit()}else this.props.unmountOnExit&&this.state.status===h&&this.setState({status:d})},i.performEnter=function(r){var n=this,i=this.props.enter,o=this.context?this.context.isMounting:r,a=this.props.nodeRef?[o]:[l.findDOMNode(this),o],s=a[0],u=a[1],d=this.getTimeouts(),h=o?d.appear:d.enter;if(!r&&!i||c.disabled){this.safeSetState({status:f},function(){n.props.onEntered(s)});return}this.props.onEnter(s,u),this.safeSetState({status:p},function(){n.props.onEntering(s,u),n.onTransitionEnd(h,function(){n.safeSetState({status:f},function(){n.props.onEntered(s,u)})})})},i.performExit=function(){var r=this,n=this.props.exit,i=this.getTimeouts(),o=this.props.nodeRef?void 0:l.findDOMNode(this);if(!n||c.disabled){this.safeSetState({status:h},function(){r.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:m},function(){r.props.onExiting(o),r.onTransitionEnd(i.exit,function(){r.safeSetState({status:h},function(){r.props.onExited(o)})})})},i.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(r,n){n=this.setNextCallback(n),this.setState(r,n)},i.setNextCallback=function(r){var n=this,i=!0;return this.nextCallback=function(o){i&&(i=!1,n.nextCallback=null,r(o))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},i.onTransitionEnd=function(r,n){this.setNextCallback(n);var i=this.props.nodeRef?this.props.nodeRef.current:l.findDOMNode(this),o=null==r&&!this.props.addEndListener;if(!i||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],s=a[0],c=a[1];this.props.addEndListener(s,c)}null!=r&&setTimeout(this.nextCallback,r)},i.render=function(){var r=this.state.status;if(r===d)return null;var n=this.props,i=n.children,a=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,(0,o.Z)(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return s.createElement(u.Z.Provider,{value:null},"function"==typeof i?i(r,a):s.cloneElement(s.Children.only(i),a))},n}(s.Component);function v(){}
232g.contextType=u.Z,g.propTypes={},g.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:v,onEntering:v,onEntered:v,onExit:v,onExiting:v,onExited:v},g.UNMOUNTED=d,g.EXITED=h,g.ENTERING=p,g.ENTERED=f,g.EXITING=m;var y=g},220:function(r,n,i){"use strict";var o=i(67294);n.Z=o.createContext(null)},80500:function(r){"use strict";r.exports=(r,n)=>{if(!("string"==typeof r&&"string"==typeof n))throw TypeError("Expected the arguments to be of type `string`");if(""===n)return[r];let i=r.indexOf(n);return -1===i?[r]:[r.slice(0,i),r.slice(i+n.length)]}},70610:function(r){"use strict";r.exports=r=>encodeURIComponent(r).replace(/[!'()*]/g,r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`)},53250:function(r,n,i){"use strict";/** 233 * @license React 234 * use-sync-external-store-shim.production.min.js 235 * 236 * Copyright (c) Facebook, Inc. and its affiliates. 237 * 238 * This source code is licensed under the MIT license found in the 239 * LICENSE file in the root directory of this source tree. 240 */var o=i(67294),a="function"==typeof Object.is?Object.is:function(r,n){return r===n&&(0!==r||1/r==1/n)||r!=r&&n!=n},s=o.useState,l=o.useEffect,c=o.useLayoutEffect,u=o.useDebugValue;function d(r){var n=r.getSnapshot;r=r.value;try{var i=n();return!a(r,i)}catch(r){return!0}}var h="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(r,n){return n()}:function(r,n){var i=n(),o=s({inst:{value:i,getSnapshot:n}}),a=o[0].inst,h=o[1];return c(function(){a.value=i,a.getSnapshot=n,d(a)&&h({inst:a})},[r,i,n]),l(function(){return d(a)&&h({inst:a}),r(function(){d(a)&&h({inst:a})})},[r]),u(i),i};n.useSyncExternalStore=void 0!==o.useSyncExternalStore?o.useSyncExternalStore:h},61688:function(r,n,i){"use strict";r.exports=i(53250)},64836:function(r){r.exports=function(r){return r&&r.__esModule?r:{default:r}},r.exports.__esModule=!0,r.exports.default=r.exports},93967:function(r,n){var i;/*! 241 Copyright (c) 2018 Jed Watson. 242 Licensed under the MIT License (MIT), see 243 http://jedwatson.github.io/classnames 244*/!function(){"use strict";var o={}.hasOwnProperty;function a(){for(var r="",n=0;n<arguments.length;n++){var i=arguments[n];i&&(r=s(r,function(r){if("string"==typeof r||"number"==typeof r)return r;if("object"!=typeof r)return"";if(Array.isArray(r))return a.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var n="";for(var i in r)o.call(r,i)&&r[i]&&(n=s(n,i));return n}(i)))}return r}function s(r,n){return n?r?r+" "+n:r+n:r}r.exports?(a.default=a,r.exports=a):void 0!==(i=(function(){return a}).apply(n,[]))&&(r.exports=i)}()},36309:function(r){r.exports={ES3:{break:!0,continue:!0,delete:!0,else:!0,for:!0,function:!0,if:!0,in:!0,new:!0,return:!0,this:!0,typeof:!0,var:!0,void:!0,while:!0,with:!0,case:!0,catch:!0,default:!0,do:!0,finally:!0,instanceof:!0,switch:!0,throw:!0,try:!0},ESnext:{await:!0,debugger:!0,class:!0,enum:!0,extends:!0,super:!0,const:!0,export:!0,import:!0,null:!0,true:!0,false:!0,implements:!0,let:!0,private:!0,public:!0,yield:!0,interface:!0,package:!0,protected:!0,static:!0}}},97326:function(r,n,i){"use strict";function o(r){if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}i.d(n,{Z:function(){return o}})},87462:function(r,n,i){"use strict";function o(){return(o=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var o in i)({}).hasOwnProperty.call(i,o)&&(r[o]=i[o])}return r}).apply(null,arguments)}i.d(n,{Z:function(){return o}})},94578:function(r,n,i){"use strict";i.d(n,{Z:function(){return a}});var o=i(89611);function a(r,n){r.prototype=Object.create(n.prototype),r.prototype.constructor=r,(0,o.Z)(r,n)}},63366:function(r,n,i){"use strict";function o(r,n){if(null==r)return{};var i={};for(var o in r)if(({}).hasOwnProperty.call(r,o)){if(n.includes(o))continue;i[o]=r[o]}return i}i.d(n,{Z:function(){return o}})},89611:function(r,n,i){"use strict";function o(r,n){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r})(r,n)}i.d(n,{Z:function(){return o}})},71002:function(r,n,i){"use strict";function o(r){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}i.d(n,{Z:function(){return o}})},15761:function(r,n,i){"use strict";i.d(n,{j:function(){return l}});var o=i(33989),a=i(32161);class s extends o.l{constructor(){super(),this.setup=r=>{if(!a.sk&&window.addEventListener){let n=()=>r();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var r;null==(r=this.cleanup)||r.call(this),this.cleanup=void 0}}setEventListener(r){var n;this.setup=r,null==(n=this.cleanup)||n.call(this),this.cleanup=r(r=>{"boolean"==typeof r?this.setFocused(r):this.onFocus()})}setFocused(r){let n=this.focused!==r;n&&(this.focused=r,this.onFocus())}
244onFocus(){this.listeners.forEach(({listener:r})=>{r()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}}let l=new s},9499:function(r,n,i){"use strict";function o(){return{onFetch:r=>{r.fetchFn=()=>{var n,i,o,l,c,u;let d;let h=null==(n=r.fetchOptions)?void 0:null==(i=n.meta)?void 0:i.refetchPage,p=null==(o=r.fetchOptions)?void 0:null==(l=o.meta)?void 0:l.fetchMore,f=null==p?void 0:p.pageParam,m=(null==p?void 0:p.direction)==="forward",g=(null==p?void 0:p.direction)==="backward",v=(null==(c=r.state.data)?void 0:c.pages)||[],y=(null==(u=r.state.data)?void 0:u.pageParams)||[],b=y,x=!1,_=n=>{Object.defineProperty(n,"signal",{enumerable:!0,get:()=>{var n,i;return null!=(n=r.signal)&&n.aborted?x=!0:null==(i=r.signal)||i.addEventListener("abort",()=>{x=!0}),r.signal}})},w=r.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+r.options.queryHash+"'")),S=(r,n,i,o)=>(b=o?[n,...b]:[...b,n],o?[i,...r]:[...r,i]),T=(n,i,o,a)=>{if(x)return Promise.reject("Cancelled");if(void 0===o&&!i&&n.length)return Promise.resolve(n);let s={queryKey:r.queryKey,pageParam:o,meta:r.options.meta};_(s);let l=w(s),c=Promise.resolve(l).then(r=>S(n,o,r,a));return c};if(v.length){if(m){let n=void 0!==f,i=n?f:a(r.options,v);d=T(v,n,i)}else if(g){let n=void 0!==f,i=n?f:s(r.options,v);d=T(v,n,i,!0)}else{b=[];let n=void 0===r.options.getNextPageParam,i=!h||!v[0]||h(v[0],0,v);d=i?T([],n,y[0]):Promise.resolve(S([],y[0],v[0]));for(let i=1;i<v.length;i++)d=d.then(o=>{let s=!h||!v[i]||h(v[i],i,v);if(s){let s=n?y[i]:a(r.options,o);return T(o,n,s)}return Promise.resolve(S(o,y[i],v[i]))})}}else d=T([]);let E=d.then(r=>({pages:r,pageParams:b}));return E}}}}function a(r,n){return null==r.getNextPageParam?void 0:r.getNextPageParam(n[n.length-1],n)}function s(r,n){return null==r.getPreviousPageParam?void 0:r.getPreviousPageParam(n[0],n)}function l(r,n){if(r.getNextPageParam&&Array.isArray(n)){let i=a(r,n);return null!=i&&!1!==i}}function c(r,n){if(r.getPreviousPageParam&&Array.isArray(n)){let i=s(r,n);return null!=i&&!1!==i}}i.d(n,{Gm:function(){return o},Qy:function(){return l},ZF:function(){return c}})},30819:function(r,n,i){"use strict";i.d(n,{_:function(){return o}});let o=console},89886:function(r,n,i){"use strict";i.d(n,{R:function(){return u},m:function(){return c}});var o=i(30819),a=i(30081),s=i(89643),l=i(72379);class c extends s.F{constructor(r){super(),this.defaultOptions=r.defaultOptions,this.mutationId=r.mutationId,this.mutationCache=r.mutationCache,this.logger=r.logger||o._,this.observers=[],this.state=r.state||u(),this.setOptions(r.options),this.scheduleGc()}setOptions(r){this.options={...this.defaultOptions,...r},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(r){this.dispatch({type:"setState",state:r})}addObserver(r){this.observers.includes(r)||(this.observers.push(r),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:r}))}removeObserver(r){this.observers=this.observers.filter(n=>n!==r),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:r})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var r,n;return null!=(r=null==(n=this.retryer)?void 0:n.continue())?r:this.execute()}async execute(){var r,n,i,o,a,s,c,u,d,h,p,f,m,g,v,y,b,x,_,w;let S="loading"===this.state.status;try{if(!S){this.dispatch({type:"loading",variables:this.options.variables}),await (null==(d=(h=this.mutationCache.config).onMutate)?void 0:d.call(h,this.state.variables,this));let r=await (null==(p=(f=this.options).onMutate)?void 0:p.call(f,this.state.variables));r!==this.state.context&&this.dispatch({type:"loading",context:r,variables:this.state.variables})}let m=await (()=>{var r;return this.retryer=(0,l.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(r,n)=>{this.dispatch({type:"failed",failureCount:r,error:n})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(r=this.options.retry)?r:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise})();return await (null==(r=(n=this.mutationCache.config).onSuccess)?void 0:r.call(n,m,this.state.variables,this.state.context,this)),await (null==(i=(o=this.options).onSuccess)?void 0:i.call(o,m,this.state.variables,this.state.context)),await (null==(a=(s=this.mutationCache.config).onSettled)?void 0:a.call(s,m,null,this.state.variables,this.state.context,this)),await (null==(c=(u=this.options).onSettled)?void 0:c.call(u,m,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:m}),m}catch(r){try{throw await (null==(m=(g=this.mutationCache.config).onError)?void 0:m.call(g,r,this.state.variables,this.state.context,this)),await (null==(v=(y=this.options).onError)?void 0:v.call(y,r,this.state.variables,this.state.context)),await (null==(b=(x=this.mutationCache.config).onSettled)?void 0:b.call(x,void 0,r,this.state.variables,this.state.context,this)),await (null==(_=(w=this.options).onSettled)?void 0:_.call(w,void 0,r,this.state.variables,this.state.context)),r}finally{this.dispatch({type:"error",error:r})}}}dispatch(r){this.state=(n=>{switch(r.type){case"failed":return{...n,failureCount:r.failureCount,failureReason:r.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"loading":return{...n,context:r.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!(0,l.Kw)(this.options.networkMode),status:"loading",variables:r.variables};case"success":return{...n,data:r.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:r.error,failureCount:n.failureCount+1,failureReason:r.error,isPau
244sed:!1,status:"error"};case"setState":return{...n,...r.state}}})(this.state),a.V.batch(()=>{this.observers.forEach(n=>{n.onMutationUpdate(r)}),this.mutationCache.notify({mutation:this,type:"updated",action:r})})}}function u(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}},30081:function(r,n,i){"use strict";i.d(n,{V:function(){return a}});var o=i(32161);let a=function(){let r=[],n=0,i=r=>{r()},a=r=>{r()},s=r=>{let i;n++;try{i=r()}finally{--n||u()}return i},l=a=>{n?r.push(a):(0,o.A4)(()=>{i(a)})},c=r=>(...n)=>{l(()=>{r(...n)})},u=()=>{let n=r;r=[],n.length&&(0,o.A4)(()=>{a(()=>{n.forEach(r=>{i(r)})})})},d=r=>{i=r},h=r=>{a=r};return{batch:s,batchCalls:c,schedule:l,setNotifyFunction:d,setBatchNotifyFunction:h}}()},96474:function(r,n,i){"use strict";i.d(n,{N:function(){return c}});var o=i(33989),a=i(32161);let s=["online","offline"];class l extends o.l{constructor(){super(),this.setup=r=>{if(!a.sk&&window.addEventListener){let n=()=>r();return s.forEach(r=>{window.addEventListener(r,n,!1)}),()=>{s.forEach(r=>{window.removeEventListener(r,n)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var r;null==(r=this.cleanup)||r.call(this),this.cleanup=void 0}}setEventListener(r){var n;this.setup=r,null==(n=this.cleanup)||n.call(this),this.cleanup=r(r=>{"boolean"==typeof r?this.setOnline(r):this.onOnline()})}setOnline(r){let n=this.online!==r;n&&(this.online=r,this.onOnline())}onOnline(){this.listeners.forEach(({listener:r})=>{r()})}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}}let c=new l},52924:function(r,n,i){"use strict";i.d(n,{z:function(){return u}});var o=i(32161),a=i(30081),s=i(15761),l=i(33989),c=i(72379);class u extends l.l{constructor(r,n){super(),this.client=r,this.options=n,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(n)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),d(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return h(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return h(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(r,n){let i=this.options,a=this.currentQuery;if(this.options=this.client.defaultQueryOptions(r),(0,o.VS)(i,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=i.queryKey),this.updateQuery();let s=this.hasListeners();s&&p(this.currentQuery,a,this.options,i)&&this.executeFetch(),this.updateResult(n),s&&(this.currentQuery!==a||this.options.enabled!==i.enabled||this.options.staleTime!==i.staleTime)&&this.updateStaleTimeout();let l=this.computeRefetchInterval();s&&(this.currentQuery!==a||this.options.enabled!==i.enabled||l!==this.currentRefetchInterval)&&this.updateRefetchInterval(l)}getOptimisticResult(r){let n=this.client.getQueryCache().build(this.client,r),i=this.createResult(n,r);return r.keepPreviousData||(void 0!==r.placeholderData?!i.isPlaceholderData:(0,o.VS)(this.getCurrentResult(),i))||(this.currentResult=i,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),i}getCurrentResult(){return this.currentResult}trackResult(r){let n={};return Object.keys(r).forEach(i=>{Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(i),r[i])})}),n}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:r,...n}={}){return this.fetch({...n,meta:{refetchPage:r}}
244)}fetchOptimistic(r){let n=this.client.defaultQueryOptions(r),i=this.client.getQueryCache().build(this.client,n);return i.isFetchingOptimistic=!0,i.fetch().then(()=>this.createResult(i,n))}fetch(r){var n;return this.executeFetch({...r,cancelRefetch:null==(n=r.cancelRefetch)||n}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(r){this.updateQuery();let n=this.currentQuery.fetch(this.options,r);return null!=r&&r.throwOnError||(n=n.catch(o.ZT)),n}updateStaleTimeout(){if(this.clearStaleTimeout(),o.sk||this.currentResult.isStale||!(0,o.PN)(this.options.staleTime))return;let r=(0,o.Kp)(this.currentResult.dataUpdatedAt,this.options.staleTime);this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},r+1)}computeRefetchInterval(){var r;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(r=this.options.refetchInterval)&&r}updateRefetchInterval(r){this.clearRefetchInterval(),this.currentRefetchInterval=r,!o.sk&&!1!==this.options.enabled&&(0,o.PN)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||s.j.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(r,n){let i;let a=this.currentQuery,s=this.options,l=this.currentResult,u=this.currentResultState,h=this.currentResultOptions,m=r!==a,g=m?r.state:this.currentQueryInitialState,v=m?this.currentResult:this.previousQueryResult,{state:y}=r,{dataUpdatedAt:b,error:x,errorUpdatedAt:_,fetchStatus:w,status:S}=y,T=!1,E=!1;if(n._optimisticResults){let i=this.hasListeners(),o=!i&&d(r,n),l=i&&p(r,a,n,s);(o||l)&&(w=(0,c.Kw)(r.options.networkMode)?"fetching":"paused",b||(S="loading")),"isRestoring"===n._optimisticResults&&(w="idle")}if(n.keepPreviousData&&!y.dataUpdatedAt&&null!=v&&v.isSuccess&&"error"!==S)i=v.data,b=v.dataUpdatedAt,S=v.status,T=!0;else if(n.select&&void 0!==y.data){if(l&&y.data===(null==u?void 0:u.data)&&n.select===this.selectFn)i=this.selectResult;else try{this.selectFn=n.select,i=n.select(y.data),i=(0,o.oE)(null==l?void 0:l.data,i,n),this.selectResult=i,this.selectError=null}catch(r){this.selectError=r}}else i=y.data;if(void 0!==n.placeholderData&&void 0===i&&"loading"===S){let r;if(null!=l&&l.isPlaceholderData&&n.placeholderData===(null==h?void 0:h.placeholderData))r=l.data;else if(r="function"==typeof n.placeholderData?n.placeholderData():n.placeholderData,n.select&&void 0!==r)try{r=n.select(r),this.selectError=null}catch(r){this.selectError=r}void 0!==r&&(S="success",i=(0,o.oE)(null==l?void 0:l.data,r,n),E=!0)}this.selectError&&(x=this.selectError,i=this.selectResult,_=Date.now(),S="error");let k="fetching"===w,C="loading"===S,P="error"===S,O={status:S,fetchStatus:w,isLoading:C,isSuccess:"success"===S,isError:P,isInitialLoading:C&&k,data:i,dataUpdatedAt:b,error:x,errorUpdatedAt:_,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>g.dataUpdateCount||y.errorUpdateCount>g.errorUpdateCount,isFetching:k,isRefetching:k&&!C,isLoadingError:P&&0===y.dataUpdatedAt,isPaused:"paused"===w,isPlaceholderData:E,isPreviousData:T,isRefetchError:P&&0!==y.dataUpdatedAt,isStale:f(r,n),refetch:this.refetch,remove:this.remove};return O}updateResult(r){let n=this.currentResult,i=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,(0,o.VS)(i,n))return;this.currentResult=i;let a={cache:!0};(null==r?void 0:r.listeners)!==!1&&(()=>{if(!n)return!0;let{notifyOnChangeProps:r}=this.options,i="function"==typeof r?r():r;if("all"===i||!i&&!this.trackedProps.size)return!0;let o=new Set(null!=i?i:this.trackedProps);return this.options.useErrorBoundary&&o.add("error"),Object.keys(this.currentResult).some(r=>{let i=this.currentResult[r]!==n[r];return i&&o.has(r)})})()&&(a.listeners=!0),this.notify({...a,...r})}updateQuery(){let r=this.client.getQueryCache().build(this.client,this.options);if(r===this.currentQuery)return;let n=this.currentQuery;this.currentQuery=r,this.currentQueryInitialState=r.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==n||n.removeObserver(this),r.addObserver(this))}onQueryUpdate(r){let n={};"success"===r.type?n.onSuccess=!r.manual:"error"!==r.type||(0,c.DV)(r.error)||(n.onError=!0),this.updateResult(n),this.hasListeners()&&this.updateTimers()}notify(r){a.V.batch(()=>{var n,i,o,a,s,l,c,u;r.onSuccess?(null==(n=(i=this.options).onSuccess)||n.call(i,this.currentResult.data),null==(o=(a=this.options).onSettled)||o.call(a,this.currentResult.data,null)):r.onError&&(null==(s=(l=this.options).onError)||s.call(l,this.currentResult.error),null==(c=(u=this.options).onSettled)||c.c
244all(u,void 0,this.currentResult.error)),r.listeners&&this.listeners.forEach(({listener:r})=>{r(this.currentResult)}),r.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function d(r,n){return!1!==n.enabled&&!r.state.dataUpdatedAt&&!("error"===r.state.status&&!1===n.retryOnMount)||r.state.dataUpdatedAt>0&&h(r,n,n.refetchOnMount)}function h(r,n,i){if(!1!==n.enabled){let o="function"==typeof i?i(r):i;return"always"===o||!1!==o&&f(r,n)}return!1}function p(r,n,i,o){return!1!==i.enabled&&(r!==n||!1===o.enabled)&&(!i.suspense||"error"!==r.state.status)&&f(r,i)}function f(r,n){return r.isStaleByTime(n.staleTime)}},89643:function(r,n,i){"use strict";i.d(n,{F:function(){return a}});var o=i(32161);class a{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,o.PN)(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(r){this.cacheTime=Math.max(this.cacheTime||0,null!=r?r:o.sk?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}},72379:function(r,n,i){"use strict";i.d(n,{DV:function(){return d},Kw:function(){return c},Mz:function(){return h}});var o=i(15761),a=i(96474),s=i(32161);function l(r){return Math.min(1e3*2**r,3e4)}function c(r){return(null!=r?r:"online")!=="online"||a.N.isOnline()}class u{constructor(r){this.revert=null==r?void 0:r.revert,this.silent=null==r?void 0:r.silent}}function d(r){return r instanceof u}function h(r){let n,i,d,h=!1,p=0,f=!1,m=new Promise((r,n)=>{i=r,d=n}),g=n=>{f||(_(new u(n)),null==r.abort||r.abort())},v=()=>{h=!0},y=()=>{h=!1},b=()=>!o.j.isFocused()||"always"!==r.networkMode&&!a.N.isOnline(),x=o=>{f||(f=!0,null==r.onSuccess||r.onSuccess(o),null==n||n(),i(o))},_=i=>{f||(f=!0,null==r.onError||r.onError(i),null==n||n(),d(i))},w=()=>new Promise(i=>{n=r=>{let n=f||!b();return n&&i(r),n},null==r.onPause||r.onPause()}).then(()=>{n=void 0,f||null==r.onContinue||r.onContinue()}),S=()=>{let n;if(!f){try{n=r.fn()}catch(r){n=Promise.reject(r)}Promise.resolve(n).then(x).catch(n=>{var i,o;if(f)return;let a=null!=(i=r.retry)?i:3,c=null!=(o=r.retryDelay)?o:l,u="function"==typeof c?c(p,n):c,d=!0===a||"number"==typeof a&&p<a||"function"==typeof a&&a(p,n);if(h||!d){_(n);return}p++,null==r.onFail||r.onFail(p,n),(0,s.Gh)(u).then(()=>{if(b())return w()}).then(()=>{h?_(n):S()})})}};return c(r.networkMode)?S():w().then(S),{promise:m,cancel:g,continue:()=>{let r=null==n?void 0:n();return r?m:Promise.resolve()},cancelRetry:v,continueRetry:y}}},33989:function(r,n,i){"use strict";i.d(n,{l:function(){return o}});class o{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(r){let n={listener:r};return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},32161:function(r,n,i){"use strict";i.d(n,{A4:function(){return E},G9:function(){return k},Gh:function(){return T},I6:function(){return h},Kp:function(){return c},PN:function(){return l},Rm:function(){return m},SE:function(){return s},VS:function(){return b},X7:function(){return f},ZT:function(){return a},_v:function(){return u},_x:function(){return p},lV:function(){return d},oE:function(){return C},sk:function(){return o},to:function(){return v},yF:function(){return g}});let o="undefined"==typeof window||"Deno"in window;function a(){}function s(r,n){return"function"==typeof r?r(n):r}function l(r){return"number"==typeof r&&r>=0&&r!==1/0}function c(r,n){return Math.max(r+(n||0)-Date.now(),0)}function u(r,n,i){return S(r)?"function"==typeof n?{...i,queryKey:r,queryFn:n}:{...n,queryKey:r}:r}function d(r,n,i){return S(r)?"function"==typeof n?{...i,mutationKey:r,mutationFn:n}:{...n,mutationKey:r}:"function"==typeof r?{...n,mutationFn:r}:{...r}}function h(r,n,i){return S(r)?[{...n,queryKey:r},i]:[r||{},n]}function p(r,n){let{type:i="all",exact:o,fetchStatus:a,predicate:s,queryKey:l,stale:c}=r;if(S(l)){if(o){if(n.queryHash!==m(l,n.options))return!1}else{if(!y(n.queryKey,l))return!1}}if("all"!==i){let r=n.isActive();if("active"===i&&!r||"inactive"===i&&r)return!1}return("boolean"!=typeof c||n.isStale()===c)&&(void 0===a||a===n.state.fetchStatus)&&(!s||!!s(n))}function f(r,n){let{exact:i,fetching:o,predicate:a,mutationKey:s}=r;if(S(s)){if(!n.options.mutationKey)return!1;if(i){if(g(n.options.mutationKey)!==g(s))return!1}else{if(!y(n.options.mutationKey,s))return!1}}return("boolean"!=typeof o||"loading"===n.state.status===o)&&(!a||!!a(n))}function m(r,n){let i=(null==n?void 0:n.queryKeyHashFn)||g;return i(r)}function g(r){return JSON.stringify(r,(r,n)=>_(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function v(r,n){return y(r,n)}function y(r,n){return r===n||typeof r==typeof n&&!!r&&!!n&&"object"==typeof r&&"object"==typeof n&&!Object.keys(n).some(i=>!y(r[i],n[i]))}function b(r,n){if(r&&!n||n&&!r)return!1;for(let i in r)if(r[i]!==n[i])return!1;return!0}function x(r){return Array.isArray(r)&&r.length===Object.keys(r).length}function _(r){if(!w(r))return!1;let n=r.constructor;if(void 0===n)return!0;let i=n.prototype;return!!(w(i)&&i.hasOwnProperty("isPrototypeOf"))}function w(r){return"[object Object]"===Object.prototype.toString.call(r)}function S(r){return Array.isArray(r)}function T(r){return new Promise(n=>{setTimeout(n,r)})}function E(r){T(0).then(r)}function k(){if("function"==typeof AbortController)return new AbortController}function C(r,n,i){return null!=i.isDataEqual&&i.isDataEqual(r,n)?r:"function"==typeof i.structuralSharing?i.structuralSharing(r,n):!1!==i.structuralSharing?function r(n,i){if(n===i)return n;let o=x(n)&&x(i);if(o||_(n)&&_(i)){let a=o?n.length:Object.keys(n).length,s=o?i:Object.keys(i),l=s.length,c=o?[]:{},u=0;for(let a=0;a<l;a++){let l=o?a:s[a];c[l]=r(n[l],i[l]),c[l]===n[l]&&u++}return a===l&&u===a?n:c}return i}(r,n):n}},85945:function(r,n,i){"use strict";i.d(n,{NL:function(){return c},aH:function(){return u}});var o=i(67294);let a=o.createContext(void 0),s=o.createContext(!1);function l(r,n){return r||(n&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=a
244),window.ReactQueryClientContext):a)}let c=({context:r}={})=>{let n=o.useContext(l(r,o.useContext(s)));if(!n)throw Error("No QueryClient set, use QueryClientProvider to set one");return n},u=({client:r,children:n,context:i,contextSharing:a=!1})=>{o.useEffect(()=>(r.mount(),()=>{r.unmount()}),[r]);let c=l(i,a);return o.createElement(s.Provider,{value:!i&&a},o.createElement(c.Provider,{value:r},n))}},67187:function(r,n,i){"use strict";let o;i.d(n,{r:function(){return w}});var a=i(67294),s=i(30081),l=i(464);let c=a.createContext((o=!1,{clearReset:()=>{o=!1},reset:()=>{o=!0},isReset:()=>o})),u=()=>a.useContext(c);var d=i(85945);let h=a.createContext(!1),p=()=>a.useContext(h);h.Provider;var f=i(24798);let m=(r,n)=>{(r.suspense||r.useErrorBoundary)&&!n.isReset()&&(r.retryOnMount=!1)},g=r=>{a.useEffect(()=>{r.clearReset()},[r])},v=({result:r,errorResetBoundary:n,useErrorBoundary:i,query:o})=>r.isError&&!n.isReset()&&!r.isFetching&&(0,f.L)(i,[r.error,o]),y=r=>{r.suspense&&"number"!=typeof r.staleTime&&(r.staleTime=1e3)},b=(r,n)=>r.isLoading&&r.isFetching&&!n,x=(r,n,i)=>(null==r?void 0:r.suspense)&&b(n,i),_=(r,n,i)=>n.fetchOptimistic(r).then(({data:n})=>{null==r.onSuccess||r.onSuccess(n),null==r.onSettled||r.onSettled(n,null)}).catch(n=>{i.clearReset(),null==r.onError||r.onError(n),null==r.onSettled||r.onSettled(void 0,n)});function w(r,n){let i=(0,d.NL)({context:r.context}),o=p(),c=u(),h=i.defaultQueryOptions(r);h._optimisticResults=o?"isRestoring":"optimistic",h.onError&&(h.onError=s.V.batchCalls(h.onError)),h.onSuccess&&(h.onSuccess=s.V.batchCalls(h.onSuccess)),h.onSettled&&(h.onSettled=s.V.batchCalls(h.onSettled)),y(h),m(h,c),g(c);let[f]=a.useState(()=>new n(i,h)),b=f.getOptimisticResult(h);if((0,l.$)(a.useCallback(r=>{let n=o?()=>void 0:f.subscribe(s.V.batchCalls(r));return f.updateResult(),n},[f,o]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),a.useEffect(()=>{f.setOptions(h,{listeners:!1})},[h,f]),x(h,b,o))throw _(h,f,c);if(v({result:b,errorResetBoundary:c,useErrorBoundary:h.useErrorBoundary,query:f.getCurrentQuery()}))throw b.error;return h.notifyOnChangeProps?b:f.trackResult(b)}},59403:function(r,n,i){"use strict";i.d(n,{N:function(){return u}});var o=i(32161),a=i(52924),s=i(9499);class l extends a.z{constructor(r,n){super(r,n)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(r,n){super.setOptions({...r,behavior:(0,s.Gm)()},n)}getOptimisticResult(r){return r.behavior=(0,s.Gm)(),super.getOptimisticResult(r)}fetchNextPage({pageParam:r,...n}={}){return this.fetch({...n,meta:{fetchMore:{direction:"forward",pageParam:r}}})}fetchPreviousPage({pageParam:r,...n}={}){return this.fetch({...n,meta:{fetchMore:{direction:"backward",pageParam:r}}})}createResult(r,n){var i,o,a,l,c,u;let{state:d}=r,h=super.createResult(r,n),{isFetching:p,isRefetching:f}=h,m=p&&(null==(i=d.fetchMeta)?void 0:null==(o=i.fetchMore)?void 0:o.direction)==="forward",g=p&&(null==(a=d.fetchMeta)?void 0:null==(l=a.fetchMore)?void 0:l.direction)==="backward";return{...h,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,s.Qy)(n,null==(c=d.data)?void 0:c.pages),hasPreviousPage:(0,s.ZF)(n,null==(u=d.data)?void 0:u.pages),isFetchingNextPage:m,isFetchingPreviousPage:g,isRefetching:f&&!m&&!g}}}var c=i(67187);function u(r,n,i){let a=(0,o._v)(r,n,i);return(0,c.r)(a,l)}},48228:function(r,n,i){"use strict";i.d(n,{D:function(){return f}});var o=i(67294),a=i(32161),s=i(89886),l=i(30081),c=i(33989);class u extends c.l{constructor(r,n){super(),this.client=r,this.setOptions(n),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var n;let i=this.options;this.options=this.client.defaultMutationOptions(r),(0,a.VS)(i,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(n=this.currentMutation)||n.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var r;null==(r=this.currentMutation)||r.removeObserver(this)}}onMutationUpdate(r){this.updateResult();let n={listeners:!0};"success"===r.type?n.onSuccess=!0:"error"===r.type&&(n.onError=!0),this.notify(n)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(r,n){return this.mutateOptions=n,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==r?r:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){let r=this.currentMutation?this.currentMutation.state:(0,s.R)(),n={...r,isLoading:"loading"===r.status,isSuccess:"success"===r.status,isError:"error"===r.status,isIdle:"idle"===r.status,mutate:this.mutate,reset:this.reset};this.currentResult=n}notify(r){l.V.batch(()=>
244{if(this.mutateOptions&&this.hasListeners()){var n,i,o,a,s,l,c,u;r.onSuccess?(null==(n=(i=this.mutateOptions).onSuccess)||n.call(i,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(o=(a=this.mutateOptions).onSettled)||o.call(a,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)):r.onError&&(null==(s=(l=this.mutateOptions).onError)||s.call(l,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(c=(u=this.mutateOptions).onSettled)||c.call(u,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context))}r.listeners&&this.listeners.forEach(({listener:r})=>{r(this.currentResult)})})}}var d=i(464),h=i(85945),p=i(24798);function f(r,n,i){let s=(0,a.lV)(r,n,i),c=(0,h.NL)({context:s.context}),[f]=o.useState(()=>new u(c,s));o.useEffect(()=>{f.setOptions(s)},[f,s]);let g=(0,d.$)(o.useCallback(r=>f.subscribe(l.V.batchCalls(r)),[f]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),v=o.useCallback((r,n)=>{f.mutate(r,n).catch(m)},[f]);if(g.error&&(0,p.L)(f.options.useErrorBoundary,[g.error]))throw g.error;return{...g,mutate:v,mutateAsync:g.mutate}}function m(){}},36492:function(r,n,i){"use strict";i.d(n,{a:function(){return l}});var o=i(32161),a=i(52924),s=i(67187);function l(r,n,i){let l=(0,o._v)(r,n,i);return(0,s.r)(l,a.z)}},464:function(r,n,i){"use strict";i.d(n,{$:function(){return a}});var o=i(61688);let a=o.useSyncExternalStore},24798:function(r,n,i){"use strict";function o(r,n){return"function"==typeof r?r(...n):!!r}i.d(n,{L:function(){return o}})},90512:function(r,n,i){"use strict";n.Z=function(){for(var r,n,i=0,o="",a=arguments.length;i<a;i++)(r=arguments[i])&&(n=function r(n){var i,o,a="";if("string"==typeof n||"number"==typeof n)a+=n;else if("object"==typeof n){if(Array.isArray(n)){var s=n.length;for(i=0;i<s;i++)n[i]&&(o=r(n[i]))&&(a&&(a+=" "),a+=o)}else for(o in n)n[o]&&(a&&(a+=" "),a+=o)}return a}(r))&&(o&&(o+=" "),o+=n);return o}},94076:function(r,n,i){"use strict";i.d(n,{Ps:function(){return s}});class o extends Error{constructor(r,n){let i=`${o.extractMessage(r)}: ${JSON.stringify({response:r,request:n})}`;super(i),Object.setPrototypeOf(this,o.prototype),this.response=r,this.request=n,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,o)}static extractMessage(r){return r.errors?.[0]?.message??`GraphQL Error (Code: ${r.status})`}}i(54098),i(86355),i(62938);class a{get type(){return this._type}get id(){return this._id}get payload(){return this._payload}constructor(r,n,i){this._type=r,this._payload=n,this._id=i}get text(){let r={type:this.type};return null!=this.id&&void 0!=this.id&&(r.id=this.id),null!=this.payload&&void 0!=this.payload&&(r.payload=this.payload),JSON.stringify(r)}static parse(r,n){let{type:i,payload:o,id:s}=JSON.parse(r);return new a(i,n(o),s)}}let s=(r,...n)=>r.reduce((r,i,o)=>`${r}${i}${o in n?String(n[o]):""}`,"")},37826:function(r,n,i){"use strict";function o(r,n){let i=Boolean(r);if(!i)throw Error(n)}i.d(n,{a:function(){return o}})},25821:function(r,n,i){"use strict";function o(r){return function r(n,i){switch(typeof n){case"string":return JSON.stringify(n);case"function":return n.name?`[function ${n.name}]`:"[function]";case"object":return function(n,i){if(null===n)return"null";if(i.includes(n))return"[Circular]";let o=[...i,n];if("function"==typeof n.toJSON){let i=n.toJSON();if(i!==n)return"string"==typeof i?i:r(i,o)}else if(Array.isArray(n))return function(n,i){if(0===n.length)return"[]";if(i.length>2)return"[Array]";let o=Math.min(10,n.length),a=n.length-o,s=[];for(let a=0;a<o;++a)s.push(r(n[a],i));return 1===a?s.push("... 1 more item"):a>1&&s.push(`... ${a} more items`),"["+s.join(", ")+"]"}(n,o);return function(n,i){let o=Object.entries(n);if(0===o.length)return"{}";if(i.length>2)return"["+function(r){let n=Object.prototype.toString.call(r).replace(/^\[object /,"").replace(/]$/,"");if("Object"===n&&"function"==typeof r.constructor){let n=r.constructor.name;if("string"==typeof n&&""!==n)return n}return n}(n)+"]";let a=o.map(([n,o])=>n+": "+r(o,i));return"{ "+a.join(", ")+" }"}(n,o)}(n,i);default:return String(n)}}(r,[])}i.d(n,{X:function(){return o}})},72380:function(r,n,i){"use strict";var o,a;i.d(n,{UG:function(){return d},WU:function(){return l},Ye:function(){return s},h8:function(){return c},ku:function(){return o}});class s{constructor(r,n,i){this.start=r.start,this.end=n.end,this.startToken=r,this.endToken=n,this.source=i}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class l{constructor(r,n,i,o,a,s){this.kind=r,this.start=n,this.end=i,this.line=o,this.column=a,this.value=s,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}let c={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],Float
244Value:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},u=new Set(Object.keys(c));function d(r){let n=null==r?void 0:r.kind;return"string"==typeof n&&u.has(n)}(a=o||(o={})).QUERY="query",a.MUTATION="mutation",a.SUBSCRIPTION="subscription"},87392:function(r,n,i){"use strict";i.d(n,{LZ:function(){return s},wv:function(){return a}});var o=i(68297);function a(r){var n,i;let a=Number.MAX_SAFE_INTEGER,s=null,l=-1;for(let n=0;n<r.length;++n){let c=r[n],u=function(r){let n=0;for(;n<r.length&&(0,o.FD)(r.charCodeAt(n));)++n;return n}(c);u!==c.length&&(s=null!==(i=s)&&void 0!==i?i:n,l=n,0!==n&&u<a&&(a=u))}return r.map((r,n)=>0===n?r:r.slice(a)).slice(null!==(n=s)&&void 0!==n?n:0,l+1)}function s(r,n){let i=r.replace(/"""/g,'\\"""'),a=i.split(/\r\n|[\n\r]/g),s=1===a.length,l=a.length>1&&a.slice(1).every(r=>0===r.length||(0,o.FD)(r.charCodeAt(0))),c=i.endsWith('\\"""'),u=r.endsWith('"')&&!c,d=r.endsWith("\\"),h=u||d,p=!(null!=n&&n.minimize)&&(!s||r.length>70||h||l||c),f="",m=s&&(0,o.FD)(r.charCodeAt(0));return(p&&!m||l)&&(f+="\n"),f+=i,(p||h)&&(f+="\n"),'"""'+f+'"""'}},68297:function(r,n,i){"use strict";function o(r){return 9===r||32===r}function a(r){return r>=48&&r<=57}function s(r){return r>=97&&r<=122||r>=65&&r<=90}function l(r){return s(r)||95===r}function c(r){return s(r)||a(r)||95===r}i.d(n,{FD:function(){return o},HQ:function(){return c},LQ:function(){return l},X1:function(){return a}})},97359:function(r,n,i){"use strict";var o,a;i.d(n,{h:function(){return o}}),(a=o||(o={})).NAME="Name",a.DOCUMENT="Document",a.OPERATION_DEFINITION="OperationDefinition",a.VARIABLE_DEFINITION="VariableDefinition",a.SELECTION_SET="SelectionSet",a.FIELD="Field",a.ARGUMENT="Argument",a.FRAGMENT_SPREAD="FragmentSpread",a.INLINE_FRAGMENT="InlineFragment",a.FRAGMENT_DEFINITION="FragmentDefinition",a.VARIABLE="Variable",a.INT="IntValue",a.FLOAT="FloatValue",a.STRING="StringValue",a.BOOLEAN="BooleanValue",a.NULL="NullValue",a.ENUM="EnumValue",a.LIST="ListValue",a.OBJECT="ObjectValue",a.OBJECT_FIELD="ObjectField",a.DIRECTIVE="Directive",a.NAMED_TYPE="NamedType",a.LIST_TYPE="ListType",a.NON_NULL_TYPE="NonNullType",a.SCHEMA_DEFINITION="SchemaDefinition",a.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",a.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",a.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",a.FIELD_DEFINITION="FieldDefinition",a.INPUT_VALUE_DEFINITION="InputValueDefinition",a.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",a.UNION_TYPE_DEFINITION="UnionTypeDefinition",a.ENUM_TYPE_DEFINITION="EnumTypeDefinition",a.ENUM_VALUE_DEFINITION="EnumValueDefinition",a.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",a.DIRECTIVE_DEFINITION="DirectiveDefinition",a.SCHEMA_EXTENSION="SchemaExtension",a.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",a.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",a.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",a.UNION_TYPE_EXTENSION="UnionTypeExtension",a.ENUM_TYPE_EXTENSION="EnumTypeExtension",a.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"},86355:function(r,n,i){"use strict";i.d(n,{Qc:function(){return R}});let o=/\r\n|[\n\r]/g;function a(r,n){let i=0,a=1;for(let s of r.body.matchAll(o)){if("number"==typeof s.index||function(r,n){let i=Boolean(r);if(!i)throw Error(null!=n?n:"Unexpected invariant triggered.")}(!1),s.index>=n)break;i=s.index+s[0].length,a+=1}return{line:a,column:n+1-i}}function s(r,n){let i=r.locationOffset.column-1,o="".padStart(i)+r.body,a=n.line-1,s=r.locationOffset.line-1,c=n.line+s,u=1===n.line?i:0,d=n.column+u,h=`${r.name}:${c}:${d} 245`,p=o.split(/\r\n|[\n\r]/g),f=p[a];if(f.length>120){let r=Math.floor(d/80),n=[];for(let r=0;r<f.length;r+=80)n.push(f.slice(r,r+80));return h+l([[`${c} |`,n[0]],...n.slice(1,r+1).map(r=>["|",r]),["|","^".padStart(d%80)],["|",n[r+1]]])}return h+l([[`${c-1} |`,p[a-1]],[`${c} |`,f],["|","^".padStart(d)],[`${c+1} |`,p[a+1]]])}function l(r){let n=r.filter(([r,n])=>void 0!==n),i=Math.max(...n.map(([r])=>r.length));return n.map(([r,n])=>r.padStart(i)+(n?" "+n:"")).join("\n")}
245class c extends Error{constructor(r,...n){var i,o,s,l;let{nodes:d,source:h,positions:p,path:f,originalError:m,extensions:g}=function(r){let n=r[0];return null==n||"kind"in n||"length"in n?{nodes:n,source:r[1],positions:r[2],path:r[3],originalError:r[4],extensions:r[5]}:n}(n);super(r),this.name="GraphQLError",this.path=null!=f?f:void 0,this.originalError=null!=m?m:void 0,this.nodes=u(Array.isArray(d)?d:d?[d]:void 0);let v=u(null===(i=this.nodes)||void 0===i?void 0:i.map(r=>r.loc).filter(r=>null!=r));this.source=null!=h?h:null==v?void 0:null===(o=v[0])||void 0===o?void 0:o.source,this.positions=null!=p?p:null==v?void 0:v.map(r=>r.start),this.locations=p&&h?p.map(r=>a(h,r)):null==v?void 0:v.map(r=>a(r.source,r.start));let y="object"==typeof(l=null==m?void 0:m.extensions)&&null!==l?null==m?void 0:m.extensions:void 0;this.extensions=null!==(s=null!=g?g:y)&&void 0!==s?s:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=m&&m.stack?Object.defineProperty(this,"stack",{value:m.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,c):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let r=this.message;if(this.nodes){for(let i of this.nodes)if(i.loc){var n;r+="\n\n"+s((n=i.loc).source,a(n.source,n.start))}}else if(this.source&&this.locations)for(let n of this.locations)r+="\n\n"+s(this.source,n);return r}toJSON(){let r={message:this.message};return null!=this.locations&&(r.locations=this.locations),null!=this.path&&(r.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(r.extensions=this.extensions),r}}function u(r){return void 0===r||0===r.length?void 0:r}function d(r,n,i){return new c(`Syntax Error: ${i}`,{source:r,positions:[n]})}var h,p,f,m,g=i(72380);(h=f||(f={})).QUERY="QUERY",h.MUTATION="MUTATION",h.SUBSCRIPTION="SUBSCRIPTION",h.FIELD="FIELD",h.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",h.FRAGMENT_SPREAD="FRAGMENT_SPREAD",h.INLINE_FRAGMENT="INLINE_FRAGMENT",h.VARIABLE_DEFINITION="VARIABLE_DEFINITION",h.SCHEMA="SCHEMA",h.SCALAR="SCALAR",h.OBJECT="OBJECT",h.FIELD_DEFINITION="FIELD_DEFINITION",h.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",h.INTERFACE="INTERFACE",h.UNION="UNION",h.ENUM="ENUM",h.ENUM_VALUE="ENUM_VALUE",h.INPUT_OBJECT="INPUT_OBJECT",h.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION";var v=i(97359),y=i(87392),b=i(68297);(p=m||(m={})).SOF="<SOF>",p.EOF="<EOF>",p.BANG="!",p.DOLLAR="$",p.AMP="&",p.PAREN_L="(",p.PAREN_R=")",p.SPREAD="...",p.COLON=":",p.EQUALS="=",p.AT="@",p.BRACKET_L="[",p.BRACKET_R="]",p.BRACE_L="{",p.PIPE="|",p.BRACE_R="}",p.NAME="Name",p.INT="Int",p.FLOAT="Float",p.STRING="String",p.BLOCK_STRING="BlockString",p.COMMENT="Comment";class x{constructor(r){let n=new g.WU(m.SOF,0,0,0,0);this.source=r,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){this.lastToken=this.token;let r=this.token=this.lookahead();return r}lookahead(){let r=this.token;if(r.kind!==m.EOF)do if(r.next)r=r.next;else{let n=function(r,n){let i=r.source.body,o=i.length,a=n;for(;a<o;){let n=i.charCodeAt(a);switch(n){case 65279:case 9:case 32:case 44:++a;continue;case 10:++a,++r.line,r.lineStart=a;continue;case 13:10===i.charCodeAt(a+1)?a+=2:++a,++r.line,r.lineStart=a;continue;case 35:return function(r,n){let i=r.source.body,o=i.length,a=n+1;for(;a<o;){let r=i.charCodeAt(a);if(10===r||13===r)break;if(_(r))++a;else if(w(i,a))a+=2;else break}return k(r,m.COMMENT,n,a,i.slice(n+1,a))}(r,a);case 33:return k(r,m.BANG,a,a+1);case 36:return k(r,m.DOLLAR,a,a+1);case 38:return k(r,m.AMP,a,a+1);case 40:return k(r,m.PAREN_L,a,a+1);case 41:return k(r,m.PAREN_R,a,a+1);case 46:if(46===i.charCodeAt(a+1)&&46===i.charCodeAt(a+2))return k(r,m.SPREAD,a,a+3);break;case 58:return k(r,m.COLON,a,a+1);case 61:return k(r,m.EQUALS,a,a+1);case 64:return k(r,m.AT,a,a+1);case 91:return k(r,m.BRACKET_L,a,a+1);case 93:return k(r,m.BRACKET_R,a,a+1);case 123:return k(r,m.BRACE_L,a,a+1);case 124:return k(r,m.PIPE,a,a+1);case 125:return k(r,m.BRACE_R,a,a+1);case 34:if(34===i.charCodeAt(a+1)&&34===i.charCodeAt(a+2))return function(r,n){let i=r.source.body,o=i.length,a=r.lineStart,s=n+3,l=s,c="",u=[];for(;s<o;){let o=i.charCodeAt(s);if(34===o&&34===i.charCodeAt(s+1)&&34===i.charCodeAt(s+2)){c+=i.slice(l,s),u.push(c);let o=k(r,m.BLOCK_STRING,n,s+3,(0,y.wv)(u).join("\n"));return r.line+=u.length-1,r.lineStart=a,o}if(92===o&&34===i.charCodeAt(s+1)&&34===i.charCodeAt(s+2)&&34===i.charCodeAt(s+3)){c+=i.slice(l,s),l=s+1,s+=4;continue}if(10===o||13===o){c+=i.slice(l,s),u.push(c),13===o&&10===i.charCodeAt(s+1)?s+=2:++s,c="",l=s,a=s;continue}if(_(o))++s;else if(w(i,s))s+=2;else throw d(r.source,s,`Invalid character within String: ${E(r,s)}.`)}throw d(r.source,s,"Unterminated string.")}(r,a);return function(r,n){let i=r.source.body,o=i.length,a=n+1,s=a,l="";for(;a<o;){let o=i.charCodeAt(a);if(34===o)return l+=i.slice(s,a),k(r,m.STRING,n,a+1,l);if(92===o){l+=i.slice(s,a);let n=117===i.charCodeAt(a+1)?123===i.charCodeAt(a+2)?function(r,n){let i=r.source.body,o=0,a=3;for(;a<12;){let r=i.charCodeAt(n+a++);if(125===r){if(a<5||!_(o))break;return{value:String.fromCodePoint(o),size:a}}if((o=o<<4|O(r))<0)break}throw d(r.source,n,`Invalid Unicode escape sequence: "${i.slice(n,n+a)}".`)}(r,a):function(r,n){let i=r.source.body,o=P(i,n+2);if(_(o))return{value:String.fromCodePoint(o),size:6};if(S(o)&&92===i.charCodeAt(n+6)&&117===i.charCodeAt(n+7)){let r=P(i,n+8);if(T(r))return{value:String.fromCodePoint(o,r),size:12}}throw d(r.source,n,`Invalid Unicode escape sequence: "${i.slice(n,n+6)}".`)}(r,a):function(r,n){let i=r.source.body,o=i.charCodeAt(n+1);switch(o){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw d(r.source,n,`Invalid character escape sequence: "${i.slice(n,n+2)}".`)}(r,a);l+=n.value,a+=n.size,s=a;continue}if(10===o||13===o)break;if(_(o))++a;else if(w(i,a))a+=2;else throw d(r.source,a,`Invalid character within String: ${E(r,a)}.`)}throw d(r.source,a,"Unterminated string.")}(r,a)}if((0,b.X1)(n)||45===n)return function(r,n,i){let o=r.source.body,a=n,s=i,l=!1;
245if(45===s&&(s=o.charCodeAt(++a)),48===s){if(s=o.charCodeAt(++a),(0,b.X1)(s))throw d(r.source,a,`Invalid number, unexpected digit after 0: ${E(r,a)}.`)}else a=C(r,a,s),s=o.charCodeAt(a);if(46===s&&(l=!0,s=o.charCodeAt(++a),a=C(r,a,s),s=o.charCodeAt(a)),(69===s||101===s)&&(l=!0,(43===(s=o.charCodeAt(++a))||45===s)&&(s=o.charCodeAt(++a)),a=C(r,a,s),s=o.charCodeAt(a)),46===s||(0,b.LQ)(s))throw d(r.source,a,`Invalid number, expected digit but got: ${E(r,a)}.`);return k(r,l?m.FLOAT:m.INT,n,a,o.slice(n,a))}(r,a,n);if((0,b.LQ)(n))return function(r,n){let i=r.source.body,o=i.length,a=n+1;for(;a<o;){let r=i.charCodeAt(a);if((0,b.HQ)(r))++a;else break}return k(r,m.NAME,n,a,i.slice(n,a))}(r,a);throw d(r.source,a,39===n?"Unexpected single quote character ('), did you mean to use a double quote (\")?":_(n)||w(i,a)?`Unexpected character: ${E(r,a)}.`:`Invalid character: ${E(r,a)}.`)}return k(r,m.EOF,o,o)}(this,r.end);r.next=n,n.prev=r,r=n}while(r.kind===m.COMMENT);return r}}function _(r){return r>=0&&r<=55295||r>=57344&&r<=1114111}function w(r,n){return S(r.charCodeAt(n))&&T(r.charCodeAt(n+1))}function S(r){return r>=55296&&r<=56319}function T(r){return r>=56320&&r<=57343}function E(r,n){let i=r.source.body.codePointAt(n);if(void 0===i)return m.EOF;if(i>=32&&i<=126){let r=String.fromCodePoint(i);return'"'===r?"'\"'":`"${r}"`}return"U+"+i.toString(16).toUpperCase().padStart(4,"0")}function k(r,n,i,o,a){let s=r.line,l=1+i-r.lineStart;return new g.WU(n,i,o,s,l,a)}function C(r,n,i){if(!(0,b.X1)(i))throw d(r.source,n,`Invalid number, expected digit but got: ${E(r,n)}.`);let o=r.source.body,a=n+1;for(;(0,b.X1)(o.charCodeAt(a));)++a;return a}function P(r,n){return O(r.charCodeAt(n))<<12|O(r.charCodeAt(n+1))<<8|O(r.charCodeAt(n+2))<<4|O(r.charCodeAt(n+3))}function O(r){return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:-1}var j=i(37826),A=i(25821);let M=globalThis.process&&!0,I=M?function(r,n){return r instanceof n}:function(r,n){if(r instanceof n)return!0;if("object"==typeof r&&null!==r){var i;let o=n.prototype[Symbol.toStringTag],a=Symbol.toStringTag in r?r[Symbol.toStringTag]:null===(i=r.constructor)||void 0===i?void 0:i.name;if(o===a){let n=(0,A.X)(r);throw Error(`Cannot use ${o} "${n}" from another module or realm. 246 247Ensure that there is only one instance of "graphql" in the node_modules 248directory. If different versions of "graphql" are the dependencies of other 249relied on modules, use "resolutions" to ensure only one version is installed. 250 251https://yarnpkg.com/en/docs/selective-version-resolutions 252 253Duplicate "graphql" modules cannot be used at the same time since different 254versions may have different capabilities and behavior. The data from one 255version used in the function from another could produce confusing and 256spurious results.`)}}return!1};class Z{constructor(r,n="GraphQL request",i={line:1,column:1}){"string"==typeof r||(0,j.a)(!1,`Body must be a string. Received: ${(0,A.X)(r)}.`),this.body=r,this.name=n,this.locationOffset=i,this.locationOffset.line>0||(0,j.a)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,j.a)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function R(r,n){let i=new D(r,n);return i.parseDocument()}class D{constructor(r,n={}){let i=I(r,Z)?r:new Z(r);this._lexer=new x(i),this._options=n,this._tokenCounter=0}parseName(){let r=this.expectToken(m.NAME);return this.node(r,{kind:v.h.NAME,value:r.value})}parseDocument(){return this.node(this._lexer.token,{kind:v.h.DOCUMENT,definitions:this.many(m.SOF,this.parseDefinition,m.EOF)})}parseDefinition(){if(this.peek(m.BRACE_L))return this.parseOperationDefinition();let r=this.peekDescription(),n=r?this._lexer.lookahead():this._lexer.token;if(n.kind===m.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(r)throw d(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){let r;let n=this._lexer.token;if(this.peek(m.BRACE_L))return this.node(n,{kind:v.h.OPERATION_DEFINITION,operation:g.ku.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let i=this.parseOperationType();return this.peek(m.NAME)&&(r=this.parseName()),this.node(n,{kind:v.h.OPERATION_DEFINITION,operation:i,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let r=this.expectToken(m.NAME);switch(r.value){case"query":return g.ku.QUERY;case"mutation":return g.ku.MUTATION;case"subscription":return g.ku.SUBSCRIPTION}throw this.unexpected(r)}parseVariableDefinitions(){return this.optionalMany(m.PAREN_L,this.parseVariableDefinition,m.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:v.h.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(m.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(m.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let r=this._lexer.token;return this.expectToken(m.DOLLAR),this.node(r,{kind:v.h.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:v.h.SELECTION_SET,selections:this.many(m.BRACE_L,this.parseSelection,m.BRACE_R)})}parseSelection(){return this.peek(m.SPREAD)?this.parseFragment():this.parseField()}parseField(){let r,n;let i=this._lexer.token,o=this.parseName();return this.expectOptionalToken(m.COLON)?(r=o,n=this.parseName()):n=o,this.node(i,{kind:v.h.FIELD,alias:r,name:n,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(m.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(r){let n=r?this.parseConstArgument:this.parseArgument;return this.optionalMany(m.PAREN_L,n,m.PAREN_R)}parseArgument(r=!1){let n=this._lexer.token,i=this.parseName();return this.expectToken(m.COLON),this.node(n,{kind:v.h.ARGUMENT,name:i,value:this.parseValueLiteral(r)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let r=this._lexer.token;this.expectToken(m.SPREAD);let n=this.expectOptionalKeyword("on");return!n&&this.peek(m.NAME)?this.node(r,{kind:v.h.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(r,{kind:v.h.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let r=this._lexer.token;return(this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables)?this.node(r,{kind:v.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(r,{kind:v.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(r){let n=this._lexer.token;switch(n.kind){case m.BRACKET_L:return this.parseList(r);case m.BRACE_L:return this.parseObject(r);case m.INT:return this.advanceLexer(),this.node(n,{kind:v.h.INT,value:n.value});case m.FLOAT:return this.advanceLexer(),this.node(n,{kind:v.h.FLOAT,value:n.value});case m.STRING:case m.BLOCK_STRING:return this.parseStringLiteral();case m.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:v.h.BOOLEAN,value:!0});case"false":return this.node(n,{kind:v.h.BOOLEAN,value:!1});case"null":return this.node(n,{kind:v.h.NULL});default:return this.node(n,{kind:v.h.ENUM,value:n.value})}case m.DOLLAR:if(r){if(this.expectToken(m.DOLLAR),this._lexer.token.kind===m.NAME){let r=this._lexer.token.value;throw d(this._lexer.source,n.start,`Unexpected variable "$${r}" in constant value.`)}throw this.unexpected(n)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let r=this._lexer.token;return this.advanceLexer(),this.node(r,{kind:v.h.STRING,value:r.value,block:r.kind===m.BLOCK_STRING})}parseList(r){let n=()=>this.parseValueLiteral(r);return this.node(this._lexer.token,{kind:v.h.LIST,values:this.any(m.BRACKET_L,n,m.BRACKET_R)})}parseObject(r){let n=()=>this.parseObjectField(r);
256return this.node(this._lexer.token,{kind:v.h.OBJECT,fields:this.any(m.BRACE_L,n,m.BRACE_R)})}parseObjectField(r){let n=this._lexer.token,i=this.parseName();return this.expectToken(m.COLON),this.node(n,{kind:v.h.OBJECT_FIELD,name:i,value:this.parseValueLiteral(r)})}parseDirectives(r){let n=[];for(;this.peek(m.AT);)n.push(this.parseDirective(r));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(r){let n=this._lexer.token;return this.expectToken(m.AT),this.node(n,{kind:v.h.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(r)})}parseTypeReference(){let r;let n=this._lexer.token;if(this.expectOptionalToken(m.BRACKET_L)){let i=this.parseTypeReference();this.expectToken(m.BRACKET_R),r=this.node(n,{kind:v.h.LIST_TYPE,type:i})}else r=this.parseNamedType();return this.expectOptionalToken(m.BANG)?this.node(n,{kind:v.h.NON_NULL_TYPE,type:r}):r}parseNamedType(){return this.node(this._lexer.token,{kind:v.h.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(m.STRING)||this.peek(m.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let r=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");let i=this.parseConstDirectives(),o=this.many(m.BRACE_L,this.parseOperationTypeDefinition,m.BRACE_R);return this.node(r,{kind:v.h.SCHEMA_DEFINITION,description:n,directives:i,operationTypes:o})}parseOperationTypeDefinition(){let r=this._lexer.token,n=this.parseOperationType();this.expectToken(m.COLON);let i=this.parseNamedType();return this.node(r,{kind:v.h.OPERATION_TYPE_DEFINITION,operation:n,type:i})}parseScalarTypeDefinition(){let r=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");let i=this.parseName(),o=this.parseConstDirectives();return this.node(r,{kind:v.h.SCALAR_TYPE_DEFINITION,description:n,name:i,directives:o})}parseObjectTypeDefinition(){let r=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");let i=this.parseName(),o=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(r,{kind:v.h.OBJECT_TYPE_DEFINITION,description:n,name:i,interfaces:o,directives:a,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(m.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(m.BRACE_L,this.parseFieldDefinition,m.BRACE_R)}parseFieldDefinition(){let r=this._lexer.token,n=this.parseDescription(),i=this.parseName(),o=this.parseArgumentDefs();this.expectToken(m.COLON);let a=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(r,{kind:v.h.FIELD_DEFINITION,description:n,name:i,arguments:o,type:a,directives:s})}parseArgumentDefs(){return this.optionalMany(m.PAREN_L,this.parseInputValueDef,m.PAREN_R)}parseInputValueDef(){let r;let n=this._lexer.token,i=this.parseDescription(),o=this.parseName();this.expectToken(m.COLON);let a=this.parseTypeReference();this.expectOptionalToken(m.EQUALS)&&(r=this.parseConstValueLiteral());let s=this.parseConstDirectives();return this.node(n,{kind:v.h.INPUT_VALUE_DEFINITION,description:i,name:o,type:a,defaultValue:r,directives:s})}parseInterfaceTypeDefinition(){let r=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");let i=this.parseName(),o=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(r,{kind:v.h.INTERFACE_TYPE_DEFINITION,description:n,name:i,interfaces:o,directives:a,fields:s})}parseUnionTypeDefinition(){let r=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");let i=this.parseName(),o=this.parseConstDirectives(),a=this.parseUnionMemberTypes();return this.node(r,{kind:v.h.UNION_TYPE_DEFINITION,description:n,name:i,directives:o,types:a})}parseUnionMemberTypes(){return this.expectOptionalToken(m.EQUALS)?this.delimitedMany(m.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let r=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");let i=this.parseName(),o=this.parseConstDirectives(),a=this.parseEnumValuesDefinition();return this.node(r,{kind:v.h.ENUM_TYPE_DEFINITION,description:n,name:i,directives:o,values:a})}parseEnumValuesDefinition(){return this.optionalMany(m.BRACE_L,this.parseEnumValueDefinition,m.BRACE_R)}parseEnumValueDefinition(){let r=this._lexer.token,n=this.parseDescription(),i=this.parseEnumValueName(),o=this.parseConstDirectives();return this.node(r,{kind:v.h.ENUM_VALUE_DEFINITION,description:n,name:i,directives:o})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw d(this._lexer.source,this._lexer.token.start,`${L(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let r=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");let i=this.parseName(),o=this.parseConstDirectives(),a=this.parseInputFieldsDefinition();return this.node(r,{kind:v.h.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:i,directives:o,fields:a})}parseInputFieldsDefinition(){return this.optionalMany(m.BRACE_L,this.parseInputValueDef,m.BRACE_R)}parseTypeSystemExtension(){let r=this._lexer.lookahead();if(r.kind===m.NAME)switch(r.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(r)}parseSchemaExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let n=this.parseConstDirectives(),i=this.optionalMany(m.BRACE_L,this.parseOperationTypeDefinition,m.BRACE_R);if(0===n.length&&0===i.length)throw this.unexpected();return this.node(r,{kind:v.h.SCHEMA_EXTENSION,directives:n,operationTypes:i})}parseScalarTypeExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let n=this.parseName(),i=this.parseConstDirectives();if(0===i.length)throw this.unexpected();return this.node(r,{kind:v.h.SCALAR_TYPE_EXTENSION,name:n,directives:i})}parseObjectTypeExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let n=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(0===i.length&&0===o.length&&0===a.length)throw this.unexpected();
256return this.node(r,{kind:v.h.OBJECT_TYPE_EXTENSION,name:n,interfaces:i,directives:o,fields:a})}parseInterfaceTypeExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let n=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(0===i.length&&0===o.length&&0===a.length)throw this.unexpected();return this.node(r,{kind:v.h.INTERFACE_TYPE_EXTENSION,name:n,interfaces:i,directives:o,fields:a})}parseUnionTypeExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let n=this.parseName(),i=this.parseConstDirectives(),o=this.parseUnionMemberTypes();if(0===i.length&&0===o.length)throw this.unexpected();return this.node(r,{kind:v.h.UNION_TYPE_EXTENSION,name:n,directives:i,types:o})}parseEnumTypeExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let n=this.parseName(),i=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();if(0===i.length&&0===o.length)throw this.unexpected();return this.node(r,{kind:v.h.ENUM_TYPE_EXTENSION,name:n,directives:i,values:o})}parseInputObjectTypeExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let n=this.parseName(),i=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();if(0===i.length&&0===o.length)throw this.unexpected();return this.node(r,{kind:v.h.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:i,fields:o})}parseDirectiveDefinition(){let r=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(m.AT);let i=this.parseName(),o=this.parseArgumentDefs(),a=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let s=this.parseDirectiveLocations();return this.node(r,{kind:v.h.DIRECTIVE_DEFINITION,description:n,name:i,arguments:o,repeatable:a,locations:s})}parseDirectiveLocations(){return this.delimitedMany(m.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let r=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(f,n.value))return n;throw this.unexpected(r)}node(r,n){return!0!==this._options.noLocation&&(n.loc=new g.Ye(r,this._lexer.lastToken,this._lexer.source)),n}peek(r){return this._lexer.token.kind===r}expectToken(r){let n=this._lexer.token;if(n.kind===r)return this.advanceLexer(),n;throw d(this._lexer.source,n.start,`Expected ${z(r)}, found ${L(n)}.`)}expectOptionalToken(r){let n=this._lexer.token;return n.kind===r&&(this.advanceLexer(),!0)}expectKeyword(r){let n=this._lexer.token;if(n.kind===m.NAME&&n.value===r)this.advanceLexer();else throw d(this._lexer.source,n.start,`Expected "${r}", found ${L(n)}.`)}expectOptionalKeyword(r){let n=this._lexer.token;return n.kind===m.NAME&&n.value===r&&(this.advanceLexer(),!0)}unexpected(r){let n=null!=r?r:this._lexer.token;return d(this._lexer.source,n.start,`Unexpected ${L(n)}.`)}any(r,n,i){this.expectToken(r);let o=[];for(;!this.expectOptionalToken(i);)o.push(n.call(this));return o}optionalMany(r,n,i){if(this.expectOptionalToken(r)){let r=[];do r.push(n.call(this));while(!this.expectOptionalToken(i));return r}return[]}many(r,n,i){this.expectToken(r);let o=[];do o.push(n.call(this));while(!this.expectOptionalToken(i));return o}delimitedMany(r,n){this.expectOptionalToken(r);let i=[];do i.push(n.call(this));while(this.expectOptionalToken(r));return i}advanceLexer(){let{maxTokens:r}=this._options,n=this._lexer.advance();if(void 0!==r&&n.kind!==m.EOF&&(++this._tokenCounter,this._tokenCounter>r))throw d(this._lexer.source,n.start,`Document contains more that ${r} tokens. Parsing aborted.`)}}function L(r){let n=r.value;return z(r.kind)+(null!=n?` "${n}"`:"")}function z(r){return r===m.BANG||r===m.DOLLAR||r===m.AMP||r===m.PAREN_L||r===m.PAREN_R||r===m.SPREAD||r===m.COLON||r===m.EQUALS||r===m.AT||r===m.BRACKET_L||r===m.BRACKET_R||r===m.BRACE_L||r===m.PIPE||r===m.BRACE_R?`"${r}"`:r}},62938:function(r,n,i){"use strict";i.r(n),i.d(n,{print:function(){return f}});var o=i(87392);let a=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function s(r){return l[r.charCodeAt(0)]}let l=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var c=i(37826),u=i(25821),d=i(72380),h=i(97359);let p=Object.freeze({});function f(r){return function(r,n,i=d.h8){let o,a,s;let l=new Map;for(let r of Object.values(h.h))l.set(r,function(r,n){let i=r[n];return"object"==typeof i?i:"function"==typeof i?{enter:i,leave:void 0}:{enter:r.enter,leave:r.leave}}(n,r));let f=Array.isArray(r),m=[r],g=-1,v=[],y=r,b=[],x=[];do{var _,w,S;let r;g++;let h=g===m.length,T=h&&0!==v.length;if(h){if(a=0===x.length?void 0:b[b.length-1],y=s,s=x.pop(),T){if(f){y=y.slice();let r=0;for(let[n,i]of v){let o=n-r;null===i?(y.splice(o,1),r++):y[o]=i}}else for(let[r,n]of(y=Object.defineProperties({},Object.getOwnPropertyDescriptors(y)),v))y[r]=n}g=o.index,m=o.keys,v=o.edits,f=o.inArray,o=o.prev}else if(s){if(null==(y=s[a=f?g:m[g]]))continue;b.push(a)}if(!Array.isArray(y)){(0,d.UG)(y)||(0,c.a)(!1,`Invalid AST Node: ${(0,u.X)(y)}.`);let i=h?null===(_=l.get(y.kind))||void 0===_?void 0:_.leave:null===(w=l.get(y.kind))||void 0===w?void 0:w.enter;if((r=null==i?void 0:i.call(n,y,a,s,b,x))===p)break;if(!1===r){if(!h){b.pop();continue}}else if(void 0!==r&&(v.push([a,r]),!h)){if((0,d.UG)(r))y=r;else{b.pop();continue}}}void 0===r&&T&&v.push([a,y]),h?b.pop():(o={inArray:f,index:g,keys:m,edits:v,prev:o},m=(f=Array.isArray(y))?y:null!==(S=i[y.kind])&&void 0!==S?S:[],g=-1,v=[],s&&x.push(s),s=y)}while(void 0!==o);return 0!==v.length?v[v.length-1][1]:r}(r,m)}let m={Name:{leave:r=>r.value},Variable:{leave:r=>"$"+r.name},Document:{leave:r=>g(r.definitions,"\n\n")},OperationDefinition:{leave(r){let n=y("(",g(r.variableDefinitions,", "),")"),i=g([r.operation,g([r.name,n]),g(r.directives," ")]," ");return("query"===i?"":i+" ")+r.selectionSet}},VariableDefinition:{leave:({variable:r,type:n,defaultValue:i,directives:o})=>r+": "+n+y(" = ",i)+y(" ",g(o," "))},SelectionSet:{leave:({selections:r})=>v(r)},Field:{leave({alias:r,name:n,arguments:i,directives:o,selectionSet:a}){let s=y("",r,": ")+n,l=s+y("(",g(i,", "),")");return l.length>80&&(l=s+y("(\n",b(g(i,"\n")),"\n)")),g([l,g(o," "),a]," ")}},Argument:{leave:({name:r,value:n})=>r+": "+n},FragmentSpread:{leave:({name:r,directives:n})=>
256"..."+r+y(" ",g(n," "))},InlineFragment:{leave:({typeCondition:r,directives:n,selectionSet:i})=>g(["...",y("on ",r),g(n," "),i]," ")},FragmentDefinition:{leave:({name:r,typeCondition:n,variableDefinitions:i,directives:o,selectionSet:a})=>`fragment ${r}${y("(",g(i,", "),")")} on ${n} ${y("",g(o," ")," ")}`+a},IntValue:{leave:({value:r})=>r},FloatValue:{leave:({value:r})=>r},StringValue:{leave:({value:r,block:n})=>n?(0,o.LZ)(r):`"${r.replace(a,s)}"`},BooleanValue:{leave:({value:r})=>r?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:r})=>r},ListValue:{leave:({values:r})=>"["+g(r,", ")+"]"},ObjectValue:{leave:({fields:r})=>"{"+g(r,", ")+"}"},ObjectField:{leave:({name:r,value:n})=>r+": "+n},Directive:{leave:({name:r,arguments:n})=>"@"+r+y("(",g(n,", "),")")},NamedType:{leave:({name:r})=>r},ListType:{leave:({type:r})=>"["+r+"]"},NonNullType:{leave:({type:r})=>r+"!"},SchemaDefinition:{leave:({description:r,directives:n,operationTypes:i})=>y("",r,"\n")+g(["schema",g(n," "),v(i)]," ")},OperationTypeDefinition:{leave:({operation:r,type:n})=>r+": "+n},ScalarTypeDefinition:{leave:({description:r,name:n,directives:i})=>y("",r,"\n")+g(["scalar",n,g(i," ")]," ")},ObjectTypeDefinition:{leave:({description:r,name:n,interfaces:i,directives:o,fields:a})=>y("",r,"\n")+g(["type",n,y("implements ",g(i," & ")),g(o," "),v(a)]," ")},FieldDefinition:{leave:({description:r,name:n,arguments:i,type:o,directives:a})=>y("",r,"\n")+n+(x(i)?y("(\n",b(g(i,"\n")),"\n)"):y("(",g(i,", "),")"))+": "+o+y(" ",g(a," "))},InputValueDefinition:{leave:({description:r,name:n,type:i,defaultValue:o,directives:a})=>y("",r,"\n")+g([n+": "+i,y("= ",o),g(a," ")]," ")},InterfaceTypeDefinition:{leave:({description:r,name:n,interfaces:i,directives:o,fields:a})=>y("",r,"\n")+g(["interface",n,y("implements ",g(i," & ")),g(o," "),v(a)]," ")},UnionTypeDefinition:{leave:({description:r,name:n,directives:i,types:o})=>y("",r,"\n")+g(["union",n,g(i," "),y("= ",g(o," | "))]," ")},EnumTypeDefinition:{leave:({description:r,name:n,directives:i,values:o})=>y("",r,"\n")+g(["enum",n,g(i," "),v(o)]," ")},EnumValueDefinition:{leave:({description:r,name:n,directives:i})=>y("",r,"\n")+g([n,g(i," ")]," ")},InputObjectTypeDefinition:{leave:({description:r,name:n,directives:i,fields:o})=>y("",r,"\n")+g(["input",n,g(i," "),v(o)]," ")},DirectiveDefinition:{leave:({description:r,name:n,arguments:i,repeatable:o,locations:a})=>y("",r,"\n")+"directive @"+n+(x(i)?y("(\n",b(g(i,"\n")),"\n)"):y("(",g(i,", "),")"))+(o?" repeatable":"")+" on "+g(a," | ")},SchemaExtension:{leave:({directives:r,operationTypes:n})=>g(["extend schema",g(r," "),v(n)]," ")},ScalarTypeExtension:{leave:({name:r,directives:n})=>g(["extend scalar",r,g(n," ")]," ")},ObjectTypeExtension:{leave:({name:r,interfaces:n,directives:i,fields:o})=>g(["extend type",r,y("implements ",g(n," & ")),g(i," "),v(o)]," ")},InterfaceTypeExtension:{leave:({name:r,interfaces:n,directives:i,fields:o})=>g(["extend interface",r,y("implements ",g(n," & ")),g(i," "),v(o)]," ")},UnionTypeExtension:{leave:({name:r,directives:n,types:i})=>g(["extend union",r,g(n," "),y("= ",g(i," | "))]," ")},EnumTypeExtension:{leave:({name:r,directives:n,values:i})=>g(["extend enum",r,g(n," "),v(i)]," ")},InputObjectTypeExtension:{leave:({name:r,directives:n,fields:i})=>g(["extend input",r,g(n," "),v(i)]," ")}};function g(r,n=""){var i;return null!==(i=null==r?void 0:r.filter(r=>r).join(n))&&void 0!==i?i:""}function v(r){return y("{\n",b(g(r,"\n")),"\n}")}function y(r,n,i=""){return null!=n&&""!==n?r+n+i:""}function b(r){return y(" ",r.replace(/\n/g,"\n "))}function x(r){var n;return null!==(n=null==r?void 0:r.some(r=>r.includes("\n")))&&void 0!==n&&n}},67308:function(r,n,i){"use strict";i.d(n,{Z:function(){return c}});var o=i(79651),a=function(r,n){for(var i=r.length;i--;)if((0,o.Z)(r[i][0],n))return i;return -1},s=Array.prototype.splice;function l(r){var n=-1,i=null==r?0:r.length;for(this.clear();++n<i;){var o=r[n];this.set(o[0],o[1])}}l.prototype.clear=function(){this.__data__=[],this.size=0},l.prototype.delete=function(r){var n=this.__data__,i=a(n,r);
256return!(i<0)&&(i==n.length-1?n.pop():s.call(n,i,1),--this.size,!0)},l.prototype.get=function(r){var n=this.__data__,i=a(n,r);return i<0?void 0:n[i][1]},l.prototype.has=function(r){return a(this.__data__,r)>-1},l.prototype.set=function(r,n){var i=this.__data__,o=a(i,r);return o<0?(++this.size,i.push([r,n])):i[o][1]=n,this};var c=l},86183:function(r,n,i){"use strict";var o=i(62508),a=i(66092),s=(0,o.Z)(a.Z,"Map");n.Z=s},37834:function(r,n,i){"use strict";i.d(n,{Z:function(){return f}});var o=(0,i(62508).Z)(Object,"create"),a=Object.prototype.hasOwnProperty,s=Object.prototype.hasOwnProperty;function l(r){var n=-1,i=null==r?0:r.length;for(this.clear();++n<i;){var o=r[n];this.set(o[0],o[1])}}l.prototype.clear=function(){this.__data__=o?o(null):{},this.size=0},l.prototype.delete=function(r){var n=this.has(r)&&delete this.__data__[r];return this.size-=n?1:0,n},l.prototype.get=function(r){var n=this.__data__;if(o){var i=n[r];return"__lodash_hash_undefined__"===i?void 0:i}return a.call(n,r)?n[r]:void 0},l.prototype.has=function(r){var n=this.__data__;return o?void 0!==n[r]:s.call(n,r)},l.prototype.set=function(r,n){var i=this.__data__;return this.size+=this.has(r)?0:1,i[r]=o&&void 0===n?"__lodash_hash_undefined__":n,this};var c=i(67308),u=i(86183),d=function(r){var n=typeof r;return"string"==n||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r},h=function(r,n){var i=r.__data__;return d(n)?i["string"==typeof n?"string":"hash"]:i.map};function p(r){var n=-1,i=null==r?0:r.length;for(this.clear();++n<i;){var o=r[n];this.set(o[0],o[1])}}p.prototype.clear=function(){this.size=0,this.__data__={hash:new l,map:new(u.Z||c.Z),string:new l}},p.prototype.delete=function(r){var n=h(this,r).delete(r);return this.size-=n?1:0,n},p.prototype.get=function(r){return h(this,r).get(r)},p.prototype.has=function(r){return h(this,r).has(r)},p.prototype.set=function(r,n){var i=h(this,r),o=i.size;return i.set(r,n),this.size+=i.size==o?0:1,this};var f=p},63001:function(r,n,i){"use strict";i.d(n,{Z:function(){return s}});var o=i(37834);function a(r){var n=-1,i=null==r?0:r.length;for(this.__data__=new o.Z;++n<i;)this.add(r[n])}a.prototype.add=a.prototype.push=function(r){return this.__data__.set(r,"__lodash_hash_undefined__"),this},a.prototype.has=function(r){return this.__data__.has(r)};var s=a},31667:function(r,n,i){"use strict";i.d(n,{Z:function(){return c}});var o=i(67308),a=i(86183),s=i(37834);function l(r){var n=this.__data__=new o.Z(r);this.size=n.size}l.prototype.clear=function(){this.__data__=new o.Z,this.size=0},l.prototype.delete=function(r){var n=this.__data__,i=n.delete(r);return this.size=n.size,i},l.prototype.get=function(r){return this.__data__.get(r)},l.prototype.has=function(r){return this.__data__.has(r)},l.prototype.set=function(r,n){var i=this.__data__;if(i instanceof o.Z){var l=i.__data__;if(!a.Z||l.length<199)return l.push([r,n]),this.size=++i.size,this;i=this.__data__=new s.Z(l)}return i.set(r,n),this.size=i.size,this};var c=l},17685:function(r,n,i){"use strict";var o=i(66092).Z.Symbol;n.Z=o},84073:function(r,n,i){"use strict";var o=i(66092).Z.Uint8Array;n.Z=o},87668:function(r,n,i){"use strict";i.d(n,{Z:function(){return h}});var o=function(r,n){for(var i=-1,o=Array(r);++i<r;)o[i]=n(i);return o},a=i(29169),s=i(27771),l=i(77008),c=i(56009),u=i(18843),d=Object.prototype.hasOwnProperty,h=function(r,n){var i=(0,s.Z)(r),h=!i&&(0,a.Z)(r),p=!i&&!h&&(0,l.Z)(r),f=!i&&!h&&!p&&(0,u.Z)(r),m=i||h||p||f,g=m?o(r.length,String):[],v=g.length;for(var y in r)(n||d.call(r,y))&&!(m&&("length"==y||p&&("offset"==y||"parent"==y)||f&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||(0,c.Z)(y,v)))&&g.push(y);return g}},74073:function(r,n){"use strict";n.Z=function(r,n){for(var i=-1,o=null==r?0:r.length,a=Array(o);++i<o;)a[i]=n(r[i],i,r);return a}},58694:function(r,n){"use strict";n.Z=function(r,n){for(var i=-1,o=n.length,a=r.length;++i<o;)r[a+i]=n[i];return r}},72954:function(r,n,i){"use strict";var o=i(74752),a=i(79651),s=Object.prototype.hasOwnProperty;n.Z=function(r,n,i){var l=r[n];s.call(r,n)&&(0,a.Z)(l,i)&&(void 0!==i||n in r)||(0,o.Z)(r,n,i)}},74752:function(r,n,i){"use strict";var o=i(77904);n.Z=function(r,n,i){"__proto__"==n&&o.Z?(0,o.Z)(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}},8272:function(r,n,i){"use strict";i.d(n,{Z:function(){return q}});var o=i(31667),a=function(r,n){for(var i=-1,o=null==r?0:r.length;++i<o&&!1!==n(r[i],i,r););return r},s=i(72954),l=i(31899),c=i(17179),u=i(32957),d=i(91050),h=i(87215),p=i(41574),f=i(17502),m=i(1808),g=i(4403),v=i(23353),y=Object.prototype.hasOwnProperty,b=function(r){var n=r.length,i=new r.constructor(n);return n&&"string"==typeof r[0]&&y.call(r,"index")&&(i.index=r.index,i.input=r.input),i},x=i(41884),_=function(r,n){var i=n?(0,x.Z)(r.buffer):r.buffer;return new r.constructor(i,r.byteOffset,r.byteLength)},w=/\w*$/,S=function(r){var n=new r.constructor(r.source,w.exec(r));return n.lastIndex=r.lastIndex,n}
256,T=i(17685),E=T.Z?T.Z.prototype:void 0,k=E?E.valueOf:void 0,C=i(12701),P=function(r,n,i){var o=r.constructor;switch(n){case"[object ArrayBuffer]":return(0,x.Z)(r);case"[object Boolean]":case"[object Date]":return new o(+r);case"[object DataView]":return _(r,i);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return(0,C.Z)(r,i);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(r);case"[object RegExp]":return S(r);case"[object Symbol]":return k?Object(k.call(r)):{}}},O=i(73658),j=i(27771),A=i(77008),M=i(18533),I=i(21162),Z=i(98351),R=Z.Z&&Z.Z.isMap,D=R?(0,I.Z)(R):function(r){return(0,M.Z)(r)&&"[object Map]"==(0,v.Z)(r)},L=i(77226),z=Z.Z&&Z.Z.isSet,B=z?(0,I.Z)(z):function(r){return(0,M.Z)(r)&&"[object Set]"==(0,v.Z)(r)},F="[object Arguments]",N="[object Function]",U="[object Object]",V={};V[F]=V["[object Array]"]=V["[object ArrayBuffer]"]=V["[object DataView]"]=V["[object Boolean]"]=V["[object Date]"]=V["[object Float32Array]"]=V["[object Float64Array]"]=V["[object Int8Array]"]=V["[object Int16Array]"]=V["[object Int32Array]"]=V["[object Map]"]=V["[object Number]"]=V[U]=V["[object RegExp]"]=V["[object Set]"]=V["[object String]"]=V["[object Symbol]"]=V["[object Uint8Array]"]=V["[object Uint8ClampedArray]"]=V["[object Uint16Array]"]=V["[object Uint32Array]"]=!0,V["[object Error]"]=V[N]=V["[object WeakMap]"]=!1;var q=function r(n,i,y,x,_,w){var S,T=1&i,E=2&i;if(y&&(S=_?y(n,x,_,w):y(n)),void 0!==S)return S;if(!(0,L.Z)(n))return n;var k=(0,j.Z)(n);if(k){if(S=b(n),!T)return(0,h.Z)(n,S)}else{var C,M,I,Z,R=(0,v.Z)(n),z=R==N||"[object GeneratorFunction]"==R;if((0,A.Z)(n))return(0,d.Z)(n,T);if(R==U||R==F||z&&!_){if(S=E||z?{}:(0,O.Z)(n),!T)return E?(M=(C=S)&&(0,l.Z)(n,(0,u.Z)(n),C),(0,l.Z)(n,(0,f.Z)(n),M)):(Z=(I=S)&&(0,l.Z)(n,(0,c.Z)(n),I),(0,l.Z)(n,(0,p.Z)(n),Z))}else{if(!V[R])return _?n:{};S=P(n,R,T)}}w||(w=new o.Z);var q=w.get(n);if(q)return q;w.set(n,S),B(n)?n.forEach(function(o){S.add(r(o,i,y,o,n,w))}):D(n)&&n.forEach(function(o,a){S.set(a,r(o,i,y,a,n,w))});var $=4&i?E?g.Z:m.Z:E?u.Z:c.Z,G=k?void 0:$(n);return a(G||n,function(o,a){G&&(o=n[a=o]),(0,s.Z)(S,a,r(o,i,y,a,n,w))}),S}},61395:function(r,n,i){"use strict";i.d(n,{Z:function(){return o}});var o=function(r,n,i){for(var o=-1,a=Object(r),s=i(r),l=s.length;l--;){var c=s[++o];if(!1===n(a[c],c,a))break}return r}},13317:function(r,n,i){"use strict";var o=i(27449),a=i(62281);n.Z=function(r,n){n=(0,o.Z)(n,r);for(var i=0,s=n.length;null!=r&&i<s;)r=r[(0,a.Z)(n[i++])];return i&&i==s?r:void 0}},63327:function(r,n,i){"use strict";var o=i(58694),a=i(27771);n.Z=function(r,n,i){var s=n(r);return(0,a.Z)(r)?s:(0,o.Z)(s,i(r))}},93589:function(r,n,i){"use strict";i.d(n,{Z:function(){return p}});var o=i(17685),a=Object.prototype,s=a.hasOwnProperty,l=a.toString,c=o.Z?o.Z.toStringTag:void 0,u=function(r){var n=s.call(r,c),i=r[c];try{r[c]=void 0;var o=!0}catch(r){}var a=l.call(r);return o&&(n?r[c]=i:delete r[c]),a},d=Object.prototype.toString,h=o.Z?o.Z.toStringTag:void 0,p=function(r){return null==r?void 0===r?"[object Undefined]":"[object Null]":h&&h in Object(r)?u(r):d.call(r)}},39473:function(r,n,i){"use strict";i.d(n,{Z:function(){return l}});var o=i(72764),a=(0,i(1851).Z)(Object.keys,Object),s=Object.prototype.hasOwnProperty,l=function(r){if(!(0,o.Z)(r))return a(r);var n=[];for(var i in Object(r))s.call(r,i)&&"constructor"!=i&&n.push(i);return n}},11363:function(r,n,i){"use strict";i.d(n,{Z:function(){return k}});var o=i(31667),a=i(74752),s=i(79651),l=function(r,n,i){(void 0===i||(0,s.Z)(r[n],i))&&(void 0!==i||n in r)||(0,a.Z)(r,n,i)},c=i(61395),u=i(91050),d=i(12701),h=i(87215),p=i(73658),f=i(29169),m=i(27771),g=i(836),v=i(77008),y=i(73234),b=i(77226),x=i(37514),_=i(18843),w=function(r,n){if(("constructor"!==n||"function"!=typeof r[n])&&"__proto__"!=n)return r[n]},S=i(31899),T=i(32957),E=function(r,n,i,o,a,s,c){var E=w(r,i),k=w(n,i),C=c.get(k);if(C){l(r,i,C);return}var P=s?s(E,k,i+"",r,n,c):void 0,O=void 0===P;if(O){var j=(0,m.Z)(k),A=!j&&(0,v.Z)(k),M=!j&&!A&&(0,_.Z)(k);(P=k,j||A||M)?(0,m.Z)(E)?P=E:(0,g.Z)(E)?P=(0,h.Z)(E):A?(O=!1,P=(0,u.Z)(k,!0)):M?(O=!1,P=(0,d.Z)(k,!0)):P=[]:(0,x.Z)(k)||(0,f.Z)(k)?(P=E,(0,f.Z)(E))?P=(0,S.Z)(E,(0,T.Z)(E)):(!(0,b.Z)(E)||(0,y.Z)(E))&&(P=(0,p.Z)(k)):O=!1}
256O&&(c.set(k,P),a(P,k,o,s,c),c.delete(k)),l(r,i,P)},k=function r(n,i,a,s,u){n!==i&&(0,c.Z)(i,function(c,d){if(u||(u=new o.Z),(0,b.Z)(c))E(n,i,d,a,r,s,u);else{var h=s?s(w(n,d),c,d+"",n,i,u):void 0;void 0===h&&(h=c),l(n,d,h)}},T.Z)}},69581:function(r,n,i){"use strict";var o=i(69203),a=i(81211),s=i(64594);n.Z=function(r,n){return(0,s.Z)((0,a.Z)(r,n,o.Z),r+"")}},47855:function(r,n){"use strict";n.Z=function(r,n,i){var o=-1,a=r.length;n<0&&(n=-n>a?0:a+n),(i=i>a?a:i)<0&&(i+=a),a=n>i?0:i-n>>>0,n>>>=0;for(var s=Array(a);++o<a;)s[o]=r[o+n];return s}},21162:function(r,n){"use strict";n.Z=function(r){return function(n){return r(n)}}},59548:function(r,n){"use strict";n.Z=function(r,n){return r.has(n)}},27449:function(r,n,i){"use strict";var o=i(27771),a=i(99365),s=i(77612),l=i(50751);n.Z=function(r,n){return(0,o.Z)(r)?r:(0,a.Z)(r,n)?[r]:(0,s.Z)((0,l.Z)(r))}},41884:function(r,n,i){"use strict";var o=i(84073);n.Z=function(r){var n=new r.constructor(r.byteLength);return new o.Z(n).set(new o.Z(r)),n}},91050:function(r,n,i){"use strict";var o=i(66092),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=a&&"object"==typeof module&&module&&!module.nodeType&&module,l=s&&s.exports===a?o.Z.Buffer:void 0,c=l?l.allocUnsafe:void 0;n.Z=function(r,n){if(n)return r.slice();var i=r.length,o=c?c(i):new r.constructor(i);return r.copy(o),o}},12701:function(r,n,i){"use strict";var o=i(41884);n.Z=function(r,n){var i=n?(0,o.Z)(r.buffer):r.buffer;return new r.constructor(i,r.byteOffset,r.length)}},87215:function(r,n){"use strict";n.Z=function(r,n){var i=-1,o=r.length;for(n||(n=Array(o));++i<o;)n[i]=r[i];return n}},31899:function(r,n,i){"use strict";var o=i(72954),a=i(74752);n.Z=function(r,n,i,s){var l=!i;i||(i={});for(var c=-1,u=n.length;++c<u;){var d=n[c],h=s?s(i[d],r[d],d,i,r):void 0;void 0===h&&(h=r[d]),l?(0,a.Z)(i,d,h):(0,o.Z)(i,d,h)}return i}},41298:function(r,n,i){"use strict";i.d(n,{Z:function(){return d}});var o=i(69581),a=i(79651),s=i(50585),l=i(56009),c=i(77226),u=function(r,n,i){if(!(0,c.Z)(i))return!1;var o=typeof n;return("number"==o?!!((0,s.Z)(i)&&(0,l.Z)(n,i.length)):"string"==o&&n in i)&&(0,a.Z)(i[n],r)},d=function(r){return(0,o.Z)(function(n,i){var o=-1,a=i.length,s=a>1?i[a-1]:void 0,l=a>2?i[2]:void 0;for(s=r.length>3&&"function"==typeof s?(a--,s):void 0,l&&u(i[0],i[1],l)&&(s=a<3?void 0:s,a=1),n=Object(n);++o<a;){var c=i[o];c&&r(n,c,o,s)}return n})}},77904:function(r,n,i){"use strict";var o=i(62508),a=function(){try{var r=(0,o.Z)(Object,"defineProperty");return r({},"",{}),r}catch(r){}}();n.Z=a},13413:function(r,n){"use strict";var i="object"==typeof global&&global&&global.Object===Object&&global;n.Z=i},1808:function(r,n,i){"use strict";var o=i(63327),a=i(41574),s=i(17179);n.Z=function(r){return(0,o.Z)(r,s.Z,a.Z)}},4403:function(r,n,i){"use strict";var o=i(63327),a=i(17502),s=i(32957);n.Z=function(r){return(0,o.Z)(r,s.Z,a.Z)}},62508:function(r,n,i){"use strict";i.d(n,{Z:function(){return g}});var o,a=i(73234),s=i(66092).Z["__core-js_shared__"],l=(o=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+o:"",c=i(77226),u=i(90019),d=/^\[object .+?Constructor\]$/,h=Object.prototype,p=Function.prototype.toString,f=h.hasOwnProperty,m=RegExp("^"+p.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),g=function(r,n){var i,o=null==r?void 0:r[n];return(i=o,(0,c.Z)(i)&&(!l||!(l in i))&&((0,a.Z)(i)?m:d).test((0,u.Z)(i)))?o:void 0}},12513:function(r,n,i){"use strict";var o=(0,i(1851).Z)(Object.getPrototypeOf,Object);n.Z=o},41574:function(r,n,i){"use strict";i.d(n,{Z:function(){return c}});var o=function(r,n){for(var i=-1,o=null==r?0:r.length,a=0,s=[];++i<o;){var l=r[i];n(l,i,r)&&(s[a++]=l)}return s},a=i(60532),s=Object.prototype.propertyIsEnumerable,l=Object.getOwnPropertySymbols,c=l?function(r){return null==r?[]:o(l(r=Object(r)),function(n){return s.call(r,n)})}:a.Z},17502:function(r,n,i){"use strict";var o=i(58694),a=i(12513),s=i(41574),l=i(60532),c=Object.getOwnPropertySymbols?function(r){for(var n=[];r;)(0,o.Z)(n,(0,s.Z)(r)),r=(0,a.Z)(r);return n}:l.Z;n.Z=c},23353:function(r,n,i){"use strict";i.d(n,{Z:function(){return E}});var o=i(62508),a=i(66092),s=(0,o.Z)(a.Z,"DataView"),l=i(86183),c=(0,o.Z)(a.Z,"Promise"),u=(0,o.Z)(a.Z,"Set"),d=(0,o.Z)(a.Z,"WeakMap"),h=i(93589),p=i(90019),f="[object Map]",m="[object Promise]",g="[object Set]",v="[object WeakMap]",y="[object DataView]",b=(0,p.Z)(s),x=(0,p.Z)(l.Z),_=(0,p.Z)(c),w=(0,p.Z)(u),S=(0,p.Z)(d),T=h.Z;(s&&T(new s(new ArrayBuffer(1)))!=y||l.Z&&T(new l.Z)!=f||c&&T(c.resolve())!=m||u&&T(new u)!=g||d&&T(new d)!=v)&&(T=function(r){var n=(0,h.Z)(r),i="[object Object]"==n?r.constructor:void 0,o=i?(0,p.Z)(i):"";if(o)switch(o){case b:return y;case x:return f;case _:return m;case w:return g;case S:return v}return n});var E=T},73658:function(r,n,i){"use strict";i.d(n,{Z:function(){return u}});var o=i(77226),a=Object.create,s=function(){function r(){}return function(n){if(!(0,o.Z)(n))return{};if(a)return a(n);r.prototype=n;var i=new r;return r.prototype=void 0,i}}(),l=i(12513),c=i(72764),u=function(r){return"function"!=typeof r.constructor||(0,c.Z)(r)?{}:s((0,l.Z)(r))}},56009:function(r,n){"use strict";var i=/^(?:0|[1-9]\d*)$/;n.Z=function(r,n){var o=typeof r;return!!(n=null==n?9007199254740991:n)&&("number"==o||"symbol"!=o&&i.test(r))&&r>-1&&r%1==0&&r<n}},99365:function(r,n,i){"use strict";var o=i(27771),a=i(72714),s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,l=/^\w*$/;n.Z=function(r,n){if((0,o.Z)(r))return!1;var i=typeof r;return!!("number"==i||"symbol"==i||"boolean"==i||null==r||(0,a.Z)(r))||l.test(r)||!s.test(r)||null!=n&&r in Object(n)}},72764:function(r,n){"use strict";var i=Object.prototype;n.Z=function(r){var n=r&&r.constructor,o="function"==typeof n&&n.prototype||i;return r===o}},98351:function(r,n,i){"use strict";var o=i(13413),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=a&&"object"==typeof module&&module&&!module.nodeType&&module,l=s&&s.exports===a&&o.Z.process,c=function(){try{var r=s&&s.require&&s.require("util").t
256ypes;if(r)return r;return l&&l.binding&&l.binding("util")}catch(r){}}();n.Z=c},1851:function(r,n){"use strict";n.Z=function(r,n){return function(i){return r(n(i))}}},81211:function(r,n,i){"use strict";i.d(n,{Z:function(){return s}});var o=function(r,n,i){switch(i.length){case 0:return r.call(n);case 1:return r.call(n,i[0]);case 2:return r.call(n,i[0],i[1]);case 3:return r.call(n,i[0],i[1],i[2])}return r.apply(n,i)},a=Math.max,s=function(r,n,i){return n=a(void 0===n?r.length-1:n,0),function(){for(var s=arguments,l=-1,c=a(s.length-n,0),u=Array(c);++l<c;)u[l]=s[n+l];l=-1;for(var d=Array(n+1);++l<n;)d[l]=s[l];return d[n]=i(u),o(r,this,d)}}},66092:function(r,n,i){"use strict";var o=i(13413),a="object"==typeof self&&self&&self.Object===Object&&self,s=o.Z||a||Function("return this")();n.Z=s},64594:function(r,n,i){"use strict";i.d(n,{Z:function(){return d}});var o,a,s=i(77904),l=i(69203),c=s.Z?function(r,n){return(0,s.Z)(r,"toString",{configurable:!0,enumerable:!1,value:function(){return n},writable:!0})}:l.Z,u=Date.now,d=(o=0,a=0,function(){var r=u(),n=16-(r-a);if(a=r,n>0){if(++o>=800)return arguments[0]}else o=0;return c.apply(void 0,arguments)})},77612:function(r,n,i){"use strict";i.d(n,{Z:function(){return d}});var o,a,s=i(37834);function l(r,n){if("function"!=typeof r||null!=n&&"function"!=typeof n)throw TypeError("Expected a function");var i=function(){var o=arguments,a=n?n.apply(this,o):o[0],s=i.cache;if(s.has(a))return s.get(a);var l=r.apply(this,o);return i.cache=s.set(a,l)||s,l};return i.cache=new(l.Cache||s.Z),i}l.Cache=s.Z;var c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,u=/\\(\\)?/g,d=(a=(o=l(function(r){var n=[];return 46===r.charCodeAt(0)&&n.push(""),r.replace(c,function(r,i,o,a){n.push(o?a.replace(u,"$1"):i||r)}),n},function(r){return 500===a.size&&a.clear(),r})).cache,o)},62281:function(r,n,i){"use strict";var o=i(72714),a=1/0;n.Z=function(r){if("string"==typeof r||(0,o.Z)(r))return r;var n=r+"";return"0"==n&&1/r==-a?"-0":n}},90019:function(r,n){"use strict";var i=Function.prototype.toString;n.Z=function(r){if(null!=r){try{return i.call(r)}catch(r){}try{return r+""}catch(r){}}return""}},79651:function(r,n){"use strict";n.Z=function(r,n){return r===n||r!=r&&n!=n}},11022:function(r,n){"use strict";n.Z=function(r){return r&&r.length?r[0]:void 0}},69203:function(r,n){"use strict";n.Z=function(r){return r}},29169:function(r,n,i){"use strict";i.d(n,{Z:function(){return d}});var o=i(93589),a=i(18533),s=function(r){return(0,a.Z)(r)&&"[object Arguments]"==(0,o.Z)(r)},l=Object.prototype,c=l.hasOwnProperty,u=l.propertyIsEnumerable,d=s(function(){return arguments}())?s:function(r){return(0,a.Z)(r)&&c.call(r,"callee")&&!u.call(r,"callee")}},27771:function(r,n){"use strict";var i=Array.isArray;n.Z=i},50585:function(r,n,i){"use strict";var o=i(73234),a=i(1656);n.Z=function(r){return null!=r&&(0,a.Z)(r.length)&&!(0,o.Z)(r)}},836:function(r,n,i){"use strict";var o=i(50585),a=i(18533);n.Z=function(r){return(0,a.Z)(r)&&(0,o.Z)(r)}},77008:function(r,n,i){"use strict";i.d(n,{Z:function(){return c}});var o=i(66092),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=a&&"object"==typeof module&&module&&!module.nodeType&&module,l=s&&s.exports===a?o.Z.Buffer:void 0,c=(l?l.isBuffer:void 0)||function(){return!1}},79697:function(r,n,i){"use strict";var o=i(39473),a=i(23353),s=i(29169),l=i(27771),c=i(50585),u=i(77008),d=i(72764),h=i(18843),p=Object.prototype.hasOwnProperty;n.Z=function(r){if(null==r)return!0;if((0,c.Z)(r)&&((0,l.Z)(r)||"string"==typeof r||"function"==typeof r.splice||(0,u.Z)(r)||(0,h.Z)(r)||(0,s.Z)(r)))return!r.length;var n=(0,a.Z)(r);if("[object Map]"==n||"[object Set]"==n)return!r.size;if((0,d.Z)(r))return!(0,o.Z)(r).length;for(var i in r)if(p.call(r,i))return!1;return!0}},73234:function(r,n,i){"use strict";var o=i(93589),a=i(77226);n.Z=function(r){if(!(0,a.Z)(r))return!1;var n=(0,o.Z)(r);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}},1656:function(r,n){"use strict";n.Z=function(r){return"number"==typeof r&&r>-1&&r%1==0&&r<=9007199254740991}}
256,77226:function(r,n){"use strict";n.Z=function(r){var n=typeof r;return null!=r&&("object"==n||"function"==n)}},18533:function(r,n){"use strict";n.Z=function(r){return null!=r&&"object"==typeof r}},37514:function(r,n,i){"use strict";var o=i(93589),a=i(12513),s=i(18533),l=Object.prototype,c=Function.prototype.toString,u=l.hasOwnProperty,d=c.call(Object);n.Z=function(r){if(!(0,s.Z)(r)||"[object Object]"!=(0,o.Z)(r))return!1;var n=(0,a.Z)(r);if(null===n)return!0;var i=u.call(n,"constructor")&&n.constructor;return"function"==typeof i&&i instanceof i&&c.call(i)==d}},72714:function(r,n,i){"use strict";var o=i(93589),a=i(18533);n.Z=function(r){return"symbol"==typeof r||(0,a.Z)(r)&&"[object Symbol]"==(0,o.Z)(r)}},18843:function(r,n,i){"use strict";i.d(n,{Z:function(){return h}});var o=i(93589),a=i(1656),s=i(18533),l={};l["[object Float32Array]"]=l["[object Float64Array]"]=l["[object Int8Array]"]=l["[object Int16Array]"]=l["[object Int32Array]"]=l["[object Uint8Array]"]=l["[object Uint8ClampedArray]"]=l["[object Uint16Array]"]=l["[object Uint32Array]"]=!0,l["[object Arguments]"]=l["[object Array]"]=l["[object ArrayBuffer]"]=l["[object Boolean]"]=l["[object DataView]"]=l["[object Date]"]=l["[object Error]"]=l["[object Function]"]=l["[object Map]"]=l["[object Number]"]=l["[object Object]"]=l["[object RegExp]"]=l["[object Set]"]=l["[object String]"]=l["[object WeakMap]"]=!1;var c=i(21162),u=i(98351),d=u.Z&&u.Z.isTypedArray,h=d?(0,c.Z)(d):function(r){return(0,s.Z)(r)&&(0,a.Z)(r.length)&&!!l[(0,o.Z)(r)]}},17179:function(r,n,i){"use strict";var o=i(87668),a=i(39473),s=i(50585);n.Z=function(r){return(0,s.Z)(r)?(0,o.Z)(r):(0,a.Z)(r)}},32957:function(r,n,i){"use strict";i.d(n,{Z:function(){return h}});var o=i(87668),a=i(77226),s=i(72764),l=function(r){var n=[];if(null!=r)for(var i in Object(r))n.push(i);return n},c=Object.prototype.hasOwnProperty,u=function(r){if(!(0,a.Z)(r))return l(r);var n=(0,s.Z)(r),i=[];for(var o in r)"constructor"==o&&(n||!c.call(r,o))||i.push(o);return i},d=i(50585),h=function(r){return(0,d.Z)(r)?(0,o.Z)(r,!0):u(r)}},935:function(r,n){"use strict";n.Z=function(r){var n=null==r?0:r.length;return n?r[n-1]:void 0}},48568:function(r,n,i){"use strict";var o=i(11363),a=(0,i(41298).Z)(function(r,n,i){(0,o.Z)(r,n,i)});n.Z=a},60532:function(r,n){"use strict";n.Z=function(){return[]}},50751:function(r,n,i){"use strict";i.d(n,{Z:function(){return p}});var o=i(17685),a=i(74073),s=i(27771),l=i(72714),c=1/0,u=o.Z?o.Z.prototype:void 0,d=u?u.toString:void 0,h=function r(n){if("string"==typeof n)return n;if((0,s.Z)(n))return(0,a.Z)(n,r)+"";if((0,l.Z)(n))return d?d.call(n):"";var i=n+"";return"0"==i&&1/n==-c?"-0":i},p=function(r){return null==r?"":h(r)}},43880:function(r,n,i){"use strict";i.d(n,{Z:function(){return x}});var o=i(47855),a=function(r,n,i){var a=r.length;return i=void 0===i?a:i,!n&&i>=a?r:(0,o.Z)(r,n,i)},s=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),l=function(r){return s.test(r)},c="\ud800-\udfff",u="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",d="\ud83c[\udffb-\udfff]",h="[^"+c+"]",p="(?:\ud83c[\udde6-\uddff]){2}",f="[\ud800-\udbff][\udc00-\udfff]",m="(?:"+u+"|"+d+")?",g="[\\ufe0e\\ufe0f]?",v="(?:\\u200d(?:"+[h,p,f].join("|")+")"+g+m+")*",y=RegExp(d+"(?="+d+")|(?:"+[h+u+"?",u,p,f,"["+c+"]"].join("|")+")"+(g+m+v),"g"),b=i(50751),x=function(r){var n,i=l(r=(0,b.Z)(r))?l(n=r)?n.match(y)||[]:n.split(""):void 0,o=i?i[0]:r.charAt(0),s=i?a(i,1).join(""):r.slice(1);return o.toUpperCase()+s}},37340:function(r,n,i){"use strict";function o(r,n){return n||(n=r.slice(0)),Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(n)}}))}i.d(n,{_:function(){return o}})}},function(r){var n=function(n){return r(r.s=n)};r.O(0,[9774,179],function(){return n(75492),n(96885)}),_N_E=r.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.