function __vite__mapDeps(indexes) {
  if (!__vite__mapDeps.viteFileDeps) {
    __vite__mapDeps.viteFileDeps = ["./index-DaNZqg5r.js","./serialization-DDqLB4lR.js","./Arrow.dom-C52_vrWm.js","./ComponentRenderer-D6RNvCu7.js","./ComponentRenderer-BnXm57ig.css","./BuilderApp-CqosWLrY.js","./marked.esm-273vDTCT.js","./BuilderApp-BcU0Qo69.css"]
  }
  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))a(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&a(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function a(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();const Lm="modulepreload",Pm=function(e,t){return new URL(e,t).href},Pc={},tn=function(t,n,a){let r=Promise.resolve();if(n&&n.length>0){const o=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),c=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));r=Promise.all(n.map(u=>{if(u=Pm(u,a),u in Pc)return;Pc[u]=!0;const p=u.endsWith(".css"),h=p?'[rel="stylesheet"]':"";if(!!a)for(let T=o.length-1;T>=0;T--){const w=o[T];if(w.href===u&&(!p||w.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${h}`))return;const m=document.createElement("link");if(m.rel=p?"stylesheet":Lm,p||(m.as="script",m.crossOrigin=""),m.href=u,c&&m.setAttribute("nonce",c),document.head.appendChild(m),p)return new Promise((T,w)=>{m.addEventListener("load",T),m.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${u}`)))})}))}return r.then(()=>t()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})};/**
* @vue/shared v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function ts(e,t){const n=new Set(e.split(","));return t?a=>n.has(a.toLowerCase()):a=>n.has(a)}const ct={},rr=[],ln=()=>{},Om=()=>!1,Jr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ui=e=>e.startsWith("onUpdate:"),gt=Object.assign,ji=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Rm=Object.prototype.hasOwnProperty,nt=(e,t)=>Rm.call(e,t),Ie=Array.isArray,or=e=>mr(e)==="[object Map]",Ba=e=>mr(e)==="[object Set]",Oc=e=>mr(e)==="[object Date]",Fm=e=>mr(e)==="[object RegExp]",Fe=e=>typeof e=="function",_t=e=>typeof e=="string",fa=e=>typeof e=="symbol",ft=e=>e!==null&&typeof e=="object",Ki=e=>(ft(e)||Fe(e))&&Fe(e.then)&&Fe(e.catch),Wu=Object.prototype.toString,mr=e=>Wu.call(e),Dm=e=>mr(e).slice(8,-1),Gu=e=>mr(e)==="[object Object]",zi=e=>_t(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,sr=ts(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ns=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Vm=/-(\w)/g,nn=ns(e=>e.replace(Vm,(t,n)=>n?n.toUpperCase():"")),Bm=/\B([A-Z])/g,vn=ns(e=>e.replace(Bm,"-$1").toLowerCase()),qr=ns(e=>e.charAt(0).toUpperCase()+e.slice(1)),Dr=ns(e=>e?`on${qr(e)}`:""),Nn=(e,t)=>!Object.is(e,t),ir=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Ko=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},jr=e=>{const t=parseFloat(e);return isNaN(t)?e:t},zo=e=>{const t=_t(e)?Number(e):NaN;return isNaN(t)?e:t};let Rc;const Yu=()=>Rc||(Rc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),Hm="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error",Um=ts(Hm);function Ct(e){if(Ie(e)){const t={};for(let n=0;n<e.length;n++){const a=e[n],r=_t(a)?Wm(a):Ct(a);if(r)for(const o in r)t[o]=r[o]}return t}else if(_t(e)||ft(e))return e}const jm=/;(?![^(]*\))/g,Km=/:([^]+)/,zm=/\/\*[^]*?\*\//g;function Wm(e){const t={};return e.replace(zm,"").split(jm).forEach(n=>{if(n){const a=n.split(Km);a.length>1&&(t[a[0].trim()]=a[1].trim())}}),t}function pt(e){let t="";if(_t(e))t=e;else if(Ie(e))for(let n=0;n<e.length;n++){const a=pt(e[n]);a&&(t+=a+" ")}else if(ft(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Gm(e){if(!e)return null;let{class:t,style:n}=e;return t&&!_t(t)&&(e.class=pt(t)),n&&(e.style=Ct(n)),e}const Ym="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Qm=ts(Ym);function Qu(e){return!!e||e===""}function Xm(e,t){if(e.length!==t.length)return!1;let n=!0;for(let a=0;n&&a<e.length;a++)n=da(e[a],t[a]);return n}function da(e,t){if(e===t)return!0;let n=Oc(e),a=Oc(t);if(n||a)return n&&a?e.getTime()===t.getTime():!1;if(n=fa(e),a=fa(t),n||a)return e===t;if(n=Ie(e),a=Ie(t),n||a)return n&&a?Xm(e,t):!1;if(n=ft(e),a=ft(t),n||a){if(!n||!a)return!1;const r=Object.keys(e).length,o=Object.keys(t).length;if(r!==o)return!1;for(const i in e){const c=e.hasOwnProperty(i),u=t.hasOwnProperty(i);if(c&&!u||!c&&u||!da(e[i],t[i]))return!1}}return String(e)===String(t)}function as(e,t){return e.findIndex(n=>da(n,t))}const Ae=e=>_t(e)?e:e==null?"":Ie(e)||ft(e)&&(e.toString===Wu||!Fe(e.toString))?JSON.stringify(e,Xu,2):String(e),Xu=(e,t)=>t&&t.__v_isRef?Xu(e,t.value):or(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[a,r],o)=>(n[ti(a,o)+" =>"]=r,n),{})}:Ba(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ti(n))}:fa(t)?ti(t):ft(t)&&!Ie(t)&&!Gu(t)?String(t):t,ti=(e,t="")=>{var n;return fa(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
* @vue/reactivity v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let pn;class Wi{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=pn,!t&&pn&&(this.index=(pn.scopes||(pn.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=pn;try{return pn=this,t()}finally{pn=n}}}on(){pn=this}off(){pn=this.parent}stop(t){if(this._active){let n,a;for(n=0,a=this.effects.length;n<a;n++)this.effects[n].stop();for(n=0,a=this.cleanups.length;n<a;n++)this.cleanups[n]();if(this.scopes)for(n=0,a=this.scopes.length;n<a;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function Jm(e){return new Wi(e)}function Ju(e,t=pn){t&&t.active&&t.effects.push(e)}function qu(){return pn}function qm(e){pn&&pn.cleanups.push(e)}let xa;class dr{constructor(t,n,a,r){this.fn=t,this.trigger=n,this.scheduler=a,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,Ju(this,r)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,Ha();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(Zm(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Ua()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=ua,n=xa;try{return ua=!0,xa=this,this._runnings++,Fc(this),this.fn()}finally{Dc(this),this._runnings--,xa=n,ua=t}}stop(){var t;this.active&&(Fc(this),Dc(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Zm(e){return e.value}function Fc(e){e._trackId++,e._depsLength=0}function Dc(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Zu(e.deps[t],e);e.deps.length=e._depsLength}}function Zu(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}function eg(e,t){e.effect instanceof dr&&(e=e.effect.fn);const n=new dr(e,ln,()=>{n.dirty&&n.run()});t&&(gt(n,t),t.scope&&Ju(n,t.scope)),(!t||!t.lazy)&&n.run();const a=n.run.bind(n);return a.effect=n,a}function tg(e){e.effect.stop()}let ua=!0,yi=0;const ef=[];function Ha(){ef.push(ua),ua=!1}function Ua(){const e=ef.pop();ua=e===void 0?!0:e}function Gi(){yi++}function Yi(){for(yi--;!yi&&bi.length;)bi.shift()()}function tf(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const a=e.deps[e._depsLength];a!==t?(a&&Zu(a,e),e.deps[e._depsLength++]=t):e._depsLength++}}const bi=[];function nf(e,t,n){Gi();for(const a of e.keys()){let r;a._dirtyLevel<t&&(r??(r=e.get(a)===a._trackId))&&(a._shouldSchedule||(a._shouldSchedule=a._dirtyLevel===0),a._dirtyLevel=t),a._shouldSchedule&&(r??(r=e.get(a)===a._trackId))&&(a.trigger(),(!a._runnings||a.allowRecurse)&&a._dirtyLevel!==2&&(a._shouldSchedule=!1,a.scheduler&&bi.push(a.scheduler)))}Yi()}const af=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Wo=new WeakMap,$a=Symbol(""),Ai=Symbol("");function un(e,t,n){if(ua&&xa){let a=Wo.get(e);a||Wo.set(e,a=new Map);let r=a.get(n);r||a.set(n,r=af(()=>a.delete(n))),tf(xa,r)}}function zn(e,t,n,a,r,o){const i=Wo.get(e);if(!i)return;let c=[];if(t==="clear")c=[...i.values()];else if(n==="length"&&Ie(e)){const u=Number(a);i.forEach((p,h)=>{(h==="length"||!fa(h)&&h>=u)&&c.push(p)})}else switch(n!==void 0&&c.push(i.get(n)),t){case"add":Ie(e)?zi(n)&&c.push(i.get("length")):(c.push(i.get($a)),or(e)&&c.push(i.get(Ai)));break;case"delete":Ie(e)||(c.push(i.get($a)),or(e)&&c.push(i.get(Ai)));break;case"set":or(e)&&c.push(i.get($a));break}Gi();for(const u of c)u&&nf(u,4);Yi()}function ng(e,t){var n;return(n=Wo.get(e))==null?void 0:n.get(t)}const ag=ts("__proto__,__v_isRef,__isVue"),rf=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(fa)),Vc=rg();function rg(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const a=Xe(this);for(let o=0,i=this.length;o<i;o++)un(a,"get",o+"");const r=a[t](...n);return r===-1||r===!1?a[t](...n.map(Xe)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Ha(),Gi();const a=Xe(this)[t].apply(this,n);return Yi(),Ua(),a}}),e}function og(e){const t=Xe(this);return un(t,"has",e),t.hasOwnProperty(e)}class of{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,a){const r=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return o;if(n==="__v_raw")return a===(r?o?df:ff:o?uf:cf).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(a)?t:void 0;const i=Ie(t);if(!r){if(i&&nt(Vc,n))return Reflect.get(Vc,n,a);if(n==="hasOwnProperty")return og}const c=Reflect.get(t,n,a);return(fa(n)?rf.has(n):ag(n))||(r||un(t,"get",n),o)?c:Bt(c)?i&&zi(n)?c:c.value:ft(c)?r?Xi(c):ss(c):c}}class sf extends of{constructor(t=!1){super(!1,t)}set(t,n,a,r){let o=t[n];if(!this._isShallow){const u=Pa(o);if(!Kr(a)&&!Pa(a)&&(o=Xe(o),a=Xe(a)),!Ie(t)&&Bt(o)&&!Bt(a))return u?!1:(o.value=a,!0)}const i=Ie(t)&&zi(n)?Number(n)<t.length:nt(t,n),c=Reflect.set(t,n,a,r);return t===Xe(r)&&(i?Nn(a,o)&&zn(t,"set",n,a):zn(t,"add",n,a)),c}deleteProperty(t,n){const a=nt(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&a&&zn(t,"delete",n,void 0),r}has(t,n){const a=Reflect.has(t,n);return(!fa(n)||!rf.has(n))&&un(t,"has",n),a}ownKeys(t){return un(t,"iterate",Ie(t)?"length":$a),Reflect.ownKeys(t)}}class lf extends of{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const sg=new sf,ig=new lf,lg=new sf(!0),cg=new lf(!0),Qi=e=>e,rs=e=>Reflect.getPrototypeOf(e);function Co(e,t,n=!1,a=!1){e=e.__v_raw;const r=Xe(e),o=Xe(t);n||(Nn(t,o)&&un(r,"get",t),un(r,"get",o));const{has:i}=rs(r),c=a?Qi:n?Zi:zr;if(i.call(r,t))return c(e.get(t));if(i.call(r,o))return c(e.get(o));e!==r&&e.get(t)}function Io(e,t=!1){const n=this.__v_raw,a=Xe(n),r=Xe(e);return t||(Nn(e,r)&&un(a,"has",e),un(a,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function To(e,t=!1){return e=e.__v_raw,!t&&un(Xe(e),"iterate",$a),Reflect.get(e,"size",e)}function Bc(e){e=Xe(e);const t=Xe(this);return rs(t).has.call(t,e)||(t.add(e),zn(t,"add",e,e)),this}function Hc(e,t){t=Xe(t);const n=Xe(this),{has:a,get:r}=rs(n);let o=a.call(n,e);o||(e=Xe(e),o=a.call(n,e));const i=r.call(n,e);return n.set(e,t),o?Nn(t,i)&&zn(n,"set",e,t):zn(n,"add",e,t),this}function Uc(e){const t=Xe(this),{has:n,get:a}=rs(t);let r=n.call(t,e);r||(e=Xe(e),r=n.call(t,e)),a&&a.call(t,e);const o=t.delete(e);return r&&zn(t,"delete",e,void 0),o}function jc(){const e=Xe(this),t=e.size!==0,n=e.clear();return t&&zn(e,"clear",void 0,void 0),n}function So(e,t){return function(a,r){const o=this,i=o.__v_raw,c=Xe(i),u=t?Qi:e?Zi:zr;return!e&&un(c,"iterate",$a),i.forEach((p,h)=>a.call(r,u(p),u(h),o))}}function Eo(e,t,n){return function(...a){const r=this.__v_raw,o=Xe(r),i=or(o),c=e==="entries"||e===Symbol.iterator&&i,u=e==="keys"&&i,p=r[e](...a),h=n?Qi:t?Zi:zr;return!t&&un(o,"iterate",u?Ai:$a),{next(){const{value:d,done:m}=p.next();return m?{value:d,done:m}:{value:c?[h(d[0]),h(d[1])]:h(d),done:m}},[Symbol.iterator](){return this}}}}function na(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ug(){const e={get(o){return Co(this,o)},get size(){return To(this)},has:Io,add:Bc,set:Hc,delete:Uc,clear:jc,forEach:So(!1,!1)},t={get(o){return Co(this,o,!1,!0)},get size(){return To(this)},has:Io,add:Bc,set:Hc,delete:Uc,clear:jc,forEach:So(!1,!0)},n={get(o){return Co(this,o,!0)},get size(){return To(this,!0)},has(o){return Io.call(this,o,!0)},add:na("add"),set:na("set"),delete:na("delete"),clear:na("clear"),forEach:So(!0,!1)},a={get(o){return Co(this,o,!0,!0)},get size(){return To(this,!0)},has(o){return Io.call(this,o,!0)},add:na("add"),set:na("set"),delete:na("delete"),clear:na("clear"),forEach:So(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Eo(o,!1,!1),n[o]=Eo(o,!0,!1),t[o]=Eo(o,!1,!0),a[o]=Eo(o,!0,!0)}),[e,n,t,a]}const[fg,dg,pg,hg]=ug();function os(e,t){const n=t?e?hg:pg:e?dg:fg;return(a,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?a:Reflect.get(nt(n,r)&&r in a?n:a,r,o)}const vg={get:os(!1,!1)},mg={get:os(!1,!0)},gg={get:os(!0,!1)},_g={get:os(!0,!0)},cf=new WeakMap,uf=new WeakMap,ff=new WeakMap,df=new WeakMap;function yg(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function bg(e){return e.__v_skip||!Object.isExtensible(e)?0:yg(Dm(e))}function ss(e){return Pa(e)?e:is(e,!1,sg,vg,cf)}function pf(e){return is(e,!1,lg,mg,uf)}function Xi(e){return is(e,!0,ig,gg,ff)}function Ag(e){return is(e,!0,cg,_g,df)}function is(e,t,n,a,r){if(!ft(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const i=bg(e);if(i===0)return e;const c=new Proxy(e,i===2?a:n);return r.set(e,c),c}function Ma(e){return Pa(e)?Ma(e.__v_raw):!!(e&&e.__v_isReactive)}function Pa(e){return!!(e&&e.__v_isReadonly)}function Kr(e){return!!(e&&e.__v_isShallow)}function Ji(e){return Ma(e)||Pa(e)}function Xe(e){const t=e&&e.__v_raw;return t?Xe(t):e}function qi(e){return Object.isExtensible(e)&&Ko(e,"__v_skip",!0),e}const zr=e=>ft(e)?ss(e):e,Zi=e=>ft(e)?Xi(e):e;class hf{constructor(t,n,a,r){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new dr(()=>t(this._value),()=>lr(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=a}get value(){const t=Xe(this);return(!t._cacheable||t.effect.dirty)&&Nn(t._value,t._value=t.effect.run())&&lr(t,4),el(t),t.effect._dirtyLevel>=2&&lr(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function wg(e,t,n=!1){let a,r;const o=Fe(e);return o?(a=e,r=ln):(a=e.get,r=e.set),new hf(a,r,o||!r,n)}function el(e){var t;ua&&xa&&(e=Xe(e),tf(xa,(t=e.dep)!=null?t:e.dep=af(()=>e.dep=void 0,e instanceof hf?e:void 0)))}function lr(e,t=4,n){e=Xe(e);const a=e.dep;a&&nf(a,t)}function Bt(e){return!!(e&&e.__v_isRef===!0)}function ae(e){return mf(e,!1)}function vf(e){return mf(e,!0)}function mf(e,t){return Bt(e)?e:new Cg(e,t)}class Cg{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Xe(t),this._value=n?t:zr(t)}get value(){return el(this),this._value}set value(t){const n=this.__v_isShallow||Kr(t)||Pa(t);t=n?t:Xe(t),Nn(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:zr(t),lr(this,4))}}function Ig(e){lr(e,4)}function $(e){return Bt(e)?e.value:e}function Tg(e){return Fe(e)?e():$(e)}const Sg={get:(e,t,n)=>$(Reflect.get(e,t,n)),set:(e,t,n,a)=>{const r=e[t];return Bt(r)&&!Bt(n)?(r.value=n,!0):Reflect.set(e,t,n,a)}};function tl(e){return Ma(e)?e:new Proxy(e,Sg)}class Eg{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:a}=t(()=>el(this),()=>lr(this));this._get=n,this._set=a}get value(){return this._get()}set value(t){this._set(t)}}function gf(e){return new Eg(e)}function nl(e){const t=Ie(e)?new Array(e.length):{};for(const n in e)t[n]=_f(e,n);return t}class kg{constructor(t,n,a){this._object=t,this._key=n,this._defaultValue=a,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return ng(Xe(this._object),this._key)}}class xg{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function $g(e,t,n){return Bt(e)?e:Fe(e)?new xg(e):ft(e)&&arguments.length>1?_f(e,t,n):ae(e)}function _f(e,t,n){const a=e[t];return Bt(a)?a:new kg(e,t,n)}const Mg={GET:"get",HAS:"has",ITERATE:"iterate"},Ng={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"};/**
* @vue/runtime-core v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Lg(e,t){}const Pg={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER"},Og={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function Wn(e,t,n,a){try{return a?e(...a):e()}catch(r){ja(r,t,n)}}function mn(e,t,n,a){if(Fe(e)){const o=Wn(e,t,n,a);return o&&Ki(o)&&o.catch(i=>{ja(i,t,n)}),o}const r=[];for(let o=0;o<e.length;o++)r.push(mn(e[o],t,n,a));return r}function ja(e,t,n,a=!0){const r=t?t.vnode:null;if(t){let o=t.parent;const i=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const p=o.ec;if(p){for(let h=0;h<p.length;h++)if(p[h](e,i,c)===!1)return}o=o.parent}const u=t.appContext.config.errorHandler;if(u){Wn(u,null,10,[e,i,c]);return}}Rg(e,n,r,a)}function Rg(e,t,n,a=!0){console.error(e)}let Wr=!1,wi=!1;const Qt=[];let Rn=0;const cr=[];let sa=null,Ea=0;const yf=Promise.resolve();let al=null;function Mn(e){const t=al||yf;return e?t.then(this?e.bind(this):e):t}function Fg(e){let t=Rn+1,n=Qt.length;for(;t<n;){const a=t+n>>>1,r=Qt[a],o=Gr(r);o<e||o===e&&r.pre?t=a+1:n=a}return t}function ls(e){(!Qt.length||!Qt.includes(e,Wr&&e.allowRecurse?Rn+1:Rn))&&(e.id==null?Qt.push(e):Qt.splice(Fg(e.id),0,e),bf())}function bf(){!Wr&&!wi&&(wi=!0,al=yf.then(Af))}function Dg(e){const t=Qt.indexOf(e);t>Rn&&Qt.splice(t,1)}function Go(e){Ie(e)?cr.push(...e):(!sa||!sa.includes(e,e.allowRecurse?Ea+1:Ea))&&cr.push(e),bf()}function Kc(e,t,n=Wr?Rn+1:0){for(;n<Qt.length;n++){const a=Qt[n];if(a&&a.pre){if(e&&a.id!==e.uid)continue;Qt.splice(n,1),n--,a()}}}function Yo(e){if(cr.length){const t=[...new Set(cr)].sort((n,a)=>Gr(n)-Gr(a));if(cr.length=0,sa){sa.push(...t);return}for(sa=t,Ea=0;Ea<sa.length;Ea++)sa[Ea]();sa=null,Ea=0}}const Gr=e=>e.id==null?1/0:e.id,Vg=(e,t)=>{const n=Gr(e)-Gr(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Af(e){wi=!1,Wr=!0,Qt.sort(Vg);try{for(Rn=0;Rn<Qt.length;Rn++){const t=Qt[Rn];t&&t.active!==!1&&Wn(t,null,14)}}finally{Rn=0,Qt.length=0,Yo(),Wr=!1,al=null,(Qt.length||cr.length)&&Af()}}let ar,ko=[];function wf(e,t){var n,a;ar=e,ar?(ar.enabled=!0,ko.forEach(({event:r,args:o})=>ar.emit(r,...o)),ko=[]):typeof window<"u"&&window.HTMLElement&&!((a=(n=window.navigator)==null?void 0:n.userAgent)!=null&&a.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{wf(o,t)}),setTimeout(()=>{ar||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,ko=[])},3e3)):ko=[]}function Bg(e,t,...n){if(e.isUnmounted)return;const a=e.vnode.props||ct;let r=n;const o=t.startsWith("update:"),i=o&&t.slice(7);if(i&&i in a){const h=`${i==="modelValue"?"model":i}Modifiers`,{number:d,trim:m}=a[h]||ct;m&&(r=n.map(T=>_t(T)?T.trim():T)),d&&(r=n.map(jr))}let c,u=a[c=Dr(t)]||a[c=Dr(nn(t))];!u&&o&&(u=a[c=Dr(vn(t))]),u&&mn(u,e,6,r);const p=a[c+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,mn(p,e,6,r)}}function Cf(e,t,n=!1){const a=t.emitsCache,r=a.get(e);if(r!==void 0)return r;const o=e.emits;let i={},c=!1;if(!Fe(e)){const u=p=>{const h=Cf(p,t,!0);h&&(c=!0,gt(i,h))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!o&&!c?(ft(e)&&a.set(e,null),null):(Ie(o)?o.forEach(u=>i[u]=null):gt(i,o),ft(e)&&a.set(e,i),i)}function cs(e,t){return!e||!Jr(t)?!1:(t=t.slice(2).replace(/Once$/,""),nt(e,t[0].toLowerCase()+t.slice(1))||nt(e,vn(t))||nt(e,t))}let $t=null,us=null;function Yr(e){const t=$t;return $t=e,us=e&&e.type.__scopeId||null,t}function Pt(e){us=e}function Ot(){us=null}const Hg=e=>Ye;function Ye(e,t=$t,n){if(!t||e._n)return e;const a=(...r)=>{a._d&&$i(-1);const o=Yr(t);let i;try{i=e(...r)}finally{Yr(o),a._d&&$i(1)}return i};return a._n=!0,a._c=!0,a._d=!0,a}function Bo(e){const{type:t,vnode:n,proxy:a,withProxy:r,props:o,propsOptions:[i],slots:c,attrs:u,emit:p,render:h,renderCache:d,data:m,setupState:T,ctx:w,inheritAttrs:y}=e;let k,U;const F=Yr(e);try{if(n.shapeFlag&4){const A=r||a,C=A;k=hn(h.call(C,A,d,o,T,m,w)),U=u}else{const A=t;k=hn(A.length>1?A(o,{attrs:u,slots:c,emit:p}):A(o,null)),U=t.props?u:jg(u)}}catch(A){Hr.length=0,ja(A,e,1),k=He(Xt)}let b=k;if(U&&y!==!1){const A=Object.keys(U),{shapeFlag:C}=b;A.length&&C&7&&(i&&A.some(Ui)&&(U=Kg(U,i)),b=Fn(b,U))}return n.dirs&&(b=Fn(b),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),k=b,Yr(F),k}function Ug(e,t=!0){let n;for(let a=0;a<e.length;a++){const r=e[a];if(pa(r)){if(r.type!==Xt||r.children==="v-if"){if(n)return;n=r}}else return}return n}const jg=e=>{let t;for(const n in e)(n==="class"||n==="style"||Jr(n))&&((t||(t={}))[n]=e[n]);return t},Kg=(e,t)=>{const n={};for(const a in e)(!Ui(a)||!(a.slice(9)in t))&&(n[a]=e[a]);return n};function zg(e,t,n){const{props:a,children:r,component:o}=e,{props:i,children:c,patchFlag:u}=t,p=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return a?zc(a,i,p):!!i;if(u&8){const h=t.dynamicProps;for(let d=0;d<h.length;d++){const m=h[d];if(i[m]!==a[m]&&!cs(p,m))return!0}}}else return(r||c)&&(!c||!c.$stable)?!0:a===i?!1:a?i?zc(a,i,p):!0:!!i;return!1}function zc(e,t,n){const a=Object.keys(t);if(a.length!==Object.keys(e).length)return!0;for(let r=0;r<a.length;r++){const o=a[r];if(t[o]!==e[o]&&!cs(n,o))return!0}return!1}function rl({vnode:e,parent:t},n){for(;t;){const a=t.subTree;if(a.suspense&&a.suspense.activeBranch===e&&(a.el=e.el),a===e)(e=t.vnode).el=n,t=t.parent;else break}}const ol="components",Wg="directives";function Gg(e,t){return il(ol,e,!0,t)||e}const If=Symbol.for("v-ndc");function sl(e){return _t(e)?il(ol,e,!1)||e:e||If}function Tf(e){return il(Wg,e)}function il(e,t,n=!0,a=!1){const r=$t||Nt;if(r){const o=r.type;if(e===ol){const c=Oi(o,!1);if(c&&(c===t||c===nn(t)||c===qr(nn(t))))return o}const i=Wc(r[e]||o[e],t)||Wc(r.appContext[e],t);return!i&&a?o:i}}function Wc(e,t){return e&&(e[t]||e[nn(t)]||e[qr(nn(t))])}const Sf=e=>e.__isSuspense;let Ci=0;const Yg={name:"Suspense",__isSuspense:!0,process(e,t,n,a,r,o,i,c,u,p){if(e==null)Xg(t,n,a,r,o,i,c,u,p);else{if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Jg(e,t,n,a,r,i,c,u,p)}},hydrate:qg,create:ll,normalize:Zg},Qg=Yg;function Qr(e,t){const n=e.props&&e.props[t];Fe(n)&&n()}function Xg(e,t,n,a,r,o,i,c,u){const{p,o:{createElement:h}}=u,d=h("div"),m=e.suspense=ll(e,r,a,t,d,n,o,i,c,u);p(null,m.pendingBranch=e.ssContent,d,null,a,m,o,i),m.deps>0?(Qr(e,"onPending"),Qr(e,"onFallback"),p(null,e.ssFallback,t,n,a,null,o,i),ur(m,e.ssFallback)):m.resolve(!1,!0)}function Jg(e,t,n,a,r,o,i,c,{p:u,um:p,o:{createElement:h}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const m=t.ssContent,T=t.ssFallback,{activeBranch:w,pendingBranch:y,isInFallback:k,isHydrating:U}=d;if(y)d.pendingBranch=m,$n(m,y)?(u(y,m,d.hiddenContainer,null,r,d,o,i,c),d.deps<=0?d.resolve():k&&(U||(u(w,T,n,a,r,null,o,i,c),ur(d,T)))):(d.pendingId=Ci++,U?(d.isHydrating=!1,d.activeBranch=y):p(y,r,d),d.deps=0,d.effects.length=0,d.hiddenContainer=h("div"),k?(u(null,m,d.hiddenContainer,null,r,d,o,i,c),d.deps<=0?d.resolve():(u(w,T,n,a,r,null,o,i,c),ur(d,T))):w&&$n(m,w)?(u(w,m,n,a,r,d,o,i,c),d.resolve(!0)):(u(null,m,d.hiddenContainer,null,r,d,o,i,c),d.deps<=0&&d.resolve()));else if(w&&$n(m,w))u(w,m,n,a,r,d,o,i,c),ur(d,m);else if(Qr(t,"onPending"),d.pendingBranch=m,m.shapeFlag&512?d.pendingId=m.component.suspenseId:d.pendingId=Ci++,u(null,m,d.hiddenContainer,null,r,d,o,i,c),d.deps<=0)d.resolve();else{const{timeout:F,pendingId:b}=d;F>0?setTimeout(()=>{d.pendingId===b&&d.fallback(T)},F):F===0&&d.fallback(T)}}function ll(e,t,n,a,r,o,i,c,u,p,h=!1){const{p:d,m,um:T,n:w,o:{parentNode:y,remove:k}}=p;let U;const F=e_(e);F&&t!=null&&t.pendingBranch&&(U=t.pendingId,t.deps++);const b=e.props?zo(e.props.timeout):void 0,A=o,C={vnode:e,parent:t,parentComponent:n,namespace:i,container:a,hiddenContainer:r,deps:0,pendingId:Ci++,timeout:typeof b=="number"?b:-1,activeBranch:null,pendingBranch:null,isInFallback:!h,isHydrating:h,isUnmounted:!1,effects:[],resolve(v=!1,O=!1){const{vnode:M,activeBranch:Y,pendingBranch:J,pendingId:me,effects:oe,parentComponent:G,container:ue}=C;let _e=!1;C.isHydrating?C.isHydrating=!1:v||(_e=Y&&J.transition&&J.transition.mode==="out-in",_e&&(Y.transition.afterLeave=()=>{me===C.pendingId&&(m(J,ue,o===A?w(Y):o,0),Go(oe))}),Y&&(y(Y.el)!==C.hiddenContainer&&(o=w(Y)),T(Y,G,C,!0)),_e||m(J,ue,o,0)),ur(C,J),C.pendingBranch=null,C.isInFallback=!1;let te=C.parent,q=!1;for(;te;){if(te.pendingBranch){te.effects.push(...oe),q=!0;break}te=te.parent}!q&&!_e&&Go(oe),C.effects=[],F&&t&&t.pendingBranch&&U===t.pendingId&&(t.deps--,t.deps===0&&!O&&t.resolve()),Qr(M,"onResolve")},fallback(v){if(!C.pendingBranch)return;const{vnode:O,activeBranch:M,parentComponent:Y,container:J,namespace:me}=C;Qr(O,"onFallback");const oe=w(M),G=()=>{C.isInFallback&&(d(null,v,J,oe,Y,null,me,c,u),ur(C,v))},ue=v.transition&&v.transition.mode==="out-in";ue&&(M.transition.afterLeave=G),C.isInFallback=!0,T(M,Y,null,!0),ue||G()},move(v,O,M){C.activeBranch&&m(C.activeBranch,v,O,M),C.container=v},next(){return C.activeBranch&&w(C.activeBranch)},registerDep(v,O){const M=!!C.pendingBranch;M&&C.deps++;const Y=v.vnode.el;v.asyncDep.catch(J=>{ja(J,v,0)}).then(J=>{if(v.isUnmounted||C.isUnmounted||C.pendingId!==v.suspenseId)return;v.asyncResolved=!0;const{vnode:me}=v;Li(v,J,!1),Y&&(me.el=Y);const oe=!Y&&v.subTree.el;O(v,me,y(Y||v.subTree.el),Y?null:w(v.subTree),C,i,u),oe&&k(oe),rl(v,me.el),M&&--C.deps===0&&C.resolve()})},unmount(v,O){C.isUnmounted=!0,C.activeBranch&&T(C.activeBranch,n,v,O),C.pendingBranch&&T(C.pendingBranch,n,v,O)}};return C}function qg(e,t,n,a,r,o,i,c,u){const p=t.suspense=ll(t,a,n,e.parentNode,document.createElement("div"),null,r,o,i,c,!0),h=u(e,p.pendingBranch=t.ssContent,n,p,o,i);return p.deps===0&&p.resolve(!1,!0),h}function Zg(e){const{shapeFlag:t,children:n}=e,a=t&32;e.ssContent=Gc(a?n.default:n),e.ssFallback=a?Gc(n.fallback):He(Xt)}function Gc(e){let t;if(Fe(e)){const n=Fa&&e._c;n&&(e._d=!1,N()),e=e(),n&&(e._d=!0,t=cn,od())}return Ie(e)&&(e=Ug(e)),e=hn(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Ef(e,t){t&&t.pendingBranch?Ie(e)?t.effects.push(...e):t.effects.push(e):Go(e)}function ur(e,t){e.activeBranch=t;const{vnode:n,parentComponent:a}=e;let r=t.el;for(;!r&&t.component;)t=t.component.subTree,r=t.el;n.el=r,a&&a.subTree===n&&(a.vnode.el=r,rl(a,r))}function e_(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}const kf=Symbol.for("v-scx"),xf=()=>z(kf);function t_(e,t){return Zr(e,null,t)}function $f(e,t){return Zr(e,null,{flush:"post"})}function Mf(e,t){return Zr(e,null,{flush:"sync"})}const xo={};function Le(e,t,n){return Zr(e,t,n)}function Zr(e,t,{immediate:n,deep:a,flush:r,once:o,onTrack:i,onTrigger:c}=ct){if(t&&o){const v=t;t=(...O)=>{v(...O),C()}}const u=Nt,p=v=>a===!0?v:ka(v,a===!1?1:void 0);let h,d=!1,m=!1;if(Bt(e)?(h=()=>e.value,d=Kr(e)):Ma(e)?(h=()=>p(e),d=!0):Ie(e)?(m=!0,d=e.some(v=>Ma(v)||Kr(v)),h=()=>e.map(v=>{if(Bt(v))return v.value;if(Ma(v))return p(v);if(Fe(v))return Wn(v,u,2)})):Fe(e)?t?h=()=>Wn(e,u,2):h=()=>(T&&T(),mn(e,u,3,[w])):h=ln,t&&a){const v=h;h=()=>ka(v())}let T,w=v=>{T=b.onStop=()=>{Wn(v,u,4),T=b.onStop=void 0}},y;if(to)if(w=ln,t?n&&mn(t,u,3,[h(),m?[]:void 0,w]):h(),r==="sync"){const v=xf();y=v.__watcherHandles||(v.__watcherHandles=[])}else return ln;let k=m?new Array(e.length).fill(xo):xo;const U=()=>{if(!(!b.active||!b.dirty))if(t){const v=b.run();(a||d||(m?v.some((O,M)=>Nn(O,k[M])):Nn(v,k)))&&(T&&T(),mn(t,u,3,[v,k===xo?void 0:m&&k[0]===xo?[]:k,w]),k=v)}else b.run()};U.allowRecurse=!!t;let F;r==="sync"?F=U:r==="post"?F=()=>Kt(U,u&&u.suspense):(U.pre=!0,u&&(U.id=u.uid),F=()=>ls(U));const b=new dr(h,ln,F),A=qu(),C=()=>{b.stop(),A&&ji(A.effects,b)};return t?n?U():k=b.run():r==="post"?Kt(b.run.bind(b),u&&u.suspense):b.run(),y&&y.push(C),C}function n_(e,t,n){const a=this.proxy,r=_t(e)?e.includes(".")?Nf(a,e):()=>a[e]:e.bind(a,a);let o;Fe(t)?o=t:(o=t.handler,n=t);const i=Da(this),c=Zr(r,o.bind(a),n);return i(),c}function Nf(e,t){const n=t.split(".");return()=>{let a=e;for(let r=0;r<n.length&&a;r++)a=a[n[r]];return a}}function ka(e,t,n=0,a){if(!ft(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(a=a||new Set,a.has(e))return e;if(a.add(e),Bt(e))ka(e.value,t,n,a);else if(Ie(e))for(let r=0;r<e.length;r++)ka(e[r],t,n,a);else if(Ba(e)||or(e))e.forEach(r=>{ka(r,t,n,a)});else if(Gu(e))for(const r in e)ka(e[r],t,n,a);return e}function zt(e,t){if($t===null)return e;const n=vs($t)||$t.proxy,a=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[o,i,c,u=ct]=t[r];o&&(Fe(o)&&(o={mounted:o,updated:o}),o.deep&&ka(i),a.push({dir:o,instance:n,value:i,oldValue:void 0,arg:c,modifiers:u}))}return e}function On(e,t,n,a){const r=e.dirs,o=t&&t.dirs;for(let i=0;i<r.length;i++){const c=r[i];o&&(c.oldValue=o[i].value);let u=c.dir[a];u&&(Ha(),mn(u,n,8,[e.el,c,e,t]),Ua())}}const ia=Symbol("_leaveCb"),$o=Symbol("_enterCb");function cl(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Wt(()=>{e.isMounted=!0}),Ka(()=>{e.isUnmounting=!0}),e}const wn=[Function,Array],ul={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:wn,onEnter:wn,onAfterEnter:wn,onEnterCancelled:wn,onBeforeLeave:wn,onLeave:wn,onAfterLeave:wn,onLeaveCancelled:wn,onBeforeAppear:wn,onAppear:wn,onAfterAppear:wn,onAppearCancelled:wn},a_={name:"BaseTransition",props:ul,setup(e,{slots:t}){const n=Yn(),a=cl();return()=>{const r=t.default&&fs(t.default(),!0);if(!r||!r.length)return;let o=r[0];if(r.length>1){for(const m of r)if(m.type!==Xt){o=m;break}}const i=Xe(e),{mode:c}=i;if(a.isLeaving)return ni(o);const u=Yc(o);if(!u)return ni(o);const p=pr(u,i,a,n);Oa(u,p);const h=n.subTree,d=h&&Yc(h);if(d&&d.type!==Xt&&!$n(u,d)){const m=pr(d,i,a,n);if(Oa(d,m),c==="out-in")return a.isLeaving=!0,m.afterLeave=()=>{a.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},ni(o);c==="in-out"&&u.type!==Xt&&(m.delayLeave=(T,w,y)=>{const k=Pf(a,d);k[String(d.key)]=d,T[ia]=()=>{w(),T[ia]=void 0,delete p.delayedLeave},p.delayedLeave=y})}return o}}},Lf=a_;function Pf(e,t){const{leavingVNodes:n}=e;let a=n.get(t.type);return a||(a=Object.create(null),n.set(t.type,a)),a}function pr(e,t,n,a){const{appear:r,mode:o,persisted:i=!1,onBeforeEnter:c,onEnter:u,onAfterEnter:p,onEnterCancelled:h,onBeforeLeave:d,onLeave:m,onAfterLeave:T,onLeaveCancelled:w,onBeforeAppear:y,onAppear:k,onAfterAppear:U,onAppearCancelled:F}=t,b=String(e.key),A=Pf(n,e),C=(M,Y)=>{M&&mn(M,a,9,Y)},v=(M,Y)=>{const J=Y[1];C(M,Y),Ie(M)?M.every(me=>me.length<=1)&&J():M.length<=1&&J()},O={mode:o,persisted:i,beforeEnter(M){let Y=c;if(!n.isMounted)if(r)Y=y||c;else return;M[ia]&&M[ia](!0);const J=A[b];J&&$n(e,J)&&J.el[ia]&&J.el[ia](),C(Y,[M])},enter(M){let Y=u,J=p,me=h;if(!n.isMounted)if(r)Y=k||u,J=U||p,me=F||h;else return;let oe=!1;const G=M[$o]=ue=>{oe||(oe=!0,ue?C(me,[M]):C(J,[M]),O.delayedLeave&&O.delayedLeave(),M[$o]=void 0)};Y?v(Y,[M,G]):G()},leave(M,Y){const J=String(e.key);if(M[$o]&&M[$o](!0),n.isUnmounting)return Y();C(d,[M]);let me=!1;const oe=M[ia]=G=>{me||(me=!0,Y(),G?C(w,[M]):C(T,[M]),M[ia]=void 0,A[J]===e&&delete A[J])};A[J]=e,m?v(m,[M,oe]):oe()},clone(M){return pr(M,t,n,a)}};return O}function ni(e){if(eo(e))return e=Fn(e),e.children=null,e}function Yc(e){return eo(e)?e.children?e.children[0]:void 0:e}function Oa(e,t){e.shapeFlag&6&&e.component?Oa(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function fs(e,t=!1,n){let a=[],r=0;for(let o=0;o<e.length;o++){let i=e[o];const c=n==null?i.key:String(n)+String(i.key!=null?i.key:o);i.type===Re?(i.patchFlag&128&&r++,a=a.concat(fs(i.children,t,c))):(t||i.type!==Xt)&&a.push(c!=null?Fn(i,{key:c}):i)}if(r>1)for(let o=0;o<a.length;o++)a[o].patchFlag=-2;return a}/*! #__NO_SIDE_EFFECTS__ */function ke(e,t){return Fe(e)?gt({name:e.name},t,{setup:e}):e}const Na=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function r_(e){Fe(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:a,delay:r=200,timeout:o,suspensible:i=!0,onError:c}=e;let u=null,p,h=0;const d=()=>(h++,u=null,m()),m=()=>{let T;return u||(T=u=t().catch(w=>{if(w=w instanceof Error?w:new Error(String(w)),c)return new Promise((y,k)=>{c(w,()=>y(d()),()=>k(w),h+1)});throw w}).then(w=>T!==u&&u?u:(w&&(w.__esModule||w[Symbol.toStringTag]==="Module")&&(w=w.default),p=w,w)))};return ke({name:"AsyncComponentWrapper",__asyncLoader:m,get __asyncResolved(){return p},setup(){const T=Nt;if(p)return()=>ai(p,T);const w=F=>{u=null,ja(F,T,13,!a)};if(i&&T.suspense||to)return m().then(F=>()=>ai(F,T)).catch(F=>(w(F),()=>a?He(a,{error:F}):null));const y=ae(!1),k=ae(),U=ae(!!r);return r&&setTimeout(()=>{U.value=!1},r),o!=null&&setTimeout(()=>{if(!y.value&&!k.value){const F=new Error(`Async component timed out after ${o}ms.`);w(F),k.value=F}},o),m().then(()=>{y.value=!0,T.parent&&eo(T.parent.vnode)&&(T.parent.effect.dirty=!0,ls(T.parent.update))}).catch(F=>{w(F),k.value=F}),()=>{if(y.value&&p)return ai(p,T);if(k.value&&a)return He(a,{error:k.value});if(n&&!U.value)return He(n)}}})}function ai(e,t){const{ref:n,props:a,children:r,ce:o}=t.vnode,i=He(e,a,r);return i.ref=n,i.ce=o,delete t.vnode.ce,i}const eo=e=>e.type.__isKeepAlive,o_={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Yn(),a=n.ctx;if(!a.renderer)return()=>{const F=t.default&&t.default();return F&&F.length===1?F[0]:F};const r=new Map,o=new Set;let i=null;const c=n.suspense,{renderer:{p:u,m:p,um:h,o:{createElement:d}}}=a,m=d("div");a.activate=(F,b,A,C,v)=>{const O=F.component;p(F,b,A,0,c),u(O.vnode,F,b,A,O,c,C,F.slotScopeIds,v),Kt(()=>{O.isDeactivated=!1,O.a&&ir(O.a);const M=F.props&&F.props.onVnodeMounted;M&&sn(M,O.parent,F)},c)},a.deactivate=F=>{const b=F.component;p(F,m,null,1,c),Kt(()=>{b.da&&ir(b.da);const A=F.props&&F.props.onVnodeUnmounted;A&&sn(A,b.parent,F),b.isDeactivated=!0},c)};function T(F){ri(F),h(F,n,c,!0)}function w(F){r.forEach((b,A)=>{const C=Oi(b.type);C&&(!F||!F(C))&&y(A)})}function y(F){const b=r.get(F);!i||!$n(b,i)?T(b):i&&ri(i),r.delete(F),o.delete(F)}Le(()=>[e.include,e.exclude],([F,b])=>{F&&w(A=>Or(F,A)),b&&w(A=>!Or(b,A))},{flush:"post",deep:!0});let k=null;const U=()=>{k!=null&&r.set(k,oi(n.subTree))};return Wt(U),ps(U),Ka(()=>{r.forEach(F=>{const{subTree:b,suspense:A}=n,C=oi(b);if(F.type===C.type&&F.key===C.key){ri(C);const v=C.component.da;v&&Kt(v,A);return}T(F)})}),()=>{if(k=null,!t.default)return null;const F=t.default(),b=F[0];if(F.length>1)return i=null,F;if(!pa(b)||!(b.shapeFlag&4)&&!(b.shapeFlag&128))return i=null,b;let A=oi(b);const C=A.type,v=Oi(Na(A)?A.type.__asyncResolved||{}:C),{include:O,exclude:M,max:Y}=e;if(O&&(!v||!Or(O,v))||M&&v&&Or(M,v))return i=A,b;const J=A.key==null?C:A.key,me=r.get(J);return A.el&&(A=Fn(A),b.shapeFlag&128&&(b.ssContent=A)),k=J,me?(A.el=me.el,A.component=me.component,A.transition&&Oa(A,A.transition),A.shapeFlag|=512,o.delete(J),o.add(J)):(o.add(J),Y&&o.size>parseInt(Y,10)&&y(o.values().next().value)),A.shapeFlag|=256,i=A,Sf(b.type)?b:A}}},s_=o_;function Or(e,t){return Ie(e)?e.some(n=>Or(n,t)):_t(e)?e.split(",").includes(t):Fm(e)?e.test(t):!1}function Of(e,t){Ff(e,"a",t)}function Rf(e,t){Ff(e,"da",t)}function Ff(e,t,n=Nt){const a=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(ds(t,a,n),n){let r=n.parent;for(;r&&r.parent;)eo(r.parent.vnode)&&i_(a,t,n,r),r=r.parent}}function i_(e,t,n,a){const r=ds(t,e,a,!0);za(()=>{ji(a[t],r)},n)}function ri(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function oi(e){return e.shapeFlag&128?e.ssContent:e}function ds(e,t,n=Nt,a=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Ha();const c=Da(n),u=mn(t,n,e,i);return c(),Ua(),u});return a?r.unshift(o):r.push(o),o}}const Gn=e=>(t,n=Nt)=>(!to||e==="sp")&&ds(e,(...a)=>t(...a),n),gr=Gn("bm"),Wt=Gn("m"),Df=Gn("bu"),ps=Gn("u"),Ka=Gn("bum"),za=Gn("um"),Vf=Gn("sp"),Bf=Gn("rtg"),Hf=Gn("rtc");function Uf(e,t=Nt){ds("ec",e,t)}function Lt(e,t,n,a){let r;const o=n&&n[a];if(Ie(e)||_t(e)){r=new Array(e.length);for(let i=0,c=e.length;i<c;i++)r[i]=t(e[i],i,void 0,o&&o[i])}else if(typeof e=="number"){r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i+1,i,void 0,o&&o[i])}else if(ft(e))if(e[Symbol.iterator])r=Array.from(e,(i,c)=>t(i,c,void 0,o&&o[c]));else{const i=Object.keys(e);r=new Array(i.length);for(let c=0,u=i.length;c<u;c++){const p=i[c];r[c]=t(e[p],p,c,o&&o[c])}}else r=[];return n&&(n[a]=r),r}function l_(e,t){for(let n=0;n<t.length;n++){const a=t[n];if(Ie(a))for(let r=0;r<a.length;r++)e[a[r].name]=a[r].fn;else a&&(e[a.name]=a.key?(...r)=>{const o=a.fn(...r);return o&&(o.key=a.key),o}:a.fn)}return e}function Et(e,t,n={},a,r){if($t.isCE||$t.parent&&Na($t.parent)&&$t.parent.isCE)return t!=="default"&&(n.name=t),He("slot",n,a&&a());let o=e[t];o&&o._c&&(o._d=!1),N();const i=o&&jf(o(n)),c=tt(Re,{key:n.key||i&&i.key||`_${t}`},i||(a?a():[]),i&&e._===1?64:-2);return!r&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),o&&o._c&&(o._d=!0),c}function jf(e){return e.some(t=>pa(t)?!(t.type===Xt||t.type===Re&&!jf(t.children)):!0)?e:null}function c_(e,t){const n={};for(const a in e)n[t&&/[A-Z]/.test(a)?`on:${a}`:Dr(a)]=e[a];return n}const Ii=e=>e?fd(e)?vs(e)||e.proxy:Ii(e.parent):null,Vr=gt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ii(e.parent),$root:e=>Ii(e.root),$emit:e=>e.emit,$options:e=>fl(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,ls(e.update)}),$nextTick:e=>e.n||(e.n=Mn.bind(e.proxy)),$watch:e=>n_.bind(e)}),si=(e,t)=>e!==ct&&!e.__isScriptSetup&&nt(e,t),Ti={get({_:e},t){const{ctx:n,setupState:a,data:r,props:o,accessCache:i,type:c,appContext:u}=e;let p;if(t[0]!=="$"){const T=i[t];if(T!==void 0)switch(T){case 1:return a[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(si(a,t))return i[t]=1,a[t];if(r!==ct&&nt(r,t))return i[t]=2,r[t];if((p=e.propsOptions[0])&&nt(p,t))return i[t]=3,o[t];if(n!==ct&&nt(n,t))return i[t]=4,n[t];Si&&(i[t]=0)}}const h=Vr[t];let d,m;if(h)return t==="$attrs"&&un(e,"get",t),h(e);if((d=c.__cssModules)&&(d=d[t]))return d;if(n!==ct&&nt(n,t))return i[t]=4,n[t];if(m=u.config.globalProperties,nt(m,t))return m[t]},set({_:e},t,n){const{data:a,setupState:r,ctx:o}=e;return si(r,t)?(r[t]=n,!0):a!==ct&&nt(a,t)?(a[t]=n,!0):nt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:a,appContext:r,propsOptions:o}},i){let c;return!!n[i]||e!==ct&&nt(e,i)||si(t,i)||(c=o[0])&&nt(c,i)||nt(a,i)||nt(Vr,i)||nt(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:nt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},u_=gt({},Ti,{get(e,t){if(t!==Symbol.unscopables)return Ti.get(e,t,e)},has(e,t){return t[0]!=="_"&&!Um(t)}});function f_(){return null}function d_(){return null}function p_(e){}function h_(e){}function v_(){return null}function m_(){}function g_(e,t){return null}function __(){return Kf().slots}function y_(){return Kf().attrs}function Kf(){const e=Yn();return e.setupContext||(e.setupContext=hd(e))}function Xr(e){return Ie(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function b_(e,t){const n=Xr(e);for(const a in t){if(a.startsWith("__skip"))continue;let r=n[a];r?Ie(r)||Fe(r)?r=n[a]={type:r,default:t[a]}:r.default=t[a]:r===null&&(r=n[a]={default:t[a]}),r&&t[`__skip_${a}`]&&(r.skipFactory=!0)}return n}function A_(e,t){return!e||!t?e||t:Ie(e)&&Ie(t)?e.concat(t):gt({},Xr(e),Xr(t))}function w_(e,t){const n={};for(const a in e)t.includes(a)||Object.defineProperty(n,a,{enumerable:!0,get:()=>e[a]});return n}function C_(e){const t=Yn();let n=e();return Ni(),Ki(n)&&(n=n.catch(a=>{throw Da(t),a})),[n,()=>Da(t)]}let Si=!0;function I_(e){const t=fl(e),n=e.proxy,a=e.ctx;Si=!1,t.beforeCreate&&Qc(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:c,provide:u,inject:p,created:h,beforeMount:d,mounted:m,beforeUpdate:T,updated:w,activated:y,deactivated:k,beforeDestroy:U,beforeUnmount:F,destroyed:b,unmounted:A,render:C,renderTracked:v,renderTriggered:O,errorCaptured:M,serverPrefetch:Y,expose:J,inheritAttrs:me,components:oe,directives:G,filters:ue}=t;if(p&&T_(p,a,null),i)for(const q in i){const Z=i[q];Fe(Z)&&(a[q]=Z.bind(n))}if(r){const q=r.call(n,n);ft(q)&&(e.data=ss(q))}if(Si=!0,o)for(const q in o){const Z=o[q],ye=Fe(Z)?Z.bind(n,n):Fe(Z.get)?Z.get.bind(n,n):ln,mt=!Fe(Z)&&Fe(Z.set)?Z.set.bind(n):ln,Ve=de({get:ye,set:mt});Object.defineProperty(a,q,{enumerable:!0,configurable:!0,get:()=>Ve.value,set:yt=>Ve.value=yt})}if(c)for(const q in c)zf(c[q],a,n,q);if(u){const q=Fe(u)?u.call(n):u;Reflect.ownKeys(q).forEach(Z=>{Gf(Z,q[Z])})}h&&Qc(h,e,"c");function te(q,Z){Ie(Z)?Z.forEach(ye=>q(ye.bind(n))):Z&&q(Z.bind(n))}if(te(gr,d),te(Wt,m),te(Df,T),te(ps,w),te(Of,y),te(Rf,k),te(Uf,M),te(Hf,v),te(Bf,O),te(Ka,F),te(za,A),te(Vf,Y),Ie(J))if(J.length){const q=e.exposed||(e.exposed={});J.forEach(Z=>{Object.defineProperty(q,Z,{get:()=>n[Z],set:ye=>n[Z]=ye})})}else e.exposed||(e.exposed={});C&&e.render===ln&&(e.render=C),me!=null&&(e.inheritAttrs=me),oe&&(e.components=oe),G&&(e.directives=G)}function T_(e,t,n=ln){Ie(e)&&(e=Ei(e));for(const a in e){const r=e[a];let o;ft(r)?"default"in r?o=z(r.from||a,r.default,!0):o=z(r.from||a):o=z(r),Bt(o)?Object.defineProperty(t,a,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[a]=o}}function Qc(e,t,n){mn(Ie(e)?e.map(a=>a.bind(t.proxy)):e.bind(t.proxy),t,n)}function zf(e,t,n,a){const r=a.includes(".")?Nf(n,a):()=>n[a];if(_t(e)){const o=t[e];Fe(o)&&Le(r,o)}else if(Fe(e))Le(r,e.bind(n));else if(ft(e))if(Ie(e))e.forEach(o=>zf(o,t,n,a));else{const o=Fe(e.handler)?e.handler.bind(n):t[e.handler];Fe(o)&&Le(r,o,e)}}function fl(e){const t=e.type,{mixins:n,extends:a}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,c=o.get(t);let u;return c?u=c:!r.length&&!n&&!a?u=t:(u={},r.length&&r.forEach(p=>Qo(u,p,i,!0)),Qo(u,t,i)),ft(t)&&o.set(t,u),u}function Qo(e,t,n,a=!1){const{mixins:r,extends:o}=t;o&&Qo(e,o,n,!0),r&&r.forEach(i=>Qo(e,i,n,!0));for(const i in t)if(!(a&&i==="expose")){const c=S_[i]||n&&n[i];e[i]=c?c(e[i],t[i]):t[i]}return e}const S_={data:Xc,props:Jc,emits:Jc,methods:Rr,computed:Rr,beforeCreate:en,created:en,beforeMount:en,mounted:en,beforeUpdate:en,updated:en,beforeDestroy:en,beforeUnmount:en,destroyed:en,unmounted:en,activated:en,deactivated:en,errorCaptured:en,serverPrefetch:en,components:Rr,directives:Rr,watch:k_,provide:Xc,inject:E_};function Xc(e,t){return t?e?function(){return gt(Fe(e)?e.call(this,this):e,Fe(t)?t.call(this,this):t)}:t:e}function E_(e,t){return Rr(Ei(e),Ei(t))}function Ei(e){if(Ie(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function en(e,t){return e?[...new Set([].concat(e,t))]:t}function Rr(e,t){return e?gt(Object.create(null),e,t):t}function Jc(e,t){return e?Ie(e)&&Ie(t)?[...new Set([...e,...t])]:gt(Object.create(null),Xr(e),Xr(t??{})):t}function k_(e,t){if(!e)return t;if(!t)return e;const n=gt(Object.create(null),e);for(const a in t)n[a]=en(e[a],t[a]);return n}function Wf(){return{app:null,config:{isNativeTag:Om,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let x_=0;function $_(e,t){return function(a,r=null){Fe(a)||(a=gt({},a)),r!=null&&!ft(r)&&(r=null);const o=Wf(),i=new WeakSet;let c=!1;const u=o.app={_uid:x_++,_component:a,_props:r,_container:null,_context:o,_instance:null,version:md,get config(){return o.config},set config(p){},use(p,...h){return i.has(p)||(p&&Fe(p.install)?(i.add(p),p.install(u,...h)):Fe(p)&&(i.add(p),p(u,...h))),u},mixin(p){return o.mixins.includes(p)||o.mixins.push(p),u},component(p,h){return h?(o.components[p]=h,u):o.components[p]},directive(p,h){return h?(o.directives[p]=h,u):o.directives[p]},mount(p,h,d){if(!c){const m=He(a,r);return m.appContext=o,d===!0?d="svg":d===!1&&(d=void 0),h&&t?t(m,p):e(m,p,d),c=!0,u._container=p,p.__vue_app__=u,vs(m.component)||m.component.proxy}},unmount(){c&&(e(null,u._container),delete u._container.__vue_app__)},provide(p,h){return o.provides[p]=h,u},runWithContext(p){const h=fr;fr=u;try{return p()}finally{fr=h}}};return u}}let fr=null;function Gf(e,t){if(Nt){let n=Nt.provides;const a=Nt.parent&&Nt.parent.provides;a===n&&(n=Nt.provides=Object.create(a)),n[e]=t}}function z(e,t,n=!1){const a=Nt||$t;if(a||fr){const r=a?a.parent==null?a.vnode.appContext&&a.vnode.appContext.provides:a.parent.provides:fr._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&Fe(t)?t.call(a&&a.proxy):t}}function M_(){return!!(Nt||$t||fr)}function N_(e,t,n,a=!1){const r={},o={};Ko(o,hs,1),e.propsDefaults=Object.create(null),Yf(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=a?r:pf(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function L_(e,t,n,a){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,c=Xe(r),[u]=e.propsOptions;let p=!1;if((a||i>0)&&!(i&16)){if(i&8){const h=e.vnode.dynamicProps;for(let d=0;d<h.length;d++){let m=h[d];if(cs(e.emitsOptions,m))continue;const T=t[m];if(u)if(nt(o,m))T!==o[m]&&(o[m]=T,p=!0);else{const w=nn(m);r[w]=ki(u,c,w,T,e,!1)}else T!==o[m]&&(o[m]=T,p=!0)}}}else{Yf(e,t,r,o)&&(p=!0);let h;for(const d in c)(!t||!nt(t,d)&&((h=vn(d))===d||!nt(t,h)))&&(u?n&&(n[d]!==void 0||n[h]!==void 0)&&(r[d]=ki(u,c,d,void 0,e,!0)):delete r[d]);if(o!==c)for(const d in o)(!t||!nt(t,d))&&(delete o[d],p=!0)}p&&zn(e,"set","$attrs")}function Yf(e,t,n,a){const[r,o]=e.propsOptions;let i=!1,c;if(t)for(let u in t){if(sr(u))continue;const p=t[u];let h;r&&nt(r,h=nn(u))?!o||!o.includes(h)?n[h]=p:(c||(c={}))[h]=p:cs(e.emitsOptions,u)||(!(u in a)||p!==a[u])&&(a[u]=p,i=!0)}if(o){const u=Xe(n),p=c||ct;for(let h=0;h<o.length;h++){const d=o[h];n[d]=ki(r,u,d,p[d],e,!nt(p,d))}}return i}function ki(e,t,n,a,r,o){const i=e[n];if(i!=null){const c=nt(i,"default");if(c&&a===void 0){const u=i.default;if(i.type!==Function&&!i.skipFactory&&Fe(u)){const{propsDefaults:p}=r;if(n in p)a=p[n];else{const h=Da(r);a=p[n]=u.call(null,t),h()}}else a=u}i[0]&&(o&&!c?a=!1:i[1]&&(a===""||a===vn(n))&&(a=!0))}return a}function Qf(e,t,n=!1){const a=t.propsCache,r=a.get(e);if(r)return r;const o=e.props,i={},c=[];let u=!1;if(!Fe(e)){const h=d=>{u=!0;const[m,T]=Qf(d,t,!0);gt(i,m),T&&c.push(...T)};!n&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}if(!o&&!u)return ft(e)&&a.set(e,rr),rr;if(Ie(o))for(let h=0;h<o.length;h++){const d=nn(o[h]);qc(d)&&(i[d]=ct)}else if(o)for(const h in o){const d=nn(h);if(qc(d)){const m=o[h],T=i[d]=Ie(m)||Fe(m)?{type:m}:gt({},m);if(T){const w=tu(Boolean,T.type),y=tu(String,T.type);T[0]=w>-1,T[1]=y<0||w<y,(w>-1||nt(T,"default"))&&c.push(d)}}}const p=[i,c];return ft(e)&&a.set(e,p),p}function qc(e){return e[0]!=="$"&&!sr(e)}function Zc(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function eu(e,t){return Zc(e)===Zc(t)}function tu(e,t){return Ie(t)?t.findIndex(n=>eu(n,e)):Fe(t)&&eu(t,e)?0:-1}const Xf=e=>e[0]==="_"||e==="$stable",dl=e=>Ie(e)?e.map(hn):[hn(e)],P_=(e,t,n)=>{if(t._n)return t;const a=Ye((...r)=>dl(t(...r)),n);return a._c=!1,a},Jf=(e,t,n)=>{const a=e._ctx;for(const r in e){if(Xf(r))continue;const o=e[r];if(Fe(o))t[r]=P_(r,o,a);else if(o!=null){const i=dl(o);t[r]=()=>i}}},qf=(e,t)=>{const n=dl(t);e.slots.default=()=>n},O_=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Xe(t),Ko(t,"_",n)):Jf(t,e.slots={})}else e.slots={},t&&qf(e,t);Ko(e.slots,hs,1)},R_=(e,t,n)=>{const{vnode:a,slots:r}=e;let o=!0,i=ct;if(a.shapeFlag&32){const c=t._;c?n&&c===1?o=!1:(gt(r,t),!n&&c===1&&delete r._):(o=!t.$stable,Jf(t,r)),i=t}else t&&(qf(e,t),i={default:1});if(o)for(const c in r)!Xf(c)&&i[c]==null&&delete r[c]};function Xo(e,t,n,a,r=!1){if(Ie(e)){e.forEach((m,T)=>Xo(m,t&&(Ie(t)?t[T]:t),n,a,r));return}if(Na(a)&&!r)return;const o=a.shapeFlag&4?vs(a.component)||a.component.proxy:a.el,i=r?null:o,{i:c,r:u}=e,p=t&&t.r,h=c.refs===ct?c.refs={}:c.refs,d=c.setupState;if(p!=null&&p!==u&&(_t(p)?(h[p]=null,nt(d,p)&&(d[p]=null)):Bt(p)&&(p.value=null)),Fe(u))Wn(u,c,12,[i,h]);else{const m=_t(u),T=Bt(u);if(m||T){const w=()=>{if(e.f){const y=m?nt(d,u)?d[u]:h[u]:u.value;r?Ie(y)&&ji(y,o):Ie(y)?y.includes(o)||y.push(o):m?(h[u]=[o],nt(d,u)&&(d[u]=h[u])):(u.value=[o],e.k&&(h[e.k]=u.value))}else m?(h[u]=i,nt(d,u)&&(d[u]=i)):T&&(u.value=i,e.k&&(h[e.k]=i))};i?(w.id=-1,Kt(w,n)):w()}}}let aa=!1;const F_=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",D_=e=>e.namespaceURI.includes("MathML"),Mo=e=>{if(F_(e))return"svg";if(D_(e))return"mathml"},No=e=>e.nodeType===8;function V_(e){const{mt:t,p:n,o:{patchProp:a,createText:r,nextSibling:o,parentNode:i,remove:c,insert:u,createComment:p}}=e,h=(b,A)=>{if(!A.hasChildNodes()){n(null,b,A),Yo(),A._vnode=b;return}aa=!1,d(A.firstChild,b,null,null,null),Yo(),A._vnode=b,aa&&console.error("Hydration completed but contains mismatches.")},d=(b,A,C,v,O,M=!1)=>{const Y=No(b)&&b.data==="[",J=()=>y(b,A,C,v,O,Y),{type:me,ref:oe,shapeFlag:G,patchFlag:ue}=A;let _e=b.nodeType;A.el=b,ue===-2&&(M=!1,A.dynamicChildren=null);let te=null;switch(me){case Ra:_e!==3?A.children===""?(u(A.el=r(""),i(b),b),te=b):te=J():(b.data!==A.children&&(aa=!0,b.data=A.children),te=o(b));break;case Xt:F(b)?(te=o(b),U(A.el=b.content.firstChild,b,C)):_e!==8||Y?te=J():te=o(b);break;case La:if(Y&&(b=o(b),_e=b.nodeType),_e===1||_e===3){te=b;const q=!A.children.length;for(let Z=0;Z<A.staticCount;Z++)q&&(A.children+=te.nodeType===1?te.outerHTML:te.data),Z===A.staticCount-1&&(A.anchor=te),te=o(te);return Y?o(te):te}else J();break;case Re:Y?te=w(b,A,C,v,O,M):te=J();break;default:if(G&1)(_e!==1||A.type.toLowerCase()!==b.tagName.toLowerCase())&&!F(b)?te=J():te=m(b,A,C,v,O,M);else if(G&6){A.slotScopeIds=O;const q=i(b);if(Y?te=k(b):No(b)&&b.data==="teleport start"?te=k(b,b.data,"teleport end"):te=o(b),t(A,q,null,C,v,Mo(q),M),Na(A)){let Z;Y?(Z=He(Re),Z.anchor=te?te.previousSibling:q.lastChild):Z=b.nodeType===3?wt(""):He("div"),Z.el=b,A.component.subTree=Z}}else G&64?_e!==8?te=J():te=A.type.hydrate(b,A,C,v,O,M,e,T):G&128&&(te=A.type.hydrate(b,A,C,v,Mo(i(b)),O,M,e,d))}return oe!=null&&Xo(oe,null,v,A),te},m=(b,A,C,v,O,M)=>{M=M||!!A.dynamicChildren;const{type:Y,props:J,patchFlag:me,shapeFlag:oe,dirs:G,transition:ue}=A,_e=Y==="input"||Y==="option";if(_e||me!==-1){G&&On(A,null,C,"created");let te=!1;if(F(b)){te=nd(v,ue)&&C&&C.vnode.props&&C.vnode.props.appear;const Z=b.content.firstChild;te&&ue.beforeEnter(Z),U(Z,b,C),A.el=b=Z}if(oe&16&&!(J&&(J.innerHTML||J.textContent))){let Z=T(b.firstChild,A,b,C,v,O,M);for(;Z;){aa=!0;const ye=Z;Z=Z.nextSibling,c(ye)}}else oe&8&&b.textContent!==A.children&&(aa=!0,b.textContent=A.children);if(J)if(_e||!M||me&48)for(const Z in J)(_e&&(Z.endsWith("value")||Z==="indeterminate")||Jr(Z)&&!sr(Z)||Z[0]===".")&&a(b,Z,null,J[Z],void 0,void 0,C);else J.onClick&&a(b,"onClick",null,J.onClick,void 0,void 0,C);let q;(q=J&&J.onVnodeBeforeMount)&&sn(q,C,A),G&&On(A,null,C,"beforeMount"),((q=J&&J.onVnodeMounted)||G||te)&&Ef(()=>{q&&sn(q,C,A),te&&ue.enter(b),G&&On(A,null,C,"mounted")},v)}return b.nextSibling},T=(b,A,C,v,O,M,Y)=>{Y=Y||!!A.dynamicChildren;const J=A.children,me=J.length;for(let oe=0;oe<me;oe++){const G=Y?J[oe]:J[oe]=hn(J[oe]);if(b)b=d(b,G,v,O,M,Y);else{if(G.type===Ra&&!G.children)continue;aa=!0,n(null,G,C,null,v,O,Mo(C),M)}}return b},w=(b,A,C,v,O,M)=>{const{slotScopeIds:Y}=A;Y&&(O=O?O.concat(Y):Y);const J=i(b),me=T(o(b),A,J,C,v,O,M);return me&&No(me)&&me.data==="]"?o(A.anchor=me):(aa=!0,u(A.anchor=p("]"),J,me),me)},y=(b,A,C,v,O,M)=>{if(aa=!0,A.el=null,M){const me=k(b);for(;;){const oe=o(b);if(oe&&oe!==me)c(oe);else break}}const Y=o(b),J=i(b);return c(b),n(null,A,J,Y,C,v,Mo(J),O),Y},k=(b,A="[",C="]")=>{let v=0;for(;b;)if(b=o(b),b&&No(b)&&(b.data===A&&v++,b.data===C)){if(v===0)return o(b);v--}return b},U=(b,A,C)=>{const v=A.parentNode;v&&v.replaceChild(b,A);let O=C;for(;O;)O.vnode.el===A&&(O.vnode.el=O.subTree.el=b),O=O.parent},F=b=>b.nodeType===1&&b.tagName.toLowerCase()==="template";return[h,d]}const Kt=Ef;function Zf(e){return td(e)}function ed(e){return td(e,V_)}function td(e,t){const n=Yu();n.__VUE__=!0;const{insert:a,remove:r,patchProp:o,createElement:i,createText:c,createComment:u,setText:p,setElementText:h,parentNode:d,nextSibling:m,setScopeId:T=ln,insertStaticContent:w}=e,y=(g,I,D,H=null,K=null,X=null,fe=void 0,re=null,le=!!I.dynamicChildren)=>{if(g===I)return;g&&!$n(g,I)&&(H=dt(g),yt(g,K,X,!0),g=null),I.patchFlag===-2&&(le=!1,I.dynamicChildren=null);const{type:ee,ref:he,shapeFlag:Me}=I;switch(ee){case Ra:k(g,I,D,H);break;case Xt:U(g,I,D,H);break;case La:g==null&&F(I,D,H,fe);break;case Re:oe(g,I,D,H,K,X,fe,re,le);break;default:Me&1?C(g,I,D,H,K,X,fe,re,le):Me&6?G(g,I,D,H,K,X,fe,re,le):(Me&64||Me&128)&&ee.process(g,I,D,H,K,X,fe,re,le,bt)}he!=null&&K&&Xo(he,g&&g.ref,X,I||g,!I)},k=(g,I,D,H)=>{if(g==null)a(I.el=c(I.children),D,H);else{const K=I.el=g.el;I.children!==g.children&&p(K,I.children)}},U=(g,I,D,H)=>{g==null?a(I.el=u(I.children||""),D,H):I.el=g.el},F=(g,I,D,H)=>{[g.el,g.anchor]=w(g.children,I,D,H,g.el,g.anchor)},b=({el:g,anchor:I},D,H)=>{let K;for(;g&&g!==I;)K=m(g),a(g,D,H),g=K;a(I,D,H)},A=({el:g,anchor:I})=>{let D;for(;g&&g!==I;)D=m(g),r(g),g=D;r(I)},C=(g,I,D,H,K,X,fe,re,le)=>{I.type==="svg"?fe="svg":I.type==="math"&&(fe="mathml"),g==null?v(I,D,H,K,X,fe,re,le):Y(g,I,K,X,fe,re,le)},v=(g,I,D,H,K,X,fe,re)=>{let le,ee;const{props:he,shapeFlag:Me,transition:Se,dirs:Oe}=g;if(le=g.el=i(g.type,X,he&&he.is,he),Me&8?h(le,g.children):Me&16&&M(g.children,le,null,H,K,ii(g,X),fe,re),Oe&&On(g,null,H,"created"),O(le,g,g.scopeId,fe,H),he){for(const qe in he)qe!=="value"&&!sr(qe)&&o(le,qe,null,he[qe],X,g.children,H,K,Ue);"value"in he&&o(le,"value",null,he.value,X),(ee=he.onVnodeBeforeMount)&&sn(ee,H,g)}Oe&&On(g,null,H,"beforeMount");const Be=nd(K,Se);Be&&Se.beforeEnter(le),a(le,I,D),((ee=he&&he.onVnodeMounted)||Be||Oe)&&Kt(()=>{ee&&sn(ee,H,g),Be&&Se.enter(le),Oe&&On(g,null,H,"mounted")},K)},O=(g,I,D,H,K)=>{if(D&&T(g,D),H)for(let X=0;X<H.length;X++)T(g,H[X]);if(K){let X=K.subTree;if(I===X){const fe=K.vnode;O(g,fe,fe.scopeId,fe.slotScopeIds,K.parent)}}},M=(g,I,D,H,K,X,fe,re,le=0)=>{for(let ee=le;ee<g.length;ee++){const he=g[ee]=re?la(g[ee]):hn(g[ee]);y(null,he,I,D,H,K,X,fe,re)}},Y=(g,I,D,H,K,X,fe)=>{const re=I.el=g.el;let{patchFlag:le,dynamicChildren:ee,dirs:he}=I;le|=g.patchFlag&16;const Me=g.props||ct,Se=I.props||ct;let Oe;if(D&&Ia(D,!1),(Oe=Se.onVnodeBeforeUpdate)&&sn(Oe,D,I,g),he&&On(I,g,D,"beforeUpdate"),D&&Ia(D,!0),ee?J(g.dynamicChildren,ee,re,D,H,ii(I,K),X):fe||Z(g,I,re,null,D,H,ii(I,K),X,!1),le>0){if(le&16)me(re,I,Me,Se,D,H,K);else if(le&2&&Me.class!==Se.class&&o(re,"class",null,Se.class,K),le&4&&o(re,"style",Me.style,Se.style,K),le&8){const Be=I.dynamicProps;for(let qe=0;qe<Be.length;qe++){const at=Be[qe],ht=Me[at],At=Se[at];(At!==ht||at==="value")&&o(re,at,ht,At,K,g.children,D,H,Ue)}}le&1&&g.children!==I.children&&h(re,I.children)}else!fe&&ee==null&&me(re,I,Me,Se,D,H,K);((Oe=Se.onVnodeUpdated)||he)&&Kt(()=>{Oe&&sn(Oe,D,I,g),he&&On(I,g,D,"updated")},H)},J=(g,I,D,H,K,X,fe)=>{for(let re=0;re<I.length;re++){const le=g[re],ee=I[re],he=le.el&&(le.type===Re||!$n(le,ee)||le.shapeFlag&70)?d(le.el):D;y(le,ee,he,null,H,K,X,fe,!0)}},me=(g,I,D,H,K,X,fe)=>{if(D!==H){if(D!==ct)for(const re in D)!sr(re)&&!(re in H)&&o(g,re,D[re],null,fe,I.children,K,X,Ue);for(const re in H){if(sr(re))continue;const le=H[re],ee=D[re];le!==ee&&re!=="value"&&o(g,re,ee,le,fe,I.children,K,X,Ue)}"value"in H&&o(g,"value",D.value,H.value,fe)}},oe=(g,I,D,H,K,X,fe,re,le)=>{const ee=I.el=g?g.el:c(""),he=I.anchor=g?g.anchor:c("");let{patchFlag:Me,dynamicChildren:Se,slotScopeIds:Oe}=I;Oe&&(re=re?re.concat(Oe):Oe),g==null?(a(ee,D,H),a(he,D,H),M(I.children||[],D,he,K,X,fe,re,le)):Me>0&&Me&64&&Se&&g.dynamicChildren?(J(g.dynamicChildren,Se,D,K,X,fe,re),(I.key!=null||K&&I===K.subTree)&&pl(g,I,!0)):Z(g,I,D,he,K,X,fe,re,le)},G=(g,I,D,H,K,X,fe,re,le)=>{I.slotScopeIds=re,g==null?I.shapeFlag&512?K.ctx.activate(I,D,H,fe,le):ue(I,D,H,K,X,fe,le):_e(g,I,le)},ue=(g,I,D,H,K,X,fe)=>{const re=g.component=ud(g,H,K);if(eo(g)&&(re.ctx.renderer=bt),dd(re),re.asyncDep){if(K&&K.registerDep(re,te),!g.el){const le=re.subTree=He(Xt);U(null,le,I,D)}}else te(re,g,I,D,K,X,fe)},_e=(g,I,D)=>{const H=I.component=g.component;if(zg(g,I,D))if(H.asyncDep&&!H.asyncResolved){q(H,I,D);return}else H.next=I,Dg(H.update),H.effect.dirty=!0,H.update();else I.el=g.el,H.vnode=I},te=(g,I,D,H,K,X,fe)=>{const re=()=>{if(g.isMounted){let{next:he,bu:Me,u:Se,parent:Oe,vnode:Be}=g;{const qt=ad(g);if(qt){he&&(he.el=Be.el,q(g,he,fe)),qt.asyncDep.then(()=>{g.isUnmounted||re()});return}}let qe=he,at;Ia(g,!1),he?(he.el=Be.el,q(g,he,fe)):he=Be,Me&&ir(Me),(at=he.props&&he.props.onVnodeBeforeUpdate)&&sn(at,Oe,he,Be),Ia(g,!0);const ht=Bo(g),At=g.subTree;g.subTree=ht,y(At,ht,d(At.el),dt(At),g,K,X),he.el=ht.el,qe===null&&rl(g,ht.el),Se&&Kt(Se,K),(at=he.props&&he.props.onVnodeUpdated)&&Kt(()=>sn(at,Oe,he,Be),K)}else{let he;const{el:Me,props:Se}=I,{bm:Oe,m:Be,parent:qe}=g,at=Na(I);if(Ia(g,!1),Oe&&ir(Oe),!at&&(he=Se&&Se.onVnodeBeforeMount)&&sn(he,qe,I),Ia(g,!0),Me&&pe){const ht=()=>{g.subTree=Bo(g),pe(Me,g.subTree,g,K,null)};at?I.type.__asyncLoader().then(()=>!g.isUnmounted&&ht()):ht()}else{const ht=g.subTree=Bo(g);y(null,ht,D,H,g,K,X),I.el=ht.el}if(Be&&Kt(Be,K),!at&&(he=Se&&Se.onVnodeMounted)){const ht=I;Kt(()=>sn(he,qe,ht),K)}(I.shapeFlag&256||qe&&Na(qe.vnode)&&qe.vnode.shapeFlag&256)&&g.a&&Kt(g.a,K),g.isMounted=!0,I=D=H=null}},le=g.effect=new dr(re,ln,()=>ls(ee),g.scope),ee=g.update=()=>{le.dirty&&le.run()};ee.id=g.uid,Ia(g,!0),ee()},q=(g,I,D)=>{I.component=g;const H=g.vnode.props;g.vnode=I,g.next=null,L_(g,I.props,H,D),R_(g,I.children,D),Ha(),Kc(g),Ua()},Z=(g,I,D,H,K,X,fe,re,le=!1)=>{const ee=g&&g.children,he=g?g.shapeFlag:0,Me=I.children,{patchFlag:Se,shapeFlag:Oe}=I;if(Se>0){if(Se&128){mt(ee,Me,D,H,K,X,fe,re,le);return}else if(Se&256){ye(ee,Me,D,H,K,X,fe,re,le);return}}Oe&8?(he&16&&Ue(ee,K,X),Me!==ee&&h(D,Me)):he&16?Oe&16?mt(ee,Me,D,H,K,X,fe,re,le):Ue(ee,K,X,!0):(he&8&&h(D,""),Oe&16&&M(Me,D,H,K,X,fe,re,le))},ye=(g,I,D,H,K,X,fe,re,le)=>{g=g||rr,I=I||rr;const ee=g.length,he=I.length,Me=Math.min(ee,he);let Se;for(Se=0;Se<Me;Se++){const Oe=I[Se]=le?la(I[Se]):hn(I[Se]);y(g[Se],Oe,D,null,K,X,fe,re,le)}ee>he?Ue(g,K,X,!0,!1,Me):M(I,D,H,K,X,fe,re,le,Me)},mt=(g,I,D,H,K,X,fe,re,le)=>{let ee=0;const he=I.length;let Me=g.length-1,Se=he-1;for(;ee<=Me&&ee<=Se;){const Oe=g[ee],Be=I[ee]=le?la(I[ee]):hn(I[ee]);if($n(Oe,Be))y(Oe,Be,D,null,K,X,fe,re,le);else break;ee++}for(;ee<=Me&&ee<=Se;){const Oe=g[Me],Be=I[Se]=le?la(I[Se]):hn(I[Se]);if($n(Oe,Be))y(Oe,Be,D,null,K,X,fe,re,le);else break;Me--,Se--}if(ee>Me){if(ee<=Se){const Oe=Se+1,Be=Oe<he?I[Oe].el:H;for(;ee<=Se;)y(null,I[ee]=le?la(I[ee]):hn(I[ee]),D,Be,K,X,fe,re,le),ee++}}else if(ee>Se)for(;ee<=Me;)yt(g[ee],K,X,!0),ee++;else{const Oe=ee,Be=ee,qe=new Map;for(ee=Be;ee<=Se;ee++){const St=I[ee]=le?la(I[ee]):hn(I[ee]);St.key!=null&&qe.set(St.key,ee)}let at,ht=0;const At=Se-Be+1;let qt=!1,Vn=0;const An=new Array(At);for(ee=0;ee<At;ee++)An[ee]=0;for(ee=Oe;ee<=Me;ee++){const St=g[ee];if(ht>=At){yt(St,K,X,!0);continue}let Zt;if(St.key!=null)Zt=qe.get(St.key);else for(at=Be;at<=Se;at++)if(An[at-Be]===0&&$n(St,I[at])){Zt=at;break}Zt===void 0?yt(St,K,X,!0):(An[Zt-Be]=ee+1,Zt>=Vn?Vn=Zt:qt=!0,y(St,I[Zt],D,null,K,X,fe,re,le),ht++)}const Wa=qt?B_(An):rr;for(at=Wa.length-1,ee=At-1;ee>=0;ee--){const St=Be+ee,Zt=I[St],_a=St+1<he?I[St+1].el:H;An[ee]===0?y(null,Zt,D,_a,K,X,fe,re,le):qt&&(at<0||ee!==Wa[at]?Ve(Zt,D,_a,2):at--)}}},Ve=(g,I,D,H,K=null)=>{const{el:X,type:fe,transition:re,children:le,shapeFlag:ee}=g;if(ee&6){Ve(g.component.subTree,I,D,H);return}if(ee&128){g.suspense.move(I,D,H);return}if(ee&64){fe.move(g,I,D,bt);return}if(fe===Re){a(X,I,D);for(let Me=0;Me<le.length;Me++)Ve(le[Me],I,D,H);a(g.anchor,I,D);return}if(fe===La){b(g,I,D);return}if(H!==2&&ee&1&&re)if(H===0)re.beforeEnter(X),a(X,I,D),Kt(()=>re.enter(X),K);else{const{leave:Me,delayLeave:Se,afterLeave:Oe}=re,Be=()=>a(X,I,D),qe=()=>{Me(X,()=>{Be(),Oe&&Oe()})};Se?Se(X,Be,qe):qe()}else a(X,I,D)},yt=(g,I,D,H=!1,K=!1)=>{const{type:X,props:fe,ref:re,children:le,dynamicChildren:ee,shapeFlag:he,patchFlag:Me,dirs:Se}=g;if(re!=null&&Xo(re,null,D,g,!0),he&256){I.ctx.deactivate(g);return}const Oe=he&1&&Se,Be=!Na(g);let qe;if(Be&&(qe=fe&&fe.onVnodeBeforeUnmount)&&sn(qe,I,g),he&6)Je(g.component,D,H);else{if(he&128){g.suspense.unmount(D,H);return}Oe&&On(g,null,I,"beforeUnmount"),he&64?g.type.remove(g,I,D,K,bt,H):ee&&(X!==Re||Me>0&&Me&64)?Ue(ee,I,D,!1,!0):(X===Re&&Me&384||!K&&he&16)&&Ue(le,I,D),H&&ge(g)}(Be&&(qe=fe&&fe.onVnodeUnmounted)||Oe)&&Kt(()=>{qe&&sn(qe,I,g),Oe&&On(g,null,I,"unmounted")},D)},ge=g=>{const{type:I,el:D,anchor:H,transition:K}=g;if(I===Re){Ne(D,H);return}if(I===La){A(g);return}const X=()=>{r(D),K&&!K.persisted&&K.afterLeave&&K.afterLeave()};if(g.shapeFlag&1&&K&&!K.persisted){const{leave:fe,delayLeave:re}=K,le=()=>fe(D,X);re?re(g.el,X,le):le()}else X()},Ne=(g,I)=>{let D;for(;g!==I;)D=m(g),r(g),g=D;r(I)},Je=(g,I,D)=>{const{bum:H,scope:K,update:X,subTree:fe,um:re}=g;H&&ir(H),K.stop(),X&&(X.active=!1,yt(fe,g,I,D)),re&&Kt(re,I),Kt(()=>{g.isUnmounted=!0},I),I&&I.pendingBranch&&!I.isUnmounted&&g.asyncDep&&!g.asyncResolved&&g.suspenseId===I.pendingId&&(I.deps--,I.deps===0&&I.resolve())},Ue=(g,I,D,H=!1,K=!1,X=0)=>{for(let fe=X;fe<g.length;fe++)yt(g[fe],I,D,H,K)},dt=g=>g.shapeFlag&6?dt(g.component.subTree):g.shapeFlag&128?g.suspense.next():m(g.anchor||g.el);let ot=!1;const Tt=(g,I,D)=>{g==null?I._vnode&&yt(I._vnode,null,null,!0):y(I._vnode||null,g,I,null,null,null,D),ot||(ot=!0,Kc(),Yo(),ot=!1),I._vnode=g},bt={p:y,um:yt,m:Ve,r:ge,mt:ue,mc:M,pc:Z,pbc:J,n:dt,o:e};let Rt,pe;return t&&([Rt,pe]=t(bt)),{render:Tt,hydrate:Rt,createApp:$_(Tt,Rt)}}function ii({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Ia({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function nd(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function pl(e,t,n=!1){const a=e.children,r=t.children;if(Ie(a)&&Ie(r))for(let o=0;o<a.length;o++){const i=a[o];let c=r[o];c.shapeFlag&1&&!c.dynamicChildren&&((c.patchFlag<=0||c.patchFlag===32)&&(c=r[o]=la(r[o]),c.el=i.el),n||pl(i,c)),c.type===Ra&&(c.el=i.el)}}function B_(e){const t=e.slice(),n=[0];let a,r,o,i,c;const u=e.length;for(a=0;a<u;a++){const p=e[a];if(p!==0){if(r=n[n.length-1],e[r]<p){t[a]=r,n.push(a);continue}for(o=0,i=n.length-1;o<i;)c=o+i>>1,e[n[c]]<p?o=c+1:i=c;p<e[n[o]]&&(o>0&&(t[a]=n[o-1]),n[o]=a)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function ad(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ad(t)}const H_=e=>e.__isTeleport,Br=e=>e&&(e.disabled||e.disabled===""),nu=e=>typeof SVGElement<"u"&&e instanceof SVGElement,au=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,xi=(e,t)=>{const n=e&&e.to;return _t(n)?t?t(n):null:n},U_={name:"Teleport",__isTeleport:!0,process(e,t,n,a,r,o,i,c,u,p){const{mc:h,pc:d,pbc:m,o:{insert:T,querySelector:w,createText:y,createComment:k}}=p,U=Br(t.props);let{shapeFlag:F,children:b,dynamicChildren:A}=t;if(e==null){const C=t.el=y(""),v=t.anchor=y("");T(C,n,a),T(v,n,a);const O=t.target=xi(t.props,w),M=t.targetAnchor=y("");O&&(T(M,O),i==="svg"||nu(O)?i="svg":(i==="mathml"||au(O))&&(i="mathml"));const Y=(J,me)=>{F&16&&h(b,J,me,r,o,i,c,u)};U?Y(n,v):O&&Y(O,M)}else{t.el=e.el;const C=t.anchor=e.anchor,v=t.target=e.target,O=t.targetAnchor=e.targetAnchor,M=Br(e.props),Y=M?n:v,J=M?C:O;if(i==="svg"||nu(v)?i="svg":(i==="mathml"||au(v))&&(i="mathml"),A?(m(e.dynamicChildren,A,Y,r,o,i,c),pl(e,t,!0)):u||d(e,t,Y,J,r,o,i,c,!1),U)M?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Lo(t,n,C,p,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const me=t.target=xi(t.props,w);me&&Lo(t,me,null,p,0)}else M&&Lo(t,v,O,p,1)}rd(t)},remove(e,t,n,a,{um:r,o:{remove:o}},i){const{shapeFlag:c,children:u,anchor:p,targetAnchor:h,target:d,props:m}=e;if(d&&o(h),i&&o(p),c&16){const T=i||!Br(m);for(let w=0;w<u.length;w++){const y=u[w];r(y,t,n,T,!!y.dynamicChildren)}}},move:Lo,hydrate:j_};function Lo(e,t,n,{o:{insert:a},m:r},o=2){o===0&&a(e.targetAnchor,t,n);const{el:i,anchor:c,shapeFlag:u,children:p,props:h}=e,d=o===2;if(d&&a(i,t,n),(!d||Br(h))&&u&16)for(let m=0;m<p.length;m++)r(p[m],t,n,2);d&&a(c,t,n)}function j_(e,t,n,a,r,o,{o:{nextSibling:i,parentNode:c,querySelector:u}},p){const h=t.target=xi(t.props,u);if(h){const d=h._lpa||h.firstChild;if(t.shapeFlag&16)if(Br(t.props))t.anchor=p(i(e),t,c(e),n,a,r,o),t.targetAnchor=d;else{t.anchor=i(e);let m=d;for(;m;)if(m=i(m),m&&m.nodeType===8&&m.data==="teleport anchor"){t.targetAnchor=m,h._lpa=t.targetAnchor&&i(t.targetAnchor);break}p(d,t,h,n,a,r,o)}rd(t)}return t.anchor&&i(t.anchor)}const K_=U_;function rd(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n&&n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const Re=Symbol.for("v-fgt"),Ra=Symbol.for("v-txt"),Xt=Symbol.for("v-cmt"),La=Symbol.for("v-stc"),Hr=[];let cn=null;function N(e=!1){Hr.push(cn=e?null:[])}function od(){Hr.pop(),cn=Hr[Hr.length-1]||null}let Fa=1;function $i(e){Fa+=e}function sd(e){return e.dynamicChildren=Fa>0?cn||rr:null,od(),Fa>0&&cn&&cn.push(e),e}function B(e,t,n,a,r,o){return sd(j(e,t,n,a,r,o,!0))}function tt(e,t,n,a,r){return sd(He(e,t,n,a,r,!0))}function pa(e){return e?e.__v_isVNode===!0:!1}function $n(e,t){return e.type===t.type&&e.key===t.key}function z_(e){}const hs="__vInternal",id=({key:e})=>e??null,Ho=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?_t(e)||Bt(e)||Fe(e)?{i:$t,r:e,k:t,f:!!n}:e:null);function j(e,t=null,n=null,a=0,r=null,o=e===Re?0:1,i=!1,c=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&id(t),ref:t&&Ho(t),scopeId:us,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:a,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:$t};return c?(hl(u,n),o&128&&e.normalize(u)):n&&(u.shapeFlag|=_t(n)?8:16),Fa>0&&!i&&cn&&(u.patchFlag>0||o&6)&&u.patchFlag!==32&&cn.push(u),u}const He=W_;function W_(e,t=null,n=null,a=0,r=null,o=!1){if((!e||e===If)&&(e=Xt),pa(e)){const c=Fn(e,t,!0);return n&&hl(c,n),Fa>0&&!o&&cn&&(c.shapeFlag&6?cn[cn.indexOf(e)]=c:cn.push(c)),c.patchFlag|=-2,c}if(ey(e)&&(e=e.__vccOpts),t){t=ld(t);let{class:c,style:u}=t;c&&!_t(c)&&(t.class=pt(c)),ft(u)&&(Ji(u)&&!Ie(u)&&(u=gt({},u)),t.style=Ct(u))}const i=_t(e)?1:Sf(e)?128:H_(e)?64:ft(e)?4:Fe(e)?2:0;return j(e,t,n,a,r,i,o,!0)}function ld(e){return e?Ji(e)||hs in e?gt({},e):e:null}function Fn(e,t,n=!1){const{props:a,ref:r,patchFlag:o,children:i}=e,c=t?cd(a||{},t):a;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&id(c),ref:t&&t.ref?n&&r?Ie(r)?r.concat(Ho(t)):[r,Ho(t)]:Ho(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Re?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Fn(e.ssContent),ssFallback:e.ssFallback&&Fn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function wt(e=" ",t=0){return He(Ra,null,e,t)}function G_(e,t){const n=He(La,null,e);return n.staticCount=t,n}function Te(e="",t=!1){return t?(N(),tt(Xt,null,e)):He(Xt,null,e)}function hn(e){return e==null||typeof e=="boolean"?He(Xt):Ie(e)?He(Re,null,e.slice()):typeof e=="object"?la(e):He(Ra,null,String(e))}function la(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Fn(e)}function hl(e,t){let n=0;const{shapeFlag:a}=e;if(t==null)t=null;else if(Ie(t))n=16;else if(typeof t=="object")if(a&65){const r=t.default;r&&(r._c&&(r._d=!1),hl(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(hs in t)?t._ctx=$t:r===3&&$t&&($t.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Fe(t)?(t={default:t,_ctx:$t},n=32):(t=String(t),a&64?(n=16,t=[wt(t)]):n=8);e.children=t,e.shapeFlag|=n}function cd(...e){const t={};for(let n=0;n<e.length;n++){const a=e[n];for(const r in a)if(r==="class")t.class!==a.class&&(t.class=pt([t.class,a.class]));else if(r==="style")t.style=Ct([t.style,a.style]);else if(Jr(r)){const o=t[r],i=a[r];i&&o!==i&&!(Ie(o)&&o.includes(i))&&(t[r]=o?[].concat(o,i):i)}else r!==""&&(t[r]=a[r])}return t}function sn(e,t,n,a=null){mn(e,t,7,[n,a])}const Y_=Wf();let Q_=0;function ud(e,t,n){const a=e.type,r=(t?t.appContext:e.appContext)||Y_,o={uid:Q_++,vnode:e,type:a,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new Wi(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Qf(a,r),emitsOptions:Cf(a,r),emit:null,emitted:null,propsDefaults:ct,inheritAttrs:a.inheritAttrs,ctx:ct,data:ct,props:ct,attrs:ct,slots:ct,refs:ct,setupState:ct,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=Bg.bind(null,o),e.ce&&e.ce(o),o}let Nt=null;const Yn=()=>Nt||$t;let Jo,Mi;{const e=Yu(),t=(n,a)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(a),o=>{r.length>1?r.forEach(i=>i(o)):r[0](o)}};Jo=t("__VUE_INSTANCE_SETTERS__",n=>Nt=n),Mi=t("__VUE_SSR_SETTERS__",n=>to=n)}const Da=e=>{const t=Nt;return Jo(e),e.scope.on(),()=>{e.scope.off(),Jo(t)}},Ni=()=>{Nt&&Nt.scope.off(),Jo(null)};function fd(e){return e.vnode.shapeFlag&4}let to=!1;function dd(e,t=!1){t&&Mi(t);const{props:n,children:a}=e.vnode,r=fd(e);N_(e,n,r,t),O_(e,a);const o=r?X_(e,t):void 0;return t&&Mi(!1),o}function X_(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=qi(new Proxy(e.ctx,Ti));const{setup:a}=n;if(a){const r=e.setupContext=a.length>1?hd(e):null,o=Da(e);Ha();const i=Wn(a,e,0,[e.props,r]);if(Ua(),o(),Ki(i)){if(i.then(Ni,Ni),t)return i.then(c=>{Li(e,c,t)}).catch(c=>{ja(c,e,0)});e.asyncDep=i}else Li(e,i,t)}else pd(e,t)}function Li(e,t,n){Fe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ft(t)&&(e.setupState=tl(t)),pd(e,n)}let qo,Pi;function J_(e){qo=e,Pi=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,u_))}}const q_=()=>!qo;function pd(e,t,n){const a=e.type;if(!e.render){if(!t&&qo&&!a.render){const r=a.template||fl(e).template;if(r){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:c,compilerOptions:u}=a,p=gt(gt({isCustomElement:o,delimiters:c},i),u);a.render=qo(r,p)}}e.render=a.render||ln,Pi&&Pi(e)}{const r=Da(e);Ha();try{I_(e)}finally{Ua(),r()}}}function Z_(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return un(e,"get","$attrs"),t[n]}}))}function hd(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Z_(e)},slots:e.slots,emit:e.emit,expose:t}}function vs(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(tl(qi(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Vr)return Vr[n](e)},has(t,n){return n in t||n in Vr}}))}function Oi(e,t=!0){return Fe(e)?e.displayName||e.name:e.name||t&&e.__name}function ey(e){return Fe(e)&&"__vccOpts"in e}const de=(e,t)=>wg(e,t,to);function ms(e,t,n=ct){const a=Yn(),r=nn(t),o=vn(t),i=gf((u,p)=>{let h;return Mf(()=>{const d=e[t];Nn(h,d)&&(h=d,p())}),{get(){return u(),n.get?n.get(h):h},set(d){const m=a.vnode.props;!(m&&(t in m||r in m||o in m)&&(`onUpdate:${t}`in m||`onUpdate:${r}`in m||`onUpdate:${o}`in m))&&Nn(d,h)&&(h=d,p()),a.emit(`update:${t}`,n.set?n.set(d):d)}}}),c=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return i[Symbol.iterator]=()=>{let u=0;return{next(){return u<2?{value:u++?e[c]||{}:i,done:!1}:{done:!0}}}},i}function ha(e,t,n){const a=arguments.length;return a===2?ft(t)&&!Ie(t)?pa(t)?He(e,null,[t]):He(e,t):He(e,null,t):(a>3?n=Array.prototype.slice.call(arguments,2):a===3&&pa(n)&&(n=[n]),He(e,t,n))}function ty(){}function ny(e,t,n,a){const r=n[a];if(r&&vd(r,e))return r;const o=t();return o.memo=e.slice(),n[a]=o}function vd(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let a=0;a<n.length;a++)if(Nn(n[a],t[a]))return!1;return Fa>0&&cn&&cn.push(e),!0}const md="3.4.21",ay=ln,ry=Og,oy=ar,sy=wf,iy={createComponentInstance:ud,setupComponent:dd,renderComponentRoot:Bo,setCurrentRenderingInstance:Yr,isVNode:pa,normalizeVNode:hn},ly=iy,cy=null,uy=null,fy=null;/**
* @vue/runtime-dom v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const dy="http://www.w3.org/2000/svg",py="http://www.w3.org/1998/Math/MathML",ca=typeof document<"u"?document:null,ru=ca&&ca.createElement("template"),hy={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,a)=>{const r=t==="svg"?ca.createElementNS(dy,e):t==="mathml"?ca.createElementNS(py,e):ca.createElement(e,n?{is:n}:void 0);return e==="select"&&a&&a.multiple!=null&&r.setAttribute("multiple",a.multiple),r},createText:e=>ca.createTextNode(e),createComment:e=>ca.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ca.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,a,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{ru.innerHTML=a==="svg"?`<svg>${e}</svg>`:a==="mathml"?`<math>${e}</math>`:e;const c=ru.content;if(a==="svg"||a==="mathml"){const u=c.firstChild;for(;u.firstChild;)c.appendChild(u.firstChild);c.removeChild(u)}t.insertBefore(c,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ra="transition",$r="animation",hr=Symbol("_vtc"),vl=(e,{slots:t})=>ha(Lf,_d(e),t);vl.displayName="Transition";const gd={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},vy=vl.props=gt({},ul,gd),Ta=(e,t=[])=>{Ie(e)?e.forEach(n=>n(...t)):e&&e(...t)},ou=e=>e?Ie(e)?e.some(t=>t.length>1):e.length>1:!1;function _d(e){const t={};for(const oe in e)oe in gd||(t[oe]=e[oe]);if(e.css===!1)return t;const{name:n="v",type:a,duration:r,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:c=`${n}-enter-to`,appearFromClass:u=o,appearActiveClass:p=i,appearToClass:h=c,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:T=`${n}-leave-to`}=e,w=my(r),y=w&&w[0],k=w&&w[1],{onBeforeEnter:U,onEnter:F,onEnterCancelled:b,onLeave:A,onLeaveCancelled:C,onBeforeAppear:v=U,onAppear:O=F,onAppearCancelled:M=b}=t,Y=(oe,G,ue)=>{oa(oe,G?h:c),oa(oe,G?p:i),ue&&ue()},J=(oe,G)=>{oe._isLeaving=!1,oa(oe,d),oa(oe,T),oa(oe,m),G&&G()},me=oe=>(G,ue)=>{const _e=oe?O:F,te=()=>Y(G,oe,ue);Ta(_e,[G,te]),su(()=>{oa(G,oe?u:o),jn(G,oe?h:c),ou(_e)||iu(G,a,y,te)})};return gt(t,{onBeforeEnter(oe){Ta(U,[oe]),jn(oe,o),jn(oe,i)},onBeforeAppear(oe){Ta(v,[oe]),jn(oe,u),jn(oe,p)},onEnter:me(!1),onAppear:me(!0),onLeave(oe,G){oe._isLeaving=!0;const ue=()=>J(oe,G);jn(oe,d),bd(),jn(oe,m),su(()=>{oe._isLeaving&&(oa(oe,d),jn(oe,T),ou(A)||iu(oe,a,k,ue))}),Ta(A,[oe,ue])},onEnterCancelled(oe){Y(oe,!1),Ta(b,[oe])},onAppearCancelled(oe){Y(oe,!0),Ta(M,[oe])},onLeaveCancelled(oe){J(oe),Ta(C,[oe])}})}function my(e){if(e==null)return null;if(ft(e))return[li(e.enter),li(e.leave)];{const t=li(e);return[t,t]}}function li(e){return zo(e)}function jn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[hr]||(e[hr]=new Set)).add(t)}function oa(e,t){t.split(/\s+/).forEach(a=>a&&e.classList.remove(a));const n=e[hr];n&&(n.delete(t),n.size||(e[hr]=void 0))}function su(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let gy=0;function iu(e,t,n,a){const r=e._endId=++gy,o=()=>{r===e._endId&&a()};if(n)return setTimeout(o,n);const{type:i,timeout:c,propCount:u}=yd(e,t);if(!i)return a();const p=i+"end";let h=0;const d=()=>{e.removeEventListener(p,m),o()},m=T=>{T.target===e&&++h>=u&&d()};setTimeout(()=>{h<u&&d()},c+1),e.addEventListener(p,m)}function yd(e,t){const n=window.getComputedStyle(e),a=w=>(n[w]||"").split(", "),r=a(`${ra}Delay`),o=a(`${ra}Duration`),i=lu(r,o),c=a(`${$r}Delay`),u=a(`${$r}Duration`),p=lu(c,u);let h=null,d=0,m=0;t===ra?i>0&&(h=ra,d=i,m=o.length):t===$r?p>0&&(h=$r,d=p,m=u.length):(d=Math.max(i,p),h=d>0?i>p?ra:$r:null,m=h?h===ra?o.length:u.length:0);const T=h===ra&&/\b(transform|all)(,|$)/.test(a(`${ra}Property`).toString());return{type:h,timeout:d,propCount:m,hasTransform:T}}function lu(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,a)=>cu(n)+cu(e[a])))}function cu(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function bd(){return document.body.offsetHeight}function _y(e,t,n){const a=e[hr];a&&(t=(t?[t,...a]:[...a]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Zo=Symbol("_vod"),Ad=Symbol("_vsh"),gn={beforeMount(e,{value:t},{transition:n}){e[Zo]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Mr(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:a}){!t!=!n&&(a?t?(a.beforeEnter(e),Mr(e,!0),a.enter(e)):a.leave(e,()=>{Mr(e,!1)}):Mr(e,t))},beforeUnmount(e,{value:t}){Mr(e,t)}};function Mr(e,t){e.style.display=t?e[Zo]:"none",e[Ad]=!t}function yy(){gn.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const wd=Symbol("");function _r(e){const t=Yn();if(!t)return;const n=t.ut=(r=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(o=>Fi(o,r))},a=()=>{const r=e(t.proxy);Ri(t.subTree,r),n(r)};$f(a),Wt(()=>{const r=new MutationObserver(a);r.observe(t.subTree.el.parentNode,{childList:!0}),za(()=>r.disconnect())})}function Ri(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Ri(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Fi(e.el,t);else if(e.type===Re)e.children.forEach(n=>Ri(n,t));else if(e.type===La){let{el:n,anchor:a}=e;for(;n&&(Fi(n,t),n!==a);)n=n.nextSibling}}function Fi(e,t){if(e.nodeType===1){const n=e.style;let a="";for(const r in t)n.setProperty(`--${r}`,t[r]),a+=`--${r}: ${t[r]};`;n[wd]=a}}const by=/(^|;)\s*display\s*:/;function Ay(e,t,n){const a=e.style,r=_t(n);let o=!1;if(n&&!r){if(t)if(_t(t))for(const i of t.split(";")){const c=i.slice(0,i.indexOf(":")).trim();n[c]==null&&Uo(a,c,"")}else for(const i in t)n[i]==null&&Uo(a,i,"");for(const i in n)i==="display"&&(o=!0),Uo(a,i,n[i])}else if(r){if(t!==n){const i=a[wd];i&&(n+=";"+i),a.cssText=n,o=by.test(n)}}else t&&e.removeAttribute("style");Zo in e&&(e[Zo]=o?a.display:"",e[Ad]&&(a.display="none"))}const uu=/\s*!important$/;function Uo(e,t,n){if(Ie(n))n.forEach(a=>Uo(e,t,a));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const a=wy(e,t);uu.test(n)?e.setProperty(vn(a),n.replace(uu,""),"important"):e[a]=n}}const fu=["Webkit","Moz","ms"],ci={};function wy(e,t){const n=ci[t];if(n)return n;let a=nn(t);if(a!=="filter"&&a in e)return ci[t]=a;a=qr(a);for(let r=0;r<fu.length;r++){const o=fu[r]+a;if(o in e)return ci[t]=o}return t}const du="http://www.w3.org/1999/xlink";function Cy(e,t,n,a,r){if(a&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(du,t.slice(6,t.length)):e.setAttributeNS(du,t,n);else{const o=Qm(t);n==null||o&&!Qu(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}function Iy(e,t,n,a,r,o,i){if(t==="innerHTML"||t==="textContent"){a&&i(a,r,o),e[t]=n??"";return}const c=e.tagName;if(t==="value"&&c!=="PROGRESS"&&!c.includes("-")){const p=c==="OPTION"?e.getAttribute("value")||"":e.value,h=n??"";(p!==h||!("_value"in e))&&(e.value=h),n==null&&e.removeAttribute(t),e._value=n;return}let u=!1;if(n===""||n==null){const p=typeof e[t];p==="boolean"?n=Qu(n):n==null&&p==="string"?(n="",u=!0):p==="number"&&(n=0,u=!0)}try{e[t]=n}catch{}u&&e.removeAttribute(t)}function Kn(e,t,n,a){e.addEventListener(t,n,a)}function Ty(e,t,n,a){e.removeEventListener(t,n,a)}const pu=Symbol("_vei");function Sy(e,t,n,a,r=null){const o=e[pu]||(e[pu]={}),i=o[t];if(a&&i)i.value=a;else{const[c,u]=Ey(t);if(a){const p=o[t]=$y(a,r);Kn(e,c,p,u)}else i&&(Ty(e,c,i,u),o[t]=void 0)}}const hu=/(?:Once|Passive|Capture)$/;function Ey(e){let t;if(hu.test(e)){t={};let a;for(;a=e.match(hu);)e=e.slice(0,e.length-a[0].length),t[a[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):vn(e.slice(2)),t]}let ui=0;const ky=Promise.resolve(),xy=()=>ui||(ky.then(()=>ui=0),ui=Date.now());function $y(e,t){const n=a=>{if(!a._vts)a._vts=Date.now();else if(a._vts<=n.attached)return;mn(My(a,n.value),t,5,[a])};return n.value=e,n.attached=xy(),n}function My(e,t){if(Ie(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(a=>r=>!r._stopped&&a&&a(r))}else return t}const vu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ny=(e,t,n,a,r,o,i,c,u)=>{const p=r==="svg";t==="class"?_y(e,a,p):t==="style"?Ay(e,n,a):Jr(t)?Ui(t)||Sy(e,t,n,a,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ly(e,t,a,p))?Iy(e,t,a,o,i,c,u):(t==="true-value"?e._trueValue=a:t==="false-value"&&(e._falseValue=a),Cy(e,t,a,p))};function Ly(e,t,n,a){if(a)return!!(t==="innerHTML"||t==="textContent"||t in e&&vu(t)&&Fe(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return vu(t)&&_t(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function Cd(e,t){const n=ke(e);class a extends gs{constructor(o){super(n,o,t)}}return a.def=n,a}/*! #__NO_SIDE_EFFECTS__ */const Py=e=>Cd(e,Ld),Oy=typeof HTMLElement<"u"?HTMLElement:class{};class gs extends Oy{constructor(t,n={},a){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&a?a(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),Mn(()=>{this._connected||(Di(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let a=0;a<this.attributes.length;a++)this._setAttr(this.attributes[a].name);this._ob=new MutationObserver(a=>{for(const r of a)this._setAttr(r.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(a,r=!1)=>{const{props:o,styles:i}=a;let c;if(o&&!Ie(o))for(const u in o){const p=o[u];(p===Number||p&&p.type===Number)&&(u in this._props&&(this._props[u]=zo(this._props[u])),(c||(c=Object.create(null)))[nn(u)]=!0)}this._numberProps=c,r&&this._resolveProps(a),this._applyStyles(i),this._update()},n=this._def.__asyncLoader;n?n().then(a=>t(a,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,a=Ie(n)?n:Object.keys(n||{});for(const r of Object.keys(this))r[0]!=="_"&&a.includes(r)&&this._setProp(r,this[r],!0,!1);for(const r of a.map(nn))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(o){this._setProp(r,o)}})}_setAttr(t){let n=this.getAttribute(t);const a=nn(t);this._numberProps&&this._numberProps[a]&&(n=zo(n)),this._setProp(a,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,a=!0,r=!0){n!==this._props[t]&&(this._props[t]=n,r&&this._instance&&this._update(),a&&(n===!0?this.setAttribute(vn(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(vn(t),n+""):n||this.removeAttribute(vn(t))))}_update(){Di(this._createVNode(),this.shadowRoot)}_createVNode(){const t=He(this._def,gt({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const a=(o,i)=>{this.dispatchEvent(new CustomEvent(o,{detail:i}))};n.emit=(o,...i)=>{a(o,i),vn(o)!==o&&a(vn(o),i)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof gs){n.parent=r._instance,n.provides=r._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const a=document.createElement("style");a.textContent=n,this.shadowRoot.appendChild(a)})}}function Ry(e="$style"){{const t=Yn();if(!t)return ct;const n=t.type.__cssModules;if(!n)return ct;const a=n[e];return a||ct}}const Id=new WeakMap,Td=new WeakMap,es=Symbol("_moveCb"),mu=Symbol("_enterCb"),Sd={name:"TransitionGroup",props:gt({},vy,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Yn(),a=cl();let r,o;return ps(()=>{if(!r.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!Uy(r[0].el,n.vnode.el,i))return;r.forEach(Vy),r.forEach(By);const c=r.filter(Hy);bd(),c.forEach(u=>{const p=u.el,h=p.style;jn(p,i),h.transform=h.webkitTransform=h.transitionDuration="";const d=p[es]=m=>{m&&m.target!==p||(!m||/transform$/.test(m.propertyName))&&(p.removeEventListener("transitionend",d),p[es]=null,oa(p,i))};p.addEventListener("transitionend",d)})}),()=>{const i=Xe(e),c=_d(i);let u=i.tag||Re;r=o,o=t.default?fs(t.default()):[];for(let p=0;p<o.length;p++){const h=o[p];h.key!=null&&Oa(h,pr(h,c,a,n))}if(r)for(let p=0;p<r.length;p++){const h=r[p];Oa(h,pr(h,c,a,n)),Id.set(h,h.el.getBoundingClientRect())}return He(u,null,o)}}},Fy=e=>delete e.mode;Sd.props;const Dy=Sd;function Vy(e){const t=e.el;t[es]&&t[es](),t[mu]&&t[mu]()}function By(e){Td.set(e,e.el.getBoundingClientRect())}function Hy(e){const t=Id.get(e),n=Td.get(e),a=t.left-n.left,r=t.top-n.top;if(a||r){const o=e.el.style;return o.transform=o.webkitTransform=`translate(${a}px,${r}px)`,o.transitionDuration="0s",e}}function Uy(e,t,n){const a=e.cloneNode(),r=e[hr];r&&r.forEach(c=>{c.split(/\s+/).forEach(u=>u&&a.classList.remove(u))}),n.split(/\s+/).forEach(c=>c&&a.classList.add(c)),a.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(a);const{hasTransform:i}=yd(a);return o.removeChild(a),i}const va=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ie(t)?n=>ir(t,n):t};function jy(e){e.target.composing=!0}function gu(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Cn=Symbol("_assign"),Va={created(e,{modifiers:{lazy:t,trim:n,number:a}},r){e[Cn]=va(r);const o=a||r.props&&r.props.type==="number";Kn(e,t?"change":"input",i=>{if(i.target.composing)return;let c=e.value;n&&(c=c.trim()),o&&(c=jr(c)),e[Cn](c)}),n&&Kn(e,"change",()=>{e.value=e.value.trim()}),t||(Kn(e,"compositionstart",jy),Kn(e,"compositionend",gu),Kn(e,"change",gu))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:a,number:r}},o){if(e[Cn]=va(o),e.composing)return;const i=r||e.type==="number"?jr(e.value):e.value,c=t??"";i!==c&&(document.activeElement===e&&e.type!=="range"&&(n||a&&e.value.trim()===c)||(e.value=c))}},ml={deep:!0,created(e,t,n){e[Cn]=va(n),Kn(e,"change",()=>{const a=e._modelValue,r=vr(e),o=e.checked,i=e[Cn];if(Ie(a)){const c=as(a,r),u=c!==-1;if(o&&!u)i(a.concat(r));else if(!o&&u){const p=[...a];p.splice(c,1),i(p)}}else if(Ba(a)){const c=new Set(a);o?c.add(r):c.delete(r),i(c)}else i(Ed(e,o))})},mounted:_u,beforeUpdate(e,t,n){e[Cn]=va(n),_u(e,t,n)}};function _u(e,{value:t,oldValue:n},a){e._modelValue=t,Ie(t)?e.checked=as(t,a.props.value)>-1:Ba(t)?e.checked=t.has(a.props.value):t!==n&&(e.checked=da(t,Ed(e,!0)))}const gl={created(e,{value:t},n){e.checked=da(t,n.props.value),e[Cn]=va(n),Kn(e,"change",()=>{e[Cn](vr(e))})},beforeUpdate(e,{value:t,oldValue:n},a){e[Cn]=va(a),t!==n&&(e.checked=da(t,a.props.value))}},_l={deep:!0,created(e,{value:t,modifiers:{number:n}},a){const r=Ba(t);Kn(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?jr(vr(i)):vr(i));e[Cn](e.multiple?r?new Set(o):o:o[0]),e._assigning=!0,Mn(()=>{e._assigning=!1})}),e[Cn]=va(a)},mounted(e,{value:t,modifiers:{number:n}}){yu(e,t,n)},beforeUpdate(e,t,n){e[Cn]=va(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||yu(e,t,n)}};function yu(e,t,n){const a=e.multiple,r=Ie(t);if(!(a&&!r&&!Ba(t))){for(let o=0,i=e.options.length;o<i;o++){const c=e.options[o],u=vr(c);if(a)if(r){const p=typeof u;p==="string"||p==="number"?c.selected=t.includes(n?jr(u):u):c.selected=as(t,u)>-1}else c.selected=t.has(u);else if(da(vr(c),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!a&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function vr(e){return"_value"in e?e._value:e.value}function Ed(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const kd={created(e,t,n){Po(e,t,n,null,"created")},mounted(e,t,n){Po(e,t,n,null,"mounted")},beforeUpdate(e,t,n,a){Po(e,t,n,a,"beforeUpdate")},updated(e,t,n,a){Po(e,t,n,a,"updated")}};function xd(e,t){switch(e){case"SELECT":return _l;case"TEXTAREA":return Va;default:switch(t){case"checkbox":return ml;case"radio":return gl;default:return Va}}}function Po(e,t,n,a,r){const i=xd(e.tagName,n.props&&n.props.type)[r];i&&i(e,t,n,a)}function Ky(){Va.getSSRProps=({value:e})=>({value:e}),gl.getSSRProps=({value:e},t)=>{if(t.props&&da(t.props.value,e))return{checked:!0}},ml.getSSRProps=({value:e},t)=>{if(Ie(e)){if(t.props&&as(e,t.props.value)>-1)return{checked:!0}}else if(Ba(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},kd.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=xd(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const zy=["ctrl","shift","alt","meta"],Wy={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>zy.some(n=>e[`${n}Key`]&&!t.includes(n))},yl=(e,t)=>{const n=e._withMods||(e._withMods={}),a=t.join(".");return n[a]||(n[a]=(r,...o)=>{for(let i=0;i<t.length;i++){const c=Wy[t[i]];if(c&&c(r,t))return}return e(r,...o)})},Gy={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},bl=(e,t)=>{const n=e._withKeys||(e._withKeys={}),a=t.join(".");return n[a]||(n[a]=r=>{if(!("key"in r))return;const o=vn(r.key);if(t.some(i=>i===o||Gy[i]===o))return e(r)})},$d=gt({patchProp:Ny},hy);let Ur,bu=!1;function Md(){return Ur||(Ur=Zf($d))}function Nd(){return Ur=bu?Ur:ed($d),bu=!0,Ur}const Di=(...e)=>{Md().render(...e)},Ld=(...e)=>{Nd().hydrate(...e)},Pd=(...e)=>{const t=Md().createApp(...e),{mount:n}=t;return t.mount=a=>{const r=Rd(a);if(!r)return;const o=t._component;!Fe(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.innerHTML="";const i=n(r,!1,Od(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t},Yy=(...e)=>{const t=Nd().createApp(...e),{mount:n}=t;return t.mount=a=>{const r=Rd(a);if(r)return n(r,!0,Od(r))},t};function Od(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Rd(e){return _t(e)?document.querySelector(e):e}let Au=!1;const Qy=()=>{Au||(Au=!0,Ky(),yy())};/**
* vue v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const Xy=()=>{},Jy=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Lf,BaseTransitionPropsValidators:ul,Comment:Xt,DeprecationTypes:fy,EffectScope:Wi,ErrorCodes:Pg,ErrorTypeStrings:ry,Fragment:Re,KeepAlive:s_,ReactiveEffect:dr,Static:La,Suspense:Qg,Teleport:K_,Text:Ra,TrackOpTypes:Mg,Transition:vl,TransitionGroup:Dy,TriggerOpTypes:Ng,VueElement:gs,assertNumber:Lg,callWithAsyncErrorHandling:mn,callWithErrorHandling:Wn,camelize:nn,capitalize:qr,cloneVNode:Fn,compatUtils:uy,compile:Xy,computed:de,createApp:Pd,createBlock:tt,createCommentVNode:Te,createElementBlock:B,createElementVNode:j,createHydrationRenderer:ed,createPropsRestProxy:w_,createRenderer:Zf,createSSRApp:Yy,createSlots:l_,createStaticVNode:G_,createTextVNode:wt,createVNode:He,customRef:gf,defineAsyncComponent:r_,defineComponent:ke,defineCustomElement:Cd,defineEmits:d_,defineExpose:p_,defineModel:m_,defineOptions:h_,defineProps:f_,defineSSRCustomElement:Py,defineSlots:v_,devtools:oy,effect:eg,effectScope:Jm,getCurrentInstance:Yn,getCurrentScope:qu,getTransitionRawChildren:fs,guardReactiveProps:ld,h:ha,handleError:ja,hasInjectionContext:M_,hydrate:Ld,initCustomFormatter:ty,initDirectivesForSSR:Qy,inject:z,isMemoSame:vd,isProxy:Ji,isReactive:Ma,isReadonly:Pa,isRef:Bt,isRuntimeOnly:q_,isShallow:Kr,isVNode:pa,markRaw:qi,mergeDefaults:b_,mergeModels:A_,mergeProps:cd,nextTick:Mn,normalizeClass:pt,normalizeProps:Gm,normalizeStyle:Ct,onActivated:Of,onBeforeMount:gr,onBeforeUnmount:Ka,onBeforeUpdate:Df,onDeactivated:Rf,onErrorCaptured:Uf,onMounted:Wt,onRenderTracked:Hf,onRenderTriggered:Bf,onScopeDispose:qm,onServerPrefetch:Vf,onUnmounted:za,onUpdated:ps,openBlock:N,popScopeId:Ot,provide:Gf,proxyRefs:tl,pushScopeId:Pt,queuePostFlushCb:Go,reactive:ss,readonly:Xi,ref:ae,registerRuntimeCompiler:J_,render:Di,renderList:Lt,renderSlot:Et,resolveComponent:Gg,resolveDirective:Tf,resolveDynamicComponent:sl,resolveFilter:cy,resolveTransitionHooks:pr,setBlockTracking:$i,setDevtoolsHook:sy,setTransitionHooks:Oa,shallowReactive:pf,shallowReadonly:Ag,shallowRef:vf,ssrContextKey:kf,ssrUtils:ly,stop:tg,toDisplayString:Ae,toHandlerKey:Dr,toHandlers:c_,toRaw:Xe,toRef:$g,toRefs:nl,toValue:Tg,transformVNodeArgs:z_,triggerRef:Ig,unref:$,useAttrs:y_,useCssModule:Ry,useCssVars:_r,useModel:ms,useSSRContext:xf,useSlots:__,useTransitionState:cl,vModelCheckbox:ml,vModelDynamic:kd,vModelRadio:gl,vModelSelect:_l,vModelText:Va,vShow:gn,version:md,warn:ay,watch:Le,watchEffect:t_,watchPostEffect:$f,watchSyncEffect:Mf,withAsyncContext:C_,withCtx:Ye,withDefaults:g_,withDirectives:zt,withKeys:bl,withMemo:ny,withModifiers:yl,withScopeId:Hg},Symbol.toStringTag,{value:"Module"})),W={core:Symbol(),builderManager:Symbol(),evaluatedFields:Symbol(),componentId:Symbol(),isBeingEdited:Symbol(),isDisabled:Symbol(),getChildrenVNodes:Symbol(),renderProxiedComponent:Symbol(),instancePath:Symbol(),flattenedInstancePath:Symbol(),instanceData:Symbol()};var qy=(e=>(e.Cut="cut",e.Copy="copy",e))(qy||{}),L=(e=>(e.Text="Text",e.KeyValue="Key-Value",e.Color="Color",e.Shadow="Shadow",e.Number="Number",e.Object="Object",e.IdKey="Identifying Key",e.Width="Width",e.HAlign="Align (H)",e.VAlign="Align (V)",e.Padding="Padding",e))(L||{}),$e=(e=>(e.General="General",e.Style="Style",e))($e||{}),_s=(e=>(e.Text="Text",e.Textarea="Textarea",e))(_s||{});const Jt={name:"Accent",type:L.Color,category:$e.Style,applyStyleVariable:!0},It={name:"Primary text",type:L.Color,category:$e.Style,applyStyleVariable:!0},yn={name:"Secondary text",type:L.Color,category:$e.Style,applyStyleVariable:!0},Fd={name:"Emptiness",desc:"Page background color",type:L.Color,category:$e.Style,applyStyleVariable:!0},Dn={name:"Container background",type:L.Color,category:$e.Style,applyStyleVariable:!0},yr={name:"Container shadow",type:L.Shadow,category:$e.Style,applyStyleVariable:!0},Ht={name:"Separator",type:L.Color,category:$e.Style,applyStyleVariable:!0},Qn={name:"Button",type:L.Color,category:$e.Style,applyStyleVariable:!0},Xn={name:"Button text",type:L.Color,category:$e.Style,applyStyleVariable:!0},ma={name:"Button shadow",type:L.Shadow,category:$e.Style,applyStyleVariable:!0},De={name:"Custom CSS classes",type:L.Text,category:$e.Style,desc:"CSS classes, separated by spaces. You can define classes in custom stylesheets."},Zy={name:"Content width",type:L.Width,default:"100%",category:$e.Style,desc:"Configure content width using CSS units, e.g. 100px, 50%, 10vw, etc."},br={name:"Content alignment (H)",type:L.HAlign,default:"unset",category:$e.Style},Dd={name:"Content alignment (V)",type:L.VAlign,default:"unset",category:$e.Style},Ar={name:"Padding",type:L.Padding,default:"0",category:$e.Style},eb=Object.freeze(Object.defineProperty({__proto__:null,accentColor:Jt,buttonColor:Qn,buttonShadow:ma,buttonTextColor:Xn,containerBackgroundColor:Dn,containerShadow:yr,contentHAlign:br,contentPadding:Ar,contentVAlign:Dd,contentWidth:Zy,cssClasses:De,emptinessColor:Fd,primaryTextColor:It,secondaryTextColor:yn,separatorColor:Ht},Symbol.toStringTag,{value:"Module"})),tb=ke({__name:"WdsTextInput",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=ms(e,"modelValue");return(n,a)=>zt((N(),B("input",{"onUpdate:modelValue":a[0]||(a[0]=r=>t.value=r),type:"text"},null,512)),[[Va,t.value]])}}),Ee=(e,t)=>{const n=e.__vccOpts||e;for(const[a,r]of t)n[a]=r;return n},nb=Ee(tb,[["__scopeId","data-v-21f3762a"]]),ab={};function rb(e,t){return N(),B("button",null,[Et(e.$slots,"default",{},void 0,!0)])}const xn=Ee(ab,[["render",rb],["__scopeId","data-v-75345289"]]),ob={key:0,class:"BaseMarkdown markdown"},sb=ke({__name:"BaseMarkdown",props:{rawText:{}},setup(e){let t;const n=ae(!1),a=e;return gr(async()=>{t=await tn(()=>import("./marked.esm-273vDTCT.js"),[],import.meta.url),n.value=!0}),(r,o)=>{const i=Tf("dompurify-html");return n.value?zt((N(),B("div",ob,null,512)),[[i,$(t).parse(a.rawText).trim()]]):Te("",!0)}}}),Al=Ee(sb,[["__scopeId","data-v-f3d52aa9"]]),ys=e=>(Pt("data-v-98ae8bbd"),e=e(),Ot(),e),ib={key:0},lb=ys(()=>j("i",{class:"material-symbols-outlined"}," download ",-1)),cb={key:0,"data-writer-grid-col":"0",class:"cell headerCell indexCell"},ub=ys(()=>j("div",{class:"name"},null,-1)),fb=ys(()=>j("div",{class:"widthAdjuster"},null,-1)),db=[ub,fb],pb=["data-writer-grid-col","onClick"],hb={class:"name"},vb={class:"material-symbols-outlined"},mb={class:"material-symbols-outlined"},gb=ys(()=>j("div",{class:"widthAdjuster"},null,-1)),_b={key:0,class:"cell indexCell"},yb="A component to display Pandas DataFrames.",bb="data:application/vnd.apache.arrow.file;base64,QVJST1cxAAD/////iAMAABAAAAAAAAoADgAGAAUACAAKAAAAAAEEABAAAAAAAAoADAAAAAQACAAKAAAAlAIAAAQAAAABAAAADAAAAAgADAAEAAgACAAAAGwCAAAEAAAAXwIAAHsiaW5kZXhfY29sdW1ucyI6IFsiX19pbmRleF9sZXZlbF8wX18iXSwgImNvbHVtbl9pbmRleGVzIjogW3sibmFtZSI6IG51bGwsICJmaWVsZF9uYW1lIjogbnVsbCwgInBhbmRhc190eXBlIjogInVuaWNvZGUiLCAibnVtcHlfdHlwZSI6ICJvYmplY3QiLCAibWV0YWRhdGEiOiB7ImVuY29kaW5nIjogIlVURi04In19XSwgImNvbHVtbnMiOiBbeyJuYW1lIjogImNvbF9hIiwgImZpZWxkX25hbWUiOiAiY29sX2EiLCAicGFuZGFzX3R5cGUiOiAiaW50NjQiLCAibnVtcHlfdHlwZSI6ICJpbnQ2NCIsICJtZXRhZGF0YSI6IG51bGx9LCB7Im5hbWUiOiAiY29sX2IiLCAiZmllbGRfbmFtZSI6ICJjb2xfYiIsICJwYW5kYXNfdHlwZSI6ICJpbnQ2NCIsICJudW1weV90eXBlIjogImludDY0IiwgIm1ldGFkYXRhIjogbnVsbH0sIHsibmFtZSI6IG51bGwsICJmaWVsZF9uYW1lIjogIl9faW5kZXhfbGV2ZWxfMF9fIiwgInBhbmRhc190eXBlIjogImludDY0IiwgIm51bXB5X3R5cGUiOiAiaW50NjQiLCAibWV0YWRhdGEiOiBudWxsfV0sICJjcmVhdG9yIjogeyJsaWJyYXJ5IjogInB5YXJyb3ciLCAidmVyc2lvbiI6ICIxMi4wLjAifSwgInBhbmRhc192ZXJzaW9uIjogIjEuNS4zIn0ABgAAAHBhbmRhcwAAAwAAAIgAAABEAAAABAAAAJT///8AAAECEAAAACQAAAAEAAAAAAAAABEAAABfX2luZGV4X2xldmVsXzBfXwAAAJD///8AAAABQAAAAND///8AAAECEAAAABgAAAAEAAAAAAAAAAUAAABjb2xfYgAAAMD///8AAAABQAAAABAAFAAIAAYABwAMAAAAEAAQAAAAAAABAhAAAAAgAAAABAAAAAAAAAAFAAAAY29sX2EAAAAIAAwACAAHAAgAAAAAAAABQAAAAAAAAAD/////6AAAABQAAAAAAAAADAAWAAYABQAIAAwADAAAAAADBAAYAAAAMAAAAAAAAAAAAAoAGAAMAAQACAAKAAAAfAAAABAAAAACAAAAAAAAAAAAAAAGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAABAAAAAAAAAAAAAAAAMAAAACAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAIAAAAAAAAAAwAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAD/////AAAAABAAAAAMABQABgAIAAwAEAAMAAAAAAAEADwAAAAoAAAABAAAAAEAAACYAwAAAAAAAPAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAAAAACgAMAAAABAAIAAoAAACUAgAABAAAAAEAAAAMAAAACAAMAAQACAAIAAAAbAIAAAQAAABfAgAAeyJpbmRleF9jb2x1bW5zIjogWyJfX2luZGV4X2xldmVsXzBfXyJdLCAiY29sdW1uX2luZGV4ZXMiOiBbeyJuYW1lIjogbnVsbCwgImZpZWxkX25hbWUiOiBudWxsLCAicGFuZGFzX3R5cGUiOiAidW5pY29kZSIsICJudW1weV90eXBlIjogIm9iamVjdCIsICJtZXRhZGF0YSI6IHsiZW5jb2RpbmciOiAiVVRGLTgifX1dLCAiY29sdW1ucyI6IFt7Im5hbWUiOiAiY29sX2EiLCAiZmllbGRfbmFtZSI6ICJjb2xfYSIsICJwYW5kYXNfdHlwZSI6ICJpbnQ2NCIsICJudW1weV90eXBlIjogImludDY0IiwgIm1ldGFkYXRhIjogbnVsbH0sIHsibmFtZSI6ICJjb2xfYiIsICJmaWVsZF9uYW1lIjogImNvbF9iIiwgInBhbmRhc190eXBlIjogImludDY0IiwgIm51bXB5X3R5cGUiOiAiaW50NjQiLCAibWV0YWRhdGEiOiBudWxsfSwgeyJuYW1lIjogbnVsbCwgImZpZWxkX25hbWUiOiAiX19pbmRleF9sZXZlbF8wX18iLCAicGFuZGFzX3R5cGUiOiAiaW50NjQiLCAibnVtcHlfdHlwZSI6ICJpbnQ2NCIsICJtZXRhZGF0YSI6IG51bGx9XSwgImNyZWF0b3IiOiB7ImxpYnJhcnkiOiAicHlhcnJvdyIsICJ2ZXJzaW9uIjogIjEyLjAuMCJ9LCAicGFuZGFzX3ZlcnNpb24iOiAiMS41LjMifQAGAAAAcGFuZGFzAAADAAAAiAAAAEQAAAAEAAAAlP///wAAAQIQAAAAJAAAAAQAAAAAAAAAEQAAAF9faW5kZXhfbGV2ZWxfMF9fAAAAkP///wAAAAFAAAAA0P///wAAAQIQAAAAGAAAAAQAAAAAAAAABQAAAGNvbF9iAAAAwP///wAAAAFAAAAAEAAUAAgABgAHAAwAAAAQABAAAAAAAAECEAAAACAAAAAEAAAAAAAAAAUAAABjb2xfYQAAAAgADAAIAAcACAAAAAAAAAFAAAAAsAMAAEFSUk9XMQ==",Ab={writer:{name:"DataFrame",description:yb,category:"Content",fields:{dataframe:{name:"Data",desc:"Must be a state reference to a Pandas dataframe or PyArrow table. Alternatively, a URL for an Arrow IPC file.",type:L.Text,default:bb},showIndex:{name:"Show index",desc:"Shows the dataframe's index. If an Arrow table is used, shows the zero-based integer index.",type:L.Text,default:"yes",options:{yes:"yes",no:"no"}},enableSearch:{name:"Enable search",type:L.Text,default:"no",options:{yes:"yes",no:"no"}},enableDownload:{name:"Enable download",desc:"Allows the user to download the data as CSV.",type:L.Text,default:"no",options:{yes:"yes",no:"no"}},useMarkdown:{name:"Use Markdown",type:L.Text,desc:"If active, the output will be sanitized; unsafe elements will be removed.",options:{yes:"yes",no:"no"},default:"no"},displayRowCount:{name:"Display row count",desc:"Specifies how many rows to show simultaneously.",type:L.Number,category:$e.Style,default:"10"},wrapText:{name:"Wrap text",type:L.Text,category:$e.Style,desc:"Not wrapping text allows for an uniform grid, but may be inconvenient if your data contains longer text fields.",options:{yes:"yes",no:"no"},default:"no"},primaryTextColor:It,secondaryTextColor:yn,separatorColor:Ht,dataframeBackgroundColor:{name:"Background",type:L.Color,category:$e.Style,default:"#ffffff",applyStyleVariable:!0},fontStyle:{name:"Font style",type:L.Text,category:$e.Style,options:{normal:"normal",monospace:"monospace"},default:"normal"},cssClasses:De}}},wb=ke({...Ab,__name:"CoreDataframe",setup(e){_r(ge=>({a007bd32:O.value?"sticky":"unset"}));const t=1e3,n=36,a=80,r=300,o=/^__index_level_[0-9]+__$/,i=z(W.evaluatedFields),c=ae(),u=ae(),p=ae();let h=null;const d=ae(null),m=ae([]),T=de(()=>i.showIndex.value=="yes"),w=ae(null),y=ae(0),k=ae([]);let U=null;const F=de(()=>{var ge;return d.value?(ge=d.value)==null?void 0:ge.columnNames():[]}),b=de(()=>F.value.filter(ge=>m.value.includes(ge))),A=de(()=>F.value.filter(Ne=>{const Je=m.value.includes(Ne),Ue=o.test(Ne);return!(Je&&Ue)})),C=de(()=>(T.value?1:0)+A.value.length),v=de(()=>{var ge;return((ge=d.value)==null?void 0:ge.numRows())??0}),O=de(()=>v.value>t),M=de(()=>Math.min(i.displayRowCount.value,v.value)),Y=de(()=>{let ge;return i.wrapText.value=="yes"?ge=v.value-1:ge=v.value-M.value,Math.min(Math.ceil(y.value*ge),ge)}),J=de(()=>{if(!d.value)return null;const ge=O.value?Y.value:0,Ne=O.value?M.value:t,Je=d.value.objects({offset:ge,limit:Ne}),Ue=d.value.indices().slice(Y.value,Y.value+M.value);return{data:Je,indices:Ue}}),me=de(()=>{const ge=i.fontStyle.value;let Ne,Je;return k.value.length==0?Ne=`repeat(${C.value}, minmax(min-content, 1fr))`:Ne=k.value.map(Ue=>`${Math.max(Ue,a)}px`).join(" "),i.wrapText.value=="yes"&&(Je=(M.value+1)*n),{"min-height":`${n*(1+i.displayRowCount.value)}px`,"max-height":Je?`${Je}px`:void 0,"font-family":ge=="monospace"?"monospace":void 0,"grid-template-columns":Ne,"grid-template-rows":`${n}px repeat(${M.value}, min-content)`}}),oe=de(()=>({top:`${n*v.value}px`}));function G(ge){const Ne=p.value.scrollTop;y.value=Ne/(p.value.scrollHeight-p.value.clientHeight)}function ue(){p.value.scrollTop=0}async function _e(){var Ne;k.value=[],await Mn();const ge=(Ne=p.value)==null?void 0:Ne.querySelectorAll("[data-writer-grid-col]");ge==null||ge.forEach(Je=>{const Ue=Je,dt=Ue.dataset.writerGridCol,{width:ot}=Ue.getBoundingClientRect(),Tt=Math.min(ot,r);k.value[dt]=Tt})}function te(ge,Ne){var ot,Tt;if(ge.target.classList.contains("widthAdjuster"))return;if(((ot=w.value)==null?void 0:ot.columnName)!==Ne){w.value={columnName:Ne,descending:!1};return}if((Tt=w.value)==null?void 0:Tt.descending){w.value=null;return}w.value={columnName:Ne,descending:!w.value.descending}}function q(ge){const Ne=ge.schema.metadata.get("pandas");return Ne?JSON.parse(Ne).index_columns:[]}async function Z(){const ge=await tn(()=>import("./index-DaNZqg5r.js"),__vite__mapDeps([0,1]),import.meta.url),{tableFromIPC:Ne}=await tn(()=>import("./Arrow.dom-C52_vrWm.js"),__vite__mapDeps([2,1]),import.meta.url),Je=i.dataframe.value;try{const ot=await(await(await fetch(Je)).blob()).arrayBuffer(),Tt=Ne(ot);m.value=q(Tt),h=ge.fromArrow(Tt),d.value=h}catch(Ue){console.error("Couldn't load dataframe from Arrow URL.",Ue)}}function ye(){const ge=d.value.toCSV(),Ne=document.createElement("a"),Je=String.fromCharCode(...new TextEncoder().encode(ge));Ne.href="data:text/plain;base64,"+window.btoa(Je),Ne.download="data.csv",Ne.click()}async function mt(){const ge=await tn(()=>import("./index-DaNZqg5r.js"),__vite__mapDeps([0,1]),import.meta.url);if(w.value===null){d.value=d.value.unorder();return}let Ne;w.value.descending?Ne=ge.desc(w.value.columnName):Ne=w.value.columnName,d.value=d.value.orderby(Ne)}async function Ve(ge){const Ne=ge.target.value;if(!Ne)d.value=h;else{const Je=new RegExp(Ne,"i"),dt="(d, $) => "+h.columnNames().map(ot=>`aq.op.match(d.${ot}, $.pattern) !== null`).join(" || ");d.value=h.params({pattern:Je,filterS:dt}).filter(dt)}await Mn(),ue()}async function yt(ge){if(ge.buttons!==1){U=null;return}const Ne=ge.target;if(!c.value.contains(Ne))return;if(U===null&&Ne.classList.contains("widthAdjuster")){const Rt=Ne.closest(".cell");U=parseInt(Rt.dataset.writerGridCol)}else if(U===null)return;const Je=p.value.querySelector(`[data-writer-grid-col="${U}"]`),Ue=Je.querySelector(".widthAdjuster"),{width:dt}=Ue.getBoundingClientRect(),{left:ot}=Je.getBoundingClientRect(),bt=ge.clientX-ot+dt/2;k.value[U]=bt}return Le(i.dataframe,()=>{Z()}),Le(w,async()=>{await mt()}),Le(C,()=>{_e()}),Le(i.wrapText,()=>{_e()}),Wt(async()=>{await Z(),document.addEventListener("mousemove",yt),u.value&&new ResizeObserver(_e).observe(u.value,{box:"border-box"})}),za(()=>{document.removeEventListener("mousemove",yt)}),(ge,Ne)=>{var Je;return N(),B("div",{ref_key:"rootEl",ref:c,class:"CoreDataframe"},[j("div",{ref_key:"toolsEl",ref:u,class:"tools"},[$(i).enableSearch.value==="yes"?(N(),B("div",ib,[He(nb,{class:"search",placeholder:"Search...",onChange:Ve})])):Te("",!0),$(i).enableDownload.value==="yes"?(N(),tt(xn,{key:1,title:"Download",class:"download",onClick:ye},{default:Ye(()=>[lb]),_:1})):Te("",!0)],512),j("div",{ref_key:"gridContainerEl",ref:p,class:"gridContainer",onScroll:G},[j("div",{class:pt(["grid",{scrolled:Y.value>0,wrapText:$(i).wrapText.value==="yes"}]),style:Ct(me.value)},[T.value?(N(),B("div",cb,db)):Te("",!0),(N(!0),B(Re,null,Lt(A.value,(Ue,dt)=>{var ot,Tt,bt;return N(),B("div",{key:Ue,"data-writer-grid-col":dt+(T.value?1:0),class:"cell headerCell",onClick:Rt=>te(Rt,Ue)},[j("div",hb,Ae(Ue),1),j("div",{class:"icon",style:Ct({visibility:((ot=w.value)==null?void 0:ot.columnName)==Ue?"visible":"hidden"})},[zt(j("span",vb," arrow_downward ",512),[[gn,!((Tt=w.value)!=null&&Tt.descending)]]),zt(j("span",mb," arrow_upward ",512),[[gn,(bt=w.value)==null?void 0:bt.descending]])],4),gb],8,pb)}),128)),(N(!0),B(Re,null,Lt((Je=J.value)==null?void 0:Je.data,(Ue,dt)=>(N(),B(Re,{key:dt},[T.value?(N(),B("div",_b,[m.value.length==0?(N(),B(Re,{key:0},[wt(Ae(J.value.indices[dt]),1)],64)):(N(),B(Re,{key:1},[wt(Ae(b.value.map(ot=>Ue[ot]).join(", ")),1)],64))])):Te("",!0),(N(!0),B(Re,null,Lt(A.value,ot=>(N(),B("div",{key:ot,class:"cell"},[$(i).useMarkdown.value=="yes"?(N(),tt(Al,{key:0,"raw-text":Ue[ot]},null,8,["raw-text"])):(N(),B(Re,{key:1},[wt(Ae(Ue[ot]),1)],64))]))),128))],64))),128))],6),O.value?(N(),B("div",{key:0,class:"endpoint",style:Ct(oe.value)},null,4)):Te("",!0)],544)],512)}}}),Cb=Ee(wb,[["__scopeId","data-v-98ae8bbd"]]),Ib={key:0},Tb={key:1},Sb={key:2},Eb={key:3},kb="A text component used to display headings or titles in different sizes and styles.",xb={writer:{name:"Heading",description:kb,category:"Content",fields:{text:{name:"Text",default:"(No text)",init:"Heading Text",desc:"Add text directly, or reference state elements with @{my_text}.",type:L.Text},headingType:{name:"Heading type",default:"h3",options:{h1:"h1 (Big)",h2:"h2 (Normal)",h3:"h3 (Small)",h4:"h4 (Smallest)"},type:L.Text,category:$e.Style},alignment:{name:"Alignment",default:"left",type:L.Text,category:$e.Style,options:{left:"Left",center:"Center",right:"Right"}},primaryTextColor:It,cssClasses:De},previewField:"text"}},$b=ke({...xb,__name:"CoreHeading",setup(e){const t=z(W.evaluatedFields);return(n,a)=>(N(),B("div",{class:"CoreHeading",style:Ct({"text-align":$(t).alignment.value})},[$(t).headingType.value=="h1"?(N(),B("h1",Ib,Ae($(t).text.value),1)):$(t).headingType.value=="h3"?(N(),B("h3",Tb,Ae($(t).text.value),1)):$(t).headingType.value=="h4"?(N(),B("h4",Sb,Ae($(t).text.value),1)):(N(),B("h2",Eb,Ae($(t).text.value),1))],4))}}),Mb=Ee($b,[["__scopeId","data-v-1e1b3959"]]),Nb={class:"icon"},Lb={writer:{name:"Icon",description:"A component to display an icon",category:"Content",fields:{icon:{name:"Icon",type:L.Text,desc:'A Material Symbols id, such as "arrow_forward".',category:$e.Style,default:"arrow_forward"},size:{name:"Icon size",type:L.Number,desc:"Icon size in px",category:$e.Style,default:"14"},color:{name:"Icon color",type:L.Color,category:$e.Style},cssClasses:De},previewField:"icon"}},Vd=ke({...Lb,__name:"CoreIcon",setup(e){const t=z(W.evaluatedFields);return(n,a)=>(N(),B("div",Nb,[$(t).icon.value?(N(),B("span",{key:0,class:"material-symbols-outlined",style:Ct({fontSize:`${$(t).size.value}px`,color:$(t).color.value})},Ae($(t).icon.value),5)):Te("",!0)]))}}),wu=e=>{e.writer&&(e.writer.docs="Writer Framework uses Material Symbols to display icons. To include an icon, check https://fonts.google.com/icons, find the icon's id (such as `arrow_forward`) and it to your _Icon.")};typeof wu=="function"&&wu(Vd);const Pb=Ee(Vd,[["__scopeId","data-v-2f1b15f5"]]);function bs(e){const t={ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,metaKey:e.metaKey};return new CustomEvent("wf-click",{detail:{payload:t}})}function Ob(e){const t={key:e.key,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,metaKey:e.metaKey};return new CustomEvent("wf-keydown",{detail:{payload:t}})}const Rb=["src","alt"],Fb={key:0,class:"captionContainer"},Db="A component to display images.",Vb=`
def click_handler(state):

	# Increment counter when the image is clicked

	state["counter"] += 1`,Bb={writer:{name:"Image",description:Db,category:"Content",fields:{src:{name:"Source",default:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQoAAAEKCAYAAADqyxvJAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAemSURBVHgB7d3baltHGIZhJd5DW3pS2vu/tkKgEFragiXLjuvVkpOS5PMa6Z8ZWc8DPXPBJNGrpX82evfrh4/PG4BveL8BCIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiIQCiC43HN3PP/24ubyoafCnT8+bD7/9vur/+f67u80PL/9V+fjHX5vtdv/qn794+bP55eXPaJbfh8wTRYGHh7p/pO/fv/v3hbZG5e+zuLm+WvXzT0+fNo8v/1XZ7582HJdQFKj+h3p7c73q5/ePTy9PInUvzOuVoVhUxWsJ0FNhhM6VUBS43z1sKl1fXaz6+eXjyv6xMBSXF5t3L086a+weHjcVqp+ezpVQFFje0Srfwdc+USz2jzUvzM+WWKyxK3pB74SihFAU2e7mmlNst7VPObe36+JVFdOqJ5VzJxRFqucUaweIy5yi0tXl+gW0Y8fUfKKOUBTZla80rHth/jenqIvFVcOc4tgx3e89TVQRiiLVKw03DSsNu+Jl29Fzim3xEPmcCUWhh8LPy8uMYu07+EPx5/frho9Dx4yp/RN1hKJQ9WDtbuXqx26yjVeLY8Wr+qPVuROKQtVLklcN+ykqd0RerfzosThWTC2L1hKKQsuLoHJOcdewn6Lyc/wyp1g7ZD3WC9yyaC2hKFa5I7JlTlH9Of5y5TLpseYUdmTWEopi1Rud1r6DV68MrP19FofG1HyinlAUq55TrB0gVs8pWgaah8ZUJOoJRbFzOrm5WOYUa4eah8b0fmv/RDWhKHZOJzc/672f4vHRILOaUHRwLic3P2vbXt4eCise9YSigxlPbs42p2iNl0j0IRQdzHhy861c12ejVR9C0cHyaF35zrc86s+2n6Llur4W9k/0IRSdzDanmPG6vpaY+ujRh1B0MtvJzerr+lrmFGtjKhL9CEUnb/nk5pcsM4r1c4p1v8/esmg3QtFJjxum1qp+R14br7Ux3dpo1Y1QdFR9w9Sok5tfU31d34Ot290IRUdv9eTm11Tup1gi8fwSFvoQio6qT27e3bZ838dcx+BfO6ewLNqXUHQ04w1T1Z/zq67rs9GqL6Ho7K2d3EyqruuzNNqXUHQ228nN6uv6Wo7Bp49o5hP9CUVns600LGY7Bp+Gvo++6Kc7oejsLZ3cfK1jL9ve+6Kf7oRigLdycvO1bhq2l38rpr7opz+hGGDGk5uVc4pjHoP3RcRjCMUAM57crJxTtByD/9rQ1/6JMYRigOqTm7c3LRuvTuO6PvsnxhCKQba7ueYUM17X96WY2j8xhlAMUj2nuGm4CbtSy5zi/zE1nxhHKAY59ZOba10dYT/F3v6JYYRikFM+udli+Th06Jxia//EMEIxUPUNU1UnN1sd+sVA9k+MIxQDVQ/mqk5utjrkuj5fRDyWUAx0qic3Wx1yXZ9l0bGEYqDqk5t3DfspKucAh1zXZ1l0LKEYbLYbpma9rs+OzLGEYrDZlkmrVxZajsEvcwrzibGEYrDZTm5WzylaBpp//n2/YSyhGKx6P8V100rDbNf1eZoYTSgGqz652XLD1GzX9TGeUEzgVE5uHsvaY/CMJxQTmPHkZuWcouUYPGMJxQRmPLk523V9jOVvawLLnKJyLtByw9Rs1/UxllBMYrY5xWzX9TGWUExitpOb1df13Vj5OClCMYmZT25WWGYU5hSnw9/UJHrcMLVW9X4KTxWnQygmUn3D1LG/setQLec+GEMoJjLryc0qnihOh1BMpPrk5t1ty/d9zHUMnjGEYiIz3jBVvWv0zn6KkyAUk5nv5OZc1/UxhlBMZraTm9XX9TlJehqEYjIzrjTMdgye/oRiMtUnN2f7YqCFZdL5CcWEZju5Odt1ffT37tcPH583AN/giQKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKIhAKI/gE7SXVdY25ypwAAAABJRU5ErkJggg==",desc:"A valid URL. Alternatively, you can provide a state reference to a Matplotlib figure or a packed file.",type:L.Text},caption:{name:"Caption",init:"Image Caption",desc:"Leave blank to hide.",type:L.Text},maxWidth:{name:"Max width (px)",type:L.Number,default:"-1",category:$e.Style},maxHeight:{name:"Max height (px)",type:L.Number,default:"-1",category:$e.Style},secondaryTextColor:yn,cssClasses:De},events:{"wf-click":{desc:"Capture single clicks.",stub:Vb.trim()}},previewField:"caption"}},Bd=ke({...Bb,__name:"CoreImage",setup(e){const t=ae(null),n=z(W.core),a=z(W.evaluatedFields),r=z(W.componentId),o=de(()=>{var h;return{cursor:typeof((h=n.getComponentById(r).handlers)==null?void 0:h["wf-click"])<"u"?"pointer":"unset"}}),i=de(()=>{const u=a.maxWidth.value,p=a.maxHeight.value;return{"max-width":u!==-1?`${u}px`:void 0,"max-height":p!==-1?`${p}px`:void 0}});function c(u){const p=bs(u);t.value.dispatchEvent(p)}return(u,p)=>(N(),B("div",{ref_key:"rootEl",ref:t,class:"CoreImage",style:Ct(o.value),onClick:c},[j("img",{src:$(a).src.value,alt:$(a).caption.value,draggable:"false",style:Ct(i.value)},null,12,Rb),$(a).caption.value||$(a).caption.value===0?(N(),B("div",Fb,Ae($(a).caption.value),1)):Te("",!0)],4))}}),Cu=e=>{e.writer&&(e.writer.docs=`Use your app's static folder to serve images directly. For example, \`static/my_image.png\`.

Alternatively, pass a Matplotlib figure via state.

\`state["my_fig"] = fig\` and then setting the _Image_ source to \`@{fig}\`

You can also use packed files or bytes:

\`state["img_b"] = wf.pack_bytes(img_bytes, "image/png")\`

\`state["img_f"] = wf.pack_file(img_file, "image/png")\``)};typeof Cu=="function"&&Cu(Bd);const Hb=Ee(Bd,[["__scopeId","data-v-ed8e7850"]]),Ub={},jb=e=>(Pt("data-v-5a38f374"),e=e(),Ot(),e),Kb={class:"LoadingSymbol"},zb=jb(()=>j("div",null,null,-1)),Wb=[zb];function Gb(e,t){return N(),B("div",Kb,Wb)}const wl=Ee(Ub,[["render",Gb],["__scopeId","data-v-5a38f374"]]),Yb=e=>(Pt("data-v-a72691c4"),e=e(),Ot(),e),Qb={key:0,class:"message"},Xb={key:1,class:"empty"},Jb=Yb(()=>j("h3",null,"Blank message",-1)),qb=[Jb],Zb="A component that displays a message in various styles, including success, error, warning, and informational.",e0={writer:{name:"Message",description:Zb,category:"Content",fields:{message:{name:"Message",type:L.Text,desc:"Prefix with '+' for a success message, with '-' for error, '!' for warning, '%' for loading. No prefix for info. Leave empty to hide."},successColor:{name:"Success",default:"#A9F9E1",type:L.Color,category:$e.Style},errorColor:{name:"Error",default:"#FFCFC2",type:L.Color,category:$e.Style},warningColor:{name:"Warning",default:"#FFE999",type:L.Color,category:$e.Style},infoColor:{name:"Info",default:"#E4E9FF",type:L.Color,category:$e.Style},loadingColor:{name:"Loading",default:"#E4E9FF",type:L.Color,category:$e.Style},primaryTextColor:It,cssClasses:De},previewField:"name"}},Hd=ke({...e0,__name:"CoreMessage",setup(e){const t=z(W.evaluatedFields),n=z(W.isBeingEdited),a=de(()=>{const i=t.message.value;if(!i)return"neutral";const c=i.charAt(0);return c=="+"?"success":c=="-"?"error":c=="!"?"warning":c=="%"?"loading":"info"}),r=de(()=>{const i=t.message.value;if(!i)return;const c=i.charAt(0);return c=="+"||c=="-"||c=="!"||c=="%"?i.substring(1).trim():i}),o=de(()=>({"--messageActiveSeverityColor":{error:t.errorColor.value,success:t.successColor.value,warning:t.warningColor.value,info:t.infoColor.value,loading:t.loadingColor.value}[a.value]}));return(i,c)=>r.value||$(n)?(N(),B("div",{key:0,class:pt(["CoreMessage",a.value]),style:Ct(o.value)},[r.value?(N(),B("div",Qb,[a.value=="loading"?(N(),tt(wl,{key:0,class:"loadingSymbol"})):Te("",!0),j("span",null,Ae(r.value),1)])):(N(),B("div",Xb,qb))],6)):Te("",!0)}}),Iu=e=>{e.writer&&(e.writer.docs=`When working with operations that can succeed or fail, _Message_ can be useful. You can reserve a state element to be used for the outcome of the operation; empty messages aren't shown, so you can initialise it empty.
Then, assign a message when the operation is completed.

\`\`\`python
state["msg"] = ""

if is_ok:
  state["msg"] = "+It worked!"
else:
  state["msg"] = "-It failed"
\`\`\``)};typeof Iu=="function"&&Iu(Hd);const t0=Ee(Hd,[["__scopeId","data-v-a72691c4"]]),n0={key:0,class:"name"},a0={key:1,class:"description"},r0={class:"value"},o0={key:2,class:"note"},s0="A component that prominently displays a metric value and associated information.",i0={writer:{name:"Metric",description:s0,category:"Content",fields:{name:{name:"Name",default:"Metric",type:L.Text},metricValue:{name:"Value",default:"0",type:L.Text,desc:"The main value to be displayed. It's not limited to numbers."},description:{name:"Description",type:L.Text},note:{name:"Note",init:"+Pass",type:L.Text,desc:"Prefix with '+' for a positive message, with '-' for a negative message."},primaryTextColor:It,secondaryTextColor:yn,positiveColor:{name:"Positive",default:"#a9f9e1",type:L.Color,category:$e.Style},neutralColor:{name:"Neutral",default:"var(--separatorColor)",type:L.Color,category:$e.Style},negativeColor:{name:"Negative",default:"#ffcfc2",type:L.Color,category:$e.Style},cssClasses:De},previewField:"name"}},l0=ke({...i0,__name:"CoreMetric",setup(e){const t=z(W.evaluatedFields),n=de(()=>{const o=t.note.value;if(!o)return"neutral";const i=o.charAt(0);return i=="+"?"positive":i=="-"?"negative":"neutral"}),a=de(()=>{const o=t.note.value;if(!o)return;const i=o.charAt(0);return i=="+"||i=="-"?o.substring(1):o}),r=de(()=>({"--messageActiveSentimentColor":{positive:t.positiveColor.value,neutral:t.neutralColor.value,negative:t.negativeColor.value}[n.value]}));return(o,i)=>(N(),B("div",{class:"CoreMetric",style:Ct(r.value)},[$(t).name.value?(N(),B("div",n0,Ae($(t).name.value),1)):Te("",!0),$(t).description.value?(N(),B("div",a0,Ae($(t).description.value),1)):Te("",!0),j("h2",r0,Ae($(t).metricValue.value),1),a.value?(N(),B("div",o0,Ae(a.value),1)):Te("",!0)],4))}}),c0=Ee(l0,[["__scopeId","data-v-5aa29c57"]]),u0=e=>(Pt("data-v-d4ebc632"),e=e(),Ot(),e),f0=u0(()=>j("div",{class:"mask"},null,-1)),d0="A component that displays Plotly graphs.",p0={data:[{x:["a","b","c"],y:[22,25,29],type:"bar"}]},h0={writer:{name:"Plotly Graph",description:d0,category:"Content",fields:{spec:{name:"Graph specification",default:JSON.stringify(p0,null,2),desc:"Plotly graph specification. Pass it using state, e.g. @{fig}, or paste a JSON specification.",type:L.Object},cssClasses:De},events:{"plotly-click":{desc:"Sends a list with the clicked points."},"plotly-selected":{desc:"Sends a list with the selected points."},"plotly-deselect":{desc:"Triggered when points are deselected."}}}},Ud=ke({...h0,__name:"CorePlotlyGraph",setup(e){const t=ae(null),n=ae(null),a=z(W.evaluatedFields),r=de(()=>a.spec.value),o={paper_bgcolor:"#ffffff",plot_bgcolor:"#f5f5f9",colorway:["#6985FF","#A95EF8","#F86","#3BDCAB"],font:{family:"Poppins, sans-serif",size:12,color:"#000000"},hoverlabel:{color:"#ffffff",bgcolor:"#000000"}},i=async()=>{var T,w,y;if(!r.value||!n.value)return;const d=await tn(()=>import("./plotly.min-D0FmYUau.js").then(k=>k.p),[],import.meta.url);if(!t.value||t.value.clientHeight==0)return;const m={...r.value,layout:{...o,...(T=r.value)==null?void 0:T.layout}};d.newPlot(n.value,m),u(),(y=(w=r.value)==null?void 0:w.layout)!=null&&y.autosize&&c()};function c(){const d=t.value.parentElement;d!=null&&d.clientHeight&&(t.value.style.height="100%",n.value.style.height="100%")}function u(){n.value.on("plotly_click",h("plotly-click")),n.value.on("plotly_selected",h("plotly-selected")),n.value.on("plotly_deselect",h("plotly-deselect"))}function p(d){var m,T;return{curveNumber:d.curveNumber,pointNumber:d.pointNumber,pointNumbers:d.pointNumbers,x:d.x,y:d.y,z:d.z,label:d.label,lat:d.lat,lon:d.lon,xaxis:{anchor:(m=d.xaxis)==null?void 0:m.anchor},yaxis:{anchor:(T=d.yaxis)==null?void 0:T.anchor}}}function h(d){return m=>{var w;const T=new CustomEvent(d,{detail:{payload:(w=m==null?void 0:m.points)==null?void 0:w.map(y=>p(y))}});t.value.dispatchEvent(T)}}return Le(r,d=>{d&&i()}),Wt(async()=>{await i(),t.value&&new ResizeObserver(i).observe(t.value,{box:"border-box"})}),(d,m)=>(N(),B("div",{ref_key:"rootEl",ref:t,class:"CorePlotlyGraph"},[j("div",{ref_key:"chartTargetEl",ref:n,class:"target"},null,512),f0],512))}}),Tu=e=>{e.writer&&(e.writer.docs=`You can listen to events triggered by Plotly.js and add interactivity to your charts.
For example, implement cross-filtering.`)};typeof Tu=="function"&&Tu(Ud);const v0=Ee(Ud,[["__scopeId","data-v-d4ebc632"]]),m0=`
def click_handler(state):

	# Increment counter when the text is clicked

	state["counter"] += 1`,g0="A component to display plain text or formatted text using Markdown syntax.",_0={writer:{name:"Text",description:g0,category:"Content",fields:{text:{name:"Text",default:"(No text)",init:"Text",desc:"Add text directly, or reference state elements with @{my_text}.",type:L.Text,control:_s.Textarea},useMarkdown:{name:"Use Markdown",desc:"The Markdown output will be sanitised; unsafe elements will be removed.",default:"no",type:L.Text,options:{yes:"Yes",no:"No"}},alignment:{name:"Alignment",default:"left",type:L.Text,options:{left:"Left",center:"Center",right:"Right"},category:$e.Style},primaryTextColor:It,cssClasses:De},events:{"wf-click":{desc:"Capture single clicks.",stub:m0.trim()}},previewField:"text"}},y0=ke({..._0,__name:"CoreText",setup(e){const t=ae(null),n=z(W.evaluatedFields),a=z(W.componentId),r=z(W.core),o=de(()=>{var h;return{cursor:typeof((h=r.getComponentById(a).handlers)==null?void 0:h.click)<"u"?"pointer":"unset"}}),i=de(()=>({"text-align":n.alignment.value}));function c(u){const p=bs(u);t.value.dispatchEvent(p)}return(u,p)=>(N(),B("div",{ref_key:"rootEl",ref:t,class:"CoreText",style:Ct(o.value),onClick:c},[$(n).useMarkdown.value=="yes"?(N(),tt(Al,{key:0,"raw-text":$(n).text.value,style:Ct(i.value)},null,8,["raw-text","style"])):(N(),B("div",{key:1,class:"plainText",style:Ct(i.value)},Ae($(n).text.value),5))],4))}}),b0=Ee(y0,[["__scopeId","data-v-cf61afb6"]]),jd="A component that displays Vega-Lite/Altair charts.",A0={$schema:"https://vega.github.io/schema/vega-lite/v5.json",description:jd,data:{values:[{a:"A",b:100},{a:"B",b:200},{a:"C",b:150},{a:"D",b:300}]},mark:"bar",encoding:{x:{field:"a",type:"nominal"},y:{field:"b",type:"quantitative"}}},w0={writer:{name:"Vega Lite Chart",description:jd,category:"Content",fields:{spec:{name:"Chart specification",default:JSON.stringify(A0,null,2),desc:"Vega-Lite chart specification. Pass a Vega Altair chart using state or paste a JSON specification.",type:L.Object},cssClasses:De}}},Kd=ke({...w0,__name:"CoreVegaLiteChart",setup(e){const t=ae(null),n=ae(null),a=z(W.evaluatedFields),r=async()=>{if(!a.spec.value||!n.value)return;const{default:o}=await tn(()=>import("./vega-embed.module-Chqdmt5_.js"),[],import.meta.url);await o(n.value,a.spec.value)};return Le(()=>a.spec.value,o=>{o&&r()}),Wt(()=>{r(),new ResizeObserver(r).observe(t.value,{box:"border-box"})}),(o,i)=>(N(),B("div",{ref_key:"rootEl",ref:t,class:"CoreVegaLiteChart"},[j("div",{ref_key:"chartTargetEl",ref:n,class:"target"},null,512)],512))}}),Su=e=>{e.writer&&(e.writer.docs=`Generate a chart using Altair and pass it via state; it'll be converted to Vega-Lite specification.

\`state["my_chart"] = chart\`

Afterwards, you can reference the chart in the specification using the syntax \`@{my_chart}\`.

Alternatively, you can work with Vega-Lite directly.`)};typeof Su=="function"&&Su(Kd);const C0=Ee(Kd,[["__scopeId","data-v-d93bd6f0"]]),I0=e=>(Pt("data-v-7180acc3"),e=e(),Ot(),e),T0={class:"CoreVideoPlayer"},S0=["src","controls","autoplay","loop","muted"],E0=I0(()=>j("div",{class:"mask"},null,-1)),k0="A video player component that can play various video formats.",x0={writer:{name:"Video Player",description:k0,category:"Content",fields:{src:{name:"Source",desc:"The URL of the video file. Alternatively, you can pass a file via state.",default:"",type:L.Text},controls:{name:"Controls",desc:"Display video player controls.",default:"yes",type:L.Text,options:{yes:"Yes",no:"No"}},autoplay:{name:"Autoplay",desc:"Autoplay the video when the component is loaded.",default:"no",type:L.Text,options:{yes:"Yes",no:"No"}},loop:{name:"Loop",desc:"Loop the video when it reaches the end.",default:"no",type:L.Text,options:{yes:"Yes",no:"No"}},muted:{name:"Muted",desc:"Mute the video by default.",default:"no",type:L.Text,options:{yes:"Yes",no:"No"}},cssClasses:De}}},zd=ke({...x0,__name:"CoreVideoPlayer",setup(e){const t=z(W.evaluatedFields);return(n,a)=>(N(),B("div",T0,[j("video",{src:$(t).src.value,controls:$(t).controls.value==="yes",autoplay:$(t).autoplay.value==="yes",loop:$(t).loop.value==="yes",muted:$(t).muted.value==="yes"},null,8,S0),E0]))}}),Eu=e=>{e.writer&&(e.writer.docs=`Use your app's static folder to serve videos directly. For example, \`static/my_video.mp4\`.

Alternatively, you can pack bytes or files in state:

\`state["vid_b"] = wf.pack_bytes(vid_bytes, "video/mp4")\`

\`state["vid_f"] = wf.pack_file(vid_file, "video/mp4")\`

Afterwards, you can reference the video using the syntax \`@{vid_f}\`.`)};typeof Eu=="function"&&Eu(zd);const $0=Ee(zd,[["__scopeId","data-v-7180acc3"]]),M0={class:"CoreLink"},N0=["href","target","rel"],L0={writer:{name:"Link",description:"A component to create a hyperlink.",category:"Content",fields:{url:{name:"URL",type:L.Text,default:"https://writer.com",desc:"Specify a URL or choose a page. Keep in mind that you can only link to pages for which a key has been specified.",options:e=>Object.fromEntries(e.getComponents("root",{sortedByPosition:!0}).map(t=>t.content.key).filter(t=>!!t).map(t=>[`#${t}`,`Page with key: ${t}`]))},target:{name:"Target",type:L.Text,options:{_self:"Self",_blank:"Blank",_parent:"Parent",_top:"Top"},desc:"Specifies where to open the linked document.",default:"_self"},rel:{name:"Rel",type:L.Text,desc:"Specifies the relationship between the current document and the linked document."},text:{name:"Text",default:"",type:L.Text,desc:"The text to display in the link."},primaryTextColor:It,cssClasses:De}}},P0=ke({...L0,__name:"CoreLink",setup(e){const t=z(W.evaluatedFields),n=de(()=>t.text.value||t.url.value);return(a,r)=>(N(),B("div",M0,[j("a",{href:$(t).url.value,target:$(t).target.value,rel:$(t).rel.value},Ae(n.value),9,N0)]))}}),O0=Ee(P0,[["__scopeId","data-v-757d882c"]]),R0=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],F0=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],D0=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],V0=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],ku=(e,t,n)=>{let a=e;return typeof t=="string"||Array.isArray(t)?a=e.toLocaleString(t,n):(t===!0||n!==void 0)&&(a=e.toLocaleString(void 0,n)),a};function xu(e,t){if(!Number.isFinite(e))throw new TypeError(`Expected a finite number, got ${typeof e}: ${e}`);t={bits:!1,binary:!1,space:!0,...t};const n=t.bits?t.binary?V0:D0:t.binary?F0:R0,a=t.space?" ":"";if(t.signed&&e===0)return` 0${a}${n[0]}`;const r=e<0,o=r?"-":t.signed?"+":"";r&&(e=-e);let i;if(t.minimumFractionDigits!==void 0&&(i={minimumFractionDigits:t.minimumFractionDigits}),t.maximumFractionDigits!==void 0&&(i={maximumFractionDigits:t.maximumFractionDigits,...i}),e<1){const h=ku(e,t.locale,i);return o+h+a+n[0]}const c=Math.min(Math.floor(t.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),n.length-1);e/=(t.binary?1024:1e3)**c,i||(e=e.toPrecision(3));const u=ku(Number(e),t.locale,i),p=n[c];return o+u+a+p}const B0=ke({__name:"WdsTextareaInput",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=ms(e,"modelValue");return(n,a)=>zt((N(),B("textarea",{"onUpdate:modelValue":a[0]||(a[0]=r=>t.value=r)},null,512)),[[Va,t.value]])}}),H0=Ee(B0,[["__scopeId","data-v-4cec29bc"]]),no=e=>(Pt("data-v-d0aa71a9"),e=e(),Ot(),e),U0={class:"avatar"},j0={class:"content"},K0={class:"text"},z0={key:0,class:"actions"},W0=["onClick"],G0={key:0,class:"subheading"},Y0={class:"name"},Q0={key:1,class:"desc"},X0={key:0,class:"loadingContainer"},J0={class:"filesArea"},q0={key:1,class:"list"},Z0=["title"],eA={class:"size"},tA=no(()=>j("i",{class:"material-symbols-outlined"}," delete ",-1)),nA={class:"filesButtons"},aA=no(()=>j("i",{class:"material-symbols-outlined"},"upload",-1)),rA={key:1,class:"sizeExceededMessage"},oA=no(()=>j("i",{class:"material-symbols-outlined"},"warning",-1)),sA={class:"inputArea"},iA={class:"inputButtons"},lA=no(()=>j("svg",{width:"15",height:"12",viewBox:"0 0 15 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[j("path",{d:"M14.0712 4.50295C14.2882 4.72002 14.2882 5.07197 14.0712 5.28905L10.5337 8.8265C10.3166 9.04357 9.96468 9.04357 9.7476 8.8265C9.53052 8.60942 9.53052 8.25747 9.7476 8.0404L12.892 4.896L9.7476 1.7516C9.53052 1.53452 9.53052 1.18257 9.7476 0.965495C9.96467 0.74842 10.3166 0.74842 10.5337 0.965495L14.0712 4.50295ZM13.6781 5.45185L3.67268 5.45185L3.67268 4.34014L13.6781 4.34014L13.6781 5.45185ZM2.00511 7.11942L2.00511 8.23114L0.893394 8.23114L0.893394 7.11942L2.00511 7.11942ZM3.67268 9.89871L5.52553 9.89871L5.52553 11.0104L3.67268 11.0104L3.67268 9.89871ZM2.00511 8.23114C2.00511 9.15211 2.7517 9.89871 3.67268 9.89871L3.67268 11.0104C2.13772 11.0104 0.893394 9.76609 0.893394 8.23114L2.00511 8.23114ZM3.67268 5.45185C2.7517 5.45185 2.00511 6.19845 2.00511 7.11942L0.893394 7.11942C0.893394 5.58447 2.13772 4.34014 3.67268 4.34014L3.67268 5.45185Z",fill:"currentColor"})],-1)),cA=no(()=>j("i",{class:"material-symbols-outlined"},"attach_file",-1)),fi=200*1024*1024,uA="A chatbot component to build human-to-AI interactions.",fA=`[
  {
  "role": "assistant",
  "content": "How can I help you?"
  },
  {
  "role": "user",
  "content": "I'm building a Chatbot"
  }
]`,dA=`
def handle_message_simple(payload, state):

	# payload contains a dict in the form { "role": "user", "message": "hello"}

	state["conversation"] += [payload]
    state["conversation"] += [{
        "role": "assistant",
        "content": "Hello human" if payload == "Hello" else "I don't understand"
    }]

    # Handle streaming by appending to the last message

    import time
    for i in range(10):
        conv = state["conversation"]
        conv[-1]["content"] += f" {i}"
        state["conversation"] = conv
        time.sleep(0.5)
`.trim(),pA=`
def handle_action_simple(payload, state):

    # payload contains the "data" property of the action

    if payload == "change_title":
        state["app_background_color"] = "red"

# Make an action available when adding a message

def handle_message_with_action(payload, state):
    state["conversation"] += [payload]
    state["conversation"] += [{
        "role": "assistant",
        "content": "I don't know, but check this out.",
        "actions": [{
            "subheading": "Resource",
            "name": "Surprise",
            "desc": "Click to be surprised",
            "data": "change_title"
        }]
    }]
`.trim(),hA=`
def handle_file_upload(state, payload):

	# An array of dictionaries is provided in the payload
	# The dictionaries have the properties name, type and data
    # The data property is a file-like object

    uploaded_files = payload
    for i, uploaded_file in enumerate(uploaded_files):
        name = uploaded_file.get("name")
        file_data = uploaded_file.get("data")
        with open(f"{name}-{i}.jpeg", "wb") as file_handle:
            file_handle.write(file_data)
`.trim(),vA={writer:{name:"Chatbot",description:uA,category:"Content",fields:{conversation:{name:"Conversation",default:fA,desc:"An array with messages or a writer.ai.Conversation object.",type:L.Object},assistantInitials:{name:"Assistant initials",default:"AI",type:L.Text},userInitials:{name:"User initials",default:"YOU",type:L.Text},useMarkdown:{name:"Use Markdown",desc:"If active, the output will be sanitized; unsafe elements will be removed.",default:"no",type:L.Text,options:{yes:"Yes",no:"No"}},enableFileUpload:{name:"Enable file upload",default:"no",type:L.Text,options:{single:"Single file",multiple:"Multiple files",no:"No"}},placeholder:{name:"Placeholder",default:"What do you need?",type:L.Text},assistantRoleColor:{name:"Assistant role",type:L.Color,category:$e.Style,applyStyleVariable:!0},userRoleColor:{name:"User role",default:"#F5F5F9",type:L.Color,category:$e.Style,applyStyleVariable:!0},avatarBackgroundColor:{name:"Avatar",default:"#2C2D30",type:L.Color,category:$e.Style,applyStyleVariable:!0},avatarTextColor:{name:"Avatar text",default:"#FFFFFF",type:L.Color,category:$e.Style,applyStyleVariable:!0},accentColor:Jt,containerBackgroundColor:Dn,primaryTextColor:It,secondaryTextColor:yn,separatorColor:Ht,buttonColor:{...Qn,default:"#000000"},buttonTextColor:{...Xn,default:"#ffffff"},cssClasses:De},events:{"wf-chatbot-message":{desc:"Triggered when the user sends a message.",stub:dA},"wf-chatbot-action-click":{desc:"Handle clicks on actions.",stub:pA},"wf-file-change":{desc:"Triggered when files are uploaded",stub:hA}}}},Wd=ke({...vA,__name:"CoreChatbot",setup(e){_r(b=>({47160240:$(o).assistantRoleColor.value?$(o).assistantRoleColor.value:"linear-gradient(264deg, #f5ebff 0.71%, #eef1ff 100%)"}));const t=ae(null),n=ae(null),a=ae(null),r=ae(!1),o=z(W.evaluatedFields),i=vf([]),c=ae(!1);let u;const p=de(()=>{var b;return((b=o.conversation)==null?void 0:b.value)??[]}),h=ae(""),d=de(()=>{let b=0;return Array.from(i.value).forEach(A=>{b+=A.size}),b>=fi});function m(){r.value=!0;const b=new CustomEvent("wf-chatbot-message",{detail:{payload:{role:"user",content:h.value},callback:()=>{r.value=!1}}});t.value.dispatchEvent(b),h.value=""}function T(b){const{data:A}=b,C=new CustomEvent("wf-chatbot-action-click",{detail:{payload:A}});t.value.dispatchEvent(C)}function w(){const b=document.createElement("input");b.type="file",o.enableFileUpload.value=="multiple"&&(b.multiple=!0),b.addEventListener("change",()=>{let A;o.enableFileUpload.value=="multiple"?A=[...i.value]:A=[],Array.from(b.files).forEach(C=>{A.push(C)}),i.value=A}),b.dispatchEvent(new MouseEvent("click"))}function y(b){const A=i.value.toSpliced(b,1);i.value=A}function k(){n.value.scrollTo({top:n.value.scrollHeight,left:0})}const U=async b=>{var A=new FileReader;return A.readAsDataURL(b),new Promise((C,v)=>{A.onload=()=>C(A.result),A.onerror=()=>v(A.error)})};async function F(){if(i.value.length==0||c.value)return;c.value=!0;const A=await(async()=>{let v=0;const O=Promise.all(Array.from(i.value).map(async M=>(v+=M.size,{name:M.name,type:M.type,data:await U(M)})));if(v>fi){alert("Size limit exceeded.");return}return O})();if(!A){c.value=!1;return}const C=new CustomEvent("wf-file-change",{detail:{payload:A,callback:()=>{c.value=!1,i.value=[]}}});t.value.dispatchEvent(C)}return Wt(()=>{u=new ResizeObserver(()=>{k()}),u.observe(a.value)}),Ka(()=>{u.unobserve(a.value)}),(b,A)=>(N(),B("div",{ref_key:"rootEl",ref:t,class:"CoreChatbot"},[j("div",{ref_key:"messageAreaEl",ref:n,class:"messageArea"},[j("div",{ref_key:"messagesEl",ref:a,class:"messages"},[(N(!0),B(Re,null,Lt(p.value,(C,v)=>{var O,M;return N(),B("div",{key:v,class:pt(["message",C.role])},[j("div",U0,Ae(C.role=="assistant"?$(o).assistantInitials.value:$(o).userInitials.value),1),j("div",j0,[j("div",K0,[$(o).useMarkdown.value=="yes"?(N(),tt(Al,{key:0,"raw-text":(O=C.content)==null?void 0:O.trim()},null,8,["raw-text"])):(N(),B(Re,{key:1},[wt(Ae((M=C.content)==null?void 0:M.trim()),1)],64))]),C.actions?(N(),B("div",z0,[(N(!0),B(Re,null,Lt(C.actions,(Y,J)=>(N(),B("button",{key:J,class:"action",onClick:me=>T(Y)},[Y.subheading?(N(),B("div",G0,Ae(Y.subheading),1)):Te("",!0),j("h3",Y0,Ae(Y.name),1),Y.desc?(N(),B("div",Q0,Ae(Y.desc),1)):Te("",!0)],8,W0))),128))])):Te("",!0)])],2)}),128)),r.value?(N(),B("div",X0,[He(wl,{class:"loadingSymbol"}),wt("Loading... ")])):Te("",!0)],512)],512),i.value.length>0?(N(),B(Re,{key:0},[j("div",J0,[c.value?(N(),B(Re,{key:0},[wt(" Uploading... ")],64)):Te("",!0),c.value?Te("",!0):(N(),B("div",q0,[(N(!0),B(Re,null,Lt(i.value,(C,v)=>(N(),B("div",{key:v,class:"file"},[j("div",null,[j("div",{class:"name",title:C.name},Ae(C.name),9,Z0),j("div",eA,Ae($(xu)(C.size)),1)]),He(xn,{onClick:O=>y(v)},{default:Ye(()=>[tA]),_:2},1032,["onClick"])]))),128))]))]),j("div",nA,[!d.value&&!c.value?(N(),tt(xn,{key:0,title:"Upload",onClick:F},{default:Ye(()=>[aA]),_:1})):Te("",!0),d.value?(N(),B("div",rA,[oA,wt(" Size limit of "+Ae($(xu)(fi))+" exceeded. ",1)])):Te("",!0)])],64)):Te("",!0),j("div",sA,[He(H0,{modelValue:h.value,"onUpdate:modelValue":A[0]||(A[0]=C=>h.value=C),placeholder:$(o).placeholder.value,onKeydown:bl(yl(m,["prevent"]),["enter"])},null,8,["modelValue","placeholder","onKeydown"])]),j("div",iA,[He(xn,{class:"send action",title:"Send message",onClick:m},{default:Ye(()=>[lA]),_:1}),$(o).enableFileUpload.value!="no"?(N(),tt(xn,{key:0,class:"action",title:"Attach files",onClick:w},{default:Ye(()=>[cA]),_:1})):Te("",!0)])],512))}}),$u=e=>{e.writer&&(e.writer.docs="Connect it to an LLM by handling the `wf-chatbot-message` event, which is triggered every time the user sends a message.\n\nYou can add `actions` to messages, which are buttons that trigger the `wf-chatbot-action-click`.\n\nSee the stubs for more details.")};typeof $u=="function"&&$u(Wd);const mA=Ee(Wd,[["__scopeId","data-v-d0aa71a9"]]);var gA=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _A(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function lE(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function a(){return this instanceof a?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,r.get?r:{enumerable:!0,get:function(){return e[a]}})}),n}var Gd={exports:{}};/**
 * chroma.js - JavaScript library for color conversions
 *
 * Copyright (c) 2011-2019, Gregor Aisch
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * 1. Redistributions of source code must retain the above copyright notice, this
 * list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright notice,
 * this list of conditions and the following disclaimer in the documentation
 * and/or other materials provided with the distribution.
 *
 * 3. The name Gregor Aisch may not be used to endorse or promote products
 * derived from this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED. IN NO EVENT SHALL GREGOR AISCH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 * -------------------------------------------------------
 *
 * chroma.js includes colors from colorbrewer2.org, which are released under
 * the following license:
 *
 * Copyright (c) 2002 Cynthia Brewer, Mark Harrower,
 * and The Pennsylvania State University.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
 * either express or implied. See the License for the specific
 * language governing permissions and limitations under the License.
 *
 * ------------------------------------------------------
 *
 * Named colors are taken from X11 Color Names.
 * http://www.w3.org/TR/css3-color/#svg-color
 *
 * @preserve
 */(function(e,t){(function(n,a){e.exports=a()})(gA,function(){for(var n=function(s,l,f){return l===void 0&&(l=0),f===void 0&&(f=1),s<l?l:s>f?f:s},a=n,r=function(s){s._clipped=!1,s._unclipped=s.slice(0);for(var l=0;l<=3;l++)l<3?((s[l]<0||s[l]>255)&&(s._clipped=!0),s[l]=a(s[l],0,255)):l===3&&(s[l]=a(s[l],0,1));return s},o={},i=0,c=["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"];i<c.length;i+=1){var u=c[i];o["[object "+u+"]"]=u.toLowerCase()}var p=function(s){return o[Object.prototype.toString.call(s)]||"object"},h=p,d=function(s,l){return l===void 0&&(l=null),s.length>=3?Array.prototype.slice.call(s):h(s[0])=="object"&&l?l.split("").filter(function(f){return s[0][f]!==void 0}).map(function(f){return s[0][f]}):s[0]},m=p,T=function(s){if(s.length<2)return null;var l=s.length-1;return m(s[l])=="string"?s[l].toLowerCase():null},w=Math.PI,y={clip_rgb:r,limit:n,type:p,unpack:d,last:T,PI:w,TWOPI:w*2,PITHIRD:w/3,DEG2RAD:w/180,RAD2DEG:180/w},k={format:{},autodetect:[]},U=y.last,F=y.clip_rgb,b=y.type,A=k,C=function(){for(var l=[],f=arguments.length;f--;)l[f]=arguments[f];var _=this;if(b(l[0])==="object"&&l[0].constructor&&l[0].constructor===this.constructor)return l[0];var E=U(l),x=!1;if(!E){x=!0,A.sorted||(A.autodetect=A.autodetect.sort(function(ne,ve){return ve.p-ne.p}),A.sorted=!0);for(var S=0,R=A.autodetect;S<R.length;S+=1){var V=R[S];if(E=V.test.apply(V,l),E)break}}if(A.format[E]){var Q=A.format[E].apply(null,x?l:l.slice(0,-1));_._rgb=F(Q)}else throw new Error("unknown format: "+l);_._rgb.length===3&&_._rgb.push(1)};C.prototype.toString=function(){return b(this.hex)=="function"?this.hex():"["+this._rgb.join(",")+"]"};var v=C,O=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];return new(Function.prototype.bind.apply(O.Color,[null].concat(s)))};O.Color=v,O.version="2.4.2";var M=O,Y=y.unpack,J=Math.max,me=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];var f=Y(s,"rgb"),_=f[0],E=f[1],x=f[2];_=_/255,E=E/255,x=x/255;var S=1-J(_,J(E,x)),R=S<1?1/(1-S):0,V=(1-_-S)*R,Q=(1-E-S)*R,ne=(1-x-S)*R;return[V,Q,ne,S]},oe=me,G=y.unpack,ue=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];s=G(s,"cmyk");var f=s[0],_=s[1],E=s[2],x=s[3],S=s.length>4?s[4]:1;return x===1?[0,0,0,S]:[f>=1?0:255*(1-f)*(1-x),_>=1?0:255*(1-_)*(1-x),E>=1?0:255*(1-E)*(1-x),S]},_e=ue,te=M,q=v,Z=k,ye=y.unpack,mt=y.type,Ve=oe;q.prototype.cmyk=function(){return Ve(this._rgb)},te.cmyk=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];return new(Function.prototype.bind.apply(q,[null].concat(s,["cmyk"])))},Z.format.cmyk=_e,Z.autodetect.push({p:2,test:function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];if(s=ye(s,"cmyk"),mt(s)==="array"&&s.length===4)return"cmyk"}});var yt=y.unpack,ge=y.last,Ne=function(s){return Math.round(s*100)/100},Je=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];var f=yt(s,"hsla"),_=ge(s)||"lsa";return f[0]=Ne(f[0]||0),f[1]=Ne(f[1]*100)+"%",f[2]=Ne(f[2]*100)+"%",_==="hsla"||f.length>3&&f[3]<1?(f[3]=f.length>3?f[3]:1,_="hsla"):f.length=3,_+"("+f.join(",")+")"},Ue=Je,dt=y.unpack,ot=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];s=dt(s,"rgba");var f=s[0],_=s[1],E=s[2];f/=255,_/=255,E/=255;var x=Math.min(f,_,E),S=Math.max(f,_,E),R=(S+x)/2,V,Q;return S===x?(V=0,Q=Number.NaN):V=R<.5?(S-x)/(S+x):(S-x)/(2-S-x),f==S?Q=(_-E)/(S-x):_==S?Q=2+(E-f)/(S-x):E==S&&(Q=4+(f-_)/(S-x)),Q*=60,Q<0&&(Q+=360),s.length>3&&s[3]!==void 0?[Q,V,R,s[3]]:[Q,V,R]},Tt=ot,bt=y.unpack,Rt=y.last,pe=Ue,g=Tt,I=Math.round,D=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];var f=bt(s,"rgba"),_=Rt(s)||"rgb";return _.substr(0,3)=="hsl"?pe(g(f),_):(f[0]=I(f[0]),f[1]=I(f[1]),f[2]=I(f[2]),(_==="rgba"||f.length>3&&f[3]<1)&&(f[3]=f.length>3?f[3]:1,_="rgba"),_+"("+f.slice(0,_==="rgb"?3:4).join(",")+")")},H=D,K=y.unpack,X=Math.round,fe=function(){for(var s,l=[],f=arguments.length;f--;)l[f]=arguments[f];l=K(l,"hsl");var _=l[0],E=l[1],x=l[2],S,R,V;if(E===0)S=R=V=x*255;else{var Q=[0,0,0],ne=[0,0,0],ve=x<.5?x*(1+E):x+E-x*E,se=2*x-ve,we=_/360;Q[0]=we+1/3,Q[1]=we,Q[2]=we-1/3;for(var be=0;be<3;be++)Q[be]<0&&(Q[be]+=1),Q[be]>1&&(Q[be]-=1),6*Q[be]<1?ne[be]=se+(ve-se)*6*Q[be]:2*Q[be]<1?ne[be]=ve:3*Q[be]<2?ne[be]=se+(ve-se)*(2/3-Q[be])*6:ne[be]=se;s=[X(ne[0]*255),X(ne[1]*255),X(ne[2]*255)],S=s[0],R=s[1],V=s[2]}return l.length>3?[S,R,V,l[3]]:[S,R,V,1]},re=fe,le=re,ee=k,he=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,Me=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,Se=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,Oe=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,Be=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,qe=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,at=Math.round,ht=function(s){s=s.toLowerCase().trim();var l;if(ee.format.named)try{return ee.format.named(s)}catch{}if(l=s.match(he)){for(var f=l.slice(1,4),_=0;_<3;_++)f[_]=+f[_];return f[3]=1,f}if(l=s.match(Me)){for(var E=l.slice(1,5),x=0;x<4;x++)E[x]=+E[x];return E}if(l=s.match(Se)){for(var S=l.slice(1,4),R=0;R<3;R++)S[R]=at(S[R]*2.55);return S[3]=1,S}if(l=s.match(Oe)){for(var V=l.slice(1,5),Q=0;Q<3;Q++)V[Q]=at(V[Q]*2.55);return V[3]=+V[3],V}if(l=s.match(Be)){var ne=l.slice(1,4);ne[1]*=.01,ne[2]*=.01;var ve=le(ne);return ve[3]=1,ve}if(l=s.match(qe)){var se=l.slice(1,4);se[1]*=.01,se[2]*=.01;var we=le(se);return we[3]=+l[4],we}};ht.test=function(s){return he.test(s)||Me.test(s)||Se.test(s)||Oe.test(s)||Be.test(s)||qe.test(s)};var At=ht,qt=M,Vn=v,An=k,Wa=y.type,St=H,Zt=At;Vn.prototype.css=function(s){return St(this._rgb,s)},qt.css=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];return new(Function.prototype.bind.apply(Vn,[null].concat(s,["css"])))},An.format.css=Zt,An.autodetect.push({p:5,test:function(s){for(var l=[],f=arguments.length-1;f-- >0;)l[f]=arguments[f+1];if(!l.length&&Wa(s)==="string"&&Zt.test(s))return"css"}});var _a=v,kt=M,Jn=k,Cs=y.unpack;Jn.format.gl=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];var f=Cs(s,"rgba");return f[0]*=255,f[1]*=255,f[2]*=255,f},kt.gl=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];return new(Function.prototype.bind.apply(_a,[null].concat(s,["gl"])))},_a.prototype.gl=function(){var s=this._rgb;return[s[0]/255,s[1]/255,s[2]/255,s[3]]};var ro=y.unpack,wr=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];var f=ro(s,"rgb"),_=f[0],E=f[1],x=f[2],S=Math.min(_,E,x),R=Math.max(_,E,x),V=R-S,Q=V*100/255,ne=S/(255-V)*100,ve;return V===0?ve=Number.NaN:(_===R&&(ve=(E-x)/V),E===R&&(ve=2+(x-_)/V),x===R&&(ve=4+(_-E)/V),ve*=60,ve<0&&(ve+=360)),[ve,Q,ne]},oo=wr,so=y.unpack,Is=Math.floor,io=function(){for(var s,l,f,_,E,x,S=[],R=arguments.length;R--;)S[R]=arguments[R];S=so(S,"hcg");var V=S[0],Q=S[1],ne=S[2],ve,se,we;ne=ne*255;var be=Q*255;if(Q===0)ve=se=we=ne;else{V===360&&(V=0),V>360&&(V-=360),V<0&&(V+=360),V/=60;var je=Is(V),We=V-je,Ze=ne*(1-Q),rt=Ze+be*(1-We),Ut=Ze+be*We,Vt=Ze+be;switch(je){case 0:s=[Vt,Ut,Ze],ve=s[0],se=s[1],we=s[2];break;case 1:l=[rt,Vt,Ze],ve=l[0],se=l[1],we=l[2];break;case 2:f=[Ze,Vt,Ut],ve=f[0],se=f[1],we=f[2];break;case 3:_=[Ze,rt,Vt],ve=_[0],se=_[1],we=_[2];break;case 4:E=[Ut,Ze,Vt],ve=E[0],se=E[1],we=E[2];break;case 5:x=[Vt,Ze,rt],ve=x[0],se=x[1],we=x[2];break}}return[ve,se,we,S.length>3?S[3]:1]},lo=io,Ts=y.unpack,Bn=y.type,Cr=M,Ir=v,Tr=k,Ss=oo;Ir.prototype.hcg=function(){return Ss(this._rgb)},Cr.hcg=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];return new(Function.prototype.bind.apply(Ir,[null].concat(s,["hcg"])))},Tr.format.hcg=lo,Tr.autodetect.push({p:1,test:function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];if(s=Ts(s,"hcg"),Bn(s)==="array"&&s.length===3)return"hcg"}});var co=y.unpack,In=y.last,ya=Math.round,uo=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];var f=co(s,"rgba"),_=f[0],E=f[1],x=f[2],S=f[3],R=In(s)||"auto";S===void 0&&(S=1),R==="auto"&&(R=S<1?"rgba":"rgb"),_=ya(_),E=ya(E),x=ya(x);var V=_<<16|E<<8|x,Q="000000"+V.toString(16);Q=Q.substr(Q.length-6);var ne="0"+ya(S*255).toString(16);switch(ne=ne.substr(ne.length-2),R.toLowerCase()){case"rgba":return"#"+Q+ne;case"argb":return"#"+ne+Q;default:return"#"+Q}},Sr=uo,fo=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,Es=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,xe=function(s){if(s.match(fo)){(s.length===4||s.length===7)&&(s=s.substr(1)),s.length===3&&(s=s.split(""),s=s[0]+s[0]+s[1]+s[1]+s[2]+s[2]);var l=parseInt(s,16),f=l>>16,_=l>>8&255,E=l&255;return[f,_,E,1]}if(s.match(Es)){(s.length===5||s.length===9)&&(s=s.substr(1)),s.length===4&&(s=s.split(""),s=s[0]+s[0]+s[1]+s[1]+s[2]+s[2]+s[3]+s[3]);var x=parseInt(s,16),S=x>>24&255,R=x>>16&255,V=x>>8&255,Q=Math.round((x&255)/255*100)/100;return[S,R,V,Q]}throw new Error("unknown hex color: "+s)},P=xe,ce=M,Ce=v,ut=y.type,Mt=k,Ft=Sr;Ce.prototype.hex=function(s){return Ft(this._rgb,s)},ce.hex=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];return new(Function.prototype.bind.apply(Ce,[null].concat(s,["hex"])))},Mt.format.hex=P,Mt.autodetect.push({p:4,test:function(s){for(var l=[],f=arguments.length-1;f-- >0;)l[f]=arguments[f+1];if(!l.length&&ut(s)==="string"&&[3,4,5,6,7,8,9].indexOf(s.length)>=0)return"hex"}});var Gt=y.unpack,Pn=y.TWOPI,ba=Math.min,Yt=Math.sqrt,po=Math.acos,ho=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];var f=Gt(s,"rgb"),_=f[0],E=f[1],x=f[2];_/=255,E/=255,x/=255;var S,R=ba(_,E,x),V=(_+E+x)/3,Q=V>0?1-R/V:0;return Q===0?S=NaN:(S=(_-E+(_-x))/2,S/=Yt((_-E)*(_-E)+(_-x)*(E-x)),S=po(S),x>E&&(S=Pn-S),S/=Pn),[S*360,Q,V]},fp=ho,dp=y.unpack,ks=y.limit,Ga=y.TWOPI,xs=y.PITHIRD,Ya=Math.cos,pp=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];s=dp(s,"hsi");var f=s[0],_=s[1],E=s[2],x,S,R;return isNaN(f)&&(f=0),isNaN(_)&&(_=0),f>360&&(f-=360),f<0&&(f+=360),f/=360,f<1/3?(R=(1-_)/3,x=(1+_*Ya(Ga*f)/Ya(xs-Ga*f))/3,S=1-(R+x)):f<2/3?(f-=1/3,x=(1-_)/3,S=(1+_*Ya(Ga*f)/Ya(xs-Ga*f))/3,R=1-(x+S)):(f-=2/3,S=(1-_)/3,R=(1+_*Ya(Ga*f)/Ya(xs-Ga*f))/3,x=1-(S+R)),x=ks(E*x*3),S=ks(E*S*3),R=ks(E*R*3),[x*255,S*255,R*255,s.length>3?s[3]:1]},hp=pp,vp=y.unpack,mp=y.type,gp=M,xl=v,$l=k,_p=fp;xl.prototype.hsi=function(){return _p(this._rgb)},gp.hsi=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];return new(Function.prototype.bind.apply(xl,[null].concat(s,["hsi"])))},$l.format.hsi=hp,$l.autodetect.push({p:2,test:function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];if(s=vp(s,"hsi"),mp(s)==="array"&&s.length===3)return"hsi"}});var yp=y.unpack,bp=y.type,Ap=M,Ml=v,Nl=k,wp=Tt;Ml.prototype.hsl=function(){return wp(this._rgb)},Ap.hsl=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];return new(Function.prototype.bind.apply(Ml,[null].concat(s,["hsl"])))},Nl.format.hsl=re,Nl.autodetect.push({p:2,test:function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];if(s=yp(s,"hsl"),bp(s)==="array"&&s.length===3)return"hsl"}});var Cp=y.unpack,Ip=Math.min,Tp=Math.max,Sp=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];s=Cp(s,"rgb");var f=s[0],_=s[1],E=s[2],x=Ip(f,_,E),S=Tp(f,_,E),R=S-x,V,Q,ne;return ne=S/255,S===0?(V=Number.NaN,Q=0):(Q=R/S,f===S&&(V=(_-E)/R),_===S&&(V=2+(E-f)/R),E===S&&(V=4+(f-_)/R),V*=60,V<0&&(V+=360)),[V,Q,ne]},Ep=Sp,kp=y.unpack,xp=Math.floor,$p=function(){for(var s,l,f,_,E,x,S=[],R=arguments.length;R--;)S[R]=arguments[R];S=kp(S,"hsv");var V=S[0],Q=S[1],ne=S[2],ve,se,we;if(ne*=255,Q===0)ve=se=we=ne;else{V===360&&(V=0),V>360&&(V-=360),V<0&&(V+=360),V/=60;var be=xp(V),je=V-be,We=ne*(1-Q),Ze=ne*(1-Q*je),rt=ne*(1-Q*(1-je));switch(be){case 0:s=[ne,rt,We],ve=s[0],se=s[1],we=s[2];break;case 1:l=[Ze,ne,We],ve=l[0],se=l[1],we=l[2];break;case 2:f=[We,ne,rt],ve=f[0],se=f[1],we=f[2];break;case 3:_=[We,Ze,ne],ve=_[0],se=_[1],we=_[2];break;case 4:E=[rt,We,ne],ve=E[0],se=E[1],we=E[2];break;case 5:x=[ne,We,Ze],ve=x[0],se=x[1],we=x[2];break}}return[ve,se,we,S.length>3?S[3]:1]},Mp=$p,Np=y.unpack,Lp=y.type,Pp=M,Ll=v,Pl=k,Op=Ep;Ll.prototype.hsv=function(){return Op(this._rgb)},Pp.hsv=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];return new(Function.prototype.bind.apply(Ll,[null].concat(s,["hsv"])))},Pl.format.hsv=Mp,Pl.autodetect.push({p:2,test:function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];if(s=Np(s,"hsv"),Lp(s)==="array"&&s.length===3)return"hsv"}});var vo={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},Qa=vo,Rp=y.unpack,Ol=Math.pow,Fp=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];var f=Rp(s,"rgb"),_=f[0],E=f[1],x=f[2],S=Dp(_,E,x),R=S[0],V=S[1],Q=S[2],ne=116*V-16;return[ne<0?0:ne,500*(R-V),200*(V-Q)]},$s=function(s){return(s/=255)<=.04045?s/12.92:Ol((s+.055)/1.055,2.4)},Ms=function(s){return s>Qa.t3?Ol(s,1/3):s/Qa.t2+Qa.t0},Dp=function(s,l,f){s=$s(s),l=$s(l),f=$s(f);var _=Ms((.4124564*s+.3575761*l+.1804375*f)/Qa.Xn),E=Ms((.2126729*s+.7151522*l+.072175*f)/Qa.Yn),x=Ms((.0193339*s+.119192*l+.9503041*f)/Qa.Zn);return[_,E,x]},Rl=Fp,Xa=vo,Vp=y.unpack,Bp=Math.pow,Hp=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];s=Vp(s,"lab");var f=s[0],_=s[1],E=s[2],x,S,R,V,Q,ne;return S=(f+16)/116,x=isNaN(_)?S:S+_/500,R=isNaN(E)?S:S-E/200,S=Xa.Yn*Ls(S),x=Xa.Xn*Ls(x),R=Xa.Zn*Ls(R),V=Ns(3.2404542*x-1.5371385*S-.4985314*R),Q=Ns(-.969266*x+1.8760108*S+.041556*R),ne=Ns(.0556434*x-.2040259*S+1.0572252*R),[V,Q,ne,s.length>3?s[3]:1]},Ns=function(s){return 255*(s<=.00304?12.92*s:1.055*Bp(s,1/2.4)-.055)},Ls=function(s){return s>Xa.t1?s*s*s:Xa.t2*(s-Xa.t0)},Fl=Hp,Up=y.unpack,jp=y.type,Kp=M,Dl=v,Vl=k,zp=Rl;Dl.prototype.lab=function(){return zp(this._rgb)},Kp.lab=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];return new(Function.prototype.bind.apply(Dl,[null].concat(s,["lab"])))},Vl.format.lab=Fl,Vl.autodetect.push({p:2,test:function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];if(s=Up(s,"lab"),jp(s)==="array"&&s.length===3)return"lab"}});var Wp=y.unpack,Gp=y.RAD2DEG,Yp=Math.sqrt,Qp=Math.atan2,Xp=Math.round,Jp=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];var f=Wp(s,"lab"),_=f[0],E=f[1],x=f[2],S=Yp(E*E+x*x),R=(Qp(x,E)*Gp+360)%360;return Xp(S*1e4)===0&&(R=Number.NaN),[_,S,R]},Bl=Jp,qp=y.unpack,Zp=Rl,eh=Bl,th=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];var f=qp(s,"rgb"),_=f[0],E=f[1],x=f[2],S=Zp(_,E,x),R=S[0],V=S[1],Q=S[2];return eh(R,V,Q)},nh=th,ah=y.unpack,rh=y.DEG2RAD,oh=Math.sin,sh=Math.cos,ih=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];var f=ah(s,"lch"),_=f[0],E=f[1],x=f[2];return isNaN(x)&&(x=0),x=x*rh,[_,sh(x)*E,oh(x)*E]},Hl=ih,lh=y.unpack,ch=Hl,uh=Fl,fh=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];s=lh(s,"lch");var f=s[0],_=s[1],E=s[2],x=ch(f,_,E),S=x[0],R=x[1],V=x[2],Q=uh(S,R,V),ne=Q[0],ve=Q[1],se=Q[2];return[ne,ve,se,s.length>3?s[3]:1]},Ul=fh,dh=y.unpack,ph=Ul,hh=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];var f=dh(s,"hcl").reverse();return ph.apply(void 0,f)},vh=hh,mh=y.unpack,gh=y.type,jl=M,mo=v,Ps=k,Kl=nh;mo.prototype.lch=function(){return Kl(this._rgb)},mo.prototype.hcl=function(){return Kl(this._rgb).reverse()},jl.lch=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];return new(Function.prototype.bind.apply(mo,[null].concat(s,["lch"])))},jl.hcl=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];return new(Function.prototype.bind.apply(mo,[null].concat(s,["hcl"])))},Ps.format.lch=Ul,Ps.format.hcl=vh,["lch","hcl"].forEach(function(s){return Ps.autodetect.push({p:2,test:function(){for(var l=[],f=arguments.length;f--;)l[f]=arguments[f];if(l=mh(l,s),gh(l)==="array"&&l.length===3)return s}})});var _h={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflower:"#6495ed",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},zl=_h,yh=v,Wl=k,bh=y.type,Er=zl,Ah=P,wh=Sr;yh.prototype.name=function(){for(var s=wh(this._rgb,"rgb"),l=0,f=Object.keys(Er);l<f.length;l+=1){var _=f[l];if(Er[_]===s)return _.toLowerCase()}return s},Wl.format.named=function(s){if(s=s.toLowerCase(),Er[s])return Ah(Er[s]);throw new Error("unknown color name: "+s)},Wl.autodetect.push({p:5,test:function(s){for(var l=[],f=arguments.length-1;f-- >0;)l[f]=arguments[f+1];if(!l.length&&bh(s)==="string"&&Er[s.toLowerCase()])return"named"}});var Ch=y.unpack,Ih=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];var f=Ch(s,"rgb"),_=f[0],E=f[1],x=f[2];return(_<<16)+(E<<8)+x},Th=Ih,Sh=y.type,Eh=function(s){if(Sh(s)=="number"&&s>=0&&s<=16777215){var l=s>>16,f=s>>8&255,_=s&255;return[l,f,_,1]}throw new Error("unknown num color: "+s)},kh=Eh,xh=M,Gl=v,Yl=k,$h=y.type,Mh=Th;Gl.prototype.num=function(){return Mh(this._rgb)},xh.num=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];return new(Function.prototype.bind.apply(Gl,[null].concat(s,["num"])))},Yl.format.num=kh,Yl.autodetect.push({p:5,test:function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];if(s.length===1&&$h(s[0])==="number"&&s[0]>=0&&s[0]<=16777215)return"num"}});var Nh=M,Os=v,Ql=k,Xl=y.unpack,Jl=y.type,ql=Math.round;Os.prototype.rgb=function(s){return s===void 0&&(s=!0),s===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(ql)},Os.prototype.rgba=function(s){return s===void 0&&(s=!0),this._rgb.slice(0,4).map(function(l,f){return f<3?s===!1?l:ql(l):l})},Nh.rgb=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];return new(Function.prototype.bind.apply(Os,[null].concat(s,["rgb"])))},Ql.format.rgb=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];var f=Xl(s,"rgba");return f[3]===void 0&&(f[3]=1),f},Ql.autodetect.push({p:3,test:function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];if(s=Xl(s,"rgba"),Jl(s)==="array"&&(s.length===3||s.length===4&&Jl(s[3])=="number"&&s[3]>=0&&s[3]<=1))return"rgb"}});var go=Math.log,Lh=function(s){var l=s/100,f,_,E;return l<66?(f=255,_=l<6?0:-155.25485562709179-.44596950469579133*(_=l-2)+104.49216199393888*go(_),E=l<20?0:-254.76935184120902+.8274096064007395*(E=l-10)+115.67994401066147*go(E)):(f=351.97690566805693+.114206453784165*(f=l-55)-40.25366309332127*go(f),_=325.4494125711974+.07943456536662342*(_=l-50)-28.0852963507957*go(_),E=255),[f,_,E,1]},Zl=Lh,Ph=Zl,Oh=y.unpack,Rh=Math.round,Fh=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];for(var f=Oh(s,"rgb"),_=f[0],E=f[2],x=1e3,S=4e4,R=.4,V;S-x>R;){V=(S+x)*.5;var Q=Ph(V);Q[2]/Q[0]>=E/_?S=V:x=V}return Rh(V)},Dh=Fh,Rs=M,_o=v,Fs=k,Vh=Dh;_o.prototype.temp=_o.prototype.kelvin=_o.prototype.temperature=function(){return Vh(this._rgb)},Rs.temp=Rs.kelvin=Rs.temperature=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];return new(Function.prototype.bind.apply(_o,[null].concat(s,["temp"])))},Fs.format.temp=Fs.format.kelvin=Fs.format.temperature=Zl;var Bh=y.unpack,Ds=Math.cbrt,Hh=Math.pow,Uh=Math.sign,jh=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];var f=Bh(s,"rgb"),_=f[0],E=f[1],x=f[2],S=[Vs(_/255),Vs(E/255),Vs(x/255)],R=S[0],V=S[1],Q=S[2],ne=Ds(.4122214708*R+.5363325363*V+.0514459929*Q),ve=Ds(.2119034982*R+.6806995451*V+.1073969566*Q),se=Ds(.0883024619*R+.2817188376*V+.6299787005*Q);return[.2104542553*ne+.793617785*ve-.0040720468*se,1.9779984951*ne-2.428592205*ve+.4505937099*se,.0259040371*ne+.7827717662*ve-.808675766*se]},ec=jh;function Vs(s){var l=Math.abs(s);return l<.04045?s/12.92:(Uh(s)||1)*Hh((l+.055)/1.055,2.4)}var Kh=y.unpack,yo=Math.pow,zh=Math.sign,Wh=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];s=Kh(s,"lab");var f=s[0],_=s[1],E=s[2],x=yo(f+.3963377774*_+.2158037573*E,3),S=yo(f-.1055613458*_-.0638541728*E,3),R=yo(f-.0894841775*_-1.291485548*E,3);return[255*Bs(4.0767416621*x-3.3077115913*S+.2309699292*R),255*Bs(-1.2684380046*x+2.6097574011*S-.3413193965*R),255*Bs(-.0041960863*x-.7034186147*S+1.707614701*R),s.length>3?s[3]:1]},tc=Wh;function Bs(s){var l=Math.abs(s);return l>.0031308?(zh(s)||1)*(1.055*yo(l,1/2.4)-.055):s*12.92}var Gh=y.unpack,Yh=y.type,Qh=M,nc=v,ac=k,Xh=ec;nc.prototype.oklab=function(){return Xh(this._rgb)},Qh.oklab=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];return new(Function.prototype.bind.apply(nc,[null].concat(s,["oklab"])))},ac.format.oklab=tc,ac.autodetect.push({p:3,test:function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];if(s=Gh(s,"oklab"),Yh(s)==="array"&&s.length===3)return"oklab"}});var Jh=y.unpack,qh=ec,Zh=Bl,ev=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];var f=Jh(s,"rgb"),_=f[0],E=f[1],x=f[2],S=qh(_,E,x),R=S[0],V=S[1],Q=S[2];return Zh(R,V,Q)},tv=ev,nv=y.unpack,av=Hl,rv=tc,ov=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];s=nv(s,"lch");var f=s[0],_=s[1],E=s[2],x=av(f,_,E),S=x[0],R=x[1],V=x[2],Q=rv(S,R,V),ne=Q[0],ve=Q[1],se=Q[2];return[ne,ve,se,s.length>3?s[3]:1]},sv=ov,iv=y.unpack,lv=y.type,cv=M,rc=v,oc=k,uv=tv;rc.prototype.oklch=function(){return uv(this._rgb)},cv.oklch=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];return new(Function.prototype.bind.apply(rc,[null].concat(s,["oklch"])))},oc.format.oklch=sv,oc.autodetect.push({p:3,test:function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];if(s=iv(s,"oklch"),lv(s)==="array"&&s.length===3)return"oklch"}});var sc=v,fv=y.type;sc.prototype.alpha=function(s,l){return l===void 0&&(l=!1),s!==void 0&&fv(s)==="number"?l?(this._rgb[3]=s,this):new sc([this._rgb[0],this._rgb[1],this._rgb[2],s],"rgb"):this._rgb[3]};var dv=v;dv.prototype.clipped=function(){return this._rgb._clipped||!1};var Aa=v,pv=vo;Aa.prototype.darken=function(s){s===void 0&&(s=1);var l=this,f=l.lab();return f[0]-=pv.Kn*s,new Aa(f,"lab").alpha(l.alpha(),!0)},Aa.prototype.brighten=function(s){return s===void 0&&(s=1),this.darken(-s)},Aa.prototype.darker=Aa.prototype.darken,Aa.prototype.brighter=Aa.prototype.brighten;var hv=v;hv.prototype.get=function(s){var l=s.split("."),f=l[0],_=l[1],E=this[f]();if(_){var x=f.indexOf(_)-(f.substr(0,2)==="ok"?2:0);if(x>-1)return E[x];throw new Error("unknown channel "+_+" in mode "+f)}else return E};var Ja=v,vv=y.type,mv=Math.pow,gv=1e-7,_v=20;Ja.prototype.luminance=function(s){if(s!==void 0&&vv(s)==="number"){if(s===0)return new Ja([0,0,0,this._rgb[3]],"rgb");if(s===1)return new Ja([255,255,255,this._rgb[3]],"rgb");var l=this.luminance(),f="rgb",_=_v,E=function(S,R){var V=S.interpolate(R,.5,f),Q=V.luminance();return Math.abs(s-Q)<gv||!_--?V:Q>s?E(S,V):E(V,R)},x=(l>s?E(new Ja([0,0,0]),this):E(this,new Ja([255,255,255]))).rgb();return new Ja(x.concat([this._rgb[3]]))}return yv.apply(void 0,this._rgb.slice(0,3))};var yv=function(s,l,f){return s=Hs(s),l=Hs(l),f=Hs(f),.2126*s+.7152*l+.0722*f},Hs=function(s){return s/=255,s<=.03928?s/12.92:mv((s+.055)/1.055,2.4)},fn={},ic=v,lc=y.type,bo=fn,cc=function(s,l,f){f===void 0&&(f=.5);for(var _=[],E=arguments.length-3;E-- >0;)_[E]=arguments[E+3];var x=_[0]||"lrgb";if(!bo[x]&&!_.length&&(x=Object.keys(bo)[0]),!bo[x])throw new Error("interpolation mode "+x+" is not defined");return lc(s)!=="object"&&(s=new ic(s)),lc(l)!=="object"&&(l=new ic(l)),bo[x](s,l,f).alpha(s.alpha()+f*(l.alpha()-s.alpha()))},uc=v,bv=cc;uc.prototype.mix=uc.prototype.interpolate=function(s,l){l===void 0&&(l=.5);for(var f=[],_=arguments.length-2;_-- >0;)f[_]=arguments[_+2];return bv.apply(void 0,[this,s,l].concat(f))};var fc=v;fc.prototype.premultiply=function(s){s===void 0&&(s=!1);var l=this._rgb,f=l[3];return s?(this._rgb=[l[0]*f,l[1]*f,l[2]*f,f],this):new fc([l[0]*f,l[1]*f,l[2]*f,f],"rgb")};var Us=v,Av=vo;Us.prototype.saturate=function(s){s===void 0&&(s=1);var l=this,f=l.lch();return f[1]+=Av.Kn*s,f[1]<0&&(f[1]=0),new Us(f,"lch").alpha(l.alpha(),!0)},Us.prototype.desaturate=function(s){return s===void 0&&(s=1),this.saturate(-s)};var dc=v,pc=y.type;dc.prototype.set=function(s,l,f){f===void 0&&(f=!1);var _=s.split("."),E=_[0],x=_[1],S=this[E]();if(x){var R=E.indexOf(x)-(E.substr(0,2)==="ok"?2:0);if(R>-1){if(pc(l)=="string")switch(l.charAt(0)){case"+":S[R]+=+l;break;case"-":S[R]+=+l;break;case"*":S[R]*=+l.substr(1);break;case"/":S[R]/=+l.substr(1);break;default:S[R]=+l}else if(pc(l)==="number")S[R]=l;else throw new Error("unsupported value for Color.set");var V=new dc(S,E);return f?(this._rgb=V._rgb,this):V}throw new Error("unknown channel "+x+" in mode "+E)}else return S};var wv=v,Cv=function(s,l,f){var _=s._rgb,E=l._rgb;return new wv(_[0]+f*(E[0]-_[0]),_[1]+f*(E[1]-_[1]),_[2]+f*(E[2]-_[2]),"rgb")};fn.rgb=Cv;var Iv=v,js=Math.sqrt,qa=Math.pow,Tv=function(s,l,f){var _=s._rgb,E=_[0],x=_[1],S=_[2],R=l._rgb,V=R[0],Q=R[1],ne=R[2];return new Iv(js(qa(E,2)*(1-f)+qa(V,2)*f),js(qa(x,2)*(1-f)+qa(Q,2)*f),js(qa(S,2)*(1-f)+qa(ne,2)*f),"rgb")};fn.lrgb=Tv;var Sv=v,Ev=function(s,l,f){var _=s.lab(),E=l.lab();return new Sv(_[0]+f*(E[0]-_[0]),_[1]+f*(E[1]-_[1]),_[2]+f*(E[2]-_[2]),"lab")};fn.lab=Ev;var hc=v,Za=function(s,l,f,_){var E,x,S,R;_==="hsl"?(S=s.hsl(),R=l.hsl()):_==="hsv"?(S=s.hsv(),R=l.hsv()):_==="hcg"?(S=s.hcg(),R=l.hcg()):_==="hsi"?(S=s.hsi(),R=l.hsi()):_==="lch"||_==="hcl"?(_="hcl",S=s.hcl(),R=l.hcl()):_==="oklch"&&(S=s.oklch().reverse(),R=l.oklch().reverse());var V,Q,ne,ve,se,we;(_.substr(0,1)==="h"||_==="oklch")&&(E=S,V=E[0],ne=E[1],se=E[2],x=R,Q=x[0],ve=x[1],we=x[2]);var be,je,We,Ze;return!isNaN(V)&&!isNaN(Q)?(Q>V&&Q-V>180?Ze=Q-(V+360):Q<V&&V-Q>180?Ze=Q+360-V:Ze=Q-V,je=V+f*Ze):isNaN(V)?isNaN(Q)?je=Number.NaN:(je=Q,(se==1||se==0)&&_!="hsv"&&(be=ve)):(je=V,(we==1||we==0)&&_!="hsv"&&(be=ne)),be===void 0&&(be=ne+f*(ve-ne)),We=se+f*(we-se),_==="oklch"?new hc([We,be,je],_):new hc([je,be,We],_)},kv=Za,vc=function(s,l,f){return kv(s,l,f,"lch")};fn.lch=vc,fn.hcl=vc;var xv=v,$v=function(s,l,f){var _=s.num(),E=l.num();return new xv(_+f*(E-_),"num")};fn.num=$v;var Mv=Za,Nv=function(s,l,f){return Mv(s,l,f,"hcg")};fn.hcg=Nv;var Lv=Za,Pv=function(s,l,f){return Lv(s,l,f,"hsi")};fn.hsi=Pv;var Ov=Za,Rv=function(s,l,f){return Ov(s,l,f,"hsl")};fn.hsl=Rv;var Fv=Za,Dv=function(s,l,f){return Fv(s,l,f,"hsv")};fn.hsv=Dv;var Vv=v,Bv=function(s,l,f){var _=s.oklab(),E=l.oklab();return new Vv(_[0]+f*(E[0]-_[0]),_[1]+f*(E[1]-_[1]),_[2]+f*(E[2]-_[2]),"oklab")};fn.oklab=Bv;var Hv=Za,Uv=function(s,l,f){return Hv(s,l,f,"oklch")};fn.oklch=Uv;var Ks=v,jv=y.clip_rgb,zs=Math.pow,Ws=Math.sqrt,Gs=Math.PI,mc=Math.cos,gc=Math.sin,Kv=Math.atan2,zv=function(s,l,f){l===void 0&&(l="lrgb"),f===void 0&&(f=null);var _=s.length;f||(f=Array.from(new Array(_)).map(function(){return 1}));var E=_/f.reduce(function(je,We){return je+We});if(f.forEach(function(je,We){f[We]*=E}),s=s.map(function(je){return new Ks(je)}),l==="lrgb")return Wv(s,f);for(var x=s.shift(),S=x.get(l),R=[],V=0,Q=0,ne=0;ne<S.length;ne++)if(S[ne]=(S[ne]||0)*f[0],R.push(isNaN(S[ne])?0:f[0]),l.charAt(ne)==="h"&&!isNaN(S[ne])){var ve=S[ne]/180*Gs;V+=mc(ve)*f[0],Q+=gc(ve)*f[0]}var se=x.alpha()*f[0];s.forEach(function(je,We){var Ze=je.get(l);se+=je.alpha()*f[We+1];for(var rt=0;rt<S.length;rt++)if(!isNaN(Ze[rt]))if(R[rt]+=f[We+1],l.charAt(rt)==="h"){var Ut=Ze[rt]/180*Gs;V+=mc(Ut)*f[We+1],Q+=gc(Ut)*f[We+1]}else S[rt]+=Ze[rt]*f[We+1]});for(var we=0;we<S.length;we++)if(l.charAt(we)==="h"){for(var be=Kv(Q/R[we],V/R[we])/Gs*180;be<0;)be+=360;for(;be>=360;)be-=360;S[we]=be}else S[we]=S[we]/R[we];return se/=_,new Ks(S,l).alpha(se>.99999?1:se,!0)},Wv=function(s,l){for(var f=s.length,_=[0,0,0,0],E=0;E<s.length;E++){var x=s[E],S=l[E]/f,R=x._rgb;_[0]+=zs(R[0],2)*S,_[1]+=zs(R[1],2)*S,_[2]+=zs(R[2],2)*S,_[3]+=R[3]*S}return _[0]=Ws(_[0]),_[1]=Ws(_[1]),_[2]=Ws(_[2]),_[3]>.9999999&&(_[3]=1),new Ks(jv(_))},Tn=M,er=y.type,Gv=Math.pow,Ys=function(s){var l="rgb",f=Tn("#ccc"),_=0,E=[0,1],x=[],S=[0,0],R=!1,V=[],Q=!1,ne=0,ve=1,se=!1,we={},be=!0,je=1,We=function(ie){if(ie=ie||["#fff","#000"],ie&&er(ie)==="string"&&Tn.brewer&&Tn.brewer[ie.toLowerCase()]&&(ie=Tn.brewer[ie.toLowerCase()]),er(ie)==="array"){ie.length===1&&(ie=[ie[0],ie[0]]),ie=ie.slice(0);for(var Pe=0;Pe<ie.length;Pe++)ie[Pe]=Tn(ie[Pe]);x.length=0;for(var ze=0;ze<ie.length;ze++)x.push(ze/(ie.length-1))}return on(),V=ie},Ze=function(ie){if(R!=null){for(var Pe=R.length-1,ze=0;ze<Pe&&ie>=R[ze];)ze++;return ze-1}return 0},rt=function(ie){return ie},Ut=function(ie){return ie},Vt=function(ie,Pe){var ze,Ke;if(Pe==null&&(Pe=!1),isNaN(ie)||ie===null)return f;if(Pe)Ke=ie;else if(R&&R.length>2){var jt=Ze(ie);Ke=jt/(R.length-2)}else ve!==ne?Ke=(ie-ne)/(ve-ne):Ke=1;Ke=Ut(Ke),Pe||(Ke=rt(Ke)),je!==1&&(Ke=Gv(Ke,je)),Ke=S[0]+Ke*(1-S[0]-S[1]),Ke=Math.min(1,Math.max(0,Ke));var vt=Math.floor(Ke*1e4);if(be&&we[vt])ze=we[vt];else{if(er(V)==="array")for(var et=0;et<x.length;et++){var st=x[et];if(Ke<=st){ze=V[et];break}if(Ke>=st&&et===x.length-1){ze=V[et];break}if(Ke>st&&Ke<x[et+1]){Ke=(Ke-st)/(x[et+1]-st),ze=Tn.interpolate(V[et],V[et+1],Ke,l);break}}else er(V)==="function"&&(ze=V(Ke));be&&(we[vt]=ze)}return ze},on=function(){return we={}};We(s);var Qe=function(ie){var Pe=Tn(Vt(ie));return Q&&Pe[Q]?Pe[Q]():Pe};return Qe.classes=function(ie){if(ie!=null){if(er(ie)==="array")R=ie,E=[ie[0],ie[ie.length-1]];else{var Pe=Tn.analyze(E);ie===0?R=[Pe.min,Pe.max]:R=Tn.limits(Pe,"e",ie)}return Qe}return R},Qe.domain=function(ie){if(!arguments.length)return E;ne=ie[0],ve=ie[ie.length-1],x=[];var Pe=V.length;if(ie.length===Pe&&ne!==ve)for(var ze=0,Ke=Array.from(ie);ze<Ke.length;ze+=1){var jt=Ke[ze];x.push((jt-ne)/(ve-ne))}else{for(var vt=0;vt<Pe;vt++)x.push(vt/(Pe-1));if(ie.length>2){var et=ie.map(function(it,lt){return lt/(ie.length-1)}),st=ie.map(function(it){return(it-ne)/(ve-ne)});st.every(function(it,lt){return et[lt]===it})||(Ut=function(it){if(it<=0||it>=1)return it;for(var lt=0;it>=st[lt+1];)lt++;var En=(it-st[lt])/(st[lt+1]-st[lt]),ea=et[lt]+En*(et[lt+1]-et[lt]);return ea})}}return E=[ne,ve],Qe},Qe.mode=function(ie){return arguments.length?(l=ie,on(),Qe):l},Qe.range=function(ie,Pe){return We(ie),Qe},Qe.out=function(ie){return Q=ie,Qe},Qe.spread=function(ie){return arguments.length?(_=ie,Qe):_},Qe.correctLightness=function(ie){return ie==null&&(ie=!0),se=ie,on(),se?rt=function(Pe){for(var ze=Vt(0,!0).lab()[0],Ke=Vt(1,!0).lab()[0],jt=ze>Ke,vt=Vt(Pe,!0).lab()[0],et=ze+(Ke-ze)*Pe,st=vt-et,it=0,lt=1,En=20;Math.abs(st)>.01&&En-- >0;)(function(){return jt&&(st*=-1),st<0?(it=Pe,Pe+=(lt-Pe)*.5):(lt=Pe,Pe+=(it-Pe)*.5),vt=Vt(Pe,!0).lab()[0],st=vt-et})();return Pe}:rt=function(Pe){return Pe},Qe},Qe.padding=function(ie){return ie!=null?(er(ie)==="number"&&(ie=[ie,ie]),S=ie,Qe):S},Qe.colors=function(ie,Pe){arguments.length<2&&(Pe="hex");var ze=[];if(arguments.length===0)ze=V.slice(0);else if(ie===1)ze=[Qe(.5)];else if(ie>1){var Ke=E[0],jt=E[1]-Ke;ze=Yv(0,ie,!1).map(function(lt){return Qe(Ke+lt/(ie-1)*jt)})}else{s=[];var vt=[];if(R&&R.length>2)for(var et=1,st=R.length,it=1<=st;it?et<st:et>st;it?et++:et--)vt.push((R[et-1]+R[et])*.5);else vt=E;ze=vt.map(function(lt){return Qe(lt)})}return Tn[Pe]&&(ze=ze.map(function(lt){return lt[Pe]()})),ze},Qe.cache=function(ie){return ie!=null?(be=ie,Qe):be},Qe.gamma=function(ie){return ie!=null?(je=ie,Qe):je},Qe.nodata=function(ie){return ie!=null?(f=Tn(ie),Qe):f},Qe};function Yv(s,l,f){for(var _=[],E=s<l,x=f?E?l+1:l-1:l,S=s;E?S<x:S>x;E?S++:S--)_.push(S);return _}var kr=v,Qv=Ys,Xv=function(s){for(var l=[1,1],f=1;f<s;f++){for(var _=[1],E=1;E<=l.length;E++)_[E]=(l[E]||0)+l[E-1];l=_}return l},Jv=function(s){var l,f,_,E,x,S,R;if(s=s.map(function(se){return new kr(se)}),s.length===2)l=s.map(function(se){return se.lab()}),x=l[0],S=l[1],E=function(se){var we=[0,1,2].map(function(be){return x[be]+se*(S[be]-x[be])});return new kr(we,"lab")};else if(s.length===3)f=s.map(function(se){return se.lab()}),x=f[0],S=f[1],R=f[2],E=function(se){var we=[0,1,2].map(function(be){return(1-se)*(1-se)*x[be]+2*(1-se)*se*S[be]+se*se*R[be]});return new kr(we,"lab")};else if(s.length===4){var V;_=s.map(function(se){return se.lab()}),x=_[0],S=_[1],R=_[2],V=_[3],E=function(se){var we=[0,1,2].map(function(be){return(1-se)*(1-se)*(1-se)*x[be]+3*(1-se)*(1-se)*se*S[be]+3*(1-se)*se*se*R[be]+se*se*se*V[be]});return new kr(we,"lab")}}else if(s.length>=5){var Q,ne,ve;Q=s.map(function(se){return se.lab()}),ve=s.length-1,ne=Xv(ve),E=function(se){var we=1-se,be=[0,1,2].map(function(je){return Q.reduce(function(We,Ze,rt){return We+ne[rt]*Math.pow(we,ve-rt)*Math.pow(se,rt)*Ze[je]},0)});return new kr(be,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return E},qv=function(s){var l=Jv(s);return l.scale=function(){return Qv(l)},l},Qs=M,Sn=function(s,l,f){if(!Sn[f])throw new Error("unknown blend mode "+f);return Sn[f](s,l)},qn=function(s){return function(l,f){var _=Qs(f).rgb(),E=Qs(l).rgb();return Qs.rgb(s(_,E))}},Zn=function(s){return function(l,f){var _=[];return _[0]=s(l[0],f[0]),_[1]=s(l[1],f[1]),_[2]=s(l[2],f[2]),_}},Zv=function(s){return s},em=function(s,l){return s*l/255},tm=function(s,l){return s>l?l:s},nm=function(s,l){return s>l?s:l},am=function(s,l){return 255*(1-(1-s/255)*(1-l/255))},rm=function(s,l){return l<128?2*s*l/255:255*(1-2*(1-s/255)*(1-l/255))},om=function(s,l){return 255*(1-(1-l/255)/(s/255))},sm=function(s,l){return s===255?255:(s=255*(l/255)/(1-s/255),s>255?255:s)};Sn.normal=qn(Zn(Zv)),Sn.multiply=qn(Zn(em)),Sn.screen=qn(Zn(am)),Sn.overlay=qn(Zn(rm)),Sn.darken=qn(Zn(tm)),Sn.lighten=qn(Zn(nm)),Sn.dodge=qn(Zn(sm)),Sn.burn=qn(Zn(om));for(var im=Sn,Xs=y.type,lm=y.clip_rgb,cm=y.TWOPI,um=Math.pow,fm=Math.sin,dm=Math.cos,_c=M,pm=function(s,l,f,_,E){s===void 0&&(s=300),l===void 0&&(l=-1.5),f===void 0&&(f=1),_===void 0&&(_=1),E===void 0&&(E=[0,1]);var x=0,S;Xs(E)==="array"?S=E[1]-E[0]:(S=0,E=[E,E]);var R=function(V){var Q=cm*((s+120)/360+l*V),ne=um(E[0]+S*V,_),ve=x!==0?f[0]+V*x:f,se=ve*ne*(1-ne)/2,we=dm(Q),be=fm(Q),je=ne+se*(-.14861*we+1.78277*be),We=ne+se*(-.29227*we-.90649*be),Ze=ne+se*(1.97294*we);return _c(lm([je*255,We*255,Ze*255,1]))};return R.start=function(V){return V==null?s:(s=V,R)},R.rotations=function(V){return V==null?l:(l=V,R)},R.gamma=function(V){return V==null?_:(_=V,R)},R.hue=function(V){return V==null?f:(f=V,Xs(f)==="array"?(x=f[1]-f[0],x===0&&(f=f[1])):x=0,R)},R.lightness=function(V){return V==null?E:(Xs(V)==="array"?(E=V,S=V[1]-V[0]):(E=[V,V],S=0),R)},R.scale=function(){return _c.scale(R)},R.hue(f),R},hm=v,vm="0123456789abcdef",mm=Math.floor,gm=Math.random,_m=function(){for(var s="#",l=0;l<6;l++)s+=vm.charAt(mm(gm()*16));return new hm(s,"hex")},Js=p,yc=Math.log,ym=Math.pow,bm=Math.floor,Am=Math.abs,bc=function(s,l){l===void 0&&(l=null);var f={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return Js(s)==="object"&&(s=Object.values(s)),s.forEach(function(_){l&&Js(_)==="object"&&(_=_[l]),_!=null&&!isNaN(_)&&(f.values.push(_),f.sum+=_,_<f.min&&(f.min=_),_>f.max&&(f.max=_),f.count+=1)}),f.domain=[f.min,f.max],f.limits=function(_,E){return Ac(f,_,E)},f},Ac=function(s,l,f){l===void 0&&(l="equal"),f===void 0&&(f=7),Js(s)=="array"&&(s=bc(s));var _=s.min,E=s.max,x=s.values.sort(function(Zs,ei){return Zs-ei});if(f===1)return[_,E];var S=[];if(l.substr(0,1)==="c"&&(S.push(_),S.push(E)),l.substr(0,1)==="e"){S.push(_);for(var R=1;R<f;R++)S.push(_+R/f*(E-_));S.push(E)}else if(l.substr(0,1)==="l"){if(_<=0)throw new Error("Logarithmic scales are only possible for values > 0");var V=Math.LOG10E*yc(_),Q=Math.LOG10E*yc(E);S.push(_);for(var ne=1;ne<f;ne++)S.push(ym(10,V+ne/f*(Q-V)));S.push(E)}else if(l.substr(0,1)==="q"){S.push(_);for(var ve=1;ve<f;ve++){var se=(x.length-1)*ve/f,we=bm(se);if(we===se)S.push(x[we]);else{var be=se-we;S.push(x[we]*(1-be)+x[we+1]*be)}}S.push(E)}else if(l.substr(0,1)==="k"){var je,We=x.length,Ze=new Array(We),rt=new Array(f),Ut=!0,Vt=0,on=null;on=[],on.push(_);for(var Qe=1;Qe<f;Qe++)on.push(_+Qe/f*(E-_));for(on.push(E);Ut;){for(var ie=0;ie<f;ie++)rt[ie]=0;for(var Pe=0;Pe<We;Pe++)for(var ze=x[Pe],Ke=Number.MAX_VALUE,jt=void 0,vt=0;vt<f;vt++){var et=Am(on[vt]-ze);et<Ke&&(Ke=et,jt=vt),rt[jt]++,Ze[Pe]=jt}for(var st=new Array(f),it=0;it<f;it++)st[it]=null;for(var lt=0;lt<We;lt++)je=Ze[lt],st[je]===null?st[je]=x[lt]:st[je]+=x[lt];for(var En=0;En<f;En++)st[En]*=1/rt[En];Ut=!1;for(var ea=0;ea<f;ea++)if(st[ea]!==on[ea]){Ut=!0;break}on=st,Vt++,Vt>200&&(Ut=!1)}for(var ta={},tr=0;tr<f;tr++)ta[tr]=[];for(var nr=0;nr<We;nr++)je=Ze[nr],ta[je].push(x[nr]);for(var Un=[],wa=0;wa<f;wa++)Un.push(ta[wa][0]),Un.push(ta[wa][ta[wa].length-1]);Un=Un.sort(function(Zs,ei){return Zs-ei}),S.push(Un[0]);for(var xr=1;xr<Un.length;xr+=2){var Ca=Un[xr];!isNaN(Ca)&&S.indexOf(Ca)===-1&&S.push(Ca)}}return S},wc={analyze:bc,limits:Ac},Cc=v,wm=function(s,l){s=new Cc(s),l=new Cc(l);var f=s.luminance(),_=l.luminance();return f>_?(f+.05)/(_+.05):(_+.05)/(f+.05)},Ic=v,Hn=Math.sqrt,xt=Math.pow,Cm=Math.min,Im=Math.max,Tc=Math.atan2,Sc=Math.abs,Ao=Math.cos,Ec=Math.sin,Tm=Math.exp,kc=Math.PI,Sm=function(s,l,f,_,E){f===void 0&&(f=1),_===void 0&&(_=1),E===void 0&&(E=1);var x=function(Ca){return 360*Ca/(2*kc)},S=function(Ca){return 2*kc*Ca/360};s=new Ic(s),l=new Ic(l);var R=Array.from(s.lab()),V=R[0],Q=R[1],ne=R[2],ve=Array.from(l.lab()),se=ve[0],we=ve[1],be=ve[2],je=(V+se)/2,We=Hn(xt(Q,2)+xt(ne,2)),Ze=Hn(xt(we,2)+xt(be,2)),rt=(We+Ze)/2,Ut=.5*(1-Hn(xt(rt,7)/(xt(rt,7)+xt(25,7)))),Vt=Q*(1+Ut),on=we*(1+Ut),Qe=Hn(xt(Vt,2)+xt(ne,2)),ie=Hn(xt(on,2)+xt(be,2)),Pe=(Qe+ie)/2,ze=x(Tc(ne,Vt)),Ke=x(Tc(be,on)),jt=ze>=0?ze:ze+360,vt=Ke>=0?Ke:Ke+360,et=Sc(jt-vt)>180?(jt+vt+360)/2:(jt+vt)/2,st=1-.17*Ao(S(et-30))+.24*Ao(S(2*et))+.32*Ao(S(3*et+6))-.2*Ao(S(4*et-63)),it=vt-jt;it=Sc(it)<=180?it:vt<=jt?it+360:it-360,it=2*Hn(Qe*ie)*Ec(S(it)/2);var lt=se-V,En=ie-Qe,ea=1+.015*xt(je-50,2)/Hn(20+xt(je-50,2)),ta=1+.045*Pe,tr=1+.015*Pe*st,nr=30*Tm(-xt((et-275)/25,2)),Un=2*Hn(xt(Pe,7)/(xt(Pe,7)+xt(25,7))),wa=-Un*Ec(2*S(nr)),xr=Hn(xt(lt/(f*ea),2)+xt(En/(_*ta),2)+xt(it/(E*tr),2)+wa*(En/(_*ta))*(it/(E*tr)));return Im(0,Cm(100,xr))},xc=v,Em=function(s,l,f){f===void 0&&(f="lab"),s=new xc(s),l=new xc(l);var _=s.get(f),E=l.get(f),x=0;for(var S in _){var R=(_[S]||0)-(E[S]||0);x+=R*R}return Math.sqrt(x)},km=v,xm=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];try{return new(Function.prototype.bind.apply(km,[null].concat(s))),!0}catch{return!1}},$c=M,Mc=Ys,$m={cool:function(){return Mc([$c.hsl(180,1,.9),$c.hsl(250,.7,.4)])},hot:function(){return Mc(["#000","#f00","#ff0","#fff"]).mode("rgb")}},wo={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},qs=0,Nc=Object.keys(wo);qs<Nc.length;qs+=1){var Lc=Nc[qs];wo[Lc.toLowerCase()]=wo[Lc]}var Mm=wo,Dt=M;Dt.average=zv,Dt.bezier=qv,Dt.blend=im,Dt.cubehelix=pm,Dt.mix=Dt.interpolate=cc,Dt.random=_m,Dt.scale=Ys,Dt.analyze=wc.analyze,Dt.contrast=wm,Dt.deltaE=Sm,Dt.distance=Em,Dt.limits=wc.limits,Dt.valid=xm,Dt.scales=$m,Dt.colors=zl,Dt.brewer=Mm;var Nm=Dt;return Nm})})(Gd);var yA=Gd.exports;const bA=_A(yA),AA=e=>(Pt("data-v-11b01a96"),e=e(),Ot(),e),wA=["onClick"],CA={key:1,class:"tag empty"},IA=AA(()=>j("span",null,"Empty Tags",-1)),TA=[IA],SA=`
def handle_tag_click(state, payload):
	state["selected_tag_id"] = payload`,EA="A component to display coloured tag pills.",kA={writer:{name:"Tags",description:EA,category:"Content",fields:{tags:{name:"Tags",desc:"Key-value object with tags. Must be a JSON string or a state reference to a dictionary.",type:L.KeyValue,default:"{}"},referenceColor:{name:"Reference",desc:"The colour to be used as reference for chroma and luminance, and as the starting point for hue rotation.",type:L.Color,default:"#5551FF",category:$e.Style},seed:{name:"Seed value",desc:"Choose a different value to reshuffle colours.",type:L.Number,default:"1",category:$e.Style},rotateHue:{name:"Rotate hue",desc:"If active, rotates the hue depending on the content of the string. If turned off, the reference colour is always used.",type:L.Text,options:{yes:"yes",no:"no"},default:"yes",category:$e.Style},primaryTextColor:It,cssClasses:De},events:{"wf-tag-click":{desc:"Triggered when a tag is clicked.",stub:SA.trim()}},previewField:"text"}},xA=ke({...kA,__name:"CoreTags",setup(e){_r(d=>({fc7ef3c0:c.value?"pointer":"auto"}));const t=[{h:-78,s:-34,l:16},{h:-61,s:-37,l:16},{h:-2,s:0,l:24},{h:-12,s:0,l:29},{h:28,s:-20,l:24},{h:-61,s:-95,l:25},{h:-173,s:0,l:16},{h:-228,s:0,l:22},{h:69,s:0,l:25},{h:70,s:0,l:29}],n=ae(null),a=z(W.evaluatedFields),r=z(W.componentId),o=z(W.core),i=z(W.isBeingEdited),c=de(()=>{var m;return typeof((m=o.getComponentById(r).handlers)==null?void 0:m["wf-tag-click"])<"u"});function u(d){if(a.rotateHue.value=="no")return a.referenceColor.value;const m=bA(a.referenceColor.value),T=t[p(d)];return m.set("hsl.h",`${Math.sign(T.h)==-1?"-":"+"}${Math.abs(T.h)}`).set("hsl.s",`${Math.sign(T.s)==-1?"-":"+"}${Math.abs(T.s/100)}`).set("hsl.l",`${Math.sign(T.l)==-1?"-":"+"}${Math.abs(T.l/100)}`).css()}function p(d){let m=a.seed.value*52673&4294967295;for(let w=0;w<d.length;w++)m=(w+1)*d.charCodeAt(w)^m&4294967295;return Math.abs(m)%t.length}function h(d){const m=new CustomEvent("wf-tag-click",{detail:{payload:d}});n.value.dispatchEvent(m)}return(d,m)=>$(i)||Object.entries($(a).tags.value??[]).length>0?(N(),B("div",{key:0,ref_key:"rootEl",ref:n,class:"CoreTags"},[Object.entries($(a).tags.value??[]).length>0?(N(!0),B(Re,{key:0},Lt($(a).tags.value,(T,w)=>(N(),B("div",{key:w,class:"tag",style:Ct({background:u(w)}),onClick:()=>h(w)},[j("span",null,Ae(T),1)],12,wA))),128)):(N(),B("div",CA,TA))],512)):Te("",!0)}}),$A=Ee(xA,[["__scopeId","data-v-11b01a96"]]),MA={key:0,class:"material-symbols-outlined"},NA={class:"info"},LA={key:1,class:"caption"},PA={class:"container","data-writer-container":""},OA=`
def handle_avatar_click():
	print("The avatar was clicked")`,RA="A component to display user avatars.",FA={writer:{name:"Avatar",description:RA,category:"Content",allowedChildrenTypes:["*"],fields:{name:{name:"Name",type:L.Text},imageSrc:{name:"Image source",desc:"A valid URL. Alternatively, you can provide a state reference to a packed file.",type:L.Text},caption:{name:"Caption",desc:"Add an optional caption under the name, such as the person's job title.",type:L.Text},size:{name:"Size",type:L.Text,options:{small:"Small",medium:"Medium",large:"Large"},default:"medium",category:$e.Style},orientation:{name:"Orientation",type:L.Text,options:{horizontal:"Horizontal",vertical:"Vertical"},default:"horizontal",category:$e.Style},primaryTextColor:It,secondaryTextColor:yn,separatorColor:Ht,cssClasses:De},events:{"wf-click":{desc:"Triggered when the avatar is clicked.",stub:OA.trim()}},previewField:"text"}},DA=ke({...FA,__name:"CoreAvatar",setup(e){_r(c=>({c63322da:$(n).imageSrc.value?`url("${$(n).imageSrc.value}")`:"none",f0da2d3a:o.value?"pointer":"auto"}));const t=ae(null),n=z(W.evaluatedFields),a=z(W.componentId),r=z(W.core),o=de(()=>{var u;return typeof((u=r.getComponentById(a).handlers)==null?void 0:u["wf-click"])<"u"});function i(c){const u=bs(c);t.value.dispatchEvent(u)}return(c,u)=>(N(),B("div",{ref_key:"rootEl",ref:t,class:pt(["CoreAvatar",[$(n).size.value,$(n).orientation.value]])},[j("div",{class:"image",onClick:i},[$(n).imageSrc.value?Te("",!0):(N(),B("i",MA," account_circle "))]),j("div",NA,[$(n).name.value?(N(),B("div",{key:0,class:"name",onClick:i},Ae($(n).name.value),1)):Te("",!0),$(n).caption.value?(N(),B("div",LA,Ae($(n).caption.value),1)):Te("",!0),j("div",PA,[Et(c.$slots,"default",{},void 0,!0)])])],2))}}),VA=Ee(DA,[["__scopeId","data-v-2e4a1890"]]);function As(e){const t=/[\\]?@{([^}]*)}/g;function n(p,h){var w;let d=[],m="",T=0;for(let y=0;y<p.length;y++){const k=p.charAt(y);k=="."?T==0?(d.push(m),m=""):m+=k:k=="["?(T==0?(d.push(m),m=""):m+=k,T++):k=="]"?(T--,T==0?m=(w=a(m,h))==null?void 0:w.toString():m+=k):m+=k}return m&&d.push(m),d}function a(p,h){let m=h?r(h):void 0,T=e.getUserState();const w=n(p,h);for(let y=0;y<w.length;y++)m=m==null?void 0:m[w[y]],T=T==null?void 0:T[w[y]];return m??T}function r(p){var d,m;const h={};for(let T=0;T<p.length-1;T++){const w=p[T],{componentId:y}=w,{type:k}=e.getComponentById(y);if(k!=="repeater"||T+1>=p.length)continue;const U=p.slice(0,T+1),F=p.slice(0,T+2),{instanceNumber:b}=F.at(-1),A=c(U,"repeaterObject");if(!A)continue;const C=Object.entries(A),v=c(U,"keyVariable"),O=c(U,"valueVariable");h[v]=(d=C[b])==null?void 0:d[0],h[O]=(m=C[b])==null?void 0:m[1]}return h}function o(p,h){return p==null?"":p.replace(t,(m,T)=>{if(m.charAt(0)=="\\")return m.substring(1);const w=T.trim();if(!w)return"";const y=a(w,h);return typeof y>"u"?"":typeof y=="object"?JSON.stringify(y):y.toString()})}function i(p){const{componentId:h}=p.at(-1),d=e.getComponentById(h);if(!d)return;const m={},{fields:T}=e.getComponentDefinition(d.type);if(T)return Object.keys(T).forEach(w=>{m[w]=de(()=>c(p,w))}),m}function c(p,h){var b;const{componentId:d}=p.at(-1),m=e.getComponentById(d);if(!m)return;const{fields:T}=e.getComponentDefinition(m.type),w=(b=m.content)==null?void 0:b[h],y=T[h].default,k=o(w,p),U=T[h].type,F=typeof k>"u"||k===null||k==="";if(U==L.Object||U==L.KeyValue){if(!k)return JSON.parse(y??null);if(typeof k!="string")return k;let A;try{A=JSON.parse(k)}catch{return JSON.parse(y)??null}return A}else if(U==L.Number){const A=y===null?null:parseFloat(y);if(F)return A??null;const C=parseFloat(k);return typeof C===void 0||Number.isNaN(C)?A??null:C}else return U==L.IdKey?w:F?y??"":k}function u(p,h){const d=e.getComponentById(p);return d?typeof d.visible>"u"||d.visible===!0?!0:d.visible===!1?!1:!!a(d.visible,h):void 0}return{getEvaluatedFields:i,isComponentVisible:u,evaluateExpression:a}}function an(e,t,n){const a=ae(),r=ae(!1),o=ae(null),i=t.at(-1).componentId,c=de(()=>e.getComponentById(i)),{evaluateExpression:u}=As(e);function p(){var m;const d=e.getComponentById(i);if((m=d==null?void 0:d.binding)!=null&&m.stateRef)return u(d.binding.stateRef,t)}function h(d,m,T){var F,b;a.value=d;const w=(F=c.value.handlers)==null?void 0:F[m],y=((b=c.value.binding)==null?void 0:b.eventType)==m;if(!w&&!y)return;if(r.value){o.value={eventValue:d,emitEventType:m};return}r.value=!0;const k=()=>{r.value=!1,o.value&&(h(o.value.eventValue,o.value.emitEventType),o.value=null),T==null||T()},U=new CustomEvent(m,{detail:{payload:d,callback:k}});n.value instanceof HTMLElement?n.value.dispatchEvent(U):n.value.$el.dispatchEvent(U)}return Le(()=>p(),d=>{r.value||(a.value=d)},{immediate:!0}),Le(a,d=>{typeof d>"u"&&(a.value="")},{immediate:!0}),{formValue:a,handleInput:h}}const BA={key:0},HA=ke({__name:"BaseInputWrapper",props:{label:{},isHorizontal:{type:Boolean}},setup(e){const t=e;return(n,a)=>(N(),B("div",{ref:"rootEl",class:pt(["BaseInputWrapper",{horizontal:n.isHorizontal}])},[t.label?(N(),B("label",BA,Ae(t.label),1)):Te("",!0),Et(n.$slots,"default",{},void 0,!0)],2))}}),bn=Ee(HA,[["__scopeId","data-v-47a9ce23"]]),UA=["checked","value"],jA=["for"],KA={a:"Option A",b:"Option B"},zA="A user input component that allows users to choose multiple values from a list of options using checkboxes.",WA=`
def onchange_handler(state, payload):

	# Set the state variable "selected" to the selected options.
	# The payload will be a list, as multiple options are allowed.

	state["selected"] = payload`,GA={writer:{name:"Checkbox Input",description:zA,category:"Input",fields:{label:{name:"Label",init:"Input Label",type:L.Text},options:{name:"Options",desc:"Key-value object with options. Must be a JSON string or a state reference to a dictionary.",type:L.KeyValue,default:JSON.stringify(KA,null,2)},orientation:{name:"Orientation",type:L.Text,options:{vertical:"Vertical",horizontal:"Horizontal"},default:"vertical",category:$e.Style,desc:"Specify how to lay out the options."},primaryTextColor:It,accentColor:Jt,cssClasses:De},events:{"wf-options-change":{desc:"Sent when the selected options change.",stub:WA.trim(),bindable:!0}}}},YA=ke({...GA,__name:"CoreCheckboxInput",setup(e){const t=z(W.evaluatedFields),n=ae(null),a=z(W.core),r=z(W.instancePath),o=z(W.flattenedInstancePath),{formValue:i,handleInput:c}=an(a,r,n);function u(){return n.value?Array.from(n.value.$el.querySelectorAll('input[type="checkbox"]')).map(d=>d.checked?d.value:void 0).filter(d=>typeof d<"u"):void 0}return(p,h)=>(N(),tt(bn,{ref_key:"rootInstance",ref:n,label:$(t).label.value,class:"CoreCheckboxInput"},{default:Ye(()=>[j("div",{class:pt(["options",{horizontal:$(t).orientation.value=="horizontal"}])},[(N(!0),B(Re,null,Lt($(t).options.value,(d,m)=>(N(),B("div",{key:m,class:"option"},[j("input",{type:"checkbox",checked:Array.isArray($(i))?$(i).includes(m):!1,value:m,onInput:h[0]||(h[0]=T=>$(c)(u(),"wf-options-change"))},null,40,UA),j("label",{for:`${$(o)}-option-${m}`},Ae(d),9,jA)]))),128))],2)]),_:1},8,["label"]))}}),QA=Ee(YA,[["__scopeId","data-v-8d9ab352"]]),XA=["value"],JA="A user input component that allows users to select a date using a date picker interface.",qA=`
def onchange_handler(state, payload):

	# Set the state variable "new_date" to the new value, provided as a YYYY-MM-DD string.

	state["new_date"] = payload`,ZA={writer:{name:"Date Input",description:JA,category:"Input",fields:{label:{name:"Label",init:"Input Label",type:L.Text},cssClasses:De},events:{"wf-date-change":{desc:"Capture changes to this control.",stub:qA,bindable:!0}}}},e1=ke({...ZA,__name:"CoreDateInput",setup(e){const t=z(W.evaluatedFields),n=ae(null),a=z(W.core),r=z(W.instancePath),{formValue:o,handleInput:i}=an(a,r,n);return(c,u)=>(N(),tt(bn,{ref_key:"rootInstance",ref:n,label:$(t).label.value,class:"CoreDateInput"},{default:Ye(()=>[j("input",{type:"date",value:$(o),onChange:u[0]||(u[0]=p=>$(i)(p.target.value,"wf-date-change"))},null,40,XA)]),_:1},8,["label"]))}}),t1=Ee(e1,[["__scopeId","data-v-a824a321"]]),n1=ke({__name:"WdsDropdownInput",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=ms(e,"modelValue");return(n,a)=>zt((N(),B("select",{"onUpdate:modelValue":a[0]||(a[0]=r=>t.value=r)},[Et(n.$slots,"default",{},void 0,!0)],512)),[[_l,t.value]])}}),Yd=Ee(n1,[["__scopeId","data-v-61d8853b"]]),a1=["value"],r1="A user input component that allows users to select a single value from a list of options using a dropdown menu.",o1={a:"Option A",b:"Option B"},s1=`
def onchange_handler(state, payload):

	# Set the state variable "selected" to the selected option

	state["selected"] = payload`,i1={writer:{name:"Dropdown Input",description:r1,category:"Input",fields:{label:{name:"Label",init:"Input Label",type:L.Text},options:{name:"Options",desc:"Key-value object with options. Must be a JSON string or a state reference to a dictionary.",type:L.KeyValue,default:JSON.stringify(o1,null,2)},cssClasses:De},events:{"wf-option-change":{desc:"Sent when the selected option changes.",stub:s1.trim(),bindable:!0}}}},l1=ke({...i1,__name:"CoreDropdownInput",setup(e){const t=z(W.evaluatedFields),n=ae(null),a=z(W.core),r=z(W.instancePath),{formValue:o,handleInput:i}=an(a,r,n);return(c,u)=>(N(),tt(bn,{ref_key:"rootInstance",ref:n,label:$(t).label.value,class:"CoreDropdownInput"},{default:Ye(()=>[He(Yd,{modelValue:$(o),"onUpdate:modelValue":u[0]||(u[0]=p=>Bt(o)?o.value=p:null),onInput:u[1]||(u[1]=p=>$(i)(p.target.value,"wf-option-change"))},{default:Ye(()=>[(N(!0),B(Re,null,Lt($(t).options.value,(p,h)=>(N(),B("option",{key:h,value:h},Ae(p),9,a1))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]))}}),c1=Ee(l1,[["__scopeId","data-v-df70eb5d"]]),u1={class:"main"},f1=["multiple"],d1={key:1,class:"status"},p1={key:1},h1={key:2},Mu=200*1024*1024,v1="A user input component that allows users to upload files.",m1=`
def onchange_handler(state, payload):

	# An array of dictionaries is provided in the payload
	# The dictionaries have the properties name, type and data
    # The data property is a file-like object

    uploaded_files = payload
    for i, uploaded_file in enumerate(uploaded_files):
		name = uploaded_file.get("name")
        file_data = uploaded_file.get("data")
        with open(f"{name}-{i}.jpeg", "wb") as file_handle:
            file_handle.write(file_data)`.trim(),g1={writer:{name:"File Input",description:v1,category:"Input",fields:{label:{name:"Label",init:"Input Label",type:L.Text},allowMultipleFiles:{name:"Allow multiple files",default:"no",type:L.Text,options:{yes:"Yes",no:"No"}},cssClasses:De},events:{"wf-file-change":{desc:"Capture changes to this control.",stub:m1,bindable:!0}}}},_1=ke({...g1,__name:"CoreFileInput",setup(e){const t=z(W.evaluatedFields),n=ae(null),a=ae(null),r=ae(null),o=z(W.core),i=z(W.instancePath),c=ae(null),{formValue:u,handleInput:p}=an(o,i,n),h=de(()=>t.allowMultipleFiles.value=="yes"?!0:void 0),d=async T=>{var w=new FileReader;return w.readAsDataURL(T),new Promise((y,k)=>{w.onload=()=>y(w.result),w.onerror=()=>k(w.error)})},m=async T=>{const w=T.target;if(!w.files||w.files.length==0)return;const y=async()=>{let U=0;r.value=null;const F=Promise.all(Array.from(w.files).map(async b=>(U+=b.size,{name:b.name,type:b.type,data:await d(b)})));return U>Mu?(r.value=`Files are too big. Total size limit is ${Math.floor(Mu/Math.pow(1024,2))}mb.`,[]):F};c.value=Array.from(w.files).map(U=>U.name),u.value=y();const k=()=>{c.value=null};p(y(),"wf-file-change",k)};return Le(u,T=>{typeof T>"u"&&a.value&&(a.value.value="")}),(T,w)=>(N(),tt(bn,{ref_key:"rootInstance",ref:n,label:c.value?"":$(t).label.value,class:"CoreFileInput"},{default:Ye(()=>[j("div",u1,[c.value?Te("",!0):(N(),B("input",{key:0,ref_key:"fileEl",ref:a,type:"file",multiple:h.value,onChange:w[0]||(w[0]=y=>m(y))},null,40,f1)),r.value||c.value?(N(),B("div",d1,[c.value?(N(),tt(wl,{key:0,class:"loadingSymbol"})):Te("",!0),c.value?(N(),B("span",p1,"Processing "+Ae(c.value.join(", "))+"...",1)):Te("",!0),r.value?(N(),B("span",h1,Ae(r.value),1)):Te("",!0)])):Te("",!0)])]),_:1},8,["label"]))}}),y1=Ee(_1,[["__scopeId","data-v-5b0dcb84"]]),b1=e=>(Pt("data-v-6f07e25a"),e=e(),Ot(),e),A1=["id","data-mode","data-list-position","aria-activedescendant"],w1={class:"placeholder"},C1={key:0,class:"desc",role:"option"},I1={key:1,class:"desc",role:"option"},T1=["onClick"],S1=b1(()=>j("i",{class:"material-symbols-outlined"}," close ",-1)),E1=[S1],k1=["id","data-list-offset","onMousemove","onClick"],x1={key:0,class:"empty"},Nu=200,$1=ke({__name:"BaseSelect",props:{baseId:{},activeValue:{},options:{},maximumCount:{},mode:{},placeholder:{}},emits:["change"],setup(e,{emit:t}){_r(q=>({"453963e0":`${Nu}px`}));const n=t,a=e,{baseId:r,activeValue:o,options:i,maximumCount:c,mode:u,placeholder:p}=nl(a),h=ae(null),d=ae(null),m=ae(null),T=ae(null),w=ae(""),y=ae(null),k=ae([]),U=ae("hidden"),F=de(()=>{if(u.value=="multiple"&&b.value)return{};const q={};return Object.entries(i.value).forEach(([Z,ye])=>{u.value=="multiple"&&k.value.includes(Z)||ye.toLocaleLowerCase().includes(w.value.toLocaleLowerCase())&&(q[Z]=ye)}),q}),b=de(()=>!(c.value<=0||k.value.length<c.value));Le(o,()=>{var q,Z;k.value=[],(Z=(q=o.value).forEach)==null||Z.call(q,ye=>{typeof i.value[ye]>"u"||k.value.push(ye)})},{immediate:!0}),Le(F,()=>{A()});function A(){if(y.value<=0){y.value=0;return}const q=Object.keys(F.value).length-1;y.value>=q&&(y.value=q)}Le(y,()=>{var Z;if(y.value===null)return;const q=(Z=h.value)==null?void 0:Z.querySelector(`[data-list-offset="${y.value}"]`);q&&q.scrollIntoView({block:"nearest",inline:"nearest"})});function C(){const q=Object.keys(i.value),Z=k.value.filter(ye=>q.includes(ye));n("change",Z)}function v(q){const Z=k.value.indexOf(q);Z!==-1&&(k.value.splice(Z,1),y.value=null),C()}function O(){k.value.pop(),C()}async function M(q=!1){U.value="hidden",w.value="",q&&(await Mn(),h.value&&(h.value.tabIndex=0,h.value.focus()))}function Y(q){const Z=q.key;if(Z=="Escape"){q.preventDefault(),M(!0);return}if(Z!=="Tab"&&Z!=="Shift"&&U.value=="hidden"){_e();return}if(Z=="Enter"){if(y.value===null)return;const ye=Object.keys(F.value);if(!ye||ye.length==0)return;me(ye[y.value]);return}if(Z=="ArrowUp"){if(q.preventDefault(),y.value===null){const ye=Object.keys(F.value).length-1;y.value=ye;return}y.value--,A();return}if(Z=="ArrowDown"){if(q.preventDefault(),y.value===null){y.value=0;return}y.value++,A();return}}function J(q){u.value=="multiple"&&q.key=="Backspace"&&!w.value&&O()}async function me(q){if(u.value=="single")k.value=[];else if(k.value.includes(q))return;k.value.push(q),C(),w.value="",k.value.length==c.value&&M(!0),await Mn(),m.value.scrollTop=m.value.scrollHeight}function oe(q){const Z=q.relatedTarget;h.value&&(h.value.contains(Z)||M(!1))}function G(q){const Z=q.relatedTarget;h.value&&(h.value.contains(Z)||M(!0))}function ue(q){q.target.dataset.preventList||_e()}async function _e(){var ye;if(U.value!=="hidden")return;const{bottom:q}=h.value.getBoundingClientRect(),Z=document.body.clientHeight;Nu+q>=Z?U.value="top":U.value="bottom",await Mn(),h.value.tabIndex=-1,(ye=d.value)==null||ye.focus()}function te(q){y.value=q}return(q,Z)=>(N(),B("div",{id:$(r),ref_key:"rootEl",ref:h,class:"BaseSelect colorTransformer",tabindex:"0","data-mode":$(u),"data-list-position":U.value,role:"listbox","aria-activedescendant":y.value?`${$(r)}-option-${y.value}`:void 0,onKeydown:Y,onClick:ue,onFocusout:oe},[j("div",{ref_key:"selectedOptionsEl",ref:m,class:"selectedOptions"},[zt(j("div",w1,[$(p)?(N(),B(Re,{key:0},[wt(Ae($(p)),1)],64)):$(u)=="multiple"&&$(c)>0?(N(),B(Re,{key:1},[wt("Select up to "+Ae($(c))+" option"+Ae($(c)>1?"s":"")+"...",1)],64)):$(u)=="multiple"?(N(),B(Re,{key:2},[wt("Select options....")],64)):$(u)=="single"?(N(),B(Re,{key:3},[wt("Select an option...")],64)):Te("",!0)],512),[[gn,k.value.length==0]]),(N(!0),B(Re,null,Lt(k.value,ye=>{var mt,Ve;return N(),B("div",{key:ye,class:pt(["option",{notFound:!((mt=$(i))!=null&&mt[ye])}]),"aria-selected":"true"},[(Ve=$(i))!=null&&Ve[ye]?(N(),B("div",C1,Ae($(i)[ye]),1)):(N(),B("div",I1,Ae(ye),1)),j("div",{class:"remove","data-prevent-list":"true","aria-label":"Remove",onClick:yt=>v(ye)},E1,8,T1)],2)}),128)),zt(j("input",{ref_key:"inputEl",ref:d,"onUpdate:modelValue":Z[0]||(Z[0]=ye=>w.value=ye),type:"text","aria-autocomplete":"none",tabindex:"-1",onKeydown:J,onBlur:G},null,544),[[Va,w.value]])],512),zt(j("div",{ref_key:"listEl",ref:T,class:"list"},[(N(!0),B(Re,null,Lt(F.value,(ye,mt,Ve)=>(N(),B("div",{id:`${$(r)}-option-${Ve}`,key:`${Ve}-${mt}`,class:pt(["option",{highlighted:y.value==Ve}]),role:"option","data-list-offset":Ve,"data-prevent-list":"true",onMousemove:yt=>te(Ve),onClick:yt=>me(mt)},Ae(ye),43,k1))),128)),Object.keys(F.value).length==0?(N(),B("div",x1,[$(u)=="multiple"&&b.value?(N(),B(Re,{key:0},[wt("Up to "+Ae($(c))+" option"+Ae($(c)>1?"s":"")+" allowed.",1)],64)):(N(),B(Re,{key:1},[wt("No results")],64))])):Te("",!0)],512),[[gn,U.value!=="hidden"]])],40,A1))}}),Qd=Ee($1,[["__scopeId","data-v-6f07e25a"]]),M1="A user input component that allows users to select multiple values from a searchable list of options.",N1={a:"Option A",b:"Option B"},L1=`
def onchange_handler(state, payload):

	# Set the state variable "selected" to the selected option

	state["selected"] = payload`,P1={writer:{name:"Multiselect Input",description:M1,category:"Input",fields:{label:{name:"Label",init:"Input Label",type:L.Text},options:{name:"Options",desc:"Key-value object with options. Must be a JSON string or a state reference to a dictionary.",type:L.KeyValue,default:JSON.stringify(N1,null,2)},placeholder:{name:"Placeholder",desc:"Text to show when no options are selected.",type:L.Text},maximumCount:{name:"Maximum count",desc:"The maximum allowable number of selected options. Set to zero for unlimited.",type:L.Number,default:"0"},accentColor:{...Jt,desc:"The colour of the chips created for each selected option."},chipTextColor:{name:"Chip text",type:L.Color,default:"#ffffff",desc:"The colour of the text in the chips.",category:$e.Style,applyStyleVariable:!0},primaryTextColor:It,secondaryTextColor:yn,containerBackgroundColor:Dn,separatorColor:Ht,cssClasses:De},events:{"wf-options-change":{desc:"Sent when the selected options change.",stub:L1.trim(),bindable:!0}}}},O1=ke({...P1,__name:"CoreMultiselectInput",setup(e){const t=z(W.evaluatedFields),n=de(()=>t.options.value),a=de(()=>t.maximumCount.value),r=ae(null),o=z(W.core),i=z(W.instancePath),c=z(W.flattenedInstancePath),{formValue:u,handleInput:p}=an(o,i,r);function h(d){p(d,"wf-options-change")}return(d,m)=>(N(),tt(bn,{ref_key:"rootInstance",ref:r,label:$(t).label.value,class:"CoreMultiselectInput"},{default:Ye(()=>[He(Qd,{"base-id":$(c),"active-value":$(u),options:n.value,"maximum-count":a.value,mode:"multiple",placeholder:$(t).placeholder.value,onChange:h},null,8,["base-id","active-value","options","maximum-count","placeholder"])]),_:1},8,["label"]))}}),R1=Ee(O1,[["__scopeId","data-v-dbfdb41b"]]),F1=["value","placeholder","min","max","step"],D1="A user input component that allows users to enter numeric values.",Lu=`
def onchange_handler(state, payload):

	# Set the state variable "new_val" to the new value

	state["new_val"] = payload`,V1={writer:{name:"Number Input",description:D1,category:"Input",fields:{label:{name:"Label",init:"Input Label",type:L.Text},placeholder:{name:"Placeholder",type:L.Text},minValue:{name:"Minimum value",type:L.Number,default:null},maxValue:{name:"Max value",type:L.Number,default:null},valueStep:{name:"Step",type:L.Number,default:"1"},cssClasses:De},events:{"wf-number-change":{desc:"Capture changes as they happen.",stub:Lu,bindable:!0},"wf-number-change-finish":{desc:"Capture changes once this control has lost focus.",stub:Lu}}}},B1=ke({...V1,__name:"CoreNumberInput",setup(e){const t=z(W.evaluatedFields),n=ae(null),a=ae(null),r=z(W.core),o=z(W.instancePath),{formValue:i,handleInput:c}=an(r,o,n);function u(){if(a.value.value=="")return null;let d=parseFloat(a.value.value);return isNaN(d)||(t.minValue.value!==null&&d<t.minValue.value&&(d=t.minValue.value,a.value.value=d),t.maxValue.value!==null&&d>t.maxValue.value&&(d=t.maxValue.value,a.value.value=d)),d}function p(){const d=u();isNaN(d)||c(d,"wf-number-change")}function h(){const d=u();isNaN(d)||c(d,"wf-number-change-finish")}return(d,m)=>(N(),tt(bn,{ref_key:"rootInstance",ref:n,label:$(t).label.value,class:"CoreNumberInput"},{default:Ye(()=>[j("input",{ref_key:"inputEl",ref:a,type:"number",value:$(i),placeholder:$(t).placeholder.value,min:$(t).minValue.value!==null?$(t).minValue.value:void 0,max:$(t).maxValue.value!==null?$(t).maxValue.value:void 0,step:$(t).valueStep.value!==null?$(t).valueStep.value:void 0,onInput:p,onChange:h},null,40,F1)]),_:1},8,["label"]))}}),H1=Ee(B1,[["__scopeId","data-v-b9f7d256"]]),U1=["id","checked","value","name","onInput"],j1=["for"],K1="A user input component that allows users to choose a single value from a list of options using radio buttons.",z1={a:"Option A",b:"Option B"},W1=`
def onchange_handler(state, payload):

	# Set the state variable "selected" to the selected radio option

	state["selected"] = payload`,G1={writer:{name:"Radio Input",description:K1,category:"Input",fields:{label:{name:"Label",init:"Input Label",type:L.Text},options:{name:"Options",desc:"Key-value object with options. Must be a JSON string or a state reference to a dictionary.",type:L.KeyValue,default:JSON.stringify(z1,null,2)},orientation:{name:"Orientation",type:L.Text,options:{vertical:"Vertical",horizontal:"Horizontal"},default:"vertical",category:$e.Style,desc:"Specify how to lay out the options."},primaryTextColor:It,accentColor:Jt,cssClasses:De},events:{"wf-option-change":{desc:"Sent when the selected option changes.",stub:W1.trim(),bindable:!0}}}},Y1=ke({...G1,__name:"CoreRadioInput",setup(e){const t=z(W.evaluatedFields),n=z(W.flattenedInstancePath),a=ae(null),r=z(W.core),o=z(W.instancePath),{formValue:i,handleInput:c}=an(r,o,a);return(u,p)=>(N(),tt(bn,{ref_key:"rootInstance",ref:a,label:$(t).label.value,class:"CoreRadioInput"},{default:Ye(()=>[j("div",{class:pt(["options",{horizontal:$(t).orientation.value=="horizontal"}])},[(N(!0),B(Re,null,Lt($(t).options.value,(h,d)=>(N(),B("div",{key:d,class:"option"},[j("input",{id:`${$(n)}-option-${d}`,type:"radio",checked:$(i)===d,value:d,name:`${$(n)}-options`,onInput:m=>$(c)(d,"wf-option-change")},null,40,U1),j("label",{for:`${$(n)}-option-${d}`},Ae(h),9,j1)]))),128))],2)]),_:1},8,["label"]))}}),Q1=Ee(Y1,[["__scopeId","data-v-404321b6"]]),X1="A user input component that allows users to select a single value from a searchable list of options.",J1={a:"Option A",b:"Option B"},q1=`
def onchange_handler(state, payload):

	# Set the state variable "selected" to the selected option

	state["selected"] = payload`,Z1={writer:{name:"Select Input",description:X1,category:"Input",fields:{label:{name:"Label",init:"Input Label",type:L.Text},options:{name:"Options",desc:"Key-value object with options. Must be a JSON string or a state reference to a dictionary.",type:L.KeyValue,default:JSON.stringify(J1,null,2)},placeholder:{name:"Placeholder",desc:"Text to show when no options are selected.",type:L.Text},maximumCount:{name:"Maximum count",desc:"The maximum allowable number of selected options. Set to zero for unlimited.",type:L.Number,default:"0"},accentColor:Jt,chipTextColor:{name:"Chip text",type:L.Color,default:"#ffffff",desc:"The color of the text in the chips.",category:$e.Style,applyStyleVariable:!0},primaryTextColor:It,secondaryTextColor:yn,containerBackgroundColor:Dn,separatorColor:Ht,cssClasses:De},events:{"wf-option-change":{desc:"Sent when the selected option changes.",stub:q1.trim(),bindable:!0}}}},ew=ke({...Z1,__name:"CoreSelectInput",setup(e){const t=z(W.evaluatedFields),n=de(()=>t.options.value),a=ae(null),r=z(W.core),o=z(W.flattenedInstancePath),i=z(W.instancePath),{formValue:c,handleInput:u}=an(r,i,a);function p(h){const d=(h==null?void 0:h[0])??null;u(d,"wf-option-change")}return(h,d)=>(N(),tt(bn,{ref_key:"rootInstance",ref:a,label:$(t).label.value,class:"CoreSelectInput"},{default:Ye(()=>[He(Qd,{"base-id":$(o),"active-value":$(c)?[$(c)]:[],options:n.value,"maximum-count":1,mode:"single",placeholder:$(t).placeholder.value,onChange:p},null,8,["base-id","active-value","options","placeholder"])]),_:1},8,["label"]))}}),tw=Ee(ew,[["__scopeId","data-v-fd9759cc"]]),nw={class:"inputArea"},aw=["value","min","max","step"],rw={class:"valueContainer"},ow="A user input component that allows users to select numeric values using a slider with optional constraints like min, max, and step.",sw=`
def onchange_handler(state, payload):

	# Set the state variable "new_val" to the new value

	state["new_val"] = payload`,iw={writer:{name:"Slider Input",description:ow,category:"Input",fields:{label:{name:"Label",init:"Input Label",type:L.Text},minValue:{name:"Minimum value",type:L.Number,default:"0",init:"0"},maxValue:{name:"Maximum value",type:L.Number,default:"100",init:"100"},stepSize:{name:"Step size",type:L.Number,default:"1",init:"1"},accentColor:Jt,cssClasses:De},events:{"wf-number-change":{desc:"Capture changes to this control.",stub:sw,bindable:!0}}}},lw=ke({...iw,__name:"CoreSliderInput",setup(e){const t=z(W.evaluatedFields),n=ae(null),a=z(W.core),r=z(W.instancePath),{formValue:o,handleInput:i}=an(a,r,n);return(c,u)=>(N(),tt(bn,{ref_key:"rootInstance",ref:n,label:$(t).label.value,class:"CoreSliderInput"},{default:Ye(()=>[j("div",nw,[j("input",{type:"range",value:$(o),min:$(t).minValue.value,max:$(t).maxValue.value,step:$(t).stepSize.value,onInput:u[0]||(u[0]=p=>$(i)(p.target.value,"wf-number-change"))},null,40,aw),j("div",rw,[j("h3",null,Ae($(o)),1)])])]),_:1},8,["label"]))}}),cw=Ee(lw,[["__scopeId","data-v-51252338"]]),uw=["type","value","placeholder"],fw="A user input component that allows users to enter single-line text values.",Pu=`
def onchange_handler(state, payload):

	# Set the state variable "new_val" to the new value

	state["new_val"] = payload`,dw={writer:{name:"Text Input",description:fw,category:"Input",fields:{label:{name:"Label",init:"Input Label",type:L.Text},placeholder:{name:"Placeholder",type:L.Text},passwordMode:{name:"Password mode",default:"no",type:L.Text,options:{yes:"Yes",no:"No"},category:$e.Style},accentColor:Jt,cssClasses:De},events:{"wf-change":{desc:"Capture changes as they happen.",stub:Pu,bindable:!0},"wf-change-finish":{desc:"Capture changes once this control has lost focus.",stub:Pu}}}},pw=ke({...dw,__name:"CoreTextInput",setup(e){const t=z(W.evaluatedFields),n=ae(null),a=z(W.core),r=z(W.instancePath),{formValue:o,handleInput:i}=an(a,r,n);return(c,u)=>(N(),tt(bn,{ref_key:"rootInstance",ref:n,label:$(t).label.value,class:"CoreTextInput"},{default:Ye(()=>[j("input",{type:$(t).passwordMode.value=="yes"?"password":"text",value:$(o),placeholder:$(t).placeholder.value,"aria-autocomplete":"none",onInput:u[0]||(u[0]=p=>$(i)(p.target.value,"wf-change")),onChange:u[1]||(u[1]=p=>$(i)(p.target.value,"wf-change-finish"))},null,40,uw)]),_:1},8,["label"]))}}),hw=Ee(pw,[["__scopeId","data-v-1389a5bf"]]),vw=["value","placeholder","rows"],mw="A user input component that allows users to enter multi-line text values.",Ou=`
def onchange_handler(state, payload):

	# Set the state variable "new_val" to the new value

	state["new_val"] = payload`,gw={writer:{name:"Textarea Input",description:mw,category:"Input",fields:{label:{name:"Label",init:"Input Label",type:L.Text},placeholder:{name:"Placeholder",type:L.Text,control:_s.Textarea},rows:{name:"Rows",type:L.Number,init:"5",default:"5"},cssClasses:De},events:{"wf-change":{desc:"Capture changes as they happen.",stub:Ou,bindable:!0},"wf-change-finish":{desc:"Capture changes once this control has lost focus.",stub:Ou}}}},_w=ke({...gw,__name:"CoreTextareaInput",setup(e){const t=z(W.evaluatedFields),n=ae(null),a=z(W.core),r=z(W.instancePath),{formValue:o,handleInput:i}=an(a,r,n);return(c,u)=>(N(),tt(bn,{ref_key:"rootInstance",ref:n,label:$(t).label.value,class:"CoreTextareaInput"},{default:Ye(()=>[j("textarea",{value:$(o),placeholder:$(t).placeholder.value,rows:$(t).rows.value,onInput:u[0]||(u[0]=p=>$(i)(p.target.value,"wf-change")),onChange:u[1]||(u[1]=p=>$(i)(p.target.value,"wf-change-finish"))},null,40,vw)]),_:1},8,["label"]))}}),yw=Ee(_w,[["__scopeId","data-v-ccc605d0"]]),Xd=e=>(Pt("data-v-7ebb763d"),e=e(),Ot(),e),bw={key:0,class:"filler light"},Aw={key:1,class:"face"},ww={viewBox:"0 0 100 100"},Cw=Xd(()=>j("circle",{class:"eye left",cx:"35",cy:"38",r:"6"},null,-1)),Iw=Xd(()=>j("circle",{class:"eye right",cx:"65",cy:"38",r:"6"},null,-1)),Tw=["d"],Sw="A user input component that allows users to provide a rating.",Ew=`
def onchange_handler(state, payload):

	# Set the state variable "rating" to the new value

	state["rating"] = payload`,kw={writer:{name:"Rating Input",description:Sw,category:"Input",fields:{label:{name:"Label",init:"Input Label",type:L.Text},feedback:{name:"Feedback",default:"stars",type:L.Text,options:{stars:"Stars",faces:"Faces",hearts:"Hearts"}},minValue:{name:"Minimum value",type:L.Number,default:"1",desc:"Valid values are 0 and 1."},maxValue:{name:"Max value",type:L.Number,default:"5",desc:"Valid values are between 2 and 11."},valueStep:{name:"Step",type:L.Number,default:"1",desc:"Valid values are between 0.25 and 1."},accentColor:Jt,primaryTextColor:It,cssClasses:De},events:{"wf-number-change":{stub:Ew,bindable:!0}}}},xw=ke({...kw,__name:"CoreRatingInput",setup(e){const t=z(W.evaluatedFields),n=ae(null),a=ae(null),r=z(W.core),o=z(W.instancePath),i=ae(null),{formValue:c,handleInput:u}=an(r,o,n);function p(A){const C=A.offsetX,v=a.value.querySelectorAll(".unit");let O=0;return v.forEach(M=>{const Y=M;C>Y.offsetLeft+Y.offsetWidth?O++:C>Y.offsetLeft&&(O+=(C-Y.offsetLeft)/Y.offsetWidth)}),O}function h(A){let C=Math.ceil(A/F.value)*F.value;return C=Math.max(Math.min(C,U.value),k.value),C}function d(A){const C=p(A);return h(C)}function m(A){const C=d(A);i.value=C}function T(){i.value=null}function w(A){const C=Math.max(Math.min(A,U.value),k.value),v=45,O=95,M=(C-k.value)/(U.value-k.value),Y=M*-10,J=70+Y,me=v+M*(O-v)+Y;return`M30,${J} Q50,${me} 70,${J}`}function y(A){const C=d(A);u(C,"wf-number-change")}const k=de(()=>Math.max(Math.min(t.minValue.value,1),0)),U=de(()=>Math.max(Math.min(t.maxValue.value,11),2)),F=de(()=>Math.max(Math.min(t.valueStep.value,1),.25)),b=de(()=>{if(i.value!==null)return i.value;const A=parseFloat(c.value);return isNaN(A)?null:A});return(A,C)=>(N(),tt(bn,{ref_key:"rootInstance",ref:n,class:"CoreRatingInput",label:$(t).label.value},{default:Ye(()=>[j("div",{ref_key:"unitsEl",ref:a,class:pt(["units",{valueSet:b.value!==null}]),onClick:y,onMousemove:m,onMouseout:T},[(N(!0),B(Re,null,Lt([...Array(U.value).keys()],v=>(N(),B("div",{key:v,class:pt(["unit",$(t).feedback.value])},[j("div",{class:"filler",style:Ct({width:`${b.value>v?Math.min(b.value-v,1)*100:0}%`})},null,4),b.value!==null?(N(),B("div",bw)):Te("",!0),$(t).feedback.value=="faces"?(N(),B("div",Aw,[(N(),B("svg",ww,[Cw,Iw,j("path",{class:"mouth",d:w(b.value??v+1)},null,8,Tw)]))])):Te("",!0)],2))),128))],34)]),_:1},8,["label"]))}}),$w=Ee(xw,[["__scopeId","data-v-7ebb763d"]]),Mw=e=>(Pt("data-v-99da7290"),e=e(),Ot(),e),Nw=["aria-checked","onKeydown"],Lw=Mw(()=>j("div",{class:"toggle"},null,-1)),Pw=[Lw],Ow="A user input component with a simple on/off status.",Rw=`
def handle_toggle(state, payload):

	# The payload will be a bool 

	state["its_on"] = payload`,Fw={writer:{name:"Switch Input",description:Ow,category:"Input",fields:{label:{name:"Label",init:"Input Label",type:L.Text},accentColor:Jt,primaryTextColor:It,separatorColor:Ht,cssClasses:De},events:{"wf-toggle":{desc:"Sent when the switch is toggled.",stub:Rw.trim(),bindable:!0}}}},Dw=ke({...Fw,__name:"CoreSwitchInput",setup(e){const t=z(W.evaluatedFields),n=ae(null),a=z(W.core),r=z(W.instancePath),{formValue:o,handleInput:i}=an(a,r,n),c=ae(!1);function u(){c.value=!c.value,i(c.value,"wf-toggle")}return Wt(()=>{c.value=!!o.value}),(p,h)=>(N(),tt(bn,{ref_key:"rootInstance",ref:n,label:$(t).label.value,"is-horizontal":!0,class:"CoreSwitchInput"},{default:Ye(()=>[j("div",{class:pt(["switch",{on:c.value}]),tabindex:"0",role:"switch","aria-checked":c.value,onClick:u,onKeydown:bl(yl(u,["prevent"]),["enter","space"])},Pw,42,Nw)]),_:1},8,["label"]))}}),Vw=Ee(Dw,[["__scopeId","data-v-99da7290"]]),Bw=e=>(Pt("data-v-e614080e"),e=e(),Ot(),e),Hw={class:"IconGen"},Uw={key:0,width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},jw=Bw(()=>j("path",{d:"M4 1L1 4.64L4 8"},null,-1)),Kw=[jw],zw=ke({__name:"IconGen",props:{iconKey:{}},setup(e){const t=e,{iconKey:n}=nl(t);return(a,r)=>(N(),B("div",Hw,[$(n)=="collapseArrow"?(N(),B("svg",Uw,Kw)):Te("",!0)]))}}),Cl=Ee(zw,[["__scopeId","data-v-e614080e"]]),Ww=ke({__name:"BaseContainer",props:{contentHAlign:{},contentVAlign:{},contentPadding:{},isHorizontal:{type:Boolean}},setup(e){const t=e,n=de(()=>{const a={padding:t.contentPadding};return t.isHorizontal?{...a,justifyContent:t.contentHAlign,alignItems:t.contentVAlign}:{...a,alignItems:t.contentHAlign,justifyContent:t.contentVAlign}});return(a,r)=>(N(),B("div",{class:pt(["BaseContainer",{horizontal:t.isHorizontal}]),style:Ct(n.value),"data-writer-container":""},[Et(a.$slots,"default",{},void 0,!0)],6))}}),ao=Ee(Ww,[["__scopeId","data-v-f05a4e20"]]),Gw={key:0,class:"header"},Yw={key:0,class:"titleContainer"},Qw={key:0},Xw={key:1,class:"collapsedTitle"},Jw={class:"transformed"},qw={class:"content"},Zw="A layout component that organises its child components in columns. Must be inside a Column Container component.",eC={writer:{name:"Column",description:Zw,allowedParentTypes:["columns","repeater"],allowedChildrenTypes:["*"],category:"Layout",fields:{title:{name:"Title",type:L.Text},width:{name:"Width (factor)",default:"1",init:"1",type:L.Number,desc:"Relative size when compared to other columns in the same container. A column of width 2 will be double the width of one with width 1.",category:$e.Style},isSticky:{name:"Sticky",default:"no",type:L.Text,options:{yes:"Yes",no:"No"},category:$e.Style},isCollapsible:{name:"Collapsible",default:"no",type:L.Text,options:{yes:"Yes",no:"No"},category:$e.Style},startCollapsed:{name:"Start collapsed",type:L.Text,category:$e.Style,default:"no",options:{yes:"Yes",no:"No"},desc:"Only applied when the column is collapsible."},separatorColor:Ht,contentPadding:Ar,contentHAlign:br,contentVAlign:Dd,cssClasses:De}},components:{IconGen:Cl}},tC=ke({...eC,__name:"CoreColumn",setup(e){const t=z(W.instancePath),n=z(W.instanceData),a=z(W.core),r=z(W.componentId),o=z(W.evaluatedFields),i=de(()=>o.isCollapsible.value=="yes"),c=ae(o.isCollapsible.value=="yes"&&o.startCollapsed.value=="yes"),u=de(()=>o.isSticky.value=="yes"),p=de(()=>{let w;return c.value?w="0 0 32px":w=`${o.width.value} 0 0`,{flex:w}}),h=()=>{c.value=!c.value},d=de(()=>{var w,y;return T.value>=((y=(w=m.value)==null?void 0:w.value)==null?void 0:y.minimumNonCollapsiblePosition)}),m=de(()=>{var w;for(let y=-1;y>-1*t.length;y--){const k=t.at(y);if(((w=a.getComponentById(k.componentId))==null?void 0:w.type)!=="columns")continue;return n.at(y)}return null}),T=de(()=>{var w;return(w=a.getComponentById(r))==null?void 0:w.position});return Le([()=>o.isCollapsible.value,T],()=>{const w=m.value;w&&(w.value={minimumNonCollapsiblePosition:void 0})}),Le(m,w=>{!w||!w.value||i.value||typeof w.value.minimumNonCollapsiblePosition<"u"&&T.value>=w.value.minimumNonCollapsiblePosition||(w.value.minimumNonCollapsiblePosition=T.value)},{immediate:!0,deep:!0}),(w,y)=>(N(),B("div",{class:pt(["CoreColumn",{sticky:u.value,collapsible:i.value,collapsibleToRight:d.value,collapsed:c.value}]),style:Ct(p.value)},[$(o).title.value||i.value?(N(),B("div",Gw,[c.value?Te("",!0):(N(),B("div",Yw,[$(o).title.value?(N(),B("h3",Qw,Ae($(o).title.value),1)):Te("",!0)])),i.value?(N(),B("div",{key:1,class:"collapser",onClick:h},[He(Cl,{class:"collapserArrow","icon-key":"collapseArrow"})])):Te("",!0)])):Te("",!0),c.value&&$(o).title.value?(N(),B("div",Xw,[j("div",Jw,[j("div",qw,Ae($(o).title.value),1)])])):Te("",!0),He(ao,{class:"container","content-h-align":$(o).contentHAlign.value,"content-v-align":$(o).contentVAlign.value,"content-padding":$(o).contentPadding.value},{default:Ye(()=>[Et(w.$slots,"default",{},void 0,!0)]),_:3},8,["content-h-align","content-v-align","content-padding"])],6))}}),nC=Ee(tC,[["__scopeId","data-v-16cb53d1"]]),aC={class:"CoreColumns horizontal","data-writer-container":""},rC={writer:{name:"Column Container",description:"Serves as container for Column components",allowedChildrenTypes:["column","repeater","separator"],category:"Layout",fields:{cssClasses:De}}},oC=ke({...rC,__name:"CoreColumns",setup(e){const t=z(W.instanceData);return t.at(-1).value={minimumNonCollapsiblePosition:void 0},(n,a)=>(N(),B("div",aC,[Et(n.$slots,"default",{},void 0,!0)]))}}),sC=Ee(oC,[["__scopeId","data-v-715f8750"]]),iC={class:"CoreHeader"},lC={class:"container horizontal","data-writer-container":""},cC="A container component that typically contains the main navigation elements.",uC={writer:{name:"Header",description:cC,category:"Layout",allowedChildrenTypes:["*"],fields:{text:{name:"Text",init:"Header Text",default:"(No text)",type:L.Text},primaryTextColor:It,cssClasses:De},previewField:"text"}},fC=ke({...uC,__name:"CoreHeader",setup(e){const t=z(W.evaluatedFields);return(n,a)=>(N(),B("div",iC,[j("h1",null,Ae($(t).text.value),1),j("div",lC,[Et(n.$slots,"default",{},void 0,!0)])]))}}),dC=Ee(fC,[["__scopeId","data-v-36fb3480"]]),pC="A layout component that stacks its child components horizontally, wrapping them to the next row if necessary.",hC={writer:{name:"Horizontal Stack",description:pC,allowedChildrenTypes:["*"],category:"Layout",fields:{contentPadding:{...Ar,default:"0"},contentHAlign:br,cssClasses:De}}},vC=ke({...hC,__name:"CoreHorizontalStack",setup(e){const t=z(W.evaluatedFields);return(n,a)=>(N(),tt(ao,{class:"CoreHorizontalStack","content-h-align":$(t).contentHAlign.value,"content-v-align":"center","content-padding":$(t).contentPadding.value,"is-horizontal":!0},{default:Ye(()=>[Et(n.$slots,"default",{},void 0,!0)]),_:3},8,["content-h-align","content-padding"]))}}),mC=Ee(vC,[["__scopeId","data-v-a52064e8"]]),gC={class:"CoreSection"},_C={key:0},yC="A container component that divides the layout into sections, with an optional title.",bC={writer:{name:"Section",description:yC,category:"Layout",allowedChildrenTypes:["*"],fields:{title:{name:"Title",init:"Section Title",desc:"Leave blank to hide.",type:L.Text},accentColor:Jt,primaryTextColor:It,secondaryTextColor:yn,containerBackgroundColor:Dn,containerShadow:yr,separatorColor:Ht,buttonColor:Qn,buttonTextColor:Xn,buttonShadow:ma,contentPadding:{...Ar,default:"16px"},contentHAlign:br,cssClasses:De},previewField:"title"}},AC=ke({...bC,__name:"CoreSection",setup(e){const t=z(W.evaluatedFields);return(n,a)=>(N(),B("section",gC,[$(t).title.value?(N(),B("h3",_C,Ae($(t).title.value),1)):Te("",!0),He(ao,{"content-h-align":$(t).contentHAlign.value,"content-padding":$(t).contentPadding.value},{default:Ye(()=>[Et(n.$slots,"default",{},void 0,!0)]),_:3},8,["content-h-align","content-padding"])]))}}),wC=Ee(AC,[["__scopeId","data-v-812761bd"]]),CC="A visual component to create a separation between adjacent elements.",Jd={writer:{name:"Separator",description:CC,category:"Layout",fields:{separatorColor:Ht,cssClasses:De}}},Ru=e=>{e.writer&&(e.writer.docs=`_Separator_ components are used to separate layout elements. They can be used in most containers, including _Column Container_ to separate columns.

If the container flows horizontally (like a _Horizontal Stack_ or a _Column Container_) the _Separator_ will be a vertical line. Otherwise, it'll be a horizontal line.`)},IC=e=>(Pt("data-v-a6984589"),e=e(),Ot(),e),TC={class:"CoreSeparator separator"},SC=IC(()=>j("div",{class:"line"},null,-1)),EC=[SC];function kC(e,t,n,a,r,o){return N(),B("div",TC,EC)}typeof Ru=="function"&&Ru(Jd);const xC=Ee(Jd,[["render",kC],["__scopeId","data-v-a6984589"]]),$C={class:"collapserContainer"},MC={class:"container","data-writer-container":""},NC="A container component that organises its children in a sidebar. Its parent must be a Page component.",LC={writer:{name:"Sidebar",description:NC,positionless:!0,slot:"sidebar",allowedParentTypes:["page"],allowedChildrenTypes:["*"],category:"Layout",fields:{startCollapsed:{name:"Start collapsed",type:L.Text,category:$e.Style,default:"no",options:{yes:"Yes",no:"No"}},sidebarBackgroundColor:{name:"Background",type:L.Color,category:$e.Style,applyStyleVariable:!0,default:"rgba(255, 255, 255, 0.3)"},accentColor:Jt,primaryTextColor:It,secondaryTextColor:yn,containerBackgroundColor:Dn,containerShadow:yr,separatorColor:Ht,buttonColor:Qn,buttonTextColor:Xn,buttonShadow:ma,cssClasses:De}}},PC=ke({...LC,__name:"CoreSidebar",setup(e){const t=z(W.evaluatedFields),n=ae(t.startCollapsed.value=="yes"),a=z(W.core),r=z(W.builderManager),o=z(W.componentId),i=de(()=>r==null?void 0:r.getSelectedId()),c=()=>{n.value=!n.value},u=ae(0),p=de(()=>({"max-height":`calc(100vh - ${u.value}px)`}));Le(i,d=>{d&&h(d)&&(n.value=!1)});const h=d=>{const m=a.getComponentById(d);return!m||m.type=="root"?!1:m.parentId==o?!0:h(m.parentId)};return Wt(()=>{const d=document.querySelector(".ComponentRenderer");u.value=document.body.clientHeight-(d==null?void 0:d.parentElement.clientHeight)}),(d,m)=>(N(),B("div",{class:pt(["CoreSidebar",{collapsed:n.value}]),style:Ct(p.value)},[j("div",$C,[j("div",{class:"collapser",onClick:c},[He(Cl,{class:"collapserArrow","icon-key":"collapseArrow"})])]),j("div",MC,[Et(d.$slots,"default",{},void 0,!0)])],6))}}),OC=Ee(PC,[["__scopeId","data-v-01dd0860"]]),RC={class:"CoreTab"},Oo=0,di=1,FC="A container component that displays its child components as a tab inside a Tab Container.",DC={writer:{name:"Tab",description:FC,allowedParentTypes:["tabs","repeater"],allowedChildrenTypes:["*"],category:"Layout",fields:{name:{name:"Name",default:"(No name)",init:"Tab Name",type:L.Text},contentPadding:{...Ar,default:"16px"},contentHAlign:br,cssClasses:De},previewField:"name"}},VC=ke({...DC,__name:"CoreTab",setup(e){const t=z(W.evaluatedFields),n=z(W.instancePath),a=z(W.instanceData),r=z(W.core),o=z(W.builderManager),i=z(W.componentId),{isComponentVisible:c}=As(r),u=de(()=>o==null?void 0:o.getSelectedId()),p=()=>{for(let k=-2;k>-1*n.length;k--){const U=n.at(k),{type:F}=r.getComponentById(U.componentId);if(F==="tabs")return k+1}},h=de(()=>{const k=p();return n.at(k)}),d=()=>{for(let k=-1;k>-1*n.length;k--){const U=n.at(k),{type:F}=r.getComponentById(U.componentId);if(F==="tabs")return a.at(k)}},m=()=>{const k=p(),U=n.slice(0,k),F=k+1<0?n.slice(k+1):[];return[...U,{componentId:n.at(k).componentId,instanceNumber:di},...F]},T=()=>{const k=d();k.value={activeTab:m()}},w=k=>{const U=r.getComponentById(k);return!U||U.type=="root"?!1:U.parentId==i?!0:w(U.parentId)};Le(u,k=>{k&&w(k)&&T()});const y=de(()=>{var b;let k;(h==null?void 0:h.value.instanceNumber)==Oo?k=m():k=n;const F=(b=d().value)==null?void 0:b.activeTab;return JSON.stringify(F)==JSON.stringify(k)});return gr(()=>{var F;if((h==null?void 0:h.value.instanceNumber)==Oo)return;const k=d();(F=k.value)!=null&&F.activeTab||c(i,n)&&(k.value={activeTab:n})}),(k,U)=>{var F,b,A,C;return zt((N(),B("div",RC,[((F=h.value)==null?void 0:F.instanceNumber)==Oo?(N(),B("button",{key:0,class:pt(["bit",{active:y.value}]),tabindex:"0",onClick:T},Ae($(t).name.value),3)):Te("",!0),((b=h.value)==null?void 0:b.instanceNumber)==di?zt((N(),tt(ao,{key:1,class:"container","content-h-align":$(t).contentHAlign.value,"content-padding":$(t).contentPadding.value},{default:Ye(()=>[Et(k.$slots,"default",{},void 0,!0)]),_:3},8,["content-h-align","content-padding"])),[[gn,y.value]]):Te("",!0)],512)),[[gn,((A=h.value)==null?void 0:A.instanceNumber)==Oo||((C=h.value)==null?void 0:C.instanceNumber)==di&&y.value]])}}}),BC=Ee(VC,[["__scopeId","data-v-8f193692"]]),HC={class:"CoreTabs"},UC={class:"tabSelector horizontal","data-writer-cage":"","data-writer-container":""},jC={class:"container"},KC="A container component for organising and displaying Tab components in a tabbed interface.",zC={writer:{name:"Tab Container",description:KC,category:"Layout",allowedChildrenTypes:["tab","repeater"],fields:{accentColor:Jt,primaryTextColor:It,secondaryTextColor:yn,containerBackgroundColor:Dn,containerShadow:yr,separatorColor:Ht,buttonColor:Qn,buttonTextColor:Xn,buttonShadow:ma,cssClasses:De}}},WC=ke({...zC,__name:"CoreTabs",setup(e){const t=z(W.instanceData);return t.at(-1).value={activeTab:void 0},(n,a)=>(N(),B("div",HC,[j("nav",UC,[Et(n.$slots,"default",{instanceNumber:0},void 0,!0)]),j("div",jC,[Et(n.$slots,"default",{instanceNumber:1},void 0,!0)])]))}}),GC=Ee(WC,[["__scopeId","data-v-28d3f90a"]]),qd=e=>(Pt("data-v-d224ec1f"),e=e(),Ot(),e),YC={class:"CoreStep"},QC=["disabled"],XC={class:"indicator"},JC=qd(()=>j("div",{class:"linker left"},null,-1)),qC={key:0,class:"material-symbols-outlined"},ZC=qd(()=>j("div",{class:"linker right"},null,-1)),eI={class:"label"},Ro=0,pi=1,tI="A container component that displays its child components as a step inside a Step Container.",nI={writer:{name:"Step",description:tI,allowedParentTypes:["steps","repeater"],allowedChildrenTypes:["*"],category:"Layout",fields:{name:{name:"Name",default:"(No name)",init:"Step name",type:L.Text},contentPadding:{...Ar,default:"16px"},isCompleted:{name:"Completed",desc:"Use a state reference to dynamically mark this step as complete.",default:"no",type:L.Text,options:{yes:"Yes",no:"No"}},contentHAlign:br,cssClasses:De},previewField:"name"}},aI=ke({...nI,__name:"CoreStep",setup(e){const t=z(W.evaluatedFields),n=z(W.instancePath),a=z(W.instanceData),r=z(W.isBeingEdited),o=z(W.core),i=z(W.builderManager),c=z(W.componentId),{isComponentVisible:u}=As(o),p=de(()=>i==null?void 0:i.getSelectedId()),h=m();function d(){for(let A=-1;A>-1*n.length;A--){const C=n.at(A),v=o.getComponentById(C.componentId);if(!v)return;if(v.type==="steps")return A}}function m(){const A=d();if(!(typeof A>"u"))return a.at(A)}function T(){const A=d()+1,C=n.slice(0,A),v=A+1<0?n.slice(A+1):[];return[...C,{componentId:n.at(A).componentId,instanceNumber:pi},...v]}function w(){h.value={...h.value,activeStep:T()}}function y(){const A=h.value.steps.findIndex(O=>JSON.stringify(O.instancePath)==JSON.stringify(n));if(A==-1||A+1>h.value.steps.length)return;let v=h.value.steps.slice(A+1).find(O=>O.isCompleted!="yes");v||(v=h.value.steps.at(-1)),h.value={...h.value,activeStep:v.instancePath}}function k(A){const C=o.getComponentById(A);return!C||C.type=="root"?!1:C.parentId==c?!0:k(C.parentId)}function U(){if(t.isCompleted.value!="yes"){w();return}y()}const F=de(()=>{const A=d()+1;return n.at(A)});Le(p,A=>{A&&k(A)&&w()});const b=de(()=>{var v;let A;(F==null?void 0:F.value.instanceNumber)==Ro?A=T():A=n;const C=(v=h.value)==null?void 0:v.activeStep;return JSON.stringify(C)==JSON.stringify(A)});return Le([b,t.isCompleted],()=>{r.value||b.value&&t.isCompleted.value=="yes"&&y()}),Le(t.isCompleted,(A,C)=>{C==="yes"&&A==="no"&&U()}),gr(()=>{var C;(F==null?void 0:F.value.instanceNumber)==Ro||(typeof h.value.steps.find(v=>v.instancePath==n)>"u"&&h.value.steps.push({instancePath:n,isCompleted:t.isCompleted.value}),(C=h.value)==null?void 0:C.activeStep)||u(c,n)&&U()}),Ka(()=>{const A=h.value.steps.findIndex(C=>JSON.stringify(C.instancePath)==JSON.stringify(n));h.value.steps.splice(A,1)}),(A,C)=>{var v,O,M,Y;return zt((N(),B("div",YC,[((v=F.value)==null?void 0:v.instanceNumber)==Ro?(N(),B("button",{key:0,class:pt(["bit",{active:b.value,completed:$(t).isCompleted.value=="yes"}]),disabled:!$(r),stepindex:"0",onClick:w},[j("div",XC,[JC,j("div",{class:pt(["status",{completed:$(t).isCompleted.value=="yes"}])},[$(t).isCompleted.value=="yes"?(N(),B("i",qC," done ")):Te("",!0)],2),ZC]),j("div",eI,Ae($(t).name.value),1)],10,QC)):Te("",!0),((O=F.value)==null?void 0:O.instanceNumber)==pi?zt((N(),tt(ao,{key:1,class:"container","content-h-align":$(t).contentHAlign.value,"content-padding":$(t).contentPadding.value},{default:Ye(()=>[Et(A.$slots,"default",{},void 0,!0)]),_:3},8,["content-h-align","content-padding"])),[[gn,b.value]]):Te("",!0)],512)),[[gn,((M=F.value)==null?void 0:M.instanceNumber)==Ro||((Y=F.value)==null?void 0:Y.instanceNumber)==pi&&b.value]])}}}),rI=Ee(aI,[["__scopeId","data-v-d224ec1f"]]),oI={class:"CoreSteps"},sI={class:"stepSelector horizontal","data-writer-cage":"","data-writer-container":""},iI={class:"container"},lI="A container component for displaying Step components, allowing you to implement a stepped workflow.",cI={writer:{name:"Step Container",description:lI,category:"Layout",allowedChildrenTypes:["step","repeater"],fields:{accentColor:Jt,primaryTextColor:It,secondaryTextColor:yn,containerBackgroundColor:Dn,containerShadow:yr,separatorColor:Ht,buttonColor:Qn,buttonTextColor:Xn,buttonShadow:ma,cssClasses:De}}},uI=ke({...cI,__name:"CoreSteps",setup(e){const t=z(W.instanceData),n={activeStep:void 0,steps:[]};return t.at(-1).value=n,(a,r)=>(N(),B("div",oI,[j("nav",sI,[Et(a.$slots,"default",{instanceNumber:0},void 0,!0)]),j("div",iI,[Et(a.$slots,"default",{instanceNumber:1},void 0,!0)])]))}}),fI=Ee(uI,[["__scopeId","data-v-fd063de0"]]),dI={};function pI(e,t){return N(),B("button",null,[Et(e.$slots,"default",{},void 0,!0)])}const Vi=Ee(dI,[["render",pI],["__scopeId","data-v-6df0b214"]]),hI={key:0,class:"material-symbols-outlined"},vI=`
def handle_button_click(state):

	# Increment counter when the button is clicked

	state["counter"] += 1`,mI="A standalone button component that can be linked to a click event handler.",gI={writer:{name:"Button",description:mI,category:"Other",events:{"wf-click":{desc:"Capture single clicks.",stub:vI.trim()}},fields:{text:{name:"Text",init:"Button Text",type:L.Text},isDisabled:{name:"Disabled",default:"no",type:L.Text,options:{yes:"Yes",no:"No"},desc:"Disables all event handlers."},buttonColor:Qn,buttonTextColor:Xn,icon:{name:"Icon",type:L.Text,desc:'A Material Symbols id, such as "arrow_forward".',category:$e.Style},buttonShadow:ma,separatorColor:Ht,cssClasses:De},previewField:"text"}},Zd=ke({...gI,__name:"CoreButton",setup(e){const t=ae(null),n=z(W.evaluatedFields),a=z(W.isDisabled);Le(n.isDisabled,o=>{a.value=o=="yes"},{immediate:!0});function r(o){if(!t.value)return;const i=bs(o);t.value.$el.dispatchEvent(i)}return(o,i)=>(N(),tt(Vi,{ref_key:"rootInstance",ref:t,class:"CoreButton","aria-disabled":$(a),onClick:r},{default:Ye(()=>[$(n).icon.value?(N(),B("i",hI,Ae($(n).icon.value),1)):Te("",!0),wt(" "+Ae($(n).text.value),1)]),_:1},8,["aria-disabled"]))}}),Fu=e=>{e.writer&&(e.writer.docs="Writer Framework uses Material Symbols to display icons. To include an icon, check https://fonts.google.com/icons, find the icon's id (such as `arrow_forward`) and it to your _Button_.")};typeof Fu=="function"&&Fu(Zd);const _I=Ee(Zd,[["__scopeId","data-v-5e8e22bd"]]),yI={padding:"16px","min-height":"64px","min-width":"64px","border-radius":"8px",background:"linear-gradient(90deg, rgba(41,207,0,1) 0%, rgba(145,231,78,1) 100%)"},bI="A generic component that creates customisable HTML elements, which can serve as containers for other components.",ep={writer:{name:"HTML Element",description:bI,category:"Other",allowedChildrenTypes:["*"],fields:{element:{name:"Element",default:"div",type:L.Text,desc:"Set the type of HTML element to create, e.g., 'div', 'section', 'span', etc."},styles:{name:"Styles",default:null,init:JSON.stringify(yI,null,2),type:L.Object,desc:"Define the CSS styles to apply to the HTML element using a JSON object or a state reference to a dictionary."},attrs:{name:"Attributes",default:null,type:L.Object,desc:"Set additional HTML attributes for the element using a JSON object or a dictionary via a state reference."},htmlInside:{name:"HTML inside",default:null,type:L.Text,control:_s.Textarea,desc:"Define custom HTML to be used inside the element. It will be wrapped in a div and rendered after children components."},cssClasses:De}},setup(e,{slots:t}){const n=z(W.evaluatedFields);return()=>{let a;return n.htmlInside.value&&(a=ha("div",{innerHTML:n.htmlInside.value})),ha(n.element.value,{...n.attrs.value,class:"CoreHTML","data-writer-container":"",style:n.styles.value},[t.default({}),a])}}},Du=e=>{e.writer&&(e.writer.docs=`You can configure the element type, styles, and attributes to fit your design requirements. You can link them to state for advanced use cases, such as custom animations.

All valid HTML tags are supported, including tags such as \`iframe\`, allowing you to embed external sites.

Take into account the potential risks of adding custom HTML to your app, including XSS. Be specially careful when injecting user-generated data.`)};typeof Du=="function"&&Du(ep);const Il=e=>(Pt("data-v-bc7a1a0a"),e=e(),Ot(),e),AI={class:"pagination-left"},wI={class:"pagination-pagesize"},CI=["value","selected"],II={class:"pagination-description"},TI={class:"bold"},SI={class:"bold"},EI={class:"bold"},kI={class:"pagination-right"},xI={class:"pagination-picker"},$I=Il(()=>j("i",{class:"material-symbols-outlined"}," navigate_before ",-1)),MI=[$I],NI={key:0,class:"paginationpicker-block paginationpicker-neutral"},LI=["onClick"],PI={key:2,class:"paginationpicker-block paginationpicker-currentpage"},OI=Il(()=>j("i",{class:"material-symbols-outlined"}," navigate_next ",-1)),RI=[OI],FI={class:"pagination-jump"},DI=Il(()=>j("label",null,"Jump to",-1)),VI=["value"],BI=`
def handle_page_change(state, payload):
    page = payload
    state["page"] = page

    records = _load_records_from_db(start = state["page"] * state["pageSize"], limit = state["pageSize"])
    # update a repeater
    state["highlighted_members"] = {r.id: r for r in records}
`,HI=`
def handle_page_size_change(state, payload):
    state['pageSize'] = payload

    records = _load_records_from_db(start = state["page"] * state["pageSize"], limit = state["pageSize"])
    # update a repeater
    state["highlighted_members"] = {r.id: r for r in records}
`,UI={writer:{name:"Pagination",category:"Other",description:"A component that can help you paginate records, for example from a Repeater or a DataFrame.",fields:{page:{name:"Page",init:"1",default:"1",type:L.Number,desc:"The current page number."},pageSize:{name:"Page Size",default:"10",type:L.Number,desc:"The number of items per page."},totalItems:{name:"Total Items",default:"10",type:L.Number,desc:"The total number of items"},pageSizeOptions:{name:"Page Size Options",init:"",default:"",type:L.Text,desc:"A comma-separated list of page size options. If it's empty, the user can't change the page size. Set your default page size as the first option."},pageSizeShowAll:{name:"Show All Option",default:"no",type:L.Text,options:{yes:"Yes",no:"No"},desc:"Show an option to show all records."},jumpTo:{name:"Jump To",default:"no",type:L.Text,options:{yes:"Yes",no:"No"},desc:"Show an option to jump to a specific page."}},events:{"wf-change-page":{desc:"Fires when the user pick a page",stub:BI.trim()},"wf-change-page-size":{desc:"Fires when the user change the page size.",stub:HI.trim()}}}},jI=ke({...UI,__name:"CorePagination",setup(e){const t=z(W.evaluatedFields),n=z(W.core),a=ae(null),r=z(W.instancePath),{formValue:o,handleInput:i}=an(n,r,a),{formValue:c,handleInput:u}=an(n,r,a),p=de(()=>t.pageSizeOptions.value!==""||t.pageSizeShowAll.value==="yes"),h=de(()=>t.jumpTo.value==="yes"),d=de(()=>t.totalItems.value==0?0:(t.page.value-1)*t.pageSize.value+1),m=de(()=>Math.min(t.page.value*t.pageSize.value,t.totalItems.value)),T=de(()=>t.totalItems.value),w=de(()=>Math.ceil(parseInt(t.totalItems.value)/parseInt(t.pageSize.value))),y=de(()=>{let v=[];const O=t.pageSizeOptions.value.split(",");for(const M in O){const Y=parseInt(O[M],10);v.push({value:Y,label:`${Y} items`})}return t.pageSizeShowAll.value==="yes"&&v.push({value:T.value,label:"All items"}),v}),k=de(()=>{const v=[],O=parseInt(t.page.value);if(w.value<=7)for(let M=0;M<w.value;M++)v.push(M+1);else O==1||O==2?(v.push(1),v.push(2),v.push(3),v.push("..."),v.push(w.value-2),v.push(w.value-1),v.push(w.value)):O==3?(v.push(1),v.push(2),v.push(3),v.push(4),v.push("..."),v.push(w.value-1),v.push(w.value)):O==4?(v.push(1),v.push(2),v.push(3),v.push(4),v.push(5),v.push("..."),v.push(w.value)):O==w.value||O==w.value-1?(v.push(1),v.push(2),v.push(3),v.push("..."),v.push(w.value-2),v.push(w.value-1),v.push(w.value)):O==w.value-2?(v.push(1),v.push(2),v.push("..."),v.push(w.value-3),v.push(w.value-2),v.push(w.value-1),v.push(w.value)):(v.push(1),v.push("..."),v.push(O-1),v.push(O),v.push(O+1),v.push("..."),v.push(w.value));return v}),U=de(()=>parseInt(t.page.value)-1<1),F=de(()=>parseInt(t.page.value)+1>w.value),b=v=>{if(v.target.value==="")return;let O=parseInt(v.target.value);O>w.value&&(O=w.value),i(O,"wf-change-page")},A=v=>{i(v,"wf-change-page")},C=v=>{let O=parseInt(v.target.value);u(O,"wf-change-page-size")};return Le(t.page,()=>{}),Le(t.pageSize,()=>{}),Wt(()=>{}),za(()=>{}),(v,O)=>(N(),B("div",{ref_key:"rootEl",ref:a,class:"CorePagination"},[j("div",AI,[zt(j("div",wI,[j("select",{class:"pagesize-select",onChange:C},[(N(!0),B(Re,null,Lt(y.value,(M,Y)=>(N(),B("option",{key:Y,value:M.value,selected:M.value==$(t).pageSize.value},Ae(M.label),9,CI))),128))],32)],512),[[gn,p.value]]),j("div",II,[wt(" Showing "),j("span",TI,Ae(d.value),1),wt(" to "),j("span",SI,Ae(m.value),1),wt(" of "),j("span",EI,Ae(T.value),1),wt(" results ")])]),j("div",kI,[j("div",xI,[j("div",{class:pt(["paginationpicker-block",{"paginationpicker-disabled":U.value}]),onClick:O[0]||(O[0]=M=>A($(t).page.value-1))},MI,2),(N(!0),B(Re,null,Lt(k.value,(M,Y)=>(N(),B(Re,{key:Y},[M=="..."?(N(),B("div",NI,Ae(M),1)):Te("",!0),M!="..."&&M!=$(t).page.value?(N(),B("div",{key:1,class:"paginationpicker-block",onClick:J=>A(M)},Ae(M),9,LI)):Te("",!0),M==$(t).page.value?(N(),B("div",PI,Ae(M),1)):Te("",!0)],64))),128)),j("div",{class:pt(["paginationpicker-block",{"paginationpicker-disabled":F.value}]),onClick:O[1]||(O[1]=M=>A($(t).page.value+1))},RI,2)]),zt(j("div",FI,[DI,j("input",{type:"text",value:$(t).page.value,onInput:b},null,40,VI)],512),[[gn,h.value]])])],512))}}),KI=Ee(jI,[["__scopeId","data-v-bc7a1a0a"]]),zI="A container component that repeats its child components based on a dictionary.",WI={a:{desc:"Option A"},b:{desc:"Option B"}},GI={writer:{name:"Repeater",description:zI,category:"Other",allowedChildrenTypes:["inherit"],fields:{repeaterObject:{name:"Repeater object",default:JSON.stringify(WI,null,2),type:L.Object,desc:"Include a state reference to the dictionary used for repeating the child components. Alternatively, specify a JSON object."},keyVariable:{name:"Key variable name",default:"itemId",init:"itemId",type:L.Text,desc:"Set the name of the variable that will store the key of the current repeater object entry."},valueVariable:{name:"Value variable name",default:"item",init:"item",type:L.Text,desc:"Set the name of the variable that will store the value of the current repeater object entry."}}},setup(e,{slots:t}){const n=z(W.core),a=z(W.componentId),r=z(W.evaluatedFields),o=z(W.isBeingEdited),i=z(W.renderProxiedComponent),c=de(()=>n.getComponents(a,{sortedByPosition:!0})),u=()=>typeof r.repeaterObject.value!="object"?[]:Object.values(r.repeaterObject.value).map((h,d)=>c.value.map(m=>i(m.id,d)));return()=>{let p={};return c.value.length!=0&&r.repeaterObject.value!=null&&Object.keys(r.repeaterObject.value).length!=0?p=u():o.value===!0?p=t.default({}):p={},ha("div",{class:"CoreRepeater","data-writer-container":""},p)}}},YI=Ee(GI,[["__scopeId","data-v-b27fc9af"]]),QI="A component that emits an event repeatedly at specified time intervals, enabling time-based refresh.",XI=`
def handle_timer_tick(state):

	# Increment counter when the timer ticks

	state["counter"] += 1`.trim(),JI={writer:{name:"Timer",description:QI,category:"Other",fields:{intervalMs:{name:"Interval (ms)",desc:"How much time to wait between ticks. A tick is considered finished when its event is handled.",default:"200",type:L.Number},isActive:{name:"Active",default:"yes",desc:"Whether the timer should trigger tick events.",type:L.Text,options:{yes:"Yes",no:"No"}},accentColor:Jt,cssClasses:De},events:{"wf-tick":{desc:"Emitted when the timer ticks.",stub:XI.trim()}}}},qI=ke({...JI,__name:"CoreTimer",setup(e){const a=z(W.evaluatedFields),r=z(W.core),o=ae(null),i=de(()=>a.intervalMs.value),c=de(()=>a.isActive.value=="yes"),u=ae(!1),p=z(W.componentId),h=de(()=>{var k,U;return!!((U=(k=r.getComponentById(p))==null?void 0:k.handlers)!=null&&U["wf-tick"])}),d=de(()=>({"animation-duration":`${Math.max(i.value,1e3)}ms`}));Le([c,i],()=>{y()}),Le(h,async k=>{k&&(await Mn(),y())});let m=0,T=null;function w(){clearTimeout(T)}function y(){if(w(),!c.value||i.value<0||!o.value)return;Date.now()-m>=500&&(o.value.classList.remove("tick"),o.value.offsetWidth,m=Date.now(),o.value.classList.add("tick"));const k=({ok:F})=>{u.value=!F,T=setTimeout(()=>{y()},i.value)},U=new CustomEvent("wf-tick",{detail:{callback:k}});o.value.dispatchEvent(U)}return Wt(()=>{y()}),(k,U)=>(N(),B("div",{ref_key:"rootEl",ref:o,class:pt(["CoreTimer",{failing:u.value}]),style:Ct(d.value)},null,6))}}),ZI=Ee(qI,[["__scopeId","data-v-93971f17"]]),eT={class:"main"},tT={class:"actions"},nT=["value"],aT="A user input component that allows users to capture images using their webcam.",rT=`
def webcam_handler(payload):

	# This handler will save the captured images based on timestamp

	import time
	timestamp = time.time()

	# The payload is a file-like object which contains the captured image
	# in PNG format

	image_file = payload
	with open(f"capture-{timestamp}.png", "wb") as file_handle:
		file_handle.write(image_file)`.trim(),oT={writer:{name:"Webcam Capture",description:aT,category:"Other",fields:{refreshRate:{name:"Refresh rate (ms)",init:"200",default:"200",desc:"Set to 0 for manual capture.",type:L.Number},buttonColor:Qn,buttonTextColor:Xn,buttonShadow:ma,separatorColor:Ht,cssClasses:De},events:{"wf-webcam":{desc:"Sent when a frame is captured. Its payload contains the captured frame in PNG format.",stub:rT.trim()}}}},sT=ke({...oT,__name:"CoreWebcamCapture",setup(e){const t=ae(!1),n=ae(null),a=document.createElement("canvas"),r=ae(null),o=z(W.evaluatedFields),i=ae(null),c=ae(null);Wt(async()=>{var y,k;i.value=await u(),c.value=(k=(y=i.value)==null?void 0:y[0])==null?void 0:k.deviceId}),Ka(()=>{w()});const u=async()=>(await navigator.mediaDevices.enumerateDevices()).filter(U=>U.kind=="videoinput"),p=de(()=>o.refreshRate.value);Le(p,(y,k)=>{y>0&&k<=0&&m()}),Le(c,async()=>{t.value&&(w(),await T())});const h=async()=>{if(t.value=!t.value,!t.value){w();return}await T(),m()},d=()=>(a.getContext("2d").drawImage(r.value,0,0),a.toDataURL("image/png")),m=()=>{const y=new CustomEvent("wf-webcam",{detail:{payload:d(),callback:()=>{p.value<=0||!t.value||setTimeout(()=>{m()},p.value)}}});n.value.dispatchEvent(y)},T=async()=>(r.value.style.display="",new Promise((y,k)=>{navigator.mediaDevices.getUserMedia||(console.error("This browser doesn't support webcam connection."),k());const U={video:!0};i.value.length>1&&(U.video={deviceId:c.value}),navigator.mediaDevices.getUserMedia(U).then(F=>{r.value.srcObject=F;const b=F.getVideoTracks()[0].getSettings().width,A=F.getVideoTracks()[0].getSettings().height;a.setAttribute("width",b.toString()),a.setAttribute("height",A.toString()),y()}).catch(F=>{console.error("An error occurred when trying to use the webcam.",F),k()})})),w=()=>{const y=r.value.srcObject;y&&y.getTracks().map(U=>U.stop()),r.value.srcObject=null,r.value.style.display="none"};return(y,k)=>{var U;return N(),B("div",{ref_key:"rootEl",ref:n,class:"CoreWebcamCapture"},[zt(j("div",eT,[j("video",{ref_key:"videoEl",ref:r,autoplay:"true"},null,512)],512),[[gn,t.value]]),j("div",tT,[p.value==0?(N(),tt(Vi,{key:0,onClick:m},{default:Ye(()=>[wt(" Capture image ")]),_:1})):Te("",!0),He(Vi,{onClick:h},{default:Ye(()=>[wt(Ae(t.value?"Stop capture":"Start webcam capture"),1)]),_:1}),((U=i.value)==null?void 0:U.length)>1?(N(),tt(Yd,{key:1,modelValue:c.value,"onUpdate:modelValue":k[0]||(k[0]=F=>c.value=F)},{default:Ye(()=>[(N(!0),B(Re,null,Lt(i.value,(F,b)=>(N(),B("option",{key:F.deviceId,value:F.deviceId},Ae(F.label||`Webcam ${b+1}`),9,nT))),128))]),_:1},8,["modelValue"])):Te("",!0)])],512)}}}),iT=Ee(sT,[["__scopeId","data-v-9613302a"]]),lT={writer:{name:"Reuse Component",slot:"*",description:"Those components are used to reuse other components. Reused components share the same state and are updated together.",category:"Other",allowedChildrenTypes:[],fields:{proxyId:{name:"Component id",type:L.Text,desc:"The id of the component to reuse."}}}},cT=ke({...lT,__name:"CoreReuse",props:{contextSlot:{}},setup(e){const t=e,n=z(W.evaluatedFields),r=z(W.instancePath).at(-2).componentId,o=z(W.core),i=z(W.renderProxiedComponent),c=z(W.isBeingEdited),u=z(W.componentId),p=ae(ha("div","")),h=ae(!0),d=de(()=>{var b;return(b=o.getComponentById(n.proxyId.value))==null?void 0:b.type}),m=de(()=>{var b;return(b=o.getComponentById(r))==null?void 0:b.type}),T=de(()=>d.value?o.getComponentDefinition(d.value):null),w=de(()=>o.getComponentDefinition(m.value));function y(b,A){h.value=t.contextSlot==="default",p.value=ha("div",{class:["CoreReuse",A]},c.value?b:"")}function k(b){var A,C;return((A=w.value.allowedChildrenTypes)==null?void 0:A.includes(b))||((C=w.value.allowedChildrenTypes)==null?void 0:C.includes("*"))}function U(b){var A;return!T.value.allowedParentTypes||((A=T.value.allowedParentTypes)==null?void 0:A.includes(b))}function F(){if(!n.proxyId.value)return y("No component selected to reuse","empty");if(u===n.proxyId.value||!T.value)return y("The id specified for reuse doesn't match any component.","invalid-value");if(!k(d.value)||!U(m.value))return y("The component cannot be reused here.","invalid-context");h.value=t.contextSlot===(T.value.slot??"default");const b=i(n.proxyId.value,0,{class:["CoreReuse"]});p.value=b}return Le([n.proxyId,T],F,{immediate:!0}),(b,A)=>h.value?(N(),tt(sl(p.value),{key:0})):Te("",!0)}}),ga=e=>(Pt("data-v-1b10f19c"),e=e(),Ot(),e),uT={key:0,class:"controls"},fT=ga(()=>j("i",{class:"material-symbols-outlined"},"arrow_upward",-1)),dT=ga(()=>j("i",{class:"material-symbols-outlined"},"arrow_downward",-1)),pT=ga(()=>j("i",{class:"material-symbols-outlined"},"zoom_in",-1)),hT=ga(()=>j("i",{class:"material-symbols-outlined"},"zoom_out",-1)),vT=ga(()=>j("span",{class:"separator"},null,-1)),mT=ga(()=>j("i",{class:"material-symbols-outlined"},"navigate_before",-1)),gT=ga(()=>j("i",{class:"material-symbols-outlined"},"navigate_next",-1)),_T={key:2},yT=["page"],bT=ga(()=>j("div",{class:"mask"},null,-1)),AT="A component to embed PDF documents.",wT={writer:{name:"PDF",description:AT,category:"Embed",fields:{source:{name:"PDF source",type:L.Text,desc:"A valid URL. Alternatively, you can provide a state reference to a packed PDF file."},highlights:{name:"Highlights",default:JSON.stringify([]),desc:"A list of highlights to be applied to the PDF as a JSON array of strings.",type:L.Object},selectedMatch:{name:"Selected highlight match",default:null,desc:"The index of the selected highlight match.",type:L.Number},page:{name:"Page",type:L.Number,desc:"The page to be displayed."},controls:{name:"Controls",type:L.Text,options:{yes:"Yes",no:"No"},desc:"Show controls to navigate the PDF.",default:"yes"},containerBackgroundColor:Dn,separatorColor:Ht,primaryTextColor:It,cssClasses:De}}},CT=ke({...wT,__name:"CorePDF",setup(e){const t=z(W.evaluatedFields);let n,a,r;const o=de(()=>t.highlights.value?t.highlights.value.map(G=>G.replaceAll("|","\\|")).join("|"):""),i=ae({completeWords:!1,ignoreCase:!0}),c=ae(1),u=ae(1),p=ae([]),h=ae(0),d=ae(null),m=ae(null),T=ae(!1),w=ae(0),y=ae([]);Wt(async()=>{const G=await tn(()=>import("./index-B5ljemeE.js"),[],import.meta.url);r=G.VuePDF;const ue=G.usePDF;({pdf:n,pages:a}=ue(t.source)),k()});const k=()=>{T.value=!0,w.value=0,y.value=[],p.value=[]},U=G=>{y.value=[...y.value,G].sort((ue,_e)=>ue.page-_e.page)},F=G=>{w.value++},b=()=>{p.value=y.value.reduce((G,ue)=>[...G,...ue.matches.map((_e,te)=>({page:ue.page,str:_e.str,index:te}))],[]).sort((G,ue)=>G.page===ue.page?G.index-ue.index:G.page-ue.page)},A=()=>{b(),h.value&&O(h.value),t.selectedMatch.value&&(h.value=t.selectedMatch.value)},C=G=>{const ue=G.target.getBoundingClientRect(),_e=[...G.target.children].filter(te=>te.className.includes("page")).find(te=>{const q=te.getBoundingClientRect(),Z=q.y-ue.y;return Z<ue.height/2&&Z+q.height>ue.height/2});_e&&(u.value=Number(_e.getAttribute("page")))},v=(G,ue)=>{let _e=0,te=G;for(;te&&te!==ue;)_e+=te.offsetTop,te=te.offsetParent;return _e},O=G=>{if(G<1||G>p.value.length)return;const ue=p.value[G-1];if(!ue)return;const te=d.value.querySelectorAll(`div[page='${ue.page}'] span.highlight`)[ue.index];m.value.scrollTop=v(te,m.value)},M=G=>{if(G<1||G>a.value)return;const ue=d.value.querySelector("div[page='"+G+"']");m.value.scrollTop=v(ue,m.value)},Y=()=>{h.value<p.value.length?h.value=h.value+1:h.value=1},J=()=>{h.value>1?h.value=h.value-1:h.value=p.value.length},me=()=>{c.value=c.value<2?c.value+.1:c.value},oe=()=>{c.value=c.value>.25?c.value-.1:c.value};return Le(w,()=>{w.value===a.value&&t.page.value&&M(t.page.value)}),Le([y,w],()=>{(!o.value||y.value.length===a.value)&&w.value===a.value&&(A(),T.value=!1)}),Le(c,()=>{k()}),Le(t.source,()=>{k()}),Le(t.highlights,()=>{y.value=[],p.value=[]}),Le(h,()=>{O(h.value)}),Le(t.selectedMatch,()=>{h.value=t.selectedMatch.value}),Le(t.page,()=>{M(t.page.value)}),(G,ue)=>(N(),B("div",{ref_key:"rootEl",ref:d,class:"CorePDF"},[$(t).controls.value==="yes"?(N(),B("div",uT,[He(xn,{onClick:ue[0]||(ue[0]=()=>M(u.value-1))},{default:Ye(()=>[fT]),_:1}),He(xn,{onClick:ue[1]||(ue[1]=()=>M(u.value+1))},{default:Ye(()=>[dT]),_:1}),(N(),B("span",{key:u.value},Ae(u.value)+" / "+Ae($(a)),1)),He(xn,{disabled:T.value,onClick:me},{default:Ye(()=>[pT]),_:1},8,["disabled"]),He(xn,{disabled:T.value,onClick:oe},{default:Ye(()=>[hT]),_:1},8,["disabled"]),j("span",null,Ae(Math.round(c.value*100))+"%",1),vT,p.value.length?(N(),tt(xn,{key:0,onClick:J},{default:Ye(()=>[mT]),_:1})):Te("",!0),p.value.length?(N(),tt(xn,{key:1,onClick:Y},{default:Ye(()=>[gT]),_:1})):Te("",!0),p.value.length?(N(),B("span",_T,"Matches "+Ae(h.value)+" / "+Ae(p.value.length),1)):Te("",!0)])):Te("",!0),j("div",{ref_key:"viewerEl",ref:m,class:"viewer",onScroll:C},[(N(!0),B(Re,null,Lt($(a),_e=>(N(),B("div",{key:_e,page:_e,class:"page"},[He($(r),{scale:c.value,pdf:$(n),page:_e,"text-layer":"","highlight-text":o.value,"highlight-options":i.value,onHighlight:ue[2]||(ue[2]=te=>U(te)),onLoaded:F},null,8,["scale","pdf","page","highlight-text","highlight-options"])],8,yT))),128))],544),bT],512))}}),IT=Ee(CT,[["__scopeId","data-v-1b10f19c"]]),tp=e=>(Pt("data-v-787cde05"),e=e(),Ot(),e),TT={key:0,class:"noURLProvided"},ST=tp(()=>j("h2",null,"No URL provided.",-1)),ET=[ST],kT=["src"],xT=tp(()=>j("div",{class:"mask"},null,-1)),$T="A component to embed an external resource in an iframe.",MT=`
def load_handler(state):

	# Sets status message when resource is loaded

	state["status"] = "Page loaded"`,NT={writer:{name:"IFrame",description:$T,category:"Embed",fields:{src:{name:"Source",default:"",desc:"A valid URL",type:L.Text},separatorColor:Ht,cssClasses:De},events:{"wf-load":{desc:"Fires when the resource has successfully loaded.",stub:MT.trim()}}}},LT=ke({...NT,__name:"CoreIFrame",setup(e){const t=ae(null),n=z(W.evaluatedFields);function a(){const r=new CustomEvent("wf-load");t.value.dispatchEvent(r)}return(r,o)=>(N(),B("div",{ref_key:"rootEl",ref:t,class:"CoreIFrame"},[$(n).src.value?(N(),B("iframe",{key:1,src:$(n).src.value,draggable:"false",onLoad:a},null,40,kT)):(N(),B("div",TT,ET)),xT],512))}}),PT=Ee(LT,[["__scopeId","data-v-787cde05"]]),Tl=e=>(Pt("data-v-4ca754c7"),e=e(),Ot(),e),OT={key:0,class:"noAPIKeyProvided"},RT=Tl(()=>j("h2",null,"Google Maps cannot be initialised.",-1)),FT=Tl(()=>j("h3",null,"An API key hasn't been provided.",-1)),DT=[RT,FT],VT=Tl(()=>j("div",{class:"mask"},null,-1)),BT="A component to embed a Google Map. It can be used to display a map with markers.",HT=[{lat:37.79322359164316,lng:-122.39999318828129,name:"Marker"}],UT={writer:{name:"Google Maps",description:BT,category:"Embed",fields:{apiKey:{name:"API Key",default:"",desc:"API Key from Google Cloud Console.",type:L.Text},mapId:{name:"Map ID",default:"",desc:"ID of map from Google Cloud Console, needed for markers.",type:L.Text},mapType:{name:"Map type",type:L.Text,default:"roadmap",options:{roadmap:"Roadmap",satellite:"Satellite",hybrid:"Hybrid",terrain:"Terrain"},desc:"One of 'roadmap', 'satellite', 'hybrid' or 'terrain'."},zoom:{name:"Zoom",default:"8",type:L.Number},lat:{name:"Latitude",default:"37.79322359164316",type:L.Number},lng:{name:"Longitude",default:"-122.39999318828129",type:L.Number},markers:{name:"Markers",default:JSON.stringify(HT),desc:"Markers data",type:L.Object},cssClasses:De},events:{"gmap-marker-click":{desc:"Capture single clicks on markers."},"gmap-click":{desc:"Capture single click on map."}}}},jT=ke({...UT,__name:"CoreGoogleMaps",setup(e){const t=ae(null),n=ae(null),a=z(W.evaluatedFields);let r=null,o=[];const i=de(()=>({lat:a.lat.value,lng:a.lng.value})),c=de(()=>["roadmap","satellite","hybrid","terrain"].includes(a.mapType.value)?a.mapType.value:"roadmap"),u=async()=>{h();const{Loader:d}=await tn(()=>import("./index-DMFOqlrb.js"),[],import.meta.url);await new d({apiKey:a.apiKey.value,version:"weekly"}).load(),r=new google.maps.Map(n.value,{center:i.value,mapTypeId:c.value,zoom:8,mapId:a.mapId.value}),r.addListener("click",T=>{const w=new CustomEvent("gmap-click",{detail:{payload:T.latLng.toJSON()}});t.value.dispatchEvent(w)}),p()},p=async()=>{if(!a.mapId.value||!a.markers.value)return;const{AdvancedMarkerElement:d}=await google.maps.importLibrary("marker");h(),a.markers.value.forEach(T=>{const w=new d({position:{lat:T.lat,lng:T.lng},map:r,title:T.name});o.push(w),w.addListener("click",()=>{const y=new CustomEvent("gmap-marker-click",{detail:{payload:T}});t.value.dispatchEvent(y)})})},h=()=>{o.forEach(d=>d.setMap(null)),o=[]};return Wt(async()=>{a.apiKey.value&&await u()}),Le(i,async d=>{r&&r.setCenter(d)}),Le(a.zoom,async d=>{r&&r.setZoom(d)}),Le(c,async d=>{r&&r.setMapTypeId(d)}),Le(a.markers,p),Le(a.apiKey,u),Le(a.mapId,u),(d,m)=>(N(),B("div",{ref_key:"rootEl",ref:t,class:"CoreGoogleMaps"},[$(a).apiKey.value?(N(),B("div",{key:1,ref_key:"mapEl",ref:n,class:"map"},null,512)):(N(),B("div",OT,DT)),VT],512))}}),KT=Ee(jT,[["__scopeId","data-v-4ca754c7"]]),zT={class:"sidebarContainer"},WT=`
def handle_keydown(state, payload):
	# The payload is a dictionary containing the key code and modifier keys.
	# For example,
	# {
	#	"key": "ArrowDown",
	#	"ctrl_key": False,
	#	"shift_key": False,
	#	"meta_key": False
	# }

	key_activated = payload.get("key")
	delta = 0
	if key_activated == "ArrowLeft":
		delta += -10
	elif key_activated == "ArrowRight":
		delta += 10

	shift_key = payload.get("shift_key")
	if shift_key:
		delta *= 2 # Shift makes it go faster

	state["position"] += delta
`,GT=`
def handle_page_open(state, payload):
	page_key = payload
	state["message"] = f"The page {page_key} has been opened."
`,YT="A container component representing a single page within the application.",QT={writer:{name:"Page",category:"Root",events:{"wf-keydown":{desc:"Captures all key activity while this page is open.",stub:WT},"wf-page-open":{desc:"Emitted when the page is opened.",stub:GT}},description:YT,allowedChildrenTypes:["*"],allowedParentTypes:["root"],fields:{key:{name:"Page key",desc:"Unique identifier. It's needed to enable navigation to this Page.",type:L.IdKey},pageMode:{name:"Page mode",default:"compact",type:L.Text,options:{compact:"Compact",wide:"Wide"},category:$e.Style},accentColor:Jt,primaryTextColor:It,secondaryTextColor:yn,emptinessColor:Fd,containerBackgroundColor:Dn,containerShadow:yr,separatorColor:Ht,buttonColor:Qn,buttonTextColor:Xn,buttonShadow:ma,cssClasses:De},previewField:"key"}},XT=ke({...QT,__name:"CorePage",setup(e){const t=ae(null),n=z(W.evaluatedFields);function a(o){const i=Ob(o);t.value.dispatchEvent(i)}function r(){const o=n.key.value,i=new CustomEvent("wf-page-open",{detail:{payload:o}});t.value.dispatchEvent(i)}return Wt(async()=>{document.addEventListener("keydown",a),r()}),za(()=>{document.removeEventListener("keydown",a)}),(o,i)=>(N(),B("div",{ref_key:"rootEl",ref:t,class:"CorePage"},[j("div",zT,[Et(o.$slots,"default",{slotName:"sidebar",positionlessSlot:!0},void 0,!0)]),j("div",{class:pt(["main",{compact:$(n).pageMode.value=="compact",wide:$(n).pageMode.value=="wide"}]),"data-writer-container":""},[Et(o.$slots,"default",{},void 0,!0)],2)],512))}}),JT=Ee(XT,[["__scopeId","data-v-c4507808"]]),qT=`
def handle_hashchange(state, payload):
	# The payload is a dictionary with the page key and all the route variables in the URL hash.
	# For example, if the current URL is
	# http://localhost:3000/#main/animal=duck&colour=yellow
	# you will get the following dictionary
	# {
	#	"page_key": "main",
	#	"route_vars": {
	#		"animal": "duck",
	#		"colour": "yellow"
	#	}
	# }

	page_key = payload.get("page_key")
	route_vars = payload.get("route_vars")

	if not route_vars:
		return

	if route_vars.get("animal") == "duck":
		state["message"] = "You've navigated to the Duck zone."
	else:
		state["message"] = "You're not in the Duck zone.`.trim(),ZT="The root component of the application, which serves as the starting point of the component hierarchy.",eS={writer:{name:"Root",category:"Root",description:ZT,allowedChildrenTypes:["page"],fields:{appName:{name:"App name",type:L.Text,desc:"The app name will be shown in the browser's title bar."},...eb},events:{"wf-hashchange":{desc:"Capture changes to the URL hash, including page key and route vars.",stub:qT}}}},tS=ke({...eS,__name:"CoreRoot",setup(e){const t={},n=z(W.core),a=z(W.builderManager),r=z(W.getChildrenVNodes),o=ae(null),{isComponentVisible:i}=As(n),c=()=>{const C=n.getComponents("root",{includeBMC:!0,includeCMC:!0,sortedByPosition:!0});if(C.length==0)return null;const v=C.filter(O=>i(O.id));return v.length==0?null:v[0].id},u=/^((?<pageKey>[^/]*))?(\/(?<routeVars>.*))?$/,p=/^(?<key>[^=]+)=(?<value>.*)$/,h=de(()=>n.getActivePageId()??c());Le(h,C=>{var M;const O=(M=n.getComponentById(C).content)==null?void 0:M.key;a&&a.getSelectedId()!==C&&a.setSelection(null),Mn().then(()=>{window.scrollTo(0,0),document.querySelector(".ComponentRenderer").parentElement.scrollTo(0,0)}),T(O)});function d(){var J,me;const v=(J=document.location.hash.substring(1).match(u))==null?void 0:J.groups;let O,M={};return v?(O=v!=null&&v.pageKey?decodeURIComponent(v.pageKey):void 0,(((me=v.routeVars)==null?void 0:me.split("&"))??[]).forEach(oe=>{var Z;const G=(Z=oe.match(p))==null?void 0:Z.groups;if(!G)return;const{key:ue,value:_e}=G,te=decodeURIComponent(ue),q=decodeURIComponent(_e);M[te]=q}),{pageKey:O,routeVars:M}):{pageKey:O,routeVars:M}}function m(C){const{pageKey:v,routeVars:O}=C;let M="";v&&(M+=`${encodeURIComponent(v)}`),Object.keys(O).length>0&&(M+="/",M+=Object.entries(O).map(([Y,J])=>J===null?null:`${encodeURIComponent(Y)}=${encodeURIComponent(J)}`).filter(Y=>Y).join("&")),document.location.hash=M}function T(C){const v=d();v.pageKey=C,m(v)}function w(C){const v=d(),O=(v==null?void 0:v.routeVars)??{};v.routeVars={...O,...C},m(v)}function y(){var O;const C=d(),v=new CustomEvent("wf-hashchange",{detail:{payload:C}});(O=o.value)==null||O.dispatchEvent(v),C.pageKey&&n.setActivePageFromKey(C.pageKey)}async function k(C,v){const O=document.querySelector(`[data-writer-stylesheet-key="${C}"]`);O==null||O.remove();const M=document.createElement("link");M.dataset.writerStylesheetKey=C,M.setAttribute("href",v),M.setAttribute("rel","stylesheet"),document.head.appendChild(M)}async function U(C,v){const O=document.querySelector(`[data-writer-script-key="${C}"]`);O==null||O.remove();const M=document.createElement("script");M.dataset.writerScriptKey=C,M.src=v,M.setAttribute("rel","modulepreload"),document.head.appendChild(M)}async function F(C,v){t[C]=v,await tn(()=>import(v),[],import.meta.url)}async function b(C,v,O){const M=t[C],Y=await tn(()=>import(M),[],import.meta.url);if(!Y){console.warn(`The module with key "${C}" cannot be found. Please check that it has been imported.`);return}Y[v](...O)}function A(){n.addMailSubscription("fileDownload",C=>{const v=document.createElement("a");v.href=C.data,v.download=C.fileName,v.click()}),n.addMailSubscription("openUrl",C=>{const v=document.createElement("a");v.href=C,v.target="_blank",v.rel="noopener noreferrer",v.click()}),n.addMailSubscription("pageChange",C=>{T(C)}),n.addMailSubscription("routeVarsChange",C=>{w(C)}),n.addMailSubscription("importStylesheet",({stylesheetKey:C,path:v})=>{k(C,v)}),n.addMailSubscription("importScript",({scriptKey:C,path:v})=>{U(C,v)}),n.addMailSubscription("importModule",({moduleKey:C,specifier:v})=>{F(C,v)}),n.addMailSubscription("functionCall",({moduleKey:C,functionName:v,args:O})=>{b(C,v,O)})}return gr(()=>{A(),window.addEventListener("hashchange",()=>{y()}),y()}),(C,v)=>(N(),B("div",{ref_key:"rootEl",ref:o,class:"CoreRoot","data-writer-container":""},[(N(!0),B(Re,null,Lt($(r)(),(O,M)=>(N(),B(Re,{key:M},[O.key===`${h.value}:0`?(N(),tt(sl(O),{key:0})):Te("",!0)],64))),128))],512))}}),nS=Ee(tS,[["__scopeId","data-v-f20c516c"]]),Sl=e=>(Pt("data-v-1debfb69"),e=e(),Ot(),e),aS={key:0,class:"noAccessTokenProvided"},rS=Sl(()=>j("h2",null,"MapBox cannot be initialised.",-1)),oS=Sl(()=>j("h3",null,"An access token hasn't been provided.",-1)),sS=[rS,oS],iS=Sl(()=>j("div",{class:"mask"},null,-1)),lS=[{lat:37.79322359164316,lng:-122.39999318828129,name:"Marker"}],cS={writer:{name:"Mapbox",description:"A component to embed a Mapbox map. It can be used to display a map with markers.",docs:"For this component you need Mapbox access token: https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes",category:"Embed",fields:{accessToken:{name:"Access Token",default:"",desc:"Access token from Mapbox",type:L.Text},mapStyle:{name:"Map style",default:"mapbox://styles/mapbox/standard",type:L.Text,desc:"Map style URL"},zoom:{name:"Zoom",default:"8",type:L.Number},lat:{name:"Latitude",default:"37.79322359164316",type:L.Number},lng:{name:"Longitude",default:"-122.39999318828129",type:L.Number},markers:{name:"Markers",init:JSON.stringify(lS,null,2),desc:"",type:L.Object},controls:{name:"Controls visible",default:"yes",type:L.Text,options:{yes:"Yes",no:"No"},desc:"Show map controls"},cssClasses:De},events:{"mapbox-marker-click":{desc:"Capture single clicks on markers."},"mapbox-click":{desc:"Capture single click on map."}}}},uS=ke({...cS,__name:"CoreMapbox",setup(e){const t=z(W.evaluatedFields),n=ae(null),a=ae(null),r=de(()=>[t.lng.value,t.lat.value]),o=ae(null);let i=[],c=null;const u=async()=>{if(!a.value||!t.accessToken.value)return;const h=await tn(()=>import("./mapbox-gl-D-fyDKev.js").then(d=>d.m),[],import.meta.url);try{h.accessToken=t.accessToken.value,h.default&&(h.default.accessToken=t.accessToken.value),o.value=new h.Map({container:a.value,style:t.mapStyle.value,center:r.value,zoom:t.zoom.value}),o.value.on("click",d=>{const m=new CustomEvent("mapbox-click",{detail:{payload:{lat:d.lngLat.lat,lng:d.lngLat.lng}}});n.value.dispatchEvent(m)}),c=new h.NavigationControl,t.controls.value==="yes"&&o.value.addControl(c),t.markers.value&&o.value.on("load",p)}catch(d){console.error(d)}},p=async()=>{var d,m;if(!o.value)return;const h=await tn(()=>import("./mapbox-gl-D-fyDKev.js").then(T=>T.m),[],import.meta.url);i.forEach(T=>T.remove()),i=[],(m=(d=t.markers)==null?void 0:d.value)==null||m.forEach(T=>{const w=new h.Marker().setLngLat([T.lng,T.lat]).addTo(o.value).setPopup(new h.Popup().setText(T.name));i.push(w),w.getElement().addEventListener("click",y=>{const k=new CustomEvent("mapbox-marker-click",{detail:{payload:T}});n.value.dispatchEvent(k),y.stopPropagation()})})};return Le(t.controls,()=>{o.value&&(t.controls.value==="yes"?o.value.addControl(c):o.value.removeControl(c))}),Le(t.markers,async()=>{o.value&&await p()}),Le(t.mapStyle,()=>{o.value&&o.value.setStyle(t.mapStyle.value)}),Le(r,()=>{var h,d;o.value&&((h=r.value)!=null&&h.lat)&&((d=r.value)!=null&&d.lng)&&o.value.setCenter(r.value)}),Le(t.zoom,()=>{o.value&&t.zoom.value&&o.value.setZoom(t.zoom.value)}),Le([a,t.accessToken],()=>{u()}),(h,d)=>(N(),B("div",{ref_key:"rootEl",ref:n,class:"CoreMapbox"},[$(t).accessToken.value?(N(),B("div",{key:1,ref_key:"mapEl",ref:a,class:"map"},null,512)):(N(),B("div",aS,sS)),iS],512))}}),fS=Ee(uS,[["__scopeId","data-v-1debfb69"]]),El={root:nS,page:JT,sidebar:OC,button:_I,text:b0,section:wC,header:dC,heading:Mb,dataframe:Cb,html:ep,pagination:KI,repeater:YI,column:nC,columns:sC,tab:BC,tabs:GC,link:O0,horizontalstack:mC,separator:xC,image:Hb,pdf:IT,iframe:PT,googlemaps:KT,mapbox:fS,icon:Pb,timer:ZI,textinput:hw,textareainput:yw,numberinput:H1,sliderinput:cw,dateinput:t1,radioinput:Q1,checkboxinput:QA,dropdowninput:c1,selectinput:tw,multiselectinput:R1,fileinput:y1,webcamcapture:iT,vegalitechart:C0,plotlygraph:v0,metric:c0,message:t0,videoplayer:$0,chatbot:mA,step:rI,steps:fI,ratinginput:$w,tags:$A,switchinput:Vw,reuse:cT,avatar:VA};function dS(e){const t=`Component type "${e}" not supported. If it's a custom component, please ensure it's been loaded.`;return{writer:{name:"Fallback Component",allowedChildrenTypes:["*"],description:t,category:"Fallback"},setup(n,{slots:a}){return()=>ha("div",{"data-writer-container":"",style:{color:"var(--primaryTextColor)"}},[t,a.default({})])}}}function pS(e){return El[e]??dS(e)}function ws(e){var t;return(t=pS(e))==null?void 0:t.writer}function kl(){return Object.keys(El)}function hS(e,t){El[e]=t}function vS(e,t){const{type:n}=e[t],o=kl().map(c=>({type:c,definition:ws(c)})).filter(c=>c.definition.allowedParentTypes&&!c.definition.allowedParentTypes.includes(n));return new Set(o.map(c=>c.type))}function mS(e,t){const{type:n,parentId:a}=e[t],r=kl().filter(c=>c!=="root"),{allowedChildrenTypes:o}=ws(n);if(!o)return new Set([]);let i=new Set(o);if(o.includes("*"))return new Set(r);if(i.delete("inherit")){if(!a)return i;const c=np(e,a);i=new Set([...i,...c])}return i}function np(e,t){const n=Array.from(mS(e,t)),a=Array.from(vS(e,t));return n.filter(o=>!a.includes(o))}function gS(e){let t=!1;return yS(e),Object.entries(e).forEach(([,n])=>{t=wS(n,e)||t,t=_S(n)||t}),t}function _S(e){const t=ws(e.type);if(!t||t.category=="Fallback")return console.error(`Component ${e.id} (${e.type}). Invalid component type.`),!1;let n=!1;return n=TS(e),n=IS(e)||n,bS(e,t),AS(e,t),n}function ap(e,t,n={}){n[e]=!0,Object.entries(t).filter(([,a])=>a.parentId===e).forEach(([a])=>ap(a,t,n))}function yS(e){const t=Object.fromEntries(Object.entries(e).map(([n])=>[n,!1]));ap("root",e,t),Object.entries(t).forEach(([n,a])=>{a||console.warn(`Component ${n} (${e[n].type}). Orphan component.`)})}function bS(e,t){const n=Object.keys(t.fields??{});e.content&&Object.keys(e.content).forEach(a=>{n.includes(a)||console.warn(`Component ${e.id} (${e.type}). Field key "${a}" is defined in the component but not in the template.`)})}function AS(e,t){const n=Object.keys(t.events??{});if(!e.binding)return;const a=e.binding.eventType;n.includes(a)&&t.events[a].bindable||console.warn(`Component ${e.id} (${e.type}). The component is bound to event "${e.binding.eventType}" but the template doesn't define that event or it's not bindable.`)}function wS(e,t){let n=!1;e.id=="root"&&e.position!==0&&console.error("Root must be at position 0."),e.position==-1&&console.error(`Component ${e.id} (${e.type}). Invalid position.`);const a=Object.values(t).filter(i=>i.parentId===e.id&&i.position!==-2&&!i.isCodeManaged);let r=0;return a.forEach(i=>{r+=i.position}),(a.length-1)*a.length/2!==r&&(console.error(`Component ${e.id} (${e.type}). Invalid children positions. Automated fix will be applied.`),CS(a),n=!0),n}function CS(e){e.sort((t,n)=>t.position>n.position?1:-1),e.map((t,n)=>{t.position=n})}function IS(e){var n,a,r;let t=!1;if(Object.keys(e.handlers??{}).forEach(o=>{if(!o.startsWith("ss-"))return;const i=`wf-${o.substring(3)}`;e.handlers[i]=e.handlers[o],t=!0,delete e.handlers[o]}),(a=(n=e.binding)==null?void 0:n.eventType)!=null&&a.startsWith("ss-")){const i=`wf-${((r=e.binding)==null?void 0:r.eventType).substring(3)}`;e.binding.eventType=i,t=!0}return t}function TS(e,t){let n=!1;if(e.type=="column"){if("horizontalAlignment"in e.content){const a={left:"start",center:"center",right:"end"};e.content.contentHAlign=a[e.content.horizontalAlignment]||e.content.horizontalAlignment,delete e.content.horizontalAlignment,n=!0}if("verticalAlignment"in e.content){const a={normal:"unset",top:"start",center:"center",bottom:"end"};e.content.contentVAlign=a[e.content.verticalAlignment]||e.content.verticalAlignment,delete e.content.verticalAlignment,n=!0}}else if(e.type=="horizontalstack"){if("alignment"in e.content){const a={left:"start",center:"center",right:"end"};e.content.contentHAlign=a[e.content.alignment]||e.content.alignment,delete e.content.alignment,n=!0}}else e.type=="section"&&"snapMode"in e.content&&(delete e.content.snapMode,n=!0);return n}function SS(e){let t="";const n=[];let a=!1;for(let o=0;o<e.length;o++){const i=e[o];if(i==="."&&!a){n.push(t),t="";continue}t+=i,i==="\\"?a=!0:a=!1}return n.push(t),n.map(o=>o.replaceAll("\\.","."))}const ES="WriterCustomComponentTemplates";async function kS(e){await Promise.all(e.map(async t=>{const n=t.toLocaleLowerCase();n.endsWith(".js")?await xS(t):n.endsWith(".css")&&$S(t)}))}async function xS(e){var t;console.log(`Importing custom component templates at "${e}"...`),await tn(()=>import(rp()+e),[],import.meta.url),(t=Object.entries(window[ES]))==null||t.forEach(([n,a])=>{console.log(`Registering template for "${n}".`),hS(`custom_${n}`,a)})}function $S(e){const t=document.createElement("link");t.rel="stylesheet",t.href=rp()+e,document.head.appendChild(t)}function rp(){let e=window.location.pathname;return e.endsWith("/")||(e+="/"),`${e}extensions/`}const MS=1e3,NS=6e4;function LS(){let e=null;const t=ae(null),n=ae(null),a=ae(null),r=ae({}),o=ae([]),i=ae({});let c;const u=ae("idle");let p=0;const h=ae(new Map);let d=[];const m=[],T=ae(null);function w(){return h.value}function y(){return n.value}async function k(){await U(),Y("pageChange",pe=>{Je(pe)}),b(),n.value=="edit"}async function U(){const pe=await fetch("./api/init",{method:"post",cache:"no-store",headers:{"Content-Type":"application/json"},body:JSON.stringify({proposedSessionId:e})}),g=await pe.json();if(pe.status>400)throw"Connection rejected.";g.extensionPaths&&await kS(g.extensionPaths),n.value=g.mode,r.value=g.components,i.value=g.userState,M(g.mail),e=g.sessionId,t.value=new Date().getTime(),o.value=g.userFunctions,a.value=g.runCode,await O(),!(n.value!="edit"||!gS(g.components))&&await mt()}function F(){return t.value}function b(){setTimeout(()=>{q("keepAlive",{},b)},NS)}function A(pe){pe&&Object.entries(pe).forEach(([g,I])=>{const D=g.charAt(0),H=SS(g.substring(1)),K=H.length-1;let X=i.value;const fe=D==="-";for(let re=0;re<K;re++){const le=X==null?void 0:X[H[re]];typeof le=="object"&&le!==null?X=le:fe||(X[H[re]]={},X=X[H[re]])}fe?delete X[H.at(-1)]:X[H.at(-1)]=I})}function C(pe){pe&&(r.value=pe)}function v(){h.value.forEach(({callback:pe})=>{pe==null||pe({ok:!1})}),h.value.clear()}async function O(){if(c)return;const pe=new URL("./api/stream",window.location.href);return pe.protocol=pe.protocol.replace("https","wss"),pe.protocol=pe.protocol.replace("http","ws"),c=new WebSocket(pe.href),c.onopen=()=>{v(),u.value="connected",console.log("WebSocket connected. Initialising stream..."),q("streamInit",{sessionId:e})},c.onmessage=g=>{var H,K,X,fe;const I=JSON.parse(g.data);if(I.messageType=="announcement"&&I.payload.announce=="codeUpdate"){c.close(),U();return}else(I.messageType=="eventResponse"||I.messageType=="stateEnquiryResponse")&&(A((H=I.payload)==null?void 0:H.mutations),M((K=I.payload)==null?void 0:K.mail),C((X=I.payload)==null?void 0:X.components));const D=h.value.get(I.trackingId);(fe=D==null?void 0:D.callback)==null||fe.call(D,{ok:!0,payload:I.payload}),h.value.delete(I.trackingId)},c.onclose=async g=>{if(c=null,u.value="offline",g.code==1008){console.error("Invalid session. Reinitialising..."),await U();return}console.error("WebSocket closed. Attempting to reconnect..."),setTimeout(async()=>{try{await O()}catch{console.error("Couldn't reconnect.")}},MS)},new Promise((g,I)=>{c.addEventListener("open",()=>g(),{once:!0}),c.addEventListener("close",()=>I(),{once:!0})})}function M(pe=[]){d.push(...pe),d=d.filter(g=>{const I=m.filter(D=>D.mailType==g.type);if(I.length==0)return g;I.forEach(D=>D.fn(g.payload))})}function Y(pe,g){m.push({mailType:pe,fn:g}),M()}function J(pe){var I;let g=null;if(pe instanceof CustomEvent)g=((I=pe.detail)==null?void 0:I.payload)??null;else{const D={};for(const H in pe){const K=pe[H];typeof K!="function"&&(K instanceof Object||(D[H]=K))}g=D}return g}async function me(pe,g,I){var X;const D=I?J(pe):null;let H;pe instanceof CustomEvent&&(H=(X=pe.detail)==null?void 0:X.callback),q("event",async()=>({type:pe.type,instancePath:g,payload:await D}),H,!0)}async function oe(pe){const g={code:pe};return new Promise((I,D)=>{q("codeSaveRequest",g,K=>{if(!K.ok){D("Couldn't connect to the server.");return}I()}),u.value="suspended"})}async function G(pe){const g={code:pe};return new Promise((I,D)=>{q("codeUpdate",g,K=>{if(!K.ok){D("Couldn't connect to the server.");return}I()})})}async function ue(pe){q("stateEnquiry",{},pe,!0)}function _e(){return a.value}function te(pe){const D=()=>{h.value.has(pe)&&ue(()=>setTimeout(D,150))};setTimeout(D,150)}async function q(pe,g,I,D=!1){if(u.value=="offline"||u.value=="suspended"){I==null||I({ok:!1});return}const H=p++;try{(I||D)&&h.value.set(H,{callback:I}),D&&te(H);let K;typeof g=="function"?K=await g():K=g;const X={type:pe,trackingId:H,payload:K};if(c.readyState!==c.OPEN)throw"Connection lost.";c.send(JSON.stringify(X))}catch{I==null||I({ok:!1})}}function Z(pe){delete r.value[pe]}function ye(pe){r.value[pe.id]=pe}async function mt(){const pe={};Object.entries(r.value).forEach(([I,D])=>{D.isCodeManaged||(pe[I]=D)});const g={components:pe};return new Promise((I,D)=>{q("componentUpdate",g,K=>{if(!K.ok){D("Couldn't connect to the server.");return}I()})})}function Ve(){return o.value}function yt(pe){return r.value[pe]}function ge(pe,g){let I=r.value[g];do{if(I.parentId==pe)return!0;I=r.value[I.parentId]}while(I);return!1}function Ne(pe,{includeBMC:g=!0,includeCMC:I=!0,sortedByPosition:D=!1}={}){let H=Object.values(r.value);return typeof pe<"u"&&(H=H.filter(K=>K.parentId==pe)),H=H.filter(K=>{const X=K.isCodeManaged;return g&&!X||I&&X}),D&&(H=H.sort((K,X)=>K.isCodeManaged&&!X.isCodeManaged?1:!K.isCodeManaged&&X.isCodeManaged?-1:K.position>X.position?1:-1)),H}function Je(pe){const I=Ne("root").filter(D=>D.content.key==pe);I.length!=0&&dt(I[0].id)}function Ue(){return Ne("root").map(I=>I.content.key).filter(I=>!!I)}function dt(pe){T.value=pe}function ot(){return T.value}function Tt(pe){return np(r.value,pe)}function bt(){return i.value}return{webSocket:c,syncHealth:u,getFrontendMessageMap:w,getMode:y,getUserFunctions:Ve,addMailSubscription:Y,init:k,forwardEvent:me,getRunCode:_e,sendCodeSaveRequest:oe,sendCodeUpdate:G,sendComponentUpdate:mt,addComponent:ye,deleteComponent:Z,getComponentById:yt,getComponents:Ne,setActivePageId:dt,getActivePageId:ot,getPageKeys:Ue,setActivePageFromKey:Je,getComponentDefinition:ws,getSupportedComponentTypes:kl,getContainableTypes:Tt,getSessionTimestamp:F,getUserState:bt,isChildOf:ge}}const cE=1500,PS=1e3,OS=100;function RS(){const t=ae({mode:"ui",settingsBarCollapsed:!1,selection:null,clipboard:null,mutationTransactionsSnapshot:{undo:null,redo:null},logEntries:[]});let n=null,a=0;const r=[],o=G=>{t.value.mode=G},i=()=>t.value.mode,c=(G,ue)=>{if(G===null){t.value.selection=null;return}let _e=ue;typeof _e>"u"&&(_e=document.querySelector(`.ComponentRenderer [data-writer-id="${G}"]`).dataset.writerInstancePath),t.value.selection={componentId:G,instancePath:_e}},u=()=>t.value.selection!==null,p=()=>t.value.selection,h=()=>{var G;return(G=t.value.selection)==null?void 0:G.componentId},d=G=>{t.value.clipboard=G},m=()=>t.value.clipboard,T=G=>{t.value.settingsBarCollapsed=G},w=()=>t.value.settingsBarCollapsed,y=(G,ue,_e=!1)=>{if(n!==null)return;a<0&&(r.splice(a),a=0);const te=r[r.length-1],q=Date.now()-(te==null?void 0:te.timestamp);if(te!=null&&te.enableDebounce&&(te==null?void 0:te.id)==G&&q<PS){n=r.pop();return}n={id:G,desc:ue,timestamp:null,enableDebounce:_e,mutations:{}}},k=G=>{n.mutations[G.id]||(n.mutations[G.id]={jsonPre:G?JSON.stringify(G):void 0})},U=G=>{n.mutations[G.id]||(n.mutations[G.id]={}),n.mutations[G.id].jsonPost=G?JSON.stringify(G):void 0},F=G=>{n.id===G&&(n.timestamp=Date.now(),r.push(n),n=null,C())},b=()=>{const G=r.length-1+a,ue=r[G];return ue&&a--,C(),ue},A=()=>{const G=r.length+a,ue=r[G];return ue&&a++,C(),ue},C=()=>{const G=r.length-1+a,ue=r[G],_e=r.length+a,te=r[_e];t.value.mutationTransactionsSnapshot={undo:ue,redo:te}},v=()=>t.value.mutationTransactionsSnapshot;async function O(G){const ue=JSON.stringify(G);let _e=5981;for(let q=0;q<ue.length;q++)_e=(_e<<5)+_e+ue.charCodeAt(q);return _e.toString(16).padStart(2,"0")}return{setMode:o,getMode:i,setSettingsBarCollapsed:T,isSettingsBarCollapsed:w,isSelectionActive:u,setSelection:c,getSelection:p,getSelectedId:h,setClipboard:d,getClipboard:m,openMutationTransaction:y,registerPreMutation:k,registerPostMutation:U,closeMutationTransaction:F,consumeUndoTransaction:b,consumeRedoTransaction:A,getMutationTransactionsSnapshot:v,handleLogEntry:async G=>{const{type:ue,title:_e,message:te,code:q}=G,Z=await O(G),ye=t.value.logEntries.find(mt=>mt.fingerprint===Z);if(ye){ye.repeated++,ye.timestampReceived=new Date,t.value.logEntries.sort((mt,Ve)=>mt.timestampReceived<Ve.timestampReceived?1:-1);return}t.value.logEntries.unshift({type:ue,title:_e,message:te,code:q,timestampReceived:new Date,fingerprint:Z,repeated:0}),t.value.logEntries.splice(OS)},getLogEntryCount:()=>t.value.logEntries.length,clearLogEntries:()=>{t.value.logEntries=[]},getLogEntries:()=>t.value.logEntries}}/*! @license DOMPurify 3.0.9 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.9/LICENSE */const{entries:op,setPrototypeOf:Vu,isFrozen:FS,getPrototypeOf:DS,getOwnPropertyDescriptor:VS}=Object;let{freeze:rn,seal:Ln,create:sp}=Object,{apply:Bi,construct:Hi}=typeof Reflect<"u"&&Reflect;rn||(rn=function(t){return t});Ln||(Ln=function(t){return t});Bi||(Bi=function(t,n,a){return t.apply(n,a)});Hi||(Hi=function(t,n){return new t(...n)});const Fo=_n(Array.prototype.forEach),Bu=_n(Array.prototype.pop),Nr=_n(Array.prototype.push),jo=_n(String.prototype.toLowerCase),hi=_n(String.prototype.toString),BS=_n(String.prototype.match),Lr=_n(String.prototype.replace),HS=_n(String.prototype.indexOf),US=_n(String.prototype.trim),kn=_n(Object.prototype.hasOwnProperty),dn=_n(RegExp.prototype.test),Pr=jS(TypeError);function _n(e){return function(t){for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r<n;r++)a[r-1]=arguments[r];return Bi(e,t,a)}}function jS(e){return function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return Hi(e,n)}}function Ge(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:jo;Vu&&Vu(e,null);let a=t.length;for(;a--;){let r=t[a];if(typeof r=="string"){const o=n(r);o!==r&&(FS(t)||(t[a]=o),r=o)}e[r]=!0}return e}function KS(e){for(let t=0;t<e.length;t++)kn(e,t)||(e[t]=null);return e}function Sa(e){const t=sp(null);for(const[n,a]of op(e))kn(e,n)&&(Array.isArray(a)?t[n]=KS(a):a&&typeof a=="object"&&a.constructor===Object?t[n]=Sa(a):t[n]=a);return t}function Do(e,t){for(;e!==null;){const a=VS(e,t);if(a){if(a.get)return _n(a.get);if(typeof a.value=="function")return _n(a.value)}e=DS(e)}function n(){return null}return n}const Hu=rn(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),vi=rn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),mi=rn(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),zS=rn(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),gi=rn(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),WS=rn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Uu=rn(["#text"]),ju=rn(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),_i=rn(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ku=rn(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Vo=rn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),GS=Ln(/\{\{[\w\W]*|[\w\W]*\}\}/gm),YS=Ln(/<%[\w\W]*|[\w\W]*%>/gm),QS=Ln(/\${[\w\W]*}/gm),XS=Ln(/^data-[\-\w.\u00B7-\uFFFF]/),JS=Ln(/^aria-[\-\w]+$/),ip=Ln(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),qS=Ln(/^(?:\w+script|data):/i),ZS=Ln(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),lp=Ln(/^html$/i);var zu=Object.freeze({__proto__:null,MUSTACHE_EXPR:GS,ERB_EXPR:YS,TMPLIT_EXPR:QS,DATA_ATTR:XS,ARIA_ATTR:JS,IS_ALLOWED_URI:ip,IS_SCRIPT_OR_DATA:qS,ATTR_WHITESPACE:ZS,DOCTYPE_NAME:lp});const eE=function(){return typeof window>"u"?null:window},tE=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let a=null;const r="data-tt-policy-suffix";n&&n.hasAttribute(r)&&(a=n.getAttribute(r));const o="dompurify"+(a?"#"+a:"");try{return t.createPolicy(o,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function cp(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:eE();const t=xe=>cp(xe);if(t.version="3.0.9",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let{document:n}=e;const a=n,r=a.currentScript,{DocumentFragment:o,HTMLTemplateElement:i,Node:c,Element:u,NodeFilter:p,NamedNodeMap:h=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:m,trustedTypes:T}=e,w=u.prototype,y=Do(w,"cloneNode"),k=Do(w,"nextSibling"),U=Do(w,"childNodes"),F=Do(w,"parentNode");if(typeof i=="function"){const xe=n.createElement("template");xe.content&&xe.content.ownerDocument&&(n=xe.content.ownerDocument)}let b,A="";const{implementation:C,createNodeIterator:v,createDocumentFragment:O,getElementsByTagName:M}=n,{importNode:Y}=a;let J={};t.isSupported=typeof op=="function"&&typeof F=="function"&&C&&C.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:me,ERB_EXPR:oe,TMPLIT_EXPR:G,DATA_ATTR:ue,ARIA_ATTR:_e,IS_SCRIPT_OR_DATA:te,ATTR_WHITESPACE:q}=zu;let{IS_ALLOWED_URI:Z}=zu,ye=null;const mt=Ge({},[...Hu,...vi,...mi,...gi,...Uu]);let Ve=null;const yt=Ge({},[...ju,..._i,...Ku,...Vo]);let ge=Object.seal(sp(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ne=null,Je=null,Ue=!0,dt=!0,ot=!1,Tt=!0,bt=!1,Rt=!1,pe=!1,g=!1,I=!1,D=!1,H=!1,K=!0,X=!1;const fe="user-content-";let re=!0,le=!1,ee={},he=null;const Me=Ge({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Se=null;const Oe=Ge({},["audio","video","img","source","image","track"]);let Be=null;const qe=Ge({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),at="http://www.w3.org/1998/Math/MathML",ht="http://www.w3.org/2000/svg",At="http://www.w3.org/1999/xhtml";let qt=At,Vn=!1,An=null;const Wa=Ge({},[at,ht,At],hi);let St=null;const Zt=["application/xhtml+xml","text/html"],_a="text/html";let kt=null,Jn=null;const Cs=n.createElement("form"),ro=function(P){return P instanceof RegExp||P instanceof Function},wr=function(){let P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Jn&&Jn===P)){if((!P||typeof P!="object")&&(P={}),P=Sa(P),St=Zt.indexOf(P.PARSER_MEDIA_TYPE)===-1?_a:P.PARSER_MEDIA_TYPE,kt=St==="application/xhtml+xml"?hi:jo,ye=kn(P,"ALLOWED_TAGS")?Ge({},P.ALLOWED_TAGS,kt):mt,Ve=kn(P,"ALLOWED_ATTR")?Ge({},P.ALLOWED_ATTR,kt):yt,An=kn(P,"ALLOWED_NAMESPACES")?Ge({},P.ALLOWED_NAMESPACES,hi):Wa,Be=kn(P,"ADD_URI_SAFE_ATTR")?Ge(Sa(qe),P.ADD_URI_SAFE_ATTR,kt):qe,Se=kn(P,"ADD_DATA_URI_TAGS")?Ge(Sa(Oe),P.ADD_DATA_URI_TAGS,kt):Oe,he=kn(P,"FORBID_CONTENTS")?Ge({},P.FORBID_CONTENTS,kt):Me,Ne=kn(P,"FORBID_TAGS")?Ge({},P.FORBID_TAGS,kt):{},Je=kn(P,"FORBID_ATTR")?Ge({},P.FORBID_ATTR,kt):{},ee=kn(P,"USE_PROFILES")?P.USE_PROFILES:!1,Ue=P.ALLOW_ARIA_ATTR!==!1,dt=P.ALLOW_DATA_ATTR!==!1,ot=P.ALLOW_UNKNOWN_PROTOCOLS||!1,Tt=P.ALLOW_SELF_CLOSE_IN_ATTR!==!1,bt=P.SAFE_FOR_TEMPLATES||!1,Rt=P.WHOLE_DOCUMENT||!1,I=P.RETURN_DOM||!1,D=P.RETURN_DOM_FRAGMENT||!1,H=P.RETURN_TRUSTED_TYPE||!1,g=P.FORCE_BODY||!1,K=P.SANITIZE_DOM!==!1,X=P.SANITIZE_NAMED_PROPS||!1,re=P.KEEP_CONTENT!==!1,le=P.IN_PLACE||!1,Z=P.ALLOWED_URI_REGEXP||ip,qt=P.NAMESPACE||At,ge=P.CUSTOM_ELEMENT_HANDLING||{},P.CUSTOM_ELEMENT_HANDLING&&ro(P.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ge.tagNameCheck=P.CUSTOM_ELEMENT_HANDLING.tagNameCheck),P.CUSTOM_ELEMENT_HANDLING&&ro(P.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ge.attributeNameCheck=P.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),P.CUSTOM_ELEMENT_HANDLING&&typeof P.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ge.allowCustomizedBuiltInElements=P.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),bt&&(dt=!1),D&&(I=!0),ee&&(ye=Ge({},Uu),Ve=[],ee.html===!0&&(Ge(ye,Hu),Ge(Ve,ju)),ee.svg===!0&&(Ge(ye,vi),Ge(Ve,_i),Ge(Ve,Vo)),ee.svgFilters===!0&&(Ge(ye,mi),Ge(Ve,_i),Ge(Ve,Vo)),ee.mathMl===!0&&(Ge(ye,gi),Ge(Ve,Ku),Ge(Ve,Vo))),P.ADD_TAGS&&(ye===mt&&(ye=Sa(ye)),Ge(ye,P.ADD_TAGS,kt)),P.ADD_ATTR&&(Ve===yt&&(Ve=Sa(Ve)),Ge(Ve,P.ADD_ATTR,kt)),P.ADD_URI_SAFE_ATTR&&Ge(Be,P.ADD_URI_SAFE_ATTR,kt),P.FORBID_CONTENTS&&(he===Me&&(he=Sa(he)),Ge(he,P.FORBID_CONTENTS,kt)),re&&(ye["#text"]=!0),Rt&&Ge(ye,["html","head","body"]),ye.table&&(Ge(ye,["tbody"]),delete Ne.tbody),P.TRUSTED_TYPES_POLICY){if(typeof P.TRUSTED_TYPES_POLICY.createHTML!="function")throw Pr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof P.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Pr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');b=P.TRUSTED_TYPES_POLICY,A=b.createHTML("")}else b===void 0&&(b=tE(T,r)),b!==null&&typeof A=="string"&&(A=b.createHTML(""));rn&&rn(P),Jn=P}},oo=Ge({},["mi","mo","mn","ms","mtext"]),so=Ge({},["foreignobject","desc","title","annotation-xml"]),Is=Ge({},["title","style","font","a","script"]),io=Ge({},[...vi,...mi,...zS]),lo=Ge({},[...gi,...WS]),Ts=function(P){let ce=F(P);(!ce||!ce.tagName)&&(ce={namespaceURI:qt,tagName:"template"});const Ce=jo(P.tagName),ut=jo(ce.tagName);return An[P.namespaceURI]?P.namespaceURI===ht?ce.namespaceURI===At?Ce==="svg":ce.namespaceURI===at?Ce==="svg"&&(ut==="annotation-xml"||oo[ut]):!!io[Ce]:P.namespaceURI===at?ce.namespaceURI===At?Ce==="math":ce.namespaceURI===ht?Ce==="math"&&so[ut]:!!lo[Ce]:P.namespaceURI===At?ce.namespaceURI===ht&&!so[ut]||ce.namespaceURI===at&&!oo[ut]?!1:!lo[Ce]&&(Is[Ce]||!io[Ce]):!!(St==="application/xhtml+xml"&&An[P.namespaceURI]):!1},Bn=function(P){Nr(t.removed,{element:P});try{P.parentNode.removeChild(P)}catch{P.remove()}},Cr=function(P,ce){try{Nr(t.removed,{attribute:ce.getAttributeNode(P),from:ce})}catch{Nr(t.removed,{attribute:null,from:ce})}if(ce.removeAttribute(P),P==="is"&&!Ve[P])if(I||D)try{Bn(ce)}catch{}else try{ce.setAttribute(P,"")}catch{}},Ir=function(P){let ce=null,Ce=null;if(g)P="<remove></remove>"+P;else{const Ft=BS(P,/^[\r\n\t ]+/);Ce=Ft&&Ft[0]}St==="application/xhtml+xml"&&qt===At&&(P='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+P+"</body></html>");const ut=b?b.createHTML(P):P;if(qt===At)try{ce=new m().parseFromString(ut,St)}catch{}if(!ce||!ce.documentElement){ce=C.createDocument(qt,"template",null);try{ce.documentElement.innerHTML=Vn?A:ut}catch{}}const Mt=ce.body||ce.documentElement;return P&&Ce&&Mt.insertBefore(n.createTextNode(Ce),Mt.childNodes[0]||null),qt===At?M.call(ce,Rt?"html":"body")[0]:Rt?ce.documentElement:Mt},Tr=function(P){return v.call(P.ownerDocument||P,P,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT,null)},Ss=function(P){return P instanceof d&&(typeof P.nodeName!="string"||typeof P.textContent!="string"||typeof P.removeChild!="function"||!(P.attributes instanceof h)||typeof P.removeAttribute!="function"||typeof P.setAttribute!="function"||typeof P.namespaceURI!="string"||typeof P.insertBefore!="function"||typeof P.hasChildNodes!="function")},co=function(P){return typeof c=="function"&&P instanceof c},In=function(P,ce,Ce){J[P]&&Fo(J[P],ut=>{ut.call(t,ce,Ce,Jn)})},ya=function(P){let ce=null;if(In("beforeSanitizeElements",P,null),Ss(P))return Bn(P),!0;const Ce=kt(P.nodeName);if(In("uponSanitizeElement",P,{tagName:Ce,allowedTags:ye}),P.hasChildNodes()&&!co(P.firstElementChild)&&dn(/<[/\w]/g,P.innerHTML)&&dn(/<[/\w]/g,P.textContent))return Bn(P),!0;if(!ye[Ce]||Ne[Ce]){if(!Ne[Ce]&&Sr(Ce)&&(ge.tagNameCheck instanceof RegExp&&dn(ge.tagNameCheck,Ce)||ge.tagNameCheck instanceof Function&&ge.tagNameCheck(Ce)))return!1;if(re&&!he[Ce]){const ut=F(P)||P.parentNode,Mt=U(P)||P.childNodes;if(Mt&&ut){const Ft=Mt.length;for(let Gt=Ft-1;Gt>=0;--Gt)ut.insertBefore(y(Mt[Gt],!0),k(P))}}return Bn(P),!0}return P instanceof u&&!Ts(P)||(Ce==="noscript"||Ce==="noembed"||Ce==="noframes")&&dn(/<\/no(script|embed|frames)/i,P.innerHTML)?(Bn(P),!0):(bt&&P.nodeType===3&&(ce=P.textContent,Fo([me,oe,G],ut=>{ce=Lr(ce,ut," ")}),P.textContent!==ce&&(Nr(t.removed,{element:P.cloneNode()}),P.textContent=ce)),In("afterSanitizeElements",P,null),!1)},uo=function(P,ce,Ce){if(K&&(ce==="id"||ce==="name")&&(Ce in n||Ce in Cs))return!1;if(!(dt&&!Je[ce]&&dn(ue,ce))){if(!(Ue&&dn(_e,ce))){if(!Ve[ce]||Je[ce]){if(!(Sr(P)&&(ge.tagNameCheck instanceof RegExp&&dn(ge.tagNameCheck,P)||ge.tagNameCheck instanceof Function&&ge.tagNameCheck(P))&&(ge.attributeNameCheck instanceof RegExp&&dn(ge.attributeNameCheck,ce)||ge.attributeNameCheck instanceof Function&&ge.attributeNameCheck(ce))||ce==="is"&&ge.allowCustomizedBuiltInElements&&(ge.tagNameCheck instanceof RegExp&&dn(ge.tagNameCheck,Ce)||ge.tagNameCheck instanceof Function&&ge.tagNameCheck(Ce))))return!1}else if(!Be[ce]){if(!dn(Z,Lr(Ce,q,""))){if(!((ce==="src"||ce==="xlink:href"||ce==="href")&&P!=="script"&&HS(Ce,"data:")===0&&Se[P])){if(!(ot&&!dn(te,Lr(Ce,q,"")))){if(Ce)return!1}}}}}}return!0},Sr=function(P){return P!=="annotation-xml"&&P.indexOf("-")>0},fo=function(P){In("beforeSanitizeAttributes",P,null);const{attributes:ce}=P;if(!ce)return;const Ce={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ve};let ut=ce.length;for(;ut--;){const Mt=ce[ut],{name:Ft,namespaceURI:Gt,value:Pn}=Mt,ba=kt(Ft);let Yt=Ft==="value"?Pn:US(Pn);if(Ce.attrName=ba,Ce.attrValue=Yt,Ce.keepAttr=!0,Ce.forceKeepAttr=void 0,In("uponSanitizeAttribute",P,Ce),Yt=Ce.attrValue,Ce.forceKeepAttr||(Cr(Ft,P),!Ce.keepAttr))continue;if(!Tt&&dn(/\/>/i,Yt)){Cr(Ft,P);continue}bt&&Fo([me,oe,G],ho=>{Yt=Lr(Yt,ho," ")});const po=kt(P.nodeName);if(uo(po,ba,Yt)){if(X&&(ba==="id"||ba==="name")&&(Cr(Ft,P),Yt=fe+Yt),b&&typeof T=="object"&&typeof T.getAttributeType=="function"&&!Gt)switch(T.getAttributeType(po,ba)){case"TrustedHTML":{Yt=b.createHTML(Yt);break}case"TrustedScriptURL":{Yt=b.createScriptURL(Yt);break}}try{Gt?P.setAttributeNS(Gt,Ft,Yt):P.setAttribute(Ft,Yt),Bu(t.removed)}catch{}}}In("afterSanitizeAttributes",P,null)},Es=function xe(P){let ce=null;const Ce=Tr(P);for(In("beforeSanitizeShadowDOM",P,null);ce=Ce.nextNode();)In("uponSanitizeShadowNode",ce,null),!ya(ce)&&(ce.content instanceof o&&xe(ce.content),fo(ce));In("afterSanitizeShadowDOM",P,null)};return t.sanitize=function(xe){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ce=null,Ce=null,ut=null,Mt=null;if(Vn=!xe,Vn&&(xe="<!-->"),typeof xe!="string"&&!co(xe))if(typeof xe.toString=="function"){if(xe=xe.toString(),typeof xe!="string")throw Pr("dirty is not a string, aborting")}else throw Pr("toString is not a function");if(!t.isSupported)return xe;if(pe||wr(P),t.removed=[],typeof xe=="string"&&(le=!1),le){if(xe.nodeName){const Pn=kt(xe.nodeName);if(!ye[Pn]||Ne[Pn])throw Pr("root node is forbidden and cannot be sanitized in-place")}}else if(xe instanceof c)ce=Ir("<!---->"),Ce=ce.ownerDocument.importNode(xe,!0),Ce.nodeType===1&&Ce.nodeName==="BODY"||Ce.nodeName==="HTML"?ce=Ce:ce.appendChild(Ce);else{if(!I&&!bt&&!Rt&&xe.indexOf("<")===-1)return b&&H?b.createHTML(xe):xe;if(ce=Ir(xe),!ce)return I?null:H?A:""}ce&&g&&Bn(ce.firstChild);const Ft=Tr(le?xe:ce);for(;ut=Ft.nextNode();)ya(ut)||(ut.content instanceof o&&Es(ut.content),fo(ut));if(le)return xe;if(I){if(D)for(Mt=O.call(ce.ownerDocument);ce.firstChild;)Mt.appendChild(ce.firstChild);else Mt=ce;return(Ve.shadowroot||Ve.shadowrootmode)&&(Mt=Y.call(a,Mt,!0)),Mt}let Gt=Rt?ce.outerHTML:ce.innerHTML;return Rt&&ye["!doctype"]&&ce.ownerDocument&&ce.ownerDocument.doctype&&ce.ownerDocument.doctype.name&&dn(lp,ce.ownerDocument.doctype.name)&&(Gt="<!DOCTYPE "+ce.ownerDocument.doctype.name+`>
`+Gt),bt&&Fo([me,oe,G],Pn=>{Gt=Lr(Gt,Pn," ")}),b&&H?b.createHTML(Gt):Gt},t.setConfig=function(){let xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};wr(xe),pe=!0},t.clearConfig=function(){Jn=null,pe=!1},t.isValidAttribute=function(xe,P,ce){Jn||wr({});const Ce=kt(xe),ut=kt(P);return uo(Ce,ut,ce)},t.addHook=function(xe,P){typeof P=="function"&&(J[xe]=J[xe]||[],Nr(J[xe],P))},t.removeHook=function(xe){if(J[xe])return Bu(J[xe])},t.removeHooks=function(xe){J[xe]&&(J[xe]=[])},t.removeAllHooks=function(){J={}},t}var nE=cp();function aE(e,t){const n=e.hooks??{};let a;for(a in n){const r=n[a];r!==void 0&&t.addHook(a,r)}}function up(){return nE()}function rE(e={},t=up){const n=t();aE(e,n);const a=function(r,o){const i=o.value;if(o.oldValue===i)return;const c=`${i}`,u=o.arg,p=e.namedConfigurations,h=e.default??{};if(p&&u!==void 0){r.innerHTML=n.sanitize(c,p[u]??h);return}r.innerHTML=n.sanitize(c,h)};return{mounted:a,updated:a}}const oE={install(e,t={},n=up){e.directive("dompurify-html",rE(t,n))}};function sE(e){e.directive("capture-tabs",{mounted:t=>{t.addEventListener("keydown",n=>{n.key=="Tab"&&(n.preventDefault(),t.setRangeText("  ",t.selectionStart,t.selectionStart,"end"))})}})}const Fr=LS();globalThis.vue=Jy;globalThis.injectionKeys=W;globalThis.core=Fr;async function iE(){await Fr.init();const e=Fr.getMode(),t=e=="edit"?RS():void 0;t&&Fr.addMailSubscription("logEntry",t.handleLogEntry),console.log(`Mounting app in mode ${e}...`);const{default:n}=e==="run"&&await tn(()=>import("./ComponentRenderer-D6RNvCu7.js"),__vite__mapDeps([3,4]),import.meta.url),{default:a}=e==="edit"&&await tn(()=>import("./BuilderApp-CqosWLrY.js").then(o=>o.B),__vite__mapDeps([5,6,3,4,7]),import.meta.url),r=Pd(n||a);r.use(oE),r.provide(W.core,Fr),r.provide(W.builderManager,t),sE(r),r.mount("#app")}console.log("Initialising Writer Framework core...");iE().then(async()=>{console.log("Core initialised.")}).catch(e=>{console.error("Core initialisation failed.",e),document.write(e)});export{cd as $,Ye as A,tn as B,cE as C,Tf as D,Va as E,Re as F,_l as G,Le as H,Wt as I,bl as J,Mn as K,Ka as L,_s as M,$e as N,L as O,za as P,As as Q,Ct as R,pS as S,K_ as T,Gf as U,ha as V,ss as W,Vi as X,_A as Y,lE as Z,Ee as _,qy as a,vf as a0,Bt as a1,Xe as a2,gA as a3,W as b,de as c,ke as d,B as e,j as f,np as g,wt as h,z as i,Ot as j,nl as k,tt as l,Te as m,pt as n,N as o,Pt as p,Et as q,ae as r,Lt as s,Ae as t,$ as u,gn as v,zt as w,_r as x,Gg as y,He as z};
