@heybox/hb-sdk 0.9.6-alpha.8 → 0.9.6
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/CHANGELOG.md +79 -0
- package/README.md +8 -1
- package/THIRD_PARTY_NOTICES.md +472 -48
- package/dist/cli-chunks/{artifact-BKO6SUi7.cjs → artifact-D63EGQx9.cjs} +6 -5
- package/dist/cli-chunks/{build-Dfmx31Pu.cjs → build-fyHfi216.cjs} +6 -5
- package/dist/cli-chunks/{create-C9vj2WPs.cjs → create-B-EnCHjU.cjs} +322 -4
- package/dist/cli-chunks/{dev-CbvQhSfw.cjs → dev-Zb0pMdzr.cjs} +309 -39
- package/dist/cli-chunks/{dev-context-ohqz7YNY.cjs → dev-context-DYFBVQ_C.cjs} +22 -14
- package/dist/cli-chunks/{doctor-49h9U79a.cjs → doctor-DmkHu1Hk.cjs} +1 -1
- package/dist/cli-chunks/{games-CoT7KYEe.cjs → games-CeCLFeTt.cjs} +1 -1
- package/dist/cli-chunks/{index-Cy_IlqkS.cjs → index-C696i2DY.cjs} +1 -1
- package/dist/cli-chunks/{index-BCXuTxAO.cjs → index-It90_ScC.cjs} +210 -38
- package/dist/cli-chunks/index.esm-CvMA_ppV.cjs +7977 -0
- package/dist/cli-chunks/{index.esm-B9jI5p-8.cjs → index.esm-YDTVatz_.cjs} +7 -6
- package/dist/cli-chunks/{login-DzlRTbfT.cjs → login-BGJz7JZV.cjs} +1 -1
- package/dist/cli-chunks/{project-vite-Vibzv63j.cjs → project-vite-DybH-3Qp.cjs} +1 -1
- package/dist/cli-chunks/{remote-Cho-39Vd.cjs → remote-D9-2nonN.cjs} +13 -8
- package/dist/cli-chunks/{runtime-permission-env-BzP0KWpC.cjs → runtime-permission-env-BrSofQNz.cjs} +52 -6990
- package/dist/cli-chunks/{skill-XkW3Tj0X.cjs → skill-D6ebJn5J.cjs} +2 -2
- package/dist/cli-chunks/{version-DwTUFZwJ.cjs → version-CtGTgNGb.cjs} +1 -1
- package/dist/cli.cjs +1 -1
- package/dist/devtools/browser-dev-host/assets/browser-dev-host-DsmreI9p.js +228 -0
- package/dist/devtools/browser-dev-host/assets/desktop-app-launch-CLikLiNS.js +6 -0
- package/dist/devtools/browser-dev-host/assets/index-1VVyBeMq.js +567 -0
- package/dist/devtools/browser-dev-host/assets/index-ophYZqpX.css +1 -0
- package/dist/devtools/browser-dev-host/assets/linux-DwJAcUeD.svg +1 -0
- package/dist/devtools/browser-dev-host/index.html +6 -4
- package/dist/index.cjs.js +1201 -156
- package/dist/index.esm.js +1201 -156
- package/dist/miniapp-publish.cjs.js +1072 -131
- package/dist/miniapp-publish.esm.js +1072 -131
- package/dist/protocol.cjs.js +732 -158
- package/dist/protocol.esm.js +716 -159
- package/dist/templates/vanilla-vite-js/README.md.ejs +27 -0
- package/dist/templates/vanilla-vite-js/package.json.ejs +1 -1
- package/dist/templates/vanilla-vite-js/src/user-game-data.js.ejs +1 -0
- package/dist/vite.cjs.js +1087 -150
- package/dist/vite.esm.js +1087 -150
- package/docs/appreciation-code.md +4 -8
- package/package.json +9 -10
- package/skill/SKILL.md +4 -0
- package/skill/skill.json +5 -5
- package/types/index.d.ts +492 -77
- package/types/miniapp-publish/index.d.ts +18 -2
- package/types/protocol.d.ts +1 -1
- package/types/vite/index.d.ts +10 -16
- package/dist/devtools/browser-dev-host/assets/browser-dev-host-YlT8qe4e.js +0 -100
- package/dist/devtools/browser-dev-host/assets/desktop-app-launch-CIhnhlZj.js +0 -6
- package/dist/devtools/browser-dev-host/assets/index-BchRnwoE.js +0 -586
- package/dist/devtools/browser-dev-host/assets/index-CHYEXFEg.css +0 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
function Rr(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const J={},mt=[],Be=()=>{},Ws=()=>!1,Lr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Mr=e=>e.startsWith("onUpdate:"),he=Object.assign,Nr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Io=Object.prototype.hasOwnProperty,Y=(e,t)=>Io.call(e,t),W=Array.isArray,bt=e=>en(e)==="[object Map]",Hs=e=>en(e)==="[object Set]",is=e=>en(e)==="[object Date]",F=e=>typeof e=="function",le=e=>typeof e=="string",ke=e=>typeof e=="symbol",X=e=>e!==null&&typeof e=="object",Fs=e=>(X(e)||F(e))&&F(e.then)&&F(e.catch),$s=Object.prototype.toString,en=e=>$s.call(e),So=e=>en(e).slice(8,-1),js=e=>en(e)==="[object Object]",Dn=e=>le(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Wt=Rr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Pn=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Eo=/-\w/g,Pe=Pn(e=>e.replace(Eo,t=>t.slice(1).toUpperCase())),To=/\B([A-Z])/g,Et=Pn(e=>e.replace(To,"-$1").toLowerCase()),Wr=Pn(e=>e.charAt(0).toUpperCase()+e.slice(1)),pn=Pn(e=>e?`on${Wr(e)}`:""),ue=(e,t)=>!Object.is(e,t),er=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Bs=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},xo=e=>{const t=parseFloat(e);return isNaN(t)?e:t},$c=e=>{const t=le(e)?Number(e):NaN;return isNaN(t)?e:t};let os;const On=()=>os||(os=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Cn(e){if(W(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=le(r)?Po(r):Cn(r);if(s)for(const i in s)t[i]=s[i]}return t}else if(le(e)||X(e))return e}const ko=/;(?![^(]*\))/g,Ao=/:([^]+)/,Do=/\/\*[^]*?\*\//g;function Po(e){const t={};return e.replace(Do,"").split(ko).forEach(n=>{if(n){const r=n.split(Ao);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Rn(e){let t="";if(le(e))t=e;else if(W(e))for(let n=0;n<e.length;n++){const r=Rn(e[n]);r&&(t+=r+" ")}else if(X(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function jc(e){if(!e)return null;let{class:t,style:n}=e;return t&&!le(t)&&(e.class=Rn(t)),n&&(e.style=Cn(n)),e}const Oo="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Bc=Rr(Oo);function Vc(e){return!!e||e===""}function Co(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Hr(e[r],t[r]);return n}function Hr(e,t){if(e===t)return!0;let n=is(e),r=is(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=ke(e),r=ke(t),n||r)return e===t;if(n=W(e),r=W(t),n||r)return n&&r?Co(e,t):!1;if(n=X(e),r=X(t),n||r){if(!n||!r)return!1;const s=Object.keys(e).length,i=Object.keys(t).length;if(s!==i)return!1;for(const o in e){const l=e.hasOwnProperty(o),a=t.hasOwnProperty(o);if(l&&!a||!l&&a||!Hr(e[o],t[o]))return!1}}return String(e)===String(t)}const Vs=e=>!!(e&&e.__v_isRef===!0),Ro=e=>le(e)?e:e==null?"":W(e)||X(e)&&(e.toString===$s||!F(e.toString))?Vs(e)?Ro(e.value):JSON.stringify(e,Us,2):String(e),Us=(e,t)=>Vs(t)?Us(e,t.value):bt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[tr(r,i)+" =>"]=s,n),{})}:Hs(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>tr(n))}:ke(t)?tr(t):X(t)&&!W(t)&&!js(t)?String(t):t,tr=(e,t="")=>{var n;return ke(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let se;class Ks{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&se&&(se.active?(this.parent=se,this.index=(se.scopes||(se.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=se;try{return se=this,t()}finally{se=n}}}on(){++this._on===1&&(this.prevScope=se,se=this)}off(){if(this._on>0&&--this._on===0){if(se===this)se=this.prevScope;else{let t=se;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function Uc(e){return new Ks(e)}function Lo(){return se}function Kc(e,t=!1){se&&se.cleanups.push(e)}let ee;const nr=new WeakSet;class zs{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,se&&(se.active?se.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,nr.has(this)&&(nr.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Js(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ls(this),Ys(this);const t=ee,n=De;ee=this,De=!0;try{return this.fn()}finally{Xs(this),ee=t,De=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)jr(t);this.deps=this.depsTail=void 0,ls(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?nr.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){hr(this)&&this.run()}get dirty(){return hr(this)}}let Gs=0,Ht,Ft;function Js(e,t=!1){if(e.flags|=8,t){e.next=Ft,Ft=e;return}e.next=Ht,Ht=e}function Fr(){Gs++}function $r(){if(--Gs>0)return;if(Ft){let t=Ft;for(Ft=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Ht;){let t=Ht;for(Ht=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Ys(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Xs(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),jr(r),Mo(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function hr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Zs(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Zs(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Kt)||(e.globalVersion=Kt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!hr(e))))return;e.flags|=2;const t=e.dep,n=ee,r=De;ee=e,De=!0;try{Ys(e);const s=e.fn(e._value);(t.version===0||ue(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{ee=n,De=r,Xs(e),e.flags&=-3}}function jr(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)jr(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Mo(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let De=!0;const Qs=[];function Je(){Qs.push(De),De=!1}function Ye(){const e=Qs.pop();De=e===void 0?!0:e}function ls(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ee;ee=void 0;try{t()}finally{ee=n}}}let Kt=0;class No{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Ln{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!ee||!De||ee===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ee)n=this.activeLink=new No(ee,this),ee.deps?(n.prevDep=ee.depsTail,ee.depsTail.nextDep=n,ee.depsTail=n):ee.deps=ee.depsTail=n,qs(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=ee.depsTail,n.nextDep=void 0,ee.depsTail.nextDep=n,ee.depsTail=n,ee.deps===n&&(ee.deps=r)}return n}trigger(t){this.version++,Kt++,this.notify(t)}notify(t){Fr();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{$r()}}}function qs(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)qs(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const yn=new WeakMap,ft=Symbol(""),pr=Symbol(""),zt=Symbol("");function pe(e,t,n){if(De&&ee){let r=yn.get(e);r||yn.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new Ln),s.map=r,s.key=n),s.track()}}function ze(e,t,n,r,s,i){const o=yn.get(e);if(!o){Kt++;return}const l=a=>{a&&a.trigger()};if(Fr(),t==="clear")o.forEach(l);else{const a=W(e),d=a&&Dn(n);if(a&&n==="length"){const f=Number(r);o.forEach((h,m)=>{(m==="length"||m===zt||!ke(m)&&m>=f)&&l(h)})}else switch((n!==void 0||o.has(void 0))&&l(o.get(n)),d&&l(o.get(zt)),t){case"add":a?d&&l(o.get("length")):(l(o.get(ft)),bt(e)&&l(o.get(pr)));break;case"delete":a||(l(o.get(ft)),bt(e)&&l(o.get(pr)));break;case"set":bt(e)&&l(o.get(ft));break}}$r()}function Wo(e,t){const n=yn.get(e);return n&&n.get(t)}function pt(e){const t=K(e);return t===e?t:(pe(t,"iterate",zt),Te(e)?t:t.map(Oe))}function Mn(e){return pe(e=K(e),"iterate",zt),e}function Fe(e,t){return Xe(e)?vt(ut(e)?Oe(t):t):Oe(t)}const Ho={__proto__:null,[Symbol.iterator](){return rr(this,Symbol.iterator,e=>Fe(this,e))},concat(...e){return pt(this).concat(...e.map(t=>W(t)?pt(t):t))},entries(){return rr(this,"entries",e=>(e[1]=Fe(this,e[1]),e))},every(e,t){return Ue(this,"every",e,t,void 0,arguments)},filter(e,t){return Ue(this,"filter",e,t,n=>n.map(r=>Fe(this,r)),arguments)},find(e,t){return Ue(this,"find",e,t,n=>Fe(this,n),arguments)},findIndex(e,t){return Ue(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ue(this,"findLast",e,t,n=>Fe(this,n),arguments)},findLastIndex(e,t){return Ue(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ue(this,"forEach",e,t,void 0,arguments)},includes(...e){return sr(this,"includes",e)},indexOf(...e){return sr(this,"indexOf",e)},join(e){return pt(this).join(e)},lastIndexOf(...e){return sr(this,"lastIndexOf",e)},map(e,t){return Ue(this,"map",e,t,void 0,arguments)},pop(){return Dt(this,"pop")},push(...e){return Dt(this,"push",e)},reduce(e,...t){return as(this,"reduce",e,t)},reduceRight(e,...t){return as(this,"reduceRight",e,t)},shift(){return Dt(this,"shift")},some(e,t){return Ue(this,"some",e,t,void 0,arguments)},splice(...e){return Dt(this,"splice",e)},toReversed(){return pt(this).toReversed()},toSorted(e){return pt(this).toSorted(e)},toSpliced(...e){return pt(this).toSpliced(...e)},unshift(...e){return Dt(this,"unshift",e)},values(){return rr(this,"values",e=>Fe(this,e))}};function rr(e,t,n){const r=Mn(e),s=r[t]();return r!==e&&!Te(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=n(i.value)),i}),s}const Fo=Array.prototype;function Ue(e,t,n,r,s,i){const o=Mn(e),l=o!==e&&!Te(e),a=o[t];if(a!==Fo[t]){const h=a.apply(e,i);return l?Oe(h):h}let d=n;o!==e&&(l?d=function(h,m){return n.call(this,Fe(e,h),m,e)}:n.length>2&&(d=function(h,m){return n.call(this,h,m,e)}));const f=a.call(o,d,r);return l&&s?s(f):f}function as(e,t,n,r){const s=Mn(e),i=s!==e&&!Te(e);let o=n,l=!1;s!==e&&(i?(l=r.length===0,o=function(d,f,h){return l&&(l=!1,d=Fe(e,d)),n.call(this,d,Fe(e,f),h,e)}):n.length>3&&(o=function(d,f,h){return n.call(this,d,f,h,e)}));const a=s[t](o,...r);return l?Fe(e,a):a}function sr(e,t,n){const r=K(e);pe(r,"iterate",zt);const s=r[t](...n);return(s===-1||s===!1)&&Fn(n[0])?(n[0]=K(n[0]),r[t](...n)):s}function Dt(e,t,n=[]){Je(),Fr();const r=K(e)[t].apply(e,n);return $r(),Ye(),r}const $o=Rr("__proto__,__v_isRef,__isVue"),ei=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ke));function jo(e){ke(e)||(e=String(e));const t=K(this);return pe(t,"has",e),t.hasOwnProperty(e)}class ti{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?li:oi:i?ii:si).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=W(t);if(!s){let a;if(o&&(a=Ho[n]))return a;if(n==="hasOwnProperty")return jo}const l=Reflect.get(t,n,oe(t)?t:r);if((ke(n)?ei.has(n):$o(n))||(s||pe(t,"get",n),i))return l;if(oe(l)){const a=o&&Dn(n)?l:l.value;return s&&X(a)?mr(a):a}return X(l)?s?mr(l):Wn(l):l}}class ni extends ti{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];const o=W(t)&&Dn(n);if(!this._isShallow){const d=Xe(i);if(!Te(r)&&!Xe(r)&&(i=K(i),r=K(r)),!o&&oe(i)&&!oe(r))return d||(i.value=r),!0}const l=o?Number(n)<t.length:Y(t,n),a=Reflect.set(t,n,r,oe(t)?t:s);return t===K(s)&&(l?ue(r,i)&&ze(t,"set",n,r):ze(t,"add",n,r)),a}deleteProperty(t,n){const r=Y(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&ze(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!ke(n)||!ei.has(n))&&pe(t,"has",n),r}ownKeys(t){return pe(t,"iterate",W(t)?"length":ft),Reflect.ownKeys(t)}}class ri extends ti{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Bo=new ni,Vo=new ri,Uo=new ni(!0),Ko=new ri(!0),gr=e=>e,cn=e=>Reflect.getPrototypeOf(e);function zo(e,t,n){return function(...r){const s=this.__v_raw,i=K(s),o=bt(i),l=e==="entries"||e===Symbol.iterator&&o,a=e==="keys"&&o,d=s[e](...r),f=n?gr:t?vt:Oe;return!t&&pe(i,"iterate",a?pr:ft),he(Object.create(d),{next(){const{value:h,done:m}=d.next();return m?{value:h,done:m}:{value:l?[f(h[0]),f(h[1])]:f(h),done:m}}})}}function fn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Go(e,t){const n={get(s){const i=this.__v_raw,o=K(i),l=K(s);e||(ue(s,l)&&pe(o,"get",s),pe(o,"get",l));const{has:a}=cn(o),d=t?gr:e?vt:Oe;if(a.call(o,s))return d(i.get(s));if(a.call(o,l))return d(i.get(l));i!==o&&i.get(s)},get size(){const s=this.__v_raw;return!e&&pe(K(s),"iterate",ft),s.size},has(s){const i=this.__v_raw,o=K(i),l=K(s);return e||(ue(s,l)&&pe(o,"has",s),pe(o,"has",l)),s===l?i.has(s):i.has(s)||i.has(l)},forEach(s,i){const o=this,l=o.__v_raw,a=K(l),d=t?gr:e?vt:Oe;return!e&&pe(a,"iterate",ft),l.forEach((f,h)=>s.call(i,d(f),d(h),o))}};return he(n,e?{add:fn("add"),set:fn("set"),delete:fn("delete"),clear:fn("clear")}:{add(s){const i=K(this),o=cn(i),l=K(s),a=!t&&!Te(s)&&!Xe(s)?l:s;return o.has.call(i,a)||ue(s,a)&&o.has.call(i,s)||ue(l,a)&&o.has.call(i,l)||(i.add(a),ze(i,"add",a,a)),this},set(s,i){!t&&!Te(i)&&!Xe(i)&&(i=K(i));const o=K(this),{has:l,get:a}=cn(o);let d=l.call(o,s);d||(s=K(s),d=l.call(o,s));const f=a.call(o,s);return o.set(s,i),d?ue(i,f)&&ze(o,"set",s,i):ze(o,"add",s,i),this},delete(s){const i=K(this),{has:o,get:l}=cn(i);let a=o.call(i,s);a||(s=K(s),a=o.call(i,s)),l&&l.call(i,s);const d=i.delete(s);return a&&ze(i,"delete",s,void 0),d},clear(){const s=K(this),i=s.size!==0,o=s.clear();return i&&ze(s,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=zo(s,e,t)}),n}function Nn(e,t){const n=Go(e,t);return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(Y(n,s)&&s in r?n:r,s,i)}const Jo={get:Nn(!1,!1)},Yo={get:Nn(!1,!0)},Xo={get:Nn(!0,!1)},Zo={get:Nn(!0,!0)},si=new WeakMap,ii=new WeakMap,oi=new WeakMap,li=new WeakMap;function Qo(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function qo(e){return e.__v_skip||!Object.isExtensible(e)?0:Qo(So(e))}function Wn(e){return Xe(e)?e:Hn(e,!1,Bo,Jo,si)}function ai(e){return Hn(e,!1,Uo,Yo,ii)}function mr(e){return Hn(e,!0,Vo,Xo,oi)}function zc(e){return Hn(e,!0,Ko,Zo,li)}function Hn(e,t,n,r,s){if(!X(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=qo(e);if(i===0)return e;const o=s.get(e);if(o)return o;const l=new Proxy(e,i===2?r:n);return s.set(e,l),l}function ut(e){return Xe(e)?ut(e.__v_raw):!!(e&&e.__v_isReactive)}function Xe(e){return!!(e&&e.__v_isReadonly)}function Te(e){return!!(e&&e.__v_isShallow)}function Fn(e){return e?!!e.__v_raw:!1}function K(e){const t=e&&e.__v_raw;return t?K(t):e}function el(e){return!Y(e,"__v_skip")&&Object.isExtensible(e)&&Bs(e,"__v_skip",!0),e}const Oe=e=>X(e)?Wn(e):e,vt=e=>X(e)?mr(e):e;function oe(e){return e?e.__v_isRef===!0:!1}function tl(e){return ci(e,!1)}function $n(e){return ci(e,!0)}function ci(e,t){return oe(e)?e:new nl(e,t)}class nl{constructor(t,n){this.dep=new Ln,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:K(t),this._value=n?t:Oe(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Te(t)||Xe(t);t=r?t:K(t),ue(t,n)&&(this._rawValue=t,this._value=r?t:Oe(t),this.dep.trigger())}}function Gc(e){e.dep&&e.dep.trigger()}function Br(e){return oe(e)?e.value:e}function Jc(e){return F(e)?e():Br(e)}const rl={get:(e,t,n)=>t==="__v_raw"?e:Br(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return oe(s)&&!oe(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function fi(e){return ut(e)?e:new Proxy(e,rl)}class sl{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Ln,{get:r,set:s}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function il(e){return new sl(e)}function Yc(e){const t=W(e)?new Array(e.length):{};for(const n in e)t[n]=ui(e,n);return t}class ol{constructor(t,n,r){this._object=t,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._key=ke(n)?n:String(n),this._raw=K(t);let s=!0,i=t;if(!W(t)||ke(this._key)||!Dn(this._key))do s=!Fn(i)||Te(i);while(s&&(i=i.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=Br(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&oe(this._raw[this._key])){const n=this._object[this._key];if(oe(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return Wo(this._raw,this._key)}}class ll{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Xc(e,t,n){return oe(e)?e:F(e)?new ll(e):X(e)&&arguments.length>1?ui(e,t,n):tl(e)}function ui(e,t,n){return new ol(e,t,n)}class al{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Ln(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Kt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&ee!==this)return Js(this,!0),!0}get value(){const t=this.dep.track();return Zs(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function cl(e,t,n=!1){let r,s;return F(e)?r=e:(r=e.get,s=e.set),new al(r,s,n)}const un={},_n=new WeakMap;let lt;function fl(e,t=!1,n=lt){if(n){let r=_n.get(n);r||_n.set(n,r=[]),r.push(e)}}function ul(e,t,n=J){const{immediate:r,deep:s,once:i,scheduler:o,augmentJob:l,call:a}=n,d=C=>s?C:Te(C)||s===!1||s===0?Ge(C,1):Ge(C);let f,h,m,v,P=!1,k=!1;if(oe(e)?(h=()=>e.value,P=Te(e)):ut(e)?(h=()=>d(e),P=!0):W(e)?(k=!0,P=e.some(C=>ut(C)||Te(C)),h=()=>e.map(C=>{if(oe(C))return C.value;if(ut(C))return d(C);if(F(C))return a?a(C,2):C()})):F(e)?t?h=a?()=>a(e,2):e:h=()=>{if(m){Je();try{m()}finally{Ye()}}const C=lt;lt=f;try{return a?a(e,3,[v]):e(v)}finally{lt=C}}:h=Be,t&&s){const C=h,z=s===!0?1/0:s;h=()=>Ge(C(),z)}const M=Lo(),B=()=>{f.stop(),M&&M.active&&Nr(M.effects,f)};if(i&&t){const C=t;t=(...z)=>{C(...z),B()}}let R=k?new Array(e.length).fill(un):un;const V=C=>{if(!(!(f.flags&1)||!f.dirty&&!C))if(t){const z=f.run();if(s||P||(k?z.some((te,$)=>ue(te,R[$])):ue(z,R))){m&&m();const te=lt;lt=f;try{const $=[z,R===un?void 0:k&&R[0]===un?[]:R,v];R=z,a?a(t,3,$):t(...$)}finally{lt=te}}}else f.run()};return l&&l(V),f=new zs(h),f.scheduler=o?()=>o(V,!1):V,v=C=>fl(C,!1,f),m=f.onStop=()=>{const C=_n.get(f);if(C){if(a)a(C,4);else for(const z of C)z();_n.delete(f)}},t?r?V(!0):R=f.run():o?o(V.bind(null,!0),!0):f.run(),B.pause=f.pause.bind(f),B.resume=f.resume.bind(f),B.stop=B,B}function Ge(e,t=1/0,n){if(t<=0||!X(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,oe(e))Ge(e.value,t,n);else if(W(e))for(let r=0;r<e.length;r++)Ge(e[r],t,n);else if(Hs(e)||bt(e))e.forEach(r=>{Ge(r,t,n)});else if(js(e)){for(const r in e)Ge(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Ge(e[r],t,n)}return e}function tn(e,t,n,r){try{return r?e(...r):e()}catch(s){jn(s,t,n)}}function Ve(e,t,n,r){if(F(e)){const s=tn(e,t,n,r);return s&&Fs(s)&&s.catch(i=>{jn(i,t,n)}),s}if(W(e)){const s=[];for(let i=0;i<e.length;i++)s.push(Ve(e[i],t,n,r));return s}}function jn(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||J;if(t){let l=t.parent;const a=t.proxy,d=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const f=l.ec;if(f){for(let h=0;h<f.length;h++)if(f[h](e,a,d)===!1)return}l=l.parent}if(i){Je(),tn(i,null,10,[e,a,d]),Ye();return}}dl(e,n,s,r,o)}function dl(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const _e=[];let We=-1;const yt=[];let qe=null,gt=0;const di=Promise.resolve();let wn=null;function hl(e){const t=wn||di;return e?t.then(this?e.bind(this):e):t}function pl(e){let t=We+1,n=_e.length;for(;t<n;){const r=t+n>>>1,s=_e[r],i=Gt(s);i<e||i===e&&s.flags&2?t=r+1:n=r}return t}function Vr(e){if(!(e.flags&1)){const t=Gt(e),n=_e[_e.length-1];!n||!(e.flags&2)&&t>=Gt(n)?_e.push(e):_e.splice(pl(t),0,e),e.flags|=1,hi()}}function hi(){wn||(wn=di.then(gi))}function gl(e){W(e)?yt.push(...e):qe&&e.id===-1?qe.splice(gt+1,0,e):e.flags&1||(yt.push(e),e.flags|=1),hi()}function cs(e,t,n=We+1){for(;n<_e.length;n++){const r=_e[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;_e.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function pi(e){if(yt.length){const t=[...new Set(yt)].sort((n,r)=>Gt(n)-Gt(r));if(yt.length=0,qe){qe.push(...t);return}for(qe=t,gt=0;gt<qe.length;gt++){const n=qe[gt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}qe=null,gt=0}}const Gt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function gi(e){try{for(We=0;We<_e.length;We++){const t=_e[We];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),tn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;We<_e.length;We++){const t=_e[We];t&&(t.flags&=-2)}We=-1,_e.length=0,pi(),wn=null,(_e.length||yt.length)&&gi()}}let de=null,mi=null;function vn(e){const t=de;return de=e,mi=e&&e.type.__scopeId||null,t}function ml(e,t=de,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&En(-1);const i=vn(t);let o;try{o=e(...s)}finally{vn(i),r._d&&En(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Zc(e,t){if(de===null)return e;const n=zn(de),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,o,l,a=J]=t[s];i&&(F(i)&&(i={mounted:i,updated:i}),i.deep&&Ge(o),r.push({dir:i,instance:n,value:o,oldValue:void 0,arg:l,modifiers:a}))}return e}function it(e,t,n,r){const s=e.dirs,i=t&&t.dirs;for(let o=0;o<s.length;o++){const l=s[o];i&&(l.oldValue=i[o].value);let a=l.dir[r];a&&(Je(),Ve(a,n,8,[e.el,l,e,t]),Ye())}}function bl(e,t){if(me){let n=me.provides;const r=me.parent&&me.parent.provides;r===n&&(n=me.provides=Object.create(r)),n[e]=t}}function gn(e,t,n=!1){const r=rn();if(r||wt){let s=wt?wt._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&F(t)?t.call(r&&r.proxy):t}}const yl=Symbol.for("v-scx"),_l=()=>gn(yl);function Qc(e,t){return nn(e,null,t)}function qc(e,t){return nn(e,null,{flush:"post"})}function wl(e,t){return nn(e,null,{flush:"sync"})}function ir(e,t,n){return nn(e,t,n)}function nn(e,t,n=J){const{immediate:r,deep:s,flush:i,once:o}=n,l=he({},n),a=t&&r||!t&&i!=="post";let d;if(Zt){if(i==="sync"){const v=_l();d=v.__watcherHandles||(v.__watcherHandles=[])}else if(!a){const v=()=>{};return v.stop=Be,v.resume=Be,v.pause=Be,v}}const f=me;l.call=(v,P,k)=>Ve(v,f,P,k);let h=!1;i==="post"?l.scheduler=v=>{ye(v,f&&f.suspense)}:i!=="sync"&&(h=!0,l.scheduler=(v,P)=>{P?v():Vr(v)}),l.augmentJob=v=>{t&&(v.flags|=4),h&&(v.flags|=2,f&&(v.id=f.uid,v.i=f))};const m=ul(e,t,l);return Zt&&(d?d.push(m):a&&m()),m}function vl(e,t,n){const r=this.proxy,s=le(e)?e.includes(".")?bi(r,e):()=>r[e]:e.bind(r,r);let i;F(t)?i=t:(i=t.handler,n=t);const o=sn(this),l=nn(s,i.bind(r),n);return o(),l}function bi(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}const Qe=new WeakMap,yi=Symbol("_vte"),_i=e=>e.__isTeleport,at=e=>e&&(e.disabled||e.disabled===""),Il=e=>e&&(e.defer||e.defer===""),fs=e=>typeof SVGElement<"u"&&e instanceof SVGElement,us=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,br=(e,t)=>{const n=e&&e.to;return le(n)?t?t(n):null:n},Sl={name:"Teleport",__isTeleport:!0,process(e,t,n,r,s,i,o,l,a,d){const{mc:f,pc:h,pbc:m,o:{insert:v,querySelector:P,createText:k,createComment:M,parentNode:B}}=d,R=at(t.props);let{dynamicChildren:V}=t;const C=($,S,g)=>{$.shapeFlag&16&&f($.children,S,g,s,i,o,l,a)},z=($=t)=>{const S=at($.props),g=$.target=br($.props,P),T=yr(g,$,k,v);g&&(o!=="svg"&&fs(g)?o="svg":o!=="mathml"&&us(g)&&(o="mathml"),s&&s.isCE&&(s.ce._teleportTargets||(s.ce._teleportTargets=new Set)).add(g),S||(C($,g,T),Rt($,!1)))},te=$=>{const S=()=>{if(Qe.get($)===S){if(Qe.delete($),at($.props)){const g=B($.el)||n;C($,g,$.anchor),Rt($,!0)}z($)}};Qe.set($,S),ye(S,i)};if(e==null){const $=t.el=k(""),S=t.anchor=k("");if(v($,n,r),v(S,n,r),Il(t.props)||i&&i.pendingBranch){te(t);return}R&&(C(t,n,S),Rt(t,!0)),z()}else{t.el=e.el;const $=t.anchor=e.anchor,S=Qe.get(e);if(S){S.flags|=8,Qe.delete(e),te(t);return}t.targetStart=e.targetStart;const g=t.target=e.target,T=t.targetAnchor=e.targetAnchor,O=at(e.props),j=O?n:g,ae=O?$:T;if(o==="svg"||fs(g)?o="svg":(o==="mathml"||us(g))&&(o="mathml"),V?(m(e.dynamicChildren,V,j,s,i,o,l),zr(e,t,!0)):a||h(e,t,j,ae,s,i,o,l,!1),R)O?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):dn(t,n,$,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const ce=t.target=br(t.props,P);ce&&dn(t,ce,null,d,0)}else O&&dn(t,g,T,d,1);Rt(t,R)}},remove(e,t,n,{um:r,o:{remove:s}},i){const{shapeFlag:o,children:l,anchor:a,targetStart:d,targetAnchor:f,target:h,props:m}=e;let v=i||!at(m);const P=Qe.get(e);if(P&&(P.flags|=8,Qe.delete(e),v=!1),h&&(s(d),s(f)),i&&s(a),o&16)for(let k=0;k<l.length;k++){const M=l[k];r(M,t,n,v,!!M.dynamicChildren)}},move:dn,hydrate:El};function dn(e,t,n,{o:{insert:r},m:s},i=2){i===0&&r(e.targetAnchor,t,n);const{el:o,anchor:l,shapeFlag:a,children:d,props:f}=e,h=i===2;if(h&&r(o,t,n),!Qe.has(e)&&(!h||at(f))&&a&16)for(let m=0;m<d.length;m++)s(d[m],t,n,2);h&&r(l,t,n)}function El(e,t,n,r,s,i,{o:{nextSibling:o,parentNode:l,querySelector:a,insert:d,createText:f}},h){function m(M,B){let R=B;for(;R;){if(R&&R.nodeType===8){if(R.data==="teleport start anchor")t.targetStart=R;else if(R.data==="teleport anchor"){t.targetAnchor=R,M._lpa=t.targetAnchor&&o(t.targetAnchor);break}}R=o(R)}}function v(M,B){B.anchor=h(o(M),B,l(M),n,r,s,i)}const P=t.target=br(t.props,a),k=at(t.props);if(P){const M=P._lpa||P.firstChild;t.shapeFlag&16&&(k?(v(e,t),m(P,M),t.targetAnchor||yr(P,t,f,d,l(e)===P?e:null)):(t.anchor=o(e),m(P,M),t.targetAnchor||yr(P,t,f,d),h(M&&o(M),t,P,n,r,s,i))),Rt(t,k)}else k&&t.shapeFlag&16&&(v(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}const ef=Sl;function Rt(e,t){const n=e.ctx;if(n&&n.ut){let r,s;for(t?(r=e.el,s=e.anchor):(r=e.targetStart,s=e.targetAnchor);r&&r!==s;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function yr(e,t,n,r,s=null){const i=t.targetStart=n(""),o=t.targetAnchor=n("");return i[yi]=o,e&&(r(i,e,s),r(o,e,s)),o}const He=Symbol("_leaveCb"),Pt=Symbol("_enterCb");function Tl(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return xi(()=>{e.isMounted=!0}),ki(()=>{e.isUnmounting=!0}),e}const xe=[Function,Array],xl={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:xe,onEnter:xe,onAfterEnter:xe,onEnterCancelled:xe,onBeforeLeave:xe,onLeave:xe,onAfterLeave:xe,onLeaveCancelled:xe,onBeforeAppear:xe,onAppear:xe,onAfterAppear:xe,onAppearCancelled:xe},wi=e=>{const t=e.subTree;return t.component?wi(t.component):t},kl={name:"BaseTransition",props:xl,setup(e,{slots:t}){const n=rn(),r=Tl();return()=>{const s=t.default&&Si(t.default(),!0),i=s&&s.length?vi(s):n.subTree?pa():void 0;if(!i)return;const o=K(e),{mode:l}=o;if(r.isLeaving)return or(i);const a=ds(i);if(!a)return or(i);let d=_r(a,o,r,n,h=>d=h);a.type!==ge&&Jt(a,d);let f=n.subTree&&ds(n.subTree);if(f&&f.type!==ge&&!ct(f,a)&&wi(n).type!==ge){let h=_r(f,o,r,n);if(Jt(f,h),l==="out-in"&&a.type!==ge)return r.isLeaving=!0,h.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete h.afterLeave,f=void 0},or(i);l==="in-out"&&a.type!==ge?h.delayLeave=(m,v,P)=>{const k=Ii(r,f);k[String(f.key)]=f,m[He]=()=>{v(),m[He]=void 0,delete d.delayedLeave,f=void 0},d.delayedLeave=()=>{P(),delete d.delayedLeave,f=void 0}}:f=void 0}else f&&(f=void 0);return i}}};function vi(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==ge){t=n;break}}return t}const tf=kl;function Ii(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function _r(e,t,n,r,s){const{appear:i,mode:o,persisted:l=!1,onBeforeEnter:a,onEnter:d,onAfterEnter:f,onEnterCancelled:h,onBeforeLeave:m,onLeave:v,onAfterLeave:P,onLeaveCancelled:k,onBeforeAppear:M,onAppear:B,onAfterAppear:R,onAppearCancelled:V}=t,C=String(e.key),z=Ii(n,e),te=(g,T)=>{g&&Ve(g,r,9,T)},$=(g,T)=>{const O=T[1];te(g,T),W(g)?g.every(j=>j.length<=1)&&O():g.length<=1&&O()},S={mode:o,persisted:l,beforeEnter(g){let T=a;if(!n.isMounted)if(i)T=M||a;else return;g[He]&&g[He](!0);const O=z[C];O&&ct(e,O)&&O.el[He]&&O.el[He](),te(T,[g])},enter(g){if(z[C]===e)return;let T=d,O=f,j=h;if(!n.isMounted)if(i)T=B||d,O=R||f,j=V||h;else return;let ae=!1;g[Pt]=ht=>{ae||(ae=!0,ht?te(j,[g]):te(O,[g]),S.delayedLeave&&S.delayedLeave(),g[Pt]=void 0)};const ce=g[Pt].bind(null,!1);T?$(T,[g,ce]):ce()},leave(g,T){const O=String(e.key);if(g[Pt]&&g[Pt](!0),n.isUnmounting)return T();te(m,[g]);let j=!1;g[He]=ce=>{j||(j=!0,T(),ce?te(k,[g]):te(P,[g]),g[He]=void 0,z[O]===e&&delete z[O])};const ae=g[He].bind(null,!1);z[O]=e,v?$(v,[g,ae]):ae()},clone(g){const T=_r(g,t,n,r,s);return s&&s(T),T}};return S}function or(e){if(Bn(e))return e=et(e),e.children=null,e}function ds(e){if(!Bn(e))return _i(e.type)&&e.children?vi(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&F(n.default))return n.default()}}function Jt(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Jt(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Si(e,t=!1,n){let r=[],s=0;for(let i=0;i<e.length;i++){let o=e[i];const l=n==null?o.key:String(n)+String(o.key!=null?o.key:i);o.type===Ee?(o.patchFlag&128&&s++,r=r.concat(Si(o.children,t,l))):(t||o.type!==ge)&&r.push(l!=null?et(o,{key:l}):o)}if(s>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}function nf(e,t){return F(e)?he({name:e.name},t,{setup:e}):e}function rf(){const e=rn();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function Ei(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function hs(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const In=new WeakMap;function $t(e,t,n,r,s=!1){if(W(e)){e.forEach((k,M)=>$t(k,t&&(W(t)?t[M]:t),n,r,s));return}if(_t(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&$t(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?zn(r.component):r.el,o=s?null:i,{i:l,r:a}=e,d=t&&t.r,f=l.refs===J?l.refs={}:l.refs,h=l.setupState,m=K(h),v=h===J?Ws:k=>hs(f,k)?!1:Y(m,k),P=(k,M)=>!(M&&hs(f,M));if(d!=null&&d!==a){if(ps(t),le(d))f[d]=null,v(d)&&(h[d]=null);else if(oe(d)){const k=t;P(d,k.k)&&(d.value=null),k.k&&(f[k.k]=null)}}if(F(a))tn(a,l,12,[o,f]);else{const k=le(a),M=oe(a);if(k||M){const B=()=>{if(e.f){const R=k?v(a)?h[a]:f[a]:P()||!e.k?a.value:f[e.k];if(s)W(R)&&Nr(R,i);else if(W(R))R.includes(i)||R.push(i);else if(k)f[a]=[i],v(a)&&(h[a]=f[a]);else{const V=[i];P(a,e.k)&&(a.value=V),e.k&&(f[e.k]=V)}}else k?(f[a]=o,v(a)&&(h[a]=o)):M&&(P(a,e.k)&&(a.value=o),e.k&&(f[e.k]=o))};if(o){const R=()=>{B(),In.delete(e)};R.id=-1,In.set(e,R),ye(R,n)}else ps(e),B()}}}function ps(e){const t=In.get(e);t&&(t.flags|=8,In.delete(e))}On().requestIdleCallback;On().cancelIdleCallback;const _t=e=>!!e.type.__asyncLoader,Bn=e=>e.type.__isKeepAlive;function Al(e,t){Ti(e,"a",t)}function Dl(e,t){Ti(e,"da",t)}function Ti(e,t,n=me){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Vn(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Bn(s.parent.vnode)&&Pl(r,t,n,s),s=s.parent}}function Pl(e,t,n,r){const s=Vn(t,e,r,!0);Ai(()=>{Nr(r[t],s)},n)}function Vn(e,t,n=me,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{Je();const l=sn(n),a=Ve(t,n,e,o);return l(),Ye(),a});return r?s.unshift(i):s.push(i),i}}const Ze=e=>(t,n=me)=>{(!Zt||e==="sp")&&Vn(e,(...r)=>t(...r),n)},Ol=Ze("bm"),xi=Ze("m"),Cl=Ze("bu"),Rl=Ze("u"),ki=Ze("bum"),Ai=Ze("um"),Ll=Ze("sp"),Ml=Ze("rtg"),Nl=Ze("rtc");function Wl(e,t=me){Vn("ec",e,t)}const Hl="components",Di=Symbol.for("v-ndc");function sf(e){return le(e)?Fl(Hl,e,!1)||e:e||Di}function Fl(e,t,n=!0,r=!1){const s=de||me;if(s){const i=s.type;{const l=Ia(i,!1);if(l&&(l===t||l===Pe(t)||l===Wr(Pe(t))))return i}const o=gs(s[e]||i[e],t)||gs(s.appContext[e],t);return!o&&r?i:o}}function gs(e,t){return e&&(e[t]||e[Pe(t)]||e[Wr(Pe(t))])}function of(e,t,n,r){let s;const i=n,o=W(e);if(o||le(e)){const l=o&&ut(e);let a=!1,d=!1;l&&(a=!Te(e),d=Xe(e),e=Mn(e)),s=new Array(e.length);for(let f=0,h=e.length;f<h;f++)s[f]=t(a?d?vt(Oe(e[f])):Oe(e[f]):e[f],f,void 0,i)}else if(typeof e=="number"){s=new Array(e);for(let l=0;l<e;l++)s[l]=t(l+1,l,void 0,i)}else if(X(e))if(e[Symbol.iterator])s=Array.from(e,(l,a)=>t(l,a,void 0,i));else{const l=Object.keys(e);s=new Array(l.length);for(let a=0,d=l.length;a<d;a++){const f=l[a];s[a]=t(e[f],f,a,i)}}else s=[];return s}function lf(e,t,n={},r,s){if(de.ce||de.parent&&_t(de.parent)&&de.parent.ce){const d=Object.keys(n).length>0;return t!=="default"&&(n.name=t),Er(),Tr(Ee,null,[Ie("slot",n,r&&r())],d?-2:64)}let i=e[t];i&&i._c&&(i._d=!1),Er();const o=i&&Pi(i(n)),l=n.key||o&&o.key,a=Tr(Ee,{key:(l&&!ke(l)?l:`_${t}`)+(!o&&r?"_fb":"")},o||(r?r():[]),o&&e._===1?64:-2);return a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),i&&i._c&&(i._d=!0),a}function Pi(e){return e.some(t=>Xt(t)?!(t.type===ge||t.type===Ee&&!Pi(t.children)):!0)?e:null}function af(e,t){const n={};for(const r in e)n[pn(r)]=e[r];return n}const wr=e=>e?Qi(e)?zn(e):wr(e.parent):null,jt=he(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>wr(e.parent),$root:e=>wr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ri(e),$forceUpdate:e=>e.f||(e.f=()=>{Vr(e.update)}),$nextTick:e=>e.n||(e.n=hl.bind(e.proxy)),$watch:e=>vl.bind(e)}),lr=(e,t)=>e!==J&&!e.__isScriptSetup&&Y(e,t),$l={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:i,accessCache:o,type:l,appContext:a}=e;if(t[0]!=="$"){const m=o[t];if(m!==void 0)switch(m){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(lr(r,t))return o[t]=1,r[t];if(s!==J&&Y(s,t))return o[t]=2,s[t];if(Y(i,t))return o[t]=3,i[t];if(n!==J&&Y(n,t))return o[t]=4,n[t];vr&&(o[t]=0)}}const d=jt[t];let f,h;if(d)return t==="$attrs"&&pe(e.attrs,"get",""),d(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==J&&Y(n,t))return o[t]=4,n[t];if(h=a.config.globalProperties,Y(h,t))return h[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return lr(s,t)?(s[t]=n,!0):r!==J&&Y(r,t)?(r[t]=n,!0):Y(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,props:i,type:o}},l){let a;return!!(n[l]||e!==J&&l[0]!=="$"&&Y(e,l)||lr(t,l)||Y(i,l)||Y(r,l)||Y(jt,l)||Y(s.config.globalProperties,l)||(a=o.__cssModules)&&a[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Y(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function cf(){return Oi().slots}function ff(){return Oi().attrs}function Oi(e){const t=rn();return t.setupContext||(t.setupContext=eo(t))}function Yt(e){return W(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function uf(e,t){const n=Yt(e);for(const r in t){if(r.startsWith("__skip"))continue;let s=n[r];s?W(s)||F(s)?s=n[r]={type:s,default:t[r]}:s.default=t[r]:s===null&&(s=n[r]={default:t[r]}),s&&t[`__skip_${r}`]&&(s.skipFactory=!0)}return n}function df(e,t){return!e||!t?e||t:W(e)&&W(t)?e.concat(t):he({},Yt(e),Yt(t))}let vr=!0;function jl(e){const t=Ri(e),n=e.proxy,r=e.ctx;vr=!1,t.beforeCreate&&ms(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:o,watch:l,provide:a,inject:d,created:f,beforeMount:h,mounted:m,beforeUpdate:v,updated:P,activated:k,deactivated:M,beforeDestroy:B,beforeUnmount:R,destroyed:V,unmounted:C,render:z,renderTracked:te,renderTriggered:$,errorCaptured:S,serverPrefetch:g,expose:T,inheritAttrs:O,components:j,directives:ae,filters:ce}=t;if(d&&Bl(d,r,null),o)for(const G in o){const Q=o[G];F(Q)&&(r[G]=Q.bind(n))}if(s){const G=s.call(n,n);X(G)&&(e.data=Wn(G))}if(vr=!0,i)for(const G in i){const Q=i[G],rt=F(Q)?Q.bind(n,n):F(Q.get)?Q.get.bind(n,n):Be,ln=!F(Q)&&F(Q.set)?Q.set.bind(n):Be,st=ve({get:rt,set:ln});Object.defineProperty(r,G,{enumerable:!0,configurable:!0,get:()=>st.value,set:Ce=>st.value=Ce})}if(l)for(const G in l)Ci(l[G],r,n,G);if(a){const G=F(a)?a.call(n):a;Reflect.ownKeys(G).forEach(Q=>{bl(Q,G[Q])})}f&&ms(f,e,"c");function ne(G,Q){W(Q)?Q.forEach(rt=>G(rt.bind(n))):Q&&G(Q.bind(n))}if(ne(Ol,h),ne(xi,m),ne(Cl,v),ne(Rl,P),ne(Al,k),ne(Dl,M),ne(Wl,S),ne(Nl,te),ne(Ml,$),ne(ki,R),ne(Ai,C),ne(Ll,g),W(T))if(T.length){const G=e.exposed||(e.exposed={});T.forEach(Q=>{Object.defineProperty(G,Q,{get:()=>n[Q],set:rt=>n[Q]=rt,enumerable:!0})})}else e.exposed||(e.exposed={});z&&e.render===Be&&(e.render=z),O!=null&&(e.inheritAttrs=O),j&&(e.components=j),ae&&(e.directives=ae),g&&Ei(e)}function Bl(e,t,n=Be){W(e)&&(e=Ir(e));for(const r in e){const s=e[r];let i;X(s)?"default"in s?i=gn(s.from||r,s.default,!0):i=gn(s.from||r):i=gn(s),oe(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function ms(e,t,n){Ve(W(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ci(e,t,n,r){let s=r.includes(".")?bi(n,r):()=>n[r];if(le(e)){const i=t[e];F(i)&&ir(s,i)}else if(F(e))ir(s,e.bind(n));else if(X(e))if(W(e))e.forEach(i=>Ci(i,t,n,r));else{const i=F(e.handler)?e.handler.bind(n):t[e.handler];F(i)&&ir(s,i,e)}}function Ri(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let a;return l?a=l:!s.length&&!n&&!r?a=t:(a={},s.length&&s.forEach(d=>Sn(a,d,o,!0)),Sn(a,t,o)),X(t)&&i.set(t,a),a}function Sn(e,t,n,r=!1){const{mixins:s,extends:i}=t;i&&Sn(e,i,n,!0),s&&s.forEach(o=>Sn(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const l=Vl[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const Vl={data:bs,props:ys,emits:ys,methods:Lt,computed:Lt,beforeCreate:be,created:be,beforeMount:be,mounted:be,beforeUpdate:be,updated:be,beforeDestroy:be,beforeUnmount:be,destroyed:be,unmounted:be,activated:be,deactivated:be,errorCaptured:be,serverPrefetch:be,components:Lt,directives:Lt,watch:Kl,provide:bs,inject:Ul};function bs(e,t){return t?e?function(){return he(F(e)?e.call(this,this):e,F(t)?t.call(this,this):t)}:t:e}function Ul(e,t){return Lt(Ir(e),Ir(t))}function Ir(e){if(W(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function be(e,t){return e?[...new Set([].concat(e,t))]:t}function Lt(e,t){return e?he(Object.create(null),e,t):t}function ys(e,t){return e?W(e)&&W(t)?[...new Set([...e,...t])]:he(Object.create(null),Yt(e),Yt(t??{})):t}function Kl(e,t){if(!e)return t;if(!t)return e;const n=he(Object.create(null),e);for(const r in t)n[r]=be(e[r],t[r]);return n}function Li(){return{app:null,config:{isNativeTag:Ws,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let zl=0;function Gl(e,t){return function(r,s=null){F(r)||(r=he({},r)),s!=null&&!X(s)&&(s=null);const i=Li(),o=new WeakSet,l=[];let a=!1;const d=i.app={_uid:zl++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:Ta,get config(){return i.config},set config(f){},use(f,...h){return o.has(f)||(f&&F(f.install)?(o.add(f),f.install(d,...h)):F(f)&&(o.add(f),f(d,...h))),d},mixin(f){return i.mixins.includes(f)||i.mixins.push(f),d},component(f,h){return h?(i.components[f]=h,d):i.components[f]},directive(f,h){return h?(i.directives[f]=h,d):i.directives[f]},mount(f,h,m){if(!a){const v=d._ceVNode||Ie(r,s);return v.appContext=i,m===!0?m="svg":m===!1&&(m=void 0),e(v,f,m),a=!0,d._container=f,f.__vue_app__=d,zn(v.component)}},onUnmount(f){l.push(f)},unmount(){a&&(Ve(l,d._instance,16),e(null,d._container),delete d._container.__vue_app__)},provide(f,h){return i.provides[f]=h,d},runWithContext(f){const h=wt;wt=d;try{return f()}finally{wt=h}}};return d}}let wt=null;function hf(e,t,n=J){const r=rn(),s=Pe(t),i=Et(t),o=Mi(e,s),l=il((a,d)=>{let f,h=J,m;return wl(()=>{const v=e[s];ue(f,v)&&(f=v,d())}),{get(){return a(),n.get?n.get(f):f},set(v){const P=n.set?n.set(v):v;if(!ue(P,f)&&!(h!==J&&ue(v,h)))return;const k=r.vnode.props;k&&(t in k||s in k||i in k)&&(`onUpdate:${t}`in k||`onUpdate:${s}`in k||`onUpdate:${i}`in k)||(f=v,d()),r.emit(`update:${t}`,P),ue(v,P)&&ue(v,h)&&!ue(P,m)&&d(),h=v,m=P}}});return l[Symbol.iterator]=()=>{let a=0;return{next(){return a<2?{value:a++?o||J:l,done:!1}:{done:!0}}}},l}const Mi=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Pe(t)}Modifiers`]||e[`${Et(t)}Modifiers`];function Jl(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||J;let s=n;const i=t.startsWith("update:"),o=i&&Mi(r,t.slice(7));o&&(o.trim&&(s=n.map(f=>le(f)?f.trim():f)),o.number&&(s=n.map(xo)));let l,a=r[l=pn(t)]||r[l=pn(Pe(t))];!a&&i&&(a=r[l=pn(Et(t))]),a&&Ve(a,e,6,s);const d=r[l+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Ve(d,e,6,s)}}const Yl=new WeakMap;function Ni(e,t,n=!1){const r=n?Yl:t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let o={},l=!1;if(!F(e)){const a=d=>{const f=Ni(d,t,!0);f&&(l=!0,he(o,f))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!l?(X(e)&&r.set(e,null),null):(W(i)?i.forEach(a=>o[a]=null):he(o,i),X(e)&&r.set(e,o),o)}function Un(e,t){return!e||!Lr(t)?!1:(t=t.slice(2).replace(/Once$/,""),Y(e,t[0].toLowerCase()+t.slice(1))||Y(e,Et(t))||Y(e,t))}function _s(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:o,attrs:l,emit:a,render:d,renderCache:f,props:h,data:m,setupState:v,ctx:P,inheritAttrs:k}=e,M=vn(e);let B,R;try{if(n.shapeFlag&4){const C=s||r,z=C;B=$e(d.call(z,C,f,h,v,m,P)),R=l}else{const C=t;B=$e(C.length>1?C(h,{attrs:l,slots:o,emit:a}):C(h,null)),R=t.props?l:Xl(l)}}catch(C){Bt.length=0,jn(C,e,1),B=Ie(ge)}let V=B;if(R&&k!==!1){const C=Object.keys(R),{shapeFlag:z}=V;C.length&&z&7&&(i&&C.some(Mr)&&(R=Zl(R,i)),V=et(V,R,!1,!0))}return n.dirs&&(V=et(V,null,!1,!0),V.dirs=V.dirs?V.dirs.concat(n.dirs):n.dirs),n.transition&&Jt(V,n.transition),B=V,vn(M),B}const Xl=e=>{let t;for(const n in e)(n==="class"||n==="style"||Lr(n))&&((t||(t={}))[n]=e[n]);return t},Zl=(e,t)=>{const n={};for(const r in e)(!Mr(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Ql(e,t,n){const{props:r,children:s,component:i}=e,{props:o,children:l,patchFlag:a}=t,d=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?ws(r,o,d):!!o;if(a&8){const f=t.dynamicProps;for(let h=0;h<f.length;h++){const m=f[h];if(Wi(o,r,m)&&!Un(d,m))return!0}}}else return(s||l)&&(!l||!l.$stable)?!0:r===o?!1:r?o?ws(r,o,d):!0:!!o;return!1}function ws(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const i=r[s];if(Wi(t,e,i)&&!Un(n,i))return!0}return!1}function Wi(e,t,n){const r=e[n],s=t[n];return n==="style"&&X(r)&&X(s)?!Hr(r,s):r!==s}function ql({vnode:e,parent:t,suspense:n},r){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.suspense.vnode.el=s.el=r,e=s),s===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}const Hi={},Fi=()=>Object.create(Hi),$i=e=>Object.getPrototypeOf(e)===Hi;function ea(e,t,n,r=!1){const s={},i=Fi();e.propsDefaults=Object.create(null),ji(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=r?s:ai(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function ta(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,l=K(s),[a]=e.propsOptions;let d=!1;if((r||o>0)&&!(o&16)){if(o&8){const f=e.vnode.dynamicProps;for(let h=0;h<f.length;h++){let m=f[h];if(Un(e.emitsOptions,m))continue;const v=t[m];if(a)if(Y(i,m))v!==i[m]&&(i[m]=v,d=!0);else{const P=Pe(m);s[P]=Sr(a,l,P,v,e,!1)}else v!==i[m]&&(i[m]=v,d=!0)}}}else{ji(e,t,s,i)&&(d=!0);let f;for(const h in l)(!t||!Y(t,h)&&((f=Et(h))===h||!Y(t,f)))&&(a?n&&(n[h]!==void 0||n[f]!==void 0)&&(s[h]=Sr(a,l,h,void 0,e,!0)):delete s[h]);if(i!==l)for(const h in i)(!t||!Y(t,h))&&(delete i[h],d=!0)}d&&ze(e.attrs,"set","")}function ji(e,t,n,r){const[s,i]=e.propsOptions;let o=!1,l;if(t)for(let a in t){if(Wt(a))continue;const d=t[a];let f;s&&Y(s,f=Pe(a))?!i||!i.includes(f)?n[f]=d:(l||(l={}))[f]=d:Un(e.emitsOptions,a)||(!(a in r)||d!==r[a])&&(r[a]=d,o=!0)}if(i){const a=K(n),d=l||J;for(let f=0;f<i.length;f++){const h=i[f];n[h]=Sr(s,a,h,d[h],e,!Y(d,h))}}return o}function Sr(e,t,n,r,s,i){const o=e[n];if(o!=null){const l=Y(o,"default");if(l&&r===void 0){const a=o.default;if(o.type!==Function&&!o.skipFactory&&F(a)){const{propsDefaults:d}=s;if(n in d)r=d[n];else{const f=sn(s);r=d[n]=a.call(null,t),f()}}else r=a;s.ce&&s.ce._setProp(n,r)}o[0]&&(i&&!l?r=!1:o[1]&&(r===""||r===Et(n))&&(r=!0))}return r}const na=new WeakMap;function Bi(e,t,n=!1){const r=n?na:t.propsCache,s=r.get(e);if(s)return s;const i=e.props,o={},l=[];let a=!1;if(!F(e)){const f=h=>{a=!0;const[m,v]=Bi(h,t,!0);he(o,m),v&&l.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!i&&!a)return X(e)&&r.set(e,mt),mt;if(W(i))for(let f=0;f<i.length;f++){const h=Pe(i[f]);vs(h)&&(o[h]=J)}else if(i)for(const f in i){const h=Pe(f);if(vs(h)){const m=i[f],v=o[h]=W(m)||F(m)?{type:m}:he({},m),P=v.type;let k=!1,M=!0;if(W(P))for(let B=0;B<P.length;++B){const R=P[B],V=F(R)&&R.name;if(V==="Boolean"){k=!0;break}else V==="String"&&(M=!1)}else k=F(P)&&P.name==="Boolean";v[0]=k,v[1]=M,(k||Y(v,"default"))&&l.push(h)}}const d=[o,l];return X(e)&&r.set(e,d),d}function vs(e){return e[0]!=="$"&&!Wt(e)}const Ur=e=>e==="_"||e==="_ctx"||e==="$stable",Kr=e=>W(e)?e.map($e):[$e(e)],ra=(e,t,n)=>{if(t._n)return t;const r=ml((...s)=>Kr(t(...s)),n);return r._c=!1,r},Vi=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Ur(s))continue;const i=e[s];if(F(i))t[s]=ra(s,i,r);else if(i!=null){const o=Kr(i);t[s]=()=>o}}},Ui=(e,t)=>{const n=Kr(t);e.slots.default=()=>n},Ki=(e,t,n)=>{for(const r in t)(n||!Ur(r))&&(e[r]=t[r])},sa=(e,t,n)=>{const r=e.slots=Fi();if(e.vnode.shapeFlag&32){const s=t._;s?(Ki(r,t,n),n&&Bs(r,"_",s,!0)):Vi(t,r)}else t&&Ui(e,t)},ia=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,o=J;if(r.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:Ki(s,t,n):(i=!t.$stable,Vi(t,s)),o=t}else t&&(Ui(e,t),o={default:1});if(i)for(const l in s)!Ur(l)&&o[l]==null&&delete s[l]},ye=ca;function pf(e){return oa(e)}function oa(e,t){const n=On();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:o,createText:l,createComment:a,setText:d,setElementText:f,parentNode:h,nextSibling:m,setScopeId:v=Be,insertStaticContent:P}=e,k=(c,u,p,w=null,b=null,y=null,A=void 0,E=null,I=!!u.dynamicChildren)=>{if(c===u)return;c&&!ct(c,u)&&(w=an(c),Ce(c,b,y,!0),c=null),u.patchFlag===-2&&(I=!1,u.dynamicChildren=null);const{type:_,ref:N,shapeFlag:D}=u;switch(_){case Kn:M(c,u,p,w);break;case ge:B(c,u,p,w);break;case cr:c==null&&R(u,p,w,A);break;case Ee:j(c,u,p,w,b,y,A,E,I);break;default:D&1?z(c,u,p,w,b,y,A,E,I):D&6?ae(c,u,p,w,b,y,A,E,I):(D&64||D&128)&&_.process(c,u,p,w,b,y,A,E,I,kt)}N!=null&&b?$t(N,c&&c.ref,y,u||c,!u):N==null&&c&&c.ref!=null&&$t(c.ref,null,y,c,!0)},M=(c,u,p,w)=>{if(c==null)r(u.el=l(u.children),p,w);else{const b=u.el=c.el;u.children!==c.children&&d(b,u.children)}},B=(c,u,p,w)=>{c==null?r(u.el=a(u.children||""),p,w):u.el=c.el},R=(c,u,p,w)=>{[c.el,c.anchor]=P(c.children,u,p,w,c.el,c.anchor)},V=({el:c,anchor:u},p,w)=>{let b;for(;c&&c!==u;)b=m(c),r(c,p,w),c=b;r(u,p,w)},C=({el:c,anchor:u})=>{let p;for(;c&&c!==u;)p=m(c),s(c),c=p;s(u)},z=(c,u,p,w,b,y,A,E,I)=>{if(u.type==="svg"?A="svg":u.type==="math"&&(A="mathml"),c==null)te(u,p,w,b,y,A,E,I);else{const _=c.el&&c.el._isVueCE?c.el:null;try{_&&_._beginPatch(),g(c,u,b,y,A,E,I)}finally{_&&_._endPatch()}}},te=(c,u,p,w,b,y,A,E)=>{let I,_;const{props:N,shapeFlag:D,transition:L,dirs:H}=c;if(I=c.el=o(c.type,y,N&&N.is,N),D&8?f(I,c.children):D&16&&S(c.children,I,null,w,b,ar(c,y),A,E),H&&it(c,null,w,"created"),$(I,c,c.scopeId,A,w),N){for(const Z in N)Z!=="value"&&!Wt(Z)&&i(I,Z,null,N[Z],y,w);"value"in N&&i(I,"value",null,N.value,y),(_=N.onVnodeBeforeMount)&&Ne(_,w,c)}H&&it(c,null,w,"beforeMount");const U=la(b,L);U&&L.beforeEnter(I),r(I,u,p),((_=N&&N.onVnodeMounted)||U||H)&&ye(()=>{_&&Ne(_,w,c),U&&L.enter(I),H&&it(c,null,w,"mounted")},b)},$=(c,u,p,w,b)=>{if(p&&v(c,p),w)for(let y=0;y<w.length;y++)v(c,w[y]);if(b){let y=b.subTree;if(u===y||Ji(y.type)&&(y.ssContent===u||y.ssFallback===u)){const A=b.vnode;$(c,A,A.scopeId,A.slotScopeIds,b.parent)}}},S=(c,u,p,w,b,y,A,E,I=0)=>{for(let _=I;_<c.length;_++){const N=c[_]=E?Ke(c[_]):$e(c[_]);k(null,N,u,p,w,b,y,A,E)}},g=(c,u,p,w,b,y,A)=>{const E=u.el=c.el;let{patchFlag:I,dynamicChildren:_,dirs:N}=u;I|=c.patchFlag&16;const D=c.props||J,L=u.props||J;let H;if(p&&ot(p,!1),(H=L.onVnodeBeforeUpdate)&&Ne(H,p,u,c),N&&it(u,c,p,"beforeUpdate"),p&&ot(p,!0),(D.innerHTML&&L.innerHTML==null||D.textContent&&L.textContent==null)&&f(E,""),_?T(c.dynamicChildren,_,E,p,w,ar(u,b),y):A||Q(c,u,E,null,p,w,ar(u,b),y,!1),I>0){if(I&16)O(E,D,L,p,b);else if(I&2&&D.class!==L.class&&i(E,"class",null,L.class,b),I&4&&i(E,"style",D.style,L.style,b),I&8){const U=u.dynamicProps;for(let Z=0;Z<U.length;Z++){const q=U[Z],re=D[q],fe=L[q];(fe!==re||q==="value")&&i(E,q,re,fe,b,p)}}I&1&&c.children!==u.children&&f(E,u.children)}else!A&&_==null&&O(E,D,L,p,b);((H=L.onVnodeUpdated)||N)&&ye(()=>{H&&Ne(H,p,u,c),N&&it(u,c,p,"updated")},w)},T=(c,u,p,w,b,y,A)=>{for(let E=0;E<u.length;E++){const I=c[E],_=u[E],N=I.el&&(I.type===Ee||!ct(I,_)||I.shapeFlag&198)?h(I.el):p;k(I,_,N,null,w,b,y,A,!0)}},O=(c,u,p,w,b)=>{if(u!==p){if(u!==J)for(const y in u)!Wt(y)&&!(y in p)&&i(c,y,u[y],null,b,w);for(const y in p){if(Wt(y))continue;const A=p[y],E=u[y];A!==E&&y!=="value"&&i(c,y,E,A,b,w)}"value"in p&&i(c,"value",u.value,p.value,b)}},j=(c,u,p,w,b,y,A,E,I)=>{const _=u.el=c?c.el:l(""),N=u.anchor=c?c.anchor:l("");let{patchFlag:D,dynamicChildren:L,slotScopeIds:H}=u;H&&(E=E?E.concat(H):H),c==null?(r(_,p,w),r(N,p,w),S(u.children||[],p,N,b,y,A,E,I)):D>0&&D&64&&L&&c.dynamicChildren&&c.dynamicChildren.length===L.length?(T(c.dynamicChildren,L,p,b,y,A,E),(u.key!=null||b&&u===b.subTree)&&zr(c,u,!0)):Q(c,u,p,N,b,y,A,E,I)},ae=(c,u,p,w,b,y,A,E,I)=>{u.slotScopeIds=E,c==null?u.shapeFlag&512?b.ctx.activate(u,p,w,A,I):ce(u,p,w,b,y,A,I):ht(c,u,I)},ce=(c,u,p,w,b,y,A)=>{const E=c.component=ya(c,w,b);if(Bn(c)&&(E.ctx.renderer=kt),_a(E,!1,A),E.asyncDep){if(b&&b.registerDep(E,ne,A),!c.el){const I=E.subTree=Ie(ge);B(null,I,u,p),c.placeholder=I.el}}else ne(E,c,u,p,b,y,A)},ht=(c,u,p)=>{const w=u.component=c.component;if(Ql(c,u,p))if(w.asyncDep&&!w.asyncResolved){G(w,u,p);return}else w.next=u,w.update();else u.el=c.el,w.vnode=u},ne=(c,u,p,w,b,y,A)=>{const E=()=>{if(c.isMounted){let{next:D,bu:L,u:H,parent:U,vnode:Z}=c;{const Le=zi(c);if(Le){D&&(D.el=Z.el,G(c,D,A)),Le.asyncDep.then(()=>{ye(()=>{c.isUnmounted||_()},b)});return}}let q=D,re;ot(c,!1),D?(D.el=Z.el,G(c,D,A)):D=Z,L&&er(L),(re=D.props&&D.props.onVnodeBeforeUpdate)&&Ne(re,U,D,Z),ot(c,!0);const fe=_s(c),Re=c.subTree;c.subTree=fe,k(Re,fe,h(Re.el),an(Re),c,b,y),D.el=fe.el,q===null&&ql(c,fe.el),H&&ye(H,b),(re=D.props&&D.props.onVnodeUpdated)&&ye(()=>Ne(re,U,D,Z),b)}else{let D;const{el:L,props:H}=u,{bm:U,m:Z,parent:q,root:re,type:fe}=c,Re=_t(u);ot(c,!1),U&&er(U),!Re&&(D=H&&H.onVnodeBeforeMount)&&Ne(D,q,u),ot(c,!0);{re.ce&&re.ce._hasShadowRoot()&&re.ce._injectChildStyle(fe,c.parent?c.parent.type:void 0);const Le=c.subTree=_s(c);k(null,Le,p,w,c,b,y),u.el=Le.el}if(Z&&ye(Z,b),!Re&&(D=H&&H.onVnodeMounted)){const Le=u;ye(()=>Ne(D,q,Le),b)}(u.shapeFlag&256||q&&_t(q.vnode)&&q.vnode.shapeFlag&256)&&c.a&&ye(c.a,b),c.isMounted=!0,u=p=w=null}};c.scope.on();const I=c.effect=new zs(E);c.scope.off();const _=c.update=I.run.bind(I),N=c.job=I.runIfDirty.bind(I);N.i=c,N.id=c.uid,I.scheduler=()=>Vr(N),ot(c,!0),_()},G=(c,u,p)=>{u.component=c;const w=c.vnode.props;c.vnode=u,c.next=null,ta(c,u.props,w,p),ia(c,u.children,p),Je(),cs(c),Ye()},Q=(c,u,p,w,b,y,A,E,I=!1)=>{const _=c&&c.children,N=c?c.shapeFlag:0,D=u.children,{patchFlag:L,shapeFlag:H}=u;if(L>0){if(L&128){ln(_,D,p,w,b,y,A,E,I);return}else if(L&256){rt(_,D,p,w,b,y,A,E,I);return}}H&8?(N&16&&xt(_,b,y),D!==_&&f(p,D)):N&16?H&16?ln(_,D,p,w,b,y,A,E,I):xt(_,b,y,!0):(N&8&&f(p,""),H&16&&S(D,p,w,b,y,A,E,I))},rt=(c,u,p,w,b,y,A,E,I)=>{c=c||mt,u=u||mt;const _=c.length,N=u.length,D=Math.min(_,N);let L;for(L=0;L<D;L++){const H=u[L]=I?Ke(u[L]):$e(u[L]);k(c[L],H,p,null,b,y,A,E,I)}_>N?xt(c,b,y,!0,!1,D):S(u,p,w,b,y,A,E,I,D)},ln=(c,u,p,w,b,y,A,E,I)=>{let _=0;const N=u.length;let D=c.length-1,L=N-1;for(;_<=D&&_<=L;){const H=c[_],U=u[_]=I?Ke(u[_]):$e(u[_]);if(ct(H,U))k(H,U,p,null,b,y,A,E,I);else break;_++}for(;_<=D&&_<=L;){const H=c[D],U=u[L]=I?Ke(u[L]):$e(u[L]);if(ct(H,U))k(H,U,p,null,b,y,A,E,I);else break;D--,L--}if(_>D){if(_<=L){const H=L+1,U=H<N?u[H].el:w;for(;_<=L;)k(null,u[_]=I?Ke(u[_]):$e(u[_]),p,U,b,y,A,E,I),_++}}else if(_>L)for(;_<=D;)Ce(c[_],b,y,!0),_++;else{const H=_,U=_,Z=new Map;for(_=U;_<=L;_++){const Se=u[_]=I?Ke(u[_]):$e(u[_]);Se.key!=null&&Z.set(Se.key,_)}let q,re=0;const fe=L-U+1;let Re=!1,Le=0;const At=new Array(fe);for(_=0;_<fe;_++)At[_]=0;for(_=H;_<=D;_++){const Se=c[_];if(re>=fe){Ce(Se,b,y,!0);continue}let Me;if(Se.key!=null)Me=Z.get(Se.key);else for(q=U;q<=L;q++)if(At[q-U]===0&&ct(Se,u[q])){Me=q;break}Me===void 0?Ce(Se,b,y,!0):(At[Me-U]=_+1,Me>=Le?Le=Me:Re=!0,k(Se,u[Me],p,null,b,y,A,E,I),re++)}const ns=Re?aa(At):mt;for(q=ns.length-1,_=fe-1;_>=0;_--){const Se=U+_,Me=u[Se],rs=u[Se+1],ss=Se+1<N?rs.el||Gi(rs):w;At[_]===0?k(null,Me,p,ss,b,y,A,E,I):Re&&(q<0||_!==ns[q]?st(Me,p,ss,2):q--)}}},st=(c,u,p,w,b=null)=>{const{el:y,type:A,transition:E,children:I,shapeFlag:_}=c;if(_&6){st(c.component.subTree,u,p,w);return}if(_&128){c.suspense.move(u,p,w);return}if(_&64){A.move(c,u,p,kt);return}if(A===Ee){r(y,u,p);for(let D=0;D<I.length;D++)st(I[D],u,p,w);r(c.anchor,u,p);return}if(A===cr){V(c,u,p);return}if(w!==2&&_&1&&E)if(w===0)E.beforeEnter(y),r(y,u,p),ye(()=>E.enter(y),b);else{const{leave:D,delayLeave:L,afterLeave:H}=E,U=()=>{c.ctx.isUnmounted?s(y):r(y,u,p)},Z=()=>{y._isLeaving&&y[He](!0),D(y,()=>{U(),H&&H()})};L?L(y,U,Z):Z()}else r(y,u,p)},Ce=(c,u,p,w=!1,b=!1)=>{const{type:y,props:A,ref:E,children:I,dynamicChildren:_,shapeFlag:N,patchFlag:D,dirs:L,cacheIndex:H,memo:U}=c;if(D===-2&&(b=!1),E!=null&&(Je(),$t(E,null,p,c,!0),Ye()),H!=null&&(u.renderCache[H]=void 0),N&256){u.ctx.deactivate(c);return}const Z=N&1&&L,q=!_t(c);let re;if(q&&(re=A&&A.onVnodeBeforeUnmount)&&Ne(re,u,c),N&6)vo(c.component,p,w);else{if(N&128){c.suspense.unmount(p,w);return}Z&&it(c,null,u,"beforeUnmount"),N&64?c.type.remove(c,u,p,kt,w):_&&!_.hasOnce&&(y!==Ee||D>0&&D&64)?xt(_,u,p,!1,!0):(y===Ee&&D&384||!b&&N&16)&&xt(I,u,p),w&&es(c)}const fe=U!=null&&H==null;(q&&(re=A&&A.onVnodeUnmounted)||Z||fe)&&ye(()=>{re&&Ne(re,u,c),Z&&it(c,null,u,"unmounted"),fe&&(c.el=null)},p)},es=c=>{const{type:u,el:p,anchor:w,transition:b}=c;if(u===Ee){wo(p,w);return}if(u===cr){C(c);return}const y=()=>{s(p),b&&!b.persisted&&b.afterLeave&&b.afterLeave()};if(c.shapeFlag&1&&b&&!b.persisted){const{leave:A,delayLeave:E}=b,I=()=>A(p,y);E?E(c.el,y,I):I()}else y()},wo=(c,u)=>{let p;for(;c!==u;)p=m(c),s(c),c=p;s(u)},vo=(c,u,p)=>{const{bum:w,scope:b,job:y,subTree:A,um:E,m:I,a:_}=c;Is(I),Is(_),w&&er(w),b.stop(),y&&(y.flags|=8,Ce(A,c,u,p)),E&&ye(E,u),ye(()=>{c.isUnmounted=!0},u)},xt=(c,u,p,w=!1,b=!1,y=0)=>{for(let A=y;A<c.length;A++)Ce(c[A],u,p,w,b)},an=c=>{if(c.shapeFlag&6)return an(c.component.subTree);if(c.shapeFlag&128)return c.suspense.next();const u=m(c.anchor||c.el),p=u&&u[yi];return p?m(p):u};let qn=!1;const ts=(c,u,p)=>{let w;c==null?u._vnode&&(Ce(u._vnode,null,null,!0),w=u._vnode.component):k(u._vnode||null,c,u,null,null,null,p),u._vnode=c,qn||(qn=!0,cs(w),pi(),qn=!1)},kt={p:k,um:Ce,m:st,r:es,mt:ce,mc:S,pc:Q,pbc:T,n:an,o:e};return{render:ts,hydrate:void 0,createApp:Gl(ts)}}function ar({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function ot({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function la(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function zr(e,t,n=!1){const r=e.children,s=t.children;if(W(r)&&W(s))for(let i=0;i<r.length;i++){const o=r[i];let l=s[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=s[i]=Ke(s[i]),l.el=o.el),!n&&l.patchFlag!==-2&&zr(o,l)),l.type===Kn&&(l.patchFlag===-1&&(l=s[i]=Ke(l)),l.el=o.el),l.type===ge&&!l.el&&(l.el=o.el)}}function aa(e){const t=e.slice(),n=[0];let r,s,i,o,l;const a=e.length;for(r=0;r<a;r++){const d=e[r];if(d!==0){if(s=n[n.length-1],e[s]<d){t[r]=s,n.push(r);continue}for(i=0,o=n.length-1;i<o;)l=i+o>>1,e[n[l]]<d?i=l+1:o=l;d<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function zi(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:zi(t)}function Is(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Gi(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Gi(t.subTree):null}const Ji=e=>e.__isSuspense;function ca(e,t){t&&t.pendingBranch?W(e)?t.effects.push(...e):t.effects.push(e):gl(e)}const Ee=Symbol.for("v-fgt"),Kn=Symbol.for("v-txt"),ge=Symbol.for("v-cmt"),cr=Symbol.for("v-stc"),Bt=[];let we=null;function Er(e=!1){Bt.push(we=e?null:[])}function fa(){Bt.pop(),we=Bt[Bt.length-1]||null}let It=1;function En(e,t=!1){It+=e,e<0&&we&&t&&(we.hasOnce=!0)}function Yi(e){return e.dynamicChildren=It>0?we||mt:null,fa(),It>0&&we&&we.push(e),e}function gf(e,t,n,r,s,i){return Yi(Zi(e,t,n,r,s,i,!0))}function Tr(e,t,n,r,s){return Yi(Ie(e,t,n,r,s,!0))}function Xt(e){return e?e.__v_isVNode===!0:!1}function ct(e,t){return e.type===t.type&&e.key===t.key}const Xi=({key:e})=>e??null,mn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?le(e)||oe(e)||F(e)?{i:de,r:e,k:t,f:!!n}:e:null);function Zi(e,t=null,n=null,r=0,s=null,i=e===Ee?0:1,o=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Xi(t),ref:t&&mn(t),scopeId:mi,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:de};return l?(Gr(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=le(n)?8:16),It>0&&!o&&we&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&we.push(a),a}const Ie=ua;function ua(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===Di)&&(e=ge),Xt(e)){const l=et(e,t,!0);return n&&Gr(l,n),It>0&&!i&&we&&(l.shapeFlag&6?we[we.indexOf(e)]=l:we.push(l)),l.patchFlag=-2,l}if(Sa(e)&&(e=e.__vccOpts),t){t=da(t);let{class:l,style:a}=t;l&&!le(l)&&(t.class=Rn(l)),X(a)&&(Fn(a)&&!W(a)&&(a=he({},a)),t.style=Cn(a))}const o=le(e)?1:Ji(e)?128:_i(e)?64:X(e)?4:F(e)?2:0;return Zi(e,t,n,r,s,o,i,!0)}function da(e){return e?Fn(e)||$i(e)?he({},e):e:null}function et(e,t,n=!1,r=!1){const{props:s,ref:i,patchFlag:o,children:l,transition:a}=e,d=t?ga(s||{},t):s,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&Xi(d),ref:t&&t.ref?n&&i?W(i)?i.concat(mn(t)):[i,mn(t)]:mn(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ee?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&et(e.ssContent),ssFallback:e.ssFallback&&et(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&r&&Jt(f,a.clone(f)),f}function ha(e=" ",t=0){return Ie(Kn,null,e,t)}function pa(e="",t=!1){return t?(Er(),Tr(ge,null,e)):Ie(ge,null,e)}function $e(e){return e==null||typeof e=="boolean"?Ie(ge):W(e)?Ie(Ee,null,e.slice()):Xt(e)?Ke(e):Ie(Kn,null,String(e))}function Ke(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:et(e)}function Gr(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(W(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Gr(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!$i(t)?t._ctx=de:s===3&&de&&(de.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else F(t)?(t={default:t,_ctx:de},n=32):(t=String(t),r&64?(n=16,t=[ha(t)]):n=8);e.children=t,e.shapeFlag|=n}function ga(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=Rn([t.class,r.class]));else if(s==="style")t.style=Cn([t.style,r.style]);else if(Lr(s)){const i=t[s],o=r[s];o&&i!==o&&!(W(i)&&i.includes(o))?t[s]=i?[].concat(i,o):o:o==null&&i==null&&!Mr(s)&&(t[s]=o)}else s!==""&&(t[s]=r[s])}return t}function Ne(e,t,n,r=null){Ve(e,t,7,[n,r])}const ma=Li();let ba=0;function ya(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||ma,i={uid:ba++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ks(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Bi(r,s),emitsOptions:Ni(r,s),emit:null,emitted:null,propsDefaults:J,inheritAttrs:r.inheritAttrs,ctx:J,data:J,props:J,attrs:J,slots:J,refs:J,setupState:J,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=Jl.bind(null,i),e.ce&&e.ce(i),i}let me=null;const rn=()=>me||de;let Tn,xr;{const e=On(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};Tn=t("__VUE_INSTANCE_SETTERS__",n=>me=n),xr=t("__VUE_SSR_SETTERS__",n=>Zt=n)}const sn=e=>{const t=me;return Tn(e),e.scope.on(),()=>{e.scope.off(),Tn(t)}},Ss=()=>{me&&me.scope.off(),Tn(null)};function Qi(e){return e.vnode.shapeFlag&4}let Zt=!1;function _a(e,t=!1,n=!1){t&&xr(t);const{props:r,children:s}=e.vnode,i=Qi(e);ea(e,r,i,t),sa(e,s,n||t);const o=i?wa(e,t):void 0;return t&&xr(!1),o}function wa(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,$l);const{setup:r}=n;if(r){Je();const s=e.setupContext=r.length>1?eo(e):null,i=sn(e),o=tn(r,e,0,[e.props,s]),l=Fs(o);if(Ye(),i(),(l||e.sp)&&!_t(e)&&Ei(e),l){if(o.then(Ss,Ss),t)return o.then(a=>{Es(e,a)}).catch(a=>{jn(a,e,0)});e.asyncDep=o}else Es(e,o)}else qi(e)}function Es(e,t,n){F(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:X(t)&&(e.setupState=fi(t)),qi(e)}function qi(e,t,n){const r=e.type;e.render||(e.render=r.render||Be);{const s=sn(e);Je();try{jl(e)}finally{Ye(),s()}}}const va={get(e,t){return pe(e,"get",""),e[t]}};function eo(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,va),slots:e.slots,emit:e.emit,expose:t}}function zn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(fi(el(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in jt)return jt[n](e)},has(t,n){return n in t||n in jt}})):e.proxy}function Ia(e,t=!0){return F(e)?e.displayName||e.name:e.name||t&&e.__name}function Sa(e){return F(e)&&"__vccOpts"in e}const ve=(e,t)=>cl(e,t,Zt);function mf(e,t,n){try{En(-1);const r=arguments.length;return r===2?X(t)&&!W(t)?Xt(t)?Ie(e,null,[t]):Ie(e,t):Ie(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Xt(n)&&(n=[n]),Ie(e,t,n))}finally{En(1)}}function bf(e,t,n,r){const s=n[r];if(s&&Ea(s,e))return s;const i=t();return i.memo=e.slice(),i.cacheIndex=r,n[r]=i}function Ea(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(ue(n[r],t[r]))return!1;return It>0&&we&&we.push(e),!0}const Ta="3.5.34",yf="0.9.6",Ot={orientation:"portrait",capsuleHidden:!1};function tt(){return new DOMException("方向请求已取消","AbortError")}let Vt;function _f(e){return Vt=e,()=>{Vt===e&&(Vt=void 0)}}function wf(e){if(e.aborted)return Promise.reject(tt());if(!Vt)return Promise.resolve();const t=Vt();return new Promise((n,r)=>{const s=()=>r(tt());e.addEventListener("abort",s,{once:!0}),t.then(()=>{e.removeEventListener("abort",s),n()},i=>{e.removeEventListener("abort",s),r(i)})})}function xa(e){return new Promise((t,n)=>{if(e.aborted){n(tt());return}let r=requestAnimationFrame(()=>{r=requestAnimationFrame(s)});function s(){e.removeEventListener("abort",i),t()}function i(){cancelAnimationFrame(r),n(tt())}e.addEventListener("abort",i,{once:!0})})}function vf(e,t){if(t.aborted)return Promise.reject(tt());const n=e.flatMap(r=>r&&typeof r.getAnimations=="function"?r.getAnimations().filter(s=>s.effect?.getComputedTiming().iterations!==1/0):[]);return n.length?new Promise((r,s)=>{const i=()=>s(tt());t.addEventListener("abort",i,{once:!0}),Promise.allSettled(n.map(o=>o.finished)).then(()=>{t.removeEventListener("abort",i),r()})}):Promise.resolve()}function If(e){const t=e.waitForLayout??xa,n=new Set;let r=Ot,s=0;function i(){for(const o of[...n])try{o()}catch{}}return{async applyDisplay(o,l){if(l.aborted)throw tt();const a=++s,d={orientation:o.mode,capsuleHidden:o.hideCapsule},f=()=>{a===s&&(s+=1,e.apply(r),i())};l.addEventListener("abort",f,{once:!0});try{if(e.apply(d),await t(l),l.aborted||a!==s)throw tt();r=d,i()}finally{l.removeEventListener("abort",f)}},reset(){s+=1;const o=r.orientation!==Ot.orientation||r.capsuleHidden!==Ot.capsuleHidden;r=Ot,e.apply(Ot),o&&i()},onViewportChange(o){return n.add(o),()=>{n.delete(o)}},notifyViewportChange:i}}const ka="[data-hb-sdk-fullscreen-exit]";function Sf(e){const t=()=>{const r=e();if(r)for(const s of[...document.body.children])s.matches(ka)&&r.append(s)},n=new MutationObserver(t);return n.observe(document.body,{childList:!0}),t(),()=>n.disconnect()}const Qt=500,Aa=new Set(["authorization","cookie","proxy-authorization","set-cookie","token","x-pkey","api-key","apikey","x-api-key","x-auth-token","x-access-token","session","session-id","jwt","refresh-token","x-csrf-token"]),Da=/(authorization|cookie|password|passwd|secret|token|pkey|private[_-]?key|access[_-]?key|client[_-]?secret|api[_-]?key|apikey|session|jwt|refresh[_-]?token|csrf)/i;function kr(e){if(!e)return e;try{const t=new URL(e);if(t.username="",t.password="",Ts(t.searchParams),t.hash&&t.hash.length>1){const n=t.hash.slice(1);if(n.includes("=")){const r=new URLSearchParams(n);Ts(r)&&(t.hash=r.toString())}}return t.toString()}catch{return no(e)}}function Pa(e){return e?Object.fromEntries(Object.entries(e).map(([t,n])=>[t,Ca(t)?"[redacted]":n])):{}}function Ar(e){if(e!==void 0){if(typeof e=="string")return to(e);if(typeof e=="number"||typeof e=="boolean"||e===null)return e;try{const t=Dr(e),n=JSON.stringify(t);return n===void 0?"[unserializable]":n.length<=Qt?t:Jr(n,Qt)}catch{return"[unserializable]"}}}function qt(e){return Array.isArray(e)?e.slice(0,20).map(t=>qt(t)):typeof e=="string"?Ra(e)?kr(e):to(e):typeof e=="number"||typeof e=="boolean"||e===null||e===void 0?e:Pr(e)?Object.fromEntries(Object.entries(e).map(([t,n])=>{const r=t.trim().toLowerCase();return Tt(t)?[t,"[redacted]"]:r==="headers"&&Pr(n)?[t,Pa(Object.fromEntries(Object.entries(n).flatMap(([s,i])=>typeof i=="string"?[[s,i]]:[])))]:(r==="url"||r.endsWith("_url")||r.endsWith("url"))&&typeof n=="string"?[t,kr(n)]:[t,qt(n)]})):Ar(e)}function Oa(e){return e&&e.replace(/https?:\/\/[^\s]+/gi,t=>kr(t.replace(/[),.;]+$/g,"")))}function Ca(e){const t=e.trim().toLowerCase();return Aa.has(t)||Tt(t)||t.startsWith("x-heybox-")||t.startsWith("x-xhh-")}function Tt(e){return Da.test(e.trim())}function to(e){const t=e.trim();if(t.startsWith("{")&&t.endsWith("}")||t.startsWith("[")&&t.endsWith("]"))try{return Ar(JSON.parse(t))}catch{}if(t.includes("=")&&!t.includes(`
|
|
2
|
+
`)&&t.length<=Qt*2)try{const n=new URLSearchParams(t);if([...n.keys()].length>0){const r=Object.fromEntries([...n.entries()].map(([s,i])=>[s,Tt(s)?"[redacted]":i]));return Ar(r)}}catch{}return Jr(no(e),Qt)}function Dr(e){return Array.isArray(e)?e.slice(0,20).map(t=>Dr(t)):Pr(e)?Object.fromEntries(Object.entries(e).map(([t,n])=>[t,Tt(t)?"[redacted]":Dr(n)])):typeof e=="string"?Jr(e,Qt):e}function Ts(e){let t=!1;for(const n of[...e.keys()])Tt(n)&&(e.set(n,"[redacted]"),t=!0);return t}function no(e){return e.replace(/([?&#]|^|[?&])([^=&#\s]+)=([^&#\s]*)/g,(t,n,r)=>Tt(r)?`${n}${r}=[redacted]`:t)}function Ra(e){return/^https?:\/\//i.test(e.trim())||/^[a-z][a-z0-9+.-]*:\/\//i.test(e.trim())}function Jr(e,t){return e.length<=t?e:`${e.slice(0,t)}…(truncated, total=${e.length})`}function Pr(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ct(e,t){return Oa(String(qt(e))).slice(0,t)}function La(e){if(!e||typeof e!="object")return;const t=e;if(!(typeof t.interactionId!="string"||!/^[a-zA-Z0-9_-]{1,100}$/.test(t.interactionId)||typeof t.kind!="string"||!["toast","loading","dialog","effect"].includes(t.kind)||typeof t.mode!="string"||!["simulated","browser"].includes(t.mode)||typeof t.method!="string"||!Number.isFinite(t.startedAt)))return{interactionId:t.interactionId,kind:t.kind,mode:t.mode,method:Ct(t.method,100),startedAt:t.startedAt,...typeof t.callId=="string"?{callId:Ct(t.callId,100)}:{},...typeof t.message=="string"?{message:Ct(t.message,512)}:{},...typeof t.title=="string"?{title:Ct(t.title,120)}:{},...t.status==="success"||t.status==="error"?{status:t.status}:{},...typeof t.dismissible=="boolean"?{dismissible:t.dismissible}:{},...Array.isArray(t.actions)?{actions:t.actions.slice(0,4).filter(n=>typeof n=="string").map(n=>Ct(n,40))}:{}}}const Ma="/__hb_sdk__/diagnostics",Na="/__hb_sdk__/resources",Wa=16;let nt={instanceId:null,controller:new AbortController,records:new Map};const Or=new Set;function Ef(e,t){const n=nt,r={instanceId:e,emit:t,controller:new AbortController,records:new Map};return nt=r,xs(n,"宿主呈现实例已替换"),{snapshot:()=>ro(r),dispose:()=>xs(r,"宿主呈现实例已结束")}}function xs(e,t){if(!e.controller.signal.aborted){e.controller.abort(new DOMException(t,"AbortError"));for(const n of[...e.records.values()])try{n.finish("closed")}catch{}}}function Yr(){return nt.controller.signal}function Tf(){return nt.controller.signal.aborted?{instanceId:null,interactions:[]}:ro(nt)}function ro(e){return{instanceId:e.instanceId,interactions:[...e.records.values()].map(t=>so(t.value))}}function so(e){return La(e)}function Ha(e){return Or.add(e),()=>{Or.delete(e)}}function ks(){for(const e of[...Or])try{e()}catch{}}function Xr(e,t){const n=nt;if(n.controller.signal.aborted)throw new Error("宿主呈现实例已结束");if(n.records.size>=Wa)throw new Error("待处理宿主交互过多");const r={...e,interactionId:crypto.randomUUID(),startedAt:Date.now()},s=o=>{const l=n.emit;if(l)try{const a=so(r),d=Date.now();l({source:"host",phase:"presentation",method:e.method,callId:e.callId,interaction:{...a,state:o},level:"info",timestamp:d,startedAt:r.startedAt,durationMs:Math.max(0,d-r.startedAt),message:[e.method,o,a.message,a.title].filter(Boolean).join(" · ")})}catch{}},i=o=>{if(n.records.delete(r.interactionId))try{t?.(o)}finally{s(o),ks()}};return n.records.set(r.interactionId,{value:r,finish:i}),s("shown"),n.records.has(r.interactionId)&&ks(),{interactionId:r.interactionId,get active(){return n.records.has(r.interactionId)},finish:i}}function As(){for(const e of nt.records.values())if(e.value.kind==="toast"||e.value.kind==="loading")return e.value}function Gn(e,t){for(const n of[...nt.records.values()])(n.value.kind==="toast"||n.value.kind==="loading")&&(!t||n.value.kind===t)&&n.finish(e)}const Ds="hb-sdk-feedback-style",Fa=2e3,$a={light:20,medium:40,heavy:80},ja=120,Ba=`
|
|
3
|
+
.host-overlay-layer.hb-sdk-feedback-vibrate-flash {
|
|
4
|
+
background: rgba(255, 255, 255, 0.22);
|
|
5
|
+
}
|
|
6
|
+
`;let Mt;const Cr=new Set;function xf(e){let t=As();const n=s=>{s?s.kind==="toast"?e({kind:"toast",message:s.message??"",...s.status?{status:s.status}:{}}):e({kind:"loading",dismissible:s.dismissible===!0}):e(void 0)},r=Ha(()=>{const s=As();s!==t&&(t=s,n(s))});try{t&&n(t)}catch(s){throw r(),s}return r}function kf(e,t){const n=Yr();if(Gn("replaced"),n.aborted)return Promise.resolve();let r;const s=Xr({kind:"toast",mode:"simulated",method:"ui.showToast",...e,...t?.requestId?{callId:t.requestId}:{}},()=>{r!==void 0&&window.clearTimeout(r)});return s.active&&(r=window.setTimeout(()=>s.finish("expired"),Fa)),Promise.resolve()}function Af(e,t){const n=Yr();return Gn("replaced"),n.aborted||Xr({kind:"loading",mode:"simulated",method:"ui.showLoading",dismissible:e?.dismissible===!0,...t?.requestId?{callId:t.requestId}:{}}),Promise.resolve()}function Df(){return Gn("hidden","loading"),Promise.resolve()}function Pf(){Gn("closed");for(const e of[...Cr])e();Mt?.finish("closed")}async function Of(e,t){Va();const n=AbortSignal.any([Yr(),...t?.signal?[t.signal]:[]]);if(!await za(Math.max(0,e.delay),n)||n.aborted||!Ua(n,t?.requestId))return;const s=navigator.vibrate;if(typeof s=="function")try{s.call(navigator,$a[e.intensity])}catch{}}function Cf(e){document.documentElement.dataset.screenshotChromeHidden=e?"true":"false"}function Va(){if(document.getElementById(Ds))return;const e=document.createElement("style");e.id=Ds,e.textContent=Ba,document.head.appendChild(e)}function Ua(e,t){if(Mt?.finish("replaced"),e.aborted)return!1;const n=Ka();let r,s;return s=Xr({kind:"effect",mode:"simulated",method:"device.vibrate",title:"震动预览",...t?{callId:t}:{}},()=>{r!==void 0&&window.clearTimeout(r),n.classList.remove("hb-sdk-feedback-vibrate-flash"),Mt===s&&(Mt=void 0)}),s.active?(Mt=s,n.classList.add("hb-sdk-feedback-vibrate-flash"),r=window.setTimeout(()=>s?.finish("completed"),ja),!0):!1}function Ka(){return document.querySelector("#host-overlay-layer")??document.body}function za(e,t){return t.aborted?Promise.resolve(!1):e<=0?Promise.resolve(!0):new Promise(n=>{let r,s=!1;const i=a=>{s||(s=!0,r!==void 0&&window.clearTimeout(r),t.removeEventListener("abort",o),Cr.delete(l),n(a))},o=()=>i(!1),l=()=>i(!1);r=window.setTimeout(()=>i(!0),e),Cr.add(l),t.addEventListener("abort",o,{once:!0})})}const on="desktop";function Ga(e){return e===on}const fr={width:440,height:956},Ps={top:1.32,right:3.4,bottom:1.32,left:3.4},ur={width:410,height:914},Os={top:2.05,right:4.8,bottom:1.8,left:4.1};function Cs(e,t,n){const r=e.width/(1-(t.left+t.right)/100),s=e.height/(1-(t.top+t.bottom)/100),i=n.width*n.radiusWidthRatio;return{frameWidth:r,frameHeight:s,frameAssetWidth:n.width,frameAssetHeight:n.height,screenRadius:{x:i*(r/n.width),y:i*(s/n.height)}}}const Zr=[{id:"iphone-16-pro-max",label:"iPhone 16 Pro Max",screenWidth:fr.width,screenHeight:fr.height,...Cs(fr,Ps,{width:415,height:843,radiusWidthRatio:.122126436781609}),maxPresentationScale:1,pixelRatio:3,statusBarHeight:55,safeAreaInsets:{top:55,right:0,bottom:34,left:0},landscape:{statusBarHeight:0,safeAreaInsets:{top:0,right:62,bottom:21,left:62}},screenRect:Ps,toolbarLeft:53.67,platform:"ios"},{id:"pixel-9-pro",label:"Pixel 9 Pro",screenWidth:ur.width,screenHeight:ur.height,...Cs(ur,Os,{width:353,height:745,radiusWidthRatio:.126666666666667}),maxPresentationScale:1,pixelRatio:2.625,statusBarHeight:50,safeAreaInsets:{top:50,right:0,bottom:24,left:0},landscape:{statusBarHeight:0,safeAreaInsets:{top:0,right:0,bottom:24,left:50}},screenRect:Os,toolbarLeft:44.69,platform:"android"}],Ja=Zr[0];function Jn(e){return Zr.find(t=>t.id===e)??Ja}function Ya(e,t,n=!1){return t==="portrait"?{screenWidth:e.screenWidth,screenHeight:e.screenHeight,pixelRatio:e.pixelRatio,statusBarHeight:n?0:e.statusBarHeight,safeAreaInsets:{...e.safeAreaInsets}}:{screenWidth:e.screenHeight,screenHeight:e.screenWidth,pixelRatio:e.pixelRatio,statusBarHeight:e.landscape.statusBarHeight,safeAreaInsets:{...e.landscape.safeAreaInsets}}}function Xa(){let e;const t=[],n=crypto.randomUUID();let r=0,s=!1,i,o=!1;const l=new Set;let a=0,d=0;const f=256;let h=!1,m,v,P=!1;const k=S=>new TextEncoder().encode(JSON.stringify(S)).length,M=(S,g)=>{if(new TextEncoder().encode(S).length<=g)return S;let T=0,O=S.length;for(;T<O;){const j=Math.ceil((T+O)/2);new TextEncoder().encode(S.slice(0,j)).length<=g?T=j:O=j-1}return S.slice(0,T)};function B(){const S=navigator.userAgent,g=/Edg\//.test(S)?"Edge":/Chrome\//.test(S)?"Chrome":/Firefox\//.test(S)?"Firefox":/Safari\//.test(S)?"Safari":void 0,O=navigator.userAgentData?.platform||(/Windows/.test(S)?"Windows":/Android/.test(S)?"Android":/iPhone|iPad/.test(S)?"iOS":/Macintosh|Mac OS X/.test(S)?"macOS":/Linux/.test(S)?"Linux":void 0);return{...g?{browser:g}:{},...O?{os:O}:{}}}async function R(S){if(!e)throw new Error("诊断尚未配置");const g=S.operation==="attach"?S:{...S,targetId:m.targetId,ownerId:m.ownerId},T=await fetch(Ma,{method:"POST",headers:{"content-type":"application/json","x-hb-sdk-csrf":e.csrfToken,"x-hb-sdk-diagnostics":e.diagnosticsToken,...v?{"x-hb-sdk-preview-owner":v}:{}},body:JSON.stringify(g),signal:AbortSignal.any([e.signal,AbortSignal.timeout(5e3)]),keepalive:h});if(!T.ok)throw Object.assign(new Error(`诊断请求失败 (${T.status})`),{status:T.status});return T.json()}function V(S){return new Promise(g=>{const T=e.signal,O=()=>{clearTimeout(j),T.removeEventListener("abort",O),g()},j=setTimeout(O,S);T.addEventListener("abort",O,{once:!0}),T.aborted&&O()})}async function C(){if(s||!e||!m)return;s=!0;let S=250;try{for(;t.length&&!e.signal.aborted;){const g=t[0];i=g;try{if(await R(g),t.shift(),i=void 0,S=250,d){const T=d;d=0,t.push({operation:"events",producerId:n,sequence:++r,events:[{source:"host",level:"warn",method:"diagnostics.dropped",message:`Host 发送缓冲已丢弃 ${T} 条诊断,存在采集缺口`,timestamp:Date.now(),outcome:"dropped"}]})}}catch(T){const O=T.status;if(O===403&&z(),O&&O>=400&&O<500&&O!==408&&O!==429){g.operation==="events"&&g.events.every(ae=>ae.method==="diagnostics.dropped")||te(g.operation==="events"?g.events.length:1),t.shift(),i=void 0;continue}await V(S),S=Math.min(8e3,S*2)}}}finally{i=void 0,s=!1}}function z(){P||(P=!0,e?.onOwnershipLost?.())}function te(S){a+=S,d+=S,e?.onDropped(a)}function $(S){if(S.operation==="update"){const g=S.error;S={...S,...g?{error:{code:M(g.code,100),message:M(g.message,4096),...g.name?{name:M(g.name,100)}:{},...g.stack?{stack:M(g.stack,8192)}:{},...g.cause?{cause:M(g.cause,2048)}:{},...g.phase?{phase:M(g.phase,100)}:{}}}:{},...S.reason?{reason:M(S.reason,200)}:{}}}if(S.operation==="update"){const g=t.findIndex(T=>T!==i&&T.operation==="update"&&T.instanceId===S.instanceId&&T.state===S.state);if(g>=0){t[g]={...t[g],...S};return}}if(t.length>=f){const g=t.findIndex(T=>T!==i&&T.operation==="events");if(g>=0){const T=t.splice(g,1)[0];T.operation==="events"&&te(T.events.length)}else{const T=t.find(O=>O!==i&&O.operation==="register");if(T?.operation==="register")for(let O=t.length-1;O>=0;O--){const j=t[O];j!==i&&"instanceId"in j&&j.instanceId===T.instanceId&&(t.splice(O,1),te(1))}else{te(1);return}}}t.push(S),C()}return{async configure(S){e=S;const g=new URL(location.href),T=new URLSearchParams(g.hash.slice(1)),O=T.get("hb-sdk-owner")??"";T.has("hb-sdk-owner")&&(T.delete("hb-sdk-owner"),g.hash=T.toString(),history.replaceState(history.state,"",g.href));const j="__HB_SDK_PREVIEW_OWNER__",ae=Object.getOwnPropertyDescriptor(window,j);let ce;if(ae){const G=ae.value;if(!G||typeof G.token!="string"||G.token&&!/^[a-f0-9]{64}$/.test(G.token)||typeof G.pageId!="string"||!/^[A-Za-z0-9_-]{1,100}$/.test(G.pageId))throw new Error("预览页面授权格式无效,请重新打开预览");ce=G}else{if(O&&!/^[a-f0-9]{64}$/.test(O))throw new Error("预览页面授权格式无效,请重新打开预览");ce={token:O,pageId:crypto.randomUUID()},Object.defineProperty(window,j,{value:ce,configurable:!0})}v=ce.token||void 0;const ht=ce.pageId,ne=await R({operation:"attach",pageId:ht,metadata:B()});if(!ne.target?.targetId||!ne.target.ownerId||typeof ne.ownerToken!="string")throw new Error("调试目标授权不完整,请重新打开预览");return m=ne.target,v=ne.ownerToken,C(),m},send:$,close(){h=!0},event(S,g){const O=[{...g,message:M(g.message,4096),truncated:g.truncated===!0||new TextEncoder().encode(g.message).length>4096,...g.method?{method:M(g.method,100)}:{},...g.callId?{callId:M(g.callId,100)}:{},...g.phase?{phase:M(g.phase,100)}:{},...g.errorCode?{errorCode:M(g.errorCode,100)}:{},...g.network?{network:{...g.network.method?{method:M(g.network.method,32)}:{},...g.network.origin?{origin:M(g.network.origin,512)}:{},...g.network.pathname?{pathname:M(g.network.pathname,1024)}:{},...g.network.responseStatus===void 0?{}:{responseStatus:g.network.responseStatus}}}:{}}],j=t.at(-1);j!==i&&j?.operation==="events"&&j.instanceId===S&&j.events.length+O.length<=50&&k({...j,events:[...j.events,...O]})<=32e3?j.events.push(...O):$({operation:"events",instanceId:S,producerId:n,sequence:++r,events:O})},async poll(){if(!(!e||!m||P||o||e.signal.aborted)){o=!0;try{const{tasks:S}=await R({operation:"poll"});for(const g of S)l.has(g.requestId)||(l.add(g.requestId),(async()=>{let T;try{T=await e.query(g)}catch{T={code:"closed",error:"实例查询已结束"}}try{k(T)>32e3&&(T={code:"invalid",error:"诊断结果超出 32 KiB 输出上限"})}catch{T={code:"invalid",error:"诊断结果不可序列化"}}e.signal.aborted||await R({operation:"result",requestId:g.requestId,instanceId:g.instanceId,result:T}).catch(()=>{})})().finally(()=>l.delete(g.requestId)))}catch(S){S.status===403&&z()}finally{o=!1}}}}}const Rf=Xa();class ie extends Error{constructor(t,n){super(n),this.code=t,this.name="BrowserDevHostPreviewError"}}function Lf(e){const t=new Map;let n,r=!1;return{bridge:{version:1,async run(i){let o,l;try{Za(i);const a=Math.min(i.deadlineAt,Date.now()+(i.timeoutMs??25e3)),d=()=>{if(Date.now()>=a){const P=new ie("PREVIEW_TIMEOUT","调试台预览操作超时");throw o?.abort(P),P}o?.signal.throwIfAborted()};if(d(),r)throw new ie("SESSION_CLOSED","调试台已关闭");if(t.has(i.operationId))throw new ie("OPERATION_EXISTS","预览操作 ID 已在使用");if(i.command==="observe")return{ok:!0,value:e.observe()};const f=e.observe(),h=i.preset??f.preset;if(i.orientation&&h===on)throw new ie("ORIENTATION_UNSUPPORTED","桌面预览方向由窗口尺寸决定,请先选择手机预设");n?.abort(new ie("PREVIEW_SUPERSEDED","预览操作已被更新的操作取代")),o=new AbortController,n=o,t.set(i.operationId,o),l=setTimeout(()=>o.abort(new ie("PREVIEW_TIMEOUT","调试台预览操作超时")),Math.max(0,a-Date.now()));const m=o.signal;return{ok:!0,value:await qa((async()=>(d(),i.command==="reload"?await e.reload(m):(i.preset&&await e.selectPreset(i.preset,m),d(),i.orientation&&await e.applyOrientation(i.orientation,m)),d(),await e.waitForLayout(m),d(),e.observe()))(),m)}}catch(a){return{ok:!1,error:Qa(a)}}finally{clearTimeout(l),o&&t.get(i.operationId)===o&&t.delete(i.operationId),n===o&&(n=void 0)}},cancel(i){const o=t.get(i);o&&o.abort(new ie("PREVIEW_CANCELLED","预览操作已取消;已生效的变更请读取当前状态确认"))}},dispose(){r=!0;for(const i of t.values())i.abort(new ie("SESSION_CLOSED","调试台已关闭"));t.clear()}}}async function Mf(e){const t=window.__HB_SDK_PREVIEW__;if(!t)throw new ie("PREVIEW_NOT_READY","调试台尚未就绪");const n=await t.run({...e,operationId:crypto.randomUUID(),deadlineAt:Date.now()+(e.timeoutMs??25e3)});if(!n.ok)throw new ie(n.error.code,n.error.message);return n.value}function Za(e){if(!e||typeof e!="object"||typeof e.operationId!="string"||!/^[\w-]{1,128}$/.test(e.operationId))throw new ie("INVALID_OPERATION","预览操作 ID 无效");if(!Number.isFinite(e.deadlineAt)||e.deadlineAt<=0)throw new ie("INVALID_DEADLINE","预览操作绝对期限无效");if(!["observe","select","reload"].includes(e.command))throw new ie("INVALID_COMMAND","未知调试台动作");if(e.timeoutMs!==void 0&&(!Number.isInteger(e.timeoutMs)||e.timeoutMs<1||e.timeoutMs>3e4))throw new ie("INVALID_TIMEOUT","预览操作期限必须为 1 到 30000 毫秒");if(e.command!=="select"&&(e.preset!==void 0||e.orientation!==void 0))throw new ie("INVALID_OPTIONS","当前动作不接受设备或方向选项");if(e.command==="select"&&e.preset===void 0&&e.orientation===void 0)throw new ie("SELECT_REQUIRED","至少指定设备预设或方向");if(e.preset!==void 0&&e.preset!==on&&!Zr.some(t=>t.id===e.preset))throw new ie("INVALID_PRESET","未知设备预设");if(e.orientation!==void 0&&!["portrait","landscape"].includes(e.orientation))throw new ie("INVALID_ORIENTATION","方向必须为 portrait 或 landscape")}function Qa(e){return e instanceof ie?{code:e.code,message:e.message}:e instanceof Error&&e.name==="AbortError"?{code:"PREVIEW_CANCELLED",message:"预览操作已取消"}:{code:"PREVIEW_FAILED",message:"调试台动作失败,请检查当前 Runtime 状态"}}function qa(e,t){return new Promise((n,r)=>{const s=()=>r(t.reason);t.addEventListener("abort",s,{once:!0}),e.then(n,r).finally(()=>t.removeEventListener("abort",s)),t.aborted&&s()})}const Nf=48,Nt=16384,Ae=Object.freeze({width:414,height:780,minWidth:320,minHeight:480,resizable:!0});function Rs(e,t,n){return Math.min(Math.max(e,t),n)}function io(e){return{width:e?.defaultWidth??Ae.width,height:e?.defaultHeight??Ae.height}}function Yn(e,t){return{minWidth:e?.minWidth??Ae.minWidth,minHeight:e?.minHeight??Ae.minHeight,widthLimit:t?Math.min(t.width,Nt):Nt,heightLimit:t?Math.min(t.height,Nt):Nt}}function Xn(e,t){return{...e.width===void 0?{}:{width:Rs(e.width,t.minWidth,Math.max(t.minWidth,t.widthLimit))},...e.height===void 0?{}:{height:Rs(e.height,t.minHeight,Math.max(t.minHeight,t.heightLimit))}}}function ec(e,t){const n=io(t);return e.defaultsAtWrite.width!==n.width||e.defaultsAtWrite.height!==n.height}function tc(e){const t=Ae,n=e.declared,r=Yn(n),s=e.memory&&!ec(e.memory,n)?e.memory:void 0,i=Xn({width:s?.width??n?.defaultWidth??t.width,height:s?.height??n?.defaultHeight??t.height},r);return{width:i.width??t.width,height:i.height??t.height,minWidth:r.minWidth,minHeight:r.minHeight,resizable:n?.resizable??t.resizable}}function nc(e){const t=ve(()=>{const l=e.selectedDiagnosticTargetId||e.diagnosticTargetId;return l.startsWith("upload:")?e.diagnosticInstances.find(a=>a.uploadSessionId===l.slice(7))?.targetId??l:l}),n=ve(()=>e.diagnosticTargets.find(l=>l.targetId===t.value)),r=ve(()=>n.value?.currentInstanceId??""),s=ve(()=>{const l=e.diagnosticTargets.map(h=>({value:h.targetId,label:(h.targetId===e.diagnosticTargetId?"当前预览":h.metadata.deviceModel||h.metadata.displayName)+(h.targetId===e.diagnosticTargetId?` · ${e.previewMode==="desktop"?"桌面":"手机"}`:"")+(h.stale||h.state!=="attached"?" · 离线":"")})),a=new Set(e.diagnosticInstances.map(h=>h.uploadSessionId).filter(Boolean)),d=e.uploadSessions.filter(h=>!a.has(h.id)).map(h=>({value:`upload:${h.id}`,label:h.name+(h.online?" · 日志连接":" · 离线")}));!l.some(h=>h.value===e.diagnosticTargetId)&&e.diagnosticTargetId&&l.unshift({value:e.diagnosticTargetId,label:"当前预览"});const f=[...l,...d];return t.value&&!f.some(h=>h.value===t.value)&&f.push({value:t.value,label:"所选设备 · 离线"}),f});function i(l){if(!t.value)return"";const a=n.value;return a?a.stale||a.state!=="attached"?"当前设备已离线":a.currentInstanceId?a.capabilities[l]?"":l==="storage"?"当前设备不支持存储诊断":"当前设备不支持沙箱浏览":"当前设备没有运行中的小程序":t.value===e.diagnosticTargetId?"":"当前连接仅支持日志上报,无法读取此类数据"}function o(l){const a=t.value;if(!a)return!0;if(a.startsWith("upload:"))return l.uploadSessionId===a.slice(7);const d=e.diagnosticInstances.find(h=>h.instanceId===l.instanceId||l.uploadSessionId&&h.uploadSessionId===l.uploadSessionId),f=l.targetId||d?.targetId;return f?f===a:!l.uploadSessionId&&a===e.diagnosticTargetId}return{selectedDiagnosticKey:t,selectedDiagnosticTarget:n,selectedDiagnosticInstanceId:r,diagnosticDeviceOptions:s,diagnosticResourceReason:i,matchesDiagnosticDevice:o}}const rc=[{id:"app",label:"App"},{id:"sdk",label:"SDK"},{id:"network",label:"Network"},{id:"runtime",label:"Runtime"},{id:"host",label:"Host"}],oo=new Set(["bridge_response","bridge_started","src_resolved","location_probe"]),sc=new Set(["auth","cloud","companion","device","directory","file","files","navigation","share","storage","ui","user","viewport"]);function ic(e,t,n=Date.now(),r){const s=qt(t),i=Zn(s),o=Number.isFinite(n)?n:Date.now(),l=gc(i?.outcome),a=ac(e,i),d=cc(a,i?.source),f=r??fc(e,l),h=uc(s,i,e),m=je(i?.callId),v=je(i?.errorCode)??je(i?.code),P=lo(i?.durationMs),k=ao(i?.generation);return{method:e,detail:s,timestamp:o,level:f,source:d,category:a,summary:h,...l?{outcome:l}:{},...P===void 0?{}:{durationMs:P},...m?{callId:m}:{},...v?{errorCode:v}:{},...k===void 0?{}:{generation:k},...a==="console"&&(f==="log"||f==="info")?{dedupeKey:`${d}\0${f}\0${e}\0${h}`}:{}}}function oc(e,t){if(oo.has(e.type))return;const n=hc(e),r=qt({...e,generation:t}),s=Zn(r),i=pc(e),o=e.type==="error"?"error":e.type==="security_violation"?"denied":void 0,l=[s?.errorCode,s?.message,s?.reason,s?.launchUrlType].map(a=>je(a)).filter(a=>!!a).join(" · ");return{method:n,detail:r,timestamp:e.timestamp,level:i,source:"runtime",category:e.type==="security_violation"||e.type==="security"?"security":"lifecycle",summary:l,generation:t,...e.errorCode?{errorCode:e.errorCode}:{},...o?{outcome:o}:{},...e.type==="duplicate_handshake"||e.type==="status"?{dedupeKey:`runtime\0${t}\0${n}\0${l}`}:{}}}function Wf(e){if(e.source==="runtime"&&e.phase&&oo.has(e.phase))return;let t;if(e.source==="runtime"&&e.phase)try{const r=Zn(JSON.parse(e.message));if(r?.type===e.phase&&typeof r.runtimeId=="string"&&typeof r.timestamp=="number"){const s=ao(r.generation);t=oc(r,s??0),t&&s===void 0&&delete t.generation}}catch{}const n=t??ic(e.method||`console.${e.level}`,e,e.timestamp,e.level==="debug"?"log":e.level);return n.targetId=e.targetId,n.instanceId=e.instanceId,n.source=e.source,n.summary=t?.summary||e.message,n.detail=e,n.dedupeKey=void 0,n}function lc(e){return[e.source,e.category,e.level,e.method,e.summary,e.outcome,e.errorCode,e.callId,Qr(e.detail)].filter(Boolean).join(" ").toLocaleLowerCase()}function Qr(e){try{return JSON.stringify(e,null,2)??""}catch{return"[无法序列化]"}}function ac(e,t){return e.startsWith("console.")?"console":e==="network.request"?"network":/security|violation|blocked/i.test(e)?"security":e.startsWith("runtime.")||e.startsWith("lifecycle.")?"lifecycle":t?.type==="capability"||sc.has(e.split(".")[0]??"")?"capability":"tooling"}function cc(e,t){return e==="console"&&(t==="app"||t==="host")?t:e==="network"?"network":e==="capability"?"sdk":e==="lifecycle"||e==="security"?"runtime":"host"}function fc(e,t){return t==="error"||/error|failed/i.test(e)?"error":t==="denied"||t==="dropped"||/warn|security|violation|blocked/i.test(e)?"warn":"info"}function uc(e,t,n){const r=t?.message;if(typeof r=="string"&&r.trim())return r.trim();if(r!==void 0&&typeof r!="string")return Ls(r);const s=Zn(t?.network);if(s){const l=je(s.method),a=je(s.origin),d=je(s.pathname),f=lo(s.responseStatus),h=dc(a,d),m=[l,h,f===void 0?void 0:String(f)].filter(Boolean).join(" ");if(m)return m}const i=je(t?.errorCode)??je(t?.code);if(i)return i;if(!t)return Ls(e);const o=je(t.outcome);return o?`${n} · ${o}`:""}function dc(e,t){return e?t?e.replace(/\/$/,"")+(t.startsWith("/")?t:"/"+t):e:t}function hc(e){return e.type==="status"?`runtime.${e.status??"status"}`:e.type==="lifecycle"?`lifecycle.${e.method??e.event??"event"}`:e.type==="lifecycle_ignored"?`lifecycle.${e.event??"event"}.ignored`:e.type==="security_violation"?"runtime.security":e.type==="error"?"runtime.error":`runtime.${e.type.replaceAll("_",".")}`}function pc(e){return e.type==="error"?"error":e.type==="security_violation"||e.type==="handshake_timeout"||e.type.endsWith("_ignored")?"warn":e.type==="duplicate_handshake"||e.type==="launch_cancelled"?"log":"info"}function gc(e){return e==="success"||e==="error"||e==="dropped"||e==="denied"?e:void 0}function je(e){return typeof e=="string"&&e.trim()?e.trim():void 0}function lo(e){return typeof e=="number"&&Number.isFinite(e)?e:void 0}function ao(e){return Number.isSafeInteger(e)?e:void 0}function Ls(e){const t=Qr(e).replace(/\s+/g," ").trim();return t==="{}"||t==="[]"?"":t}function Zn(e){return Object.prototype.toString.call(e)==="[object Object]"?e:void 0}function mc(){return{declaration:void 0,initialized:!1,width:Ae.width,height:Ae.height,minWidth:Ae.minWidth,minHeight:Ae.minHeight,resizable:Ae.resizable,maximized:!1,minimized:!1,closed:!1,availableWidth:0,availableHeight:0}}function co(e){return Ga(e)?on:Jn(e).id}function fo(e){return e===on?"desktop":"mobile"}const uo="hb-sdk:browser-dev-host:device",ho="hb-sdk:browser-dev-host:diagnostics-width",po="hb-sdk:browser-dev-host:desktop-app",go="hb-sdk:browser-dev-host:desktop-window",bc=new URL(location.href).searchParams.get("device"),dr=co(bc??Sc()),x=Wn({activeTab:"logs",uploadSessions:[],devicePresetId:Jn(dr).id,deviceSelectOpen:!1,deviceSelectionId:dr,previewMode:fo(dr),hostPlatform:"unknown",desktopWindow:mc(),logs:[],diagnosticTargetId:"",selectedDiagnosticTargetId:"",diagnosticOwnerId:"",diagnosticPrimaryTargetId:null,diagnosticOwnershipLost:!1,diagnosticTargetName:"",diagnosticInstances:[],diagnosticTargets:[],diagnosticsDropped:0,diagnosticsStale:!1,diagnosticsGap:!1,storage:[],storageError:"",queries:{logs:"",storage:"",sandbox:"",problems:""},followLogs:!0,pausedLogCount:0,problemClearWatermark:0,problemClearWatermarks:{},logFilters:{level:"all",source:"all"},diagnosticsWidth:Ec(),miniProgram:{bound:!1,id:"",iconUrl:"",name:"未绑定小程序",detail:"",description:"",version:""},miniProgramSupportsDesktop:!1,miniProgramPlatforms:[],account:{authenticated:!1,avatar:"",nickname:"未登录"},navigationBarStyle:"dark",display:{orientation:"portrait",capsuleHidden:!1},screenshotChromeHidden:!1,runtimeStatus:"idle",mediaSimulation:"normal",qrOpen:!1,devReadiness:void 0,localPermissions:[],openPlatformBaseUrl:void 0,devContextWarning:"",desktopLaunch:{target:Tc(),address:void 0,workspaceCardsEnabled:!1,devSessionId:"",miniProgramId:"",miniProgramManifestToken:"",ready:!1,unavailableReason:"正在等待桌面调试配置"}});let St=0,xn;const yc=ve(()=>Jn(x.devicePresetId)),Hf=ve(()=>Ya(yc.value,x.display.orientation,x.display.capsuleHidden)),Ff=ve(()=>{const e=x.desktopWindow;if(!e.maximized)return{width:e.width,height:e.height};if(!(e.availableWidth>0)||!(e.availableHeight>0))return{width:e.width,height:e.height};const t=Yn(e.declaration,{width:e.availableWidth,height:e.availableHeight}),n=Xn({width:e.availableWidth,height:e.availableHeight},t);return{width:n.width??e.width,height:n.height??e.height}}),{selectedDiagnosticKey:dt,selectedDiagnosticTarget:$f,selectedDiagnosticInstanceId:jf,diagnosticDeviceOptions:_c,diagnosticResourceReason:Bf,matchesDiagnosticDevice:Qn}=nc(x);function Vf(e){e!==dt.value&&_c.value.some(t=>t.value===e)&&(x.selectedDiagnosticTargetId=e,x.storage=[],x.storageError="",x.pausedLogCount=0)}const Uf=ve(()=>{const e=x.queries.logs.trim().toLocaleLowerCase();return x.logs.filter(t=>Qn(t)&&(x.logFilters.source==="all"||t.source===x.logFilters.source)&&(x.logFilters.level==="all"||t.level==="error"||x.logFilters.level==="warnings"&&t.level==="warn")&&(!e||lc(t).includes(e)))}),Kf=ve(()=>(x.logFilters.source==="all"?0:1)+(x.logFilters.level==="all"?0:1)),wc=ve(()=>{const e=new Map;for(const t of x.logs){if(!Qn(t)||t.id<=(x.problemClearWatermarks[dt.value]??x.problemClearWatermark)||!vc(t))continue;const n=Ic(t),r=e.get(n);if(r){r.count+=t.repeatCount;continue}e.set(n,{...t,count:t.repeatCount})}return[...e.values()]}),zf=ve(()=>bo(x.storage,x.queries.storage,e=>`${e.key} ${e.area} ${e.serializedValue}`)),Gf=ve(()=>bo(wc.value,x.queries.problems,e=>`${e.method} ${Qr(e.detail)}`));function Jf(e){const t=co(e);x.deviceSelectionId=t,x.previewMode=fo(t),x.devicePresetId=Jn(t).id;try{localStorage.setItem(uo,t)}catch{}}function Yf(e){const t=x.desktopWindow,n=Yn(e);if(t.declaration=e,t.minWidth=n.minWidth,t.minHeight=n.minHeight,!t.initialized){const s=tc({declared:e,memory:xc()});t.width=s.width,t.height=s.height,t.resizable=s.resizable,t.initialized=!0;return}t.resizable=e?.resizable??Ae.resizable;const r=Xn({width:t.width,height:t.height},n);r.width!==void 0&&(t.width=r.width),r.height!==void 0&&(t.height=r.height)}function Xf(e,t){x.desktopWindow.availableWidth=Ns(e),x.desktopWindow.availableHeight=Ns(t)}function Zf(e,t,n={}){const r=x.desktopWindow;if(r.maximized)return;const s=Xn({width:e,height:t},Yn(r.declaration));s.width!==void 0&&(r.width=s.width),s.height!==void 0&&(r.height=s.height),n.persist&&kc(r)}function Qf(e){x.desktopWindow.maximized=e===!0}function qf(e){x.desktopWindow.minimized=e===!0}function eu(e){x.desktopWindow.closed=e===!0}function tu(e){x.hostPlatform=e}function nu(e){x.navigationBarStyle=e}function ru(e){x.display.orientation=e.orientation,x.display.capsuleHidden=e.capsuleHidden}function su(e){x.desktopLaunch.target=e;try{localStorage.setItem(po,e)}catch{}}function iu(e){x.desktopLaunch.address=e.address,x.desktopLaunch.workspaceCardsEnabled=e.workspaceCardsEnabled===!0,x.desktopLaunch.devSessionId=e.devSessionId??"",x.desktopLaunch.miniProgramId=e.miniProgramId??"",x.desktopLaunch.miniProgramManifestToken=e.miniProgramManifestToken??"",x.desktopLaunch.ready=e.ready,x.desktopLaunch.unavailableReason=e.unavailableReason??""}const Ms=500;function ou(e,t){if(!Number.isSafeInteger(t)||t<1)throw new Error("服务端日志游标无效");x.logs.some(n=>n.id===t)||mo(e,t)}function lu(){x.logs=[],x.problemClearWatermark=0,x.problemClearWatermarks={},x.pausedLogCount=0,x.diagnosticsGap=!1,x.diagnosticsDropped=0,St=0,xn=void 0}function au(e){mo(e,St+1)}function mo(e,t){St=Math.max(St,t);const n=x.logs.at(-1),{dedupeKey:r,...s}=e;r&&n&&n.targetId===e.targetId&&n.instanceId===e.instanceId&&n.uploadSessionId===e.uploadSessionId&&xn===r?Object.assign(n,s,{id:t,repeatCount:n.repeatCount+1}):(x.logs.push({...s,id:t,firstTimestamp:s.timestamp,repeatCount:1}),xn=r),!x.followLogs&&Qn(x.logs.at(-1))&&(x.pausedLogCount+=1),x.logs.length>Ms&&x.logs.splice(0,x.logs.length-Ms)}function cu(){x.logs=x.logs.filter(e=>!Qn(e)),x.pausedLogCount=0,xn=void 0}function fu(){dt.value?x.problemClearWatermarks[dt.value]=St:(x.problemClearWatermark=St,x.problemClearWatermarks={})}function uu(e){x.followLogs=e,e&&(x.pausedLogCount=0)}function du(e){(e==="all"||e==="warnings"||e==="errors")&&(x.logFilters.level=e)}function hu(e){(e==="all"||rc.some(t=>t.id===e))&&(x.logFilters.source=e)}function pu(){x.logFilters.level="all",x.logFilters.source="all"}function gu(e){const t=Math.min(560,Math.max(320,Math.round(e)));x.diagnosticsWidth=t;try{localStorage.setItem(ho,String(t))}catch{}}function vc(e){return/error|failed|security|violation|blocked/i.test(e.method)?!0:e.outcome==="error"||e.outcome==="denied"}function Ic(e){const t=kn(e.detail)?e.detail:void 0,n=kn(t?.network)?t.network:void 0,r=[n?.method,n?.origin,n?.pathname,t?.origin,t?.sanitizedPathname].find(s=>typeof s=="string");return`${e.method}\0${e.errorCode??""}\0${r??""}`}function kn(e){return Object.prototype.toString.call(e)==="[object Object]"}function Sc(){try{return localStorage.getItem(uo)}catch{return null}}function Ec(){try{const e=Number(localStorage.getItem(ho));return Number.isFinite(e)&&e>0?Math.min(560,Math.max(320,e)):400}catch{return 400}}function Tc(){try{return localStorage.getItem(po)==="debug"?"debug":"production"}catch{return"production"}}function Ns(e){return Number.isFinite(e)?Math.max(0,Math.round(e)):0}function hn(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>0&&e<=Nt?e:void 0}function xc(){let e;try{e=localStorage.getItem(go)}catch{return}if(!e)return;let t;try{t=JSON.parse(e)}catch{return}if(!kn(t))return;const n=hn(t.width),r=hn(t.height),s=kn(t.defaultsAtWrite)?t.defaultsAtWrite:void 0,i=s?hn(s.width):void 0,o=s?hn(s.height):void 0;if(!(n===void 0||r===void 0||i===void 0||o===void 0))return{width:n,height:r,defaultsAtWrite:{width:i,height:o},updatedAt:typeof t.updatedAt=="number"&&Number.isFinite(t.updatedAt)?t.updatedAt:0}}function kc(e){const t={width:e.width,height:e.height,defaultsAtWrite:io(e.declaration),updatedAt:Date.now()};try{localStorage.setItem(go,JSON.stringify(t))}catch{}}function bo(e,t,n){const r=t.trim().toLocaleLowerCase();return r?e.filter(s=>n(s).toLocaleLowerCase().includes(r)):e}const qr=$n(),yo=ai({});function mu(e){Object.assign(yo,e)}function bu(e){qr.value=e}const bn=$n(),An=$n();let Ac=0;function Ut(){const e=qr.value;return JSON.stringify([dt.value,e?.targetId,e?.instanceId])}const Dc=ve(()=>bn.value?.scope===Ut()),yu=ve(()=>An.value?.scope===Ut()?An.value.message:"");async function _u(e){const t=qr.value,n=x.diagnosticTargetId;if(dt.value&&dt.value!==n||t?.targetId&&t.targetId!==n||e!=="refresh"&&(t?.permissionStateReady!==!0||t.declaredSource!=="manifest"||t.stateError))return!1;const r=yo[e];if(!r||Dc.value)return!1;const s=Ut(),i=++Ac;bn.value={scope:s,sequence:i},An.value=void 0;try{return await r(),s===Ut()}catch(o){return s===Ut()&&(An.value={scope:s,message:o instanceof Error?o.message:"授权操作失败,请重试"}),!1}finally{bn.value?.sequence===i&&(bn.value=void 0)}}const wu=$n();function vu(e){const t=e.split(/[\\/]/).at(-1)?.replace(/[<>:"|?*\u0000-\u001f\u007f]/g,"_").replace(/[. ]+$/,"")||"game-save",n=Array.from(t).slice(0,180).join("").replace(/[. ]+$/,"")||"game-save";return`${/^(con|prn|aux|nul|com[1-9]|lpt[1-9])(?:\.|$)/i.test(n)?"_":""}${n}${/\.zip$/i.test(n)?"":".zip"}`}const Pc={storage:{failed:"Storage 诊断查询失败",stale:"当前设备的存储快照已失效,请重试"},sandbox:{failed:"目录查询失败",stale:"当前设备的沙箱快照已失效,请重试"}};async function Iu(e,t){const n=new Headers({"content-type":"application/json"});t.csrfToken&&n.set("x-hb-sdk-csrf",t.csrfToken);const r=await fetch(Na,{method:"POST",headers:n,body:JSON.stringify(e),signal:AbortSignal.any([t.signal,AbortSignal.timeout(12e3)]),cache:"no-store",credentials:"same-origin",redirect:"error"}),s=Pc[e.resource];if(!r.ok){const o=await r.json().catch(()=>{});throw new Error(typeof o?.error=="string"?o.error:`${s.failed}(HTTP ${r.status})`)}const i=await r.json();if(i.stale||i.instanceId&&i.instanceId!==e.instanceId)throw new Error(s.stale);return i}const Oc=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/,Cc="ai-desktop.heybox-user-miniprogram",Rc="open",Lc=2048,Mc="hb_sdk_manifest_token",Nc=/^[A-Za-z0-9_-]{43}$/,Wc=/^[a-f0-9]{32}$/;function Su(e){const t=Hc(e.miniProgramId);if(e.devSessionId!==void 0&&!Wc.test(e.devSessionId))throw new TypeError("Desktop dev session id is invalid");const n=_o(e.address.appUrl),r=e.miniProgramManifestToken?.trim();if(r&&!Nc.test(r))throw new TypeError("Desktop mini-program manifest token is invalid");const s=e.target==="debug"?"heybox-debug":"heybox",i=new URL(`${s}://v1/extensions/${Cc}/${Rc}`);return i.searchParams.set("mini_program_id",t),i.searchParams.set("mini_url",n),e.devSessionId!==void 0&&i.searchParams.set("dev_session_id",e.devSessionId),r&&i.searchParams.set(Mc,r),i.href}function Eu(e){return{address:"127.0.0.1",appUrl:_o(e),id:"loopback",name:"本机"}}function _o(e){if(typeof e!="string"||e!==e.trim()||new TextEncoder().encode(e).byteLength>Lc)throw new TypeError("Desktop mini-program URL is invalid");let t;try{t=new URL(e)}catch{throw new TypeError("Desktop mini-program URL is invalid")}if(t.protocol!=="http:"||t.hostname!=="127.0.0.1"||!t.port||t.username||t.password||t.search||t.hash||t.href!==e)throw new TypeError("Desktop mini-program URL is invalid");return t.href}function Hc(e){const t=e.trim().toLowerCase();if(!Oc.test(t))throw new TypeError("Desktop mini-program id is invalid");return t}export{Lo as $,pa as A,tf as B,ge as C,on as D,Su as E,Ee as F,Eu as G,yf as H,gf as I,pf as J,ha as K,Ie as L,il as M,nf as N,_c as O,Bf as P,Uc as Q,he as R,Iu as S,ef as T,Uf as U,Gf as V,rc as W,zf as X,wu as Y,vu as Z,rn as _,xl as a,qf as a$,da as a0,mf as a1,Df as a2,Et as a3,Vc as a4,gn as a5,er as a6,W as a7,F as a8,Mr as a9,bu as aA,Wn as aB,Tf as aC,qt as aD,tl as aE,xf as aF,_f as aG,mu as aH,Sf as aI,of as aJ,lf as aK,Pf as aL,lu as aM,pu as aN,sf as aO,Mf as aP,_u as aQ,Qr as aR,jf as aS,dt as aT,$f as aU,Cf as aV,su as aW,iu as aX,Xf as aY,eu as aZ,Qf as a_,X as aa,Lr as ab,oe as ac,Bc as ad,le as ae,ke as af,xo as ag,el as ah,uf as ai,df as aj,ga as ak,hl as al,Rn as am,jc as an,Cn as ao,ic as ap,Ol as aq,ki as ar,xi as as,Kc as at,Ai as au,Rl as av,Er as aw,wc as ax,Wf as ay,bl as az,ie as b,Zf as b0,Jf as b1,Vf as b2,gu as b3,uu as b4,tu as b5,ru as b6,du as b7,hu as b8,nu as b9,Qc as bA,qc as bB,ml as bC,Zc as bD,bf as bE,x as bF,zc as ba,$n as bb,Af as bc,kf as bd,Ro as be,pn as bf,af as bg,$c as bh,Xc as bi,Yc as bj,Jc as bk,Gc as bl,Br as bm,ff as bn,rf as bo,hf as bp,cf as bq,Dc as br,yu as bs,yo as bt,qr as bu,Of as bv,xa as bw,wf as bx,vf as by,ir as bz,Nf as c,Zr as d,Ma as e,Ff as f,Hf as g,yc as h,Kf as i,au as j,ou as k,Yf as l,Xr as m,Rf as n,Ve as o,Pe as p,Wr as q,cu as r,fu as s,et as t,ve as u,Ef as v,Zi as w,Tr as x,If as y,Lf as z};
|