nuxt-og-image 2.1.0 → 2.1.1

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.
@@ -2,7 +2,7 @@ function ik(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.leng
2
2
  * vue-router v4.2.5
3
3
  * (c) 2023 Eduardo San Martin Morote
4
4
  * @license MIT
5
- */const Sl=typeof window<"u";function HG(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Qn=Object.assign;function N1(e,t){const n={};for(const r in t){const o=t[r];n[r]=$a(o)?o.map(e):e(o)}return n}const Yd=()=>{},$a=Array.isArray,VG=/\/$/,UG=e=>e.replace(VG,"");function D1(e,t,n="/"){let r,o={},i="",a="";const s=t.indexOf("#");let c=t.indexOf("?");return s<c&&s>=0&&(c=-1),c>-1&&(r=t.slice(0,c),i=t.slice(c+1,s>-1?s:t.length),o=e(i)),s>-1&&(r=r||t.slice(0,s),a=t.slice(s,t.length)),r=GG(r??t,n),{fullPath:r+(i&&"?")+i+a,path:r,query:o,hash:a}}function WG(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function ZS(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function KG(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&xf(t.matched[r],n.matched[o])&&LI(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function xf(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function LI(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!JG(e[n],t[n]))return!1;return!0}function JG(e,t){return $a(e)?t$(e,t):$a(t)?t$(t,e):e===t}function t$(e,t){return $a(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function GG(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let i=n.length-1,a,s;for(a=0;a<r.length;a++)if(s=r[a],s!==".")if(s==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(a-(a===r.length?1:0)).join("/")}var $h;(function(e){e.pop="pop",e.push="push"})($h||($h={}));var Xd;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Xd||(Xd={}));function QG(e){if(!e)if(Sl){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),UG(e)}const YG=/^[^#]+#/;function XG(e,t){return e.replace(YG,"#")+t}function ZG(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const k0=()=>({left:window.pageXOffset,top:window.pageYOffset});function tQ(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=ZG(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function e$(e,t){return(history.state?history.state.position-t:-1)+e}const Hb=new Map;function eQ(e,t){Hb.set(e,t)}function nQ(e){const t=Hb.get(e);return Hb.delete(e),t}let rQ=()=>location.protocol+"//"+location.host;function BI(e,t){const{pathname:n,search:r,hash:o}=t,i=e.indexOf("#");if(i>-1){let s=o.includes(e.slice(i))?e.slice(i).length:1,c=o.slice(s);return c[0]!=="/"&&(c="/"+c),ZS(c,"")}return ZS(n,e)+r+o}function oQ(e,t,n,r){let o=[],i=[],a=null;const s=({state:d})=>{const h=BI(e,location),p=n.value,v=t.value;let m=0;if(d){if(n.value=h,t.value=d,a&&a===p){a=null;return}m=v?d.position-v.position:0}else r(h);o.forEach(g=>{g(n.value,p,{delta:m,type:$h.pop,direction:m?m>0?Xd.forward:Xd.back:Xd.unknown})})};function c(){a=n.value}function u(d){o.push(d);const h=()=>{const p=o.indexOf(d);p>-1&&o.splice(p,1)};return i.push(h),h}function l(){const{history:d}=window;d.state&&d.replaceState(Qn({},d.state,{scroll:k0()}),"")}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",l)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",l,{passive:!0}),{pauseListeners:c,listen:u,destroy:f}}function n$(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?k0():null}}function iQ(e){const{history:t,location:n}=window,r={value:BI(e,n)},o={value:t.state};o.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(c,u,l){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+c:rQ()+e+c;try{t[l?"replaceState":"pushState"](u,"",d),o.value=u}catch(h){console.error(h),n[l?"replace":"assign"](d)}}function a(c,u){const l=Qn({},t.state,n$(o.value.back,c,o.value.forward,!0),u,{position:o.value.position});i(c,l,!0),r.value=c}function s(c,u){const l=Qn({},o.value,t.state,{forward:c,scroll:k0()});i(l.current,l,!0);const f=Qn({},n$(r.value,c,null),{position:l.position+1},u);i(c,f,!1),r.value=c}return{location:r,state:o,push:s,replace:a}}function FI(e){e=QG(e);const t=iQ(e),n=oQ(e,t.state,t.location,t.replace);function r(i,a=!0){a||n.pauseListeners(),history.go(i)}const o=Qn({location:"",base:e,go:r,createHref:XG.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function aQ(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),FI(e)}function sQ(e){return typeof e=="string"||e&&typeof e=="object"}function qI(e){return typeof e=="string"||typeof e=="symbol"}const Ha={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},HI=Symbol("");var r$;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(r$||(r$={}));function kf(e,t){return Qn(new Error,{type:e,[HI]:!0},t)}function xs(e,t){return e instanceof Error&&HI in e&&(t==null||!!(e.type&t))}const o$="[^/]+?",cQ={sensitive:!1,strict:!1,start:!0,end:!0},uQ=/[.+*?^${}()[\]/\\]/g;function lQ(e,t){const n=Qn({},cQ,t),r=[];let o=n.start?"^":"";const i=[];for(const u of e){const l=u.length?[]:[90];n.strict&&!u.length&&(o+="/");for(let f=0;f<u.length;f++){const d=u[f];let h=40+(n.sensitive?.25:0);if(d.type===0)f||(o+="/"),o+=d.value.replace(uQ,"\\$&"),h+=40;else if(d.type===1){const{value:p,repeatable:v,optional:m,regexp:g}=d;i.push({name:p,repeatable:v,optional:m});const y=g||o$;if(y!==o$){h+=10;try{new RegExp(`(${y})`)}catch(w){throw new Error(`Invalid custom RegExp for param "${p}" (${y}): `+w.message)}}let b=v?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;f||(b=m&&u.length<2?`(?:/${b})`:"/"+b),m&&(b+="?"),o+=b,h+=20,m&&(h+=-8),v&&(h+=-20),y===".*"&&(h+=-50)}l.push(h)}r.push(l)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&(o+="(?:/|$)");const a=new RegExp(o,n.sensitive?"":"i");function s(u){const l=u.match(a),f={};if(!l)return null;for(let d=1;d<l.length;d++){const h=l[d]||"",p=i[d-1];f[p.name]=h&&p.repeatable?h.split("/"):h}return f}function c(u){let l="",f=!1;for(const d of e){(!f||!l.endsWith("/"))&&(l+="/"),f=!1;for(const h of d)if(h.type===0)l+=h.value;else if(h.type===1){const{value:p,repeatable:v,optional:m}=h,g=p in u?u[p]:"";if($a(g)&&!v)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const y=$a(g)?g.join("/"):g;if(!y)if(m)d.length<2&&(l.endsWith("/")?l=l.slice(0,-1):f=!0);else throw new Error(`Missing required param "${p}"`);l+=y}}return l||"/"}return{re:a,score:r,keys:i,parse:s,stringify:c}}function fQ(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function dQ(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const i=fQ(r[n],o[n]);if(i)return i;n++}if(Math.abs(o.length-r.length)===1){if(i$(r))return 1;if(i$(o))return-1}return o.length-r.length}function i$(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const hQ={type:0,value:""},pQ=/[a-zA-Z0-9_]/;function vQ(e){if(!e)return[[]];if(e==="/")return[[hQ]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}let n=0,r=n;const o=[];let i;function a(){i&&o.push(i),i=[]}let s=0,c,u="",l="";function f(){u&&(n===0?i.push({type:0,value:u}):n===1||n===2||n===3?(i.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:l,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=c}for(;s<e.length;){if(c=e[s++],c==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:c==="/"?(u&&f(),a()):c===":"?(f(),n=1):d();break;case 4:d(),n=r;break;case 1:c==="("?n=2:pQ.test(c)?d():(f(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&s--);break;case 2:c===")"?l[l.length-1]=="\\"?l=l.slice(0,-1)+c:n=3:l+=c;break;case 3:f(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&s--,l="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),f(),a(),o}function mQ(e,t,n){const r=lQ(vQ(e.path),n),o=Qn(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function gQ(e,t){const n=[],r=new Map;t=c$({strict:!1,end:!0,sensitive:!1},t);function o(l){return r.get(l)}function i(l,f,d){const h=!d,p=yQ(l);p.aliasOf=d&&d.record;const v=c$(t,l),m=[p];if("alias"in l){const b=typeof l.alias=="string"?[l.alias]:l.alias;for(const w of b)m.push(Qn({},p,{components:d?d.record.components:p.components,path:w,aliasOf:d?d.record:p}))}let g,y;for(const b of m){const{path:w}=b;if(f&&w[0]!=="/"){const x=f.record.path,k=x[x.length-1]==="/"?"":"/";b.path=f.record.path+(w&&k+w)}if(g=mQ(b,f,v),d?d.alias.push(g):(y=y||g,y!==g&&y.alias.push(g),h&&l.name&&!s$(g)&&a(l.name)),p.children){const x=p.children;for(let k=0;k<x.length;k++)i(x[k],g,d&&d.children[k])}d=d||g,(g.record.components&&Object.keys(g.record.components).length||g.record.name||g.record.redirect)&&c(g)}return y?()=>{a(y)}:Yd}function a(l){if(qI(l)){const f=r.get(l);f&&(r.delete(l),n.splice(n.indexOf(f),1),f.children.forEach(a),f.alias.forEach(a))}else{const f=n.indexOf(l);f>-1&&(n.splice(f,1),l.record.name&&r.delete(l.record.name),l.children.forEach(a),l.alias.forEach(a))}}function s(){return n}function c(l){let f=0;for(;f<n.length&&dQ(l,n[f])>=0&&(l.record.path!==n[f].record.path||!VI(l,n[f]));)f++;n.splice(f,0,l),l.record.name&&!s$(l)&&r.set(l.record.name,l)}function u(l,f){let d,h={},p,v;if("name"in l&&l.name){if(d=r.get(l.name),!d)throw kf(1,{location:l});v=d.record.name,h=Qn(a$(f.params,d.keys.filter(y=>!y.optional).map(y=>y.name)),l.params&&a$(l.params,d.keys.map(y=>y.name))),p=d.stringify(h)}else if("path"in l)p=l.path,d=n.find(y=>y.re.test(p)),d&&(h=d.parse(p),v=d.record.name);else{if(d=f.name?r.get(f.name):n.find(y=>y.re.test(f.path)),!d)throw kf(1,{location:l,currentLocation:f});v=d.record.name,h=Qn({},f.params,l.params),p=d.stringify(h)}const m=[];let g=d;for(;g;)m.unshift(g.record),g=g.parent;return{name:v,path:p,params:h,matched:m,meta:wQ(m)}}return e.forEach(l=>i(l)),{addRoute:i,resolve:u,removeRoute:a,getRoutes:s,getRecordMatcher:o}}function a$(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function yQ(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:bQ(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function bQ(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function s$(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function wQ(e){return e.reduce((t,n)=>Qn(t,n.meta),{})}function c$(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function VI(e,t){return t.children.some(n=>n===e||VI(e,n))}const UI=/#/g,xQ=/&/g,kQ=/\//g,jQ=/=/g,_Q=/\?/g,WI=/\+/g,SQ=/%5B/g,$Q=/%5D/g,KI=/%5E/g,CQ=/%60/g,JI=/%7B/g,EQ=/%7C/g,GI=/%7D/g,OQ=/%20/g;function zk(e){return encodeURI(""+e).replace(EQ,"|").replace(SQ,"[").replace($Q,"]")}function MQ(e){return zk(e).replace(JI,"{").replace(GI,"}").replace(KI,"^")}function Vb(e){return zk(e).replace(WI,"%2B").replace(OQ,"+").replace(UI,"%23").replace(xQ,"%26").replace(CQ,"`").replace(JI,"{").replace(GI,"}").replace(KI,"^")}function AQ(e){return Vb(e).replace(jQ,"%3D")}function PQ(e){return zk(e).replace(UI,"%23").replace(_Q,"%3F")}function TQ(e){return e==null?"":PQ(e).replace(kQ,"%2F")}function ig(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function RQ(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<r.length;++o){const i=r[o].replace(WI," "),a=i.indexOf("="),s=ig(a<0?i:i.slice(0,a)),c=a<0?null:ig(i.slice(a+1));if(s in t){let u=t[s];$a(u)||(u=t[s]=[u]),u.push(c)}else t[s]=c}return t}function u$(e){let t="";for(let n in e){const r=e[n];if(n=AQ(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}($a(r)?r.map(i=>i&&Vb(i)):[r&&Vb(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function IQ(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=$a(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const NQ=Symbol(""),l$=Symbol(""),Lk=Symbol(""),QI=Symbol(""),Ub=Symbol("");function dd(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function pc(e,t,n,r,o){const i=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((a,s)=>{const c=f=>{f===!1?s(kf(4,{from:n,to:t})):f instanceof Error?s(f):sQ(f)?s(kf(2,{from:t,to:f})):(i&&r.enterCallbacks[o]===i&&typeof f=="function"&&i.push(f),a())},u=e.call(r&&r.instances[o],t,n,c);let l=Promise.resolve(u);e.length<3&&(l=l.then(c)),l.catch(f=>s(f))})}function z1(e,t,n,r){const o=[];for(const i of e)for(const a in i.components){let s=i.components[a];if(!(t!=="beforeRouteEnter"&&!i.instances[a]))if(DQ(s)){const u=(s.__vccOpts||s)[t];u&&o.push(pc(u,n,r,i,a))}else{let c=s();o.push(()=>c.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${a}" at "${i.path}"`));const l=HG(u)?u.default:u;i.components[a]=l;const d=(l.__vccOpts||l)[t];return d&&pc(d,n,r,i,a)()}))}}return o}function DQ(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function f$(e){const t=gi(Lk),n=gi(QI),r=hr(()=>t.resolve(Re(e.to))),o=hr(()=>{const{matched:c}=r.value,{length:u}=c,l=c[u-1],f=n.matched;if(!l||!f.length)return-1;const d=f.findIndex(xf.bind(null,l));if(d>-1)return d;const h=d$(c[u-2]);return u>1&&d$(l)===h&&f[f.length-1].path!==h?f.findIndex(xf.bind(null,c[u-2])):d}),i=hr(()=>o.value>-1&&FQ(n.params,r.value.params)),a=hr(()=>o.value>-1&&o.value===n.matched.length-1&&LI(n.params,r.value.params));function s(c={}){return BQ(c)?t[Re(e.replace)?"replace":"push"](Re(e.to)).catch(Yd):Promise.resolve()}return{route:r,href:hr(()=>r.value.href),isActive:i,isExactActive:a,navigate:s}}const zQ=Jo({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:f$,setup(e,{slots:t}){const n=as(f$(e)),{options:r}=gi(Lk),o=hr(()=>({[h$(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[h$(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:Ho("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}}),LQ=zQ;function BQ(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function FQ(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!$a(o)||o.length!==r.length||r.some((i,a)=>i!==o[a]))return!1}return!0}function d$(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const h$=(e,t,n)=>e??t??n,qQ=Jo({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=gi(Ub),o=hr(()=>e.route||r.value),i=gi(l$,0),a=hr(()=>{let u=Re(i);const{matched:l}=o.value;let f;for(;(f=l[u])&&!f.components;)u++;return u}),s=hr(()=>o.value.matched[a.value]);Ql(l$,hr(()=>a.value+1)),Ql(NQ,s),Ql(Ub,o);const c=Tn();return so(()=>[c.value,s.value,e.name],([u,l,f],[d,h,p])=>{l&&(l.instances[f]=u,h&&h!==l&&u&&u===d&&(l.leaveGuards.size||(l.leaveGuards=h.leaveGuards),l.updateGuards.size||(l.updateGuards=h.updateGuards))),u&&l&&(!h||!xf(l,h)||!d)&&(l.enterCallbacks[f]||[]).forEach(v=>v(u))},{flush:"post"}),()=>{const u=o.value,l=e.name,f=s.value,d=f&&f.components[l];if(!d)return p$(n.default,{Component:d,route:u});const h=f.props[l],p=h?h===!0?u.params:typeof h=="function"?h(u):h:null,m=Ho(d,Qn({},p,t,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(f.instances[l]=null)},ref:c}));return p$(n.default,{Component:m,route:u})||m}}});function p$(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const YI=qQ;function HQ(e){const t=gQ(e.routes,e),n=e.parseQuery||RQ,r=e.stringifyQuery||u$,o=e.history,i=dd(),a=dd(),s=dd(),c=pf(Ha);let u=Ha;Sl&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const l=N1.bind(null,tt=>""+tt),f=N1.bind(null,TQ),d=N1.bind(null,ig);function h(tt,yt){let bt,jt;return qI(tt)?(bt=t.getRecordMatcher(tt),jt=yt):jt=tt,t.addRoute(jt,bt)}function p(tt){const yt=t.getRecordMatcher(tt);yt&&t.removeRoute(yt)}function v(){return t.getRoutes().map(tt=>tt.record)}function m(tt){return!!t.getRecordMatcher(tt)}function g(tt,yt){if(yt=Qn({},yt||c.value),typeof tt=="string"){const it=D1(n,tt,yt.path),X=t.resolve({path:it.path},yt),_t=o.createHref(it.fullPath);return Qn(it,X,{params:d(X.params),hash:ig(it.hash),redirectedFrom:void 0,href:_t})}let bt;if("path"in tt)bt=Qn({},tt,{path:D1(n,tt.path,yt.path).path});else{const it=Qn({},tt.params);for(const X in it)it[X]==null&&delete it[X];bt=Qn({},tt,{params:f(it)}),yt.params=f(yt.params)}const jt=t.resolve(bt,yt),gt=tt.hash||"";jt.params=l(d(jt.params));const Y=WG(r,Qn({},tt,{hash:MQ(gt),path:jt.path})),J=o.createHref(Y);return Qn({fullPath:Y,hash:gt,query:r===u$?IQ(tt.query):tt.query||{}},jt,{redirectedFrom:void 0,href:J})}function y(tt){return typeof tt=="string"?D1(n,tt,c.value.path):Qn({},tt)}function b(tt,yt){if(u!==tt)return kf(8,{from:yt,to:tt})}function w(tt){return j(tt)}function x(tt){return w(Qn(y(tt),{replace:!0}))}function k(tt){const yt=tt.matched[tt.matched.length-1];if(yt&&yt.redirect){const{redirect:bt}=yt;let jt=typeof bt=="function"?bt(tt):bt;return typeof jt=="string"&&(jt=jt.includes("?")||jt.includes("#")?jt=y(jt):{path:jt},jt.params={}),Qn({query:tt.query,hash:tt.hash,params:"path"in jt?{}:tt.params},jt)}}function j(tt,yt){const bt=u=g(tt),jt=c.value,gt=tt.state,Y=tt.force,J=tt.replace===!0,it=k(bt);if(it)return j(Qn(y(it),{state:typeof it=="object"?Qn({},gt,it.state):gt,force:Y,replace:J}),yt||bt);const X=bt;X.redirectedFrom=yt;let _t;return!Y&&KG(r,jt,bt)&&(_t=kf(16,{to:X,from:jt}),P(jt,jt,!0,!1)),(_t?Promise.resolve(_t):C(X,jt)).catch(z=>xs(z)?xs(z,2)?z:M(z):A(z,X,jt)).then(z=>{if(z){if(xs(z,2))return j(Qn({replace:J},y(z.to),{state:typeof z.to=="object"?Qn({},gt,z.to.state):gt,force:Y}),yt||X)}else z=B(X,jt,!0,J,gt);return $(X,jt,z),z})}function S(tt,yt){const bt=b(tt,yt);return bt?Promise.reject(bt):Promise.resolve()}function N(tt){const yt=H.values().next().value;return yt&&typeof yt.runWithContext=="function"?yt.runWithContext(tt):tt()}function C(tt,yt){let bt;const[jt,gt,Y]=VQ(tt,yt);bt=z1(jt.reverse(),"beforeRouteLeave",tt,yt);for(const it of jt)it.leaveGuards.forEach(X=>{bt.push(pc(X,tt,yt))});const J=S.bind(null,tt,yt);return bt.push(J),ft(bt).then(()=>{bt=[];for(const it of i.list())bt.push(pc(it,tt,yt));return bt.push(J),ft(bt)}).then(()=>{bt=z1(gt,"beforeRouteUpdate",tt,yt);for(const it of gt)it.updateGuards.forEach(X=>{bt.push(pc(X,tt,yt))});return bt.push(J),ft(bt)}).then(()=>{bt=[];for(const it of Y)if(it.beforeEnter)if($a(it.beforeEnter))for(const X of it.beforeEnter)bt.push(pc(X,tt,yt));else bt.push(pc(it.beforeEnter,tt,yt));return bt.push(J),ft(bt)}).then(()=>(tt.matched.forEach(it=>it.enterCallbacks={}),bt=z1(Y,"beforeRouteEnter",tt,yt),bt.push(J),ft(bt))).then(()=>{bt=[];for(const it of a.list())bt.push(pc(it,tt,yt));return bt.push(J),ft(bt)}).catch(it=>xs(it,8)?it:Promise.reject(it))}function $(tt,yt,bt){s.list().forEach(jt=>N(()=>jt(tt,yt,bt)))}function B(tt,yt,bt,jt,gt){const Y=b(tt,yt);if(Y)return Y;const J=yt===Ha,it=Sl?history.state:{};bt&&(jt||J?o.replace(tt.fullPath,Qn({scroll:J&&it&&it.scroll},gt)):o.push(tt.fullPath,gt)),c.value=tt,P(tt,yt,bt,J),M()}let K;function R(){K||(K=o.listen((tt,yt,bt)=>{if(!I.listening)return;const jt=g(tt),gt=k(jt);if(gt){j(Qn(gt,{replace:!0}),jt).catch(Yd);return}u=jt;const Y=c.value;Sl&&eQ(e$(Y.fullPath,bt.delta),k0()),C(jt,Y).catch(J=>xs(J,12)?J:xs(J,2)?(j(J.to,jt).then(it=>{xs(it,20)&&!bt.delta&&bt.type===$h.pop&&o.go(-1,!1)}).catch(Yd),Promise.reject()):(bt.delta&&o.go(-bt.delta,!1),A(J,jt,Y))).then(J=>{J=J||B(jt,Y,!1),J&&(bt.delta&&!xs(J,8)?o.go(-bt.delta,!1):bt.type===$h.pop&&xs(J,20)&&o.go(-1,!1)),$(jt,Y,J)}).catch(Yd)}))}let q=dd(),F=dd(),O;function A(tt,yt,bt){M(tt);const jt=F.list();return jt.length?jt.forEach(gt=>gt(tt,yt,bt)):console.error(tt),Promise.reject(tt)}function _(){return O&&c.value!==Ha?Promise.resolve():new Promise((tt,yt)=>{q.add([tt,yt])})}function M(tt){return O||(O=!tt,R(),q.list().forEach(([yt,bt])=>tt?bt(tt):yt()),q.reset()),tt}function P(tt,yt,bt,jt){const{scrollBehavior:gt}=e;if(!Sl||!gt)return Promise.resolve();const Y=!bt&&nQ(e$(tt.fullPath,0))||(jt||!bt)&&history.state&&history.state.scroll||null;return tu().then(()=>gt(tt,yt,Y)).then(J=>J&&tQ(J)).catch(J=>A(J,tt,yt))}const D=tt=>o.go(tt);let T;const H=new Set,I={currentRoute:c,listening:!0,addRoute:h,removeRoute:p,hasRoute:m,getRoutes:v,resolve:g,options:e,push:w,replace:x,go:D,back:()=>D(-1),forward:()=>D(1),beforeEach:i.add,beforeResolve:a.add,afterEach:s.add,onError:F.add,isReady:_,install(tt){const yt=this;tt.component("RouterLink",LQ),tt.component("RouterView",YI),tt.config.globalProperties.$router=yt,Object.defineProperty(tt.config.globalProperties,"$route",{enumerable:!0,get:()=>Re(c)}),Sl&&!T&&c.value===Ha&&(T=!0,w(o.location).catch(gt=>{}));const bt={};for(const gt in Ha)Object.defineProperty(bt,gt,{get:()=>c.value[gt],enumerable:!0});tt.provide(Lk,yt),tt.provide(QI,hp(bt)),tt.provide(Ub,c);const jt=tt.unmount;H.add(tt),tt.unmount=function(){H.delete(tt),H.size<1&&(u=Ha,K&&K(),K=null,c.value=Ha,T=!1,O=!1),jt()}}};function ft(tt){return tt.reduce((yt,bt)=>yt.then(()=>N(bt)),Promise.resolve())}return I}function VQ(e,t){const n=[],r=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;a<i;a++){const s=t.matched[a];s&&(e.matched.find(u=>xf(u,s))?r.push(s):n.push(s));const c=e.matched[a];c&&(t.matched.find(u=>xf(u,c))||o.push(c))}return[n,r,o]}const v$=[{name:"index",path:"/",meta:{},alias:[],redirect:void 0,component:()=>Os(()=>import("./index.ddad1278.js"),["./index.ddad1278.js","./index.ffbea0a9.css"],import.meta.url).then(e=>e.default||e)},{name:"options",path:"/options",meta:{},alias:[],redirect:void 0,component:()=>Os(()=>import("./options.fab4cd78.js"),["./options.fab4cd78.js","./shiki.704b4c6f.js"],import.meta.url).then(e=>e.default||e)},{name:"png",path:"/png",meta:{},alias:[],redirect:void 0,component:()=>Os(()=>import("./png.8b9dc853.js"),["./png.8b9dc853.js","./ImageLoader.d1e647a8.js","./ImageLoader.7571516f.css"],import.meta.url).then(e=>e.default||e)},{name:"svg",path:"/svg",meta:{},alias:[],redirect:void 0,component:()=>Os(()=>import("./svg.3f7376fc.js"),["./svg.3f7376fc.js","./ImageLoader.d1e647a8.js","./ImageLoader.7571516f.css"],import.meta.url).then(e=>e.default||e)},{name:"vnodes",path:"/vnodes",meta:{},alias:[],redirect:void 0,component:()=>Os(()=>import("./vnodes.17fcf779.js"),["./vnodes.17fcf779.js","./shiki.704b4c6f.js"],import.meta.url).then(e=>e.default||e)}],UQ={scrollBehavior(e,t,n){var u;const r=ar(),o=((u=vs().options)==null?void 0:u.scrollBehaviorType)??"auto";let i=n||void 0;const a=typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop;if(!i&&t&&e&&a!==!1&&WQ(t,e)&&(i={left:0,top:0}),e.path===t.path){if(t.hash&&!e.hash)return{left:0,top:0};if(e.hash)return{el:e.hash,top:m$(e.hash),behavior:o}}const s=l=>!!(l.meta.pageTransition??qb),c=s(t)&&s(e)?"page:transition:finish":"page:finish";return new Promise(l=>{r.hooks.hookOnce(c,async()=>{await tu(),e.hash&&(i={el:e.hash,top:m$(e.hash),behavior:o}),l(i)})})}};function m$(e){try{const t=document.querySelector(e);if(t)return parseFloat(getComputedStyle(t).scrollMarginTop)}catch{}return 0}function WQ(e,t){return t.path!==e.path||JSON.stringify(e.params)!==JSON.stringify(t.params)}const KQ={},Qo={...KQ,...UQ},JQ=async e=>{var c;let t,n;if(!((c=e.meta)!=null&&c.validate))return;const r=ar(),o=vs();if(([t,n]=ng(()=>Promise.resolve(e.meta.validate(e))),t=await t,n(),t)===!0)return;const a=x0({statusCode:404,statusMessage:`Page Not Found: ${e.fullPath}`}),s=o.beforeResolve(u=>{if(s(),u===e){const l=o.afterEach(async()=>{l(),await r.runWithContext(()=>Nl(a)),window.history.pushState({},"",e.fullPath)});return!1}})},GQ=[JQ],Zd={};function QQ(e,t,n){const{pathname:r,search:o,hash:i}=t,a=e.indexOf("#");if(a>-1){const u=i.includes(e.slice(a))?e.slice(a).length:1;let l=i.slice(u);return l[0]!=="/"&&(l="/"+l),DS(l,"")}const s=DS(r,e),c=!n||DK(s,n,{trailingSlash:!0})?s:n;return c+(c.includes("?")?"":o)+i}const YQ=Ys({name:"nuxt:router",enforce:"pre",async setup(e){var v,m;let t,n,r=Ik().app.baseURL;Qo.hashMode&&!r.includes("#")&&(r+="#");const o=((v=Qo.history)==null?void 0:v.call(Qo,r))??(Qo.hashMode?aQ(r):FI(r)),i=((m=Qo.routes)==null?void 0:m.call(Qo,v$))??v$;let a;const s=QQ(r,window.location,e.payload.path),c=HQ({...Qo,scrollBehavior:(g,y,b)=>{var w;if(y===Ha){a=b;return}return c.options.scrollBehavior=Qo.scrollBehavior,(w=Qo.scrollBehavior)==null?void 0:w.call(Qo,g,Ha,a||b)},history:o,routes:i});e.vueApp.use(c);const u=pf(c.currentRoute.value);c.afterEach((g,y)=>{u.value=y}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>u.value});const l=pf(c.resolve(s)),f=()=>{l.value=c.currentRoute.value};e.hook("page:finish",f),c.afterEach((g,y)=>{var b,w,x,k;((w=(b=g.matched[0])==null?void 0:b.components)==null?void 0:w.default)===((k=(x=y.matched[0])==null?void 0:x.components)==null?void 0:k.default)&&f()});const d={};for(const g in l.value)Object.defineProperty(d,g,{get:()=>l.value[g]});e._route=hp(d),e._middleware=e._middleware||{global:[],named:{}};const h=w0();try{[t,n]=ng(()=>c.isReady()),await t,n()}catch(g){[t,n]=ng(()=>e.runWithContext(()=>Nl(g))),await t,n()}const p=e.payload.state._layout;return c.beforeEach(async(g,y)=>{var b;g.meta=as(g.meta),e.isHydrating&&p&&!Wu(g.meta.layout)&&(g.meta.layout=p),e._processingMiddleware=!0;{const w=new Set([...GQ,...e._middleware.global]);for(const x of g.matched){const k=x.meta.middleware;if(k)if(Array.isArray(k))for(const j of k)w.add(j);else w.add(k)}for(const x of w){const k=typeof x=="string"?e._middleware.named[x]||await((b=Zd[x])==null?void 0:b.call(Zd).then(S=>S.default||S)):x;if(!k)throw new Error(`Unknown route middleware: '${x}'.`);const j=await e.runWithContext(()=>k(g,y));if(!e.payload.serverRendered&&e.isHydrating&&(j===!1||j instanceof Error)){const S=j||Lb({statusCode:404,statusMessage:`Page Not Found: ${s}`});return await e.runWithContext(()=>Nl(S)),!1}if(j!==!0&&(j||j===!1))return j}}}),c.onError(()=>{delete e._processingMiddleware}),c.afterEach(async(g,y,b)=>{delete e._processingMiddleware,!e.isHydrating&&h.value&&await e.runWithContext(bG),g.matched.length===0&&await e.runWithContext(()=>Nl(Lb({statusCode:404,fatal:!1,statusMessage:`Page not found: ${g.fullPath}`})))}),e.hooks.hookOnce("app:created",async()=>{try{await c.replace({...c.resolve(s),name:void 0,force:!0}),c.options.scrollBehavior=Qo.scrollBehavior}catch(g){await e.runWithContext(()=>Nl(g))}}),{provide:{router:c}}}}),XQ=Ys({name:"nuxt:payload",setup(e){vs().beforeResolve(async(t,n)=>{if(t.path===n.path)return;const r=await QS(t.path);r&&Object.assign(e.static.data,r.data)}),RI(()=>{e.hooks.hook("link:prefetch",async t=>{gp(t).protocol||await QS(t)})})}}),ZQ=Jm(()=>Os(()=>Promise.resolve().then(()=>jX),void 0,import.meta.url).then(e=>e.default)),tY=Jm(()=>Os(()=>import("./IconCSS.cacabbab.js"),["./IconCSS.cacabbab.js","./IconCSS.28ef6808.css"],import.meta.url).then(e=>e.default)),eY=[["Icon",ZQ],["IconCSS",tY]],nY=Ys({name:"nuxt:global-components",setup(e){for(const[t,n]of eY)e.vueApp.component(t,n),e.vueApp.component("Lazy"+t,n)}}),ev={},rY=Ys({name:"nuxt:prefetch",setup(e){const t=vs();e.hooks.hook("app:mounted",()=>{t.beforeEach(async n=>{var o;const r=(o=n==null?void 0:n.meta)==null?void 0:o.layout;r&&typeof ev[r]=="function"&&await ev[r]()})}),e.hooks.hook("link:prefetch",n=>{var a,s,c,u;if(Uf(n))return;const r=t.resolve(n);if(!r)return;const o=(a=r==null?void 0:r.meta)==null?void 0:a.layout;let i=Array.isArray((s=r==null?void 0:r.meta)==null?void 0:s.middleware)?(c=r==null?void 0:r.meta)==null?void 0:c.middleware:[(u=r==null?void 0:r.meta)==null?void 0:u.middleware];i=i.filter(l=>typeof l=="string");for(const l of i)typeof Zd[l]=="function"&&Zd[l]();o&&typeof ev[o]=="function"&&ev[o]()})}}),oY="__NUXT_COLOR_MODE__",iY="ColorScheme",aY="nuxt-color-mode",ks=window[oY],sY=Ys(e=>{const t=Dk("color-mode",()=>as({preference:ks.preference,value:ks.value,unknown:!1,forced:!1})).value;vs().afterEach(o=>{const i=o.meta.colorMode;i&&i!=="system"?(t.value=i,t.forced=!0):(i==="system"&&console.warn("You cannot force the colorMode to system at the page level."),t.forced=!1,t.value=t.preference==="system"?ks.getColorScheme():t.preference)});let n;function r(){n||!window.matchMedia||(n=window.matchMedia("(prefers-color-scheme: dark)"),n.addEventListener("change",()=>{!t.forced&&t.preference==="system"&&(t.value=ks.getColorScheme())}))}so(()=>t.preference,o=>{var i;t.forced||(o==="system"?(t.value=ks.getColorScheme(),r()):t.value=o,(i=window.localStorage)==null||i.setItem(aY,o))},{immediate:!0}),so(()=>t.value,(o,i)=>{ks.removeColorScheme(i),ks.addColorScheme(o)}),t.preference==="system"&&r(),e.hook("app:mounted",()=>{t.unknown&&(t.preference=ks.preference,t.value=ks.value,t.unknown=!1)}),e.provide("colorMode",t)});const cY=Ys(()=>{}),uY=Ys({name:"nuxt:chunk-reload",setup(e){const t=vs(),n=Ik(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:i})=>{r.add(i)});function o(i){const s="href"in i&&i.href.startsWith("#")?n.app.baseURL+i.href:mp(n.app.baseURL,i.fullPath);SG({path:s,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(o)}),t.onError((i,a)=>{r.has(i)&&o(a)})}}),lY=[BG,qG,YQ,XQ,nY,rY,sY,cY,uY],Bk=Jo({__name:"NIcon",props:{icon:{}},setup(e){return(t,n)=>(Vn(),li("div",{class:Gr(["n-icon",t.icon])},null,2))}}),fY=Jo({__name:"NButton",props:{to:{},icon:{}},setup(e){return(t,n)=>{const r=Bk;return Vn(),xo(_k(t.to?Re(NI):"button"),Ok({to:t.to},t.$attrs,{class:"n-button n-button-base active:n-button-active focus-visible:n-focus-base n-transition hover:n-button-hover n-disabled:n-disabled"}),{default:oo(()=>[Ku(t.$slots,"icon",{},()=>[t.icon?(Vn(),xo(r,{key:0,icon:t.icon,class:"n-button-icon"},null,8,["icon"])):qa("",!0)]),Ku(t.$slots,"default")]),_:3},16,["to"])}}}),dY=Jo({name:"ClientOnly",inheritAttrs:!1,props:["fallback","placeholder","placeholderTag","fallbackTag"],setup(e,{slots:t,attrs:n}){const r=Tn(!1);return cl(()=>{r.value=!0}),o=>{var c;if(r.value)return(c=t.default)==null?void 0:c.call(t);const i=t.fallback||t.placeholder;if(i)return i();const a=o.fallback||o.placeholder||"",s=o.fallbackTag||o.placeholderTag||"span";return li(s,n,a)}}}),XI=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},hY={name:iY,props:{placeholder:String,tag:{type:String,default:"span"}}};function pY(e,t,n,r,o,i){const a=dY;return Vn(),xo(a,{placeholder:n.placeholder,"placeholder-tag":n.tag},{default:oo(()=>[Ku(e.$slots,"default")]),_:3},8,["placeholder","placeholder-tag"])}const vY=XI(hY,[["render",pY]]),ZI=()=>Dk("color-mode").value,mY=Jo({__name:"NDarkToggle",setup(e){const t=ZI(),n=hr({get(){return t.value==="dark"},set(){t.preference=n.value?"light":"dark"}}),r=typeof document<"u"&&document.startViewTransition&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches;function o(a){if(!r||!a){n.value=!n.value;return}const s=a.clientX,c=a.clientY,u=Math.hypot(Math.max(s,innerWidth-s),Math.max(c,innerHeight-c));document.startViewTransition(async()=>{n.value=!n.value,await tu()}).ready.then(()=>{const f=[`circle(0px at ${s}px ${c}px)`,`circle(${u}px at ${s}px ${c}px)`];document.documentElement.animate({clipPath:n.value?[...f].reverse():f},{duration:400,easing:"ease-in",pseudoElement:n.value?"::view-transition-old(root)":"::view-transition-new(root)"})})}const i={mode:t,isDark:n,toggle:o};return(a,s)=>{const c=vY;return Vn(),xo(c,{tag:"span"},{default:oo(()=>[Ku(a.$slots,"default",l7(Ck(i)))]),_:3})}}}),tN=Object.freeze({left:0,top:0,width:16,height:16}),eN=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Fk=Object.freeze({...tN,...eN});Object.freeze({...Fk,body:"",hidden:!1});({...tN});const nN=Object.freeze({width:null,height:null}),rN=Object.freeze({...nN,...eN});function gY(e,t){const n={...e};for(const r in t){const o=t[r],i=typeof o;r in nN?(o===null||o&&(i==="string"||i==="number"))&&(n[r]=o):i===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const yY=/[\s,]+/;function bY(e,t){t.split(yY).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function wY(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i=i/o,i%1===0?r(i):0)}}return t}const xY=/(-?[0-9.]*[0-9]+[0-9.]*)/g,kY=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function g$(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(xY);if(r===null||!r.length)return e;const o=[];let i=r.shift(),a=kY.test(i);for(;;){if(a){const s=parseFloat(i);isNaN(s)?o.push(i):o.push(Math.ceil(s*t*n)/n)}else o.push(i);if(i=r.shift(),i===void 0)return o.join("");a=!a}}const jY=e=>e==="unset"||e==="undefined"||e==="none";function _Y(e,t){const n={...Fk,...e},r={...rN,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,r].forEach(p=>{const v=[],m=p.hFlip,g=p.vFlip;let y=p.rotate;m?g?y+=2:(v.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),v.push("scale(-1 1)"),o.top=o.left=0):g&&(v.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),v.push("scale(1 -1)"),o.top=o.left=0);let b;switch(y<0&&(y-=Math.floor(y/4)*4),y=y%4,y){case 1:b=o.height/2+o.top,v.unshift("rotate(90 "+b.toString()+" "+b.toString()+")");break;case 2:v.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:b=o.width/2+o.left,v.unshift("rotate(-90 "+b.toString()+" "+b.toString()+")");break}y%2===1&&(o.left!==o.top&&(b=o.left,o.left=o.top,o.top=b),o.width!==o.height&&(b=o.width,o.width=o.height,o.height=b)),v.length&&(i='<g transform="'+v.join(" ")+'">'+i+"</g>")});const a=r.width,s=r.height,c=o.width,u=o.height;let l,f;a===null?(f=s===null?"1em":s==="auto"?u:s,l=g$(f,c/u)):(l=a==="auto"?c:a,f=s===null?g$(l,u/c):s==="auto"?u:s);const d={},h=(p,v)=>{jY(v)||(d[p]=v.toString())};return h("width",l),h("height",f),d.viewBox=o.left.toString()+" "+o.top.toString()+" "+c.toString()+" "+u.toString(),{attributes:d,body:i}}const SY=/\sid="(\S+)"/g,$Y="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let CY=0;function EY(e,t=$Y){const n=[];let r;for(;r=SY.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(i=>{const a=typeof t=="function"?t(i):t+(CY++).toString(),s=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+a+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}function OY(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function MY(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function AY(e){return"data:image/svg+xml,"+MY(e)}function PY(e){return'url("'+AY(e)+'")'}const y$={...rN,inline:!1},TY={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},RY={display:"inline-block"},Wb={backgroundColor:"currentColor"},oN={backgroundColor:"transparent"},b$={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},w$={webkitMask:Wb,mask:Wb,background:oN};for(const e in w$){const t=w$[e];for(const n in b$)t[e+n]=b$[n]}const pm={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";pm[e+"-flip"]=t,pm[e.slice(0,1)+"-flip"]=t,pm[e+"Flip"]=t});function x$(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const IY=(e,t)=>{const n=gY(y$,t),r={...TY},o=t.mode||"svg",i={},a=t.style,s=typeof a=="object"&&!(a instanceof Array)?a:{};for(let v in t){const m=t[v];if(m!==void 0)switch(v){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[v]=m===!0||m==="true"||m===1;break;case"flip":typeof m=="string"&&bY(n,m);break;case"color":i.color=m;break;case"rotate":typeof m=="string"?n[v]=wY(m):typeof m=="number"&&(n[v]=m);break;case"ariaHidden":case"aria-hidden":m!==!0&&m!=="true"&&delete r["aria-hidden"];break;default:{const g=pm[v];g?(m===!0||m==="true"||m===1)&&(n[g]=!0):y$[v]===void 0&&(r[v]=m)}}}const c=_Y(e,n),u=c.attributes;if(n.inline&&(i.verticalAlign="-0.125em"),o==="svg"){r.style={...i,...s},Object.assign(r,u);let v=0,m=t.id;return typeof m=="string"&&(m=m.replace(/-/g,"_")),r.innerHTML=EY(c.body,m?()=>m+"ID"+v++:"iconifyVue"),Ho("svg",r)}const{body:l,width:f,height:d}=e,h=o==="mask"||(o==="bg"?!1:l.indexOf("currentColor")!==-1),p=OY(l,{...u,width:f+"",height:d+""});return r.style={...i,"--svg":PY(p),width:x$(u.width),height:x$(u.height),...RY,...h?Wb:oN,...s},Ho("span",r)},NY=Object.create(null),DY=Jo({inheritAttrs:!1,render(){const e=this.$attrs,t=e.icon,n=typeof t=="string"?NY[t]:typeof t=="object"?t:null;return n===null||typeof n!="object"||typeof n.body!="string"?this.$slots.default?this.$slots.default():null:IY({...Fk,...n},e)}}),th=/^[a-z0-9]+(-[a-z0-9]+)*$/,j0=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const s=o.pop(),c=o.pop(),u={provider:o.length>0?o[0]:r,prefix:c,name:s};return t&&!vm(u)?null:u}const i=o[0],a=i.split("-");if(a.length>1){const s={provider:r,prefix:a.shift(),name:a.join("-")};return t&&!vm(s)?null:s}if(n&&r===""){const s={provider:r,prefix:"",name:i};return t&&!vm(s,n)?null:s}return null},vm=(e,t)=>e?!!((e.provider===""||e.provider.match(th))&&(t&&e.prefix===""||e.prefix.match(th))&&e.name.match(th)):!1,iN=Object.freeze({left:0,top:0,width:16,height:16}),ag=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),qk=Object.freeze({...iN,...ag}),Kb=Object.freeze({...qk,body:"",hidden:!1});function zY(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function k$(e,t){const n=zY(e,t);for(const r in Kb)r in ag?r in e&&!(r in n)&&(n[r]=ag[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function LY(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function i(a){if(n[a])return o[a]=[];if(!(a in o)){o[a]=null;const s=r[a]&&r[a].parent,c=s&&i(s);c&&(o[a]=[s].concat(c))}return o[a]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(i),o}function BY(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let i={};function a(s){i=k$(r[s]||o[s],i)}return a(t),n.forEach(a),k$(e,i)}function aN(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=LY(e);for(const o in r){const i=r[o];i&&(t(o,BY(e,o,i)),n.push(o))}return n}const FY={provider:"",aliases:{},not_found:{},...iN};function L1(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function sN(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!L1(e,FY))return null;const n=t.icons;for(const o in n){const i=n[o];if(!o.match(th)||typeof i.body!="string"||!L1(i,Kb))return null}const r=t.aliases||Object.create(null);for(const o in r){const i=r[o],a=i.parent;if(!o.match(th)||typeof a!="string"||!n[a]&&!r[a]||!L1(i,Kb))return null}return t}const j$=Object.create(null);function qY(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Ju(e,t){const n=j$[e]||(j$[e]=Object.create(null));return n[t]||(n[t]=qY(e,t))}function Hk(e,t){return sN(t)?aN(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function HY(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let Ch=!1;function cN(e){return typeof e=="boolean"&&(Ch=e),Ch}function VY(e){const t=typeof e=="string"?j0(e,!0,Ch):e;if(t){const n=Ju(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function UY(e,t){const n=j0(e,!0,Ch);if(!n)return!1;const r=Ju(n.provider,n.prefix);return HY(r,n.name,t)}function WY(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Ch&&!t&&!e.prefix){let o=!1;return sN(e)&&(e.prefix="",aN(e,(i,a)=>{a&&UY(i,a)&&(o=!0)})),o}const n=e.prefix;if(!vm({provider:t,prefix:n,name:"a"}))return!1;const r=Ju(t,n);return!!Hk(r,e)}const KY=Object.freeze({width:null,height:null}),JY=Object.freeze({...KY,...ag});""+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);const Jb=Object.create(null);function GY(e,t){Jb[e]=t}function Gb(e){return Jb[e]||Jb[""]}function Vk(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Uk=Object.create(null),hd=["https://api.simplesvg.com","https://api.unisvg.com"],mm=[];for(;hd.length>0;)hd.length===1||Math.random()>.5?mm.push(hd.shift()):mm.push(hd.pop());Uk[""]=Vk({resources:["https://api.iconify.design"].concat(mm)});function QY(e,t){const n=Vk(t);return n===null?!1:(Uk[e]=n,!0)}function Wk(e){return Uk[e]}const YY=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let _$=YY();function XY(e,t){const n=Wk(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(a=>{o=Math.max(o,a.length)});const i=t+".json?icons=";r=n.maxURL-o-n.path.length-i.length}return r}function ZY(e){return e===404}const tX=(e,t,n)=>{const r=[],o=XY(e,t),i="icons";let a={type:i,provider:e,prefix:t,icons:[]},s=0;return n.forEach((c,u)=>{s+=c.length+1,s>=o&&u>0&&(r.push(a),a={type:i,provider:e,prefix:t,icons:[]},s=c.length),a.icons.push(c)}),r.push(a),r};function eX(e){if(typeof e=="string"){const t=Wk(e);if(t)return t.path}return"/"}const nX=(e,t,n)=>{if(!_$){n("abort",424);return}let r=eX(t.provider);switch(t.type){case"icons":{const i=t.prefix,s=t.icons.join(","),c=new URLSearchParams({icons:s});r+=i+".json?"+c.toString();break}case"custom":{const i=t.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:n("abort",400);return}let o=503;_$(e+r).then(i=>{const a=i.status;if(a!==200){setTimeout(()=>{n(ZY(a)?"abort":"next",a)});return}return o=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?n("abort",i):n("next",o)});return}setTimeout(()=>{n("success",i)})}).catch(()=>{n("next",o)})},rX={prepare:tX,send:nX};function oX(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,i)=>o.provider!==i.provider?o.provider.localeCompare(i.provider):o.prefix!==i.prefix?o.prefix.localeCompare(i.prefix):o.name.localeCompare(i.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const i=o.provider,a=o.prefix,s=o.name,c=n[i]||(n[i]=Object.create(null)),u=c[a]||(c[a]=Ju(i,a));let l;s in u.icons?l=t.loaded:a===""||u.missing.has(s)?l=t.missing:l=t.pending;const f={provider:i,prefix:a,name:s};l.push(f)}),t}function uN(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function iX(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(i=>{const a=i.icons,s=a.pending.length;a.pending=a.pending.filter(c=>{if(c.prefix!==o)return!0;const u=c.name;if(e.icons[u])a.loaded.push({provider:r,prefix:o,name:u});else if(e.missing.has(u))a.missing.push({provider:r,prefix:o,name:u});else return n=!0,!0;return!1}),a.pending.length!==s&&(n||uN([e],i.id),i.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),i.abort))})}))}let aX=0;function sX(e,t,n){const r=aX++,o=uN.bind(null,n,r);if(!t.pending.length)return o;const i={id:r,icons:t,callback:e,abort:o};return n.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(i)}),o}function cX(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const i=typeof o=="string"?j0(o,t,n):o;i&&r.push(i)}),r}var uX={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function lX(e,t,n,r){const o=e.resources.length,i=e.random?Math.floor(Math.random()*o):e.index;let a;if(e.random){let k=e.resources.slice(0);for(a=[];k.length>1;){const j=Math.floor(Math.random()*k.length);a.push(k[j]),k=k.slice(0,j).concat(k.slice(j+1))}a=a.concat(k)}else a=e.resources.slice(i).concat(e.resources.slice(0,i));const s=Date.now();let c="pending",u=0,l,f=null,d=[],h=[];typeof r=="function"&&h.push(r);function p(){f&&(clearTimeout(f),f=null)}function v(){c==="pending"&&(c="aborted"),p(),d.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),d=[]}function m(k,j){j&&(h=[]),typeof k=="function"&&h.push(k)}function g(){return{startTime:s,payload:t,status:c,queriesSent:u,queriesPending:d.length,subscribe:m,abort:v}}function y(){c="failed",h.forEach(k=>{k(void 0,l)})}function b(){d.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),d=[]}function w(k,j,S){const N=j!=="success";switch(d=d.filter(C=>C!==k),c){case"pending":break;case"failed":if(N||!e.dataAfterTimeout)return;break;default:return}if(j==="abort"){l=S,y();return}if(N){l=S,d.length||(a.length?x():y());return}if(p(),b(),!e.random){const C=e.resources.indexOf(k.resource);C!==-1&&C!==e.index&&(e.index=C)}c="completed",h.forEach(C=>{C(S)})}function x(){if(c!=="pending")return;p();const k=a.shift();if(k===void 0){if(d.length){f=setTimeout(()=>{p(),c==="pending"&&(b(),y())},e.timeout);return}y();return}const j={status:"pending",resource:k,callback:(S,N)=>{w(j,S,N)}};d.push(j),u++,f=setTimeout(x,e.rotate),n(k,t,j.callback)}return setTimeout(x),g}function lN(e){const t={...uX,...e};let n=[];function r(){n=n.filter(s=>s().status==="pending")}function o(s,c,u){const l=lX(t,s,c,(f,d)=>{r(),u&&u(f,d)});return n.push(l),l}function i(s){return n.find(c=>s(c))||null}return{query:o,find:i,setIndex:s=>{t.index=s},getIndex:()=>t.index,cleanup:r}}function S$(){}const B1=Object.create(null);function fX(e){if(!B1[e]){const t=Wk(e);if(!t)return;const n=lN(t),r={config:t,redundancy:n};B1[e]=r}return B1[e]}function dX(e,t,n){let r,o;if(typeof e=="string"){const i=Gb(e);if(!i)return n(void 0,424),S$;o=i.send;const a=fX(e);a&&(r=a.redundancy)}else{const i=Vk(e);if(i){r=lN(i);const a=e.resources?e.resources[0]:"",s=Gb(a);s&&(o=s.send)}}return!r||!o?(n(void 0,424),S$):r.query(t,o,n)().abort}const $$="iconify2",Eh="iconify",fN=Eh+"-count",C$=Eh+"-version",dN=36e5,hX=168;function Qb(e,t){try{return e.getItem(t)}catch{}}function Kk(e,t,n){try{return e.setItem(t,n),!0}catch{}}function E$(e,t){try{e.removeItem(t)}catch{}}function Yb(e,t){return Kk(e,fN,t.toString())}function Xb(e){return parseInt(Qb(e,fN))||0}const _0={local:!0,session:!0},hN={local:new Set,session:new Set};let Jk=!1;function pX(e){Jk=e}let nv=typeof window>"u"?{}:window;function pN(e){const t=e+"Storage";try{if(nv&&nv[t]&&typeof nv[t].length=="number")return nv[t]}catch{}_0[e]=!1}function vN(e,t){const n=pN(e);if(!n)return;const r=Qb(n,C$);if(r!==$$){if(r){const s=Xb(n);for(let c=0;c<s;c++)E$(n,Eh+c.toString())}Kk(n,C$,$$),Yb(n,0);return}const o=Math.floor(Date.now()/dN)-hX,i=s=>{const c=Eh+s.toString(),u=Qb(n,c);if(typeof u=="string"){try{const l=JSON.parse(u);if(typeof l=="object"&&typeof l.cached=="number"&&l.cached>o&&typeof l.provider=="string"&&typeof l.data=="object"&&typeof l.data.prefix=="string"&&t(l,s))return!0}catch{}E$(n,c)}};let a=Xb(n);for(let s=a-1;s>=0;s--)i(s)||(s===a-1?(a--,Yb(n,a)):hN[e].add(s))}function mN(){if(!Jk){pX(!0);for(const e in _0)vN(e,t=>{const n=t.data,r=t.provider,o=n.prefix,i=Ju(r,o);if(!Hk(i,n).length)return!1;const a=n.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,a):a,!0})}}function vX(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in _0)vN(r,o=>{const i=o.data;return o.provider!==e.provider||i.prefix!==e.prefix||i.lastModified===t});return!0}function mX(e,t){Jk||mN();function n(r){let o;if(!_0[r]||!(o=pN(r)))return;const i=hN[r];let a;if(i.size)i.delete(a=Array.from(i).shift());else if(a=Xb(o),!Yb(o,a+1))return;const s={cached:Math.floor(Date.now()/dN),provider:e.provider,data:t};return Kk(o,Eh+a.toString(),JSON.stringify(s))}t.lastModified&&!vX(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function O$(){}function gX(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,iX(e)}))}function yX(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let i;if(!o||!(i=Gb(n)))return;i.prepare(n,r,o).forEach(s=>{dX(n,s,c=>{if(typeof c!="object")s.icons.forEach(u=>{e.missing.add(u)});else try{const u=Hk(e,c);if(!u.length)return;const l=e.pendingIcons;l&&u.forEach(f=>{l.delete(f)}),mX(e,c)}catch(u){console.error(u)}gX(e)})})}))}const bX=(e,t)=>{const n=cX(e,!0,cN()),r=oX(n);if(!r.pending.length){let c=!0;return t&&setTimeout(()=>{c&&t(r.loaded,r.missing,r.pending,O$)}),()=>{c=!1}}const o=Object.create(null),i=[];let a,s;return r.pending.forEach(c=>{const{provider:u,prefix:l}=c;if(l===s&&u===a)return;a=u,s=l,i.push(Ju(u,l));const f=o[u]||(o[u]=Object.create(null));f[l]||(f[l]=[])}),r.pending.forEach(c=>{const{provider:u,prefix:l,name:f}=c,d=Ju(u,l),h=d.pendingIcons||(d.pendingIcons=new Set);h.has(f)||(h.add(f),o[u][l].push(f))}),i.forEach(c=>{const{provider:u,prefix:l}=c;o[u][l].length&&yX(c,o[u][l])}),t?sX(t,r,i):O$},wX=e=>new Promise((t,n)=>{const r=typeof e=="string"?j0(e,!0):e;if(!r){n(e);return}bX([r||e],o=>{if(o.length&&r){const i=VY(r);if(i){t({...qk,...i});return}}n(e)})});({...JY});const M$={backgroundColor:"currentColor"},xX={backgroundColor:"transparent"},A$={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},P$={webkitMask:M$,mask:M$,background:xX};for(const e in P$){const t=P$[e];for(const n in A$)t[e+n]=A$[n]}const F1={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";F1[e+"-flip"]=t,F1[e.slice(0,1)+"-flip"]=t,F1[e+"Flip"]=t});cN(!0);GY("",rX);if(typeof document<"u"&&typeof window<"u"){mN();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!WY(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;QY(n,o)||console.error(r)}catch{console.error(r)}}}}({...qk});const kX=Jo({__name:"Icon",props:{name:{type:String,required:!0},size:{type:String,default:""}},async setup(e){let t,n;const r=e,o=ar(),i=TG(),a=Dk("icons",()=>({})),s=Tn(!1),c=hr(()=>{var p;return((((p=i.nuxtIcon)==null?void 0:p.aliases)||{})[r.name]||r.name).replace(/^i-/,"")}),u=hr(()=>{var p;return(p=a.value)==null?void 0:p[c.value]}),l=hr(()=>o.vueApp.component(c.value)),f=hr(()=>{var v,m,g;if(!r.size&&typeof((v=i.nuxtIcon)==null?void 0:v.size)=="boolean"&&!((m=i.nuxtIcon)!=null&&m.size))return;const p=r.size||((g=i.nuxtIcon)==null?void 0:g.size)||"1em";return String(Number(p))===p?`${p}px`:p}),d=hr(()=>{var p;return((p=i==null?void 0:i.nuxtIcon)==null?void 0:p.class)??"icon"});async function h(){var p;l.value||(p=a.value)!=null&&p[c.value]||(s.value=!0,a.value[c.value]=await wX(c.value).catch(()=>{}),s.value=!1)}return so(()=>c.value,h),!l.value&&([t,n]=kb(()=>h()),t=await t,n()),(p,v)=>s.value?(Vn(),li("span",{key:0,class:Gr(d.value),style:zc({width:f.value,height:f.value})},null,6)):u.value?(Vn(),xo(Re(DY),{key:1,icon:u.value,class:Gr(d.value),width:f.value,height:f.value},null,8,["icon","class","width","height"])):l.value?(Vn(),xo(_k(l.value),{key:2,class:Gr(d.value),width:f.value,height:f.value},null,8,["class","width","height"])):(Vn(),li("span",{key:3,class:Gr(d.value),style:zc({fontSize:f.value,lineHeight:f.value,width:f.value,height:f.value})},[Ku(p.$slots,"default",{},()=>[Au(fm(e.name),1)],!0)],6))}});const gN=XI(kX,[["__scopeId","data-v-6f6643fb"]]),jX=Object.freeze(Object.defineProperty({__proto__:null,default:gN},Symbol.toStringTag,{value:"Module"}));function T$(e){return typeof e=="function"?e():Re(e)}const _X=e=>typeof e<"u",R$=()=>{};function SX(e,t){function n(...r){return new Promise((o,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(i)})}return n}function $X(e,t={}){let n,r,o=R$;const i=s=>{clearTimeout(s),o(),o=R$};return s=>{const c=T$(e),u=T$(t.maxWait);return n&&i(n),c<=0||u!==void 0&&u<=0?(r&&(i(r),r=null),Promise.resolve(s())):new Promise((l,f)=>{o=t.rejectOnCancel?f:l,u&&!r&&(r=setTimeout(()=>{n&&i(n),r=null,l(s())},u)),n=setTimeout(()=>{r&&i(r),r=null,l(s())},c)})}}function Gk(e,t=200,n={}){return SX($X(t,n),e)}function CX(e){return JSON.parse(JSON.stringify(e))}function EX(e,t,n,r={}){var o,i,a;const{clone:s=!1,passive:c=!1,eventName:u,deep:l=!1,defaultValue:f,shouldEmit:d}=r,h=Qs(),p=n||(h==null?void 0:h.emit)||((o=h==null?void 0:h.$emit)==null?void 0:o.bind(h))||((a=(i=h==null?void 0:h.proxy)==null?void 0:i.$emit)==null?void 0:a.bind(h==null?void 0:h.proxy));let v=u;t||(t="modelValue"),v=v||`update:${t.toString()}`;const m=b=>s?typeof s=="function"?s(b):CX(b):b,g=()=>_X(e[t])?m(e[t]):f,y=b=>{d?d(b)&&p(v,b):p(v,b)};if(c){const b=g(),w=Tn(b);let x=!1;return so(()=>e[t],k=>{x||(x=!0,w.value=m(k),tu(()=>x=!1))}),so(w,k=>{!x&&(k!==e[t]||l)&&y(k)},{deep:l}),w}else return hr({get(){return g()},set(b){y(b)}})}const OX={class:"n-text-input flex flex items-center border n-border-base rounded py-1 pl-1 pr-2 focus-within:n-focus-base focus-within:border-context n-bg-base"},MX=Jo({__name:"NTextInput",props:{modelValue:{default:""},icon:{},placeholder:{},disabled:{type:Boolean},autofocus:{type:Boolean},type:{default:"text"}},setup(e,{emit:t}){const r=EX(e,"modelValue",t,{passive:!0});return(o,i)=>{const a=Bk;return Vn(),li("div",OX,[Ku(o.$slots,"icon",{},()=>[o.icon?(Vn(),xo(a,{key:0,icon:o.icon,class:"ml-0.3em mr-0.1em text-1.1em op50"},null,8,["icon"])):qa("",!0)]),KU(nr("input",Ok({"onUpdate:modelValue":i[0]||(i[0]=s=>Yr(r)?r.value=s:null)},o.$props,{class:"ml-0.4em w-full flex-auto n-bg-base !outline-none"}),null,16),[[iK,Re(r)]])])}}}),AX=(e,t)=>t.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""}),Zb=(e,t)=>{const n=e.route.matched.find(o=>{var i;return((i=o.components)==null?void 0:i.default)===e.Component.type}),r=t??(n==null?void 0:n.meta.key)??(n&&AX(e.route,n));return typeof r=="function"?r(e.route):r},PX=(e,t)=>({default:()=>e?Ho(XU,e===!0?{}:e,t):t}),TX=Jo({name:"RouteProvider",props:{vnode:{type:Object,required:!0},route:{type:Object,required:!0},vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(e){const t=e.renderKey,n=e.route,r={};for(const o in e.route)Object.defineProperty(r,o,{get:()=>t===e.renderKey?e.route[o]:n[o]});return Ql(b0,hp(r)),()=>Ho(e.vnode,{ref:e.vnodeRef})}}),RX=(e,t,n)=>(t=t===!0?{}:t,{default:()=>{var r;return t?Ho(e,t,n):(r=n.default)==null?void 0:r.call(n)}}),IX=Jo({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,expose:n}){const r=ar(),o=Tn(),i=gi(b0,null);n({pageRef:o});const a=gi(mG,null);let s;const c=r.deferHydration();return()=>Ho(YI,{name:e.name,route:e.route,...t},{default:u=>{const l=zX(i,u.route,u.Component),f=i&&i.matched.length===u.route.matched.length;if(!u.Component)return s&&!f?s:void 0;if(s&&a&&!a.isCurrent(u.route))return s;if(l&&i&&(!a||a!=null&&a.isCurrent(i)))return f?s:null;const d=Zb(u,e.pageKey),h=!!(e.transition??u.route.meta.pageTransition??qb),p=h&&DX([e.transition,u.route.meta.pageTransition,qb,{onAfterLeave:()=>{r.callHook("page:transition:finish",u.Component)}}].filter(Boolean));return s=RX(Ak,h&&p,PX(e.keepalive??u.route.meta.keepalive??RG,Ho(I7,{suspensible:!0,onPending:()=>r.callHook("page:start",u.Component),onResolve:()=>{tu(()=>r.callHook("page:finish",u.Component).finally(c))}},{default:()=>Ho(TX,{key:d,vnode:u.Component,route:u.route,renderKey:d,trackRootNodes:h,vnodeRef:o})}))).default(),s}})}});function NX(e){return Array.isArray(e)?e:e?[e]:[]}function DX(e){const t=e.map(n=>({...n,onAfterLeave:NX(n.onAfterLeave)}));return uG(...t)}function zX(e,t,n){if(!e)return!1;const r=t.matched.findIndex(o=>{var i;return((i=o.components)==null?void 0:i.default)===(n==null?void 0:n.type)});return!r||r===-1?!1:t.matched.slice(0,r).some((o,i)=>{var a,s,c;return((a=o.components)==null?void 0:a.default)!==((c=(s=e.matched[i])==null?void 0:s.components)==null?void 0:c.default)})||n&&Zb({route:t,Component:n})!==Zb({route:e,Component:n})}const LX=6e4;function yN(e){return e}const BX=yN,{clearTimeout:FX,setTimeout:qX}=globalThis,HX=Math.random.bind(Math);function VX(e,t){const{post:n,on:r,eventNames:o=[],serialize:i=yN,deserialize:a=BX,resolver:s,timeout:c=LX}=t,u=new Map;let l;const f=new Proxy({},{get(d,h){if(h==="$functions")return e;const p=(...m)=>{n(i({m:h,a:m,t:"q"}))};if(o.includes(h))return p.asEvent=p,p;const v=async(...m)=>(await l,new Promise((g,y)=>{var x,k;const b=WX();let w;c>=0&&(w=(k=(x=qX(()=>{y(new Error(`[birpc] timeout on calling "${h}"`)),u.delete(b)},c)).unref)==null?void 0:k.call(x)),u.set(b,{resolve:g,reject:y,timeoutId:w}),n(i({m:h,a:m,i:b,t:"q"}))}));return v.asEvent=p,v}});return l=r(async(d,...h)=>{const p=a(d);if(p.t==="q"){const{m:v,a:m}=p;let g,y;const b=s?s(v,e[v]):e[v];if(!b)y=new Error(`[birpc] function "${v}" not found`);else try{g=await b.apply(f,m)}catch(w){y=w}p.i&&(y&&t.onError&&t.onError(y,v,m),n(i({t:"s",i:p.i,r:g,e:y}),...h))}else{const{i:v,r:m,e:g}=p,y=u.get(v);y&&(FX(y.timeoutId),g?y.reject(g):y.resolve(m)),u.delete(v)}}),f}const UX="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function WX(e=21){let t="",n=e;for(;n--;)t+=UX[HX()*64|0];return t}/*! (c) 2020 Andrea Giammarchi */const{parse:KX,stringify:JX}=JSON,{keys:GX}=Object,Oh=String,bN="string",I$={},sg="object",wN=(e,t)=>t,QX=e=>e instanceof Oh?Oh(e):e,YX=(e,t)=>typeof t===bN?new Oh(t):t,xN=(e,t,n,r)=>{const o=[];for(let i=GX(n),{length:a}=i,s=0;s<a;s++){const c=i[s],u=n[c];if(u instanceof Oh){const l=e[u];typeof l===sg&&!t.has(l)?(t.add(l),n[c]=I$,o.push({k:c,a:[e,t,l,r]})):n[c]=r.call(n,c,l)}else n[c]!==I$&&(n[c]=r.call(n,c,u))}for(let{length:i}=o,a=0;a<i;a++){const{k:s,a:c}=o[a];n[s]=r.call(n,s,xN.apply(null,c))}return n},N$=(e,t,n)=>{const r=Oh(t.push(n)-1);return e.set(n,r),r},XX=(e,t)=>{const n=KX(e,YX).map(QX),r=n[0],o=t||wN,i=typeof r===sg&&r?xN(n,new Set,r,o):r;return o.call({"":i},"",i)},ZX=(e,t,n)=>{const r=t&&typeof t===sg?(l,f)=>l===""||-1<t.indexOf(l)?f:void 0:t||wN,o=new Map,i=[],a=[];let s=+N$(o,i,r.call({"":e},"",e)),c=!s;for(;s<i.length;)c=!0,a[s]=JX(i[s++],u,n);return"["+a.join(",")+"]";function u(l,f){if(c)return c=!c,f;const d=r.call(this,l,f);switch(typeof d){case sg:if(d===null)return d;case bN:return o.get(d)||N$(o,i,d)}return d}},tZ=2e3;let kN=()=>{};const D$=Tn(!0),z$=Tn(),jN=Tn(null);function eZ(e){const t=VX(e,{post:n=>jN.value.send(n),on:n=>{kN=n},serialize:ZX,deserialize:XX});return{useServerConfig:async function(){return(await Nk("server-config",()=>t.getConfig())).data}}}async function _N(e){const t=new WebSocket(`ws://${e}/__nuxt_og_image__/entry`);return t.addEventListener("message",n=>kN(String(n.data))),t.addEventListener("error",n=>{z$.value=n}),t.addEventListener("close",()=>{console.log("[nuxt-og-image] WebSocket closed, reconnecting..."),setTimeout(async()=>{jN.value=await _N(e)},tZ)}),D$.value=!0,t.readyState!==WebSocket.OPEN&&await new Promise(n=>t.addEventListener("open",n)),console.log("[nuxt-og-image] WebSocket connected."),D$.value=!1,z$.value=null,t}const S0=Tn(Date.now()),L$=Tn(null),SN=window.location.host,Ga=Tn("/"),$N=Tn("/"),rv=Tn({}),Nd=Tn({}),wu=Tn(!1),q1=Tn({}),Dd=Gk(()=>{S0.value=Date.now()},200),nZ=Gk(()=>{S0.value=Date.now()},1e3),rZ={refresh(){wu.value=!1,Nd.value={},Dd()}};eZ(rZ);const bl=Tn(null),Qk=hr(()=>gI($N.value,`${window.location.protocol}//${SN}`)),u4t=hr(()=>`${Qk.value}${Ga.value==="/"?"":Ga.value}`);async function B$(){const{data:e}=await Nk(()=>$fetch("/api/og-image-options",{baseURL:Qk.value,query:{path:Ga.value}}),{watch:[Ga,S0]},"$XVR8o8RMBy");return e}async function l4t(){const{data:e}=await Nk(()=>$fetch("/api/og-image-vnode",{query:{path:Ga.value},baseURL:Qk.value}),{watch:[Ga,S0]},"$cHgKigQ0kS");return e}var H1,F$,q$,H$,V$,U$,W$,K$,J$,G$,Q$,Y$,X$,Z$,tC,eC,nC,rC,oC,iC,aC,sC,cC,uC,lC,fC,dC,hC,pC,vC,mC,gC,yC,bC,wC,xC,kC,jC,_C,SC,$C,CC,EC,OC,MC,AC,PC,TC,RC,IC,NC,DC,zC,LC,BC,FC,qC,HC,VC,UC,WC,KC,JC,GC,QC,YC,XC,ZC,t3,e3,n3,r3,o3,i3,a3,s3,c3,u3,l3,f3,d3,h3,p3,v3,m3,g3,y3,b3,w3,x3,k3,j3,_3,S3,$3,C3,E3,O3,M3,A3,P3,T3,R3,I3,N3,D3,z3,L3,B3,F3,q3,H3,V3,U3,W3,K3,J3,G3,Q3,Y3,X3,Z3,t4,e4,n4,r4,o4,i4,a4,s4,c4,u4,l4,f4,d4,h4,p4,v4,m4,g4,y4,b4,w4,x4,k4,j4,_4,S4,$4,C4,E4,O4,M4,A4,P4,T4,R4,I4,N4,D4,z4,L4,B4,F4,q4,H4,V4,U4,W4,K4,J4,G4,Q4,Y4,X4,Z4,t8,e8,n8,r8,o8,i8,a8,s8,c8,u8,l8,f8,d8,h8,p8,v8,m8,g8,y8,b8,w8,x8,k8,j8,_8,S8,$8,C8,E8,O8,M8,A8,P8,T8,R8,I8,N8,D8,z8,L8,B8,F8,q8,H8,V8,U8,W8,K8,J8,G8,Q8,Y8,X8,Z8,t5,e5,n5,r5,o5,i5,a5,s5,c5,u5,l5,f5,d5,h5,p5,v5,m5,g5,y5,b5,w5,x5,k5,j5,_5,S5,$5,C5,E5,O5,M5,A5,P5,T5,R5,I5,N5,D5,z5,L5,B5,F5,q5,H5,V5,U5,W5,K5,J5,G5,Q5,Y5,X5,oZ=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],iZ=["mainAxis","crossAxis","limiter"];function st(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function kn(){return kn=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(i,a){for(;!Object.prototype.hasOwnProperty.call(i,a)&&(i=ln(i))!==null;);return i}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},kn.apply(this,arguments)}function CN(e,t){if(e==null)return{};var n,r,o=function(a,s){if(a==null)return{};var c,u,l={},f=Object.keys(a);for(u=0;u<f.length;u++)c=f[u],s.indexOf(c)>=0||(l[c]=a[c]);return l}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ht(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=$0(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
5
+ */const Sl=typeof window<"u";function HG(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Qn=Object.assign;function N1(e,t){const n={};for(const r in t){const o=t[r];n[r]=$a(o)?o.map(e):e(o)}return n}const Yd=()=>{},$a=Array.isArray,VG=/\/$/,UG=e=>e.replace(VG,"");function D1(e,t,n="/"){let r,o={},i="",a="";const s=t.indexOf("#");let c=t.indexOf("?");return s<c&&s>=0&&(c=-1),c>-1&&(r=t.slice(0,c),i=t.slice(c+1,s>-1?s:t.length),o=e(i)),s>-1&&(r=r||t.slice(0,s),a=t.slice(s,t.length)),r=GG(r??t,n),{fullPath:r+(i&&"?")+i+a,path:r,query:o,hash:a}}function WG(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function ZS(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function KG(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&xf(t.matched[r],n.matched[o])&&LI(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function xf(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function LI(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!JG(e[n],t[n]))return!1;return!0}function JG(e,t){return $a(e)?t$(e,t):$a(t)?t$(t,e):e===t}function t$(e,t){return $a(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function GG(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let i=n.length-1,a,s;for(a=0;a<r.length;a++)if(s=r[a],s!==".")if(s==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(a-(a===r.length?1:0)).join("/")}var $h;(function(e){e.pop="pop",e.push="push"})($h||($h={}));var Xd;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Xd||(Xd={}));function QG(e){if(!e)if(Sl){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),UG(e)}const YG=/^[^#]+#/;function XG(e,t){return e.replace(YG,"#")+t}function ZG(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const k0=()=>({left:window.pageXOffset,top:window.pageYOffset});function tQ(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=ZG(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function e$(e,t){return(history.state?history.state.position-t:-1)+e}const Hb=new Map;function eQ(e,t){Hb.set(e,t)}function nQ(e){const t=Hb.get(e);return Hb.delete(e),t}let rQ=()=>location.protocol+"//"+location.host;function BI(e,t){const{pathname:n,search:r,hash:o}=t,i=e.indexOf("#");if(i>-1){let s=o.includes(e.slice(i))?e.slice(i).length:1,c=o.slice(s);return c[0]!=="/"&&(c="/"+c),ZS(c,"")}return ZS(n,e)+r+o}function oQ(e,t,n,r){let o=[],i=[],a=null;const s=({state:d})=>{const h=BI(e,location),p=n.value,v=t.value;let m=0;if(d){if(n.value=h,t.value=d,a&&a===p){a=null;return}m=v?d.position-v.position:0}else r(h);o.forEach(g=>{g(n.value,p,{delta:m,type:$h.pop,direction:m?m>0?Xd.forward:Xd.back:Xd.unknown})})};function c(){a=n.value}function u(d){o.push(d);const h=()=>{const p=o.indexOf(d);p>-1&&o.splice(p,1)};return i.push(h),h}function l(){const{history:d}=window;d.state&&d.replaceState(Qn({},d.state,{scroll:k0()}),"")}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",l)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",l,{passive:!0}),{pauseListeners:c,listen:u,destroy:f}}function n$(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?k0():null}}function iQ(e){const{history:t,location:n}=window,r={value:BI(e,n)},o={value:t.state};o.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(c,u,l){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+c:rQ()+e+c;try{t[l?"replaceState":"pushState"](u,"",d),o.value=u}catch(h){console.error(h),n[l?"replace":"assign"](d)}}function a(c,u){const l=Qn({},t.state,n$(o.value.back,c,o.value.forward,!0),u,{position:o.value.position});i(c,l,!0),r.value=c}function s(c,u){const l=Qn({},o.value,t.state,{forward:c,scroll:k0()});i(l.current,l,!0);const f=Qn({},n$(r.value,c,null),{position:l.position+1},u);i(c,f,!1),r.value=c}return{location:r,state:o,push:s,replace:a}}function FI(e){e=QG(e);const t=iQ(e),n=oQ(e,t.state,t.location,t.replace);function r(i,a=!0){a||n.pauseListeners(),history.go(i)}const o=Qn({location:"",base:e,go:r,createHref:XG.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function aQ(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),FI(e)}function sQ(e){return typeof e=="string"||e&&typeof e=="object"}function qI(e){return typeof e=="string"||typeof e=="symbol"}const Ha={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},HI=Symbol("");var r$;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(r$||(r$={}));function kf(e,t){return Qn(new Error,{type:e,[HI]:!0},t)}function xs(e,t){return e instanceof Error&&HI in e&&(t==null||!!(e.type&t))}const o$="[^/]+?",cQ={sensitive:!1,strict:!1,start:!0,end:!0},uQ=/[.+*?^${}()[\]/\\]/g;function lQ(e,t){const n=Qn({},cQ,t),r=[];let o=n.start?"^":"";const i=[];for(const u of e){const l=u.length?[]:[90];n.strict&&!u.length&&(o+="/");for(let f=0;f<u.length;f++){const d=u[f];let h=40+(n.sensitive?.25:0);if(d.type===0)f||(o+="/"),o+=d.value.replace(uQ,"\\$&"),h+=40;else if(d.type===1){const{value:p,repeatable:v,optional:m,regexp:g}=d;i.push({name:p,repeatable:v,optional:m});const y=g||o$;if(y!==o$){h+=10;try{new RegExp(`(${y})`)}catch(w){throw new Error(`Invalid custom RegExp for param "${p}" (${y}): `+w.message)}}let b=v?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;f||(b=m&&u.length<2?`(?:/${b})`:"/"+b),m&&(b+="?"),o+=b,h+=20,m&&(h+=-8),v&&(h+=-20),y===".*"&&(h+=-50)}l.push(h)}r.push(l)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&(o+="(?:/|$)");const a=new RegExp(o,n.sensitive?"":"i");function s(u){const l=u.match(a),f={};if(!l)return null;for(let d=1;d<l.length;d++){const h=l[d]||"",p=i[d-1];f[p.name]=h&&p.repeatable?h.split("/"):h}return f}function c(u){let l="",f=!1;for(const d of e){(!f||!l.endsWith("/"))&&(l+="/"),f=!1;for(const h of d)if(h.type===0)l+=h.value;else if(h.type===1){const{value:p,repeatable:v,optional:m}=h,g=p in u?u[p]:"";if($a(g)&&!v)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const y=$a(g)?g.join("/"):g;if(!y)if(m)d.length<2&&(l.endsWith("/")?l=l.slice(0,-1):f=!0);else throw new Error(`Missing required param "${p}"`);l+=y}}return l||"/"}return{re:a,score:r,keys:i,parse:s,stringify:c}}function fQ(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function dQ(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const i=fQ(r[n],o[n]);if(i)return i;n++}if(Math.abs(o.length-r.length)===1){if(i$(r))return 1;if(i$(o))return-1}return o.length-r.length}function i$(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const hQ={type:0,value:""},pQ=/[a-zA-Z0-9_]/;function vQ(e){if(!e)return[[]];if(e==="/")return[[hQ]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}let n=0,r=n;const o=[];let i;function a(){i&&o.push(i),i=[]}let s=0,c,u="",l="";function f(){u&&(n===0?i.push({type:0,value:u}):n===1||n===2||n===3?(i.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:l,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=c}for(;s<e.length;){if(c=e[s++],c==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:c==="/"?(u&&f(),a()):c===":"?(f(),n=1):d();break;case 4:d(),n=r;break;case 1:c==="("?n=2:pQ.test(c)?d():(f(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&s--);break;case 2:c===")"?l[l.length-1]=="\\"?l=l.slice(0,-1)+c:n=3:l+=c;break;case 3:f(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&s--,l="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),f(),a(),o}function mQ(e,t,n){const r=lQ(vQ(e.path),n),o=Qn(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function gQ(e,t){const n=[],r=new Map;t=c$({strict:!1,end:!0,sensitive:!1},t);function o(l){return r.get(l)}function i(l,f,d){const h=!d,p=yQ(l);p.aliasOf=d&&d.record;const v=c$(t,l),m=[p];if("alias"in l){const b=typeof l.alias=="string"?[l.alias]:l.alias;for(const w of b)m.push(Qn({},p,{components:d?d.record.components:p.components,path:w,aliasOf:d?d.record:p}))}let g,y;for(const b of m){const{path:w}=b;if(f&&w[0]!=="/"){const x=f.record.path,k=x[x.length-1]==="/"?"":"/";b.path=f.record.path+(w&&k+w)}if(g=mQ(b,f,v),d?d.alias.push(g):(y=y||g,y!==g&&y.alias.push(g),h&&l.name&&!s$(g)&&a(l.name)),p.children){const x=p.children;for(let k=0;k<x.length;k++)i(x[k],g,d&&d.children[k])}d=d||g,(g.record.components&&Object.keys(g.record.components).length||g.record.name||g.record.redirect)&&c(g)}return y?()=>{a(y)}:Yd}function a(l){if(qI(l)){const f=r.get(l);f&&(r.delete(l),n.splice(n.indexOf(f),1),f.children.forEach(a),f.alias.forEach(a))}else{const f=n.indexOf(l);f>-1&&(n.splice(f,1),l.record.name&&r.delete(l.record.name),l.children.forEach(a),l.alias.forEach(a))}}function s(){return n}function c(l){let f=0;for(;f<n.length&&dQ(l,n[f])>=0&&(l.record.path!==n[f].record.path||!VI(l,n[f]));)f++;n.splice(f,0,l),l.record.name&&!s$(l)&&r.set(l.record.name,l)}function u(l,f){let d,h={},p,v;if("name"in l&&l.name){if(d=r.get(l.name),!d)throw kf(1,{location:l});v=d.record.name,h=Qn(a$(f.params,d.keys.filter(y=>!y.optional).map(y=>y.name)),l.params&&a$(l.params,d.keys.map(y=>y.name))),p=d.stringify(h)}else if("path"in l)p=l.path,d=n.find(y=>y.re.test(p)),d&&(h=d.parse(p),v=d.record.name);else{if(d=f.name?r.get(f.name):n.find(y=>y.re.test(f.path)),!d)throw kf(1,{location:l,currentLocation:f});v=d.record.name,h=Qn({},f.params,l.params),p=d.stringify(h)}const m=[];let g=d;for(;g;)m.unshift(g.record),g=g.parent;return{name:v,path:p,params:h,matched:m,meta:wQ(m)}}return e.forEach(l=>i(l)),{addRoute:i,resolve:u,removeRoute:a,getRoutes:s,getRecordMatcher:o}}function a$(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function yQ(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:bQ(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function bQ(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function s$(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function wQ(e){return e.reduce((t,n)=>Qn(t,n.meta),{})}function c$(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function VI(e,t){return t.children.some(n=>n===e||VI(e,n))}const UI=/#/g,xQ=/&/g,kQ=/\//g,jQ=/=/g,_Q=/\?/g,WI=/\+/g,SQ=/%5B/g,$Q=/%5D/g,KI=/%5E/g,CQ=/%60/g,JI=/%7B/g,EQ=/%7C/g,GI=/%7D/g,OQ=/%20/g;function zk(e){return encodeURI(""+e).replace(EQ,"|").replace(SQ,"[").replace($Q,"]")}function MQ(e){return zk(e).replace(JI,"{").replace(GI,"}").replace(KI,"^")}function Vb(e){return zk(e).replace(WI,"%2B").replace(OQ,"+").replace(UI,"%23").replace(xQ,"%26").replace(CQ,"`").replace(JI,"{").replace(GI,"}").replace(KI,"^")}function AQ(e){return Vb(e).replace(jQ,"%3D")}function PQ(e){return zk(e).replace(UI,"%23").replace(_Q,"%3F")}function TQ(e){return e==null?"":PQ(e).replace(kQ,"%2F")}function ig(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function RQ(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<r.length;++o){const i=r[o].replace(WI," "),a=i.indexOf("="),s=ig(a<0?i:i.slice(0,a)),c=a<0?null:ig(i.slice(a+1));if(s in t){let u=t[s];$a(u)||(u=t[s]=[u]),u.push(c)}else t[s]=c}return t}function u$(e){let t="";for(let n in e){const r=e[n];if(n=AQ(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}($a(r)?r.map(i=>i&&Vb(i)):[r&&Vb(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function IQ(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=$a(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const NQ=Symbol(""),l$=Symbol(""),Lk=Symbol(""),QI=Symbol(""),Ub=Symbol("");function dd(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function pc(e,t,n,r,o){const i=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((a,s)=>{const c=f=>{f===!1?s(kf(4,{from:n,to:t})):f instanceof Error?s(f):sQ(f)?s(kf(2,{from:t,to:f})):(i&&r.enterCallbacks[o]===i&&typeof f=="function"&&i.push(f),a())},u=e.call(r&&r.instances[o],t,n,c);let l=Promise.resolve(u);e.length<3&&(l=l.then(c)),l.catch(f=>s(f))})}function z1(e,t,n,r){const o=[];for(const i of e)for(const a in i.components){let s=i.components[a];if(!(t!=="beforeRouteEnter"&&!i.instances[a]))if(DQ(s)){const u=(s.__vccOpts||s)[t];u&&o.push(pc(u,n,r,i,a))}else{let c=s();o.push(()=>c.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${a}" at "${i.path}"`));const l=HG(u)?u.default:u;i.components[a]=l;const d=(l.__vccOpts||l)[t];return d&&pc(d,n,r,i,a)()}))}}return o}function DQ(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function f$(e){const t=gi(Lk),n=gi(QI),r=hr(()=>t.resolve(Re(e.to))),o=hr(()=>{const{matched:c}=r.value,{length:u}=c,l=c[u-1],f=n.matched;if(!l||!f.length)return-1;const d=f.findIndex(xf.bind(null,l));if(d>-1)return d;const h=d$(c[u-2]);return u>1&&d$(l)===h&&f[f.length-1].path!==h?f.findIndex(xf.bind(null,c[u-2])):d}),i=hr(()=>o.value>-1&&FQ(n.params,r.value.params)),a=hr(()=>o.value>-1&&o.value===n.matched.length-1&&LI(n.params,r.value.params));function s(c={}){return BQ(c)?t[Re(e.replace)?"replace":"push"](Re(e.to)).catch(Yd):Promise.resolve()}return{route:r,href:hr(()=>r.value.href),isActive:i,isExactActive:a,navigate:s}}const zQ=Jo({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:f$,setup(e,{slots:t}){const n=as(f$(e)),{options:r}=gi(Lk),o=hr(()=>({[h$(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[h$(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:Ho("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}}),LQ=zQ;function BQ(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function FQ(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!$a(o)||o.length!==r.length||r.some((i,a)=>i!==o[a]))return!1}return!0}function d$(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const h$=(e,t,n)=>e??t??n,qQ=Jo({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=gi(Ub),o=hr(()=>e.route||r.value),i=gi(l$,0),a=hr(()=>{let u=Re(i);const{matched:l}=o.value;let f;for(;(f=l[u])&&!f.components;)u++;return u}),s=hr(()=>o.value.matched[a.value]);Ql(l$,hr(()=>a.value+1)),Ql(NQ,s),Ql(Ub,o);const c=Tn();return so(()=>[c.value,s.value,e.name],([u,l,f],[d,h,p])=>{l&&(l.instances[f]=u,h&&h!==l&&u&&u===d&&(l.leaveGuards.size||(l.leaveGuards=h.leaveGuards),l.updateGuards.size||(l.updateGuards=h.updateGuards))),u&&l&&(!h||!xf(l,h)||!d)&&(l.enterCallbacks[f]||[]).forEach(v=>v(u))},{flush:"post"}),()=>{const u=o.value,l=e.name,f=s.value,d=f&&f.components[l];if(!d)return p$(n.default,{Component:d,route:u});const h=f.props[l],p=h?h===!0?u.params:typeof h=="function"?h(u):h:null,m=Ho(d,Qn({},p,t,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(f.instances[l]=null)},ref:c}));return p$(n.default,{Component:m,route:u})||m}}});function p$(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const YI=qQ;function HQ(e){const t=gQ(e.routes,e),n=e.parseQuery||RQ,r=e.stringifyQuery||u$,o=e.history,i=dd(),a=dd(),s=dd(),c=pf(Ha);let u=Ha;Sl&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const l=N1.bind(null,tt=>""+tt),f=N1.bind(null,TQ),d=N1.bind(null,ig);function h(tt,yt){let bt,jt;return qI(tt)?(bt=t.getRecordMatcher(tt),jt=yt):jt=tt,t.addRoute(jt,bt)}function p(tt){const yt=t.getRecordMatcher(tt);yt&&t.removeRoute(yt)}function v(){return t.getRoutes().map(tt=>tt.record)}function m(tt){return!!t.getRecordMatcher(tt)}function g(tt,yt){if(yt=Qn({},yt||c.value),typeof tt=="string"){const it=D1(n,tt,yt.path),X=t.resolve({path:it.path},yt),_t=o.createHref(it.fullPath);return Qn(it,X,{params:d(X.params),hash:ig(it.hash),redirectedFrom:void 0,href:_t})}let bt;if("path"in tt)bt=Qn({},tt,{path:D1(n,tt.path,yt.path).path});else{const it=Qn({},tt.params);for(const X in it)it[X]==null&&delete it[X];bt=Qn({},tt,{params:f(it)}),yt.params=f(yt.params)}const jt=t.resolve(bt,yt),gt=tt.hash||"";jt.params=l(d(jt.params));const Y=WG(r,Qn({},tt,{hash:MQ(gt),path:jt.path})),J=o.createHref(Y);return Qn({fullPath:Y,hash:gt,query:r===u$?IQ(tt.query):tt.query||{}},jt,{redirectedFrom:void 0,href:J})}function y(tt){return typeof tt=="string"?D1(n,tt,c.value.path):Qn({},tt)}function b(tt,yt){if(u!==tt)return kf(8,{from:yt,to:tt})}function w(tt){return j(tt)}function x(tt){return w(Qn(y(tt),{replace:!0}))}function k(tt){const yt=tt.matched[tt.matched.length-1];if(yt&&yt.redirect){const{redirect:bt}=yt;let jt=typeof bt=="function"?bt(tt):bt;return typeof jt=="string"&&(jt=jt.includes("?")||jt.includes("#")?jt=y(jt):{path:jt},jt.params={}),Qn({query:tt.query,hash:tt.hash,params:"path"in jt?{}:tt.params},jt)}}function j(tt,yt){const bt=u=g(tt),jt=c.value,gt=tt.state,Y=tt.force,J=tt.replace===!0,it=k(bt);if(it)return j(Qn(y(it),{state:typeof it=="object"?Qn({},gt,it.state):gt,force:Y,replace:J}),yt||bt);const X=bt;X.redirectedFrom=yt;let _t;return!Y&&KG(r,jt,bt)&&(_t=kf(16,{to:X,from:jt}),P(jt,jt,!0,!1)),(_t?Promise.resolve(_t):C(X,jt)).catch(z=>xs(z)?xs(z,2)?z:M(z):A(z,X,jt)).then(z=>{if(z){if(xs(z,2))return j(Qn({replace:J},y(z.to),{state:typeof z.to=="object"?Qn({},gt,z.to.state):gt,force:Y}),yt||X)}else z=B(X,jt,!0,J,gt);return $(X,jt,z),z})}function S(tt,yt){const bt=b(tt,yt);return bt?Promise.reject(bt):Promise.resolve()}function N(tt){const yt=H.values().next().value;return yt&&typeof yt.runWithContext=="function"?yt.runWithContext(tt):tt()}function C(tt,yt){let bt;const[jt,gt,Y]=VQ(tt,yt);bt=z1(jt.reverse(),"beforeRouteLeave",tt,yt);for(const it of jt)it.leaveGuards.forEach(X=>{bt.push(pc(X,tt,yt))});const J=S.bind(null,tt,yt);return bt.push(J),ft(bt).then(()=>{bt=[];for(const it of i.list())bt.push(pc(it,tt,yt));return bt.push(J),ft(bt)}).then(()=>{bt=z1(gt,"beforeRouteUpdate",tt,yt);for(const it of gt)it.updateGuards.forEach(X=>{bt.push(pc(X,tt,yt))});return bt.push(J),ft(bt)}).then(()=>{bt=[];for(const it of Y)if(it.beforeEnter)if($a(it.beforeEnter))for(const X of it.beforeEnter)bt.push(pc(X,tt,yt));else bt.push(pc(it.beforeEnter,tt,yt));return bt.push(J),ft(bt)}).then(()=>(tt.matched.forEach(it=>it.enterCallbacks={}),bt=z1(Y,"beforeRouteEnter",tt,yt),bt.push(J),ft(bt))).then(()=>{bt=[];for(const it of a.list())bt.push(pc(it,tt,yt));return bt.push(J),ft(bt)}).catch(it=>xs(it,8)?it:Promise.reject(it))}function $(tt,yt,bt){s.list().forEach(jt=>N(()=>jt(tt,yt,bt)))}function B(tt,yt,bt,jt,gt){const Y=b(tt,yt);if(Y)return Y;const J=yt===Ha,it=Sl?history.state:{};bt&&(jt||J?o.replace(tt.fullPath,Qn({scroll:J&&it&&it.scroll},gt)):o.push(tt.fullPath,gt)),c.value=tt,P(tt,yt,bt,J),M()}let K;function R(){K||(K=o.listen((tt,yt,bt)=>{if(!I.listening)return;const jt=g(tt),gt=k(jt);if(gt){j(Qn(gt,{replace:!0}),jt).catch(Yd);return}u=jt;const Y=c.value;Sl&&eQ(e$(Y.fullPath,bt.delta),k0()),C(jt,Y).catch(J=>xs(J,12)?J:xs(J,2)?(j(J.to,jt).then(it=>{xs(it,20)&&!bt.delta&&bt.type===$h.pop&&o.go(-1,!1)}).catch(Yd),Promise.reject()):(bt.delta&&o.go(-bt.delta,!1),A(J,jt,Y))).then(J=>{J=J||B(jt,Y,!1),J&&(bt.delta&&!xs(J,8)?o.go(-bt.delta,!1):bt.type===$h.pop&&xs(J,20)&&o.go(-1,!1)),$(jt,Y,J)}).catch(Yd)}))}let q=dd(),F=dd(),O;function A(tt,yt,bt){M(tt);const jt=F.list();return jt.length?jt.forEach(gt=>gt(tt,yt,bt)):console.error(tt),Promise.reject(tt)}function _(){return O&&c.value!==Ha?Promise.resolve():new Promise((tt,yt)=>{q.add([tt,yt])})}function M(tt){return O||(O=!tt,R(),q.list().forEach(([yt,bt])=>tt?bt(tt):yt()),q.reset()),tt}function P(tt,yt,bt,jt){const{scrollBehavior:gt}=e;if(!Sl||!gt)return Promise.resolve();const Y=!bt&&nQ(e$(tt.fullPath,0))||(jt||!bt)&&history.state&&history.state.scroll||null;return tu().then(()=>gt(tt,yt,Y)).then(J=>J&&tQ(J)).catch(J=>A(J,tt,yt))}const D=tt=>o.go(tt);let T;const H=new Set,I={currentRoute:c,listening:!0,addRoute:h,removeRoute:p,hasRoute:m,getRoutes:v,resolve:g,options:e,push:w,replace:x,go:D,back:()=>D(-1),forward:()=>D(1),beforeEach:i.add,beforeResolve:a.add,afterEach:s.add,onError:F.add,isReady:_,install(tt){const yt=this;tt.component("RouterLink",LQ),tt.component("RouterView",YI),tt.config.globalProperties.$router=yt,Object.defineProperty(tt.config.globalProperties,"$route",{enumerable:!0,get:()=>Re(c)}),Sl&&!T&&c.value===Ha&&(T=!0,w(o.location).catch(gt=>{}));const bt={};for(const gt in Ha)Object.defineProperty(bt,gt,{get:()=>c.value[gt],enumerable:!0});tt.provide(Lk,yt),tt.provide(QI,hp(bt)),tt.provide(Ub,c);const jt=tt.unmount;H.add(tt),tt.unmount=function(){H.delete(tt),H.size<1&&(u=Ha,K&&K(),K=null,c.value=Ha,T=!1,O=!1),jt()}}};function ft(tt){return tt.reduce((yt,bt)=>yt.then(()=>N(bt)),Promise.resolve())}return I}function VQ(e,t){const n=[],r=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;a<i;a++){const s=t.matched[a];s&&(e.matched.find(u=>xf(u,s))?r.push(s):n.push(s));const c=e.matched[a];c&&(t.matched.find(u=>xf(u,c))||o.push(c))}return[n,r,o]}const v$=[{name:"index",path:"/",meta:{},alias:[],redirect:void 0,component:()=>Os(()=>import("./index.6cf0a9d1.js"),["./index.6cf0a9d1.js","./index.ffbea0a9.css"],import.meta.url).then(e=>e.default||e)},{name:"options",path:"/options",meta:{},alias:[],redirect:void 0,component:()=>Os(()=>import("./options.0d40ef12.js"),["./options.0d40ef12.js","./shiki.e40942c4.js"],import.meta.url).then(e=>e.default||e)},{name:"png",path:"/png",meta:{},alias:[],redirect:void 0,component:()=>Os(()=>import("./png.a570accd.js"),["./png.a570accd.js","./ImageLoader.5345705a.js","./ImageLoader.7571516f.css"],import.meta.url).then(e=>e.default||e)},{name:"svg",path:"/svg",meta:{},alias:[],redirect:void 0,component:()=>Os(()=>import("./svg.7cac29b9.js"),["./svg.7cac29b9.js","./ImageLoader.5345705a.js","./ImageLoader.7571516f.css"],import.meta.url).then(e=>e.default||e)},{name:"vnodes",path:"/vnodes",meta:{},alias:[],redirect:void 0,component:()=>Os(()=>import("./vnodes.833860a6.js"),["./vnodes.833860a6.js","./shiki.e40942c4.js"],import.meta.url).then(e=>e.default||e)}],UQ={scrollBehavior(e,t,n){var u;const r=ar(),o=((u=vs().options)==null?void 0:u.scrollBehaviorType)??"auto";let i=n||void 0;const a=typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop;if(!i&&t&&e&&a!==!1&&WQ(t,e)&&(i={left:0,top:0}),e.path===t.path){if(t.hash&&!e.hash)return{left:0,top:0};if(e.hash)return{el:e.hash,top:m$(e.hash),behavior:o}}const s=l=>!!(l.meta.pageTransition??qb),c=s(t)&&s(e)?"page:transition:finish":"page:finish";return new Promise(l=>{r.hooks.hookOnce(c,async()=>{await tu(),e.hash&&(i={el:e.hash,top:m$(e.hash),behavior:o}),l(i)})})}};function m$(e){try{const t=document.querySelector(e);if(t)return parseFloat(getComputedStyle(t).scrollMarginTop)}catch{}return 0}function WQ(e,t){return t.path!==e.path||JSON.stringify(e.params)!==JSON.stringify(t.params)}const KQ={},Qo={...KQ,...UQ},JQ=async e=>{var c;let t,n;if(!((c=e.meta)!=null&&c.validate))return;const r=ar(),o=vs();if(([t,n]=ng(()=>Promise.resolve(e.meta.validate(e))),t=await t,n(),t)===!0)return;const a=x0({statusCode:404,statusMessage:`Page Not Found: ${e.fullPath}`}),s=o.beforeResolve(u=>{if(s(),u===e){const l=o.afterEach(async()=>{l(),await r.runWithContext(()=>Nl(a)),window.history.pushState({},"",e.fullPath)});return!1}})},GQ=[JQ],Zd={};function QQ(e,t,n){const{pathname:r,search:o,hash:i}=t,a=e.indexOf("#");if(a>-1){const u=i.includes(e.slice(a))?e.slice(a).length:1;let l=i.slice(u);return l[0]!=="/"&&(l="/"+l),DS(l,"")}const s=DS(r,e),c=!n||DK(s,n,{trailingSlash:!0})?s:n;return c+(c.includes("?")?"":o)+i}const YQ=Ys({name:"nuxt:router",enforce:"pre",async setup(e){var v,m;let t,n,r=Ik().app.baseURL;Qo.hashMode&&!r.includes("#")&&(r+="#");const o=((v=Qo.history)==null?void 0:v.call(Qo,r))??(Qo.hashMode?aQ(r):FI(r)),i=((m=Qo.routes)==null?void 0:m.call(Qo,v$))??v$;let a;const s=QQ(r,window.location,e.payload.path),c=HQ({...Qo,scrollBehavior:(g,y,b)=>{var w;if(y===Ha){a=b;return}return c.options.scrollBehavior=Qo.scrollBehavior,(w=Qo.scrollBehavior)==null?void 0:w.call(Qo,g,Ha,a||b)},history:o,routes:i});e.vueApp.use(c);const u=pf(c.currentRoute.value);c.afterEach((g,y)=>{u.value=y}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>u.value});const l=pf(c.resolve(s)),f=()=>{l.value=c.currentRoute.value};e.hook("page:finish",f),c.afterEach((g,y)=>{var b,w,x,k;((w=(b=g.matched[0])==null?void 0:b.components)==null?void 0:w.default)===((k=(x=y.matched[0])==null?void 0:x.components)==null?void 0:k.default)&&f()});const d={};for(const g in l.value)Object.defineProperty(d,g,{get:()=>l.value[g]});e._route=hp(d),e._middleware=e._middleware||{global:[],named:{}};const h=w0();try{[t,n]=ng(()=>c.isReady()),await t,n()}catch(g){[t,n]=ng(()=>e.runWithContext(()=>Nl(g))),await t,n()}const p=e.payload.state._layout;return c.beforeEach(async(g,y)=>{var b;g.meta=as(g.meta),e.isHydrating&&p&&!Wu(g.meta.layout)&&(g.meta.layout=p),e._processingMiddleware=!0;{const w=new Set([...GQ,...e._middleware.global]);for(const x of g.matched){const k=x.meta.middleware;if(k)if(Array.isArray(k))for(const j of k)w.add(j);else w.add(k)}for(const x of w){const k=typeof x=="string"?e._middleware.named[x]||await((b=Zd[x])==null?void 0:b.call(Zd).then(S=>S.default||S)):x;if(!k)throw new Error(`Unknown route middleware: '${x}'.`);const j=await e.runWithContext(()=>k(g,y));if(!e.payload.serverRendered&&e.isHydrating&&(j===!1||j instanceof Error)){const S=j||Lb({statusCode:404,statusMessage:`Page Not Found: ${s}`});return await e.runWithContext(()=>Nl(S)),!1}if(j!==!0&&(j||j===!1))return j}}}),c.onError(()=>{delete e._processingMiddleware}),c.afterEach(async(g,y,b)=>{delete e._processingMiddleware,!e.isHydrating&&h.value&&await e.runWithContext(bG),g.matched.length===0&&await e.runWithContext(()=>Nl(Lb({statusCode:404,fatal:!1,statusMessage:`Page not found: ${g.fullPath}`})))}),e.hooks.hookOnce("app:created",async()=>{try{await c.replace({...c.resolve(s),name:void 0,force:!0}),c.options.scrollBehavior=Qo.scrollBehavior}catch(g){await e.runWithContext(()=>Nl(g))}}),{provide:{router:c}}}}),XQ=Ys({name:"nuxt:payload",setup(e){vs().beforeResolve(async(t,n)=>{if(t.path===n.path)return;const r=await QS(t.path);r&&Object.assign(e.static.data,r.data)}),RI(()=>{e.hooks.hook("link:prefetch",async t=>{gp(t).protocol||await QS(t)})})}}),ZQ=Jm(()=>Os(()=>Promise.resolve().then(()=>jX),void 0,import.meta.url).then(e=>e.default)),tY=Jm(()=>Os(()=>import("./IconCSS.27fa9893.js"),["./IconCSS.27fa9893.js","./IconCSS.28ef6808.css"],import.meta.url).then(e=>e.default)),eY=[["Icon",ZQ],["IconCSS",tY]],nY=Ys({name:"nuxt:global-components",setup(e){for(const[t,n]of eY)e.vueApp.component(t,n),e.vueApp.component("Lazy"+t,n)}}),ev={},rY=Ys({name:"nuxt:prefetch",setup(e){const t=vs();e.hooks.hook("app:mounted",()=>{t.beforeEach(async n=>{var o;const r=(o=n==null?void 0:n.meta)==null?void 0:o.layout;r&&typeof ev[r]=="function"&&await ev[r]()})}),e.hooks.hook("link:prefetch",n=>{var a,s,c,u;if(Uf(n))return;const r=t.resolve(n);if(!r)return;const o=(a=r==null?void 0:r.meta)==null?void 0:a.layout;let i=Array.isArray((s=r==null?void 0:r.meta)==null?void 0:s.middleware)?(c=r==null?void 0:r.meta)==null?void 0:c.middleware:[(u=r==null?void 0:r.meta)==null?void 0:u.middleware];i=i.filter(l=>typeof l=="string");for(const l of i)typeof Zd[l]=="function"&&Zd[l]();o&&typeof ev[o]=="function"&&ev[o]()})}}),oY="__NUXT_COLOR_MODE__",iY="ColorScheme",aY="nuxt-color-mode",ks=window[oY],sY=Ys(e=>{const t=Dk("color-mode",()=>as({preference:ks.preference,value:ks.value,unknown:!1,forced:!1})).value;vs().afterEach(o=>{const i=o.meta.colorMode;i&&i!=="system"?(t.value=i,t.forced=!0):(i==="system"&&console.warn("You cannot force the colorMode to system at the page level."),t.forced=!1,t.value=t.preference==="system"?ks.getColorScheme():t.preference)});let n;function r(){n||!window.matchMedia||(n=window.matchMedia("(prefers-color-scheme: dark)"),n.addEventListener("change",()=>{!t.forced&&t.preference==="system"&&(t.value=ks.getColorScheme())}))}so(()=>t.preference,o=>{var i;t.forced||(o==="system"?(t.value=ks.getColorScheme(),r()):t.value=o,(i=window.localStorage)==null||i.setItem(aY,o))},{immediate:!0}),so(()=>t.value,(o,i)=>{ks.removeColorScheme(i),ks.addColorScheme(o)}),t.preference==="system"&&r(),e.hook("app:mounted",()=>{t.unknown&&(t.preference=ks.preference,t.value=ks.value,t.unknown=!1)}),e.provide("colorMode",t)});const cY=Ys(()=>{}),uY=Ys({name:"nuxt:chunk-reload",setup(e){const t=vs(),n=Ik(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:i})=>{r.add(i)});function o(i){const s="href"in i&&i.href.startsWith("#")?n.app.baseURL+i.href:mp(n.app.baseURL,i.fullPath);SG({path:s,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(o)}),t.onError((i,a)=>{r.has(i)&&o(a)})}}),lY=[BG,qG,YQ,XQ,nY,rY,sY,cY,uY],Bk=Jo({__name:"NIcon",props:{icon:{}},setup(e){return(t,n)=>(Vn(),li("div",{class:Gr(["n-icon",t.icon])},null,2))}}),fY=Jo({__name:"NButton",props:{to:{},icon:{}},setup(e){return(t,n)=>{const r=Bk;return Vn(),xo(_k(t.to?Re(NI):"button"),Ok({to:t.to},t.$attrs,{class:"n-button n-button-base active:n-button-active focus-visible:n-focus-base n-transition hover:n-button-hover n-disabled:n-disabled"}),{default:oo(()=>[Ku(t.$slots,"icon",{},()=>[t.icon?(Vn(),xo(r,{key:0,icon:t.icon,class:"n-button-icon"},null,8,["icon"])):qa("",!0)]),Ku(t.$slots,"default")]),_:3},16,["to"])}}}),dY=Jo({name:"ClientOnly",inheritAttrs:!1,props:["fallback","placeholder","placeholderTag","fallbackTag"],setup(e,{slots:t,attrs:n}){const r=Tn(!1);return cl(()=>{r.value=!0}),o=>{var c;if(r.value)return(c=t.default)==null?void 0:c.call(t);const i=t.fallback||t.placeholder;if(i)return i();const a=o.fallback||o.placeholder||"",s=o.fallbackTag||o.placeholderTag||"span";return li(s,n,a)}}}),XI=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},hY={name:iY,props:{placeholder:String,tag:{type:String,default:"span"}}};function pY(e,t,n,r,o,i){const a=dY;return Vn(),xo(a,{placeholder:n.placeholder,"placeholder-tag":n.tag},{default:oo(()=>[Ku(e.$slots,"default")]),_:3},8,["placeholder","placeholder-tag"])}const vY=XI(hY,[["render",pY]]),ZI=()=>Dk("color-mode").value,mY=Jo({__name:"NDarkToggle",setup(e){const t=ZI(),n=hr({get(){return t.value==="dark"},set(){t.preference=n.value?"light":"dark"}}),r=typeof document<"u"&&document.startViewTransition&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches;function o(a){if(!r||!a){n.value=!n.value;return}const s=a.clientX,c=a.clientY,u=Math.hypot(Math.max(s,innerWidth-s),Math.max(c,innerHeight-c));document.startViewTransition(async()=>{n.value=!n.value,await tu()}).ready.then(()=>{const f=[`circle(0px at ${s}px ${c}px)`,`circle(${u}px at ${s}px ${c}px)`];document.documentElement.animate({clipPath:n.value?[...f].reverse():f},{duration:400,easing:"ease-in",pseudoElement:n.value?"::view-transition-old(root)":"::view-transition-new(root)"})})}const i={mode:t,isDark:n,toggle:o};return(a,s)=>{const c=vY;return Vn(),xo(c,{tag:"span"},{default:oo(()=>[Ku(a.$slots,"default",l7(Ck(i)))]),_:3})}}}),tN=Object.freeze({left:0,top:0,width:16,height:16}),eN=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Fk=Object.freeze({...tN,...eN});Object.freeze({...Fk,body:"",hidden:!1});({...tN});const nN=Object.freeze({width:null,height:null}),rN=Object.freeze({...nN,...eN});function gY(e,t){const n={...e};for(const r in t){const o=t[r],i=typeof o;r in nN?(o===null||o&&(i==="string"||i==="number"))&&(n[r]=o):i===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const yY=/[\s,]+/;function bY(e,t){t.split(yY).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function wY(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i=i/o,i%1===0?r(i):0)}}return t}const xY=/(-?[0-9.]*[0-9]+[0-9.]*)/g,kY=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function g$(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(xY);if(r===null||!r.length)return e;const o=[];let i=r.shift(),a=kY.test(i);for(;;){if(a){const s=parseFloat(i);isNaN(s)?o.push(i):o.push(Math.ceil(s*t*n)/n)}else o.push(i);if(i=r.shift(),i===void 0)return o.join("");a=!a}}const jY=e=>e==="unset"||e==="undefined"||e==="none";function _Y(e,t){const n={...Fk,...e},r={...rN,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,r].forEach(p=>{const v=[],m=p.hFlip,g=p.vFlip;let y=p.rotate;m?g?y+=2:(v.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),v.push("scale(-1 1)"),o.top=o.left=0):g&&(v.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),v.push("scale(1 -1)"),o.top=o.left=0);let b;switch(y<0&&(y-=Math.floor(y/4)*4),y=y%4,y){case 1:b=o.height/2+o.top,v.unshift("rotate(90 "+b.toString()+" "+b.toString()+")");break;case 2:v.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:b=o.width/2+o.left,v.unshift("rotate(-90 "+b.toString()+" "+b.toString()+")");break}y%2===1&&(o.left!==o.top&&(b=o.left,o.left=o.top,o.top=b),o.width!==o.height&&(b=o.width,o.width=o.height,o.height=b)),v.length&&(i='<g transform="'+v.join(" ")+'">'+i+"</g>")});const a=r.width,s=r.height,c=o.width,u=o.height;let l,f;a===null?(f=s===null?"1em":s==="auto"?u:s,l=g$(f,c/u)):(l=a==="auto"?c:a,f=s===null?g$(l,u/c):s==="auto"?u:s);const d={},h=(p,v)=>{jY(v)||(d[p]=v.toString())};return h("width",l),h("height",f),d.viewBox=o.left.toString()+" "+o.top.toString()+" "+c.toString()+" "+u.toString(),{attributes:d,body:i}}const SY=/\sid="(\S+)"/g,$Y="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let CY=0;function EY(e,t=$Y){const n=[];let r;for(;r=SY.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(i=>{const a=typeof t=="function"?t(i):t+(CY++).toString(),s=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+a+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}function OY(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function MY(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function AY(e){return"data:image/svg+xml,"+MY(e)}function PY(e){return'url("'+AY(e)+'")'}const y$={...rN,inline:!1},TY={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},RY={display:"inline-block"},Wb={backgroundColor:"currentColor"},oN={backgroundColor:"transparent"},b$={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},w$={webkitMask:Wb,mask:Wb,background:oN};for(const e in w$){const t=w$[e];for(const n in b$)t[e+n]=b$[n]}const pm={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";pm[e+"-flip"]=t,pm[e.slice(0,1)+"-flip"]=t,pm[e+"Flip"]=t});function x$(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const IY=(e,t)=>{const n=gY(y$,t),r={...TY},o=t.mode||"svg",i={},a=t.style,s=typeof a=="object"&&!(a instanceof Array)?a:{};for(let v in t){const m=t[v];if(m!==void 0)switch(v){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[v]=m===!0||m==="true"||m===1;break;case"flip":typeof m=="string"&&bY(n,m);break;case"color":i.color=m;break;case"rotate":typeof m=="string"?n[v]=wY(m):typeof m=="number"&&(n[v]=m);break;case"ariaHidden":case"aria-hidden":m!==!0&&m!=="true"&&delete r["aria-hidden"];break;default:{const g=pm[v];g?(m===!0||m==="true"||m===1)&&(n[g]=!0):y$[v]===void 0&&(r[v]=m)}}}const c=_Y(e,n),u=c.attributes;if(n.inline&&(i.verticalAlign="-0.125em"),o==="svg"){r.style={...i,...s},Object.assign(r,u);let v=0,m=t.id;return typeof m=="string"&&(m=m.replace(/-/g,"_")),r.innerHTML=EY(c.body,m?()=>m+"ID"+v++:"iconifyVue"),Ho("svg",r)}const{body:l,width:f,height:d}=e,h=o==="mask"||(o==="bg"?!1:l.indexOf("currentColor")!==-1),p=OY(l,{...u,width:f+"",height:d+""});return r.style={...i,"--svg":PY(p),width:x$(u.width),height:x$(u.height),...RY,...h?Wb:oN,...s},Ho("span",r)},NY=Object.create(null),DY=Jo({inheritAttrs:!1,render(){const e=this.$attrs,t=e.icon,n=typeof t=="string"?NY[t]:typeof t=="object"?t:null;return n===null||typeof n!="object"||typeof n.body!="string"?this.$slots.default?this.$slots.default():null:IY({...Fk,...n},e)}}),th=/^[a-z0-9]+(-[a-z0-9]+)*$/,j0=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const s=o.pop(),c=o.pop(),u={provider:o.length>0?o[0]:r,prefix:c,name:s};return t&&!vm(u)?null:u}const i=o[0],a=i.split("-");if(a.length>1){const s={provider:r,prefix:a.shift(),name:a.join("-")};return t&&!vm(s)?null:s}if(n&&r===""){const s={provider:r,prefix:"",name:i};return t&&!vm(s,n)?null:s}return null},vm=(e,t)=>e?!!((e.provider===""||e.provider.match(th))&&(t&&e.prefix===""||e.prefix.match(th))&&e.name.match(th)):!1,iN=Object.freeze({left:0,top:0,width:16,height:16}),ag=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),qk=Object.freeze({...iN,...ag}),Kb=Object.freeze({...qk,body:"",hidden:!1});function zY(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function k$(e,t){const n=zY(e,t);for(const r in Kb)r in ag?r in e&&!(r in n)&&(n[r]=ag[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function LY(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function i(a){if(n[a])return o[a]=[];if(!(a in o)){o[a]=null;const s=r[a]&&r[a].parent,c=s&&i(s);c&&(o[a]=[s].concat(c))}return o[a]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(i),o}function BY(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let i={};function a(s){i=k$(r[s]||o[s],i)}return a(t),n.forEach(a),k$(e,i)}function aN(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=LY(e);for(const o in r){const i=r[o];i&&(t(o,BY(e,o,i)),n.push(o))}return n}const FY={provider:"",aliases:{},not_found:{},...iN};function L1(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function sN(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!L1(e,FY))return null;const n=t.icons;for(const o in n){const i=n[o];if(!o.match(th)||typeof i.body!="string"||!L1(i,Kb))return null}const r=t.aliases||Object.create(null);for(const o in r){const i=r[o],a=i.parent;if(!o.match(th)||typeof a!="string"||!n[a]&&!r[a]||!L1(i,Kb))return null}return t}const j$=Object.create(null);function qY(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Ju(e,t){const n=j$[e]||(j$[e]=Object.create(null));return n[t]||(n[t]=qY(e,t))}function Hk(e,t){return sN(t)?aN(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function HY(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let Ch=!1;function cN(e){return typeof e=="boolean"&&(Ch=e),Ch}function VY(e){const t=typeof e=="string"?j0(e,!0,Ch):e;if(t){const n=Ju(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function UY(e,t){const n=j0(e,!0,Ch);if(!n)return!1;const r=Ju(n.provider,n.prefix);return HY(r,n.name,t)}function WY(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Ch&&!t&&!e.prefix){let o=!1;return sN(e)&&(e.prefix="",aN(e,(i,a)=>{a&&UY(i,a)&&(o=!0)})),o}const n=e.prefix;if(!vm({provider:t,prefix:n,name:"a"}))return!1;const r=Ju(t,n);return!!Hk(r,e)}const KY=Object.freeze({width:null,height:null}),JY=Object.freeze({...KY,...ag});""+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);const Jb=Object.create(null);function GY(e,t){Jb[e]=t}function Gb(e){return Jb[e]||Jb[""]}function Vk(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Uk=Object.create(null),hd=["https://api.simplesvg.com","https://api.unisvg.com"],mm=[];for(;hd.length>0;)hd.length===1||Math.random()>.5?mm.push(hd.shift()):mm.push(hd.pop());Uk[""]=Vk({resources:["https://api.iconify.design"].concat(mm)});function QY(e,t){const n=Vk(t);return n===null?!1:(Uk[e]=n,!0)}function Wk(e){return Uk[e]}const YY=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let _$=YY();function XY(e,t){const n=Wk(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(a=>{o=Math.max(o,a.length)});const i=t+".json?icons=";r=n.maxURL-o-n.path.length-i.length}return r}function ZY(e){return e===404}const tX=(e,t,n)=>{const r=[],o=XY(e,t),i="icons";let a={type:i,provider:e,prefix:t,icons:[]},s=0;return n.forEach((c,u)=>{s+=c.length+1,s>=o&&u>0&&(r.push(a),a={type:i,provider:e,prefix:t,icons:[]},s=c.length),a.icons.push(c)}),r.push(a),r};function eX(e){if(typeof e=="string"){const t=Wk(e);if(t)return t.path}return"/"}const nX=(e,t,n)=>{if(!_$){n("abort",424);return}let r=eX(t.provider);switch(t.type){case"icons":{const i=t.prefix,s=t.icons.join(","),c=new URLSearchParams({icons:s});r+=i+".json?"+c.toString();break}case"custom":{const i=t.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:n("abort",400);return}let o=503;_$(e+r).then(i=>{const a=i.status;if(a!==200){setTimeout(()=>{n(ZY(a)?"abort":"next",a)});return}return o=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?n("abort",i):n("next",o)});return}setTimeout(()=>{n("success",i)})}).catch(()=>{n("next",o)})},rX={prepare:tX,send:nX};function oX(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,i)=>o.provider!==i.provider?o.provider.localeCompare(i.provider):o.prefix!==i.prefix?o.prefix.localeCompare(i.prefix):o.name.localeCompare(i.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const i=o.provider,a=o.prefix,s=o.name,c=n[i]||(n[i]=Object.create(null)),u=c[a]||(c[a]=Ju(i,a));let l;s in u.icons?l=t.loaded:a===""||u.missing.has(s)?l=t.missing:l=t.pending;const f={provider:i,prefix:a,name:s};l.push(f)}),t}function uN(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function iX(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(i=>{const a=i.icons,s=a.pending.length;a.pending=a.pending.filter(c=>{if(c.prefix!==o)return!0;const u=c.name;if(e.icons[u])a.loaded.push({provider:r,prefix:o,name:u});else if(e.missing.has(u))a.missing.push({provider:r,prefix:o,name:u});else return n=!0,!0;return!1}),a.pending.length!==s&&(n||uN([e],i.id),i.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),i.abort))})}))}let aX=0;function sX(e,t,n){const r=aX++,o=uN.bind(null,n,r);if(!t.pending.length)return o;const i={id:r,icons:t,callback:e,abort:o};return n.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(i)}),o}function cX(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const i=typeof o=="string"?j0(o,t,n):o;i&&r.push(i)}),r}var uX={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function lX(e,t,n,r){const o=e.resources.length,i=e.random?Math.floor(Math.random()*o):e.index;let a;if(e.random){let k=e.resources.slice(0);for(a=[];k.length>1;){const j=Math.floor(Math.random()*k.length);a.push(k[j]),k=k.slice(0,j).concat(k.slice(j+1))}a=a.concat(k)}else a=e.resources.slice(i).concat(e.resources.slice(0,i));const s=Date.now();let c="pending",u=0,l,f=null,d=[],h=[];typeof r=="function"&&h.push(r);function p(){f&&(clearTimeout(f),f=null)}function v(){c==="pending"&&(c="aborted"),p(),d.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),d=[]}function m(k,j){j&&(h=[]),typeof k=="function"&&h.push(k)}function g(){return{startTime:s,payload:t,status:c,queriesSent:u,queriesPending:d.length,subscribe:m,abort:v}}function y(){c="failed",h.forEach(k=>{k(void 0,l)})}function b(){d.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),d=[]}function w(k,j,S){const N=j!=="success";switch(d=d.filter(C=>C!==k),c){case"pending":break;case"failed":if(N||!e.dataAfterTimeout)return;break;default:return}if(j==="abort"){l=S,y();return}if(N){l=S,d.length||(a.length?x():y());return}if(p(),b(),!e.random){const C=e.resources.indexOf(k.resource);C!==-1&&C!==e.index&&(e.index=C)}c="completed",h.forEach(C=>{C(S)})}function x(){if(c!=="pending")return;p();const k=a.shift();if(k===void 0){if(d.length){f=setTimeout(()=>{p(),c==="pending"&&(b(),y())},e.timeout);return}y();return}const j={status:"pending",resource:k,callback:(S,N)=>{w(j,S,N)}};d.push(j),u++,f=setTimeout(x,e.rotate),n(k,t,j.callback)}return setTimeout(x),g}function lN(e){const t={...uX,...e};let n=[];function r(){n=n.filter(s=>s().status==="pending")}function o(s,c,u){const l=lX(t,s,c,(f,d)=>{r(),u&&u(f,d)});return n.push(l),l}function i(s){return n.find(c=>s(c))||null}return{query:o,find:i,setIndex:s=>{t.index=s},getIndex:()=>t.index,cleanup:r}}function S$(){}const B1=Object.create(null);function fX(e){if(!B1[e]){const t=Wk(e);if(!t)return;const n=lN(t),r={config:t,redundancy:n};B1[e]=r}return B1[e]}function dX(e,t,n){let r,o;if(typeof e=="string"){const i=Gb(e);if(!i)return n(void 0,424),S$;o=i.send;const a=fX(e);a&&(r=a.redundancy)}else{const i=Vk(e);if(i){r=lN(i);const a=e.resources?e.resources[0]:"",s=Gb(a);s&&(o=s.send)}}return!r||!o?(n(void 0,424),S$):r.query(t,o,n)().abort}const $$="iconify2",Eh="iconify",fN=Eh+"-count",C$=Eh+"-version",dN=36e5,hX=168;function Qb(e,t){try{return e.getItem(t)}catch{}}function Kk(e,t,n){try{return e.setItem(t,n),!0}catch{}}function E$(e,t){try{e.removeItem(t)}catch{}}function Yb(e,t){return Kk(e,fN,t.toString())}function Xb(e){return parseInt(Qb(e,fN))||0}const _0={local:!0,session:!0},hN={local:new Set,session:new Set};let Jk=!1;function pX(e){Jk=e}let nv=typeof window>"u"?{}:window;function pN(e){const t=e+"Storage";try{if(nv&&nv[t]&&typeof nv[t].length=="number")return nv[t]}catch{}_0[e]=!1}function vN(e,t){const n=pN(e);if(!n)return;const r=Qb(n,C$);if(r!==$$){if(r){const s=Xb(n);for(let c=0;c<s;c++)E$(n,Eh+c.toString())}Kk(n,C$,$$),Yb(n,0);return}const o=Math.floor(Date.now()/dN)-hX,i=s=>{const c=Eh+s.toString(),u=Qb(n,c);if(typeof u=="string"){try{const l=JSON.parse(u);if(typeof l=="object"&&typeof l.cached=="number"&&l.cached>o&&typeof l.provider=="string"&&typeof l.data=="object"&&typeof l.data.prefix=="string"&&t(l,s))return!0}catch{}E$(n,c)}};let a=Xb(n);for(let s=a-1;s>=0;s--)i(s)||(s===a-1?(a--,Yb(n,a)):hN[e].add(s))}function mN(){if(!Jk){pX(!0);for(const e in _0)vN(e,t=>{const n=t.data,r=t.provider,o=n.prefix,i=Ju(r,o);if(!Hk(i,n).length)return!1;const a=n.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,a):a,!0})}}function vX(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in _0)vN(r,o=>{const i=o.data;return o.provider!==e.provider||i.prefix!==e.prefix||i.lastModified===t});return!0}function mX(e,t){Jk||mN();function n(r){let o;if(!_0[r]||!(o=pN(r)))return;const i=hN[r];let a;if(i.size)i.delete(a=Array.from(i).shift());else if(a=Xb(o),!Yb(o,a+1))return;const s={cached:Math.floor(Date.now()/dN),provider:e.provider,data:t};return Kk(o,Eh+a.toString(),JSON.stringify(s))}t.lastModified&&!vX(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function O$(){}function gX(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,iX(e)}))}function yX(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let i;if(!o||!(i=Gb(n)))return;i.prepare(n,r,o).forEach(s=>{dX(n,s,c=>{if(typeof c!="object")s.icons.forEach(u=>{e.missing.add(u)});else try{const u=Hk(e,c);if(!u.length)return;const l=e.pendingIcons;l&&u.forEach(f=>{l.delete(f)}),mX(e,c)}catch(u){console.error(u)}gX(e)})})}))}const bX=(e,t)=>{const n=cX(e,!0,cN()),r=oX(n);if(!r.pending.length){let c=!0;return t&&setTimeout(()=>{c&&t(r.loaded,r.missing,r.pending,O$)}),()=>{c=!1}}const o=Object.create(null),i=[];let a,s;return r.pending.forEach(c=>{const{provider:u,prefix:l}=c;if(l===s&&u===a)return;a=u,s=l,i.push(Ju(u,l));const f=o[u]||(o[u]=Object.create(null));f[l]||(f[l]=[])}),r.pending.forEach(c=>{const{provider:u,prefix:l,name:f}=c,d=Ju(u,l),h=d.pendingIcons||(d.pendingIcons=new Set);h.has(f)||(h.add(f),o[u][l].push(f))}),i.forEach(c=>{const{provider:u,prefix:l}=c;o[u][l].length&&yX(c,o[u][l])}),t?sX(t,r,i):O$},wX=e=>new Promise((t,n)=>{const r=typeof e=="string"?j0(e,!0):e;if(!r){n(e);return}bX([r||e],o=>{if(o.length&&r){const i=VY(r);if(i){t({...qk,...i});return}}n(e)})});({...JY});const M$={backgroundColor:"currentColor"},xX={backgroundColor:"transparent"},A$={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},P$={webkitMask:M$,mask:M$,background:xX};for(const e in P$){const t=P$[e];for(const n in A$)t[e+n]=A$[n]}const F1={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";F1[e+"-flip"]=t,F1[e.slice(0,1)+"-flip"]=t,F1[e+"Flip"]=t});cN(!0);GY("",rX);if(typeof document<"u"&&typeof window<"u"){mN();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!WY(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;QY(n,o)||console.error(r)}catch{console.error(r)}}}}({...qk});const kX=Jo({__name:"Icon",props:{name:{type:String,required:!0},size:{type:String,default:""}},async setup(e){let t,n;const r=e,o=ar(),i=TG(),a=Dk("icons",()=>({})),s=Tn(!1),c=hr(()=>{var p;return((((p=i.nuxtIcon)==null?void 0:p.aliases)||{})[r.name]||r.name).replace(/^i-/,"")}),u=hr(()=>{var p;return(p=a.value)==null?void 0:p[c.value]}),l=hr(()=>o.vueApp.component(c.value)),f=hr(()=>{var v,m,g;if(!r.size&&typeof((v=i.nuxtIcon)==null?void 0:v.size)=="boolean"&&!((m=i.nuxtIcon)!=null&&m.size))return;const p=r.size||((g=i.nuxtIcon)==null?void 0:g.size)||"1em";return String(Number(p))===p?`${p}px`:p}),d=hr(()=>{var p;return((p=i==null?void 0:i.nuxtIcon)==null?void 0:p.class)??"icon"});async function h(){var p;l.value||(p=a.value)!=null&&p[c.value]||(s.value=!0,a.value[c.value]=await wX(c.value).catch(()=>{}),s.value=!1)}return so(()=>c.value,h),!l.value&&([t,n]=kb(()=>h()),t=await t,n()),(p,v)=>s.value?(Vn(),li("span",{key:0,class:Gr(d.value),style:zc({width:f.value,height:f.value})},null,6)):u.value?(Vn(),xo(Re(DY),{key:1,icon:u.value,class:Gr(d.value),width:f.value,height:f.value},null,8,["icon","class","width","height"])):l.value?(Vn(),xo(_k(l.value),{key:2,class:Gr(d.value),width:f.value,height:f.value},null,8,["class","width","height"])):(Vn(),li("span",{key:3,class:Gr(d.value),style:zc({fontSize:f.value,lineHeight:f.value,width:f.value,height:f.value})},[Ku(p.$slots,"default",{},()=>[Au(fm(e.name),1)],!0)],6))}});const gN=XI(kX,[["__scopeId","data-v-6f6643fb"]]),jX=Object.freeze(Object.defineProperty({__proto__:null,default:gN},Symbol.toStringTag,{value:"Module"}));function T$(e){return typeof e=="function"?e():Re(e)}const _X=e=>typeof e<"u",R$=()=>{};function SX(e,t){function n(...r){return new Promise((o,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(i)})}return n}function $X(e,t={}){let n,r,o=R$;const i=s=>{clearTimeout(s),o(),o=R$};return s=>{const c=T$(e),u=T$(t.maxWait);return n&&i(n),c<=0||u!==void 0&&u<=0?(r&&(i(r),r=null),Promise.resolve(s())):new Promise((l,f)=>{o=t.rejectOnCancel?f:l,u&&!r&&(r=setTimeout(()=>{n&&i(n),r=null,l(s())},u)),n=setTimeout(()=>{r&&i(r),r=null,l(s())},c)})}}function Gk(e,t=200,n={}){return SX($X(t,n),e)}function CX(e){return JSON.parse(JSON.stringify(e))}function EX(e,t,n,r={}){var o,i,a;const{clone:s=!1,passive:c=!1,eventName:u,deep:l=!1,defaultValue:f,shouldEmit:d}=r,h=Qs(),p=n||(h==null?void 0:h.emit)||((o=h==null?void 0:h.$emit)==null?void 0:o.bind(h))||((a=(i=h==null?void 0:h.proxy)==null?void 0:i.$emit)==null?void 0:a.bind(h==null?void 0:h.proxy));let v=u;t||(t="modelValue"),v=v||`update:${t.toString()}`;const m=b=>s?typeof s=="function"?s(b):CX(b):b,g=()=>_X(e[t])?m(e[t]):f,y=b=>{d?d(b)&&p(v,b):p(v,b)};if(c){const b=g(),w=Tn(b);let x=!1;return so(()=>e[t],k=>{x||(x=!0,w.value=m(k),tu(()=>x=!1))}),so(w,k=>{!x&&(k!==e[t]||l)&&y(k)},{deep:l}),w}else return hr({get(){return g()},set(b){y(b)}})}const OX={class:"n-text-input flex flex items-center border n-border-base rounded py-1 pl-1 pr-2 focus-within:n-focus-base focus-within:border-context n-bg-base"},MX=Jo({__name:"NTextInput",props:{modelValue:{default:""},icon:{},placeholder:{},disabled:{type:Boolean},autofocus:{type:Boolean},type:{default:"text"}},setup(e,{emit:t}){const r=EX(e,"modelValue",t,{passive:!0});return(o,i)=>{const a=Bk;return Vn(),li("div",OX,[Ku(o.$slots,"icon",{},()=>[o.icon?(Vn(),xo(a,{key:0,icon:o.icon,class:"ml-0.3em mr-0.1em text-1.1em op50"},null,8,["icon"])):qa("",!0)]),KU(nr("input",Ok({"onUpdate:modelValue":i[0]||(i[0]=s=>Yr(r)?r.value=s:null)},o.$props,{class:"ml-0.4em w-full flex-auto n-bg-base !outline-none"}),null,16),[[iK,Re(r)]])])}}}),AX=(e,t)=>t.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""}),Zb=(e,t)=>{const n=e.route.matched.find(o=>{var i;return((i=o.components)==null?void 0:i.default)===e.Component.type}),r=t??(n==null?void 0:n.meta.key)??(n&&AX(e.route,n));return typeof r=="function"?r(e.route):r},PX=(e,t)=>({default:()=>e?Ho(XU,e===!0?{}:e,t):t}),TX=Jo({name:"RouteProvider",props:{vnode:{type:Object,required:!0},route:{type:Object,required:!0},vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(e){const t=e.renderKey,n=e.route,r={};for(const o in e.route)Object.defineProperty(r,o,{get:()=>t===e.renderKey?e.route[o]:n[o]});return Ql(b0,hp(r)),()=>Ho(e.vnode,{ref:e.vnodeRef})}}),RX=(e,t,n)=>(t=t===!0?{}:t,{default:()=>{var r;return t?Ho(e,t,n):(r=n.default)==null?void 0:r.call(n)}}),IX=Jo({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,expose:n}){const r=ar(),o=Tn(),i=gi(b0,null);n({pageRef:o});const a=gi(mG,null);let s;const c=r.deferHydration();return()=>Ho(YI,{name:e.name,route:e.route,...t},{default:u=>{const l=zX(i,u.route,u.Component),f=i&&i.matched.length===u.route.matched.length;if(!u.Component)return s&&!f?s:void 0;if(s&&a&&!a.isCurrent(u.route))return s;if(l&&i&&(!a||a!=null&&a.isCurrent(i)))return f?s:null;const d=Zb(u,e.pageKey),h=!!(e.transition??u.route.meta.pageTransition??qb),p=h&&DX([e.transition,u.route.meta.pageTransition,qb,{onAfterLeave:()=>{r.callHook("page:transition:finish",u.Component)}}].filter(Boolean));return s=RX(Ak,h&&p,PX(e.keepalive??u.route.meta.keepalive??RG,Ho(I7,{suspensible:!0,onPending:()=>r.callHook("page:start",u.Component),onResolve:()=>{tu(()=>r.callHook("page:finish",u.Component).finally(c))}},{default:()=>Ho(TX,{key:d,vnode:u.Component,route:u.route,renderKey:d,trackRootNodes:h,vnodeRef:o})}))).default(),s}})}});function NX(e){return Array.isArray(e)?e:e?[e]:[]}function DX(e){const t=e.map(n=>({...n,onAfterLeave:NX(n.onAfterLeave)}));return uG(...t)}function zX(e,t,n){if(!e)return!1;const r=t.matched.findIndex(o=>{var i;return((i=o.components)==null?void 0:i.default)===(n==null?void 0:n.type)});return!r||r===-1?!1:t.matched.slice(0,r).some((o,i)=>{var a,s,c;return((a=o.components)==null?void 0:a.default)!==((c=(s=e.matched[i])==null?void 0:s.components)==null?void 0:c.default)})||n&&Zb({route:t,Component:n})!==Zb({route:e,Component:n})}const LX=6e4;function yN(e){return e}const BX=yN,{clearTimeout:FX,setTimeout:qX}=globalThis,HX=Math.random.bind(Math);function VX(e,t){const{post:n,on:r,eventNames:o=[],serialize:i=yN,deserialize:a=BX,resolver:s,timeout:c=LX}=t,u=new Map;let l;const f=new Proxy({},{get(d,h){if(h==="$functions")return e;const p=(...m)=>{n(i({m:h,a:m,t:"q"}))};if(o.includes(h))return p.asEvent=p,p;const v=async(...m)=>(await l,new Promise((g,y)=>{var x,k;const b=WX();let w;c>=0&&(w=(k=(x=qX(()=>{y(new Error(`[birpc] timeout on calling "${h}"`)),u.delete(b)},c)).unref)==null?void 0:k.call(x)),u.set(b,{resolve:g,reject:y,timeoutId:w}),n(i({m:h,a:m,i:b,t:"q"}))}));return v.asEvent=p,v}});return l=r(async(d,...h)=>{const p=a(d);if(p.t==="q"){const{m:v,a:m}=p;let g,y;const b=s?s(v,e[v]):e[v];if(!b)y=new Error(`[birpc] function "${v}" not found`);else try{g=await b.apply(f,m)}catch(w){y=w}p.i&&(y&&t.onError&&t.onError(y,v,m),n(i({t:"s",i:p.i,r:g,e:y}),...h))}else{const{i:v,r:m,e:g}=p,y=u.get(v);y&&(FX(y.timeoutId),g?y.reject(g):y.resolve(m)),u.delete(v)}}),f}const UX="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function WX(e=21){let t="",n=e;for(;n--;)t+=UX[HX()*64|0];return t}/*! (c) 2020 Andrea Giammarchi */const{parse:KX,stringify:JX}=JSON,{keys:GX}=Object,Oh=String,bN="string",I$={},sg="object",wN=(e,t)=>t,QX=e=>e instanceof Oh?Oh(e):e,YX=(e,t)=>typeof t===bN?new Oh(t):t,xN=(e,t,n,r)=>{const o=[];for(let i=GX(n),{length:a}=i,s=0;s<a;s++){const c=i[s],u=n[c];if(u instanceof Oh){const l=e[u];typeof l===sg&&!t.has(l)?(t.add(l),n[c]=I$,o.push({k:c,a:[e,t,l,r]})):n[c]=r.call(n,c,l)}else n[c]!==I$&&(n[c]=r.call(n,c,u))}for(let{length:i}=o,a=0;a<i;a++){const{k:s,a:c}=o[a];n[s]=r.call(n,s,xN.apply(null,c))}return n},N$=(e,t,n)=>{const r=Oh(t.push(n)-1);return e.set(n,r),r},XX=(e,t)=>{const n=KX(e,YX).map(QX),r=n[0],o=t||wN,i=typeof r===sg&&r?xN(n,new Set,r,o):r;return o.call({"":i},"",i)},ZX=(e,t,n)=>{const r=t&&typeof t===sg?(l,f)=>l===""||-1<t.indexOf(l)?f:void 0:t||wN,o=new Map,i=[],a=[];let s=+N$(o,i,r.call({"":e},"",e)),c=!s;for(;s<i.length;)c=!0,a[s]=JX(i[s++],u,n);return"["+a.join(",")+"]";function u(l,f){if(c)return c=!c,f;const d=r.call(this,l,f);switch(typeof d){case sg:if(d===null)return d;case bN:return o.get(d)||N$(o,i,d)}return d}},tZ=2e3;let kN=()=>{};const D$=Tn(!0),z$=Tn(),jN=Tn(null);function eZ(e){const t=VX(e,{post:n=>jN.value.send(n),on:n=>{kN=n},serialize:ZX,deserialize:XX});return{useServerConfig:async function(){return(await Nk("server-config",()=>t.getConfig())).data}}}async function _N(e){const t=new WebSocket(`ws://${e}/__nuxt_og_image__/entry`);return t.addEventListener("message",n=>kN(String(n.data))),t.addEventListener("error",n=>{z$.value=n}),t.addEventListener("close",()=>{console.log("[nuxt-og-image] WebSocket closed, reconnecting..."),setTimeout(async()=>{jN.value=await _N(e)},tZ)}),D$.value=!0,t.readyState!==WebSocket.OPEN&&await new Promise(n=>t.addEventListener("open",n)),console.log("[nuxt-og-image] WebSocket connected."),D$.value=!1,z$.value=null,t}const S0=Tn(Date.now()),L$=Tn(null),SN=window.location.host,Ga=Tn("/"),$N=Tn("/"),rv=Tn({}),Nd=Tn({}),wu=Tn(!1),q1=Tn({}),Dd=Gk(()=>{S0.value=Date.now()},200),nZ=Gk(()=>{S0.value=Date.now()},1e3),rZ={refresh(){wu.value=!1,Nd.value={},Dd()}};eZ(rZ);const bl=Tn(null),Qk=hr(()=>gI($N.value,`${window.location.protocol}//${SN}`)),u4t=hr(()=>`${Qk.value}${Ga.value==="/"?"":Ga.value}`);async function B$(){const{data:e}=await Nk(()=>$fetch("/api/og-image-options",{baseURL:Qk.value,query:{path:Ga.value}}),{watch:[Ga,S0]},"$XVR8o8RMBy");return e}async function l4t(){const{data:e}=await Nk(()=>$fetch("/api/og-image-vnode",{query:{path:Ga.value},baseURL:Qk.value}),{watch:[Ga,S0]},"$cHgKigQ0kS");return e}var H1,F$,q$,H$,V$,U$,W$,K$,J$,G$,Q$,Y$,X$,Z$,tC,eC,nC,rC,oC,iC,aC,sC,cC,uC,lC,fC,dC,hC,pC,vC,mC,gC,yC,bC,wC,xC,kC,jC,_C,SC,$C,CC,EC,OC,MC,AC,PC,TC,RC,IC,NC,DC,zC,LC,BC,FC,qC,HC,VC,UC,WC,KC,JC,GC,QC,YC,XC,ZC,t3,e3,n3,r3,o3,i3,a3,s3,c3,u3,l3,f3,d3,h3,p3,v3,m3,g3,y3,b3,w3,x3,k3,j3,_3,S3,$3,C3,E3,O3,M3,A3,P3,T3,R3,I3,N3,D3,z3,L3,B3,F3,q3,H3,V3,U3,W3,K3,J3,G3,Q3,Y3,X3,Z3,t4,e4,n4,r4,o4,i4,a4,s4,c4,u4,l4,f4,d4,h4,p4,v4,m4,g4,y4,b4,w4,x4,k4,j4,_4,S4,$4,C4,E4,O4,M4,A4,P4,T4,R4,I4,N4,D4,z4,L4,B4,F4,q4,H4,V4,U4,W4,K4,J4,G4,Q4,Y4,X4,Z4,t8,e8,n8,r8,o8,i8,a8,s8,c8,u8,l8,f8,d8,h8,p8,v8,m8,g8,y8,b8,w8,x8,k8,j8,_8,S8,$8,C8,E8,O8,M8,A8,P8,T8,R8,I8,N8,D8,z8,L8,B8,F8,q8,H8,V8,U8,W8,K8,J8,G8,Q8,Y8,X8,Z8,t5,e5,n5,r5,o5,i5,a5,s5,c5,u5,l5,f5,d5,h5,p5,v5,m5,g5,y5,b5,w5,x5,k5,j5,_5,S5,$5,C5,E5,O5,M5,A5,P5,T5,R5,I5,N5,D5,z5,L5,B5,F5,q5,H5,V5,U5,W5,K5,J5,G5,Q5,Y5,X5,oZ=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],iZ=["mainAxis","crossAxis","limiter"];function st(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function kn(){return kn=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(i,a){for(;!Object.prototype.hasOwnProperty.call(i,a)&&(i=ln(i))!==null;);return i}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},kn.apply(this,arguments)}function CN(e,t){if(e==null)return{};var n,r,o=function(a,s){if(a==null)return{};var c,u,l={},f=Object.keys(a);for(u=0;u<f.length;u++)c=f[u],s.indexOf(c)>=0||(l[c]=a[c]);return l}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ht(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=$0(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
6
6
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return a=c.done,c},e:function(c){s=!0,i=c},f:function(){try{a||n.return==null||n.return()}finally{if(s)throw i}}}}function qt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */qt=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(F,O,A){F[O]=A.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(F,O,A){return Object.defineProperty(F,O,{value:A,enumerable:!0,configurable:!0,writable:!0}),F[O]}try{u({},"")}catch{u=function(O,A,_){return O[A]=_}}function l(F,O,A,_){var M=O&&O.prototype instanceof g?O:g,P=Object.create(M.prototype),D=new R(_||[]);return o(P,"_invoke",{value:C(F,A,D)}),P}function f(F,O,A){try{return{type:"normal",arg:F.call(O,A)}}catch(_){return{type:"throw",arg:_}}}t.wrap=l;var d="suspendedStart",h="suspendedYield",p="executing",v="completed",m={};function g(){}function y(){}function b(){}var w={};u(w,a,function(){return this});var x=Object.getPrototypeOf,k=x&&x(x(q([])));k&&k!==n&&r.call(k,a)&&(w=k);var j=b.prototype=g.prototype=Object.create(w);function S(F){["next","throw","return"].forEach(function(O){u(F,O,function(A){return this._invoke(O,A)})})}function N(F,O){function A(M,P,D,T){var H=f(F[M],F,P);if(H.type!=="throw"){var I=H.arg,ft=I.value;return ft&&ce(ft)=="object"&&r.call(ft,"__await")?O.resolve(ft.__await).then(function(tt){A("next",tt,D,T)},function(tt){A("throw",tt,D,T)}):O.resolve(ft).then(function(tt){I.value=tt,D(I)},function(tt){return A("throw",tt,D,T)})}T(H.arg)}var _;o(this,"_invoke",{value:function(M,P){function D(){return new O(function(T,H){A(M,P,T,H)})}return _=_?_.then(D,D):D()}})}function C(F,O,A){var _=d;return function(M,P){if(_===p)throw new Error("Generator is already running");if(_===v){if(M==="throw")throw P;return{value:e,done:!0}}for(A.method=M,A.arg=P;;){var D=A.delegate;if(D){var T=$(D,A);if(T){if(T===m)continue;return T}}if(A.method==="next")A.sent=A._sent=A.arg;else if(A.method==="throw"){if(_===d)throw _=v,A.arg;A.dispatchException(A.arg)}else A.method==="return"&&A.abrupt("return",A.arg);_=p;var H=f(F,O,A);if(H.type==="normal"){if(_=A.done?v:h,H.arg===m)continue;return{value:H.arg,done:A.done}}H.type==="throw"&&(_=v,A.method="throw",A.arg=H.arg)}}}function $(F,O){var A=O.method,_=F.iterator[A];if(_===e)return O.delegate=null,A==="throw"&&F.iterator.return&&(O.method="return",O.arg=e,$(F,O),O.method==="throw")||A!=="return"&&(O.method="throw",O.arg=new TypeError("The iterator does not provide a '"+A+"' method")),m;var M=f(_,F.iterator,O.arg);if(M.type==="throw")return O.method="throw",O.arg=M.arg,O.delegate=null,m;var P=M.arg;return P?P.done?(O[F.resultName]=P.value,O.next=F.nextLoc,O.method!=="return"&&(O.method="next",O.arg=e),O.delegate=null,m):P:(O.method="throw",O.arg=new TypeError("iterator result is not an object"),O.delegate=null,m)}function B(F){var O={tryLoc:F[0]};1 in F&&(O.catchLoc=F[1]),2 in F&&(O.finallyLoc=F[2],O.afterLoc=F[3]),this.tryEntries.push(O)}function K(F){var O=F.completion||{};O.type="normal",delete O.arg,F.completion=O}function R(F){this.tryEntries=[{tryLoc:"root"}],F.forEach(B,this),this.reset(!0)}function q(F){if(F||F===""){var O=F[a];if(O)return O.call(F);if(typeof F.next=="function")return F;if(!isNaN(F.length)){var A=-1,_=function M(){for(;++A<F.length;)if(r.call(F,A))return M.value=F[A],M.done=!1,M;return M.value=e,M.done=!0,M};return _.next=_}}throw new TypeError(ce(F)+" is not iterable")}return y.prototype=b,o(j,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:y,configurable:!0}),y.displayName=u(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(F){var O=typeof F=="function"&&F.constructor;return!!O&&(O===y||(O.displayName||O.name)==="GeneratorFunction")},t.mark=function(F){return Object.setPrototypeOf?Object.setPrototypeOf(F,b):(F.__proto__=b,u(F,c,"GeneratorFunction")),F.prototype=Object.create(j),F},t.awrap=function(F){return{__await:F}},S(N.prototype),u(N.prototype,s,function(){return this}),t.AsyncIterator=N,t.async=function(F,O,A,_,M){M===void 0&&(M=Promise);var P=new N(l(F,O,A,_),M);return t.isGeneratorFunction(O)?P:P.next().then(function(D){return D.done?D.value:P.next()})},S(j),u(j,c,"Generator"),u(j,a,function(){return this}),u(j,"toString",function(){return"[object Generator]"}),t.keys=function(F){var O=Object(F),A=[];for(var _ in O)A.push(_);return A.reverse(),function M(){for(;A.length;){var P=A.pop();if(P in O)return M.value=P,M.done=!1,M}return M.done=!0,M}},t.values=q,R.prototype={constructor:R,reset:function(F){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(K),!F)for(var O in this)O.charAt(0)==="t"&&r.call(this,O)&&!isNaN(+O.slice(1))&&(this[O]=e)},stop:function(){this.done=!0;var F=this.tryEntries[0].completion;if(F.type==="throw")throw F.arg;return this.rval},dispatchException:function(F){if(this.done)throw F;var O=this;function A(H,I){return P.type="throw",P.arg=F,O.next=H,I&&(O.method="next",O.arg=e),!!I}for(var _=this.tryEntries.length-1;_>=0;--_){var M=this.tryEntries[_],P=M.completion;if(M.tryLoc==="root")return A("end");if(M.tryLoc<=this.prev){var D=r.call(M,"catchLoc"),T=r.call(M,"finallyLoc");if(D&&T){if(this.prev<M.catchLoc)return A(M.catchLoc,!0);if(this.prev<M.finallyLoc)return A(M.finallyLoc)}else if(D){if(this.prev<M.catchLoc)return A(M.catchLoc,!0)}else{if(!T)throw new Error("try statement without catch or finally");if(this.prev<M.finallyLoc)return A(M.finallyLoc)}}}},abrupt:function(F,O){for(var A=this.tryEntries.length-1;A>=0;--A){var _=this.tryEntries[A];if(_.tryLoc<=this.prev&&r.call(_,"finallyLoc")&&this.prev<_.finallyLoc){var M=_;break}}M&&(F==="break"||F==="continue")&&M.tryLoc<=O&&O<=M.finallyLoc&&(M=null);var P=M?M.completion:{};return P.type=F,P.arg=O,M?(this.method="next",this.next=M.finallyLoc,m):this.complete(P)},complete:function(F,O){if(F.type==="throw")throw F.arg;return F.type==="break"||F.type==="continue"?this.next=F.arg:F.type==="return"?(this.rval=this.arg=F.arg,this.method="return",this.next="end"):F.type==="normal"&&O&&(this.next=O),m},finish:function(F){for(var O=this.tryEntries.length-1;O>=0;--O){var A=this.tryEntries[O];if(A.finallyLoc===F)return this.complete(A.completion,A.afterLoc),K(A),m}},catch:function(F){for(var O=this.tryEntries.length-1;O>=0;--O){var A=this.tryEntries[O];if(A.tryLoc===F){var _=A.completion;if(_.type==="throw"){var M=_.arg;K(A)}return M}}throw new Error("illegal catch attempt")},delegateYield:function(F,O,A){return this.delegate={iterator:q(F),resultName:O,nextLoc:A},this.method==="next"&&(this.arg=e),m}},t}function Z5(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,o)}function Ae(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(c){Z5(i,r,o,a,s,"next",c)}function s(c){Z5(i,r,o,a,s,"throw",c)}a(void 0)})}}function $e(e,t){return ON(e)||function(n,r){var o=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(o!=null){var i,a,s,c,u=[],l=!0,f=!1;try{if(s=(o=o.call(n)).next,r===0){if(Object(o)!==o)return;l=!1}else for(;!(l=(i=s.call(o)).done)&&(u.push(i.value),u.length!==r);l=!0);}catch(d){f=!0,a=d}finally{try{if(!l&&o.return!=null&&(c=o.return(),Object(c)!==c))return}finally{if(f)throw a}}return u}}(e,t)||$0(e,t)||EN()}function EN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
7
7
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ON(e){if(Array.isArray(e))return e}function jf(e){var t=typeof Map=="function"?new Map:void 0;return jf=function(n){if(n===null||(r=n,Function.toString.call(r).indexOf("[native code]")===-1))return n;var r;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,o)}function o(){return tw(n,arguments,ln(this).constructor)}return o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Mh(o,n)},jf(e)}function tw(e,t,n){return tw=MN()?Reflect.construct.bind():function(r,o,i){var a=[null];a.push.apply(a,o);var s=new(Function.bind.apply(r,a));return i&&Mh(s,i.prototype),s},tw.apply(null,arguments)}function Tt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mh(e,t)}function Mh(e,t){return Mh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Mh(e,t)}function Rt(e){var t=MN();return function(){var n,r=ln(e);if(t){var o=ln(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(i,a){if(a&&(ce(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return he(i)}(this,n)}}function he(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function MN(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ln(e){return ln=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ln(e)}function tE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function xt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tE(Object(n),!0).forEach(function(r){Vo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,AN(r.key),r)}}function ot(e,t,n){return t&&eE(e.prototype,t),n&&eE(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vo(e,t,n){return(t=AN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AN(e){var t=function(n,r){if(ce(n)!=="object"||n===null)return n;var o=n[Symbol.toPrimitive];if(o!==void 0){var i=o.call(n,r||"default");if(ce(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}(e,"string");return ce(t)==="symbol"?t:String(t)}function Se(e){return function(t){if(Array.isArray(t))return ew(t)}(e)||PN(e)||$0(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
8
8
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function $0(e,t){if(e){if(typeof e=="string")return ew(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ew(e,t):void 0}}function PN(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ew(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ce(e){return ce=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ce(e)}function Ht(){}var TN=function(e){return e};function oi(e,t){for(var n in t)e[n]=t[n];return e}function RN(e){return e()}function nE(){return Object.create(null)}function Fn(e){e.forEach(RN)}function co(e){return typeof e=="function"}function to(e,t){return e!=e?t==t:e!==t||e&&ce(e)==="object"||typeof e=="function"}function qe(e,t){return e!=e?t==t:e!==t}function Cr(e,t,n,r){if(e){var o=IN(e,t,n,r);return e[0](o)}}function IN(e,t,n,r){return e[1]&&r?oi(n.ctx.slice(),e[1](r(t))):n.ctx}function Er(e,t,n,r){if(e[2]&&r){var o=e[2](r(n));if(t.dirty===void 0)return o;if(ce(o)==="object"){for(var i=[],a=Math.max(t.dirty.length,o.length),s=0;s<a;s+=1)i[s]=t.dirty[s]|o[s];return i}return t.dirty|o}return t.dirty}function Or(e,t,n,r,o,i){if(o){var a=IN(t,n,r,i);e.p(a,o)}}function Mr(e){if(e.ctx.length>32){for(var t=[],n=e.ctx.length/32,r=0;r<n;r++)t[r]=-1;return t}return-1}function NN(e){var t={};for(var n in e)n[0]!=="$"&&(t[n]=e[n]);return t}function cg(e,t){var n={};for(var r in t=new Set(t),e)t.has(r)||r[0]==="$"||(n[r]=e[r]);return n}function dr(e){return e??""}function lo(e){return e&&co(e.destroy)?e.destroy:Ht}var DN=typeof window<"u",aZ=DN?function(){return window.performance.now()}:function(){return Date.now()},Yk=DN?function(e){return requestAnimationFrame(e)}:Ht,eh=new Set;function zN(e){eh.forEach(function(t){t.c(e)||(eh.delete(t),t.f())}),eh.size!==0&&Yk(zN)}var Xk=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function V(e,t){e.appendChild(t)}function ze(e,t,n){var r=Zk(e);if(!r.getElementById(t)){var o=et("style");o.id=t,o.textContent=n,LN(r,o)}}function Zk(e){if(!e)return document;var t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function sZ(e){var t=et("style");return t.textContent="/* empty */",LN(Zk(e),t),t.sheet}function LN(e,t){return V(e.head||e,t),t.sheet}function dt(e,t,n){e.insertBefore(t,n||null)}function lt(e){e.parentNode&&e.parentNode.removeChild(e)}function Ir(e,t){for(var n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function et(e){return document.createElement(e)}function ss(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Gt(e){return document.createTextNode(e)}function kt(){return Gt(" ")}function _n(){return Gt("")}function Lt(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function Gu(e){return function(t){return t.preventDefault(),e.call(this,t)}}function cs(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function E(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}var cZ=["width","height"];function rE(e,t){var n=Object.getOwnPropertyDescriptors(e.__proto__);for(var r in t)t[r]==null?e.removeAttribute(r):r==="style"?e.style.cssText=t[r]:r==="__value"?e.value=e[r]=t[r]:n[r]&&n[r].set&&cZ.indexOf(r)===-1?e[r]=t[r]:E(e,r,t[r])}function _f(e,t){for(var n in t)E(e,n,t[n])}function we(e,t){t=""+t,e.data!==t&&(e.data=t)}function us(e,t){e.value=t??""}function xc(e,t,n,r){n==null?e.style.removeProperty(t):e.style.setProperty(t,n,r?"important":"")}function oE(e,t,n){for(var r=0;r<e.options.length;r+=1){var o=e.options[r];if(o.__value===t)return void(o.selected=!0)}n&&t===void 0||(e.selectedIndex=-1)}function Dt(e,t,n){e.classList.toggle(t,!!n)}function BN(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.bubbles,o=r!==void 0&&r,i=n.cancelable;return new CustomEvent(e,{detail:t,bubbles:o,cancelable:i!==void 0&&i})}function ls(e,t){return new e(t)}var Ah,ug=new Map,nw=0;function iE(e,t,n,r,o,i,a){for(var s=arguments.length>7&&arguments[7]!==void 0?arguments[7]:0,c=16.666/r,u=`{
@@ -130,6 +130,6 @@ return query;
130
130
  * Copyright 2017-2023 Andreas Borgen (https://github.com/Sphinxxxx), Adam Brooks (https://github.com/dissimulate)
131
131
  * Released under the ISC license.
132
132
  */var T_=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},R_=function(){function e(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),am=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(n,r){var o=[],i=!0,a=!1,s=void 0;try{for(var c,u=n[Symbol.iterator]();!(i=(c=u.next()).done)&&(o.push(c.value),!r||o.length!==r);i=!0);}catch(l){a=!0,s=l}finally{try{!i&&u.return&&u.return()}finally{if(a)throw s}}return o}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};String.prototype.startsWith=String.prototype.startsWith||function(e){return this.indexOf(e)===0},String.prototype.padStart=String.prototype.padStart||function(e,t){for(var n=this;n.length<e;)n=t+n;return n};var i2t={cb:"0f8ff",tqw:"aebd7",q:"-ffff",qmrn:"7fffd4",zr:"0ffff",bg:"5f5dc",bsq:"e4c4",bck:"---",nch:"ebcd",b:"--ff",bvt:"8a2be2",brwn:"a52a2a",brw:"deb887",ctb:"5f9ea0",hrt:"7fff-",chcT:"d2691e",cr:"7f50",rnw:"6495ed",crns:"8dc",crms:"dc143c",cn:"-ffff",Db:"--8b",Dcn:"-8b8b",Dgnr:"b8860b",Dgr:"a9a9a9",Dgrn:"-64-",Dkhk:"bdb76b",Dmgn:"8b-8b",Dvgr:"556b2f",Drng:"8c-",Drch:"9932cc",Dr:"8b--",Dsmn:"e9967a",Dsgr:"8fbc8f",DsTb:"483d8b",DsTg:"2f4f4f",Dtrq:"-ced1",Dvt:"94-d3",ppnk:"1493",pskb:"-bfff",mgr:"696969",grb:"1e90ff",rbrc:"b22222",rwht:"af0",stg:"228b22",chs:"-ff",gnsb:"dcdcdc",st:"8f8ff",g:"d7-",gnr:"daa520",gr:"808080",grn:"-8-0",grnw:"adff2f",hnw:"0fff0",htpn:"69b4",nnr:"cd5c5c",ng:"4b-82",vr:"0",khk:"0e68c",vnr:"e6e6fa",nrb:"0f5",wngr:"7cfc-",mnch:"acd",Lb:"add8e6",Lcr:"08080",Lcn:"e0ffff",Lgnr:"afad2",Lgr:"d3d3d3",Lgrn:"90ee90",Lpnk:"b6c1",Lsmn:"a07a",Lsgr:"20b2aa",Lskb:"87cefa",LsTg:"778899",Lstb:"b0c4de",Lw:"e0",m:"-ff-",mgrn:"32cd32",nn:"af0e6",mgnt:"-ff",mrn:"8--0",mqm:"66cdaa",mmb:"--cd",mmrc:"ba55d3",mmpr:"9370db",msg:"3cb371",mmsT:"7b68ee","":"-fa9a",mtr:"48d1cc",mmvt:"c71585",mnLb:"191970",ntc:"5fffa",mstr:"e4e1",mccs:"e4b5",vjw:"dead",nv:"--80",c:"df5e6",v:"808-0",vrb:"6b8e23",rng:"a5-",rngr:"45-",rch:"da70d6",pgnr:"eee8aa",pgrn:"98fb98",ptrq:"afeeee",pvtr:"db7093",ppwh:"efd5",pchp:"dab9",pr:"cd853f",pnk:"c0cb",pm:"dda0dd",pwrb:"b0e0e6",prp:"8-080",cc:"663399",r:"--",sbr:"bc8f8f",rb:"4169e1",sbrw:"8b4513",smn:"a8072",nbr:"4a460",sgrn:"2e8b57",ssh:"5ee",snn:"a0522d",svr:"c0c0c0",skb:"87ceeb",sTb:"6a5acd",sTgr:"708090",snw:"afa",n:"-ff7f",stb:"4682b4",tn:"d2b48c",t:"-8080",thst:"d8bfd8",tmT:"6347",trqs:"40e0d0",vt:"ee82ee",whT:"5deb3",wht:"",hts:"5f5f5",w:"-",wgrn:"9acd32"};function j9(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return(t>0?e.toFixed(t).replace(/0+$/,"").replace(/\.$/,""):e.toString())||"0"}var a2t=function(){function e(t,n,r,o){T_(this,e);var i=this;if(t!==void 0)if(Array.isArray(t))this.rgba=t;else if(r===void 0){var a=t&&""+t;a&&function(s){if(s.startsWith("hsl")){var c=s.match(/([\-\d\.e]+)/g).map(Number),u=am(c,4),l=u[0],f=u[1],d=u[2],h=u[3];h===void 0&&(h=1),l/=360,f/=100,d/=100,i.hsla=[l,f,d,h]}else if(s.startsWith("rgb")){var p=s.match(/([\-\d\.e]+)/g).map(Number),v=am(p,4),m=v[0],g=v[1],y=v[2],b=v[3];b===void 0&&(b=1),i.rgba=[m,g,y,b]}else s.startsWith("#")?i.rgba=e.hexToRgb(s):i.rgba=e.nameToRgb(s)||e.hexToRgb(s)}(a.toLowerCase())}else this.rgba=[t,n,r,o===void 0?1:o]}return R_(e,[{key:"printRGB",value:function(t){var n=(t?this.rgba:this.rgba.slice(0,3)).map(function(r,o){return j9(r,o===3?3:0)});return t?"rgba("+n+")":"rgb("+n+")"}},{key:"printHSL",value:function(t){var n=[360,100,100,1],r=["","%","%",""],o=(t?this.hsla:this.hsla.slice(0,3)).map(function(i,a){return j9(i*n[a],a===3?3:1)+r[a]});return t?"hsla("+o+")":"hsl("+o+")"}},{key:"printHex",value:function(t){var n=this.hex;return t?n:n.substring(0,7)}},{key:"rgba",get:function(){if(this._rgba)return this._rgba;if(!this._hsla)throw new Error("No color is set");return this._rgba=e.hslToRgb(this._hsla)},set:function(t){t.length===3&&(t[3]=1),this._rgba=t,this._hsla=null}},{key:"rgbString",get:function(){return this.printRGB()}},{key:"rgbaString",get:function(){return this.printRGB(!0)}},{key:"hsla",get:function(){if(this._hsla)return this._hsla;if(!this._rgba)throw new Error("No color is set");return this._hsla=e.rgbToHsl(this._rgba)},set:function(t){t.length===3&&(t[3]=1),this._hsla=t,this._rgba=null}},{key:"hslString",get:function(){return this.printHSL()}},{key:"hslaString",get:function(){return this.printHSL(!0)}},{key:"hex",get:function(){var t=this.rgba.map(function(n,r){return r<3?n.toString(16):Math.round(255*n).toString(16)});return"#"+t.map(function(n){return n.padStart(2,"0")}).join("")},set:function(t){this.rgba=e.hexToRgb(t)}}],[{key:"hexToRgb",value:function(t){var n=(t.startsWith("#")?t.slice(1):t).replace(/^(\w{3})$/,"$1F").replace(/^(\w)(\w)(\w)(\w)$/,"$1$1$2$2$3$3$4$4").replace(/^(\w{6})$/,"$1FF");if(!n.match(/^([0-9a-fA-F]{8})$/))throw new Error("Unknown hex color; "+t);var r=n.match(/^(\w\w)(\w\w)(\w\w)(\w\w)$/).slice(1).map(function(o){return parseInt(o,16)});return r[3]=r[3]/255,r}},{key:"nameToRgb",value:function(t){var n=t.toLowerCase().replace("at","T").replace(/[aeiouyldf]/g,"").replace("ght","L").replace("rk","D").slice(-5,4),r=i2t[n];return r===void 0?r:e.hexToRgb(r.replace(/\-/g,"00").padStart(6,"f"))}},{key:"rgbToHsl",value:function(t){var n=am(t,4),r=n[0],o=n[1],i=n[2],a=n[3];r/=255,o/=255,i/=255;var s=Math.max(r,o,i),c=Math.min(r,o,i),u=void 0,l=void 0,f=(s+c)/2;if(s===c)u=l=0;else{var d=s-c;switch(l=f>.5?d/(2-s-c):d/(s+c),s){case r:u=(o-i)/d+(o<i?6:0);break;case o:u=(i-r)/d+2;break;case i:u=(r-o)/d+4}u/=6}return[u,l,f,a]}},{key:"hslToRgb",value:function(t){var n=am(t,4),r=n[0],o=n[1],i=n[2],a=n[3],s=void 0,c=void 0,u=void 0;if(o===0)s=c=u=i;else{var l=function(p,v,m){return m<0&&(m+=1),m>1&&(m-=1),m<.16666666666666666?p+6*(v-p)*m:m<.5?v:m<.6666666666666666?p+(v-p)*(.6666666666666666-m)*6:p},f=i<.5?i*(1+o):i+o-i*o,d=2*i-f;s=l(d,f,r+1/3),c=l(d,f,r),u=l(d,f,r-1/3)}var h=[255*s,255*c,255*u].map(Math.round);return h[3]=a,h}}]),e}(),s2t=function(){function e(){T_(this,e),this._events=[]}return R_(e,[{key:"add",value:function(t,n,r){t.addEventListener(n,r,!1),this._events.push({target:t,type:n,handler:r})}},{key:"remove",value:function(t,n,r){this._events=this._events.filter(function(o){var i=!0;return t&&t!==o.target&&(i=!1),n&&n!==o.type&&(i=!1),r&&r!==o.handler&&(i=!1),i&&e._doRemove(o.target,o.type,o.handler),!i})}},{key:"destroy",value:function(){this._events.forEach(function(t){return e._doRemove(t.target,t.type,t.handler)}),this._events=[]}}],[{key:"_doRemove",value:function(t,n,r){t.removeEventListener(n,r,!1)}}]),e}();function sb(e,t,n){var r=!1;function o(c,u,l){return Math.max(u,Math.min(c,l))}function i(c,u,l){if(l&&(r=!0),r){c.preventDefault();var f=t.getBoundingClientRect(),d=f.width,h=f.height,p=u.clientX,v=u.clientY,m=o(p-f.left,0,d),g=o(v-f.top,0,h);n(m/d,g/h)}}function a(c,u){(c.buttons===void 0?c.which:c.buttons)===1?i(c,c,u):r=!1}function s(c,u){c.touches.length===1?i(c,c.touches[0],u):r=!1}e.add(t,"mousedown",function(c){a(c,!0)}),e.add(t,"touchstart",function(c){s(c,!0)}),e.add(window,"mousemove",a),e.add(t,"touchmove",s),e.add(window,"mouseup",function(c){r=!1}),e.add(t,"touchend",function(c){r=!1}),e.add(t,"touchcancel",function(c){r=!1})}var WH="keydown",sm="mousedown",cb="focusin";function Ba(e,t){return(t||document).querySelector(e)}function KH(e){e.preventDefault(),e.stopPropagation()}function ub(e,t,n,r,o){e.add(t,WH,function(i){n.indexOf(i.key)>=0&&(o&&KH(i),r(i))})}var JH=function(){function e(t){T_(this,e),this.settings={popup:"right",layout:"default",alpha:!0,editor:!0,editorFormat:"hex",cancelButton:!1,defaultColor:"#0cf"},this._events=new s2t,this.onChange=null,this.onDone=null,this.onOpen=null,this.onClose=null,this.setOptions(t)}return R_(e,[{key:"setOptions",value:function(t){var n=this;if(t){var r=this.settings;if(t instanceof HTMLElement)r.parent=t;else{r.parent&&t.parent&&r.parent!==t.parent&&(this._events.remove(r.parent),this._popupInited=!1),function(s,c,u){for(var l in s)u&&u.indexOf(l)>=0||(c[l]=s[l])}(t,r),t.onChange&&(this.onChange=t.onChange),t.onDone&&(this.onDone=t.onDone),t.onOpen&&(this.onOpen=t.onOpen),t.onClose&&(this.onClose=t.onClose);var o=t.color||t.colour;o&&this._setColor(o)}var i=r.parent;if(i&&r.popup&&!this._popupInited){var a=function(s){return n.openHandler(s)};this._events.add(i,"click",a),ub(this._events,i,[" ","Spacebar","Enter"],a),this._popupInited=!0}else t.parent&&!r.popup&&this.show()}}},{key:"openHandler",value:function(t){if(this.show()){t&&t.preventDefault(),this.settings.parent.style.pointerEvents="none";var n=t&&t.type===WH?this._domEdit:this.domElement;setTimeout(function(){return n.focus()},100),this.onOpen&&this.onOpen(this.colour)}}},{key:"closeHandler",value:function(t){var n=t&&t.type,r=!1;if(t)if(n===sm||n===cb){var o=(this.__containedEvent||0)+100;t.timeStamp>o&&(r=!0)}else KH(t),r=!0;else r=!0;r&&this.hide()&&(this.settings.parent.style.pointerEvents="",n!==sm&&this.settings.parent.focus(),this.onClose&&this.onClose(this.colour))}},{key:"movePopup",value:function(t,n){this.closeHandler(),this.setOptions(t),n&&this.openHandler()}},{key:"setColor",value:function(t,n){this._setColor(t,{silent:n})}},{key:"_setColor",value:function(t,n){if(typeof t=="string"&&(t=t.trim()),t){n=n||{};var r=void 0;try{r=new a2t(t)}catch(i){if(n.failSilently)return;throw i}if(!this.settings.alpha){var o=r.hsla;o[3]=1,r.hsla=o}this.colour=this.color=r,this._setHSLA(null,null,null,null,n)}}},{key:"setColour",value:function(t,n){this.setColor(t,n)}},{key:"show",value:function(){if(!this.settings.parent)return!1;if(this.domElement){var t=this._toggleDOM(!0);return this._setPosition(),t}var n,r,o=this.settings.template||'<div class="picker_wrapper" tabindex="-1"><div class="picker_arrow"></div><div class="picker_hue picker_slider"><div class="picker_selector"></div></div><div class="picker_sl"><div class="picker_selector"></div></div><div class="picker_alpha picker_slider"><div class="picker_selector"></div></div><div class="picker_editor"><input aria-label="Type a color name or hex value"/></div><div class="picker_sample"></div><div class="picker_done"><button>Ok</button></div><div class="picker_cancel"><button>Cancel</button></div></div>',i=(n=o,(r=document.createElement("div")).innerHTML=n,r.firstElementChild);return this.domElement=i,this._domH=Ba(".picker_hue",i),this._domSL=Ba(".picker_sl",i),this._domA=Ba(".picker_alpha",i),this._domEdit=Ba(".picker_editor input",i),this._domSample=Ba(".picker_sample",i),this._domOkay=Ba(".picker_done button",i),this._domCancel=Ba(".picker_cancel button",i),i.classList.add("layout_"+this.settings.layout),this.settings.alpha||i.classList.add("no_alpha"),this.settings.editor||i.classList.add("no_editor"),this.settings.cancelButton||i.classList.add("no_cancel"),this._ifPopup(function(){return i.classList.add("popup")}),this._setPosition(),this.colour?this._updateUI():this._setColor(this.settings.defaultColor),this._bindEvents(),!0}},{key:"hide",value:function(){return this._toggleDOM(!1)}},{key:"destroy",value:function(){this._events.destroy(),this.domElement&&this.settings.parent.removeChild(this.domElement)}},{key:"_bindEvents",value:function(){var t=this,n=this,r=this.domElement,o=this._events;function i(c,u,l){o.add(c,u,l)}i(r,"click",function(c){return c.preventDefault()}),sb(o,this._domH,function(c,u){return n._setHSLA(c)}),sb(o,this._domSL,function(c,u){return n._setHSLA(null,c,1-u)}),this.settings.alpha&&sb(o,this._domA,function(c,u){return n._setHSLA(null,null,null,1-u)});var a=this._domEdit;i(a,"input",function(c){n._setColor(this.value,{fromEditor:!0,failSilently:!0})}),i(a,"focus",function(c){var u=this;u.selectionStart===u.selectionEnd&&u.select()}),this._ifPopup(function(){var c=function(l){return t.closeHandler(l)};i(window,sm,c),i(window,cb,c),ub(o,r,["Esc","Escape"],c);var u=function(l){t.__containedEvent=l.timeStamp};i(r,sm,u),i(r,cb,u),i(t._domCancel,"click",c)});var s=function(c){t._ifPopup(function(){return t.closeHandler(c)}),t.onDone&&t.onDone(t.colour)};i(this._domOkay,"click",s),ub(o,r,["Enter"],s)}},{key:"_setPosition",value:function(){var t=this.settings.parent,n=this.domElement;t!==n.parentNode&&t.appendChild(n),this._ifPopup(function(r){getComputedStyle(t).position==="static"&&(t.style.position="relative");var o=r===!0?"popup_right":"popup_"+r;["popup_top","popup_bottom","popup_left","popup_right"].forEach(function(i){i===o?n.classList.add(i):n.classList.remove(i)}),n.classList.add(o)})}},{key:"_setHSLA",value:function(t,n,r,o,i){i=i||{};var a=this.colour,s=a.hsla;[t,n,r,o].forEach(function(c,u){(c||c===0)&&(s[u]=c)}),a.hsla=s,this._updateUI(i),this.onChange&&!i.silent&&this.onChange(a)}},{key:"_updateUI",value:function(t){if(this.domElement){t=t||{};var n=this.colour,r=n.hsla,o="hsl("+360*r[0]+", 100%, 50%)",i=n.hslString,a=n.hslaString,s=this._domH,c=this._domSL,u=this._domA,l=Ba(".picker_selector",s),f=Ba(".picker_selector",c),d=Ba(".picker_selector",u);b(0,l,r[0]),this._domSL.style.backgroundColor=this._domH.style.color=o,b(0,f,r[1]),w(0,f,1-r[2]),c.style.color=i,w(0,d,1-r[3]);var h=i,p=h.replace("hsl","hsla").replace(")",", 0)"),v="linear-gradient("+[h,p]+")";if(this._domA.style.background=v+`, linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0 / 2em 2em,
133
- linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em / 2em 2em`,!t.fromEditor){var m=this.settings.editorFormat,g=this.settings.alpha,y=void 0;switch(m){case"rgb":y=n.printRGB(g);break;case"hsl":y=n.printHSL(g);break;default:y=n.printHex(g)}this._domEdit.value=y}this._domSample.style.color=a}function b(x,k,j){k.style.left=100*j+"%"}function w(x,k,j){k.style.top=100*j+"%"}}},{key:"_ifPopup",value:function(t,n){this.settings.parent&&this.settings.popup?t&&t(this.settings.popup):n&&n()}},{key:"_toggleDOM",value:function(t){var n=this.domElement;if(!n)return!1;var r=t?"":"none",o=n.style.display!==r;return o&&(n.style.display=r),o}}]),e}(),lb=document.createElement("style");lb.textContent='.picker_wrapper.no_alpha .picker_alpha{display:none}.picker_wrapper.no_editor .picker_editor{position:absolute;z-index:-1;opacity:0}.picker_wrapper.no_cancel .picker_cancel{display:none}.layout_default.picker_wrapper{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:stretch;font-size:10px;width:25em;padding:.5em}.layout_default.picker_wrapper input,.layout_default.picker_wrapper button{font-size:1rem}.layout_default.picker_wrapper>*{margin:.5em}.layout_default.picker_wrapper::before{content:"";display:block;width:100%;height:0;order:1}.layout_default .picker_slider,.layout_default .picker_selector{padding:1em}.layout_default .picker_hue{width:100%}.layout_default .picker_sl{flex:1 1 auto}.layout_default .picker_sl::before{content:"";display:block;padding-bottom:100%}.layout_default .picker_editor{order:1;width:6.5rem}.layout_default .picker_editor input{width:100%;height:100%}.layout_default .picker_sample{order:1;flex:1 1 auto}.layout_default .picker_done,.layout_default .picker_cancel{order:1}.picker_wrapper{box-sizing:border-box;background:#f2f2f2;box-shadow:0 0 0 1px silver;cursor:default;font-family:sans-serif;color:#444;pointer-events:auto}.picker_wrapper:focus{outline:none}.picker_wrapper button,.picker_wrapper input{box-sizing:border-box;border:none;box-shadow:0 0 0 1px silver;outline:none}.picker_wrapper button:focus,.picker_wrapper button:active,.picker_wrapper input:focus,.picker_wrapper input:active{box-shadow:0 0 2px 1px #1e90ff}.picker_wrapper button{padding:.4em .6em;cursor:pointer;background-color:#f5f5f5;background-image:linear-gradient(0deg, gainsboro, transparent)}.picker_wrapper button:active{background-image:linear-gradient(0deg, transparent, gainsboro)}.picker_wrapper button:hover{background-color:#fff}.picker_selector{position:absolute;z-index:1;display:block;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);border:2px solid #fff;border-radius:100%;box-shadow:0 0 3px 1px #67b9ff;background:currentColor;cursor:pointer}.picker_slider .picker_selector{border-radius:2px}.picker_hue{position:relative;background-image:linear-gradient(90deg, red, yellow, lime, cyan, blue, magenta, red);box-shadow:0 0 0 1px silver}.picker_sl{position:relative;box-shadow:0 0 0 1px silver;background-image:linear-gradient(180deg, white, rgba(255, 255, 255, 0) 50%),linear-gradient(0deg, black, rgba(0, 0, 0, 0) 50%),linear-gradient(90deg, #808080, rgba(128, 128, 128, 0))}.picker_alpha,.picker_sample{position:relative;background:linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0/2em 2em,linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em/2em 2em;box-shadow:0 0 0 1px silver}.picker_alpha .picker_selector,.picker_sample .picker_selector{background:none}.picker_editor input{font-family:monospace;padding:.2em .4em}.picker_sample::before{content:"";position:absolute;display:block;width:100%;height:100%;background:currentColor}.picker_arrow{position:absolute;z-index:-1}.picker_wrapper.popup{position:absolute;z-index:2;margin:1.5em}.picker_wrapper.popup,.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{background:#f2f2f2;box-shadow:0 0 10px 1px rgba(0,0,0,.4)}.picker_wrapper.popup .picker_arrow{width:3em;height:3em;margin:0}.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{content:"";display:block;position:absolute;top:0;left:0;z-index:-99}.picker_wrapper.popup .picker_arrow::before{width:100%;height:100%;-webkit-transform:skew(45deg);transform:skew(45deg);-webkit-transform-origin:0 100%;transform-origin:0 100%}.picker_wrapper.popup .picker_arrow::after{width:150%;height:150%;box-shadow:none}.popup.popup_top{bottom:100%;left:0}.popup.popup_top .picker_arrow{bottom:0;left:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.popup.popup_bottom{top:100%;left:0}.popup.popup_bottom .picker_arrow{top:0;left:0;-webkit-transform:rotate(90deg) scale(1, -1);transform:rotate(90deg) scale(1, -1)}.popup.popup_left{top:0;right:100%}.popup.popup_left .picker_arrow{top:0;right:0;-webkit-transform:scale(-1, 1);transform:scale(-1, 1)}.popup.popup_right{top:0;left:100%}.popup.popup_right .picker_arrow{top:0;left:0}',document.documentElement.firstElementChild.appendChild(lb),JH.StyleElement=lb;var c2t=Object.freeze({__proto__:null,default:JH}),u2t=typeof global=="object"&&global&&global.Object===Object&&global;const GH=u2t;var l2t=typeof self=="object"&&self&&self.Object===Object&&self,f2t=GH||l2t||Function("return this")();const ys=f2t;var d2t=ys.Symbol;const hs=d2t;var QH=Object.prototype,h2t=QH.hasOwnProperty,p2t=QH.toString,Md=hs?hs.toStringTag:void 0;function v2t(e){var t=h2t.call(e,Md),n=e[Md];try{e[Md]=void 0;var r=!0}catch{}var o=p2t.call(e);return r&&(t?e[Md]=n:delete e[Md]),o}var m2t=Object.prototype,g2t=m2t.toString;function y2t(e){return g2t.call(e)}var b2t="[object Null]",w2t="[object Undefined]",_9=hs?hs.toStringTag:void 0;function vl(e){return e==null?e===void 0?w2t:b2t:_9&&_9 in Object(e)?v2t(e):y2t(e)}function ps(e){return e!=null&&typeof e=="object"}var x2t="[object Symbol]";function I_(e){return typeof e=="symbol"||ps(e)&&vl(e)==x2t}function k2t(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var j2t=Array.isArray;const Yi=j2t;var _2t=1/0,S9=hs?hs.prototype:void 0,$9=S9?S9.toString:void 0;function YH(e){if(typeof e=="string")return e;if(Yi(e))return k2t(e,YH)+"";if(I_(e))return $9?$9.call(e):"";var t=e+"";return t=="0"&&1/e==-_2t?"-0":t}function bs(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function N_(e){return e}var S2t="[object AsyncFunction]",$2t="[object Function]",C2t="[object GeneratorFunction]",E2t="[object Proxy]";function D_(e){if(!bs(e))return!1;var t=vl(e);return t==$2t||t==C2t||t==S2t||t==E2t}var O2t=ys["__core-js_shared__"];const fb=O2t;var C9=function(){var e=/[^.]+$/.exec(fb&&fb.keys&&fb.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function M2t(e){return!!C9&&C9 in e}var A2t=Function.prototype,P2t=A2t.toString;function ml(e){if(e!=null){try{return P2t.call(e)}catch{}try{return e+""}catch{}}return""}var T2t=/[\\^$.*+?()[\]{}|]/g,R2t=/^\[object .+?Constructor\]$/,I2t=Function.prototype,N2t=Object.prototype,D2t=I2t.toString,z2t=N2t.hasOwnProperty,L2t=RegExp("^"+D2t.call(z2t).replace(T2t,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function B2t(e){if(!bs(e)||M2t(e))return!1;var t=D_(e)?L2t:R2t;return t.test(ml(e))}function F2t(e,t){return e==null?void 0:e[t]}function gl(e,t){var n=F2t(e,t);return B2t(n)?n:void 0}var q2t=gl(ys,"WeakMap");const Yx=q2t;var E9=Object.create,H2t=function(){function e(){}return function(t){if(!bs(t))return{};if(E9)return E9(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const V2t=H2t;function U2t(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function XH(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var W2t=800,K2t=16,J2t=Date.now;function G2t(e){var t=0,n=0;return function(){var r=J2t(),o=K2t-(r-n);if(n=r,o>0){if(++t>=W2t)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Q2t(e){return function(){return e}}var Y2t=function(){try{var e=gl(Object,"defineProperty");return e({},"",{}),e}catch{}}();const r0=Y2t;var X2t=r0?function(e,t){return r0(e,"toString",{configurable:!0,enumerable:!1,value:Q2t(t),writable:!0})}:N_;const Z2t=X2t;var tjt=G2t(Z2t);const ejt=tjt;function njt(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var rjt=9007199254740991,ojt=/^(?:0|[1-9]\d*)$/;function z_(e,t){var n=typeof e;return t=t??rjt,!!t&&(n=="number"||n!="symbol"&&ojt.test(e))&&e>-1&&e%1==0&&e<t}function y1(e,t,n){t=="__proto__"&&r0?r0(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Bp(e,t){return e===t||e!==e&&t!==t}var ijt=Object.prototype,ajt=ijt.hasOwnProperty;function ZH(e,t,n){var r=e[t];(!(ajt.call(e,t)&&Bp(r,n))||n===void 0&&!(t in e))&&y1(e,t,n)}function cd(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),o?y1(n,s,c):ZH(n,s,c)}return n}var O9=Math.max;function sjt(e,t,n){return t=O9(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=O9(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),U2t(e,this,s)}}function cjt(e,t){return ejt(sjt(e,t,N_),e+"")}var ujt=9007199254740991;function L_(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ujt}function b1(e){return e!=null&&L_(e.length)&&!D_(e)}function ljt(e,t,n){if(!bs(n))return!1;var r=typeof t;return(r=="number"?b1(n)&&z_(t,n.length):r=="string"&&t in n)?Bp(n[t],e):!1}function tV(e){return cjt(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&ljt(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var s=n[r];s&&e(t,s,r,i)}return t})}var fjt=Object.prototype;function B_(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||fjt;return e===n}function djt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var hjt="[object Arguments]";function M9(e){return ps(e)&&vl(e)==hjt}var eV=Object.prototype,pjt=eV.hasOwnProperty,vjt=eV.propertyIsEnumerable,mjt=M9(function(){return arguments}())?M9:function(e){return ps(e)&&pjt.call(e,"callee")&&!vjt.call(e,"callee")};const o0=mjt;function gjt(){return!1}var nV=typeof exports=="object"&&exports&&!exports.nodeType&&exports,A9=nV&&typeof module=="object"&&module&&!module.nodeType&&module,yjt=A9&&A9.exports===nV,P9=yjt?ys.Buffer:void 0,bjt=P9?P9.isBuffer:void 0,wjt=bjt||gjt;const cp=wjt;var xjt="[object Arguments]",kjt="[object Array]",jjt="[object Boolean]",_jt="[object Date]",Sjt="[object Error]",$jt="[object Function]",Cjt="[object Map]",Ejt="[object Number]",Ojt="[object Object]",Mjt="[object RegExp]",Ajt="[object Set]",Pjt="[object String]",Tjt="[object WeakMap]",Rjt="[object ArrayBuffer]",Ijt="[object DataView]",Njt="[object Float32Array]",Djt="[object Float64Array]",zjt="[object Int8Array]",Ljt="[object Int16Array]",Bjt="[object Int32Array]",Fjt="[object Uint8Array]",qjt="[object Uint8ClampedArray]",Hjt="[object Uint16Array]",Vjt="[object Uint32Array]",gr={};gr[Njt]=gr[Djt]=gr[zjt]=gr[Ljt]=gr[Bjt]=gr[Fjt]=gr[qjt]=gr[Hjt]=gr[Vjt]=!0;gr[xjt]=gr[kjt]=gr[Rjt]=gr[jjt]=gr[Ijt]=gr[_jt]=gr[Sjt]=gr[$jt]=gr[Cjt]=gr[Ejt]=gr[Ojt]=gr[Mjt]=gr[Ajt]=gr[Pjt]=gr[Tjt]=!1;function Ujt(e){return ps(e)&&L_(e.length)&&!!gr[vl(e)]}function F_(e){return function(t){return e(t)}}var rV=typeof exports=="object"&&exports&&!exports.nodeType&&exports,yh=rV&&typeof module=="object"&&module&&!module.nodeType&&module,Wjt=yh&&yh.exports===rV,db=Wjt&&GH.process,Kjt=function(){try{var e=yh&&yh.require&&yh.require("util").types;return e||db&&db.binding&&db.binding("util")}catch{}}();const zf=Kjt;var T9=zf&&zf.isTypedArray,Jjt=T9?F_(T9):Ujt;const q_=Jjt;var Gjt=Object.prototype,Qjt=Gjt.hasOwnProperty;function oV(e,t){var n=Yi(e),r=!n&&o0(e),o=!n&&!r&&cp(e),i=!n&&!r&&!o&&q_(e),a=n||r||o||i,s=a?djt(e.length,String):[],c=s.length;for(var u in e)(t||Qjt.call(e,u))&&!(a&&(u=="length"||o&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||z_(u,c)))&&s.push(u);return s}function iV(e,t){return function(n){return e(t(n))}}var Yjt=iV(Object.keys,Object);const Xjt=Yjt;var Zjt=Object.prototype,t_t=Zjt.hasOwnProperty;function e_t(e){if(!B_(e))return Xjt(e);var t=[];for(var n in Object(e))t_t.call(e,n)&&n!="constructor"&&t.push(n);return t}function Fp(e){return b1(e)?oV(e):e_t(e)}function n_t(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var r_t=Object.prototype,o_t=r_t.hasOwnProperty;function i_t(e){if(!bs(e))return n_t(e);var t=B_(e),n=[];for(var r in e)r=="constructor"&&(t||!o_t.call(e,r))||n.push(r);return n}function ud(e){return b1(e)?oV(e,!0):i_t(e)}var a_t=tV(function(e,t,n,r){cd(t,ud(t),e,r)});const s_t=a_t;var c_t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u_t=/^\w*$/;function H_(e,t){if(Yi(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||I_(e)?!0:u_t.test(e)||!c_t.test(e)||t!=null&&e in Object(t)}var l_t=gl(Object,"create");const up=l_t;function f_t(){this.__data__=up?up(null):{},this.size=0}function d_t(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var h_t="__lodash_hash_undefined__",p_t=Object.prototype,v_t=p_t.hasOwnProperty;function m_t(e){var t=this.__data__;if(up){var n=t[e];return n===h_t?void 0:n}return v_t.call(t,e)?t[e]:void 0}var g_t=Object.prototype,y_t=g_t.hasOwnProperty;function b_t(e){var t=this.__data__;return up?t[e]!==void 0:y_t.call(t,e)}var w_t="__lodash_hash_undefined__";function x_t(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=up&&t===void 0?w_t:t,this}function sl(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}sl.prototype.clear=f_t;sl.prototype.delete=d_t;sl.prototype.get=m_t;sl.prototype.has=b_t;sl.prototype.set=x_t;function k_t(){this.__data__=[],this.size=0}function w1(e,t){for(var n=e.length;n--;)if(Bp(e[n][0],t))return n;return-1}var j_t=Array.prototype,__t=j_t.splice;function S_t(e){var t=this.__data__,n=w1(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():__t.call(t,n,1),--this.size,!0}function $_t(e){var t=this.__data__,n=w1(t,e);return n<0?void 0:t[n][1]}function C_t(e){return w1(this.__data__,e)>-1}function E_t(e,t){var n=this.__data__,r=w1(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function rc(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}rc.prototype.clear=k_t;rc.prototype.delete=S_t;rc.prototype.get=$_t;rc.prototype.has=C_t;rc.prototype.set=E_t;var O_t=gl(ys,"Map");const lp=O_t;function M_t(){this.size=0,this.__data__={hash:new sl,map:new(lp||rc),string:new sl}}function A_t(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function x1(e,t){var n=e.__data__;return A_t(t)?n[typeof t=="string"?"string":"hash"]:n.map}function P_t(e){var t=x1(this,e).delete(e);return this.size-=t?1:0,t}function T_t(e){return x1(this,e).get(e)}function R_t(e){return x1(this,e).has(e)}function I_t(e,t){var n=x1(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function oc(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}oc.prototype.clear=M_t;oc.prototype.delete=P_t;oc.prototype.get=T_t;oc.prototype.has=R_t;oc.prototype.set=I_t;var N_t="Expected a function";function V_(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(N_t);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(V_.Cache||oc),n}V_.Cache=oc;var D_t=500;function z_t(e){var t=V_(e,function(r){return n.size===D_t&&n.clear(),r}),n=t.cache;return t}var L_t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,B_t=/\\(\\)?/g,F_t=z_t(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(L_t,function(n,r,o,i){t.push(o?i.replace(B_t,"$1"):r||n)}),t});const q_t=F_t;function H_t(e){return e==null?"":YH(e)}function aV(e,t){return Yi(e)?e:H_(e,t)?[e]:q_t(H_t(e))}var V_t=1/0;function k1(e){if(typeof e=="string"||I_(e))return e;var t=e+"";return t=="0"&&1/e==-V_t?"-0":t}function sV(e,t){t=aV(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[k1(t[n++])];return n&&n==r?e:void 0}function U_t(e,t,n){var r=e==null?void 0:sV(e,t);return r===void 0?n:r}function cV(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var W_t=iV(Object.getPrototypeOf,Object);const U_=W_t;var K_t="[object Object]",J_t=Function.prototype,G_t=Object.prototype,uV=J_t.toString,Q_t=G_t.hasOwnProperty,Y_t=uV.call(Object);function lV(e){if(!ps(e)||vl(e)!=K_t)return!1;var t=U_(e);if(t===null)return!0;var n=Q_t.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&uV.call(n)==Y_t}function X_t(){this.__data__=new rc,this.size=0}function Z_t(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function tSt(e){return this.__data__.get(e)}function eSt(e){return this.__data__.has(e)}var nSt=200;function rSt(e,t){var n=this.__data__;if(n instanceof rc){var r=n.__data__;if(!lp||r.length<nSt-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new oc(r)}return n.set(e,t),this.size=n.size,this}function Sa(e){var t=this.__data__=new rc(e);this.size=t.size}Sa.prototype.clear=X_t;Sa.prototype.delete=Z_t;Sa.prototype.get=tSt;Sa.prototype.has=eSt;Sa.prototype.set=rSt;function oSt(e,t){return e&&cd(t,Fp(t),e)}function iSt(e,t){return e&&cd(t,ud(t),e)}var fV=typeof exports=="object"&&exports&&!exports.nodeType&&exports,R9=fV&&typeof module=="object"&&module&&!module.nodeType&&module,aSt=R9&&R9.exports===fV,I9=aSt?ys.Buffer:void 0,N9=I9?I9.allocUnsafe:void 0;function dV(e,t){if(t)return e.slice();var n=e.length,r=N9?N9(n):new e.constructor(n);return e.copy(r),r}function sSt(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function hV(){return[]}var cSt=Object.prototype,uSt=cSt.propertyIsEnumerable,D9=Object.getOwnPropertySymbols,lSt=D9?function(e){return e==null?[]:(e=Object(e),sSt(D9(e),function(t){return uSt.call(e,t)}))}:hV;const W_=lSt;function fSt(e,t){return cd(e,W_(e),t)}var dSt=Object.getOwnPropertySymbols,hSt=dSt?function(e){for(var t=[];e;)cV(t,W_(e)),e=U_(e);return t}:hV;const pV=hSt;function pSt(e,t){return cd(e,pV(e),t)}function vV(e,t,n){var r=t(e);return Yi(e)?r:cV(r,n(e))}function Xx(e){return vV(e,Fp,W_)}function vSt(e){return vV(e,ud,pV)}var mSt=gl(ys,"DataView");const Zx=mSt;var gSt=gl(ys,"Promise");const tk=gSt;var ySt=gl(ys,"Set");const ek=ySt;var z9="[object Map]",bSt="[object Object]",L9="[object Promise]",B9="[object Set]",F9="[object WeakMap]",q9="[object DataView]",wSt=ml(Zx),xSt=ml(lp),kSt=ml(tk),jSt=ml(ek),_St=ml(Yx),ku=vl;(Zx&&ku(new Zx(new ArrayBuffer(1)))!=q9||lp&&ku(new lp)!=z9||tk&&ku(tk.resolve())!=L9||ek&&ku(new ek)!=B9||Yx&&ku(new Yx)!=F9)&&(ku=function(e){var t=vl(e),n=t==bSt?e.constructor:void 0,r=n?ml(n):"";if(r)switch(r){case wSt:return q9;case xSt:return z9;case kSt:return L9;case jSt:return B9;case _St:return F9}return t});const fp=ku;var SSt=Object.prototype,$St=SSt.hasOwnProperty;function CSt(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&$St.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var ESt=ys.Uint8Array;const i0=ESt;function K_(e){var t=new e.constructor(e.byteLength);return new i0(t).set(new i0(e)),t}function OSt(e,t){var n=t?K_(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var MSt=/\w*$/;function ASt(e){var t=new e.constructor(e.source,MSt.exec(e));return t.lastIndex=e.lastIndex,t}var H9=hs?hs.prototype:void 0,V9=H9?H9.valueOf:void 0;function PSt(e){return V9?Object(V9.call(e)):{}}function mV(e,t){var n=t?K_(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var TSt="[object Boolean]",RSt="[object Date]",ISt="[object Map]",NSt="[object Number]",DSt="[object RegExp]",zSt="[object Set]",LSt="[object String]",BSt="[object Symbol]",FSt="[object ArrayBuffer]",qSt="[object DataView]",HSt="[object Float32Array]",VSt="[object Float64Array]",USt="[object Int8Array]",WSt="[object Int16Array]",KSt="[object Int32Array]",JSt="[object Uint8Array]",GSt="[object Uint8ClampedArray]",QSt="[object Uint16Array]",YSt="[object Uint32Array]";function XSt(e,t,n){var r=e.constructor;switch(t){case FSt:return K_(e);case TSt:case RSt:return new r(+e);case qSt:return OSt(e,n);case HSt:case VSt:case USt:case WSt:case KSt:case JSt:case GSt:case QSt:case YSt:return mV(e,n);case ISt:return new r;case NSt:case LSt:return new r(e);case DSt:return ASt(e);case zSt:return new r;case BSt:return PSt(e)}}function gV(e){return typeof e.constructor=="function"&&!B_(e)?V2t(U_(e)):{}}var ZSt="[object Map]";function t$t(e){return ps(e)&&fp(e)==ZSt}var U9=zf&&zf.isMap,e$t=U9?F_(U9):t$t;const n$t=e$t;var r$t="[object Set]";function o$t(e){return ps(e)&&fp(e)==r$t}var W9=zf&&zf.isSet,i$t=W9?F_(W9):o$t;const a$t=i$t;var s$t=1,c$t=2,u$t=4,yV="[object Arguments]",l$t="[object Array]",f$t="[object Boolean]",d$t="[object Date]",h$t="[object Error]",bV="[object Function]",p$t="[object GeneratorFunction]",v$t="[object Map]",m$t="[object Number]",wV="[object Object]",g$t="[object RegExp]",y$t="[object Set]",b$t="[object String]",w$t="[object Symbol]",x$t="[object WeakMap]",k$t="[object ArrayBuffer]",j$t="[object DataView]",_$t="[object Float32Array]",S$t="[object Float64Array]",$$t="[object Int8Array]",C$t="[object Int16Array]",E$t="[object Int32Array]",O$t="[object Uint8Array]",M$t="[object Uint8ClampedArray]",A$t="[object Uint16Array]",P$t="[object Uint32Array]",ur={};ur[yV]=ur[l$t]=ur[k$t]=ur[j$t]=ur[f$t]=ur[d$t]=ur[_$t]=ur[S$t]=ur[$$t]=ur[C$t]=ur[E$t]=ur[v$t]=ur[m$t]=ur[wV]=ur[g$t]=ur[y$t]=ur[b$t]=ur[w$t]=ur[O$t]=ur[M$t]=ur[A$t]=ur[P$t]=!0;ur[h$t]=ur[bV]=ur[x$t]=!1;function Lm(e,t,n,r,o,i){var a,s=t&s$t,c=t&c$t,u=t&u$t;if(n&&(a=o?n(e,r,o,i):n(e)),a!==void 0)return a;if(!bs(e))return e;var l=Yi(e);if(l){if(a=CSt(e),!s)return XH(e,a)}else{var f=fp(e),d=f==bV||f==p$t;if(cp(e))return dV(e,s);if(f==wV||f==yV||d&&!o){if(a=c||d?{}:gV(e),!s)return c?pSt(e,iSt(a,e)):fSt(e,oSt(a,e))}else{if(!ur[f])return o?e:{};a=XSt(e,f,s)}}i||(i=new Sa);var h=i.get(e);if(h)return h;i.set(e,a),a$t(e)?e.forEach(function(m){a.add(Lm(m,t,n,m,e,i))}):n$t(e)&&e.forEach(function(m,g){a.set(g,Lm(m,t,n,g,e,i))});var p=u?c?vSt:Xx:c?ud:Fp,v=l?void 0:p(e);return njt(v||e,function(m,g){v&&(g=m,m=e[g]),ZH(a,g,Lm(m,t,n,g,e,i))}),a}var T$t=1,R$t=4;function I$t(e){return Lm(e,T$t|R$t)}var N$t="__lodash_hash_undefined__";function D$t(e){return this.__data__.set(e,N$t),this}function z$t(e){return this.__data__.has(e)}function a0(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new oc;++t<n;)this.add(e[t])}a0.prototype.add=a0.prototype.push=D$t;a0.prototype.has=z$t;function L$t(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function B$t(e,t){return e.has(t)}var F$t=1,q$t=2;function xV(e,t,n,r,o,i){var a=n&F$t,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var u=i.get(e),l=i.get(t);if(u&&l)return u==t&&l==e;var f=-1,d=!0,h=n&q$t?new a0:void 0;for(i.set(e,t),i.set(t,e);++f<s;){var p=e[f],v=t[f];if(r)var m=a?r(v,p,f,t,e,i):r(p,v,f,e,t,i);if(m!==void 0){if(m)continue;d=!1;break}if(h){if(!L$t(t,function(g,y){if(!B$t(h,y)&&(p===g||o(p,g,n,r,i)))return h.push(y)})){d=!1;break}}else if(!(p===v||o(p,v,n,r,i))){d=!1;break}}return i.delete(e),i.delete(t),d}function H$t(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}function V$t(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var U$t=1,W$t=2,K$t="[object Boolean]",J$t="[object Date]",G$t="[object Error]",Q$t="[object Map]",Y$t="[object Number]",X$t="[object RegExp]",Z$t="[object Set]",tCt="[object String]",eCt="[object Symbol]",nCt="[object ArrayBuffer]",rCt="[object DataView]",K9=hs?hs.prototype:void 0,hb=K9?K9.valueOf:void 0;function oCt(e,t,n,r,o,i,a){switch(n){case rCt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case nCt:return!(e.byteLength!=t.byteLength||!i(new i0(e),new i0(t)));case K$t:case J$t:case Y$t:return Bp(+e,+t);case G$t:return e.name==t.name&&e.message==t.message;case X$t:case tCt:return e==t+"";case Q$t:var s=H$t;case Z$t:var c=r&U$t;if(s||(s=V$t),e.size!=t.size&&!c)return!1;var u=a.get(e);if(u)return u==t;r|=W$t,a.set(e,t);var l=xV(s(e),s(t),r,o,i,a);return a.delete(e),l;case eCt:if(hb)return hb.call(e)==hb.call(t)}return!1}var iCt=1,aCt=Object.prototype,sCt=aCt.hasOwnProperty;function cCt(e,t,n,r,o,i){var a=n&iCt,s=Xx(e),c=s.length,u=Xx(t),l=u.length;if(c!=l&&!a)return!1;for(var f=c;f--;){var d=s[f];if(!(a?d in t:sCt.call(t,d)))return!1}var h=i.get(e),p=i.get(t);if(h&&p)return h==t&&p==e;var v=!0;i.set(e,t),i.set(t,e);for(var m=a;++f<c;){d=s[f];var g=e[d],y=t[d];if(r)var b=a?r(y,g,d,t,e,i):r(g,y,d,e,t,i);if(!(b===void 0?g===y||o(g,y,n,r,i):b)){v=!1;break}m||(m=d=="constructor")}if(v&&!m){var w=e.constructor,x=t.constructor;w!=x&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof x=="function"&&x instanceof x)&&(v=!1)}return i.delete(e),i.delete(t),v}var uCt=1,J9="[object Arguments]",G9="[object Array]",cm="[object Object]",lCt=Object.prototype,Q9=lCt.hasOwnProperty;function fCt(e,t,n,r,o,i){var a=Yi(e),s=Yi(t),c=a?G9:fp(e),u=s?G9:fp(t);c=c==J9?cm:c,u=u==J9?cm:u;var l=c==cm,f=u==cm,d=c==u;if(d&&cp(e)){if(!cp(t))return!1;a=!0,l=!1}if(d&&!l)return i||(i=new Sa),a||q_(e)?xV(e,t,n,r,o,i):oCt(e,t,c,n,r,o,i);if(!(n&uCt)){var h=l&&Q9.call(e,"__wrapped__"),p=f&&Q9.call(t,"__wrapped__");if(h||p){var v=h?e.value():e,m=p?t.value():t;return i||(i=new Sa),o(v,m,n,r,i)}}return d?(i||(i=new Sa),cCt(e,t,n,r,o,i)):!1}function J_(e,t,n,r,o){return e===t?!0:e==null||t==null||!ps(e)&&!ps(t)?e!==e&&t!==t:fCt(e,t,n,r,J_,o)}var dCt=1,hCt=2;function pCt(e,t,n,r){var o=n.length,i=o,a=!r;if(e==null)return!i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){s=n[o];var c=s[0],u=e[c],l=s[1];if(a&&s[2]){if(u===void 0&&!(c in e))return!1}else{var f=new Sa;if(r)var d=r(u,l,c,e,t,f);if(!(d===void 0?J_(l,u,dCt|hCt,r,f):d))return!1}}return!0}function kV(e){return e===e&&!bs(e)}function vCt(e){for(var t=Fp(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,kV(o)]}return t}function jV(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function mCt(e){var t=vCt(e);return t.length==1&&t[0][2]?jV(t[0][0],t[0][1]):function(n){return n===e||pCt(n,e,t)}}function gCt(e,t){return e!=null&&t in Object(e)}function yCt(e,t,n){t=aV(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var a=k1(t[r]);if(!(i=e!=null&&n(e,a)))break;e=e[a]}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&L_(o)&&z_(a,o)&&(Yi(e)||o0(e)))}function bCt(e,t){return e!=null&&yCt(e,t,gCt)}var wCt=1,xCt=2;function kCt(e,t){return H_(e)&&kV(t)?jV(k1(e),t):function(n){var r=U_t(n,e);return r===void 0&&r===t?bCt(n,e):J_(t,r,wCt|xCt)}}function jCt(e){return function(t){return t==null?void 0:t[e]}}function _Ct(e){return function(t){return sV(t,e)}}function SCt(e){return H_(e)?jCt(k1(e)):_Ct(e)}function $Ct(e){return typeof e=="function"?e:e==null?N_:typeof e=="object"?Yi(e)?kCt(e[0],e[1]):mCt(e):SCt(e)}function CCt(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var c=a[e?s:++o];if(n(i[c],c,i)===!1)break}return t}}var ECt=CCt();const _V=ECt;function OCt(e,t){return e&&_V(e,t,Fp)}function nk(e,t,n){(n!==void 0&&!Bp(e[t],n)||n===void 0&&!(t in e))&&y1(e,t,n)}function MCt(e){return ps(e)&&b1(e)}function rk(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function ACt(e){return cd(e,ud(e))}function PCt(e,t,n,r,o,i,a){var s=rk(e,n),c=rk(t,n),u=a.get(c);if(u){nk(e,n,u);return}var l=i?i(s,c,n+"",e,t,a):void 0,f=l===void 0;if(f){var d=Yi(c),h=!d&&cp(c),p=!d&&!h&&q_(c);l=c,d||h||p?Yi(s)?l=s:MCt(s)?l=XH(s):h?(f=!1,l=dV(c,!0)):p?(f=!1,l=mV(c,!0)):l=[]:lV(c)||o0(c)?(l=s,o0(s)?l=ACt(s):(!bs(s)||D_(s))&&(l=gV(c))):f=!1}f&&(a.set(c,l),o(l,c,r,i,a),a.delete(c)),nk(e,n,l)}function SV(e,t,n,r,o){e!==t&&_V(t,function(i,a){if(o||(o=new Sa),bs(i))PCt(e,t,a,n,SV,r,o);else{var s=r?r(rk(e,a),i,a+"",e,t,o):void 0;s===void 0&&(s=i),nk(e,a,s)}},ud)}var TCt=tV(function(e,t,n,r){SV(e,t,n,r)});const RCt=TCt;function ICt(e,t){var n={};return t=$Ct(t),OCt(e,function(r,o,i){y1(n,t(r,o,i),r)}),n}var s0=function(){return s0=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},s0.apply(this,arguments)};function NCt(e){return e.toLowerCase()}var DCt=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],zCt=/[^A-Z0-9]+/gi;function LCt(e,t){t===void 0&&(t={});for(var n=t.splitRegexp,r=n===void 0?DCt:n,o=t.stripRegexp,i=o===void 0?zCt:o,a=t.transform,s=a===void 0?NCt:a,c=t.delimiter,u=c===void 0?" ":c,l=Y9(Y9(e,r,"$1\0$2"),i,"\0"),f=0,d=l.length;l.charAt(f)==="\0";)f++;for(;l.charAt(d-1)==="\0";)d--;return l.slice(f,d).split("\0").map(s).join(u)}function Y9(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce(function(r,o){return r.replace(o,n)},e)}function $V(e,t){var n=e.charAt(0),r=e.substr(1).toLowerCase();return t>0&&n>="0"&&n<="9"?"_"+n+r:""+n.toUpperCase()+r}function BCt(e,t){return t===void 0&&(t={}),LCt(e,s0({delimiter:"",transform:$V},t))}function FCt(e,t){return t===0?e.toLowerCase():$V(e,t)}function qCt(e,t){return t===void 0&&(t={}),BCt(e,s0({transform:FCt},t))}function HCt(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}const VCt=HCt("String,Number,Boolean,Function,Symbol,BigInt");function UCt(e){const t=e==null?void 0:e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function WCt(e,t){let n;const r=UCt(t);if(VCt(r)){const o=typeof e;n=o===r.toLowerCase(),!n&&o==="object"&&(n=e instanceof t)}else r==="Object"?n=bs(e):r==="Array"?n=Array.isArray(e):r==="null"?n=e===null:n=e instanceof t;return{valid:n,expectedType:r}}function KCt({prop:e,type:t,validator:n}){if(![void 0,null].includes(e)&&t){let r=!1;const o=Array.isArray(t)?t:[t],i=[];for(let a=0;a<o.length&&!r;a++){const{valid:s,expectedType:c}=WCt(e,o[a]);i.push(c||""),r=s}if(!r)throw new Error(`Invalid prop: type check failed, expecting [${i.join(", ")}], receiving: ${e}`)}if(n&&!n(e))throw new Error(`Invalid prop: validator check failed, receiving: ${e}`)}function JCt(e,{mergeObject:t,mergeFunction:n}){const r=[];for(let i=e.length-1;i>=0;i--)r.push(e[i]);const o=n?(i,a)=>typeof i=="function"&&typeof a=="function"?n(a,i):void 0:void 0;return t==="deep"?RCt(...r,o):s_t(...r,o)}function GCt(e,{mergeFunction:t}){return e.reduce(t,()=>{})}function Tl(e,t={}){const{type:n,default:r,defaultIsDynamic:o=!1,required:i=!1,validator:a,camelizeObjectKeys:s=!1,mergeObjectApplyOnlyToDefault:c=!1,mergeFunctionApplyOnlyToDefault:u=!0}=t;let{mergeObject:l="deep",mergeFunction:f=!1}=t;const d=[];let h,p=!1,v=!1;const m=g=>{if(g!==void 0){KCt({type:n,prop:g,validator:a});const y=lV(g),b=typeof g=="function";return p=y,v=b,y?(g=I$t(g),s?ICt(g,(w,x)=>qCt(x,{stripRegexp:/-/g})):g):g}};for(const g of e)d.push(m(g));if(!o)d.push(m(r));else if(typeof r!="function")throw new TypeError(`Invalid option: config.default should be Function when config.defaultIsDynamic enabled, receiving: ${r}`);p||(l=!1,v||(f=!1));for(let g=0;g<d.length;g++){const y=d[g];if(y!==void 0){g===d.length-1?h=y:l?h=JCt(c?[y,r]:d,{mergeObject:l,mergeFunction:f}):f?h=GCt(u?[y,r]:d,{mergeFunction:f}):h=y;break}}if(i&&[void 0,null].includes(h))throw new Error("Missing required prop");return o?Tl(e,{...t,default:r(h),defaultIsDynamic:!1}):h}function X9(e){const t=Array.from(e);return t[0]=t[0].toUpperCase(),t.unshift("n"),t.unshift("o"),t.join("")}function QCt(e,t=[]){const n={props:{},attrs:{},listeners:{},hooks:{},slots:{}},r=Array.isArray(t)?t:Object.keys(t);for(const o in e)if(o.startsWith("@")){const i=o.substring(1);i.startsWith("vnode")?n.hooks[X9(i)]=e[o]:n.listeners[X9(i)]=e[o]}else if(o.startsWith("#")){const i=o.substring(1);i&&(n.slots[i]=e[o])}else r.includes(o)?n.props[o]=e[o]:n.attrs[o]=e[o];return n}var YCt=typeof global=="object"&&global&&global.Object===Object&&global;const XCt=YCt;var ZCt=typeof self=="object"&&self&&self.Object===Object&&self,t3t=XCt||ZCt||Function("return this")();const CV=t3t;var e3t=CV.Symbol;const c0=e3t;var EV=Object.prototype,n3t=EV.hasOwnProperty,r3t=EV.toString,Ad=c0?c0.toStringTag:void 0;function o3t(e){var t=n3t.call(e,Ad),n=e[Ad];try{e[Ad]=void 0;var r=!0}catch{}var o=r3t.call(e);return r&&(t?e[Ad]=n:delete e[Ad]),o}var i3t=Object.prototype,a3t=i3t.toString;function s3t(e){return a3t.call(e)}var c3t="[object Null]",u3t="[object Undefined]",Z9=c0?c0.toStringTag:void 0;function l3t(e){return e==null?e===void 0?u3t:c3t:Z9&&Z9 in Object(e)?o3t(e):s3t(e)}function f3t(e){return e!=null&&typeof e=="object"}var d3t="[object Symbol]";function h3t(e){return typeof e=="symbol"||f3t(e)&&l3t(e)==d3t}var p3t=/\s/;function v3t(e){for(var t=e.length;t--&&p3t.test(e.charAt(t)););return t}var m3t=/^\s+/;function g3t(e){return e&&e.slice(0,v3t(e)+1).replace(m3t,"")}function ok(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var t7=0/0,y3t=/^[-+]0x[0-9a-f]+$/i,b3t=/^0b[01]+$/i,w3t=/^0o[0-7]+$/i,x3t=parseInt;function e7(e){if(typeof e=="number")return e;if(h3t(e))return t7;if(ok(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ok(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=g3t(e);var n=b3t.test(e);return n||w3t.test(e)?x3t(e.slice(2),n?2:8):y3t.test(e)?t7:+e}var k3t=function(){return CV.Date.now()};const pb=k3t;var j3t="Expected a function",_3t=Math.max,S3t=Math.min;function $3t(e,t,n){var r,o,i,a,s,c,u=0,l=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(j3t);t=e7(t)||0,ok(n)&&(l=!!n.leading,f="maxWait"in n,i=f?_3t(e7(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d);function h(k){var j=r,S=o;return r=o=void 0,u=k,a=e.apply(S,j),a}function p(k){return u=k,s=setTimeout(g,t),l?h(k):a}function v(k){var j=k-c,S=k-u,N=t-j;return f?S3t(N,i-S):N}function m(k){var j=k-c,S=k-u;return c===void 0||j>=t||j<0||f&&S>=i}function g(){var k=pb();if(m(k))return y(k);s=setTimeout(g,v(k))}function y(k){return s=void 0,d&&r?h(k):(r=o=void 0,a)}function b(){s!==void 0&&clearTimeout(s),u=0,r=c=o=s=void 0}function w(){return s===void 0?a:y(pb())}function x(){var k=pb(),j=m(k);if(r=arguments,o=this,c=k,j){if(s===void 0)return p(c);if(f)return clearTimeout(s),s=setTimeout(g,t),h(c)}return s===void 0&&(s=setTimeout(g,t)),a}return x.cancel=b,x.flush=w,x}const C3t="JsonEditorVue",um="modelValue",n7="update:modelValue",lm=["mainMenuBar","navigationBar","statusBar","askToFormat","readOnly","escapeControlCharacters","escapeUnicodeCharacters","flattenColumns"],OV=Jo({name:C3t,props:{[um]:{},mode:{type:String},...Object.fromEntries(lm.map(e=>[e,{type:Boolean,default:void 0}]))},emits:{[n7](e){return!0},"update:mode":function(e){return!0}},setup(e,{attrs:t,emit:n,expose:r}){var o;const i=(o=Qs())==null?void 0:o.proxy,a=Tn(),s=Tn(!1),c=Tn(!1),u=$3t(d=>{if(c.value){c.value=!1;return}s.value=!0,n(n7,d.text===void 0?d.json:d.text)},100),l=d=>{n("update:mode",d)},f=(d,h)=>(...p)=>{d(...p),h(...p)};return r==null||r({jsonEditor:a}),vf(()=>{var d;(d=a.value)==null||d.destroy()}),cl(()=>{const d=Tl([e.mode,Bm.mode],{type:String}),h=Tl([e[um],Bm[um]]),p=Object.fromEntries(Array.from(lm,m=>[m,Tl([e[m],Bm[m]])]).filter(([,m])=>m!==void 0)),v=Tl([t,MV,{onChange:u,onChangeMode:l,mode:d,...p,...h!==void 0&&{content:{json:h}}}],{type:Object,mergeFunction:f});a.value=new Xwt({target:i==null?void 0:i.$refs.jsonEditorRef,props:v}),so(()=>e[um],m=>{if(s.value){s.value=!1;return}a.value&&(c.value=!0,a.value.set([void 0,""].includes(m)?{text:""}:{json:m}))},{deep:!0}),so(()=>e.mode,m=>{var g;(g=a.value)==null||g.updateProps({mode:m})}),so(()=>Array.from(lm,m=>e[m]),m=>{var g;(g=a.value)==null||g.updateProps(Object.fromEntries(Array.from(m,(y,b)=>[lm[b],y]).filter(([,y])=>y!==void 0)))}),so(()=>t,m=>{var g;const y={};m.onChange&&(y.onChange=u),m.onChangeMode&&(y.onChangeMode=l),(g=a.value)==null||g.updateProps(Object.getOwnPropertyNames(y).length>0?Tl([m,y],{type:Object,mergeFunction:f}):m)},{deep:!0}),r||(r=m=>{for(const g in m)i[g]=Re(m[g])},r({jsonEditor:a}))}),()=>Ho("div",{ref:"jsonEditorRef"})}}),Bm={},MV={};function E3t(e){return e.install=(t,n={})=>{const{props:r,attrs:o}=QCt(n,OV.props);Object.assign(Bm,r),Object.assign(MV,o),t.component(e.name,e)},e}const O3t=E3t(OV);const M3t={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((e,t)=>(e[t.id]=t)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let n=0;this.panes=this.panes.map((r,o)=>(r.size=o===t?r.max:r.min,o!==t&&(n+=r.min),r)),this.panes[t].size-=n,this.$emit("pane-maximize",this.panes[t]),this.$emit("resized",this.panes.map(r=>({min:r.min,max:r.max,size:r.size})))},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const t=this.container.getBoundingClientRect(),{clientX:n,clientY:r}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:n-t.left,y:r-t.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),e*100/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let n={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const r=0+(this.pushOtherPanes?0:n.prevPanesSize),o=100-(this.pushOtherPanes?0:n.nextPanesSize),i=Math.max(Math.min(this.getCurrentDragPercentage(e),o),r);let a=[t,t+1],s=this.panes[a[0]]||null,c=this.panes[a[1]]||null;const u=s.max<100&&i>=s.max+n.prevPanesSize,l=c.max<100&&i<=100-(c.max+this.sumNextPanesSize(t+1));if(u||l){u?(s.size=s.max,c.size=Math.max(100-s.max-n.prevPanesSize-n.nextPanesSize,0)):(s.size=Math.max(100-c.max-n.prevPanesSize-this.sumNextPanesSize(t+1),0),c.size=c.max);return}if(this.pushOtherPanes){const f=this.doPushOtherPanes(n,i);if(!f)return;({sums:n,panesToResize:a}=f),s=this.panes[a[0]]||null,c=this.panes[a[1]]||null}s!==null&&(s.size=Math.min(Math.max(i-n.prevPanesSize-n.prevReachedMinPanes,s.min),s.max)),c!==null&&(c.size=Math.min(Math.max(100-i-n.nextPanesSize-n.nextReachedMinPanes,c.min),c.max))},doPushOtherPanes(e,t){const n=this.touch.activeSplitter,r=[n,n+1];return t<e.prevPanesSize+this.panes[r[0]].min&&(r[0]=this.findPrevExpandedPane(n).index,e.prevReachedMinPanes=0,r[0]<n&&this.panes.forEach((o,i)=>{i>r[0]&&i<=n&&(o.size=o.min,e.prevReachedMinPanes+=o.min)}),e.prevPanesSize=this.sumPrevPanesSize(r[0]),r[0]===void 0)?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((o,i)=>{i>0&&i<=n&&(o.size=o.min,e.prevReachedMinPanes+=o.min)}),this.panes[r[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[r[1]].min&&(r[1]=this.findNextExpandedPane(n).index,e.nextReachedMinPanes=0,r[1]>n+1&&this.panes.forEach((o,i)=>{i>n&&i<r[1]&&(o.size=o.min,e.nextReachedMinPanes+=o.min)}),e.nextPanesSize=this.sumNextPanesSize(r[1]-1),r[1]===void 0)?(e.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((o,i)=>{i<this.panesCount-1&&i>=n+1&&(o.size=o.min,e.nextReachedMinPanes+=o.min)}),this.panes[r[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:r}},sumPrevPanesSize(e){return this.panes.reduce((t,n,r)=>t+(r<e?n.size:0),0)},sumNextPanesSize(e){return this.panes.reduce((t,n,r)=>t+(r>e+1?n.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(t=>t.index<e&&t.size>t.min)||{}},findNextExpandedPane(e){return this.panes.find(t=>t.index>e+1&&t.size>t.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const t=e.classList.contains("splitpanes__pane"),n=e.classList.contains("splitpanes__splitter");!t&&!n&&(e.parentNode.removeChild(e),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},addSplitter(e,t,n=!1){const r=e-1,o=document.createElement("div");o.classList.add("splitpanes__splitter"),n||(o.onmousedown=i=>this.onMouseDown(i,r),typeof window<"u"&&"ontouchstart"in window&&(o.ontouchstart=i=>this.onMouseDown(i,r)),o.onclick=i=>this.onSplitterClick(i,r+1)),this.dblClickSplitter&&(o.ondblclick=i=>this.onSplitterDblClick(i,r+1)),t.parentNode.insertBefore(o,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(n=>{n.className.includes("splitpanes__splitter")&&this.removeSplitter(n)});let t=0;e.forEach(n=>{n.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,n,!0):t&&this.addSplitter(t,n),t++)})},requestUpdate({target:e,...t}){const n=this.indexedPanes[e._.uid];Object.entries(t).forEach(([r,o])=>n[r]=o)},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some(o=>(o.className.includes("splitpanes__pane")&&t++,o===e.$el));const n=parseFloat(e.minSize),r=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._.uid,index:t,min:isNaN(n)?0:n,max:isNaN(r)?100:r,size:e.size===null?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((o,i)=>o.index=i),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map(o=>({min:o.min,max:o.max,size:o.size}))})})},onPaneRemove(e){const t=this.panes.findIndex(r=>r.id===e._.uid),n=this.panes.splice(t,1)[0];this.panes.forEach((r,o)=>r.index=o),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...n,index:t}}),this.$emit("pane-remove",{removed:n,panes:this.panes.map(r=>({min:r.min,max:r.max,size:r.size}))})})},resetPaneSizes(e={}){!e.addedPane&&!e.removedPane?this.initialPanesSizing():this.panes.some(t=>t.givenSize!==null||t.min||t.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size})))},equalize(){const e=100/this.panesCount;let t=0;const n=[],r=[];this.panes.forEach(o=>{o.size=Math.max(Math.min(e,o.max),o.min),t-=o.size,o.size>=o.max&&n.push(o.id),o.size<=o.min&&r.push(o.id)}),t>.1&&this.readjustSizes(t,n,r)},initialPanesSizing(){let e=100;const t=[],n=[];let r=0;this.panes.forEach(i=>{e-=i.size,i.size!==null&&r++,i.size>=i.max&&t.push(i.id),i.size<=i.min&&n.push(i.id)});let o=100;e>.1&&(this.panes.forEach(i=>{i.size===null&&(i.size=Math.max(Math.min(e/(this.panesCount-r),i.max),i.min)),o-=i.size}),o>.1&&this.readjustSizes(e,t,n))},equalizeAfterAddOrRemove({addedPane:e,removedPane:t}={}){let n=100/this.panesCount,r=0;const o=[],i=[];e&&e.givenSize!==null&&(n=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(a=>{r-=a.size,a.size>=a.max&&o.push(a.id),a.size<=a.min&&i.push(a.id)}),!(Math.abs(r)<.1)&&(this.panes.forEach(a=>{e&&e.givenSize!==null&&e.id===a.id||(a.size=Math.max(Math.min(n,a.max),a.min)),r-=a.size,a.size>=a.max&&o.push(a.id),a.size<=a.min&&i.push(a.id)}),r>.1&&this.readjustSizes(r,o,i))},readjustSizes(e,t,n){let r;e>0?r=e/(this.panesCount-t.length):r=e/(this.panesCount-n.length),this.panes.forEach((o,i)=>{if(e>0&&!t.includes(o.id)){const a=Math.max(Math.min(o.size+r,o.max),o.min),s=a-o.size;e-=s,o.size=a}else if(!n.includes(o.id)){const a=Math.max(Math.min(o.size+r,o.max),o.min),s=a-o.size;e-=s,o.size=a}o.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[o.id].size}%`})}),Math.abs(e)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((t,n)=>{t.ondblclick=e?r=>this.onSplitterDblClick(r,n):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return Ho("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},A3t=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},P3t={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}};function T3t(e,t,n,r,o,i){return Vn(),li("div",{class:"splitpanes__pane",onClick:t[0]||(t[0]=a=>i.onPaneClick(a,e._.uid)),style:zc(e.style)},[Ku(e.$slots,"default")],4)}const r7=A3t(P3t,[["render",T3t]]);let Rl;const Pd=[];function R3t(e){if(Pd.push(e),!(typeof window>"u"))return window.__NUXT_DEVTOOLS__&&Pd.forEach(t=>t(window.__NUXT_DEVTOOLS__)),Object.defineProperty(window,"__NUXT_DEVTOOLS__",{set(t){t&&Pd.forEach(n=>n(t))},get(){return Rl.value},configurable:!0}),()=>{Pd.splice(Pd.indexOf(e),1)}}function I3t(){Rl||(Rl=pf(),R3t(t));function e(){kU(Rl)}function t(n){Rl.value=n,n.host&&n.host.hooks.hook("host:update:reactivity",e)}return Rl}const o7=I3t();const N3t="2.1.0",D3t={class:"flex-row flex h-screen"},z3t={class:"border-r-1 border-light-400 dark:border-dark-400 dark:bg-dark-900 dark:text-light bg-white text-dark-800 flex flex-col justify-between h-screen z-5"},L3t={class:"flex-grow hidden md:block"},B3t={class:"py-3 w-full flex items-start px-5 justify-between space-x-5"},F3t=nr("h1",{class:"text-base w-40"}," OG Image Playground ",-1),q3t=nr("hr",{class:"border-1 border-light-400 dark:border-dark-400"},null,-1),H3t={class:"py-7 px-5 text-sm flex flex-col space-y-3"},V3t=nr("hr",{class:"border-1 border-light-400 dark:border-dark-400"},null,-1),U3t={key:0,class:"py-7 px-5 text-sm flex flex-col space-y-3"},W3t={class:"p-3 text-gray-400 text-sm text-center"},K3t={class:"mx-auto flex flex-col w-full bg-white dark:bg-black max-h-screen overflow-hidden dark:bg-dark-700 bg-light-200"},J3t={class:"py-9px dark:bg-dark-800 bg-light-200 px-10 opacity-80 flex items-center max-w-full block space-x-5"},G3t={class:"text-sm flex items-center space-x-5"},Q3t=nr("div",{class:"text-xs opacity-40"}," Path ",-1),Y3t={class:"flex items-center space-x-1"},X3t={key:0,class:"text-xs opacity-70"},Z3t=nr("hr",{class:"border-1 border-light-400 dark:border-dark-400"},null,-1),t4t=nr("h2",{class:"font-semibold text-lg mb-5"}," Props ",-1),e4t={class:"relative"},n4t={key:0,class:"absolute top-1 right-1 text-10px ml-1 bg-blue-100 text-blue-700 px-1 py-2px rounded"},r4t={key:0,class:"text-xs p-2 text-gray-300"},o4t=Jo({__name:"app",async setup(e){let t,n;sG({title:"OG Image Playground"}),_N(SN);const r=hr(()=>!!o7.value),o=hr(()=>{var d,h,p,v;return((v=(p=(h=(d=o7.value)==null?void 0:d.host.nuxt.vueApp.config)==null?void 0:h.globalProperties)==null?void 0:p.$route)==null?void 0:v.path)||void 0});Ga.value=o.value||Il().query.path||"/",$N.value=Il().query.base||"/",so(()=>o,d=>{Nd.value={},wu.value=!1,Ga.value=d});const i=hr(()=>Il().path!=="/vnodes"&&Il().path!=="/options"),a=([t,n]=kb(()=>B$()),t=await t,n(),t);so(a,d=>{rv.value=Re(d),d={...Re(d)},delete d.path,delete d.cache,delete d.cacheTtl,delete d.component,delete d.provider,delete d.componentHash,q1.value=d},{immediate:!0});const s=Gk(d=>{Nd.value={},wu.value=!1,Ga.value=d.target.value,Dd()},1e3),c=ZI();function u(d){Nd.value=d,wu.value=!0,Dd()}const l=hr(()=>c.value==="dark");async function f(d=!0){d&&await B$(),Nd.value={},wu.value=!1;const h={...rv.value};delete h.path,delete h.cache,delete h.cacheTtl,delete h.component,delete h.provider,delete h.componentHash,q1.value=h,d&&Dd()}return[t,n]=kb(()=>f(!1)),await t,n(),(d,h)=>{var x;const p=Bk,v=fY,m=mY,g=gN,y=NI,b=MX,w=IX;return Vn(),li("div",D3t,[nr("header",z3t,[nr("div",L3t,[nr("div",B3t,[F3t,Re(r)?qa("",!0):(Vn(),xo(m,{key:0},{default:oo(({toggle:k})=>[nn(v,{n:"borderless lg m-0","p-0":"",op50:"",onClick:k},{default:oo(()=>[nn(p,{icon:"dark:carbon-moon carbon-sun"})]),_:2},1032,["onClick"])]),_:1}))]),q3t,nr("div",H3t,[nn(y,{to:"/",class:"transition-all hover:ml-1 whitespace-nowrap"},{default:oo(({isActive:k})=>[nn(g,{name:"carbon:image-search",class:Gr(["mr-1",[k?"opacity-90":"opacity-60"]])},null,8,["class"]),nr("span",{class:Gr([k?"underline":"opacity-60"])}," Template HTML ",2)]),_:1}),((x=Re(rv))==null?void 0:x.provider)==="satori"?(Vn(),xo(y,{key:0,to:"/svg",class:"transition-all hover:ml-1 whitespace-nowrap"},{default:oo(({isActive:k})=>[nn(g,{name:"carbon:svg",class:Gr(["mr-1",[k?"opacity-90":"opacity-60"]])},null,8,["class"]),nr("span",{class:Gr([k?"underline":"opacity-60"])}," Preview SVG ",2)]),_:1})):qa("",!0),nn(y,{to:"/png",class:"transition-all hover:ml-1 whitespace-nowrap"},{default:oo(({isActive:k})=>[nn(g,{name:"carbon:png",class:Gr(["mr-1",[k?"opacity-90":"opacity-60"]])},null,8,["class"]),nr("span",{class:Gr([k?"underline":"opacity-60"])}," Preview PNG ",2)]),_:1}),nn(y,{to:"/options",class:"transition-all hover:ml-1 whitespace-nowrap"},{default:oo(({isActive:k})=>[nn(g,{name:"carbon:operations-record",class:Gr(["mr-1",[k?"opacity-90":"opacity-60"]])},null,8,["class"]),nr("span",{class:Gr([k?"underline":"opacity-60"])}," Options ",2)]),_:1}),nn(y,{to:"/vnodes",class:"transition-all hover:ml-1 whitespace-nowrap"},{default:oo(({isActive:k})=>[nn(g,{name:"carbon:ibm-cloud-pak-manta-automated-data-lineage",class:Gr(["mr-1",[k?"opacity-90":"opacity-60"]])},null,8,["class"]),nr("span",{class:Gr([k?"underline":"opacity-60"])}," vNodes ",2)]),_:1})]),V3t,Re(i)?(Vn(),li("div",U3t,[Re(bl)!==504?(Vn(),li("div",{key:0,onClick:h[0]||(h[0]=k=>bl.value=504)},[nn(v,null,{default:oo(()=>[nn(g,{name:"carbon:mobile"}),Au(" Small ")]),_:1})])):qa("",!0),Re(bl)!==null?(Vn(),li("div",{key:1,onClick:h[1]||(h[1]=k=>bl.value=null)},[nn(v,null,{default:oo(()=>[nn(g,{name:"carbon:laptop"}),Au(" Full width ")]),_:1})])):qa("",!0),nr("div",null,[nn(v,{onClick:Re(Dd)},{default:oo(()=>[Au(" Refresh ")]),_:1},8,["onClick"])])])):qa("",!0)]),nr("div",W3t," v"+fm(Re(N3t)),1)]),nr("main",K3t,[nr("div",J3t,[nr("div",G3t,[Q3t,nr("div",Y3t,[nn(b,{"model-value":Re(Ga),placeholder:"Search...",n:"primary",onInput:Re(s)},null,8,["model-value","onInput"])])]),Re(L$)?(Vn(),li("div",X3t,fm(Re(L$)),1)):qa("",!0)]),Z3t,nr("div",{class:"h-full max-h-full overflow-hidden lg:p-5 p-2",style:zc({width:Re(bl)&&Re(i)?`${Re(bl)}px`:"100%"})},[nn(Re(M3t),{class:"default-theme",onResize:Re(nZ)},{default:oo(()=>[nn(Re(r7),{size:"80"},{default:oo(()=>[nn(w)]),_:1}),nn(Re(r7),{size:"20"},{default:oo(()=>[t4t,nr("div",e4t,[nn(Re(O3t),{"model-value":Re(q1),class:Gr(Re(l)?["jse-theme-dark"]:[]),"main-menu-bar":!1,"navigation-bar":!1,"onUpdate:modelValue":u},null,8,["model-value","class"]),Re(wu)?(Vn(),li("span",n4t,"modified")):qa("",!0)]),Re(wu)?(Vn(),li("div",r4t,[nr("div",null,[Au(" Update "+fm(Re(rv).component)+" to persist the changes. ",1),nr("button",{type:"button",class:"underline",onClick:h[2]||(h[2]=k=>f(!0))}," Reset ")])])):qa("",!0)]),_:1})]),_:1},8,["onResize"])],4)])])}}});const i4t={__name:"nuxt-error-page",props:{error:Object},setup(e){const n=e.error;(n.stack||"").split(`
133
+ linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em / 2em 2em`,!t.fromEditor){var m=this.settings.editorFormat,g=this.settings.alpha,y=void 0;switch(m){case"rgb":y=n.printRGB(g);break;case"hsl":y=n.printHSL(g);break;default:y=n.printHex(g)}this._domEdit.value=y}this._domSample.style.color=a}function b(x,k,j){k.style.left=100*j+"%"}function w(x,k,j){k.style.top=100*j+"%"}}},{key:"_ifPopup",value:function(t,n){this.settings.parent&&this.settings.popup?t&&t(this.settings.popup):n&&n()}},{key:"_toggleDOM",value:function(t){var n=this.domElement;if(!n)return!1;var r=t?"":"none",o=n.style.display!==r;return o&&(n.style.display=r),o}}]),e}(),lb=document.createElement("style");lb.textContent='.picker_wrapper.no_alpha .picker_alpha{display:none}.picker_wrapper.no_editor .picker_editor{position:absolute;z-index:-1;opacity:0}.picker_wrapper.no_cancel .picker_cancel{display:none}.layout_default.picker_wrapper{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:stretch;font-size:10px;width:25em;padding:.5em}.layout_default.picker_wrapper input,.layout_default.picker_wrapper button{font-size:1rem}.layout_default.picker_wrapper>*{margin:.5em}.layout_default.picker_wrapper::before{content:"";display:block;width:100%;height:0;order:1}.layout_default .picker_slider,.layout_default .picker_selector{padding:1em}.layout_default .picker_hue{width:100%}.layout_default .picker_sl{flex:1 1 auto}.layout_default .picker_sl::before{content:"";display:block;padding-bottom:100%}.layout_default .picker_editor{order:1;width:6.5rem}.layout_default .picker_editor input{width:100%;height:100%}.layout_default .picker_sample{order:1;flex:1 1 auto}.layout_default .picker_done,.layout_default .picker_cancel{order:1}.picker_wrapper{box-sizing:border-box;background:#f2f2f2;box-shadow:0 0 0 1px silver;cursor:default;font-family:sans-serif;color:#444;pointer-events:auto}.picker_wrapper:focus{outline:none}.picker_wrapper button,.picker_wrapper input{box-sizing:border-box;border:none;box-shadow:0 0 0 1px silver;outline:none}.picker_wrapper button:focus,.picker_wrapper button:active,.picker_wrapper input:focus,.picker_wrapper input:active{box-shadow:0 0 2px 1px #1e90ff}.picker_wrapper button{padding:.4em .6em;cursor:pointer;background-color:#f5f5f5;background-image:linear-gradient(0deg, gainsboro, transparent)}.picker_wrapper button:active{background-image:linear-gradient(0deg, transparent, gainsboro)}.picker_wrapper button:hover{background-color:#fff}.picker_selector{position:absolute;z-index:1;display:block;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);border:2px solid #fff;border-radius:100%;box-shadow:0 0 3px 1px #67b9ff;background:currentColor;cursor:pointer}.picker_slider .picker_selector{border-radius:2px}.picker_hue{position:relative;background-image:linear-gradient(90deg, red, yellow, lime, cyan, blue, magenta, red);box-shadow:0 0 0 1px silver}.picker_sl{position:relative;box-shadow:0 0 0 1px silver;background-image:linear-gradient(180deg, white, rgba(255, 255, 255, 0) 50%),linear-gradient(0deg, black, rgba(0, 0, 0, 0) 50%),linear-gradient(90deg, #808080, rgba(128, 128, 128, 0))}.picker_alpha,.picker_sample{position:relative;background:linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0/2em 2em,linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em/2em 2em;box-shadow:0 0 0 1px silver}.picker_alpha .picker_selector,.picker_sample .picker_selector{background:none}.picker_editor input{font-family:monospace;padding:.2em .4em}.picker_sample::before{content:"";position:absolute;display:block;width:100%;height:100%;background:currentColor}.picker_arrow{position:absolute;z-index:-1}.picker_wrapper.popup{position:absolute;z-index:2;margin:1.5em}.picker_wrapper.popup,.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{background:#f2f2f2;box-shadow:0 0 10px 1px rgba(0,0,0,.4)}.picker_wrapper.popup .picker_arrow{width:3em;height:3em;margin:0}.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{content:"";display:block;position:absolute;top:0;left:0;z-index:-99}.picker_wrapper.popup .picker_arrow::before{width:100%;height:100%;-webkit-transform:skew(45deg);transform:skew(45deg);-webkit-transform-origin:0 100%;transform-origin:0 100%}.picker_wrapper.popup .picker_arrow::after{width:150%;height:150%;box-shadow:none}.popup.popup_top{bottom:100%;left:0}.popup.popup_top .picker_arrow{bottom:0;left:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.popup.popup_bottom{top:100%;left:0}.popup.popup_bottom .picker_arrow{top:0;left:0;-webkit-transform:rotate(90deg) scale(1, -1);transform:rotate(90deg) scale(1, -1)}.popup.popup_left{top:0;right:100%}.popup.popup_left .picker_arrow{top:0;right:0;-webkit-transform:scale(-1, 1);transform:scale(-1, 1)}.popup.popup_right{top:0;left:100%}.popup.popup_right .picker_arrow{top:0;left:0}',document.documentElement.firstElementChild.appendChild(lb),JH.StyleElement=lb;var c2t=Object.freeze({__proto__:null,default:JH}),u2t=typeof global=="object"&&global&&global.Object===Object&&global;const GH=u2t;var l2t=typeof self=="object"&&self&&self.Object===Object&&self,f2t=GH||l2t||Function("return this")();const ys=f2t;var d2t=ys.Symbol;const hs=d2t;var QH=Object.prototype,h2t=QH.hasOwnProperty,p2t=QH.toString,Md=hs?hs.toStringTag:void 0;function v2t(e){var t=h2t.call(e,Md),n=e[Md];try{e[Md]=void 0;var r=!0}catch{}var o=p2t.call(e);return r&&(t?e[Md]=n:delete e[Md]),o}var m2t=Object.prototype,g2t=m2t.toString;function y2t(e){return g2t.call(e)}var b2t="[object Null]",w2t="[object Undefined]",_9=hs?hs.toStringTag:void 0;function vl(e){return e==null?e===void 0?w2t:b2t:_9&&_9 in Object(e)?v2t(e):y2t(e)}function ps(e){return e!=null&&typeof e=="object"}var x2t="[object Symbol]";function I_(e){return typeof e=="symbol"||ps(e)&&vl(e)==x2t}function k2t(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var j2t=Array.isArray;const Yi=j2t;var _2t=1/0,S9=hs?hs.prototype:void 0,$9=S9?S9.toString:void 0;function YH(e){if(typeof e=="string")return e;if(Yi(e))return k2t(e,YH)+"";if(I_(e))return $9?$9.call(e):"";var t=e+"";return t=="0"&&1/e==-_2t?"-0":t}function bs(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function N_(e){return e}var S2t="[object AsyncFunction]",$2t="[object Function]",C2t="[object GeneratorFunction]",E2t="[object Proxy]";function D_(e){if(!bs(e))return!1;var t=vl(e);return t==$2t||t==C2t||t==S2t||t==E2t}var O2t=ys["__core-js_shared__"];const fb=O2t;var C9=function(){var e=/[^.]+$/.exec(fb&&fb.keys&&fb.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function M2t(e){return!!C9&&C9 in e}var A2t=Function.prototype,P2t=A2t.toString;function ml(e){if(e!=null){try{return P2t.call(e)}catch{}try{return e+""}catch{}}return""}var T2t=/[\\^$.*+?()[\]{}|]/g,R2t=/^\[object .+?Constructor\]$/,I2t=Function.prototype,N2t=Object.prototype,D2t=I2t.toString,z2t=N2t.hasOwnProperty,L2t=RegExp("^"+D2t.call(z2t).replace(T2t,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function B2t(e){if(!bs(e)||M2t(e))return!1;var t=D_(e)?L2t:R2t;return t.test(ml(e))}function F2t(e,t){return e==null?void 0:e[t]}function gl(e,t){var n=F2t(e,t);return B2t(n)?n:void 0}var q2t=gl(ys,"WeakMap");const Yx=q2t;var E9=Object.create,H2t=function(){function e(){}return function(t){if(!bs(t))return{};if(E9)return E9(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const V2t=H2t;function U2t(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function XH(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var W2t=800,K2t=16,J2t=Date.now;function G2t(e){var t=0,n=0;return function(){var r=J2t(),o=K2t-(r-n);if(n=r,o>0){if(++t>=W2t)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Q2t(e){return function(){return e}}var Y2t=function(){try{var e=gl(Object,"defineProperty");return e({},"",{}),e}catch{}}();const r0=Y2t;var X2t=r0?function(e,t){return r0(e,"toString",{configurable:!0,enumerable:!1,value:Q2t(t),writable:!0})}:N_;const Z2t=X2t;var tjt=G2t(Z2t);const ejt=tjt;function njt(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var rjt=9007199254740991,ojt=/^(?:0|[1-9]\d*)$/;function z_(e,t){var n=typeof e;return t=t??rjt,!!t&&(n=="number"||n!="symbol"&&ojt.test(e))&&e>-1&&e%1==0&&e<t}function y1(e,t,n){t=="__proto__"&&r0?r0(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Bp(e,t){return e===t||e!==e&&t!==t}var ijt=Object.prototype,ajt=ijt.hasOwnProperty;function ZH(e,t,n){var r=e[t];(!(ajt.call(e,t)&&Bp(r,n))||n===void 0&&!(t in e))&&y1(e,t,n)}function cd(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),o?y1(n,s,c):ZH(n,s,c)}return n}var O9=Math.max;function sjt(e,t,n){return t=O9(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=O9(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),U2t(e,this,s)}}function cjt(e,t){return ejt(sjt(e,t,N_),e+"")}var ujt=9007199254740991;function L_(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ujt}function b1(e){return e!=null&&L_(e.length)&&!D_(e)}function ljt(e,t,n){if(!bs(n))return!1;var r=typeof t;return(r=="number"?b1(n)&&z_(t,n.length):r=="string"&&t in n)?Bp(n[t],e):!1}function tV(e){return cjt(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&ljt(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var s=n[r];s&&e(t,s,r,i)}return t})}var fjt=Object.prototype;function B_(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||fjt;return e===n}function djt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var hjt="[object Arguments]";function M9(e){return ps(e)&&vl(e)==hjt}var eV=Object.prototype,pjt=eV.hasOwnProperty,vjt=eV.propertyIsEnumerable,mjt=M9(function(){return arguments}())?M9:function(e){return ps(e)&&pjt.call(e,"callee")&&!vjt.call(e,"callee")};const o0=mjt;function gjt(){return!1}var nV=typeof exports=="object"&&exports&&!exports.nodeType&&exports,A9=nV&&typeof module=="object"&&module&&!module.nodeType&&module,yjt=A9&&A9.exports===nV,P9=yjt?ys.Buffer:void 0,bjt=P9?P9.isBuffer:void 0,wjt=bjt||gjt;const cp=wjt;var xjt="[object Arguments]",kjt="[object Array]",jjt="[object Boolean]",_jt="[object Date]",Sjt="[object Error]",$jt="[object Function]",Cjt="[object Map]",Ejt="[object Number]",Ojt="[object Object]",Mjt="[object RegExp]",Ajt="[object Set]",Pjt="[object String]",Tjt="[object WeakMap]",Rjt="[object ArrayBuffer]",Ijt="[object DataView]",Njt="[object Float32Array]",Djt="[object Float64Array]",zjt="[object Int8Array]",Ljt="[object Int16Array]",Bjt="[object Int32Array]",Fjt="[object Uint8Array]",qjt="[object Uint8ClampedArray]",Hjt="[object Uint16Array]",Vjt="[object Uint32Array]",gr={};gr[Njt]=gr[Djt]=gr[zjt]=gr[Ljt]=gr[Bjt]=gr[Fjt]=gr[qjt]=gr[Hjt]=gr[Vjt]=!0;gr[xjt]=gr[kjt]=gr[Rjt]=gr[jjt]=gr[Ijt]=gr[_jt]=gr[Sjt]=gr[$jt]=gr[Cjt]=gr[Ejt]=gr[Ojt]=gr[Mjt]=gr[Ajt]=gr[Pjt]=gr[Tjt]=!1;function Ujt(e){return ps(e)&&L_(e.length)&&!!gr[vl(e)]}function F_(e){return function(t){return e(t)}}var rV=typeof exports=="object"&&exports&&!exports.nodeType&&exports,yh=rV&&typeof module=="object"&&module&&!module.nodeType&&module,Wjt=yh&&yh.exports===rV,db=Wjt&&GH.process,Kjt=function(){try{var e=yh&&yh.require&&yh.require("util").types;return e||db&&db.binding&&db.binding("util")}catch{}}();const zf=Kjt;var T9=zf&&zf.isTypedArray,Jjt=T9?F_(T9):Ujt;const q_=Jjt;var Gjt=Object.prototype,Qjt=Gjt.hasOwnProperty;function oV(e,t){var n=Yi(e),r=!n&&o0(e),o=!n&&!r&&cp(e),i=!n&&!r&&!o&&q_(e),a=n||r||o||i,s=a?djt(e.length,String):[],c=s.length;for(var u in e)(t||Qjt.call(e,u))&&!(a&&(u=="length"||o&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||z_(u,c)))&&s.push(u);return s}function iV(e,t){return function(n){return e(t(n))}}var Yjt=iV(Object.keys,Object);const Xjt=Yjt;var Zjt=Object.prototype,t_t=Zjt.hasOwnProperty;function e_t(e){if(!B_(e))return Xjt(e);var t=[];for(var n in Object(e))t_t.call(e,n)&&n!="constructor"&&t.push(n);return t}function Fp(e){return b1(e)?oV(e):e_t(e)}function n_t(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var r_t=Object.prototype,o_t=r_t.hasOwnProperty;function i_t(e){if(!bs(e))return n_t(e);var t=B_(e),n=[];for(var r in e)r=="constructor"&&(t||!o_t.call(e,r))||n.push(r);return n}function ud(e){return b1(e)?oV(e,!0):i_t(e)}var a_t=tV(function(e,t,n,r){cd(t,ud(t),e,r)});const s_t=a_t;var c_t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u_t=/^\w*$/;function H_(e,t){if(Yi(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||I_(e)?!0:u_t.test(e)||!c_t.test(e)||t!=null&&e in Object(t)}var l_t=gl(Object,"create");const up=l_t;function f_t(){this.__data__=up?up(null):{},this.size=0}function d_t(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var h_t="__lodash_hash_undefined__",p_t=Object.prototype,v_t=p_t.hasOwnProperty;function m_t(e){var t=this.__data__;if(up){var n=t[e];return n===h_t?void 0:n}return v_t.call(t,e)?t[e]:void 0}var g_t=Object.prototype,y_t=g_t.hasOwnProperty;function b_t(e){var t=this.__data__;return up?t[e]!==void 0:y_t.call(t,e)}var w_t="__lodash_hash_undefined__";function x_t(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=up&&t===void 0?w_t:t,this}function sl(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}sl.prototype.clear=f_t;sl.prototype.delete=d_t;sl.prototype.get=m_t;sl.prototype.has=b_t;sl.prototype.set=x_t;function k_t(){this.__data__=[],this.size=0}function w1(e,t){for(var n=e.length;n--;)if(Bp(e[n][0],t))return n;return-1}var j_t=Array.prototype,__t=j_t.splice;function S_t(e){var t=this.__data__,n=w1(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():__t.call(t,n,1),--this.size,!0}function $_t(e){var t=this.__data__,n=w1(t,e);return n<0?void 0:t[n][1]}function C_t(e){return w1(this.__data__,e)>-1}function E_t(e,t){var n=this.__data__,r=w1(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function rc(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}rc.prototype.clear=k_t;rc.prototype.delete=S_t;rc.prototype.get=$_t;rc.prototype.has=C_t;rc.prototype.set=E_t;var O_t=gl(ys,"Map");const lp=O_t;function M_t(){this.size=0,this.__data__={hash:new sl,map:new(lp||rc),string:new sl}}function A_t(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function x1(e,t){var n=e.__data__;return A_t(t)?n[typeof t=="string"?"string":"hash"]:n.map}function P_t(e){var t=x1(this,e).delete(e);return this.size-=t?1:0,t}function T_t(e){return x1(this,e).get(e)}function R_t(e){return x1(this,e).has(e)}function I_t(e,t){var n=x1(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function oc(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}oc.prototype.clear=M_t;oc.prototype.delete=P_t;oc.prototype.get=T_t;oc.prototype.has=R_t;oc.prototype.set=I_t;var N_t="Expected a function";function V_(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(N_t);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(V_.Cache||oc),n}V_.Cache=oc;var D_t=500;function z_t(e){var t=V_(e,function(r){return n.size===D_t&&n.clear(),r}),n=t.cache;return t}var L_t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,B_t=/\\(\\)?/g,F_t=z_t(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(L_t,function(n,r,o,i){t.push(o?i.replace(B_t,"$1"):r||n)}),t});const q_t=F_t;function H_t(e){return e==null?"":YH(e)}function aV(e,t){return Yi(e)?e:H_(e,t)?[e]:q_t(H_t(e))}var V_t=1/0;function k1(e){if(typeof e=="string"||I_(e))return e;var t=e+"";return t=="0"&&1/e==-V_t?"-0":t}function sV(e,t){t=aV(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[k1(t[n++])];return n&&n==r?e:void 0}function U_t(e,t,n){var r=e==null?void 0:sV(e,t);return r===void 0?n:r}function cV(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var W_t=iV(Object.getPrototypeOf,Object);const U_=W_t;var K_t="[object Object]",J_t=Function.prototype,G_t=Object.prototype,uV=J_t.toString,Q_t=G_t.hasOwnProperty,Y_t=uV.call(Object);function lV(e){if(!ps(e)||vl(e)!=K_t)return!1;var t=U_(e);if(t===null)return!0;var n=Q_t.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&uV.call(n)==Y_t}function X_t(){this.__data__=new rc,this.size=0}function Z_t(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function tSt(e){return this.__data__.get(e)}function eSt(e){return this.__data__.has(e)}var nSt=200;function rSt(e,t){var n=this.__data__;if(n instanceof rc){var r=n.__data__;if(!lp||r.length<nSt-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new oc(r)}return n.set(e,t),this.size=n.size,this}function Sa(e){var t=this.__data__=new rc(e);this.size=t.size}Sa.prototype.clear=X_t;Sa.prototype.delete=Z_t;Sa.prototype.get=tSt;Sa.prototype.has=eSt;Sa.prototype.set=rSt;function oSt(e,t){return e&&cd(t,Fp(t),e)}function iSt(e,t){return e&&cd(t,ud(t),e)}var fV=typeof exports=="object"&&exports&&!exports.nodeType&&exports,R9=fV&&typeof module=="object"&&module&&!module.nodeType&&module,aSt=R9&&R9.exports===fV,I9=aSt?ys.Buffer:void 0,N9=I9?I9.allocUnsafe:void 0;function dV(e,t){if(t)return e.slice();var n=e.length,r=N9?N9(n):new e.constructor(n);return e.copy(r),r}function sSt(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function hV(){return[]}var cSt=Object.prototype,uSt=cSt.propertyIsEnumerable,D9=Object.getOwnPropertySymbols,lSt=D9?function(e){return e==null?[]:(e=Object(e),sSt(D9(e),function(t){return uSt.call(e,t)}))}:hV;const W_=lSt;function fSt(e,t){return cd(e,W_(e),t)}var dSt=Object.getOwnPropertySymbols,hSt=dSt?function(e){for(var t=[];e;)cV(t,W_(e)),e=U_(e);return t}:hV;const pV=hSt;function pSt(e,t){return cd(e,pV(e),t)}function vV(e,t,n){var r=t(e);return Yi(e)?r:cV(r,n(e))}function Xx(e){return vV(e,Fp,W_)}function vSt(e){return vV(e,ud,pV)}var mSt=gl(ys,"DataView");const Zx=mSt;var gSt=gl(ys,"Promise");const tk=gSt;var ySt=gl(ys,"Set");const ek=ySt;var z9="[object Map]",bSt="[object Object]",L9="[object Promise]",B9="[object Set]",F9="[object WeakMap]",q9="[object DataView]",wSt=ml(Zx),xSt=ml(lp),kSt=ml(tk),jSt=ml(ek),_St=ml(Yx),ku=vl;(Zx&&ku(new Zx(new ArrayBuffer(1)))!=q9||lp&&ku(new lp)!=z9||tk&&ku(tk.resolve())!=L9||ek&&ku(new ek)!=B9||Yx&&ku(new Yx)!=F9)&&(ku=function(e){var t=vl(e),n=t==bSt?e.constructor:void 0,r=n?ml(n):"";if(r)switch(r){case wSt:return q9;case xSt:return z9;case kSt:return L9;case jSt:return B9;case _St:return F9}return t});const fp=ku;var SSt=Object.prototype,$St=SSt.hasOwnProperty;function CSt(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&$St.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var ESt=ys.Uint8Array;const i0=ESt;function K_(e){var t=new e.constructor(e.byteLength);return new i0(t).set(new i0(e)),t}function OSt(e,t){var n=t?K_(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var MSt=/\w*$/;function ASt(e){var t=new e.constructor(e.source,MSt.exec(e));return t.lastIndex=e.lastIndex,t}var H9=hs?hs.prototype:void 0,V9=H9?H9.valueOf:void 0;function PSt(e){return V9?Object(V9.call(e)):{}}function mV(e,t){var n=t?K_(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var TSt="[object Boolean]",RSt="[object Date]",ISt="[object Map]",NSt="[object Number]",DSt="[object RegExp]",zSt="[object Set]",LSt="[object String]",BSt="[object Symbol]",FSt="[object ArrayBuffer]",qSt="[object DataView]",HSt="[object Float32Array]",VSt="[object Float64Array]",USt="[object Int8Array]",WSt="[object Int16Array]",KSt="[object Int32Array]",JSt="[object Uint8Array]",GSt="[object Uint8ClampedArray]",QSt="[object Uint16Array]",YSt="[object Uint32Array]";function XSt(e,t,n){var r=e.constructor;switch(t){case FSt:return K_(e);case TSt:case RSt:return new r(+e);case qSt:return OSt(e,n);case HSt:case VSt:case USt:case WSt:case KSt:case JSt:case GSt:case QSt:case YSt:return mV(e,n);case ISt:return new r;case NSt:case LSt:return new r(e);case DSt:return ASt(e);case zSt:return new r;case BSt:return PSt(e)}}function gV(e){return typeof e.constructor=="function"&&!B_(e)?V2t(U_(e)):{}}var ZSt="[object Map]";function t$t(e){return ps(e)&&fp(e)==ZSt}var U9=zf&&zf.isMap,e$t=U9?F_(U9):t$t;const n$t=e$t;var r$t="[object Set]";function o$t(e){return ps(e)&&fp(e)==r$t}var W9=zf&&zf.isSet,i$t=W9?F_(W9):o$t;const a$t=i$t;var s$t=1,c$t=2,u$t=4,yV="[object Arguments]",l$t="[object Array]",f$t="[object Boolean]",d$t="[object Date]",h$t="[object Error]",bV="[object Function]",p$t="[object GeneratorFunction]",v$t="[object Map]",m$t="[object Number]",wV="[object Object]",g$t="[object RegExp]",y$t="[object Set]",b$t="[object String]",w$t="[object Symbol]",x$t="[object WeakMap]",k$t="[object ArrayBuffer]",j$t="[object DataView]",_$t="[object Float32Array]",S$t="[object Float64Array]",$$t="[object Int8Array]",C$t="[object Int16Array]",E$t="[object Int32Array]",O$t="[object Uint8Array]",M$t="[object Uint8ClampedArray]",A$t="[object Uint16Array]",P$t="[object Uint32Array]",ur={};ur[yV]=ur[l$t]=ur[k$t]=ur[j$t]=ur[f$t]=ur[d$t]=ur[_$t]=ur[S$t]=ur[$$t]=ur[C$t]=ur[E$t]=ur[v$t]=ur[m$t]=ur[wV]=ur[g$t]=ur[y$t]=ur[b$t]=ur[w$t]=ur[O$t]=ur[M$t]=ur[A$t]=ur[P$t]=!0;ur[h$t]=ur[bV]=ur[x$t]=!1;function Lm(e,t,n,r,o,i){var a,s=t&s$t,c=t&c$t,u=t&u$t;if(n&&(a=o?n(e,r,o,i):n(e)),a!==void 0)return a;if(!bs(e))return e;var l=Yi(e);if(l){if(a=CSt(e),!s)return XH(e,a)}else{var f=fp(e),d=f==bV||f==p$t;if(cp(e))return dV(e,s);if(f==wV||f==yV||d&&!o){if(a=c||d?{}:gV(e),!s)return c?pSt(e,iSt(a,e)):fSt(e,oSt(a,e))}else{if(!ur[f])return o?e:{};a=XSt(e,f,s)}}i||(i=new Sa);var h=i.get(e);if(h)return h;i.set(e,a),a$t(e)?e.forEach(function(m){a.add(Lm(m,t,n,m,e,i))}):n$t(e)&&e.forEach(function(m,g){a.set(g,Lm(m,t,n,g,e,i))});var p=u?c?vSt:Xx:c?ud:Fp,v=l?void 0:p(e);return njt(v||e,function(m,g){v&&(g=m,m=e[g]),ZH(a,g,Lm(m,t,n,g,e,i))}),a}var T$t=1,R$t=4;function I$t(e){return Lm(e,T$t|R$t)}var N$t="__lodash_hash_undefined__";function D$t(e){return this.__data__.set(e,N$t),this}function z$t(e){return this.__data__.has(e)}function a0(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new oc;++t<n;)this.add(e[t])}a0.prototype.add=a0.prototype.push=D$t;a0.prototype.has=z$t;function L$t(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function B$t(e,t){return e.has(t)}var F$t=1,q$t=2;function xV(e,t,n,r,o,i){var a=n&F$t,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var u=i.get(e),l=i.get(t);if(u&&l)return u==t&&l==e;var f=-1,d=!0,h=n&q$t?new a0:void 0;for(i.set(e,t),i.set(t,e);++f<s;){var p=e[f],v=t[f];if(r)var m=a?r(v,p,f,t,e,i):r(p,v,f,e,t,i);if(m!==void 0){if(m)continue;d=!1;break}if(h){if(!L$t(t,function(g,y){if(!B$t(h,y)&&(p===g||o(p,g,n,r,i)))return h.push(y)})){d=!1;break}}else if(!(p===v||o(p,v,n,r,i))){d=!1;break}}return i.delete(e),i.delete(t),d}function H$t(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}function V$t(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var U$t=1,W$t=2,K$t="[object Boolean]",J$t="[object Date]",G$t="[object Error]",Q$t="[object Map]",Y$t="[object Number]",X$t="[object RegExp]",Z$t="[object Set]",tCt="[object String]",eCt="[object Symbol]",nCt="[object ArrayBuffer]",rCt="[object DataView]",K9=hs?hs.prototype:void 0,hb=K9?K9.valueOf:void 0;function oCt(e,t,n,r,o,i,a){switch(n){case rCt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case nCt:return!(e.byteLength!=t.byteLength||!i(new i0(e),new i0(t)));case K$t:case J$t:case Y$t:return Bp(+e,+t);case G$t:return e.name==t.name&&e.message==t.message;case X$t:case tCt:return e==t+"";case Q$t:var s=H$t;case Z$t:var c=r&U$t;if(s||(s=V$t),e.size!=t.size&&!c)return!1;var u=a.get(e);if(u)return u==t;r|=W$t,a.set(e,t);var l=xV(s(e),s(t),r,o,i,a);return a.delete(e),l;case eCt:if(hb)return hb.call(e)==hb.call(t)}return!1}var iCt=1,aCt=Object.prototype,sCt=aCt.hasOwnProperty;function cCt(e,t,n,r,o,i){var a=n&iCt,s=Xx(e),c=s.length,u=Xx(t),l=u.length;if(c!=l&&!a)return!1;for(var f=c;f--;){var d=s[f];if(!(a?d in t:sCt.call(t,d)))return!1}var h=i.get(e),p=i.get(t);if(h&&p)return h==t&&p==e;var v=!0;i.set(e,t),i.set(t,e);for(var m=a;++f<c;){d=s[f];var g=e[d],y=t[d];if(r)var b=a?r(y,g,d,t,e,i):r(g,y,d,e,t,i);if(!(b===void 0?g===y||o(g,y,n,r,i):b)){v=!1;break}m||(m=d=="constructor")}if(v&&!m){var w=e.constructor,x=t.constructor;w!=x&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof x=="function"&&x instanceof x)&&(v=!1)}return i.delete(e),i.delete(t),v}var uCt=1,J9="[object Arguments]",G9="[object Array]",cm="[object Object]",lCt=Object.prototype,Q9=lCt.hasOwnProperty;function fCt(e,t,n,r,o,i){var a=Yi(e),s=Yi(t),c=a?G9:fp(e),u=s?G9:fp(t);c=c==J9?cm:c,u=u==J9?cm:u;var l=c==cm,f=u==cm,d=c==u;if(d&&cp(e)){if(!cp(t))return!1;a=!0,l=!1}if(d&&!l)return i||(i=new Sa),a||q_(e)?xV(e,t,n,r,o,i):oCt(e,t,c,n,r,o,i);if(!(n&uCt)){var h=l&&Q9.call(e,"__wrapped__"),p=f&&Q9.call(t,"__wrapped__");if(h||p){var v=h?e.value():e,m=p?t.value():t;return i||(i=new Sa),o(v,m,n,r,i)}}return d?(i||(i=new Sa),cCt(e,t,n,r,o,i)):!1}function J_(e,t,n,r,o){return e===t?!0:e==null||t==null||!ps(e)&&!ps(t)?e!==e&&t!==t:fCt(e,t,n,r,J_,o)}var dCt=1,hCt=2;function pCt(e,t,n,r){var o=n.length,i=o,a=!r;if(e==null)return!i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){s=n[o];var c=s[0],u=e[c],l=s[1];if(a&&s[2]){if(u===void 0&&!(c in e))return!1}else{var f=new Sa;if(r)var d=r(u,l,c,e,t,f);if(!(d===void 0?J_(l,u,dCt|hCt,r,f):d))return!1}}return!0}function kV(e){return e===e&&!bs(e)}function vCt(e){for(var t=Fp(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,kV(o)]}return t}function jV(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function mCt(e){var t=vCt(e);return t.length==1&&t[0][2]?jV(t[0][0],t[0][1]):function(n){return n===e||pCt(n,e,t)}}function gCt(e,t){return e!=null&&t in Object(e)}function yCt(e,t,n){t=aV(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var a=k1(t[r]);if(!(i=e!=null&&n(e,a)))break;e=e[a]}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&L_(o)&&z_(a,o)&&(Yi(e)||o0(e)))}function bCt(e,t){return e!=null&&yCt(e,t,gCt)}var wCt=1,xCt=2;function kCt(e,t){return H_(e)&&kV(t)?jV(k1(e),t):function(n){var r=U_t(n,e);return r===void 0&&r===t?bCt(n,e):J_(t,r,wCt|xCt)}}function jCt(e){return function(t){return t==null?void 0:t[e]}}function _Ct(e){return function(t){return sV(t,e)}}function SCt(e){return H_(e)?jCt(k1(e)):_Ct(e)}function $Ct(e){return typeof e=="function"?e:e==null?N_:typeof e=="object"?Yi(e)?kCt(e[0],e[1]):mCt(e):SCt(e)}function CCt(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var c=a[e?s:++o];if(n(i[c],c,i)===!1)break}return t}}var ECt=CCt();const _V=ECt;function OCt(e,t){return e&&_V(e,t,Fp)}function nk(e,t,n){(n!==void 0&&!Bp(e[t],n)||n===void 0&&!(t in e))&&y1(e,t,n)}function MCt(e){return ps(e)&&b1(e)}function rk(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function ACt(e){return cd(e,ud(e))}function PCt(e,t,n,r,o,i,a){var s=rk(e,n),c=rk(t,n),u=a.get(c);if(u){nk(e,n,u);return}var l=i?i(s,c,n+"",e,t,a):void 0,f=l===void 0;if(f){var d=Yi(c),h=!d&&cp(c),p=!d&&!h&&q_(c);l=c,d||h||p?Yi(s)?l=s:MCt(s)?l=XH(s):h?(f=!1,l=dV(c,!0)):p?(f=!1,l=mV(c,!0)):l=[]:lV(c)||o0(c)?(l=s,o0(s)?l=ACt(s):(!bs(s)||D_(s))&&(l=gV(c))):f=!1}f&&(a.set(c,l),o(l,c,r,i,a),a.delete(c)),nk(e,n,l)}function SV(e,t,n,r,o){e!==t&&_V(t,function(i,a){if(o||(o=new Sa),bs(i))PCt(e,t,a,n,SV,r,o);else{var s=r?r(rk(e,a),i,a+"",e,t,o):void 0;s===void 0&&(s=i),nk(e,a,s)}},ud)}var TCt=tV(function(e,t,n,r){SV(e,t,n,r)});const RCt=TCt;function ICt(e,t){var n={};return t=$Ct(t),OCt(e,function(r,o,i){y1(n,t(r,o,i),r)}),n}var s0=function(){return s0=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},s0.apply(this,arguments)};function NCt(e){return e.toLowerCase()}var DCt=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],zCt=/[^A-Z0-9]+/gi;function LCt(e,t){t===void 0&&(t={});for(var n=t.splitRegexp,r=n===void 0?DCt:n,o=t.stripRegexp,i=o===void 0?zCt:o,a=t.transform,s=a===void 0?NCt:a,c=t.delimiter,u=c===void 0?" ":c,l=Y9(Y9(e,r,"$1\0$2"),i,"\0"),f=0,d=l.length;l.charAt(f)==="\0";)f++;for(;l.charAt(d-1)==="\0";)d--;return l.slice(f,d).split("\0").map(s).join(u)}function Y9(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce(function(r,o){return r.replace(o,n)},e)}function $V(e,t){var n=e.charAt(0),r=e.substr(1).toLowerCase();return t>0&&n>="0"&&n<="9"?"_"+n+r:""+n.toUpperCase()+r}function BCt(e,t){return t===void 0&&(t={}),LCt(e,s0({delimiter:"",transform:$V},t))}function FCt(e,t){return t===0?e.toLowerCase():$V(e,t)}function qCt(e,t){return t===void 0&&(t={}),BCt(e,s0({transform:FCt},t))}function HCt(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}const VCt=HCt("String,Number,Boolean,Function,Symbol,BigInt");function UCt(e){const t=e==null?void 0:e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function WCt(e,t){let n;const r=UCt(t);if(VCt(r)){const o=typeof e;n=o===r.toLowerCase(),!n&&o==="object"&&(n=e instanceof t)}else r==="Object"?n=bs(e):r==="Array"?n=Array.isArray(e):r==="null"?n=e===null:n=e instanceof t;return{valid:n,expectedType:r}}function KCt({prop:e,type:t,validator:n}){if(![void 0,null].includes(e)&&t){let r=!1;const o=Array.isArray(t)?t:[t],i=[];for(let a=0;a<o.length&&!r;a++){const{valid:s,expectedType:c}=WCt(e,o[a]);i.push(c||""),r=s}if(!r)throw new Error(`Invalid prop: type check failed, expecting [${i.join(", ")}], receiving: ${e}`)}if(n&&!n(e))throw new Error(`Invalid prop: validator check failed, receiving: ${e}`)}function JCt(e,{mergeObject:t,mergeFunction:n}){const r=[];for(let i=e.length-1;i>=0;i--)r.push(e[i]);const o=n?(i,a)=>typeof i=="function"&&typeof a=="function"?n(a,i):void 0:void 0;return t==="deep"?RCt(...r,o):s_t(...r,o)}function GCt(e,{mergeFunction:t}){return e.reduce(t,()=>{})}function Tl(e,t={}){const{type:n,default:r,defaultIsDynamic:o=!1,required:i=!1,validator:a,camelizeObjectKeys:s=!1,mergeObjectApplyOnlyToDefault:c=!1,mergeFunctionApplyOnlyToDefault:u=!0}=t;let{mergeObject:l="deep",mergeFunction:f=!1}=t;const d=[];let h,p=!1,v=!1;const m=g=>{if(g!==void 0){KCt({type:n,prop:g,validator:a});const y=lV(g),b=typeof g=="function";return p=y,v=b,y?(g=I$t(g),s?ICt(g,(w,x)=>qCt(x,{stripRegexp:/-/g})):g):g}};for(const g of e)d.push(m(g));if(!o)d.push(m(r));else if(typeof r!="function")throw new TypeError(`Invalid option: config.default should be Function when config.defaultIsDynamic enabled, receiving: ${r}`);p||(l=!1,v||(f=!1));for(let g=0;g<d.length;g++){const y=d[g];if(y!==void 0){g===d.length-1?h=y:l?h=JCt(c?[y,r]:d,{mergeObject:l,mergeFunction:f}):f?h=GCt(u?[y,r]:d,{mergeFunction:f}):h=y;break}}if(i&&[void 0,null].includes(h))throw new Error("Missing required prop");return o?Tl(e,{...t,default:r(h),defaultIsDynamic:!1}):h}function X9(e){const t=Array.from(e);return t[0]=t[0].toUpperCase(),t.unshift("n"),t.unshift("o"),t.join("")}function QCt(e,t=[]){const n={props:{},attrs:{},listeners:{},hooks:{},slots:{}},r=Array.isArray(t)?t:Object.keys(t);for(const o in e)if(o.startsWith("@")){const i=o.substring(1);i.startsWith("vnode")?n.hooks[X9(i)]=e[o]:n.listeners[X9(i)]=e[o]}else if(o.startsWith("#")){const i=o.substring(1);i&&(n.slots[i]=e[o])}else r.includes(o)?n.props[o]=e[o]:n.attrs[o]=e[o];return n}var YCt=typeof global=="object"&&global&&global.Object===Object&&global;const XCt=YCt;var ZCt=typeof self=="object"&&self&&self.Object===Object&&self,t3t=XCt||ZCt||Function("return this")();const CV=t3t;var e3t=CV.Symbol;const c0=e3t;var EV=Object.prototype,n3t=EV.hasOwnProperty,r3t=EV.toString,Ad=c0?c0.toStringTag:void 0;function o3t(e){var t=n3t.call(e,Ad),n=e[Ad];try{e[Ad]=void 0;var r=!0}catch{}var o=r3t.call(e);return r&&(t?e[Ad]=n:delete e[Ad]),o}var i3t=Object.prototype,a3t=i3t.toString;function s3t(e){return a3t.call(e)}var c3t="[object Null]",u3t="[object Undefined]",Z9=c0?c0.toStringTag:void 0;function l3t(e){return e==null?e===void 0?u3t:c3t:Z9&&Z9 in Object(e)?o3t(e):s3t(e)}function f3t(e){return e!=null&&typeof e=="object"}var d3t="[object Symbol]";function h3t(e){return typeof e=="symbol"||f3t(e)&&l3t(e)==d3t}var p3t=/\s/;function v3t(e){for(var t=e.length;t--&&p3t.test(e.charAt(t)););return t}var m3t=/^\s+/;function g3t(e){return e&&e.slice(0,v3t(e)+1).replace(m3t,"")}function ok(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var t7=0/0,y3t=/^[-+]0x[0-9a-f]+$/i,b3t=/^0b[01]+$/i,w3t=/^0o[0-7]+$/i,x3t=parseInt;function e7(e){if(typeof e=="number")return e;if(h3t(e))return t7;if(ok(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ok(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=g3t(e);var n=b3t.test(e);return n||w3t.test(e)?x3t(e.slice(2),n?2:8):y3t.test(e)?t7:+e}var k3t=function(){return CV.Date.now()};const pb=k3t;var j3t="Expected a function",_3t=Math.max,S3t=Math.min;function $3t(e,t,n){var r,o,i,a,s,c,u=0,l=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(j3t);t=e7(t)||0,ok(n)&&(l=!!n.leading,f="maxWait"in n,i=f?_3t(e7(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d);function h(k){var j=r,S=o;return r=o=void 0,u=k,a=e.apply(S,j),a}function p(k){return u=k,s=setTimeout(g,t),l?h(k):a}function v(k){var j=k-c,S=k-u,N=t-j;return f?S3t(N,i-S):N}function m(k){var j=k-c,S=k-u;return c===void 0||j>=t||j<0||f&&S>=i}function g(){var k=pb();if(m(k))return y(k);s=setTimeout(g,v(k))}function y(k){return s=void 0,d&&r?h(k):(r=o=void 0,a)}function b(){s!==void 0&&clearTimeout(s),u=0,r=c=o=s=void 0}function w(){return s===void 0?a:y(pb())}function x(){var k=pb(),j=m(k);if(r=arguments,o=this,c=k,j){if(s===void 0)return p(c);if(f)return clearTimeout(s),s=setTimeout(g,t),h(c)}return s===void 0&&(s=setTimeout(g,t)),a}return x.cancel=b,x.flush=w,x}const C3t="JsonEditorVue",um="modelValue",n7="update:modelValue",lm=["mainMenuBar","navigationBar","statusBar","askToFormat","readOnly","escapeControlCharacters","escapeUnicodeCharacters","flattenColumns"],OV=Jo({name:C3t,props:{[um]:{},mode:{type:String},...Object.fromEntries(lm.map(e=>[e,{type:Boolean,default:void 0}]))},emits:{[n7](e){return!0},"update:mode":function(e){return!0}},setup(e,{attrs:t,emit:n,expose:r}){var o;const i=(o=Qs())==null?void 0:o.proxy,a=Tn(),s=Tn(!1),c=Tn(!1),u=$3t(d=>{if(c.value){c.value=!1;return}s.value=!0,n(n7,d.text===void 0?d.json:d.text)},100),l=d=>{n("update:mode",d)},f=(d,h)=>(...p)=>{d(...p),h(...p)};return r==null||r({jsonEditor:a}),vf(()=>{var d;(d=a.value)==null||d.destroy()}),cl(()=>{const d=Tl([e.mode,Bm.mode],{type:String}),h=Tl([e[um],Bm[um]]),p=Object.fromEntries(Array.from(lm,m=>[m,Tl([e[m],Bm[m]])]).filter(([,m])=>m!==void 0)),v=Tl([t,MV,{onChange:u,onChangeMode:l,mode:d,...p,...h!==void 0&&{content:{json:h}}}],{type:Object,mergeFunction:f});a.value=new Xwt({target:i==null?void 0:i.$refs.jsonEditorRef,props:v}),so(()=>e[um],m=>{if(s.value){s.value=!1;return}a.value&&(c.value=!0,a.value.set([void 0,""].includes(m)?{text:""}:{json:m}))},{deep:!0}),so(()=>e.mode,m=>{var g;(g=a.value)==null||g.updateProps({mode:m})}),so(()=>Array.from(lm,m=>e[m]),m=>{var g;(g=a.value)==null||g.updateProps(Object.fromEntries(Array.from(m,(y,b)=>[lm[b],y]).filter(([,y])=>y!==void 0)))}),so(()=>t,m=>{var g;const y={};m.onChange&&(y.onChange=u),m.onChangeMode&&(y.onChangeMode=l),(g=a.value)==null||g.updateProps(Object.getOwnPropertyNames(y).length>0?Tl([m,y],{type:Object,mergeFunction:f}):m)},{deep:!0}),r||(r=m=>{for(const g in m)i[g]=Re(m[g])},r({jsonEditor:a}))}),()=>Ho("div",{ref:"jsonEditorRef"})}}),Bm={},MV={};function E3t(e){return e.install=(t,n={})=>{const{props:r,attrs:o}=QCt(n,OV.props);Object.assign(Bm,r),Object.assign(MV,o),t.component(e.name,e)},e}const O3t=E3t(OV);const M3t={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((e,t)=>(e[t.id]=t)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let n=0;this.panes=this.panes.map((r,o)=>(r.size=o===t?r.max:r.min,o!==t&&(n+=r.min),r)),this.panes[t].size-=n,this.$emit("pane-maximize",this.panes[t]),this.$emit("resized",this.panes.map(r=>({min:r.min,max:r.max,size:r.size})))},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const t=this.container.getBoundingClientRect(),{clientX:n,clientY:r}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:n-t.left,y:r-t.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),e*100/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let n={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const r=0+(this.pushOtherPanes?0:n.prevPanesSize),o=100-(this.pushOtherPanes?0:n.nextPanesSize),i=Math.max(Math.min(this.getCurrentDragPercentage(e),o),r);let a=[t,t+1],s=this.panes[a[0]]||null,c=this.panes[a[1]]||null;const u=s.max<100&&i>=s.max+n.prevPanesSize,l=c.max<100&&i<=100-(c.max+this.sumNextPanesSize(t+1));if(u||l){u?(s.size=s.max,c.size=Math.max(100-s.max-n.prevPanesSize-n.nextPanesSize,0)):(s.size=Math.max(100-c.max-n.prevPanesSize-this.sumNextPanesSize(t+1),0),c.size=c.max);return}if(this.pushOtherPanes){const f=this.doPushOtherPanes(n,i);if(!f)return;({sums:n,panesToResize:a}=f),s=this.panes[a[0]]||null,c=this.panes[a[1]]||null}s!==null&&(s.size=Math.min(Math.max(i-n.prevPanesSize-n.prevReachedMinPanes,s.min),s.max)),c!==null&&(c.size=Math.min(Math.max(100-i-n.nextPanesSize-n.nextReachedMinPanes,c.min),c.max))},doPushOtherPanes(e,t){const n=this.touch.activeSplitter,r=[n,n+1];return t<e.prevPanesSize+this.panes[r[0]].min&&(r[0]=this.findPrevExpandedPane(n).index,e.prevReachedMinPanes=0,r[0]<n&&this.panes.forEach((o,i)=>{i>r[0]&&i<=n&&(o.size=o.min,e.prevReachedMinPanes+=o.min)}),e.prevPanesSize=this.sumPrevPanesSize(r[0]),r[0]===void 0)?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((o,i)=>{i>0&&i<=n&&(o.size=o.min,e.prevReachedMinPanes+=o.min)}),this.panes[r[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[r[1]].min&&(r[1]=this.findNextExpandedPane(n).index,e.nextReachedMinPanes=0,r[1]>n+1&&this.panes.forEach((o,i)=>{i>n&&i<r[1]&&(o.size=o.min,e.nextReachedMinPanes+=o.min)}),e.nextPanesSize=this.sumNextPanesSize(r[1]-1),r[1]===void 0)?(e.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((o,i)=>{i<this.panesCount-1&&i>=n+1&&(o.size=o.min,e.nextReachedMinPanes+=o.min)}),this.panes[r[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:r}},sumPrevPanesSize(e){return this.panes.reduce((t,n,r)=>t+(r<e?n.size:0),0)},sumNextPanesSize(e){return this.panes.reduce((t,n,r)=>t+(r>e+1?n.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(t=>t.index<e&&t.size>t.min)||{}},findNextExpandedPane(e){return this.panes.find(t=>t.index>e+1&&t.size>t.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const t=e.classList.contains("splitpanes__pane"),n=e.classList.contains("splitpanes__splitter");!t&&!n&&(e.parentNode.removeChild(e),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},addSplitter(e,t,n=!1){const r=e-1,o=document.createElement("div");o.classList.add("splitpanes__splitter"),n||(o.onmousedown=i=>this.onMouseDown(i,r),typeof window<"u"&&"ontouchstart"in window&&(o.ontouchstart=i=>this.onMouseDown(i,r)),o.onclick=i=>this.onSplitterClick(i,r+1)),this.dblClickSplitter&&(o.ondblclick=i=>this.onSplitterDblClick(i,r+1)),t.parentNode.insertBefore(o,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(n=>{n.className.includes("splitpanes__splitter")&&this.removeSplitter(n)});let t=0;e.forEach(n=>{n.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,n,!0):t&&this.addSplitter(t,n),t++)})},requestUpdate({target:e,...t}){const n=this.indexedPanes[e._.uid];Object.entries(t).forEach(([r,o])=>n[r]=o)},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some(o=>(o.className.includes("splitpanes__pane")&&t++,o===e.$el));const n=parseFloat(e.minSize),r=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._.uid,index:t,min:isNaN(n)?0:n,max:isNaN(r)?100:r,size:e.size===null?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((o,i)=>o.index=i),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map(o=>({min:o.min,max:o.max,size:o.size}))})})},onPaneRemove(e){const t=this.panes.findIndex(r=>r.id===e._.uid),n=this.panes.splice(t,1)[0];this.panes.forEach((r,o)=>r.index=o),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...n,index:t}}),this.$emit("pane-remove",{removed:n,panes:this.panes.map(r=>({min:r.min,max:r.max,size:r.size}))})})},resetPaneSizes(e={}){!e.addedPane&&!e.removedPane?this.initialPanesSizing():this.panes.some(t=>t.givenSize!==null||t.min||t.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size})))},equalize(){const e=100/this.panesCount;let t=0;const n=[],r=[];this.panes.forEach(o=>{o.size=Math.max(Math.min(e,o.max),o.min),t-=o.size,o.size>=o.max&&n.push(o.id),o.size<=o.min&&r.push(o.id)}),t>.1&&this.readjustSizes(t,n,r)},initialPanesSizing(){let e=100;const t=[],n=[];let r=0;this.panes.forEach(i=>{e-=i.size,i.size!==null&&r++,i.size>=i.max&&t.push(i.id),i.size<=i.min&&n.push(i.id)});let o=100;e>.1&&(this.panes.forEach(i=>{i.size===null&&(i.size=Math.max(Math.min(e/(this.panesCount-r),i.max),i.min)),o-=i.size}),o>.1&&this.readjustSizes(e,t,n))},equalizeAfterAddOrRemove({addedPane:e,removedPane:t}={}){let n=100/this.panesCount,r=0;const o=[],i=[];e&&e.givenSize!==null&&(n=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(a=>{r-=a.size,a.size>=a.max&&o.push(a.id),a.size<=a.min&&i.push(a.id)}),!(Math.abs(r)<.1)&&(this.panes.forEach(a=>{e&&e.givenSize!==null&&e.id===a.id||(a.size=Math.max(Math.min(n,a.max),a.min)),r-=a.size,a.size>=a.max&&o.push(a.id),a.size<=a.min&&i.push(a.id)}),r>.1&&this.readjustSizes(r,o,i))},readjustSizes(e,t,n){let r;e>0?r=e/(this.panesCount-t.length):r=e/(this.panesCount-n.length),this.panes.forEach((o,i)=>{if(e>0&&!t.includes(o.id)){const a=Math.max(Math.min(o.size+r,o.max),o.min),s=a-o.size;e-=s,o.size=a}else if(!n.includes(o.id)){const a=Math.max(Math.min(o.size+r,o.max),o.min),s=a-o.size;e-=s,o.size=a}o.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[o.id].size}%`})}),Math.abs(e)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((t,n)=>{t.ondblclick=e?r=>this.onSplitterDblClick(r,n):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return Ho("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},A3t=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},P3t={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}};function T3t(e,t,n,r,o,i){return Vn(),li("div",{class:"splitpanes__pane",onClick:t[0]||(t[0]=a=>i.onPaneClick(a,e._.uid)),style:zc(e.style)},[Ku(e.$slots,"default")],4)}const r7=A3t(P3t,[["render",T3t]]);let Rl;const Pd=[];function R3t(e){if(Pd.push(e),!(typeof window>"u"))return window.__NUXT_DEVTOOLS__&&Pd.forEach(t=>t(window.__NUXT_DEVTOOLS__)),Object.defineProperty(window,"__NUXT_DEVTOOLS__",{set(t){t&&Pd.forEach(n=>n(t))},get(){return Rl.value},configurable:!0}),()=>{Pd.splice(Pd.indexOf(e),1)}}function I3t(){Rl||(Rl=pf(),R3t(t));function e(){kU(Rl)}function t(n){Rl.value=n,n.host&&n.host.hooks.hook("host:update:reactivity",e)}return Rl}const o7=I3t();const N3t="2.1.1",D3t={class:"flex-row flex h-screen"},z3t={class:"border-r-1 border-light-400 dark:border-dark-400 dark:bg-dark-900 dark:text-light bg-white text-dark-800 flex flex-col justify-between h-screen z-5"},L3t={class:"flex-grow hidden md:block"},B3t={class:"py-3 w-full flex items-start px-5 justify-between space-x-5"},F3t=nr("h1",{class:"text-base w-40"}," OG Image Playground ",-1),q3t=nr("hr",{class:"border-1 border-light-400 dark:border-dark-400"},null,-1),H3t={class:"py-7 px-5 text-sm flex flex-col space-y-3"},V3t=nr("hr",{class:"border-1 border-light-400 dark:border-dark-400"},null,-1),U3t={key:0,class:"py-7 px-5 text-sm flex flex-col space-y-3"},W3t={class:"p-3 text-gray-400 text-sm text-center"},K3t={class:"mx-auto flex flex-col w-full bg-white dark:bg-black max-h-screen overflow-hidden dark:bg-dark-700 bg-light-200"},J3t={class:"py-9px dark:bg-dark-800 bg-light-200 px-10 opacity-80 flex items-center max-w-full block space-x-5"},G3t={class:"text-sm flex items-center space-x-5"},Q3t=nr("div",{class:"text-xs opacity-40"}," Path ",-1),Y3t={class:"flex items-center space-x-1"},X3t={key:0,class:"text-xs opacity-70"},Z3t=nr("hr",{class:"border-1 border-light-400 dark:border-dark-400"},null,-1),t4t=nr("h2",{class:"font-semibold text-lg mb-5"}," Props ",-1),e4t={class:"relative"},n4t={key:0,class:"absolute top-1 right-1 text-10px ml-1 bg-blue-100 text-blue-700 px-1 py-2px rounded"},r4t={key:0,class:"text-xs p-2 text-gray-300"},o4t=Jo({__name:"app",async setup(e){let t,n;sG({title:"OG Image Playground"}),_N(SN);const r=hr(()=>!!o7.value),o=hr(()=>{var d,h,p,v;return((v=(p=(h=(d=o7.value)==null?void 0:d.host.nuxt.vueApp.config)==null?void 0:h.globalProperties)==null?void 0:p.$route)==null?void 0:v.path)||void 0});Ga.value=o.value||Il().query.path||"/",$N.value=Il().query.base||"/",so(()=>o,d=>{Nd.value={},wu.value=!1,Ga.value=d});const i=hr(()=>Il().path!=="/vnodes"&&Il().path!=="/options"),a=([t,n]=kb(()=>B$()),t=await t,n(),t);so(a,d=>{rv.value=Re(d),d={...Re(d)},delete d.path,delete d.cache,delete d.cacheTtl,delete d.component,delete d.provider,delete d.componentHash,q1.value=d},{immediate:!0});const s=Gk(d=>{Nd.value={},wu.value=!1,Ga.value=d.target.value,Dd()},1e3),c=ZI();function u(d){Nd.value=d,wu.value=!0,Dd()}const l=hr(()=>c.value==="dark");async function f(d=!0){d&&await B$(),Nd.value={},wu.value=!1;const h={...rv.value};delete h.path,delete h.cache,delete h.cacheTtl,delete h.component,delete h.provider,delete h.componentHash,q1.value=h,d&&Dd()}return[t,n]=kb(()=>f(!1)),await t,n(),(d,h)=>{var x;const p=Bk,v=fY,m=mY,g=gN,y=NI,b=MX,w=IX;return Vn(),li("div",D3t,[nr("header",z3t,[nr("div",L3t,[nr("div",B3t,[F3t,Re(r)?qa("",!0):(Vn(),xo(m,{key:0},{default:oo(({toggle:k})=>[nn(v,{n:"borderless lg m-0","p-0":"",op50:"",onClick:k},{default:oo(()=>[nn(p,{icon:"dark:carbon-moon carbon-sun"})]),_:2},1032,["onClick"])]),_:1}))]),q3t,nr("div",H3t,[nn(y,{to:"/",class:"transition-all hover:ml-1 whitespace-nowrap"},{default:oo(({isActive:k})=>[nn(g,{name:"carbon:image-search",class:Gr(["mr-1",[k?"opacity-90":"opacity-60"]])},null,8,["class"]),nr("span",{class:Gr([k?"underline":"opacity-60"])}," Template HTML ",2)]),_:1}),((x=Re(rv))==null?void 0:x.provider)==="satori"?(Vn(),xo(y,{key:0,to:"/svg",class:"transition-all hover:ml-1 whitespace-nowrap"},{default:oo(({isActive:k})=>[nn(g,{name:"carbon:svg",class:Gr(["mr-1",[k?"opacity-90":"opacity-60"]])},null,8,["class"]),nr("span",{class:Gr([k?"underline":"opacity-60"])}," Preview SVG ",2)]),_:1})):qa("",!0),nn(y,{to:"/png",class:"transition-all hover:ml-1 whitespace-nowrap"},{default:oo(({isActive:k})=>[nn(g,{name:"carbon:png",class:Gr(["mr-1",[k?"opacity-90":"opacity-60"]])},null,8,["class"]),nr("span",{class:Gr([k?"underline":"opacity-60"])}," Preview PNG ",2)]),_:1}),nn(y,{to:"/options",class:"transition-all hover:ml-1 whitespace-nowrap"},{default:oo(({isActive:k})=>[nn(g,{name:"carbon:operations-record",class:Gr(["mr-1",[k?"opacity-90":"opacity-60"]])},null,8,["class"]),nr("span",{class:Gr([k?"underline":"opacity-60"])}," Options ",2)]),_:1}),nn(y,{to:"/vnodes",class:"transition-all hover:ml-1 whitespace-nowrap"},{default:oo(({isActive:k})=>[nn(g,{name:"carbon:ibm-cloud-pak-manta-automated-data-lineage",class:Gr(["mr-1",[k?"opacity-90":"opacity-60"]])},null,8,["class"]),nr("span",{class:Gr([k?"underline":"opacity-60"])}," vNodes ",2)]),_:1})]),V3t,Re(i)?(Vn(),li("div",U3t,[Re(bl)!==504?(Vn(),li("div",{key:0,onClick:h[0]||(h[0]=k=>bl.value=504)},[nn(v,null,{default:oo(()=>[nn(g,{name:"carbon:mobile"}),Au(" Small ")]),_:1})])):qa("",!0),Re(bl)!==null?(Vn(),li("div",{key:1,onClick:h[1]||(h[1]=k=>bl.value=null)},[nn(v,null,{default:oo(()=>[nn(g,{name:"carbon:laptop"}),Au(" Full width ")]),_:1})])):qa("",!0),nr("div",null,[nn(v,{onClick:Re(Dd)},{default:oo(()=>[Au(" Refresh ")]),_:1},8,["onClick"])])])):qa("",!0)]),nr("div",W3t," v"+fm(Re(N3t)),1)]),nr("main",K3t,[nr("div",J3t,[nr("div",G3t,[Q3t,nr("div",Y3t,[nn(b,{"model-value":Re(Ga),placeholder:"Search...",n:"primary",onInput:Re(s)},null,8,["model-value","onInput"])])]),Re(L$)?(Vn(),li("div",X3t,fm(Re(L$)),1)):qa("",!0)]),Z3t,nr("div",{class:"h-full max-h-full overflow-hidden lg:p-5 p-2",style:zc({width:Re(bl)&&Re(i)?`${Re(bl)}px`:"100%"})},[nn(Re(M3t),{class:"default-theme",onResize:Re(nZ)},{default:oo(()=>[nn(Re(r7),{size:"80"},{default:oo(()=>[nn(w)]),_:1}),nn(Re(r7),{size:"20"},{default:oo(()=>[t4t,nr("div",e4t,[nn(Re(O3t),{"model-value":Re(q1),class:Gr(Re(l)?["jse-theme-dark"]:[]),"main-menu-bar":!1,"navigation-bar":!1,"onUpdate:modelValue":u},null,8,["model-value","class"]),Re(wu)?(Vn(),li("span",n4t,"modified")):qa("",!0)]),Re(wu)?(Vn(),li("div",r4t,[nr("div",null,[Au(" Update "+fm(Re(rv).component)+" to persist the changes. ",1),nr("button",{type:"button",class:"underline",onClick:h[2]||(h[2]=k=>f(!0))}," Reset ")])])):qa("",!0)]),_:1})]),_:1},8,["onResize"])],4)])])}}});const i4t={__name:"nuxt-error-page",props:{error:Object},setup(e){const n=e.error;(n.stack||"").split(`
134
134
  `).splice(1).map(f=>({text:f.replace("webpack:/","").replace(".vue",".js").trim(),internal:f.includes("node_modules")&&!f.includes(".cache")||f.includes("internal")||f.includes("new Promise")})).map(f=>`<span class="stack${f.internal?" internal":""}">${f.text}</span>`).join(`
135
- `);const r=Number(n.statusCode||500),o=r===404,i=n.statusMessage??(o?"Page Not Found":"Internal Server Error"),a=n.message||n.toString(),s=void 0,l=o?Jm(()=>Os(()=>import("./error-404.d3cf3af1.js"),["./error-404.d3cf3af1.js","./error-404.b751fa02.css"],import.meta.url).then(f=>f.default||f)):Jm(()=>Os(()=>import("./error-500.6d5569a5.js"),["./error-500.6d5569a5.js","./error-500.69009e70.css"],import.meta.url).then(f=>f.default||f));return(f,d)=>(Vn(),xo(Re(l),l7(Ck({statusCode:Re(r),statusMessage:Re(i),description:Re(a),stack:Re(s)})),null,16))}},i7={__name:"nuxt-root",setup(e){const t=()=>null,n=ar(),r=n.deferHydration(),o=!1;Ql(b0,Il()),n.hooks.callHookWith(s=>s.map(c=>c()),"vue:setup");const i=w0();W7((s,c,u)=>{if(n.hooks.callHook("vue:error",s,c,u).catch(l=>console.error("[nuxt] Error in `vue:error` hook",l)),wG(s)&&(s.fatal||s.unhandled))return n.runWithContext(()=>Nl(s)),!1});const a=!1;return(s,c)=>(Vn(),xo(I7,{onResolve:Re(r)},{default:oo(()=>[Re(i)?(Vn(),xo(Re(i4t),{key:0,error:Re(i)},null,8,["error"])):Re(a)?(Vn(),xo(Re(t),{key:1,context:Re(a)},null,8,["context"])):Re(o)?(Vn(),xo(_k(Re(o)),{key:2})):(Vn(),xo(Re(o4t),{key:3}))]),_:1},8,["onResolve"]))}};globalThis.$fetch||(globalThis.$fetch=ZK.create({baseURL:eJ()}));let a7;{let e;a7=async function(){var i,a;if(e)return e;const r=!!((i=window.__NUXT__)!=null&&i.serverRendered||((a=document.getElementById("__NUXT_DATA__"))==null?void 0:a.dataset.ssr)==="true")?lK(i7):uK(i7),o=pJ({vueApp:r});try{await mJ(o,lY)}catch(s){await o.callHook("app:error",s),o.payload.error=o.payload.error||s}try{await o.hooks.callHook("app:created",r),await o.hooks.callHook("app:beforeMount",r),r.mount(IG),await o.hooks.callHook("app:mounted",r),await tu()}catch(s){await o.callHook("app:error",s),o.payload.error=o.payload.error||s}return r},e=a7().catch(t=>{console.error("Error while mounting app:",t)})}export{S0 as A,Qk as B,Dd as C,u4t as D,xo as E,kb as F,l4t as G,c4t as H,TG as I,XI as _,nr as a,nn as b,li as c,Au as d,NI as e,s4t as f,Jo as g,ZI as h,Gk as i,rv as j,cl as k,so as l,bl as m,hr as n,Vn as o,a4t as p,L$ as q,Tn as r,zc as s,fm as t,sG as u,Re as v,oo as w,yI as x,Nd as y,Ga as z};
135
+ `);const r=Number(n.statusCode||500),o=r===404,i=n.statusMessage??(o?"Page Not Found":"Internal Server Error"),a=n.message||n.toString(),s=void 0,l=o?Jm(()=>Os(()=>import("./error-404.e6615139.js"),["./error-404.e6615139.js","./error-404.b751fa02.css"],import.meta.url).then(f=>f.default||f)):Jm(()=>Os(()=>import("./error-500.c8a21223.js"),["./error-500.c8a21223.js","./error-500.69009e70.css"],import.meta.url).then(f=>f.default||f));return(f,d)=>(Vn(),xo(Re(l),l7(Ck({statusCode:Re(r),statusMessage:Re(i),description:Re(a),stack:Re(s)})),null,16))}},i7={__name:"nuxt-root",setup(e){const t=()=>null,n=ar(),r=n.deferHydration(),o=!1;Ql(b0,Il()),n.hooks.callHookWith(s=>s.map(c=>c()),"vue:setup");const i=w0();W7((s,c,u)=>{if(n.hooks.callHook("vue:error",s,c,u).catch(l=>console.error("[nuxt] Error in `vue:error` hook",l)),wG(s)&&(s.fatal||s.unhandled))return n.runWithContext(()=>Nl(s)),!1});const a=!1;return(s,c)=>(Vn(),xo(I7,{onResolve:Re(r)},{default:oo(()=>[Re(i)?(Vn(),xo(Re(i4t),{key:0,error:Re(i)},null,8,["error"])):Re(a)?(Vn(),xo(Re(t),{key:1,context:Re(a)},null,8,["context"])):Re(o)?(Vn(),xo(_k(Re(o)),{key:2})):(Vn(),xo(Re(o4t),{key:3}))]),_:1},8,["onResolve"]))}};globalThis.$fetch||(globalThis.$fetch=ZK.create({baseURL:eJ()}));let a7;{let e;a7=async function(){var i,a;if(e)return e;const r=!!((i=window.__NUXT__)!=null&&i.serverRendered||((a=document.getElementById("__NUXT_DATA__"))==null?void 0:a.dataset.ssr)==="true")?lK(i7):uK(i7),o=pJ({vueApp:r});try{await mJ(o,lY)}catch(s){await o.callHook("app:error",s),o.payload.error=o.payload.error||s}try{await o.hooks.callHook("app:created",r),await o.hooks.callHook("app:beforeMount",r),r.mount(IG),await o.hooks.callHook("app:mounted",r),await tu()}catch(s){await o.callHook("app:error",s),o.payload.error=o.payload.error||s}return r},e=a7().catch(t=>{console.error("Error while mounting app:",t)})}export{S0 as A,Qk as B,Dd as C,u4t as D,xo as E,kb as F,l4t as G,c4t as H,TG as I,XI as _,nr as a,nn as b,li as c,Au as d,NI as e,s4t as f,Jo as g,ZI as h,Gk as i,rv as j,cl as k,so as l,bl as m,hr as n,Vn as o,a4t as p,L$ as q,Tn as r,zc as s,fm as t,sG as u,Re as v,oo as w,yI as x,Nd as y,Ga as z};