UNPKG

@oslokommune/punkt-elements

Version:

Komponentbiblioteket til Punkt, et designsystem laget av Oslo Origo

65 lines (59 loc) 477 kB
"use strict";/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const sv=globalThis,sy=sv.trustedTypes,CR=sy?sy.createPolicy("lit-html",{createHTML:A=>A}):void 0,PR="$lit$",Oo=`lit$${Math.random().toFixed(9).slice(2)}$`,VR="?"+Oo,$k=`<${VR}>`,nc=document,fv=()=>nc.createComment(""),dv=A=>A===null||typeof A!="object"&&typeof A!="function",HE=Array.isArray,Fk=A=>HE(A)||typeof(A==null?void 0:A[Symbol.iterator])=="function",DE=`[ \f\r]`,uv=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,TR=/-->/g,RR=/>/g,Js=RegExp(`>|${DE}(?:([^\\s"'>=/]+)(${DE}*=${DE}*(?:[^ \f\r"'\`<>=]|("|')|))|$)`,"g"),wR=/'/g,_R=/"/g,BR=/^(?:script|style|textarea|title)$/i,jk=A=>(y,...E)=>({_$litType$:A,strings:y,values:E}),Pk=jk(1),rc=Symbol.for("lit-noChange"),Jn=Symbol.for("lit-nothing"),xR=new WeakMap,ec=nc.createTreeWalker(nc,129);function IR(A,y){if(!HE(A)||!A.hasOwnProperty("raw"))throw Error("invalid template strings array");return CR!==void 0?CR.createHTML(y):y}const Vk=(A,y)=>{const E=A.length-1,D=[];let M,W=y===2?"<svg>":y===3?"<math>":"",S=uv;for(let xe=0;xe<E;xe++){const X=A[xe];let ne,We,J=-1,ge=0;for(;ge<X.length&&(S.lastIndex=ge,We=S.exec(X),We!==null);)ge=S.lastIndex,S===uv?We[1]==="!--"?S=TR:We[1]!==void 0?S=RR:We[2]!==void 0?(BR.test(We[2])&&(M=RegExp("</"+We[2],"g")),S=Js):We[3]!==void 0&&(S=Js):S===Js?We[0]===">"?(S=M??uv,J=-1):We[1]===void 0?J=-2:(J=S.lastIndex-We[2].length,ne=We[1],S=We[3]===void 0?Js:We[3]==='"'?_R:wR):S===_R||S===wR?S=Js:S===TR||S===RR?S=uv:(S=Js,M=void 0);const le=S===Js&&A[xe+1].startsWith("/>")?" ":"";W+=S===uv?X+$k:J>=0?(D.push(ne),X.slice(0,J)+PR+X.slice(J)+Oo+le):X+Oo+(J===-2?xe:le)}return[IR(A,W+(A[E]||"<?>")+(y===2?"</svg>":y===3?"</math>":"")),D]};class pv{constructor({strings:y,_$litType$:E},D){let M;this.parts=[];let W=0,S=0;const xe=y.length-1,X=this.parts,[ne,We]=Vk(y,E);if(this.el=pv.createElement(ne,D),ec.currentNode=this.el.content,E===2||E===3){const J=this.el.content.firstChild;J.replaceWith(...J.childNodes)}for(;(M=ec.nextNode())!==null&&X.length<xe;){if(M.nodeType===1){if(M.hasAttributes())for(const J of M.getAttributeNames())if(J.endsWith(PR)){const ge=We[S++],le=M.getAttribute(J).split(Oo),$e=/([.?@])?(.*)/.exec(ge);X.push({type:1,index:W,name:$e[2],strings:le,ctor:$e[1]==="."?Ik:$e[1]==="?"?Yk:$e[1]==="@"?Qk:fy}),M.removeAttribute(J)}else J.startsWith(Oo)&&(X.push({type:6,index:W}),M.removeAttribute(J));if(BR.test(M.tagName)){const J=M.textContent.split(Oo),ge=J.length-1;if(ge>0){M.textContent=sy?sy.emptyScript:"";for(let le=0;le<ge;le++)M.append(J[le],fv()),ec.nextNode(),X.push({type:2,index:++W});M.append(J[ge],fv())}}}else if(M.nodeType===8)if(M.data===VR)X.push({type:2,index:W});else{let J=-1;for(;(J=M.data.indexOf(Oo,J+1))!==-1;)X.push({type:7,index:W}),J+=Oo.length-1}W++}}static createElement(y,E){const D=nc.createElement("template");return D.innerHTML=y,D}}function Zf(A,y,E=A,D){var S,xe;if(y===rc)return y;let M=D!==void 0?(S=E._$Co)==null?void 0:S[D]:E._$Cl;const W=dv(y)?void 0:y._$litDirective$;return(M==null?void 0:M.constructor)!==W&&((xe=M==null?void 0:M._$AO)==null||xe.call(M,!1),W===void 0?M=void 0:(M=new W(A),M._$AT(A,E,D)),D!==void 0?(E._$Co??(E._$Co=[]))[D]=M:E._$Cl=M),M!==void 0&&(y=Zf(A,M._$AS(A,y.values),M,D)),y}class Bk{constructor(y,E){this._$AV=[],this._$AN=void 0,this._$AD=y,this._$AM=E}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(y){const{el:{content:E},parts:D}=this._$AD,M=((y==null?void 0:y.creationScope)??nc).importNode(E,!0);ec.currentNode=M;let W=ec.nextNode(),S=0,xe=0,X=D[0];for(;X!==void 0;){if(S===X.index){let ne;X.type===2?ne=new Jf(W,W.nextSibling,this,y):X.type===1?ne=new X.ctor(W,X.name,X.strings,this,y):X.type===6&&(ne=new Wk(W,this,y)),this._$AV.push(ne),X=D[++xe]}S!==(X==null?void 0:X.index)&&(W=ec.nextNode(),S++)}return ec.currentNode=nc,M}p(y){let E=0;for(const D of this._$AV)D!==void 0&&(D.strings!==void 0?(D._$AI(y,D,E),E+=D.strings.length-2):D._$AI(y[E])),E++}}class Jf{get _$AU(){var y;return((y=this._$AM)==null?void 0:y._$AU)??this._$Cv}constructor(y,E,D,M){this.type=2,this._$AH=Jn,this._$AN=void 0,this._$AA=y,this._$AB=E,this._$AM=D,this.options=M,this._$Cv=(M==null?void 0:M.isConnected)??!0}get parentNode(){let y=this._$AA.parentNode;const E=this._$AM;return E!==void 0&&(y==null?void 0:y.nodeType)===11&&(y=E.parentNode),y}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(y,E=this){y=Zf(this,y,E),dv(y)?y===Jn||y==null||y===""?(this._$AH!==Jn&&this._$AR(),this._$AH=Jn):y!==this._$AH&&y!==rc&&this._(y):y._$litType$!==void 0?this.$(y):y.nodeType!==void 0?this.T(y):Fk(y)?this.k(y):this._(y)}O(y){return this._$AA.parentNode.insertBefore(y,this._$AB)}T(y){this._$AH!==y&&(this._$AR(),this._$AH=this.O(y))}_(y){this._$AH!==Jn&&dv(this._$AH)?this._$AA.nextSibling.data=y:this.T(nc.createTextNode(y)),this._$AH=y}$(y){var W;const{values:E,_$litType$:D}=y,M=typeof D=="number"?this._$AC(y):(D.el===void 0&&(D.el=pv.createElement(IR(D.h,D.h[0]),this.options)),D);if(((W=this._$AH)==null?void 0:W._$AD)===M)this._$AH.p(E);else{const S=new Bk(M,this),xe=S.u(this.options);S.p(E),this.T(xe),this._$AH=S}}_$AC(y){let E=xR.get(y.strings);return E===void 0&&xR.set(y.strings,E=new pv(y)),E}k(y){HE(this._$AH)||(this._$AH=[],this._$AR());const E=this._$AH;let D,M=0;for(const W of y)M===E.length?E.push(D=new Jf(this.O(fv()),this.O(fv()),this,this.options)):D=E[M],D._$AI(W),M++;M<E.length&&(this._$AR(D&&D._$AB.nextSibling,M),E.length=M)}_$AR(y=this._$AA.nextSibling,E){var D;for((D=this._$AP)==null?void 0:D.call(this,!1,!0,E);y&&y!==this._$AB;){const M=y.nextSibling;y.remove(),y=M}}setConnected(y){var E;this._$AM===void 0&&(this._$Cv=y,(E=this._$AP)==null||E.call(this,y))}}class fy{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(y,E,D,M,W){this.type=1,this._$AH=Jn,this._$AN=void 0,this.element=y,this.name=E,this._$AM=M,this.options=W,D.length>2||D[0]!==""||D[1]!==""?(this._$AH=Array(D.length-1).fill(new String),this.strings=D):this._$AH=Jn}_$AI(y,E=this,D,M){const W=this.strings;let S=!1;if(W===void 0)y=Zf(this,y,E,0),S=!dv(y)||y!==this._$AH&&y!==rc,S&&(this._$AH=y);else{const xe=y;let X,ne;for(y=W[0],X=0;X<W.length-1;X++)ne=Zf(this,xe[D+X],E,X),ne===rc&&(ne=this._$AH[X]),S||(S=!dv(ne)||ne!==this._$AH[X]),ne===Jn?y=Jn:y!==Jn&&(y+=(ne??"")+W[X+1]),this._$AH[X]=ne}S&&!M&&this.j(y)}j(y){y===Jn?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,y??"")}}class Ik extends fy{constructor(){super(...arguments),this.type=3}j(y){this.element[this.name]=y===Jn?void 0:y}}class Yk extends fy{constructor(){super(...arguments),this.type=4}j(y){this.element.toggleAttribute(this.name,!!y&&y!==Jn)}}class Qk extends fy{constructor(y,E,D,M,W){super(y,E,D,M,W),this.type=5}_$AI(y,E=this){if((y=Zf(this,y,E,0)??Jn)===rc)return;const D=this._$AH,M=y===Jn&&D!==Jn||y.capture!==D.capture||y.once!==D.once||y.passive!==D.passive,W=y!==Jn&&(D===Jn||M);M&&this.element.removeEventListener(this.name,this,D),W&&this.element.addEventListener(this.name,this,y),this._$AH=y}handleEvent(y){var E;typeof this._$AH=="function"?this._$AH.call(((E=this.options)==null?void 0:E.host)??this.element,y):this._$AH.handleEvent(y)}}class Wk{constructor(y,E,D){this.element=y,this.type=6,this._$AN=void 0,this._$AM=E,this.options=D}get _$AU(){return this._$AM._$AU}_$AI(y){Zf(this,y)}}const Gk={I:Jf},OE=sv.litHtmlPolyfillSupport;OE==null||OE(pv,Jf),(sv.litHtmlVersions??(sv.litHtmlVersions=[])).push("3.3.0");const qk=(A,y,E)=>{const D=(E==null?void 0:E.renderBefore)??y;let M=D._$litPart$;if(M===void 0){const W=(E==null?void 0:E.renderBefore)??null;D._$litPart$=M=new Jf(y.insertBefore(fv(),W),W,void 0,E??{})}return M._$AI(A),M};/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const Xk=A=>(y,E)=>{E!==void 0?E.addInitializer(()=>{customElements.define(A,y)}):customElements.define(A,y)};/** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const oy=globalThis,$E=oy.ShadowRoot&&(oy.ShadyCSS===void 0||oy.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,YR=Symbol(),bR=new WeakMap;let Kk=class{constructor(y,E,D){if(this._$cssResult$=!0,D!==YR)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=y,this.t=E}get styleSheet(){let y=this.o;const E=this.t;if($E&&y===void 0){const D=E!==void 0&&E.length===1;D&&(y=bR.get(E)),y===void 0&&((this.o=y=new CSSStyleSheet).replaceSync(this.cssText),D&&bR.set(E,y))}return y}toString(){return this.cssText}};const Zk=A=>new Kk(typeof A=="string"?A:A+"",void 0,YR),Jk=(A,y)=>{if($E)A.adoptedStyleSheets=y.map(E=>E instanceof CSSStyleSheet?E:E.styleSheet);else for(const E of y){const D=document.createElement("style"),M=oy.litNonce;M!==void 0&&D.setAttribute("nonce",M),D.textContent=E.cssText,A.appendChild(D)}},kR=$E?A=>A:A=>A instanceof CSSStyleSheet?(y=>{let E="";for(const D of y.cssRules)E+=D.cssText;return Zk(E)})(A):A;/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const{is:eD,defineProperty:tD,getOwnPropertyDescriptor:nD,getOwnPropertyNames:rD,getOwnPropertySymbols:aD,getPrototypeOf:iD}=Object,Mo=globalThis,DR=Mo.trustedTypes,lD=DR?DR.emptyScript:"",ME=Mo.reactiveElementPolyfillSupport,cv=(A,y)=>A,cy={toAttribute(A,y){switch(y){case Boolean:A=A?lD:null;break;case Object:case Array:A=A==null?A:JSON.stringify(A)}return A},fromAttribute(A,y){let E=A;switch(y){case Boolean:E=A!==null;break;case Number:E=A===null?null:Number(A);break;case Object:case Array:try{E=JSON.parse(A)}catch{E=null}}return E}},FE=(A,y)=>!eD(A,y),OR={attribute:!0,type:String,converter:cy,reflect:!1,useDefault:!1,hasChanged:FE};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Mo.litPropertyMetadata??(Mo.litPropertyMetadata=new WeakMap);class Xf extends HTMLElement{static addInitializer(y){this._$Ei(),(this.l??(this.l=[])).push(y)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(y,E=OR){if(E.state&&(E.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(y)&&((E=Object.create(E)).wrapped=!0),this.elementProperties.set(y,E),!E.noAccessor){const D=Symbol(),M=this.getPropertyDescriptor(y,D,E);M!==void 0&&tD(this.prototype,y,M)}}static getPropertyDescriptor(y,E,D){const{get:M,set:W}=nD(this.prototype,y)??{get(){return this[E]},set(S){this[E]=S}};return{get:M,set(S){const xe=M==null?void 0:M.call(this);W==null||W.call(this,S),this.requestUpdate(y,xe,D)},configurable:!0,enumerable:!0}}static getPropertyOptions(y){return this.elementProperties.get(y)??OR}static _$Ei(){if(this.hasOwnProperty(cv("elementProperties")))return;const y=iD(this);y.finalize(),y.l!==void 0&&(this.l=[...y.l]),this.elementProperties=new Map(y.elementProperties)}static finalize(){if(this.hasOwnProperty(cv("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(cv("properties"))){const E=this.properties,D=[...rD(E),...aD(E)];for(const M of D)this.createProperty(M,E[M])}const y=this[Symbol.metadata];if(y!==null){const E=litPropertyMetadata.get(y);if(E!==void 0)for(const[D,M]of E)this.elementProperties.set(D,M)}this._$Eh=new Map;for(const[E,D]of this.elementProperties){const M=this._$Eu(E,D);M!==void 0&&this._$Eh.set(M,E)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(y){const E=[];if(Array.isArray(y)){const D=new Set(y.flat(1/0).reverse());for(const M of D)E.unshift(kR(M))}else y!==void 0&&E.push(kR(y));return E}static _$Eu(y,E){const D=E.attribute;return D===!1?void 0:typeof D=="string"?D:typeof y=="string"?y.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var y;this._$ES=new Promise(E=>this.enableUpdating=E),this._$AL=new Map,this._$E_(),this.requestUpdate(),(y=this.constructor.l)==null||y.forEach(E=>E(this))}addController(y){var E;(this._$EO??(this._$EO=new Set)).add(y),this.renderRoot!==void 0&&this.isConnected&&((E=y.hostConnected)==null||E.call(y))}removeController(y){var E;(E=this._$EO)==null||E.delete(y)}_$E_(){const y=new Map,E=this.constructor.elementProperties;for(const D of E.keys())this.hasOwnProperty(D)&&(y.set(D,this[D]),delete this[D]);y.size>0&&(this._$Ep=y)}createRenderRoot(){const y=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Jk(y,this.constructor.elementStyles),y}connectedCallback(){var y;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(y=this._$EO)==null||y.forEach(E=>{var D;return(D=E.hostConnected)==null?void 0:D.call(E)})}enableUpdating(y){}disconnectedCallback(){var y;(y=this._$EO)==null||y.forEach(E=>{var D;return(D=E.hostDisconnected)==null?void 0:D.call(E)})}attributeChangedCallback(y,E,D){this._$AK(y,D)}_$ET(y,E){var W;const D=this.constructor.elementProperties.get(y),M=this.constructor._$Eu(y,D);if(M!==void 0&&D.reflect===!0){const S=(((W=D.converter)==null?void 0:W.toAttribute)!==void 0?D.converter:cy).toAttribute(E,D.type);this._$Em=y,S==null?this.removeAttribute(M):this.setAttribute(M,S),this._$Em=null}}_$AK(y,E){var W,S;const D=this.constructor,M=D._$Eh.get(y);if(M!==void 0&&this._$Em!==M){const xe=D.getPropertyOptions(M),X=typeof xe.converter=="function"?{fromAttribute:xe.converter}:((W=xe.converter)==null?void 0:W.fromAttribute)!==void 0?xe.converter:cy;this._$Em=M,this[M]=X.fromAttribute(E,xe.type)??((S=this._$Ej)==null?void 0:S.get(M))??null,this._$Em=null}}requestUpdate(y,E,D){var M;if(y!==void 0){const W=this.constructor,S=this[y];if(D??(D=W.getPropertyOptions(y)),!((D.hasChanged??FE)(S,E)||D.useDefault&&D.reflect&&S===((M=this._$Ej)==null?void 0:M.get(y))&&!this.hasAttribute(W._$Eu(y,D))))return;this.C(y,E,D)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(y,E,{useDefault:D,reflect:M,wrapped:W},S){D&&!(this._$Ej??(this._$Ej=new Map)).has(y)&&(this._$Ej.set(y,S??E??this[y]),W!==!0||S!==void 0)||(this._$AL.has(y)||(this.hasUpdated||D||(E=void 0),this._$AL.set(y,E)),M===!0&&this._$Em!==y&&(this._$Eq??(this._$Eq=new Set)).add(y))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(E){Promise.reject(E)}const y=this.scheduleUpdate();return y!=null&&await y,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var D;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[W,S]of this._$Ep)this[W]=S;this._$Ep=void 0}const M=this.constructor.elementProperties;if(M.size>0)for(const[W,S]of M){const{wrapped:xe}=S,X=this[W];xe!==!0||this._$AL.has(W)||X===void 0||this.C(W,void 0,S,X)}}let y=!1;const E=this._$AL;try{y=this.shouldUpdate(E),y?(this.willUpdate(E),(D=this._$EO)==null||D.forEach(M=>{var W;return(W=M.hostUpdate)==null?void 0:W.call(M)}),this.update(E)):this._$EM()}catch(M){throw y=!1,this._$EM(),M}y&&this._$AE(E)}willUpdate(y){}_$AE(y){var E;(E=this._$EO)==null||E.forEach(D=>{var M;return(M=D.hostUpdated)==null?void 0:M.call(D)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(y)),this.updated(y)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(y){return!0}update(y){this._$Eq&&(this._$Eq=this._$Eq.forEach(E=>this._$ET(E,this[E]))),this._$EM()}updated(y){}firstUpdated(y){}}Xf.elementStyles=[],Xf.shadowRootOptions={mode:"open"},Xf[cv("elementProperties")]=new Map,Xf[cv("finalized")]=new Map,ME==null||ME({ReactiveElement:Xf}),(Mo.reactiveElementVersions??(Mo.reactiveElementVersions=[])).push("2.1.0");/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const uD={attribute:!0,type:String,converter:cy,reflect:!1,hasChanged:FE},oD=(A=uD,y,E)=>{const{kind:D,metadata:M}=E;let W=globalThis.litPropertyMetadata.get(M);if(W===void 0&&globalThis.litPropertyMetadata.set(M,W=new Map),D==="setter"&&((A=Object.create(A)).wrapped=!0),W.set(E.name,A),D==="accessor"){const{name:S}=E;return{set(xe){const X=y.get.call(this);y.set.call(this,xe),this.requestUpdate(S,X,A)},init(xe){return xe!==void 0&&this.C(S,void 0,A,xe),xe}}}if(D==="setter"){const{name:S}=E;return function(xe){const X=this[S];y.call(this,xe),this.requestUpdate(S,X,A)}}throw Error("Unsupported decorator location: "+D)};function jE(A){return(y,E)=>typeof E=="object"?oD(A,y,E):((D,M,W)=>{const S=M.hasOwnProperty(W);return M.constructor.createProperty(W,D),S?Object.getOwnPropertyDescriptor(M,W):void 0})(A,y,E)}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const tc=globalThis;let Kf=class extends Xf{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var E;const y=super.createRenderRoot();return(E=this.renderOptions).renderBefore??(E.renderBefore=y.firstChild),y}update(y){const E=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(y),this._$Do=qk(E,this.renderRoot,this.renderOptions)}connectedCallback(){var y;super.connectedCallback(),(y=this._$Do)==null||y.setConnected(!0)}disconnectedCallback(){var y;super.disconnectedCallback(),(y=this._$Do)==null||y.setConnected(!1)}render(){return rc}};var jR;Kf._$litElement$=!0,Kf.finalized=!0,(jR=tc.litElementHydrateSupport)==null||jR.call(tc,{LitElement:Kf});const LE=tc.litElementPolyfillSupport;LE==null||LE({LitElement:Kf});(tc.litElementVersions??(tc.litElementVersions=[])).push("4.2.0");var UE={exports:{}},ba={},iy={exports:{}},lt={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var MR;function sD(){if(MR)return lt;MR=1;var A=Symbol.for("react.element"),y=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),W=Symbol.for("react.provider"),S=Symbol.for("react.context"),xe=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),ne=Symbol.for("react.memo"),We=Symbol.for("react.lazy"),J=Symbol.iterator;function ge(k){return k===null||typeof k!="object"?null:(k=J&&k[J]||k["@@iterator"],typeof k=="function"?k:null)}var le={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$e=Object.assign,ht={};function ut(k,I,Pe){this.props=k,this.context=I,this.refs=ht,this.updater=Pe||le}ut.prototype.isReactComponent={},ut.prototype.setState=function(k,I){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,I,"setState")},ut.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function $n(){}$n.prototype=ut.prototype;function nn(k,I,Pe){this.props=k,this.context=I,this.refs=ht,this.updater=Pe||le}var Ye=nn.prototype=new $n;Ye.constructor=nn,$e(Ye,ut.prototype),Ye.isPureReactComponent=!0;var ot=Array.isArray,ke=Object.prototype.hasOwnProperty,tt={current:null},Fe={key:!0,ref:!0,__self:!0,__source:!0};function Gt(k,I,Pe){var Ue,Ze={},nt=null,Je=null;if(I!=null)for(Ue in I.ref!==void 0&&(Je=I.ref),I.key!==void 0&&(nt=""+I.key),I)ke.call(I,Ue)&&!Fe.hasOwnProperty(Ue)&&(Ze[Ue]=I[Ue]);var at=arguments.length-2;if(at===1)Ze.children=Pe;else if(1<at){for(var it=Array(at),It=0;It<at;It++)it[It]=arguments[It+2];Ze.children=it}if(k&&k.defaultProps)for(Ue in at=k.defaultProps,at)Ze[Ue]===void 0&&(Ze[Ue]=at[Ue]);return{$$typeof:A,type:k,key:nt,ref:Je,props:Ze,_owner:tt.current}}function Ut(k,I){return{$$typeof:A,type:k.type,key:I,ref:k.ref,props:k.props,_owner:k._owner}}function Bt(k){return typeof k=="object"&&k!==null&&k.$$typeof===A}function qt(k){var I={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(Pe){return I[Pe]})}var Rt=/\/+/g;function Be(k,I){return typeof k=="object"&&k!==null&&k.key!=null?qt(""+k.key):I.toString(36)}function Xt(k,I,Pe,Ue,Ze){var nt=typeof k;(nt==="undefined"||nt==="boolean")&&(k=null);var Je=!1;if(k===null)Je=!0;else switch(nt){case"string":case"number":Je=!0;break;case"object":switch(k.$$typeof){case A:case y:Je=!0}}if(Je)return Je=k,Ze=Ze(Je),k=Ue===""?"."+Be(Je,0):Ue,ot(Ze)?(Pe="",k!=null&&(Pe=k.replace(Rt,"$&/")+"/"),Xt(Ze,I,Pe,"",function(It){return It})):Ze!=null&&(Bt(Ze)&&(Ze=Ut(Ze,Pe+(!Ze.key||Je&&Je.key===Ze.key?"":(""+Ze.key).replace(Rt,"$&/")+"/")+k)),I.push(Ze)),1;if(Je=0,Ue=Ue===""?".":Ue+":",ot(k))for(var at=0;at<k.length;at++){nt=k[at];var it=Ue+Be(nt,at);Je+=Xt(nt,I,Pe,it,Ze)}else if(it=ge(k),typeof it=="function")for(k=it.call(k),at=0;!(nt=k.next()).done;)nt=nt.value,it=Ue+Be(nt,at++),Je+=Xt(nt,I,Pe,it,Ze);else if(nt==="object")throw I=String(k),Error("Objects are not valid as a React child (found: "+(I==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":I)+"). If you meant to render a collection of children, use an array instead.");return Je}function zt(k,I,Pe){if(k==null)return k;var Ue=[],Ze=0;return Xt(k,Ue,"","",function(nt){return I.call(Pe,nt,Ze++)}),Ue}function xt(k){if(k._status===-1){var I=k._result;I=I(),I.then(function(Pe){(k._status===0||k._status===-1)&&(k._status=1,k._result=Pe)},function(Pe){(k._status===0||k._status===-1)&&(k._status=2,k._result=Pe)}),k._status===-1&&(k._status=0,k._result=I)}if(k._status===1)return k._result.default;throw k._result}var Ce={current:null},te={transition:null},be={ReactCurrentDispatcher:Ce,ReactCurrentBatchConfig:te,ReactCurrentOwner:tt};function se(){throw Error("act(...) is not supported in production builds of React.")}return lt.Children={map:zt,forEach:function(k,I,Pe){zt(k,function(){I.apply(this,arguments)},Pe)},count:function(k){var I=0;return zt(k,function(){I++}),I},toArray:function(k){return zt(k,function(I){return I})||[]},only:function(k){if(!Bt(k))throw Error("React.Children.only expected to receive a single React element child.");return k}},lt.Component=ut,lt.Fragment=E,lt.Profiler=M,lt.PureComponent=nn,lt.StrictMode=D,lt.Suspense=X,lt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=be,lt.act=se,lt.cloneElement=function(k,I,Pe){if(k==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+k+".");var Ue=$e({},k.props),Ze=k.key,nt=k.ref,Je=k._owner;if(I!=null){if(I.ref!==void 0&&(nt=I.ref,Je=tt.current),I.key!==void 0&&(Ze=""+I.key),k.type&&k.type.defaultProps)var at=k.type.defaultProps;for(it in I)ke.call(I,it)&&!Fe.hasOwnProperty(it)&&(Ue[it]=I[it]===void 0&&at!==void 0?at[it]:I[it])}var it=arguments.length-2;if(it===1)Ue.children=Pe;else if(1<it){at=Array(it);for(var It=0;It<it;It++)at[It]=arguments[It+2];Ue.children=at}return{$$typeof:A,type:k.type,key:Ze,ref:nt,props:Ue,_owner:Je}},lt.createContext=function(k){return k={$$typeof:S,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},k.Provider={$$typeof:W,_context:k},k.Consumer=k},lt.createElement=Gt,lt.createFactory=function(k){var I=Gt.bind(null,k);return I.type=k,I},lt.createRef=function(){return{current:null}},lt.forwardRef=function(k){return{$$typeof:xe,render:k}},lt.isValidElement=Bt,lt.lazy=function(k){return{$$typeof:We,_payload:{_status:-1,_result:k},_init:xt}},lt.memo=function(k,I){return{$$typeof:ne,type:k,compare:I===void 0?null:I}},lt.startTransition=function(k){var I=te.transition;te.transition={};try{k()}finally{te.transition=I}},lt.unstable_act=se,lt.useCallback=function(k,I){return Ce.current.useCallback(k,I)},lt.useContext=function(k){return Ce.current.useContext(k)},lt.useDebugValue=function(){},lt.useDeferredValue=function(k){return Ce.current.useDeferredValue(k)},lt.useEffect=function(k,I){return Ce.current.useEffect(k,I)},lt.useId=function(){return Ce.current.useId()},lt.useImperativeHandle=function(k,I,Pe){return Ce.current.useImperativeHandle(k,I,Pe)},lt.useInsertionEffect=function(k,I){return Ce.current.useInsertionEffect(k,I)},lt.useLayoutEffect=function(k,I){return Ce.current.useLayoutEffect(k,I)},lt.useMemo=function(k,I){return Ce.current.useMemo(k,I)},lt.useReducer=function(k,I,Pe){return Ce.current.useReducer(k,I,Pe)},lt.useRef=function(k){return Ce.current.useRef(k)},lt.useState=function(k){return Ce.current.useState(k)},lt.useSyncExternalStore=function(k,I,Pe){return Ce.current.useSyncExternalStore(k,I,Pe)},lt.useTransition=function(){return Ce.current.useTransition()},lt.version="18.3.1",lt}var ov={exports:{}};/** * @license React * react.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ov.exports;var LR;function cD(){return LR||(LR=1,function(A,y){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var E="18.3.1",D=Symbol.for("react.element"),M=Symbol.for("react.portal"),W=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),xe=Symbol.for("react.profiler"),X=Symbol.for("react.provider"),ne=Symbol.for("react.context"),We=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),ge=Symbol.for("react.suspense_list"),le=Symbol.for("react.memo"),$e=Symbol.for("react.lazy"),ht=Symbol.for("react.offscreen"),ut=Symbol.iterator,$n="@@iterator";function nn(h){if(h===null||typeof h!="object")return null;var R=ut&&h[ut]||h[$n];return typeof R=="function"?R:null}var Ye={current:null},ot={transition:null},ke={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},tt={current:null},Fe={},Gt=null;function Ut(h){Gt=h}Fe.setExtraStackFrame=function(h){Gt=h},Fe.getCurrentStack=null,Fe.getStackAddendum=function(){var h="";Gt&&(h+=Gt);var R=Fe.getCurrentStack;return R&&(h+=R()||""),h};var Bt=!1,qt=!1,Rt=!1,Be=!1,Xt=!1,zt={ReactCurrentDispatcher:Ye,ReactCurrentBatchConfig:ot,ReactCurrentOwner:tt};zt.ReactDebugCurrentFrame=Fe,zt.ReactCurrentActQueue=ke;function xt(h){{for(var R=arguments.length,H=new Array(R>1?R-1:0),j=1;j<R;j++)H[j-1]=arguments[j];te("warn",h,H)}}function Ce(h){{for(var R=arguments.length,H=new Array(R>1?R-1:0),j=1;j<R;j++)H[j-1]=arguments[j];te("error",h,H)}}function te(h,R,H){{var j=zt.ReactDebugCurrentFrame,ee=j.getStackAddendum();ee!==""&&(R+="%s",H=H.concat([ee]));var De=H.map(function(ie){return String(ie)});De.unshift("Warning: "+R),Function.prototype.apply.call(console[h],console,De)}}var be={};function se(h,R){{var H=h.constructor,j=H&&(H.displayName||H.name)||"ReactClass",ee=j+"."+R;if(be[ee])return;Ce("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",R,j),be[ee]=!0}}var k={isMounted:function(h){return!1},enqueueForceUpdate:function(h,R,H){se(h,"forceUpdate")},enqueueReplaceState:function(h,R,H,j){se(h,"replaceState")},enqueueSetState:function(h,R,H,j){se(h,"setState")}},I=Object.assign,Pe={};Object.freeze(Pe);function Ue(h,R,H){this.props=h,this.context=R,this.refs=Pe,this.updater=H||k}Ue.prototype.isReactComponent={},Ue.prototype.setState=function(h,R){if(typeof h!="object"&&typeof h!="function"&&h!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,h,R,"setState")},Ue.prototype.forceUpdate=function(h){this.updater.enqueueForceUpdate(this,h,"forceUpdate")};{var Ze={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},nt=function(h,R){Object.defineProperty(Ue.prototype,h,{get:function(){xt("%s(...) is deprecated in plain JavaScript React classes. %s",R[0],R[1])}})};for(var Je in Ze)Ze.hasOwnProperty(Je)&&nt(Je,Ze[Je])}function at(){}at.prototype=Ue.prototype;function it(h,R,H){this.props=h,this.context=R,this.refs=Pe,this.updater=H||k}var It=it.prototype=new at;It.constructor=it,I(It,Ue.prototype),It.isPureReactComponent=!0;function Ln(){var h={current:null};return Object.seal(h),h}var la=Array.isArray;function _n(h){return la(h)}function ir(h){{var R=typeof Symbol=="function"&&Symbol.toStringTag,H=R&&h[Symbol.toStringTag]||h.constructor.name||"Object";return H}}function Rr(h){try{return Br(h),!1}catch{return!0}}function Br(h){return""+h}function Da(h){if(Rr(h))return Ce("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ir(h)),Br(h)}function $l(h,R,H){var j=h.displayName;if(j)return j;var ee=R.displayName||R.name||"";return ee!==""?H+"("+ee+")":H}function qi(h){return h.displayName||"Context"}function er(h){if(h==null)return null;if(typeof h.tag=="number"&&Ce("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof h=="function")return h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case W:return"Fragment";case M:return"Portal";case xe:return"Profiler";case S:return"StrictMode";case J:return"Suspense";case ge:return"SuspenseList"}if(typeof h=="object")switch(h.$$typeof){case ne:var R=h;return qi(R)+".Consumer";case X:var H=h;return qi(H._context)+".Provider";case We:return $l(h,h.render,"ForwardRef");case le:var j=h.displayName||null;return j!==null?j:er(h.type)||"Memo";case $e:{var ee=h,De=ee._payload,ie=ee._init;try{return er(ie(De))}catch{return null}}}return null}var xn=Object.prototype.hasOwnProperty,lr={key:!0,ref:!0,__self:!0,__source:!0},wr,hi,Fn;Fn={};function Ir(h){if(xn.call(h,"ref")){var R=Object.getOwnPropertyDescriptor(h,"ref").get;if(R&&R.isReactWarning)return!1}return h.ref!==void 0}function Ia(h){if(xn.call(h,"key")){var R=Object.getOwnPropertyDescriptor(h,"key").get;if(R&&R.isReactWarning)return!1}return h.key!==void 0}function mi(h,R){var H=function(){wr||(wr=!0,Ce("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",R))};H.isReactWarning=!0,Object.defineProperty(h,"key",{get:H,configurable:!0})}function Fl(h,R){var H=function(){hi||(hi=!0,Ce("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",R))};H.isReactWarning=!0,Object.defineProperty(h,"ref",{get:H,configurable:!0})}function re(h){if(typeof h.ref=="string"&&tt.current&&h.__self&&tt.current.stateNode!==h.__self){var R=er(tt.current.type);Fn[R]||(Ce('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',R,h.ref),Fn[R]=!0)}}var Te=function(h,R,H,j,ee,De,ie){var Le={$$typeof:D,type:h,key:R,ref:H,props:ie,_owner:De};return Le._store={},Object.defineProperty(Le._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Le,"_self",{configurable:!1,enumerable:!1,writable:!1,value:j}),Object.defineProperty(Le,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ee}),Object.freeze&&(Object.freeze(Le.props),Object.freeze(Le)),Le};function Xe(h,R,H){var j,ee={},De=null,ie=null,Le=null,Ke=null;if(R!=null){Ir(R)&&(ie=R.ref,re(R)),Ia(R)&&(Da(R.key),De=""+R.key),Le=R.__self===void 0?null:R.__self,Ke=R.__source===void 0?null:R.__source;for(j in R)xn.call(R,j)&&!lr.hasOwnProperty(j)&&(ee[j]=R[j])}var vt=arguments.length-2;if(vt===1)ee.children=H;else if(vt>1){for(var $t=Array(vt),Ot=0;Ot<vt;Ot++)$t[Ot]=arguments[Ot+2];Object.freeze&&Object.freeze($t),ee.children=$t}if(h&&h.defaultProps){var Ge=h.defaultProps;for(j in Ge)ee[j]===void 0&&(ee[j]=Ge[j])}if(De||ie){var Mt=typeof h=="function"?h.displayName||h.name||"Unknown":h;De&&mi(ee,Mt),ie&&Fl(ee,Mt)}return Te(h,De,ie,Le,Ke,tt.current,ee)}function bt(h,R){var H=Te(h.type,R,h.ref,h._self,h._source,h._owner,h.props);return H}function Yt(h,R,H){if(h==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+h+".");var j,ee=I({},h.props),De=h.key,ie=h.ref,Le=h._self,Ke=h._source,vt=h._owner;if(R!=null){Ir(R)&&(ie=R.ref,vt=tt.current),Ia(R)&&(Da(R.key),De=""+R.key);var $t;h.type&&h.type.defaultProps&&($t=h.type.defaultProps);for(j in R)xn.call(R,j)&&!lr.hasOwnProperty(j)&&(R[j]===void 0&&$t!==void 0?ee[j]=$t[j]:ee[j]=R[j])}var Ot=arguments.length-2;if(Ot===1)ee.children=H;else if(Ot>1){for(var Ge=Array(Ot),Mt=0;Mt<Ot;Mt++)Ge[Mt]=arguments[Mt+2];ee.children=Ge}return Te(h.type,De,ie,Le,Ke,vt,ee)}function ln(h){return typeof h=="object"&&h!==null&&h.$$typeof===D}var Kt=".",tr=":";function rn(h){var R=/[=:]/g,H={"=":"=0",":":"=2"},j=h.replace(R,function(ee){return H[ee]});return"$"+j}var jt=!1,un=/\/+/g;function yi(h){return h.replace(un,"$&/")}function ua(h,R){return typeof h=="object"&&h!==null&&h.key!=null?(Da(h.key),rn(""+h.key)):R.toString(36)}function gi(h,R,H,j,ee){var De=typeof h;(De==="undefined"||De==="boolean")&&(h=null);var ie=!1;if(h===null)ie=!0;else switch(De){case"string":case"number":ie=!0;break;case"object":switch(h.$$typeof){case D:case M:ie=!0}}if(ie){var Le=h,Ke=ee(Le),vt=j===""?Kt+ua(Le,0):j;if(_n(Ke)){var $t="";vt!=null&&($t=yi(vt)+"/"),gi(Ke,R,$t,"",function(id){return id})}else Ke!=null&&(ln(Ke)&&(Ke.key&&(!Le||Le.key!==Ke.key)&&Da(Ke.key),Ke=bt(Ke,H+(Ke.key&&(!Le||Le.key!==Ke.key)?yi(""+Ke.key)+"/":"")+vt)),R.push(Ke));return 1}var Ot,Ge,Mt=0,Zt=j===""?Kt:j+tr;if(_n(h))for(var ul=0;ul<h.length;ul++)Ot=h[ul],Ge=Zt+ua(Ot,ul),Mt+=gi(Ot,R,H,Ge,ee);else{var Vo=nn(h);if(typeof Vo=="function"){var wi=h;Vo===wi.entries&&(jt||xt("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),jt=!0);for(var Bo=Vo.call(wi),Ql,ad=0;!(Ql=Bo.next()).done;)Ot=Ql.value,Ge=Zt+ua(Ot,ad++),Mt+=gi(Ot,R,H,Ge,ee)}else if(De==="object"){var dc=String(h);throw new Error("Objects are not valid as a React child (found: "+(dc==="[object Object]"?"object with keys {"+Object.keys(h).join(", ")+"}":dc)+"). If you meant to render a collection of children, use an array instead.")}}return Mt}function jl(h,R,H){if(h==null)return h;var j=[],ee=0;return gi(h,j,"","",function(De){return R.call(H,De,ee++)}),j}function ac(h){var R=0;return jl(h,function(){R++}),R}function Lo(h,R,H){jl(h,function(){R.apply(this,arguments)},H)}function No(h){return jl(h,function(R){return R})||[]}function Ao(h){if(!ln(h))throw new Error("React.Children.only expected to receive a single React element child.");return h}function Uo(h){var R={$$typeof:ne,_currentValue:h,_currentValue2:h,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};R.Provider={$$typeof:X,_context:R};var H=!1,j=!1,ee=!1;{var De={$$typeof:ne,_context:R};Object.defineProperties(De,{Provider:{get:function(){return j||(j=!0,Ce("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),R.Provider},set:function(ie){R.Provider=ie}},_currentValue:{get:function(){return R._currentValue},set:function(ie){R._currentValue=ie}},_currentValue2:{get:function(){return R._currentValue2},set:function(ie){R._currentValue2=ie}},_threadCount:{get:function(){return R._threadCount},set:function(ie){R._threadCount=ie}},Consumer:{get:function(){return H||(H=!0,Ce("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),R.Consumer}},displayName:{get:function(){return R.displayName},set:function(ie){ee||(xt("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",ie),ee=!0)}}}),R.Consumer=De}return R._currentRenderer=null,R._currentRenderer2=null,R}var Yr=-1,oa=0,_r=1,Xi=2;function Si(h){if(h._status===Yr){var R=h._result,H=R();if(H.then(function(De){if(h._status===oa||h._status===Yr){var ie=h;ie._status=_r,ie._result=De}},function(De){if(h._status===oa||h._status===Yr){var ie=h;ie._status=Xi,ie._result=De}}),h._status===Yr){var j=h;j._status=oa,j._result=H}}if(h._status===_r){var ee=h._result;return ee===void 0&&Ce(`lazy: Expected the result of a dynamic import() call. Instead received: %s Your code should look like: const MyComponent = lazy(() => import('./MyComponent')) Did you accidentally put curly braces around the import?`,ee),"default"in ee||Ce(`lazy: Expected the result of a dynamic import() call. Instead received: %s Your code should look like: const MyComponent = lazy(() => import('./MyComponent'))`,ee),ee.default}else throw h._result}function Ki(h){var R={_status:Yr,_result:h},H={$$typeof:$e,_payload:R,_init:Si};{var j,ee;Object.defineProperties(H,{defaultProps:{configurable:!0,get:function(){return j},set:function(De){Ce("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),j=De,Object.defineProperty(H,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return ee},set:function(De){Ce("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),ee=De,Object.defineProperty(H,"propTypes",{enumerable:!0})}}})}return H}function Zi(h){h!=null&&h.$$typeof===le?Ce("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof h!="function"?Ce("forwardRef requires a render function but was given %s.",h===null?"null":typeof h):h.length!==0&&h.length!==2&&Ce("forwardRef render functions accept exactly two parameters: props and ref. %s",h.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),h!=null&&(h.defaultProps!=null||h.propTypes!=null)&&Ce("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var R={$$typeof:We,render:h};{var H;Object.defineProperty(R,"displayName",{enumerable:!1,configurable:!0,get:function(){return H},set:function(j){H=j,!h.name&&!h.displayName&&(h.displayName=j)}})}return R}var Ji;Ji=Symbol.for("react.module.reference");function Ei(h){return!!(typeof h=="string"||typeof h=="function"||h===W||h===xe||Xt||h===S||h===J||h===ge||Be||h===ht||Bt||qt||Rt||typeof h=="object"&&h!==null&&(h.$$typeof===$e||h.$$typeof===le||h.$$typeof===X||h.$$typeof===ne||h.$$typeof===We||h.$$typeof===Ji||h.getModuleId!==void 0))}function Mu(h,R){Ei(h)||Ce("memo: The first argument must be a component. Instead received: %s",h===null?"null":typeof h);var H={$$typeof:le,type:h,compare:R===void 0?null:R};{var j;Object.defineProperty(H,"displayName",{enumerable:!1,configurable:!0,get:function(){return j},set:function(ee){j=ee,!h.name&&!h.displayName&&(h.displayName=ee)}})}return H}function hn(){var h=Ye.current;return h===null&&Ce(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: 1. You might have mismatching versions of React and the renderer (such as React DOM) 2. You might be breaking the Rules of Hooks 3. You might have more than one copy of React in the same app See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),h}function Qr(h){var R=hn();if(h._context!==void 0){var H=h._context;H.Consumer===h?Ce("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):H.Provider===h&&Ce("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return R.useContext(h)}function Nn(h){var R=hn();return R.useState(h)}function ic(h,R,H){var j=hn();return j.useReducer(h,R,H)}function ed(h){var R=hn();return R.useRef(h)}function zo(h,R){var H=hn();return H.useEffect(h,R)}function lc(h,R){var H=hn();return H.useInsertionEffect(h,R)}function uc(h,R){var H=hn();return H.useLayoutEffect(h,R)}function oc(h,R){var H=hn();return H.useCallback(h,R)}function sc(h,R){var H=hn();return H.useMemo(h,R)}function td(h,R,H){var j=hn();return j.useImperativeHandle(h,R,H)}function kt(h,R){{var H=hn();return H.useDebugValue(h,R)}}function et(){var h=hn();return h.useTransition()}function Ci(h){var R=hn();return R.useDeferredValue(h)}function Ho(){var h=hn();return h.useId()}function Pl(h,R,H){var j=hn();return j.useSyncExternalStore(h,R,H)}var el=0,Lu,tl,xr,$o,ur,cc,fc;function Nu(){}Nu.__reactDisabledLog=!0;function nl(){{if(el===0){Lu=console.log,tl=console.info,xr=console.warn,$o=console.error,ur=console.group,cc=console.groupCollapsed,fc=console.groupEnd;var h={configurable:!0,enumerable:!0,value:Nu,writable:!0};Object.defineProperties(console,{info:h,log:h,warn:h,error:h,group:h,groupCollapsed:h,groupEnd:h})}el++}}function Wr(){{if(el--,el===0){var h={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},h,{value:Lu}),info:I({},h,{value:tl}),warn:I({},h,{value:xr}),error:I({},h,{value:$o}),group:I({},h,{value:ur}),groupCollapsed:I({},h,{value:cc}),groupEnd:I({},h,{value:fc})})}el<0&&Ce("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Oa=zt.ReactCurrentDispatcher,Ma;function Au(h,R,H){{if(Ma===void 0)try{throw Error()}catch(ee){var j=ee.stack.trim().match(/\n( *(at )?)/);Ma=j&&j[1]||""}return` `+Ma+h}}var Vl=!1,rl;{var Uu=typeof WeakMap=="function"?WeakMap:Map;rl=new Uu}function zu(h,R){if(!h||Vl)return"";{var H=rl.get(h);if(H!==void 0)return H}var j;Vl=!0;var ee=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var De;De=Oa.current,Oa.current=null,nl();try{if(R){var ie=function(){throw Error()};if(Object.defineProperty(ie.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ie,[])}catch(Zt){j=Zt}Reflect.construct(h,[],ie)}else{try{ie.call()}catch(Zt){j=Zt}h.call(ie.prototype)}}else{try{throw Error()}catch(Zt){j=Zt}h()}}catch(Zt){if(Zt&&j&&typeof Zt.stack=="string"){for(var Le=Zt.stack.split(` `),Ke=j.stack.split(` `),vt=Le.length-1,$t=Ke.length-1;vt>=1&&$t>=0&&Le[vt]!==Ke[$t];)$t--;for(;vt>=1&&$t>=0;vt--,$t--)if(Le[vt]!==Ke[$t]){if(vt!==1||$t!==1)do if(vt--,$t--,$t<0||Le[vt]!==Ke[$t]){var Ot=` `+Le[vt].replace(" at new "," at ");return h.displayName&&Ot.includes("<anonymous>")&&(Ot=Ot.replace("<anonymous>",h.displayName)),typeof h=="function"&&rl.set(h,Ot),Ot}while(vt>=1&&$t>=0);break}}}finally{Vl=!1,Oa.current=De,Wr(),Error.prepareStackTrace=ee}var Ge=h?h.displayName||h.name:"",Mt=Ge?Au(Ge):"";return typeof h=="function"&&rl.set(h,Mt),Mt}function Ti(h,R,H){return zu(h,!1)}function nd(h){var R=h.prototype;return!!(R&&R.isReactComponent)}function Ri(h,R,H){if(h==null)return"";if(typeof h=="function")return zu(h,nd(h));if(typeof h=="string")return Au(h);switch(h){case J:return Au("Suspense");case ge:return Au("SuspenseList")}if(typeof h=="object")switch(h.$$typeof){case We:return Ti(h.render);case le:return Ri(h.type,R,H);case $e:{var j=h,ee=j._payload,De=j._init;try{return Ri(De(ee),R,H)}catch{}}}return""}var yt={},Hu=zt.ReactDebugCurrentFrame;function pt(h){if(h){var R=h._owner,H=Ri(h.type,h._source,R?R.type:null);Hu.setExtraStackFrame(H)}else Hu.setExtraStackFrame(null)}function Fo(h,R,H,j,ee){{var De=Function.call.bind(xn);for(var ie in h)if(De(h,ie)){var Le=void 0;try{if(typeof h[ie]!="function"){var Ke=Error((j||"React class")+": "+H+" type `"+ie+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof h[ie]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ke.name="Invariant Violation",Ke}Le=h[ie](R,ie,j,H,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(vt){Le=vt}Le&&!(Le instanceof Error)&&(pt(ee),Ce("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",j||"React class",H,ie,typeof Le),pt(null)),Le instanceof Error&&!(Le.message in yt)&&(yt[Le.message]=!0,pt(ee),Ce("Failed %s type: %s",H,Le.message),pt(null))}}}function Ya(h){if(h){var R=h._owner,H=Ri(h.type,h._source,R?R.type:null);Ut(H)}else Ut(null)}var je;je=!1;function $u(){if(tt.current){var h=er(tt.current.type);if(h)return` Check the render method of \``+h+"`."}return""}function jn(h){if(h!==void 0){var R=h.fileName.replace(/^.*[\\\/]/,""),H=h.lineNumber;return` Check your code at `+R+":"+H+"."}return""}function Qa(h){return h!=null?jn(h.__source):""}var or={};function Wa(h){var R=$u();if(!R){var H=typeof h=="string"?h:h.displayName||h.name;H&&(R=` Check the top-level render call using <`+H+">.")}return R}function Pt(h,R){if(!(!h._store||h._store.validated||h.key!=null)){h._store.validated=!0;var H=Wa(R);if(!or[H]){or[H]=!0;var j="";h&&h._owner&&h._owner!==tt.current&&(j=" It was passed a child from "+er(h._owner.type)+"."),Ya(h),Ce('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',H,j),Ya(null)}}}function Dt(h,R){if(typeof h=="object"){if(_n(h))for(var H=0;H<h.length;H++){var j=h[H];ln(j)&&Pt(j,R)}else if(ln(h))h._store&&(h._store.validated=!0);else if(h){var ee=nn(h);if(typeof ee=="function"&&ee!==h.entries)for(var De=ee.call(h),ie;!(ie=De.next()).done;)ln(ie.value)&&Pt(ie.value,R)}}}function al(h){{var R=h.type;if(R==null||typeof R=="string")return;var H;if(typeof R=="function")H=R.propTypes;else if(typeof R=="object"&&(R.$$typeof===We||R.$$typeof===le))H=R.propTypes;else return;if(H){var j=er(R);Fo(H,h.props,"prop",j,h)}else if(R.PropTypes!==void 0&&!je){je=!0;var ee=er(R);Ce("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ee||"Unknown")}typeof R.getDefaultProps=="function"&&!R.getDefaultProps.isReactClassApproved&&Ce("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function bn(h){{for(var R=Object.keys(h.props),H=0;H<R.length;H++){var j=R[H];if(j!=="children"&&j!=="key"){Ya(h),Ce("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",j),Ya(null);break}}h.ref!==null&&(Ya(h),Ce("Invalid attribute `ref` supplied to `React.Fragment`."),Ya(null))}}function sr(h,R,H){var j=Ei(h);if(!j){var ee="";(h===void 0||typeof h=="object"&&h!==null&&Object.keys(h).length===0)&&(ee+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var De=Qa(R);De?ee+=De:ee+=$u();var ie;h===null?ie="null":_n(h)?ie="array":h!==void 0&&h.$$typeof===D?(ie="<"+(er(h.type)||"Unknown")+" />",ee=" Did you accidentally export a JSX literal instead of a component?"):ie=typeof h,Ce("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ie,ee)}var Le=Xe.apply(this,arguments);if(Le==null)return Le;if(j)for(var Ke=2;Ke<arguments.length;Ke++)Dt(arguments[Ke],h);return h===W?bn(Le):al(Le),Le}var sa=!1;function Bl(h){var R=sr.bind(null,h);return R.type=h,sa||(sa=!0,xt("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(R,"type",{enumerable:!1,get:function(){return xt("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:h}),h}}),R}function jo(h,R,H){for(var j=Yt.apply(this,arguments),ee=2;ee<arguments.length;ee++)Dt(arguments[ee],j.type);return al(j),j}function Po(h,R){var H=ot.transition;ot.transition={};var j=ot.transition;ot.transition._updatedFibers=new Set;try{h()}finally{if(ot.transition=H,H===null&&j._updatedFibers){var ee=j._updatedFibers.size;ee>10&&xt("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),j._updatedFibers.clear()}}}var il=!1,Il=null;function rd(h){if(Il===null)try{var R=("require"+Math.random()).slice(0,7),H=A&&A[R];Il=H.call(A,"timers").setImmediate}catch{Il=function(ee){il===!1&&(il=!0,typeof MessageChannel>"u"&&Ce("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var De=new MessageChannel;De.port1.onmessage=ee,De.port2.postMessage(void 0)}}return Il(h)}var ca=0,La=!1;function Ga(h){{var R=ca;ca++,ke.current===null&&(ke.current=[]);var H=ke.isBatchingLegacy,j;try{if(ke.isBatchingLegacy=!0,j=h(),!H&&ke.didScheduleLegacyUpdate){var ee=ke.current;ee!==null&&(ke.didScheduleLegacyUpdate=!1,ll(ee))}}catch(Ge){throw fa(R),Ge}finally