PageSourceSearch

https://parasite.space/_next/static/chunks/6247-f430348f1630f9a1.js

js parasite.space collected 2026-10-03 23:51:36 UTC 253,867 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6247],{81:function(e,t,r){var i=this&&this.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,s){function o(e){try{l(i.next(e))}catch(e){s(e)}}function a(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,a)}l((i=i.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.TokenSigner=t.createUnsecuredToken=void 0;let n=r(2161),s=r(8621),o=r(6328),a=r(2632);function l(e,t){let r=[];return r.push(n.encode(JSON.stringify(t))),r.push(n.encode(JSON.stringify(e))),r.join(".")}t.createUnsecuredToken=function(e){return l(e,{typ:"JWT",alg:"none"})+"."};class u{constructor(e,t){if(!(e&&t))throw new o.MissingParametersError("a signing algorithm and private key are required");if("string"!=typeof e)throw Error("signing algorithm parameter must be a string");if(e=e.toUpperCase(),!s.cryptoClients.hasOwnProperty(e))throw Error("invalid signing algorithm");this.tokenType="JWT",this.cryptoClient=s.cryptoClients[e],this.rawPrivateKey=t}header(e={}){return Object.assign({},{typ:this.tokenType,alg:this.cryptoClient.algorithmName},e)}sign(e,t=!1,r={}){let i=this.header(r),n=l(e,i),s=(0,a.hashSha256)(n);return this.createWithSignedHash(e,t,i,n,s)}signAsync(e,t=!1,r={}){return i(this,void 0,void 0,function*(){let i=this.header(r),n=l(e,i),s=yield(0,a.hashSha256Async)(n);return this.createWithSignedHash(e,t,i,n,s)})}createWithSignedHash(e,t,r,i,s){let o=this.cryptoClient.signHash(s,this.rawPrivateKey);return t?{header:[n.encode(JSON.stringify(r))],payload:JSON.stringify(e),signature:[o]}:[i,o].join(".")}}t.TokenSigner=u},313:(e,t,r)=>{let i,n,s;r.d(t,{P:()=>sN});let o=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],a=new Set([...o,"pathRotation"]),l=(e,t,r)=>r>t?t:r<e?e:r,u={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},h={...u,transform:e=>l(0,1,e)},c={...u,default:1},d=e=>Math.round(1e5*e)/1e5,f=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,p=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,m=(e,t)=>r=>!!("string"==typeof r&&p.test(r)&&r.startsWith(e)||t&&null!=r&&Object.prototype.hasOwnProperty.call(r,t)),g=(e,t,r)=>i=>{if("string"!=typeof i)return i;let[n,s,o,a]=i.match(f);return{[e]:parseFloat(n),[t]:parseFloat(s),[r]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},y={...u,transform:e=>Math.round(l(0,255,e))},w={test:m("rgb","red"),parse:g("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:i=1})=>"rgba("+y.transform(e)+", "+y.transform(t)+", "+y.transform(r)+", "+d(h.transform(i))+")"},b={test:m("#"),parse:function(e){let t="",r="",i="",n="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),i=e.substring(5,7),n=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),i=e.substring(3,4),n=e.substring(4,5),t+=t,r+=r,i+=i,n+=n),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(i,16),alpha:n?parseInt(n,16)/255:1}},transform:w.transform},v=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),x=v("deg"),S=v("%"),M=v("px"),A=v("vh"),P=v("vw"),j={...S,parse:e=>S.parse(e)/100,transform:e=>S.transform(100*e)},E={test:m("hsl","hue"),parse:g("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:i=1})=>"hsla("+Math.round(e)+", "+S.transform(d(t))+", "+S.transform(d(r))+", "+d(h.transform(i))+")"},T={test:e=>w.test(e)||b.test(e)||E.test(e),parse:e=>w.test(e)?w.parse(e):E.test(e)?E.parse(e):b.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?w.transform(e):E.transform(e),getAnimatableNone:e=>{let t=T.parse(e);return t.alpha=0,T.transform(t)}},I=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,k="number",O="color",D=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function N(e){let t=e.toString(),r=[],i={color:[],number:[],var:[]},n=[],s=0,o=t.replace(D,e=>(T.test(e)?(i.color.push(s),n.push(O),r.push(T.parse(e))):e.startsWith("var(")?(i.var.push(s),n.push("var"),r.push(e)):(i.number.push(s),n.push(k),r.push(parseFloat(e))),++s,"${}")).split("${}");return{values:r,split:o,indexes:i,types:n}}function C({split:e,types:t}){let r=e.length;return i=>{let n="";for(let s=0;s<r;s++)if(n+=e[s],void 0!==i[s]){let e=t[s];e===k?n+=d(i[s]):e===O?n+=T.transform(i[s]):n+=i[s]}return n}}let _={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(f)?.length||0)+(e.match(I)?.length||0)>0},parse:function(e){return N(e).values},createTransformer:function(e){return C(N(e))},getAnimatableNone:function(e){let t=N(e);return C(t)(t.values.map((e,r)=>((e,t)=>"number"==typeof e?t?.trim().endsWith("/")?e:0:"number"==typeof e?0:T.test(e)?T.getAnimatableNone(e):e)(e,t.split[r])))}},R=new Set(["brightness","contrast","saturate","opacity"]);function L(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[i]=r.match(f)||[];if(!i)return e;let n=r.replace(i,""),s=+!!R.has(t);return i!==r&&(s*=100),t+"("+s+n+")"}let Y=/\b([a-z-]*)\(.*?\)/gu,B={..._,getAnimatableNone:e=>{let t=e.match(Y);return t?t.map(L).join(" "):e}},z={..._,getAnimatableNone:e=>{let t=_.parse(e);return _.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}},V={...u,transform:Math.round},U={borderWidth:M,borderTopWidth:M,borderRightWidth:M,borderBottomWidth:M,borderLeftWidth:M,borderRadius:M,borderTopLeftRadius:M,borderTopRightRadius:M,borderBottomRightRadius:M,borderBottomLeftRadius:M,width:M,maxWidth:M,height:M,maxHeight:M,top:M,right:M,bottom:M,left:M,inset:M,insetBlock:M,insetBlockStart:M,insetBlockEnd:M,insetInline:M,insetInlineStart:M,insetInlineEnd:M,padding:M,paddingTop:M,paddingRight:M,paddingBottom:M,paddingLeft:M,paddingBlock:M,paddingBlockStart:M,paddingBlockEnd:M,paddingInline:M,paddingInlineStart:M,paddingInlineEnd:M,margin:M,marginTop:M,marginRight:M,marginBottom:M,marginLeft:M,marginBlock:M,marginBlockStart:M,marginBlockEnd:M,marginInline:M,marginInlineStart:M,marginInlineEnd:M,fontSize:M,backgroundPositionX:M,backgroundPositionY:M,rotate:x,pathRotation:x,rotateX:x,rotateY:x,rotateZ:x,scale:c,scaleX:c,scaleY:c,scaleZ:c,skew:x,skewX:x,skewY:x,distance:M,translateX:M,translateY:M,translateZ:M,x:M,y:M,z:M,perspective:M,transformPerspective:M,opacity:h,originX:j,originY:j,originZ:M,zIndex:V,fillOpacity:h,strokeOpacity:h,numOctaves:V},F={...U,color:T,backgroundColor:T,outlineColor:T,fill:T,stroke:T,borderColor:T,borderTopColor:T,borderRightColor:T,borderBottomColor:T,borderLeftColor:T,filter:B,WebkitFilter:B,mask:z,WebkitMask:z},H=e=>F[e],q=()=>({translate:0,scale:1,origin:0,originPoint:0}),W=()=>({x:q(),y:q()}),Z=()=>({min:0,max:0}),K=()=>({x:Z(),y:Z()}),G=e=>!!(e&&e.getVelocity),Q=new Set(["width","height","top","left","right","bottom",...o]),$=e=>t=>t.test(e),J=[u,M,S,x,P,A,{test:e=>"auto"===e,parse:e=>e}],X=e=>J.find($(e));r(8793);let ee=()=>{},et=()=>{},er=e=>t=>"string"==typeof t&&t.startsWith(e),ei=er("--"),en=er("var(--"),es=e=>!!en(e)&&eo.test(e.split("/*")[0].trim()),eo=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ea(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}let el=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,eu=e=>180*e/Math.PI,eh=e=>ed(eu(Math.atan2(e[1],e[0]))),ec={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:eh,rotateZ:eh,skewX:e=>
1eu(Math.atan(e[1])),skewY:e=>eu(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ed=e=>((e%=360)<0&&(e+=360),e),ef=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ep=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),em={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ef,scaleY:ep,scale:e=>(ef(e)+ep(e))/2,rotateX:e=>ed(eu(Math.atan2(e[6],e[5]))),rotateY:e=>ed(eu(Math.atan2(-e[2],e[0]))),rotateZ:eh,rotate:eh,skewX:e=>eu(Math.atan(e[4])),skewY:e=>eu(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function eg(e){return+!!e.includes("scale")}function ey(e,t){let r,i;if(!e||"none"===e)return eg(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(n)r=em,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=ec,i=t}if(!i)return eg(t);let s=r[t],o=i[1].split(",").map(ew);return"function"==typeof s?s(o):o[s]}function ew(e){return parseFloat(e.trim())}let eb=e=>e===u||e===M,ev=new Set(["x","y","z"]),ex=o.filter(e=>!ev.has(e)),eS={width:({x:e},{paddingLeft:t="0",paddingRight:r="0",boxSizing:i})=>{let n=e.max-e.min;return"border-box"===i?n:n-parseFloat(t)-parseFloat(r)},height:({y:e},{paddingTop:t="0",paddingBottom:r="0",boxSizing:i})=>{let n=e.max-e.min;return"border-box"===i?n:n-parseFloat(t)-parseFloat(r)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>ey(t,"x"),y:(e,{transform:t})=>ey(t,"y")};eS.translateX=eS.x,eS.translateY=eS.y;let eM=e=>e,eA={},eP=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function ej(e,t){let r=!1,i=!0,n={delta:0,timestamp:0,isProcessing:!1},s=()=>r=!0,o=eP.reduce((e,t)=>(e[t]=function(e){let t=new Set,r=new Set,i=!1,n=!1,s=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function a(t){s.has(t)&&(l.schedule(t),e()),t(o)}let l={schedule:(e,n=!1,o=!1)=>{let a=o&&i?t:r;return n&&s.add(e),a.add(e),e},cancel:e=>{r.delete(e),s.delete(e)},process:e=>{if(o=e,i){n=!0;return}i=!0;let s=t;t=r,r=s,t.forEach(a),t.clear(),i=!1,n&&(n=!1,l.process(e))}};return l}(s),e),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:h,update:c,preRender:d,render:f,postRender:p}=o,m=()=>{let s=eA.useManualTiming,o=s?n.timestamp:performance.now();r=!1,s||(n.delta=i?1e3/60:Math.max(Math.min(o-n.timestamp,40),1)),n.timestamp=o,n.isProcessing=!0,a.process(n),l.process(n),u.process(n),h.process(n),c.process(n),d.process(n),f.process(n),p.process(n),n.isProcessing=!1,r&&t&&(i=!1,e(m))};return{schedule:eP.reduce((t,s)=>{let a=o[s];return t[s]=(t,s=!1,o=!1)=>(!r&&(r=!0,i=!0,n.isProcessing||e(m)),a.schedule(t,s,o)),t},{}),cancel:e=>{for(let t=0;t<eP.length;t++)o[eP[t]].cancel(e)},state:n,steps:o}}let{schedule:eE,cancel:eT,state:eI,steps:ek}=ej("u">typeof requestAnimationFrame?requestAnimationFrame:eM,!0),eO=new Set,eD=!1,eN=!1,eC=!1;function e_(){if(eN){let e=Array.from(eO).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),r=new Map;t.forEach(e=>{let t,i=(t=[],ex.forEach(r=>{let i=e.getValue(r);void 0!==i&&(t.push([r,i.get()]),i.set(+!!r.startsWith("scale")))}),t);i.length&&(r.set(e,i),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.get(e);t&&t.forEach(([t,r])=>{e.getValue(t)?.set(r)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}eN=!1,eD=!1,eO.forEach(e=>e.complete(eC)),eO.clear()}function eR(){eO.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(eN=!0)})}class eL{constructor(e,t,r,i,n,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=r,this.motionValue=i,this.element=n,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(eO.add(this),eD||(eD=!0,eE.read(eR),eE.resolveKeyframes(e_))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:r,motionValue:i}=this;if(null===e[0]){let n=i?.get(),s=e[e.length-1];if(void 0!==n)e[0]=n;else if(r&&t){let i=r.readValue(t,s);null!=i&&(e[0]=i)}void 0===e[0]&&(e[0]=s),i&&void 0===n&&i.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),eO.delete(this)}cancel(){"scheduled"===this.state&&(eO.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let eY=new Set([B,z]);function eB(e,t){let r=H(e);return eY.has(r)||(r=_),r.getAnimatableNone?r.getAnimatableNone(t):void 0}
1let ez=new Set(["auto","none","0"]);class eV extends eL{constructor(e,t,r,i,n){super(e,t,r,i,n,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:r}=this;if(!t||!t.current)return;super.readKeyframes();for(let r=0;r<e.length;r++){let i=e[r];if("string"==typeof i&&es(i=i.trim())){let n=function e(t,r,i=1){et(`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[n,s]=function(e){let t=el.exec(e);if(!t)return[,];let[,r,i,n]=t;return[`--${r??i}`,n]}(t);if(!n)return;let o=window.getComputedStyle(r).getPropertyValue(n);if(o){let e=o.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)?parseFloat(e):e}return es(s)?e(s,r,i+1):s}(i,t.current);void 0!==n&&(e[r]=n),r===e.length-1&&(this.finalKeyframe=i)}}if(this.resolveNoneKeyframes(),!Q.has(r)||2!==e.length)return;let[i,n]=e,s=X(i),o=X(n);if(ea(i)!==ea(n)&&eS[r]){this.needsMeasurement=!0;return}if(s!==o)if(eb(s)&&eb(o))for(let t=0;t<e.length;t++){let r=e[t];"string"==typeof r&&(e[t]=parseFloat(r))}else eS[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,r=[];for(let t=0;t<e.length;t++)(null===e[t]||function(e){if("number"==typeof e)return 0===e;if(null===e)return!0;return"none"===e||"0"===e||/^0[^.\s]+$/u.test(e)}(e[t]))&&r.push(t);r.length&&function(e,t,r){let i,n=0;for(;n<e.length&&!i;){let t=e[n];"string"==typeof t&&!ez.has(t)&&N(t).values.length&&(i=e[n]),n++}if(i&&r)for(let n of t)e[n]=eB(r,i)}(e,r,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:r}=this;if(!e||!e.current)return;"height"===r&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=eS[r](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let i=t[t.length-1];void 0!==i&&e.getValue(r,i).jump(i,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:r}=this;if(!e||!e.current)return;let i=e.getValue(t);i&&i.jump(this.measuredOrigin,!1);let n=r.length-1,s=r[n];r[n]=eS[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([t,r])=>{e.getValue(t).set(r)}),this.resolveNoneKeyframes()}}let eU=e=>1e3*e;function eF(e,t){-1===e.indexOf(t)&&e.push(t)}function eH(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}class eq{constructor(){this.subscriptions=[]}add(e){return eF(this.subscriptions,e),()=>eH(this.subscriptions,e)}notify(e,t,r){let i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](e,t,r);else for(let n=0;n<i;n++){let i=this.subscriptions[n];i&&i(e,t,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function eW(e,t,r){t.startsWith("--")?e.style.setProperty(t,r):e.style[t]=r}function eZ(e){let t;return()=>(void 0===t&&(t=e()),t)}let eK={};function eG(e,t){let r=eZ(e);return()=>eK[t]??r()}let eQ=eG(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),e$=e=>null!==e;function eJ(e,{repeat:t,repeatType:r="loop"},i,n=1){let s=e.filter(e$),o=n<0||t&&"loop"!==r&&t%2==1?0:s.length-1;return o&&void 0!==i?i:s[o]}class eX{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let e0=e=>Array.isArray(e)&&"number"==typeof e[0],e1=eG(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),e2=(e,t,r=10)=>{let i="",n=Math.max(Math.round(t/r),2);for(let t=0;t<n;t++)i+=Math.round(1e4*e(t/(n-1)))/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},e5=([e,t,r,i])=>`cubic-bezier(${e}, ${t}, ${r}, ${i})`,e3={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:e5([0,.65,.55,1]),circOut:e5([.55,0,1,.45]),backIn:e5([.31,.01,.66,-.59]),backOut:e5([.33,1.53,.69,.99])};function e4(e){return"function"==typeof e&&"applyToOptions"in e}class e6 extends eX{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:r,keyframes:i,pseudoElement:n,allowFlatten:s=!1,finalKeyframe:o,onComplete:a}=e;this.isPseudoElement=!!n,this.allowFlatten=s,this.options=e,et(e.type);const l=function({type:e,...t}){return e4(e)&&e1()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,r,{delay:i=0,duration:n=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u){let h={[t]:r};l&&(h.offset=l);let c=function e(t,r){if(t)return"function"==typeof t?e1()?e2(t,r):"ease-out":e0(t)?e5(t):Array.isArray(t)?t.map(t=>e(t,r)||e3.easeOut):e3[t]}(a,n);Array.isArray(c)&&(h.easing=c);let d={delay:i,duration:n,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"};return u&&(d.pseudoElement=u),e.animate(h,d)}(t,r,i,l,n),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){let e=eJ(i,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),eW(t,r,e),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(e){let t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=eU(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:r,observe:i}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&eQ())?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),r&&(this.animation.rangeEnd=r),eM):i(this)}}let e8=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),{schedule:e9}=ej(queueMicrotask,!1);function e7(){i=void 0}let te={now:()=>(void 0===i&&te.set(eI.isProcessing||eA.useManualTiming?eI.timestamp:performance.now()),i),set:e=>{i=e,queueMicrotask(e7)}},tt=(e,t)=>t?1e3/t*e:0,tr;class ti{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=te.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=te.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new eq);let r=this.events[e].add(t);return"change"===e?()=>{r(),eE.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,r){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return tr&&tr.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=te.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return tt(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function tn(e,t){return new ti(e,t)}let ts=[...J,T,_],to=new WeakMap;function ta(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function tl(e){return"string"==typeof e||Array.isArray(e)}let tu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],th=["initial",...tu];function tc(e){return ta(e.animate)||th.some(t=>tl(e[t]))}function td(e){return!!(tc(e)||e.variants)}let tf={current:null},tp={current:!1},tm="u">typeof window;function tg(e){let t=[{},{}];
1return e?.values.forEach((e,r)=>{t[0][r]=e.get(),t[1][r]=e.getVelocity()}),t}function ty(e,t,r,i){if("function"==typeof t){let[n,s]=tg(i);t=t(void 0!==r?r:e.custom,n,s)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[n,s]=tg(i);t=t(void 0!==r?r:e.custom,n,s)}return t}let tw=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],tb={};class tv{scrapeMotionValuesFromProps(e,t,r){return{}}constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:i,skipAnimations:n,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=eL,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=te.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,eE.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=n,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=tc(t),this.isVariantNode=td(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...c}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in c){const t=c[e];void 0!==l[e]&&G(t)&&t.set(l[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,to.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(tp.current||function(){if(tp.current=!0,tm)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>tf.current=e.matches;e.addEventListener("change",t),t()}else tf.current=!1}(),this.shouldReduceMotion=tf.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let e in this.projection&&this.projection.unmount(),eT(this.notifyUpdate),eT(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let r;if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&e8.has(e)&&this.current instanceof HTMLElement){let{factory:r,keyframes:i,times:n,ease:s,duration:o}=t.accelerate,a=new e6({element:this.current,name:e,keyframes:i,times:n,ease:s,duration:eU(o)}),l=r(a);this.valueSubscriptions.set(e,()=>{l(),a.cancel()});return}let i=a.has(e);i&&this.onBindTransform&&this.onBindTransform();let n=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&eE.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{n(),r&&r()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in tb){let t=tb[e];if(!t)continue;let{isEnabled:r,Feature:i}=t;if(!this.features[e]&&i&&r(this.props)&&(this.features[e]=new i(this)),this.features[e]){let t=this.features[e];
1t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):K()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<tw.length;t++){let r=tw[t];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);let i=e["on"+r];i&&(this.propEventSubscriptions[r]=this.on(r,i))}this.prevMotionValues=function(e,t,r){for(let i in t){let n=t[i],s=r[i];if(G(n))e.addValue(i,n);else if(G(s))e.addValue(i,tn(n,{owner:e}));else if(s!==n)if(e.hasValue(i)){let t=e.getValue(i);!0===t.liveStyle?t.jump(n):t.hasAnimated||t.set(n)}else{let t=e.getStaticValue(i);e.addValue(i,tn(void 0!==t?t:n,{owner:e}))}}for(let i in r)void 0===t[i]&&e.removeValue(i);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let r=this.values.get(e);t!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return void 0===r&&void 0!==t&&(r=tn(null===t?void 0:t,{owner:this}),this.addValue(e,r)),r}readValue(e,t){let r=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=r){let i,n;if("string"==typeof r&&(i=r,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(i)||(n=r,/^0[^.\s]+$/u.test(n))))r=parseFloat(r);else{let i;i=r,!ts.find($(i))&&_.test(t)&&(r=eB(e,t))}this.setBaseTarget(e,G(r)?r.get():r)}return G(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:r}=this.props;if("string"==typeof r||"object"==typeof r){let i=ty(this.props,r,this.presenceContext?.custom);i&&(t=i[e])}if(r&&void 0!==t)return t;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||G(i)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new eq),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){e9.render(this.render)}}class tx extends tv{constructor(){super(...arguments),this.KeyframeResolver=eV}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){let r=e.style;return r?r[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;G(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function tS(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}let tM=(e,t)=>t&&"number"==typeof e?t.transform(e):e,tA={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tP=o.length;function tj(e,t,r){let{style:i,vars:n,transformOrigin:s}=e,l=!1,u=!1;for(let e in t){let r=t[e];if(a.has(e)){l=!0;continue}if(ei(e)){n[e]=r;continue}{let t=tM(r,U[e]);e.startsWith("origin")?(u=!0,s[e]=t):i[e]=t}}if(!t.transform&&(l||r?i.transform=function(e,t,r){let i="",n=!0;for(let s=0;s<tP;s++){let a=o[s],l=e[a];if(void 0===l)continue;let u=!0;
1if("number"==typeof l)u=l===+!!a.startsWith("scale");else{let e=parseFloat(l);u=a.startsWith("scale")?1===e:0===e}if(!u||r){let e=tM(l,U[a]);if(!u){n=!1;let t=tA[a]||a;i+=`${t}(${e}) `}r&&(t[a]=e)}}let s=e.pathRotation;return s&&(n=!1,i+=`rotate(${tM(s,U.pathRotation)}) `),i=i.trim(),r?i=r(t,n?"":i):n&&(i="none"),i}(t,e.transform,r):i.transform&&(i.transform="none")),u){let{originX:e="50%",originY:t="50%",originZ:r=0}=s;i.transformOrigin=`${e} ${t} ${r}`}}let tE={offset:"stroke-dashoffset",array:"stroke-dasharray"},tT={offset:"strokeDashoffset",array:"strokeDasharray"},tI=["transform","opacity","offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function tk(e,{attrX:t,attrY:r,attrScale:i,pathLength:n,pathSpacing:s=1,pathOffset:o=0,...a},l,u,h){if(tj(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:c,style:d}=e;for(let e of tI)void 0!==c[e]&&(d[e]=c[e],delete c[e]);(d.transform||c.transformOrigin)&&(d.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),d.transform&&(d.transformBox=h?.transformBox??"fill-box",delete c.transformBox),void 0!==t&&(c.x=t),void 0!==r&&(c.y=r),void 0!==i&&(c.scale=i),void 0!==n&&function(e,t,r=1,i=0,n=!0){e.pathLength=1;let s=n?tE:tT;e[s.offset]=`${-i}`,e[s.array]=`${t} ${r}`}(c,n,s,o,!1)}let tO=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),tD=e=>"string"==typeof e&&"svg"===e.toLowerCase();function tN(e,{style:t,vars:r},i,n){let s,o=e.style;for(s in t)o[s]=t[s];for(s in n?.applyProjectionStyles(o,i),r)o.setProperty(s,r[s])}let tC=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function t_(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let tR={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!M.test(e))return e;else e=parseFloat(e);let r=t_(e,t.target.x),i=t_(e,t.target.y);return`${r}% ${i}%`}},tL=(e,t,r)=>e+(t-e)*r,tY={borderRadius:{...tR,applyTo:[...tC]},borderTopLeftRadius:tR,borderTopRightRadius:tR,borderBottomLeftRadius:tR,borderBottomRightRadius:tR,boxShadow:{correct:(e,{treeScale:t,projectionDelta:r})=>{let i=_.parse(e);if(i.length>5)return e;let n=_.createTransformer(e),s=+("number"!=typeof i[0]),o=r.x.scale*t.x,a=r.y.scale*t.y;i[0+s]/=o,i[1+s]/=a;let l=tL(o,a,.5);return"number"==typeof i[2+s]&&(i[2+s]/=l),"number"==typeof i[3+s]&&(i[3+s]/=l),n(i)}}};function tB(e,{layout:t,layoutId:r}){return a.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!tY[e]||"opacity"===e)}function tz(e,t,r){let i=e.style,n=t?.style,s={};if(!i)return s;for(let t in i)(G(i[t])||n&&G(n[t])||tB(t,e)||r?.getValue(t)?.liveStyle!==void 0)&&(s[t]=i[t]);return s}function tV(e,t,r){let i=tz(e,t,r);for(let r in e)(G(e[r])||G(t[r]))&&(i[-1!==o.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]);return i}class tU extends tx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=K}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(a.has(t)){let e=H(t);return e&&e.default||0}if(tI.includes(t)){let r=getComputedStyle(e)[t];if("string"==typeof r&&r)return r.trim()}return t=tO.has(t)?t:tS(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,r){return tV(e,t,r)}build(e,t,r){tk(e,t,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(e,t,r,i){for(let r in tN(e,t,void 0,i),t.attrs)e.setAttribute(tO.has(r)?r:tS(r),t.attrs[r])}mount(e){this.isSVGTag=tD(e.tagName),super.mount(e)}}function tF({top:e,left:t,right:r,bottom:i}){return{x:{min:t,max:r},y:{min:e,max:i}}}function tH(e){return void 0===e||1===e}function tq({scale:e,scaleX:t,scaleY:r}){return!tH(e)||!tH(t)||!tH(r)}function tW(e){return tq(e)||tZ(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function tZ(e){var t,r;return(t=e.x)&&"0%"!==t||(r=e.y)&&"0%"!==r}function tK(e,t,r,i,n){return void 0!==n&&(e=i+n*(e-i)),i+r*(e-i)+t}function tG(e,t=0,r=1,i,n){e.min=tK(e.min,t,r,i,n),e.max=tK(e.max,t,r,i,n)}function tQ(e,{x:t,y:r}){tG(e.x,t.translate,t.scale,t.originPoint),tG(e.y,r.translate,r.scale,r.originPoint)}function t$(e,t){e.min+=t,e.max+=t}function tJ(e,t,r,i,n=.5){let s=tL(e.min,e.max,n);tG(e,t,r,s,i)}function tX(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function t0(e,t,r){let i=r??e;tJ(e.x,tX(t.x,i.x),t.scaleX,t.scale,t.originX),tJ(e.y,tX(t.y,i.y),t.scaleY,t.scale,t.originY)}function t1(e,t){return tF(function(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:i.y,right:i.x}}(e.getBoundingClientRect(),t))}class t2 extends tx{constructor(){super(...arguments),this.type="html",this.renderInstance=tN}mount(e){et(e.style),super.mount(e)}readValueFromInstance(e,t){if(a.has(t))return this.projection?.isProjecting?eg(t):((e,t)=>{let{transform:r="none"}=getComputedStyle(e);return ey(r,t)})(e,t);{let r=window.getComputedStyle(e),i=(ei(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof i?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:t}){return t1(e,t)}build(e,t,r){tj(e,t,r.transformTemplate)}scrapeMotionValuesFromProps(e,t,r){return tz(e,t,r)}}var t5=r(8993);let t3=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function t4(e){if("string"!=typeof e||e.includes("-"));else if(t3.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}var t6=r(9509);let t8=(0,t5.createContext)({}),t9=(0,t5.createContext)({strict:!1}),t7=(0,t5.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),re=(0,t5.createContext)({});function rt(e){return Array.isArray(e)?e.join(" "):e}let rr=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ri(e,t,r){for(let i in t)G(t[i])||tB(i,r)||(e[i]=t[i])}let rn=()=>({...rr(),attrs:{}}),rs=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function ro(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||rs.has(e)}function ra(e){return G(e)?e.get():e}let rl=(0,t5.createContext)(null),ru=e=>(t,r)=>{let i,n=(0,t5.useContext)(re),s=(0,t5.useContext)(rl),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},r,i,n){return{latestValues:function(e,t,r,i){let n={},s=i(e,{});for(let e in s)n[e]=ra(s[e]);let{initial:o,animate:a}=e,l=tc(e),u=td(e);t&&u&&!l&&!1!==e.inherit&&(void 0===o&&(o=t.initial),void 0===a&&(a=t.animate));let h=!!r&&!1===r.initial,c=(h=h||!1===o)?a:o;if(c&&"boolean"!=typeof c&&!ta(c)){let t=Array.isArray(c)?c:[c];for(let r=0;r<t.length;r++){let i=ty(e,t[r]);if(i){let{transitionEnd:e,transition:t,...r}=i;for(let e in r){let t=r[e];if(Array.isArray(t)){let e=h?t.length-1:0;t=t[e]}null!==t&&(n[e]=t)}for(let t in e)n[t]=e[t]}}}return n}(r,i,n,e),renderState:t()}})(e,t,n,s);return r?o():(null===(i=(0,t5.useRef)(null)).current&&(i.current=o()),i.current)},rh=ru({scrapeMotionValuesFromProps:tz,createRenderState:rr}),rc=ru({scrapeMotionValuesFromProps:tV,createRenderState:rn}),rd={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},rf=!1;function rp(){return!function(){if(rf)return;let e={};for(let t in rd)e[t]={isEnabled:e=>rd[t].some(t=>!!e[t])};tb=e,rf=!0}(),tb}let rm=Symbol.for("motionComponentSymbol"),rg="data-"+tS("framerAppearId"),ry=(0,t5.createContext)({});function rw(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}let rb="u">typeof window?t5.useLayoutEffect:t5.useEffect;function rv(e,{forwardMotionProps:t=!1,type:r}={},i,n){i&&function(e){let t=rp();for(let r in e)t[r]={...t[r],...e[r]};tb=t}(i);let s=r?"svg"===r:t4(e),o=s?rc:rh;function a(r,i){var a;let l,u,h,c={...(0,t5.useContext)(t7),...r,layoutId:function({layoutId:e}){let t=(0,t5.useContext)(t8).id;return t&&void 0!==e?t+"-"+e:e}(r)}
1,{isStatic:d,isValidProp:f}=c,p=function(e){let{initial:t,animate:r}=function(e,t){if(tc(e)){let{initial:t,animate:r}=e;return{initial:!1===t||tl(t)?t:void 0,animate:tl(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,t5.useContext)(re));return(0,t5.useMemo)(()=>({initial:t,animate:r}),[rt(t),rt(r)])}(r),m=o(r,d);if(!d&&"u">typeof window){(0,t5.useContext)(t9).strict;let t=function(e){let{drag:t,layout:r}=rp();if(!t&&!r)return{};let i={...t,...r};return{MeasureLayout:t?.isEnabled(e)||r?.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}(c);l=t.MeasureLayout,p.visualElement=function(e,t,r,i,n,s){let{visualElement:o}=(0,t5.useContext)(re),a=(0,t5.useContext)(t9),l=(0,t5.useContext)(rl),u=(0,t5.useContext)(t7),h=u.reducedMotion,c=u.skipAnimations,d=(0,t5.useRef)(null),f=(0,t5.useRef)(!1);i=i||a.renderer,!d.current&&i&&(d.current=i(e,{visualState:t,parent:o,props:r,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:h,skipAnimations:c,isSVG:s}),f.current&&d.current&&(d.current.manuallyAnimateOnMount=!0));let p=d.current,m=(0,t5.useContext)(ry);p&&!p.projection&&n&&("html"===p.type||"svg"===p.type)&&function(e,t,r,i){let{layoutId:n,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutAnchor:h,layoutCrossfade:c}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:n,layout:s,alwaysMeasureLayout:!!o||a&&rw(a),visualElement:e,animationType:"string"==typeof s?s:"both",initialPromotionConfig:i,crossfade:c,layoutScroll:l,layoutRoot:u,layoutAnchor:h})}(d.current,r,n,m);let g=(0,t5.useRef)(!1);(0,t5.useInsertionEffect)(()=>{p&&g.current&&p.update(r,l)});let y=r[rg],w=(0,t5.useRef)(!!y&&"u">typeof window&&!window.MotionHandoffIsComplete?.(y)&&window.MotionHasOptimisedAnimation?.(y));return rb(()=>{f.current=!0,p&&(g.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),w.current&&p.animationState&&p.animationState.animateChanges())}),(0,t5.useEffect)(()=>{p&&(!w.current&&p.animationState&&p.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(y)}),w.current=!1),p.enteringChildren=void 0)}),p}(e,m,c,n,t.ProjectionNode,s)}return(0,t6.jsxs)(re.Provider,{value:p,children:[l&&p.visualElement?(0,t6.jsx)(l,{visualElement:p.visualElement,...c}):null,function(e,t,r,{latestValues:i},n,s=!1,o,a){let l=(o??t4(e)?function(e,t,r,i){let n=(0,t5.useMemo)(()=>{let r=rn();return tk(r,t,tD(i),e.transformTemplate,e.style),{...r.attrs,style:{...r.style}}},[t]);if(e.style){let t={};ri(t,e.style,e),n.style={...t,...n.style}}return n}:function(e,t){let r,i,n={},s=(r=e.style||{},ri(i={},r,e),Object.assign(i,function({transformTemplate:e},t){return(0,t5.useMemo)(()=>{let r=rr();return tj(r,t,e),Object.assign({},r.vars,r.style)},[t])}(e,t)),i);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=s,n})(t,i,n,e),u=function(e,t,r,i){let n={};for(let s in e)("values"!==s||"object"!=typeof e.values)&&!G(e[s])&&((s.startsWith("on")?!ro(s):i?.(s)??!ro(s))||!0===r&&ro(s)||!t&&!ro(s)||e.draggable&&s.startsWith("onDrag"))&&(n[s]=e[s]);return n}(t,"string"==typeof e,s,a),h=e!==t5.Fragment?{...u,...l,ref:r}:{},{children:c}=t,d=(0,t5.useMemo)(()=>G(c)?c.get():c,[c]);return(0,t5.createElement)(e,{...h,children:d})}(e,r,(a=p.visualElement,u=(0,t5.useRef)(i),(0,t5.useInsertionEffect)(()=>{u.current=i}),h=(0,t5.useRef)(null),(0,t5.useCallback)(e=>{e&&m.onMount?.(e),a&&(e?a.mount(e):a.unmount());let t=u.current;if("function"==typeof t)if(e){let r=t(e);"function"==typeof r&&(h.current=r)}else h.current?(h.current(),h.current=null):t(e);else t&&(t.current=e)},[a])),m,d,t,s,f)]})}a.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let l=(0,t5.forwardRef)(a);return l[rm]=e,l}class rx{constructor(e){this.isMounted=!1,this.node=e}update(){}}function rS(e,t,r){let i=e.getProps();return ty(i,t,void 0!==r?r:i.custom,e)}function rM(e,t){if(e?.inherit&&t){let{inherit:r,...i}=e;return{...t,...i}}return e}function rA(e,t){let r=e?.[t]??e?.default??e;return r!==e?rM(r,e):r}let rP=e=>Array.isArray(e);function rj(e,t){let r=e.getValue("willChange");if(G(r)&&r.add)return r.add(t);if(!r&&eA.WillChange){let r=new eA.WillChange("auto");e.addValue("willChange",r),r.add(t)}}let rE=(...e)=>e.reduce((e,t)=>
1r=>t(e(r)));function rT(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function rI(e,t){return r=>r>0?t:e}let rk=(e,t,r)=>{let i=e*e,n=r*(t*t-i)+i;return n<0?0:Math.sqrt(n)},rO=[b,w,E];function rD(e){let t=rO.find(t=>t.test(e));if(ee(`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let r=t.parse(e);return t===E&&(r=function({hue:e,saturation:t,lightness:r,alpha:i}){e/=360,r/=100;let n=0,s=0,o=0;if(t/=100){let i=r<.5?r*(1+t):r+t-r*t,a=2*r-i;n=rT(a,i,e+1/3),s=rT(a,i,e),o=rT(a,i,e-1/3)}else n=s=o=r;return{red:Math.round(255*n),green:Math.round(255*s),blue:Math.round(255*o),alpha:i}}(r)),r}let rN=(e,t)=>{let r=rD(e),i=rD(t);if(!r||!i)return rI(e,t);let n={...r};return e=>(n.red=rk(r.red,i.red,e),n.green=rk(r.green,i.green,e),n.blue=rk(r.blue,i.blue,e),n.alpha=tL(r.alpha,i.alpha,e),w.transform(n))},rC=new Set(["none","hidden"]);function r_(e,t){return r=>tL(e,t,r)}function rR(e){return"number"==typeof e?r_:"string"==typeof e?es(e)?rI:T.test(e)?r
1N:rB:Array.isArray(e)?rL:"object"==typeof e?T.test(e)?rN:rY:rI}function rL(e,t){let r=[...e],i=r.length,n=e.map((e,r)=>rR(e)(e,t[r]));return e=>{for(let t=0;t<i;t++)r[t]=n[t](e);return r}}function rY(e,t){let r={...e,...t},i={};for(let n in r)void 0!==e[n]&&void 0!==t[n]&&(i[n]=rR(e[n])(e[n],t[n]));return e=>{for(let t in i)r[t]=i[t](e);return r}}let rB=(e,t)=>{let r=_.createTransformer(t),i=N(e),n=N(t);if(!(i.indexes.var.length===n.indexes.var.length&&i.indexes.color.length===n.indexes.color.length&&i.indexes.number.length>=n.indexes.number.length))return ee(`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),rI(e,t);if(rC.has(e)&&!n.values.length||rC.has(t)&&!i.values.length)return rC.has(e)?r=>r<=0?e:t:r=>r>=1?t:e;return rE(rL(function(e,t){let r=[],i={color:0,var:0,number:0};for(let n=0;n<t.values.length;n++){let s=t.types[n],o=e.indexes[s][i[s]],a=e.values[o]??0;r[n]=a,i[s]++}return r}(i,n),n.values),r)};function rz(e,t,r){return"number"==typeof e&&"number"==typeof t&&"number"==typeof r?tL(e,t,r):rR(e)(e,t)}let rV=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>eE.update(t,e),stop:()=>eT(t),now:()=>eI.isProcessing?eI.timestamp:te.now()}};function rU(e,t=50,r=2e4,i){let n=0,s=e.next(n);for(i?.push(s.value);!s.done&&n<r;)n+=t,s=e.next(n),i?.push(s.value);return n>=r?1/0:n}let rF=.01,rH=2,rq=.005,rW=.5;function rZ(e,t){return e*Math.sqrt(1-t*t)}let rK=["duration","bounce"],rG=["stiffness","damping","mass"];function rQ(e,t){return t.some(t=>void 0!==e[t])}function r$(e=.3,t=.3){let r,i,n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:s,restDelta:o}=n,a=n.keyframes[0],u=n.keyframes[n.keyframes.length-1],h={done:!1,value:a},{stiffness:c,damping:d,mass:f,duration:p,velocity:m,isResolvedFromDuration:g}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!rQ(e,rG)&&rQ(e,rK))if(t.velocity=0,e.visualDuration){let r=2*Math.PI/(1.2*e.visualDuration),i=r*r,n=2*l(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:1,stiffness:i,damping:n}}else{let r=function({duration:e=800,bounce:t=.3,velocity:r=0,mass:i=1}){let n,s;ee(eU(10));let o=1-t;o=l(.05,1,o),e=l(.01,10,e/1e3),o<1?(n=t=>{let i=t*o,n=i*e;return .001-(i-r)/rZ(t,o)*Math.exp(-n)},s=t=>{let i=t*o*e,s=o*o*t*t*e,a=Math.exp(-i),l=rZ(t*t,o);return(i*r+r-s)*a*(-n(t)+.001>0?-1:1)/l}):(n=t=>-.001+Math.exp(-t*e)*((t-r)*e+1),s=t=>e*e*(r-t)*Math.exp(-t*e));let a=function(e,t,r){let i=r;for(let r=1;r<12;r++)i-=e(i)/t(i);return i}(n,s,5/e);if(e=eU(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{let t=a*a*i;return{stiffness:t,damping:2*o*Math.sqrt(i*t),duration:e}}}({...e,velocity:0});(t={...t,...r,mass:1}).isResolvedFromDuration=!0}return t}({...n,velocity:-((n.velocity||0)/1e3)}),y=m||0,w=d/(2*Math.sqrt(c*f)),b=u-a,v=Math.sqrt(c/f)/1e3,x=w*v,S=5>Math.abs(b);if(s||(s=S?rF:rH),o||(o=S?rq:rW),w<1){let e=rZ(v,w),t=(y+x*b)/e,n=x*t+b*e,s=x*b-t*e,o=-1,a=0,l=0,h=r=>{if(r!==o){o=r;let i=Math.exp(-x*r),h=Math.sin(e*r),c=Math.cos(e*r);a=u-i*(t*h+b*c),l=i*(n*h+s*c)}};r=e=>(h(e),a),i=e=>(h(e),l)}else if(1===w){r=e=>u-Math.exp(-v*e)*(b+(y+v*b)*e);let e=y+v*b;i=t=>Math.exp(-v*t)*(v*e*t-y)}else{let e=v*Math.sqrt(w*w-1);r=t=>{let r=Math.exp(-x*t),i=Math.min(e*t,300);return u-r*((y+x*b)*Math.sinh(i)+e*b*Math.cosh(i))/e};let t=(y+x*b)/e,n=x*t-b*e,s=x*b-t*e;i=t=>{let r=Math.exp(-x*t),i=Math.min(e*t,300);return r*(n*Math.sinh(i)+s*Math.cosh(i))}}let M={calculatedDuration:g&&p||null,velocity:e=>eU(i(e)),next:e=>{let t=r(e);return g?h.done=e>=p:h.done=Math.abs(eU(i(e)))<=s&&Math.abs(u-t)<=o,h.value=h.done?u:t,h},toString:()=>{let e=Math.min(rU(M),2e4),t=e2(t=>M.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return M}function rJ({keyframes:e,velocity:t=0,power:r=.8,timeConstant:i=325,bounceDamping:n=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let c,d,f=e[0],p={done:!1,value:f},m=r*t,g=f+m,y=void 0===o?g:o(g);y!==g&&(m=y-f);let w=e=>-m*Math.exp(-e/i),b=e=>{let t=w(e);p.done=Math.abs(t)<=u,p.value=p.done?y:y+t},v=e=>{let t;if((t=p.value)<a||t>l){var r;c=e,d=r$({keyframes:[p.value,(r=p.value,void 0===a?l:void 0===l||Math.abs(a-r)<Math.abs(l-r)?a:l)],velocity:-w(e)/i*1e3,damping:n,stiffness:s,restDelta:u,restSpeed:h})}};return v(0),{calculatedDuration:null,next:e=>{let t=!1;return(d||void 0!==c||(t=!0,b(e),v(e)),void 0!==c&&e>
1=c)?d.next(e-c):(t||b(e),p)}}}r$.applyToOptions=e=>{let t=function(e,t=100,r){let i=r({...e,keyframes:[0,t]}),n=Math.min(rU(i),2e4);return{type:"keyframes",ease:e=>i.next(n*e).value/t,duration:n/1e3}}(e,100,r$);return e.ease=t.ease,e.duration=eU(t.duration),e.type="keyframes",e};let rX=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function r0(e,t,r,i){return e===t&&r===i?eM:n=>0===n||1===n?n:rX(function(e,t,r,i,n){let s,o,a=0;do(s=rX(o=t+(r-t)/2,i,n)-e)>0?r=o:t=o;while(Math.abs(s)>1e-7&&++a<12);return o}(n,0,1,e,r),t,i)}let r1=r0(.42,0,1,1),r2=r0(0,0,.58,1),r5=r0(.42,0,.58,1),r3=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,r4=e=>t=>1-e(1-t),r6=r0(.33,1.53,.69,.99),r8=r4(r6),r9=r3(r8),r7=e=>e>=1?1:(e*=2)<1?.5*r8(e):.5*(2-Math.pow(2,-10*(e-1))),ie=e=>1-Math.sin(Math.acos(e)),it=r4(ie),ir=r3(ie),ii={linear:eM,easeIn:r1,easeInOut:r5,easeOut:r2,circIn:ie,circInOut:ir,circOut:it,backIn:r8,backInOut:r9,backOut:r6,anticipate:r7},is=e=>{if(e0(e)){et(e.length);let[t,r,i,n]=e;return r0(t,r,i,n)}return"string"==typeof e?(et(ii[e],`Invalid easing type '${e}'`),ii[e]):e},io=(e,t,r)=>{let i=t-e;return i?(r-e)/i:1};function ia({duration:e=300,keyframes:t,times:r,ease:i="easeInOut"}){var n;let s,o=Array.isArray(i)&&"number"!=typeof i[0]?i.map(is):is(i),a={done:!1,value:t[0]},u=function(e,t,{clamp:r=!0,ease:i,mixer:n}={}){let s=e.length;if(et(t.length),1===s)return()=>t[0];if(2===s&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=function(e,t,r){let i=[],n=r||eA.mix||rz,s=e.length-1;for(let r=0;r<s;r++){let s=n(e[r],e[r+1]);t&&(s=rE(Array.isArray(t)?t[r]||eM:t,s)),i.push(s)}return i}(t,i,n),u=a.length,h=r=>{if(o&&r<e[0])return t[0];let i=0;if(u>1)for(;i<e.length-2&&!(r<e[i+1]);i++);let n=io(e[i],e[i+1],r);return a[i](n)};return r?t=>h(l(e[0],e[s-1],t)):h}((n=r&&r.length===t.length?r:(!function(e,t){let r=e[e.length-1];for(let i=1;i<=t;i++){let n=io(0,t,i);e.push(tL(r,1,n))}}(s=[0],t.length-1),s),n.map(t=>t*e)),t,{ease:Array.isArray(o)?o:t.map(()=>o||r5).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(a.value=u(t),a.done=t>=e,a)}}let il={decay:rJ,inertia:rJ,tween:ia,keyframes:ia,spring:r$};function iu(e){"string"==typeof e.type&&(e.type=il[e.type])}let ih=e=>e/100;class ic extends eX{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==te.now()&&this.tick(te.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;iu(e);let{type:t=ia,repeat:r=0,repeatDelay:i=0,repeatType:n,velocity:s=0}=e,{keyframes:o}=e,a=t||ia;a!==ia&&"number"!=typeof o[0]&&(this.mixKeyframes=rE(ih,rz(o[0],o[1])),o=[0,100]);let l=a({...e,keyframes:o});"mirror"===n&&(this.mirroredGenerator=a({...e,keyframes:[...o].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=rU(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let r,{generator:i,totalDuration:n,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:u}=this;if(null===this.startTime)return i.next(0);let{delay:h=0,keyframes:c,repeat:d,repeatType:f,repeatDelay:p,type:m,onUpdate:g,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-n/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let w=this.currentTime-h*(this.playbackSpeed>=0?1:-1),b=this.playbackSpeed>=0?w<0:w>n;this.currentTime=Math.max(w,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let v=this.currentTime,x=i;if(d){let e=Math.min(this.currentTime,n)/a,t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,(t=Math.min(t,d+1))%2&&("reverse"===f?(r=1-r,p&&(r-=p/a)):"mirror"===f&&(x=o)),v=l(0,1,r)*a}b?(this.delayState.value=c[0],r=this.delayState):r=x.next(v),s&&!b&&(r.value=s(r.value));let{done:S}=r;b||null===u||(S=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let M=null===this.holdTime&&("finished"===this.state||"running"===this.state&&S);return M&&m!==rJ&&(r.value=eJ(c,this.options,y,this.speed)),g&&g(r.value),M&&this.finish(),r}then(e,t){return this.finished.then(e,t)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return this.currentTime/1e3}set time(e){e=eU(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e,t=this.currentTime;
1if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let r=this.generator.next(t).value;return tt(r-(e=>this.generator.next(e).value)(e=Math.max(t-5,0)),t-e)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(te.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=rV,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let r=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=r):null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime||(this.startTime=t??r),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(te.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}let id={anticipate:r7,backInOut:r9,circInOut:ir};class ip extends e6{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in id&&(e.ease=id[e.ease])}(e),iu(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:r,onComplete:i,element:n,...s}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let o=new ic({...s,autoplay:!1}),a=Math.max(10,te.now()-this.startTime),u=l(0,10,a-10),h=o.sample(a).value,{name:c}=this.options;n&&c&&eW(n,c,h),t.setWithVelocity(o.sample(Math.max(0,a-u)).value,h,u),o.stop()}}let im=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(_.test(e)||"0"===e)&&!e.startsWith("url("));function ig(e){e.duration=0,e.type="keyframes"}let iy=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,iw=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),ib=eZ(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class iv extends eX{constructor({autoplay:e=!0,delay:t=0,type:r="keyframes",repeat:i=0,repeatDelay:n=0,repeatType:s="loop",keyframes:o,name:a,motionValue:l,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=te.now();const c={autoplay:e,delay:t,type:r,repeat:i,repeatDelay:n,repeatType:s,name:a,motionValue:l,element:u,...h},d=u?.KeyframeResolver||eL;this.keyframeResolver=new d(o,(e,t,r)=>this.onKeyframesResolved(e,t,c,!r),a,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,r,i){let n;this.keyframeResolver=void 0;let{name:s,type:o,velocity:a,delay:l,isHandoff:u,onUpdate:h}=r;this.resolvedAt=te.now();let c=!0;!function(e,t,r,i){let n=e[0];if(null===n)return!1;if("display"===t||"visibility"===t)return!0;let s=e[e.length-1],o=im(n,t),a=im(s,t);return ee(`You are trying to animate ${t} from "${n}" to "${s}". "${o?s:n}" is not an animatable value.`),!!o&&!!a&&(function(e){let t=e[0];if(1===e.length)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}(e)||("spring"===r||e4(r))&&i)}(e,s,o,a)&&(c=!1,(eA.instantAnimations||!l)&&h?.(eJ(e,r,t)),e[0]=e[e.length-1],ig(r),r.repeat=0);let d={startTime:i?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...r,keyframes:e},f=c&&!u&&function(e){let{motionValue:t,name:r,repeatDelay:i,repeatType:n,damping:s,type:o,keyframes:a}=e,l=t?.owner?.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;
1let{onUpdate:u,transformTemplate:h}=t.owner.getProps();return ib()&&r&&(e8.has(r)||iw.has(r)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&iy.test(e[t]))return!0;return!1}(a))&&("transform"!==r||!h)&&!u&&!i&&"mirror"!==n&&0!==s&&"inertia"!==o}(d),p=d.motionValue?.owner?.current;if(f)try{n=new ip({...d,element:p})}catch{n=new ic(d)}else n=new ic(d);n.finished.then(()=>{this.notifyFinished()}).catch(eM),this.pendingTimeline&&(this.stopTimeline=n.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=n}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),eC=!0,eR(),e_(),eC=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let ix={type:"spring",stiffness:500,damping:25,restSpeed:10},iS={type:"keyframes",duration:.8},iM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},iA=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),iP=(e,t,r,i={},n,s)=>o=>{let l=rA(i,e)||{},u=l.delay||i.delay||0,{elapsed:h=0}=i;h-=eU(u);let c={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-h,onUpdate:e=>{t.set(e),l.onUpdate&&l.onUpdate(e)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:s?void 0:n};!function(e){for(let t in e)if(!iA.has(t))return!0;return!1}(l)&&Object.assign(c,((e,{keyframes:t})=>t.length>2?iS:a.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:ix:iM)(e,c)),c.duration&&(c.duration=eU(c.duration)),c.repeatDelay&&(c.repeatDelay=eU(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(ig(c),0===c.delay&&(d=!0)),(eA.instantAnimations||eA.skipAnimations||n?.shouldSkipAnimations||l.skipAnimations)&&(d=!0,ig(c),c.delay=0),c.allowFlatten=!l.type&&!l.ease,d&&!s&&void 0!==t.get()){let e=eJ(c.keyframes,l);if(void 0!==e)return void eE.update(()=>{c.onUpdate(e),c.onComplete()})}return l.isSync?new ic(c):new iv(c)},ij="u">typeof window;function iE(e,t,{delay:r=0,transitionOverride:i,type:n}={}){let{transition:s,transitionEnd:o,...a}=t,l=e.getDefaultTransition();s=s?rM(s,l):l;let u=s?.reduceMotion,h=s?.skipAnimations;i&&(s=i);let c=[],d=n&&e.animationState&&e.animationState.getState()[n],f=s?.path;for(let t in f&&f.animateVisualElement(e,a,s,r,c),a){let i=e.getValue(t,e.latestValues[t]??null),n=a[t];if(void 0===n||d&&function({protectedKeys:e,needsAnimating:t},r){let i=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,i}(d,t))continue;let o={delay:r,...rA(s||{},t)};h&&(o.skipAnimations=!0);let l=i.get();if(void 0!==l&&!i.isAnimating()&&!Array.isArray(n)&&n===l&&!o.velocity){eE.update(()=>i.set(n));continue}let f=!1;if(ij&&window.MotionHandoffAnimation){let r=e.props[rg];if(r){let e=window.MotionHandoffAnimation(r,t,eE);null!==e&&(o.startTime=e,f=!0)}}rj(e,t);let p=u??e.shouldReduceMotion;i.start(iP(t,i,n,p&&Q.has(t)?{type:!1}:o,e,f));let m=i.animation;m&&c.push(m)}if(o){let t=()=>eE.update(()=>{o&&function(e,t){let{transitionEnd:r={},transition:i={},...n}=rS(e,t)||{};for(let t in n={...n,...r}){var s;let r=rP(s=n[t])?s[s.length-1]||0:s;e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,tn(r))}}(e,o)});c.length?Promise.all(c).then(t):t()}return c}function iT(e,t,r,i=0,n=1){let s=Array.from(e).sort((e,t)=>
1e.sortNodePosition(t)).indexOf(t),o=e.size,a=(o-1)*i;return"function"==typeof r?r(s,o):1===n?s*i:a-s*i}function iI(e,t,r={}){let i=rS(e,t,"exit"===r.type?e.presenceContext?.custom:void 0),{transition:n=e.getDefaultTransition()||{}}=i||{};r.transitionOverride&&(n=r.transitionOverride);let s=i?()=>Promise.all(iE(e,i,r)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(i=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=n;return function(e,t,r=0,i=0,n=0,s=1,o){let a=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),a.push(iI(l,t,{...o,delay:r+("function"==typeof i?0:i)+iT(e.variantChildren,l,i,n,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}(e,t,i,s,o,a,r)}:()=>Promise.resolve(),{when:a}=n;if(!a)return Promise.all([s(),o(r.delay)]);{let[e,t]="beforeChildren"===a?[s,o]:[o,s];return e().then(()=>t())}}let ik=th.length;function iO(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let i=0;i<r;i++)if(t[i]!==e[i])return!1;return!0}let iD=[...tu].reverse(),iN=tu.length;function iC(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function i_(){return{animate:iC(!0),whileInView:iC(),whileHover:iC(),whileTap:iC(),whileDrag:iC(),whileFocus:iC(),exit:iC()}}class iR extends rx{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:r})=>(function(e,t,r={}){let i;if(e.notify("AnimationStart",t),Array.isArray(t))i=Promise.all(t.map(t=>iI(e,t,r)));else if("string"==typeof t)i=iI(e,t,r);else{let n="function"==typeof t?rS(e,t,r.custom):t;i=Promise.all(iE(e,n,r))}return i.then(()=>{e.notify("AnimationComplete",t)})})(e,t,r))),r=i_(),i=!0,n=!1,s=t=>(r,i)=>{let n=rS(e,i,"exit"===t?e.presenceContext?.custom:void 0);if(n){let{transition:e,transitionEnd:t,...i}=n;r={...r,...i,...t}}return r};function o(o){let{props:a}=e,l=function e(t){if(!t)return;if(!t.isControllingVariants){let r=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(r.initial=t.props.initial),r}let r={};for(let e=0;e<ik;e++){let i=th[e],n=t.props[i];(tl(n)||!1===n)&&(r[i]=n)}return r}(e.parent)||{},u=[],h=new Set,c={},d=1/0;for(let t=0;t<iN;t++){var f,p;let m=iD[t],g=r[m],y=void 0!==a[m]?a[m]:l[m],w=tl(y),b=m===o?g.isActive:null;!1===b&&(d=t);let v=y===l[m]&&y!==a[m]&&w;if(v&&(i||n)&&e.manuallyAnimateOnMount&&(v=!1),g.protectedKeys={...c},!g.isActive&&null===b||!y&&!g.prevProp||ta(y)||"boolean"==typeof y)continue;if("exit"===m&&g.isActive&&!0!==b){g.prevResolvedValues&&(c={...c,...g.prevResolvedValues});continue}let x=(f=g.prevProp,"string"==typeof(p=y)?p!==f:!!Array.isArray(p)&&!iO(p,f)),S=x||m===o&&g.isActive&&!v&&w||t>d&&w,M=!1,A=Array.isArray(y)?y:[y],P=A.reduce(s(m),{});!1===b&&(P={});let{prevResolvedValues:j={}}=g,E={...j,...P},T=t=>{S=!0,h.has(t)&&(M=!0,h.delete(t)),g.needsAnimating[t]=!0;let r=e.getValue(t);r&&(r.liveStyle=!1)};for(let e in E){let t=P[e],r=j[e];if(!c.hasOwnProperty(e))(rP(t)&&rP(r)?!iO(t,r)||x:t!==r)?null!=t?T(e):h.add(e):void 0!==t&&h.has(e)?T(e):g.protectedKeys[e]=!0}g.prevProp=y,g.prevResolvedValues=P,g.isActive&&(c={...c,...P}),(i||n)&&e.blockInitialAnimation&&(S=!1);let I=v&&x,k=!I||M;S&&k&&u.push(...A.map(t=>{let r={type:m};if("string"==typeof t&&(i||n)&&!I&&e.manuallyAnimateOnMount&&e.parent){let{parent:i}=e,n=rS(i,t);if(i.enteringChildren&&n){let{delayChildren:t}=n.transition||{};r.delay=iT(i.enteringChildren,e,t)}}return{animation:t,options:r}}))}if(h.size){let t={};if("boolean"!=typeof a.initial){let r=rS(e,Array.isArray(a.initial)?a.initial[0]:a.initial);r&&r.transition&&(t.transition=r.transition)}h.forEach(r=>{let i=e.getBaseTarget(r),n=e.getValue(r);n&&(n.liveStyle=!0),t[r]=i??null}),u.push({animation:t})}let m=!!u.length;return i&&(!1===a.initial||a.initial===a.animate)&&!e.manuallyAnimateOnMount&&(m=!1),i=!1,n=!1,m?t(u):Promise.resolve()}return{animateChanges:o,setActive:function(t,i){if(r[t].isActive===i)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,i)),r[t].isActive=i;let n=o(t);for(let e in r)r[e].protectedKeys={};return n},setAnimateFunction:function(r){t=r(e)},getState:()=>r,reset:()=>{r=i_(),n=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();ta(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let iL=0;class iY extends rx{constructor(){super(...arguments),this.id=iL++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;if(e&&!1===r){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if("string"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)){let r=rS(this.node,e,t);if(r){let{transition:e,transitionEnd:t,...i}=r;for(let e in i)this.node.getValue(e)?.jump(i[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let i=this.node.animationState.setActive("exit",!e);t&&!e&&i.then(()=>
1{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}let iB={x:!1,y:!1};function iz(e){return[e("x"),e("y")]}function iV(e){return e.max-e.min}function iU(e,t,r,i=.5){e.origin=i,e.originPoint=tL(t.min,t.max,e.origin),e.scale=iV(r)/iV(t),e.translate=tL(r.min,r.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function iF(e,t,r,i){iU(e.x,t.x,r.x,i?i.originX:void 0),iU(e.y,t.y,r.y,i?i.originY:void 0)}function iH(e,t,r,i=0){e.min=(i?tL(r.min,r.max,i):r.min)+t.min,e.max=e.min+iV(t)}function iq(e,t,r,i=0){let n=i?tL(r.min,r.max,i):r.min;e.min=t.min-n,e.max=e.min+iV(t)}function iW(e,t,r,i){iq(e.x,t.x,r.x,i?.x),iq(e.y,t.y,r.y,i?.y)}let iZ=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),iK=new Set(["INPUT","SELECT","TEXTAREA"]);function iG(e,t,r,i={passive:!0}){return e.addEventListener(t,r,i),()=>e.removeEventListener(t,r,i)}let iQ=e=>"object"==typeof e&&null!==e;function i$(e){return iQ(e)&&"ownerSVGElement"in e}function iJ(e,t,r){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let i=document;t&&(i=t.current);let n=r?.[e]??i.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e).filter(e=>null!=e)}let iX=new WeakMap,i0=(e,t,r)=>(i,n)=>n&&n[0]?n[0][e+"Size"]:i$(i)&&"getBBox"in i?i.getBBox()[t]:i[r],i1=i0("inline","width","offsetWidth"),i2=i0("block","height","offsetHeight");function i5({target:e,borderBoxSize:t}){iX.get(e)?.forEach(r=>{r(e,{get width(){return i1(e,t)},get height(){return i2(e,t)}})})}function i3(e){e.forEach(i5)}let i4=new Set;function i6(e,t){let r;return"function"==typeof e?(i4.add(e),s||(s=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};i4.forEach(t=>t(e))},window.addEventListener("resize",s)),()=>{i4.delete(e),i4.size||"function"!=typeof s||(window.removeEventListener("resize",s),s=void 0)}):(!n&&"u">typeof ResizeObserver&&(n=new ResizeObserver(i3)),(r=iJ(e)).forEach(e=>{let r=iX.get(e);r||(r=new Set,iX.set(e,r)),r.add(t),n?.observe(e)}),()=>{r.forEach(e=>{let r=iX.get(e);r?.delete(t),r?.size||n?.unobserve(e)})})}let i8=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function i9(e){return{point:{x:e.pageX,y:e.pageY}}}function i7(e,t,r,i){return iG(e,t,e=>i8(e)&&r(e,i9(e)),i)}let ne=({current:e})=>e?e.ownerDocument.defaultView:null,nt=(e,t)=>Math.abs(e-t),nr=new Set(["auto","scroll"]);class ni{constructor(e,t,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:n=!1,distanceThreshold:s=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=nn(this.lastRawMoveEventInfo,this.transformPagePoint));let r=no(this.lastMoveEventInfo,this.history),i=null!==this.startEvent,n=(e=r.offset,t={x:0,y:0},Math.sqrt(nt(e.x,t.x)**2+nt(e.y,t.y)**2)>=this.distanceThreshold);if(!i&&!n)return;let{point:s}=r,{timestamp:o}=eI;this.history.push({...s,timestamp:o});let{onStart:a,onMove:l}=this.handlers;
1i||(a&&a(this.lastMoveEvent,r),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,r)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=nn(t,this.transformPagePoint),eE.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:r,onSessionEnd:i,resumeAnimation:n}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=no("pointercancel"===e.type?this.lastMoveEventInfo:nn(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,s),i&&i(e,s)},!i8(e))return;this.dragSnapToOrigin=n,this.handlers=t,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=i||window;const a=nn(i9(e),this.transformPagePoint),{point:l}=a,{timestamp:u}=eI;this.history=[{...l,timestamp:u}];const{onSessionStart:h}=t;h&&h(e,no(a,this.history));const c={passive:!0,capture:!0};this.removeListeners=rE(i7(this.contextWindow,"pointermove",this.handlePointerMove,c),i7(this.contextWindow,"pointerup",this.handlePointerUp,c),i7(this.contextWindow,"pointercancel",this.handlePointerUp,c)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(nr.has(e.overflowX)||nr.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let r=e===window,i=r?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},n={x:i.x-t.x,y:i.y-t.y};(0!==n.x||0!==n.y)&&(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=n.x,this.lastMoveEventInfo.point.y+=n.y):this.history.length>0&&(this.history[0].x-=n.x,this.history[0].y-=n.y),this.scrollPositions.set(e,i),eE.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),eT(this.updatePoint)}}function nn(e,t){return t?{point:t(e.point)}:e}function ns(e,t){return{x:e.x-t.x,y:e.y-t.y}}function no({point:e},t){return{point:e,delta:ns(e,na(t)),offset:ns(e,t[0]),velocity:function(e){if(e.length<2)return{x:0,y:0};let t=e.length-1,r=null,i=na(e);for(;t>=0&&(r=e[t],!(i.timestamp-r.timestamp>eU(.1)));)t--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>2*eU(.1)&&(r=e[1]);let n=(i.timestamp-r.timestamp)/1e3;if(0===n)return{x:0,y:0};let s={x:(i.x-r.x)/n,y:(i.y-r.y)/n};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(t)}}function na(e){return e[e.length-1]}function nl(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function nu(e,t){let r=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,i]=[i,r]),{min:r,max:i}}function nh(e,t,r){return{min:nc(e,t),max:nc(e,r)}}function nc(e,t){return"number"==typeof e?e:e[t]||0}let nd=new WeakMap;class nf{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=K(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:r}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let n=e=>{t&&this.snapToCursor(i9(e).point),this.stopAnimation()},s=(e,t)=>{let{drag:r,dragPropagation:i,onDragStart:n}=this.getProps();if(r&&!i&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(iB[e])return null;else return iB[e]=!0,()=>{iB[e]=!1};return iB.x||iB.y?null:(iB.x=iB.y=!0,()=>{iB.x=iB.y=!1})}(r),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),iz(e=>{let t=this.getAxisMotionValue(e).get()||0;if(S.test(t)){let{projection:r}=this.visualElement;if(r&&r.layout){let i=r.layout.layoutBox[e];i&&(t=iV(i)*(parseFloat(t)/100))}}this.originPoint[e]=t}),n&&eE.update(()=>n(e,t),!1,!0),rj(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:r,dragDirectionLock:i,onDirectionLock:n,onDrag:s}=this.getProps();if(!r&&!this.openDragLock)return;let{offset:o}=t;if(i&&null===this.currentDirection){this.currentDirection=function(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}(o),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",t.point,o),this.updateAxis("y",t.point,o),this.visualElement.render(),s&&eE.update(()=>s(e,t),!1,!0)},a=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new ni(e,{onSessionStart:n,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:ne(this.visualElement),element:this.visualElement.current})}stop(e,t){let r=e||this.latestPointerEvent,i=t||this.latestPanInfo,n=this.isDragging;if(this.cancel(),!n||!i||!r)return;let{velocity:s}=i;this.startAnimation(s);let{onDragEnd:o}=this.getProps();o&&eE.postRender(()=>o(r,i))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,r){let{drag:i}=this.getProps();if(!r||!nm(e,i,this.currentDirection))return;let n=this.getAxisMotionValue(e),s=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(s=function(e,{min:t,max:r},i){return void 0!==t&&e<t?e=i?tL(t,e,i.min):Math.max(e,t):void 0!==r&&e>r&&(e=i?tL(r,e,i.max):Math.min(e,r)),e}(s,this.constraints[e],this.elastic[e])),n.set(s)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;e&&rw(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=function(e,{top:t,left:r,bottom:i,right:n}){return{x:nl(e.x,r,n),y:nl(e.y,t,i)}}(r.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:nh(e,"left","right"),y:nh(e,"top","bottom")}}(t),i!==this.constraints&&!rw(e)&&r&&this.constraints&&!this.hasMutatedConstraints&&iz(e=>{var t,i;let n;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=r.layoutBox[e],i=this.constraints[e],n={},void 0!==i.min&&(n.min=i.min-t.min),void 0!==i.max&&(n.max=i.max-t.min),n))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!rw(t))return!1;let i=t.current;et();let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;n.root&&(n.root.scroll=void 0,n.root.updateScroll());let s=function(e,t,r){let i=t1(e,r),{scroll:n}=t;return n&&(t$(i.x,n.offset.x),t$(i.y,n.offset.y)),i}(i,n.root,this.visualElement.getTransformPagePoint()),o=(e=n.layout.layoutBox,{x:nu(e.x,s.x),y:nu(e.y,s.y)});if(r){let e=r(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(o));this.hasMutatedConstraints=!!e,e&&(o=tF(e))}return o}startAnimation(e){let{drag:t,dragMomentum:r,dragElastic:i,dragTransition:n,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(iz(o=>{if(!nm(o,t,this.currentDirection))return;let l=a&&a[o]||{};(!0===s||s===o)&&(l={min:0,max:0});
1let u={type:"inertia",velocity:r?e[o]:0,bounceStiffness:i?200:1e6,bounceDamping:i?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(e,t){let r=this.getAxisMotionValue(e);return rj(this.visualElement,e),r.start(iP(e,r,0,t,this.visualElement,!1))}stopAnimation(){iz(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){iz(t=>{let{drag:r}=this.getProps();if(!nm(t,r,this.currentDirection))return;let{projection:i}=this.visualElement,n=this.getAxisMotionValue(t);if(i&&i.layout){let{min:r,max:s}=i.layout.layoutBox[t],o=n.get()||0;n.set(e[t]-tL(r,s,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!rw(t)||!r||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};iz(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var r,n;let s,o,a,u=t.get();i[e]=(r={min:u,max:u},n=this.constraints[e],s=.5,o=iV(r),(a=iV(n))>o?s=io(n.min,n.max-o,r.min):o>a&&(s=io(r.min,r.max-a,n.min)),l(0,1,s))}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),iz(t=>{if(!nm(t,e,null))return;let r=this.getAxisMotionValue(t),{min:n,max:s}=this.constraints[t];r.set(tL(n,s,i[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;nd.set(this.visualElement,this);let t=this.visualElement.current,r=i7(t,"pointerdown",e=>{let{drag:r,dragListener:i=!0}=this.getProps(),n=e.target,s=n!==t&&(iK.has(n.tagName)||!0===n.isContentEditable);r&&i&&!s&&this.start(e)}),i=()=>{var r,i,n;let s,o,{dragConstraints:a}=this.getProps();rw(a)&&a.current&&(this.constraints=this.resolveRefConstraints(),e||(r=t,i=a.current,s=i6(r,np(n=()=>this.scalePositionWithinConstraints())),o=i6(i,np(n)),e=()=>{s(),o()}))},{projection:n}=this.visualElement,s=n.addEventListener("measure",i);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),eE.read(i);let o=iG(window,"resize",()=>this.scalePositionWithinConstraints()),a=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(iz(t=>{let r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),r(),s(),a&&a(),e&&e()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:n=!1,dragElastic:s=.35,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:i,dragConstraints:n,dragElastic:s,dragMomentum:o}}}function np(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function nm(e,t,r){return(!0===t||t===e)&&(null===r||r===e)}class ng extends rx{constructor(e){super(e),this.removeGroupControls=eM,this.removeListeners=eM,this.controls=new nf(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||eM}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}let ny=e=>(t,r)=>{e&&eE.update(()=>e(t,r),!1,!0)};class nw extends rx{constructor(){super(...arguments),this.removePointerDownListener=eM}onPointerDown(e){this.session=new ni(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ne(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:ny(e),onStart:ny(t),onMove:ny(r),onEnd:(e,t)=>{delete this.session,i&&eE.postRender(()=>i(e,t))}}}mount(){this.removePointerDownListener=i7(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let nb={hasAnimatedSinceResize:!0,hasEverUpdated:!1},nv=!1;class nx extends t5.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:i}=this.props,{projection:n}=e;n&&(t.group&&t.group.add(n),r&&r.register&&i&&r.register(n),nv&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),nb.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:r,drag:i,isPresent:n}=this.props,{projection:s}=r;return s&&(s.isPresent=n,e.layoutDependency!==t&&s.setOptions({...s.options,layoutDependency:t}),nv=!0,i||e.layoutDependency!==t||void 0===t||e.isPresent!==n?s.willUpdate():this.safeToRemove(),e.isPresent!==n&&(n?s.promote():s.relegate()||eE.postRender(()=>{let e=s.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:r}=e;r&&(r.options.layoutAnchor=t,r.root.didUpdate(),e9.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:i}=e;nv=!0,i&&(i.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function nS(e){let[t,r]=function(e=!0){let t=(0,t5.useContext)(rl);if(null===t)return[!0,null];let{isPresent:r,onExitComplete:i,register:n}=t,s=(0,t5.useId)();(0,t5.useEffect)(()=>
1{if(e)return n(s)},[e]);let o=(0,t5.useCallback)(()=>e&&i&&i(s),[s,i,e]);return!r&&i?[!1,o]:[!0]}(),i=(0,t5.useContext)(t8);return(0,t6.jsx)(nx,{...e,layoutGroup:i,switchLayoutGroup:(0,t5.useContext)(ry),isPresent:t,safeToRemove:r})}let nM=tC.length,nA=e=>"string"==typeof e?parseFloat(e):e,nP=e=>"number"==typeof e||M.test(e);function nj(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let nE=nI(0,.5,it),nT=nI(.5,.95,eM);function nI(e,t,r){return i=>i<e?0:i>t?1:r(io(e,t,i))}function nk(e,t){e.min=t.min,e.max=t.max}function nO(e,t){nk(e.x,t.x),nk(e.y,t.y)}function nD(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function nN(e,t,r,i,n){return e-=t,e=i+1/r*(e-i),void 0!==n&&(e=i+1/n*(e-i)),e}function nC(e,t,[r,i,n],s,o){!function(e,t=0,r=1,i=.5,n,s=e,o=e){if(S.test(t)&&(t=parseFloat(t),t=tL(o.min,o.max,t/100)-o.min),"number"!=typeof t)return;let a=tL(s.min,s.max,i);e===s&&(a-=t),e.min=nN(e.min,t,r,a,n),e.max=nN(e.max,t,r,a,n)}(e,t[r],t[i],t[n],t.scale,s,o)}let n_=["x","scaleX","originX"],nR=["y","scaleY","originY"];function nL(e,t,r,i){nC(e.x,t,n_,r?r.x:void 0,i?i.x:void 0),nC(e.y,t,nR,r?r.y:void 0,i?i.y:void 0)}function nY(e){return 0===e.translate&&1===e.scale}function nB(e){return nY(e.x)&&nY(e.y)}function nz(e,t){return e.min===t.min&&e.max===t.max}function nV(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function nU(e,t){return nV(e.x,t.x)&&nV(e.y,t.y)}function nF(e){return iV(e.x)/iV(e.y)}function nH(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class nq{constructor(){this.members=[]}add(e){eF(this.members,e);for(let t=this.members.length-1;t>=0;t--){let r=this.members[t];if(r===e||r===this.lead||r===this.prevLead)continue;let i=r.instance;i&&!1!==i.isConnected||r.snapshot||(eH(this.members,r),r.unmount())}e.scheduleRender()}remove(e){if(eH(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(!1!==e.isPresent&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.updateSnapshot(),e.scheduleRender();let{layoutDependency:i}=r.options,{layoutDependency:n}=e.options;(void 0===i||i!==n)&&(e.resumeFrom=r,t&&(r.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),!1===e.options.crossfade&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let nW=(e,t)=>e.depth-t.depth;class nZ{constructor(){this.children=[],this.isDirty=!1}add(e){eF(this.children,e),this.isDirty=!0}remove(e){eH(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(nW),this.isDirty=!1,this.children.forEach(e)}}let nK=["","X","Y","Z"],nG=0;function nQ(e,t,r,i){let{latestValues:n}=t;n[e]&&(r[e]=n[e],t.setStaticValue(e,0),i&&(i[e]=0))}function n$({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:i,resetTransform:n}){return class{constructor(e={},r=t?.()){this.id=nG++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>
1{this.projectionUpdateScheduled=!1,this.nodes.forEach(n0),this.nodes.forEach(n7),this.nodes.forEach(se),this.nodes.forEach(n1)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new nZ)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new eq),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let r=this.eventHandlers.get(e);r&&r.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=i$(t)&&!(i$(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:r,layout:i,visualElement:n}=this.options;if(n&&!n.current&&n.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(i||r)&&(this.isLayoutDirty=!0),e){let r,i=0,n=()=>this.root.updateBlockedByResize=!1;eE.read(()=>{i=window.innerWidth}),e(t,()=>{let e=window.innerWidth;if(e!==i){let t,s;i=e,this.root.updateBlockedByResize=!0,r&&r(),t=te.now(),s=({timestamp:e})=>{let r=e-t;r>=250&&(eT(s),n())},eE.setup(s,!0),r=()=>eT(s),nb.hasAnimatedSinceResize&&(nb.hasAnimatedSinceResize=!1,this.nodes.forEach(n9))}})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&n&&(r||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:r,layout:i})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||n.getDefaultTransition()||so,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=n.getProps(),l=!this.targetLayout||!nU(this.targetLayout,i),u=!t&&r;if(this.options.layoutRoot||this.resumeFrom||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...rA(s,"layout"),onPlay:o,onComplete:a};(n.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,u,t.path)}else t||n9(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),eT(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(st),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:r}=t.options;if(!r)return;let i=r.props[rg];if(window.MotionHasOptimisedAnimation(i,"transform")){let{layout:e,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(i,"transform",eE,!(e||r))}let{parent:n}=t;n&&!n.hasCheckedOptimisedAppear&&e(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,("string"==typeof t.latestValues.x||"string"==typeof t.latestValues.y)&&(t.isLayoutDirty=!0),t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:r}=this.options;if(void 0===t&&!r)return;let i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEac
1h(n3),this.nodes.forEach(n5);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(n4);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(n6),this.nodes.forEach(n8),this.nodes.forEach(nJ),this.nodes.forEach(nX)):this.nodes.forEach(n4),this.clearAllSnapshots();let e=te.now();eI.delta=l(0,1e3/60,e-eI.timestamp),eI.timestamp=e,eI.isProcessing=!0,ek.update.process(eI),ek.preRender.process(eI),ek.render.process(eI),eI.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,e9.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(n2),this.sharedNodes.forEach(sr)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,eE.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){eE.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||iV(this.snapshot.measuredBox.x)||iV(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=K()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=i(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!n)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!nB(this.projectionDelta),r=this.getTransformTemplate(),i=r?r(this.latestValues,""):void 0,s=i!==this.prevTransformTemplateValue;e&&this.instance&&(t||tW(this.latestValues)||s)&&(n(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let r=this.measurePageBox(),i=this.removeElementScroll(r);return e&&(i=this.removeTransform(i)),su((t=i).x),su(t.y),{animationId:this.root.animationId,measuredBox:r,layoutBox:i,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return K();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(sc))){let{scroll:e}=this.root;e&&(t$(t.x,e.offset.x),t$(t.y,e.offset.y))}return t}removeElementScroll(e){let t=K();if(nO(t,e),this.scroll?.wasRoot)return t;for(let r=0;r<this.path.length;r++){let i=this.path[r],{scroll:n,options:s}=i;i!==this.root&&n&&s.layoutScroll&&(n.wasRoot&&nO(t,e),t$(t.x,n.offset.x),t$(t.y,n.offset.y))}return t}applyTransform(e,t=!1,r){let i=r||K();nO(i,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(t$(i.x,-r.scroll.offset.x),t$(i.y,-r.scroll.offset.y)),tW(r.latestValues)&&t0(i,r.latestValues,r.layout?.layoutBox)}return tW(this.latestValues)&&t0(i,this.latestValues,this.layout?.layoutBox),i}removeTransform(e){let t=K();nO(t,e);for(let e=0;e<this.path.length;e++){let r,i=this.path[e];tW(i.latestValues)&&(i.instance&&(tq(i.latestValues)&&i.updateSnapshot(),nO(r=K(),i.measurePageBox())),nL(t,i.latestValues,i.snapshot?.layoutBox,r))}return tW(this.latestValues)&&nL(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==eI.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.
1isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let r=!!this.resumingFrom||this!==t;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:i,layoutId:n}=this.options;if(!this.layout||!(i||n))return;this.resolvedRelativeTargetAt=eI.timestamp;let s=this.getClosestProjectingParent();if(s&&this.linkedParentVersion!==s.layoutVersion&&!s.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&s&&s.layout?this.createRelativeTarget(s,this.layout.layoutBox,s.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=K(),this.targetWithTransforms=K()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,a,l,u;this.forceRelativeParentToResolveTarget(),o=this.target,a=this.relativeTarget,l=this.relativeParent.target,u=this.options.layoutAnchor||void 0,iH(o.x,a.x,l.x,u?.x),iH(o.y,a.y,l.y,u?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):nO(this.target,this.layout.layoutBox),tQ(this.target,this.targetDelta)):nO(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&s&&!!s.resumingFrom==!!this.resumingFrom&&!s.options.layoutScroll&&s.target&&1!==this.animationProgress?this.createRelativeTarget(s,this.target,s.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||tq(this.parent.latestValues)||tZ(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,r){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=K(),this.relativeTargetOrigin=K(),iW(this.relativeTargetOrigin,t,r,this.options.layoutAnchor||void 0),nO(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,r=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(r=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===eI.timestamp&&(r=!1),r)return;let{layout:i,layoutId:n}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(i||n))return;nO(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,o=this.treeScale.y;!function(e,t,r,i=!1){let n,s,o=r.length;if(o){t.x=t.y=1;for(let a=0;a<o;a++){s=(n=r[a]).projectionDelta;let{visualElement:o}=n.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(i&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(t$(e.x,-n.scroll.offset.x),t$(e.y,-n.scroll.offset.y)),s&&(t.x*=s.x.scale,t.y*=s.y.scale,tQ(e,s)),i&&tW(n.latestValues)&&t0(e,n.latestValues,n.layout?.layoutBox))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=K());let{target:a}=e;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nD(this.prevProjectionDelta.x,this.projectionDelta.x),nD(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),iF(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===s&&this.treeScale.y===o&&nH(this.projectionDelta.x,this.prevProjectionDelta.x)&&nH(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=W(),this.projectionDelta=W(),this.projectionDeltaWithTransform=W()}setAnimationOrigin(e,t=!1,r){let i,n=this.snapshot,s=n?n.latestValues:{},o={...this.latestValues},a=W();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let l=K(),u=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),c=!h||h.members.length<=1,d=!!(u&&!c&&!0===this.options.crossfade&&!this.path.some(ss));this.animationProgress=0;let f=r?.interpolateProjection(e);this.mixTargetDelta=t=>{let r=t/1e3,n=f?.(r);if(n?(a.x.translate=n.x,a.x.scale=tL(e.x.scale,1,r),a.x.origin=e.x.origin,a.x.originPoint=e.x.originPoint,a.y.translate=n.y,a.y.scale=tL(e.y.scale,1,r),a.y.origin=e.y.origin,a.y.originPoint=e.y.originPoint):(si(a.x,e.x,r),si(a.y,e.y,r)),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,p,m,g,y,w;iW(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),m=this.relativeTarget,g=this.relativeTargetOrigin,y=l,w=r,sn(m.x,g.x,y.x,w),sn(m.y,g.y,y.y,w),i&&(h=this.relativeTarget,p=i,nz(h.x,p.x)&&nz(h.y,p.y))&&(this.isProjectionDirty=!1),i||(i=K()),nO(i,this.relativeTarget)}u&&(this.animationValues=o,function(e,t,r,i,n,s){n?(e.opacity=tL(0,r.opacity??1,nE(i)),e.opacityExit=tL(t.opacity??1,0,nT(i))):s&&(e.opacity=tL(t.opacity??1,r.opacity??1,i));for(let n=0;n<nM;n++){let s=tC[n],o=nj(t,s),a=nj(r,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||nP(o)===nP(a)?(e[s]=Math.max(tL(nA(o),nA(a),i),0),(S.test(a)||S.test(o))&&(e[s]+="
1%")):e[s]=a)}(t.rotate||r.rotate)&&(e.rotate=tL(t.rotate||0,r.rotate||0,i))}(o,s,this.latestValues,r,d,c)),n&&void 0!==n.rotate&&(this.animationValues||(this.animationValues=o),this.animationValues.pathRotation=n.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(eT(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=eE.update(()=>{var t,r,i;let n;nb.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=tn(0)),this.motionValue.jump(0,!1),this.currentAnimation=(t=this.motionValue,r=[0,1e3],i={...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}},(n=G(t)?t:tn(t)).start(iP("",n,r,i)),n.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:r,layout:i,latestValues:n}=e;if(t&&r&&i){if(this!==e&&this.layout&&i&&sh(this.options.animationType,this.layout.layoutBox,i.layoutBox)){r=this.target||K();let t=iV(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;let i=iV(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+i}nO(t,r),t0(t,n),iF(this.projectionDeltaWithTransform,this.layoutCorrected,t,n)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new nq),this.sharedNodes.get(e).add(t);let r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){let i=this.getStack();i&&i.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:r}=e;if((r.z||r.rotate||r.rotateX||r.rotateY||r.rotateZ||r.skewX||r.skewY)&&(t=!0),!t)return;let i={};r.z&&nQ("z",e,i,this.animationValues);for(let t=0;t<nK.length;t++)nQ(`rotate${nK[t]}`,e,i,this.animationValues),nQ(`skew${nK[t]}`,e,i,this.animationValues);for(let t in e.render(),i)e.setStaticValue(t,i[t]),this.animationValues&&(this.animationValues[t]=i[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let r=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=ra(t?.pointerEvents)||"",e.transform=r?r(this.latestValues,""):"none";return}let i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=ra(t?.pointerEvents)||""),this.hasProjected&&!tW(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1);return}e.visibility="";let n=i.animationValues||i.latestValues;this.applyTransformsToTarget();let s=function(e,t,r){let i="",n=e.x.translate/t.x,s=e.y.translate/t.y,o=r?.z||0;if((n||s||o)&&(i=`translate3d(${n}px, ${s}px, ${o}px) `),(1!==t.x||1!==t.y)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),r){let{transformPerspective:e,rotate:t,pathRotation:n,rotateX:s,rotateY:o,skewX:a,skewY:l}=r;e&&(i=`perspective(${e}px) ${i}`),t&&(i+=`rotate(${t}deg) `),n&&(i+=`rotate(${n}deg) `),s&&(i+=`rotateX(${s}deg) `),o&&(i+=`rotateY(${o}deg) `),a&&(i+=`skewX(${a}deg) `),l&&(i+=`skewY(${l}deg) `)}let a=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==a||1!==l)&&(i+=`scale(${a}, ${l})`),i||"none"}(this.projectionDeltaWithTransform,this.treeScale,n);r&&(s=r(n,s)),e.transform=s;let{x:o,y:a}=this.projectionDelta;for(let t in e.transformOrigin=`${100*o.origin}% ${100*a.origin}% 0`,i.animationValues?e.opacity=i===this?n.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:n.opacityExit:e.opacity=i===this?void 0!==n.opacity?n.opacity:"":void 0!==n.opacityExit?n.opacityExit:0,tY){if(void 0===n[t])continue;let{correct:r,applyTo:o,isCSSVariable:a}=tY[t],l="none"===s?n[t]:r(n[t],i);
1if(o){let t=o.length;for(let r=0;r<t;r++)e[o[r]]=l}else a?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=i===this?ra(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(n5),this.root.sharedNodes.clear()}}}function nJ(e){e.updateLayout()}function nX(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:r,measuredBox:i}=e.layout,{animationType:n}=e.options,s=t.source!==e.layout.source;if("size"===n)iz(e=>{let i=s?t.measuredBox[e]:t.layoutBox[e],n=iV(i);i.min=r[e].min,i.max=i.min+n});else if("x"===n||"y"===n){let e="x"===n?"y":"x";nk(s?t.measuredBox[e]:t.layoutBox[e],r[e])}else sh(n,t.layoutBox,r)&&iz(i=>{let n=s?t.measuredBox[i]:t.layoutBox[i],o=iV(r[i]);n.max=n.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[i].max=e.relativeTarget[i].min+o)});let o=W();iF(o,r,t.layoutBox);let a=W();s?iF(a,e.applyTransform(i,!0),t.measuredBox):iF(a,r,t.layoutBox);let l=!nB(o),u=!1;if(!e.resumeFrom){let i=e.getClosestProjectingParent();if(i&&!i.resumeFrom){let{snapshot:n,layout:s}=i;if(n&&s){let o=e.options.layoutAnchor||void 0,a=K();iW(a,t.layoutBox,n.layoutBox,o);let l=K();iW(l,r,s.layoutBox,o),nU(a,l)||(u=!0),i.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=a,e.relativeParent=i)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function n0(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function n1(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function n2(e){e.clearSnapshot()}function n5(e){e.clearMeasurements()}function n3(e){e.isLayoutDirty=!0,e.updateLayout()}function n4(e){e.isLayoutDirty=!1}function n6(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function n8(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function n9(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function n7(e){e.resolveTargetDelta()}function se(e){e.calcProjection()}function st(e){e.resetSkewAndRotation()}function sr(e){e.removeLeadSnapshot()}function si(e,t,r){e.translate=tL(t.translate,0,r),e.scale=tL(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function sn(e,t,r,i){e.min=tL(t.min,r.min,i),e.max=tL(t.max,r.max,i)}function ss(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let so={duration:.45,ease:[.4,0,.1,1]},sa=e=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),sl=sa("applewebkit/")&&!sa("chrome/")?Math.round:eM;function su(e){e.min=sl(e.min),e.max=sl(e.max)}function sh(e,t,r){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(nF(t)-nF(r)))}function sc(e){return e!==e.root&&e.scroll?.wasRoot}let sd=n$({attachResizeListener:(e,t)=>iG(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),sf={current:void 0},sp=n$({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!sf.current){let e=new sd({});e.mount(window),e.setOptions({layoutScroll:!0}),sf.current=e}return sf.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function sm(e,t){let r=iJ(e),i=new AbortController;return[r,{passive:!0,...t,signal:i.signal},()=>i.abort()]}function sg(e,t,r){let{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover","Start"===r);let n=i["onHover"+r];n&&eE.postRender(()=>n(t,i9(t)))}class sy extends rx{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,r={}){let[i,n,s]=sm(e,r);
1return i.forEach(e=>{let r,i=!1,s=!1,o=t=>{r&&(r(t),r=void 0),e.removeEventListener("pointerleave",l)},a=e=>{i=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),s&&(s=!1,o(e))},l=e=>{if("touch"!==e.pointerType){if(i){s=!0;return}o(e)}};e.addEventListener("pointerenter",i=>{if("touch"===i.pointerType||iB.x||iB.y)return;s=!1;let o=t(e,i);"function"==typeof o&&(r=o,e.addEventListener("pointerleave",l,n))},n),e.addEventListener("pointerdown",()=>{i=!0,window.addEventListener("pointerup",a,n),window.addEventListener("pointercancel",a,n)},n)}),s}(e,(e,t)=>(sg(this.node,t,"Start"),e=>sg(this.node,e,"End"))))}unmount(){}}class sw extends rx{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=rE(iG(this.node.current,"focus",()=>this.onFocus()),iG(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let sb=(e,t)=>!!t&&(e===t||sb(e,t.parentElement)),sv=new WeakSet;function sx(e){return t=>{"Enter"===t.key&&e(t)}}function sS(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function sM(e){return i8(e)&&!(iB.x||iB.y)}let sA=new WeakSet;function sP(e,t,r){let{props:i}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap","Start"===r);let n=i["onTap"+("End"===r?"":r)];n&&eE.postRender(()=>n(t,i9(t)))}class sj extends rx{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:r}=this.node.props;this.unmount=function(e,t,r={}){let[i,n,s]=sm(e,r),o=e=>{let i=e.currentTarget;if(!sM(e)||sA.has(e))return;sv.add(i),r.stopPropagation&&sA.add(e);let s=t(i,e),o={...n,capture:!0},a=(e,t)=>{window.removeEventListener("pointerup",l,o),window.removeEventListener("pointercancel",u,o),sv.has(i)&&sv.delete(i),sM(e)&&"function"==typeof s&&s(e,{success:t})},l=e=>{a(e,i===window||i===document||r.useGlobalTarget||sb(i,e.target))},u=e=>{a(e,!1)};window.addEventListener("pointerup",l,o),window.addEventListener("pointercancel",u,o)};return i.forEach(e=>{(r.useGlobalTarget?window:e).addEventListener("pointerdown",o,n),iQ(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)&&(e.addEventListener("focus",e=>((e,t)=>{let r=e.currentTarget;if(!r)return;let i=sx(()=>{if(sv.has(r))return;sS(r,"down");let e=sx(()=>{sS(r,"up")});r.addEventListener("keyup",e,t),r.addEventListener("blur",()=>sS(r,"cancel"),t)});r.addEventListener("keydown",i,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",i),t)})(e,n)),iZ.has(e.tagName)||!0===e.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))}),s}(e,(e,t)=>(sP(this.node,t,"Start"),(e,{success:t})=>sP(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:r?.tap===!1})}unmount(){}}let sE=new WeakMap,sT=new WeakMap,sI=e=>{let t=sE.get(e.target);t&&t(e)},sk=e=>{e.forEach(sI)},sO={some:0,all:1};class sD extends rx{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.stopObserver?.();let{viewport:r={}}=this.node.getProps(),{root:i,margin:n,amount:s="some",once:o}=r,a={root:i?i.current:void 0,rootMargin:n,threshold:"number"==typeof s?s:sO[s]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,o&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:r,onViewportLeave:i}=this.node.getProps(),n=t?r:i;n&&n(e)};this.stopObserver=(e=this.node.current,t=function({root:e,...t}){let r=e||document;sT.has(r)||sT.set(r,{});let i=sT.get(r),n=JSON.stringify(t);return i[n]||(i[n]=new IntersectionObserver(sk,{root:e,...t})),i[n]}(a),sE.set(e,l),t.observe(e),()=>{sE.delete(e),t.unobserve(e)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}let sN=function(e,t){if("u"<typeof Proxy)return rv;let r=new Map,i=(r,i)=>rv(r,i,e,t);return new Proxy((e,t)=>i(e,t),{get:(n,s)=>"create"===s?i:(r.has(s)||r.set(s,rv(s,void 0,e,t)),r.get(s))})}({animation:{Feature:iR},exit:{Feature:iY},inView:{Feature:sD},tap:{Feature:sj},focus:{Feature:sw},hover:{Feature:sy},pan:{Feature:nw},drag:{Feature:ng,ProjectionNode:sp,MeasureLayout:nS},layout:{ProjectionNode:sp,MeasureLayout:nS}},(e,t)=>t.isSVG??t4(e)?new tU(t):new t2(t,{allowProjection:e!==t5.Fragment}))},2161:(e,t,r)=>
1{Object.defineProperty(t,"__esModule",{value:!0}),t.decode=t.encode=t.unescape=t.escape=t.pad=void 0;let i=r(3193);function n(e){return`${e}${"=".repeat(4-(e.length%4||4))}`}function s(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function o(e){return n(e).replace(/-/g,"+").replace(/_/g,"/")}t.pad=n,t.escape=s,t.unescape=o,t.encode=function(e){return s((0,i.fromByteArray)(new TextEncoder().encode(e)))},t.decode=function(e){return new TextDecoder().decode((0,i.toByteArray)(n(o(e))))}},2177:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SHA512_IV=t.SHA384_IV=t.SHA224_IV=t.SHA256_IV=t.HashMD=void 0,t.setBigUint64=n,t.Chi=function(e,t,r){return e&t^~e&r},t.Maj=function(e,t,r){return e&t^e&r^t&r};let i=r(9892);function n(e,t,r,i){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,r,i);let n=BigInt(32),s=BigInt(0xffffffff),o=Number(r>>n&s),a=Number(r&s),l=4*!!i,u=4*!i;e.setUint32(t+l,o,i),e.setUint32(t+u,a,i)}class s extends i.Hash{constructor(e,t,r,n){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=n,this.buffer=new Uint8Array(e),this.view=(0,i.createView)(this.buffer)}update(e){(0,i.aexists)(this),e=(0,i.toBytes)(e),(0,i.abytes)(e);let{view:t,buffer:r,blockLen:n}=this,s=e.length;for(let o=0;o<s;){let a=Math.min(n-this.pos,s-o);if(a===n){let t=(0,i.createView)(e);for(;n<=s-o;o+=n)this.process(t,o);continue}r.set(e.subarray(o,o+a),this.pos),this.pos+=a,o+=a,this.pos===n&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,i.aexists)(this),(0,i.aoutput)(e,this),this.finished=!0;let{buffer:t,view:r,blockLen:s,isLE:o}=this,{pos:a}=this;t[a++]=128,(0,i.clean)(this.buffer.subarray(a)),this.padOffset>s-a&&(this.process(r,0),a=0);for(let e=a;e<s;e++)t[e]=0;n(r,s-8,BigInt(8*this.length),o),this.process(r,0);let l=(0,i.createView)(e),u=this.outputLen;if(u%4)throw Error("_sha2: outputLen should be aligned to 32bit");let h=u/4,c=this.get();if(h>c.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<h;e++)l.setUint32(4*e,c[e],o)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:r,length:i,finished:n,destroyed:s,pos:o}=this;return e.destroyed=s,e.finished=n,e.length=i,e.pos=o,i%t&&e.buffer.set(r),e}clone(){return this._cloneInto()}}t.HashMD=s,t.SHA256_IV=Uint32Array.from([0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19]),t.SHA224_IV=Uint32Array.from([0xc1059ed8,0x367cd507,0x3070dd17,0xf70e5939,0xffc00b31,0x68581511,0x64f98fa7,0xbefa4fa4]),t.SHA384_IV=Uint32Array.from([0xcbbb9d5d,0xc1059ed8,0x629a292a,0x367cd507,0x9159015a,0x3070dd17,0x152fecd8,0xf70e5939,0x67332667,0xffc00b31,0x8eb44a87,0x68581511,0xdb0c2e0d,0x64f98fa7,0x47b5481d,0xbefa4fa4]),t.SHA512_IV=Uint32Array.from([0x6a09e667,0xf3bcc908,0xbb67ae85,0x84caa73b,0x3c6ef372,0xfe94f82b,0xa54ff53a,0x5f1d36f1,0x510e527f,0xade682d1,0x9b05688c,0x2b3e6c1f,0x1f83d9ab,0xfb41bd6b,0x5be0cd19,0x137e2179])},2265:function(e,t,r){var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(81),t),n(r(8465),t),n(r(7733),t),n(r(6328),t),n(r(8621),t)},2632:function(e,t,r){var i=this&&this.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,s){function o(e){try{l(i.next(e))}catch(e){s(e)}}function a(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,a)}l((i=i.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.hashSha256Async=t.hashSha256=void 0;let n=r(8232);function s(e){return(0,n.sha256)(e)}t.hashSha256=s,t.hashSha256Async=function(e){return i(this,void 0,void 0,function*(){try{if("u">typeof crypto&&void 0!==crypto.subtle){let t="string"==typeof e?new TextEncoder().encode(e):e,r=yield crypto.subtle.digest("SHA-256",t);return new Uint8Array(r)}{let t=r(5083);if(!t.createHash)throw Error("`crypto` module does not contain `createHash`");return Promise.resolve(t.createHash("sha256").update(e).digest())}}catch(t){return console.log(t),console.log('Crypto lib not found. Neither the global `crypto.subtle` Web Crypto API, nor the or the Node.js `require("crypto").createHash` module is available. Falling back to JS implementation.'),Promise.resolve(s(e))}})}},3353:(e,t,r)=>
1{Object.defineProperty(t,"__esModule",{value:!0}),t.SECP256K1Client=void 0;let i=r(4320),n=r(8232),s=r(5890),o=r(9376),a=r(6328),l=r(9892);s.utils.hmacSha256Sync=(e,...t)=>{let r=i.hmac.create(n.sha256,e);return t.forEach(e=>r.update(e)),r.digest()};class u{static derivePublicKey(e,t=!0){return 66===e.length&&(e=e.slice(0,64)),e.length<64&&(e=e.padStart(64,"0")),(0,l.bytesToHex)(s.getPublicKey(e,t))}static signHash(e,t,r="jose"){if(!e||!t)throw new a.MissingParametersError("a signing input hash and private key are all required");let i=s.signSync(e,t.slice(0,64),{der:!0,canonical:!1});if("der"===r)return(0,l.bytesToHex)(i);if("jose"===r)return(0,o.derToJose)(i,"ES256");throw Error("Invalid signature format")}static loadSignature(e){return(0,o.joseToDer)(e,"ES256")}static verifyHash(e,t,r){if(!e||!t||!r)throw new a.MissingParametersError("a signing input hash, der signature, and public key are all required");return s.verify(t,e,r,{strict:!1})}}t.SECP256K1Client=u,u.algorithmName="ES256K"},4320:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=t.HMAC=void 0;let i=r(9892);class n extends i.Hash{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,i.ahash)(e);const r=(0,i.toBytes)(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const n=this.blockLen,s=new Uint8Array(n);s.set(r.length>n?e.create().update(r).digest():r);for(let e=0;e<s.length;e++)s[e]^=54;this.iHash.update(s),this.oHash=e.create();for(let e=0;e<s.length;e++)s[e]^=106;this.oHash.update(s),(0,i.clean)(s)}update(e){return(0,i.aexists)(this),this.iHash.update(e),this}digestInto(e){(0,i.aexists)(this),(0,i.abytes)(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));let{oHash:t,iHash:r,finished:i,destroyed:n,blockLen:s,outputLen:o}=this;return e.finished=i,e.destroyed=n,e.blockLen=s,e.outputLen=o,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}t.HMAC=n,t.hmac=(e,t,r)=>new n(e,t).update(r).digest(),t.hmac.create=(e,t)=>new n(e,t)},4763:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sha512_224=t.sha512_256=t.sha384=t.sha512=t.sha224=t.sha256=t.SHA512_256=t.SHA512_224=t.SHA384=t.SHA512=t.SHA224=t.SHA256=void 0;let i=r(2177),n=r(6453),s=r(9892),o=Uint32Array.from([0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2]),a=new Uint32Array(64);class l extends i.HashMD{constructor(e=32){super(64,e,8,!1),this.A=0|i.SHA256_IV[0],this.B=0|i.SHA256_IV[1],this.C=0|i.SHA256_IV[2],this.D=0|i.SHA256_IV[3],this.E=0|i.SHA256_IV[4],this.F=0|i.SHA256_IV[5],this.G=0|i.SHA256_IV[6],this.H=0|i.SHA256_IV[7]}get(){let{A:e,B:t,C:r,D:i,E:n,F:s,G:o,H:a}=this;return[e,t,r,i,n,s,o,a]}set(e,t,r,i,n,s,o,a){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|i,this.E=0|n,this.F=0|s,this.G=0|o,this.H=0|a}process(e,t){for(let r=0;r<16;r++,t+=4)a[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=a[e-15],r=a[e-2],i=(0,s.rotr)(t,7)^(0,s.rotr)(t,18)^t>>>3,n=(0,s.rotr)(r,17)^(0,s.rotr)(r,19)^r>>>10;a[e]=n+a[e-7]+i+a[e-16]|0}let{A:r,B:n,C:l,D:u,E:h,F:c,G:d,H:f}=this;for(let e=0;e<64;e++){let t=f+((0,s.rotr)(h,6)^(0,s.rotr)(h,11)^(0,s.rotr)(h,25))+(0,i.Chi)(h,c,d)+o[e]+a[e]|0,p=((0,s.rotr)(r,2)^(0,s.rotr)(r,13)^(0,s.rotr)(r,22))+(0,i.Maj)(r,n,l)|0;f=d,d=c,c=h,h=u+t|0,u=l,l=n,n=r,r=t+p|0}r=r+this.A|0,n=n+this.B|0,l=l+this.C|0,u=u+this.D|0,h=h+this.E|0,c=c+this.F|0,d=d+this.G|0,f=f+this.H|0,this.set(r,n,l,u,h,c,d,f)}roundClean(){(0,s.clean)(a)}destroy(){this.set(0,0,0,0,0,0,0,0),(0,s.clean)(this.buffer)}}t.SHA256=l;class u extends l{constructor(){super(28),this.A=0|i.SHA224_IV[0],this.B=0|i.SHA224_IV[1],this.C=0|i.SHA224_IV[2],this.D=0|i.SHA224_IV[3],this.E=0|i.SHA224_IV[4],this.F=0|i.SHA224_IV[5],this.G=0|i.SHA224_IV[6],this.H=0|i.SHA224_IV[7]}}t.SHA224=u;let h=n.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b89
16f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),c=h[0],d=h[1],f=new Uint32Array(80),p=new Uint32Array(80);class m extends i.HashMD{constructor(e=64){super(128,e,16,!1),this.Ah=0|i.SHA512_IV[0],this.Al=0|i.SHA512_IV[1],this.Bh=0|i.SHA512_IV[2],this.Bl=0|i.SHA512_IV[3],this.Ch=0|i.SHA512_IV[4],this.Cl=0|i.SHA512_IV[5],this.Dh=0|i.SHA512_IV[6],this.Dl=0|i.SHA512_IV[7],this.Eh=0|i.SHA512_IV[8],this.El=0|i.SHA512_IV[9],this.Fh=0|i.SHA512_IV[10],this.Fl=0|i.SHA512_IV[11],this.Gh=0|i.SHA512_IV[12],this.Gl=0|i.SHA512_IV[13],this.Hh=0|i.SHA512_IV[14],this.Hl=0|i.SHA512_IV[15]}get(){let{Ah:e,Al:t,Bh:r,Bl:i,Ch:n,Cl:s,Dh:o,Dl:a,Eh:l,El:u,Fh:h,Fl:c,Gh:d,Gl:f,Hh:p,Hl:m}=this;return[e,t,r,i,n,s,o,a,l,u,h,c,d,f,p,m]}set(e,t,r,i,n,s,o,a,l,u,h,c,d,f,p,m){this.Ah=0|e,this.Al=0|t,this.Bh=0|r,this.Bl=0|i,this.Ch=0|n,this.Cl=0|s,this.Dh=0|o,this.Dl=0|a,this.Eh=0|l,this.El=0|u,this.Fh=0|h,this.Fl=0|c,this.Gh=0|d,this.Gl=0|f,this.Hh=0|p,this.Hl=0|m}process(e,t){for(let r=0;r<16;r++,t+=4)f[r]=e.getUint32(t),p[r]=e.getUint32(t+=4);for(let e=16;e<80;e++){let t=0|f[e-15],r=0|p[e-15],i=n.rotrSH(t,r,1)^n.rotrSH(t,r,8)^n.shrSH(t,r,7),s=n.rotrSL(t,r,1)^n.rotrSL(t,r,8)^n.shrSL(t,r,7),o=0|f[e-2],a=0|p[e-2],l=n.rotrSH(o,a,19)^n.rotrBH(o,a,61)^n.shrSH(o,a,6),u=n.rotrSL(o,a,19)^n.rotrBL(o,a,61)^n.shrSL(o,a,6),h=n.add4L(s,u,p[e-7],p[e-16]),c=n.add4H(h,i,l,f[e-7],f[e-16]);f[e]=0|c,p[e]=0|h}let{Ah:r,Al:i,Bh:s,Bl:o,Ch:a,Cl:l,Dh:u,Dl:h,Eh:m,El:g,Fh:y,Fl:w,Gh:b,Gl:v,Hh:x,Hl:S}=this;for(let e=0;e<80;e++){let t=n.rotrSH(m,g,14)^n.rotrSH(m,g,18)^n.rotrBH(m,g,41),M=n.rotrSL(m,g,14)^n.rotrSL(m,g,18)^n.rotrBL(m,g,41),A=m&y^~m&b,P=g&w^~g&v,j=n.add5L(S,M,P,d[e],p[e]),E=n.add5H(j,x,t,A,c[e],f[e]),T=0|j,I=n.rotrSH(r,i,28)^n.rotrBH(r,i,34)^n.rotrBH(r,i,39),k=n.rotrSL(r,i,28)^n.rotrBL(r,i,34)^n.rotrBL(r,i,39),O=r&s^r&a^s&a,D=i&o^i&l^o&l;x=0|b,S=0|v,b=0|y,v=0|w,y=0|m,w=0|g,({h:m,l:g}=n.add(0|u,0|h,0|E,0|T)),u=0|a,h=0|l,a=0|s,l=0|o,s=0|r,o=0|i;let N=n.add3L(T,k,D);r=n.add3H(N,E,I,O),i=0|N}({h:r,l:i}=n.add(0|this.Ah,0|this.Al,0|r,0|i)),({h:s,l:o}=n.add(0|this.Bh,0|this.Bl,0|s,0|o)),({h:a,l:l}=n.add(0|this.Ch,0|this.Cl,0|a,0|l)),({h:u,l:h}=n.add(0|this.Dh,0|this.Dl,0|u,0|h)),({h:m,l:g}=n.add(0|this.Eh,0|this.El,0|m,0|g)),({h:y,l:w}=n.add(0|this.Fh,0|this.Fl,0|y,0|w)),({h:b,l:v}=n.add(0|this.Gh,0|this.Gl,0|b,0|v)),({h:x,l:S}=n.add(0|this.Hh,0|this.Hl,0|x,0|S)),this.set(r,i,s,o,a,l,u,h,m,g,y,w,b,v,x,S)}roundClean(){(0,s.clean)(f,p)}destroy(){(0,s.clean)(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}t.SHA512=m;class g extends m{constructor(){super(48),this.Ah=0|i.SHA384_IV[0],this.Al=0|i.SHA384_IV[1],this.Bh=0|i.SHA384_IV[2],this.Bl=0|i.SHA384_IV[3],this.Ch=0|i.SHA384_IV[4],this.Cl=0|i.SHA384_IV[5],this.Dh=0|i.SHA384_IV[6],this.Dl=0|i.SHA384_IV[7],this.Eh=0|i.SHA384_IV[8],this.El=0|i.SHA384_IV[9],this.Fh=0|i.SHA384_IV[10],this.Fl=0|i.SHA384_IV[11],this.Gh=0|i.SHA384_IV[12],this.Gl=0|
1i.SHA384_IV[13],this.Hh=0|i.SHA384_IV[14],this.Hl=0|i.SHA384_IV[15]}}t.SHA384=g;let y=Uint32Array.from([0x8c3d37c8,0x19544da2,0x73e19966,0x89dcd4d6,0x1dfab7ae,0x32ff9c82,0x679dd514,0x582f9fcf,0xf6d2b69,0x7bd44da8,0x77e36f73,0x4c48942,0x3f9d85a8,0x6a1d36c8,0x1112e6ad,0x91d692a1]),w=Uint32Array.from([0x22312194,0xfc2bf72c,0x9f555fa3,0xc84c64c2,0x2393b86b,0x6f53b151,0x96387719,0x5940eabd,0x96283ee2,0xa88effe3,0xbe5e1e25,0x53863992,0x2b0199fc,0x2c85b8aa,0xeb72ddc,0x81c52ca2]);class b extends m{constructor(){super(28),this.Ah=0|y[0],this.Al=0|y[1],this.Bh=0|y[2],this.Bl=0|y[3],this.Ch=0|y[4],this.Cl=0|y[5],this.Dh=0|y[6],this.Dl=0|y[7],this.Eh=0|y[8],this.El=0|y[9],this.Fh=0|y[10],this.Fl=0|y[11],this.Gh=0|y[12],this.Gl=0|y[13],this.Hh=0|y[14],this.Hl=0|y[15]}}t.SHA512_224=b;class v extends m{constructor(){super(32),this.Ah=0|w[0],this.Al=0|w[1],this.Bh=0|w[2],this.Bl=0|w[3],this.Ch=0|w[4],this.Cl=0|w[5],this.Dh=0|w[6],this.Dl=0|w[7],this.Eh=0|w[8],this.El=0|w[9],this.Fh=0|w[10],this.Fl=0|w[11],this.Gh=0|w[12],this.Gl=0|w[13],this.Hh=0|w[14],this.Hl=0|w[15]}}t.SHA512_256=v,t.sha256=(0,s.createHasher)(()=>new l),t.sha224=(0,s.createHasher)(()=>new u),t.sha512=(0,s.createHasher)(()=>new m),t.sha384=(0,s.createHasher)(()=>new g),t.sha512_256=(0,s.createHasher)(()=>new v),t.sha512_224=(0,s.createHasher)(()=>new b)},5395:(e,t,r)=>{var i=r(5659);r.o(i,"useParams")&&r.d(t,{useParams:function(){return i.useParams}}),r.o(i,"useRouter")&&r.d(t,{useRouter:function(){return i.useRouter}}),r.o(i,"useSearchParams")&&r.d(t,{useSearchParams:function(){return i.useSearchParams}})},5890:(e,t,r)=>{let i,n;Object.defineProperty(t,"__esModule",{value:!0}),t.utils=t.schnorr=t.verify=t.signSync=t.sign=t.getSharedSecret=t.recoverPublicKey=t.getPublicKey=t.hexToBytes=t.bytesToHex=t.Signature=t.Point=t.CURVE=void 0;let s=r(8180),o=BigInt(0),a=BigInt(1),l=BigInt(2),u=BigInt(3),h=BigInt(8),c=Object.freeze({a:o,b:BigInt(7),P:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:a,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee")});t.CURVE=c;let d=(e,t)=>(e+t/l)/t,f={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar(e){let{n:t}=c,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),i=-a*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),n=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),s=BigInt("0x100000000000000000000000000000000"),o=d(r*e,t),l=d(-i*e,t),u=z(e-o*r-l*n,t),h=z(-o*i-l*r,t),f=u>s,p=h>s;if(f&&(u=t-u),p&&(h=t-h),u>s||h>s)throw Error("splitScalarEndo: Endomorphism failed, k="+e);return{k1neg:f,k1:u,k2neg:p,k2:h}}};function p(e){let{a:t,b:r}=c,i=z(e*e),n=z(i*e);return z(n+t*e+r)}let m=c.a===o;class g extends Error{constructor(e){super(e)}}function y(e){if(!(e instanceof w))throw TypeError("JacobianPoint expected")}class w{constructor(e,t,r){this.x=e,this.y=t,this.z=r}static fromAffine(e){if(!(e instanceof x))throw TypeError("JacobianPoint#fromAffine: expected Point");return e.equals(x.ZERO)?w.ZERO:new w(e.x,e.y,a)}static toAffineBatch(e){let t=function(e,t=c.P){let r=Array(e.length),i=U(e.reduce((e,i,n)=>i===o?e:(r[n]=e,z(e*i,t)),a),t);return e.reduceRight((e,i,n)=>i===o?e:(r[n]=z(e*r[n],t),z(e*i,t)),i),r}(e.map(e=>e.z));return e.map((e,r)=>e.toAffine(t[r]))}static normalizeZ(e){return w.toAffineBatch(e).map(w.fromAffine)}equals(e){y(e);let{x:t,y:r,z:i}=this,{x:n,y:s,z:o}=e,a=z(i*i),l=z(o*o),u=z(t*l),h=z(n*a),c=z(z(r*o)*l),d=z(z(s*i)*a);return u===h&&c===d}negate(){return new w(this.x,z(-this.y),this.z)}double(){let{x:e,y:t,z:r}=this,i=z(e*e),n=z(t*t),s=z(n*n),o=e+n,a=z(l*(z(o*o)-i-s)),c=z(u*i),d=z(c*c),f=z(d-l*a),p=z(c*(a-f)-h*s);return new w(f,p,z(l*t*r))}add(e){y(e);let{x:t,y:r,z:i}=this,{x:n,y:s,z:a}=e;if(n===o||s===o)return this;if(t===o||r===o)return e;let u=z(i*i),h=z(a*a),c=z(t*h),d=z(n*u),f=z(z(r*a)*h),p=z(z(s*i)*u),m=z(d-c),g=z(p-f);if(m===o)if(g===o)return this.double();else return w.ZERO;let b=z(m*m),v=z(m*b),x=z(c*b),S=z(g*g-v-l*x),M=z(g*(x-S)-f*v);return new w(S,M,z(i*a*m))}subtract(e){return this.add(e.negate())}multiplyUnsafe(e){let t=w.ZERO;if("bigint"==typeof e&&e===o)return t;let r=B(e);if(r===a)return this;if(!m){let e=t,i=this;for(;r>o;)r&a&&(e=e.add(i)),i=i.double(),r>>=a;return e}
1let{k1neg:i,k1:n,k2neg:s,k2:l}=f.splitScalar(r),u=t,h=t,c=this;for(;n>o||l>o;)n&a&&(u=u.add(c)),l&a&&(h=h.add(c)),c=c.double(),n>>=a,l>>=a;return i&&(u=u.negate()),s&&(h=h.negate()),h=new w(z(h.x*f.beta),h.y,h.z),u.add(h)}precomputeWindow(e){let t=m?128/e+1:256/e+1,r=[],i=this,n=i;for(let s=0;s<t;s++){n=i,r.push(n);for(let t=1;t<2**(e-1);t++)n=n.add(i),r.push(n);i=n.double()}return r}wNAF(e,t){!t&&this.equals(w.BASE)&&(t=x.BASE);let r=t&&t._WINDOW_SIZE||1;if(256%r)throw Error("Point#wNAF: Invalid precomputation window, must be power of 2");let i=t&&v.get(t);!i&&(i=this.precomputeWindow(r),t&&1!==r&&(i=w.normalizeZ(i),v.set(t,i)));let n=w.ZERO,s=w.BASE,o=1+(m?128/r:256/r),l=2**(r-1),u=BigInt(2**r-1),h=2**r,c=BigInt(r);for(let t=0;t<o;t++){let r=t*l,o=Number(e&u);e>>=c,o>l&&(o-=h,e+=a);let d=r+Math.abs(o)-1,f=t%2!=0,p=o<0;0===o?s=s.add(b(f,i[r])):n=n.add(b(p,i[d]))}return{p:n,f:s}}multiply(e,t){let r,i,n=B(e);if(m){let{k1neg:e,k1:s,k2neg:o,k2:a}=f.splitScalar(n),{p:l,f:u}=this.wNAF(s,t),{p:h,f:c}=this.wNAF(a,t);l=b(e,l),h=new w(z((h=b(o,h)).x*f.beta),h.y,h.z),r=l.add(h),i=u.add(c)}else{let{p:e,f:s}=this.wNAF(n,t);r=e,i=s}return w.normalizeZ([r,i])[0]}toAffine(e){let{x:t,y:r,z:i}=this,n=this.equals(w.ZERO);null==e&&(e=n?h:U(i));let s=e,o=z(s*s),l=z(o*s),u=z(t*o),c=z(r*l),d=z(i*s);if(n)return x.ZERO;if(d!==a)throw Error("invZ was invalid");return new x(u,c)}}function b(e,t){let r=t.negate();return e?r:t}w.BASE=new w(c.Gx,c.Gy,a),w.ZERO=new w(o,a,o);let v=new WeakMap;class x{constructor(e,t){this.x=e,this.y=t}_setWindowSize(e){this._WINDOW_SIZE=e,v.delete(this)}hasEvenY(){return this.y%l===o}static fromCompressedHex(e){let t=32===e.length,r=L(t?e:e.subarray(1));if(!W(r))throw Error("Point is not on curve");let i=function(e){let{P:t}=c,r=BigInt(6),i=BigInt(11),n=BigInt(22),s=BigInt(23),o=BigInt(44),a=BigInt(88),h=e*e*e%t,d=h*h*e%t,f=V(d,u)*d%t,p=V(f,u)*d%t,m=V(p,l)*h%t,g=V(m,i)*m%t,y=V(g,n)*g%t,w=V(y,o)*y%t,b=V(w,a)*w%t,v=V(b,o)*y%t,x=V(v,u)*d%t,S=V(x,s)*g%t,M=V(S,r)*h%t,A=V(M,l);if(A*A%t!==e)throw Error("Cannot find square root");return A}(p(r)),n=(i&a)===a;t?n&&(i=z(-i)):(1&e[0])==1!==n&&(i=z(-i));let s=new x(r,i);return s.assertValidity(),s}static fromUncompressedHex(e){let t=new x(L(e.subarray(1,33)),L(e.subarray(33,65)));return t.assertValidity(),t}static fromHex(e){let t=Y(e),r=t.length,i=t[0];if(32===r||33===r&&(2===i||3===i))return this.fromCompressedHex(t);if(65===r&&4===i)return this.fromUncompressedHex(t);throw Error(`Point.fromHex: received invalid point. Expected 32-33 compressed bytes or 65 uncompressed bytes, not ${r}`)}static fromPrivateKey(e){return x.BASE.multiply(K(e))}static fromSignature(e,t,r){let{r:i,s:n}=Q(t);if(![0,1,2,3].includes(r))throw Error("Cannot recover: invalid recovery bit");let s=F(Y(e)),{n:o}=c,a=2===r||3===r?i+o:i,l=U(a,o),u=z(-s*l,o),h=z(n*l,o),d=1&r?"03":"02",f=x.fromHex(d+N(a)),p=x.BASE.multiplyAndAddUnsafe(f,u,h);if(!p)throw Error("Cannot recover signature: point at infinify");return p.assertValidity(),p}toRawBytes(e=!1){return O(this.toHex(e))}toHex(e=!1){let t=N(this.x);if(!e)return`04${t}${N(this.y)}`;{let e=this.hasEvenY()?"02":"03";return`${e}${t}`}}toHexX(){return this.toHex(!0).slice(2)}toRawX(){return this.toRawBytes(!0).slice(1)}assertValidity(){let e="Point is not on elliptic curve",{x:t,y:r}=this;if(!W(t)||!W(r))throw Error(e);let i=z(r*r);if(z(i-p(t))!==o)throw Error(e)}equals(e){return this.x===e.x&&this.y===e.y}negate(){return new x(this.x,z(-this.y))}double(){return w.fromAffine(this).double().toAffine()}add(e){return w.fromAffine(this).add(w.fromAffine(e)).toAffine()}subtract(e){return this.add(e.negate())}multiply(e){return w.fromAffine(this).multiply(e,this).toAffine()}multiplyAndAddUnsafe(e,t,r){let i=w.fromAffine(this),n=t===o||t===a||this!==x.BASE?i.multiplyUnsafe(t):i.multiply(t),s=w.fromAffine(e).multiplyUnsafe(r),l=n.add(s);return l.equals(w.ZERO)?void 0:l.toAffine()}}function S(e){return Number.parseInt(e[0],16)>=8?"00"+e:e}function M(e){if(e.length<2||2!==e[0])throw Error(`Invalid signature integer tag: ${I(e)}`);let t=e[1],r=e.subarray(2,t+2);if(!t||r.length!==t)throw Error("Invalid signature integer: wrong length");if(0===r[0]&&r[1]<=127)throw Error("Invalid signature integer: trailing length");return{data:L(r),left:e.subarray(t+2)}}t.Point=x,x.BASE=new x(c.Gx,c.Gy),x.ZERO=new x(o,o);class A{constructor(e,t){this.r=e,this.s=t,this.assertValidity()}static fromCompact(e){let t=P(e),r="Signature.fromCompact";if("string"!=typeof e&&!t)throw TypeError(`${r}: Expected string or Uint8Array`);let i=t?I(e):e;if(128!==i.length)throw Error(`${r}: Expected 64-byte hex`);return new A(R(i.slice(0,64)),R(i.slice(64,128)))}static fromDER(e){let t=P(e);
1if("string"!=typeof e&&!t)throw TypeError("Signature.fromDER: Expected string or Uint8Array");let{r,s:i}=function(e){if(e.length<2||48!=e[0])throw Error(`Invalid signature tag: ${I(e)}`);if(e[1]!==e.length-2)throw Error("Invalid signature: incorrect length");let{data:t,left:r}=M(e.subarray(2)),{data:i,left:n}=M(r);if(n.length)throw Error(`Invalid signature: left bytes after parsing: ${I(n)}`);return{r:t,s:i}}(t?e:O(e));return new A(r,i)}static fromHex(e){return this.fromDER(e)}assertValidity(){let{r:e,s:t}=this;if(!q(e))throw Error("Invalid Signature: r must be 0 < r < n");if(!q(t))throw Error("Invalid Signature: s must be 0 < s < n")}hasHighS(){let e=c.n>>a;return this.s>e}normalizeS(){return this.hasHighS()?new A(this.r,z(-this.s,c.n)):this}toDERRawBytes(){return O(this.toDERHex())}toDERHex(){let e=S(_(this.s)),t=S(_(this.r)),r=e.length/2,i=t.length/2,n=_(r),s=_(i),o=_(i+r+4);return`30${o}02${s}${t}02${n}${e}`}toRawBytes(){return this.toDERRawBytes()}toHex(){return this.toDERHex()}toCompactRawBytes(){return O(this.toCompactHex())}toCompactHex(){return N(this.r)+N(this.s)}}function P(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function j(e){if(!P(e))throw Error("Uint8Array expected")}function E(...e){if(e.every(j),1===e.length)return e[0];let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0));for(let r=0,i=0;r<e.length;r++){let n=e[r];t.set(n,i),i+=n.length}return t}t.Signature=A;let T=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function I(e){j(e);let t="";for(let r=0;r<e.length;r++)t+=T[e[r]];return t}t.bytesToHex=I;function k(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:void 0}function O(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);let t=e.length,r=t/2;if(t%2)throw Error("hex string expected, got unpadded hex of length "+t);let i=new Uint8Array(r);for(let t=0,n=0;t<r;t++,n+=2){let r=k(e.charCodeAt(n)),s=k(e.charCodeAt(n+1));if(void 0===r||void 0===s)throw Error('hex string expected, got non-hex character "'+(e[n]+e[n+1])+'" at index '+n);i[t]=16*r+s}return i}t.hexToBytes=O;let D=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000");function N(e){if("bigint"!=typeof e)throw Error("Expected bigint");if(!(o<=e&&e<D))throw Error("Expected number 0 <= n < 2^256");return e.toString(16).padStart(64,"0")}function C(e){let t=O(N(e));if(32!==t.length)throw Error("Error: expected 32 bytes");return t}function _(e){let t=e.toString(16);return 1&t.length?`0${t}`:t}function R(e){if("string"!=typeof e)throw TypeError("hexToNumber: expected string, got "+typeof e);return BigInt(`0x${e}`)}function L(e){return R(I(e))}function Y(e){return P(e)?Uint8Array.from(e):O(e)}function B(e){if("number"==typeof e&&Number.isSafeInteger(e)&&e>0)return BigInt(e);if("bigint"==typeof e&&q(e))return e;throw TypeError("Expected valid private scalar: 0 < scalar < curve.n")}function z(e,t=c.P){let r=e%t;return r>=o?r:t+r}function V(e,t){let{P:r}=c,i=e;for(;t-- >o;)i*=i,i%=r;return i}function U(e,t=c.P){if(e===o||t<=o)throw Error(`invert: expected positive integers, got n=${e} mod=${t}`);let r=z(e,t),i=t,n=o,s=a,l=a,u=o;for(;r!==o;){let e=i/r,t=i%r,o=n-l*e,a=s-u*e;i=r,r=t,n=l,s=u,l=o,u=a}if(i!==a)throw Error("invert: does not exist");return z(n,t)}function F(e,t=!1){let r,i,n=(r=8*e.length-256,i=L(e),r>0?i>>BigInt(r):i);if(t)return n;let{n:s}=c;return n>=s?n-s:n}class H{constructor(e,t){if(this.hashLen=e,this.qByteLen=t,"number"!=typeof e||e<2)throw Error("hashLen must be a number");if("number"!=typeof t||t<2)throw Error("qByteLen must be a number");this.v=new Uint8Array(e).fill(1),this.k=new Uint8Array(e).fill(0),this.counter=0}hmac(...e){return t.utils.hmacSha256(this.k,...e)}hmacSync(...e){return n(this.k,...e)}checkSync(){if("function"!=typeof n)throw new g("hmacSha256Sync needs to be set")}incr(){if(this.counter>=1e3)throw Error("Tried 1,000 k values for sign(), all were invalid");this.counter+=1}async reseed(e=new Uint8Array){this.k=await this.hmac(this.v,Uint8Array.from([0]),e),this.v=await this.hmac(this.v),0!==e.length&&(this.k=await this.hmac(this.v,Uint8Array.from([1]),e),this.v=await this.hmac(this.v))}reseedSync(e=new Uint8Array){this.checkSync(),this.k=this.hmacSync(this.v,Uint8Array.from([0]),e),this.v=this.hmacSync(this.v),0!==e.length&&(this.k=this.hmacSync(this.v,Uint8Array.from([1]),e),this.v=this.hmacSync(this.v))}async generate(){this.incr();let e=0,t=[];for(;e<this.qByteLen;){this.v=await this.hmac(this.v);let r=this.v.slice();t.push(r),e+=this.v.length}return E(...t)}generateSync(){this.checkSync(),this.incr();let e=0,t=[];for(;e<this.qByteLen;){this.v=this.hmacSync(this.v);let r=this.v.slice();t.push(r),e+=this.v.length}return E(...t)}}function q(e){return o<e&&e<c.n}function W(e){return o<e&&e<c.P}function Z(e,t,r,i=!0){let{n}=c,s=F(e,!0);if(!q(s))return;let l=U(s,n),u=x.BASE.multiply(s),h=z(u.x,n);if(h===o)return;let d=z(l*z(t+r*h,n),n);if(d===o)return;let f=new A(h,d),p=2*(u.x!==f.r)|Number(u.y&a);return i&&f.hasHighS()&&(f=f.normalizeS(),p^=1),{sig:f,recovery:p}}function K(e){let t;if("bigint"==typeof e)t=e;else if("number"==typeof e&&Number.isSafeInteger(e)&&e>0)t=BigInt(e);else if("string"==typeof e){if(64!==e.length)throw Error("Expected 32 bytes of private key");t=R(e)}else if(P(e)){if(32!==e.length)throw Error("Expected 32 bytes of private key");t=L(e)}else throw TypeError("Expected valid private key");if(!q(t))throw Error("Expected private key: 0 < key < n");return t}function G(e){return e instanceof x?(e.assertValidity(),e):x.fromHex(e)}function Q(e){if(e instanceof A)return e.assertValidity(),e;try{return A.fromDER(e)}catch(t){return A.fromCompact(e)}}function $(e){let t=P(e),r="string"==typeof e,i=(t||r)&&e.length;return t?33===i||65===i:r?66===i||130===i:e instanceof x}function J(e){return L(e.length>32?e.slice(0,32):e)}t.getPublicKey=function(e,t=!1){return x.fromPrivateKey(e).toRawBytes(t)},t.recoverPublicKey=function(e,t,r,i=!1){return x.fromSignature(e,t,r).toRawBytes(i)},t.getSharedSecret=function(e,t,r=!1){if($(e))throw TypeError("getSharedSecret: first arg must be private key");if(!$(t))throw TypeError("getSharedSecret: second arg must be public key");let i=G(t);return i.assertValidity(),i.multiply(K(e)).toRawBytes(r)};function X(e,r,i){let n,s;if(null==e)throw Error(`sign: expected valid message hash, not "${e}"`);
1let a=Y(e),l=K(r),u=[C(l),C((s=z(n=J(a),c.n))<o?n:s)];if(null!=i){!0===i&&(i=t.utils.randomBytes(32));let e=Y(i);if(32!==e.length)throw Error("sign: Expected 32 bytes of extra data");u.push(e)}return{seed:E(...u),m:J(a),d:l}}function ee(e,t){let{sig:r,recovery:i}=e,{der:n,recovered:s}=Object.assign({canonical:!0,der:!0},t),o=n?r.toDERRawBytes():r.toCompactRawBytes();return s?[o,i]:o}t.sign=async function(e,t,r={}){let i,{seed:n,m:s,d:o}=X(e,t,r.extraEntropy),a=new H(32,32);for(await a.reseed(n);!(i=Z(await a.generate(),s,o,r.canonical));)await a.reseed();return ee(i,r)},t.signSync=function(e,t,r={}){let i,{seed:n,m:s,d:o}=X(e,t,r.extraEntropy),a=new H(32,32);for(a.reseedSync(n);!(i=Z(a.generateSync(),s,o,r.canonical));)a.reseedSync();return ee(i,r)};let et={strict:!0};function er(e){return z(L(e),c.n)}t.verify=function(e,t,r,i=et){let n,s;try{n=Q(e),t=Y(t)}catch(e){return!1}let{r:o,s:a}=n;if(i.strict&&n.hasHighS())return!1;let l=F(t);try{s=G(r)}catch(e){return!1}let{n:u}=c,h=U(a,u),d=z(l*h,u),f=z(o*h,u),p=x.BASE.multiplyAndAddUnsafe(s,d,f);return!!p&&z(p.x,u)===o};class ei{constructor(e,t){this.r=e,this.s=t,this.assertValidity()}static fromHex(e){let t=Y(e);if(64!==t.length)throw TypeError(`SchnorrSignature.fromHex: expected 64 bytes, not ${t.length}`);return new ei(L(t.subarray(0,32)),L(t.subarray(32,64)))}assertValidity(){let{r:e,s:t}=this;if(!W(e)||!q(t))throw Error("Invalid signature")}toHex(){return N(this.r)+N(this.s)}toRawBytes(){return O(this.toHex())}}class en{constructor(e,r,i=t.utils.randomBytes()){if(null==e)throw TypeError(`sign: Expected valid message, not "${e}"`);this.m=Y(e);const{x:n,scalar:s}=this.getScalar(K(r));if(this.px=n,this.d=s,this.rand=Y(i),32!==this.rand.length)throw TypeError("sign: Expected 32 bytes of aux randomness")}getScalar(e){let t=x.fromPrivateKey(e),r=t.hasEvenY()?e:c.n-e;return{point:t,scalar:r,x:t.toRawX()}}initNonce(e,t){return C(e^L(t))}finalizeNonce(e){let t=z(L(e),c.n);if(t===o)throw Error("sign: Creation of signature failed. k is zero");let{point:r,x:i,scalar:n}=this.getScalar(t);return{R:r,rx:i,k:n}}finalizeSig(e,t,r,i){return new ei(e.x,z(t+r*i,c.n)).toRawBytes()}error(){throw Error("sign: Invalid signature produced")}async calc(){let{m:e,d:r,px:i,rand:n}=this,s=t.utils.taggedHash,o=this.initNonce(r,await s(eh.aux,n)),{R:a,rx:l,k:u}=this.finalizeNonce(await s(eh.nonce,o,i,e)),h=er(await s(eh.challenge,l,i,e)),c=this.finalizeSig(a,u,h,r);return await ea(c,e,i)||this.error(),c}calcSync(){let{m:e,d:r,px:i,rand:n}=this,s=t.utils.taggedHashSync,o=this.initNonce(r,s(eh.aux,n)),{R:a,rx:l,k:u}=this.finalizeNonce(s(eh.nonce,o,i,e)),h=er(s(eh.challenge,l,i,e)),c=this.finalizeSig(a,u,h,r);return el(c,e,i)||this.error(),c}}function es(e,t,r){let i=e instanceof ei,n=i?e:ei.fromHex(e);return i&&n.assertValidity(),{...n,m:Y(t),P:G(r)}}function eo(e,t,r,i){let n=x.BASE.multiplyAndAddUnsafe(t,K(r),z(-i,c.n));return!!n&&!!n.hasEvenY()&&n.x===e}async function ea(e,r,i){try{let{r:n,s,m:o,P:a}=es(e,r,i),l=er(await t.utils.taggedHash(eh.challenge,C(n),a.toRawX(),o));return eo(n,a,s,l)}catch(e){return!1}}function el(e,r,i){try{let{r:n,s,m:o,P:a}=es(e,r,i),l=er(t.utils.taggedHashSync(eh.challenge,C(n),a.toRawX(),o));return eo(n,a,s,l)}catch(e){if(e instanceof g)throw e;return!1}}t.schnorr={Signature:ei,getPublicKey:function(e){return x.fromPrivateKey(e).toRawX()},sign:async function e(e,t,r){return new en(e,t,r).calc()},verify:ea,signSync:function(e,t,r){return new en(e,t,r).calcSync()},verifySync:el},x.BASE._setWindowSize(8);let eu={node:s,web:"object"==typeof self&&"crypto"in self?self.crypto:void 0},eh={challenge:"BIP0340/challenge",aux:"BIP0340/aux",nonce:"BIP0340/nonce"},ec={};t.utils={bytesToHex:I,hexToBytes:O,concatBytes:E,mod:z,invert:U,isValidPrivateKey(e){try{return K(e),!0}catch(e){return!1}},_bigintTo32Bytes:C,_normalizePrivateKey:K,hashToPrivateKey:e=>{if((e=Y(e)).length<40||e.length>1024)throw Error("Expected valid bytes of private key as per FIPS 186");return C(z(L(e),c.n-a)+a)},randomBytes:(e=32)=>{if(eu.web)return eu.web.getRandomValues(new Uint8Array(e));if(eu.node){let{randomBytes:t}=eu.node;return Uint8Array.from(t(e))}throw Error("The environment doesn't have randomBytes function")},randomPrivateKey:()=>t.utils.hashToPrivateKey(t.utils.randomBytes(40)),precompute(e=8,t=x.BASE){let r=t===x.BASE?t:new x(t.x,t.y);return r._setWindowSize(e),r.multiply(u),r},sha256:async(...e)=>{if(eu.web)return new Uint8Array(await eu.web.subtle.digest("SHA-256",E(...e)));if(eu.node){let{createHash:t}=eu.node,r=t("sha256");
1return e.forEach(e=>r.update(e)),Uint8Array.from(r.digest())}throw Error("The environment doesn't have sha256 function")},hmacSha256:async(e,...t)=>{if(eu.web){let r=await eu.web.subtle.importKey("raw",e,{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign"]),i=E(...t);return new Uint8Array(await eu.web.subtle.sign("HMAC",r,i))}if(eu.node){let{createHmac:r}=eu.node,i=r("sha256",e);return t.forEach(e=>i.update(e)),Uint8Array.from(i.digest())}throw Error("The environment doesn't have hmac-sha256 function")},sha256Sync:void 0,hmacSha256Sync:void 0,taggedHash:async(e,...r)=>{let i=ec[e];if(void 0===i){let r=await t.utils.sha256(Uint8Array.from(e,e=>e.charCodeAt(0)));i=E(r,r),ec[e]=i}return t.utils.sha256(i,...r)},taggedHashSync:(e,...t)=>{if("function"!=typeof i)throw new g("sha256Sync is undefined, you need to set it");let r=ec[e];if(void 0===r){let t=i(Uint8Array.from(e,e=>e.charCodeAt(0)));r=E(t,t),ec[e]=r}return i(r,...t)},_JacobianPoint:w},Object.defineProperties(t.utils,{sha256Sync:{configurable:!1,get:()=>i,set(e){i||(i=e)}},hmacSha256Sync:{configurable:!1,get:()=>n,set(e){n||(n=e)}}})},6328:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidTokenError=t.MissingParametersError=void 0;class r extends Error{constructor(e){super(),this.name="MissingParametersError",this.message=e||""}}t.MissingParametersError=r;class i extends Error{constructor(e){super(),this.name="InvalidTokenError",this.message=e||""}}t.InvalidTokenError=i},6453:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toBig=t.shrSL=t.shrSH=t.rotrSL=t.rotrSH=t.rotrBL=t.rotrBH=t.rotr32L=t.rotr32H=t.rotlSL=t.rotlSH=t.rotlBL=t.rotlBH=t.add5L=t.add5H=t.add4L=t.add4H=t.add3L=t.add3H=void 0,t.add=b,t.fromBig=n,t.split=s;let r=BigInt(0x100000000-1),i=BigInt(32);function n(e,t=!1){return t?{h:Number(e&r),l:Number(e>>i&r)}:{h:0|Number(e>>i&r),l:0|Number(e&r)}}function s(e,t=!1){let r=e.length,i=new Uint32Array(r),o=new Uint32Array(r);for(let s=0;s<r;s++){let{h:r,l:a}=n(e[s],t);[i[s],o[s]]=[r,a]}return[i,o]}let o=(e,t)=>BigInt(e>>>0)<<i|BigInt(t>>>0);t.toBig=o;let a=(e,t,r)=>e>>>r;t.shrSH=a;let l=(e,t,r)=>e<<32-r|t>>>r;t.shrSL=l;let u=(e,t,r)=>e>>>r|t<<32-r;t.rotrSH=u;let h=(e,t,r)=>e<<32-r|t>>>r;t.rotrSL=h;let c=(e,t,r)=>e<<64-r|t>>>r-32;t.rotrBH=c;let d=(e,t,r)=>e>>>r-32|t<<64-r;t.rotrBL=d;let f=(e,t)=>t;t.rotr32H=f;let p=(e,t)=>e;t.rotr32L=p;let m=(e,t,r)=>e<<r|t>>>32-r;t.rotlSH=m;let g=(e,t,r)=>t<<r|e>>>32-r;t.rotlSL=g;let y=(e,t,r)=>t<<r-32|e>>>64-r;t.rotlBH=y;let w=(e,t,r)=>e<<r-32|t>>>64-r;function b(e,t,r,i){let n=(t>>
1>0)+(i>>>0);return{h:e+r+(n/0x100000000|0)|0,l:0|n}}t.rotlBL=w;let v=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0);t.add3L=v;let x=(e,t,r,i)=>t+r+i+(e/0x100000000|0)|0;t.add3H=x;let S=(e,t,r,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(i>>>0);t.add4L=S;let M=(e,t,r,i,n)=>t+r+i+n+(e/0x100000000|0)|0;t.add4H=M;let A=(e,t,r,i,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(i>>>0)+(n>>>0);t.add5L=A;let P=(e,t,r,i,n,s)=>t+r+i+n+s+(e/0x100000000|0)|0;t.add5H=P,t.default={fromBig:n,split:s,toBig:o,shrSH:a,shrSL:l,rotrSH:u,rotrSL:h,rotrBH:c,rotrBL:d,rotr32H:f,rotr32L:p,rotlSH:m,rotlSL:g,rotlBH:y,rotlBL:w,add:b,add3L:v,add3H:x,add4L:S,add4H:M,add5H:P,add5L:A}},6718:(e,t,r)=>{let i,n,s,o;r.d(t,{AddressPurpose:()=>rp,MrZ:()=>rT,dF6:()=>rx,c4S:()=>rE,request:()=>sO});var a,l,u,h,c,d,f,p,m,g,y,w,b,v,x,S,M,A={};r.r(A),r.d(A,{hasBrowserEnv:()=>e1,hasStandardBrowserEnv:()=>e5,hasStandardBrowserWebWorkerEnv:()=>e3,navigator:()=>e2,origin:()=>e4});var P=r(2121);function j(e,t){return function(){return e.apply(t,arguments)}}r(2265);var E=r(8793);let{toString:T}=Object.prototype,{getPrototypeOf:I}=Object,{iterator:k,toStringTag:O}=Symbol,D=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),N=e=>"string"==typeof e&&("__proto__"===e||"constructor"===e||"prototype"===e),C=(e,t,r)=>e===Object.prototype||!r&&null===t,_=(e,t)=>{let r=e,i=[];for(;null!=r&&-1===i.indexOf(r);){i.push(r);let n=I(r);if(C(r,n,r===e))break;if(D(r,t))return!0;r=n}return!1},R=(i=Object.create(null),e=>{let t=T.call(e);return i[t]||(i[t]=t.slice(8,-1).toLowerCase())}),L=e=>(e=e.toLowerCase(),t=>R(t)===e),Y=e=>t=>typeof t===e,{isArray:B}=Array,z=Y("undefined");function V(e){return null!==e&&!z(e)&&null!==e.constructor&&!z(e.constructor)&&H(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let U=L("ArrayBuffer"),F=Y("string"),H=Y("function"),q=Y("number"),W=e=>null!==e&&"object"==typeof e,Z=e=>{if(!W(e))return!1;let t=I(e);return(null===t||t===Object.prototype||null===I(t))&&!_(e,O)&&!_(e,k)},K=L("Date"),G=L("File"),Q=L("Blob"),$=L("FileList"),J=L("Set"),X="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},ee=void 0!==X.FormData?X.FormData:void 0,et=L("URLSearchParams"),[er,ei,en,es]=["ReadableStream","Request","Response","Headers"].map(L);function eo(e,t,{allOwnKeys:r=!1}={}){let i,n;if(null!=e)if("object"!=typeof e&&(e=[e]),B(e))for(i=0,n=e.length;i<n;i++)t.call(null,e[i],i,e);else{let n;if(V(e))return;let s=r?Object.getOwnPropertyNames(e):Object.keys(e),o=s.length;for(i=0;i<o;i++)n=s[i],t.call(null,e[n],n,e)}}function ea(e,t){let r;if(V(e))return null;t=t.toLowerCase();let i=Object.keys(e),n=i.length;for(;n-- >0;)if(t===(r=i[n]).toLowerCase())return r;return null}let el="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,eu=e=>!z(e)&&e!==el,eh=(n="u">typeof Uint8Array&&I(Uint8Array),e=>n&&e instanceof n),ec=L("HTMLFormElement"),{propertyIsEnumerable:ed}=Object.prototype,ef=L("RegExp"),ep=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),i={};eo(r,(r,n)=>{let s;!1!==(s=t(r,n,e))&&(i[n]=s||r)}),Object.defineProperties(e,i)},em=L("AsyncFunction"),eg=(a="function"==typeof setImmediate,l=H(el.postMessage),a?setImmediate:l?(u=`axios@${Math.random()}`,h=[],el.addEventListener("message",({source:e,data:t})=>{e===el&&t===u&&h.length&&h.shift()()},!1),e=>{h.push(e),el.postMessage(u,"*")}):e=>setTimeout(e)),ey="u">typeof queueMicrotask?queueMicrotask.bind(el):void 0!==E&&E.nextTick||eg,ew=e=>null!=e&&H(e[k]),eb={isArray:B,isArrayBuffer:U,isBuffer:V,isFormData:e=>{if(!e)return!1;if(ee&&e instanceof ee)return!0;let t=I(e);if(!t||t===Object.prototype||!H(e.append))return!1;let r=R(e);return"formdata"===r||"object"===r&&H(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&U(e.buffer)},isString:F,isNumber:q,isBoolean:e=>!0===e||!1===e,isObject:W,isPlainObject:Z,isEmptyObject:e=>{if(!W(e)||V(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:er,isRequest:ei,isResponse:en,isHeaders:es,isUndefined:z,isDate:K,isFile:G,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:Q,isRegExp:ef,isFunction:H,isStream:e=>W(e)&&H(e.pipe),isURLSearchParams:et,isTypedArray:eh,isFileList:$,forEach:eo,merge:function e(...t){let{caseless:r,skipUndefined:i}=eu(this)&&this||{},n={},s=(t,s)=>{if("__proto__"===s||"constructor"===s||"prototype"===s)return;let o=r&&"string"==typeof s&&ea(n,s)||s,a=D(n,o)?n[o]:void 0;Z(a)&&Z(t)?n[o]=e(a,t):Z(t)?n[o]=e({},t):B(t)?n[o]=t.slice():i&&z(t)||(n[o]=t)};for(let e=0,r=t.length;e<r;e++){let r=t[e];if(!r||V(r)||(eo(r,s),"object"!=typeof r||B(r)))continue;let i=Object.getOwnPropertySymbols(r);for(let e=0;e<i.length;e++){let t=i[e];ed.call(r,t)&&s(r[t],t)}}return n},extend:(e,t,r,{allOwnKeys:i}={})=>(eo(t,(t,i)=>{r&&H(t)?Object.defineProperty(e,i,{__proto__:null,value:j(t,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:i}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,i)=>
1{e.prototype=Object.create(t.prototype,i),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,i)=>{let n,s,o,a={};if(t=t||{},null==e)return t;do{for(s=(n=Object.getOwnPropertyNames(e)).length;s-- >0;)o=n[s],(!i||i(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=!1!==r&&I(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:R,kindOfTest:L,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let i=e.indexOf(t,r);return -1!==i&&i===r},toArray:e=>{if(!e)return null;if(B(e))return e;let t=e.length;if(!q(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{let r,i=(e&&e[k]).call(e);for(;(r=i.next())&&!r.done;){let i=r.value;t.call(e,i[0],i[1])}},matchAll:(e,t)=>{let r,i=[];for(;null!==(r=e.exec(t));)i.push(r);return i},isHTMLForm:ec,hasOwnProperty:D,hasOwnProp:D,hasOwnInPrototypeChain:_,getSafeProp:(e,t)=>null!=e&&_(e,t)?e[t]:void 0,toSafeFlatObject:e=>{if(null==e||"object"!=typeof e&&"function"!=typeof e)return e;let t=I(e);if(null===t&&(e=>{if(!Object.isExtensible(e))return!1;let t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(t=>{if(N(t))return!1;let r=Object.getOwnPropertyDescriptor(e,t);return!!r&&r.configurable&&!0===r.writable})})(e))return e;let r=Object.create(null),i=Object.create(null),n=[],s=e;for(;null!=s&&-1===n.indexOf(s);){n.push(s);let o=s===e?t:I(s);if(C(s,o,s===e))break;let a=Object.getOwnPropertyNames(s);for(let t of(Object.getOwnPropertySymbols&&a.push(...Object.getOwnPropertySymbols(s)),a))!N(t)&&(D(i,t)||(r[t]=e[t],i[t]=!0));s=o}return r},reduceDescriptors:ep,freezeMethods:e=>{ep(e,(t,r)=>{if(H(e)&&["arguments","caller","callee"].includes(r))return!1;if(H(e[r])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},toObjectSet:(e,t)=>{let r={};return(B(e)?e:String(e).split(t)).forEach(e=>{r[e]=!0}),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:ea,global:el,isContextDefined:eu,isSpecCompliantForm:function(e){return!!(e&&H(e.append)&&"FormData"===e[O]&&e[k])},toJSONObject:e=>{let t=new WeakSet,r=e=>{if(W(e)){if(t.has(e))return;if(V(e))return e;if(!("toJSON"in e)){let i;if(t.add(e),J(e))for(let t of(i=[],e)){let e=r(t);z(e)||i.push(e)}else i=B(e)?[]:{},eo(e,(e,t)=>{let n=r(e);z(n)||(i[t]=n)});return t.delete(e),i}}return e};return r(e)},isAsyncFn:em,isThenable:e=>e&&(W(e)||H(e))&&H(e.then)&&H(e.catch),setImmediate:eg,asap:ey,isIterable:ew,isSafeIterable:e=>null!=e&&_(e,k)&&ew(e)},ev=eb.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"]),ex=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),eS=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function eM(e,t){return eb.isArray(e)?e.map(e=>eM(e,t)):function(e){let t=0,r=e.length;for(;t<r;){let r=e.charCodeAt(t);if(9!==r&&32!==r)break;t+=1}for(;r>t;){let t=e.charCodeAt(r-1);if(9!==t&&32!==t)break;r-=1}return 0===t&&r===e.length?e:e.slice(t,r)}(String(e).replace(t,""))}function eA(e){let t=Object.create(null);return eb.forEach(e.toJSON(),(e,r)=>{t[r]=eM(e,eS)}),t}let eP=Symbol("internals");function ej(e){return e&&String(e).trim().toLowerCase()}function eE(e){return!1===e||null==e?e:eb.isArray(e)?e.map(eE):eM(String(e),ex)}let eT=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function eI(e){let t=0,r=e.length;for(;t<r;){let r=e.charCodeAt(t);if(9!==r&&32!==r)break;t+=1}for(;r>t;){let t=e.charCodeAt(r-1);if(9!==t&&32!==t)break;r-=1}return 0===t&&r===e.length?e:e.slice(t,r)}function ek(e,t,r,i,n){if(eb.isFunction(i))return i.call(this,t,r);if(n&&(t=r),eb.isString(t)){if(eb.isString(i))return -1!==t.indexOf(i);if(eb.isRegExp(i))return i.test(t)}}class eO{constructor(e){e&&this.set(e)}set(e,t,r){let i=this;function n(e,t,r){let n=ej(t);if(!n)return;let s=eb.findKey(i,n);s&&void 0!==i[s]&&!0!==r&&(void 0!==r||!1===i[s])||(i[s||t]=eE(e))}let s=(e,t)=>eb.forEach(e,(e,r)=>n(e,r,t));if(eb.isPlainObject(e)||e instanceof this.constructor)s(e,t);else{let i;if(eb.isString(e)&&(e=e.trim())&&(i=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(i.trim()))){var o;let r,i,n,a;s((a={},(o=e)&&o.split("\n").forEach(function(e){n=e.indexOf(":"),r=e.substring(0,n).trim().toLowerCase(),i=e.substring(n+1).trim();let t=eb.hasOwnProp(a,r);!r||t&&eb.hasOwnProp(ev,r)||("set-cookie"===r?t?a[r].push(i):a[r]=[i]:a[r]=t?a[r]+", "+i:i)}),a),t)}else if(eb.isObject(e)&&eb.isSafeIterable(e)){let r=Object.create(null),i,n;for(let t of e){if(!eb.isArray(t))throw TypeError("Object iterator must return a key-value pair");n=t[0],eb.hasOwnProp(r,n)?(i=r[n],r[n]=eb.isArray(i)?[...i,t[1]]:[i,t[1]]):r[n]=t[1]}s(r,t)}else null!=e&&n(t,e,r)}return this}get(e,t){if(e=ej(e)){let r=eb.findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t){let t,r=Object.create(null),i=/([^\s,;
1=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=i.exec(e);)r[t[1]]=t[2];return r}if(eb.isFunction(t))return t.call(this,e,r);if(eb.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ej(e)){let r=eb.findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||ek(this,this[r],r,t)))}return!1}delete(e,t){let r=this,i=!1;function n(e){if(e=ej(e)){let n=eb.findKey(r,e);n&&(!t||ek(r,r[n],n,t))&&(delete r[n],i=!0)}}return eb.isArray(e)?e.forEach(n):n(e),i}clear(e){let t=Object.keys(this),r=t.length,i=!1;for(;r--;){let n=t[r];(!e||ek(this,this[n],n,e,!0))&&(delete this[n],i=!0)}return i}normalize(e){let t=this,r={};return eb.forEach(this,(i,n)=>{let s=eb.findKey(r,n);if(s){t[s]=eE(i),delete t[n];return}let o=e?n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r):String(n).trim();o!==n&&delete t[n],t[o]=eE(i),r[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return eb.forEach(this,(r,i)=>{null!=r&&!1!==r&&(t[i]=e&&eb.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){let e=this.get("set-cookie");return eb.isArray(e)?e:null==e||!1===e?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return function(e){let t=Object.create(null),r=String(e),i=0,n=!1,s=!1;function o(e){let n=eI(r.slice(i,e)),s=n.indexOf("=");if(s<1)return;let o=eI(n.slice(0,s));if(!eT.test(o))return;let a=o.toLowerCase();if("__proto__"===a||"constructor"===a||"prototype"===a)return;let l=eI(n.slice(s+1));t[a]=function(e){let t=e.length-1;if(t<1||34!==e.charCodeAt(0)||34!==e.charCodeAt(t))return e;let r="";for(let i=1;i<t;i++){let n=e.charCodeAt(i);if(34===n||92===n&&(i+=1)>=t)return e;r+=e[i]}return r}(l)}for(let e=0;e<r.length;e++){let t=r.charCodeAt(e);n?s?s=!1:92===t?s=!0:34===t&&(n=!1):34===t?n=!0:(44===t||59===t)&&(o(e),i=e+1)}return o(r.length),t}(e)}static concat(e,...t){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let t=(this[eP]=this[eP]={accessors:{}}).accessors,r=this.prototype;function i(e){let i=ej(e);if(!t[i]){let n;n=eb.toCamelCase(" "+e),["get","set","has"].forEach(t=>{Object.defineProperty(r,t+n,{__proto__:null,value:function(r,i,n){return this[t].call(this,e,r,i,n)},configurable:!0})}),t[i]=!0}}return eb.isArray(e)?e.forEach(i):i(e),this}}eO.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),eb.reduceDescriptors(eO.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),eb.freezeMethods(eO);let eD="[REDACTED ****]";function eN(e){try{return String(e)}catch(e){return""}}class eC extends Error{static from(e,t,r,i,n,s){let o=e.message;!o&&eb.isArray(e.errors)&&e.errors.length&&(o=e.errors.map(e=>{try{return e&&e.message?eN(e.message):eN(e)}catch(e){return""}}).filter(Boolean).join("; ")||e.name||"AggregateError");let a=new eC(o,t||e.code,r,i,n);return Object.defineProperty(a,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),a.name=e.name,null!=e.status&&null==a.status&&(a.status=e.status),s&&Object.assign(a,s),a}constructor(e,t,r,i,n){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),r&&(this.config=r),i&&(this.request=i),n&&(this.response=n,this.status=n.status)}toJSON(){let e,t,r,i=this.config,n=i&&eb.hasOwnProp(i,"redact")?i.redact:void 0,s=eb.isArray(n)&&n.length>0?(e=new Set(n.map(e=>String(e).toLowerCase())),t=[],(r=i=>{let n;if(null===i||"object"!=typeof i||eb.isBuffer(i))return i;if(-1===t.indexOf(i)){if(i instanceof eO&&(i=i.toJSON()),t.push(i),eb.isArray(i))n=[],i.forEach((e,t)=>{let i=r(e);eb.isUndefined(i)||(n[t]=i)});else{if(!eb.isPlainObject(i)&&function(e){if(eb.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(eb.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(i))return t.pop(),i;for(let[t,s]of(n=Object.create(null),Object.entries(i))){let i=e.has(t.toLowerCase())?eD:r(s);eb.isUndefined(i)||(n[t]=i)}}return t.pop(),n}})(i)):eb.toJSONObject(i);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:s,code:this.code,status:this.status}}}eC.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",eC.ERR_BAD_OPTION="ERR_BAD_OPTION",eC.ECONNABORTED="ECONNABORTED",eC.ETIMEDOUT="ETIMEDOUT",eC.ECONNREFUSED="ECONNREFUSED",eC.ERR_NETWORK="ERR_NETWORK",eC.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",eC.ERR_DEPRECATED="ERR_DEPRECATED",eC.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",eC.ERR_BAD_REQUEST="ERR_BAD_REQUEST",eC.ERR_CANCELED="ERR_CANCELED",eC.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",eC.ERR_INVALID_URL="ERR_INVALID_URL",eC.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let e_=eC;function eR(e){return eb.isPlainObject(e)||eb.isArray(e)}function eL(e){return eb.endsWith(e,"[]")?e.slice(0,-2):e}function eY(e,t,r){return e?e.concat(t).map(function(e,t){return e=eL(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}let eB=eb.toFlatObject(eb,{},null,function(e){return/^is[A-Z]/.test(e)}),ez=function(e,t,r){if(!eb.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let i=(e,t)=>{let i=eb.getSafeProp(r,e);return eb.isUndefined(i)?t:i},n=i("metaTokens",!0),s=i("visitor")||p,o=i("dots",!1),a=i("indexes",!1),l=i("Blob")||"u">typeof Blob&&Blob,u=i("maxDepth",100),h=l&&eb.isSpecCompliantForm(t),c=[];if(!eb.isFunction(s))throw TypeError("visitor must be a function");function d(e){if(null===e)return"";if(eb.isDate(e))return e.toISOString();if(eb.isBoolean(e))return e.toString();if(!h&&eb.isBlob(e))throw new e_("Blob is not supported. Use a Buffer instead.");if(eb.isArrayBuffer(e)||eb.isTypedArray(e)){if(h&&"function"==typeof l)return new l([e]);throw new e_("Blob is not supported. Use a Buffer instead.",e_.ERR_NOT_SUPPORT)}return e}function f(e){if(e>u)throw new e_("Object is too deeply nested ("+e+" levels). Max depth: "+u,e_.ERR_FORM_DATA_DEPTH_EXCEEDED)}function p(e,r,i){let s=e;if(eb.isReactNative(t)&&eb.isReactNativeBlob(e))return t.append(eY(i,r,o),d(e)),!1;if(e&&!i&&"object"==typeof e)if(eb.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=function(e){if(u===1/0)return JSON.stringify(e);let t=[];return JSON.stringify(e,function(e,r){if(!eb.isObject(r))return r;for(;t.length&&t[t.length-1]!==this;)t.pop();return t.push(r),f(1+t.length-1),r})}(e);else{var l;if(eb.isArray(e)&&(l=e,eb.isArray(l)&&!l.some(eR))||(eb.isFileList(e)||eb.endsWith(r,"[]"))&&(s=eb.toArray(e)))return r=eL(r),s.forEac
1h(function(e,i){eb.isUndefined(e)||null===e||t.append(!0===a?eY([r],i,o):null===a?r:r+"[]",d(e))}),!1}return!!eR(e)||(t.append(eY(i,r,o),d(e)),!1)}let m=Object.assign(eB,{defaultVisitor:p,convertValue:d,isVisitable:eR});if(!eb.isObject(e))throw TypeError("data must be an object");return!function e(r,i,n=0){if(!eb.isUndefined(r)){if(f(n),-1!==c.indexOf(r))throw Error("Circular reference detected in "+i.join("."));c.push(r),eb.forEach(r,function(r,o){!0===(!(eb.isUndefined(r)||null===r)&&s.call(t,r,eb.isString(o)?o.trim():o,i,m))&&e(r,i?i.concat(o):[o],n+1)}),c.pop()}}(e),t};function eV(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function eU(e,t){this._pairs=[],e&&ez(e,this,t)}let eF=eU.prototype;function eH(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function eq(e,t,r){let i;if(!t)return e;e=e||"";let n=eb.isFunction(r)?{serialize:r}:r,s=eb.getSafeProp(n,"encode")||eH,o=eb.getSafeProp(n,"serialize");if(i=o?o(t,n):eb.isURLSearchParams(t)?t.toString():new eU(t,n).toString(s)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}eF.append=function(e,t){this._pairs.push([e,t])},eF.toString=function(e){let t=e?t=>e.call(this,t,eV):eV;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};let eW=Symbol("internals");function eZ(e){return e?e.length:0}function eK(e){if(e)for(;e.length&&null===e[e.length-1];)e.pop()}function eG(e,t){let r=e.handlers,i=eZ(r);r!==t.handlersRef?(t.handlersRef=r,t.handlerEntries.clear()):i!==t.handlersLength&&(i?t.handlerEntries.forEach(function(e,i){r[e.index]!==e.handler&&t.handlerEntries.delete(i)}):t.handlerEntries.clear()),t.handlersLength=i}class eQ{constructor(){this.handlers=[],this[eW]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,t,r){let i={fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null},n=this[eW];null==this.handlers&&(this.handlers=[]),eG(this,n);let s=n.nextId++;return this.handlers.push(i),n.handlerEntries.set(s,{handler:i,index:this.handlers.length-1}),n.handlersLength=this.handlers.length,s}eject(e){let t=this[eW];eG(this,t);let r=t.handlerEntries.get(e);if(r){if(t.handlerEntries.delete(e),this.handlers[r.index]!==r.handler)return;this.handlers[r.index]=null,t.iterationDepth||(eK(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],eG(this,this[eW]))}forEach(e){let t=this[eW];eG(this,t),t.iterationDepth++;try{eb.forEach(this.handlers,function(t){null!==t&&e(t)})}finally{--t.iterationDepth||(eG(this,t),eK(this.handlers),t.handlersLength=eZ(this.handlers))}}}let e$={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},eJ="u">typeof URLSearchParams?URLSearchParams:eU,eX="u">typeof FormData?FormData:null,e0="u">typeof Blob?Blob:null,e1="u">typeof window&&"u">typeof document,e2="object"==typeof navigator&&navigator||void 0,e5=e1&&(!e2||0>["ReactNative","NativeScript","NS"].indexOf(e2.product)),e3="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,e4=e1&&window.location.href||"http://localhost",e6={...A,isBrowser:!0,classes:{URLSearchParams:eJ,FormData:eX,Blob:e0},protocols:["http","https","file","blob","url","data"]};function e8(e){if(e>100)throw new e_("FormData field is too deeply nested ("+e+" levels). Max depth: 100",e_.ERR_FORM_DATA_DEPTH_EXCEEDED)}let e9=function(e){if(eb.isFormData(e)&&eb.isFunction(e.entries)){let t={};return eb.forEachEntry(e,(e,r)=>{!function e(t,r,i,n){e8(n);let s=t[n++];if("__proto__"===s)return!0;let o=Number.isFinite(+s),a=n>=t.length;return(s=!s&&eb.isArray(i)?i.length:s,a)?eb.hasOwnProp(i,s)?i[s]=eb.isArray(i[s])?i[s].concat(r):[i[s],r]:i[s]=r:(eb.hasOwnProp(i,s)&&eb.isObject(i[s])||(i[s]=[]),e(t,r,i[s],n)&&eb.isArray(i[s])&&(i[s]=function(e){let t,r,i={},n=Object.keys(e),s=n.length;for(t=0;t<s;t++)i[r=n[t]]=e[r];return i}(i[s]))),!o}(function(e){let t,r=[],i=/[^.[\]]+|\[([^.[\]]*)]/g;for(;null!==(t=i.exec(e));)e8(r.length),r.push("[]"===t[0]?"":t[1]||t[0]);return r}(e),r,t,0)}),t}return null},e7=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),te=(e,t)=>
1null!=e&&eb.hasOwnProp(e,t)?e[t]:void 0,tt={transitional:e$,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let r,i=t.getContentType()||"",n=i.indexOf("application/json")>-1,s=eb.isObject(e);if(s&&eb.isHTMLForm(e)&&(e=new FormData(e)),eb.isFormData(e))return n?JSON.stringify(e9(e)):e;if(eb.isArrayBuffer(e)||eb.isBuffer(e)||eb.isStream(e)||eb.isFile(e)||eb.isBlob(e)||eb.isReadableStream(e))return e;if(eb.isArrayBufferView(e))return e.buffer;if(eb.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(s){let t=te(this,"formSerializer");if(i.indexOf("application/x-www-form-urlencoded")>-1)return ez(e,new e6.classes.URLSearchParams,{visitor:function(e,t,r,i){return e6.isNode&&eb.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t}).toString();if((r=eb.isFileList(e))||i.indexOf("multipart/form-data")>-1){let i=te(this,"env"),n=i&&i.FormData;return ez(r?{"files[]":e}:e,n&&new n,t)}}if(s||n){t.setContentType("application/json",!1);var o=e;if(eb.isString(o))try{return(0,JSON.parse)(o),eb.trim(o)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(o)}return e}],transformResponse:[function(e){let t=te(this,"transitional")||tt.transitional,r=t&&t.forcedJSONParsing,i=te(this,"responseType"),n="json"===i;if(eb.isResponse(e)||eb.isReadableStream(e))return e;if(e&&eb.isString(e)&&(r&&!i||n)){let r=t&&t.silentJSONParsing;try{return JSON.parse(e,te(this,"parseReviver"))}catch(e){if(!r&&n){if("SyntaxError"===e.name)throw e_.from(e,e_.ERR_BAD_RESPONSE,this,null,te(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:e6.classes.FormData,Blob:e6.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function tr(e,t){let r=this||tt,i=t||r,n=eO.from(i.headers),s=i.data;return eb.forEach(e,function(e){s=e.call(r,s,n.normalize(),t?t.status:void 0)}),n.normalize(),s}function ti(e){return!!(e&&e.__CANCEL__)}eb.forEach(e7,e=>{tt.headers[e]={}});class tn extends e_{constructor(e,t,r){super(null==e?"canceled":e,e_.ERR_CANCELED,t,r),this.name="CanceledError",this.__CANCEL__=!0}}function ts(e,t,r){let i=r.config.validateStatus;!r.status||!i||i(r.status)?e(r):t(new e_("Request failed with status code "+r.status,r.status>=400&&r.status<500?e_.ERR_BAD_REQUEST:e_.ERR_BAD_RESPONSE,r.config,r.request,r))}let to=/[\t\n\r]/g;function ta(e){if("string"!=typeof e)return e;let t=0;for(;t<e.length&&32>=e.charCodeAt(t);)t++;return e.slice(t).replace(to,"")}function tl(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}let tu=function(e,t){let r,i=Array(e=e||10),n=Array(e),s=0,o=0;return t=void 0!==t?t:1e3,function(a){let l=Date.now(),u=n[o];r||(r=l),i[s]=a,n[s]=l;let h=o,c=0;for(;h!==s;)c+=i[h++],h%=e;if((s=(s+1)%e)===o&&(o=(o+1)%e),l-r<t)return;let d=u&&l-u;return d?Math.round(1e3*c/d):void 0}},th=function(e,t){let r,i,n=0,s=1e3/t,o=(t,s=Date.now())=>{n=s,r=null,i&&(clearTimeout(i),i=null),e(...t)};return[(...e)=>{let t=Date.now(),a=t-n;a>=s?o(e,t):(r=e,i||(i=setTimeout(()=>{i=null,o(r)},s-a)))},()=>r&&o(r),(...e)=>o(e)]},tc=(e,t,r=3)=>{let i=0,n=tu(50,250);return th(r=>{if(!r||!eb.isNumber(r.loaded))return;let s=r.loaded,o=r.lengthComputable?r.total:void 0,a=Math.max(0,null!=o?Math.min(s,o):s),l=Math.max(0,a-i),u=n(l);i=Math.max(i,a),e({loaded:a,total:o,progress:o?a/o:void 0,bytes:l,rate:u||void 0,estimated:u&&o?(o-a)/u:void 0,event:r,lengthComputable:null!=o,[t?"download":"upload"]:!0})},r)},td=(e,t)=>{let r=null!=e;return[i=>t[0]({lengthComputable:r,total:e,loaded:i}),t[1]]},tf=(e,t=eb.asap)=>(...r)=>t(()=>e(...r)),tp=e6.hasStandardBrowserEnv?(s=new URL(e6.origin),o=e6.navigator&&/(msie|trident)/i.test(e6.navigator.userAgent),e=>(e=new URL(e,e6.origin),s.protocol===e.protocol&&s.host===e.host&&(o||s.port===e.port))):()=>!0,tm=e6.hasStandardBrowserEnv?{write(e,t,r,i,n,s,o){if("u"<typeof document)return;let a=[`${e}=${encodeURIComponent(t)}`];eb.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),eb.isString(i)&&a.push(`path=${i}`),eb.isString(n)&&a.push(`domain=${n}`),!0===s&&a.push("secure"),eb.isString(o)&&a.push(`SameSite=${o}`),document.cookie=a.join("; ")},read(e){if("u"<typeof document)return null;let t=document.cookie.split(";");for(let r=0;r<t.length;r++){let i=t[r].replace(/^\s+/,""),n=i.indexOf("=");if(-1!==n&&i.slice(0,n)===e)try{return decodeURIComponent(i.slice(n+1))}catch(e){return i.slice(n+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},tg=/^https?:(?!\/\/)/i;function ty(e,t){if("string"==typeof e){let i=ta(e);if(tg.test(i)){var r;let e,n,s;throw new e_(`Invalid URL ${JSON.stringify((s=(-1===(n=(e=i.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${eD}@`)).indexOf("#"))?e:e.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${eD}`),-1===n?s:`${s}#${!(r=e.slice(n+1))?r:r.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,r="")=>`${t}${r}${eD}`)}`))}: missing "//" after protocol`,e_.ERR_INVALID_URL,t)}}}function tw(e,t,r,i){ty(t,i);let n=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));if(e&&(n||!1===r)){ty(e,i);if(!t)return e;let r=e.length;for(;r>0&&47===e.charCodeAt(r-1);)r--;return e.slice(0,r)+"/"+t.replace(/^\/+/,"")}return t}let tb=e=>e instanceof eO?{...e}:e;function tv(e,t){var r;e=e||{},t=t||{};let i=Object.create(null);function n(e,t,r,i){return eb.isPlainObject(e)&&eb.isPlainObject(t)?eb.merge.call({caseless:i},e,t):eb.isPlainObject(t)?eb.merge({},t):eb.isArray(t)?t.slice():t}function s(e,t,r,i){return eb.isUndefined(t)?eb.isUndefined(e)?void 0:n(void 0,e,r,i):n(e,t,r,i)}function o(e,t){if(!eb.isUndefined(t))return n(void 0,t)}function a(e,t){return eb.isUndefined(t)?eb.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function l(r,i,s){return eb.hasOwnProp(t,s)?n(r,i):eb.hasOwnProp(e,s)?n(void 0,r):void 0}Object.defineProperty(i,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let u={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutErrorMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBo
1dyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:l,headers:(e,t,r)=>s(tb(e),tb(t),r,!0)};return eb.forEach((r={...e,...t},Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(r).concat(Object.getOwnPropertySymbols(r).filter(e=>Object.getOwnPropertyDescriptor(r,e).enumerable)):Object.keys(r)),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;let n=eb.hasOwnProp(u,r)?u[r]:s,o=n(eb.hasOwnProp(e,r)?e[r]:void 0,eb.hasOwnProp(t,r)?t[r]:void 0,r);eb.isUndefined(o)&&n!==l||(i[r]=o)}),eb.hasOwnProp(t,"validateStatus")&&eb.isUndefined(t.validateStatus)&&!1===function(r){let i=eb.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!eb.isUndefined(i)){if(!eb.isPlainObject(i))return;else if(eb.hasOwnProp(i,r))return i[r]}let n=eb.hasOwnProp(e,"transitional")?e.transitional:void 0;if(eb.isPlainObject(n)&&eb.hasOwnProp(n,r))return n[r]}("validateStatusUndefinedResolves")&&(eb.hasOwnProp(e,"validateStatus")?i.validateStatus=n(void 0,e.validateStatus):delete i.validateStatus),i}let tx=["content-type","content-length"],tS=function(e){let t=tv({},e),r=e=>eb.hasOwnProp(t,e)?t[e]:void 0,i=r("data"),n=r("withXSRFToken"),s=r("xsrfHeaderName"),o=r("xsrfCookieName"),a=r("headers"),l=r("auth"),u=r("baseURL"),h=r("allowAbsoluteUrls"),c=r("url");if(t.headers=a=eO.from(a),t.url=eq(tw(u,c,h,t),r("params"),r("paramsSerializer")),l){let t=eb.getSafeProp(l,"username")||"",r=eb.getSafeProp(l,"password")||"";try{a.set("Authorization","Basic "+btoa(t+":"+(r?encodeURIComponent(r).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))):"")))}catch(t){throw e_.from(t,e_.ERR_BAD_OPTION_VALUE,e)}}if(eb.isFormData(i)){let e=eb.getSafeProp(i,"getHeaders");if(e6.hasStandardBrowserEnv||e6.hasStandardBrowserWebWorkerEnv||eb.isReactNative(i))a.setContentType(void 0);else{var d,f;eb.isFunction(e)&&(d=a,f=e.call(i),"content-only"!==r("formDataHeaderPolicy")?d.set(f):Object.entries(f||{}).forEach(([e,t])=>{tx.includes(e.toLowerCase())&&d.set(e,t)}))}}if(e6.hasStandardBrowserEnv&&(eb.isFunction(n)&&(n=n(t)),!0===n||null==n&&tp(t.url))){let e=s&&o&&tm.read(o);e&&a.set(s,e)}return t},tM="u">typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){let i,n,s,o,a,l,u=tS(e),h=u.data,c=eO.from(u.headers).normalize(),{responseType:d,onUploadProgress:f,onDownloadProgress:p}=u;function m(){o&&o(),a&&a(),u.cancelToken&&u.cancelToken.unsubscribe(i),u.signal&&u.signal.removeEventListener("abort",i)}let g=new XMLHttpRequest;function y(i){if(!g)return;if(0===g.status&&"file"!==(tl(ta(u.url))||tl(e6.origin))&&!(g.responseURL&&g.responseURL.startsWith("file:"))){r(new e_("Request aborted",e_.ECONNABORTED,e,g)),m(),g=null;return}try{i?l&&l(i):a&&a()}catch(e){setTimeout(()=>{throw e})}if(!g)return;let n=eO.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());ts(function(e){t(e),m()},function(e){r(e),m()},{data:d&&"text"!==d&&"json"!==d?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:n,config:e,request:g}),g=null}g.open(u.method.toUpperCase(),u.url,!0),g.timeout=u.timeout,"onloadend"in g?g.onloadend=y:g.onreadystatechange=function(){!g||4!==g.readyState||(0!==g.status||g.responseURL&&g.responseURL.startsWith("file:"))&&setTimeout(y)},g.onabort=function(){g&&(r(new e_("Request aborted",e_.ECONNABORTED,e,g)),m(),g=null)},g.onerror=function(t){let i=new e_(t&&t.message?t.message:"Network Error",e_.ERR_NETWORK,e,g);i.event=t||null,r(i),m(),g=null},g.ontimeout=function(){let t=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded",i=u.transitional||e$;u.timeoutErrorMessage&&(t=u.timeoutErrorMessage),r(new e_(t,i.clarifyTimeoutError?e_.ETIMEDOUT:e_.ECONNABORTED,e,g)),m(),g=null},void 0===h&&c.setContentType(null),"setRequestHeader"in g&&eb.forEach(eA(c),function(e,t){g.setRequestHeader(t,e)}),eb.isUndefined(u.withCredentials)||(g.withCredentials=!!u.withCredentials),d&&"json"!==d&&(g.responseType=u.responseType),p&&([s,a,l]=tc(p,!0),g.addEventListener("progress",s)),f&&g.upload&&([n,o]=tc(f),g.upload.addEventListener("progress",n),g.upload.addEventListener("loadend",o)),(u.cancelToken||u.signal)&&(i=t=>{g&&(r(!t||t.type?new tn(null,e,g):t),g.abort(),m(),g=null)},u.cancelToken&&u.cancelToken.subscribe(i),u.signal&&(u.signal.aborted?i():u.signal.addEventListener("abort",i)));let w=tl(u.url);if(w&&!e6.protocols.includes(w)){r(new e_("Unsupported protocol "+w+":",e_.ERR_BAD_REQUEST,e)),m();return}g.send(h||null)})},tA=function*(e,t){let r,i=e.byteLength;if(!t||i<t)return void(yield e);let n=0;for(;n<i;)r=n+t,yield e.slice(n,r),n=r},tP=async function*(e,t){for await(let r of tj(e))yield*tA(r,t)},tj=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},tE=(e,t,r,i)=>{let n,s=tP(e,t),o=0,a=e=>{!n&&(n=!0,i&&i(e))};return new ReadableStream({async pull(e){try{let{done:t,value:i}=await s.next();if(t){a(),e.close();return}let n=i.byteLength;if(r){let e=o+=n;r(e)}e.enqueue(new Uint8Array(i))}catch(e){throw a(e),e}},cancel:e=>(a(e),s.return())},{highWaterMark:2})},tT=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,tI=(e,t,r)=>t+2<r&&tT(e.charCodeAt(t+1))&&tT(e.charCodeAt(t+2)),tk=e=>e<=57?e-48:(223&e)-55,tO=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||43===e||47===e||45===e||95===e,tD=e=>9===e||10===e||12===e||13===e||32===e,tN=e=>{var t;let r,i,n=e.length,s=0,o=0,a=!1;for(let t=0;t<n;t++){let r=e.charCodeAt(t);if(37===r&&tI(e,t,n)&&(r=16*tk(e.charCodeAt(t+1))+tk(e.charCodeAt(t+2)),t+=2),!tD(r)){if(61===r){o++;continue}if(!tO(r)||o>0){a=!0;continue}s++}}if(a||o>2||o>0&&(s+o)%4!=0||s%4==1){let t,r;return t=e.length,r=0,t>0&&61===e.charCodeAt(t-1)&&(r++,t>1&&61===e.charCodeAt(t-2)&&r++),Math.floor((t-r)*3/4)}return r=Math.floor((t=s)/4),3*r+(2==(i=t%4)?1:2*(3===i))},tC="1.20.0",t_={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:tR}=eb,tL=e=>{if(!eb.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},tY=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},tB=e=>{let t,r=void 0!==eb.global&&null!==eb.global?eb.global:globalThis,{ReadableStream:i,TextEncoder:n}=r,{fetch:s,Request:o,Response:a}=e=eb.merge.call({skipUndefined:!0},{Request:r.Request,Response:r.Response},e),l=s?tR(s):"function"==typeof fetch,u=tR(o),h=tR(a);if(!l)return!1;
1let c=l&&tR(i),d=l&&("function"==typeof n?(t=new n,e=>t.encode(e)):async e=>new Uint8Array(await new o(e).arrayBuffer())),f=u&&c&&tY(()=>{let e=!1,t=new o(e6.origin,{body:new i,method:"POST",get duplex(){return e=!0,"half"}}),r=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!r}),p=h&&c&&tY(()=>eb.isReadableStream(new a("").body)),m={stream:p&&(e=>e.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{m[e]||(m[e]=(t,r)=>{let i=t&&t[e];if(i)return i.call(t);throw new e_(`Response type '${e}' is not supported`,e_.ERR_NOT_SUPPORT,r)})});let g=async e=>{if(null==e)return 0;if(eb.isBlob(e))return e.size;if(eb.isSpecCompliantForm(e)){let t=new o(e6.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return eb.isArrayBufferView(e)||eb.isArrayBuffer(e)?e.byteLength:(eb.isURLSearchParams(e)&&(e+=""),eb.isString(e))?(await d(e)).byteLength:void 0},y=async(e,t)=>{let r=eb.toFiniteNumber(e.getContentLength());return null==r?g(t):r};return async e=>{let t,{url:r,method:i,data:l,signal:h,cancelToken:d,timeout:w,onDownloadProgress:b,onUploadProgress:v,responseType:x,headers:S,withCredentials:M="same-origin",fetchOptions:A,maxContentLength:P,maxBodyLength:j,maxRedirects:E}=tS(e),T=eb.isNumber(P)&&P>-1,I=eb.isNumber(j)&&j>-1,k=s||fetch;x=x?(x+"").toLowerCase():"text";let O=((e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let r=new AbortController,i=!1,n=function(e){if(!i){i=!0,o();let t=e instanceof Error?e:this.reason;r.abort(t instanceof e_?t:new tn(t instanceof Error?t.message:t))}},s=t&&setTimeout(()=>{s=null,n(new e_(`timeout of ${t}ms exceeded`,e_.ETIMEDOUT))},t),o=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(n):e.removeEventListener("abort",n)}),e=null)};e.forEach(e=>{if(!i){if(e.aborted)return void n.call(e);e.addEventListener("abort",n,{once:!0})}});let{signal:a}=r;return a.unsubscribe=()=>eb.asap(o),a})([h,d&&d.toAbortSignal()],w),D=null,N=O&&O.unsubscribe&&(()=>{O.unsubscribe()}),C=null,_=()=>new e_("Request body larger than maxBodyLength limit",e_.ERR_BAD_REQUEST,e,D);try{var R,L;let s,h,d,w,Y=(h="auth",eb.hasOwnProp(e,h)?e[h]:void 0);if(Y){let e=eb.getSafeProp(Y,"username")||"",t=eb.getSafeProp(Y,"password")||"";s={username:e,password:t}}if(d=(R=r).indexOf("://"),w=R,-1!==d&&(w=w.slice(d+3)),w.includes("@")||w.includes(":")){let e=new URL(r,e6.origin);if(!s&&(e.username||e.password)){let t=tL(e.username),r=tL(e.password);s={username:t,password:r}}(e.username||e.password)&&(e.username="",e.password="",r=e.href)}if(s){let e;S.delete("authorization"),S.set("Authorization","Basic "+btoa((e=(s.username||"")+":"+(s.password||""),encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))}if(T&&"string"==typeof r&&r.startsWith("data:")){let t;if(L=r,t="string"==typeof L?L.indexOf("#"):-1,((e,t)=>{if(!e||"string"!=typeof e||!e.startsWith("data:"))return 0;let r=e.indexOf(",");if(r<0)return 0;let i=e.slice(5,r),n=e.slice(r+1);if(/;base64/i.test(i))return t(n);let s=0;for(let e=0,t=n.length;e<t;e++){let r=n.charCodeAt(e);if(37===r&&tI(n,e,t))s+=1,e+=2;else if(r<128)s+=1;else if(r<2048)s+=2;else if(r>=55296&&r<=56319&&e+1<t){let t=n.charCodeAt(e+1);t>=56320&&t<=57343?(s+=4,e++):s+=3}else s+=3}return s})(-1===t?L:L.slice(0,t),tN)>P)throw new e_("maxContentLength size of "+P+" exceeded",e_.ERR_BAD_RESPONSE,e,D)}if(I&&"get"!==i&&"head"!==i){let e=await g(l);if("number"==typeof e&&isFinite(e)&&(t=e,e>j))throw _()}let B=I&&(eb.isReadableStream(l)||eb.isStream(l)),z=(e,t,r)=>tE(e,65536,e=>{if(I&&e>j)throw C=_();t&&t(e)},r);if(f&&"get"!==i&&"head"!==i&&(v||B)){if(t=null==t?await y(S,l):t,0!==t||B){let e,i=new o(r,{method:"POST",body:l,duplex:"half"});if(eb.isFormData(l)&&(e=i.headers.get("content-type"))&&S.setContentType(e),i.body){let[e,r]=v&&td(t,tc(tf(v)))||[];l=z(i.body,e,r)}}}else if(B&&!u&&c&&"get"!==i&&"head"!==i)l=z(l);else if(B&&u&&!f&&"get"!==i&&"head"!==i)throw new e_("Stream request bodies are not supported by the current fetch implementation",e_.ERR_NOT_SUPPORT,e,D);eb.isString(M)||(M=M?"include":"omit");let V=u&&"credentials"in o.prototype;if(eb.isFormData(l)){let e=S.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&S.delete("content-type")}S.set("User-Agent","axios/"+tC,!1);let U=null==A?A:Object.assign(Object.create(null),A);U&&(delete U.body,delete U.headers,delete U.method,delete U.signal,delete U.duplex,delete U.credentials);let F=Object.assign(Object.create(null),U,{signal:O,method:i.toUpperCase(),headers:eA(S.normalize()),body:l,duplex:"half",credentials:V?M:void 0});u&&(eb.forEach(t_,(e,t)=>{void 0===F[t]&&(F[t]=e)}),void 0===F.signal&&(F.signal=null),void 0===F.body&&(F.body=null)),0===E&&(F.redirect="manual",U&&(U.redirect="manual")),D=u&&new o(r,F);let H=await (u?k(D,U):k(r,F)),q=eO.from(H.headers);if(T){let t=eb.toFiniteNumber(q.getContentLength());if(null!=t&&t>P)throw new e_("maxContentLength size of "+P+" exceeded",e_.ERR_BAD_RESPONSE,e,D)}let W=p&&("stream"===x||"response"===x);if(p&&H.body&&(b||T||W&&N)){let t={};
1["status","statusText","headers"].forEach(e=>{t[e]=H[e]});let r=eb.toFiniteNumber(q.getContentLength()),[i,n]=b&&td(r,tc(tf(b),!0))||[];H=new a(tE(H.body,65536,t=>{if(T&&t>P)throw new e_("maxContentLength size of "+P+" exceeded",e_.ERR_BAD_RESPONSE,e,D);i&&i(t)},()=>{n&&n(),N&&N()}),t)}x=x||"text";let Z=await m[eb.findKey(m,x)||"text"](H,e);if(T&&!p&&!W){let t;if(null!=Z&&("number"==typeof Z.byteLength?t=Z.byteLength:"number"==typeof Z.size?t=Z.size:"string"==typeof Z&&(t="function"==typeof n?new n().encode(Z).byteLength:Z.length)),"number"==typeof t&&t>P)throw new e_("maxContentLength size of "+P+" exceeded",e_.ERR_BAD_RESPONSE,e,D)}return!W&&N&&N(),await new Promise((t,r)=>{ts(t,r,{data:Z,headers:eO.from(H.headers),status:H.status,statusText:H.statusText,config:e,request:D})})}catch(t){if(N&&N(),O&&O.aborted&&O.reason instanceof e_){let r=O.reason;throw r.config=e,D&&(r.request=D),t!==r&&Object.defineProperty(r,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),r}if(C)throw D&&!C.request&&(C.request=D),C;if(t instanceof e_)throw D&&!t.request&&(t.request=D),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){let r=new e_("Network Error",e_.ERR_NETWORK,e,D,t&&t.response);throw Object.defineProperty(r,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),r}throw e_.from(t,t&&t.code,e,D,t&&t.response)}}},tz=new Map,tV=e=>{let t=e&&e.env||{},{fetch:r,Request:i,Response:n}=t,s=[i,n,r],o=s.length,a,l,u=tz;for(;o--;)a=s[o],void 0===(l=u.get(a))&&u.set(a,l=o?new Map:tB(t)),u=l;return l};tV();let tU={http:null,xhr:tM,fetch:{get:tV}};eb.forEach(tU,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});let tF=e=>`- ${e}`,tH=e=>eb.isFunction(e)||null===e||!1===e,tq=function(e,t){let r,i,{length:n}=e=eb.isArray(e)?e:[e],s={};for(let o=0;o<n;o++){let n;if(i=r=e[o],!tH(r)&&void 0===(i=tU[(n=String(r)).toLowerCase()]))throw new e_(`Unknown adapter '${n}'`);if(i&&(eb.isFunction(i)||(i=i.get(t))))break;s[n||"#"+o]=i}if(!i){let e=Object.entries(s).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new e_("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(tF).join("\n"):" "+tF(e[0]):"as no adapter specified"),e_.ERR_NOT_SUPPORT)}return i};function tW(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new tn(null,e)}function tZ(e){let t=eb.toSafeFlatObject(e);return tW(t),t.headers=eO.from(eb.getSafeProp(t,"headers")),t.data=tr.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),tq(t.adapter||tt.adapter,t)(t).then(function(e){tW(t),t.response=e;try{e.data=tr.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=eO.from(e.headers),e},function(e){if(!ti(e)&&(tW(t),e&&e.response)){t.response=e.response;try{e.response.data=tr.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=eO.from(e.response.headers)}return Promise.reject(e)})}let tK={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{tK[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});let tG={};tK.transitional=function(e,t,r){function i(e,t){return"[Axios v"+tC+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,n,s)=>{if(!1===e)throw new e_(i(n," has been removed"+(t?" in "+t:"")),e_.ERR_DEPRECATED);return t&&!tG[n]&&(tG[n]=!0,console.warn(i(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,s)}},tK.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};let tQ=function(e,t,r){if("object"!=typeof e||null===e)throw new e_("options must be an object",e_.ERR_BAD_OPTION_VALUE);let i=Object.keys(e),n=i.length;for(;n-- >0;){let s=i[n],o=Object.prototype.hasOwnProperty.call(t,s)?t[s]:void 0;if(o){let t=e[s],r=void 0===t||o(t,s,e);if(!0!==r)throw new e_("option "+s+" must be "+r,e_.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new e_("Unknown option "+s,e_.ERR_BAD_OPTION)}};class t${constructor(e){this.defaults=e||{},this.interceptors={request:new eQ,response:new eQ}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error)try{let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let r=t.stack,i="";if("string"==typeof r){let e=r.indexOf("\n");i=-1===e?"":r.slice(e+1)}if(e.stack){if(i){let t=i.indexOf("\n"),r=-1===t?-1:i.indexOf("\n",t+1),n=-1===r?"":i.slice(r+1);String(e.stack).endsWith(n)||(e.stack+="\n"+i)}}else e.stack=i}catch(e){}throw e}}_request(e,t){let r,i;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:n,paramsSerializer:s,headers:o}=t=tv(this.defaults,t);void 0!==n&&tQ(n,{silentJSONParsing:tK.transitional(tK.boolean),forcedJSONParsing:tK.transitional(tK.boolean),clarifyTimeoutError:tK.transitional(tK.boolean),legacyInterceptorReqResOrdering:tK.transitional(tK.boolean),advertiseZstdAcceptEncoding:tK.transitional(tK.boolean),validateStatusUndefinedResolves:tK.transitional(tK.boolean)}
1,!1),null!=s&&(eb.isFunction(s)?t.paramsSerializer={serialize:s}:tQ(s,{encode:tK.function,serialize:tK.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),tQ(t,{baseUrl:tK.spelling("baseURL"),withXsrfToken:tK.spelling("withXSRFToken")},!0),t.method=(eb.getSafeProp(t,"method")||eb.getSafeProp(this.defaults,"method")||"get").toLowerCase();let a=o&&eb.merge(o.common,o[t.method]);o&&eb.forEach(e7.concat("common"),e=>{delete o[e]}),t.headers=eO.concat(a,o);let l=[],u=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;u=u&&e.synchronous;let r=t.transitional||e$;r&&r.legacyInterceptorReqResOrdering?l.unshift(e.fulfilled,e.rejected):l.push(e.fulfilled,e.rejected)});let h=[];this.interceptors.response.forEach(function(e){h.push(e.fulfilled,e.rejected)});let c=0;if(!u){let e=[tZ.bind(this),void 0];for(e.unshift(...l),e.push(...h),i=e.length,r=Promise.resolve(t);c<i;)r=r.then(e[c++],e[c++]);return r}i=l.length;let d=t;for(;c<i;){let e=l[c++],t=l[c++];try{d=e?e(d):d}catch(e){if(!t){r=Promise.reject(e);break}try{let i=t.call(this,e);eb.isThenable(i)&&(r=Promise.resolve(i).then(()=>tZ.call(this,d)))}catch(e){r=Promise.reject(e)}break}}if(!r)try{r=tZ.call(this,d)}catch(e){r=Promise.reject(e)}for(c=0,i=h.length;c<i;)r=r.then(h[c++],h[c++]);return r}getUri(e){return eq(tw((e=tv(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}eb.forEach(["delete","get","head","options"],function(e){t$.prototype[e]=function(t,r){return this.request(tv(r||{},{method:e,url:t,data:r&&eb.hasOwnProp(r,"data")?r.data:void 0}))}}),eb.forEach(["post","put","patch","query"],function(e){function t(t){return function(r,i,n){return this.request(tv(n||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:i}))}}t$.prototype[e]=t(),"query"!==e&&(t$.prototype[e+"Form"]=t(!0))});class tJ{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});const r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t,i=new Promise(e=>{r.subscribe(e),t=e}).then(e);return i.cancel=function(){r.unsubscribe(t)},i},e(function(e,i,n){r.reason||(r.reason=new tn(e,i,n),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new tJ(function(t){e=t}),cancel:e}}}let tX={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
1alContent: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,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent: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,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(tX).forEach(([e,t])=>{void 0===tX[t]&&(tX[t]=e)});let t0=function e(t){let r=new t$(t),i=j(t$.prototype.request,r);return eb.extend(i,t$.prototype,r,{allOwnKeys:!0}),eb.extend(i,r,null,{allOwnKeys:!0}),i.create=function(r){return e(tv(t,r))},i}(tt);t0.Axios=t$,t0.CanceledError=tn,t0.CancelToken=tJ,t0.isCancel=ti,t0.VERSION=tC,t0.toFormData=ez,t0.AxiosError=e_,t0.Cancel=t0.CanceledError,t0.all=function(e){return Promise.all(e)},t0.spread=function(e){return function(t){return e.apply(null,t)}},t0.isAxiosError=function(e){return eb.isObject(e)&&!0===e.isAxiosError},t0.mergeConfig=tv,t0.AxiosHeaders=eO,t0.formToJSON=e=>e9(eb.isHTMLForm(e)?new FormData(e):e),t0.getAdapter=tq,t0.HttpStatusCode=tX,t0.default=t0;r(2811);let t1=new Int32Array(64),t2=0,t5=254===new Uint8Array(new Uint16Array([65279]).buffer)[0]?e=>e:e=>e<<24&0xff000000|e<<8&0xff0000|e>>8&65280|e>>24&255;(c=S||(S={})).mainnet="mainnet",c.testnet="testnet",c.regtest="regtest",c.signet="signet",(d=M||(M={})).p2pkh="p2pkh",d.p2sh="p2sh",d.p2wpkh="p2wpkh",d.p2wsh="p2wsh",d.p2tr="p2tr";M.p2pkh,S.mainnet,M.p2pkh,S.testnet,M.p2sh,S.mainnet,M.p2sh,S.testnet;r(2505);let t3={bitcoin:"bitcoin",spark:"spark",stacks:"stacks",starknet:"starknet"};P.k5n(t3);let t4=P.k5n({builtin:"builtin",custom:"custom"}),t6=P.Ikc({id:P.YjP(),name:P.YjP(),mode:P.KIO([]),source:t4,blockExplorerUrl:P.lqM(P.KCZ([P.FsL(P.euz(""),P.pdi(()=>void 0)),P.FsL(P.YjP(),P.OZ5())]))}),t8=P.FsL(P.YjP(),P.k5n({mainnet:"mainnet",testnet:"testnet",testnet4:"testnet4",signet:"signet",regtest:"regtest"})),t9=P.Ikc({...t6.entries,chain:P.euz(t3.bitcoin),mode:t8,xverseApiUrl:P.FsL(P.YjP(),P.OZ5()),electrsApiUrl:P.FsL(P.YjP(),P.OZ5())}),t7=P.FsL(P.YjP(),P.k5n({mainnet:"mainnet",regtest:"regtest"})),re=P.Ikc({...t6.entries,chain:P.euz(t3.spark),mode:t7,electrsApiUrl:P.FsL(P.YjP(),P.OZ5())}),rt=P.FsL(P.YjP(),P.k5n({mainnet:"mainnet",testnet:"testnet",devnet:"devnet",mocknet:"mocknet"})),rr=P.Ikc({...t6.entries,chain:P.euz(t3.stacks),mode:rt,stacksApiUrl:P.FsL(P.YjP(),P.OZ5()),xverseApiUrl:P.FsL(P.YjP(),P.OZ5())}),ri=P.FsL(P.YjP(),P.k5n({mainnet:"mainnet",sepolia:"sepolia"})),rn=P.Ikc({...t6.entries,chain:P.euz(t3.starknet),mode:ri,rpcApiUrl:P.FsL(P.YjP(),P.OZ5()),xverseApiUrl:P.FsL(P.YjP(),P.OZ5())}),rs=P.Oxt("chain",[t9,re,rr,rn]),ro=["id","source"],ra=P.cJW(t9,ro),rl=P.cJW(re,ro),ru=P.cJW(rr,ro),rh=P.cJW(rn,ro),rc=P.Oxt("chain",[ra,rl,ru,rh]),rd=P.Ikc({active:P.Ikc({bitcoin:t9,spark:re,stacks:rr,starknet:rn}),all:P.YOg(rs)}),rf=P.KIO(["software","ledger","keystone"]),rp=((f={}).Ordinals="ordinals",f.Payment="payment",f.Stacks="stacks",f.Starknet="starknet",f.Spark="spark",f),rm=((p={}).p2pkh="p2pkh",p.p2sh="p2sh",p.p2wpkh="p2wpkh",p.p2wsh="p2wsh",p.p2tr="p2tr",p.stacks="stacks",p.starknet="starknet",p.spark="spark",p),rg=P.Ikc({address:P.YjP(),publicKey:P.YjP(),purpose:P.k5n(rp),addressType:P.k5n(rm),walletType:rf}),ry=((m={}).Mainnet="Mainnet",m.Testnet="Testnet",m.Testnet4="Testnet4",m.Signet="Signet",m.Regtest="Regtest",m),rw=((g={}).Mainnet="mainnet",g.Testnet="testnet",g),rb=((y={}).Mainnet="mainnet",y.Sepolia="sepolia",y),rv=((w={}).Mainnet="mainnet",w.Regtest="regtest",w),rx=((b={}
1)[b.PARSE_ERROR=-32700]="PARSE_ERROR",b[b.INVALID_REQUEST=-32600]="INVALID_REQUEST",b[b.METHOD_NOT_FOUND=-32601]="METHOD_NOT_FOUND",b[b.INVALID_PARAMS=-32602]="INVALID_PARAMS",b[b.INTERNAL_ERROR=-32603]="INTERNAL_ERROR",b[b.USER_REJECTION=-32e3]="USER_REJECTION",b[b.METHOD_NOT_SUPPORTED=-32001]="METHOD_NOT_SUPPORTED",b[b.ACCESS_DENIED=-32002]="ACCESS_DENIED",b),rS=P.Ikc({type:P.euz("accountChange"),addresses:P.lqM(P.YOg(rg))}),rM="networkChange",rA=P.Ikc({type:P.euz(rM),bitcoin:P.Ikc({name:P.k5n(ry)}),stacks:P.Ikc({name:P.YjP()}),addresses:P.lqM(P.YOg(rg))});P.Ikc({type:P.euz(rM),networks:P.Ikc({bitcoin:t9,spark:re,stacks:rr,starknet:rn}),addresses:P.lqM(P.YOg(rg))});let rP=P.Ikc({type:P.euz("disconnect")});function rj(e){return e?.split(".").reduce((e,t)=>e?.[t],window)}function rE(e){return!!rj(e)}P.Oxt("type",[rS,rA,rP]);ry.Mainnet,ry.Testnet,ry.Testnet4,ry.Signet;let rT=((v={}).ECDSA="ECDSA",v.BIP322="BIP322",v),rI=((x={}).Web="web",x.Mobile="mobile",x),rk=P.KCZ([P.YjP(),P.aig(),P.chJ()]),rO=P.Ikc({jsonrpc:P.euz("2.0"),method:P.YjP(),params:P.lqM(P.KCZ([P.YOg(P.L5J()),P._H3({}),P.chJ()])),id:P.lqM(rk)}),rD=P.Ikc({jsonrpc:P.euz("2.0"),result:P.L5J(),id:rk}),rN=P.Oxt("code",[P.Ikc({code:P.euz("DEPRECATION_NOTICE"),message:P.YjP(),sunsetDate:P.FsL(P.YjP(),P._$n())})]),rC=P.Ikc({...rD.entries,extensions:P.lqM(P.Ikc({warnings:P.YOg(rN)}))}),r_=P.Ikc({code:P.aig(),message:P.YjP(),data:P.lqM(P.L5J())}),rR=P.Ikc({jsonrpc:P.euz("2.0"),error:r_,id:rk});P.KCZ([rC,rR]);let rL={getAccounts:"getAccounts",getAddresses:"getAddresses",bitcoin_getAddressesV2:"bitcoin_getAddressesV2",getBalance:"getBalance",bitcoin_getBalanceV2:"bitcoin_getBalanceV2",getInfo:"getInfo",sendTransfer:"sendTransfer",bitcoin_sendTransferV2:"bitcoin_sendTransferV2",signMessage:"signMessage",bitcoin_signMessageV2:"bitcoin_signMessageV2",signMultipleMessages:"signMultipleMessages",bitcoin_signMultipleMessagesV2:"bitcoin_signMultipleMessagesV2",signPsbt:"signPsbt",bitcoin_signPsbtV2:"bitcoin_signPsbtV2"},rY={stx_callContract:"stx_callContract",stx_deployContract:"stx_deployContract",stx_getAccounts:"stx_getAccounts",stx_getAddresses:"stx_getAddresses",stx_signMessage:"stx_signMessage",stx_signStructuredMessage:"stx_signStructuredMessage",stx_signTransaction:"stx_signTransaction",stx_signTransactions:"stx_signTransactions",stx_transferStx:"stx_transferStx"},rB={spark_getAddresses:"spark_getAddresses",spark_getAddressesV2:"spark_getAddressesV2",spark_getBalance:"spark_getBalance",spark_transfer:"spark_transfer",spark_transferToken:"spark_transferToken",spark_signMessage:"spark_signMessage",spark_flashnet_getJwt:"spark_flashnet_getJwt",spark_flashnet_signIntent:"spark_flashnet_signIntent",spark_flashnet_signStructuredMessage:"spark_flashnet_signStructuredMessage",spark_flashnet_executeSwap:"spark_flashnet_executeSwap",spark_flashnet_executeRouteSwap:"spark_flashnet_executeRouteSwap",spark_flashnet_clawbackFunds:"spark_flashnet_clawbackFunds",spark_flashnet_getClawbackEligibleTransfers:"spark_flashnet_getClawbackEligibleTransfers"},rz={runes_estimateEtch:"runes_estimateEtch",runes_estimateMint:"runes_estimateMint",runes_estimateRbfOrder:"runes_estimateRbfOrder",runes_etch:"runes_etch",runes_getBalance:"runes_getBalance",runes_getOrder:"runes_getOrder",runes_mint:"runes_mint",runes_rbfOrder:"runes_rbfOrder",runes_transfer:"runes_transfer"},rV={ord_getInscriptions:"ord_getInscriptions",ord_sendInscriptions:"ord_sendInscriptions"},rU={wallet_addNetwork:"wallet_addNetwork",wallet_open:"wallet_open",wallet_addNetworkV2:"wallet_addNetworkV2",wallet_changeNetwork:"wallet_changeNetwork",wallet_connect:"wallet_connect",wallet_connectV2:"wallet_connectV2",wallet_disconnect:"wallet_disconnect",wallet_getAccount:"wallet_getAccount",wallet_getAccountV2:"wallet_getAccountV2",wallet_getCurrentPermissions:"wallet_getCurrentPermissions",wallet_getNetwork:"wallet_getNetwork",wallet_getNetworks:"wallet_getNetworks",wallet_getWalletType:"wallet_getWalletType",wallet_openBridge:"wallet_openBridge",wallet_openBuy:"wallet_openBuy",wallet_openReceive:"wallet_openReceive",wallet_renouncePermissions:"wallet_renouncePermissions",wallet_requestPermissions:"wallet_requestPermissions",wallet_switchNetwork:"wallet_switchNetwork"};({...rL,...rY,...rB,...rz,...rV,...rU});let rF=P.YjP();function rH({paramsSchema:e,method:t}){return P.Ikc({...rO.entries,id:rF,method:P.euz(t),params:e})}let rq=rH({paramsSchema:P.Ikc({purposes:P.YOg(P.k5n(rp)),message:P.lqM(P.YjP())}),method:rL.getAccounts});function rW({method:e,resultSchema:t}){return P.Ikc({...rC.entries,id:rF,result:t,"~sats-connect-method":P.euz(e)})}let rZ=rW({resultSchema:P.YOg(P.Ikc({...rg.entries,...P.Ikc({walletType:rf}).entries})),method:rL.getAccounts}),rK=rH({paramsSchema:P.Ikc({purposes:P.YOg(P.k5n(rp)),message:P.lqM(P.YjP())}),method:rL.getAddresses}),rG=P.Ikc({bitcoin:P.Ikc({name:P.YjP()}),stacks:P.Ikc({name:P.YjP()}),spark:P.Ikc({name:P.YjP()})}),rQ=rW({resultSchema:P.Ikc({addresses:P.YOg(rg),network:rG}),method:rL.getAddresses}),r$=rH({paramsSchema:P.Ikc({purposes:P.YOg(P.k5n(rp)),message:P.lqM(P.YjP())}),method:rL.bitcoin_getAddressesV2}),rJ=rH({paramsSchema:P.Oxt("chain",[P.Ikc({chain:P.euz("bitcoin"),type:P.k5n(ry),name:P.YjP(),rpcUrl:P.YjP(),rpcFallbackUrl:P.lqM(P.YjP()),indexerUrl:P.lqM(P.YjP()),blockExplorerUrl:P.lqM(P.YjP()),switch:P.lqM(P.zMY())}),P.Ikc({chain:P.euz("stacks"),name:P.YjP(),type:P.k5n(rw),rpcUrl:P.YjP(),blockExplorerUrl:P.lqM(P.YjP()),switch:P.lqM(P.zMY())}),P.Ikc({chain:P.euz("starknet"),name:P.YjP(),type:P.k5n(rb),rpcUrl:P.YjP(),blockExplorerUrl:P.lqM(P.YjP()),switch:P.lqM(P.zMY())})]),method:rU.wallet_addNetwork}),rX=rW({resultSchema:P.Ikc({id:P.YjP()}),method:rU.wallet_addNetwork}),r0=P.Ikc({read:P.lqM(P.zMY())}),r1=P.Ikc({readNetwork:P.lqM(P.zMY())}),r2=P.Ikc({type:P.euz("account"),resourceId:P.YjP(),clientId:P.YjP(),actions:r0}),r5=P.Ikc({type:P.euz("wallet"),resourceId:P.YjP(),clientId:P.YjP(),actions:r1});P.Oxt("type",[r2,r5]);let r3=P.Oxt("type",[r2,r5]),r4=P.Oxt("type",[P.Ikc({...P.cJW(r2,["clientId"]).entries}),P.Ikc({...P.cJW(r5,["clientId"]).entries})]),r6=rH({paramsSchema:P.Ikc({network:rc,switch:P.lqM(P.zMY(),!1)}),method:rU.wallet_addNetworkV2}),r8=rW({resultSchema:rs,method:rU.wallet_addNetworkV2}),r9=rH({paramsSchema:P.Ikc({name:P.k5n(ry)}),method:rU.wallet_changeNetwork}),r7=rW({resultSchema:P.cl6(P.chJ()),method:rU.wallet_changeNetwork}),ie=rH({paramsSchema:P.cl6(P.Ikc({permissions:P.lqM(P.YOg(r4)),addresses:P.lqM(P.YOg(P.k5n(rp))),message:P.lqM(P.FsL(P.YjP(),P.Ru6(80,"The message must not exceed 80 characters."))),network:P.lqM(P.KIO(["Mainnet","Testnet","Signet"]))})),method:rU.wallet_connect}),it=rH({paramsSchema:P.cl6(P.chJ()),method:rU.wallet_getNetwork}),ir=P.Ikc({bitcoin:P.Ikc({name:P.k5n(ry)}),stacks:P.Ikc({name:P.k5n(rw)}),spark:P.Ikc({name:P.k5n(rv)})}),ii=rW({resultSchema:ir,method:rU.wallet_getNetwork}),is=rW({resultSchema:P.Ikc({id:P.YjP(),addresses:P.YOg(rg),walletType:rf,network:ir}),method:rU.wallet_connect}),io=rH({paramsSchema:P.cl6(P.Ikc({permissions:r4,addressPurposes:P.lqM(P.YOg(P.k5n(rp))),message:P.lqM(P.FsL(P.YjP(),P.Ru6(80,"The message must not exceed 80 characters."))),networkId:P.lqM(P.YjP())}
1)),method:rU.wallet_connectV2}),ia=rH({paramsSchema:P.cl6(P.chJ()),method:rU.wallet_getNetworks}),il=rW({resultSchema:rd,method:rU.wallet_getNetworks}),iu=rW({resultSchema:P.Ikc({accountId:P.YjP(),addresses:P.YOg(rg),walletType:rf,networks:rd}),method:rU.wallet_connectV2}),ih=rH({paramsSchema:P.cl6(P.chJ()),method:rU.wallet_disconnect}),ic=rW({resultSchema:P.cl6(P.chJ()),method:rU.wallet_disconnect}),id=rH({paramsSchema:P.cl6(P.chJ()),method:rU.wallet_getAccount}),ip=rW({resultSchema:P.Ikc({id:P.YjP(),addresses:P.YOg(rg),walletType:rf,network:ir}),method:rU.wallet_getAccount}),im=rH({paramsSchema:P.cl6(P.chJ()),method:rU.wallet_getAccountV2}),ig=rW({resultSchema:P.Ikc({id:P.YjP(),addresses:P.YOg(rg),walletType:rf,networks:rd}),method:rU.wallet_getAccountV2}),iy=rH({paramsSchema:P.cl6(P.chJ()),method:rU.wallet_getCurrentPermissions}),iw=rW({resultSchema:P.YOg(r3),method:rU.wallet_getCurrentPermissions}),ib=rH({paramsSchema:P.cl6(P.chJ()),method:rU.wallet_getWalletType}),iv=rW({resultSchema:rf,method:rU.wallet_getWalletType}),ix=rH({paramsSchema:P.Ikc({path:P.lqM(P.YjP())}),method:rU.wallet_open}),iS=rW({resultSchema:P.cl6(P.chJ()),method:rU.wallet_open}),iM=rH({paramsSchema:P.Ikc({fromAsset:P.YjP(),toAsset:P.YjP()}),method:rU.wallet_openBridge}),iA=rW({resultSchema:P.cl6(P.chJ()),method:rU.wallet_openBridge}),iP=rH({paramsSchema:P.Ikc({asset:P.YjP()}),method:rU.wallet_openBuy}),ij=rW({resultSchema:P.cl6(P.chJ()),method:rU.wallet_openBuy}),iE=rH({paramsSchema:P.Ikc({address:P.YjP()}),method:rU.wallet_openReceive}),iT=rW({resultSchema:rg,method:rU.wallet_openReceive}),iI=rH({paramsSchema:P.cl6(P.chJ()),method:rU.wallet_renouncePermissions}),ik=rW({resultSchema:P.cl6(P.chJ()),method:rU.wallet_renouncePermissions}),iO=rH({paramsSchema:P.cl6(P.YOg(r4)),method:rU.wallet_requestPermissions}),iD=rW({resultSchema:P.euz(!0),method:rU.wallet_requestPermissions}),iN=rH({paramsSchema:P.Oxt("selector",[P.Ikc({selector:P.euz("id"),id:P.YjP()})]),method:rU.wallet_switchNetwork}),iC=rW({resultSchema:P.cl6(P.chJ()),method:rU.wallet_switchNetwork}),i_=P.Oxt("method",[rJ,r6,r9,ie,io,ih,id,im,iy,it,ia,ib,ix,iM,iP,iE,iI,iO,iN]),iR=P.Oxt("~sats-connect-method",[rX,r8,r7,is,iu,ic,ip,ig,iw,il,ii,iv,iS,iA,ij,iT,ik,iD,iC]),iL=rW({resultSchema:P.Ikc({addresses:P.YOg(rg),networks:rd}),method:rL.bitcoin_getAddressesV2}),iY=rH({paramsSchema:P.cl6(P.chJ()),method:rL.getBalance}),iB=P.Ikc({confirmed:P.YjP(),unconfirmed:P.YjP(),total:P.YjP()}),iz=rW({resultSchema:iB,method:rL.getBalance}),iV=rH({paramsSchema:P.cl6(P.chJ()),method:rL.bitcoin_getBalanceV2}),iU=rW({resultSchema:iB,method:rL.bitcoin_getBalanceV2}),iF=rH({paramsSchema:P.cl6(P.chJ()),method:rL.getInfo}),iH=rW({resultSchema:P.Ikc({version:P.YjP(),platform:P.lqM(P.k5n(rI)),methods:P.lqM(P.YOg(P.YjP())),supports:P.YOg(P.YjP())}),method:rL.getInfo}),iq=P.Ikc({recipients:P.YOg(P.Ikc({address:P.YjP(),amount:P.aig()}))}),iW=P.Ikc({txid:P.YjP()}),iZ=rH({paramsSchema:iq,method:rL.sendTransfer}),iK=rW({resultSchema:iW,method:rL.sendTransfer}),iG=rH({paramsSchema:iq,method:rL.bitcoin_sendTransferV2}),iQ=rW({resultSchema:iW,method:rL.bitcoin_sendTransferV2}),i$=P.Ikc({address:P.YjP(),message:P.YjP(),protocol:P.lqM(P.k5n(rT))}),iJ=P.Ikc({signature:P.YjP(),messageHash:P.YjP(),address:P.YjP(),protocol:P.k5n(rT)}),iX=rH({paramsSchema:i$,method:rL.signMessage}),i0=rW({resultSchema:iJ,method:rL.signMessage}),i1=rH({paramsSchema:i$,method:rL.bitcoin_signMessageV2}),i2=rW({resultSchema:iJ,method:rL.bitcoin_signMessageV2}),i5=P.YOg(i$),i3=P.YOg(P.Ikc({...iJ.entries,message:P.YjP()})),i4=rH({paramsSchema:i5,method:rL.signMultipleMessages}),i6=rW({resultSchema:i3,method:rL.signMultipleMessages}),i8=rH({paramsSchema:i5,method:rL.bitcoin_signMultipleMessagesV2}),i9=rW({resultSchema:i3,method:rL.bitcoin_signMultipleMessagesV2}),i7=P.Ikc({psbt:P.YjP(),signInputs:P.lqM(P.g1P(P.YjP(),P.YOg(P.aig()))),broadcast:P.lqM(P.zMY(),!1)}),ne=P.Ikc({psbt:P.YjP(),txid:P.lqM(P.YjP())}),nt=rH({paramsSchema:i7,method:rL.signPsbt}),nr=rW({resultSchema:ne,method:rL.signPsbt}),ni=rH({paramsSchema:i7,method:rL.bitcoin_signPsbtV2}),nn=rW({resultSchema:ne,method:rL.bitcoin_signPsbtV2}),ns=P.Oxt("method",[rq,rK,r$,iY,iV,iF,iZ,iG,iX,i1,i4,i8,nt,ni]),no=P.Oxt("~sats-connect-method",[rZ,rQ,iL,iz,iU,iH,iK,iQ,i0,i2,i6,i9,nr,nn]),na=rH({paramsSchema:P.Ikc({offset:P.aig(),limit:P.aig()}),method:rV.ord_getInscriptions}),nl=rW({resultSchema:P.Ikc({total:P.aig(),limit:P.aig(),offset:P.aig(),inscriptions:P.YOg(P.Ikc({inscriptionId:P.YjP(),inscriptionNumber:P.YjP(),address:P.YjP(),collectionName:P.lqM(P.YjP()),postage:P.YjP(),contentLength:P.YjP(),contentType:P.YjP(),timestamp:P.aig(),offset:P.aig(),genesisTransaction:P.YjP(),output:P.YjP()}))}),method:rV.ord_getInscriptions}),nu=rH({paramsSchema:P.Ikc({transfers:P.YOg(P.Ikc({address:P.YjP(),inscriptionId:P.YjP()}))}),method:rV.ord_sendInscriptions}),nh=rW({resultSchema:P.Ikc({txid:P.YjP()}),method:rV.ord_sendInscriptions}),nc=P.Oxt("method",[na,nu]),nd=P.Oxt("~sats-connect-method",[nl,nh]),nf=P.Ikc({amount:P.lqM(P.YjP()),cap:P.lqM(P.YjP()),heightStart:P.lqM(P.YjP()),heightEnd:P.lqM(P.YjP()),offsetStart:P.lqM(P.YjP()),offsetEnd:P.lqM(P.YjP())}),np=P.Ikc({contentType:P.YjP(),contentBase64:P.YjP()}),nm=rH({paramsSchema:P.Ikc({runeName:P.YjP(),divisibility:P.lqM(P.aig()),symbol:P.lqM(P.YjP()),premine:P.lqM(P.YjP()),isMintable:P.zMY(),terms:P.lqM(nf),inscriptionDetail
1s:P.lqM(np),delegateInscriptionId:P.lqM(P.YjP()),destinationAddress:P.YjP(),feeRate:P.aig(),appServiceFee:P.lqM(P.aig()),appServiceFeeAddress:P.lqM(P.YjP()),network:P.lqM(P.k5n(ry))}),method:rz.runes_estimateEtch}),ng=rW({resultSchema:P.Ikc({totalSize:P.aig(),totalCost:P.aig(),costBreakdown:P.Ikc({postage:P.aig(),networkFee:P.aig(),serviceFee:P.aig(),appServiceFee:P.aig()})}),method:rz.runes_estimateEtch}),ny=rH({paramsSchema:P.Ikc({runeName:P.YjP(),repeats:P.aig(),destinationAddress:P.YjP(),feeRate:P.aig(),appServiceFee:P.lqM(P.aig()),appServiceFeeAddress:P.lqM(P.YjP()),network:P.lqM(P.k5n(ry))}),method:rz.runes_estimateMint}),nw=rW({resultSchema:P.Ikc({totalSize:P.aig(),totalCost:P.aig(),costBreakdown:P.Ikc({postage:P.aig(),networkFee:P.aig(),serviceFee:P.aig(),appServiceFee:P.aig()})}),method:rz.runes_estimateMint}),nb=rH({paramsSchema:P.Ikc({orderId:P.YjP(),newFeeRate:P.aig(),network:P.lqM(P.k5n(ry))}),method:rz.runes_estimateRbfOrder}),nv=rW({resultSchema:P.Ikc({rbfCost:P.aig(),fundingAddress:P.YjP()}),method:rz.runes_estimateRbfOrder}),nx=P.Ikc({amount:P.lqM(P.YjP()),cap:P.lqM(P.YjP()),heightStart:P.lqM(P.YjP()),heightEnd:P.lqM(P.YjP()),offsetStart:P.lqM(P.YjP()),offsetEnd:P.lqM(P.YjP())}),nS=P.Ikc({contentType:P.YjP(),contentBase64:P.YjP()}),nM=rH({paramsSchema:P.Ikc({runeName:P.YjP(),divisibility:P.lqM(P.aig()),symbol:P.lqM(P.YjP()),premine:P.lqM(P.YjP()),isMintable:P.zMY(),terms:P.lqM(nx),inscriptionDetails:P.lqM(nS),delegateInscriptionId:P.lqM(P.YjP()),destinationAddress:P.YjP(),refundAddress:P.YjP(),feeRate:P.aig(),appServiceFee:P.lqM(P.aig()),appServiceFeeAddress:P.lqM(P.YjP()),network:P.lqM(P.k5n(ry))}),method:rz.runes_etch}),nA=rW({resultSchema:P.Ikc({orderId:P.YjP(),fundTransactionId:P.YjP(),fundingAddress:P.YjP()}),method:rz.runes_etch}),nP=rH({paramsSchema:P.cl6(P.chJ()),method:rz.runes_getBalance}),nj=rW({resultSchema:P.Ikc({balances:P.YOg(P.Ikc({runeName:P.YjP(),amount:P.YjP(),divisibility:P.aig(),symbol:P.YjP(),inscriptionId:P.cl6(P.YjP()),spendableBalance:P.YjP()}))}),method:rz.runes_getBalance}),nE=rH({paramsSchema:P.Ikc({id:P.YjP(),network:P.lqM(P.k5n(ry))}),method:rz.runes_getOrder}),nT=rW({resultSchema:P.Ikc({id:P.YjP(),orderType:P.KCZ([P.euz("rune_mint"),P.euz("rune_etch")]),state:P.KCZ([P.euz("new"),P.euz("pending"),P.euz("executing"),P.euz("complete"),P.euz("failed"),P.euz("refunded"),P.euz("stale")]),fundingAddress:P.YjP(),reason:P.lqM(P.YjP()),createdAt:P.YjP()}),method:rz.runes_getOrder}),nI=rH({paramsSchema:P.Ikc({appServiceFee:P.lqM(P.aig()),appServiceFeeAddress:P.lqM(P.YjP()),destinationAddress:P.YjP(),feeRate:P.aig(),refundAddress:P.YjP(),repeats:P.aig(),runeName:P.YjP(),network:P.lqM(P.k5n(ry))}),method:rz.runes_mint}),nk=rW({resultSchema:P.Ikc({orderId:P.YjP(),fundTransactionId:P.YjP(),fundingAddress:P.YjP()}),method:rz.runes_mint}),nO=rH({paramsSchema:P.Ikc({orderId:P.YjP(),newFeeRate:P.aig(),network:P.lqM(P.k5n(ry))}),method:rz.runes_rbfOrder}),nD=rW({resultSchema:P.Ikc({orderId:P.YjP(),fundRBFTransactionId:P.YjP(),fundingAddress:P.YjP()}),method:rz.runes_rbfOrder}),nN=rH({paramsSchema:P.Ikc({recipients:P.YOg(P.Ikc({runeName:P.YjP(),amount:P.YjP(),address:P.YjP()})),network:P.lqM(P.k5n(ry))}),method:rz.runes_transfer}),nC=rW({resultSchema:P.Ikc({txid:P.YjP()}),method:rz.runes_transfer}),n_=P.Oxt("method",[nm,ny,nb,nM,nP,nE,nI,nO,nN]),nR=P.Oxt("~sats-connect-method",[ng,nw,nv,nA,nj,nT,nk,nD,nC]),nL=rH({paramsSchema:P.Ikc({sparkTransferId:P.YjP(),lpIdentityPublicKey:P.YjP()}),method:rB.spark_flashnet_clawbackFunds}),nY=rW({resultSchema:P.Ikc({requestId:P.YjP(),accepted:P.zMY(),internalRequestId:P.lqM(P.YjP()),sparkStatusTrackingId:P.lqM(P.YjP()),error:P.lqM(P.YjP())}),method:rB.spark_flashnet_clawbackFunds}),nB=rH({paramsSchema:P.Ikc({hops:P.YOg(P.Ikc({poolId:P.YjP(),assetInAddress:P.YjP(),assetOutAddress:P.YjP(),hopIntegratorFeeRateBps:P.lqM(P.aig())})),initialAssetAddress:P.YjP(),inputAmount:P.YjP(),maxRouteSlippageBps:P.YjP(),minAmountOut:P.lqM(P.YjP()),integratorFeeRateBps:P.lqM(P.aig()),integratorPublicKey:P.lqM(P.YjP())}),method:rB.spark_flashnet_executeRouteSwap}),nz=rW({resultSchema:P.Ikc({requestId:P.YjP(),accepted:P.zMY(),outputAmount:P.YjP(),executionPrice:P.YjP(),finalOutboundTransferId:P.YjP(),error:P.lqM(P.YjP())}),method:rB.spark_flashnet_executeRouteSwap}),nV=rH({paramsSchema:P.Ikc({poolId:P.YjP(),assetInAddress:P.YjP(),assetOutAddress:P.YjP(),amountIn:P.YjP(),maxSlippageBps:P.aig(),minAmountOut:P.lqM(P.YjP()),integratorFeeRateBps:P.lqM(P.aig()),integratorPublicKey:P.lqM(P.YjP())}),method:rB.spark_flashnet_executeSwap}),nU=rW({resultSchema:P.Ikc({requestId:P.YjP(),accepted:P.zMY(),amountOut:P.lqM(P.YjP()),feeAmount:P.lqM(P.YjP()),executionPrice:P.lqM(P.YjP()),assetOutAddress:P.lqM(P.YjP()),assetInAddress:P.lqM(P.YjP()),outboundTransferId:P.lqM(P.YjP()),error:P.lqM(P.YjP())}),method:rB.spark_flashnet_executeSwap}),nF=rH({paramsSchema:P.cl6(P.chJ()),method:rB.spark_flashnet_getClawbackEligibleTransfers}),nH=rW({resultSchema:P.Ikc({eligibleTransfers:P.YOg(P.Ikc({txId:P.YjP(),createdAt:P.YjP(),lpIdentityPublicKey:P.YjP()}))}),method:rB.spark_flashnet_getClawbackEligibleTransfers}),nq=rH({paramsSchema:P.chJ(),method:rB.spark_flashnet_getJwt}),nW=rW({resultSchema:P.Ikc({jwt:P.YjP()}),method:rB.spark_flashnet_getJwt}),nZ=P.Ikc({type:P.euz("addLiquidity"),data:P.Ikc({userPublicKey:P.YjP(),poolId:P.YjP(),assetAAmount:P.YjP(),assetBAmount:P.YjP(),assetAMinAmountIn:P.YjP(),assetBMinAmountIn:P.YjP(),assetATransferId:P.YjP(),assetBTransferId:P.YjP(),nonce:P.YjP()})}),nK=P.Ikc({type:P.euz("clawback"),data:P.Ikc({senderPublicKey:P.YjP(),sparkTransferId:P.YjP(),lpIdentityPublicKey:P.YjP(),nonce:P.YjP()})}),nG=P.Ikc({type:P.euz("confirmInitialDeposit"),data:P.Ikc({poolId:P.YjP(),assetASparkTransferId:P.YjP(),poolOwnerPublicKey:P.YjP(),nonce:P.YjP()})}),nQ=P.Ikc({type:P.euz("createConstantProductPool"),data:P.Ikc({poolOwnerPublicKey:P.YjP(),assetAAddress:P.YjP(),assetBAddress:P.YjP(),lpFeeRateBps:P.KCZ([P.aig(),P.YjP()]),totalHostFeeRateBps:P.KCZ([P.aig(),P.YjP()]),nonce:P.YjP()})}),n$=P.Ikc({type:P.euz("createSingleSidedPool"),data:P.Ikc({assetAAddress:P.YjP(),assetBAddress:P.YjP(),assetAInitialReserve:P.YjP(),virtualReserveA:P.KCZ([P.aig(),P.YjP()]),virtualReserveB:P.KCZ([P.aig(),P.YjP()]),threshold:P.KCZ([P.aig(),P.YjP()]),lpFeeRateBps:P.KCZ([P.aig(),P.YjP()]),totalHostFeeRateBps:P.KCZ([P.aig(),P.YjP()]),poolOwnerPublicKey:P.YjP(),nonce:P.YjP()})}),nJ=P.Ikc({type:P.euz("removeLiquidity"),data:P.Ikc({userPublicKey:P.YjP(),poolId:P.YjP(),lpTokensToRemove:P.YjP(),nonce:P.YjP()})}),nX=P.Ikc({type:P.euz("executeRouteSwap"),data:P.Ikc({userPublicKey:P.YjP(),initialSparkTransferId:P.YjP(),hops:P.YOg(P.Ikc({poolId:P.YjP(),inputAssetAddress:P.YjP(),outputAssetAddress:P.YjP(),hopIntegratorFeeRateBps:P.lqM(P.KCZ([P.aig(),P.YjP()]))})),inputAmount:P.YjP(),maxRouteSlippageBps:P.KCZ([P.aig(),P.YjP()]),minAmountOut:P.YjP(),defaultIntegratorFeeRateBps:P.lqM(P.KCZ([P.aig(),P.YjP()])),nonce:P.YjP()})}),n0=P.Ikc({type:P.euz("executeSwap"),data:P.Ikc({userPublicKey:P.YjP(),poolId:P.YjP(),transferId:P.YjP(),assetInAddress:P.YjP(),assetOutAddress:P.YjP(),amountIn:P.YjP(),maxSlippageBps:P.KCZ([P.aig(),P.YjP()]),minAmountOut:P.YjP(),totalIntegratorFeeRateBps:P.lqM(P.KCZ([P.aig(),P.YjP()])),nonce:P.YjP()})}),n1=rH({paramsSchema:P.KCZ([n0,nX,nZ,nK,nG,nQ,n$,nJ]),method:rB.spark_flashnet_signIntent}),n2=rW({resultSchema:P.Ikc({signature:P.YjP()}),method:rB.spark_flashnet_signIntent}),n5=rH({paramsSchema:P.Ikc({message:P.YjP()}),method:rB.spark_flashnet_signStructuredMessage}),n3=rW({resultSchema:P.Ikc({message:P.YjP(),signature:P.YjP()}),method:rB.spark_flashnet_signStructuredMessage}),n4=rH({paramsSchema:P.cl6(P.Ikc({message:P.lqM(P.YjP())}
1)),method:rB.spark_getAddresses}),n6=rW({resultSchema:P.Ikc({addresses:P.YOg(rg),network:ir}),method:rB.spark_getAddresses}),n8=rH({paramsSchema:P.cl6(P.Ikc({message:P.lqM(P.YjP())})),method:rB.spark_getAddressesV2}),n9=rW({resultSchema:P.Ikc({addresses:P.YOg(rg),network:re}),method:rB.spark_getAddressesV2}),n7=rH({paramsSchema:P.cl6(P.chJ()),method:rB.spark_getBalance}),se=rW({resultSchema:P.Ikc({balance:P.YjP(),tokenBalances:P.YOg(P.Ikc({balance:P.YjP(),tokenMetadata:P.Ikc({tokenIdentifier:P.YjP(),tokenName:P.YjP(),tokenTicker:P.YjP(),decimals:P.aig(),maxSupply:P.YjP()})}))}),method:rB.spark_getBalance}),st=rH({paramsSchema:P.Ikc({message:P.YjP()}),method:rB.spark_signMessage}),sr=rW({resultSchema:P.Ikc({signature:P.YjP()}),method:rB.spark_signMessage}),si=rH({paramsSchema:P.Ikc({amountSats:P.KCZ([P.aig(),P.YjP()]),receiverSparkAddress:P.YjP()}),method:rB.spark_transfer}),sn=rW({resultSchema:P.Ikc({id:P.YjP()}),method:rB.spark_transfer}),ss=rH({paramsSchema:P.Ikc({tokenAmount:P.KCZ([P.aig(),P.YjP()]),tokenIdentifier:P.YjP(),receiverSparkAddress:P.YjP()}),method:rB.spark_transferToken}),so=rW({resultSchema:P.Ikc({id:P.YjP()}),method:rB.spark_transferToken}),sa=P.Oxt("method",[n4,n8,n7,si,ss,st,nq,n1,n5,nV,nB,nL,nF]),sl=P.Oxt("~sats-connect-method",[n6,n9,se,sn,so,sr,nW,n2,n3,nU,nz,nY,nH]),su=rH({paramsSchema:P.Ikc({contract:P.YjP(),functionName:P.YjP(),arguments:P.lqM(P.YOg(P.YjP())),functionArgs:P.lqM(P.YOg(P.YjP())),postConditions:P.lqM(P.YOg(P.YjP())),postConditionMode:P.lqM(P.KCZ([P.euz("allow"),P.euz("deny")]))}),method:rY.stx_callContract}),sh=rW({resultSchema:P.Ikc({txid:P.YjP(),transaction:P.YjP()}),method:rY.stx_callContract}),sc=rH({paramsSchema:P.Ikc({name:P.YjP(),clarityCode:P.YjP(),clarityVersion:P.lqM(P.aig()),postConditions:P.lqM(P.YOg(P.YjP())),postConditionMode:P.lqM(P.KCZ([P.euz("allow"),P.euz("deny")]))}),method:rY.stx_deployContract}),sd=rW({resultSchema:P.Ikc({txid:P.YjP(),transaction:P.YjP()}),method:rY.stx_deployContract}),sf=rH({paramsSchema:P.cl6(P.chJ()),method:rY.stx_getAccounts}),sp=rW({resultSchema:P.Ikc({addresses:P.YOg(P.Ikc({address:P.YjP(),publicKey:P.YjP(),gaiaHubUrl:P.YjP(),gaiaAppKey:P.YjP()})),network:ir}),method:rY.stx_getAccounts}),sm=rH({paramsSchema:P.cl6(P.Ikc({message:P.lqM(P.YjP())}
1)),method:rY.stx_getAddresses}),sg=rW({resultSchema:P.Ikc({addresses:P.YOg(rg),network:ir}),method:rY.stx_getAddresses}),sy=rH({paramsSchema:P.Ikc({message:P.YjP()}),method:rY.stx_signMessage}),sw=rW({resultSchema:P.Ikc({signature:P.YjP(),publicKey:P.YjP()}),method:rY.stx_signMessage}),sb=rH({paramsSchema:P.Ikc({domain:P.YjP(),message:P.YjP(),publicKey:P.lqM(P.YjP())}),method:rY.stx_signStructuredMessage}),sv=rW({resultSchema:P.Ikc({signature:P.YjP(),publicKey:P.YjP()}),method:rY.stx_signStructuredMessage}),sx=rH({paramsSchema:P.Ikc({transaction:P.YjP(),pubkey:P.lqM(P.YjP()),broadcast:P.lqM(P.zMY())}),method:rY.stx_signTransaction}),sS=rW({resultSchema:P.Ikc({transaction:P.YjP()}),method:rY.stx_signTransaction}),sM=rH({paramsSchema:P.Ikc({transactions:P.FsL(P.YOg(P.FsL(P.YjP(),P.z6Y(()=>!0,"Invalid hex-encoded Stacks transaction."))),P.BpQ(1)),broadcast:P.lqM(P.zMY(),!0)}),method:rY.stx_signTransactions}),sA=rW({resultSchema:P.Ikc({transactions:P.YOg(P.YjP())}),method:rY.stx_signTransactions}),sP=rH({paramsSchema:P.Ikc({amount:P.KCZ([P.aig(),P.YjP()]),recipient:P.YjP(),memo:P.lqM(P.YjP()),version:P.lqM(P.YjP()),postConditionMode:P.lqM(P.aig()),postConditions:P.lqM(P.YOg(P.YjP())),pubkey:P.lqM(P.YjP())}),method:rY.stx_transferStx}),sj=rW({resultSchema:P.Ikc({txid:P.YjP(),transaction:P.YjP()}),method:rY.stx_transferStx}),sE=P.Oxt("method",[su,sc,sf,sm,sy,sb,sx,sM,sP]),sT=P.Oxt("~sats-connect-method",[sh,sd,sp,sg,sw,sv,sS,sA,sj]);P.Oxt("method",[ns,sE,sa,n_,nc,i_]),P.Oxt("~sats-connect-method",[no,sT,sl,nR,nd,iR]);let sI={},sk=async(e,t,r)=>{let i=await e.request(t,r);return P.is(rR,i)?{status:"error",error:i.error}:P.is(rC,i)?{status:"success",result:i.result}:{status:"error",error:{code:rx.INTERNAL_ERROR,message:"Received unknown response from provider.",data:i}}},sO=async(e,t,r)=>{let i=window.XverseProviders?.BitcoinProvider||window.BitcoinProvider;if(r&&(i=await rj(r)),!i)throw Error("no wallet provider was found");if(!e)throw Error("A wallet method is required");if(!sI.providerInfo){let e=await sk(i,"getInfo",null);"success"===e.status&&(sI.providerInfo=e.result)}if(sI.providerInfo){if("getInfo"===e)return{status:"success",result:sI.providerInfo};let r=((e,t,r)=>{try{let[i,n]=r.version.split(".").map(e=>parseInt(e,10)),s=r.platform;if(!s||s===rI.Web&&i<=1&&n<=4||s===rI.Mobile&&i<=1&&n<=54){let r=((e,t)=>{let r=e=>e?.filter(e=>e!==rp.Spark&&e!==rp.Starknet);if("wallet_connect"===e){if(!t)return{method:e,params:t};let{addresses:i,...n}=t;return{method:e,params:{...n,addresses:r(i)}}}if("getAccounts"===e||"getAddresses"===e){let{purposes:i,...n}=t;return{method:e,params:{...n,purposes:r(i)}}}return{method:e,params:t}})(e,t);e=r.method,t=r.params}}catch{}return{method:e,params:t}})(e,t,sI.providerInfo);if(r.overrideResponse)return r.overrideResponse;e=r.method,t=r.params}return sk(i,e,t)},sD={id:"FordefiProviders.UtxoProvider",name:"Fordefi",webUrl:"https://www.fordefi.com/",chromeWebStoreUrl:"https://chromewebstore.google.com/detail/fordefi/hcmehenccjdmfbojapcbcofkgdpbnlle",icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzEzNDk0XzY2MjU0KSI+CjxwYXRoIGQ9Ik0xMC44NzY5IDE1LjYzNzhIMS41VjE4LjM5OUMxLjUgMTkuODAxMyAyLjYzNDQ3IDIwLjkzOCA0LjAzMzkyIDIwLjkzOEg4LjI0OTkyTDEwLjg3NjkgMTUuNjM3OFoiIGZpbGw9IiM3OTk0RkYiLz4KPHBhdGggZD0iTTEuNSA5Ljc3NTUxSDE5LjA1MTZMMTcuMDEzOSAxMy44NzExSDEuNVY5Ljc3NTUxWiIgZmlsbD0iIzQ4NkRGRiIvPgo8cGF0aCBkPSJNNy42NTk5NiAzSDEuNTI0NDFWOC4wMDcwNEgyMi40NjEyVjNIMTYuMzI1NlY2LjczOTQ0SDE1LjA2MDZWM0g4LjkyNTAyVjYuNzM5NDRINy42NTk5NlYzWiIgZmlsbD0iIzVDRDFGQSIvPgo8L2c+CjxkZWZzPgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzEzNDk0XzY2MjU0Ij4KPHJlY3Qgd2lkdGg9IjIxIiBoZWlnaHQ9IjE4IiBmaWxsPSJ3aGl0ZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMS41IDMpIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg=="},sN={id:"XverseProviders.BitcoinProvider",name:"Xverse",webUrl:"https://www.xverse.app/",googlePlayStoreUrl:"https://play.google.com/store/apps/details?id=com.secretkeylabs.xverse",iOSAppStoreUrl:"https://apps.apple.com/app/xverse-bitcoin-web3-wallet/id1552272513",chromeWebStoreUrl:"https://chromewebstore.google.com/detail/xverse-wallet/idnnbdplmphpflfnlkomgpfbpcgelopg",icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyIiBoZWlnaHQ9IjEwMiIgdmlld0JveD0iMCAwIDEwMiAxMDIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGlkPSJJY29uX0FydCAoRWRpdCBNZSkiPgo8cmVjdCB3aWR0aD0iMTAyIiBoZWlnaHQ9IjEwMiIgZmlsbD0iIzE4MTgxOCIvPgo8ZyBpZD0iTG9nby9FbWJsZW0iIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8yMF8xMjIzKSI+CjxwYXRoIGlkPSJWZWN0b3IiIGQ9Ik03NC42NTQyIDczLjg4ODNWNjUuMjMxMkM3NC42NTQyIDY0Ljg4OCA3NC41MTc3IDY0LjU2MDYgNzQuMjc0NSA2NC4zMTc0TDM3LjQzOTcgMjcuNDgyNUMzNy4xOTY1IDI3LjIzOTIgMzYuODY5MSAyNy4xMDI4IDM2LjUyNTggMjcuMTAyOEgyNy44NjlDMjcuNDQxNiAyNy4xMDI4IDI3LjA5MzggMjcuNDUwNiAyNy4wOTM4ID
1I3Ljg3OFYzNS45MjExQzI3LjA5MzggMzYuMjY0NCAyNy4yMzAyIDM2LjU5MTcgMjcuNDczNCAzNi44MzVMNDAuNjk1MiA1MC4wNTY3QzQwLjk5NzUgNTAuMzU5MSA0MC45OTc1IDUwLjg1MDEgNDAuNjk1MiA1MS4xNTI0TDI3LjMyMTEgNjQuNTI2NUMyNy4xNzU2IDY0LjY3MiAyNy4wOTM4IDY0Ljg2OTggMjcuMDkzOCA2NS4wNzQ0VjczLjg4ODNDMjcuMDkzOCA3NC4zMTUzIDI3LjQ0MTYgNzQuNjYzNSAyNy44NjkgNzQuNjYzNUg0Mi4zMzQyQzQyLjc2MTYgNzQuNjYzNSA0My4xMDk0IDc0LjMxNTMgNDMuMTA5NCA3My44ODgzVjY4LjY5NThDNDMuMTA5NCA2OC40OTEyIDQzLjE5MTIgNjguMjkzNSA0My4zMzY4IDY4LjE0NzlMNTAuNTExNCA2MC45NzMzQzUwLjgxMzggNjAuNjcwOSA1MS4zMDQ4IDYwLjY3MDkgNTEuNjA3MiA2MC45NzMzTDY0LjkxOTggNzQuMjg2MUM2NS4xNjMxIDc0LjUyOTMgNjUuNDkwNCA3NC42NjU4IDY1LjgzMzcgNzQuNjY1OEg3My44NzY3Qzc0LjMwNDIgNzQuNjY1OCA3NC42NTE5IDc0LjMxNzYgNzQuNjUxOSA3My44OTA2TDc0LjY1NDIgNzMuODg4M1oiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGlkPSJWZWN0b3JfMiIgZD0iTTU1LjM1OCAzOC41NjcySDYyLjYwMzFDNjMuMDMyOCAzOC41NjcyIDYzLjM4MjkgMzguOTE3MyA2My4zODI5IDM5LjM0NjlWNDYuNTkyMUM2My4zODI5IDQ3LjI4NzcgNjQuMjI0IDQ3LjYzNTUgNjQuNzE1MSA0Ny4xNDIyTDc0LjY1NDEgMzcuMTg3M0M3NC43OTk0IDM3LjA0MTggNzQuODgxNiAzNi44NDQgNzQuODgxNiAzNi42MzcxVjI3LjkxODlDNzQuODgxNiAyNy40ODkyIDc0LjUzMzQgMjcuMTM5MSA3NC4xMDE3IDI3LjEzOTFMNjUuMjUzOCAyNy4xMjc3QzY1LjA0NyAyNy4xMjc3IDY0Ljg0OTIgMjcuMjA5NiA2NC43MDE0IDI3LjM1NTFMNTQuODA1NiAzNy4yMzVDNTQuMzE0NSAzNy43MjYgNTQuNjYyMyAzOC41NjcyIDU1LjM1NTcgMzguNTY3Mkg1NS4zNThaIiBmaWxsPSIjRUU3QTMwIi8+CjwvZz4KPC9nPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF8yMF8xMjIzIj4KPHJlY3Qgd2lkdGg9IjQ3LjgxMjUiIGhlaWdodD0iNDcuODEyNSIgZmlsbD0id2hpdGUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDI3LjA5MzggMjcuMDkzOCkiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K"},sC={id:"unisat",name:"Unisat",webUrl:"https://unisat.io/",icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgwIiBoZWlnaHQ9IjE4MCIgdmlld0JveD0iMCAwIDE4MCAxODAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSIxODAiIGhlaWdodD0iMTgwIiBmaWxsPSJibGFjayIvPgo8ZyBjbGlwLXBhdGg9InVybCgjY2xpcDBfMTAwNTBfNDE3MSkiPgo8cGF0aCBkPSJNMTEzLjY2IDI5LjI4OTdMMTQzLjk3IDU5LjMwOTdDMTQ2LjU1IDYxLjg1OTcgMTQ3LjgyIDY0LjQzOTcgMTQ3Ljc4IDY3LjAzOTdDMTQ3Ljc0IDY5LjYzOTcgMTQ2LjYzIDcyLjAwOTcgMTQ0LjQ2IDc0LjE1OTdDMTQyLjE5IDc2LjQwOTcgMTM5Ljc0IDc3LjU0OTcgMTM3LjEyIDc3LjU5OTdDMTM0LjUgNzcuNjM5NyAxMzEuOSA3Ni4zNzk3IDEyOS4zMiA3My44Mjk3TDk4LjMxOTkgNDMuMTI5N0M5NC43OTk5IDM5LjYzOTcgOTEuMzk5OSAzNy4xNjk3IDg4LjEyOTkgMzUuNzE5N0M4NC44NTk5IDM0LjI2OTcgODEuNDE5OSAzNC4wMzk3IDc3LjgxOTkgMzUuMDM5N0M3NC4yMDk5IDM2LjAyOTcgNzAuMzM5OSAzOC41Nzk3IDY2LjE4OTkgNDIuNjc5N0M2MC40Njk5IDQ4LjM0OTcgNTcuNzM5OSA1My42Njk3IDU4LjAxOTkgNTguNjM5N0M1OC4yOTk5IDYzLjYwOTcgNjEuMTM5OSA2OC43Njk3IDY2LjUyOTkgNzQuMDk5N0w5Ny43Nzk5IDEwNS4wNkMxMDAuMzkgMTA3LjY0IDEwMS42NyAxMTAuMjIgMTAxLjYzIDExMi43OEMxMDEuNTkgMTE1LjM1IDEwMC40NyAxMTcuNzIgOTguMjU5OSAxMTkuOTFDOTYuMDU5OSAxMjIuMDkgOTMuNjI5OSAxMjMuMjMgOTAuOTg5OSAxMjMuMzJDODguMzQ5OSAxMjMuNDEgODUuNzE5OSAxMjIuMTYgODMuMTE5OSAxMTkuNThMNTIuODA5OSA4OS41NTk3QzQ3Ljg3OTkgODQuNjc5NyA0NC4zMTk5IDgwLjA1OTcgNDIuMTI5OSA3NS42OTk3QzM5LjkzOTkgNzEuMzM5NyAzOS4xMTk5IDY2LjQwOTcgMzkuNjg5OSA2MC45MDk3QzQwLjE5OTkgNTYuMTk5NyA0MS43MDk5IDUxLjYzOTcgNDQuMjI5OSA0Ny4yMTk3QzQ2LjczOTkgNDIuNzk5NyA1MC4zMzk5IDM4LjI3OTcgNTUuMDA5OSAzMy42NDk3QzYwLjU2OTkgMjguMTM5NyA2NS44Nzk5IDIzLjkxOTcgNzAuOTM5OSAyMC45Nzk3Qzc1Ljk4OTkgMTguMDM5NyA4MC44Nzk5IDE2LjQwOTcgODUuNTk5OSAxNi4wNjk3QzkwLjMyOTkgMTUuNzI5NyA5NC45ODk5IDE2LjY2OTcgOTkuNTk5OSAxOC44ODk3QzEwNC4yMSAyMS4xMDk3IDEwOC44OSAyNC41Njk3IDExMy42NSAyOS4yODk3SDExMy42NloiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8xMDA1MF80MTcxKSIvPgo8cGF0aCBkPSJNNjYuMTA5OSAxNTAuNDJMMzUuODA5OSAxMjAuNEMzMy4yMjk5IDExNy44NCAzMS45NTk5IDExNS4yNyAzMS45OTk5IDExMi42N0MzMi4wMzk5IDExMC4wNyAzMy4xNDk5IDEwNy43IDM1LjMxOTkgMTA1LjU1QzM3LjU4OTkgMTAzLjMgNDAuMDM5OSAxMDIuMTYgNDIuNjU5OSAxMDIuMTFDNDUuMjc5OSAxMDIuMDcgNDcuODc5OSAxMDMuMzIgNTAuNDU5OSAxMDUuODhMODEuNDQ5OSAxMzYuNThDODQuOTc5OSAxNDAuMDcgODguMzY5OSAxNDIuNTQgOTEuNjM5OSAxNDMuOTlDOTQuOTA5OSAxNDUuNDQgOTguMzQ5OSAxNDUuNjYgMTAxLjk2IDE0NC42N0MxMDUuNTcgMTQzLjY4IDEwOS40NCAxNDEuMTMgMTEzLjU5IDEzNy4wMkMxMTkuMzEgMTMxLjM1IDEyMi4wNCAxMjYuMDMgMTIxLjc2IDEyMS4wNkMxMjEuNDggMTE2LjA5IDExOC42NCAxMTAuOTMgMTEzLjI1IDEwNS41OUw5Ni41OTk5IDg5LjI0MDFDOTMuOTg5OSA4Ni42NjAxIDkyLjcwOTkgODQuMDgwMSA5Mi43NDk5IDgxLjUyMDFDOTIuNzg5OSA3OC45NTAxIDkzLjkwOTkgNzYuNTgwMSA5Ni4xMTk5IDc0LjM5MDFDOTguMzE5OSA3Mi4yMTAxIDEwMC43NSA3MS4wNzAxIDEwMy4zOSA3MC45ODAxQzEwNi4wMyA3MC44OTAxIDEwOC42NiA3Mi4xNDAxIDExMS4yNiA3NC43MjAxTDEyNi45NiA5MC4xMzAxQzEzMS44OSA5NS4wMTAxIDEzNS40NSA5OS42MzAxIDEzNy42NCAxM
1DMuOTlDMTM5LjgzIDEwOC4zNSAxNDAuNjUgMTEzLjI4IDE0MC4wOCAxMTguNzhDMTM5LjU3IDEyMy40OSAxMzguMDYgMTI4LjA1IDEzNS41NCAxMzIuNDdDMTMzLjAzIDEzNi44OSAxMjkuNDMgMTQxLjQxIDEyNC43NiAxNDYuMDRDMTE5LjIgMTUxLjU1IDExMy44OSAxNTUuNzcgMTA4LjgzIDE1OC43MUMxMDMuNzcgMTYxLjY1IDk4Ljg3OTkgMTYzLjI5IDk0LjE0OTkgMTYzLjYzQzg5LjQxOTkgMTYzLjk3IDg0Ljc1OTkgMTYzLjAzIDgwLjE0OTkgMTYwLjgxQzc1LjUzOTkgMTU4LjU5IDcwLjg1OTkgMTU1LjEzIDY2LjA5OTkgMTUwLjQxTDY2LjEwOTkgMTUwLjQyWiIgZmlsbD0idXJsKCNwYWludDFfbGluZWFyXzEwMDUwXzQxNzEpIi8+CjxwYXRoIGQ9Ik04NS4wMDk5IDcyLjk1OTJDOTEuMTU2OCA3Mi45NTkyIDk2LjEzOTkgNjcuOTc2MSA5Ni4xMzk5IDYxLjgyOTJDOTYuMTM5OSA1NS42ODIzIDkxLjE1NjggNTAuNjk5MiA4NS4wMDk5IDUwLjY5OTJDNzguODYzIDUwLjY5OTIgNzMuODc5OSA1NS42ODIzIDczLjg3OTkgNjEuODI5MkM3My44Nzk5IDY3Ljk3NjEgNzguODYzIDcyLjk1OTIgODUuMDA5OSA3Mi45NTkyWiIgZmlsbD0idXJsKCNwYWludDJfcmFkaWFsXzEwMDUwXzQxNzEpIi8+CjwvZz4KPGRlZnM+CjxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQwX2xpbmVhcl8xMDA1MF80MTcxIiB4MT0iMTM4Ljk4NSIgeTE9IjQ2Ljc3OTUiIHgyPSI0NS4wNTI5IiB5Mj0iODguNTIzMyIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjMjAxQzFCIi8+CjxzdG9wIG9mZnNldD0iMC4zNiIgc3RvcC1jb2xvcj0iIzc3MzkwRCIvPgo8c3RvcCBvZmZzZXQ9IjAuNjciIHN0b3AtY29sb3I9IiNFQTgxMDEiLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjRjRCODUyIi8+CjwvbGluZWFyR3JhZGllbnQ+CjxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQxX2xpbmVhcl8xMDA1MF80MTcxIiB4MT0iNDMuMzgxMiIgeTE9IjEzNC4xNjciIHgyPSIxNTIuMjMxIiB5Mj0iMTAxLjc3MSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjMUYxRDFDIi8+CjxzdG9wIG9mZnNldD0iMC4zNyIgc3RvcC1jb2xvcj0iIzc3MzkwRCIvPgo8c3RvcCBvZmZzZXQ9IjAuNjciIHN0b3AtY29sb3I9IiNFQTgxMDEiLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjRjRGQjUyIi8+CjwvbGluZWFyR3JhZGllbnQ+CjxyYWRpYWxHcmFkaWVudCBpZD0icGFpbnQyX3JhZGlhbF8xMDA1MF80MTcxIiBjeD0iMCIgY3k9IjAiIHI9IjEiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIiBncmFkaWVudFRyYW5zZm9ybT0idHJhbnNsYXRlKDg1LjAwOTkgNjEuODM5Mikgc2NhbGUoMTEuMTMpIj4KPHN0b3Agc3RvcC1jb2xvcj0iI0Y0Qjg1MiIvPgo8c3RvcCBvZmZzZXQ9IjAuMzMiIHN0b3AtY29sb3I9IiNFQTgxMDEiLz4KPHN0b3Agb2Zmc2V0PSIwLjY0IiBzdG9wLWNvbG9yPSIjNzczOTBEIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzIxMUMxRCIvPgo8L3JhZGlhbEdyYWRpZW50Pgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzEwMDUwXzQxNzEiPgo8cmVjdCB3aWR0aD0iMTE1Ljc3IiBoZWlnaHQ9IjE0Ny43IiBmaWxsPSJ3aGl0ZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzIgMTYpIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg=="};sD.id,sN.id,sC.id},7733:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.decodeToken=void 0;let i=r(2161);t.decodeToken=function(e){if("string"==typeof e){let t=e.split(".");return{header:JSON.parse(i.decode(t[0])),payload:JSON.parse(i.decode(t[1])),signature:t[2]}}if("object"==typeof e){if("string"!=typeof e.payload)throw Error("Expected token payload to be a base64 or json string");let t=e.payload;"{"!==e.payload[0]&&(t=i.decode(t));let r=[];return e.header.map(e=>{let t=JSON.parse(i.decode(e));r.push(t)}),{header:r,payload:JSON.parse(t),signature:e.signature}}}},8161:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0});var i={default:function(){return h},getImageProps:function(){return u}};for(var n in i)Object.defineProperty(t,n,{enumerable:!0,get:i[n]});let s=r(2670),o=r(327),a=r(1107),l=s._(r(7122));function u(e){let{props:t}=(0,o.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let h=a.Image},8232:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sha224=t.SHA224=t.sha256=t.SHA256=void 0;let i=r(4763);t.SHA256=i.SHA256,t.sha256=i.sha256,t.SHA224=i.SHA224,t.sha224=i.sha224},8465:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TokenVerifier=void 0;let i=r(2161),n=r(8621),s=r(6328),o=r(2632);class a{constructor(e,t){if(!(e&&t))throw new s.MissingParametersError("a signing algorithm and public key are required");if("string"!=typeof e)throw"signing algorithm parameter must be a string";if(e=e.toUpperCase(),!n.cryptoClients.hasOwnProperty(e))throw"invalid signing algorithm";this.tokenType="JWT",this.cryptoClient=n.cryptoClients[e],this.rawPublicKey=t}verify(e){return"string"==typeof e?this.verifyCompact(e,!1):"object"==typeof e&&this.verifyExpanded(e,!1)}verifyAsync(e){return"string"==typeof e?this.verifyCompact(e,!0):"object"==typeof e?this.verifyExpanded(e,!0):Promise.resolve(!1)}verifyCompact(e,t){let r=e.split("."),i=r[0]+"."+r[1],n=e=>{let t=this.cryptoClient.loadSignature(r[2]);return this.cryptoClient.verifyHash(e,t,this.rawPublicKey)};return t?(0,o.hashSha256Async)(i).then(e=>n(e)):n((0,o.hashSha256)(i))}verifyExpanded(e,t){let r=[e.header.join("."),i.encode(e.payload)].join("."),n=!0,s=t=>(e.signature.map(e=>{let r=this.cryptoClient.loadSignature(e);this.cryptoClient.verifyHash(t,r,this.rawPublicKey)||(n=!1)}),n);return t?(0,o.hashSha256Async)(r).then(e=>s(e)):s((0,o.hashSha256)(r))}}t.TokenVerifier=a},8621:(e,t,r)=>
1{Object.defineProperty(t,"__esModule",{value:!0}),t.cryptoClients=t.SECP256K1Client=void 0;let i=r(3353);Object.defineProperty(t,"SECP256K1Client",{enumerable:!0,get:function(){return i.SECP256K1Client}}),t.cryptoClients={ES256K:i.SECP256K1Client}},9354:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},9376:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.joseToDer=t.derToJose=void 0;let i=r(3193),n=r(2161);function s(e){return(e/8|0)+ +(e%8!=0)}let o={ES256:s(256),ES384:s(384),ES512:s(521)};function a(e){let t=o[e];if(t)return t;throw Error(`Unknown algorithm "${e}"`)}function l(e){if(e instanceof Uint8Array)return e;if("string"==typeof e)return(0,i.toByteArray)((0,n.pad)(e));throw TypeError("ECDSA signature must be a Base64 string or a Uint8Array")}function u(e,t,r){let i=0;for(;t+i<r&&0===e[t+i];)++i;return e[t+i]>=128&&--i,i}t.derToJose=function(e,t){let r=l(e),s=a(t),o=s+1,u=r.length,h=0;if(48!==r[h++])throw Error('Could not find expected "seq"');let c=r[h++];if(129===c&&(c=r[h++]),u-h<c)throw Error(`"seq" specified length of "${c}", only "${u-h}" remaining`);if(2!==r[h++])throw Error('Could not find expected "int" for "r"');let d=r[h++];if(u-h-2<d)throw Error(`"r" specified length of "${d}", only "${u-h-2}" available`);if(o<d)throw Error(`"r" specified length of "${d}", max of "${o}" is acceptable`);let f=h;if(h+=d,2!==r[h++])throw Error('Could not find expected "int" for "s"');let p=r[h++];if(u-h!==p)throw Error(`"s" specified length of "${p}", expected "${u-h}"`);if(o<p)throw Error(`"s" specified length of "${p}", max of "${o}" is acceptable`);let m=h;if((h+=p)!==u)throw Error(`Expected to consume entire array, but "${u-h}" bytes remain`);let g=s-d,y=s-p,w=new Uint8Array(g+d+y+p);for(h=0;h<g;++h)w[h]=0;w.set(r.subarray(f+Math.max(-g,0),f+d),h),h=s;for(let e=h;h<e+y;++h)w[h]=0;return w.set(r.subarray(m+Math.max(-y,0),m+p),h),(0,n.escape)((0,i.fromByteArray)(w))},t.joseToDer=function(e,t){e=l(e);let r=a(t),i=e.length;if(i!==2*r)throw TypeError(`"${t}" signatures must be "${2*r}" bytes, saw "${i}"`);let n=u(e,0,r),s=u(e,r,e.length),o=r-n,h=r-s,c=2+o+1+1+h,d=c<128,f=new Uint8Array((d?2:3)+c),p=0;return f[p++]=48,d?f[p++]=c:(f[p++]=129,f[p++]=255&c),f[p++]=2,f[p++]=o,n<0?(f[p++]=0,f.set(e.subarray(0,r),p),p+=r):(f.set(e.subarray(n,r),p),p+=r-n),f[p++]=2,f[p++]=h,s<0?(f[p++]=0,f.set(e.subarray(r),p)):f.set(e.subarray(r+s),p),f}},9666:(e,t,r)=>{r.d(t,{default:()=>n.a});var i=r(8161),n=r.n(i)},9892:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.wrapXOFConstructorWithOpts=t.wrapConstructorWithOpts=t.wrapConstructor=t.Hash=t.nextTick=t.swap32IfBE=t.byteSwapIfBE=t.swap8IfBE=t.isLE=void 0,t.isBytes=n,t.anumber=s,t.abytes=o,t.ahash=function(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.createHasher");s(e.outputLen),s(e.blockLen)},t.aexists=function(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")},t.aoutput=function(e,t){o(e);let r=t.outputLen;if(e.length<r)throw Error("digestInto() expects output buffer of length at least "+r)},t.u8=function(e){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)},t.u32=function(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))},t.clean=function(...e){for(let t=0;t<e.length;t++)e[t].fill(0)},t.createView=function(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)},t.rotr=function(e,t){return e<<32-t|e>>>t},t.rotl=function(e,t){return e<<t|e>>>32-t>>>0},t.byteSwap=a,t.byteSwap32=l,t.bytesToHex=function(e){if(o(e),u)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=h[e[r]];return t},t.hexToBytes=function(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);if(u)return Uint8Array.fromHex(e);let t=e.length,r=t/2;if(t%2)throw Error("hex string expected, got unpadded hex of length "+t);let i=new Uint8Array(r);for(let t=0,n=0;t<r;t++,n+=2){let r=c(e.charCodeAt(n)),s=c(e.charCodeAt(n+1));if(void 0===r||void 0===s)throw Error('hex string expected, got non-hex character "'+(e[n]+e[n+1])+'" at index '+n);i[t]=16*r+s}return i},t.asyncLoop=d,t.utf8ToBytes=f,t.bytesToUtf8=function(e){return new TextDecoder().decode(e)},t.toBytes=p,t.kdfInputToBytes=function(e){return"string"==typeof e&&(e=f(e)),o(e),e},t.concatBytes=function(...e){let t=0;for(let r=0;r<e.length;r++){let i=e[r];o(i),t+=i.length}let r=new Uint8Array(t);for(let t=0,i=0;t<e.length;t++){let n=e[t];r.set(n,i),i+=n.length}return r},t.checkOpts=function(e,t){if(void 0!==t&&"[object Object]"!==({}).toString.call(t))throw Error("options should be object or undefined");return Object.assign(e,t)},t.createHasher=g,t.createOptHasher=y,t.createXOFer=w,t.randomBytes=function(e=32){if(i.crypto&&"function"==typeof i.crypto.getRandomValues)return i.crypto.getRandomValues(new Uint8Array(e));if(i.crypto&&"function"==typeof i.crypto.randomBytes)return Uint8Array.from(i.crypto.randomBytes(e));throw Error("crypto.getRandomValues must be defined")};let i=r(9354);function n(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function s(e){if(!Number.isSafeInteger(e)||e<0)throw Error("positive integer expected, got "+e)}function o(e,...t){if(!n(e))throw Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw Error("Uint8Array expected of length "+t+", got length="+e.length)}function a(e){return e<<24&0xff000000|e<<8&0xff0000|e>>>8&65280|e>>>24&255}function l(e){for(let t=0;t<e.length;t++)e[t]=a(e[t]);return e}t.isLE=68===new Uint8Array(new Uint32Array([0x11223344]).buffer)[0],t.swap8IfBE=t.isLE?e=>e:e=>a(e),t.byteSwapIfBE=t.swap8IfBE,t.swap32IfBE=t.isLE?e=>e:l;let u="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,h=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function c(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:void 0}async function d(e,r,i){let n=Date.now();for(let s=0;s<e;s++){i(s);let e=Date.now()-n;e>=0&&e<r||(await (0,t.nextTick)(),n+=e)}}function f(e){if("string"!=typeof e)throw Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function p(e){return"string"==typeof e&&(e=f(e)),o(e),e}t.nextTick=async()=>{};class m{}function g(e){let t=t=>e().update(p(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function y(e){let t=(t,r)=>e(r).update(p(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t}function w(e){let t=(t,r)=>e(r).update(p(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t}t.Hash=m,t.wrapConstructor=g,t.wrapConstructorWithOpts=y,t.wrapXOFConstructorWithOpts=w}}]);

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.