SGGL_SHJ/SGGL/FineUIPro.Web/HJGL/DataImport/assets/styles-Bno-H3Kc.js

25 lines
83 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{p as e}from"./pdfjs-HfNT2Y4W.js";import{P as t,d as n,r as o}from"./pdf-lib-D5zKcp81.js";
/**
* @vue/shared v3.5.26
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
function s(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver(e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)}).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();const l={},i=[],r=()=>{},a=()=>!1,c=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),u=e=>e.startsWith("onUpdate:"),f=Object.assign,d=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},p=Object.prototype.hasOwnProperty,h=(e,t)=>p.call(e,t),v=Array.isArray,g=e=>"[object Map]"===C(e),m=e=>"[object Set]"===C(e),y=e=>"[object Date]"===C(e),x=e=>"function"==typeof e,b=e=>"string"==typeof e,_=e=>"symbol"==typeof e,w=e=>null!==e&&"object"==typeof e,S=e=>(w(e)||x(e))&&x(e.then)&&x(e.catch),k=Object.prototype.toString,C=e=>k.call(e),M=e=>"[object Object]"===C(e),O=e=>b(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,P=s(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),E=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},T=/-\w/g,I=E(e=>e.replace(T,e=>e.slice(1).toUpperCase())),j=/\B([A-Z])/g,A=E(e=>e.replace(j,"-$1").toLowerCase()),L=E(e=>e.charAt(0).toUpperCase()+e.slice(1)),R=E(e=>e?`on${L(e)}`:""),F=(e,t)=>!Object.is(e,t),D=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},V=(e,t,n,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},N=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let U;const $=()=>U||(U="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function W(e){if(v(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],s=b(o)?H(o):W(o);if(s)for(const e in s)t[e]=s[e]}return t}if(b(e)||w(e))return e}const B=/;(?![^(]*\))/g,z=/:([^]+)/,J=/\/\*[^]*?\*\//g;function H(e){const t={};return e.replace(J,"").split(B).forEach(e=>{if(e){const n=e.split(z);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function K(e){let t="";if(b(e))t=e;else if(v(e))for(let n=0;n<e.length;n++){const o=K(e[n]);o&&(t+=o+" ")}else if(w(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const X=s("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Y(e){return!!e||""===e}function q(e,t){if(e===t)return!0;let n=y(e),o=y(t);if(n||o)return!(!n||!o)&&e.getTime()===t.getTime();if(n=_(e),o=_(t),n||o)return e===t;if(n=v(e),o=v(t),n||o)return!(!n||!o)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let o=0;n&&o<e.length;o++)n=q(e[o],t[o]);return n}(e,t);if(n=w(e),o=w(t),n||o){if(!n||!o)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const o=e.hasOwnProperty(n),s=t.hasOwnProperty(n);if(o&&!s||!o&&s||!q(e[n],t[n]))return!1}}return String(e)===String(t)}function G(e,t){return e.findIndex(e=>q(e,t))}const Z=e=>!(!e||!0!==e.__v_isRef),Q=e=>b(e)?e:null==e?"":v(e)||w(e)&&(e.toString===k||!x(e.toString))?Z(e)?Q(e.value):JSON.stringify(e,ee,2):String(e),ee=(e,t)=>Z(t)?ee(e,t.value):g(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],o)=>(e[te(t,o)+" =>"]=n,e),{})}:m(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>te(e))}:_(t)?te(t):!w(t)||v(t)||M(t)?t:String(t),te=(e,t="")=>{var n;return _(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};
/**
* @vue/reactivity v3.5.26
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
let ne,oe;class se{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=ne,!e&&ne&&(this.index=(ne.scopes||(ne.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){let e,t;if(this._isPaused=!1,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){const t=ne;try{return ne=this,e()}finally{ne=t}}}on(){1===++this._on&&(this.prevScope=ne,ne=this)}off(){this._on>0&&0===--this._on&&(ne=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){let t,n;for(this._active=!1,t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}}const le=new WeakSet;class ie{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ne&&ne.active&&ne.effects.push(this)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,le.has(this)&&(le.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||ue(this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,Se(this),pe(this);const e=oe,t=xe;oe=this,xe=!0;try{return this.fn()}finally{he(this),oe=e,xe=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)me(e);this.deps=this.depsTail=void 0,Se(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?le.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ve(this)&&this.run()}get dirty(){return ve(this)}}let re,ae,ce=0;function ue(e,t=!1){if(e.flags|=8,t)return e.next=ae,void(ae=e);e.next=re,re=e}function fe(){ce++}function de(){if(--ce>0)return;if(ae){let e=ae;for(ae=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;re;){let n=re;for(re=void 0;n;){const o=n.next;if(n.next=void 0,n.flags&=-9,1&n.flags)try{n.trigger()}catch(t){e||(e=t)}n=o}}if(e)throw e}function pe(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function he(e){let t,n=e.depsTail,o=n;for(;o;){const e=o.prevDep;-1===o.version?(o===n&&(n=e),me(o),ye(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=e}e.deps=t,e.depsTail=n}function ve(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ge(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ge(e){if(4&e.flags&&!(16&e.flags))return;if(e.flags&=-17,e.globalVersion===ke)return;if(e.globalVersion=ke,!e.isSSR&&128&e.flags&&(!e.deps&&!e._dirty||!ve(e)))return;e.flags|=2;const t=e.dep,n=oe,o=xe;oe=e,xe=!0;try{pe(e);const n=e.fn(e._value);(0===t.version||F(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(s){throw t.version++,s}finally{oe=n,xe=o,he(e),e.flags&=-3}}function me(e,t=!1){const{dep:n,prevSub:o,nextSub:s}=e;if(o&&(o.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=o,e.nextSub=void 0),n.subs===e&&(n.subs=o,!o&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)me(e,!0)}t||--n.sc||!n.map||n.map.delete(n.key)}function ye(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let xe=!0;const be=[];function _e(){be.push(xe),xe=!1}function we(){const e=be.pop();xe=void 0===e||e}function Se(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=oe;oe=void 0;try{t()}finally{oe=e}}}let ke=0;class Ce{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Me{constructor(e){this.computed=e,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(e){if(!oe||!xe||oe===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==oe)t=this.activeLink=new Ce(oe,this),oe.deps?(t.prevDep=oe.depsTail,oe.depsTail.nextDep=t,oe.depsTail=t):oe.deps=oe.depsTail=t,Oe(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=oe.depsTail,t.nextDep=void 0,oe.depsTail.nextDep=t,oe.depsTail=t,oe.deps===t&&(oe.deps=e)}return t}trigger(e){this.version++,ke++,this.notify(e)}notify(e){fe();try{0;for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{de()}}}function Oe(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)Oe(e)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Pe=new WeakMap,Ee=Symbol(""),Te=Symbol(""),Ie=Symbol("");function je(e,t,n){if(xe&&oe){let t=Pe.get(e);t||Pe.set(e,t=new Map);let o=t.get(n);o||(t.set(n,o=new Me),o.map=t,o.key=n),o.track()}}function Ae(e,t,n,o,s,l){const i=Pe.get(e);if(!i)return void ke++;const r=e=>{e&&e.trigger()};if(fe(),"clear"===t)i.forEach(r);else{const s=v(e),l=s&&O(n);if(s&&"length"===n){const e=Number(o);i.forEach((t,n)=>{("length"===n||n===Ie||!_(n)&&n>=e)&&r(t)})}else switch((void 0!==n||i.has(void 0))&&r(i.get(n)),l&&r(i.get(Ie)),t){case"add":s?l&&r(i.get("length")):(r(i.get(Ee)),g(e)&&r(i.get(Te)));break;case"delete":s||(r(i.get(Ee)),g(e)&&r(i.get(Te)));break;case"set":g(e)&&r(i.get(Ee))}}de()}function Le(e){const t=xt(e);return t===e?t:(je(t,0,Ie),mt(e)?t:t.map(bt))}function Re(e){return je(e=xt(e),0,Ie),e}function Fe(e,t){return gt(e)?vt(e)?_t(bt(t)):_t(t):bt(t)}const De={__proto__:null,[Symbol.iterator](){return Ve(this,Symbol.iterator,e=>Fe(this,e))},concat(...e){return Le(this).concat(...e.map(e=>v(e)?Le(e):e))},entries(){return Ve(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,e=>e.map(e=>Fe(this,e)),arguments)},find(e,t){return Ue(this,"find",e,t,e=>Fe(this,e),arguments)},findIndex(e,t){return Ue(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ue(this,"findLast",e,t,e=>Fe(this,e),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 We(this,"includes",e)},indexOf(...e){return We(this,"indexOf",e)},join(e){return Le(this).join(e)},lastIndexOf(...e){return We(this,"lastIndexOf",e)},map(e,t){return Ue(this,"map",e,t,void 0,arguments)},pop(){return Be(this,"pop")},push(...e){return Be(this,"push",e)},reduce(e,...t){return $e(this,"reduce",e,t)},reduceRight(e,...t){return $e(this,"reduceRight",e,t)},shift(){return Be(this,"shift")},some(e,t){return Ue(this,"some",e,t,void 0,arguments)},splice(...e){return Be(this,"splice",e)},toReversed(){return Le(this).toReversed()},toSorted(e){return Le(this).toSorted(e)},toSpliced(...e){return Le(this).toSpliced(...e)},unshift(...e){return Be(this,"unshift",e)},values(){return Ve(this,"values",e=>Fe(this,e))}};function Ve(e,t,n){const o=Re(e),s=o[t]();return o===e||mt(e)||(s._next=s.next,s.next=()=>{const e=s._next();return e.done||(e.value=n(e.value)),e}),s}const Ne=Array.prototype;function Ue(e,t,n,o,s,l){const i=Re(e),r=i!==e&&!mt(e),a=i[t];if(a!==Ne[t]){const t=a.apply(e,l);return r?bt(t):t}let c=n;i!==e&&(r?c=function(t,o){return n.call(this,Fe(e,t),o,e)}:n.length>2&&(c=function(t,o){return n.call(this,t,o,e)}));const u=a.call(i,c,o);return r&&s?s(u):u}function $e(e,t,n,o){const s=Re(e);let l=n;return s!==e&&(mt(e)?n.length>3&&(l=function(t,o,s){return n.call(this,t,o,s,e)}):l=function(t,o,s){return n.call(this,t,Fe(e,o),s,e)}),s[t](l,...o)}function We(e,t,n){const o=xt(e);je(o,0,Ie);const s=o[t](...n);return-1!==s&&!1!==s||!yt(n[0])?s:(n[0]=xt(n[0]),o[t](...n))}function Be(e,t,n=[]){_e(),fe();const o=xt(e)[t].apply(e,n);return de(),we(),o}const ze=s("__proto__,__v_isRef,__isVue"),Je=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(_));function He(e){_(e)||(e=String(e));const t=xt(this);return je(t,0,e),t.hasOwnProperty(e)}class Ke{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if("__v_skip"===t)return e.__v_skip;const o=this._isReadonly,s=this._isShallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return s;if("__v_raw"===t)return n===(o?s?ut:ct:s?at:rt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const l=v(e);if(!o){let e;if(l&&(e=De[t]))return e;if("hasOwnProperty"===t)return He}const i=Reflect.get(e,t,wt(e)?e:n);if(_(t)?Je.has(t):ze(t))return i;if(o||je(e,0,t),s)return i;if(wt(i)){const e=l&&O(t)?i:i.value;return o&&w(e)?pt(e):e}return w(i)?o?pt(i):dt(i):i}}class Xe extends Ke{constructor(e=!1){super(!1,e)}set(e,t,n,o){let s=e[t];const l=v(e)&&O(t);if(!this._isShallow){const e=gt(s);if(mt(n)||gt(n)||(s=xt(s),n=xt(n)),!l&&wt(s)&&!wt(n))return e||(s.value=n),!0}const i=l?Number(t)<e.length:h(e,t),r=Reflect.set(e,t,n,wt(e)?e:o);return e===xt(o)&&(i?F(n,s)&&Ae(e,"set",t,n):Ae(e,"add",t,n)),r}deleteProperty(e,t){const n=h(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&n&&Ae(e,"delete",t,void 0),o}has(e,t){const n=Reflect.has(e,t);return _(t)&&Je.has(t)||je(e,0,t),n}ownKeys(e){return je(e,0,v(e)?"length":Ee),Reflect.ownKeys(e)}}class Ye extends Ke{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const qe=new Xe,Ge=new Ye,Ze=new Xe(!0),Qe=e=>e,et=e=>Reflect.getPrototypeOf(e);function tt(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function nt(e,t){const n={get(n){const o=this.__v_raw,s=xt(o),l=xt(n);e||(F(n,l)&&je(s,0,n),je(s,0,l));const{has:i}=et(s),r=t?Qe:e?_t:bt;return i.call(s,n)?r(o.get(n)):i.call(s,l)?r(o.get(l)):void(o!==s&&o.get(n))},get size(){const t=this.__v_raw;return!e&&je(xt(t),0,Ee),t.size},has(t){const n=this.__v_raw,o=xt(n),s=xt(t);return e||(F(t,s)&&je(o,0,t),je(o,0,s)),t===s?n.has(t):n.has(t)||n.has(s)},forEach(n,o){const s=this,l=s.__v_raw,i=xt(l),r=t?Qe:e?_t:bt;return!e&&je(i,0,Ee),l.forEach((e,t)=>n.call(o,r(e),r(t),s))}};f(n,e?{add:tt("add"),set:tt("set"),delete:tt("delete"),clear:tt("clear")}:{add(e){t||mt(e)||gt(e)||(e=xt(e));const n=xt(this);return et(n).has.call(n,e)||(n.add(e),Ae(n,"add",e,e)),this},set(e,n){t||mt(n)||gt(n)||(n=xt(n));const o=xt(this),{has:s,get:l}=et(o);let i=s.call(o,e);i||(e=xt(e),i=s.call(o,e));const r=l.call(o,e);return o.set(e,n),i?F(n,r)&&Ae(o,"set",e,n):Ae(o,"add",e,n),this},delete(e){const t=xt(this),{has:n,get:o}=et(t);let s=n.call(t,e);s||(e=xt(e),s=n.call(t,e)),o&&o.call(t,e);const l=t.delete(e);return s&&Ae(t,"delete",e,void 0),l},clear(){const e=xt(this),t=0!==e.size,n=e.clear();return t&&Ae(e,"clear",void 0,void 0),n}});return["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=function(e,t,n){return function(...o){const s=this.__v_raw,l=xt(s),i=g(l),r="entries"===e||e===Symbol.iterator&&i,a="keys"===e&&i,c=s[e](...o),u=n?Qe:t?_t:bt;return!t&&je(l,0,a?Te:Ee),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:r?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}(o,e,t)}),n}function ot(e,t){const n=nt(e,t);return(t,o,s)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(h(n,o)&&o in t?n:t,o,s)}const st={get:ot(!1,!1)},lt={get:ot(!1,!0)},it={get:ot(!0,!1)},rt=new WeakMap,at=new WeakMap,ct=new WeakMap,ut=new WeakMap;function ft(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>C(e).slice(8,-1))(e))}function dt(e){return gt(e)?e:ht(e,!1,qe,st,rt)}function pt(e){return ht(e,!0,Ge,it,ct)}function ht(e,t,n,o,s){if(!w(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const l=ft(e);if(0===l)return e;const i=s.get(e);if(i)return i;const r=new Proxy(e,2===l?o:n);return s.set(e,r),r}function vt(e){return gt(e)?vt(e.__v_raw):!(!e||!e.__v_isReactive)}function gt(e){return!(!e||!e.__v_isReadonly)}function mt(e){return!(!e||!e.__v_isShallow)}function yt(e){return!!e&&!!e.__v_raw}function xt(e){const t=e&&e.__v_raw;return t?xt(t):e}const bt=e=>w(e)?dt(e):e,_t=e=>w(e)?pt(e):e;function wt(e){return!!e&&!0===e.__v_isRef}function St(e){return function(e,t){if(wt(e))return e;return new kt(e,t)}(e,!1)}class kt{constructor(e,t){this.dep=new Me,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:xt(e),this._value=t?e:bt(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,n=this.__v_isShallow||mt(e)||gt(e);e=n?e:xt(e),F(e,t)&&(this._rawValue=e,this._value=n?e:bt(e),this.dep.trigger())}}const Ct={get:(e,t,n)=>{return"__v_raw"===t?e:wt(o=Reflect.get(e,t,n))?o.value:o;var o},set:(e,t,n,o)=>{const s=e[t];return wt(s)&&!wt(n)?(s.value=n,!0):Reflect.set(e,t,n,o)}};function Mt(e){return vt(e)?e:new Proxy(e,Ct)}class Ot{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Me(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ke-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(8&this.flags)&&oe!==this)return ue(this,!0),!0}get value(){const e=this.dep.track();return ge(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}const Pt={},Et=new WeakMap;let Tt;function It(e,t,n=l){const{immediate:o,deep:s,once:i,scheduler:a,augmentJob:c,call:u}=n,f=e=>s?e:mt(e)||!1===s||0===s?jt(e,1):jt(e);let p,h,g,m,y=!1,b=!1;if(wt(e)?(h=()=>e.value,y=mt(e)):vt(e)?(h=()=>f(e),y=!0):v(e)?(b=!0,y=e.some(e=>vt(e)||mt(e)),h=()=>e.map(e=>wt(e)?e.value:vt(e)?f(e):x(e)?u?u(e,2):e():void 0)):h=x(e)?t?u?()=>u(e,2):e:()=>{if(g){_e();try{g()}finally{we()}}const t=Tt;Tt=p;try{return u?u(e,3,[m]):e(m)}finally{Tt=t}}:r,t&&s){const e=h,t=!0===s?1/0:s;h=()=>jt(e(),t)}const _=ne,w=()=>{p.stop(),_&&_.active&&d(_.effects,p)};if(i&&t){const e=t;t=(...t)=>{e(...t),w()}}let S=b?new Array(e.length).fill(Pt):Pt;const k=e=>{if(1&p.flags&&(p.dirty||e))if(t){const e=p.run();if(s||y||(b?e.some((e,t)=>F(e,S[t])):F(e,S))){g&&g();const n=Tt;Tt=p;try{const n=[e,S===Pt?void 0:b&&S[0]===Pt?[]:S,m];S=e,u?u(t,3,n):t(...n)}finally{Tt=n}}}else p.run()};return c&&c(k),p=new ie(h),p.scheduler=a?()=>a(k,!1):k,m=e=>function(e,t=!1,n=Tt){if(n){let t=Et.get(n);t||Et.set(n,t=[]),t.push(e)}}(e,!1,p),g=p.onStop=()=>{const e=Et.get(p);if(e){if(u)u(e,4);else for(const t of e)t();Et.delete(p)}},t?o?k(!0):S=p.run():a?a(k.bind(null,!0),!0):p.run(),w.pause=p.pause.bind(p),w.resume=p.resume.bind(p),w.stop=w,w}function jt(e,t=1/0,n){if(t<=0||!w(e)||e.__v_skip)return e;if(((n=n||new Map).get(e)||0)>=t)return e;if(n.set(e,t),t--,wt(e))jt(e.value,t,n);else if(v(e))for(let o=0;o<e.length;o++)jt(e[o],t,n);else if(m(e)||g(e))e.forEach(e=>{jt(e,t,n)});else if(M(e)){for(const o in e)jt(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&jt(e[o],t,n)}return e}
/**
* @vue/runtime-core v3.5.26
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function At(e,t,n,o){try{return o?e(...o):e()}catch(s){Rt(s,t,n)}}function Lt(e,t,n,o){if(x(e)){const s=At(e,t,n,o);return s&&S(s)&&s.catch(e=>{Rt(e,t,n)}),s}if(v(e)){const s=[];for(let l=0;l<e.length;l++)s.push(Lt(e[l],t,n,o));return s}}function Rt(e,t,n,o=!0){t&&t.vnode;const{errorHandler:s,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||l;if(t){let o=t.parent;const l=t.proxy,i=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const t=o.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,l,i))return;o=o.parent}if(s)return _e(),At(s,null,10,[e,l,i]),void we()}!function(e,t,n,o=!0,s=!1){if(s)throw e;console.error(e)}(e,0,0,o,i)}const Ft=[];let Dt=-1;const Vt=[];let Nt=null,Ut=0;const $t=Promise.resolve();let Wt=null;function Bt(e){const t=Wt||$t;return e?t.then(this?e.bind(this):e):t}function zt(e){if(!(1&e.flags)){const t=Xt(e),n=Ft[Ft.length-1];!n||!(2&e.flags)&&t>=Xt(n)?Ft.push(e):Ft.splice(function(e){let t=Dt+1,n=Ft.length;for(;t<n;){const o=t+n>>>1,s=Ft[o],l=Xt(s);l<e||l===e&&2&s.flags?t=o+1:n=o}return t}(t),0,e),e.flags|=1,Jt()}}function Jt(){Wt||(Wt=$t.then(Yt))}function Ht(e,t,n=Dt+1){for(;n<Ft.length;n++){const t=Ft[n];if(t&&2&t.flags){if(e&&t.id!==e.uid)continue;Ft.splice(n,1),n--,4&t.flags&&(t.flags&=-2),t(),4&t.flags||(t.flags&=-2)}}}function Kt(e){if(Vt.length){const e=[...new Set(Vt)].sort((e,t)=>Xt(e)-Xt(t));if(Vt.length=0,Nt)return void Nt.push(...e);for(Nt=e,Ut=0;Ut<Nt.length;Ut++){const e=Nt[Ut];4&e.flags&&(e.flags&=-2),8&e.flags||e(),e.flags&=-2}Nt=null,Ut=0}}const Xt=e=>null==e.id?2&e.flags?-1:1/0:e.id;function Yt(e){try{for(Dt=0;Dt<Ft.length;Dt++){const e=Ft[Dt];!e||8&e.flags||(4&e.flags&&(e.flags&=-2),At(e,e.i,e.i?15:14),4&e.flags||(e.flags&=-2))}}finally{for(;Dt<Ft.length;Dt++){const e=Ft[Dt];e&&(e.flags&=-2)}Dt=-1,Ft.length=0,Kt(),Wt=null,(Ft.length||Vt.length)&&Yt()}}let qt=null,Gt=null;function Zt(e){const t=qt;return qt=e,Gt=e&&e.type.__scopeId||null,t}function Qt(e,t){if(null===qt)return e;const n=xs(qt),o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[e,i,r,a=l]=t[s];e&&(x(e)&&(e={mounted:e,updated:e}),e.deep&&jt(i),o.push({dir:e,instance:n,value:i,oldValue:void 0,arg:r,modifiers:a}))}return e}function en(e,t,n,o){const s=e.dirs,l=t&&t.dirs;for(let i=0;i<s.length;i++){const r=s[i];l&&(r.oldValue=l[i].value);let a=r.dir[o];a&&(_e(),Lt(a,n,8,[e.el,r,e,t]),we())}}function tn(e,t,n=!1){const o=cs();if(o||to){let s=to?to._context.provides:o?null==o.parent||o.ce?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&x(t)?t.call(o&&o.proxy):t}}const nn=Symbol.for("v-scx");function on(e,t,n){return sn(e,t,n)}function sn(e,t,n=l){const{immediate:o,deep:s,flush:i,once:a}=n,c=f({},n),u=t&&o||!t&&"post"!==i;let d;if(vs)if("sync"===i){const e=tn(nn);d=e.__watcherHandles||(e.__watcherHandles=[])}else if(!u){const e=()=>{};return e.stop=r,e.resume=r,e.pause=r,e}const p=as;c.call=(e,t,n)=>Lt(e,p,t,n);let h=!1;"post"===i?c.scheduler=e=>{Mo(e,p&&p.suspense)}:"sync"!==i&&(h=!0,c.scheduler=(e,t)=>{t?e():zt(e)}),c.augmentJob=e=>{t&&(e.flags|=4),h&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};const v=It(e,t,c);return vs&&(d?d.push(v):u&&v()),v}function ln(e,t,n){const o=this.proxy,s=b(e)?e.includes(".")?rn(o,e):()=>o[e]:e.bind(o,o);let l;x(t)?l=t:(l=t.handler,n=t);const i=ds(this),r=sn(s,l.bind(o),n);return i(),r}function rn(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}const an=Symbol("_vte"),cn=Symbol("_leaveCb");function un(e,t){6&e.shapeFlag&&e.component?(e.transition=t,un(e.component.subTree,t)):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function fn(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const dn=new WeakMap;function pn(e,t,n,o,s=!1){if(v(e))return void e.forEach((e,l)=>pn(e,t&&(v(t)?t[l]:t),n,o,s));if(vn(o)&&!s)return void(512&o.shapeFlag&&o.type.__asyncResolved&&o.component.subTree.component&&pn(e,t,n,o.component.subTree));const i=4&o.shapeFlag?xs(o.component):o.el,r=s?null:i,{i:c,r:u}=e,f=t&&t.r,p=c.refs===l?c.refs={}:c.refs,g=c.setupState,m=xt(g),y=g===l?a:e=>h(m,e);if(null!=f&&f!==u)if(hn(t),b(f))p[f]=null,y(f)&&(g[f]=null);else if(wt(f)){f.value=null;const e=t;e.k&&(p[e.k]=null)}if(x(u))At(u,c,12,[r,p]);else{const t=b(u),o=wt(u);if(t||o){const l=()=>{if(e.f){const n=t?y(u)?g[u]:p[u]:u.value;if(s)v(n)&&d(n,i);else if(v(n))n.includes(i)||n.push(i);else if(t)p[u]=[i],y(u)&&(g[u]=p[u]);else{const t=[i];u.value=t,e.k&&(p[e.k]=t)}}else t?(p[u]=r,y(u)&&(g[u]=r)):o&&(u.value=r,e.k&&(p[e.k]=r))};if(r){const t=()=>{l(),dn.delete(e)};t.id=-1,dn.set(e,t),Mo(t,n)}else hn(e),l()}}}function hn(e){const t=dn.get(e);t&&(t.flags|=8,dn.delete(e))}$().requestIdleCallback,$().cancelIdleCallback;const vn=e=>!!e.type.__asyncLoader,gn=e=>e.type.__isKeepAlive;function mn(e,t){xn(e,"a",t)}function yn(e,t){xn(e,"da",t)}function xn(e,t,n=as){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(_n(t,o,n),n){let e=n.parent;for(;e&&e.parent;)gn(e.parent.vnode)&&bn(o,t,n,e),e=e.parent}}function bn(e,t,n,o){const s=_n(t,e,o,!0);Pn(()=>{d(o[t],s)},n)}function _n(e,t,n=as,o=!1){if(n){const s=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=(...o)=>{_e();const s=ds(n),l=Lt(t,n,e,o);return s(),we(),l});return o?s.unshift(l):s.push(l),l}}const wn=e=>(t,n=as)=>{vs&&"sp"!==e||_n(e,(...e)=>t(...e),n)},Sn=wn("bm"),kn=wn("m"),Cn=wn("bu"),Mn=wn("u"),On=wn("bum"),Pn=wn("um"),En=wn("sp"),Tn=wn("rtg"),In=wn("rtc");function jn(e,t=as){_n("ec",e,t)}const An=Symbol.for("v-ndc");function Ln(e,t,n,o){let s;const l=n,i=v(e);if(i||b(e)){let n=!1,o=!1;i&&vt(e)&&(n=!mt(e),o=gt(e),e=Re(e)),s=new Array(e.length);for(let i=0,r=e.length;i<r;i++)s[i]=t(n?o?_t(bt(e[i])):bt(e[i]):e[i],i,void 0,l)}else if("number"==typeof e){s=new Array(e);for(let n=0;n<e;n++)s[n]=t(n+1,n,void 0,l)}else if(w(e))if(e[Symbol.iterator])s=Array.from(e,(e,n)=>t(e,n,void 0,l));else{const n=Object.keys(e);s=new Array(n.length);for(let o=0,i=n.length;o<i;o++){const i=n[o];s[o]=t(e[i],i,o,l)}}else s=[];return s}const Rn=e=>e?hs(e)?xs(e):Rn(e.parent):null,Fn=f(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=>Rn(e.parent),$root:e=>Rn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>zn(e),$forceUpdate:e=>e.f||(e.f=()=>{zt(e.update)}),$nextTick:e=>e.n||(e.n=Bt.bind(e.proxy)),$watch:e=>ln.bind(e)}),Dn=(e,t)=>e!==l&&!e.__isScriptSetup&&h(e,t),Vn={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:o,data:s,props:i,accessCache:r,type:a,appContext:c}=e;if("$"!==t[0]){const e=r[t];if(void 0!==e)switch(e){case 1:return o[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(Dn(o,t))return r[t]=1,o[t];if(s!==l&&h(s,t))return r[t]=2,s[t];if(h(i,t))return r[t]=3,i[t];if(n!==l&&h(n,t))return r[t]=4,n[t];Un&&(r[t]=0)}}const u=Fn[t];let f,d;return u?("$attrs"===t&&je(e.attrs,0,""),u(e)):(f=a.__cssModules)&&(f=f[t])?f:n!==l&&h(n,t)?(r[t]=4,n[t]):(d=c.config.globalProperties,h(d,t)?d[t]:void 0)},set({_:e},t,n){const{data:o,setupState:s,ctx:i}=e;return Dn(s,t)?(s[t]=n,!0):o!==l&&h(o,t)?(o[t]=n,!0):!h(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(i[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:s,props:i,type:r}},a){let c;return!!(n[a]||e!==l&&"$"!==a[0]&&h(e,a)||Dn(t,a)||h(i,a)||h(o,a)||h(Fn,a)||h(s.config.globalProperties,a)||(c=r.__cssModules)&&c[a])},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:h(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Nn(e){return v(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}let Un=!0;function $n(e){const t=zn(e),n=e.proxy,o=e.ctx;Un=!1,t.beforeCreate&&Wn(t.beforeCreate,e,"bc");const{data:s,computed:l,methods:i,watch:a,provide:c,inject:u,created:f,beforeMount:d,mounted:p,beforeUpdate:h,updated:g,activated:m,deactivated:y,beforeDestroy:b,beforeUnmount:_,destroyed:S,unmounted:k,render:C,renderTracked:M,renderTriggered:O,errorCaptured:P,serverPrefetch:E,expose:T,inheritAttrs:I,components:j,directives:A,filters:L}=t;if(u&&function(e,t){v(e)&&(e=Xn(e));for(const n in e){const o=e[n];let s;s=w(o)?"default"in o?tn(o.from||n,o.default,!0):tn(o.from||n):tn(o),wt(s)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e}):t[n]=s}}(u,o,null),i)for(const r in i){const e=i[r];x(e)&&(o[r]=e.bind(n))}if(s){const t=s.call(n,n);w(t)&&(e.data=dt(t))}if(Un=!0,l)for(const v in l){const e=l[v],t=x(e)?e.bind(n,n):x(e.get)?e.get.bind(n,n):r,s=!x(e)&&x(e.set)?e.set.bind(n):r,i=bs({get:t,set:s});Object.defineProperty(o,v,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e})}if(a)for(const r in a)Bn(a[r],o,n,r);if(c){const e=x(c)?c.call(n):c;Reflect.ownKeys(e).forEach(t=>{!function(e,t){if(as){let n=as.provides;const o=as.parent&&as.parent.provides;o===n&&(n=as.provides=Object.create(o)),n[e]=t}}(t,e[t])})}function R(e,t){v(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(f&&Wn(f,e,"c"),R(Sn,d),R(kn,p),R(Cn,h),R(Mn,g),R(mn,m),R(yn,y),R(jn,P),R(In,M),R(Tn,O),R(On,_),R(Pn,k),R(En,E),v(T))if(T.length){const t=e.exposed||(e.exposed={});T.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||(e.exposed={});C&&e.render===r&&(e.render=C),null!=I&&(e.inheritAttrs=I),j&&(e.components=j),A&&(e.directives=A),E&&fn(e)}function Wn(e,t,n){Lt(v(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Bn(e,t,n,o){let s=o.includes(".")?rn(n,o):()=>n[o];if(b(e)){const n=t[e];x(n)&&on(s,n)}else if(x(e))on(s,e.bind(n));else if(w(e))if(v(e))e.forEach(e=>Bn(e,t,n,o));else{const o=x(e.handler)?e.handler.bind(n):t[e.handler];x(o)&&on(s,o,e)}}function zn(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:s,optionsCache:l,config:{optionMergeStrategies:i}}=e.appContext,r=l.get(t);let a;return r?a=r:s.length||n||o?(a={},s.length&&s.forEach(e=>Jn(a,e,i,!0)),Jn(a,t,i)):a=t,w(t)&&l.set(t,a),a}function Jn(e,t,n,o=!1){const{mixins:s,extends:l}=t;l&&Jn(e,l,n,!0),s&&s.forEach(t=>Jn(e,t,n,!0));for(const i in t)if(o&&"expose"===i);else{const o=Hn[i]||n&&n[i];e[i]=o?o(e[i],t[i]):t[i]}return e}const Hn={data:Kn,props:Gn,emits:Gn,methods:qn,computed:qn,beforeCreate:Yn,created:Yn,beforeMount:Yn,mounted:Yn,beforeUpdate:Yn,updated:Yn,beforeDestroy:Yn,beforeUnmount:Yn,destroyed:Yn,unmounted:Yn,activated:Yn,deactivated:Yn,errorCaptured:Yn,serverPrefetch:Yn,components:qn,directives:qn,watch:function(e,t){if(!e)return t;if(!t)return e;const n=f(Object.create(null),e);for(const o in t)n[o]=Yn(e[o],t[o]);return n},provide:Kn,inject:function(e,t){return qn(Xn(e),Xn(t))}};function Kn(e,t){return t?e?function(){return f(x(e)?e.call(this,this):e,x(t)?t.call(this,this):t)}:t:e}function Xn(e){if(v(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Yn(e,t){return e?[...new Set([].concat(e,t))]:t}function qn(e,t){return e?f(Object.create(null),e,t):t}function Gn(e,t){return e?v(e)&&v(t)?[...new Set([...e,...t])]:f(Object.create(null),Nn(e),Nn(null!=t?t:{})):t}function Zn(){return{app:null,config:{isNativeTag:a,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 Qn=0;function eo(e,t){return function(t,n=null){x(t)||(t=f({},t)),null==n||w(n)||(n=null);const o=Zn(),s=new WeakSet,l=[];let i=!1;const r=o.app={_uid:Qn++,_component:t,_props:n,_container:null,_context:o,_instance:null,version:_s,get config(){return o.config},set config(e){},use:(e,...t)=>(s.has(e)||(e&&x(e.install)?(s.add(e),e.install(r,...t)):x(e)&&(s.add(e),e(r,...t))),r),mixin:e=>(o.mixins.includes(e)||o.mixins.push(e),r),component:(e,t)=>t?(o.components[e]=t,r):o.components[e],directive:(e,t)=>t?(o.directives[e]=t,r):o.directives[e],mount(s,l,a){if(!i){const l=r._ceVNode||Zo(t,n);return l.appContext=o,!0===a?a="svg":!1===a&&(a=void 0),e(l,s,a),i=!0,r._container=s,s.__vue_app__=r,xs(l.component)}},onUnmount(e){l.push(e)},unmount(){i&&(Lt(l,r._instance,16),e(null,r._container),delete r._container.__vue_app__)},provide:(e,t)=>(o.provides[e]=t,r),runWithContext(e){const t=to;to=r;try{return e()}finally{to=t}}};return r}}let to=null;function no(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||l;let s=n;const i=t.startsWith("update:"),r=i&&((e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${I(t)}Modifiers`]||e[`${A(t)}Modifiers`])(o,t.slice(7));let a;r&&(r.trim&&(s=n.map(e=>b(e)?e.trim():e)),r.number&&(s=n.map(N)));let c=o[a=R(t)]||o[a=R(I(t))];!c&&i&&(c=o[a=R(A(t))]),c&&Lt(c,e,6,s);const u=o[a+"Once"];if(u){if(e.emitted){if(e.emitted[a])return}else e.emitted={};e.emitted[a]=!0,Lt(u,e,6,s)}}const oo=new WeakMap;function so(e,t,n=!1){const o=n?oo:t.emitsCache,s=o.get(e);if(void 0!==s)return s;const l=e.emits;let i={},r=!1;if(!x(e)){const o=e=>{const n=so(e,t,!0);n&&(r=!0,f(i,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return l||r?(v(l)?l.forEach(e=>i[e]=null):f(i,l),w(e)&&o.set(e,i),i):(w(e)&&o.set(e,null),null)}function lo(e,t){return!(!e||!c(t))&&(t=t.slice(2).replace(/Once$/,""),h(e,t[0].toLowerCase()+t.slice(1))||h(e,A(t))||h(e,t))}function io(e){const{type:t,vnode:n,proxy:o,withProxy:s,propsOptions:[l],slots:i,attrs:r,emit:a,render:c,renderCache:f,props:d,data:p,setupState:h,ctx:v,inheritAttrs:g}=e,m=Zt(e);let y,x;try{if(4&n.shapeFlag){const e=s||o,t=e;y=ns(c.call(t,e,f,d,h,p,v)),x=r}else{const e=t;0,y=ns(e.length>1?e(d,{attrs:r,slots:i,emit:a}):e(d,null)),x=t.props?r:ro(r)}}catch(_){No.length=0,Rt(_,e,1),y=Zo(Do)}let b=y;if(x&&!1!==g){const e=Object.keys(x),{shapeFlag:t}=b;e.length&&7&t&&(l&&e.some(u)&&(x=ao(x,l)),b=Qo(b,x,!1,!0))}return n.dirs&&(b=Qo(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&un(b,n.transition),y=b,Zt(m),y}const ro=e=>{let t;for(const n in e)("class"===n||"style"===n||c(n))&&((t||(t={}))[n]=e[n]);return t},ao=(e,t)=>{const n={};for(const o in e)u(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function co(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let s=0;s<o.length;s++){const l=o[s];if(t[l]!==e[l]&&!lo(n,l))return!0}return!1}const uo={},fo=()=>Object.create(uo),po=e=>Object.getPrototypeOf(e)===uo;function ho(e,t,n,o=!1){const s={},l=fo();e.propsDefaults=Object.create(null),vo(e,t,s,l);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=o?s:ht(s,!1,Ze,lt,at):e.type.props?e.props=s:e.props=l,e.attrs=l}function vo(e,t,n,o){const[s,i]=e.propsOptions;let r,a=!1;if(t)for(let l in t){if(P(l))continue;const c=t[l];let u;s&&h(s,u=I(l))?i&&i.includes(u)?(r||(r={}))[u]=c:n[u]=c:lo(e.emitsOptions,l)||l in o&&c===o[l]||(o[l]=c,a=!0)}if(i){const t=xt(n),o=r||l;for(let l=0;l<i.length;l++){const r=i[l];n[r]=go(s,t,r,o[r],e,!h(o,r))}}return a}function go(e,t,n,o,s,l){const i=e[n];if(null!=i){const e=h(i,"default");if(e&&void 0===o){const e=i.default;if(i.type!==Function&&!i.skipFactory&&x(e)){const{propsDefaults:l}=s;if(n in l)o=l[n];else{const i=ds(s);o=l[n]=e.call(null,t),i()}}else o=e;s.ce&&s.ce._setProp(n,o)}i[0]&&(l&&!e?o=!1:!i[1]||""!==o&&o!==A(n)||(o=!0))}return o}const mo=new WeakMap;function yo(e,t,n=!1){const o=n?mo:t.propsCache,s=o.get(e);if(s)return s;const r=e.props,a={},c=[];let u=!1;if(!x(e)){const o=e=>{u=!0;const[n,o]=yo(e,t,!0);f(a,n),o&&c.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!r&&!u)return w(e)&&o.set(e,i),i;if(v(r))for(let i=0;i<r.length;i++){const e=I(r[i]);xo(e)&&(a[e]=l)}else if(r)for(const l in r){const e=I(l);if(xo(e)){const t=r[l],n=a[e]=v(t)||x(t)?{type:t}:f({},t),o=n.type;let s=!1,i=!0;if(v(o))for(let e=0;e<o.length;++e){const t=o[e],n=x(t)&&t.name;if("Boolean"===n){s=!0;break}"String"===n&&(i=!1)}else s=x(o)&&"Boolean"===o.name;n[0]=s,n[1]=i,(s||h(n,"default"))&&c.push(e)}}const d=[a,c];return w(e)&&o.set(e,d),d}function xo(e){return"$"!==e[0]&&!P(e)}const bo=e=>"_"===e||"_ctx"===e||"$stable"===e,_o=e=>v(e)?e.map(ns):[ns(e)],wo=(e,t,n)=>{if(t._n)return t;const o=function(e,t=qt){if(!t)return e;if(e._n)return e;const n=(...o)=>{n._d&&Bo(-1);const s=Zt(t);let l;try{l=e(...o)}finally{Zt(s),n._d&&Bo(1)}return l};return n._n=!0,n._c=!0,n._d=!0,n}((...e)=>_o(t(...e)),n);return o._c=!1,o},So=(e,t,n)=>{const o=e._ctx;for(const s in e){if(bo(s))continue;const n=e[s];if(x(n))t[s]=wo(0,n,o);else if(null!=n){const e=_o(n);t[s]=()=>e}}},ko=(e,t)=>{const n=_o(t);e.slots.default=()=>n},Co=(e,t,n)=>{for(const o in t)!n&&bo(o)||(e[o]=t[o])},Mo=function(e,t){t&&t.pendingBranch?v(e)?t.effects.push(...e):t.effects.push(e):(v(n=e)?Vt.push(...n):Nt&&-1===n.id?Nt.splice(Ut+1,0,n):1&n.flags||(Vt.push(n),n.flags|=1),Jt());var n};function Oo(e){return function(e){$().__VUE__=!0;const{insert:t,remove:n,patchProp:o,createElement:s,createText:a,createComment:c,setText:u,setElementText:f,parentNode:d,nextSibling:p,setScopeId:v=r,insertStaticContent:g}=e,m=(e,t,n,o=null,s=null,l=null,i=void 0,r=null,a=!!t.dynamicChildren)=>{if(e===t)return;e&&!Xo(e,t)&&(o=Z(e),K(e,s,l,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:f}=t;switch(c){case Fo:y(e,t,n,o);break;case Do:x(e,t,n,o);break;case Vo:null==e&&b(t,n,o,i);break;case Ro:L(e,t,n,o,s,l,i,r,a);break;default:1&f?k(e,t,n,o,s,l,i,r,a):6&f?R(e,t,n,o,s,l,i,r,a):(64&f||128&f)&&c.process(e,t,n,o,s,l,i,r,a,te)}null!=u&&s?pn(u,e&&e.ref,l,t||e,!t):null==u&&e&&null!=e.ref&&pn(e.ref,null,l,e,!0)},y=(e,n,o,s)=>{if(null==e)t(n.el=a(n.children),o,s);else{const t=n.el=e.el;n.children!==e.children&&u(t,n.children)}},x=(e,n,o,s)=>{null==e?t(n.el=c(n.children||""),o,s):n.el=e.el},b=(e,t,n,o)=>{[e.el,e.anchor]=g(e.children,t,n,o,e.el,e.anchor)},_=({el:e,anchor:n},o,s)=>{let l;for(;e&&e!==n;)l=p(e),t(e,o,s),e=l;t(n,o,s)},w=({el:e,anchor:t})=>{let o;for(;e&&e!==t;)o=p(e),n(e),e=o;n(t)},k=(e,t,n,o,s,l,i,r,a)=>{if("svg"===t.type?i="svg":"math"===t.type&&(i="mathml"),null==e)C(t,n,o,s,l,i,r,a);else{const n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),E(e,t,s,l,i,r,a)}finally{n&&n._endPatch()}}},C=(e,n,l,i,r,a,c,u)=>{let d,p;const{props:h,shapeFlag:v,transition:g,dirs:m}=e;if(d=e.el=s(e.type,a,h&&h.is,h),8&v?f(d,e.children):16&v&&O(e.children,d,null,i,r,Po(e,a),c,u),m&&en(e,null,i,"created"),M(d,e,e.scopeId,c,i),h){for(const e in h)"value"===e||P(e)||o(d,e,null,h[e],a,i);"value"in h&&o(d,"value",null,h.value,a),(p=h.onVnodeBeforeMount)&&ls(p,i,e)}m&&en(e,null,i,"beforeMount");const y=function(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}(r,g);y&&g.beforeEnter(d),t(d,n,l),((p=h&&h.onVnodeMounted)||y||m)&&Mo(()=>{p&&ls(p,i,e),y&&g.enter(d),m&&en(e,null,i,"mounted")},r)},M=(e,t,n,o,s)=>{if(n&&v(e,n),o)for(let l=0;l<o.length;l++)v(e,o[l]);if(s){let n=s.subTree;if(t===n||Lo(n.type)&&(n.ssContent===t||n.ssFallback===t)){const t=s.vnode;M(e,t,t.scopeId,t.slotScopeIds,s.parent)}}},O=(e,t,n,o,s,l,i,r,a=0)=>{for(let c=a;c<e.length;c++){const a=e[c]=r?os(e[c]):ns(e[c]);m(null,a,t,n,o,s,l,i,r)}},E=(e,t,n,s,i,r,a)=>{const c=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:p}=t;u|=16&e.patchFlag;const h=e.props||l,v=t.props||l;let g;if(n&&Eo(n,!1),(g=v.onVnodeBeforeUpdate)&&ls(g,n,t,e),p&&en(t,e,n,"beforeUpdate"),n&&Eo(n,!0),(h.innerHTML&&null==v.innerHTML||h.textContent&&null==v.textContent)&&f(c,""),d?T(e.dynamicChildren,d,c,n,s,Po(t,i),r):a||B(e,t,c,null,n,s,Po(t,i),r,!1),u>0){if(16&u)j(c,h,v,n,i);else if(2&u&&h.class!==v.class&&o(c,"class",null,v.class,i),4&u&&o(c,"style",h.style,v.style,i),8&u){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const s=e[t],l=h[s],r=v[s];r===l&&"value"!==s||o(c,s,l,r,i,n)}}1&u&&e.children!==t.children&&f(c,t.children)}else a||null!=d||j(c,h,v,n,i);((g=v.onVnodeUpdated)||p)&&Mo(()=>{g&&ls(g,n,t,e),p&&en(t,e,n,"updated")},s)},T=(e,t,n,o,s,l,i)=>{for(let r=0;r<t.length;r++){const a=e[r],c=t[r],u=a.el&&(a.type===Ro||!Xo(a,c)||198&a.shapeFlag)?d(a.el):n;m(a,c,u,null,o,s,l,i,!0)}},j=(e,t,n,s,i)=>{if(t!==n){if(t!==l)for(const l in t)P(l)||l in n||o(e,l,t[l],null,i,s);for(const l in n){if(P(l))continue;const r=n[l],a=t[l];r!==a&&"value"!==l&&o(e,l,a,r,i,s)}"value"in n&&o(e,"value",t.value,n.value,i)}},L=(e,n,o,s,l,i,r,c,u)=>{const f=n.el=e?e.el:a(""),d=n.anchor=e?e.anchor:a("");let{patchFlag:p,dynamicChildren:h,slotScopeIds:v}=n;v&&(c=c?c.concat(v):v),null==e?(t(f,o,s),t(d,o,s),O(n.children||[],o,d,l,i,r,c,u)):p>0&&64&p&&h&&e.dynamicChildren&&e.dynamicChildren.length===h.length?(T(e.dynamicChildren,h,o,l,i,r,c),(null!=n.key||l&&n===l.subTree)&&To(e,n,!0)):B(e,n,o,d,l,i,r,c,u)},R=(e,t,n,o,s,l,i,r,a)=>{t.slotScopeIds=r,null==e?512&t.shapeFlag?s.ctx.activate(t,n,o,i,a):F(t,n,o,s,l,i,a):N(e,t,a)},F=(e,t,n,o,s,i,r)=>{const a=e.component=function(e,t,n){const o=e.type,s=(t?t.appContext:e.appContext)||is,i={uid:rs++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new se(!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:yo(o,s),emitsOptions:so(o,s),emit:null,emitted:null,propsDefaults:l,inheritAttrs:o.inheritAttrs,ctx:l,data:l,props:l,attrs:l,slots:l,refs:l,setupState:l,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};i.ctx={_:i},i.root=t?t.root:i,i.emit=no.bind(null,i),e.ce&&e.ce(i);return i}(e,o,s);if(gn(e)&&(a.ctx.renderer=te),function(e,t=!1,n=!1){t&&fs(t);const{props:o,children:s}=e.vnode,l=hs(e);ho(e,o,l,t),((e,t,n)=>{const o=e.slots=fo();if(32&e.vnode.shapeFlag){const e=t._;e?(Co(o,t,n),n&&V(o,"_",e,!0)):So(t,o)}else t&&ko(e,t)})(e,s,n||t);const i=l?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Vn);const{setup:o}=n;if(o){_e();const n=e.setupContext=o.length>1?function(e){const t=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,ys),slots:e.slots,emit:e.emit,expose:t}}(e):null,s=ds(e),l=At(o,e,0,[e.props,n]),i=S(l);if(we(),s(),!i&&!e.sp||vn(e)||fn(e),i){if(l.then(ps,ps),t)return l.then(t=>{gs(e,t)}).catch(t=>{Rt(t,e,0)});e.asyncDep=l}else gs(e,l)}else ms(e)}(e,t):void 0;t&&fs(!1)}(a,!1,r),a.asyncDep){if(s&&s.registerDep(a,U,r),!e.el){const o=a.subTree=Zo(Do);x(null,o,t,n),e.placeholder=o.el}}else U(a,e,t,n,s,i,r)},N=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:s,component:l}=e,{props:i,children:r,patchFlag:a}=t,c=l.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&a>=0))return!(!s&&!r||r&&r.$stable)||o!==i&&(o?!i||co(o,i,c):!!i);if(1024&a)return!0;if(16&a)return o?co(o,i,c):!!i;if(8&a){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(i[n]!==o[n]&&!lo(c,n))return!0}}return!1}(e,t,n)){if(o.asyncDep&&!o.asyncResolved)return void W(o,t,n);o.next=t,o.update()}else t.el=e.el,o.vnode=t},U=(e,t,n,o,s,l,i)=>{const r=()=>{if(e.isMounted){let{next:t,bu:n,u:o,parent:a,vnode:c}=e;{const n=Io(e);if(n)return t&&(t.el=c.el,W(e,t,i)),void n.asyncDep.then(()=>{e.isUnmounted||r()})}let u,f=t;Eo(e,!1),t?(t.el=c.el,W(e,t,i)):t=c,n&&D(n),(u=t.props&&t.props.onVnodeBeforeUpdate)&&ls(u,a,t,c),Eo(e,!0);const p=io(e),h=e.subTree;e.subTree=p,m(h,p,d(h.el),Z(h),e,s,l),t.el=p.el,null===f&&function({vnode:e,parent:t},n){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o!==e)break;(e=t.vnode).el=n,t=t.parent}}(e,p.el),o&&Mo(o,s),(u=t.props&&t.props.onVnodeUpdated)&&Mo(()=>ls(u,a,t,c),s)}else{let i;const{el:r,props:a}=t,{bm:c,m:u,parent:f,root:d,type:p}=e,h=vn(t);Eo(e,!1),c&&D(c),!h&&(i=a&&a.onVnodeBeforeMount)&&ls(i,f,t),Eo(e,!0);{d.ce&&!1!==d.ce._def.shadowRoot&&d.ce._injectChildStyle(p);const i=e.subTree=io(e);m(null,i,n,o,e,s,l),t.el=i.el}if(u&&Mo(u,s),!h&&(i=a&&a.onVnodeMounted)){const e=t;Mo(()=>ls(i,f,e),s)}(256&t.shapeFlag||f&&vn(f.vnode)&&256&f.vnode.shapeFlag)&&e.a&&Mo(e.a,s),e.isMounted=!0,t=n=o=null}};e.scope.on();const a=e.effect=new ie(r);e.scope.off();const c=e.update=a.run.bind(a),u=e.job=a.runIfDirty.bind(a);u.i=e,u.id=e.uid,a.scheduler=()=>zt(u),Eo(e,!0),c()},W=(e,t,n)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:s,attrs:l,vnode:{patchFlag:i}}=e,r=xt(s),[a]=e.propsOptions;let c=!1;if(!(o||i>0)||16&i){let o;vo(e,t,s,l)&&(c=!0);for(const l in r)t&&(h(t,l)||(o=A(l))!==l&&h(t,o))||(a?!n||void 0===n[l]&&void 0===n[o]||(s[l]=go(a,r,l,void 0,e,!0)):delete s[l]);if(l!==r)for(const e in l)t&&h(t,e)||(delete l[e],c=!0)}else if(8&i){const n=e.vnode.dynamicProps;for(let o=0;o<n.length;o++){let i=n[o];if(lo(e.emitsOptions,i))continue;const u=t[i];if(a)if(h(l,i))u!==l[i]&&(l[i]=u,c=!0);else{const t=I(i);s[t]=go(a,r,t,u,e,!1)}else u!==l[i]&&(l[i]=u,c=!0)}}c&&Ae(e.attrs,"set","")}(e,t.props,o,n),((e,t,n)=>{const{vnode:o,slots:s}=e;let i=!0,r=l;if(32&o.shapeFlag){const e=t._;e?n&&1===e?i=!1:Co(s,t,n):(i=!t.$stable,So(t,s)),r=t}else t&&(ko(e,t),r={default:1});if(i)for(const l in s)bo(l)||null!=r[l]||delete s[l]})(e,t.children,n),_e(),Ht(e),we()},B=(e,t,n,o,s,l,i,r,a=!1)=>{const c=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:h}=t;if(p>0){if(128&p)return void J(c,d,n,o,s,l,i,r,a);if(256&p)return void z(c,d,n,o,s,l,i,r,a)}8&h?(16&u&&G(c,s,l),d!==c&&f(n,d)):16&u?16&h?J(c,d,n,o,s,l,i,r,a):G(c,s,l,!0):(8&u&&f(n,""),16&h&&O(d,n,o,s,l,i,r,a))},z=(e,t,n,o,s,l,r,a,c)=>{t=t||i;const u=(e=e||i).length,f=t.length,d=Math.min(u,f);let p;for(p=0;p<d;p++){const o=t[p]=c?os(t[p]):ns(t[p]);m(e[p],o,n,null,s,l,r,a,c)}u>f?G(e,s,l,!0,!1,d):O(t,n,o,s,l,r,a,c,d)},J=(e,t,n,o,s,l,r,a,c)=>{let u=0;const f=t.length;let d=e.length-1,p=f-1;for(;u<=d&&u<=p;){const o=e[u],i=t[u]=c?os(t[u]):ns(t[u]);if(!Xo(o,i))break;m(o,i,n,null,s,l,r,a,c),u++}for(;u<=d&&u<=p;){const o=e[d],i=t[p]=c?os(t[p]):ns(t[p]);if(!Xo(o,i))break;m(o,i,n,null,s,l,r,a,c),d--,p--}if(u>d){if(u<=p){const e=p+1,i=e<f?t[e].el:o;for(;u<=p;)m(null,t[u]=c?os(t[u]):ns(t[u]),n,i,s,l,r,a,c),u++}}else if(u>p)for(;u<=d;)K(e[u],s,l,!0),u++;else{const h=u,v=u,g=new Map;for(u=v;u<=p;u++){const e=t[u]=c?os(t[u]):ns(t[u]);null!=e.key&&g.set(e.key,u)}let y,x=0;const b=p-v+1;let _=!1,w=0;const S=new Array(b);for(u=0;u<b;u++)S[u]=0;for(u=h;u<=d;u++){const o=e[u];if(x>=b){K(o,s,l,!0);continue}let i;if(null!=o.key)i=g.get(o.key);else for(y=v;y<=p;y++)if(0===S[y-v]&&Xo(o,t[y])){i=y;break}void 0===i?K(o,s,l,!0):(S[i-v]=u+1,i>=w?w=i:_=!0,m(o,t[i],n,null,s,l,r,a,c),x++)}const k=_?function(e){const t=e.slice(),n=[0];let o,s,l,i,r;const a=e.length;for(o=0;o<a;o++){const a=e[o];if(0!==a){if(s=n[n.length-1],e[s]<a){t[o]=s,n.push(o);continue}for(l=0,i=n.length-1;l<i;)r=l+i>>1,e[n[r]]<a?l=r+1:i=r;a<e[n[l]]&&(l>0&&(t[o]=n[l-1]),n[l]=o)}}l=n.length,i=n[l-1];for(;l-- >0;)n[l]=i,i=t[i];return n}(S):i;for(y=k.length-1,u=b-1;u>=0;u--){const e=v+u,i=t[e],d=t[e+1],p=e+1<f?d.el||Ao(d):o;0===S[u]?m(null,i,n,p,s,l,r,a,c):_&&(y<0||u!==k[y]?H(i,n,p,2):y--)}}},H=(e,o,s,l,i=null)=>{const{el:r,type:a,transition:c,children:u,shapeFlag:f}=e;if(6&f)return void H(e.component.subTree,o,s,l);if(128&f)return void e.suspense.move(o,s,l);if(64&f)return void a.move(e,o,s,te);if(a===Ro){t(r,o,s);for(let e=0;e<u.length;e++)H(u[e],o,s,l);return void t(e.anchor,o,s)}if(a===Vo)return void _(e,o,s);if(2!==l&&1&f&&c)if(0===l)c.beforeEnter(r),t(r,o,s),Mo(()=>c.enter(r),i);else{const{leave:l,delayLeave:i,afterLeave:a}=c,u=()=>{e.ctx.isUnmounted?n(r):t(r,o,s)},f=()=>{r._isLeaving&&r[cn](!0),l(r,()=>{u(),a&&a()})};i?i(r,u,f):f()}else t(r,o,s)},K=(e,t,n,o=!1,s=!1)=>{const{type:l,props:i,ref:r,children:a,dynamicChildren:c,shapeFlag:u,patchFlag:f,dirs:d,cacheIndex:p}=e;if(-2===f&&(s=!1),null!=r&&(_e(),pn(r,null,n,e,!0),we()),null!=p&&(t.renderCache[p]=void 0),256&u)return void t.ctx.deactivate(e);const h=1&u&&d,v=!vn(e);let g;if(v&&(g=i&&i.onVnodeBeforeUnmount)&&ls(g,t,e),6&u)q(e.component,n,o);else{if(128&u)return void e.suspense.unmount(n,o);h&&en(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,te,o):c&&!c.hasOnce&&(l!==Ro||f>0&&64&f)?G(c,t,n,!1,!0):(l===Ro&&384&f||!s&&16&u)&&G(a,t,n),o&&X(e)}(v&&(g=i&&i.onVnodeUnmounted)||h)&&Mo(()=>{g&&ls(g,t,e),h&&en(e,null,t,"unmounted")},n)},X=e=>{const{type:t,el:o,anchor:s,transition:l}=e;if(t===Ro)return void Y(o,s);if(t===Vo)return void w(e);const i=()=>{n(o),l&&!l.persisted&&l.afterLeave&&l.afterLeave()};if(1&e.shapeFlag&&l&&!l.persisted){const{leave:t,delayLeave:n}=l,s=()=>t(o,i);n?n(e.el,i,s):s()}else i()},Y=(e,t)=>{let o;for(;e!==t;)o=p(e),n(e),e=o;n(t)},q=(e,t,n)=>{const{bum:o,scope:s,job:l,subTree:i,um:r,m:a,a:c}=e;jo(a),jo(c),o&&D(o),s.stop(),l&&(l.flags|=8,K(i,e,t,n)),r&&Mo(r,t),Mo(()=>{e.isUnmounted=!0},t)},G=(e,t,n,o=!1,s=!1,l=0)=>{for(let i=l;i<e.length;i++)K(e[i],t,n,o,s)},Z=e=>{if(6&e.shapeFlag)return Z(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=p(e.anchor||e.el),n=t&&t[an];return n?p(n):t};let Q=!1;const ee=(e,t,n)=>{let o;null==e?t._vnode&&(K(t._vnode,null,null,!0),o=t._vnode.component):m(t._vnode||null,e,t,null,null,null,n),t._vnode=e,Q||(Q=!0,Ht(o),Kt(),Q=!1)},te={p:m,um:K,m:H,r:X,mt:F,mc:O,pc:B,pbc:T,n:Z,o:e};let ne;return{render:ee,hydrate:ne,createApp:eo(ee)}}(e)}function Po({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Eo({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function To(e,t,n=!1){const o=e.children,s=t.children;if(v(o)&&v(s))for(let l=0;l<o.length;l++){const t=o[l];let i=s[l];1&i.shapeFlag&&!i.dynamicChildren&&((i.patchFlag<=0||32===i.patchFlag)&&(i=s[l]=os(s[l]),i.el=t.el),n||-2===i.patchFlag||To(t,i)),i.type===Fo&&(-1!==i.patchFlag?i.el=t.el:i.__elIndex=l+(e.type===Ro?1:0)),i.type!==Do||i.el||(i.el=t.el)}}function Io(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Io(t)}function jo(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Ao(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Ao(t.subTree):null}const Lo=e=>e.__isSuspense;const Ro=Symbol.for("v-fgt"),Fo=Symbol.for("v-txt"),Do=Symbol.for("v-cmt"),Vo=Symbol.for("v-stc"),No=[];let Uo=null;function $o(e=!1){No.push(Uo=e?null:[])}let Wo=1;function Bo(e,t=!1){Wo+=e,e<0&&Uo&&t&&(Uo.hasOnce=!0)}function zo(e){return e.dynamicChildren=Wo>0?Uo||i:null,No.pop(),Uo=No[No.length-1]||null,Wo>0&&Uo&&Uo.push(e),e}function Jo(e,t,n,o,s,l){return zo(Go(e,t,n,o,s,l,!0))}function Ho(e,t,n,o,s){return zo(Zo(e,t,n,o,s,!0))}function Ko(e){return!!e&&!0===e.__v_isVNode}function Xo(e,t){return e.type===t.type&&e.key===t.key}const Yo=({key:e})=>null!=e?e:null,qo=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?b(e)||wt(e)||x(e)?{i:qt,r:e,k:t,f:!!n}:e:null);function Go(e,t=null,n=null,o=0,s=null,l=(e===Ro?0:1),i=!1,r=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Yo(t),ref:t&&qo(t),scopeId:Gt,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:l,patchFlag:o,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:qt};return r?(ss(a,n),128&l&&e.normalize(a)):n&&(a.shapeFlag|=b(n)?8:16),Wo>0&&!i&&Uo&&(a.patchFlag>0||6&l)&&32!==a.patchFlag&&Uo.push(a),a}const Zo=function(e,t=null,n=null,o=0,s=null,l=!1){e&&e!==An||(e=Do);if(Ko(e)){const o=Qo(e,t,!0);return n&&ss(o,n),Wo>0&&!l&&Uo&&(6&o.shapeFlag?Uo[Uo.indexOf(e)]=o:Uo.push(o)),o.patchFlag=-2,o}i=e,x(i)&&"__vccOpts"in i&&(e=e.__vccOpts);var i;if(t){t=function(e){return e?yt(e)||po(e)?f({},e):e:null}(t);let{class:e,style:n}=t;e&&!b(e)&&(t.class=K(e)),w(n)&&(yt(n)&&!v(n)&&(n=f({},n)),t.style=W(n))}const r=b(e)?1:Lo(e)?128:(e=>e.__isTeleport)(e)?64:w(e)?4:x(e)?2:0;return Go(e,t,n,o,s,r,l,!0)};function Qo(e,t,n=!1,o=!1){const{props:s,ref:l,patchFlag:i,children:r,transition:a}=e,u=t?function(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const e in o)if("class"===e)t.class!==o.class&&(t.class=K([t.class,o.class]));else if("style"===e)t.style=W([t.style,o.style]);else if(c(e)){const n=t[e],s=o[e];!s||n===s||v(n)&&n.includes(s)||(t[e]=n?[].concat(n,s):s)}else""!==e&&(t[e]=o[e])}return t}(s||{},t):s,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Yo(u),ref:t&&t.ref?n&&l?v(l)?l.concat(qo(t)):[l,qo(t)]:qo(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:r,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ro?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Qo(e.ssContent),ssFallback:e.ssFallback&&Qo(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&o&&un(f,a.clone(f)),f}function es(e=" ",t=0){return Zo(Fo,null,e,t)}function ts(e="",t=!1){return t?($o(),Ho(Do,null,e)):Zo(Do,null,e)}function ns(e){return null==e||"boolean"==typeof e?Zo(Do):v(e)?Zo(Ro,null,e.slice()):Ko(e)?os(e):Zo(Fo,null,String(e))}function os(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:Qo(e)}function ss(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(v(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),ss(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||po(t)?3===o&&qt&&(1===qt.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=qt}}else x(t)?(t={default:t,_ctx:qt},n=32):(t=String(t),64&o?(n=16,t=[es(t)]):n=8);e.children=t,e.shapeFlag|=n}function ls(e,t,n,o=null){Lt(e,t,7,[n,o])}const is=Zn();let rs=0;let as=null;const cs=()=>as||qt;let us,fs;{const e=$(),t=(t,n)=>{let o;return(o=e[t])||(o=e[t]=[]),o.push(n),e=>{o.length>1?o.forEach(t=>t(e)):o[0](e)}};us=t("__VUE_INSTANCE_SETTERS__",e=>as=e),fs=t("__VUE_SSR_SETTERS__",e=>vs=e)}const ds=e=>{const t=as;return us(e),e.scope.on(),()=>{e.scope.off(),us(t)}},ps=()=>{as&&as.scope.off(),us(null)};function hs(e){return 4&e.vnode.shapeFlag}let vs=!1;function gs(e,t,n){x(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:w(t)&&(e.setupState=Mt(t)),ms(e)}function ms(e,t,n){const o=e.type;e.render||(e.render=o.render||r);{const t=ds(e);_e();try{$n(e)}finally{we(),t()}}}const ys={get:(e,t)=>(je(e,0,""),e[t])};function xs(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Mt((t=e.exposed,!h(t,"__v_skip")&&Object.isExtensible(t)&&V(t,"__v_skip",!0),t)),{get:(t,n)=>n in t?t[n]:n in Fn?Fn[n](e):void 0,has:(e,t)=>t in e||t in Fn})):e.proxy;var t}const bs=(e,t)=>{const n=function(e,t,n=!1){let o,s;return x(e)?o=e:(o=e.get,s=e.set),new Ot(o,s,n)}(e,0,vs);return n},_s="3.5.26";
/**
* @vue/runtime-dom v3.5.26
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
let ws;const Ss="undefined"!=typeof window&&window.trustedTypes;if(Ss)try{ws=Ss.createPolicy("vue",{createHTML:e=>e})}catch(Ql){}const ks=ws?e=>ws.createHTML(e):e=>e,Cs="undefined"!=typeof document?document:null,Ms=Cs&&Cs.createElement("template"),Os={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const s="svg"===t?Cs.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?Cs.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?Cs.createElement(e,{is:n}):Cs.createElement(e);return"select"===e&&o&&null!=o.multiple&&s.setAttribute("multiple",o.multiple),s},createText:e=>Cs.createTextNode(e),createComment:e=>Cs.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Cs.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,s,l){const i=n?n.previousSibling:t.lastChild;if(s&&(s===l||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),s!==l&&(s=s.nextSibling););else{Ms.innerHTML=ks("svg"===o?`<svg>${e}</svg>`:"mathml"===o?`<math>${e}</math>`:e);const s=Ms.content;if("svg"===o||"mathml"===o){const e=s.firstChild;for(;e.firstChild;)s.appendChild(e.firstChild);s.removeChild(e)}t.insertBefore(s,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ps=Symbol("_vtc");const Es=Symbol("_vod"),Ts=Symbol("_vsh"),Is=Symbol(""),js=/(?:^|;)\s*display\s*:/;const As=/\s*!important$/;function Ls(e,t,n){if(v(n))n.forEach(n=>Ls(e,t,n));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=Fs[t];if(n)return n;let o=I(t);if("filter"!==o&&o in e)return Fs[t]=o;o=L(o);for(let s=0;s<Rs.length;s++){const n=Rs[s]+o;if(n in e)return Fs[t]=n}return t}(e,t);As.test(n)?e.setProperty(A(o),n.replace(As,""),"important"):e[o]=n}}const Rs=["Webkit","Moz","ms"],Fs={};const Ds="http://www.w3.org/1999/xlink";function Vs(e,t,n,o,s,l=X(t)){o&&t.startsWith("xlink:")?null==n?e.removeAttributeNS(Ds,t.slice(6,t.length)):e.setAttributeNS(Ds,t,n):null==n||l&&!Y(n)?e.removeAttribute(t):e.setAttribute(t,l?"":_(n)?String(n):n)}function Ns(e,t,n,o,s){if("innerHTML"===t||"textContent"===t)return void(null!=n&&(e[t]="innerHTML"===t?ks(n):n));const l=e.tagName;if("value"===t&&"PROGRESS"!==l&&!l.includes("-")){const o="OPTION"===l?e.getAttribute("value")||"":e.value,s=null==n?"checkbox"===e.type?"on":"":String(n);return o===s&&"_value"in e||(e.value=s),null==n&&e.removeAttribute(t),void(e._value=n)}let i=!1;if(""===n||null==n){const o=typeof e[t];"boolean"===o?n=Y(n):null==n&&"string"===o?(n="",i=!0):"number"===o&&(n=0,i=!0)}try{e[t]=n}catch(Ql){}i&&e.removeAttribute(s||t)}function Us(e,t,n,o){e.addEventListener(t,n,o)}const $s=Symbol("_vei");function Ws(e,t,n,o,s=null){const l=e[$s]||(e[$s]={}),i=l[t];if(o&&i)i.value=o;else{const[n,r]=function(e){let t;if(Bs.test(e)){let n;for(t={};n=e.match(Bs);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}const n=":"===e[2]?e.slice(3):A(e.slice(2));return[n,t]}(t);if(o){const i=l[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();Lt(function(e,t){if(v(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=Hs(),n}(o,s);Us(e,n,i,r)}else i&&(!function(e,t,n,o){e.removeEventListener(t,n,o)}(e,n,i,r),l[t]=void 0)}}const Bs=/(?:Once|Passive|Capture)$/;let zs=0;const Js=Promise.resolve(),Hs=()=>zs||(Js.then(()=>zs=0),zs=Date.now());const Ks=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;const Xs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return v(t)?e=>D(t,e):t};function Ys(e){e.target.composing=!0}function qs(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Gs=Symbol("_assign");function Zs(e,t,n){return t&&(e=e.trim()),n&&(e=N(e)),e}const Qs={created(e,{modifiers:{lazy:t,trim:n,number:o}},s){e[Gs]=Xs(s);const l=o||s.props&&"number"===s.props.type;Us(e,t?"change":"input",t=>{t.target.composing||e[Gs](Zs(e.value,n,l))}),(n||l)&&Us(e,"change",()=>{e.value=Zs(e.value,n,l)}),t||(Us(e,"compositionstart",Ys),Us(e,"compositionend",qs),Us(e,"change",qs))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:o,trim:s,number:l}},i){if(e[Gs]=Xs(i),e.composing)return;const r=null==t?"":t;if((!l&&"number"!==e.type||/^0\d/.test(e.value)?e.value:N(e.value))!==r){if(document.activeElement===e&&"range"!==e.type){if(o&&t===n)return;if(s&&e.value.trim()===r)return}e.value=r}}},el={created(e,{value:t},n){e.checked=q(t,n.props.value),e[Gs]=Xs(n),Us(e,"change",()=>{e[Gs](ol(e))})},beforeUpdate(e,{value:t,oldValue:n},o){e[Gs]=Xs(o),t!==n&&(e.checked=q(t,o.props.value))}},tl={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const s=m(t);Us(e,"change",()=>{const t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?N(ol(e)):ol(e));e[Gs](e.multiple?s?new Set(t):t:t[0]),e._assigning=!0,Bt(()=>{e._assigning=!1})}),e[Gs]=Xs(o)},mounted(e,{value:t}){nl(e,t)},beforeUpdate(e,t,n){e[Gs]=Xs(n)},updated(e,{value:t}){e._assigning||nl(e,t)}};function nl(e,t){const n=e.multiple,o=v(t);if(!n||o||m(t)){for(let s=0,l=e.options.length;s<l;s++){const l=e.options[s],i=ol(l);if(n)if(o){const e=typeof i;l.selected="string"===e||"number"===e?t.some(e=>String(e)===String(i)):G(t,i)>-1}else l.selected=t.has(i);else if(q(ol(l),t))return void(e.selectedIndex!==s&&(e.selectedIndex=s))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function ol(e){return"_value"in e?e._value:e.value}const sl=["ctrl","shift","alt","meta"],ll={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>sl.some(n=>e[`${n}Key`]&&!t.includes(n))},il=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(n,...o)=>{for(let e=0;e<t.length;e++){const o=ll[t[e]];if(o&&o(n,t))return}return e(n,...o)})},rl={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},al=(e,t)=>{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=n=>{if(!("key"in n))return;const o=A(n.key);return t.some(e=>e===o||rl[e]===o)?e(n):void 0})},cl=f({patchProp:(e,t,n,o,s,l)=>{const i="svg"===s;"class"===t?function(e,t,n){const o=e[Ps];o&&(t=(t?[t,...o]:[...o]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,o,i):"style"===t?function(e,t,n){const o=e.style,s=b(n);let l=!1;if(n&&!s){if(t)if(b(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&Ls(o,t,"")}else for(const e in t)null==n[e]&&Ls(o,e,"");for(const e in n)"display"===e&&(l=!0),Ls(o,e,n[e])}else if(s){if(t!==n){const e=o[Is];e&&(n+=";"+e),o.cssText=n,l=js.test(n)}}else t&&e.removeAttribute("style");Es in e&&(e[Es]=l?o.display:"",e[Ts]&&(o.display="none"))}(e,n,o):c(t)?u(t)||Ws(e,t,0,o,l):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,o){if(o)return"innerHTML"===t||"textContent"===t||!!(t in e&&Ks(t)&&x(n));if("spellcheck"===t||"draggable"===t||"translate"===t||"autocorrect"===t)return!1;if("sandbox"===t&&"IFRAME"===e.tagName)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}if(Ks(t)&&b(n))return!1;return t in e}(e,t,o,i))?(Ns(e,t,o),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||Vs(e,t,o,i,0,"value"!==t)):!e._isVueCE||!/[A-Z]/.test(t)&&b(o)?("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),Vs(e,t,o,i)):Ns(e,I(t),o,0,t)}},Os);let ul;const fl=(...e)=>{const t=(ul||(ul=Oo(cl))).createApp(...e),{mount:n}=t;return t.mount=e=>{const o=function(e){if(b(e)){return document.querySelector(e)}return e}(e);if(!o)return;const s=t._component;x(s)||s.render||s.template||(s.template=o.innerHTML),1===o.nodeType&&(o.textContent="");const l=n(o,!1,function(e){if(e instanceof SVGElement)return"svg";if("function"==typeof MathMLElement&&e instanceof MathMLElement)return"mathml"}(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),l},t};const dl=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n},pl={key:2,class:"action-buttons"},hl={class:"weld-info-header"},vl={class:"weld-info-title"},gl={class:"weld-info-body"},ml={key:0,class:"weld-info-row"},yl={class:"weld-info-value"},xl={key:1,class:"weld-info-row"},bl={class:"weld-info-value"},_l={key:2,class:"weld-info-row"},wl={class:"weld-info-value"},Sl={key:3,class:"weld-info-row"},kl={class:"weld-info-value"},Cl={key:4,class:"weld-info-row"},Ml={class:"weld-info-value"},Ol={key:5,class:"weld-info-row"},Pl={class:"weld-info-value"},El={key:6,class:"weld-info-row"},Tl={class:"weld-info-value"},Il={key:7,class:"weld-info-row"},jl={__name:"AnnotationItem",props:{annotation:{type:Object,required:!0},scale:{type:Number,default:1},offset:{type:Object,default:()=>({x:0,y:0})},isSelected:{type:Boolean,default:!1},prefix:{type:String,default:""},suffix:{type:String,default:""},readOnly:{type:Boolean,default:!1},showAllInfo:{type:Boolean,default:!1}},emits:["update","delete","select","drag-start"],setup(e,{emit:t}){const n=e,o=t,s=St(!1),l=St(""),i=St(null),r=St(!1),a=St(!1),c=bs(()=>n.showAllInfo||a.value||r.value),u=bs(()=>(n.annotation.settings?.fontSize??10)*n.scale),f=bs(()=>{const e=n.annotation.settings?.prefix??n.prefix,t=n.annotation.settings?.suffix??n.suffix;return e+n.annotation.displayValue+t}),d=bs(()=>({position:"absolute",left:n.annotation.x*n.scale+n.offset.x+"px",top:n.annotation.y*n.scale+n.offset.y+"px",transform:"translate(-50%, -50%)",zIndex:n.isSelected?100:10,cursor:s.value?"text":"pointer"})),p=bs(()=>({display:"flex",alignItems:"center",justifyContent:"center",position:"relative",padding:"2px 4px"})),h=bs(()=>{const e=n.annotation.JOT_JointStatus;return e&&"正常"!==e}),v=bs(()=>({fontSize:u.value+"px",fontFamily:"Arial, sans-serif",color:h.value?"#dc2626":"#000000",fontWeight:h.value?"bold":"normal",whiteSpace:"nowrap",userSelect:"none"})),g=bs(()=>({position:"absolute",top:"-2px",left:"-4px",right:"-4px",bottom:"-2px",border:"0.5px solid #000000",pointerEvents:"none"}));function m(){if(n.readOnly)return;const e=n.annotation.settings?.prefix??n.prefix,t=n.annotation.settings?.suffix??n.suffix;l.value=e+n.annotation.displayValue+t,s.value=!0,Bt(()=>{i.value&&(i.value.focus(),i.value.select())})}function y(){if(!s.value)return;s.value=!1;const e=n.annotation.settings?.prefix??n.prefix,t=n.annotation.settings?.suffix??n.suffix;let i=l.value;e&&i.startsWith(e)&&(i=i.slice(e.length)),t&&i.endsWith(t)&&(i=i.slice(0,-t.length));const r=parseFloat(i)||n.annotation.displayValue;r!==n.annotation.displayValue&&o("update",{...n.annotation,displayValue:r})}function x(){s.value=!1}function b(){o("delete",n.annotation)}function _(e){if(!s.value){if(n.readOnly)return r.value=!r.value,void o("select",n.annotation);o("select",n.annotation),o("drag-start",{annotation:n.annotation,startX:e.clientX,startY:e.clientY})}}function w(){n.readOnly&&(a.value=!0)}function S(){a.value=!1}return(t,n)=>($o(),Jo("div",{class:"annotation-item",style:W(d.value),onDblclick:m,onMousedown:il(_,["stop"]),onMouseenter:w,onMouseleave:S},[s.value?($o(),Jo("div",{key:0,class:"edit-container",onClick:n[1]||(n[1]=il(()=>{},["stop"]))},[Qt(Go("input",{ref_key:"inputRef",ref:i,"onUpdate:modelValue":n[0]||(n[0]=e=>l.value=e),class:"edit-input",style:W({fontSize:u.value+"px"}),onBlur:y,onKeydown:[al(y,["enter"]),al(x,["escape"])]},null,36),[[Qs,l.value]])])):($o(),Jo("div",{key:1,class:"display-container",style:W(p.value)},[Go("span",{class:"label-text",style:W(v.value)},Q(f.value),5),"rect"===e.annotation.style?($o(),Jo("div",{key:0,class:"border-rect",style:W(g.value)},null,4)):ts("",!0)],4)),!e.isSelected||s.value||e.readOnly?ts("",!0):($o(),Jo("div",pl,[Go("div",{class:"btn action-btn edit-btn",onClick:il(m,["stop"]),title:"编辑"},"✏️"),Go("div",{class:"btn action-btn delete-btn",onClick:il(b,["stop"]),title:"删除"},"🗑️")])),e.readOnly&&c.value?($o(),Jo("div",{key:3,class:"weld-info-popup",onClick:n[3]||(n[3]=il(()=>{},["stop"]))},[Go("div",hl,[Go("span",vl,Q(e.annotation.JOT_JointNo||f.value),1),Go("div",{class:"btn weld-info-close",onClick:n[2]||(n[2]=il(e=>r.value=!1,["stop"]))},"×")]),Go("div",gl,[e.annotation.JOT_JointNo?($o(),Jo("div",ml,[n[4]||(n[4]=Go("span",{class:"weld-info-label"},"焊口编号",-1)),Go("span",yl,Q(e.annotation.JOT_JointNo),1)])):ts("",!0),e.annotation.WED_Code?($o(),Jo("div",xl,[n[5]||(n[5]=Go("span",{class:"weld-info-label"},"焊工代号",-1)),Go("span",bl,Q(e.annotation.WED_Code),1)])):ts("",!0),e.annotation.JOT_Location?($o(),Jo("div",_l,[n[6]||(n[6]=Go("span",{class:"weld-info-label"},"焊接位置",-1)),Go("span",wl,Q(e.annotation.JOT_Location),1)])):ts("",!0),e.annotation.JOT_WeldDate?($o(),Jo("div",Sl,[n[7]||(n[7]=Go("span",{class:"weld-info-label"},"焊接日期",-1)),Go("span",kl,Q(e.annotation.JOT_WeldDate),1)])):ts("",!0),e.annotation.DetectionTypeCode&&"/"!==e.annotation.DetectionTypeCode?($o(),Jo("div",Cl,[n[8]||(n[8]=Go("span",{class:"weld-info-label"},"检测类型",-1)),Go("span",Ml,Q(e.annotation.DetectionTypeCode),1)])):ts("",!0),e.annotation.IsRepair&&"/"!==e.annotation.IsRepair?($o(),Jo("div",Ol,[n[9]||(n[9]=Go("span",{class:"weld-info-label"},"是否返修",-1)),Go("span",Pl,Q(e.annotation.IsRepair),1)])):ts("",!0),e.annotation.IsHotProcess&&"/"!==e.annotation.IsHotProcess?($o(),Jo("div",El,[n[10]||(n[10]=Go("span",{class:"weld-info-label"},"是否热处理",-1)),Go("span",Tl,Q(e.annotation.IsHotProcess),1)])):ts("",!0),e.annotation.JOT_JointStatus?($o(),Jo("div",Il,[n[11]||(n[11]=Go("span",{class:"weld-info-label"},"焊口状态",-1)),Go("span",{class:K(["weld-info-value",{"status-repair":"返修"===e.annotation.JOT_JointStatus,"status-normal":"正常"===e.annotation.JOT_JointStatus}])},Q(e.annotation.JOT_JointStatus),3)])):ts("",!0)])])):ts("",!0)],36))}},Al=dl(jl,[["__scopeId","data-v-e5318596"]]),Ll={key:0,class:"image-placing-banner"},Rl=["src"],Fl=["x1","y1","x2","y2"],Dl=["points"],Vl=["cx","cy"],Nl={style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",zIndex:"2",pointerEvents:"'none'"}},Ul=["src","onMousedown","onClick"],$l=["onMousedown"],Wl={key:2,style:{color:"#9ca3af"}},Bl={__name:"PdfViewer",props:{file:File,page:{type:Number,default:1},scale:{type:Number,default:null},annotationMode:{type:Boolean,default:!1},borderStyle:{type:String,default:"rect"},annotationStyle:{type:String,default:"arrow"},startNumber:{type:Number,default:1},increment:{type:Number,default:1},prefix:{type:String,default:""},suffix:{type:String,default:""},fontSize:{type:Number,default:10},readOnly:{type:Boolean,default:!1},showAllWeldInfo:{type:Boolean,default:!1}},emits:["loaded","scale-changed","wheel-zoom","place-image","annotation-selected","image-placing-cancelled","image-deleted","annotation-changed"],setup(t,{expose:n,emit:o}){const s=t,l=o,i=St(null);let r=null,a=null,c=null;const u=St({x:0,y:0}),f=St(!1);let d=null;const p=St(1),h=St({}),v=St([]);let g=0,m=0;const y=St(1);let x=null;const b=St(null),_=bs(()=>null!==b.value),w=St({show:!1,x:0,y:0}),S=St(80),k=St(1),C=St(null);let M={};const O=St(null),P=St(0),E=St(0);let T=!1,I=null,j=null,A=null,L=0;const R=St({}),F=bs(()=>h.value[s.page]||[]);async function D(e){if(!r)return;if(a)try{a.cancel()}catch(Ql){}const t=await r.getPage(e);try{const n=t.rotate||0;L=(n%360+360)%360,R.value[e]=L,0!==L&&console.warn(`⚠️ 第 ${e} 页已旋转 ${L}°。标注和图片已自动调整坐标。`)}catch(Ql){console.debug("Could not read page rotation:",Ql.message),L=0,R.value[e]=0}let n=s.scale;const o=t.getViewport({scale:1});if(g=o.width,m=o.height,!n){const e=i.value&&i.value.parentElement,t=e&&e.clientWidth?e.clientWidth-24:o.width,s=e&&e.clientHeight?e.clientHeight-24:o.height,l=t/o.width,r=s/o.height;n=Math.min(l,r)}const c=window.devicePixelRatio||1,f=t.getViewport({scale:n*c});y.value=n,P.value=Math.floor(f.width/c),E.value=Math.floor(f.height/c),null===s.scale&&l("scale-changed",n),p.value=n;const d=i.value;d.width=Math.floor(f.width),d.height=Math.floor(f.height),d.style.width=Math.floor(f.width/c)+"px",d.style.height=Math.floor(f.height/c)+"px",u.value={x:0,y:0};const h={canvasContext:d.getContext("2d"),viewport:f};a=t.render(h),await a.promise,a=null,v.value=M[e]||[],B()}function V(e){r&&(b.value?function(e){if(console.log("placeImage 被调用,临时图片大小:",b.value?.length,"字节"),!b.value||0===g)return;const t=i.value;if(!t)return;const n=t.getBoundingClientRect(),o=e.clientX-n.left,r=e.clientY-n.top,a=window.devicePixelRatio||1,c=r*a,u=o*a/(y.value*a),f=c/(y.value*a);if(u<0||f<0||u>g||f>m)return;const d=S.value/y.value,p=d/k.value,h={src:b.value,x:u-d/2,y:f-p/2,width:d,height:p,pageNum:s.page};console.log("即将放置图片,图片数据大小:",h.src?.length,"字节"),l("place-image",h),b.value=null,w.value={show:!1,x:0,y:0}}(e):!s.annotationMode||f.value?(f.value=!0,d={x:e.clientX-u.value.x,y:e.clientY-u.value.y}):function(e){const t=i.value;if(!t||0===g)return;const n=t.getBoundingClientRect(),o=e.clientX-n.left,r=e.clientY-n.top,a=window.devicePixelRatio||1,c=r*a,u=o*a/(y.value*a),f=c/(y.value*a);if(u<0||f<0||u>g||f>m)return;if(x){const e={...x,x2:u,y2:f};h.value[s.page].push(e),x=null,l("annotation-changed"),B()}else{h.value[s.page]||(h.value[s.page]=[]);let e=s.startNumber-s.increment;for(const o in h.value){const t=h.value[o];if(t.length>0){const n=t[t.length-1];n.displayValue>e&&(e=n.displayValue)}}const t=e+s.increment,n=s.prefix+t+s.suffix;x={x:u,y:f,displayValue:t,text:n,style:s.borderStyle,annotationStyle:s.annotationStyle,settings:{prefix:s.prefix,suffix:s.suffix,startNumber:s.startNumber,increment:s.increment,fontSize:s.fontSize}},B()}}(e))}function N(e){if(_.value&&i.value){const t=i.value.parentElement.getBoundingClientRect(),n=S.value/k.value;w.value={show:!0,x:e.clientX-t.left-S.value/2,y:e.clientY-t.top-n/2}}f.value&&(u.value={x:e.clientX-d.x,y:e.clientY-d.y})}function U(){f.value=!1}function $(e){if(!r)return;const t=null!==s.scale?s.scale:p.value,n=e.deltaY>0?.9:1.1,o=Math.max(.5,Math.min(3,+(t*n).toFixed(3)));l("wheel-zoom",o)}function B(){if(i.value&&x){const e=i.value.getContext("2d"),t=window.devicePixelRatio||1,n=x.x*y.value*t,o=x.y*y.value*t,l=(x.settings?.fontSize??s.fontSize)*(y.value||1);e.fillStyle="rgba(0, 0, 0, 0.5)",e.font=l*t+"px Arial",e.textAlign="center",e.textBaseline="middle",e.fillText(x.text,n,o)}}function z(e){const t=y.value,n=e.x*t,o=e.y*t,s=e.x2*t,l=e.y2*t,i=Math.atan2(l-o,s-n);return`${s-8*Math.cos(i-Math.PI/6)},${l-8*Math.sin(i-Math.PI/6)} ${s},${l} ${s-8*Math.cos(i+Math.PI/6)},${l-8*Math.sin(i+Math.PI/6)}`}function J(){O.value=null,C.value=null,l("annotation-selected",null)}function H(){b.value=null,w.value={show:!1,x:0,y:0},l("image-placing-cancelled")}function X(){_.value&&H()}function Y(e){"Escape"===e.key&&_.value&&(H(),e.preventDefault()),"Delete"!==e.key&&"Backspace"!==e.key||null===C.value||(G(),e.preventDefault())}function q(e){C.value=e,O.value=null,l("annotation-selected",null)}function G(){if(null===C.value)return;const e=C.value;v.value.splice(e,1),M[s.page]=[...v.value],C.value=null,l("image-deleted",{page:s.page,images:v.value})}return e.GlobalWorkerOptions.workerSrc="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.16.105/pdf.worker.min.js",on(()=>s.file,t=>{t&&async function(t){c&&(URL.revokeObjectURL(c),c=null),c=URL.createObjectURL(t);const n=e.getDocument(c);r=await n.promise,l("loaded",{pdf:r,numPages:r.numPages}),await Bt(),await D(s.page)}(t)}),on(()=>s.page,e=>{r&&D(e)}),on(()=>s.scale,e=>{r&&Bt().then(()=>D(s.page))}),On(()=>{c&&URL.revokeObjectURL(c)}),n({clearCurrentPageAnnotations:function(){h.value[s.page]&&(h.value[s.page]=[]),x=null,B(),r&&D(s.page)},undoLastAnnotation:function(){if(x)return x=null,void B();h.value[s.page]&&h.value[s.page].length>0&&(h.value[s.page].pop(),B(),r&&D(s.page))},getAnnotations:function(){return h.value},setAnnotations:function(e){h.value=e,B()},setImages:function(e){M=e,v.value=e[s.page]||[]},renderPage:D,annotations:h,setTemporaryImage:function(e,t=80){console.log("setTemporaryImage 被调用,图片大小:",e?.length,"字节, 尺寸:",t),b.value=e,S.value=t,w.value={show:!1,x:0,y:0};const n=new Image;n.onload=()=>{k.value=n.width/n.height,console.log("图片加载完成,宽高比:",k.value)},n.src=e,i.value&&i.value.parentElement&&i.value.parentElement.focus()},cancelImagePlacing:H,updateAnnotation:function(e,t,n){h.value[e]&&(h.value[e][t]=n,h.value={...h.value},r&&e===s.page&&D(s.page))},deleteAnnotation:function(e,t){h.value[e]&&(h.value[e].splice(t,1),O.value=null,h.value={...h.value},r&&e===s.page&&D(s.page))},clearSelection:J,imagePlacingMode:_,getPageRotations:function(){return R.value}}),(e,n)=>($o(),Jo("div",{class:"canvas-wrapper",style:W({cursor:_.value?"crosshair":f.value?"grabbing":"grab",position:"relative"}),onMousedown:V,onMousemove:N,onMouseup:U,onMouseleave:U,onWheel:il($,["prevent"]),onClick:il(J,["self"]),onContextmenu:il(X,["prevent"]),onKeydown:Y,tabindex:"0"},[_.value?($o(),Jo("div",Ll,[n[0]||(n[0]=Go("div",{class:"banner-content"},[Go("span",{class:"banner-icon"},"📍"),Go("span",null,"点击PDF上要放置图片的位置"),Go("span",{class:"banner-hint"},"(按 ESC 或右键取消)")],-1)),Go("div",{class:"btn banner-cancel",onClick:il(H,["stop"])},"取消")])):ts("",!0),_.value&&w.value.show?($o(),Jo("div",{key:1,class:"image-preview-cursor",style:W({left:w.value.x+"px",top:w.value.y+"px",width:S.value+"px",height:S.value/k.value+"px"})},[Go("img",{src:b.value,alt:"preview",style:{width:"100%",height:"100%","object-fit":"contain"}},null,8,Rl)],4)):ts("",!0),Go("canvas",{ref_key:"canvas",ref:i,style:W({transform:`translate(${u.value.x}px, ${u.value.y}px)`,position:"relative",zIndex:1})},null,4),Go("div",{class:"annotations-layer",style:W({transform:`translate(${u.value.x}px, ${u.value.y}px)`})},[($o(!0),Jo(Ro,null,Ln(F.value,(e,t)=>($o(),Ho(Al,{key:e.id||t,annotation:e,scale:y.value,offset:{x:0,y:0},"is-selected":O.value===(e.id||t),prefix:s.prefix,suffix:s.suffix,"read-only":s.readOnly,"show-all-info":s.showAllWeldInfo,onSelect:n=>function(e,t){O.value=e.id||t,l("annotation-selected",{annotation:e,page:s.page,index:t})}(e,t),onUpdate:e=>function(e,t){h.value[s.page]&&(h.value[s.page][e]=t,h.value={...h.value})}(t,e),onDelete:e=>function(e){h.value[s.page]&&(h.value[s.page].splice(e,1),O.value=null,l("annotation-selected",null),h.value={...h.value},r&&D(s.page))}(t),onDragStart:e=>function(e,t){T=!0,I=t,j={x:e.startX,y:e.startY},A={...e.annotation};const n=e=>{if(!T)return;const t=(e.clientX-j.x)/y.value,n=(e.clientY-j.y)/y.value,o=h.value[s.page][I];o&&(o.x=Math.max(0,Math.min(g,A.x+t)),o.y=Math.max(0,Math.min(m,A.y+n)),void 0!==A.x2&&(o.x2=Math.max(0,Math.min(g,A.x2+t)),o.y2=Math.max(0,Math.min(m,A.y2+n))),h.value={...h.value})},o=()=>{T=!1,I=null,j=null,A=null,window.removeEventListener("mousemove",n),window.removeEventListener("mouseup",o)};window.addEventListener("mousemove",n),window.addEventListener("mouseup",o)}(e,t)},null,8,["annotation","scale","is-selected","prefix","suffix","read-only","show-all-info","onSelect","onUpdate","onDelete","onDragStart"]))),128)),($o(),Jo("svg",{class:"connection-lines",style:W({width:P.value+"px",height:E.value+"px"})},[($o(!0),Jo(Ro,null,Ln(F.value,(e,t)=>($o(),Jo("g",{key:"line-"+t},[void 0!==e.x2&&void 0!==e.y2?($o(),Jo(Ro,{key:0},[Go("line",{x1:e.x*y.value,y1:e.y*y.value,x2:e.x2*y.value,y2:e.y2*y.value,stroke:"#000000","stroke-width":"0.8"},null,8,Fl),"arrow"===(e.annotationStyle||s.annotationStyle)?($o(),Jo("polygon",{key:0,points:z(e),fill:"#000000"},null,8,Dl)):($o(),Jo("circle",{key:1,cx:e.x2*y.value,cy:e.y2*y.value,r:"4",fill:"#000000"},null,8,Vl))],64)):ts("",!0)]))),128))],4))],4),Go("div",Nl,[($o(!0),Jo(Ro,null,Ln(v.value,(e,t)=>($o(),Jo("div",{key:e.src.slice(-20)+t,class:K({"image-selected":C.value===t}),style:W({position:"absolute",left:e.x*y.value+u.value.x+"px",top:e.y*y.value+u.value.y+"px",width:e.width*y.value+"px",height:e.height*y.value+"px",zIndex:C.value===t?10:3})},[Go("img",{src:e.src,style:W({width:"100%",height:"100%",border:C.value===t?"3px solid #ef4444":"2px solid #3b82f6",boxSizing:"border-box",objectFit:"contain",pointerEvents:"all",cursor:"move",boxShadow:C.value===t?"0 0 12px rgba(239,68,68,0.5)":"none"}),onMousedown:il(e=>function(e,t){q(t),f.value=!1;const n=e.clientX,o=e.clientY,s=v.value[t],l=s.x,i=s.y,r=e=>{const t=(e.clientX-n)/y.value,r=(e.clientY-o)/y.value;s.x=Math.max(0,Math.min(g,l+t)),s.y=Math.max(0,Math.min(m,i+r)),v.value=[...v.value]},a=()=>{window.removeEventListener("mousemove",r),window.removeEventListener("mouseup",a)};window.addEventListener("mousemove",r),window.addEventListener("mouseup",a)}(e,t),["stop"]),onClick:il(e=>q(t),["stop"])},null,44,Ul),Go("div",{style:W({position:"absolute",bottom:"-6px",right:"-6px",width:"12px",height:"12px",background:C.value===t?"#ef4444":"#3b82f6",cursor:"nwse-resize",borderRadius:"2px",pointerEvents:"all"}),onMousedown:il(e=>function(e,t){f.value=!1,q(t);const n=e.clientX,o=e.clientY,s=v.value[t],l=s.width,i=s.height,r=e=>{const t=e.clientX-n,r=e.clientY-o,a=20/y.value,c=Math.max(a,l+t/y.value),u=Math.max(a,i+r/y.value);s.width=c,s.height=u,v.value=[...v.value]},a=()=>{window.removeEventListener("mousemove",r),window.removeEventListener("mouseup",a)};window.addEventListener("mousemove",r),window.addEventListener("mouseup",a)}(e,t),["stop"])},null,44,$l),C.value===t?($o(),Jo("div",{key:0,class:"btn image-delete-btn",onClick:il(G,["stop"]),title:"删除图片 (Del)"}," × ")):ts("",!0)],6))),128))]),t.file?ts("",!0):($o(),Jo("div",Wl,"请从左侧选择一个 PDF 文件。"))],36))}},zl=dl(Bl,[["__scopeId","data-v-959d542c"]]);function Jl(e){const t=atob(e),n=new Uint8Array(t.length);for(let o=0;o<t.length;o++)n[o]=t.charCodeAt(o);return n}function Hl(e){const t=e.match(/^data:image\/([\w+]+);base64,(.+)$/);return t?{format:t[1].toLowerCase().replace("svg+xml","svg"),data:t[2]}:{format:null,data:null}}async function Kl(e){try{const n=[e];for(const o of n)try{const t=await fetch(o);if(t.ok){const n=await t.blob(),o=await n.arrayBuffer(),s=new Uint8Array(o),l=n.type||"";let i="png";return l.includes("jpeg")||l.includes("jpg")||e.match(/\.jpe?g/i)?i="jpg":(l.includes("png")||e.match(/\.png/i))&&(i="png"),{bytes:s,format:i}}}catch(t){console.warn(`fetch ${o.substring(0,80)} 失败:`,t.message)}return console.warn("所有方式均无法加载图片:",e.substring(0,100)),null}catch(Ql){return console.warn("加载图片URL失败:",Ql.message),null}}function Xl(e){const{width:t,height:n}=e.getSize();return{width:t,height:n}}function Yl(e,t,n,o,s,l,i){switch(i){case 90:return{x:t,y:e};case 180:return{x:s-e,y:t};case 270:return{x:s-t,y:l-e};default:return{x:e,y:l-t}}}async function ql(e,s,l,i,r={}){const a=await t.load(e),c=a.getPages(),{startNumber:u,increment:f,prefix:d,suffix:p,fontSize:h,borderStyle:v,annotationStyle:g}=i;for(let t=0;t<c.length;t++){const e=c[t],i=t+1,u=s[i]||[],f=l[i]||[],v=Xl(e),{width:m,height:y}=v,x=r[i]||0;for(const t of f)try{if(!t.src)continue;let o=null,s=null;const l=Hl(t.src);if(l.data)s=l.format,o=Jl(l.data);else{const e=await Kl(t.src);e&&(s=e.format,o=e.bytes)}if(!o||!s){console.warn("无法加载图片:",t.src.substring(0,100));continue}let i;try{if("png"===s)i=await a.embedPng(o);else{if("jpeg"!==s&&"jpg"!==s){console.warn(`Unsupported image format: ${s}`);continue}i=await a.embedJpg(o)}const l=Yl(t.x,t.y,0,0,m,y,x);let r=t.width,c=t.height;if(0!==x){const t=n(x);let o=l.x,s=l.y-c;90===x?(o=l.x,s=l.y):180===x?(o=l.x+r,s=l.y):270===x&&(o=l.x-c,s=l.y),e.drawImage(i,{x:o,y:s,width:r,height:c,rotate:t})}else e.drawImage(i,{x:l.x,y:l.y-c,width:r,height:c})}catch(Ql){console.warn("Failed to embed image:",Ql.message)}}catch(Ql){console.warn("Error processing image:",Ql.message)}u.forEach(t=>{const s=Yl(t.x,t.y,0,0,m,y,x);let l=s.x,i=s.y;const r=t.settings?.prefix??d,a=t.settings?.suffix??p,c=t.settings?.fontSize??h,u=r+t.displayValue+a,f=u.length*c*.55,v=f+8,b=c+8,_=l-f/2,w=i-.3*c,S=_-4,k=w-4;if("rect"===t.style&&e.drawRectangle({x:S,y:k,width:v,height:b,borderColor:o(0,0,0),borderWidth:.5,rotate:0!==x?n(x):void 0}),e.drawText(u,{x:_,y:w,size:c,color:o(0,0,0),rotate:0!==x?n(x):void 0}),void 0!==t.x2&&void 0!==t.y2){const n=Yl(t.x2,t.y2,0,0,m,y,x);let s=l,r=i,a=n.x,c=n.y;e.drawLine({start:{x:s,y:r},end:{x:a,y:c},thickness:.5,color:o(0,0,0)});"arrow"===(t.annotationStyle||g||"arrow")?Gl(e,a,c,s,r,3):e.drawCircle({x:a,y:c,size:2.5,color:o(0,0,0)})}})}return await a.save()}function Gl(e,t,n,s,l,i){const r=Math.atan2(n-l,t-s),a=t-i*Math.cos(r-Math.PI/6),c=n-i*Math.sin(r-Math.PI/6),u=t-i*Math.cos(r+Math.PI/6),f=n-i*Math.sin(r+Math.PI/6);e.drawLine({start:{x:a,y:c},end:{x:t,y:n},thickness:.8,color:o(0,0,0)}),e.drawLine({start:{x:u,y:f},end:{x:t,y:n},thickness:.8,color:o(0,0,0)})}function Zl(e,t="annotated.pdf"){const n=new Blob([e],{type:"application/pdf"}),o=URL.createObjectURL(n),s=document.createElement("a");s.href=o,s.download=t,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL(o)}export{zl as P,dl as _,ts as a,Go as b,Jo as c,Qt as d,tl as e,es as f,el as g,W as h,bs as i,kn as j,Zo as k,ql as l,Zl as m,K as n,$o as o,fl as p,On as q,St as r,Bt as s,Q as t,Qs as v,on as w};