@delta-comic/ui 0.0.9 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +661 -661
- package/README.md +41 -41
- package/dist/dark.css +446 -0
- package/dist/index.cjs +58 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +8 -4
- package/dist/index.js +5119 -2540
- package/dist/index.js.map +1 -1
- package/dist/index2.cjs.map +1 -1
- package/dist/index2.js.map +1 -1
- package/dist/lib/components/DcMarkdown/index.vue.d.ts +12 -0
- package/dist/lib/index.d.ts +2 -1
- package/dist/light.css +446 -0
- package/dist/pack.tgz +0 -0
- package/package.json +8 -4
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};let n=require(`vue`),r=require(`@delta-comic/model`),i=require(`naive-ui`),a=require(`@delta-comic/utils`),o=require(`@delta-comic/core`),s=require(`vue-router`),c=require(`vant`);function l(e){return e[e.length-1]}function u(e,t){let n=e.slice(),r=[],i=0;for(let a=0;a<e.length;a++){if(t(e[a],a,n)){r.push(e[a]);continue}if(!Object.hasOwn(e,a)){delete e[i++];continue}e[i++]=e[a]}return e.length=i,r}var d=class extends Error{constructor(e=`The operation was aborted`){super(e),this.name=`AbortError`}};function f(e,t,{signal:n,edges:r}={}){let i,a=null,o=r!=null&&r.includes(`leading`),s=r==null||r.includes(`trailing`),c=()=>{a!==null&&(e.apply(i,a),i=void 0,a=null)},l=()=>{s&&c(),p()},u=null,d=()=>{u!=null&&clearTimeout(u),u=setTimeout(()=>{u=null,l()},t)},f=()=>{u!==null&&(clearTimeout(u),u=null)},p=()=>{f(),i=void 0,a=null},m=()=>{c()},h=function(...e){if(n?.aborted)return;i=this,a=e;let t=u==null;d(),o&&t&&c()};return h.schedule=d,h.cancel=p,h.flush=m,n?.addEventListener(`abort`,p,{once:!0}),h}function p(e){return e}function m(){}function h(e,{signal:t}={}){return new Promise((n,r)=>{let i=()=>{r(new d)},a=()=>{clearTimeout(o),i()};if(t?.aborted)return i();let o=setTimeout(()=>{t?.removeEventListener(`abort`,a),n()},e);t?.addEventListener(`abort`,a,{once:!0})})}function g(e){return e==null||typeof e!=`object`&&typeof e!=`function`}function _(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function v(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function y(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var b=`[object RegExp]`,x=`[object String]`,S=`[object Number]`,C=`[object Boolean]`,w=`[object Arguments]`,ee=`[object Symbol]`,te=`[object Date]`,T=`[object Map]`,ne=`[object Set]`,E=`[object Array]`,re=`[object ArrayBuffer]`,ie=`[object Object]`,ae=`[object DataView]`,oe=`[object Uint8Array]`,se=`[object Uint8ClampedArray]`,ce=`[object Uint16Array]`,le=`[object Uint32Array]`,ue=`[object Int8Array]`,de=`[object Int16Array]`,fe=`[object Int32Array]`,pe=`[object Float32Array]`,me=`[object Float64Array]`;function he(e,t){return ge(e,void 0,e,new Map,t)}function ge(e,t,n,r=new Map,i=void 0){let a=i?.(e,t,n,r);if(a!==void 0)return a;if(g(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=ge(e[a],a,n,r,i);return Object.hasOwn(e,`index`)&&(t.index=e.index),Object.hasOwn(e,`input`)&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=new Map;r.set(e,t);for(let[a,o]of e)t.set(a,ge(o,a,n,r,i));return t}if(e instanceof Set){let t=new Set;r.set(e,t);for(let a of e)t.add(ge(a,void 0,n,r,i));return t}if(typeof Buffer<`u`&&Buffer.isBuffer(e))return e.subarray();if(_(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=ge(e[a],a,n,r,i);return t}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,t),D(t,e,n,r,i),t}if(typeof File<`u`&&e instanceof File){let t=new File([e],e.name,{type:e.type});return r.set(e,t),D(t,e,n,r,i),t}if(typeof Blob<`u`&&e instanceof Blob){let t=new Blob([e],{type:e.type});return r.set(e,t),D(t,e,n,r,i),t}if(e instanceof Error){let t=structuredClone(e);return r.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,t.constructor=e.constructor,D(t,e,n,r,i),t}if(e instanceof Boolean){let t=new Boolean(e.valueOf());return r.set(e,t),D(t,e,n,r,i),t}if(e instanceof Number){let t=new Number(e.valueOf());return r.set(e,t),D(t,e,n,r,i),t}if(e instanceof String){let t=new String(e.valueOf());return r.set(e,t),D(t,e,n,r,i),t}if(typeof e==`object`&&_e(e)){let t=Object.create(Object.getPrototypeOf(e));return r.set(e,t),D(t,e,n,r,i),t}return e}function D(e,t,n=e,r,i){let a=[...Object.keys(t),...v(t)];for(let o=0;o<a.length;o++){let s=a[o],c=Object.getOwnPropertyDescriptor(e,s);(c==null||c.writable)&&(e[s]=ge(t[s],s,n,r,i))}}function _e(e){switch(y(e)){case w:case E:case re:case ae:case C:case te:case pe:case me:case ue:case de:case fe:case T:case S:case ie:case b:case ne:case x:case ee:case oe:case se:case ce:case le:return!0;default:return!1}}function ve(e){return ge(e,void 0,e,new Map,void 0)}function ye(e){return e===`__proto__`}function be(e){return Array.isArray(e)}function xe(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function Se(e){return e instanceof Error}function Ce(e){return typeof e==`function`}function we(e){return Number.isSafeInteger(e)&&e>=0}function Te(e){return typeof e==`string`}function Ee(e){return e===void 0}function De(){}var Oe=Object.assign,ke=typeof window<`u`,Ae=e=>typeof e==`object`&&!!e,je=e=>e!=null,Me=e=>typeof e==`function`,Ne=e=>Ae(e)&&Me(e.then)&&Me(e.catch),Pe=e=>typeof e==`number`||/^\d+(\.\d+)?$/.test(e),Fe=()=>ke?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1;function Ie(e,t){let n=t.split(`.`),r=e;return n.forEach(e=>{r=Ae(r)?r[e]??``:``}),r}function Le(e,t,n){return t.reduce((t,r)=>((!n||e[r]!==void 0)&&(t[r]=e[r]),t),{})}var O=[Number,String],k={type:Boolean,default:!0},Re=e=>({type:e,required:!0}),ze=()=>({type:Array,default:()=>[]}),A=e=>({type:O,default:e}),j=e=>({type:String,default:e}),Be=typeof window<`u`;function Ve(e){return Be?requestAnimationFrame(e):-1}function He(e){Be&&cancelAnimationFrame(e)}function Ue(e){Ve(()=>Ve(e))}var We=e=>e===window,Ge=(e,t)=>({top:0,left:0,right:e,bottom:t,width:e,height:t}),Ke=e=>{let t=(0,n.unref)(e);if(We(t)){let e=t.innerWidth,n=t.innerHeight;return Ge(e,n)}return t?.getBoundingClientRect?t.getBoundingClientRect():Ge(0,0)};function qe(e){let t=(0,n.inject)(e,null);if(t){let e=(0,n.getCurrentInstance)(),{link:r,unlink:i,internalChildren:a}=t;return r(e),(0,n.onUnmounted)(()=>i(e)),{parent:t,index:(0,n.computed)(()=>a.indexOf(e))}}return{parent:null,index:(0,n.ref)(-1)}}function Je(e){let t=[],r=e=>{Array.isArray(e)&&e.forEach(e=>{(0,n.isVNode)(e)&&(t.push(e),e.component?.subTree&&(t.push(e.component.subTree),r(e.component.subTree.children)),e.children&&r(e.children))})};return r(e),t}var Ye=(e,t)=>{let n=e.indexOf(t);return n===-1?e.findIndex(e=>t.key!==void 0&&t.key!==null&&e.type===t.type&&e.key===t.key):n};function Xe(e,t,n){let r=Je(e.subTree.children);n.sort((e,t)=>Ye(r,e.vnode)-Ye(r,t.vnode));let i=n.map(e=>e.proxy);t.sort((e,t)=>i.indexOf(e)-i.indexOf(t))}function Ze(e){let t=(0,n.reactive)([]),r=(0,n.reactive)([]),i=(0,n.getCurrentInstance)();return{children:t,linkChildren:a=>{(0,n.provide)(e,Object.assign({link:e=>{e.proxy&&(r.push(e),t.push(e.proxy),Xe(i,t,r))},unlink:e=>{let n=r.indexOf(e);t.splice(n,1),r.splice(n,1)},children:t,internalChildren:r},a))}}}function Qe(e){let t;(0,n.onMounted)(()=>{e(),(0,n.nextTick)(()=>{t=!0})}),(0,n.onActivated)(()=>{t&&e()})}function $e(e,t,r={}){if(!Be)return;let{target:i=window,passive:a=!1,capture:o=!1}=r,s=!1,c,l=r=>{if(s)return;let i=(0,n.unref)(r);i&&!c&&(i.addEventListener(e,t,{capture:o,passive:a}),c=!0)},u=r=>{if(s)return;let i=(0,n.unref)(r);i&&c&&(i.removeEventListener(e,t,o),c=!1)};(0,n.onUnmounted)(()=>u(i)),(0,n.onDeactivated)(()=>u(i)),Qe(()=>l(i));let d;return(0,n.isRef)(i)&&(d=(0,n.watch)(i,(e,t)=>{u(t),l(e)})),()=>{d?.(),u(i),s=!0}}var et,tt;function nt(){if(!et&&(et=(0,n.ref)(0),tt=(0,n.ref)(0),Be)){let e=()=>{et.value=window.innerWidth,tt.value=window.innerHeight};e(),window.addEventListener(`resize`,e,{passive:!0}),window.addEventListener(`orientationchange`,e,{passive:!0})}return{width:et,height:tt}}var rt=/scroll|auto|overlay/i,it=Be?window:void 0;function at(e){return e.tagName!==`HTML`&&e.tagName!==`BODY`&&e.nodeType===1}function ot(e,t=it){let n=e;for(;n&&n!==t&&at(n);){let{overflowY:e}=window.getComputedStyle(n);if(rt.test(e))return n;n=n.parentNode}return t}function st(e,t=it){let r=(0,n.ref)();return(0,n.onMounted)(()=>{e.value&&(r.value=ot(e.value,t))}),r}var ct;function lt(){if(!ct&&(ct=(0,n.ref)(`visible`),Be)){let e=()=>{ct.value=document.hidden?`hidden`:`visible`};e(),window.addEventListener(`visibilitychange`,e)}return ct}function ut(e){let t=`scrollTop`in e?e.scrollTop:e.pageYOffset;return Math.max(t,0)}function dt(e,t){`scrollTop`in e?e.scrollTop=t:e.scrollTo(e.scrollX,t)}function ft(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function pt(e){dt(window,e),dt(document.body,e)}function mt(e,t){if(e===window)return 0;let n=t?ut(t):ft();return Ke(e).top+n}Fe();var ht=e=>e.stopPropagation();function gt(e,t){(typeof e.cancelable!=`boolean`||e.cancelable)&&e.preventDefault(),t&&ht(e)}function _t(e){let t=(0,n.unref)(e);if(!t)return!1;let r=window.getComputedStyle(t),i=r.display===`none`,a=t.offsetParent===null&&r.position!==`fixed`;return i||a}var{width:vt,height:yt}=nt();function M(e){if(je(e))return Pe(e)?`${e}px`:String(e)}function bt(e){if(je(e)){if(Array.isArray(e))return{width:M(e[0]),height:M(e[1])};let t=M(e);return{width:t,height:t}}}function xt(e){let t={};return e!==void 0&&(t.zIndex=+e),t}var St;function Ct(){if(!St){let e=document.documentElement,t=e.style.fontSize||window.getComputedStyle(e).fontSize;St=parseFloat(t)}return St}function wt(e){return e=e.replace(/rem/g,``),+e*Ct()}function Tt(e){return e=e.replace(/vw/g,``),+e*vt.value/100}function Et(e){return e=e.replace(/vh/g,``),+e*yt.value/100}function Dt(e){if(typeof e==`number`)return e;if(ke){if(e.includes(`rem`))return wt(e);if(e.includes(`vw`))return Tt(e);if(e.includes(`vh`))return Et(e)}return parseFloat(e)}var Ot=/-(\w)/g,kt=e=>e.replace(Ot,(e,t)=>t.toUpperCase()),At=e=>e.replace(/([A-Z])/g,`-$1`).toLowerCase().replace(/^-/,``),jt=(e,t,n)=>Math.min(Math.max(e,t),n),{hasOwnProperty:Mt}=Object.prototype;function Nt(e,t,n){let r=t[n];je(r)&&(!Mt.call(e,n)||!Ae(r)?e[n]=r:e[n]=Pt(Object(e[n]),r))}function Pt(e,t){return Object.keys(t).forEach(n=>{Nt(e,t,n)}),e}var Ft={name:`姓名`,tel:`电话`,save:`保存`,clear:`清空`,cancel:`取消`,confirm:`确认`,delete:`删除`,loading:`加载中...`,noCoupon:`暂无优惠券`,nameEmpty:`请填写姓名`,addContact:`添加联系人`,telInvalid:`请填写正确的电话`,vanCalendar:{end:`结束`,start:`开始`,title:`日期选择`,weekdays:[`日`,`一`,`二`,`三`,`四`,`五`,`六`],monthTitle:(e,t)=>`${e}\u5E74${t}\u6708`,rangePrompt:e=>`\u6700\u591A\u9009\u62E9 ${e} \u5929`},vanCascader:{select:`请选择`},vanPagination:{prev:`上一页`,next:`下一页`},vanPullRefresh:{pulling:`下拉即可刷新...`,loosing:`释放即可刷新...`},vanSubmitBar:{label:`合计:`},vanCoupon:{unlimited:`无门槛`,discount:e=>`${e}\u6298`,condition:e=>`\u6EE1${e}\u5143\u53EF\u7528`},vanCouponCell:{title:`优惠券`,count:e=>`${e}\u5F20\u53EF\u7528`},vanCouponList:{exchange:`兑换`,close:`不使用`,enable:`可用`,disabled:`不可用`,placeholder:`输入优惠码`},vanAddressEdit:{area:`地区`,areaEmpty:`请选择地区`,addressEmpty:`请填写详细地址`,addressDetail:`详细地址`,defaultAddress:`设为默认收货地址`},vanAddressList:{add:`新增地址`}},It=(0,n.ref)(`zh-CN`),Lt=(0,n.reactive)({"zh-CN":Ft}),Rt={messages(){return Lt[It.value]},use(e,t){It.value=e,this.add({[e]:t})},add(e={}){Pt(Lt,e)}};function zt(e){let t=kt(e)+`.`;return(e,...n)=>{let r=Rt.messages(),i=Ie(r,t+e)||Ie(r,e);return Me(i)?i(...n):i}}function Bt(e,t){return t?typeof t==`string`?` ${e}--${t}`:Array.isArray(t)?t.reduce((t,n)=>t+Bt(e,n),``):Object.keys(t).reduce((n,r)=>n+(t[r]?Bt(e,r):``),``):``}function Vt(e){return(t,n)=>(t&&typeof t!=`string`&&(n=t,t=``),t=t?`${e}__${t}`:e,`${t}${Bt(t,n)}`)}function N(e){let t=`van-${e}`;return[t,Vt(t),zt(t)]}var Ht=`van-hairline`;`${Ht}`,`${Ht}`,`${Ht}`,`${Ht}`,`${Ht}`;var Ut=`${Ht}--top-bottom`;`${Ht}`;var Wt=`van-haptics-feedback`;function Gt(e,{args:t=[],done:n,canceled:r,error:i}){if(e){let a=e.apply(null,t);Ne(a)?a.then(e=>{e?n():r&&r()}).catch(i||De):a?n():r&&r()}else n()}function P(e){return e.install=t=>{let{name:n}=e;n&&(t.component(n,e),t.component(kt(`-${n}`),e))},e}function Kt(e,t){return e.reduce((e,n)=>Math.abs(e-t)<Math.abs(n-t)?e:n)}var qt=Symbol();function Jt(e){let t=(0,n.inject)(qt,null);t&&(0,n.watch)(t,t=>{t&&e()})}function Yt(e){let t=(0,n.getCurrentInstance)();t&&Oe(t.proxy,e)}var Xt={to:[String,Object],url:String,replace:Boolean};function Zt({to:e,url:t,replace:n,$router:r}){e&&r?r[n?`replace`:`push`](e):t&&(n?location.replace(t):location.href=t)}var[Qt,$t]=N(`badge`),en={dot:Boolean,max:O,tag:j(`div`),color:String,offset:Array,content:O,showZero:k,position:j(`top-right`)},tn=P((0,n.defineComponent)({name:Qt,props:en,setup(e,{slots:t}){let r=()=>{if(t.content)return!0;let{content:n,showZero:r}=e;return je(n)&&n!==``&&(r||n!==0&&n!==`0`)},i=()=>{let{dot:n,max:i,content:a}=e;if(!n&&r())return t.content?t.content():je(i)&&Pe(a)&&+a>+i?`${i}+`:a},a=e=>e.startsWith(`-`)?e.replace(`-`,``):`-${e}`,o=(0,n.computed)(()=>{let n={background:e.color};if(e.offset){let[r,i]=e.offset,{position:o}=e,[s,c]=o.split(`-`);t.default?(typeof i==`number`?n[s]=M(s===`top`?i:-i):n[s]=s===`top`?M(i):a(i),typeof r==`number`?n[c]=M(c===`left`?r:-r):n[c]=c===`left`?M(r):a(r)):(n.marginTop=M(i),n.marginLeft=M(r))}return n}),s=()=>{if(r()||e.dot)return(0,n.createVNode)(`div`,{class:$t([e.position,{dot:e.dot,fixed:!!t.default}]),style:o.value},[i()])};return()=>{if(t.default){let{tag:r}=e;return(0,n.createVNode)(r,{class:$t(`wrapper`)},{default:()=>[t.default(),s()]})}return s()}}})),nn=2e3,rn=()=>++nn,an=e=>{nn=e},[on,sn]=N(`config-provider`),cn=Symbol(on),ln={tag:j(`div`),theme:j(`light`),zIndex:Number,themeVars:Object,themeVarsDark:Object,themeVarsLight:Object,themeVarsScope:j(`local`),iconPrefix:String};function un(e){return e.replace(/([a-zA-Z])(\d)/g,`$1-$2`)}function dn(e){let t={};return Object.keys(e).forEach(n=>{let r=un(At(n));t[`--van-${r}`]=e[n]}),t}function fn(e={},t={}){Object.keys(e).forEach(n=>{e[n]!==t[n]&&document.documentElement.style.setProperty(n,e[n])}),Object.keys(t).forEach(t=>{e[t]||document.documentElement.style.removeProperty(t)})}(0,n.defineComponent)({name:on,props:ln,setup(e,{slots:t}){let r=(0,n.computed)(()=>dn(Oe({},e.themeVars,e.theme===`dark`?e.themeVarsDark:e.themeVarsLight)));if(ke){let t=()=>{document.documentElement.classList.add(`van-theme-${e.theme}`)},i=(t=e.theme)=>{document.documentElement.classList.remove(`van-theme-${t}`)};(0,n.watch)(()=>e.theme,(e,n)=>{n&&i(n),t()},{immediate:!0}),(0,n.onActivated)(t),(0,n.onDeactivated)(i),(0,n.onBeforeUnmount)(i),(0,n.watch)(r,(t,n)=>{e.themeVarsScope===`global`&&fn(t,n)}),(0,n.watch)(()=>e.themeVarsScope,(e,t)=>{t===`global`&&fn({},r.value),e===`global`&&fn(r.value,{})}),e.themeVarsScope===`global`&&fn(r.value,{})}return(0,n.provide)(cn,e),(0,n.watchEffect)(()=>{e.zIndex!==void 0&&an(e.zIndex)}),()=>(0,n.createVNode)(e.tag,{class:sn(),style:e.themeVarsScope===`local`?r.value:void 0},{default:()=>[t.default?.call(t)]})}});var[pn,mn]=N(`icon`),hn=e=>e?.includes(`/`),gn={dot:Boolean,tag:j(`i`),name:String,size:O,badge:O,color:String,badgeProps:Object,classPrefix:String},_n=P((0,n.defineComponent)({name:pn,props:gn,setup(e,{slots:t}){let r=(0,n.inject)(cn,null),i=(0,n.computed)(()=>e.classPrefix||r?.iconPrefix||mn());return()=>{let{tag:r,dot:a,name:o,size:s,badge:c,color:l}=e,u=hn(o);return(0,n.createVNode)(tn,(0,n.mergeProps)({dot:a,tag:r,class:[i.value,u?``:`${i.value}-${o}`],style:{color:l,fontSize:M(s)},content:c},e.badgeProps),{default:()=>[t.default?.call(t),u&&(0,n.createVNode)(`img`,{class:mn(`image`),src:o},null)]})}}})),[vn,yn]=N(`loading`),bn=Array(12).fill(null).map((e,t)=>(0,n.createVNode)(`i`,{class:yn(`line`,String(t+1))},null)),xn=(0,n.createVNode)(`svg`,{class:yn(`circular`),viewBox:`25 25 50 50`},[(0,n.createVNode)(`circle`,{cx:`50`,cy:`50`,r:`20`,fill:`none`},null)]),Sn={size:O,type:j(`circular`),color:String,vertical:Boolean,textSize:O,textColor:String},Cn=P((0,n.defineComponent)({name:vn,props:Sn,setup(e,{slots:t}){let r=(0,n.computed)(()=>Oe({color:e.color},bt(e.size))),i=()=>{let i=e.type===`spinner`?bn:xn;return(0,n.createVNode)(`span`,{class:yn(`spinner`,e.type),style:r.value},[t.icon?t.icon():i])},a=()=>{if(t.default)return(0,n.createVNode)(`span`,{class:yn(`text`),style:{fontSize:M(e.textSize),color:e.textColor??e.color}},[t.default()])};return()=>{let{type:t,vertical:r}=e;return(0,n.createVNode)(`div`,{class:yn([t,{vertical:r}]),"aria-live":`polite`,"aria-busy":!0},[i(),a()])}}})),wn={show:Boolean,zIndex:O,overlay:k,duration:O,teleport:[String,Object],lockScroll:k,lazyRender:k,beforeClose:Function,overlayProps:Object,overlayStyle:Object,overlayClass:null,transitionAppear:Boolean,closeOnClickOverlay:k};function Tn(e,t){return e>t?`horizontal`:t>e?`vertical`:``}function En(){let e=(0,n.ref)(0),t=(0,n.ref)(0),r=(0,n.ref)(0),i=(0,n.ref)(0),a=(0,n.ref)(0),o=(0,n.ref)(0),s=(0,n.ref)(``),c=(0,n.ref)(!0),l=()=>s.value===`vertical`,u=()=>s.value===`horizontal`,d=()=>{r.value=0,i.value=0,a.value=0,o.value=0,s.value=``,c.value=!0};return{move:(n=>{let l=n.touches[0];r.value=(l.clientX<0?0:l.clientX)-e.value,i.value=l.clientY-t.value,a.value=Math.abs(r.value),o.value=Math.abs(i.value),(!s.value||a.value<10&&o.value<10)&&(s.value=Tn(a.value,o.value)),c.value&&(a.value>5||o.value>5)&&(c.value=!1)}),start:(n=>{d(),e.value=n.touches[0].clientX,t.value=n.touches[0].clientY}),reset:d,startX:e,startY:t,deltaX:r,deltaY:i,offsetX:a,offsetY:o,direction:s,isVertical:l,isHorizontal:u,isTap:c}}var Dn=0,On=`van-overflow-hidden`;function kn(e,t){let r=En(),i=t=>{r.move(t);let n=r.deltaY.value>0?`10`:`01`,{scrollHeight:i,offsetHeight:a,scrollTop:o}=ot(t.target,e.value),s=`11`;o===0?s=a>=i?`00`:`01`:o+a>=i&&(s=`10`),s!==`11`&&r.isVertical()&&!(parseInt(s,2)&parseInt(n,2))&>(t,!0)},a=()=>{document.addEventListener(`touchstart`,r.start),document.addEventListener(`touchmove`,i,{passive:!1}),Dn||document.body.classList.add(On),Dn++},o=()=>{Dn&&(document.removeEventListener(`touchstart`,r.start),document.removeEventListener(`touchmove`,i),Dn--,Dn||document.body.classList.remove(On))},s=()=>t()&&a(),c=()=>t()&&o();Qe(s),(0,n.onDeactivated)(c),(0,n.onBeforeUnmount)(c),(0,n.watch)(t,e=>{e?a():o()})}function An(e){let t=(0,n.ref)(!1);return(0,n.watch)(e,e=>{e&&(t.value=e)},{immediate:!0}),e=>()=>t.value?e():null}var jn=()=>{let{scopeId:e}=(0,n.getCurrentInstance)()?.vnode||{};return e?{[e]:``}:null},[Mn,Nn]=N(`overlay`),Pn={show:Boolean,zIndex:O,duration:O,className:null,lockScroll:k,lazyRender:k,customStyle:Object,teleport:[String,Object]},Fn=P((0,n.defineComponent)({name:Mn,inheritAttrs:!1,props:Pn,setup(e,{attrs:t,slots:r}){let i=(0,n.ref)(),a=An(()=>e.show||!e.lazyRender),o=t=>{e.lockScroll&>(t,!0)},s=a(()=>{let a=Oe(xt(e.zIndex),e.customStyle);return je(e.duration)&&(a.animationDuration=`${e.duration}s`),(0,n.withDirectives)((0,n.createVNode)(`div`,(0,n.mergeProps)({ref:i,style:a,class:[Nn(),e.className]},t),[r.default?.call(r)]),[[n.vShow,e.show]])});return $e(`touchmove`,o,{target:i}),()=>{let t=(0,n.createVNode)(n.Transition,{name:`van-fade`,appear:!0},{default:s});return e.teleport?(0,n.createVNode)(n.Teleport,{to:e.teleport},{default:()=>[t]}):t}}})),In=Oe({},wn,{round:Boolean,position:j(`center`),closeIcon:j(`cross`),closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,closeIconPosition:j(`top-right`),destroyOnClose:Boolean,safeAreaInsetTop:Boolean,safeAreaInsetBottom:Boolean}),[Ln,Rn]=N(`popup`),zn=P((0,n.defineComponent)({name:Ln,inheritAttrs:!1,props:In,emits:[`open`,`close`,`opened`,`closed`,`keydown`,`update:show`,`clickOverlay`,`clickCloseIcon`],setup(e,{emit:t,attrs:r,slots:i}){let a,o,s=(0,n.ref)(),c=(0,n.ref)(),l=An(()=>e.show||!e.lazyRender),u=(0,n.computed)(()=>{let t={zIndex:s.value};if(je(e.duration)){let n=e.position===`center`?`animationDuration`:`transitionDuration`;t[n]=`${e.duration}s`}return t}),d=()=>{a||(a=!0,s.value=e.zIndex===void 0?rn():+e.zIndex,t(`open`))},f=()=>{a&&Gt(e.beforeClose,{done(){a=!1,t(`close`),t(`update:show`,!1)}})},p=n=>{t(`clickOverlay`,n),e.closeOnClickOverlay&&f()},m=()=>{if(e.overlay)return(0,n.createVNode)(Fn,(0,n.mergeProps)(Oe({show:e.show,class:e.overlayClass,zIndex:s.value,duration:e.duration,customStyle:e.overlayStyle,role:e.closeOnClickOverlay?`button`:void 0,tabindex:e.closeOnClickOverlay?0:void 0},e.overlayProps),jn(),{onClick:p}),{default:i[`overlay-content`]})},h=e=>{t(`clickCloseIcon`,e),f()},g=()=>{if(e.closeable)return(0,n.createVNode)(_n,{role:`button`,tabindex:0,name:e.closeIcon,class:[Rn(`close-icon`,e.closeIconPosition),Wt],classPrefix:e.iconPrefix,onClick:h},null)},_,v=()=>{_&&clearTimeout(_),_=setTimeout(()=>{t(`opened`)})},y=()=>t(`closed`),b=e=>t(`keydown`,e),x=l(()=>{let{destroyOnClose:t,round:a,position:o,safeAreaInsetTop:s,safeAreaInsetBottom:l,show:d}=e;if(!(!d&&t))return(0,n.withDirectives)((0,n.createVNode)(`div`,(0,n.mergeProps)({ref:c,style:u.value,role:`dialog`,tabindex:0,class:[Rn({round:a,[o]:o}),{"van-safe-area-top":s,"van-safe-area-bottom":l}],onKeydown:b},r,jn()),[i.default?.call(i),g()]),[[n.vShow,d]])}),S=()=>{let{position:t,transition:r,transitionAppear:i}=e,a=t===`center`?`van-fade`:`van-popup-slide-${t}`;return(0,n.createVNode)(n.Transition,{name:r||a,appear:i,onAfterEnter:v,onAfterLeave:y},{default:x})};return(0,n.watch)(()=>e.show,e=>{e&&!a&&(d(),r.tabindex===0&&(0,n.nextTick)(()=>{var e;(e=c.value)==null||e.focus()})),!e&&a&&(a=!1,t(`close`))}),Yt({popupRef:c}),kn(c,()=>e.show&&e.lockScroll),$e(`popstate`,()=>{e.closeOnPopstate&&(f(),o=!1)}),(0,n.onMounted)(()=>{e.show&&d()}),(0,n.onActivated)(()=>{o&&=(t(`update:show`,!0),!1)}),(0,n.onDeactivated)(()=>{e.show&&e.teleport&&(f(),o=!0)}),(0,n.provide)(qt,()=>e.show),()=>e.teleport?(0,n.createVNode)(n.Teleport,{to:e.teleport},{default:()=>[m(),S()]}):(0,n.createVNode)(n.Fragment,null,[m(),S()])}})),Bn=(e,t)=>{let r=(0,n.ref)(e());return(0,n.watch)(e,e=>{e!==r.value&&(r.value=e)}),(0,n.watch)(r,n=>{n!==e()&&t(n)}),r};function Vn(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}process.env.NODE_ENV===`production`||Object.freeze({}),process.env.NODE_ENV===`production`||Object.freeze([]);var Hn=Array.isArray,Un=e=>typeof e==`string`,Wn=e=>typeof e==`object`&&!!e,Gn=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Kn=/\B([A-Z])/g,qn=Gn(e=>e.replace(Kn,`-$1`).toLowerCase());function Jn(e){if(Hn(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=Un(r)?Qn(r):Jn(r);if(i)for(let e in i)t[e]=i[e]}return t}else if(Un(e)||Wn(e))return e}var Yn=/;(?![^(]*\))/g,Xn=/:([^]+)/,Zn=/\/\*[^]*?\*\//g;function Qn(e){let t={};return e.replace(Zn,``).split(Yn).forEach(e=>{if(e){let n=e.split(Xn);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function $n(e){if(!e)return``;if(Un(e))return e;let t=``;for(let n in e){let r=e[n];if(Un(r)||typeof r==`number`){let e=n.startsWith(`--`)?n:qn(n);t+=`${e}:${r};`}}return t}function er(e){let t=``;if(Un(e))t=e;else if(Hn(e))for(let n=0;n<e.length;n++){let r=er(e[n]);r&&(t+=r+` `)}else if(Wn(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}Vn(`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly,async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected`);function tr(e,t,n){let r,i=0,a=e.scrollLeft,o=n===0?1:Math.round(n*1e3/16),s=a;function c(){He(r)}function l(){s+=(t-a)/o,e.scrollLeft=s,++i<o&&(r=Ve(l))}return l(),c}function nr(e,t,n,r){let i,a=ut(e),o=a<t,s=n===0?1:Math.round(n*1e3/16),c=(t-a)/s;function l(){He(i)}function u(){a+=c,(o&&a>t||!o&&a<t)&&(a=t),dt(e,a),o&&a<t||!o&&a>t?i=Ve(u):r&&(i=Ve(r))}return u(),l}var rr=0;function ir(){let{name:e=`unknown`}=(0,n.getCurrentInstance)()?.type||{};return process.env.NODE_ENV===`test`?e:`${e}-${++rr}`}function ar(){let e=(0,n.ref)([]),t=[];return(0,n.onBeforeUpdate)(()=>{e.value=[]}),[e,n=>(t[n]||(t[n]=t=>{e.value[n]=t}),t[n])]}function or(e,t){if(!ke||!window.IntersectionObserver)return;let r=new IntersectionObserver(e=>{t(e[0].intersectionRatio>0)},{root:document.body}),i=()=>{e.value&&r.observe(e.value)},a=()=>{e.value&&r.unobserve(e.value)};(0,n.onDeactivated)(a),(0,n.onBeforeUnmount)(a),Qe(i)}var[sr,cr]=N(`sticky`),lr={zIndex:O,position:j(`top`),container:Object,offsetTop:A(0),offsetBottom:A(0)},ur=P((0,n.defineComponent)({name:sr,props:lr,emits:[`scroll`,`change`],setup(e,{emit:t,slots:r}){let i=(0,n.ref)(),a=st(i),o=(0,n.reactive)({fixed:!1,width:0,height:0,transform:0}),s=(0,n.ref)(!1),c=(0,n.computed)(()=>Dt(e.position===`top`?e.offsetTop:e.offsetBottom)),l=(0,n.computed)(()=>{if(s.value)return;let{fixed:e,height:t,width:n}=o;if(e)return{width:`${n}px`,height:`${t}px`}}),u=(0,n.computed)(()=>{if(!o.fixed||s.value)return;let t=Oe(xt(e.zIndex),{width:`${o.width}px`,height:`${o.height}px`,[e.position]:`${c.value}px`});return o.transform&&(t.transform=`translate3d(0, ${o.transform}px, 0)`),t}),d=e=>t(`scroll`,{scrollTop:e,isFixed:o.fixed}),f=()=>{if(!i.value||_t(i))return;let{container:t,position:n}=e,r=Ke(i),a=ut(window);if(o.width=r.width,o.height=r.height,n===`top`)if(t){let e=Ke(t),n=e.bottom-c.value-o.height;o.fixed=c.value>r.top&&e.bottom>0,o.transform=n<0?n:0}else o.fixed=c.value>r.top;else{let{clientHeight:e}=document.documentElement;if(t){let n=Ke(t),i=e-n.top-c.value-o.height;o.fixed=e-c.value<r.bottom&&e>n.top,o.transform=i<0?-i:0}else o.fixed=e-c.value<r.bottom}d(a)};return(0,n.watch)(()=>o.fixed,e=>t(`change`,e)),$e(`scroll`,f,{target:a,passive:!0}),or(i,f),(0,n.watch)([vt,yt],()=>{!i.value||_t(i)||!o.fixed||(s.value=!0,(0,n.nextTick)(()=>{let e=Ke(i);o.width=e.width,o.height=e.height,s.value=!1}))}),()=>(0,n.createVNode)(`div`,{ref:i,style:l.value},[(0,n.createVNode)(`div`,{class:cr({fixed:o.fixed&&!s.value}),style:u.value},[r.default?.call(r)])])}})),[dr,fr]=N(`swipe`),pr={loop:k,width:O,height:O,vertical:Boolean,autoplay:A(0),duration:A(500),touchable:k,lazyRender:Boolean,initialSwipe:A(0),indicatorColor:String,showIndicators:k,stopPropagation:k},mr=Symbol(dr),hr=P((0,n.defineComponent)({name:dr,props:pr,emits:[`change`,`dragStart`,`dragEnd`],setup(e,{emit:t,slots:r}){let i=(0,n.ref)(),a=(0,n.ref)(),o=(0,n.reactive)({rect:null,width:0,height:0,offset:0,active:0,swiping:!1}),s=!1,c=En(),{children:l,linkChildren:u}=Ze(mr),d=(0,n.computed)(()=>l.length),f=(0,n.computed)(()=>o[e.vertical?`height`:`width`]),p=(0,n.computed)(()=>e.vertical?c.deltaY.value:c.deltaX.value),m=(0,n.computed)(()=>o.rect?(e.vertical?o.rect.height:o.rect.width)-f.value*d.value:0),h=(0,n.computed)(()=>f.value?Math.ceil(Math.abs(m.value)/f.value):d.value),g=(0,n.computed)(()=>d.value*f.value),_=(0,n.computed)(()=>(o.active+d.value)%d.value),v=(0,n.computed)(()=>{let t=e.vertical?`vertical`:`horizontal`;return c.direction.value===t}),y=(0,n.computed)(()=>{let t={transitionDuration:`${o.swiping?0:e.duration}ms`,transform:`translate${e.vertical?`Y`:`X`}(${+o.offset.toFixed(2)}px)`};if(f.value){let n=e.vertical?`height`:`width`,r=e.vertical?`width`:`height`;t[n]=`${g.value}px`,t[r]=e[r]?`${e[r]}px`:``}return t}),b=t=>{let{active:n}=o;return t?e.loop?jt(n+t,-1,d.value):jt(n+t,0,h.value):n},x=(t,n=0)=>{let r=t*f.value;e.loop||(r=Math.min(r,-m.value));let i=n-r;return e.loop||(i=jt(i,m.value,0)),i},S=({pace:n=0,offset:r=0,emitChange:i})=>{if(d.value<=1)return;let{active:a}=o,s=b(n),c=x(s,r);if(e.loop){if(l[0]&&c!==m.value){let e=c<m.value;l[0].setOffset(e?g.value:0)}if(l[d.value-1]&&c!==0){let e=c>0;l[d.value-1].setOffset(e?-g.value:0)}}o.active=s,o.offset=c,i&&s!==a&&t(`change`,_.value)},C=()=>{o.swiping=!0,o.active<=-1?S({pace:d.value}):o.active>=d.value&&S({pace:-d.value})},w=()=>{C(),c.reset(),Ue(()=>{o.swiping=!1,S({pace:-1,emitChange:!0})})},ee=()=>{C(),c.reset(),Ue(()=>{o.swiping=!1,S({pace:1,emitChange:!0})})},te,T=()=>clearTimeout(te),ne=()=>{T(),+e.autoplay>0&&d.value>1&&(te=setTimeout(()=>{ee(),ne()},+e.autoplay))},E=(t=+e.initialSwipe)=>{if(!i.value)return;let r=()=>{if(!_t(i)){let t={width:i.value.offsetWidth,height:i.value.offsetHeight};o.rect=t,o.width=+(e.width??t.width),o.height=+(e.height??t.height)}d.value&&(t=Math.min(d.value-1,t),t===-1&&(t=d.value-1)),o.active=t,o.swiping=!0,o.offset=x(t),l.forEach(e=>{e.setOffset(0)}),ne()};_t(i)?(0,n.nextTick)().then(r):r()},re=()=>E(o.active),ie,ae=t=>{!e.touchable||t.touches.length>1||(c.start(t),s=!1,ie=Date.now(),T(),C())},oe=n=>{e.touchable&&o.swiping&&(c.move(n),v.value&&(!e.loop&&(o.active===0&&p.value>0||o.active===d.value-1&&p.value<0)||(gt(n,e.stopPropagation),S({offset:p.value}),s||=(t(`dragStart`,{index:_.value}),!0))))},se=()=>{if(!e.touchable||!o.swiping)return;let n=Date.now()-ie,r=p.value/n;if((Math.abs(r)>.25||Math.abs(p.value)>f.value/2)&&v.value){let t=e.vertical?c.offsetY.value:c.offsetX.value,n=0;n=e.loop?t>0?p.value>0?-1:1:0:-Math[p.value>0?`ceil`:`floor`](p.value/f.value),S({pace:n,emitChange:!0})}else p.value&&S({pace:0});s=!1,o.swiping=!1,t(`dragEnd`,{index:_.value}),ne()},ce=(t,n={})=>{C(),c.reset(),Ue(()=>{let r;r=e.loop&&t===d.value?o.active===0?0:t:t%d.value,n.immediate?Ue(()=>{o.swiping=!1}):o.swiping=!1,S({pace:r-o.active,emitChange:!0})})},le=(t,r)=>{let i=r===_.value,a=i?{backgroundColor:e.indicatorColor}:void 0;return(0,n.createVNode)(`i`,{style:a,class:fr(`indicator`,{active:i})},null)},ue=()=>{if(r.indicator)return r.indicator({active:_.value,total:d.value});if(e.showIndicators&&d.value>1)return(0,n.createVNode)(`div`,{class:fr(`indicators`,{vertical:e.vertical})},[Array(d.value).fill(``).map(le)])};return Yt({prev:w,next:ee,state:o,resize:re,swipeTo:ce}),u({size:f,props:e,count:d,activeIndicator:_}),(0,n.watch)(()=>e.initialSwipe,e=>E(+e)),(0,n.watch)(d,()=>E(o.active)),(0,n.watch)(()=>e.autoplay,ne),(0,n.watch)([vt,yt,()=>e.width,()=>e.height],re),(0,n.watch)(lt(),e=>{e===`visible`?ne():T()}),(0,n.onMounted)(E),(0,n.onActivated)(()=>E(o.active)),Jt(()=>E(o.active)),(0,n.onDeactivated)(T),(0,n.onBeforeUnmount)(T),$e(`touchmove`,oe,{target:a}),()=>(0,n.createVNode)(`div`,{ref:i,class:fr()},[(0,n.createVNode)(`div`,{ref:a,style:y.value,class:fr(`track`,{vertical:e.vertical}),onTouchstartPassive:ae,onTouchend:se,onTouchcancel:se},[r.default?.call(r)]),ue()])}})),[gr,_r]=N(`tabs`),vr=(0,n.defineComponent)({name:gr,props:{count:Re(Number),inited:Boolean,animated:Boolean,duration:Re(O),swipeable:Boolean,lazyRender:Boolean,currentIndex:Re(Number)},emits:[`change`],setup(e,{emit:t,slots:r}){let i=(0,n.ref)(),a=e=>t(`change`,e),o=()=>{let t=r.default?.call(r);return e.animated||e.swipeable?(0,n.createVNode)(hr,{ref:i,loop:!1,class:_r(`track`),duration:e.duration*1e3,touchable:e.swipeable,lazyRender:e.lazyRender,showIndicators:!1,onChange:a},{default:()=>[t]}):t},s=t=>{let n=i.value;n&&n.state.active!==t&&n.swipeTo(t,{immediate:!e.inited})};return(0,n.watch)(()=>e.currentIndex,s),(0,n.onMounted)(()=>{s(e.currentIndex)}),Yt({swipeRef:i}),()=>(0,n.createVNode)(`div`,{class:_r(`content`,{animated:e.animated||e.swipeable})},[o()])}}),[yr,br]=N(`tabs`),xr={type:j(`line`),color:String,border:Boolean,sticky:Boolean,shrink:Boolean,active:A(0),duration:A(.3),animated:Boolean,ellipsis:k,swipeable:Boolean,scrollspy:Boolean,offsetTop:A(0),background:String,lazyRender:k,showHeader:k,lineWidth:O,lineHeight:O,beforeChange:Function,swipeThreshold:A(5),titleActiveColor:String,titleInactiveColor:String},Sr=Symbol(yr),Cr=(0,n.defineComponent)({name:yr,props:xr,emits:[`change`,`scroll`,`rendered`,`clickTab`,`update:active`],setup(e,{emit:t,slots:r}){let i,a,o,s,c,l=(0,n.ref)(),u=(0,n.ref)(),d=(0,n.ref)(),f=(0,n.ref)(),p=ir(),m=st(l),[h,g]=ar(),{children:_,linkChildren:v}=Ze(Sr),y=(0,n.reactive)({inited:!1,position:``,lineStyle:{},currentIndex:-1}),b=(0,n.computed)(()=>_.length>+e.swipeThreshold||!e.ellipsis||e.shrink),x=(0,n.computed)(()=>({borderColor:e.color,background:e.background})),S=(e,t)=>e.name??t,C=(0,n.computed)(()=>{let e=_[y.currentIndex];if(e)return S(e,y.currentIndex)}),w=(0,n.computed)(()=>Dt(e.offsetTop)),ee=(0,n.computed)(()=>e.sticky?w.value+i:0),te=t=>{let n=u.value,r=h.value;if(!b.value||!n||!r||!r[y.currentIndex])return;let i=r[y.currentIndex].$el,a=i.offsetLeft-(n.offsetWidth-i.offsetWidth)/2;s&&s(),s=tr(n,a,t?0:+e.duration)},T=()=>{let t=y.inited;(0,n.nextTick)(()=>{let n=h.value;if(!n||!n[y.currentIndex]||e.type!==`line`||_t(l.value))return;let r=n[y.currentIndex].$el,{lineWidth:i,lineHeight:a}=e,o=r.offsetLeft+r.offsetWidth/2,s={width:M(i),backgroundColor:e.color,transform:`translateX(${o}px) translateX(-50%)`};if(t&&(s.transitionDuration=`${e.duration}s`),je(a)){let e=M(a);s.height=e,s.borderRadius=e}y.lineStyle=s})},ne=e=>{let t=e<y.currentIndex?-1:1;for(;e>=0&&e<_.length;){if(!_[e].disabled)return e;e+=t}},E=(n,r)=>{let i=ne(n);if(!je(i))return;let a=_[i],s=S(a,i),c=y.currentIndex!==null;y.currentIndex!==i&&(y.currentIndex=i,r||te(),T()),s!==e.active&&(t(`update:active`,s),c&&t(`change`,s,a.title)),o&&!e.scrollspy&&pt(Math.ceil(mt(l.value)-w.value))},re=(e,t)=>{let n=_.findIndex((t,n)=>S(t,n)===e);E(n===-1?0:n,t)},ie=(t=!1)=>{if(e.scrollspy){let n=_[y.currentIndex].$el;if(n&&m.value){let r=mt(n,m.value)-ee.value;a=!0,c&&c(),c=nr(m.value,r,t?0:+e.duration,()=>{a=!1})}}},ae=(n,r,i)=>{let{title:a,disabled:o}=_[r],s=S(_[r],r);o||(Gt(e.beforeChange,{args:[s],done:()=>{E(r),ie()}}),Zt(n)),t(`clickTab`,{name:s,title:a,event:i,disabled:o})},oe=e=>{o=e.isFixed,t(`scroll`,e)},se=e=>{(0,n.nextTick)(()=>{re(e),ie(!0)})},ce=()=>{for(let e=0;e<_.length;e++){let{top:t}=Ke(_[e].$el);if(t>ee.value)return e===0?0:e-1}return _.length-1},le=()=>{e.scrollspy&&!a&&E(ce())},ue=()=>{if(e.type===`line`&&_.length)return(0,n.createVNode)(`div`,{class:br(`line`),style:y.lineStyle},null)},de=()=>{let{type:t,border:i,sticky:a}=e,o=[(0,n.createVNode)(`div`,{ref:a?void 0:d,class:[br(`wrap`),{[Ut]:t===`line`&&i}]},[(0,n.createVNode)(`div`,{ref:u,role:`tablist`,class:br(`nav`,[t,{shrink:e.shrink,complete:b.value}]),style:x.value,"aria-orientation":`horizontal`},[r[`nav-left`]?.call(r),_.map(e=>e.renderTitle(ae)),ue(),r[`nav-right`]?.call(r)])]),r[`nav-bottom`]?.call(r)];return a?(0,n.createVNode)(`div`,{ref:d},[o]):o},fe=()=>{T(),(0,n.nextTick)(()=>{var e;te(!0),(e=f.value?.swipeRef.value)==null||e.resize()})};return(0,n.watch)(()=>[e.color,e.duration,e.lineWidth,e.lineHeight],T),(0,n.watch)(vt,fe),(0,n.watch)(()=>e.active,e=>{e!==C.value&&re(e)}),(0,n.watch)(()=>_.length,()=>{y.inited&&(re(e.active),T(),(0,n.nextTick)(()=>{te(!0)}))}),Yt({resize:fe,scrollTo:se}),(0,n.onActivated)(T),Jt(T),Qe(()=>{re(e.active,!0),(0,n.nextTick)(()=>{y.inited=!0,d.value&&(i=Ke(d.value).height),te(!0)})}),or(l,T),$e(`scroll`,le,{target:m,passive:!0}),v({id:p,props:e,setLine:T,scrollable:b,onRendered:(e,n)=>t(`rendered`,e,n),currentName:C,setTitleRefs:g,scrollIntoView:te}),()=>(0,n.createVNode)(`div`,{ref:l,class:br([e.type])},[e.showHeader?e.sticky?(0,n.createVNode)(ur,{container:l.value,offsetTop:w.value,onScroll:oe},{default:()=>[de()]}):de():null,(0,n.createVNode)(vr,{ref:f,count:_.length,inited:y.inited,animated:e.animated,duration:e.duration,swipeable:e.swipeable,lazyRender:e.lazyRender,currentIndex:y.currentIndex,onChange:E},{default:()=>[r.default?.call(r)]})])}}),wr=Symbol(),Tr=Symbol(),Er=()=>(0,n.inject)(Tr,null),Dr=e=>{let t=Er();(0,n.provide)(wr,e),(0,n.provide)(Tr,(0,n.computed)(()=>(t==null||t.value)&&e.value))},[Or,kr]=N(`tab`),Ar=(0,n.defineComponent)({name:Or,props:{id:String,dot:Boolean,type:String,color:String,title:String,badge:O,shrink:Boolean,isActive:Boolean,disabled:Boolean,controls:String,scrollable:Boolean,activeColor:String,inactiveColor:String,showZeroBadge:k},setup(e,{slots:t}){let r=(0,n.computed)(()=>{let t={},{type:n,color:r,disabled:i,isActive:a,activeColor:o,inactiveColor:s}=e;r&&n===`card`&&(t.borderColor=r,i||(a?t.backgroundColor=r:t.color=r));let c=a?o:s;return c&&(t.color=c),t}),i=()=>{let r=(0,n.createVNode)(`span`,{class:kr(`text`,{ellipsis:!e.scrollable})},[t.title?t.title():e.title]);return e.dot||je(e.badge)&&e.badge!==``?(0,n.createVNode)(tn,{dot:e.dot,content:e.badge,showZero:e.showZeroBadge},{default:()=>[r]}):r};return()=>(0,n.createVNode)(`div`,{id:e.id,role:`tab`,class:[kr([e.type,{grow:e.scrollable&&!e.shrink,shrink:e.shrink,active:e.isActive,disabled:e.disabled}])],style:r.value,tabindex:e.disabled?void 0:e.isActive?0:-1,"aria-selected":e.isActive,"aria-disabled":e.disabled||void 0,"aria-controls":e.controls,"data-allow-mismatch":`attribute`},[i()])}}),[jr,Mr]=N(`swipe-item`),Nr=P((0,n.defineComponent)({name:jr,setup(e,{slots:t}){let r,i=(0,n.reactive)({offset:0,inited:!1,mounted:!1}),{parent:a,index:o}=qe(mr);if(!a){process.env.NODE_ENV!==`production`&&console.error(`[Vant] <SwipeItem> must be a child component of <Swipe>.`);return}let s=(0,n.computed)(()=>{let e={},{vertical:t}=a.props;return a.size.value&&(e[t?`height`:`width`]=`${a.size.value}px`),i.offset&&(e.transform=`translate${t?`Y`:`X`}(${i.offset}px)`),e}),c=(0,n.computed)(()=>{let{loop:e,lazyRender:t}=a.props;if(!t||r)return!0;if(!i.mounted)return!1;let n=a.activeIndicator.value,s=a.count.value-1,c=n===0&&e?s:n-1,l=n===s&&e?0:n+1;return r=o.value===n||o.value===c||o.value===l,r});return(0,n.onMounted)(()=>{(0,n.nextTick)(()=>{i.mounted=!0})}),Yt({setOffset:e=>{i.offset=e}}),()=>(0,n.createVNode)(`div`,{class:Mr(),style:s.value},[c.value?t.default?.call(t):null])}})),[Pr,Fr]=N(`tab`),Ir=Oe({},Xt,{dot:Boolean,name:O,badge:O,title:String,disabled:Boolean,titleClass:null,titleStyle:[String,Object],showZeroBadge:k}),Lr=P((0,n.defineComponent)({name:Pr,props:Ir,setup(e,{slots:t}){let r=ir(),i=(0,n.ref)(!1),a=(0,n.getCurrentInstance)(),{parent:o,index:s}=qe(Sr);if(!o){process.env.NODE_ENV!==`production`&&console.error(`[Vant] <Tab> must be a child component of <Tabs>.`);return}let c=()=>e.name??s.value,l=()=>{i.value=!0,o.props.lazyRender&&(0,n.nextTick)(()=>{o.onRendered(c(),e.title)})},u=(0,n.computed)(()=>{let e=c()===o.currentName.value;return e&&!i.value&&l(),e}),d=(0,n.ref)(``),f=(0,n.ref)(``);(0,n.watchEffect)(()=>{let{titleClass:t,titleStyle:n}=e;d.value=t?er(t):``,f.value=n&&typeof n!=`string`?$n(Jn(n)):n});let p=i=>(0,n.createVNode)(Ar,(0,n.mergeProps)({key:r,id:`${o.id}-${s.value}`,ref:o.setTitleRefs(s.value),style:f.value,class:d.value,isActive:u.value,controls:r,scrollable:o.scrollable.value,activeColor:o.props.titleActiveColor,inactiveColor:o.props.titleInactiveColor,onClick:e=>i(a.proxy,s.value,e)},Le(o.props,[`type`,`color`,`shrink`]),Le(e,[`dot`,`badge`,`title`,`disabled`,`showZeroBadge`])),{title:t.title}),m=(0,n.ref)(!u.value);return(0,n.watch)(u,e=>{e?m.value=!1:Ue(()=>{m.value=!0})}),(0,n.watch)(()=>e.title,()=>{o.setLine(),o.scrollIntoView()}),Dr(u),Yt({id:r,renderTitle:p}),()=>{let e=`${o.id}-${s.value}`,{animated:a,swipeable:c,scrollspy:l,lazyRender:d}=o.props;if(!t.default&&!a)return;let f=l||u.value;if(a||c)return(0,n.createVNode)(Nr,{id:r,role:`tabpanel`,class:Fr(`panel-wrapper`,{inactive:m.value}),tabindex:u.value?0:-1,"aria-hidden":!u.value,"aria-labelledby":e,"data-allow-mismatch":`attribute`},{default:()=>[(0,n.createVNode)(`div`,{class:Fr(`panel`)},[t.default?.call(t)])]});let p=i.value||l||!d?t.default?.call(t):null;return(0,n.withDirectives)((0,n.createVNode)(`div`,{id:r,role:`tabpanel`,class:Fr(`panel`),tabindex:f?0:-1,"aria-labelledby":e,"data-allow-mismatch":`attribute`},[p]),[[n.vShow,f]])}}})),Rr=P(Cr),zr={height:A(0),anchors:ze(),duration:A(.3),magnetic:k,contentDraggable:k,lockScroll:Boolean,safeAreaInsetBottom:k},[Br,Vr]=N(`floating-panel`),Hr=P((0,n.defineComponent)({name:Br,props:zr,emits:[`heightChange`,`update:height`],setup(e,{emit:t,slots:r}){let i=.2,a=(0,n.ref)(),o=(0,n.ref)(),s=Bn(()=>+e.height,e=>t(`update:height`,e)),c=(0,n.computed)(()=>({min:e.anchors[0]??100,max:e.anchors[e.anchors.length-1]??Math.round(yt.value*.6)})),l=(0,n.computed)(()=>e.anchors.length>=2?e.anchors:[c.value.min,c.value.max]),u=(0,n.ref)(!1),d=(0,n.computed)(()=>({height:M(c.value.max),transform:`translateY(calc(100% + ${M(-s.value)}))`,transition:u.value?`none`:`transform ${e.duration}s cubic-bezier(0.18, 0.89, 0.32, 1.28)`})),f=e=>{let t=Math.abs(e),{min:n,max:r}=c.value;return t>r?-(r+(t-r)*i):t<n?-(n-(n-t)*i):e},p,m=-1,h=En(),g=e=>{h.start(e),u.value=!0,p=-s.value,m=-1},_=t=>{h.move(t);let n=t.target;if(o.value===n||o.value?.contains(n)){let{scrollTop:n}=o.value;if(m=Math.max(m,n),!e.contentDraggable)return;if(-p<c.value.max)gt(t,!0);else if(!(n<=0&&h.deltaY.value>0)||m>0)return}s.value=-f(h.deltaY.value+p)},v=()=>{if(m=-1,u.value=!1,e.magnetic)s.value=Kt(l.value,s.value);else{let{min:e,max:t}=c.value;s.value=Math.max(e,Math.min(t,s.value))}s.value!==-p&&t(`heightChange`,{height:s.value})};(0,n.watch)(c,()=>{s.value=Kt(l.value,s.value)},{immediate:!0}),kn(a,()=>e.lockScroll||u.value),$e(`touchmove`,_,{target:a});let y=()=>r.header?r.header():(0,n.createVNode)(`div`,{class:Vr(`header`)},[(0,n.createVNode)(`div`,{class:Vr(`header-bar`)},null)]);return()=>(0,n.createVNode)(`div`,{class:[Vr(),{"van-safe-area-bottom":e.safeAreaInsetBottom}],ref:a,style:d.value,onTouchstartPassive:g,onTouchend:v,onTouchcancel:v},[y(),(0,n.createVNode)(`div`,{class:Vr(`content`),ref:o,style:{paddingBottom:M(c.value.max-s.value)}},[r.default?.call(r)])])}})),[Ur,Wr,Gr]=N(`pull-refresh`),Kr=50,qr=[`pulling`,`loosing`,`success`],Jr={disabled:Boolean,modelValue:Boolean,headHeight:A(Kr),successText:String,pullingText:String,loosingText:String,loadingText:String,pullDistance:O,successDuration:A(500),animationDuration:A(300)},Yr=P((0,n.defineComponent)({name:Ur,props:Jr,emits:[`change`,`refresh`,`update:modelValue`],setup(e,{emit:t,slots:r}){let i,a=(0,n.ref)(),o=(0,n.ref)(),s=st(a),c=(0,n.reactive)({status:`normal`,distance:0,duration:0}),l=En(),u=()=>{if(e.headHeight!==Kr)return{height:`${e.headHeight}px`}},d=()=>c.status!==`loading`&&c.status!==`success`&&!e.disabled,f=t=>{let n=+(e.pullDistance||e.headHeight);return t>n&&(t=t<n*2?n+(t-n)/2:n*1.5+(t-n*2)/4),Math.round(t)},p=(n,r)=>{let i=+(e.pullDistance||e.headHeight);c.distance=n,r?c.status=`loading`:n===0?c.status=`normal`:n<i?c.status=`pulling`:c.status=`loosing`,t(`change`,{status:c.status,distance:n})},m=()=>{let{status:t}=c;return t===`normal`?``:e[`${t}Text`]||Gr(t)},h=()=>{let{status:e,distance:t}=c;if(r[e])return r[e]({distance:t});let i=[];return qr.includes(e)&&i.push((0,n.createVNode)(`div`,{class:Wr(`text`)},[m()])),e===`loading`&&i.push((0,n.createVNode)(Cn,{class:Wr(`loading`)},{default:m})),i},g=()=>{c.status=`success`,setTimeout(()=>{p(0)},+e.successDuration)},_=e=>{i=ut(s.value)===0,i&&(c.duration=0,l.start(e))},v=e=>{d()&&_(e)},y=e=>{if(d()){i||_(e);let{deltaY:t}=l;l.move(e),i&&t.value>=0&&l.isVertical()&&(gt(e),p(f(t.value)))}},b=()=>{i&&l.deltaY.value&&d()&&(c.duration=+e.animationDuration,c.status===`loosing`?(p(+e.headHeight,!0),t(`update:modelValue`,!0),(0,n.nextTick)(()=>t(`refresh`))):p(0))};return(0,n.watch)(()=>e.modelValue,t=>{c.duration=+e.animationDuration,t?p(+e.headHeight,!0):r.success||e.successText?g():p(0,!1)}),$e(`touchmove`,y,{target:o}),()=>{let e={transitionDuration:`${c.duration}ms`,transform:c.distance?`translate3d(0,${c.distance}px, 0)`:``};return(0,n.createVNode)(`div`,{ref:a,class:Wr()},[(0,n.createVNode)(`div`,{ref:o,class:Wr(`track`),style:e,onTouchstartPassive:v,onTouchend:b,onTouchcancel:b},[(0,n.createVNode)(`div`,{class:Wr(`head`),style:u()},[h()]),r.default?.call(r)])])}}}));function Xr(e){return Array.isArray(e)?e:Array.from(e)}function Zr(e){return e!=null&&typeof e!=`function`&&we(e.length)}function Qr(e){switch(typeof e){case`number`:case`symbol`:return!1;case`string`:return e.includes(`.`)||e.includes(`[`)||e.includes(`]`)}}function $r(e){return typeof e==`string`||typeof e==`symbol`?e:Object.is(e?.valueOf?.(),-0)?`-0`:String(e)}function ei(e){if(e==null)return``;if(typeof e==`string`)return e;if(Array.isArray(e))return e.map(ei).join(`,`);let t=String(e);return t===`0`&&Object.is(Number(e),-0)?`-0`:t}function ti(e){if(Array.isArray(e))return e.map($r);if(typeof e==`symbol`)return[e];e=ei(e);let t=[],n=e.length;if(n===0)return t;let r=0,i=``,a=``,o=!1;for(e.charCodeAt(0)===46&&(t.push(``),r++);r<n;){let s=e[r];a?s===`\\`&&r+1<n?(r++,i+=e[r]):s===a?a=``:i+=s:o?s===`"`||s===`'`?a=s:s===`]`?(o=!1,t.push(i),i=``):i+=s:s===`[`?(o=!0,i&&=(t.push(i),``)):s===`.`?i&&=(t.push(i),``):i+=s,r++}return i&&t.push(i),t}function ni(e,t,n){if(e==null)return n;switch(typeof t){case`string`:{if(ye(t))return n;let r=e[t];return r===void 0?Qr(t)?ni(e,ti(t),n):n:r}case`number`:case`symbol`:{typeof t==`number`&&(t=$r(t));let r=e[t];return r===void 0?n:r}default:{if(Array.isArray(t))return ri(e,t,n);if(t=Object.is(t?.valueOf(),-0)?`-0`:String(t),ye(t))return n;let r=e[t];return r===void 0?n:r}}}function ri(e,t,n){if(t.length===0)return n;let r=e;for(let e=0;e<t.length;e++){if(r==null||ye(t[e]))return n;r=r[t[e]]}return r===void 0?n:r}function ii(e){return function(t){return ni(t,e)}}function ai(e){return e!==null&&(typeof e==`object`||typeof e==`function`)}function oi(e,t,n){return typeof n==`function`?si(e,t,function e(t,r,i,a,o,s){let c=n(t,r,i,a,o,s);return c===void 0?si(t,r,e,s):!!c},new Map):oi(e,t,()=>void 0)}function si(e,t,n,r){if(t===e)return!0;switch(typeof t){case`object`:return ci(e,t,n,r);case`function`:return Object.keys(t).length>0?si(e,{...t},n,r):xe(e,t);default:return ai(e)?typeof t==`string`?t===``:!0:xe(e,t)}}function ci(e,t,n,r){if(t==null)return!0;if(Array.isArray(t))return ui(e,t,n,r);if(t instanceof Map)return li(e,t,n,r);if(t instanceof Set)return di(e,t,n,r);let i=Object.keys(t);if(e==null||g(e))return i.length===0;if(i.length===0)return!0;if(r?.has(t))return r.get(t)===e;r?.set(t,e);try{for(let a=0;a<i.length;a++){let o=i[a];if(!g(e)&&!(o in e)||t[o]===void 0&&e[o]!==void 0||t[o]===null&&e[o]!==null||!n(e[o],t[o],o,e,t,r))return!1}return!0}finally{r?.delete(t)}}function li(e,t,n,r){if(t.size===0)return!0;if(!(e instanceof Map))return!1;for(let[i,a]of t.entries())if(n(e.get(i),a,i,e,t,r)===!1)return!1;return!0}function ui(e,t,n,r){if(t.length===0)return!0;if(!Array.isArray(e))return!1;let i=new Set;for(let a=0;a<t.length;a++){let o=t[a],s=!1;for(let c=0;c<e.length;c++){if(i.has(c))continue;let l=e[c],u=!1;if(n(l,o,a,e,t,r)&&(u=!0),u){i.add(c),s=!0;break}}if(!s)return!1}return!0}function di(e,t,n,r){return t.size===0?!0:e instanceof Set?ui([...e],[...t],n,r):!1}function fi(e,t){return oi(e,t,()=>void 0)}function pi(e){return e=ve(e),t=>fi(t,e)}function mi(e,t){return he(e,(n,r,i,a)=>{let o=t?.(n,r,i,a);if(o!==void 0)return o;if(typeof e==`object`){if(y(e)===`[object Object]`&&typeof e.constructor!=`function`){let t={};return a.set(e,t),D(t,e,i,a),t}switch(Object.prototype.toString.call(e)){case S:case x:case C:{let t=new e.constructor(e?.valueOf());return D(t,e),t}case w:{let t={};return D(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}})}function hi(e){return mi(e)}var gi=/^(?:0|[1-9]\d*)$/;function _i(e,t=2**53-1){switch(typeof e){case`number`:return Number.isInteger(e)&&e>=0&&e<t;case`symbol`:return!1;case`string`:return gi.test(e)}}function vi(e){return typeof e==`object`&&!!e&&y(e)===`[object Arguments]`}function yi(e,t){let n;if(n=Array.isArray(t)?t:typeof t==`string`&&Qr(t)&&e?.[t]==null?ti(t):[t],n.length===0)return!1;let r=e;for(let e=0;e<n.length;e++){let t=n[e];if((r==null||!Object.hasOwn(r,t))&&!((Array.isArray(r)||vi(r))&&_i(t)&&t<r.length))return!1;r=r[t]}return!0}function bi(e,t){switch(typeof e){case`object`:Object.is(e?.valueOf(),-0)&&(e=`-0`);break;case`number`:e=$r(e);break}return t=hi(t),function(n){let r=ni(n,e);return r===void 0?yi(n,e):t===void 0?r===void 0:fi(r,t)}}function xi(e){if(e==null)return p;switch(typeof e){case`function`:return e;case`object`:return Array.isArray(e)&&e.length===2?bi(e[0],e[1]):pi(e);case`string`:case`symbol`:case`number`:return ii(e)}}function Si(e){if(Zr(e))return l(Xr(e))}function Ci(e){return typeof e==`string`||e instanceof String}function wi(e,t=p){return u(e,xi(t))}function Ti(e){return typeof e==`number`||e instanceof Number}function Ei(e,t=0,n={}){typeof n!=`object`&&(n={});let{leading:r=!1,trailing:i=!0,maxWait:a}=n,o=[,,];r&&(o[0]=`leading`),i&&(o[1]=`trailing`);let s,c=null,l=f(function(...t){s=e.apply(this,t),c=null},t,{edges:o}),u=function(...t){return a!=null&&(c===null&&(c=Date.now()),Date.now()-c>=a)?(s=e.apply(this,t),c=Date.now(),l.cancel(),l.schedule(),s):(l.apply(this,t),s)};return u.cancel=l.cancel,u.flush=()=>(l.flush(),s),u}function Di(e,t,n=0){if(t=Number(t),Object.is(t,-0)&&(t=`-0`),n=Math.min(Number.parseInt(n,10),292),n){let[r,i=0]=t.toString().split(`e`),a=Math[e](Number(`${r}e${Number(i)+n}`));Object.is(a,-0)&&(a=`-0`);let[o,s=0]=a.toString().split(`e`);return Number(`${o}e${Number(s)-n}`)}return Math[e](Number(t))}function Oi(e,t=0){return Di(`ceil`,e,t)}function ki(...e){}function Ai(e){let t=e?.constructor;return e===(typeof t==`function`?t.prototype:Object.prototype)}function ji(e){return _(e)}function Mi(e){if(e==null)return!0;if(Zr(e))return typeof e.splice!=`function`&&typeof e!=`string`&&(typeof Buffer>`u`||!Buffer.isBuffer(e))&&!ji(e)&&!vi(e)?!1:e.length===0;if(typeof e==`object`){if(e instanceof Map||e instanceof Set)return e.size===0;let t=Object.keys(e);return Ai(e)?t.filter(e=>e!==`constructor`).length===0:t.length===0}return!0}function Ni(e,t){return(0,n.getCurrentScope)()?((0,n.onScopeDispose)(e,t),!0):!1}var Pi=new WeakMap,Fi=(...e)=>{let t=e[0],r=(0,n.getCurrentInstance)()?.proxy??(0,n.getCurrentScope)();if(r==null&&!(0,n.hasInjectionContext)())throw Error(`injectLocal must be called in setup`);return r&&Pi.has(r)&&t in Pi.get(r)?Pi.get(r)[t]:(0,n.inject)(...e)},Ii=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var Li=e=>e!==void 0,Ri=e=>e!=null,zi=Object.prototype.toString,Bi=e=>zi.call(e)===`[object Object]`,Vi=()=>{};function Hi(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return n}function Ui(e,t={}){let r,i,a=Vi,o=e=>{clearTimeout(e),a(),a=Vi},s;return c=>{let l=(0,n.toValue)(e),u=(0,n.toValue)(t.maxWait);return r&&o(r),l<=0||u!==void 0&&u<=0?(i&&=(o(i),void 0),Promise.resolve(c())):new Promise((e,n)=>{a=t.rejectOnCancel?n:e,s=c,u&&!i&&(i=setTimeout(()=>{r&&o(r),i=void 0,e(s())},u)),r=setTimeout(()=>{i&&o(i),i=void 0,e(c())},l)})}}function Wi(...e){let t=0,r,i=!0,a=Vi,o,s,c,l,u;!(0,n.isRef)(e[0])&&typeof e[0]==`object`?{delay:s,trailing:c=!0,leading:l=!0,rejectOnCancel:u=!1}=e[0]:[s,c=!0,l=!0,u=!1]=e;let d=()=>{r&&(clearTimeout(r),r=void 0,a(),a=Vi)};return e=>{let f=(0,n.toValue)(s),p=Date.now()-t,m=()=>o=e();return d(),f<=0?(t=Date.now(),m()):(p>f?(t=Date.now(),(l||!i)&&m()):c&&(o=new Promise((e,n)=>{a=u?n:e,r=setTimeout(()=>{t=Date.now(),i=!0,e(m()),d()},Math.max(0,f-p))})),!l&&!r&&(r=setTimeout(()=>i=!0,f)),i=!1,o)}}function Gi(e,t=!1,n=`Timeout`){return new Promise((r,i)=>{t?setTimeout(()=>i(n),e):setTimeout(r,e)})}function Ki(e){return e.endsWith(`rem`)?Number.parseFloat(e)*16:Number.parseFloat(e)}function qi(e){return Array.isArray(e)?e:[e]}function Ji(e){return e||(0,n.getCurrentInstance)()}function Yi(e,t=200,n={}){return Hi(Ui(t,n),e)}function Xi(e,t=200,n=!1,r=!0,i=!1){return Hi(Wi(t,n,r,i),e)}function Zi(e,t=!0,r){Ji(r)?(0,n.onMounted)(e,r):t?e():(0,n.nextTick)(e)}function Qi(e,t=!1){function r(r,{flush:i=`sync`,deep:a=!1,timeout:o,throwOnTimeout:s}={}){let c=null,l=[new Promise(o=>{c=(0,n.watch)(e,e=>{r(e)!==t&&(c?c():(0,n.nextTick)(()=>c?.()),o(e))},{flush:i,deep:a,immediate:!0})})];return o!=null&&l.push(Gi(o,s).then(()=>(0,n.toValue)(e)).finally(()=>c?.())),Promise.race(l)}function i(i,a){if(!(0,n.isRef)(i))return r(e=>e===i,a);let{flush:o=`sync`,deep:s=!1,timeout:c,throwOnTimeout:l}=a??{},u=null,d=[new Promise(r=>{u=(0,n.watch)([e,i],([e,i])=>{t!==(e===i)&&(u?u():(0,n.nextTick)(()=>u?.()),r(e))},{flush:o,deep:s,immediate:!0})})];return c!=null&&d.push(Gi(c,l).then(()=>(0,n.toValue)(e)).finally(()=>(u?.(),(0,n.toValue)(e)))),Promise.race(d)}function a(e){return r(e=>!!e,e)}function o(e){return i(null,e)}function s(e){return i(void 0,e)}function c(e){return r(Number.isNaN,e)}function l(e,t){return r(t=>{let r=Array.from(t);return r.includes(e)||r.includes((0,n.toValue)(e))},t)}function u(e){return d(1,e)}function d(e=1,t){let n=-1;return r(()=>(n+=1,n>=e),t)}return Array.isArray((0,n.toValue)(e))?{toMatch:r,toContains:l,changed:u,changedTimes:d,get not(){return Qi(e,!t)}}:{toMatch:r,toBe:i,toBeTruthy:a,toBeNull:o,toBeNaN:c,toBeUndefined:s,changed:u,changedTimes:d,get not(){return Qi(e,!t)}}}function $i(e){return Qi(e)}function ea(e,t,r){return(0,n.watch)(e,t,{...r,immediate:!0})}function ta(e,t,r){return(0,n.watch)(e,t,{...r,once:!0})}function na(e,t,r){let i;i=(0,n.isRef)(r)?{evaluating:r}:r||{};let{lazy:a=!1,flush:o=`sync`,evaluating:s=void 0,shallow:c=!0,onError:l=globalThis.reportError??Vi}=i,u=(0,n.shallowRef)(!a),d=c?(0,n.shallowRef)(t):(0,n.ref)(t),f=0;return(0,n.watchEffect)(async t=>{if(!u.value)return;f++;let n=f,r=!1;s&&Promise.resolve().then(()=>{s.value=!0});try{let i=await e(e=>{t(()=>{s&&(s.value=!1),r||e()})});n===f&&(d.value=i)}catch(e){l(e)}finally{s&&n===f&&(s.value=!1),r=!0}},{flush:o}),a?(0,n.computed)(()=>(u.value=!0,d.value)):d}var ra=Ii?window:void 0;Ii&&window.document,Ii&&window.navigator,Ii&&window.location;function ia(e){let t=(0,n.toValue)(e);return t?.$el??t}function aa(...e){let t=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),r=(0,n.computed)(()=>{let t=qi((0,n.toValue)(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0});return ea(()=>[r.value?.map(e=>ia(e))??[ra].filter(e=>e!=null),qi((0,n.toValue)(r.value?e[1]:e[0])),qi((0,n.unref)(r.value?e[2]:e[1])),(0,n.toValue)(r.value?e[3]:e[2])],([e,n,r,i],a,o)=>{if(!e?.length||!n?.length||!r?.length)return;let s=Bi(i)?{...i}:i,c=e.flatMap(e=>n.flatMap(n=>r.map(r=>t(e,n,r,s))));o(()=>{c.forEach(e=>e())})},{flush:`post`})}function oa(){let e=(0,n.shallowRef)(!1),t=(0,n.getCurrentInstance)();return t&&(0,n.onMounted)(()=>{e.value=!0},t),e}function sa(e){let t=oa();return(0,n.computed)(()=>(t.value,!!e()))}function ca(e,t,r={}){let{window:i=ra,...a}=r,o,s=sa(()=>i&&`MutationObserver`in i),c=()=>{o&&=(o.disconnect(),void 0)},l=(0,n.watch)((0,n.computed)(()=>{let t=qi((0,n.toValue)(e)).map(ia).filter(Ri);return new Set(t)}),e=>{c(),s.value&&e.size&&(o=new MutationObserver(t),e.forEach(e=>o.observe(e,a)))},{immediate:!0,flush:`post`}),u=()=>o?.takeRecords(),d=()=>{l(),c()};return Ni(d),{isSupported:s,stop:d,takeRecords:u}}var la=500,ua=10;function da(e,t,r){var i,a;let o=(0,n.computed)(()=>ia(e)),s,c,l,u=!1;function d(){s&&=(clearTimeout(s),void 0),c=void 0,l=void 0,u=!1}function f(e){let t=r?.delay;return typeof t==`function`?t(e):t??la}function p(e){var t,n,i;let[a,s,f]=[l,c,u];if(d(),!r?.onMouseUp||!s||!a||!(r==null||(t=r.modifiers)==null)&&t.self&&e.target!==o.value)return;!(r==null||(n=r.modifiers)==null)&&n.prevent&&e.preventDefault(),!(r==null||(i=r.modifiers)==null)&&i.stop&&e.stopPropagation();let p=e.x-s.x,m=e.y-s.y,h=Math.sqrt(p*p+m*m);r.onMouseUp(e.timeStamp-a,h,f)}function m(e){var n,i,a;!(r==null||(n=r.modifiers)==null)&&n.self&&e.target!==o.value||(d(),!(r==null||(i=r.modifiers)==null)&&i.prevent&&e.preventDefault(),!(r==null||(a=r.modifiers)==null)&&a.stop&&e.stopPropagation(),c={x:e.x,y:e.y},l=e.timeStamp,s=setTimeout(()=>{u=!0,t(e)},f(e)))}function h(e){var t,n,i;if(!(r==null||(t=r.modifiers)==null)&&t.self&&e.target!==o.value||!c||r?.distanceThreshold===!1)return;!(r==null||(n=r.modifiers)==null)&&n.prevent&&e.preventDefault(),!(r==null||(i=r.modifiers)==null)&&i.stop&&e.stopPropagation();let a=e.x-c.x,s=e.y-c.y;Math.sqrt(a*a+s*s)>=(r?.distanceThreshold??ua)&&d()}let g={capture:r==null||(i=r.modifiers)==null?void 0:i.capture,once:r==null||(a=r.modifiers)==null?void 0:a.once},_=[aa(o,`pointerdown`,m,g),aa(o,`pointermove`,h,g),aa(o,[`pointerup`,`pointerleave`],p,g)];return()=>_.forEach(e=>e())}var fa=Symbol(`vueuse-ssr-width`);function pa(){let e=(0,n.hasInjectionContext)()?Fi(fa,null):null;return typeof e==`number`?e:void 0}function ma(e,t={}){let{window:r=ra,ssrWidth:i=pa()}=t,a=sa(()=>r&&`matchMedia`in r&&typeof r.matchMedia==`function`),o=(0,n.shallowRef)(typeof i==`number`),s=(0,n.shallowRef)(),c=(0,n.shallowRef)(!1);return(0,n.watchEffect)(()=>{if(o.value){o.value=!a.value,c.value=(0,n.toValue)(e).split(`,`).some(e=>{let t=e.includes(`not all`),n=e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),r=e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),a=!!(n||r);return n&&a&&(a=i>=Ki(n[1])),r&&a&&(a=i<=Ki(r[1])),t?!a:a});return}a.value&&(s.value=r.matchMedia((0,n.toValue)(e)),c.value=s.value.matches)}),aa(s,`change`,e=>{c.value=e.matches},{passive:!0}),(0,n.computed)(()=>c.value)}function ha(e,t,r={}){let{window:i=ra,...a}=r,o,s=sa(()=>i&&`ResizeObserver`in i),c=()=>{o&&=(o.disconnect(),void 0)},l=(0,n.watch)((0,n.computed)(()=>{let t=(0,n.toValue)(e);return Array.isArray(t)?t.map(e=>ia(e)):[ia(t)]}),e=>{if(c(),s.value&&i){o=new ResizeObserver(t);for(let t of e)t&&o.observe(t,a)}},{immediate:!0,flush:`post`}),u=()=>{c(),l()};return Ni(u),{isSupported:s,stop:u}}var ga=1;function _a(e,t={}){let{throttle:r=0,idle:i=200,onStop:a=Vi,onScroll:o=Vi,offset:s={left:0,right:0,top:0,bottom:0},observe:c={mutation:!1},eventListenerOptions:l={capture:!1,passive:!0},behavior:u=`auto`,window:d=ra,onError:f=e=>{console.error(e)}}=t,p=typeof c==`boolean`?{mutation:c}:c,m=(0,n.shallowRef)(0),h=(0,n.shallowRef)(0),g=(0,n.computed)({get(){return m.value},set(e){v(e,void 0)}}),_=(0,n.computed)({get(){return h.value},set(e){v(void 0,e)}});function v(t,r){var i,a;if(!d)return;let o=(0,n.toValue)(e);if(!o)return;(i=o instanceof Document?d.document.body:o)==null||i.scrollTo({top:(0,n.toValue)(r)??_.value,left:(0,n.toValue)(t)??g.value,behavior:(0,n.toValue)(u)});let s=(o==null||(a=o.document)==null?void 0:a.documentElement)||o?.documentElement||o;g!=null&&(m.value=s.scrollLeft),_!=null&&(h.value=s.scrollTop)}let y=(0,n.shallowRef)(!1),b=(0,n.reactive)({left:!0,right:!1,top:!0,bottom:!1}),x=(0,n.reactive)({left:!1,right:!1,top:!1,bottom:!1}),S=e=>{y.value&&(y.value=!1,x.left=!1,x.right=!1,x.top=!1,x.bottom=!1,a(e))},C=Yi(S,r+i),w=e=>{var t;if(!d)return;let n=(e==null||(t=e.document)==null?void 0:t.documentElement)||e?.documentElement||ia(e),{display:r,flexDirection:i,direction:a}=d.getComputedStyle(n),o=a===`rtl`?-1:1,c=n.scrollLeft;x.left=c<m.value,x.right=c>m.value;let l=Math.abs(c*o)<=(s.left||0),u=Math.abs(c*o)+n.clientWidth>=n.scrollWidth-(s.right||0)-ga;r===`flex`&&i===`row-reverse`?(b.left=u,b.right=l):(b.left=l,b.right=u),m.value=c;let f=n.scrollTop;e===d.document&&!f&&(f=d.document.body.scrollTop),x.top=f<h.value,x.bottom=f>h.value;let p=Math.abs(f)<=(s.top||0),g=Math.abs(f)+n.clientHeight>=n.scrollHeight-(s.bottom||0)-ga;r===`flex`&&i===`column-reverse`?(b.top=g,b.bottom=p):(b.top=p,b.bottom=g),h.value=f},ee=e=>{d&&(w(e.target.documentElement??e.target),y.value=!0,C(e),o(e))};return aa(e,`scroll`,r?Xi(ee,r,!0,!1):ee,l),Zi(()=>{try{let t=(0,n.toValue)(e);if(!t)return;w(t)}catch(e){f(e)}}),p?.mutation&&e!=null&&e!==d&&e!==document&&ca(e,()=>{let t=(0,n.toValue)(e);t&&w(t)},{attributes:!0,childList:!0,subtree:!0}),aa(e,`scrollend`,S,l),{x:g,y:_,isScrolling:y,arrivedState:b,directions:x,measure(){let t=(0,n.toValue)(e);d&&t&&w(t)}}}function va(e={}){let{window:t=ra,initialWidth:r=1/0,initialHeight:i=1/0,listenOrientation:a=!0,includeScrollbar:o=!0,type:s=`inner`}=e,c=(0,n.shallowRef)(r),l=(0,n.shallowRef)(i),u=()=>{if(t)if(s===`outer`)c.value=t.outerWidth,l.value=t.outerHeight;else if(s===`visual`&&t.visualViewport){let{width:e,height:n,scale:r}=t.visualViewport;c.value=Math.round(e*r),l.value=Math.round(n*r)}else o?(c.value=t.innerWidth,l.value=t.innerHeight):(c.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight)};u(),Zi(u);let d={passive:!0};return aa(`resize`,u,d),t&&s===`visual`&&t.visualViewport&&aa(t.visualViewport,`resize`,u,d),a&&(0,n.watch)(ma(`(orientation: portrait)`),()=>u()),{width:c,height:l}}var ya=(0,a.useGlobalVar)((0,n.shallowReactive)([]),`utils/layers`);const ba=e=>{let t=Symbol(`layer`),r=(0,n.watch)((0,n.toRef)(e),e=>{e?ya.push(t):wi(ya,e=>e===t)},{immediate:!0});try{(0,n.onUnmounted)(r)}catch{}return[(0,n.computed)(()=>(ya.indexOf(t)+1)*10),(0,n.computed)(()=>Si(ya)===t),r]},xa=(e,t={})=>{let r=(0,n.shallowRef)(!0),[,,i]=ba(r),a=window.$api.showImagePreview({images:e,...t,overlayClass:`!z-2147483646`,className:`!z-2147483646`,onClose(){r.value=!1},showIndex:e.length>1,teleport:`#popups`}),o=window.$router.beforeEach(()=>r.value=!1);return ta(r,()=>{o(),i(),a.show=!1}),{isShowing:(0,n.computed)(()=>a.show),close:()=>{r.value=!1}}};var Sa=((e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n})((0,n.defineComponent)({__name:`DcLoading`,props:{size:{},type:{},color:{},vertical:{type:Boolean},textSize:{},textColor:{}},setup(e){(0,n.useCssVars)(e=>({f9087f1c:r.value}));let t=e,r=(0,n.computed)(()=>Ti(t.size)?`${t.size}px`:t.size);return(e,r)=>{let i=Cn;return(0,n.openBlock)(),(0,n.createBlock)(i,(0,n.normalizeProps)((0,n.guardReactiveProps)(t)),{default:(0,n.withCtx)(()=>[(0,n.renderSlot)(e.$slots,`default`,{},void 0,!0)]),_:3},16)}}}),[[`__scopeId`,`data-v-356358f0`]]),Ca=(0,n.defineComponent)({__name:`DcImage`,props:{src:{},alt:{},previewable:{type:Boolean},retryMax:{default:2},round:{type:Boolean},fit:{},class:{},hideLoading:{type:Boolean},hideError:{type:Boolean},inline:{type:Boolean},style:{type:[Boolean,null,String,Object,Array]},imgProp:{},useList:{},fetchpriority:{default:`auto`},fallback:{}},emits:[`load`,`click`,`error`],setup(e,{expose:t,emit:i}){let a=e,s=na(async()=>{try{return a.src?Ci(a.src)?a.src:await a.src.getUrl():``}catch(e){console.error(e)}return``},``),c=i,l=0,u=!1,d=async()=>{if(u)return p.error.add(s.value),c(`error`);if(l++,m.value=!1,l>a.retryMax){if(!r.uni.resource.Resource.is(a.src)){u=!0,d();return}if(!a.src.localChangeFork()){u=!0,d();return}l=0}await(0,n.nextTick)(),m.value=!0},f=(0,o.useTemp)().$apply(`imageState`,()=>({loaded:new Set,error:new Set})),p=a.useList??f,m=(0,n.shallowRef)(!0),h=()=>{u=!1,l=0,d()};(0,n.watch)(s,h);let g=(0,n.computed)(()=>p.loaded.has(s.value)),_=na(async()=>{try{return a.fallback?Ci(a.fallback)?a.fallback:await a.fallback.getUrl():``}catch(e){console.error(e)}return``},``),v=e=>{c(`click`),a.previewable&&(e.stopPropagation(),xa([s.value],{closeable:!0}))},y=(...e)=>{c(`load`,...e),p.loaded.add(s.value)},b=(0,n.useTemplateRef)(`img`);t({isLoaded:g,imageEl:(0,n.computed)(()=>b.value?.imageRef),imageIns:b});let x=window.$api.NImage;return(t,r)=>{let i=_n;return(0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,null,[m.value?(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(x),(0,n.mergeProps)({key:0,onError:d},a,{"object-fit":e.fit,"preview-disabled":``,alt:e.alt,ref_key:`img`,ref:b,"img-props":{...e.imgProp??{},class:`w-full`,fetchpriority:a.fetchpriority},class:[{"rounded-full!":!!e.round},e.inline?`inline-flex`:`flex`,a.class],style:e.style,onLoad:y,onClick:v,src:(0,n.unref)(s)}),null,16,[`object-fit`,`alt`,`img-props`,`class`,`style`,`src`])),[[n.vShow,!(0,n.unref)(p).error.has((0,n.unref)(s))&&(0,n.unref)(p).loaded.has((0,n.unref)(s))]]):(0,n.createCommentVNode)(``,!0),!(0,n.unref)(p).loaded.has((0,n.unref)(s))&&!(0,n.unref)(p).error.has((0,n.unref)(s))&&!e.hideLoading?((0,n.openBlock)(),(0,n.createElementBlock)(`div`,{key:1,class:(0,n.normalizeClass)([`items-center justify-center`,[{"rounded-full!":!!e.round},e.inline?`inline-flex`:`flex`,a.class]]),style:(0,n.normalizeStyle)(e.style),onClick:r[0]||=e=>c(`click`)},[t.$slots.loading?(0,n.renderSlot)(t.$slots,`loading`,{key:0}):((0,n.openBlock)(),(0,n.createBlock)(Sa,{key:1}))],6)):(0,n.createCommentVNode)(``,!0),(0,n.unref)(p).error.has((0,n.unref)(s))&&!e.hideError?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:2},[e.fallback?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(x),(0,n.mergeProps)({key:0,onError:d},a,{"object-fit":e.fit,"preview-disabled":``,alt:e.alt,"img-props":{...e.imgProp??{},class:`w-full`,fetchpriority:a.fetchpriority},class:[{"rounded-full!":!!e.round},e.inline?`inline-flex`:`flex`,a.class],style:e.style,src:(0,n.unref)(_)}),null,16,[`object-fit`,`alt`,`img-props`,`class`,`style`,`src`])):((0,n.openBlock)(),(0,n.createElementBlock)(`div`,{key:1,class:(0,n.normalizeClass)([`flex-col items-center justify-center`,[{"rounded-full!":!!e.round},e.inline?`inline-flex`:`flex`,a.class]]),onClick:r[1]||=(0,n.withModifiers)(()=>{(0,n.unref)(p).error.delete((0,n.unref)(s)),h()},[`stop`])},[t.$slots.loading?(0,n.renderSlot)(t.$slots,`loading`,{key:0}):((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:1},[(0,n.createVNode)(i,{name:`warning-o`,size:`2.5rem`,color:`var(--van-text-color-2)`}),r[2]||=(0,n.createElementVNode)(`div`,{class:`text-sm text-(--van-text-color-2)`},`点击重试`,-1)],64))],2))],64)):(0,n.createCommentVNode)(``,!0)],64)}}}),wa=(0,n.defineComponent)({__name:`DcImagedIcon`,props:{icon:{},bgColor:{},sizeSpacing:{}},setup(e){return(t,a)=>{let o=i.NIcon;return(0,n.unref)(r.uni).image.Image.is(e.icon)||(0,n.unref)(r.uni).resource.Resource.is(e.icon)?((0,n.openBlock)(),(0,n.createBlock)(Ca,{key:0,class:`aspect-square size-[calc(var(--spacing)*var(--box-size))] shrink-0`,src:(0,n.unref)(r.uni).resource.Resource.is(e.icon)?(0,n.unref)(r.uni).image.Image.create(e.icon):e.icon,round:``,fit:`cover`,style:(0,n.normalizeStyle)(`--box-size:${e.sizeSpacing};background-color:${e.bgColor??` var(--color-gray-200)`};`)},null,8,[`src`,`style`])):((0,n.openBlock)(),(0,n.createElementBlock)(`div`,{key:1,class:`flex aspect-square size-[calc(var(--spacing)*var(--box-size))] items-center justify-center rounded-full bg-gray-200`,style:(0,n.normalizeStyle)(`--box-size:${e.sizeSpacing};background-color:${e.bgColor??` var(--color-gray-200)`};`)},[(0,n.createVNode)(o,{color:`var(--p-color)`,size:`calc(var(--spacing) * ${e.sizeSpacing/10*6.5})`},{default:(0,n.withCtx)(()=>[((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(e.icon)))]),_:1},8,[`size`])],4))}}}),Ta=(0,n.defineComponent)({__name:`DcAuthorIcon`,props:{author:{},sizeSpacing:{}},setup(e){let t=e,i=(0,n.computed)(()=>Te(t.author.icon)?r.uni.item.Item.authorIcon.get([t.author.$$plugin,t.author.icon]):r.uni.image.Image.create(t.author.icon));return(t,r)=>((0,n.openBlock)(),(0,n.createBlock)(wa,{icon:i.value,sizeSpacing:e.sizeSpacing},null,8,[`icon`,`sizeSpacing`]))}}),Ea=(0,n.defineComponent)({__name:`DcAwait`,props:{promise:{type:Function},autoLoad:{type:Boolean}},setup(e){let t=e,r=(0,n.shallowRef)(),i=async()=>r.value=await t.promise();return(0,n.watch)(()=>[t.promise,t.autoLoad],e=>{t.autoLoad&&i()},{immediate:!0}),(e,t)=>(0,n.renderSlot)(e.$slots,`default`,{load:i,result:r.value})}});function Da(e,t){let r=typeof e==`string`&&!t?`${e}Context`:t,i=Symbol(r);return[t=>{let r=(0,n.inject)(i,t);if(r===void 0)throw Error(`Injection \`${i.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(`, `)}`:`\`${e}\``}`);return r},e=>((0,n.provide)(i,e),e),i]}function Oa(e,t){let{layoutGroup:n,presenceContext:r,config:i}=t,a=n.id&&e.layoutId?`${n.id}-${e.layoutId}`:e.layoutId||void 0;return{...e,layoutId:a,transition:e.transition??i.transition,layoutGroup:n,motionConfig:i,inViewOptions:e.inViewOptions??i.inViewOptions,presenceContext:r,initial:r.initial===!1?r.initial:e.initial===!0?void 0:e.initial}}function ka(e,t){e.indexOf(t)===-1&&e.push(t)}function Aa(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var F=(e,t,n)=>n>t?t:n<e?e:n;function ja(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}var Ma=()=>{},Na=()=>{};typeof process<`u`&&process.env.NODE_ENV!==`production`&&(Ma=(e,t,n)=>{!e&&typeof console<`u`&&console.warn(ja(t,n))},Na=(e,t,n)=>{if(!e)throw Error(ja(t,n))});var Pa={},Fa=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Ia(e){return typeof e==`object`&&!!e}var La=e=>/^0[^.\s]+$/u.test(e);function Ra(e){let t;return()=>(t===void 0&&(t=e()),t)}var I=e=>e,za=(e,t)=>n=>t(e(n)),Ba=(...e)=>e.reduce(za),Va=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r},Ha=class{constructor(){this.subscriptions=[]}add(e){return ka(this.subscriptions,e),()=>Aa(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},L=e=>e*1e3,R=e=>e/1e3;function Ua(e,t){return t?1e3/t*e:0}var Wa=new Set;function Ga(e,t,n){e||Wa.has(t)||(console.warn(ja(t,n)),Wa.add(t))}var Ka=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,qa=1e-7,Ja=12;function Ya(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=Ka(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>qa&&++s<Ja);return o}function Xa(e,t,n,r){if(e===t&&n===r)return I;let i=t=>Ya(t,0,1,e,n);return e=>e===0||e===1?e:Ka(i(e),t,r)}var Za=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Qa=e=>t=>1-e(1-t),$a=Xa(.33,1.53,.69,.99),eo=Qa($a),to=Za(eo),no=e=>(e*=2)<1?.5*eo(e):.5*(2-2**(-10*(e-1))),ro=e=>1-Math.sin(Math.acos(e)),io=Qa(ro),ao=Za(ro),oo=Xa(.42,0,1,1),so=Xa(0,0,.58,1),co=Xa(.42,0,.58,1),lo=e=>Array.isArray(e)&&typeof e[0]!=`number`,uo=e=>Array.isArray(e)&&typeof e[0]==`number`,fo={linear:I,easeIn:oo,easeInOut:co,easeOut:so,circIn:ro,circInOut:ao,circOut:io,backIn:eo,backInOut:to,backOut:$a,anticipate:no},po=e=>typeof e==`string`,mo=e=>{if(uo(e)){Na(e.length===4,`Cubic bezier arrays must contain four numerical values.`,`cubic-bezier-length`);let[t,n,r,i]=e;return Xa(t,n,r,i)}else if(po(e))return Na(fo[e]!==void 0,`Invalid easing type '${e}'`,`invalid-easing-type`),fo[e];return e},ho=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],z={value:null,addProjectionMetrics:null};function go(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i?n:r;return t&&o.add(e),s.has(e)||s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),t&&z.value&&z.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}var _o=40;function vo(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=ho.reduce((e,n)=>(e[n]=go(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=Pa.useManualTiming?i.timestamp:performance.now();n=!1,Pa.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(a-i.timestamp,_o),1)),i.timestamp=a,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:ho.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<ho.length;t++)o[ho[t]].cancel(e)},state:i,steps:o}}var{schedule:B,cancel:yo,state:V,steps:bo}=vo(typeof requestAnimationFrame<`u`?requestAnimationFrame:I,!0),xo;function So(){xo=void 0}var H={now:()=>(xo===void 0&&H.set(V.isProcessing||Pa.useManualTiming?V.timestamp:performance.now()),xo),set:e=>{xo=e,queueMicrotask(So)}},Co={layout:0,mainThread:0,waapi:0},wo=e=>t=>typeof t==`string`&&t.startsWith(e),To=wo(`--`),Eo=wo(`var(--`),Do=e=>Eo(e)?Oo.test(e.split(`/*`)[0].trim()):!1,Oo=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ko(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var Ao={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},jo={...Ao,transform:e=>F(0,1,e)},Mo={...Ao,default:1},No=e=>Math.round(e*1e5)/1e5,Po=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Fo(e){return e==null}var Io=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Lo=(e,t)=>n=>!!(typeof n==`string`&&Io.test(n)&&n.startsWith(e)||t&&!Fo(n)&&Object.prototype.hasOwnProperty.call(n,t)),Ro=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Po);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},zo=e=>F(0,255,e),Bo={...Ao,transform:e=>Math.round(zo(e))},Vo={test:Lo(`rgb`,`red`),parse:Ro(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Bo.transform(e)+`, `+Bo.transform(t)+`, `+Bo.transform(n)+`, `+No(jo.transform(r))+`)`};function Ho(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var Uo={test:Lo(`#`),parse:Ho,transform:Vo.transform},Wo=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Go=Wo(`deg`),U=Wo(`%`),W=Wo(`px`),Ko=Wo(`vh`),qo=Wo(`vw`),Jo={...U,parse:e=>U.parse(e)/100,transform:e=>U.transform(e*100)},Yo={test:Lo(`hsl`,`hue`),parse:Ro(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+U.transform(No(t))+`, `+U.transform(No(n))+`, `+No(jo.transform(r))+`)`},G={test:e=>Vo.test(e)||Uo.test(e)||Yo.test(e),parse:e=>Vo.test(e)?Vo.parse(e):Yo.test(e)?Yo.parse(e):Uo.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Vo.transform(e):Yo.transform(e),getAnimatableNone:e=>{let t=G.parse(e);return t.alpha=0,G.transform(t)}},Xo=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Zo(e){return isNaN(e)&&typeof e==`string`&&(e.match(Po)?.length||0)+(e.match(Xo)?.length||0)>0}var Qo=`number`,$o=`color`,es=`var`,ts=`var(`,ns="${}",rs=/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 is(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(rs,e=>(G.test(e)?(r.color.push(a),i.push($o),n.push(G.parse(e))):e.startsWith(ts)?(r.var.push(a),i.push(es),n.push(e)):(r.number.push(a),i.push(Qo),n.push(parseFloat(e))),++a,ns)).split(ns),indexes:r,types:i}}function as(e){return is(e).values}function os(e){let{split:t,types:n}=is(e),r=t.length;return e=>{let i=``;for(let a=0;a<r;a++)if(i+=t[a],e[a]!==void 0){let t=n[a];t===Qo?i+=No(e[a]):t===$o?i+=G.transform(e[a]):i+=e[a]}return i}}var ss=e=>typeof e==`number`?0:G.test(e)?G.getAnimatableNone(e):e;function cs(e){let t=as(e);return os(e)(t.map(ss))}var K={test:Zo,parse:as,createTransformer:os,getAnimatableNone:cs};function ls(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function us({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=ls(s,r,e+1/3),a=ls(s,r,e),o=ls(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function ds(e,t){return n=>n>0?t:e}var q=(e,t,n)=>e+(t-e)*n,fs=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},ps=[Uo,Vo,Yo],ms=e=>ps.find(t=>t.test(e));function hs(e){let t=ms(e);if(Ma(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,`color-not-animatable`),!t)return!1;let n=t.parse(e);return t===Yo&&(n=us(n)),n}var gs=(e,t)=>{let n=hs(e),r=hs(t);if(!n||!r)return ds(e,t);let i={...n};return e=>(i.red=fs(n.red,r.red,e),i.green=fs(n.green,r.green,e),i.blue=fs(n.blue,r.blue,e),i.alpha=q(n.alpha,r.alpha,e),Vo.transform(i))},_s=new Set([`none`,`hidden`]);function vs(e,t){return _s.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function ys(e,t){return n=>q(e,t,n)}function bs(e){return typeof e==`number`?ys:typeof e==`string`?Do(e)?ds:G.test(e)?gs:ws:Array.isArray(e)?xs:typeof e==`object`?G.test(e)?gs:Ss:ds}function xs(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>bs(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Ss(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=bs(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function Cs(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]];n[i]=e.values[o]??0,r[a]++}return n}var ws=(e,t)=>{let n=K.createTransformer(t),r=is(e),i=is(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?_s.has(e)&&!i.values.length||_s.has(t)&&!r.values.length?vs(e,t):Ba(xs(Cs(r,i),i.values),n):(Ma(!0,`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.`,`complex-values-different`),ds(e,t))};function Ts(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?q(e,t,n):bs(e)(e,t)}var Es=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>B.update(t,e),stop:()=>yo(t),now:()=>V.isProcessing?V.timestamp:H.now()}},Ds=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},Os=2e4;function ks(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function As(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(ks(r),Os);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:R(i)}}var js=5;function Ms(e,t,n){let r=Math.max(t-js,0);return Ua(n-e(r),t-r)}var J={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Ns=.001;function Ps({duration:e=J.duration,bounce:t=J.bounce,velocity:n=J.velocity,mass:r=J.mass}){let i,a;Ma(e<=L(J.maxDuration),`Spring duration must be 10 seconds or less`,`spring-duration-limit`);let o=1-t;o=F(J.minDamping,J.maxDamping,o),e=F(J.minDuration,J.maxDuration,R(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=Ls(t,o),c=Math.exp(-i);return Ns-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=Ls(t**2,o);return(-i(t)+Ns>0?-1:1)*((a-s)*c)/l}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-Ns+r*i},a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=Is(i,a,s);if(e=L(e),isNaN(c))return{stiffness:J.stiffness,damping:J.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var Fs=12;function Is(e,t,n){let r=n;for(let n=1;n<Fs;n++)r-=e(r)/t(r);return r}function Ls(e,t){return e*Math.sqrt(1-t*t)}var Rs=[`duration`,`bounce`],zs=[`stiffness`,`damping`,`mass`];function Bs(e,t){return t.some(t=>e[t]!==void 0)}function Vs(e){let t={velocity:J.velocity,stiffness:J.stiffness,damping:J.damping,mass:J.mass,isResolvedFromDuration:!1,...e};if(!Bs(e,zs)&&Bs(e,Rs))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*F(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:J.mass,stiffness:i,damping:a}}else{let n=Ps({...e,velocity:0});t={...t,...n,mass:J.mass},t.isResolvedFromDuration=!0}return t}function Hs(e=J.visualDuration,t=J.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=Vs({...n,velocity:-R(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=R(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?J.restSpeed.granular:J.restSpeed.default,i||=v?J.restDelta.granular:J.restDelta.default;let y;if(h<1){let e=Ls(_,h);y=t=>o-Math.exp(-h*_*t)*((m+h*_*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}else if(h===1)y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}let b={calculatedDuration:p&&d||null,next:e=>{let t=y(e);if(p)s.done=e>=d;else{let n=e===0?m:0;h<1&&(n=e===0?L(m):Ms(y,e,t));let a=Math.abs(n)<=r,c=Math.abs(o-t)<=i;s.done=a&&c}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(ks(b),Os),t=Ds(t=>b.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return b}Hs.applyToOptions=e=>{let t=As(e,100,Hs);return e.ease=t.ease,e.duration=L(t.duration),e.type=`keyframes`,e};function Us({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=Hs({keyframes:[f.value,m(f.value)],velocity:Ms(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function Ws(e,t,n){let r=[],i=n||Pa.mix||Ts,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=Ba(Array.isArray(t)?t[n]||I:t,a)),r.push(a)}return r}function Gs(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(Na(a===t.length,`Both input and output ranges must be the same length`,`range-length`),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=Ws(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=Va(e[r],e[r+1],n);return s[r](i)};return n?t=>l(F(e[0],e[a-1],t)):l}function Ks(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Va(0,t,r);e.push(q(n,1,i))}}function qs(e){let t=[0];return Ks(t,e.length-1),t}function Js(e,t){return e.map(e=>e*t)}function Ys(e,t){return e.map(()=>t||co).splice(0,e.length-1)}function Xs({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=lo(r)?r.map(mo):mo(r),a={done:!1,value:t[0]},o=Gs(Js(n&&n.length===t.length?n:qs(t),e),t,{ease:Array.isArray(i)?i:Ys(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var Zs=e=>e!==null;function Qs(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(Zs),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var $s={decay:Us,inertia:Us,tween:Xs,keyframes:Xs,spring:Hs};function ec(e){typeof e.type==`string`&&(e.type=$s[e.type])}var tc=class{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)}},nc=e=>e/100,rc=class extends tc{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==H.now()&&this.tick(H.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},Co.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;ec(e);let{type:t=Xs,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||Xs;process.env.NODE_ENV!==`production`&&s!==Xs&&Na(o.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`,`spring-two-frames`),s!==Xs&&typeof o[0]!=`number`&&(this.mixKeyframes=Ba(nc,Ts(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=ks(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=F(0,1,n)*o}let b=_?{done:!1,value:l[0]}:y.next(v);i&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==Us&&(b.value=Qs(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return R(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+R(e)}get time(){return R(this.currentTime)}set time(e){e=L(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(H.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=R(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Es,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(H.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&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,Co.mainThread--}stopDriver(){this.driver&&=(this.driver.stop(),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)}};function ic(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var ac=e=>e*180/Math.PI,oc=e=>cc(ac(Math.atan2(e[1],e[0]))),sc={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:oc,rotateZ:oc,skewX:e=>ac(Math.atan(e[1])),skewY:e=>ac(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},cc=e=>(e%=360,e<0&&(e+=360),e),lc=oc,uc=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),dc=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),fc={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:uc,scaleY:dc,scale:e=>(uc(e)+dc(e))/2,rotateX:e=>cc(ac(Math.atan2(e[6],e[5]))),rotateY:e=>cc(ac(Math.atan2(-e[2],e[0]))),rotateZ:lc,rotate:lc,skewX:e=>ac(Math.atan(e[4])),skewY:e=>ac(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function pc(e){return e.includes(`scale`)?1:0}function mc(e,t){if(!e||e===`none`)return pc(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=fc,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=sc,i=t}if(!i)return pc(t);let a=r[t],o=i[1].split(`,`).map(gc);return typeof a==`function`?a(o):o[a]}var hc=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return mc(n,t)};function gc(e){return parseFloat(e.trim())}var _c=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],vc=new Set(_c),yc=e=>e===Ao||e===W,bc=new Set([`x`,`y`,`z`]),xc=_c.filter(e=>!bc.has(e));function Sc(e){let t=[];return xc.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith(`scale`)?1:0))}),t}var Cc={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`})=>e.max-e.min-parseFloat(t)-parseFloat(n),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})=>mc(t,`x`),y:(e,{transform:t})=>mc(t,`y`)};Cc.translateX=Cc.x,Cc.translateY=Cc.y;var wc=new Set,Tc=!1,Ec=!1,Dc=!1;function Oc(){if(Ec){let e=Array.from(wc).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=Sc(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}Ec=!1,Tc=!1,wc.forEach(e=>e.complete(Dc)),wc.clear()}function kc(){wc.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ec=!0)})}function Ac(){Dc=!0,kc(),Oc(),Dc=!1}var jc=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(wc.add(this),Tc||(Tc=!0,B.read(kc),B.resolveKeyframes(Oc))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}ic(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),wc.delete(this)}cancel(){this.state===`scheduled`&&(wc.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Mc=e=>e.startsWith(`--`);function Nc(e,t,n){Mc(t)?e.style.setProperty(t,n):e.style[t]=n}var Pc={};function Fc(e,t){let n=Ra(e);return()=>Pc[t]??n()}var Ic=Fc(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Lc=Fc(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Rc=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,zc={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Rc([0,.65,.55,1]),circOut:Rc([.55,0,1,.45]),backIn:Rc([.31,.01,.66,-.59]),backOut:Rc([.33,1.53,.69,.99])};function Bc(e,t){if(e)return typeof e==`function`?Lc()?Ds(e,t):`ease-out`:uo(e)?Rc(e):Array.isArray(e)?e.map(e=>Bc(e,t)||zc.easeOut):zc[e]}function Vc(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=Bc(s,i);Array.isArray(d)&&(u.easing=d),z.value&&Co.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return z.value&&p.finished.finally(()=>{Co.waapi--}),p}function Hc(e){return typeof e==`function`&&`applyToOptions`in e}function Uc({type:e,...t}){return Hc(e)&&Lc()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Wc=class extends tc{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,Na(typeof e.type!=`string`,`Mini animate() doesn't support "type" as a string.`,`mini-spring`);let c=Uc(e);this.animation=Vc(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=Qs(r,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(e):Nc(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(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(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return R(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+R(e)}get time(){return R(Number(this.animation.currentTime)||0)}set time(e){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=L(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&Ic()?(this.animation.timeline=e,I):t(this)}},Gc={anticipate:no,backInOut:to,circInOut:ao};function Kc(e){return e in Gc}function qc(e){typeof e.ease==`string`&&Kc(e.ease)&&(e.ease=Gc[e.ease])}var Jc=10,Yc=class extends Wc{constructor(e){qc(e),ec(e),super(e),e.startTime!==void 0&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new rc({...a,autoplay:!1}),s=Math.max(Jc,H.now()-this.startTime),c=F(0,Jc,s-Jc);t.setWithVelocity(o.sample(Math.max(0,s-c)).value,o.sample(s).value,c),o.stop()}},Xc=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(K.test(e)||e===`0`)&&!e.startsWith(`url(`));function Zc(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Qc(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=Xc(i,t),s=Xc(a,t);return Ma(o===s,`You are trying to animate ${t} from "${i}" to "${a}". "${o?a:i}" is not an animatable value.`,`value-not-animatable`),!o||!s?!1:Zc(e)||(n===`spring`||Hc(n))&&r}function $c(e){e.duration=0,e.type=`keyframes`}var el=new Set([`opacity`,`clipPath`,`filter`,`transform`]),tl=Ra(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function nl(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:s,transformTemplate:c}=t.owner.getProps();return tl()&&n&&el.has(n)&&(n!==`transform`||!c)&&!s&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var rl=40,il=class extends tc{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=H.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u};this.keyframeResolver=new(l?.KeyframeResolver||jc)(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=H.now(),Qc(e,i,a,o)||((Pa.instantAnimations||!s)&&l?.(Qs(e,n,t)),e[0]=e[e.length-1],$c(n),n.repeat=0);let u={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>rl?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},d=!c&&nl(u),f=u.motionValue?.owner?.current,p=d?new Yc({...u,element:f}):new rc(u);p.finished.then(()=>{this.notifyFinished()}).catch(I),this.pendingTimeline&&=(this.stopTimeline=p.attachTimeline(this.pendingTimeline),void 0),this._animation=p}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(),Ac()),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()}};function al(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var ol=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function sl(e){let t=ol.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}var cl=4;function ll(e,t,n=1){Na(n<=cl,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,`max-css-var-depth`);let[r,i]=sl(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return Fa(e)?parseFloat(e):e}return Do(i)?ll(i,t,n+1):i}var ul={type:`spring`,stiffness:500,damping:25,restSpeed:10},dl=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),fl={type:`keyframes`,duration:.8},pl={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},ml=(e,{keyframes:t})=>t.length>2?fl:vc.has(e)?e.startsWith(`scale`)?dl(t[1]):ul:pl,hl=e=>e!==null;function gl(e,{repeat:t,repeatType:n=`loop`},r){let i=e.filter(hl),a=t&&n!==`loop`&&t%2==1?0:i.length-1;return!a||r===void 0?i[a]:r}function _l(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function vl(e,t){let n=e?.[t]??e?.default??e;return n===e?n:_l(n,e)}function yl({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:c,elapsed:l,...u}){return!!Object.keys(u).length}var bl=(e,t,n,r={},i,a)=>o=>{let s=vl(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=L(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};yl(s)||Object.assign(u,ml(e,u)),u.duration&&=L(u.duration),u.repeatDelay&&=L(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&($c(u),u.delay===0&&(d=!0)),(Pa.instantAnimations||Pa.skipAnimations||i?.shouldSkipAnimations)&&(d=!0,$c(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=gl(u.keyframes,s);if(e!==void 0){B.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new rc(u):new il(u)};function xl(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Sl(e,t,n,r){if(typeof t==`function`){let[i,a]=xl(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=xl(r);t=t(n===void 0?e.custom:n,i,a)}return t}function Cl(e,t,n){let r=e.getProps();return Sl(r,t,n===void 0?r.custom:n,e)}var wl=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,..._c]),Tl=30,El=e=>!isNaN(parseFloat(e)),Dl={current:void 0},Ol=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=H.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=H.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=El(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!==`production`&&Ga(!1,`value.onChange(callback) is deprecated. Switch to value.on("change", callback).`),this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new Ha);let n=this.events[e].add(t);return e===`change`?()=>{n(),B.read(()=>{this.events.change.getSize()||this.stop()})}:n}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,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}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||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Dl.current&&Dl.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=H.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Tl)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,Tl);return Ua(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 kl(e,t){return new Ol(e,t)}var Al=e=>Array.isArray(e);function jl(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,kl(n))}function Ml(e){return Al(e)?e[e.length-1]||0:e}function Nl(e,t){let{transitionEnd:n={},transition:r={},...i}=Cl(e,t)||{};i={...i,...n};for(let t in i)jl(e,t,Ml(i[t]))}var Y=e=>!!(e&&e.getVelocity);function Pl(e){return!!(Y(e)&&e.add)}function Fl(e,t){let n=e.getValue(`willChange`);if(Pl(n))return n.add(t);if(!n&&Pa.WillChange){let n=new Pa.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Il(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Ll=`data-`+Il(`framerAppearId`);function Rl(e){return e.props[Ll]}function zl({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Bl(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?_l(a,c):c;let l=a?.reduceMotion;r&&(a=r);let u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||d&&zl(d,t))continue;let o={delay:n,...vl(a||{},t)},c=r.get();if(c!==void 0&&!r.isAnimating&&!Array.isArray(i)&&i===c&&!o.velocity)continue;let f=!1;if(window.MotionHandoffAnimation){let n=Rl(e);if(n){let e=window.MotionHandoffAnimation(n,t,B);e!==null&&(o.startTime=e,f=!0)}}Fl(e,t);let p=l??e.shouldReduceMotion;r.start(bl(t,r,i,p&&wl.has(t)?{type:!1}:o,e,f));let m=r.animation;m&&u.push(m)}if(o){let t=()=>B.update(()=>{o&&Nl(e,o)});u.length?Promise.all(u).then(t):t()}return u}function Vl(e,t,n={}){let r=Cl(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(Bl(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return Hl(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function Hl(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(Vl(c,t,{...o,delay:n+(typeof r==`function`?0:r)+al(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function Ul(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>Vl(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=Vl(e,t,n);else{let i=typeof t==`function`?Cl(e,t,n.custom):t;r=Promise.all(Bl(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var Wl={test:e=>e===`auto`,parse:e=>e},Gl=e=>t=>t.test(e),Kl=[Ao,W,U,Go,qo,Ko,Wl],ql=e=>Kl.find(Gl(e));function Jl(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||La(e)}var Yl=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Xl(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Po)||[];if(!r)return e;let i=n.replace(r,``),a=Yl.has(t)?1:0;return r!==n&&(a*=100),t+`(`+a+i+`)`}var Zl=/\b([a-z-]*)\(.*?\)/gu,Ql={...K,getAnimatableNone:e=>{let t=e.match(Zl);return t?t.map(Xl).join(` `):e}},$l={...K,getAnimatableNone:e=>{let t=K.parse(e);return K.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},eu={...Ao,transform:Math.round},tu={borderWidth:W,borderTopWidth:W,borderRightWidth:W,borderBottomWidth:W,borderLeftWidth:W,borderRadius:W,borderTopLeftRadius:W,borderTopRightRadius:W,borderBottomRightRadius:W,borderBottomLeftRadius:W,width:W,maxWidth:W,height:W,maxHeight:W,top:W,right:W,bottom:W,left:W,inset:W,insetBlock:W,insetBlockStart:W,insetBlockEnd:W,insetInline:W,insetInlineStart:W,insetInlineEnd:W,padding:W,paddingTop:W,paddingRight:W,paddingBottom:W,paddingLeft:W,paddingBlock:W,paddingBlockStart:W,paddingBlockEnd:W,paddingInline:W,paddingInlineStart:W,paddingInlineEnd:W,margin:W,marginTop:W,marginRight:W,marginBottom:W,marginLeft:W,marginBlock:W,marginBlockStart:W,marginBlockEnd:W,marginInline:W,marginInlineStart:W,marginInlineEnd:W,fontSize:W,backgroundPositionX:W,backgroundPositionY:W,rotate:Go,rotateX:Go,rotateY:Go,rotateZ:Go,scale:Mo,scaleX:Mo,scaleY:Mo,scaleZ:Mo,skew:Go,skewX:Go,skewY:Go,distance:W,translateX:W,translateY:W,translateZ:W,x:W,y:W,z:W,perspective:W,transformPerspective:W,opacity:jo,originX:Jo,originY:Jo,originZ:W,zIndex:eu,fillOpacity:jo,strokeOpacity:jo,numOctaves:eu},nu={...tu,color:G,backgroundColor:G,outlineColor:G,fill:G,stroke:G,borderColor:G,borderTopColor:G,borderRightColor:G,borderBottomColor:G,borderLeftColor:G,filter:Ql,WebkitFilter:Ql,mask:$l,WebkitMask:$l},ru=e=>nu[e],iu=new Set([Ql,$l]);function au(e,t){let n=ru(e);return iu.has(n)||(n=K),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var ou=new Set([`auto`,`none`,`0`]);function su(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!ou.has(t)&&is(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=au(n,i)}var cu=class extends jc{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),Do(r))){let i=ll(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!wl.has(n)||e.length!==2)return;let[r,i]=e,a=ql(r),o=ql(i);if(ko(r)!==ko(i)&&Cc[n]){this.needsMeasurement=!0;return}if(a!==o)if(yc(a)&&yc(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else Cc[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||Jl(e[t]))&&n.push(t);n.length&&su(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Cc[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=Cc[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},lu=new Set([`opacity`,`clipPath`,`filter`,`transform`]);function uu(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var du=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function fu(e){return Ia(e)&&`offsetHeight`in e}var{schedule:pu,cancel:mu}=vo(queueMicrotask,!1),hu={x:!1,y:!1};function gu(){return hu.x||hu.y}function _u(e,t){let n=uu(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function vu(e){return!(e.pointerType===`touch`||gu())}function yu(e,t,n={}){let[r,i,a]=_u(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!vu(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var bu=(e,t)=>t?e===t?!0:bu(e,t.parentElement):!1,xu=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,Su=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function Cu(e){return Su.has(e.tagName)||e.isContentEditable===!0}var wu=new WeakSet;function Tu(e){return t=>{t.key===`Enter`&&e(t)}}function Eu(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Du=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Tu(()=>{if(wu.has(n))return;Eu(n,`down`);let e=Tu(()=>{Eu(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>Eu(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function Ou(e){return xu(e)&&!gu()}var ku=new WeakSet;function Au(e,t,n={}){let[r,i,a]=_u(e,n),o=e=>{let r=e.currentTarget;if(!Ou(e)||ku.has(e))return;wu.add(r),n.stopPropagation&&ku.add(e);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),wu.has(r)&&wu.delete(r),Ou(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||bu(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),fu(e)&&(e.addEventListener(`focus`,e=>Du(e,i)),!Cu(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function ju(e){return Ia(e)&&`ownerSVGElement`in e}function Mu(e){return ju(e)&&e.tagName===`svg`}var Nu=[...Kl,G,K],Pu=e=>Nu.find(Gl(e)),Fu=()=>({translate:0,scale:1,origin:0,originPoint:0}),Iu=()=>({x:Fu(),y:Fu()}),Lu=()=>({min:0,max:0}),X=()=>({x:Lu(),y:Lu()}),Ru=new WeakMap;function zu(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Bu(e){return typeof e==`string`||Array.isArray(e)}var Vu=[`initial`,...[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`]];function Hu(e){return zu(e.animate)||Vu.some(t=>Bu(e[t]))}function Uu(e){return!!(Hu(e)||e.variants)}function Wu(e,t,n){for(let r in t){let i=t[r],a=n[r];if(Y(i))e.addValue(r,i);else if(Y(a))e.addValue(r,kl(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,kl(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var Gu={current:null},Ku={current:!1},qu=typeof window<`u`;function Ju(){if(Ku.current=!0,qu)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Gu.current=e.matches;e.addEventListener(`change`,t),t()}else Gu.current=!1}var Yu=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Xu={},Zu=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){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=jc,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=H.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,B.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=Hu(t),this.isVariantNode=Uu(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&Y(t)&&t.set(c[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,Ru.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)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(Ku.current||Ju(),this.shouldReduceMotion=Gu.current),process.env.NODE_ENV!==`production`&&Ga(this.shouldReduceMotion!==!0,`You have Reduced Motion enabled on your device. Animations may not appear as expected.`,`reduced-motion-disabled`),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),yo(this.notifyUpdate),yo(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in 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??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&lu.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Wc({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:L(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=vc.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&B.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in Xu){let t=Xu[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.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):X()}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<Yu.length;t++){let n=Yu[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Wu(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 n=this.values.get(e);t!==n&&(n&&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 n=this.values.get(e);return n===void 0&&t!==void 0&&(n=kl(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(Fa(n)||La(n))?n=parseFloat(n):!Pu(n)&&K.test(t)&&(n=au(e,t)),this.setBaseTarget(e,Y(n)?n.get():n)),Y(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=Sl(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!Y(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new Ha),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){pu.render(this.render)}},Qu=class extends Zu{constructor(){super(...arguments),this.KeyframeResolver=cu}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;Y(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}};function $u({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ed({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function td(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function nd(e){return e===void 0||e===1}function rd({scale:e,scaleX:t,scaleY:n}){return!nd(e)||!nd(t)||!nd(n)}function id(e){return rd(e)||ad(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ad(e){return od(e.x)||od(e.y)}function od(e){return e&&e!==`0%`}function sd(e,t,n){return n+t*(e-n)}function cd(e,t,n,r,i){return i!==void 0&&(e=sd(e,i,r)),sd(e,n,r)+t}function ld(e,t=0,n=1,r,i){e.min=cd(e.min,t,n,r,i),e.max=cd(e.max,t,n,r,i)}function ud(e,{x:t,y:n}){ld(e.x,t.translate,t.scale,t.originPoint),ld(e.y,n.translate,n.scale,n.originPoint)}var dd=.999999999999,fd=1.0000000000001;function pd(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&gd(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,ud(e,o)),r&&id(a.latestValues)&&gd(e,a.latestValues))}t.x<fd&&t.x>dd&&(t.x=1),t.y<fd&&t.y>dd&&(t.y=1)}function md(e,t){e.min+=t,e.max+=t}function hd(e,t,n,r,i=.5){ld(e,t,n,q(e.min,e.max,i),r)}function gd(e,t){hd(e.x,t.x,t.scaleX,t.scale,t.originX),hd(e.y,t.y,t.scaleY,t.scale,t.originY)}function _d(e,t){return $u(td(e.getBoundingClientRect(),t))}function vd(e,t,n){let r=_d(e,n),{scroll:i}=t;return i&&(md(r.x,i.offset.x),md(r.y,i.offset.y)),r}var yd={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},bd=_c.length;function xd(e,t,n){let r=``,i=!0;for(let a=0;a<bd;a++){let o=_c[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===(o.startsWith(`scale`)?1:0);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=du(s,tu[o]);if(!c){i=!1;let t=yd[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}return r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function Sd(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(vc.has(e)){o=!0;continue}else if(To(e)){i[e]=n;continue}else{let t=du(n,tu[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=xd(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function Cd(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function wd(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Td={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(W.test(e))e=parseFloat(e);else return e;return`${wd(e,t.target.x)}% ${wd(e,t.target.y)}%`}},Ed={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=K.parse(e);if(i.length>5)return r;let a=K.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=q(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},Dd={borderRadius:{...Td,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:Td,borderTopRightRadius:Td,borderBottomLeftRadius:Td,borderBottomRightRadius:Td,boxShadow:Ed};function Od(e){for(let t in e)Dd[t]=e[t],To(t)&&(Dd[t].isCSSVariable=!0)}function kd(e,{layout:t,layoutId:n}){return vc.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!Dd[e]||e===`opacity`)}function Ad(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(Y(r[t])||i&&Y(i[t])||kd(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function jd(e){return window.getComputedStyle(e)}var Md=class extends Qu{constructor(){super(...arguments),this.type=`html`,this.renderInstance=Cd}readValueFromInstance(e,t){if(vc.has(t))return this.projection?.isProjecting?pc(t):hc(e,t);{let n=jd(e),r=(To(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return _d(e,t)}build(e,t,n){Sd(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Ad(e,t,n)}},Nd={offset:`stroke-dashoffset`,array:`stroke-dasharray`},Pd={offset:`strokeDashoffset`,array:`strokeDasharray`};function Fd(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Nd:Pd;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var Id=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function Ld(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(Sd(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of Id)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&Fd(d,i,a,o,!1)}var Rd=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`]),zd=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Bd(e,t,n,r){Cd(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Rd.has(n)?n:Il(n),t.attrs[n])}function Vd(e,t,n){let r=Ad(e,t,n);for(let n in e)if(Y(e[n])||Y(t[n])){let t=_c.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var Hd=class extends Qu{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=X}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(vc.has(t)){let e=ru(t);return e&&e.default||0}return t=Rd.has(t)?t:Il(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Vd(e,t,n)}build(e,t,n){Ld(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Bd(e,t,n,r)}mount(e){this.isSVGTag=zd(e.tagName),super.mount(e)}};function Ud(e,t){e.min=t.min,e.max=t.max}function Z(e,t){Ud(e.x,t.x),Ud(e.y,t.y)}function Wd(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var Gd=1e-4,Kd=1-Gd,qd=1+Gd,Jd=.01,Yd=0-Jd,Xd=0+Jd;function Q(e){return e.max-e.min}function Zd(e,t,n){return Math.abs(e-t)<=n}function Qd(e,t,n,r=.5){e.origin=r,e.originPoint=q(t.min,t.max,e.origin),e.scale=Q(n)/Q(t),e.translate=q(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Kd&&e.scale<=qd||isNaN(e.scale))&&(e.scale=1),(e.translate>=Yd&&e.translate<=Xd||isNaN(e.translate))&&(e.translate=0)}function $d(e,t,n,r){Qd(e.x,t.x,n.x,r?r.originX:void 0),Qd(e.y,t.y,n.y,r?r.originY:void 0)}function ef(e,t,n){e.min=n.min+t.min,e.max=e.min+Q(t)}function tf(e,t,n){ef(e.x,t.x,n.x),ef(e.y,t.y,n.y)}function nf(e,t,n){e.min=t.min-n.min,e.max=e.min+Q(t)}function rf(e,t,n){nf(e.x,t.x,n.x),nf(e.y,t.y,n.y)}function af(e,t,n,r,i){return e-=t,e=sd(e,1/n,r),i!==void 0&&(e=sd(e,1/i,r)),e}function of(e,t=0,n=1,r=.5,i,a=e,o=e){if(U.test(t)&&(t=parseFloat(t),t=q(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=q(a.min,a.max,r);e===a&&(s-=t),e.min=af(e.min,t,n,s,i),e.max=af(e.max,t,n,s,i)}function sf(e,t,[n,r,i],a,o){of(e,t[n],t[r],t[i],t.scale,a,o)}var cf=[`x`,`scaleX`,`originX`],lf=[`y`,`scaleY`,`originY`];function uf(e,t,n,r){sf(e.x,t,cf,n?n.x:void 0,r?r.x:void 0),sf(e.y,t,lf,n?n.y:void 0,r?r.y:void 0)}function df(e){return e.translate===0&&e.scale===1}function ff(e){return df(e.x)&&df(e.y)}function pf(e,t){return e.min===t.min&&e.max===t.max}function mf(e,t){return pf(e.x,t.x)&&pf(e.y,t.y)}function hf(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function gf(e,t){return hf(e.x,t.x)&&hf(e.y,t.y)}function _f(e){return Q(e.x)/Q(e.y)}function vf(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function $(e){return[e(`x`),e(`y`)]}function yf(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:a,skewX:o,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),a&&(r+=`rotateY(${a}deg) `),o&&(r+=`skewX(${o}deg) `),s&&(r+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var bf=[`TopLeft`,`TopRight`,`BottomLeft`,`BottomRight`],xf=bf.length,Sf=e=>typeof e==`string`?parseFloat(e):e,Cf=e=>typeof e==`number`||W.test(e);function wf(e,t,n,r,i,a){i?(e.opacity=q(0,n.opacity??1,Ef(r)),e.opacityExit=q(t.opacity??1,0,Df(r))):a&&(e.opacity=q(t.opacity??1,n.opacity??1,r));for(let i=0;i<xf;i++){let a=`border${bf[i]}Radius`,o=Tf(t,a),s=Tf(n,a);o===void 0&&s===void 0||(o||=0,s||=0,o===0||s===0||Cf(o)===Cf(s)?(e[a]=Math.max(q(Sf(o),Sf(s),r),0),(U.test(s)||U.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=q(t.rotate||0,n.rotate||0,r))}function Tf(e,t){return e[t]===void 0?e.borderRadius:e[t]}var Ef=Of(0,.5,io),Df=Of(.5,.95,I);function Of(e,t,n){return r=>r<e?0:r>t?1:n(Va(e,t,r))}function kf(e,t,n){let r=Y(e)?e:kl(e);return r.start(bl(``,r,t,n)),r.animation}function Af(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var jf=(e,t)=>e.depth-t.depth,Mf=class{constructor(){this.children=[],this.isDirty=!1}add(e){ka(this.children,e),this.isDirty=!0}remove(e){Aa(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(jf),this.isDirty=!1,this.children.forEach(e)}};function Nf(e,t){let n=H.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(yo(r),e(a-t))};return B.setup(r,!0),()=>yo(r)}function Pf(e){return Y(e)?e.get():e}var Ff=class{constructor(){this.members=[]}add(e){ka(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;r&&r.isConnected===!1&&n.isPresent!==!1&&!n.snapshot&&Aa(this.members,n)}e.scheduleRender()}remove(e){if(Aa(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){let t=this.members.findIndex(t=>e===t);if(t===0)return!1;let n;for(let e=t;e>=0;e--){let t=this.members[e],r=t.instance;if(t.isPresent!==!1&&(!r||r.isConnected!==!1)){n=t;break}}return n?(this.promote(n),!0):!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender();let r=n.options.layoutDependency,i=e.options.layoutDependency;if(!(r!==void 0&&i!==void 0&&r===i)){let r=n.instance;r&&r.isConnected===!1&&!n.snapshot||(e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0))}let{crossfade:a}=e.options;a===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}},If={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Lf={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Rf=[``,`X`,`Y`,`Z`],zf=1e3,Bf=0;function Vf(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Hf(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Rl(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,B,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Hf(r)}function Uf({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Bf++,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=()=>{this.projectionUpdateScheduled=!1,z.value&&(Lf.nodes=Lf.calculatedTargetDeltas=Lf.calculatedProjections=0),this.nodes.forEach(Kf),this.nodes.forEach($f),this.nodes.forEach(ep),this.nodes.forEach(qf),z.addProjectionMetrics&&z.addProjectionMetrics(Lf)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Mf)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Ha),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=ju(t)&&!Mu(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;B.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=Nf(i,250),If.hasAnimatedSinceResize&&(If.hasAnimatedSinceResize=!1,this.nodes.forEach(Qf)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||sp,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!gf(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...vl(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l)}else t||Qf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}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(),yo(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(tp),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&&Hf(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,t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Yf);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Xf);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Zf),this.nodes.forEach(Wf),this.nodes.forEach(Gf)):this.nodes.forEach(Xf),this.clearAllSnapshots();let e=H.now();V.delta=F(0,1e3/60,e-V.timestamp),V.timestamp=e,V.isProcessing=!0,bo.update.process(V),bo.preRender.process(V),bo.render.process(V),V.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,pu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Jf),this.sharedNodes.forEach(np)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,B.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){B.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Q(this.snapshot.measuredBox.x)&&!Q(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=X(),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=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!ff(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||id(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),dp(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return X();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(pp))){let{scroll:e}=this.root;e&&(md(t.x,e.offset.x),md(t.y,e.offset.y))}return t}removeElementScroll(e){let t=X();if(Z(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&Z(t,e),md(t.x,i.offset.x),md(t.y,i.offset.y))}return t}applyTransform(e,t=!1){let n=X();Z(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&gd(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),id(r.latestValues)&&gd(n,r.latestValues)}return id(this.latestValues)&&gd(n,this.latestValues),n}removeTransform(e){let t=X();Z(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!id(n.latestValues))continue;rd(n.latestValues)&&n.updateSnapshot();let r=X();Z(r,n.measurePageBox()),uf(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return id(this.latestValues)&&uf(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0: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!==V.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=V.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=X(),this.targetWithTransforms=X()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),tf(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Z(this.target,this.layout.layoutBox),ud(this.target,this.targetDelta)):Z(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),z.value&&Lf.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||rd(this.parent.latestValues)||ad(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=X(),this.relativeTargetOrigin=X(),rf(this.relativeTargetOrigin,t,n),Z(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===V.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;Z(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;pd(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=X());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Wd(this.prevProjectionDelta.x,this.projectionDelta.x),Wd(this.prevProjectionDelta.y,this.projectionDelta.y)),$d(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!vf(this.projectionDelta.x,this.prevProjectionDelta.x)||!vf(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),z.value&&Lf.calculatedProjections++}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=Iu(),this.projectionDelta=Iu(),this.projectionDeltaWithTransform=Iu()}setAnimationOrigin(e,t=!1){let n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},a=Iu();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=X(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),l=!c||c.members.length<=1,u=!!(s&&!l&&this.options.crossfade===!0&&!this.path.some(op));this.animationProgress=0;let d;this.mixTargetDelta=t=>{let n=t/1e3;rp(a.x,e.x,n),rp(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(rf(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),ap(this.relativeTarget,this.relativeTargetOrigin,o,n),d&&mf(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||=X(),Z(d,this.relativeTarget)),s&&(this.animationValues=i,wf(i,r,this.latestValues,n,u,l)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(yo(this.pendingAnimation),void 0),this.pendingAnimation=B.update(()=>{If.hasAnimatedSinceResize=!0,Co.layout++,this.motionValue||=kl(0),this.motionValue.jump(0,!1),this.currentAnimation=kf(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{Co.layout--},onComplete:()=>{Co.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),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(zf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&fp(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||X();let t=Q(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=Q(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Z(t,n),gd(t,i),$d(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Ff),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}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:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&Vf(`z`,e,r,this.animationValues);for(let t=0;t<Rf.length;t++)Vf(`rotate${Rf[t]}`,e,r,this.animationValues),Vf(`skew${Rf[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=Pf(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=Pf(t?.pointerEvents)||``),this.hasProjected&&!id(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=yf(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in Dd){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=Dd[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?Pf(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(Yf),this.root.sharedNodes.clear()}}}function Wf(e){e.updateLayout()}function Gf(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;i===`size`?$(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=Q(r);r.min=n[e].min,r.max=r.min+i}):fp(i,t.layoutBox,n)&&$(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=Q(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=Iu();$d(o,n,t.layoutBox);let s=Iu();a?$d(s,e.applyTransform(r,!0),t.measuredBox):$d(s,n,t.layoutBox);let c=!ff(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=X();rf(o,t.layoutBox,i.layoutBox);let s=X();rf(s,n,a.layoutBox),gf(o,s)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=o,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Kf(e){z.value&&Lf.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function qf(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Jf(e){e.clearSnapshot()}function Yf(e){e.clearMeasurements()}function Xf(e){e.isLayoutDirty=!1}function Zf(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Qf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function $f(e){e.resolveTargetDelta()}function ep(e){e.calcProjection()}function tp(e){e.resetSkewAndRotation()}function np(e){e.removeLeadSnapshot()}function rp(e,t,n){e.translate=q(t.translate,0,n),e.scale=q(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ip(e,t,n,r){e.min=q(t.min,n.min,r),e.max=q(t.max,n.max,r)}function ap(e,t,n,r){ip(e.x,t.x,n.x,r),ip(e.y,t.y,n.y,r)}function op(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var sp={duration:.45,ease:[.4,0,.1,1]},cp=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),lp=cp(`applewebkit/`)&&!cp(`chrome/`)?Math.round:I;function up(e){e.min=lp(e.min),e.max=lp(e.max)}function dp(e){up(e.x),up(e.y)}function fp(e,t,n){return e===`position`||e===`preserve-aspect`&&!Zd(_f(t),_f(n),.2)}function pp(e){return e!==e.root&&e.scroll?.wasRoot}var mp=Uf({attachResizeListener:(e,t)=>Af(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),hp={current:void 0},gp=Uf({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!hp.current){let e=new mp({});e.mount(window),e.setOptions({layoutScroll:!0}),hp.current=e}return hp.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),_p={some:0,all:1};function vp(e,t,{root:n,margin:r,amount:i=`some`}={}){let a=uu(e),o=new WeakMap,s=new IntersectionObserver(e=>{e.forEach(e=>{let n=o.get(e.target);if(e.isIntersecting!==!!n)if(e.isIntersecting){let n=t(e.target,e);typeof n==`function`?o.set(e.target,n):s.unobserve(e.target)}else typeof n==`function`&&(n(e),o.delete(e.target))})},{root:n,rootMargin:r,threshold:typeof i==`number`?i:_p[i]});return a.forEach(e=>s.observe(e)),()=>s.disconnect()}var yp=(e,t)=>Math.abs(e-t);function bp(e,t){let n=yp(e.x,t.x),r=yp(e.y,t.y);return Math.sqrt(n**2+r**2)}function xp({current:e}){return e?e.ownerDocument.defaultView:null}function Sp(e){if(e)return e.nodeType===3||e.nodeType===8?Sp(e.nextSibling):e}var[Cp,wp,Tp]=Da(`Motion`),[Ep,Dp,Op]=Da(`LayoutGroup`),kp={reducedMotion:`never`,transition:void 0,nonce:void 0},[Ap,jp,Mp]=Da(`MotionConfig`);function Np(){return Ap((0,n.computed)(()=>kp))}var Pp=function(){},Fp=function(){};process.env.NODE_ENV!==`production`&&(Pp=function(e,t){!e&&typeof console<`u`&&console.warn(t)},Fp=function(e,t){if(!e)throw Error(t)});var Ip={motionAttribute:`data-ap`},Lp=[];function Rp(e){for(let t of e)t&&!Lp.includes(t)&&Lp.push(t)}function zp(e,t,n){if(Array.isArray(e))return e.reduce((e,r)=>{let i=zp(r,t,n);return i?{...e,...i}:e},{});if(typeof e==`object`)return e;if(e&&t){let r=t[e];return typeof r==`function`?r(n):r}}function Bp(e,t,n){let r=zp(e,t,n);if(!r)return;let{transition:i,transitionEnd:a,...o}=r;return{...o,...a}}function Vp(e,t){let n=(e.initial===void 0&&e.variants?t?.initial:e.initial)===!1?[`initial`,`animate`]:[`initial`],r=e.custom??e.presenceContext?.custom;return n.reduce((n,i)=>({...n,...Bp(e[i]||t?.[i],e.variants,r)}),{})}function Hp(e,t){let n=t?.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Up=new Set(`animate.circle.defs.desc.ellipse.g.image.line.filter.marker.mask.metadata.path.pattern.polygon.polyline.rect.stop.svg.switch.symbol.text.tspan.use.view.clipPath.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.foreignObject.linearGradient.radialGradient.textPath`.split(`.`));function Wp(e){return Up.has(e)}var Gp=new WeakMap,Kp=class{constructor(e,t){this.element=null,this.isExiting=!1,this.presenceContainer=null,this.children=new Set,this.features=new Map,this._context=null,this.options=e,this.parent=t,t?.children?.add(this),this.latestValues=Vp(e,this.context),this.type=Wp(this.options.as)?`svg`:`html`}get context(){return this._context||=new Proxy({},{get:(e,t)=>{let n=this.options[t];return Bu(n)||t===`initial`&&n===!1?n:this.parent?.context[t]}}),this._context}updateFeatures(){if(this.visualElement)for(let e of Lp){this.features.has(e.key)||this.features.set(e.key,new e(this));let t=this.features.get(e.key);this.isMounted()&&(t.isMount?t.update():(t.mount(),t.isMount=!0))}}updateOptions(e){this.options=e,this.visualElement?.update({...this.options,whileTap:this.options.whilePress},null)}mount(e){Fp(!!e,`Animation state must be mounted with valid Element`),Gp.set(e,this),this.element=e,e.setAttribute(Ip.motionAttribute,this.options.presenceContext?.presenceId??``),this.visualElement?.mount(e),this.updateFeatures()}beforeUnmount(){this.getSnapshot(this.options,!1)}unmount(){this.parent?.children?.delete(this),Gp.delete(this.element),this.features.forEach(e=>e.unmount?.()),this.visualElement?.unmount()}beforeUpdate(){this.getSnapshot(this.options,void 0)}update(){this.updateFeatures(),this.didUpdate()}tryExitComplete(){this.isExiting||this.options?.layoutId&&this.visualElement.projection?.currentAnimation?.state===`running`||this.options.presenceContext?.onMotionExitComplete?.(this.presenceContainer,this)}setActive(e,t){e===`exit`&&t&&(this.isExiting=!0),this.visualElement?.animationState?.setActive(e,t).then(()=>{e===`exit`&&t&&(this.isExiting=!1,this.options?.layoutId?B.postRender(()=>this.tryExitComplete()):this.tryExitComplete())})}isMounted(){return!!this.element}initVisualElement(e){this.visualElement||(this.visualElement=e(this.options.as,{presenceContext:null,parent:this.parent?.visualElement,props:{...this.options,whileTap:this.options.whilePress},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{...this.latestValues}},reducedMotionConfig:this.options.motionConfig?.reducedMotion}),this.visualElement.parent?.addChild(this.visualElement),this.isMounted()&&this.visualElement.mount(this.element))}getSnapshot(e,t){}didUpdate(){}},qp=class{constructor(e){this.state=e}mount(){}unmount(){}update(){}},Jp=[`initial`,`animate`,`exit`,`whileHover`,`whileDrag`,`whileFocus`,`whilePress`],Yp=Jp.length;function Xp(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&Xp(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<Yp;n++){let r=Jp[n],i=e.props[r];(Bu(i)||i===!1)&&(t[r]=i)}return t}var Zp=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whilePress`,`whileDrag`,`exit`],Qp=[...Zp].reverse(),$p=Zp.length;function em(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function tm(){return{animate:em(!0),whileInView:em(),whileHover:em(),whilePress:em(),whileDrag:em(),whileFocus:em(),exit:em()}}function nm(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Hp(t,e):!1}function rm(e){return Array.isArray(e)}function im(e){return t=>Promise.all(t.map(({animation:t,options:n})=>Ul(e,t,n)))}function am(e){let t=im(e),n=tm(),r=!0,i=t=>(n,r)=>{let i=Cl(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function a(n){t=n(e)}function o(a){let{props:o}=e,s=Xp(e.parent)||{},c=[],l=new Set,u={},d=1/0;for(let t=0;t<$p;t++){let f=Qp[t],p=n[f],m=o[f]===void 0?s[f]:o[f],h=Bu(m),g=f===a?p.isActive:null;g===!1&&(d=t);let _=m===s[f]&&m!==o[f]&&h;if(_&&r&&e.manuallyAnimateOnMount&&(_=!1),p.protectedKeys={...u},!p.isActive&&g===null||!m&&!p.prevProp||zu(m)||typeof m==`boolean`)continue;let v=nm(p.prevProp,m),y=v||f===a&&p.isActive&&!_&&h||t>d&&h,b=!1,x=Array.isArray(m)?m:[m],S=x.reduce(i(f),{});g===!1&&(S={});let{prevResolvedValues:C={}}=p,w={...C,...S},ee=t=>{y=!0,l.has(t)&&(b=!0,l.delete(t)),p.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in w){let t=S[e],n=C[e];if(Object.hasOwnProperty.call(u,e))continue;let r=!1;r=rm(t)&&rm(n)?!Hp(t,n):t!==n,r?t==null?l.add(e):ee(e):t!==void 0&&l.has(e)?ee(e):p.protectedKeys[e]=!0}p.prevProp=m,p.prevResolvedValues=S,p.isActive&&(u={...u,...S}),r&&e.blockInitialAnimation&&(y=!1);let te=_&&v;y&&(!te||b)&&c.push(...x.map(t=>{let n={type:f};if(typeof t==`string`&&r&&!te&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=Cl(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=al(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(l.size){let t={};if(typeof o.initial!=`boolean`){let n=Cl(e,Array.isArray(o.initial)?o.initial[0]:o.initial);n&&n.transition&&(t.transition=n.transition)}l.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),c.push({animation:t})}let f=!!c.length;return r&&(o.initial===!1||o.initial===o.animate)&&!e.manuallyAnimateOnMount&&(f=!1),r=!1,f?t(c):Promise.resolve()}function s(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>{e.animationState?.setActive(t,r)}),n[t].isActive=r;let i=o(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:o,setActive:s,setAnimateFunction:a,getState:()=>n,reset:()=>{n=tm(),r=!0}}}function om(e){return e.style.display===`none`||e.offsetParent===null&&window.getComputedStyle(e).position!==`fixed`}var sm=class extends qp{static#e=this.key=`animation`;constructor(e){super(e);let t=e.visualElement;t.animationState||=am(t)}updateAnimationControlsSubscription(){let{animate:e}=this.state.options;zu(e)&&(this.unmountControls=e.subscribe(this.state.visualElement))}mount(){om(this.state.element)?this.state.setActive(`exit`,!0):this.state.visualElement.animationState?.animateChanges(),this.updateAnimationControlsSubscription()}update(){this.state.visualElement.animationState?.animateChanges();let{animate:e}=this.state.visualElement.getProps(),{animate:t}=this.state.visualElement.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.state.visualElement.animationState.reset(),this.unmountControls?.()}};function cm(e,t){return Wp(e)?new Hd(t):new Md(t)}function lm(e){return{point:{x:e.pageX,y:e.pageY}}}var um=class extends qp{static#e=this.key=`press`;constructor(e){super(e)}isActive(){let{whilePress:e,onPress:t,onPressCancel:n,onPressStart:r}=this.state.options;return!!(e||t||n||r)}register(){let e=this.state.element;!e||!this.isActive()||(this.removePress?.(),this.removePress=Au(e,(e,t)=>{let n=this.state.options;return this.state.setActive(`whilePress`,!0),n.onPressStart&&B.postRender(()=>n.onPressStart(t,lm(t))),(e,{success:t})=>{this.state.setActive(`whilePress`,!1);let n=t?`onPress`:`onPressCancel`,r=this.state.options[n];r&&B.postRender(()=>r(e,lm(e)))}},{useGlobalTarget:this.state.options.globalPressTarget}))}mount(){this.register()}update(){let e=this.state.visualElement.prevProps;!(e?.whilePress||e?.whileTap||e?.onPress||e?.onPressCancel||e?.onPressStart)&&this.isActive()&&this.register()}unmount(){this.removePress?.(),this.removePress=void 0}};function dm(e){return e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1}function fm(e,t=`page`){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}function pm(e){return t=>dm(t)&&e(t,fm(t))}var mm=class extends qp{static#e=this.key=`hover`;constructor(e){super(e)}isActive(){let{whileHover:e,onHoverStart:t,onHoverEnd:n}=this.state.options;return!!(e||t||n)}register(){let e=this.state.element;!e||!this.isActive()||(this.removeHover?.(),this.removeHover=yu(e,(e,t)=>{let n=this.state.options;return this.state.setActive(`whileHover`,!0),n.onHoverStart&&B.postRender(()=>n.onHoverStart(t,fm(t))),e=>{this.state.setActive(`whileHover`,!1);let t=this.state.options.onHoverEnd;t&&B.postRender(()=>t(e,fm(e)))}}))}mount(){this.register()}update(){let e=this.state.visualElement.prevProps;!(e?.whileHover||e?.onHoverStart||e?.onHoverEnd)&&this.isActive()&&this.register()}unmount(){this.removeHover?.(),this.removeHover=void 0}},hm=class extends qp{static#e=this.key=`inView`;constructor(e){super(e)}isActive(){let{whileInView:e,onViewportEnter:t,onViewportLeave:n}=this.state.options;return!!(e||t||n)}startObserver(){let e=this.state.element;if(!e||!this.isActive())return;this.removeObserver?.();let{once:t,...n}=this.state.options.inViewOptions||{};this.removeObserver=vp(e,(e,n)=>{let r=this.state.options;if(this.state.setActive(`whileInView`,!0),r.onViewportEnter&&B.postRender(()=>r.onViewportEnter(n)),!t)return()=>{this.state.setActive(`whileInView`,!1);let e=this.state.options.onViewportLeave;e&&B.postRender(()=>e(n))}},n)}mount(){this.startObserver()}update(){let{props:e,prevProps:t}=this.state.visualElement;[`amount`,`margin`,`root`].some(n=>e.inViewOptions?.[n]!==t?.inViewOptions?.[n])&&this.startObserver()}unmount(){this.removeObserver?.(),this.removeObserver=void 0}};function gm(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var _m=class extends qp{static#e=this.key=`focus`;constructor(e){super(e),this.isFocused=!1}onFocus(){let e=!1;try{e=this.state.element.matches(`:focus-visible`)}catch{e=!0}e&&(this.state.setActive(`whileFocus`,!0),this.isFocused=!0)}onBlur(){this.isFocused&&=(this.state.setActive(`whileFocus`,!1),!1)}mount(){let e=this.state.element;this.removeFocus=Ba(gm(e,`focus`,()=>this.onFocus()),gm(e,`blur`,()=>this.onBlur()))}unmount(){this.removeFocus?.(),this.removeFocus=void 0}};function vm(e){if(e)return e.options.allowProjection===!1?vm(e.parent):e.projection}var ym={borderRadius:{...Td,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:Td,borderTopRightRadius:Td,borderBottomLeftRadius:Td,borderBottomRightRadius:Td,boxShadow:Ed};function bm(e){return typeof e==`object`&&!!e&&`nodeType`in e}var xm=typeof window>`u`,Sm=class extends qp{static#e=this.key=`projection`;constructor(e){super(e),Od(ym),xm||this.initProjection()}initProjection(){let e=this.state.options;this.state.visualElement.projection=new gp(this.state.visualElement.latestValues,e[`data-framer-portal-id`]?void 0:vm(this.state.visualElement.parent)),this.projection=this.state.visualElement.projection,this.projection.isPresent=!0,this.setOptions()}setOptions(){let e=this.state.options,{layoutId:t,layout:n,drag:r=!1,dragConstraints:i=!1}=e;this.projection?.setOptions({layout:n,layoutId:t,alwaysMeasureLayout:!!t||!!r||i&&bm(i),visualElement:this.state.visualElement,animationType:typeof e.layout==`string`?e.layout:`both`,layoutRoot:e.layoutRoot,layoutScroll:e.layoutScroll,crossfade:e.crossfade,onExitComplete:()=>{!this.projection?.isPresent&&this.state.options.layoutId&&!this.state.isExiting&&queueMicrotask(()=>{this.state.options.presenceContext?.onMotionExitComplete?.(this.state.presenceContainer,this.state)})}})}update(){this.setOptions()}mount(){this.projection?.mount(this.state.element)}};function Cm(e,t,n,r){return gm(e,t,pm(n),r)}var wm=new Set([`auto`,`scroll`]),Tm=class{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:i=!1,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=Om(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=bp(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=V;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Em(t,this.transformPagePoint),B.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=Om(e.type===`pointercancel`?this.lastMoveEventInfo:Em(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!dm(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;let o=Em(fm(e),this.transformPagePoint),{point:s}=o,{timestamp:c}=V;this.history=[{...s,timestamp:c}];let{onSessionStart:l}=t;l&&l(e,Om(o,this.history)),this.removeListeners=Ba(Cm(this.contextWindow,`pointermove`,this.handlePointerMove),Cm(this.contextWindow,`pointerup`,this.handlePointerUp),Cm(this.contextWindow,`pointercancel`,this.handlePointerUp)),a&&this.startScrollTracking(a)}isScrollable(e){let t=window.getComputedStyle(e);return t.overflow===`auto`||t.overflow===`scroll`||t.overflowX===`auto`||t.overflowX===`scroll`||t.overflowY===`auto`||t.overflowY===`scroll`}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(wm.has(e.overflowX)||wm.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,passive:!0}),window.addEventListener(`scroll`,this.onWindowScroll,{passive:!0}),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 n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};i.x===0&&i.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),B.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners?.(),this.scrollPositions.clear(),yo(this.updatePoint)}};function Em(e,t){return t?{point:t(e.point)}:e}function Dm(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Om({point:e},t){return{point:e,delta:Dm(e,Am(t)),offset:Dm(e,km(t)),velocity:jm(t,.1)}}function km(e){return e[0]}function Am(e){return e[e.length-1]}function jm(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=Am(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>L(t)));)n--;if(!r)return{x:0,y:0};let a=R(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Mm(e){return(t,n)=>{e&&B.postRender(()=>e(t,n))}}var Nm=class extends qp{constructor(...e){super(...e),this.removePointerDownListener=I}static#e=this.key=`pan`;onPointerDown(e){this.session=new Tm(e,this.createPanHandlers(),{transformPagePoint:this.state.visualElement.getTransformPagePoint(),contextWindow:xp(this.state.visualElement)})}createPanHandlers(){return{onSessionStart:Mm((e,t)=>{let{onPanSessionStart:n}=this.state.options;n&&n(e,t)}),onStart:Mm((e,t)=>{let{onPanStart:n}=this.state.options;n&&n(e,t)}),onMove:(e,t)=>{let{onPan:n}=this.state.options;n&&n(e,t)},onEnd:(e,t)=>{let{onPanEnd:n}=this.state.options;delete this.session,n&&B.postRender(()=>n(e,t))}}}mount(){this.removePointerDownListener=Cm(this.state.element,`pointerdown`,this.onPointerDown.bind(this))}update(){}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};function Pm(e){let t=null;return()=>t===null?(t=e,()=>{t=null}):!1}var Fm=Pm(`dragHorizontal`),Im=Pm(`dragVertical`);function Lm(e){let t=!1;if(e===`y`)t=Im();else if(e===`x`)t=Fm();else{let e=Fm(),n=Im();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function Rm(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?q(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?q(n,e,r.max):Math.min(e,n)),e}var zm=.35;function Bm(e,{top:t,left:n,bottom:r,right:i}){return{x:Vm(e.x,n,i),y:Vm(e.y,t,r)}}function Vm(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function Hm(e=zm){return e===!1?e=0:e===!0&&(e=zm),{x:Um(e,`left`,`right`),y:Um(e,`top`,`bottom`)}}function Um(e,t,n){return{min:Wm(e,t),max:Wm(e,n)}}function Wm(e,t){return typeof e==`number`?e:e[t]||0}function Gm(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}function Km(e,t){return{x:qm(e.x,t.x),y:qm(e.y,t.y)}}function qm(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Jm(e,t){let n=.5,r=Q(e),i=Q(t);return i>r?n=Va(t.min,t.max-r,e.min):r>i&&(n=Va(e.min,e.max-i,t.min)),F(0,1,n)}var Ym=new WeakMap,Xm=class{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=X(),this.state=e}get visualElement(){return this.state.visualElement}start(e,{snapToCursor:t=!1}={}){let n=e=>{t?this.stopAnimation():this.pauseAnimation(),t&&this.snapToCursor(fm(e,`page`).point)},r=(e,t)=>{this.stopAnimation();let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Lm(n),!this.openGlobalLock)||(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),$(e=>{let t=this.getAxisMotionValue(e).get()||0;if(U.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=Q(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&B.postRender(()=>i(e,t)),Fl(this.visualElement,`transform`),this.state.setActive(`whileDrag`,!0))},i=(e,t)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=Qm(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&a(e,t)},a=(e,t)=>this.stop(e,t),o=()=>$(e=>this.getAnimationState(e)===`paused`&&this.getAxisMotionValue(e).animation?.play()),{dragSnapToOrigin:s}=this.getProps();this.panSession=new Tm(e,{onSessionStart:n,onStart:r,onMove:i,onSessionEnd:a,resumeAnimation:o},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:s,contextWindow:xp(this.visualElement),element:this.state.element})}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=t;this.startAnimation(r);let{onDragEnd:i}=this.getProps();i&&B.postRender(()=>i(e,t))}cancel(){this.isDragging=!1;let{projection:e}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:t}=this.getProps();!t&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),this.state.setActive(`whileDrag`,!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!Zm(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=Rm(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&bm(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=Bm(n.layoutBox,e):this.constraints=!1,this.elastic=Hm(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&$(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Gm(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!bm(e))return!1;let n=e;Fp(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let i=vd(n,r.root,this.visualElement.getTransformPagePoint()),a=Km(r.layout.layoutBox,i);if(t){let e=t(ed(a));this.hasMutatedConstraints=!!e,e&&(a=$u(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=$(o=>{if(!Zm(o,t,this.currentDirection))return;let c=s&&s[o]||{};a&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return Fl(this.visualElement,e),n.start(bl(e,n,0,t,this.visualElement,!1))}stopAnimation(){this.visualElement.projection?.isPresent&&$(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){$(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){$(t=>{let{drag:n}=this.getProps();if(!Zm(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t];i.set(e[t]-q(n,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!bm(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};$(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=Jm({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.state.element.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),$(t=>{if(!Zm(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(q(i,a,r[t]))})}addListeners(){if(!this.state.element)return;Ym.set(this.visualElement,this);let e=this.state.element,t=Cm(e,`pointerdown`,e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),n=()=>{let{dragConstraints:e}=this.getProps();bm(e)&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener(`measure`,n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),B.read(n);let a=gm(window,`resize`,()=>this.scalePositionWithinConstraints()),o=r.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&($(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{a(),t(),i(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=zm,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function Zm(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Qm(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var $m=class extends qp{static#e=this.key=`drag`;constructor(e){super(e),this.removeGroupControls=I,this.removeListeners=I,this.controls=new Xm(e)}mount(){let{dragControls:e}=this.state.options;e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||I}unmount(){this.removeGroupControls(),this.removeListeners()}},eh=!1,th={renderer:cm,features:[sm,um,mm,hm,_m,Sm,Nm,$m,class extends qp{static#e=this.key=`layout`;constructor(e){super(e),this.hasMountSettled=!1,Od(ym),e.getSnapshot=this.getSnapshot.bind(this),e.didUpdate=this.didUpdate.bind(this)}updatePrevLead(e){let t=e.getStack();t?.prevLead&&!t.prevLead.snapshot&&(t.prevLead.willUpdate(),eh=!0)}didUpdate(){eh&&(this.state.options.layout||this.state.options.layoutId||this.state.options.drag)&&(eh=!1,this.state.visualElement.projection?.root?.didUpdate())}mount(){let e=this.state.options,t=this.state.options.layoutGroup;if(e.layout||e.layoutId){let n=this.state.visualElement.projection;if(e.layoutId){let e=!om(this.state.element);n.isPresent=e,e?n.promote():n.relegate(),this.updatePrevLead(n)}t?.group?.add(n),If.hasEverUpdated=!0}this.didUpdate(),B.postRender(()=>{this.hasMountSettled=!0})}unmount(){let e=this.state.options.layoutGroup,t=this.state.visualElement.projection;t&&(e?.group&&(this.state.options.layout||this.state.options.layoutId)&&e.group.remove(t),this.state.options.layoutId&&(eh=!0),this.didUpdate())}getSnapshot(e,t){let n=this.state.visualElement.projection,{drag:r,layoutDependency:i,layout:a,layoutId:o}=e;if(!n||!a&&!o&&!r||!this.hasMountSettled)return;eh=!0;let s=this.state.options;(r||s.layoutDependency!==i||i===void 0||Li(t)&&n.isPresent!==t)&&n.willUpdate(),Li(t)&&t!==n.isPresent&&(n.isPresent=t,t?(n.promote(),this.updatePrevLead(n)):n.relegate())}}]},[nh,rh]=Da(`LazyMotionContext`),[ih,ah,oh]=Da(`AnimatePresenceContext`);function sh(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}function ch(){return{transform:{},transformOrigin:{},style:{},vars:{}}}function lh(){return{...ch(),attrs:{}}}function uh(e){let t=ch();Sd(t,e);let n={...t.style};for(let e in t.vars)n[e]=t.vars[e];return Object.keys(n).length===0?null:n}function dh(e,t,n){let r=lh();Ld(r,e,zd(t),void 0,n);let i={};for(let e in r.attrs){let t=Rd.has(e)?e:sh(e);i[t]=r.attrs[e]}return{attrs:i,style:{...r.style,...r.vars}}}function fh(e,t){let r=Cp(null),i=Ep({}),a=Np(),o=ih({}),s=nh({features:(0,n.ref)({}),strict:!1});if(process.env.NODE_ENV!==`production`&&t&&s.strict){let t="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Pp(!1,t):Fp(!1,t)}let c=(0,n.useAttrs)();function l(){return Oa(e,{layoutGroup:i,presenceContext:o,config:a.value})}function u(){return{...c,...l()}}let d=new Kp(u(),r);wp(d),t&&d.initVisualElement(t),(0,n.watch)(s.features,e=>{e.features?.length&&Rp(e.features),e.renderer&&d.initVisualElement(e.renderer),d.updateFeatures()},{immediate:!0,flush:`pre`});function f(){let t=d.type===`svg`,n={...c};Object.keys(c).forEach(e=>{Y(c[e])&&(n[e]=c[e].get())});let r=d.visualElement?.latestValues||d.latestValues,i={...e.style,...t?{}:r};for(let e in i)Y(i[e])&&(i[e]=i[e].get());if(t){let{attrs:t,style:a}=dh({...r,...i},d.options.as,e.style);Object.assign(n,t),i=a}e.drag&&e.dragListener!==!1&&Object.assign(i,{userSelect:`none`,WebkitUserSelect:`none`,WebkitTouchCallout:`none`,touchAction:e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`});let a=uh(i);return a&&(n.style=a),n}let p=(0,n.getCurrentInstance)().proxy;return(0,n.onMounted)(()=>{let e=Sp(p.$el);d.mount(e)}),(0,n.onBeforeUnmount)(()=>d.beforeUnmount()),(0,n.onUnmounted)(()=>{Sp(p.$el)?.isConnected||d.unmount()}),(0,n.onBeforeUpdate)(()=>{d.beforeUpdate(),d.updateOptions(u())}),(0,n.onUpdated)(()=>{d.update()}),{getProps:l,getAttrs:f,layoutGroup:i,state:d}}var ph={ignoreStrict:{type:Boolean},forwardMotionProps:{type:Boolean,default:!1},asChild:{type:Boolean,default:!1},whileDrag:{type:[String,Array,Object]},whileHover:{type:[String,Array,Object]},whilePress:{type:[String,Array,Object]},whileInView:{type:[String,Array,Object]},whileFocus:{type:[String,Array,Object]},custom:{type:[String,Number,Object,Array]},initial:{type:[String,Array,Object,Boolean],default:void 0},animate:{type:[String,Array,Object],default:void 0},exit:{type:[String,Array,Object]},variants:{type:Object},inherit:{type:Boolean},style:{type:Object},transformTemplate:{type:Function},transition:{type:Object},onAnimationComplete:{type:Function},onUpdate:{type:Function},layout:{type:[Boolean,String],default:!1},layoutId:{type:String,default:void 0},layoutScroll:{type:Boolean,default:!1},layoutRoot:{type:Boolean,default:!1},"data-framer-portal-id":{type:String},crossfade:{type:Boolean,default:!0},layoutDependency:{type:null,default:void 0},onBeforeLayoutMeasure:{type:Function},onLayoutMeasure:{type:Function},onLayoutAnimationStart:{type:Function},onLayoutAnimationComplete:{type:Function},globalPressTarget:{type:Boolean},onPressStart:{type:Function},onPress:{type:Function},onPressCancel:{type:Function},onHoverStart:{type:Function},onHoverEnd:{type:Function},inViewOptions:{type:Object},onViewportEnter:{type:Function},onViewportLeave:{type:Function},drag:{type:[Boolean,String]},dragSnapToOrigin:{type:Boolean},dragDirectionLock:{type:Boolean},dragPropagation:{type:Boolean},dragConstraints:{type:[Boolean,Object]},dragElastic:{type:[Boolean,Number,Object],default:.5},dragMomentum:{type:Boolean,default:!0},dragTransition:{type:Object},dragListener:{type:Boolean,default:!0},dragControls:{type:Object},onDragStart:{type:Function},onDragEnd:{type:Function},onDrag:{type:Function},onDirectionLock:{type:Function},onDragTransitionEnd:{type:Function},onMeasureDragConstraints:{type:Function},onPanSessionStart:{type:Function},onPanStart:{type:Function},onPan:{type:Function},onPanEnd:{type:Function}},mh=new Map,hh=new Map;function gh(e){if(!Array.isArray(e))return[e];let t=[];for(let n of e)Array.isArray(n)?t.push(...n):t.push(n);return t}var _h=[`area`,`img`,`input`];function vh(e,t,r){if(typeof e==`string`&&_h.includes(e))return(0,n.h)(e,t);if(e===`template`){if(!r.default)return null;let e=gh(r.default()),i=e.findIndex(e=>e.type!==n.Comment);if(i===-1)return e;let a=e[i];delete a.props?.ref;let o=a.props?(0,n.mergeProps)(t,a.props):t;t.class&&a.props?.class&&delete a.props.class;let s=(0,n.cloneVNode)(a,o);for(let e in o)e.startsWith(`on`)&&(s.props||={},s.props[e]=o[e]);return e.length===1?s:(e[i]=s,e)}return null}function yh(e,t={}){let r=typeof e==`string`,i=r?e:e.name||``,a=t.renderer?mh:hh;if(r&&a?.has(e))return a.get(e);let o=(0,n.defineComponent)({inheritAttrs:!1,props:{...ph,as:{type:[String,Object],default:e||`div`}},name:i?`motion.${i}`:`Motion`,setup(e,{slots:r}){let{getProps:i,getAttrs:a,state:o}=fh(e,t.renderer);function s(){let t=o.element;if((typeof e.as!=`object`||e.asChild)&&t){let{style:e}=a();if(e)for(let[n,r]of Object.entries(e))t.style[n]=r}}return()=>{let t=i(),o=a(),c=e.asChild?`template`:e.as,l={...e.forwardMotionProps?t:{},...o,onVnodeUpdated:s},u=vh(c,l,r);return u===null?(0,n.h)(c,{...l},r):u}}});return r&&a?.set(e,o),o}function bh(e){let t=e?.renderer;return Rp(e?.features||[]),new Proxy({},{get(e,n){return n===`create`?(e,n)=>yh(e,{...n,renderer:t}):yh(n,{renderer:t})}})}var xh=bh(th);xh.create(`div`);var Sh=0;function Ch(e){let t=new WeakMap,n=Np();function r(r){if(e.mode!==`popLayout`)return;let i=r.offsetParent,a=i instanceof HTMLElement&&i.offsetWidth||0,o={height:r.offsetHeight||0,width:r.offsetWidth||0,top:r.offsetTop,left:r.offsetLeft,right:0};o.right=a-o.width-o.left;let s=e.anchorX===`left`?`left: ${o.left}px`:`right: ${o.right}px`,c=`pop-${Sh++}`;r.dataset.motionPopId=c;let l=document.createElement(`style`);n.value.nonce&&(l.nonce=n.value.nonce),t.set(r,l),document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};let n=require(`vue`),r=require(`@delta-comic/model`),i=require(`naive-ui`),a=require(`@delta-comic/utils`),o=require(`@delta-comic/core`),s=require(`vue-router`),c=require(`@delta-comic/plugin`),l=require(`vant`);function u(e){return e[e.length-1]}function d(e,t){let n=e.slice(),r=[],i=0;for(let a=0;a<e.length;a++){if(t(e[a],a,n)){r.push(e[a]);continue}if(!Object.hasOwn(e,a)){delete e[i++];continue}e[i++]=e[a]}return e.length=i,r}var f=class extends Error{constructor(e=`The operation was aborted`){super(e),this.name=`AbortError`}};function p(e,t,{signal:n,edges:r}={}){let i,a=null,o=r!=null&&r.includes(`leading`),s=r==null||r.includes(`trailing`),c=()=>{a!==null&&(e.apply(i,a),i=void 0,a=null)},l=()=>{s&&c(),p()},u=null,d=()=>{u!=null&&clearTimeout(u),u=setTimeout(()=>{u=null,l()},t)},f=()=>{u!==null&&(clearTimeout(u),u=null)},p=()=>{f(),i=void 0,a=null},m=()=>{c()},h=function(...e){if(n?.aborted)return;i=this,a=e;let t=u==null;d(),o&&t&&c()};return h.schedule=d,h.cancel=p,h.flush=m,n?.addEventListener(`abort`,p,{once:!0}),h}function m(e){return e}function h(){}function g(e,{signal:t}={}){return new Promise((n,r)=>{let i=()=>{r(new f)},a=()=>{clearTimeout(o),i()};if(t?.aborted)return i();let o=setTimeout(()=>{t?.removeEventListener(`abort`,a),n()},e);t?.addEventListener(`abort`,a,{once:!0})})}function _(e){return e==null||typeof e!=`object`&&typeof e!=`function`}function v(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function y(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function b(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var x=`[object RegExp]`,S=`[object String]`,C=`[object Number]`,ee=`[object Boolean]`,te=`[object Arguments]`,ne=`[object Symbol]`,w=`[object Date]`,re=`[object Map]`,T=`[object Set]`,ie=`[object Array]`,ae=`[object ArrayBuffer]`,oe=`[object Object]`,se=`[object DataView]`,ce=`[object Uint8Array]`,le=`[object Uint8ClampedArray]`,ue=`[object Uint16Array]`,de=`[object Uint32Array]`,fe=`[object Int8Array]`,pe=`[object Int16Array]`,me=`[object Int32Array]`,he=`[object Float32Array]`,ge=`[object Float64Array]`;function _e(e,t){return ve(e,void 0,e,new Map,t)}function ve(e,t,n,r=new Map,i=void 0){let a=i?.(e,t,n,r);if(a!==void 0)return a;if(_(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=ve(e[a],a,n,r,i);return Object.hasOwn(e,`index`)&&(t.index=e.index),Object.hasOwn(e,`input`)&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=new Map;r.set(e,t);for(let[a,o]of e)t.set(a,ve(o,a,n,r,i));return t}if(e instanceof Set){let t=new Set;r.set(e,t);for(let a of e)t.add(ve(a,void 0,n,r,i));return t}if(typeof Buffer<`u`&&Buffer.isBuffer(e))return e.subarray();if(v(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=ve(e[a],a,n,r,i);return t}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,t),E(t,e,n,r,i),t}if(typeof File<`u`&&e instanceof File){let t=new File([e],e.name,{type:e.type});return r.set(e,t),E(t,e,n,r,i),t}if(typeof Blob<`u`&&e instanceof Blob){let t=new Blob([e],{type:e.type});return r.set(e,t),E(t,e,n,r,i),t}if(e instanceof Error){let t=structuredClone(e);return r.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,t.constructor=e.constructor,E(t,e,n,r,i),t}if(e instanceof Boolean){let t=new Boolean(e.valueOf());return r.set(e,t),E(t,e,n,r,i),t}if(e instanceof Number){let t=new Number(e.valueOf());return r.set(e,t),E(t,e,n,r,i),t}if(e instanceof String){let t=new String(e.valueOf());return r.set(e,t),E(t,e,n,r,i),t}if(typeof e==`object`&&ye(e)){let t=Object.create(Object.getPrototypeOf(e));return r.set(e,t),E(t,e,n,r,i),t}return e}function E(e,t,n=e,r,i){let a=[...Object.keys(t),...y(t)];for(let o=0;o<a.length;o++){let s=a[o],c=Object.getOwnPropertyDescriptor(e,s);(c==null||c.writable)&&(e[s]=ve(t[s],s,n,r,i))}}function ye(e){switch(b(e)){case te:case ie:case ae:case se:case ee:case w:case he:case ge:case fe:case pe:case me:case re:case C:case oe:case x:case T:case S:case ne:case ce:case le:case ue:case de:return!0;default:return!1}}function be(e){return ve(e,void 0,e,new Map,void 0)}function xe(e){return e===`__proto__`}function Se(e){return Array.isArray(e)}function Ce(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function we(e){return e instanceof Error}function Te(e){return typeof e==`function`}function Ee(e){return Number.isSafeInteger(e)&&e>=0}function De(e){return typeof e==`string`}function Oe(e){return e===void 0}function ke(){}var Ae=Object.assign,je=typeof window<`u`,Me=e=>typeof e==`object`&&!!e,Ne=e=>e!=null,Pe=e=>typeof e==`function`,Fe=e=>Me(e)&&Pe(e.then)&&Pe(e.catch),Ie=e=>typeof e==`number`||/^\d+(\.\d+)?$/.test(e),Le=()=>je?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1;function Re(e,t){let n=t.split(`.`),r=e;return n.forEach(e=>{r=Me(r)?r[e]??``:``}),r}function ze(e,t,n){return t.reduce((t,r)=>((!n||e[r]!==void 0)&&(t[r]=e[r]),t),{})}var D=[Number,String],O={type:Boolean,default:!0},Be=e=>({type:e,required:!0}),Ve=()=>({type:Array,default:()=>[]}),k=e=>({type:D,default:e}),A=e=>({type:String,default:e}),He=typeof window<`u`;function Ue(e){return He?requestAnimationFrame(e):-1}function We(e){He&&cancelAnimationFrame(e)}function Ge(e){Ue(()=>Ue(e))}var Ke=e=>e===window,qe=(e,t)=>({top:0,left:0,right:e,bottom:t,width:e,height:t}),Je=e=>{let t=(0,n.unref)(e);if(Ke(t)){let e=t.innerWidth,n=t.innerHeight;return qe(e,n)}return t?.getBoundingClientRect?t.getBoundingClientRect():qe(0,0)};function Ye(e){let t=(0,n.inject)(e,null);if(t){let e=(0,n.getCurrentInstance)(),{link:r,unlink:i,internalChildren:a}=t;return r(e),(0,n.onUnmounted)(()=>i(e)),{parent:t,index:(0,n.computed)(()=>a.indexOf(e))}}return{parent:null,index:(0,n.ref)(-1)}}function Xe(e){let t=[],r=e=>{Array.isArray(e)&&e.forEach(e=>{(0,n.isVNode)(e)&&(t.push(e),e.component?.subTree&&(t.push(e.component.subTree),r(e.component.subTree.children)),e.children&&r(e.children))})};return r(e),t}var Ze=(e,t)=>{let n=e.indexOf(t);return n===-1?e.findIndex(e=>t.key!==void 0&&t.key!==null&&e.type===t.type&&e.key===t.key):n};function Qe(e,t,n){let r=Xe(e.subTree.children);n.sort((e,t)=>Ze(r,e.vnode)-Ze(r,t.vnode));let i=n.map(e=>e.proxy);t.sort((e,t)=>i.indexOf(e)-i.indexOf(t))}function $e(e){let t=(0,n.reactive)([]),r=(0,n.reactive)([]),i=(0,n.getCurrentInstance)();return{children:t,linkChildren:a=>{(0,n.provide)(e,Object.assign({link:e=>{e.proxy&&(r.push(e),t.push(e.proxy),Qe(i,t,r))},unlink:e=>{let n=r.indexOf(e);t.splice(n,1),r.splice(n,1)},children:t,internalChildren:r},a))}}}function et(e){let t;(0,n.onMounted)(()=>{e(),(0,n.nextTick)(()=>{t=!0})}),(0,n.onActivated)(()=>{t&&e()})}function tt(e,t,r={}){if(!He)return;let{target:i=window,passive:a=!1,capture:o=!1}=r,s=!1,c,l=r=>{if(s)return;let i=(0,n.unref)(r);i&&!c&&(i.addEventListener(e,t,{capture:o,passive:a}),c=!0)},u=r=>{if(s)return;let i=(0,n.unref)(r);i&&c&&(i.removeEventListener(e,t,o),c=!1)};(0,n.onUnmounted)(()=>u(i)),(0,n.onDeactivated)(()=>u(i)),et(()=>l(i));let d;return(0,n.isRef)(i)&&(d=(0,n.watch)(i,(e,t)=>{u(t),l(e)})),()=>{d?.(),u(i),s=!0}}var nt,rt;function it(){if(!nt&&(nt=(0,n.ref)(0),rt=(0,n.ref)(0),He)){let e=()=>{nt.value=window.innerWidth,rt.value=window.innerHeight};e(),window.addEventListener(`resize`,e,{passive:!0}),window.addEventListener(`orientationchange`,e,{passive:!0})}return{width:nt,height:rt}}var at=/scroll|auto|overlay/i,ot=He?window:void 0;function st(e){return e.tagName!==`HTML`&&e.tagName!==`BODY`&&e.nodeType===1}function ct(e,t=ot){let n=e;for(;n&&n!==t&&st(n);){let{overflowY:e}=window.getComputedStyle(n);if(at.test(e))return n;n=n.parentNode}return t}function lt(e,t=ot){let r=(0,n.ref)();return(0,n.onMounted)(()=>{e.value&&(r.value=ct(e.value,t))}),r}var ut;function dt(){if(!ut&&(ut=(0,n.ref)(`visible`),He)){let e=()=>{ut.value=document.hidden?`hidden`:`visible`};e(),window.addEventListener(`visibilitychange`,e)}return ut}function ft(e){let t=`scrollTop`in e?e.scrollTop:e.pageYOffset;return Math.max(t,0)}function pt(e,t){`scrollTop`in e?e.scrollTop=t:e.scrollTo(e.scrollX,t)}function mt(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function ht(e){pt(window,e),pt(document.body,e)}function gt(e,t){if(e===window)return 0;let n=t?ft(t):mt();return Je(e).top+n}Le();var _t=e=>e.stopPropagation();function vt(e,t){(typeof e.cancelable!=`boolean`||e.cancelable)&&e.preventDefault(),t&&_t(e)}function yt(e){let t=(0,n.unref)(e);if(!t)return!1;let r=window.getComputedStyle(t),i=r.display===`none`,a=t.offsetParent===null&&r.position!==`fixed`;return i||a}var{width:bt,height:xt}=it();function j(e){if(Ne(e))return Ie(e)?`${e}px`:String(e)}function St(e){if(Ne(e)){if(Array.isArray(e))return{width:j(e[0]),height:j(e[1])};let t=j(e);return{width:t,height:t}}}function Ct(e){let t={};return e!==void 0&&(t.zIndex=+e),t}var wt;function Tt(){if(!wt){let e=document.documentElement,t=e.style.fontSize||window.getComputedStyle(e).fontSize;wt=parseFloat(t)}return wt}function Et(e){return e=e.replace(/rem/g,``),+e*Tt()}function Dt(e){return e=e.replace(/vw/g,``),+e*bt.value/100}function Ot(e){return e=e.replace(/vh/g,``),+e*xt.value/100}function kt(e){if(typeof e==`number`)return e;if(je){if(e.includes(`rem`))return Et(e);if(e.includes(`vw`))return Dt(e);if(e.includes(`vh`))return Ot(e)}return parseFloat(e)}var At=/-(\w)/g,jt=e=>e.replace(At,(e,t)=>t.toUpperCase()),Mt=e=>e.replace(/([A-Z])/g,`-$1`).toLowerCase().replace(/^-/,``),Nt=(e,t,n)=>Math.min(Math.max(e,t),n),{hasOwnProperty:Pt}=Object.prototype;function Ft(e,t,n){let r=t[n];Ne(r)&&(!Pt.call(e,n)||!Me(r)?e[n]=r:e[n]=It(Object(e[n]),r))}function It(e,t){return Object.keys(t).forEach(n=>{Ft(e,t,n)}),e}var Lt={name:`姓名`,tel:`电话`,save:`保存`,clear:`清空`,cancel:`取消`,confirm:`确认`,delete:`删除`,loading:`加载中...`,noCoupon:`暂无优惠券`,nameEmpty:`请填写姓名`,addContact:`添加联系人`,telInvalid:`请填写正确的电话`,vanCalendar:{end:`结束`,start:`开始`,title:`日期选择`,weekdays:[`日`,`一`,`二`,`三`,`四`,`五`,`六`],monthTitle:(e,t)=>`${e}\u5E74${t}\u6708`,rangePrompt:e=>`\u6700\u591A\u9009\u62E9 ${e} \u5929`},vanCascader:{select:`请选择`},vanPagination:{prev:`上一页`,next:`下一页`},vanPullRefresh:{pulling:`下拉即可刷新...`,loosing:`释放即可刷新...`},vanSubmitBar:{label:`合计:`},vanCoupon:{unlimited:`无门槛`,discount:e=>`${e}\u6298`,condition:e=>`\u6EE1${e}\u5143\u53EF\u7528`},vanCouponCell:{title:`优惠券`,count:e=>`${e}\u5F20\u53EF\u7528`},vanCouponList:{exchange:`兑换`,close:`不使用`,enable:`可用`,disabled:`不可用`,placeholder:`输入优惠码`},vanAddressEdit:{area:`地区`,areaEmpty:`请选择地区`,addressEmpty:`请填写详细地址`,addressDetail:`详细地址`,defaultAddress:`设为默认收货地址`},vanAddressList:{add:`新增地址`}},Rt=(0,n.ref)(`zh-CN`),zt=(0,n.reactive)({"zh-CN":Lt}),Bt={messages(){return zt[Rt.value]},use(e,t){Rt.value=e,this.add({[e]:t})},add(e={}){It(zt,e)}};function Vt(e){let t=jt(e)+`.`;return(e,...n)=>{let r=Bt.messages(),i=Re(r,t+e)||Re(r,e);return Pe(i)?i(...n):i}}function Ht(e,t){return t?typeof t==`string`?` ${e}--${t}`:Array.isArray(t)?t.reduce((t,n)=>t+Ht(e,n),``):Object.keys(t).reduce((n,r)=>n+(t[r]?Ht(e,r):``),``):``}function Ut(e){return(t,n)=>(t&&typeof t!=`string`&&(n=t,t=``),t=t?`${e}__${t}`:e,`${t}${Ht(t,n)}`)}function M(e){let t=`van-${e}`;return[t,Ut(t),Vt(t)]}var Wt=`van-hairline`;`${Wt}`,`${Wt}`,`${Wt}`,`${Wt}`,`${Wt}`;var Gt=`${Wt}--top-bottom`;`${Wt}`;var Kt=`van-haptics-feedback`;function qt(e,{args:t=[],done:n,canceled:r,error:i}){if(e){let a=e.apply(null,t);Fe(a)?a.then(e=>{e?n():r&&r()}).catch(i||ke):a?n():r&&r()}else n()}function N(e){return e.install=t=>{let{name:n}=e;n&&(t.component(n,e),t.component(jt(`-${n}`),e))},e}function Jt(e,t){return e.reduce((e,n)=>Math.abs(e-t)<Math.abs(n-t)?e:n)}var Yt=Symbol();function Xt(e){let t=(0,n.inject)(Yt,null);t&&(0,n.watch)(t,t=>{t&&e()})}function Zt(e){let t=(0,n.getCurrentInstance)();t&&Ae(t.proxy,e)}var Qt={to:[String,Object],url:String,replace:Boolean};function $t({to:e,url:t,replace:n,$router:r}){e&&r?r[n?`replace`:`push`](e):t&&(n?location.replace(t):location.href=t)}var[en,tn]=M(`badge`),nn={dot:Boolean,max:D,tag:A(`div`),color:String,offset:Array,content:D,showZero:O,position:A(`top-right`)},rn=N((0,n.defineComponent)({name:en,props:nn,setup(e,{slots:t}){let r=()=>{if(t.content)return!0;let{content:n,showZero:r}=e;return Ne(n)&&n!==``&&(r||n!==0&&n!==`0`)},i=()=>{let{dot:n,max:i,content:a}=e;if(!n&&r())return t.content?t.content():Ne(i)&&Ie(a)&&+a>+i?`${i}+`:a},a=e=>e.startsWith(`-`)?e.replace(`-`,``):`-${e}`,o=(0,n.computed)(()=>{let n={background:e.color};if(e.offset){let[r,i]=e.offset,{position:o}=e,[s,c]=o.split(`-`);t.default?(typeof i==`number`?n[s]=j(s===`top`?i:-i):n[s]=s===`top`?j(i):a(i),typeof r==`number`?n[c]=j(c===`left`?r:-r):n[c]=c===`left`?j(r):a(r)):(n.marginTop=j(i),n.marginLeft=j(r))}return n}),s=()=>{if(r()||e.dot)return(0,n.createVNode)(`div`,{class:tn([e.position,{dot:e.dot,fixed:!!t.default}]),style:o.value},[i()])};return()=>{if(t.default){let{tag:r}=e;return(0,n.createVNode)(r,{class:tn(`wrapper`)},{default:()=>[t.default(),s()]})}return s()}}})),an=2e3,on=()=>++an,sn=e=>{an=e},[cn,ln]=M(`config-provider`),un=Symbol(cn),dn={tag:A(`div`),theme:A(`light`),zIndex:Number,themeVars:Object,themeVarsDark:Object,themeVarsLight:Object,themeVarsScope:A(`local`),iconPrefix:String};function fn(e){return e.replace(/([a-zA-Z])(\d)/g,`$1-$2`)}function pn(e){let t={};return Object.keys(e).forEach(n=>{let r=fn(Mt(n));t[`--van-${r}`]=e[n]}),t}function mn(e={},t={}){Object.keys(e).forEach(n=>{e[n]!==t[n]&&document.documentElement.style.setProperty(n,e[n])}),Object.keys(t).forEach(t=>{e[t]||document.documentElement.style.removeProperty(t)})}(0,n.defineComponent)({name:cn,props:dn,setup(e,{slots:t}){let r=(0,n.computed)(()=>pn(Ae({},e.themeVars,e.theme===`dark`?e.themeVarsDark:e.themeVarsLight)));if(je){let t=()=>{document.documentElement.classList.add(`van-theme-${e.theme}`)},i=(t=e.theme)=>{document.documentElement.classList.remove(`van-theme-${t}`)};(0,n.watch)(()=>e.theme,(e,n)=>{n&&i(n),t()},{immediate:!0}),(0,n.onActivated)(t),(0,n.onDeactivated)(i),(0,n.onBeforeUnmount)(i),(0,n.watch)(r,(t,n)=>{e.themeVarsScope===`global`&&mn(t,n)}),(0,n.watch)(()=>e.themeVarsScope,(e,t)=>{t===`global`&&mn({},r.value),e===`global`&&mn(r.value,{})}),e.themeVarsScope===`global`&&mn(r.value,{})}return(0,n.provide)(un,e),(0,n.watchEffect)(()=>{e.zIndex!==void 0&&sn(e.zIndex)}),()=>(0,n.createVNode)(e.tag,{class:ln(),style:e.themeVarsScope===`local`?r.value:void 0},{default:()=>[t.default?.call(t)]})}});var[hn,gn]=M(`icon`),_n=e=>e?.includes(`/`),vn={dot:Boolean,tag:A(`i`),name:String,size:D,badge:D,color:String,badgeProps:Object,classPrefix:String},yn=N((0,n.defineComponent)({name:hn,props:vn,setup(e,{slots:t}){let r=(0,n.inject)(un,null),i=(0,n.computed)(()=>e.classPrefix||r?.iconPrefix||gn());return()=>{let{tag:r,dot:a,name:o,size:s,badge:c,color:l}=e,u=_n(o);return(0,n.createVNode)(rn,(0,n.mergeProps)({dot:a,tag:r,class:[i.value,u?``:`${i.value}-${o}`],style:{color:l,fontSize:j(s)},content:c},e.badgeProps),{default:()=>[t.default?.call(t),u&&(0,n.createVNode)(`img`,{class:gn(`image`),src:o},null)]})}}})),[bn,xn]=M(`loading`),Sn=Array(12).fill(null).map((e,t)=>(0,n.createVNode)(`i`,{class:xn(`line`,String(t+1))},null)),Cn=(0,n.createVNode)(`svg`,{class:xn(`circular`),viewBox:`25 25 50 50`},[(0,n.createVNode)(`circle`,{cx:`50`,cy:`50`,r:`20`,fill:`none`},null)]),wn={size:D,type:A(`circular`),color:String,vertical:Boolean,textSize:D,textColor:String},Tn=N((0,n.defineComponent)({name:bn,props:wn,setup(e,{slots:t}){let r=(0,n.computed)(()=>Ae({color:e.color},St(e.size))),i=()=>{let i=e.type===`spinner`?Sn:Cn;return(0,n.createVNode)(`span`,{class:xn(`spinner`,e.type),style:r.value},[t.icon?t.icon():i])},a=()=>{if(t.default)return(0,n.createVNode)(`span`,{class:xn(`text`),style:{fontSize:j(e.textSize),color:e.textColor??e.color}},[t.default()])};return()=>{let{type:t,vertical:r}=e;return(0,n.createVNode)(`div`,{class:xn([t,{vertical:r}]),"aria-live":`polite`,"aria-busy":!0},[i(),a()])}}})),En={show:Boolean,zIndex:D,overlay:O,duration:D,teleport:[String,Object],lockScroll:O,lazyRender:O,beforeClose:Function,overlayProps:Object,overlayStyle:Object,overlayClass:null,transitionAppear:Boolean,closeOnClickOverlay:O};function Dn(e,t){return e>t?`horizontal`:t>e?`vertical`:``}function On(){let e=(0,n.ref)(0),t=(0,n.ref)(0),r=(0,n.ref)(0),i=(0,n.ref)(0),a=(0,n.ref)(0),o=(0,n.ref)(0),s=(0,n.ref)(``),c=(0,n.ref)(!0),l=()=>s.value===`vertical`,u=()=>s.value===`horizontal`,d=()=>{r.value=0,i.value=0,a.value=0,o.value=0,s.value=``,c.value=!0};return{move:(n=>{let l=n.touches[0];r.value=(l.clientX<0?0:l.clientX)-e.value,i.value=l.clientY-t.value,a.value=Math.abs(r.value),o.value=Math.abs(i.value),(!s.value||a.value<10&&o.value<10)&&(s.value=Dn(a.value,o.value)),c.value&&(a.value>5||o.value>5)&&(c.value=!1)}),start:(n=>{d(),e.value=n.touches[0].clientX,t.value=n.touches[0].clientY}),reset:d,startX:e,startY:t,deltaX:r,deltaY:i,offsetX:a,offsetY:o,direction:s,isVertical:l,isHorizontal:u,isTap:c}}var kn=0,An=`van-overflow-hidden`;function jn(e,t){let r=On(),i=t=>{r.move(t);let n=r.deltaY.value>0?`10`:`01`,{scrollHeight:i,offsetHeight:a,scrollTop:o}=ct(t.target,e.value),s=`11`;o===0?s=a>=i?`00`:`01`:o+a>=i&&(s=`10`),s!==`11`&&r.isVertical()&&!(parseInt(s,2)&parseInt(n,2))&&vt(t,!0)},a=()=>{document.addEventListener(`touchstart`,r.start),document.addEventListener(`touchmove`,i,{passive:!1}),kn||document.body.classList.add(An),kn++},o=()=>{kn&&(document.removeEventListener(`touchstart`,r.start),document.removeEventListener(`touchmove`,i),kn--,kn||document.body.classList.remove(An))},s=()=>t()&&a(),c=()=>t()&&o();et(s),(0,n.onDeactivated)(c),(0,n.onBeforeUnmount)(c),(0,n.watch)(t,e=>{e?a():o()})}function Mn(e){let t=(0,n.ref)(!1);return(0,n.watch)(e,e=>{e&&(t.value=e)},{immediate:!0}),e=>()=>t.value?e():null}var Nn=()=>{let{scopeId:e}=(0,n.getCurrentInstance)()?.vnode||{};return e?{[e]:``}:null},[Pn,Fn]=M(`overlay`),In={show:Boolean,zIndex:D,duration:D,className:null,lockScroll:O,lazyRender:O,customStyle:Object,teleport:[String,Object]},Ln=N((0,n.defineComponent)({name:Pn,inheritAttrs:!1,props:In,setup(e,{attrs:t,slots:r}){let i=(0,n.ref)(),a=Mn(()=>e.show||!e.lazyRender),o=t=>{e.lockScroll&&vt(t,!0)},s=a(()=>{let a=Ae(Ct(e.zIndex),e.customStyle);return Ne(e.duration)&&(a.animationDuration=`${e.duration}s`),(0,n.withDirectives)((0,n.createVNode)(`div`,(0,n.mergeProps)({ref:i,style:a,class:[Fn(),e.className]},t),[r.default?.call(r)]),[[n.vShow,e.show]])});return tt(`touchmove`,o,{target:i}),()=>{let t=(0,n.createVNode)(n.Transition,{name:`van-fade`,appear:!0},{default:s});return e.teleport?(0,n.createVNode)(n.Teleport,{to:e.teleport},{default:()=>[t]}):t}}})),Rn=Ae({},En,{round:Boolean,position:A(`center`),closeIcon:A(`cross`),closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,closeIconPosition:A(`top-right`),destroyOnClose:Boolean,safeAreaInsetTop:Boolean,safeAreaInsetBottom:Boolean}),[zn,Bn]=M(`popup`),Vn=N((0,n.defineComponent)({name:zn,inheritAttrs:!1,props:Rn,emits:[`open`,`close`,`opened`,`closed`,`keydown`,`update:show`,`clickOverlay`,`clickCloseIcon`],setup(e,{emit:t,attrs:r,slots:i}){let a,o,s=(0,n.ref)(),c=(0,n.ref)(),l=Mn(()=>e.show||!e.lazyRender),u=(0,n.computed)(()=>{let t={zIndex:s.value};if(Ne(e.duration)){let n=e.position===`center`?`animationDuration`:`transitionDuration`;t[n]=`${e.duration}s`}return t}),d=()=>{a||(a=!0,s.value=e.zIndex===void 0?on():+e.zIndex,t(`open`))},f=()=>{a&&qt(e.beforeClose,{done(){a=!1,t(`close`),t(`update:show`,!1)}})},p=n=>{t(`clickOverlay`,n),e.closeOnClickOverlay&&f()},m=()=>{if(e.overlay)return(0,n.createVNode)(Ln,(0,n.mergeProps)(Ae({show:e.show,class:e.overlayClass,zIndex:s.value,duration:e.duration,customStyle:e.overlayStyle,role:e.closeOnClickOverlay?`button`:void 0,tabindex:e.closeOnClickOverlay?0:void 0},e.overlayProps),Nn(),{onClick:p}),{default:i[`overlay-content`]})},h=e=>{t(`clickCloseIcon`,e),f()},g=()=>{if(e.closeable)return(0,n.createVNode)(yn,{role:`button`,tabindex:0,name:e.closeIcon,class:[Bn(`close-icon`,e.closeIconPosition),Kt],classPrefix:e.iconPrefix,onClick:h},null)},_,v=()=>{_&&clearTimeout(_),_=setTimeout(()=>{t(`opened`)})},y=()=>t(`closed`),b=e=>t(`keydown`,e),x=l(()=>{let{destroyOnClose:t,round:a,position:o,safeAreaInsetTop:s,safeAreaInsetBottom:l,show:d}=e;if(!(!d&&t))return(0,n.withDirectives)((0,n.createVNode)(`div`,(0,n.mergeProps)({ref:c,style:u.value,role:`dialog`,tabindex:0,class:[Bn({round:a,[o]:o}),{"van-safe-area-top":s,"van-safe-area-bottom":l}],onKeydown:b},r,Nn()),[i.default?.call(i),g()]),[[n.vShow,d]])}),S=()=>{let{position:t,transition:r,transitionAppear:i}=e,a=t===`center`?`van-fade`:`van-popup-slide-${t}`;return(0,n.createVNode)(n.Transition,{name:r||a,appear:i,onAfterEnter:v,onAfterLeave:y},{default:x})};return(0,n.watch)(()=>e.show,e=>{e&&!a&&(d(),r.tabindex===0&&(0,n.nextTick)(()=>{var e;(e=c.value)==null||e.focus()})),!e&&a&&(a=!1,t(`close`))}),Zt({popupRef:c}),jn(c,()=>e.show&&e.lockScroll),tt(`popstate`,()=>{e.closeOnPopstate&&(f(),o=!1)}),(0,n.onMounted)(()=>{e.show&&d()}),(0,n.onActivated)(()=>{o&&=(t(`update:show`,!0),!1)}),(0,n.onDeactivated)(()=>{e.show&&e.teleport&&(f(),o=!0)}),(0,n.provide)(Yt,()=>e.show),()=>e.teleport?(0,n.createVNode)(n.Teleport,{to:e.teleport},{default:()=>[m(),S()]}):(0,n.createVNode)(n.Fragment,null,[m(),S()])}})),Hn=(e,t)=>{let r=(0,n.ref)(e());return(0,n.watch)(e,e=>{e!==r.value&&(r.value=e)}),(0,n.watch)(r,n=>{n!==e()&&t(n)}),r};function Un(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}process.env.NODE_ENV===`production`||Object.freeze({}),process.env.NODE_ENV===`production`||Object.freeze([]);var Wn=Array.isArray,Gn=e=>typeof e==`string`,Kn=e=>typeof e==`object`&&!!e,qn=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Jn=/\B([A-Z])/g,Yn=qn(e=>e.replace(Jn,`-$1`).toLowerCase());function Xn(e){if(Wn(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=Gn(r)?er(r):Xn(r);if(i)for(let e in i)t[e]=i[e]}return t}else if(Gn(e)||Kn(e))return e}var Zn=/;(?![^(]*\))/g,Qn=/:([^]+)/,$n=/\/\*[^]*?\*\//g;function er(e){let t={};return e.replace($n,``).split(Zn).forEach(e=>{if(e){let n=e.split(Qn);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function tr(e){if(!e)return``;if(Gn(e))return e;let t=``;for(let n in e){let r=e[n];if(Gn(r)||typeof r==`number`){let e=n.startsWith(`--`)?n:Yn(n);t+=`${e}:${r};`}}return t}function nr(e){let t=``;if(Gn(e))t=e;else if(Wn(e))for(let n=0;n<e.length;n++){let r=nr(e[n]);r&&(t+=r+` `)}else if(Kn(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}Un(`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly,async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected`);function rr(e,t,n){let r,i=0,a=e.scrollLeft,o=n===0?1:Math.round(n*1e3/16),s=a;function c(){We(r)}function l(){s+=(t-a)/o,e.scrollLeft=s,++i<o&&(r=Ue(l))}return l(),c}function ir(e,t,n,r){let i,a=ft(e),o=a<t,s=n===0?1:Math.round(n*1e3/16),c=(t-a)/s;function l(){We(i)}function u(){a+=c,(o&&a>t||!o&&a<t)&&(a=t),pt(e,a),o&&a<t||!o&&a>t?i=Ue(u):r&&(i=Ue(r))}return u(),l}var ar=0;function or(){let{name:e=`unknown`}=(0,n.getCurrentInstance)()?.type||{};return process.env.NODE_ENV===`test`?e:`${e}-${++ar}`}function sr(){let e=(0,n.ref)([]),t=[];return(0,n.onBeforeUpdate)(()=>{e.value=[]}),[e,n=>(t[n]||(t[n]=t=>{e.value[n]=t}),t[n])]}function cr(e,t){if(!je||!window.IntersectionObserver)return;let r=new IntersectionObserver(e=>{t(e[0].intersectionRatio>0)},{root:document.body}),i=()=>{e.value&&r.observe(e.value)},a=()=>{e.value&&r.unobserve(e.value)};(0,n.onDeactivated)(a),(0,n.onBeforeUnmount)(a),et(i)}var[lr,ur]=M(`sticky`),dr={zIndex:D,position:A(`top`),container:Object,offsetTop:k(0),offsetBottom:k(0)},fr=N((0,n.defineComponent)({name:lr,props:dr,emits:[`scroll`,`change`],setup(e,{emit:t,slots:r}){let i=(0,n.ref)(),a=lt(i),o=(0,n.reactive)({fixed:!1,width:0,height:0,transform:0}),s=(0,n.ref)(!1),c=(0,n.computed)(()=>kt(e.position===`top`?e.offsetTop:e.offsetBottom)),l=(0,n.computed)(()=>{if(s.value)return;let{fixed:e,height:t,width:n}=o;if(e)return{width:`${n}px`,height:`${t}px`}}),u=(0,n.computed)(()=>{if(!o.fixed||s.value)return;let t=Ae(Ct(e.zIndex),{width:`${o.width}px`,height:`${o.height}px`,[e.position]:`${c.value}px`});return o.transform&&(t.transform=`translate3d(0, ${o.transform}px, 0)`),t}),d=e=>t(`scroll`,{scrollTop:e,isFixed:o.fixed}),f=()=>{if(!i.value||yt(i))return;let{container:t,position:n}=e,r=Je(i),a=ft(window);if(o.width=r.width,o.height=r.height,n===`top`)if(t){let e=Je(t),n=e.bottom-c.value-o.height;o.fixed=c.value>r.top&&e.bottom>0,o.transform=n<0?n:0}else o.fixed=c.value>r.top;else{let{clientHeight:e}=document.documentElement;if(t){let n=Je(t),i=e-n.top-c.value-o.height;o.fixed=e-c.value<r.bottom&&e>n.top,o.transform=i<0?-i:0}else o.fixed=e-c.value<r.bottom}d(a)};return(0,n.watch)(()=>o.fixed,e=>t(`change`,e)),tt(`scroll`,f,{target:a,passive:!0}),cr(i,f),(0,n.watch)([bt,xt],()=>{!i.value||yt(i)||!o.fixed||(s.value=!0,(0,n.nextTick)(()=>{let e=Je(i);o.width=e.width,o.height=e.height,s.value=!1}))}),()=>(0,n.createVNode)(`div`,{ref:i,style:l.value},[(0,n.createVNode)(`div`,{class:ur({fixed:o.fixed&&!s.value}),style:u.value},[r.default?.call(r)])])}})),[pr,mr]=M(`swipe`),hr={loop:O,width:D,height:D,vertical:Boolean,autoplay:k(0),duration:k(500),touchable:O,lazyRender:Boolean,initialSwipe:k(0),indicatorColor:String,showIndicators:O,stopPropagation:O},gr=Symbol(pr),_r=N((0,n.defineComponent)({name:pr,props:hr,emits:[`change`,`dragStart`,`dragEnd`],setup(e,{emit:t,slots:r}){let i=(0,n.ref)(),a=(0,n.ref)(),o=(0,n.reactive)({rect:null,width:0,height:0,offset:0,active:0,swiping:!1}),s=!1,c=On(),{children:l,linkChildren:u}=$e(gr),d=(0,n.computed)(()=>l.length),f=(0,n.computed)(()=>o[e.vertical?`height`:`width`]),p=(0,n.computed)(()=>e.vertical?c.deltaY.value:c.deltaX.value),m=(0,n.computed)(()=>o.rect?(e.vertical?o.rect.height:o.rect.width)-f.value*d.value:0),h=(0,n.computed)(()=>f.value?Math.ceil(Math.abs(m.value)/f.value):d.value),g=(0,n.computed)(()=>d.value*f.value),_=(0,n.computed)(()=>(o.active+d.value)%d.value),v=(0,n.computed)(()=>{let t=e.vertical?`vertical`:`horizontal`;return c.direction.value===t}),y=(0,n.computed)(()=>{let t={transitionDuration:`${o.swiping?0:e.duration}ms`,transform:`translate${e.vertical?`Y`:`X`}(${+o.offset.toFixed(2)}px)`};if(f.value){let n=e.vertical?`height`:`width`,r=e.vertical?`width`:`height`;t[n]=`${g.value}px`,t[r]=e[r]?`${e[r]}px`:``}return t}),b=t=>{let{active:n}=o;return t?e.loop?Nt(n+t,-1,d.value):Nt(n+t,0,h.value):n},x=(t,n=0)=>{let r=t*f.value;e.loop||(r=Math.min(r,-m.value));let i=n-r;return e.loop||(i=Nt(i,m.value,0)),i},S=({pace:n=0,offset:r=0,emitChange:i})=>{if(d.value<=1)return;let{active:a}=o,s=b(n),c=x(s,r);if(e.loop){if(l[0]&&c!==m.value){let e=c<m.value;l[0].setOffset(e?g.value:0)}if(l[d.value-1]&&c!==0){let e=c>0;l[d.value-1].setOffset(e?-g.value:0)}}o.active=s,o.offset=c,i&&s!==a&&t(`change`,_.value)},C=()=>{o.swiping=!0,o.active<=-1?S({pace:d.value}):o.active>=d.value&&S({pace:-d.value})},ee=()=>{C(),c.reset(),Ge(()=>{o.swiping=!1,S({pace:-1,emitChange:!0})})},te=()=>{C(),c.reset(),Ge(()=>{o.swiping=!1,S({pace:1,emitChange:!0})})},ne,w=()=>clearTimeout(ne),re=()=>{w(),+e.autoplay>0&&d.value>1&&(ne=setTimeout(()=>{te(),re()},+e.autoplay))},T=(t=+e.initialSwipe)=>{if(!i.value)return;let r=()=>{if(!yt(i)){let t={width:i.value.offsetWidth,height:i.value.offsetHeight};o.rect=t,o.width=+(e.width??t.width),o.height=+(e.height??t.height)}d.value&&(t=Math.min(d.value-1,t),t===-1&&(t=d.value-1)),o.active=t,o.swiping=!0,o.offset=x(t),l.forEach(e=>{e.setOffset(0)}),re()};yt(i)?(0,n.nextTick)().then(r):r()},ie=()=>T(o.active),ae,oe=t=>{!e.touchable||t.touches.length>1||(c.start(t),s=!1,ae=Date.now(),w(),C())},se=n=>{e.touchable&&o.swiping&&(c.move(n),v.value&&(!e.loop&&(o.active===0&&p.value>0||o.active===d.value-1&&p.value<0)||(vt(n,e.stopPropagation),S({offset:p.value}),s||=(t(`dragStart`,{index:_.value}),!0))))},ce=()=>{if(!e.touchable||!o.swiping)return;let n=Date.now()-ae,r=p.value/n;if((Math.abs(r)>.25||Math.abs(p.value)>f.value/2)&&v.value){let t=e.vertical?c.offsetY.value:c.offsetX.value,n=0;n=e.loop?t>0?p.value>0?-1:1:0:-Math[p.value>0?`ceil`:`floor`](p.value/f.value),S({pace:n,emitChange:!0})}else p.value&&S({pace:0});s=!1,o.swiping=!1,t(`dragEnd`,{index:_.value}),re()},le=(t,n={})=>{C(),c.reset(),Ge(()=>{let r;r=e.loop&&t===d.value?o.active===0?0:t:t%d.value,n.immediate?Ge(()=>{o.swiping=!1}):o.swiping=!1,S({pace:r-o.active,emitChange:!0})})},ue=(t,r)=>{let i=r===_.value,a=i?{backgroundColor:e.indicatorColor}:void 0;return(0,n.createVNode)(`i`,{style:a,class:mr(`indicator`,{active:i})},null)},de=()=>{if(r.indicator)return r.indicator({active:_.value,total:d.value});if(e.showIndicators&&d.value>1)return(0,n.createVNode)(`div`,{class:mr(`indicators`,{vertical:e.vertical})},[Array(d.value).fill(``).map(ue)])};return Zt({prev:ee,next:te,state:o,resize:ie,swipeTo:le}),u({size:f,props:e,count:d,activeIndicator:_}),(0,n.watch)(()=>e.initialSwipe,e=>T(+e)),(0,n.watch)(d,()=>T(o.active)),(0,n.watch)(()=>e.autoplay,re),(0,n.watch)([bt,xt,()=>e.width,()=>e.height],ie),(0,n.watch)(dt(),e=>{e===`visible`?re():w()}),(0,n.onMounted)(T),(0,n.onActivated)(()=>T(o.active)),Xt(()=>T(o.active)),(0,n.onDeactivated)(w),(0,n.onBeforeUnmount)(w),tt(`touchmove`,se,{target:a}),()=>(0,n.createVNode)(`div`,{ref:i,class:mr()},[(0,n.createVNode)(`div`,{ref:a,style:y.value,class:mr(`track`,{vertical:e.vertical}),onTouchstartPassive:oe,onTouchend:ce,onTouchcancel:ce},[r.default?.call(r)]),de()])}})),[vr,yr]=M(`tabs`),br=(0,n.defineComponent)({name:vr,props:{count:Be(Number),inited:Boolean,animated:Boolean,duration:Be(D),swipeable:Boolean,lazyRender:Boolean,currentIndex:Be(Number)},emits:[`change`],setup(e,{emit:t,slots:r}){let i=(0,n.ref)(),a=e=>t(`change`,e),o=()=>{let t=r.default?.call(r);return e.animated||e.swipeable?(0,n.createVNode)(_r,{ref:i,loop:!1,class:yr(`track`),duration:e.duration*1e3,touchable:e.swipeable,lazyRender:e.lazyRender,showIndicators:!1,onChange:a},{default:()=>[t]}):t},s=t=>{let n=i.value;n&&n.state.active!==t&&n.swipeTo(t,{immediate:!e.inited})};return(0,n.watch)(()=>e.currentIndex,s),(0,n.onMounted)(()=>{s(e.currentIndex)}),Zt({swipeRef:i}),()=>(0,n.createVNode)(`div`,{class:yr(`content`,{animated:e.animated||e.swipeable})},[o()])}}),[xr,Sr]=M(`tabs`),Cr={type:A(`line`),color:String,border:Boolean,sticky:Boolean,shrink:Boolean,active:k(0),duration:k(.3),animated:Boolean,ellipsis:O,swipeable:Boolean,scrollspy:Boolean,offsetTop:k(0),background:String,lazyRender:O,showHeader:O,lineWidth:D,lineHeight:D,beforeChange:Function,swipeThreshold:k(5),titleActiveColor:String,titleInactiveColor:String},wr=Symbol(xr),Tr=(0,n.defineComponent)({name:xr,props:Cr,emits:[`change`,`scroll`,`rendered`,`clickTab`,`update:active`],setup(e,{emit:t,slots:r}){let i,a,o,s,c,l=(0,n.ref)(),u=(0,n.ref)(),d=(0,n.ref)(),f=(0,n.ref)(),p=or(),m=lt(l),[h,g]=sr(),{children:_,linkChildren:v}=$e(wr),y=(0,n.reactive)({inited:!1,position:``,lineStyle:{},currentIndex:-1}),b=(0,n.computed)(()=>_.length>+e.swipeThreshold||!e.ellipsis||e.shrink),x=(0,n.computed)(()=>({borderColor:e.color,background:e.background})),S=(e,t)=>e.name??t,C=(0,n.computed)(()=>{let e=_[y.currentIndex];if(e)return S(e,y.currentIndex)}),ee=(0,n.computed)(()=>kt(e.offsetTop)),te=(0,n.computed)(()=>e.sticky?ee.value+i:0),ne=t=>{let n=u.value,r=h.value;if(!b.value||!n||!r||!r[y.currentIndex])return;let i=r[y.currentIndex].$el,a=i.offsetLeft-(n.offsetWidth-i.offsetWidth)/2;s&&s(),s=rr(n,a,t?0:+e.duration)},w=()=>{let t=y.inited;(0,n.nextTick)(()=>{let n=h.value;if(!n||!n[y.currentIndex]||e.type!==`line`||yt(l.value))return;let r=n[y.currentIndex].$el,{lineWidth:i,lineHeight:a}=e,o=r.offsetLeft+r.offsetWidth/2,s={width:j(i),backgroundColor:e.color,transform:`translateX(${o}px) translateX(-50%)`};if(t&&(s.transitionDuration=`${e.duration}s`),Ne(a)){let e=j(a);s.height=e,s.borderRadius=e}y.lineStyle=s})},re=e=>{let t=e<y.currentIndex?-1:1;for(;e>=0&&e<_.length;){if(!_[e].disabled)return e;e+=t}},T=(n,r)=>{let i=re(n);if(!Ne(i))return;let a=_[i],s=S(a,i),c=y.currentIndex!==null;y.currentIndex!==i&&(y.currentIndex=i,r||ne(),w()),s!==e.active&&(t(`update:active`,s),c&&t(`change`,s,a.title)),o&&!e.scrollspy&&ht(Math.ceil(gt(l.value)-ee.value))},ie=(e,t)=>{let n=_.findIndex((t,n)=>S(t,n)===e);T(n===-1?0:n,t)},ae=(t=!1)=>{if(e.scrollspy){let n=_[y.currentIndex].$el;if(n&&m.value){let r=gt(n,m.value)-te.value;a=!0,c&&c(),c=ir(m.value,r,t?0:+e.duration,()=>{a=!1})}}},oe=(n,r,i)=>{let{title:a,disabled:o}=_[r],s=S(_[r],r);o||(qt(e.beforeChange,{args:[s],done:()=>{T(r),ae()}}),$t(n)),t(`clickTab`,{name:s,title:a,event:i,disabled:o})},se=e=>{o=e.isFixed,t(`scroll`,e)},ce=e=>{(0,n.nextTick)(()=>{ie(e),ae(!0)})},le=()=>{for(let e=0;e<_.length;e++){let{top:t}=Je(_[e].$el);if(t>te.value)return e===0?0:e-1}return _.length-1},ue=()=>{e.scrollspy&&!a&&T(le())},de=()=>{if(e.type===`line`&&_.length)return(0,n.createVNode)(`div`,{class:Sr(`line`),style:y.lineStyle},null)},fe=()=>{let{type:t,border:i,sticky:a}=e,o=[(0,n.createVNode)(`div`,{ref:a?void 0:d,class:[Sr(`wrap`),{[Gt]:t===`line`&&i}]},[(0,n.createVNode)(`div`,{ref:u,role:`tablist`,class:Sr(`nav`,[t,{shrink:e.shrink,complete:b.value}]),style:x.value,"aria-orientation":`horizontal`},[r[`nav-left`]?.call(r),_.map(e=>e.renderTitle(oe)),de(),r[`nav-right`]?.call(r)])]),r[`nav-bottom`]?.call(r)];return a?(0,n.createVNode)(`div`,{ref:d},[o]):o},pe=()=>{w(),(0,n.nextTick)(()=>{var e;ne(!0),(e=f.value?.swipeRef.value)==null||e.resize()})};return(0,n.watch)(()=>[e.color,e.duration,e.lineWidth,e.lineHeight],w),(0,n.watch)(bt,pe),(0,n.watch)(()=>e.active,e=>{e!==C.value&&ie(e)}),(0,n.watch)(()=>_.length,()=>{y.inited&&(ie(e.active),w(),(0,n.nextTick)(()=>{ne(!0)}))}),Zt({resize:pe,scrollTo:ce}),(0,n.onActivated)(w),Xt(w),et(()=>{ie(e.active,!0),(0,n.nextTick)(()=>{y.inited=!0,d.value&&(i=Je(d.value).height),ne(!0)})}),cr(l,w),tt(`scroll`,ue,{target:m,passive:!0}),v({id:p,props:e,setLine:w,scrollable:b,onRendered:(e,n)=>t(`rendered`,e,n),currentName:C,setTitleRefs:g,scrollIntoView:ne}),()=>(0,n.createVNode)(`div`,{ref:l,class:Sr([e.type])},[e.showHeader?e.sticky?(0,n.createVNode)(fr,{container:l.value,offsetTop:ee.value,onScroll:se},{default:()=>[fe()]}):fe():null,(0,n.createVNode)(br,{ref:f,count:_.length,inited:y.inited,animated:e.animated,duration:e.duration,swipeable:e.swipeable,lazyRender:e.lazyRender,currentIndex:y.currentIndex,onChange:T},{default:()=>[r.default?.call(r)]})])}}),Er=Symbol(),Dr=Symbol(),Or=()=>(0,n.inject)(Dr,null),kr=e=>{let t=Or();(0,n.provide)(Er,e),(0,n.provide)(Dr,(0,n.computed)(()=>(t==null||t.value)&&e.value))},[Ar,jr]=M(`tab`),Mr=(0,n.defineComponent)({name:Ar,props:{id:String,dot:Boolean,type:String,color:String,title:String,badge:D,shrink:Boolean,isActive:Boolean,disabled:Boolean,controls:String,scrollable:Boolean,activeColor:String,inactiveColor:String,showZeroBadge:O},setup(e,{slots:t}){let r=(0,n.computed)(()=>{let t={},{type:n,color:r,disabled:i,isActive:a,activeColor:o,inactiveColor:s}=e;r&&n===`card`&&(t.borderColor=r,i||(a?t.backgroundColor=r:t.color=r));let c=a?o:s;return c&&(t.color=c),t}),i=()=>{let r=(0,n.createVNode)(`span`,{class:jr(`text`,{ellipsis:!e.scrollable})},[t.title?t.title():e.title]);return e.dot||Ne(e.badge)&&e.badge!==``?(0,n.createVNode)(rn,{dot:e.dot,content:e.badge,showZero:e.showZeroBadge},{default:()=>[r]}):r};return()=>(0,n.createVNode)(`div`,{id:e.id,role:`tab`,class:[jr([e.type,{grow:e.scrollable&&!e.shrink,shrink:e.shrink,active:e.isActive,disabled:e.disabled}])],style:r.value,tabindex:e.disabled?void 0:e.isActive?0:-1,"aria-selected":e.isActive,"aria-disabled":e.disabled||void 0,"aria-controls":e.controls,"data-allow-mismatch":`attribute`},[i()])}}),[Nr,Pr]=M(`swipe-item`),Fr=N((0,n.defineComponent)({name:Nr,setup(e,{slots:t}){let r,i=(0,n.reactive)({offset:0,inited:!1,mounted:!1}),{parent:a,index:o}=Ye(gr);if(!a){process.env.NODE_ENV!==`production`&&console.error(`[Vant] <SwipeItem> must be a child component of <Swipe>.`);return}let s=(0,n.computed)(()=>{let e={},{vertical:t}=a.props;return a.size.value&&(e[t?`height`:`width`]=`${a.size.value}px`),i.offset&&(e.transform=`translate${t?`Y`:`X`}(${i.offset}px)`),e}),c=(0,n.computed)(()=>{let{loop:e,lazyRender:t}=a.props;if(!t||r)return!0;if(!i.mounted)return!1;let n=a.activeIndicator.value,s=a.count.value-1,c=n===0&&e?s:n-1,l=n===s&&e?0:n+1;return r=o.value===n||o.value===c||o.value===l,r});return(0,n.onMounted)(()=>{(0,n.nextTick)(()=>{i.mounted=!0})}),Zt({setOffset:e=>{i.offset=e}}),()=>(0,n.createVNode)(`div`,{class:Pr(),style:s.value},[c.value?t.default?.call(t):null])}})),[Ir,Lr]=M(`tab`),Rr=Ae({},Qt,{dot:Boolean,name:D,badge:D,title:String,disabled:Boolean,titleClass:null,titleStyle:[String,Object],showZeroBadge:O}),zr=N((0,n.defineComponent)({name:Ir,props:Rr,setup(e,{slots:t}){let r=or(),i=(0,n.ref)(!1),a=(0,n.getCurrentInstance)(),{parent:o,index:s}=Ye(wr);if(!o){process.env.NODE_ENV!==`production`&&console.error(`[Vant] <Tab> must be a child component of <Tabs>.`);return}let c=()=>e.name??s.value,l=()=>{i.value=!0,o.props.lazyRender&&(0,n.nextTick)(()=>{o.onRendered(c(),e.title)})},u=(0,n.computed)(()=>{let e=c()===o.currentName.value;return e&&!i.value&&l(),e}),d=(0,n.ref)(``),f=(0,n.ref)(``);(0,n.watchEffect)(()=>{let{titleClass:t,titleStyle:n}=e;d.value=t?nr(t):``,f.value=n&&typeof n!=`string`?tr(Xn(n)):n});let p=i=>(0,n.createVNode)(Mr,(0,n.mergeProps)({key:r,id:`${o.id}-${s.value}`,ref:o.setTitleRefs(s.value),style:f.value,class:d.value,isActive:u.value,controls:r,scrollable:o.scrollable.value,activeColor:o.props.titleActiveColor,inactiveColor:o.props.titleInactiveColor,onClick:e=>i(a.proxy,s.value,e)},ze(o.props,[`type`,`color`,`shrink`]),ze(e,[`dot`,`badge`,`title`,`disabled`,`showZeroBadge`])),{title:t.title}),m=(0,n.ref)(!u.value);return(0,n.watch)(u,e=>{e?m.value=!1:Ge(()=>{m.value=!0})}),(0,n.watch)(()=>e.title,()=>{o.setLine(),o.scrollIntoView()}),kr(u),Zt({id:r,renderTitle:p}),()=>{let e=`${o.id}-${s.value}`,{animated:a,swipeable:c,scrollspy:l,lazyRender:d}=o.props;if(!t.default&&!a)return;let f=l||u.value;if(a||c)return(0,n.createVNode)(Fr,{id:r,role:`tabpanel`,class:Lr(`panel-wrapper`,{inactive:m.value}),tabindex:u.value?0:-1,"aria-hidden":!u.value,"aria-labelledby":e,"data-allow-mismatch":`attribute`},{default:()=>[(0,n.createVNode)(`div`,{class:Lr(`panel`)},[t.default?.call(t)])]});let p=i.value||l||!d?t.default?.call(t):null;return(0,n.withDirectives)((0,n.createVNode)(`div`,{id:r,role:`tabpanel`,class:Lr(`panel`),tabindex:f?0:-1,"aria-labelledby":e,"data-allow-mismatch":`attribute`},[p]),[[n.vShow,f]])}}})),Br=N(Tr),Vr={height:k(0),anchors:Ve(),duration:k(.3),magnetic:O,contentDraggable:O,lockScroll:Boolean,safeAreaInsetBottom:O},[Hr,Ur]=M(`floating-panel`),Wr=N((0,n.defineComponent)({name:Hr,props:Vr,emits:[`heightChange`,`update:height`],setup(e,{emit:t,slots:r}){let i=.2,a=(0,n.ref)(),o=(0,n.ref)(),s=Hn(()=>+e.height,e=>t(`update:height`,e)),c=(0,n.computed)(()=>({min:e.anchors[0]??100,max:e.anchors[e.anchors.length-1]??Math.round(xt.value*.6)})),l=(0,n.computed)(()=>e.anchors.length>=2?e.anchors:[c.value.min,c.value.max]),u=(0,n.ref)(!1),d=(0,n.computed)(()=>({height:j(c.value.max),transform:`translateY(calc(100% + ${j(-s.value)}))`,transition:u.value?`none`:`transform ${e.duration}s cubic-bezier(0.18, 0.89, 0.32, 1.28)`})),f=e=>{let t=Math.abs(e),{min:n,max:r}=c.value;return t>r?-(r+(t-r)*i):t<n?-(n-(n-t)*i):e},p,m=-1,h=On(),g=e=>{h.start(e),u.value=!0,p=-s.value,m=-1},_=t=>{h.move(t);let n=t.target;if(o.value===n||o.value?.contains(n)){let{scrollTop:n}=o.value;if(m=Math.max(m,n),!e.contentDraggable)return;if(-p<c.value.max)vt(t,!0);else if(!(n<=0&&h.deltaY.value>0)||m>0)return}s.value=-f(h.deltaY.value+p)},v=()=>{if(m=-1,u.value=!1,e.magnetic)s.value=Jt(l.value,s.value);else{let{min:e,max:t}=c.value;s.value=Math.max(e,Math.min(t,s.value))}s.value!==-p&&t(`heightChange`,{height:s.value})};(0,n.watch)(c,()=>{s.value=Jt(l.value,s.value)},{immediate:!0}),jn(a,()=>e.lockScroll||u.value),tt(`touchmove`,_,{target:a});let y=()=>r.header?r.header():(0,n.createVNode)(`div`,{class:Ur(`header`)},[(0,n.createVNode)(`div`,{class:Ur(`header-bar`)},null)]);return()=>(0,n.createVNode)(`div`,{class:[Ur(),{"van-safe-area-bottom":e.safeAreaInsetBottom}],ref:a,style:d.value,onTouchstartPassive:g,onTouchend:v,onTouchcancel:v},[y(),(0,n.createVNode)(`div`,{class:Ur(`content`),ref:o,style:{paddingBottom:j(c.value.max-s.value)}},[r.default?.call(r)])])}})),[Gr,Kr,qr]=M(`pull-refresh`),Jr=50,Yr=[`pulling`,`loosing`,`success`],Xr={disabled:Boolean,modelValue:Boolean,headHeight:k(Jr),successText:String,pullingText:String,loosingText:String,loadingText:String,pullDistance:D,successDuration:k(500),animationDuration:k(300)},Zr=N((0,n.defineComponent)({name:Gr,props:Xr,emits:[`change`,`refresh`,`update:modelValue`],setup(e,{emit:t,slots:r}){let i,a=(0,n.ref)(),o=(0,n.ref)(),s=lt(a),c=(0,n.reactive)({status:`normal`,distance:0,duration:0}),l=On(),u=()=>{if(e.headHeight!==Jr)return{height:`${e.headHeight}px`}},d=()=>c.status!==`loading`&&c.status!==`success`&&!e.disabled,f=t=>{let n=+(e.pullDistance||e.headHeight);return t>n&&(t=t<n*2?n+(t-n)/2:n*1.5+(t-n*2)/4),Math.round(t)},p=(n,r)=>{let i=+(e.pullDistance||e.headHeight);c.distance=n,r?c.status=`loading`:n===0?c.status=`normal`:n<i?c.status=`pulling`:c.status=`loosing`,t(`change`,{status:c.status,distance:n})},m=()=>{let{status:t}=c;return t===`normal`?``:e[`${t}Text`]||qr(t)},h=()=>{let{status:e,distance:t}=c;if(r[e])return r[e]({distance:t});let i=[];return Yr.includes(e)&&i.push((0,n.createVNode)(`div`,{class:Kr(`text`)},[m()])),e===`loading`&&i.push((0,n.createVNode)(Tn,{class:Kr(`loading`)},{default:m})),i},g=()=>{c.status=`success`,setTimeout(()=>{p(0)},+e.successDuration)},_=e=>{i=ft(s.value)===0,i&&(c.duration=0,l.start(e))},v=e=>{d()&&_(e)},y=e=>{if(d()){i||_(e);let{deltaY:t}=l;l.move(e),i&&t.value>=0&&l.isVertical()&&(vt(e),p(f(t.value)))}},b=()=>{i&&l.deltaY.value&&d()&&(c.duration=+e.animationDuration,c.status===`loosing`?(p(+e.headHeight,!0),t(`update:modelValue`,!0),(0,n.nextTick)(()=>t(`refresh`))):p(0))};return(0,n.watch)(()=>e.modelValue,t=>{c.duration=+e.animationDuration,t?p(+e.headHeight,!0):r.success||e.successText?g():p(0,!1)}),tt(`touchmove`,y,{target:o}),()=>{let e={transitionDuration:`${c.duration}ms`,transform:c.distance?`translate3d(0,${c.distance}px, 0)`:``};return(0,n.createVNode)(`div`,{ref:a,class:Kr()},[(0,n.createVNode)(`div`,{ref:o,class:Kr(`track`),style:e,onTouchstartPassive:v,onTouchend:b,onTouchcancel:b},[(0,n.createVNode)(`div`,{class:Kr(`head`),style:u()},[h()]),r.default?.call(r)])])}}}));function Qr(e){return Array.isArray(e)?e:Array.from(e)}function $r(e){return e!=null&&typeof e!=`function`&&Ee(e.length)}function ei(e){switch(typeof e){case`number`:case`symbol`:return!1;case`string`:return e.includes(`.`)||e.includes(`[`)||e.includes(`]`)}}function ti(e){return typeof e==`string`||typeof e==`symbol`?e:Object.is(e?.valueOf?.(),-0)?`-0`:String(e)}function ni(e){if(e==null)return``;if(typeof e==`string`)return e;if(Array.isArray(e))return e.map(ni).join(`,`);let t=String(e);return t===`0`&&Object.is(Number(e),-0)?`-0`:t}function ri(e){if(Array.isArray(e))return e.map(ti);if(typeof e==`symbol`)return[e];e=ni(e);let t=[],n=e.length;if(n===0)return t;let r=0,i=``,a=``,o=!1;for(e.charCodeAt(0)===46&&(t.push(``),r++);r<n;){let s=e[r];a?s===`\\`&&r+1<n?(r++,i+=e[r]):s===a?a=``:i+=s:o?s===`"`||s===`'`?a=s:s===`]`?(o=!1,t.push(i),i=``):i+=s:s===`[`?(o=!0,i&&=(t.push(i),``)):s===`.`?i&&=(t.push(i),``):i+=s,r++}return i&&t.push(i),t}function ii(e,t,n){if(e==null)return n;switch(typeof t){case`string`:{if(xe(t))return n;let r=e[t];return r===void 0?ei(t)?ii(e,ri(t),n):n:r}case`number`:case`symbol`:{typeof t==`number`&&(t=ti(t));let r=e[t];return r===void 0?n:r}default:{if(Array.isArray(t))return ai(e,t,n);if(t=Object.is(t?.valueOf(),-0)?`-0`:String(t),xe(t))return n;let r=e[t];return r===void 0?n:r}}}function ai(e,t,n){if(t.length===0)return n;let r=e;for(let e=0;e<t.length;e++){if(r==null||xe(t[e]))return n;r=r[t[e]]}return r===void 0?n:r}function oi(e){return function(t){return ii(t,e)}}function si(e){return e!==null&&(typeof e==`object`||typeof e==`function`)}function ci(e,t,n){return typeof n==`function`?li(e,t,function e(t,r,i,a,o,s){let c=n(t,r,i,a,o,s);return c===void 0?li(t,r,e,s):!!c},new Map):ci(e,t,()=>void 0)}function li(e,t,n,r){if(t===e)return!0;switch(typeof t){case`object`:return ui(e,t,n,r);case`function`:return Object.keys(t).length>0?li(e,{...t},n,r):Ce(e,t);default:return si(e)?typeof t==`string`?t===``:!0:Ce(e,t)}}function ui(e,t,n,r){if(t==null)return!0;if(Array.isArray(t))return fi(e,t,n,r);if(t instanceof Map)return di(e,t,n,r);if(t instanceof Set)return pi(e,t,n,r);let i=Object.keys(t);if(e==null||_(e))return i.length===0;if(i.length===0)return!0;if(r?.has(t))return r.get(t)===e;r?.set(t,e);try{for(let a=0;a<i.length;a++){let o=i[a];if(!_(e)&&!(o in e)||t[o]===void 0&&e[o]!==void 0||t[o]===null&&e[o]!==null||!n(e[o],t[o],o,e,t,r))return!1}return!0}finally{r?.delete(t)}}function di(e,t,n,r){if(t.size===0)return!0;if(!(e instanceof Map))return!1;for(let[i,a]of t.entries())if(n(e.get(i),a,i,e,t,r)===!1)return!1;return!0}function fi(e,t,n,r){if(t.length===0)return!0;if(!Array.isArray(e))return!1;let i=new Set;for(let a=0;a<t.length;a++){let o=t[a],s=!1;for(let c=0;c<e.length;c++){if(i.has(c))continue;let l=e[c],u=!1;if(n(l,o,a,e,t,r)&&(u=!0),u){i.add(c),s=!0;break}}if(!s)return!1}return!0}function pi(e,t,n,r){return t.size===0?!0:e instanceof Set?fi([...e],[...t],n,r):!1}function mi(e,t){return ci(e,t,()=>void 0)}function hi(e){return e=be(e),t=>mi(t,e)}function gi(e,t){return _e(e,(n,r,i,a)=>{let o=t?.(n,r,i,a);if(o!==void 0)return o;if(typeof e==`object`){if(b(e)===`[object Object]`&&typeof e.constructor!=`function`){let t={};return a.set(e,t),E(t,e,i,a),t}switch(Object.prototype.toString.call(e)){case C:case S:case ee:{let t=new e.constructor(e?.valueOf());return E(t,e),t}case te:{let t={};return E(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}})}function _i(e){return gi(e)}var vi=/^(?:0|[1-9]\d*)$/;function yi(e,t=2**53-1){switch(typeof e){case`number`:return Number.isInteger(e)&&e>=0&&e<t;case`symbol`:return!1;case`string`:return vi.test(e)}}function bi(e){return typeof e==`object`&&!!e&&b(e)===`[object Arguments]`}function xi(e,t){let n;if(n=Array.isArray(t)?t:typeof t==`string`&&ei(t)&&e?.[t]==null?ri(t):[t],n.length===0)return!1;let r=e;for(let e=0;e<n.length;e++){let t=n[e];if((r==null||!Object.hasOwn(r,t))&&!((Array.isArray(r)||bi(r))&&yi(t)&&t<r.length))return!1;r=r[t]}return!0}function Si(e,t){switch(typeof e){case`object`:Object.is(e?.valueOf(),-0)&&(e=`-0`);break;case`number`:e=ti(e);break}return t=_i(t),function(n){let r=ii(n,e);return r===void 0?xi(n,e):t===void 0?r===void 0:mi(r,t)}}function Ci(e){if(e==null)return m;switch(typeof e){case`function`:return e;case`object`:return Array.isArray(e)&&e.length===2?Si(e[0],e[1]):hi(e);case`string`:case`symbol`:case`number`:return oi(e)}}function wi(e){if($r(e))return u(Qr(e))}function Ti(e){return typeof e==`string`||e instanceof String}function Ei(e,t=m){return d(e,Ci(t))}function Di(e){return typeof e==`number`||e instanceof Number}function Oi(e,t=0,n={}){typeof n!=`object`&&(n={});let{leading:r=!1,trailing:i=!0,maxWait:a}=n,o=[,,];r&&(o[0]=`leading`),i&&(o[1]=`trailing`);let s,c=null,l=p(function(...t){s=e.apply(this,t),c=null},t,{edges:o}),u=function(...t){return a!=null&&(c===null&&(c=Date.now()),Date.now()-c>=a)?(s=e.apply(this,t),c=Date.now(),l.cancel(),l.schedule(),s):(l.apply(this,t),s)};return u.cancel=l.cancel,u.flush=()=>(l.flush(),s),u}function ki(e,t,n=0){if(t=Number(t),Object.is(t,-0)&&(t=`-0`),n=Math.min(Number.parseInt(n,10),292),n){let[r,i=0]=t.toString().split(`e`),a=Math[e](Number(`${r}e${Number(i)+n}`));Object.is(a,-0)&&(a=`-0`);let[o,s=0]=a.toString().split(`e`);return Number(`${o}e${Number(s)-n}`)}return Math[e](Number(t))}function Ai(e,t=0){return ki(`ceil`,e,t)}function ji(...e){}function Mi(e){let t=e?.constructor;return e===(typeof t==`function`?t.prototype:Object.prototype)}function Ni(e){return v(e)}function Pi(e){if(e==null)return!0;if($r(e))return typeof e.splice!=`function`&&typeof e!=`string`&&(typeof Buffer>`u`||!Buffer.isBuffer(e))&&!Ni(e)&&!bi(e)?!1:e.length===0;if(typeof e==`object`){if(e instanceof Map||e instanceof Set)return e.size===0;let t=Object.keys(e);return Mi(e)?t.filter(e=>e!==`constructor`).length===0:t.length===0}return!0}function Fi(e,t){return(0,n.getCurrentScope)()?((0,n.onScopeDispose)(e,t),!0):!1}var Ii=new WeakMap,Li=(...e)=>{let t=e[0],r=(0,n.getCurrentInstance)()?.proxy??(0,n.getCurrentScope)();if(r==null&&!(0,n.hasInjectionContext)())throw Error(`injectLocal must be called in setup`);return r&&Ii.has(r)&&t in Ii.get(r)?Ii.get(r)[t]:(0,n.inject)(...e)},Ri=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var zi=e=>e!==void 0,Bi=e=>e!=null,Vi=Object.prototype.toString,Hi=e=>Vi.call(e)===`[object Object]`,Ui=()=>{};function Wi(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return n}function Gi(e,t={}){let r,i,a=Ui,o=e=>{clearTimeout(e),a(),a=Ui},s;return c=>{let l=(0,n.toValue)(e),u=(0,n.toValue)(t.maxWait);return r&&o(r),l<=0||u!==void 0&&u<=0?(i&&=(o(i),void 0),Promise.resolve(c())):new Promise((e,n)=>{a=t.rejectOnCancel?n:e,s=c,u&&!i&&(i=setTimeout(()=>{r&&o(r),i=void 0,e(s())},u)),r=setTimeout(()=>{i&&o(i),i=void 0,e(c())},l)})}}function Ki(...e){let t=0,r,i=!0,a=Ui,o,s,c,l,u;!(0,n.isRef)(e[0])&&typeof e[0]==`object`?{delay:s,trailing:c=!0,leading:l=!0,rejectOnCancel:u=!1}=e[0]:[s,c=!0,l=!0,u=!1]=e;let d=()=>{r&&(clearTimeout(r),r=void 0,a(),a=Ui)};return e=>{let f=(0,n.toValue)(s),p=Date.now()-t,m=()=>o=e();return d(),f<=0?(t=Date.now(),m()):(p>f?(t=Date.now(),(l||!i)&&m()):c&&(o=new Promise((e,n)=>{a=u?n:e,r=setTimeout(()=>{t=Date.now(),i=!0,e(m()),d()},Math.max(0,f-p))})),!l&&!r&&(r=setTimeout(()=>i=!0,f)),i=!1,o)}}function qi(e,t=!1,n=`Timeout`){return new Promise((r,i)=>{t?setTimeout(()=>i(n),e):setTimeout(r,e)})}function Ji(e){return e.endsWith(`rem`)?Number.parseFloat(e)*16:Number.parseFloat(e)}function Yi(e){return Array.isArray(e)?e:[e]}function Xi(e){return e||(0,n.getCurrentInstance)()}function Zi(e,t=200,n={}){return Wi(Gi(t,n),e)}function Qi(e,t=200,n=!1,r=!0,i=!1){return Wi(Ki(t,n,r,i),e)}function $i(e,t=!0,r){Xi(r)?(0,n.onMounted)(e,r):t?e():(0,n.nextTick)(e)}function ea(e,t=!1){function r(r,{flush:i=`sync`,deep:a=!1,timeout:o,throwOnTimeout:s}={}){let c=null,l=[new Promise(o=>{c=(0,n.watch)(e,e=>{r(e)!==t&&(c?c():(0,n.nextTick)(()=>c?.()),o(e))},{flush:i,deep:a,immediate:!0})})];return o!=null&&l.push(qi(o,s).then(()=>(0,n.toValue)(e)).finally(()=>c?.())),Promise.race(l)}function i(i,a){if(!(0,n.isRef)(i))return r(e=>e===i,a);let{flush:o=`sync`,deep:s=!1,timeout:c,throwOnTimeout:l}=a??{},u=null,d=[new Promise(r=>{u=(0,n.watch)([e,i],([e,i])=>{t!==(e===i)&&(u?u():(0,n.nextTick)(()=>u?.()),r(e))},{flush:o,deep:s,immediate:!0})})];return c!=null&&d.push(qi(c,l).then(()=>(0,n.toValue)(e)).finally(()=>(u?.(),(0,n.toValue)(e)))),Promise.race(d)}function a(e){return r(e=>!!e,e)}function o(e){return i(null,e)}function s(e){return i(void 0,e)}function c(e){return r(Number.isNaN,e)}function l(e,t){return r(t=>{let r=Array.from(t);return r.includes(e)||r.includes((0,n.toValue)(e))},t)}function u(e){return d(1,e)}function d(e=1,t){let n=-1;return r(()=>(n+=1,n>=e),t)}return Array.isArray((0,n.toValue)(e))?{toMatch:r,toContains:l,changed:u,changedTimes:d,get not(){return ea(e,!t)}}:{toMatch:r,toBe:i,toBeTruthy:a,toBeNull:o,toBeNaN:c,toBeUndefined:s,changed:u,changedTimes:d,get not(){return ea(e,!t)}}}function ta(e){return ea(e)}function na(e,t,r){return(0,n.watch)(e,t,{...r,immediate:!0})}function ra(e,t,r){return(0,n.watch)(e,t,{...r,once:!0})}function ia(e,t,r){let i;i=(0,n.isRef)(r)?{evaluating:r}:r||{};let{lazy:a=!1,flush:o=`sync`,evaluating:s=void 0,shallow:c=!0,onError:l=globalThis.reportError??Ui}=i,u=(0,n.shallowRef)(!a),d=c?(0,n.shallowRef)(t):(0,n.ref)(t),f=0;return(0,n.watchEffect)(async t=>{if(!u.value)return;f++;let n=f,r=!1;s&&Promise.resolve().then(()=>{s.value=!0});try{let i=await e(e=>{t(()=>{s&&(s.value=!1),r||e()})});n===f&&(d.value=i)}catch(e){l(e)}finally{s&&n===f&&(s.value=!1),r=!0}},{flush:o}),a?(0,n.computed)(()=>(u.value=!0,d.value)):d}var aa=Ri?window:void 0;Ri&&window.document,Ri&&window.navigator,Ri&&window.location;function oa(e){let t=(0,n.toValue)(e);return t?.$el??t}function sa(...e){let t=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),r=(0,n.computed)(()=>{let t=Yi((0,n.toValue)(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0});return na(()=>[r.value?.map(e=>oa(e))??[aa].filter(e=>e!=null),Yi((0,n.toValue)(r.value?e[1]:e[0])),Yi((0,n.unref)(r.value?e[2]:e[1])),(0,n.toValue)(r.value?e[3]:e[2])],([e,n,r,i],a,o)=>{if(!e?.length||!n?.length||!r?.length)return;let s=Hi(i)?{...i}:i,c=e.flatMap(e=>n.flatMap(n=>r.map(r=>t(e,n,r,s))));o(()=>{c.forEach(e=>e())})},{flush:`post`})}function ca(){let e=(0,n.shallowRef)(!1),t=(0,n.getCurrentInstance)();return t&&(0,n.onMounted)(()=>{e.value=!0},t),e}function la(e){let t=ca();return(0,n.computed)(()=>(t.value,!!e()))}function ua(e,t,r={}){let{window:i=aa,...a}=r,o,s=la(()=>i&&`MutationObserver`in i),c=()=>{o&&=(o.disconnect(),void 0)},l=(0,n.watch)((0,n.computed)(()=>{let t=Yi((0,n.toValue)(e)).map(oa).filter(Bi);return new Set(t)}),e=>{c(),s.value&&e.size&&(o=new MutationObserver(t),e.forEach(e=>o.observe(e,a)))},{immediate:!0,flush:`post`}),u=()=>o?.takeRecords(),d=()=>{l(),c()};return Fi(d),{isSupported:s,stop:d,takeRecords:u}}var da=500,fa=10;function pa(e,t,r){var i,a;let o=(0,n.computed)(()=>oa(e)),s,c,l,u=!1;function d(){s&&=(clearTimeout(s),void 0),c=void 0,l=void 0,u=!1}function f(e){let t=r?.delay;return typeof t==`function`?t(e):t??da}function p(e){var t,n,i;let[a,s,f]=[l,c,u];if(d(),!r?.onMouseUp||!s||!a||!(r==null||(t=r.modifiers)==null)&&t.self&&e.target!==o.value)return;!(r==null||(n=r.modifiers)==null)&&n.prevent&&e.preventDefault(),!(r==null||(i=r.modifiers)==null)&&i.stop&&e.stopPropagation();let p=e.x-s.x,m=e.y-s.y,h=Math.sqrt(p*p+m*m);r.onMouseUp(e.timeStamp-a,h,f)}function m(e){var n,i,a;!(r==null||(n=r.modifiers)==null)&&n.self&&e.target!==o.value||(d(),!(r==null||(i=r.modifiers)==null)&&i.prevent&&e.preventDefault(),!(r==null||(a=r.modifiers)==null)&&a.stop&&e.stopPropagation(),c={x:e.x,y:e.y},l=e.timeStamp,s=setTimeout(()=>{u=!0,t(e)},f(e)))}function h(e){var t,n,i;if(!(r==null||(t=r.modifiers)==null)&&t.self&&e.target!==o.value||!c||r?.distanceThreshold===!1)return;!(r==null||(n=r.modifiers)==null)&&n.prevent&&e.preventDefault(),!(r==null||(i=r.modifiers)==null)&&i.stop&&e.stopPropagation();let a=e.x-c.x,s=e.y-c.y;Math.sqrt(a*a+s*s)>=(r?.distanceThreshold??fa)&&d()}let g={capture:r==null||(i=r.modifiers)==null?void 0:i.capture,once:r==null||(a=r.modifiers)==null?void 0:a.once},_=[sa(o,`pointerdown`,m,g),sa(o,`pointermove`,h,g),sa(o,[`pointerup`,`pointerleave`],p,g)];return()=>_.forEach(e=>e())}var ma=Symbol(`vueuse-ssr-width`);function ha(){let e=(0,n.hasInjectionContext)()?Li(ma,null):null;return typeof e==`number`?e:void 0}function ga(e,t={}){let{window:r=aa,ssrWidth:i=ha()}=t,a=la(()=>r&&`matchMedia`in r&&typeof r.matchMedia==`function`),o=(0,n.shallowRef)(typeof i==`number`),s=(0,n.shallowRef)(),c=(0,n.shallowRef)(!1);return(0,n.watchEffect)(()=>{if(o.value){o.value=!a.value,c.value=(0,n.toValue)(e).split(`,`).some(e=>{let t=e.includes(`not all`),n=e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),r=e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),a=!!(n||r);return n&&a&&(a=i>=Ji(n[1])),r&&a&&(a=i<=Ji(r[1])),t?!a:a});return}a.value&&(s.value=r.matchMedia((0,n.toValue)(e)),c.value=s.value.matches)}),sa(s,`change`,e=>{c.value=e.matches},{passive:!0}),(0,n.computed)(()=>c.value)}function _a(e,t,r={}){let{window:i=aa,initialValue:a,observe:o=!1}=r,s=(0,n.shallowRef)(a),c=(0,n.computed)(()=>{var e;return oa(t)||(i==null||(e=i.document)==null?void 0:e.documentElement)});function l(){let t=(0,n.toValue)(e),r=(0,n.toValue)(c);r&&i&&t&&(s.value=i.getComputedStyle(r).getPropertyValue(t)?.trim()||s.value||a)}return o&&ua(c,l,{attributeFilter:[`style`,`class`],window:i}),(0,n.watch)([c,()=>(0,n.toValue)(e)],(e,t)=>{t[0]&&t[1]&&t[0].style.removeProperty(t[1]),l()},{immediate:!0}),(0,n.watch)([s,c],([t,r])=>{let i=(0,n.toValue)(e);r?.style&&i&&(t==null?r.style.removeProperty(i):r.style.setProperty(i,t))},{immediate:!0}),s}function va(e,t,r={}){let{window:i=aa,...a}=r,o,s=la(()=>i&&`ResizeObserver`in i),c=()=>{o&&=(o.disconnect(),void 0)},l=(0,n.watch)((0,n.computed)(()=>{let t=(0,n.toValue)(e);return Array.isArray(t)?t.map(e=>oa(e)):[oa(t)]}),e=>{if(c(),s.value&&i){o=new ResizeObserver(t);for(let t of e)t&&o.observe(t,a)}},{immediate:!0,flush:`post`}),u=()=>{c(),l()};return Fi(u),{isSupported:s,stop:u}}var ya=1;function ba(e,t={}){let{throttle:r=0,idle:i=200,onStop:a=Ui,onScroll:o=Ui,offset:s={left:0,right:0,top:0,bottom:0},observe:c={mutation:!1},eventListenerOptions:l={capture:!1,passive:!0},behavior:u=`auto`,window:d=aa,onError:f=e=>{console.error(e)}}=t,p=typeof c==`boolean`?{mutation:c}:c,m=(0,n.shallowRef)(0),h=(0,n.shallowRef)(0),g=(0,n.computed)({get(){return m.value},set(e){v(e,void 0)}}),_=(0,n.computed)({get(){return h.value},set(e){v(void 0,e)}});function v(t,r){var i,a;if(!d)return;let o=(0,n.toValue)(e);if(!o)return;(i=o instanceof Document?d.document.body:o)==null||i.scrollTo({top:(0,n.toValue)(r)??_.value,left:(0,n.toValue)(t)??g.value,behavior:(0,n.toValue)(u)});let s=(o==null||(a=o.document)==null?void 0:a.documentElement)||o?.documentElement||o;g!=null&&(m.value=s.scrollLeft),_!=null&&(h.value=s.scrollTop)}let y=(0,n.shallowRef)(!1),b=(0,n.reactive)({left:!0,right:!1,top:!0,bottom:!1}),x=(0,n.reactive)({left:!1,right:!1,top:!1,bottom:!1}),S=e=>{y.value&&(y.value=!1,x.left=!1,x.right=!1,x.top=!1,x.bottom=!1,a(e))},C=Zi(S,r+i),ee=e=>{var t;if(!d)return;let n=(e==null||(t=e.document)==null?void 0:t.documentElement)||e?.documentElement||oa(e),{display:r,flexDirection:i,direction:a}=d.getComputedStyle(n),o=a===`rtl`?-1:1,c=n.scrollLeft;x.left=c<m.value,x.right=c>m.value;let l=Math.abs(c*o)<=(s.left||0),u=Math.abs(c*o)+n.clientWidth>=n.scrollWidth-(s.right||0)-ya;r===`flex`&&i===`row-reverse`?(b.left=u,b.right=l):(b.left=l,b.right=u),m.value=c;let f=n.scrollTop;e===d.document&&!f&&(f=d.document.body.scrollTop),x.top=f<h.value,x.bottom=f>h.value;let p=Math.abs(f)<=(s.top||0),g=Math.abs(f)+n.clientHeight>=n.scrollHeight-(s.bottom||0)-ya;r===`flex`&&i===`column-reverse`?(b.top=g,b.bottom=p):(b.top=p,b.bottom=g),h.value=f},te=e=>{d&&(ee(e.target.documentElement??e.target),y.value=!0,C(e),o(e))};return sa(e,`scroll`,r?Qi(te,r,!0,!1):te,l),$i(()=>{try{let t=(0,n.toValue)(e);if(!t)return;ee(t)}catch(e){f(e)}}),p?.mutation&&e!=null&&e!==d&&e!==document&&ua(e,()=>{let t=(0,n.toValue)(e);t&&ee(t)},{attributes:!0,childList:!0,subtree:!0}),sa(e,`scrollend`,S,l),{x:g,y:_,isScrolling:y,arrivedState:b,directions:x,measure(){let t=(0,n.toValue)(e);d&&t&&ee(t)}}}function xa(e={}){let{window:t=aa,initialWidth:r=1/0,initialHeight:i=1/0,listenOrientation:a=!0,includeScrollbar:o=!0,type:s=`inner`}=e,c=(0,n.shallowRef)(r),l=(0,n.shallowRef)(i),u=()=>{if(t)if(s===`outer`)c.value=t.outerWidth,l.value=t.outerHeight;else if(s===`visual`&&t.visualViewport){let{width:e,height:n,scale:r}=t.visualViewport;c.value=Math.round(e*r),l.value=Math.round(n*r)}else o?(c.value=t.innerWidth,l.value=t.innerHeight):(c.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight)};u(),$i(u);let d={passive:!0};return sa(`resize`,u,d),t&&s===`visual`&&t.visualViewport&&sa(t.visualViewport,`resize`,u,d),a&&(0,n.watch)(ga(`(orientation: portrait)`),()=>u()),{width:c,height:l}}var Sa=(0,a.useGlobalVar)((0,n.shallowReactive)([]),`utils/layers`);const Ca=e=>{let t=Symbol(`layer`),r=(0,n.watch)((0,n.toRef)(e),e=>{e?Sa.push(t):Ei(Sa,e=>e===t)},{immediate:!0});try{(0,n.onUnmounted)(r)}catch{}return[(0,n.computed)(()=>(Sa.indexOf(t)+1)*10),(0,n.computed)(()=>wi(Sa)===t),r]},wa=(e,t={})=>{let r=(0,n.shallowRef)(!0),[,,i]=Ca(r),a=window.$api.showImagePreview({images:e,...t,overlayClass:`!z-2147483646`,className:`!z-2147483646`,onClose(){r.value=!1},showIndex:e.length>1,teleport:`#popups`}),o=window.$router.beforeEach(()=>r.value=!1);return ra(r,()=>{o(),i(),a.show=!1}),{isShowing:(0,n.computed)(()=>a.show),close:()=>{r.value=!1}}};var Ta=((e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n})((0,n.defineComponent)({__name:`DcLoading`,props:{size:{},type:{},color:{},vertical:{type:Boolean},textSize:{},textColor:{}},setup(e){(0,n.useCssVars)(e=>({v1479078b:r.value}));let t=e,r=(0,n.computed)(()=>Di(t.size)?`${t.size}px`:t.size);return(e,r)=>{let i=Tn;return(0,n.openBlock)(),(0,n.createBlock)(i,(0,n.normalizeProps)((0,n.guardReactiveProps)(t)),{default:(0,n.withCtx)(()=>[(0,n.renderSlot)(e.$slots,`default`,{},void 0,!0)]),_:3},16)}}}),[[`__scopeId`,`data-v-ec0c06d2`]]),Ea=(0,n.defineComponent)({__name:`DcImage`,props:{src:{},alt:{},previewable:{type:Boolean},retryMax:{default:2},round:{type:Boolean},fit:{},class:{},hideLoading:{type:Boolean},hideError:{type:Boolean},inline:{type:Boolean},style:{type:[Boolean,null,String,Object,Array]},imgProp:{},useList:{},fetchpriority:{default:`auto`},fallback:{}},emits:[`load`,`click`,`error`],setup(e,{expose:t,emit:i}){let a=e,s=ia(async()=>{try{return a.src?Ti(a.src)?a.src:await a.src.getUrl():``}catch(e){console.error(e)}return``},``),c=i,l=0,u=!1,d=async()=>{if(u)return p.error.add(s.value),c(`error`);if(l++,m.value=!1,l>a.retryMax){if(!r.uni.resource.Resource.is(a.src)){u=!0,d();return}if(!a.src.localChangeFork()){u=!0,d();return}l=0}await(0,n.nextTick)(),m.value=!0},f=(0,o.useTemp)().$apply(`imageState`,()=>({loaded:new Set,error:new Set})),p=a.useList??f,m=(0,n.shallowRef)(!0),h=()=>{u=!1,l=0,d()};(0,n.watch)(s,h);let g=(0,n.computed)(()=>p.loaded.has(s.value)),_=ia(async()=>{try{return a.fallback?Ti(a.fallback)?a.fallback:await a.fallback.getUrl():``}catch(e){console.error(e)}return``},``),v=e=>{c(`click`),a.previewable&&(e.stopPropagation(),wa([s.value],{closeable:!0}))},y=(...e)=>{c(`load`,...e),p.loaded.add(s.value)},b=(0,n.useTemplateRef)(`img`);t({isLoaded:g,imageEl:(0,n.computed)(()=>b.value?.imageRef),imageIns:b});let x=window.$api.NImage;return(t,r)=>{let i=yn;return(0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,null,[m.value?(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(x),(0,n.mergeProps)({key:0,onError:d},a,{"object-fit":e.fit,"preview-disabled":``,alt:e.alt,ref_key:`img`,ref:b,"img-props":{...e.imgProp??{},class:`w-full`,fetchpriority:a.fetchpriority},class:[{"rounded-full!":!!e.round},e.inline?`inline-flex`:`flex`,a.class],style:e.style,onLoad:y,onClick:v,src:(0,n.unref)(s)}),null,16,[`object-fit`,`alt`,`img-props`,`class`,`style`,`src`])),[[n.vShow,!(0,n.unref)(p).error.has((0,n.unref)(s))&&(0,n.unref)(p).loaded.has((0,n.unref)(s))]]):(0,n.createCommentVNode)(``,!0),!(0,n.unref)(p).loaded.has((0,n.unref)(s))&&!(0,n.unref)(p).error.has((0,n.unref)(s))&&!e.hideLoading?((0,n.openBlock)(),(0,n.createElementBlock)(`div`,{key:1,class:(0,n.normalizeClass)([`items-center justify-center`,[{"rounded-full!":!!e.round},e.inline?`inline-flex`:`flex`,a.class]]),style:(0,n.normalizeStyle)(e.style),onClick:r[0]||=e=>c(`click`)},[t.$slots.loading?(0,n.renderSlot)(t.$slots,`loading`,{key:0}):((0,n.openBlock)(),(0,n.createBlock)(Ta,{key:1}))],6)):(0,n.createCommentVNode)(``,!0),(0,n.unref)(p).error.has((0,n.unref)(s))&&!e.hideError?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:2},[e.fallback?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(x),(0,n.mergeProps)({key:0,onError:d},a,{"object-fit":e.fit,"preview-disabled":``,alt:e.alt,"img-props":{...e.imgProp??{},class:`w-full`,fetchpriority:a.fetchpriority},class:[{"rounded-full!":!!e.round},e.inline?`inline-flex`:`flex`,a.class],style:e.style,src:(0,n.unref)(_)}),null,16,[`object-fit`,`alt`,`img-props`,`class`,`style`,`src`])):((0,n.openBlock)(),(0,n.createElementBlock)(`div`,{key:1,class:(0,n.normalizeClass)([`flex-col items-center justify-center`,[{"rounded-full!":!!e.round},e.inline?`inline-flex`:`flex`,a.class]]),onClick:r[1]||=(0,n.withModifiers)(()=>{(0,n.unref)(p).error.delete((0,n.unref)(s)),h()},[`stop`])},[t.$slots.loading?(0,n.renderSlot)(t.$slots,`loading`,{key:0}):((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:1},[(0,n.createVNode)(i,{name:`warning-o`,size:`2.5rem`,color:`var(--van-text-color-2)`}),r[2]||=(0,n.createElementVNode)(`div`,{class:`text-sm text-(--van-text-color-2)`},`点击重试`,-1)],64))],2))],64)):(0,n.createCommentVNode)(``,!0)],64)}}}),Da=(0,n.defineComponent)({__name:`DcImagedIcon`,props:{icon:{},bgColor:{},sizeSpacing:{}},setup(e){return(t,a)=>{let o=i.NIcon;return(0,n.unref)(r.uni).image.Image.is(e.icon)||(0,n.unref)(r.uni).resource.Resource.is(e.icon)?((0,n.openBlock)(),(0,n.createBlock)(Ea,{key:0,class:`aspect-square size-[calc(var(--spacing)*var(--box-size))] shrink-0`,src:(0,n.unref)(r.uni).resource.Resource.is(e.icon)?(0,n.unref)(r.uni).image.Image.create(e.icon):e.icon,round:``,fit:`cover`,style:(0,n.normalizeStyle)(`--box-size:${e.sizeSpacing};background-color:${e.bgColor??` var(--color-gray-200)`};`)},null,8,[`src`,`style`])):((0,n.openBlock)(),(0,n.createElementBlock)(`div`,{key:1,class:`flex aspect-square size-[calc(var(--spacing)*var(--box-size))] items-center justify-center rounded-full bg-gray-200`,style:(0,n.normalizeStyle)(`--box-size:${e.sizeSpacing};background-color:${e.bgColor??` var(--color-gray-200)`};`)},[(0,n.createVNode)(o,{color:`var(--p-color)`,size:`calc(var(--spacing) * ${e.sizeSpacing/10*6.5})`},{default:(0,n.withCtx)(()=>[((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(e.icon)))]),_:1},8,[`size`])],4))}}}),Oa=(0,n.defineComponent)({__name:`DcAuthorIcon`,props:{author:{},sizeSpacing:{}},setup(e){let t=e,i=(0,n.computed)(()=>De(t.author.icon)?r.uni.item.Item.authorIcon.get([t.author.$$plugin,t.author.icon]):r.uni.image.Image.create(t.author.icon));return(t,r)=>((0,n.openBlock)(),(0,n.createBlock)(Da,{icon:i.value,sizeSpacing:e.sizeSpacing},null,8,[`icon`,`sizeSpacing`]))}}),ka=(0,n.defineComponent)({__name:`DcAwait`,props:{promise:{type:Function},autoLoad:{type:Boolean}},setup(e){let t=e,r=(0,n.shallowRef)(),i=async()=>r.value=await t.promise();return(0,n.watch)(()=>[t.promise,t.autoLoad],e=>{t.autoLoad&&i()},{immediate:!0}),(e,t)=>(0,n.renderSlot)(e.$slots,`default`,{load:i,result:r.value})}});function Aa(e,t){let r=typeof e==`string`&&!t?`${e}Context`:t,i=Symbol(r);return[t=>{let r=(0,n.inject)(i,t);if(r===void 0)throw Error(`Injection \`${i.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(`, `)}`:`\`${e}\``}`);return r},e=>((0,n.provide)(i,e),e),i]}function ja(e,t){let{layoutGroup:n,presenceContext:r,config:i}=t,a=n.id&&e.layoutId?`${n.id}-${e.layoutId}`:e.layoutId||void 0;return{...e,layoutId:a,transition:e.transition??i.transition,layoutGroup:n,motionConfig:i,inViewOptions:e.inViewOptions??i.inViewOptions,presenceContext:r,initial:r.initial===!1?r.initial:e.initial===!0?void 0:e.initial}}function Ma(e,t){e.indexOf(t)===-1&&e.push(t)}function Na(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var Pa=(e,t,n)=>n>t?t:n<e?e:n;function Fa(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}var Ia=()=>{},La=()=>{};typeof process<`u`&&process.env.NODE_ENV!==`production`&&(Ia=(e,t,n)=>{!e&&typeof console<`u`&&console.warn(Fa(t,n))},La=(e,t,n)=>{if(!e)throw Error(Fa(t,n))});var Ra={},za=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Ba(e){return typeof e==`object`&&!!e}var Va=e=>/^0[^.\s]+$/u.test(e);function Ha(e){let t;return()=>(t===void 0&&(t=e()),t)}var P=e=>e,Ua=(e,t)=>n=>t(e(n)),Wa=(...e)=>e.reduce(Ua),Ga=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r},Ka=class{constructor(){this.subscriptions=[]}add(e){return Ma(this.subscriptions,e),()=>Na(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},qa=e=>e*1e3,F=e=>e/1e3;function Ja(e,t){return t?1e3/t*e:0}var Ya=new Set;function Xa(e,t,n){e||Ya.has(t)||(console.warn(Fa(t,n)),Ya.add(t))}var Za=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Qa=1e-7,$a=12;function eo(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=Za(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Qa&&++s<$a);return o}function to(e,t,n,r){if(e===t&&n===r)return P;let i=t=>eo(t,0,1,e,n);return e=>e===0||e===1?e:Za(i(e),t,r)}var no=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ro=e=>t=>1-e(1-t),io=to(.33,1.53,.69,.99),ao=ro(io),oo=no(ao),so=e=>(e*=2)<1?.5*ao(e):.5*(2-2**(-10*(e-1))),co=e=>1-Math.sin(Math.acos(e)),lo=ro(co),uo=no(co),fo=to(.42,0,1,1),po=to(0,0,.58,1),mo=to(.42,0,.58,1),ho=e=>Array.isArray(e)&&typeof e[0]!=`number`,go=e=>Array.isArray(e)&&typeof e[0]==`number`,_o={linear:P,easeIn:fo,easeInOut:mo,easeOut:po,circIn:co,circInOut:uo,circOut:lo,backIn:ao,backInOut:oo,backOut:io,anticipate:so},vo=e=>typeof e==`string`,yo=e=>{if(go(e)){La(e.length===4,`Cubic bezier arrays must contain four numerical values.`,`cubic-bezier-length`);let[t,n,r,i]=e;return to(t,n,r,i)}else if(vo(e))return La(_o[e]!==void 0,`Invalid easing type '${e}'`,`invalid-easing-type`),_o[e];return e},bo=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],xo={value:null,addProjectionMetrics:null};function So(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i?n:r;return t&&o.add(e),s.has(e)||s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),t&&xo.value&&xo.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}var Co=40;function wo(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=bo.reduce((e,n)=>(e[n]=So(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=Ra.useManualTiming?i.timestamp:performance.now();n=!1,Ra.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(a-i.timestamp,Co),1)),i.timestamp=a,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:bo.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<bo.length;t++)o[bo[t]].cancel(e)},state:i,steps:o}}var{schedule:I,cancel:To,state:L,steps:Eo}=wo(typeof requestAnimationFrame<`u`?requestAnimationFrame:P,!0),Do;function Oo(){Do=void 0}var R={now:()=>(Do===void 0&&R.set(L.isProcessing||Ra.useManualTiming?L.timestamp:performance.now()),Do),set:e=>{Do=e,queueMicrotask(Oo)}},ko={layout:0,mainThread:0,waapi:0},Ao=e=>t=>typeof t==`string`&&t.startsWith(e),jo=Ao(`--`),Mo=Ao(`var(--`),No=e=>Mo(e)?Po.test(e.split(`/*`)[0].trim()):!1,Po=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Fo(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var Io={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Lo={...Io,transform:e=>Pa(0,1,e)},Ro={...Io,default:1},zo=e=>Math.round(e*1e5)/1e5,Bo=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Vo(e){return e==null}var Ho=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Uo=(e,t)=>n=>!!(typeof n==`string`&&Ho.test(n)&&n.startsWith(e)||t&&!Vo(n)&&Object.prototype.hasOwnProperty.call(n,t)),Wo=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Bo);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Go=e=>Pa(0,255,e),Ko={...Io,transform:e=>Math.round(Go(e))},qo={test:Uo(`rgb`,`red`),parse:Wo(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Ko.transform(e)+`, `+Ko.transform(t)+`, `+Ko.transform(n)+`, `+zo(Lo.transform(r))+`)`};function Jo(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var Yo={test:Uo(`#`),parse:Jo,transform:qo.transform},Xo=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Zo=Xo(`deg`),Qo=Xo(`%`),z=Xo(`px`),$o=Xo(`vh`),es=Xo(`vw`),ts={...Qo,parse:e=>Qo.parse(e)/100,transform:e=>Qo.transform(e*100)},ns={test:Uo(`hsl`,`hue`),parse:Wo(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+Qo.transform(zo(t))+`, `+Qo.transform(zo(n))+`, `+zo(Lo.transform(r))+`)`},B={test:e=>qo.test(e)||Yo.test(e)||ns.test(e),parse:e=>qo.test(e)?qo.parse(e):ns.test(e)?ns.parse(e):Yo.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?qo.transform(e):ns.transform(e),getAnimatableNone:e=>{let t=B.parse(e);return t.alpha=0,B.transform(t)}},rs=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function is(e){return isNaN(e)&&typeof e==`string`&&(e.match(Bo)?.length||0)+(e.match(rs)?.length||0)>0}var as=`number`,os=`color`,ss=`var`,cs=`var(`,ls="${}",us=/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 ds(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(us,e=>(B.test(e)?(r.color.push(a),i.push(os),n.push(B.parse(e))):e.startsWith(cs)?(r.var.push(a),i.push(ss),n.push(e)):(r.number.push(a),i.push(as),n.push(parseFloat(e))),++a,ls)).split(ls),indexes:r,types:i}}function fs(e){return ds(e).values}function ps(e){let{split:t,types:n}=ds(e),r=t.length;return e=>{let i=``;for(let a=0;a<r;a++)if(i+=t[a],e[a]!==void 0){let t=n[a];t===as?i+=zo(e[a]):t===os?i+=B.transform(e[a]):i+=e[a]}return i}}var ms=e=>typeof e==`number`?0:B.test(e)?B.getAnimatableNone(e):e;function hs(e){let t=fs(e);return ps(e)(t.map(ms))}var V={test:is,parse:fs,createTransformer:ps,getAnimatableNone:hs};function gs(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function _s({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=gs(s,r,e+1/3),a=gs(s,r,e),o=gs(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function vs(e,t){return n=>n>0?t:e}var H=(e,t,n)=>e+(t-e)*n,ys=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},bs=[Yo,qo,ns],xs=e=>bs.find(t=>t.test(e));function Ss(e){let t=xs(e);if(Ia(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,`color-not-animatable`),!t)return!1;let n=t.parse(e);return t===ns&&(n=_s(n)),n}var Cs=(e,t)=>{let n=Ss(e),r=Ss(t);if(!n||!r)return vs(e,t);let i={...n};return e=>(i.red=ys(n.red,r.red,e),i.green=ys(n.green,r.green,e),i.blue=ys(n.blue,r.blue,e),i.alpha=H(n.alpha,r.alpha,e),qo.transform(i))},ws=new Set([`none`,`hidden`]);function Ts(e,t){return ws.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Es(e,t){return n=>H(e,t,n)}function Ds(e){return typeof e==`number`?Es:typeof e==`string`?No(e)?vs:B.test(e)?Cs:js:Array.isArray(e)?Os:typeof e==`object`?B.test(e)?Cs:ks:vs}function Os(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Ds(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function ks(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Ds(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function As(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]];n[i]=e.values[o]??0,r[a]++}return n}var js=(e,t)=>{let n=V.createTransformer(t),r=ds(e),i=ds(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?ws.has(e)&&!i.values.length||ws.has(t)&&!r.values.length?Ts(e,t):Wa(Os(As(r,i),i.values),n):(Ia(!0,`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.`,`complex-values-different`),vs(e,t))};function Ms(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?H(e,t,n):Ds(e)(e,t)}var Ns=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>I.update(t,e),stop:()=>To(t),now:()=>L.isProcessing?L.timestamp:R.now()}},Ps=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},Fs=2e4;function Is(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function Ls(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(Is(r),Fs);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:F(i)}}var Rs=5;function zs(e,t,n){let r=Math.max(t-Rs,0);return Ja(n-e(r),t-r)}var U={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Bs=.001;function Vs({duration:e=U.duration,bounce:t=U.bounce,velocity:n=U.velocity,mass:r=U.mass}){let i,a;Ia(e<=qa(U.maxDuration),`Spring duration must be 10 seconds or less`,`spring-duration-limit`);let o=1-t;o=Pa(U.minDamping,U.maxDamping,o),e=Pa(U.minDuration,U.maxDuration,F(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=Ws(t,o),c=Math.exp(-i);return Bs-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=Ws(t**2,o);return(-i(t)+Bs>0?-1:1)*((a-s)*c)/l}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-Bs+r*i},a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=Us(i,a,s);if(e=qa(e),isNaN(c))return{stiffness:U.stiffness,damping:U.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var Hs=12;function Us(e,t,n){let r=n;for(let n=1;n<Hs;n++)r-=e(r)/t(r);return r}function Ws(e,t){return e*Math.sqrt(1-t*t)}var Gs=[`duration`,`bounce`],Ks=[`stiffness`,`damping`,`mass`];function qs(e,t){return t.some(t=>e[t]!==void 0)}function Js(e){let t={velocity:U.velocity,stiffness:U.stiffness,damping:U.damping,mass:U.mass,isResolvedFromDuration:!1,...e};if(!qs(e,Ks)&&qs(e,Gs))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Pa(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:U.mass,stiffness:i,damping:a}}else{let n=Vs({...e,velocity:0});t={...t,...n,mass:U.mass},t.isResolvedFromDuration=!0}return t}function Ys(e=U.visualDuration,t=U.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=Js({...n,velocity:-F(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=F(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?U.restSpeed.granular:U.restSpeed.default,i||=v?U.restDelta.granular:U.restDelta.default;let y;if(h<1){let e=Ws(_,h);y=t=>o-Math.exp(-h*_*t)*((m+h*_*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}else if(h===1)y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}let b={calculatedDuration:p&&d||null,next:e=>{let t=y(e);if(p)s.done=e>=d;else{let n=e===0?m:0;h<1&&(n=e===0?qa(m):zs(y,e,t));let a=Math.abs(n)<=r,c=Math.abs(o-t)<=i;s.done=a&&c}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(Is(b),Fs),t=Ps(t=>b.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return b}Ys.applyToOptions=e=>{let t=Ls(e,100,Ys);return e.ease=t.ease,e.duration=qa(t.duration),e.type=`keyframes`,e};function Xs({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=Ys({keyframes:[f.value,m(f.value)],velocity:zs(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function Zs(e,t,n){let r=[],i=n||Ra.mix||Ms,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=Wa(Array.isArray(t)?t[n]||P:t,a)),r.push(a)}return r}function Qs(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(La(a===t.length,`Both input and output ranges must be the same length`,`range-length`),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=Zs(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=Ga(e[r],e[r+1],n);return s[r](i)};return n?t=>l(Pa(e[0],e[a-1],t)):l}function $s(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Ga(0,t,r);e.push(H(n,1,i))}}function ec(e){let t=[0];return $s(t,e.length-1),t}function tc(e,t){return e.map(e=>e*t)}function nc(e,t){return e.map(()=>t||mo).splice(0,e.length-1)}function rc({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=ho(r)?r.map(yo):yo(r),a={done:!1,value:t[0]},o=Qs(tc(n&&n.length===t.length?n:ec(t),e),t,{ease:Array.isArray(i)?i:nc(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var ic=e=>e!==null;function ac(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(ic),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var oc={decay:Xs,inertia:Xs,tween:rc,keyframes:rc,spring:Ys};function sc(e){typeof e.type==`string`&&(e.type=oc[e.type])}var cc=class{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)}},lc=e=>e/100,uc=class extends cc{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==R.now()&&this.tick(R.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},ko.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;sc(e);let{type:t=rc,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||rc;process.env.NODE_ENV!==`production`&&s!==rc&&La(o.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`,`spring-two-frames`),s!==rc&&typeof o[0]!=`number`&&(this.mixKeyframes=Wa(lc,Ms(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Is(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=Pa(0,1,n)*o}let b=_?{done:!1,value:l[0]}:y.next(v);i&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==Xs&&(b.value=ac(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return F(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+F(e)}get time(){return F(this.currentTime)}set time(e){e=qa(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(R.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=F(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Ns,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(R.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&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,ko.mainThread--}stopDriver(){this.driver&&=(this.driver.stop(),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)}};function dc(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var fc=e=>e*180/Math.PI,pc=e=>hc(fc(Math.atan2(e[1],e[0]))),mc={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:pc,rotateZ:pc,skewX:e=>fc(Math.atan(e[1])),skewY:e=>fc(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},hc=e=>(e%=360,e<0&&(e+=360),e),gc=pc,_c=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),vc=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),yc={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:_c,scaleY:vc,scale:e=>(_c(e)+vc(e))/2,rotateX:e=>hc(fc(Math.atan2(e[6],e[5]))),rotateY:e=>hc(fc(Math.atan2(-e[2],e[0]))),rotateZ:gc,rotate:gc,skewX:e=>fc(Math.atan(e[4])),skewY:e=>fc(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function bc(e){return e.includes(`scale`)?1:0}function xc(e,t){if(!e||e===`none`)return bc(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=yc,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=mc,i=t}if(!i)return bc(t);let a=r[t],o=i[1].split(`,`).map(Cc);return typeof a==`function`?a(o):o[a]}var Sc=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return xc(n,t)};function Cc(e){return parseFloat(e.trim())}var wc=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],Tc=new Set(wc),Ec=e=>e===Io||e===z,Dc=new Set([`x`,`y`,`z`]),Oc=wc.filter(e=>!Dc.has(e));function kc(e){let t=[];return Oc.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith(`scale`)?1:0))}),t}var Ac={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`})=>e.max-e.min-parseFloat(t)-parseFloat(n),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})=>xc(t,`x`),y:(e,{transform:t})=>xc(t,`y`)};Ac.translateX=Ac.x,Ac.translateY=Ac.y;var jc=new Set,Mc=!1,Nc=!1,Pc=!1;function Fc(){if(Nc){let e=Array.from(jc).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=kc(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}Nc=!1,Mc=!1,jc.forEach(e=>e.complete(Pc)),jc.clear()}function Ic(){jc.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Nc=!0)})}function Lc(){Pc=!0,Ic(),Fc(),Pc=!1}var Rc=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(jc.add(this),Mc||(Mc=!0,I.read(Ic),I.resolveKeyframes(Fc))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}dc(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),jc.delete(this)}cancel(){this.state===`scheduled`&&(jc.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},zc=e=>e.startsWith(`--`);function Bc(e,t,n){zc(t)?e.style.setProperty(t,n):e.style[t]=n}var Vc={};function Hc(e,t){let n=Ha(e);return()=>Vc[t]??n()}var Uc=Hc(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Wc=Hc(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Gc=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Kc={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Gc([0,.65,.55,1]),circOut:Gc([.55,0,1,.45]),backIn:Gc([.31,.01,.66,-.59]),backOut:Gc([.33,1.53,.69,.99])};function qc(e,t){if(e)return typeof e==`function`?Wc()?Ps(e,t):`ease-out`:go(e)?Gc(e):Array.isArray(e)?e.map(e=>qc(e,t)||Kc.easeOut):Kc[e]}function Jc(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=qc(s,i);Array.isArray(d)&&(u.easing=d),xo.value&&ko.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return xo.value&&p.finished.finally(()=>{ko.waapi--}),p}function Yc(e){return typeof e==`function`&&`applyToOptions`in e}function Xc({type:e,...t}){return Yc(e)&&Wc()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Zc=class extends cc{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,La(typeof e.type!=`string`,`Mini animate() doesn't support "type" as a string.`,`mini-spring`);let c=Xc(e);this.animation=Jc(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=ac(r,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(e):Bc(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(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(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return F(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+F(e)}get time(){return F(Number(this.animation.currentTime)||0)}set time(e){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=qa(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&Uc()?(this.animation.timeline=e,P):t(this)}},Qc={anticipate:so,backInOut:oo,circInOut:uo};function $c(e){return e in Qc}function el(e){typeof e.ease==`string`&&$c(e.ease)&&(e.ease=Qc[e.ease])}var tl=10,nl=class extends Zc{constructor(e){el(e),sc(e),super(e),e.startTime!==void 0&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new uc({...a,autoplay:!1}),s=Math.max(tl,R.now()-this.startTime),c=Pa(0,tl,s-tl);t.setWithVelocity(o.sample(Math.max(0,s-c)).value,o.sample(s).value,c),o.stop()}},rl=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(V.test(e)||e===`0`)&&!e.startsWith(`url(`));function il(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function al(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=rl(i,t),s=rl(a,t);return Ia(o===s,`You are trying to animate ${t} from "${i}" to "${a}". "${o?a:i}" is not an animatable value.`,`value-not-animatable`),!o||!s?!1:il(e)||(n===`spring`||Yc(n))&&r}function ol(e){e.duration=0,e.type=`keyframes`}var sl=new Set([`opacity`,`clipPath`,`filter`,`transform`]),cl=Ha(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function ll(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:s,transformTemplate:c}=t.owner.getProps();return cl()&&n&&sl.has(n)&&(n!==`transform`||!c)&&!s&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var ul=40,dl=class extends cc{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=R.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u};this.keyframeResolver=new(l?.KeyframeResolver||Rc)(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=R.now(),al(e,i,a,o)||((Ra.instantAnimations||!s)&&l?.(ac(e,n,t)),e[0]=e[e.length-1],ol(n),n.repeat=0);let u={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>ul?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},d=!c&&ll(u),f=u.motionValue?.owner?.current,p=d?new nl({...u,element:f}):new uc(u);p.finished.then(()=>{this.notifyFinished()}).catch(P),this.pendingTimeline&&=(this.stopTimeline=p.attachTimeline(this.pendingTimeline),void 0),this._animation=p}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(),Lc()),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()}};function fl(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var pl=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ml(e){let t=pl.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}var hl=4;function gl(e,t,n=1){La(n<=hl,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,`max-css-var-depth`);let[r,i]=ml(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return za(e)?parseFloat(e):e}return No(i)?gl(i,t,n+1):i}var _l={type:`spring`,stiffness:500,damping:25,restSpeed:10},vl=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),yl={type:`keyframes`,duration:.8},bl={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},xl=(e,{keyframes:t})=>t.length>2?yl:Tc.has(e)?e.startsWith(`scale`)?vl(t[1]):_l:bl,Sl=e=>e!==null;function Cl(e,{repeat:t,repeatType:n=`loop`},r){let i=e.filter(Sl),a=t&&n!==`loop`&&t%2==1?0:i.length-1;return!a||r===void 0?i[a]:r}function wl(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Tl(e,t){let n=e?.[t]??e?.default??e;return n===e?n:wl(n,e)}function El({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:c,elapsed:l,...u}){return!!Object.keys(u).length}var Dl=(e,t,n,r={},i,a)=>o=>{let s=Tl(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=qa(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};El(s)||Object.assign(u,xl(e,u)),u.duration&&=qa(u.duration),u.repeatDelay&&=qa(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(ol(u),u.delay===0&&(d=!0)),(Ra.instantAnimations||Ra.skipAnimations||i?.shouldSkipAnimations)&&(d=!0,ol(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=Cl(u.keyframes,s);if(e!==void 0){I.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new uc(u):new dl(u)};function Ol(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function kl(e,t,n,r){if(typeof t==`function`){let[i,a]=Ol(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=Ol(r);t=t(n===void 0?e.custom:n,i,a)}return t}function Al(e,t,n){let r=e.getProps();return kl(r,t,n===void 0?r.custom:n,e)}var jl=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...wc]),Ml=30,Nl=e=>!isNaN(parseFloat(e)),Pl={current:void 0},Fl=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=R.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=R.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Nl(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!==`production`&&Xa(!1,`value.onChange(callback) is deprecated. Switch to value.on("change", callback).`),this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new Ka);let n=this.events[e].add(t);return e===`change`?()=>{n(),I.read(()=>{this.events.change.getSize()||this.stop()})}:n}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,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}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||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Pl.current&&Pl.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=R.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Ml)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,Ml);return Ja(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 Il(e,t){return new Fl(e,t)}var Ll=e=>Array.isArray(e);function Rl(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Il(n))}function zl(e){return Ll(e)?e[e.length-1]||0:e}function Bl(e,t){let{transitionEnd:n={},transition:r={},...i}=Al(e,t)||{};i={...i,...n};for(let t in i)Rl(e,t,zl(i[t]))}var W=e=>!!(e&&e.getVelocity);function Vl(e){return!!(W(e)&&e.add)}function Hl(e,t){let n=e.getValue(`willChange`);if(Vl(n))return n.add(t);if(!n&&Ra.WillChange){let n=new Ra.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Ul(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Wl=`data-`+Ul(`framerAppearId`);function Gl(e){return e.props[Wl]}function Kl({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function ql(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?wl(a,c):c;let l=a?.reduceMotion;r&&(a=r);let u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||d&&Kl(d,t))continue;let o={delay:n,...Tl(a||{},t)},c=r.get();if(c!==void 0&&!r.isAnimating&&!Array.isArray(i)&&i===c&&!o.velocity)continue;let f=!1;if(window.MotionHandoffAnimation){let n=Gl(e);if(n){let e=window.MotionHandoffAnimation(n,t,I);e!==null&&(o.startTime=e,f=!0)}}Hl(e,t);let p=l??e.shouldReduceMotion;r.start(Dl(t,r,i,p&&jl.has(t)?{type:!1}:o,e,f));let m=r.animation;m&&u.push(m)}if(o){let t=()=>I.update(()=>{o&&Bl(e,o)});u.length?Promise.all(u).then(t):t()}return u}function Jl(e,t,n={}){let r=Al(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(ql(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return Yl(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function Yl(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(Jl(c,t,{...o,delay:n+(typeof r==`function`?0:r)+fl(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function Xl(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>Jl(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=Jl(e,t,n);else{let i=typeof t==`function`?Al(e,t,n.custom):t;r=Promise.all(ql(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var Zl={test:e=>e===`auto`,parse:e=>e},Ql=e=>t=>t.test(e),$l=[Io,z,Qo,Zo,es,$o,Zl],eu=e=>$l.find(Ql(e));function tu(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||Va(e)}var nu=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function ru(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Bo)||[];if(!r)return e;let i=n.replace(r,``),a=nu.has(t)?1:0;return r!==n&&(a*=100),t+`(`+a+i+`)`}var iu=/\b([a-z-]*)\(.*?\)/gu,au={...V,getAnimatableNone:e=>{let t=e.match(iu);return t?t.map(ru).join(` `):e}},ou={...V,getAnimatableNone:e=>{let t=V.parse(e);return V.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},su={...Io,transform:Math.round},cu={borderWidth:z,borderTopWidth:z,borderRightWidth:z,borderBottomWidth:z,borderLeftWidth:z,borderRadius:z,borderTopLeftRadius:z,borderTopRightRadius:z,borderBottomRightRadius:z,borderBottomLeftRadius:z,width:z,maxWidth:z,height:z,maxHeight:z,top:z,right:z,bottom:z,left:z,inset:z,insetBlock:z,insetBlockStart:z,insetBlockEnd:z,insetInline:z,insetInlineStart:z,insetInlineEnd:z,padding:z,paddingTop:z,paddingRight:z,paddingBottom:z,paddingLeft:z,paddingBlock:z,paddingBlockStart:z,paddingBlockEnd:z,paddingInline:z,paddingInlineStart:z,paddingInlineEnd:z,margin:z,marginTop:z,marginRight:z,marginBottom:z,marginLeft:z,marginBlock:z,marginBlockStart:z,marginBlockEnd:z,marginInline:z,marginInlineStart:z,marginInlineEnd:z,fontSize:z,backgroundPositionX:z,backgroundPositionY:z,rotate:Zo,rotateX:Zo,rotateY:Zo,rotateZ:Zo,scale:Ro,scaleX:Ro,scaleY:Ro,scaleZ:Ro,skew:Zo,skewX:Zo,skewY:Zo,distance:z,translateX:z,translateY:z,translateZ:z,x:z,y:z,z,perspective:z,transformPerspective:z,opacity:Lo,originX:ts,originY:ts,originZ:z,zIndex:su,fillOpacity:Lo,strokeOpacity:Lo,numOctaves:su},lu={...cu,color:B,backgroundColor:B,outlineColor:B,fill:B,stroke:B,borderColor:B,borderTopColor:B,borderRightColor:B,borderBottomColor:B,borderLeftColor:B,filter:au,WebkitFilter:au,mask:ou,WebkitMask:ou},uu=e=>lu[e],du=new Set([au,ou]);function fu(e,t){let n=uu(e);return du.has(n)||(n=V),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var pu=new Set([`auto`,`none`,`0`]);function mu(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!pu.has(t)&&ds(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=fu(n,i)}var hu=class extends Rc{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),No(r))){let i=gl(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!jl.has(n)||e.length!==2)return;let[r,i]=e,a=eu(r),o=eu(i);if(Fo(r)!==Fo(i)&&Ac[n]){this.needsMeasurement=!0;return}if(a!==o)if(Ec(a)&&Ec(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else Ac[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||tu(e[t]))&&n.push(t);n.length&&mu(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ac[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=Ac[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},gu=new Set([`opacity`,`clipPath`,`filter`,`transform`]);function _u(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var vu=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function yu(e){return Ba(e)&&`offsetHeight`in e}var{schedule:bu,cancel:xu}=wo(queueMicrotask,!1),Su={x:!1,y:!1};function Cu(){return Su.x||Su.y}function wu(e,t){let n=_u(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Tu(e){return!(e.pointerType===`touch`||Cu())}function Eu(e,t,n={}){let[r,i,a]=wu(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!Tu(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var Du=(e,t)=>t?e===t?!0:Du(e,t.parentElement):!1,Ou=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,ku=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function Au(e){return ku.has(e.tagName)||e.isContentEditable===!0}var ju=new WeakSet;function Mu(e){return t=>{t.key===`Enter`&&e(t)}}function Nu(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Pu=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Mu(()=>{if(ju.has(n))return;Nu(n,`down`);let e=Mu(()=>{Nu(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>Nu(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function Fu(e){return Ou(e)&&!Cu()}var Iu=new WeakSet;function Lu(e,t,n={}){let[r,i,a]=wu(e,n),o=e=>{let r=e.currentTarget;if(!Fu(e)||Iu.has(e))return;ju.add(r),n.stopPropagation&&Iu.add(e);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),ju.has(r)&&ju.delete(r),Fu(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||Du(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),yu(e)&&(e.addEventListener(`focus`,e=>Pu(e,i)),!Au(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function Ru(e){return Ba(e)&&`ownerSVGElement`in e}function zu(e){return Ru(e)&&e.tagName===`svg`}var Bu=[...$l,B,V],Vu=e=>Bu.find(Ql(e)),Hu=()=>({translate:0,scale:1,origin:0,originPoint:0}),Uu=()=>({x:Hu(),y:Hu()}),Wu=()=>({min:0,max:0}),G=()=>({x:Wu(),y:Wu()}),Gu=new WeakMap;function Ku(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function qu(e){return typeof e==`string`||Array.isArray(e)}var Ju=[`initial`,...[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`]];function Yu(e){return Ku(e.animate)||Ju.some(t=>qu(e[t]))}function Xu(e){return!!(Yu(e)||e.variants)}function Zu(e,t,n){for(let r in t){let i=t[r],a=n[r];if(W(i))e.addValue(r,i);else if(W(a))e.addValue(r,Il(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,Il(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var Qu={current:null},$u={current:!1},ed=typeof window<`u`;function td(){if($u.current=!0,ed)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Qu.current=e.matches;e.addEventListener(`change`,t),t()}else Qu.current=!1}var nd=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],rd={},id=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){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=Rc,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=R.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,I.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=Yu(t),this.isVariantNode=Xu(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&W(t)&&t.set(c[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,Gu.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)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:($u.current||td(),this.shouldReduceMotion=Qu.current),process.env.NODE_ENV!==`production`&&Xa(this.shouldReduceMotion!==!0,`You have Reduced Motion enabled on your device. Animations may not appear as expected.`,`reduced-motion-disabled`),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),To(this.notifyUpdate),To(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in 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??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&gu.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Zc({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:qa(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=Tc.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&I.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in rd){let t=rd[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.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):G()}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<nd.length;t++){let n=nd[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Zu(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 n=this.values.get(e);t!==n&&(n&&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 n=this.values.get(e);return n===void 0&&t!==void 0&&(n=Il(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(za(n)||Va(n))?n=parseFloat(n):!Vu(n)&&V.test(t)&&(n=fu(e,t)),this.setBaseTarget(e,W(n)?n.get():n)),W(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=kl(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!W(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new Ka),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){bu.render(this.render)}},ad=class extends id{constructor(){super(...arguments),this.KeyframeResolver=hu}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;W(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}};function od({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function sd({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function cd(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function ld(e){return e===void 0||e===1}function ud({scale:e,scaleX:t,scaleY:n}){return!ld(e)||!ld(t)||!ld(n)}function dd(e){return ud(e)||fd(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function fd(e){return pd(e.x)||pd(e.y)}function pd(e){return e&&e!==`0%`}function md(e,t,n){return n+t*(e-n)}function hd(e,t,n,r,i){return i!==void 0&&(e=md(e,i,r)),md(e,n,r)+t}function gd(e,t=0,n=1,r,i){e.min=hd(e.min,t,n,r,i),e.max=hd(e.max,t,n,r,i)}function _d(e,{x:t,y:n}){gd(e.x,t.translate,t.scale,t.originPoint),gd(e.y,n.translate,n.scale,n.originPoint)}var vd=.999999999999,yd=1.0000000000001;function bd(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Cd(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,_d(e,o)),r&&dd(a.latestValues)&&Cd(e,a.latestValues))}t.x<yd&&t.x>vd&&(t.x=1),t.y<yd&&t.y>vd&&(t.y=1)}function xd(e,t){e.min+=t,e.max+=t}function Sd(e,t,n,r,i=.5){gd(e,t,n,H(e.min,e.max,i),r)}function Cd(e,t){Sd(e.x,t.x,t.scaleX,t.scale,t.originX),Sd(e.y,t.y,t.scaleY,t.scale,t.originY)}function wd(e,t){return od(cd(e.getBoundingClientRect(),t))}function Td(e,t,n){let r=wd(e,n),{scroll:i}=t;return i&&(xd(r.x,i.offset.x),xd(r.y,i.offset.y)),r}var Ed={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Dd=wc.length;function Od(e,t,n){let r=``,i=!0;for(let a=0;a<Dd;a++){let o=wc[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===(o.startsWith(`scale`)?1:0);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=vu(s,cu[o]);if(!c){i=!1;let t=Ed[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}return r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function kd(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(Tc.has(e)){o=!0;continue}else if(jo(e)){i[e]=n;continue}else{let t=vu(n,cu[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Od(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function Ad(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function jd(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Md={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(z.test(e))e=parseFloat(e);else return e;return`${jd(e,t.target.x)}% ${jd(e,t.target.y)}%`}},Nd={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=V.parse(e);if(i.length>5)return r;let a=V.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=H(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},Pd={borderRadius:{...Md,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:Md,borderTopRightRadius:Md,borderBottomLeftRadius:Md,borderBottomRightRadius:Md,boxShadow:Nd};function Fd(e){for(let t in e)Pd[t]=e[t],jo(t)&&(Pd[t].isCSSVariable=!0)}function Id(e,{layout:t,layoutId:n}){return Tc.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!Pd[e]||e===`opacity`)}function Ld(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(W(r[t])||i&&W(i[t])||Id(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function Rd(e){return window.getComputedStyle(e)}var zd=class extends ad{constructor(){super(...arguments),this.type=`html`,this.renderInstance=Ad}readValueFromInstance(e,t){if(Tc.has(t))return this.projection?.isProjecting?bc(t):Sc(e,t);{let n=Rd(e),r=(jo(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return wd(e,t)}build(e,t,n){kd(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Ld(e,t,n)}},Bd={offset:`stroke-dashoffset`,array:`stroke-dasharray`},Vd={offset:`strokeDashoffset`,array:`strokeDasharray`};function Hd(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Bd:Vd;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var Ud=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function Wd(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(kd(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of Ud)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&Hd(d,i,a,o,!1)}var Gd=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`]),Kd=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function qd(e,t,n,r){Ad(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Gd.has(n)?n:Ul(n),t.attrs[n])}function Jd(e,t,n){let r=Ld(e,t,n);for(let n in e)if(W(e[n])||W(t[n])){let t=wc.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var Yd=class extends ad{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=G}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Tc.has(t)){let e=uu(t);return e&&e.default||0}return t=Gd.has(t)?t:Ul(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Jd(e,t,n)}build(e,t,n){Wd(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){qd(e,t,n,r)}mount(e){this.isSVGTag=Kd(e.tagName),super.mount(e)}};function Xd(e,t){e.min=t.min,e.max=t.max}function Zd(e,t){Xd(e.x,t.x),Xd(e.y,t.y)}function Qd(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var $d=1e-4,ef=1-$d,tf=1+$d,nf=.01,rf=0-nf,af=0+nf;function K(e){return e.max-e.min}function of(e,t,n){return Math.abs(e-t)<=n}function sf(e,t,n,r=.5){e.origin=r,e.originPoint=H(t.min,t.max,e.origin),e.scale=K(n)/K(t),e.translate=H(n.min,n.max,e.origin)-e.originPoint,(e.scale>=ef&&e.scale<=tf||isNaN(e.scale))&&(e.scale=1),(e.translate>=rf&&e.translate<=af||isNaN(e.translate))&&(e.translate=0)}function cf(e,t,n,r){sf(e.x,t.x,n.x,r?r.originX:void 0),sf(e.y,t.y,n.y,r?r.originY:void 0)}function lf(e,t,n){e.min=n.min+t.min,e.max=e.min+K(t)}function uf(e,t,n){lf(e.x,t.x,n.x),lf(e.y,t.y,n.y)}function df(e,t,n){e.min=t.min-n.min,e.max=e.min+K(t)}function ff(e,t,n){df(e.x,t.x,n.x),df(e.y,t.y,n.y)}function pf(e,t,n,r,i){return e-=t,e=md(e,1/n,r),i!==void 0&&(e=md(e,1/i,r)),e}function mf(e,t=0,n=1,r=.5,i,a=e,o=e){if(Qo.test(t)&&(t=parseFloat(t),t=H(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=H(a.min,a.max,r);e===a&&(s-=t),e.min=pf(e.min,t,n,s,i),e.max=pf(e.max,t,n,s,i)}function hf(e,t,[n,r,i],a,o){mf(e,t[n],t[r],t[i],t.scale,a,o)}var gf=[`x`,`scaleX`,`originX`],_f=[`y`,`scaleY`,`originY`];function vf(e,t,n,r){hf(e.x,t,gf,n?n.x:void 0,r?r.x:void 0),hf(e.y,t,_f,n?n.y:void 0,r?r.y:void 0)}function yf(e){return e.translate===0&&e.scale===1}function bf(e){return yf(e.x)&&yf(e.y)}function xf(e,t){return e.min===t.min&&e.max===t.max}function Sf(e,t){return xf(e.x,t.x)&&xf(e.y,t.y)}function Cf(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function wf(e,t){return Cf(e.x,t.x)&&Cf(e.y,t.y)}function Tf(e){return K(e.x)/K(e.y)}function Ef(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function q(e){return[e(`x`),e(`y`)]}function Df(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:a,skewX:o,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),a&&(r+=`rotateY(${a}deg) `),o&&(r+=`skewX(${o}deg) `),s&&(r+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var Of=[`TopLeft`,`TopRight`,`BottomLeft`,`BottomRight`],kf=Of.length,Af=e=>typeof e==`string`?parseFloat(e):e,jf=e=>typeof e==`number`||z.test(e);function Mf(e,t,n,r,i,a){i?(e.opacity=H(0,n.opacity??1,Pf(r)),e.opacityExit=H(t.opacity??1,0,Ff(r))):a&&(e.opacity=H(t.opacity??1,n.opacity??1,r));for(let i=0;i<kf;i++){let a=`border${Of[i]}Radius`,o=Nf(t,a),s=Nf(n,a);o===void 0&&s===void 0||(o||=0,s||=0,o===0||s===0||jf(o)===jf(s)?(e[a]=Math.max(H(Af(o),Af(s),r),0),(Qo.test(s)||Qo.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=H(t.rotate||0,n.rotate||0,r))}function Nf(e,t){return e[t]===void 0?e.borderRadius:e[t]}var Pf=If(0,.5,lo),Ff=If(.5,.95,P);function If(e,t,n){return r=>r<e?0:r>t?1:n(Ga(e,t,r))}function Lf(e,t,n){let r=W(e)?e:Il(e);return r.start(Dl(``,r,t,n)),r.animation}function Rf(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var zf=(e,t)=>e.depth-t.depth,Bf=class{constructor(){this.children=[],this.isDirty=!1}add(e){Ma(this.children,e),this.isDirty=!0}remove(e){Na(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(zf),this.isDirty=!1,this.children.forEach(e)}};function Vf(e,t){let n=R.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(To(r),e(a-t))};return I.setup(r,!0),()=>To(r)}function Hf(e){return W(e)?e.get():e}var Uf=class{constructor(){this.members=[]}add(e){Ma(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;r&&r.isConnected===!1&&n.isPresent!==!1&&!n.snapshot&&Na(this.members,n)}e.scheduleRender()}remove(e){if(Na(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){let t=this.members.findIndex(t=>e===t);if(t===0)return!1;let n;for(let e=t;e>=0;e--){let t=this.members[e],r=t.instance;if(t.isPresent!==!1&&(!r||r.isConnected!==!1)){n=t;break}}return n?(this.promote(n),!0):!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender();let r=n.options.layoutDependency,i=e.options.layoutDependency;if(!(r!==void 0&&i!==void 0&&r===i)){let r=n.instance;r&&r.isConnected===!1&&!n.snapshot||(e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0))}let{crossfade:a}=e.options;a===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}},Wf={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Gf={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Kf=[``,`X`,`Y`,`Z`],qf=1e3,Jf=0;function Yf(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Xf(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Gl(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,I,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Xf(r)}function Zf({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Jf++,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=()=>{this.projectionUpdateScheduled=!1,xo.value&&(Gf.nodes=Gf.calculatedTargetDeltas=Gf.calculatedProjections=0),this.nodes.forEach(ep),this.nodes.forEach(sp),this.nodes.forEach(cp),this.nodes.forEach(tp),xo.addProjectionMetrics&&xo.addProjectionMetrics(Gf)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Bf)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Ka),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=Ru(t)&&!zu(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;I.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=Vf(i,250),Wf.hasAnimatedSinceResize&&(Wf.hasAnimatedSinceResize=!1,this.nodes.forEach(op)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||hp,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!wf(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Tl(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l)}else t||op(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}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(),To(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(lp),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&&Xf(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,t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(rp);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(ip);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(ap),this.nodes.forEach(Qf),this.nodes.forEach($f)):this.nodes.forEach(ip),this.clearAllSnapshots();let e=R.now();L.delta=Pa(0,1e3/60,e-L.timestamp),L.timestamp=e,L.isProcessing=!0,Eo.update.process(L),Eo.preRender.process(L),Eo.render.process(L),L.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,bu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(np),this.sharedNodes.forEach(up)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,I.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){I.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!K(this.snapshot.measuredBox.x)&&!K(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=G(),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=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!bf(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||dd(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),yp(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return G();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(xp))){let{scroll:e}=this.root;e&&(xd(t.x,e.offset.x),xd(t.y,e.offset.y))}return t}removeElementScroll(e){let t=G();if(Zd(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&Zd(t,e),xd(t.x,i.offset.x),xd(t.y,i.offset.y))}return t}applyTransform(e,t=!1){let n=G();Zd(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&Cd(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),dd(r.latestValues)&&Cd(n,r.latestValues)}return dd(this.latestValues)&&Cd(n,this.latestValues),n}removeTransform(e){let t=G();Zd(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!dd(n.latestValues))continue;ud(n.latestValues)&&n.updateSnapshot();let r=G();Zd(r,n.measurePageBox()),vf(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return dd(this.latestValues)&&vf(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0: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!==L.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=L.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=G(),this.targetWithTransforms=G()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),uf(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Zd(this.target,this.layout.layoutBox),_d(this.target,this.targetDelta)):Zd(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),xo.value&&Gf.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||ud(this.parent.latestValues)||fd(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=G(),this.relativeTargetOrigin=G(),ff(this.relativeTargetOrigin,t,n),Zd(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===L.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;Zd(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;bd(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=G());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Qd(this.prevProjectionDelta.x,this.projectionDelta.x),Qd(this.prevProjectionDelta.y,this.projectionDelta.y)),cf(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!Ef(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ef(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),xo.value&&Gf.calculatedProjections++}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=Uu(),this.projectionDelta=Uu(),this.projectionDeltaWithTransform=Uu()}setAnimationOrigin(e,t=!1){let n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},a=Uu();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=G(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),l=!c||c.members.length<=1,u=!!(s&&!l&&this.options.crossfade===!0&&!this.path.some(mp));this.animationProgress=0;let d;this.mixTargetDelta=t=>{let n=t/1e3;dp(a.x,e.x,n),dp(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ff(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),pp(this.relativeTarget,this.relativeTargetOrigin,o,n),d&&Sf(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||=G(),Zd(d,this.relativeTarget)),s&&(this.animationValues=i,Mf(i,r,this.latestValues,n,u,l)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(To(this.pendingAnimation),void 0),this.pendingAnimation=I.update(()=>{Wf.hasAnimatedSinceResize=!0,ko.layout++,this.motionValue||=Il(0),this.motionValue.jump(0,!1),this.currentAnimation=Lf(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{ko.layout--},onComplete:()=>{ko.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),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(qf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&bp(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||G();let t=K(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=K(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Zd(t,n),Cd(t,i),cf(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Uf),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}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:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&Yf(`z`,e,r,this.animationValues);for(let t=0;t<Kf.length;t++)Yf(`rotate${Kf[t]}`,e,r,this.animationValues),Yf(`skew${Kf[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=Hf(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=Hf(t?.pointerEvents)||``),this.hasProjected&&!dd(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=Df(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in Pd){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=Pd[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?Hf(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(rp),this.root.sharedNodes.clear()}}}function Qf(e){e.updateLayout()}function $f(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;i===`size`?q(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=K(r);r.min=n[e].min,r.max=r.min+i}):bp(i,t.layoutBox,n)&&q(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=K(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=Uu();cf(o,n,t.layoutBox);let s=Uu();a?cf(s,e.applyTransform(r,!0),t.measuredBox):cf(s,n,t.layoutBox);let c=!bf(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=G();ff(o,t.layoutBox,i.layoutBox);let s=G();ff(s,n,a.layoutBox),wf(o,s)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=o,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function ep(e){xo.value&&Gf.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function tp(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function np(e){e.clearSnapshot()}function rp(e){e.clearMeasurements()}function ip(e){e.isLayoutDirty=!1}function ap(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function op(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function sp(e){e.resolveTargetDelta()}function cp(e){e.calcProjection()}function lp(e){e.resetSkewAndRotation()}function up(e){e.removeLeadSnapshot()}function dp(e,t,n){e.translate=H(t.translate,0,n),e.scale=H(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function fp(e,t,n,r){e.min=H(t.min,n.min,r),e.max=H(t.max,n.max,r)}function pp(e,t,n,r){fp(e.x,t.x,n.x,r),fp(e.y,t.y,n.y,r)}function mp(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var hp={duration:.45,ease:[.4,0,.1,1]},gp=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),_p=gp(`applewebkit/`)&&!gp(`chrome/`)?Math.round:P;function vp(e){e.min=_p(e.min),e.max=_p(e.max)}function yp(e){vp(e.x),vp(e.y)}function bp(e,t,n){return e===`position`||e===`preserve-aspect`&&!of(Tf(t),Tf(n),.2)}function xp(e){return e!==e.root&&e.scroll?.wasRoot}var Sp=Zf({attachResizeListener:(e,t)=>Rf(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Cp={current:void 0},wp=Zf({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Cp.current){let e=new Sp({});e.mount(window),e.setOptions({layoutScroll:!0}),Cp.current=e}return Cp.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Tp={some:0,all:1};function Ep(e,t,{root:n,margin:r,amount:i=`some`}={}){let a=_u(e),o=new WeakMap,s=new IntersectionObserver(e=>{e.forEach(e=>{let n=o.get(e.target);if(e.isIntersecting!==!!n)if(e.isIntersecting){let n=t(e.target,e);typeof n==`function`?o.set(e.target,n):s.unobserve(e.target)}else typeof n==`function`&&(n(e),o.delete(e.target))})},{root:n,rootMargin:r,threshold:typeof i==`number`?i:Tp[i]});return a.forEach(e=>s.observe(e)),()=>s.disconnect()}var Dp=(e,t)=>Math.abs(e-t);function Op(e,t){let n=Dp(e.x,t.x),r=Dp(e.y,t.y);return Math.sqrt(n**2+r**2)}function kp({current:e}){return e?e.ownerDocument.defaultView:null}function Ap(e){if(e)return e.nodeType===3||e.nodeType===8?Ap(e.nextSibling):e}var[jp,Mp,Np]=Aa(`Motion`),[Pp,Fp,Ip]=Aa(`LayoutGroup`),Lp={reducedMotion:`never`,transition:void 0,nonce:void 0},[Rp,zp,Bp]=Aa(`MotionConfig`);function Vp(){return Rp((0,n.computed)(()=>Lp))}var Hp=function(){},Up=function(){};process.env.NODE_ENV!==`production`&&(Hp=function(e,t){!e&&typeof console<`u`&&console.warn(t)},Up=function(e,t){if(!e)throw Error(t)});var Wp={motionAttribute:`data-ap`},Gp=[];function Kp(e){for(let t of e)t&&!Gp.includes(t)&&Gp.push(t)}function qp(e,t,n){if(Array.isArray(e))return e.reduce((e,r)=>{let i=qp(r,t,n);return i?{...e,...i}:e},{});if(typeof e==`object`)return e;if(e&&t){let r=t[e];return typeof r==`function`?r(n):r}}function Jp(e,t,n){let r=qp(e,t,n);if(!r)return;let{transition:i,transitionEnd:a,...o}=r;return{...o,...a}}function Yp(e,t){let n=(e.initial===void 0&&e.variants?t?.initial:e.initial)===!1?[`initial`,`animate`]:[`initial`],r=e.custom??e.presenceContext?.custom;return n.reduce((n,i)=>({...n,...Jp(e[i]||t?.[i],e.variants,r)}),{})}function Xp(e,t){let n=t?.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Zp=new Set(`animate.circle.defs.desc.ellipse.g.image.line.filter.marker.mask.metadata.path.pattern.polygon.polyline.rect.stop.svg.switch.symbol.text.tspan.use.view.clipPath.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.foreignObject.linearGradient.radialGradient.textPath`.split(`.`));function Qp(e){return Zp.has(e)}var $p=new WeakMap,em=class{constructor(e,t){this.element=null,this.isExiting=!1,this.presenceContainer=null,this.children=new Set,this.features=new Map,this._context=null,this.options=e,this.parent=t,t?.children?.add(this),this.latestValues=Yp(e,this.context),this.type=Qp(this.options.as)?`svg`:`html`}get context(){return this._context||=new Proxy({},{get:(e,t)=>{let n=this.options[t];return qu(n)||t===`initial`&&n===!1?n:this.parent?.context[t]}}),this._context}updateFeatures(){if(this.visualElement)for(let e of Gp){this.features.has(e.key)||this.features.set(e.key,new e(this));let t=this.features.get(e.key);this.isMounted()&&(t.isMount?t.update():(t.mount(),t.isMount=!0))}}updateOptions(e){this.options=e,this.visualElement?.update({...this.options,whileTap:this.options.whilePress},null)}mount(e){Up(!!e,`Animation state must be mounted with valid Element`),$p.set(e,this),this.element=e,e.setAttribute(Wp.motionAttribute,this.options.presenceContext?.presenceId??``),this.visualElement?.mount(e),this.updateFeatures()}beforeUnmount(){this.getSnapshot(this.options,!1)}unmount(){this.parent?.children?.delete(this),$p.delete(this.element),this.features.forEach(e=>e.unmount?.()),this.visualElement?.unmount()}beforeUpdate(){this.getSnapshot(this.options,void 0)}update(){this.updateFeatures(),this.didUpdate()}tryExitComplete(){this.isExiting||this.options?.layoutId&&this.visualElement.projection?.currentAnimation?.state===`running`||this.options.presenceContext?.onMotionExitComplete?.(this.presenceContainer,this)}setActive(e,t){e===`exit`&&t&&(this.isExiting=!0),this.visualElement?.animationState?.setActive(e,t).then(()=>{e===`exit`&&t&&(this.isExiting=!1,this.options?.layoutId?I.postRender(()=>this.tryExitComplete()):this.tryExitComplete())})}isMounted(){return!!this.element}initVisualElement(e){this.visualElement||(this.visualElement=e(this.options.as,{presenceContext:null,parent:this.parent?.visualElement,props:{...this.options,whileTap:this.options.whilePress},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{...this.latestValues}},reducedMotionConfig:this.options.motionConfig?.reducedMotion}),this.visualElement.parent?.addChild(this.visualElement),this.isMounted()&&this.visualElement.mount(this.element))}getSnapshot(e,t){}didUpdate(){}},tm=class{constructor(e){this.state=e}mount(){}unmount(){}update(){}},nm=[`initial`,`animate`,`exit`,`whileHover`,`whileDrag`,`whileFocus`,`whilePress`],rm=nm.length;function im(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&im(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<rm;n++){let r=nm[n],i=e.props[r];(qu(i)||i===!1)&&(t[r]=i)}return t}var am=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whilePress`,`whileDrag`,`exit`],om=[...am].reverse(),sm=am.length;function cm(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function lm(){return{animate:cm(!0),whileInView:cm(),whileHover:cm(),whilePress:cm(),whileDrag:cm(),whileFocus:cm(),exit:cm()}}function um(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Xp(t,e):!1}function dm(e){return Array.isArray(e)}function fm(e){return t=>Promise.all(t.map(({animation:t,options:n})=>Xl(e,t,n)))}function pm(e){let t=fm(e),n=lm(),r=!0,i=t=>(n,r)=>{let i=Al(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function a(n){t=n(e)}function o(a){let{props:o}=e,s=im(e.parent)||{},c=[],l=new Set,u={},d=1/0;for(let t=0;t<sm;t++){let f=om[t],p=n[f],m=o[f]===void 0?s[f]:o[f],h=qu(m),g=f===a?p.isActive:null;g===!1&&(d=t);let _=m===s[f]&&m!==o[f]&&h;if(_&&r&&e.manuallyAnimateOnMount&&(_=!1),p.protectedKeys={...u},!p.isActive&&g===null||!m&&!p.prevProp||Ku(m)||typeof m==`boolean`)continue;let v=um(p.prevProp,m),y=v||f===a&&p.isActive&&!_&&h||t>d&&h,b=!1,x=Array.isArray(m)?m:[m],S=x.reduce(i(f),{});g===!1&&(S={});let{prevResolvedValues:C={}}=p,ee={...C,...S},te=t=>{y=!0,l.has(t)&&(b=!0,l.delete(t)),p.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in ee){let t=S[e],n=C[e];if(Object.hasOwnProperty.call(u,e))continue;let r=!1;r=dm(t)&&dm(n)?!Xp(t,n):t!==n,r?t==null?l.add(e):te(e):t!==void 0&&l.has(e)?te(e):p.protectedKeys[e]=!0}p.prevProp=m,p.prevResolvedValues=S,p.isActive&&(u={...u,...S}),r&&e.blockInitialAnimation&&(y=!1);let ne=_&&v;y&&(!ne||b)&&c.push(...x.map(t=>{let n={type:f};if(typeof t==`string`&&r&&!ne&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=Al(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=fl(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(l.size){let t={};if(typeof o.initial!=`boolean`){let n=Al(e,Array.isArray(o.initial)?o.initial[0]:o.initial);n&&n.transition&&(t.transition=n.transition)}l.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),c.push({animation:t})}let f=!!c.length;return r&&(o.initial===!1||o.initial===o.animate)&&!e.manuallyAnimateOnMount&&(f=!1),r=!1,f?t(c):Promise.resolve()}function s(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>{e.animationState?.setActive(t,r)}),n[t].isActive=r;let i=o(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:o,setActive:s,setAnimateFunction:a,getState:()=>n,reset:()=>{n=lm(),r=!0}}}function mm(e){return e.style.display===`none`||e.offsetParent===null&&window.getComputedStyle(e).position!==`fixed`}var hm=class extends tm{static#e=this.key=`animation`;constructor(e){super(e);let t=e.visualElement;t.animationState||=pm(t)}updateAnimationControlsSubscription(){let{animate:e}=this.state.options;Ku(e)&&(this.unmountControls=e.subscribe(this.state.visualElement))}mount(){mm(this.state.element)?this.state.setActive(`exit`,!0):this.state.visualElement.animationState?.animateChanges(),this.updateAnimationControlsSubscription()}update(){this.state.visualElement.animationState?.animateChanges();let{animate:e}=this.state.visualElement.getProps(),{animate:t}=this.state.visualElement.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.state.visualElement.animationState.reset(),this.unmountControls?.()}};function gm(e,t){return Qp(e)?new Yd(t):new zd(t)}function _m(e){return{point:{x:e.pageX,y:e.pageY}}}var vm=class extends tm{static#e=this.key=`press`;constructor(e){super(e)}isActive(){let{whilePress:e,onPress:t,onPressCancel:n,onPressStart:r}=this.state.options;return!!(e||t||n||r)}register(){let e=this.state.element;!e||!this.isActive()||(this.removePress?.(),this.removePress=Lu(e,(e,t)=>{let n=this.state.options;return this.state.setActive(`whilePress`,!0),n.onPressStart&&I.postRender(()=>n.onPressStart(t,_m(t))),(e,{success:t})=>{this.state.setActive(`whilePress`,!1);let n=t?`onPress`:`onPressCancel`,r=this.state.options[n];r&&I.postRender(()=>r(e,_m(e)))}},{useGlobalTarget:this.state.options.globalPressTarget}))}mount(){this.register()}update(){let e=this.state.visualElement.prevProps;!(e?.whilePress||e?.whileTap||e?.onPress||e?.onPressCancel||e?.onPressStart)&&this.isActive()&&this.register()}unmount(){this.removePress?.(),this.removePress=void 0}};function ym(e){return e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1}function bm(e,t=`page`){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}function xm(e){return t=>ym(t)&&e(t,bm(t))}var Sm=class extends tm{static#e=this.key=`hover`;constructor(e){super(e)}isActive(){let{whileHover:e,onHoverStart:t,onHoverEnd:n}=this.state.options;return!!(e||t||n)}register(){let e=this.state.element;!e||!this.isActive()||(this.removeHover?.(),this.removeHover=Eu(e,(e,t)=>{let n=this.state.options;return this.state.setActive(`whileHover`,!0),n.onHoverStart&&I.postRender(()=>n.onHoverStart(t,bm(t))),e=>{this.state.setActive(`whileHover`,!1);let t=this.state.options.onHoverEnd;t&&I.postRender(()=>t(e,bm(e)))}}))}mount(){this.register()}update(){let e=this.state.visualElement.prevProps;!(e?.whileHover||e?.onHoverStart||e?.onHoverEnd)&&this.isActive()&&this.register()}unmount(){this.removeHover?.(),this.removeHover=void 0}},Cm=class extends tm{static#e=this.key=`inView`;constructor(e){super(e)}isActive(){let{whileInView:e,onViewportEnter:t,onViewportLeave:n}=this.state.options;return!!(e||t||n)}startObserver(){let e=this.state.element;if(!e||!this.isActive())return;this.removeObserver?.();let{once:t,...n}=this.state.options.inViewOptions||{};this.removeObserver=Ep(e,(e,n)=>{let r=this.state.options;if(this.state.setActive(`whileInView`,!0),r.onViewportEnter&&I.postRender(()=>r.onViewportEnter(n)),!t)return()=>{this.state.setActive(`whileInView`,!1);let e=this.state.options.onViewportLeave;e&&I.postRender(()=>e(n))}},n)}mount(){this.startObserver()}update(){let{props:e,prevProps:t}=this.state.visualElement;[`amount`,`margin`,`root`].some(n=>e.inViewOptions?.[n]!==t?.inViewOptions?.[n])&&this.startObserver()}unmount(){this.removeObserver?.(),this.removeObserver=void 0}};function wm(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var Tm=class extends tm{static#e=this.key=`focus`;constructor(e){super(e),this.isFocused=!1}onFocus(){let e=!1;try{e=this.state.element.matches(`:focus-visible`)}catch{e=!0}e&&(this.state.setActive(`whileFocus`,!0),this.isFocused=!0)}onBlur(){this.isFocused&&=(this.state.setActive(`whileFocus`,!1),!1)}mount(){let e=this.state.element;this.removeFocus=Wa(wm(e,`focus`,()=>this.onFocus()),wm(e,`blur`,()=>this.onBlur()))}unmount(){this.removeFocus?.(),this.removeFocus=void 0}};function Em(e){if(e)return e.options.allowProjection===!1?Em(e.parent):e.projection}var Dm={borderRadius:{...Md,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:Md,borderTopRightRadius:Md,borderBottomLeftRadius:Md,borderBottomRightRadius:Md,boxShadow:Nd};function Om(e){return typeof e==`object`&&!!e&&`nodeType`in e}var km=typeof window>`u`,Am=class extends tm{static#e=this.key=`projection`;constructor(e){super(e),Fd(Dm),km||this.initProjection()}initProjection(){let e=this.state.options;this.state.visualElement.projection=new wp(this.state.visualElement.latestValues,e[`data-framer-portal-id`]?void 0:Em(this.state.visualElement.parent)),this.projection=this.state.visualElement.projection,this.projection.isPresent=!0,this.setOptions()}setOptions(){let e=this.state.options,{layoutId:t,layout:n,drag:r=!1,dragConstraints:i=!1}=e;this.projection?.setOptions({layout:n,layoutId:t,alwaysMeasureLayout:!!t||!!r||i&&Om(i),visualElement:this.state.visualElement,animationType:typeof e.layout==`string`?e.layout:`both`,layoutRoot:e.layoutRoot,layoutScroll:e.layoutScroll,crossfade:e.crossfade,onExitComplete:()=>{!this.projection?.isPresent&&this.state.options.layoutId&&!this.state.isExiting&&queueMicrotask(()=>{this.state.options.presenceContext?.onMotionExitComplete?.(this.state.presenceContainer,this.state)})}})}update(){this.setOptions()}mount(){this.projection?.mount(this.state.element)}};function jm(e,t,n,r){return wm(e,t,xm(n),r)}var Mm=new Set([`auto`,`scroll`]),Nm=class{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:i=!1,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=Im(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=Op(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=L;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Pm(t,this.transformPagePoint),I.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=Im(e.type===`pointercancel`?this.lastMoveEventInfo:Pm(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!ym(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;let o=Pm(bm(e),this.transformPagePoint),{point:s}=o,{timestamp:c}=L;this.history=[{...s,timestamp:c}];let{onSessionStart:l}=t;l&&l(e,Im(o,this.history)),this.removeListeners=Wa(jm(this.contextWindow,`pointermove`,this.handlePointerMove),jm(this.contextWindow,`pointerup`,this.handlePointerUp),jm(this.contextWindow,`pointercancel`,this.handlePointerUp)),a&&this.startScrollTracking(a)}isScrollable(e){let t=window.getComputedStyle(e);return t.overflow===`auto`||t.overflow===`scroll`||t.overflowX===`auto`||t.overflowX===`scroll`||t.overflowY===`auto`||t.overflowY===`scroll`}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(Mm.has(e.overflowX)||Mm.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,passive:!0}),window.addEventListener(`scroll`,this.onWindowScroll,{passive:!0}),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 n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};i.x===0&&i.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),I.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners?.(),this.scrollPositions.clear(),To(this.updatePoint)}};function Pm(e,t){return t?{point:t(e.point)}:e}function Fm(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Im({point:e},t){return{point:e,delta:Fm(e,Rm(t)),offset:Fm(e,Lm(t)),velocity:zm(t,.1)}}function Lm(e){return e[0]}function Rm(e){return e[e.length-1]}function zm(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=Rm(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>qa(t)));)n--;if(!r)return{x:0,y:0};let a=F(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Bm(e){return(t,n)=>{e&&I.postRender(()=>e(t,n))}}var Vm=class extends tm{constructor(...e){super(...e),this.removePointerDownListener=P}static#e=this.key=`pan`;onPointerDown(e){this.session=new Nm(e,this.createPanHandlers(),{transformPagePoint:this.state.visualElement.getTransformPagePoint(),contextWindow:kp(this.state.visualElement)})}createPanHandlers(){return{onSessionStart:Bm((e,t)=>{let{onPanSessionStart:n}=this.state.options;n&&n(e,t)}),onStart:Bm((e,t)=>{let{onPanStart:n}=this.state.options;n&&n(e,t)}),onMove:(e,t)=>{let{onPan:n}=this.state.options;n&&n(e,t)},onEnd:(e,t)=>{let{onPanEnd:n}=this.state.options;delete this.session,n&&I.postRender(()=>n(e,t))}}}mount(){this.removePointerDownListener=jm(this.state.element,`pointerdown`,this.onPointerDown.bind(this))}update(){}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};function Hm(e){let t=null;return()=>t===null?(t=e,()=>{t=null}):!1}var Um=Hm(`dragHorizontal`),Wm=Hm(`dragVertical`);function Gm(e){let t=!1;if(e===`y`)t=Wm();else if(e===`x`)t=Um();else{let e=Um(),n=Wm();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function Km(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?H(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?H(n,e,r.max):Math.min(e,n)),e}var qm=.35;function Jm(e,{top:t,left:n,bottom:r,right:i}){return{x:Ym(e.x,n,i),y:Ym(e.y,t,r)}}function Ym(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function Xm(e=qm){return e===!1?e=0:e===!0&&(e=qm),{x:Zm(e,`left`,`right`),y:Zm(e,`top`,`bottom`)}}function Zm(e,t,n){return{min:Qm(e,t),max:Qm(e,n)}}function Qm(e,t){return typeof e==`number`?e:e[t]||0}function $m(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}function eh(e,t){return{x:th(e.x,t.x),y:th(e.y,t.y)}}function th(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function nh(e,t){let n=.5,r=K(e),i=K(t);return i>r?n=Ga(t.min,t.max-r,e.min):r>i&&(n=Ga(e.min,e.max-i,t.min)),Pa(0,1,n)}var rh=new WeakMap,ih=class{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=G(),this.state=e}get visualElement(){return this.state.visualElement}start(e,{snapToCursor:t=!1}={}){let n=e=>{t?this.stopAnimation():this.pauseAnimation(),t&&this.snapToCursor(bm(e,`page`).point)},r=(e,t)=>{this.stopAnimation();let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Gm(n),!this.openGlobalLock)||(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),q(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Qo.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=K(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&I.postRender(()=>i(e,t)),Hl(this.visualElement,`transform`),this.state.setActive(`whileDrag`,!0))},i=(e,t)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=oh(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&a(e,t)},a=(e,t)=>this.stop(e,t),o=()=>q(e=>this.getAnimationState(e)===`paused`&&this.getAxisMotionValue(e).animation?.play()),{dragSnapToOrigin:s}=this.getProps();this.panSession=new Nm(e,{onSessionStart:n,onStart:r,onMove:i,onSessionEnd:a,resumeAnimation:o},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:s,contextWindow:kp(this.visualElement),element:this.state.element})}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=t;this.startAnimation(r);let{onDragEnd:i}=this.getProps();i&&I.postRender(()=>i(e,t))}cancel(){this.isDragging=!1;let{projection:e}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:t}=this.getProps();!t&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),this.state.setActive(`whileDrag`,!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!ah(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=Km(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&Om(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=Jm(n.layoutBox,e):this.constraints=!1,this.elastic=Xm(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&q(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=$m(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Om(e))return!1;let n=e;Up(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let i=Td(n,r.root,this.visualElement.getTransformPagePoint()),a=eh(r.layout.layoutBox,i);if(t){let e=t(sd(a));this.hasMutatedConstraints=!!e,e&&(a=od(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=q(o=>{if(!ah(o,t,this.currentDirection))return;let c=s&&s[o]||{};a&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return Hl(this.visualElement,e),n.start(Dl(e,n,0,t,this.visualElement,!1))}stopAnimation(){this.visualElement.projection?.isPresent&&q(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){q(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){q(t=>{let{drag:n}=this.getProps();if(!ah(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t];i.set(e[t]-H(n,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Om(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};q(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=nh({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.state.element.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),q(t=>{if(!ah(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(H(i,a,r[t]))})}addListeners(){if(!this.state.element)return;rh.set(this.visualElement,this);let e=this.state.element,t=jm(e,`pointerdown`,e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),n=()=>{let{dragConstraints:e}=this.getProps();Om(e)&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener(`measure`,n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),I.read(n);let a=wm(window,`resize`,()=>this.scalePositionWithinConstraints()),o=r.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(q(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{a(),t(),i(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=qm,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function ah(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function oh(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var sh=class extends tm{static#e=this.key=`drag`;constructor(e){super(e),this.removeGroupControls=P,this.removeListeners=P,this.controls=new ih(e)}mount(){let{dragControls:e}=this.state.options;e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||P}unmount(){this.removeGroupControls(),this.removeListeners()}},ch=!1,lh={renderer:gm,features:[hm,vm,Sm,Cm,Tm,Am,Vm,sh,class extends tm{static#e=this.key=`layout`;constructor(e){super(e),this.hasMountSettled=!1,Fd(Dm),e.getSnapshot=this.getSnapshot.bind(this),e.didUpdate=this.didUpdate.bind(this)}updatePrevLead(e){let t=e.getStack();t?.prevLead&&!t.prevLead.snapshot&&(t.prevLead.willUpdate(),ch=!0)}didUpdate(){ch&&(this.state.options.layout||this.state.options.layoutId||this.state.options.drag)&&(ch=!1,this.state.visualElement.projection?.root?.didUpdate())}mount(){let e=this.state.options,t=this.state.options.layoutGroup;if(e.layout||e.layoutId){let n=this.state.visualElement.projection;if(e.layoutId){let e=!mm(this.state.element);n.isPresent=e,e?n.promote():n.relegate(),this.updatePrevLead(n)}t?.group?.add(n),Wf.hasEverUpdated=!0}this.didUpdate(),I.postRender(()=>{this.hasMountSettled=!0})}unmount(){let e=this.state.options.layoutGroup,t=this.state.visualElement.projection;t&&(e?.group&&(this.state.options.layout||this.state.options.layoutId)&&e.group.remove(t),this.state.options.layoutId&&(ch=!0),this.didUpdate())}getSnapshot(e,t){let n=this.state.visualElement.projection,{drag:r,layoutDependency:i,layout:a,layoutId:o}=e;if(!n||!a&&!o&&!r||!this.hasMountSettled)return;ch=!0;let s=this.state.options;(r||s.layoutDependency!==i||i===void 0||zi(t)&&n.isPresent!==t)&&n.willUpdate(),zi(t)&&t!==n.isPresent&&(n.isPresent=t,t?(n.promote(),this.updatePrevLead(n)):n.relegate())}}]},[uh,dh]=Aa(`LazyMotionContext`),[fh,ph,mh]=Aa(`AnimatePresenceContext`);function hh(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}function gh(){return{transform:{},transformOrigin:{},style:{},vars:{}}}function _h(){return{...gh(),attrs:{}}}function vh(e){let t=gh();kd(t,e);let n={...t.style};for(let e in t.vars)n[e]=t.vars[e];return Object.keys(n).length===0?null:n}function yh(e,t,n){let r=_h();Wd(r,e,Kd(t),void 0,n);let i={};for(let e in r.attrs){let t=Gd.has(e)?e:hh(e);i[t]=r.attrs[e]}return{attrs:i,style:{...r.style,...r.vars}}}function bh(e,t){let r=jp(null),i=Pp({}),a=Vp(),o=fh({}),s=uh({features:(0,n.ref)({}),strict:!1});if(process.env.NODE_ENV!==`production`&&t&&s.strict){let t="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Hp(!1,t):Up(!1,t)}let c=(0,n.useAttrs)();function l(){return ja(e,{layoutGroup:i,presenceContext:o,config:a.value})}function u(){return{...c,...l()}}let d=new em(u(),r);Mp(d),t&&d.initVisualElement(t),(0,n.watch)(s.features,e=>{e.features?.length&&Kp(e.features),e.renderer&&d.initVisualElement(e.renderer),d.updateFeatures()},{immediate:!0,flush:`pre`});function f(){let t=d.type===`svg`,n={...c};Object.keys(c).forEach(e=>{W(c[e])&&(n[e]=c[e].get())});let r=d.visualElement?.latestValues||d.latestValues,i={...e.style,...t?{}:r};for(let e in i)W(i[e])&&(i[e]=i[e].get());if(t){let{attrs:t,style:a}=yh({...r,...i},d.options.as,e.style);Object.assign(n,t),i=a}e.drag&&e.dragListener!==!1&&Object.assign(i,{userSelect:`none`,WebkitUserSelect:`none`,WebkitTouchCallout:`none`,touchAction:e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`});let a=vh(i);return a&&(n.style=a),n}let p=(0,n.getCurrentInstance)().proxy;return(0,n.onMounted)(()=>{let e=Ap(p.$el);d.mount(e)}),(0,n.onBeforeUnmount)(()=>d.beforeUnmount()),(0,n.onUnmounted)(()=>{Ap(p.$el)?.isConnected||d.unmount()}),(0,n.onBeforeUpdate)(()=>{d.beforeUpdate(),d.updateOptions(u())}),(0,n.onUpdated)(()=>{d.update()}),{getProps:l,getAttrs:f,layoutGroup:i,state:d}}var xh={ignoreStrict:{type:Boolean},forwardMotionProps:{type:Boolean,default:!1},asChild:{type:Boolean,default:!1},whileDrag:{type:[String,Array,Object]},whileHover:{type:[String,Array,Object]},whilePress:{type:[String,Array,Object]},whileInView:{type:[String,Array,Object]},whileFocus:{type:[String,Array,Object]},custom:{type:[String,Number,Object,Array]},initial:{type:[String,Array,Object,Boolean],default:void 0},animate:{type:[String,Array,Object],default:void 0},exit:{type:[String,Array,Object]},variants:{type:Object},inherit:{type:Boolean},style:{type:Object},transformTemplate:{type:Function},transition:{type:Object},onAnimationComplete:{type:Function},onUpdate:{type:Function},layout:{type:[Boolean,String],default:!1},layoutId:{type:String,default:void 0},layoutScroll:{type:Boolean,default:!1},layoutRoot:{type:Boolean,default:!1},"data-framer-portal-id":{type:String},crossfade:{type:Boolean,default:!0},layoutDependency:{type:null,default:void 0},onBeforeLayoutMeasure:{type:Function},onLayoutMeasure:{type:Function},onLayoutAnimationStart:{type:Function},onLayoutAnimationComplete:{type:Function},globalPressTarget:{type:Boolean},onPressStart:{type:Function},onPress:{type:Function},onPressCancel:{type:Function},onHoverStart:{type:Function},onHoverEnd:{type:Function},inViewOptions:{type:Object},onViewportEnter:{type:Function},onViewportLeave:{type:Function},drag:{type:[Boolean,String]},dragSnapToOrigin:{type:Boolean},dragDirectionLock:{type:Boolean},dragPropagation:{type:Boolean},dragConstraints:{type:[Boolean,Object]},dragElastic:{type:[Boolean,Number,Object],default:.5},dragMomentum:{type:Boolean,default:!0},dragTransition:{type:Object},dragListener:{type:Boolean,default:!0},dragControls:{type:Object},onDragStart:{type:Function},onDragEnd:{type:Function},onDrag:{type:Function},onDirectionLock:{type:Function},onDragTransitionEnd:{type:Function},onMeasureDragConstraints:{type:Function},onPanSessionStart:{type:Function},onPanStart:{type:Function},onPan:{type:Function},onPanEnd:{type:Function}},Sh=new Map,Ch=new Map;function wh(e){if(!Array.isArray(e))return[e];let t=[];for(let n of e)Array.isArray(n)?t.push(...n):t.push(n);return t}var Th=[`area`,`img`,`input`];function Eh(e,t,r){if(typeof e==`string`&&Th.includes(e))return(0,n.h)(e,t);if(e===`template`){if(!r.default)return null;let e=wh(r.default()),i=e.findIndex(e=>e.type!==n.Comment);if(i===-1)return e;let a=e[i];delete a.props?.ref;let o=a.props?(0,n.mergeProps)(t,a.props):t;t.class&&a.props?.class&&delete a.props.class;let s=(0,n.cloneVNode)(a,o);for(let e in o)e.startsWith(`on`)&&(s.props||={},s.props[e]=o[e]);return e.length===1?s:(e[i]=s,e)}return null}function Dh(e,t={}){let r=typeof e==`string`,i=r?e:e.name||``,a=t.renderer?Sh:Ch;if(r&&a?.has(e))return a.get(e);let o=(0,n.defineComponent)({inheritAttrs:!1,props:{...xh,as:{type:[String,Object],default:e||`div`}},name:i?`motion.${i}`:`Motion`,setup(e,{slots:r}){let{getProps:i,getAttrs:a,state:o}=bh(e,t.renderer);function s(){let t=o.element;if((typeof e.as!=`object`||e.asChild)&&t){let{style:e}=a();if(e)for(let[n,r]of Object.entries(e))t.style[n]=r}}return()=>{let t=i(),o=a(),c=e.asChild?`template`:e.as,l={...e.forwardMotionProps?t:{},...o,onVnodeUpdated:s},u=Eh(c,l,r);return u===null?(0,n.h)(c,{...l},r):u}}});return r&&a?.set(e,o),o}function Oh(e){let t=e?.renderer;return Kp(e?.features||[]),new Proxy({},{get(e,n){return n===`create`?(e,n)=>Dh(e,{...n,renderer:t}):Dh(n,{renderer:t})}})}var kh=Oh(lh);kh.create(`div`);var Ah=0;function jh(e){let t=new WeakMap,n=Vp();function r(r){if(e.mode!==`popLayout`)return;let i=r.offsetParent,a=i instanceof HTMLElement&&i.offsetWidth||0,o={height:r.offsetHeight||0,width:r.offsetWidth||0,top:r.offsetTop,left:r.offsetLeft,right:0};o.right=a-o.width-o.left;let s=e.anchorX===`left`?`left: ${o.left}px`:`right: ${o.right}px`,c=`pop-${Ah++}`;r.dataset.motionPopId=c;let l=document.createElement(`style`);n.value.nonce&&(l.nonce=n.value.nonce),t.set(r,l),document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`
|
|
2
2
|
[data-motion-pop-id="${c}"] {
|
|
3
3
|
position: absolute !important;
|
|
4
4
|
width: ${o.width}px !important;
|
|
@@ -6,6 +6,61 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.
|
|
|
6
6
|
top: ${o.top}px !important;
|
|
7
7
|
${s} !important;
|
|
8
8
|
}
|
|
9
|
-
`)}function i(e){let n=t.get(e);n&&(t.delete(e),B.render(()=>{document.head.removeChild(n)}))}return{addPopStyle:r,removePopStyle:i}}var wh=0;function Th(e){let t=String(wh++),r=new Map,{addPopStyle:i,removePopStyle:a}=Ch(e);function o(e){let n=[],r=Gp.get(e);r&&e.getAttribute(Ip.motionAttribute)===t&&n.push(r);let i=Array.from(e.querySelectorAll(`[${Ip.motionAttribute}="${t}"]`));for(let e of i){let t=Gp.get(e);t&&n.push(t)}return n}function s(e,t){let n=r.get(e);n&&(n.remaining.delete(t),n.remaining.size===0&&l(n))}let c={initial:e.initial,custom:e.custom,presenceId:t,onMotionExitComplete:s};(0,n.watch)(()=>e.custom,e=>{c.custom=e},{flush:`pre`}),ah(c),(0,n.onMounted)(()=>{c.initial=void 0});function l(t){a(t.el),t.states.forEach(e=>{e.getSnapshot(e.options,!1)}),t.done(),r.delete(t.el),t.el?.isConnected?t.states[0]?.didUpdate():t.states.forEach(e=>{e.unmount()}),e.onExitComplete?.()}function u(e,t){o(e).forEach(e=>{e.setActive(`exit`,!1),e.getSnapshot(e.options,!0)}),t()}function d(t,n){let a=t,s=o(a);if(s.length===0){n(),e.onExitComplete?.();return}let c={remaining:new Set(s),states:s,done:n,el:a};r.set(a,c),i(a),s.forEach(e=>{e.presenceContainer=a,e.setActive(`exit`,!0),e.getSnapshot(e.options,!1)}),s[0]?.didUpdate()}return(0,n.onUnmounted)(()=>{r.forEach(e=>{e.states.forEach(e=>{e.unmount()})}),r.clear()}),{enter:u,exit:d}}var Eh=(0,n.defineComponent)({name:`AnimatePresence`,inheritAttrs:!0,__name:`AnimatePresence`,props:{mode:{default:`sync`},initial:{type:Boolean,default:!0},as:{},custom:{},onExitComplete:{},anchorX:{default:`left`}},setup(e){let t=e,{enter:r,exit:i}=Th(t),a=(0,n.computed)(()=>t.mode===`wait`?{mode:t.mode===`wait`?`out-in`:void 0}:{tag:t.as});return(e,t)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(e.mode===`wait`?n.Transition:n.TransitionGroup),(0,n.mergeProps)(a.value,{appear:``,css:!1,onLeave:(0,n.unref)(i),onEnter:(0,n.unref)(r)}),{default:(0,n.withCtx)(()=>[(0,n.renderSlot)(e.$slots,`default`)]),_:3},16,[`onLeave`,`onEnter`]))}});const Dh=()=>(0,n.createVNode)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,xmlnsXlink:`http://www.w3.org/1999/xlink`,viewBox:`0 0 1024 1024`},[(0,n.createVNode)(`path`,{d:`M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92C290 92 102.3 279.5 102 511.5C101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1c1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 0 0-10.1 4.8c-1.8 5-3.8 10-5.9 14.9c-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 0 1 655.9 829c-42.3 17.9-87.4 27-133.8 27c-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 0 1 279 755.2a342.16 342.16 0 0 1-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4c31.6-31.6 68.4-56.4 109.3-73.8c42.3-17.9 87.4-27 133.8-27c46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 0 1 109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 0 0 3 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z`,fill:`currentColor`},null)]),Oh=()=>(0,n.createVNode)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,xmlnsXlink:`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},[(0,n.createVNode)(`path`,{d:`M10.66 7.14c-2.24.48-4.04 2.3-4.52 4.54c-.37 1.75.02 3.38.89 4.66c.34.51 1.08.55 1.51.11c.35-.35.37-.88.1-1.28c-.5-.76-.75-1.71-.61-2.73c.23-1.74 1.67-3.17 3.41-3.4A4.003 4.003 0 0 1 16 13c0 .8-.24 1.54-.64 2.16c-.27.41-.25.95.1 1.29c.43.43 1.17.4 1.51-.11C17.62 15.4 18 14.25 18 13c0-3.75-3.45-6.7-7.34-5.86zm-.41-3.99c-4.05.69-7.19 3.69-8.03 7.72c-.66 3.17.2 6.16 1.97 8.38c.37.46 1.07.49 1.49.07c.36-.36.39-.93.07-1.32a8.004 8.004 0 0 1-1.66-6.28c.55-3.47 3.42-6.24 6.92-6.65c2.76-.33 5.27.74 6.93 2.59c.2.21.47.34.76.34c.85 0 1.34-1.01.77-1.65c-2.19-2.45-5.56-3.82-9.22-3.2zM12 11c-1.1 0-2 .9-2 2c0 .55.23 1.05.59 1.41c.36.36.86.59 1.41.59s1.05-.23 1.41-.59c.36-.36.59-.86.59-1.41c0-1.1-.9-2-2-2zm9-1c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1s-1-.45-1-1v-4c0-.55.45-1 1-1zm0 8c.55 0 1 .45 1 1s-.45 1-1 1s-1-.45-1-1s.45-1 1-1z`,fill:`currentColor`},null)]),kh=()=>(0,n.createVNode)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,xmlnsXlink:`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},[(0,n.createVNode)(`path`,{d:`M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59L7.11 5.7A.996.996 0 1 0 5.7 7.11L10.59 12L5.7 16.89a.996.996 0 1 0 1.41 1.41L12 13.41l4.89 4.89a.996.996 0 1 0 1.41-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z`,fill:`currentColor`},null)]),Ah=()=>(0,n.createVNode)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,xmlnsXlink:`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},[(0,n.createVNode)(`path`,{d:`M9 16.2l-3.5-3.5a.984.984 0 0 0-1.4 0a.984.984 0 0 0 0 1.4l4.19 4.19c.39.39 1.02.39 1.41 0L20.3 7.7a.984.984 0 0 0 0-1.4a.984.984 0 0 0-1.4 0L9 16.2z`,fill:`currentColor`},null)]),jh=()=>(0,n.createVNode)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,xmlnsXlink:`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},[(0,n.createVNode)(`path`,{d:`M16.59 9H15V4c0-.55-.45-1-1-1h-4c-.55 0-1 .45-1 1v5H7.41c-.89 0-1.34 1.08-.71 1.71l4.59 4.59c.39.39 1.02.39 1.41 0l4.59-4.59c.63-.63.19-1.71-.7-1.71zM5 19c0 .55.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1H6c-.55 0-1 .45-1 1z`,fill:`currentColor`},null)]);var Mh={class:`relative size-full overflow-hidden`},Nh={key:2},Ph={key:3,class:`size-full`},Fh={key:4,class:`flex items-center justify-around gap-3`},Ih={class:`flex flex-col justify-center gap-2 text-white`},Lh={class:`text-xs text-wrap`},Rh=(0,n.defineComponent)({__name:`DcContent`,props:{retriable:{type:Boolean},hideError:{type:Boolean},hideEmpty:{type:Boolean},hideLoading:{type:Boolean},source:{},class:{},classError:{},classEmpty:{},classLoading:{},style:{type:[Boolean,null,String,Object,Array]},styleError:{type:[Boolean,null,String,Object,Array]},styleEmpty:{type:[Boolean,null,String,Object,Array]},styleLoading:{type:[Boolean,null,String,Object,Array]}},emits:[`retry`,`resetRetry`],setup(e,{expose:t}){let a=e,o=(0,n.computed)(()=>r.Stream.isStream(a.source)?{isLoading:a.source.isRequesting.value,isError:a.source.error.value,errorCause:a.source.error.value?.message,isEmpty:a.source.isEmpty.value,data:a.source.data.value,isNoResult:a.source.isNoData.value}:r.PromiseContent.isPromiseContent(a.source)?{isLoading:a.source.isLoading.value,isError:a.source.isError.value,errorCause:a.source.errorCause.value?.message,isEmpty:a.source.isEmpty.value,data:a.source.data.value,isNoResult:a.source.isEmpty.value}:{isLoading:!1,isError:!1,errorCause:void 0,isEmpty:Mi(a.source),data:a.source,isNoResult:Mi(a.source)}),s={isLoadingNoData:{opacity:1,translateY:0,width:`2.5rem`,height:`2.5rem`,paddingBlock:`2px`,paddingInline:`2px`,left:`50%`,top:`8px`,translateX:`-50%`,backgroundColor:`var(--van-background-2)`,borderRadius:`100%`},isErrorNoData:{opacity:1,translateY:`-50%`,width:`70%`,minHeight:a.retriable?`22rem`:`20rem`,paddingBlock:`2px`,paddingInline:`2px`,left:`50%`,top:`50%`,translateX:`-50%`,backgroundColor:`var(--van-background-2)`,borderRadius:`4px`},isLoadingData:{opacity:.7,translateY:`0%`,width:`4rem`,height:`1.3rem`,paddingBlock:`2px`,paddingInline:`8px`,left:`4px`,top:`calc(100% - 8px - 1rem)`,translateX:`0%`,backgroundColor:`var(--p-color)`,borderRadius:`1.3rem`},isErrorData:{opacity:.7,translateY:`0%`,width:`fit-content`,height:`4rem`,paddingBlock:`2px`,paddingInline:`8px`,left:`4px`,top:`calc(100% - 8px - 4rem)`,translateX:`0%`,backgroundColor:`var(--p-color)`,borderRadius:`4px`},isEmpty:{opacity:1,translateY:`-50%`,width:`90%`,height:`10rem`,paddingBlock:`2px`,paddingInline:`2px`,left:`50%`,top:`50%`,translateX:`-50%`,backgroundColor:`var(--van-background-2)`,borderRadius:`4px`},done:{width:`4rem`,height:`1.3rem`,opacity:0,translateY:`100%`,paddingBlock:`0px`,paddingInline:`0px`,left:`4px`,top:`calc(100% - 8px - 1rem)`,translateX:`0%`,backgroundColor:`var(--p-color)`,borderRadius:`4px`}},c=(0,n.computed)(()=>!a.hideLoading&&o.value.isLoading?o.value.isEmpty?`isLoadingNoData`:`isLoadingData`:!a.hideError&&o.value.isError?o.value.isEmpty?`isErrorNoData`:`isErrorData`:!a.hideEmpty&&o.value.isNoResult?`isEmpty`:`done`),l=(0,n.useTemplateRef)(`cont`);return t({cont:l}),(t,r)=>{let u=Cn,d=i.NEmpty,f=i.NButton,p=i.NIcon,m=i.NResult,h=Eh;return(0,n.openBlock)(),(0,n.createElementBlock)(`div`,Mh,[(0,n.createElementVNode)(`div`,{class:(0,n.normalizeClass)([`relative size-full`,[a.class]]),ref_key:`cont`,ref:l},[o.value.isEmpty?(0,n.createCommentVNode)(``,!0):(0,n.renderSlot)(t.$slots,`default`,{key:0,data:o.value.data})],2),(0,n.createVNode)(h,null,{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(xh).div,{initial:{opacity:0,translateY:`-100%`,left:`50%`,translateX:`-50%`},variants:s,animate:c.value,class:`absolute flex scale-100 items-center justify-center whitespace-nowrap shadow`},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(n.Transition,{name:`van-fade`},{default:(0,n.withCtx)(()=>[c.value===`isLoadingNoData`?((0,n.openBlock)(),(0,n.createBlock)(u,{key:0,size:`25px`,color:`var(--p-color)`})):c.value===`isLoadingData`?((0,n.openBlock)(),(0,n.createBlock)(Sa,{key:1,size:`10px`,color:`white`},{default:(0,n.withCtx)(()=>[...r[2]||=[(0,n.createTextVNode)(`加载中`,-1)]]),_:1})):c.value===`isEmpty`?((0,n.openBlock)(),(0,n.createElementBlock)(`div`,Nh,[(0,n.createVNode)(d,{description:`无结果`,class:(0,n.normalizeClass)([`w-full justify-center!`,[e.classEmpty]]),style:(0,n.normalizeStyle)([e.style,e.styleEmpty])},null,8,[`class`,`style`])])):c.value===`isErrorNoData`?((0,n.openBlock)(),(0,n.createElementBlock)(`div`,Ph,[(0,n.createVNode)(m,{class:(0,n.normalizeClass)([`flex size-full! flex-col items-center! justify-center! text-wrap *:w-full`,[e.classError]]),status:`error`,title:`网络错误`,style:(0,n.normalizeStyle)([e.style,e.styleError]),description:o.value.errorCause??`未知原因`},{footer:(0,n.withCtx)(()=>[e.retriable?((0,n.openBlock)(),(0,n.createBlock)(f,{key:0,onClick:r[0]||=e=>t.$emit(`resetRetry`),type:`primary`},{default:(0,n.withCtx)(()=>[...r[3]||=[(0,n.createTextVNode)(`重试`,-1)]]),_:1})):(0,n.createCommentVNode)(``,!0)]),icon:(0,n.withCtx)(()=>[(0,n.createVNode)(p,{size:`10rem`,color:`var(--nui-error-color)`},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(Oh))]),_:1})]),_:1},8,[`class`,`style`,`description`])])):c.value===`isErrorData`?((0,n.openBlock)(),(0,n.createElementBlock)(`div`,Fh,[(0,n.createVNode)(p,{size:`3rem`,color:`white`},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(Oh))]),_:1}),(0,n.createElementVNode)(`div`,Ih,[r[4]||=(0,n.createElementVNode)(`div`,{class:`text-sm`},`网络错误`,-1),(0,n.createElementVNode)(`div`,Lh,(0,n.toDisplayString)(o.value.errorCause??`未知原因`),1)]),(0,n.createVNode)(f,{circle:``,type:`error`,size:`large`,onClick:r[1]||=e=>t.$emit(`retry`)},{icon:(0,n.withCtx)(()=>[(0,n.createVNode)(p,{color:`white`},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(Dh))]),_:1})]),_:1})])):(0,n.createCommentVNode)(``,!0)]),_:1})]),_:1},8,[`animate`])]),_:1})])}}}),zh=(0,n.defineComponent)({__name:`DcFloatPopup`,props:{anchors:{default:`high`},lockScroll:{type:Boolean,default:!1},class:{},style:{type:[Boolean,null,String,Object,Array]},overlay:{type:Boolean}},setup(e,{expose:t}){let r=(0,s.useRouter)(),i=e,a=(0,n.shallowRef)(!1),{height:o}=va(),c=(0,n.computed)(()=>be(i.anchors)?i.anchors:i.anchors===`high`?[0,Math.round(.4*o.value),Math.round(.7*o.value),o.value]:[0,Math.round(.3*o.value),Math.round(.6*o.value),Math.round(.9*o.value)]),l=(0,n.shallowRef)(0),[u,d]=ba(()=>l.value>0),f=ki;return(0,n.watch)(a,()=>{a.value?f=r.beforeEach(()=>d.value?a.value=!1:void 0):f()}),(0,s.onBeforeRouteLeave)(f),t({show(e=2){l.value=c.value[e],a.value=!0},close(){a.value=!1},isShowing:(0,n.shallowReadonly)(a),height:(0,n.shallowReadonly)(l)}),(t,r)=>{let i=Fn,o=Hr;return(0,n.openBlock)(),(0,n.createBlock)(n.Teleport,{to:`#popups`},[e.overlay?((0,n.openBlock)(),(0,n.createBlock)(i,{key:0,zIndex:(0,n.unref)(u),show:a.value,onClick:r[0]||=e=>a.value=!1},null,8,[`zIndex`,`show`])):(0,n.createCommentVNode)(``,!0),(0,n.createVNode)(n.Transition,{onAfterLeave:r[3]||=e=>l.value=0,name:`van-slide-up`},{default:(0,n.withCtx)(()=>[(0,n.withDirectives)((0,n.createVNode)(o,{onHeightChange:r[1]||=({height:e})=>e<=0&&(a.value=!1),anchors:c.value,height:l.value,"onUpdate:height":r[2]||=e=>l.value=e,"content-draggable":!1,"lock-scroll":e.lockScroll,style:(0,n.normalizeStyle)([e.style,{zIndex:(0,n.unref)(u)}]),class:(0,n.normalizeClass)([e.class,`overflow-hidden border-0 border-t border-solid border-(--van-border-color)`])},{default:(0,n.withCtx)(()=>[(0,n.createElementVNode)(`div`,{class:`w-full bg-(--van-background)`,style:(0,n.normalizeStyle)({height:`calc(${l.value}px - var(--van-floating-panel-header-height))`})},[l.value==0?(0,n.createCommentVNode)(``,!0):(0,n.renderSlot)(t.$slots,`default`,{key:0,height:l.value})],4)]),_:3},8,[`anchors`,`height`,`lock-scroll`,`style`,`class`]),[[n.vShow,a.value]])]),_:3})])}}}),Bh=(0,n.defineComponent)({__name:`DcVar`,props:{value:{}},setup(e){let t=e;return(e,r)=>(0,n.renderSlot)(e.$slots,`default`,{value:t.value})}}),Vh=(0,n.defineComponent)({__name:`DcList`,props:{source:{},itemHeight:{},listProp:{},goBottom:{type:Boolean},itemResizable:{type:Boolean},dataProcessor:{},unReloadable:{type:Boolean},style:{type:[Boolean,null,String,Object,Array]},class:{}},emits:[`next`,`reset`,`retry`],setup(e,{expose:t,emit:a}){let o=e,s=a,c=e=>o.dataProcessor?.(e)??e,l=(0,n.computed)(()=>({...r.Stream.isStream(o.source)?{data:c(o.source.data.value),isDone:o.source.isDone.value,isRequesting:o.source.isRequesting.value,isError:!!o.source.error.value,length:c(o.source.data.value).length,isEmpty:o.source.isEmpty.value,source:o.source}:be(o.source)?{data:c(o.source),isDone:!0,isRequesting:!1,isError:!1,length:c(o.source).length,isEmpty:Mi(o.source),source:o.source}:{data:c(o.source.data.data.value??[]),isDone:o.source.isEnd,isRequesting:o.source.data.isLoading.value,isError:o.source.data.isError.value,length:c(o.source.data.data.value??[]).length,isEmpty:o.source.data.isEmpty.value,source:o.source.data},next:()=>r.Stream.isStream(o.source)?o.source.next():(0,r.callbackToPromise)(e=>s(`next`,e)),retry:()=>r.Stream.isStream(o.source)?o.source.retry():(0,r.callbackToPromise)(e=>s(`retry`,e)),reset:()=>r.Stream.isStream(o.source)?o.source.reset():s(`reset`)}));(0,n.watch)(()=>l.value.data,()=>{o.goBottom&&u.value?.scrollTo({position:`bottom`,behavior:`instant`})},{flush:`post`,deep:!0,immediate:!0}),(0,n.watch)(l,e=>{e.isRequesting||Oi(window.innerHeight/o.itemHeight)+2>e.length&&!e.isDone&&(e.isError?e.retry():e.next())},{immediate:!0});let u=(0,n.useTemplateRef)(`vList`),{y:d}=_a(()=>u.value?.getScrollContainer()),f=Ei(async()=>{let e=u.value?.virtualListInstRef?.itemsElRef?.querySelector(` .v-vl-visible-items`);if(!e)return;let{itemHeight:t}=o,{data:n,isDone:r,isError:i,isRequesting:a,retry:s,next:c,length:f}=l.value;n&&!a&&!r&&t*(f-2)<d.value+(e?.children?.length??window.innerHeight/t)*t&&(i?s():c())},200),p=(0,n.shallowRef)(!1),m=(0,n.shallowRef)(!1),h=async()=>{l.value.reset(),console.log(`reset done`),await l.value.next(),m.value=!1};return t({scrollTop:d,listInstance:u}),(t,a)=>{let s=Yr;return(0,n.openBlock)(),(0,n.createBlock)(s,{modelValue:m.value,"onUpdate:modelValue":a[1]||=e=>m.value=e,class:(0,n.normalizeClass)([`relative`,o.class]),onRefresh:h,disabled:e.unReloadable||((0,n.unref)(r.Stream).isStream(e.source)?!1:(0,n.unref)(be)(e.source)?!0:e.source.reloadable??!0)||l.value.isError||l.value.isRequesting||!!(0,n.unref)(d)&&!p.value,onChange:a[2]||=({distance:e})=>p.value=!!e,style:(0,n.normalizeStyle)(e.style)},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(Rh,{retriable:``,source:(0,n.unref)(r.Stream).isStream(e.source)||(0,n.unref)(be)(e.source)?e.source:e.source.data,"class-loading":`mt-2 !h-[24px]`,"class-empty":`!h-full`,"class-error":`!h-full`,onResetRetry:h,"hide-loading":p.value&&l.value.isRequesting,onRetry:a[0]||=e=>l.value.retry()},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(Bh,{value:l.value.data},{default:(0,n.withCtx)(({value:r})=>[(0,n.createVNode)((0,n.unref)(i.NVirtualList),(0,n.mergeProps)(e.listProp??{},{"item-resizable":e.itemResizable,"item-size":e.itemHeight,onScroll:(0,n.unref)(f),class:[`h-full overflow-x-hidden`,[p.value?`overflow-y-hidden`:`overflow-y-auto`]],items:r,ref_key:`vList`,ref:u}),{default:(0,n.withCtx)(({item:i})=>[(0,n.renderSlot)(t.$slots,`default`,{height:e.itemHeight,data:{item:i,index:r.indexOf(i)}})]),_:2},1040,[`item-resizable`,`item-size`,`onScroll`,`items`,`class`])]),_:3},8,[`value`])]),_:3},8,[`source`,`hide-loading`])]),_:3},8,[`modelValue`,`class`,`disabled`,`style`])}}}),Hh=(0,n.defineComponent)({__name:`DcPopup`,props:(0,n.mergeModels)({show:{type:Boolean},zIndex:{},overlay:{type:Boolean,default:!0},duration:{},teleport:{},lockScroll:{type:Boolean},lazyRender:{type:Boolean},beforeClose:{},overlayProps:{},overlayStyle:{},overlayClass:{},transitionAppear:{type:Boolean},closeOnClickOverlay:{type:Boolean,default:!0},round:{type:Boolean},position:{default:`center`},closeIcon:{},closeable:{type:Boolean},transition:{},iconPrefix:{},closeOnPopstate:{type:Boolean},closeIconPosition:{},destroyOnClose:{type:Boolean},safeAreaInsetTop:{type:Boolean},safeAreaInsetBottom:{type:Boolean},noBorder:{type:Boolean,default:!1},useTrulyShow:{type:Boolean},style:{type:[Boolean,null,String,Object,Array]}},{show:{type:Boolean,required:!0},showModifiers:{}}),emits:(0,n.mergeModels)([`closed`],[`update:show`]),setup(e,{expose:t}){let r=(0,s.useRouter)(),i=e,a=(0,n.useModel)(e,`show`),o=(0,n.shallowRef)(a.value),[c,l]=ba((0,n.computed)(()=>i.useTrulyShow?o.value:a.value)),u=ki;return(0,n.watch)(a,e=>{e?u=r.beforeEach(()=>{if(console.log(`popup:
|
|
10
|
-
`,`isLast:`,l.value,`show:`,a.value),l.value)return a.value?a.value=!1:void 0}):u()},{immediate:!0}),t({zIndex:c,trulyShow:o}),(t,r)=>{let s=zn;return(0,n.openBlock)(),(0,n.createBlock)(s,(0,n.mergeProps)(i,{show:a.value,"onUpdate:show":r[0]||=e=>a.value=e,"z-index":(0,n.unref)(c),teleport:`#popups`,onOpen:r[1]||=e=>o.value=!0,onClosed:r[2]||=()=>{o.value=!1,t.$emit(`closed`)},class:[`max-h-screen overflow-hidden overflow-y-auto!`,!e.noBorder&&`border-0 border-t border-solid border-(--van-border-color)`]}),{default:(0,n.withCtx)(()=>[o.value?(0,n.renderSlot)(t.$slots,`default`,{key:0}):(0,n.createCommentVNode)(``,!0)]),_:3},16,[`show`,`z-index`,`class`])}}}),Uh=(0,n.defineComponent)({__name:`DcRouterTab`,props:{items:{},routerBase:{}},setup(e){let t=e,r=(0,s.useRoute)(),i=(0,n.ref)(decodeURI(r.path.replaceAll(t.routerBase+`/`,``).split(`/`)[0])),a=(0,s.useRouter)(),o=async e=>{let n=`?`,r=t.items.find(t=>t.name==e);for(let e in r.queries??{})if(Object.prototype.hasOwnProperty.call(r.queries??{},e)){let t=(r.queries??{})[e];n+=`${e}=${t}&`}return n=n.replace(/&$/,``),await a.force.replace(`${t.routerBase}/${e.split(`/`).map(encodeURI).join(`/`)}${n}`),!0};(0,n.watch)(()=>t.items,e=>{e.find(e=>e.name.startsWith(i.value))||console.log(i.value,e)});let c=a.afterEach(e=>{if(e.path.startsWith(t.routerBase)){let n=e.path.replaceAll(t.routerBase+`/`,``).split(`/`)[0];n!==i.value&&(i.value=n)}});return(0,n.onUnmounted)(()=>{c()}),(t,r)=>{let a=Lr,s=Rr;return(0,n.openBlock)(),(0,n.createBlock)(s,{ref:`tab`,shrink:``,active:i.value,"onUpdate:active":r[0]||=e=>i.value=e,beforeChange:o,class:`w-full`},{"nav-left":(0,n.withCtx)(()=>[(0,n.renderSlot)(t.$slots,`left`)]),"nav-right":(0,n.withCtx)(()=>[(0,n.renderSlot)(t.$slots,`right`)]),"nav-bottom":(0,n.withCtx)(()=>[(0,n.renderSlot)(t.$slots,`bottom`)]),default:(0,n.withCtx)(()=>[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.items,e=>((0,n.openBlock)(),(0,n.createBlock)(a,{title:e.title,onClick:t=>i.value=e.name,name:e.name},null,8,[`title`,`onClick`,`name`]))),256))]),_:3},8,[`active`])}}}),Wh=(0,n.defineComponent)({__name:`DcText`,props:{text:{default:``},ellipsis:{}},setup(e){let t=e,r=(0,n.computed)(()=>t.text.replace(/(http(s?):\/\/)?([\w-]+\.)+(\.?[a-z]+)+(:\d+)?(\/[\w-.\/?%&=]*)?/gi,e=>`\u1145[[${e}]]\u1145`).split(`ᅅ`).filter(Boolean).map(e=>/\[\[[^\[\]]+\]\]/g.test(e)?{value:e.substring(2,e.length-2),mode:`link`}:{value:e,mode:`text`}));return(t,a)=>{let o=i.NButton;return(0,n.openBlock)(),(0,n.createElementBlock)(`div`,{class:(0,n.normalizeClass)([[(0,n.unref)(Ti)(e.ellipsis)&&`overflow-hidden overflow-ellipsis`],`whitespace-pre-wrap text-(--van-text-color)`]),style:(0,n.normalizeStyle)([(0,n.unref)(Ti)(e.ellipsis)&&`line-break: anywhere;display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: ${e.ellipsis};`])},[(0,n.renderSlot)(t.$slots,`default`),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(r.value,e=>((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,null,[e.mode===`link`?((0,n.openBlock)(),(0,n.createBlock)(o,{key:0,tag:`a`,class:`underline`,onClick:a[0]||=(0,n.withModifiers)(()=>{},[`stop`]),text:``,type:`primary`,target:`_blank`,href:/http(s?):\/\/.+/.test(e.value)?e.value:`https://${e.value}`},{default:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.value),1)]),_:2},1032,[`href`])):e.mode===`text`?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:1},[(0,n.createTextVNode)((0,n.toDisplayString)(e.value),1)],64)):(0,n.createCommentVNode)(``,!0)],64))),256))],6)}}}),Gh={class:`mt-1 text-xs text-(--van-text-color-2)`},Kh=(0,n.defineComponent)({__name:`DcToggleIcon`,props:(0,n.mergeModels)({icon:{},size:{},disChanged:{type:Boolean},rowMode:{type:Boolean},padding:{type:Boolean}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:(0,n.mergeModels)([`change`,`click`,`longClick`],[`update:modelValue`]),setup(e,{emit:t}){let r=e,a=t,o=(0,n.useModel)(e,`modelValue`);(0,n.watch)(o,e=>a(`change`,e));let s=()=>{a(`click`,!o.value),r.disChanged||(o.value=!o.value)},c=(0,n.useTemplateRef)(`htmlRefHook`);return da(c,()=>{a(`longClick`)},{modifiers:{prevent:!0}}),(t,r)=>{let a=i.NIcon;return(0,n.openBlock)(),(0,n.createElementBlock)(`div`,{class:(0,n.normalizeClass)([`flex items-center justify-center **:transition-colors!`,[e.rowMode||`flex-col`,e.padding&&`px-4`]]),onClick:(0,n.withModifiers)(s,[`stop`]),ref_key:`htmlRefHook`,ref:c},[(0,n.createVNode)(a,{size:e.size,color:o.value?`var(--p-color)`:`var(--van-gray-7)`},{default:(0,n.withCtx)(()=>[((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(e.icon)))]),_:1},8,[`size`,`color`]),(0,n.createElementVNode)(`span`,Gh,[(0,n.renderSlot)(t.$slots,`default`)])],2)}}}),qh=Object.defineProperty,Jh=Object.defineProperties,Yh=Object.getOwnPropertyDescriptors,Xh=Object.getOwnPropertySymbols,Zh=Object.prototype.hasOwnProperty,Qh=Object.prototype.propertyIsEnumerable,$h=(e,t,n)=>t in e?qh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,eg=(e,t)=>{for(var n in t||={})Zh.call(t,n)&&$h(e,n,t[n]);if(Xh)for(var n of Xh(t))Qh.call(t,n)&&$h(e,n,t[n]);return e},tg=(e,t)=>Jh(e,Yh(t)),ng=(e,t)=>{var n={};for(var r in e)Zh.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Xh)for(var r of Xh(e))t.indexOf(r)<0&&Qh.call(e,r)&&(n[r]=e[r]);return n};function rg(e,t){return(0,n.getCurrentScope)()?((0,n.onScopeDispose)(e,t),!0):!1}var ig=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var ag=e=>e!=null,og=Object.prototype.toString,sg=e=>og.call(e)===`[object Object]`;function cg(e){return Array.isArray(e)?e:[e]}function lg(e){return(0,n.getCurrentInstance)()}function ug(e,t=!0,r){lg()?(0,n.onMounted)(e,r):t?e():(0,n.nextTick)(e)}function dg(e,t,r){return(0,n.watch)(e,t,tg(eg({},r),{immediate:!0}))}var fg=ig?window:void 0;function pg(e){let t=(0,n.toValue)(e);return t?.$el??t}function mg(...e){let t=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),r=(0,n.computed)(()=>{let t=cg((0,n.toValue)(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0});return dg(()=>[r.value?.map(e=>pg(e))??[fg].filter(e=>e!=null),cg((0,n.toValue)(r.value?e[1]:e[0])),cg((0,n.unref)(r.value?e[2]:e[1])),(0,n.toValue)(r.value?e[3]:e[2])],([e,n,r,i],a,o)=>{if(!(e!=null&&e.length)||!(n!=null&&n.length)||!(r!=null&&r.length))return;let s=sg(i)?eg({},i):i,c=e.flatMap(e=>n.flatMap(n=>r.map(r=>t(e,n,r,s))));o(()=>{c.forEach(e=>e())})},{flush:`post`})}function hg(){let e=(0,n.shallowRef)(!1),t=(0,n.getCurrentInstance)();return t&&(0,n.onMounted)(()=>{e.value=!0},t),e}function gg(e){let t=hg();return(0,n.computed)(()=>(t.value,!!e()))}function _g(e,t,r={}){let i=r,{window:a=fg}=i,o=ng(i,[`window`]),s,c=gg(()=>a&&`MutationObserver`in a),l=()=>{s&&=(s.disconnect(),void 0)},u=(0,n.watch)((0,n.computed)(()=>{let t=cg((0,n.toValue)(e)).map(pg).filter(ag);return new Set(t)}),e=>{l(),c.value&&e.size&&(s=new MutationObserver(t),e.forEach(e=>s.observe(e,o)))},{immediate:!0,flush:`post`}),d=()=>s?.takeRecords(),f=()=>{u(),l()};return rg(f),{isSupported:c,stop:f,takeRecords:d}}function vg(e,t,r={}){let i=r,{window:a=fg}=i,o=ng(i,[`window`]),s,c=gg(()=>a&&`ResizeObserver`in a),l=()=>{s&&=(s.disconnect(),void 0)},u=(0,n.watch)((0,n.computed)(()=>{let t=(0,n.toValue)(e);return Array.isArray(t)?t.map(e=>pg(e)):[pg(t)]}),e=>{if(l(),c.value&&a){s=new ResizeObserver(t);for(let t of e)t&&s.observe(t,o)}},{immediate:!0,flush:`post`}),d=()=>{l(),u()};return rg(d),{isSupported:c,stop:d}}function yg(e,t={}){let{reset:r=!0,windowResize:i=!0,windowScroll:a=!0,immediate:o=!0,updateTiming:s=`sync`}=t,c=(0,n.shallowRef)(0),l=(0,n.shallowRef)(0),u=(0,n.shallowRef)(0),d=(0,n.shallowRef)(0),f=(0,n.shallowRef)(0),p=(0,n.shallowRef)(0),m=(0,n.shallowRef)(0),h=(0,n.shallowRef)(0);function g(){let t=pg(e);if(!t){r&&(c.value=0,l.value=0,u.value=0,d.value=0,f.value=0,p.value=0,m.value=0,h.value=0);return}let n=t.getBoundingClientRect();c.value=n.height,l.value=n.bottom,u.value=n.left,d.value=n.right,f.value=n.top,p.value=n.width,m.value=n.x,h.value=n.y}function _(){s===`sync`?g():s===`next-frame`&&requestAnimationFrame(()=>g())}return vg(e,_),(0,n.watch)(()=>pg(e),e=>!e&&_()),_g(e,_,{attributeFilter:[`style`,`class`]}),a&&mg(`scroll`,_,{capture:!0,passive:!0}),i&&mg(`resize`,_,{passive:!0}),ug(()=>{o&&_()}),{height:c,bottom:l,left:u,right:d,top:f,width:p,x:m,y:h,update:_}}function bg(e,t={width:0,height:0},r={}){let{window:i=fg,box:a=`content-box`}=r,o=(0,n.computed)(()=>{var t;return(t=pg(e))==null||(t=t.namespaceURI)==null?void 0:t.includes(`svg`)}),s=(0,n.shallowRef)(t.width),c=(0,n.shallowRef)(t.height),{stop:l}=vg(e,([t])=>{let n=a===`border-box`?t.borderBoxSize:a===`content-box`?t.contentBoxSize:t.devicePixelContentBoxSize;if(i&&o.value){let t=pg(e);if(t){let e=t.getBoundingClientRect();s.value=e.width,c.value=e.height}}else if(n){let e=cg(n);s.value=e.reduce((e,{inlineSize:t})=>e+t,0),c.value=e.reduce((e,{blockSize:t})=>e+t,0)}else s.value=t.contentRect.width,c.value=t.contentRect.height},r);ug(()=>{let n=pg(e);n&&(s.value=`offsetWidth`in n?n.offsetWidth:t.width,c.value=`offsetHeight`in n?n.offsetHeight:t.height)});let u=(0,n.watch)(()=>pg(e),e=>{s.value=e?t.width:0,c.value=e?t.height:0});function d(){l(),u()}return{width:s,height:c,stop:d}}var xg=[`data-index`],Sg=(0,n.defineComponent)({name:`VirtualWaterfall`,__name:`virtual-waterfall`,props:{virtual:{type:Boolean,default:!0},rowKey:{default:`id`},enableCache:{type:Boolean,default:!0},gap:{default:15},padding:{default:15},preloadScreenCount:{default:()=>[0,0]},itemMinWidth:{default:220},maxColumnCount:{default:10},minColumnCount:{default:2},items:{default:()=>[]},calcItemHeight:{type:Function,default:(e,t)=>250}},setup(e,{expose:t}){let r=e,i=(0,n.ref)(),{width:a}=bg(i),{top:o}=yg(i);(0,n.onMounted)(()=>{a.value===0&&i.value&&(a.value=Number.parseInt(window.getComputedStyle(i.value).width))});let s=(0,n.computed)(()=>typeof r.padding==`number`?`${r.padding}px`:r.padding),c=(0,n.computed)(()=>{if(!a.value)return 0;let e=a.value;if(e>=r.itemMinWidth*2){let t=Math.floor(e/r.itemMinWidth);return r.maxColumnCount&&t>r.maxColumnCount?r.maxColumnCount:t}return r.minColumnCount}),l=(0,n.shallowRef)(Array.from({length:c.value},()=>0)),u=()=>l.value.indexOf(Math.min(...l.value)),d=(0,n.computed)(()=>Math.max(...l.value)),f=(0,n.computed)(()=>{if(!a.value||c.value<=0)return 0;let e=(c.value-1)*r.gap;return Math.ceil((a.value-e)/c.value)}),p=(0,n.shallowRef)([]);t({withItemSpaces:e=>{e((0,n.readonly)(p).value)}}),(0,n.watchEffect)(()=>{let e=r.items.length;if(!c.value||!e){p.value=[];return}let t=Array.from({length:e}),i=0,a=r.enableCache&&p.value.length&&e>p.value.length;a?i=p.value.length:l.value=Array.from({length:c.value},()=>0);for(let n=0;n<e;n++){if(a&&n<i){t[n]=p.value[n];continue}let e=u(),o=r.calcItemHeight(r.items[n],f.value),s=l.value[e]??0,c=(f.value+r.gap)*e,d={index:n,item:r.items[n],column:e,top:s,left:c,bottom:s+o,height:o};l.value[e]+=o+r.gap,t[n]=d}p.value=t,(0,n.triggerRef)(l)});let m=(0,n.computed)(()=>{let e=p.value.length;if(!e)return[];if(!r.virtual)return p.value;let t=i.value?.parentElement?.offsetTop??0,n=-o.value+t,[a,s]=r.preloadScreenCount,c=i.value?.parentElement?.clientHeight??0,l=n-a*c,u=n+(s+1)*c,d=[];for(let t=0;t<e;t++){let e=p.value[t],n=e.top,r=e.bottom;(n>=l&&n<=u||r>=l&&r<=u||n<l&&r>u)&&d.push(e)}return d});return(t,r)=>((0,n.openBlock)(),(0,n.createElementBlock)(`div`,{ref_key:`content`,ref:i,style:(0,n.normalizeStyle)({position:`relative`,willChange:`height`,height:`${d.value}px`,padding:s.value})},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(m.value,r=>((0,n.openBlock)(),(0,n.createElementBlock)(`div`,{key:r.item[e.rowKey]??r.index,style:(0,n.normalizeStyle)({position:`absolute`,contentVisibility:`auto`,width:`${f.value}px`,height:`${r.height}px`,transform:`translate(${r.left}px, ${r.top}px)`,containIntrinsicSize:`${f.value}px ${r.height}px`}),"data-index":r.index},[(0,n.renderSlot)(t.$slots,`default`,{item:r.item,index:r.index})],12,xg))),128))],4))}}),Cg=(0,n.defineComponent)({__name:`DcWaterfall`,props:{source:{},style:{type:[Boolean,null,String,Object,Array]},class:{},col:{default:2},padding:{default:4},gap:{default:4},minHeight:{default:0},dataProcessor:{},unReloadable:{type:Boolean}},emits:[`next`,`reset`,`retry`,`col`],setup(e,{expose:t,emit:i}){let a=e,s=i,c=e=>a.dataProcessor?.(e)??e,l=(0,n.computed)(()=>be(a.col)?a.col:[a.col,a.col]),u=(0,n.computed)(()=>({...r.Stream.isStream(a.source)?{data:c(a.source.data.value),isDone:a.source.isDone.value,isRequesting:a.source.isRequesting.value,isError:!!a.source.error.value,length:c(a.source.data.value).length,isEmpty:a.source.isEmpty.value,source:a.source}:{data:c(a.source.data.data.value??[]),isDone:a.source.isEnd,isRequesting:a.source.data.isLoading.value,isError:a.source.data.isError.value,length:c(a.source.data.data.value??[]).length,isEmpty:a.source.data.isEmpty.value,source:a.source.data},next:()=>r.Stream.isStream(a.source)?a.source.next():(0,r.callbackToPromise)(e=>s(`next`,e)),retry:()=>r.Stream.isStream(a.source)?a.source.retry():(0,r.callbackToPromise)(e=>s(`retry`,e)),reset:()=>r.Stream.isStream(a.source)?a.source.reset():s(`reset`)})),d=(0,n.shallowRef)(!1),f=(0,n.shallowRef)(!1),p=async()=>{u.value.reset(),console.log(`reset done`),await u.value.next(),f.value=!1},m=(0,n.useTemplateRef)(`content`),h=(0,n.computed)(()=>m.value?.cont),{y:g}=_a(h);$e(`scroll`,()=>{let{isDone:e,isError:t,isRequesting:n,retry:r,next:i}=u.value;if(n||e)return;let a=h.value;if(!a)return;let o=a.scrollHeight,s=a.scrollTop,c=a.clientHeight;o-s-c<=100&&(t?r():i())},{target:h}),(0,n.watch)(()=>a.source,()=>{let{isError:e,retry:t,next:n,isEmpty:r}=u.value;r&&(e?t():n())},{deep:1,immediate:!0});let _=(0,n.useTemplateRef)(`waterfallEl`),v=(0,o.useTemp)().$apply(`waterfall`,()=>({top:0})),y=v.top++,b=(0,o.useTemp)().$applyRaw(`waterfall:${y}`,()=>(0,n.shallowReactive)(new Map)),x=[],S=new MutationObserver(([e])=>{for(let e of x)e();if(!(e.target instanceof HTMLDivElement)||!u.value.data)return;let t=[...e.target.children];for(let e of t){let t=Number(e.dataset.index),n=u.value.data[t],r=()=>{let t=e.firstElementChild?.getBoundingClientRect();b.set(n,t?.height??a.minHeight)},i=ha(e.firstElementChild,r);r(),x.push(()=>i.stop())}});(0,n.watch)(_,e=>{if(!e)return S.disconnect();S.observe(e.$el,{childList:!0})}),(0,n.onUnmounted)(()=>{S.disconnect();for(let e of x)e()});let C=(0,n.shallowRef)(!0);return t({scrollTop:g,scrollParent:h,async reloadList(){C.value=!1,b.clear(),await(0,n.nextTick)(),C.value=!0}}),(t,i)=>{let o=Yr;return C.value?((0,n.openBlock)(),(0,n.createBlock)(o,{key:0,modelValue:f.value,"onUpdate:modelValue":i[1]||=e=>f.value=e,class:(0,n.normalizeClass)([`relative h-full`,a.class]),disabled:e.unReloadable||u.value.isRequesting||!!(0,n.unref)(g)&&!d.value,onRefresh:p,onChange:i[2]||=({distance:e})=>d.value=!!e,style:(0,n.normalizeStyle)(e.style)},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(Rh,{retriable:``,source:(0,n.unref)(r.Stream).isStream(e.source)?e.source:e.source.data,"class-loading":`mt-2 !h-[24px]`,"class-empty":`h-full!`,"class-error":`h-full!`,class:`h-full w-full overflow-auto`,onRetry:i[0]||=e=>u.value.retry(),onResetRetry:p,"hide-loading":d.value&&u.value.isRequesting,ref_key:`content`,ref:m},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(Sg),{items:u.value.data,gap:e.gap,padding:e.padding,"preload-screen-count":[0,1],ref_key:`waterfallEl`,ref:_,"calc-item-height":t=>(0,n.unref)(b).get(t)??e.minHeight,class:`waterfall`,"min-column-count":l.value[0],"max-column-count":l.value[1]},{default:(0,n.withCtx)(({item:r,index:i})=>[(0,n.renderSlot)(t.$slots,`default`,{item:r,index:i,height:(0,n.unref)(b).get(r),length:u.value.length,minHeight:e.minHeight})]),_:3},8,[`items`,`gap`,`padding`,`calc-item-height`,`min-column-count`,`max-column-count`])]),_:3},8,[`source`,`hide-loading`])]),_:3},8,[`modelValue`,`class`,`disabled`,`style`])):(0,n.createCommentVNode)(``,!0)}}}),wg=(0,n.defineComponent)({__name:`DcFormSwitch`,props:(0,n.mergeModels)({config:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=(0,n.useModel)(e,`modelValue`);return(r,a)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(i.NSwitch),{defaultValue:e.config.defaultValue,value:t.value,"onUpdate:value":a[0]||=e=>t.value=e},(0,n.createSlots)({_:2},[e.config.open?{name:`checked`,fn:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.config.open),1)]),key:`0`}:void 0,e.config.close?{name:`unchecked`,fn:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.config.close),1)]),key:`1`}:void 0]),1032,[`defaultValue`,`value`]))}}),Tg=(0,n.defineComponent)({__name:`DcFormString`,props:(0,n.mergeModels)({config:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=(0,n.useModel)(e,`modelValue`);return(r,a)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(i.NInput),{clearable:``,allowInput:t=>e.config.patten?e.config.patten.test(t)||(0,n.unref)(Mi)(t):!0,defaultValue:e.config.defaultValue,placeholder:e.config.placeholder,value:t.value,"onUpdate:value":a[0]||=e=>t.value=e},null,8,[`allowInput`,`defaultValue`,`placeholder`,`value`]))}}),Eg=(0,n.defineComponent)({__name:`DcFormNumber`,props:(0,n.mergeModels)({config:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=(0,n.useModel)(e,`modelValue`);return(r,a)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(i.NInputNumber),{precision:e.config.float?void 0:0,clearable:``,min:e.config.range?.[0],max:e.config.range?.[1],defaultValue:e.config.defaultValue,placeholder:e.config.placeholder,value:t.value,"onUpdate:value":a[0]||=e=>t.value=e},null,8,[`precision`,`min`,`max`,`defaultValue`,`placeholder`,`value`]))}}),Dg=(0,n.defineComponent)({__name:`DcFormRadio`,props:(0,n.mergeModels)({config:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=(0,n.useModel)(e,`modelValue`);return(r,a)=>e.config.comp===`radio`?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(i.NRadioGroup),{key:0,value:t.value,"onUpdate:value":a[0]||=e=>t.value=e,name:e.config.info,defaultValue:e.config.defaultValue},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(i.NSpace),null,{default:(0,n.withCtx)(()=>[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.config.selects,e=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(i.NRadio),{key:e.value,value:e.value},{default:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.label),1)]),_:2},1032,[`value`]))),128))]),_:1})]),_:1},8,[`value`,`name`,`defaultValue`])):((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(i.NSelect),{key:1,virtualScroll:``,options:e.config.selects,defaultValue:e.config.defaultValue,value:t.value,"onUpdate:value":a[1]||=e=>t.value=e,placeholder:e.config.placeholder,filterable:``},null,8,[`options`,`defaultValue`,`value`,`placeholder`]))}}),Og=(0,n.defineComponent)({__name:`DcFormCheckbox`,props:(0,n.mergeModels)({config:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=(0,n.useModel)(e,`modelValue`);return(r,a)=>e.config.comp===`checkbox`?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(i.NCheckboxGroup),{key:0,value:t.value,"onUpdate:value":a[0]||=e=>t.value=e,name:e.config.info,defaultValue:e.config.defaultValue},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(i.NSpace),null,{default:(0,n.withCtx)(()=>[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.config.selects,e=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(i.NCheckbox),{key:e.value,value:e.value},{default:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.label),1)]),_:2},1032,[`value`]))),128))]),_:1})]),_:1},8,[`value`,`name`,`defaultValue`])):((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(i.NSelect),{key:1,virtualScroll:``,multiple:``,options:e.config.selects,defaultValue:e.config.defaultValue,value:t.value,"onUpdate:value":a[1]||=e=>t.value=e,placeholder:e.config.placeholder,filterable:``},null,8,[`options`,`defaultValue`,`value`,`placeholder`]))}}),kg=(0,n.defineComponent)({__name:`DcFormDate`,props:(0,n.mergeModels)({config:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=(0,n.useModel)(e,`modelValue`);return(r,a)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(i.NDatePicker),{"input-readonly":``,format:e.config.format,type:e.config.time?`date`:`datetime`,"formatted-value":t.value,"onUpdate:formattedValue":a[0]||=e=>t.value=e},null,8,[`format`,`type`,`formatted-value`]))}}),Ag=(0,n.defineComponent)({__name:`DcFormDateRange`,props:(0,n.mergeModels)({config:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=(0,n.useModel)(e,`modelValue`);return(r,a)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(i.NDatePicker),{"input-readonly":``,format:e.config.format,type:e.config.time?`daterange`:`datetimerange`,"formatted-value":t.value,"onUpdate:formattedValue":a[0]||=e=>t.value=e},null,8,[`format`,`type`,`formatted-value`]))}}),jg={class:`w-full items-center`},Mg=(0,n.defineComponent)({__name:`DcFormPairs`,props:(0,n.mergeModels)({config:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,r=()=>(t.config.defaultValue??[{key:``,value:``}])[0],a=(0,n.useModel)(e,`modelValue`);return(0,n.watch)(a,e=>{if(t.config.noMultiple&&e.length!=1){if(e.length>0)return e.push(r());e.pop()}}),(e,t)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(i.NDynamicInput),{value:a.value,"onUpdate:value":t[0]||=e=>a.value=e,"on-create":()=>r(),"show-sort-button":``},{default:(0,n.withCtx)(({value:e})=>[(0,n.createElementVNode)(`div`,jg,[(0,n.createVNode)((0,n.unref)(i.NInput),{value:e.key,"onUpdate:value":t=>e.key=t,class:`w-2/3!`,type:`text`,placeholder:`插件ID`},null,8,[`value`,`onUpdate:value`]),(0,n.createVNode)((0,n.unref)(i.NInput),{value:e.value,"onUpdate:value":t=>e.value=t,type:`text`,class:`my-2`,placeholder:`下载语句`},null,8,[`value`,`onUpdate:value`])])]),_:1},8,[`value`,`on-create`]))}}),Ng=(0,n.defineComponent)({__name:`DcFormItem`,props:(0,n.mergeModels)({config:{},path:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=(0,n.useModel)(e,`modelValue`);return(r,a)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(i.NFormItem),{label:e.config.info,path:e.path,required:e.config.required??!0},{default:(0,n.withCtx)(()=>[e.config.type==`switch`?((0,n.openBlock)(),(0,n.createBlock)(wg,{key:0,config:e.config,modelValue:t.value,"onUpdate:modelValue":a[0]||=e=>t.value=e},null,8,[`config`,`modelValue`])):e.config.type==`string`?((0,n.openBlock)(),(0,n.createBlock)(Tg,{key:1,config:e.config,modelValue:t.value,"onUpdate:modelValue":a[1]||=e=>t.value=e},null,8,[`config`,`modelValue`])):e.config.type==`number`?((0,n.openBlock)(),(0,n.createBlock)(Eg,{key:2,config:e.config,modelValue:t.value,"onUpdate:modelValue":a[2]||=e=>t.value=e},null,8,[`config`,`modelValue`])):e.config.type==`radio`?((0,n.openBlock)(),(0,n.createBlock)(Dg,{key:3,config:e.config,modelValue:t.value,"onUpdate:modelValue":a[3]||=e=>t.value=e},null,8,[`config`,`modelValue`])):e.config.type==`checkbox`?((0,n.openBlock)(),(0,n.createBlock)(Og,{key:4,config:e.config,modelValue:t.value,"onUpdate:modelValue":a[4]||=e=>t.value=e},null,8,[`config`,`modelValue`])):e.config.type==`date`?((0,n.openBlock)(),(0,n.createBlock)(kg,{key:5,config:e.config,modelValue:t.value,"onUpdate:modelValue":a[5]||=e=>t.value=e},null,8,[`config`,`modelValue`])):e.config.type==`dateRange`?((0,n.openBlock)(),(0,n.createBlock)(Ag,{key:6,config:e.config,modelValue:t.value,"onUpdate:modelValue":a[6]||=e=>t.value=e},null,8,[`config`,`modelValue`])):e.config.type==`pairs`?((0,n.openBlock)(),(0,n.createBlock)(Mg,{key:7,config:e.config,modelValue:t.value,"onUpdate:modelValue":a[7]||=e=>t.value=e},null,8,[`config`,`modelValue`])):(0,n.createCommentVNode)(``,!0)]),_:1},8,[`label`,`path`,`required`]))}}),Pg=(0,n.defineComponent)({__name:`DcForm`,props:(0,n.mergeModels)({configs:{},overrideRow:{type:Boolean}},{modelValue:{default:{}},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=(0,n.useModel)(e,`modelValue`),r=(0,n.useSlots)();return(a,o)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(i.NForm),{model:t.value},{default:(0,n.withCtx)(()=>[(0,n.renderSlot)(a.$slots,`top`,{config:e.configs}),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(Object.entries(e.configs),([i,o])=>((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,null,[r.row&&((0,n.unref)(be)(e.overrideRow)?e.overrideRow.includes(i):e.overrideRow)?(0,n.renderSlot)(a.$slots,`row`,{key:0,modelValue:t.value[i],setModelValue:e=>t.value[i]=e,path:i,config:o}):((0,n.openBlock)(),(0,n.createBlock)(Ng,{key:1,modelValue:t.value[i],"onUpdate:modelValue":e=>t.value[i]=e,path:i,config:o},null,8,[`modelValue`,`onUpdate:modelValue`,`path`,`config`]))],64))),256)),(0,n.renderSlot)(a.$slots,`bottom`,{config:e.configs})]),_:3},8,[`model`]))}}),Fg=t({}),Ig=t({Type:()=>Fg});const Lg=e=>{let t=(0,n.ref)({}),r=Promise.withResolvers();for(let n in e){if(!Object.hasOwn(e,n))continue;let r=e[n];switch(r.type){case`string`:t.value[n]=r.defaultValue??``;break;case`number`:t.value[n]=r.defaultValue??void 0;break;case`radio`:t.value[n]=r.defaultValue??void 0;break;case`checkbox`:t.value[n]=r.defaultValue??void 0;break;case`switch`:t.value[n]=r.defaultValue??!1;break;case`date`:t.value[n]=r.defaultValue??void 0;break}}return{comp:(0,n.createVNode)(Pg,{configs:e,modelValue:t.value,"onUpdate:modelValue":e=>t.value=e},{bottom:()=>(0,n.createVNode)(i.NButton,{type:`primary`,onClick:async()=>{try{r.resolve(t.value)}catch(e){window.$message.error(String(e))}}},{default:()=>[(0,n.createTextVNode)(`提交`)]})}),data:r.promise}},Rg=e=>{let t=m,r=m,i=new Promise((e,n)=>{t=e,r=n}),a=(0,n.shallowRef)(!0),[o,s,c]=ba(a),l=(0,n.watch)(o,e=>h.style.zIndex=e),u=window.$router.beforeEach(()=>s?f():!0),d=()=>(l(),c(),u(),h.destroy(),a.value=!1),f=()=>(r(),d(),!1),p=()=>{t(),d()},h=window.$dialog.create({positiveText:`确定`,negativeText:`取消`,...e,style:{...e.style,zIndex:o.value},async onClose(){if(await e.onClose?.()===!1)return!1;a.value=!1,f()},async onPositiveClick(t){if(await(e.onPositiveClick??m)(t)===!1)return!1;p()},async onNegativeClick(t){let n=await(e.onNegativeClick??m)(t);if(n)return n;f()},onEsc(){e.onEsc?.(),f()},onMaskClick(t){e.onMaskClick?.(t),f()},onAfterLeave(){e.onAfterLeave?.(),d()}});return i.ins=h,i};function zg(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!(0,n.isVNode)(e)}var Bg=(0,a.useGlobalVar)((0,n.reactive)([]),`utils/message/allDownloadMessagesIsMinsize`);const Vg=async(e,t)=>{let r=Bg.length;Bg[r]=!1;let a=(0,n.ref)(!1),o=(0,n.reactive)([]),s=(0,n.ref)(!1),l=(0,n.watch)(s,e=>{e?Bg[r]=!0:Bg[r]=!1},{immediate:!0}),u=(0,n.computed)(()=>Bg.slice(0,r).filter(e=>e).length),d=window.$message.create(e,{render:e=>{let t;return(0,n.createVNode)(xh.div,{drag:`y`,dragConstraints:{top:0,right:0,bottom:0,left:0},dragTransition:{bounceStiffness:500,bounceDamping:15},variants:{minsize:{borderRadius:`100%`,width:`30px`,height:`30px`,paddingInline:`2px`,paddingBlock:`2px`,position:`fixed`,left:`${u.value*40+8}px`,top:`calc(var(--safe-area-inset-top) + 4px)`},maxsize:{borderRadius:`8px`,width:`90vw`,paddingInline:`8px`,paddingBlock:`12px`,height:`fit-content`}},onDragEnd:(e,{offset:t})=>t.y<-30&&(s.value=!0),animate:s.value?`minsize`:`maxsize`,class:`overflow-hidden bg-(--n-color)`,style:{boxShadow:`var(--n-box-shadow)`}},{default:()=>[(0,n.createVNode)(n.Transition,{name:`van-fade`},{default:()=>[s.value?(0,n.createVNode)(`div`,{class:`relative size-full`,onClick:()=>s.value=!1},[(0,n.createVNode)(c.Loading,{class:`absolute top-0 left-0 size-full`,color:`var(--p-color)`},null),(0,n.createVNode)(i.NIcon,{class:`absolute! top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2`,size:`18px`,color:`var(--p-color)`},{default:()=>[o.some(e=>e.state==`error`)?(0,n.createVNode)(c.Icon,{name:`cross`},null):(0,n.createVNode)(jh,null,null)]})]):(0,n.createVNode)(`div`,{class:`relative w-full`},[(0,n.createVNode)(`div`,{class:`flex items-center gap-2 text-base font-semibold`},[(0,n.createVNode)(`span`,null,[e.content]),a.value&&(0,n.createVNode)(i.NIconWrapper,{size:18,color:`var(--nui-success-color)`,borderRadius:114514},{default:()=>[(0,n.createVNode)(i.NIcon,{size:12},{default:()=>[(0,n.createVNode)(Ah,null,null)]})]})]),(0,n.createVNode)(n.TransitionGroup,{name:`list`,tag:`ul`,class:`ml-1! h-fit w-full!`},zg(t=o.map((e,t)=>{let r;return(0,n.createVNode)(`div`,{class:`van-hairline--bottom w-full py-1`,key:t},[(0,n.createVNode)(`span`,{class:`text-sm font-semibold`},[e.title]),(0,n.createVNode)(`div`,{class:`relative h-fit w-full`},[(0,n.createVNode)(i.NProgress,{percentage:Ti(e.progress)?e.progress:100,indicatorPlacement:`inside`,processing:Ee(e.state),type:`line`,showIndicator:!1,"show-indicator":!1,class:[`transition-all **:in-[.n-progress-graph-line-fill]:hidden!`,e.state==`error`&&e.retry?`w-[60%]!`:`w-[95%]!`],height:7,status:e.state},null),(0,n.createVNode)(n.Transition,{name:`van-slide-right`},zg(r=(0,n.withDirectives)((0,n.createVNode)(`div`,{class:`absolute! top-1/2 right-[4%] flex -translate-y-1/2 gap-3 ease-in-out!`},[(0,n.createVNode)(i.NButton,{tertiary:!0,circle:!0,onClick:()=>{e.state==`error`&&(e.retry=void 0,e.pc.reject(e.error))},class:`size-10!`},{icon:()=>(0,n.createVNode)(i.NIcon,null,{default:()=>[(0,n.createVNode)(kh,null,null)]})}),(0,n.createVNode)(i.NButton,{tertiary:!0,circle:!0,onClick:e.retry,class:`size-10!`},{icon:()=>(0,n.createVNode)(i.NIcon,null,{default:()=>[(0,n.createVNode)(Dh,null,null)]})})]),[[n.vShow,e.state==`error`&&e.retry]]))?r:{default:()=>[r]})]),(0,n.createVNode)(`div`,{class:`h-4! text-xs text-(--van-text-color-2)`},[e.state==`error`&&`${e.error.name}: ${e.error.message}`||e.description||`...`])])}))?t:{default:()=>[t]}),(0,n.createVNode)(`div`,{class:`absolute -bottom-2 left-1/2 h-1 w-10 -translate-x-1/2 rounded-lg bg-(--nui-divider-color)`},null)])]})]})},duration:0}),f=(e,t,r)=>{let i=Promise.withResolvers(),a=(0,n.ref)(),s=(0,n.reactive)({description:``,retryable:!1,...t}),c=Error(),l=o.length,u=(0,n.watch)([s,a],([,t])=>{o[l]={title:e,state:t,error:c,pc:i,retry:s.retryable?d:void 0,...s}},{immediate:!0}),d=async()=>{a.value=void 0,s.description=``,s.retryable=!1;for(let e in t)Object.hasOwn(t,e)&&(s[e]=t[e]);try{let e=await r(s);a.value=`success`,await(0,n.nextTick)(),u.stop(),i.resolve(e)}catch(e){c=Se(e)?e:Error(ei(e)),a.value=`error`,await(0,n.nextTick)(),s.retryable||(u.stop(),i.reject(e))}};return d(),i.promise},p=t({createProgress:(e,t)=>f(e,{progress:0},t),createLoading:(e,t)=>f(e,{},t)}),m=Promise.withResolvers();return p.then(async e=>{s.value=!1,a.value=!0;let t=o.find(e=>e.state==`error`);if(t)throw t.error;m.resolve(e),h(3e3).then(()=>{s.value=!0}),await(0,n.nextTick)(),await $i(s).toBeTruthy(),l.stop(),d.destroy(),Bg[r]=void 0}),p.catch(async e=>{m.reject(e),s.value=!1,h(3e3).then(()=>{s.value=!0}),await(0,n.nextTick)(),await $i(s).toBeTruthy(),l.stop(),d.destroy(),Bg[r]=void 0}),m.promise},Hg=(e=`加载中`,t=window.$message)=>{let r=(0,n.computed)(()=>(0,n.isRef)(e)?e.value:Ce(e)?e():e),i=t.loading(r.value,{duration:0}),a=(0,n.watch)(r,e=>{i.content=e}),o=!1;async function s(e,t=!0,n,r){try{let t=await e;return c.success(n),t}catch(e){if(c.fail(r),t)throw e;return}}let c={bind:s,async success(e=`成功!`,t=500){a(),!(o||!i)&&(o=!0,i.type=`success`,i.content=e,await h(t),i.destroy())},async fail(e=`失败!`,t=500){a(),!(o||!i)&&(o=!0,i.type=`error`,i.content=e,await h(t),i.destroy())},async info(e,t=500){a(),!(o||!i)&&(o=!0,i.type=`info`,i.content=e,await h(t),i.destroy())},destroy(){a(),!(o||!i)&&(o=!0,i.destroy())},[Symbol.dispose](){this.destroy()},instance:i};return c};exports.DcAuthorIcon=Ta,exports.DcAwait=Ea,exports.DcContent=Rh,exports.DcFloatPopup=zh,exports.DcForm=Pg,exports.DcFormCheckbox=Og,exports.DcFormDate=kg,exports.DcFormDateRange=Ag,exports.DcFormItem=Ng,exports.DcFormNumber=Eg,exports.DcFormPairs=Mg,exports.DcFormRadio=Dg,exports.DcFormString=Tg,exports.DcFormSwitch=wg,exports.DcImage=Ca,exports.DcImagedIcon=wa,exports.DcList=Vh,exports.DcLoading=Sa,exports.DcPopup=Hh,exports.DcRouterTab=Uh,exports.DcText=Wh,exports.DcToggleIcon=Kh,exports.DcVar=Bh,exports.DcWaterfall=Cg,Object.defineProperty(exports,`FormType`,{enumerable:!0,get:function(){return Ig}}),exports.createDialog=Rg,exports.createDownloadMessage=Vg,exports.createForm=Lg,exports.createLoadingMessage=Hg,exports.showImagePreview=xa,exports.useZIndex=ba;
|
|
9
|
+
`)}function i(e){let n=t.get(e);n&&(t.delete(e),I.render(()=>{document.head.removeChild(n)}))}return{addPopStyle:r,removePopStyle:i}}var Mh=0;function Nh(e){let t=String(Mh++),r=new Map,{addPopStyle:i,removePopStyle:a}=jh(e);function o(e){let n=[],r=$p.get(e);r&&e.getAttribute(Wp.motionAttribute)===t&&n.push(r);let i=Array.from(e.querySelectorAll(`[${Wp.motionAttribute}="${t}"]`));for(let e of i){let t=$p.get(e);t&&n.push(t)}return n}function s(e,t){let n=r.get(e);n&&(n.remaining.delete(t),n.remaining.size===0&&l(n))}let c={initial:e.initial,custom:e.custom,presenceId:t,onMotionExitComplete:s};(0,n.watch)(()=>e.custom,e=>{c.custom=e},{flush:`pre`}),ph(c),(0,n.onMounted)(()=>{c.initial=void 0});function l(t){a(t.el),t.states.forEach(e=>{e.getSnapshot(e.options,!1)}),t.done(),r.delete(t.el),t.el?.isConnected?t.states[0]?.didUpdate():t.states.forEach(e=>{e.unmount()}),e.onExitComplete?.()}function u(e,t){o(e).forEach(e=>{e.setActive(`exit`,!1),e.getSnapshot(e.options,!0)}),t()}function d(t,n){let a=t,s=o(a);if(s.length===0){n(),e.onExitComplete?.();return}let c={remaining:new Set(s),states:s,done:n,el:a};r.set(a,c),i(a),s.forEach(e=>{e.presenceContainer=a,e.setActive(`exit`,!0),e.getSnapshot(e.options,!1)}),s[0]?.didUpdate()}return(0,n.onUnmounted)(()=>{r.forEach(e=>{e.states.forEach(e=>{e.unmount()})}),r.clear()}),{enter:u,exit:d}}var Ph=(0,n.defineComponent)({name:`AnimatePresence`,inheritAttrs:!0,__name:`AnimatePresence`,props:{mode:{default:`sync`},initial:{type:Boolean,default:!0},as:{},custom:{},onExitComplete:{},anchorX:{default:`left`}},setup(e){let t=e,{enter:r,exit:i}=Nh(t),a=(0,n.computed)(()=>t.mode===`wait`?{mode:t.mode===`wait`?`out-in`:void 0}:{tag:t.as});return(e,t)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(e.mode===`wait`?n.Transition:n.TransitionGroup),(0,n.mergeProps)(a.value,{appear:``,css:!1,onLeave:(0,n.unref)(i),onEnter:(0,n.unref)(r)}),{default:(0,n.withCtx)(()=>[(0,n.renderSlot)(e.$slots,`default`)]),_:3},16,[`onLeave`,`onEnter`]))}});const Fh=()=>(0,n.createVNode)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,xmlnsXlink:`http://www.w3.org/1999/xlink`,viewBox:`0 0 1024 1024`},[(0,n.createVNode)(`path`,{d:`M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92C290 92 102.3 279.5 102 511.5C101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1c1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 0 0-10.1 4.8c-1.8 5-3.8 10-5.9 14.9c-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 0 1 655.9 829c-42.3 17.9-87.4 27-133.8 27c-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 0 1 279 755.2a342.16 342.16 0 0 1-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4c31.6-31.6 68.4-56.4 109.3-73.8c42.3-17.9 87.4-27 133.8-27c46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 0 1 109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 0 0 3 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z`,fill:`currentColor`},null)]),Ih=()=>(0,n.createVNode)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,xmlnsXlink:`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},[(0,n.createVNode)(`path`,{d:`M10.66 7.14c-2.24.48-4.04 2.3-4.52 4.54c-.37 1.75.02 3.38.89 4.66c.34.51 1.08.55 1.51.11c.35-.35.37-.88.1-1.28c-.5-.76-.75-1.71-.61-2.73c.23-1.74 1.67-3.17 3.41-3.4A4.003 4.003 0 0 1 16 13c0 .8-.24 1.54-.64 2.16c-.27.41-.25.95.1 1.29c.43.43 1.17.4 1.51-.11C17.62 15.4 18 14.25 18 13c0-3.75-3.45-6.7-7.34-5.86zm-.41-3.99c-4.05.69-7.19 3.69-8.03 7.72c-.66 3.17.2 6.16 1.97 8.38c.37.46 1.07.49 1.49.07c.36-.36.39-.93.07-1.32a8.004 8.004 0 0 1-1.66-6.28c.55-3.47 3.42-6.24 6.92-6.65c2.76-.33 5.27.74 6.93 2.59c.2.21.47.34.76.34c.85 0 1.34-1.01.77-1.65c-2.19-2.45-5.56-3.82-9.22-3.2zM12 11c-1.1 0-2 .9-2 2c0 .55.23 1.05.59 1.41c.36.36.86.59 1.41.59s1.05-.23 1.41-.59c.36-.36.59-.86.59-1.41c0-1.1-.9-2-2-2zm9-1c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1s-1-.45-1-1v-4c0-.55.45-1 1-1zm0 8c.55 0 1 .45 1 1s-.45 1-1 1s-1-.45-1-1s.45-1 1-1z`,fill:`currentColor`},null)]),Lh=()=>(0,n.createVNode)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,xmlnsXlink:`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},[(0,n.createVNode)(`path`,{d:`M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59L7.11 5.7A.996.996 0 1 0 5.7 7.11L10.59 12L5.7 16.89a.996.996 0 1 0 1.41 1.41L12 13.41l4.89 4.89a.996.996 0 1 0 1.41-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z`,fill:`currentColor`},null)]),Rh=()=>(0,n.createVNode)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,xmlnsXlink:`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},[(0,n.createVNode)(`path`,{d:`M9 16.2l-3.5-3.5a.984.984 0 0 0-1.4 0a.984.984 0 0 0 0 1.4l4.19 4.19c.39.39 1.02.39 1.41 0L20.3 7.7a.984.984 0 0 0 0-1.4a.984.984 0 0 0-1.4 0L9 16.2z`,fill:`currentColor`},null)]),zh=()=>(0,n.createVNode)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,xmlnsXlink:`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},[(0,n.createVNode)(`path`,{d:`M16.59 9H15V4c0-.55-.45-1-1-1h-4c-.55 0-1 .45-1 1v5H7.41c-.89 0-1.34 1.08-.71 1.71l4.59 4.59c.39.39 1.02.39 1.41 0l4.59-4.59c.63-.63.19-1.71-.7-1.71zM5 19c0 .55.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1H6c-.55 0-1 .45-1 1z`,fill:`currentColor`},null)]);var Bh={class:`relative size-full overflow-hidden`},Vh={key:2},Hh={key:3,class:`size-full`},Uh={key:4,class:`flex items-center justify-around gap-3`},Wh={class:`flex flex-col justify-center gap-2 text-white`},Gh={class:`text-xs text-wrap`},Kh=(0,n.defineComponent)({__name:`DcContent`,props:{retriable:{type:Boolean},hideError:{type:Boolean},hideEmpty:{type:Boolean},hideLoading:{type:Boolean},source:{},class:{},classError:{},classEmpty:{},classLoading:{},style:{type:[Boolean,null,String,Object,Array]},styleError:{type:[Boolean,null,String,Object,Array]},styleEmpty:{type:[Boolean,null,String,Object,Array]},styleLoading:{type:[Boolean,null,String,Object,Array]}},emits:[`retry`,`resetRetry`],setup(e,{expose:t}){let a=e,o=(0,n.computed)(()=>r.Stream.isStream(a.source)?{isLoading:a.source.isRequesting.value,isError:a.source.error.value,errorCause:a.source.error.value?.message,isEmpty:a.source.isEmpty.value,data:a.source.data.value,isNoResult:a.source.isNoData.value}:r.PromiseContent.isPromiseContent(a.source)?{isLoading:a.source.isLoading.value,isError:a.source.isError.value,errorCause:a.source.errorCause.value?.message,isEmpty:a.source.isEmpty.value,data:a.source.data.value,isNoResult:a.source.isEmpty.value}:{isLoading:!1,isError:!1,errorCause:void 0,isEmpty:Pi(a.source),data:a.source,isNoResult:Pi(a.source)}),s={isLoadingNoData:{opacity:1,translateY:0,width:`2.5rem`,height:`2.5rem`,paddingBlock:`2px`,paddingInline:`2px`,left:`50%`,top:`8px`,translateX:`-50%`,backgroundColor:`var(--van-background-2)`,borderRadius:`100%`},isErrorNoData:{opacity:1,translateY:`-50%`,width:`70%`,minHeight:a.retriable?`22rem`:`20rem`,paddingBlock:`2px`,paddingInline:`2px`,left:`50%`,top:`50%`,translateX:`-50%`,backgroundColor:`var(--van-background-2)`,borderRadius:`4px`},isLoadingData:{opacity:.7,translateY:`0%`,width:`4rem`,height:`1.3rem`,paddingBlock:`2px`,paddingInline:`8px`,left:`4px`,top:`calc(100% - 8px - 1rem)`,translateX:`0%`,backgroundColor:`var(--p-color)`,borderRadius:`1.3rem`},isErrorData:{opacity:.7,translateY:`0%`,width:`fit-content`,height:`4rem`,paddingBlock:`2px`,paddingInline:`8px`,left:`4px`,top:`calc(100% - 8px - 4rem)`,translateX:`0%`,backgroundColor:`var(--p-color)`,borderRadius:`4px`},isEmpty:{opacity:1,translateY:`-50%`,width:`90%`,height:`10rem`,paddingBlock:`2px`,paddingInline:`2px`,left:`50%`,top:`50%`,translateX:`-50%`,backgroundColor:`var(--van-background-2)`,borderRadius:`4px`},done:{width:`4rem`,height:`1.3rem`,opacity:0,translateY:`100%`,paddingBlock:`0px`,paddingInline:`0px`,left:`4px`,top:`calc(100% - 8px - 1rem)`,translateX:`0%`,backgroundColor:`var(--p-color)`,borderRadius:`4px`}},c=(0,n.computed)(()=>!a.hideLoading&&o.value.isLoading?o.value.isEmpty?`isLoadingNoData`:`isLoadingData`:!a.hideError&&o.value.isError?o.value.isEmpty?`isErrorNoData`:`isErrorData`:!a.hideEmpty&&o.value.isNoResult?`isEmpty`:`done`),l=(0,n.useTemplateRef)(`cont`);return t({cont:l}),(t,r)=>{let u=Tn,d=i.NEmpty,f=i.NButton,p=i.NIcon,m=i.NResult,h=Ph;return(0,n.openBlock)(),(0,n.createElementBlock)(`div`,Bh,[(0,n.createElementVNode)(`div`,{class:(0,n.normalizeClass)([`relative size-full`,[a.class]]),ref_key:`cont`,ref:l},[o.value.isEmpty?(0,n.createCommentVNode)(``,!0):(0,n.renderSlot)(t.$slots,`default`,{key:0,data:o.value.data})],2),(0,n.createVNode)(h,null,{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(kh).div,{initial:{opacity:0,translateY:`-100%`,left:`50%`,translateX:`-50%`},variants:s,animate:c.value,class:`absolute flex scale-100 items-center justify-center whitespace-nowrap shadow`},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(n.Transition,{name:`van-fade`},{default:(0,n.withCtx)(()=>[c.value===`isLoadingNoData`?((0,n.openBlock)(),(0,n.createBlock)(u,{key:0,size:`25px`,color:`var(--p-color)`})):c.value===`isLoadingData`?((0,n.openBlock)(),(0,n.createBlock)(Ta,{key:1,size:`10px`,color:`white`},{default:(0,n.withCtx)(()=>[...r[2]||=[(0,n.createTextVNode)(`加载中`,-1)]]),_:1})):c.value===`isEmpty`?((0,n.openBlock)(),(0,n.createElementBlock)(`div`,Vh,[(0,n.createVNode)(d,{description:`无结果`,class:(0,n.normalizeClass)([`w-full justify-center!`,[e.classEmpty]]),style:(0,n.normalizeStyle)([e.style,e.styleEmpty])},null,8,[`class`,`style`])])):c.value===`isErrorNoData`?((0,n.openBlock)(),(0,n.createElementBlock)(`div`,Hh,[(0,n.createVNode)(m,{class:(0,n.normalizeClass)([`flex size-full! flex-col items-center! justify-center! text-wrap *:w-full`,[e.classError]]),status:`error`,title:`网络错误`,style:(0,n.normalizeStyle)([e.style,e.styleError]),description:o.value.errorCause??`未知原因`},{footer:(0,n.withCtx)(()=>[e.retriable?((0,n.openBlock)(),(0,n.createBlock)(f,{key:0,onClick:r[0]||=e=>t.$emit(`resetRetry`),type:`primary`},{default:(0,n.withCtx)(()=>[...r[3]||=[(0,n.createTextVNode)(`重试`,-1)]]),_:1})):(0,n.createCommentVNode)(``,!0)]),icon:(0,n.withCtx)(()=>[(0,n.createVNode)(p,{size:`10rem`,color:`var(--nui-error-color)`},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(Ih))]),_:1})]),_:1},8,[`class`,`style`,`description`])])):c.value===`isErrorData`?((0,n.openBlock)(),(0,n.createElementBlock)(`div`,Uh,[(0,n.createVNode)(p,{size:`3rem`,color:`white`},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(Ih))]),_:1}),(0,n.createElementVNode)(`div`,Wh,[r[4]||=(0,n.createElementVNode)(`div`,{class:`text-sm`},`网络错误`,-1),(0,n.createElementVNode)(`div`,Gh,(0,n.toDisplayString)(o.value.errorCause??`未知原因`),1)]),(0,n.createVNode)(f,{circle:``,type:`error`,size:`large`,onClick:r[1]||=e=>t.$emit(`retry`)},{icon:(0,n.withCtx)(()=>[(0,n.createVNode)(p,{color:`white`},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(Fh))]),_:1})]),_:1})])):(0,n.createCommentVNode)(``,!0)]),_:1})]),_:1},8,[`animate`])]),_:1})])}}}),qh=(0,n.defineComponent)({__name:`DcFloatPopup`,props:{anchors:{default:`high`},lockScroll:{type:Boolean,default:!1},class:{},style:{type:[Boolean,null,String,Object,Array]},overlay:{type:Boolean}},setup(e,{expose:t}){let r=(0,s.useRouter)(),i=e,a=(0,n.shallowRef)(!1),{height:o}=xa(),c=(0,n.computed)(()=>Se(i.anchors)?i.anchors:i.anchors===`high`?[0,Math.round(.4*o.value),Math.round(.7*o.value),o.value]:[0,Math.round(.3*o.value),Math.round(.6*o.value),Math.round(.9*o.value)]),l=(0,n.shallowRef)(0),[u,d]=Ca(()=>l.value>0),f=ji;return(0,n.watch)(a,()=>{a.value?f=r.beforeEach(()=>d.value?a.value=!1:void 0):f()}),(0,s.onBeforeRouteLeave)(f),t({show(e=2){l.value=c.value[e],a.value=!0},close(){a.value=!1},isShowing:(0,n.shallowReadonly)(a),height:(0,n.shallowReadonly)(l)}),(t,r)=>{let i=Ln,o=Wr;return(0,n.openBlock)(),(0,n.createBlock)(n.Teleport,{to:`#popups`},[e.overlay?((0,n.openBlock)(),(0,n.createBlock)(i,{key:0,zIndex:(0,n.unref)(u),show:a.value,onClick:r[0]||=e=>a.value=!1},null,8,[`zIndex`,`show`])):(0,n.createCommentVNode)(``,!0),(0,n.createVNode)(n.Transition,{onAfterLeave:r[3]||=e=>l.value=0,name:`van-slide-up`},{default:(0,n.withCtx)(()=>[(0,n.withDirectives)((0,n.createVNode)(o,{onHeightChange:r[1]||=({height:e})=>e<=0&&(a.value=!1),anchors:c.value,height:l.value,"onUpdate:height":r[2]||=e=>l.value=e,"content-draggable":!1,"lock-scroll":e.lockScroll,style:(0,n.normalizeStyle)([e.style,{zIndex:(0,n.unref)(u)}]),class:(0,n.normalizeClass)([e.class,`overflow-hidden border-0 border-t border-solid border-(--van-border-color)`])},{default:(0,n.withCtx)(()=>[(0,n.createElementVNode)(`div`,{class:`w-full bg-(--van-background)`,style:(0,n.normalizeStyle)({height:`calc(${l.value}px - var(--van-floating-panel-header-height))`})},[l.value==0?(0,n.createCommentVNode)(``,!0):(0,n.renderSlot)(t.$slots,`default`,{key:0,height:l.value})],4)]),_:3},8,[`anchors`,`height`,`lock-scroll`,`style`,`class`]),[[n.vShow,a.value]])]),_:3})])}}}),Jh=(0,n.defineComponent)({__name:`DcVar`,props:{value:{}},setup(e){let t=e;return(e,r)=>(0,n.renderSlot)(e.$slots,`default`,{value:t.value})}}),Yh=(0,n.defineComponent)({__name:`DcList`,props:{source:{},itemHeight:{},listProp:{},goBottom:{type:Boolean},itemResizable:{type:Boolean},dataProcessor:{},unReloadable:{type:Boolean},style:{type:[Boolean,null,String,Object,Array]},class:{}},emits:[`next`,`reset`,`retry`],setup(e,{expose:t,emit:a}){let o=e,s=a,c=e=>o.dataProcessor?.(e)??e,l=(0,n.computed)(()=>({...r.Stream.isStream(o.source)?{data:c(o.source.data.value),isDone:o.source.isDone.value,isRequesting:o.source.isRequesting.value,isError:!!o.source.error.value,length:c(o.source.data.value).length,isEmpty:o.source.isEmpty.value,source:o.source}:Se(o.source)?{data:c(o.source),isDone:!0,isRequesting:!1,isError:!1,length:c(o.source).length,isEmpty:Pi(o.source),source:o.source}:{data:c(o.source.data.data.value??[]),isDone:o.source.isEnd,isRequesting:o.source.data.isLoading.value,isError:o.source.data.isError.value,length:c(o.source.data.data.value??[]).length,isEmpty:o.source.data.isEmpty.value,source:o.source.data},next:()=>r.Stream.isStream(o.source)?o.source.next():(0,r.callbackToPromise)(e=>s(`next`,e)),retry:()=>r.Stream.isStream(o.source)?o.source.retry():(0,r.callbackToPromise)(e=>s(`retry`,e)),reset:()=>r.Stream.isStream(o.source)?o.source.reset():s(`reset`)}));(0,n.watch)(()=>l.value.data,()=>{o.goBottom&&u.value?.scrollTo({position:`bottom`,behavior:`instant`})},{flush:`post`,deep:!0,immediate:!0}),(0,n.watch)(l,e=>{e.isRequesting||Ai(window.innerHeight/o.itemHeight)+2>e.length&&!e.isDone&&(e.isError?e.retry():e.next())},{immediate:!0});let u=(0,n.useTemplateRef)(`vList`),{y:d}=ba(()=>u.value?.getScrollContainer()),f=Oi(async()=>{let e=u.value?.virtualListInstRef?.itemsElRef?.querySelector(` .v-vl-visible-items`);if(!e)return;let{itemHeight:t}=o,{data:n,isDone:r,isError:i,isRequesting:a,retry:s,next:c,length:f}=l.value;n&&!a&&!r&&t*(f-2)<d.value+(e?.children?.length??window.innerHeight/t)*t&&(i?s():c())},200),p=(0,n.shallowRef)(!1),m=(0,n.shallowRef)(!1),h=async()=>{l.value.reset(),console.log(`reset done`),await l.value.next(),m.value=!1};return t({scrollTop:d,listInstance:u}),(t,a)=>{let s=Zr;return(0,n.openBlock)(),(0,n.createBlock)(s,{modelValue:m.value,"onUpdate:modelValue":a[1]||=e=>m.value=e,class:(0,n.normalizeClass)([`relative`,o.class]),onRefresh:h,disabled:e.unReloadable||((0,n.unref)(r.Stream).isStream(e.source)?!1:(0,n.unref)(Se)(e.source)?!0:e.source.reloadable??!0)||l.value.isError||l.value.isRequesting||!!(0,n.unref)(d)&&!p.value,onChange:a[2]||=({distance:e})=>p.value=!!e,style:(0,n.normalizeStyle)(e.style)},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(Kh,{retriable:``,source:(0,n.unref)(r.Stream).isStream(e.source)||(0,n.unref)(Se)(e.source)?e.source:e.source.data,"class-loading":`mt-2 !h-[24px]`,"class-empty":`!h-full`,"class-error":`!h-full`,onResetRetry:h,"hide-loading":p.value&&l.value.isRequesting,onRetry:a[0]||=e=>l.value.retry()},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(Jh,{value:l.value.data},{default:(0,n.withCtx)(({value:r})=>[(0,n.createVNode)((0,n.unref)(i.NVirtualList),(0,n.mergeProps)(e.listProp??{},{"item-resizable":e.itemResizable,"item-size":e.itemHeight,onScroll:(0,n.unref)(f),class:[`h-full overflow-x-hidden`,[p.value?`overflow-y-hidden`:`overflow-y-auto`]],items:r,ref_key:`vList`,ref:u}),{default:(0,n.withCtx)(({item:i})=>[(0,n.renderSlot)(t.$slots,`default`,{height:e.itemHeight,data:{item:i,index:r.indexOf(i)}})]),_:2},1040,[`item-resizable`,`item-size`,`onScroll`,`items`,`class`])]),_:3},8,[`value`])]),_:3},8,[`source`,`hide-loading`])]),_:3},8,[`modelValue`,`class`,`disabled`,`style`])}}}),Xh=(0,n.defineComponent)({__name:`DcPopup`,props:(0,n.mergeModels)({show:{type:Boolean},zIndex:{},overlay:{type:Boolean,default:!0},duration:{},teleport:{},lockScroll:{type:Boolean},lazyRender:{type:Boolean},beforeClose:{},overlayProps:{},overlayStyle:{},overlayClass:{},transitionAppear:{type:Boolean},closeOnClickOverlay:{type:Boolean,default:!0},round:{type:Boolean},position:{default:`center`},closeIcon:{},closeable:{type:Boolean},transition:{},iconPrefix:{},closeOnPopstate:{type:Boolean},closeIconPosition:{},destroyOnClose:{type:Boolean},safeAreaInsetTop:{type:Boolean},safeAreaInsetBottom:{type:Boolean},noBorder:{type:Boolean,default:!1},useTrulyShow:{type:Boolean},style:{type:[Boolean,null,String,Object,Array]}},{show:{type:Boolean,required:!0},showModifiers:{}}),emits:(0,n.mergeModels)([`closed`],[`update:show`]),setup(e,{expose:t}){let r=(0,s.useRouter)(),i=e,a=(0,n.useModel)(e,`show`),o=(0,n.shallowRef)(a.value),[c,l]=Ca((0,n.computed)(()=>i.useTrulyShow?o.value:a.value)),u=ji;return(0,n.watch)(a,e=>{e?u=r.beforeEach(()=>{if(console.log(`popup:
|
|
10
|
+
`,`isLast:`,l.value,`show:`,a.value),l.value)return a.value?a.value=!1:void 0}):u()},{immediate:!0}),t({zIndex:c,trulyShow:o}),(t,r)=>{let s=Vn;return(0,n.openBlock)(),(0,n.createBlock)(s,(0,n.mergeProps)(i,{show:a.value,"onUpdate:show":r[0]||=e=>a.value=e,"z-index":(0,n.unref)(c),teleport:`#popups`,onOpen:r[1]||=e=>o.value=!0,onClosed:r[2]||=()=>{o.value=!1,t.$emit(`closed`)},class:[`max-h-screen overflow-hidden overflow-y-auto!`,!e.noBorder&&`border-0 border-t border-solid border-(--van-border-color)`]}),{default:(0,n.withCtx)(()=>[o.value?(0,n.renderSlot)(t.$slots,`default`,{key:0}):(0,n.createCommentVNode)(``,!0)]),_:3},16,[`show`,`z-index`,`class`])}}}),Zh=(0,n.defineComponent)({__name:`DcRouterTab`,props:{items:{},routerBase:{}},setup(e){let t=e,r=(0,s.useRoute)(),i=(0,n.ref)(decodeURI(r.path.replaceAll(t.routerBase+`/`,``).split(`/`)[0])),a=(0,s.useRouter)(),o=async e=>{let n=`?`,r=t.items.find(t=>t.name==e);for(let e in r.queries??{})if(Object.prototype.hasOwnProperty.call(r.queries??{},e)){let t=(r.queries??{})[e];n+=`${e}=${t}&`}return n=n.replace(/&$/,``),await a.force.replace(`${t.routerBase}/${e.split(`/`).map(encodeURI).join(`/`)}${n}`),!0};(0,n.watch)(()=>t.items,e=>{e.find(e=>e.name.startsWith(i.value))||console.log(i.value,e)});let c=a.afterEach(e=>{if(e.path.startsWith(t.routerBase)){let n=e.path.replaceAll(t.routerBase+`/`,``).split(`/`)[0];n!==i.value&&(i.value=n)}});return(0,n.onUnmounted)(()=>{c()}),(t,r)=>{let a=zr,s=Br;return(0,n.openBlock)(),(0,n.createBlock)(s,{ref:`tab`,shrink:``,active:i.value,"onUpdate:active":r[0]||=e=>i.value=e,beforeChange:o,class:`w-full`},{"nav-left":(0,n.withCtx)(()=>[(0,n.renderSlot)(t.$slots,`left`)]),"nav-right":(0,n.withCtx)(()=>[(0,n.renderSlot)(t.$slots,`right`)]),"nav-bottom":(0,n.withCtx)(()=>[(0,n.renderSlot)(t.$slots,`bottom`)]),default:(0,n.withCtx)(()=>[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.items,e=>((0,n.openBlock)(),(0,n.createBlock)(a,{title:e.title,onClick:t=>i.value=e.name,name:e.name},null,8,[`title`,`onClick`,`name`]))),256))]),_:3},8,[`active`])}}}),Qh=(0,n.defineComponent)({__name:`DcText`,props:{text:{default:``},ellipsis:{}},setup(e){let t=e,r=(0,n.computed)(()=>t.text.replace(/(http(s?):\/\/)?([\w-]+\.)+(\.?[a-z]+)+(:\d+)?(\/[\w-.\/?%&=]*)?/gi,e=>`\u1145[[${e}]]\u1145`).split(`ᅅ`).filter(Boolean).map(e=>/\[\[[^\[\]]+\]\]/g.test(e)?{value:e.substring(2,e.length-2),mode:`link`}:{value:e,mode:`text`}));return(t,a)=>{let o=i.NButton;return(0,n.openBlock)(),(0,n.createElementBlock)(`div`,{class:(0,n.normalizeClass)([[(0,n.unref)(Di)(e.ellipsis)&&`overflow-hidden overflow-ellipsis`],`whitespace-pre-wrap text-(--van-text-color)`]),style:(0,n.normalizeStyle)([(0,n.unref)(Di)(e.ellipsis)&&`line-break: anywhere;display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: ${e.ellipsis};`])},[(0,n.renderSlot)(t.$slots,`default`),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(r.value,e=>((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,null,[e.mode===`link`?((0,n.openBlock)(),(0,n.createBlock)(o,{key:0,tag:`a`,class:`underline`,onClick:a[0]||=(0,n.withModifiers)(()=>{},[`stop`]),text:``,type:`primary`,target:`_blank`,href:/http(s?):\/\/.+/.test(e.value)?e.value:`https://${e.value}`},{default:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.value),1)]),_:2},1032,[`href`])):e.mode===`text`?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:1},[(0,n.createTextVNode)((0,n.toDisplayString)(e.value),1)],64)):(0,n.createCommentVNode)(``,!0)],64))),256))],6)}}}),$h={class:`mt-1 text-xs text-(--van-text-color-2)`},eg=(0,n.defineComponent)({__name:`DcToggleIcon`,props:(0,n.mergeModels)({icon:{},size:{},disChanged:{type:Boolean},rowMode:{type:Boolean},padding:{type:Boolean}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:(0,n.mergeModels)([`change`,`click`,`longClick`],[`update:modelValue`]),setup(e,{emit:t}){let r=e,a=t,o=(0,n.useModel)(e,`modelValue`);(0,n.watch)(o,e=>a(`change`,e));let s=()=>{a(`click`,!o.value),r.disChanged||(o.value=!o.value)},c=(0,n.useTemplateRef)(`htmlRefHook`);return pa(c,()=>{a(`longClick`)},{modifiers:{prevent:!0}}),(t,r)=>{let a=i.NIcon;return(0,n.openBlock)(),(0,n.createElementBlock)(`div`,{class:(0,n.normalizeClass)([`flex items-center justify-center **:transition-colors!`,[e.rowMode||`flex-col`,e.padding&&`px-4`]]),onClick:(0,n.withModifiers)(s,[`stop`]),ref_key:`htmlRefHook`,ref:c},[(0,n.createVNode)(a,{size:e.size,color:o.value?`var(--p-color)`:`var(--van-gray-7)`},{default:(0,n.withCtx)(()=>[((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(e.icon)))]),_:1},8,[`size`,`color`]),(0,n.createElementVNode)(`span`,$h,[(0,n.renderSlot)(t.$slots,`default`)])],2)}}}),tg=Object.defineProperty,ng=Object.defineProperties,rg=Object.getOwnPropertyDescriptors,ig=Object.getOwnPropertySymbols,ag=Object.prototype.hasOwnProperty,og=Object.prototype.propertyIsEnumerable,sg=(e,t,n)=>t in e?tg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,cg=(e,t)=>{for(var n in t||={})ag.call(t,n)&&sg(e,n,t[n]);if(ig)for(var n of ig(t))og.call(t,n)&&sg(e,n,t[n]);return e},lg=(e,t)=>ng(e,rg(t)),ug=(e,t)=>{var n={};for(var r in e)ag.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&ig)for(var r of ig(e))t.indexOf(r)<0&&og.call(e,r)&&(n[r]=e[r]);return n};function dg(e){return(0,n.getCurrentScope)()?((0,n.onScopeDispose)(e),!0):!1}var fg=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var pg=e=>e!=null,mg=Object.prototype.toString,hg=e=>mg.call(e)===`[object Object]`;function gg(e){return Array.isArray(e)?e:[e]}function _g(e){return(0,n.getCurrentInstance)()}function vg(e,t=!0,r){_g()?(0,n.onMounted)(e,r):t?e():(0,n.nextTick)(e)}function yg(e,t,r){return(0,n.watch)(e,t,lg(cg({},r),{immediate:!0}))}var bg=fg?window:void 0;function xg(e){let t=(0,n.toValue)(e);return t?.$el??t}function Sg(...e){let t=[],r=()=>{t.forEach(e=>e()),t.length=0},i=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),a=(0,n.computed)(()=>{let t=gg((0,n.toValue)(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0}),o=yg(()=>[a.value?.map(e=>xg(e))??[bg].filter(e=>e!=null),gg((0,n.toValue)(a.value?e[1]:e[0])),gg((0,n.unref)(a.value?e[2]:e[1])),(0,n.toValue)(a.value?e[3]:e[2])],([e,n,a,o])=>{if(r(),!(e!=null&&e.length)||!(n!=null&&n.length)||!(a!=null&&a.length))return;let s=hg(o)?cg({},o):o;t.push(...e.flatMap(e=>n.flatMap(t=>a.map(n=>i(e,t,n,s)))))},{flush:`post`});return dg(r),()=>{o(),r()}}function Cg(){let e=(0,n.shallowRef)(!1),t=(0,n.getCurrentInstance)();return t&&(0,n.onMounted)(()=>{e.value=!0},t),e}function wg(e){let t=Cg();return(0,n.computed)(()=>(t.value,!!e()))}function Tg(e,t,r={}){let i=r,{window:a=bg}=i,o=ug(i,[`window`]),s,c=wg(()=>a&&`MutationObserver`in a),l=()=>{s&&=(s.disconnect(),void 0)},u=(0,n.computed)(()=>{let t=gg((0,n.toValue)(e)).map(xg).filter(pg);return new Set(t)}),d=(0,n.watch)(()=>u.value,e=>{l(),c.value&&e.size&&(s=new MutationObserver(t),e.forEach(e=>s.observe(e,o)))},{immediate:!0,flush:`post`}),f=()=>s?.takeRecords(),p=()=>{d(),l()};return dg(p),{isSupported:c,stop:p,takeRecords:f}}function Eg(e,t,r={}){let i=r,{window:a=bg}=i,o=ug(i,[`window`]),s,c=wg(()=>a&&`ResizeObserver`in a),l=()=>{s&&=(s.disconnect(),void 0)},u=(0,n.watch)((0,n.computed)(()=>{let t=(0,n.toValue)(e);return Array.isArray(t)?t.map(e=>xg(e)):[xg(t)]}),e=>{if(l(),c.value&&a){s=new ResizeObserver(t);for(let t of e)t&&s.observe(t,o)}},{immediate:!0,flush:`post`}),d=()=>{l(),u()};return dg(d),{isSupported:c,stop:d}}function Dg(e,t={}){let{reset:r=!0,windowResize:i=!0,windowScroll:a=!0,immediate:o=!0,updateTiming:s=`sync`}=t,c=(0,n.shallowRef)(0),l=(0,n.shallowRef)(0),u=(0,n.shallowRef)(0),d=(0,n.shallowRef)(0),f=(0,n.shallowRef)(0),p=(0,n.shallowRef)(0),m=(0,n.shallowRef)(0),h=(0,n.shallowRef)(0);function g(){let t=xg(e);if(!t){r&&(c.value=0,l.value=0,u.value=0,d.value=0,f.value=0,p.value=0,m.value=0,h.value=0);return}let n=t.getBoundingClientRect();c.value=n.height,l.value=n.bottom,u.value=n.left,d.value=n.right,f.value=n.top,p.value=n.width,m.value=n.x,h.value=n.y}function _(){s===`sync`?g():s===`next-frame`&&requestAnimationFrame(()=>g())}return Eg(e,_),(0,n.watch)(()=>xg(e),e=>!e&&_()),Tg(e,_,{attributeFilter:[`style`,`class`]}),a&&Sg(`scroll`,_,{capture:!0,passive:!0}),i&&Sg(`resize`,_,{passive:!0}),vg(()=>{o&&_()}),{height:c,bottom:l,left:u,right:d,top:f,width:p,x:m,y:h,update:_}}function Og(e,t={width:0,height:0},r={}){let{window:i=bg,box:a=`content-box`}=r,o=(0,n.computed)(()=>(xg(e)?.namespaceURI)?.includes(`svg`)),s=(0,n.shallowRef)(t.width),c=(0,n.shallowRef)(t.height),{stop:l}=Eg(e,([t])=>{let n=a===`border-box`?t.borderBoxSize:a===`content-box`?t.contentBoxSize:t.devicePixelContentBoxSize;if(i&&o.value){let t=xg(e);if(t){let e=t.getBoundingClientRect();s.value=e.width,c.value=e.height}}else if(n){let e=gg(n);s.value=e.reduce((e,{inlineSize:t})=>e+t,0),c.value=e.reduce((e,{blockSize:t})=>e+t,0)}else s.value=t.contentRect.width,c.value=t.contentRect.height},r);vg(()=>{let n=xg(e);n&&(s.value=`offsetWidth`in n?n.offsetWidth:t.width,c.value=`offsetHeight`in n?n.offsetHeight:t.height)});let u=(0,n.watch)(()=>xg(e),e=>{s.value=e?t.width:0,c.value=e?t.height:0});function d(){l(),u()}return{width:s,height:c,stop:d}}var kg=[`data-index`],Ag=(0,n.defineComponent)({name:`VirtualWaterfall`,__name:`virtual-waterfall`,props:{virtual:{type:Boolean,default:!0},rowKey:{default:`id`},enableCache:{type:Boolean,default:!0},gap:{default:15},padding:{default:15},preloadScreenCount:{default:()=>[0,0]},itemMinWidth:{default:220},maxColumnCount:{default:10},minColumnCount:{default:2},items:{default:()=>[]},calcItemHeight:{type:Function,default:(e,t)=>250}},setup(e,{expose:t}){let r=e,i=(0,n.ref)(),{width:a}=Og(i),{top:o}=Dg(i);(0,n.onMounted)(()=>{a.value===0&&(a.value=Number.parseInt(window.getComputedStyle(i.value).width))});function s(e){return Object.prototype.toString.call(e)===`[object Number]`}let c=(0,n.computed)(()=>{if(!a.value)return 0;let e=a.value;if(e>=r.itemMinWidth*2){let t=Math.floor(e/r.itemMinWidth);return r.maxColumnCount&&t>r.maxColumnCount?r.maxColumnCount:t}return r.minColumnCount}),l=(0,n.ref)(Array(c.value).fill(0)),u=(0,n.computed)(()=>{if(!a.value||c.value<=0)return 0;let e=(c.value-1)*r.gap;return Math.ceil((a.value-e)/c.value)}),d=(0,n.shallowRef)([]);t({withItemSpaces:e=>{e((0,n.readonly)(d).value)}}),(0,n.watchEffect)(()=>{let e=r.items.length;if(!c.value||!e){d.value=[];return}let t=Array(e),n=0,i=r.enableCache&&d.value.length&&e>d.value.length;i?n=d.value.length:l.value=Array(c.value).fill(0);for(let a=0;a<e;a++){if(i&&a<n){t[a]=d.value[a];continue}let e=p(),o=r.calcItemHeight(r.items[a],u.value),s=l.value[e],c=(u.value+r.gap)*e,f={index:a,item:r.items[a],column:e,top:s,left:c,bottom:s+o,height:o};l.value[e]+=o+r.gap,t[a]=f}d.value=t});let f=(0,n.computed)(()=>{let e=d.value.length;if(!e)return[];if(!r.virtual)return d.value;let t=i.value.parentElement.offsetTop,n=-o.value+t,[a,s]=r.preloadScreenCount,c=i.value.parentElement.clientHeight,l=n-a*c,u=n+(s+1)*c,f=[];for(let t=0;t<e;t++){let e=d.value[t],n=e.top,r=e.bottom;(n>=l&&n<=u||r>=l&&r<=u||n<l&&r>u)&&f.push(e)}return f}),p=()=>l.value.indexOf(Math.min(...l.value));return(e,t)=>((0,n.openBlock)(),(0,n.createElementBlock)(`div`,{ref_key:`content`,ref:i,style:(0,n.normalizeStyle)({position:`relative`,willChange:`height`,height:`${Math.max(...l.value)}px`,padding:`${s(e.padding)?e.padding+`px`:e.padding}`})},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(f.value,t=>((0,n.openBlock)(),(0,n.createElementBlock)(`div`,{key:t.item[e.rowKey]??t.index,style:(0,n.normalizeStyle)({position:`absolute`,contentVisibility:`auto`,width:`${u.value}px`,height:`${t.height}px`,transform:`translate(${t.left}px, ${t.top}px)`,containIntrinsicSize:`${u.value}px ${t.height}px`}),"data-index":t.index},[(0,n.renderSlot)(e.$slots,`default`,{item:t.item,index:t.index})],12,kg))),128))],4))}}),jg=(0,n.defineComponent)({__name:`DcWaterfall`,props:{source:{},style:{type:[Boolean,null,String,Object,Array]},class:{},col:{default:2},padding:{default:4},gap:{default:4},minHeight:{default:0},dataProcessor:{},unReloadable:{type:Boolean}},emits:[`next`,`reset`,`retry`,`col`],setup(e,{expose:t,emit:i}){let a=e,s=i,c=e=>a.dataProcessor?.(e)??e,l=(0,n.computed)(()=>Se(a.col)?a.col:[a.col,a.col]),u=(0,n.computed)(()=>({...r.Stream.isStream(a.source)?{data:c(a.source.data.value),isDone:a.source.isDone.value,isRequesting:a.source.isRequesting.value,isError:!!a.source.error.value,length:c(a.source.data.value).length,isEmpty:a.source.isEmpty.value,source:a.source}:{data:c(a.source.data.data.value??[]),isDone:a.source.isEnd,isRequesting:a.source.data.isLoading.value,isError:a.source.data.isError.value,length:c(a.source.data.data.value??[]).length,isEmpty:a.source.data.isEmpty.value,source:a.source.data},next:()=>r.Stream.isStream(a.source)?a.source.next():(0,r.callbackToPromise)(e=>s(`next`,e)),retry:()=>r.Stream.isStream(a.source)?a.source.retry():(0,r.callbackToPromise)(e=>s(`retry`,e)),reset:()=>r.Stream.isStream(a.source)?a.source.reset():s(`reset`)})),d=(0,n.shallowRef)(!1),f=(0,n.shallowRef)(!1),p=async()=>{u.value.reset(),console.log(`reset done`),await u.value.next(),f.value=!1},m=(0,n.useTemplateRef)(`content`),h=(0,n.computed)(()=>m.value?.cont),{y:g}=ba(h);tt(`scroll`,()=>{let{isDone:e,isError:t,isRequesting:n,retry:r,next:i}=u.value;if(n||e)return;let a=h.value;if(!a)return;let o=a.scrollHeight,s=a.scrollTop,c=a.clientHeight;o-s-c<=100&&(t?r():i())},{target:h}),(0,n.watch)(()=>a.source,()=>{let{isError:e,retry:t,next:n,isEmpty:r}=u.value;r&&(e?t():n())},{deep:1,immediate:!0});let _=(0,n.useTemplateRef)(`waterfallEl`),v=(0,o.useTemp)().$apply(`waterfall`,()=>({top:0})),y=v.top++,b=(0,o.useTemp)().$applyRaw(`waterfall:${y}`,()=>(0,n.shallowReactive)(new Map)),x=[],S=new MutationObserver(([e])=>{for(let e of x)e();if(!(e.target instanceof HTMLDivElement)||!u.value.data)return;let t=[...e.target.children];for(let e of t){let t=Number(e.dataset.index),n=u.value.data[t],r=()=>{let t=e.firstElementChild?.getBoundingClientRect();b.set(n,t?.height??a.minHeight)},i=va(e.firstElementChild,r);r(),x.push(()=>i.stop())}});(0,n.watch)(_,e=>{if(!e)return S.disconnect();S.observe(e.$el,{childList:!0})}),(0,n.onUnmounted)(()=>{S.disconnect();for(let e of x)e()});let C=(0,n.shallowRef)(!0);return t({scrollTop:g,scrollParent:h,async reloadList(){C.value=!1,b.clear(),await(0,n.nextTick)(),C.value=!0}}),(t,i)=>{let o=Zr;return C.value?((0,n.openBlock)(),(0,n.createBlock)(o,{key:0,modelValue:f.value,"onUpdate:modelValue":i[1]||=e=>f.value=e,class:(0,n.normalizeClass)([`relative h-full`,a.class]),disabled:e.unReloadable||u.value.isRequesting||!!(0,n.unref)(g)&&!d.value,onRefresh:p,onChange:i[2]||=({distance:e})=>d.value=!!e,style:(0,n.normalizeStyle)(e.style)},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(Kh,{retriable:``,source:(0,n.unref)(r.Stream).isStream(e.source)?e.source:e.source.data,"class-loading":`mt-2 !h-[24px]`,"class-empty":`h-full!`,"class-error":`h-full!`,class:`h-full w-full overflow-auto`,onRetry:i[0]||=e=>u.value.retry(),onResetRetry:p,"hide-loading":d.value&&u.value.isRequesting,ref_key:`content`,ref:m},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(Ag),{items:u.value.data,gap:e.gap,padding:e.padding,"preload-screen-count":[0,1],ref_key:`waterfallEl`,ref:_,"calc-item-height":t=>(0,n.unref)(b).get(t)??e.minHeight,class:`waterfall`,"min-column-count":l.value[0],"max-column-count":l.value[1]},{default:(0,n.withCtx)(({item:r,index:i})=>[(0,n.renderSlot)(t.$slots,`default`,{item:r,index:i,height:(0,n.unref)(b).get(r),length:u.value.length,minHeight:e.minHeight})]),_:3},8,[`items`,`gap`,`padding`,`calc-item-height`,`min-column-count`,`max-column-count`])]),_:3},8,[`source`,`hide-loading`])]),_:3},8,[`modelValue`,`class`,`disabled`,`style`])):(0,n.createCommentVNode)(``,!0)}}});async function Mg(e,t={},n){return window.__TAURI_INTERNALS__.invoke(e,t,n)}async function Ng(e,t){await Mg(`plugin:shell|open`,{path:e,with:t})}var Pg={};function Fg(e){let t=Pg[e];if(t)return t;t=Pg[e]=[];for(let e=0;e<128;e++){let n=String.fromCharCode(e);t.push(n)}for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t[r]=`%`+(`0`+r.toString(16).toUpperCase()).slice(-2)}return t}function Ig(e,t){typeof t!=`string`&&(t=Ig.defaultChars);let n=Fg(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(e){let t=``;for(let r=0,i=e.length;r<i;r+=3){let a=parseInt(e.slice(r+1,r+3),16);if(a<128){t+=n[a];continue}if((a&224)==192&&r+3<i){let n=parseInt(e.slice(r+4,r+6),16);if((n&192)==128){let e=a<<6&1984|n&63;e<128?t+=`��`:t+=String.fromCharCode(e),r+=3;continue}}if((a&240)==224&&r+6<i){let n=parseInt(e.slice(r+4,r+6),16),i=parseInt(e.slice(r+7,r+9),16);if((n&192)==128&&(i&192)==128){let e=a<<12&61440|n<<6&4032|i&63;e<2048||e>=55296&&e<=57343?t+=`���`:t+=String.fromCharCode(e),r+=6;continue}}if((a&248)==240&&r+9<i){let n=parseInt(e.slice(r+4,r+6),16),i=parseInt(e.slice(r+7,r+9),16),o=parseInt(e.slice(r+10,r+12),16);if((n&192)==128&&(i&192)==128&&(o&192)==128){let e=a<<18&1835008|n<<12&258048|i<<6&4032|o&63;e<65536||e>1114111?t+=`����`:(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(e&1023))),r+=9;continue}}t+=`�`}return t})}Ig.defaultChars=`;/?:@&=+$,#`,Ig.componentChars=``;var Lg={};function Rg(e){let t=Lg[e];if(t)return t;t=Lg[e]=[];for(let e=0;e<128;e++){let n=String.fromCharCode(e);/^[0-9a-z]$/i.test(n)?t.push(n):t.push(`%`+(`0`+e.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function zg(e,t,n){typeof t!=`string`&&(n=t,t=zg.defaultChars),n===void 0&&(n=!0);let r=Rg(t),i=``;for(let t=0,a=e.length;t<a;t++){let o=e.charCodeAt(t);if(n&&o===37&&t+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(t+1,t+3))){i+=e.slice(t,t+3),t+=2;continue}if(o<128){i+=r[o];continue}if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&t+1<a){let n=e.charCodeAt(t+1);if(n>=56320&&n<=57343){i+=encodeURIComponent(e[t]+e[t+1]),t++;continue}}i+=`%EF%BF%BD`;continue}i+=encodeURIComponent(e[t])}return i}zg.defaultChars=`;/?:@&=+$,-_.!~*'()#`,zg.componentChars=`-_.!~*'()`;function Bg(e){let t=``;return t+=e.protocol||``,t+=e.slashes?`//`:``,t+=e.auth?e.auth+`@`:``,e.hostname&&e.hostname.indexOf(`:`)!==-1?t+=`[`+e.hostname+`]`:t+=e.hostname||``,t+=e.port?`:`+e.port:``,t+=e.pathname||``,t+=e.search||``,t+=e.hash||``,t}function Vg(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var Hg=/^([a-z0-9.+-]+:)/i,Ug=/:[0-9]*$/,Wg=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Gg=[`%`,`/`,`?`,`;`,`#`,`'`,`{`,`}`,`|`,`\\`,`^`,"`",`<`,`>`,`"`,"`",` `,`\r`,`
|
|
11
|
+
`,` `],Kg=[`/`,`?`,`#`],qg=255,Jg=/^[+a-z0-9A-Z_-]{0,63}$/,Yg=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Xg={javascript:!0,"javascript:":!0},Zg={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Qg(e,t){if(e&&e instanceof Vg)return e;let n=new Vg;return n.parse(e,t),n}Vg.prototype.parse=function(e,t){let n,r,i,a=e;if(a=a.trim(),!t&&e.split(`#`).length===1){let e=Wg.exec(a);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let o=Hg.exec(a);if(o&&(o=o[0],n=o.toLowerCase(),this.protocol=o,a=a.substr(o.length)),(t||o||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=a.substr(0,2)===`//`,i&&!(o&&Xg[o])&&(a=a.substr(2),this.slashes=!0)),!Xg[o]&&(i||o&&!Zg[o])){let e=-1;for(let t=0;t<Kg.length;t++)r=a.indexOf(Kg[t]),r!==-1&&(e===-1||r<e)&&(e=r);let t,n;n=e===-1?a.lastIndexOf(`@`):a.lastIndexOf(`@`,e),n!==-1&&(t=a.slice(0,n),a=a.slice(n+1),this.auth=t),e=-1;for(let t=0;t<Gg.length;t++)r=a.indexOf(Gg[t]),r!==-1&&(e===-1||r<e)&&(e=r);e===-1&&(e=a.length),a[e-1]===`:`&&e--;let i=a.slice(0,e);a=a.slice(e),this.parseHost(i),this.hostname=this.hostname||``;let o=this.hostname[0]===`[`&&this.hostname[this.hostname.length-1]===`]`;if(!o){let e=this.hostname.split(/\./);for(let t=0,n=e.length;t<n;t++){let n=e[t];if(n&&!n.match(Jg)){let r=``;for(let e=0,t=n.length;e<t;e++)n.charCodeAt(e)>127?r+=`x`:r+=n[e];if(!r.match(Jg)){let r=e.slice(0,t),i=e.slice(t+1),o=n.match(Yg);o&&(r.push(o[1]),i.unshift(o[2])),i.length&&(a=i.join(`.`)+a),this.hostname=r.join(`.`);break}}}}this.hostname.length>qg&&(this.hostname=``),o&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}let s=a.indexOf(`#`);s!==-1&&(this.hash=a.substr(s),a=a.slice(0,s));let c=a.indexOf(`?`);return c!==-1&&(this.search=a.substr(c),a=a.slice(0,c)),a&&(this.pathname=a),Zg[n]&&this.hostname&&!this.pathname&&(this.pathname=``),this},Vg.prototype.parseHost=function(e){let t=Ug.exec(e);t&&(t=t[0],t!==`:`&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var $g=t({decode:()=>Ig,encode:()=>zg,format:()=>Bg,parse:()=>Qg}),e_=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,t_=/[\0-\x1F\x7F-\x9F]/,n_=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,r_=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,i_=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,a_=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,o_=t({Any:()=>e_,Cc:()=>t_,Cf:()=>n_,P:()=>r_,S:()=>i_,Z:()=>a_}),s_=new Uint16Array(`ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻\xA0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌`.split(``).map(e=>e.charCodeAt(0))),c_=new Uint16Array(`Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢`.split(``).map(e=>e.charCodeAt(0))),l_=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);const u_=String.fromCodePoint??function(e){let t=``;return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function d_(e){return e>=55296&&e<=57343||e>1114111?65533:l_.get(e)??e}var J;(function(e){e[e.NUM=35]=`NUM`,e[e.SEMI=59]=`SEMI`,e[e.EQUALS=61]=`EQUALS`,e[e.ZERO=48]=`ZERO`,e[e.NINE=57]=`NINE`,e[e.LOWER_A=97]=`LOWER_A`,e[e.LOWER_F=102]=`LOWER_F`,e[e.LOWER_X=120]=`LOWER_X`,e[e.LOWER_Z=122]=`LOWER_Z`,e[e.UPPER_A=65]=`UPPER_A`,e[e.UPPER_F=70]=`UPPER_F`,e[e.UPPER_Z=90]=`UPPER_Z`})(J||={});var f_=32,p_;(function(e){e[e.VALUE_LENGTH=49152]=`VALUE_LENGTH`,e[e.BRANCH_LENGTH=16256]=`BRANCH_LENGTH`,e[e.JUMP_TABLE=127]=`JUMP_TABLE`})(p_||={});function m_(e){return e>=J.ZERO&&e<=J.NINE}function h_(e){return e>=J.UPPER_A&&e<=J.UPPER_F||e>=J.LOWER_A&&e<=J.LOWER_F}function g_(e){return e>=J.UPPER_A&&e<=J.UPPER_Z||e>=J.LOWER_A&&e<=J.LOWER_Z||m_(e)}function __(e){return e===J.EQUALS||g_(e)}var Y;(function(e){e[e.EntityStart=0]=`EntityStart`,e[e.NumericStart=1]=`NumericStart`,e[e.NumericDecimal=2]=`NumericDecimal`,e[e.NumericHex=3]=`NumericHex`,e[e.NamedEntity=4]=`NamedEntity`})(Y||={});var v_;(function(e){e[e.Legacy=0]=`Legacy`,e[e.Strict=1]=`Strict`,e[e.Attribute=2]=`Attribute`})(v_||={});var y_=class{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=Y.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=v_.Strict}startEntity(e){this.decodeMode=e,this.state=Y.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case Y.EntityStart:return e.charCodeAt(t)===J.NUM?(this.state=Y.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=Y.NamedEntity,this.stateNamedEntity(e,t));case Y.NumericStart:return this.stateNumericStart(e,t);case Y.NumericDecimal:return this.stateNumericDecimal(e,t);case Y.NumericHex:return this.stateNumericHex(e,t);case Y.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|f_)===J.LOWER_X?(this.state=Y.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=Y.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){let i=n-t;this.result=this.result*r**+i+parseInt(e.substr(t,i),r),this.consumed+=i}}stateNumericHex(e,t){let n=t;for(;t<e.length;){let r=e.charCodeAt(t);if(m_(r)||h_(r))t+=1;else return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(r,3)}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){let n=t;for(;t<e.length;){let r=e.charCodeAt(t);if(m_(r))t+=1;else return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2)}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return(n=this.errors)==null||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===J.SEMI)this.consumed+=1;else if(this.decodeMode===v_.Strict)return 0;return this.emitCodePoint(d_(this.result),this.consumed),this.errors&&(e!==J.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:n}=this,r=n[this.treeIndex],i=(r&p_.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let a=e.charCodeAt(t);if(this.treeIndex=x_(n,r,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return this.result===0||this.decodeMode===v_.Attribute&&(i===0||__(a))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],i=(r&p_.VALUE_LENGTH)>>14,i!==0){if(a===J.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==v_.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:n}=this,r=(n[t]&p_.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),(e=this.errors)==null||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;return this.emitCodePoint(t===1?r[e]&~p_.VALUE_LENGTH:r[e+1],n),t===3&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case Y.NamedEntity:return this.result!==0&&(this.decodeMode!==v_.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Y.NumericDecimal:return this.emitNumericEntity(0,2);case Y.NumericHex:return this.emitNumericEntity(0,3);case Y.NumericStart:return(e=this.errors)==null||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Y.EntityStart:return 0}}};function b_(e){let t=``,n=new y_(e,e=>t+=u_(e));return function(e,r){let i=0,a=0;for(;(a=e.indexOf(`&`,a))>=0;){t+=e.slice(i,a),n.startEntity(r);let o=n.write(e,a+1);if(o<0){i=a+n.end();break}i=a+o,a=o===0?i+1:i}let o=t+e.slice(i);return t=``,o}}function x_(e,t,n,r){let i=(t&p_.BRANCH_LENGTH)>>7,a=t&p_.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){let t=r-a;return t<0||t>=i?-1:e[n+t]-1}let o=n,s=o+i-1;for(;o<=s;){let t=o+s>>>1,n=e[t];if(n<r)o=t+1;else if(n>r)s=t-1;else return e[t+i]}return-1}var S_=b_(s_);b_(c_);function C_(e,t=v_.Legacy){return S_(e,t)}var w_=t({arrayReplaceAt:()=>A_,assign:()=>k_,escapeHtml:()=>U_,escapeRE:()=>G_,fromCodePoint:()=>M_,has:()=>O_,isMdAsciiPunct:()=>J_,isPunctChar:()=>q_,isSpace:()=>X,isString:()=>E_,isValidEntityCode:()=>j_,isWhiteSpace:()=>K_,lib:()=>X_,normalizeReference:()=>Y_,unescapeAll:()=>R_,unescapeMd:()=>L_});function T_(e){return Object.prototype.toString.call(e)}function E_(e){return T_(e)===`[object String]`}var D_=Object.prototype.hasOwnProperty;function O_(e,t){return D_.call(e,t)}function k_(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(t){if(typeof t!=`object`)throw TypeError(t+`must be object`);Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e}function A_(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function j_(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)==65535||(e&65535)==65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function M_(e){if(e>65535){e-=65536;let t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var N_=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,P_=RegExp(N_.source+`|&([a-z#][a-z0-9]{1,31});`,`gi`),F_=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function I_(e,t){if(t.charCodeAt(0)===35&&F_.test(t)){let n=t[1].toLowerCase()===`x`?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return j_(n)?M_(n):e}let n=C_(e);return n===e?e:n}function L_(e){return e.indexOf(`\\`)<0?e:e.replace(N_,`$1`)}function R_(e){return e.indexOf(`\\`)<0&&e.indexOf(`&`)<0?e:e.replace(P_,function(e,t,n){return t||I_(e,n)})}var z_=/[&<>"]/,B_=/[&<>"]/g,V_={"&":`&`,"<":`<`,">":`>`,'"':`"`};function H_(e){return V_[e]}function U_(e){return z_.test(e)?e.replace(B_,H_):e}var W_=/[.?*+^$[\]\\(){}|-]/g;function G_(e){return e.replace(W_,`\\$&`)}function X(e){switch(e){case 9:case 32:return!0}return!1}function K_(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function q_(e){return r_.test(e)||i_.test(e)}function J_(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Y_(e){return e=e.trim().replace(/\s+/g,` `),e.toLowerCase().toUpperCase()}var X_={mdurl:$g,ucmicro:o_};function Z_(e,t,n){let r,i,a,o,s=e.posMax,c=e.pos;for(e.pos=t+1,r=1;e.pos<s;){if(a=e.src.charCodeAt(e.pos),a===93&&(r--,r===0)){i=!0;break}if(o=e.pos,e.md.inline.skipToken(e),a===91){if(o===e.pos-1)r++;else if(n)return e.pos=c,-1}}let l=-1;return i&&(l=e.pos),e.pos=c,l}function Q_(e,t,n){let r,i=t,a={ok:!1,pos:0,str:``};if(e.charCodeAt(i)===60){for(i++;i<n;){if(r=e.charCodeAt(i),r===10||r===60)return a;if(r===62)return a.pos=i+1,a.str=R_(e.slice(t+1,i)),a.ok=!0,a;if(r===92&&i+1<n){i+=2;continue}i++}return a}let o=0;for(;i<n&&(r=e.charCodeAt(i),!(r===32||r<32||r===127));){if(r===92&&i+1<n){if(e.charCodeAt(i+1)===32)break;i+=2;continue}if(r===40&&(o++,o>32))return a;if(r===41){if(o===0)break;o--}i++}return t===i||o!==0?a:(a.str=R_(e.slice(t,i)),a.pos=i,a.ok=!0,a)}function $_(e,t,n,r){let i,a=t,o={ok:!1,can_continue:!1,pos:0,str:``,marker:0};if(r)o.str=r.str,o.marker=r.marker;else{if(a>=n)return o;let r=e.charCodeAt(a);if(r!==34&&r!==39&&r!==40)return o;t++,a++,r===40&&(r=41),o.marker=r}for(;a<n;){if(i=e.charCodeAt(a),i===o.marker)return o.pos=a+1,o.str+=R_(e.slice(t,a)),o.ok=!0,o;if(i===40&&o.marker===41)return o;i===92&&a+1<n&&a++,a++}return o.can_continue=!0,o.str+=R_(e.slice(t,a)),o}var ev=t({parseLinkDestination:()=>Q_,parseLinkLabel:()=>Z_,parseLinkTitle:()=>$_}),tv={};tv.code_inline=function(e,t,n,r,i){let a=e[t];return`<code`+i.renderAttrs(a)+`>`+U_(a.content)+`</code>`},tv.code_block=function(e,t,n,r,i){let a=e[t];return`<pre`+i.renderAttrs(a)+`><code>`+U_(e[t].content)+`</code></pre>
|
|
12
|
+
`},tv.fence=function(e,t,n,r,i){let a=e[t],o=a.info?R_(a.info).trim():``,s=``,c=``;if(o){let e=o.split(/(\s+)/g);s=e[0],c=e.slice(2).join(``)}let l;if(l=n.highlight&&n.highlight(a.content,s,c)||U_(a.content),l.indexOf(`<pre`)===0)return l+`
|
|
13
|
+
`;if(o){let e=a.attrIndex(`class`),t=a.attrs?a.attrs.slice():[];e<0?t.push([`class`,n.langPrefix+s]):(t[e]=t[e].slice(),t[e][1]+=` `+n.langPrefix+s);let r={attrs:t};return`<pre><code${i.renderAttrs(r)}>${l}</code></pre>\n`}return`<pre><code${i.renderAttrs(a)}>${l}</code></pre>\n`},tv.image=function(e,t,n,r,i){let a=e[t];return a.attrs[a.attrIndex(`alt`)][1]=i.renderInlineAsText(a.children,n,r),i.renderToken(e,t,n)},tv.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />
|
|
14
|
+
`:`<br>
|
|
15
|
+
`},tv.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
|
|
16
|
+
`:`<br>
|
|
17
|
+
`:`
|
|
18
|
+
`},tv.text=function(e,t){return U_(e[t].content)},tv.html_block=function(e,t){return e[t].content},tv.html_inline=function(e,t){return e[t].content};function nv(){this.rules=k_({},tv)}nv.prototype.renderAttrs=function(e){let t,n,r;if(!e.attrs)return``;for(r=``,t=0,n=e.attrs.length;t<n;t++)r+=` `+U_(e.attrs[t][0])+`="`+U_(e.attrs[t][1])+`"`;return r},nv.prototype.renderToken=function(e,t,n){let r=e[t],i=``;if(r.hidden)return``;r.block&&r.nesting!==-1&&t&&e[t-1].hidden&&(i+=`
|
|
19
|
+
`),i+=(r.nesting===-1?`</`:`<`)+r.tag,i+=this.renderAttrs(r),r.nesting===0&&n.xhtmlOut&&(i+=` /`);let a=!1;if(r.block&&(a=!0,r.nesting===1&&t+1<e.length)){let n=e[t+1];(n.type===`inline`||n.hidden||n.nesting===-1&&n.tag===r.tag)&&(a=!1)}return i+=a?`>
|
|
20
|
+
`:`>`,i},nv.prototype.renderInline=function(e,t,n){let r=``,i=this.rules;for(let a=0,o=e.length;a<o;a++){let o=e[a].type;i[o]===void 0?r+=this.renderToken(e,a,t):r+=i[o](e,a,t,n,this)}return r},nv.prototype.renderInlineAsText=function(e,t,n){let r=``;for(let i=0,a=e.length;i<a;i++)switch(e[i].type){case`text`:r+=e[i].content;break;case`image`:r+=this.renderInlineAsText(e[i].children,t,n);break;case`html_inline`:case`html_block`:r+=e[i].content;break;case`softbreak`:case`hardbreak`:r+=`
|
|
21
|
+
`;break;default:}return r},nv.prototype.render=function(e,t,n){let r=``,i=this.rules;for(let a=0,o=e.length;a<o;a++){let o=e[a].type;o===`inline`?r+=this.renderInline(e[a].children,t,n):i[o]===void 0?r+=this.renderToken(e,a,t,n):r+=i[o](e,a,t,n,this)}return r};function Z(){this.__rules__=[],this.__cache__=null}Z.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},Z.prototype.__compile__=function(){let e=this,t=[``];e.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(e){t.indexOf(e)<0&&t.push(e)})}),e.__cache__={},t.forEach(function(t){e.__cache__[t]=[],e.__rules__.forEach(function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))})})},Z.prototype.at=function(e,t,n){let r=this.__find__(e),i=n||{};if(r===-1)throw Error(`Parser rule not found: `+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null},Z.prototype.before=function(e,t,n,r){let i=this.__find__(e),a=r||{};if(i===-1)throw Error(`Parser rule not found: `+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null},Z.prototype.after=function(e,t,n,r){let i=this.__find__(e),a=r||{};if(i===-1)throw Error(`Parser rule not found: `+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null},Z.prototype.push=function(e,t,n){let r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},Z.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);let n=[];return e.forEach(function(e){let r=this.__find__(e);if(r<0){if(t)return;throw Error(`Rules manager: invalid rule name `+e)}this.__rules__[r].enabled=!0,n.push(e)},this),this.__cache__=null,n},Z.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(e){e.enabled=!1}),this.enable(e,t)},Z.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);let n=[];return e.forEach(function(e){let r=this.__find__(e);if(r<0){if(t)return;throw Error(`Rules manager: invalid rule name `+e)}this.__rules__[r].enabled=!1,n.push(e)},this),this.__cache__=null,n},Z.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function rv(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content=``,this.markup=``,this.info=``,this.meta=null,this.block=!1,this.hidden=!1}rv.prototype.attrIndex=function(e){if(!this.attrs)return-1;let t=this.attrs;for(let n=0,r=t.length;n<r;n++)if(t[n][0]===e)return n;return-1},rv.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},rv.prototype.attrSet=function(e,t){let n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},rv.prototype.attrGet=function(e){let t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n},rv.prototype.attrJoin=function(e,t){let n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+` `+t};function iv(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}iv.prototype.Token=rv;var av=/\r\n?|\n/g,ov=/\0/g;function sv(e){let t;t=e.src.replace(av,`
|
|
22
|
+
`),t=t.replace(ov,`�`),e.src=t}function cv(e){let t;e.inlineMode?(t=new e.Token(`inline`,``,0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function lv(e){let t=e.tokens;for(let n=0,r=t.length;n<r;n++){let r=t[n];r.type===`inline`&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}function uv(e){return/^<a[>\s]/i.test(e)}function dv(e){return/^<\/a\s*>/i.test(e)}function fv(e){let t=e.tokens;if(e.md.options.linkify)for(let n=0,r=t.length;n<r;n++){if(t[n].type!==`inline`||!e.md.linkify.pretest(t[n].content))continue;let r=t[n].children,i=0;for(let a=r.length-1;a>=0;a--){let o=r[a];if(o.type===`link_close`){for(a--;r[a].level!==o.level&&r[a].type!==`link_open`;)a--;continue}if(o.type===`html_inline`&&(uv(o.content)&&i>0&&i--,dv(o.content)&&i++),!(i>0)&&o.type===`text`&&e.md.linkify.test(o.content)){let i=o.content,s=e.md.linkify.match(i),c=[],l=o.level,u=0;s.length>0&&s[0].index===0&&a>0&&r[a-1].type===`text_special`&&(s=s.slice(1));for(let t=0;t<s.length;t++){let n=s[t].url,r=e.md.normalizeLink(n);if(!e.md.validateLink(r))continue;let a=s[t].text;a=s[t].schema?s[t].schema===`mailto:`&&!/^mailto:/i.test(a)?e.md.normalizeLinkText(`mailto:`+a).replace(/^mailto:/,``):e.md.normalizeLinkText(a):e.md.normalizeLinkText(`http://`+a).replace(/^http:\/\//,``);let o=s[t].index;if(o>u){let t=new e.Token(`text`,``,0);t.content=i.slice(u,o),t.level=l,c.push(t)}let d=new e.Token(`link_open`,`a`,1);d.attrs=[[`href`,r]],d.level=l++,d.markup=`linkify`,d.info=`auto`,c.push(d);let f=new e.Token(`text`,``,0);f.content=a,f.level=l,c.push(f);let p=new e.Token(`link_close`,`a`,-1);p.level=--l,p.markup=`linkify`,p.info=`auto`,c.push(p),u=s[t].lastIndex}if(u<i.length){let t=new e.Token(`text`,``,0);t.content=i.slice(u),t.level=l,c.push(t)}t[n].children=r=A_(r,a,c)}}}}var pv=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,mv=/\((c|tm|r)\)/i,hv=/\((c|tm|r)\)/gi,gv={c:`©`,r:`®`,tm:`™`};function _v(e,t){return gv[t.toLowerCase()]}function vv(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];r.type===`text`&&!t&&(r.content=r.content.replace(hv,_v)),r.type===`link_open`&&r.info===`auto`&&t--,r.type===`link_close`&&r.info===`auto`&&t++}}function yv(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];r.type===`text`&&!t&&pv.test(r.content)&&(r.content=r.content.replace(/\+-/g,`±`).replace(/\.{2,}/g,`…`).replace(/([?!])…/g,`$1..`).replace(/([?!]){4,}/g,`$1$1$1`).replace(/,{2,}/g,`,`).replace(/(^|[^-])---(?=[^-]|$)/gm,`$1—`).replace(/(^|\s)--(?=\s|$)/gm,`$1–`).replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,`$1–`)),r.type===`link_open`&&r.info===`auto`&&t--,r.type===`link_close`&&r.info===`auto`&&t++}}function bv(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type===`inline`&&(mv.test(e.tokens[t].content)&&vv(e.tokens[t].children),pv.test(e.tokens[t].content)&&yv(e.tokens[t].children))}var xv=/['"]/,Sv=/['"]/g,Cv=`’`;function wv(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function Tv(e,t){let n,r=[];for(let i=0;i<e.length;i++){let a=e[i],o=e[i].level;for(n=r.length-1;n>=0&&!(r[n].level<=o);n--);if(r.length=n+1,a.type!==`text`)continue;let s=a.content,c=0,l=s.length;OUTER:for(;c<l;){Sv.lastIndex=c;let u=Sv.exec(s);if(!u)break;let d=!0,f=!0;c=u.index+1;let p=u[0]===`'`,m=32;if(u.index-1>=0)m=s.charCodeAt(u.index-1);else for(n=i-1;n>=0&&!(e[n].type===`softbreak`||e[n].type===`hardbreak`);n--)if(e[n].content){m=e[n].content.charCodeAt(e[n].content.length-1);break}let h=32;if(c<l)h=s.charCodeAt(c);else for(n=i+1;n<e.length&&!(e[n].type===`softbreak`||e[n].type===`hardbreak`);n++)if(e[n].content){h=e[n].content.charCodeAt(0);break}let g=J_(m)||q_(String.fromCharCode(m)),_=J_(h)||q_(String.fromCharCode(h)),v=K_(m),y=K_(h);if(y?d=!1:_&&(v||g||(d=!1)),v?f=!1:g&&(y||_||(f=!1)),h===34&&u[0]===`"`&&m>=48&&m<=57&&(f=d=!1),d&&f&&(d=g,f=_),!d&&!f){p&&(a.content=wv(a.content,u.index,Cv));continue}if(f)for(n=r.length-1;n>=0;n--){let d=r[n];if(r[n].level<o)break;if(d.single===p&&r[n].level===o){d=r[n];let o,f;p?(o=t.md.options.quotes[2],f=t.md.options.quotes[3]):(o=t.md.options.quotes[0],f=t.md.options.quotes[1]),a.content=wv(a.content,u.index,f),e[d.token].content=wv(e[d.token].content,d.pos,o),c+=f.length-1,d.token===i&&(c+=o.length-1),s=a.content,l=s.length,r.length=n;continue OUTER}}d?r.push({token:i,pos:u.index,single:p,level:o}):f&&p&&(a.content=wv(a.content,u.index,Cv))}}}function Ev(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!==`inline`||!xv.test(e.tokens[t].content)||Tv(e.tokens[t].children,e)}function Dv(e){let t,n,r=e.tokens,i=r.length;for(let e=0;e<i;e++){if(r[e].type!==`inline`)continue;let i=r[e].children,a=i.length;for(t=0;t<a;t++)i[t].type===`text_special`&&(i[t].type=`text`);for(t=n=0;t<a;t++)i[t].type===`text`&&t+1<a&&i[t+1].type===`text`?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}}var Ov=[[`normalize`,sv],[`block`,cv],[`inline`,lv],[`linkify`,fv],[`replacements`,bv],[`smartquotes`,Ev],[`text_join`,Dv]];function kv(){this.ruler=new Z;for(let e=0;e<Ov.length;e++)this.ruler.push(Ov[e][0],Ov[e][1])}kv.prototype.process=function(e){let t=this.ruler.getRules(``);for(let n=0,r=t.length;n<r;n++)t[n](e)},kv.prototype.State=iv;function Av(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType=`root`,this.level=0;let i=this.src;for(let e=0,t=0,n=0,r=0,a=i.length,o=!1;t<a;t++){let s=i.charCodeAt(t);if(!o)if(X(s)){n++,s===9?r+=4-r%4:r++;continue}else o=!0;(s===10||t===a-1)&&(s!==10&&t++,this.bMarks.push(e),this.eMarks.push(t),this.tShift.push(n),this.sCount.push(r),this.bsCount.push(0),o=!1,n=0,r=0,e=t+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Av.prototype.push=function(e,t,n){let r=new rv(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},Av.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},Av.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},Av.prototype.skipSpaces=function(e){for(let t=this.src.length;e<t&&X(this.src.charCodeAt(e));e++);return e},Av.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!X(this.src.charCodeAt(--e)))return e+1;return e},Av.prototype.skipChars=function(e,t){for(let n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},Av.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},Av.prototype.getLines=function(e,t,n,r){if(e>=t)return``;let i=Array(t-e);for(let a=0,o=e;o<t;o++,a++){let e=0,s=this.bMarks[o],c=s,l;for(l=o+1<t||r?this.eMarks[o]+1:this.eMarks[o];c<l&&e<n;){let t=this.src.charCodeAt(c);if(X(t))t===9?e+=4-(e+this.bsCount[o])%4:e++;else if(c-s<this.tShift[o])e++;else break;c++}e>n?i[a]=Array(e-n+1).join(` `)+this.src.slice(c,l):i[a]=this.src.slice(c,l)}return i.join(``)},Av.prototype.Token=rv;var jv=65536;function Mv(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function Nv(e){let t=[],n=e.length,r=0,i=e.charCodeAt(r),a=!1,o=0,s=``;for(;r<n;)i===124&&(a?(s+=e.substring(o,r-1),o=r):(t.push(s+e.substring(o,r)),s=``,o=r+1)),a=i===92,r++,i=e.charCodeAt(r);return t.push(s+e.substring(o)),t}function Pv(e,t,n,r){if(t+2>n)return!1;let i=t+1;if(e.sCount[i]<e.blkIndent||e.sCount[i]-e.blkIndent>=4)return!1;let a=e.bMarks[i]+e.tShift[i];if(a>=e.eMarks[i])return!1;let o=e.src.charCodeAt(a++);if(o!==124&&o!==45&&o!==58||a>=e.eMarks[i])return!1;let s=e.src.charCodeAt(a++);if(s!==124&&s!==45&&s!==58&&!X(s)||o===45&&X(s))return!1;for(;a<e.eMarks[i];){let t=e.src.charCodeAt(a);if(t!==124&&t!==45&&t!==58&&!X(t))return!1;a++}let c=Mv(e,t+1),l=c.split(`|`),u=[];for(let e=0;e<l.length;e++){let t=l[e].trim();if(!t){if(e===0||e===l.length-1)continue;return!1}if(!/^:?-+:?$/.test(t))return!1;t.charCodeAt(t.length-1)===58?u.push(t.charCodeAt(0)===58?`center`:`right`):t.charCodeAt(0)===58?u.push(`left`):u.push(``)}if(c=Mv(e,t).trim(),c.indexOf(`|`)===-1||e.sCount[t]-e.blkIndent>=4)return!1;l=Nv(c),l.length&&l[0]===``&&l.shift(),l.length&&l[l.length-1]===``&&l.pop();let d=l.length;if(d===0||d!==u.length)return!1;if(r)return!0;let f=e.parentType;e.parentType=`table`;let p=e.md.block.ruler.getRules(`blockquote`),m=e.push(`table_open`,`table`,1),h=[t,0];m.map=h;let g=e.push(`thead_open`,`thead`,1);g.map=[t,t+1];let _=e.push(`tr_open`,`tr`,1);_.map=[t,t+1];for(let t=0;t<l.length;t++){let n=e.push(`th_open`,`th`,1);u[t]&&(n.attrs=[[`style`,`text-align:`+u[t]]]);let r=e.push(`inline`,``,0);r.content=l[t].trim(),r.children=[],e.push(`th_close`,`th`,-1)}e.push(`tr_close`,`tr`,-1),e.push(`thead_close`,`thead`,-1);let v,y=0;for(i=t+2;i<n&&!(e.sCount[i]<e.blkIndent);i++){let r=!1;for(let t=0,a=p.length;t<a;t++)if(p[t](e,i,n,!0)){r=!0;break}if(r||(c=Mv(e,i).trim(),!c)||e.sCount[i]-e.blkIndent>=4||(l=Nv(c),l.length&&l[0]===``&&l.shift(),l.length&&l[l.length-1]===``&&l.pop(),y+=d-l.length,y>jv))break;if(i===t+2){let n=e.push(`tbody_open`,`tbody`,1);n.map=v=[t+2,0]}let a=e.push(`tr_open`,`tr`,1);a.map=[i,i+1];for(let t=0;t<d;t++){let n=e.push(`td_open`,`td`,1);u[t]&&(n.attrs=[[`style`,`text-align:`+u[t]]]);let r=e.push(`inline`,``,0);r.content=l[t]?l[t].trim():``,r.children=[],e.push(`td_close`,`td`,-1)}e.push(`tr_close`,`tr`,-1)}return v&&(e.push(`tbody_close`,`tbody`,-1),v[1]=i),e.push(`table_close`,`table`,-1),h[1]=i,e.parentType=f,e.line=i,!0}function Fv(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,i=r;for(;r<n;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){r++,i=r;continue}break}e.line=i;let a=e.push(`code_block`,`code`,0);return a.content=e.getLines(t,i,4+e.blkIndent,!1)+`
|
|
23
|
+
`,a.map=[t,e.line],!0}function Iv(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>a)return!1;let o=e.src.charCodeAt(i);if(o!==126&&o!==96)return!1;let s=i;i=e.skipChars(i,o);let c=i-s;if(c<3)return!1;let l=e.src.slice(s,i),u=e.src.slice(i,a);if(o===96&&u.indexOf(String.fromCharCode(o))>=0)return!1;if(r)return!0;let d=t,f=!1;for(;d++,!(d>=n||(i=s=e.bMarks[d]+e.tShift[d],a=e.eMarks[d],i<a&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(i)===o&&!(e.sCount[d]-e.blkIndent>=4)&&(i=e.skipChars(i,o),!(i-s<c)&&(i=e.skipSpaces(i),!(i<a)))){f=!0;break}c=e.sCount[t],e.line=d+(f?1:0);let p=e.push(`fence`,`code`,0);return p.info=u,p.content=e.getLines(t+1,d,c,!0),p.markup=l,p.map=[t,e.line],!0}function Lv(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],o=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==62)return!1;if(r)return!0;let s=[],c=[],l=[],u=[],d=e.md.block.ruler.getRules(`blockquote`),f=e.parentType;e.parentType=`blockquote`;let p=!1,m;for(m=t;m<n;m++){let t=e.sCount[m]<e.blkIndent;if(i=e.bMarks[m]+e.tShift[m],a=e.eMarks[m],i>=a)break;if(e.src.charCodeAt(i++)===62&&!t){let t=e.sCount[m]+1,n,r;e.src.charCodeAt(i)===32?(i++,t++,r=!1,n=!0):e.src.charCodeAt(i)===9?(n=!0,(e.bsCount[m]+t)%4==3?(i++,t++,r=!1):r=!0):n=!1;let o=t;for(s.push(e.bMarks[m]),e.bMarks[m]=i;i<a;){let t=e.src.charCodeAt(i);if(X(t))t===9?o+=4-(o+e.bsCount[m]+(r?1:0))%4:o++;else break;i++}p=i>=a,c.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+(n?1:0),l.push(e.sCount[m]),e.sCount[m]=o-t,u.push(e.tShift[m]),e.tShift[m]=i-e.bMarks[m];continue}if(p)break;let r=!1;for(let t=0,i=d.length;t<i;t++)if(d[t](e,m,n,!0)){r=!0;break}if(r){e.lineMax=m,e.blkIndent!==0&&(s.push(e.bMarks[m]),c.push(e.bsCount[m]),u.push(e.tShift[m]),l.push(e.sCount[m]),e.sCount[m]-=e.blkIndent);break}s.push(e.bMarks[m]),c.push(e.bsCount[m]),u.push(e.tShift[m]),l.push(e.sCount[m]),e.sCount[m]=-1}let h=e.blkIndent;e.blkIndent=0;let g=e.push(`blockquote_open`,`blockquote`,1);g.markup=`>`;let _=[t,0];g.map=_,e.md.block.tokenize(e,t,m);let v=e.push(`blockquote_close`,`blockquote`,-1);v.markup=`>`,e.lineMax=o,e.parentType=f,_[1]=e.line;for(let n=0;n<u.length;n++)e.bMarks[n+t]=s[n],e.tShift[n+t]=u[n],e.sCount[n+t]=l[n],e.bsCount[n+t]=c[n];return e.blkIndent=h,!0}function Rv(e,t,n,r){let i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.bMarks[t]+e.tShift[t],o=e.src.charCodeAt(a++);if(o!==42&&o!==45&&o!==95)return!1;let s=1;for(;a<i;){let t=e.src.charCodeAt(a++);if(t!==o&&!X(t))return!1;t===o&&s++}if(s<3)return!1;if(r)return!0;e.line=t+1;let c=e.push(`hr`,`hr`,0);return c.map=[t,e.line],c.markup=Array(s+1).join(String.fromCharCode(o)),!0}function zv(e,t){let n=e.eMarks[t],r=e.bMarks[t]+e.tShift[t],i=e.src.charCodeAt(r++);return i!==42&&i!==45&&i!==43||r<n&&!X(e.src.charCodeAt(r))?-1:r}function Bv(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t],i=n;if(i+1>=r)return-1;let a=e.src.charCodeAt(i++);if(a<48||a>57)return-1;for(;;){if(i>=r)return-1;if(a=e.src.charCodeAt(i++),a>=48&&a<=57){if(i-n>=10)return-1;continue}if(a===41||a===46)break;return-1}return i<r&&(a=e.src.charCodeAt(i),!X(a))?-1:i}function Vv(e,t){let n=e.level+2;for(let r=t+2,i=e.tokens.length-2;r<i;r++)e.tokens[r].level===n&&e.tokens[r].type===`paragraph_open`&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}function Hv(e,t,n,r){let i,a,o,s,c=t,l=!0;if(e.sCount[c]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[c]-e.listIndent>=4&&e.sCount[c]<e.blkIndent)return!1;let u=!1;r&&e.parentType===`paragraph`&&e.sCount[c]>=e.blkIndent&&(u=!0);let d,f,p;if((p=Bv(e,c))>=0){if(d=!0,o=e.bMarks[c]+e.tShift[c],f=Number(e.src.slice(o,p-1)),u&&f!==1)return!1}else if((p=zv(e,c))>=0)d=!1;else return!1;if(u&&e.skipSpaces(p)>=e.eMarks[c])return!1;if(r)return!0;let m=e.src.charCodeAt(p-1),h=e.tokens.length;d?(s=e.push(`ordered_list_open`,`ol`,1),f!==1&&(s.attrs=[[`start`,f]])):s=e.push(`bullet_list_open`,`ul`,1);let g=[c,0];s.map=g,s.markup=String.fromCharCode(m);let _=!1,v=e.md.block.ruler.getRules(`list`),y=e.parentType;for(e.parentType=`list`;c<n;){a=p,i=e.eMarks[c];let t=e.sCount[c]+p-(e.bMarks[c]+e.tShift[c]),r=t;for(;a<i;){let t=e.src.charCodeAt(a);if(t===9)r+=4-(r+e.bsCount[c])%4;else if(t===32)r++;else break;a++}let u=a,f;f=u>=i?1:r-t,f>4&&(f=1);let h=t+f;s=e.push(`list_item_open`,`li`,1),s.markup=String.fromCharCode(m);let g=[c,0];s.map=g,d&&(s.info=e.src.slice(o,p-1));let y=e.tight,b=e.tShift[c],x=e.sCount[c],S=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=h,e.tight=!0,e.tShift[c]=u-e.bMarks[c],e.sCount[c]=r,u>=i&&e.isEmpty(c+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,c,n,!0),(!e.tight||_)&&(l=!1),_=e.line-c>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=S,e.tShift[c]=b,e.sCount[c]=x,e.tight=y,s=e.push(`list_item_close`,`li`,-1),s.markup=String.fromCharCode(m),c=e.line,g[1]=c,c>=n||e.sCount[c]<e.blkIndent||e.sCount[c]-e.blkIndent>=4)break;let C=!1;for(let t=0,r=v.length;t<r;t++)if(v[t](e,c,n,!0)){C=!0;break}if(C)break;if(d){if(p=Bv(e,c),p<0)break;o=e.bMarks[c]+e.tShift[c]}else if(p=zv(e,c),p<0)break;if(m!==e.src.charCodeAt(p-1))break}return s=d?e.push(`ordered_list_close`,`ol`,-1):e.push(`bullet_list_close`,`ul`,-1),s.markup=String.fromCharCode(m),g[1]=c,e.line=c,e.parentType=y,l&&Vv(e,h),!0}function Uv(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],o=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==91)return!1;function s(t){let n=e.lineMax;if(t>=n||e.isEmpty(t))return null;let r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){let r=e.md.block.ruler.getRules(`reference`),i=e.parentType;e.parentType=`reference`;let a=!1;for(let i=0,o=r.length;i<o;i++)if(r[i](e,t,n,!0)){a=!0;break}if(e.parentType=i,a)return null}let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];return e.src.slice(i,a+1)}let c=e.src.slice(i,a+1);a=c.length;let l=-1;for(i=1;i<a;i++){let e=c.charCodeAt(i);if(e===91)return!1;if(e===93){l=i;break}else if(e===10){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}else if(e===92&&(i++,i<a&&c.charCodeAt(i)===10)){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}}if(l<0||c.charCodeAt(l+1)!==58)return!1;for(i=l+2;i<a;i++){let e=c.charCodeAt(i);if(e===10){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}else if(!X(e))break}let u=e.md.helpers.parseLinkDestination(c,i,a);if(!u.ok)return!1;let d=e.md.normalizeLink(u.str);if(!e.md.validateLink(d))return!1;i=u.pos;let f=i,p=o,m=i;for(;i<a;i++){let e=c.charCodeAt(i);if(e===10){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}else if(!X(e))break}let h=e.md.helpers.parseLinkTitle(c,i,a);for(;h.can_continue;){let t=s(o);if(t===null)break;c+=t,i=a,a=c.length,o++,h=e.md.helpers.parseLinkTitle(c,i,a,h)}let g;for(i<a&&m!==i&&h.ok?(g=h.str,i=h.pos):(g=``,i=f,o=p);i<a&&X(c.charCodeAt(i));)i++;if(i<a&&c.charCodeAt(i)!==10&&g)for(g=``,i=f,o=p;i<a&&X(c.charCodeAt(i));)i++;if(i<a&&c.charCodeAt(i)!==10)return!1;let _=Y_(c.slice(1,l));return _?r?!0:(e.env.references===void 0&&(e.env.references={}),e.env.references[_]===void 0&&(e.env.references[_]={title:g,href:d}),e.line=o,!0):!1}var Wv=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),Gv=`<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,Kv=RegExp(`^(?:`+Gv+`|<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>|<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)`),qv=RegExp(`^(?:`+Gv+`|<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>)`),Jv=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[RegExp(`^</?(`+Wv.join(`|`)+`)(?=(\\s|/?>|$))`,`i`),/^$/,!0],[RegExp(qv.source+`\\s*$`),/^$/,!1]];function Yv(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(i)!==60)return!1;let o=e.src.slice(i,a),s=0;for(;s<Jv.length&&!Jv[s][0].test(o);s++);if(s===Jv.length)return!1;if(r)return Jv[s][2];let c=t+1;if(!Jv[s][1].test(o)){for(;c<n&&!(e.sCount[c]<e.blkIndent);c++)if(i=e.bMarks[c]+e.tShift[c],a=e.eMarks[c],o=e.src.slice(i,a),Jv[s][1].test(o)){o.length!==0&&c++;break}}e.line=c;let l=e.push(`html_block`,``,0);return l.map=[t,c],l.content=e.getLines(t,c,e.blkIndent,!0),!0}function Xv(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.src.charCodeAt(i);if(o!==35||i>=a)return!1;let s=1;for(o=e.src.charCodeAt(++i);o===35&&i<a&&s<=6;)s++,o=e.src.charCodeAt(++i);if(s>6||i<a&&!X(o))return!1;if(r)return!0;a=e.skipSpacesBack(a,i);let c=e.skipCharsBack(a,35,i);c>i&&X(e.src.charCodeAt(c-1))&&(a=c),e.line=t+1;let l=e.push(`heading_open`,`h`+String(s),1);l.markup=`########`.slice(0,s),l.map=[t,e.line];let u=e.push(`inline`,``,0);u.content=e.src.slice(i,a).trim(),u.map=[t,e.line],u.children=[];let d=e.push(`heading_close`,`h`+String(s),-1);return d.markup=`########`.slice(0,s),!0}function Zv(e,t,n){let r=e.md.block.ruler.getRules(`paragraph`);if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.parentType;e.parentType=`paragraph`;let a=0,o,s=t+1;for(;s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let t=e.bMarks[s]+e.tShift[s],n=e.eMarks[s];if(t<n&&(o=e.src.charCodeAt(t),(o===45||o===61)&&(t=e.skipChars(t,o),t=e.skipSpaces(t),t>=n))){a=o===61?1:2;break}}if(e.sCount[s]<0)continue;let t=!1;for(let i=0,a=r.length;i<a;i++)if(r[i](e,s,n,!0)){t=!0;break}if(t)break}if(!a)return!1;let c=e.getLines(t,s,e.blkIndent,!1).trim();e.line=s+1;let l=e.push(`heading_open`,`h`+String(a),1);l.markup=String.fromCharCode(o),l.map=[t,e.line];let u=e.push(`inline`,``,0);u.content=c,u.map=[t,e.line-1],u.children=[];let d=e.push(`heading_close`,`h`+String(a),-1);return d.markup=String.fromCharCode(o),e.parentType=i,!0}function Qv(e,t,n){let r=e.md.block.ruler.getRules(`paragraph`),i=e.parentType,a=t+1;for(e.parentType=`paragraph`;a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3||e.sCount[a]<0)continue;let t=!1;for(let i=0,o=r.length;i<o;i++)if(r[i](e,a,n,!0)){t=!0;break}if(t)break}let o=e.getLines(t,a,e.blkIndent,!1).trim();e.line=a;let s=e.push(`paragraph_open`,`p`,1);s.map=[t,e.line];let c=e.push(`inline`,``,0);return c.content=o,c.map=[t,e.line],c.children=[],e.push(`paragraph_close`,`p`,-1),e.parentType=i,!0}var $v=[[`table`,Pv,[`paragraph`,`reference`]],[`code`,Fv],[`fence`,Iv,[`paragraph`,`reference`,`blockquote`,`list`]],[`blockquote`,Lv,[`paragraph`,`reference`,`blockquote`,`list`]],[`hr`,Rv,[`paragraph`,`reference`,`blockquote`,`list`]],[`list`,Hv,[`paragraph`,`reference`,`blockquote`]],[`reference`,Uv],[`html_block`,Yv,[`paragraph`,`reference`,`blockquote`]],[`heading`,Xv,[`paragraph`,`reference`,`blockquote`]],[`lheading`,Zv],[`paragraph`,Qv]];function ey(){this.ruler=new Z;for(let e=0;e<$v.length;e++)this.ruler.push($v[e][0],$v[e][1],{alt:($v[e][2]||[]).slice()})}ey.prototype.tokenize=function(e,t,n){let r=this.ruler.getRules(``),i=r.length,a=e.md.options.maxNesting,o=t,s=!1;for(;o<n&&(e.line=o=e.skipEmptyLines(o),!(o>=n||e.sCount[o]<e.blkIndent));){if(e.level>=a){e.line=n;break}let t=e.line,c=!1;for(let a=0;a<i;a++)if(c=r[a](e,o,n,!1),c){if(t>=e.line)throw Error(`block rule didn't increment state.line`);break}if(!c)throw Error(`none of the block rules matched`);e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),o=e.line,o<n&&e.isEmpty(o)&&(s=!0,o++,e.line=o)}},ey.prototype.parse=function(e,t,n,r){if(!e)return;let i=new this.State(e,t,n,r);this.tokenize(i,i.line,i.lineMax)},ey.prototype.State=Av;function ty(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending=``,this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}ty.prototype.pushPending=function(){let e=new rv(`text`,``,0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending=``,e},ty.prototype.push=function(e,t,n){this.pending&&this.pushPending();let r=new rv(e,t,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},ty.prototype.scanDelims=function(e,t){let n=this.posMax,r=this.src.charCodeAt(e),i=e>0?this.src.charCodeAt(e-1):32,a=e;for(;a<n&&this.src.charCodeAt(a)===r;)a++;let o=a-e,s=a<n?this.src.charCodeAt(a):32,c=J_(i)||q_(String.fromCharCode(i)),l=J_(s)||q_(String.fromCharCode(s)),u=K_(i),d=K_(s),f=!d&&(!l||u||c),p=!u&&(!c||d||l);return{can_open:f&&(t||!p||c),can_close:p&&(t||!f||l),length:o}},ty.prototype.Token=rv;function ny(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function ry(e,t){let n=e.pos;for(;n<e.posMax&&!ny(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}var iy=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function ay(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;let n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;let i=e.pending.match(iy);if(!i)return!1;let a=i[1],o=e.md.linkify.matchAtStart(e.src.slice(n-a.length));if(!o)return!1;let s=o.url;if(s.length<=a.length)return!1;let c=s.length;for(;c>0&&s.charCodeAt(c-1)===42;)c--;c!==s.length&&(s=s.slice(0,c));let l=e.md.normalizeLink(s);if(!e.md.validateLink(l))return!1;if(!t){e.pending=e.pending.slice(0,-a.length);let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,l]],t.markup=`linkify`,t.info=`auto`;let n=e.push(`text`,``,0);n.content=e.md.normalizeLinkText(s);let r=e.push(`link_close`,`a`,-1);r.markup=`linkify`,r.info=`auto`}return e.pos+=s.length-a.length,!0}function oy(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;let r=e.pending.length-1,i=e.posMax;if(!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){let t=r-1;for(;t>=1&&e.pending.charCodeAt(t-1)===32;)t--;e.pending=e.pending.slice(0,t),e.push(`hardbreak`,`br`,0)}else e.pending=e.pending.slice(0,-1),e.push(`softbreak`,`br`,0);else e.push(`softbreak`,`br`,0);for(n++;n<i&&X(e.src.charCodeAt(n));)n++;return e.pos=n,!0}var sy=[];for(let e=0;e<256;e++)sy.push(0);`\\!"#$%&'()*+,./:;<=>?@[]^_\`{|}~-`.split(``).forEach(function(e){sy[e.charCodeAt(0)]=1});function cy(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let i=e.src.charCodeAt(n);if(i===10){for(t||e.push(`hardbreak`,`br`,0),n++;n<r&&(i=e.src.charCodeAt(n),X(i));)n++;return e.pos=n,!0}let a=e.src[n];if(i>=55296&&i<=56319&&n+1<r){let t=e.src.charCodeAt(n+1);t>=56320&&t<=57343&&(a+=e.src[n+1],n++)}let o=`\\`+a;if(!t){let t=e.push(`text_special`,``,0);i<256&&sy[i]!==0?t.content=a:t.content=o,t.markup=o,t.info=`escape`}return e.pos=n+1,!0}function ly(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;let r=n;n++;let i=e.posMax;for(;n<i&&e.src.charCodeAt(n)===96;)n++;let a=e.src.slice(r,n),o=a.length;if(e.backticksScanned&&(e.backticks[o]||0)<=r)return t||(e.pending+=a),e.pos+=o,!0;let s=n,c;for(;(c=e.src.indexOf("`",s))!==-1;){for(s=c+1;s<i&&e.src.charCodeAt(s)===96;)s++;let r=s-c;if(r===o){if(!t){let t=e.push(`code_inline`,`code`,0);t.markup=a,t.content=e.src.slice(n,c).replace(/\n/g,` `).replace(/^ (.+) $/,`$1`)}return e.pos=s,!0}e.backticks[r]=c}return e.backticksScanned=!0,t||(e.pending+=a),e.pos+=o,!0}function uy(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;let i=e.scanDelims(e.pos,!0),a=i.length,o=String.fromCharCode(r);if(a<2)return!1;let s;a%2&&(s=e.push(`text`,``,0),s.content=o,a--);for(let t=0;t<a;t+=2)s=e.push(`text`,``,0),s.content=o+o,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}function dy(e,t){let n,r=[],i=t.length;for(let a=0;a<i;a++){let i=t[a];if(i.marker!==126||i.end===-1)continue;let o=t[i.end];n=e.tokens[i.token],n.type=`s_open`,n.tag=`s`,n.nesting=1,n.markup=`~~`,n.content=``,n=e.tokens[o.token],n.type=`s_close`,n.tag=`s`,n.nesting=-1,n.markup=`~~`,n.content=``,e.tokens[o.token-1].type===`text`&&e.tokens[o.token-1].content===`~`&&r.push(o.token-1)}for(;r.length;){let t=r.pop(),i=t+1;for(;i<e.tokens.length&&e.tokens[i].type===`s_close`;)i++;i--,t!==i&&(n=e.tokens[i],e.tokens[i]=e.tokens[t],e.tokens[t]=n)}}function fy(e){let t=e.tokens_meta,n=e.tokens_meta.length;dy(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&dy(e,t[r].delimiters)}var py={tokenize:uy,postProcess:fy};function my(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;let i=e.scanDelims(e.pos,r===42);for(let t=0;t<i.length;t++){let t=e.push(`text`,``,0);t.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return e.pos+=i.length,!0}function hy(e,t){let n=t.length;for(let r=n-1;r>=0;r--){let n=t[r];if(n.marker!==95&&n.marker!==42||n.end===-1)continue;let i=t[n.end],a=r>0&&t[r-1].end===n.end+1&&t[r-1].marker===n.marker&&t[r-1].token===n.token-1&&t[n.end+1].token===i.token+1,o=String.fromCharCode(n.marker),s=e.tokens[n.token];s.type=a?`strong_open`:`em_open`,s.tag=a?`strong`:`em`,s.nesting=1,s.markup=a?o+o:o,s.content=``;let c=e.tokens[i.token];c.type=a?`strong_close`:`em_close`,c.tag=a?`strong`:`em`,c.nesting=-1,c.markup=a?o+o:o,c.content=``,a&&(e.tokens[t[r-1].token].content=``,e.tokens[t[n.end+1].token].content=``,r--)}}function gy(e){let t=e.tokens_meta,n=e.tokens_meta.length;hy(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&hy(e,t[r].delimiters)}var _y={tokenize:my,postProcess:gy};function vy(e,t){let n,r,i,a,o=``,s=``,c=e.pos,l=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;let u=e.pos,d=e.posMax,f=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let m=p+1;if(m<d&&e.src.charCodeAt(m)===40){for(l=!1,m++;m<d&&(n=e.src.charCodeAt(m),!(!X(n)&&n!==10));m++);if(m>=d)return!1;if(c=m,i=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),i.ok){for(o=e.md.normalizeLink(i.str),e.md.validateLink(o)?m=i.pos:o=``,c=m;m<d&&(n=e.src.charCodeAt(m),!(!X(n)&&n!==10));m++);if(i=e.md.helpers.parseLinkTitle(e.src,m,e.posMax),m<d&&c!==m&&i.ok)for(s=i.str,m=i.pos;m<d&&(n=e.src.charCodeAt(m),!(!X(n)&&n!==10));m++);}(m>=d||e.src.charCodeAt(m)!==41)&&(l=!0),m++}if(l){if(e.env.references===void 0)return!1;if(m<d&&e.src.charCodeAt(m)===91?(c=m+1,m=e.md.helpers.parseLinkLabel(e,m),m>=0?r=e.src.slice(c,m++):m=p+1):m=p+1,r||=e.src.slice(f,p),a=e.env.references[Y_(r)],!a)return e.pos=u,!1;o=a.href,s=a.title}if(!t){e.pos=f,e.posMax=p;let t=e.push(`link_open`,`a`,1),n=[[`href`,o]];t.attrs=n,s&&n.push([`title`,s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push(`link_close`,`a`,-1)}return e.pos=m,e.posMax=d,!0}function yy(e,t){let n,r,i,a,o,s,c,l,u=``,d=e.pos,f=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;let p=e.pos+2,m=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(m<0)return!1;if(a=m+1,a<f&&e.src.charCodeAt(a)===40){for(a++;a<f&&(n=e.src.charCodeAt(a),!(!X(n)&&n!==10));a++);if(a>=f)return!1;for(l=a,s=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),s.ok&&(u=e.md.normalizeLink(s.str),e.md.validateLink(u)?a=s.pos:u=``),l=a;a<f&&(n=e.src.charCodeAt(a),!(!X(n)&&n!==10));a++);if(s=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<f&&l!==a&&s.ok)for(c=s.str,a=s.pos;a<f&&(n=e.src.charCodeAt(a),!(!X(n)&&n!==10));a++);else c=``;if(a>=f||e.src.charCodeAt(a)!==41)return e.pos=d,!1;a++}else{if(e.env.references===void 0)return!1;if(a<f&&e.src.charCodeAt(a)===91?(l=a+1,a=e.md.helpers.parseLinkLabel(e,a),a>=0?i=e.src.slice(l,a++):a=m+1):a=m+1,i||=e.src.slice(p,m),o=e.env.references[Y_(i)],!o)return e.pos=d,!1;u=o.href,c=o.title}if(!t){r=e.src.slice(p,m);let t=[];e.md.inline.parse(r,e.md,e.env,t);let n=e.push(`image`,`img`,0),i=[[`src`,u],[`alt`,``]];n.attrs=i,n.children=t,n.content=r,c&&i.push([`title`,c])}return e.pos=a,e.posMax=f,!0}var by=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,xy=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function Sy(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;let r=e.pos,i=e.posMax;for(;;){if(++n>=i)return!1;let t=e.src.charCodeAt(n);if(t===60)return!1;if(t===62)break}let a=e.src.slice(r+1,n);if(xy.test(a)){let n=e.md.normalizeLink(a);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}if(by.test(a)){let n=e.md.normalizeLink(`mailto:`+a);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}return!1}function Cy(e){return/^<a[>\s]/i.test(e)}function wy(e){return/^<\/a\s*>/i.test(e)}function Ty(e){let t=e|32;return t>=97&&t<=122}function Ey(e,t){if(!e.md.options.html)return!1;let n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;let i=e.src.charCodeAt(r+1);if(i!==33&&i!==63&&i!==47&&!Ty(i))return!1;let a=e.src.slice(r).match(Kv);if(!a)return!1;if(!t){let t=e.push(`html_inline`,``,0);t.content=a[0],Cy(t.content)&&e.linkLevel++,wy(t.content)&&e.linkLevel--}return e.pos+=a[0].length,!0}var Dy=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Oy=/^&([a-z][a-z0-9]{1,31});/i;function ky(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){let r=e.src.slice(n).match(Dy);if(r){if(!t){let t=r[1][0].toLowerCase()===`x`?parseInt(r[1].slice(1),16):parseInt(r[1],10),n=e.push(`text_special`,``,0);n.content=j_(t)?M_(t):M_(65533),n.markup=r[0],n.info=`entity`}return e.pos+=r[0].length,!0}}else{let r=e.src.slice(n).match(Oy);if(r){let n=C_(r[0]);if(n!==r[0]){if(!t){let t=e.push(`text_special`,``,0);t.content=n,t.markup=r[0],t.info=`entity`}return e.pos+=r[0].length,!0}}}return!1}function Ay(e){let t={},n=e.length;if(!n)return;let r=0,i=-2,a=[];for(let o=0;o<n;o++){let n=e[o];if(a.push(0),(e[r].marker!==n.marker||i!==n.token-1)&&(r=o),i=n.token,n.length=n.length||0,!n.close)continue;t.hasOwnProperty(n.marker)||(t[n.marker]=[-1,-1,-1,-1,-1,-1]);let s=t[n.marker][(n.open?3:0)+n.length%3],c=r-a[r]-1,l=c;for(;c>s;c-=a[c]+1){let t=e[c];if(t.marker===n.marker&&t.open&&t.end<0){let r=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3!=0||n.length%3!=0)&&(r=!0),!r){let r=c>0&&!e[c-1].open?a[c-1]+1:0;a[o]=o-c+r,a[c]=r,n.open=!1,t.end=o,t.close=!1,l=-1,i=-2;break}}}l!==-1&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=l)}}function jy(e){let t=e.tokens_meta,n=e.tokens_meta.length;Ay(e.delimiters);for(let e=0;e<n;e++)t[e]&&t[e].delimiters&&Ay(t[e].delimiters)}function My(e){let t,n,r=0,i=e.tokens,a=e.tokens.length;for(t=n=0;t<a;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,i[t].type===`text`&&t+1<a&&i[t+1].type===`text`?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}var Ny=[[`text`,ry],[`linkify`,ay],[`newline`,oy],[`escape`,cy],[`backticks`,ly],[`strikethrough`,py.tokenize],[`emphasis`,_y.tokenize],[`link`,vy],[`image`,yy],[`autolink`,Sy],[`html_inline`,Ey],[`entity`,ky]],Py=[[`balance_pairs`,jy],[`strikethrough`,py.postProcess],[`emphasis`,_y.postProcess],[`fragments_join`,My]];function Fy(){this.ruler=new Z;for(let e=0;e<Ny.length;e++)this.ruler.push(Ny[e][0],Ny[e][1]);this.ruler2=new Z;for(let e=0;e<Py.length;e++)this.ruler2.push(Py[e][0],Py[e][1])}Fy.prototype.skipToken=function(e){let t=e.pos,n=this.ruler.getRules(``),r=n.length,i=e.md.options.maxNesting,a=e.cache;if(a[t]!==void 0){e.pos=a[t];return}let o=!1;if(e.level<i){for(let i=0;i<r;i++)if(e.level++,o=n[i](e,!0),e.level--,o){if(t>=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}else e.pos=e.posMax;o||e.pos++,a[t]=e.pos},Fy.prototype.tokenize=function(e){let t=this.ruler.getRules(``),n=t.length,r=e.posMax,i=e.md.options.maxNesting;for(;e.pos<r;){let a=e.pos,o=!1;if(e.level<i){for(let r=0;r<n;r++)if(o=t[r](e,!1),o){if(a>=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}if(o){if(e.pos>=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},Fy.prototype.parse=function(e,t,n,r){let i=new this.State(e,t,n,r);this.tokenize(i);let a=this.ruler2.getRules(``),o=a.length;for(let e=0;e<o;e++)a[e](i)},Fy.prototype.State=ty;function Iy(e){let t={};e||={},t.src_Any=e_.source,t.src_Cc=t_.source,t.src_Z=a_.source,t.src_P=r_.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join(`|`),t.src_ZCc=[t.src_Z,t.src_Cc].join(`|`);let n=`[><|]`;return t.src_pseudo_letter=`(?:(?!`+n+`|`+t.src_ZPCc+`)`+t.src_Any+`)`,t.src_ip4=`(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)`,t.src_auth=`(?:(?:(?!`+t.src_ZCc+`|[@/\\[\\]()]).)+@)?`,t.src_port=`(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?`,t.src_host_terminator=`(?=$|`+n+`|`+t.src_ZPCc+`)(?!`+(e[`---`]?`-(?!--)|`:`-|`)+`_|:\\d|\\.-|\\.(?!$|`+t.src_ZPCc+`))`,t.src_path=`(?:[/?#](?:(?!`+t.src_ZCc+`|[><|]|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+`|\\]).)*\\]|\\((?:(?!`+t.src_ZCc+`|[)]).)*\\)|\\{(?:(?!`+t.src_ZCc+`|[}]).)*\\}|\\"(?:(?!`+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+`|[']).)+\\'|\\'(?=`+t.src_pseudo_letter+`|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!`+t.src_ZCc+`|[.]|$)|`+(e[`---`]?`\\-(?!--(?:[^-]|$))(?:-*)|`:`\\-+|`)+`,(?!`+t.src_ZCc+`|$)|;(?!`+t.src_ZCc+`|$)|\\!+(?!`+t.src_ZCc+`|[!]|$)|\\?(?!`+t.src_ZCc+`|[?]|$))+|\\/)?`,t.src_email_name=`[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*`,t.src_xn=`xn--[a-z0-9\\-]{1,59}`,t.src_domain_root=`(?:`+t.src_xn+`|`+t.src_pseudo_letter+`{1,63})`,t.src_domain=`(?:`+t.src_xn+`|(?:`+t.src_pseudo_letter+`)|(?:`+t.src_pseudo_letter+`(?:-|`+t.src_pseudo_letter+`){0,61}`+t.src_pseudo_letter+`))`,t.src_host=`(?:(?:(?:(?:`+t.src_domain+`)\\.)*`+t.src_domain+`))`,t.tpl_host_fuzzy=`(?:`+t.src_ip4+`|(?:(?:(?:`+t.src_domain+`)\\.)+(?:%TLDS%)))`,t.tpl_host_no_ip_fuzzy=`(?:(?:(?:`+t.src_domain+`)\\.)+(?:%TLDS%))`,t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test=`localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:`+t.src_ZPCc+`|>|$))`,t.tpl_email_fuzzy=`(^|`+n+`|"|\\(|`+t.src_ZCc+`)(`+t.src_email_name+`@`+t.tpl_host_fuzzy_strict+`)`,t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+`)`,t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+`)`,t}function Ly(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function Ry(e){return Object.prototype.toString.call(e)}function zy(e){return Ry(e)===`[object String]`}function By(e){return Ry(e)===`[object Object]`}function Vy(e){return Ry(e)===`[object RegExp]`}function Hy(e){return Ry(e)===`[object Function]`}function Uy(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,`\\$&`)}var Wy={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Gy(e){return Object.keys(e||{}).reduce(function(e,t){return e||Wy.hasOwnProperty(t)},!1)}var Ky={"http:":{validate:function(e,t,n){let r=e.slice(t);return n.re.http||(n.re.http=RegExp(`^\\/\\/`+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,`i`)),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":`http:`,"ftp:":`http:`,"//":{validate:function(e,t,n){let r=e.slice(t);return n.re.no_http||(n.re.no_http=RegExp(`^`+n.re.src_auth+`(?:localhost|(?:(?:`+n.re.src_domain+`)\\.)+`+n.re.src_domain_root+`)`+n.re.src_port+n.re.src_host_terminator+n.re.src_path,`i`)),n.re.no_http.test(r)?t>=3&&e[t-3]===`:`||t>=3&&e[t-3]===`/`?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){let r=e.slice(t);return n.re.mailto||(n.re.mailto=RegExp(`^`+n.re.src_email_name+`@`+n.re.src_host_strict,`i`)),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},qy=`a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]`,Jy=`biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф`.split(`|`);function Yy(e){e.__index__=-1,e.__text_cache__=``}function Xy(e){return function(t,n){let r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function Zy(){return function(e,t){t.normalize(e)}}function Qy(e){let t=e.re=Iy(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(qy),n.push(t.src_xn),t.src_tlds=n.join(`|`);function r(e){return e.replace(`%TLDS%`,t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),`i`),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),`i`),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),`i`),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),`i`);let i=[];e.__compiled__={};function a(e,t){throw Error(`(LinkifyIt) Invalid schema "`+e+`": `+t)}Object.keys(e.__schemas__).forEach(function(t){let n=e.__schemas__[t];if(n===null)return;let r={validate:null,link:null};if(e.__compiled__[t]=r,By(n)){Vy(n.validate)?r.validate=Xy(n.validate):Hy(n.validate)?r.validate=n.validate:a(t,n),Hy(n.normalize)?r.normalize=n.normalize:n.normalize?a(t,n):r.normalize=Zy();return}if(zy(n)){i.push(t);return}a(t,n)}),i.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[``]={validate:null,normalize:Zy()};let o=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(Uy).join(`|`);e.re.schema_test=RegExp(`(^|(?!_)(?:[><|]|`+t.src_ZPCc+`))(`+o+`)`,`i`),e.re.schema_search=RegExp(`(^|(?!_)(?:[><|]|`+t.src_ZPCc+`))(`+o+`)`,`ig`),e.re.schema_at_start=RegExp(`^`+e.re.schema_search.source,`i`),e.re.pretest=RegExp(`(`+e.re.schema_test.source+`)|(`+e.re.host_fuzzy_test.source+`)|@`,`i`),Yy(e)}function $y(e,t){let n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function eb(e,t){let n=new $y(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function Q(e,t){if(!(this instanceof Q))return new Q(e,t);t||Gy(e)&&(t=e,e={}),this.__opts__=Ly({},Wy,t),this.__index__=-1,this.__last_index__=-1,this.__schema__=``,this.__text_cache__=``,this.__schemas__=Ly({},Ky,e),this.__compiled__={},this.__tlds__=Jy,this.__tlds_replaced__=!1,this.re={},Qy(this)}Q.prototype.add=function(e,t){return this.__schemas__[e]=t,Qy(this),this},Q.prototype.set=function(e){return this.__opts__=Ly(this.__opts__,e),this},Q.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let t,n,r,i,a,o,s,c,l;if(this.re.schema_test.test(e)){for(s=this.re.schema_search,s.lastIndex=0;(t=s.exec(e))!==null;)if(i=this.testSchemaAt(e,t[2],s.lastIndex),i){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__[`http:`]&&(c=e.search(this.re.host_fuzzy_test),c>=0&&(this.__index__<0||c<this.__index__)&&(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(a=n.index+n[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__=``,this.__index__=a,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__[`mailto:`]&&(l=e.indexOf(`@`),l>=0&&(r=e.match(this.re.email_fuzzy))!==null&&(a=r.index+r[1].length,o=r.index+r[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&o>this.__last_index__)&&(this.__schema__=`mailto:`,this.__index__=a,this.__last_index__=o))),this.__index__>=0},Q.prototype.pretest=function(e){return this.re.pretest.test(e)},Q.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},Q.prototype.match=function(e){let t=[],n=0;this.__index__>=0&&this.__text_cache__===e&&(t.push(eb(this,n)),n=this.__last_index__);let r=n?e.slice(n):e;for(;this.test(r);)t.push(eb(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return t.length?t:null},Q.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;let t=this.re.schema_at_start.exec(e);if(!t)return null;let n=this.testSchemaAt(e,t[2],t[0].length);return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,eb(this,0)):null},Q.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),Qy(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Qy(this),this)},Q.prototype.normalize=function(e){e.schema||(e.url=`http://`+e.url),e.schema===`mailto:`&&!/^mailto:/i.test(e.url)&&(e.url=`mailto:`+e.url)},Q.prototype.onCompile=function(){};var tb=2147483647,nb=36,rb=1,ib=26,ab=38,ob=700,sb=72,cb=128,lb=`-`,ub=/^xn--/,db=/[^\0-\x7F]/,fb=/[\x2E\u3002\uFF0E\uFF61]/g,pb={overflow:`Overflow: input needs wider integers to process`,"not-basic":`Illegal input >= 0x80 (not a basic code point)`,"invalid-input":`Invalid input`},mb=nb-rb,hb=Math.floor,gb=String.fromCharCode;function _b(e){throw RangeError(pb[e])}function vb(e,t){let n=[],r=e.length;for(;r--;)n[r]=t(e[r]);return n}function yb(e,t){let n=e.split(`@`),r=``;n.length>1&&(r=n[0]+`@`,e=n[1]),e=e.replace(fb,`.`);let i=vb(e.split(`.`),t).join(`.`);return r+i}function bb(e){let t=[],n=0,r=e.length;for(;n<r;){let i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){let r=e.charCodeAt(n++);(r&64512)==56320?t.push(((i&1023)<<10)+(r&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}var xb=e=>String.fromCodePoint(...e),Sb=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:nb},Cb=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},wb=function(e,t,n){let r=0;for(e=n?hb(e/ob):e>>1,e+=hb(e/t);e>mb*ib>>1;r+=nb)e=hb(e/mb);return hb(r+(mb+1)*e/(e+ab))},Tb=function(e){let t=[],n=e.length,r=0,i=cb,a=sb,o=e.lastIndexOf(lb);o<0&&(o=0);for(let n=0;n<o;++n)e.charCodeAt(n)>=128&&_b(`not-basic`),t.push(e.charCodeAt(n));for(let s=o>0?o+1:0;s<n;){let o=r;for(let t=1,i=nb;;i+=nb){s>=n&&_b(`invalid-input`);let o=Sb(e.charCodeAt(s++));o>=nb&&_b(`invalid-input`),o>hb((tb-r)/t)&&_b(`overflow`),r+=o*t;let c=i<=a?rb:i>=a+ib?ib:i-a;if(o<c)break;let l=nb-c;t>hb(tb/l)&&_b(`overflow`),t*=l}let c=t.length+1;a=wb(r-o,c,o==0),hb(r/c)>tb-i&&_b(`overflow`),i+=hb(r/c),r%=c,t.splice(r++,0,i)}return String.fromCodePoint(...t)},Eb=function(e){let t=[];e=bb(e);let n=e.length,r=cb,i=0,a=sb;for(let n of e)n<128&&t.push(gb(n));let o=t.length,s=o;for(o&&t.push(lb);s<n;){let n=tb;for(let t of e)t>=r&&t<n&&(n=t);let c=s+1;n-r>hb((tb-i)/c)&&_b(`overflow`),i+=(n-r)*c,r=n;for(let n of e)if(n<r&&++i>tb&&_b(`overflow`),n===r){let e=i;for(let n=nb;;n+=nb){let r=n<=a?rb:n>=a+ib?ib:n-a;if(e<r)break;let i=e-r,o=nb-r;t.push(gb(Cb(r+i%o,0))),e=hb(i/o)}t.push(gb(Cb(e,0))),a=wb(i,c,s===o),i=0,++s}++i,++r}return t.join(``)},Db={version:`2.3.1`,ucs2:{decode:bb,encode:xb},decode:Tb,encode:Eb,toASCII:function(e){return yb(e,function(e){return db.test(e)?`xn--`+Eb(e):e})},toUnicode:function(e){return yb(e,function(e){return ub.test(e)?Tb(e.slice(4).toLowerCase()):e})}},Ob={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:20},components:{core:{rules:[`normalize`,`block`,`inline`,`text_join`]},block:{rules:[`paragraph`]},inline:{rules:[`text`],rules2:[`balance_pairs`,`fragments_join`]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:20},components:{core:{rules:[`normalize`,`block`,`inline`,`text_join`]},block:{rules:[`blockquote`,`code`,`fence`,`heading`,`hr`,`html_block`,`lheading`,`list`,`reference`,`paragraph`]},inline:{rules:[`autolink`,`backticks`,`emphasis`,`entity`,`escape`,`html_inline`,`image`,`link`,`newline`,`text`],rules2:[`balance_pairs`,`emphasis`,`fragments_join`]}}}},kb=/^(vbscript|javascript|file|data):/,Ab=/^data:image\/(gif|png|jpeg|webp);/;function jb(e){let t=e.trim().toLowerCase();return kb.test(t)?Ab.test(t):!0}var Mb=[`http:`,`https:`,`mailto:`];function Nb(e){let t=Qg(e,!0);if(t.hostname&&(!t.protocol||Mb.indexOf(t.protocol)>=0))try{t.hostname=Db.toASCII(t.hostname)}catch{}return zg(Bg(t))}function Pb(e){let t=Qg(e,!0);if(t.hostname&&(!t.protocol||Mb.indexOf(t.protocol)>=0))try{t.hostname=Db.toUnicode(t.hostname)}catch{}return Ig(Bg(t),Ig.defaultChars+`%`)}function $(e,t){if(!(this instanceof $))return new $(e,t);t||E_(e)||(t=e||{},e=`default`),this.inline=new Fy,this.block=new ey,this.core=new kv,this.renderer=new nv,this.linkify=new Q,this.validateLink=jb,this.normalizeLink=Nb,this.normalizeLinkText=Pb,this.utils=w_,this.helpers=k_({},ev),this.options={},this.configure(e),t&&this.set(t)}$.prototype.set=function(e){return k_(this.options,e),this},$.prototype.configure=function(e){let t=this;if(E_(e)){let t=e;if(e=Ob[t],!e)throw Error('Wrong `markdown-it` preset "'+t+`", check name`)}if(!e)throw Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this},$.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),[`core`,`block`,`inline`].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));let r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw Error(`MarkdownIt. Failed to enable unknown rule(s): `+r);return this},$.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),[`core`,`block`,`inline`].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));let r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw Error(`MarkdownIt. Failed to disable unknown rule(s): `+r);return this},$.prototype.use=function(e){let t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},$.prototype.parse=function(e,t){if(typeof e!=`string`)throw Error(`Input data should be a String`);let n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},$.prototype.render=function(e,t){return t||={},this.renderer.render(this.parse(e,t),this.options,t)},$.prototype.parseInline=function(e,t){let n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},$.prototype.renderInline=function(e,t){return t||={},this.renderer.render(this.parseInline(e,t),this.options,t)};var Fb=`/dark.css`,Ib=`/light.css`,Lb=[`srcdoc`],Rb=(0,n.defineComponent)({__name:`index`,props:{markdown:{},plugins:{default:[]},config:{default:{}},env:{}},setup(e){let t=new URL(Ib,{}.url),r=new URL(Fb,{}.url),i=e,a=(0,n.computed)(()=>{let e=new $(i.config);return e=i.plugins.reduce((e,t)=>e.use(...t),e),e}),o=(0,c.useConfig)(),s=`markdown-router-${Math.random()}`,l=_a(`--p-color`),u=(0,n.computed)(()=>`
|
|
24
|
+
<!doctype html>
|
|
25
|
+
<html lang="zh-cn" class="static size-full">
|
|
26
|
+
<head>
|
|
27
|
+
<meta charset="UTF-8" />
|
|
28
|
+
<title>Markdown</title>
|
|
29
|
+
<meta
|
|
30
|
+
http-equiv="Content-Security-Policy"
|
|
31
|
+
content="default-src * chrome-extension: blob: tauri: local: ipc: ws: wss: 'unsafe-inline' 'unsafe-eval' data: chrome-extension: blob: tauri:; script-src * chrome-extension: blob: tauri: local: ipc: ws: wss: 'unsafe-inline' 'unsafe-eval'; connect-src * chrome-extension: blob: tauri: local: ipc: ws: wss: 'unsafe-inline'; img-src * chrome-extension: blob: tauri: local: ipc: ws: wss: data: chrome-extension: blob: tauri:; frame-src * chrome-extension: blob: tauri: local: ipc: ws: wss:; style-src * chrome-extension: blob: tauri: local: ipc: ws: wss: 'unsafe-inline';"
|
|
32
|
+
/>
|
|
33
|
+
<meta
|
|
34
|
+
name="viewport"
|
|
35
|
+
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
|
|
36
|
+
/>
|
|
37
|
+
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
38
|
+
<meta name="mobile-web-app-capable" content="yes" />
|
|
39
|
+
|
|
40
|
+
<link rel="stylesheet" href="${o.isDark?r:t}" />
|
|
41
|
+
</head>
|
|
42
|
+
<body>
|
|
43
|
+
<style>
|
|
44
|
+
:root {
|
|
45
|
+
--p-color: ${l.value};
|
|
46
|
+
}
|
|
47
|
+
</style>
|
|
48
|
+
<div id="write">
|
|
49
|
+
${a.value.render(i.markdown,i.env)}
|
|
50
|
+
</div>
|
|
51
|
+
<script>
|
|
52
|
+
document.addEventListener('click', function(e){
|
|
53
|
+
const el = e.target.closest('a');
|
|
54
|
+
if(!el) return;
|
|
55
|
+
const href = el.dataset.href || el.getAttribute('href');
|
|
56
|
+
if(!href) return;
|
|
57
|
+
e.preventDefault();
|
|
58
|
+
// 发送请求给父窗口,请求导航
|
|
59
|
+
console.debug('${s}', href)
|
|
60
|
+
window.parent.postMessage({ type:'${s}', href });
|
|
61
|
+
});
|
|
62
|
+
<\/script>
|
|
63
|
+
</body>
|
|
64
|
+
</html>
|
|
65
|
+
`),d=e=>{console.debug(s);let t=e.data;t.type==s&&Ng(t.href)};return window.addEventListener(`message`,d),(0,n.onUnmounted)(()=>{window.removeEventListener(`message`,d)}),(e,t)=>((0,n.openBlock)(),(0,n.createElementBlock)(`iframe`,{srcdoc:u.value},null,8,Lb))}}),zb=(0,n.defineComponent)({__name:`DcFormSwitch`,props:(0,n.mergeModels)({config:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=(0,n.useModel)(e,`modelValue`);return(r,a)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(i.NSwitch),{defaultValue:e.config.defaultValue,value:t.value,"onUpdate:value":a[0]||=e=>t.value=e},(0,n.createSlots)({_:2},[e.config.open?{name:`checked`,fn:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.config.open),1)]),key:`0`}:void 0,e.config.close?{name:`unchecked`,fn:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.config.close),1)]),key:`1`}:void 0]),1032,[`defaultValue`,`value`]))}}),Bb=(0,n.defineComponent)({__name:`DcFormString`,props:(0,n.mergeModels)({config:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=(0,n.useModel)(e,`modelValue`);return(r,a)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(i.NInput),{clearable:``,allowInput:t=>e.config.patten?e.config.patten.test(t)||(0,n.unref)(Pi)(t):!0,defaultValue:e.config.defaultValue,placeholder:e.config.placeholder,value:t.value,"onUpdate:value":a[0]||=e=>t.value=e},null,8,[`allowInput`,`defaultValue`,`placeholder`,`value`]))}}),Vb=(0,n.defineComponent)({__name:`DcFormNumber`,props:(0,n.mergeModels)({config:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=(0,n.useModel)(e,`modelValue`);return(r,a)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(i.NInputNumber),{precision:e.config.float?void 0:0,clearable:``,min:e.config.range?.[0],max:e.config.range?.[1],defaultValue:e.config.defaultValue,placeholder:e.config.placeholder,value:t.value,"onUpdate:value":a[0]||=e=>t.value=e},null,8,[`precision`,`min`,`max`,`defaultValue`,`placeholder`,`value`]))}}),Hb=(0,n.defineComponent)({__name:`DcFormRadio`,props:(0,n.mergeModels)({config:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=(0,n.useModel)(e,`modelValue`);return(r,a)=>e.config.comp===`radio`?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(i.NRadioGroup),{key:0,value:t.value,"onUpdate:value":a[0]||=e=>t.value=e,name:e.config.info,defaultValue:e.config.defaultValue},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(i.NSpace),null,{default:(0,n.withCtx)(()=>[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.config.selects,e=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(i.NRadio),{key:e.value,value:e.value},{default:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.label),1)]),_:2},1032,[`value`]))),128))]),_:1})]),_:1},8,[`value`,`name`,`defaultValue`])):((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(i.NSelect),{key:1,virtualScroll:``,options:e.config.selects,defaultValue:e.config.defaultValue,value:t.value,"onUpdate:value":a[1]||=e=>t.value=e,placeholder:e.config.placeholder,filterable:``},null,8,[`options`,`defaultValue`,`value`,`placeholder`]))}}),Ub=(0,n.defineComponent)({__name:`DcFormCheckbox`,props:(0,n.mergeModels)({config:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=(0,n.useModel)(e,`modelValue`);return(r,a)=>e.config.comp===`checkbox`?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(i.NCheckboxGroup),{key:0,value:t.value,"onUpdate:value":a[0]||=e=>t.value=e,name:e.config.info,defaultValue:e.config.defaultValue},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(i.NSpace),null,{default:(0,n.withCtx)(()=>[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.config.selects,e=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(i.NCheckbox),{key:e.value,value:e.value},{default:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.label),1)]),_:2},1032,[`value`]))),128))]),_:1})]),_:1},8,[`value`,`name`,`defaultValue`])):((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(i.NSelect),{key:1,virtualScroll:``,multiple:``,options:e.config.selects,defaultValue:e.config.defaultValue,value:t.value,"onUpdate:value":a[1]||=e=>t.value=e,placeholder:e.config.placeholder,filterable:``},null,8,[`options`,`defaultValue`,`value`,`placeholder`]))}}),Wb=(0,n.defineComponent)({__name:`DcFormDate`,props:(0,n.mergeModels)({config:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=(0,n.useModel)(e,`modelValue`);return(r,a)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(i.NDatePicker),{"input-readonly":``,format:e.config.format,type:e.config.time?`date`:`datetime`,"formatted-value":t.value,"onUpdate:formattedValue":a[0]||=e=>t.value=e},null,8,[`format`,`type`,`formatted-value`]))}}),Gb=(0,n.defineComponent)({__name:`DcFormDateRange`,props:(0,n.mergeModels)({config:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=(0,n.useModel)(e,`modelValue`);return(r,a)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(i.NDatePicker),{"input-readonly":``,format:e.config.format,type:e.config.time?`daterange`:`datetimerange`,"formatted-value":t.value,"onUpdate:formattedValue":a[0]||=e=>t.value=e},null,8,[`format`,`type`,`formatted-value`]))}}),Kb={class:`w-full items-center`},qb=(0,n.defineComponent)({__name:`DcFormPairs`,props:(0,n.mergeModels)({config:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,r=()=>(t.config.defaultValue??[{key:``,value:``}])[0],a=(0,n.useModel)(e,`modelValue`);return(0,n.watch)(a,e=>{if(t.config.noMultiple&&e.length!=1){if(e.length>0)return e.push(r());e.pop()}}),(e,t)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(i.NDynamicInput),{value:a.value,"onUpdate:value":t[0]||=e=>a.value=e,"on-create":()=>r(),"show-sort-button":``},{default:(0,n.withCtx)(({value:e})=>[(0,n.createElementVNode)(`div`,Kb,[(0,n.createVNode)((0,n.unref)(i.NInput),{value:e.key,"onUpdate:value":t=>e.key=t,class:`w-2/3!`,type:`text`,placeholder:`插件ID`},null,8,[`value`,`onUpdate:value`]),(0,n.createVNode)((0,n.unref)(i.NInput),{value:e.value,"onUpdate:value":t=>e.value=t,type:`text`,class:`my-2`,placeholder:`下载语句`},null,8,[`value`,`onUpdate:value`])])]),_:1},8,[`value`,`on-create`]))}}),Jb=(0,n.defineComponent)({__name:`DcFormItem`,props:(0,n.mergeModels)({config:{},path:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=(0,n.useModel)(e,`modelValue`);return(r,a)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(i.NFormItem),{label:e.config.info,path:e.path,required:e.config.required??!0},{default:(0,n.withCtx)(()=>[e.config.type==`switch`?((0,n.openBlock)(),(0,n.createBlock)(zb,{key:0,config:e.config,modelValue:t.value,"onUpdate:modelValue":a[0]||=e=>t.value=e},null,8,[`config`,`modelValue`])):e.config.type==`string`?((0,n.openBlock)(),(0,n.createBlock)(Bb,{key:1,config:e.config,modelValue:t.value,"onUpdate:modelValue":a[1]||=e=>t.value=e},null,8,[`config`,`modelValue`])):e.config.type==`number`?((0,n.openBlock)(),(0,n.createBlock)(Vb,{key:2,config:e.config,modelValue:t.value,"onUpdate:modelValue":a[2]||=e=>t.value=e},null,8,[`config`,`modelValue`])):e.config.type==`radio`?((0,n.openBlock)(),(0,n.createBlock)(Hb,{key:3,config:e.config,modelValue:t.value,"onUpdate:modelValue":a[3]||=e=>t.value=e},null,8,[`config`,`modelValue`])):e.config.type==`checkbox`?((0,n.openBlock)(),(0,n.createBlock)(Ub,{key:4,config:e.config,modelValue:t.value,"onUpdate:modelValue":a[4]||=e=>t.value=e},null,8,[`config`,`modelValue`])):e.config.type==`date`?((0,n.openBlock)(),(0,n.createBlock)(Wb,{key:5,config:e.config,modelValue:t.value,"onUpdate:modelValue":a[5]||=e=>t.value=e},null,8,[`config`,`modelValue`])):e.config.type==`dateRange`?((0,n.openBlock)(),(0,n.createBlock)(Gb,{key:6,config:e.config,modelValue:t.value,"onUpdate:modelValue":a[6]||=e=>t.value=e},null,8,[`config`,`modelValue`])):e.config.type==`pairs`?((0,n.openBlock)(),(0,n.createBlock)(qb,{key:7,config:e.config,modelValue:t.value,"onUpdate:modelValue":a[7]||=e=>t.value=e},null,8,[`config`,`modelValue`])):(0,n.createCommentVNode)(``,!0)]),_:1},8,[`label`,`path`,`required`]))}}),Yb=(0,n.defineComponent)({__name:`DcForm`,props:(0,n.mergeModels)({configs:{},overrideRow:{type:Boolean}},{modelValue:{default:{}},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=(0,n.useModel)(e,`modelValue`),r=(0,n.useSlots)();return(a,o)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(i.NForm),{model:t.value},{default:(0,n.withCtx)(()=>[(0,n.renderSlot)(a.$slots,`top`,{config:e.configs}),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(Object.entries(e.configs),([i,o])=>((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,null,[r.row&&((0,n.unref)(Se)(e.overrideRow)?e.overrideRow.includes(i):e.overrideRow)?(0,n.renderSlot)(a.$slots,`row`,{key:0,modelValue:t.value[i],setModelValue:e=>t.value[i]=e,path:i,config:o}):((0,n.openBlock)(),(0,n.createBlock)(Jb,{key:1,modelValue:t.value[i],"onUpdate:modelValue":e=>t.value[i]=e,path:i,config:o},null,8,[`modelValue`,`onUpdate:modelValue`,`path`,`config`]))],64))),256)),(0,n.renderSlot)(a.$slots,`bottom`,{config:e.configs})]),_:3},8,[`model`]))}}),Xb=t({}),Zb=t({Type:()=>Xb});const Qb=e=>{let t=(0,n.ref)({}),r=Promise.withResolvers();for(let n in e){if(!Object.hasOwn(e,n))continue;let r=e[n];switch(r.type){case`string`:t.value[n]=r.defaultValue??``;break;case`number`:t.value[n]=r.defaultValue??void 0;break;case`radio`:t.value[n]=r.defaultValue??void 0;break;case`checkbox`:t.value[n]=r.defaultValue??void 0;break;case`switch`:t.value[n]=r.defaultValue??!1;break;case`date`:t.value[n]=r.defaultValue??void 0;break}}return{comp:(0,n.createVNode)(Yb,{configs:e,modelValue:t.value,"onUpdate:modelValue":e=>t.value=e},{bottom:()=>(0,n.createVNode)(i.NButton,{type:`primary`,onClick:async()=>{try{r.resolve(t.value)}catch(e){window.$message.error(String(e))}}},{default:()=>[(0,n.createTextVNode)(`提交`)]})}),data:r.promise}},$b=e=>{let t=h,r=h,i=new Promise((e,n)=>{t=e,r=n}),a=(0,n.shallowRef)(!0),[o,s,c]=Ca(a),l=(0,n.watch)(o,e=>m.style.zIndex=e),u=window.$router.beforeEach(()=>s?f():!0),d=()=>(l(),c(),u(),m.destroy(),a.value=!1),f=()=>(r(),d(),!1),p=()=>{t(),d()},m=window.$dialog.create({positiveText:`确定`,negativeText:`取消`,...e,style:{...e.style,zIndex:o.value},async onClose(){if(await e.onClose?.()===!1)return!1;a.value=!1,f()},async onPositiveClick(t){if(await(e.onPositiveClick??h)(t)===!1)return!1;p()},async onNegativeClick(t){let n=await(e.onNegativeClick??h)(t);if(n)return n;f()},onEsc(){e.onEsc?.(),f()},onMaskClick(t){e.onMaskClick?.(t),f()},onAfterLeave(){e.onAfterLeave?.(),d()}});return i.ins=m,i};function ex(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!(0,n.isVNode)(e)}var tx=(0,a.useGlobalVar)((0,n.reactive)([]),`utils/message/allDownloadMessagesIsMinsize`);const nx=async(e,t)=>{let r=tx.length;tx[r]=!1;let a=(0,n.ref)(!1),o=(0,n.reactive)([]),s=(0,n.ref)(!1),c=(0,n.watch)(s,e=>{e?tx[r]=!0:tx[r]=!1},{immediate:!0}),u=(0,n.computed)(()=>tx.slice(0,r).filter(e=>e).length),d=window.$message.create(e,{render:e=>{let t;return(0,n.createVNode)(kh.div,{drag:`y`,dragConstraints:{top:0,right:0,bottom:0,left:0},dragTransition:{bounceStiffness:500,bounceDamping:15},variants:{minsize:{borderRadius:`100%`,width:`30px`,height:`30px`,paddingInline:`2px`,paddingBlock:`2px`,position:`fixed`,left:`${u.value*40+8}px`,top:`calc(var(--safe-area-inset-top) + 4px)`},maxsize:{borderRadius:`8px`,width:`90vw`,paddingInline:`8px`,paddingBlock:`12px`,height:`fit-content`}},onDragEnd:(e,{offset:t})=>t.y<-30&&(s.value=!0),animate:s.value?`minsize`:`maxsize`,class:`overflow-hidden bg-(--n-color)`,style:{boxShadow:`var(--n-box-shadow)`}},{default:()=>[(0,n.createVNode)(n.Transition,{name:`van-fade`},{default:()=>[s.value?(0,n.createVNode)(`div`,{class:`relative size-full`,onClick:()=>s.value=!1},[(0,n.createVNode)(l.Loading,{class:`absolute top-0 left-0 size-full`,color:`var(--p-color)`},null),(0,n.createVNode)(i.NIcon,{class:`absolute! top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2`,size:`18px`,color:`var(--p-color)`},{default:()=>[o.some(e=>e.state==`error`)?(0,n.createVNode)(l.Icon,{name:`cross`},null):(0,n.createVNode)(zh,null,null)]})]):(0,n.createVNode)(`div`,{class:`relative w-full`},[(0,n.createVNode)(`div`,{class:`flex items-center gap-2 text-base font-semibold`},[(0,n.createVNode)(`span`,null,[e.content]),a.value&&(0,n.createVNode)(i.NIconWrapper,{size:18,color:`var(--nui-success-color)`,borderRadius:114514},{default:()=>[(0,n.createVNode)(i.NIcon,{size:12},{default:()=>[(0,n.createVNode)(Rh,null,null)]})]})]),(0,n.createVNode)(n.TransitionGroup,{name:`list`,tag:`ul`,class:`ml-1! h-fit w-full!`},ex(t=o.map((e,t)=>{let r;return(0,n.createVNode)(`div`,{class:`van-hairline--bottom w-full py-1`,key:t},[(0,n.createVNode)(`span`,{class:`text-sm font-semibold`},[e.title]),(0,n.createVNode)(`div`,{class:`relative h-fit w-full`},[(0,n.createVNode)(i.NProgress,{percentage:Di(e.progress)?e.progress:100,indicatorPlacement:`inside`,processing:Oe(e.state),type:`line`,showIndicator:!1,"show-indicator":!1,class:[`transition-all **:in-[.n-progress-graph-line-fill]:hidden!`,e.state==`error`&&e.retry?`w-[60%]!`:`w-[95%]!`],height:7,status:e.state},null),(0,n.createVNode)(n.Transition,{name:`van-slide-right`},ex(r=(0,n.withDirectives)((0,n.createVNode)(`div`,{class:`absolute! top-1/2 right-[4%] flex -translate-y-1/2 gap-3 ease-in-out!`},[(0,n.createVNode)(i.NButton,{tertiary:!0,circle:!0,onClick:()=>{e.state==`error`&&(e.retry=void 0,e.pc.reject(e.error))},class:`size-10!`},{icon:()=>(0,n.createVNode)(i.NIcon,null,{default:()=>[(0,n.createVNode)(Lh,null,null)]})}),(0,n.createVNode)(i.NButton,{tertiary:!0,circle:!0,onClick:e.retry,class:`size-10!`},{icon:()=>(0,n.createVNode)(i.NIcon,null,{default:()=>[(0,n.createVNode)(Fh,null,null)]})})]),[[n.vShow,e.state==`error`&&e.retry]]))?r:{default:()=>[r]})]),(0,n.createVNode)(`div`,{class:`h-4! text-xs text-(--van-text-color-2)`},[e.state==`error`&&`${e.error.name}: ${e.error.message}`||e.description||`...`])])}))?t:{default:()=>[t]}),(0,n.createVNode)(`div`,{class:`absolute -bottom-2 left-1/2 h-1 w-10 -translate-x-1/2 rounded-lg bg-(--nui-divider-color)`},null)])]})]})},duration:0}),f=(e,t,r)=>{let i=Promise.withResolvers(),a=(0,n.ref)(),s=(0,n.reactive)({description:``,retryable:!1,...t}),c=Error(),l=o.length,u=(0,n.watch)([s,a],([,t])=>{o[l]={title:e,state:t,error:c,pc:i,retry:s.retryable?d:void 0,...s}},{immediate:!0}),d=async()=>{a.value=void 0,s.description=``,s.retryable=!1;for(let e in t)Object.hasOwn(t,e)&&(s[e]=t[e]);try{let e=await r(s);a.value=`success`,await(0,n.nextTick)(),u.stop(),i.resolve(e)}catch(e){c=we(e)?e:Error(ni(e)),a.value=`error`,await(0,n.nextTick)(),s.retryable||(u.stop(),i.reject(e))}};return d(),i.promise},p=t({createProgress:(e,t)=>f(e,{progress:0},t),createLoading:(e,t)=>f(e,{},t)}),m=Promise.withResolvers();return p.then(async e=>{s.value=!1,a.value=!0;let t=o.find(e=>e.state==`error`);if(t)throw t.error;m.resolve(e),g(3e3).then(()=>{s.value=!0}),await(0,n.nextTick)(),await ta(s).toBeTruthy(),c.stop(),d.destroy(),tx[r]=void 0}),p.catch(async e=>{m.reject(e),s.value=!1,g(3e3).then(()=>{s.value=!0}),await(0,n.nextTick)(),await ta(s).toBeTruthy(),c.stop(),d.destroy(),tx[r]=void 0}),m.promise},rx=(e=`加载中`,t=window.$message)=>{let r=(0,n.computed)(()=>(0,n.isRef)(e)?e.value:Te(e)?e():e),i=t.loading(r.value,{duration:0}),a=(0,n.watch)(r,e=>{i.content=e}),o=!1;async function s(e,t=!0,n,r){try{let t=await e;return c.success(n),t}catch(e){if(c.fail(r),t)throw e;return}}let c={bind:s,async success(e=`成功!`,t=500){a(),!(o||!i)&&(o=!0,i.type=`success`,i.content=e,await g(t),i.destroy())},async fail(e=`失败!`,t=500){a(),!(o||!i)&&(o=!0,i.type=`error`,i.content=e,await g(t),i.destroy())},async info(e,t=500){a(),!(o||!i)&&(o=!0,i.type=`info`,i.content=e,await g(t),i.destroy())},destroy(){a(),!(o||!i)&&(o=!0,i.destroy())},[Symbol.dispose](){this.destroy()},instance:i};return c};exports.DcAuthorIcon=Oa,exports.DcAwait=ka,exports.DcContent=Kh,exports.DcFloatPopup=qh,exports.DcForm=Yb,exports.DcFormCheckbox=Ub,exports.DcFormDate=Wb,exports.DcFormDateRange=Gb,exports.DcFormItem=Jb,exports.DcFormNumber=Vb,exports.DcFormPairs=qb,exports.DcFormRadio=Hb,exports.DcFormString=Bb,exports.DcFormSwitch=zb,exports.DcImage=Ea,exports.DcImagedIcon=Da,exports.DcList=Yh,exports.DcLoading=Ta,exports.DcMarkdown=Rb,exports.DcPopup=Xh,exports.DcRouterTab=Zh,exports.DcText=Qh,exports.DcToggleIcon=eg,exports.DcVar=Jh,exports.DcWaterfall=jg,Object.defineProperty(exports,`FormType`,{enumerable:!0,get:function(){return Zb}}),exports.createDialog=$b,exports.createDownloadMessage=nx,exports.createForm=Qb,exports.createLoadingMessage=rx,exports.showImagePreview=wa,exports.useZIndex=Ca;
|
|
11
66
|
//# sourceMappingURL=index.cjs.map
|