PageSourceSearch

https://app.uaitec.ai/assets/vendors.D5VPZlu6.js

js uaitec.ai collected 2026-10-05 13:47:40 UTC 918,400 bytes, 25 lines download raw bytes

vendor: 7,002 bytes, line 1
1import{g as ut,r as E,a as ft,R as Ae,t as La,b as Rl,j as G,c as Ny,d as xo}from"./react-core.DJiaDNPT.js";function Tt(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const Pe=e=>typeof e=="string",Qi=()=>{let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n},Dp=e=>e==null?"":""+e,TE=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},AE=/###/g,Np=e=>e&&e.indexOf("###")>-1?e.replace(AE,"."):e,jp=e=>!e||Pe(e),Eo=(e,t,n)=>{const r=Pe(t)?t.split("."):t;let i=0;for(;i<r.length-1;){if(jp(e))return{};const o=Np(r[i]);!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={},++i}return jp(e)?{}:{obj:e,k:Np(r[i])}},$p=(e,t,n)=>{const{obj:r,k:i}=Eo(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let o=t[t.length-1],s=t.slice(0,t.length-1),a=Eo(e,s,Object);for(;a.obj===void 0&&s.length;)o=`${s[s.length-1]}.${o}`,s=s.slice(0,s.length-1),a=Eo(e,s,Object),a?.obj&&typeof a.obj[`${a.k}.${o}`]<"u"&&(a.obj=void 0);a.obj[`${a.k}.${o}`]=n},LE=(e,t,n,r)=>{const{obj:i,k:o}=Eo(e,t,Object);i[o]=i[o]||[],i[o].push(n)},Ma=(e,t)=>{const{obj:n,k:r}=Eo(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},ME=(e,t,n)=>{const r=Ma(e,n);return r!==void 0?r:Ma(t,n)},jy=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?Pe(e[r])||e[r]instanceof String||Pe(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):jy(e[r],t[r],n):e[r]=t[r]);return e},Rr=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var IE={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const DE=e=>Pe(e)?e.replace(/[&<>"'\/]/g,t=>IE[t]):e;class NE{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const jE=[" ",",","?","!",";"],$E=new NE(20),FE=(e,t,n)=>{t=t||"",n=n||"";const r=jE.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(r.length===0)return!0;const i=$E.getRegExp(`(${r.map(s=>s==="?"?"\\?":s).join("|")})`);let o=!i.test(e);if(!o){const s=e.indexOf(n);s>0&&!i.test(e.substring(0,s))&&(o=!0)}return o},Yu=(e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const r=t.split(n);let i=e;for(let o=0;o<r.length;){if(!i||typeof i!="object")return;let s,a="";for(let l=o;l<r.length;++l)if(l!==o&&(a+=n),a+=r[l],s=i[a],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&l<r.length-1)continue;o+=l-o+1;break}i=s}return i},To=e=>e?.replace("_","-"),BE={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class Ia{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||BE,this.options=n,this.debug=n.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,i){return i&&!this.debug?null:(Pe(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Ia(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Ia(this.logger,t)}}var Hn=new Ia;class kl{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([i,o])=>{for(let s=0;s<o;s++)i(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([i,o])=>{for(let s=0;s<o;s++)i.apply(i,[t,...n])})}}class Fp extends kl{constructor(t,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r,i={}){const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,s=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;t.indexOf(".")>-1?a=t.split("."):(a=[t,n],r&&(Array.isArray(r)?a.push(...r):Pe(r)&&o?a.push(...r.split(o)):a.push(r)));const l=Ma(this.data,a);return!l&&!n&&!r&&t.indexOf(".")>-1&&(t=a[0],n=a[1],r=a.slice(2).join(".")),l||!s||!Pe(r)?l:Yu(this.data?.[t]?.[n],r,o)}addResource(t,n,r,i,o={silent:!1}){const s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let a=[t,n];r&&(a=a.concat(s?r.split(s):r)),t.indexOf(".")>-1&&(a=t.split("."),i=n,n=a[1]),this.addNamespaces(n),$p(this.data,a,i),o.silent||this.emit("added",t,n,r,i)}addResources(t,n,r,i={silent:!1}){for(const o in r)(Pe(r[o])||Array.isArray(r[o]))&&this.addResource(t,n,o,r[o],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,o,s={silent:!1,skipCopy:!1}){let a=[t,n];t.indexOf(".")>-1&&(a=t.split("."),i=r,r=n,n=a[1]),this.addNamespaces(n);let l=Ma(this.data,a)||{};s.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?jy(l,r,o):l={...l,...r},$p(this.data,a,l),s.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var $y={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(o=>{t=this.processors[o]?.process(t,n,r,i)??t}),t}};const Fy=Symbol("i18next/PATH_KEY");function VE(){const e=[],t=Object.create(null);let n;return t.get=(r,i)=>(n?.revoke?.(),i===Fy?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function Da(e,t){const{[Fy]:n}=e(VE());return n.join(t?.keySeparator??".")}const Bp={},mc=e=>!Pe(e)&&typeof e!="boolean"&&typeof e!="number";class Na extends kl{constructor(t,n={}){super(),TE(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
1i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Hn.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){const r={...n};if(t==null)return!1;const i=this.resolve(t,r);if(i?.res===void 0)return!1;const o=mc(i.res);return!(r.returnObjects===!1&&o)}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const s=r&&t.indexOf(r)>-1,a=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!FE(t,r,i);if(s&&!a){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:Pe(o)?[o]:o};const c=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(c[0])>-1)&&(o=c.shift()),t=c.join(i)}return{key:t,namespaces:Pe(o)?[o]:o}}translate(t,n,r){let i=typeof n=="object"?{...n}:n;if(typeof i!="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i=="object"&&(i={...i}),i||(i={}),t==null)return"";typeof t=="function"&&(t=Da(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]);const o=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,{key:a,namespaces:l}=this.extractFromKey(t[t.length-1],i),c=l[l.length-1];let f=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;f===void 0&&(f=":");const u=i.lng||this.language,p=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u?.toLowerCase()==="cimode")return p?o?{res:`${c}${f}${a}`,usedKey:a,exactUsedKey:a,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(i)}:`${c}${f}${a}`:o?{res:a,usedKey:a,exactUsedKey:a,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(i)}:a;const h=this.resolve(t,i);let g=h?.res;const y=h?.usedKey||a,w=h?.exactUsedKey||a,x=["[object Number]","[object Function]","[object RegExp]"],b=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject,d=i.count!==void 0&&!Pe(i.count),v=Na.hasDefaultValue(i),_=d?this.pluralResolver.getSuffix(u,i.count,i):"",O=i.ordinal&&d?this.pluralResolver.getSuffix(u,i.count,{ordinal:!1}):"",C=d&&!i.ordinal&&i.count===0,k=C&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${_}`]||i[`defaultValue${O}`]||i.defaultValue;let A=g;m&&!g&&v&&(A=k);const T=mc(A),M=Object.prototype.toString.apply(A);if(m&&A&&T&&x.indexOf(M)<0&&!(Pe(b)&&Array.isArray(A))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const I=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,A,{...i,ns:l}):`key '${a} (${this.language})' returned an object instead of string.`;return o?(h.res=I,h.usedParams=this.getUsedParamsDetails(i),h):I}if(s){const I=Array.isArray(A),P=I?[]:{},S=I?w:y;for(const R in A)if(Object.prototype.hasOwnProperty.call(A,R)){const D=`${S}${s}${R}`;v&&!g?P[R]=this.translate(D,{...i,defaultValue:mc(k)?k[R]:void 0,joinArrays:!1,ns:l}):P[R]=this.translate(D,{...i,joinArrays:!1,ns:l}),P[R]===D&&(P[R]=A[R])}g=P}}else if(m&&Pe(b)&&Array.isArray(g))g=g.join(b),g&&(g=this.extendTranslation(g,t,i,r));else{let I=!1,P=!1;!this.isValidLookup(g)&&v&&(I=!0,g=k),this.isValidLookup(g)||(P=!0,g=a);const R=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&P?void 0:g,D=v&&k!==g&&this.options.updateMissing;if(P||I||D){if(this.logger.log(D?"updateKey":"missingKey",u,c,a,D?k:g),s){const B=this.resolve(a,{...i,keySeparator:!1});B&&B.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let L=[];const N=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&N&&N[0])for(let B=0;B<N.length;B++)L.push(N[B]);else this.options.saveMissingTo==="all"?L=this.languageUtils.toResolveHierarchy(i.lng||this.language):L.push(i.lng||this.language);const $=(B,V,W)=>{const F=v&&W!==g?W:R;this.options.missingKeyHandler?this.options.missingKeyHandler(B,c,V,F,D,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(B,c,V,F,D,i),this.emit
vendor: 29,090 bytes, line 1
1("missingKey",B,c,V,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&d?L.forEach(B=>{const V=this.pluralResolver.getSuffixes(B,i);C&&i[`defaultValue${this.options.pluralSeparator}zero`]&&V.indexOf(`${this.options.pluralSeparator}zero`)<0&&V.push(`${this.options.pluralSeparator}zero`),V.forEach(W=>{$([B],a+W,i[`defaultValue${W}`]||k)})}):$(L,a,k))}g=this.extendTranslation(g,t,i,h,r),P&&g===a&&this.options.appendNamespaceToMissingKey&&(g=`${c}${f}${a}`),(P||I)&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}${f}${a}`:a,I?g:void 0,i))}return o?(h.res=g,h.usedParams=this.getUsedParamsDetails(i),h):g}extendTranslation(t,n,r,i,o){if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const l=Pe(t)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(l){const u=t.match(this.interpolator.nestingRegexp);c=u&&u.length}let f=r.replace&&!Pe(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),t=this.interpolator.interpolate(t,f,r.lng||this.language||i.usedLng,r),l){const u=t.match(this.interpolator.nestingRegexp),p=u&&u.length;c<p&&(r.nest=!1)}!r.lng&&i&&i.res&&(r.lng=this.language||i.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,(...u)=>o?.[0]===u[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${u[0]} in key: ${n[0]}`),null):this.translate(...u,n),r)),r.interpolation&&this.interpolator.reset()}const s=r.postProcess||this.options.postProcess,a=Pe(s)?[s]:s;return t!=null&&a?.length&&r.applyPostProcessor!==!1&&(t=$y.handle(a,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t,n={}){let r,i,o,s,a;return Pe(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(r))return;const c=this.extractFromKey(l,n),f=c.key;i=f;let u=c.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));const p=n.count!==void 0&&!Pe(n.count),h=p&&!n.ordinal&&n.count===0,g=n.context!==void 0&&(Pe(n.context)||typeof n.context=="number")&&n.context!=="",y=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);u.forEach(w=>{this.isValidLookup(r)||(a=w,!Bp[`${y[0]}-${w}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(a)&&(Bp[`${y[0]}-${w}`]=!0,this.logger.warn(`key "${i}" for languages "${y.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),y.forEach(x=>{if(this.isValidLookup(r))return;s=x;const b=[f];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(b,f,x,w,n);else{let d;p&&(d=this.pluralResolver.getSuffix(x,n.count,n));const v=`${this.options.pluralSeparator}zero`,_=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(n.ordinal&&d.indexOf(_)===0&&b.push(f+d.replace(_,this.options.pluralSeparator)),b.push(f+d),h&&b.push(f+v)),g){const O=`${f}${this.options.contextSeparator||"_"}${n.context}`;b.push(O),p&&(n.ordinal&&d.indexOf(_)===0&&b.push(O+d.replace(_,this.options.pluralSeparator)),b.push(O+d),h&&b.push(O+v))}}let m;for(;m=b.pop();)this.isValidLookup(r)||(o=m,r=this.getResource(x,w,m,n))}))})}),{res:r,usedKey:i,exactUsedKey:o,usedLng:s,usedNS:a}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r,i={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}getUsedParamsDetails(t={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!Pe(t.replace);let i=r?t.replace:t;if(r&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const o of n)delete i[o]}return i}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}class Vp{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Hn.create("languageUtils")}getScriptPartFromCode(t){if(t=To(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=To(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Pe(t)&&t.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getScriptPartFromCode(r);if(this.isSupportedCode(i))return n=i;const o=this.getLanguagePartFromCode(r);if(this.isSupportedCode(o))return n=o;n=this.options.supportedLngs.find(s=>{if(s===o)return s;if(!(s.indexOf("-")<0&&o.indexOf("-")<0)&&(s.indexOf("-")>0&&o.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===o||s.indexOf(o)===0&&o.length>1))return s})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),Pe(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],t),i=[],o=s=>{s&&(this.isSupportedCode(s)?i.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return Pe(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):Pe(t)&&o(this.formatLanguageCode(t)),r.forEach(s=>{i.indexOf(s)<0&&o(this.formatLanguageCode(s))}),i}}const Hp={zero:0,one:1,two:2,few:3,many:4,other:5},zp={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class HE{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=Hn.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){const r=To(t==="dev"?"en":t),i=n.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:r,type:i});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let s;try{s=new Intl.PluralRules(r,{type:i})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),zp;if(!t.match(/-|_/))return zp;const l=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(l,n)}return this.pluralRulesCache[o]=s,s}needsPlural(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,n,r={}){return this.getSuffixes(t,r).map(i=>`${n}${i}`)}getSuffixes(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((i,o)=>Hp[i]-Hp[o]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):[]}getSuffix(t,n,r={}){const i=this.getRule(t,r);return i?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,r))}}const Up=(e,t,n,r=".",i=!0)=>{let o=ME(e,t,n);return!o&&i&&Pe(n)&&(o=Yu(e,n,r),o===void 0&&(o=Yu(t,n,r))),o},gc=e=>e.replace(/\$/g,"$$$$");class Wp{constructor(t={}){this.logger=Hn.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(n=>n),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:i,prefix:o,prefixEscaped:s,suffix:a,suffixEscaped:l,formatSeparator:c,unescapeSuffix:f,unescapePrefix:u,nestingPrefix:p,nestingPrefixEscaped:h,nestingSuffix:g,nestingSuffixEscaped:y,nestingOptionsSeparator:w,maxReplaces:x,alwaysFormat:b}=t.interpolation;this.escape=n!==void 0?n:DE,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=o?Rr(o):s||"{{",this.suffix=a?Rr(a):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=f?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":f||"",this.nestingPrefix=p?Rr(p):h||Rr("$t("),this.nestingSuffix=g?Rr(g):y||Rr(")"),this.nestingOptionsSeparator=w||",",this.maxReplaces=x||1e3,this.alwaysFormat=b!==void 0?b:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n?.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,n,r,i){let o,s,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=h=>{if(h.indexOf(this.formatSeparator)<0){const x=Up(n,l,h,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(x,void 0,r,{...i,...n,interpolationkey:h}):x}const g=h.split(this.formatSeparator),y=g.shift().trim(),w=g.join(this.formatSeparator).trim();return this.format(Up(n,l,y,this.options.keySeparator,this.options.ignoreJSONStructure),w,r,{...i,...n,interpolationkey:y})};this.resetRegExp();const f=i?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=i?.interpolation?.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:h=>gc(h)},{regex:this.regexp,safeValue:h=>this.escapeValue?gc(this.escape(h)):gc(h)}].forEach(h=>{for(a=0;o=h.regex.exec(t);){const g=o[1].trim();if(s=c(g),s===void 0)if(typeof f=="function"){const w=f(t,o,i);s=Pe(w)?w:""}else if(i&&Object.prototype.hasOwnProperty.call(i,g))s="";else if(u){s=o[0];continue}else this.logger.warn(`missed to pass in variable ${g} for interpolating ${t}`),s="";else!Pe(s)&&!this.useRawValueToEscape&&(s=Dp(s));const y=h.safeValue(s);if(t=t.replace(o[0],y),u?(h.regex.lastIndex+=s.length,h.regex.lastIndex-=o[0].length):h.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),t}nest(t,n,r={}){let i,o,s;const a=(l,c)=>{const f=this.nestingOptionsSeparator;if(l.indexOf(f)<0)return l;const u=l.split(new RegExp(`${Rr(f)}[ ]*{`));let p=`{${u[1]}`;l=u[0],p=this.interpolate(p,s);const h=p.match(/'/g),g=p.match(/"/g);((h?.length??0)%2===0&&!g||(g?.length??0)%2!==0)&&(p=p.replace(/'/g,'"'));try{s=JSON.parse(p),c&&(s={...c,...s})}catch(y){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,y),`${l}${f}${p}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,l};for(;i=this.nestingRegexp.exec(t);){let l=[];s={...r},s=s.replace&&!Pe(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;const c=/{.*}/.test(i[1])?i[1].lastIndexOf("}")+1:i[1].indexOf(this.formatSeparator);if(c!==-1&&(l=i[1].slice(c).split(this.formatSeparator).map(f=>f.trim()).filter(Boolean),i[1]=i[1].slice(0,c)),o=n(a.call(this,i[1].trim(),s),s),o&&i[0]===t&&!Pe(o))return o;Pe(o)||(o=Dp(o)),o||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),o=""),l.length&&(o=l.reduce((f,u)=>this.format(f,u,r.lng,{...r,interpolationkey:i[1].trim()}),o.trim())),t=t.replace(i[0],o),this.regexp.lastIndex=0}return t}}const zE=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(s=>{if(s){const[a,...l]=s.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),f=a.trim();n[f]||(n[f]=c),c==="false"&&(n[f]=!1),c==="true"&&(n[f]=!0),isNaN(c)||(n[f]=parseInt(c,10))}})}return{formatName:t,formatOptions:n}},qp=e=>{const t={};return(n,r,i)=>{let o=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(o={...o,[i.interpolationkey]:void 0});const s=r+JSON.stringify(o);let a=t[s];return a||(a=e(To(r),i),t[s]=a),a(n)}},UE=e=>(t,n,r)=>e(To(n),r)(t);class WE{constructor(t={}){this.logger=Hn.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const r=n.cacheInBuiltFormats?qp:UE;this.formats={number:r((i,o)=>{const s=new Intl.NumberFormat(i,{...o});return a=>s.format(a)}),currency:r((i,o)=>{const s=new Intl.NumberFormat(i,{...o,style:"currency"});return a=>s.format(a)}),datetime:r((i,o)=>{const s=new Intl.DateTimeFormat(i,{...o});return a=>s.format(a)}),relativetime:r((i,o)=>{const s=new Intl.RelativeTimeFormat(i,{...o});return a=>s.format(a,o.range||"day")}),list:r((i,o)=>{const s=new Intl.ListFormat(i,{...o});return a=>s.format(a)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=qp(n)}format(t,n,r,i={}){const o=n.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(a=>a.indexOf(")")>-1)){const a=o.findIndex(l=>l.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,a)].join(this.formatSeparator)}return o.reduce((a,l)=>{const{formatName:c,formatOptions:f}=zE(l);if(this.formats[c]){let u=a;try{const p=i?.formatParams?.[i.interpolationkey]||{},h=p.locale||p.lng||i.locale||i.lng||r;u=this.formats[c](a,h,{...f,...i,...p})}catch(p){this.logger.warn(p)}return u}else this.logger.warn(`there was no format function for ${c}`);return a},t)}}const qE=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class YE extends kl{constructor(t,n,r,i={}){super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=Hn.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,i.backend,i)}queueLoad(t,n,r,i){const o={},s={},a={},l={};return t.forEach(c=>{let f=!0;n.forEach(u=>{const p=`${c}|${u}`;!r.reload&&this.store.hasResourceBundle(c,u)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?s[p]===void 0&&(s[p]=!0):(this.state[p]=1,f=!1,s[p]===void 0&&(s[p]=!0),o[p]===void 0&&(o[p]=!0),l[u]===void 0&&(l[u]=!0)))}),f||(a[c]=!0)}),(Object.keys(o).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(s),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const i=t.split("|"),o=i[0],s=i[1];n&&this.emit("failedLoading",o,s,n),!n&&r&&this.store.addResourceBundle(o,s,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const a={};this.queue.forEach(l=>{LE(l.loaded,[o],s),qE(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{a[c]||(a[c]={});const f=l.loaded[c];f.length&&f.forEach(u=>{a[c][u]===void 0&&(a[c][u]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(l=>!l.done)}read(t,n,r,i=0,o=this.retryTimeout,s){if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:o,callback:s});return}this.readingCalls++;const a=(c,f)=>{if(this.readingCalls--,this.waitingReads.length>0){const u=this.waitingReads.shift();this.read(u.lng,u.ns,u.fcName,u.tried,u.wait,u.callback)}if(c&&f&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,i+1,o*2,s)},o);return}s(c,f)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const c=l(t,n);c&&typeof c.then=="function"?c.then(f=>a(null,f)).catch(a):a(null,c)}catch(c){a(c)}return}return l(t,n,a)}prepareLoading(t,n,r={},i){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();Pe(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Pe(n)&&(n=[n]);const o=this.queueLoad(t,n,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t,n=""){const r=t.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(s,a)=>{s&&this.logger.warn(`${n}loading namespace ${o} for language ${i} failed`,s),!s&&a&&this.logger.log(`${n}loaded namespace ${o} for language ${i}`,a),this.loaded(t,s,a)})}saveMissing(t,n,r,i,o,s={},a=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend?.create){const l={...s,isUpdate:o},c=this.backend.create.bind(this.backend);if(c.length<6)try{let f;c.length===5?f=c(t,n,r,i,l):f=c(t,n,r,i),f&&typeof f.then=="function"?f.then(u=>a(null,u)).catch(a):a(null,f)}catch(f){a(f)}else c(t,n,r,i,a,l)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}}const vc=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Pe(e[1])&&(t.defaultValue=e[1]),Pe(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Yp=e=>(Pe(e.ns)&&(e.ns=[e.ns]),Pe(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Pe(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e),_s=()=>{},KE=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},By="__i18next_supportNoticeShown",XE=()=>typeof globalThis<"u"&&!!globalThis[By],GE=()=>{typeof globalThis<"u"&&(globalThis[By]=!0)},ZE=e=>!!(e?.modules?.backend?.name?.indexOf("Locize")>0||e?.modules?.backend?.constructor?.name?.indexOf("Locize")>0||e?.options?.backend?.backends&&e.options.backend.backends.some(t=>t?.name?.indexOf("Locize")>0||t?.constructor?.name?.indexOf("Locize")>0)||e?.options?.backend?.projectId||e?.options?.backend?.backendOptions&&e.options.backend.backendOptions.some(t=>t?.projectId));class _o extends kl{constructor(t={},n){if(super(),this.options=Yp(t),this.services={},this.logger=Hn,this.modules={external:[]},KE(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(t={},n){this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(Pe(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=vc();this.options={...r,...this.options,...Yp(t)},this.options.interpolation={...r.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!ZE(this)&&!XE()&&(typeof console<"u"&&typeof console.info<"u"&&console.info("🌐 i18next is maintained with support from Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),GE());const i=c=>c?typeof c=="function"?new c:c:null;if(!this.options.isClone){this.modules.logger?Hn.init(i(this.modules.logger),this.options):Hn.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:c=WE;const f=new Vp(this.options);this.store=new Fp(this.options.resources,this.options);const u=this.services;u.logger=Hn,u.resourceStore=this.store,u.languageUtils=f,u.pluralResolver=new HE(f,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),c&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(u.formatter=i(c),u.formatter.init&&u.formatter.init(u,this.options),this.options.interpolation.format=u.formatter.format.bind(u.formatter)),u.interpolator=new Wp(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new YE(i(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",(h,...g)=>{this.emit(h,...g)}),this.modules.languageDetector&&(u.languageDetector=i(this.modules.languageDetector),u.languageDetector.init&&u.languageDetector.init(u,this.options.detection,this.options)),this.modules.i18nFormat&&(u.i18nFormat=i(this.modules.i18nFormat),u.i18nFormat.init&&u.i18nFormat.init(this)),this.translator=new Na(this.services,this.options),this.translator.on("*",(h,...g)=>{this.emit(h,...g)}),this.modules.external.forEach(h=>{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,n||(n=_s),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(c=>{this[c]=(...f)=>this.store[c](...f)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=(...f)=>(this.store[c](...f),this)});const a=Qi(),l=()=>{const c=(f,u)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(u),n(f,u)};if(this.languages&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),a}loadResources(t,n=_s){let r=n;const i=Pe(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const o=[],s=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(c=>{c!=="cimode"&&o.indexOf(c)<0&&o.push(c)})};i?s(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>s(l)),this.options.preload?.forEach?.(a=>s(a)),this.services.backendConnector.load(o,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(a)})}else r(null)}reloadResources(t,n,r){const i=Qi();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=_s),this.services.backendConnector.reload(t,n,o=>{i.resolve(),r(o)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&$y.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,n){this.isLanguageChangingTo=t;const r=Qi();this.emit("languageChanging",t);const i=a=>{this.language=a,this.languages=this.services.languageUtils.toResolveHierarchy(a),this.resolvedLanguage=void 0,this.setResolvedLanguage(a)},o=(a,l)=>{l?this.isLanguageChangingTo===t&&(i(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,r.resolve((...c)=>this.t(...c)),n&&n(a,(...c)=>this.t(...c))},s=a=>{!t&&!a&&this.services.languageDetector&&(a=[]);const l=Pe(a)?a:a&&a[0],c=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(Pe(a)?[a]:a);c&&(this.language||i(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector?.cacheUserLanguage?.(c)),this.loadResources(c,f=>{o(f,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),r}getFixedT(t,n,r){const i=(o,s,...a)=>{let l;typeof s!="object"?l=this.options.overloadTranslationOptionHandler([o,s].concat(a)):l={...s},l.lng=l.lng||i.lng,l.lngs=l.lngs||i.lngs,l.ns=l.ns||i.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||i.keyPrefix);const c=this.options.keySeparator||".";let f;return l.keyPrefix&&Array.isArray(o)?f=o.map(u=>(typeof u=="function"&&(u=Da(u,{...this.options,...s})),`${l.keyPrefix}${c}${u}`)):(typeof o=="function"&&(o=Da(o,{...this.options,...s})),f=l.keyPrefix?`${l.keyPrefix}${c}${o}`:o),this.t(f,l)};return Pe(t)?i.lng=t:i.lngs=t,i.ns=n,i.keyPrefix=r,i}t(...t){return this.translator?.translate(...t)}exists(...t){return this.translator?.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
1if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const s=(a,l)=>{const c=this.services.backendConnector.state[`${a}|${l}`];return c===-1||c===0||c===2};if(n.precheck){const a=n.precheck(this,s);if(a!==void 0)return a}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(r,t)&&(!i||s(o,t)))}loadNamespaces(t,n){const r=Qi();return this.options.ns?(Pe(t)&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Qi();Pe(t)&&(t=[t]);const i=this.options.preload||[],o=t.filter(s=>i.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return o.length?(this.options.preload=i.concat(o),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";try{const i=new Intl.Locale(t);if(i&&i.getTextInfo){const o=i.getTextInfo();if(o&&o.direction)return o.direction}}catch{}const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services?.languageUtils||new Vp(vc());return t.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){const r=new _o(t,n);return r.createInstance=_o.createInstance,r}cloneInstance(t={},n=_s){const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},o=new _o(i);if((t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(a=>{o[a]=this[a]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r){const a=Object.keys(this.store.data).reduce((l,c)=>(l[c]={...this.store.data[c]},l[c]=Object.keys(l[c]).reduce((f,u)=>(f[u]={...l[c][u]},f),l[c]),l),{});o.store=new Fp(a,i),o.services.resourceStore=o.store}if(t.interpolation){const l={...vc().interpolation,...this.options.interpolation,...t.interpolation},c={...i,interpolation:l};o.services.interpolator=new Wp(c)}return o.translator=new Na(o.services,i),o.translator.on("*",(a,...l)=>{o.emit(a,...l)}),o.init(i,n),o.translator.options=i,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Gt=_o.createInstance();Gt.createInstance;Gt.dir;Gt.init;Gt.loadResources;Gt.reloadResources;Gt.use;Gt.changeLanguage;Gt.getFixedT;Gt.t;Gt.exists;Gt.setDefaultNamespace;Gt.hasLoadedNamespace;Gt.loadNamespaces;Gt.loadLanguages;function Ku(e){"@babel/helpers - typeof";return Ku=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ku(e)}function Vy(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":Ku(XMLHttpRequest))==="object"}function QE(e){return!!e&&typeof e.then=="function"}function JE(e){return QE(e)?e:Promise.resolve(e)}const e2="modulepreload",t2=function(e){return"/"+e},Kp={},Rt=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let l=function(c){return Promise.all(c.map(f=>Promise.resolve(f).then(u=>({status:"fulfilled",value:u}),u=>({status:"rejected",reason:u}))))};document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),a=s?.nonce||s?.getAttribute("nonce");i=l(n.map(c=>{if(c=t2(c),c in Kp)return;Kp[c]=!0;const f=c.endsWith(".css"),u=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${u}`))return;const p=document.createElement("link");if(p.rel=f?"stylesheet":e2,f||(p.as="script"),p.crossOrigin="",p.href=c,a&&p.setAttribute("nonce",a),document.head.appendChild(p),f)return new Promise((h,g)=>{p.addEventListener("load",h),p.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return i.then(s=>{for(const a of s||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})};function Xp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Gp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
vendor: 8,645 bytes, line 1
1t%2?Xp(Object(n),!0).forEach(function(r){n2(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xp(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function n2(e,t,n){return(t=r2(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r2(e){var t=i2(e,"string");return Ur(t)=="symbol"?t:t+""}function i2(e,t){if(Ur(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ur(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ur(e){"@babel/helpers - typeof";return Ur=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ur(e)}var Er=typeof fetch=="function"?fetch:void 0;typeof global<"u"&&global.fetch?Er=global.fetch:typeof window<"u"&&window.fetch&&(Er=window.fetch);var Ao;Vy()&&(typeof global<"u"&&global.XMLHttpRequest?Ao=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Ao=window.XMLHttpRequest));var ja;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?ja=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(ja=window.ActiveXObject));typeof Er!="function"&&(Er=void 0);if(!Er&&!Ao&&!ja)try{Rt(()=>Promise.resolve().then(()=>oT),void 0).then(function(e){Er=e.default}).catch(function(){})}catch{}var Xu=function(t,n){if(n&&Ur(n)==="object"){var r="";for(var i in n)r+="&"+encodeURIComponent(i)+"="+encodeURIComponent(n[i]);if(!r)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+r.slice(1)}return t},Zp=function(t,n,r,i){var o=function(l){if(!l.ok)return r(l.statusText||"Error",{status:l.status});l.text().then(function(c){r(null,{status:l.status,data:c})}).catch(r)};if(i){var s=i(t,n);if(s instanceof Promise){s.then(o).catch(r);return}}typeof fetch=="function"?fetch(t,n).then(o).catch(r):Er(t,n).then(o).catch(r)},Qp=!1,o2=function(t,n,r,i){t.queryStringParams&&(n=Xu(n,t.queryStringParams));var o=Gp({},typeof t.customHeaders=="function"?t.customHeaders():t.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(o["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(o["Content-Type"]="application/json");var s=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,a=Gp({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:o},Qp?{}:s),l=typeof t.alternateFetch=="function"&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{Zp(n,a,i,l)}catch(c){if(!s||Object.keys(s).length===0||!c.message||c.message.indexOf("not implemented")<0)return i(c);try{Object.keys(s).forEach(function(f){delete a[f]}),Zp(n,a,i,l),Qp=!0}catch(f){i(f)}}},s2=function(t,n,r,i){r&&Ur(r)==="object"&&(r=Xu("",r).slice(1)),t.queryStringParams&&(n=Xu(n,t.queryStringParams));try{var o=Ao?new Ao:new ja("MSXML2.XMLHTTP.3.0");o.open(r?"POST":"GET",n,1),t.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!t.withCredentials,r&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var s=t.customHeaders;if(s=typeof s=="function"?s():s,s)for(var a in s)o.setRequestHeader(a,s[a]);o.onreadystatechange=function(){o.readyState>3&&i(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(r)}catch(l){console&&console.log(l)}},a2=function(t,n,r,i){if(typeof r=="function"&&(i=r,r=void 0),i=i||function(){},Er&&n.indexOf("file:")!==0)return o2(t,n,r,i);if(Vy()||typeof ActiveXObject=="function")return s2(t,n,r,i);i(new Error("No fetch and no xhr implementation found!"))};function _i(e){"@babel/helpers - typeof";return _i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_i(e)}function Jp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function yc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jp(Object(n),!0).forEach(function(r){Hy(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jp(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function l2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c2(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zy(r.key),r)}}function u2(e,t,n){return t&&c2(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hy(e,t,n){return(t=zy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zy(e){var t=f2(e,"string");return _i(t)=="symbol"?t:t+""}function f2(e,t){if(_i(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_i(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var d2=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(n){return JSON.parse(n)},stringify:JSON.stringify,parsePayload:function(n,r,i){return Hy({},r,i||"")},parseLoadPayload:function(n,r){},request:a2,reloadInterval:typeof window<"u"?!1:3600*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},p2=(function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};l2(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return u2(e,[{key:"init",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=n,this.options=yc(yc(yc({},d2()),this.options||{}),i),this.allOptions=o,this.services&&this.options.reloadInterval){var s=setInterval(function(){return r.reload()},this.options.reloadInterval);_i(s)==="object"&&typeof s.unref=="function"&&s.unref()}}},{key:"readMulti",value:function(n,r,i){this._readAny(n,n,r,r,i)}},{key:"read",value:function(n,r,i){this._readAny([n],n,[r],r,i)}},{key:"_readAny",value:function(n,r,i,o,s){var a=this,l=this.options.loadPath;typeof this.options.loadPath=="function"&&(l=this.options.loadPath(n,i)),l=JE(l),l.then(function(c){if(!c)return s(null,{});var f=a.services.interpolator.interpolate(c,{lng:n.join("+"),ns:i.join("+")});a.loadUrl(f,s,r,o)})}},{key:"loadUrl",value:function(n,r,i,o){var s=this,a=typeof i=="string"?[i]:i,l=typeof o=="string"?[o]:o,c=this.options.parseLoadPayload(a,l);this.options.request(this.options,n,c,function(f,u){if(u&&(u.status>=500&&u.status<600||!u.status))return r("failed loading "+n+"; status code: "+u.status,!0);if(u&&u.status>=400&&u.status<500)return r("failed loading "+n+"; status code: "+u.status,!1);if(!u&&f&&f.message){var p=f.message.toLowerCase(),h=["failed","fetch","network","load"].find(function(w){return p.indexOf(w)>-1});if(h)return r("failed loading "+n+": "+f.message,!0)}if(f)return r(f,!1);var g,y;try{typeof u.data=="string"?g=s.options.parse(u.data,i,o):g=u.data}catch{y="failed parsing "+n+" to json"}if(y)return r(y,!1);r(null,g)})}},{key:"create",value:function(n,r,i,o,s){var a=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var l=this.options.parsePayload(r,i,o),c=0,f=[],u=[];n.forEach(function(p){var h=a.options.addPath;typeof a.options.addPath=="function"&&(h=a.options.addPath(p,r));var g=a.services.interpolator.interpolate(h,{lng:p,ns:r});a.options.request(a.options,g,l,function(y,w){c+=1,f.push(y),u.push(w),c===n.length&&typeof s=="function"&&s(f,u)})})}}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,o=r.languageUtils,s=r.logger,a=i.language;if(!(a&&a.toLowerCase()==="cimode")){var l=[],c=function(u){var p=o.toResolveHierarchy(u);p.forEach(function(h){l.indexOf(h)<0&&l.push(h)})};
1c(a),this.allOptions.preload&&this.allOptions.preload.forEach(function(f){return c(f)}),l.forEach(function(f){n.allOptions.ns.forEach(function(u){i.read(f,u,"read",null,null,function(p,h){p&&s.warn("loading namespace ".concat(u," for language ").concat(f," failed"),p),!p&&h&&s.log("loaded namespace ".concat(u," for language ").concat(f),h),i.loaded("".concat(f,"|").concat(u),p,h)})})})}}}])})();p2.type="backend";const{slice:h2,forEach:m2}=[];function g2(e){return m2.call(h2.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}function v2(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(n=>n.test(e))}const eh=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,y2=function(e,t){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},i=encodeURIComponent(t);let o=`${e}=${i}`;if(r.maxAge>0){const s=r.maxAge-0;if(Number.isNaN(s))throw new Error("maxAge should be a Number");o+=`; Max-Age=${Math.floor(s)}`}if(r.domain){if(!eh.test(r.domain))throw new TypeError("option domain is invalid");o+=`; Domain=${r.domain}`}if(r.path){if(!eh.test(r.path))throw new TypeError("option path is invalid");o+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invali
1d");o+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(o+="; Partitioned"),o},th={create(e,t,n,r){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+n*60*1e3)),r&&(i.domain=r),document.cookie=y2(e,t,i)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let i=n[r];for(;i.charAt(0)===" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return i.substring(t.length,i.length)}return null},remove(e,t){this.create(e,"",-1,t)}};var b2={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return th.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:i,cookieOptions:o}=t;n&&typeof document<"u"&&th.create(n,e,r,i,o)}},w2={name:"querystring",lookup(e){let{lookupQuerystring:t}=e,n;if(typeof window<"u"){let{search:r}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));const o=r.substring(1).split("&");for(let s=0;s<o.length;s++){const a=o[s].indexOf("=");a>0&&o[s].substring(0,a)===t&&(n=o[s].substring(a+1))}}return n}},x2={name:"hash",lookup(e){let{lookupHash:t,lookupFromHashIndex:n}=e,r;if(typeof window<"u"){const{hash:i}=window.location;if(i&&i.length>2){const o=i.substring(1);if(t){const s=o.split("&");for(let a=0;a<s.length;a++){const l=s[a].indexOf("=");l>0&&s[a].substring(0,l)===t&&(r=s[a].substring(l+1))}}if(r)return r;if(!r&&n>-1){const s=i.match(/\/([a-zA-Z-]*)/g);return Array.isArray(s)?s[typeof n=="number"?n:0]?.replace("/",""):void 0}}}return r}};let si=null;const nh=()=>
vendor: 4,995 bytes, line 1
1{if(si!==null)return si;try{if(si=typeof window<"u"&&window.localStorage!==null,!si)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{si=!1}return si};var E2={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&nh())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&nh()&&window.localStorage.setItem(n,e)}};let ai=null;const rh=()=>{if(ai!==null)return ai;try{if(ai=typeof window<"u"&&window.sessionStorage!==null,!ai)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{ai=!1}return ai};var _2={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&rh())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&rh()&&window.sessionStorage.setItem(n,e)}},S2={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:i}=navigator;if(n)for(let o=0;o<n.length;o++)t.push(n[o]);r&&t.push(r),i&&t.push(i)}return t.length>0?t:void 0}},O2={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},P2={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?n[typeof t=="number"?t:0]?.replace("/",""):void 0}},C2={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};let Uy=!1;try{document.cookie,Uy=!0}catch{}const Wy=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];Uy||Wy.splice(1,1);const R2=()=>({order:Wy,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class k2{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=g2(n,this.options||{},R2()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=i=>i.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(b2),this.addDetector(w2),this.addDetector(E2),this.addDetector(_2),this.addDetector(S2),this.addDetector(O2),this.addDetector(P2),this.addDetector(C2),this.addDetector(x2)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,n=[];return t.forEach(r=>{if(this.detectors[r]){let i=this.detectors[r].lookup(this.options);i&&typeof i=="string"&&(i=[i]),i&&(n=n.concat(i))}}),n=n.filter(r=>r!=null&&!v2(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}k2.type="languageDetector";var bc,ih;function T2(){return ih||(ih=1,bc={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),bc}var A2=T2();const L2=ut(A2);var M2=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function oh(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.name=n[1],(L2[n[1]]||e.charAt(e.length-2)==="/")&&(t.voidElement=!0),t.name.startsWith("!--"))){var r=e.indexOf("-->");return{type:"comment",comment:r!==-1?e.slice(4,r):""}}for(var i=new RegExp(M2),o=null;(o=i.exec(e))!==null;)if(o[0].trim())if(o[1]){var s=o[1].trim(),a=[s,""];s.indexOf("=")>-1&&(a=s.split("=")),t.attrs[a[0]]=a[1],i.lastIndex--}else o[2]&&(t.attrs[o[2]]=o[3].trim().substring(1,o[3].length-1));return t}var I2=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,D2=/^\s*$/,N2=Object.create(null);function qy(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?(function(n){var r=[];for(var i in n)r.push(i+'="'+n[i]+'"');return r.length?" "+r.join(" "):""})(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(qy,"")+"</"+t.name+">";
vendor: 4,389 bytes, line 1
1case"comment":return e+"<!--"+t.comment+"-->"}}var j2={parse:function(e,t){t||(t={}),t.components||(t.components=N2);var n,r=[],i=[],o=-1,s=!1;if(e.indexOf("<")!==0){var a=e.indexOf("<");r.push({type:"text",content:a===-1?e:e.substring(0,a)})}return e.replace(I2,function(l,c){if(s){if(l!=="</"+n.name+">")return;s=!1}var f,u=l.charAt(1)!=="/",p=l.startsWith("<!--"),h=c+l.length,g=e.charAt(h);if(p){var y=oh(l);return o<0?(r.push(y),r):((f=i[o]).children.push(y),r)}if(u&&(o++,(n=oh(l)).type==="tag"&&t.components[n.name]&&(n.type="component",s=!0),n.voidElement||s||!g||g==="<"||n.children.push({type:"text",content:e.slice(h,e.indexOf("<",h))}),o===0&&r.push(n),(f=i[o-1])&&f.children.push(n),i[o]=n),(!u||n.voidElement)&&(o>-1&&(n.voidElement||n.name===l.slice(2,-1))&&(o--,n=o===-1?r:i[o]),!s&&g!=="<"&&g)){f=o===-1?r:i[o].children;var w=e.indexOf("<",h),x=e.slice(h,w===-1?void 0:w);D2.test(x)&&(x=" "),(w>-1&&o+f.length>=0||x!==" ")&&f.push({type:"text",content:x})}}),r},stringify:function(e){return e.reduce(function(t,n){return t+qy("",n)},"")}};const aa=(e,t,n,r)=>{const i=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,"warn","react-i18next::",!0);Ut(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)},sh={},Tl=(e,t,n,r)=>{Ut(n)&&sh[n]||(Ut(n)&&(sh[n]=new Date),aa(e,t,n,r))},Yy=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},Gu=(e,t,n)=>{e.loadNamespaces(t,Yy(e,n))},ah=(e,t,n,r)=>{if(Ut(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return Gu(e,n,r);n.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,Yy(e,r))},$2=(e,t,n={})=>!t.languages||!t.languages.length?(Tl(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,i)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!i(r.isLanguageChangingTo,e))return!1}}),Ut=e=>typeof e=="string",rr=e=>typeof e=="object"&&e!==null,F2=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,B2={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},V2=e=>B2[e],Ky=e=>e.replace(F2,V2);let Zu={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Ky,transDefaultProps:void 0};const H2=(e={})=>{Zu={...Zu,...e}},bd=()=>Zu;let Xy;const z2=e=>{Xy=e},wd=()=>Xy,la=(e,t)=>{if(!e)return!1;const n=e.props?.children??e.children;return t?n.length>0:!!n},ca=e=>{if(!e)return[];const t=e.props?.children??e.children;return e.props?.i18nIsDynamicList?Lr(t):t},U2=e=>Array.isArray(e)&&e.every(E.isValidElement),Lr=e=>Array.isArray(e)?e:[e],W2=(e,t)=>{const n={...t};return n.props={...t.props,...e.props},n},q2=e=>{const t={};if(!e)return t;const n=r=>{Lr(r).forEach(o=>{Ut(o)||(la(o)?n(ca(o)):rr(o)&&!E.isValidElement(o)&&Object.assign(t,o))})};return n(e),t},Gy=(e,t,n,r)=>{if(!e)return"";let i="";const o=Lr(e),s=t?.transSupportBasicHtmlNodes?t.transKeepBasicHtmlNodesFor??[]:[];return o.forEach((a,l)=>{if(Ut(a)){i+=`${a}`;return}if(E.isValidElement(a)){const{props:c,type:f}=a,u=Object.keys(c).length,p=s.indexOf(f)>-1,h=c.children;if(!h&&p&&!u){i+=`<${f}/>`;return}if(!h&&(!p||u)||c.i18nIsDynamicList){i+=`<${l}></${l}>`;return}if(p&&u===1&&Ut(h)){i+=`<${f}>${h}</${f}>`;return}const g=Gy(h,t,n,r);i+=`<${l}>${g}</${l}>`;return}if(a===null){aa(n,"TRANS_NULL_VALUE","Passed in a null value as child",{i18nKey:r});return}if(rr(a)){const{format:c,...f}=a,u=Object.keys(f);if(u.length===1){const p=c?`${u[0]}, ${c}`:u[0];i+=`{{${p}}}`;return}aa(n,"TRANS_INVALID_OBJ","Invalid child - Object should only have keys {{ value, format }} (format is optional).",{i18nKey:r,child:a});return}aa(n,"TRANS_INVALID_VAR","Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.",{i18nKey:r,child:a})}),i},Y2=(e,t=[],n={})=>
vendor: 5,242 bytes, line 1
1{if(!e)return e;const r=Object.keys(n),i=[...t,...r];let o="",s=0;for(;s<e.length;)if(e[s]==="<"){let a=!1;const l=e.slice(s).match(/^<\/(\d+|[a-zA-Z][a-zA-Z0-9_-]*)>/);if(l){const c=l[1];(/^\d+$/.test(c)||i.includes(c))&&(a=!0,o+=l[0],s+=l[0].length)}if(!a){const c=e.slice(s).match(/^<(\d+|[a-zA-Z][a-zA-Z0-9_-]*)(\s+[\w-]+(?:=(?:"[^"]*"|'[^']*'|[^\s>]+))?)*\s*(\/)?>/);if(c){const f=c[1];(/^\d+$/.test(f)||i.includes(f))&&(a=!0,o+=c[0],s+=c[0].length)}}a||(o+="&lt;",s+=1)}else o+=e[s],s+=1;return o},K2=(e,t,n,r,i,o,s)=>{if(n==="")return[];const a=i.transKeepBasicHtmlNodesFor||[],l=n&&new RegExp(a.map(b=>`<${b}`).join("|")).test(n);if(!e&&!t&&!l&&!s)return[n];const c=t??{},f=b=>{Lr(b).forEach(d=>{Ut(d)||(la(d)?f(ca(d)):rr(d)&&!E.isValidElement(d)&&Object.assign(c,d))})};f(e);const u=Y2(n,a,c),p=j2.parse(`<0>${u}</0>`),h={...c,...o},g=(b,m,d)=>{const v=ca(b),_=w(v,m.children,d);return U2(v)&&_.length===0||b.props?.i18nIsDynamicList?v:_},y=(b,m,d,v,_)=>{b.dummy?(b.children=m,d.push(E.cloneElement(b,{key:v},_?void 0:m))):d.push(...E.Children.map([b],O=>{const C="data-i18n-is-dynamic-list",k={key:v,[C]:void 0};return O&&O.props&&Object.keys(O.props).forEach(A=>{A==="ref"||A==="children"||A==="i18nIsDynamicList"||A===C||(k[A]=O.props[A])}),E.cloneElement(O,k,_?null:m)}))},w=(b,m,d)=>{const v=Lr(b);return Lr(m).reduce((O,C,k)=>{const A=C.children?.[0]?.content&&r.services.interpolator.interpolate(C.children[0].content,h,r.language);if(C.type==="tag"){let T=v[parseInt(C.name,10)];!T&&t&&(T=t[C.name]),d.length===1&&!T&&(T=d[0][C.name]),T||(T={});const M={...C.attrs};s&&Object.keys(M).forEach(L=>{const N=M[L];Ut(N)&&(M[L]=Ky(N))});const I=Object.keys(M).length!==0?W2({props:M},T):T,P=E.isValidElement(I),S=P&&la(C,!0)&&!C.voidElement,R=l&&rr(I)&&I.dummy&&!P,D=rr(t)&&Object.hasOwnProperty.call(t,C.name);if(Ut(I)){const L=r.services.interpolator.interpolate(I,h,r.language);O.push(L)}else if(la(I)||S){const L=g(I,C,d);y(I,L,O,k)}else if(R){const L=w(v,C.children,d);y(I,L,O,k)}else if(Number.isNaN(parseFloat(C.name)))if(D){const L=g(I,C,d);y(I,L,O,k,C.voidElement)}else if(i.transSupportBasicHtmlNodes&&a.indexOf(C.name)>-1)if(C.voidElement)O.push(E.createElement(C.name,{key:`${C.name}-${k}`}));else{const L=w(v,C.children,d);O.push(E.createElement(C.name,{key:`${C.name}-${k}`},L))}else if(C.voidElement)O.push(`<${C.name} />`);else{const L=w(v,C.children,d);O.push(`<${C.name}>${L}</${C.name}>`)}else if(rr(I)&&!P){const L=C.children[0]?A:null;L&&O.push(L)}else y(I,A,O,k,C.children.length!==1||!A)}else if(C.type==="text"){const T=i.transWrapTextNodes,M=typeof i.unescape=="function"?i.unescape:bd().unescape,I=s?M(r.services.interpolator.interpolate(C.content,h,r.language)):r.services.interpolator.interpolate(C.content,h,r.language);T?O.push(E.createElement(T,{key:`${C.name}-${k}`},I)):O.push(I)}return O},[])},x=w([{dummy:!0,children:e||[]}],p,Lr(e||[]));return ca(x[0])},Zy=(e,t,n)=>{const r=e.key||t,i=E.cloneElement(e,{key:r});if(!i.props||!i.props.children||n.indexOf(`${t}/>`)<0&&n.indexOf(`${t} />`)<0)return i;function o(){return E.createElement(E.Fragment,null,i)}return E.createElement(o,{key:r})},X2=(e,t)=>e.map((n,r)=>Zy(n,r,t)),G2=(e,t)=>{const n={};return Object.keys(e).forEach(r=>{Object.assign(n,{[r]:Zy(e[r],r,t)})}),n},Z2=(e,t,n,r)=>e?Array.isArray(e)?X2(e,t):rr(e)?G2(e,t):(Tl(n,"TRANS_INVALID_COMPONENTS",'<Trans /> "components" prop expects an object or array',{i18nKey:r}),null):null,Q2=e=>!rr(e)||Array.isArray(e)?!1:Object.keys(e).reduce((t,n)=>t&&Number.isNaN(Number.parseFloat(n)),!0);function J2({children:e,count:t,parent:n,i18nKey:r,context:i,tOptions:o={},values:s,defaults:a,components:l,ns:c,i18n:f,t:u,shouldUnescape:p,...h}){const g=f||wd();if(!g)return Tl(g,"NO_I18NEXT_INSTANCE","Trans: You need to pass in an i18next instance using i18nextReactModule",{i18nKey:r}),e;const y=u||g.t.bind(g)||($=>$),w={...bd(),...g.options?.react};let x=c||y.ns||g.options?.defaultNS;x=Ut(x)?[x]:x||["translation"];const{transDefaultProps:b}=w,m=b?.tOptions?{...b.tOptions,...o}:o,d=p??b?.shouldUnescape,v=b?.values?{...b.values,...s}:s,_=b?.components?{...b.components,...l}:l,O=Gy(e,w,g,r),C=a||m?.defaultValue||O||w.transEmptyNodeValue||(typeof r=="function"?Da(r):r),{hashTransKey:k}=w,A=r||(k?k(O||C):O||C);g.options?.interpolation?.defaultVariables?s=v&&Object.keys(v).length>0?{...v,...g.options.interpolation.defaultVariables}:{...g.options.interpolation.defaultVariables}:s=v;const T=q2(e);T&&typeof T.count=="number"&&t===void 0&&(t=T.count);const M=s||t!==void 0&&!g.options?.interpolation?.alwaysFormat||!e?m.interpolation:{interpolation:{...m.interpolation,prefix:"#$?",suffix:"?$#"}},I={...m,context:i||m.context,count:t,...s,...M,defaultValue:C,ns:x};let P=A?y(A,I):C;P===A&&C&&(P=C);const S=Z2(_,P,g,r);let R=S||e,D=null;Q2(S)&&(D=S,R=e);const L=K2(R,D,P,g,w,I,d),N=n??w.defaultTransParent;return N?E.createElement(N,h,L):L}const DB={type:"3rdParty",init(e){H2(e.options.react),z2(e)}},Qy=E.createContext();class e_{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function NB({children:e,count:t,parent:n,i18nKey:r,context:i,tOptions:o={}
1,values:s,defaults:a,components:l,ns:c,i18n:f,t:u,shouldUnescape:p,...h}){const{i18n:g,defaultNS:y}=E.useContext(Qy)||{},w=f||g||wd(),x=u||w?.t.bind(w);return J2({children:e,count:t,parent:n,i18nKey:r,context:i,tOptions:o,values:s,defaults:a,components:l,ns:c||x?.ns||y||w?.options?.defaultNS,i18n:w,t:u,shouldUnescape:p,...h})}var wc={exports:{}},xc={};var lh;function t_(){if(lh)return xc;lh=1;var e=ft();function t(u,p){return u===p&&(u!==0||1/u===1/p)||u!==u&&p!==p}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,o=e.useLayoutEffect,s=e.useDebugValue;function a(u,p){var h=p(),g=r({inst:{value:h,getSnapshot:p}}),y=g[0].inst,w=g[1];return o(function(){y.value=h,y.getSnapshot=p,l(y)&&w({inst:y})},[u,h,p]),i(function(){return l(y)&&w({inst:y}),u(function(){l(y)&&w({inst:y})})},[u]),s(h),h}function l(u){var p=u.getSnapshot;u=u.value;try{var h=p();return!n(u,h)}catch{return!0}}function c(u,p){return p()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:a;return xc.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,xc}var ch;function Jy(){return ch||(ch=1,wc.exports=t_()),wc.exports}var n_=Jy();const r_=(e,t)=>Ut(t)?t:rr(t)&&Ut(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,i_={t:r_,ready:!1},o_=()=>()=>{},jB=(e,t={})=>{const{i18n:n}=t,{i18n:r,defaultNS:i}=E.useContext(Qy)||{},o=n||r||wd();o&&!o.reportNamespaces&&(o.reportNamespaces=new e_),o||Tl(o,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const s=E.useMemo(()=>({...bd(),...o?.options?.react,...t}),[o,t]),{useSuspense:a,keyPrefix:l}=s,c=i||o?.options?.defaultNS,f=Ut(c)?[c]:c||["translation"],u=E.useMemo(()=>f,f);o?.reportNamespaces?.addUsedNamespaces?.(u);const p=E.useRef(0),h=E.useCallback(k=>{if(!o)return o_;const{bindI18n:A,bindI18nStore:T}=s,M=()=>{p.current+=1,k()};return A&&o.on(A,M),T&&o.store.on(T,M),()=>{A&&A.split(" ").forEach(I=>o.off(I,M)),T&&T.split(" ").forEach(I=>o.store.off(I,M))}},[o,s]),g=E.useRef(),y=E.useCallback(()=>{if(!o)return i_;const k=!!(o.isInitialized||o.initializedStoreOnce)&&u.every(S=>$2(S,o,s)),A=t.lng||o.language,T=p.current,M=g.current;if(M&&M.ready===k&&M.lng===A&&M.keyPrefix===l&&M.revision===T)return M;const P={t:o.getFixedT(A,s.nsMode==="fallback"?u:u[0],l),ready:k,lng:A,keyPrefix:l,revision:T};return g.current=P,P},[o,u,l,s,t.lng]),[w,x]=E.useState(0),{t:b,ready:m}=n_.useSyncExternalStore(h,y,y);E.useEffect(()=>{if(o&&!m&&!a){const k=()=>x(A=>A+1);t.lng?ah(o,t.lng,u,k):Gu(o,u,k)}},[o,t.lng,u,m,a,w]);const d=o||{},v=E.useRef(null),_=E.useRef(),O=k=>{const A=Object.getOwnPropertyDescriptors(k);A.__original&&delete A.__original;const T=Object.create(Object.getPrototypeOf(k),A);if(!Object.prototype.hasOwnProperty.call(T,"__original"))try{Object.defineProperty(T,"__original",{value:k,writable:!1,enumerable:!1,configurable:!1})}catch{}return T},C=E.useMemo(()=>{const k=d,A=k?.language;let T=k;k&&(v.current&&v.current.__original===k?_.current!==A?(T=O(k),v.current=T,_.current=A):T=v.current:(T=O(k),v.current=T,_.current=A));const M=[b,T,m];return M.t=b,M.i18n=T,M.ready=m,M},[b,d,m,d.resolvedLanguage,d.language,d.languages]);if(o&&a&&!m)throw new Promise(k=>{const A=()=>k();t.lng?ah(o,t.lng,u,A):Gu(o,u,A)});return C};var zi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},s_={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},a_=class{#e=s_;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},Mr=new a_;function l_(e){setTimeout(e,0)}var Si=typeof window>"u"||"Deno"in globalThis;function gn(){}function c_(e,t){return typeof e=="function"?e(t):e}function Qu(e){return typeof e=="number"&&e>=0&&e!==1/0}function e0(e,t){return Math.max(e+(t||0)-Date.now(),0)}function br(e,t){return typeof e=="function"?e(t):e}function vn(e,t){return typeof e=="function"?e(t):e}function uh(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==xd(s,t.options))return!1}else if(!Lo(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||i&&i!==t.state.fetchStatus||o&&!o(t))}function fh(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Wr(t.options.mutationKey)!==Wr(o))return!1}else if(!Lo(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function xd(e,t){return(t?.queryKeyHashFn||Wr)(e)}function Wr(e){return JSON.stringify(e,(t,n)=>Ju(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Lo(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Lo(e[n],t[n])):!1}var u_=Object.prototype.hasOwnProperty;function t0(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=dh(e)&&dh(t);if(!r&&!(Ju(e)&&Ju(t)))return t;const o=(r?e:Object.keys(e)).length,s=r?t:Object.keys(t),a=s.length,l=r?new Array(a):{};let c=0;for(let f=0;f<a;f++){const u=r?f:s[f],p=e[u],h=t[u];
vendor: 24,235 bytes, line 1
1if(p===h){l[u]=p,(r?f<o:u_.call(e,u))&&c++;continue}if(p===null||h===null||typeof p!="object"||typeof h!="object"){l[u]=h;continue}const g=t0(p,h,n+1);l[u]=g,g===p&&c++}return o===a&&c===o?e:l}function $a(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function dh(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ju(e){if(!ph(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!ph(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function ph(e){return Object.prototype.toString.call(e)==="[object Object]"}function f_(e){return new Promise(t=>{Mr.setTimeout(t,e)})}function ef(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?t0(e,t):t}function d_(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function p_(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Ed=Symbol();function n0(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Ed?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function $B(e,t){return typeof e=="function"?e(...t):!!e}function h_(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r||(r=!0,i.aborted?n():i.addEventListener("abort",n,{once:!0})),i)}),e}var m_=class extends zi{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!Si&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},_d=new m_;function tf(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}var g_=l_;function v_(){let e=[],t=0,n=a=>{a()},r=a=>{a()},i=g_;const o=a=>{t?e.push(a):i(()=>{n(a)})},s=()=>{const a=e;e=[],a.length&&i(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||s()}return l},batchCalls:a=>(...l)=>{o(()=>{a(...l)})},schedule:o,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{i=a}}}var Ot=v_(),y_=class extends zi{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!Si&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},Fa=new y_;function b_(e){return Math.min(1e3*2**e,3e4)}function r0(e){return(e??"online")==="online"?Fa.isOnline():!0}var nf=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function i0(e){let t=!1,n=0,r;const i=tf(),o=()=>i.status!=="pending",s=y=>{if(!o()){const w=new nf(y);p(w),e.onCancel?.(w)}},a=()=>{t=!0},l=()=>{t=!1},c=()=>_d.isFocused()&&(e.networkMode==="always"||Fa.isOnline())&&e.canRun(),f=()=>r0(e.networkMode)&&e.canRun(),u=y=>{o()||(r?.(),i.resolve(y))},p=y=>{o()||(r?.(),i.reject(y))},h=()=>new Promise(y=>{r=w=>{(o()||c())&&y(w)},e.onPause?.()}).then(()=>{r=void 0,o()||e.onContinue?.()}),g=()=>{if(o())return;let y;const w=n===0?e.initialPromise:void 0;try{y=w??e.fn()}catch(x){y=Promise.reject(x)}Promise.resolve(y).then(u).catch(x=>{if(o())return;const b=e.retry??(Si?0:3),m=e.retryDelay??b_,d=typeof m=="function"?m(n,x):m,v=b===!0||typeof b=="number"&&n<b||typeof b=="function"&&b(n,x);if(t||!v){p(x);return}n++,e.onFail?.(n,x),f_(d).then(()=>c()?void 0:h()).then(()=>{t?p(x):g()})})};return{promise:i,status:()=>i.status,cancel:s,continue:()=>(r?.(),i),cancelRetry:a,continueRetry:l,canStart:f,start:()=>(f()?g():h().then(g),i)}}var o0=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Qu(this.gcTime)&&(this.#e=Mr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Si?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Mr.clearTimeout(this.#e),this.#e=void 0)}},w_=class extends o0{#e;#t;#n;#i;#r;#s;#a;constructor(e){super(),this.#a=!1,this.#s=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#n=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=mh(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#s,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=mh(this.options);t.data!==void 0&&(this.setState(hh(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=ef(this.state.data,e,this.options);return this.#o({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#o({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(gn).catch(gn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>vn(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ed||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>br(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!e0(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#a?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const a=this.observers.find(l=>l.options.queryFn);a&&this.setOptions(a.options)}const n=new AbortController,r=a=>{Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(this.#a=!0,n.signal)})},i=()=>{const a=n0(this.options,t),c=(()=>{const f={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(f),f})();return this.#a=!1,this.options.persister?this.options.persister(a,c,this):a(c)},s=(()=>{const a={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(a),a})();this.options.behavior?.onFetch(s,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==s.fetchOptions?.meta)&&this.#o({type:"fetch",meta:s.fetchOptions?.meta}),this.#r=i0({initialPromise:t?.initialPromise,fn:s.fetchFn,onCancel:a=>{a instanceof nf&&a.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(a,l)=>{this.#o({type:"failed",failureCount:a,error:l})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0});try{const a=await this.#r.start();if(a===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(a),this.#n.config.onSuccess?.(a,this),this.#n.config.onSettled?.(a,this.state.error,this),a}catch(a){if(a instanceof nf){if(a.silent)return this.#r.promise;if(a.revert){if(this.state.data===void 0)throw a;return this.state.data}}throw this.#o({type:"error",error:a}),this.#n.config.onError?.(a,this),this.#n.config.onSettled?.(this.state.data,a,this),a}finally{this.scheduleGc()}}#o(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...s0(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,...hh(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?r:void 0,r;case"error":const i=e.error;return{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Ot.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function s0(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:r0(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function hh(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function mh(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var x_=class extends zi{constructor(e,t){super(),this.options=t,this.#e=e,this.#o=null,this.#a=tf(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#i=void 0;#r;#s;#a;#o;#m;#d;#p;#c;#u;#l;#h=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),gh(this.#t,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return rf(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return rf(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#w(),this.#x(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof vn(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#E(),this.#t.setOptions(this.options),t._defaulted&&!$a(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&vh(this.#t,n,this.options,t)&&this.#f(),this.updateResult(),r&&(this.#t!==n||vn(this.options.enabled,this.#t)!==vn(t.enabled,this.#t)||br(this.options.staleTime,this.#t)!==br(t.staleTime,this.#t))&&this.#g();const i=this.#v();r&&(this.#t!==n||vn(this.options.enabled,this.#t)!==vn(t.enabled,this.#t)||i!==this.#l)&&this.#y(i)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return __(this,n)&&(this.#i=n,this.#s=this.options,this.#r=this.#t.state),n}getCurrentResult(){return this.#i}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#a.status==="pending"&&this.#a.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,r))})}trackProp(e){this.#h.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#f({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#i))}#f(e){this.#E();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(gn)),t}#g(){this.#w();const e=br(this.options.staleTime,this.#t);if(Si||this.#i.isStale||!Qu(e))return;const n=e0(this.#i.dataUpdatedAt,e)+1;this.#c=Mr.setTimeout(()=>{this.#i.isStale||this.updateResult()},n)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(e){this.#x(),this.#l=e,!(Si||vn(this.options.enabled,this.#t)===!1||!Qu(this.#l)||this.#l===0)&&(this.#u=Mr.setInterval(()=>{(this.options.refetchIntervalInBackground||_d.isFocused())&&this.#f()},this.#l))}#b(){this.#g(),this.#y(this.#v())}#w(){this.#c&&(Mr.clearTimeout(this.#c),this.#c=void 0)}#x(){this.#u&&(Mr.clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const n=this.#t,r=this.options,i=this.#i,o=this.#r,s=this.#s,l=e!==n?e.state:this.#n,{state:c}=e;let f={...c},u=!1,p;if(t._optimisticResults){const C=this.hasListeners(),k=!C&&gh(e,t),A=C&&vh(e,n,t,r);(k||A)&&(f={...f,...s0(c.data,e.options)}),t._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:h,errorUpdatedAt:g,status:y}=f;p=f.data;let w=!1;if(t.placeholderData!==void 0&&p===void 0&&y==="pending"){let C;i?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(C=i.data,w=!0):C=typeof t.placeholderData=="function"?t.placeholderData(this.#p?.state.data,this.#p):t.placeholderData,C!==void 0&&(y="success",p=ef(i?.data,C,t),u=!0)}if(t.select&&p!==void 0&&!w)if(i&&p===o?.data&&t.select===this.#m)p=this.#d;else try{this.#m=t.select,p=t.select(p),p=ef(i?.data,p,t),this.#d=p,this.#o=null}catch(C){this.#o=C}this.#o&&(h=this.#o,p=this.#d,g=Date.now(),y="error");const x=f.fetchStatus==="fetching",b=y==="pending",m=y==="error",d=b&&x,v=p!==void 0,O={status:y,fetchStatus:f.fetchStatus,isPending:b,isSuccess:y==="success",isError:m,isInitialLoading:d,isLoading:d,data:p,dataUpdatedAt:f.dataUpdatedAt,error:h,errorUpdatedAt:g,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>l.dataUpdateCount||f.errorUpdateCount>l.errorUpdateCount,isFetching:x,isRefetching:x&&!b,isLoadingError:m&&!v,isPaused:f.fetchStatus==="paused",isPlaceholderData:u,isRefetchError:m&&v,isStale:Sd(e,t),refetch:this.refetch,promise:this.#a,isEnabled:vn(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const C=O.data!==void 0,k=O.status==="error"&&!C,A=I=>{k?I.reject(O.error):C&&I.resolve(O.data)},T=()=>{const I=this.#a=O.promise=tf();A(I)},M=this.#a;switch(M.status){case"pending":e.queryHash===n.queryHash&&A(M);break;case"fulfilled":(k||O.data!==M.value)&&T();break;case"rejected":(!k||O.error!==M.reason)&&T();break}}return O}updateResult(){const e=this.#i,t=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#s=this.options,this.#r.data!==void 0&&(this.#p=this.#t),$a(t,e))return;this.#i=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,i=typeof r=="function"?r():r;if(i==="all"||!i&&!this.#h.size)return!0;const o=new Set(i??this.#h);return this.options.throwOnError&&o.add("error"),Object.keys(this.#i).some(s=>{const a=s;return this.#i[a]!==e[a]&&o.has(a)})};this.#_({listeners:n()})}#E(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#_(e){Ot.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#i)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function E_(e,t){return vn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function gh(e,t){return E_(e,t)||e.state.data!==void 0&&rf(e,t,t.refetchOnMount)}function rf(e,t,n){if(vn(t.enabled,e)!==!1&&br(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Sd(e,t)}return!1}function vh(e,t,n,r){return(e!==t||vn(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Sd(e,n)}function Sd(e,t){return vn(t.enabled,e)!==!1&&e.isStaleByTime(br(t.staleTime,e))}function __(e,t){return!$a(e.getCurrentResult(),t)}function Ba(e){return{onFetch:(t,n)=>{const r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,o=t.state.data?.pages||[],s=t.state.data?.pageParams||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let f=!1;const u=g=>{h_(g,()=>t.signal,()=>f=!0)},p=n0(t.options,t.fetchOptions),h=async(g,y,w)=>{if(f)return Promise.reject();if(y==null&&g.pages.length)return Promise.resolve(g);const b=(()=>{const _={client:t.client,queryKey:t.queryKey,pageParam:y,direction:w?"backward":"forward",meta:t.options.meta};return u(_),_})(),m=await p(b),{maxPages:d}=t.options,v=w?p_:d_;return{pages:v(g.pages,m,d),pageParams:v(g.pageParams,y,d)}};if(i&&o.length){const g=i==="backward",y=g?a0:of,w={pages:o,pageParams:s},x=y(r,w);a=await h(w,x,g)}else{const g=e??o.length;do{const y=l===0?s[0]??r.initialPageParam:of(r,a);if(l>0&&y==null)break;a=await h(a,y),l++}while(l<g)}return a};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=c}}}function of(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function a0(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function S_(e,t){return t?of(e,t)!=null:!1}function O_(e,t){return!t||!e.getPreviousPageParam?!1:a0(e,t)!=null}var FB=class extends x_{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:Ba()})}getOptimisticResult(e){return e.behavior=Ba(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:n}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:o,isError:s,isRefetchError:a}=r,l=n.fetchMeta?.fetchMore?.direction,c=s&&l==="forward",f=i&&l==="forward",u=s&&l==="backward",p=i&&l==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:S_(t,n.data),hasPreviousPage:O_(t,n.data),isFetchNextPageError:c,isFetchingNextPage:f,isFetchPreviousPageError:u,isFetchingPreviousPage:p,isRefetchError:a&&!c&&!u,isRefetching:o&&!f&&!p}}},P_=class extends o0{#e;#t;#n;#i;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||l0(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=i0({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(o,s)=>{this.#r({type:"failed",failureCount:o,error:s})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",i=!this.#i.canStart();try{if(r)t();else{this.#r({type:"pending",variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);const s=await this.options.onMutate?.(e,n);s!==this.state.context&&this.#r({type:"pending",context:s,variables:e,isPaused:i})}const o=await this.#i.start();return await this.#n.config.onSuccess?.(o,e,this.state.context,this,n),await this.options.onSuccess?.(o,e,this.state.context,n),await this.#n.config.onSettled?.(o,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(o,null,e,this.state.context,n),this.#r({type:"success",data:o}),o}catch(o){try{await this.#n.config.onError?.(o,e,this.state.context,this,n)}catch(s){Promise.reject(s)}try{await this.options.onError?.(o,e,this.state.context,n)}catch(s){Promise.reject(s)}try{await this.#n.config.onSettled?.(void 0,o,this.state.variables,this.state.context,this,n)}catch(s){Promise.reject(s)}try{await this.options.onSettled?.(void 0,o,e,this.state.context,n)}catch(s){Promise.reject(s)}throw this.#r({type:"error",error:o}),o}finally{this.#n.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Ot.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function l0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var C_=class extends zi{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){const r=new P_({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);const t=Ss(e);if(typeof t=="string"){const n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Ss(e);if(typeof t=="string"){const n=this.#t.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Ss(e);if(typeof t=="string"){const r=this.#t.get(t)?.find(i=>i.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=Ss(e);return typeof t=="string"?this.#t.get(t)?.find(r=>
vendor: 2,024 bytes, line 1
1r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Ot.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>fh(t,n))}findAll(e={}){return this.getAll().filter(t=>fh(e,t))}notify(e){Ot.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Ot.batch(()=>Promise.all(e.map(t=>t.continue().catch(gn))))}};function Ss(e){return e.options.scope?.id}var BB=class extends zi{#e;#t=void 0;#n;#i;constructor(t,n){super(),this.#e=t,this.setOptions(n),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#e.defaultMutationOptions(t),$a(this.options,n)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&Wr(n.mutationKey)!==Wr(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#s(t)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#s()}mutate(t,n){return this.#i=n,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(t)}#r(){const t=this.#n?.state??l0();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#s(t){Ot.batch(()=>{if(this.#i&&this.hasListeners()){const n=this.#t.variables,r=this.#t.context,i={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#i.onSuccess?.(t.data,n,r,i)}catch(o){Promise.reject(o)}
vendor: 5,418 bytes, line 1
1try{this.#i.onSettled?.(t.data,null,n,r,i)}catch(o){Promise.reject(o)}}else if(t?.type==="error"){try{this.#i.onError?.(t.error,n,r,i)}catch(o){Promise.reject(o)}try{this.#i.onSettled?.(void 0,t.error,n,r,i)}catch(o){Promise.reject(o)}}}this.listeners.forEach(n=>{n(this.#t)})})}},R_=class extends zi{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const r=t.queryKey,i=t.queryHash??xd(r,t);let o=this.get(i);return o||(o=new w_({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(o)),o}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Ot.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>uh(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>uh(e,n)):t}notify(e){Ot.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Ot.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Ot.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},HB=class{#e;#t;#n;#i;#r;#s;#a;#o;constructor(e={}){this.#e=e.queryCache||new R_,this.#t=e.mutationCache||new C_,this.#n=e.defaultOptions||{},this.#i=new Map,this.#r=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#a=_d.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#o=Fa.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#a?.(),this.#a=void 0,this.#o?.(),this.#o=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(br(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=this.#e.get(r.queryHash)?.state.data,s=c_(t,o);if(s!==void 0)return this.#e.build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Ot.batch(()=>this.#e.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;Ot.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return Ot.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Ot.batch(()=>this.#e.findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(gn).catch(gn)}invalidateQueries(e,t={}){return Ot.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Ot.batch(()=>this.#e.findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(gn)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(gn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(br(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(gn).catch(gn)}fetchInfiniteQuery(e){return e.behavior=Ba(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(gn).catch(gn)}ensureInfiniteQueryData(e){return e.behavior=Ba(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Fa.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#i.set(Wr(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#i.values()],n={};return t.forEach(r=>{Lo(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#r.set(Wr(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{Lo(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=xd(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Ed&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Ec={exports:{}},_c={};var yh;
1function k_(){if(yh)return _c;yh=1;var e=ft();function t(l,c){return l===c&&(l!==0||1/l===1/c)||l!==l&&c!==c}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,i=e.useRef,o=e.useEffect,s=e.useMemo,a=e.useDebugValue;return _c.useSyncExternalStoreWithSelector=function(l,c,f,u,p){var h=i(null);if(h.current===null){var g={hasValue:!1,value:null};h.current=g}else g=h.current;h=s(function(){function w(v){if(!x){if(x=!0,b=v,v=u(v),p!==void 0&&g.hasValue){var _=g.value;if(p(_,v))return m=_}return m=v}if(_=m,n(b,v))return _;var O=u(v);return p!==void 0&&p(_,O)?(b=v,_):(b=v,m=O)}var x=!1,b,m,d=f===void 0?null:f;return[function(){return w(c())},d===null?void 0:function(){return w(d())}]},[c,f,u,p]);var y=r(l,h[0],h[1]);return o(function(){g.hasValue=!0,g.value=y},[y]),a(y),y},_c}var bh;function T_(){return bh||(bh=1,Ec.exports=k_()),Ec.exports}var A_=T_();function L_(e){e()}function M_(){let e=null,t=null;return{clear(){e=null,t=null},notify(){L_(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var wh={notify(){},get:()=>[]};function I_(e,t){let n,r=wh,i=0,o=!1;function s(y){f();const w=r.subscribe(y);let x=!1;return()=>{x||(x=!0,w(),u())}}function a(){r.notify()}function l(){g.onStateChange&&g.onStateChange()}function c(){return o}function f(){i++,n||(n=e.subscribe(l),r=M_())}function u(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=wh)}function p(){o||(o=!0,f())}function h(){o&&(o=!1,u())}const g={addNestedSub:s,notifyNestedSubs:a,handleChangeWrapper:l,isSubscribed:c,trySubscribe:p,tryUnsubscribe:h,getListeners:()=>r};return g}var D_=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",N_=D_(),j_=()=>typeof navigator<"u"&&navigator.product==="ReactNative",$_=j_(),F_=()=>N_||$_?E.useLayoutEffect:E.useEffect,B_=F_(),V_=Symbol.for("react-redux-context"),H_=typeof globalThis<"u"?globalThis:{};function z_(){if(!E.createContext)return{};const e=H_[V_]??=new Map;let t=e.get(E.createContext);return t||(t=E.createContext(null),e.set(E.createContext,t)),t}var _r=z_();function U_(e){const{children:t,context:n,serverState:r,store:i}=e,o=E.useMemo(()=>{const l=I_(i);return{store:i,subscription:l,getServerState:r?()=>r:void 0}},[i,r]),s=E.useMemo(()=>i.getState(),[i]);B_(()=>{const{subscription:l}=o;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),s!==i.get
1State()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[o,s]);const a=n||_r;return E.createElement(a.Provider,{value:o},t)}var zB=U_;function Od(e=_r){return function(){return E.useContext(e)}}var c0=Od();function u0(e=_r){const t=e===_r?c0:Od(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var W_=u0();function q_(e=_r){const t=e===_r?W_:u0(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var UB=q_(),Y_=(e,t)=>e===t;function K_(e=_r){const t=e===_r?c0:Od(e),n=(r,i={})=>{const{equalityFn:o=Y_}=typeof i=="function"?{equalityFn:i}:i,s=t(),{store:a,subscription:l,getServerState:c}=s;E.useRef(!0);const f=E.useCallback({[r.name](p){return r(p)}}[r.name],[r]),u=A_.useSyncExternalStoreWithSelector(l.addNestedSub,a.getState,c||a.getState,f,o);return E.useDebugValue(u),u};return Object.assign(n,{withTypes:()=>n}),n}var WB=K_();function _t(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var X_=typeof Symbol=="function"&&Symbol.observable||"@@observable",xh=X_,Sc=()=>Math.random().toString(36).substring(7).split("").join("."),G_={INIT:`@@redux/INIT${Sc()}`,REPLACE:`@@redux/REPLACE${Sc()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Sc()}`},Va=G_;function Pd(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function f0(e,t,n){if(typeof e!="function")throw new Error(_t(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(_t(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(_t(1));return n(f0)(e,t)}let r=e,i=t,o=new Map,s=o,a=0,l=!1;function c(){s===o&&(s=new Map,o.forEach((w,x)=>{s.set(x,w)}))}function f(){if(l)throw new Error(_t(3));return i}function u(w){if(typeof w!="function")throw new Error(_t(4));if(l)throw new Error(_t(5));let x=!0;c();const b=a++;return s.set(b,w),function(){if(x){if(l)throw new Error(_t(6));x=!1,c(),s.delete(b),o=null}}}function p(w){if(!Pd(w))throw new Error(_t(7));if(typeof w.type>"u")throw new Error(_t(8));if(typeof w.type!="string")throw new Error(_t(17));if(l)throw new Error(_t(9));try{l=!0,i=r(i,w)}finally{l=!1}
vendor: 5,604 bytes, line 1
1return(o=s).forEach(b=>{b()}),w}function h(w){if(typeof w!="function")throw new Error(_t(10));r=w,p({type:Va.REPLACE})}function g(){const w=u;return{subscribe(x){if(typeof x!="object"||x===null)throw new Error(_t(11));function b(){const d=x;d.next&&d.next(f())}return b(),{unsubscribe:w(b)}},[xh](){return this}}}return p({type:Va.INIT}),{dispatch:p,subscribe:u,getState:f,replaceReducer:h,[xh]:g}}function Z_(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Va.INIT})>"u")throw new Error(_t(12));if(typeof n(void 0,{type:Va.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(_t(13))})}function Q_(e){const t=Object.keys(e),n={};for(let o=0;o<t.length;o++){const s=t[o];typeof e[s]=="function"&&(n[s]=e[s])}const r=Object.keys(n);let i;try{Z_(n)}catch(o){i=o}return function(s={},a){if(i)throw i;let l=!1;const c={};for(let f=0;f<r.length;f++){const u=r[f],p=n[u],h=s[u],g=p(h,a);if(typeof g>"u")throw a&&a.type,new Error(_t(14));c[u]=g,l=l||g!==h}return l=l||r.length!==Object.keys(s).length,l?c:s}}function Ha(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function J_(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(_t(15))};const s={getState:i.getState,dispatch:(l,...c)=>o(l,...c)},a=e.map(l=>l(s));return o=Ha(...a)(i.dispatch),{...i,dispatch:o}}}function eS(e){return Pd(e)&&"type"in e&&typeof e.type=="string"}var d0=Symbol.for("immer-nothing"),Eh=Symbol.for("immer-draftable"),$t=Symbol.for("immer-state");function Cn(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var sn=Object,Oi=sn.getPrototypeOf,za="constructor",Al="prototype",sf="configurable",Ua="enumerable",ua="writable",Mo="value",ar=e=>!!e&&!!e[$t];function Ln(e){return e?p0(e)||Ml(e)||!!e[Eh]||!!e[za]?.[Eh]||Il(e)||Dl(e):!1}var tS=sn[Al][za].toString(),_h=new WeakMap;function p0(e){if(!e||!Cd(e))return!1;const t=Oi(e);if(t===null||t===sn[Al])return!0;const n=sn.hasOwnProperty.call(t,za)&&t[za];if(n===Object)return!0;if(!di(n))return!1;let r=_h.get(n);return r===void 0&&(r=Function.toString.call(n),_h.set(n,r)),r===tS}function Ll(e,t,n=!0){Jo(e)===0?(n?Reflect.ownKeys(e):sn.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((r,i)=>t(i,r,e))}function Jo(e){const t=e[$t];return t?t.type_:Ml(e)?1:Il(e)?2:Dl(e)?3:0}var Sh=(e,t,n=Jo(e))=>n===2?e.has(t):sn[Al].hasOwnProperty.call(e,t),af=(e,t,n=Jo(e))=>n===2?e.get(t):e[t],Wa=(e,t,n,r=Jo(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function nS(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Ml=Array.isArray,Il=e=>e instanceof Map,Dl=e=>e instanceof Set,Cd=e=>typeof e=="object",di=e=>typeof e=="function",Oc=e=>typeof e=="boolean";function rS(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var nr=e=>e.copy_||e.base_,Rd=e=>e.modified_?e.copy_:e.base_;function lf(e,t){if(Il(e))return new Map(e);if(Dl(e))return new Set(e);if(Ml(e))return Array[Al].slice.call(e);const n=p0(e);if(t===!0||t==="class_only"&&!n){const r=sn.getOwnPropertyDescriptors(e);delete r[$t];let i=Reflect.ownKeys(r);for(let o=0;o<i.length;o++){const s=i[o],a=r[s];a[ua]===!1&&(a[ua]=!0,a[sf]=!0),(a.get||a.set)&&(r[s]={[sf]:!0,[ua]:!0,[Ua]:a[Ua],[Mo]:e[s]})}return sn.create(Oi(e),r)}else{const r=Oi(e);if(r!==null&&n)return{...e};const i=sn.create(r);return sn.assign(i,e)}}function kd(e,t=!1){return Nl(e)||ar(e)||!Ln(e)||(Jo(e)>1&&sn.defineProperties(e,{set:Os,add:Os,clear:Os,delete:Os}),sn.freeze(e),t&&Ll(e,(n,r)=>{kd(r,!0)},!1)),e}function iS(){Cn(2)}var Os={[Mo]:iS};function Nl(e){return e===null||!Cd(e)?!0:sn.isFrozen(e)}var qa="MapSet",cf="Patches",Oh="ArrayMethods",h0={};function qr(e){const t=h0[e];return t||Cn(0,e),t}var Ph=e=>!!h0[e],Io,m0=()=>Io,oS=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Ph(qa)?qr(qa):void 0,arrayMethodsPlugin_:Ph(Oh)?qr(Oh):void 0});function Ch(e,t){t&&(e.patchPlugin_=qr(cf),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function uf(e){ff(e),e.drafts_.forEach(sS),e.drafts_=null}function ff(e){e===Io&&(Io=e.parent_)}var Rh=e=>Io=oS(Io,e);function sS(e){const t=e[$t];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function kh(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[$t].modified_&&(uf(t),Cn(4)),Ln(e)&&(e=Th(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(n[$t].base_,e,t)}else e=Th(t,n);return aS(t,e,!0),uf(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==d0?e:void 0}function Th(e,t){if(Nl(t))return t;const n=t[$t];if(!n)return Ya(t,e.handledSet_,e);if(!jl(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:r}=n;if(r)for(;r.length>0;)r.pop()(e);y0(n,e)}return n.copy_}function aS(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&kd(t,n)}function g0(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var jl=(e,t)=>e.scope_===t,lS=[];function v0(e,t,n,r){const i=nr(e),o=e.type_;if(r!==void 0&&af(i,r,o)===t){Wa(i,r,n,o);return}if(!e.draftLocations_){const a=e.draftLocations_=new Map;Ll(i,(l,c)=>{if(ar(c)){const f=a.get(c)||[];f.push(l),a.set(c,f)}})}const s=e.draftLocations_.get(t)??lS;for(const a of s)Wa(i,a,n,o)}function cS(e,t,n){e.callbacks_.push(function(i){const o=t;if(!o||!jl(o,i))return;i.mapSetPlugin_?.fixSetContents(o);const s=Rd(o);v0(e,o.draft_??o,s,n),y0(o,i)})}function y0(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){const{patchPlugin_:r}=t;if(r){const i=r.getPath(e);i&&r.generatePatches_(e,i,t)}g0(e)}}
vendor: 2,059 bytes, line 1
1function uS(e,t,n){const{scope_:r}=e;if(ar(n)){const i=n[$t];jl(i,r)&&i.callbacks_.push(function(){fa(e);const s=Rd(i);v0(e,n,s,t)})}else Ln(n)&&e.callbacks_.push(function(){const o=nr(e);e.type_===3?o.has(n)&&Ya(n,r.handledSet_,r):af(o,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Ya(af(e.copy_,t,e.type_),r.handledSet_,r)})}function Ya(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||ar(e)||t.has(e)||!Ln(e)||Nl(e)||(t.add(e),Ll(e,(r,i)=>{if(ar(i)){const o=i[$t];if(jl(o,n)){const s=Rd(o);Wa(e,r,s,e.type_),g0(o)}}else Ln(i)&&Ya(i,t,n)})),e}function fS(e,t){const n=Ml(e),r={type_:n?1:0,scope_:t?t.scope_:m0(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=r,o=Ka;n&&(i=[r],o=Do);const{revoke:s,proxy:a}=Proxy.revocable(i,o);return r.draft_=a,r.revoke_=s,[a,r]}var Ka={get(e,t){if(t===$t)return e;let n=e.scope_.arrayMethodsPlugin_;const r=e.type_===1&&typeof t=="string";if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);const i=nr(e);if(!Sh(i,t,e.type_))return dS(e,i,t);const o=i[t];if(e.finalized_||!Ln(o)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&rS(t))return o;if(o===Pc(e.base_,t)){fa(e);const s=e.type_===1?+t:t,a=pf(e.scope_,o,e,s);return e.copy_[s]=a}return o},has(e,t){return t in nr(e)},ownKeys(e){return Reflect.ownKeys(nr(e))},set(e,t,n){const r=b0(nr(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=Pc(nr(e),t),o=i?.[$t];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(nS(n,i)&&(n!==void 0||Sh(e.base_,t,e.type_)))return!0;fa(e),df(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),uS(e,t,n)),!0},deleteProperty(e,t){return fa(e),Pc(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),df(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=nr(e),r=Reflect.getOwnPropertyDescriptor(n,t);
vendor: 4,413 bytes, line 1
1return r&&{[ua]:!0,[sf]:e.type_!==1||t!=="length",[Ua]:r[Ua],[Mo]:n[t]}},defineProperty(){Cn(11)},getPrototypeOf(e){return Oi(e.base_)},setPrototypeOf(){Cn(12)}},Do={};for(let e in Ka){let t=Ka[e];Do[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}Do.deleteProperty=function(e,t){return Do.set.call(this,e,t,void 0)};Do.set=function(e,t,n){return Ka.set.call(this,e[0],t,n,e[0])};function Pc(e,t){const n=e[$t];return(n?nr(n):e)[t]}function dS(e,t,n){const r=b0(t,n);return r?Mo in r?r[Mo]:r.get?.call(e.draft_):void 0}function b0(e,t){if(!(t in e))return;let n=Oi(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Oi(n)}}function df(e){e.modified_||(e.modified_=!0,e.parent_&&df(e.parent_))}function fa(e){e.copy_||(e.assigned_=new Map,e.copy_=lf(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var pS=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,n,r)=>{if(di(t)&&!di(n)){const o=n;n=t;const s=this;return function(l=o,...c){return s.produce(l,f=>n.call(this,f,...c))}}di(n)||Cn(6),r!==void 0&&!di(r)&&Cn(7);let i;if(Ln(t)){const o=Rh(this),s=pf(o,t,void 0);let a=!0;try{i=n(s),a=!1}finally{a?uf(o):ff(o)}return Ch(o,r),kh(i,o)}else if(!t||!Cd(t)){if(i=n(t),i===void 0&&(i=t),i===d0&&(i=void 0),this.autoFreeze_&&kd(i,!0),r){const o=[],s=[];qr(cf).generateReplacementPatches_(t,i,{patches_:o,inversePatches_:s}),r(o,s)}return i}else Cn(1,t)},this.produceWithPatches=(t,n)=>{if(di(t))return(s,...a)=>this.produceWithPatches(s,l=>t(l,...a));let r,i;return[this.produce(t,n,(s,a)=>{r=s,i=a}),r,i]},Oc(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Oc(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Oc(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Ln(e)||Cn(8),ar(e)&&(e=hS(e));const t=Rh(this),n=pf(t,e,void 0);return n[$t].isManual_=!0,ff(t),n}finishDraft(e,t){const n=e&&e[$t];(!n||!n.isManual_)&&Cn(9);const{scope_:r}=n;return Ch(r,t),kh(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=qr(cf).applyPatches_;return ar(e)?r(e,t):this.produce(e,i=>r(i,t))}};function pf(e,t,n,r){const[i,o]=Il(t)?qr(qa).proxyMap_(t,n):Dl(t)?qr(qa).proxySet_(t,n):fS(t,n);return(n?.scope_??m0()).drafts_.push(i),o.callbacks_=n?.callbacks_??[],o.key_=r,n&&r!==void 0?cS(n,o,r):o.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(o);const{patchPlugin_:c}=l;o.modified_&&c&&c.generatePatches_(o,[],l)}),i}function hS(e){return ar(e)||Cn(10,e),w0(e)}function w0(e){if(!Ln(e)||Nl(e))return e;const t=e[$t];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=lf(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=lf(e,!0);return Ll(n,(i,o)=>{Wa(n,i,w0(o))},r),t&&(t.finalized_=!1),n}var mS=new pS,x0=mS.produce;function gS(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function vS(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function yS(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var Ah=e=>Array.isArray(e)?e:[e];function bS(e){const t=Array.isArray(e[0])?e[0]:e;return yS(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function wS(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var xS=class{constructor(e){this.value=e}deref(){return this.value}},ES=typeof WeakRef<"u"?WeakRef:xS,_S=0,Lh=1;function Ps(){return{s:_S,v:void 0,o:null,p:null}}function E0(e,t={}){let n=Ps();const{resultEqualityCheck:r}=t;let i,o=0;function s(){let a=n;const{length:l}=arguments;for(let u=0,p=l;u<p;u++){const h=arguments[u];if(typeof h=="function"||typeof h=="object"&&h!==null){let g=a.o;g===null&&(a.o=g=new WeakMap);const y=g.get(h);y===void 0?(a=Ps(),g.set(h,a)):a=y}
vendor: 13,167 bytes, line 1
1else{let g=a.p;g===null&&(a.p=g=new Map);const y=g.get(h);y===void 0?(a=Ps(),g.set(h,a)):a=y}}const c=a;let f;if(a.s===Lh)f=a.v;else if(f=e.apply(null,arguments),o++,r){const u=i?.deref?.()??i;u!=null&&r(u,f)&&(f=u,o!==0&&o--),i=typeof f=="object"&&f!==null||typeof f=="function"?new ES(f):f}return c.s=Lh,c.v=f,f}return s.clearCache=()=>{n=Ps(),s.resetResultsCount()},s.resultsCount=()=>o,s.resetResultsCount=()=>{o=0},s}function SS(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let o=0,s=0,a,l={},c=i.pop();typeof c=="object"&&(l=c,c=i.pop()),gS(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const f={...n,...l},{memoize:u,memoizeOptions:p=[],argsMemoize:h=E0,argsMemoizeOptions:g=[]}=f,y=Ah(p),w=Ah(g),x=bS(i),b=u(function(){return o++,c.apply(null,arguments)},...y),m=h(function(){s++;const v=wS(x,arguments);return a=b.apply(null,v),a},...w);return Object.assign(m,{resultFunc:c,memoizedResultFunc:b,dependencies:x,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>a,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:u,argsMemoize:h})};return Object.assign(r,{withTypes:()=>r}),r}var OS=SS(E0),PS=Object.assign((e,t=OS)=>{vS(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(o=>e[o]);return t(r,(...o)=>o.reduce((s,a,l)=>(s[n[l]]=a,s),{}))},{withTypes:()=>PS});function _0(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var CS=_0(),RS=_0,kS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ha:Ha.apply(null,arguments)};function Mh(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(or(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>eS(r)&&r.type===e,n}var S0=class go extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,go.prototype)}static get[Symbol.species](){return go}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new go(...t[0].concat(this)):new go(...t.concat(this))}};function Ih(e){return Ln(e)?x0(e,()=>{}):e}function Cs(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function TS(e){return typeof e=="boolean"}var AS=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let s=new S0;return n&&(TS(n)?s.push(CS):s.push(RS(n.extraArgument))),s},LS="RTK_autoBatch",Dh=e=>t=>{setTimeout(t,e)},MS=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,s=!1;const a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Dh(10):e.type==="callback"?e.queueNotification:Dh(e.timeout),c=()=>{s=!1,o&&(o=!1,a.forEach(f=>f()))};return Object.assign({},r,{subscribe(f){const u=()=>i&&f(),p=r.subscribe(u);return a.add(f),()=>{p(),a.delete(f)}},dispatch(f){try{return i=!f?.meta?.[LS],o=!i,o&&(s||(s=!0,l(c))),r.dispatch(f)}finally{i=!0}}})},IS=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new S0(e);return r&&i.push(MS(typeof r=="object"?r:void 0)),i};function qB(e){const t=AS(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{};let a;if(typeof n=="function")a=n;else if(Pd(n))a=Q_(n);else throw new Error(or(1));let l;typeof r=="function"?l=r(t):l=t();let c=Ha;i&&(c=kS({trace:!1,...typeof i=="object"&&i}));const f=J_(...l),u=IS(f);let p=typeof s=="function"?s(u):u();const h=c(...p);return f0(a,o,h)}function O0(e){const t={},n=[];let r;const i={addCase(o,s){const a=typeof o=="string"?o:o.type;if(!a)throw new Error(or(28));if(a in t)throw new Error(or(29));return t[a]=s,i},addAsyncThunk(o,s){return s.pending&&(t[o.pending.type]=s.pending),s.rejected&&(t[o.rejected.type]=s.rejected),s.fulfilled&&(t[o.fulfilled.type]=s.fulfilled),s.settled&&n.push({matcher:o.settled,reducer:s.settled}),i},addMatcher(o,s){return n.push({matcher:o,reducer:s}),i},addDefaultCase(o){return r=o,i}};return e(i),[t,n,r]}function DS(e){return typeof e=="function"}function NS(e,t){let[n,r,i]=O0(t),o;if(DS(e))o=()=>Ih(e());else{const a=Ih(e);o=()=>a}function s(a=o(),l){let c=[n[l.type],...r.filter(({matcher:f})=>f(l)).map(({reducer:f})=>f)];return c.filter(f=>!!f).length===0&&(c=[i]),c.reduce((f,u)=>{if(u)if(ar(f)){const h=u(f,l);return h===void 0?f:h}else{if(Ln(f))return x0(f,p=>u(p,l));{const p=u(f,l);if(p===void 0){if(f===null)return f;throw Error("A case reducer on a non-draftable value must not return undefined")}return p}}return f},a)}return s.getInitialState=o,s}var jS=Symbol.for("rtk-slice-createasyncthunk");function $S(e,t){return`${e}/${t}`}function FS({creators:e}={}){const t=e?.asyncThunk?.[jS];return function(r){const{name:i,reducerPath:o=i}=r;if(!i)throw new Error(or(11));const s=(typeof r.reducers=="function"?r.reducers(VS()):r.reducers)||{},a=Object.keys(s),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(m,d){const v=typeof m=="string"?m:m.type;if(!v)throw new Error(or(12));if(v in l.sliceCaseReducersByType)throw new Error(or(13));return l.sliceCaseReducersByType[v]=d,c},addMatcher(m,d){return l.sliceMatchers.push({matcher:m,reducer:d}),c},exposeAction(m,d){return l.actionCreators[m]=d,c},exposeCaseReducer(m,d){return l.sliceCaseReducersByName[m]=d,c}};a.forEach(m=>{const d=s[m],v={reducerName:m,type:$S(i,m),createNotation:typeof r.reducers=="function"};zS(d)?WS(v,d,c,t):HS(v,d,c)});function f(){const[m={},d=[],v=void 0]=typeof r.extraReducers=="function"?O0(r.extraReducers):[r.extraReducers],_={...m,...l.sliceCaseReducersByType};return NS(r.initialState,O=>{for(let C in _)O.addCase(C,_[C]);for(let C of l.sliceMatchers)O.addMatcher(C.matcher,C.reducer);for(let C of d)O.addMatcher(C.matcher,C.reducer);v&&O.addDefaultCase(v)})}const u=m=>m,p=new Map,h=new WeakMap;let g;function y(m,d){return g||(g=f()),g(m,d)}function w(){return g||(g=f()),g.getInitialState()}function x(m,d=!1){function v(O){let C=O[m];return typeof C>"u"&&d&&(C=Cs(h,v,w)),C}function _(O=u){const C=Cs(p,d,()=>new WeakMap);return Cs(C,O,()=>{const k={};for(const[A,T]of Object.entries(r.selectors??{}))k[A]=BS(T,O,()=>Cs(h,O,w),d);return k})}return{reducerPath:m,getSelectors:_,get selectors(){return _(v)},selectSlice:v}}const b={name:i,reducer:y,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:w,...x(o),injectInto(m,{reducerPath:d,...v}={}){const _=d??o;return m.inject({reducerPath:_,reducer:y},v),{...b,...x(_,!0)}}};return b}}function BS(e,t,n,r){function i(o,...s){let a=t(o);return typeof a>"u"&&r&&(a=n()),e(a,...s)}return i.unwrapped=e,i}var YB=FS();function VS(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function HS({type:e,reducerName:t,createNotation:n},r,i){let o,s;if("reducer"in r){if(n&&!US(r))throw new Error(or(17));o=r.reducer,s=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,s?Mh(e,s):Mh(e))}function zS(e){return e._reducerDefinitionType==="asyncThunk"}function US(e){return e._reducerDefinitionType==="reducerWithPrepare"}function WS({type:e,reducerName:t},n,r,i){if(!i)throw new Error(or(18));const{payloadCreator:o,fulfilled:s,pending:a,rejected:l,settled:c,options:f}=n,u=i(e,o,f);r.exposeAction(t,u),s&&r.addCase(u.fulfilled,s),a&&r.addCase(u.pending,a),l&&r.addCase(u.rejected,l),c&&r.addMatcher(u.settled,c),r.exposeCaseReducer(t,{fulfilled:s||Rs,pending:a||Rs,rejected:l||Rs,settled:c||Rs})}function Rs(){}function or(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}function qS({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.26 10.147a60.438 60.438 0 0 0-.491 6.347A48.62 48.62 0 0 1 12 20.904a48.62 48.62 0 0 1 8.232-4.41 60.46 60.46 0 0 0-.491-6.347m-15.482 0a50.636 50.636 0 0 0-2.658-.813A59.906 59.906 0 0 1 12 3.493a59.903 59.903 0 0 1 10.399 5.84c-.896.248-1.783.52-2.658.814m-15.482 0A50.717 50.717 0 0 1 12 13.489a50.702 50.702 0 0 1 7.74-3.342M6.75 15a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm0 0v-3.675A55.378 55.378 0 0 1 12 8.443m-7.007 11.55A5.981 5.981 0 0 0 6.75 15.75v-1.5"}))}const KB=E.forwardRef(qS);function YS({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75"}))}const XB=E.forwardRef(YS);function KS({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"}))}const GB=E.forwardRef(KS);function XS({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 19.5 3 12m0 0 7.5-7.5M3 12h18"}))}const ZB=E.forwardRef(XS);function GS({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"}))}const QB=E.forwardRef(GS);function ZS({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 4.5 21 12m0 0-7.5 7.5M21 12H3"}))}const JB=E.forwardRef(ZS);function QS({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"}))}const eV=E.forwardRef(QS);function JS({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5m-13.5-9L12 3m0 0 4.5 4.5M12 3v13.5"}))}const tV=E.forwardRef(JS);function e5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M2
10.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15"}))}const nV=E.forwardRef(e5);function t5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.5 21 3 16.5m0 0L7.5 12M3 16.5h13.5m0-13.5L21 7.5m0 0L16.5 12M21 7.5H7.5"}))}const rV=E.forwardRef(t5);function n5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 18.75a60.07 60.07 0 0 1 15.797 2.101c.727.198 1.453-.342 1.453-1.096V18.75M3.75 4.5v.75A.75.75 0 0 1 3 6h-.75m0 0v-.375c0-.621.504-1.125 1.125-1.125H20.25M2.25 6v9m18-10.5v.75c0 .414.336.75.75.75h.75m-1.5-1.5h.375c.621 0 1.125.504 1.125 1.125v9.75c0 .621-.504 1.125-1.125 1.125h-.375m1.5-1.5H21a.75.75 0 0 0-.75.75v.75m0 0H3.75m0 0h-.375a1.125 1.125 0 0 1-1.125-1.125V15m1.5 1.5v-.75A.75.75 0 0 0 3 15h-.75M15 10.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm3 0h.008v.008H18V10.5Zm-12 0h.008v.008H6V10.5Z"}))}const iV=E.forwardRef(n5);function r5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.857 17.082a23.848 23.848 0 0 0 5.454-1.31A8.967 8.967 0 0 1 18 9.75V9A6 6 0 0 0 6 9v.75a8.967 8.967 0 0 1-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 0 1-5.714 0m5.714 0a3 3 0 1 1-5.714 0M3.124 7.5A8.969 8.969 0 0 1 5.292 3m13.416 0a8.969 8.969 0 0 1 2.168 4.5"}))}const oV=E.forwardRef(r5);function i5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m3.75 13.5 10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75Z"}))}const sV=E.forwardRef(i5);function o5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.042A8.967 8.967 0 0 0 6 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 0 1 6 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 0 1 6-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0 0 18 18a8.967 8.967 0 0 0-6 2.292m0-14.25v14.25"}))}const aV=E.forwardRef(o5);function s5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 21h16.5M4.5 3h15M5.25 3v18m13.5-18v18M9 6.75h1.5m-1.5 3h1.5m-1.5 3h1.5m3-6H15m-1.5 3H15m-1.5 3H15M9 21v-3.375c0-.621.504-1.125 1.125-1.125h3.75c.621 0 1.125.504 1.125 1.125V21"}))}const lV=E.forwardRef(s5);function a5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5m-9-6h.008v.008H12v-.008ZM12 15h.008v.008H12V15Zm0 2.25h.008v.008H12v-.008ZM9.75 15h.008v.008H9.75V15Zm0 2.25h.008v.008H9.75v-.008ZM7.5 15h.008v.008H7.5V15Zm0 2.25h.008v.008H7.5v-.008Zm6.75-4.5h.008v.008h-.008v-.008Zm0 2.25h.008v.008h-.008V15Zm0 2.25h.008v.008h-.008v-.008Zm2.25-4.5h.008v.008H16.5v-.008Zm0 2.25h.008v.008H16.5V15Z"}))}const cV=E.forwardRef(a5);function l5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5"}))}const uV=E.forwardRef(l5);function c5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.827 6.175A2.31 2.31 0 0 1 5.186 7.23c-.38.054-.757.112-1.134.175C2.999 7.58 2.25 8.507 2.25 9.574V18a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9.574c0-1.067-.75-1.994-1.802-2.169a47.865 47.865 0 0 0-1.134-.175 2.31 2.31 0 0 1-1.64-1.055l-.822-1.316a2.192 2.192 0 0 0-1.736-1.039 48.774 48.774 0 0 0-5.232 0 2.192 2.192 0 0 0-1.736 1.039l-.821 1.316Z"}),E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 12.75a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0ZM18.75 10.5h.008v.008h-.008V10.5Z"}))}const fV=E.forwardRef(c5);function u5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.5 14.25v2.25m3-4.5v4.5m3-6.75v6.75m3-9v9M6 20.25h12A2.25 2.25 0 0 0 20.25 18V6A2.25 2.25 0 0 0 18 3.75H6A2.25 2.25 0 0 0 3.75 6v12A2.25 2.25 0 0 0 6 20.25Z"}))}const dV=E.forwardRef(u5);function f5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 13.125C3 12.504 3.504 12 4.125 12h2.25c.621 0 1.125.504 1.125 1.125v6.75C7.5 20.496 6.996 21 6.375 21h-2.25A1.125 1.125 0 0 1 3 19.875v-6.75ZM9.75 8.625c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125v11.25c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V8.625ZM16.5 4.125c0-.621.504-1.125 1.125-1.125h2.25C20.496 3 21 3.504 21 4.125v15.75c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V4.125Z"}))}const pV=E.forwardRef(f5);function d5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.25 8.511c.884.284 1.5 1.128 1.5 2.097v4.286c0 1.136-.847 2.1-1.98 2.193-.34.027-.68.052-1.02.072v3.091l-3-3c-1.354 0-2.694-.055-4.02-.163a2.115 2.115 0 0 1-.825-.242m9.345-8.334a2.126 2.126 0 0 0-.476-.
1095 48.64 48.64 0 0 0-8.048 0c-1.131.094-1.976 1.057-1.976 2.192v4.286c0 .837.46 1.58 1.155 1.951m9.345-8.334V6.637c0-1.621-1.152-3.026-2.76-3.235A48.455 48.455 0 0 0 11.25 3c-2.115 0-4.198.137-6.24.402-1.608.209-2.76 1.614-2.76 3.235v6.226c0 1.621 1.152 3.026 2.76 3.235.577.075 1.157.14 1.74.194V21l4.155-4.155"}))}const hV=E.forwardRef(d5);function p5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const mV=E.forwardRef(p5);function h5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))}const gV=E.forwardRef(h5);function m5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m18.75 4.5-7.5 7.5 7.5 7.5m-6-15L5.25 12l7.5 7.5"}))}const vV=E.forwardRef(m5);function g5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m5.25 4.5 7.5 7.5-7.5 7.5m6-15 7.5 7.5-7.5 7.5"}))}const yV=E.forwardRef(g5);function v5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"}))}const bV=E.forwardRef(v5);function y5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5 8.25 12l7.5-7.5"}))}const wV=E.forwardRef(y5);function b5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"}))}const xV=E.forwardRef(b5);function w5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 15.75 7.5-7.5 7.5 7.5"}))}const EV=E.forwardRef(w5);function x5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.35 3.836c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75 2.25 2.25 0 0 0-.1-.664m-5.8 0A2.251 2.251 0 0 1 13.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m8.9-4.414c.376.023.75.05 1.124.08 1.131.094 1.976 1.057 1.976 2.192V16.5A2.25 2.25 0 0 1 18 18.75h-2.25m-7.5-10.5H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V18.75m-7.5-10.5h6.375c.621 0 1.125.504 1.125 1.125v9.375m-8.25-3 1.5 1.5 3-3.75"}))}const _V=E.forwardRef(x5);function E5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 7.5V6.108c0-1.135.845-2.098 1.976-2.192.373-.03.748-.057 1.123-.08M15.75 18H18a2.25 2.25 0 0 0 2.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 0 0-1.123-.08M15.75 18.75v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5A3.375 3.375 0 0 0 6.375 7.5H5.25m11.9-3.664A2.251 2.251 0 0 0 15 2.25h-1.5a2.251 2.251 0 0 0-2.15 1.586m5.8 0c.065.21.1.433.1.664v.75h-6V4.5c0-.231.035-.454.1-.664M6.75 7.5H4.875c-.621 0-1.125.504-1.125 1.125v12c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V16.5a9 9 0 0 0-9-9Z"}))}const SV=E.forwardRef(E5);function _5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const OV=E.forwardRef(_5);function S5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.
1074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"}),E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const PV=E.forwardRef(S5);function O5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 17.25v1.007a3 3 0 0 1-.879 2.122L7.5 21h9l-.621-.621A3 3 0 0 1 15 18.257V17.25m6-12V15a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 15V5.25m18 0A2.25 2.25 0 0 0 18.75 3H5.25A2.25 2.25 0 0 0 3 5.25m18 0V12a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 12V5.25"}))}const CV=E.forwardRef(O5);function P5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 8.25h19.5M2.25 9h19.5m-16.5 5.25h6m-6 2.25h3m-3.75 3h15a2.25 2.25 0 0 0 2.25-2.25V6.75A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25v10.5A2.25 2.25 0 0 0 4.5 19.5Z"}))}const RV=E.forwardRef(P5);function C5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v12m-3-2.818.879.659c1.171.879 3.07.879 4.242 0 1.172-.879 1.172-2.303 0-3.182C13.536 12.219 12.768 12 12 12c-.725 0-1.45-.22-2.003-.659-1.106-.879-1.106-2.303 0-3.182s2.9-.879 4.006 0l.415.33M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const kV=E.forwardRef(C5);function R5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.042 21.672 13.684 16.6m0 0-2.51 2.225.569-9.47 5.227 7.917-3.286-.672Zm-7.518-.267A8.25 8.25 0 1 1 20.25 10.5M8.288 14.212A5.25 5.25 0 1 1 17.25 10.5"}))}const TV=E.forwardRef(R5);function k5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 1.5H8.25A2.25 2.25 0 0 0 6 3.75v16.5a2.25 2.25 0 0 0 2.25 2.25h7.5A2.25 2.25 0 0 0 18 20.25V3.75a2.25 2.25 0 0 0-2.25-2.25H13.5m-3 0V3h3V1.5m-3 0h3m-3 18.75h3"}))}const AV=E.forwardRef(k5);function T5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 17.25v3.375c0 .621-.504 1.125-1.125 1.125h-9.75a1.125 1.125 0 0 1-1.125-1.125V7.875c0-.621.504-1.125 1.125-1.125H6.75a9.06 9.06 0 0 1 1.5.124m7.5 10.376h3.375c.621 0 1.125-.504 1.125-1.125V11.25c0-4.46-3.243-8.161-7.5-8.876a9.06 9.06 0 0 0-1.5-.124H9.375c-.621 0-1.125.504-1.125 1.125v3.5m7.5 10.375H9.375a1.125 1.125 0 0 1-1.125-1.125v-9.25m12 6.625v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H9.7
15"}))}const LV=E.forwardRef(T5);function A5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"}))}const MV=E.forwardRef(A5);function L5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"}))}const IV=E.forwardRef(L5);function M5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.75a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5ZM12 12.75a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5ZM12 18.75a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5Z"}))}const DV=E.forwardRef(M5);function I5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.75 6.75v10.5a2.25 2.25 0 0 1-2.25 2.25h-15a2.25 2.25 0 0 1-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25m19.5 0v.243a2.25 2.25 0 0 1-1.07 1.916l-7.5 4.615a2.25 2.25 0 0 1-2.36 0L3.32 8.91a2.25 2.25 0 0 1-1.07-1.916V6.75"}))}const NV=E.forwardRef(I5);function D5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"}))}const jV=E.forwardRef(D5);function N5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"}))}const $V=E.forwardRef(N5);function j5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.98 8.223A10.477 10.477 0 0 0 1.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.451 10.451 0 0 1 12 4.5c4.756 0 8.773 3.162 10.065 7.498a10.522 10.522 0 0 1-4.293 5.774M6.228 6.228 3 3m3.228 3.228 3.65 3.65m7.894 7.894L21 21m-3.228-3.228-3.65-3.65m0 0a3 3 0 1 0-4.243-4.243m4.242 4.242L9.88 9.88"}))}const FV=E.forwardRef(j5);function $5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const BV=E.forwardRef($5);function F5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.375 19.5h17.25m-17.25 0a1.125 1.125 0 0 1-1.125-1.125M3.375 19.5h1.5C5.496 19.5 6 18.996 6 18.375m-3.75 0V5.625m0 12.75v-1.5c0-.621.504-1.125 1.125-1.125m18.375 2.625V5.625m0 12.75c0 .621-.504 1.125-1.125 1.125m1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125m0 3.75h-1.5A1.125 1.125 0 0 1 18 18.375M20.625 4.5H3.375m17.25 0c.621 0 1.125.504 1.125 1.125M20.625 4.5h-1.5C18.504 4.5 18 5.
1004 18 5.625m3.75 0v1.5c0 .621-.504 1.125-1.125 1.125M3.375 4.5c-.621 0-1.125.504-1.125 1.125M3.375 4.5h1.5C5.496 4.5 6 5.004 6 5.625m-3.75 0v1.5c0 .621.504 1.125 1.125 1.125m0 0h1.5m-1.5 0c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125m1.5-3.75C5.496 8.25 6 7.746 6 7.125v-1.5M4.875 8.25C5.496 8.25 6 8.754 6 9.375v1.5m0-5.25v5.25m0-5.25C6 5.004 6.504 4.5 7.125 4.5h9.75c.621 0 1.125.504 1.125 1.125m1.125 2.625h1.5m-1.5 0A1.125 1.125 0 0 1 18 7.125v-1.5m1.125 2.625c-.621 0-1.125.504-1.125 1.125v1.5m2.625-2.625c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125M18 5.625v5.25M7.125 12h9.75m-9.75 0A1.125 1.125 0 0 1 6 10.875M7.125 12C6.504 12 6 12.504 6 13.125m0-2.25C6 11.496 5.496 12 4.875 12M18 10.875c0 .621-.504 1.125-1.125 1.125M18 10.875c0 .621.504 1.125 1.125 1.125m-2.25 0c.621 0 1.125.504 1.125 1.125m-12 5.25v-5.25m0 5.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125m-12 0v-1.5c0-.621-.504-1.125-1.125-1.125M18 18.375v-5.25m0 5.25v-1.5c0-.621.504-1.125 1.125-1.125M18 13.125v1.5c0 .621.504 1.125 1.125 1.125M18 13.125c0-.621.504-1.125 1.125-1.125M6 13.125v1.5c0 .621-.504 1.125-1.125 1.125M6 13.125C6 12.504 5.496 12 4.875 12m-1.5 0h1.5m-1.5 0c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125M19.125 12h1.5m0 0c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h1.5m14.25 0h1.5"}))}const VV=E.forwardRef(F5);function B5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.362 5.214A8.252 8.252 0 0 1 12 21 8.25 8.25 0 0 1 6.038 7.047 8.287 8.287 0 0 0 9 9.601a8.983 8.983 0 0 1 3.361-6.867 8.21 8.21 0 0 0 3 2.48Z"}),E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 18a3.75 3.75 0 0 0 .495-7.468 5.99 5.99 0 0 0-1.925 3.547 5.975 5.975 0 0 1-2.133-1.001A3.75 3.75 0 0 0 12 18Z"}))}const HV=E.forwardRef(B5);function V5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 10.5v6m3-3H9m4.06-7.19-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z"}))}const zV=E.forwardRef(V5);function H5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 0 1 4.5 9.75h15A2.25 2.25 0 0 1 21.75 12v.75m-8.69-6.44-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z"}))}const UV=E.forwardRef(H5);function z5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 8.689c0-.864.933-1.406 1.683-.977l7.108 4.061a1.125 1.125 0 0 1 0 1.954l-7.108 4.061A1.125 1.125 0 0 1 3 16.811V8.69ZM12.75 8.689c0-.864.933-1.406 1.683-.977l7.108 4.061a1.125 1.125 0 0 1 0 1.954l-7.108 4.061a1.125 1.125 0 0 1-1.683-.977V8.69Z"}))}const WV=E.forwardRef(z5);function U5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 0 1-.659 1.591l-5.432 5.432a2.25 2.25 0 0 0-.659 1.591v2.927a2.25 2.25 0 0 1-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 0 0-.659-1.591L3.659 7.409A2.25 2.25 0 0 1 3 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 
10 0 1 12 3Z"}))}const qV=E.forwardRef(U5);function W5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418"}))}const YV=E.forwardRef(W5);function q5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 8.25h15m-16.5 7.5h15m-1.8-13.5-3.9 19.5m-2.1-19.5-3.9 19.5"}))}const KV=E.forwardRef(q5);function Y5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"}))}const XV=E.forwardRef(Y5);function K5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 9h3.75M15 12h3.75M15 15h3.75M4.5 19.5h15a2.25 2.25 0 0 0 2.25-2.25V6.75A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25v10.5A2.25 2.25 0 0 0 4.5 19.5Zm6-10.125a1.875 1.875 0 1 1-3.75 0 1.875 1.875 0 0 1 3.75 0Zm1.294 6.336a6.721 6.721 0 0 1-3.17.789 6.721 6.721 0 0 1-3.168-.789 3.376 3.376 0 0 1 6.338 0Z"}))}const GV=E.forwardRef(K5);function X5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"}))}const ZV=E.forwardRef(X5);function G5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"}))}const QV=E.forwardRef(G5);function Z5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"}))}const JV=E.forwardRef(Z5);function Q5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 10.5V6.75a4.5 4.5 0 1 0-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 0 0 2.25-2.25v-6.75a2.25 2.25 0 0 0-2.25-2.25H6.75a2.25 2.25 0 0 0-2.25 2.25v6.75a2.25 2.25 0 0 0 2.25 2.25Z"}))}const eH=E.forwardRef(Q5);function J5({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const tH=E.forwardRef(J5);function eO({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 10.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}),E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 10.5c0 7.142-7.5 11.25-7.5 11.25S4.5 17.642 4.5 10.5a7.5 7.5 0 1 1 15 0Z"}))}const nH=E.forwardRef(eO);function tO({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 6.75V15m6-6v8.25m.503 3.498 4.875-2.437c.381-.19.622-.58.622-1.006V4.82c0-.836-.88-1.38-1.628-1.006l-3.869 1.934c-.317.159-.69.159-1.006 0L9.503 3.252a1.125 1.125 0 0 0-1.006 0L3.622 5.689C3.24 5.88 3 6.27 3 6.695V19.18c0 .836.88 1.38 1.628 1.006l3.869-1.934c.317-.159.69-.159 1.006 0l4.994 2.497c.317.158.69.158 1.006 0Z"}))}const rH=E.forwardRef(tO);function nO({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 18.75a6 6 0 0 0 6-6v-1.5m-6 7.5a6 6 0 0 1-6-6v-1.5m6 7.5v3.75m-3.75 0h7.5M12 15.75a3 3 0 0 1-3-3V4.5a3 3 0 1 1 6 0v8.25a3 3 0 0 1-3 3Z"}))}const iH=E.forwardRef(nO);function rO({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9 9 10.5-3m0 6.553v3.75a2.25 2.25 0 0 1-1.632 2.163l-1.32.377a1.803 1.803 0 1 1-.99-3.467l2.31-.66a2.25 2.25 0 0 0 1.632-2.163Zm0 0V2.25L9 5.25v10.303m0 0v3.75a2.25 2.25 0 0 1-1.632 2.163l-1.32.377a1.803 1.803 0 0 1-.99-3.467l2.31-.66A2.25 2.25 0 0 0 9 15.553Z"}))}const oH=E.forwardRef(rO);function iO({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m18.375 12.739-7.693 7.693a4.5 4.5 0 0 1-6.364-6.364l10.94-10.94A3 3 0 1 1 19.5 7.372L8.552 18.32m.009-.01-.01.01m5.699-9.941-7.81 7.81a1.5 1.5 0 0 0 2.112 2.13"}))}const sH=E.forwardRef(iO);function oO({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 5.25v13.5m-7.5-13.5v13.5"}))}const aH=E.forwardRef(oO);function sO({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125"}))}const lH=E.forwardRef(sO);function aO({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 6.75c0 8.284 6.716 15 15 15h2.25a2.25 2.25 0 0 0 2.25-2.25v-1.372c0-.516-.351-.966-.852-1.091l-4.423-1.106c-.44-.11-.902.055-1.173.417l-.97 1.293c-.282.376-.769.542-1.21.38a12.035 12.035 0 0 1-7.143-7.143c-.162-.441.004-.928.38-1.21l1.293-.97c.363-.271.527-.734.417-1.173L6.963 3.102a1.125 1.125 0 0 0-1.091-.852H4.5A2.25 2.25 0 0 0 2.25 4.5v2.25Z"}))}const cH=E.forwardRef(aO);function lO({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"}))}const uH=E.forwardRef(lO);function cO({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 5.
1653c0-.856.917-1.398 1.667-.986l11.54 6.347a1.125 1.125 0 0 1 0 1.972l-11.54 6.347a1.125 1.125 0 0 1-1.667-.986V5.653Z"}))}const fH=E.forwardRef(cO);function uO({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v6m3-3H9m12 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const dH=E.forwardRef(uO);function fO({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))}const pH=E.forwardRef(fO);function dO({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.25 6.087c0-.355.186-.676.401-.959.221-.29.349-.634.349-1.003 0-1.036-1.007-1.875-2.25-1.875s-2.25.84-2.25 1.875c0 .369.128.713.349 1.003.215.283.401.604.401.959v0a.64.64 0 0 1-.657.643 48.39 48.39 0 0 1-4.163-.3c.186 1.613.293 3.25.315 4.907a.656.656 0 0 1-.658.663v0c-.355 0-.676-.186-.959-.401a1.647 1.647 0 0 0-1.003-.349c-1.036 0-1.875 1.007-1.875 2.25s.84 2.25 1.875 2.25c.369 0 .713-.128 1.003-.349.283-.215.604-.401.959-.401v0c.31 0 .555.26.532.57a48.039 48.039 0 0 1-.642 5.056c1.518.19 3.058.309 4.616.354a.64.64 0 0 0 .657-.643v0c0-.355-.186-.676-.401-.959a1.647 1.647 0 0 1-.349-1.003c0-1.035 1.008-1.875 2.25-1.875 1.243 0 2.25.84 2.25 1.875 0 .369-.128.713-.349 1.003-.215.283-.4.604-.4.959v0c0 .333.277.599.61.58a48.1 48.1 0 0 0 5.427-.63 48.05 48.05 0 0 0 .582-4.717.532.532 0 0 0-.533-.57v0c-.355 0-.676.186-.959.401-.29.221-.634.349-1.003.349-1.035 0-1.875-1.007-1.875-2.25s.84-2.25 1.875-2.25c.37 0 .713.128 1.003.349.283.215.604.401.96.401v0a.656.656 0 0 0 .658-.663 48.422 48.422 0 0 0-.37-5.36c-1.886.342-3.81.574-5.766.689a.578.578 0 0 1-.61-.58v0Z"}))}const hH=E.forwardRef(dO);function pO({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z"}))}const mH=E.forwardRef(pO);function hO({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 12h16.5m-16.5 3.75h16.5M3.75 19.5h16.5M5.625 4.5h12.75a1.875 1.875 0 0 1 0 3.75H5.625a1.875 1.875 0 0 1 0-3.75Z"}))}const gH=E.forwardRef(hO);function mO({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 6.878V6a2.25 2.25 0 0 1 2.25-2.25h7.5A2.25 2.25 0 0 1 18 6v.878m-12 0c.235-.083.487-.128.75-.128h10.5c.263 0 .515.045.75.128m-12 0A2.25 2.25 0 0 0 4.5 9v.878m13.5-3A2.25 2.25 0 0 1 19.5 9v.878m0 0a2.246 2.246 0 0 0-.75-.128H5.25c-.263 0-.515.045-.75.128m15 0A2.25 2.25 0 0 1 21 12v6
1a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 18v-6c0-.98.626-1.813 1.5-2.122"}))}const vH=E.forwardRef(mO);function gO({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.217 10.907a2.25 2.25 0 1 0 0 2.186m0-2.186c.18.324.283.696.283 1.093s-.103.77-.283 1.093m0-2.186 9.566-5.314m-9.566 7.5 9.566 5.314m0 0a2.25 2.25 0 1 0 3.935 2.186 2.25 2.25 0 0 0-3.935-2.186Zm0-12.814a2.25 2.25 0 1 0 3.933-2.185 2.25 2.25 0 0 0-3.933 2.185Z"}))}const yH=E.forwardRef(gO);function vO({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75m-3-7.036A11.959 11.959 0 0 1 3.598 6 11.99 11.99 0 0 0 3 9.749c0 5.592 3.824 10.29 9 11.623 5.176-1.332 9-6.03 9-11.622 0-1.31-.21-2.571-.598-3.751h-.152c-3.196 0-6.1-1.248-8.25-3.285Z"}))}const bH=E.forwardRef(vO);function yO({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m0-10.036A11.959 11.959 0 0 1 3.598 6 11.99 11.99 0 0 0 3 9.75c0 5.592 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.31-.21-2.57-.598-3.75h-.152c-3.196 0-6.1-1.25-8.25-3.286Zm0 13.036h.008v.008H12v-.008Z"}))}const wH=E.forwardRef(yO);function bO({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 0 0-2.456 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z"}))}const xH=E.forwardRef(bO);function wO({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.114 5.636a9 9 0 0 1 0 12.728M16.463 8.288a5.25 5.25 0 0 1 0 7.424M6.75 8.25l4.72-4.72a.75.75 0 0 1 1.28.53v15.88a.75.75 0 0 1-1.28.53l-4.72-4.72H4.51c-.88 0-1.704-.507-1.938-1.354A9.009 9.009 0 0 1 2.25 12c0-.83.112-1.633.322-2.396C2.806 8.756 3.63 8.25 4.51 8.25H6.75Z"}))}const EH=E.forwardRef(wO);function xO({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.25 9.75 19.5 12m0 0 2.25 2.25M19.5 12l2.25-2.25M19.5 12l-2.25 2.25m-10.5-6 4.72-4.72a.75.75 0 0 1 1.28.53v15.88a.75.75 0 0 1-1.28.53l-4.72-4.72H4.51c-.88 0-1.704-.507-1.938-1.354A9.009 9.009 0 0 1 2.25 12c0-.83.112-1.633.322-2.396C2.806 8.756 3.63 8.25 4.51 8.25H6.75Z"}))}const _H=E.forwardRef(xO);function EO({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.568 3H5.25A2.25 2.25 0 0 0 3 5.25v4.318c0 .597.237 1.17.659 1.591l9.581 9.581c.699.699 1.78.872 2.607.33a18.095 18.095 0 0 0 5.223-5.223c.542-.827.369-1.908-.33-2.607L11.16 3.66A2.25 2.25 0 0 0 9.568 3Z"}),E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 6h.008v.008H6V6Z"}))}const SH=E.forwardRef(EO);function _O({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"}))}const OH=E.forwardRef(_O);function SO({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const PH=E.forwardRef(SO);function OO({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18 18.72a9.094 9.094 0 0 0 3.741-.479 3 3 0 0 0-4.682-2.72m.94 3.198.001.031c0 .225-.012.447-.037.666A11.944 11.944 0 0 1 12 21c-2.17 0-4.207-.576-5.963-1.584A6.062 6.062 0 0 1 6 18.719m12 0a5.971 5.971 0 0 0-.941-3.197m0 0A5.995 5.995 0 0 0 12 12.75a5.995 5.995 0 0 0-5.058 2.772m0 0a3 3 0 0 0-4.681 2.72 8.986 8.986 0 0 0 3.74.477m.94-3.197a5.971 5.971 0 0 0-.94 3.197M15 6.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm6 3a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0Zm-13.5 0a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0Z"}))}const CH=E.forwardRef(OO);function PO({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z"}))}const RH=E.forwardRef(PO);function CO({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m15.75 10.5 4.72-4.72a.75.75 0 0 1 1.28.53v11.38a.75.75 0 0 1-1.28.53l-4.72-4.72M4.5 18.75h9a2.25 2.25 0 0 0 2.25-2.25v-9a2.25 2.25 0 0 0-2.25-2.25h-9A2.25 2.25 0 0 0 2.25 7.5v9a2.25 2.25 0 0 0 2.25 2.25Z"}))}const kH=E.forwardRef(CO);function RO({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const TH=E.forwardRef(RO);function kO({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 
118 6M6 6l12 12"}))}const AH=E.forwardRef(kO);function da(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?da=function(t){return typeof t}:da=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},da(e)}var P0="clover",TO=function(t){return t===3?"v3":t},C0="https://js.stripe.com",AO="".concat(C0,"/").concat(P0,"/stripe.js"),LO=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,MO=/^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/;var IO=function(t){return LO.test(t)||MO.test(t)},DO=function(){for(var t=document.querySelectorAll('script[src^="'.concat(C0,'"]')),n=0;n<t.length;n++){var r=t[n];if(IO(r.src))return r}return null},Nh=function(t){var n="",r=document.createElement("script");r.src="".concat(AO).concat(n);var i=document.head||document.body;if(!i)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return i.appendChild(r),r},NO=function(t,n){!t||!t._registerWrapper||t._registerWrapper({name:"stripe-js",version:"8.8.0",startTime:n})},Ji=null,ks=null,Ts=null,jO=function(t){return function(n){t(new Error("Failed to load Stripe.js",{cause:n}))}},$O=function(t,n){return function(){window.Stripe?t(window.Stripe):n(new Error("Stripe.js not available"))}},FO=function(t){return Ji!==null?Ji:(Ji=new Promise(function(n,r){if(typeof window>"u"||typeof document>"u"){n(null);return}if(window.Stripe){n(window.Stripe);return}try{var i=DO();if(!(i&&t)){if(!i)i=Nh(t);else if(i&&Ts!==null&&ks!==null){var o;i.removeEventListener("load",Ts),i.removeEventListener("error",ks),(o=i.parentNode)===null||o===void 0||o.removeChild(i),i=Nh(t)}}Ts=$O(n,r),ks=jO(r),i.addEventListener("load",Ts),i.addEventListener("error",ks)}catch(s){r(s);return}}),Ji.catch(function(n){return Ji=null,Promise.reject(n)}))},BO=function(t,n,r){if(t===null)return null;var i=n[0];if(typeof i!="string")throw new Error("Expected publishable key to be of type string, got type ".concat(da(i)," instead."));var o=i.match(/^pk_test/),s=TO(t.version),a=P0;o&&s!==a&&console.warn("Stripe.js@".concat(s," was loaded on the page, but @stripe/stripe-js@").concat("8.8.0"," expected Stripe.js@").concat(a,". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));var l=t.apply(void 0,n);return NO(l,r),l},eo,R0=!1,k0=function(){return eo||(eo=FO(null).catch(function(t){return eo=null,Promise.reject(t)}),eo)};Promise.resolve().then(function(){return k0()}).catch(function(e){R0||console.warn(e)});var LH=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];R0=!0;var i=Date.now();return k0().then(function(o){return BO(o,n,i)})},Cc={exports:{}},Rc,jh;function VO(){if(jh)return Rc;jh=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Rc=e,Rc}var kc,$h;function HO(){if($h)return kc;$h=1;var e=VO();function t(){}function n(){}return n.resetWarningCache=t,kc=function(){function r(s,a,l,c,f,u){if(u!==e){var p=new 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 p.name="Invariant Violation",p}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},kc}var Fh;function Td(){return Fh||(Fh=1,Cc.exports=HO()()),Cc.exports}var zO=Td();const ge=ut(zO);function Bh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Vh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bh(Object(n),!0).forEach(function(r){T0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bh(Object(n)).forEac
vendor: 6,002 bytes, lines 1-2
1h(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pa(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?pa=function(t){return typeof t}:pa=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pa(e)}function T0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UO(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function WO(e,t){if(e==null)return{};var n=UO(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function A0(e,t){return qO(e)||YO(e,t)||KO(e,t)||XO()}function qO(e){if(Array.isArray(e))return e}function YO(e,t){var n=e&&(typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"]);if(n!=null){var r=[],i=!0,o=!1,s,a;try{for(n=n.call(e);!(i=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,a=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function KO(e,t){if(e){if(typeof e=="string")return Hh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hh(e,t)}}function Hh(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function XO(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var It=function(t,n,r){var i=!!r,o=Ae.useRef(r);Ae.useEffect(function(){o.current=r},[r]),Ae.useEffect(function(){if(!i||!t)return function(){};var s=function(){o.current&&o.current.apply(o,arguments)};return t.on(n,s),function(){t.off(n,s)}},[i,n,t,o])},hf=function(t){var n=Ae.useRef(t);return Ae.useEffect(function(){n.current=t},[t]),n.current},Pi=function(t){return t!==null&&pa(t)==="object"},GO=function(t){return Pi(t)&&typeof t.then=="function"},ZO=function(t){return Pi(t)&&typeof t.elements=="function"&&typeof t.createToken=="function"&&typeof t.createPaymentMethod=="function"&&typeof t.confirmCardPayment=="function"},zh="[object Object]",QO=function e(t,n){if(!Pi(t)||!Pi(n))return t===n;var r=Array.isArray(t),i=Array.isArray(n);if(r!==i)return!1;var o=Object.prototype.toString.call(t)===zh,s=Object.prototype.toString.call(n)===zh;if(o!==s)return!1;if(!o&&!r)return t===n;var a=Object.keys(t),l=Object.keys(n);if(a.length!==l.length)return!1;for(var c={},f=0;f<a.length;f+=1)c[a[f]]=!0;for(var u=0;u<l.length;u+=1)c[l[u]]=!0;var p=Object.keys(c);if(p.length!==a.length)return!1;var h=t,g=n,y=function(x){return e(h[x],g[x])};return p.every(y)},L0=function(t,n,r){return Pi(t)?Object.keys(t).reduce(function(i,o){var s=!Pi(n)||!QO(t[o],n[o]);return r.includes(o)?(s&&console.warn("Unsupported prop change: options.".concat(o," is not a mutable property.")),i):s?Vh(Vh({},i||{}),{},T0({},o,t[o])):i},null):null},M0="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",Uh=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:M0;if(t===null||ZO(t))return t;throw new Error(n)},JO=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:M0;if(GO(t))return{tag:"async",stripePromise:Promise.resolve(t).then(function(i){return Uh(i,n)})};var r=Uh(t,n);return r===null?{tag:"empty"}:{tag:"sync",stripe:r}},eP=function(t){!t||!t._registerWrapper||!t.registerAppInfo||(t._registerWrapper({name:"react-stripe-js",version:"5.6.0"}),t.registerAppInfo({name:"react-stripe-js",version:"5.6.0",url:"https://stripe.com/docs/stripe-js/react"}))},$l=Ae.createContext(null);$l.displayName="ElementsContext";var I0=function(t,n){if(!t)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(n," in an <Elements> provider."));return t},tP=function(t){var n=t.stripe,r=t.options,i=t.children,o=Ae.useMemo(function(){return JO(n)},[n]),s=Ae.useState(function(){return{stripe:o.tag==="sync"?o.stripe:null,elements:o.tag==="sync"?o.stripe.elements(r):null}}),a=A0(s,2),l=a[0],c=a[1];Ae.useEffect(function(){var p=!0,h=function(y){c(function(w){return w.stripe?w:{stripe:y,elements:y.elements(r)}})};return o.tag==="async"&&!l.stripe?o.stripePromise.then(function(g){g&&p&&h(g)}):o.tag==="sync"&&!l.stripe&&h(o.stripe),function(){p=!1}},[o,l,r]);var f=hf(n);Ae.useEffect(function(){f!==null&&f!==n&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")},[f,n]);var u=hf(r);return Ae.useEffect(function(){if(l.elements){var p=L0(r,u,["clientSecret","fonts"]);p&&l.elements.update(p)}},[r,u,l.elements]),Ae.useEffect(function(){eP(l.stripe)},[l.stripe]),Ae.createElement($l.Provider,{value:l},i)};tP.propTypes={stripe:ge.any,options:ge.object};var nP=function(t){var n=Ae.useContext($l);return I0(n,t)},MH=function(){var t=nP("calls useElements()"),n=t.elements;return n};ge.func.isRequired;var D0=Ae.createContext(null);D0.displayName="CheckoutContext";ge.any,ge.shape({clientSecret:ge.oneOfType([ge.string,ge.instanceOf(Promise)]).isRequired,elementsOptions:ge.object}).isRequired;var mf=function(t){var n=Ae.useContext(D0),r=Ae.useContext($l);if(n){if(r)throw new Error("You cannot wrap the part of your app that ".concat(t," in both <CheckoutProvider> and <Elements> providers."));return n}else return I0(r,t)},rP=["mode"],iP=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},Zt=function(t,n){var r="".concat(iP(t),"Element"),i=function(l){var c=l.id,f=l.className,u=l.options,p=u===void 0?{}
2:u,h=l.onBlur,g=l.onFocus,y=l.onReady,w=l.onChange,x=l.onEscape,b=l.onClick,m=l.onLoadError,d=l.onLoaderStart,v=l.onNetworksChange,_=l.onConfirm,O=l.onCancel,C=l.onShippingAddressChange,k=l.onShippingRateChange,A=l.onSavedPaymentMethodRemove,T=l.onSavedPaymentMethodUpdate,M=mf("mounts <".concat(r,">")),I="elements"in M?M.elements:null,P="checkoutState"in M?M.checkoutState:null,S=P?.type==="success"||P?.type==="loading"?P.sdk:null,R=Ae.useState(null),D=A0(R,2),L=D[0],N=D[1],$=Ae.useRef(null),B=Ae.useRef(null);It(L,"blur",h),It(L,"focus",g),It(L,"escape",x),It(L,"click",b),It(L,"loaderror",m),It(L,"loaderstart",d),It(L,"networkschange",v),It(L,"confirm",_),It(L,"cancel",O),It(L,"shippingaddresschange",C),It(L,"shippingratechange",k),It(L,"savedpaymentmethodremove",A),It(L,"savedpaymentmethodupdate",T),It(L,"change",w);var V;y&&(t==="expressCheckout"?V=y:V=function(){y(L)}),It(L,"ready",V),Ae.useLayoutEffect(function(){if($.current===null&&B.current!==null&&(I||S)){var F=null;if(S)switch(t){case"paymentForm":F=S.createPaymentFormElement(p);break;case"payment":F=S.createPaymentElement(p);break;case"address":if("mode"in p){var j=p.mode,H=WO(p,rP);if(j==="shipping")F=S.createShippingAddressElement(H);else if(j==="billing")F=S.createBillingAddressElement(H);else throw new Error("Invalid options.mode. mode must be 'billing' or 'shipping'.")}else throw new Error("You must supply options.mode. mode must be 'billing' or 'shipping'.");break;case"expressCheckout":F=S.createExpressCheckoutElement(p);break;case"currencySelector":F=S.createCurrencySelectorElement();break;case"taxId":F=S.createTaxIdElement(p);break;default:throw new Error("Invalid Element type ".concat(r,". You must use either the <PaymentElement />, <AddressElement options={{mode: 'shipping'}} />, <AddressElement options={{mode: 'billing'}} />, or <ExpressCheckoutElement />."))}else I&&(F=I.create(t,p));$.current=F,N(F),F&&F.mount(B.current)}},[I,S,p]);var W=hf(p);return Ae.useEffect(function(){if($.current){var F=L0(p,W,["paymentRequest"]);F&&"update"in $.current&&$.current.update(F)}},[p,W]),Ae.useLayoutEffect(function(){return function(){if($.current&&typeof $.current.destroy=="function")try{$.current.destroy(),$.current=null}catch{}}},[]),Ae.createElement("div",{id:c,className:f,ref:B})},o=function(l){mf("mounts <".concat(r,">"));var c=l.id,f=l.className;return Ae.createElement("div",{id:c,className:f})},s=n?o:i;return s.propTypes={id:ge.string,className:ge.string,onChange:ge.func,onBlur:ge.func,onFocus:ge.func,onReady:ge.func,onEscape:ge.func,onClick:ge.func,onLoadError:ge.func,onLoaderStart:ge.func,onNetworksChange:ge.func,onConfirm:ge.func,onCancel:ge.func,onShippingAddressChange:ge.func,onShippingRateChange:ge.func,onSavedPaymentMethodRemove:ge.func,onSavedPaymentMethodUpdate:ge.func,options:ge.object},s.displayName=r,s.__elementType=t,s},Qt=typeof window>"u",oP=Ae.createContext(null);oP.displayName="EmbeddedCheckoutProviderContext";var IH=function(){var t=mf("calls useStripe()"),n=t.stripe;return n};Zt("auBankAccount",Qt);Zt("card",Qt);Zt("cardNumber",Qt);Zt("cardExpiry",Qt);Zt("cardCvc",Qt);Zt("iban",Qt);var DH=Zt("payment",Qt);Zt("expressCheckout",Qt);Zt("paymentRequestButton",Qt);Zt("linkAuthentication",Qt);Zt("address",Qt);Zt("shippingAddress",Qt);Zt("paymentMethodMessaging",Qt);Zt("taxId",Qt);const Xn=Object.create(null);Xn.open="0";Xn.close="1";Xn.ping="2";Xn.pong="3";Xn.message="4";Xn.upgrade="5";Xn.noop="6";const ha=Object.create(null);Object.keys(Xn).forEach(e=>{ha[Xn[e]]=e});const gf={type:"error",data:"parser error"},N0=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",j0=typeof ArrayBuffer=="function",$0=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Ad=({type:e,data:t},n,r)=>N0&&t instanceof Blob?n?r(t):Wh(t,r):j0&&(t instanceof ArrayBuffer||$0(t))?n?r(t):Wh(new Blob([t]),r):r(Xn[e]+(t||"")),Wh=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function qh(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Tc;function sP(e,t){if(N0&&e.data instanceof Blob)return e.data.arrayBuffer().then(qh).then(t);if(j0&&(e.data instanceof ArrayBuffer||$0(e.data)))return t(qh(e.data));Ad(e,!1,n=>{Tc||(Tc=new TextEncoder),t(Tc.encode(n))})}const Yh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
2+/",vo=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<Yh.length;e++)vo[Yh.charCodeAt(e)]=e;const aP=e=>{let t=e.length*.75,n=e.length,r,i=0,o,s,a,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const c=new ArrayBuffer(t),f=new Uint8Array(c);for(r=0;r<n;r+=4)o=vo[e.charCodeAt(r)],s=vo[e.charCodeAt(r+1)],a=vo[e.charCodeAt(r+2)],l=vo[e.charCodeAt(r+3)],f[i++]=o<<2|s>>4,f[i++]=(s&15)<<4|a>>2,f[i++]=(a&3)<<6|l&63;return c},lP=typeof ArrayBuffer=="function",Ld=(e,t)=>{if(typeof e!="string")return{type:"message",data:F0(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:cP(e.substring(1),t)}:ha[n]?e.length>1?{type:ha[n],data:e.substring(1)}:{type:ha[n]}:gf},cP=(e,t)=>{if(lP){const n=aP(e);return F0(n,t)}else return{base64:!0,data:e}},F0=(e,t)=>t==="blob"?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,B0="�",uP=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((o,s)=>{Ad(o,!1,a=>{r[s]=a,++i===n&&t(r.join(B0))})})},fP=(e,t)=>{const n=e.split(B0),r=[];for(let i=0;i<n.length;i++){const o=Ld(n[i],t);if(r.push(o),o.type==="error")break}return r};function dP(){return new TransformStream({transform(e,t){sP(e,n=>{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const o=new DataView(i.buffer);o.setUint8(0,126),o.setUint16(1,r)}else{i=new Uint8Array(9);const o=new DataView(i.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}let Ac;function As(e){return e.reduce((t,n)=>t+n.length,0)}function Ls(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function pP(e,t){Ac||(Ac=new TextDecoder);const n=[];let r=0,i=-1,o=!1;return new TransformStream({transform(s,a){for(n.push(s);;){if(r===0){if(As(n)<1)break;const l=Ls(n,1);o=(l[0]&128)===128,i=l[0]&127,i<126?r=3:i===126?r=1:r=2}else if(r===1){if(As(n)<2)break;const l=Ls(n,2);i=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),r=3}else if(r===2){if(As(n)<8)break;const l=Ls(n,8),c=new DataView(l.buffer,l.byteOffset,l.length),f=c.getUint32(0);if(f>Math.pow(2,21)-1){a.enqueue(gf);break}i=f*Math.pow(2,32)+c.getUint32(4),r=3}else{if(As(n)<i)break;const l=Ls(n,i);a.enqueue(Ld(o?l:Ac.decode(l),t)),r=0}if(i===0||i>e){a.enqueue(gf);break}}}})}const V0=4;function gt(e){if(e)return hP(e)}function hP(e){for(var t in gt.prototype)e[t]=gt.prototype[t];return e}gt.prototype.on=gt.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};gt.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};gt.prototype.off=gt.prototype.removeListener=gt.prototype.removeAllListeners=gt.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===t||r.fn===t){n.splice(i,1);break}return n.length===0&&delete this._callbacks["$"+e],this};gt.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this};gt.prototype.emitReserved=gt.prototype.emit;gt.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};gt.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Fl=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),yn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),mP="arraybuffer";function H0(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const gP=yn.setTimeout,vP=yn.clearTimeout;function Bl(e,t){t.useNativeTimers?(e.setTimeoutFn=gP.bind(yn),e.clearTimeoutFn=vP.b
vendor: 6,929 bytes, line 2
2ind(yn)):(e.setTimeoutFn=yn.setTimeout.bind(yn),e.clearTimeoutFn=yn.clearTimeout.bind(yn))}const yP=1.33;function bP(e){return typeof e=="string"?wP(e):Math.ceil((e.byteLength||e.size)*yP)}function wP(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function z0(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function xP(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function EP(e){let t={},n=e.split("&");for(let r=0,i=n.length;r<i;r++){let o=n[r].split("=");t[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return t}class _P extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class Md extends gt{constructor(t){super(),this.writable=!1,Bl(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,r){return super.emitReserved("error",new _P(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=Ld(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=xP(t);return n.length?"?"+n:""}}class SP extends Md{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};fP(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,uP(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=z0()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let U0=!1;try{U0=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const OP=U0;function PP(){}class CP extends SP{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class Un extends gt{constructor(t,n,r){super(),this.createRequest=t,Bl(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var t;const n=H0(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=Un.requestsCount++,Un.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=PP,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Un.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Un.requestsCount=0;Un.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Kh);else if(typeof addEventListener=="function"){const e="onpagehide"in yn?"pagehide":"unload";addEventListener(e,Kh,!1)}}function Kh(){for(let e in Un.requests)Un.requests.hasOwnProperty(e)&&Un.requests[e].abort()}const RP=(function(){const e=W0({xdomain:!1});return e&&e.responseType!==null})();class kP extends CP{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=RP&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Un(W0,this.uri(),t)}}function W0(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||OP))return new XMLHttpRequest}catch{}if(!t)try{return new yn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const q0=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class TP extends Md{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=q0?{}:H0(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,r)}catch(i){return this.emitReserved("error",i)}
vendor: 15,989 bytes, line 2
2this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;Ad(r,this.supportsBinary,o=>{try{this.doWrite(r,o)}catch{}i&&Fl(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=z0()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const Lc=yn.WebSocket||yn.MozWebSocket;class AP extends TP{createSocket(t,n,r){return q0?new Lc(t,n,r):n?new Lc(t,n):new Lc(t)}doWrite(t,n){this.ws.send(n)}}class LP extends Md{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=pP(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),i=dP();i.readable.pipeTo(t.writable),this._writer=i.writable.getWriter();const o=()=>{r.read().then(({done:a,value:l})=>{a||(this.onPacket(l),o())}).catch(a=>{})};o();const s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this._writer.write(s).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;this._writer.write(r).then(()=>{i&&Fl(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const MP={websocket:AP,webtransport:LP,polling:kP},IP=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,DP=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function vf(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=IP.exec(e||""),o={},s=14;for(;s--;)o[DP[s]]=i[s]||"";return n!=-1&&r!=-1&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=NP(o,o.path),o.queryKey=jP(o,o.query),o}function NP(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function jP(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,o){i&&(n[i]=o)}),n}const yf=typeof addEventListener=="function"&&typeof removeEventListener=="function",ma=[];yf&&addEventListener("offline",()=>{ma.forEach(e=>e())},!1);class wr extends gt{constructor(t,n){if(super(),this.binaryType=mP,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const r=vf(t);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=vf(n.host).host);Bl(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{const i=r.prototype.name;this.transports.push(i),this._transportsByName[i]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=EP(this.opts.query)),yf&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},ma.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=V0,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&wr.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",wr.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const i=this.writeBuffer[r].data;if(i&&(n+=bP(i)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,Fl(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,r){return this._sendPacket("message",t,n,r),this}send(t,n,r){return this._sendPacket("message",t,n,r),this}_sendPacket(t,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const o={type:t,data:n,options:r};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}_onError(t){if(wr.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),yf&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=ma.indexOf(this._offlineEventListener);r!==-1&&ma.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}wr.protocol=V0;class $P extends wr{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),r=!1;wr.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",u=>{if(!r)if(u.type==="pong"&&u.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;wr.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(f(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const p=new Error("probe error");p.transport=n.name,this.emitReserved("upgradeError",p)}}))};function o(){r||(r=!0,f(),n.close(),n=null)}const s=u=>{const p=new Error("probe error: "+u);p.transport=n.name,o(),this.emitReserved("upgradeError",p)};function a(){s("transport closed")}function l(){s("socket closed")}function c(u){n&&u.name!==n.name&&o()}const f=()=>{n.removeListener("open",i),n.removeListener("error",s),n.removeListener("close",a),this.off("close",l),this.off("upgrading",c)};n.once("open",i),n.once("error",s),n.once("close",a),this.once("close",l),this.once("upgrading",c),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let r=0;r<t.length;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}}let FP=class extends $P{constructor(t,n={}){const r=typeof t=="object"?t:n;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(i=>MP[i]).filter(i=>!!i)),super(t,r)}};function BP(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=vf(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const o=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+o+":"+r.port+t,r.href=r.protocol+"://"+o+(n&&n.port===r.port?"":":"+r.port),r}const VP=typeof ArrayBuffer=="function",HP=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Y0=Object.prototype.toString,zP=typeof Blob=="function"||typeof Blob<"u"&&Y0.call(Blob)==="[object BlobConstructor]",UP=typeof File=="function"||typeof File<"u"&&Y0.call(File)==="[object FileConstructor]";function Id(e){return VP&&(e instanceof ArrayBuffer||HP(e))||zP&&e instanceof Blob||UP&&e instanceof File}function ga(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(ga(e[n]))return!0;return!1}if(Id(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return ga(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&ga(e[n]))return!0;return!1}function WP(e){const t=[],n=e.data,r=e;return r.data=bf(n,t),r.attachments=t.length,{packet:r,buffers:t}}function bf(e,t){if(!e)return e;if(Id(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=bf(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=bf(e[r],t));return n}return e}function qP(e,t){return e.data=wf(e.data,t),delete e.attachments,e}function wf(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=wf(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=wf(e[n],t));return e}const YP=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var Ne;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(Ne||(Ne={}));class KP{constructor(t){this.replacer=t}encode(t){return(t.type===Ne.EVENT||t.type===Ne.ACK)&&ga(t)?this.encodeAsBinary({type:t.type===Ne.EVENT?Ne.BINARY_EVENT:Ne.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===Ne.BINARY_EVENT||t.type===Ne.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=WP(t),r=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(r),i}}class Dd extends gt{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===Ne.BINARY_EVENT;r||n.type===Ne.BINARY_ACK?(n.type=r?Ne.EVENT:Ne.ACK,this.reconstructor=new XP(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(Id(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(Ne[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===Ne.BINARY_EVENT||r.type===Ne.BINARY_ACK){const o=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const s=t.substring(o,n);if(s!=Number(s)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(s)}if(t.charAt(n+1)==="/"){const o=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(o,n)}else r.nsp="/";const i=t.charAt(n+1);if(i!==""&&Number(i)==i){const o=n+1;for(;++n;){const s=t.charAt(n);if(s==null||Number(s)!=s){--n;break}if(n===t.length)break}r.id=Number(t.substring(o,n+1))}
vendor: 4,501 bytes, line 2
2if(t.charAt(++n)){const o=this.tryParse(t.substr(n));if(Dd.isPayloadValid(r.type,o))r.data=o;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case Ne.CONNECT:return Xh(n);case Ne.DISCONNECT:return n===void 0;case Ne.CONNECT_ERROR:return typeof n=="string"||Xh(n);case Ne.EVENT:case Ne.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&YP.indexOf(n[0])===-1);case Ne.ACK:case Ne.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class XP{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=qP(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function Xh(e){return Object.prototype.toString.call(e)==="[object Object]"}const GP=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Dd,Encoder:KP,get PacketType(){return Ne}},Symbol.toStringTag,{value:"Module"}));function On(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const ZP=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class K0 extends gt{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[On(t,"open",this.onopen.bind(this)),On(t,"packet",this.onpacket.bind(this)),On(t,"error",this.onerror.bind(this)),On(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var r,i,o;if(ZP.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const s={type:Ne.EVENT,data:n};if(s.options={},s.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const f=this.ids++,u=n.pop();this._registerAckCallback(f,u),s.id=f}const a=(i=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||i===void 0?void 0:i.writable,l=this.connected&&!(!((o=this.io.engine)===null||o===void 0)&&o._hasPingExpired());return this.flags.volatile&&!a||(l?(this.notifyOutgoingListeners(s),this.packet(s)):this.sendBuffer.push(s)),this.flags={},this}_registerAckCallback(t,n){var r;const i=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(i===void 0){this.acks[t]=n;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===t&&this.sendBuffer.splice(a,1);n.call(this,new Error("operation has timed out"))},i),s=(...a)=>{this.io.clearTimeoutFn(o),n.apply(this,a)};s.withError=!0,this.acks[t]=s}emitWithAck(t,...n){return new Promise((r,i)=>{const o=(s,a)=>s?i(s):r(a);o.withError=!0,n.push(o),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...o)=>(this._queue[0],i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Ne.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}
vendor: 7,087 bytes, line 2
2_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Ne.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ne.EVENT:case Ne.BINARY_EVENT:this.onevent(t);break;case Ne.ACK:case Ne.BINARY_ACK:this.onack(t);break;case Ne.DISCONNECT:this.ondisconnect();break;case Ne.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:Ne.ACK,id:t,data:i}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ne.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function Ui(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Ui.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0};Ui.prototype.reset=function(){this.attempts=0};Ui.prototype.setMin=function(e){this.ms=e};Ui.prototype.setMax=function(e){this.max=e};Ui.prototype.setJitter=function(e){this.jitter=e};class xf extends gt{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Bl(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Ui({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const i=n.parser||GP;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new FP(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=On(n,"open",function(){r.onopen(),t&&t()}),o=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),t?t(a):this.maybeReconnectOnOpen()},s=On(n,"error",o);if(this._timeout!==!1){const a=this._timeout,l=this.setTimeoutFn(()=>{i(),o(new Error("timeout")),n.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(i),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(On(t,"ping",this.onping.bind(this)),On(t,"data",this.ondata.bind(this)),On(t,"error",this.onerror.bind(this)),On(t,"close",this.onclose.bind(this)),On(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){Fl(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new K0(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}
vendor: 4,570 bytes, line 2
2cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const to={};function Mc(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=BP(e,t.path||"/socket.io"),r=n.source,i=n.id,o=n.path,s=to[i]&&o in to[i].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let l;return a?l=new xf(r,t):(to[i]||(to[i]=new xf(r,t)),l=to[i]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}Object.assign(Mc,{Manager:xf,Socket:K0,io:Mc,connect:Mc});function X0(e,t){return function(){return e.apply(t,arguments)}}const{toString:QP}=Object.prototype,{getPrototypeOf:Nd}=Object,{iterator:Vl,toStringTag:G0}=Symbol,Hl=(e=>t=>{const n=QP.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),In=e=>(e=e.toLowerCase(),t=>Hl(t)===e),zl=e=>t=>typeof t===e,{isArray:Wi}=Array,Ci=zl("undefined");function es(e){return e!==null&&!Ci(e)&&e.constructor!==null&&!Ci(e.constructor)&&Wt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Z0=In("ArrayBuffer");function JP(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Z0(e.buffer),t}const eC=zl("string"),Wt=zl("function"),Q0=zl("number"),ts=e=>e!==null&&typeof e=="object",tC=e=>e===!0||e===!1,va=e=>{if(Hl(e)!=="object")return!1;const t=Nd(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(G0 in e)&&!(Vl in e)},nC=e=>{if(!ts(e)||es(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},rC=In("Date"),iC=In("File"),oC=e=>!!(e&&typeof e.uri<"u"),sC=e=>e&&typeof e.getParts<"u",aC=In("Blob"),lC=In("FileList"),cC=e=>ts(e)&&Wt(e.pipe);function uC(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Gh=uC(),Zh=typeof Gh.FormData<"u"?Gh.FormData:void 0,fC=e=>{let t;return e&&(Zh&&e instanceof Zh||Wt(e.append)&&((t=Hl(e))==="formdata"||t==="object"&&Wt(e.toString)&&e.toString()==="[object FormData]"))},dC=In("URLSearchParams"),[pC,hC,mC,gC]=["ReadableStream","Request","Response","Headers"].map(In),vC=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ns(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Wi(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(es(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let a;for(r=0;r<s;r++)a=o[r],t.call(null,e[a],a,e)}}function J0(e,t){if(es(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Ir=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,eb=e=>!Ci(e)&&e!==Ir;function Ef(){const{caseless:e,skipUndefined:t}=eb(this)&&this||{},n={},r=(i,o)=>{if(o==="__proto__"||o==="constructor"||o==="prototype")return;const s=e&&J0(n,o)||o;va(n[s])&&va(i)?n[s]=Ef(n[s],i):va(i)?n[s]=Ef({},i):Wi(i)?n[s]=i.slice():(!t||!Ci(i))&&(n[s]=i)};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&ns(arguments[i],r);return n}const yC=(e,t,n,{allOwnKeys:r}={})=>(ns(t,(i,o)=>{n&&Wt(i)?Object.defineProperty(e,o,{value:X0(i,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),bC=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),wC=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,
vendor: 9,133 bytes, line 2
2configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},xC=(e,t,n,r)=>{let i,o,s;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&Nd(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},EC=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},_C=e=>{if(!e)return null;if(Wi(e))return e;let t=e.length;if(!Q0(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},SC=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Nd(Uint8Array)),OC=(e,t)=>{const r=(e&&e[Vl]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},PC=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},CC=In("HTMLFormElement"),RC=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Qh=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),kC=In("RegExp"),tb=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ns(n,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(r[o]=s||i)}),Object.defineProperties(e,r)},TC=e=>{tb(e,(t,n)=>{if(Wt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Wt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},AC=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return Wi(e)?r(e):r(String(e).split(t)),n},LC=()=>{},MC=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function IC(e){return!!(e&&Wt(e.append)&&e[G0]==="FormData"&&e[Vl])}const DC=e=>{const t=new Array(10),n=(r,i)=>{if(ts(r)){if(t.indexOf(r)>=0)return;if(es(r))return r;if(!("toJSON"in r)){t[i]=r;const o=Wi(r)?[]:{};return ns(r,(s,a)=>{const l=n(s,i+1);!Ci(l)&&(o[a]=l)}),t[i]=void 0,o}}return r};return n(e,0)},NC=In("AsyncFunction"),jC=e=>e&&(ts(e)||Wt(e))&&Wt(e.then)&&Wt(e.catch),nb=((e,t)=>e?setImmediate:t?((n,r)=>(Ir.addEventListener("message",({source:i,data:o})=>{i===Ir&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Ir.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Wt(Ir.postMessage)),$C=typeof queueMicrotask<"u"?queueMicrotask.bind(Ir):typeof process<"u"&&process.nextTick||nb,FC=e=>e!=null&&Wt(e[Vl]),K={isArray:Wi,isArrayBuffer:Z0,isBuffer:es,isFormData:fC,isArrayBufferView:JP,isString:eC,isNumber:Q0,isBoolean:tC,isObject:ts,isPlainObject:va,isEmptyObject:nC,isReadableStream:pC,isRequest:hC,isResponse:mC,isHeaders:gC,isUndefined:Ci,isDate:rC,isFile:iC,isReactNativeBlob:oC,isReactNative:sC,isBlob:aC,isRegExp:kC,isFunction:Wt,isStream:cC,isURLSearchParams:dC,isTypedArray:SC,isFileList:lC,forEach:ns,merge:Ef,extend:yC,trim:vC,stripBOM:bC,inherits:wC,toFlatObject:xC,kindOf:Hl,kindOfTest:In,endsWith:EC,toArray:_C,forEachEntry:OC,matchAll:PC,isHTMLForm:CC,hasOwnProperty:Qh,hasOwnProp:Qh,reduceDescriptors:tb,freezeMethods:TC,toObjectSet:AC,toCamelCase:RC,noop:LC,toFiniteNumber:MC,findKey:J0,global:Ir,isContextDefined:eb,isSpecCompliantForm:IC,toJSONObject:DC,isAsyncFn:NC,isThenable:jC,setImmediate:nb,asap:$C,isIterable:FC};let Se=class rb extends Error{static from(t,n,r,i,o,s){const a=new rb(t.message,n||t.code,r,i,o);return a.cause=t,a.name=t.name,t.status!=null&&a.status==null&&(a.status=t.status),s&&Object.assign(a,s),a}constructor(t,n,r,i,o){super(t),Object.defineProperty(this,"message",{value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),i&&(this.request=i),o&&(this.response=o,this.status=o.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:K.toJSONObject(this.config),code:this.code,status:this.status}}};Se.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Se.ERR_BAD_OPTION="ERR_BAD_OPTION";Se.ECONNABORTED="ECONNABORTED";Se.ETIMEDOUT="ETIMEDOUT";Se.ERR_NETWORK="ERR_NETWORK";Se.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Se.ERR_DEPRECATED="ERR_DEPRECATED";Se.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Se.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Se.ERR_CANCELED="ERR_CANCELED";Se.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Se.ERR_INVALID_URL="ERR_INVALID_URL";const BC=null;function _f(e){return K.isPlainObject(e)||K.isArray(e)}function ib(e){return K.endsWith(e,"[]")?e.slice(0,-2):e}function Ic(e,t,n){return e?e.concat(t).map(function(i,o){return i=ib(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function VC(e){return K.isArray(e)&&!e.some(_f)}const HC=K.toFlatObject(K,{},null,function(t){return/^is[A-Z]/.test(t)});function Ul(e,t,n){if(!K.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=K.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,w){return!K.isUndefined(w[y])});const r=n.metaTokens,i=n.visitor||f,o=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&K.isSpecCompliantForm(t);if(!K.isFunction(i))throw new TypeError("visitor must be a function");function c(g){if(g===null)return"";if(K.isDate(g))return g.toISOString();if(K.isBoolean(g))return g.toString();if(!l&&K.isBlob(g))throw new Se("Blob is not supported. Use a Buffer instead.");return K.isArrayBuffer(g)||K.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function f(g,y,w){let x=g;if(K.isReactNative(t)&&K.isReactNativeBlob(g))return t.append(Ic(w,y,o),c(g)),!1;if(g&&!w&&typeof g=="object"){if(K.endsWith(y,"{}"))y=r?y:y.slice(0,-2),g=JSON.stringify(g);else if(K.isArray(g)&&VC(g)||(K.isFileList(g)||K.endsWith(y,"[]"))&&(x=K.toArray(g)))return y=ib(y),x.forEach(function(m,d){!(K.isUndefined(m)||m===null)&&t.append(s===!0?Ic([y],d,o):s===null?y:y+"[]",c(m))}),!1}return _f(g)?!0:(t.append(Ic(w,y,o),c(g)),!1)}const u=[],p=Object.assign(HC,{defaultVisitor:f,convertValue:c,isVisitable:_f});function h(g,y){if(!K.isUndefined(g)){if(u.indexOf(g)!==-1)throw Error("Circular reference detected in "+y.join("."));u.push(g),K.forEach(g,function(x,b){(!(K.isUndefined(x)||x===null)&&i.call(t,x,K.isString(b)?b.trim():b,y,p))===!0&&h(x,y?y.concat(b):[b])}),u.pop()}}if(!K.isObject(e))throw new TypeError("data must be an object");return h(e),t}function Jh(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function jd(e,t){this._pairs=[],e&&Ul(e,this,t)}const ob=jd.prototype;ob.append=function(t,n){this._pairs.push([t,n])};ob.toString=function(t){const n=t?function(r){return t.call(this,r,Jh)}:Jh;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function zC(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function sb(e,t,n){if(!t)return e;const r=n&&n.encode||zC,i=K.isFunction(n)?{serialize:n}:n,o=i&&i.serialize;let s;if(o?s=o(t,i):s=K.isURLSearchParams(t)?t.toString():new jd(t,i).toString(r),s){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class em{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){K.forEach(this.handlers,function(r){r!==null&&t(r)})}}const $d={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},UC=typeof URLSearchParams<"u"?URLSearchParams:jd,WC=typeof FormData<"u"?FormData:null,qC=typeof Blob<"u"?Blob:null,YC={isBrowser:!0,classes:{URLSearchParams:UC,FormData:WC,Blob:qC},protocols:["http","https","file","blob","url","data"]},Fd=typeof window<"u"&&typeof document<"u",Sf=typeof navigator=="object"&&navigator||void 0,KC=Fd&&(!Sf||["ReactNative","NativeScript","NS"].indexOf(Sf.product)<0),XC=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",GC=Fd&&window.location.href||"http://localhost",ZC=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Fd,hasStandardBrowserEnv:KC,hasStandardBrowserWebWorkerEnv:XC,navigator:Sf,origin:GC},Symbol.toStringTag,{value:"Module"})),kt={...ZC,...YC};function QC(e,t){return Ul(e,new kt.classes.URLSearchParams,{visitor:function(n,r,i,o){return kt.isNode&&K.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function JC(e){return K.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function eR(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function ab(e){function t(n,r,i,o){let s=n[o++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),l=o>=n.length;return s=!s&&K.isArray(i)?i.length:s,l?(K.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!a):((!i[s]||!K.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],o)&&K.isArray(i[s])&&(i[s]=eR(i[s])),!a)}if(K.isFormData(e)&&K.isFunction(e.entries)){const n={};
vendor: 4,533 bytes, lines 2-3
2return K.forEachEntry(e,(r,i)=>{t(JC(r),i,n,0)}),n}return null}function tR(e,t,n){if(K.isString(e))try{return(t||JSON.parse)(e),K.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const rs={transitional:$d,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=K.isObject(t);if(o&&K.isHTMLForm(t)&&(t=new FormData(t)),K.isFormData(t))return i?JSON.stringify(ab(t)):t;if(K.isArrayBuffer(t)||K.isBuffer(t)||K.isStream(t)||K.isFile(t)||K.isBlob(t)||K.isReadableStream(t))return t;if(K.isArrayBufferView(t))return t.buffer;if(K.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return QC(t,this.formSerializer).toString();if((a=K.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Ul(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),tR(t)):t}],transformResponse:[function(t){const n=this.transitional||rs.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(K.isResponse(t)||K.isReadableStream(t))return t;if(t&&K.isString(t)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(a){if(s)throw a.name==="SyntaxError"?Se.from(a,Se.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:kt.classes.FormData,Blob:kt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};K.forEach(["delete","get","head","post","put","patch"],e=>{rs.headers[e]={}});const nR=K.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),rR=e=>{const t={};let n,r,i;return e&&e.split(`
3`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&nR[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},tm=Symbol("internals");function no(e){return e&&String(e).trim().toLowerCase()}function ya(e){return e===!1||e==null?e:K.isArray(e)?e.map(ya):String(e)}function iR(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const oR=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Dc(e,t,n,r,i){if(K.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!K.isString(t)){if(K.isString(r))return t.indexOf(r)!==-1;if(K.isRegExp(r))return r.test(t)}}function sR(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function aR(e,t){const n=K.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,s){return this[r].call(this,t,i,o,s)},configurable:!0})})}let qt=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(a,l,c){const f=no(l);if(!f)throw new Error("header name must be a non-empty string");const u=K.findKey(i,f);(!u||i[u]===void 0||c===!0||c===void 0&&i[u]!==!1)&&(i[u||l]=ya(a))}const s=(a,l)=>K.forEach(a,(c,f)=>o(c,f,l));if(K.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(K.isString(t)&&(t=t.trim())&&!oR(t))s(rR(t),n);else if(K.isObject(t)&&K.isIterable(t)){let a={},l,c;for(const f of t){if(!K.isArray(f))throw TypeError("Object iterator must return a key-value pair");a[c=f[0]]=(l=a[c])?K.isArray(l)?[...l,f[1]]:[l,f[1]]:f[1]}s(a,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=no(t),t){const r=K.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return iR(i);if(K.isFunction(n))return n.call(this,i,r);if(K.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=no(t),t){const r=K.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Dc(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(s){if(s=no(s),s){const a=K.findKey(r,s);a&&(!n||Dc(r,r[a],a,n))&&(delete r[a],i=!0)}}return K.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||Dc(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};
vendor: 7,180 bytes, lines 3-4
3return K.forEach(this,(i,o)=>{const s=K.findKey(r,o);if(s){n[s]=ya(i),delete n[o];return}const a=t?sR(o):String(o).trim();a!==o&&delete n[o],n[a]=ya(i),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return K.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&K.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
4`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[tm]=this[tm]={accessors:{}}).accessors,i=this.prototype;function o(s){const a=no(s);r[a]||(aR(i,s),r[a]=!0)}return K.isArray(t)?t.forEach(o):o(t),this}};qt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);K.reduceDescriptors(qt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});K.freezeMethods(qt);function Nc(e,t){const n=this||rs,r=t||n,i=qt.from(r.headers);let o=r.data;return K.forEach(e,function(a){o=a.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function lb(e){return!!(e&&e.__CANCEL__)}let is=class extends Se{constructor(t,n,r){super(t??"canceled",Se.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function cb(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Se("Request failed with status code "+n.status,[Se.ERR_BAD_REQUEST,Se.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function lR(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function cR(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),f=r[o];s||(s=c),n[i]=l,r[i]=c;let u=o,p=0;for(;u!==i;)p+=n[u++],u=u%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-s<t)return;const h=f&&c-f;return h?Math.round(p*1e3/h):void 0}}function uR(e,t){let n=0,r=1e3/t,i,o;const s=(c,f=Date.now())=>{n=f,i=null,o&&(clearTimeout(o),o=null),e(...c)};return[(...c)=>{const f=Date.now(),u=f-n;u>=r?s(c,f):(i=c,o||(o=setTimeout(()=>{o=null,s(i)},r-u)))},()=>i&&s(i)]}const Xa=(e,t,n=3)=>{let r=0;const i=cR(50,250);return uR(o=>{const s=o.loaded,a=o.lengthComputable?o.total:void 0,l=s-r,c=i(l),f=s<=a;r=s;const u={loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&f?(a-s)/c:void 0,event:o,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(u)},n)},nm=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},rm=e=>(...t)=>K.asap(()=>e(...t)),fR=kt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,kt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(kt.origin),kt.navigator&&/(msie|trident)/i.test(kt.navigator.userAgent)):()=>!0,dR=kt.hasStandardBrowserEnv?{write(e,t,n,r,i,o,s){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];K.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),K.isString(r)&&a.push(`path=${r}`),K.isString(i)&&a.push(`domain=${i}`),o===!0&&a.push("secure"),K.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function pR(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function hR(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ub(e,t,n){let r=!pR(t);return e&&(r||n==!1)?hR(e,t):t}const im=e=>e instanceof qt?{...e}:e;function Yr(e,t){t=t||{};const n={};function r(c,f,u,p){return K.isPlainObject(c)&&K.isPlainObject(f)?K.merge.call({caseless:p},c,f):K.isPlainObject(f)?K.merge({},f):K.isArray(f)?f.slice():f}function i(c,f,u,p){if(K.isUndefined(f)){if(!K.isUndefined(c))return r(void 0,c,u,p)}else return r(c,f,u,p)}function o(c,f){if(!K.isUndefined(f))return r(void 0,f)}function s(c,f){if(K.isUndefined(f)){if(!K.isUndefined(c))return r(void 0,c)}else return r(void 0,f)}function a(c,f,u){if(u in t)return r(c,f);if(u in e)return r(void 0,c)}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(c,f,u)=>i(im(c),im(f),u,!0)};return K.forEach(Object.keys({...e,...t}),function(f){if(f==="__proto__"||f==="constructor"||f==="prototype")return;const u=K.hasOwnProp(l,f)?l[f]:i,p=u(e[f],t[f],f);K.isUndefined(p)&&u!==a||(n[f]=p)}),n}const fb=e=>{const t=Yr({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:s,auth:a}=t;if(t.headers=s=qt.from(s),t.url=sb(ub(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),K.isFormData(n)){if(kt.hasStandardBrowserEnv||kt.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(K.isFunction(n.getHeaders)){const l=n.getHeaders(),c=["content-type","content-length"];Object.entries(l).forEach(([f,u])=>{c.includes(f.toLowerCase())&&s.set(f,u)})}}if(kt.hasStandardBrowserEnv&&(r&&K.isFunction(r)&&(r=r(t)),r||r!==!1&&fR(t.url))){const l=i&&o&&dR.read(o);l&&s.set(i,l)}return t},mR=typeof XMLHttpRequest<"u",gR=mR&&function(e){return new Promise(function(n,r){const i=fb(e);let o=i.data;const s=qt.from(i.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=i,f,u,p,h,g;function y(){h&&h(),g&&g(),i.cancelToken&&i.cancelToken.unsubscribe(f),i.signal&&i.signal.removeEventListener("abort",f)}let w=new XMLHttpRequest;w.open(i.method.toUpperCase(),i.url,!0),w.timeout=i.timeout;function x(){if(!w)return;const m=qt.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),v={data:!a||a==="text"||a==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:m,config:e,request:w};cb(function(O){n(O),y()},function(O){r(O),y()},v),w=null}"onloadend"in w?w.onloadend=x:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(x)},w.onabort=function(){w&&(r(new Se("Request aborted",Se.ECONNABORTED,e,w)),w=null)},w.onerror=function(d){const v=d&&d.message?d.message:"Network Error",_=new Se(v,Se.ERR_NETWORK,e,w);_.event=d||null,r(_),w=null},w.ontimeout=function(){let d=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const v=i.transitional||$d;i.timeoutErrorMessage&&(d=i.timeoutErrorMessage),r(new Se(d,v.clarifyTimeoutError?Se.ETIMEDOUT:Se.ECONNABORTED,e,w)),w=null},o===void 0&&s.setContentType(null),"setRequestHeader"in w&&K.forEac
vendor: 9,704 bytes, lines 4-7
4h(s.toJSON(),function(d,v){w.setRequestHeader(v,d)}),K.isUndefined(i.withCredentials)||(w.withCredentials=!!i.withCredentials),a&&a!=="json"&&(w.responseType=i.responseType),c&&([p,g]=Xa(c,!0),w.addEventListener("progress",p)),l&&w.upload&&([u,h]=Xa(l),w.upload.addEventListener("progress",u),w.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(f=m=>{w&&(r(!m||m.type?new is(null,e,w):m),w.abort(),w=null)},i.cancelToken&&i.cancelToken.subscribe(f),i.signal&&(i.signal.aborted?f():i.signal.addEventListener("abort",f)));const b=lR(i.url);if(b&&kt.protocols.indexOf(b)===-1){r(new Se("Unsupported protocol "+b+":",Se.ERR_BAD_REQUEST,e));return}w.send(o||null)})},vR=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const o=function(c){if(!i){i=!0,a();const f=c instanceof Error?c:this.reason;r.abort(f instanceof Se?f:new is(f instanceof Error?f.message:f))}};let s=t&&setTimeout(()=>{s=null,o(new Se(`timeout of ${t}ms exceeded`,Se.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=()=>K.asap(a),l}},yR=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},bR=async function*(e,t){for await(const n of wR(e))yield*yR(n,t)},wR=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},om=(e,t,n,r)=>{const i=bR(e,t);let o=0,s,a=l=>{s||(s=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:f}=await i.next();if(c){a(),l.close();return}let u=f.byteLength;if(n){let p=o+=u;n(p)}l.enqueue(new Uint8Array(f))}catch(c){throw a(c),c}},cancel(l){return a(l),i.return()}},{highWaterMark:2})},sm=64*1024,{isFunction:Ms}=K,xR=(({Request:e,Response:t})=>({Request:e,Response:t}))(K.global),{ReadableStream:am,TextEncoder:lm}=K.global,cm=(e,...t)=>{try{return!!e(...t)}catch{return!1}},ER=e=>{e=K.merge.call({skipUndefined:!0},xR,e);const{fetch:t,Request:n,Response:r}=e,i=t?Ms(t):typeof fetch=="function",o=Ms(n),s=Ms(r);if(!i)return!1;const a=i&&Ms(am),l=i&&(typeof lm=="function"?(g=>y=>g.encode(y))(new lm):async g=>new Uint8Array(await new n(g).arrayBuffer())),c=o&&a&&cm(()=>{let g=!1;const y=new n(kt.origin,{body:new am,method:"POST",get duplex(){return g=!0,"half"}}).headers.has("Content-Type");return g&&!y}),f=s&&a&&cm(()=>K.isReadableStream(new r("").body)),u={stream:f&&(g=>g.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!u[g]&&(u[g]=(y,w)=>{let x=y&&y[g];if(x)return x.call(y);throw new Se(`Response type '${g}' is not supported`,Se.ERR_NOT_SUPPORT,w)})});const p=async g=>{if(g==null)return 0;if(K.isBlob(g))return g.size;if(K.isSpecCompliantForm(g))return(await new n(kt.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(K.isArrayBufferView(g)||K.isArrayBuffer(g))return g.byteLength;if(K.isURLSearchParams(g)&&(g=g+""),K.isString(g))return(await l(g)).byteLength},h=async(g,y)=>{const w=K.toFiniteNumber(g.getContentLength());return w??p(y)};return async g=>{let{url:y,method:w,data:x,signal:b,cancelToken:m,timeout:d,onDownloadProgress:v,onUploadProgress:_,responseType:O,headers:C,withCredentials:k="same-origin",fetchOptions:A}=fb(g),T=t||fetch;O=O?(O+"").toLowerCase():"text";let M=vR([b,m&&m.toAbortSignal()],d),I=null;const P=M&&M.unsubscribe&&(()=>{M.unsubscribe()});let S;try{if(_&&c&&w!=="get"&&w!=="head"&&(S=await h(C,x))!==0){let B=new n(y,{method:"POST",body:x,duplex:"half"}),V;if(K.isFormData(x)&&(V=B.headers.get("content-type"))&&C.setContentType(V),B.body){const[W,F]=nm(S,Xa(rm(_)));x=om(B.body,sm,W,F)}}K.isString(k)||(k=k?"include":"omit");const R=o&&"credentials"in n.prototype,D={...A,signal:M,method:w.toUpperCase(),headers:C.normalize().toJSON(),body:x,duplex:"half",credentials:R?k:void 0};I=o&&new n(y,D);let L=await(o?T(I,A):T(y,D));const N=f&&(O==="stream"||O==="response");if(f&&(v||N&&P)){const B={};["status","statusText","headers"].forEach(j=>{B[j]=L[j]});const V=K.toFiniteNumber(L.headers.get("content-length")),[W,F]=v&&nm(V,Xa(rm(v),!0))||[];L=new r(om(L.body,sm,W,()=>{F&&F(),P&&P()}),B)}O=O||"text";let $=await u[K.findKey(u,O)||"text"](L,g);return!N&&P&&P(),await new Promise((B,V)=>{cb(B,V,{data:$,headers:qt.from(L.headers),status:L.status,statusText:L.statusText,config:g,request:I})})}catch(R){throw P&&P(),R&&R.name==="TypeError"&&/Load failed|fetch/i.test(R.message)?Object.assign(new Se("Network Error",Se.ERR_NETWORK,g,I,R&&R.response),{cause:R.cause||R}):Se.from(R,R&&R.code,g,I,R&&R.response)}}},_R=new Map,db=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,o=[r,i,n];let s=o.length,a=s,l,c,f=_R;for(;a--;)l=o[a],c=f.get(l),c===void 0&&f.set(l,c=a?new Map:ER(t)),f=c;return c};db();const Bd={http:BC,xhr:gR,fetch:{get:db}};K.forEach(Bd,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const um=e=>`- ${e}`,SR=e=>K.isFunction(e)||e===null||e===!1;function OR(e,t){e=K.isArray(e)?e:[e];const{length:n}=e;let r,i;const o={};for(let s=0;s<n;s++){r=e[s];let a;if(i=r,!SR(r)&&(i=Bd[(a=String(r)).toLowerCase()],i===void 0))throw new Se(`Unknown adapter '${a}'`);if(i&&(K.isFunction(i)||(i=i.get(t))))break;o[a||"#"+s]=i}if(!i){const s=Object.entries(o).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=n?s.length>1?`since :
5`+s.map(um).join(`
6`):" "+um(s[0]):"as no adapter specified";throw new Se("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return i}const pb={getAdapter:OR,adapters:Bd};function jc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new is(null,e)}function fm(e){return jc(e),e.headers=qt.from(e.headers),e.data=Nc.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),pb.getAdapter(e.adapter||rs.adapter,e)(e).then(function(r){return jc(e),r.data=Nc.call(e,e.transformResponse,r),r.headers=qt.from(r.headers),r},function(r){return lb(r)||(jc(e),r&&r.response&&(r.response.data=Nc.call(e,e.transformResponse,r.response),r.response.headers=qt.from(r.response.headers))),Promise.reject(r)})}const hb="1.13.6",Wl={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Wl[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const dm={};Wl.transitional=function(t,n,r){function i(o,s){return"[Axios v"+hb+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,a)=>{if(t===!1)throw new Se(i(s," has been removed"+(n?" in "+n:"")),Se.ERR_DEPRECATED);return n&&!dm[s]&&(dm[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,s,a):!0}};Wl.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function PR(e,t,n){if(typeof e!="object")throw new Se("options must be an object",Se.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],s=t[o];if(s){const a=e[o],l=a===void 0||s(a,o,e);if(l!==!0)throw new Se("option "+o+" must be "+l,Se.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Se("Unknown option "+o,Se.ERR_BAD_OPTION)}}const ba={assertOptions:PR,validators:Wl},hn=ba.validators;let $r=class{constructor(t){this.defaults=t||{},this.interceptors={request:new em,response:new em}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
7`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Yr(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&ba.assertOptions(r,{silentJSONParsing:hn.transitional(hn.boolean),forcedJSONParsing:hn.transitional(hn.boolean),clarifyTimeoutError:hn.transitional(hn.boolean),legacyInterceptorReqResOrdering:hn.transitional(hn.boolean)},!1),i!=null&&(K.isFunction(i)?n.paramsSerializer={serialize:i}:ba.assertOptions(i,{encode:hn.function,serialize:hn.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),ba.assertOptions(n,{baseUrl:hn.spelling("baseURL"),withXsrfToken:hn.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&K.merge(o.common,o[n.method]);o&&K.forEach(["delete","get","head","post","put","patch","common"],g=>{delete o[g]}),n.headers=qt.concat(s,o);const a=[];let l=!0;this.interceptors.request.forEach(function(y){if(typeof y.runWhen=="function"&&y.runWhen(n)===!1)return;l=l&&y.synchronous;const w=n.transitional||$d;w&&w.legacyInterceptorReqResOrdering?a.unshift(y.fulfilled,y.rejected):a.push(y.fulfilled,y.rejected)});const c=[];this.interceptors.response.forEach(function(y){c.push(y.fulfilled,y.rejected)});let f,u=0,p;if(!l){const g=[fm.bind(this),void 0];for(g.unshift(...a),g.push(...c),p=g.length,f=Promise.resolve(n);u<p;)f=f.then(g[u++],g[u++]);return f}p=a.length;let h=n;for(;u<p;){const g=a[u++],y=a[u++];try{h=g(h)}catch(w){y.call(this,w);break}}try{f=fm.call(this,h)}catch(g){return Promise.reject(g)}for(u=0,p=c.length;u<p;)f=f.then(c[u++],c[u++]);return f}getUri(t){t=Yr(this.defaults,t);const n=ub(t.baseURL,t.url,t.allowAbsoluteUrls);return sb(n,t.params,t.paramsSerializer)}};
vendor: 1,665 bytes, line 7
7K.forEach(["delete","get","head","options"],function(t){$r.prototype[t]=function(n,r){return this.request(Yr(r||{},{method:t,url:n,data:(r||{}).data}))}});K.forEach(["post","put","patch"],function(t){function n(r){return function(o,s,a){return this.request(Yr(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}$r.prototype[t]=n(),$r.prototype[t+"Form"]=n(!0)});let CR=class mb{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(a=>{r.subscribe(a),o=a}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},t(function(o,s,a){r.reason||(r.reason=new is(o,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new mb(function(i){t=i}),cancel:t}}};function RR(e){return function(n){return e.apply(null,n)}}function kR(e){return K.isObject(e)&&e.isAxiosError===!0}const Of={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
vendor: 4,360 bytes, line 7
7alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Of).forEach(([e,t])=>{Of[t]=e});function gb(e){const t=new $r(e),n=X0($r.prototype.request,t);return K.extend(n,$r.prototype,t,{allOwnKeys:!0}),K.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return gb(Yr(e,i))},n}const yt=gb(rs);yt.Axios=$r;yt.CanceledError=is;yt.CancelToken=CR;yt.isCancel=lb;yt.VERSION=hb;yt.toFormData=Ul;yt.AxiosError=Se;yt.Cancel=yt.CanceledError;yt.all=function(t){return Promise.all(t)};yt.spread=RR;yt.isAxiosError=kR;yt.mergeConfig=Yr;yt.AxiosHeaders=qt;yt.formToJSON=e=>ab(K.isHTMLForm(e)?new FormData(e):e);yt.getAdapter=pb.getAdapter;yt.HttpStatusCode=Of;yt.default=yt;const{Axios:BH,AxiosError:VH,CanceledError:HH,isCancel:zH,CancelToken:UH,VERSION:WH,all:qH,Cancel:YH,isAxiosError:KH,spread:XH,toFormData:GH,AxiosHeaders:ZH,HttpStatusCode:QH,formToJSON:JH,getAdapter:ez,mergeConfig:tz}=yt;function ql(){return typeof window<"u"}function qi(e){return vb(e)?(e.nodeName||"").toLowerCase():"#document"}function an(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Jn(e){var t;return(t=(vb(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function vb(e){return ql()?e instanceof Node||e instanceof an(e).Node:!1}function jt(e){return ql()?e instanceof Element||e instanceof an(e).Element:!1}function Gn(e){return ql()?e instanceof HTMLElement||e instanceof an(e).HTMLElement:!1}function pm(e){return!ql()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof an(e).ShadowRoot}const TR=new Set(["inline","contents"]);function os(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=wn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!TR.has(i)}const AR=new Set(["table","td","th"]);function LR(e){return AR.has(qi(e))}const MR=[":popover-open",":modal"];function Yl(e){return MR.some(t=>{try{return e.matches(t)}catch{return!1}})}const IR=["transform","translate","scale","rotate","perspective"],DR=["transform","translate","scale","rotate","perspective","filter"],NR=["paint","layout","strict","content"];function Vd(e){const t=Hd(),n=jt(e)?wn(e):e;return IR.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||DR.some(r=>(n.willChange||"").includes(r))||NR.some(r=>(n.contain||"").includes(r))}function jR(e){let t=Sr(e);for(;Gn(t)&&!Ri(t);){if(Vd(t))return t;if(Yl(t))return null;t=Sr(t)}return null}function Hd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const $R=new Set(["html","body","#document"]);function Ri(e){return $R.has(qi(e))}function wn(e){return an(e).getComputedStyle(e)}function Kl(e){return jt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Sr(e){if(qi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||pm(e)&&e.host||Jn(e);return pm(t)?t.host:t}function yb(e){const t=Sr(e);return Ri(t)?e.ownerDocument?e.ownerDocument.body:e.body:Gn(t)&&os(t)?t:yb(t)}function No(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=yb(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=an(i);if(o){const a=Pf(s);
vendor: 4,315 bytes, line 7
7return t.concat(s,s.visualViewport||[],os(i)?i:[],a&&n?No(a):[])}return t.concat(i,No(i,[],n))}function Pf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const ki=Math.min,Fr=Math.max,Ga=Math.round,Is=Math.floor,Wn=e=>({x:e,y:e}),FR={left:"right",right:"left",bottom:"top",top:"bottom"},BR={start:"end",end:"start"};function Cf(e,t,n){return Fr(e,ki(t,n))}function ss(e,t){return typeof e=="function"?e(t):e}function Kr(e){return e.split("-")[0]}function as(e){return e.split("-")[1]}function bb(e){return e==="x"?"y":"x"}function zd(e){return e==="y"?"height":"width"}const VR=new Set(["top","bottom"]);function gr(e){return VR.has(Kr(e))?"y":"x"}function Ud(e){return bb(gr(e))}function HR(e,t,n){n===void 0&&(n=!1);const r=as(e),i=Ud(e),o=zd(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=Za(s)),[s,Za(s)]}function zR(e){const t=Za(e);return[Rf(e),t,Rf(t)]}function Rf(e){return e.replace(/start|end/g,t=>BR[t])}const hm=["left","right"],mm=["right","left"],UR=["top","bottom"],WR=["bottom","top"];function qR(e,t,n){switch(e){case"top":case"bottom":return n?t?mm:hm:t?hm:mm;case"left":case"right":return t?UR:WR;default:return[]}}function YR(e,t,n,r){const i=as(e);let o=qR(Kr(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(Rf)))),o}function Za(e){return e.replace(/left|right|bottom|top/g,t=>FR[t])}function KR(e){return{top:0,right:0,bottom:0,left:0,...e}}function wb(e){return typeof e!="number"?KR(e):{top:e,right:e,bottom:e,left:e}}function Qa(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}var XR=typeof document<"u",GR=function(){},Ja=XR?E.useLayoutEffect:GR;const ZR={...La},QR=ZR.useInsertionEffect,JR=QR||(e=>e());function ek(e){const t=E.useRef(()=>{});return JR(()=>{t.current=e}),E.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}function gm(e,t,n){let{reference:r,floating:i}=e;const o=gr(t),s=Ud(t),a=zd(s),l=Kr(t),c=o==="y",f=r.x+r.width/2-i.width/2,u=r.y+r.height/2-i.height/2,p=r[a]/2-i[a]/2;let h;switch(l){case"top":h={x:f,y:r.y-i.height};break;case"bottom":h={x:f,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:u};break;case"left":h={x:r.x-i.width,y:u};break;default:h={x:r.x,y:r.y}}switch(as(t)){case"start":h[s]-=p*(n&&c?-1:1);break;case"end":h[s]+=p*(n&&c?-1:1);break}return h}async function tk(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:p=!1,padding:h=0}=ss(t,e),g=wb(h),w=a[p?u==="floating"?"reference":"floating":u],x=Qa(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(w)))==null||n?w:w.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:f,strategy:l})),b=u==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,m=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),d=await(o.isElement==null?void 0:o.isElement(m))?await(o.getScale==null?void 0:o.getScale(m))||{x:1,y:1}:{x:1,y:1},v=Qa(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:m,strategy:l}):b);return{top:(x.top-v.top+g.top)/d.y,bottom:(v.bottom-x.bottom+g.bottom)/d.y,left:(x.left-v.left+g.left)/d.x,right:(v.right-x.right+g.right)/d.x}}const nk=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:u}=gm(c,r,l),p=r,h={},g=0;for(let w=0;w<a.length;w++){var y;const{name:x,fn:b}=a[w],{x:m,y:d,data:v,reset:_}=await b({x:f,y:u,initialPlacement:r,placement:p,strategy:i,middlewareData:h,rects:c,platform:{...s,detectOverflow:(y=s.detectOverflow)!=null?y:tk},elements:{reference:e,floating:t}});f=m??f,u=d??u,h={...h,[x]:{...h[x],...v}},_&&g<=50&&(g++,typeof _=="object"&&(_.placement&&(p=_.placement),_.rects&&(c=_.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}
vendor: 4,228 bytes, line 7
7):_.rects),{x:f,y:u}=gm(c,p,l)),w=-1)}return{x:f,y:u,placement:p,strategy:i,middlewareData:h}},rk=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:f=0}=ss(e,t)||{};if(c==null)return{};const u=wb(f),p={x:n,y:r},h=Ud(i),g=zd(h),y=await s.getDimensions(c),w=h==="y",x=w?"top":"left",b=w?"bottom":"right",m=w?"clientHeight":"clientWidth",d=o.reference[g]+o.reference[h]-p[h]-o.floating[g],v=p[h]-o.reference[h],_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let O=_?_[m]:0;(!O||!await(s.isElement==null?void 0:s.isElement(_)))&&(O=a.floating[m]||o.floating[g]);const C=d/2-v/2,k=O/2-y[g]/2-1,A=ki(u[x],k),T=ki(u[b],k),M=A,I=O-y[g]-T,P=O/2-y[g]/2+C,S=Cf(M,P,I),R=!l.arrow&&as(i)!=null&&P!==S&&o.reference[g]/2-(P<M?A:T)-y[g]/2<0,D=R?P<M?P-M:P-I:0;return{[h]:p[h]+D,data:{[h]:S,centerOffset:P-S-D,...R&&{alignmentOffset:D}},reset:R}}}),ik=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...w}=ss(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const x=Kr(i),b=gr(a),m=Kr(a)===a,d=await(l.isRTL==null?void 0:l.isRTL(c.floating)),v=p||(m||!y?[Za(a)]:zR(a)),_=g!=="none";!p&&_&&v.push(...YR(a,y,g,d));const O=[a,...v],C=await l.detectOverflow(t,w),k=[];let A=((r=o.flip)==null?void 0:r.overflows)||[];if(f&&k.push(C[x]),u){const P=HR(i,s,d);k.push(C[P[0]],C[P[1]])}if(A=[...A,{placement:i,overflows:k}],!k.every(P=>P<=0)){var T,M;const P=(((T=o.flip)==null?void 0:T.index)||0)+1,S=O[P];if(S&&(!(u==="alignment"?b!==gr(S):!1)||A.every(L=>gr(L.placement)===b?L.overflows[0]>0:!0)))return{data:{index:P,overflows:A},reset:{placement:S}};let R=(M=A.filter(D=>D.overflows[0]<=0).sort((D,L)=>D.overflows[1]-L.overflows[1])[0])==null?void 0:M.placement;if(!R)switch(h){case"bestFit":{var I;const D=(I=A.filter(L=>{if(_){const N=gr(L.placement);return N===b||N==="y"}return!0}).map(L=>[L.placement,L.overflows.filter(N=>N>0).reduce((N,$)=>N+$,0)]).sort((L,N)=>L[1]-N[1])[0])==null?void 0:I[0];D&&(R=D);break}case"initialPlacement":R=a;break}if(i!==R)return{reset:{placement:R}}}return{}}}},ok=new Set(["left","top"]);async function sk(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=Kr(n),a=as(n),l=gr(n)==="y",c=ok.has(s)?-1:1,f=o&&l?-1:1,u=ss(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:g}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return a&&typeof g=="number"&&(h=a==="end"?g*-1:g),l?{x:h*f,y:p*c}:{x:p*c,y:h*f}}const ak=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:a}=t,l=await sk(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}},lk=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i,platform:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:x=>{let{x:b,y:m}=x;return{x:b,y:m}}},...c}=ss(e,t),f={x:n,y:r},u=await o.detectOverflow(t,c),p=gr(Kr(i)),h=bb(p);let g=f[h],y=f[p];if(s){const x=h==="y"?"top":"left",b=h==="y"?"bottom":"right",m=g+u[x],d=g-u[b];g=Cf(m,g,d)}if(a){const x=p==="y"?"top":"left",b=p==="y"?"bottom":"right",m=y+u[x],d=y-u[b];y=Cf(m,y,d)}const w=l.fn({...t,[h]:g,[p]:y});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[h]:s,[p]:a}}}}}};function xb(e){const t=wn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Gn(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=Ga(n)!==o||Ga(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function Wd(e){return jt(e)?e:e.contextElement}function yi(e){const t=Wd(e);if(!Gn(t))return Wn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=xb(t);let s=(o?Ga(n.width):n.width)/r,a=(o?Ga(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const ck=Wn(0);function Eb(e){const t=an(e);
vendor: 2,004 bytes, line 7
7return!Hd()||!t.visualViewport?ck:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function uk(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==an(e)?!1:t}function Xr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Wd(e);let s=Wn(1);t&&(r?jt(r)&&(s=yi(r)):s=yi(e));const a=uk(o,n,r)?Eb(o):Wn(0);let l=(i.left+a.x)/s.x,c=(i.top+a.y)/s.y,f=i.width/s.x,u=i.height/s.y;if(o){const p=an(o),h=r&&jt(r)?an(r):r;let g=p,y=Pf(g);for(;y&&r&&h!==g;){const w=yi(y),x=y.getBoundingClientRect(),b=wn(y),m=x.left+(y.clientLeft+parseFloat(b.paddingLeft))*w.x,d=x.top+(y.clientTop+parseFloat(b.paddingTop))*w.y;l*=w.x,c*=w.y,f*=w.x,u*=w.y,l+=m,c+=d,g=an(y),y=Pf(g)}}return Qa({width:f,height:u,x:l,y:c})}function Xl(e,t){const n=Kl(e).scrollLeft;return t?t.left+n:Xr(Jn(e)).left+n}function _b(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Xl(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function fk(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=Jn(r),a=t?Yl(t.floating):!1;if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},c=Wn(1);const f=Wn(0),u=Gn(r);if((u||!u&&!o)&&((qi(r)!=="body"||os(s))&&(l=Kl(r)),Gn(r))){const h=Xr(r);c=yi(r),f.x=h.x+r.clientLeft,f.y=h.y+r.clientTop}const p=s&&!u&&!o?_b(s,l):Wn(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+f.x+p.x,y:n.y*c.y-l.scrollTop*c.y+f.y+p.y}}function dk(e){return Array.from(e.getClientRects())}function pk(e){const t=Jn(e),n=Kl(e),r=e.ownerDocument.body,i=Fr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Fr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Xl(e);const a=-n.scrollTop;return wn(r).direction==="rtl"&&(s+=Fr(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}const vm=25;function hk(e,t){const n=an(e),r=Jn(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;const f=Hd();(!f||f&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}const c=Xl(r);
vendor: 4,853 bytes, line 7
7if(c<=0){const f=r.ownerDocument,u=f.body,p=getComputedStyle(u),h=f.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,g=Math.abs(r.clientWidth-u.clientWidth-h);g<=vm&&(o-=g)}else c<=vm&&(o+=c);return{width:o,height:s,x:a,y:l}}const mk=new Set(["absolute","fixed"]);function gk(e,t){const n=Xr(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Gn(e)?yi(e):Wn(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,l=i*o.x,c=r*o.y;return{width:s,height:a,x:l,y:c}}function ym(e,t,n){let r;if(t==="viewport")r=hk(e,n);else if(t==="document")r=pk(Jn(e));else if(jt(t))r=gk(t,n);else{const i=Eb(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Qa(r)}function Sb(e,t){const n=Sr(e);return n===t||!jt(n)||Ri(n)?!1:wn(n).position==="fixed"||Sb(n,t)}function vk(e,t){const n=t.get(e);if(n)return n;let r=No(e,[],!1).filter(a=>jt(a)&&qi(a)!=="body"),i=null;const o=wn(e).position==="fixed";let s=o?Sr(e):e;for(;jt(s)&&!Ri(s);){const a=wn(s),l=Vd(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&mk.has(i.position)||os(s)&&!l&&Sb(e,s))?r=r.filter(f=>f!==s):i=a,s=Sr(s)}return t.set(e,r),r}function yk(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?Yl(t)?[]:vk(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((c,f)=>{const u=ym(t,f,i);return c.top=Fr(u.top,c.top),c.right=ki(u.right,c.right),c.bottom=ki(u.bottom,c.bottom),c.left=Fr(u.left,c.left),c},ym(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function bk(e){const{width:t,height:n}=xb(e);return{width:t,height:n}}function wk(e,t,n){const r=Gn(t),i=Jn(t),o=n==="fixed",s=Xr(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=Wn(0);function c(){l.x=Xl(i)}if(r||!r&&!o)if((qi(t)!=="body"||os(i))&&(a=Kl(t)),r){const h=Xr(t,!0,o,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else i&&c();o&&!r&&i&&c();const f=i&&!r&&!o?_b(i,a):Wn(0),u=s.left+a.scrollLeft-l.x-f.x,p=s.top+a.scrollTop-l.y-f.y;return{x:u,y:p,width:s.width,height:s.height}}function $c(e){return wn(e).position==="static"}function bm(e,t){if(!Gn(e)||wn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Jn(e)===n&&(n=n.ownerDocument.body),n}function Ob(e,t){const n=an(e);if(Yl(e))return n;if(!Gn(e)){let i=Sr(e);for(;i&&!Ri(i);){if(jt(i)&&!$c(i))return i;i=Sr(i)}return n}let r=bm(e,t);for(;r&&LR(r)&&$c(r);)r=bm(r,t);return r&&Ri(r)&&$c(r)&&!Vd(r)?n:r||jR(e)||n}const xk=async function(e){const t=this.getOffsetParent||Ob,n=this.getDimensions,r=await n(e.floating);return{reference:wk(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ek(e){return wn(e).direction==="rtl"}const _k={convertOffsetParentRelativeRectToViewportRelativeRect:fk,getDocumentElement:Jn,getClippingRect:yk,getOffsetParent:Ob,getElementRects:xk,getClientRects:dk,getDimensions:bk,getScale:yi,isElement:jt,isRTL:Ek};function Pb(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Sk(e,t){let n=null,r;const i=Jn(e);function o(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const c=e.getBoundingClientRect(),{left:f,top:u,width:p,height:h}=c;if(a||t(),!p||!h)return;const g=Is(u),y=Is(i.clientWidth-(f+p)),w=Is(i.clientHeight-(u+h)),x=Is(f),m={rootMargin:-g+"px "+-y+"px "+-w+"px "+-x+"px",threshold:Fr(0,ki(1,l))||1};let d=!0;function v(_){const O=_[0].intersectionRatio;if(O!==l){if(!d)return s();O?s(!1,O):r=setTimeout(()=>{s(!1,1e-7)},1e3)}O===1&&!Pb(c,e.getBoundingClientRect())&&s(),d=!1}try{n=new IntersectionObserver(v,{...m,root:i.ownerDocument})}catch{n=new IntersectionObserver(v,m)}n.observe(e)}return s(!0),o}function Cb(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Wd(e),f=i||o?[...c?No(c):[],...No(t)]:[];f.forEach(x=>{i&&x.addEventListener("scroll",n,{passive:!0}),o&&x.addEventListener("resize",n)});const u=c&&a?Sk(c,n):null;let p=-1,h=null;s&&(h=new ResizeObserver(x=>{let[b]=x;b&&b.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var m;(m=h)==null||m.observe(t)})),n()}),c&&!l&&h.observe(c),h.observe(t));let g,y=l?Xr(e):null;l&&w();function w(){const x=Xr(e);y&&!Pb(y,x)&&n(),y=x,g=requestAnimationFrame(w)}return n(),()=>{var x;f.forEach(b=>{i&&b.removeEventListener("scroll",n),o&&b.removeEventListener("resize",n)}),u?.(),(x=h)==null||x.disconnect(),h=null,l&&cancelAnimationFrame(g)}}const Rb=ak,kb=lk,Tb=ik,kf=rk,Tf=(e,t,n)=>{const r=new Map,i={platform:_k,...n},o={...i.platform,_c:r};return nk(e,t,{...i,platform:o})};var Ok=typeof document<"u",Pk=function(){},wa=Ok?E.useLayoutEffect:Pk;function el(e,t){if(e===t)return!0;
vendor: 4,472 bytes, line 7
7if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!el(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!el(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Ab(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function wm(e,t){const n=Ab(e);return Math.round(t*n)/n}function Fc(e){const t=E.useRef(e);return wa(()=>{t.current=e}),t}function Ck(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[f,u]=E.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=E.useState(r);el(p,r)||h(r);const[g,y]=E.useState(null),[w,x]=E.useState(null),b=E.useCallback(L=>{L!==_.current&&(_.current=L,y(L))},[]),m=E.useCallback(L=>{L!==O.current&&(O.current=L,x(L))},[]),d=o||g,v=s||w,_=E.useRef(null),O=E.useRef(null),C=E.useRef(f),k=l!=null,A=Fc(l),T=Fc(i),M=Fc(c),I=E.useCallback(()=>{if(!_.current||!O.current)return;const L={placement:t,strategy:n,middleware:p};T.current&&(L.platform=T.current),Tf(_.current,O.current,L).then(N=>{const $={...N,isPositioned:M.current!==!1};P.current&&!el(C.current,$)&&(C.current=$,Rl.flushSync(()=>{u($)}))})},[p,t,n,T,M]);wa(()=>{c===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,u(L=>({...L,isPositioned:!1})))},[c]);const P=E.useRef(!1);wa(()=>(P.current=!0,()=>{P.current=!1}),[]),wa(()=>{if(d&&(_.current=d),v&&(O.current=v),d&&v){if(A.current)return A.current(d,v,I);I()}},[d,v,I,A,k]);const S=E.useMemo(()=>({reference:_,floating:O,setReference:b,setFloating:m}),[b,m]),R=E.useMemo(()=>({reference:d,floating:v}),[d,v]),D=E.useMemo(()=>{const L={position:n,left:0,top:0};if(!R.floating)return L;const N=wm(R.floating,f.x),$=wm(R.floating,f.y);return a?{...L,transform:"translate("+N+"px, "+$+"px)",...Ab(R.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:N,top:$}},[n,a,R.floating,f.x,f.y]);return E.useMemo(()=>({...f,update:I,refs:S,elements:R,floatingStyles:D}),[f,I,S,R,D])}const Rk=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?kf({element:r.current,padding:i}).fn(n):{}:r?kf({element:r,padding:i}).fn(n):{}}}},nz=(e,t)=>({...Rb(e),options:[e,t]}),rz=(e,t)=>({...kb(e),options:[e,t]}),iz=(e,t)=>({...Tb(e),options:[e,t]}),oz=(e,t)=>({...Rk(e),options:[e,t]}),kk={...La};let xm=!1,Tk=0;const Em=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Tk++;function Ak(){const[e,t]=E.useState(()=>xm?Em():void 0);return Ja(()=>{e==null&&t(Em())},[]),E.useEffect(()=>{xm=!0},[]),e}const Lk=kk.useId,Lb=Lk||Ak,sz=E.forwardRef(function(t,n){const{context:{placement:r,elements:{floating:i},middlewareData:{arrow:o,shift:s}},width:a=14,height:l=7,tipRadius:c=0,strokeWidth:f=0,staticOffset:u,stroke:p,d:h,style:{transform:g,...y}={},...w}=t,x=Lb(),[b,m]=E.useState(!1);if(Ja(()=>{if(!i)return;wn(i).direction==="rtl"&&m(!0)},[i]),!i)return null;const[d,v]=r.split("-"),_=d==="top"||d==="bottom";let O=u;(_&&s!=null&&s.x||!_&&s!=null&&s.y)&&(O=null);const C=f*2,k=C/2,A=a/2*(c/-8+1),T=l/2*c/4,M=!!h,I=O&&v==="end"?"bottom":"top";let P=O&&v==="end"?"right":"left";O&&b&&(P=v==="end"?"left":"right");const S=o?.x!=null?O||o.x:"",R=o?.y!=null?O||o.y:"",D=h||"M0,0"+(" H"+a)+(" L"+(a-A)+","+(l-T))+(" Q"+a/2+","+l+" "+A+","+(l-T))+" Z",L={top:M?"rotate(180deg)":"",left:M?"rotate(90deg)":"rotate(-90deg)",bottom:M?"":"rotate(180deg)",right:M?"rotate(-90deg)":"rotate(90deg)"}[d];return G.jsxs("svg",{...w,"aria-hidden":!0,ref:n,width:M?a:a+C,height:a,viewBox:"0 0 "+a+" "+(l>a?l:a),style:{position:"absolute",pointerEvents:"none",[P]:S,[I]:R,[d]:_||M?"100%":"calc(100% - "+C/2+"px)",transform:[L,g].filter(N=>!!N).join(" "),...y},children:[C>0&&G.jsx("path",{clipPath:"url(#"+x+")",fill:"none",stroke:p,strokeWidth:C+(h?0:1),d:D}),G.jsx("path",{stroke:C&&!h?w.fill:"none",d:D}),G.jsx("clipPath",{id:x,children:G.jsx("rect",{x:-k,y:k*(M?-1:1),width:a+C,height:a})})]})});function Mk(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>
7i(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}const Ik=E.createContext(null),Dk=E.createContext(null),Nk=()=>{var e;return((e=E.useContext(Ik))==null?void 0:e.id)||null},jk=()=>E.useContext(Dk);function $k(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=Lb(),o=E.useRef({}),[s]=E.useState(()=>Mk()),a=Nk()!=null,[l,c]=E.useState(r.reference),f=ek((h,g,y)=>{o.current.openEvent=h?g:void 0,s.emit("openchange",{open:h,event:g,reason:y,nested:a}),n?.(h,g,y)}),u=E.useMemo(()=>({setPositionReference:c}),[]),p=E.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return E.useMemo(()=>({dataRef:o,open:t,onOpenChange:f,elements:p,events:s,floatingId:i,refs:u}),[t,f,p,s,i,u])}function az(e){e===void 0&&(e={});const{nodeId:t}=e,n=$k({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,s]=E.useState(null),[a,l]=E.useState(null),f=i?.domReference||o,u=E.useRef(null),p=jk();Ja(()=>{f&&(u.current=f)},[f]);const h=Ck({...e,elements:{...i,...a&&{reference:a}}}),g=E.useCallback(m=>{const d=jt(m)?{getBoundingClientRect:()=>m.getBoundingClientRect(),getClientRects:()=>m.getClientRects(),contextElement:m}:m;l(d),h.refs.setReference(d)},[h.refs]),y=E.useCallback(m=>{(jt(m)||m===null)&&(u.current=m,s(m)),(jt(h.refs.reference.current)||h.refs.reference.current===null||m!==null&&!jt(m))&&h.refs.setReference(m)},[h.refs]),w=E.useMemo(()=>({...h.refs,setReference:y,setPositionReference:g,domReference:u}),[h.refs,y,g]),x=E.useMemo(()=>({...h.elements,domReference:f}),[h.elements,f]),b=E.useMemo(()=>({...h,...r,refs:w,elements:x,nodeId:t}),[h,w,x,t,r]);return Ja(()=>{r.dataRef.current.floatingContext=b;const m=p?.nodesRef.current.find(d=>d.id===t);m&&(m.context=b)}),E.useMemo(()=>({...h,context:b,refs:w,elements:x}),[h,w,x,b])}const Fk=({code:e="NL",size:t="l",gradient:n="",hasBorder:r=!0,hasDropShadow:i=!1,hasBorderRadius:o=!0,className:s})=>G.jsx("div",{className:`flag ${n} size-${t} ${r?"border":""} ${i?"drop-shadow":""} ${o?"border-radius":""} ${s?s.replace(/\s\s+/g," ").trim():""}`,children:G.jsx("img",{src:`/flags/${t}/${e}.svg`})}),lz=Fk;var Ds={exports:{}},Ns={exports:{}};function zn(e){return getComputedStyle(e)}function Ht(e,t){for(var n in t){var r=t[n];typeof r=="number"&&(r=r+"px"),e.style[n]=r}return e}function js(e){var t=document.createElement("div");return t.className=e,t}var _m=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function vr(e,t){if(!_m)throw new Error("No element matching method supported");return _m.call(e,t)}function mi(e){e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)}function Sm(e,t){return Array.prototype.filter.call(e.children,function(n){return vr(n,t)})}var ht={main:"ps",rtl:"ps__rtl",element:{thumb:function(e){return"ps__thumb-"+e},rail:function(e){return"ps__rail-"+e},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(e){return"ps--active-"+e},scrolling:function(e){return"ps--scrolling-"+e}}},Mb={x:null,y:null};function Ib(e,t){var n=e.element.classList,r=ht.state.scrolling(t);n.contains(r)?clearTimeout(Mb[t]):n.add(r)}function Db(e,t){Mb[t]=setTimeout(function(){return e.isAlive&&e.element.classList.remove(ht.state.scrolling(t))},e.settings.scrollingThreshold)}function Bk(e,t){Ib(e,t),Db(e,t)}var ls=function(t){this.element=t,this.handlers={}},Nb={isEmpty:{configurable:!0}};ls.prototype.bind=function(t,n){typeof this.handlers[t]>"u"&&(this.handlers[t]=[]),this.handlers[t].push(n),this.element.addEventListener(t,n,!1)};ls.prototype.unbind=function(t,n){var r=this;this.handlers[t]=this.handlers[t].filter(function(i){return n&&i!==n?!0:(r.element.removeEventListener(t,i,!1),!1)})};ls.prototype.unbindAll=function(){for(var t in this.handlers)this.unbind(t)};Nb.isEmpty.get=function(){var e=this;return Object.keys(this.handlers).every(function(t){return e.handlers[t].length===0})};Object.defineProperties(ls.prototype,Nb);var Yi=function(){this.eventElements=[]};Yi.prototype.eventElement=function(t){var n=this.eventElements.filter(function(r){return r.element===t})[0];return n||(n=new ls(t),this.eventElements.push(n)),n};Yi.prototype.bind=function(t,n,r){this.eventElement(t).bind(n,r)};Yi.prototype.unbind=function(t,n,r){var i=this.eventElement(t);i.unbind(n,r),i.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(i),1)};
7Yi.prototype.unbindAll=function(){this.eventElements.forEach(function(t){return t.unbindAll()}),this.eventElements=[]};Yi.prototype.once=function(t,n,r){var i=this.eventElement(t),o=function(s){i.unbind(n,o),r(s)};i.bind(n,o)};function $s(e){if(typeof window.CustomEvent=="function")return new CustomEvent(e);var t=document.createEvent("CustomEvent");return t.initCustomEvent(e,!1,!1,void 0),t}function tl(e,t,n,r,i){r===void 0&&(r=!0),i===void 0&&(i=!1);var o;if(t==="top")o=["contentHeight","containerHeight","scrollTop","y","up","down"];else if(t==="left")o=["contentWidth","containerWidth","scrollLeft","x","left","right"];else throw new Error("A proper axis should be provided");Vk(e,n,o,r,i)}function Vk(e,t,n,r,i){var o=n[0],s=n[1],a=n[2],l=n[3],c=n[4],f=n[5];r===void 0&&(r=!0),i===void 0&&(i=!1);var u=e.element;e.reach[l]=null,u[a]<1&&(e.reach[l]="start"),u[a]>e[o]-e[s]-1&&(e.reach[l]="end"),t&&(u.dispatchEvent($s("ps-scroll-"+l)),t<0?u.dispatchEvent($s("ps-scroll-"+c)):t>0&&u.dispatchEvent($s("ps-scroll-"+f)),r&&Bk(e,l)),e.reach[l]&&(t||i)&&u.dispatchEvent($s("ps-"+l+"-reach-"+e.reach[l]))}function it(e){return parseInt(e,10)||0}function Hk(e){return vr(e,"input,[contenteditable]")||vr(e,"select,[contenteditable]")||vr(e,"textarea,[contenteditable]")||vr(e,"button,[contenteditable]")}function zk(e){var t=zn(e);return it(t.width)+it(t.paddingLeft)+it(t.paddingRight)+it(t.borderLeftWidth)+it(t.borderRightWidth)}var pi={isWebKit:typeof document<"u"&&"WebkitAppearance"in document.documentElement.style,supportsTouch:typeof window<"u"&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:typeof navigator<"u"&&navigator.msMaxTouchPoints,isChrome:typeof navigator<"u"&&/Chrome/i.test(navigator&&navigator.userAgent)};function lr(e){var t=e.element,n=Math.floor(t.scrollTop),r=t.getBoundingClientRect();e.containerWidth=Math.floor(r.width),e.containerHeight=Math.floor(r.height),e.contentWidth=t.scrollWidth,e.contentHeight=t.scrollHeight,t.contains(e.scrollbarXRail)||(Sm(t,ht.element.rail("x")).forEach(function(i){return mi(i)}),t.appendChild(e.scrollbarXRail)),t.contains(e.scrollbarYRail)||(Sm(t,ht.element.rail("y")).forEach(function(i){return mi(i)}),t.appendChild(e.scrollbarYRail)),!e.settings.suppressScrollX&&e.containerWidth+e.settings.scrollXMarginOffset<e.contentWidth?(e.scrollbarXActive=!0,e.railXWidth=e.containerWidth-e.railXMarginWidth,e.railXRatio=e.containerWidth/e.railXWidth,e.scrollbarXWidth=Om(e,it(e.railXWidth*e.containerWidth/e.contentWidth)),e.scrollbarXLeft=it((e.negativeScrollAdjustment+t.scrollLeft)*(e.railXWidth-e.scrollbarXWidth)/(e.contentWidth-e.containerWidth))):e.scrollbarXActive=!1,!e.settings.suppressScrollY&&e.containerHeight+e.settings.scrollYMarginOffset<e.contentHeight?(e.scrollbarYActive=!0,e.railYHeight=e.containerHeight-e.railYMarginHeight,e.railYRatio=e.containerHeight/e.railYHeight,e.scrollbarYHeight=Om(e,it(e.railYHeight*e.containerHeight/e.contentHeight)),e.scrollbarYTop=it(n*(e.railYHeight-e.scrollbarYHeight)/(e.contentHeight-e.containerHeight))):e.scrollbarYActive=!1,e.scrollbarXLeft>=e.railXWidth-e.scrollbarXWidth&&(e.scrollbarXLeft=e.railXWidth-e.scrollbarXWidth),e.scrollbarYTop>=e.railYHeight-e.scrollbarYHeight&&(e.scrollbarYTop=e.railYHeight-e.scrollbarYHeight),Uk(t,e),e.scrollbarXActive?t.classList.add(ht.state.active("x")):(t.classList.remove(ht.state.active("x")),e.scrollbarXWidth=0,e.scrollbarXLeft=0,t.scrollLeft=e.isRtl===!0?e.contentWidth:0),e.scrollbarYActive?t.classList.add(ht.state.active("y")):(t.classList.remove(ht.state.active("y")),e.scrollbarYHeight=0,e.scrollbarYTop=0,t.scrollTop=0)}function Om(e,t){return e.settings.minScrollbarLength&&(t=Math.max(t,e.settings.minScrollbarLength)),e.settings.maxScrollbarLength&&(t=Math.min(t,e.settings.maxScrollbarLength)),t}function Uk(e,t){var n={width:t.railXWidth},r=Math.floor(e.scrollTop);t.isRtl?n.left=t.negativeScrollAdjustment+e.scrollLeft+t.containerWidth-t.contentWidth:n.left=e.scrollLeft,t.isScrollbarXUsingBottom?n.bottom=t.scrollbarXBottom-r:n.top=t.scrollbarXTop+r,Ht(t.scrollbarXRail,n);var i={top:r,height:t.railYHeight};t.isScrollbarYUsingRight?t.isRtl?i.right=t.contentWidth-(t.negativeScrollAdjustment+e.scrollLeft)-t.scrollbarYRight-t.scrollbarYOuterWidth-9:i.right=t.scrollbarYRight-e.scrollLeft:t.isRtl?i.left=t.negativeScrollAdjustment+e.scrollLeft+t.containerWidth*2-t.contentWidth-t.scrollbarYLeft-t.scrollbarYOuterWidth:i.left=t.scrollbarYLeft+e.scrollLeft,Ht(t.scrollbarYRail,i),Ht(t.scrollbarX,{left:t.scrollbarXLeft,width:t.scrollbarXWidth-t.railBorderXWidth}),Ht(t.scrollbarY,{top:t.scrollbarYTop,height:t.scrollbarYHeight-t.railBorderYWidth})}function Wk(e){e.event.bind(e.scrollbarY,"mousedown",function(t){return t.stopPropagation()}),e.event.bind(e.scrollbarYRail,"mousedown",function(t){var n=t.pageY-window.pageYOffset-e.scrollbarYRail.getBoundingClientRect().top,r=n>e.scrollbarYTop?1:-1;e.element.scrollTop+=r*e.containerHeight,lr(e),t.stopPropagation()}),e.event.bind(e.scrollbarX,"mousedown",function(t){return t.stopPropagation()}),e.event.bind(e.scrollbarXRail,"mousedown",function(t){var n=t.pageX-window.pageXOffset-e.scrollbarXRail.getBoundingClientRect().left,r=n>e.scrollbarXLeft?1:-1;e.element.scrollLeft+=r*e.containerWidth,lr(e),t.stopPropagation()})}var Fs=null;function qk(e){Pm(e,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"]),Pm
7(e,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"])}function Pm(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],s=t[4],a=t[5],l=t[6],c=t[7],f=t[8],u=e.element,p=null,h=null,g=null;function y(b){b.touches&&b.touches[0]&&(b[i]=b.touches[0]["page"+c.toUpperCase()]),Fs===s&&(u[l]=p+g*(b[i]-h),Ib(e,c),lr(e),b.stopPropagation(),b.preventDefault())}function w(){Db(e,c),e[f].classList.remove(ht.state.clicking),document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",w),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",w),Fs=null}function x(b){Fs===null&&(Fs=s,p=u[l],b.touches&&(b[i]=b.touches[0]["page"+c.toUpperCase()]),h=b[i],g=(e[r]-e[n])/(e[o]-e[a]),b.touches?(document.addEventListener("touchmove",y,{passive:!1}),document.addEventListener("touchend",w)):(document.addEventListener("mousemove",y),document.addEventListener("mouseup",w)),e[f].classList.add(ht.state.clicking)),b.stopPropagation(),b.cancelable&&b.preventDefault()}e[s].addEventListener("mousedown",x),e[s].addEventListener("touchstart",x)}function Yk(e){var t=e.element,n=function(){return vr(t,":hover")},r=function(){return vr(e.scrollbarX,":focus")||vr(e.scrollbarY,":focus")};function i(o,s){var a=Math.floor(t.scrollTop);if(o===0){if(!e.scrollbarYActive)return!1;if(a===0&&s>0||a>=e.contentHeight-e.containerHeight&&s<0)return!e.settings.wheelPropagation}var l=t.scrollLeft;if(s===0){if(!e.scrollbarXActive)return!1;if(l===0&&o<0||l>=e.contentWidth-e.containerWidth&&o>0)return!e.settings.wheelPropagation}return!0}e.event.bind(e.ownerDocument,"keydown",function(o){if(!(o.isDefaultPrevented&&o.isDefaultPrevented()||o.defaultPrevented)&&!(!n()&&!r())){var s=document.activeElement?document.activeElement:e.ownerDocument.activeElement;if(s){if(s.tagName==="IFRAME")s=s.contentDocument.activeElement;else for(;s.shadowRoot;)s=s.shadowRoot.activeElement;if(Hk(s))return}var a=0,l=0;switch(o.which){case 37:o.metaKey?a=-e.contentWidth:o.altKey?a=-e.containerWidth:a=-30;break;case 38:o.metaKey?l=e.contentHeight:o.altKey?l=e.containerHeight:l=30;break;case 39:o.metaKey?a=e.contentWidth:o.altKey?a=e.containerWidth:a=30;break;case 40:o.metaKey?l=-e.contentHeight:o.altKey?l=-e.containerHeight:l=-30;break;case 32:o.shiftKey?l=e.containerHeight:l=-e.containerHeight;break;case 33:l=e.containerHeight;break;case 34:l=-e.containerHeight;break;case 36:l=e.contentHeight;break;case 35:l=-e.contentHeight;break;default:return}e.settings.suppressScrollX&&a!==0||e.settings.suppressScrollY&&l!==0||(t.scrollTop-=l,t.scrollLeft+=a,lr(e),i(a,l)&&o.preventDefault())}})}function Kk(e){var t=e.element;function n(s,a){var l=Math.floor(t.scrollTop),c=t.scrollTop===0,f=l+t.offsetHeight===t.scrollHeight,u=t.scrollLeft===0,p=t.scrollLeft+t.offsetWidth===t.scrollWidth,h;return Math.abs(a)>Math.abs(s)?h=c||f:h=u||p,h?!e.settings.wheelPropagation:!0}function r(s){var a=s.deltaX,l=-1*s.deltaY;return(typeof a>"u"||typeof l>"u")&&(a=-1*s.wheelDeltaX/6,l=s.wheelDeltaY/6),s.deltaMode&&s.deltaMode===1&&(a*=10,l*=10),a!==a&&l!==l&&(a=0,l=s.wheelDelta),s.shiftKey?[-l,-a]:[a,l]}function i(s,a,l){if(!pi.isWebKit&&t.querySelector("select:focus"))return!0;if(!t.contains(s))return!1;for(var c=s;c&&c!==t;){if(c.classList.contains(ht.element.consuming))return!0;var f=zn(c);if(l&&f.overflowY.match(/(scroll|auto)/)){var u=c.scrollHeight-c.clientHeight;if(u>0&&(c.scrollTop>0&&l<0||c.scrollTop<u&&l>0))return!0}if(a&&f.overflowX.match(/(scroll|auto)/)){var p=c.scrollWidth-c.clientWidth;if(p>0&&(c.scrollLeft>0&&a<0||c.scrollLeft<p&&a>0))return!0}c=c.parentNode}return!1}function o(s){var a=r(s),l=a[0],c=a[1];if(!i(s.target,l,c)){var f=!1;e.settings.useBothWheelAxes?e.scrollbarYActive&&!e.scrollbarXActive?(c?t.scrollTop-=c*e.settings.wheelSpeed:t.scrollTop+=l*e.settings.wheelSpeed,f=!0):e.scrollbarXActive&&!e.scrollbarYActive&&(l?t.scrollLeft+=l*e.settings.wheelSpeed:t.scrollLeft-=c*e.settings.wheelSpeed,f=!0):(t.scrollTop-=c*e.settings.wheelSpeed,t.scrollLeft+=l*e.settings.wheelSpeed),lr(e),f=f||n(l,c),f&&!s.ctrlKey&&(s.stopPropagation(),s.preventDefault())}}typeof window.onwheel<"u"?e.event.bind(t,"wheel",o):typeof window.onmousewheel<"u"&&e.event.bind(t,"mousewheel",o)}function Xk(e){if(!pi.supportsTouch&&!pi.supportsIePointer)return;var t=e.element,n={startOffset:{},startTime:0,speed:{},easingLoop:null};function r(u,p){var h=Math.floor(t.scrollTop),g=t.scrollLeft,y=Math.abs(u),w=Math.abs(p);if(w>y){if(p<0&&h===e.contentHeight-e.containerHeight||p>0&&h===0)return window.scrollY===0&&p>0&&pi.isChrome}else if(y>w&&(u<0&&g===e.contentWidth-e.containerWidth||u>0&&g===0))return!0;return!0}function i(u,p){t.scrollTop-=p,t.scrollLeft-=u,lr(e)}function o(u){return u.targetTouches?u.targetTouches[0]:u}function s(u){return u.target===e.scrollbarX||u.target===e.scrollbarY||u.pointerType&&u.pointerType==="pen"&&u.buttons===0?!1:!!(u.targetTouches&&u.targetTouches.length===1||u.pointerType&&u.pointerType!=="mouse"&&u.pointerType!==u.MSPOINTER_TYPE_MOUSE)}function a(u){if(s(u)){var p=o(u);n.startOffset.pageX=p.pageX,n.startOffset.pageY=p.pageY,n.startTime=new Date().getTime(),n.easingLoop!==null&&clearInterval(n.easingLoop)}}function l(u,p,h){if(!t.contains(u))return!1;for(var g=u;g&&g!==t;){if(g.classList.contains(ht.element.consuming))return!0;var y=zn(g);if(h&&y.overflowY.match(/(scroll|auto)/)){var w=g.scrollHeight-g.clientHeight;if(w>0&&(g.scrollTop>0&&h<0||g.scrollTop<w&&h>0))return!0}if(p&&y.overflowX.match(/(scroll|auto)/)){var x=g.scrollWidth-g.clientWidth;if(x>0&&(g.scrollLeft>0&&p<0||g.scrollLeft<x&&p>0))return!0}g=g.parentNode}return!1}function c(u){if(s(u)){var p=o(u),h={pageX:p.pageX,pageY:p.pageY},g=h.pageX-n.startOffset.pageX,y=h.pageY-n.startOffset.pageY;if(l(u.target,g,y))return;i(g,y),n.startOffset=h;var w=new Date().getTime(),x=w-n.startTime;x>0&&(n.speed.x=g/x,n.speed.y=y/x,n.startTime=w),r(g,y)&&u.cancelable&&u.preventDefault()}}function f(){e.settings.swipeEasing&&(clearInterval(n.easingLoop),n.easingLoop=setInterval(function(){if(e.isInitialized){clearInterval(n.easingLoop);return}if(!n.speed.x&&!n.speed.y){clearInterval(n.easingLoop);return}if(Math.abs(n.speed.x)<.01&&Math.abs(n.speed.y)<.01){clearInterval(n.easingLoop);return}i(n.speed.x*30,n.speed.y*30),n.speed.x*=.8,n.speed.y*=.8},10))}pi.supportsTouch?(e.event.bind(t,"touchstart",a),e.event.bind(t,"touchmove",c),e.event.bind(t,"touchend",f)):pi.supportsIePointer&&(window.PointerEvent?(e.event.bind(t,"pointerdown",a),e.event.bind(t,"pointermove",c),e.event.bind(t,"pointerup",f)):window.MSPointerEvent&&(e.event.bind(t,"MSPointerDown",a),e.event.bind(t,"MSPointerMove",c),e.event.bind(t,"MSPointerUp",f)))}var Gk=function(){return{handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1}},Zk={"click-rail":Wk,"drag-thumb":qk,keyboard:Yk,wheel:Kk,touch:Xk},cs=function(t,n){var r=this;if(n===void 0&&(n={}),typeof t=="string"&&(t=document.querySelector(t)),!t||!t.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");this.element=t,t.classList.add(ht.main),this.settings=Gk();for(var i in n)this.settings[i]=n[i];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var o=function(){return t.classList.add(ht.state.focus)},s=function(){return t.classList.remove(ht.state.focus)};this.isRtl=zn(t).direction==="rtl",this.isRtl===!0&&t.classList.add(ht.rtl),this.isNegativeScroll=(function(){var c=t.scrollLeft,f=null;return t.scrollLeft=-1,f=t.scrollLeft<0,t.scrollLeft=c,f})(),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new Yi,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=js(ht.element.rail("x")),t.appendChild(this.scrollbarXRail),this.scrollbarX=js(ht.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",o),this.event.bind(this.scrollbarX,"blur",s),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var a=zn(this.scrollbarXRail);this.scrollbarXBottom=parseInt(a.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=it(a.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=it(a.borderLeftWidth)+it(a.borderRightWidth),Ht(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=it(a.marginLeft)+it(a.marginRight),Ht(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=js(ht.element.rail("y")),t.appendChild(this.scrollbarYRail),this.scrollbarY=js(ht.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",o),this.event.bind(this.scrollbarY,"blur",s),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var l=zn(this.scrollbarYRail);this.scrollbarYRight=parseInt(l.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=it(l.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?zk(this.scrollbarY):null,this.railBorderYWidth=it(l.borderTopWidth)+it(l.borderBottomWidth),Ht(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=it(l.marginTop)+it(l.marginBottom),Ht(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:t.scrollLeft<=0?"start":t.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:t.scrollTop<=0?"start":t.scrollTop>=this.contentHeight-this.containerHeight?"end":null}
7,this.isAlive=!0,this.settings.handlers.forEach(function(c){return Zk[c](r)}),this.lastScrollTop=Math.floor(t.scrollTop),this.lastScrollLeft=t.scrollLeft,this.event.bind(this.element,"scroll",function(c){return r.onScroll(c)}),lr(this)};cs.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,Ht(this.scrollbarXRail,{display:"block"}),Ht(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=it(zn(this.scrollbarXRail).marginLeft)+it(zn(this.scrollbarXRail).marginRight),this.railYMarginHeight=it(zn(this.scrollbarYRail).marginTop)+it(zn(this.scrollbarYRail).marginBottom),Ht(this.scrollbarXRail,{display:"none"}),Ht(this.scrollbarYRail,{display:"none"}),lr(this),tl(this,"top",0,!1,!0),tl(this,"left",0,!1,!0),Ht(this.scrollbarXRail,{display:""}),Ht(this.scrollbarYRail,{display:""}))};cs.prototype.onScroll=function(t){this.isAlive&&(lr(this),tl(this,"top",this.element.scrollTop-this.lastScrollTop),tl(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)};cs.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),mi(this.scrollbarX),mi(this.scrollbarY),mi(this.scrollbarXRail),mi(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)};cs.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(t){return!t.match(/^ps([-_].+|)$/)}).join(" ")};const Qk=Object.freeze(Object.defineProperty({__proto__:null,default:cs},Symbol.toStringTag,{value:"Module"})),Jk=Ny(Qk);var Cm;function eT(){return Cm||(Cm=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(w){for(var x=1;x<arguments.length;x++){var b=arguments[x];for(var m in b)Object.prototype.hasOwnProperty.call(b,m)&&(w[m]=b[m])}return w},r=(function(){function w(x,b){for(var m=0;m<b.length;m++){var d=b[m];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(x,d.key,d)}}return function(x,b,m){return b&&w(x.prototype,b),m&&w(x,m),x}})(),i=ft(),o=c(i),s=Td(),a=Jk,l=c(a);function c(w){return w&&w.__esModule?w:{default:w}}function f(w,x){var b={};for(var m in w)x.indexOf(m)>=0||Object.prototype.hasOwnProperty.call(w,m)&&(b[m]=w[m]);return b}function u(w,x){if(!(w instanceof x))throw new TypeError("Cannot call a class as a function")}function p(w,x){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:w}function h(w,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);w.prototype=Object.create(x&&x.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(w,x):w.__proto__=x)}var g={"ps-scroll-y":"onScrollY","ps-scroll-x":"onScrollX","ps-scroll-up":"onScrollUp","ps-scroll-down":"onScrollDown","ps-scroll-left":"onScrollLeft","ps-scroll-right":"onScrollRight","ps-y-reach-start":"onYReachStart","ps-y-reach-end":"onYReachEnd","ps-x-reach-start":"onXReachStart","ps-x-reach-end":"onXReachEnd"};Object.freeze(g);var y=(function(w){h(x,w);function x(b){u(this,x);var m=p(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,b));return m.handleRef=m.handleRef.bind(m),m._handlerByEvent={},m}return r(x,[{key:"componentDidMount",value:function(){this.props.option&&console.warn('react-perfect-scrollbar: the "option" prop has been deprecated in favor of "options"'),this._ps=new l.default(this._container,this.props.options||this.props.option),this._updateEventHook(),this._updateClassName()}},{key:"componentDidUpdate",value:function(m){this._updateEventHook(m),this.updateScroll(),m.className!==this.props.className&&this._updateClassName()}},{key:"componentWillUnmount",value:function(){var m=this;Object.keys(this._handlerByEvent).forEach(function(d){var v=m._handlerByEvent[d];v&&m._container.removeEventListener(d,v,!1)}),this._handlerByEvent={},this._ps.destroy(),this._ps=null}},{key:"_updateEventHook",value:function(){var m=this,d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Object.keys(g).forEach(function(v){var _=m.props[g[v]],O=d[g[v]];if(_!==O){if(O){var C=m._handlerByEvent[v];m._container.removeEventListener(v,C,!1),m._handlerByEvent[v]=null}if(_){var k=function(){return _(m._container)};m._container.addEventListener(v,k,!1),m._handlerByEvent[v]=k}}})}},{key:"_updateClassName",value:function(){var m=this.props.className,d=this._container.className.split(" ").filter(function(v){return v.match(/^ps([-_].+|)$/)}).join(" ");this._container&&(this._container.className="scrollbar-container"+(m?" "+m:"")+(d?" "+d:""))}},{key:"updateScroll",value:function(){this.props.onSync(this._ps)}},{key:"handleRef",value:function(m){this._container=m,this.props.containerRef(m)}},{key:"render",value:function(){var m=this.props;m.className;var d=m.style;m.option,m.options,m.containerRef,m.onScrollY,m.onScrollX,m.onScrollUp,m.onScrollDown,m.onScrollLeft,m.onScrollRight,m.onYReachStart,m.onYReachEnd,m.onXReachStart,m.onXReachEnd;var v=m.component;m.onSync;var _=m.children,O=f(m,["className","style","option","options","containerRef","onScrollY","onScrollX","onScrollUp","onScrollDown","onScrollLeft","onScrollRight","onYReachStart","onYReachEnd","onXReachStart","onXReachEnd","component","onSync","children"]),C=v;return o.default.createElement(C,n({style:d,ref:this.handleRef},O),_)}}]),x})(i.Component);t.default=y,y.defaultProps={className:"",style:void 0,option:void 0,options:void 0,containerRef:function(){},onScrollY:void 0,onScrollX:void 0,onScrollUp:void 0,onScrollDown:void 0,onScrollLeft:void 0,onScrollRight:void 0,onYReachStart:void 0,onYReachEnd:void 0,onXReachStart:void 0,onXReachEnd:void 0,onSync:function(x){return x.update()},component:"div"},y.propTypes={children:s.PropTypes.node.isRequired,className:s.PropTypes.string,
7style:s.PropTypes.object,option:s.PropTypes.object,options:s.PropTypes.object,containerRef:s.PropTypes.func,onScrollY:s.PropTypes.func,onScrollX:s.PropTypes.func,onScrollUp:s.PropTypes.func,onScrollDown:s.PropTypes.func,onScrollLeft:s.PropTypes.func,onScrollRight:s.PropTypes.func,onYReachStart:s.PropTypes.func,onYReachEnd:s.PropTypes.func,onXReachStart:s.PropTypes.func,onXReachEnd:s.PropTypes.func,onSync:s.PropTypes.func,component:s.PropTypes.string},e.exports=t.default})(Ns,Ns.exports)),Ns.exports}var Rm;function tT(){return Rm||(Rm=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=eT(),r=i(n);function i(o){return o&&o.__esModule?o:{default:o}}t.default=r.default,e.exports=t.default})(Ds,Ds.exports)),Ds.exports}var nT=tT();const cz=ut(nT);var Bs={exports:{}},km;function rT(){return km||(km=1,(function(e,t){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof xo<"u"&&xo,r=(function(){function o(){this.fetch=!1,this.DOMException=n.DOMException}return o.prototype=n,new o})();(function(o){(function(s){var a=typeof o<"u"&&o||typeof self<"u"&&self||typeof a<"u"&&a,l={searchParams:"URLSearchParams"in a,iterable:"Symbol"in a&&"iterator"in Symbol,blob:"FileReader"in a&&"Blob"in a&&(function(){try{return new Blob,!0}catch{return!1}})(),formData:"FormData"in a,arrayBuffer:"ArrayBuffer"in a};function c(S){return S&&DataView.prototype.isPrototypeOf(S)}if(l.arrayBuffer)var f=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(S){return S&&f.indexOf(Object.prototype.toString.call(S))>-1};function p(S){if(typeof S!="string"&&(S=String(S)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(S)||S==="")throw new TypeError('Invalid character in header field name: "'+S+'"');return S.toLowerCase()}function h(S){return typeof S!="string"&&(S=String(S)),S}function g(S){var R={next:function(){var D=S.shift();return{done:D===void 0,value:D}}};return l.iterable&&(R[Symbol.iterator]=function(){return R}),R}function y(S){this.map={},S instanceof y?S.forEach(function(R,D){this.append(D,R)},this):Array.isArray(S)?S.forEach(function(R){this.append(R[0],R[1])}
vendor: 8,716 bytes, lines 7-8
7,this):S&&Object.getOwnPropertyNames(S).forEach(function(R){this.append(R,S[R])},this)}y.prototype.append=function(S,R){S=p(S),R=h(R);var D=this.map[S];this.map[S]=D?D+", "+R:R},y.prototype.delete=function(S){delete this.map[p(S)]},y.prototype.get=function(S){return S=p(S),this.has(S)?this.map[S]:null},y.prototype.has=function(S){return this.map.hasOwnProperty(p(S))},y.prototype.set=function(S,R){this.map[p(S)]=h(R)},y.prototype.forEach=function(S,R){for(var D in this.map)this.map.hasOwnProperty(D)&&S.call(R,this.map[D],D,this)},y.prototype.keys=function(){var S=[];return this.forEach(function(R,D){S.push(D)}),g(S)},y.prototype.values=function(){var S=[];return this.forEach(function(R){S.push(R)}),g(S)},y.prototype.entries=function(){var S=[];return this.forEach(function(R,D){S.push([D,R])}),g(S)},l.iterable&&(y.prototype[Symbol.iterator]=y.prototype.entries);function w(S){if(S.bodyUsed)return Promise.reject(new TypeError("Already read"));S.bodyUsed=!0}function x(S){return new Promise(function(R,D){S.onload=function(){R(S.result)},S.onerror=function(){D(S.error)}})}function b(S){var R=new FileReader,D=x(R);return R.readAsArrayBuffer(S),D}function m(S){var R=new FileReader,D=x(R);return R.readAsText(S),D}function d(S){for(var R=new Uint8Array(S),D=new Array(R.length),L=0;L<R.length;L++)D[L]=String.fromCharCode(R[L]);return D.join("")}function v(S){if(S.slice)return S.slice(0);var R=new Uint8Array(S.byteLength);return R.set(new Uint8Array(S)),R.buffer}function _(){return this.bodyUsed=!1,this._initBody=function(S){this.bodyUsed=this.bodyUsed,this._bodyInit=S,S?typeof S=="string"?this._bodyText=S:l.blob&&Blob.prototype.isPrototypeOf(S)?this._bodyBlob=S:l.formData&&FormData.prototype.isPrototypeOf(S)?this._bodyFormData=S:l.searchParams&&URLSearchParams.prototype.isPrototypeOf(S)?this._bodyText=S.toString():l.arrayBuffer&&l.blob&&c(S)?(this._bodyArrayBuffer=v(S.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):l.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(S)||u(S))?this._bodyArrayBuffer=v(S):this._bodyText=S=Object.prototype.toString.call(S):this._bodyText="",this.headers.get("content-type")||(typeof S=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):l.searchParams&&URLSearchParams.prototype.isPrototypeOf(S)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},l.blob&&(this.blob=function(){var S=w(this);if(S)return S;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var S=w(this);return S||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(b)}),this.text=function(){var S=w(this);if(S)return S;if(this._bodyBlob)return m(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(d(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},l.formData&&(this.formData=function(){return this.text().then(A)}),this.json=function(){return this.text().then(JSON.parse)},this}var O=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function C(S){var R=S.toUpperCase();return O.indexOf(R)>-1?R:S}function k(S,R){if(!(this instanceof k))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');R=R||{};var D=R.body;if(S instanceof k){if(S.bodyUsed)throw new TypeError("Already read");this.url=S.url,this.credentials=S.credentials,R.headers||(this.headers=new y(S.headers)),this.method=S.method,this.mode=S.mode,this.signal=S.signal,!D&&S._bodyInit!=null&&(D=S._bodyInit,S.bodyUsed=!0)}else this.url=String(S);if(this.credentials=R.credentials||this.credentials||"same-origin",(R.headers||!this.headers)&&(this.headers=new y(R.headers)),this.method=C(R.method||this.method||"GET"),this.mode=R.mode||this.mode||null,this.signal=R.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&D)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(D),(this.method==="GET"||this.method==="HEAD")&&(R.cache==="no-store"||R.cache==="no-cache")){var L=/([?&])_=[^&]*/;if(L.test(this.url))this.url=this.url.replace(L,"$1_="+new Date().getTime());else{var N=/\?/;this.url+=(N.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}k.prototype.clone=function(){return new k(this,{body:this._bodyInit})};function A(S){var R=new FormData;return S.trim().split("&").forEach(function(D){if(D){var L=D.split("="),N=L.shift().replace(/\+/g," "),$=L.join("=").replace(/\+/g," ");R.append(decodeURIComponent(N),decodeURIComponent($))}}),R}function T(S){var R=new y,D=S.replace(/\r?\n[\t ]+/g," ");return D.split("\r").map(function(L){return L.indexOf(`
8`)===0?L.substr(1,L.length):L}).forEach(function(L){var N=L.split(":"),$=N.shift().trim();if($){var B=N.join(":").trim();R.append($,B)}}),R}_.call(k.prototype);function M(S,R){if(!(this instanceof M))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');R||(R={}),this.type="default",this.status=R.status===void 0?200:R.status,this.ok=this.status>=200&&this.status<300,this.statusText=R.statusText===void 0?"":""+R.statusText,this.headers=new y(R.headers),this.url=R.url||"",this._initBody(S)}_.call(M.prototype),M.prototype.clone=function(){return new M(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},M.error=function(){var S=new M(null,{status:0,statusText:""});return S.type="error",S};var I=[301,302,303,307,308];M.redirect=function(S,R){if(I.indexOf(R)===-1)throw new RangeError("Invalid status code");return new M(null,{status:R,headers:{location:S}})},s.DOMException=a.DOMException;try{new s.DOMException}catch{s.DOMException=function(R,D){this.message=R,this.name=D;var L=Error(R);this.stack=L.stack},s.DOMException.prototype=Object.create(Error.prototype),s.DOMException.prototype.constructor=s.DOMException}function P(S,R){return new Promise(function(D,L){var N=new k(S,R);if(N.signal&&N.signal.aborted)return L(new s.DOMException("Aborted","AbortError"));var $=new XMLHttpRequest;function B(){$.abort()}$.onload=function(){var W={status:$.status,statusText:$.statusText,headers:T($.getAllResponseHeaders()||"")};W.url="responseURL"in $?$.responseURL:W.headers.get("X-Request-URL");var F="response"in $?$.response:$.responseText;setTimeout(function(){D(new M(F,W))},0)},$.onerror=function(){setTimeout(function(){L(new TypeError("Network request failed"))},0)},$.ontimeout=function(){setTimeout(function(){L(new TypeError("Network request failed"))},0)},$.onabort=function(){setTimeout(function(){L(new s.DOMException("Aborted","AbortError"))},0)};function V(W){try{return W===""&&a.location.href?a.location.href:W}catch{return W}}$.open(N.method,V(N.url),!0),N.credentials==="include"?$.withCredentials=!0:N.credentials==="omit"&&($.withCredentials=!1),"responseType"in $&&(l.blob?$.responseType="blob":l.arrayBuffer&&N.headers.get("Content-Type")&&N.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&($.responseType="arraybuffer")),R&&typeof R.headers=="object"&&!(R.headers instanceof y)?Object.getOwnPropertyNames(R.headers).forEach(function(W){$.setRequestHeader(W,h(R.headers[W]))}):N.headers.forEach(function(W,F){$.setRequestHeader(F,W)}),N.signal&&(N.signal.addEventListener("abort",B),$.onreadystatechange=function(){$.readyState===4&&N.signal.removeEventListener("abort",B)}),$.send(typeof N._bodyInit>"u"?null:N._bodyInit)})}return P.polyfill=!0,a.fetch||(a.fetch=P,a.Headers=y,a.Request=k,a.Response=M),s.Headers=y,s.Request=k,s.Response=M,s.fetch=P,s})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=n.fetch?n:r;t=i.fetch,t.default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t})(Bs,Bs.exports)),Bs.exports}var jb=rT();const iT=ut(jb),oT=Tt({__proto__:null,default:iT},[jb]);function ri(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(f){try{c(r.next(f))}catch(u){s(u)}}function l(f){try{c(r.throw(f))}catch(u){s(u)}}function c(f){f.done?o(f.value):i(f.value).then(a,l)}c((r=r.apply(e,t||[])).next())})}const sT
vendor: 41,168 bytes, line 8
8=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function 
vendor: 18,262 bytes, lines 8-12
8Ti(e,t,n){const r=aT(e),{webkitRelativePath:i}=e,o=typeof t=="string"?t:typeof i=="string"&&i.length>0?i:`./${e.name}`;return typeof r.path!="string"&&Tm(r,"path",o),Tm(r,"relativePath",o),r}function aT(e){const{name:t}=e;if(t&&t.lastIndexOf(".")!==-1&&!e.type){const r=t.split(".").pop().toLowerCase(),i=sT.get(r);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}function Tm(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}const lT=[".DS_Store","Thumbs.db"];function cT(e){return ri(this,void 0,void 0,function*(){return nl(e)&&uT(e.dataTransfer)?hT(e.dataTransfer,e.type):fT(e)?dT(e):Array.isArray(e)&&e.every(t=>"getFile"in t&&typeof t.getFile=="function")?pT(e):[]})}function uT(e){return nl(e)}function fT(e){return nl(e)&&nl(e.target)}function nl(e){return typeof e=="object"&&e!==null}function dT(e){return Af(e.target.files).map(t=>Ti(t))}function pT(e){return ri(this,void 0,void 0,function*(){return(yield Promise.all(e.map(n=>n.getFile()))).map(n=>Ti(n))})}function hT(e,t){return ri(this,void 0,void 0,function*(){if(e.items){const n=Af(e.items).filter(i=>i.kind==="file");if(t!=="drop")return n;const r=yield Promise.all(n.map(mT));return Am($b(r))}return Am(Af(e.files).map(n=>Ti(n)))})}function Am(e){return e.filter(t=>lT.indexOf(t.name)===-1)}function Af(e){if(e===null)return[];const t=[];for(let n=0;n<e.length;n++){const r=e[n];t.push(r)}return t}function mT(e){if(typeof e.webkitGetAsEntry!="function")return Lm(e);const t=e.webkitGetAsEntry();return t&&t.isDirectory?Fb(t):Lm(e,t)}function $b(e){return e.reduce((t,n)=>[...t,...Array.isArray(n)?$b(n):[n]],[])}function Lm(e,t){return ri(this,void 0,void 0,function*(){var n;if(globalThis.isSecureContext&&typeof e.getAsFileSystemHandle=="function"){const o=yield e.getAsFileSystemHandle();if(o===null)throw new Error(`${e} is not a File`);if(o!==void 0){const s=yield o.getFile();return s.handle=o,Ti(s)}}const r=e.getAsFile();if(!r)throw new Error(`${e} is not a File`);return Ti(r,(n=t?.fullPath)!==null&&n!==void 0?n:void 0)})}function gT(e){return ri(this,void 0,void 0,function*(){return e.isDirectory?Fb(e):vT(e)})}function Fb(e){const t=e.createReader();return new Promise((n,r)=>{const i=[];function o(){t.readEntries(s=>ri(this,void 0,void 0,function*(){if(s.length){const a=Promise.all(s.map(gT));i.push(a),o()}else try{const a=yield Promise.all(i);n(a)}catch(a){r(a)}}),s=>{r(s)})}o()})}function vT(e){return ri(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(r=>{const i=Ti(r,e.fullPath);t(i)},r=>{n(r)})})})}var Vs={},Mm;function yT(){return Mm||(Mm=1,Vs.__esModule=!0,Vs.default=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var r=e.name||"",i=(e.type||"").toLowerCase(),o=i.replace(/\/.*$/,"");return n.some(function(s){var a=s.trim().toLowerCase();return a.charAt(0)==="."?r.toLowerCase().endsWith(a):a.endsWith("/*")?o===a.replace(/\/.*$/,""):i===a})}return!0}),Vs}var bT=yT();const Bc=ut(bT);function Im(e){return ET(e)||xT(e)||Vb(e)||wT()}function wT(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
9In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xT(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ET(e){if(Array.isArray(e))return Lf(e)}function Dm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Nm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Dm(Object(n),!0).forEach(function(r){Bb(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jo(e,t){return OT(e)||ST(e,t)||Vb(e,t)||_T()}function _T(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
10In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vb(e,t){if(e){if(typeof e=="string")return Lf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Lf(e,t)}}function Lf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ST(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,s,a;try{for(n=n.call(e);!(i=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,a=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function OT(e){if(Array.isArray(e))return e}var PT=typeof Bc=="function"?Bc:Bc.default,CT="file-invalid-type",RT="file-too-large",kT="file-too-small",TT="too-many-files",AT=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=t.split(","),r=n.length>1?"one of ".concat(n.join(", ")):n[0];return{code:CT,message:"File type must be ".concat(r)}},jm=function(t){return{code:RT,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},$m=function(t){return{code:kT,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},LT={code:TT,message:"Too many files"};function MT(e){return e.type===""&&typeof e.getAsFile=="function"}function Hb(e,t){var n=e.type==="application/x-moz-file"||PT(e,t)||MT(e);return[n,n?null:AT(t)]}function zb(e,t,n){if(Ar(e.size))if(Ar(t)&&Ar(n)){if(e.size>n)return[!1,jm(n)];if(e.size<t)return[!1,$m(t)]}else{if(Ar(t)&&e.size<t)return[!1,$m(t)];if(Ar(n)&&e.size>n)return[!1,jm(n)]}return[!0,null]}function Ar(e){return e!=null}function IT(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,o=e.multiple,s=e.maxFiles,a=e.validator;return!o&&t.length>1||o&&s>=1&&t.length>s?!1:t.every(function(l){var c=Hb(l,n),f=jo(c,1),u=f[0],p=zb(l,r,i),h=jo(p,1),g=h[0],y=a?a(l):null;return u&&g&&!y})}function rl(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function ro(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Fm(e){e.preventDefault()}function DT(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function NT(e){return e.indexOf("Edge/")!==-1}function jT(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return DT(e)||NT(e)}function Nn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var i=arguments.length,o=new Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];return t.some(function(a){return!rl(r)&&a&&a.apply(void 0,[r].concat(o)),rl(r)})}}function $T(){return"showOpenFilePicker"in window}function FT(e){if(Ar(e)){var t=Object.entries(e).filter(function(n){var r=jo(n,2),i=r[0],o=r[1],s=!0;return Ub(i)||(console.warn('Skipped "'.concat(i,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),s=!1),(!Array.isArray(o)||!o.every(Wb))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),s=!1),s}).reduce(function(n,r){var i=jo(r,2),o=i[0],s=i[1];return Nm(Nm({},n),{},Bb({},o,s))},{});return[{description:"Files",accept:t}]}return e}function BT(e){if(Ar(e))return Object.entries(e).reduce(function(t,n){var r=jo(n,2),i=r[0],o=r[1];return[].concat(Im(t),[i],Im(o))},[]).filter(function(t){return Ub(t)||Wb(t)}).join(",")}function VT(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function HT(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function Ub(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||e==="application/*"||/\w+\/[-+.\w]+/g.test(e)}function Wb(e){return/^.*\.[\w]+$/.test(e)}var zT=["children"],UT=["open"],WT=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],qT=["refKey","onChange","onClick"];function Bm(e){return XT(e)||KT(e)||qb(e)||YT()}function YT(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
11In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function KT(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function XT(e){if(Array.isArray(e))return Mf(e)}function Vc(e,t){return QT(e)||ZT(e,t)||qb(e,t)||GT()}function GT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
12In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qb(e,t){if(e){if(typeof e=="string")return Mf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mf(e,t)}}function Mf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ZT(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,s,a;try{for(n=n.call(e);!(i=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,a=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function QT(e){if(Array.isArray(e))return e}function Vm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ze(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Vm(Object(n),!0).forEach(function(r){If(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function If(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function il(e,t){if(e==null)return{};var n=JT(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function JT(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var qd=E.forwardRef(function(e,t){var n=e.children,r=il(e,zT),i=eA(r),o=i.open,s=il(i,UT);return E.useImperativeHandle(t,function(){return{open:o}},[o]),Ae.createElement(E.Fragment,null,n(Ze(Ze({},s),{},{open:o})))});qd.displayName="Dropzone";var Yb={disabled:!1,getFilesFromEvent:cT,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};qd.defaultProps=Yb;qd.propTypes={children:ge.func,accept:ge.objectOf(ge.arrayOf(ge.string)),multiple:ge.bool,preventDropOnDocument:ge.bool,noClick:ge.bool,noKeyboard:ge.bool,noDrag:ge.bool,noDragEventsBubbling:ge.bool,minSize:ge.number,maxSize:ge.number,maxFiles:ge.number,disabled:ge.bool,getFilesFromEvent:ge.func,onFileDialogCancel:ge.func,onFileDialogOpen:ge.func,useFsAccessApi:ge.bool,autoFocus:ge.bool,onDragEnter:ge.func,onDragLeave:ge.func,onDragOver:ge.func,onDrop:ge.func,onDropAccepted:ge.func,onDropRejected:ge.func,onError:ge.func,validator:ge.func};var Df={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,isDragGlobal:!1,acceptedFiles:[],fileRejections:[]};function eA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Ze(Ze({},Yb),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,o=t.maxSize,s=t.minSize,a=t.multiple,l=t.maxFiles,c=t.onDragEnter,f=t.onDragLeave,u=t.onDragOver,p=t.onDrop,h=t.onDropAccepted,g=t.onDropRejected,y=t.onFileDialogCancel,w=t.onFileDialogOpen,x=t.useFsAccessApi,b=t.autoFocus,m=t.preventDropOnDocument,d=t.noClick,v=t.noKeyboard,_=t.noDrag,O=t.noDragEventsBubbling,C=t.onError,k=t.validator,A=E.useMemo(function(){return BT(n)},[n]),T=E.useMemo(function(){return FT(n)},[n]),M=E.useMemo(function(){return typeof w=="function"?w:Hm},[w]),I=E.useMemo(function(){return typeof y=="function"?y:Hm},[y]),P=E.useRef(null),S=E.useRef(null),R=E.useReducer(tA,Df),D=Vc(R,2),L=D[0],N=D[1],$=L.isFocused,B=L.isFileDialogActive,V=E.useRef(typeof window<"u"&&window.isSecureContext&&x&&$T()),W=function(){!V.current&&B&&setTimeout(function(){if(S.current){var oe=S.current.files;oe.length||(N({type:"closeDialog"}),I())}},300)};E.useEffect(function(){return window.addEventListener("focus",W,!1),function(){window.removeEventListener("focus",W,!1)}},[S,B,I,V]);var F=E.useRef([]),j=E.useRef([]),H=function(oe){P.current&&P.current.contains(oe.target)||(oe.preventDefault(),F.current=[])};E.useEffect(function(){return m&&(document.addEventListener("dragover",Fm,!1),document.addEventListener("drop",H,!1)),function(){m&&(document.removeEventListener("dragover",Fm),document.removeEventListener("drop",H))}},[P,m]),E.useEffect(function(){var ne=function(Ye){j.current=[].concat(Bm(j.current),[Ye.target]),ro(Ye)&&N({isDragGlobal:!0,type:"setDragGlobal"})},oe=function(Ye){j.current=j.current.filter(function(Qe){return Qe!==Ye.target&&Qe!==null}),!(j.current.length>0)&&N({isDragGlobal:!1,type:"setDragGlobal"})},be=function(){j.current=[],N({isDragGlobal:!1,type:"setDragGlobal"})},Te=function(){j.current=[],N({isDragGlobal:!1,type:"setDragGlobal"})};return document.addEventListener("dragenter",ne,!1),document.addEventListener("dragleave",oe,!1),document.addEventListener("dragend",be,!1),document.addEventListener("drop",Te,!1),function(){document.removeEventListener("dragenter",ne),document.removeEventListener("dragleave",oe),document.removeEventListener("dragend",be),document.removeEventListener("drop",Te)}},[P]),E.useEffect(function(){return!r&&b&&P.current&&P.current.focus(),function(){}},[P,b,r]);var z=E.useCallback(function(ne){C?C(ne):console.error(ne)},[C]),U=E.useCallback(function(ne){ne.preventDefault(),ne.persist(),Ce(ne),F.current=[].concat(Bm(F.current),[ne.target]),ro(ne)&&Promise.resolve(i(ne)).then(function(oe){if(!(rl(ne)&&!O)){var be=oe.length,Te=be>0&&IT({files:oe,accept:A,minSize:s,maxSize:o,multiple:a,maxFiles:l,validator:k}),Ve=be>0&&!Te;N({isDragAccept:Te,isDragReject:Ve,isDragActive:!0,type:"setDraggedFiles"}),c&&c(ne)}}).catch(function(oe){return z(oe)})},[i,c,z,O,A,s,o,a,l,k]),Y=E.useCallback(function(ne){ne.preventDefault(),ne.persist(),Ce(ne);var oe=ro(ne);if(oe&&ne.dataTransfer)try{ne.dataTransfer.dropEffect="copy"}catch{}return oe&&u&&u(ne),!1},[u,O]),X=E.useCallback(function(ne){ne.preventDefault(),ne.persist(),Ce(ne);var oe=F.current.filter(function(Te){return P.current&&P.current.contains(Te)}),be=oe.indexOf(ne.target);be!==-1&&oe.splice(be,1),F.current=oe,!(oe.length>0)&&(N({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),ro(ne)&&f&&f(ne))},[P,f,O]),Q=E.useCallback(function(ne,oe){var be=[],Te=[];ne.forEach(function(Ve){var Ye=Hb(Ve,A),Qe=Vc(Ye,2),Lt=Qe[0],Et=Qe[1],Z=zb(Ve,s,o),ee=Vc(Z,2),se=ee[0],Re=ee[1],Ee=k?k(Ve):null;if(Lt&&se&&!Ee)be.push(Ve);else{var He=[Et,Re];Ee&&(He=He.concat(Ee)),Te.push({file:Ve,errors:He.filter(function(Ke){return Ke})})}}),(!a&&be.length>1||a&&l>=1&&be.length>l)&&(be.forEach(function(Ve){Te.push({file:Ve,errors:[LT]})}),be.splice(0)),N({acceptedFiles:be,fileRejections:Te,isDragReject:Te.length>0,type:"setFiles"}),p&&p(be,Te,oe),Te.length>0&&g&&g(Te,oe),be.length>0&&h&&h(be,oe)},[N,a,A,s,o,l,p,h,g,k]),J=E.useCallback(function(ne){ne.preventDefault(),ne.persist(),Ce(ne),F.current=[],ro(ne)&&Promise.resolve(i(ne)).then(function(oe){rl(ne)&&!O||Q(oe,ne)}).catch(function(oe){return z(oe)}),N({type:"reset"})},[i,Q,z,O]),re=E.useCallback(function(){if(V.current){N({type:"openDialog"}),M();var ne={multiple:a,types:T};window.showOpenFilePicker(ne).then(function(oe){return i(oe)}).then(function(oe){Q(oe,null),N({type:"closeDialog"})}).catch(function(oe){VT(oe)?(I(oe),N({type:"closeDialog"})):HT(oe)?(V.current=!1,S.current?(S.current.value=null,S.current.click()):z(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):z(oe)});return}S.current&&(N({type:"openDialog"}),M(),S.current.value=null,S.current.click())},[N,M,I,x,Q,z,T,a]),ue=E.useCallback(function(ne){!P.current||!P.current.isEqualNode(ne.target)||(ne.key===" "||ne.key==="Enter"||ne.keyCode===32||ne.keyCode===13)&&(ne.preventDefault(),re())},[P,re]),ce=E.useCallback(function(){N({type:"focus"})},[]),xe=E.useCallback(function(){N({type:"blur"})},[]),Oe=E.useCallback(function(){d||(jT()?setTimeout(re,0):re())},[d,re]),Ie=function(oe){return r?null:oe},Be=function(oe){return v?null:Ie(oe)},De=function(oe){return _?null:Ie(oe)},Ce=function(oe){O&&oe.stopPropagation()},nt=E.useMemo(function(){return function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},oe=ne.refKey,be=oe===void 0?"ref":oe,Te=ne.role,Ve=ne.onKeyDown,Ye=ne.onFocus,Qe=ne.onBlur,Lt=ne.onClick,Et=ne.onDragEnter,Z=ne.onDragOver,ee=ne.onDragLeave,se=ne.onDrop,Re=il(ne,WT);return Ze(Ze(If({onKeyDown:Be(Nn(Ve,ue)),onFocus:Be(Nn(Ye,ce)),onBlur:Be(Nn(Qe,xe)),onClick:Ie(Nn(Lt,Oe)),onDragEnter:De(Nn(Et,U)),onDragOver:De(Nn(Z,Y)),onDragLeave:De(Nn(ee,X)),onDrop:De(Nn(se,J)),role:typeof Te=="string"&&Te!==""?Te:"presentation"},be,P),!r&&!v?{tabIndex:0}:{}),Re)}},[P,ue,ce,xe,Oe,U,Y,X,J,v,_,r]),ot=E.useCallback(function(ne){ne.stopPropagation()},[]),st=E.useMemo(function(){return function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}
12,oe=ne.refKey,be=oe===void 0?"ref":oe,Te=ne.onChange,Ve=ne.onClick,Ye=il(ne,qT),Qe=If({accept:A,multiple:a,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:Ie(Nn(Te,J)),onClick:Ie(Nn(Ve,ot)),tabIndex:-1},be,S);return Ze(Ze({},Qe),Ye)}},[S,n,a,J,r]);return Ze(Ze({},L),{},{isFocused:$&&!r,getRootProps:nt,getInputProps:st,rootRef:P,inputRef:S,open:Ie(re)})}function tA(e,t){switch(t.type){case"focus":return Ze(Ze({},e),{},{isFocused:!0});case"blur":return Ze(Ze({},e),{},{isFocused:!1});case"openDialog":return Ze(Ze({},Df),{},{isFileDialogActive:!0});case"closeDialog":return Ze(Ze({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Ze(Ze({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Ze(Ze({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"setDragGlobal":return Ze(Ze({},e),{},{isDragGlobal:t.isDragGlobal});case"reset":return Ze({},Df);default:return e}}function Hm(){}function Gr(e){"@babel/helpers - typeof";return Gr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gr(e)}function nA(e,t){if(Gr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Gr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Kb(e){var t=nA(e,"string");return Gr(t)=="symbol"?t:t+""}function yo(e,t,n){return(t=Kb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ye(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zm(Object(n),!0).forEach(function(r){yo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rA(e){if(Array.isArray(e))return e}function iA(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(f){c=!0,i=f}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}function Nf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Xb(e,t){if(e){if(typeof e=="string")return Nf(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nf(e,t):void 0}}function oA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
13In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sr(e,t){return rA(e)||iA(e,t)||Xb(e,t)||oA()}function sA(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function fr(e,t){if(e==null)return{};var n,r,i=sA(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var aA=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function lA(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,i=r===void 0?!1:r,o=e.defaultValue,s=o===void 0?null:o,a=e.inputValue,l=e.menuIsOpen,c=e.onCh
vendor: 4,012 bytes, lines 13-14
13ange,f=e.onInputChange,u=e.onMenuClose,p=e.onMenuOpen,h=e.value,g=fr(e,aA),y=E.useState(a!==void 0?a:n),w=sr(y,2),x=w[0],b=w[1],m=E.useState(l!==void 0?l:i),d=sr(m,2),v=d[0],_=d[1],O=E.useState(h!==void 0?h:s),C=sr(O,2),k=C[0],A=C[1],T=E.useCallback(function(L,N){typeof c=="function"&&c(L,N),A(L)},[c]),M=E.useCallback(function(L,N){var $;typeof f=="function"&&($=f(L,N)),b($!==void 0?$:L)},[f]),I=E.useCallback(function(){typeof p=="function"&&p(),_(!0)},[p]),P=E.useCallback(function(){typeof u=="function"&&u(),_(!1)},[u]),S=a!==void 0?a:x,R=l!==void 0?l:v,D=h!==void 0?h:k;return ye(ye({},g),{},{inputValue:S,menuIsOpen:R,onChange:T,onInputChange:M,onMenuClose:P,onMenuOpen:I,value:D})}function we(){return we=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},we.apply(null,arguments)}function cA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Um(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Kb(r.key),r)}}function uA(e,t,n){return t&&Um(e.prototype,t),n&&Um(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function jf(e,t){return jf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},jf(e,t)}function fA(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jf(e,t)}function ol(e){return ol=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ol(e)}function Gb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Gb=function(){return!!e})()}function dA(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pA(e,t){if(t&&(Gr(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dA(e)}function hA(e){var t=Gb();return function(){var n,r=ol(e);if(t){var i=ol(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return pA(this,n)}}function mA(e){if(Array.isArray(e))return Nf(e)}function gA(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vA(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
14In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yd(e){return mA(e)||gA(e)||Xb(e)||vA()}function yA(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function bA(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var wA=(function(){function e(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(bA(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=yA(i);try{o.insertRule(r,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++}
vendor: 5,049 bytes, line 14
14,t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e})(),Ct="-ms-",sl="-moz-",$e="-webkit-",Zb="comm",Kd="rule",Xd="decl",xA="@import",Qb="@keyframes",EA="@layer",_A=Math.abs,Gl=String.fromCharCode,SA=Object.assign;function OA(e,t){return St(e,0)^45?(((t<<2^St(e,0))<<2^St(e,1))<<2^St(e,2))<<2^St(e,3):0}function Jb(e){return e.trim()}function PA(e,t){return(e=t.exec(e))?e[0]:e}function Fe(e,t,n){return e.replace(t,n)}function $f(e,t){return e.indexOf(t)}function St(e,t){return e.charCodeAt(t)|0}function $o(e,t,n){return e.slice(t,n)}function $n(e){return e.length}function Gd(e){return e.length}function Hs(e,t){return t.push(e),e}function CA(e,t){return e.map(t).join("")}var Zl=1,Ai=1,ew=0,Xt=0,mt=0,Ki="";function Ql(e,t,n,r,i,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Zl,column:Ai,length:s,return:""}}function io(e,t){return SA(Ql("",null,null,"",null,null,0),e,{length:-e.length},t)}function RA(){return mt}function kA(){return mt=Xt>0?St(Ki,--Xt):0,Ai--,mt===10&&(Ai=1,Zl--),mt}function ln(){return mt=Xt<ew?St(Ki,Xt++):0,Ai++,mt===10&&(Ai=1,Zl++),mt}function qn(){return St(Ki,Xt)}function xa(){return Xt}function us(e,t){return $o(Ki,e,t)}function Fo(e){switch(e){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 tw(e){return Zl=Ai=1,ew=$n(Ki=e),Xt=0,[]}function nw(e){return Ki="",e}function Ea(e){return Jb(us(Xt-1,Ff(e===91?e+2:e===40?e+1:e)))}function TA(e){for(;(mt=qn())&&mt<33;)ln();return Fo(e)>2||Fo(mt)>3?"":" "}function AA(e,t){for(;--t&&ln()&&!(mt<48||mt>102||mt>57&&mt<65||mt>70&&mt<97););return us(e,xa()+(t<6&&qn()==32&&ln()==32))}function Ff(e){for(;ln();)switch(mt){case e:return Xt;case 34:case 39:e!==34&&e!==39&&Ff(mt);break;case 40:e===41&&Ff(e);break;case 92:ln();break}return Xt}function LA(e,t){for(;ln()&&e+mt!==57;)if(e+mt===84&&qn()===47)break;return"/*"+us(t,Xt-1)+"*"+Gl(e===47?e:ln())}function MA(e){for(;!Fo(qn());)ln();return us(e,Xt)}function IA(e){return nw(_a("",null,null,null,[""],e=tw(e),0,[0],e))}function _a(e,t,n,r,i,o,s,a,l){for(var c=0,f=0,u=s,p=0,h=0,g=0,y=1,w=1,x=1,b=0,m="",d=i,v=o,_=r,O=m;w;)switch(g=b,b=ln()){case 40:if(g!=108&&St(O,u-1)==58){$f(O+=Fe(Ea(b),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:O+=Ea(b);break;case 9:case 10:case 13:case 32:O+=TA(g);break;case 92:O+=AA(xa()-1,7);continue;case 47:switch(qn()){case 42:case 47:Hs(DA(LA(ln(),xa()),t,n),l);break;default:O+="/"}break;case 123*y:a[c++]=$n(O)*x;case 125*y:case 59:case 0:switch(b){case 0:case 125:w=0;case 59+f:x==-1&&(O=Fe(O,/\f/g,"")),h>0&&$n(O)-u&&Hs(h>32?qm(O+";",r,n,u-1):qm(Fe(O," ","")+";",r,n,u-2),l);break;case 59:O+=";";default:if(Hs(_=Wm(O,t,n,c,f,i,a,m,d=[],v=[],u),o),b===123)if(f===0)_a(O,t,_,_,d,o,u,a,v);else switch(p===99&&St(O,3)===110?100:p){case 100:case 108:case 109:case 115:_a(e,_,_,r&&Hs(Wm(e,_,_,0,0,i,a,m,i,d=[],u),v),i,v,u,a,r?d:v);break;default:_a(O,_,_,_,[""],v,0,a,v)}}c=f=h=0,y=x=1,m=O="",u=s;break;case 58:u=1+$n(O),h=g;default:if(y<1){if(b==123)--y;else if(b==125&&y++==0&&kA()==125)continue}switch(O+=Gl(b),b*y){case 38:x=f>0?1:(O+="\f",-1);break;case 44:a[c++]=($n(O)-1)*x,x=1;break;case 64:qn()===45&&(O+=Ea(ln())),p=qn(),f=u=$n(m=O+=MA(xa())),b++;break;case 45:g===45&&$n(O)==2&&(y=0)}}return o}function Wm(e,t,n,r,i,o,s,a,l,c,f){for(var u=i-1,p=i===0?o:[""],h=Gd(p),g=0,y=0,w=0;g<r;++g)for(var x=0,b=$o(e,u+1,u=_A(y=s[g])),m=e;x<h;++x)(m=Jb(y>0?p[x]+" "+b:Fe(b,/&\f/g,p[x])))&&(l[w++]=m);return Ql(e,t,n,i===0?Kd:a,l,c,f)}function DA(e,t,n){return Ql(e,t,n,Zb,Gl(RA()),$o(e,2,-2),0)}function qm(e,t,n,r){return Ql(e,t,n,Xd,$o(e,0,r),$o(e,r+1,-1),r)}function bi(e,t){for(var n="",r=Gd(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function NA(e,t,n,r){switch(e.type){case EA:if(e.children.length)break;case xA:case Xd:return e.return=e.return||e.value;case Zb:return"";case Qb:return e.return=e.value+"{"+bi(e.children,r)+"}";case Kd:e.value=e.props.join(",")}return $n(n=bi(e.children,r))?e.return=e.value+"{"+n+"}":""}function jA(e){var t=Gd(e);return function(n,r,i,o){for(var s="",a=0;a<t;a++)s+=e[a](n,r,i,o)||"";return s}}function $A(e){return function(t){t.root||(t=t.return)&&e(t)}}function FA(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var BA=function(t,n,r){for(var i=0,o=0;i=o,o=qn(),i===38&&o===12&&(n[r]=1),!Fo(o);)ln();return us(t,Xt)},VA=function(t,n){var r=-1,i=44;do switch(Fo(i)){case 0:i===38&&qn()===12&&(n[r]=1),t[r]+=BA(Xt-1,n,r);break;case 2:t[r]+=Ea(i);break;case 4:if(i===44){t[++r]=qn()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Gl(i)}while(i=ln());return t},HA=function(t,n){return nw(VA(tw(t),n))},Ym=new WeakMap,zA=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;
vendor: 6,994 bytes, line 14
14if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Ym.get(r))&&!i){Ym.set(t,!0);for(var o=[],s=HA(n,o),a=r.props,l=0,c=0;l<s.length;l++)for(var f=0;f<a.length;f++,c++)t.props[c]=o[l]?s[l].replace(/&\f/g,a[f]):a[f]+" "+s[l]}}},UA=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function rw(e,t){switch(OA(e,t)){case 5103:return $e+"print-"+e+e;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 $e+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $e+e+sl+e+Ct+e+e;case 6828:case 4268:return $e+e+Ct+e+e;case 6165:return $e+e+Ct+"flex-"+e+e;case 5187:return $e+e+Fe(e,/(\w+).+(:[^]+)/,$e+"box-$1$2"+Ct+"flex-$1$2")+e;case 5443:return $e+e+Ct+"flex-item-"+Fe(e,/flex-|-self/,"")+e;case 4675:return $e+e+Ct+"flex-line-pack"+Fe(e,/align-content|flex-|-self/,"")+e;case 5548:return $e+e+Ct+Fe(e,"shrink","negative")+e;case 5292:return $e+e+Ct+Fe(e,"basis","preferred-size")+e;case 6060:return $e+"box-"+Fe(e,"-grow","")+$e+e+Ct+Fe(e,"grow","positive")+e;case 4554:return $e+Fe(e,/([^-])(transform)/g,"$1"+$e+"$2")+e;case 6187:return Fe(Fe(Fe(e,/(zoom-|grab)/,$e+"$1"),/(image-set)/,$e+"$1"),e,"")+e;case 5495:case 3959:return Fe(e,/(image-set\([^]*)/,$e+"$1$`$1");case 4968:return Fe(Fe(e,/(.+:)(flex-)?(.*)/,$e+"box-pack:$3"+Ct+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+$e+e+e;case 4095:case 3583:case 4068:case 2532:return Fe(e,/(.+)-inline(.+)/,$e+"$1$2")+e;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($n(e)-1-t>6)switch(St(e,t+1)){case 109:if(St(e,t+4)!==45)break;case 102:return Fe(e,/(.+:)(.+)-([^]+)/,"$1"+$e+"$2-$3$1"+sl+(St(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~$f(e,"stretch")?rw(Fe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(St(e,t+1)!==115)break;case 6444:switch(St(e,$n(e)-3-(~$f(e,"!important")&&10))){case 107:return Fe(e,":",":"+$e)+e;case 101:return Fe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$e+(St(e,14)===45?"inline-":"")+"box$3$1"+$e+"$2$3$1"+Ct+"$2box$3")+e}break;case 5936:switch(St(e,t+11)){case 114:return $e+e+Ct+Fe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $e+e+Ct+Fe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $e+e+Ct+Fe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return $e+e+Ct+e+e}return e}var WA=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Xd:t.return=rw(t.value,t.length);break;case Qb:return bi([io(t,{value:Fe(t.value,"@","@"+$e)})],i);case Kd:if(t.length)return CA(t.props,function(o){switch(PA(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return bi([io(t,{props:[Fe(o,/:(read-\w+)/,":"+sl+"$1")]})],i);case"::placeholder":return bi([io(t,{props:[Fe(o,/:(plac\w+)/,":"+$e+"input-$1")]}),io(t,{props:[Fe(o,/:(plac\w+)/,":"+sl+"$1")]}),io(t,{props:[Fe(o,/:(plac\w+)/,Ct+"input-$1")]})],i)}return""})}},qA=[WA],YA=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var w=y.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var i=t.stylisPlugins||qA,o={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var w=y.getAttribute("data-emotion").split(" "),x=1;x<w.length;x++)o[w[x]]=!0;a.push(y)});var l,c=[zA,UA];{var f,u=[NA,$A(function(y){f.insert(y)})],p=jA(c.concat(i,u)),h=function(w){return bi(IA(w),p)};l=function(w,x,b,m){f=b,h(w?w+"{"+x.styles+"}":x.styles),m&&(g.inserted[x.name]=!0)}}var g={key:n,sheet:new wA({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:l};return g.sheet.hydrate(a),g},Hc={exports:{}},Ue={};var Km;function KA(){if(Km)return Ue;Km=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function m(v){if(typeof v=="object"&&v!==null){var _=v.$$typeof;switch(_){case t:switch(v=v.type,v){case l:case c:case r:case o:case i:case u:return v;default:switch(v=v&&v.$$typeof,v){case a:case f:case g:case h:case s:return v;default:return _}}case n:return _}}}function d(v){return m(v)===c}return Ue.AsyncMode=l,Ue.ConcurrentMode=c,Ue.ContextConsumer=a,Ue.ContextProvider=s,Ue.Element=t,Ue.ForwardRef=f,Ue.Fragment=r,Ue.Lazy=g,Ue.Memo=h,Ue.Portal=n,Ue.Profiler=o,Ue.StrictMode=i,Ue.Suspense=u,Ue.isAsyncMode=function(v){return d(v)||m(v)===l},Ue.isConcurrentMode=d,Ue.isContextConsumer=function(v){return m(v)===a},Ue.isContextProvider=function(v){return m(v)===s},Ue.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===t},Ue.isForwardRef=function(v){return m(v)===f},Ue.isFragment=function(v){return m(v)===r},Ue.isLazy=function(v){return m(v)===g},Ue.isMemo=function(v){return m(v)===h},Ue.isPortal=function(v){return m(v)===n},Ue.isProfiler=function(v){return m(v)===o},Ue.isStrictMode=function(v){return m(v)===i},Ue.isSuspense=function(v){return m(v)===u},Ue.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===c||v===o||v===i||v===u||v===p||typeof v=="object"&&v!==null&&(v.$$typeof===g||v.$$typeof===h||v.$$typeof===s||v.$$typeof===a||v.$$typeof===f||v.$$typeof===w||v.$$typeof===x||v.$$typeof===b||v.$$typeof===y)},Ue.typeOf=m,Ue}var Xm;function XA(){return Xm||(Xm=1,Hc.exports=KA()),Hc.exports}var zc,Gm;function GA(){if(Gm)return zc;Gm=1;var e=XA(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[e.ForwardRef]=r,o[e.Memo]=i;function s(g){return e.isMemo(g)?i:o[g.$$typeof]||t}var a=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,p=Object.prototype;
vendor: 9,602 bytes, line 14
14function h(g,y,w){if(typeof y!="string"){if(p){var x=u(y);x&&x!==p&&h(g,x,w)}var b=l(y);c&&(b=b.concat(c(y)));for(var m=s(g),d=s(y),v=0;v<b.length;++v){var _=b[v];if(!n[_]&&!(w&&w[_])&&!(d&&d[_])&&!(m&&m[_])){var O=f(y,_);try{a(g,_,O)}catch{}}}}return g}return zc=h,zc}GA();var ZA=!0;function QA(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var iw=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||ZA===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},JA=function(t,n,r){iw(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function eL(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var tL={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},nL=/[A-Z]|^ms/g,rL=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ow=function(t){return t.charCodeAt(1)===45},Zm=function(t){return t!=null&&typeof t!="boolean"},Uc=FA(function(e){return ow(e)?e:e.replace(nL,"-$&").toLowerCase()}),Qm=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(rL,function(r,i,o){return Fn={name:i,styles:o,next:Fn},i})}return tL[t]!==1&&!ow(t)&&typeof n=="number"&&n!==0?n+"px":n};function Bo(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return Fn={name:i.name,styles:i.styles,next:Fn},i.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)Fn={name:s.name,styles:s.styles,next:Fn},s=s.next;var a=o.styles+";";return a}return iL(e,t,n)}case"function":{if(e!==void 0){var l=Fn,c=n(e);return Fn=l,Bo(e,t,c)}break}}var f=n;return f}function iL(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Bo(e,t,n[i])+";";else for(var o in n){var s=n[o];if(typeof s!="object"){var a=s;Zm(a)&&(r+=Uc(o)+":"+Qm(o,a)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&t==null)for(var l=0;l<s.length;l++)Zm(s[l])&&(r+=Uc(o)+":"+Qm(o,s[l])+";");else{var c=Bo(e,t,s);switch(o){case"animation":case"animationName":{r+=Uc(o)+":"+c+";";break}default:r+=o+"{"+c+"}"}}}return r}var Jm=/label:\s*([^\s;{]+)\s*(;|$)/g,Fn;function sw(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";Fn=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,i+=Bo(n,t,o);else{var s=o;i+=s[0]}for(var a=1;a<e.length;a++)if(i+=Bo(n,t,e[a]),r){var l=o;i+=l[a]}Jm.lastIndex=0;for(var c="",f;(f=Jm.exec(i))!==null;)c+="-"+f[1];var u=eL(i)+c;return{name:u,styles:i,next:Fn}}var oL=function(t){return t()},sL=La.useInsertionEffect?La.useInsertionEffect:!1,aL=sL||oL,aw=E.createContext(typeof HTMLElement<"u"?YA({key:"css"}):null);aw.Provider;var lL=function(t){return E.forwardRef(function(n,r){var i=E.useContext(aw);return t(n,i,r)})},cL=E.createContext({}),Zd={}.hasOwnProperty,Bf="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",uL=function(t,n){var r={};for(var i in n)Zd.call(n,i)&&(r[i]=n[i]);return r[Bf]=t,r},fL=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return iw(n,r,i),aL(function(){return JA(n,r,i)}),null},dL=lL(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Bf],o=[r],s="";typeof e.className=="string"?s=QA(t.registered,o,e.className):e.className!=null&&(s=e.className+" ");var a=sw(o,void 0,E.useContext(cL));s+=t.key+"-"+a.name;var l={};for(var c in e)Zd.call(e,c)&&c!=="css"&&c!==Bf&&(l[c]=e[c]);return l.className=s,n&&(l.ref=n),E.createElement(E.Fragment,null,E.createElement(fL,{cache:t,serialized:a,isStringTag:typeof i=="string"}),E.createElement(i,l))}),pL=dL,me=function(t,n){var r=arguments;if(n==null||!Zd.call(n,"css"))return E.createElement.apply(void 0,r);var i=r.length,o=new Array(i);o[0]=pL,o[1]=uL(t,n);for(var s=2;s<i;s++)o[s]=r[s];return E.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(me||(me={}));function Qd(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return sw(t)}function hL(){var e=Qd.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function mL(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Vf=E.useLayoutEffect,gL=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],al=function(){};function vL(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function yL(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=[].concat(r);if(t&&e)for(var s in t)t.hasOwnProperty(s)&&t[s]&&o.push("".concat(vL(e,s)));return o.filter(function(a){return a}).map(function(a){return String(a).trim()}).join(" ")}var eg=function(t){return CL(t)?t.filter(Boolean):Gr(t)==="object"&&t!==null?[t]:[]},lw=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=fr(t,gL);return ye({},n)},ct=function(t,n,r){var i=t.cx,o=t.getStyles,s=t.getClassNames,a=t.className;return{css:o(n,t),className:i(r??{},s(n,t),a)}};function Jl(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function bL(e){return Jl(e)?window.innerHeight:e.clientHeight}function cw(e){return Jl(e)?window.pageYOffset:e.scrollTop}function ll(e,t){if(Jl(e)){window.scrollTo(0,t);return}e.scrollTop=t}function wL(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function xL(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function zs(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:al,i=cw(e),o=t-i,s=10,a=0;function l(){a+=s;var c=xL(a,i,o,n);ll(e,c),a<n?window.requestAnimationFrame(l):r(e)}l()}function tg(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?ll(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&ll(e,Math.max(t.offsetTop-i,0))}function EL(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function ng(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function _L(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var uw=!1,SL={get passive(){return uw=!0}},Us=typeof window<"u"?window:{};Us.addEventListener&&Us.removeEventListener&&(Us.addEventListener("p",al,SL),Us.removeEventListener("p",al,!1));var OL=uw;function PL(e){return e!=null}function CL(e){return Array.isArray(e)}function Ws(e,t,n){return e?t:n}var RL=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=Object.entries(t).filter(function(s){var a=sr(s,1),l=a[0];return!r.includes(l)});return o.reduce(function(s,a){var l=sr(a,2),c=l[0],f=l[1];return s[c]=f,s},{})},kL=["children","innerProps"],TL=["children","innerProps"];function AL(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,s=e.isFixedPosition,a=e.controlHeight,l=wL(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var f=l.getBoundingClientRect(),u=f.height,p=n.getBoundingClientRect(),h=p.bottom,g=p.height,y=p.top,w=n.offsetParent.getBoundingClientRect(),x=w.top,b=s?window.innerHeight:bL(l),m=cw(l),d=parseInt(getComputedStyle(n).marginBottom,10),v=parseInt(getComputedStyle(n).marginTop,10),_=x-v,O=b-y,C=_+m,k=u-m-y,A=h-b+m+d,T=m+y-v,M=160;switch(i){case"auto":case"bottom":if(O>=g)return{placement:"bottom",maxHeight:t};if(k>=g&&!s)return o&&zs(l,A,M),{placement:"bottom",maxHeight:t};if(!s&&k>=r||s&&O>=r){o&&zs(l,A,M);var I=s?O-d:k-d;return{placement:"bottom",maxHeight:I}}if(i==="auto"||s){var P=t,S=s?_:C;return S>=r&&(P=Math.min(S-d-a,t)),{placement:"top",maxHeight:P}}if(i==="bottom")return o&&ll(l,A),{placement:"bottom",maxHeight:t};break;case"top":if(_>=g)return{placement:"top",maxHeight:t};if(C>=g&&!s)return o&&zs(l,T,M),{placement:"top",maxHeight:t};if(!s&&C>=r||s&&_>=r){var R=t;return(!s&&C>=r||s&&_>
14=r)&&(R=s?_-v:C-v),o&&zs(l,T,M),{placement:"top",maxHeight:R}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return c}function LL(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var fw=function(t){return t==="auto"?"bottom":t},ML=function(t,n){var r,i=t.placement,o=t.theme,s=o.borderRadius,a=o.spacing,l=o.colors;return ye((r={label:"menu"},yo(r,LL(i),"100%"),yo(r,"position","absolute"),yo(r,"width","100%"),yo(r,"zIndex",1),r),n?{}:{backgroundColor:l.neutral0,borderRadius:s,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},dw=E.createContext(null),IL=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,o=t.menuPlacement,s=t.menuPosition,a=t.menuShouldScrollIntoView,l=t.theme,c=E.useContext(dw)||{},f=c.setPortalPlacement,u=E.useRef(null),p=E.useState(i),h=sr(p,2),g=h[0],y=h[1],w=E.useState(null),x=sr(w,2),b=x[0],m=x[1],d=l.spacing.controlHeight;return Vf(function(){var v=u.current;if(v){var _=s==="fixed",O=a&&!_,C=AL({maxHeight:i,menuEl:v,minHeight:r,placement:o,shouldScroll:O,isFixedPosition:_,controlHeight:d});y(C.maxHeight),m(C.placement),f?.(C.placement)}},[i,o,s,a,r,f,d]),n({ref:u,placerProps:ye(ye({},t),{},{placement:b||fw(o),maxHeight:g})})},DL=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return me("div",we({},ct(t,"menu",{menu:!0}),{ref:r},i),n)},NL=DL,jL=function(t,n){var r=t.maxHeight,i=t.theme.spacing.baseUnit;return ye({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},$L=function(t){var n=t.children,r=t.innerProps,i=t.innerRef,o=t.isMulti;return me("div",we({},ct(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:i},r),n)},pw=function(t,n){var r=t.theme,i=r.spacing.baseUnit,o=r.colors;return ye({textAlign:"center"},n?{}:{color:o.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},FL=pw,BL=pw,VL=function(t){var n=t.children,r=n===void 0?"No options":n,i=t.innerProps,o=fr(t,kL);return me("div",we({},ct(ye(ye({},o),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},HL=function(t){var n=t.children,r=n===void 0?"Loading...":n,i=t.innerProps,o=fr(t,TL);return me("div",we({},ct(ye(ye({},o),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},zL=function(t){var n=t.rect,r=t.offset,i=t.position;return{left:n.left,position:i,top:r,width:n.width,zIndex:1}},UL=function(t){var n=t.appendTo,r=t.children,i=t.controlElement,o=t.innerProps,s=t.menuPlacement,a=t.menuPosition,l=E.useRef(null),c=E.useRef(null),f=E.useState(fw(s)),u=sr(f,2),p=u[0],h=u[1],g=E.useMemo(function(){return{setPortalPlacement:h}},[]),y=E.useState(null),w=sr(y,2),x=w[0],b=w[1],m=E.useCallback(function(){if(i){var O=EL(i),C=a==="fixed"?0:window.pageYOffset,k=O[p]+C;(k!==x?.offset||O.left!==x?.rect.left||O.width!==x?.rect.width)&&b({offset:k,rect:O})}},[i,a,p,x?.offset,x?.rect.left,x?.rect.width]);Vf(function(){m()},[m]);var d=E.useCallback(function(){typeof c.current=="function"&&(c.current(),c.current=null),i&&l.current&&(c.current=Cb(i,l.current,m,{elementResize:"ResizeObserver"in window}))},[i,m]);Vf(function(){d()},[d]);var v=E.useCallback(function(O){l.current=O,d()},[d]);if(!n&&a!=="fixed"||!x)return null;var _=me("div",we({ref:v},ct(ye(ye({},t),{},{offset:x.offset,position:a,rect:x.rect}),"menuPortal",{"menu-portal":!0}),o),r);return me(dw.Provider,{value:g},n?Rl.createPortal(_,n):_)},WL=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},qL=function(t){var n=t.children,r=t.innerProps,i=t.isDisabled,o=t.isRtl;return me("div",we({},ct(t,"container",{"--is-disabled":i,"--is-rtl":o}),r),n)},YL=function(t,n){var r=t.theme.spacing,i=t.isMulti,o=t.hasValue,s=t.selectProps.controlShouldRenderValue;return ye({alignItems:"center",display:i&&o&&s?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},KL=function(t){var n=t.children,r=t.innerProps,i=t.isMulti,o=t.hasValue;return me("div",we({},ct(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o}),r),n)},XL=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},GL=function(t){var n=t.children,r=t.innerProps;return me("div",we({},ct(t,"indicatorsContainer",{indicators:!0}),r),n)},rg,ZL=["size"],QL=["innerProps","isRtl","size"],JL={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},hw=function(t){var n=t.size,r=fr(t,ZL);return me("svg",we({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:JL},r))},Jd=function(t){return me(hw,we({size:20},t),me("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},mw=function(t){return me(hw,we({size:20},t),me("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},gw=function(t,n){var r=t.isFocused,i=t.theme,o=i.spacing.baseUnit,s=i.colors;
vendor: 8,750 bytes, lines 14-17
14return ye({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?s.neutral60:s.neutral20,padding:o*2,":hover":{color:r?s.neutral80:s.neutral40}})},eM=gw,tM=function(t){var n=t.children,r=t.innerProps;return me("div",we({},ct(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||me(mw,null))},nM=gw,rM=function(t){var n=t.children,r=t.innerProps;return me("div",we({},ct(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||me(Jd,null))},iM=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing.baseUnit,s=i.colors;return ye({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?s.neutral10:s.neutral20,marginBottom:o*2,marginTop:o*2})},oM=function(t){var n=t.innerProps;return me("span",we({},n,ct(t,"indicatorSeparator",{"indicator-separator":!0})))},sM=hL(rg||(rg=mL([`
15  0%, 80%, 100% { opacity: 0; }
16  40% { opacity: 1; }
17`]))),aM=function(t,n){var r=t.isFocused,i=t.size,o=t.theme,s=o.colors,a=o.spacing.baseUnit;return ye({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?s.neutral60:s.neutral20,padding:a*2})},Wc=function(t){var n=t.delay,r=t.offset;return me("span",{css:Qd({animation:"".concat(sM," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},lM=function(t){var n=t.innerProps,r=t.isRtl,i=t.size,o=i===void 0?4:i,s=fr(t,QL);return me("div",we({},ct(ye(ye({},s),{},{innerProps:n,isRtl:r,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),me(Wc,{delay:0,offset:r}),me(Wc,{delay:160,offset:!0}),me(Wc,{delay:320,offset:!r}))},cM=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.theme,s=o.colors,a=o.borderRadius,l=o.spacing;return ye({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?s.neutral5:s.neutral0,borderColor:r?s.neutral10:i?s.primary:s.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(s.primary):void 0,"&:hover":{borderColor:i?s.primary:s.neutral30}})},uM=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.innerRef,s=t.innerProps,a=t.menuIsOpen;return me("div",we({ref:o},ct(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":a}),s,{"aria-disabled":r||void 0}),n)},fM=uM,dM=["data"],pM=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},hM=function(t){var n=t.children,r=t.cx,i=t.getStyles,o=t.getClassNames,s=t.Heading,a=t.headingProps,l=t.innerProps,c=t.label,f=t.theme,u=t.selectProps;return me("div",we({},ct(t,"group",{group:!0}),l),me(s,we({},a,{selectProps:u,theme:f,getStyles:i,getClassNames:o,cx:r}),c),me("div",null,n))},mM=function(t,n){var r=t.theme,i=r.colors,o=r.spacing;return ye({label:"group",cursor:"default",display:"block"},n?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},gM=function(t){var n=lw(t);n.data;var r=fr(n,dM);return me("div",we({},ct(t,"groupHeading",{"group-heading":!0}),r))},vM=hM,yM=["innerRef","isDisabled","isHidden","inputClassName"],bM=function(t,n){var r=t.isDisabled,i=t.value,o=t.theme,s=o.spacing,a=o.colors;return ye(ye({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},wM),n?{}:{margin:s.baseUnit/2,paddingBottom:s.baseUnit/2,paddingTop:s.baseUnit/2,color:a.neutral80})},vw={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},wM={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ye({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},vw)},xM=function(t){return ye({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},vw)},EM=function(t){var n=t.cx,r=t.value,i=lw(t),o=i.innerRef,s=i.isDisabled,a=i.isHidden,l=i.inputClassName,c=fr(i,yM);return me("div",we({},ct(t,"input",{"input-container":!0}),{"data-value":r||""}),me("input",we({className:n({input:!0},l),ref:o,style:xM(a),disabled:s},c)))},_M=EM,SM=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,s=r.colors;return ye({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:s.neutral10,borderRadius:o/2,margin:i.baseUnit/2})},OM=function(t,n){var r=t.theme,i=r.borderRadius,o=r.colors,s=t.cropWithEllipsis;return ye({overflow:"hidden",textOverflow:s||s===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:i/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},PM=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,s=r.colors,a=t.isFocused;return ye({alignItems:"center",display:"flex"},n?{}:{borderRadius:o/2,backgroundColor:a?s.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:s.dangerLight,color:s.danger}})},yw=function(t){var n=t.children,r=t.innerProps;return me("div",r,n)},CM=yw,RM=yw;function kM(e){var t=e.children,n=e.innerProps;return me("div",we({role:"button"},n),t||me(Jd,{size:14}))}var TM=function(t){var n=t.children,r=t.components,i=t.data,o=t.innerProps,s=t.isDisabled,a=t.removeProps,l=t.selectProps,c=r.Container,f=r.Label,u=r.Remove;return me(c,{data:i,innerProps:ye(ye({},ct(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),o),selectProps:l},me(f,{data:i,innerProps:ye({},ct(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),me(u,{data:i,innerProps:ye(ye({},ct(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},a),selectProps:l}))},AM=TM,LM=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.isSelected,s=t.theme,a=s.spacing,l=s.colors;return ye({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:o?l.primary:i?l.primary25:"transparent",color:r?l.neutral20:o?l.neutral0:"inherit",padding:"".concat(a.baseUnit*2,"px ").concat(a.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:o?l.primary:l.primary50}})},MM=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.isSelected,s=t.innerRef,a=t.innerProps;return me("div",we({},ct(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":o}),{ref:s,"aria-disabled":r},a),n)},IM=MM,DM=function(t,n){var r=t.theme,i=r.spacing,o=r.colors;return ye({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:o.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},NM=function(t){var n=t.children,r=t.innerProps;return me("div",we({},ct(t,"placeholder",{placeholder:!0}),r),n)},jM=NM,$M=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing,s=i.colors;return ye({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?s.neutral40:s.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},FM=function(t){var n=t.children,r=t.isDisabled,i=t.innerProps;return me("div",we({},ct(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},BM=FM,VM={ClearIndicator:rM,Control:fM,DropdownIndicator:tM,DownChevron:mw,CrossIcon:Jd,Group:vM,GroupHeading:gM,IndicatorsContainer:GL,IndicatorSeparator:oM,Input:_M,LoadingIndicator:lM,Menu:NL,MenuList:$L,MenuPortal:UL,LoadingMessage:HL,NoOptionsMessage:VL,MultiValue:AM,MultiValueContainer:CM,MultiValueLabel:RM,MultiValueRemove:kM,Option:IM,Placeholder:jM,SelectContainer:qL,SingleValue:BM,ValueContainer:KL},HM=function(t){return ye(ye({},VM),t.components)},ig=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function zM(e,t){return!!(e===t||ig(e)&&ig(t))}function UM(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!zM(e[n],t[n]))return!1;return!0}function WM(e,t){t===void 0&&(t=UM);var n=null;function r(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(n&&n.lastThis===this&&t(i,n.lastArgs))return n.lastResult;var s=e.apply(this,i);return n={lastResult:s,lastArgs:i,lastThis:this},s}return r.clear=function(){n=null},r}var qM={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},YM=function(t){return me("span",we({css:qM},t))},og=YM,KM={guidance:function(t){var n=t.isSearchable,r=t.isMulti,i=t.tabSelectsValue,o=t.context,s=t.
vendor: 4,856 bytes, line 17
17isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return s?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var n=t.action,r=t.label,i=r===void 0?"":r,o=t.labels,s=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(i,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return s?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,i=t.options,o=t.label,s=o===void 0?"":o,a=t.selectValue,l=t.isDisabled,c=t.isSelected,f=t.isAppleDevice,u=function(y,w){return y&&y.length?"".concat(y.indexOf(w)+1," of ").concat(y.length):""};if(n==="value"&&a)return"value ".concat(s," focused, ").concat(u(a,r),".");if(n==="menu"&&f){var p=l?" disabled":"",h="".concat(c?" selected":"").concat(p);return"".concat(s).concat(h,", ").concat(u(i,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},XM=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,o=t.focusableOptions,s=t.isFocused,a=t.selectValue,l=t.selectProps,c=t.id,f=t.isAppleDevice,u=l.ariaLiveMessages,p=l.getOptionLabel,h=l.inputValue,g=l.isMulti,y=l.isOptionDisabled,w=l.isSearchable,x=l.menuIsOpen,b=l.options,m=l.screenReaderStatus,d=l.tabSelectsValue,v=l.isLoading,_=l["aria-label"],O=l["aria-live"],C=E.useMemo(function(){return ye(ye({},KM),u||{})},[u]),k=E.useMemo(function(){var S="";if(n&&C.onChange){var R=n.option,D=n.options,L=n.removedValue,N=n.removedValues,$=n.value,B=function(U){return Array.isArray(U)?null:U},V=L||R||B($),W=V?p(V):"",F=D||N||void 0,j=F?F.map(p):[],H=ye({isDisabled:V&&y(V,a),label:W,labels:j},n);S=C.onChange(H)}return S},[n,C,y,a,p]),A=E.useMemo(function(){var S="",R=r||i,D=!!(r&&a&&a.includes(r));if(R&&C.onFocus){var L={focused:R,label:p(R),isDisabled:y(R,a),isSelected:D,options:o,context:R===r?"menu":"value",selectValue:a,isAppleDevice:f};S=C.onFocus(L)}return S},[r,i,p,y,C,o,a,f]),T=E.useMemo(function(){var S="";if(x&&b.length&&!v&&C.onFilter){var R=m({count:o.length});S=C.onFilter({inputValue:h,resultsMessage:R})}return S},[o,h,x,C,b,m,v]),M=n?.action==="initial-input-focus",I=E.useMemo(function(){var S="";if(C.guidance){var R=i?"value":x?"menu":"input";S=C.guidance({"aria-label":_,context:R,isDisabled:r&&y(r,a),isMulti:g,isSearchable:w,tabSelectsValue:d,isInitialFocus:M})}return S},[_,r,i,g,y,w,x,C,a,d,M]),P=me(E.Fragment,null,me("span",{id:"aria-selection"},k),me("span",{id:"aria-focused"},A),me("span",{id:"aria-results"},T),me("span",{id:"aria-guidance"},I));return me(E.Fragment,null,me(og,{id:c},M&&P),me(og,{"aria-live":O,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},s&&!M&&P))},GM=XM,Hf=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"}
vendor: 3,853 bytes, line 17
17,{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],ZM=new RegExp("["+Hf.map(function(e){return e.letters}).join("")+"]","g"),bw={};for(var qc=0;qc<Hf.length;qc++)for(var Yc=Hf[qc],Kc=0;Kc<Yc.letters.length;Kc++)bw[Yc.letters[Kc]]=Yc.base;var ww=function(t){return t.replace(ZM,function(n){return bw[n]})},QM=WM(ww),sg=function(t){return t.replace(/^\s+|\s+$/g,"")},JM=function(t){return"".concat(t.label," ").concat(t.value)},e3=function(t){return function(n,r){if(n.data.__isNew__)return!0;var i=ye({ignoreCase:!0,ignoreAccents:!0,stringify:JM,trim:!0,matchFrom:"any"},t),o=i.ignoreCase,s=i.ignoreAccents,a=i.stringify,l=i.trim,c=i.matchFrom,f=l?sg(r):r,u=l?sg(a(n)):a(n);return o&&(f=f.toLowerCase(),u=u.toLowerCase()),s&&(f=QM(f),u=ww(u)),c==="start"?u.substr(0,f.length)===f:u.indexOf(f)>-1}},t3=["innerRef"];function n3(e){var t=e.innerRef,n=fr(e,t3),r=RL(n,"onExited","in","enter","exit","appear");return me("input",we({ref:t},r,{css:Qd({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var r3=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function i3(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,
17i=e.onTopArrive,o=e.onTopLeave,s=E.useRef(!1),a=E.useRef(!1),l=E.useRef(0),c=E.useRef(null),f=E.useCallback(function(w,x){if(c.current!==null){var b=c.current,m=b.scrollTop,d=b.scrollHeight,v=b.clientHeight,_=c.current,O=x>0,C=d-v-m,k=!1;C>x&&s.current&&(r&&r(w),s.current=!1),O&&a.current&&(o&&o(w),a.current=!1),O&&x>C?(n&&!s.current&&n(w),_.scrollTop=d,k=!0,s.current=!0):!O&&-x>m&&(i&&!a.current&&i(w),_.scrollTop=0,k=!0,a.current=!0),k&&r3(w)}},[n,r,i,o]),u=E.useCallback(function(w){f(w,w.deltaY)},[f]),p=E.useCallback(function(w){l.current=w.changedTouches[0].clientY},[]),h=E.useCallback(function(w){var x=l.current-w.changedTouches[0].clientY;f(w,x)},[f]),g=E.useCallback(function(w){if(w){var x=OL?{passive:!1}:!1;w.addEventListener("wheel",u,x),w.addEventListener("touchstart",p,x),w.addEventListener("touchmove",h,x)}},[h,p,u]),y=E.useCallback(function(w){w&&(w.removeEventListener("wheel",u,!1),w.removeEventListener("touchstart",p,!1),w.removeEventListener("touchmove",h,!1))},[h,p,u]);return E.useEffect(function(){if(t){var w=c.current;return g(w),function(){y(w)}}},[t,g,y]),function(w){c.current=w}}var ag=["boxSizing","height","overflow","paddingRight","position"],lg={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function cg(e){e.cancelable&&e.preventDefault()}function ug(e){e.stopPropagation()}function fg(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function dg(){return"ontouchstart"in window||navigator.maxTouchPoints}var pg=!!(typeof window<"u"&&window.document&&window.document.createElement),oo=0,li={capture:!1,passive:!1};function o3(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=E.useRef({}),o=E.useRef(null),s=E.useCallback(function(l){if(pg){var c=document.body,f=c&&c.style;if(r&&ag.forEach(function(g){var y=f&&f[g];i.current[g]=y}),r&&oo<1){var u=parseInt(i.current.paddingRight,10)||0,p=document.body?document.body.clientWidth:0,h=window.innerWidth-p+u||0;Object.keys(lg).forEach(function(g){var y=lg[g];f&&(f[g]=y)}),f&&(f.paddingRight="".concat(h,"px"))}c&&dg()&&(c.addEventListener("touchmove",cg,li),l&&(l.addEventListener("touchstart",fg,li),l.addEventListener("touchmove",ug,li))),oo+=1}},[r]),a=E.useCallback(function(l){if(pg){var c=document.body,f=c&&c.style;oo=Math.max(oo-1,0),r&&oo<1&&ag.forEach(function(u){var p=i.current[u];f&&(f[u]=p)}),c&&dg()&&(c.removeEventListener("touchmove",cg,li),l&&(l.removeEventListener("touchstart",fg,li),l.removeEventListener("touchmove",ug,li)))}},[r]);return E.useEffect(function(){if(t){var l=o.current;return s(l),function(){a(l)}}},[t,s,a]),function(l){o.current=l}}var s3=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},a3={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function l3(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=r===void 0?!0:r,o=e.onBottomArrive,s=e.onBottomLeave,a=e.onTopArrive,l=e.onTopLeave,c=i3({isEnabled:i,onBottomArrive:o,onBottomLeave:s,onTopArrive:a,onTopLeave:l}),f=o3({isEnabled:n}),u=function(h){c(h),f(h)};return me(E.Fragment,null,n&&me("div",{onClick:s3,css:a3}),t(u))}var c3={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},u3=function(t){var n=t.name,r=t.onFocus;return me("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:c3,value:"",onChange:function(){}})},f3=u3;function ep(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function d3(){return ep(/^iPhone/i)}function xw(){return ep(/^Mac/i)}function p3(){return ep(/^iPad/i)||xw()&&navigator.maxTouchPoints>1}function h3(){return d3()||p3()}function m3(){return xw()||h3()}var g3=function(t){return t.label},v3=function(t){return t.label},y3=function(t){return t.value},b3=function(t){return!!t.isDisabled},w3={clearIndicator:nM,container:WL,control:cM,dropdownIndicator:eM,group:pM,groupHeading:mM,indicatorsContainer:XL,indicatorSeparator:iM,input:bM,loadingIndicator:aM,loadingMessage:BL,menu:ML,menuList:jL,menuPortal:zL,multiValue:SM,multiValueLabel:OM,multiValueRemove:PM,noOptionsMessage:FL,option:LM,placeholder:DM,singleValue:$M,valueContainer:YL},x3={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},E3=4,Ew=4,_3=38,S3=Ew*2,O3={baseUnit:Ew,controlHeight:_3,menuGutter:S3},Xc={borderRadius:E3,colors:x3,spacing:O3},P3={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ng(),captureMenuScroll:!ng(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:e3(),formatGroupLabel:g3,getOptionLabel:v3,getOptionValue:y3,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:b3,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!_L(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};
vendor: 18,198 bytes, line 17
17function hg(e,t,n,r){var i=Ow(e,t,n),o=Pw(e,t,n),s=Sw(e,t),a=cl(e,t);return{type:"option",data:t,isDisabled:i,isSelected:o,label:s,value:a,index:r}}function Sa(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(s,a){return hg(e,s,t,a)}).filter(function(s){return gg(e,s)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=hg(e,n,t,r);return gg(e,o)?o:void 0}).filter(PL)}function _w(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,Yd(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function mg(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,Yd(r.options.map(function(i){return{data:i.data,id:"".concat(t,"-").concat(r.index,"-").concat(i.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function C3(e,t){return _w(Sa(e,t))}function gg(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,o=t.isSelected,s=t.label,a=t.value;return(!Rw(e)||!o)&&Cw(e,{label:s,value:a,data:i},r)}function R3(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var o=t.indexOf(n);if(o>-1)return n;if(i<t.length)return t[i]}return null}function k3(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var Gc=function(t,n){var r,i=(r=t.find(function(o){return o.data===n}))===null||r===void 0?void 0:r.id;return i||null},Sw=function(t,n){return t.getOptionLabel(n)},cl=function(t,n){return t.getOptionValue(n)};function Ow(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function Pw(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=cl(e,t);return n.some(function(i){return cl(e,i)===r})}function Cw(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var Rw=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},T3=1,kw=(function(e){fA(n,e);var t=hA(n);function n(r){var i;if(cA(this,n),i=t.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.controlRef=null,i.getControlRef=function(l){i.controlRef=l},i.focusedOptionRef=null,i.getFocusedOptionRef=function(l){i.focusedOptionRef=l},i.menuListRef=null,i.getMenuListRef=function(l){i.menuListRef=l},i.inputRef=null,i.getInputRef=function(l){i.inputRef=l},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(l,c){var f=i.props,u=f.onChange,p=f.name;c.name=p,i.ariaOnChange(l,c),u(l,c)},i.setValue=function(l,c,f){var u=i.props,p=u.closeMenuOnSelect,h=u.isMulti,g=u.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:g}),p&&(i.setState({inputIsHiddenAfterUpdate:!h}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(l,{action:c,option:f})},i.selectOption=function(l){var c=i.props,f=c.blurInputOnSelect,u=c.isMulti,p=c.name,h=i.state.selectValue,g=u&&i.isOptionSelected(l,h),y=i.isOptionDisabled(l,h);if(g){var w=i.getOptionValue(l);i.setValue(h.filter(function(x){return i.getOptionValue(x)!==w}),"deselect-option",l)}else if(!y)u?i.setValue([].concat(Yd(h),[l]),"select-option",l):i.setValue(l,"select-option");else{i.ariaOnChange(l,{action:"select-option",option:l,name:p});return}f&&i.blurInput()},i.removeValue=function(l){var c=i.props.isMulti,f=i.state.selectValue,u=i.getOptionValue(l),p=f.filter(function(g){return i.getOptionValue(g)!==u}),h=Ws(c,p,p[0]||null);i.onChange(h,{action:"remove-value",removedValue:l}),i.focusInput()},i.clearValue=function(){var l=i.state.selectValue;i.onChange(Ws(i.props.isMulti,[],null),{action:"clear",removedValues:l})},i.popValue=function(){var l=i.props.isMulti,c=i.state.selectValue,f=c[c.length-1],u=c.slice(0,c.length-1),p=Ws(l,u,u[0]||null);f&&i.onChange(p,{action:"pop-value",removedValue:f})},i.getFocusedOptionId=function(l){return Gc(i.state.focusableOptionsWithIds,l)},i.getFocusableOptionsWithIds=function(){return mg(Sa(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var l=arguments.length,c=new Array(l),f=0;f<l;f++)c[f]=arguments[f];return yL.apply(void 0,[i.props.classNamePrefix].concat(c))},i.getOptionLabel=function(l){return Sw(i.props,l)},i.getOptionValue=function(l){return cl(i.props,l)},i.getStyles=function(l,c){var f=i.props.unstyled,u=w3[l](c,f);u.boxSizing="border-box";var p=i.props.styles[l];return p?p(u,c):u},i.getClassNames=function(l,c){var f,u;return(f=(u=i.props.classNames)[l])===null||f===void 0?void 0:f.call(u,c)},i.getElementId=function(l){return"".concat(i.state.instancePrefix,"-").concat(l)},i.getComponents=function(){return HM(i.props)},i.buildCategorizedOptions=function(){return Sa(i.props,i.state.selectValue)},i.getCategorizedOptions=function(){return i.props.menuIsOpen?i.buildCategorizedOptions():[]},i.buildFocusableOptions=function(){return _w(i.buildCategorizedOptions())},i.getFocusableOptions=function(){return i.props.menuIsOpen?i.buildFocusableOptions():[]},i.ariaOnChange=function(l,c){i.setState({ariaSelection:ye({value:l},c)})},i.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),i.focusInput())},i.onMenuMouseMove=function(l){i.blockOptionHover=!1},i.onControlMouseDown=function(l){if(!l.defaultPrevented){var c=i.props.openMenuOnClick;i.state.isFocused?i.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&i.onMenuClose():c&&i.openMenu("first"):(c&&(i.openAfterFocus=!0),i.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},i.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!i.props.isDisabled){var c=i.props,f=c.isMulti,u=c.menuIsOpen;i.focusInput(),u?(i.setState({inputIsHiddenAfterUpdate:!f}),i.onMenuClose()):i.openMenu("first"),l.preventDefault()}},i.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(i.clearValue(),l.preventDefault(),i.openAfterFocus=!1,l.type==="touchend"?i.focusInput():setTimeout(function(){return i.focusInput()}))},i.onScroll=function(l){typeof i.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&Jl(l.target)&&i.props.onMenuClose():typeof i.props.closeMenuOnScroll=="function"&&i.props.closeMenuOnScroll(l)&&i.props.onMenuClose()},i.onCompositionStart=function(){i.isComposing=!0},i.onCompositionEnd=function(){i.isComposing=!1},i.onTouchStart=function(l){var c=l.touches,f=c&&c.item(0);f&&(i.initialTouchX=f.clientX,i.initialTouchY=f.clientY,i.userIsDragging=!1)},i.onTouchMove=function(l){var c=l.touches,f=c&&c.item(0);if(f){var u=Math.abs(f.clientX-i.initialTouchX),p=Math.abs(f.clientY-i.initialTouchY),h=5;i.userIsDragging=u>h||p>h}},i.onTouchEnd=function(l){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(l.target)&&i.menuListRef&&!i.menuListRef.contains(l.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(l){i.userIsDragging||i.onControlMouseDown(l)},i.onClearIndicatorTouchEnd=function(l){i.userIsDragging||i.onClearIndicatorMouseDown(l)},i.onDropdownIndicatorTouchEnd=function(l){i.userIsDragging||i.onDropdownIndicatorMouseDown(l)},i.handleInputChange=function(l){var c=i.props.inputValue,f=l.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(f,{action:"input-change",prevInputValue:c}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(l){i.props.onFocus&&i.props.onFocus(l),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(l){var c=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(l),i.onInputChange("",{action:"input-blur",prevInputValue:c}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(l){if(!(i.blockOptionHover||i.state.focusedOption===l)){var c=i.getFocusableOptions(),f=c.indexOf(l);i.setState({focusedOption:l,focusedOptionId:f>-1?i.getFocusedOptionId(l):null})}},i.shouldHideSelectedOptions=function(){return Rw(i.props)},i.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),i.focus()},i.onKeyDown=function(l){var c=i.props,f=c.isMulti,u=c.backspaceRemovesValue,p=c.escapeClearsValue,h=c.inputValue,g=c.isClearable,y=c.isDisabled,w=c.menuIsOpen,x=c.onKeyDown,b=c.tabSelectsValue,m=c.openMenuOnFocus,d=i.state,v=d.focusedOption,_=d.focusedValue,O=d.selectValue;if(!y&&!(typeof x=="function"&&(x(l),l.defaultPrevented))){switch(i.blockOptionHover=!0,l.key){case"ArrowLeft":if(!f||h)return;i.focusValue("previous");break;case"ArrowRight":if(!f||h)return;i.focusValue("next");break;case"Delete":case"Backspace":if(h)return;if(_)i.removeValue(_);else{if(!u)return;f?i.popValue():g&&i.clearValue()}break;case"Tab":if(i.isComposing||l.shiftKey||!w||!b||!v||m&&i.isOptionSelected(v,O))return;i.selectOption(v);break;case"Enter":if(l.keyCode===229)break;if(w){if(!v||i.isComposing)return;i.selectOption(v);break}return;case"Escape":w?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:h}),i.onMenuClose()):g&&p&&i.clearValue();break;case" ":if(h)return;if(!w){i.openMenu("first");break}if(!v)return;i.selectOption(v);break;case"ArrowUp":w?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":w?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!w)return;i.focusOption("pageup");break;case"PageDown":if(!w)return;i.focusOption("pagedown");break;case"Home":if(!w)return;i.focusOption("first");break;case"End":if(!w)return;i.focusOption("last");break;default:return}l.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++T3),i.state.selectValue=eg(r.value),r.menuIsOpen&&i.state.selectValue.length){var o=i.getFocusableOptionsWithIds(),s=i.buildFocusableOptions(),a=s.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=o,i.state.focusedOption=s[a],i.state.focusedOptionId=Gc(o,s[a])}return i}return uA(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&tg(this.menuListRef,this.focusedOptionRef),m3()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(i){var o=this.props,s=o.isDisabled,a=o.menuIsOpen,l=this.state.isFocused;(l&&!s&&i.isDisabled||l&&a&&!i.menuIsOpen)&&this.focusInput(),l&&s&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!s&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(tg(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,o){this.props.onInputChange(i,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var o=this,s=this.state,a=s.selectValue,l=s.isFocused,c=this.buildFocusableOptions(),f=i==="first"?0:c.length-1;if(!this.props.isMulti){var u=c.indexOf(a[0]);u>-1&&(f=u)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:c[f],focusedOptionId:this.getFocusedOptionId(c[f])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(i){var o=this.state,s=o.selectValue,a=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=s.indexOf(a);a||(l=-1);var c=s.length-1,f=-1;if(s.length){switch(i){case"previous":l===0?f=0:l===-1?f=c:f=l-1;break;case"next":l>-1&&l<c&&(f=l+1);break}this.setState({inputIsHidden:f!==-1,focusedValue:s[f]})}}}},{key:"focusOption",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,s=this.state.focusedOption,a=this.getFocusableOptions();if(a.length){var l=0,c=a.indexOf(s);s||(c=-1),i==="up"?l=c>0?c-1:a.length-1:i==="down"?l=(c+1)%a.length:i==="pageup"?(l=c-o,l<0&&(l=0)):i==="pagedown"?(l=c+o,l>a.length-1&&(l=a.length-1)):i==="last"&&(l=a.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:a[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(a[l])})}}},{key:"getTheme",value:(function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Xc):ye(ye({},Xc),this.props.theme):Xc})},{key:"getCommonProps",value:function(){var i=this.clearValue,o=this.cx,s=this.getStyles,a=this.getClassNames,l=this.getValue,c=this.selectOption,f=this.setValue,u=this.props,p=u.isMulti,h=u.isRtl,g=u.options,y=this.hasValue();return{clearValue:i,cx:o,getStyles:s,getClassNames:a,getValue:l,hasValue:y,isMulti:p,isRtl:h,options:g,selectOption:c,selectProps:u,setValue:f,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,o=i.isClearable,s=i.isMulti;return o===void 0?s:o}},{key:"isOptionDisabled",value:function(i,o){return Ow(this.props,i,o)}},{key:"isOptionSelected",value:function(i,o){return Pw(this.props,i,o)}},{key:"filterOption",value:function(i,o){return Cw(this.props,i,o)}},{key:"formatOptionLabel",value:function(i,o){if(typeof this.props.formatOptionLabel=="function"){var s=this.props.inputValue,a=this.state.selectValue;return this.props.formatOptionLabel(i,{context:o,inputValue:s,selectValue:a})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:(function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))})},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:(function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))})},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:(function(){var i=this.props,o=i.isDisabled,s=i.isSearchable,a=i.inputId,l=i.inputValue,c=i.tabIndex,f=i.form,u=i.menuIsOpen,p=i.required,h=this.getComponents(),g=h.Input,y=this.state,w=y.inputIsHidden,x=y.ariaSelection,b=this.commonProps,m=a||this.getElementId("input"),d=ye(ye(ye({"aria-autocomplete":"list","aria-expanded":u,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":p,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},u&&{"aria-controls":this.getElementId("listbox")}),!s&&{"aria-readonly":!0}),this.hasValue()?x?.action==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return s?E.createElement(g,we({},b,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:o,isHidden:w,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:c,form:f,type:"text",value:l},d)):E.createElement(n3,we({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:al,onFocus:this.onInputFocus,disabled:o,tabIndex:c,inputMode:"none",form:f,value:""},d))})},{key:"renderPlaceholderOrValue",value:function(){var i=this,o=this.getComponents(),s=o.MultiValue,a=o.MultiValueContainer,l=o.MultiValueLabel,c=o.MultiValueRemove,f=o.SingleValue,u=o.Placeholder,p=this.commonProps,h=this.props,g=h.controlShouldRenderValue,y=h.isDisabled,w=h.isMulti,x=h.inputValue,b=h.placeholder,m=this.state,d=m.selectValue,v=m.focusedValue,_=m.isFocused;if(!this.hasValue()||!g)return x?null:E.createElement(u,we({},p,{key:"placeholder",isDisabled:y,isFocused:_,innerProps:{id:this.getElementId("placeholder")}}),b);if(w)return d.map(function(C,k){var A=C===v,T="".concat(i.getOptionLabel(C),"-").concat(i.getOptionValue(C));return E.createElement(s,we({},p,{components:{Container:a,Label:l,Remove:c},isFocused:A,isDisabled:y,key:T,index:k,removeProps:{onClick:function(){return i.removeValue(C)},onTouchEnd:function(){return i.removeValue(C)},onMouseDown:function(I){I.preventDefault()}},data:C}),i.formatOptionLabel(C,"value"))});if(x)return null;var O=d[0];return E.createElement(f,we({},p,{data:O,isDisabled:y}),this.formatOptionLabel(O,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),o=i.ClearIndicator,s=this.commonProps,a=this.props,l=a.isDisabled,c=a.isLoading,f
vendor: 6,330 bytes, line 17
17=this.state.isFocused;if(!this.isClearable()||!o||l||!this.hasValue()||c)return null;var u={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return E.createElement(o,we({},s,{innerProps:u,isFocused:f}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),o=i.LoadingIndicator,s=this.commonProps,a=this.props,l=a.isDisabled,c=a.isLoading,f=this.state.isFocused;if(!o||!c)return null;var u={"aria-hidden":"true"};return E.createElement(o,we({},s,{innerProps:u,isDisabled:l,isFocused:f}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator,s=i.IndicatorSeparator;if(!o||!s)return null;var a=this.commonProps,l=this.props.isDisabled,c=this.state.isFocused;return E.createElement(s,we({},a,{isDisabled:l,isFocused:c}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator;if(!o)return null;var s=this.commonProps,a=this.props.isDisabled,l=this.state.isFocused,c={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return E.createElement(o,we({},s,{innerProps:c,isDisabled:a,isFocused:l}))}},{key:"renderMenu",value:function(){var i=this,o=this.getComponents(),s=o.Group,a=o.GroupHeading,l=o.Menu,c=o.MenuList,f=o.MenuPortal,u=o.LoadingMessage,p=o.NoOptionsMessage,h=o.Option,g=this.commonProps,y=this.state.focusedOption,w=this.props,x=w.captureMenuScroll,b=w.inputValue,m=w.isLoading,d=w.loadingMessage,v=w.minMenuHeight,_=w.maxMenuHeight,O=w.menuIsOpen,C=w.menuPlacement,k=w.menuPosition,A=w.menuPortalTarget,T=w.menuShouldBlockScroll,M=w.menuShouldScrollIntoView,I=w.noOptionsMessage,P=w.onMenuScrollToTop,S=w.onMenuScrollToBottom;if(!O)return null;var R=function(W,F){var j=W.type,H=W.data,z=W.isDisabled,U=W.isSelected,Y=W.label,X=W.value,Q=y===H,J=z?void 0:function(){return i.onOptionHover(H)},re=z?void 0:function(){return i.selectOption(H)},ue="".concat(i.getElementId("option"),"-").concat(F),ce={id:ue,onClick:re,onMouseMove:J,onMouseOver:J,tabIndex:-1,role:"option","aria-selected":i.state.isAppleDevice?void 0:U};return E.createElement(h,we({},g,{innerProps:ce,data:H,isDisabled:z,isSelected:U,key:ue,label:Y,type:j,value:X,isFocused:Q,innerRef:Q?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(W.data,"menu"))},D;if(this.hasOptions())D=this.getCategorizedOptions().map(function(V){if(V.type==="group"){var W=V.data,F=V.options,j=V.index,H="".concat(i.getElementId("group"),"-").concat(j),z="".concat(H,"-heading");return E.createElement(s,we({},g,{key:H,data:W,options:F,Heading:a,headingProps:{id:z,data:V.data},label:i.formatGroupLabel(V.data)}),V.options.map(function(U){return R(U,"".concat(j,"-").concat(U.index))}))}else if(V.type==="option")return R(V,"".concat(V.index))});else if(m){var L=d({inputValue:b});if(L===null)return null;D=E.createElement(u,g,L)}else{var N=I({inputValue:b});if(N===null)return null;D=E.createElement(p,g,N)}var $={minMenuHeight:v,maxMenuHeight:_,menuPlacement:C,menuPosition:k,menuShouldScrollIntoView:M},B=E.createElement(IL,we({},g,$),function(V){var W=V.ref,F=V.placerProps,j=F.placement,H=F.maxHeight;return E.createElement(l,we({},g,$,{innerRef:W,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:m,placement:j}),E.createElement(l3,{captureEnabled:x,onTopArrive:P,onBottomArrive:S,lockEnabled:T},function(z){return E.createElement(c,we({},g,{innerRef:function(Y){i.getMenuListRef(Y),z(Y)},innerProps:{role:"listbox","aria-multiselectable":g.isMulti,id:i.getElementId("listbox")},isLoading:m,maxHeight:H,focusedOption:y}),D)}))});return A||k==="fixed"?E.createElement(f,we({},g,{appendTo:A,controlElement:this.controlRef,menuPlacement:C,menuPosition:k}),B):B}},{key:"renderFormField",value:function(){var i=this,o=this.props,s=o.delimiter,a=o.isDisabled,l=o.isMulti,c=o.name,f=o.required,u=this.state.selectValue;if(f&&!this.hasValue()&&!a)return E.createElement(f3,{name:c,onFocus:this.onValueInputFocus});if(!(!c||a))if(l)if(s){var p=u.map(function(y){return i.getOptionValue(y)}).join(s);return E.createElement("input",{name:c,type:"hidden",value:p})}else{var h=u.length>0?u.map(function(y,w){return E.createElement("input",{key:"i-".concat(w),name:c,type:"hidden",value:i.getOptionValue(y)})}):E.createElement("input",{name:c,type:"hidden",value:""});return E.createElement("div",null,h)}else{var g=u[0]?this.getOptionValue(u[0]):"";return E.createElement("input",{name:c,type:"hidden",value:g})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,o=this.state,s=o.ariaSelection,a=o.focusedOption,l=o.focusedValue,c=o.isFocused,f=o.selectValue,u=this.getFocusableOptions();return E.createElement(GM,we({},i,{id:this.getElementId("live-region"),ariaSelection:s,focusedOption:a,focusedValue:l,isFocused:c,selectValue:f,focusableOptions:u,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),o=i.Control,s=i.IndicatorsContainer,a=i.SelectContainer,l=i.ValueContainer,c=this.props,f=c.className,u=c.id,p=c.isDisabled,h=c.menuIsOpen,g=this.state.isFocused,y=this.commonProps=this.getCommonProps();return E.createElement(a,we({},y,{className:f,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:p,isFocused:g}),this.renderLiveRegion(),E.createElement(o,we({},y,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:p,isFocused:g,menuIsOpen:h}),E.createElement(l,we({},y,{isDisabled:p}),this.renderPlaceholderOrValue(),this.renderInput()),E.createElement(s,we({},y,{isDisabled:p}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,o){var s=o.prevProps,a=o.clearFocusValueOnUpdate,l=o.inputIsHiddenAfterUpdate,c=o.ariaSelection,f=o.isFocused,u=o.prevWasFocused,p=o.instancePrefix,h=i.options,g=i.value,y=i.menuIsOpen,w=i.inputValue,x=i.isMulti,b=eg(g),m={};if(s&&(g!==s.value||h!==s.options||y!==s.menuIsOpen||w!==s.inputValue)){var d=y?C3(i,b):[],v=y?mg(Sa(i,b),"".concat(p,"-option")):[],_=a?R3(o,b):null,O=k3(o,d),C=Gc(v,O);m={selectValue:b,focusedOption:O,focusedOptionId:C,focusableOptionsWithIds:v,focu
17sedValue:_,clearFocusValueOnUpdate:!1}}var k=l!=null&&i!==s?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},A=c,T=f&&u;return f&&!T&&(A={value:Ws(x,b,b[0]||null),options:b,action:"initial-input-focus"},T=!u),c?.action==="initial-input-focus"&&(A=null),ye(ye(ye({},m),k),{},{prevProps:i,ariaSelection:A,prevWasFocused:T})}}]),n})(E.Component);kw.defaultProps=P3;var A3=E.forwardRef(function(e,t){var n=lA(e);return E.createElement(kw,we({ref:t},n))}),uz=A3,Yt="top",xn="bottom",En="right",Kt="left",tp="auto",fs=[Yt,xn,En,Kt],Li="start",Vo="end",L3="clippingParents",Tw="viewport",so="popper",M3="reference",vg=fs.reduce(function(e,t){return e.concat([t+"-"+Li,t+"-"+Vo])},[]),Aw=[].concat(fs,[tp]).reduce(function(e,t){return e.concat([t,t+"-"+Li,t+"-"+Vo])},[]),I3="beforeRead",D3="read",N3="afterRead",j3="beforeMain",$3="main",F3="afterMain",B3="beforeWrite",V3="write",H3="afterWrite",z3=[I3,D3,N3,j3,$3,F3,B3,V3,H3];function Zn(e){return e?(e.nodeName||"").toLowerCase():null}function cn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Zr(e){var t=cn(e).Element;return e instanceof t||e instanceof Element}function bn(e){var t=cn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function np(e){if(typeof ShadowRoot>"u")return!1;var t=cn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function U3(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];
vendor: 19,553 bytes, line 17
17!bn(o)||!Zn(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(s){var a=i[s];a===!1?o.removeAttribute(s):o.setAttribute(s,a===!0?"":a)}))})}function W3(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(l,c){return l[c]="",l},{});!bn(i)||!Zn(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const Lw={name:"applyStyles",enabled:!0,phase:"write",fn:U3,effect:W3,requires:["computeStyles"]};function Yn(e){return e.split("-")[0]}var Br=Math.max,ul=Math.min,Mi=Math.round;function zf(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Mw(){return!/^((?!chrome|android).)*safari/i.test(zf())}function Ii(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&bn(e)&&(i=e.offsetWidth>0&&Mi(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Mi(r.height)/e.offsetHeight||1);var s=Zr(e)?cn(e):window,a=s.visualViewport,l=!Mw()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/i,f=(r.top+(l&&a?a.offsetTop:0))/o,u=r.width/i,p=r.height/o;return{width:u,height:p,top:f,right:c+u,bottom:f+p,left:c,x:c,y:f}}function rp(e){var t=Ii(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Iw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&np(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function cr(e){return cn(e).getComputedStyle(e)}function q3(e){return["table","td","th"].indexOf(Zn(e))>=0}function Or(e){return((Zr(e)?e.ownerDocument:e.document)||window.document).documentElement}function ec(e){return Zn(e)==="html"?e:e.assignedSlot||e.parentNode||(np(e)?e.host:null)||Or(e)}function yg(e){return!bn(e)||cr(e).position==="fixed"?null:e.offsetParent}function Y3(e){var t=/firefox/i.test(zf()),n=/Trident/i.test(zf());if(n&&bn(e)){var r=cr(e);if(r.position==="fixed")return null}var i=ec(e);for(np(i)&&(i=i.host);bn(i)&&["html","body"].indexOf(Zn(i))<0;){var o=cr(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function ds(e){for(var t=cn(e),n=yg(e);n&&q3(n)&&cr(n).position==="static";)n=yg(n);return n&&(Zn(n)==="html"||Zn(n)==="body"&&cr(n).position==="static")?t:n||Y3(e)||t}function ip(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function So(e,t,n){return Br(e,ul(t,n))}function K3(e,t,n){var r=So(e,t,n);return r>n?n:r}function Dw(){return{top:0,right:0,bottom:0,left:0}}function Nw(e){return Object.assign({},Dw(),e)}function jw(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var X3=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Nw(typeof t!="number"?t:jw(t,fs))};function G3(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Yn(n.placement),l=ip(a),c=[Kt,En].indexOf(a)>=0,f=c?"height":"width";if(!(!o||!s)){var u=X3(i.padding,n),p=rp(o),h=l==="y"?Yt:Kt,g=l==="y"?xn:En,y=n.rects.reference[f]+n.rects.reference[l]-s[l]-n.rects.popper[f],w=s[l]-n.rects.reference[l],x=ds(o),b=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,m=y/2-w/2,d=u[h],v=b-p[f]-u[g],_=b/2-p[f]/2+m,O=So(d,_,v),C=l;n.modifiersData[r]=(t={},t[C]=O,t.centerOffset=O-_,t)}}function Z3(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Iw(t.elements.popper,i)&&(t.elements.arrow=i))}const Q3={name:"arrow",enabled:!0,phase:"main",fn:G3,effect:Z3,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Di(e){return e.split("-")[1]}var J3={top:"auto",right:"auto",bottom:"auto",left:"auto"};function eI(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Mi(n*i)/i||0,y:Mi(r*i)/i||0}}function bg(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,u=e.isFixed,p=s.x,h=p===void 0?0:p,g=s.y,y=g===void 0?0:g,w=typeof f=="function"?f({x:h,y}):{x:h,y};h=w.x,y=w.y;var x=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),m=Kt,d=Yt,v=window;if(c){var _=ds(n),O="clientHeight",C="clientWidth";if(_===cn(n)&&(_=Or(n),cr(_).position!=="static"&&a==="absolute"&&(O="scrollHeight",C="scrollWidth")),_=_,i===Yt||(i===Kt||i===En)&&o===Vo){d=xn;var k=u&&_===v&&v.visualViewport?v.visualViewport.height:_[O];y-=k-r.height,y*=l?1:-1}if(i===Kt||(i===Yt||i===xn)&&o===Vo){m=En;var A=u&&_===v&&v.visualViewport?v.visualViewport.width:_[C];h-=A-r.width,h*=l?1:-1}}var T=Object.assign({position:a},c&&J3),M=f===!0?eI({x:h,y},cn(n)):{x:h,y};if(h=M.x,y=M.y,l){var I;return Object.assign({},T,(I={},I[d]=b?"0":"",I[m]=x?"0":"",I.transform=(v.devicePixelRatio||1)<=1?"translate("+h+"px, "+y+"px)":"translate3d("+h+"px, "+y+"px, 0)",I))}return Object.assign({},T,(t={},t[d]=b?y+"px":"",t[m]=x?h+"px":"",t.transform="",t))}function tI(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:Yn(t.placement),variation:Di(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,bg(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,bg(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const nI={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:tI,data:{}};var qs={passive:!0};function rI(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,a=s===void 0?!0:s,l=cn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(f){f.addEventListener("scroll",n.update,qs)}),a&&l.addEventListener("resize",n.update,qs),function(){o&&c.forEach(function(f){f.removeEventListener("scroll",n.update,qs)}),a&&l.removeEventListener("resize",n.update,qs)}}const iI={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:rI,data:{}};var oI={left:"right",right:"left",bottom:"top",top:"bottom"};function Oa(e){return e.replace(/left|right|bottom|top/g,function(t){return oI[t]})}var sI={start:"end",end:"start"};function wg(e){return e.replace(/start|end/g,function(t){return sI[t]})}function op(e){var t=cn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function sp(e){return Ii(Or(e)).left+op(e).scrollLeft}function aI(e,t){var n=cn(e),r=Or(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;var c=Mw();(c||!c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a+sp(e),y:l}}function lI(e){var t,n=Or(e),r=op(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Br(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Br(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+sp(e),l=-r.scrollTop;return cr(i||n).direction==="rtl"&&(a+=Br(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}function ap(e){var t=cr(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function $w(e){return["html","body","#document"].indexOf(Zn(e))>=0?e.ownerDocument.body:bn(e)&&ap(e)?e:$w(ec(e))}function Oo(e,t){var n;t===void 0&&(t=[]);var r=$w(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=cn(r),s=i?[o].concat(o.visualViewport||[],ap(r)?r:[]):r,a=t.concat(s);return i?a:a.concat(Oo(ec(s)))}function Uf(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function cI(e,t){var n=Ii(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function xg(e,t,n){return t===Tw?Uf(aI(e,n)):Zr(t)?cI(t,n):Uf(lI(Or(e)))}function uI(e){var t=Oo(ec(e)),n=["absolute","fixed"].indexOf(cr(e).position)>=0,r=n&&bn(e)?ds(e):e;return Zr(r)?t.filter(function(i){return Zr(i)&&Iw(i,r)&&Zn(i)!=="body"}):[]}function fI(e,t,n,r){var i=t==="clippingParents"?uI(e):[].concat(t),o=[].concat(i,[n]),s=o[0],a=o.reduce(function(l,c){var f=xg(e,c,r);return l.top=Br(f.top,l.top),l.right=ul(f.right,l.right),l.bottom=ul(f.bottom,l.bottom),l.left=Br(f.left,l.left),l},xg(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Fw(e){var t=e.reference,n=e.element,r=e.placement,i=r?Yn(r):null,o=r?Di(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(i){case Yt:l={x:s,y:t.y-n.height};break;case xn:l={x:s,y:t.y+t.height};break;case En:l={x:t.x+t.width,y:a};break;case Kt:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=i?ip(i):null;if(c!=null){var f=c==="y"?"height":"width";switch(o){case Li:l[c]=l[c]-(t[f]/2-n[f]/2);break;case Vo:l[c]=l[c]+(t[f]/2-n[f]/2);break}}return l}function Ho(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,s=o===void 0?e.strategy:o,a=n.boundary,l=a===void 0?L3:a,c=n.rootBoundary,f=c===void 0?Tw:c,u=n.elementContext,p=u===void 0?so:u,h=n.altBoundary,g=h===void 0?!1:h,y=n.padding,w=y===void 0?0:y,x=Nw(typeof w!="number"?w:jw(w,fs)),b=p===so?M3:so,m=e.rects.popper,d=e.elements[g?b:p],v=fI(Zr(d)?d:d.contextElement||Or(e.elements.popper),l,f,s),_=Ii(e.elements.reference),O=Fw({reference:_,element:m,placement:i}),C=Uf(Object.assign({},m,O)),k=p===so?C:_,A={top:v.top-k.top+x.top,bottom:k.bottom-v.bottom+x.bottom,left:v.left-k.left+x.left,right:k.right-v.right+x.right},T=e.modifiersData.offset;if(p===so&&T){var M=T[i];Object.keys(A).forEach(function(I){var P=[En,xn].indexOf(I)>=0?1:-1,S=[Yt,xn].indexOf(I)>=0?"y":"x";A[I]+=M[S]*P})}return A}function dI(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Aw:l,f=Di(r),u=f?a?vg:vg.filter(function(g){return Di(g)===f}):fs,p=u.filter(function(g){return c.indexOf(g)>=0});p.length===0&&(p=u);var h=p.reduce(function(g,y){return g[y]=Ho(e,{placement:y,boundary:i,rootBoundary:o,padding:s})[Yn(y)],g},{});return Object.keys(h).sort(function(g,y){return h[g]-h[y]})}function pI(e){if(Yn(e)===tp)return[];var t=Oa(e);return[wg(e),t,wg(t)]}function hI(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,f=n.boundary,u=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,g=h===void 0?!0:h,y=n.allowedAutoPlacements,w=t.options.placement,x=Yn(w),b=x===w,m=l||(b||!g?[Oa(w)]:pI(w)),d=[w].concat(m).reduce(function(F,j){return F.concat(Yn(j)===tp?dI(t,{placement:j,boundary:f,rootBoundary:u,padding:c,flipVariations:g,allowedAutoPlacements:y}):j)},[]),v=t.rects.reference,_=t.rects.popper,O=new Map,C=!0,k=d[0],A=0;A<d.length;A++){var T=d[A],M=Yn(T),I=Di(T)===Li,P=[Yt,xn].indexOf(M)>=0,S=P?"width":"height",R=Ho(t,{placement:T,boundary:f,rootBoundary:u,altBoundary:p,padding:c}),D=P?I?En:Kt:I?xn:Yt;v[S]>_[S]&&(D=Oa(D));var L=Oa(D),N=[];if(o&&N.push(R[M]<=0),a&&N.push(R[D]<=0,R[L]<=0),N.every(function(F){return F})){k=T,C=!1;break}O.set(T,N)}if(C)for(var $=g?3:1,B=function(j){var H=d.find(function(z){var U=O.get(z);if(U)return U.slice(0,j).every(function(Y){return Y})});if(H)return k=H,"break"},V=$;V>0;V--){var W=B(V);if(W==="break")break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}}const mI={name:"flip",enabled:!0,phase:"main",fn:hI,requiresIfExists:["offset"],data:{_skip:!1}};function Eg(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function _g(e){return[Yt,En,xn,Kt].some(function(t){return e[t]>=0})}function gI(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=Ho(t,{elementContext:"reference"}),a=Ho(t,{altBoundary:!0}),l=Eg(s,r),c=Eg(a,i,o),f=_g(l),u=_g(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":u})}const vI={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:gI};function yI(e,t,n){var r=Yn(e),i=[Kt,Yt].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[Kt,En].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function bI(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,s=Aw.reduce(function(f,u){return f[u]=yI(u,t.rects,o),f},{}),a=s[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const wI={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:bI};function xI(e){var t=e.state,n=e.name;t.modifiersData[n]=Fw({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const EI={name:"popperOffsets",enabled:!0,phase:"read",fn:xI,data:{}};function _I(e){return e==="x"?"y":"x"}function SI(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,f=n.altBoundary,u=n.padding,p=n.tether,h=p===void 0?!0:p,g=n.tetherOffset,y=g===void 0?0:g,w=Ho(t,{boundary:l,rootBoundary:c,padding:u,altBoundary:f}),x=Yn(t.placement),b=Di(t.placement),m=!b,d=ip(x),v=_I(d),_=t.modifiersData.popperOffsets,O=t.rects.reference,C=t.rects.popper,k=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,A=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(_){if(o){var I,P=d==="y"?Yt:Kt,S=d==="y"?xn:En,R=d==="y"?"height":"width",D=_[d],L=D+w[P],N=D-w[S],$=h?-C[R]/2:0,B=b===Li?O[R]:C[R],V=b===Li?-C[R]:-O[R],W=t.elements.arrow,F=h&&W?rp(W):{width:0,height:0},j=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Dw(),H=j[P],z=j[S],U=So(0,O[R],F[R]),Y=m?O[R]/2-$-U-H-A.mainAxis:B-U-H-A.mainAxis,X=m?-O[R]/2+$+U+z+A.mainAxis:V+U+z+A.mainAxis,Q=t.elements.arrow&&ds(t.elements.arrow),J=Q?d==="y"?Q.clientTop||0:Q.clientLeft||0:0,re=(I=T?.[d])!=null?I:0,ue=D+Y-re-J,ce=D+X-re,xe=So(h?ul(L,ue):L,D,h?Br(N,ce):N);_[d]=xe,M[d]=xe-D}if(a){var Oe,Ie=d==="x"?Yt:Kt,Be=d==="x"?xn:En,De=_[v],Ce=v==="y"?"height":"width",nt=De+w[Ie],ot=De-w[Be],st=[Yt,Kt].indexOf(x)!==-1,ne=(Oe=T?.[v])!=null?Oe:0,oe=st?nt:De-O[Ce]-C[Ce]-ne+A.altAxis,be=st?De+O[Ce]+C[Ce]-ne-A.altAxis:ot,Te=h&&st?K3(oe,De,be):So(h?oe:nt,De,h?be:ot);_[v]=Te,M[v]=Te-De}t.modifiersData[r]=M}}const OI={name:"preventOverflow",enabled:!0,phase:"main",fn:SI,requiresIfExists:["offset"]};function PI(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function CI(e){return e===cn(e)||!bn(e)?op(e):PI(e)}function RI(e){var t=e.getBoundingClientRect(),n=Mi(t.width)/e.offsetWidth||1,r=Mi(t.height)/e.offsetHeight||1;return n!==1||r!==1}function kI(e,t,n){n===void 0&&(n=!1);var r=bn(t),i=bn(t)&&RI(t),o=Or(t),s=Ii(e,i,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Zn(t)!=="body"||ap(o))&&(a=CI(t)),bn(t)?(l=Ii(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=sp(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function TI(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function AI(e){var t=TI(e);return z3.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function LI(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function MI(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Sg={placement:"bottom",modifiers:[],strategy:"absolute"};function Og(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function II(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?Sg:i;return function(a,l,c){c===void 0&&(c=o);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},Sg,o),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},u=[],p=!1,h={state:f,setOptions:function(x){var b=typeof x=="function"?x(f.options):x;y(),f.options=Object.assign({},o,f.options,b),f.scrollParents={reference:Zr(a)?Oo(a):a.contextElement?Oo(a.contextElement):[],popper:Oo(l)};var m=AI(MI([].concat(r,f.options.modifiers)));return f.orderedModifiers=m.filter(function(d){return d.enabled}),g(),h.update()},forceUpdate:function(){if(!p){var x=f.elements,b=x.reference,m=x.popper;if(Og(b,m)){f.rects={reference:kI(b,ds(m),f.options.strategy==="fixed"),popper:rp(m)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(A){return f.modifiersData[A.name]=Object.assign({},A.data)});for(var d=0;d<f.orderedModifiers.length;d++){if(f.reset===!0){f.reset=!1,d=-1;continue}var v=f.orderedModifiers[d],_=v.fn,O=v.options,C=O===void 0?{}:O,k=v.name;typeof _=="function"&&(f=_({state:f,options:C,name:k,instance:h})||f)}}}},update:LI(function(){return new Promise(function(w){h.forceUpdate(),w(f)})}),destroy:function(){y(),p=!0}};if(!Og(a,l))return h;h.setOptions(c).then(function(w){!p&&c.onFirstUpdate&&c.onFirstUpdate(w)});function g(){f.orderedModifiers.forEach(function(w){var x=w.name,b=w.options,m=b===void 0?{}:b,d=w.effect;if(typeof d=="function"){var v=d({state:f,name:x,instance:h,options:m}),_=function(){};u.push(v||_)}})}function y(){u.forEach(function(w){return w()}),u=[]}return h}}var DI=[iI,EI,nI,Lw,wI,mI,OI,Q3,vI],NI=II({defaultModifiers:DI}),jI="tippy-box",Bw="tippy-content",$I="tippy-backdrop",Vw="tippy-arrow",Hw="tippy-svg-arrow",kr={passive:!0,capture:!0},zw=function(){return document.body};function Zc(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function lp(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function Uw(e,t){return typeof e=="function"?e.apply(void 0,t):e}function Pg(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}
vendor: 14,062 bytes, line 17
17function FI(e){return e.split(/\s+/).filter(Boolean)}function hi(e){return[].concat(e)}function Cg(e,t){e.indexOf(t)===-1&&e.push(t)}function BI(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function VI(e){return e.split("-")[0]}function fl(e){return[].slice.call(e)}function Rg(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function Po(){return document.createElement("div")}function tc(e){return["Element","Fragment"].some(function(t){return lp(e,t)})}function HI(e){return lp(e,"NodeList")}function zI(e){return lp(e,"MouseEvent")}function UI(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function WI(e){return tc(e)?[e]:HI(e)?fl(e):Array.isArray(e)?e:fl(document.querySelectorAll(e))}function Qc(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function kg(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function qI(e){var t,n=hi(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function YI(e,t){var n=t.clientX,r=t.clientY;return e.every(function(i){var o=i.popperRect,s=i.popperState,a=i.props,l=a.interactiveBorder,c=VI(s.placement),f=s.modifiersData.offset;if(!f)return!0;var u=c==="bottom"?f.top.y:0,p=c==="top"?f.bottom.y:0,h=c==="right"?f.left.x:0,g=c==="left"?f.right.x:0,y=o.top-r+u>l,w=r-o.bottom-p>l,x=o.left-n+h>l,b=n-o.right-g>l;return y||w||x||b})}function Jc(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[r](i,n)})}function Tg(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var Bn={isTouch:!1},Ag=0;function KI(){Bn.isTouch||(Bn.isTouch=!0,window.performance&&document.addEventListener("mousemove",Ww))}function Ww(){var e=performance.now();e-Ag<20&&(Bn.isTouch=!1,document.removeEventListener("mousemove",Ww)),Ag=e}function XI(){var e=document.activeElement;if(UI(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function GI(){document.addEventListener("touchstart",KI,kr),window.addEventListener("blur",XI)}var ZI=typeof window<"u"&&typeof document<"u",QI=ZI?!!window.msCrypto:!1,JI={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},eD={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},kn=Object.assign({appendTo:zw,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},JI,eD),tD=Object.keys(kn),nD=function(t){var n=Object.keys(t);n.forEach(function(r){kn[r]=t[r]})};function qw(e){var t=e.plugins||[],n=t.reduce(function(r,i){var o=i.name,s=i.defaultValue;if(o){var a;r[o]=e[o]!==void 0?e[o]:(a=kn[o])!=null?a:s}return r},{});return Object.assign({},e,n)}function rD(e,t){var n=t?Object.keys(qw(Object.assign({},kn,{plugins:t}))):tD,r=n.reduce(function(i,o){var s=(e.getAttribute("data-tippy-"+o)||"").trim();if(!s)return i;if(o==="content")i[o]=s;else try{i[o]=JSON.parse(s)}catch{i[o]=s}return i},{});return r}function Lg(e,t){var n=Object.assign({},t,{content:Uw(t.content,[e])},t.ignoreAttributes?{}:rD(e,t.plugins));return n.aria=Object.assign({},kn.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?t.interactive:n.aria.expanded,content:n.aria.content==="auto"?t.interactive?null:"describedby":n.aria.content},n}var iD=function(){return"innerHTML"};function Wf(e,t){e[iD()]=t}function Mg(e){var t=Po();return e===!0?t.className=Vw:(t.className=Hw,tc(e)?t.appendChild(e):Wf(t,e)),t}function Ig(e,t){tc(t.content)?(Wf(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?Wf(e,t.content):e.textContent=t.content)}function qf(e){var t=e.firstElementChild,n=fl(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(Bw)}),arrow:n.find(function(r){return r.classList.contains(Vw)||r.classList.contains(Hw)}),backdrop:n.find(function(r){return r.classList.contains($I)})}}function Yw(e){var t=Po(),n=Po();n.className=jI,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Po();r.className=Bw,r.setAttribute("data-state","hidden"),Ig(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props);function i(o,s){var a=qf(t),l=a.box,c=a.content,f=a.arrow;s.theme?l.setAttribute("data-theme",s.theme):l.removeAttribute("data-theme"),typeof s.animation=="string"?l.setAttribute("data-animation",s.animation):l.removeAttribute("data-animation"),s.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?l.setAttribute("role",s.role):l.removeAttribute("role"),(o.content!==s.content||o.allowHTML!==s.allowHTML)&&Ig(c,e.props),s.arrow?f?o.arrow!==s.arrow&&(l.removeChild(f),l.appendChild(Mg(s.arrow))):l.appendChild(Mg(s.arrow)):f&&l.removeChild(f)}return{popper:t,onUpdate:i}}Yw.$$tippy=!0;var oD=1,Ys=[],eu=[];function sD(e,t){var n=Lg(e,Object.assign({},kn,qw(Rg(t)))),r,i,o,s=!1,a=!1,l=!1,c=!1,f,u,p,h=[],g=Pg(ue,n.interactiveDebounce),y,w=oD++,x=null,b=BI(n.plugins),m={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},d={id:w,reference:e,popper:Po(),popperInstance:x,props:n,state:m,plugins:b,clearDelayTimeouts:oe,setProps:be,setContent:Te,show:Ve,hide:Ye,hideWithInteractivity:Qe,enable:st,disable:ne,unmount:Lt,destroy:Et};if(!n.render)return d;var v=n.render(d),_=v.popper,O=v.onUpdate;_.setAttribute("data-tippy-root",""),_.id="tippy-"+d.id,d.popper=_,e._tippy=d,_._tippy=d;var C=b.map(function(Z){return Z.fn(d)}),k=e.hasAttribute("aria-expanded");return Q(),$(),D(),L("onCreate",[d]),n.showOnCreate&&nt(),_.addEventListener("mouseenter",function(){d.props.interactive&&d.state.isVisible&&d.clearDelayTimeouts()}),_.addEventListener("mouseleave",function(){d.props.interactive&&d.props.trigger.indexOf("mouseenter")>=0&&P().addEventListener("mousemove",g)}),d;function A(){var Z=d.props.touch;return Array.isArray(Z)?Z:[Z,0]}function T(){return A()[0]==="hold"}function M(){var Z;return!!((Z=d.props.render)!=null&&Z.$$tippy)}function I(){return y||e}function P(){var Z=I().parentNode;return Z?qI(Z):document}function S(){return qf(_)}function R(Z){return d.state.isMounted&&!d.state.isVisible||Bn.isTouch||f&&f.type==="focus"?0:Zc(d.props.delay,Z?0:1,kn.delay)}function D(Z){Z===void 0&&(Z=!1),_.style.pointerEvents=d.props.interactive&&!Z?"":"none",_.style.zIndex=""+d.props.zIndex}function L(Z,ee,se){if(se===void 0&&(se=!0),C.forEach(function(Ee){Ee[Z]&&Ee[Z].apply(Ee,ee)}),se){var Re;(Re=d.props)[Z].apply(Re,ee)}}function N(){var Z=d.props.aria;if(Z.content){var ee="aria-"+Z.content,se=_.id,Re=hi(d.props.triggerTarget||e);Re.forEach(function(Ee){var He=Ee.getAttribute(ee);if(d.state.isVisible)Ee.setAttribute(ee,He?He+" "+se:se);else{var Ke=He&&He.replace(se,"").trim();Ke?Ee.setAttribute(ee,Ke):Ee.removeAttribute(ee)}})}}function $(){if(!(k||!d.props.aria.expanded)){var Z=hi(d.props.triggerTarget||e);Z.forEach(function(ee){d.props.interactive?ee.setAttribute("aria-expanded",d.state.isVisible&&ee===I()?"true":"false"):ee.removeAttribute("aria-expanded")})}}function B(){P().removeEventListener("mousemove",g),Ys=Ys.filter(function(Z){return Z!==g})}function V(Z){if(!(Bn.isTouch&&(l||Z.type==="mousedown"))){var ee=Z.composedPath&&Z.composedPath()[0]||Z.target;if(!(d.props.interactive&&Tg(_,ee))){if(hi(d.props.triggerTarget||e).some(function(se){return Tg(se,ee)})){if(Bn.isTouch||d.state.isVisible&&d.props.trigger.indexOf("click")>=0)return}else L("onClickOutside",[d,Z]);d.props.hideOnClick===!0&&(d.clearDelayTimeouts(),d.hide(),a=!0,setTimeout(function(){a=!1}),d.state.isMounted||H())}}}function W(){l=!0}function F(){l=!1}function j(){var Z=P();Z.addEventListener("mousedown",V,!0),Z.addEventListener("touchend",V,kr),Z.addEventListener("touchstart",F,kr),Z.addEventListener("touchmove",W,kr)}function H(){var Z=P();Z.removeEventListener("mousedown",V,!0),Z.removeEventListener("touchend",V,kr),Z.removeEventListener("touchstart",F,kr),Z.removeEventListener("touchmove",W,kr)}function z(Z,ee){Y(Z,function(){!d.state.isVisible&&_.parentNode&&_.parentNode.contains(_)&&ee()})}function U(Z,ee){Y(Z,ee)}function Y(Z,ee){var se=S().box;function Re(Ee){Ee.target===se&&(Jc(se,"remove",Re),ee())}if(Z===0)return ee();Jc(se,"remove",u),Jc(se,"add",Re),u=Re}function X(Z,ee,se){se===void 0&&(se=!1);var Re=hi(d.props.triggerTarget||e);Re.forEach(function(Ee){Ee.addEventListener(Z,ee,se),h.push({node:Ee,eventType:Z,handler:ee,options:se})})}function Q(){T()&&(X("touchstart",re,{passive:!0}),X("touchend",ce,{passive:!0})),FI(d.props.trigger).forEach(function(Z){if(Z!=="manual")switch(X(Z,re),Z){case"mouseenter":X("mouseleave",ce);break;case"focus":X(QI?"focusout":"blur",xe);break;case"focusin":X("focusout",xe);break}})}function J(){h.forEach(function(Z){var ee=Z.node,se=Z.eventType,Re=Z.handler,Ee=Z.options;ee.removeEventListener(se,Re,Ee)}),h=[]}function re(Z){var ee,se=!1;if(!(!d.state.isEnabled||Oe(Z)||a)){var Re=((ee=f)==null?void 0:ee.type)==="focus";f=Z,y=Z.currentTarget,$(),!d.state.isVisible&&zI(Z)&&Ys.forEach(function(Ee){return Ee(Z)}),Z.type==="click"&&(d.props.trigger.indexOf("mouseenter")<0||s)&&d.props.hideOnClick!==!1&&d.state.isVisible?se=!0:nt(Z),Z.type==="click"&&(s=!se),se&&!Re&&ot(Z)}}function ue(Z){var ee=Z.target,se=I().contains(ee)||_.contains(ee);if(!(Z.type==="mousemove"&&se)){var Re=Ce().concat(_).map(function(Ee){var He,Ke=Ee._tippy,dt=(He=Ke.popperInstance)==null?void 0:He.state;return dt?{popperRect:Ee.getBoundingClientRect(),popperState:dt,props:n}:null}).filter(Boolean);YI(Re,Z)&&(B(),ot(Z))}}function ce(Z){var ee=Oe(Z)||d.props.trigger.indexOf("click")>=0&&s;if(!ee){if(d.props.interactive){d.hideWithInteractivity(Z);return}ot(Z)}}function xe(Z){d.props.trigger.indexOf("focusin")<0&&Z.target!==I()||d.props.interactive&&Z.relatedTarget&&_.contains(Z.relatedTarget)||ot(Z)}function Oe(Z){return Bn.isTouch?T()!==Z.type.indexOf("touch")>=0:!1}function Ie(){Be();var Z=d.props,ee=Z.popperOptions,se=Z.placement,Re=Z.offset,Ee=Z.getReferenceClientRect,He=Z.moveTransition,Ke=M()?qf(_).arrow:null,dt=Ee?{getBoundingClientRect:Ee,contextElement:Ee.contextElement||I()}:e,en={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(nn){var _e=nn.state;if(M()){var Xe=S(),de=Xe.box;["placement","reference-hidden","escaped"].forEach(function(ke){ke==="placement"?de.setAttribute("data-placement",_e.placement):_e.attributes.popper["data-popper-"+ke]?de.setAttribute("data-"+ke,""):de.removeAttribute("data-"+ke)}),_e.attributes.popper={}}}},at=[{name:"offset",options:{offset:Re}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!He}},en];M()&&Ke&&at.push({name:"arrow",options:{element:Ke,padding:3}}),at.push.apply(at,ee?.modifiers||[]),d.popperInstance=NI(dt,_,Object.assign({},ee,{placement:se,onFirstUpdate:p,modifiers:at}))}function Be(){d.popperInstance&&(d.popperInstance.destroy(),d.popperInstance=null)}function De(){var Z=d.props.appendTo,ee,se=I();d.props.interactive&&Z===zw||Z==="parent"?ee=se.parentNode:ee=Uw(Z,[se]),ee.contains(_)||ee.appendChild(_),d.state.isMounted=!0,Ie()}function Ce(){return fl(_.querySelectorAll("[data-tippy-root]"))}function nt(Z){d.clearDelayTimeouts(),Z&&L("onTrigger",[d,Z]),j();var ee=R(!0),se=A(),Re=se[0],Ee=se[1];Bn.isTouch&&Re==="hold"&&Ee&&(ee=Ee),ee?r=setTimeout(function(){d.show()},ee):d.show()}function ot(Z){if(d.clearDelayTimeouts(),L("onUntrigger",[d,Z]),!d.state.isVisible){H();return}if(!(d.props.trigger.indexOf("mouseenter")>=0&&d.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(Z.type)>=0&&s)){var ee=R(!1);ee?i=setTimeout(function(){d.state.isVisible&&d.hide()},ee):o=requestAnimationFrame(function(){d.hide()})}}function st(){d.state.isEnabled=!0}function ne(){d.hide(),d.state.isEnabled=!1}function oe(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(o)}function be(Z){if(!d.state.isDestroyed){L("onBeforeUpdate",[d,Z]),J();var ee=d.props,se=Lg(e,Object.assign({},ee,Rg(Z),{ignoreAttributes:!0}));d.props=se,Q(),ee.interactiveDebounce!==se.interactiveDebounce&&(B(),g=Pg(ue,se.interactiveDebounce)),ee.triggerTarget&&!se.triggerTarget?hi(ee.triggerTarget).forEach(function(Re){Re.removeAttribute("aria-expanded")}):se.triggerTarget&&e.removeAttribute("aria-expanded"),$(),D(),O&&O(ee,se),d.popperInstance&&(Ie(),Ce().forEach(function(Re){requestAnimationFrame(Re._tippy.popperInstance.forceUpdate)})),L("onAfterUpdate",[d,Z])}}function Te(Z){d.setProps({content:Z})}function Ve(){var Z=d.state.isVisible,ee=d.state.isDestroyed,se=!d.state.isEnabled,Re=Bn.isTouch&&!d.props.touch,Ee=Zc(d.props.duration,0,kn.duration);if(!(Z||ee||se||Re)&&!I().hasAttribute("disabled")&&(L("onShow",[d],!1),d.props.onShow(d)!==!1)){if(d.state.isVisible=!0,M()&&(_.style.visibility="visible"),D(),j(),d.state.isMounted||(_.style.transition="none"),M()){var He=S(),Ke=He.box,dt=He.content;Qc([Ke,dt],0)}p=function(){var at;if(!(!d.state.isVisible||c)){if(c=!0,_.offsetHeight,_.style.transition=d.props.moveTransition,M()&&d.props.animation){var tn=S(),nn=tn.box,_e=tn.content;Qc([nn,_e],Ee),kg([nn,_e],"visible")}N(),$(),Cg(eu,d),(at=d.popperInstance)==null||at.forceUpdate(),L("onMount",[d]),d.props.animation&&M()&&U(Ee,function(){d.state.isShown=!0,L("onShown",[d])})}},De()}}function Ye(){var Z=!d.state.isVisible,ee=d.state.isDestroyed,se=!d.state.isEnabled,Re=Zc(d.props.duration,1,kn.duration);if(!(Z||ee||se)&&(L("onHide",[d],!1),d.props.onHide(d)!==!1)){if
vendor: 5,113 bytes, line 17
17(d.state.isVisible=!1,d.state.isShown=!1,c=!1,s=!1,M()&&(_.style.visibility="hidden"),B(),H(),D(!0),M()){var Ee=S(),He=Ee.box,Ke=Ee.content;d.props.animation&&(Qc([He,Ke],Re),kg([He,Ke],"hidden"))}N(),$(),d.props.animation?M()&&z(Re,d.unmount):d.unmount()}}function Qe(Z){P().addEventListener("mousemove",g),Cg(Ys,g),g(Z)}function Lt(){d.state.isVisible&&d.hide(),d.state.isMounted&&(Be(),Ce().forEach(function(Z){Z._tippy.unmount()}),_.parentNode&&_.parentNode.removeChild(_),eu=eu.filter(function(Z){return Z!==d}),d.state.isMounted=!1,L("onHidden",[d]))}function Et(){d.state.isDestroyed||(d.clearDelayTimeouts(),d.unmount(),J(),delete e._tippy,d.state.isDestroyed=!0,L("onDestroy",[d]))}}function ps(e,t){t===void 0&&(t={});var n=kn.plugins.concat(t.plugins||[]);GI();var r=Object.assign({},t,{plugins:n}),i=WI(e),o=i.reduce(function(s,a){var l=a&&sD(a,r);return l&&s.push(l),s},[]);return tc(e)?o[0]:o}ps.defaultProps=kn;ps.setDefaultProps=nD;ps.currentInput=Bn;Object.assign({},Lw,{effect:function(t){var n=t.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}});ps.setDefaultProps({render:Yw});function Kw(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Xw=typeof window<"u"&&typeof document<"u";function Yf(e,t){e&&(typeof e=="function"&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function Dg(){return Xw&&document.createElement("div")}function aD(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}function Gw(e,t){if(e===t)return!0;if(typeof e=="object"&&e!=null&&typeof t=="object"&&t!=null){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(t.hasOwnProperty(n)){if(!Gw(e[n],t[n]))return!1}else return!1;return!0}else return!1}function lD(e){var t=[];return e.forEach(function(n){t.find(function(r){return Gw(n,r)})||t.push(n)}),t}function cD(e,t){var n,r;return Object.assign({},t,{popperOptions:Object.assign({},e.popperOptions,t.popperOptions,{modifiers:lD([].concat(((n=e.popperOptions)==null?void 0:n.modifiers)||[],((r=t.popperOptions)==null?void 0:r.modifiers)||[]))})})}var tu=Xw?E.useLayoutEffect:E.useEffect;function uD(e){var t=E.useRef();return t.current||(t.current=typeof e=="function"?e():e),t.current}function Ng(e,t,n){n.split(/\s+/).forEach(function(r){r&&e.classList[t](r)})}var fD={name:"className",defaultValue:"",fn:function(t){var n=t.popper.firstElementChild,r=function(){var a;return!!((a=t.props.render)!=null&&a.$$tippy)};function i(){t.props.className&&!r()||Ng(n,"add",t.props.className)}function o(){r()&&Ng(n,"remove",t.props.className)}return{onCreate:i,onBeforeUpdate:o,onAfterUpdate:i}}};function dD(e){function t(n){var r=n.children,i=n.content,o=n.visible,s=n.singleton,a=n.render,l=n.reference,c=n.disabled,f=c===void 0?!1:c,u=n.ignoreAttributes,p=u===void 0?!0:u;n.__source,n.__self;var h=Kw(n,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"]),g=o!==void 0,y=s!==void 0,w=E.useState(!1),x=w[0],b=w[1],m=E.useState({}),d=m[0],v=m[1],_=E.useState(),O=_[0],C=_[1],k=uD(function(){return{container:Dg(),renders:1}}),A=Object.assign({ignoreAttributes:p},h,{content:k.container});g&&(A.trigger="manual",A.hideOnClick=!1),y&&(f=!0);var T=A,M=A.plugins||[];a&&(T=Object.assign({},A,{plugins:y&&s.data!=null?[].concat(M,[{fn:function(){return{onTrigger:function(R,D){var L=s.data.children.find(function(N){var $=N.instance;return $.reference===D.currentTarget});R.state.$$activeSingletonInstance=L.instance,C(L.content)}}}}]):M,render:function(){return{popper:k.container}}}));var I=[l].concat(r?[r.type]:[]);return tu(function(){var P=l;l&&l.hasOwnProperty("current")&&(P=l.current);var S=e(P||k.ref||Dg(),Object.assign({},T,{plugins:[fD].concat(A.plugins||[])}));return k.instance=S,f&&S.disable(),o&&S.show(),y&&s.hook({instance:S,content:i,props:T,setSingletonContent:C}),b(!0),function(){S.destroy(),s?.cleanup(S)}},I),tu(function(){var P;if(k.renders===1){k.renders++;return}var S=k.instance;S.setProps(cD(S.props,T)),(P=S.popperInstance)==null||P.forceUpdate(),f?S.disable():S.enable(),g&&(o?S.show():S.hide()),y&&s.hook({instance:S,content:i,props:T,setSingletonContent:C})}),tu(function(){var P;if(a){var S=k.instance;S.setProps({popperOptions:Object.assign({},S.props.popperOptions,{modifiers:[].concat((((P=S.props.popperOptions)==null?void 0:P.modifiers)||[]).filter(function(R){var D=R.name;return D!=="$$tippyReact"}),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(D){var L,N=D.state,$=(L=N.modifiersData)==null?void 0:L.hide;(d.placement!==N.placement||d.referenceHidden!==$?.isReferenceHidden||d.escaped!==$?.hasPopperEscaped)&&v({placement:N.placement,referenceHidden:$?.isReferenceHidden,escaped:$?.hasPopperEscaped}),N.attributes.popper={}}}])})})}}
17,[d.placement,d.referenceHidden,d.escaped].concat(I)),Ae.createElement(Ae.Fragment,null,r?E.cloneElement(r,{ref:function(S){k.ref=S,Yf(r.ref,S)}}):null,x&&Rl.createPortal(a?a(aD(d),O,k.instance):i,k.container))}return t}var pD=(function(e,t){return E.forwardRef(function(r,i){var o=r.children,s=Kw(r,["children"]);return Ae.createElement(e,Object.assign({},t,s),o?E.cloneElement(o,{ref:function(l){Yf(i,l),Yf(o.ref,l)}}):null)})}),fz=pD(dD(ps)),nu,jg;function hD(){if(jg)return nu;jg=1,nu=function(i,o,s){var a=document.head||document.getElementsByTagName("head")[0],l=document.createElement("script");typeof o=="function"&&(s=o,o={}),o=o||{},s=s||function(){},l.type=o.type||"text/javascript",l.charset=o.charset||"utf8",l.async="async"in o?!!o.async:!0,l.src=i,o.attrs&&e(l,o.attrs),o.text&&(l.text=""+o.text);var c="onload"in l?t:n;c(l,s),l.onload||t(l,s),a.appendChild(l)};function e(r,i){for(var o in i)r.setAttribute(o,i[o])}function t(r,i){r.onload=function(){this.onerror=this.onload=null,i(null,r)},r.onerror=function(){this.onerror=this.onload=null,i(new Error("Failed to load "+this.src),r)}}function n(r,i){r.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,i(null,r))}}return nu}var ru,$g;function Zw(){if($g)return ru;$g=1;var e=function(b){return t(b)&&!n(b)};function t(x){return!!x&&typeof x=="object"}function n(x){var b=Object.prototype.toString.call(x);return b==="[object RegExp]"||b==="[object Date]"||o(x)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function o(x){return x.$$typeof===i}function s(x){return Array.isArray(x)?[]:{}}function a(x,b){return b.clone!==!1&&b.isMergeableObject(x)?y(s(x),x,b):x}function l(x,b,m){return x.concat(b).map(function(d){return a(d,m)})}function c(x,b){if(!b.customMerge)return y;var m=b.customMerge(x);return typeof m=="function"?m:y}function f(x){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(x).filter(function(b){return Object.propertyIsEnumerable.call(x,b)}):[]}function u(x){return Object.keys(x).concat(f(x))}function p(x,b){try{return b in x}catch{return!1}}function h(x,b){return p(x,b)&&!(Object.hasOwnProperty.call(x,b)&&Object.propertyIsEnumerable.call(x,b))}function g(x,b,m){var d={};return m.isMergeableObject(x)&&u(x).forEach(function(v){d[v]=a(x[v],m)}),u(b).forEach(function(v){h(x,v)||(p(x,v)&&m.isMergeableObject(b[v])?d[v]=c(v,m)(x[v],b[v],m):d[v]=a(b[v],m))}),d}function y(x,b,m){m=m||{},m.arrayMerge=m.arrayMerge||l,m.isMergeableObject=m.isMergeableObject||e,m.cloneUnlessOtherwiseSpecified=a;var d=Array.isArray(b),v=Array.isArray(x),_=d===v;return _?d?m.arrayMerge(x,b,m):g(x,b,m):a(b,m)}y.all=function(b,m){if(!Array.isArray(b))throw new Error("first argument should be an array");return b.reduce(function(d,v){return y(d,v,m)},{})};var w=y;return ru=w,ru}var iu,Fg;function At(){if(Fg)return iu;Fg=1;var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(N,$)=>{for(var B in $)t(N,B,{get:$[B],enumerable:!0})},a=(N,$,B,V)=>{if($&&typeof $=="object"||typeof $=="function")for(let W of r($))!o.call(N,W)&&W!==B&&t(N,W,{get:()=>$[W],enumerable:!(V=n($,W))||V.enumerable});return N},l=(N,$,B)=>(B=N!=null?e(i(N)):{},a(!N||!N.__esModule?t(B,"default",{value:N,enumerable:!0}):B,N)),c=N=>a(t({},"__esModule",{value:!0}),N),f={};s(f,{callPlayer:()=>P,getConfig:()=>M,getSDK:()=>T,isBlobUrl:()=>R,isMediaStream:()=>S,lazy:()=>g,omit:()=>I,parseEndTime:()=>_,parseStartTime:()=>v,queryString:()=>C,randomString:()=>O,supportsWebKitPresentationMode:()=>D}),iu=c(f);var u=l(ft()),p=l(hD()),h=l(Zw());const g=N=>u.default.lazy(async()=>{const $=await N();return typeof $.default=="function"?$:$.default}),y=/[?&#](?:start|t)=([0-9hms]+)/,w=/[?&#]end=([0-9hms]+)/,x=/(\d+)(h|m|s)/g,b=/^\d+$/;function m(N,$){if(N instanceof Array)return;const B=N.match($);if(B){const V=B[1];if(V.match(x))return d(V);if(b.test(V))return parseInt(V)}}function d(N){let $=0,B=x.exec(N);for(;B!==null;){const[,V,W]=B;W==="h"&&($+=parseInt(V,10)*60*60),W==="m"&&($+=parseInt(V,10)*60),W==="s"&&($+=parseInt(V,10)),B=x.exec(N)}return $}function v(N){return m(N,y)}function _(N){return m(N,w)}function O(){return Math.random().toString(36).substr(2,5)}function C(N){return Object.keys(N).map($=>`${$}=${N[$]}`).join("&")}function k(N){return window[N]?window[N]:window.exports&&window.exports[N]?window.exports[N]:window.module&&window.module.exports&&window.module.exports[N]?window.module.exports[N]:null}const A={},T=function($,B,V=null,W=()=>!0,F=p.default){const j=k(B);return j&&W(j)?Promise.resolve(j):new Promise((H,z)=>{if(A[$]){A[$].push({resolve:H,reject:z});return}A[$]=[{resolve:H,reject:z}];const U=Y=>{A[$].forEach(X=>X.resolve(Y))};if(V){const Y=window[V];window[V]=function(){Y&&Y(),U(k(B))}}F($,Y=>{Y?(A[$].forEach(X=>X.reject(Y)),A[$]=null):V||U(k(B))})})};function M(N,$){return(0,h.default)($.config,N.config)}function I(N,...$){const B=[].concat(...$),V={},W=Object.keys(N);for(const F of W)B.indexOf(F)===-1&&(V[F]=N[F]);return V}function P(N,...$){if(!this.player||!this.player[N]){let B=`ReactPlayer: ${this.constructor.displayName} player could not call %c${N}%c – `;return this.player?this.player[N]||(B+="The method was not available"):B+="The player was not available",console.warn(B,"font-weight: bold",""),null}return this.player[N](...$)}function S(N){return typeof window<"u"&&typeof window.MediaStream<"u"&&N instanceof window.MediaStream}function R(N){return/^blob:/.test(N)}function D(N=document.createElement("video")){const $=/iPhone|iPod/.test(navigator.userAgent)===!1;return N.webkitSupportsPresentationMode&&typeof N.webkitSetPresentationMode=="function"&&$}function L(N){return N}return iu}var ou,Bg;
17function Jt(){if(Bg)return ou;Bg=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,i=(P,S)=>{for(var R in S)e(P,R,{get:S[R],enumerable:!0})},o=(P,S,R,D)=>{if(S&&typeof S=="object"||typeof S=="function")for(let L of n(S))!r.call(P,L)&&L!==R&&e(P,L,{get:()=>S[L],enumerable:!(D=t(S,L))||D.enumerable});return P},s=P=>o(e({},"__esModule",{value:!0}),P),a={};i(a,{AUDIO_EXTENSIONS:()=>O,DASH_EXTENSIONS:()=>A,FLV_EXTENSIONS:()=>T,HLS_EXTENSIONS:()=>k,MATCH_URL_DAILYMOTION:()=>m,MATCH_URL_FACEBOOK:()=>h,MATCH_URL_FACEBOOK_WATCH:()=>g,MATCH_URL_KALTURA:()=>_,MATCH_URL_MIXCLOUD:()=>d,MATCH_URL_MUX:()=>p,MATCH_URL_SOUNDCLOUD:()=>f,MATCH_URL_STREAMABLE:()=>y,MATCH_URL_TWITCH_CHANNEL:()=>b,MATCH_URL_TWITCH_VIDEO:()=>x,MATCH_URL_VIDYARD:()=>v,MATCH_URL_VIMEO:()=>u,MATCH_URL_WISTIA:()=>w,MATCH_URL_YOUTUBE:()=>c,VIDEO_EXTENSIONS:()=>C,canPlay:()=>I}),ou=s(a);var l=At();const c=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,f=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,u=/vimeo\.com\/(?!progressive_redirect).+/,p=/stream\.mux\.com\/(?!\w+\.m3u8)(\w+)/,h=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,g=/^https?:\/\/fb\.watch\/.+$/,y=/streamable\.com\/([a-z0-9]+)$/,w=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,x=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,b=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,m=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,d=/mixcloud\.com\/([^/]+\/[^/]+)/,v=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,_=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/,O=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,C=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,k=/\.(m3u8)($|\?)/i,A=/\.(mpd)($|\?)/i,T=/\.(flv)($|\?)/i,M=P=>{if(P instanceof Array){for(const S of P)if(typeof S=="string"&&M(S)||M(S.src))return!0;return!1}return(0,l.isMediaStream)(P)||(0,l.isBlobUrl)(P)?!0:O.test(P)||C.test(P)||k.test(P)||A.test(P)||T.test(P)},I={youtube:P=>P instanceof Array?P.every(S=>c.test(S)):c.test(P),soundcloud:P=>f.test(P)&&!O.test(P),vimeo:P=>u.test(P)&&!C.test(P)&&!k.test(P),mux:P=>p.test(P),facebook:P=>h.test(P)||g.test(P),streamable:P=>y.test(P),wistia:P=>w.test(P),twitch:P=>x.test(P)||b.test(P),dailymotion:P=>m.test(P),mixcloud:P=>d.test(P),vidyard:P=>v.test(P),kaltura:P=>_.test(P),file:M};return ou}var su,Vg;function mD(){if(Vg)return su;Vg=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,i=(u,p)=>{for(var h in p)e(u,h,{get:p[h],enumerable:!0})},o=(u,p,h,g)=>{if(p&&typeof p=="object"||typeof p=="function")for(let y of n(p))!r.call(u,y)&&y!==h&&e(u,y,{get:()=>p[y],enumerable:!(g=t(p,y))||g.enumerable});return u},s=u=>o(e({},"__esModule",{value:!0}),u),a={};i(a,{default:()=>f}),su=s(a);var l=At(),c=Jt(),f=[{key:"youtube",name:"YouTube",canPlay:c.canPlay.youtube,lazyPlayer:(0,l.lazy)(()=>Rt(()=>Promise.resolve().then(()=>QN),void 0))},{key:"soundcloud",name:"SoundCloud",canPlay:c.canPlay.soundcloud,lazyPlayer:(0,l.lazy)(()=>Rt(()=>Promise.resolve().then(()=>t4),void 0))},{key:"vimeo",name:"Vimeo",canPlay:c.canPlay.vimeo,lazyPlayer:(0,l.lazy)(()=>Rt(()=>Promise.resolve().then(()=>i4),void 0))},{key:"mux",name:"Mux",canPlay:c.canPlay.mux,lazyPlayer:(0,l.lazy)(()=>Rt(()=>Promise.resolve().then(()=>a4),void 0))},{key:"facebook",name:"Facebook",canPlay:c.canPlay.facebook,lazyPlayer:(0,l.lazy)(()=>Rt(()=>Promise.resolve().then(()=>u4),void 0))},{key:"streamable",name:"Streamable",canPlay:c.canPlay.streamable,lazyPlayer:(0,l.lazy)(()=>Rt(()=>Promise.resolve().then(()=>p4),void 0))},{key:"wistia",name:"Wistia",canPlay:c.canPlay.wistia,lazyPlayer:(0,l.lazy)(()=>Rt(()=>Promise.resolve().then(()=>g4),void 0))},{key:"twitch",name:"Twitch",canPlay:c.canPlay.twitch,lazyPlayer:(0,l.lazy)(()=>Rt(()=>Promise.resolve().then(()=>b4),void 0))},{key:"dailymotion",name:"DailyMotion",canPlay:c.canPlay.dailymotion,lazyPlayer:(0,l.lazy)(()=>Rt(()=>Promise.resolve().then(()=>E4),void 0))},{key:"mixcloud",name:"Mixcloud",canPlay:c.canPlay.mixcloud,lazyPlayer:(0,l.lazy)(()=>Rt(()=>Promise.resolve().then(()=>O4),void 0))}
17,{key:"vidyard",name:"Vidyard",canPlay:c.canPlay.vidyard,lazyPlayer:(0,l.lazy)(()=>Rt(()=>Promise.resolve().then(()=>R4),void 0))},{key:"kaltura",name:"Kaltura",canPlay:c.canPlay.kaltura,lazyPlayer:(0,l.lazy)(()=>Rt(()=>Promise.resolve().then(()=>A4),void 0))},{key:"file",name:"FilePlayer",canPlay:c.canPlay.file,canEnablePIP:u=>c.canPlay.file(u)&&(document.pictureInPictureEnabled||(0,l.supportsWebKitPresentationMode)())&&!c.AUDIO_EXTENSIONS.test(u),lazyPlayer:(0,l.lazy)(()=>Rt(()=>Promise.resolve().then(()=>I4),void 0))}];return su}var Hg=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function gD(e,t){return!!(e===t||Hg(e)&&Hg(t))}function vD(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!gD(e[n],t[n]))return!1;return!0}function yD(e,t){t===void 0&&(t=vD);var n,r=[],i,o=!1;function s(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return o&&n===this&&t(a,r)||(i=e.apply(this,a),o=!0,n=this,r=a),i}return s}const bD=Object.freeze(Object.defineProperty({__proto__:null,default:yD},Symbol.toStringTag,{value:"Module"})),wD=Ny(bD);var au,zg;function Qw(){if(zg)return au;zg=1;var e=typeof Element<"u",t=typeof Map=="function",n=typeof Set=="function",r=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function i(o,s){if(o===s)return!0;if(o&&s&&typeof o=="object"&&typeof s=="object"){if(o.constructor!==s.constructor)return!1;var a,l,c;if(Array.isArray(o)){if(a=o.length,a!=s.length)return!1;for(l=a;l--!==0;)if(!i(o[l],s[l]))return!1;return!0}var f;if(t&&o instanceof Map&&s instanceof Map){if(o.size!==s.size)return!1;for(f=o.entries();!(l=f.next()).done;)if(!s.has(l.value[0]))return!1;for(f=o.entries();!(l=f.next()).done;)if(!i(l.value[1],s.get(l.value[0])))return!1;return!0}if(n&&o instanceof Set&&s instanceof Set){if(o.size!==s.size)return!1;for(f=o.entries();!(l=f.next()).done;)if(!s.has(l.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(s)){if(a=o.length,a!=s.length)return!1;for(l=a;l--!==0;)if(o[l]!==s[l])return!1;return!0}if(o.constructor===RegExp)return o.source===s.source&&o.flags===s.flags;if(o.valueOf!==Object.prototype.valueOf&&typeof o.valueOf=="function"&&typeof s.valueOf=="function")return o.valueOf()===s.valueOf();if(o.toString!==Object.prototype.toString&&typeof o.toString=="function"&&typeof s.toString=="function")return o.toString()===s.toString();if(c=Object.keys(o),a=c.length,a!==Object.keys(s).length)return!1;for(l=a;l--!==0;)if(!Object.prototype.hasOwnProperty.call(s,c[l]))return!1;if(e&&o instanceof Element)return!1;for(l=a;l--!==0;)if(!((c[l]==="_owner"||c[l]==="__v"||c[l]==="__o")&&o.$$typeof)&&!i(o[c[l]],s[c[l]]))return!1;return!0}return o!==o&&s!==s}return au=function(s,a){try{return i(s,a)}catch(l){if((l.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw l}},au}var lu,Ug;function Jw(){if(Ug)return lu;Ug=1;var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(C,k)=>{for(var A in k)t(C,A,{get:k[A],enumerable:!0})},a=(C,k,A,T)=>{if(k&&typeof k=="object"||typeof k=="function")for(let M of r(k))!o.call(C,M)&&M!==A&&t(C,M,{get:()=>k[M],enumerable:!(T=n(k,M))||T.enumerable});return C},l=(C,k,A)=>(A=C!=null?e(i(C)):{},a(!C||!C.__esModule?t(A,"default",{value:C,enumerable:!0}):A,C)),c=C=>a(t({},"__esModule",{value:!0}),C),f={};s(f,{defaultProps:()=>O,propTypes:()=>v}),lu=c(f);var u=l(Td());const{string:p,bool:h,number:g,array:y,oneOfType:w,shape:x,object:b,func:m,node:d}=u.default,v={url:w([p,y,b]),playing:h,loop:h,controls:h,volume:g,muted:h,playbackRate:g,width:w([p,g]),height:w([p,g]),style:b,progressInterval:g,playsinline:h,pip:h,stopOnUnmount:h,light:w([h,p,b]),playIcon:d,previewTabIndex:g,previewAriaLabel:p,fallback:d,oEmbedUrl:p,wrapper:w([p,m,x({render:m.isRequired})]),config:x({soundcloud:x({options:b}),youtube:x({playerVars:b,embedOptions:b,onUnstarted:m}),facebook:x({appId:p,version:p,playerId:p,attributes:b}),dailymotion:x({params:b}),vimeo:x({playerOptions:b,title:p}),mux:x({attributes:b,version:p}),file:x({attributes:b,tracks:y,forceVideo:h,forceAudio:h,forceHLS:h,forceSafariHLS:h,forceDisableHls:h,forceDASH:h,forceFLV:h,hl
vendor: 4,954 bytes, line 17
17sOptions:b,hlsVersion:p,dashVersion:p,flvVersion:p}),wistia:x({options:b,playerId:p,customControls:y}),mixcloud:x({options:b}),twitch:x({options:b,playerId:p}),vidyard:x({options:b})}),onReady:m,onStart:m,onPlay:m,onPause:m,onBuffer:m,onBufferEnd:m,onEnded:m,onError:m,onDuration:m,onSeek:m,onPlaybackRateChange:m,onPlaybackQualityChange:m,onProgress:m,onClickPreview:m,onEnablePIP:m,onDisablePIP:m},_=()=>{},O={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,previewAriaLabel:"",oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:_},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},mux:{attributes:{},version:"2"},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0",forceDisableHls:!1},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:_,onStart:_,onPlay:_,onPause:_,onBuffer:_,onBufferEnd:_,onEnded:_,onError:_,onDuration:_,onSeek:_,onPlaybackRateChange:_,onPlaybackQualityChange:_,onProgress:_,onClickPreview:_,onEnablePIP:_,onDisablePIP:_};return lu}var cu,Wg;function xD(){if(Wg)return cu;Wg=1;var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(m,d,v)=>d in m?t(m,d,{enumerable:!0,configurable:!0,writable:!0,value:v}):m[d]=v,a=(m,d)=>{for(var v in d)t(m,v,{get:d[v],enumerable:!0})},l=(m,d,v,_)=>{if(d&&typeof d=="object"||typeof d=="function")for(let O of r(d))!o.call(m,O)&&O!==v&&t(m,O,{get:()=>d[O],enumerable:!(_=n(d,O))||_.enumerable});return m},c=(m,d,v)=>(v=m!=null?e(i(m)):{},l(!m||!m.__esModule?t(v,"default",{value:m,enumerable:!0}):v,m)),f=m=>l(t({},"__esModule",{value:!0}),m),u=(m,d,v)=>(s(m,typeof d!="symbol"?d+"":d,v),v),p={};a(p,{default:()=>b}),cu=f(p);var h=c(ft()),g=c(Qw()),y=Jw(),w=At();const x=5e3;class b extends h.Component{constructor(){super(...arguments),u(this,"mounted",!1),u(this,"isReady",!1),u(this,"isPlaying",!1),u(this,"isLoading",!0),u(this,"loadOnReady",null),u(this,"startOnPlay",!0),u(this,"seekOnPlay",null),u(this,"onDurationCalled",!1),u(this,"handlePlayerMount",d=>{if(this.player){this.progress();return}this.player=d,this.player.load(this.props.url),this.progress()}),u(this,"getInternalPlayer",d=>this.player?this.player[d]:null),u(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){const d=this.getCurrentTime()||0,v=this.getSecondsLoaded(),_=this.getDuration();if(_){const O={playedSeconds:d,played:d/_};v!==null&&(O.loadedSeconds=v,O.loaded=v/_),(O.playedSeconds!==this.prevPlayed||O.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(O),this.prevPlayed=O.playedSeconds,this.prevLoaded=O.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)}),u(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:d,playing:v,volume:_,muted:O}=this.props;d(),!O&&_!==null&&this.player.setVolume(_),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):v&&this.player.play(),this.handleDurationCheck()}),u(this,"handlePlay",()=>{this.isPlaying=!0,this.isLoading=!1;const{onStart:d,onPlay:v,playbackRate:_}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&_!==1&&this.player.setPlaybackRate(_),d(),this.startOnPlay=!1),v(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()}),u(this,"handlePause",d=>{this.isPlaying=!1,this.isLoading||this.props.onPause(d)}),u(this,"handleEnded",()=>{const{activePlayer:d,loop:v,onEnded:_}=this.props;d.loopOnEnded&&v&&this.seekTo(0),v||(this.isPlaying=!1,_())}),u(this,"handleError",(...d)=>{this.isLoading=!1,this.props.onError(...d)}),u(this,"handleDurationCheck",()=>{clearTimeout(this.durationCheckTimeout);const d=this.getDuration();d?this.onDurationCalled||(this.props.onDuration(d),this.onDurationCalled=!0):this.durationCheckTimeout=setTimeout(this.handleDurationCheck,100)}),u(this,"handleLoaded",()=>{this.isLoading=!1})}componentDidMount(){this.mounted=!0}componentWillUnmount(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP(
17)),this.mounted=!1}componentDidUpdate(d){if(!this.player)return;const{url:v,playing:_,volume:O,muted:C,playbackRate:k,pip:A,loop:T,activePlayer:M,disableDeferredLoading:I}=this.props;if(!(0,g.default)(d.url,v)){if(this.isLoading&&!M.forceLoad&&!I&&!(0,w.isMediaStream)(v)){console.warn(`ReactPlayer: the attempt to load ${v} is being deferred until the player has loaded`),this.loadOnReady=v;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(v,this.isReady)}!d.playing&&_&&!this.isPlaying&&this.player.play(),d.playing&&!_&&this.isPlaying&&this.player.pause(),!d.pip&&A&&this.player.enablePIP&&this.player.enablePIP(),d.pip&&!A&&this.player.disablePIP&&this.player.disablePIP(),d.volume!==O&&O!==null&&this.player.setVolume(O),d.muted!==C&&(C?this.player.mute():(this.player.unmute(),O!==null&&setTimeout(()=>this.player.setVolume(O)))),d.playbackRate!==k&&this.player.setPlaybackRate&&this.player.setPlaybackRate(k),d.loop!==T&&this.player.setLoop&&this.player.setLoop(T)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(d,v,_){if(!this.isReady){d!==0&&(this.seekOnPlay=d,setTimeout(()=>{this.seekOnPlay=null},x));return}if(v?v==="fraction":d>0&&d<1){const C=this.player.getDuration();if(!C){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo(C*d,_);return}this.player.seekTo(d,_)}render(){const d=this.props.activePlayer;return d?h.default.createElement(d,{...this.props,onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError}):null}}return u(b,"displayName","Player"),u(b,"propTypes",y.propTypes),u(b,"defaultProps",y.defaultProps),cu}var uu,qg;function ED(){if(qg)return uu;qg=1;var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(T,M,I)=>M in T?t(T,M,{enumerable:!0,configurable:!0,writable:!0,value:I}):T[M]=I,a=(T,M)=>{for(var I in M)t(T,I,{get:M[I],enumerable:!0})},l=(T,M,I,P)=>{if(M&&typeof M=="object"||typeof M=="function")for(let S of r(M))!o.call(T,S)&&S!==I&&t(T,S,{get:()=>M[S],enumerable:!(P=n(M,S))||P.enumerable});return T},c=(T,M,I)=>(I=T!=null?e(i(T)):{},l(!T||!T.__esModule?t(I,"default",{value:T,enumerable:!0}):I,T)),f=T=>l(t({},"__esModule",{value:!0}),T),u=(T,M,I)=>(s(T,typeof M!="symbol"?M+"":M,I),I),p={};a(p,{createReactPlayer:()=>A}),uu=f(p);var h=c(ft()),g=c(Zw()),y=c(wD),w=c(Qw()),x=Jw(),b=At(),m=c(xD());const d=(0,b.lazy)(()=>Rt(()=>Promise.resolve().then(()=>j4),void 0)),v=typeof window<"u"&&window.document&&typeof document<"u",_=typeof xo<"u"&&xo.window&&xo.window.document,O=Object.keys(x.propTypes),C=v||_?h.Suspense:()=>null,k=[],A=(T,M)=>{var I;return I=class extends h.Component{constructor(){super(...arguments),u(this,"state",{showPreview:!!this.props.light}),u(this,"references",{wrapper:P=>{this.wrapper=P},player:P=>{this.player=P}}),u(this,"handleClickPreview",P=>{this.setState({showPreview:!1}),this.props.onClickPreview(P)}),u(this,"showPreview",()=>{this.setState({showPreview:!0})}),u(this,"getDuration",()=>this.player?this.player.getDuration():null),u(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),u(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),u(this,"getInternalPlayer",(P="player")=>this.player?this.player.getInternalPlayer(P):null),u(this,"seekTo",(P,S,R)=>{if(!this.player)return null;this.player.seekTo(P,S,R)}),u(this,"handleReady",()=>{this.props.onReady(this)}),u(this,"getActivePlayer",(0,y.default)(P=>{for(const S of[...k,...T])if(S.canPlay(P))return S;return M||null})),u(this,"getConfig",(0,y.default)((P,S)=>{const{config:R}=this.props;return g.default.all([x.defaultProps.config,x.defaultProps.config[S]||{},R,R[S]||{}])})),u(this,"getAttributes",(0,y.default)(P=>(0,b.omit)(this.props,O))),u(this,"renderActivePlayer",P=>{if(!P)return null;const S=this.getActivePlayer(P);if(!S)return null;
17const R=this.getConfig(P,S.key);return h.default.createElement(m.default,{...this.props,key:S.key,ref:this.references.player,config:R,activePlayer:S.lazyPlayer||S,onReady:this.handleReady})})}shouldComponentUpdate(P,S){return!(0,w.default)(this.props,P)||!(0,w.default)(this.state,S)}componentDidUpdate(P){const{light:S}=this.props;!P.light&&S&&this.setState({showPreview:!0}),P.light&&!S&&this.setState({showPreview:!1})}renderPreview(P){if(!P)return null;const{light:S,playIcon:R,previewTabIndex:D,oEmbedUrl:L,previewAriaLabel:N}=this.props;return h.default.createElement(d,{url:P,light:S,playIcon:R,previewTabIndex:D,previewAriaLabel:N,oEmbedUrl:L,onClick:this.handleClickPreview})}render(){const{url:P,style:S,width:R,height:D,fallback:L,wrapper:N}=this.props,{showPreview:$}=this.state,B=this.getAttributes(P),V=typeof N=="string"?this.references.wrapper:void 0;return h.default.createElement(N,{ref:V,style:{...S,width:R,height:D},...B},h.default.createElement(C,{fallback:L},$?this.renderPreview(P):this.renderActivePlayer(P)))}},u(I,"displayName","ReactPlayer"),u(I,"propTypes",x.propTypes),u(I,"defaultProps",x.defaultProps),u(I,"addCustomPlayer",P=>{k.push(P)}),u(I,"removeCustomPlayers",()=>{k.length=0}),u(I,"canPlay",P=>{for(const S of[...k,...T])if(S.canPlay(P))return!0;return!1}),u(I,"canEnablePIP",P=>{for(const S of[...k,...T])if(S.canEnablePIP&&S.canEnablePIP(P))return!0;return!1}),I};return uu}var fu,Yg;function _D(){if(Yg)return fu;Yg=1;var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(y,w)=>{for(var x in w)t(y,x,{get:w[x],enumerable:!0})},a=(y,w,x,b)=>{if(w&&typeof w=="object"||typeof w=="function")for(let m of r(w))!o.call(y,m)&&m!==x&&t(y,m,{get:()=>w[m],enumerable:!(b=n(w,m))||b.enumerable});return y},l=(y,w,x)=>(x=y!=null?e(i(y)):{},a(!y||!y.__esModule?t(x,"default",{value:y,enumerable:!0}):x,y)),c=y=>a(t({},"__esModule",{value:!0}),y),f={};s(f,{default:()=>g}),fu=c(f);var u=l(mD()),p=ED();const h=u.default[u.default.length-1];var g=(0,p.createReactPlayer)(u.default,h);return fu}var e1=_D();const SD=ut(e1),dz=Tt({__proto__:null,default:SD},[e1]);function t1(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=t1(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function pz(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=t1(e))&&(r&&(r+=" "),r+=t);return r}const OD=typeof document<"u"?Ae.useLayoutEffect:()=>{},Pr=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},Dr=e=>e&&"window"in e&&e.window===e?e:Pr(e).defaultView||window;function PD(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function CD(e){return PD(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let RD=!1;function cp(){return RD}function Nr(e,t){if(!cp())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:CD(n)?n=n.host:n=n.parentNode}return!1}const Kf=(e=document)=>{var t;if(!cp())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function n1(e){return cp()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function kD(e){if(TD())e.focus({preventScroll:!0});else{let t=AD(e);e.focus(),LD(t)}}let Ks=null;function TD(){if(Ks==null){Ks=!1;try{document.createElement("div").focus({get preventScroll(){return Ks=!0,!0}})}catch{}}return Ks}function AD(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function LD(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function nc(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let n=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(n)&&n.some(r=>e.test(r.brand))||e.test(window.navigator.userAgent)}function r1(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Xi(e){let t=null;return()=>(t==null&&(t=e()),t)}const dl=Xi(function(){return r1(/^Mac/i)}),MD=Xi(function(){return r1(/^iPad/i)||dl()&&navigator.maxTouchPoints>1}
vendor: 6,563 bytes, line 17
17),ID=Xi(function(){return nc(/AppleWebKit/i)&&!DD()}),DD=Xi(function(){return nc(/Chrome/i)}),ND=Xi(function(){return nc(/Android/i)}),jD=Xi(function(){return nc(/Firefox/i)});function zo(e,t,n=!0){var r,i;let{metaKey:o,ctrlKey:s,altKey:a,shiftKey:l}=t;jD()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(dl()?o=!0:s=!0);let c=ID()&&dl()&&!MD()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:s,altKey:a,shiftKey:l}):new MouseEvent("click",{metaKey:o,ctrlKey:s,altKey:a,shiftKey:l,detail:1,bubbles:!0,cancelable:!0});zo.isOpening=n,kD(e),e.dispatchEvent(c),zo.isOpening=!1}zo.isOpening=!1;function i1(){let e=E.useRef(new Map),t=E.useCallback((i,o,s,a)=>{let l=a?.once?(...c)=>{e.current.delete(s),s(...c)}:s;e.current.set(s,{type:o,eventTarget:i,fn:l,options:a}),i.addEventListener(o,l,a)},[]),n=E.useCallback((i,o,s,a)=>{var l;let c=((l=e.current.get(s))===null||l===void 0?void 0:l.fn)||s;i.removeEventListener(o,c,a),e.current.delete(s)},[]),r=E.useCallback(()=>{e.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return E.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function $D(e){return e.pointerType===""&&e.isTrusted?!0:ND()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function o1(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function FD(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function s1(e){let t=E.useRef({isFocused:!1,observer:null});return OD(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]),E.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=n.target,i=o=>{if(t.current.isFocused=!1,r.disabled){let s=o1(o);e?.(s)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var o;(o=t.current.observer)===null||o===void 0||o.disconnect();let s=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[e])}let BD=!1,hs=null;const Xf=new Set;let Co=new Map,Qr=!1,Gf=!1;const VD={Tab:!0,Escape:!0};function up(e,t){for(let n of Xf)n(e,t)}function HD(e){return!(e.metaKey||!dl()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function pl(e){Qr=!0,!zo.isOpening&&HD(e)&&(hs="keyboard",up("keyboard",e))}function wi(e){hs="pointer","pointerType"in e&&e.pointerType,(e.type==="mousedown"||e.type==="pointerdown")&&(Qr=!0,up("pointer",e))}function a1(e){!zo.isOpening&&$D(e)&&(Qr=!0,hs="virtual")}function l1(e){e.target===window||e.target===document||BD||!e.isTrusted||(!Qr&&!Gf&&(hs="virtual",up("virtual",e)),Qr=!1,Gf=!1)}function c1(){Qr=!1,Gf=!0}function Zf(e){if(typeof window>"u"||typeof document>"u"||Co.get(Dr(e)))return;const t=Dr(e),n=Pr(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Qr=!0,r.apply(this,arguments)},n.addEventListener("keydown",pl,!0),n.addEventListener("keyup",pl,!0),n.addEventListener("click",a1,!0),t.addEventListener("focus",l1,!0),t.addEventListener("blur",c1,!1),typeof PointerEvent<"u"&&(n.addEventListener("pointerdown",wi,!0),n.addEventListener("pointermove",wi,!0),n.addEventListener("pointerup",wi,!0)),t.addEventListener("beforeunload",()=>{u1(e)},{once:!0}),Co.set(t,{focus:r})}const u1=(e,t)=>{const n=Dr(e),r=Pr(e);t&&r.removeEventListener("DOMContentLoaded",t),Co.has(n)&&(n.HTMLElement.prototype.focus=Co.get(n).focus,r.removeEventListener("keydown",pl,!0),r.removeEventListener("keyup",pl,!0),r.removeEventListener("click",a1,!0),n.removeEventListener("focus",l1,!0),n.removeEventListener("blur",c1,!1),typeof PointerEvent<"u"&&(r.removeEventListener("pointerdown",wi,!0),r.removeEventListener("pointermove",wi,!0),r.removeEventListener("pointerup",wi,!0)),Co.delete(n))};function zD(e){const t=Pr(e);let n;return t.readyState!=="loading"?Zf(e):(n=()=>{Zf(e)},t.addEventListener("DOMContentLoaded",n)),()=>u1(e,n)}typeof document<"u"&&zD();function Qf(){return hs!=="pointer"}const UD=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function WD(e,t,n){let r=Pr(n?.target);const i=typeof window<"u"?Dr(n?.target).HTMLInputElement:HTMLInputElement,o=typeof window<"u"?Dr(n?.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?Dr(n?.target).HTMLElement:HTMLElement,a=typeof window<"u"?Dr(n?.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof i&&!UD.has(r.activeElement.type)||r.activeElement instanceof o||r.activeElement instanceof s&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof a&&!VD[n.key])}function qD(e,t,n){Zf(),E.useEffect(()=>{if(n?.enabled===!1)return;let r=(i,o)=>{WD(!!n?.isTextInput,i,o)&&e(Qf())};return Xf.add(r),()=>{Xf.delete(r)}},t)}function YD(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=E.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),s=s1(o),a=E.useCallback(l=>{const c=Pr(l.target),f=c?Kf(c):Kf();l.target===l.currentTarget&&f===n1(l.nativeEvent)&&(n&&n(l),i&&i(!0),s(l))},[i,n,s]);return{focusProps:{onFocus:!t&&(n||i||r)?a:void 0,onBlur:!t&&(r||i)?o:void 0}}}function KD(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=E.useRef({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:a}=i1(),l=E.useCallback(u=>{Nr(u.currentTarget,u.target)&&o.current.isFocusWithin&&!Nr(u.currentTarget,u.relatedTarget)&&(o.current.isFocusWithin=!1,a(),n&&n(u),i&&i(!1))},[n,i,o,a]),c=s1(l),f=E.useCallback(u=>{if(!Nr(u.currentTarget,u.target))return;const p=Pr(u.target),h=Kf(p);if(!o.current.isFocusWithin&&h===n1(u.nativeEvent)){r&&r(u),i&&i(!0),o.current.isFocusWithin=!0,c(u);let g=u.currentTarget;s(p,"focus",y=>{if(o.current.isFocusWithin&&!Nr(g,y.target)){let w=new p.defaultView.FocusEvent("blur",{relatedTarget:y.target});FD(w,g);let x=o1(w);l(x)}},{capture:!0})}},[r,i,c,s,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}
17:{focusWithinProps:{onFocus:f,onBlur:l}}}let Jf=!1,Xs=0;function XD(){Jf=!0,setTimeout(()=>{Jf=!1},50)}function Kg(e){e.pointerType==="touch"&&XD()}function GD(){if(!(typeof document>"u"))return Xs===0&&typeof PointerEvent<"u"&&document.addEventListener("pointerup",Kg),Xs++,()=>{Xs--,!(Xs>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",Kg)}}function hz(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,s]=E.useState(!1),a=E.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;E.useEffect(GD,[]);let{addGlobalListener:l,removeAllGlobalListeners:c}=i1(),{hoverProps:f,triggerHoverEnd:u}=E.useMemo(()=>{let p=(y,w)=>{if(a.pointerType=w,i||w==="touch"||a.isHovered||!Nr(y.currentTarget,y.target))return;a.isHovered=!0;let x=y.currentTarget;a.target=x,l(Pr(y.target),"pointerover",b=>{a.isHovered&&a.target&&!Nr(a.target,b.target)&&h(b,b.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:x,pointerType:w}),n&&n(!0),s(!0)},h=(y,w)=>{let x=a.target;a.pointerType="",a.target=null,!(w==="touch"||!a.isHovered||!x)&&(a.isHovered=!1,c(),r&&r({type:"hoverend",target:x,pointerType:w}),n&&n(!1),s(!1))},g={};return typeof PointerEvent<"u"&&(g.onPointerEnter=y=>{Jf&&y.pointerType==="mouse"||p(y,y.pointerType)},g.onPointerLeave=y=>{!i&&Nr(y.currentTarget,y.target)&&h(y,y.pointerType)}),{hoverProps:g,triggerHoverEnd:h}},[t,n,r,i,a,l,c]);return E.useEffect(()=>{i&&u({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:f,isHovered:o}}function mz(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=E.useRef({isFocused:!1,isFocusVisible:t||Qf()}),[o,s]=E.useState(!1),[a,l]=E.useState(()=>i.current.isFocused&&i.current.isFocusVisible),c=E.useCallback(()=>l(i.current.isFocused&&i.current.isFocusVisible),[]),f=E.useCallback(h=>{i.current.isFocused=h,i.current.isFocusVisible=Qf(),s(h),c()},[c]);qD(h=>{i.current.isFocusVisible=h,c()},[n,o],{enabled:o,isTextInput:n});let{focusProps:u}=YD({isDisabled:r,onFocusChange:f}),{focusWithinProps:p}=KD({isDisabled:!r,onFocusWithinChange:f});return{isFocused:o,isFocusVisible:a,focusProps:r?p:u}}function ZD(e){return typeof e=="object"?e.key:e}function QD(e,t){const n=e.length;return new Proxy(e,{get(r,i,o){if(typeof i=="string"){const s=i.charCodeAt(0);if(s>=48&&s<=57){const a=+i;if(Number.isInteger(a)&&a>=0&&a<n){let l=r[a];if(typeof l!="object"){const c=t[a*2];l=r[a]={index:a,key:l,start:c,size:t[a*2+1],end:c+t[a*2+1],lane:0}}return l}}if(i==="length")return n}return Reflect.get(r,i,o)}})}function ci(e,t,n){let r=n.initialDeps??[],i,o=!0;function s(){const a=e();return(a.length!==r.length||a.some((c,f)=>r[f]!==c))&&(r=a,i=t(...a),n?.onChange&&!(o&&n.skipInitialOnChange)&&n.onChange(i),o=!1),i}return s.updateDeps=a=>{r=a},s}function Xg(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const Gg=(e,t)=>Math.abs(e-t)<1.01,JD=(e,t,n)=>{let r;return Object.assign(function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)},{cancel:()=>{e.clearTimeout(r)}})};let ao;const du=()=>{if(ao!==void 0)return ao;if(typeof navigator>"u")return ao=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return ao=!0;const e=navigator.maxTouchPoints;return ao=navigator.platform==="MacIntel"&&e!==void 0&&e>0},Zg=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},eN=e=>e,tN=e=>{const t=Math.max(e.startIndex-e.overscan,0),r=Math.min(e.endIndex+e.overscan,e.count-1)-t+1,i=new Array(r);for(let o=0;o<r;o++)i[o]=t+o;return i},nN=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const i=s=>{const{width:a,height:l}=s;t({width:Math.round(a),height:Math.round(l)})};if(i(Zg(n)),!r.ResizeObserver)return()=>{};const o=new r.ResizeObserver(s=>{const a=()=>{const l=s[0];if(l?.borderBoxSize){const c=l.borderBoxSize[0];if(c){i({width:c.inlineSize,height:c.blockSize});return}}i(Zg(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(a):a()});return o.observe(n,{box:"border-box"}),()=>{o.unobserve(n)}},hl={passive:!0},rN=typeof window>"u"?!0:"onscrollend"in window,iN=(e,t,n)=>{const r=e.scrollElement;if(!r)return;const i=e.targetWindow;if(!i)return;const o=e.options.useScrollendEvent&&rN;let s=0;const a=o?null:JD(i,()=>t(n(r),!1),e.options.isScrollingResetDelay),l=u=>()=>{s=n(r),a?.(),t(s,u)},c=l(!0),f=l(!1);return r.addEventListener("scroll",c,hl),o&&r.addEventListener("scrollend",f,hl),()=>{r.removeEventListener("scroll",c),o&&r.removeEventListener("scrollend",f),a?.cancel()}},oN=(e,t)=>iN(e,t,n=>{const{horizontal:r,isRtl:i}=e.options;return r?n.scrollLeft*(i&&-1||1):n.scrollTop}),sN=(e,t,n)=>{if(n.options.useCachedMeasurements){const r=n.indexFromElement(e),i=n.options.getItemKey(r);return n.itemSizeCache.get(i)??n.options.estimateSize(r)}if(t?.borderBoxSize){const r=t.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?"inlineSize":"blockSize"])}if(!t){const r=n.indexFromElement(e),i=n.options.getItemKey(r),o=n.itemSizeCache.get(i);if(o!==void 0)return o}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]}
17,aN=(e,{adjustments:t=0,behavior:n},r)=>{var i,o;(o=(i=r.scrollElement)==null?void 0:i.scrollTo)==null||o.call(i,{[r.options.horizontal?"left":"top"]:e+t,behavior:n})},lN=aN;function cN(e,t,n,r){if(t===0)return!1;const i=r(0),o=new Set;let s=0;for(;s<e;){const l=n(s);if(l===i)break;o.add(l),s++}const a=e-s;if(a===0||a>=t)return!1;for(let l=0;l<a;l++)if(r(l)!==n(s+l))return!1;for(let l=a;l<t;l++)if(o.has(r(l)))return!1;return!0}class uN{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._intendedScrollOffset=null,this._clampedAdjustment=null,this.elementsCache=new Map,this.now=()=>{var n,r,i;return((i=(r=(n=this.targetWindow)==null?void 0:n.performance)==null?void 0:r.now)==null?void 0:i.call(r))??Date.now()},this.observer=(()=>{let n=null;const r=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(i=>{i.forEach(o=>{const s=()=>{const a=o.target,l=this.indexFromElement(a);if(!a.isConnected){this.observer.unobserve(a);for(const[c,f]of this.elementsCache)if(f===a){this.elementsCache.delete(c);break}return}this.isIndexInRange(l)&&this.shouldMeasureDuringScroll(l)&&this.resizeItem(l,this.options.measureElement(a,o,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(s):s()})}));return{disconnect:()=>{var i;(i=r())==null||i.disconnect(),n=null},observe:i=>{var o;return(o=r())==null?void 0:o.observe(i,{box:"border-box"})},unobserve:i=>{var o;return(o=r())==null?void 0:o.unobserve(i)}}})(),this.range=null,this.setOptions=n=>{var r;const i={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:eN,rangeExtractor:tN,onChange:()=>{},measureElement:sN,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,anchorTo:"start",followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:"estimate",useCachedMeasurements:!1};for(const u in n){const p=n[u];p!==void 0&&(i[u]=p)}const o=this.options;let s=null,a=null,l=!1;if(o!==void 0&&o.enabled&&i.enabled&&i.anchorTo==="end"&&this.scrollElement!==null){const u=o.count,p=i.count,h=this.getMeasurements(),g=((r=this._singleLaneMeasurements)==null?void 0:r.items)??h,y=d=>ZD(g[d]),w=u>0?y(0):null,x=u>0?y(u-1):null;if(p!==u||u>0&&p>0&&(i.getItemKey(0)!==w||i.getItemKey(p-1)!==x)){l=!0;const d=u>0?this.getVirtualItemForOffset(this.getScrollOffset())??h[0]:null;d&&(s=[d.key,this.getScrollOffset()-d.start]);const v=i.followOnAppend===!0?"auto":i.followOnAppend||null;v&&p>0&&this.isAtEnd(o.scrollEndThreshold)&&(u===0||i.getItemKey(p-1)!==x)&&(p>u||cN(u,p,y,i.getItemKey))&&(a=v)}}this.options=i,l&&(this.pendingMin=0,this.itemSizeCacheVersion++);let c=!1,f=0;if(s&&this.scrollOffset!==null){const[u,p]=s,h=this.getMeasurements(),{count:g,getItemKey:y}=this.options;let w=0;for(;w<g&&y(w)!==u;)w++;if(w<g){const x=h[w];if(x){const b=Math.max(0,x.start+p);!a&&b!==this.scrollOffset&&(f=b-this.scrollOffset,this.scrollOffset=b,c=!0)}}}(c||a)&&(this.pendingScrollAnchor=[c?s[0]:null,c?s[1]:0,a,f])},this.notify=n=>{var r,i;(i=(r=this.options).onChange)==null||i.call(r,this,n)},this.maybeNotify=ci(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>
17{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.isScrolling=!1,this.scrollDirection=null,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._clampedAdjustment=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n,r;const i=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==i){if(this.cleanup(),!i){this.maybeNotify();return}if(this.scrollElement=i,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(s=>{this.observer.observe(s)}),this.unsubs.push(this.options.observeElementRect(this,s=>{this.scrollRect=s,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(s,a)=>{if(a&&this._intendedScrollOffset===null&&s===this.scrollOffset)return;this._intendedScrollOffset!==null&&Math.abs(s-this._intendedScrollOffset)<1.5&&(s=this._intendedScrollOffset),this._intendedScrollOffset=null,this._clampedAdjustment!==null&&Math.abs(s-this._clampedAdjustment.maxAtWrite)>=1.5&&(this._clampedAdjustment=null),this.scrollAdjustments=0;const l=this.getScrollOffset();this.scrollDirection=a?l===s?this.scrollDirection:l<s?"forward":"backward":null,this.scrollOffset=s,this.isScrolling=a,this._flushIosDeferredIfReady(),this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),"addEventListener"in this.scrollElement){const s=this.scrollElement,a=()=>{this._iosTouching=!0,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId!==null&&this.targetWindow!=null&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)},l=()=>{this._iosTouching=!1,!(!du()||this.targetWindow==null)&&(this._iosJustTouchEnded=!0,this._iosTouchEndTimerId=this.targetWindow.setTimeout(()=>{this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._flushIosDeferredIfReady()},150))};s.addEventListener("touchstart",a,hl),s.addEventListener("touchend",l,hl),this.unsubs.push(()=>{s.removeEventListener("touchstart",a),s.removeEventListener("touchend",l),this._iosTouchEndTimerId!==null&&this.targetWindow!=null&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)})}this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}const o=this.pendingScrollAnchor;if(this.pendingScrollAnchor=null,o&&this.scrollElement&&this.options.enabled){const[s,a,l,c]=o;s!==null&&!l&&(du()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?c!==0&&(this._iosDeferredAdjustment+=c):((r=this.scrollState)==null?void 0:r.behavior)==="smooth"&&!Gg(this.getScrollOffset()-c,this.scrollState.lastTargetOffset)||this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})),l&&this.scrollToEnd({behavior:l})}this._retryClampedAdjustment()},this._retryClampedAdjustment=()=>{if(this._clampedAdjustment===null||!this.scrollElement||!this.options.enabled)return;const{target:n,maxAtWrite:r}=this._clampedAdjustment,i=this.getMaxScrollOffset();i>r+.5&&(this._clampedAdjustment=n>i+.5?{target:n,maxAtWrite:i}:null,this._scrollToOffset(n,{adjustments:void 0,behavior:void 0}))},this._flushIosDeferredIfReady=()=>{if(this._iosDeferredAdjustment===0||this.isScrolling||this._iosTouching||this._iosJustTouchEnded)return;const n=this.getScrollOffset(),r=this.getMaxScrollOffset();if(n<0||n>r)return;if(this._iosDeferredAdjustment<0&&n>=r-1){this._iosDeferredAdjustment=0;return}const i=this._iosDeferredAdjustment;this._iosDeferredAdjustment=0,this._scrollToOffset(n,{adjustments:this.scrollAdjustments+=i,behavior:void 0})},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getMeasurementOptions=ci(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode,this.options.gap],(n,r,i,o,s,a,l,c)=>(this.prevLanes!==void 0&&this.prevLanes!==a&&(this.lanesChangedFlag=!0),this.prevLanes=a,this.pendingMin=null,{count:n,paddingStart:r,scrollMargin:i,getItemKey:o,enabled:s,lanes:a,laneAssignmentMode:l,gap:c}),{key:!1}),this.isIndexInRange=n=>n>=0&&n<this.options.count,this.getMeasurements=ci(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:n,paddingStart:r,scrollMargin:i,getItemKey:o,enabled:s,lanes:a,laneAssignmentMode:l,gap:c},f)=>{var u;const p=this.itemSizeCache;if(!s)return this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>n)for(const b of this.laneAssignments.keys())b>=n&&this.laneAssignments.delete(b);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(b=>{this.itemSizeCache.set(b.key,b.size)}));const h=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===n&&(this.lanesSettling=!1),a===1){const b=n*2;let m=(u=this._singleLaneMeasurements)==null?void 0:u.flat;if(!m||m.length<b){const O=new Float64Array(b);m&&h>0&&O.set(m.subarray(0,h*2)),m=O}const d=h===0?new Array(n):this._singleLaneMeasurements.items.slice();let v;if(h===0)v=r+i;else{const O=h-1;v=m[O*2]+m[O*2+1]+c}for(let O=h;O<n;O++){const C=o(O);d[O]=C;const k=p.get(C),A=typeof k=="number"?k:this.options.estimateSize(O);m[O*2]=v,m[O*2+1]=A,v+=A+c}this._singleLaneMeasurements={flat:m,items:d};const _=QD(d,m);return this.measurementsCache=_,_}const g=this.measurementsCache.slice(0,h),y=new Array(a).fill(void 0),w=new Float64Array(a);let x=0;for(let b=0;b<h;b++){const m=g[b];m&&(y[m.lane]===void 0&&x++,y[m.lane]=b,w[m.lane]=m.end)}for(let b=h;b<n;b++){const m=o(b),d=this.laneAssignments.get(b);let v,_;const O=l==="estimate"||p.has(m);if(d!==void 0&&this.options.lanes>1){v=d;const T=y[v],M=T!==void 0?g[T]:void 0;_=M?M.end+c:r+i}else if(x===a){let T=0,M=w[0],I=y[0];for(let P=1;P<a;P++){const S=w[P];(S<M||S===M&&y[P]<I)&&(T=P,M=S,I=y[P])}v=T,_=M+c,O&&this.laneAssignments.set(b,v)}else v=b%this.options.lanes,_=r+i,O&&this.laneAssignments.set(b,v);const C=p.get(m),k=typeof C=="number"?C:this.options.estimateSize(b),A=_+k;g[b]={index:b,start:_,size:k,end:A,key:m,lane:v},y[v]===void 0&&x++,y[v]=b,w[v]=A}return this.measurementsCache=g,g},{key:!1,debug:()=>this.options.debug}),this.calculateRange=ci(()=>
17[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,r,i,o)=>n.length===0||r===0?(this.range=null,null):(this.range=dN(n,r,i,o,o===1&&this._singleLaneMeasurements!==null?this._singleLaneMeasurements.flat:null),this.range),{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=ci(()=>{let n=null,r=null;const i=this.calculateRange();return i&&(n=i.startIndex,r=i.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,r]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,r]},(n,r,i,o,s)=>o===null||s===null?[]:n({startIndex:o,endIndex:s,overscan:r,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const r=this.options.indexAttribute,i=n.getAttribute(r);return i?parseInt(i,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=n=>{var r;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;const i=this.scrollState.index??((r=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:r.index);if(i!==void 0&&this.range){const o=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),s=Math.max(0,i-o),a=Math.min(this.options.count-1,i+o);return n>=s&&n<=a}return!0},this.measureElement=n=>{if(!n){this.elementsCache.forEach((s,a)=>{s.isConnected||(this.observer.unobserve(s),this.elementsCache.delete(a))});return}const r=this.indexFromElement(n);if(!this.isIndexInRange(r))return;const i=this.options.getItemKey(r),o=this.elementsCache.get(i);o!==n&&(o&&this.observer.unobserve(o),this.observer.observe(n),this.elementsCache.set(i,n)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(r)&&this.resizeItem(r,this.options.measureElement(n,void 0,this))},this.resizeItem=(n,r)=>{var i,o,s;if(!this.isIndexInRange(n))return;let a,l,c;const f=(i=this._singleLaneMeasurements)==null?void 0:i.flat;if(this.options.lanes===1&&f!=null)c=this.options.getItemKey(n),l=f[n*2],a=f[n*2+1];else{const h=this.measurementsCache[n];if(!h)return;
17c=h.key,l=h.start,a=h.size}const u=this.itemSizeCache.get(c)??a,p=r-u;if(p!==0){const h=this.options.anchorTo==="end"&&((o=this.scrollState)==null?void 0:o.behavior)!=="smooth"&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,g=h?this.getTotalSize():0,y=this.getScrollOffset()+this.scrollAdjustments,x=!this.itemSizeCache.has(c)?l<y:l+u<=y&&this.scrollDirection!=="backward",b=((s=this.scrollState)==null?void 0:s.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[n]??{index:n,key:c,start:l,size:a,end:l+a,lane:0},p,this):x);(this.pendingMin===null||n<this.pendingMin)&&(this.pendingMin=n),this.itemSizeCache.set(c,r),this.itemSizeCacheVersion++;let m=!1;h?m=this.applyScrollAdjustment(this.getTotalSize()-g):b&&(m=this.applyScrollAdjustment(p)),this.notify(m),this._retryClampedAdjustment()}},this.getVirtualItems=ci(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,r)=>{const i=[];for(let o=0,s=n.length;o<s;o++){const a=n[o],l=r[a];i.push(l)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{var r;const i=this.getMeasurements();if(i.length===0)return;const o=(r=this._singleLaneMeasurements)==null?void 0:r.flat,s=this.options.lanes===1&&o!=null,a=f1(0,i.length-1,s?l=>o[l*2]:l=>Xg(i[l]).start,n);return Xg(i[a])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const n=this.scrollElement.document.documentElement;return this.options.horizontal?n.scrollWidth-this.scrollElement.innerWidth:n.scrollHeight-this.scrollElement.innerHeight}},this.getVirtualDistanceFromEnd=()=>Math.max(this.getTotalSize()-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=(n=this.options.scrollEndThreshold)=>this.getDistanceFromEnd()<=n,this.getOffsetForAlignment=(n,r,i=0)=>{if(!this.scrollElement)return 0;const o=this.getSize(),s=this.getScrollOffset();r==="auto"&&(r=n>=s+o?"end":"start"),r==="center"?n+=(i-o)/2:r==="end"&&(n-=o);const a=this.getMaxScrollOffset();return Math.max(Math.min(a,n),0)},this.getOffsetForIndex=(n,r="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const i=this.getSize(),o=this.getScrollOffset(),s=this.measurementsCache[n];if(!s)return;if(r==="auto")if(s.end>=o+i-this.options.scrollPaddingEnd)r="end";else if(s.start<=o+this.options.scrollPaddingStart)r="start";else return[o,r];if(r==="end"&&n===this.options.count-1)return[this.getMaxScrollOffset(),r];const a=r==="end"?s.end+this.options.scrollPaddingEnd:s.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(a,r,s.size),r]},this.scrollToOffset=(n,{align:r="start",behavior:i="auto"}={})=>{this._iosDeferredAdjustment=0;const o=this.getOffsetForAlignment(n,r),s=this.now();this.scrollState={index:null,align:r,behavior:i,startedAt:s,lastTargetOffset:o,stableFrames:0},this._scrollToOffset(o,{adjustments:void 0,behavior:i}),this.scheduleScrollReconcile()},this.scrollToIndex=(n,{align:r="auto",behavior:i="auto"}={})=>{this._iosDeferredAdjustment=0,n=Math.max(0,Math.min(n,this.options.count-1));const o=this.getOffsetForIndex(n,r);if(!o)return;const[s,a]=o,l=this.now();this.scrollState={index:n,align:a,behavior:i,startedAt:l,lastTargetOffset:s,stableFrames:0},this._scrollToOffset(s,{adjustments:void 0,behavior:i}),this.scheduleScrollReconcile()},this.scrollBy=(n,{behavior:r="auto"}={})=>{const i=this.getScrollOffset()+n,o=this.now();this.scrollState={index:null,align:"start",behavior:r,startedAt:o,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{adjustments:void 0,behavior:r}),this.scheduleScrollReconcile()},this.scrollToEnd=({behavior:n="auto"}={})=>{if(this.options.count>0){this.scrollToIndex(this.options.count-1,{align:"end",behavior:n});return}this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:n})},this.getTotalSize=()=>{var n,r;const i=this.getMeasurements();let o;if(i.length===0)o=this.options.paddingStart;else if(this.options.lanes===1){const s=i.length-1,a=(n=this._singleLaneMeasurements)==null?void 0:n.flat;a!=null?o=a[s*2]+a[s*2+1]:o=((r=i[s])==null?void 0:r.end)??0}else{const s=Array(this.options.lanes).fill(null);let a=i.length-1;for(;a>=0&&s.some(l=>l===null);){const l=i[a];s[l.lane]===null&&(s[l.lane]=l.end),a--}o=Math.max(...s.filter(l=>l!==null))}return Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{const n=[];if(this.itemSizeCache.size===0)return n;const r=this.getMeasurements();for(const i of r)i&&this.itemSizeCache.has(i.key)&&n.push({index:i.index,key:i.key,start:i.start,size:i.size,end:i.end,lane:i.lane});return n},this._scrollToOffset=(n,{adjustments:r,behavior:i})=>{this._intendedScrollOffset=n+(r??0),this.options.scrollToFn(n,{behavior:i,adjustments:r},this)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(t)}applyScrollAdjustment(t,n){if(t===0)return!1;if(du()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded))return this._iosDeferredAdjustment+=t,!1;{const r=this.getScrollOffset()+this.scrollAdjustments+t,i=this.scrollElement,o=i!==null&&("scrollHeight"in i||"document"in i)?this.getMaxScrollOffset():null;return this._clampedAdjustment=o!==null&&r>o+.5?{target:r,maxAtWrite:o}:null,this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=t,behavior:n}),this.scrollOffset!==null&&(this.scrollOffset+=this.scrollAdjustments,this.scrollOffset<0&&(this.scrollOffset=0),this.scrollAdjustments=0),!0}}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}const r=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,i=r?r[0]:this.scrollState.lastTargetOffset,o=1,s=i!==this.scrollState.lastTargetOffset;
17if(!s&&Gg(i,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=o){this.getScrollOffset()!==i&&this._scrollToOffset(i,{adjustments:void 0,behavior:"auto"}),this.scrollState=null;return}}else if(this.scrollState.stableFrames=0,s){const a=this.getSize()||600,l=Math.abs(i-this.getScrollOffset()),c=this.scrollState.behavior==="smooth"&&l>a;this.scrollState.lastTargetOffset=i,c||(this.scrollState.behavior="auto"),this._scrollToOffset(i,{adjustments:void 0,behavior:c?"smooth":"auto"})}this.scheduleScrollReconcile()}}const f1=(e,t,n,r)=>{for(;e<=t;){const i=(e+t)/2|0,o=n(i);if(o<r)e=i+1;else if(o>r)t=i-1;else return i}return e>0?e-1:0};function fN(e,t,n){let r=0;for(;r<=t;){const i=(r+t)/2|0,o=e[i*2];if(o<n)r=i+1;else if(o>n)t=i-1;else return i}return r>0?r-1:0}function dN(e,t,n,r,i){const o=e.length-1;if(e.length<=r)return{startIndex:0,endIndex:o};if(r===1&&i!==null){const c=fN(i,o,n);let f=c;const u=n+t;for(;f<o&&i[f*2]+i[f*2+1]<u;)f++;return{startIndex:c,endIndex:f}}let a=f1(0,o,c=>e[c].start,n),l=a;if(r===1)for(;l<o&&e[l].end<n+t;)l++;else if(r>1){const c=Array(r).fill(0);for(;l<o&&c.some(u=>u<n+t);){const u=e[l];c[u.lane]=u.end,l++}const f=Array(r).fill(n+t);for(;a>=0&&f.some(u=>u>=n);){const u=e[a];f[u.lane]=u.start,a--}a=Math.max(0,a-a%r),l=Math.min(o,l+(r-1-l%r))}return{startIndex:a,endIndex:l}}const pu=typeof document<"u"?E.useLayoutEffect:E.useEffect;function pN({useFlushSync:e=!0,directDomUpdates:t=!1,directDomUpdatesMode:n="transform",...r}){const i=E.useReducer(u=>u+1,0)[1],o=E.useRef({enabled:t,mode:n,container:null,lastSize:null,lastPositions:new WeakMap,prevRange:null});o.current.enabled=t,o.current.mode=n;const s=E.useRef(!1),a=u=>{const p=o.current;if(!p.enabled||!p.container)return;const h=u.getTotalSize();if(h!==p.lastSize){p.lastSize=h;const g=u.options.horizontal?"width":"height";p.container.style[g]=`${h}px`}},l=u=>{const p=o.current;if(!p.enabled||!p.container)return;a(u);const h=!!u.options.horizontal,g=p.mode==="transform",y=h?"left":"top",w=u.options.scrollMargin,x=u.getVirtualItems();for(const b of x){const m=b.start-w,d=u.elementsCache.get(b.key);d&&p.lastPositions.get(d)!==m&&(p.lastPositions.set(d,m),g?d.style.transform=h?`translate3d(${m}px, 0, 0)`:`translate3d(0, ${m}px, 0)`:d.style[y]=`${m}px`)}},c={...r,onChange:(u,p)=>{var h;const g=o.current;let y=!0;if(g.enabled){l(u);const w=u.range,x=g.prevRange;y=!x||x.isScrolling!==u.isScrolling||x.startIndex!==w?.startIndex||x.endIndex!==w?.endIndex,y&&(g.prevRange=w?{startIndex:w.startIndex,endIndex:w.endIndex,isScrolling:u.isScrolling}:null)}y&&(e&&p&&!s.current?Rl.flushSync(i):i()),(h=r.onChange)==null||h.call(r,u,p)}},[f]=E.useState(()=>{const u=new uN(c),p=u.measureElement;return u.measureElement=h=>{s.current=!0;try{p(h)}finally{s.current=!1}},Object.assign(u,{containerRef:h=>{const g=o.current;if(g.container=h,g.lastSize=null,h&&g.enabled){const y=u.getTotalSize();g.lastSize=y;const w=u.options.horizontal?"width":"height";h.style[w]=`${y}px`}}})});return f.setOptions(c),pu(()=>f._didMount(),[]),pu(()=>(a(f),f._willUpdate())),pu(()=>{l(f)}),f}function gz(e){return pN({observeElementRect:nN,observeElementOffset:oN,scrollToFn:lN,...e})}const{entries:d1,setPrototypeOf:Qg,isFrozen:hN,getPrototypeOf:mN,getOwnPropertyDescriptor:gN}=Object;let{freeze:Ft,seal:_n,create:ed}=Object,{apply:td,construct:nd}=typeof Reflect<"u"&&Reflect;Ft||(Ft=function(t){return t});_n||(_n=function(t){return t});td||(td=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];return t.apply(n,i)});nd||(nd=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return new t(...r)});const Gs=Bt(Array.prototype.forEach),vN=Bt(Array.prototype.lastIndexOf),Jg=Bt(Array.prototype.pop),lo=Bt(Array.prototype.push),yN=Bt(Array.prototype.splice),Pa=Bt(String.prototype.toLowerCase),hu=Bt(String.prototype.toString),mu=Bt(String.prototype.match),co=Bt(String.prototype.replace),bN=Bt(String.prototype.indexOf),wN=Bt(String.prototype.trim),Sn=Bt(Object.prototype.hasOwnProperty),Dt=Bt(
vendor: 4,373 bytes, line 17
17RegExp.prototype.test),uo=xN(TypeError);function Bt(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return td(e,t,r)}}function xN(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return nd(e,n)}}function Me(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Pa;Qg&&Qg(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const o=n(i);o!==i&&(hN(t)||(t[r]=o),i=o)}e[i]=!0}return e}function EN(e){for(let t=0;t<e.length;t++)Sn(e,t)||(e[t]=null);return e}function jn(e){const t=ed(null);for(const[n,r]of d1(e))Sn(e,n)&&(Array.isArray(r)?t[n]=EN(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=jn(r):t[n]=r);return t}function fo(e,t){for(;e!==null;){const r=gN(e,t);if(r){if(r.get)return Bt(r.get);if(typeof r.value=="function")return Bt(r.value)}e=mN(e)}function n(){return null}return n}const ev=Ft(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),gu=Ft(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),vu=Ft(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),_N=Ft(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),yu=Ft(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),SN=Ft(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),tv=Ft(["#text"]),nv=Ft(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
vendor: 3,932 bytes, line 17
17spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),bu=Ft(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),rv=Ft(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Zs=Ft(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ON=_n(/\{\{[\w\W]*|[\w\W]*\}\}/gm),PN=_n(/<%[\w\W]*|[\w\W]*%>/gm),CN=_n(/\$\{[\w\W]*/gm),RN=_n(/^data-[\-\w.\u00B7-\uFFFF]+$/),kN=_n(/^aria-[\-\w]+$/),p1=_n(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),TN=_n(/^(?:\w+script|data):/i),AN=_n(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),h1=_n(/^html$/i),LN=_n(/^[a-z][.\w]*(-[.\w]+)+$/i);var iv=Object.freeze({__proto__:null,ARIA_ATTR:kN,ATTR_WHITESPACE:AN,CUSTOM_ELEMENT:LN,DATA_ATTR:RN,DOCTYPE_NAME:h1,ERB_EXPR:PN,IS_ALLOWED_URI:p1,IS_SCRIPT_OR_DATA:TN,MUSTACHE_EXPR:ON,TMPLIT_EXPR:CN});const po={element:1,text:3,progressingInstruction:7,comment:8,document:9},MN=function(){return typeof window>"u"?null:window},IN=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;
vendor: 11,365 bytes, line 17
17const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},ov=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function m1(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:MN();const t=fe=>m1(fe);if(t.version="3.3.1",t.removed=[],!e||!e.document||e.document.nodeType!==po.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:s,Node:a,Element:l,NodeFilter:c,NamedNodeMap:f=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:u,DOMParser:p,trustedTypes:h}=e,g=l.prototype,y=fo(g,"cloneNode"),w=fo(g,"remove"),x=fo(g,"nextSibling"),b=fo(g,"childNodes"),m=fo(g,"parentNode");if(typeof s=="function"){const fe=n.createElement("template");fe.content&&fe.content.ownerDocument&&(n=fe.content.ownerDocument)}let d,v="";const{implementation:_,createNodeIterator:O,createDocumentFragment:C,getElementsByTagName:k}=n,{importNode:A}=r;let T=ov();t.isSupported=typeof d1=="function"&&typeof m=="function"&&_&&_.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:M,ERB_EXPR:I,TMPLIT_EXPR:P,DATA_ATTR:S,ARIA_ATTR:R,IS_SCRIPT_OR_DATA:D,ATTR_WHITESPACE:L,CUSTOM_ELEMENT:N}=iv;let{IS_ALLOWED_URI:$}=iv,B=null;const V=Me({},[...ev,...gu,...vu,...yu,...tv]);let W=null;const F=Me({},[...nv,...bu,...rv,...Zs]);let j=Object.seal(ed(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),H=null,z=null;const U=Object.seal(ed(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Y=!0,X=!0,Q=!1,J=!0,re=!1,ue=!0,ce=!1,xe=!1,Oe=!1,Ie=!1,Be=!1,De=!1,Ce=!0,nt=!1;const ot="user-content-";let st=!0,ne=!1,oe={},be=null;const Te=Me({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ve=null;const Ye=Me({},["audio","video","img","source","image","track"]);let Qe=null;const Lt=Me({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Et="http://www.w3.org/1998/Math/MathML",Z="http://www.w3.org/2000/svg",ee="http://www.w3.org/1999/xhtml";let se=ee,Re=!1,Ee=null;const He=Me({},[Et,Z,ee],hu);let Ke=Me({},["mi","mo","mn","ms","mtext"]),dt=Me({},["annotation-xml"]);const en=Me({},["title","style","font","a","script"]);let at=null;const tn=["application/xhtml+xml","text/html"],nn="text/html";let _e=null,Xe=null;const de=n.createElement("form"),ke=function(q){return q instanceof RegExp||q instanceof Function},wt=function(){let q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Xe&&Xe===q)){if((!q||typeof q!="object")&&(q={}),q=jn(q),at=tn.indexOf(q.PARSER_MEDIA_TYPE)===-1?nn:q.PARSER_MEDIA_TYPE,_e=at==="application/xhtml+xml"?hu:Pa,B=Sn(q,"ALLOWED_TAGS")?Me({},q.ALLOWED_TAGS,_e):V,W=Sn(q,"ALLOWED_ATTR")?Me({},q.ALLOWED_ATTR,_e):F,Ee=Sn(q,"ALLOWED_NAMESPACES")?Me({},q.ALLOWED_NAMESPACES,hu):He,Qe=Sn(q,"ADD_URI_SAFE_ATTR")?Me(jn(Lt),q.ADD_URI_SAFE_ATTR,_e):Lt,Ve=Sn(q,"ADD_DATA_URI_TAGS")?Me(jn(Ye),q.ADD_DATA_URI_TAGS,_e):Ye,be=Sn(q,"FORBID_CONTENTS")?Me({},q.FORBID_CONTENTS,_e):Te,H=Sn(q,"FORBID_TAGS")?Me({},q.FORBID_TAGS,_e):jn({}),z=Sn(q,"FORBID_ATTR")?Me({},q.FORBID_ATTR,_e):jn({}),oe=Sn(q,"USE_PROFILES")?q.USE_PROFILES:!1,Y=q.ALLOW_ARIA_ATTR!==!1,X=q.ALLOW_DATA_ATTR!==!1,Q=q.ALLOW_UNKNOWN_PROTOCOLS||!1,J=q.ALLOW_SELF_CLOSE_IN_ATTR!==!1,re=q.SAFE_FOR_TEMPLATES||!1,ue=q.SAFE_FOR_XML!==!1,ce=q.WHOLE_DOCUMENT||!1,Ie=q.RETURN_DOM||!1,Be=q.RETURN_DOM_FRAGMENT||!1,De=q.RETURN_TRUSTED_TYPE||!1,Oe=q.FORCE_BODY||!1,Ce=q.SANITIZE_DOM!==!1,nt=q.SANITIZE_NAMED_PROPS||!1,st=q.KEEP_CONTENT!==!1,ne=q.IN_PLACE||!1,$=q.ALLOWED_URI_REGEXP||p1,se=q.NAMESPACE||ee,Ke=q.MATHML_TEXT_INTEGRATION_POINTS||Ke,dt=q.HTML_INTEGRATION_POINTS||dt,j=q.CUSTOM_ELEMENT_HANDLING||{},q.CUSTOM_ELEMENT_HANDLING&&ke(q.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(j.tagNameCheck=q.CUSTOM_ELEMENT_HANDLING.tagNameCheck),q.CUSTOM_ELEMENT_HANDLING&&ke(q.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(j.attributeNameCheck=q.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),q.CUSTOM_ELEMENT_HANDLING&&typeof q.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(j.allowCustomizedBuiltInElements=q.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),re&&(X=!1),Be&&(Ie=!0),oe&&(B=Me({},tv),W=[],oe.html===!0&&(Me(B,ev),Me(W,nv)),oe.svg===!0&&(Me(B,gu),Me(W,bu),Me(W,Zs)),oe.svgFilters===!0&&(Me(B,vu),Me(W,bu),Me(W,Zs)),oe.mathMl===!0&&(Me(B,yu),Me(W,rv),Me(W,Zs))),q.ADD_TAGS&&(typeof q.ADD_TAGS=="function"?U.tagCheck=q.ADD_TAGS:(B===V&&(B=jn(B)),Me(B,q.ADD_TAGS,_e))),q.ADD_ATTR&&(typeof q.ADD_ATTR=="function"?U.attributeCheck=q.ADD_ATTR:(W===F&&(W=jn(W)),Me(W,q.ADD_ATTR,_e))),q.ADD_URI_SAFE_ATTR&&Me(Qe,q.ADD_URI_SAFE_ATTR,_e),q.FORBID_CONTENTS&&(be===Te&&(be=jn(be)),Me(be,q.FORBID_CONTENTS,_e)),q.ADD_FORBID_CONTENTS&&(be===Te&&(be=jn(be)),Me(be,q.ADD_FORBID_CONTENTS,_e)),st&&(B["#text"]=!0),ce&&Me(B,["html","head","body"]),B.table&&(Me(B,["tbody"]),delete H.tbody),q.TRUSTED_TYPES_POLICY){if(typeof q.TRUSTED_TYPES_POLICY.createHTML!="function")throw uo('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof q.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw uo('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');d=q.TRUSTED_TYPES_POLICY,v=d.createHTML("")}else d===void 0&&(d=IN(h,i)),d!==null&&typeof v=="string"&&(v=d.createHTML(""));Ft&&Ft(q),Xe=q}},fn=Me({},[...gu,...vu,..._N]),ie=Me({},[...yu,...SN]),he=function(q){let te=m(q);(!te||!te.tagName)&&(te={namespaceURI:se,tagName:"template"});const le=Pa(q.tagName),pe=Pa(te.tagName);return Ee[q.namespaceURI]?q.namespaceURI===Z?te.namespaceURI===ee?le==="svg":te.namespaceURI===Et?le==="svg"&&(pe==="annotation-xml"||Ke[pe]):!!fn[le]:q.namespaceURI===Et?te.namespaceURI===ee?le==="math":te.namespaceURI===Z?le==="math"&&dt[pe]:!!ie[le]:q.namespaceURI===ee?te.namespaceURI===Z&&!dt[pe]||te.namespaceURI===Et&&!Ke[pe]?!1:!ie[le]&&(en[le]||!fn[le]):!!(at==="application/xhtml+xml"&&Ee[q.namespaceURI]):!1},ae=function(q){lo(t.removed,{element:q});try{m(q).removeChild(q)}catch{w(q)}},Le=function(q,te){try{lo(t.removed,{attribute:te.getAttributeNode(q),from:te})}catch{lo(t.removed,{attribute:null,from:te})}if(te.removeAttribute(q),q==="is")if(Ie||Be)try{ae(te)}catch{}else try{te.setAttribute(q,"")}catch{}},rt=function(q){let te=null,le=null;if(Oe)q="<remove></remove>"+q;else{const Ge=mu(q,/^[\r\n\t ]+/);le=Ge&&Ge[0]}at==="application/xhtml+xml"&&se===ee&&(q='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+q+"</body></html>");const pe=d?d.createHTML(q):q;if(se===ee)try{te=new p().parseFromString(pe,at)}catch{}if(!te||!te.documentElement){te=_.createDocument(se,"template",null);try{te.documentElement.innerHTML=Re?v:pe}catch{}}const qe=te.body||te.documentElement;return q&&le&&qe.insertBefore(n.createTextNode(le),qe.childNodes[0]||null),se===ee?k.call(te,ce?"html":"body")[0]:ce?te.documentElement:qe},Mt=function(q){return O.call(q.ownerDocument||q,q,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Pt=function(q){return q instanceof u&&(typeof q.nodeName!="string"||typeof q.textContent!="string"||typeof q.removeChild!="function"||!(q.attributes instanceof f)||typeof q.removeAttribute!="function"||typeof q.setAttribute!="function"||typeof q.namespaceURI!="string"||typeof q.insertBefore!="function"||typeof q.hasChildNodes!="function")},pt=function(q){return typeof a=="function"&&q instanceof a};function Je(fe,q,te){Gs(fe,le=>{le.call(t,q,te,Xe)})}const ze=function(q){let te=null;if(Je(T.beforeSanitizeElements,q,null),Pt(q))return ae(q),!0;const le=_e(q.nodeName);if(Je(T.uponSanitizeElement,q,{tagName:le,allowedTags:B}),ue&&q.hasChildNodes()&&!pt(q.firstElementChild)&&Dt(/<[/\w!]/g,q.innerHTML)&&Dt(/<[/\w!]/g,q.textContent)||q.nodeType===po.progressingInstruction||ue&&q.nodeType===po.comment&&Dt(/<[/\w]/g,q.data))return ae(q),!0;if(!(U.tagCheck instanceof Function&&U.tagCheck(le))&&(!B[le]||H[le])){if(!H[le]&&Cr(le)&&(j.tagNameCheck instanceof RegExp&&Dt(j.tagNameCheck,le)||j.tagNameCheck instanceof Function&&j.tagNameCheck(le)))return!1;if(st&&!be[le]){const pe=m(q)||q.parentNode,qe=b(q)||q.childNodes;if(qe&&pe){const Ge=qe.length;for(let lt=Ge-1;lt>=0;--lt){const rn=y(qe[lt],!0);rn.__removalCount=(q.__removalCount||0)+1,pe.insertBefore(rn,x(q))}}}return ae(q),!0}return q instanceof l&&!he(q)||(le==="noscript"||le==="noembed"||le==="noframes")&&Dt(/<\/no(script|embed|frames)/i,q.innerHTML)?(ae(q),!0):(re&&q.nodeType===po.text&&(te=q.textContent,Gs([M,I,P],pe=>{te=co(te,pe," ")}),q.textContent!==te&&(lo(t.removed,{element:q.cloneNode()}),q.textContent=te)),Je(T.afterSanitizeElements,q,null),!1)},dn=function(q,te,le){if(Ce&&(te==="id"||te==="name")&&(le in n||le in de))return!1;if(!(X&&!z[te]&&Dt(S,te))){if(!(Y&&Dt(R,te))){if(!(U.attributeCheck instanceof Function&&U.attributeCheck(te,q))){if(!W[te]||z[te]){if(!(Cr(q)&&(j.tagNameCheck instanceof RegExp&&Dt(j.tagNameCheck,q)||j.tagNameCheck instanceof Function&&j.tagNameCheck(q))&&(j.attributeNameCheck instanceof RegExp&&Dt(j.attributeNameCheck,te)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(te,q))||te==="is"&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&Dt(j.tagNameCheck,le)||j.tagNameCheck instanceof Function&&j.tagNameCheck(le))))return!1}else if(!Qe[te]){if(!Dt($,co(le,L,""))){if(!((te==="src"||te==="xlink:href"||te==="href")&&q!=="script"&&bN(le,"data:")===0&&Ve[q])){if(!(Q&&!Dt(D,co(le,L,"")))){if(le)return!1}}}}}}}return!0},Cr=function(q){return q!=="annotation-xml"&&mu(q,N)},ii=function(q){Je(T.beforeSanitizeAttributes,q,null);const{attributes:te}=q;if(!te||Pt(q))return;const le={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W,forceKeepAttr:void 0};let pe=te.length;for(;pe--;){const qe=te[pe],{name:Ge,namespaceURI:lt,value:rn}=qe,pn=_e(Ge),Gi=rn;let xt=Ge==="value"?Gi:wN(Gi);if(le.attrName=pn,le.attrValue=xt,le.keepAttr=!0,le.forceKeepAttr=void 0,Je(T.uponSanitizeAttribute,q,le),xt=le.attrValue,nt&&(pn==="id"||pn==="name")&&(Le(Ge,q),xt=ot+xt),ue&&Dt(/((--!?|])>)|<\/(style|title|textarea)/i,xt)){Le(Ge,q);continue}if(pn==="attributename"&&mu(xt,"href")){Le(Ge,q);continue}if(le.forceKeepAttr)continue;if(!le.keepAttr){Le(Ge,q);continue}if(!J&&Dt(/\/>/i,xt)){Le(Ge,q);continue}re&&Gs([M,I,P],Es=>{xt=co(xt,Es," ")});const Zi=_e(q.nodeName);if(!dn(Zi,pn,xt)){Le(Ge,q);continue}if(d&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!lt)switch(h.getAttributeType(Zi,pn)){case"TrustedHTML":{xt=d.createHTML(xt);break}case"TrustedScriptURL":{xt=d.createScriptURL(xt);break}}
17if(xt!==Gi)try{lt?q.setAttributeNS(lt,Ge,xt):q.setAttribute(Ge,xt),Pt(q)?ae(q):Jg(t.removed)}catch{Le(Ge,q)}}Je(T.afterSanitizeAttributes,q,null)},oi=function fe(q){let te=null;const le=Mt(q);for(Je(T.beforeSanitizeShadowDOM,q,null);te=le.nextNode();)Je(T.uponSanitizeShadowNode,te,null),ze(te),ii(te),te.content instanceof o&&fe(te.content);Je(T.afterSanitizeShadowDOM,q,null)};return t.sanitize=function(fe){let q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},te=null,le=null,pe=null,qe=null;if(Re=!fe,Re&&(fe="<!-->"),typeof fe!="string"&&!pt(fe))if(typeof fe.toString=="function"){if(fe=fe.toString(),typeof fe!="string")throw uo("dirty is not a string, aborting")}else throw uo("toString is not a function");if(!t.isSupported)return fe;if(xe||wt(q),t.removed=[],typeof fe=="string"&&(ne=!1),ne){if(fe.nodeName){const rn=_e(fe.nodeName);if(!B[rn]||H[rn])throw uo("root node is forbidden and cannot be sanitized in-place")}}else if(fe instanceof a)te=rt("<!---->"),le=te.ownerDocument.importNode(fe,!0),le.nodeType===po.element&&le.nodeName==="BODY"||le.nodeName==="HTML"?te=le:te.appendChild(le);else{if(!Ie&&!re&&!ce&&fe.indexOf("<")===-1)return d&&De?d.createHTML(fe):fe;if(te=rt(fe),!te)return Ie?null:De?v:""}te&&Oe&&ae(te.firstChild);const Ge=Mt(ne?fe:te);for(;pe=Ge.nextNode();)ze(pe),ii(pe),pe.content instanceof o&&oi(pe.content);if(ne)return fe;if(Ie){if(Be)for(qe=C.call(te.ownerDocument);te.firstChild;)qe.appendChild(te.firstChild);else qe=te;return(W.shadowroot||W.shadowrootmode)&&(qe=A.call(r,qe,!0)),qe}let lt=ce?te.outerHTML:te.innerHTML;return ce&&B["!doctype"]&&te.ownerDocument&&te.ownerDocument.doctype&&te.ownerDocument.doctype.name&&Dt(h1,te.ownerDocument.doctype.name)&&(lt="<!DOCTYPE "+te.ownerDocument.doctype.name+`>
18`+lt),re&&Gs([M,I,P],rn=>{lt=co(lt,rn," ")}),d&&De?d.createHTML(lt):lt},t.setConfig=function(){let fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};wt(fe),xe=!0},t.clearConfig=function(){Xe=null,xe=!1},t.isValidAttribute=function(fe,q,te){Xe||wt({});const le=_e(fe),pe=_e(q);return dn(le,pe,te)},t.addHook=function(fe,q){typeof q=="function"&&lo(T[fe],q)},t.removeHook=function(fe,q){if(q!==void 0){const te=vN(T[fe],q);return te===-1?void 0:yN(T[fe],te,1)[0]}return Jg(T[fe])},t.removeHooks=function(fe){T[fe]=[]},t.removeAllHooks=function(){T=ov()},t}var vz=m1(),wu={exports:{}};var sv;function DN(){return sv||(sv=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(o=i(o,r(a)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var s="";for(var a in o)t.call(o,a)&&o[a]&&(s=i(s,a));return s}function i(o,s){return s?o?o+" "+s:o+s:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(wu)),wu.exports}var NN=DN();const rd=ut(NN);var av={};const jN="react-tooltip-core-styles",$N="react-tooltip-base-styles",lv={core:!1,base:!1};function cv({css:e,id:t=$N,type:n="base",ref:r}){var i,o;if(!e||typeof document>"u"||lv[n]||n==="core"&&typeof process<"u"&&(!((i=process==null?void 0:av)===null||i===void 0)&&i.REACT_TOOLTIP_DISABLE_CORE_STYLES)||n!=="base"&&typeof process<"u"&&(!((o=process==null?void 0:av)===null||o===void 0)&&o.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;n==="core"&&(t=jN),r||(r={});const{insertAt:s}=r;if(document.getElementById(t))return;const a=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.id=t,l.type="text/css",s==="top"&&a.firstChild?a.insertBefore(l,a.firstChild):a.appendChild(l),l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e)),lv[n]=!0}const uv=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:r="top",offset:i=10,strategy:o="absolute",middlewares:s=[Rb(Number(i)),Tb({fallbackAxisSideDirection:"start"}),kb({padding:5})],border:a,arrowSize:l=8})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};if(t===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};const c=s;return n?(c.push(kf({element:n,padding:5})),Tf(e,t,{placement:r,strategy:o,middleware:c}).then((({x:f,y:u,placement:p,middlewareData:h})=>{var g,y;const w={left:`${f}px`,top:`${u}px`,border:a},{x,y:b}=(g=h.arrow)!==null&&g!==void 0?g:{x:0,y:0}
18,m=(y={top:"bottom",right:"left",bottom:"top",left:"right"}[p.split("-")[0]])!==null&&y!==void 0?y:"bottom",d=a&&{borderBottom:a,borderRight:a};let v=0;if(a){const _=`${a}`.match(/(\d+)px/);v=_?.[1]?Number(_[1]):1}return{tooltipStyles:w,tooltipArrowStyles:{left:x!=null?`${x}px`:"",top:b!=null?`${b}px`:"",right:"",bottom:"",...d,[m]:`-${l/2+v}px`},place:p}}))):Tf(e,t,{placement:"bottom",strategy:o,middleware:c}).then((({x:f,y:u,placement:p})=>({tooltipStyles:{left:`${f}px`,top:`${u}px`},tooltipArrowStyles:{},place:p})))},fv=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),dv=(e,t,n)=>{let r=null;const i=function(...o){const s=()=>{r=null};!r&&(e.apply(this,o),r=setTimeout(s,t))};return i.cancel=()=>{r&&(clearTimeout(r),r=null)},i},pv=e=>e!==null&&!Array.isArray(e)&&typeof e=="object",id=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every(((i,o)=>id(i,t[o])));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!pv(e)||!pv(t))return e===t;const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((i=>id(e[i],t[i])))},FN=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some((n=>{const r=t.getPropertyValue(n);return r==="auto"||r==="scroll"}))},hv=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(FN(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},BN=typeof window<"u"?E.useLayoutEffect:E.useEffect,mn=e=>{e.current&&(clearTimeout(e.current),e.current=null)},VN="DEFAULT_TOOLTIP_ID",HN={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},zN=E.createContext({getTooltipData:()=>HN});function g1(e=VN){return E.useContext(zN).getTooltipData(e)}var ui={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},xu={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const UN=({forwardRef:e,id:t,className:n,classNameArrow:r,variant:i="dark",anchorId:o,anchorSelect:s,place:a="top",offset:l=10,events:c=["hover"],openOnClick:f=!1,positionStrategy:u="absolute",middlewares:p,wrapper:h,delayShow:g=0,delayHide:y=0,float:w=!1,hidden:x=!1,noArrow:b=!1,
vendor: 1,070 bytes, line 18
18clickable:m=!1,closeOnEsc:d=!1,closeOnScroll:v=!1,closeOnResize:_=!1,openEvents:O,closeEvents:C,globalCloseEvents:k,imperativeModeOnly:A,style:T,position:M,afterShow:I,afterHide:P,disableTooltip:S,content:R,contentWrapperRef:D,isOpen:L,defaultIsOpen:N=!1,setIsOpen:$,previousActiveAnchor:B,activeAnchor:V,setActiveAnchor:W,border:F,opacity:j,arrowColor:H,arrowSize:z=8,role:U="tooltip"})=>{var Y;const X=E.useRef(null),Q=E.useRef(null),J=E.useRef(null),re=E.useRef(null),ue=E.useRef(null),[ce,xe]=E.useState({tooltipStyles:{},tooltipArrowStyles:{},place:a}),[Oe,Ie]=E.useState(!1),[Be,De]=E.useState(!1),[Ce,nt]=E.useState(null),ot=E.useRef(!1),st=E.useRef(null),{anchorRefs:ne,setActiveAnchor:oe}=g1(t),be=E.useRef(!1),[Te,Ve]=E.useState([]),Ye=E.useRef(!1),Qe=f||c.includes("click"),Lt=Qe||O?.click||O?.dblclick||O?.mousedown,Et=O?{...O}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!O&&Qe&&Object.assign(Et,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const Z=C?{...C}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};
18!C&&Qe&&Object.assign(Z,{mouseleave:!1,blur:!1,mouseout:!1});const ee=k?{...k}:{escape:d||!1,scroll:v||!1,resize:_||!1,clickOutsideAnchor:Lt||!1};A&&(Object.assign(Et,{mouseover:!1,focus:!1,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(Z,{mouseout:!1,blur:!1,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(ee,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),BN((()=>(Ye.current=!0,()=>{Ye.current=!1})),[]);const se=ie=>{Ye.current&&(ie&&De(!0),setTimeout((()=>{Ye.current&&($?.(ie),L===void 0&&Ie(ie))}),10))};E.useEffect((()=>{if(t){if(Oe){he(B);const ae=ie(V),Le=[...new Set([...ae,t])].filter(Boolean).join(" ");V?.setAttribute("aria-describedby",Le)}else he(V);return()=>{he(V),he(B)}}function ie(ae){var Le;return((Le=ae?.getAttribute("aria-describedby"))===null||Le===void 0?void 0:Le.split(" "))||[]}function he(ae){const Le=ie(ae).filter((rt=>rt!==t));Le.length?ae?.setAttribute("aria-describedby",Le.join(" ")):ae?.removeAttribute("aria-describedby")}}),[V,Oe,t,B]),E.useEffect((()=>{if(L===void 0)return()=>null;L&&De(!0);const ie=setTimeout((()=>{Ie(L)}),10);return()=>{clearTimeout(ie)}}),[L]),E.useEffect((()=>{if(Oe!==ot.current)if(mn(ue),ot.current=Oe,Oe)I?.();else{const ie=(he=>{const ae=he.match(/^([\d.]+)(ms|s)$/);if(!ae)return 0;const[,Le,rt]=ae;return Number(Le)*(rt==="ms"?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));ue.current=setTimeout((()=>{De(!1),nt(null),P?.()}),ie+25)}}),[Oe]);const Re=ie=>{xe((he=>id(he,ie)?he:ie))},Ee=(ie=g)=>{mn(J),Be?se(!0):J.current=setTimeout((()=>{se(!0)}),ie)},He=(ie=y)=>{mn(re),re.current=setTimeout((()=>{be.current||se(!1)}),ie)},Ke=ie=>{var he;if(!ie)return;const ae=(he=ie.currentTarget)!==null&&he!==void 0?he:ie.target;if(!ae?.isConnected)return W(null),void oe({current:null});g?Ee():se(!0),W(ae),oe({current:ae}),mn(re)},dt=()=>{m?He(y||100):y?He():se(!1),mn(J)},en=({x:ie,y:he})=>{var ae;const Le={getBoundingClientRect:()=>({x:ie,y:he,width:0,height:0,top:he,left:ie,right:ie,bottom:he})};uv({place:(ae=Ce?.place)!==null&&ae!==void 0?ae:a,offset:l,elementReference:Le,tooltipReference:X.current,tooltipArrowReference:Q.current,strategy:u,middlewares:p,border:F,arrowSize:z}).then((rt=>{Re(rt)}))},at=ie=>{if(!ie)return;const he=ie,ae={x:he.clientX,y:he.clientY};en(ae),st.current=ae},tn=ie=>{var he;if(!Oe)return;const ae=ie.target;ae.isConnected&&(!((he=X.current)===null||he===void 0)&&he.contains(ae)||[document.querySelector(`[id='${o}']`),...Te].some((Le=>Le?.contains(ae)))||(se(!1),mn(J)))},nn=dv(Ke,50),_e=dv(dt,50),Xe=ie=>{_e.cancel(),nn(ie)},de=()=>{nn.cancel(),_e()},ke=E.useCallback((()=>{var ie,he;const ae=(ie=Ce?.position)!==null&&ie!==void 0?ie:M;ae?en(ae):w?st.current&&en(st.current):V?.isConnected&&uv({place:(he=Ce?.place)!==null&&he!==void 0?he:a,offset:l,elementReference:V,tooltipReference:X.current,tooltipArrowReference:Q.current,strategy:u,middlewares:p,border:F,arrowSize:z}).then((Le=>{Ye.current&&Re(Le)}))}),[Oe,V,R,T,a,Ce?.place,l,u,M,Ce?.position,w,z]);E.useEffect((()=>{var ie,he;const ae=new Set(ne);Te.forEach((pe=>{S?.(pe)||ae.add({current:pe})}));const Le=document.querySelector(`[id='${o}']`);Le&&!S?.(Le)&&ae.add({current:Le});const rt=()=>{se(!1)},Mt=hv(V),Pt=hv(X.current);ee.scroll&&(window.addEventListener("scroll",rt),Mt?.addEventListener("scroll",rt),Pt?.addEventListener("scroll",rt));let pt=null;ee.resize?window.addEventListener("resize",rt):V&&X.current&&(pt=Cb(V,X.current,ke,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const Je=pe=>{pe.key==="Escape"&&se(!1)};ee.escape&&window.addEventListener("keydown",Je),ee.clickOutsideAnchor&&window.addEventListener("click",tn);const ze=[],dn=pe=>!!(pe?.target&&V?.contains(pe.target)),Cr=pe=>{Oe&&dn(pe)||Ke(pe)},ii=pe=>{Oe&&dn(pe)&&dt()},oi=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],fe=["click","dblclick","mousedown","mouseup"];Object.entries(Et).forEach((([pe,qe])=>{qe&&(oi.includes(pe)?ze.push({event:pe,listener:Xe}):fe.includes(pe)&&ze.push({event:pe,listener:Cr}))})),Object.entries(Z).forEach((([pe,qe])=>{qe&&(oi.includes(pe)?ze.push({event:pe,listener:de}):fe.includes(pe)&&ze.push({event:pe,listener:ii}))})),w&&ze.push({event:"pointermove",listener:at});const q=()=>{be.current=!0},te=()=>{be.current=!1,dt()},le=m&&(Z.mouseout||Z.mouseleave);return le&&((ie=X.current)===null||ie===void 0||ie.addEventListener("mouseover",q),(he=X.current)===null||he===void 0||he.addEventListener("mouseout",te)),ze.forEach((({event:pe,listener:qe})=>{ae.forEach((Ge=>{var lt;(lt=Ge.current)===null||lt===void 0||lt.addEventListener(pe,qe)}))})),()=>{var pe,qe;ee.scroll&&(window.removeEventListener("scroll",rt),Mt?.removeEventListener("scroll",rt),Pt?.removeEventListener("scroll",rt)),ee.resize?window.removeEventListener("resize",rt):pt?.(),ee.clickOutsideAnchor&&window.removeEventListener("click",tn),ee.escape&&window.removeEventListener("keydown",Je),le&&((pe=X.current)===null||pe===void 0||pe.removeEventListener("mouseover",q),(qe=X.current)===null||qe===void 0||qe.removeEventListener("mouseout",te)),ze.forEach((({event:Ge,listener:lt})=>{ae.forEach((rn=>{var pn;(pn=rn.current)===null||pn===void 0||pn.removeEventListener(Ge,lt)}))}))}}),[V,ke,Be,ne,Te,O,C,k,Qe,g,y]),E.useEffect((()=>{var ie,he;let ae=(he=(ie=Ce?.anchorSelect)!==null&&ie!==void 0?ie:s)!==null&&he!==void 0?he:"";!ae&&t&&(ae=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`);const Le=new MutationObserver((rt=>{const Mt=[],Pt=[];rt.forEach((pt=>{if(pt.type==="attributes"&&pt.attributeName==="data-tooltip-id"&&(pt.target.getAttribute("data-tooltip-id")===t?Mt.push(pt.target):pt.oldValue===t&&Pt.push(pt.target)),pt.type==="childList"){if(V){const Je=[...pt.removedNodes].filter((ze=>ze.nodeType===1));if(ae)try{Pt.push(...Je.filter((ze=>ze.matches(ae)))),Pt.push(...Je.flatMap((ze=>[...ze.querySelectorAll(ae)])))}catch{}Je.some((ze=>{var dn;return!!(!((dn=ze?.contains)===null||dn===void 0)&&dn.call(ze,V))&&(De(!1),se(!1),W(null),mn(J),mn(re),!0)}))}if(ae)try{const Je=[...pt.addedNodes].filter((ze=>ze.nodeType===1));Mt.push(...Je.filter((ze=>ze.matches(ae)))),Mt.push(...Je.flatMap((ze=>[...ze.querySelectorAll(ae)])))}catch{}}})),(Mt.length||Pt.length)&&Ve((pt=>[...pt.filter((Je=>!Pt.includes(Je))),...Mt]))}));return Le.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{Le.disconnect()}}),[t,s,Ce?.anchorSelect,V]),E.useEffect((()=>{ke()}),[ke]),E.useEffect((()=>
18{if(!D?.current)return()=>null;const ie=new ResizeObserver((()=>{setTimeout((()=>ke()))}));return ie.observe(D.current),()=>{ie.disconnect()}}),[R,D?.current]),E.useEffect((()=>{var ie;const he=document.querySelector(`[id='${o}']`),ae=[...Te,he];V&&ae.includes(V)||W((ie=Te[0])!==null&&ie!==void 0?ie:he)}),[o,Te,V]),E.useEffect((()=>(N&&se(!0),()=>{mn(J),mn(re)})),[]),E.useEffect((()=>{var ie;let he=(ie=Ce?.anchorSelect)!==null&&ie!==void 0?ie:s;if(!he&&t&&(he=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),he)try{const ae=Array.from(document.querySelectorAll(he));Ve(ae)}catch{Ve([])}}),[t,s,Ce?.anchorSelect]),E.useEffect((()=>{J.current&&(mn(J),Ee(g))}),[g]);const wt=(Y=Ce?.content)!==null&&Y!==void 0?Y:R,fn=Oe&&Object.keys(ce.tooltipStyles).length>0;return E.useImperativeHandle(e,(()=>({open:ie=>{if(ie?.anchorSelect)try{document.querySelector(ie.anchorSelect)}catch{return void console.warn(`[react-tooltip] "${ie.anchorSelect}" is not a valid CSS selector`)}nt(ie??null),ie?.delay?Ee(ie.delay):se(!0)},close:ie=>{ie?.delay?He(ie.delay):se(!1)},activeAnchor:V,place:ce.place,isOpen:!!(Be&&!x&&wt&&fn)}))),Be&&!x&&wt?Ae.createElement(h,{id:t,role:U,className:rd("react-tooltip",ui.tooltip,xu.tooltip,xu[i],n,`react-tooltip__place-${ce.place}`,ui[fn?"show":"closing"],fn?"react-tooltip__show":"react-tooltip__closing",u==="fixed"&&ui.fixed,m&&ui.clickable),onTransitionEnd:ie=>{mn(ue),Oe||ie.propertyName!=="opacity"||(De(!1),nt(null),P?.())},style:{...T,...ce.tooltipStyles,opacity:j!==void 0&&fn?j:void 0},ref:X},wt,Ae.createElement(h,{className:rd("react-tooltip-arrow",ui.arrow,xu.arrow,r,b&&ui.noArrow),style:{...ce.tooltipArrowStyles,background:H?`linear-gradient(to right bottom, transparent 50%, ${H} 50%)`:void 0,"--rt-arrow-size":`${z}px`},ref:Q})):null},WN=({content:e})=>Ae.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),yz=Ae.forwardRef((({id:e,anchorId:t,anchorSelect:n,content:r,html:i,render:o,className:s,classNameArrow:a,variant:l="dark",place:c="top",offset:f=10,wrapper:u="div",children:p=null,events:h=["hover"],openOnClick:g=!1,positionStrategy:y="absolute",middlewares:w,delayShow:x=0,delayHide:b=0,float:m=!1,hidden:d=!1,noArrow:v=!1,clickable:_=!1,closeOnEsc:O=!1,closeOnScroll:C=!1,closeOnResize:k=!1,openEvents:A,closeEvents:T,globalCloseEvents:M,imperativeModeOnly:I=!1,style:P,position:S,isOpen:R,defaultIsOpen:D=!1,disableStyleInjection:L=!1,border:N,opacity:$,arrowColor:B,arrowSize:V,setIsOpen:W,afterShow:F,afterHide:j,disableTooltip:H,role:z="tooltip"},U)=>{const[Y,X]=E.useState(r),[Q,J]=E.useState(i),[re,ue]=E.useState(c),[ce,xe]=E.useState(l),[Oe,Ie]=E.useState(f),[Be,De]=E.useState(x),[Ce,nt]=E.useState(b),[ot,st]=E.useState(m),[ne,oe]=E.useState(d),[be,Te]=E.useState(u),[Ve,Ye]=E.useState(h),[Qe,Lt]=E.useState(y),[Et,Z]=E.useState(null),[ee,se]=E.useState(null),Re=E.useRef(null),Ee=E.useRef(L),{anchorRefs:He,activeAnchor:Ke}=g1(e),dt=_e=>_e?.getAttributeNames().reduce(((Xe,de)=>{var ke;return de.startsWith("data-tooltip-")&&(Xe[de.replace(/^data-tooltip-/,"")]=(ke=_e?.getAttribute(de))!==null&&ke!==void 0?ke:null),Xe}),{}),en=_e=>{const Xe={place:de=>{var ke;ue((ke=de)!==null&&ke!==void 0?ke:c)},content:de=>{X(de??r)},html:de=>{J(de??i)},variant:de=>{var ke;xe((ke=de)!==null&&ke!==void 0?ke:l)},offset:de=>{Ie(de===null?f:Number(de))},wrapper:de=>{var ke;Te((ke=de)!==null&&ke!==void 0?ke:u)},events:de=>{const ke=de?.split(" ");Ye(ke??h)},"position-strategy":de=>{var ke;Lt((ke=de)!==null&&ke!==void 0?ke:y)},"delay-show":de=>{De(de===null?x:Number(de))},"delay-hide":de=>{nt(de===null?b:Number(de))},float:de=>{st(de===null?m:de==="true")},hidden:de=>{oe(de===null?d:de==="true")},"class-name":de=>{Z(de)}};Object.values(Xe).forEach((de=>de(null))),Object.entries(_e).forEach((([de,ke])=>{var wt;(wt=Xe[de])===null||wt===void 0||wt.call(Xe,ke)}))};E.useEffect((()=>{X(r)}),[r]),E.useEffect((()=>{J(i)}),[i]),E.useEffect((()=>{ue(c)}),[c]),E.useEffect((()=>{xe(l)}),[l]),E.useEffect((()=>{Ie(f)}),[f]),E.useEffect((()=>{De(x)}),[x]),E.useEffect((()=>{nt(b)}),[b]),E.useEffect((()=>{st(m)}),[m]),E.useEffect((()=>{oe(d)}),[d]),E.useEffect((()=>{Lt(y)}),[y]),E.useEffect((()=>{Ee.current!==L&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")}),[L]),E.useEffect((()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:L==="core",disableBase:L}}))}),[]),E.useEffect((()=>{var _e;const Xe=new Set(He);let de=n;if(!de&&e&&(de=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),de)try{document.querySelectorAll(de).forEach((he=>{Xe.add({current:he})}))}catch{console.warn(`[react-tooltip] "${de}" is not a valid CSS selector`)}const ke=document.querySelector(`[id='${t}']`);if(ke&&Xe.add({current:ke}),!Xe.size)return()=>null;const wt=(_e=ee??ke)!==null&&_e!==void 0?_e:Ke.current,fn=new MutationObserver((he=>{he.forEach((ae=>{var Le;if(!wt||ae.type!=="attributes"||!(!((Le=ae.attributeName)===null||Le===void 0)&&Le.startsWith("data-tooltip-")))return;const rt=dt(wt);en(rt)}))})),ie={attributes:!0,childList:!1,subtree:!1};if(wt){const he=dt(wt);en(he),fn.observe(wt,ie)}return()=>{fn.disconnect()}}),[He,Ke,ee,t,n]),E.useEffect((()=>{P?.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),N&&!fv("border",`${N}`)&&console.warn(`[react-tooltip] "${N}" is not a valid \`border\`.`),P?.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),$&&!fv("opacity",`${$}`)&&console.warn(`[react-tooltip] "${$}" is not a valid \`opacity\`.`)}),[]);let at=p;const tn=E.useRef(null);if(o){const _e=o({content:ee?.getAttribute("data-tooltip-content")||Y||null,activeAnchor:ee});at=_e?Ae.createElement("div",{ref:tn,className:"react-tooltip-content-wrapper"},_e):null}else Y&&(at=Y);Q&&(at=Ae.createElement(WN,{content:Q}));const nn={forwardRef:U,id:e,anchorId:t,anchorSelect:n,className:rd(s,Et),classNameArrow:a,content:at,contentWrapperRef:tn,place:re,variant:ce,offset:Oe,wrapper:be,events:Ve,openOnClick:g,positionStrategy:Qe,middlewares:w,delayShow:Be,delayHide:Ce,float:ot,hidden:ne,noArrow:v,clickable:_,closeOnEsc:O,closeOnScroll:C,closeOnResize:k,openEvents:A,closeEvents:T,globalCloseEvents:M,imperativeModeOnly:I,style:P,position:S,isOpen:R,defaultIsOpen:D,border:N,opacity:$,arrowColor:B,arrowSize:V,setIsOpen:W,afterShow:F,afterHide:j,disableTooltip:H,activeAnchor:ee,previousActiveAnchor:Re.current,setActiveAnchor:_e=>{se((Xe=>(_e?.isSameNode(Xe)||(Re.current=Xe),_e)))},role:z};return Ae.createElement(UN,{...nn})}));typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",(e=>{e.detail.disableCore||cv({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s;--rt-arrow-size:8px}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit;z-index:-1}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}
18.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||cv({css:`
19.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:var(--rt-arrow-size);height:var(--rt-arrow-size)}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})}));function qN({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm13.36-1.814a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z",clipRule:"evenodd"}))}const bz=E.forwardRef(qN);function YN({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12ZM12 8.25a.75.75 0 0 1 .75.75v3.75a.75.75 0 0 1-1.5 0V9a.75.75 0 0 1 .75-.75Zm0 8.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z",clipRule:"evenodd"}))}const wz=E.forwardRef(YN);function KN({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{fillRule:"evenodd",d:"M6.75 5.25a.75.75 0 0 1 .75-.75H9a.75.75 0 0 1 .75.75v13.5a.75.75 0 0 1-.75.75H7.5a.75.75 0 0 1-.75-.75V5.25Zm7.5 0A.75.75 0 0 1 15 4.5h1.5a.75.75 0 0 1 .75.75v13.5a.75.75 0 0 1-.75.75H15a.75.75 0 0 1-.75-.75V5.25Z",clipRule:"evenodd"}))}const xz=E.forwardRef(KN);function XN({title:e,titleId:t,...n},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{fillRule:"evenodd",d:"M4.5 5.653c0-1.427 1.529-2.33 2.779-1.643l11.54 6.347c1.295.712 1.295 2.573 0 3.286L7.28 19.99c-1.25.687-2.779-.217-2.779-1.643V5.653Z",clipRule:"evenodd"}))}const Ez=E.forwardRef(XN);var Eu,mv;function GN(){if(mv)return Eu;mv=1;var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(C,k,A)=>k in C?t(C,k,{enumerable:!0,configurable:!0,writable:!0,value:A}):C[k]=A,a=(C,k)=>{for(var A in k)t(C,A,{get:k[A],enumerable:!0})},l=(C,k,A,T)=>{if(k&&typeof k=="object"||typeof k=="function")for(let M of r(k))!o.call(C,M)&&M!==A&&t(C,M,{get:()=>k[M],enumerable:!(T=n(k,M))||T.enumerable});return C},c=(C,k,A)=>(A=C!=null?e(i(C)):{},l(!C||!C.__esModule?t(A,"default",{value:C,enumerable:!0}):A,C)),f=C=>l(t({},"__esModule",{value:!0}),C),u=(C,k,A)=>(s(C,typeof k!="symbol"?k+"":k,A),A),p={};a(p,{default:()=>O}),Eu=f(p);var h=c(ft()),g=At(),y=Jt();const w="https://www.youtube.com/iframe_api",x="YT",b="onYouTubeIframeAPIReady",m=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,d=/user\/([a-zA-Z0-9_-]+)\/?/,v=/youtube-nocookie\.com/,_="https://www.youtube-nocookie.com";class O extends h.Component{constructor(){super(...arguments),u(this,"callPlayer",g.callPlayer),u(this,"parsePlaylist",k=>{if(k instanceof Array)return{listType:"playlist",playlist:k.map(this.getID).join(",")};if(m.test(k)){const[,A]=k.match(m);return{listType:"playlist",list:A.replace(/^UC/,"UU")}}if(d.test(k)){const[,A]=k.match(d);return{listType:"user_uploads",list:A}}return{}}),u(this,"onStateChange",k=>{const{data:A}=k,{onPlay:T,onPause:M,onBuffer:I,onBufferEnd:P,onEnded:S,onReady:R,loop:D,config:{playerVars:L,onUnstarted:N}}=this.props,{UNSTARTED:$,PLAYING:B,PAUSED:V,BUFFERING:W,ENDED:F,CUED:j}=window[x].PlayerState;if(A===$&&N(),A===B&&(T(),P()),A===V&&M(),A===W&&I(),A===F){const H=!!this.callPlayer("getPlaylist");D&&!H&&(L.start?this.seekTo(L.start):this.play()),S()}A===j&&R()}),u(this,"mute",()=>{this.callPlayer("mute")}),u(this,"unmute",()=>{this.callPlayer("unMute")}),u(this,"ref",k=>{this.container=k})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}getID(k){return!k||k instanceof Array||m.test(k)?null:k.match(y.MATCH_URL_YOUTUBE)[1]}load(k,A){const{playing:T,muted:M,playsinline:I,controls:P,loop:S,config:R,onError:D}=this.props,{playerVars:L,embedOptions:N}=R,$=this.getID(k);if(A){if(m.test(k)||d.test(k)||k instanceof Array){this.player.loadPlaylist(this.parsePlaylist(k));return}this.player.cueVideoById({videoId:$,startSeconds:(0,g.parseStartTime)(k)||L.start,endSeconds:(0,g.parseEndTime)(k)||L.end});return}(0,g.getSDK)(w,x,b,B=>B.loaded).then(B=>{this.container&&(this.player=new B.Player(this.container,{width:"100%",height:"100%",videoId:$,playerVars:{autoplay:T?1:0,mute:M?1:0,controls:P?1:0,start:(0,g.parseStartTime)(k),end:(0,g.parseEndTime)(k),origin:window.location.origin,playsinline:I?1:0,...this.parsePlaylist(k),...L},events:{onReady:()=>{S&&this.player.setLoop(!0),this.props.onReady()},onPlaybackRateChange:V=>this.props.onPlaybackRateChange(V.data),onPlaybackQualityChange:V=>this.props.onPlaybackQualityChange(V),onStateChange:this.onStateChange,onError:V=>D(V.data)},host:v.test(k)?_:void 0,...N}))},D),N.events&&console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer’s callback props instead, eg onReady, onPlay, onPause")}play(){this.callPlayer("playVideo")}pause(){this.callPlayer("pauseVideo")}stop(){document.body.contains(this.callPlayer("getIframe"))&&this.callPlayer("stopVideo")}seekTo(k,A=!1){this.callPlayer("seekTo",k),!A&&!this.props.playing&&this.pause()}setVolume(k){this.callPlayer("setVolume",k*100)}setPlaybackRate(k){this.callPlayer("setPlaybackRate",k)}setLoop(k){this.callPlayer("setLoop",k)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}render(){const{display:k}=this.props,A={width:"100%",height:"100%",display:k};return h.default.createElement("div",{style:A},h.default.createElement("div",{ref:this.ref}))}}return u(O,"displayName","YouTube"),u(O,"canPlay",y.canPlay.youtube),Eu}var v1=GN();const ZN=ut(v1),QN=Tt({__proto__:null,default:ZN},[v1]);var _u,gv;function JN(){if(gv)return _u;gv=1;var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(m,d,v)=>d in m?t(m,d,{enumerable:!0,configurable:!0,writable:!0,value:v}):m[d]=v,a=(m,d)=>{for(var v in d)t(m,v,{get:d[v],enumerable:!0})},l=(m,d,v,_)=>{if(d&&typeof d=="object"||typeof d=="function")for(let O of r(d))!o.call(m,O)&&O!==v&&t(m,O,{get:()=>d[O],enumerable:!(_=n(d,O))||_.enumerable});return m},c=(m,d,v)=>(v=m!=null?e(i(m)):{},l(!m||!m.__esModule?t(v,"default",{value:m,enumerable:!0}):v,m)),f=m=>l(t({},"__esModule",{value:!0}),m),u=(m,d,v)=>(s(m,typeof d!="symbol"?d+"":d,v),v),p={};a(p,{default:()=>b}),_u=f(p);var h=c(ft()),g=At(),y=Jt();const w="https://w.soundcloud.com/player/api.js",x="SC";class b extends h.Component{constructor(){super(...arguments),u(this,"callPlayer",g.callPlayer),u(this,"duration",null),u(this,"currentTime",null),u(this,"fractionLoaded",null),u(this,"mute",()=>{this.setVolume(0)}),u(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),u(this,"ref",d=>{this.iframe=d})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(d,v){(0,g.getSDK)(w,x).then(_=>{if(!this.iframe)return;const{PLAY:O,PLAY_PROGRESS:C,PAUSE:k,FINISH:A,ERROR:T}=_.Widget.Events;v||(this.player=_.Widget(this.iframe),this.player.bind(O,this.props.onPlay),this.player.bind(k,()=>{this.duration-this.currentTime<.05||this.props.onPause()}),this.player.bind(C,M=>{this.currentTime=M.currentPosition/1e3,this.fractionLoaded=M.loadedProgress}),this.player.bind(A,()=>this.props.onEnded()),this.player.bind(T,M=>this.props.onError(M))),this.player.load(d,{...this.props.config.options,callback:()=>{this.player.getDuration(M=>{this.duration=M/1e3,this.props.onReady()})}})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(d,v=!0){this.callPlayer("seekTo",d*1e3),v||this.pause()}setVolume(d){this.callPlayer("setVolume",d*100)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.fractionLoaded*this.duration}render(){const{display:d}=this.props,v={width:"100%",height:"100%",display:d};return h.default.createElement("iframe",{ref:this.ref,src:`https://w.soundcloud.com/player/?url=${encodeURIComponent(this.props.url)}`,style:v,frameBorder:0,allow:"autoplay"})}}return u(b,"displayName","SoundCloud"),u(b,"canPlay",y.canPlay.soundcloud),u(b,"loopOnEnded",!0),_u}var y1=JN();const e4=ut(y1),t4=Tt({__proto__:null,default:e4},[y1]);var Su,vv;function n4(){if(vv)return Su;vv=1;var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(d,v,_)=>v in d?t(d,v,{enumerable:!0,configurable:!0,writable:!0,value:_}):d[v]=_,a=(d,v)=>{for(var _ in v)t(d,_,{get:v[_],enumerable:!0})},l=(d,v,_,O)=>{if(v&&typeof v=="object"||typeof v=="function")for(let C of r(v))!o.call(d,C)&&C!==_&&t(d,C,{get:()=>
19v[C],enumerable:!(O=n(v,C))||O.enumerable});return d},c=(d,v,_)=>(_=d!=null?e(i(d)):{},l(!d||!d.__esModule?t(_,"default",{value:d,enumerable:!0}):_,d)),f=d=>l(t({},"__esModule",{value:!0}),d),u=(d,v,_)=>(s(d,typeof v!="symbol"?v+"":v,_),_),p={};a(p,{default:()=>m}),Su=f(p);var h=c(ft()),g=At(),y=Jt();const w="https://player.vimeo.com/api/player.js",x="Vimeo",b=d=>d.replace("/manage/videos","");class m extends h.Component{constructor(){super(...arguments),u(this,"callPlayer",g.callPlayer),u(this,"duration",null),u(this,"currentTime",null),u(this,"secondsLoaded",null),u(this,"mute",()=>{this.setMuted(!0)}),u(this,"unmute",()=>{this.setMuted(!1)}),u(this,"ref",v=>{this.container=v})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(v){this.duration=null,(0,g.getSDK)(w,x).then(_=>{if(!this.container)return;const{playerOptions:O,title:C}=this.props.config;this.player=new _.Player(this.container,{url:b(v),autoplay:this.props.playing,muted:this.props.muted,loop:this.props.loop,playsinline:this.props.playsinline,controls:this.props.controls,...O}),this.player.ready().then(()=>{const k=this.container.querySelector("iframe");k.style.width="100%",k.style.height="100%",C&&(k.title=C)}).catch(this.props.onError),this.player.on("loaded",()=>{this.props.onReady(),this.refreshDuration()}),this.player.on("play",()=>{this.props.onPlay(),this.refreshDuration()}),this.player.on("pause",this.props.onPause),this.player.on("seeked",k=>this.props.onSeek(k.seconds)),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({seconds:k})=>{this.currentTime=k}),this.player.on("progress",({seconds:k})=>{this.secondsLoaded=k}),this.player.on("bufferstart",this.props.onBuffer),this.player.on("bufferend",this.props.onBufferEnd),this.player.on("playbackratechange",k=>this.props.onPlaybackRateChange(k.playbackRate))},this.props.onError)}refreshDuration(){this.player.getDuration().then(v=>{this.duration=v})}play(){const v=this.callPlayer("play");v&&v.catch(this.props.onError)}pause(){this.callPlayer("pause")}stop(){this.callPlayer("unload")}seekTo(v,_=!0){this.callPlayer("setCurrentTime",v),_||this.pause()}setVolume(v){this.callPlayer("setVolume",v)}setMuted(v){this.callPlayer("setMuted",v)}setLoop(v){this.callPlayer("setLoop",v)}setPlaybackRate(v){this.callPlayer("setPlaybackRate",v)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const{display:v}=this.props,_={width:"100%",height:"100%",overflow:"hidden",display:v};return h.default.createElement("div",{key:this.props.url,ref:this.ref,style:_})}}return u(m,"displayName","Vimeo"),u(m,"canPlay",y.canPlay.vimeo),u(m,"forceLoad",!0),Su}var b1=n4();const r4=ut(b1),i4=Tt({__proto__:null,default:r4},[b1]);var Ou,yv;function o4(){if(yv)return Ou;yv=1;var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(x,b,m)=>b in x?t(x,b,{enumerable:!0,configurable:!0,writable:!0,value:m}):x[b]=m,a=(x,b)=>{for(var m in b)t(x,m,{get:b[m],enumerable:!0})},l=(x,b,m,d)=>{if(b&&typeof b=="object"||typeof b=="function")for(let v of r(b))!o.call(x,v)&&v!==m&&t(x,v,{get:()=>b[v],enumerable:!(d=n(b,v))||d.enumerable});return x},c=(x,b,m)=>(m=x!=null?e(i(x)):{},l(!x||!x.__esModule?t(m,"default",{value:x,enumerable:!0}):m,x)),f=x=>l(t({},"__esModule",{value:!0}),x),u=(x,b,m)=>(s(x,typeof b!="symbol"?b+"":b,m),m),p={};a(p,{default:()=>w}),Ou=f(p);var h=c(ft()),g=Jt();const y="https://cdn.jsdelivr.net/npm/@mux/mux-player@VERSION/dist/mux-player.mjs";class w extends h.Component{constructor(){super(...arguments),u(this,"onReady",(...b)=>this.props.onReady(...b)),u(this,"onPlay",(...b)=>this.props.onPlay(...b)),u(this,"onBuffer",(...b)=>this.props.onBuffer(...b)),u(this,"onBufferEnd",(...b)=>this.props.onBufferEnd(...b)),u(this,"onPause",(...b)=>this.props.onPause(...b)),u(this,"onEnded",(...b)=>this.props.onEnded(...b)),u(this,"onError",(...b)=>this.props.onError(...b)),u(this,"onPlayBackRateChange",b=>this.props.onPlaybackRateChange(b.target.playbackRate)),u(this,"onEnablePIP",(...b)=>this.props.onEnablePIP(...b)),u(this,"onSeek",b=>{this.props.onSeek(b.target.currentTime)}),u(this,"onDurationChange",()=>{const b=this.getDuration();this.props.onDuration(b)}),u(this,"mute",()=>{this.player.muted=!0}
19),u(this,"unmute",()=>{this.player.muted=!1}),u(this,"ref",b=>{this.player=b})}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const b=this.getPlaybackId(this.props.url);b&&(this.player.playbackId=b)}componentWillUnmount(){this.player.playbackId=null,this.removeListeners(this.player)}addListeners(b){const{playsinline:m}=this.props;b.addEventListener("play",this.onPlay),b.addEventListener("waiting",this.onBuffer),b.addEventListener("playing",this.onBufferEnd),b.addEventListener("pause",this.onPause),b.addEventListener("seeked",this.onSeek),b.addEventListener("ended",this.onEnded),b.addEventListener("error",this.onError),b.addEventListener("ratechange",this.onPlayBackRateChange),b.addEventListener("enterpictureinpicture",this.onEnablePIP),b.addEventListener("leavepictureinpicture",this.onDisablePIP),b.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),b.addEventListener("canplay",this.onReady),m&&b.setAttribute("playsinline","")}removeListeners(b){b.removeEventListener("canplay",this.onReady),b.removeEventListener("play",this.onPlay),b.removeEventListener("waiting",this.onBuffer),b.removeEventListener("playing",this.onBufferEnd),b.removeEventListener("pause",this.onPause),b.removeEventListener("seeked",this.onSeek),b.removeEventListener("ended",this.onEnded),b.removeEventListener("error",this.onError),b.removeEventListener("ratechange",this.onPlayBackRateChange),b.removeEventListener("enterpictureinpicture",this.onEnablePIP),b.removeEventListener("leavepictureinpicture",this.onDisablePIP),b.removeEventListener("canplay",this.onReady)}async load(b){var m;const{onError:d,config:v}=this.props;if(!((m=globalThis.customElements)!=null&&m.get("mux-player")))try{const O=y.replace("VERSION",v.version);await Rt(()=>import(`${O}`),[]),this.props.onLoaded()}catch(O){d(O)}const[,_]=b.match(g.MATCH_URL_MUX);this.player.playbackId=_}play(){const b=this.player.play();b&&b.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.playbackId=null}seekTo(b,m=!0){this.player.currentTime=b,m||this.pause()}setVolume(b){this.player.volume=b}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player&&this.player.requestPictureInPicture()}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player&&document.exitPictureInPicture()}setPlaybackRate(b){try{this.player.playbackRate=b}catch(m){this.props.onError(m)}}getDuration(){if(!this.player)return null;const{duration:b,seekable:m}=this.player;return b===1/0&&m.length>0?m.end(m.length-1):b}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:b}=this.player;if(b.length===0)return 0;const m=b.end(b.length-1),d=this.getDuration();return m>d?d:m}getPlaybackId(b){const[,m]=b.match(g.MATCH_URL_MUX);return m}render(){const{url:b,playing:m,loop:d,controls:v,muted:_,config:O,width:C,height:k}=this.props,A={width:C==="auto"?C:"100%",height:k==="auto"?k:"100%"};return v===!1&&(A["--controls"]="none"),h.default.createElement("mux-player",{ref:this.ref,"playback-id":this.getPlaybackId(b),style:A,preload:"auto",autoPlay:m||void 0,muted:_?"":void 0,loop:d?"":void 0,...O.attributes})}}return u(w,"displayName","Mux"),u(w,"canPlay",g.canPlay.mux),Ou}var w1=o4();const s4=ut(w1),a4=Tt({__proto__:null,default:s4},[w1]);var Pu,bv;function l4(){if(bv)return Pu;bv=1;var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(v,_,O)=>_ in v?t(v,_,{enumerable:!0,configurable:!0,writable:!0,value:O}):v[_]=O,a=(v,_)=>{for(var O in _)t(v,O,{get:_[O],enumerable:!0})},l=(v,_,O,C)=>{if(_&&typeof _=="object"||typeof _=="function")for(let k of r(_))!o.call(v,k)&&k!==O&&t(v,k,{get:()=>_[k],enumerable:!(C=n(_,k))||C.enumerable});return v},c=(v,_,O)=>(O=v!=null?e(i(v)):{},l(!v||!v.__esModule?t(O,"default",{value:v,enumerable:!0}):O,v)),f=v=>l(t({},"__esModule",{value:!0}),v),u=(v,_,O)=>(s(v,typeof _!="symbol"?_+"":_,O),O),p={};a(p,{default:()=>d}),Pu=f(p);var h=c(ft()),g=At(),y=Jt();const w="https://connect.facebook.net/en_US/sdk.js",x="FB",b="fbAsyncInit",m="facebook-player-";class d extends h.Component{constructor(){super(...arguments),u(this,"callPlayer",g.callPlayer),u(this,"playerID",this.props.config.playerId||`${m}${(0,g.randomString)()}`),u(this,"mute",()=>{this.callPlayer("mute")}),u(this,"unmute",()=>{this.callPlayer("unmute")}
19)}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(_,O){if(O){(0,g.getSDK)(w,x,b).then(C=>C.XFBML.parse());return}(0,g.getSDK)(w,x,b).then(C=>{C.init({appId:this.props.config.appId,xfbml:!0,version:this.props.config.version}),C.Event.subscribe("xfbml.render",k=>{this.props.onLoaded()}),C.Event.subscribe("xfbml.ready",k=>{k.type==="video"&&k.id===this.playerID&&(this.player=k.instance,this.player.subscribe("startedPlaying",this.props.onPlay),this.player.subscribe("paused",this.props.onPause),this.player.subscribe("finishedPlaying",this.props.onEnded),this.player.subscribe("startedBuffering",this.props.onBuffer),this.player.subscribe("finishedBuffering",this.props.onBufferEnd),this.player.subscribe("error",this.props.onError),this.props.muted?this.callPlayer("mute"):this.callPlayer("unmute"),this.props.onReady(),document.getElementById(this.playerID).querySelector("iframe").style.visibility="visible")})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(_,O=!0){this.callPlayer("seek",_),O||this.pause()}setVolume(_){this.callPlayer("setVolume",_)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentPosition")}getSecondsLoaded(){return null}render(){const{attributes:_}=this.props.config,O={width:"100%",height:"100%"};return h.default.createElement("div",{style:O,id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false",..._})}}return u(d,"displayName","Facebook"),u(d,"canPlay",y.canPlay.facebook),u(d,"loopOnEnded",!0),Pu}var x1=l4();const c4=ut(x1),u4=Tt({__proto__:null,default:c4},[x1]);var Cu,wv;function f4(){if(wv)return Cu;wv=1;var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(m,d,v)=>d in m?t(m,d,{enumerable:!0,configurable:!0,writable:!0,value:v}):m[d]=v,a=(m,d)=>{for(var v in d)t(m,v,{get:d[v],enumerable:!0})},l=(m,d,v,_)=>{if(d&&typeof d=="object"||typeof d=="function")for(let O of r(d))!o.call(m,O)&&O!==v&&t(m,O,{get:()=>d[O],enumerable:!(_=n(d,O))||_.enumerable});return m},c=(m,d,v)=>(v=m!=null?e(i(m)):{},l(!m||!m.__esModule?t(v,"default",{value:m,enumerable:!0}):v,m)),f=m=>l(t({},"__esModule",{value:!0}),m),u=(m,d,v)=>(s(m,typeof d!="symbol"?d+"":d,v),v),p={};a(p,{default:()=>b}),Cu=f(p);var h=c(ft()),g=At(),y=Jt();const w="https://cdn.embed.ly/player-0.1.0.min.js",x="playerjs";class b extends h.Component{constructor(){super(...arguments),u(this,"callPlayer",g.callPlayer),u(this,"duration",null),u(this,"currentTime",null),u(this,"secondsLoaded",null),u(this,"mute",()=>{this.callPlayer("mute")}),u(this,"unmute",()=>{this.callPlayer("unmute")}),u(this,"ref",d=>{this.iframe=d})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(d){(0,g.getSDK)(w,x).then(v=>{this.iframe&&(this.player=new v.Player(this.iframe),this.player.setLoop(this.props.loop),this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seeked",this.props.onSeek),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({duration:_,seconds:O})=>{this.duration=_,this.currentTime=O}),this.player.on("buffered",({percent:_})=>{this.duration&&(this.secondsLoaded=this.duration*_)}),this.props.muted&&this.player.mute())},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(d,v=!0){this.callPlayer("setCurrentTime",d),v||this.pause()}setVolume(d){this.callPlayer("setVolume",d*100)}setLoop(d){this.callPlayer("setLoop",d)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const d=this.props.url.match(y.MATCH_URL_STREAMABLE)[1],v={width:"100%",height:"100%"};return h.default.createElement("iframe",{ref:this.ref,src:`https://streamable.com/o/${d}`,frameBorder:"0",scrolling:"no",style:v,allow:"encrypted-media; autoplay; fullscreen;"})}}return u(b,"displayName","Streamable"),u(b,"canPlay",y.canPlay.streamable),Cu}var E1=f4();const d4=ut(E1),p4=Tt({__proto__:null,default:d4},[E1]);var Ru,xv;function h4(){if(xv)return Ru;xv=1;var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(d,v,_)=>v in d?t(d,v,{enumerable:!0,configurable:!0,writable:!0,value:_}):d[v]=_,a=(d,v)=>{for(var _ in v)t(d,_,{get:v[_],enumerable:!0})},l=(d,v,_,O)=>{if(v&&typeof v=="object"||typeof v=="function")for(let C of r(v))!o.call(d,C)&&C!==_&&t(d,C,{get:()=>
19v[C],enumerable:!(O=n(v,C))||O.enumerable});return d},c=(d,v,_)=>(_=d!=null?e(i(d)):{},l(!d||!d.__esModule?t(_,"default",{value:d,enumerable:!0}):_,d)),f=d=>l(t({},"__esModule",{value:!0}),d),u=(d,v,_)=>(s(d,typeof v!="symbol"?v+"":v,_),_),p={};a(p,{default:()=>m}),Ru=f(p);var h=c(ft()),g=At(),y=Jt();const w="https://fast.wistia.com/assets/external/E-v1.js",x="Wistia",b="wistia-player-";class m extends h.Component{constructor(){super(...arguments),u(this,"callPlayer",g.callPlayer),u(this,"playerID",this.props.config.playerId||`${b}${(0,g.randomString)()}`),u(this,"onPlay",(...v)=>this.props.onPlay(...v)),u(this,"onPause",(...v)=>this.props.onPause(...v)),u(this,"onSeek",(...v)=>this.props.onSeek(...v)),u(this,"onEnded",(...v)=>this.props.onEnded(...v)),u(this,"onPlaybackRateChange",(...v)=>this.props.onPlaybackRateChange(...v)),u(this,"mute",()=>{this.callPlayer("mute")}),u(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(v){const{playing:_,muted:O,controls:C,onReady:k,config:A,onError:T}=this.props;(0,g.getSDK)(w,x).then(M=>{A.customControls&&A.customControls.forEach(I=>M.defineControl(I)),window._wq=window._wq||[],window._wq.push({id:this.playerID,options:{autoPlay:_,silentAutoPlay:"allow",muted:O,controlsVisibleOnLoad:C,fullscreenButton:C,playbar:C,playbackRateControl:C,qualityControl:C,volumeControl:C,settingsControl:C,smallPlayButton:C,...A.options},onReady:I=>{this.player=I,this.unbind(),this.player.bind("play",this.onPlay),this.player.bind("pause",this.onPause),this.player.bind("seek",this.onSeek),this.player.bind("end",this.onEnded),this.player.bind("playbackratechange",this.onPlaybackRateChange),k()}})},T)}unbind(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded),this.player.unbind("playbackratechange",this.onPlaybackRateChange)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.unbind(),this.callPlayer("remove")}seekTo(v,_=!0){this.callPlayer("time",v),_||this.pause()}setVolume(v){this.callPlayer("volume",v)}setPlaybackRate(v){this.callPlayer("playbackRate",v)}getDuration(){return this.callPlayer("duration")}getCurrentTime(){return this.callPlayer("time")}getSecondsLoaded(){return null}render(){const{url:v}=this.props,_=v&&v.match(y.MATCH_URL_WISTIA)[1],O=`wistia_embed wistia_async_${_}`,C={width:"100%",height:"100%"};return h.default.createElement("div",{id:this.playerID,key:_,className:O,style:C})}}return u(m,"displayName","Wistia"),u(m,"canPlay",y.canPlay.wistia),u(m,"loopOnEnded",!0),Ru}var _1=h4();const m4=ut(_1),g4=Tt({__proto__:null,default:m4},[_1]);var ku,Ev;function v4(){if(Ev)return ku;Ev=1;var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(d,v,_)=>v in d?t(d,v,{enumerable:!0,configurable:!0,writable:!0,value:_}):d[v]=_,a=(d,v)=>{for(var _ in v)t(d,_,{get:v[_],enumerable:!0})},l=(d,v,_,O)=>{if(v&&typeof v=="object"||typeof v=="function")for(let C of r(v))!o.call(d,C)&&C!==_&&t(d,C,{get:()=>v[C],enumerable:!(O=n(v,C))||O.enumerable});return d},c=(d,v,_)=>(_=d!=null?e(i(d)):{},l(!d||!d.__esModule?t(_,"default",{value:d,enumerable:!0}):_,d)),f=d=>l(t({},"__esModule",{value:!0}),d),u=(d,v,_)=>(s(d,typeof v!="symbol"?v+"":v,_),_),p={};a(p,{default:()=>m}),ku=f(p);var h=c(ft()),g=At(),y=Jt();const w="https://player.twitch.tv/js/embed/v1.js",x="Twitch",b="twitch-player-";class m extends h.Component{constructor(){super(...arguments),u(this,"callPlayer",g.callPlayer),u(this,"playerID",this.props.config.playerId||`${b}${(0,g.randomString)()}`),u(this,"mute",()=>{this.callPlayer("setMuted",!0)}),u(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(v,_){const{playsinline:O,onError:C,config:k,controls:A}=this.props,T=y.MATCH_URL_TWITCH_CHANNEL.test(v),M=T?v.match(y.MATCH_URL_TWITCH_CHANNEL)[1]:v.match(y.MATCH_URL_TWITCH_VIDEO)[1];if(_){T?this.player.setChannel(M):this.player.setVideo("v"+M);return}(0,g.getSDK)(w,x).then(I=>{this.player=new I.Player(this.playerID,{video:T?"":M,channel:T?M:"",height:"100%",width:"100%",playsinline:O,autoplay:this.props.playing,muted:this.props.muted,controls:T?!0:A,time:(0,g.parseStartTime)(v),...k.options});const{READY:P,PLAYING:S,PAUSE:R,ENDED:D,ONLINE:L,OFFLINE:N,SEEK:$}=I.Player;this.player.addEventListener(P,this.props.onReady),this.player.addEventListener(S,this.props.onPlay),this.player.addEventListener(R,this.props.onPause),this.player.addEventListener(
19D,this.props.onEnded),this.player.addEventListener($,this.props.onSeek),this.player.addEventListener(L,this.props.onLoaded),this.player.addEventListener(N,this.props.onLoaded)},C)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(v,_=!0){this.callPlayer("seek",v),_||this.pause()}setVolume(v){this.callPlayer("setVolume",v)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return null}render(){const v={width:"100%",height:"100%"};return h.default.createElement("div",{style:v,id:this.playerID})}}return u(m,"displayName","Twitch"),u(m,"canPlay",y.canPlay.twitch),u(m,"loopOnEnded",!0),ku}var S1=v4();const y4=ut(S1),b4=Tt({__proto__:null,default:y4},[S1]);var Tu,_v;function w4(){if(_v)return Tu;_v=1;var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(d,v,_)=>v in d?t(d,v,{enumerable:!0,configurable:!0,writable:!0,value:_}):d[v]=_,a=(d,v)=>{for(var _ in v)t(d,_,{get:v[_],enumerable:!0})},l=(d,v,_,O)=>{if(v&&typeof v=="object"||typeof v=="function")for(let C of r(v))!o.call(d,C)&&C!==_&&t(d,C,{get:()=>v[C],enumerable:!(O=n(v,C))||O.enumerable});return d},c=(d,v,_)=>(_=d!=null?e(i(d)):{},l(!d||!d.__esModule?t(_,"default",{value:d,enumerable:!0}):_,d)),f=d=>l(t({},"__esModule",{value:!0}),d),u=(d,v,_)=>(s(d,typeof v!="symbol"?v+"":v,_),_),p={};a(p,{default:()=>m}),Tu=f(p);var h=c(ft()),g=At(),y=Jt();const w="https://api.dmcdn.net/all.js",x="DM",b="dmAsyncInit";class m extends h.Component{constructor(){super(...arguments),u(this,"callPlayer",g.callPlayer),u(this,"onDurationChange",()=>{const v=this.getDuration();this.props.onDuration(v)}),u(this,"mute",()=>{this.callPlayer("setMuted",!0)}),u(this,"unmute",()=>{this.callPlayer("setMuted",!1)}),u(this,"ref",v=>{this.container=v})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(v){const{controls:_,config:O,onError:C,playing:k}=this.props,[,A]=v.match(y.MATCH_URL_DAILYMOTION);if(this.player){this.player.load(A,{start:(0,g.parseStartTime)(v),autoplay:k});return}(0,g.getSDK)(w,x,b,T=>T.player).then(T=>{if(!this.container)return;const M=T.player;this.player=new M(this.container,{width:"100%",height:"100%",video:A,params:{controls:_,autoplay:this.props.playing,mute:this.props.muted,start:(0,g.parseStartTime)(v),origin:window.location.origin,...O.params},events:{apiready:this.props.onReady,seeked:()=>this.props.onSeek(this.player.currentTime),video_end:this.props.onEnded,durationchange:this.onDurationChange,pause:this.props.onPause,playing:this.props.onPlay,waiting:this.props.onBuffer,error:I=>C(I)}})},C)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(v,_=!0){this.callPlayer("seek",v),_||this.pause()}setVolume(v){this.callPlayer("setVolume",v)}getDuration(){return this.player.duration||null}getCurrentTime(){return this.player.currentTime}getSecondsLoaded(){return this.player.bufferedTime}render(){const{display:v}=this.props,_={width:"100%",height:"100%",display:v};return h.default.createElement("div",{style:_},h.default.createElement("div",{ref:this.ref}))}}return u(m,"displayName","DailyMotion"),u(m,"canPlay",y.canPlay.dailymotion),u(m,"loopOnEnded",!0),Tu}var O1=w4();const x4=ut(O1),E4=Tt({__proto__:null,default:x4},[O1]);var Au,Sv;function _4(){if(Sv)return Au;Sv=1;var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(m,d,v)=>d in m?t(m,d,{enumerable:!0,configurable:!0,writable:!0,value:v}):m[d]=v,a=(m,d)=>{for(var v in d)t(m,v,{get:d[v],enumerable:!0})},l=(m,d,v,_)=>{if(d&&typeof d=="object"||typeof d=="function")for(let O of r(d))!o.call(m,O)&&O!==v&&t(m,O,{get:()=>d[O],enumerable:!(_=n(d,O))||_.enumerable});return m},c=(m,d,v)=>(v=m!=null?e(i(m)):{},l(!m||!m.__esModule?t(v,"default",{value:m,enumerable:!0}):v,m)),f=m=>l(t({},"__esModule",{value:!0}),m),u=(m,d,v)=>(s(m,typeof d!="symbol"?d+"":d,v),v),p={};a(p,{default:()=>b}),Au=f(p);var h=c(ft()),g=At(),y=Jt();const w="https://widget.mixcloud.com/media/js/widgetApi.js",x="Mixcloud";class b extends h.Component{constructor(){super(...arguments),u(this,"callPlayer",g.callPlayer),u(this,"duration",null),u(this,"currentTime",null),u(this,"secondsLoaded",null),u(this,"mute",()=>{}),u(this,"unmute",()=>{}),u(this,"ref",d=>{this.iframe=d})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(d){(0,g.getSDK)(w,x).then(v=>{this.player=v.PlayerWidget(this.iframe),this.player.ready.then(()=>{this.player.events.play.on(this.props.onPlay),this.player.events.pause.on(this.props.onPause),this.player.events.ended.on(this.props.onEnded),this.player.events.error.on(this.props.error),this.player.events.progress.on((_,O)=>{this.currentTime=_,this.duration=O}),this.props.onReady()})},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(d,v=!0){this.callPlayer("seek",d),v||this.pause()}setVolume(d){}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return null}
19render(){const{url:d,config:v}=this.props,_=d.match(y.MATCH_URL_MIXCLOUD)[1],O={width:"100%",height:"100%"},C=(0,g.queryString)({...v.options,feed:`/${_}/`});return h.default.createElement("iframe",{key:_,ref:this.ref,style:O,src:`https://player-widget.mixcloud.com/widget/iframe/?${C}`,frameBorder:"0",allow:"autoplay"})}}return u(b,"displayName","Mixcloud"),u(b,"canPlay",y.canPlay.mixcloud),u(b,"loopOnEnded",!0),Au}var P1=_4();const S4=ut(P1),O4=Tt({__proto__:null,default:S4},[P1]);var Lu,Ov;function P4(){if(Ov)return Lu;Ov=1;var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(d,v,_)=>v in d?t(d,v,{enumerable:!0,configurable:!0,writable:!0,value:_}):d[v]=_,a=(d,v)=>{for(var _ in v)t(d,_,{get:v[_],enumerable:!0})},l=(d,v,_,O)=>{if(v&&typeof v=="object"||typeof v=="function")for(let C of r(v))!o.call(d,C)&&C!==_&&t(d,C,{get:()=>v[C],enumerable:!(O=n(v,C))||O.enumerable});return d},c=(d,v,_)=>(_=d!=null?e(i(d)):{},l(!d||!d.__esModule?t(_,"default",{value:d,enumerable:!0}):_,d)),f=d=>l(t({},"__esModule",{value:!0}),d),u=(d,v,_)=>(s(d,typeof v!="symbol"?v+"":v,_),_),p={};a(p,{default:()=>m}),Lu=f(p);var h=c(ft()),g=At(),y=Jt();const w="https://play.vidyard.com/embed/v4.js",x="VidyardV4",b="onVidyardAPI";class m extends h.Component{constructor(){super(...arguments),u(this,"callPlayer",g.callPlayer),u(this,"mute",()=>{this.setVolume(0)}),u(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),u(this,"ref",v=>{this.container=v})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(v){const{playing:_,config:O,onError:C,onDuration:k}=this.props,A=v&&v.match(y.MATCH_URL_VIDYARD)[1];this.player&&this.stop(),(0,g.getSDK)(w,x,b).then(T=>{this.container&&(T.api.addReadyListener((M,I)=>{this.player||(this.player=I,this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seek",this.props.onSeek),this.player.on("playerComplete",this.props.onEnded))},A),T.api.renderPlayer({uuid:A,container:this.container,autoplay:_?1:0,...O.options}),T.api.getPlayerMetadata(A).then(M=>{this.duration=M.length_in_seconds,k(M.length_in_seconds)}))},C)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){window.VidyardV4.api.destroyPlayer(this.player)}seekTo(v,_=!0){this.callPlayer("seek",v),_||this.pause()}setVolume(v){this.callPlayer("setVolume",v)}setPlaybackRate(v){this.callPlayer("setPlaybackSpeed",v)}getDuration(){return this.duration}getCurrentTime(){return this.callPlayer("currentTime")}getSecondsLoaded(){return null}render(){const{display:v}=this.props,_={width:"100%",height:"100%",display:v};return h.default.createElement("div",{style:_},h.default.createElement("div",{ref:this.ref}))}}return u(m,"displayName","Vidyard"),u(m,"canPlay",y.canPlay.vidyard),Lu}var C1=P4();const C4=ut(C1),R4=Tt({__proto__:null,default:C4},[C1]);var Mu,Pv;function k4(){if(Pv)return Mu;Pv=1;var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(m,d,v)=>d in m?t(m,d,{enumerable:!0,configurable:!0,writable:!0,value:v}):m[d]=v,a=(m,d)=>{for(var v in d)t(m,v,{get:d[v],enumerable:!0})},l=(m,d,v,_)=>{if(d&&typeof d=="object"||typeof d=="function")for(let O of r(d))!o.call(m,O)&&O!==v&&t(m,O,{get:()=>d[O],enumerable:!(_=n(d,O))||_.enumerable});return m},c=(m,d,v)=>(v=m!=null?e(i(m)):{},l(!m||!m.__esModule?t(v,"default",{value:m,enumerable:!0}):v,m)),f=m=>l(t({},"__esModule",{value:!0}),m),u=(m,d,v)=>(s(m,typeof d!="symbol"?d+"":d,v),v),p={};a(p,{default:()=>b}),Mu=f(p);var h=c(ft()),g=At(),y=Jt();const w="https://cdn.embed.ly/player-0.1.0.min.js",x="playerjs";class b extends h.Component{constructor(){super(...arguments),u(this,"callPlayer",g.callPlayer),u(this,"duration",null),u(this,"currentTime",null),u(this,"secondsLoaded",null),u(this,"mute",()=>{this.callPlayer("mute")}),u(this,"unmute",()=>{this.callPlayer("unmute")}
19),u(this,"ref",d=>{this.iframe=d})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(d){(0,g.getSDK)(w,x).then(v=>{this.iframe&&(this.player=new v.Player(this.iframe),this.player.on("ready",()=>{setTimeout(()=>{this.player.isReady=!0,this.player.setLoop(this.props.loop),this.props.muted&&this.player.mute(),this.addListeners(this.player,this.props),this.props.onReady()},500)}))},this.props.onError)}addListeners(d,v){d.on("play",v.onPlay),d.on("pause",v.onPause),d.on("ended",v.onEnded),d.on("error",v.onError),d.on("timeupdate",({duration:_,seconds:O})=>{this.duration=_,this.currentTime=O})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(d,v=!0){this.callPlayer("setCurrentTime",d),v||this.pause()}setVolume(d){this.callPlayer("setVolume",d)}setLoop(d){this.callPlayer("setLoop",d)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const d={width:"100%",height:"100%"};return h.default.createElement("iframe",{ref:this.ref,src:this.props.url,frameBorder:"0",scrolling:"no",style:d,allow:"encrypted-media; autoplay; fullscreen;",referrerPolicy:"no-referrer-when-downgrade"})}}return u(b,"displayName","Kaltura"),u(b,"canPlay",y.canPlay.kaltura),Mu}var R1=k4();const T4=ut(R1),A4=Tt({__proto__:null,default:T4},[R1]);var Iu,Cv;function L4(){if(Cv)return Iu;Cv=1;var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(P,S,R)=>S in P?t(P,S,{enumerable:!0,configurable:!0,writable:!0,value:R}):P[S]=R,a=(P,S)=>{for(var R in S)t(P,R,{get:S[R],enumerable:!0})},l=(P,S,R,D)=>{if(S&&typeof S=="object"||typeof S=="function")for(let L of r(S))!o.call(P,L)&&L!==R&&t(P,L,{get:()=>S[L],enumerable:!(D=n(S,L))||D.enumerable});return P},c=(P,S,R)=>(R=P!=null?e(i(P)):{}
19,l(!P||!P.__esModule?t(R,"default",{value:P,enumerable:!0}):R,P)),f=P=>l(t({},"__esModule",{value:!0}),P),u=(P,S,R)=>(s(P,typeof S!="symbol"?S+"":S,R),R),p={};a(p,{default:()=>I}),Iu=f(p);var h=c(ft()),g=At(),y=Jt();const w=typeof navigator<"u",x=w&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,b=w&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||x)&&!window.MSStream,m=w&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,d="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",v="Hls",_="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",O="dashjs",C="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",k="flvjs",A=/www\.dropbox\.com\/.+/,T=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,M="https://videodelivery.net/{id}/manifest/video.m3u8";class I extends h.Component{constructor(){super(...arguments),u(this,"onReady",(...S)=>this.props.onReady(...S)),u(this,"onPlay",(...S)=>this.props.onPlay(...S)),u(this,"onBuffer",(...S)=>this.props.onBuffer(...S)),u(this,"onBufferEnd",(...S)=>this.props.onBufferEnd(...S)),u(this,"onPause",(...S)=>this.props.onPause(...S)),u(this,"onEnded",(...S)=>this.props.onEnded(...S)),u(this,"onError",(...S)=>this.props.onError(...S)),u(this,"onPlayBackRateChange",S=>this.props.onPlaybackRateChange(S.target.playbackRate)),u(this,"onEnablePIP",(...S)=>this.props.onEnablePIP(...S)),u(this,"onDisablePIP",S=>{const{onDisablePIP:R,playing:D}=this.props;R(S),D&&this.play()}),u(this,"onPresentationModeChange",S=>{if(this.player&&(0,g.supportsWebKitPresentationMode)(this.player)){const{webkitPresentationMode:R}=this.player;R==="picture-in-picture"?this.onEnablePIP(S):R==="inline"&&this.onDisablePIP(S)}}),u(this,"onSeek",S=>{this.props.onSeek(S.target.currentTime)}),u(this,"mute",()=>{this.player.muted=!0}),u(this,"unmute",()=>{this.player.muted=!1}),u(this,"renderSourceElement",(S,R)=>typeof S=="string"?h.default.createElement("source",{key:R,src:S}):h.default.createElement("source",{key:R,...S})),u(this,"renderTrack",(S,R)=>h.default.createElement("track",{key:R,...S})),u(this,"ref",S=>{this.player&&(this.prevPlayer=this.player),this.player=S})}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const S=this.getSource(this.props.url);S&&(this.player.src=S),(b||this.props.config.forceDisableHls)&&this.player.load()}componentDidUpdate(S){this.shouldUseAudio(this.props)!==this.shouldUseAudio(S)&&(this.removeListeners(this.prevPlayer,S.url),this.addListeners(this.player)),this.props.url!==S.url&&!(0,g.isMediaStream)(this.props.url)&&!(this.props.url instanceof Array)&&(this.player.srcObject=null)}componentWillUnmount(){this.player.removeAttribute("src"),this.removeListeners(this.player),this.hls&&this.hls.destroy()}addListeners(S){const{url:R,playsinline:D}=this.props;S.addEventListener("play",this.onPlay),S.addEventListener("waiting",this.onBuffer),S.addEventListener("playing",this.onBufferEnd),S.addEventListener("pause",this.onPause),S.addEventListener("seeked",this.onSeek),S.addEventListener("ended",this.onEnded),S.addEventListener("error",this.onError),S.addEventListener("ratechange",this.onPlayBackRateChange),S.addEventListener("enterpictureinpicture",this.onEnablePIP),S.addEventListener("leavepictureinpicture",this.onDisablePIP),S.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(R)||S.addEventListener("canplay",this.onReady),D&&(S.setAttribute("playsinline",""),S.setAttribute("webkit-playsinline",""),S.setAttribute("x5-playsinline",""))}removeListeners(S,R){S.removeEventListener("canplay",this.onReady),S.removeEventListener("play",this.onPlay),S.removeEventListener("waiting",this.onBuffer),S.removeEventListener("playing",this.onBufferEnd),S.removeEventListener("pause",this.onPause),S.removeEventListener("seeked",this.onSeek),S.removeEventListener("ended",this.onEnded),S.removeEventListener("error",this.onError),S.removeEventListener("ratechange",this.onPlayBackRateChange),S.removeEventListener("enterpictureinpicture",this.onEnablePIP),S.removeEventListener("leavepictureinpicture",this.onDisablePIP),S.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(R)||S.removeEventListener("canplay",this.onReady)}shouldUseAudio(S){return S.config.forceVideo||S.config.attributes.poster?!1:y.AUDIO_EXTENSIONS.test(S.url)||S.config.forceAudio}shouldUseHLS(S){return m&&this.props.config.forceSafariHLS||this.props.config.forceHLS?!0:b||this.props.config.forceDisableHls?!1:y.HLS_EXTENSIONS.test(S)||T.test(S)}shouldUseDASH(S){return y.DASH_EXTENSIONS.test(S)||this.props.config.forceDASH}shouldUseFLV(S){return y.FLV_EXTENSIONS.test(S)||this.props.config.forceFLV}load(S){const{hlsVersion:R,hlsOptions:D,dashVersion:L,flvVersion:N}=this.props.config;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(S)&&(0,g.getSDK)(d.replace("VERSION",R),v).then($=>{if(this.hls=new $(D),this.hls.on($.Events.MANIFEST_PARSED,()=>{this.props.onReady()}),this.hls.on($.Events.ERROR,(B,V)=>{this.props.onError(B,V,this.hls,$)}),T.test(S)){const B=S.match(T)[1];this.hls.loadSource(M.replace("{id}",B))}else this.hls.loadSource(S);this.hls.attachMedia(this.player),this.props.onLoaded()}),this.shouldUseDASH(S)&&(0,g.getSDK)(_.replace("VERSION",L),O).then($=>{this.dash=$.MediaPlayer().create(),this.dash.initialize(this.player,S,this.props.playing),this.dash.on("error",this.props.onError),parseInt(L)<3?this.dash.getDebug().set
19LogToBrowserConsole(!1):this.dash.updateSettings({debug:{logLevel:$.Debug.LOG_LEVEL_NONE}}),this.props.onLoaded()}),this.shouldUseFLV(S)&&(0,g.getSDK)(C.replace("VERSION",N),k).then($=>{this.flv=$.createPlayer({type:"flv",url:S}),this.flv.attachMediaElement(this.player),this.flv.on($.Events.ERROR,(B,V)=>{this.props.onError(B,V,this.flv,$)}),this.flv.load(),this.props.onLoaded()}),S instanceof Array)this.player.load();else if((0,g.isMediaStream)(S))try{this.player.srcObject=S}catch{this.player.src=window.URL.createObjectURL(S)}}play(){const S=this.player.play();S&&S.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}seekTo(S,R=!0){this.player.currentTime=S,R||this.pause()}setVolume(S){this.player.volume=S}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,g.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="picture-in-picture"&&this.player.webkitSetPresentationMode("picture-in-picture")}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,g.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="inline"&&this.player.webkitSetPresentationMode("inline")}setPlaybackRate(S){try{this.player.playbackRate=S}catch(R){this.props.onError(R)}}getDuration(){if(!this.player)return null;const{duration:S,seekable:R}=this.player;return S===1/0&&R.length>0?R.end(R.length-1):S}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:S}=this.player;if(S.length===0)return 0;const R=S.end(S.length-1),D=this.getDuration();return R>D?D:R}getSource(S){const R=this.shouldUseHLS(S),D=this.shouldUseDASH(S),L=this.shouldUseFLV(S);if(!(S instanceof Array||(0,g.isMediaStream)(S)||R||D||L))return A.test(S)?S.replace("www.dropbox.com","dl.dropboxusercontent.com"):S}render(){const{url:S,playing:R,loop:D,controls:L,muted:N,config:$,width:B,height:V}=this.props,F=this.shouldUseAudio(this.props)?"audio":"video",j={width:B==="auto"?B:"100%",height:V==="auto"?V:"100%"};return h.default.createElement(F,{ref:this.ref,src:this.getSource(S),style:j,preload:"auto",autoPlay:R||void 0,controls:L,muted:N,loop:D,...$.attributes},S instanceof Array&&S.map(this.renderSourceElement),$.tracks.map(this.renderTrack))}}return u(I,"displayName","FilePlayer"),u(I,"canPlay",y.canPlay.file),Iu}var k1=L4();const M4=ut(k1),I4=Tt({__proto__:null,default:M4},[k1]);var Du,Rv;function D4(){if(Rv)return Du;Rv=1;var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(x,b,m)=>b in x?t(x,b,{enumerable:!0,configurable:!0,writable:!0,value:m}):x[b]=m,a=(x,b)=>{for(var m in b)t(x,m,{get:b[m],enumerable:!0})},l=(x,b,m,d)=>{if(b&&typeof b=="object"||typeof b=="function")for(let v of r(b))!o.call(x,v)&&v!==m&&t(x,v,{get:()=>b[v],enumerable:!(d=n(b,v))||d.enumerable});return x},c=(x,b,m)=>(m=x!=null?e(i(x)):{},l(!x||!x.__esModule?t(m,"default",{value:x,enumerable:!0}):m,x)),f=x=>l(t({},"__esModule",{value:!0}),x),u=(x,b,m)=>(s(x,typeof b!="symbol"?b+"":b,m),m),p={};a(p,{default:()=>w}),Du=f(p);var h=c(ft());const g="64px",y={};class w extends h.Component{constructor(){super(...arguments),u(this,"mounted",!1),u(this,"state",{image:null}),u(this,"handleKeyPress",b=>{(b.key==="Enter"||b.key===" ")&&this.props.onClick()})}componentDidMount(){this.mounted=!0,this.fetchImage(this.props)}componentDidUpdate(b){const{url:m,light:d}=this.props;(b.url!==m||b.light!==d)&&this.fetchImage(this.props)}componentWillUnmount(){this.mounted=!1}fetchImage({url:b,light:m,oEmbedUrl:d}){if(!h.default.isValidElement(m)){if(typeof m=="string"){this.setState({image:m});return}if(y[b]){this.setState({image:y[b]});return}return this.setState({image:null}),window.fetch(d.replace("{url}",b)).then(v=>v.json()).then(v=>{if(v.thumbnail_url&&this.mounted){const _=v.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");this.setState({image:_}),y[b]=_}})}}render(){const{light:b,onClick:m,playIcon:d,previewTabIndex:v,previewAriaLabel:_}=this.props,{image:O}
vendor: 9,258 bytes, line 19
19=this.state,C=h.default.isValidElement(b),k={display:"flex",alignItems:"center",justifyContent:"center"},A={preview:{width:"100%",height:"100%",backgroundImage:O&&!C?`url(${O})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...k},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:g,width:g,height:g,position:C?"absolute":void 0,...k},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},T=h.default.createElement("div",{style:A.shadow,className:"react-player__shadow"},h.default.createElement("div",{style:A.playIcon,className:"react-player__play-icon"}));return h.default.createElement("div",{style:A.preview,className:"react-player__preview",onClick:m,tabIndex:v,onKeyPress:this.handleKeyPress,..._?{"aria-label":_}:{}},C?b:null,d||T)}}return Du}var T1=D4();const N4=ut(T1),j4=Tt({__proto__:null,default:N4},[T1]);function bt(e){if(typeof e=="string"||typeof e=="number")return""+e;let t="";if(Array.isArray(e))for(let n=0,r;n<e.length;n++)(r=bt(e[n]))!==""&&(t+=(t&&" ")+r);else for(let n in e)e[n]&&(t+=(t&&" ")+n);return t}var $4={value:()=>{}};function ms(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Ca(n)}function Ca(e){this._=e}function F4(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Ca.prototype=ms.prototype={constructor:Ca,on:function(e,t){var n=this._,r=F4(e+"",n),i,o=-1,s=r.length;if(arguments.length<2){for(;++o<s;)if((i=(e=r[o]).type)&&(i=B4(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++o<s;)if(i=(e=r[o]).type)n[i]=kv(n[i],e.name,t);else if(t==null)for(i in n)n[i]=kv(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Ca(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,o;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=this._[e],r=0,i=o.length;r<i;++r)o[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}};function B4(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function kv(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=$4,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var od="http://www.w3.org/1999/xhtml";const Tv={svg:"http://www.w3.org/2000/svg",xhtml:od,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function rc(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),Tv.hasOwnProperty(t)?{space:Tv[t],local:e}:e}function V4(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===od&&t.documentElement.namespaceURI===od?t.createElement(e):t.createElementNS(n,e)}}function H4(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function A1(e){var t=rc(e);return(t.local?H4:V4)(t)}function z4(){}function fp(e){return e==null?z4:function(){return this.querySelector(e)}}function U4(e){typeof e!="function"&&(e=fp(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o=t[i],s=o.length,a=r[i]=new Array(s),l,c,f=0;f<s;++f)(l=o[f])&&(c=e.call(l,l.__data__,f,o))&&("__data__"in l&&(c.__data__=l.__data__),a[f]=c);return new un(r,this._parents)}function W4(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function q4(){return[]}function L1(e){return e==null?q4:function(){return this.querySelectorAll(e)}}function Y4(e){return function(){return W4(e.apply(this,arguments))}}function K4(e){typeof e=="function"?e=Y4(e):e=L1(e);for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var s=t[o],a=s.length,l,c=0;c<a;++c)(l=s[c])&&(r.push(e.call(l,l.__data__,c,s)),i.push(l));return new un(r,i)}function M1(e){return function(){return this.matches(e)}}function I1(e){return function(t){return t.matches(e)}}var X4=Array.prototype.find;function G4(e){return function(){return X4.call(this.children,e)}}function Z4(){return this.firstElementChild}function Q4(e){return this.select(e==null?Z4:G4(typeof e=="function"?e:I1(e)))}var J4=Array.prototype.filter;function ej(){return Array.from(this.children)}function tj(e){return function(){return J4.call(this.children,e)}}function nj(e){return this.selectAll(e==null?ej:tj(typeof e=="function"?e:I1(e)))}function rj(e){typeof e!="function"&&(e=M1(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o=t[i],s=o.length,a=r[i]=[],l,c=0;c<s;++c)(l=o[c])&&e.call(l,l.__data__,c,o)&&a.push(l);return new un(r,this._parents)}function D1(e){return new Array(e.length)}function ij(){return new un(this._enter||this._groups.map(D1),this._parents)}function ml(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}ml.prototype={constructor:ml,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function oj(e){return function(){return e}}function sj(e,t,n,r,i,o){for(var s=0,a,l=t.length,c=o.length;s<c;++s)(a=t[s])?(a.__data__=o[s],r[s]=a):n[s]=new ml(e,o[s]);for(;s<l;++s)(a=t[s])&&(i[s]=a)}function aj(e,t,n,r,i,o,s){var a,l,c=new Map,f=t.length,u=o.length,p=new Array(f),h;for(a=0;a<f;++a)(l=t[a])&&(p[a]=h=s.call(l,l.__data__,a,t)+"",c.has(h)?i[a]=l:c.set(h,l));for(a=0;a<u;++a)h=s.call(e,o[a],a,o)+"",(l=c.get(h))?(r[a]=l,l.__data__=o[a],c.delete(h)):n[a]=new ml(e,o[a]);for(a=0;a<f;++a)(l=t[a])&&c.get(p[a])===l&&(i[a]=l)}function lj(e){return e.__data__}function cj(e,t){if(!arguments.length)return Array.from(this,lj);var n=t?aj:sj,r=this._parents,i=this._groups;typeof e!="function"&&(e=oj(e));for(var o=i.length,s=new Array(o),a=new Array(o),l=new Array(o),c=0;c<o;++c){var f=r[c],u=i[c],p=u.length,h=uj(e.call(f,f&&f.__data__,c,r)),g=h.length,y=a[c]=new Array(g),w=s[c]=new Array(g),x=l[c]=new Array(p);n(f,u,y,w,x,h,t);for(var b=0,m=0,d,v;b<g;++b)if(d=y[b]){for(b>=m&&(m=b+1);!(v=w[m])&&++m<g;);d._next=v||null}}return s=new un(s,r),s._enter=a,s._exit=l,s}function uj(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function fj(){return new un(this._exit||this._groups.map(D1),this._parents)}function dj(e,t,n){var r=this.enter(),i=this,o=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),n==null?o.remove():n(o),r&&i?r.merge(i).order():i}function pj(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,o=r.length,s=Math.min(i,o),a=new Array(i),l=0;l<s;++l)for(var c=n[l],f=r[l],u=c.length,p=a[l]=new Array(u),h,g=0;g<u;++g)(h=c[g]||f[g])&&(p[g]=h);for(;l<i;++l)a[l]=n[l];return new un(a,this._parents)}function hj(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,o=r[i],s;--i>=0;)(s=r[i])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function mj(e){e||(e=gj);function t(u,p){return u&&p?e(u.__data__,p.__data__):!u-!p}for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var s=n[o],a=s.length,l=i[o]=new Array(a),c,f=0;f<a;++f)(c=s[f])&&(l[f]=c);l.sort(t)}return new un(i,this._parents).order()}function gj(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function vj(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function yj(){return Array.from(this)}function bj(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var s=r[i];if(s)return s}return null}function wj(){let e=0;for(const t of this)++e;return e}function xj(){return!this.node()}function Ej(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],o=0,s=i.length,a;o<s;++o)(a=i[o])&&e.call(a,a.__data__,o,i);return this}function _j(e){return function(){this.removeAttribute(e)}}function Sj(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Oj(e,t){return function(){this.setAttribute(e,t)}}function Pj(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Cj(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function Rj(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function kj(e,t){var n=rc(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?Sj:_j:typeof t=="function"?n.local?Rj:Cj:n.local?Pj:Oj)(n,t))}function N1(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Tj(e){return function(){this.style.removeProperty(e)}}
vendor: 23,994 bytes, line 19
19function Aj(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Lj(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Mj(e,t,n){return arguments.length>1?this.each((t==null?Tj:typeof t=="function"?Lj:Aj)(e,t,n??"")):Ni(this.node(),e)}function Ni(e,t){return e.style.getPropertyValue(t)||N1(e).getComputedStyle(e,null).getPropertyValue(t)}function Ij(e){return function(){delete this[e]}}function Dj(e,t){return function(){this[e]=t}}function Nj(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function jj(e,t){return arguments.length>1?this.each((t==null?Ij:typeof t=="function"?Nj:Dj)(e,t)):this.node()[e]}function j1(e){return e.trim().split(/^|\s+/)}function dp(e){return e.classList||new $1(e)}function $1(e){this._node=e,this._names=j1(e.getAttribute("class")||"")}$1.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function F1(e,t){for(var n=dp(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function B1(e,t){for(var n=dp(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function $j(e){return function(){F1(this,e)}}function Fj(e){return function(){B1(this,e)}}function Bj(e,t){return function(){(t.apply(this,arguments)?F1:B1)(this,e)}}function Vj(e,t){var n=j1(e+"");if(arguments.length<2){for(var r=dp(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?Bj:t?$j:Fj)(n,t))}function Hj(){this.textContent=""}function zj(e){return function(){this.textContent=e}}function Uj(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function Wj(e){return arguments.length?this.each(e==null?Hj:(typeof e=="function"?Uj:zj)(e)):this.node().textContent}function qj(){this.innerHTML=""}function Yj(e){return function(){this.innerHTML=e}}function Kj(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function Xj(e){return arguments.length?this.each(e==null?qj:(typeof e=="function"?Kj:Yj)(e)):this.node().innerHTML}function Gj(){this.nextSibling&&this.parentNode.appendChild(this)}function Zj(){return this.each(Gj)}function Qj(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Jj(){return this.each(Qj)}function e7(e){var t=typeof e=="function"?e:A1(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function t7(){return null}function n7(e,t){var n=typeof e=="function"?e:A1(e),r=t==null?t7:typeof t=="function"?t:fp(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function r7(){var e=this.parentNode;e&&e.removeChild(this)}function i7(){return this.each(r7)}function o7(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function s7(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function a7(e){return this.select(e?s7:o7)}function l7(e){return arguments.length?this.property("__data__",e):this.node().__data__}function c7(e){return function(t){e.call(this,t,this.__data__)}}function u7(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function f7(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,o;n<i;++n)o=t[n],(!e.type||o.type===e.type)&&o.name===e.name?this.removeEventListener(o.type,o.listener,o.options):t[++r]=o;++r?t.length=r:delete this.__on}}}function d7(e,t,n){return function(){var r=this.__on,i,o=c7(t);if(r){for(var s=0,a=r.length;s<a;++s)if((i=r[s]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=n),i.value=t;return}}this.addEventListener(e.type,o,n),i={type:e.type,name:e.name,value:t,listener:o,options:n},r?r.push(i):this.__on=[i]}}function p7(e,t,n){var r=u7(e+""),i,o=r.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,c=a.length,f;l<c;++l)for(i=0,f=a[l];i<o;++i)if((s=r[i]).type===f.type&&s.name===f.name)return f.value}return}for(a=t?d7:f7,i=0;i<o;++i)this.each(a(r[i],t,n));return this}function V1(e,t,n){var r=N1(e),i=r.CustomEvent;typeof i=="function"?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function h7(e,t){return function(){return V1(this,e,t)}}function m7(e,t){return function(){return V1(this,e,t.apply(this,arguments))}}function g7(e,t){return this.each((typeof t=="function"?m7:h7)(e,t))}function*v7(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length,s;i<o;++i)(s=r[i])&&(yield s)}var H1=[null];function un(e,t){this._groups=e,this._parents=t}function gs(){return new un([[document.documentElement]],H1)}function y7(){return this}un.prototype=gs.prototype={constructor:un,select:U4,selectAll:K4,selectChild:Q4,selectChildren:nj,filter:rj,data:cj,enter:ij,exit:fj,join:dj,merge:pj,selection:y7,order:hj,sort:mj,call:vj,nodes:yj,node:bj,size:wj,empty:xj,each:Ej,attr:kj,style:Mj,property:jj,classed:Vj,text:Wj,html:Xj,raise:Zj,lower:Jj,append:e7,insert:n7,remove:i7,clone:a7,datum:l7,on:p7,dispatch:g7,[Symbol.iterator]:v7};function on(e){return typeof e=="string"?new un([[document.querySelector(e)]],[document.documentElement]):new un([[e]],H1)}function b7(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Pn(e,t){if(e=b7(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}const w7={passive:!1},Uo={capture:!0,passive:!1};function Nu(e){e.stopImmediatePropagation()}function xi(e){e.preventDefault(),e.stopImmediatePropagation()}function z1(e){var t=e.document.documentElement,n=on(e).on("dragstart.drag",xi,Uo);"onselectstart"in t?n.on("selectstart.drag",xi,Uo):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function U1(e,t){var n=e.document.documentElement,r=on(e).on("dragstart.drag",null);t&&(r.on("click.drag",xi,Uo),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const Qs=e=>()=>e;function sd(e,{sourceEvent:t,subject:n,target:r,identifier:i,active:o,x:s,y:a,dx:l,dy:c,dispatch:f}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:a,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:c,enumerable:!0,configurable:!0},_:{value:f}})}sd.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function x7(e){return!e.ctrlKey&&!e.button}function E7(){return this.parentNode}function _7(e,t){return t??{x:e.x,y:e.y}}function S7(){return navigator.maxTouchPoints||"ontouchstart"in this}function W1(){var e=x7,t=E7,n=_7,r=S7,i={},o=ms("start","drag","end"),s=0,a,l,c,f,u=0;function p(d){d.on("mousedown.drag",h).filter(r).on("touchstart.drag",w).on("touchmove.drag",x,w7).on("touchend.drag touchcancel.drag",b).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function h(d,v){if(!(f||!e.call(this,d,v))){var _=m(this,t.call(this,d,v),d,v,"mouse");_&&(on(d.view).on("mousemove.drag",g,Uo).on("mouseup.drag",y,Uo),z1(d.view),Nu(d),c=!1,a=d.clientX,l=d.clientY,_("start",d))}}function g(d){if(xi(d),!c){var v=d.clientX-a,_=d.clientY-l;c=v*v+_*_>u}i.mouse("drag",d)}function y(d){on(d.view).on("mousemove.drag mouseup.drag",null),U1(d.view,c),xi(d),i.mouse("end",d)}function w(d,v){if(e.call(this,d,v)){var _=d.changedTouches,O=t.call(this,d,v),C=_.length,k,A;for(k=0;k<C;++k)(A=m(this,O,d,v,_[k].identifier,_[k]))&&(Nu(d),A("start",d,_[k]))}}function x(d){var v=d.changedTouches,_=v.length,O,C;for(O=0;O<_;++O)(C=i[v[O].identifier])&&(xi(d),C("drag",d,v[O]))}function b(d){var v=d.changedTouches,_=v.length,O,C;for(f&&clearTimeout(f),f=setTimeout(function(){f=null},500),O=0;O<_;++O)(C=i[v[O].identifier])&&(Nu(d),C("end",d,v[O]))}function m(d,v,_,O,C,k){var A=o.copy(),T=Pn(k||_,v),M,I,P;if((P=n.call(d,new sd("beforestart",{sourceEvent:_,target:p,identifier:C,active:s,x:T[0],y:T[1],dx:0,dy:0,dispatch:A}),O))!=null)return M=P.x-T[0]||0,I=P.y-T[1]||0,function S(R,D,L){var N=T,$;switch(R){case"start":i[C]=S,$=s++;break;case"end":delete i[C],--s;case"drag":T=Pn(L||D,v),$=s;break}A.call(R,d,new sd(R,{sourceEvent:D,subject:P,target:p,identifier:C,active:$,x:T[0]+M,y:T[1]+I,dx:T[0]-N[0],dy:T[1]-N[1],dispatch:A}),O)}}return p.filter=function(d){return arguments.length?(e=typeof d=="function"?d:Qs(!!d),p):e},p.container=function(d){return arguments.length?(t=typeof d=="function"?d:Qs(d),p):t},p.subject=function(d){return arguments.length?(n=typeof d=="function"?d:Qs(d),p):n},p.touchable=function(d){return arguments.length?(r=typeof d=="function"?d:Qs(!!d),p):r},p.on=function(){var d=o.on.apply(o,arguments);return d===o?p:d},p.clickDistance=function(d){return arguments.length?(u=(d=+d)*d,p):Math.sqrt(u)},p}function pp(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function q1(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function vs(){}var Wo=.7,gl=1/Wo,Ei="\\s*([+-]?\\d+)\\s*",qo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Kn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",O7=/^#([0-9a-f]{3,8})$/,P7=new RegExp(`^rgb\\(${Ei},${Ei},${Ei}\\)$`),C7=new RegExp(`^rgb\\(${Kn},${Kn},${Kn}\\)$`),R7=new RegExp(`^rgba\\(${Ei},${Ei},${Ei},${qo}\\)$`),k7=new RegExp(`^rgba\\(${Kn},${Kn},${Kn},${qo}\\)$`),T7=new RegExp(`^hsl\\(${qo},${Kn},${Kn}\\)$`),A7=new RegExp(`^hsla\\(${qo},${Kn},${Kn},${qo}\\)$`),Av={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};pp(vs,Jr,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Lv,formatHex:Lv,formatHex8:L7,formatHsl:M7,formatRgb:Mv,toString:Mv});function Lv(){return this.rgb().formatHex()}function L7(){return this.rgb().formatHex8()}function M7(){return Y1(this).formatHsl()}function Mv(){return this.rgb().formatRgb()}function Jr(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=O7.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Iv(t):n===3?new zt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Js(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Js(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=P7.exec(e))?new zt(t[1],t[2],t[3],1):(t=C7.exec(e))?new zt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=R7.exec(e))?Js(t[1],t[2],t[3],t[4]):(t=k7.exec(e))?Js(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=T7.exec(e))?jv(t[1],t[2]/100,t[3]/100,1):(t=A7.exec(e))?jv(t[1],t[2]/100,t[3]/100,t[4]):Av.hasOwnProperty(e)?Iv(Av[e]):e==="transparent"?new zt(NaN,NaN,NaN,0):null}function Iv(e){return new zt(e>>16&255,e>>8&255,e&255,1)}function Js(e,t,n,r){return r<=0&&(e=t=n=NaN),new zt(e,t,n,r)}function I7(e){return e instanceof vs||(e=Jr(e)),e?(e=e.rgb(),new zt(e.r,e.g,e.b,e.opacity)):new zt}function ad(e,t,n,r){return arguments.length===1?I7(e):new zt(e,t,n,r??1)}function zt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}pp(zt,ad,q1(vs,{brighter(e){return e=e==null?gl:Math.pow(gl,e),new zt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Wo:Math.pow(Wo,e),new zt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new zt(Vr(this.r),Vr(this.g),Vr(this.b),vl(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Dv,formatHex:Dv,formatHex8:D7,formatRgb:Nv,toString:Nv}));function Dv(){return`#${jr(this.r)}${jr(this.g)}${jr(this.b)}`}function D7(){return`#${jr(this.r)}${jr(this.g)}${jr(this.b)}${jr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Nv(){const e=vl(this.opacity);return`${e===1?"rgb(":"rgba("}${Vr(this.r)}, ${Vr(this.g)}, ${Vr(this.b)}${e===1?")":`, ${e})`}`}function vl(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Vr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function jr(e){return e=Vr(e),(e<16?"0":"")+e.toString(16)}function jv(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Rn(e,t,n,r)}function Y1(e){if(e instanceof Rn)return new Rn(e.h,e.s,e.l,e.opacity);if(e instanceof vs||(e=Jr(e)),!e)return new Rn;if(e instanceof Rn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),s=NaN,a=o-i,l=(o+i)/2;return a?(t===o?s=(n-r)/a+(n<r)*6:n===o?s=(r-t)/a+2:s=(t-n)/a+4,a/=l<.5?o+i:2-o-i,s*=60):a=l>0&&l<1?0:s,new Rn(s,a,l,e.opacity)}function N7(e,t,n,r){return arguments.length===1?Y1(e):new Rn(e,t,n,r??1)}function Rn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}pp(Rn,N7,q1(vs,{brighter(e){return e=e==null?gl:Math.pow(gl,e),new Rn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Wo:Math.pow(Wo,e),new Rn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new zt(ju(e>=240?e-240:e+120,i,r),ju(e,i,r),ju(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Rn($v(this.h),ea(this.s),ea(this.l),vl(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=vl(this.opacity);return`${e===1?"hsl(":"hsla("}${$v(this.h)}, ${ea(this.s)*100}%, ${ea(this.l)*100}%${e===1?")":`, ${e})`}`}}));function $v(e){return e=(e||0)%360,e<0?e+360:e}function ea(e){return Math.max(0,Math.min(1,e||0))}function ju(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const hp=e=>()=>e;function j7(e,t){return function(n){return e+n*t}}function $7(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function F7(e){return(e=+e)==1?K1:function(t,n){return n-t?$7(t,n,e):hp(isNaN(t)?n:t)}}function K1(e,t){var n=t-e;return n?j7(e,n):hp(isNaN(e)?t:e)}const yl=(function e(t){var n=F7(t);function r(i,o){var s=n((i=ad(i)).r,(o=ad(o)).r),a=n(i.g,o.g),l=n(i.b,o.b),c=K1(i.opacity,o.opacity);return function(f){return i.r=s(f),i.g=a(f),i.b=l(f),i.opacity=c(f),i+""}}return r.gamma=e,r})(1);function B7(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=e[i]*(1-o)+t[i]*o;return r}}function V7(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function H7(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),s;for(s=0;s<r;++s)i[s]=Ro(e[s],t[s]);for(;s<n;++s)o[s]=t[s];return function(a){for(s=0;s<r;++s)o[s]=i[s](a);return o}}function z7(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Vn(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function U7(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=Ro(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var ld=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,$u=new RegExp(ld.source,"g");function W7(e){return function(){return e}}function q7(e){return function(t){return e(t)+""}}function X1(e,t){var n=ld.lastIndex=$u.lastIndex=0,r,i,o,s=-1,a=[],l=[];for(e=e+"",t=t+"";(r=ld.exec(e))&&(i=$u.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),a[s]?a[s]+=o:a[++s]=o),(r=r[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,l.push({i:s,x:Vn(r,i)})),n=$u.lastIndex;return n<t.length&&(o=t.slice(n),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?q7(l[0].x):W7(t):(t=l.length,function(c){for(var f=0,u;f<t;++f)a[(u=l[f]).i]=u.x(c);return a.join("")})}function Ro(e,t){var n=typeof t,r;return t==null||n==="boolean"?hp(t):(n==="number"?Vn:n==="string"?(r=Jr(t))?(t=r,yl):X1:t instanceof Jr?yl:t instanceof Date?z7:V7(t)?B7:Array.isArray(t)?H7:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?U7:Vn)(e,t)}var Fv=180/Math.PI,cd={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function G1(e,t,n,r,i,o){var s,a,l;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,l/=a),e*r<t*n&&(e=-e,t=-t,l=-l,s=-s),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*Fv,skewX:Math.atan(l)*Fv,scaleX:s,scaleY:a}}var ta;function Y7(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?cd:G1(t.a,t.b,t.c,t.d,t.e,t.f)}function K7(e){return e==null||(ta||(ta=document.createElementNS("http://www.w3.org/2000/svg","g")),ta.setAttribute("transform",e),!(e=ta.transform.baseVal.consolidate()))?cd:(e=e.matrix,G1(e.a,e.b,e.c,e.d,e.e,e.f))}function Z1(e,t,n,r){function i(c){return c.length?c.pop()+" ":""}function o(c,f,u,p,h,g){if(c!==u||f!==p){var y=h.push("translate(",null,t,null,n);g.push({i:y-4,x:Vn(c,u)},{i:y-2,x:Vn(f,p)})}else(u||p)&&h.push("translate("+u+t+p+n)}function s(c,f,u,p){c!==f?(c-f>180?f+=360:f-c>180&&(c+=360),p.push({i:u.push(i(u)+"rotate(",null,r)-2,x:Vn(c,f)})):f&&u.push(i(u)+"rotate("+f+r)}function a(c,f,u,p){c!==f?p.push({i:u.push(i(u)+"skewX(",null,r)-2,x:Vn(c,f)}):f&&u.push(i(u)+"skewX("+f+r)}function l(c,f,u,p,h,g){if(c!==u||f!==p){var y=h.push(i(h)+"scale(",null,",",null,")");g.push({i:y-4,x:Vn(c,u)},{i:y-2,x:Vn(f,p)})}else(u!==1||p!==1)&&h.push(i(h)+"scale("+u+","+p+")")}return function(c,f){var u=[],p=[];return c=e(c),f=e(f),o(c.translateX,c.translateY,f.translateX,f.translateY,u,p),s(c.rotate,f.rotate,u,p),a(c.skewX,f.skewX,u,p),l(c.scaleX,c.scaleY,f.scaleX,f.scaleY,u,p),c=f=null,function(h){for(var g=-1,y=p.length,w;++g<y;)u[(w=p[g]).i]=w.x(h);return u.join("")}}}var X7=Z1(Y7,"px, ","px)","deg)"),G7=Z1(K7,", ",")",")"),Z7=1e-12;function Bv(e){return((e=Math.exp(e))+1/e)/2}function Q7(e){return((e=Math.exp(e))-1/e)/2}function J7(e){return((e=Math.exp(2*e))-1)/(e+1)}const Ra=(function e(t,n,r){function i(o,s){var a=o[0],l=o[1],c=o[2],f=s[0],u=s[1],p=s[2],h=f-a,g=u-l,y=h*h+g*g,w,x;if(y<Z7)x=Math.log(p/c)/t,w=function(O){return[a+O*h,l+O*g,c*Math.exp(t*O*x)]};else{var b=Math.sqrt(y),m=(p*p-c*c+r*y)/(2*c*n*b),d=(p*p-c*c-r*y)/(2*p*n*b),v=Math.log(Math.sqrt(m*m+1)-m),_=Math.log(Math.sqrt(d*d+1)-d);x=(_-v)/t,w=function(O){var C=O*x,k=Bv(v),A=c/(n*b)*(k*J7(t*C+v)-Q7(v));return[a+A*h,l+A*g,c*k/Bv(t*C+v)]}}return w.duration=x*1e3*t/Math.SQRT2,w}return i.rho=function(o){var s=Math.max(.001,+o),a=s*s,l=a*a;return e(s,a,l)},i})(Math.SQRT2,2,4);var ji=0,bo=0,ho=0,Q1=1e3,bl,wo,wl=0,ei=0,ic=0,Yo=typeof performance=="object"&&performance.now?performance:Date,J1=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function mp(){return ei||(J1(e$),ei=Yo.now()+ic)}function e$(){ei=0}function xl(){this._call=this._time=this._next=null}xl.prototype=gp.prototype={constructor:xl,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?mp():+n)+(t==null?0:+t),!this._next&&wo!==this&&(wo?wo._next=this:bl=this,wo=this),this._call=e,this._time=n,ud()},stop:function(){this._call&&(this._call=null,this._time=1/0,ud())}};function gp(e,t,n){var r=new xl;return r.restart(e,t,n),r}function t$(){mp(),++ji;for(var e=bl,t;e;)(t=ei-e._time)>=0&&e._call.call(void 0,t),e=e._next;--ji}function Vv(){ei=(wl=Yo.now())+ic,ji=bo=0;try{t$()}finally{ji=0,r$(),ei=0}}function n$(){var e=Yo.now(),t=e-wl;t>Q1&&(ic-=t,wl=e)}function r$(){for(var e,t=bl,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:bl=n);wo=e,ud(r)}function ud(e){if(!ji){bo&&(bo=clearTimeout(bo));var t=e-ei;t>24?(e<1/0&&(bo=setTimeout(Vv,e-Yo.now()-ic)),ho&&(ho=clearInterval(ho))):(ho||(wl=Yo.now(),ho=setInterval(n$,Q1)),ji=1,J1(Vv))}}function Hv(e,t,n){var r=new xl;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}var i$=ms("start","end","cancel","interrupt"),o$=[],ex=0,zv=1,fd=2,ka=3,Uv=4,dd=5,Ta=6;function oc(e,t,n,r,i,o){var s=e.__transition;if(!s)e.__transition={};else if(n in s)return;s$(e,n,{name:t,index:r,group:i,on:i$,tween:o$,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:ex})}function vp(e,t){var n=Dn(e,t);if(n.state>ex)throw new Error("too late; already scheduled");return n}function er(e,t){var n=Dn(e,t);if(n.state>ka)throw new Error("too late; already running");return n}function Dn(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function s$(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=gp(o,0,n.time);function o(c){n.state=zv,n.timer.restart(s,n.delay,n.time),n.delay<=c&&s(c-n.delay)}function s(c){var f,u,p,h;
vendor: 5,131 bytes, line 19
19if(n.state!==zv)return l();for(f in r)if(h=r[f],h.name===n.name){if(h.state===ka)return Hv(s);h.state===Uv?(h.state=Ta,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete r[f]):+f<t&&(h.state=Ta,h.timer.stop(),h.on.call("cancel",e,e.__data__,h.index,h.group),delete r[f])}if(Hv(function(){n.state===ka&&(n.state=Uv,n.timer.restart(a,n.delay,n.time),a(c))}),n.state=fd,n.on.call("start",e,e.__data__,n.index,n.group),n.state===fd){for(n.state=ka,i=new Array(p=n.tween.length),f=0,u=-1;f<p;++f)(h=n.tween[f].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=h);i.length=u+1}}function a(c){for(var f=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(l),n.state=dd,1),u=-1,p=i.length;++u<p;)i[u].call(e,f);n.state===dd&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){n.state=Ta,n.timer.stop(),delete r[t];for(var c in r)return;delete e.__transition}}function Aa(e,t){var n=e.__transition,r,i,o=!0,s;if(n){t=t==null?null:t+"";for(s in n){if((r=n[s]).name!==t){o=!1;continue}i=r.state>fd&&r.state<dd,r.state=Ta,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[s]}o&&delete e.__transition}}function a$(e){return this.each(function(){Aa(this,e)})}function l$(e,t){var n,r;return function(){var i=er(this,e),o=i.tween;if(o!==n){r=n=o;for(var s=0,a=r.length;s<a;++s)if(r[s].name===t){r=r.slice(),r.splice(s,1);break}}i.tween=r}}function c$(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var o=er(this,e),s=o.tween;if(s!==r){i=(r=s).slice();for(var a={name:t,value:n},l=0,c=i.length;l<c;++l)if(i[l].name===t){i[l]=a;break}l===c&&i.push(a)}o.tween=i}}function u$(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=Dn(this.node(),n).tween,i=0,o=r.length,s;i<o;++i)if((s=r[i]).name===e)return s.value;return null}return this.each((t==null?l$:c$)(n,e,t))}function yp(e,t,n){var r=e._id;return e.each(function(){var i=er(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return Dn(i,r).value[t]}}function tx(e,t){var n;return(typeof t=="number"?Vn:t instanceof Jr?yl:(n=Jr(t))?(t=n,yl):X1)(e,t)}function f$(e){return function(){this.removeAttribute(e)}}function d$(e){return function(){this.removeAttributeNS(e.space,e.local)}}function p$(e,t,n){var r,i=n+"",o;return function(){var s=this.getAttribute(e);return s===i?null:s===r?o:o=t(r=s,n)}}function h$(e,t,n){var r,i=n+"",o;return function(){var s=this.getAttributeNS(e.space,e.local);return s===i?null:s===r?o:o=t(r=s,n)}}function m$(e,t,n){var r,i,o;return function(){var s,a=n(this),l;return a==null?void this.removeAttribute(e):(s=this.getAttribute(e),l=a+"",s===l?null:s===r&&l===i?o:(i=l,o=t(r=s,a)))}}function g$(e,t,n){var r,i,o;return function(){var s,a=n(this),l;return a==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),l=a+"",s===l?null:s===r&&l===i?o:(i=l,o=t(r=s,a)))}}function v$(e,t){var n=rc(e),r=n==="transform"?G7:tx;return this.attrTween(e,typeof t=="function"?(n.local?g$:m$)(n,r,yp(this,"attr."+e,t)):t==null?(n.local?d$:f$)(n):(n.local?h$:p$)(n,r,t))}function y$(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function b$(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function w$(e,t){var n,r;function i(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&b$(e,o)),n}return i._value=t,i}function x$(e,t){var n,r;function i(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&y$(e,o)),n}return i._value=t,i}function E$(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=rc(e);return this.tween(n,(r.local?w$:x$)(r,t))}function _$(e,t){return function(){vp(this,e).delay=+t.apply(this,arguments)}}function S$(e,t){return t=+t,function(){vp(this,e).delay=t}}function O$(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?_$:S$)(t,e)):Dn(this.node(),t).delay}function P$(e,t){return function(){er(this,e).duration=+t.apply(this,arguments)}}function C$(e,t){return t=+t,function(){er(this,e).duration=t}}function R$(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?P$:C$)(t,e)):Dn(this.node(),t).duration}function k$(e,t){if(typeof t!="function")throw new Error;return function(){er(this,e).ease=t}}function T$(e){var t=this._id;return arguments.length?this.each(k$(t,e)):Dn(this.node(),t).ease}function A$(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;er(this,e).ease=n}}function L$(e){if(typeof e!="function")throw new Error;return this.each(A$(this._id,e))}function M$(e){typeof e!="function"&&(e=M1(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o=t[i],s=o.length,a=r[i]=[],l,c=0;c<s;++c)(l=o[c])&&e.call(l,l.__data__,c,o)&&a.push(l);return new ur(r,this._parents,this._name,this._id)}function I$(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),s=new Array(r),a=0;a<o;++a)for(var l=t[a],c=n[a],f=l.length,u=s[a]=new Array(f),p,h=0;h<f;
vendor: 4,754 bytes, line 19
19++h)(p=l[h]||c[h])&&(u[h]=p);for(;a<r;++a)s[a]=t[a];return new ur(s,this._parents,this._name,this._id)}function D$(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function N$(e,t,n){var r,i,o=D$(t)?vp:er;return function(){var s=o(this,e),a=s.on;a!==r&&(i=(r=a).copy()).on(t,n),s.on=i}}function j$(e,t){var n=this._id;return arguments.length<2?Dn(this.node(),n).on.on(e):this.each(N$(n,e,t))}function $$(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function F$(){return this.on("end.remove",$$(this._id))}function B$(e){var t=this._name,n=this._id;typeof e!="function"&&(e=fp(e));for(var r=this._groups,i=r.length,o=new Array(i),s=0;s<i;++s)for(var a=r[s],l=a.length,c=o[s]=new Array(l),f,u,p=0;p<l;++p)(f=a[p])&&(u=e.call(f,f.__data__,p,a))&&("__data__"in f&&(u.__data__=f.__data__),c[p]=u,oc(c[p],t,n,p,c,Dn(f,n)));return new ur(o,this._parents,t,n)}function V$(e){var t=this._name,n=this._id;typeof e!="function"&&(e=L1(e));for(var r=this._groups,i=r.length,o=[],s=[],a=0;a<i;++a)for(var l=r[a],c=l.length,f,u=0;u<c;++u)if(f=l[u]){for(var p=e.call(f,f.__data__,u,l),h,g=Dn(f,n),y=0,w=p.length;y<w;++y)(h=p[y])&&oc(h,t,n,y,p,g);o.push(p),s.push(f)}return new ur(o,s,t,n)}var H$=gs.prototype.constructor;function z$(){return new H$(this._groups,this._parents)}function U$(e,t){var n,r,i;return function(){var o=Ni(this,e),s=(this.style.removeProperty(e),Ni(this,e));return o===s?null:o===n&&s===r?i:i=t(n=o,r=s)}}function nx(e){return function(){this.style.removeProperty(e)}}function W$(e,t,n){var r,i=n+"",o;return function(){var s=Ni(this,e);return s===i?null:s===r?o:o=t(r=s,n)}}function q$(e,t,n){var r,i,o;return function(){var s=Ni(this,e),a=n(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(e),Ni(this,e))),s===l?null:s===r&&l===i?o:(i=l,o=t(r=s,a))}}function Y$(e,t){var n,r,i,o="style."+t,s="end."+o,a;return function(){var l=er(this,e),c=l.on,f=l.value[o]==null?a||(a=nx(t)):void 0;(c!==n||i!==f)&&(r=(n=c).copy()).on(s,i=f),l.on=r}}function K$(e,t,n){var r=(e+="")=="transform"?X7:tx;return t==null?this.styleTween(e,U$(e,r)).on("end.style."+e,nx(e)):typeof t=="function"?this.styleTween(e,q$(e,r,yp(this,"style."+e,t))).each(Y$(this._id,e)):this.styleTween(e,W$(e,r,t),n).on("end.style."+e,null)}function X$(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function G$(e,t,n){var r,i;function o(){var s=t.apply(this,arguments);return s!==i&&(r=(i=s)&&X$(e,s,n)),r}return o._value=t,o}function Z$(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,G$(e,t,n??""))}function Q$(e){return function(){this.textContent=e}}function J$(e){return function(){var t=e(this);this.textContent=t??""}}function e6(e){return this.tween("text",typeof e=="function"?J$(yp(this,"text",e)):Q$(e==null?"":e+""))}function t6(e){return function(t){this.textContent=e.call(this,t)}}function n6(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&t6(i)),t}return r._value=e,r}function r6(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,n6(e))}function i6(){for(var e=this._name,t=this._id,n=rx(),r=this._groups,i=r.length,o=0;o<i;++o)for(var s=r[o],a=s.length,l,c=0;c<a;++c)if(l=s[c]){var f=Dn(l,t);oc(l,e,n,c,s,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new ur(r,this._parents,e,n)}function o6(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(o,s){var a={value:s},l={value:function(){--i===0&&o()}};n.each(function(){var c=er(this,r),f=c.on;f!==e&&(t=(e=f).copy(),t._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),c.on=t}),i===0&&o()})}var s6=0;function ur(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function rx(){return++s6}var tr=gs.prototype;ur.prototype={constructor:ur,select:B$,selectAll:V$,selectChild:tr.selectChild,selectChildren:tr.selectChildren,filter:M$,merge:I$,selection:z$,transition:i6,call:tr.call,nodes:tr.nodes,node:tr.node,size:tr.size,empty:tr.empty,each:tr.each,on:j$,attr:v$,attrTween:E$,style:K$,styleTween:Z$,text:e6,textTween:r6,remove:F$,tween:u$,delay:O$,duration:R$,ease:T$,easeVarying:L$,end:o6,[Symbol.iterator]:tr[Symbol.iterator]};function a6(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var l6={time:null,delay:0,duration:250,ease:a6};function c6(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function u6(e){var t,n;
vendor: 10,571 bytes, line 19
19e instanceof ur?(t=e._id,e=e._name):(t=rx(),(n=l6).time=mp(),e=e==null?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var s=r[o],a=s.length,l,c=0;c<a;++c)(l=s[c])&&oc(l,e,t,c,s,n||c6(l,t));return new ur(r,this._parents,e,t)}gs.prototype.interrupt=a$;gs.prototype.transition=u6;const na=e=>()=>e;function f6(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function ir(e,t,n){this.k=e,this.x=t,this.y=n}ir.prototype={constructor:ir,scale:function(e){return e===1?this:new ir(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new ir(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var sc=new ir(1,0,0);ix.prototype=ir.prototype;function ix(e){for(;!e.__zoom;)if(!(e=e.parentNode))return sc;return e.__zoom}function Fu(e){e.stopImmediatePropagation()}function mo(e){e.preventDefault(),e.stopImmediatePropagation()}function d6(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function p6(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function Wv(){return this.__zoom||sc}function h6(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function m6(){return navigator.maxTouchPoints||"ontouchstart"in this}function g6(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],o=e.invertY(t[0][1])-n[0][1],s=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s))}function ox(){var e=d6,t=p6,n=g6,r=h6,i=m6,o=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],a=250,l=Ra,c=ms("start","zoom","end"),f,u,p,h=500,g=150,y=0,w=10;function x(P){P.property("__zoom",Wv).on("wheel.zoom",C,{passive:!1}).on("mousedown.zoom",k).on("dblclick.zoom",A).filter(i).on("touchstart.zoom",T).on("touchmove.zoom",M).on("touchend.zoom touchcancel.zoom",I).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}x.transform=function(P,S,R,D){var L=P.selection?P.selection():P;L.property("__zoom",Wv),P!==L?v(P,S,R,D):L.interrupt().each(function(){_(this,arguments).event(D).start().zoom(null,typeof S=="function"?S.apply(this,arguments):S).end()})},x.scaleBy=function(P,S,R,D){x.scaleTo(P,function(){var L=this.__zoom.k,N=typeof S=="function"?S.apply(this,arguments):S;return L*N},R,D)},x.scaleTo=function(P,S,R,D){x.transform(P,function(){var L=t.apply(this,arguments),N=this.__zoom,$=R==null?d(L):typeof R=="function"?R.apply(this,arguments):R,B=N.invert($),V=typeof S=="function"?S.apply(this,arguments):S;return n(m(b(N,V),$,B),L,s)},R,D)},x.translateBy=function(P,S,R,D){x.transform(P,function(){return n(this.__zoom.translate(typeof S=="function"?S.apply(this,arguments):S,typeof R=="function"?R.apply(this,arguments):R),t.apply(this,arguments),s)},null,D)},x.translateTo=function(P,S,R,D,L){x.transform(P,function(){var N=t.apply(this,arguments),$=this.__zoom,B=D==null?d(N):typeof D=="function"?D.apply(this,arguments):D;return n(sc.translate(B[0],B[1]).scale($.k).translate(typeof S=="function"?-S.apply(this,arguments):-S,typeof R=="function"?-R.apply(this,arguments):-R),N,s)},D,L)};function b(P,S){return S=Math.max(o[0],Math.min(o[1],S)),S===P.k?P:new ir(S,P.x,P.y)}function m(P,S,R){var D=S[0]-R[0]*P.k,L=S[1]-R[1]*P.k;return D===P.x&&L===P.y?P:new ir(P.k,D,L)}function d(P){return[(+P[0][0]+ +P[1][0])/2,(+P[0][1]+ +P[1][1])/2]}function v(P,S,R,D){P.on("start.zoom",function(){_(this,arguments).event(D).start()}).on("interrupt.zoom end.zoom",function(){_(this,arguments).event(D).end()}).tween("zoom",function(){var L=this,N=arguments,$=_(L,N).event(D),B=t.apply(L,N),V=R==null?d(B):typeof R=="function"?R.apply(L,N):R,W=Math.max(B[1][0]-B[0][0],B[1][1]-B[0][1]),F=L.__zoom,j=typeof S=="function"?S.apply(L,N):S,H=l(F.invert(V).concat(W/F.k),j.invert(V).concat(W/j.k));return function(z){if(z===1)z=j;else{var U=H(z),Y=W/U[2];z=new ir(Y,V[0]-U[0]*Y,V[1]-U[1]*Y)}$.zoom(null,z)}})}function _(P,S,R){return!R&&P.__zooming||new O(P,S)}function O(P,S){this.that=P,this.args=S,this.active=0,this.sourceEvent=null,this.extent=t.apply(P,S),this.taps=0}O.prototype={event:function(P){return P&&(this.sourceEvent=P),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(P,S){return this.mouse&&P!=="mouse"&&(this.mouse[1]=S.invert(this.mouse[0])),this.touch0&&P!=="touch"&&(this.touch0[1]=S.invert(this.touch0[0])),this.touch1&&P!=="touch"&&(this.touch1[1]=S.invert(this.touch1[0])),this.that.__zoom=S,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(P){var S=on(this.that).datum();c.call(P,this.that,new f6(P,{sourceEvent:this.sourceEvent,target:x,transform:this.that.__zoom,dispatch:c}),S)}};function C(P,...S){if(!e.apply(this,arguments))return;var R=_(this,S).event(P),D=this.__zoom,L=Math.max(o[0],Math.min(o[1],D.k*Math.pow(2,r.apply(this,arguments)))),N=Pn(P);if(R.wheel)(R.mouse[0][0]!==N[0]||R.mouse[0][1]!==N[1])&&(R.mouse[1]=D.invert(R.mouse[0]=N)),clearTimeout(R.wheel);else{if(D.k===L)return;R.mouse=[N,D.invert(N)],Aa(this),R.start()}mo(P),R.wheel=setTimeout($,g),R.zoom("mouse",n(m(b(D,L),R.mouse[0],R.mouse[1]),R.extent,s));function $(){R.wheel=null,R.end()}}function k(P,...S){if(p||!e.apply(this,arguments))return;var R=P.currentTarget,D=_(this,S,!0).event(P),L=on(P.view).on("mousemove.zoom",V,!0).on("mouseup.zoom",W,!0),N=Pn(P,R),$=P.clientX,B=P.clientY;z1(P.view),Fu(P),D.mouse=[N,this.__zoom.invert(N)],Aa(this),D.start();function V(F){if(mo(F),!D.moved){var j=F.clientX-$,H=F.clientY-B;D.moved=j*j+H*H>y}D.event(F).zoom("mouse",n(m(D.that.__zoom,D.mouse[0]=Pn(F,R),D.mouse[1]),D.extent,s))}function W(F){L.on("mousemove.zoom mouseup.zoom",null),U1(F.view,D.moved),mo(F),D.event(F).end()}}function A(P,...S){if(e.apply(this,arguments)){var R=this.__zoom,D=Pn(P.changedTouches?P.changedTouches[0]:P,this),L=R.invert(D),N=R.k*(P.shiftKey?.5:2),$=n(m(b(R,N),D,L),t.apply(this,S),s);mo(P),a>0?on(this).transition().duration(a).call(v,$,D,P):on(this).call(x.transform,$,D,P)}}function T(P,...S){if(e.apply(this,arguments)){var R=P.touches,D=R.length,L=_(this,S,P.changedTouches.length===D).event(P),N,$,B,V;for(Fu(P),$=0;$<D;++$)B=R[$],V=Pn(B,this),V=[V,this.__zoom.invert(V),B.identifier],L.touch0?!L.touch1&&L.touch0[2]!==V[2]&&(L.touch1=V,L.taps=0):(L.touch0=V,N=!0,L.taps=1+!!f);f&&(f=clearTimeout(f)),N&&(L.taps<2&&(u=V[0],f=setTimeout(function(){f=null},h)),Aa(this),L.start())}}function M(P,...S){if(this.__zooming){var R=_(this,S).event(P),D=P.changedTouches,L=D.length,N,$,B,V;for(mo(P),N=0;N<L;++N)$=D[N],B=Pn($,this),R.touch0&&R.touch0[2]===$.identifier?R.touch0[0]=B:R.touch1&&R.touch1[2]===$.identifier&&(R.touch1[0]=B);if($=R.that.__zoom,R.touch1){var W=R.touch0[0],F=R.touch0[1],j=R.touch1[0],H=R.touch1[1],z=(z=j[0]-W[0])*z+(z=j[1]-W[1])*z,U=(U=H[0]-F[0])*U+(U=H[1]-F[1])*U;$=b($,Math.sqrt(z/U)),B=[(W[0]+j[0])/2,(W[1]+j[1])/2],V=[(F[0]+H[0])/2,(F[1]+H[1])/2]}else if(R.touch0)B=R.touch0[0],V=R.touch0[1];else return;R.zoom("touch",n(m($,B,V),R.extent,s))}}function I(P,...S){if(this.__zooming){var R=_(this,S).event(P),D=P.changedTouches,L=D.length,N,$;for(Fu(P),p&&clearTimeout(p),p=setTimeout(function(){p=null},h),N=0;N<L;++N)$=D[N],R.touch0&&R.touch0[2]===$.identifier?delete R.touch0:R.touch1&&R.touch1[2]===$.identifier&&delete R.touch1;if(R.touch1&&!R.touch0&&(R.touch0=R.touch1,delete R.touch1),R.touch0)R.touch0[1]=this.__zoom.invert(R.touch0[0]);else if(R.end(),R.taps===2&&($=Pn($,this),Math.hypot(u[0]-$[0],u[1]-$[1])<w)){var B=on(this).on("dblclick.zoom");B&&B.apply(this,arguments)}}}return x.wheelDelta=function(P){return arguments.length?(r=typeof P=="function"?P:na(+P),x):r},x.filter=function(P){return arguments.length?(e=typeof P=="function"?P:na(!!P),x):e},x.touchable=function(P){return arguments.length?(i=typeof P=="function"?P:na(!!P),x):i},x.extent=function(P){return arguments.length?(t=typeof P=="function"?P:na([[+P[0][0],+P[0][1]],[+P[1][0],+P[1][1]]]),x):t},x.scaleExtent=function(P){return arguments.length?(o[0]=+P[0],o[1]=+P[1],x):[o[0],o[1]]},x.translateExtent=function(P){return arguments.length?(s[0][0]=+P[0][0],s[1][0]=+P[1][0],s[0][1]=+P[0][1],s[1][1]=+P[1][1],x):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},x.constrain=function(P){return arguments.length?(n=P,x):n},x.duration=function(P){return arguments.length?(a=+P,x):a},x.interpolate=function(P){return arguments.length?(l=P,x):l},x.on=function(){var P=c.on.apply(c,arguments);return P===c?x:P},x.clickDistance=function(P){return arguments.length?(y=(P=+P)*P,x):Math.sqrt(y)},x.tapDistance=function(P){return arguments.length?(w=+P,x):w},x}const Qn={error001:()=>"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,{id:t,sourceHandle:n,targetHandle:r})=>`Couldn't create edge for ${e} handle id: "${e==="source"?n:r}", edge id: ${t}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>
19`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(e="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${e}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."},Ko=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],sx=["Enter"," ","Escape"],ax={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:e,x:t,y:n})=>`Moved selected node ${e}. New position, x: ${t}, y: ${n}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};var $i;(function(e){e.Strict="strict",e.Loose="loose"})($i||($i={}));var Hr;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(Hr||(Hr={}));var Xo;(function(e){e.Partial="partial",e.Full="full"})(Xo||(Xo={}));const lx={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var mr;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(mr||(mr={}));var El;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(El||(El={}));var ve;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(ve||(ve={}));const qv={[ve.Left]:ve.Right,[ve.Right]:ve.Left,[ve.Top]:ve.Bottom,[ve.Bottom]:ve.Top};function cx(e){return e===null?null:e?"valid":"invalid"}const ux=e=>"id"in e&&"source"in e&&"target"in e,v6=e=>"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),bp=e=>"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),ys=(e,t=[0,0])=>{const{width:n,height:r}=dr(e),i=e.origin??t,o=n*i[0],s=r*i[1];return{x:e.position.x-o,y:e.position.y-s}},y6=(e,t={nodeOrigin:[0,0]})=>{if(e.length===0)return{x:0,y:0,width:0,height:0};const n=e.reduce((r,i)=>{const o=typeof i=="string";let s=!t.nodeLookup&&!o?i:void 0;t.nodeLookup&&(s=o?t.nodeLookup.get(i):bp(i)?i:t.nodeLookup.get(i.id));const a=s?_l(s,t.nodeOrigin):{x:0,y:0,x2:0,y2:0};return ac(r,a)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return lc(n)},bs=(e,t={})=>{let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0},r=!1;return e.forEach(i=>{(t.filter===void 0||t.filter(i))&&(n=ac(n,_l(i)),r=!0)}),r?lc(n):{x:0,y:0,width:0,height:0}},wp=(e,t,[n,r,i]=[0,0,1],o=!1,s=!1)=>{const a={...xs(t,[n,r,i]),width:t.width/i,height:t.height/i},l=[];for(const c of e.values()){const{measured:f,selectable:u=!0,hidden:p=!1}=c;if(s&&!u||p)continue;const h=f.width??c.width??c.initialWidth??null,g=f.height??c.height??c.initialHeight??null,y=Go(a,Bi(c)),w=(h??0)*(g??0),x=o&&y>0;(!c.internals.handleBounds||x||y>=w||c.dragging)&&l.push(c)}return l},b6=(e,t)=>{const n=new Set;return e.forEach(r=>{n.add(r.id)}),t.filter(r=>n.has(r.source)||n.has(r.target))};function w6(e,t){const n=new Map,r=t?.nodes?new Set(t.nodes.map(i=>i.id)):null;return e.forEach(i=>{i.measured.width&&i.measured.height&&(t?.includeHiddenNodes||!i.hidden)&&(!r||r.has(i.id))&&n.set(i.id,i)}),n}
19async function x6({nodes:e,width:t,height:n,panZoom:r,minZoom:i,maxZoom:o},s){if(e.size===0)return Promise.resolve(!0);const a=w6(e,s),l=bs(a),c=xp(l,t,n,s?.minZoom??i,s?.maxZoom??o,s?.padding??.1);return await r.setViewport(c,{duration:s?.duration,ease:s?.ease,interpolate:s?.interpolate}),Promise.resolve(!0)}function fx({nodeId:e,nextPosition:t,nodeLookup:n,nodeOrigin:r=[0,0],nodeExtent:i,onError:o}){const s=n.get(e),a=s.parentId?n.get(s.parentId):void 0,{x:l,y:c}=a?a.internals.positionAbsolute:{x:0,y:0},f=s.origin??r;let u=s.extent||i;if(s.extent==="parent"&&!s.expandParent)if(!a)o?.("005",Qn.error005());else{const h=a.measured.width,g=a.measured.height;h&&g&&(u=[[l,c],[l+h,c+g]])}else a&&Vi(s.extent)&&(u=[[s.extent[0][0]+l,s.extent[0][1]+c],[s.extent[1][0]+l,s.extent[1][1]+c]]);const p=Vi(u)?ti(t,u,s.measured):t;return(s.measured.width===void 0||s.measured.height===void 0)&&o?.("015",Qn.error015()),{position:{x:p.x-l+(s.measured.width??0)*f[0],y:p.y-c+(s.measured.height??0)*f[1]},positionAbsolute:p}}async function E6({nodesToRemove:e=[],edgesToRemove:t=[],nodes:n,edges:r,onBeforeDelete:i}){const o=new Set(e.map(p=>p.id)),s=[];for(const p of n){if(p.deletable===!1)continue;const h=o.has(p.id),g=!h&&p.parentId&&s.find(y=>y.id===p.parentId);(h||g)&&s.push(p)}const a=new Set(t.map(p=>p.id)),l=r.filter(p=>p.deletable!==!1),f=b6(s,l);for(const p of l)a.has(p.id)&&!f.find(g=>g.id===p.id)&&f.push(p);if(!i)return{edges:f,nodes:s};const u=await i({nodes:s,edges:f});return typeof u=="boolean"?u?{edges:f,nodes:s}:{edges:[],nodes:[]}:u}const Fi=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),ti=(e={x:0,y:0},t,n)=>({x:Fi(e.x,t[0][0],t[1][0]-(n?.width??0)),y:Fi(e.y,t[0][1],t[1][1]-(n?.height??0))});function dx(e,t,n){const{width:r,height:i}=dr(n),{x:o,y:s}=n.internals.positionAbsolute;return ti(e,[[o,s],[o+r,s+i]],t)}const Yv=(e,t,n)=>e<t?Fi(Math.abs(e-t),1,t)/t:e>n?-Fi(Math.abs(e-n),1,t)/t:0,px=(e,t,n=15,r=40)=>{const i=Yv(e.x,r,t.width-r)*n,o=Yv(e.y,r,t.height-r)*n;return[i,o]},ac=(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}),pd=({x:e,y:t,width:n,height:r})=>({x:e,y:t,x2:e+n,y2:t+r}),lc=({x:e,y:t,x2:n,y2:r})=>({x:e,y:t,width:n-e,height:r-t}),Bi=(e,t=[0,0])=>{const{x:n,y:r}=bp(e)?e.internals.positionAbsolute:ys(e,t);return{x:n,y:r,width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}},_l=(e,t=[0,0])=>{const{x:n,y:r}=bp(e)?e.internals.positionAbsolute:ys(e,t);return{x:n,y:r,x2:n+(e.measured?.width??e.width??e.initialWidth??0),y2:r+(e.measured?.height??e.height??e.initialHeight??0)}},hx=(e,t)=>lc(ac(pd(e),pd(t))),Go=(e,t)=>{const n=Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x)),r=Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y));return Math.ceil(n*r)},Kv=e=>Tn(e.width)&&Tn(e.height)&&Tn(e.x)&&Tn(e.y),Tn=e=>!isNaN(e)&&isFinite(e),_6=(e,t)=>{},ws=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),xs=({x:e,y:t},[n,r,i],o=!1,s=[1,1])=>{const a={x:(e-n)/i,y:(t-r)/i};return o?ws(a,s):a},Sl=({x:e,y:t},[n,r,i])=>({x:e*i+n,y:t*i+r});function fi(e,t){if(typeof e=="number")return Math.floor((t-t/(1+e))*.5);if(typeof e=="string"&&e.endsWith("px")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(n)}if(typeof e=="string"&&e.endsWith("%")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(t*n*.01)}return console.error(`[React Flow] The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function S6(e,t,n){if(typeof e=="string"||typeof e=="number"){const r=fi(e,n),i=fi(e,t);return{top:r,right:i,bottom:r,left:i,x:i*2,y:r*2}}if(typeof e=="object"){const r=fi(e.top??e.y??0,n),i=fi(e.bottom??e.y??0,n),o=fi(e.left??e.x??0,t),s=fi(e.right??e.x??0,t);return{top:r,right:s,bottom:i,left:o,x:o+s,y:r+i}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function O6(e,t,n,r,i,o){const{x:s,y:a}=Sl(e,[t,n,r]),{x:l,y:c}=Sl({x:e.x+e.width,y:e.y+e.height},[t,n,r]),f=i-l,u=o-c;return{left:Math.floor(s),top:Math.floor(a),right:Math.floor(f),bottom:Math.floor(u)}}const xp=(e,t,n,r,i,o)=>{const s=S6(o,t,n),a=(t-s.x)/e.width,l=(n-s.y)/e.height,c=Math.min(a,l),f=Fi(c,r,i),u=e.x+e.width/2,p=e.y+e.height/2,h=t/2-u*f,g=n/2-p*f,y=O6(e,h,g,f,t,n),w={left:Math.min(y.left-s.left,0),top:Math.min(y.top-s.top,0),right:Math.min(y.right-s.right,0),bottom:Math.min(y.bottom-s.bottom,0)};return{x:h-w.left+w.right,y:g-w.top+w.bottom,zoom:f}},Zo=()=>typeof navigator<"u"&&navigator?.userAgent?.indexOf("Mac")>=0;function Vi(e){return e!=null&&e!=="parent"}function dr(e){return{width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}}function mx(e){return(e.measured?.width??e.width??e.initialWidth)!==void 0&&(e.measured?.height??e.height??e.initialHeight)!==void 0}function gx(e,t={width:0,height:0},n,r,i){const o={...e},s=r.get(n);if(s){const a=s.origin||i;o.x+=s.internals.positionAbsolute.x-(t.width??0)*a[0],o.y+=s.internals.positionAbsolute.y-(t.height??0)*a[1]}return o}function Xv(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}function P6(){let e,t;return{promise:new Promise((r,i)=>{e=r,t=i}),resolve:e,reject:t}}function C6(e){return{...ax,...e||{}}}
19function ko(e,{snapGrid:t=[0,0],snapToGrid:n=!1,transform:r,containerBounds:i}){const{x:o,y:s}=An(e),a=xs({x:o-(i?.left??0),y:s-(i?.top??0)},r),{x:l,y:c}=n?ws(a,t):a;return{xSnapped:l,ySnapped:c,...a}}const Ep=e=>({width:e.offsetWidth,height:e.offsetHeight}),vx=e=>e?.getRootNode?.()||window?.document,R6=["INPUT","SELECT","TEXTAREA"];function yx(e){const t=e.composedPath?.()?.[0]||e.target;return t?.nodeType!==1?!1:R6.includes(t.nodeName)||t.hasAttribute("contenteditable")||!!t.closest(".nokey")}const bx=e=>"clientX"in e,An=(e,t)=>{const n=bx(e),r=n?e.clientX:e.touches?.[0].clientX,i=n?e.clientY:e.touches?.[0].clientY;return{x:r-(t?.left??0),y:i-(t?.top??0)}},Gv=(e,t,n,r,i)=>{const o=t.querySelectorAll(`.${e}`);return!o||!o.length?null:Array.from(o).map(s=>{const a=s.getBoundingClientRect();return{id:s.getAttribute("data-handleid"),type:e,nodeId:i,position:s.getAttribute("data-handlepos"),x:(a.left-n.left)/r,y:(a.top-n.top)/r,...Ep(s)}})};function wx({sourceX:e,sourceY:t,targetX:n,targetY:r,sourceControlX:i,sourceControlY:o,targetControlX:s,targetControlY:a}){const l=e*.125+i*.375+s*.375+n*.125,c=t*.125+o*.375+a*.375+r*.125,f=Math.abs(l-e),u=Math.abs(c-t);return[l,c,f,u]}function ra(e,t){return e>=0?.5*e:t*25*Math.sqrt(-e)}function Zv({pos:e,x1:t,y1:n,x2:r,y2:i,c:o}){switch(e){case ve.Left:return[t-ra(t-r,o),n];case ve.Right:return[t+ra(r-t,o),n];case ve.Top:return[t,n-ra(n-i,o)];case ve.Bottom:return[t,n+ra(i-n,o)]}}function xx({sourceX:e,sourceY:t,sourcePosition:n=ve.Bottom,targetX:r,targetY:i,targetPosition:o=ve.Top,curvature:s=.25}){const[a,l]=Zv({pos:n,x1:e,y1:t,x2:r,y2:i,c:s}),[c,f]=Zv({pos:o,x1:r,y1:i,x2:e,y2:t,c:s}),[u,p,h,g]=wx({sourceX:e,sourceY:t,targetX:r,targetY:i,sourceControlX:a,sourceControlY:l,targetControlX:c,targetControlY:f});return[`M${e},${t} C${a},${l} ${c},${f} ${r},${i}`,u,p,h,g]}function Ex({sourceX:e,sourceY:t,targetX:n,targetY:r}){const i=Math.abs(n-e)/2,o=n<e?n+i:n-i,s=Math.abs(r-t)/2,a=r<t?r+s:r-s;return[o,a,i,s]}function k6({sourceNode:e,targetNode:t,selected:n=!1,zIndex:r=0,elevateOnSelect:i=!1,zIndexMode:o="basic"}){if(o==="manual")return r;const s=i&&n?r+1e3:r,a=Math.max(e.parentId||i&&e.selected?e.internals.z:0,t.parentId||i&&t.selected?t.internals.z:0);return s+a}function T6({sourceNode:e,targetNode:t,width:n,height:r,transform:i}){const o=ac(_l(e),_l(t));o.x===o.x2&&(o.x2+=1),o.y===o.y2&&(o.y2+=1);const s={x:-i[0]/i[2],y:-i[1]/i[2],width:n/i[2],height:r/i[2]};return Go(s,lc(o))>0}const A6=({source:e,sourceHandle:t,target:n,targetHandle:r})=>`xy-edge__${e}${t||""}-${n}${r||""}`,L6=(e,t)=>t.some(n=>n.source===e.source&&n.target===e.target&&(n.sourceHandle===e.sourceHandle||!n.sourceHandle&&!e.sourceHandle)&&(n.targetHandle===e.targetHandle||!n.targetHandle&&!e.targetHandle)),M6=(e,t,n={})=>{if(!e.source||!e.target)return t;const r=n.getEdgeId||A6;let i;return ux(e)?i={...e}:i={...e,id:r(e)},L6(i,t)?t:(i.sourceHandle===null&&delete i.sourceHandle,i.targetHandle===null&&delete i.targetHandle,t.concat(i))};function _x({sourceX:e,sourceY:t,targetX:n,targetY:r}){const[i,o,s,a]=Ex({sourceX:e,sourceY:t,targetX:n,targetY:r});return[`M ${e},${t}L ${n},${r}`,i,o,s,a]}const Qv={[ve.Left]:{x:-1,y:0},[ve.Right]:{x:1,y:0},[ve.Top]:{x:0,y:-1},[ve.Bottom]:{x:0,y:1}},I6=({source:e,sourcePosition:t=ve.Bottom,target:n})=>t===ve.Left||t===ve.Right?e.x<n.x?{x:1,y:0}:{x:-1,y:0}:e.y<n.y?{x:0,y:1}:{x:0,y:-1},Jv=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function D6({source:e,sourcePosition:t=ve.Bottom,target:n,targetPosition:r=ve.Top,center:i,offset:o,stepPosition:s}){const a=Qv[t],l=Qv[r],c={x:e.x+a.x*o,y:e.y+a.y*o},f={x:n.x+l.x*o,y:n.y+l.y*o},u=I6({source:c,sourcePosition:t,target:f}),p=u.x!==0?"x":"y",h=u[p];let g=[],y,w;const x={x:0,y:0},b={x:0,y:0},[,,m,d]=Ex({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(a[p]*l[p]===-1){p==="x"?(y=i.x??c.x+(f.x-c.x)*s,w=i.y??(c.y+f.y)/2):(y=i.x??(c.x+f.x)/2,w=i.y??c.y+(f.y-c.y)*s);const _=[{x:y,y:c.y},{x:y,y:f.y}],O=[{x:c.x,y:w},{x:f.x,y:w}];a[p]===h?g=p==="x"?_:O:g=p==="x"?O:_}else{const _=[{x:c.x,y:f.y}],O=[{x:f.x,y:c.y}];if(p==="x"?g=a.x===h?O:_:g=a.y===h?_:O,t===r){const M=Math.abs(e[p]-n[p]);if(M<=o){const I=Math.min(o-1,o-M);a[p]===h?x[p]=(c[p]>e[p]?-1:1)*I:b[p]=(f[p]>n[p]?-1:1)*I}}if(t!==r){const M=p==="x"?"y":"x",I=a[p]===l[M],P=c[M]>f[M],S=c[M]<f[M];(a[p]===1&&(!I&&P||I&&S)||a[p]!==1&&(!I&&S||I&&P))&&(g=p==="x"?_:O)}const C={x:c.x+x.x,y:c.y+x.y},k={x:f.x+b.x,y:f.y+b.y},A=Math.max(Math.abs(C.x-g[0].x),Math.abs(k.x-g[0].x)),T=Math.max(Math.abs(C.y-g[0].y),Math.abs(k.y-g[0].y));A>=T?(y=(C.x+k.x)/2,w=g[0].y):(y=g[0].x,w=(C.y+k.y)/2)}return[[e,{x:c.x+x.x,y:c.y+x.y},...g,{x:f.x+b.x,y:f.y+b.y},n],y,w,m,d]}function N6(e,t,n,r){const i=Math.min(Jv(e,t)/2,Jv(t,n)/2,r),{x:o,y:s}=t;if(e.x===o&&o===n.x||e.y===s&&s===n.y)return`L${o} ${s}`;if(e.y===s){const c=e.x<n.x?-1:1,f=e.y<n.y?1:-1;return`L ${o+i*c},${s}Q ${o},${s} ${o},${s+i*f}`}const a=e.x<n.x?1:-1,l=e.y<n.y?-1:1;return`L ${o},${s+i*l}Q ${o},${s} ${o+i*a},${s}`}function hd({sourceX:e,sourceY:t,sourcePosition:n=ve.Bottom,targetX:r,targetY:i,targetPosition:o=ve.Top,borderRadius:s=5,centerX:a,centerY:l,offset:c=20,stepPosition:f=.5}){const[u,p,h,g,y]=D6({source:{x:e,y:t},sourcePosition:n,target:{x:r,y:i},targetPosition:o,center:{x:a,y:l},offset:c,stepPosition:f});return[u.reduce((x,b,m)=>{let d="";return m>0&&m<u.length-1?d=N6(u[m-1],b,u[m+1],s):d=`${m===0?"M":"L"}${b.x} ${b.y}`,x+=d,x},""),p,h,g,y]}function ey(e){return e&&!!(e.internals.handleBounds||e.handles?.length)&&!!(e.measured.width||e.width||e.initialWidth)}function j6(e){const{sourceNode:t,targetNode:n}=e;if(!ey(t)||!ey(n))return null;const r=t.internals.handleBounds||ty(t.handles),i=n.internals.handleBounds||ty(n.handles),o=ny(r?.source??[],e.sourceHandle),s=ny(e.connectionMode===$i.Strict?i?.target??[]:(i?.target??[]).concat(i?.source??[]),e.targetHandle);if(!o||!s)return e.onError?.("008",Qn.error008(o?"target":"source",{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle})),null;const a=o?.position||ve.Bottom,l=s?.position||ve.Top,c=ni(t,o,a),f=ni(n,s,l);return{sourceX:c.x,sourceY:c.y,targetX:f.x,targetY:f.y,sourcePosition:a,targetPosition:l}}function ty(e){if(!e)return null;const t=[],n=[];for(const r of e)r.width=r.width??1,r.height=r.height??1,r.type==="source"?t.push(r):r.type==="target"&&n.push(r);return{source:t,target:n}}function ni(e,t,n=ve.Left,r=!1){const i=(t?.x??0)+e.internals.positionAbsolute.x,o=(t?.y??0)+e.internals.positionAbsolute.y,{width:s,height:a}=t??dr(e);
vendor: 14,340 bytes, line 19
19if(r)return{x:i+s/2,y:o+a/2};switch(t?.position??n){case ve.Top:return{x:i+s/2,y:o};case ve.Right:return{x:i+s,y:o+a/2};case ve.Bottom:return{x:i+s/2,y:o+a};case ve.Left:return{x:i,y:o+a/2}}}function ny(e,t){return e&&(t?e.find(n=>n.id===t):e[0])||null}function md(e,t){return e?typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(r=>`${r}=${e[r]}`).join("&")}`:""}function $6(e,{id:t,defaultColor:n,defaultMarkerStart:r,defaultMarkerEnd:i}){const o=new Set;return e.reduce((s,a)=>([a.markerStart||r,a.markerEnd||i].forEach(l=>{if(l&&typeof l=="object"){const c=md(l,t);o.has(c)||(s.push({id:c,color:l.color||n,...l}),o.add(c))}}),s),[]).sort((s,a)=>s.id.localeCompare(a.id))}const Sx=1e3,F6=10,_p={nodeOrigin:[0,0],nodeExtent:Ko,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},B6={..._p,checkEquality:!0};function Sp(e,t){const n={...e};for(const r in t)t[r]!==void 0&&(n[r]=t[r]);return n}function V6(e,t,n){const r=Sp(_p,n);for(const i of e.values())if(i.parentId)Pp(i,e,t,r);else{const o=ys(i,r.nodeOrigin),s=Vi(i.extent)?i.extent:r.nodeExtent,a=ti(o,s,dr(i));i.internals.positionAbsolute=a}}function H6(e,t){if(!e.handles)return e.measured?t?.internals.handleBounds:void 0;const n=[],r=[];for(const i of e.handles){const o={id:i.id,width:i.width??1,height:i.height??1,nodeId:e.id,x:i.x,y:i.y,position:i.position,type:i.type};i.type==="source"?n.push(o):i.type==="target"&&r.push(o)}return{source:n,target:r}}function Op(e){return e==="manual"}function gd(e,t,n,r={}){const i=Sp(B6,r),o={i:0},s=new Map(t),a=i?.elevateNodesOnSelect&&!Op(i.zIndexMode)?Sx:0;let l=e.length>0;t.clear(),n.clear();for(const c of e){let f=s.get(c.id);if(i.checkEquality&&c===f?.internals.userNode)t.set(c.id,f);else{const u=ys(c,i.nodeOrigin),p=Vi(c.extent)?c.extent:i.nodeExtent,h=ti(u,p,dr(c));f={...i.defaults,...c,measured:{width:c.measured?.width,height:c.measured?.height},internals:{positionAbsolute:h,handleBounds:H6(c,f),z:Ox(c,a,i.zIndexMode),userNode:c}},t.set(c.id,f)}(f.measured===void 0||f.measured.width===void 0||f.measured.height===void 0)&&!f.hidden&&(l=!1),c.parentId&&Pp(f,t,n,r,o)}return l}function z6(e,t){if(!e.parentId)return;const n=t.get(e.parentId);n?n.set(e.id,e):t.set(e.parentId,new Map([[e.id,e]]))}function Pp(e,t,n,r,i){const{elevateNodesOnSelect:o,nodeOrigin:s,nodeExtent:a,zIndexMode:l}=Sp(_p,r),c=e.parentId,f=t.get(c);if(!f){console.warn(`Parent node ${c} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}z6(e,n),i&&!f.parentId&&f.internals.rootParentIndex===void 0&&l==="auto"&&(f.internals.rootParentIndex=++i.i,f.internals.z=f.internals.z+i.i*F6),i&&f.internals.rootParentIndex!==void 0&&(i.i=f.internals.rootParentIndex);const u=o&&!Op(l)?Sx:0,{x:p,y:h,z:g}=U6(e,f,s,a,u,l),{positionAbsolute:y}=e.internals,w=p!==y.x||h!==y.y;(w||g!==e.internals.z)&&t.set(e.id,{...e,internals:{...e.internals,positionAbsolute:w?{x:p,y:h}:y,z:g}})}function Ox(e,t,n){const r=Tn(e.zIndex)?e.zIndex:0;return Op(n)?r:r+(e.selected?t:0)}function U6(e,t,n,r,i,o){const{x:s,y:a}=t.internals.positionAbsolute,l=dr(e),c=ys(e,n),f=Vi(e.extent)?ti(c,e.extent,l):c;let u=ti({x:s+f.x,y:a+f.y},r,l);e.extent==="parent"&&(u=dx(u,l,t));const p=Ox(e,i,o),h=t.internals.z??0;return{x:u.x,y:u.y,z:h>=p?h+1:p}}function Cp(e,t,n,r=[0,0]){const i=[],o=new Map;for(const s of e){const a=t.get(s.parentId);if(!a)continue;const l=o.get(s.parentId)?.expandedRect??Bi(a),c=hx(l,s.rect);o.set(s.parentId,{expandedRect:c,parent:a})}return o.size>0&&o.forEach(({expandedRect:s,parent:a},l)=>{const c=a.internals.positionAbsolute,f=dr(a),u=a.origin??r,p=s.x<c.x?Math.round(Math.abs(c.x-s.x)):0,h=s.y<c.y?Math.round(Math.abs(c.y-s.y)):0,g=Math.max(f.width,Math.round(s.width)),y=Math.max(f.height,Math.round(s.height)),w=(g-f.width)*u[0],x=(y-f.height)*u[1];(p>0||h>0||w||x)&&(i.push({id:l,type:"position",position:{x:a.position.x-p+w,y:a.position.y-h+x}}),n.get(l)?.forEach(b=>{e.some(m=>m.id===b.id)||i.push({id:b.id,type:"position",position:{x:b.position.x+p,y:b.position.y+h}})})),(f.width<s.width||f.height<s.height||p||h)&&i.push({id:l,type:"dimensions",setAttributes:!0,dimensions:{width:g+(p?u[0]*p-w:0),height:y+(h?u[1]*h-x:0)}})}),i}function W6(e,t,n,r,i,o,s){const a=r?.querySelector(".xyflow__viewport");let l=!1;if(!a)return{changes:[],updatedInternals:l};const c=[],f=window.getComputedStyle(a),{m22:u}=new window.DOMMatrixReadOnly(f.transform),p=[];for(const h of e.values()){const g=t.get(h.id);if(!g)continue;if(g.hidden){t.set(g.id,{...g,internals:{...g.internals,handleBounds:void 0}}),l=!0;continue}const y=Ep(h.nodeElement),w=g.measured.width!==y.width||g.measured.height!==y.height;if(!!(y.width&&y.height&&(w||!g.internals.handleBounds||h.force))){const b=h.nodeElement.getBoundingClientRect(),m=Vi(g.extent)?g.extent:o;let{positionAbsolute:d}=g.internals;g.parentId&&g.extent==="parent"?d=dx(d,y,t.get(g.parentId)):m&&(d=ti(d,m,y));const v={...g,measured:y,internals:{...g.internals,positionAbsolute:d,handleBounds:{source:Gv("source",h.nodeElement,b,u,g.id),target:Gv("target",h.nodeElement,b,u,g.id)}}};t.set(g.id,v),g.parentId&&Pp(v,t,n,{nodeOrigin:i,zIndexMode:s}),l=!0,w&&(c.push({id:g.id,type:"dimensions",dimensions:y}),g.expandParent&&g.parentId&&p.push({id:g.id,parentId:g.parentId,rect:Bi(v,i)}))}}if(p.length>0){const h=Cp(p,t,n,i);c.push(...h)}return{changes:c,updatedInternals:l}}async function q6({delta:e,panZoom:t,transform:n,translateExtent:r,width:i,height:o}){if(!t||!e.x&&!e.y)return Promise.resolve(!1);const s=await t.setViewportConstrained({x:n[0]+e.x,y:n[1]+e.y,zoom:n[2]},[[0,0],[i,o]],r),a=!!s&&(s.x!==n[0]||s.y!==n[1]||s.k!==n[2]);return Promise.resolve(a)}function ry(e,t,n,r,i,o){let s=i;const a=r.get(s)||new Map;r.set(s,a.set(n,t)),s=`${i}-${e}`;const l=r.get(s)||new Map;if(r.set(s,l.set(n,t)),o){s=`${i}-${e}-${o}`;const c=r.get(s)||new Map;r.set(s,c.set(n,t))}}function Px(e,t,n){e.clear(),t.clear();for(const r of n){const{source:i,target:o,sourceHandle:s=null,targetHandle:a=null}=r,l={edgeId:r.id,source:i,target:o,sourceHandle:s,targetHandle:a},c=`${i}-${s}--${o}-${a}`,f=`${o}-${a}--${i}-${s}`;ry("source",l,f,e,i,s),ry("target",l,c,e,o,a),t.set(r.id,r)}}function Cx(e,t){if(!e.parentId)return!1;const n=t.get(e.parentId);return n?n.selected?!0:Cx(n,t):!1}function iy(e,t,n){let r=e;do{if(r?.matches?.(t))return!0;if(r===n)return!1;r=r?.parentElement}while(r);return!1}function Y6(e,t,n,r){const i=new Map;for(const[o,s]of e)if((s.selected||s.id===r)&&(!s.parentId||!Cx(s,e))&&(s.draggable||t&&typeof s.draggable>"u")){const a=e.get(o);a&&i.set(o,{id:o,position:a.position||{x:0,y:0},distance:{x:n.x-a.internals.positionAbsolute.x,y:n.y-a.internals.positionAbsolute.y},extent:a.extent,parentId:a.parentId,origin:a.origin,expandParent:a.expandParent,internals:{positionAbsolute:a.internals.positionAbsolute||{x:0,y:0}},measured:{width:a.measured.width??0,height:a.measured.height??0}})}return i}function Bu({nodeId:e,dragItems:t,nodeLookup:n,dragging:r=!0}){const i=[];for(const[s,a]of t){const l=n.get(s)?.internals.userNode;l&&i.push({...l,position:a.position,dragging:r})}if(!e)return[i[0],i];const o=n.get(e)?.internals.userNode;return[o?{...o,position:t.get(e)?.position||o.position,dragging:r}:i[0],i]}function K6({dragItems:e,snapGrid:t,x:n,y:r}){const i=e.values().next().value;if(!i)return null;const o={x:n-i.distance.x,y:r-i.distance.y},s=ws(o,t);return{x:s.x-o.x,y:s.y-o.y}}function X6({onNodeMouseDown:e,getStoreItems:t,onDragStart:n,onDrag:r,onDragStop:i}){let o={x:null,y:null},s=0,a=new Map,l=!1,c={x:0,y:0},f=null,u=!1,p=null,h=!1,g=!1,y=null;function w({noDragClassName:b,handleSelector:m,domNode:d,isSelectable:v,nodeId:_,nodeClickDistance:O=0}){p=on(d);function C({x:M,y:I}){const{nodeLookup:P,nodeExtent:S,snapGrid:R,snapToGrid:D,nodeOrigin:L,onNodeDrag:N,onSelectionDrag:$,onError:B,updateNodePositions:V}=t();o={x:M,y:I};let W=!1;const F=a.size>1,j=F&&S?pd(bs(a)):null,H=F&&D?K6({dragItems:a,snapGrid:R,x:M,y:I}):null;for(const[z,U]of a){if(!P.has(z))continue;let Y={x:M-U.distance.x,y:I-U.distance.y};D&&(Y=H?{x:Math.round(Y.x+H.x),y:Math.round(Y.y+H.y)}:ws(Y,R));let X=null;if(F&&S&&!U.extent&&j){const{positionAbsolute:re}=U.internals,ue=re.x-j.x+S[0][0],ce=re.x+U.measured.width-j.x2+S[1][0],xe=re.y-j.y+S[0][1],Oe=re.y+U.measured.height-j.y2+S[1][1];X=[[ue,xe],[ce,Oe]]}const{position:Q,positionAbsolute:J}=fx({nodeId:z,nextPosition:Y,nodeLookup:P,nodeExtent:X||S,nodeOrigin:L,onError:B});W=W||U.position.x!==Q.x||U.position.y!==Q.y,U.position=Q,U.internals.positionAbsolute=J}if(g=g||W,!!W&&(V(a,!0),y&&(r||N||!_&&$))){const[z,U]=Bu({nodeId:_,dragItems:a,nodeLookup:P});r?.(y,a,z,U),N?.(y,z,U),_||$?.(y,U)}}async function k(){if(!f)return;const{transform:M,panBy:I,autoPanSpeed:P,autoPanOnNodeDrag:S}=t();if(!S){l=!1,cancelAnimationFrame(s);return}const[R,D]=px(c,f,P);(R!==0||D!==0)&&(o.x=(o.x??0)-R/M[2],o.y=(o.y??0)-D/M[2],await I({x:R,y:D})&&C(o)),s=requestAnimationFrame(k)}function A(M){const{nodeLookup:I,multiSelectionActive:P,nodesDraggable:S,transform:R,snapGrid:D,snapToGrid:L,selectNodesOnDrag:N,onNodeDragStart:$,onSelectionDragStart:B,unselectNodesAndEdges:V}=t();u=!0,(!N||!v)&&!P&&_&&(I.get(_)?.selected||V()),v&&N&&_&&e?.(_);const W=ko(M.sourceEvent,{transform:R,snapGrid:D,snapToGrid:L,containerBounds:f});if(o=W,a=Y6(I,S,W,_),a.size>0&&(n||$||!_&&B)){const[F,j]=Bu({nodeId:_,dragItems:a,nodeLookup:I});n?.(M.sourceEvent,a,F,j),$?.(M.sourceEvent,F,j),_||B?.(M.sourceEvent,j)}}const T=W1().clickDistance(O).on("start",M=>{const{domNode:I,nodeDragThreshold:P,transform:S,snapGrid:R,snapToGrid:D}=t();f=I?.getBoundingClientRect()||null,h=!1,g=!1,y=M.sourceEvent,P===0&&A(M),o=ko(M.sourceEvent,{transform:S,snapGrid:R,snapToGrid:D,containerBounds:f}),c=An(M.sourceEvent,f)}).on("drag",M=>{const{autoPanOnNodeDrag:I,transform:P,snapGrid:S,snapToGrid:R,nodeDragThreshold:D,nodeLookup:L}=t(),N=ko(M.sourceEvent,{transform:P,snapGrid:S,snapToGrid:R,containerBounds:f});if(y=M.sourceEvent,(M.sourceEvent.type==="touchmove"&&M.sourceEvent.touches.length>1||_&&!L.has(_))&&(h=!0),!h){if(!l&&I&&u&&(l=!0,k()),!u){const $=An(M.sourceEvent,f),B=$.x-c.x,V=$.y-c.y;Math.sqrt(B*B+V*V)>D&&A(M)}(o.x!==N.xSnapped||o.y!==N.ySnapped)&&a&&u&&(c=An(M.sourceEvent,f),C(N))}}).on("end",M=>{if(!(!u||h)&&(l=!1,u=!1,cancelAnimationFrame(s),a.size>0)){const{nodeLookup:I,updateNodePositions:P,onNodeDragStop:S,onSelectionDragStop:R}=t();if(g&&(P(a,!1),g=!1),i||S||!_&&R){const[D,L]=Bu({nodeId:_,dragItems:a,nodeLookup:I,dragging:!1});i?.(M.sourceEvent,a,D,L),S?.(M.sourceEvent,D,L),_||R?.(M.sourceEvent,L)}}}).filter(M=>{const I=M.target;return!M.button&&(!b||!iy(I,`.${b}`,d))&&(!m||iy(I,m,d))});p.call(T)}function x(){p?.on(".drag",null)}return{update:w,destroy:x}}function G6(e,t,n){const r=[],i={x:e.x-n,y:e.y-n,width:n*2,height:n*2};for(const o of t.values())Go(i,Bi(o))>0&&r.push(o);return r}const Z6=250;function Q6(e,t,n,r){let i=[],o=1/0;const s=G6(e,n,t+Z6);for(const a of s){const l=[...a.internals.handleBounds?.source??[],...a.internals.handleBounds?.target??[]];for(const c of l){if(r.nodeId===c.nodeId&&r.type===c.type&&r.id===c.id)continue;const{x:f,y:u}=ni(a,c,c.position,!0),p=Math.sqrt(Math.pow(f-e.x,2)+Math.pow(u-e.y,2));p>t||(p<o?(i=[{...c,x:f,y:u}],o=p):p===o&&i.push({...c,x:f,y:u}))}}if(!i.length)return null;if(i.length>1){const a=r.type==="source"?"target":"source";return i.find(l=>l.type===a)??i[0]}return i[0]}function Rx(e,t,n,r,i,o=!1){const s=r.get(e);if(!s)return null;const a=i==="strict"?s.internals.handleBounds?.[t]:[...s.internals.handleBounds?.source??[],...s.internals.handleBounds?.target??[]],l=(n?a?.find(c=>c.id===n):a?.[0])??null;return l&&o?{...l,...ni(s,l,l.position,!0)}:l}function kx(e,t){return e||(t?.classList.contains("target")?"target":t?.classList.contains("source")?"source":null)}function J6(e,t){let n=null;return t?n=!0:e&&!t&&(n=!1),n}const Tx=()=>!0;function eF(e,{connectionMode:t,connectionRadius:n,handleId:r,nodeId:i,edgeUpdaterType:o,isTarget:s,domNode:a,nodeLookup:l,lib:c,autoPanOnConnect:f,flowId:u,panBy:p,cancelConnection:h,onConnectStart:g,onConnect:y,onConnectEnd:w,isValidConnection:x=Tx,onReconnectEnd:b,updateConnection:m,getTransform:d,getFromHandle:v,autoPanSpeed:_,dragThreshold:O=1,handleDomNode:C}){const k=vx(e.target);let A=0,T;const{x:M,y:I}=An(e),P=kx(o,C),S=a?.getBoundingClientRect();let R=!1;if(!S||!P)return;const D=Rx(i,P,r,l,t);if(!D)return;let L=An(e,S),N=!1,$=null,B=!1,V=null;function W(){if(!f||!S)return;const[Q,J]=px(L,S,_);p({x:Q,y:J}),A=requestAnimationFrame(W)}const F={...D,nodeId:i,type:P,position:D.position},j=l.get(i);let z={inProgress:!0,isValid:null,from:ni(j,F,ve.Left,!0),fromHandle:F,fromPosition:F.position,fromNode:j,to:L,toHandle:null,toPosition:qv[F.position],toNode:null,pointer:L};function U(){R=!0,m(z),g?.(e,{nodeId:i,handleId:r,handleType:P})}O===0&&U();function Y(Q){if(!R){const{x:Oe,y:Ie}=An(Q),Be=Oe-M,De=Ie-I;if(!(Be*Be+De*De>O*O))return;U()}if(!v()||!F){X(Q);return}const J=d();L=An(Q,S),T=Q6(xs(L,J,!1,[1,1]),n,l,F),N||(W(),N=!0);const re=Ax(Q,{handle:T,connectionMode:t,fromNodeId:i,fromHandleId:r,fromType:s?"target":"source",isValidConnection:x,doc:k,lib:c,flowId:u,nodeLookup:l});V=re.handleDomNode,$=re.connection,B=J6(!!T,re.isValid);const ue=l.get(i),ce=ue?ni(ue,F,ve.Left,!0):z.from,xe={...z,from:ce,isValid:B,to:re.toHandle&&B?Sl({x:re.toHandle.x,y:re.toHandle.y},J):L,toHandle:re.toHandle,toPosition:B&&re.toHandle?re.toHandle.position:qv[F.position],toNode:re.toHandle?l.get(re.toHandle.nodeId):null,pointer:L};m(xe),z=xe}function X(Q){if(!("touches"in Q&&Q.touches.length>0)){if(R){(T||V)&&$&&B&&y?.($);const{inProgress:J,...re}=z,ue={...re,toPosition:z.toHandle?z.toPosition:null};w?.(Q,ue),o&&b?.(Q,ue)}h(),cancelAnimationFrame(A),N=!1,B=!1,$=null,V=null,k.removeEventListener("mousemove",Y),k.removeEventListener("mouseup",X),k.removeEventListener("touchmove",Y),k.removeEventListener("touchend",X)}}k.addEventListener("mousemove",Y),k.addEventListener("mouseup",X),k.addEventListener("touchmove",Y),k.addEventListener("touchend",X)}function Ax(e,{handle:t,connectionMode:n,fromNodeId:r,fromHandleId:i,fromType:o,doc:s,lib:a,flowId:l,isValidConnection:c=Tx,nodeLookup:f}){const u=o==="target",p=t?s.querySelector(`.${a}-flow__handle[data-id="${l}-${t?.nodeId}-${t?.id}-${t?.type}"]`):null,{x:h,y:g}=An(e),y=s.elementFromPoint(h,g),w=y?.classList.contains(`${a}
19-flow__handle`)?y:p,x={handleDomNode:w,isValid:!1,connection:null,toHandle:null};if(w){const b=kx(void 0,w),m=w.getAttribute("data-nodeid"),d=w.getAttribute("data-handleid"),v=w.classList.contains("connectable"),_=w.classList.contains("connectableend");if(!m||!b)return x;const O={source:u?m:r,sourceHandle:u?d:i,target:u?r:m,targetHandle:u?i:d};x.connection=O;const k=v&&_&&(n===$i.Strict?u&&b==="source"||!u&&b==="target":m!==r||d!==i);x.isValid=k&&c(O),x.toHandle=Rx(m,b,d,f,n,!0)}return x}const vd={onPointerDown:eF,isValid:Ax};function tF({domNode:e,panZoom:t,getTransform:n,getViewScale:r}){const i=on(e);function o({translateExtent:a,width:l,height:c,zoomStep:f=1,pannable:u=!0,zoomable:p=!0,inversePan:h=!1}){const g=m=>{if(m.sourceEvent.type!=="wheel"||!t)return;const d=n(),v=m.sourceEvent.ctrlKey&&Zo()?10:1,_=-m.sourceEvent.deltaY*(m.sourceEvent.deltaMode===1?.05:m.sourceEvent.deltaMode?1:.002)*f,O=d[2]*Math.pow(2,_*v);t.scaleTo(O)};let y=[0,0];const w=m=>{(m.sourceEvent.type==="mousedown"||m.sourceEvent.type==="touchstart")&&(y=[m.sourceEvent.clientX??m.sourceEvent.touches[0].clientX,m.sourceEvent.clientY??m.sourceEvent.touches[0].clientY])},x=m=>{const d=n();if(m.sourceEvent.type!=="mousemove"&&m.sourceEvent.type!=="touchmove"||!t)return;const v=[m.sourceEvent.clientX??m.sourceEvent.touches[0].clientX,m.sourceEvent.clientY??m.sourceEvent.touches[0].clientY],_=[v[0]-y[0],v[1]-y[1]];y=v;const O=r()*Math.max(d[2],Math.log(d[2]))*(h?-1:1),C={x:d[0]-_[0]*O,y:d[1]-_[1]*O},k=[[0,0],[l,c]];t.setViewportConstrained({x:C.x,y:C.y,zoom:d[2]},k,a)},b=ox().on("start",w).on("zoom",u?x:null).on("zoom.wheel",p?g:null);i.call(b,{})}function s(){i.on("zoom",null)}return{update:o,destroy:s,pointer:Pn}}const cc=e=>({x:e.x,y:e.y,zoom:e.k}),Vu=({x:e,y:t,zoom:n})=>sc.translate(e,t).scale(n),gi=(e,t)=>e.target.closest(`.${t}`),Lx=(e,t)=>t===2&&Array.isArray(e)&&e.includes(2),nF=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,Hu=(e,t=0,n=nF,r=()=>{})=>{const i=typeof t=="number"&&t>0;return i||r(),i?e.transition().duration(t).ease(n).on("end",r):e},Mx=e=>{const t=e.ctrlKey&&Zo()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*t};function rF({zoomPanValues:e,noWheelClassName:t,d3Selection:n,d3Zoom:r,panOnScrollMode:i,panOnScrollSpeed:o,zoomOnPinch:s,onPanZoomStart:a,onPanZoom:l,onPanZoomEnd:c}){return f=>{if(gi(f,t))return f.ctrlKey&&f.preventDefault(),!1;f.preventDefault(),f.stopImmediatePropagation();const u=n.property("__zoom").k||1;if(f.ctrlKey&&s){const w=Pn(f),x=Mx(f),b=u*Math.pow(2,x);r.scaleTo(n,b,w,f);return}const p=f.deltaMode===1?20:1;let h=i===Hr.Vertical?0:f.deltaX*p,g=i===Hr.Horizontal?0:f.deltaY*p;!Zo()&&f.shiftKey&&i!==Hr.Vertical&&(h=f.deltaY*p,g=0),r.translateBy(n,-(h/u)*o,-(g/u)*o,{internal:!0});const y=cc(n.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling?(l?.(f,y),e.panScrollTimeout=setTimeout(()=>{c?.(f,y),e.isPanScrolling=!1},150)):(e.isPanScrolling=!0,a?.(f,y))}}function iF({noWheelClassName:e,preventScrolling:t,d3ZoomHandler:n}){return function(r,i){const o=r.type==="wheel",s=!t&&o&&!r.ctrlKey,a=gi(r,e);if(r.ctrlKey&&o&&a&&r.preventDefault(),s||a)return null;r.preventDefault(),n.call(this,r,i)}}function oF({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:n}){return r=>{if(r.sourceEvent?.internal)return;const i=cc(r.transform);e.mouseButton=r.sourceEvent?.button||0,e.isZoomingOrPanning=!0,e.prevViewport=i,r.sourceEvent?.type==="mousedown"&&t(!0),n&&n?.(r.sourceEvent,i)}}function sF({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:n,onTransformChange:r,onPanZoom:i}){return o=>{e.usedRightMouseButton=!!(n&&Lx(t,e.mouseButton??0)),o.sourceEvent?.sync||r([o.transform.x,o.transform.y,o.transform.k]),i&&!o.sourceEvent?.internal&&i?.(o.sourceEvent,cc(o.transform))}}function aF({zoomPanValues:e,panOnDrag:t,panOnScroll:n,onDraggingChange:r,onPanZoomEnd:i,onPaneContextMenu:o}){return s=>{if(!s.sourceEvent?.internal&&(e.isZoomingOrPanning=!1,o&&Lx(t,e.mouseButton??0)&&!e.usedRightMouseButton&&s.sourceEvent&&o(s.sourceEvent),e.usedRightMouseButton=!1,r(!1),i)){const a=cc(s.transform);e.prevViewport=a,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{i?.(s.sourceEvent,a)},n?150:0)}}}function lF({zoomActivationKeyPressed:e,zoomOnScroll:t,zoomOnPinch:n,panOnDrag:r,panOnScroll:i,zoomOnDoubleClick:o,userSelectionActive:s,noWheelClassName:a,noPanClassName:l,lib:c,connectionInProgress:f}){return u=>{const p=e||t,h=n&&u.ctrlKey,g=u.type==="wheel";if(u.button===1&&u.type==="mousedown"&&(gi(u,`${c}-flow__node`)||gi(u,`${c}-flow__edge`)))return!0;
19if(!r&&!p&&!i&&!o&&!n||s||f&&!g||gi(u,a)&&g||gi(u,l)&&(!g||i&&g&&!e)||!n&&u.ctrlKey&&g)return!1;if(!n&&u.type==="touchstart"&&u.touches?.length>1)return u.preventDefault(),!1;if(!p&&!i&&!h&&g||!r&&(u.type==="mousedown"||u.type==="touchstart")||Array.isArray(r)&&!r.includes(u.button)&&u.type==="mousedown")return!1;const y=Array.isArray(r)&&r.includes(u.button)||!u.button||u.button<=1;return(!u.ctrlKey||g)&&y}}function cF({domNode:e,minZoom:t,maxZoom:n,translateExtent:r,viewport:i,onPanZoom:o,onPanZoomStart:s,onPanZoomEnd:a,onDraggingChange:l}){const c={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},f=e.getBoundingClientRect(),u=ox().scaleExtent([t,n]).translateExtent(r),p=on(e).call(u);b({x:i.x,y:i.y,zoom:Fi(i.zoom,t,n)},[[0,0],[f.width,f.height]],r);const h=p.on("wheel.zoom"),g=p.on("dblclick.zoom");u.wheelDelta(Mx);function y(T,M){return p?new Promise(I=>{u?.interpolate(M?.interpolate==="linear"?Ro:Ra).transform(Hu(p,M?.duration,M?.ease,()=>I(!0)),T)}):Promise.resolve(!1)}function w({noWheelClassName:T,noPanClassName:M,onPaneContextMenu:I,userSelectionActive:P,panOnScroll:S,panOnDrag:R,panOnScrollMode:D,panOnScrollSpeed:L,preventScrolling:N,zoomOnPinch:$,zoomOnScroll:B,zoomOnDoubleClick:V,zoomActivationKeyPressed:W,lib:F,onTransformChange:j,connectionInProgress:H,paneClickDistance:z,selectionOnDrag:U}){P&&!c.isZoomingOrPanning&&x();const Y=S&&!W&&!P;u.clickDistance(U?1/0:!Tn(z)||z<0?0:z);const X=Y?rF({zoomPanValues:c,noWheelClassName:T,d3Selection:p,d3Zoom:u,panOnScrollMode:D,panOnScrollSpeed:L,zoomOnPinch:$,onPanZoomStart:s,onPanZoom:o,onPanZoomEnd:a}):iF({noWheelClassName:T,preventScrolling:N,d3ZoomHandler:h});if(p.on("wheel.zoom",X,{passive:!1}),!P){const J=oF({zoomPanValues:c,onDraggingChange:l,onPanZoomStart:s});u.on("start",J);const re=sF({zoomPanValues:c,panOnDrag:R,onPaneContextMenu:!!I,onPanZoom:o,onTransformChange:j});u.on("zoom",re);const ue=aF({zoomPanValues:c,panOnDrag:R,panOnScroll:S,onPaneContextMenu:I,onPanZoomEnd:a,onDraggingChange:l});u.on("end",ue)}const Q=lF({zoomActivationKeyPressed:W,panOnDrag:R,zoomOnScroll:B,panOnScroll:S,zoomOnDoubleClick:V,zoomOnPinch:$,userSelectionActive:P,noPanClassName:M,noWheelClassName:T,lib:F,connectionInProgress:H});u.filter(Q),V?p.on("dblclick.zoom",g):p.on("dblclick.zoom",null)}function x(){u.on("zoom",null)}async function b(T,M,I){const P=Vu(T),S=u?.constrain()(P,M,I);return S&&await y(S),new Promise(R=>R(S))}async function m(T,M){const I=Vu(T);return await y(I,M),new Promise(P=>P(I))}function d(T){if(p){const M=Vu(T),I=p.property("__zoom");(I.k!==T.zoom||I.x!==T.x||I.y!==T.y)&&u?.transform(p,M,null,{sync:!0})}}function v(){const T=p?ix(p.node()):{x:0,y:0,k:1};return{x:T.x,y:T.y,zoom:T.k}}function _(T,M){return p?new Promise(I=>{u?.interpolate(M?.interpolate==="linear"?Ro:Ra).scaleTo(Hu(p,M?.duration,M?.ease,()=>I(!0)),T)}):Promise.resolve(!1)}function O(T,M){return p?new Promise(I=>{u?.interpolate(M?.interpolate==="linear"?Ro:Ra).scaleBy(Hu(p,M?.duration,M?.ease,()=>I(!0)),T)}):Promise.resolve(!1)}function C(T){u?.scaleExtent(T)}function k(T){u?.translateExtent(T)}function A(T){const M=!Tn(T)||T<0?0:T;u?.clickDistance(M)}return{update:w,destroy:x,setViewport:m,setViewportConstrained:b,getViewport:v,scaleTo:_,scaleBy:O,setScaleExtent:C,setTranslateExtent:k,syncViewport:d,setClickDistance:A}}var Hi;(function(e){e.Line="line",e.Handle="handle"})(Hi||(Hi={}));function uF({width:e,prevWidth:t,height:n,prevHeight:r,affectsX:i,affectsY:o}){const s=e-t,a=n-r,l=[s>0?1:s<0?-1:0,a>0?1:a<0?-1:0];return s&&i&&(l[0]=l[0]*-1),a&&o&&(l[1]=l[1]*-1),l}function oy(e){const t=e.includes("right")||e.includes("left"),n=e.includes("bottom")||e.includes("top"),r=e.includes("left"),i=e.includes("top");return{isHorizontal:t,isVertical:n,affectsX:r,affectsY:i}}function pr(e,t){return Math.max(0,t-e)}function hr(e,t){return Math.max(0,e-t)}function ia(e,t,n){return Math.max(0,t-e,e-n)}function sy(e,t){return e?!t:t}function fF(e,t,n,r,i,o,s,a){let{affectsX:l,affectsY:c}=t;const{isHorizontal:f,isVertical:u}=t,p=f&&u,{xSnapped:h,ySnapped:g}=n,{minWidth:y,maxWidth:w,minHeight:x,maxHeight:b}=r,{x:m,y:d,width:v,height:_,aspectRatio:O}=e;let C=Math.floor(f?h-e.pointerX:0),k=Math.floor(u?g-e.pointerY:0);const A=v+(l?-C:C),T=_+(c?-k:k),M=-o[0]*v,I=-o[1]*_;let P=ia(A,y,w),S=ia(T,x,b);
19if(s){let L=0,N=0;l&&C<0?L=pr(m+C+M,s[0][0]):!l&&C>0&&(L=hr(m+A+M,s[1][0])),c&&k<0?N=pr(d+k+I,s[0][1]):!c&&k>0&&(N=hr(d+T+I,s[1][1])),P=Math.max(P,L),S=Math.max(S,N)}if(a){let L=0,N=0;l&&C>0?L=hr(m+C,a[0][0]):!l&&C<0&&(L=pr(m+A,a[1][0])),c&&k>0?N=hr(d+k,a[0][1]):!c&&k<0&&(N=pr(d+T,a[1][1])),P=Math.max(P,L),S=Math.max(S,N)}if(i){if(f){const L=ia(A/O,x,b)*O;if(P=Math.max(P,L),s){let N=0;!l&&!c||l&&!c&&p?N=hr(d+I+A/O,s[1][1])*O:N=pr(d+I+(l?C:-C)/O,s[0][1])*O,P=Math.max(P,N)}if(a){let N=0;!l&&!c||l&&!c&&p?N=pr(d+A/O,a[1][1])*O:N=hr(d+(l?C:-C)/O,a[0][1])*O,P=Math.max(P,N)}}if(u){const L=ia(T*O,y,w)/O;if(S=Math.max(S,L),s){let N=0;!l&&!c||c&&!l&&p?N=hr(m+T*O+M,s[1][0])/O:N=pr(m+(c?k:-k)*O+M,s[0][0])/O,S=Math.max(S,N)}if(a){let N=0;!l&&!c||c&&!l&&p?N=pr(m+T*O,a[1][0])/O:N=hr(m+(c?k:-k)*O,a[0][0])/O,S=Math.max(S,N)}}}k=k+(k<0?S:-S),C=C+(C<0?P:-P),i&&(p?A>T*O?k=(sy(l,c)?-C:C)/O:C=(sy(l,c)?-k:k)*O:f?(k=C/O,c=l):(C=k*O,l=c));const R=l?m+C:m,D=c?d+k:d;return{width:v+(l?-C:C),height:_+(c?-k:k),x:o[0]*C*(l?-1:1)+R,y:o[1]*k*(c?-1:1)+D}}const Ix={width:0,height:0,x:0,y:0},dF={...Ix,pointerX:0,pointerY:0,aspectRatio:1};function pF(e){return[[0,0],[e.measured.width,e.measured.height]]}function hF(e,t,n){const r=t.position.x+e.position.x,i=t.position.y+e.position.y,o=e.measured.width??0,s=e.measured.height??0,a=n[0]*o,l=n[1]*s;return[[r-a,i-l],[r+o-a,i+s-l]]}function mF({domNode:e,nodeId:t,getStoreItems:n,onChange:r,onEnd:i}){const o=on(e);let s={controlDirection:oy("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function a({controlPosition:c,boundaries:f,keepAspectRatio:u,resizeDirection:p,onResizeStart:h,onResize:g,onResizeEnd:y,shouldResize:w}){let x={...Ix},b={...dF};s={boundaries:f,resizeDirection:p,keepAspectRatio:u,controlDirection:oy(c)};let m,d=null,v=[],_,O,C,k=!1;const A=W1().on("start",T=>{const{nodeLookup:M,transform:I,snapGrid:P,snapToGrid:S,nodeOrigin:R,paneDomNode:D}=n();if(m=M.get(t),!m)return;d=D?.getBoundingClientRect()??null;const{xSnapped:L,ySnapped:N}=ko(T.sourceEvent,{transform:I,snapGrid:P,snapToGrid:S,containerBounds:d});x={width:m.measured.width??0,height:m.measured.height??0,x:m.position.x??0,y:m.position.y??0},b={...x,pointerX:L,pointerY:N,aspectRatio:x.width/x.height},_=void 0,m.parentId&&(m.extent==="parent"||m.expandParent)&&(_=M.get(m.parentId),O=_&&m.extent==="parent"?pF(_):void 0),v=[],C=void 0;for(const[$,B]of M)if(B.parentId===t&&(v.push({id:$,position:{...B.position},extent:B.extent}),B.extent==="parent"||B.expandParent)){const V=hF(B,m,B.origin??R);C?C=[[Math.min(V[0][0],C[0][0]),Math.min(V[0][1],C[0][1])],[Math.max(V[1][0],C[1][0]),Math.max(V[1][1],C[1][1])]]:C=V}h?.(T,{...x})}).on("drag",T=>{const{transform:M,snapGrid:I,snapToGrid:P,nodeOrigin:S}=n(),R=ko(T.sourceEvent,{transform:M,snapGrid:I,snapToGrid:P,containerBounds:d}),D=[];if(!m)return;const{x:L,y:N,width:$,height:B}=x,V={},W=m.origin??S,{width:F,height:j,x:H,y:z}=fF(b,s.controlDirection,R,s.boundaries,s.keepAspectRatio,W,O,C),U=F!==$,Y=j!==B,X=H!==L&&U,Q=z!==N&&Y;if(!X&&!Q&&!U&&!Y)return;if((X||Q||W[0]===1||W[1]===1)&&(V.x=X?H:x.x,V.y=Q?z:x.y,x.x=V.x,x.y=V.y,v.length>0)){const ce=H-L,xe=z-N;for(const Oe of v)Oe.position={x:Oe.position.x-ce+W[0]*(F-$),y:Oe.position.y-xe+W[1]*(j-B)},D.push(Oe)}if((U||Y)&&(V.width=U&&(!s.resizeDirection||s.resizeDirection==="horizontal")?F:x.width,V.height=Y&&(!s.resizeDirection||s.resizeDirection==="vertical")?j:x.height,x.width=V.width,x.height=V.height),_&&m.expandParent){const ce=W[0]*(V.width??0);V.x&&V.x<ce&&(x.x=ce,b.x=b.x-(V.x-ce));const xe=W[1]*(V.height??0);V.y&&V.y<xe&&(x.y=xe,b.y=b.y-(V.y-xe))}const J=uF({width:x.width,prevWidth:$,height:x.height,prevHeight:B,affectsX:s.controlDirection.affectsX,affectsY:s.controlDirection.affectsY}),re={...x,direction:J};w?.(T,re)!==!1&&(k=!0,g?.(T,re),r(V,D))}).on("end",T=>{k&&(y?.(T,{...x}),i?.({...x}),k=!1)});o.call(A)}function l(){o.on(".drag",null)}return{update:a,destroy:l}}var zu={exports:{}},Uu={};var ay;function gF(){if(ay)return Uu;ay=1;var e=ft(),t=Jy();
19function n(c,f){return c===f&&(c!==0||1/c===1/f)||c!==c&&f!==f}var r=typeof Object.is=="function"?Object.is:n,i=t.useSyncExternalStore,o=e.useRef,s=e.useEffect,a=e.useMemo,l=e.useDebugValue;return Uu.useSyncExternalStoreWithSelector=function(c,f,u,p,h){var g=o(null);if(g.current===null){var y={hasValue:!1,value:null};g.current=y}else y=g.current;g=a(function(){function x(_){if(!b){if(b=!0,m=_,_=p(_),h!==void 0&&y.hasValue){var O=y.value;if(h(O,_))return d=O}return d=_}if(O=d,r(m,_))return O;var C=p(_);return h!==void 0&&h(O,C)?(m=_,O):(m=_,d=C)}var b=!1,m,d,v=u===void 0?null:u;return[function(){return x(f())},v===null?void 0:function(){return x(v())}]},[f,u,p,h]);var w=i(c,g[0],g[1]);return s(function(){y.hasValue=!0,y.value=w},[w]),l(w),w},Uu}var ly;function vF(){return ly||(ly=1,zu.exports=gF()),zu.exports}var yF=vF();const bF=ut(yF),wF={},cy=e=>{let t;const n=new Set,r=(f,u)=>{const p=typeof f=="function"?f(t):f;if(!Object.is(p,t)){const h=t;t=u??(typeof p!="object"||p===null)?p:Object.assign({},t,p),n.forEach(g=>g(t,h))}},i=()=>t,l={setState:r,getState:i,getInitialState:()=>c,subscribe:f=>(n.add(f),()=>n.delete(f)),destroy:()=>{(wF?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},c=t=e(r,i,l);return l},xF=e=>e?cy(e):cy,{useDebugValue:EF}=Ae,{useSyncExternalStoreWithSelector:_F}=bF,SF=e=>e;function Dx(e,t=SF,n){const r=_F(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return EF(r),r}const uy=(e,t)=>{const n=xF(e),r=(i,o=t)=>Dx(n,i,o);return Object.assign(r,n),r},OF=(e,t)=>e?uy(e,t):uy;function et(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,i]of e)if(!Object.is(i,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(const r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}const uc=E.createContext(null),PF=uc.Provider,Nx=Qn.error001();function je(e,t){const n=E.useContext(uc);if(n===null)throw new Error(Nx);return Dx(n,e,t)}function tt(){const e=E.useContext(uc);if(e===null)throw new Error(Nx);return E.useMemo(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}const fy={display:"none"},CF={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},jx="react-flow__node-desc",$x="react-flow__edge-desc",RF="react-flow__aria-live",kF=e=>e.ariaLiveMessage,TF=e=>e.ariaLabelConfig;function AF({rfId:e}){const t=je(kF);return G.jsx("div",{id:`${RF}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:CF,children:t})}function LF({rfId:e,disableKeyboardA11y:t}){const n=je(TF);return G.jsxs(G.Fragment,{children:[G.jsx("div",{id:`${jx}-${e}`,style:fy,children:t?n["node.a11yDescription.default"]:n["node.a11yDescription.keyboardDisabled"]}),G.jsx("div",{id:`${$x}-${e}`,style:fy,children:n["edge.a11yDescription.default"]}),!t&&G.jsx(AF,{rfId:e})]})}const fc=E.forwardRef(({position:e="top-left",children:t,className:n,style:r,...i},o)=>{const s=`${e}`.split("-");return G.jsx("div",{className:bt(["react-flow__panel",n,...s]),style:r,ref:o,...i,children:t})});fc.displayName="Panel";function MF({proOptions:e,position:t="bottom-right"}){return e?.hideAttribution?null:G.jsx(fc,{position:t,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",children:G.jsx("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const IF=e=>{const t=[],n=[];for(const[,r]of e.nodeLookup)r.selected&&t.push(r.internals.userNode);for(const[,r]of e.edgeLookup)r.selected&&n.push(r);return{selectedNodes:t,selectedEdges:n}},oa=e=>e.id;function DF(e,t){return et(e.selectedNodes.map(oa),t.selectedNodes.map(oa))&&et(e.selectedEdges.map(oa),t.selectedEdges.map(oa))}function NF({onSelectionChange:e}){const t=tt(),{selectedNodes:n,selectedEdges:r}=je(IF,DF);return E.useEffect(()=>{const i={nodes:n,edges:r};
19e?.(i),t.getState().onSelectionChangeHandlers.forEach(o=>o(i))},[n,r,e]),null}const jF=e=>!!e.onSelectionChangeHandlers;function $F({onSelectionChange:e}){const t=je(jF);return e||t?G.jsx(NF,{onSelectionChange:e}):null}const Fx=[0,0],FF={x:0,y:0,zoom:1},BF=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","ariaLabelConfig","zIndexMode"],dy=[...BF,"rfId"],VF=e=>({setNodes:e.setNodes,setEdges:e.setEdges,setMinZoom:e.setMinZoom,setMaxZoom:e.setMaxZoom,setTranslateExtent:e.setTranslateExtent,setNodeExtent:e.setNodeExtent,reset:e.reset,setDefaultNodesAndEdges:e.setDefaultNodesAndEdges}),py={translateExtent:Ko,nodeOrigin:Fx,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function HF(e){const{setNodes:t,setEdges:n,setMinZoom:r,setMaxZoom:i,setTranslateExtent:o,setNodeExtent:s,reset:a,setDefaultNodesAndEdges:l}=je(VF,et),c=tt();E.useEffect(()=>(l(e.defaultNodes,e.defaultEdges),()=>{f.current=py,a()}),[]);const f=E.useRef(py);return E.useEffect(()=>{for(const u of dy){const p=e[u],h=f.current[u];p!==h&&(typeof e[u]>"u"||(u==="nodes"?t(p):u==="edges"?n(p):u==="minZoom"?r(p):u==="maxZoom"?i(p):u==="translateExtent"?o(p):u==="nodeExtent"?s(p):u==="ariaLabelConfig"?c.setState({ariaLabelConfig:C6(p)}):u==="fitView"?c.setState({fitViewQueued:p}):u==="fitViewOptions"?c.setState({fitViewOptions:p}):c.setState({[u]:p})))}f.current=e},dy.map(u=>e[u])),null}function hy(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function zF(e){const[t,n]=E.useState(e==="system"?null:e);return E.useEffect(()=>{if(e!=="system"){n(e);return}const r=hy(),i=()=>n(r?.matches?"dark":"light");return i(),r?.addEventListener("change",i),()=>{r?.removeEventListener("change",i)}},[e]),t!==null?t:hy()?.matches?"dark":"light"}const my=typeof document<"u"?document:null;function Qo(e=null,t={target:my,actInsideInputWithModifier:!0}){const[n,r]=E.useState(!1),i=E.useRef(!1),o=E.useRef(new Set([])),[s,a]=E.useMemo(()=>{if(e!==null){const c=(Array.isArray(e)?e:[e]).filter(u=>typeof u=="string").map(u=>u.replace("+",`
20`).replace(`
21
22`,`
23+`).split(`
24`)),f=c.reduce((u,p)=>u.concat(...p),[]);return[c,f]}return[[],[]]},[e]);return E.useEffect(()=>{const l=t?.target??my,c=t?.actInsideInputWithModifier??!0;if(e!==null){const f=h=>{if(i.current=h.ctrlKey||h.metaKey||h.shiftKey||h.altKey,(!i.current||i.current&&!c)&&yx(h))return!1;const y=vy(h.code,a);if(o.current.add(h[y]),gy(s,o.current,!1)){const w=h.composedPath?.()?.[0]||h.target,x=w?.nodeName==="BUTTON"||w?.nodeName==="A";t.preventDefault!==!1&&(i.current||!x)&&h.preventDefault(),r(!0)}},u=h=>{const g=vy(h.code,a);gy(s,o.current,!0)?(r(!1),o.current.clear()):o.current.delete(h[g]),h.key==="Meta"&&o.current.clear(),i.current=!1},p=()=>{o.current.clear(),r(!1)};return l?.addEventListener("keydown",f),l?.addEventListener("keyup",u),window.addEventListener("blur",p),window.addEventListener("contextmenu",p),()=>{l?.removeEventListener("keydown",f),l?.removeEventListener("keyup",u),window.removeEventListener("blur",p),window.removeEventListener("contextmenu",p)}}},[e,r]),n}function gy(e,t,n){return e.filter(r=>n||r.length===t.size).some(r=>r.every(i=>t.has(i)))}function vy(e,t){return t.includes(e)?"code":"key"}const UF=()=>{const e=tt();return E.useMemo(()=>({zoomIn:t=>
24{const{panZoom:n}=e.getState();return n?n.scaleBy(1.2,{duration:t?.duration}):Promise.resolve(!1)},zoomOut:t=>{const{panZoom:n}=e.getState();return n?n.scaleBy(1/1.2,{duration:t?.duration}):Promise.resolve(!1)},zoomTo:(t,n)=>{const{panZoom:r}=e.getState();return r?r.scaleTo(t,{duration:n?.duration}):Promise.resolve(!1)},getZoom:()=>e.getState().transform[2],setViewport:async(t,n)=>{const{transform:[r,i,o],panZoom:s}=e.getState();return s?(await s.setViewport({x:t.x??r,y:t.y??i,zoom:t.zoom??o},n),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{const[t,n,r]=e.getState().transform;return{x:t,y:n,zoom:r}},setCenter:async(t,n,r)=>e.getState().setCenter(t,n,r),fitBounds:async(t,n)=>{const{width:r,height:i,minZoom:o,maxZoom:s,panZoom:a}=e.getState(),l=xp(t,r,i,o,s,n?.padding??.1);return a?(await a.setViewport(l,{duration:n?.duration,ease:n?.ease,interpolate:n?.interpolate}),Promise.resolve(!0)):Promise.resolve(!1)},screenToFlowPosition:(t,n={})=>{const{transform:r,snapGrid:i,snapToGrid:o,domNode:s}=e.getState();if(!s)return t;const{x:a,y:l}=s.getBoundingClientRect(),c={x:t.x-a,y:t.y-l}
24,f=n.snapGrid??i,u=n.snapToGrid??o;return xs(c,r,u,f)},flowToScreenPosition:t=>{const{transform:n,domNode:r}=e.getState();if(!r)return t;const{x:i,y:o}=r.getBoundingClientRect(),s=Sl(t,n);return{x:s.x+i,y:s.y+o}}}),[])};function Bx(e,t){const n=[],r=new Map,i=[];for(const o of e)if(o.type==="add"){i.push(o);continue}else if(o.type==="remove"||o.type==="replace")r.set(o.id,[o]);else{const s=r.get(o.id);s?s.push(o):r.set(o.id,[o])}for(const o of t){const s=r.get(o.id);if(!s){n.push(o);continue}if(s[0].type==="remove")continue;if(s[0].type==="replace"){n.push({...s[0].item});continue}const a={...o};for(const l of s)WF(l,a);n.push(a)}return i.length&&i.forEach(o=>{o.index!==void 0?n.splice(o.index,0,{...o.item}):n.push({...o.item})}),n}function WF(e,t){switch(e.type){case"select":{t.selected=e.selected;break}case"position":{typeof e.position<"u"&&(t.position=e.position),typeof e.dragging<"u"&&(t.dragging=e.dragging);break}case"dimensions":{typeof e.dimensions<"u"&&(t.measured={...e.dimensions},e.setAttributes&&((e.setAttributes===!0||e.setAttributes==="width")&&(t.width=e.dimensions.width),(e.setAttributes===!0||e.setAttributes==="height")&&(t.height=e.dimensions.height))),typeof e.resizing=="boolean"&&(t.resizing=e.resizing);break}}}function Vx(e,t){return Bx(e,t)}function Hx(e,t){return Bx(e,t)}function Tr(e,t){return{id:e,type:"select",selected:t}}function vi(e,t=new Set,n=!1){const r=[];for(const[i,o]of e){const s=t.has(i);!(o.selected===void 0&&!s)&&o.selected!==s&&(n&&(o.selected=s),r.push(Tr(o.id,s)))}return r}function yy({items:e=[],lookup:t}){const n=[],r=new Map(e.map(i=>[i.id,i]));for(const[i,o]of e.entries()){const s=t.get(o.id),a=s?.internals?.userNode??s;a!==void 0&&a!==o&&n.push({id:o.id,item:o,type:"replace"}),a===void 0&&n.push({item:o,type:"add",index:i})}for(const[i]of t)r.get(i)===void 0&&n.push({id:i,type:"remove"});return n}function by(e){return{id:e.id,type:"remove"}}const wy=e=>v6(e),qF=e=>ux(e);function zx(e){return E.forwardRef(e)}const YF=typeof window<"u"?E.useLayoutEffect:E.useEffect;function xy(e){const[t,n]=E.useState(BigInt(0)),[r]=E.useState(()=>KF(()=>n(i=>i+BigInt(1))));return YF(()=>{const i=r.get();i.length&&(e(i),r.reset())},[t]),r}function KF(e){let t=[];return{get:()=>t,reset:()=>{t=[]},push:n=>{t.push(n),e()}}}const Ux=E.createContext(null);function XF({children:e}){const t=tt(),n=E.useCallback(a=>{const{nodes:l=[],setNodes:c,hasDefaultNodes:f,onNodesChange:u,nodeLookup:p,fitViewQueued:h,onNodesChangeMiddlewareMap:g}=t.getState();let y=l;for(const x of a)y=typeof x=="function"?x(y):x;let w=yy({items:y,lookup:p});for(const x of g.values())w=x(w);f&&c(y),w.length>0?u?.(w):h&&window.requestAnimationFrame(()=>{const{fitViewQueued:x,nodes:b,setNodes:m}=t.getState();x&&m(b)})},[]),r=xy(n),i=E.useCallback(a=>{const{edges:l=[],setEdges:c,hasDefaultEdges:f,onEdgesChange:u,edgeLookup:p}=t.getState();let h=l;for(const g of a)h=typeof g=="function"?g(h):g;f?c(h):u&&u(yy({items:h,lookup:p}))},[]),o=xy(i),s=E.useMemo(()=>({nodeQueue:r,edgeQueue:o}),[]);return G.jsx(Ux.Provider,{value:s,children:e})}function GF(){const e=E.useContext(Ux);if(!e)throw new Error("useBatchContext must be used within a BatchProvider");return e}const ZF=e=>!!e.panZoom;function Rp(){const e=UF(),t=tt(),n=GF(),r=je(ZF),i=E.useMemo(()=>{const o=u=>t.getState().nodeLookup.get(u),s=u=>{n.nodeQueue.push(u)},a=u=>{n.edgeQueue.push(u)},l=u=>{const{nodeLookup:p,nodeOrigin:h}=t.getState(),g=wy(u)?u:p.get(u.id),y=g.parentId?gx(g.position,g.measured,g.parentId,p,h):g.position,w={...g,position:y,width:g.measured?.width??g.width,height:g.measured?.height??g.height};return Bi(w)},c=(u,p,h={replace:!1})=>{s(g=>g.map(y=>{if(y.id===u){const w=typeof p=="function"?p(y):p;return h.replace&&wy(w)?w:{...y,...w}}return y}))},f=(u,p,h={replace:!1})=>{a(g=>g.map(y=>{if(y.id===u){const w=typeof p=="function"?p(y):p;return h.replace&&qF(w)?w:{...y,...w}}return y}))};return{getNodes:()=>t.getState().nodes.map(u=>({...u})),getNode:u=>o(u)?.internals.userNode,getInternalNode:o,getEdges:()=>{const{edges:u=[]}=t.getState();return u.map(p=>({...p}))},getEdge:u=>t.getState().edgeLookup.get(u),setNodes:s,setEdges:a,addNodes:u=>{const p=Array.isArray(u)?u:[u];n.nodeQueue.push(h=>
vendor: 6,952 bytes, line 24
24[...h,...p])},addEdges:u=>{const p=Array.isArray(u)?u:[u];n.edgeQueue.push(h=>[...h,...p])},toObject:()=>{const{nodes:u=[],edges:p=[],transform:h}=t.getState(),[g,y,w]=h;return{nodes:u.map(x=>({...x})),edges:p.map(x=>({...x})),viewport:{x:g,y,zoom:w}}},deleteElements:async({nodes:u=[],edges:p=[]})=>{const{nodes:h,edges:g,onNodesDelete:y,onEdgesDelete:w,triggerNodeChanges:x,triggerEdgeChanges:b,onDelete:m,onBeforeDelete:d}=t.getState(),{nodes:v,edges:_}=await E6({nodesToRemove:u,edgesToRemove:p,nodes:h,edges:g,onBeforeDelete:d}),O=_.length>0,C=v.length>0;if(O){const k=_.map(by);w?.(_),b(k)}if(C){const k=v.map(by);y?.(v),x(k)}return(C||O)&&m?.({nodes:v,edges:_}),{deletedNodes:v,deletedEdges:_}},getIntersectingNodes:(u,p=!0,h)=>{const g=Kv(u),y=g?u:l(u),w=h!==void 0;return y?(h||t.getState().nodes).filter(x=>{const b=t.getState().nodeLookup.get(x.id);if(b&&!g&&(x.id===u.id||!b.internals.positionAbsolute))return!1;const m=Bi(w?x:b),d=Go(m,y);return p&&d>0||d>=m.width*m.height||d>=y.width*y.height}):[]},isNodeIntersecting:(u,p,h=!0)=>{const y=Kv(u)?u:l(u);if(!y)return!1;const w=Go(y,p);return h&&w>0||w>=p.width*p.height||w>=y.width*y.height},updateNode:c,updateNodeData:(u,p,h={replace:!1})=>{c(u,g=>{const y=typeof p=="function"?p(g):p;return h.replace?{...g,data:y}:{...g,data:{...g.data,...y}}},h)},updateEdge:f,updateEdgeData:(u,p,h={replace:!1})=>{f(u,g=>{const y=typeof p=="function"?p(g):p;return h.replace?{...g,data:y}:{...g,data:{...g.data,...y}}},h)},getNodesBounds:u=>{const{nodeLookup:p,nodeOrigin:h}=t.getState();return y6(u,{nodeLookup:p,nodeOrigin:h})},getHandleConnections:({type:u,id:p,nodeId:h})=>Array.from(t.getState().connectionLookup.get(`${h}-${u}${p?`-${p}`:""}`)?.values()??[]),getNodeConnections:({type:u,handleId:p,nodeId:h})=>Array.from(t.getState().connectionLookup.get(`${h}${u?p?`-${u}-${p}`:`-${u}`:""}`)?.values()??[]),fitView:async u=>{const p=t.getState().fitViewResolver??P6();return t.setState({fitViewQueued:!0,fitViewOptions:u,fitViewResolver:p}),n.nodeQueue.push(h=>[...h]),p.promise}}},[]);return E.useMemo(()=>({...i,...e,viewportInitialized:r}),[r])}const Ey=e=>e.selected,QF=typeof window<"u"?window:void 0;function JF({deleteKeyCode:e,multiSelectionKeyCode:t}){const n=tt(),{deleteElements:r}=Rp(),i=Qo(e,{actInsideInputWithModifier:!1}),o=Qo(t,{target:QF});E.useEffect(()=>{if(i){const{edges:s,nodes:a}=n.getState();r({nodes:a.filter(Ey),edges:s.filter(Ey)}),n.setState({nodesSelectionActive:!1})}},[i]),E.useEffect(()=>{n.setState({multiSelectionActive:o})},[o])}function e8(e){const t=tt();E.useEffect(()=>{const n=()=>{if(!e.current||!(e.current.checkVisibility?.()??!0))return!1;const r=Ep(e.current);(r.height===0||r.width===0)&&t.getState().onError?.("004",Qn.error004()),t.setState({width:r.width||500,height:r.height||500})};if(e.current){n(),window.addEventListener("resize",n);const r=new ResizeObserver(()=>n());return r.observe(e.current),()=>{window.removeEventListener("resize",n),r&&e.current&&r.unobserve(e.current)}}},[])}const dc={position:"absolute",width:"100%",height:"100%",top:0,left:0},t8=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib,connectionInProgress:e.connection.inProgress});function n8({onPaneContextMenu:e,zoomOnScroll:t=!0,zoomOnPinch:n=!0,panOnScroll:r=!1,panOnScrollSpeed:i=.5,panOnScrollMode:o=Hr.Free,zoomOnDoubleClick:s=!0,panOnDrag:a=!0,defaultViewport:l,translateExtent:c,minZoom:f,maxZoom:u,zoomActivationKeyCode:p,preventScrolling:h=!0,children:g,noWheelClassName:y,noPanClassName:w,onViewportChange:x,isControlledViewport:b,paneClickDistance:m,selectionOnDrag:d}){const v=tt(),_=E.useRef(null),{userSelectionActive:O,lib:C,connectionInProgress:k}=je(t8,et),A=Qo(p),T=E.useRef();e8(_);const M=E.useCallback(I=>{x?.({x:I[0],y:I[1],zoom:I[2]}),b||v.setState({transform:I})},[x,b]);return E.useEffect(()=>{if(_.current){T.current=cF({domNode:_.current,minZoom:f,maxZoom:u,translateExtent:c,viewport:l,onDraggingChange:R=>v.setState(D=>D.paneDragging===R?D:{paneDragging:R}),onPanZoomStart:(R,D)=>{const{onViewportChangeStart:L,onMoveStart:N}=v.getState();N?.(R,D),L?.(D)},onPanZoom:(R,D)=>{const{onViewportChange:L,onMove:N}=v.getState();N?.(R,D),L?.(D)},onPanZoomEnd:(R,D)=>{const{onViewportChangeEnd:L,onMoveEnd:N}=v.getState();N?.(R,D),L?.(D)}});const{x:I,y:P,zoom:S}=T.current.getViewport();return v.setState({panZoom:T.current,transform:[I,P,S],domNode:_.current.closest(".react-flow")}),()=>{T.current?.destroy()}}},[]),E.useEffect(()=>{T.current?.update({onPaneContextMenu:e,zoomOnScroll:t,zoomOnPinch:n,panOnScroll:r,panOnScrollSpeed:i,panOnScrollMode:o,zoomOnDoubleClick:s,panOnDrag:a,zoomActivationKeyPressed:A,preventScrolling:h,noPanClassName:w,userSelectionActive:O,noWheelClassName:y,lib:C,onTransformChange:M,connectionInProgress:k,selectionOnDrag:d,paneClickDistance:m})},[e,t,n,r,i,o,s,a,A,h,w,O,y,C,M,k,d,m]),G.jsx("div",{className:"react-flow__renderer",ref:_,style:dc,children:g})}const r8=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function i8(){const{userSelectionActive:e,userSelectionRect:t}=je(r8,et);return e&&t?G.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:t.width,height:t.height,transform:`translate(${t.x}px, ${t.y}px)`}}):null}const Wu=(e,t)=>n=>{n.target===t.current&&e?.(n)},o8=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,connectionInProgress:e.connection.inProgress,dragging:e.paneDragging});function s8({isSelecting:e,selectionKeyPressed:t,selectionMode:n=Xo.Full,panOnDrag:r,paneClickDistance:i,selectionOnDrag:o,onSelectionStart:s,onSelectionEnd:a,onPaneClick:l,onPaneContextMenu:c,onPaneScroll:f,onPaneMouseEnter:u,onPaneMouseMove:p,onPaneMouseLeave:h,children:g}){const y=tt(),{userSelectionActive:w,elementsSelectable:x,dragging:b,connectionInProgress:m}=je(o8,et),d=x&&(e||w),v=E.useRef(null),_=E.useRef(),O=E.useRef(new Set),C=E.useRef(new Set),k=E.useRef(!1),A=L=>{if(k.current||m){k.current=!1;return}l?.(L),y.getState().resetSelectedElements(),y.setState({nodesSelectionActive:!1})},T=L=>{if(Array.isArray(r)&&r?.includes(2)){L.preventDefault();return}c?.(L)},M=f?L=>f(L):void 0,I=L=>{k.current&&(L.stopPropagation(),k.current=!1)},P=L=>{const{domNode:N}=y.getState();if(_.current=N?.getBoundingClientRect(),!_.current)return;const $=L.target===v.current;if(!$&&!!L.target.closest(".nokey")||!e||!(o&&$||t)||L.button!==0||!L.isPrimary)return;L.target?.setPointerCapture?.(L.pointerId),k.current=!1;const{x:W,y:F}=An(L.nativeEvent,_.current);y.setState({userSelectionRect:{width:0,height:0,startX:W,startY:F,x:W,y:F}}),$||(L.stopPropagation(),L.preventDefault())},S=L=>{const{userSelectionRect:N,transform:$,nodeLookup:B,edgeLookup:V,connectionLookup:W,triggerNodeChanges:F,triggerEdgeChanges:j,defaultEdgeOptions:H,resetSelectedElements:z}=y.getState();if(!_.current||!N)return;const{x:U,y:Y}=An(L.nativeEvent,_.current),{startX:X,startY:Q}=N;if(!k.current){const xe=t?0:i;
24if(Math.hypot(U-X,Y-Q)<=xe)return;z(),s?.(L)}k.current=!0;const J={startX:X,startY:Q,x:U<X?U:X,y:Y<Q?Y:Q,width:Math.abs(U-X),height:Math.abs(Y-Q)},re=O.current,ue=C.current;O.current=new Set(wp(B,J,$,n===Xo.Partial,!0).map(xe=>xe.id)),C.current=new Set;const ce=H?.selectable??!0;for(const xe of O.current){const Oe=W.get(xe);if(Oe)for(const{edgeId:Ie}of Oe.values()){const Be=V.get(Ie);Be&&(Be.selectable??ce)&&C.current.add(Ie)}}if(!Xv(re,O.current)){const xe=vi(B,O.current,!0);F(xe)}if(!Xv(ue,C.current)){const xe=vi(V,C.current);j(xe)}y.setState({userSelectionRect:J,userSelectionActive:!0,nodesSelectionActive:!1})},R=L=>{L.button===0&&(L.target?.releasePointerCapture?.(L.pointerId),!w&&L.target===v.current&&y.getState().userSelectionRect&&A?.(L),y.setState({userSelectionActive:!1,userSelectionRect:null}),k.current&&(a?.(L),y.setState({nodesSelectionActive:O.current.size>0})))},D=r===!0||Array.isArray(r)&&r.includes(0);return G.jsxs("div",{className:bt(["react-flow__pane",{draggable:D,dragging:b,selection:e}]),onClick:d?void 0:Wu(A,v),onContextMenu:Wu(T,v),onWheel:Wu(M,v),onPointerEnter:d?void 0:u,onPointerMove:d?S:p,onPointerUp:d?R:void 0,onPointerDownCapture:d?P:void 0,onClickCapture:d?I:void 0,onPointerLeave:h,ref:v,style:dc,children:[g,G.jsx(i8,{})]})}function yd({id:e,store:t,unselect:n=!1,nodeRef:r}){const{addSelectedNodes:i,unselectNodesAndEdges:o,multiSelectionActive:s,nodeLookup:a,onError:l}=t.getState(),c=a.get(e);if(!c){l?.("012",Qn.error012(e));return}t.setState({nodesSelectionActive:!1}),c.selected?(n||c.selected&&s)&&(o({nodes:[c],edges:[]}),requestAnimationFrame(()=>r?.current?.blur())):i([e])}function Wx({nodeRef:e,disabled:t=!1,noDragClassName:n,handleSelector:r,nodeId:i,isSelectable:o,nodeClickDistance:s}){const a=tt(),[l,c]=E.useState(!1),f=E.useRef();return E.useEffect(()=>{f.current=X6({getStoreItems:()=>a.getState(),onNodeMouseDown:u=>{yd({id:u,store:a,nodeRef:e})},onDragStart:()=>{c(!0)},onDragStop:()=>{c(!1)}})},[]),E.useEffect(()=>{if(!(t||!e.current||!f.current))return f.current.update({noDragClassName:n,handleSelector:r,domNode:e.current,isSelectable:o,nodeId:i,nodeClickDistance:s}),()=>{f.current?.destroy()}},[n,r,t,o,e,i,s]),l}const a8=e=>t=>t.selected&&(t.draggable||e&&typeof t.draggable>"u");function qx(){const e=tt();return E.useCallback(n=>{const{nodeExtent:r,snapToGrid:i,snapGrid:o,nodesDraggable:s,onError:a,updateNodePositions:l,nodeLookup:c,nodeOrigin:f}=e.getState(),u=new Map,p=a8(s),h=i?o[0]:5,g=i?o[1]:5,y=n.direction.x*h*n.factor,w=n.direction.y*g*n.factor;for(const[,x]of c){if(!p(x))continue;let b={x:x.internals.positionAbsolute.x+y,y:x.internals.positionAbsolute.y+w};i&&(b=ws(b,o));const{position:m,positionAbsolute:d}=fx({nodeId:x.id,nextPosition:b,nodeLookup:c,nodeExtent:r,nodeOrigin:f,onError:a});x.position=m,x.internals.positionAbsolute=d,u.set(x.id,x)}l(u)},[])}const kp=E.createContext(null),l8=kp.Provider;kp.Consumer;const Yx=()=>E.useContext(kp),c8=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),u8=(e,t,n)=>r=>{const{connectionClickStartHandle:i,connectionMode:o,connection:s}=r,{fromHandle:a,toHandle:l,isValid:c}=s,f=l?.nodeId===e&&l?.id===t&&l?.type===n;return{connectingFrom:a?.nodeId===e&&a?.id===t&&a?.type===n,connectingTo:f,clickConnecting:i?.nodeId===e&&i?.id===t&&i?.type===n,isPossibleEndHandle:o===$i.Strict?a?.type!==n:e!==a?.nodeId||t!==a?.id,connectionInProcess:!!a,clickConnectionInProcess:!!i,valid:f&&c}};function f8({type:e="source",position:t=ve.Top,isValidConnection:n,isConnectable:r=!0,isConnectableStart:i=!0,isConnectableEnd:o=!0,id:s,onConnect:a,children:l,className:c,onMouseDown:f,onTouchStart:u,...p},h){const g=s||null,y=e==="target",w=tt(),x=Yx(),{connectOnClick:b,noPanClassName:m,rfId:d}=je(c8,et),{connectingFrom:v,connectingTo:_,clickConnecting:O,isPossibleEndHandle:C,connectionInProcess:k,clickConnectionInProcess:A,valid:T}=je(u8(x,g,e),et);x||w.getState().onError?.("010",Qn.error010());const M=S=>{const{defaultEdgeOptions:R,onConnect:D,hasDefaultEdges:L}=w.getState(),N={...R,...S};if(L){const{edges:$,setEdges:B}=w.getState();B(M6(N,$))}D?.(N),a?.(N)},I=S=>{if(!x)return;const R=bx(S.nativeEvent);
vendor: 17,578 bytes, line 24
24if(i&&(R&&S.button===0||!R)){const D=w.getState();vd.onPointerDown(S.nativeEvent,{handleDomNode:S.currentTarget,autoPanOnConnect:D.autoPanOnConnect,connectionMode:D.connectionMode,connectionRadius:D.connectionRadius,domNode:D.domNode,nodeLookup:D.nodeLookup,lib:D.lib,isTarget:y,handleId:g,nodeId:x,flowId:D.rfId,panBy:D.panBy,cancelConnection:D.cancelConnection,onConnectStart:D.onConnectStart,onConnectEnd:(...L)=>w.getState().onConnectEnd?.(...L),updateConnection:D.updateConnection,onConnect:M,isValidConnection:n||((...L)=>w.getState().isValidConnection?.(...L)??!0),getTransform:()=>w.getState().transform,getFromHandle:()=>w.getState().connection.fromHandle,autoPanSpeed:D.autoPanSpeed,dragThreshold:D.connectionDragThreshold})}R?f?.(S):u?.(S)},P=S=>{const{onClickConnectStart:R,onClickConnectEnd:D,connectionClickStartHandle:L,connectionMode:N,isValidConnection:$,lib:B,rfId:V,nodeLookup:W,connection:F}=w.getState();if(!x||!L&&!i)return;if(!L){R?.(S.nativeEvent,{nodeId:x,handleId:g,handleType:e}),w.setState({connectionClickStartHandle:{nodeId:x,type:e,id:g}});return}const j=vx(S.target),H=n||$,{connection:z,isValid:U}=vd.isValid(S.nativeEvent,{handle:{nodeId:x,id:g,type:e},connectionMode:N,fromNodeId:L.nodeId,fromHandleId:L.id||null,fromType:L.type,isValidConnection:H,flowId:V,doc:j,lib:B,nodeLookup:W});U&&z&&M(z);const Y=structuredClone(F);delete Y.inProgress,Y.toPosition=Y.toHandle?Y.toHandle.position:null,D?.(S,Y),w.setState({connectionClickStartHandle:null})};return G.jsx("div",{"data-handleid":g,"data-nodeid":x,"data-handlepos":t,"data-id":`${d}-${x}-${g}-${e}`,className:bt(["react-flow__handle",`react-flow__handle-${t}`,"nodrag",m,c,{source:!y,target:y,connectable:r,connectablestart:i,connectableend:o,clickconnecting:O,connectingfrom:v,connectingto:_,valid:T,connectionindicator:r&&(!k||C)&&(k||A?o:i)}]),onMouseDown:I,onTouchStart:I,onClick:b?P:void 0,ref:h,...p,children:l})}const Ol=E.memo(zx(f8));function d8({data:e,isConnectable:t,sourcePosition:n=ve.Bottom}){return G.jsxs(G.Fragment,{children:[e?.label,G.jsx(Ol,{type:"source",position:n,isConnectable:t})]})}function p8({data:e,isConnectable:t,targetPosition:n=ve.Top,sourcePosition:r=ve.Bottom}){return G.jsxs(G.Fragment,{children:[G.jsx(Ol,{type:"target",position:n,isConnectable:t}),e?.label,G.jsx(Ol,{type:"source",position:r,isConnectable:t})]})}function h8(){return null}function m8({data:e,isConnectable:t,targetPosition:n=ve.Top}){return G.jsxs(G.Fragment,{children:[G.jsx(Ol,{type:"target",position:n,isConnectable:t}),e?.label]})}const Pl={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},_y={input:d8,default:p8,output:m8,group:h8};function g8(e){return e.internals.handleBounds===void 0?{width:e.width??e.initialWidth??e.style?.width,height:e.height??e.initialHeight??e.style?.height}:{width:e.width??e.style?.width,height:e.height??e.style?.height}}const v8=e=>{const{width:t,height:n,x:r,y:i}=bs(e.nodeLookup,{filter:o=>!!o.selected});return{width:Tn(t)?t:null,height:Tn(n)?n:null,userSelectionActive:e.userSelectionActive,transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]}) translate(${r}px,${i}px)`}};function y8({onSelectionContextMenu:e,noPanClassName:t,disableKeyboardA11y:n}){const r=tt(),{width:i,height:o,transformString:s,userSelectionActive:a}=je(v8,et),l=qx(),c=E.useRef(null);E.useEffect(()=>{n||c.current?.focus({preventScroll:!0})},[n]);const f=!a&&i!==null&&o!==null;if(Wx({nodeRef:c,disabled:!f}),!f)return null;const u=e?h=>{const g=r.getState().nodes.filter(y=>y.selected);e(h,g)}:void 0,p=h=>{Object.prototype.hasOwnProperty.call(Pl,h.key)&&(h.preventDefault(),l({direction:Pl[h.key],factor:h.shiftKey?4:1}))};return G.jsx("div",{className:bt(["react-flow__nodesselection","react-flow__container",t]),style:{transform:s},children:G.jsx("div",{ref:c,className:"react-flow__nodesselection-rect",onContextMenu:u,tabIndex:n?void 0:-1,onKeyDown:n?void 0:p,style:{width:i,height:o}})})}const Sy=typeof window<"u"?window:void 0,b8=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function Kx({children:e,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:r,onPaneMouseLeave:i,onPaneContextMenu:o,onPaneScroll:s,paneClickDistance:a,deleteKeyCode:l,selectionKeyCode:c,selectionOnDrag:f,selectionMode:u,onSelectionStart:p,onSelectionEnd:h,multiSelectionKeyCode:g,panActivationKeyCode:y,zoomActivationKeyCode:w,elementsSelectable:x,zoomOnScroll:b,zoomOnPinch:m,panOnScroll:d,panOnScrollSpeed:v,panOnScrollMode:_,zoomOnDoubleClick:O,panOnDrag:C,defaultViewport:k,translateExtent:A,minZoom:T,maxZoom:M,preventScrolling:I,onSelectionContextMenu:P,noWheelClassName:S,noPanClassName:R,disableKeyboardA11y:D,onViewportChange:L,isControlledViewport:N}){const{nodesSelectionActive:$,userSelectionActive:B}=je(b8,et),V=Qo(c,{target:Sy}),W=Qo(y,{target:Sy}),F=W||C,j=W||d,H=f&&F!==!0,z=V||B||H;return JF({deleteKeyCode:l,multiSelectionKeyCode:g}),G.jsx(n8,{onPaneContextMenu:o,elementsSelectable:x,zoomOnScroll:b,zoomOnPinch:m,panOnScroll:j,panOnScrollSpeed:v,panOnScrollMode:_,zoomOnDoubleClick:O,panOnDrag:!V&&F,defaultViewport:k,translateExtent:A,minZoom:T,maxZoom:M,zoomActivationKeyCode:w,preventScrolling:I,noWheelClassName:S,noPanClassName:R,onViewportChange:L,isControlledViewport:N,paneClickDistance:a,selectionOnDrag:H,children:G.jsxs(s8,{onSelectionStart:p,onSelectionEnd:h,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:r,onPaneMouseLeave:i,onPaneContextMenu:o,onPaneScroll:s,panOnDrag:F,isSelecting:!!z,selectionMode:u,selectionKeyPressed:V,paneClickDistance:a,selectionOnDrag:H,children:[e,$&&G.jsx(y8,{onSelectionContextMenu:P,noPanClassName:R,disableKeyboardA11y:D})]})})}Kx.displayName="FlowRenderer";const w8=E.memo(Kx),x8=e=>t=>e?wp(t.nodeLookup,{x:0,y:0,width:t.width,height:t.height},t.transform,!0).map(n=>n.id):Array.from(t.nodeLookup.keys());function E8(e){return je(E.useCallback(x8(e),[e]),et)}const _8=e=>e.updateNodeInternals;function S8(){const e=je(_8),[t]=E.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(n=>{const r=new Map;n.forEach(i=>{const o=i.target.getAttribute("data-id");r.set(o,{id:o,nodeElement:i.target,force:!0})}),e(r)}));return E.useEffect(()=>()=>{t?.disconnect()},[t]),t}function O8({node:e,nodeType:t,hasDimensions:n,resizeObserver:r}){const i=tt(),o=E.useRef(null),s=E.useRef(null),a=E.useRef(e.sourcePosition),l=E.useRef(e.targetPosition),c=E.useRef(t),f=n&&!!e.internals.handleBounds;return E.useEffect(()=>{o.current&&!e.hidden&&(!f||s.current!==o.current)&&(s.current&&r?.unobserve(s.current),r?.observe(o.current),s.current=o.current)},[f,e.hidden]),E.useEffect(()=>()=>{s.current&&(r?.unobserve(s.current),s.current=null)},[]),E.useEffect(()=>{if(o.current){const u=c.current!==t,p=a.current!==e.sourcePosition,h=l.current!==e.targetPosition;(u||p||h)&&(c.current=t,a.current=e.sourcePosition,l.current=e.targetPosition,i.getState().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:o.current,force:!0}]])))}},[e.id,t,e.sourcePosition,e.targetPosition]),o}function P8({id:e,onClick:t,onMouseEnter:n,onMouseMove:r,onMouseLeave:i,onContextMenu:o,onDoubleClick:s,nodesDraggable:a,elementsSelectable:l,nodesConnectable:c,nodesFocusable:f,resizeObserver:u,noDragClassName:p,noPanClassName:h,disableKeyboardA11y:g,rfId:y,nodeTypes:w,nodeClickDistance:x,onError:b}){const{node:m,internals:d,isParent:v}=je(U=>{const Y=U.nodeLookup.get(e),X=U.parentLookup.has(e);return{node:Y,internals:Y.internals,isParent:X}},et);let _=m.type||"default",O=w?.[_]||_y[_];O===void 0&&(b?.("003",Qn.error003(_)),_="default",O=w?.default||_y.default);const C=!!(m.draggable||a&&typeof m.draggable>"u"),k=!!(m.selectable||l&&typeof m.selectable>"u"),A=!!(m.connectable||c&&typeof m.connectable>"u"),T=!!(m.focusable||f&&typeof m.focusable>"u"),M=tt(),I=mx(m),P=O8({node:m,nodeType:_,hasDimensions:I,resizeObserver:u}),S=Wx({nodeRef:P,disabled:m.hidden||!C,noDragClassName:p,handleSelector:m.dragHandle,nodeId:e,isSelectable:k,nodeClickDistance:x}),R=qx();if(m.hidden)return null;const D=dr(m),L=g8(m),N=k||C||t||n||r||i,$=n?U=>n(U,{...d.userNode}):void 0,B=r?U=>r(U,{...d.userNode}):void 0,V=i?U=>i(U,{...d.userNode}):void 0,W=o?U=>o(U,{...d.userNode}):void 0,F=s?U=>s(U,{...d.userNode}):void 0,j=U=>{const{selectNodesOnDrag:Y,nodeDragThreshold:X}=M.getState();k&&(!Y||!C||X>0)&&yd({id:e,store:M,nodeRef:P}),t&&t(U,{...d.userNode})},H=U=>{if(!(yx(U.nativeEvent)||g)){if(sx.includes(U.key)&&k){const Y=U.key==="Escape";yd({id:e,store:M,unselect:Y,nodeRef:P})}else if(C&&m.selected&&Object.prototype.hasOwnProperty.call(Pl,U.key)){U.preventDefault();const{ariaLabelConfig:Y}=M.getState();M.setState({ariaLiveMessage:Y["node.a11yDescription.ariaLiveMessage"]({direction:U.key.replace("Arrow","").toLowerCase(),x:~~d.positionAbsolute.x,y:~~d.positionAbsolute.y})}),R({direction:Pl[U.key],factor:U.shiftKey?4:1})}}},z=()=>{if(g||!P.current?.matches(":focus-visible"))return;const{transform:U,width:Y,height:X,autoPanOnNodeFocus:Q,setCenter:J}=M.getState();if(!Q)return;wp(new Map([[e,m]]),{x:0,y:0,width:Y,height:X},U,!0).length>0||J(m.position.x+D.width/2,m.position.y+D.height/2,{zoom:U[2]})};return G.jsx("div",{className:bt(["react-flow__node",`react-flow__node-${_}`,{[h]:C},m.className,{selected:m.selected,selectable:k,parent:v,draggable:C,dragging:S}]),ref:P,style:{zIndex:d.z,transform:`translate(${d.positionAbsolute.x}px,${d.positionAbsolute.y}px)`,pointerEvents:N?"all":"none",visibility:I?"visible":"hidden",...m.style,...L},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:$,onMouseMove:B,onMouseLeave:V,onContextMenu:W,onClick:j,onDoubleClick:F,onKeyDown:T?H:void 0,tabIndex:T?0:void 0,onFocus:T?z:void 0,role:m.ariaRole??(T?"group":void 0),"aria-roledescription":"node","aria-describedby":g?void 0:`${jx}-${y}`,"aria-label":m.ariaLabel,...m.domAttributes,children:G.jsx(l8,{value:e,children:G.jsx(O,{id:e,data:m.data,type:_,positionAbsoluteX:d.positionAbsolute.x,positionAbsoluteY:d.positionAbsolute.y,selected:m.selected??!1,selectable:k,draggable:C,deletable:m.deletable??!0,isConnectable:A,sourcePosition:m.sourcePosition,targetPosition:m.targetPosition,dragging:S,dragHandle:m.dragHandle,zIndex:d.z,parentId:m.parentId,...D})})})}var C8=E.memo(P8);const R8=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function Xx(e){const{nodesDraggable:t,nodesConnectable:n,nodesFocusable:r,elementsSelectable:i,onError:o}=je(R8,et),s=E8(e.onlyRenderVisibleElements),a=S8();return G.jsx("div",{className:"react-flow__nodes",style:dc,children:s.map(l=>G.jsx(C8,{id:l,nodeTypes:e.nodeTypes,nodeExtent:e.nodeExtent,onClick:e.onNodeClick,onMouseEnter:e.onNodeMouseEnter,onMouseMove:e.onNodeMouseMove,onMouseLeave:e.onNodeMouseLeave,onContextMenu:e.onNodeContextMenu,onDoubleClick:e.onNodeDoubleClick,noDragClassName:e.noDragClassName,noPanClassName:e.noPanClassName,rfId:e.rfId,disableKeyboardA11y:e.disableKeyboardA11y,resizeObserver:a,nodesDraggable:t,nodesConnectable:n,nodesFocusable:r,elementsSelectable:i,nodeClickDistance:e.nodeClickDistance,onError:o},l))})}Xx.displayName="NodeRenderer";const k8=E.memo(Xx);function T8(e){return je(E.useCallback(n=>{if(!e)return n.edges.map(i=>i.id);const r=[];if(n.width&&n.height)for(const i of n.edges){const o=n.nodeLookup.get(i.source),s=n.nodeLookup.get(i.target);o&&s&&T6({sourceNode:o,targetNode:s,width:n.width,height:n.height,transform:n.transform})&&r.push(i.id)}return r},[e]),et)}const A8=({color:e="none",strokeWidth:t=1})=>{const n={strokeWidth:t,...e&&{stroke:e}};return G.jsx("polyline",{className:"arrow",style:n,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},L8=({color:e="none",strokeWidth:t=1})=>{const n={strokeWidth:t,...e&&{stroke:e,fill:e}};return G.jsx("polyline",{className:"arrowclosed",style:n,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},Oy={[El.Arrow]:A8,[El.ArrowClosed]:L8};function M8(e){const t=tt();return E.useMemo(()=>Object.prototype.hasOwnProperty.call(Oy,e)?Oy[e]:(t.getState().onError?.("009",Qn.error009(e)),null),[e])}const I8=({id:e,type:t,color:n,width:r=12.5,height:i=12.5,markerUnits:o="strokeWidth",strokeWidth:s,orient:a="auto-start-reverse"})=>{const l=M8(t);return l?G.jsx("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${r}`,markerHeight:`${i}`,viewBox:"-10 -10 20 20",markerUnits:o,orient:a,refX:"0",refY:"0",children:G.jsx(l,{color:n,strokeWidth:s})}):null},Gx=({defaultColor:e,rfId:t})=>{const n=je(o=>o.edges),r=je(o=>o.defaultEdgeOptions),i=E.useMemo(()=>$6(n,{id:t,defaultColor:e,defaultMarkerStart:r?.markerStart,defaultMarkerEnd:r?.markerEnd}),[n,r,t,e]);return i.length?G.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:G.jsx("defs",{children:i.map(o=>G.jsx(I8,{id:o.id,type:o.type,color:o.color,width:o.width,height:o.height,markerUnits:o.markerUnits,strokeWidth:o.strokeWidth,orient:o.orient},o.id))})}):null};Gx.displayName="MarkerDefinitions";var D8=E.memo(Gx);function Zx({x:e,y:t,label:n,labelStyle:r,labelShowBg:i=!0,labelBgStyle:o,labelBgPadding:s=[2,4],labelBgBorderRadius:a=2,children:l,className:c,...f}){const[u,p]=E.useState({x:1,y:0,width:0,height:0}),h=bt(["react-flow__edge-textwrapper",c]),g=E.useRef(null);return E.useEffect(()=>{if(g.current){const y=g.current.getBBox();p({x:y.x,y:y.y,width:y.width,height:y.height})}},[n]),n?G.jsxs("g",{transform:`translate(${e-u.width/2} ${t-u.height/2})`,className:h,visibility:u.width?"visible":"hidden",...f,children:[i&&G.jsx("rect",{width:u.width+2*s[0],x:-s[0],y:-s[1],height:u.height+2*s[1],className:"react-flow__edge-textbg",style:o,rx:a,ry:a}),G.jsx("text",{className:"react-flow__edge-text",y:u.height/2,dy:"0.3em",ref:g,style:r,children:n}),l]}):null}Zx.displayName="EdgeText";const N8=E.memo(Zx);function pc({path:e,labelX:t,labelY:n,label:r,labelStyle:i,labelShowBg:o,labelBgStyle:s,labelBgPadding:a,labelBgBorderRadius:l,interactionWidth:c=20,...f}){return G.jsxs(G.Fragment,{children:[G.jsx("path",{...f,d:e,fill:"none",className:bt(["react-flow__edge-path",f.className])}),c?G.jsx("path",{d:e,fill:"none",strokeOpacity:0,strokeWidth:c,className:"react-flow__edge-interaction"}):null,r&&Tn(t)&&Tn(n)?G.jsx(N8,{x:t,y:n,label:r,labelStyle:i,labelShowBg:o,labelBgStyle:s,labelBgPadding:a,labelBgBorderRadius:l}):null]})}function Py({pos:e,x1:t,y1:n,x2:r,y2:i}){return e===ve.Left||e===ve.Right?[.5*(t+r),n]:[t,.5*(n+i)]}function Qx({sourceX:e,sourceY:t,sourcePosition:n=ve.Bottom,targetX:r,targetY:i,targetPosition:o=ve.Top}){const[s,a]=Py({pos:n,x1:e,y1:t,x2:r,y2:i}),[l,c]=Py({pos:o,x1:r,y1:i,x2:e,y2:t}),[f,u,p,h]=wx({sourceX:e,sourceY:t,targetX:r,targetY:i,sourceControlX:s,sourceControlY:a,targetControlX:l,targetControlY:c});return[`M${e},${t} C${s},${a} ${l},${c} ${r},${i}`,f,u,p,h]}function Jx(e){return E.memo(({id:t,sourceX:n,sourceY:r,targetX:i,targetY:o,sourcePosition:s,targetPosition:a,label:l,labelStyle:c,labelShowBg:f,labelBgStyle:u,labelBgPadding:p,labelBgBorderRadius:h,style:g,markerEnd:y,markerStart:w,interactionWidth:x})=>{const[b,m,d]=Qx({sourceX:n,sourceY:r,sourcePosition:s,targetX:i,targetY:o,targetPosition:a}),v=e.isInternal?void 0:t;return G.jsx(pc,{id:v,path:b,labelX:m,labelY:d,label:l,labelStyle:c,labelShowBg:f,labelBgStyle:u,labelBgPadding:p,labelBgBorderRadius:h,style:g,markerEnd:y,markerStart:w,interactionWidth:x})})}const j8=Jx({isInternal:!1}),eE=Jx({isInternal:!0});j8.displayName="SimpleBezierEdge";eE.displayName="SimpleBezierEdgeInternal";function tE(e){return E.memo(({id:t,sourceX:n,sourceY:r,targetX:i,targetY:o,label:s,labelStyle:a,labelShowBg:l,labelBgStyle:c,labelBgPadding:f,labelBgBorderRadius:u,style:p,sourcePosition:h=ve.Bottom,targetPosition:g=ve.Top,markerEnd:y,markerStart:w,pathOptions:x,interactionWidth:b})=>{const[m,d,v]=hd({sourceX:n,sourceY:r,sourcePosition:h,targetX:i,targetY:o,targetPosition:g,borderRadius:x?.borderRadius,offset:x?.offset,stepPosition:x?.stepPosition}),_=e.isInternal?void 0:t;return G.jsx(pc,{id:_,path:m,labelX:d,labelY:v,label:s,labelStyle:a,labelShowBg:l,labelBgStyle:c,labelBgPadding:f,labelBgBorderRadius:u,style:p,markerEnd:y,markerStart:w,interactionWidth:b})})}const nE=tE({isInternal:!1}),rE=tE({isInternal:!0});nE.displayName="SmoothStepEdge";rE.displayName="SmoothStepEdgeInternal";function iE(e){return E.memo(({id:t,...n})=>{const r=e.isInternal?void 0:t;return G.jsx(nE,{...n,id:r,pathOptions:E.useMemo(()=>({borderRadius:0,offset:n.pathOptions?.offset}),[n.pathOptions?.offset])})})}const $8=iE({isInternal:!1}),oE=iE({isInternal:!0});$8.displayName="StepEdge";oE.displayName="StepEdgeInternal";function sE(e){return E.memo(({id:t,sourceX:n,sourceY:r,targetX:i,targetY:o,label:s,labelStyle:a,labelShowBg:l,labelBgStyle:c,labelBgPadding:f,labelBgBorderRadius:u,style:p,markerEnd:h,markerStart:g,interactionWidth:y})=>{const[w,x,b]=_x({sourceX:n,sourceY:r,targetX:i,targetY:o}),m=e.isInternal?void 0:t;return G.jsx(pc,{id:m,path:w,labelX:x,labelY:b,label:s,labelStyle:a,labelShowBg:l,labelBgStyle:c,labelBgPadding:f,labelBgBorderRadius:u,style:p,markerEnd:h,markerStart:g,interactionWidth:y})})}const F8=sE({isInternal:!1}),aE=sE({isInternal:!0});F8.displayName="StraightEdge";aE.displayName="StraightEdgeInternal";function lE(e){return E.memo(({id:t,sourceX:n,sourceY:r,targetX:i,targetY:o,sourcePosition:s=ve.Bottom,targetPosition:a=ve.Top,label:l,labelStyle:c,labelShowBg:f,labelBgStyle:u,labelBgPadding:p,labelBgBorderRadius:h,style:g,markerEnd:y,markerStart:w,pathOptions:x,interactionWidth:b})=>
24{const[m,d,v]=xx({sourceX:n,sourceY:r,sourcePosition:s,targetX:i,targetY:o,targetPosition:a,curvature:x?.curvature}),_=e.isInternal?void 0:t;return G.jsx(pc,{id:_,path:m,labelX:d,labelY:v,label:l,labelStyle:c,labelShowBg:f,labelBgStyle:u,labelBgPadding:p,labelBgBorderRadius:h,style:g,markerEnd:y,markerStart:w,interactionWidth:b})})}const B8=lE({isInternal:!1}),cE=lE({isInternal:!0});B8.displayName="BezierEdge";cE.displayName="BezierEdgeInternal";const Cy={default:cE,straight:aE,step:oE,smoothstep:rE,simplebezier:eE},Ry={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},V8=(e,t,n)=>n===ve.Left?e-t:n===ve.Right?e+t:e,H8=(e,t,n)=>n===ve.Top?e-t:n===ve.Bottom?e+t:e,ky="react-flow__edgeupdater";function Ty({position:e,centerX:t,centerY:n,radius:r=10,onMouseDown:i,onMouseEnter:o,onMouseOut:s,type:a}){return G.jsx("circle",{onMouseDown:i,onMouseEnter:o,onMouseOut:s,className:bt([ky,`${ky}-${a}`]),cx:V8(t,r,e),cy:H8(n,r,e),r,stroke:"transparent",fill:"transparent"})}function z8({isReconnectable:e,reconnectRadius:t,edge:n,sourceX:r,sourceY:i,targetX:o,targetY:s,sourcePosition:a,targetPosition:l,onReconnect:c,onReconnectStart:f,onReconnectEnd:u,setReconnecting:p,setUpdateHover:h}){const g=tt(),y=(d,v)=>{if(d.button!==0)return;const{autoPanOnConnect:_,domNode:O,connectionMode:C,connectionRadius:k,lib:A,onConnectStart:T,cancelConnection:M,nodeLookup:I,rfId:P,panBy:S,updateConnection:R}=g.getState(),D=v.type==="target",L=(B,V)=>{p(!1),u?.(B,n,v.type,V)},N=B=>c?.(n,B),$=(B,V)=>{p(!0),f?.(d,n,v.type),T?.(B,V)};vd.onPointerDown(d.nativeEvent,{autoPanOnConnect:_,connectionMode:C,connectionRadius:k,domNode:O,handleId:v.id,nodeId:v.nodeId,nodeLookup:I,isTarget:D,edgeUpdaterType:v.type,lib:A,flowId:P,cancelConnection:M,panBy:S,isValidConnection:(...B)=>g.getState().isValidConnection?.(...B)??!0,onConnect:N,onConnectStart:$,onConnectEnd:(...B)=>g.getState().onConnectEnd?.(...B),onReconnectEnd:L,updateConnection:R,getTransform:()=>g.getState().transform,getFromHandle:()=>g.getState().connection.fromHandle,dragThreshold:g.getState().connectionDragThreshold,handleDomNode:d.currentTarget})},w=d=>y(d,{nodeId:n.target,id:n.targetHandle??null,type:"target"}),x=d=>y(d,{nodeId:n.source,id:n.sourceHandle??null,type:"source"}),b=()=>h(!0),m=()=>h(!1);return G.jsxs(G.Fragment,{children:[(e===!0||e==="source")&&G.jsx(Ty,{position:a,centerX:r,centerY:i,radius:t,onMouseDown:w,onMouseEnter:b,onMouseOut:m,type:"source"}),(e===!0||e==="target")&&G.jsx(Ty,{position:l,centerX:o,centerY:s,radius:t,onMouseDown:x,onMouseEnter:b,onMouseOut:m,type:"target"})]})}function U8({id:e,edgesFocusable:t,edgesReconnectable:n,elementsSelectable:r,onClick:i,onDoubleClick:o,onContextMenu:s,onMouseEnter:a,onMouseMove:l,onMouseLeave:c,reconnectRadius:f,onReconnect:u,onReconnectStart:p,onReconnectEnd:h,rfId:g,edgeTypes:y,noPanClassName:w,onError:x,disableKeyboardA11y:b}){let m=je(J=>J.edgeLookup.get(e));const d=je(J=>J.defaultEdgeOptions);m=d?{...d,...m}:m;let v=m.type||"default",_=y?.[v]||Cy[v];_===void 0&&(x?.("011",Qn.error011(v)),v="default",_=y?.default||Cy.default);const O=!!(m.focusable||t&&typeof m.focusable>"u"),C=typeof u<"u"&&(m.reconnectable||n&&typeof m.reconnectable>"u"),k=!!(m.selectable||r&&typeof m.selectable>"u"),A=E.useRef(null),[T,M]=E.useState(!1),[I,P]=E.useState(!1),S=tt(),{zIndex:R,sourceX:D,sourceY:L,targetX:N,targetY:$,sourcePosition:B,targetPosition:V}=je(E.useCallback(J=>{const re=J.nodeLookup.get(m.source),ue=J.nodeLookup.get(m.target);if(!re||!ue)return{zIndex:m.zIndex,...Ry};const ce=j6({id:e,sourceNode:re,targetNode:ue,sourceHandle:m.sourceHandle||null,targetHandle:m.targetHandle||null,connectionMode:J.connectionMode,onError:x});return{zIndex:k6({selected:m.selected,zIndex:m.zIndex,sourceNode:re,targetNode:ue,elevateOnSelect:J.elevateEdgesOnSelect,zIndexMode:J.zIndexMode}),...ce||Ry}},[m.source,m.target,m.sourceHandle,m.targetHandle,m.selected,m.zIndex]),et),W=E.useMemo(()=>m.markerStart?`url('#${md(m.markerStart,g)}')`:void 0,[m.markerStart,g]),F=E.useMemo(()=>m.markerEnd?`url('#${md(m.markerEnd,g)}')`:void 0,[m.markerEnd,g]);if(m.hidden||D===null||L===null||N===null||$===null)return null;const j=J=>{const{addSelectedEdges:re,unselectNodesAndEdges:ue,multiSelectionActive:ce}=S.getState();k&&(S.setState({nodesSelectionActive:!1}),m.selected&&ce?(ue({nodes:[],edges:[m]}),A.current?.blur()):re([e])),i&&i(J,m)},H=o?J=>{o(J,{...m})}:void 0,z=s?J=>{s(J,{...m})}:void 0,U=a?J=>{a(J,{...m})}:void 0,Y=l?J=>{l(J,{...m})}:void 0,X=c?J=>{c(J,{...m})}:void 0,Q=J=>{if(!b&&sx.includes(J.key)&&k){const{unselectNodesAndEdges:re,addSelectedEdges:ue}=S.getState();J.key==="Escape"?(A.current?.blur(),re({edges:[m]})):ue([e])}};return G.jsx("svg",{style:{zIndex:R},children:G.jsxs("g",{className:bt(["react-flow__edge",`react-flow__edge-${v}`,m.className,w,{selected:m.selected,animated:m.animated,inactive:!k&&!i,updating:T,selectable:k}]),onClick:j,onDoubleClick:H,onContextMenu:z,onMouseEnter:U,onMouseMove:Y,onMouseLeave:X,onKeyDown:O?Q:void 0,tabIndex:O?0:void 0,role:m.ariaRole??(O?"group":"img"),"aria-roledescription":"edge","data-id":e,"data-testid":`rf__edge-${e}`,"aria-label":m.ariaLabel===null?void 0:m.ariaLabel||`Edge from ${m.source} to ${m.target}`,"aria-describedby":O?`${$x}-${g}`:void 0,ref:A,...m.domAttributes,children:[!I&&G.jsx(_,{id:e,source:m.source,target:m.target,type:m.type,selected:m.selected,animated:m.animated,selectable:k,deletable:m.deletable??!0,label:m.label,labelStyle:m.labelStyle,labelShowBg:m.labelShowBg,labelBgStyle:m.labelBgStyle,labelBgPadding:m.labelBgPadding,labelBgBorderRadius:m.labelBgBorderRadius,sourceX:D,sourceY:L,targetX:N,targetY:$,sourcePosition:B,targetPosition:V,data:m.data,style:m.style,sourceHandleId:m.sourceHandle,targetHandleId:m.targetHandle,markerStart:W,markerEnd:F,pathOptions:"pathOptions"in m?m.pathOptions:void 0,interactionWidth:m.interactionWidth}),C&&G.jsx(z8,{edge:m,isReconnectable:C,reconnectRadius:f,onReconnect:u,onReconnectStart:p,onReconnectEnd:h,sourceX:D,sourceY:L,targetX:N,targetY:$,sourcePosition:B,targetPosition:V,setUpdateHover:M,setReconnecting:P})]})})}var W8=E.memo(U8);const q8=e=>({edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function uE({defaultMarkerColor:e,onlyRenderVisibleElements:t,rfId:n,edgeTypes:r,noPanClassName:i,onReconnect:o,onEdgeContextMenu:s,onEdgeMouseEnter:a,onEdgeMouseMove:l,onEdgeMouseLeave:c,onEdgeClick:f,re
vendor: 4,663 bytes, line 24
24connectRadius:u,onEdgeDoubleClick:p,onReconnectStart:h,onReconnectEnd:g,disableKeyboardA11y:y}){const{edgesFocusable:w,edgesReconnectable:x,elementsSelectable:b,onError:m}=je(q8,et),d=T8(t);return G.jsxs("div",{className:"react-flow__edges",children:[G.jsx(D8,{defaultColor:e,rfId:n}),d.map(v=>G.jsx(W8,{id:v,edgesFocusable:w,edgesReconnectable:x,elementsSelectable:b,noPanClassName:i,onReconnect:o,onContextMenu:s,onMouseEnter:a,onMouseMove:l,onMouseLeave:c,onClick:f,reconnectRadius:u,onDoubleClick:p,onReconnectStart:h,onReconnectEnd:g,rfId:n,onError:m,edgeTypes:r,disableKeyboardA11y:y},v))]})}uE.displayName="EdgeRenderer";const Y8=E.memo(uE),K8=e=>`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;function X8({children:e}){const t=je(K8);return G.jsx("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:t},children:e})}function G8(e){const t=Rp(),n=E.useRef(!1);E.useEffect(()=>{!n.current&&t.viewportInitialized&&e&&(setTimeout(()=>e(t),1),n.current=!0)},[e,t.viewportInitialized])}const Z8=e=>e.panZoom?.syncViewport;function Q8(e){const t=je(Z8),n=tt();return E.useEffect(()=>{e&&(t?.(e),n.setState({transform:[e.x,e.y,e.zoom]}))},[e,t]),null}function J8(e){return e.connection.inProgress?{...e.connection,to:xs(e.connection.to,e.transform)}:{...e.connection}}function e9(e){return J8}function t9(e){const t=e9();return je(t,et)}const n9=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function r9({containerStyle:e,style:t,type:n,component:r}){const{nodesConnectable:i,width:o,height:s,isValid:a,inProgress:l}=je(n9,et);return!(o&&i&&l)?null:G.jsx("svg",{style:e,width:o,height:s,className:"react-flow__connectionline react-flow__container",children:G.jsx("g",{className:bt(["react-flow__connection",cx(a)]),children:G.jsx(fE,{style:t,type:n,CustomComponent:r,isValid:a})})})}const fE=({style:e,type:t=mr.Bezier,CustomComponent:n,isValid:r})=>{const{inProgress:i,from:o,fromNode:s,fromHandle:a,fromPosition:l,to:c,toNode:f,toHandle:u,toPosition:p,pointer:h}=t9();if(!i)return;if(n)return G.jsx(n,{connectionLineType:t,connectionLineStyle:e,fromNode:s,fromHandle:a,fromX:o.x,fromY:o.y,toX:c.x,toY:c.y,fromPosition:l,toPosition:p,connectionStatus:cx(r),toNode:f,toHandle:u,pointer:h});let g="";const y={sourceX:o.x,sourceY:o.y,sourcePosition:l,targetX:c.x,targetY:c.y,targetPosition:p};switch(t){case mr.Bezier:[g]=xx(y);break;case mr.SimpleBezier:[g]=Qx(y);break;case mr.Step:[g]=hd({...y,borderRadius:0});break;case mr.SmoothStep:[g]=hd(y);break;default:[g]=_x(y)}return G.jsx("path",{d:g,fill:"none",className:"react-flow__connection-path",style:e})};fE.displayName="ConnectionLine";const i9={};function Ay(e=i9){E.useRef(e),tt(),E.useEffect(()=>{},[e])}function o9(){tt(),E.useRef(!1),E.useEffect(()=>{},[])}function dE({nodeTypes:e,edgeTypes:t,onInit:n,onNodeClick:r,onEdgeClick:i,onNodeDoubleClick:o,onEdgeDoubleClick:s,onNodeMouseEnter:a,onNodeMouseMove:l,onNodeMouseLeave:c,onNodeContextMenu:f,onSelectionContextMenu:u,onSelectionStart:p,onSelectionEnd:h,connectionLineType:g,connectionLineStyle:y,connectionLineComponent:w,connectionLineContainerStyle:x,selectionKeyCode:b,selectionOnDrag:m,selectionMode:d,multiSelectionKeyCode:v,panActivationKeyCode:_,zoomActivationKeyCode:O,deleteKeyCode:C,onlyRenderVisibleElements:k,elementsSelectable:A,defaultViewport:T,translateExtent:M,minZoom:I,maxZoom:P,preventScrolling:S,defaultMarkerColor:R,zoomOnScroll:D,zoomOnPinch:L,panOnScroll:N,panOnScrollSpeed:$,panOnScrollMode:B,zoomOnDoubleClick:V,panOnDrag:W,onPaneClick:F,onPaneMouseEnter:j,onPaneMouseMove:H,onPaneMouseLeave:z,onPaneScroll:U,onPaneContextMenu:Y,paneClickDistance:X,nodeClickDistance:Q,onEdgeContextMenu:J,onEdgeMouseEnter:re,onEdgeMouseMove:ue,onEdgeMouseLeave:ce,reconnectRadius:xe,onReconnect:Oe,onReconnectStart:Ie,onReconnectEnd:Be,noDragClassName:De,noWheelClassName:Ce,noPanClassName:nt,disableKeyboardA11y:ot,nodeExtent:st,rfId:ne,viewport:oe,onViewportChange:be}){return Ay(e),Ay(t),o9(),G8(n),Q8(oe),G.jsx(w8,{onPaneClick:F,onPaneMouseEnter:j,onPaneMouseMove:H,onPaneMouseLeave:z,onPaneContextMenu:Y,onPaneScroll:U,paneClickDistance:X,deleteKeyCode:C,selectionKeyCode:b,selectionOnDrag:m,selectionMode:d,onSelectionStart:p,onSelectionEnd:h,multiSelectionKeyCode:v,panActivationKeyCode:_,zoomActivationKeyCode:O,elementsSelectable:A,zoomOnScroll:D,zoomOnPinch:L,zoomOnDoubleClick:V,panOnScroll:N,panOnScrollSpeed:$,panOnScrollMode:B,panOnDrag:W,defaultViewport:T,translateExtent:M,minZoom:I,maxZoom:P,onSelectionContextMenu:u,preventScrolling:S,noDragClassName:De,n
24oWheelClassName:Ce,noPanClassName:nt,disableKeyboardA11y:ot,onViewportChange:be,isControlledViewport:!!oe,children:G.jsxs(X8,{children:[G.jsx(Y8,{edgeTypes:t,onEdgeClick:i,onEdgeDoubleClick:s,onReconnect:Oe,onReconnectStart:Ie,onReconnectEnd:Be,onlyRenderVisibleElements:k,onEdgeContextMenu:J,onEdgeMouseEnter:re,onEdgeMouseMove:ue,onEdgeMouseLeave:ce,reconnectRadius:xe,defaultMarkerColor:R,noPanClassName:nt,disableKeyboardA11y:ot,rfId:ne}),G.jsx(r9,{style:y,type:g,component:w,containerStyle:x}),G.jsx("div",{className:"react-flow__edgelabel-renderer"}),G.jsx(k8,{nodeTypes:e,onNodeClick:r,onNodeDoubleClick:o,onNodeMouseEnter:a,onNodeMouseMove:l,onNodeMouseLeave:c,onNodeContextMenu:f,nodeClickDistance:Q,onlyRenderVisibleElements:k,noPanClassName:nt,noDragClassName:De,disableKeyboardA11y:ot,nodeExtent:st,rfId:ne}),G.jsx("div",{className:"react-flow__viewport-portal"})]})})}dE.displayName="GraphView";const s9=E.memo(dE),Ly=({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,width:i,height:o,fitView:s,fitViewOptions:a,minZoom:l=.5,maxZoom:c=2,nodeOrigin:f,nodeExtent:u,zIndexMode:p="basic"}={})=>{const h=new Map,g=new Map,y=new Map,w=new Map,x=r??t??[],b=n??e??[],m=f??[0,0],d=u??Ko;Px(y,w,x);const v=gd(b,h,g,{nodeOrigin:m,nodeExtent:d,zIndexMode:p});let _=[0,0,1];if(s&&i&&o){const O=bs(h,{filter:T=>!!((T.width||T.initialWidth)&&(T.height||T.initialHeight))}),{x:C,y:k,zoom:A}=xp(O,i,o,l,c,a?.padding??.1);_=[C,k,A]}return{rfId:"1",width:i??0,height:o??0,transform:_,nodes:b,nodesInitialized:v,nodeLookup:h,parentLookup:g,edges:x,edgeLookup:w,connectionLookup:y,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:n!==void 0,hasDefaultEdges:r!==void 0,panZoom:null,minZoom:l,maxZoom:c,translateExtent:Ko,nodeExtent:d,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:$i.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:m,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:s??!1,fitViewOptions:a,fitViewResolver:null,connection:{...lx},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:_6,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:ax,zIndexMode:p,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},a9=({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,width:i,height:o,fitView:s,fitViewOptions:a,minZoom:l,maxZoom:c,nodeOrigin:f,nodeExtent:u,zIndexMode:p})=>OF((h,g)=>{async function y(){const{nodeLookup:w,panZoom:x,fitViewOptions:b,fitViewResolver:m,width:d,height:v,minZoom:_,maxZoom:O}=g();
vendor: 16,573 bytes, line 24
24x&&(await x6({nodes:w,width:d,height:v,panZoom:x,minZoom:_,maxZoom:O},b),m?.resolve(!0),h({fitViewResolver:null}))}return{...Ly({nodes:e,edges:t,width:i,height:o,fitView:s,fitViewOptions:a,minZoom:l,maxZoom:c,nodeOrigin:f,nodeExtent:u,defaultNodes:n,defaultEdges:r,zIndexMode:p}),setNodes:w=>{const{nodeLookup:x,parentLookup:b,nodeOrigin:m,elevateNodesOnSelect:d,fitViewQueued:v,zIndexMode:_}=g(),O=gd(w,x,b,{nodeOrigin:m,nodeExtent:u,elevateNodesOnSelect:d,checkEquality:!0,zIndexMode:_});v&&O?(y(),h({nodes:w,nodesInitialized:O,fitViewQueued:!1,fitViewOptions:void 0})):h({nodes:w,nodesInitialized:O})},setEdges:w=>{const{connectionLookup:x,edgeLookup:b}=g();Px(x,b,w),h({edges:w})},setDefaultNodesAndEdges:(w,x)=>{if(w){const{setNodes:b}=g();b(w),h({hasDefaultNodes:!0})}if(x){const{setEdges:b}=g();b(x),h({hasDefaultEdges:!0})}},updateNodeInternals:w=>{const{triggerNodeChanges:x,nodeLookup:b,parentLookup:m,domNode:d,nodeOrigin:v,nodeExtent:_,debug:O,fitViewQueued:C,zIndexMode:k}=g(),{changes:A,updatedInternals:T}=W6(w,b,m,d,v,_,k);T&&(V6(b,m,{nodeOrigin:v,nodeExtent:_,zIndexMode:k}),C?(y(),h({fitViewQueued:!1,fitViewOptions:void 0})):h({}),A?.length>0&&(O&&console.log("React Flow: trigger node changes",A),x?.(A)))},updateNodePositions:(w,x=!1)=>{const b=[];let m=[];const{nodeLookup:d,triggerNodeChanges:v,connection:_,updateConnection:O,onNodesChangeMiddlewareMap:C}=g();for(const[k,A]of w){const T=d.get(k),M=!!(T?.expandParent&&T?.parentId&&A?.position),I={id:k,type:"position",position:M?{x:Math.max(0,A.position.x),y:Math.max(0,A.position.y)}:A.position,dragging:x};if(T&&_.inProgress&&_.fromNode.id===T.id){const P=ni(T,_.fromHandle,ve.Left,!0);O({..._,from:P})}M&&T.parentId&&b.push({id:k,parentId:T.parentId,rect:{...A.internals.positionAbsolute,width:A.measured.width??0,height:A.measured.height??0}}),m.push(I)}if(b.length>0){const{parentLookup:k,nodeOrigin:A}=g(),T=Cp(b,d,k,A);m.push(...T)}for(const k of C.values())m=k(m);v(m)},triggerNodeChanges:w=>{const{onNodesChange:x,setNodes:b,nodes:m,hasDefaultNodes:d,debug:v}=g();if(w?.length){if(d){const _=Vx(w,m);b(_)}v&&console.log("React Flow: trigger node changes",w),x?.(w)}},triggerEdgeChanges:w=>{const{onEdgesChange:x,setEdges:b,edges:m,hasDefaultEdges:d,debug:v}=g();if(w?.length){if(d){const _=Hx(w,m);b(_)}v&&console.log("React Flow: trigger edge changes",w),x?.(w)}},addSelectedNodes:w=>{const{multiSelectionActive:x,edgeLookup:b,nodeLookup:m,triggerNodeChanges:d,triggerEdgeChanges:v}=g();if(x){const _=w.map(O=>Tr(O,!0));d(_);return}d(vi(m,new Set([...w]),!0)),v(vi(b))},addSelectedEdges:w=>{const{multiSelectionActive:x,edgeLookup:b,nodeLookup:m,triggerNodeChanges:d,triggerEdgeChanges:v}=g();if(x){const _=w.map(O=>Tr(O,!0));v(_);return}v(vi(b,new Set([...w]))),d(vi(m,new Set,!0))},unselectNodesAndEdges:({nodes:w,edges:x}={})=>{const{edges:b,nodes:m,nodeLookup:d,triggerNodeChanges:v,triggerEdgeChanges:_}=g(),O=w||m,C=x||b,k=[];for(const T of O){if(!T.selected)continue;const M=d.get(T.id);M&&(M.selected=!1),k.push(Tr(T.id,!1))}const A=[];for(const T of C)T.selected&&A.push(Tr(T.id,!1));v(k),_(A)},setMinZoom:w=>{const{panZoom:x,maxZoom:b}=g();x?.setScaleExtent([w,b]),h({minZoom:w})},setMaxZoom:w=>{const{panZoom:x,minZoom:b}=g();x?.setScaleExtent([b,w]),h({maxZoom:w})},setTranslateExtent:w=>{g().panZoom?.setTranslateExtent(w),h({translateExtent:w})},resetSelectedElements:()=>{const{edges:w,nodes:x,triggerNodeChanges:b,triggerEdgeChanges:m,elementsSelectable:d}=g();if(!d)return;const v=x.reduce((O,C)=>C.selected?[...O,Tr(C.id,!1)]:O,[]),_=w.reduce((O,C)=>C.selected?[...O,Tr(C.id,!1)]:O,[]);b(v),m(_)},setNodeExtent:w=>{const{nodes:x,nodeLookup:b,parentLookup:m,nodeOrigin:d,elevateNodesOnSelect:v,nodeExtent:_,zIndexMode:O}=g();w[0][0]===_[0][0]&&w[0][1]===_[0][1]&&w[1][0]===_[1][0]&&w[1][1]===_[1][1]||(gd(x,b,m,{nodeOrigin:d,nodeExtent:w,elevateNodesOnSelect:v,checkEquality:!1,zIndexMode:O}),h({nodeExtent:w}))},panBy:w=>{const{transform:x,width:b,height:m,panZoom:d,translateExtent:v}=g();return q6({delta:w,panZoom:d,transform:x,translateExtent:v,width:b,height:m})},setCenter:async(w,x,b)=>{const{width:m,height:d,maxZoom:v,panZoom:_}=g();if(!_)return Promise.resolve(!1);const O=typeof b?.zoom<"u"?b.zoom:v;return await _.setViewport({x:m/2-w*O,y:d/2-x*O,zoom:O},{duration:b?.duration,ease:b?.ease,interpolate:b?.interpolate}),Promise.resolve(!0)},cancelConnection:()=>{h({connection:{...lx}})},updateConnection:w=>{h({connection:w})},reset:()=>h({...Ly()})}},Object.is);function l9({initialNodes:e,initialEdges:t,defaultNodes:n,defaultEdges:r,initialWidth:i,initialHeight:o,initialMinZoom:s,initialMaxZoom:a,initialFitViewOptions:l,fitView:c,nodeOrigin:f,nodeExtent:u,zIndexMode:p,children:h}){const[g]=E.useState(()=>a9({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,width:i,height:o,fitView:c,minZoom:s,maxZoom:a,fitViewOptions:l,nodeOrigin:f,nodeExtent:u,zIndexMode:p}));return G.jsx(PF,{value:g,children:G.jsx(XF,{children:h})})}function c9({children:e,nodes:t,edges:n,defaultNodes:r,defaultEdges:i,width:o,height:s,fitView:a,fitViewOptions:l,minZoom:c,maxZoom:f,nodeOrigin:u,nodeExtent:p,zIndexMode:h}){return E.useContext(uc)?G.jsx(G.Fragment,{children:e}):G.jsx(l9,{initialNodes:t,initialEdges:n,defaultNodes:r,defaultEdges:i,initialWidth:o,initialHeight:s,fitView:a,initialFitViewOptions:l,initialMinZoom:c,initialMaxZoom:f,nodeOrigin:u,nodeExtent:p,zIndexMode:h,children:e})}const u9={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function f9({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,className:i,nodeTypes:o,edgeTypes:s,onNodeClick:a,onEdgeClick:l,onInit:c,onMove:f,onMoveStart:u,onMoveEnd:p,onConnect:h,onConnectStart:g,onConnectEnd:y,onClickConnectStart:w,onClickConnectEnd:x,onNodeMouseEnter:b,onNodeMouseMove:m,onNodeMouseLeave:d,onNodeContextMenu:v,onNodeDoubleClick:_,onNodeDragStart:O,onNodeDrag:C,onNodeDragStop:k,onNodesDelete:A,onEdgesDelete:T,onDelete:M,onSelectionChange:I,onSelectionDragStart:P,onSelectionDrag:S,onSelectionDragStop:R,onSelectionContextMenu:D,onSelectionStart:L,onSelectionEnd:N,onBeforeDelete:$,connectionMode:B,connectionLineType:V=mr.Bezier,connectionLineStyle:W,connectionLineComponent:F,connectionLineContainerStyle:j,deleteKeyCode:H="Backspace",selectionKeyCode:z="Shift",selectionOnDrag:U=!1,selectionMode:Y=Xo.Full,panActivationKeyCode:X="Space",multiSelectionKeyCode:Q=Zo()?"Meta":"Control",zoomActivationKeyCode:J=Zo()?"Meta":"Control",snapToGrid:re,snapGrid:ue,onlyRenderVisibleElements:ce=!1,selectNodesOnDrag:xe,nodesDraggable:Oe,autoPanOnNodeFocus:Ie,nodesConnectable:Be,nodesFocusable:De,nodeOrigin:Ce=Fx,edgesFocusable:nt,edgesReconnectable:ot,elementsSelectable:st=!0,defaultViewport:ne=FF,minZoom:oe=.5,maxZoom:be=2,translateExtent:Te=Ko,preventScrolling:Ve=!0,nodeExtent:Ye,defaultMarkerColor:Qe="#b1b1b7",zoomOnScroll:Lt=!0,zoomOnPinch:Et=!0,panOnScroll:Z=!1,panOnScrollSpeed:ee=.5,panOnScrollMode:se=Hr.Free,zoomOnDoubleClick:Re=!0,panOnDrag:Ee=!0,onPaneClick:He,onPaneMouseEnter:Ke,onPaneMouseMove:dt,onPaneMouseLeave:en,onPaneScroll:at,onPaneContextMenu:tn,paneClickDistance:nn=1,nodeClickDistance:_e=0,children:Xe,onReconnect:de,onReconnectStart:ke,onReconnectEnd:wt,onEdgeContextMenu:fn,onEdgeDoubleClick:ie,onEdgeMouseEnter:he,onEdgeMouseMove:ae,onEdgeMouseLeave:Le,reconnectRadius:rt=10,onNodesChange:Mt,onEdgesChange:Pt,noDragClassName:pt="nodrag",noWheelClassName:Je="nowheel",noPanClassName:ze="nopan",fitView:dn,fitViewOptions:Cr,connectOnClick:ii,attributionPosition:oi,proOptions:fe,defaultEdgeOptions:q,elevateNodesOnSelect:te=!0,elevateEdgesOnSelect:le=!1,disableKeyboardA11y:pe=!1,autoPanOnConnect:qe,autoPanOnNodeDrag:Ge,autoPanSpeed:lt,connectionRadius:rn,isValidConnection:pn,onError:Gi,style:xt,id:Zi,nodeDragThreshold:Es,connectionDragThreshold:yE,viewport:bE,onViewportChange:wE,width:xE,height:EE,colorMode:_E="light",debug:SE,onScroll:Lp,ariaLabelConfig:OE,zIndexMode:Mp="basic",...PE},CE){const hc=Zi||"1",RE=zF(_E),kE=E.useCallback(Ip=>{Ip.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),Lp?.(Ip)},[Lp]);return G.jsx("div",{"data-testid":"rf__wrapper",...PE,onScroll:kE,style:{...xt,...u9},ref:CE,className:bt(["react-flow",i,RE]),id:Zi,role:"application",children:G.jsxs(c9,{nodes:e,edges:t,width:xE,height:EE,fitView:dn,fitViewOptions:Cr,minZoom:oe,maxZoom:be,nodeOrigin:Ce,nodeExtent:Ye,zIndexMode:Mp,children:[G.jsx(s9,{onInit:c,onNodeClick:a,onEdgeClick:l,onNodeMouseEnter:b,onNodeMouseMove:m,onNodeMouseLeave:d,onNodeContextMenu:v,onNodeDoubleClick:_,nodeTypes:o,edgeTypes:s,connectionLineType:V,connectionLineStyle:W,connectionLineComponent:F,connectionLineContainerStyle:j,selectionKeyCode:z,selectionOnDrag:U,selectionMode:Y,deleteKeyCode:H,multiSelectionKeyCode:Q,panActivationKeyCode:X,zoomActivationKeyCode:J,onlyRenderVisibleElements:ce,defaultViewport:ne,translateExtent:Te,minZoom:oe,maxZoom:be,preventScrolling:Ve,zoomOnScroll:Lt,zoomOnPinch:Et,zoomOnDoubleClick:Re,panOnScroll:Z,panOnScrollSpeed:ee,panOnScrollMode:se,panOnDrag:Ee,onPaneClick:He,onPaneMouseEnter:Ke,onPaneMouseMove:dt,onPaneMouseLeave:en,onPaneScroll:at,onPaneContextMenu:tn,paneClickDistance:nn,nodeClickDistance:_e,onSelectionContextMenu:D,onSelectionStart:L,onSelectionEnd:N,onReconnect:de,onReconnectStart:ke,onReconnectEnd:wt,onEdgeContextMenu:fn,onEdgeDoubleClick:ie,onEdgeMouseEnter:he,onEdgeMouseMove:ae,onEdgeMouseLeave:Le,reconnectRadius:rt,defaultMarkerColor:Qe,noDragClassName:pt,noWheelClassName:Je,noPanClassName:ze,rfId:hc,disableKeyboardA11y:pe,nodeExtent:Ye,viewport:bE,onViewportChange:wE}),G.jsx(HF,{nodes:e,edges:t,defaultNodes:n,defaultEdges:r,onConnect:h,onConnectStart:g,onConnectEnd:y,onClickConnectStart:w,onClickConnectEnd:x,nodesDraggable:Oe,autoPanOnNodeFocus:Ie,nodesConnectable:Be,nodesFocusable:De,edgesFocusable:nt,edgesReconnectable:ot,elementsSelectable:st,elevateNodesOnSelect:te,elevateEdgesOnSelect:le,minZoom:oe,maxZoom:be,nodeExtent:Ye,onNodesChange:Mt,onEdgesChange:Pt,snapToGrid:re,snapGrid:ue,connectionMode:B,translateExtent:Te,connectOnClick:ii,defaultEdgeOptions:q,fitView:dn,fitViewOptions:Cr,onNodesDelete:A,onEdgesDelete:T,onDelete:M,onNodeDragStart:O,onNodeDrag:C,onNodeDragStop:k,onSelectionDrag:S,onSelectionDragStart:P,onSelectionDragStop:R,onMove:f,onMoveStart:u,onMoveEnd:p,noPanClassName:ze,nodeOrigin:Ce,rfId:hc,autoPanOnConnect:qe,autoPanOnNodeDrag:Ge,autoPanSpeed:lt,onError:Gi,connectionRadius:rn,isValidConnection:pn,selectNodesOnDrag:xe,nodeDragThreshold:Es,connectionDragThreshold:yE,onBeforeDelete:$,debug:SE,ariaLabelConfig:OE,zIndexMode:Mp}),G.jsx($F,{onSelectionChange:I}),Xe,G.jsx(MF,{proOptions:fe,position:oi}),G.jsx(LF,{rfId:hc,disableKeyboardA11y:pe})]})})}var _z=zx(f9);function Sz(e){const[t,n]=E.useState(e),r=E.useCallback(i=>n(o=>Vx(i,o)),[]);return[t,n,r]}function Oz(e){const[t,n]=E.useState(e),r=E.useCallback(i=>n(o=>Hx(i,o)),[]);return[t,n,r]}function d9({dimensions:e,lineWidth:t,variant:n,className:r}){return G.jsx("path",{strokeWidth:t,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:bt(["react-flow__background-pattern",n,r])})}function p9({radius:e,className:t}){return G.jsx("circle",{cx:e,cy:e,r:e,className:bt(["react-flow__background-pattern","dots",t])})}var xr;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(xr||(xr={}));const h9={[xr.Dots]:1,[xr.Lines]:1,[xr.Cross]:6},m9=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function pE({id:e,variant:t=xr.Dots,gap:n=20,size:r,lineWidth:i=1,offset:o=0,color:s,bgColor:a,style:l,className:c,patternClassName:f}){const u=E.useRef(null),{transform:p,patternId:h}=je(m9,et),g=r||h9[t],y=t===xr.Dots,w=t===xr.Cross,x=Array.isArray(n)?n:[n,n],b=[x[0]*p[2]||1,x[1]*p[2]||1],m=g*p[2],d=Array.isArray(o)?o:[o,o],v=w?[m,m]:b,_=[d[0]*p[2]||1+v[0]/2,d[1]*p[2]||1+v[1]/2],O=`${h}${e||""}`;return G.jsxs("svg",{className:bt(["react-flow__background",c]),style:{...l,...dc,"--xy-background-color-props":a,"--xy-background-pattern-color-props":s},ref:u,"data-testid":"rf__background",children:[G.jsx("pattern",{id:O,x:p[0]%b[0],y:p[1]%b[1],width:b[0],height:b[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${_[0]},-${_[1]})`,children:y?G.jsx(p9,{radius:m/2,className:f}):G.jsx(d9,{dimensions:v,lineWidth:i,variant:t,className:f})}),G.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${O})`})]})}pE.displayName="Background";const Pz=E.memo(pE);function g9(){return G.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:G.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function v9(){return G.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:G.jsx("path",{d:"M0 0h32v4.2H0z"})})}function y9(){return G.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:G.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function b9(){return G.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:G.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function w9(){return G.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:G.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function sa({children:e,className:t,...n}){return G.jsx("button",{type:"button",className:bt(["react-flow__controls-button",t]),...n,children:e})}const x9=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom,ariaLabelConfig:e.ariaLabelConfig});function hE({style:e,showZoom:t=!0,showFitView:n=!0,showInteractive:r=!0,fitViewOptions:i,onZoomIn:o,onZoomOut:s,onFitView:a,onInteractiveChange:l,className:c,children:f,position:u="bottom-left",orientation:p="vertical","aria-label":h}){const g=tt(),{isInteractive:y,minZoomReached:w,maxZoomReached:x,ariaLabelConfig:b}=je(x9,et),{zoomIn:m,zoomOut:d,fitView:v}=Rp(),_=()=>{m(),o?.()},O=()=>{d(),s?.()},C=()=>{v(i),a?.()},k=()=>{g.setState({nodesDraggable:!y,nodesConnectable:!y,elementsSelectable:!y}),l?.(!y)},A=p==="horizontal"?"horizontal":"vertical";return G.jsxs(fc,{className:bt(["react-flow__controls",A,c]),position:u,style:e,"data-testid":"rf__controls","aria-label":h??b["controls.ariaLabel"],children:[t&&G.jsxs(G.Fragment,{children:[G.jsx(sa,{onClick:_,className:"react-flow__controls-zoomin",title:b["controls.zoomIn.ariaLabel"],"aria-label":b["controls.zoomIn.ariaLabel"],disabled:x,children:G.jsx(g9,{})}),G.jsx(sa,{onClick:O,className:"react-flow__controls-zoomout",title:b["controls.zoomOut.ariaLabel"],"aria-label":b["controls.zoomOut.ariaLabel"],disabled:w,children:G.jsx(v9,{})})]}),n&&G.jsx(sa,{className:"react-flow__controls-fitview",onClick:C,title:b["controls.fitView.ariaLabel"],"aria-label":b["controls.fitView.ariaLabel"],children:G.jsx(y9,{})}),r&&G.jsx(sa,{className:"react-flow__controls-interactive",onClick:k,title:b["controls.interactive.ariaLabel"],"aria-label":b["controls.interactive.ariaLabel"],children:y?G.jsx(w9,{}):G.jsx(b9,{})}),f]})}hE.displayName="Controls";const Cz=E.memo(hE);function E9({id:e,x:t,y:n,width:r,height:i,style:o,color:s,strokeColor:a,strokeWidth:l,className:c,borderRadius:f,shapeRendering:u,selected:p,onClick:h}){const{background:g,backgroundColor:y}=o||{},w=s||g||y;return G.jsx("rect",{className:bt(["react-flow__minimap-node",{selected:p},c]),x:t,y:n,rx:f,ry:f,width:r,height:i,style:{fill:w,stroke:a,strokeWidth:l},shapeRendering:u,onClick:h?x=>h(x,e):void 0})}const _9=E.memo(E9),S9=e=>e.nodes.map(t=>
24t.id),qu=e=>e instanceof Function?e:()=>e;function O9({nodeStrokeColor:e,nodeColor:t,nodeClassName:n="",nodeBorderRadius:r=5,nodeStrokeWidth:i,nodeComponent:o=_9,onClick:s}){const a=je(S9,et),l=qu(t),c=qu(e),f=qu(n),u=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return G.jsx(G.Fragment,{children:a.map(p=>G.jsx(C9,{id:p,nodeColorFunc:l,nodeStrokeColorFunc:c,nodeClassNameFunc:f,nodeBorderRadius:r,nodeStrokeWidth:i,NodeComponent:o,onClick:s,shapeRendering:u},p))})}function P9({id:e,nodeColorFunc:t,nodeStrokeColorFunc:n,nodeClassNameFunc:r,nodeBorderRadius:i,nodeStrokeWidth:o,shapeRendering:s,NodeComponent:a,onClick:l}){const{node:c,x:f,y:u,width:p,height:h}=je(g=>{const y=g.nodeLookup.get(e);if(!y)return{node:void 0,x:0,y:0,width:0,height:0};const w=y.internals.userNode,{x,y:b}=y.internals.positionAbsolute,{width:m,height:d}=dr(w);return{node:w,x,y:b,width:m,height:d}},et);return!c||c.hidden||!mx(c)?null:G.jsx(a,{x:f,y:u,width:p,height:h,style:c.style,selected:!!c.selected,className:r(c),color:t(c),borderRadius:i,strokeColor:n(c),strokeWidth:o,shapeRendering:s,onClick:l,id:c.id})}const C9=E.memo(P9);var R9=E.memo(O9);const k9=200,T9=150,A9=e=>!e.hidden,L9=e=>{const t={x:-e.transform[0]/e.transform[2],y:-e.transform[1]/e.transform[2],width:e.width/e.transform[2],height:e.height/e.transform[2]};return{viewBB:t,boundingRect:e.nodeLookup.size>0?hx(bs(e.nodeLookup,{filter:A9}),t):t,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height,ariaLabelConfig:e.ariaLabelConfig}},M9="react-flow__minimap-desc";function mE({style:e,className:t,nodeStrokeColor:n,nodeColor:r,nodeClassName:i="",nodeBorderRadius:o=5,nodeStrokeWidth:s,nodeComponent:a,bgColor:l,maskColor:c,maskStrokeColor:f,maskStrokeWidth:u,position:p="bottom-right",onClick:h,onNodeClick:g,pannable:y=!1,zoomable:w=!1,ariaLabel:x,inversePan:b,zoomStep:m=1,offsetScale:d=5}){const v=tt(),_=E.useRef(null),{boundingRect:O,viewBB:C,rfId:k,panZoom:A,translateExtent:T,flowWidth:M,flowHeight:I,ariaLabelConfig:P}=je(L9,et),S=e?.width??k9,R=e?.height??T9,D=O.width/S,L=O.height/R,N=Math.max(D,L),$=N*S,B=N*R,V=d*N,W=O.x-($-O.width)/2-V,F=O.y-(B-O.height)/2-V,j=$+V*2,H=B+V*2,z=`${M9}-${k}`,U=E.useRef(0),Y=E.useRef();U.current=N,E.useEffect(()=>{if(_.current&&A)return Y.current=tF({domNode:_.current,panZoom:A,getTransform:()=>v.getState().transform,getViewScale:()=>U.current}),()=>{Y.current?.destroy()}},[A]),E.useEffect(()=>{Y.current?.update({translateExtent:T,width:M,height:I,inversePan:b,pannable:y,zoomStep:m,zoomable:w})},[y,w,b,m,T,M,I]);const X=h?re=>{const[ue,ce]=Y.current?.pointer(re)||[0,0];h(re,{x:ue,y:ce})}:void 0,Q=g?E.useCallback((re,ue)=>{const ce=v.getState().nodeLookup.get(ue).internals.userNode;g(re,ce)},[]):void 0,J=x??P["minimap.ariaLabel"];return G.jsx(fc,{position:p,style:{...e,"--xy-minimap-background-color-props":typeof l=="string"?l:void 0,"--xy-minimap-mask-background-color-props":typeof c=="string"?c:void 0,"--xy-minimap-mask-stroke-color-props":typeof f=="string"?f:void 0,"--xy-minimap-mask-stroke-width-props":typeof u=="number"?u*N:void 0,"--xy-minimap-node-background-color-props":typeof r=="string"?r:void 0,"--xy-minimap-node-stroke-color-props":typeof n=="string"?n:void 0,"--xy-minimap-node-stroke-width-props":typeof s=="number"?s:void 0},className:bt(["react-flow__minimap",t]),"data-testid":"rf__minimap",children:G.jsxs("svg",{width:S,height:R,viewBox:`${W} ${F} ${j} ${H}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":z,ref:_,onClick:X,children:[J&&G.jsx("title",{id:z,children:J}),G.jsx(R9,{onClick:Q,nodeColor:r,nodeStrokeColor:n,nodeBorderRadius:o,nodeClassName:i,nodeStrokeWidth:s,nodeComponent:a}),G.jsx("path",{className:"react-flow__minimap-mask",d:`M${W-V},${F-V}h${j+V*2}v${H+V*2}h${-j-V*2}z
25        M${C.x},${C.y}h${C.width}v${C.height}h${-C.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}mE.displayName="MiniMap";E.memo(mE);const I9=e=>t=>e?`${Math.max(1/t.transform[2],1)}`:void 0,D9={[Hi.Line]:"right",[Hi.Handle]:"bottom-right"};function N9({nodeId:e,position:t,variant:n=Hi.Handle,className:r,style:i=void 0,children:o,color:s,minWidth:a=10,minHeight:l=10,maxWidth:c=Number.MAX_VALUE,maxHeight:f=Number.MAX_VALUE,keepAspectRatio:u=!1,resizeDirection:p,autoScale:h=!0,shouldResize:g,onResizeStart:y,onResize:w,onResizeEnd:x}){const b=Yx(),m=typeof e=="string"?e:b,d=tt(),v=E.useRef(null),_=n===Hi.Handle,O=je(E.useCallback(I9(_&&h),[_,h]),et),C=E.useRef(null),k=t??D9[n];E.useEffect(()=>{if(!(!v.current||!m))return C.current||(C.current=mF({domNode:v.current,nodeId:m,getStoreItems:()=>
25{const{nodeLookup:T,transform:M,snapGrid:I,snapToGrid:P,nodeOrigin:S,domNode:R}=d.getState();return{nodeLookup:T,transform:M,snapGrid:I,snapToGrid:P,nodeOrigin:S,paneDomNode:R}},onChange:(T,M)=>{const{triggerNodeChanges:I,nodeLookup:P,parentLookup:S,nodeOrigin:R}=d.getState(),D=[],L={x:T.x,y:T.y},N=P.get(m);if(N&&N.expandParent&&N.parentId){const $=N.origin??R,B=T.width??N.measured.width??0,V=T.height??N.measured.height??0,W={id:N.id,parentId:N.parentId,rect:{width:B,height:V,...gx({x:T.x??N.position.x,y:T.y??N.position.y},{width:B,height:V},N.parentId,P,$)}},F=Cp([W],P,S,R);D.push(...F),L.x=T.x?Math.max($[0]*B,T.x):void 0,L.y=T.y?Math.max($[1]*V,T.y):void 0}if(L.x!==void 0&&L.y!==void 0){const $={id:m,type:"position",position:{...L}};D.push($)}if(T.width!==void 0&&T.height!==void 0){const B={id:m,type:"dimensions",resizing:!0,setAttributes:p?p==="horizontal"?"width":"height":!0,dimensions:{width:T.width,height:T.height}};D.push(B)}for(const $ of M){const B={...$,type:"position"};D.push(B)}I(D)},onEnd:({width:T,height:M})=>{const I={id:m,type:"dimensions",resizing:!1,dimensions:{width:T,height:M}};d.getState().triggerNodeChanges([I])}})),C.current.update({controlPosition:k,boundaries:{minWidth:a,minHeight:l,maxWidth:c,maxHeight:f},keepAspectRatio:u,resizeDirection:p,onResizeStart:y,onResize:w,onResizeEnd:x,shouldResize:g}),()=>{C.current?.destroy()}},[k,a,l,c,f,u,y,w,x,g]);const A=k.split("-");return G.jsx("div",{className:bt(["react-flow__resize-control","nodrag",...A,n,r]),ref:v,style:{...i,scale:O,...s&&{[_?"backgroundColor":"borderColor"]:s}},children:o})}E.memo(N9);var We=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Mn=We((e,t)=>{var n=Object.defineProperty,r=(I,P,S)=>P in I?n(I,P,{enumerable:!0,configurable:!0,writable:!0,value:S}):I[P]=S,i=(I,P)=>()=>(P||I((P={exports:{}}).exports,P),P.exports),o=(I,P,S)=>r(I,typeof P!="symbol"?P+"":P,S),s=i((I,P)=>{var S="\0",R="\0",D="�",L=class{constructor(F){o(this,"_isDirected",!0),o(this,"_isMultigraph",!1),o(this,"_isCompound",!1),o(this,"_label"),o(this,"_defaultNodeLabelFn",()=>{}),o(this,"_defaultEdgeLabelFn",()=>{}),o(this,"_nodes",{}),o(this,"_in",{}),o(this,"_preds",{}),o(this,"_out",{}),o(this,"_sucs",{}),o(this,"_edgeObjs",{}),o(this,"_edgeLabels",{}),o(this,"_nodeCount",0),o(this,"_edgeCount",0),o(this,"_parent"),o(this,"_children"),F&&(this._isDirected=Object.hasOwn(F,"directed")?F.directed:!0,this._isMultigraph=Object.hasOwn(F,"multigraph")?F.multigraph:!1,this._isCompound=Object.hasOwn(F,"compound")?F.compound:!1),this._isCompound&&
vendor: 6,249 bytes, line 25
25(this._parent={},this._children={},this._children[R]={})}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(F){return this._label=F,this}graph(){return this._label}setDefaultNodeLabel(F){return this._defaultNodeLabelFn=F,typeof F!="function"&&(this._defaultNodeLabelFn=()=>F),this}nodeCount(){return this._nodeCount}nodes(){return Object.keys(this._nodes)}sources(){var F=this;return this.nodes().filter(j=>Object.keys(F._in[j]).length===0)}sinks(){var F=this;return this.nodes().filter(j=>Object.keys(F._out[j]).length===0)}setNodes(F,j){var H=arguments,z=this;return F.forEach(function(U){H.length>1?z.setNode(U,j):z.setNode(U)}),this}setNode(F,j){return Object.hasOwn(this._nodes,F)?(arguments.length>1&&(this._nodes[F]=j),this):(this._nodes[F]=arguments.length>1?j:this._defaultNodeLabelFn(F),this._isCompound&&(this._parent[F]=R,this._children[F]={},this._children[R][F]=!0),this._in[F]={},this._preds[F]={},this._out[F]={},this._sucs[F]={},++this._nodeCount,this)}node(F){return this._nodes[F]}hasNode(F){return Object.hasOwn(this._nodes,F)}removeNode(F){var j=this;if(Object.hasOwn(this._nodes,F)){var H=z=>j.removeEdge(j._edgeObjs[z]);delete this._nodes[F],this._isCompound&&(this._removeFromParentsChildList(F),delete this._parent[F],this.children(F).forEach(function(z){j.setParent(z)}),delete this._children[F]),Object.keys(this._in[F]).forEach(H),delete this._in[F],delete this._preds[F],Object.keys(this._out[F]).forEach(H),delete this._out[F],delete this._sucs[F],--this._nodeCount}return this}setParent(F,j){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(j===void 0)j=R;else{j+="";for(var H=j;H!==void 0;H=this.parent(H))if(H===F)throw new Error("Setting "+j+" as parent of "+F+" would create a cycle");this.setNode(j)}return this.setNode(F),this._removeFromParentsChildList(F),this._parent[F]=j,this._children[j][F]=!0,this}_removeFromParentsChildList(F){delete this._children[this._parent[F]][F]}parent(F){if(this._isCompound){var j=this._parent[F];if(j!==R)return j}}children(F=R){if(this._isCompound){var j=this._children[F];if(j)return Object.keys(j)}else{if(F===R)return this.nodes();if(this.hasNode(F))return[]}}predecessors(F){var j=this._preds[F];if(j)return Object.keys(j)}successors(F){var j=this._sucs[F];if(j)return Object.keys(j)}neighbors(F){var j=this.predecessors(F);if(j){let z=new Set(j);for(var H of this.successors(F))z.add(H);return Array.from(z.values())}}isLeaf(F){var j;return this.isDirected()?j=this.successors(F):j=this.neighbors(F),j.length===0}filterNodes(F){var j=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});j.setGraph(this.graph());var H=this;Object.entries(this._nodes).forEach(function([Y,X]){F(Y)&&j.setNode(Y,X)}),Object.values(this._edgeObjs).forEach(function(Y){j.hasNode(Y.v)&&j.hasNode(Y.w)&&j.setEdge(Y,H.edge(Y))});var z={};function U(Y){var X=H.parent(Y);return X===void 0||j.hasNode(X)?(z[Y]=X,X):X in z?z[X]:U(X)}return this._isCompound&&j.nodes().forEach(Y=>j.setParent(Y,U(Y))),j}setDefaultEdgeLabel(F){return this._defaultEdgeLabelFn=F,typeof F!="function"&&(this._defaultEdgeLabelFn=()=>F),this}edgeCount(){return this._edgeCount}edges(){return Object.values(this._edgeObjs)}setPath(F,j){var H=this,z=arguments;return F.reduce(function(U,Y){return z.length>1?H.setEdge(U,Y,j):H.setEdge(U,Y),Y}),this}setEdge(){var F,j,H,z,U=!1,Y=arguments[0];typeof Y=="object"&&Y!==null&&"v"in Y?(F=Y.v,j=Y.w,H=Y.name,arguments.length===2&&(z=arguments[1],U=!0)):(F=Y,j=arguments[1],H=arguments[3],arguments.length>2&&(z=arguments[2],U=!0)),F=""+F,j=""+j,H!==void 0&&(H=""+H);var X=B(this._isDirected,F,j,H);if(Object.hasOwn(this._edgeLabels,X))return U&&(this._edgeLabels[X]=z),this;if(H!==void 0&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(F),this.setNode(j),this._edgeLabels[X]=U?z:this._defaultEdgeLabelFn(F,j,H);var Q=V(this._isDirected,F,j,H);return F=Q.v,j=Q.w,Object.freeze(Q),this._edgeObjs[X]=Q,N(this._preds[j],F),N(this._sucs[F],j),this._in[j][X]=Q,this._out[F][X]=Q,this._edgeCount++,this}edge(F,j,H){var z=arguments.length===1?W(this._isDirected,arguments[0]):B(this._isDirected,F,j,H);return this._edgeLabels[z]}edgeAsObj(){let F=this.edge(...arguments);return typeof F!="object"?{label:F}:F}hasEdge(F,j,H){var z=arguments.length===1?W(this._isDirected,arguments[0]):B(this._isDirected,F,j,H);return Object.hasOwn(this._edgeLabels,z)}removeEdge(F,j,H){var z=arguments.length===1?W(this._isDirected,arguments[0]):B(this._isDirected,F,j,H),U=this._edgeObjs[z];return U&&(F=U.v,j=U.w,delete this._edgeLabels[z],delete this._edgeObjs[z],$(this._preds[j],F),$(this._sucs[F],j),delete this._in[j][z],delete this._out[F][z],this._edgeCount--),this}inEdges(F,j){return this.isDirected()?this.filterEdges(this._in[F],F,j):this.nodeEdges(F,j)}outEdges(F,j){return this.isDirected()?this.filterEdges(this._out[F],F,j):this.nodeEdges(F,j)}nodeEdges(F,j){if(F in this._nodes)return this.filterEdges({...this._in[F],...this._out[F]},F,j)}filterEdges(F,j,H){if(F){var z=Object.values(F);return H?z.filter(function(U){return U.v===j&&U.w===H||U.v===H&&U.w===j}):z}}};function N(F,j){F[j]?F[j]++:F[j]=1}function $(F,j){--F[j]||delete F[j]}function B(F,j,H,z){var U=""+j,Y=""+H;if(!F&&U>Y){var X=U;U=Y,Y=X}return U+D+Y+D+(z===void 0?S:z)}function V(F,j,H,z){var U=""+j,Y=""+H;if(!F&&U>Y){var X=U;U=Y,Y=X}var Q={v:U,w:Y};return z&&(Q.name=z),Q}function W(F,j){return B(F,j.v,j.w,j.name)}P.exports=L}),a=i((I,P)=>{P.exports="3.0.2"}),l=i((I,P)=>{P.exports={Graph:s(),version:a()}}),c=i((I,P)=>{var S=s();P.exports={write:R,read:N};function R($){var B={options:{directed:$.isDirected(),multigraph:$.isMultigraph(),compound:$.isCompound()},nodes:D($),edges:L($)};return $.graph()!==void 0&&(B.value=structuredClone($.graph())),B}function D($){return $.nodes().map(function(B){var V=$.node(B),W=$.parent(B),F={v:B};return V!==void 0&&(F.value=V),W!==void 0&&(F.parent=W),F})}function L($){return $.edges().map(function(B){var V=$.edge(B),W={v:B.v,w:B.w};return B.name!==void 0&&(W.name=B.name),V!==void 0&&(W.value=V),W})}function N($){var B=new S($.options).setGraph($.value);
25return $.nodes.forEach(function(V){B.setNode(V.v,V.value),V.parent&&B.setParent(V.v,V.parent)}),$.edges.forEach(function(V){B.setEdge({v:V.v,w:V.w,name:V.name},V.value)}),B}}),f=i((I,P)=>{P.exports=R;var S=()=>1;function R(L,N,$,B){return D(L,String(N),$||S,B||function(V){return L.outEdges(V)})}function D(L,N,$,B){var V={},W=!0,F=0,j=L.nodes(),H=function(X){var Q=$(X);V[X.v].distance+Q<V[X.w].distance&&(V[X.w]={distance:V[X.v].distance+Q,predecessor:X.v},W=!0)},z=function(){j.forEach(function(X){B(X).forEach(function(Q){var J=Q.v===X?Q.v:Q.w,re=J===Q.v?Q.w:Q.v;H({v:J,w:re})})})};j.forEach(function(X){var Q=X===N?0:Number.POSITIVE_INFINITY;V[X]={distance:Q}});for(var U=j.length,Y=1;Y<U&&(W=!1,F++,z(),!!W);Y++);if(F===U-1&&(W=!1,z(),W))throw new Error("The graph contains a negative weight cycle");return V}}),u=i((I,P)=>{P.exports=S;function S(R){var D={},L=[],N;function $(B){Object.hasOwn(D,B)||(D[B]=!0,N.push(B),R.successors(B).forEach($),R.predecessors(B).forEach($))}return R.nodes().forEach(function(B){N=[],$(B),N.length&&L.push(N)}),L}}),p=i((I,P)=>{var S=class{constructor(){o(this,"_arr",[]),o(this,"_keyIndices",{})}size(){return this._arr.length}keys(){return this._arr.map(function(R){return R.key})}has(R){return Object.hasOwn(this._keyIndices,R)}priority(R){var D=this._keyIndices[R];if(D!==void 0)return this._arr[D].priority}min(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key}add(R,D){var L=this._keyIndices;if(R=String(R),!Object.hasOwn(L,R)){var N=this._arr,$=N.length;return L[R]=$,N.push({key:R,priority:D}),this._decrease($),!0}return!1}removeMin(){this._swap(0,this._arr.length-1);var R=this._arr.pop();return delete this._keyIndices[R.key],this._heapify(0),R.key}decrease(R,D){var L=this._keyIndices[R];if(D>this._arr[L].priority)throw new Error("New priority is greater than current priority. Key: "+R+" Old: "+this._arr[L].priority+" New: "+D);this._arr[L].priority=D,this._decrease(L)}_heapify(R){var D=this._arr,L=2*R,N=L+1,$=R;L<D.length&&($=D[L].priority<D[$].priority?L:$,N<D.length&&($=D[N].priority<D[$].priority?N:$),$!==R&&(this._swap(R,$),this._heapify($)))}_decrease(R){for(var D=this._arr,L=D[R].priority,N;R!==0&&(N=R>>1,!(D[N].priority<L));)this._swap(R,N),R=N}_swap(R,D){var L=this._arr,N=this._keyIndices,$=L[R],B=L[D];L[R]=B,L[D]=$,N[B.key]=R,N[$.key]=D}};P.exports=S}),h=i((I,P)=>{var S=p();P.exports=D;var R=()=>1;function D(N,$,B,V){var W=function(F){return N.outEdges(F)};return L(N,String($),B||R,V||W)}function L(N,$,B,V){var W={},F=new S,j,H,z=function(U){var Y=U.v!==j?U.v:U.w,X=W[Y],Q=B(U),J=H.distance+Q;if(Q<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+U+" Weight: "+Q);J<X.distance&&(X.distance=J,X.predecessor=j,F.decrease(Y,J))};for(N.nodes().forEach(function(U){var Y=U===$?0:Number.POSITIVE_INFINITY;W[U]={distance:Y},F.add(U,Y)});F.size()>0&&(j=F.removeMin(),H=W[j],H.distance!==Number.POSITIVE_INFINITY);)V(j).forEach(z);return W}}),g=i((I,P)=>{var S=h();P.exports=R;function R(D,L,N){return D.nodes().reduce(function($,B){return $[B]=S(D,B,L,N),$},{})}}),y=i((I,P)=>{P.exports=S;function S(D,L,N){if(D[L].predecessor!==void 0)throw new Error("Invalid source vertex");if(D[N].predecessor===void 0&&N!==L)throw new Error("Invalid destination vertex");return{weight:D[N].distance,path:R(D,L,N)}}function R(D,L,N){for(var $=[],B=N;B!==L;)$.push(B),B=D[B].predecessor;return $.push(L),$.reverse()}}),w=i((I,P)=>{P.exports=S;function S(R){var D=0,L=[],N={},$=[];function B(V){var W=N[V]={onStack:!0,lowlink:D,index:D++};if(L.push(V),R.successors(V).forEach(function(H){Object.hasOwn(N,H)?N[H].onStack&&(W.lowlink=Math.min(W.lowlink,N[H].index)):(B(H),W.lowlink=Math.min(W.lowlink,N[H].lowlink))}),W.lowlink===W.index){var F=[],j;do j=L.pop(),N[j].onStack=!1,F.push(j);while(V!==j);$.push(F)}}return R.nodes().forEach(function(V){Object.hasOwn(N,V)||B(V)}),$}}),x=i((I,P)=>{var S=w();P.exports=R;function R(D){return S(D).filter(function(L){return L.length>1||L.length===1&&D.hasEdge(L[0],L[0])})}}),b=i((I,P)=>{P.exports=R;var S=()=>1;
25function R(L,N,$){return D(L,N||S,$||function(B){return L.outEdges(B)})}function D(L,N,$){var B={},V=L.nodes();return V.forEach(function(W){B[W]={},B[W][W]={distance:0},V.forEach(function(F){W!==F&&(B[W][F]={distance:Number.POSITIVE_INFINITY})}),$(W).forEach(function(F){var j=F.v===W?F.w:F.v,H=N(F);B[W][j]={distance:H,predecessor:W}})}),V.forEach(function(W){var F=B[W];V.forEach(function(j){var H=B[j];V.forEach(function(z){var U=H[W],Y=F[z],X=H[z],Q=U.distance+Y.distance;Q<X.distance&&(X.distance=Q,X.predecessor=Y.predecessor)})})}),B}}),m=i((I,P)=>{function S(D){var L={},N={},$=[];function B(V){if(Object.hasOwn(N,V))throw new R;Object.hasOwn(L,V)||(N[V]=!0,L[V]=!0,D.predecessors(V).forEach(B),delete N[V],$.push(V))}if(D.sinks().forEach(B),Object.keys(L).length!==D.nodeCount())throw new R;return $}var R=class extends Error{constructor(){super(...arguments)}};P.exports=S,S.CycleException=R}),d=i((I,P)=>{var S=m();P.exports=R;function R(D){try{S(D)}catch(L){if(L instanceof S.CycleException)return!1;throw L}return!0}}),v=i((I,P)=>{P.exports=S;function S(D,L,N,$,B){Array.isArray(L)||(L=[L]);var V=(D.isDirected()?D.successors:D.neighbors).bind(D),W={};return L.forEach(function(F){if(!D.hasNode(F))throw new Error("Graph does not have node: "+F);B=R(D,F,N==="post",W,V,$,B)}),B}function R(D,L,N,$,B,V,W){return Object.hasOwn($,L)||($[L]=!0,N||(W=V(W,L)),B(L).forEach(function(F){W=R(D,F,N,$,B,V,W)}),N&&(W=V(W,L))),W}}),_=i((I,P)=>{var S=v();P.exports=R;function R(D,L,N){return S(D,L,N,function($,B){return $.push(B),$},[])}}),O=i((I,P)=>{var S=_();P.exports=R;function R(D,L){return S(D,L,"post")}}),C=i((I,P)=>{var S=_();P.exports=R;function R(D,L){return S(D,L,"pre")}}),k=i((I,P)=>{var S=s(),R=p();P.exports=D;function D(L,N){var $=new S,B={},V=new R,W;function F(H){var z=H.v===W?H.w:H.v,U=V.priority(z);if(U!==void 0){var Y=N(H);Y<U&&(B[z]=W,V.decrease(z,Y))}}if(L.nodeCount()===0)return $;L.nodes().forEach(function(H){V.add(H,Number.POSITIVE_INFINITY),$.setNode(H)}),V.decrease(L.nodes()[0],0);for(var j=!1;V.size()>0;){if(W=V.removeMin(),Object.hasOwn(B,W))$.setEdge(W,B[W]);else{if(j)throw new Error("Input graph is not connected: "+L);j=!0}L.nodeEdges(W).forEach(F)}return $}}),A=i((I,P)=>{var S=h(),R=f();P.exports=D;function D(N,$,B,V){return L(N,$,B,V||function(W){return N.outEdges(W)})}function L(N,$,B,V){if(B===void 0)return S(N,$,B,V);for(var W=!1,F=N.nodes(),j=0;j<F.length;j++){for(var H=V(F[j]),z=0;z<H.length;z++){var U=H[z],Y=U.v===F[j]?U.v:U.w,X=Y===U.v?U.w:U.v;B({v:Y,w:X})<0&&(W=!0)}if(W)return R(N,$,B,V)}return S(N,$,B,V)}}),T=i((I,P)=>{P.exports={bellmanFord:f(),components:u(),dijkstra:h(),dijkstraAll:g(),extractPath:y(),findCycles:x(),floydWarshall:b(),isAcyclic:d(),postorder:O(),preorder:C(),prim:k(),shortestPaths:A(),reduce:v(),tarjan:w(),topsort:m()}}),M=l();t.exports={Graph:M.Graph,json:c(),alg:T(),version:M.version}}),j9=We((e,t)=>{var n=class{constructor(){let o={};o._next=o._prev=o,this._sentinel=o}dequeue(){let o=this._sentinel,s=o._prev;if(s!==o)return r(s),s}enqueue(o){let s=this._sentinel;o._prev&&o._next&&r(o),o._next=s._next,s._next._prev=o,s._next=o,o._prev=s}toString(){let o=[],s=this._sentinel,a=s._prev;for(;a!==s;)o.push(JSON.stringify(a,i)),a=a._prev;return"["+o.join(", ")+"]"}};function r(o){o._prev._next=o._next,o._next._prev=o._prev,delete o._next,delete o._prev}function i(o,s){if(o!=="_next"&&o!=="_prev")return s}t.exports=n}),$9=We((e,t)=>{var n=Mn().Graph,r=j9();t.exports=o;var i=()=>1;function o(u,p){if(u.nodeCount()<=1)return[];let h=l(u,p||i);return s(h.graph,h.buckets,h.zeroIdx).flatMap(g=>u.outEdges(g.v,g.w))}function s(u,p,h){let g=[],y=p[p.length-1],w=p[0],x;for(;u.nodeCount();){for(;x=w.dequeue();)a(u,p,h,x);for(;x=y.dequeue();)a(u,p,h,x);if(u.nodeCount()){for(let b=p.length-2;b>0;--b)if(x=p[b].dequeue(),x){g=g.concat(a(u,p,h,x,!0));break}}}return g}function a(u,p,h,g,y){let w=y?[]:void 0;return u.inEdges(g.v).forEach(x=>{let b=u.edge(x),m=u.node(x.v);y&&w.push({v:x.v,w:x.w}),m.out-=b,c(p,h,m)}),u.outEdges(g.v).forEach(x=>{let b=u.edge(x),m=x.w,d=u.node(m);d.in-=b,c(p,h,d)}),u.removeNode(g.v),w}function l(u,p){let h=new n,g=0,y=0;
vendor: 21,749 bytes, line 25
25u.nodes().forEach(b=>{h.setNode(b,{v:b,in:0,out:0})}),u.edges().forEach(b=>{let m=h.edge(b.v,b.w)||0,d=p(b),v=m+d;h.setEdge(b.v,b.w,v),y=Math.max(y,h.node(b.v).out+=d),g=Math.max(g,h.node(b.w).in+=d)});let w=f(y+g+3).map(()=>new r),x=g+1;return h.nodes().forEach(b=>{c(w,x,h.node(b))}),{graph:h,buckets:w,zeroIdx:x}}function c(u,p,h){h.out?h.in?u[h.out-h.in+p].enqueue(h):u[u.length-1].enqueue(h):u[0].enqueue(h)}function f(u){let p=[];for(let h=0;h<u;h++)p.push(h);return p}}),vt=We((e,t)=>{var n=Mn().Graph;t.exports={addBorderNode:p,addDummyNode:r,applyWithChunking:y,asNonCompoundGraph:o,buildLayerMatrix:c,intersectRect:l,mapValues:C,maxRank:w,normalizeRanks:f,notime:m,partition:x,pick:O,predecessorWeights:a,range:_,removeEmptyRanks:u,simplify:i,successorWeights:s,time:b,uniqueId:v,zipObject:k};function r(A,T,M,I){for(var P=I;A.hasNode(P);)P=v(I);return M.dummy=T,A.setNode(P,M),P}function i(A){let T=new n().setGraph(A.graph());return A.nodes().forEach(M=>T.setNode(M,A.node(M))),A.edges().forEach(M=>{let I=T.edge(M.v,M.w)||{weight:0,minlen:1},P=A.edge(M);T.setEdge(M.v,M.w,{weight:I.weight+P.weight,minlen:Math.max(I.minlen,P.minlen)})}),T}function o(A){let T=new n({multigraph:A.isMultigraph()}).setGraph(A.graph());return A.nodes().forEach(M=>{A.children(M).length||T.setNode(M,A.node(M))}),A.edges().forEach(M=>{T.setEdge(M,A.edge(M))}),T}function s(A){let T=A.nodes().map(M=>{let I={};return A.outEdges(M).forEach(P=>{I[P.w]=(I[P.w]||0)+A.edge(P).weight}),I});return k(A.nodes(),T)}function a(A){let T=A.nodes().map(M=>{let I={};return A.inEdges(M).forEach(P=>{I[P.v]=(I[P.v]||0)+A.edge(P).weight}),I});return k(A.nodes(),T)}function l(A,T){let M=A.x,I=A.y,P=T.x-M,S=T.y-I,R=A.width/2,D=A.height/2;if(!P&&!S)throw new Error("Not possible to find intersection inside of the rectangle");let L,N;return Math.abs(S)*R>Math.abs(P)*D?(S<0&&(D=-D),L=D*P/S,N=D):(P<0&&(R=-R),L=R,N=R*S/P),{x:M+L,y:I+N}}function c(A){let T=_(w(A)+1).map(()=>[]);return A.nodes().forEach(M=>{let I=A.node(M),P=I.rank;P!==void 0&&(T[P][I.order]=M)}),T}function f(A){let T=A.nodes().map(I=>{let P=A.node(I).rank;return P===void 0?Number.MAX_VALUE:P}),M=y(Math.min,T);A.nodes().forEach(I=>{let P=A.node(I);Object.hasOwn(P,"rank")&&(P.rank-=M)})}function u(A){let T=A.nodes().map(R=>A.node(R).rank).filter(R=>R!==void 0),M=y(Math.min,T),I=[];A.nodes().forEach(R=>{let D=A.node(R).rank-M;I[D]||(I[D]=[]),I[D].push(R)});let P=0,S=A.graph().nodeRankFactor;Array.from(I).forEach((R,D)=>{R===void 0&&D%S!==0?--P:R!==void 0&&P&&R.forEach(L=>A.node(L).rank+=P)})}function p(A,T,M,I){let P={width:0,height:0};return arguments.length>=4&&(P.rank=M,P.order=I),r(A,"border",P,T)}function h(A,T=g){let M=[];for(let I=0;I<A.length;I+=T){let P=A.slice(I,I+T);M.push(P)}return M}var g=65535;function y(A,T){if(T.length>g){let M=h(T);return A.apply(null,M.map(I=>A.apply(null,I)))}else return A.apply(null,T)}function w(A){let T=A.nodes().map(M=>{let I=A.node(M).rank;return I===void 0?Number.MIN_VALUE:I});return y(Math.max,T)}function x(A,T){let M={lhs:[],rhs:[]};return A.forEach(I=>{T(I)?M.lhs.push(I):M.rhs.push(I)}),M}function b(A,T){let M=Date.now();try{return T()}finally{console.log(A+" time: "+(Date.now()-M)+"ms")}}function m(A,T){return T()}var d=0;function v(A){var T=++d;return A+(""+T)}function _(A,T,M=1){T==null&&(T=A,A=0);let I=S=>S<T;M<0&&(I=S=>T<S);let P=[];for(let S=A;I(S);S+=M)P.push(S);return P}function O(A,T){let M={};for(let I of T)A[I]!==void 0&&(M[I]=A[I]);return M}function C(A,T){let M=T;return typeof T=="string"&&(M=I=>I[T]),Object.entries(A).reduce((I,[P,S])=>(I[P]=M(S,P),I),{})}function k(A,T){return A.reduce((M,I,P)=>(M[I]=T[P],M),{})}}),F9=We((e,t)=>{var n=$9(),r=vt().uniqueId;t.exports={run:i,undo:s};function i(a){(a.graph().acyclicer==="greedy"?n(a,l(a)):o(a)).forEach(c=>{let f=a.edge(c);a.removeEdge(c),f.forwardName=c.name,f.reversed=!0,a.setEdge(c.w,c.v,f,r("rev"))});function l(c){return f=>c.edge(f).weight}}function o(a){let l=[],c={},f={};function u(p){Object.hasOwn(f,p)||(f[p]=!0,c[p]=!0,a.outEdges(p).forEach(h=>{Object.hasOwn(c,h.w)?l.push(h):u(h.w)}),delete c[p])}return a.nodes().forEach(u),l}function s(a){a.edges().forEach(l=>{let c=a.edge(l);if(c.reversed){a.removeEdge(l);let f=c.forwardName;delete c.reversed,delete c.forwardName,a.setEdge(l.w,l.v,c,f)}})}}),B9=We((e,t)=>{var n=vt();t.exports={run:r,undo:o};function r(s){s.graph().dummyChains=[],s.edges().forEach(a=>i(s,a))}function i(s,a){let l=a.v,c=s.node(l).rank,f=a.w,u=s.node(f).rank,p=a.name,h=s.edge(a),g=h.labelRank;if(u===c+1)return;s.removeEdge(a);let y,w,x;for(x=0,++c;c<u;++x,++c)h.points=[],w={width:0,height:0,edgeLabel:h,edgeObj:a,rank:c},y=n.addDummyNode(s,"edge",w,"_d"),c===g&&(w.width=h.width,w.height=h.height,w.dummy="edge-label",w.labelpos=h.labelpos),s.setEdge(l,y,{weight:h.weight},p),x===0&&s.graph().dummyChains.push(y),l=y;s.setEdge(l,f,{weight:h.weight},p)}function o(s){s.graph().dummyChains.forEach(a=>{let l=s.node(a),c=l.edgeLabel,f;for(s.setEdge(l.edgeObj,c);l.dummy;)f=s.successors(a)[0],s.removeNode(a),c.points.push({x:l.x,y:l.y}),l.dummy==="edge-label"&&(c.x=l.x,c.y=l.y,c.width=l.width,c.height=l.height),a=f,l=s.node(a)})}}),Cl=We((e,t)=>{var{applyWithChunking:n}=vt();t.exports={longestPath:r,slack:i};function r(o){var s={};function a(l){var c=o.node(l);if(Object.hasOwn(s,l))return c.rank;s[l]=!0;let f=o.outEdges(l).map(p=>p==null?Number.POSITIVE_INFINITY:a(p.w)-o.edge(p).minlen);var u=n(Math.min,f);return u===Number.POSITIVE_INFINITY&&(u=0),c.rank=u}o.sources().forEach(a)}function i(o,s){return o.node(s.w).rank-o.node(s.v).rank-o.edge(s).minlen}}),gE=We((e,t)=>{var n=Mn().Graph,r=Cl().slack;t.exports=i;function i(l){var c=new n({directed:!1}),f=l.nodes()[0],u=l.nodeCount();c.setNode(f,{});for(var p,h;o(c,l)<u;)p=s(c,l),h=c.hasNode(p.v)?r(l,p):-r(l,p),a(c,l,h);return c}function o(l,c){function f(u){c.nodeEdges(u).forEach(p=>{var h=p.v,g=u===h?p.w:h;!l.hasNode(g)&&!r(c,p)&&(l.setNode(g,{}),l.setEdge(u,g,{}),f(g))})}return l.nodes().forEach(f),l.nodeCount()}function s(l,c){return c.edges().reduce((f,u)=>{let p=Number.POSITIVE_INFINITY;return l.hasNode(u.v)!==l.hasNode(u.w)&&(p=r(c,u)),p<f[0]?[p,u]:f},[Number.POSITIVE_INFINITY,null])[1]}function a(l,c,f){l.nodes().forEach(u=>c.node(u).rank+=f)}}),V9=We((e,t)=>{var n=gE(),r=Cl().slack,i=Cl().longestPath,o=Mn().alg.preorder,s=Mn().alg.postorder,a=vt().simplify;t.exports=l,l.initLowLimValues=p,l.initCutValues=c,l.calcCutValue=u,l.leaveEdge=g,l.enterEdge=y,l.exchangeEdges=w;function l(d){d=a(d),i(d);var v=n(d);p(v),c(v,d);for(var _,O;_=g(v);)O=y(v,d,_),w(v,d,_,O)}function c(d,v){var _=s(d,d.nodes());_=_.slice(0,_.length-1),_.forEach(O=>f(d,v,O))}function f(d,v,_){var O=d.node(_),C=O.parent;d.edge(_,C).cutvalue=u(d,v,_)}function u(d,v,_){var O=d.node(_),C=O.parent,k=!0,A=v.edge(_,C),T=0;return A||(k=!1,A=v.edge(C,_)),T=A.weight,v.nodeEdges(_).forEach(M=>{var I=M.v===_,P=I?M.w:M.v;if(P!==C){var S=I===k,R=v.edge(M).weight;if(T+=S?R:-R,b(d,_,P)){var D=d.edge(_,P).cutvalue;T+=S?-D:D}}}),T}function p(d,v){arguments.length<2&&(v=d.nodes()[0]),h(d,{},1,v)}function h(d,v,_,O,C){var k=_,A=d.node(O);return v[O]=!0,d.neighbors(O).forEach(T=>{Object.hasOwn(v,T)||(_=h(d,v,_,T,O))}),A.low=k,A.lim=_++,C?A.parent=C:delete A.parent,_}function g(d){return d.edges().find(v=>d.edge(v).cutvalue<0)}function y(d,v,_){var O=_.v,C=_.w;v.hasEdge(O,C)||(O=_.w,C=_.v);var k=d.node(O),A=d.node(C),T=k,M=!1;k.lim>A.lim&&(T=A,M=!0);var I=v.edges().filter(P=>M===m(d,d.node(P.v),T)&&M!==m(d,d.node(P.w),T));return I.reduce((P,S)=>r(v,S)<r(v,P)?S:P)}function w(d,v,_,O){var C=_.v,k=_.w;d.removeEdge(C,k),d.setEdge(O.v,O.w,{}),p(d),c(d,v),x(d,v)}function x(d,v){var _=d.nodes().find(C=>!v.node(C).parent),O=o(d,_);O=O.slice(1),O.forEach(C=>{var k=d.node(C).parent,A=v.edge(C,k),T=!1;A||(A=v.edge(k,C),T=!0),v.node(C).rank=v.node(k).rank+(T?A.minlen:-A.minlen)})}function b(d,v,_){return d.hasEdge(v,_)}function m(d,v,_){return _.low<=v.lim&&v.lim<=_.lim}}),H9=We((e,t)=>{var n=Cl(),r=n.longestPath,i=gE(),o=V9();t.exports=s;function s(f){var u=f.graph().ranker;if(u instanceof Function)return u(f);switch(f.graph().ranker){case"network-simplex":c(f);break;case"tight-tree":l(f);break;case"longest-path":a(f);break;case"none":break;default:c(f)}}var a=r;function l(f){r(f),i(f)}function c(f){o(f)}}),z9=We((e,t)=>{t.exports=n;function n(o){let s=i(o);o.graph().dummyChains.forEach(a=>{let l=o.node(a),c=l.edgeObj,f=r(o,s,c.v,c.w),u=f.path,p=f.lca,h=0,g=u[h],y=!0;for(;a!==c.w;){if(l=o.node(a),y){for(;(g=u[h])!==p&&o.node(g).maxRank<l.rank;)h++;g===p&&(y=!1)}if(!y){for(;h<u.length-1&&o.node(g=u[h+1]).minRank<=l.rank;)h++;g=u[h]}o.setParent(a,g),a=o.successors(a)[0]}})}function r(o,s,a,l){let c=[],f=[],u=Math.min(s[a].low,s[l].low),p=Math.max(s[a].lim,s[l].lim),h,g;h=a;do h=o.parent(h),c.push(h);while(h&&(s[h].low>u||p>s[h].lim));for(g=h,h=l;(h=o.parent(h))!==g;)f.push(h);return{path:c.concat(f.reverse()),lca:g}}function i(o){let s={},a=0;function l(c){let f=a;o.children(c).forEach(l),s[c]={low:f,lim:a++}}return o.children().forEach(l),s}}),U9=We((e,t)=>{var n=vt();t.exports={run:r,cleanup:a};function r(l){let c=n.addDummyNode(l,"root",{},"_root"),f=o(l),u=Object.values(f),p=n.applyWithChunking(Math.max,u)-1,h=2*p+1;l.graph().nestingRoot=c,l.edges().forEach(y=>l.edge(y).minlen*=h);let g=s(l)+1;l.children().forEach(y=>i(l,c,h,g,p,f,y)),l.graph().nodeRankFactor=h}function i(l,c,f,u,p,h,g){let y=l.children(g);if(!y.length){g!==c&&l.setEdge(c,g,{weight:0,minlen:f});return}let w=n.addBorderNode(l,"_bt"),x=n.addBorderNode(l,"_bb"),b=l.node(g);l.setParent(w,g),b.borderTop=w,l.setParent(x,g),b.borderBottom=x,y.forEach(m=>{i(l,c,f,u,p,h,m);let d=l.node(m),v=d.borderTop?d.borderTop:m,_=d.borderBottom?d.borderBottom:m,O=d.borderTop?u:2*u,C=v!==_?1:p-h[g]+1;l.setEdge(w,v,{weight:O,minlen:C,nestingEdge:!0}),l.setEdge(_,x,{weight:O,minlen:C,nestingEdge:!0})}),l.parent(g)||l.setEdge(c,w,{weight:0,minlen:p+h[g]})}function o(l){var c={};function f(u,p){var h=l.children(u);h&&h.length&&h.forEach(g=>f(g,p+1)),c[u]=p}return l.children().forEach(u=>f(u,1)),c}function s(l){return l.edges().reduce((c,f)=>c+l.edge(f).weight,0)}function a(l){var c=l.graph();l.removeNode(c.nestingRoot),delete c.nestingRoot,l.edges().forEach(f=>{var u=l.edge(f);u.nestingEdge&&l.removeEdge(f)})}}),W9=We((e,t)=>{var n=vt();t.exports=r;function r(o){function s(a){let l=o.children(a),c=o.node(a);if(l.length&&l.forEach(s),Object.hasOwn(c,"minRank")){c.borderLeft=[],c.borderRight=[];for(let f=c.minRank,u=c.maxRank+1;f<u;++f)i(o,"borderLeft","_bl",a,c,f),i(o,"borderRight","_br",a,c,f)}}o.children().forEach(s)}function i(o,s,a,l,c,f){let u={width:0,height:0,rank:f,borderType:s},p=c[s][f-1],h=n.addDummyNode(o,"border",u,a);c[s][f]=h,o.setParent(h,l),p&&o.setEdge(p,h,{weight:1})}}),q9=We((e,t)=>{t.exports={adjust:n,undo:r};function n(f){let u=f.graph().rankdir.toLowerCase();(u==="lr"||u==="rl")&&i(f)}function r(f){let u=f.graph().rankdir.toLowerCase();(u==="bt"||u==="rl")&&s(f),(u==="lr"||u==="rl")&&(l(f),i(f))}function i(f){f.nodes().forEach(u=>o(f.node(u))),f.edges().forEach(u=>o(f.edge(u)))}function o(f){let u=f.width;f.width=f.height,f.height=u}function s(f){f.nodes().forEach(u=>a(f.node(u))),f.edges().forEach(u=>{let p=f.edge(u);p.points.forEach(a),Object.hasOwn(p,"y")&&a(p)})}function a(f){f.y=-f.y}function l(f){f.nodes().forEach(u=>c(f.node(u))),f.edges().forEach(u=>{let p=f.edge(u);p.points.forEach(c),Object.hasOwn(p,"x")&&c(p)})}function c(f){let u=f.x;f.x=f.y,f.y=u}}),Y9=We((e,t)=>{var n=vt();t.exports=r;function r(i){let o={},s=i.nodes().filter(u=>!i.children(u).length),a=s.map(u=>i.node(u).rank),l=n.applyWithChunking(Math.max,a),c=n.range(l+1).map(()=>[]);function f(u){if(o[u])return;o[u]=!0;let p=i.node(u);c[p.rank].push(u),i.successors(u).forEach(f)}return s.sort((u,p)=>i.node(u).rank-i.node(p).rank).forEach(f),c}}),K9=We((e,t)=>{var n=vt().zipObject;t.exports=r;function r(o,s){let a=0;for(let l=1;l<s.length;++l)a+=i(o,s[l-1],s[l]);return a}function i(o,s,a){let l=n(a,a.map((g,y)=>y)),c=s.flatMap(g=>o.outEdges(g).map(y=>({pos:l[y.w],weight:o.edge(y).weight})).sort((y,w)=>y.pos-w.pos)),f=1;for(;f<a.length;)f<<=1;let u=2*f-1;f-=1;let p=new Array(u).fill(0),h=0;return c.forEach(g=>{let y=g.pos+f;p[y]+=g.weight;let w=0;for(;y>0;)y%2&&(w+=p[y+1]),y=y-1>>1,p[y]+=g.weight;h+=g.weight*w}),h}}),X9=We((e,t)=>{t.exports=n;function n(r,i=[]){return i.map(o=>{let s=r.inEdges(o);if(s.length){let a=s.reduce((l,c)=>{let f=r.edge(c),u=r.node(c.v);return{sum:l.sum+f.weight*u.order,weight:l.weight+f.weight}},{sum:0,weight:0});return{v:o,barycenter:a.sum/a.weight,weight:a.weight}}else return{v:o}})}}),G9=We((e,t)=>{var n=vt();t.exports=r;function r(s,a){let l={};s.forEach((f,u)=>{let p=l[f.v]={indegree:0,in:[],out:[],vs:[f.v],i:u};f.barycenter!==void 0&&(p.barycenter=f.barycenter,p.weight=f.weight)}),a.edges().forEach(f=>{let u=l[f.v],p=l[f.w];u!==void 0&&p!==void 0&&(p.indegree++,u.out.push(l[f.w]))});let c=Object.values(l).filter(f=>!f.indegree);return i(c)}function i(s){let a=[];function l(f){return u=>{u.merged||(u.barycenter===void 0||f.barycenter===void 0||u.barycenter>=f.barycenter)&&o(f,u)}}function c(f){return u=>{u.in.push(f),--u.indegree===0&&s.push(u)}}for(;s.length;){let f=s.pop();a.push(f),f.in.reverse().forEach(l(f)),f.out.forEach(c(f))}return a.filter(f=>!f.merged).map(f=>n.pick(f,["vs","i","barycenter","weight"]))}function o(s,a){let l=0,c=0;s.weight&&(l+=s.barycenter*s.weight,c+=s.weight),a.weight&&(l+=a.barycenter*a.weight,c+=a.weight),s.vs=a.vs.concat(s.vs),s.barycenter=l/c,s.weight=c,s.i=Math.min(a.i,s.i),a.merged=!0}}),Z9=We((e,t)=>{var n=vt();t.exports=r;function r(s,a){let l=n.partition(s,w=>Object.hasOwn(w,"barycenter")),c=l.lhs,f=l.rhs.sort((w,x)=>x.i-w.i),u=[],p=0,h=0,g=0;c.sort(o(!!a)),g=i(u,f,g),c.forEach(w=>{g+=w.vs.length,u.push(w.vs),p+=w.barycenter*w.weight,h+=w.weight,g=i(u,f,g)});let y={vs:u.flat(!0)};return h&&(y.barycenter=p/h,y.weight=h),y}function i(s,a,l){let c;for(;a.length&&(c=a[a.length-1]).i<=l;)a.pop(),s.push(c.vs),l++;return l}function o(s){return(a,l)=>a.barycenter<l.barycenter?-1:a.barycenter>l.barycenter?1:s?l.i-a.i:a.i-l.i}}),Q9=We((e,t)=>{var n=X9(),r=G9(),i=Z9();t.exports=o;function o(l,c,f,u){let p=l.children(c),h=l.node(c),g=h?h.borderLeft:void 0,y=h?h.borderRight:void 0,w={};g&&(p=p.filter(d=>d!==g&&d!==y));let x=n(l,p);x.forEach(d=>{if(l.children(d.v).length){let v=o(l,d.v,f,u);w[d.v]=v,Object.hasOwn(v,"barycenter")&&a(d,v)}});let b=r(x,f);s(b,w);let m=i(b,u);if(g&&(m.vs=[g,m.vs,y].flat(!0),l.predecessors(g).length)){let d=l.node(l.predecessors(g)[0]),v=l.node(l.predecessors(y)[0]);Object.hasOwn(m,"barycenter")||(m.barycenter=0,m.weight=0),m.barycenter=(m.barycenter*m.weight+d.order+v.order)/(m.weight+2),m.weight+=2}return m}function s(l,c){l.forEach(f=>{f.vs=f.vs.flatMap(u=>c[u]?c[u].vs:u)})}function a(l,c){l.barycenter!==void 0?(l.barycenter=(l.barycenter*l.weight+c.barycenter*c.weight)/(l.weight+c.weight),l.weight+=c.weight):(l.barycenter=c.barycenter,l.weight=c.weight)}}),J9=We((e,t)=>{var n=Mn().Graph,r=vt();t.exports=i;function i(s,a,l,c){c||(c=s.nodes());let f=o(s),u=new n({compound:!0}).setGraph({root:f}).setDefaultNodeLabel(p=>s.node(p));return c.forEach(p=>{let h=s.node(p),g=s.parent(p);(h.rank===a||h.minRank<=a&&a<=h.maxRank)&&(u.setNode(p),u.setParent(p,g||f),s[l](p).forEach(y=>{let w=y.v===p?y.w:y.v,x=u.edge(w,p),b=x!==void 0?x.weight:0;u.setEdge(w,p,{weight:s.edge(y).weight+b})}),Object.hasOwn(h,"minRank")&&u.setNode(p,{borderLeft:h.borderLeft[a],borderRight:h.borderRight[a]}))}),u}function o(s){for(var a;s.hasNode(a=r.uniqueId("_root")););return a}}),eB=We((e,t)=>{t.exports=n;function n(r,i,o){let s={},a;o.forEach(l=>{let c=r.parent(l),f,u;for(;c;){if(f=r.parent(c),f?(u=s[f],s[f]=c):(u=a,a=c),u&&u!==c){i.setEdge(u,c);return}c=f}})}}),tB=We((e,t)=>{var n=Y9(),r=K9(),i=Q9(),o=J9(),s=eB(),a=Mn().Graph,l=vt();t.exports=c;function c(h,g={}){if(typeof g.customOrder=="function"){g.customOrder(h,c);return}let y=l.maxRank(h),w=f(h,l.range(1,y+1),"inEdges"),x=f(h,l.range(y-1,-1,-1),"outEdges"),b=n(h);if(p(h,b),g.disableOptimalOrderHeuristic)return;let m=Number.POSITIVE_INFINITY,d,v=g.constraints||[];for(let _=0,O=0;O<4;++_,++O){u(_%2?w:x,_%4>=2,v),b=l.buildLayerMatrix(h);let C=r(h,b);C<m?(O=0,d=Object.assign({},b),m=C):C===m&&(d=structuredClone(b))}p(h,d)}function f(h,g,y){let w=new Map,x=(b,m)=>{w.has(b)||w.set(b,[]),w.get(b).push(m)};for(let b of h.nodes()){let m=h.node(b);if(typeof m.rank=="number"&&x(m.rank,b),typeof m.minRank=="number"&&typeof m.maxRank=="number")for(let d=m.minRank;d<=m.maxRank;d++)d!==m.rank&&x(d,b)}return g.map(function(b){return o(h,b,y,w.get(b)||[])})}function u(h,g,y){let w=new a;h.forEach(function(x){y.forEach(d=>w.setEdge(d.left,d.right));let b=x.graph().root,m=i(x,b,w,g);m.vs.forEach((d,v)=>x.node(d).order=v),s(x,w,m.vs)})}function p(h,g){Object.values(g).forEach(y=>y.forEach((w,x)=>h.node(w).order=x))}}),nB=We((e,t)=>{var n=Mn().Graph,r=vt();t.exports={positionX:y,findType1Conflicts:i,findType2Conflicts:o,addConflict:a,hasConflict:l,verticalAlignment:c,horizontalCompaction:f,alignCoordinates:h,findSmallestWidthAlignment:p,balance:g};function i(b,m){let d={};function v(_,O){let C=0,k=0,A=_.length,T=O[O.length-1];return O.forEach((M,I)=>{let P=s(b,M),S=P?b.node(P).order:A;(P||M===T)&&(O.slice(k,I+1).forEach(R=>{b.predecessors(R).forEach(D=>{let L=b.node(D),N=L.order;(N<C||S<N)&&!(L.dummy&&b.node(R).dummy)&&a(d,D,R)})}),k=I+1,C=S)}),O}return m.length&&m.reduce(v),d}function o(b,m){let d={};function v(O,C,k,A,T){let M;r.range(C,k).forEach(I=>{M=O[I],b.node(M).dummy&&b.predecessors(M).forEach(P=>{let S=b.node(P);S.dummy&&(S.order<A||S.order>T)&&a(d,P,M)})})}function _(O,C){let k=-1,A,T=0;return C.forEach((M,I)=>{if(b.node(M).dummy==="border"){let P=b.predecessors(M);P.length&&(A=b.node(P[0]).order,v(C,T,I,k,A),T=I,k=A)}v(C,T,C.length,A,O.length)}),C}return m.length&&m.reduce(_),d}function s(b,m){if(b.node(m).dummy)return b.predecessors(m).find(d=>b.node(d).dummy)}function a(b,m,d){if(m>d){let _=m;m=d,d=_}let v=b[m];v||(b[m]=v={}),v[d]=!0}function l(b,m,d){if(m>d){let v=m;m=d,d=v}return!!b[m]&&Object.hasOwn(b[m],d)}function c(b,m,d,v){let _={},O={},C={};return m.forEach(k=>{k.forEach((A,T)=>{_[A]=A,O[A]=A,C[A]=T})}),m.forEach(k=>{let A=-1;k.forEach(T=>{let M=v(T);if(M.length){M=M.sort((P,S)=>C[P]-C[S]);let I=(M.length-1)/2;for(let P=Math.floor(I),S=Math.ceil(I);P<=S;++P){let R=M[P];O[T]===T&&A<C[R]&&!l(d,T,R)&&(O[R]=T,O[T]=_[T]=_[R],A=C[R])}}})}),{root:_,align:O}}function f(b,m,d,v,_){let O={},C=u(b,m,d,_),k=_?"borderLeft":"borderRight";function A(I,P){let S=C.nodes().slice(),R={},D=S.pop();for(;D;){if(R[D])I(D);else{R[D]=!0,S.push(D);for(let L of P(D))S.push(L)}D=S.pop()}}function T(I){O[I]=C.inEdges(I).reduce((P,S)=>Math.max(P,O[S.v]+C.edge(S)),0)}function M(I){let P=C.outEdges(I).reduce((R,D)=>Math.min(R,O[D.w]-C.edge(D)),Number.POSITIVE_INFINITY),S=b.node(I);P!==Number.POSITIVE_INFINITY&&S.borderType!==k&&(O[I]=Math.max(O[I],P))}return A(T,C.predecessors.bind(C)),A(M,C.successors.bind(C)),Object.keys(v).forEach(I=>O[I]=O[d[I]]),O}function u(b,m,d,v){let _=new n,O=b.graph(),C=w(O.nodesep,O.edgesep,v);return m.forEach(k=>{let A;k.forEach(T=>{let M=d[T];if(_.setNode(M),A){var I=d[A],P=_.edge(I,M);_.setEdge(I,M,Math.max(C(b,T,A),P||0))}A=T})}),_}function p(b,m){return Object.values(m).reduce((d,v)=>{let _=Number.NEGATIVE_INFINITY,O=Number.POSITIVE_INFINITY;Object.entries(v).forEach(([k,A])=>{let T=x(b,k)/2;_=Math.max(A+T,_),O=Math.min(A-T,O)});let C=_-O;return C<d[0]&&(d=[C,v]),d},[Number.POSITIVE_INFINITY,null])[1]}function h(b,m){let d=Object.values(m),v=r.applyWithChunking(Math.min,d),_=r.applyWithChunking(Math.max,d);["u","d"].forEach(O=>{["l","r"].forEach(C=>{let k=O+C,A=b[k];if(A===m)return;let T=Object.values(A),M=v-r.applyWithChunking(Math.min,T);C!=="l"&&(M=_-r.applyWithChunking(Math.max,T)),M&&(b[k]=r.mapValues(A,I=>I+M))})})}function g(b,m){return r.mapValues(b.ul,(d,v)=>{if(m)return b[m.toLowerCase()][v];{let _=Object.values(b).map(O=>O[v]).sort((O,C)=>O-C);return(_[1]+_[2])/2}})}function y(b){let m=r.buildLayerMatrix(b),d=Object.assign(i(b,m),o(b,m)),v={},_;["u","d"].forEach(C=>{_=C==="u"?m:Object.values(m).reverse(),["l","r"].forEach(k=>{k==="r"&&(_=_.map(I=>Object.values(I).reverse()));let A=(C==="u"?b.predecessors:b.successors).bind(b),T=c(b,_,d,A),M=f(b,_,T.root,T.align,k==="r");k==="r"&&(M=r.mapValues(M,I=>-I)),v[C+k]=M})});let O=p(b,v);return h(v,O),g(v,b.graph().align)}function w(b,m,d){return(v,_,O)=>{let C=v.node(_),k=v.node(O),A=0,T;if(A+=C.width/2,Object.hasOwn(C,"labelpos"))switch(C.labelpos.toLowerCase()){case"l":T=-C.width/2;break;case"r":T=C.width/2;break}if(T&&(A+=d?T:-T),T=0,A+=(C.dummy?m:b)/2,A+=(k.dummy?m:b)/2,A+=k.width/2,Object.hasOwn(k,"labelpos"))switch(k.labelpos.toLowerCase()){case"l":T=k.width/2;break;case"r":T=-k.width/2;break}return T&&(A+=d?T:-T),T=0,A}}function x(b,m){return b.node(m).width}}),rB=We((e,t)=>{var n=vt(),r=nB().positionX;t.exports=i;function i(s){s=n.asNonCompoundGraph(s),o(s),Object.entries(r(s)).forEach(([a,l])=>s.node(a).x=l)}function o(s){let a=n.buildLayerMatrix(s),l=s.graph().ranksep,c=s.graph().rankalign,f=0;a.forEach(u=>{let p=u.reduce((h,g)=>{let y=s.node(g).height;return h>y?h:y},0);u.forEach(h=>{let g=s.node(h);c==="top"?g.y=f+g.height/2:c==="bottom"?g.y=f+p-g.height/2:g.y=f+p/2}),f+=p+l})}}),iB=We((e,t)=>{var n=F9(),r=B9(),i=H9(),o=vt().normalizeRanks,s=z9(),a=vt().removeEmptyRanks,l=U9(),c=W9(),f=q9(),u=tB(),p=rB(),h=vt(),g=Mn().Graph;t.exports=y;function y(j,H={}){let z=H.debugTiming?h.time:h.notime;return z("layout",()=>{let U=z("  buildLayoutGraph",()=>A(j));return z("  runLayout",()=>w(U,z,H)),z("  updateInputGraph",()=>x(j,U)),U})}function w(j,H,z){H("    makeSpaceForEdgeLabels",()=>T(j)),H("    removeSelfEdges",()=>
25$(j)),H("    acyclic",()=>n.run(j)),H("    nestingGraph.run",()=>l.run(j)),H("    rank",()=>i(h.asNonCompoundGraph(j))),H("    injectEdgeLabelProxies",()=>M(j)),H("    removeEmptyRanks",()=>a(j)),H("    nestingGraph.cleanup",()=>l.cleanup(j)),H("    normalizeRanks",()=>o(j)),H("    assignRankMinMax",()=>I(j)),H("    removeEdgeLabelProxies",()=>P(j)),H("    normalize.run",()=>r.run(j)),H("    parentDummyChains",()=>s(j)),H("    addBorderSegments",()=>c(j)),H("    order",()=>u(j,z)),H("    insertSelfEdges",()=>B(j)),H("    adjustCoordinateSystem",()=>f.adjust(j)),H("    position",()=>p(j)),H("    positionSelfEdges",()=>V(j)),H("    removeBorderNodes",()=>N(j)),H("    normalize.undo",()=>r.undo(j)),H("    fixupEdgeLabelCoords",()=>D(j)),H("    undoCoordinateSystem",()=>f.undo(j)),H("    translateGraph",()=>S(j)),H("    assignNodeIntersects",()=>R(j)),H("    reversePoints",()=>L(j)),H("    acyclic.undo",()=>n.undo(j))}function x(j,H){j.nodes().forEach(z=>{let U=j.node(z),Y=H.node(z);U&&(U.x=Y.x,U.y=Y.y,U.order=Y.order,U.rank=Y.rank,H.children(z).length&&(U.width=Y.width,U.height=Y.height))}
vendor: 4,393 bytes, line 25
25),j.edges().forEach(z=>{let U=j.edge(z),Y=H.edge(z);U.points=Y.points,Object.hasOwn(Y,"x")&&(U.x=Y.x,U.y=Y.y)}),j.graph().width=H.graph().width,j.graph().height=H.graph().height}var b=["nodesep","edgesep","ranksep","marginx","marginy"],m={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb",rankalign:"center"},d=["acyclicer","ranker","rankdir","align","rankalign"],v=["width","height","rank"],_={width:0,height:0},O=["minlen","weight","width","height","labeloffset"],C={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},k=["labelpos"];function A(j){let H=new g({multigraph:!0,compound:!0}),z=F(j.graph());return H.setGraph(Object.assign({},m,W(z,b),h.pick(z,d))),j.nodes().forEach(U=>{let Y=F(j.node(U)),X=W(Y,v);Object.keys(_).forEach(Q=>{X[Q]===void 0&&(X[Q]=_[Q])}),H.setNode(U,X),H.setParent(U,j.parent(U))}),j.edges().forEach(U=>{let Y=F(j.edge(U));H.setEdge(U,Object.assign({},C,W(Y,O),h.pick(Y,k)))}),H}function T(j){let H=j.graph();H.ranksep/=2,j.edges().forEach(z=>{let U=j.edge(z);U.minlen*=2,U.labelpos.toLowerCase()!=="c"&&(H.rankdir==="TB"||H.rankdir==="BT"?U.width+=U.labeloffset:U.height+=U.labeloffset)})}function M(j){j.edges().forEach(H=>{let z=j.edge(H);if(z.width&&z.height){let U=j.node(H.v),Y={rank:(j.node(H.w).rank-U.rank)/2+U.rank,e:H};h.addDummyNode(j,"edge-proxy",Y,"_ep")}})}function I(j){let H=0;j.nodes().forEach(z=>{let U=j.node(z);U.borderTop&&(U.minRank=j.node(U.borderTop).rank,U.maxRank=j.node(U.borderBottom).rank,H=Math.max(H,U.maxRank))}),j.graph().maxRank=H}function P(j){j.nodes().forEach(H=>{let z=j.node(H);z.dummy==="edge-proxy"&&(j.edge(z.e).labelRank=z.rank,j.removeNode(H))})}function S(j){let H=Number.POSITIVE_INFINITY,z=0,U=Number.POSITIVE_INFINITY,Y=0,X=j.graph(),Q=X.marginx||0,J=X.marginy||0;function re(ue){let ce=ue.x,xe=ue.y,Oe=ue.width,Ie=ue.height;H=Math.min(H,ce-Oe/2),z=Math.max(z,ce+Oe/2),U=Math.min(U,xe-Ie/2),Y=Math.max(Y,xe+Ie/2)}j.nodes().forEach(ue=>re(j.node(ue))),j.edges().forEach(ue=>{let ce=j.edge(ue);Object.hasOwn(ce,"x")&&re(ce)}),H-=Q,U-=J,j.nodes().forEach(ue=>{let ce=j.node(ue);ce.x-=H,ce.y-=U}),j.edges().forEach(ue=>{let ce=j.edge(ue);ce.points.forEach(xe=>{xe.x-=H,xe.y-=U}),Object.hasOwn(ce,"x")&&(ce.x-=H),Object.hasOwn(ce,"y")&&(ce.y-=U)}),X.width=z-H+Q,X.height=Y-U+J}function R(j){j.edges().forEach(H=>{let z=j.edge(H),U=j.node(H.v),Y=j.node(H.w),X,Q;z.points?(X=z.points[0],Q=z.points[z.points.length-1]):(z.points=[],X=Y,Q=U),z.points.unshift(h.intersectRect(U,X)),z.points.push(h.intersectRect(Y,Q))})}function D(j){j.edges().forEach(H=>{let z=j.edge(H);if(Object.hasOwn(z,"x"))switch((z.labelpos==="l"||z.labelpos==="r")&&(z.width-=z.labeloffset),z.labelpos){case"l":z.x-=z.width/2+z.labeloffset;break;case"r":z.x+=z.width/2+z.labeloffset;break}})}function L(j){j.edges().forEach(H=>{let z=j.edge(H);z.reversed&&z.points.reverse()})}function N(j){j.nodes().forEach(H=>{if(j.children(H).length){let z=j.node(H),U=j.node(z.borderTop),Y=j.node(z.borderBottom),X=j.node(z.borderLeft[z.borderLeft.length-1]),Q=j.node(z.borderRight[z.borderRight.length-1]);z.width=Math.abs(Q.x-X.x),z.height=Math.abs(Y.y-U.y),z.x=X.x+z.width/2,z.y=U.y+z.height/2}}),j.nodes().forEach(H=>{j.node(H).dummy==="border"&&j.removeNode(H)})}function $(j){j.edges().forEach(H=>{if(H.v===H.w){var z=j.node(H.v);z.selfEdges||(z.selfEdges=[]),z.selfEdges.push({e:H,label:j.edge(H)}),j.removeEdge(H)}})}function B(j){var H=h.buildLayerMatrix(j);H.forEach(z=>{var U=0;z.forEach((Y,X)=>{var Q=j.node(Y);Q.order=X+U,(Q.selfEdges||[]).forEach(J=>{h.addDummyNode(j,"selfedge",{width:J.label.width,height:J.label.height,rank:Q.rank,order:X+ ++U,e:J.e,label:J.label},"_se")}),delete Q.selfEdges})})}function V(j){j.nodes().forEach(H=>{var z=j.node(H);if(z.dummy==="selfedge"){var U=j.node(z.e.v),Y=U.x+U.width/2,X=U.y,Q=z.x-Y,J=U.height/2;j.setEdge(z.e,z.label),j.removeNode(H),z.label.points=[{x:Y+2*Q/3,y:X-J},{x:Y+5*Q/6,y:X-J},{x:Y+Q,y:X},{x:Y+5*Q/6,y:X+J},{x:Y+2*Q/3,y:X+J}],z.label.x=z.x,z.label.y=z.y}})}function W(j,H){return h.mapValues(h.pick(j,H),Number)}function F(j){var H={};return j&&Object.entries(j).forEach(([z,U])=>{typeof z=="string"&&(z=z.toLowerCase()),H[z]=U}),H}}),oB=We((e,t)=>{var n=vt(),r=Mn().Graph;t.exports={debugOrdering:i};function i(o){let s=n.buildLayerMatrix(o),a=new r({compound:!0,multigraph:!0}).setGraph({});return o.nodes().forEach(l=>{a.setNode(l,{label:l}),a.setParent(l,"layer"+o.node(l).rank)}
vendor: 11,270 bytes, line 25
25),o.edges().forEach(l=>a.setEdge(l.v,l.w,{},l.name)),s.forEach((l,c)=>{let f="layer"+c;a.setNode(f,{rank:"same"}),l.reduce((u,p)=>(a.setEdge(u,p,{style:"invis"}),p))}),a}}),sB=We((e,t)=>{t.exports="2.0.4"}),aB=We((e,t)=>{t.exports={graphlib:Mn(),layout:iB(),debug:oB(),util:{time:vt().time,notime:vt().notime},version:sB()}});const Rz=aB();function kz(e,t){var n,r=1;e==null&&(e=0),t==null&&(t=0);function i(){var o,s=n.length,a,l=0,c=0;for(o=0;o<s;++o)a=n[o],l+=a.x,c+=a.y;for(l=(l/s-e)*r,c=(c/s-t)*r,o=0;o<s;++o)a=n[o],a.x-=l,a.y-=c}return i.initialize=function(o){n=o},i.x=function(o){return arguments.length?(e=+o,i):e},i.y=function(o){return arguments.length?(t=+o,i):t},i.strength=function(o){return arguments.length?(r=+o,i):r},i}function lB(e){const t=+this._x.call(null,e),n=+this._y.call(null,e);return vE(this.cover(t,n),t,n,e)}function vE(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var i,o=e._root,s={data:r},a=e._x0,l=e._y0,c=e._x1,f=e._y1,u,p,h,g,y,w,x,b;if(!o)return e._root=s,e;for(;o.length;)if((y=t>=(u=(a+c)/2))?a=u:c=u,(w=n>=(p=(l+f)/2))?l=p:f=p,i=o,!(o=o[x=w<<1|y]))return i[x]=s,e;if(h=+e._x.call(null,o.data),g=+e._y.call(null,o.data),t===h&&n===g)return s.next=o,i?i[x]=s:e._root=s,e;do i=i?i[x]=new Array(4):e._root=new Array(4),(y=t>=(u=(a+c)/2))?a=u:c=u,(w=n>=(p=(l+f)/2))?l=p:f=p;while((x=w<<1|y)===(b=(g>=p)<<1|h>=u));return i[b]=o,i[x]=s,e}function cB(e){var t,n,r=e.length,i,o,s=new Array(r),a=new Array(r),l=1/0,c=1/0,f=-1/0,u=-1/0;for(n=0;n<r;++n)isNaN(i=+this._x.call(null,t=e[n]))||isNaN(o=+this._y.call(null,t))||(s[n]=i,a[n]=o,i<l&&(l=i),i>f&&(f=i),o<c&&(c=o),o>u&&(u=o));if(l>f||c>u)return this;for(this.cover(l,c).cover(f,u),n=0;n<r;++n)vE(this,s[n],a[n],e[n]);return this}function uB(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(n))i=(n=Math.floor(e))+1,o=(r=Math.floor(t))+1;else{for(var s=i-n||1,a=this._root,l,c;n>e||e>=i||r>t||t>=o;)switch(c=(t<r)<<1|e<n,l=new Array(4),l[c]=a,a=l,s*=2,c){case 0:i=n+s,o=r+s;break;case 1:n=i-s,o=r+s;break;case 2:i=n+s,r=o-s;break;case 3:n=i-s,r=o-s;break}this._root&&this._root.length&&(this._root=a)}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,this}function fB(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function dB(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function Nt(e,t,n,r,i){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=i}function pB(e,t,n){var r,i=this._x0,o=this._y0,s,a,l,c,f=this._x1,u=this._y1,p=[],h=this._root,g,y;for(h&&p.push(new Nt(h,i,o,f,u)),n==null?n=1/0:(i=e-n,o=t-n,f=e+n,u=t+n,n*=n);g=p.pop();)if(!(!(h=g.node)||(s=g.x0)>f||(a=g.y0)>u||(l=g.x1)<i||(c=g.y1)<o))if(h.length){var w=(s+l)/2,x=(a+c)/2;p.push(new Nt(h[3],w,x,l,c),new Nt(h[2],s,x,w,c),new Nt(h[1],w,a,l,x),new Nt(h[0],s,a,w,x)),(y=(t>=x)<<1|e>=w)&&(g=p[p.length-1],p[p.length-1]=p[p.length-1-y],p[p.length-1-y]=g)}else{var b=e-+this._x.call(null,h.data),m=t-+this._y.call(null,h.data),d=b*b+m*m;if(d<n){var v=Math.sqrt(n=d);i=e-v,o=t-v,f=e+v,u=t+v,r=h.data}}return r}function hB(e){if(isNaN(f=+this._x.call(null,e))||isNaN(u=+this._y.call(null,e)))return this;var t,n=this._root,r,i,o,s=this._x0,a=this._y0,l=this._x1,c=this._y1,f,u,p,h,g,y,w,x;if(!n)return this;if(n.length)for(;;){if((g=f>=(p=(s+l)/2))?s=p:l=p,(y=u>=(h=(a+c)/2))?a=h:c=h,t=n,!(n=n[w=y<<1|g]))return this;if(!n.length)break;(t[w+1&3]||t[w+2&3]||t[w+3&3])&&(r=t,x=w)}for(;n.data!==e;)if(i=n,!(n=n.next))return this;return(o=n.next)&&delete n.next,i?(o?i.next=o:delete i.next,this):t?(o?t[w]=o:delete t[w],(n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length&&(r?r[x]=n:this._root=n),this):(this._root=o,this)}function mB(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function gB(){return this._root}function vB(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function yB(e){var t=[],n,r=this._root,i,o,s,a,l;for(r&&t.push(new Nt(r,this._x0,this._y0,this._x1,this._y1));n=t.pop();)if(!e(r=n.node,o=n.x0,s=n.y0,a=n.x1,l=n.y1)&&r.length){var c=(o+a)/2,f=(s+l)/2;(i=r[3])&&t.push(new Nt(i,c,f,a,l)),(i=r[2])&&t.push(new Nt(i,o,f,c,l)),(i=r[1])&&t.push(new Nt(i,c,s,a,f)),(i=r[0])&&t.push(new Nt(i,o,s,c,f))}return this}function bB(e){var t=[],n=[],r;for(this._root&&t.push(new Nt(this._root,this._x0,this._y0,this._x1,this._y1));r=t.pop();){var i=r.node;if(i.length){var o,s=r.x0,a=r.y0,l=r.x1,c=r.y1,f=(s+l)/2,u=(a+c)/2;(o=i[0])&&t.push(new Nt(o,s,a,f,u)),(o=i[1])&&t.push(new Nt(o,f,a,l,u)),(o=i[2])&&t.push(new Nt(o,s,u,f,c)),(o=i[3])&&t.push(new Nt(o,f,u,l,c))}n.push(r)}for(;r=n.pop();)e(r.node,r.x0,r.y0,r.x1,r.y1);return this}function wB(e){return e[0]}function xB(e){return arguments.length?(this._x=e,this):this._x}function EB(e){return e[1]}function _B(e){return arguments.length?(this._y=e,this):this._y}function Tp(e,t,n){var r=new Ap(t??wB,n??EB,NaN,NaN,NaN,NaN);return e==null?r:r.addAll(e)}function Ap(e,t,n,r,i,o){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function My(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var Vt=Tp.prototype=Ap.prototype;Vt.copy=function(){var e=new Ap(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,n,r;if(!t)return e;if(!t.length)return e._root=My(t),e;for(n=[{source:t,target:e._root=new Array(4)}];t=n.pop();)for(var i=0;i<4;++i)(r=t.source[i])&&(r.length?n.push({source:r,target:t.target[i]=new Array(4)}):t.target[i]=My(r));return e};Vt.add=lB;Vt.addAll=cB;Vt.cover=uB;Vt.data=fB;Vt.extent=dB;Vt.find=pB;Vt.remove=hB;Vt.removeAll=mB;Vt.root=gB;Vt.size=vB;Vt.visit=yB;Vt.visitAfter=bB;Vt.x=xB;Vt.y=_B;function zr(e){return function(){return e}}function yr(e){return(e()-.5)*1e-6}function SB(e){return e.x+e.vx}function OB(e){return e.y+e.vy}function Tz(e){var t,n,r,i=1,o=1;typeof e!="function"&&(e=zr(e==null?1:+e));function s(){for(var c,f=t.length,u,p,h,g,y,w,x=0;x<o;++x)for(u=Tp(t,SB,OB).visitAfter(a),c=0;c<f;++c)p=t[c],y=n[p.index],w=y*y,h=p.x+p.vx,g=p.y+p.vy,u.visit(b);function b(m,d,v,_,O){var C=m.data,k=m.r,A=y+k;if(C){if(C.index>p.index){var T=h-C.x-C.vx,M=g-C.y-C.vy,I=T*T+M*M;I<A*A&&(T===0&&(T=yr(r),I+=T*T),M===0&&(M=yr(r),I+=M*M),I=(A-(I=Math.sqrt(I)))/I*i,p.vx+=(T*=I)*(A=(k*=k)/(w+k)),p.vy+=(M*=I)*A,C.vx-=T*(A=1-A),C.vy-=M*A)}return}return d>h+A||_<h-A||v>g+A||O<g-A}}function a(c){if(c.data)return c.r=n[c.data.index];for(var f=c.r=0;f<4;++f)c[f]&&c[f].r>c.r&&(c.r=c[f].r)}function l(){if(t){var c,f=t.length,u;for(n=new Array(f),c=0;c<f;++c)u=t[c],n[u.index]=+e(u,c,t)}}return s.initialize=function(c,f){t=c,r=f,l()},s.iterations=function(c){return arguments.length?(o=+c,s):o},s.strength=function(c){return arguments.length?(i=+c,s):i},s.radius=function(c){return arguments.length?(e=typeof c=="function"?c:zr(+c),l(),s):e},s}function PB(e){return e.index}function Iy(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function Az(e){var t=PB,n=u,r,i=zr(30),o,s,a,l,c,f=1;e==null&&(e=[]);function u(w){return 1/Math.min(a[w.source.index],a[w.target.index])}function p(w){for(var x=0,b=e.length;x<f;++x)for(var m=0,d,v,_,O,C,k,A;m<b;++m)d=e[m],v=d.source,_=d.target,O=_.x+_.vx-v.x-v.vx||yr(c),C=_.y+_.vy-v.y-v.vy||yr(c),k=Math.sqrt(O*O+C*C),k=(k-o[m])/k*w*r[m],O*=k,C*=k,_.vx-=O*(A=l[m]),_.vy-=C*A,v.vx+=O*(A=1-A),v.vy+=C*A}function h(){if(s){var w,x=s.length,b=e.length,m=new Map(s.map((v,_)=>[t(v,_,s),v])),d;for(w=0,a=new Array(x);w<b;++w)d=e[w],d.index=w,typeof d.source!="object"&&(d.source=Iy(m,d.source)),typeof d.target!="object"&&(d.target=Iy(m,d.target)),a[d.source.index]=(a[d.source.index]||0)+1,a[d.target.index]=(a[d.target.index]||0)+1;for(w=0,l=new Array(b);w<b;++w)d=e[w],l[w]=a[d.source.index]/(a[d.source.index]+a[d.target.index]);r=new Array(b),g(),o=new Array(b),y()}}function g(){if(s)for(var w=0,x=e.length;w<x;++w)r[w]=+n(e[w],w,e)}function y(){if(s)for(var w=0,x=e.length;w<x;++w)o[w]=+i(e[w],w,e)}return p.initialize=function(w,x){s=w,c=x,h()},p.links=function(w){return arguments.length?(e=w,h(),p):e},p.id=function(w){return arguments.length?(t=w,p):t},p.iterations=function(w){return arguments.length?(f=+w,p):f},p.strength=function(w){return arguments.length?(n=typeof w=="function"?w:zr(+w),g(),p):n},p.distance=function(w){return arguments.length?(i=typeof w=="function"?w:zr(+w),y(),p):i},p}const CB=1664525,RB=1013904223,Dy=4294967296;function kB(){let e=1;return()=>(e=(CB*e+RB)%Dy)/Dy}function TB(e){return e.x}function AB(e){return e.y}var LB=10,MB=Math.PI*(3-Math.sqrt(5));function Lz(e){var t,n=1,r=.001,i=1-Math.pow(r,1/300),o=0,s=.6,a=new Map,l=gp(u),c=ms("tick","end"),f=kB();e==null&&(e=[]);function u(){p(),c.call("tick",t),n<r&&(l.stop(),c.call("end",t))}function p(y){var w,x=e.length,b;y===void 0&&(y=1);for(var m=0;m<y;++m)for(n+=(o-n)*i,a.forEach(function(d){d(n)}),w=0;w<x;++w)b=e[w],b.fx==null?b.x+=b.vx*=s:(b.x=b.fx,b.vx=0),b.fy==null?b.y+=b.vy*=s:(b.y=b.fy,b.vy=0);return t}function h(){for(var y=0,w=e.length,x;y<w;++y){if(x=e[y],x.index=y,x.fx!=null&&(x.x=x.fx),x.fy!=null&&(x.y=x.fy),isNaN(x.x)||isNaN(x.y)){var b=LB*Math.sqrt(.5+y),m=y*MB;x.x=b*Math.cos(m),x.y=b*Math.sin(m)}(isNaN(x.vx)||isNaN(x.vy))&&(x.vx=x.vy=0)}}function g(y){return y.initialize&&y.initialize(e,f),y}return h(),t={tick:p,restart:function(){return l.restart(u),t},stop:function(){return l.stop(),t},nodes:function(y){return arguments.length?(e=y,h(),a.forEach(g),t):e},alpha:function(y){return arguments.length?(n=+y,t):n},alphaMin:function(y){return arguments.length?(r=+y,t):r},alphaDecay:function(y){return arguments.length?(i=+y,t):+i},alphaTarget:function(y){return arguments.length?(o=+y,t):o},velocityDecay:function(y){return arguments.length?(s=1-y,t):1-s},randomSource:function(y){return arguments.length?(f=y,a.forEach(g),t):f},force:function(y,w){return arguments.length>1?(w==null?a.delete(y):a.set(y,g(w)),t):a.get(y)},find:function(y,w,x){var b=0,m=e.length,d,v,_,O,C;for(x==null?x=1/0:x*=x,b=0;b<m;++b)O=e[b],d=y-O.x,v=w-O.y,_=d*d+v*v,_<x&&(C=O,x=_);return C},on:function(y,w){return arguments.length>1?(c.on(y,w),t):c.on(y)}}}function Mz(){var e,t,n,r,i=zr(-30),o,s=1,a=1/0,l=.81;function c(h){var g,y=e.length,w=Tp(e,TB,AB).visitAfter(u);for(r=h,g=0;g<y;++g)t=e[g],w.visit(p)}function f(){if(e){var h,g=e.length,y;for(o=new Array(g),h=0;h<g;++h)y=e[h],o[y.index]=+i(y,h,e)}}function u(h){var g=0,y,w,x=0,b,m,d;if(h.length){for(b=m=d=0;d<4;++d)(y=h[d])&&(w=Math.abs(y.value))&&(g+=y.value,x+=w,b+=w*y.x,m+=w*y.y);h.x=b/x,h.y=m/x}else{y=h,y.x=y.data.x,y.y=y.data.y;do g+=o[y.data.index];while(y=y.next)}h.value=g}function p(h,g,y,w){if(!h.value)return!0;var x=h.x-t.x,b=h.y-t.y,m=w-g,d=x*x+b*b;if(m*m/l<d)return d<a&&(x===0&&(x=yr(n),d+=x*x),b===0&&(b=yr(n),d+=b*b),d<s&&(d=Math.sqrt(s*d)),t.vx+=x*h.value*r/d,t.vy+=b*h.value*r/d),!0;if(h.length||d>=a)return;(h.data!==t||h.next)&&(x===0&&(x=yr(n),d+=x*x),b===0&&(b=yr(n),d+=b*b),d<s&&(d=Math.sqrt(s*d)));do h.data!==t&&(m=o[h.data.index]*r/d,t.vx+=x*m,t.vy+=b*m);while(h=h.next)}return c.initialize=function(h,g){e=h,n=g,f()},c.strength=function(h){return arguments.length?(i=typeof h=="function"?h:zr(+h),f(),c):i},c.distanceMin=function(h){return arguments.length?(s=h*h,c):Math.sqrt(s)}
25,c.distanceMax=function(h){return arguments.length?(a=h*h,c):Math.sqrt(a)},c.theta=function(h){return arguments.length?(l=h*h,c):Math.sqrt(l)},c}export{mz as $,LH as A,p2 as B,yt as C,Mc as D,tP as E,sz as F,HB as G,UB as H,FB as I,rz as J,lz as K,UV as L,BB as M,pH as N,RV as O,PH as P,x_ as Q,XB as R,iV as S,NB as T,vV as U,yV as V,cz as W,dH as X,XV as Y,tH as Z,Rt as _,gn as a,yz as a$,vH as a0,GV as a1,yH as a2,xH as a3,PV as a4,xV as a5,QB as a6,zB as a7,fz as a8,bz as a9,SD as aA,JV as aB,eH as aC,AV as aD,oV as aE,CV as aF,EH as aG,_H as aH,iH as aI,fH as aJ,aH as aK,OH as aL,hV as aM,MV as aN,uV as aO,LV as aP,zV as aQ,ZB as aR,qV as aS,bH as aT,hH as aU,SV as aV,wV as aW,VM as aX,uH as aY,aV as aZ,KB as a_,OV as aa,jV as ab,VV as ac,eV as ad,HV as ae,cV as af,pV as ag,BV as ah,kH as ai,wz as aj,tV as ak,JB as al,SH as am,YV as an,uz as ao,CH as ap,EV as aq,bV as ar,eA as as,lH as at,sH as au,gV as av,GB as aw,oH as ax,IV as ay,gH as az,Si as b,kV as b0,rV as b1,DV as b2,xz as b3,Ez as b4,IH as b5,MH as b6,DH as b7,fV as b8,RH as b9,ve as bA,Lz as bB,Az as bC,Mz as bD,kz as bE,Tz as bF,Rz as bG,_V as bH,cH as ba,NV as bb,FV as bc,QV as bd,nH as be,lV as bf,rH as bg,KV as bh,wH as bi,sV as bj,vz as bk,nV as bl,gz as bm,mH as bn,TV as bo,WV as bp,dV as bq,l9 as br,Rp as bs,Sz as bt,Oz as bu,_z as bv,Pz as bw,Cz as bx,fc as by,Ol as bz,pz as c,Cb as d,oz as e,iz as f,hz as g,Gt as h,dz as i,k2 as j,DB as k,jB as l,YB as m,Ot as n,nz as o,Q_ as p,qB as q,AH as r,$B as s,ZV as t,az as u,TH as v,A_ as w,$V as x,mV as y,WB as z};

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.