@zyzgroup/core-vue 0.0.10 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/ce/style.css +1 -1
- package/ce/yz_custom_element.iife.js +37 -76
- package/ce/yz_custom_element.iife.js.map +1 -1
- package/ce/yz_custom_element.js +9416 -41421
- package/ce/yz_custom_element.js.map +1 -1
- package/ce/yz_custom_element.umd.cjs +37 -76
- package/ce/yz_custom_element.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/dist/zyzgroup_core_vue.iife.js +32 -55
- package/dist/zyzgroup_core_vue.iife.js.map +1 -0
- package/dist/zyzgroup_core_vue.js +7640 -37883
- package/dist/zyzgroup_core_vue.js.map +1 -0
- package/dist/zyzgroup_core_vue.umd.cjs +32 -55
- package/dist/zyzgroup_core_vue.umd.cjs.map +1 -0
- package/package.json +5 -5
- package/types/components/Button.ce.vue.d.ts +13 -15
- package/types/components/Button.vue.d.ts +13 -15
- package/types/components/CheckboxGroup.ce.vue.d.ts +79 -0
- package/types/components/CheckboxGroup.vue.d.ts +79 -0
- package/types/components/ColorPicker.ce.vue.d.ts +41 -0
- package/types/components/ColorPicker.vue.d.ts +41 -0
- package/types/components/Dialog.ce.vue.d.ts +12 -8
- package/types/components/Dialog.vue.d.ts +12 -8
- package/types/components/DialogLoading.ce.vue.d.ts +28 -7
- package/types/components/DialogLoading.vue.d.ts +28 -7
- package/types/components/MapTianditu.ce.vue.d.ts +67 -0
- package/types/components/MapTianditu.vue.d.ts +67 -0
- package/types/components/MobileLayout.ce.vue.d.ts +1 -1
- package/types/components/MobileLayout.vue.d.ts +1 -1
- package/types/components/Overlay.ce.vue.d.ts +40 -0
- package/types/components/Overlay.vue.d.ts +40 -0
- package/types/components/PlateDisplay.ce.vue.d.ts +37 -0
- package/types/components/PlateDisplay.vue.d.ts +37 -0
- package/types/components/PlateKeyboard.ce.vue.d.ts +45 -0
- package/types/components/PlateKeyboard.vue.d.ts +45 -0
- package/types/components/PlateMobile.ce.vue.d.ts +35 -0
- package/types/components/PlateMobile.vue.d.ts +35 -0
- package/types/components/Pop.ce.vue.d.ts +62 -0
- package/types/components/Pop.vue.d.ts +62 -0
- package/types/components/Popover.ce.vue.d.ts +37 -0
- package/types/components/Popover.vue.d.ts +37 -0
- package/types/components/PopoverHeadlessUI.ce.vue.d.ts +10 -0
- package/types/components/PopoverHeadlessUI.vue.d.ts +10 -0
- package/types/components/RadioGroup.ce.vue.d.ts +79 -0
- package/types/components/RadioGroup.vue.d.ts +79 -0
- package/types/components/RadioGroupHeadlessUI.ce.vue.d.ts +76 -0
- package/types/components/RadioGroupHeadlessUI.vue.d.ts +76 -0
- package/types/components/ResizeObserver.ce.vue.d.ts +37 -0
- package/types/components/ResizeObserver.vue.d.ts +37 -0
- package/types/components/Select.ce.vue.d.ts +31 -4
- package/types/components/Select.vue.d.ts +31 -4
- package/types/components/SlideLeftItem.ce.vue.d.ts +60 -0
- package/types/components/SlideLeftItem.vue.d.ts +60 -0
- package/types/components/Switch.ce.vue.d.ts +63 -0
- package/types/components/Switch.vue.d.ts +63 -0
- package/types/components/SwitchHeadlessUI.ce.vue.d.ts +15 -0
- package/types/components/SwitchHeadlessUI.vue.d.ts +15 -0
- package/types/components/Tab.ce.vue.d.ts +30 -0
- package/types/components/Tab.vue.d.ts +30 -0
- package/types/components/TabHeadlessUI.ce.vue.d.ts +67 -0
- package/types/components/TabHeadlessUI.vue.d.ts +67 -0
- package/types/components/Tabs.ce.vue.d.ts +33 -0
- package/types/components/Tabs.vue.d.ts +33 -0
- package/types/components/TabsForCE.ce.vue.d.ts +38 -0
- package/types/components/TabsForCE.vue.d.ts +38 -0
- package/types/components/svg/SVGCheck.ce.vue.d.ts +34 -0
- package/types/components/svg/SVGCheck.vue.d.ts +34 -0
- package/types/components/svg/SVGCleanUp.ce.vue.d.ts +34 -0
- package/types/components/svg/SVGCleanUp.vue.d.ts +34 -0
- package/types/components/svg/SVGDelete.ce.vue.d.ts +36 -0
- package/types/components/svg/SVGDelete.vue.d.ts +36 -0
- package/types/components/svg/SVGFail.ce.vue.d.ts +36 -0
- package/types/components/svg/SVGFail.vue.d.ts +36 -0
- package/types/components/svg/SVGHome.ce.vue.d.ts +36 -0
- package/types/components/svg/SVGHome.vue.d.ts +36 -0
- package/types/components/svg/SVGPrompt.ce.vue.d.ts +36 -0
- package/types/components/svg/SVGPrompt.vue.d.ts +36 -0
- package/types/components/svg/SVGQuestion.ce.vue.d.ts +36 -0
- package/types/components/svg/SVGQuestion.vue.d.ts +36 -0
- package/types/components/svg/SVGReturn.ce.vue.d.ts +36 -0
- package/types/components/svg/SVGReturn.vue.d.ts +36 -0
- package/types/components/svg/SVGSuccess.vue.d.ts +36 -0
- package/types/components/svg/SVGWaiting.ce.vue.d.ts +36 -0
- package/types/components/svg/SVGWaiting.vue.d.ts +36 -0
- package/types/hooks/useWindowSize.d.ts +5 -0
- package/types/lib.d.ts +19 -3
- package/dist/vite.svg +0 -1
|
@@ -1,33 +1,34 @@
|
|
|
1
|
-
var YZCustomElement=function(
|
|
1
|
+
var YZCustomElement=function(lo){"use strict";/**
|
|
2
2
|
* @vue/shared v3.4.25
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
|
-
**//*! #__NO_SIDE_EFFECTS__ */function
|
|
5
|
+
**//*! #__NO_SIDE_EFFECTS__ */function Gt(t,e){const o=new Set(t.split(","));return e?n=>o.has(n.toLowerCase()):n=>o.has(n)}const ae={}.NODE_ENV!=="production"?Object.freeze({}):{},Kt={}.NODE_ENV!=="production"?Object.freeze([]):[],ge=()=>{},Bl=()=>!1,co=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Fo=t=>t.startsWith("onUpdate:"),de=Object.assign,zn=(t,e)=>{const o=t.indexOf(e);o>-1&&t.splice(o,1)},Wl=Object.prototype.hasOwnProperty,Z=(t,e)=>Wl.call(t,e),F=Array.isArray,$t=t=>zo(t)==="[object Map]",Cs=t=>zo(t)==="[object Set]",W=t=>typeof t=="function",me=t=>typeof t=="string",Tt=t=>typeof t=="symbol",ie=t=>t!==null&&typeof t=="object",Hn=t=>(ie(t)||W(t))&&W(t.then)&&W(t.catch),ks=Object.prototype.toString,zo=t=>ks.call(t),Bn=t=>zo(t).slice(8,-1),Ns=t=>zo(t)==="[object Object]",Wn=t=>me(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,uo=Gt(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ul=Gt("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Ho=t=>{const e=Object.create(null);return o=>e[o]||(e[o]=t(o))},Gl=/-(\w)/g,Re=Ho(t=>t.replace(Gl,(e,o)=>o?o.toUpperCase():"")),Kl=/\B([A-Z])/g,je=Ho(t=>t.replace(Kl,"-$1").toLowerCase()),Dt=Ho(t=>t.charAt(0).toUpperCase()+t.slice(1)),Pt=Ho(t=>t?`on${Dt(t)}`:""),gt=(t,e)=>!Object.is(t,e),fo=(t,e)=>{for(let o=0;o<t.length;o++)t[o](e)},Os=(t,e,o)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:o})},ql=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Ss=t=>{const e=me(t)?Number(t):NaN;return isNaN(e)?t:e};let $s;const Un=()=>$s||($s=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function R(t){if(F(t)){const e={};for(let o=0;o<t.length;o++){const n=t[o],i=me(n)?Jl(n):R(n);if(i)for(const s in i)e[s]=i[s]}return e}else if(me(t)||ie(t))return t}const Yl=/;(?![^(]*\))/g,Zl=/:([^]+)/,Xl=/\/\*[^]*?\*\//g;function Jl(t){const e={};return t.replace(Xl,"").split(Yl).forEach(o=>{if(o){const n=o.split(Zl);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function U(t){let e="";if(me(t))e=t;else if(F(t))for(let o=0;o<t.length;o++){const n=U(t[o]);n&&(e+=n+" ")}else if(ie(t))for(const o in t)t[o]&&(e+=o+" ");return e.trim()}const Ql=Gt("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Ts(t){return!!t||t===""}const Oe=t=>me(t)?t:t==null?"":F(t)||ie(t)&&(t.toString===ks||!W(t.toString))?JSON.stringify(t,Ds,2):String(t),Ds=(t,e)=>e&&e.__v_isRef?Ds(t,e.value):$t(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((o,[n,i],s)=>(o[Gn(n,s)+" =>"]=i,o),{})}:Cs(e)?{[`Set(${e.size})`]:[...e.values()].map(o=>Gn(o))}:Tt(e)?Gn(e):ie(e)&&!F(e)&&!Ns(e)?String(e):e,Gn=(t,e="")=>{var o;return Tt(t)?`Symbol(${(o=t.description)!=null?o:e})`:t};/**
|
|
6
6
|
* @vue/reactivity v3.4.25
|
|
7
7
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
8
|
* @license MIT
|
|
9
|
-
**/function Lo(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let ui;class LP{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=ui,!t&&ui&&(this.index=(ui.scopes||(ui.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const r=ui;try{return ui=this,t()}finally{ui=r}}else({}).NODE_ENV!=="production"&&Lo("cannot run an inactive effect scope.")}on(){ui=this}off(){ui=this.parent}stop(t){if(this._active){let r,n;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].stop();for(r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.scopes)for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].stop(!0);if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function VP(e,t=ui){t&&t.active&&t.effects.push(e)}function UP(){return ui}let Ts;class up{constructor(t,r,n,i){this.fn=t,this.trigger=r,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,VP(this,i)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,Zi();for(let t=0;t<this._depsLength;t++){const r=this.deps[t];if(r.computed&&(zP(r.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),to()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Vo,r=Ts;try{return Vo=!0,Ts=this,this._runnings++,Vy(this),this.fn()}finally{Uy(this),this._runnings--,Ts=r,Vo=t}}stop(){var t;this.active&&(Vy(this),Uy(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function zP(e){return e.value}function Vy(e){e._trackId++,e._depsLength=0}function Uy(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)zy(e.deps[t],e);e.deps.length=e._depsLength}}function zy(e,t){const r=e.get(t);r!==void 0&&t._trackId!==r&&(e.delete(t),e.size===0&&e.cleanup())}let Vo=!0,hp=0;const Gy=[];function Zi(){Gy.push(Vo),Vo=!1}function to(){const e=Gy.pop();Vo=e===void 0?!0:e}function dp(){hp++}function fp(){for(hp--;!hp&&pp.length;)pp.shift()()}function By(e,t,r){var n;if(t.get(e)!==e._trackId){t.set(e,e._trackId);const i=e.deps[e._depsLength];i!==t?(i&&zy(i,e),e.deps[e._depsLength++]=t):e._depsLength++,{}.NODE_ENV!=="production"&&((n=e.onTrack)==null||n.call(e,cr({effect:e},r)))}}const pp=[];function Hy(e,t,r){var n;dp();for(const i of e.keys()){let o;i._dirtyLevel<t&&(o??(o=e.get(i)===i._trackId))&&(i._shouldSchedule||(i._shouldSchedule=i._dirtyLevel===0),i._dirtyLevel=t),i._shouldSchedule&&(o??(o=e.get(i)===i._trackId))&&({}.NODE_ENV!=="production"&&((n=i.onTrigger)==null||n.call(i,cr({effect:i},r))),i.trigger(),(!i._runnings||i.allowRecurse)&&i._dirtyLevel!==2&&(i._shouldSchedule=!1,i.scheduler&&pp.push(i.scheduler)))}fp()}const qy=(e,t)=>{const r=new Map;return r.cleanup=e,r.computed=t,r},mp=new WeakMap,Os=Symbol({}.NODE_ENV!=="production"?"iterate":""),gp=Symbol({}.NODE_ENV!=="production"?"Map key iterate":"");function tn(e,t,r){if(Vo&&Ts){let n=mp.get(e);n||mp.set(e,n=new Map);let i=n.get(r);i||n.set(r,i=qy(()=>n.delete(r))),By(Ts,i,{}.NODE_ENV!=="production"?{target:e,type:t,key:r}:void 0)}}function Oi(e,t,r,n,i,o){const s=mp.get(e);if(!s)return;let a=[];if(t==="clear")a=[...s.values()];else if(r==="length"&&oe(e)){const c=Number(n);s.forEach((l,u)=>{(u==="length"||!ks(u)&&u>=c)&&a.push(l)})}else switch(r!==void 0&&a.push(s.get(r)),t){case"add":oe(e)?op(r)&&a.push(s.get("length")):(a.push(s.get(Os)),Cs(e)&&a.push(s.get(gp)));break;case"delete":oe(e)||(a.push(s.get(Os)),Cs(e)&&a.push(s.get(gp)));break;case"set":Cs(e)&&a.push(s.get(Os));break}dp();for(const c of a)c&&Hy(c,4,{}.NODE_ENV!=="production"?{target:e,type:t,key:r,newValue:n,oldValue:i,oldTarget:o}:void 0);fp()}const GP=Da("__proto__,__v_isRef,__isVue"),Ky=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ks)),Yy=BP();function BP(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const n=ce(this);for(let o=0,s=this.length;o<s;o++)tn(n,"get",o+"");const i=n[t](...r);return i===-1||i===!1?n[t](...r.map(ce)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...r){Zi(),dp();const n=ce(this)[t].apply(this,r);return fp(),to(),n}}),e}function HP(e){ks(e)||(e=String(e));const t=ce(this);return tn(t,"has",e),t.hasOwnProperty(e)}class Xy{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,n){const i=this._isReadonly,o=this._isShallow;if(r==="__v_isReactive")return!i;if(r==="__v_isReadonly")return i;if(r==="__v_isShallow")return o;if(r==="__v_raw")return n===(i?o?s_:o_:o?i_:n_).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const s=oe(t);if(!i){if(s&&Te(Yy,r))return Reflect.get(Yy,r,n);if(r==="hasOwnProperty")return HP}const a=Reflect.get(t,r,n);return(ks(r)?Ky.has(r):GP(r))||(i||tn(t,"get",r),o)?a:en(a)?s&&op(r)?a:a.value:qe(a)?i?a_(a):yp(a):a}}class Jy extends Xy{constructor(t=!1){super(!1,t)}set(t,r,n,i){let o=t[r];if(!this._isShallow){const c=Ns(o);if(!As(n)&&!Ns(n)&&(o=ce(o),n=ce(n)),!oe(t)&&en(o)&&!en(n))return c?!1:(o.value=n,!0)}const s=oe(t)&&op(r)?Number(r)<t.length:Te(t,r),a=Reflect.set(t,r,n,i);return t===ce(i)&&(s?Mo(n,o)&&Oi(t,"set",r,n,o):Oi(t,"add",r,n)),a}deleteProperty(t,r){const n=Te(t,r),i=t[r],o=Reflect.deleteProperty(t,r);return o&&n&&Oi(t,"delete",r,void 0,i),o}has(t,r){const n=Reflect.has(t,r);return(!ks(r)||!Ky.has(r))&&tn(t,"has",r),n}ownKeys(t){return tn(t,"iterate",oe(t)?"length":Os),Reflect.ownKeys(t)}}class Wy extends Xy{constructor(t=!1){super(!0,t)}set(t,r){return{}.NODE_ENV!=="production"&&Lo(`Set operation on key "${String(r)}" failed: target is readonly.`,t),!0}deleteProperty(t,r){return{}.NODE_ENV!=="production"&&Lo(`Delete operation on key "${String(r)}" failed: target is readonly.`,t),!0}}const qP=new Jy,KP=new Wy,YP=new Jy(!0),XP=new Wy(!0),vp=e=>e,lh=e=>Reflect.getPrototypeOf(e);function ch(e,t,r=!1,n=!1){e=e.__v_raw;const i=ce(e),o=ce(t);r||(Mo(t,o)&&tn(i,"get",t),tn(i,"get",o));const{has:s}=lh(i),a=n?vp:r?bp:kl;if(s.call(i,t))return a(e.get(t));if(s.call(i,o))return a(e.get(o));e!==i&&e.get(t)}function uh(e,t=!1){const r=this.__v_raw,n=ce(r),i=ce(e);return t||(Mo(e,i)&&tn(n,"has",e),tn(n,"has",i)),e===i?r.has(e):r.has(e)||r.has(i)}function hh(e,t=!1){return e=e.__v_raw,!t&&tn(ce(e),"iterate",Os),Reflect.get(e,"size",e)}function Qy(e){e=ce(e);const t=ce(this);return lh(t).has.call(t,e)||(t.add(e),Oi(t,"add",e,e)),this}function Zy(e,t){t=ce(t);const r=ce(this),{has:n,get:i}=lh(r);let o=n.call(r,e);o?{}.NODE_ENV!=="production"&&r_(r,n,e):(e=ce(e),o=n.call(r,e));const s=i.call(r,e);return r.set(e,t),o?Mo(t,s)&&Oi(r,"set",e,t,s):Oi(r,"add",e,t),this}function t_(e){const t=ce(this),{has:r,get:n}=lh(t);let i=r.call(t,e);i?{}.NODE_ENV!=="production"&&r_(t,r,e):(e=ce(e),i=r.call(t,e));const o=n?n.call(t,e):void 0,s=t.delete(e);return i&&Oi(t,"delete",e,void 0,o),s}function e_(){const e=ce(this),t=e.size!==0,r={}.NODE_ENV!=="production"?Cs(e)?new Map(e):new Set(e):void 0,n=e.clear();return t&&Oi(e,"clear",void 0,void 0,r),n}function dh(e,t){return function(n,i){const o=this,s=o.__v_raw,a=ce(s),c=t?vp:e?bp:kl;return!e&&tn(a,"iterate",Os),s.forEach((l,u)=>n.call(i,c(l),c(u),o))}}function fh(e,t,r){return function(...n){const i=this.__v_raw,o=ce(i),s=Cs(o),a=e==="entries"||e===Symbol.iterator&&s,c=e==="keys"&&s,l=i[e](...n),u=r?vp:t?bp:kl;return!t&&tn(o,"iterate",c?gp:Os),{next(){const{value:h,done:f}=l.next();return f?{value:h,done:f}:{value:a?[u(h[0]),u(h[1])]:u(h),done:f}},[Symbol.iterator](){return this}}}}function Uo(e){return function(...t){if({}.NODE_ENV!=="production"){const r=t[0]?`on key "${t[0]}" `:"";Lo(`${ah(e)} operation ${r}failed: target is readonly.`,ce(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function JP(){const e={get(o){return ch(this,o)},get size(){return hh(this)},has:uh,add:Qy,set:Zy,delete:t_,clear:e_,forEach:dh(!1,!1)},t={get(o){return ch(this,o,!1,!0)},get size(){return hh(this)},has:uh,add:Qy,set:Zy,delete:t_,clear:e_,forEach:dh(!1,!0)},r={get(o){return ch(this,o,!0)},get size(){return hh(this,!0)},has(o){return uh.call(this,o,!0)},add:Uo("add"),set:Uo("set"),delete:Uo("delete"),clear:Uo("clear"),forEach:dh(!0,!1)},n={get(o){return ch(this,o,!0,!0)},get size(){return hh(this,!0)},has(o){return uh.call(this,o,!0)},add:Uo("add"),set:Uo("set"),delete:Uo("delete"),clear:Uo("clear"),forEach:dh(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=fh(o,!1,!1),r[o]=fh(o,!0,!1),t[o]=fh(o,!1,!0),n[o]=fh(o,!0,!0)}),[e,r,t,n]}const[WP,QP,ZP,tT]=JP();function ph(e,t){const r=t?e?tT:ZP:e?QP:WP;return(n,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(Te(r,i)&&i in n?r:n,i,o)}const eT={get:ph(!1,!1)},rT={get:ph(!1,!0)},nT={get:ph(!0,!1)},iT={get:ph(!0,!0)};function r_(e,t,r){const n=ce(r);if(n!==r&&t.call(e,n)){const i=ip(e);Lo(`Reactive ${i} contains both the raw and reactive versions of the same object${i==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const n_=new WeakMap,i_=new WeakMap,o_=new WeakMap,s_=new WeakMap;function oT(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function sT(e){return e.__v_skip||!Object.isExtensible(e)?0:oT(ip(e))}function yp(e){return Ns(e)?e:mh(e,!1,qP,eT,n_)}function aT(e){return mh(e,!1,YP,rT,i_)}function a_(e){return mh(e,!0,KP,nT,o_)}function eo(e){return mh(e,!0,XP,iT,s_)}function mh(e,t,r,n,i){if(!qe(e))return{}.NODE_ENV!=="production"&&Lo(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const s=sT(e);if(s===0)return e;const a=new Proxy(e,s===2?n:r);return i.set(e,a),a}function Ia(e){return Ns(e)?Ia(e.__v_raw):!!(e&&e.__v_isReactive)}function Ns(e){return!!(e&&e.__v_isReadonly)}function As(e){return!!(e&&e.__v_isShallow)}function _p(e){return e?!!e.__v_raw:!1}function ce(e){const t=e&&e.__v_raw;return t?ce(t):e}function lT(e){return Object.isExtensible(e)&&jy(e,"__v_skip",!0),e}const kl=e=>qe(e)?yp(e):e,bp=e=>qe(e)?a_(e):e,cT="Computed is still dirty after getter evaluation, likely because a computed is mutating its own dependency in its getter. State mutations in computed getters should be avoided. Check the docs for more details: https://vuejs.org/guide/essentials/computed.html#getters-should-be-side-effect-free";class l_{constructor(t,r,n,i){this.getter=t,this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new up(()=>t(this._value),()=>gh(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const t=ce(this);return(!t._cacheable||t.effect.dirty)&&Mo(t._value,t._value=t.effect.run())&&gh(t,4),c_(t),t.effect._dirtyLevel>=2&&({}.NODE_ENV!=="production"&&this._warnRecursive&&Lo(cT,`
|
|
9
|
+
**/function yt(t,...e){console.warn(`[Vue warn] ${t}`,...e)}let Be;class ec{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Be,!e&&Be&&(this.index=(Be.scopes||(Be.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const o=Be;try{return Be=this,e()}finally{Be=o}}else({}).NODE_ENV!=="production"&&yt("cannot run an inactive effect scope.")}on(){Be=this}off(){Be=this.parent}stop(e){if(this._active){let o,n;for(o=0,n=this.effects.length;o<n;o++)this.effects[o].stop();for(o=0,n=this.cleanups.length;o<n;o++)this.cleanups[o]();if(this.scopes)for(o=0,n=this.scopes.length;o<n;o++)this.scopes[o].stop(!0);if(!this.detached&&this.parent&&!e){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function tc(t,e=Be){e&&e.active&&e.effects.push(t)}function oc(){return Be}let Lt;class Kn{constructor(e,o,n,i){this.fn=e,this.trigger=o,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,tc(this,i)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,nt();for(let e=0;e<this._depsLength;e++){const o=this.deps[e];if(o.computed&&(nc(o.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),it()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=bt,o=Lt;try{return bt=!0,Lt=this,this._runnings++,Ps(this),this.fn()}finally{Ls(this),this._runnings--,Lt=o,bt=e}}stop(){var e;this.active&&(Ps(this),Ls(this),(e=this.onStop)==null||e.call(this),this.active=!1)}}function nc(t){return t.value}function Ps(t){t._trackId++,t._depsLength=0}function Ls(t){if(t.deps.length>t._depsLength){for(let e=t._depsLength;e<t.deps.length;e++)Vs(t.deps[e],t);t.deps.length=t._depsLength}}function Vs(t,e){const o=t.get(e);o!==void 0&&e._trackId!==o&&(t.delete(e),t.size===0&&t.cleanup())}let bt=!0,qn=0;const Is=[];function nt(){Is.push(bt),bt=!1}function it(){const t=Is.pop();bt=t===void 0?!0:t}function Yn(){qn++}function Zn(){for(qn--;!qn&&Xn.length;)Xn.shift()()}function Ms(t,e,o){var n;if(e.get(t)!==t._trackId){e.set(t,t._trackId);const i=t.deps[t._depsLength];i!==e?(i&&Vs(i,t),t.deps[t._depsLength++]=e):t._depsLength++,{}.NODE_ENV!=="production"&&((n=t.onTrack)==null||n.call(t,de({effect:t},o)))}}const Xn=[];function As(t,e,o){var n;Yn();for(const i of t.keys()){let s;i._dirtyLevel<e&&(s??(s=t.get(i)===i._trackId))&&(i._shouldSchedule||(i._shouldSchedule=i._dirtyLevel===0),i._dirtyLevel=e),i._shouldSchedule&&(s??(s=t.get(i)===i._trackId))&&({}.NODE_ENV!=="production"&&((n=i.onTrigger)==null||n.call(i,de({effect:i},o))),i.trigger(),(!i._runnings||i.allowRecurse)&&i._dirtyLevel!==2&&(i._shouldSchedule=!1,i.scheduler&&Xn.push(i.scheduler)))}Zn()}const Rs=(t,e)=>{const o=new Map;return o.cleanup=t,o.computed=e,o},Jn=new WeakMap,Vt=Symbol({}.NODE_ENV!=="production"?"iterate":""),Qn=Symbol({}.NODE_ENV!=="production"?"Map key iterate":"");function Se(t,e,o){if(bt&&Lt){let n=Jn.get(t);n||Jn.set(t,n=new Map);let i=n.get(o);i||n.set(o,i=Rs(()=>n.delete(o))),Ms(Lt,i,{}.NODE_ENV!=="production"?{target:t,type:e,key:o}:void 0)}}function Ze(t,e,o,n,i,s){const r=Jn.get(t);if(!r)return;let a=[];if(e==="clear")a=[...r.values()];else if(o==="length"&&F(t)){const l=Number(n);r.forEach((c,d)=>{(d==="length"||!Tt(d)&&d>=l)&&a.push(c)})}else switch(o!==void 0&&a.push(r.get(o)),e){case"add":F(t)?Wn(o)&&a.push(r.get("length")):(a.push(r.get(Vt)),$t(t)&&a.push(r.get(Qn)));break;case"delete":F(t)||(a.push(r.get(Vt)),$t(t)&&a.push(r.get(Qn)));break;case"set":$t(t)&&a.push(r.get(Vt));break}Yn();for(const l of a)l&&As(l,4,{}.NODE_ENV!=="production"?{target:t,type:e,key:o,newValue:n,oldValue:i,oldTarget:s}:void 0);Zn()}const ic=Gt("__proto__,__v_isRef,__isVue"),js=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Tt)),Fs=sc();function sc(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...o){const n=Y(this);for(let s=0,r=this.length;s<r;s++)Se(n,"get",s+"");const i=n[e](...o);return i===-1||i===!1?n[e](...o.map(Y)):i}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...o){nt(),Yn();const n=Y(this)[e].apply(this,o);return Zn(),it(),n}}),t}function rc(t){Tt(t)||(t=String(t));const e=Y(this);return Se(e,"has",t),e.hasOwnProperty(t)}class zs{constructor(e=!1,o=!1){this._isReadonly=e,this._isShallow=o}get(e,o,n){const i=this._isReadonly,s=this._isShallow;if(o==="__v_isReactive")return!i;if(o==="__v_isReadonly")return i;if(o==="__v_isShallow")return s;if(o==="__v_raw")return n===(i?s?Js:Xs:s?Zs:Ys).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const r=F(e);if(!i){if(r&&Z(Fs,o))return Reflect.get(Fs,o,n);if(o==="hasOwnProperty")return rc}const a=Reflect.get(e,o,n);return(Tt(o)?js.has(o):ic(o))||(i||Se(e,"get",o),s)?a:$e(a)?r&&Wn(o)?a:a.value:ie(a)?i?Qs(a):Fe(a):a}}class Hs extends zs{constructor(e=!1){super(!1,e)}set(e,o,n,i){let s=e[o];if(!this._isShallow){const l=It(s);if(!Mt(n)&&!It(n)&&(s=Y(s),n=Y(n)),!F(e)&&$e(s)&&!$e(n))return l?!1:(s.value=n,!0)}const r=F(e)&&Wn(o)?Number(o)<e.length:Z(e,o),a=Reflect.set(e,o,n,i);return e===Y(i)&&(r?gt(n,s)&&Ze(e,"set",o,n,s):Ze(e,"add",o,n)),a}deleteProperty(e,o){const n=Z(e,o),i=e[o],s=Reflect.deleteProperty(e,o);return s&&n&&Ze(e,"delete",o,void 0,i),s}has(e,o){const n=Reflect.has(e,o);return(!Tt(o)||!js.has(o))&&Se(e,"has",o),n}ownKeys(e){return Se(e,"iterate",F(e)?"length":Vt),Reflect.ownKeys(e)}}class Bs extends zs{constructor(e=!1){super(!0,e)}set(e,o){return{}.NODE_ENV!=="production"&&yt(`Set operation on key "${String(o)}" failed: target is readonly.`,e),!0}deleteProperty(e,o){return{}.NODE_ENV!=="production"&&yt(`Delete operation on key "${String(o)}" failed: target is readonly.`,e),!0}}const ac=new Hs,lc=new Bs,cc=new Hs(!0),uc=new Bs(!0),ei=t=>t,Bo=t=>Reflect.getPrototypeOf(t);function Wo(t,e,o=!1,n=!1){t=t.__v_raw;const i=Y(t),s=Y(e);o||(gt(e,s)&&Se(i,"get",e),Se(i,"get",s));const{has:r}=Bo(i),a=n?ei:o?oi:po;if(r.call(i,e))return a(t.get(e));if(r.call(i,s))return a(t.get(s));t!==i&&t.get(e)}function Uo(t,e=!1){const o=this.__v_raw,n=Y(o),i=Y(t);return e||(gt(t,i)&&Se(n,"has",t),Se(n,"has",i)),t===i?o.has(t):o.has(t)||o.has(i)}function Go(t,e=!1){return t=t.__v_raw,!e&&Se(Y(t),"iterate",Vt),Reflect.get(t,"size",t)}function Ws(t){t=Y(t);const e=Y(this);return Bo(e).has.call(e,t)||(e.add(t),Ze(e,"add",t,t)),this}function Us(t,e){e=Y(e);const o=Y(this),{has:n,get:i}=Bo(o);let s=n.call(o,t);s?{}.NODE_ENV!=="production"&&qs(o,n,t):(t=Y(t),s=n.call(o,t));const r=i.call(o,t);return o.set(t,e),s?gt(e,r)&&Ze(o,"set",t,e,r):Ze(o,"add",t,e),this}function Gs(t){const e=Y(this),{has:o,get:n}=Bo(e);let i=o.call(e,t);i?{}.NODE_ENV!=="production"&&qs(e,o,t):(t=Y(t),i=o.call(e,t));const s=n?n.call(e,t):void 0,r=e.delete(t);return i&&Ze(e,"delete",t,void 0,s),r}function Ks(){const t=Y(this),e=t.size!==0,o={}.NODE_ENV!=="production"?$t(t)?new Map(t):new Set(t):void 0,n=t.clear();return e&&Ze(t,"clear",void 0,void 0,o),n}function Ko(t,e){return function(n,i){const s=this,r=s.__v_raw,a=Y(r),l=e?ei:t?oi:po;return!t&&Se(a,"iterate",Vt),r.forEach((c,d)=>n.call(i,l(c),l(d),s))}}function qo(t,e,o){return function(...n){const i=this.__v_raw,s=Y(i),r=$t(s),a=t==="entries"||t===Symbol.iterator&&r,l=t==="keys"&&r,c=i[t](...n),d=o?ei:e?oi:po;return!e&&Se(s,"iterate",l?Qn:Vt),{next(){const{value:f,done:u}=c.next();return u?{value:f,done:u}:{value:a?[d(f[0]),d(f[1])]:d(f),done:u}},[Symbol.iterator](){return this}}}}function _t(t){return function(...e){if({}.NODE_ENV!=="production"){const o=e[0]?`on key "${e[0]}" `:"";yt(`${Dt(t)} operation ${o}failed: target is readonly.`,Y(this))}return t==="delete"?!1:t==="clear"?void 0:this}}function dc(){const t={get(s){return Wo(this,s)},get size(){return Go(this)},has:Uo,add:Ws,set:Us,delete:Gs,clear:Ks,forEach:Ko(!1,!1)},e={get(s){return Wo(this,s,!1,!0)},get size(){return Go(this)},has:Uo,add:Ws,set:Us,delete:Gs,clear:Ks,forEach:Ko(!1,!0)},o={get(s){return Wo(this,s,!0)},get size(){return Go(this,!0)},has(s){return Uo.call(this,s,!0)},add:_t("add"),set:_t("set"),delete:_t("delete"),clear:_t("clear"),forEach:Ko(!0,!1)},n={get(s){return Wo(this,s,!0,!0)},get size(){return Go(this,!0)},has(s){return Uo.call(this,s,!0)},add:_t("add"),set:_t("set"),delete:_t("delete"),clear:_t("clear"),forEach:Ko(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{t[s]=qo(s,!1,!1),o[s]=qo(s,!0,!1),e[s]=qo(s,!1,!0),n[s]=qo(s,!0,!0)}),[t,o,e,n]}const[fc,pc,hc,mc]=dc();function Yo(t,e){const o=e?t?mc:hc:t?pc:fc;return(n,i,s)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?n:Reflect.get(Z(o,i)&&i in n?o:n,i,s)}const vc={get:Yo(!1,!1)},gc={get:Yo(!1,!0)},yc={get:Yo(!0,!1)},bc={get:Yo(!0,!0)};function qs(t,e,o){const n=Y(o);if(n!==o&&e.call(t,n)){const i=Bn(t);yt(`Reactive ${i} contains both the raw and reactive versions of the same object${i==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const Ys=new WeakMap,Zs=new WeakMap,Xs=new WeakMap,Js=new WeakMap;function _c(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function xc(t){return t.__v_skip||!Object.isExtensible(t)?0:_c(Bn(t))}function Fe(t){return It(t)?t:Zo(t,!1,ac,vc,Ys)}function wc(t){return Zo(t,!1,cc,gc,Zs)}function Qs(t){return Zo(t,!0,lc,yc,Xs)}function st(t){return Zo(t,!0,uc,bc,Js)}function Zo(t,e,o,n,i){if(!ie(t))return{}.NODE_ENV!=="production"&&yt(`value cannot be made reactive: ${String(t)}`),t;if(t.__v_raw&&!(e&&t.__v_isReactive))return t;const s=i.get(t);if(s)return s;const r=xc(t);if(r===0)return t;const a=new Proxy(t,r===2?n:o);return i.set(t,a),a}function qt(t){return It(t)?qt(t.__v_raw):!!(t&&t.__v_isReactive)}function It(t){return!!(t&&t.__v_isReadonly)}function Mt(t){return!!(t&&t.__v_isShallow)}function ti(t){return t?!!t.__v_raw:!1}function Y(t){const e=t&&t.__v_raw;return e?Y(e):t}function Ec(t){return Object.isExtensible(t)&&Os(t,"__v_skip",!0),t}const po=t=>ie(t)?Fe(t):t,oi=t=>ie(t)?Qs(t):t,Cc="Computed is still dirty after getter evaluation, likely because a computed is mutating its own dependency in its getter. State mutations in computed getters should be avoided. Check the docs for more details: https://vuejs.org/guide/essentials/computed.html#getters-should-be-side-effect-free";class er{constructor(e,o,n,i){this.getter=e,this._setter=o,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Kn(()=>e(this._value),()=>Xo(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const e=Y(this);return(!e._cacheable||e.effect.dirty)&>(e._value,e._value=e.effect.run())&&Xo(e,4),tr(e),e.effect._dirtyLevel>=2&&({}.NODE_ENV!=="production"&&this._warnRecursive&&yt(Cc,`
|
|
10
10
|
|
|
11
|
-
getter: `,this.getter),
|
|
11
|
+
getter: `,this.getter),Xo(e,2)),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function kc(t,e,o=!1){let n,i;const s=W(t);s?(n=t,i={}.NODE_ENV!=="production"?()=>{yt("Write operation failed: computed value is readonly")}:ge):(n=t.get,i=t.set);const r=new er(n,i,s||!i,o);return{}.NODE_ENV!=="production"&&e&&!o&&(r.effect.onTrack=e.onTrack,r.effect.onTrigger=e.onTrigger),r}function tr(t){var e;bt&&Lt&&(t=Y(t),Ms(Lt,(e=t.dep)!=null?e:t.dep=Rs(()=>t.dep=void 0,t instanceof er?t:void 0),{}.NODE_ENV!=="production"?{target:t,type:"get",key:"value"}:void 0))}function Xo(t,e=4,o){t=Y(t);const n=t.dep;n&&As(n,e,{}.NODE_ENV!=="production"?{target:t,type:"set",key:"value",newValue:o}:void 0)}function $e(t){return!!(t&&t.__v_isRef===!0)}function L(t){return Nc(t,!1)}function Nc(t,e){return $e(t)?t:new Oc(t,e)}class Oc{constructor(e,o){this.__v_isShallow=o,this.dep=void 0,this.__v_isRef=!0,this._rawValue=o?e:Y(e),this._value=o?e:po(e)}get value(){return tr(this),this._value}set value(e){const o=this.__v_isShallow||Mt(e)||It(e);e=o?e:Y(e),gt(e,this._rawValue)&&(this._rawValue=e,this._value=o?e:po(e),Xo(this,4,e))}}function le(t){return $e(t)?t.value:t}const Sc={get:(t,e,o)=>le(Reflect.get(t,e,o)),set:(t,e,o,n)=>{const i=t[e];return $e(i)&&!$e(o)?(i.value=o,!0):Reflect.set(t,e,o,n)}};function or(t){return qt(t)?t:new Proxy(t,Sc)}/**
|
|
12
12
|
* @vue/runtime-core v3.4.25
|
|
13
13
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
14
14
|
* @license MIT
|
|
15
|
-
**/const
|
|
16
|
-
`),i]);else{const
|
|
17
|
-
`,...
|
|
18
|
-
`],...gT(r))}),t}function gT({vnode:e,recurseCount:t}){const r=t>0?`... (${t} recursive calls)`:"",n=e.component?e.component.parent==null:!1,i=` at <${Ih(e.component,e.type,n)}`,o=">"+r;return e.props?[i,...vT(e.props),o]:[i+o]}function vT(e){const t=[],r=Object.keys(e);return r.slice(0,3).forEach(n=>{t.push(...h_(n,e[n]))}),r.length>3&&t.push(" ..."),t}function h_(e,t,r){return wr(t)?(t=JSON.stringify(t),r?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?r?t:[`${e}=${t}`]:en(t)?(t=h_(e,ce(t.value),!0),r?t:[`${e}=Ref<`,t,">"]):pe(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ce(t),r?t:[`${e}=`,t])}function yT(e,t){({}).NODE_ENV!=="production"&&e!==void 0&&(typeof e!="number"?Mt(`${t} is not a valid number - got ${JSON.stringify(e)}.`):isNaN(e)&&Mt(`${t} is NaN - the duration expression might be incorrect.`))}const wp={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 ro(e,t,r,n){try{return n?e(...n):e()}catch(i){Pl(i,t,r)}}function Kn(e,t,r,n){if(pe(e)){const i=ro(e,t,r,n);return i&&np(i)&&i.catch(o=>{Pl(o,t,r)}),i}if(oe(e)){const i=[];for(let o=0;o<e.length;o++)i.push(Kn(e[o],t,r,n));return i}else({}).NODE_ENV!=="production"&&Mt(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`)}function Pl(e,t,r,n=!0){const i=t?t.vnode:null;if(t){let o=t.parent;const s=t.proxy,a={}.NODE_ENV!=="production"?wp[r]:`https://vuejs.org/error-reference/#runtime-${r}`;for(;o;){const l=o.ec;if(l){for(let u=0;u<l.length;u++)if(l[u](e,s,a)===!1)return}o=o.parent}const c=t.appContext.config.errorHandler;if(c){Zi(),ro(c,null,10,[e,s,a]),to();return}}_T(e,r,i,n)}function _T(e,t,r,n=!0){if({}.NODE_ENV!=="production"){const i=wp[t];if(r&&vh(r),Mt(`Unhandled error${i?` during execution of ${i}`:""}`),r&&yh(),n)throw e;console.error(e)}else console.error(e)}let Tl=!1,xp=!1;const ln=[];let Ni=0;const ja=[];let no=null,zo=0;const d_=Promise.resolve();let Sp=null;const bT=100;function io(e){const t=Sp||d_;return e?t.then(this?e.bind(this):e):t}function wT(e){let t=Ni+1,r=ln.length;for(;t<r;){const n=t+r>>>1,i=ln[n],o=Ol(i);o<e||o===e&&i.pre?t=n+1:r=n}return t}function _h(e){(!ln.length||!ln.includes(e,Tl&&e.allowRecurse?Ni+1:Ni))&&(e.id==null?ln.push(e):ln.splice(wT(e.id),0,e),f_())}function f_(){!Tl&&!xp&&(xp=!0,Sp=d_.then(v_))}function xT(e){const t=ln.indexOf(e);t>Ni&&ln.splice(t,1)}function p_(e){oe(e)?ja.push(...e):(!no||!no.includes(e,e.allowRecurse?zo+1:zo))&&ja.push(e),f_()}function m_(e,t,r=Tl?Ni+1:0){for({}.NODE_ENV!=="production"&&(t=t||new Map);r<ln.length;r++){const n=ln[r];if(n&&n.pre){if(e&&n.id!==e.uid||{}.NODE_ENV!=="production"&&$p(t,n))continue;ln.splice(r,1),r--,n()}}}function g_(e){if(ja.length){const t=[...new Set(ja)].sort((r,n)=>Ol(r)-Ol(n));if(ja.length=0,no){no.push(...t);return}for(no=t,{}.NODE_ENV!=="production"&&(e=e||new Map),zo=0;zo<no.length;zo++)({}).NODE_ENV!=="production"&&$p(e,no[zo])||no[zo]();no=null,zo=0}}const Ol=e=>e.id==null?1/0:e.id,ST=(e,t)=>{const r=Ol(e)-Ol(t);if(r===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return r};function v_(e){xp=!1,Tl=!0,{}.NODE_ENV!=="production"&&(e=e||new Map),ln.sort(ST);const t={}.NODE_ENV!=="production"?r=>$p(e,r):Cr;try{for(Ni=0;Ni<ln.length;Ni++){const r=ln[Ni];if(r&&r.active!==!1){if({}.NODE_ENV!=="production"&&t(r))continue;ro(r,null,14)}}}finally{Ni=0,ln.length=0,g_(e),Tl=!1,Sp=null,(ln.length||ja.length)&&v_(e)}}function $p(e,t){if(!e.has(t))e.set(t,1);else{const r=e.get(t);if(r>bT){const n=t.ownerInstance,i=n&&vb(n.type);return Pl(`Maximum recursive updates exceeded${i?` in component <${i}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}else e.set(t,r+1)}}let Rs=!1;const Fa=new Set;({}).NODE_ENV!=="production"&&(ap().__VUE_HMR_RUNTIME__={createRecord:Ep(y_),rerender:Ep(CT),reload:Ep(kT)});const Is=new Map;function $T(e){const t=e.type.__hmrId;let r=Is.get(t);r||(y_(t,e.type),r=Is.get(t)),r.instances.add(e)}function ET(e){Is.get(e.type.__hmrId).instances.delete(e)}function y_(e,t){return Is.has(e)?!1:(Is.set(e,{initialDef:Nl(t),instances:new Set}),!0)}function Nl(e){return yb(e)?e.__vccOpts:e}function CT(e,t){const r=Is.get(e);r&&(r.initialDef.render=t,[...r.instances].forEach(n=>{t&&(n.render=t,Nl(n.type).render=t),n.renderCache=[],Rs=!0,n.effect.dirty=!0,n.update(),Rs=!1}))}function kT(e,t){const r=Is.get(e);if(!r)return;t=Nl(t),__(r.initialDef,t);const n=[...r.instances];for(const i of n){const o=Nl(i.type);Fa.has(o)||(o!==r.initialDef&&__(o,t),Fa.add(o)),i.appContext.propsCache.delete(i.type),i.appContext.emitsCache.delete(i.type),i.appContext.optionsCache.delete(i.type),i.ceReload?(Fa.add(o),i.ceReload(t.styles),Fa.delete(o)):i.parent?(i.parent.effect.dirty=!0,_h(i.parent.update)):i.appContext.reload?i.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}p_(()=>{for(const i of n)Fa.delete(Nl(i.type))})}function __(e,t){cr(e,t);for(const r in e)r!=="__file"&&!(r in t)&&delete e[r]}function Ep(e){return(t,r)=>{try{return e(t,r)}catch(n){console.error(n),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let Ai,Al=[],Cp=!1;function Dl(e,...t){Ai?Ai.emit(e,...t):Cp||Al.push({event:e,args:t})}function b_(e,t){var r,n;Ai=e,Ai?(Ai.enabled=!0,Al.forEach(({event:i,args:o})=>Ai.emit(i,...o)),Al=[]):typeof window<"u"&&window.HTMLElement&&!((n=(r=window.navigator)==null?void 0:r.userAgent)!=null&&n.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{b_(o,t)}),setTimeout(()=>{Ai||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Cp=!0,Al=[])},3e3)):(Cp=!0,Al=[])}function PT(e,t){Dl("app:init",e,t,{Fragment:Kr,Text:Ll,Comment:Yr,Static:Oh})}function TT(e){Dl("app:unmount",e)}const OT=kp("component:added"),w_=kp("component:updated"),NT=kp("component:removed"),AT=e=>{Ai&&typeof Ai.cleanupBuffer=="function"&&!Ai.cleanupBuffer(e)&&NT(e)};/*! #__NO_SIDE_EFFECTS__ */function kp(e){return t=>{Dl(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const DT=x_("perf:start"),RT=x_("perf:end");function x_(e){return(t,r,n)=>{Dl(e,t.appContext.app,t.uid,t,r,n)}}function IT(e,t,r){Dl("component:emit",e.appContext.app,e,t,r)}function jT(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||Ze;if({}.NODE_ENV!=="production"){const{emitsOptions:u,propsOptions:[h]}=e;if(u)if(!(t in u))(!h||!(Ps(t)in h))&&Mt(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${Ps(t)}" prop.`);else{const f=u[t];pe(f)&&(f(...r)||Mt(`Invalid event arguments: event validation failed for event "${t}".`))}}let i=r;const o=t.startsWith("update:"),s=o&&t.slice(7);if(s&&s in n){const u=`${s==="modelValue"?"model":s}Modifiers`,{number:h,trim:f}=n[u]||Ze;f&&(i=r.map(d=>wr(d)?d.trim():d)),h&&(i=r.map(DP))}if({}.NODE_ENV!=="production"&&IT(e,t,i),{}.NODE_ENV!=="production"){const u=t.toLowerCase();u!==t&&n[Ps(u)]&&Mt(`Event "${u}" is emitted in component ${Ih(e,e.type)} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${In(t)}" instead of "${t}".`)}let a,c=n[a=Ps(t)]||n[a=Ps(Wi(t))];!c&&o&&(c=n[a=Ps(In(t))]),c&&Kn(c,e,6,i);const l=n[a+"Once"];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Kn(l,e,6,i)}}function S_(e,t,r=!1){const n=t.emitsCache,i=n.get(e);if(i!==void 0)return i;const o=e.emits;let s={},a=!1;if(!pe(e)){const c=l=>{const u=S_(l,t,!0);u&&(a=!0,cr(s,u))};!r&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!a?(qe(e)&&n.set(e,null),null):(oe(o)?o.forEach(c=>s[c]=null):cr(s,o),qe(e)&&n.set(e,s),s)}function bh(e,t){return!e||!$l(t)?!1:(t=t.slice(2).replace(/Once$/,""),Te(e,t[0].toLowerCase()+t.slice(1))||Te(e,In(t))||Te(e,t))}let Dr=null,$_=null;function wh(e){const t=Dr;return Dr=e,$_=e&&e.type.__scopeId||null,t}function jn(e,t=Dr,r){if(!t||e._n)return e;const n=(...i)=>{n._d&&sb(-1);const o=wh(t);let s;try{s=e(...i)}finally{wh(o),n._d&&sb(1)}return{}.NODE_ENV!=="production"&&w_(t),s};return n._n=!0,n._c=!0,n._d=!0,n}let Pp=!1;function xh(){Pp=!0}function Tp(e){const{type:t,vnode:r,proxy:n,withProxy:i,propsOptions:[o],slots:s,attrs:a,emit:c,render:l,renderCache:u,props:h,data:f,setupState:d,ctx:p,inheritAttrs:g}=e,v=wh(e);let b,y;({}).NODE_ENV!=="production"&&(Pp=!1);try{if(r.shapeFlag&4){const A=i||n,E={}.NODE_ENV!=="production"&&d.__isScriptSetup?new Proxy(A,{get(k,D,V){return Mt(`Property '${String(D)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(k,D,V)}}):A;b=fi(l.call(E,A,u,{}.NODE_ENV!=="production"?eo(h):h,d,f,p)),y=a}else{const A=t;({}).NODE_ENV!=="production"&&a===h&&xh(),b=fi(A.length>1?A({}.NODE_ENV!=="production"?eo(h):h,{}.NODE_ENV!=="production"?{get attrs(){return xh(),a},slots:s,emit:c}:{attrs:a,slots:s,emit:c}):A({}.NODE_ENV!=="production"?eo(h):h,null)),y=t.props?a:FT(a)}}catch(A){Vl.length=0,Pl(A,e,1),b=_r(Yr)}let m=b,x;if({}.NODE_ENV!=="production"&&b.patchFlag>0&&b.patchFlag&2048&&([m,x]=E_(b)),y&&g!==!1){const A=Object.keys(y),{shapeFlag:E}=m;if(A.length){if(E&7)o&&A.some(ih)&&(y=MT(y,o)),m=di(m,y);else if({}.NODE_ENV!=="production"&&!Pp&&m.type!==Yr){const k=Object.keys(a),D=[],V=[];for(let U=0,K=k.length;U<K;U++){const Y=k[U];$l(Y)?ih(Y)||D.push(Y[2].toLowerCase()+Y.slice(3)):V.push(Y)}V.length&&Mt(`Extraneous non-props attributes (${V.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),D.length&&Mt(`Extraneous non-emits event listeners (${D.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`)}}}return r.dirs&&({}.NODE_ENV!=="production"&&!C_(m)&&Mt("Runtime directive used on component with non-element root node. The directives will not function as intended."),m=di(m),m.dirs=m.dirs?m.dirs.concat(r.dirs):r.dirs),r.transition&&({}.NODE_ENV!=="production"&&!C_(m)&&Mt("Component inside <Transition> renders non-element root node that cannot be animated."),m.transition=r.transition),{}.NODE_ENV!=="production"&&x?x(m):b=m,wh(v),b}const E_=e=>{const t=e.children,r=e.dynamicChildren,n=Op(t,!1);if(n){if({}.NODE_ENV!=="production"&&n.patchFlag>0&&n.patchFlag&2048)return E_(n)}else return[e,void 0];const i=t.indexOf(n),o=r?r.indexOf(n):-1,s=a=>{t[i]=a,r&&(o>-1?r[o]=a:a.patchFlag>0&&(e.dynamicChildren=[...r,a]))};return[fi(n),s]};function Op(e,t=!0){let r;for(let n=0;n<e.length;n++){const i=e[n];if(La(i)){if(i.type!==Yr||i.children==="v-if"){if(r)return;if(r=i,{}.NODE_ENV!=="production"&&t&&r.patchFlag>0&&r.patchFlag&2048)return Op(r.children)}}else return}return r}const FT=e=>{let t;for(const r in e)(r==="class"||r==="style"||$l(r))&&((t||(t={}))[r]=e[r]);return t},MT=(e,t)=>{const r={};for(const n in e)(!ih(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r},C_=e=>e.shapeFlag&7||e.type===Yr;function LT(e,t,r){const{props:n,children:i,component:o}=e,{props:s,children:a,patchFlag:c}=t,l=o.emitsOptions;if({}.NODE_ENV!=="production"&&(i||a)&&Rs||t.dirs||t.transition)return!0;if(r&&c>=0){if(c&1024)return!0;if(c&16)return n?k_(n,s,l):!!s;if(c&8){const u=t.dynamicProps;for(let h=0;h<u.length;h++){const f=u[h];if(s[f]!==n[f]&&!bh(l,f))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:n===s?!1:n?s?k_(n,s,l):!0:!!s;return!1}function k_(e,t,r){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let i=0;i<n.length;i++){const o=n[i];if(t[o]!==e[o]&&!bh(r,o))return!0}return!1}function VT({vnode:e,parent:t},r){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=r,t=t.parent;else break}}const UT=Symbol.for("v-ndc"),zT=e=>e.__isSuspense;function GT(e,t){t&&t.pendingBranch?oe(e)?t.effects.push(...e):t.effects.push(e):p_(e)}const BT=Symbol.for("v-scx"),HT=()=>{{const e=Bo(BT);return e||{}.NODE_ENV!=="production"&&Mt("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function Sh(e,t){return Np(e,null,t)}const $h={};function qr(e,t,r){return{}.NODE_ENV!=="production"&&!pe(t)&&Mt("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),Np(e,t,r)}function Np(e,t,{immediate:r,deep:n,flush:i,once:o,onTrack:s,onTrigger:a}=Ze){if(t&&o){const k=t;t=(...D)=>{k(...D),E()}}({}).NODE_ENV!=="production"&&n!==void 0&&typeof n=="number"&&Mt('watch() "deep" option with number value will be used as watch depth in future versions. Please use a boolean instead to avoid potential breakage.'),{}.NODE_ENV!=="production"&&!t&&(r!==void 0&&Mt('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),n!==void 0&&Mt('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),o!==void 0&&Mt('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const c=k=>{Mt("Invalid watch source: ",k,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},l=Xr,u=k=>n===!0?k:js(k,n===!1?1:void 0);let h,f=!1,d=!1;if(en(e)?(h=()=>e.value,f=As(e)):Ia(e)?(h=()=>u(e),f=!0):oe(e)?(d=!0,f=e.some(k=>Ia(k)||As(k)),h=()=>e.map(k=>{if(en(k))return k.value;if(Ia(k))return u(k);if(pe(k))return ro(k,l,2);({}).NODE_ENV!=="production"&&c(k)})):pe(e)?t?h=()=>ro(e,l,2):h=()=>(p&&p(),Kn(e,l,3,[g])):(h=Cr,{}.NODE_ENV!=="production"&&c(e)),t&&n){const k=h;h=()=>js(k())}let p,g=k=>{p=x.onStop=()=>{ro(k,l,4),p=x.onStop=void 0}},v;if(Dh)if(g=Cr,t?r&&Kn(t,l,3,[h(),d?[]:void 0,g]):h(),i==="sync"){const k=HT();v=k.__watcherHandles||(k.__watcherHandles=[])}else return Cr;let b=d?new Array(e.length).fill($h):$h;const y=()=>{if(!(!x.active||!x.dirty))if(t){const k=x.run();(n||f||(d?k.some((D,V)=>Mo(D,b[V])):Mo(k,b)))&&(p&&p(),Kn(t,l,3,[k,b===$h?void 0:d&&b[0]===$h?[]:b,g]),b=k)}else x.run()};y.allowRecurse=!!t;let m;i==="sync"?m=y:i==="post"?m=()=>$n(y,l&&l.suspense):(y.pre=!0,l&&(y.id=l.uid),m=()=>_h(y));const x=new up(h,Cr,m),A=UP(),E=()=>{x.stop(),A&&rp(A.effects,x)};return{}.NODE_ENV!=="production"&&(x.onTrack=s,x.onTrigger=a),t?r?y():b=x.run():i==="post"?$n(x.run.bind(x),l&&l.suspense):x.run(),v&&v.push(E),E}function qT(e,t,r){const n=this.proxy,i=wr(e)?e.includes(".")?P_(n,e):()=>n[e]:e.bind(n,n);let o;pe(t)?o=t:(o=t.handler,r=t);const s=zl(this),a=Np(i,o.bind(n),r);return s(),a}function P_(e,t){const r=t.split(".");return()=>{let n=e;for(let i=0;i<r.length&&n;i++)n=n[r[i]];return n}}function js(e,t,r=0,n){if(!qe(e)||e.__v_skip)return e;if(t&&t>0){if(r>=t)return e;r++}if(n=n||new Set,n.has(e))return e;if(n.add(e),en(e))js(e.value,t,r,n);else if(oe(e))for(let i=0;i<e.length;i++)js(e[i],t,r,n);else if(Dy(e)||Cs(e))e.forEach(i=>{js(i,t,r,n)});else if(Iy(e))for(const i in e)js(e[i],t,r,n);return e}function T_(e){OP(e)&&Mt("Do not use built-in directive ids as custom directive id: "+e)}function KT(e,t){if(Dr===null)return{}.NODE_ENV!=="production"&&Mt("withDirectives can only be used inside render functions."),e;const r=Rh(Dr)||Dr.proxy,n=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,s,a,c=Ze]=t[i];o&&(pe(o)&&(o={mounted:o,updated:o}),o.deep&&js(s),n.push({dir:o,instance:r,value:s,oldValue:void 0,arg:a,modifiers:c}))}return e}function Fs(e,t,r,n){const i=e.dirs,o=t&&t.dirs;for(let s=0;s<i.length;s++){const a=i[s];o&&(a.oldValue=o[s].value);let c=a.dir[n];c&&(Zi(),Kn(c,r,8,[e.el,a,e,t]),to())}}const Go=Symbol("_leaveCb"),Eh=Symbol("_enterCb");function YT(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ms(()=>{e.isMounted=!0}),I_(()=>{e.isUnmounting=!0}),e}const Yn=[Function,Array],O_={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Yn,onEnter:Yn,onAfterEnter:Yn,onEnterCancelled:Yn,onBeforeLeave:Yn,onLeave:Yn,onAfterLeave:Yn,onLeaveCancelled:Yn,onBeforeAppear:Yn,onAppear:Yn,onAfterAppear:Yn,onAppearCancelled:Yn},XT={name:"BaseTransition",props:O_,setup(e,{slots:t}){const r=hb(),n=YT();return()=>{const i=t.default&&D_(t.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){let f=!1;for(const d of i)if(d.type!==Yr){if({}.NODE_ENV!=="production"&&f){Mt("<transition> can only be used on a single element or component. Use <transition-group> for lists.");break}if(o=d,f=!0,{}.NODE_ENV==="production")break}}const s=ce(e),{mode:a}=s;if({}.NODE_ENV!=="production"&&a&&a!=="in-out"&&a!=="out-in"&&a!=="default"&&Mt(`invalid <transition> mode: ${a}`),n.isLeaving)return Dp(o);const c=A_(o);if(!c)return Dp(o);const l=Ap(c,s,n,r);Rp(c,l);const u=r.subTree,h=u&&A_(u);if(h&&h.type!==Yr&&!Us(c,h)){const f=Ap(h,s,n,r);if(Rp(h,f),a==="out-in")return n.isLeaving=!0,f.afterLeave=()=>{n.isLeaving=!1,r.update.active!==!1&&(r.effect.dirty=!0,r.update())},Dp(o);a==="in-out"&&c.type!==Yr&&(f.delayLeave=(d,p,g)=>{const v=N_(n,h);v[String(h.key)]=h,d[Go]=()=>{p(),d[Go]=void 0,delete l.delayedLeave},l.delayedLeave=g})}return o}}};function N_(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function Ap(e,t,r,n){const{appear:i,mode:o,persisted:s=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:l,onEnterCancelled:u,onBeforeLeave:h,onLeave:f,onAfterLeave:d,onLeaveCancelled:p,onBeforeAppear:g,onAppear:v,onAfterAppear:b,onAppearCancelled:y}=t,m=String(e.key),x=N_(r,e),A=(D,V)=>{D&&Kn(D,n,9,V)},E=(D,V)=>{const U=V[1];A(D,V),oe(D)?D.every(K=>K.length<=1)&&U():D.length<=1&&U()},k={mode:o,persisted:s,beforeEnter(D){let V=a;if(!r.isMounted)if(i)V=g||a;else return;D[Go]&&D[Go](!0);const U=x[m];U&&Us(e,U)&&U.el[Go]&&U.el[Go](),A(V,[D])},enter(D){let V=c,U=l,K=u;if(!r.isMounted)if(i)V=v||c,U=b||l,K=y||u;else return;let Y=!1;const it=D[Eh]=nt=>{Y||(Y=!0,nt?A(K,[D]):A(U,[D]),k.delayedLeave&&k.delayedLeave(),D[Eh]=void 0)};V?E(V,[D,it]):it()},leave(D,V){const U=String(e.key);if(D[Eh]&&D[Eh](!0),r.isUnmounting)return V();A(h,[D]);let K=!1;const Y=D[Go]=it=>{K||(K=!0,V(),it?A(p,[D]):A(d,[D]),D[Go]=void 0,x[U]===e&&delete x[U])};x[U]=e,f?E(f,[D,Y]):Y()},clone(D){return Ap(D,t,r,n)}};return k}function Dp(e){if(Il(e))return e=di(e),e.children=null,e}function A_(e){if(!Il(e))return e;if({}.NODE_ENV!=="production"&&e.component)return e.component.subTree;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&pe(r.default))return r.default()}}function Rp(e,t){e.shapeFlag&6&&e.component?Rp(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 D_(e,t=!1,r){let n=[],i=0;for(let o=0;o<e.length;o++){let s=e[o];const a=r==null?s.key:String(r)+String(s.key!=null?s.key:o);s.type===Kr?(s.patchFlag&128&&i++,n=n.concat(D_(s.children,t,a))):(t||s.type!==Yr)&&n.push(a!=null?di(s,{key:a}):s)}if(i>1)for(let o=0;o<n.length;o++)n[o].patchFlag=-2;return n}/*! #__NO_SIDE_EFFECTS__ */function xr(e,t){return pe(e)?(()=>cr({name:e.name},t,{setup:e}))():e}const Rl=e=>!!e.type.__asyncLoader,Il=e=>e.type.__isKeepAlive;function JT(e,t){R_(e,"a",t)}function WT(e,t){R_(e,"da",t)}function R_(e,t,r=Xr){const n=e.__wdc||(e.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Ch(t,n,r),r){let i=r.parent;for(;i&&i.parent;)Il(i.parent.vnode)&&QT(n,t,r,i),i=i.parent}}function QT(e,t,r,n){const i=Ch(t,e,n,!0);Ip(()=>{rp(n[t],i)},r)}function Ch(e,t,r=Xr,n=!1){if(r){const i=r[e]||(r[e]=[]),o=t.__weh||(t.__weh=(...s)=>{if(r.isUnmounted)return;Zi();const a=zl(r),c=Kn(t,r,e,s);return a(),to(),c});return n?i.unshift(o):i.push(o),o}else if({}.NODE_ENV!=="production"){const i=Ps(wp[e].replace(/ hook$/,""));Mt(`${i} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const oo=e=>(t,r=Xr)=>(!Dh||e==="sp")&&Ch(e,(...n)=>t(...n),r),ZT=oo("bm"),Ms=oo("m"),t6=oo("bu"),e6=oo("u"),I_=oo("bum"),Ip=oo("um"),r6=oo("sp"),n6=oo("rtg"),i6=oo("rtc");function o6(e,t=Xr){Ch("ec",e,t)}function j_(e,t,r,n){let i;const o=r&&r[n];if(oe(e)||wr(e)){i=new Array(e.length);for(let s=0,a=e.length;s<a;s++)i[s]=t(e[s],s,void 0,o&&o[s])}else if(typeof e=="number"){({}).NODE_ENV!=="production"&&!Number.isInteger(e)&&Mt(`The v-for range expect an integer value but got ${e}.`),i=new Array(e);for(let s=0;s<e;s++)i[s]=t(s+1,s,void 0,o&&o[s])}else if(qe(e))if(e[Symbol.iterator])i=Array.from(e,(s,a)=>t(s,a,void 0,o&&o[a]));else{const s=Object.keys(e);i=new Array(s.length);for(let a=0,c=s.length;a<c;a++){const l=s[a];i[a]=t(e[l],l,a,o&&o[a])}}else i=[];return r&&(r[n]=i),i}function Xn(e,t,r={},n,i){if(Dr.isCE||Dr.parent&&Rl(Dr.parent)&&Dr.parent.isCE)return t!=="default"&&(r.name=t),_r("slot",r,n&&n());let o=e[t];({}).NODE_ENV!=="production"&&o&&o.length>1&&(Mt("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),o=()=>[]),o&&o._c&&(o._d=!1),Oe();const s=o&&F_(o(r)),a=rn(Kr,{key:r.key||s&&s.key||`_${t}`},s||(n?n():[]),s&&e._===1?64:-2);return!i&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),o&&o._c&&(o._d=!0),a}function F_(e){return e.some(t=>La(t)?!(t.type===Yr||t.type===Kr&&!F_(t.children)):!0)?e:null}const jp=e=>e?fb(e)?Rh(e)||e.proxy:jp(e.parent):null,Ls=cr(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>({}).NODE_ENV!=="production"?eo(e.props):e.props,$attrs:e=>({}).NODE_ENV!=="production"?eo(e.attrs):e.attrs,$slots:e=>({}).NODE_ENV!=="production"?eo(e.slots):e.slots,$refs:e=>({}).NODE_ENV!=="production"?eo(e.refs):e.refs,$parent:e=>jp(e.parent),$root:e=>jp(e.root),$emit:e=>e.emit,$options:e=>Vp(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,_h(e.update)}),$nextTick:e=>e.n||(e.n=io.bind(e.proxy)),$watch:e=>qT.bind(e)}),Fp=e=>e==="_"||e==="$",Mp=(e,t)=>e!==Ze&&!e.__isScriptSetup&&Te(e,t),M_={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:n,data:i,props:o,accessCache:s,type:a,appContext:c}=e;if({}.NODE_ENV!=="production"&&t==="__isVue")return!0;let l;if(t[0]!=="$"){const d=s[t];if(d!==void 0)switch(d){case 1:return n[t];case 2:return i[t];case 4:return r[t];case 3:return o[t]}else{if(Mp(n,t))return s[t]=1,n[t];if(i!==Ze&&Te(i,t))return s[t]=2,i[t];if((l=e.propsOptions[0])&&Te(l,t))return s[t]=3,o[t];if(r!==Ze&&Te(r,t))return s[t]=4,r[t];Lp&&(s[t]=0)}}const u=Ls[t];let h,f;if(u)return t==="$attrs"?(tn(e.attrs,"get",""),{}.NODE_ENV!=="production"&&xh()):{}.NODE_ENV!=="production"&&t==="$slots"&&tn(e,"get",t),u(e);if((h=a.__cssModules)&&(h=h[t]))return h;if(r!==Ze&&Te(r,t))return s[t]=4,r[t];if(f=c.config.globalProperties,Te(f,t))return f[t];({}).NODE_ENV!=="production"&&Dr&&(!wr(t)||t.indexOf("__v")!==0)&&(i!==Ze&&Fp(t[0])&&Te(i,t)?Mt(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===Dr&&Mt(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,r){const{data:n,setupState:i,ctx:o}=e;return Mp(i,t)?(i[t]=r,!0):{}.NODE_ENV!=="production"&&i.__isScriptSetup&&Te(i,t)?(Mt(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):n!==Ze&&Te(n,t)?(n[t]=r,!0):Te(e.props,t)?({}.NODE_ENV!=="production"&&Mt(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?({}.NODE_ENV!=="production"&&Mt(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):({}.NODE_ENV!=="production"&&t in e.appContext.config.globalProperties?Object.defineProperty(o,t,{enumerable:!0,configurable:!0,value:r}):o[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:i,propsOptions:o}},s){let a;return!!r[s]||e!==Ze&&Te(e,s)||Mp(t,s)||(a=o[0])&&Te(a,s)||Te(n,s)||Te(Ls,s)||Te(i.config.globalProperties,s)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:Te(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};({}).NODE_ENV!=="production"&&(M_.ownKeys=e=>(Mt("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));function s6(e){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>e}),Object.keys(Ls).forEach(r=>{Object.defineProperty(t,r,{configurable:!0,enumerable:!1,get:()=>Ls[r](e),set:Cr})}),t}function a6(e){const{ctx:t,propsOptions:[r]}=e;r&&Object.keys(r).forEach(n=>{Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>e.props[n],set:Cr})})}function l6(e){const{ctx:t,setupState:r}=e;Object.keys(ce(r)).forEach(n=>{if(!r.__isScriptSetup){if(Fp(n[0])){Mt(`setup() return property ${JSON.stringify(n)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r[n],set:Cr})}})}function L_(e){return oe(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function c6(){const e=Object.create(null);return(t,r)=>{e[r]?Mt(`${t} property "${r}" is already defined in ${e[r]}.`):e[r]=t}}let Lp=!0;function u6(e){const t=Vp(e),r=e.proxy,n=e.ctx;Lp=!1,t.beforeCreate&&V_(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:s,watch:a,provide:c,inject:l,created:u,beforeMount:h,mounted:f,beforeUpdate:d,updated:p,activated:g,deactivated:v,beforeDestroy:b,beforeUnmount:y,destroyed:m,unmounted:x,render:A,renderTracked:E,renderTriggered:k,errorCaptured:D,serverPrefetch:V,expose:U,inheritAttrs:K,components:Y,directives:it,filters:nt}=t,ft={}.NODE_ENV!=="production"?c6():null;if({}.NODE_ENV!=="production"){const[_t]=e.propsOptions;if(_t)for(const yt in _t)ft("Props",yt)}if(l&&h6(l,n,ft),s)for(const _t in s){const yt=s[_t];pe(yt)?({}.NODE_ENV!=="production"?Object.defineProperty(n,_t,{value:yt.bind(r),configurable:!0,enumerable:!0,writable:!0}):n[_t]=yt.bind(r),{}.NODE_ENV!=="production"&&ft("Methods",_t)):{}.NODE_ENV!=="production"&&Mt(`Method "${_t}" has type "${typeof yt}" in the component definition. Did you reference the function correctly?`)}if(i){({}).NODE_ENV!=="production"&&!pe(i)&&Mt("The data option must be a function. Plain object usage is no longer supported.");const _t=i.call(r,r);if({}.NODE_ENV!=="production"&&np(_t)&&Mt("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!qe(_t))({}).NODE_ENV!=="production"&&Mt("data() should return an object.");else if(e.data=yp(_t),{}.NODE_ENV!=="production")for(const yt in _t)ft("Data",yt),Fp(yt[0])||Object.defineProperty(n,yt,{configurable:!0,enumerable:!0,get:()=>_t[yt],set:Cr})}if(Lp=!0,o)for(const _t in o){const yt=o[_t],at=pe(yt)?yt.bind(r,r):pe(yt.get)?yt.get.bind(r,r):Cr;({}).NODE_ENV!=="production"&&at===Cr&&Mt(`Computed property "${_t}" has no getter.`);const X=!pe(yt)&&pe(yt.set)?yt.set.bind(r):{}.NODE_ENV!=="production"?()=>{Mt(`Write operation failed: computed property "${_t}" is readonly.`)}:Cr,O=ur({get:at,set:X});Object.defineProperty(n,_t,{enumerable:!0,configurable:!0,get:()=>O.value,set:C=>O.value=C}),{}.NODE_ENV!=="production"&&ft("Computed",_t)}if(a)for(const _t in a)U_(a[_t],n,r,_t);if(c){const _t=pe(c)?c.call(r):c;Reflect.ownKeys(_t).forEach(yt=>{Ma(yt,_t[yt])})}u&&V_(u,e,"c");function xt(_t,yt){oe(yt)?yt.forEach(at=>_t(at.bind(r))):yt&&_t(yt.bind(r))}if(xt(ZT,h),xt(Ms,f),xt(t6,d),xt(e6,p),xt(JT,g),xt(WT,v),xt(o6,D),xt(i6,E),xt(n6,k),xt(I_,y),xt(Ip,x),xt(r6,V),oe(U))if(U.length){const _t=e.exposed||(e.exposed={});U.forEach(yt=>{Object.defineProperty(_t,yt,{get:()=>r[yt],set:at=>r[yt]=at})})}else e.exposed||(e.exposed={});A&&e.render===Cr&&(e.render=A),K!=null&&(e.inheritAttrs=K),Y&&(e.components=Y),it&&(e.directives=it)}function h6(e,t,r=Cr){oe(e)&&(e=Up(e));for(const n in e){const i=e[n];let o;qe(i)?"default"in i?o=Bo(i.from||n,i.default,!0):o=Bo(i.from||n):o=Bo(i),en(o)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):t[n]=o,{}.NODE_ENV!=="production"&&r("Inject",n)}}function V_(e,t,r){Kn(oe(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function U_(e,t,r,n){const i=n.includes(".")?P_(r,n):()=>r[n];if(wr(e)){const o=t[e];pe(o)?qr(i,o):{}.NODE_ENV!=="production"&&Mt(`Invalid watch handler specified by key "${e}"`,o)}else if(pe(e))qr(i,e.bind(r));else if(qe(e))if(oe(e))e.forEach(o=>U_(o,t,r,n));else{const o=pe(e.handler)?e.handler.bind(r):t[e.handler];pe(o)?qr(i,o,e):{}.NODE_ENV!=="production"&&Mt(`Invalid watch handler specified by key "${e.handler}"`,o)}else({}).NODE_ENV!=="production"&&Mt(`Invalid watch option: "${n}"`,e)}function Vp(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:s}}=e.appContext,a=o.get(t);let c;return a?c=a:!i.length&&!r&&!n?c=t:(c={},i.length&&i.forEach(l=>kh(c,l,s,!0)),kh(c,t,s)),qe(t)&&o.set(t,c),c}function kh(e,t,r,n=!1){const{mixins:i,extends:o}=t;o&&kh(e,o,r,!0),i&&i.forEach(s=>kh(e,s,r,!0));for(const s in t)if(n&&s==="expose")({}).NODE_ENV!=="production"&&Mt('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const a=d6[s]||r&&r[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const d6={data:z_,props:G_,emits:G_,methods:jl,computed:jl,beforeCreate:pn,created:pn,beforeMount:pn,mounted:pn,beforeUpdate:pn,updated:pn,beforeDestroy:pn,beforeUnmount:pn,destroyed:pn,unmounted:pn,activated:pn,deactivated:pn,errorCaptured:pn,serverPrefetch:pn,components:jl,directives:jl,watch:p6,provide:z_,inject:f6};function z_(e,t){return t?e?function(){return cr(pe(e)?e.call(this,this):e,pe(t)?t.call(this,this):t)}:t:e}function f6(e,t){return jl(Up(e),Up(t))}function Up(e){if(oe(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function pn(e,t){return e?[...new Set([].concat(e,t))]:t}function jl(e,t){return e?cr(Object.create(null),e,t):t}function G_(e,t){return e?oe(e)&&oe(t)?[...new Set([...e,...t])]:cr(Object.create(null),L_(e),L_(t??{})):t}function p6(e,t){if(!e)return t;if(!t)return e;const r=cr(Object.create(null),e);for(const n in t)r[n]=pn(e[n],t[n]);return r}function B_(){return{app:null,config:{isNativeTag:PP,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 m6=0;function g6(e,t){return function(n,i=null){pe(n)||(n=cr({},n)),i!=null&&!qe(i)&&({}.NODE_ENV!=="production"&&Mt("root props passed to app.mount() must be an object."),i=null);const o=B_(),s=new WeakSet;let a=!1;const c=o.app={_uid:m6++,_component:n,_props:i,_container:null,_context:o,_instance:null,version:_b,get config(){return o.config},set config(l){({}).NODE_ENV!=="production"&&Mt("app.config cannot be replaced. Modify individual options instead.")},use(l,...u){return s.has(l)?{}.NODE_ENV!=="production"&&Mt("Plugin has already been applied to target app."):l&&pe(l.install)?(s.add(l),l.install(c,...u)):pe(l)?(s.add(l),l(c,...u)):{}.NODE_ENV!=="production"&&Mt('A plugin must either be a function or an object with an "install" function.'),c},mixin(l){return o.mixins.includes(l)?{}.NODE_ENV!=="production"&&Mt("Mixin has already been applied to target app"+(l.name?`: ${l.name}`:"")):o.mixins.push(l),c},component(l,u){return{}.NODE_ENV!=="production"&&Jp(l,o.config),u?({}.NODE_ENV!=="production"&&o.components[l]&&Mt(`Component "${l}" has already been registered in target app.`),o.components[l]=u,c):o.components[l]},directive(l,u){return{}.NODE_ENV!=="production"&&T_(l),u?({}.NODE_ENV!=="production"&&o.directives[l]&&Mt(`Directive "${l}" has already been registered in target app.`),o.directives[l]=u,c):o.directives[l]},mount(l,u,h){if(a)({}).NODE_ENV!=="production"&&Mt("App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`");else{({}).NODE_ENV!=="production"&&l.__vue_app__&&Mt("There is already an app instance mounted on the host container.\n If you want to mount another app on the same host container, you need to unmount the previous app by calling `app.unmount()` first.");const f=_r(n,i);return f.appContext=o,h===!0?h="svg":h===!1&&(h=void 0),{}.NODE_ENV!=="production"&&(o.reload=()=>{e(di(f),l,h)}),u&&t?t(f,l):e(f,l,h),a=!0,c._container=l,l.__vue_app__=c,{}.NODE_ENV!=="production"&&(c._instance=f.component,PT(c,_b)),Rh(f.component)||f.component.proxy}},unmount(){a?(e(null,c._container),{}.NODE_ENV!=="production"&&(c._instance=null,TT(c)),delete c._container.__vue_app__):{}.NODE_ENV!=="production"&&Mt("Cannot unmount an app that is not mounted.")},provide(l,u){return{}.NODE_ENV!=="production"&&l in o.provides&&Mt(`App already provides property with key "${String(l)}". It will be overwritten with the new value.`),o.provides[l]=u,c},runWithContext(l){const u=Fl;Fl=c;try{return l()}finally{Fl=u}}};return c}}let Fl=null;function Ma(e,t){if(!Xr)({}).NODE_ENV!=="production"&&Mt("provide() can only be used inside setup().");else{let r=Xr.provides;const n=Xr.parent&&Xr.parent.provides;n===r&&(r=Xr.provides=Object.create(n)),r[e]=t}}function Bo(e,t,r=!1){const n=Xr||Dr;if(n||Fl){const i=n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:Fl._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return r&&pe(t)?t.call(n&&n.proxy):t;({}).NODE_ENV!=="production"&&Mt(`injection "${String(e)}" not found.`)}else({}).NODE_ENV!=="production"&&Mt("inject() can only be used inside setup() or functional components.")}const H_={},q_=()=>Object.create(H_),K_=e=>Object.getPrototypeOf(e)===H_;function v6(e,t,r,n=!1){const i={},o=q_();e.propsDefaults=Object.create(null),Y_(e,t,i,o);for(const s in e.propsOptions[0])s in i||(i[s]=void 0);({}).NODE_ENV!=="production"&&Z_(t||{},i,e),r?e.props=n?i:aT(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function y6(e){for(;e;){if(e.type.__hmrId)return!0;e=e.parent}}function _6(e,t,r,n){const{props:i,attrs:o,vnode:{patchFlag:s}}=e,a=ce(i),[c]=e.propsOptions;let l=!1;if(!({}.NODE_ENV!=="production"&&y6(e))&&(n||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let h=0;h<u.length;h++){let f=u[h];if(bh(e.emitsOptions,f))continue;const d=t[f];if(c)if(Te(o,f))d!==o[f]&&(o[f]=d,l=!0);else{const p=Wi(f);i[p]=zp(c,a,p,d,e,!1)}else d!==o[f]&&(o[f]=d,l=!0)}}}else{Y_(e,t,i,o)&&(l=!0);let u;for(const h in a)(!t||!Te(t,h)&&((u=In(h))===h||!Te(t,u)))&&(c?r&&(r[h]!==void 0||r[u]!==void 0)&&(i[h]=zp(c,a,h,void 0,e,!0)):delete i[h]);if(o!==a)for(const h in o)(!t||!Te(t,h))&&(delete o[h],l=!0)}l&&Oi(e.attrs,"set",""),{}.NODE_ENV!=="production"&&Z_(t||{},i,e)}function Y_(e,t,r,n){const[i,o]=e.propsOptions;let s=!1,a;if(t)for(let c in t){if(El(c))continue;const l=t[c];let u;i&&Te(i,u=Wi(c))?!o||!o.includes(u)?r[u]=l:(a||(a={}))[u]=l:bh(e.emitsOptions,c)||(!(c in n)||l!==n[c])&&(n[c]=l,s=!0)}if(o){const c=ce(r),l=a||Ze;for(let u=0;u<o.length;u++){const h=o[u];r[h]=zp(i,c,h,l[h],e,!Te(l,h))}}return s}function zp(e,t,r,n,i,o){const s=e[r];if(s!=null){const a=Te(s,"default");if(a&&n===void 0){const c=s.default;if(s.type!==Function&&!s.skipFactory&&pe(c)){const{propsDefaults:l}=i;if(r in l)n=l[r];else{const u=zl(i);n=l[r]=c.call(null,t),u()}}else n=c}s[0]&&(o&&!a?n=!1:s[1]&&(n===""||n===In(r))&&(n=!0))}return n}function X_(e,t,r=!1){const n=t.propsCache,i=n.get(e);if(i)return i;const o=e.props,s={},a=[];let c=!1;if(!pe(e)){const u=h=>{c=!0;const[f,d]=X_(h,t,!0);cr(s,f),d&&a.push(...d)};!r&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!c)return qe(e)&&n.set(e,Ra),Ra;if(oe(o))for(let u=0;u<o.length;u++){({}).NODE_ENV!=="production"&&!wr(o[u])&&Mt("props must be strings when using array syntax.",o[u]);const h=Wi(o[u]);J_(h)&&(s[h]=Ze)}else if(o){({}).NODE_ENV!=="production"&&!qe(o)&&Mt("invalid props options",o);for(const u in o){const h=Wi(u);if(J_(h)){const f=o[u],d=s[h]=oe(f)||pe(f)?{type:f}:cr({},f);if(d){const p=Q_(Boolean,d.type),g=Q_(String,d.type);d[0]=p>-1,d[1]=g<0||p<g,(p>-1||Te(d,"default"))&&a.push(h)}}}}const l=[s,a];return qe(e)&&n.set(e,l),l}function J_(e){return e[0]!=="$"&&!El(e)?!0:({}.NODE_ENV!=="production"&&Mt(`Invalid prop name: "${e}" is a reserved property.`),!1)}function Gp(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function W_(e,t){return Gp(e)===Gp(t)}function Q_(e,t){return oe(t)?t.findIndex(r=>W_(r,e)):pe(t)&&W_(t,e)?0:-1}function Z_(e,t,r){const n=ce(t),i=r.propsOptions[0];for(const o in i){let s=i[o];s!=null&&b6(o,n[o],s,{}.NODE_ENV!=="production"?eo(n):n,!Te(e,o)&&!Te(e,In(o)))}}function b6(e,t,r,n,i){const{type:o,required:s,validator:a,skipCheck:c}=r;if(s&&i){Mt('Missing required prop: "'+e+'"');return}if(!(t==null&&!s)){if(o!=null&&o!==!0&&!c){let l=!1;const u=oe(o)?o:[o],h=[];for(let f=0;f<u.length&&!l;f++){const{valid:d,expectedType:p}=x6(t,u[f]);h.push(p||""),l=d}if(!l){Mt(S6(e,t,h));return}}a&&!a(t,n)&&Mt('Invalid prop: custom validator check failed for prop "'+e+'".')}}const w6=Da("String,Number,Boolean,Function,Symbol,BigInt");function x6(e,t){let r;const n=Gp(t);if(w6(n)){const i=typeof e;r=i===n.toLowerCase(),!r&&i==="object"&&(r=e instanceof t)}else n==="Object"?r=qe(e):n==="Array"?r=oe(e):n==="null"?r=e===null:r=e instanceof t;return{valid:r,expectedType:n}}function S6(e,t,r){if(r.length===0)return`Prop type [] for prop "${e}" won't match anything. Did you mean to use type Array instead?`;let n=`Invalid prop: type check failed for prop "${e}". Expected ${r.map(ah).join(" | ")}`;const i=r[0],o=ip(t),s=tb(t,i),a=tb(t,o);return r.length===1&&eb(i)&&!$6(i,o)&&(n+=` with value ${s}`),n+=`, got ${o} `,eb(o)&&(n+=`with value ${a}.`),n}function tb(e,t){return t==="String"?`"${e}"`:t==="Number"?`${Number(e)}`:`${e}`}function eb(e){return["string","number","boolean"].some(r=>e.toLowerCase()===r)}function $6(...e){return e.some(t=>t.toLowerCase()==="boolean")}const rb=e=>e[0]==="_"||e==="$stable",Bp=e=>oe(e)?e.map(fi):[fi(e)],E6=(e,t,r)=>{if(t._n)return t;const n=jn((...i)=>({}.NODE_ENV!=="production"&&Xr&&(!r||r.root===Xr.root)&&Mt(`Slot "${e}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),Bp(t(...i))),r);return n._c=!1,n},nb=(e,t,r)=>{const n=e._ctx;for(const i in e){if(rb(i))continue;const o=e[i];if(pe(o))t[i]=E6(i,o,n);else if(o!=null){({}).NODE_ENV!=="production"&&Mt(`Non-function value encountered for slot "${i}". Prefer function slots for better performance.`);const s=Bp(o);t[i]=()=>s}}},ib=(e,t)=>{({}).NODE_ENV!=="production"&&!Il(e.vnode)&&Mt("Non-function value encountered for default slot. Prefer function slots for better performance.");const r=Bp(t);e.slots.default=()=>r},C6=(e,t)=>{const r=e.slots=q_();if(e.vnode.shapeFlag&32){const n=t._;n?(cr(r,t),jy(r,"_",n)):nb(t,r)}else t&&ib(e,t)},k6=(e,t,r)=>{const{vnode:n,slots:i}=e;let o=!0,s=Ze;if(n.shapeFlag&32){const a=t._;a?{}.NODE_ENV!=="production"&&Rs?(cr(i,t),Oi(e,"set","$slots")):r&&a===1?o=!1:(cr(i,t),!r&&a===1&&delete i._):(o=!t.$stable,nb(t,i)),s=t}else t&&(ib(e,t),s={default:1});if(o)for(const a in i)!rb(a)&&s[a]==null&&delete i[a]};function Hp(e,t,r,n,i=!1){if(oe(e)){e.forEach((f,d)=>Hp(f,t&&(oe(t)?t[d]:t),r,n,i));return}if(Rl(n)&&!i)return;const o=n.shapeFlag&4?Rh(n.component)||n.component.proxy:n.el,s=i?null:o,{i:a,r:c}=e;if({}.NODE_ENV!=="production"&&!a){Mt("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");return}const l=t&&t.r,u=a.refs===Ze?a.refs={}:a.refs,h=a.setupState;if(l!=null&&l!==c&&(wr(l)?(u[l]=null,Te(h,l)&&(h[l]=null)):en(l)&&(l.value=null)),pe(c))ro(c,a,12,[s,u]);else{const f=wr(c),d=en(c);if(f||d){const p=()=>{if(e.f){const g=f?Te(h,c)?h[c]:u[c]:c.value;i?oe(g)&&rp(g,o):oe(g)?g.includes(o)||g.push(o):f?(u[c]=[o],Te(h,c)&&(h[c]=u[c])):(c.value=[o],e.k&&(u[e.k]=c.value))}else f?(u[c]=s,Te(h,c)&&(h[c]=s)):d?(c.value=s,e.k&&(u[e.k]=s)):{}.NODE_ENV!=="production"&&Mt("Invalid template ref type:",c,`(${typeof c})`)};s?(p.id=-1,$n(p,r)):p()}else({}).NODE_ENV!=="production"&&Mt("Invalid template ref type:",c,`(${typeof c})`)}}let Ml,Ho;function so(e,t){e.appContext.config.performance&&Ph()&&Ho.mark(`vue-${t}-${e.uid}`),{}.NODE_ENV!=="production"&&DT(e,t,Ph()?Ho.now():Date.now())}function ao(e,t){if(e.appContext.config.performance&&Ph()){const r=`vue-${t}-${e.uid}`,n=r+":end";Ho.mark(n),Ho.measure(`<${Ih(e,e.type)}> ${t}`,r,n),Ho.clearMarks(r),Ho.clearMarks(n)}({}).NODE_ENV!=="production"&&RT(e,t,Ph()?Ho.now():Date.now())}function Ph(){return Ml!==void 0||(typeof window<"u"&&window.performance?(Ml=!0,Ho=window.performance):Ml=!1),Ml}function P6(){const e=[];if({}.NODE_ENV!=="production"&&e.length){const t=e.length>1;console.warn(`Feature flag${t?"s":""} ${e.join(", ")} ${t?"are":"is"} not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.
|
|
15
|
+
**/const At=[];function Jo(t){At.push(t)}function Qo(){At.pop()}function N(t,...e){nt();const o=At.length?At[At.length-1].component:null,n=o&&o.appContext.config.warnHandler,i=$c();if(n)rt(n,o,11,[t+e.map(s=>{var r,a;return(a=(r=s.toString)==null?void 0:r.call(s))!=null?a:JSON.stringify(s)}).join(""),o&&o.proxy,i.map(({vnode:s})=>`at <${yn(o,s.type)}>`).join(`
|
|
16
|
+
`),i]);else{const s=[`[Vue warn]: ${t}`,...e];i.length&&s.push(`
|
|
17
|
+
`,...Tc(i)),console.warn(...s)}it()}function $c(){let t=At[At.length-1];if(!t)return[];const e=[];for(;t;){const o=e[0];o&&o.vnode===t?o.recurseCount++:e.push({vnode:t,recurseCount:0});const n=t.component&&t.component.parent;t=n&&n.vnode}return e}function Tc(t){const e=[];return t.forEach((o,n)=>{e.push(...n===0?[]:[`
|
|
18
|
+
`],...Dc(o))}),e}function Dc({vnode:t,recurseCount:e}){const o=e>0?`... (${e} recursive calls)`:"",n=t.component?t.component.parent==null:!1,i=` at <${yn(t.component,t.type,n)}`,s=">"+o;return t.props?[i,...Pc(t.props),s]:[i+s]}function Pc(t){const e=[],o=Object.keys(t);return o.slice(0,3).forEach(n=>{e.push(...nr(n,t[n]))}),o.length>3&&e.push(" ..."),e}function nr(t,e,o){return me(e)?(e=JSON.stringify(e),o?e:[`${t}=${e}`]):typeof e=="number"||typeof e=="boolean"||e==null?o?e:[`${t}=${e}`]:$e(e)?(e=nr(t,Y(e.value),!0),o?e:[`${t}=Ref<`,e,">"]):W(e)?[`${t}=fn${e.name?`<${e.name}>`:""}`]:(e=Y(e),o?e:[`${t}=`,e])}const ni={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 rt(t,e,o,n){try{return n?t(...n):t()}catch(i){ho(i,e,o)}}function We(t,e,o,n){if(W(t)){const i=rt(t,e,o,n);return i&&Hn(i)&&i.catch(s=>{ho(s,e,o)}),i}if(F(t)){const i=[];for(let s=0;s<t.length;s++)i.push(We(t[s],e,o,n));return i}else({}).NODE_ENV!=="production"&&N(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof t}`)}function ho(t,e,o,n=!0){const i=e?e.vnode:null;if(e){let s=e.parent;const r=e.proxy,a={}.NODE_ENV!=="production"?ni[o]:`https://vuejs.org/error-reference/#runtime-${o}`;for(;s;){const c=s.ec;if(c){for(let d=0;d<c.length;d++)if(c[d](t,r,a)===!1)return}s=s.parent}const l=e.appContext.config.errorHandler;if(l){nt(),rt(l,null,10,[t,r,a]),it();return}}Lc(t,o,i,n)}function Lc(t,e,o,n=!0){if({}.NODE_ENV!=="production"){const i=ni[e];if(o&&Jo(o),N(`Unhandled error${i?` during execution of ${i}`:""}`),o&&Qo(),n)throw t;console.error(t)}else console.error(t)}let mo=!1,ii=!1;const De=[];let Xe=0;const Yt=[];let at=null,xt=0;const ir=Promise.resolve();let si=null;const Vc=100;function sr(t){const e=si||ir;return t?e.then(this?t.bind(this):t):e}function Ic(t){let e=Xe+1,o=De.length;for(;e<o;){const n=e+o>>>1,i=De[n],s=vo(i);s<t||s===t&&i.pre?e=n+1:o=n}return e}function en(t){(!De.length||!De.includes(t,mo&&t.allowRecurse?Xe+1:Xe))&&(t.id==null?De.push(t):De.splice(Ic(t.id),0,t),rr())}function rr(){!mo&&!ii&&(ii=!0,si=ir.then(ur))}function Mc(t){const e=De.indexOf(t);e>Xe&&De.splice(e,1)}function ar(t){F(t)?Yt.push(...t):(!at||!at.includes(t,t.allowRecurse?xt+1:xt))&&Yt.push(t),rr()}function lr(t,e,o=mo?Xe+1:0){for({}.NODE_ENV!=="production"&&(e=e||new Map);o<De.length;o++){const n=De[o];if(n&&n.pre){if(t&&n.id!==t.uid||{}.NODE_ENV!=="production"&&ri(e,n))continue;De.splice(o,1),o--,n()}}}function cr(t){if(Yt.length){const e=[...new Set(Yt)].sort((o,n)=>vo(o)-vo(n));if(Yt.length=0,at){at.push(...e);return}for(at=e,{}.NODE_ENV!=="production"&&(t=t||new Map),xt=0;xt<at.length;xt++)({}).NODE_ENV!=="production"&&ri(t,at[xt])||at[xt]();at=null,xt=0}}const vo=t=>t.id==null?1/0:t.id,Ac=(t,e)=>{const o=vo(t)-vo(e);if(o===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return o};function ur(t){ii=!1,mo=!0,{}.NODE_ENV!=="production"&&(t=t||new Map),De.sort(Ac);const e={}.NODE_ENV!=="production"?o=>ri(t,o):ge;try{for(Xe=0;Xe<De.length;Xe++){const o=De[Xe];if(o&&o.active!==!1){if({}.NODE_ENV!=="production"&&e(o))continue;rt(o,null,14)}}}finally{Xe=0,De.length=0,cr(t),mo=!1,si=null,(De.length||Yt.length)&&ur(t)}}function ri(t,e){if(!t.has(e))t.set(e,1);else{const o=t.get(e);if(o>Vc){const n=e.ownerInstance,i=n&&Li(n.type);return ho(`Maximum recursive updates exceeded${i?` in component <${i}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}else t.set(e,o+1)}}let Rt=!1;const Zt=new Set;({}).NODE_ENV!=="production"&&(Un().__VUE_HMR_RUNTIME__={createRecord:ai(dr),rerender:ai(Fc),reload:ai(zc)});const jt=new Map;function Rc(t){const e=t.type.__hmrId;let o=jt.get(e);o||(dr(e,t.type),o=jt.get(e)),o.instances.add(t)}function jc(t){jt.get(t.type.__hmrId).instances.delete(t)}function dr(t,e){return jt.has(t)?!1:(jt.set(t,{initialDef:go(e),instances:new Set}),!0)}function go(t){return ia(t)?t.__vccOpts:t}function Fc(t,e){const o=jt.get(t);o&&(o.initialDef.render=e,[...o.instances].forEach(n=>{e&&(n.render=e,go(n.type).render=e),n.renderCache=[],Rt=!0,n.effect.dirty=!0,n.update(),Rt=!1}))}function zc(t,e){const o=jt.get(t);if(!o)return;e=go(e),fr(o.initialDef,e);const n=[...o.instances];for(const i of n){const s=go(i.type);Zt.has(s)||(s!==o.initialDef&&fr(s,e),Zt.add(s)),i.appContext.propsCache.delete(i.type),i.appContext.emitsCache.delete(i.type),i.appContext.optionsCache.delete(i.type),i.ceReload?(Zt.add(s),i.ceReload(e.styles),Zt.delete(s)):i.parent?(i.parent.effect.dirty=!0,en(i.parent.update)):i.appContext.reload?i.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}ar(()=>{for(const i of n)Zt.delete(go(i.type))})}function fr(t,e){de(t,e);for(const o in t)o!=="__file"&&!(o in e)&&delete t[o]}function ai(t){return(e,o)=>{try{return t(e,o)}catch(n){console.error(n),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let Je,yo=[],li=!1;function bo(t,...e){Je?Je.emit(t,...e):li||yo.push({event:t,args:e})}function pr(t,e){var o,n;Je=t,Je?(Je.enabled=!0,yo.forEach(({event:i,args:s})=>Je.emit(i,...s)),yo=[]):typeof window<"u"&&window.HTMLElement&&!((n=(o=window.navigator)==null?void 0:o.userAgent)!=null&&n.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(s=>{pr(s,e)}),setTimeout(()=>{Je||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,li=!0,yo=[])},3e3)):(li=!0,yo=[])}function Hc(t,e){bo("app:init",t,e,{Fragment:be,Text:No,Comment:Ie,Static:pn})}function Bc(t){bo("app:unmount",t)}const Wc=ci("component:added"),hr=ci("component:updated"),Uc=ci("component:removed"),Gc=t=>{Je&&typeof Je.cleanupBuffer=="function"&&!Je.cleanupBuffer(t)&&Uc(t)};/*! #__NO_SIDE_EFFECTS__ */function ci(t){return e=>{bo(t,e.appContext.app,e.uid,e.parent?e.parent.uid:void 0,e)}}const Kc=mr("perf:start"),qc=mr("perf:end");function mr(t){return(e,o,n)=>{bo(t,e.appContext.app,e.uid,e,o,n)}}function Yc(t,e,o){bo("component:emit",t.appContext.app,t,e,o)}function Zc(t,e,...o){if(t.isUnmounted)return;const n=t.vnode.props||ae;if({}.NODE_ENV!=="production"){const{emitsOptions:d,propsOptions:[f]}=t;if(d)if(!(e in d))(!f||!(Pt(e)in f))&&N(`Component emitted event "${e}" but it is neither declared in the emits option nor as an "${Pt(e)}" prop.`);else{const u=d[e];W(u)&&(u(...o)||N(`Invalid event arguments: event validation failed for event "${e}".`))}}let i=o;const s=e.startsWith("update:"),r=s&&e.slice(7);if(r&&r in n){const d=`${r==="modelValue"?"model":r}Modifiers`,{number:f,trim:u}=n[d]||ae;u&&(i=o.map(v=>me(v)?v.trim():v)),f&&(i=o.map(ql))}if({}.NODE_ENV!=="production"&&Yc(t,e,i),{}.NODE_ENV!=="production"){const d=e.toLowerCase();d!==e&&n[Pt(d)]&&N(`Event "${d}" is emitted in component ${yn(t,t.type)} but the handler is registered for "${e}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${je(e)}" instead of "${e}".`)}let a,l=n[a=Pt(e)]||n[a=Pt(Re(e))];!l&&s&&(l=n[a=Pt(je(e))]),l&&We(l,t,6,i);const c=n[a+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,We(c,t,6,i)}}function vr(t,e,o=!1){const n=e.emitsCache,i=n.get(t);if(i!==void 0)return i;const s=t.emits;let r={},a=!1;if(!W(t)){const l=c=>{const d=vr(c,e,!0);d&&(a=!0,de(r,d))};!o&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!s&&!a?(ie(t)&&n.set(t,null),null):(F(s)?s.forEach(l=>r[l]=null):de(r,s),ie(t)&&n.set(t,r),r)}function tn(t,e){return!t||!co(e)?!1:(e=e.slice(2).replace(/Once$/,""),Z(t,e[0].toLowerCase()+e.slice(1))||Z(t,je(e))||Z(t,e))}let ye=null,on=null;function nn(t){const e=ye;return ye=t,on=t&&t.type.__scopeId||null,e}function _o(t){on=t}function xo(){on=null}function Ce(t,e=ye,o){if(!e||t._n)return t;const n=(...i)=>{n._d&&qr(-1);const s=nn(e);let r;try{r=t(...i)}finally{nn(s),n._d&&qr(1)}return{}.NODE_ENV!=="production"&&hr(e),r};return n._n=!0,n._c=!0,n._d=!0,n}let ui=!1;function sn(){ui=!0}function di(t){const{type:e,vnode:o,proxy:n,withProxy:i,propsOptions:[s],slots:r,attrs:a,emit:l,render:c,renderCache:d,props:f,data:u,setupState:v,ctx:b,inheritAttrs:y}=t,k=nn(t);let A,$;({}).NODE_ENV!=="production"&&(ui=!1);try{if(o.shapeFlag&4){const ne=i||n,M={}.NODE_ENV!=="production"&&v.__isScriptSetup?new Proxy(ne,{get(I,he,ve){return N(`Property '${String(he)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(I,he,ve)}}):ne;A=Ge(c.call(M,ne,d,{}.NODE_ENV!=="production"?st(f):f,v,u,b)),$=a}else{const ne=e;({}).NODE_ENV!=="production"&&a===f&&sn(),A=Ge(ne.length>1?ne({}.NODE_ENV!=="production"?st(f):f,{}.NODE_ENV!=="production"?{get attrs(){return sn(),a},slots:r,emit:l}:{attrs:a,slots:r,emit:l}):ne({}.NODE_ENV!=="production"?st(f):f,null)),$=e.props?a:Xc(a)}}catch(ne){Oo.length=0,ho(ne,t,1),A=oe(Ie)}let z=A,G;if({}.NODE_ENV!=="production"&&A.patchFlag>0&&A.patchFlag&2048&&([z,G]=gr(A)),$&&y!==!1){const ne=Object.keys($),{shapeFlag:M}=z;if(ne.length){if(M&7)s&&ne.some(Fo)&&($=Jc($,s)),z=Et(z,$);else if({}.NODE_ENV!=="production"&&!ui&&z.type!==Ie){const I=Object.keys(a),he=[],ve=[];for(let Te=0,Nt=I.length;Te<Nt;Te++){const qe=I[Te];co(qe)?Fo(qe)||he.push(qe[2].toLowerCase()+qe.slice(3)):ve.push(qe)}ve.length&&N(`Extraneous non-props attributes (${ve.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),he.length&&N(`Extraneous non-emits event listeners (${he.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`)}}}return o.dirs&&({}.NODE_ENV!=="production"&&!yr(z)&&N("Runtime directive used on component with non-element root node. The directives will not function as intended."),z=Et(z),z.dirs=z.dirs?z.dirs.concat(o.dirs):o.dirs),o.transition&&({}.NODE_ENV!=="production"&&!yr(z)&&N("Component inside <Transition> renders non-element root node that cannot be animated."),z.transition=o.transition),{}.NODE_ENV!=="production"&&G?G(z):A=z,nn(k),A}const gr=t=>{const e=t.children,o=t.dynamicChildren,n=fi(e,!1);if(n){if({}.NODE_ENV!=="production"&&n.patchFlag>0&&n.patchFlag&2048)return gr(n)}else return[t,void 0];const i=e.indexOf(n),s=o?o.indexOf(n):-1,r=a=>{e[i]=a,o&&(s>-1?o[s]=a:a.patchFlag>0&&(t.dynamicChildren=[...o,a]))};return[Ge(n),r]};function fi(t,e=!0){let o;for(let n=0;n<t.length;n++){const i=t[n];if(Jt(i)){if(i.type!==Ie||i.children==="v-if"){if(o)return;if(o=i,{}.NODE_ENV!=="production"&&e&&o.patchFlag>0&&o.patchFlag&2048)return fi(o.children)}}else return}return o}const Xc=t=>{let e;for(const o in t)(o==="class"||o==="style"||co(o))&&((e||(e={}))[o]=t[o]);return e},Jc=(t,e)=>{const o={};for(const n in t)(!Fo(n)||!(n.slice(9)in e))&&(o[n]=t[n]);return o},yr=t=>t.shapeFlag&7||t.type===Ie;function Qc(t,e,o){const{props:n,children:i,component:s}=t,{props:r,children:a,patchFlag:l}=e,c=s.emitsOptions;if({}.NODE_ENV!=="production"&&(i||a)&&Rt||e.dirs||e.transition)return!0;if(o&&l>=0){if(l&1024)return!0;if(l&16)return n?br(n,r,c):!!r;if(l&8){const d=e.dynamicProps;for(let f=0;f<d.length;f++){const u=d[f];if(r[u]!==n[u]&&!tn(c,u))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:n===r?!1:n?r?br(n,r,c):!0:!!r;return!1}function br(t,e,o){const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!0;for(let i=0;i<n.length;i++){const s=n[i];if(e[s]!==t[s]&&!tn(o,s))return!0}return!1}function eu({vnode:t,parent:e},o){for(;e;){const n=e.subTree;if(n.suspense&&n.suspense.activeBranch===t&&(n.el=t.el),n===t)(t=e.vnode).el=o,e=e.parent;else break}}const pi="components";function tu(t,e){return nu(pi,t,!0,e)||t}const ou=Symbol.for("v-ndc");function nu(t,e,o=!0,n=!1){const i=ye||we;if(i){const s=i.type;if(t===pi){const a=Li(s,!1);if(a&&(a===e||a===Re(e)||a===Dt(Re(e))))return s}const r=_r(i[t]||s[t],e)||_r(i.appContext[t],e);if(!r&&n)return s;if({}.NODE_ENV!=="production"&&o&&!r){const a=t===pi?`
|
|
19
|
+
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`:"";N(`Failed to resolve ${t.slice(0,-1)}: ${e}${a}`)}return r}else({}).NODE_ENV!=="production"&&N(`resolve${Dt(t.slice(0,-1))} can only be used in render() or setup().`)}function _r(t,e){return t&&(t[e]||t[Re(e)]||t[Dt(Re(e))])}const iu=t=>t.__isSuspense;function su(t,e){e&&e.pendingBranch?F(t)?e.effects.push(...t):e.effects.push(t):ar(t)}const ru=Symbol.for("v-scx"),au=()=>{{const t=un(ru);return t||{}.NODE_ENV!=="production"&&N("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),t}},rn={};function se(t,e,o){return{}.NODE_ENV!=="production"&&!W(e)&&N("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),xr(t,e,o)}function xr(t,e,{immediate:o,deep:n,flush:i,once:s,onTrack:r,onTrigger:a}=ae){if(e&&s){const I=e;e=(...he)=>{I(...he),M()}}({}).NODE_ENV!=="production"&&n!==void 0&&typeof n=="number"&&N('watch() "deep" option with number value will be used as watch depth in future versions. Please use a boolean instead to avoid potential breakage.'),{}.NODE_ENV!=="production"&&!e&&(o!==void 0&&N('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),n!==void 0&&N('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),s!==void 0&&N('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const l=I=>{N("Invalid watch source: ",I,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},c=we,d=I=>n===!0?I:Ft(I,n===!1?1:void 0);let f,u=!1,v=!1;if($e(t)?(f=()=>t.value,u=Mt(t)):qt(t)?(f=()=>d(t),u=!0):F(t)?(v=!0,u=t.some(I=>qt(I)||Mt(I)),f=()=>t.map(I=>{if($e(I))return I.value;if(qt(I))return d(I);if(W(I))return rt(I,c,2);({}).NODE_ENV!=="production"&&l(I)})):W(t)?e?f=()=>rt(t,c,2):f=()=>(b&&b(),We(t,c,3,[y])):(f=ge,{}.NODE_ENV!=="production"&&l(t)),e&&n){const I=f;f=()=>Ft(I())}let b,y=I=>{b=G.onStop=()=>{rt(I,c,4),b=G.onStop=void 0}},k;if(vn)if(y=ge,e?o&&We(e,c,3,[f(),v?[]:void 0,y]):f(),i==="sync"){const I=au();k=I.__watcherHandles||(I.__watcherHandles=[])}else return ge;let A=v?new Array(t.length).fill(rn):rn;const $=()=>{if(!(!G.active||!G.dirty))if(e){const I=G.run();(n||u||(v?I.some((he,ve)=>gt(he,A[ve])):gt(I,A)))&&(b&&b(),We(e,c,3,[I,A===rn?void 0:v&&A[0]===rn?[]:A,y]),A=I)}else G.run()};$.allowRecurse=!!e;let z;i==="sync"?z=$:i==="post"?z=()=>Ve($,c&&c.suspense):($.pre=!0,c&&($.id=c.uid),z=()=>en($));const G=new Kn(f,ge,z),ne=oc(),M=()=>{G.stop(),ne&&zn(ne.effects,G)};return{}.NODE_ENV!=="production"&&(G.onTrack=r,G.onTrigger=a),e?o?$():A=G.run():i==="post"?Ve(G.run.bind(G),c&&c.suspense):G.run(),k&&k.push(M),M}function lu(t,e,o){const n=this.proxy,i=me(t)?t.includes(".")?wr(n,t):()=>n[t]:t.bind(n,n);let s;W(e)?s=e:(s=e.handler,o=e);const r=To(this),a=xr(i,s.bind(n),o);return r(),a}function wr(t,e){const o=e.split(".");return()=>{let n=t;for(let i=0;i<o.length&&n;i++)n=n[o[i]];return n}}function Ft(t,e,o=0,n){if(!ie(t)||t.__v_skip)return t;if(e&&e>0){if(o>=e)return t;o++}if(n=n||new Set,n.has(t))return t;if(n.add(t),$e(t))Ft(t.value,e,o,n);else if(F(t))for(let i=0;i<t.length;i++)Ft(t[i],e,o,n);else if(Cs(t)||$t(t))t.forEach(i=>{Ft(i,e,o,n)});else if(Ns(t))for(const i in t)Ft(t[i],e,o,n);return t}function Er(t){Ul(t)&&N("Do not use built-in directive ids as custom directive id: "+t)}function hi(t,e){if(ye===null)return{}.NODE_ENV!=="production"&&N("withDirectives can only be used inside render functions."),t;const o=gn(ye)||ye.proxy,n=t.dirs||(t.dirs=[]);for(let i=0;i<e.length;i++){let[s,r,a,l=ae]=e[i];s&&(W(s)&&(s={mounted:s,updated:s}),s.deep&&Ft(r),n.push({dir:s,instance:o,value:r,oldValue:void 0,arg:a,modifiers:l}))}return t}function zt(t,e,o,n){const i=t.dirs,s=e&&e.dirs;for(let r=0;r<i.length;r++){const a=i[r];s&&(a.oldValue=s[r].value);let l=a.dir[n];l&&(nt(),We(l,o,8,[t.el,a,t,e]),it())}}/*! #__NO_SIDE_EFFECTS__ */function X(t,e){return W(t)?(()=>de({name:t.name},e,{setup:t}))():t}const wo=t=>!!t.type.__asyncLoader,mi=t=>t.type.__isKeepAlive;function cu(t,e){Cr(t,"a",e)}function uu(t,e){Cr(t,"da",e)}function Cr(t,e,o=we){const n=t.__wdc||(t.__wdc=()=>{let i=o;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(an(e,n,o),o){let i=o.parent;for(;i&&i.parent;)mi(i.parent.vnode)&&du(n,e,o,i),i=i.parent}}function du(t,e,o,n){const i=an(e,t,n,!0);ln(()=>{zn(n[e],i)},o)}function an(t,e,o=we,n=!1){if(o){const i=o[t]||(o[t]=[]),s=e.__weh||(e.__weh=(...r)=>{if(o.isUnmounted)return;nt();const a=To(o),l=We(e,o,t,r);return a(),it(),l});return n?i.unshift(s):i.push(s),s}else if({}.NODE_ENV!=="production"){const i=Pt(ni[t].replace(/ hook$/,""));N(`${i} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const lt=t=>(e,o=we)=>(!vn||t==="sp")&&an(t,(...n)=>e(...n),o),fu=lt("bm"),vi=lt("m"),pu=lt("bu"),hu=lt("u"),mu=lt("bum"),ln=lt("um"),vu=lt("sp"),gu=lt("rtg"),yu=lt("rtc");function bu(t,e=we){an("ec",t,e)}function Xt(t,e,o,n){let i;const s=o&&o[n];if(F(t)||me(t)){i=new Array(t.length);for(let r=0,a=t.length;r<a;r++)i[r]=e(t[r],r,void 0,s&&s[r])}else if(typeof t=="number"){({}).NODE_ENV!=="production"&&!Number.isInteger(t)&&N(`The v-for range expect an integer value but got ${t}.`),i=new Array(t);for(let r=0;r<t;r++)i[r]=e(r+1,r,void 0,s&&s[r])}else if(ie(t))if(t[Symbol.iterator])i=Array.from(t,(r,a)=>e(r,a,void 0,s&&s[a]));else{const r=Object.keys(t);i=new Array(r.length);for(let a=0,l=r.length;a<l;a++){const c=r[a];i[a]=e(t[c],c,a,s&&s[a])}}else i=[];return o&&(o[n]=i),i}function ue(t,e,o={},n,i){if(ye.isCE||ye.parent&&wo(ye.parent)&&ye.parent.isCE)return e!=="default"&&(o.name=e),oe("slot",o,n&&n());let s=t[e];({}).NODE_ENV!=="production"&&s&&s.length>1&&(N("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),s=()=>[]),s&&s._c&&(s._d=!1),D();const r=s&&kr(s(o)),a=_e(be,{key:o.key||r&&r.key||`_${e}`},r||(n?n():[]),r&&t._===1?64:-2);return!i&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),s&&s._c&&(s._d=!0),a}function kr(t){return t.some(e=>Jt(e)?!(e.type===Ie||e.type===be&&!kr(e.children)):!0)?t:null}const gi=t=>t?ea(t)?gn(t)||t.proxy:gi(t.parent):null,Ht=de(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>({}).NODE_ENV!=="production"?st(t.props):t.props,$attrs:t=>({}).NODE_ENV!=="production"?st(t.attrs):t.attrs,$slots:t=>({}).NODE_ENV!=="production"?st(t.slots):t.slots,$refs:t=>({}).NODE_ENV!=="production"?st(t.refs):t.refs,$parent:t=>gi(t.parent),$root:t=>gi(t.root),$emit:t=>t.emit,$options:t=>xi(t),$forceUpdate:t=>t.f||(t.f=()=>{t.effect.dirty=!0,en(t.update)}),$nextTick:t=>t.n||(t.n=sr.bind(t.proxy)),$watch:t=>lu.bind(t)}),yi=t=>t==="_"||t==="$",bi=(t,e)=>t!==ae&&!t.__isScriptSetup&&Z(t,e),Nr={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:o,setupState:n,data:i,props:s,accessCache:r,type:a,appContext:l}=t;if({}.NODE_ENV!=="production"&&e==="__isVue")return!0;let c;if(e[0]!=="$"){const v=r[e];if(v!==void 0)switch(v){case 1:return n[e];case 2:return i[e];case 4:return o[e];case 3:return s[e]}else{if(bi(n,e))return r[e]=1,n[e];if(i!==ae&&Z(i,e))return r[e]=2,i[e];if((c=t.propsOptions[0])&&Z(c,e))return r[e]=3,s[e];if(o!==ae&&Z(o,e))return r[e]=4,o[e];_i&&(r[e]=0)}}const d=Ht[e];let f,u;if(d)return e==="$attrs"?(Se(t.attrs,"get",""),{}.NODE_ENV!=="production"&&sn()):{}.NODE_ENV!=="production"&&e==="$slots"&&Se(t,"get",e),d(t);if((f=a.__cssModules)&&(f=f[e]))return f;if(o!==ae&&Z(o,e))return r[e]=4,o[e];if(u=l.config.globalProperties,Z(u,e))return u[e];({}).NODE_ENV!=="production"&&ye&&(!me(e)||e.indexOf("__v")!==0)&&(i!==ae&&yi(e[0])&&Z(i,e)?N(`Property ${JSON.stringify(e)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):t===ye&&N(`Property ${JSON.stringify(e)} was accessed during render but is not defined on instance.`))},set({_:t},e,o){const{data:n,setupState:i,ctx:s}=t;return bi(i,e)?(i[e]=o,!0):{}.NODE_ENV!=="production"&&i.__isScriptSetup&&Z(i,e)?(N(`Cannot mutate <script setup> binding "${e}" from Options API.`),!1):n!==ae&&Z(n,e)?(n[e]=o,!0):Z(t.props,e)?({}.NODE_ENV!=="production"&&N(`Attempting to mutate prop "${e}". Props are readonly.`),!1):e[0]==="$"&&e.slice(1)in t?({}.NODE_ENV!=="production"&&N(`Attempting to mutate public property "${e}". Properties starting with $ are reserved and readonly.`),!1):({}.NODE_ENV!=="production"&&e in t.appContext.config.globalProperties?Object.defineProperty(s,e,{enumerable:!0,configurable:!0,value:o}):s[e]=o,!0)},has({_:{data:t,setupState:e,accessCache:o,ctx:n,appContext:i,propsOptions:s}},r){let a;return!!o[r]||t!==ae&&Z(t,r)||bi(e,r)||(a=s[0])&&Z(a,r)||Z(n,r)||Z(Ht,r)||Z(i.config.globalProperties,r)},defineProperty(t,e,o){return o.get!=null?t._.accessCache[e]=0:Z(o,"value")&&this.set(t,e,o.value,null),Reflect.defineProperty(t,e,o)}};({}).NODE_ENV!=="production"&&(Nr.ownKeys=t=>(N("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(t)));function _u(t){const e={};return Object.defineProperty(e,"_",{configurable:!0,enumerable:!1,get:()=>t}),Object.keys(Ht).forEach(o=>{Object.defineProperty(e,o,{configurable:!0,enumerable:!1,get:()=>Ht[o](t),set:ge})}),e}function xu(t){const{ctx:e,propsOptions:[o]}=t;o&&Object.keys(o).forEach(n=>{Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>t.props[n],set:ge})})}function wu(t){const{ctx:e,setupState:o}=t;Object.keys(Y(o)).forEach(n=>{if(!o.__isScriptSetup){if(yi(n[0])){N(`setup() return property ${JSON.stringify(n)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>o[n],set:ge})}})}function Or(t){return F(t)?t.reduce((e,o)=>(e[o]=null,e),{}):t}function Eu(){const t=Object.create(null);return(e,o)=>{t[o]?N(`${e} property "${o}" is already defined in ${t[o]}.`):t[o]=e}}let _i=!0;function Cu(t){const e=xi(t),o=t.proxy,n=t.ctx;_i=!1,e.beforeCreate&&Sr(e.beforeCreate,t,"bc");const{data:i,computed:s,methods:r,watch:a,provide:l,inject:c,created:d,beforeMount:f,mounted:u,beforeUpdate:v,updated:b,activated:y,deactivated:k,beforeDestroy:A,beforeUnmount:$,destroyed:z,unmounted:G,render:ne,renderTracked:M,renderTriggered:I,errorCaptured:he,serverPrefetch:ve,expose:Te,inheritAttrs:Nt,components:qe,directives:jn,filters:Rl}=e,Ot={}.NODE_ENV!=="production"?Eu():null;if({}.NODE_ENV!=="production"){const[te]=t.propsOptions;if(te)for(const Q in te)Ot("Props",Q)}if(c&&ku(c,n,Ot),r)for(const te in r){const Q=r[te];W(Q)?({}.NODE_ENV!=="production"?Object.defineProperty(n,te,{value:Q.bind(o),configurable:!0,enumerable:!0,writable:!0}):n[te]=Q.bind(o),{}.NODE_ENV!=="production"&&Ot("Methods",te)):{}.NODE_ENV!=="production"&&N(`Method "${te}" has type "${typeof Q}" in the component definition. Did you reference the function correctly?`)}if(i){({}).NODE_ENV!=="production"&&!W(i)&&N("The data option must be a function. Plain object usage is no longer supported.");const te=i.call(o,o);if({}.NODE_ENV!=="production"&&Hn(te)&&N("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!ie(te))({}).NODE_ENV!=="production"&&N("data() should return an object.");else if(t.data=Fe(te),{}.NODE_ENV!=="production")for(const Q in te)Ot("Data",Q),yi(Q[0])||Object.defineProperty(n,Q,{configurable:!0,enumerable:!0,get:()=>te[Q],set:ge})}if(_i=!0,s)for(const te in s){const Q=s[te],tt=W(Q)?Q.bind(o,o):W(Q.get)?Q.get.bind(o,o):ge;({}).NODE_ENV!=="production"&&tt===ge&&N(`Computed property "${te}" has no getter.`);const bs=!W(Q)&&W(Q.set)?Q.set.bind(o):{}.NODE_ENV!=="production"?()=>{N(`Write operation failed: computed property "${te}" is readonly.`)}:ge,Ro=ud({get:tt,set:bs});Object.defineProperty(n,te,{enumerable:!0,configurable:!0,get:()=>Ro.value,set:so=>Ro.value=so}),{}.NODE_ENV!=="production"&&Ot("Computed",te)}if(a)for(const te in a)$r(a[te],n,o,te);if(l){const te=W(l)?l.call(o):l;Reflect.ownKeys(te).forEach(Q=>{Du(Q,te[Q])})}d&&Sr(d,t,"c");function Ae(te,Q){F(Q)?Q.forEach(tt=>te(tt.bind(o))):Q&&te(Q.bind(o))}if(Ae(fu,f),Ae(vi,u),Ae(pu,v),Ae(hu,b),Ae(cu,y),Ae(uu,k),Ae(bu,he),Ae(yu,M),Ae(gu,I),Ae(mu,$),Ae(ln,G),Ae(vu,ve),F(Te))if(Te.length){const te=t.exposed||(t.exposed={});Te.forEach(Q=>{Object.defineProperty(te,Q,{get:()=>o[Q],set:tt=>o[Q]=tt})})}else t.exposed||(t.exposed={});ne&&t.render===ge&&(t.render=ne),Nt!=null&&(t.inheritAttrs=Nt),qe&&(t.components=qe),jn&&(t.directives=jn)}function ku(t,e,o=ge){F(t)&&(t=wi(t));for(const n in t){const i=t[n];let s;ie(i)?"default"in i?s=un(i.from||n,i.default,!0):s=un(i.from||n):s=un(i),$e(s)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>s.value,set:r=>s.value=r}):e[n]=s,{}.NODE_ENV!=="production"&&o("Inject",n)}}function Sr(t,e,o){We(F(t)?t.map(n=>n.bind(e.proxy)):t.bind(e.proxy),e,o)}function $r(t,e,o,n){const i=n.includes(".")?wr(o,n):()=>o[n];if(me(t)){const s=e[t];W(s)?se(i,s):{}.NODE_ENV!=="production"&&N(`Invalid watch handler specified by key "${t}"`,s)}else if(W(t))se(i,t.bind(o));else if(ie(t))if(F(t))t.forEach(s=>$r(s,e,o,n));else{const s=W(t.handler)?t.handler.bind(o):e[t.handler];W(s)?se(i,s,t):{}.NODE_ENV!=="production"&&N(`Invalid watch handler specified by key "${t.handler}"`,s)}else({}).NODE_ENV!=="production"&&N(`Invalid watch option: "${n}"`,t)}function xi(t){const e=t.type,{mixins:o,extends:n}=e,{mixins:i,optionsCache:s,config:{optionMergeStrategies:r}}=t.appContext,a=s.get(e);let l;return a?l=a:!i.length&&!o&&!n?l=e:(l={},i.length&&i.forEach(c=>cn(l,c,r,!0)),cn(l,e,r)),ie(e)&&s.set(e,l),l}function cn(t,e,o,n=!1){const{mixins:i,extends:s}=e;s&&cn(t,s,o,!0),i&&i.forEach(r=>cn(t,r,o,!0));for(const r in e)if(n&&r==="expose")({}).NODE_ENV!=="production"&&N('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const a=Nu[r]||o&&o[r];t[r]=a?a(t[r],e[r]):e[r]}return t}const Nu={data:Tr,props:Dr,emits:Dr,methods:Eo,computed:Eo,beforeCreate:Pe,created:Pe,beforeMount:Pe,mounted:Pe,beforeUpdate:Pe,updated:Pe,beforeDestroy:Pe,beforeUnmount:Pe,destroyed:Pe,unmounted:Pe,activated:Pe,deactivated:Pe,errorCaptured:Pe,serverPrefetch:Pe,components:Eo,directives:Eo,watch:Su,provide:Tr,inject:Ou};function Tr(t,e){return e?t?function(){return de(W(t)?t.call(this,this):t,W(e)?e.call(this,this):e)}:e:t}function Ou(t,e){return Eo(wi(t),wi(e))}function wi(t){if(F(t)){const e={};for(let o=0;o<t.length;o++)e[t[o]]=t[o];return e}return t}function Pe(t,e){return t?[...new Set([].concat(t,e))]:e}function Eo(t,e){return t?de(Object.create(null),t,e):e}function Dr(t,e){return t?F(t)&&F(e)?[...new Set([...t,...e])]:de(Object.create(null),Or(t),Or(e??{})):e}function Su(t,e){if(!t)return e;if(!e)return t;const o=de(Object.create(null),t);for(const n in e)o[n]=Pe(t[n],e[n]);return o}function Pr(){return{app:null,config:{isNativeTag:Bl,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 $u=0;function Tu(t,e){return function(n,i=null){W(n)||(n=de({},n)),i!=null&&!ie(i)&&({}.NODE_ENV!=="production"&&N("root props passed to app.mount() must be an object."),i=null);const s=Pr(),r=new WeakSet;let a=!1;const l=s.app={_uid:$u++,_component:n,_props:i,_container:null,_context:s,_instance:null,version:ra,get config(){return s.config},set config(c){({}).NODE_ENV!=="production"&&N("app.config cannot be replaced. Modify individual options instead.")},use(c,...d){return r.has(c)?{}.NODE_ENV!=="production"&&N("Plugin has already been applied to target app."):c&&W(c.install)?(r.add(c),c.install(l,...d)):W(c)?(r.add(c),c(l,...d)):{}.NODE_ENV!=="production"&&N('A plugin must either be a function or an object with an "install" function.'),l},mixin(c){return s.mixins.includes(c)?{}.NODE_ENV!=="production"&&N("Mixin has already been applied to target app"+(c.name?`: ${c.name}`:"")):s.mixins.push(c),l},component(c,d){return{}.NODE_ENV!=="production"&&Di(c,s.config),d?({}.NODE_ENV!=="production"&&s.components[c]&&N(`Component "${c}" has already been registered in target app.`),s.components[c]=d,l):s.components[c]},directive(c,d){return{}.NODE_ENV!=="production"&&Er(c),d?({}.NODE_ENV!=="production"&&s.directives[c]&&N(`Directive "${c}" has already been registered in target app.`),s.directives[c]=d,l):s.directives[c]},mount(c,d,f){if(a)({}).NODE_ENV!=="production"&&N("App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`");else{({}).NODE_ENV!=="production"&&c.__vue_app__&&N("There is already an app instance mounted on the host container.\n If you want to mount another app on the same host container, you need to unmount the previous app by calling `app.unmount()` first.");const u=oe(n,i);return u.appContext=s,f===!0?f="svg":f===!1&&(f=void 0),{}.NODE_ENV!=="production"&&(s.reload=()=>{t(Et(u),c,f)}),d&&e?e(u,c):t(u,c,f),a=!0,l._container=c,c.__vue_app__=l,{}.NODE_ENV!=="production"&&(l._instance=u.component,Hc(l,ra)),gn(u.component)||u.component.proxy}},unmount(){a?(t(null,l._container),{}.NODE_ENV!=="production"&&(l._instance=null,Bc(l)),delete l._container.__vue_app__):{}.NODE_ENV!=="production"&&N("Cannot unmount an app that is not mounted.")},provide(c,d){return{}.NODE_ENV!=="production"&&c in s.provides&&N(`App already provides property with key "${String(c)}". It will be overwritten with the new value.`),s.provides[c]=d,l},runWithContext(c){const d=Co;Co=l;try{return c()}finally{Co=d}}};return l}}let Co=null;function Du(t,e){if(!we)({}).NODE_ENV!=="production"&&N("provide() can only be used inside setup().");else{let o=we.provides;const n=we.parent&&we.parent.provides;n===o&&(o=we.provides=Object.create(n)),o[t]=e}}function un(t,e,o=!1){const n=we||ye;if(n||Co){const i=n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:Co._context.provides;if(i&&t in i)return i[t];if(arguments.length>1)return o&&W(e)?e.call(n&&n.proxy):e;({}).NODE_ENV!=="production"&&N(`injection "${String(t)}" not found.`)}else({}).NODE_ENV!=="production"&&N("inject() can only be used inside setup() or functional components.")}const Lr={},Vr=()=>Object.create(Lr),Ir=t=>Object.getPrototypeOf(t)===Lr;function Pu(t,e,o,n=!1){const i={},s=Vr();t.propsDefaults=Object.create(null),Mr(t,e,i,s);for(const r in t.propsOptions[0])r in i||(i[r]=void 0);({}).NODE_ENV!=="production"&&zr(e||{},i,t),o?t.props=n?i:wc(i):t.type.props?t.props=i:t.props=s,t.attrs=s}function Lu(t){for(;t;){if(t.type.__hmrId)return!0;t=t.parent}}function Vu(t,e,o,n){const{props:i,attrs:s,vnode:{patchFlag:r}}=t,a=Y(i),[l]=t.propsOptions;let c=!1;if(!({}.NODE_ENV!=="production"&&Lu(t))&&(n||r>0)&&!(r&16)){if(r&8){const d=t.vnode.dynamicProps;for(let f=0;f<d.length;f++){let u=d[f];if(tn(t.emitsOptions,u))continue;const v=e[u];if(l)if(Z(s,u))v!==s[u]&&(s[u]=v,c=!0);else{const b=Re(u);i[b]=Ei(l,a,b,v,t,!1)}else v!==s[u]&&(s[u]=v,c=!0)}}}else{Mr(t,e,i,s)&&(c=!0);let d;for(const f in a)(!e||!Z(e,f)&&((d=je(f))===f||!Z(e,d)))&&(l?o&&(o[f]!==void 0||o[d]!==void 0)&&(i[f]=Ei(l,a,f,void 0,t,!0)):delete i[f]);if(s!==a)for(const f in s)(!e||!Z(e,f))&&(delete s[f],c=!0)}c&&Ze(t.attrs,"set",""),{}.NODE_ENV!=="production"&&zr(e||{},i,t)}function Mr(t,e,o,n){const[i,s]=t.propsOptions;let r=!1,a;if(e)for(let l in e){if(uo(l))continue;const c=e[l];let d;i&&Z(i,d=Re(l))?!s||!s.includes(d)?o[d]=c:(a||(a={}))[d]=c:tn(t.emitsOptions,l)||(!(l in n)||c!==n[l])&&(n[l]=c,r=!0)}if(s){const l=Y(o),c=a||ae;for(let d=0;d<s.length;d++){const f=s[d];o[f]=Ei(i,l,f,c[f],t,!Z(c,f))}}return r}function Ei(t,e,o,n,i,s){const r=t[o];if(r!=null){const a=Z(r,"default");if(a&&n===void 0){const l=r.default;if(r.type!==Function&&!r.skipFactory&&W(l)){const{propsDefaults:c}=i;if(o in c)n=c[o];else{const d=To(i);n=c[o]=l.call(null,e),d()}}else n=l}r[0]&&(s&&!a?n=!1:r[1]&&(n===""||n===je(o))&&(n=!0))}return n}function Ar(t,e,o=!1){const n=e.propsCache,i=n.get(t);if(i)return i;const s=t.props,r={},a=[];let l=!1;if(!W(t)){const d=f=>{l=!0;const[u,v]=Ar(f,e,!0);de(r,u),v&&a.push(...v)};!o&&e.mixins.length&&e.mixins.forEach(d),t.extends&&d(t.extends),t.mixins&&t.mixins.forEach(d)}if(!s&&!l)return ie(t)&&n.set(t,Kt),Kt;if(F(s))for(let d=0;d<s.length;d++){({}).NODE_ENV!=="production"&&!me(s[d])&&N("props must be strings when using array syntax.",s[d]);const f=Re(s[d]);Rr(f)&&(r[f]=ae)}else if(s){({}).NODE_ENV!=="production"&&!ie(s)&&N("invalid props options",s);for(const d in s){const f=Re(d);if(Rr(f)){const u=s[d],v=r[f]=F(u)||W(u)?{type:u}:de({},u);if(v){const b=Fr(Boolean,v.type),y=Fr(String,v.type);v[0]=b>-1,v[1]=y<0||b<y,(b>-1||Z(v,"default"))&&a.push(f)}}}}const c=[r,a];return ie(t)&&n.set(t,c),c}function Rr(t){return t[0]!=="$"&&!uo(t)?!0:({}.NODE_ENV!=="production"&&N(`Invalid prop name: "${t}" is a reserved property.`),!1)}function Ci(t){return t===null?"null":typeof t=="function"?t.name||"":typeof t=="object"&&t.constructor&&t.constructor.name||""}function jr(t,e){return Ci(t)===Ci(e)}function Fr(t,e){return F(e)?e.findIndex(o=>jr(o,t)):W(e)&&jr(e,t)?0:-1}function zr(t,e,o){const n=Y(e),i=o.propsOptions[0];for(const s in i){let r=i[s];r!=null&&Iu(s,n[s],r,{}.NODE_ENV!=="production"?st(n):n,!Z(t,s)&&!Z(t,je(s)))}}function Iu(t,e,o,n,i){const{type:s,required:r,validator:a,skipCheck:l}=o;if(r&&i){N('Missing required prop: "'+t+'"');return}if(!(e==null&&!r)){if(s!=null&&s!==!0&&!l){let c=!1;const d=F(s)?s:[s],f=[];for(let u=0;u<d.length&&!c;u++){const{valid:v,expectedType:b}=Au(e,d[u]);f.push(b||""),c=v}if(!c){N(Ru(t,e,f));return}}a&&!a(e,n)&&N('Invalid prop: custom validator check failed for prop "'+t+'".')}}const Mu=Gt("String,Number,Boolean,Function,Symbol,BigInt");function Au(t,e){let o;const n=Ci(e);if(Mu(n)){const i=typeof t;o=i===n.toLowerCase(),!o&&i==="object"&&(o=t instanceof e)}else n==="Object"?o=ie(t):n==="Array"?o=F(t):n==="null"?o=t===null:o=t instanceof e;return{valid:o,expectedType:n}}function Ru(t,e,o){if(o.length===0)return`Prop type [] for prop "${t}" won't match anything. Did you mean to use type Array instead?`;let n=`Invalid prop: type check failed for prop "${t}". Expected ${o.map(Dt).join(" | ")}`;const i=o[0],s=Bn(e),r=Hr(e,i),a=Hr(e,s);return o.length===1&&Br(i)&&!ju(i,s)&&(n+=` with value ${r}`),n+=`, got ${s} `,Br(s)&&(n+=`with value ${a}.`),n}function Hr(t,e){return e==="String"?`"${t}"`:e==="Number"?`${Number(t)}`:`${t}`}function Br(t){return["string","number","boolean"].some(o=>t.toLowerCase()===o)}function ju(...t){return t.some(e=>e.toLowerCase()==="boolean")}const Wr=t=>t[0]==="_"||t==="$stable",ki=t=>F(t)?t.map(Ge):[Ge(t)],Fu=(t,e,o)=>{if(e._n)return e;const n=Ce((...i)=>({}.NODE_ENV!=="production"&&we&&(!o||o.root===we.root)&&N(`Slot "${t}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),ki(e(...i))),o);return n._c=!1,n},Ur=(t,e,o)=>{const n=t._ctx;for(const i in t){if(Wr(i))continue;const s=t[i];if(W(s))e[i]=Fu(i,s,n);else if(s!=null){({}).NODE_ENV!=="production"&&N(`Non-function value encountered for slot "${i}". Prefer function slots for better performance.`);const r=ki(s);e[i]=()=>r}}},Gr=(t,e)=>{({}).NODE_ENV!=="production"&&!mi(t.vnode)&&N("Non-function value encountered for default slot. Prefer function slots for better performance.");const o=ki(e);t.slots.default=()=>o},zu=(t,e)=>{const o=t.slots=Vr();if(t.vnode.shapeFlag&32){const n=e._;n?(de(o,e),Os(o,"_",n)):Ur(e,o)}else e&&Gr(t,e)},Hu=(t,e,o)=>{const{vnode:n,slots:i}=t;let s=!0,r=ae;if(n.shapeFlag&32){const a=e._;a?{}.NODE_ENV!=="production"&&Rt?(de(i,e),Ze(t,"set","$slots")):o&&a===1?s=!1:(de(i,e),!o&&a===1&&delete i._):(s=!e.$stable,Ur(e,i)),r=e}else e&&(Gr(t,e),r={default:1});if(s)for(const a in i)!Wr(a)&&r[a]==null&&delete i[a]};function Ni(t,e,o,n,i=!1){if(F(t)){t.forEach((u,v)=>Ni(u,e&&(F(e)?e[v]:e),o,n,i));return}if(wo(n)&&!i)return;const s=n.shapeFlag&4?gn(n.component)||n.component.proxy:n.el,r=i?null:s,{i:a,r:l}=t;if({}.NODE_ENV!=="production"&&!a){N("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");return}const c=e&&e.r,d=a.refs===ae?a.refs={}:a.refs,f=a.setupState;if(c!=null&&c!==l&&(me(c)?(d[c]=null,Z(f,c)&&(f[c]=null)):$e(c)&&(c.value=null)),W(l))rt(l,a,12,[r,d]);else{const u=me(l),v=$e(l);if(u||v){const b=()=>{if(t.f){const y=u?Z(f,l)?f[l]:d[l]:l.value;i?F(y)&&zn(y,s):F(y)?y.includes(s)||y.push(s):u?(d[l]=[s],Z(f,l)&&(f[l]=d[l])):(l.value=[s],t.k&&(d[t.k]=l.value))}else u?(d[l]=r,Z(f,l)&&(f[l]=r)):v?(l.value=r,t.k&&(d[t.k]=r)):{}.NODE_ENV!=="production"&&N("Invalid template ref type:",l,`(${typeof l})`)};r?(b.id=-1,Ve(b,o)):b()}else({}).NODE_ENV!=="production"&&N("Invalid template ref type:",l,`(${typeof l})`)}}let ko,wt;function ct(t,e){t.appContext.config.performance&&dn()&&wt.mark(`vue-${e}-${t.uid}`),{}.NODE_ENV!=="production"&&Kc(t,e,dn()?wt.now():Date.now())}function ut(t,e){if(t.appContext.config.performance&&dn()){const o=`vue-${e}-${t.uid}`,n=o+":end";wt.mark(n),wt.measure(`<${yn(t,t.type)}> ${e}`,o,n),wt.clearMarks(o),wt.clearMarks(n)}({}).NODE_ENV!=="production"&&qc(t,e,dn()?wt.now():Date.now())}function dn(){return ko!==void 0||(typeof window<"u"&&window.performance?(ko=!0,wt=window.performance):ko=!1),ko}function Bu(){const t=[];if({}.NODE_ENV!=="production"&&t.length){const e=t.length>1;console.warn(`Feature flag${e?"s":""} ${t.join(", ")} ${e?"are":"is"} not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.
|
|
19
20
|
|
|
20
|
-
For more details, see https://link.vuejs.org/feature-flags.`)}}const $n=GT;function T6(e){return O6(e)}function O6(e,t){P6();const r=ap();r.__VUE__=!0,{}.NODE_ENV!=="production"&&b_(r.__VUE_DEVTOOLS_GLOBAL_HOOK__,r);const{insert:n,remove:i,patchProp:o,createElement:s,createText:a,createComment:c,setText:l,setElementText:u,parentNode:h,nextSibling:f,setScopeId:d=Cr,insertStaticContent:p}=e,g=(J,Q,ot,lt=null,ct=null,dt=null,$t=void 0,vt=null,bt={}.NODE_ENV!=="production"&&Rs?!1:!!Q.dynamicChildren)=>{if(J===Q)return;J&&!Us(J,Q)&&(lt=G(J),$(J,ct,dt,!0),J=null),Q.patchFlag===-2&&(bt=!1,Q.dynamicChildren=null);const{type:ut,ref:It,shapeFlag:Vt}=Q;switch(ut){case Ll:v(J,Q,ot,lt);break;case Yr:b(J,Q,ot,lt);break;case Oh:J==null?y(Q,ot,lt,$t):{}.NODE_ENV!=="production"&&m(J,Q,ot,$t);break;case Kr:it(J,Q,ot,lt,ct,dt,$t,vt,bt);break;default:Vt&1?E(J,Q,ot,lt,ct,dt,$t,vt,bt):Vt&6?nt(J,Q,ot,lt,ct,dt,$t,vt,bt):Vt&64||Vt&128?ut.process(J,Q,ot,lt,ct,dt,$t,vt,bt,st):{}.NODE_ENV!=="production"&&Mt("Invalid VNode type:",ut,`(${typeof ut})`)}It!=null&&ct&&Hp(It,J&&J.ref,dt,Q||J,!Q)},v=(J,Q,ot,lt)=>{if(J==null)n(Q.el=a(Q.children),ot,lt);else{const ct=Q.el=J.el;Q.children!==J.children&&l(ct,Q.children)}},b=(J,Q,ot,lt)=>{J==null?n(Q.el=c(Q.children||""),ot,lt):Q.el=J.el},y=(J,Q,ot,lt)=>{[J.el,J.anchor]=p(J.children,Q,ot,lt,J.el,J.anchor)},m=(J,Q,ot,lt)=>{if(Q.children!==J.children){const ct=f(J.anchor);A(J),[Q.el,Q.anchor]=p(Q.children,ot,ct,lt)}else Q.el=J.el,Q.anchor=J.anchor},x=({el:J,anchor:Q},ot,lt)=>{let ct;for(;J&&J!==Q;)ct=f(J),n(J,ot,lt),J=ct;n(Q,ot,lt)},A=({el:J,anchor:Q})=>{let ot;for(;J&&J!==Q;)ot=f(J),i(J),J=ot;i(Q)},E=(J,Q,ot,lt,ct,dt,$t,vt,bt)=>{Q.type==="svg"?$t="svg":Q.type==="math"&&($t="mathml"),J==null?k(Q,ot,lt,ct,dt,$t,vt,bt):U(J,Q,ct,dt,$t,vt,bt)},k=(J,Q,ot,lt,ct,dt,$t,vt)=>{let bt,ut;const{props:It,shapeFlag:Vt,transition:Ut,dirs:Kt}=J;if(bt=J.el=s(J.type,dt,It&&It.is,It),Vt&8?u(bt,J.children):Vt&16&&V(J.children,bt,null,lt,ct,qp(J,dt),$t,vt),Kt&&Fs(J,null,lt,"created"),D(bt,J,J.scopeId,$t,lt),It){for(const Yt in It)Yt!=="value"&&!El(Yt)&&o(bt,Yt,null,It[Yt],dt,J.children,lt,ct,I);"value"in It&&o(bt,"value",null,It.value,dt),(ut=It.onVnodeBeforeMount)&&Di(ut,lt,J)}({}).NODE_ENV!=="production"&&(Object.defineProperty(bt,"__vnode",{value:J,enumerable:!1}),Object.defineProperty(bt,"__vueParentComponent",{value:lt,enumerable:!1})),Kt&&Fs(J,null,lt,"beforeMount");const ne=N6(ct,Ut);ne&&Ut.beforeEnter(bt),n(bt,Q,ot),((ut=It&&It.onVnodeMounted)||ne||Kt)&&$n(()=>{ut&&Di(ut,lt,J),ne&&Ut.enter(bt),Kt&&Fs(J,null,lt,"mounted")},ct)},D=(J,Q,ot,lt,ct)=>{if(ot&&d(J,ot),lt)for(let dt=0;dt<lt.length;dt++)d(J,lt[dt]);if(ct){let dt=ct.subTree;if({}.NODE_ENV!=="production"&&dt.patchFlag>0&&dt.patchFlag&2048&&(dt=Op(dt.children)||dt),Q===dt){const $t=ct.vnode;D(J,$t,$t.scopeId,$t.slotScopeIds,ct.parent)}}},V=(J,Q,ot,lt,ct,dt,$t,vt,bt=0)=>{for(let ut=bt;ut<J.length;ut++){const It=J[ut]=vt?qo(J[ut]):fi(J[ut]);g(null,It,Q,ot,lt,ct,dt,$t,vt)}},U=(J,Q,ot,lt,ct,dt,$t)=>{const vt=Q.el=J.el;let{patchFlag:bt,dynamicChildren:ut,dirs:It}=Q;bt|=J.patchFlag&16;const Vt=J.props||Ze,Ut=Q.props||Ze;let Kt;if(ot&&Vs(ot,!1),(Kt=Ut.onVnodeBeforeUpdate)&&Di(Kt,ot,Q,J),It&&Fs(Q,J,ot,"beforeUpdate"),ot&&Vs(ot,!0),{}.NODE_ENV!=="production"&&Rs&&(bt=0,$t=!1,ut=null),ut?(K(J.dynamicChildren,ut,vt,ot,lt,qp(Q,ct),dt),{}.NODE_ENV!=="production"&&Th(J,Q)):$t||at(J,Q,vt,null,ot,lt,qp(Q,ct),dt,!1),bt>0){if(bt&16)Y(vt,Q,Vt,Ut,ot,lt,ct);else if(bt&2&&Vt.class!==Ut.class&&o(vt,"class",null,Ut.class,ct),bt&4&&o(vt,"style",Vt.style,Ut.style,ct),bt&8){const ne=Q.dynamicProps;for(let Yt=0;Yt<ne.length;Yt++){const fe=ne[Yt],je=Vt[fe],nr=Ut[fe];(nr!==je||fe==="value")&&o(vt,fe,je,nr,ct,J.children,ot,lt,I)}}bt&1&&J.children!==Q.children&&u(vt,Q.children)}else!$t&&ut==null&&Y(vt,Q,Vt,Ut,ot,lt,ct);((Kt=Ut.onVnodeUpdated)||It)&&$n(()=>{Kt&&Di(Kt,ot,Q,J),It&&Fs(Q,J,ot,"updated")},lt)},K=(J,Q,ot,lt,ct,dt,$t)=>{for(let vt=0;vt<Q.length;vt++){const bt=J[vt],ut=Q[vt],It=bt.el&&(bt.type===Kr||!Us(bt,ut)||bt.shapeFlag&70)?h(bt.el):ot;g(bt,ut,It,null,lt,ct,dt,$t,!0)}},Y=(J,Q,ot,lt,ct,dt,$t)=>{if(ot!==lt){if(ot!==Ze)for(const vt in ot)!El(vt)&&!(vt in lt)&&o(J,vt,ot[vt],null,$t,Q.children,ct,dt,I);for(const vt in lt){if(El(vt))continue;const bt=lt[vt],ut=ot[vt];bt!==ut&&vt!=="value"&&o(J,vt,ut,bt,$t,Q.children,ct,dt,I)}"value"in lt&&o(J,"value",ot.value,lt.value,$t)}},it=(J,Q,ot,lt,ct,dt,$t,vt,bt)=>{const ut=Q.el=J?J.el:a(""),It=Q.anchor=J?J.anchor:a("");let{patchFlag:Vt,dynamicChildren:Ut,slotScopeIds:Kt}=Q;({}).NODE_ENV!=="production"&&(Rs||Vt&2048)&&(Vt=0,bt=!1,Ut=null),Kt&&(vt=vt?vt.concat(Kt):Kt),J==null?(n(ut,ot,lt),n(It,ot,lt),V(Q.children||[],ot,It,ct,dt,$t,vt,bt)):Vt>0&&Vt&64&&Ut&&J.dynamicChildren?(K(J.dynamicChildren,Ut,ot,ct,dt,$t,vt),{}.NODE_ENV!=="production"?Th(J,Q):(Q.key!=null||ct&&Q===ct.subTree)&&Th(J,Q,!0)):at(J,Q,ot,It,ct,dt,$t,vt,bt)},nt=(J,Q,ot,lt,ct,dt,$t,vt,bt)=>{Q.slotScopeIds=vt,J==null?Q.shapeFlag&512?ct.ctx.activate(Q,ot,lt,$t,bt):ft(Q,ot,lt,ct,dt,$t,bt):xt(J,Q,bt)},ft=(J,Q,ot,lt,ct,dt,$t)=>{const vt=J.component=L6(J,lt,ct);if({}.NODE_ENV!=="production"&&vt.type.__hmrId&&$T(vt),{}.NODE_ENV!=="production"&&(vh(J),so(vt,"mount")),Il(J)&&(vt.ctx.renderer=st),{}.NODE_ENV!=="production"&&so(vt,"init"),U6(vt),{}.NODE_ENV!=="production"&&ao(vt,"init"),vt.asyncDep){if(ct&&ct.registerDep(vt,_t),!J.el){const bt=vt.subTree=_r(Yr);b(null,bt,Q,ot)}}else _t(vt,J,Q,ot,ct,dt,$t);({}).NODE_ENV!=="production"&&(yh(),ao(vt,"mount"))},xt=(J,Q,ot)=>{const lt=Q.component=J.component;if(LT(J,Q,ot))if(lt.asyncDep&&!lt.asyncResolved){({}).NODE_ENV!=="production"&&vh(Q),yt(lt,Q,ot),{}.NODE_ENV!=="production"&&yh();return}else lt.next=Q,xT(lt.update),lt.effect.dirty=!0,lt.update();else Q.el=J.el,lt.vnode=Q},_t=(J,Q,ot,lt,ct,dt,$t)=>{const vt=()=>{if(J.isMounted){let{next:It,bu:Vt,u:Ut,parent:Kt,vnode:ne}=J;{const gr=ob(J);if(gr){It&&(It.el=ne.el,yt(J,It,$t)),gr.asyncDep.then(()=>{J.isUnmounted||vt()});return}}let Yt=It,fe;({}).NODE_ENV!=="production"&&vh(It||J.vnode),Vs(J,!1),It?(It.el=ne.el,yt(J,It,$t)):It=ne,Vt&&Cl(Vt),(fe=It.props&&It.props.onVnodeBeforeUpdate)&&Di(fe,Kt,It,ne),Vs(J,!0),{}.NODE_ENV!=="production"&&so(J,"render");const je=Tp(J);({}).NODE_ENV!=="production"&&ao(J,"render");const nr=J.subTree;J.subTree=je,{}.NODE_ENV!=="production"&&so(J,"patch"),g(nr,je,h(nr.el),G(nr),J,ct,dt),{}.NODE_ENV!=="production"&&ao(J,"patch"),It.el=je.el,Yt===null&&VT(J,je.el),Ut&&$n(Ut,ct),(fe=It.props&&It.props.onVnodeUpdated)&&$n(()=>Di(fe,Kt,It,ne),ct),{}.NODE_ENV!=="production"&&w_(J),{}.NODE_ENV!=="production"&&yh()}else{let It;const{el:Vt,props:Ut}=Q,{bm:Kt,m:ne,parent:Yt}=J,fe=Rl(Q);if(Vs(J,!1),Kt&&Cl(Kt),!fe&&(It=Ut&&Ut.onVnodeBeforeMount)&&Di(It,Yt,Q),Vs(J,!0),Vt&&Lt){const je=()=>{({}).NODE_ENV!=="production"&&so(J,"render"),J.subTree=Tp(J),{}.NODE_ENV!=="production"&&ao(J,"render"),{}.NODE_ENV!=="production"&&so(J,"hydrate"),Lt(Vt,J.subTree,J,ct,null),{}.NODE_ENV!=="production"&&ao(J,"hydrate")};fe?Q.type.__asyncLoader().then(()=>!J.isUnmounted&&je()):je()}else{({}).NODE_ENV!=="production"&&so(J,"render");const je=J.subTree=Tp(J);({}).NODE_ENV!=="production"&&ao(J,"render"),{}.NODE_ENV!=="production"&&so(J,"patch"),g(null,je,ot,lt,J,ct,dt),{}.NODE_ENV!=="production"&&ao(J,"patch"),Q.el=je.el}if(ne&&$n(ne,ct),!fe&&(It=Ut&&Ut.onVnodeMounted)){const je=Q;$n(()=>Di(It,Yt,je),ct)}(Q.shapeFlag&256||Yt&&Rl(Yt.vnode)&&Yt.vnode.shapeFlag&256)&&J.a&&$n(J.a,ct),J.isMounted=!0,{}.NODE_ENV!=="production"&&OT(J),Q=ot=lt=null}},bt=J.effect=new up(vt,Cr,()=>_h(ut),J.scope),ut=J.update=()=>{bt.dirty&&bt.run()};ut.id=J.uid,Vs(J,!0),{}.NODE_ENV!=="production"&&(bt.onTrack=J.rtc?It=>Cl(J.rtc,It):void 0,bt.onTrigger=J.rtg?It=>Cl(J.rtg,It):void 0,ut.ownerInstance=J),ut()},yt=(J,Q,ot)=>{Q.component=J;const lt=J.vnode.props;J.vnode=Q,J.next=null,_6(J,Q.props,lt,ot),k6(J,Q.children,ot),Zi(),m_(J),to()},at=(J,Q,ot,lt,ct,dt,$t,vt,bt=!1)=>{const ut=J&&J.children,It=J?J.shapeFlag:0,Vt=Q.children,{patchFlag:Ut,shapeFlag:Kt}=Q;if(Ut>0){if(Ut&128){O(ut,Vt,ot,lt,ct,dt,$t,vt,bt);return}else if(Ut&256){X(ut,Vt,ot,lt,ct,dt,$t,vt,bt);return}}Kt&8?(It&16&&I(ut,ct,dt),Vt!==ut&&u(ot,Vt)):It&16?Kt&16?O(ut,Vt,ot,lt,ct,dt,$t,vt,bt):I(ut,ct,dt,!0):(It&8&&u(ot,""),Kt&16&&V(Vt,ot,lt,ct,dt,$t,vt,bt))},X=(J,Q,ot,lt,ct,dt,$t,vt,bt)=>{J=J||Ra,Q=Q||Ra;const ut=J.length,It=Q.length,Vt=Math.min(ut,It);let Ut;for(Ut=0;Ut<Vt;Ut++){const Kt=Q[Ut]=bt?qo(Q[Ut]):fi(Q[Ut]);g(J[Ut],Kt,ot,null,ct,dt,$t,vt,bt)}ut>It?I(J,ct,dt,!0,!1,Vt):V(Q,ot,lt,ct,dt,$t,vt,bt,Vt)},O=(J,Q,ot,lt,ct,dt,$t,vt,bt)=>{let ut=0;const It=Q.length;let Vt=J.length-1,Ut=It-1;for(;ut<=Vt&&ut<=Ut;){const Kt=J[ut],ne=Q[ut]=bt?qo(Q[ut]):fi(Q[ut]);if(Us(Kt,ne))g(Kt,ne,ot,null,ct,dt,$t,vt,bt);else break;ut++}for(;ut<=Vt&&ut<=Ut;){const Kt=J[Vt],ne=Q[Ut]=bt?qo(Q[Ut]):fi(Q[Ut]);if(Us(Kt,ne))g(Kt,ne,ot,null,ct,dt,$t,vt,bt);else break;Vt--,Ut--}if(ut>Vt){if(ut<=Ut){const Kt=Ut+1,ne=Kt<It?Q[Kt].el:lt;for(;ut<=Ut;)g(null,Q[ut]=bt?qo(Q[ut]):fi(Q[ut]),ot,ne,ct,dt,$t,vt,bt),ut++}}else if(ut>Ut)for(;ut<=Vt;)$(J[ut],ct,dt,!0),ut++;else{const Kt=ut,ne=ut,Yt=new Map;for(ut=ne;ut<=Ut;ut++){const ue=Q[ut]=bt?qo(Q[ut]):fi(Q[ut]);ue.key!=null&&({}.NODE_ENV!=="production"&&Yt.has(ue.key)&&Mt("Duplicate keys found during update:",JSON.stringify(ue.key),"Make sure keys are unique."),Yt.set(ue.key,ut))}let fe,je=0;const nr=Ut-ne+1;let gr=!1,sr=0;const Mr=new Array(nr);for(ut=0;ut<nr;ut++)Mr[ut]=0;for(ut=Kt;ut<=Vt;ut++){const ue=J[ut];if(je>=nr){$(ue,ct,dt,!0);continue}let dr;if(ue.key!=null)dr=Yt.get(ue.key);else for(fe=ne;fe<=Ut;fe++)if(Mr[fe-ne]===0&&Us(ue,Q[fe])){dr=fe;break}dr===void 0?$(ue,ct,dt,!0):(Mr[dr-ne]=ut+1,dr>=sr?sr=dr:gr=!0,g(ue,Q[dr],ot,null,ct,dt,$t,vt,bt),je++)}const an=gr?A6(Mr):Ra;for(fe=an.length-1,ut=nr-1;ut>=0;ut--){const ue=ne+ut,dr=Q[ue],Lr=ue+1<It?Q[ue+1].el:lt;Mr[ut]===0?g(null,dr,ot,Lr,ct,dt,$t,vt,bt):gr&&(fe<0||ut!==an[fe]?C(dr,ot,Lr,2):fe--)}}},C=(J,Q,ot,lt,ct=null)=>{const{el:dt,type:$t,transition:vt,children:bt,shapeFlag:ut}=J;if(ut&6){C(J.component.subTree,Q,ot,lt);return}if(ut&128){J.suspense.move(Q,ot,lt);return}if(ut&64){$t.move(J,Q,ot,st);return}if($t===Kr){n(dt,Q,ot);for(let Vt=0;Vt<bt.length;Vt++)C(bt[Vt],Q,ot,lt);n(J.anchor,Q,ot);return}if($t===Oh){x(J,Q,ot);return}if(lt!==2&&ut&1&&vt)if(lt===0)vt.beforeEnter(dt),n(dt,Q,ot),$n(()=>vt.enter(dt),ct);else{const{leave:Vt,delayLeave:Ut,afterLeave:Kt}=vt,ne=()=>n(dt,Q,ot),Yt=()=>{Vt(dt,()=>{ne(),Kt&&Kt()})};Ut?Ut(dt,ne,Yt):Yt()}else n(dt,Q,ot)},$=(J,Q,ot,lt=!1,ct=!1)=>{const{type:dt,props:$t,ref:vt,children:bt,dynamicChildren:ut,shapeFlag:It,patchFlag:Vt,dirs:Ut}=J;if(vt!=null&&Hp(vt,null,ot,J,!0),It&256){Q.ctx.deactivate(J);return}const Kt=It&1&&Ut,ne=!Rl(J);let Yt;if(ne&&(Yt=$t&&$t.onVnodeBeforeUnmount)&&Di(Yt,Q,J),It&6)M(J.component,ot,lt);else{if(It&128){J.suspense.unmount(ot,lt);return}Kt&&Fs(J,null,Q,"beforeUnmount"),It&64?J.type.remove(J,Q,ot,ct,st,lt):ut&&(dt!==Kr||Vt>0&&Vt&64)?I(ut,Q,ot,!1,!0):(dt===Kr&&Vt&384||!ct&&It&16)&&I(bt,Q,ot),lt&&_(J)}(ne&&(Yt=$t&&$t.onVnodeUnmounted)||Kt)&&$n(()=>{Yt&&Di(Yt,Q,J),Kt&&Fs(J,null,Q,"unmounted")},ot)},_=J=>{const{type:Q,el:ot,anchor:lt,transition:ct}=J;if(Q===Kr){({}).NODE_ENV!=="production"&&J.patchFlag>0&&J.patchFlag&2048&&ct&&!ct.persisted?J.children.forEach($t=>{$t.type===Yr?i($t.el):_($t)}):P(ot,lt);return}if(Q===Oh){A(J);return}const dt=()=>{i(ot),ct&&!ct.persisted&&ct.afterLeave&&ct.afterLeave()};if(J.shapeFlag&1&&ct&&!ct.persisted){const{leave:$t,delayLeave:vt}=ct,bt=()=>$t(ot,dt);vt?vt(J.el,dt,bt):bt()}else dt()},P=(J,Q)=>{let ot;for(;J!==Q;)ot=f(J),i(J),J=ot;i(Q)},M=(J,Q,ot)=>{({}).NODE_ENV!=="production"&&J.type.__hmrId&&ET(J);const{bum:lt,scope:ct,update:dt,subTree:$t,um:vt}=J;lt&&Cl(lt),ct.stop(),dt&&(dt.active=!1,$($t,J,Q,ot)),vt&&$n(vt,Q),$n(()=>{J.isUnmounted=!0},Q),Q&&Q.pendingBranch&&!Q.isUnmounted&&J.asyncDep&&!J.asyncResolved&&J.suspenseId===Q.pendingId&&(Q.deps--,Q.deps===0&&Q.resolve()),{}.NODE_ENV!=="production"&&AT(J)},I=(J,Q,ot,lt=!1,ct=!1,dt=0)=>{for(let $t=dt;$t<J.length;$t++)$(J[$t],Q,ot,lt,ct)},G=J=>J.shapeFlag&6?G(J.component.subTree):J.shapeFlag&128?J.suspense.next():f(J.anchor||J.el);let q=!1;const et=(J,Q,ot)=>{J==null?Q._vnode&&$(Q._vnode,null,null,!0):g(Q._vnode||null,J,Q,null,null,null,ot),q||(q=!0,m_(),g_(),q=!1),Q._vnode=J},st={p:g,um:$,m:C,r:_,mt:ft,mc:V,pc:at,pbc:K,n:G,o:e};let mt,Lt;return t&&([mt,Lt]=t(st)),{render:et,hydrate:mt,createApp:g6(et,mt)}}function qp({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function Vs({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function N6(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Th(e,t,r=!1){const n=e.children,i=t.children;if(oe(n)&&oe(i))for(let o=0;o<n.length;o++){const s=n[o];let a=i[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[o]=qo(i[o]),a.el=s.el),r||Th(s,a)),a.type===Ll&&(a.el=s.el),{}.NODE_ENV!=="production"&&a.type===Yr&&!a.el&&(a.el=s.el)}}function A6(e){const t=e.slice(),r=[0];let n,i,o,s,a;const c=e.length;for(n=0;n<c;n++){const l=e[n];if(l!==0){if(i=r[r.length-1],e[i]<l){t[n]=i,r.push(n);continue}for(o=0,s=r.length-1;o<s;)a=o+s>>1,e[r[a]]<l?o=a+1:s=a;l<e[r[o]]&&(o>0&&(t[n]=r[o-1]),r[o]=n)}}for(o=r.length,s=r[o-1];o-- >0;)r[o]=s,s=t[s];return r}function ob(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ob(t)}const D6=e=>e.__isTeleport,Kr=Symbol.for("v-fgt"),Ll=Symbol.for("v-txt"),Yr=Symbol.for("v-cmt"),Oh=Symbol.for("v-stc"),Vl=[];let hi=null;function Oe(e=!1){Vl.push(hi=e?null:[])}function R6(){Vl.pop(),hi=Vl[Vl.length-1]||null}let Ul=1;function sb(e){Ul+=e}function ab(e){return e.dynamicChildren=Ul>0?hi||Ra:null,R6(),Ul>0&&hi&&hi.push(e),e}function Rr(e,t,r,n,i,o){return ab(Ke(e,t,r,n,i,o,!0))}function rn(e,t,r,n,i){return ab(_r(e,t,r,n,i,!0))}function La(e){return e?e.__v_isVNode===!0:!1}function Us(e,t){return{}.NODE_ENV!=="production"&&t.shapeFlag&6&&Fa.has(t.type)?(e.shapeFlag&=-257,t.shapeFlag&=-513,!1):e.type===t.type&&e.key===t.key}const I6=(...e)=>cb(...e),lb=({key:e})=>e??null,Nh=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?wr(e)||en(e)||pe(e)?{i:Dr,r:e,k:t,f:!!r}:e:null);function Ke(e,t=null,r=null,n=0,i=null,o=e===Kr?0:1,s=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&lb(t),ref:t&&Nh(t),scopeId:$_,slotScopeIds:null,children:r,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:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Dr};return a?(Kp(c,r),o&128&&e.normalize(c)):r&&(c.shapeFlag|=wr(r)?8:16),{}.NODE_ENV!=="production"&&c.key!==c.key&&Mt("VNode created with invalid key (NaN). VNode type:",c.type),Ul>0&&!s&&hi&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&hi.push(c),c}const _r={}.NODE_ENV!=="production"?I6:cb;function cb(e,t=null,r=null,n=0,i=null,o=!1){if((!e||e===UT)&&({}.NODE_ENV!=="production"&&!e&&Mt(`Invalid vnode type when creating vnode: ${e}.`),e=Yr),La(e)){const a=di(e,t,!0);return r&&Kp(a,r),Ul>0&&!o&&hi&&(a.shapeFlag&6?hi[hi.indexOf(e)]=a:hi.push(a)),a.patchFlag|=-2,a}if(yb(e)&&(e=e.__vccOpts),t){t=j6(t);let{class:a,style:c}=t;a&&!wr(a)&&(t.class=lp(a)),qe(c)&&(_p(c)&&!oe(c)&&(c=cr({},c)),t.style=Me(c))}const s=wr(e)?1:zT(e)?128:D6(e)?64:qe(e)?4:pe(e)?2:0;return{}.NODE_ENV!=="production"&&s&4&&_p(e)&&(e=ce(e),Mt("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
|
|
21
|
-
Component that was made reactive: `,
|
|
21
|
+
For more details, see https://link.vuejs.org/feature-flags.`)}}const Ve=su;function Wu(t){return Uu(t)}function Uu(t,e){Bu();const o=Un();o.__VUE__=!0,{}.NODE_ENV!=="production"&&pr(o.__VUE_DEVTOOLS_GLOBAL_HOOK__,o);const{insert:n,remove:i,patchProp:s,createElement:r,createText:a,createComment:l,setText:c,setElementText:d,parentNode:f,nextSibling:u,setScopeId:v=ge,insertStaticContent:b}=t,y=(p,m,g,_=null,x=null,C=null,S=void 0,E=null,O={}.NODE_ENV!=="production"&&Rt?!1:!!m.dynamicChildren)=>{if(p===m)return;p&&!$o(p,m)&&(_=Fn(p),St(p,x,C,!0),p=null),m.patchFlag===-2&&(O=!1,m.dynamicChildren=null);const{type:w,ref:P,shapeFlag:H}=m;switch(w){case No:k(p,m,g,_);break;case Ie:A(p,m,g,_);break;case pn:p==null?$(m,g,_,S):{}.NODE_ENV!=="production"&&z(p,m,g,S);break;case be:jn(p,m,g,_,x,C,S,E,O);break;default:H&1?M(p,m,g,_,x,C,S,E,O):H&6?Rl(p,m,g,_,x,C,S,E,O):H&64||H&128?w.process(p,m,g,_,x,C,S,E,O,ro):{}.NODE_ENV!=="production"&&N("Invalid VNode type:",w,`(${typeof w})`)}P!=null&&x&&Ni(P,p&&p.ref,C,m||p,!m)},k=(p,m,g,_)=>{if(p==null)n(m.el=a(m.children),g,_);else{const x=m.el=p.el;m.children!==p.children&&c(x,m.children)}},A=(p,m,g,_)=>{p==null?n(m.el=l(m.children||""),g,_):m.el=p.el},$=(p,m,g,_)=>{[p.el,p.anchor]=b(p.children,m,g,_,p.el,p.anchor)},z=(p,m,g,_)=>{if(m.children!==p.children){const x=u(p.anchor);ne(p),[m.el,m.anchor]=b(m.children,g,x,_)}else m.el=p.el,m.anchor=p.anchor},G=({el:p,anchor:m},g,_)=>{let x;for(;p&&p!==m;)x=u(p),n(p,g,_),p=x;n(m,g,_)},ne=({el:p,anchor:m})=>{let g;for(;p&&p!==m;)g=u(p),i(p),p=g;i(m)},M=(p,m,g,_,x,C,S,E,O)=>{m.type==="svg"?S="svg":m.type==="math"&&(S="mathml"),p==null?I(m,g,_,x,C,S,E,O):Te(p,m,x,C,S,E,O)},I=(p,m,g,_,x,C,S,E)=>{let O,w;const{props:P,shapeFlag:H,transition:j,dirs:K}=p;if(O=p.el=r(p.type,C,P&&P.is,P),H&8?d(O,p.children):H&16&&ve(p.children,O,null,_,x,Oi(p,C),S,E),K&&zt(p,null,_,"created"),he(O,p,p.scopeId,S,_),P){for(const re in P)re!=="value"&&!uo(re)&&s(O,re,null,P[re],C,p.children,_,x,vt);"value"in P&&s(O,"value",null,P.value,C),(w=P.onVnodeBeforeMount)&&Qe(w,_,p)}({}).NODE_ENV!=="production"&&(Object.defineProperty(O,"__vnode",{value:p,enumerable:!1}),Object.defineProperty(O,"__vueParentComponent",{value:_,enumerable:!1})),K&&zt(p,null,_,"beforeMount");const J=Gu(x,j);J&&j.beforeEnter(O),n(O,m,g),((w=P&&P.onVnodeMounted)||J||K)&&Ve(()=>{w&&Qe(w,_,p),J&&j.enter(O),K&&zt(p,null,_,"mounted")},x)},he=(p,m,g,_,x)=>{if(g&&v(p,g),_)for(let C=0;C<_.length;C++)v(p,_[C]);if(x){let C=x.subTree;if({}.NODE_ENV!=="production"&&C.patchFlag>0&&C.patchFlag&2048&&(C=fi(C.children)||C),m===C){const S=x.vnode;he(p,S,S.scopeId,S.slotScopeIds,x.parent)}}},ve=(p,m,g,_,x,C,S,E,O=0)=>{for(let w=O;w<p.length;w++){const P=p[w]=E?Ct(p[w]):Ge(p[w]);y(null,P,m,g,_,x,C,S,E)}},Te=(p,m,g,_,x,C,S)=>{const E=m.el=p.el;let{patchFlag:O,dynamicChildren:w,dirs:P}=m;O|=p.patchFlag&16;const H=p.props||ae,j=m.props||ae;let K;if(g&&Bt(g,!1),(K=j.onVnodeBeforeUpdate)&&Qe(K,g,m,p),P&&zt(m,p,g,"beforeUpdate"),g&&Bt(g,!0),{}.NODE_ENV!=="production"&&Rt&&(O=0,S=!1,w=null),w?(Nt(p.dynamicChildren,w,E,g,_,Oi(m,x),C),{}.NODE_ENV!=="production"&&fn(p,m)):S||tt(p,m,E,null,g,_,Oi(m,x),C,!1),O>0){if(O&16)qe(E,m,H,j,g,_,x);else if(O&2&&H.class!==j.class&&s(E,"class",null,j.class,x),O&4&&s(E,"style",H.style,j.style,x),O&8){const J=m.dynamicProps;for(let re=0;re<J.length;re++){const pe=J[re],Ne=H[pe],Ye=j[pe];(Ye!==Ne||pe==="value")&&s(E,pe,Ne,Ye,x,p.children,g,_,vt)}}O&1&&p.children!==m.children&&d(E,m.children)}else!S&&w==null&&qe(E,m,H,j,g,_,x);((K=j.onVnodeUpdated)||P)&&Ve(()=>{K&&Qe(K,g,m,p),P&&zt(m,p,g,"updated")},_)},Nt=(p,m,g,_,x,C,S)=>{for(let E=0;E<m.length;E++){const O=p[E],w=m[E],P=O.el&&(O.type===be||!$o(O,w)||O.shapeFlag&70)?f(O.el):g;y(O,w,P,null,_,x,C,S,!0)}},qe=(p,m,g,_,x,C,S)=>{if(g!==_){if(g!==ae)for(const E in g)!uo(E)&&!(E in _)&&s(p,E,g[E],null,S,m.children,x,C,vt);for(const E in _){if(uo(E))continue;const O=_[E],w=g[E];O!==w&&E!=="value"&&s(p,E,w,O,S,m.children,x,C,vt)}"value"in _&&s(p,"value",g.value,_.value,S)}},jn=(p,m,g,_,x,C,S,E,O)=>{const w=m.el=p?p.el:a(""),P=m.anchor=p?p.anchor:a("");let{patchFlag:H,dynamicChildren:j,slotScopeIds:K}=m;({}).NODE_ENV!=="production"&&(Rt||H&2048)&&(H=0,O=!1,j=null),K&&(E=E?E.concat(K):K),p==null?(n(w,g,_),n(P,g,_),ve(m.children||[],g,P,x,C,S,E,O)):H>0&&H&64&&j&&p.dynamicChildren?(Nt(p.dynamicChildren,j,g,x,C,S,E),{}.NODE_ENV!=="production"?fn(p,m):(m.key!=null||x&&m===x.subTree)&&fn(p,m,!0)):tt(p,m,g,P,x,C,S,E,O)},Rl=(p,m,g,_,x,C,S,E,O)=>{m.slotScopeIds=E,p==null?m.shapeFlag&512?x.ctx.activate(m,g,_,S,O):Ot(m,g,_,x,C,S,O):Ae(p,m,O)},Ot=(p,m,g,_,x,C,S)=>{const E=p.component=ed(p,_,x);if({}.NODE_ENV!=="production"&&E.type.__hmrId&&Rc(E),{}.NODE_ENV!=="production"&&(Jo(p),ct(E,"mount")),mi(p)&&(E.ctx.renderer=ro),{}.NODE_ENV!=="production"&&ct(E,"init"),nd(E),{}.NODE_ENV!=="production"&&ut(E,"init"),E.asyncDep){if(x&&x.registerDep(E,te),!p.el){const O=E.subTree=oe(Ie);A(null,O,m,g)}}else te(E,p,m,g,x,C,S);({}).NODE_ENV!=="production"&&(Qo(),ut(E,"mount"))},Ae=(p,m,g)=>{const _=m.component=p.component;if(Qc(p,m,g))if(_.asyncDep&&!_.asyncResolved){({}).NODE_ENV!=="production"&&Jo(m),Q(_,m,g),{}.NODE_ENV!=="production"&&Qo();return}else _.next=m,Mc(_.update),_.effect.dirty=!0,_.update();else m.el=p.el,_.vnode=m},te=(p,m,g,_,x,C,S)=>{const E=()=>{if(p.isMounted){let{next:P,bu:H,u:j,parent:K,vnode:J}=p;{const ao=Kr(p);if(ao){P&&(P.el=J.el,Q(p,P,S)),ao.asyncDep.then(()=>{p.isUnmounted||E()});return}}let re=P,pe;({}).NODE_ENV!=="production"&&Jo(P||p.vnode),Bt(p,!1),P?(P.el=J.el,Q(p,P,S)):P=J,H&&fo(H),(pe=P.props&&P.props.onVnodeBeforeUpdate)&&Qe(pe,K,P,J),Bt(p,!0),{}.NODE_ENV!=="production"&&ct(p,"render");const Ne=di(p);({}).NODE_ENV!=="production"&&ut(p,"render");const Ye=p.subTree;p.subTree=Ne,{}.NODE_ENV!=="production"&&ct(p,"patch"),y(Ye,Ne,f(Ye.el),Fn(Ye),p,x,C),{}.NODE_ENV!=="production"&&ut(p,"patch"),P.el=Ne.el,re===null&&eu(p,Ne.el),j&&Ve(j,x),(pe=P.props&&P.props.onVnodeUpdated)&&Ve(()=>Qe(pe,K,P,J),x),{}.NODE_ENV!=="production"&&hr(p),{}.NODE_ENV!=="production"&&Qo()}else{let P;const{el:H,props:j}=m,{bm:K,m:J,parent:re}=p,pe=wo(m);if(Bt(p,!1),K&&fo(K),!pe&&(P=j&&j.onVnodeBeforeMount)&&Qe(P,re,m),Bt(p,!0),H&&Es){const Ne=()=>{({}).NODE_ENV!=="production"&&ct(p,"render"),p.subTree=di(p),{}.NODE_ENV!=="production"&&ut(p,"render"),{}.NODE_ENV!=="production"&&ct(p,"hydrate"),Es(H,p.subTree,p,x,null),{}.NODE_ENV!=="production"&&ut(p,"hydrate")};pe?m.type.__asyncLoader().then(()=>!p.isUnmounted&&Ne()):Ne()}else{({}).NODE_ENV!=="production"&&ct(p,"render");const Ne=p.subTree=di(p);({}).NODE_ENV!=="production"&&ut(p,"render"),{}.NODE_ENV!=="production"&&ct(p,"patch"),y(null,Ne,g,_,p,x,C),{}.NODE_ENV!=="production"&&ut(p,"patch"),m.el=Ne.el}if(J&&Ve(J,x),!pe&&(P=j&&j.onVnodeMounted)){const Ne=m;Ve(()=>Qe(P,re,Ne),x)}(m.shapeFlag&256||re&&wo(re.vnode)&&re.vnode.shapeFlag&256)&&p.a&&Ve(p.a,x),p.isMounted=!0,{}.NODE_ENV!=="production"&&Wc(p),m=g=_=null}},O=p.effect=new Kn(E,ge,()=>en(w),p.scope),w=p.update=()=>{O.dirty&&O.run()};w.id=p.uid,Bt(p,!0),{}.NODE_ENV!=="production"&&(O.onTrack=p.rtc?P=>fo(p.rtc,P):void 0,O.onTrigger=p.rtg?P=>fo(p.rtg,P):void 0,w.ownerInstance=p),w()},Q=(p,m,g)=>{m.component=p;const _=p.vnode.props;p.vnode=m,p.next=null,Vu(p,m.props,_,g),Hu(p,m.children,g),nt(),lr(p),it()},tt=(p,m,g,_,x,C,S,E,O=!1)=>{const w=p&&p.children,P=p?p.shapeFlag:0,H=m.children,{patchFlag:j,shapeFlag:K}=m;if(j>0){if(j&128){Ro(w,H,g,_,x,C,S,E,O);return}else if(j&256){bs(w,H,g,_,x,C,S,E,O);return}}K&8?(P&16&&vt(w,x,C),H!==w&&d(g,H)):P&16?K&16?Ro(w,H,g,_,x,C,S,E,O):vt(w,x,C,!0):(P&8&&d(g,""),K&16&&ve(H,g,_,x,C,S,E,O))},bs=(p,m,g,_,x,C,S,E,O)=>{p=p||Kt,m=m||Kt;const w=p.length,P=m.length,H=Math.min(w,P);let j;for(j=0;j<H;j++){const K=m[j]=O?Ct(m[j]):Ge(m[j]);y(p[j],K,g,null,x,C,S,E,O)}w>P?vt(p,x,C,!0,!1,H):ve(m,g,_,x,C,S,E,O,H)},Ro=(p,m,g,_,x,C,S,E,O)=>{let w=0;const P=m.length;let H=p.length-1,j=P-1;for(;w<=H&&w<=j;){const K=p[w],J=m[w]=O?Ct(m[w]):Ge(m[w]);if($o(K,J))y(K,J,g,null,x,C,S,E,O);else break;w++}for(;w<=H&&w<=j;){const K=p[H],J=m[j]=O?Ct(m[j]):Ge(m[j]);if($o(K,J))y(K,J,g,null,x,C,S,E,O);else break;H--,j--}if(w>H){if(w<=j){const K=j+1,J=K<P?m[K].el:_;for(;w<=j;)y(null,m[w]=O?Ct(m[w]):Ge(m[w]),g,J,x,C,S,E,O),w++}}else if(w>j)for(;w<=H;)St(p[w],x,C,!0),w++;else{const K=w,J=w,re=new Map;for(w=J;w<=j;w++){const Le=m[w]=O?Ct(m[w]):Ge(m[w]);Le.key!=null&&({}.NODE_ENV!=="production"&&re.has(Le.key)&&N("Duplicate keys found during update:",JSON.stringify(Le.key),"Make sure keys are unique."),re.set(Le.key,w))}let pe,Ne=0;const Ye=j-J+1;let ao=!1,Fl=0;const jo=new Array(Ye);for(w=0;w<Ye;w++)jo[w]=0;for(w=K;w<=H;w++){const Le=p[w];if(Ne>=Ye){St(Le,x,C,!0);continue}let ot;if(Le.key!=null)ot=re.get(Le.key);else for(pe=J;pe<=j;pe++)if(jo[pe-J]===0&&$o(Le,m[pe])){ot=pe;break}ot===void 0?St(Le,x,C,!0):(jo[ot-J]=w+1,ot>=Fl?Fl=ot:ao=!0,y(Le,m[ot],g,null,x,C,S,E,O),Ne++)}const zl=ao?Ku(jo):Kt;for(pe=zl.length-1,w=Ye-1;w>=0;w--){const Le=J+w,ot=m[Le],Hl=Le+1<P?m[Le+1].el:_;jo[w]===0?y(null,ot,g,Hl,x,C,S,E,O):ao&&(pe<0||w!==zl[pe]?so(ot,g,Hl,2):pe--)}}},so=(p,m,g,_,x=null)=>{const{el:C,type:S,transition:E,children:O,shapeFlag:w}=p;if(w&6){so(p.component.subTree,m,g,_);return}if(w&128){p.suspense.move(m,g,_);return}if(w&64){S.move(p,m,g,ro);return}if(S===be){n(C,m,g);for(let H=0;H<O.length;H++)so(O[H],m,g,_);n(p.anchor,m,g);return}if(S===pn){G(p,m,g);return}if(_!==2&&w&1&&E)if(_===0)E.beforeEnter(C),n(C,m,g),Ve(()=>E.enter(C),x);else{const{leave:H,delayLeave:j,afterLeave:K}=E,J=()=>n(C,m,g),re=()=>{H(C,()=>{J(),K&&K()})};j?j(C,J,re):re()}else n(C,m,g)},St=(p,m,g,_=!1,x=!1)=>{const{type:C,props:S,ref:E,children:O,dynamicChildren:w,shapeFlag:P,patchFlag:H,dirs:j}=p;if(E!=null&&Ni(E,null,g,p,!0),P&256){m.ctx.deactivate(p);return}const K=P&1&&j,J=!wo(p);let re;if(J&&(re=S&&S.onVnodeBeforeUnmount)&&Qe(re,m,p),P&6)Jm(p.component,g,_);else{if(P&128){p.suspense.unmount(g,_);return}K&&zt(p,null,m,"beforeUnmount"),P&64?p.type.remove(p,m,g,x,ro,_):w&&(C!==be||H>0&&H&64)?vt(w,m,g,!1,!0):(C===be&&H&384||!x&&P&16)&&vt(O,m,g),_&&_s(p)}(J&&(re=S&&S.onVnodeUnmounted)||K)&&Ve(()=>{re&&Qe(re,m,p),K&&zt(p,null,m,"unmounted")},g)},_s=p=>{const{type:m,el:g,anchor:_,transition:x}=p;if(m===be){({}).NODE_ENV!=="production"&&p.patchFlag>0&&p.patchFlag&2048&&x&&!x.persisted?p.children.forEach(S=>{S.type===Ie?i(S.el):_s(S)}):Xm(g,_);return}if(m===pn){ne(p);return}const C=()=>{i(g),x&&!x.persisted&&x.afterLeave&&x.afterLeave()};if(p.shapeFlag&1&&x&&!x.persisted){const{leave:S,delayLeave:E}=x,O=()=>S(g,C);E?E(p.el,C,O):O()}else C()},Xm=(p,m)=>{let g;for(;p!==m;)g=u(p),i(p),p=g;i(m)},Jm=(p,m,g)=>{({}).NODE_ENV!=="production"&&p.type.__hmrId&&jc(p);const{bum:_,scope:x,update:C,subTree:S,um:E}=p;_&&fo(_),x.stop(),C&&(C.active=!1,St(S,p,m,g)),E&&Ve(E,m),Ve(()=>{p.isUnmounted=!0},m),m&&m.pendingBranch&&!m.isUnmounted&&p.asyncDep&&!p.asyncResolved&&p.suspenseId===m.pendingId&&(m.deps--,m.deps===0&&m.resolve()),{}.NODE_ENV!=="production"&&Gc(p)},vt=(p,m,g,_=!1,x=!1,C=0)=>{for(let S=C;S<p.length;S++)St(p[S],m,g,_,x)},Fn=p=>p.shapeFlag&6?Fn(p.component.subTree):p.shapeFlag&128?p.suspense.next():u(p.anchor||p.el);let xs=!1;const jl=(p,m,g)=>{p==null?m._vnode&&St(m._vnode,null,null,!0):y(m._vnode||null,p,m,null,null,null,g),xs||(xs=!0,lr(),cr(),xs=!1),m._vnode=p},ro={p:y,um:St,m:so,r:_s,mt:Ot,mc:ve,pc:tt,pbc:Nt,n:Fn,o:t};let ws,Es;return e&&([ws,Es]=e(ro)),{render:jl,hydrate:ws,createApp:Tu(jl,ws)}}function Oi({type:t,props:e},o){return o==="svg"&&t==="foreignObject"||o==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:o}function Bt({effect:t,update:e},o){t.allowRecurse=e.allowRecurse=o}function Gu(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function fn(t,e,o=!1){const n=t.children,i=e.children;if(F(n)&&F(i))for(let s=0;s<n.length;s++){const r=n[s];let a=i[s];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[s]=Ct(i[s]),a.el=r.el),o||fn(r,a)),a.type===No&&(a.el=r.el),{}.NODE_ENV!=="production"&&a.type===Ie&&!a.el&&(a.el=r.el)}}function Ku(t){const e=t.slice(),o=[0];let n,i,s,r,a;const l=t.length;for(n=0;n<l;n++){const c=t[n];if(c!==0){if(i=o[o.length-1],t[i]<c){e[n]=i,o.push(n);continue}for(s=0,r=o.length-1;s<r;)a=s+r>>1,t[o[a]]<c?s=a+1:r=a;c<t[o[s]]&&(s>0&&(e[n]=o[s-1]),o[s]=n)}}for(s=o.length,r=o[s-1];s-- >0;)o[s]=r,r=e[r];return o}function Kr(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:Kr(e)}const qu=t=>t.__isTeleport,be=Symbol.for("v-fgt"),No=Symbol.for("v-txt"),Ie=Symbol.for("v-cmt"),pn=Symbol.for("v-stc"),Oo=[];let Ue=null;function D(t=!1){Oo.push(Ue=t?null:[])}function Yu(){Oo.pop(),Ue=Oo[Oo.length-1]||null}let So=1;function qr(t){So+=t}function Yr(t){return t.dynamicChildren=So>0?Ue||Kt:null,Yu(),So>0&&Ue&&Ue.push(t),t}function B(t,e,o,n,i,s){return Yr(h(t,e,o,n,i,s,!0))}function _e(t,e,o,n,i){return Yr(oe(t,e,o,n,i,!0))}function Jt(t){return t?t.__v_isVNode===!0:!1}function $o(t,e){return{}.NODE_ENV!=="production"&&e.shapeFlag&6&&Zt.has(e.type)?(t.shapeFlag&=-257,e.shapeFlag&=-513,!1):t.type===e.type&&t.key===e.key}const Zu=(...t)=>Xr(...t),Zr=({key:t})=>t??null,hn=({ref:t,ref_key:e,ref_for:o})=>(typeof t=="number"&&(t=""+t),t!=null?me(t)||$e(t)||W(t)?{i:ye,r:t,k:e,f:!!o}:t:null);function h(t,e=null,o=null,n=0,i=null,s=t===be?0:1,r=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Zr(e),ref:e&&hn(e),scopeId:on,slotScopeIds:null,children:o,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:ye};return a?(Si(l,o),s&128&&t.normalize(l)):o&&(l.shapeFlag|=me(o)?8:16),{}.NODE_ENV!=="production"&&l.key!==l.key&&N("VNode created with invalid key (NaN). VNode type:",l.type),So>0&&!r&&Ue&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&Ue.push(l),l}const oe={}.NODE_ENV!=="production"?Zu:Xr;function Xr(t,e=null,o=null,n=0,i=null,s=!1){if((!t||t===ou)&&({}.NODE_ENV!=="production"&&!t&&N(`Invalid vnode type when creating vnode: ${t}.`),t=Ie),Jt(t)){const a=Et(t,e,!0);return o&&Si(a,o),So>0&&!s&&Ue&&(a.shapeFlag&6?Ue[Ue.indexOf(t)]=a:Ue.push(a)),a.patchFlag|=-2,a}if(ia(t)&&(t=t.__vccOpts),e){e=Xu(e);let{class:a,style:l}=e;a&&!me(a)&&(e.class=U(a)),ie(l)&&(ti(l)&&!F(l)&&(l=de({},l)),e.style=R(l))}const r=me(t)?1:iu(t)?128:qu(t)?64:ie(t)?4:W(t)?2:0;return{}.NODE_ENV!=="production"&&r&4&&ti(t)&&(t=Y(t),N("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
|
|
22
|
+
Component that was made reactive: `,t)),h(t,e,o,n,i,r,s,!0)}function Xu(t){return t?ti(t)||Ir(t)?de({},t):t:null}function Et(t,e,o=!1){const{props:n,ref:i,patchFlag:s,children:r}=t,a=e?$i(n||{},e):n;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:a,key:a&&Zr(a),ref:e&&e.ref?o&&i?F(i)?i.concat(hn(e)):[i,hn(e)]:hn(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:{}.NODE_ENV!=="production"&&s===-1&&F(r)?r.map(Jr):r,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==be?s===-1?16:s|16:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Et(t.ssContent),ssFallback:t.ssFallback&&Et(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function Jr(t){const e=Et(t);return F(t.children)&&(e.children=t.children.map(Jr)),e}function dt(t=" ",e=0){return oe(No,null,t,e)}function fe(t="",e=!1){return e?(D(),_e(Ie,null,t)):oe(Ie,null,t)}function Ge(t){return t==null||typeof t=="boolean"?oe(Ie):F(t)?oe(be,null,t.slice()):typeof t=="object"?Ct(t):oe(No,null,String(t))}function Ct(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Et(t)}function Si(t,e){let o=0;const{shapeFlag:n}=t;if(e==null)e=null;else if(F(e))o=16;else if(typeof e=="object")if(n&65){const i=e.default;i&&(i._c&&(i._d=!1),Si(t,i()),i._c&&(i._d=!0));return}else{o=32;const i=e._;!i&&!Ir(e)?e._ctx=ye:i===3&&ye&&(ye.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else W(e)?(e={default:e,_ctx:ye},o=32):(e=String(e),n&64?(o=16,e=[dt(e)]):o=8);t.children=e,t.shapeFlag|=o}function $i(...t){const e={};for(let o=0;o<t.length;o++){const n=t[o];for(const i in n)if(i==="class")e.class!==n.class&&(e.class=U([e.class,n.class]));else if(i==="style")e.style=R([e.style,n.style]);else if(co(i)){const s=e[i],r=n[i];r&&s!==r&&!(F(s)&&s.includes(r))&&(e[i]=s?[].concat(s,r):r)}else i!==""&&(e[i]=n[i])}return e}function Qe(t,e,o,n=null){We(t,e,7,[o,n])}const Ju=Pr();let Qu=0;function ed(t,e,o){const n=t.type,i=(e?e.appContext:t.appContext)||Ju,s={uid:Qu++,vnode:t,type:n,parent:e,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new ec(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ar(n,i),emitsOptions:vr(n,i),emit:null,emitted:null,propsDefaults:ae,inheritAttrs:n.inheritAttrs,ctx:ae,data:ae,props:ae,attrs:ae,slots:ae,refs:ae,setupState:ae,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:o,suspenseId:o?o.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{}.NODE_ENV!=="production"?s.ctx=_u(s):s.ctx={_:s},s.root=e?e.root:s,s.emit=Zc.bind(null,s),t.ce&&t.ce(s),s}let we=null;const td=()=>we||ye;let mn,Ti;{const t=Un(),e=(o,n)=>{let i;return(i=t[o])||(i=t[o]=[]),i.push(n),s=>{i.length>1?i.forEach(r=>r(s)):i[0](s)}};mn=e("__VUE_INSTANCE_SETTERS__",o=>we=o),Ti=e("__VUE_SSR_SETTERS__",o=>vn=o)}const To=t=>{const e=we;return mn(t),t.scope.on(),()=>{t.scope.off(),mn(e)}},Qr=()=>{we&&we.scope.off(),mn(null)},od=Gt("slot,component");function Di(t,{isNativeTag:e}){(od(t)||e(t))&&N("Do not use built-in or reserved HTML elements as component id: "+t)}function ea(t){return t.vnode.shapeFlag&4}let vn=!1;function nd(t,e=!1){e&&Ti(e);const{props:o,children:n}=t.vnode,i=ea(t);Pu(t,o,i,e),zu(t,n);const s=i?id(t,e):void 0;return e&&Ti(!1),s}function id(t,e){var o;const n=t.type;if({}.NODE_ENV!=="production"){if(n.name&&Di(n.name,t.appContext.config),n.components){const s=Object.keys(n.components);for(let r=0;r<s.length;r++)Di(s[r],t.appContext.config)}if(n.directives){const s=Object.keys(n.directives);for(let r=0;r<s.length;r++)Er(s[r])}n.compilerOptions&&sd()&&N('"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.')}t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,Nr),{}.NODE_ENV!=="production"&&xu(t);const{setup:i}=n;if(i){const s=t.setupContext=i.length>1?ad(t):null,r=To(t);nt();const a=rt(i,t,0,[{}.NODE_ENV!=="production"?st(t.props):t.props,s]);if(it(),r(),Hn(a)){if(a.then(Qr,Qr),e)return a.then(l=>{ta(t,l,e)}).catch(l=>{ho(l,t,0)});if(t.asyncDep=a,{}.NODE_ENV!=="production"&&!t.suspense){const l=(o=n.name)!=null?o:"Anonymous";N(`Component <${l}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`)}}else ta(t,a,e)}else oa(t,e)}function ta(t,e,o){W(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:ie(e)?({}.NODE_ENV!=="production"&&Jt(e)&&N("setup() should not return VNodes directly - return a render function instead."),{}.NODE_ENV!=="production"&&(t.devtoolsRawSetupState=e),t.setupState=or(e),{}.NODE_ENV!=="production"&&wu(t)):{}.NODE_ENV!=="production"&&e!==void 0&&N(`setup() should return an object. Received: ${e===null?"null":typeof e}`),oa(t,o)}let Pi;const sd=()=>!Pi;function oa(t,e,o){const n=t.type;if(!t.render){if(!e&&Pi&&!n.render){const i=n.template||xi(t).template;if(i){({}).NODE_ENV!=="production"&&ct(t,"compile");const{isCustomElement:s,compilerOptions:r}=t.appContext.config,{delimiters:a,compilerOptions:l}=n,c=de(de({isCustomElement:s,delimiters:a},r),l);n.render=Pi(i,c),{}.NODE_ENV!=="production"&&ut(t,"compile")}}t.render=n.render||ge}{const i=To(t);nt();try{Cu(t)}finally{it(),i()}}({}).NODE_ENV!=="production"&&!n.render&&t.render===ge&&!e&&(n.template?N('Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".'):N("Component is missing template or render function."))}const na={}.NODE_ENV!=="production"?{get(t,e){return sn(),Se(t,"get",""),t[e]},set(){return N("setupContext.attrs is readonly."),!1},deleteProperty(){return N("setupContext.attrs is readonly."),!1}}:{get(t,e){return Se(t,"get",""),t[e]}};function rd(t){return t.slotsProxy||(t.slotsProxy=new Proxy(t.slots,{get(e,o){return Se(t,"get","$slots"),e[o]}}))}function ad(t){const e=o=>{if({}.NODE_ENV!=="production"&&(t.exposed&&N("expose() should be called only once per setup()."),o!=null)){let n=typeof o;n==="object"&&(F(o)?n="array":$e(o)&&(n="ref")),n!=="object"&&N(`expose() should be passed a plain object, received ${n}.`)}t.exposed=o||{}};if({}.NODE_ENV!=="production"){let o;return Object.freeze({get attrs(){return o||(o=new Proxy(t.attrs,na))},get slots(){return rd(t)},get emit(){return(n,...i)=>t.emit(n,...i)},expose:e})}else return{attrs:new Proxy(t.attrs,na),slots:t.slots,emit:t.emit,expose:e}}function gn(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(or(Ec(t.exposed)),{get(e,o){if(o in e)return e[o];if(o in Ht)return Ht[o](t)},has(e,o){return o in e||o in Ht}}))}const ld=/(?:^|[-_])(\w)/g,cd=t=>t.replace(ld,e=>e.toUpperCase()).replace(/[-_]/g,"");function Li(t,e=!0){return W(t)?t.displayName||t.name:t.name||e&&t.__name}function yn(t,e,o=!1){let n=Li(e);if(!n&&e.__file){const i=e.__file.match(/([^/\\]+)\.\w+$/);i&&(n=i[1])}if(!n&&t&&t.parent){const i=s=>{for(const r in s)if(s[r]===e)return r};n=i(t.components||t.parent.type.components)||i(t.appContext.components)}return n?cd(n):o?"App":"Anonymous"}function ia(t){return W(t)&&"__vccOpts"in t}const ud=(t,e)=>{const o=kc(t,e,vn);if({}.NODE_ENV!=="production"){const n=td();n&&n.appContext.config.warnRecursiveComputed&&(o._warnRecursive=!0)}return o};function sa(t,e,o){const n=arguments.length;return n===2?ie(e)&&!F(e)?Jt(e)?oe(t,null,[e]):oe(t,e):oe(t,null,e):(n>3?o=Array.prototype.slice.call(arguments,2):n===3&&Jt(o)&&(o=[o]),oe(t,e,o))}function dd(){if({}.NODE_ENV==="production"||typeof window>"u")return;const t={style:"color:#3ba776"},e={style:"color:#1677ff"},o={style:"color:#f5222d"},n={style:"color:#eb2f96"},i={header(f){return ie(f)?f.__isVue?["div",t,"VueInstance"]:$e(f)?["div",{},["span",t,d(f)],"<",a(f.value),">"]:qt(f)?["div",{},["span",t,Mt(f)?"ShallowReactive":"Reactive"],"<",a(f),`>${It(f)?" (readonly)":""}`]:It(f)?["div",{},["span",t,Mt(f)?"ShallowReadonly":"Readonly"],"<",a(f),">"]:null:null},hasBody(f){return f&&f.__isVue},body(f){if(f&&f.__isVue)return["div",{},...s(f.$)]}};function s(f){const u=[];f.type.props&&f.props&&u.push(r("props",Y(f.props))),f.setupState!==ae&&u.push(r("setup",f.setupState)),f.data!==ae&&u.push(r("data",Y(f.data)));const v=l(f,"computed");v&&u.push(r("computed",v));const b=l(f,"inject");return b&&u.push(r("injected",b)),u.push(["div",{},["span",{style:n.style+";opacity:0.66"},"$ (internal): "],["object",{object:f}]]),u}function r(f,u){return u=de({},u),Object.keys(u).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},f],["div",{style:"padding-left:1.25em"},...Object.keys(u).map(v=>["div",{},["span",n,v+": "],a(u[v],!1)])]]:["span",{}]}function a(f,u=!0){return typeof f=="number"?["span",e,f]:typeof f=="string"?["span",o,JSON.stringify(f)]:typeof f=="boolean"?["span",n,f]:ie(f)?["object",{object:u?Y(f):f}]:["span",o,String(f)]}function l(f,u){const v=f.type;if(W(v))return;const b={};for(const y in f.ctx)c(v,y,u)&&(b[y]=f.ctx[y]);return b}function c(f,u,v){const b=f[v];if(F(b)&&b.includes(u)||ie(b)&&u in b||f.extends&&c(f.extends,u,v)||f.mixins&&f.mixins.some(y=>c(y,u,v)))return!0}function d(f){return Mt(f)?"ShallowRef":f.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(i):window.devtoolsFormatters=[i]}const ra="3.4.25",bn={}.NODE_ENV!=="production"?N:ge;/**
|
|
22
23
|
* @vue/runtime-dom v3.4.25
|
|
23
24
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
24
25
|
* @license MIT
|
|
25
|
-
**/const
|
|
26
|
-
Expected function or array of functions, received type ${typeof
|
|
26
|
+
**/const fd="http://www.w3.org/2000/svg",pd="http://www.w3.org/1998/Math/MathML",kt=typeof document<"u"?document:null,aa=kt&&kt.createElement("template"),hd={insert:(t,e,o)=>{e.insertBefore(t,o||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,o,n)=>{const i=e==="svg"?kt.createElementNS(fd,t):e==="mathml"?kt.createElementNS(pd,t):kt.createElement(t,o?{is:o}:void 0);return t==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:t=>kt.createTextNode(t),createComment:t=>kt.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>kt.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,o,n,i,s){const r=o?o.previousSibling:e.lastChild;if(i&&(i===s||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),o),!(i===s||!(i=i.nextSibling)););else{aa.innerHTML=n==="svg"?`<svg>${t}</svg>`:n==="mathml"?`<math>${t}</math>`:t;const a=aa.content;if(n==="svg"||n==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,o)}return[r?r.nextSibling:e.firstChild,o?o.previousSibling:e.lastChild]}},md=Symbol("_vtc");function vd(t,e,o){const n=t[md];n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?t.removeAttribute("class"):o?t.setAttribute("class",e):t.className=e}const _n=Symbol("_vod"),la=Symbol("_vsh"),xn={beforeMount(t,{value:e},{transition:o}){t[_n]=t.style.display==="none"?"":t.style.display,o&&e?o.beforeEnter(t):Do(t,e)},mounted(t,{value:e},{transition:o}){o&&e&&o.enter(t)},updated(t,{value:e,oldValue:o},{transition:n}){!e!=!o&&(n?e?(n.beforeEnter(t),Do(t,!0),n.enter(t)):n.leave(t,()=>{Do(t,!1)}):Do(t,e))},beforeUnmount(t,{value:e}){Do(t,e)}};({}).NODE_ENV!=="production"&&(xn.name="show");function Do(t,e){t.style.display=e?t[_n]:"none",t[la]=!e}const gd=Symbol({}.NODE_ENV!=="production"?"CSS_VAR_TEXT":""),yd=/(^|;)\s*display\s*:/;function bd(t,e,o){const n=t.style,i=me(o);let s=!1;if(o&&!i){if(e)if(me(e))for(const r of e.split(";")){const a=r.slice(0,r.indexOf(":")).trim();o[a]==null&&wn(n,a,"")}else for(const r in e)o[r]==null&&wn(n,r,"");for(const r in o)r==="display"&&(s=!0),wn(n,r,o[r])}else if(i){if(e!==o){const r=n[gd];r&&(o+=";"+r),n.cssText=o,s=yd.test(o)}}else e&&t.removeAttribute("style");_n in t&&(t[_n]=s?n.display:"",t[la]&&(n.display="none"))}const _d=/[^\\];\s*$/,ca=/\s*!important$/;function wn(t,e,o){if(F(o))o.forEach(n=>wn(t,e,n));else if(o==null&&(o=""),{}.NODE_ENV!=="production"&&_d.test(o)&&bn(`Unexpected semicolon at the end of '${e}' style value: '${o}'`),e.startsWith("--"))t.setProperty(e,o);else{const n=xd(t,e);ca.test(o)?t.setProperty(je(n),o.replace(ca,""),"important"):t[n]=o}}const ua=["Webkit","Moz","ms"],Vi={};function xd(t,e){const o=Vi[e];if(o)return o;let n=Re(e);if(n!=="filter"&&n in t)return Vi[e]=n;n=Dt(n);for(let i=0;i<ua.length;i++){const s=ua[i]+n;if(s in t)return Vi[e]=s}return e}const da="http://www.w3.org/1999/xlink";function wd(t,e,o,n,i){if(n&&e.startsWith("xlink:"))o==null?t.removeAttributeNS(da,e.slice(6,e.length)):t.setAttributeNS(da,e,o);else{const s=Ql(e);o==null||s&&!Ts(o)?t.removeAttribute(e):t.setAttribute(e,s?"":o)}}function Ed(t,e,o,n,i,s,r){if(e==="innerHTML"||e==="textContent"){n&&r(n,i,s),t[e]=o??"";return}const a=t.tagName;if(e==="value"&&a!=="PROGRESS"&&!a.includes("-")){const c=a==="OPTION"?t.getAttribute("value")||"":t.value,d=o??"";(c!==d||!("_value"in t))&&(t.value=d),o==null&&t.removeAttribute(e),t._value=o;return}let l=!1;if(o===""||o==null){const c=typeof t[e];c==="boolean"?o=Ts(o):o==null&&c==="string"?(o="",l=!0):c==="number"&&(o=0,l=!0)}try{t[e]=o}catch(c){({}).NODE_ENV!=="production"&&!l&&bn(`Failed setting prop "${e}" on <${a.toLowerCase()}>: value ${o} is invalid.`,c)}l&&t.removeAttribute(e)}function Cd(t,e,o,n){t.addEventListener(e,o,n)}function kd(t,e,o,n){t.removeEventListener(e,o,n)}const fa=Symbol("_vei");function Nd(t,e,o,n,i=null){const s=t[fa]||(t[fa]={}),r=s[e];if(n&&r)r.value={}.NODE_ENV!=="production"?ha(n,e):n;else{const[a,l]=Od(e);if(n){const c=s[e]=Td({}.NODE_ENV!=="production"?ha(n,e):n,i);Cd(t,a,c,l)}else r&&(kd(t,a,r,l),s[e]=void 0)}}const pa=/(?:Once|Passive|Capture)$/;function Od(t){let e;if(pa.test(t)){e={};let n;for(;n=t.match(pa);)t=t.slice(0,t.length-n[0].length),e[n[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):je(t.slice(2)),e]}let Ii=0;const Sd=Promise.resolve(),$d=()=>Ii||(Sd.then(()=>Ii=0),Ii=Date.now());function Td(t,e){const o=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=o.attached)return;We(Dd(n,o.value),e,5,[n])};return o.value=t,o.attached=$d(),o}function ha(t,e){return W(t)||F(t)?t:(bn(`Wrong type passed as event handler to ${e} - did you forget @ or : in front of your prop?
|
|
27
|
+
Expected function or array of functions, received type ${typeof t}.`),ge)}function Dd(t,e){if(F(e)){const o=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{o.call(t),t._stopped=!0},e.map(n=>i=>!i._stopped&&n&&n(i))}else return e}const ma=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,Pd=(t,e,o,n,i,s,r,a,l)=>{const c=i==="svg";e==="class"?vd(t,n,c):e==="style"?bd(t,o,n):co(e)?Fo(e)||Nd(t,e,o,n,r):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):Ld(t,e,n,c))?Ed(t,e,n,s,r,a,l):(e==="true-value"?t._trueValue=n:e==="false-value"&&(t._falseValue=n),wd(t,e,n,c))};function Ld(t,e,o,n){if(n)return!!(e==="innerHTML"||e==="textContent"||e in t&&ma(e)&&W(o));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const i=t.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return ma(e)&&me(o)?!1:e in t}/*! #__NO_SIDE_EFFECTS__ */function Ee(t,e){const o=X(t);class n extends Mi{constructor(s){super(o,s,e)}}return n.def=o,n}const Vd=typeof HTMLElement<"u"?HTMLElement:class{};class Mi extends Vd{constructor(e,o={},n){super(),this._def=e,this._props=o,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):({}.NODE_ENV!=="production"&&this.shadowRoot&&bn("Custom element has pre-rendered declarative shadow root but is not defined as hydratable. Use `defineSSRCustomElement`."),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),sr(()=>{this._connected||(ga(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);this._ob=new MutationObserver(n=>{for(const i of n)this._setAttr(i.attributeName)}),this._ob.observe(this,{attributes:!0});const e=(n,i=!1)=>{const{props:s,styles:r}=n;let a;if(s&&!F(s))for(const l in s){const c=s[l];(c===Number||c&&c.type===Number)&&(l in this._props&&(this._props[l]=Ss(this._props[l])),(a||(a=Object.create(null)))[Re(l)]=!0)}this._numberProps=a,i&&this._resolveProps(n),this._applyStyles(r),this._update()},o=this._def.__asyncLoader;o?o().then(n=>e(n,!0)):e(this._def)}_resolveProps(e){const{props:o}=e,n=F(o)?o:Object.keys(o||{});for(const i of Object.keys(this))i[0]!=="_"&&n.includes(i)&&this._setProp(i,this[i],!0,!1);for(const i of n.map(Re))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(s){this._setProp(i,s)}})}_setAttr(e){let o=this.hasAttribute(e)?this.getAttribute(e):void 0;const n=Re(e);this._numberProps&&this._numberProps[n]&&(o=Ss(o)),this._setProp(n,o,!1)}_getProp(e){return this._props[e]}_setProp(e,o,n=!0,i=!0){o!==this._props[e]&&(this._props[e]=o,i&&this._instance&&this._update(),n&&(o===!0?this.setAttribute(je(e),""):typeof o=="string"||typeof o=="number"?this.setAttribute(je(e),o+""):o||this.removeAttribute(je(e))))}_update(){ga(this._createVNode(),this.shadowRoot)}_createVNode(){const e=oe(this._def,de({},this._props));return this._instance||(e.ce=o=>{this._instance=o,o.isCE=!0,{}.NODE_ENV!=="production"&&(o.ceReload=s=>{this._styles&&(this._styles.forEach(r=>this.shadowRoot.removeChild(r)),this._styles.length=0),this._applyStyles(s),this._instance=null,this._update()});const n=(s,r)=>{this.dispatchEvent(new CustomEvent(s,{detail:r}))};o.emit=(s,...r)=>{n(s,r),je(s)!==s&&n(je(s),r)};let i=this;for(;i=i&&(i.parentNode||i.host);)if(i instanceof Mi){o.parent=i._instance,o.provides=i._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach(o=>{const n=document.createElement("style");n.textContent=o,this.shadowRoot.appendChild(n),{}.NODE_ENV!=="production"&&(this._styles||(this._styles=[])).push(n)})}}const Id=de({patchProp:Pd},hd);let va;function Md(){return va||(va=Wu(Id))}const ga=(...t)=>{Md().render(...t)};/**
|
|
27
28
|
* vue v3.4.25
|
|
28
29
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
29
30
|
* @license MIT
|
|
30
|
-
**/function
|
|
31
|
+
**/function Ad(){dd()}({}).NODE_ENV!=="production"&&Ad(),typeof process<"u"&&process.versions!=null&&process.versions.node!=null;const ya=t=>{let e=null;switch(t){case"bin":e=/^[0-1]+$/;break;case"oct":e=/^(0b)?[0-7]+$/i;break;case"hex":e=/^(0x)?[0-9a-fA-F]+$/i;break;case"int":e=/^[-+]?[0-9]+$/;break;case"number":e=/[-+]?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;break;case"phone-number":e=/^[+]?[(]?[0-9]{3}[)]?[-\s.]?[0-9]{3}[-\s.]?[0-9]{4,6}$/gi;break;case"email":e=/^[A-Za-z0-9_!#$%&'*+/=?`{|}~^.-]+@[A-Za-z0-9._-]+$/gm;break;case"ip":e=/^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/;break;case"base64-data":e=/^\s*data:(?:[a-z]+\/[a-z0-9-+.]+(?:;[a-z-]+=[a-z0-9-]+)?)?(?:;base64)?,([a-z0-9!$&',()*+;=\-._~:@/?%\s]*?)\s*$/i;break;case"var-name":e=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/;break;case"hex-color":e=/^#([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;break;case"chinese-name":e=/^(?:[\u4e00-\u9fa5·]{2,16})$/;break;case"chinese":e=new RegExp(String.raw`
|
|
31
32
|
[\u{FA0E}\u{FA0F}\u{FA11}\u{FA13}\u{FA14}\u{FA1F}\u{FA21}\u{FA23}\u{FA24}\u{FA27}-\u{FA29}]
|
|
32
33
|
|[\u{4E00}-\u{9FCC}]
|
|
33
34
|
|[\u{3400}-\u{4DB5}]
|
|
@@ -36,72 +37,32 @@ Expected function or array of functions, received type ${typeof e}.`),Cr)}functi
|
|
|
36
37
|
|[\u{2B740}-\u{2B81D}]
|
|
37
38
|
|[\u{2B820}-\u{2CEAF}]
|
|
38
39
|
|[\u{2CEB0}-\u{2EBEF}]
|
|
39
|
-
`.replace(/\s+/g,""),"u");break;case"mime-image":t=/^image\//;break;case"mime-video":t=/^video\//;break;case"mime-audio":t=/^audio\//;break;case"mime-document-word":t=/^application\/(?:vnd\.openxmlformats-officedocument\.wordprocessingml\.document|msword|vnd\.ms-word\.document\.macroenabled\.12|vnd\.openxmlformats-officedocument\.wordprocessingml\.template|vnd\.ms-word\.template\.macroenabled\.12)$/;break;case"mime-document-excel":t=/^application\/(?:vnd\.openxmlformats-officedocument\.spreadsheetml\.sheet|vnd\.ms-excel|vnd\.ms-excel\.sheet\.macroenabled\.12|vnd\.openxmlformats-officedocument\.spreadsheetml\.template|vnd\.ms-excel\.template\.macroenabled\.12)$/;break;case"mime-document-ppt":t=/^application\/(?:vnd\.ms-powerpoint|vnd\.openxmlformats-officedocument\.presentationml\.presentation|vnd\.ms-powerpoint\.presentation\.macroenabled\.12|vnd\.openxmlformats-officedocument\.presentationml\.template|vnd\.ms-powerpoint\.template\.macroenabled\.12)$/;break;case"mime-document-json":t=/^application\/json$/;break;case"mime-document-xml":t=/^(?:application|text)\/(?:xml|xhtml\+xml)$/;break}return t};function CO(e){const t={matchIndex:-1,fullMatch:null,groupMatchs:[]};if(e){t.matchIndex=typeof e.index=="number"?e.index:-1;for(let r=0,n=e.length;r<n;r++)r==0?t.fullMatch=e[r]:t.groupMatchs.push(e[r])}return t}const kO=(e,t)=>{typeof e=="string"&&(e=EO(e)||new RegExp(e));const r=t.match(e);return CO(r)},PO=(e,t="")=>(e=e.replace(/\[data-v-[0-9a-zA-Z]*\]/g,t),e);function Mb(e,t){return function(){return e.apply(t,arguments)}}const{toString:TO}=Object.prototype,{getPrototypeOf:n0}=Object,Lh=(e=>t=>{const r=TO.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Ri=e=>(e=e.toLowerCase(),t=>Lh(t)===e),Vh=e=>t=>typeof t===e,{isArray:Va}=Array,ql=Vh("undefined");function OO(e){return e!==null&&!ql(e)&&e.constructor!==null&&!ql(e.constructor)&&Jn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Lb=Ri("ArrayBuffer");function NO(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Lb(e.buffer),t}const AO=Vh("string"),Jn=Vh("function"),Vb=Vh("number"),Uh=e=>e!==null&&typeof e=="object",DO=e=>e===!0||e===!1,zh=e=>{if(Lh(e)!=="object")return!1;const t=n0(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},RO=Ri("Date"),IO=Ri("File"),jO=Ri("Blob"),FO=Ri("FileList"),MO=e=>Uh(e)&&Jn(e.pipe),LO=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Jn(e.append)&&((t=Lh(e))==="formdata"||t==="object"&&Jn(e.toString)&&e.toString()==="[object FormData]"))},VO=Ri("URLSearchParams"),UO=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Kl(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Va(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let a;for(n=0;n<s;n++)a=o[n],t.call(null,e[a],a,e)}}function Ub(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,i;for(;n-- >0;)if(i=r[n],t===i.toLowerCase())return i;return null}const zb=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Gb=e=>!ql(e)&&e!==zb;function i0(){const{caseless:e}=Gb(this)&&this||{},t={},r=(n,i)=>{const o=e&&Ub(t,i)||i;zh(t[o])&&zh(n)?t[o]=i0(t[o],n):zh(n)?t[o]=i0({},n):Va(n)?t[o]=n.slice():t[o]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&Kl(arguments[n],r);return t}const zO=(e,t,r,{allOwnKeys:n}={})=>(Kl(t,(i,o)=>{r&&Jn(i)?e[o]=Mb(i,r):e[o]=i},{allOwnKeys:n}),e),GO=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),BO=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},HO=(e,t,r,n)=>{let i,o,s;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!n||n(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=r!==!1&&n0(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},qO=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},KO=e=>{if(!e)return null;if(Va(e))return e;let t=e.length;if(!Vb(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},YO=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&n0(Uint8Array)),XO=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const i=n.value;t.call(e,i[0],i[1])}},JO=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},WO=Ri("HTMLFormElement"),QO=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),Bb=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),ZO=Ri("RegExp"),Hb=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Kl(r,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(n[o]=s||i)}),Object.defineProperties(e,n)},t8=e=>{Hb(e,(t,r)=>{if(Jn(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Jn(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},e8=(e,t)=>{const r={},n=i=>{i.forEach(o=>{r[o]=!0})};return Va(e)?n(e):n(String(e).split(t)),r},r8=()=>{},n8=(e,t)=>(e=+e,Number.isFinite(e)?e:t),o0="abcdefghijklmnopqrstuvwxyz",qb="0123456789",Kb={DIGIT:qb,ALPHA:o0,ALPHA_DIGIT:o0+o0.toUpperCase()+qb},i8=(e=16,t=Kb.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function o8(e){return!!(e&&Jn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const s8=e=>{const t=new Array(10),r=(n,i)=>{if(Uh(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const o=Va(n)?[]:{};return Kl(n,(s,a)=>{const c=r(s,i+1);!ql(c)&&(o[a]=c)}),t[i]=void 0,o}}return n};return r(e,0)},a8=Ri("AsyncFunction"),l8=e=>e&&(Uh(e)||Jn(e))&&Jn(e.then)&&Jn(e.catch),kt={isArray:Va,isArrayBuffer:Lb,isBuffer:OO,isFormData:LO,isArrayBufferView:NO,isString:AO,isNumber:Vb,isBoolean:DO,isObject:Uh,isPlainObject:zh,isUndefined:ql,isDate:RO,isFile:IO,isBlob:jO,isRegExp:ZO,isFunction:Jn,isStream:MO,isURLSearchParams:VO,isTypedArray:YO,isFileList:FO,forEach:Kl,merge:i0,extend:zO,trim:UO,stripBOM:GO,inherits:BO,toFlatObject:HO,kindOf:Lh,kindOfTest:Ri,endsWith:qO,toArray:KO,forEachEntry:XO,matchAll:JO,isHTMLForm:WO,hasOwnProperty:Bb,hasOwnProp:Bb,reduceDescriptors:Hb,freezeMethods:t8,toObjectSet:e8,toCamelCase:QO,noop:r8,toFiniteNumber:n8,findKey:Ub,global:zb,isContextDefined:Gb,ALPHABET:Kb,generateString:i8,isSpecCompliantForm:o8,toJSONObject:s8,isAsyncFn:a8,isThenable:l8};function Le(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i)}kt.inherits(Le,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:kt.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Yb=Le.prototype,Xb={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Xb[e]={value:e}}),Object.defineProperties(Le,Xb),Object.defineProperty(Yb,"isAxiosError",{value:!0}),Le.from=(e,t,r,n,i,o)=>{const s=Object.create(Yb);return kt.toFlatObject(e,s,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),Le.call(s,e.message,t,r,n,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const c8=null;function s0(e){return kt.isPlainObject(e)||kt.isArray(e)}function Jb(e){return kt.endsWith(e,"[]")?e.slice(0,-2):e}function Wb(e,t,r){return e?e.concat(t).map(function(n,i){return n=Jb(n),!r&&i?"["+n+"]":n}).join(r?".":""):t}function u8(e){return kt.isArray(e)&&!e.some(s0)}const h8=kt.toFlatObject(kt,{},null,function(e){return/^is[A-Z]/.test(e)});function Gh(e,t,r){if(!kt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=kt.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,p){return!kt.isUndefined(p[d])});const n=r.metaTokens,i=r.visitor||l,o=r.dots,s=r.indexes,a=(r.Blob||typeof Blob<"u"&&Blob)&&kt.isSpecCompliantForm(t);if(!kt.isFunction(i))throw new TypeError("visitor must be a function");function c(d){if(d===null)return"";if(kt.isDate(d))return d.toISOString();if(!a&&kt.isBlob(d))throw new Le("Blob is not supported. Use a Buffer instead.");return kt.isArrayBuffer(d)||kt.isTypedArray(d)?a&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function l(d,p,g){let v=d;if(d&&!g&&typeof d=="object"){if(kt.endsWith(p,"{}"))p=n?p:p.slice(0,-2),d=JSON.stringify(d);else if(kt.isArray(d)&&u8(d)||(kt.isFileList(d)||kt.endsWith(p,"[]"))&&(v=kt.toArray(d)))return p=Jb(p),v.forEach(function(b,y){!(kt.isUndefined(b)||b===null)&&t.append(s===!0?Wb([p],y,o):s===null?p:p+"[]",c(b))}),!1}return s0(d)?!0:(t.append(Wb(g,p,o),c(d)),!1)}const u=[],h=Object.assign(h8,{defaultVisitor:l,convertValue:c,isVisitable:s0});function f(d,p){if(!kt.isUndefined(d)){if(u.indexOf(d)!==-1)throw Error("Circular reference detected in "+p.join("."));u.push(d),kt.forEach(d,function(g,v){(!(kt.isUndefined(g)||g===null)&&i.call(t,g,kt.isString(v)?v.trim():v,p,h))===!0&&f(g,p?p.concat(v):[v])}),u.pop()}}if(!kt.isObject(e))throw new TypeError("data must be an object");return f(e),t}function Qb(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function a0(e,t){this._pairs=[],e&&Gh(e,this,t)}const Zb=a0.prototype;Zb.append=function(e,t){this._pairs.push([e,t])},Zb.toString=function(e){const t=e?function(r){return e.call(this,r,Qb)}:Qb;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function d8(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function t2(e,t,r){if(!t)return e;const n=r&&r.encode||d8,i=r&&r.serialize;let o;if(i?o=i(t,r):o=kt.isURLSearchParams(t)?t.toString():new a0(t,r).toString(n),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}const e2=class{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){kt.forEach(this.handlers,function(r){r!==null&&t(r)})}},r2={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},f8=typeof URLSearchParams<"u"?URLSearchParams:a0,p8=typeof FormData<"u"?FormData:null,m8=typeof Blob<"u"?Blob:null,g8=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),v8=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Ii={isBrowser:!0,classes:{URLSearchParams:f8,FormData:p8,Blob:m8},isStandardBrowserEnv:g8,isStandardBrowserWebWorkerEnv:v8,protocols:["http","https","file","blob","url","data"]};function y8(e,t){return Gh(e,new Ii.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,o){return Ii.isNode&&kt.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function _8(e){return kt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function b8(e){const t={},r=Object.keys(e);let n;const i=r.length;let o;for(n=0;n<i;n++)o=r[n],t[o]=e[o];return t}function n2(e){function t(r,n,i,o){let s=r[o++];const a=Number.isFinite(+s),c=o>=r.length;return s=!s&&kt.isArray(i)?i.length:s,c?(kt.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!a):((!i[s]||!kt.isObject(i[s]))&&(i[s]=[]),t(r,n,i[s],o)&&kt.isArray(i[s])&&(i[s]=b8(i[s])),!a)}if(kt.isFormData(e)&&kt.isFunction(e.entries)){const r={};return kt.forEachEntry(e,(n,i)=>{t(_8(n),i,r,0)}),r}return null}function w8(e,t,r){if(kt.isString(e))try{return(t||JSON.parse)(e),kt.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const l0={transitional:r2,adapter:["xhr","http"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=kt.isObject(e);if(i&&kt.isHTMLForm(e)&&(e=new FormData(e)),kt.isFormData(e))return n&&n?JSON.stringify(n2(e)):e;if(kt.isArrayBuffer(e)||kt.isBuffer(e)||kt.isStream(e)||kt.isFile(e)||kt.isBlob(e))return e;if(kt.isArrayBufferView(e))return e.buffer;if(kt.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return y8(e,this.formSerializer).toString();if((o=kt.isFileList(e))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Gh(o?{"files[]":e}:e,s&&new s,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),w8(e)):e}],transformResponse:[function(e){const t=this.transitional||l0.transitional,r=t&&t.forcedJSONParsing,n=this.responseType==="json";if(e&&kt.isString(e)&&(r&&!this.responseType||n)){const i=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(o){if(i)throw o.name==="SyntaxError"?Le.from(o,Le.ERR_BAD_RESPONSE,this,null,this.response):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ii.classes.FormData,Blob:Ii.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};kt.forEach(["delete","get","head","post","put","patch"],e=>{l0.headers[e]={}});const c0=l0,x8=kt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),S8=e=>{const t={};let r,n,i;return e&&e.split(`
|
|
40
|
-
`).forEach(function(o){i=o.indexOf(":"),r=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!r||t[r]&&x8[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},i2=Symbol("internals");function Yl(e){return e&&String(e).trim().toLowerCase()}function Bh(e){return e===!1||e==null?e:kt.isArray(e)?e.map(Bh):String(e)}function $8(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const E8=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function u0(e,t,r,n,i){if(kt.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!kt.isString(t)){if(kt.isString(n))return t.indexOf(n)!==-1;if(kt.isRegExp(n))return n.test(t)}}function C8(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function k8(e,t){const r=kt.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,o,s){return this[n].call(this,t,i,o,s)},configurable:!0})})}let Hh=class{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function o(a,c,l){const u=Yl(c);if(!u)throw new Error("header name must be a non-empty string");const h=kt.findKey(i,u);(!h||i[h]===void 0||l===!0||l===void 0&&i[h]!==!1)&&(i[h||c]=Bh(a))}const s=(a,c)=>kt.forEach(a,(l,u)=>o(l,u,c));return kt.isPlainObject(t)||t instanceof this.constructor?s(t,r):kt.isString(t)&&(t=t.trim())&&!E8(t)?s(S8(t),r):t!=null&&o(r,t,n),this}get(t,r){if(t=Yl(t),t){const n=kt.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return $8(i);if(kt.isFunction(r))return r.call(this,i,n);if(kt.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Yl(t),t){const n=kt.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||u0(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function o(s){if(s=Yl(s),s){const a=kt.findKey(n,s);a&&(!r||u0(n,n[a],a,r))&&(delete n[a],i=!0)}}return kt.isArray(t)?t.forEach(o):o(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const o=r[n];(!t||u0(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const r=this,n={};return kt.forEach(this,(i,o)=>{const s=kt.findKey(n,o);if(s){r[s]=Bh(i),delete r[o];return}const a=t?C8(o):String(o).trim();a!==o&&delete r[o],r[a]=Bh(i),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return kt.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&kt.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
41
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(i=>n.set(i)),n}static accessor(t){const r=(this[i2]=this[i2]={accessors:{}}).accessors,n=this.prototype;function i(o){const s=Yl(o);r[s]||(k8(n,o),r[s]=!0)}return kt.isArray(t)?t.forEach(i):i(t),this}};Hh.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),kt.reduceDescriptors(Hh.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),kt.freezeMethods(Hh);const lo=Hh;function h0(e,t){const r=this||c0,n=t||r,i=lo.from(n.headers);let o=n.data;return kt.forEach(e,function(s){o=s.call(r,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function o2(e){return!!(e&&e.__CANCEL__)}function Xl(e,t,r){Le.call(this,e??"canceled",Le.ERR_CANCELED,t,r),this.name="CanceledError"}kt.inherits(Xl,Le,{__CANCEL__:!0});function P8(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Le("Request failed with status code "+r.status,[Le.ERR_BAD_REQUEST,Le.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const T8=Ii.isStandardBrowserEnv?function(){return{write:function(e,t,r,n,i,o){const s=[];s.push(e+"="+encodeURIComponent(t)),kt.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),kt.isString(n)&&s.push("path="+n),kt.isString(i)&&s.push("domain="+i),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function O8(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function N8(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function s2(e,t){return e&&!O8(t)?N8(e,t):t}const A8=Ii.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function n(i){let o=i;return e&&(t.setAttribute("href",o),o=t.href),t.setAttribute("href",o),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return r=n(window.location.href),function(i){const o=kt.isString(i)?n(i):i;return o.protocol===r.protocol&&o.host===r.host}}():function(){return function(){return!0}}();function D8(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function R8(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(a){const c=Date.now(),l=n[o];s||(s=c),r[i]=a,n[i]=c;let u=o,h=0;for(;u!==i;)h+=r[u++],u=u%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-s<t)return;const f=l&&c-l;return f?Math.round(h*1e3/f):void 0}}function a2(e,t){let r=0;const n=R8(50,250);return i=>{const o=i.loaded,s=i.lengthComputable?i.total:void 0,a=o-r,c=n(a),l=o<=s;r=o;const u={loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&l?(s-o)/c:void 0,event:i};u[t?"download":"upload"]=!0,e(u)}}const I8=typeof XMLHttpRequest<"u",j8=I8&&function(e){return new Promise(function(t,r){let n=e.data;const i=lo.from(e.headers).normalize(),o=e.responseType;let s;function a(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}let c;kt.isFormData(n)&&(Ii.isStandardBrowserEnv||Ii.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.getContentType(/^\s*multipart\/form-data/)?kt.isString(c=i.getContentType())&&i.setContentType(c.replace(/^\s*(multipart\/form-data);+/,"$1")):i.setContentType("multipart/form-data"));let l=new XMLHttpRequest;if(e.auth){const d=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(d+":"+p))}const u=s2(e.baseURL,e.url);l.open(e.method.toUpperCase(),t2(u,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function h(){if(!l)return;const d=lo.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),p={data:!o||o==="text"||o==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:d,config:e,request:l};P8(function(g){t(g),a()},function(g){r(g),a()},p),l=null}if("onloadend"in l?l.onloadend=h:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(h)},l.onabort=function(){l&&(r(new Le("Request aborted",Le.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new Le("Network Error",Le.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let d=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const p=e.transitional||r2;e.timeoutErrorMessage&&(d=e.timeoutErrorMessage),r(new Le(d,p.clarifyTimeoutError?Le.ETIMEDOUT:Le.ECONNABORTED,e,l)),l=null},Ii.isStandardBrowserEnv){const d=(e.withCredentials||A8(u))&&e.xsrfCookieName&&T8.read(e.xsrfCookieName);d&&i.set(e.xsrfHeaderName,d)}n===void 0&&i.setContentType(null),"setRequestHeader"in l&&kt.forEach(i.toJSON(),function(d,p){l.setRequestHeader(p,d)}),kt.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),o&&o!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",a2(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",a2(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=d=>{l&&(r(!d||d.type?new Xl(null,e,l):d),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const f=D8(u);if(f&&Ii.protocols.indexOf(f)===-1){r(new Le("Unsupported protocol "+f+":",Le.ERR_BAD_REQUEST,e));return}l.send(n||null)})},d0={http:c8,xhr:j8};kt.forEach(d0,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const l2=e=>`- ${e}`,F8=e=>kt.isFunction(e)||e===null||e===!1,c2={getAdapter:e=>{e=kt.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let o=0;o<t;o++){r=e[o];let s;if(n=r,!F8(r)&&(n=d0[(s=String(r)).toLowerCase()],n===void 0))throw new Le(`Unknown adapter '${s}'`);if(n)break;i[s||"#"+o]=n}if(!n){const o=Object.entries(i).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since :
|
|
42
|
-
`+o.map(l2).join(`
|
|
43
|
-
`):" "+l2(o[0]):"as no adapter specified";throw new Le("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:d0};function f0(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Xl(null,e)}function u2(e){return f0(e),e.headers=lo.from(e.headers),e.data=h0.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),c2.getAdapter(e.adapter||c0.adapter)(e).then(function(t){return f0(e),t.data=h0.call(e,e.transformResponse,t),t.headers=lo.from(t.headers),t},function(t){return o2(t)||(f0(e),t&&t.response&&(t.response.data=h0.call(e,e.transformResponse,t.response),t.response.headers=lo.from(t.response.headers))),Promise.reject(t)})}const h2=e=>e instanceof lo?e.toJSON():e;function Ua(e,t){t=t||{};const r={};function n(l,u,h){return kt.isPlainObject(l)&&kt.isPlainObject(u)?kt.merge.call({caseless:h},l,u):kt.isPlainObject(u)?kt.merge({},u):kt.isArray(u)?u.slice():u}function i(l,u,h){if(kt.isUndefined(u)){if(!kt.isUndefined(l))return n(void 0,l,h)}else return n(l,u,h)}function o(l,u){if(!kt.isUndefined(u))return n(void 0,u)}function s(l,u){if(kt.isUndefined(u)){if(!kt.isUndefined(l))return n(void 0,l)}else return n(void 0,u)}function a(l,u,h){if(h in t)return n(l,u);if(h in e)return n(void 0,l)}const c={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(l,u)=>i(h2(l),h2(u),!0)};return kt.forEach(Object.keys(Object.assign({},e,t)),function(l){const u=c[l]||i,h=u(e[l],t[l],l);kt.isUndefined(h)&&u!==a||(r[l]=h)}),r}const d2="1.5.1",p0={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{p0[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const f2={};p0.transitional=function(e,t,r){function n(i,o){return"[Axios v"+d2+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,s)=>{if(e===!1)throw new Le(n(o," has been removed"+(t?" in "+t:"")),Le.ERR_DEPRECATED);return t&&!f2[o]&&(f2[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,o,s):!0}};function M8(e,t,r){if(typeof e!="object")throw new Le("options must be an object",Le.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const o=n[i],s=t[o];if(s){const a=e[o],c=a===void 0||s(a,o,e);if(c!==!0)throw new Le("option "+o+" must be "+c,Le.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Le("Unknown option "+o,Le.ERR_BAD_OPTION)}}const m0={assertOptions:M8,validators:p0},Qo=m0.validators;let qh=class{constructor(t){this.defaults=t,this.interceptors={request:new e2,response:new e2}}request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Ua(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:o}=r;n!==void 0&&m0.assertOptions(n,{silentJSONParsing:Qo.transitional(Qo.boolean),forcedJSONParsing:Qo.transitional(Qo.boolean),clarifyTimeoutError:Qo.transitional(Qo.boolean)},!1),i!=null&&(kt.isFunction(i)?r.paramsSerializer={serialize:i}:m0.assertOptions(i,{encode:Qo.function,serialize:Qo.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=o&&kt.merge(o.common,o[r.method]);o&&kt.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),r.headers=lo.concat(s,o);const a=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(r)===!1||(c=c&&p.synchronous,a.unshift(p.fulfilled,p.rejected))});const l=[];this.interceptors.response.forEach(function(p){l.push(p.fulfilled,p.rejected)});let u,h=0,f;if(!c){const p=[u2.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,l),f=p.length,u=Promise.resolve(r);h<f;)u=u.then(p[h++],p[h++]);return u}f=a.length;let d=r;for(h=0;h<f;){const p=a[h++],g=a[h++];try{d=p(d)}catch(v){g.call(this,v);break}}try{u=u2.call(this,d)}catch(p){return Promise.reject(p)}for(h=0,f=l.length;h<f;)u=u.then(l[h++],l[h++]);return u}getUri(t){t=Ua(this.defaults,t);const r=s2(t.baseURL,t.url);return t2(r,t.params,t.paramsSerializer)}};kt.forEach(["delete","get","head","options"],function(e){qh.prototype[e]=function(t,r){return this.request(Ua(r||{},{method:e,url:t,data:(r||{}).data}))}}),kt.forEach(["post","put","patch"],function(e){function t(r){return function(n,i,o){return this.request(Ua(o||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}qh.prototype[e]=t(),qh.prototype[e+"Form"]=t(!0)});const Kh=qh,L8=class $P{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(i=>{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](i);n._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(a=>{n.subscribe(a),o=a}).then(i);return s.cancel=function(){n.unsubscribe(o)},s},t(function(i,o,s){n.reason||(n.reason=new Xl(i,o,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new $P(function(r){t=r}),cancel:t}}};function V8(e){return function(t){return e.apply(null,t)}}function U8(e){return kt.isObject(e)&&e.isAxiosError===!0}const g0={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(g0).forEach(([e,t])=>{g0[t]=e});const z8=g0;function p2(e){const t=new Kh(e),r=Mb(Kh.prototype.request,t);return kt.extend(r,Kh.prototype,t,{allOwnKeys:!0}),kt.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return p2(Ua(e,n))},r}const Vr=p2(c0);Vr.Axios=Kh,Vr.CanceledError=Xl,Vr.CancelToken=L8,Vr.isCancel=o2,Vr.VERSION=d2,Vr.toFormData=Gh,Vr.AxiosError=Le,Vr.Cancel=Vr.CanceledError,Vr.all=function(e){return Promise.all(e)},Vr.spread=V8,Vr.isAxiosError=U8,Vr.mergeConfig=Ua,Vr.AxiosHeaders=lo,Vr.formToJSON=e=>n2(kt.isHTMLForm(e)?new FormData(e):e),Vr.getAdapter=c2.getAdapter,Vr.HttpStatusCode=z8,Vr.default=Vr;var v0=function(e,t){return v0=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},v0(e,t)};function Zo(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");v0(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function y0(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Jl(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o}function Wl(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function co(e){return typeof e=="function"}function _0(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var b0=_0(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
|
|
44
|
-
`+t.map(function(r,n){return n+1+") "+r.toString()}).join(`
|
|
45
|
-
`):"",this.name="UnsubscriptionError",this.errors=t}});function Yh(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Ql=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,i,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=y0(s),c=a.next();!c.done;c=a.next()){var l=c.value;l.remove(this)}}catch(g){t={error:g}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else s.remove(this);var u=this.initialTeardown;if(co(u))try{u()}catch(g){o=g instanceof b0?g.errors:[g]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var f=y0(h),d=f.next();!d.done;d=f.next()){var p=d.value;try{v2(p)}catch(g){o=o??[],g instanceof b0?o=Wl(Wl([],Jl(o)),Jl(g.errors)):o.push(g)}}}catch(g){n={error:g}}finally{try{d&&!d.done&&(i=f.return)&&i.call(f)}finally{if(n)throw n.error}}}if(o)throw new b0(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)v2(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&Yh(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Yh(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),m2=Ql.EMPTY;function g2(e){return e instanceof Ql||e&&"closed"in e&&co(e.remove)&&co(e.add)&&co(e.unsubscribe)}function v2(e){co(e)?e():e.unsubscribe()}var y2={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},G8={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,Wl([e,t],Jl(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function B8(e){G8.setTimeout(function(){throw e})}function _2(){}function Xh(e){e()}var w0=function(e){Zo(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,g2(r)&&r.add(n)):n.destination=Y8,n}return t.create=function(r,n,i){return new S0(r,n,i)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Ql),H8=Function.prototype.bind;function x0(e,t){return H8.call(e,t)}var q8=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){Jh(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){Jh(n)}else Jh(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Jh(r)}},e}(),S0=function(e){Zo(t,e);function t(r,n,i){var o=e.call(this)||this,s;if(co(r)||!r)s={next:r??void 0,error:n??void 0,complete:i??void 0};else{var a;o&&y2.useDeprecatedNextContext?(a=Object.create(r),a.unsubscribe=function(){return o.unsubscribe()},s={next:r.next&&x0(r.next,a),error:r.error&&x0(r.error,a),complete:r.complete&&x0(r.complete,a)}):s=r}return o.destination=new q8(s),o}return t}(w0);function Jh(e){B8(e)}function K8(e){throw e}var Y8={closed:!0,next:_2,error:K8,complete:_2},X8=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function J8(e){return e}function W8(e){return e.length===0?J8:e.length===1?e[0]:function(t){return e.reduce(function(r,n){return n(r)},t)}}var b2=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var i=this,o=Z8(t)?t:new S0(t,r,n);return Xh(function(){var s=i,a=s.operator,c=s.source;o.add(a?a.call(o,c):c?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=w2(r),new r(function(i,o){var s=new S0({next:function(a){try{t(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:i});n.subscribe(s)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[X8]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return W8(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=w2(t),new t(function(n,i){var o;r.subscribe(function(s){return o=s},function(s){return i(s)},function(){return n(o)})})},e.create=function(t){return new e(t)},e}();function w2(e){var t;return(t=e??y2.Promise)!==null&&t!==void 0?t:Promise}function Q8(e){return e&&co(e.next)&&co(e.error)&&co(e.complete)}function Z8(e){return e&&e instanceof w0||Q8(e)&&g2(e)}(function(e){Zo(t,e);function t(r,n,i,o,s,a){var c=e.call(this,r)||this;return c.onFinalize=s,c.shouldUnsubscribe=a,c._next=n?function(l){try{n(l)}catch(u){r.error(u)}}:e.prototype._next,c._error=o?function(l){try{o(l)}catch(u){r.error(u)}finally{this.unsubscribe()}}:e.prototype._error,c._complete=i?function(){try{i()}catch(l){r.error(l)}finally{this.unsubscribe()}}:e.prototype._complete,c}return t.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},t})(w0);var tN=_0(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),eN=function(e){Zo(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new x2(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new tN},t.prototype.next=function(r){var n=this;Xh(function(){var i,o;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var s=y0(n.currentObservers),a=s.next();!a.done;a=s.next()){var c=a.value;c.next(r)}}catch(l){i={error:l}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}})},t.prototype.error=function(r){var n=this;Xh(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var i=n.observers;i.length;)i.shift().error(r)}})},t.prototype.complete=function(){var r=this;Xh(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,i=this,o=i.hasError,s=i.isStopped,a=i.observers;return o||s?m2:(this.currentObservers=null,a.push(r),new Ql(function(){n.currentObservers=null,Yh(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,i=n.hasError,o=n.thrownError,s=n.isStopped;i?r.error(o):s&&r.complete()},t.prototype.asObservable=function(){var r=new b2;return r.source=this,r},t.create=function(r,n){return new x2(r,n)},t}(b2),x2=function(e){Zo(t,e);function t(r,n){var i=e.call(this)||this;return i.destination=r,i.source=n,i}return t.prototype.next=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.next)===null||i===void 0||i.call(n,r)},t.prototype.error=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.error)===null||i===void 0||i.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,i;return(i=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&i!==void 0?i:m2},t}(eN),rN={now:function(){return Date.now()},delegate:void 0},nN=function(e){Zo(t,e);function t(r,n){return e.call(this)||this}return t.prototype.schedule=function(r,n){return this},t}(Ql),$0={setInterval:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=$0.delegate;return i?.setInterval?i.setInterval.apply(i,Wl([e,t],Jl(r))):setInterval.apply(void 0,Wl([e,t],Jl(r)))},clearInterval:function(e){return clearInterval(e)},delegate:void 0},iN=function(e){Zo(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.scheduler=r,i.work=n,i.pending=!1,i}return t.prototype.schedule=function(r,n){var i;if(n===void 0&&(n=0),this.closed)return this;this.state=r;var o=this.id,s=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(s,o,n)),this.pending=!0,this.delay=n,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(s,this.id,n),this},t.prototype.requestAsyncId=function(r,n,i){return i===void 0&&(i=0),$0.setInterval(r.flush.bind(r,this),i)},t.prototype.recycleAsyncId=function(r,n,i){if(i===void 0&&(i=0),i!=null&&this.delay===i&&this.pending===!1)return n;n!=null&&$0.clearInterval(n)},t.prototype.execute=function(r,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(r,n);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(r,n){var i=!1,o;try{this.work(r)}catch(s){i=!0,o=s||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o},t.prototype.unsubscribe=function(){if(!this.closed){var r=this,n=r.id,i=r.scheduler,o=i.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Yh(o,this),n!=null&&(this.id=this.recycleAsyncId(i,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(nN),S2=function(){function e(t,r){r===void 0&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(t,r,n){return r===void 0&&(r=0),new this.schedulerActionCtor(this,t).schedule(n,r)},e.now=rN.now,e}(),oN=function(e){Zo(t,e);function t(r,n){n===void 0&&(n=S2.now);var i=e.call(this,r,n)||this;return i.actions=[],i._active=!1,i}return t.prototype.flush=function(r){var n=this.actions;if(this._active){n.push(r);return}var i;this._active=!0;do if(i=r.execute(r.state,r.delay))break;while(r=n.shift());if(this._active=!1,i){for(;r=n.shift();)r.unsubscribe();throw i}},t}(S2);new oN(iN);function sN(e){switch(e.responseType){case"json":{if("response"in e)return e.response;var t=e;return JSON.parse(t.responseText)}case"document":return e.responseXML;case"text":default:{if("response"in e)return e.response;var t=e;return t.responseText}}}var $2=_0(function(e){return function(t,r,n){this.message=t,this.name="AjaxError",this.xhr=r,this.request=n,this.status=r.status,this.responseType=r.responseType;var i;try{i=sN(r)}catch{i=r.responseText}this.response=i}});(function(){function e(t,r){return $2.call(this,"ajax timeout",t,r),this.name="AjaxTimeoutError",this}return e.prototype=Object.create($2.prototype),e})();var aN=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function En(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Qt(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var E0={exports:{}},za=typeof Reflect=="object"?Reflect:null,E2=za&&typeof za.apply=="function"?za.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)},Wh;za&&typeof za.ownKeys=="function"?Wh=za.ownKeys:Object.getOwnPropertySymbols?Wh=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Wh=function(e){return Object.getOwnPropertyNames(e)};function lN(e){console&&console.warn&&console.warn(e)}var C2=Number.isNaN||function(e){return e!==e};function tr(){tr.init.call(this)}E0.exports=tr,E0.exports.once=dN,tr.EventEmitter=tr,tr.prototype._events=void 0,tr.prototype._eventsCount=0,tr.prototype._maxListeners=void 0;var k2=10;function Qh(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(tr,"defaultMaxListeners",{enumerable:!0,get:function(){return k2},set:function(e){if(typeof e!="number"||e<0||C2(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");k2=e}}),tr.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},tr.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||C2(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function P2(e){return e._maxListeners===void 0?tr.defaultMaxListeners:e._maxListeners}tr.prototype.getMaxListeners=function(){return P2(this)},tr.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n=e==="error",i=this._events;if(i!==void 0)n=n&&i.error===void 0;else if(!n)return!1;if(n){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var a=i[e];if(a===void 0)return!1;if(typeof a=="function")E2(a,this,t);else for(var c=a.length,l=D2(a,c),r=0;r<c;++r)E2(l[r],this,t);return!0};function T2(e,t,r,n){var i,o,s;if(Qh(r),o=e._events,o===void 0?(o=e._events=Object.create(null),e._eventsCount=0):(o.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),s=o[t]),s===void 0)s=o[t]=r,++e._eventsCount;else if(typeof s=="function"?s=o[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),i=P2(e),i>0&&s.length>i&&!s.warned){s.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=e,a.type=t,a.count=s.length,lN(a)}return e}tr.prototype.addListener=function(e,t){return T2(this,e,t,!1)},tr.prototype.on=tr.prototype.addListener,tr.prototype.prependListener=function(e,t){return T2(this,e,t,!0)};function cN(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function O2(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=cN.bind(n);return i.listener=r,n.wrapFn=i,i}tr.prototype.once=function(e,t){return Qh(t),this.on(e,O2(this,e,t)),this},tr.prototype.prependOnceListener=function(e,t){return Qh(t),this.prependListener(e,O2(this,e,t)),this},tr.prototype.removeListener=function(e,t){var r,n,i,o,s;if(Qh(t),n=this._events,n===void 0)return this;if(r=n[e],r===void 0)return this;if(r===t||r.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if(typeof r!="function"){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){s=r[o].listener,i=o;break}if(i<0)return this;i===0?r.shift():uN(r,i),r.length===1&&(n[e]=r[0]),n.removeListener!==void 0&&this.emit("removeListener",e,s||t)}return this},tr.prototype.off=tr.prototype.removeListener,tr.prototype.removeAllListeners=function(e){var t,r,n;if(r=this._events,r===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete r[e]),this;if(arguments.length===0){var i=Object.keys(r),o;for(n=0;n<i.length;++n)o=i[n],o!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(t=r[e],typeof t=="function")this.removeListener(e,t);else if(t!==void 0)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this};function N2(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?hN(i):D2(i,i.length)}tr.prototype.listeners=function(e){return N2(this,e,!0)},tr.prototype.rawListeners=function(e){return N2(this,e,!1)},tr.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):A2.call(e,t)},tr.prototype.listenerCount=A2;function A2(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}tr.prototype.eventNames=function(){return this._eventsCount>0?Wh(this._events):[]};function D2(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function uN(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function hN(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function dN(e,t){return new Promise(function(r,n){function i(s){e.removeListener(t,o),n(s)}function o(){typeof e.removeListener=="function"&&e.removeListener("error",i),r([].slice.call(arguments))}R2(e,t,o,{once:!0}),t!=="error"&&fN(e,i,{once:!0})})}function fN(e,t,r){typeof e.on=="function"&&R2(e,"error",t,r)}function R2(e,t,r,n){if(typeof e.on=="function")n.once?e.once(t,r):e.on(t,r);else if(typeof e.addEventListener=="function")e.addEventListener(t,function i(o){n.once&&e.removeEventListener(t,i),r(o)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}var pN=E0.exports;class hnt extends pN.EventEmitter{constructor(){super()}on(t,r){return super.on(t,r)}addListener(t,r){return this.on(t,r)}prependListener(t,r){return super.prependListener(t,r)}once(t,r){return super.once(t,r)}prependOnceListener(t,r){return super.prependOnceListener(t,r)}removeListener(t,r){return super.removeListener(t,r)}off(t,r){return super.off(t,r)}removeAllListeners(t){return super.removeAllListeners(t)}emit(t,...r){return super.emit(t,...r)}listeners(t){return super.listeners(t)}rawListeners(t){return super.rawListeners(t)}listenerCount(t){return super.listenerCount(t)}}var C0={exports:{}},k0={},uo={},Hs={},P0={},T0={},O0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor(y){if(super(),!e.IDENTIFIER.test(y))throw new Error("CodeGen: name must be a valid identifier");this.str=y}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(y){super(),this._items=typeof y=="string"?[y]:y}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const y=this._items[0];return y===""||y==='""'}get str(){var y;return(y=this._str)!==null&&y!==void 0?y:this._str=this._items.reduce((m,x)=>`${m}${x}`,"")}get names(){var y;return(y=this._names)!==null&&y!==void 0?y:this._names=this._items.reduce((m,x)=>(x instanceof r&&(m[x.str]=(m[x.str]||0)+1),m),{})}}e._Code=n,e.nil=new n("");function i(b,...y){const m=[b[0]];let x=0;for(;x<y.length;)a(m,y[x]),m.push(b[++x]);return new n(m)}e._=i;const o=new n("+");function s(b,...y){const m=[d(b[0])];let x=0;for(;x<y.length;)m.push(o),a(m,y[x]),m.push(o,d(b[++x]));return c(m),new n(m)}e.str=s;function a(b,y){y instanceof n?b.push(...y._items):y instanceof r?b.push(y):b.push(h(y))}e.addCodeArg=a;function c(b){let y=1;for(;y<b.length-1;){if(b[y]===o){const m=l(b[y-1],b[y+1]);if(m!==void 0){b.splice(y-1,3,m);continue}b[y++]="+"}y++}}function l(b,y){if(y==='""')return b;if(b==='""')return y;if(typeof b=="string")return y instanceof r||b[b.length-1]!=='"'?void 0:typeof y!="string"?`${b.slice(0,-1)}${y}"`:y[0]==='"'?b.slice(0,-1)+y.slice(1):void 0;if(typeof y=="string"&&y[0]==='"'&&!(b instanceof r))return`"${b}${y.slice(1)}`}function u(b,y){return y.emptyStr()?b:b.emptyStr()?y:s`${b}${y}`}e.strConcat=u;function h(b){return typeof b=="number"||typeof b=="boolean"||b===null?b:d(Array.isArray(b)?b.join(","):b)}function f(b){return new n(d(b))}e.stringify=f;function d(b){return JSON.stringify(b).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=d;function p(b){return typeof b=="string"&&e.IDENTIFIER.test(b)?new n(`.${b}`):i`[${b}]`}e.getProperty=p;function g(b){if(typeof b=="string"&&e.IDENTIFIER.test(b))return new n(`${b}`);throw new Error(`CodeGen: invalid export name: ${b}, use explicit $id name mapping`)}e.getEsmExportName=g;function v(b){return new n(b.toString())}e.regexpCode=v})(O0);const mN=En(O0),gN=Wt({__proto__:null,default:mN},[O0]),Zl=Qt(gN);var N0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Zl;class r extends Error{constructor(l){super(`CodeGen: "code" for ${l} not defined`),this.value=l.value}}var n;(function(c){c[c.Started=0]="Started",c[c.Completed=1]="Completed"})(n=e.UsedValueState||(e.UsedValueState={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class i{constructor({prefixes:l,parent:u}={}){this._names={},this._prefixes=l,this._parent=u}toName(l){return l instanceof t.Name?l:this.name(l)}name(l){return new t.Name(this._newName(l))}_newName(l){const u=this._names[l]||this._nameGroup(l);return`${l}${u.index++}`}_nameGroup(l){var u,h;if(!((h=(u=this._parent)===null||u===void 0?void 0:u._prefixes)===null||h===void 0)&&h.has(l)||this._prefixes&&!this._prefixes.has(l))throw new Error(`CodeGen: prefix "${l}" is not allowed in this scope`);return this._names[l]={prefix:l,index:0}}}e.Scope=i;class o extends t.Name{constructor(l,u){super(u),this.prefix=l}setValue(l,{property:u,itemIndex:h}){this.value=l,this.scopePath=(0,t._)`.${new t.Name(u)}[${h}]`}}e.ValueScopeName=o;const s=(0,t._)`\n`;class a extends i{constructor(l){super(l),this._values={},this._scope=l.scope,this.opts={...l,_n:l.lines?s:t.nil}}get(){return this._scope}name(l){return new o(l,this._newName(l))}value(l,u){var h;if(u.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const f=this.toName(l),{prefix:d}=f,p=(h=u.key)!==null&&h!==void 0?h:u.ref;let g=this._values[d];if(g){const y=g.get(p);if(y)return y}else g=this._values[d]=new Map;g.set(p,f);const v=this._scope[d]||(this._scope[d]=[]),b=v.length;return v[b]=u.ref,f.setValue(u,{property:d,itemIndex:b}),f}getValue(l,u){const h=this._values[l];if(h)return h.get(u)}scopeRefs(l,u=this._values){return this._reduceValues(u,h=>{if(h.scopePath===void 0)throw new Error(`CodeGen: name "${h}" has no value`);return(0,t._)`${l}${h.scopePath}`})}scopeCode(l=this._values,u,h){return this._reduceValues(l,f=>{if(f.value===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return f.value.code},u,h)}_reduceValues(l,u,h={},f){let d=t.nil;for(const p in l){const g=l[p];if(!g)continue;const v=h[p]=h[p]||new Map;g.forEach(b=>{if(v.has(b))return;v.set(b,n.Started);let y=u(b);if(y){const m=this.opts.es5?e.varKinds.var:e.varKinds.const;d=(0,t._)`${d}${m} ${b} = ${y};${this.opts._n}`}else if(y=f?.(b))d=(0,t._)`${d}${y}${this.opts._n}`;else throw new r(b);v.set(b,n.Completed)})}return d}}e.ValueScope=a})(N0);const vN=En(N0),yN=Wt({__proto__:null,default:vN},[N0]),I2=Qt(yN);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=Zl,r=I2;var n=Zl;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var i=I2;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class o{optimizeNodes(){return this}optimizeNames(_,P){return this}}class s extends o{constructor(_,P,M){super(),this.varKind=_,this.name=P,this.rhs=M}render({es5:_,_n:P}){const M=_?r.varKinds.var:this.varKind,I=this.rhs===void 0?"":` = ${this.rhs}`;return`${M} ${this.name}${I};`+P}optimizeNames(_,P){if(_[this.name.str])return this.rhs&&(this.rhs=nt(this.rhs,_,P)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class a extends o{constructor(_,P,M){super(),this.lhs=_,this.rhs=P,this.sideEffects=M}render({_n:_}){return`${this.lhs} = ${this.rhs};`+_}optimizeNames(_,P){if(!(this.lhs instanceof t.Name&&!_[this.lhs.str]&&!this.sideEffects))return this.rhs=nt(this.rhs,_,P),this}get names(){const _=this.lhs instanceof t.Name?{}:{...this.lhs.names};return it(_,this.rhs)}}class c extends a{constructor(_,P,M,I){super(_,M,I),this.op=P}render({_n:_}){return`${this.lhs} ${this.op}= ${this.rhs};`+_}}class l extends o{constructor(_){super(),this.label=_,this.names={}}render({_n:_}){return`${this.label}:`+_}}class u extends o{constructor(_){super(),this.label=_,this.names={}}render({_n:_}){return`break${this.label?` ${this.label}`:""};`+_}}class h extends o{constructor(_){super(),this.error=_}render({_n:_}){return`throw ${this.error};`+_}get names(){return this.error.names}}class f extends o{constructor(_){super(),this.code=_}render({_n:_}){return`${this.code};`+_}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(_,P){return this.code=nt(this.code,_,P),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class d extends o{constructor(_=[]){super(),this.nodes=_}render(_){return this.nodes.reduce((P,M)=>P+M.render(_),"")}optimizeNodes(){const{nodes:_}=this;let P=_.length;for(;P--;){const M=_[P].optimizeNodes();Array.isArray(M)?_.splice(P,1,...M):M?_[P]=M:_.splice(P,1)}return _.length>0?this:void 0}optimizeNames(_,P){const{nodes:M}=this;let I=M.length;for(;I--;){const G=M[I];G.optimizeNames(_,P)||(ft(_,G.names),M.splice(I,1))}return M.length>0?this:void 0}get names(){return this.nodes.reduce((_,P)=>Y(_,P.names),{})}}class p extends d{render(_){return"{"+_._n+super.render(_)+"}"+_._n}}class g extends d{}class v extends p{}v.kind="else";class b extends p{constructor(_,P){super(P),this.condition=_}render(_){let P=`if(${this.condition})`+super.render(_);return this.else&&(P+="else "+this.else.render(_)),P}optimizeNodes(){super.optimizeNodes();const _=this.condition;if(_===!0)return this.nodes;let P=this.else;if(P){const M=P.optimizeNodes();P=this.else=Array.isArray(M)?new v(M):M}if(P)return _===!1?P instanceof b?P:P.nodes:this.nodes.length?this:new b(xt(_),P instanceof b?[P]:P.nodes);if(!(_===!1||!this.nodes.length))return this}optimizeNames(_,P){var M;if(this.else=(M=this.else)===null||M===void 0?void 0:M.optimizeNames(_,P),!!(super.optimizeNames(_,P)||this.else))return this.condition=nt(this.condition,_,P),this}get names(){const _=super.names;return it(_,this.condition),this.else&&Y(_,this.else.names),_}}b.kind="if";class y extends p{}y.kind="for";class m extends y{constructor(_){super(),this.iteration=_}render(_){return`for(${this.iteration})`+super.render(_)}optimizeNames(_,P){if(super.optimizeNames(_,P))return this.iteration=nt(this.iteration,_,P),this}get names(){return Y(super.names,this.iteration.names)}}class x extends y{constructor(_,P,M,I){super(),this.varKind=_,this.name=P,this.from=M,this.to=I}render(_){const P=_.es5?r.varKinds.var:this.varKind,{name:M,from:I,to:G}=this;return`for(${P} ${M}=${I}; ${M}<${G}; ${M}++)`+super.render(_)}get names(){const _=it(super.names,this.from);return it(_,this.to)}}class A extends y{constructor(_,P,M,I){super(),this.loop=_,this.varKind=P,this.name=M,this.iterable=I}render(_){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(_)}optimizeNames(_,P){if(super.optimizeNames(_,P))return this.iterable=nt(this.iterable,_,P),this}get names(){return Y(super.names,this.iterable.names)}}class E extends p{constructor(_,P,M){super(),this.name=_,this.args=P,this.async=M}render(_){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(_)}}E.kind="func";class k extends d{render(_){return"return "+super.render(_)}}k.kind="return";class D extends p{render(_){let P="try"+super.render(_);return this.catch&&(P+=this.catch.render(_)),this.finally&&(P+=this.finally.render(_)),P}optimizeNodes(){var _,P;return super.optimizeNodes(),(_=this.catch)===null||_===void 0||_.optimizeNodes(),(P=this.finally)===null||P===void 0||P.optimizeNodes(),this}optimizeNames(_,P){var M,I;return super.optimizeNames(_,P),(M=this.catch)===null||M===void 0||M.optimizeNames(_,P),(I=this.finally)===null||I===void 0||I.optimizeNames(_,P),this}get names(){const _=super.names;return this.catch&&Y(_,this.catch.names),this.finally&&Y(_,this.finally.names),_}}class V extends p{constructor(_){super(),this.error=_}render(_){return`catch(${this.error})`+super.render(_)}}V.kind="catch";class U extends p{render(_){return"finally"+super.render(_)}}U.kind="finally";class K{constructor(_,P={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...P,_n:P.lines?`
|
|
46
|
-
`:""},this._extScope=_,this._scope=new r.Scope({parent:_}),this._nodes=[new g]}toString(){return this._root.render(this.opts)}name(_){return this._scope.name(_)}scopeName(_){return this._extScope.name(_)}scopeValue(_,P){const M=this._extScope.value(_,P);return(this._values[M.prefix]||(this._values[M.prefix]=new Set)).add(M),M}getScopeValue(_,P){return this._extScope.getValue(_,P)}scopeRefs(_){return this._extScope.scopeRefs(_,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(_,P,M,I){const G=this._scope.toName(P);return M!==void 0&&I&&(this._constants[G.str]=M),this._leafNode(new s(_,G,M)),G}const(_,P,M){return this._def(r.varKinds.const,_,P,M)}let(_,P,M){return this._def(r.varKinds.let,_,P,M)}var(_,P,M){return this._def(r.varKinds.var,_,P,M)}assign(_,P,M){return this._leafNode(new a(_,P,M))}add(_,P){return this._leafNode(new c(_,e.operators.ADD,P))}code(_){return typeof _=="function"?_():_!==t.nil&&this._leafNode(new f(_)),this}object(..._){const P=["{"];for(const[M,I]of _)P.length>1&&P.push(","),P.push(M),(M!==I||this.opts.es5)&&(P.push(":"),(0,t.addCodeArg)(P,I));return P.push("}"),new t._Code(P)}if(_,P,M){if(this._blockNode(new b(_)),P&&M)this.code(P).else().code(M).endIf();else if(P)this.code(P).endIf();else if(M)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(_){return this._elseNode(new b(_))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(b,v)}_for(_,P){return this._blockNode(_),P&&this.code(P).endFor(),this}for(_,P){return this._for(new m(_),P)}forRange(_,P,M,I,G=this.opts.es5?r.varKinds.var:r.varKinds.let){const q=this._scope.toName(_);return this._for(new x(G,q,P,M),()=>I(q))}forOf(_,P,M,I=r.varKinds.const){const G=this._scope.toName(_);if(this.opts.es5){const q=P instanceof t.Name?P:this.var("_arr",P);return this.forRange("_i",0,(0,t._)`${q}.length`,et=>{this.var(G,(0,t._)`${q}[${et}]`),M(G)})}return this._for(new A("of",I,G,P),()=>M(G))}forIn(_,P,M,I=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(_,(0,t._)`Object.keys(${P})`,M);const G=this._scope.toName(_);return this._for(new A("in",I,G,P),()=>M(G))}endFor(){return this._endBlockNode(y)}label(_){return this._leafNode(new l(_))}break(_){return this._leafNode(new u(_))}return(_){const P=new k;if(this._blockNode(P),this.code(_),P.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(k)}try(_,P,M){if(!P&&!M)throw new Error('CodeGen: "try" without "catch" and "finally"');const I=new D;if(this._blockNode(I),this.code(_),P){const G=this.name("e");this._currNode=I.catch=new V(G),P(G)}return M&&(this._currNode=I.finally=new U,this.code(M)),this._endBlockNode(V,U)}throw(_){return this._leafNode(new h(_))}block(_,P){return this._blockStarts.push(this._nodes.length),_&&this.code(_).endBlock(P),this}endBlock(_){const P=this._blockStarts.pop();if(P===void 0)throw new Error("CodeGen: not in self-balancing block");const M=this._nodes.length-P;if(M<0||_!==void 0&&M!==_)throw new Error(`CodeGen: wrong number of nodes: ${M} vs ${_} expected`);return this._nodes.length=P,this}func(_,P=t.nil,M,I){return this._blockNode(new E(_,P,M)),I&&this.code(I).endFunc(),this}endFunc(){return this._endBlockNode(E)}optimize(_=1){for(;_-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(_){return this._currNode.nodes.push(_),this}_blockNode(_){this._currNode.nodes.push(_),this._nodes.push(_)}_endBlockNode(_,P){const M=this._currNode;if(M instanceof _||P&&M instanceof P)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${P?`${_.kind}/${P.kind}`:_.kind}"`)}_elseNode(_){const P=this._currNode;if(!(P instanceof b))throw new Error('CodeGen: "else" without "if"');return this._currNode=P.else=_,this}get _root(){return this._nodes[0]}get _currNode(){const _=this._nodes;return _[_.length-1]}set _currNode(_){const P=this._nodes;P[P.length-1]=_}}e.CodeGen=K;function Y($,_){for(const P in _)$[P]=($[P]||0)+(_[P]||0);return $}function it($,_){return _ instanceof t._CodeOrName?Y($,_.names):$}function nt($,_,P){if($ instanceof t.Name)return M($);if(!I($))return $;return new t._Code($._items.reduce((G,q)=>(q instanceof t.Name&&(q=M(q)),q instanceof t._Code?G.push(...q._items):G.push(q),G),[]));function M(G){const q=P[G.str];return q===void 0||_[G.str]!==1?G:(delete _[G.str],q)}function I(G){return G instanceof t._Code&&G._items.some(q=>q instanceof t.Name&&_[q.str]===1&&P[q.str]!==void 0)}}function ft($,_){for(const P in _)$[P]=($[P]||0)-(_[P]||0)}function xt($){return typeof $=="boolean"||typeof $=="number"||$===null?!$:(0,t._)`!${C($)}`}e.not=xt;const _t=O(e.operators.AND);function yt(...$){return $.reduce(_t)}e.and=yt;const at=O(e.operators.OR);function X(...$){return $.reduce(at)}e.or=X;function O($){return(_,P)=>_===t.nil?P:P===t.nil?_:(0,t._)`${C(_)} ${$} ${C(P)}`}function C($){return $ instanceof t.Name?$:(0,t._)`(${$})`}})(T0);const _N=En(T0),bN=Wt({__proto__:null,default:_N},[T0]),Ce=Qt(bN);var A0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;const t=Ce,r=Zl;function n(E){const k={};for(const D of E)k[D]=!0;return k}e.toHash=n;function i(E,k){return typeof k=="boolean"?k:Object.keys(k).length===0?!0:(o(E,k),!s(k,E.self.RULES.all))}e.alwaysValidSchema=i;function o(E,k=E.schema){const{opts:D,self:V}=E;if(!D.strictSchema||typeof k=="boolean")return;const U=V.RULES.keywords;for(const K in k)U[K]||A(E,`unknown keyword: "${K}"`)}e.checkUnknownRules=o;function s(E,k){if(typeof E=="boolean")return!E;for(const D in E)if(k[D])return!0;return!1}e.schemaHasRules=s;function a(E,k){if(typeof E=="boolean")return!E;for(const D in E)if(D!=="$ref"&&k.all[D])return!0;return!1}e.schemaHasRulesButRef=a;function c({topSchemaRef:E,schemaPath:k},D,V,U){if(!U){if(typeof D=="number"||typeof D=="boolean")return D;if(typeof D=="string")return(0,t._)`${D}`}return(0,t._)`${E}${k}${(0,t.getProperty)(V)}`}e.schemaRefOrVal=c;function l(E){return f(decodeURIComponent(E))}e.unescapeFragment=l;function u(E){return encodeURIComponent(h(E))}e.escapeFragment=u;function h(E){return typeof E=="number"?`${E}`:E.replace(/~/g,"~0").replace(/\//g,"~1")}e.escapeJsonPointer=h;function f(E){return E.replace(/~1/g,"/").replace(/~0/g,"~")}e.unescapeJsonPointer=f;function d(E,k){if(Array.isArray(E))for(const D of E)k(D);else k(E)}e.eachItem=d;function p({mergeNames:E,mergeToName:k,mergeValues:D,resultToName:V}){return(U,K,Y,it)=>{const nt=Y===void 0?K:Y instanceof t.Name?(K instanceof t.Name?E(U,K,Y):k(U,K,Y),Y):K instanceof t.Name?(k(U,Y,K),K):D(K,Y);return it===t.Name&&!(nt instanceof t.Name)?V(U,nt):nt}}e.mergeEvaluated={props:p({mergeNames:(E,k,D)=>E.if((0,t._)`${D} !== true && ${k} !== undefined`,()=>{E.if((0,t._)`${k} === true`,()=>E.assign(D,!0),()=>E.assign(D,(0,t._)`${D} || {}`).code((0,t._)`Object.assign(${D}, ${k})`))}),mergeToName:(E,k,D)=>E.if((0,t._)`${D} !== true`,()=>{k===!0?E.assign(D,!0):(E.assign(D,(0,t._)`${D} || {}`),v(E,D,k))}),mergeValues:(E,k)=>E===!0?!0:{...E,...k},resultToName:g}),items:p({mergeNames:(E,k,D)=>E.if((0,t._)`${D} !== true && ${k} !== undefined`,()=>E.assign(D,(0,t._)`${k} === true ? true : ${D} > ${k} ? ${D} : ${k}`)),mergeToName:(E,k,D)=>E.if((0,t._)`${D} !== true`,()=>E.assign(D,k===!0?!0:(0,t._)`${D} > ${k} ? ${D} : ${k}`)),mergeValues:(E,k)=>E===!0?!0:Math.max(E,k),resultToName:(E,k)=>E.var("items",k)})};function g(E,k){if(k===!0)return E.var("props",!0);const D=E.var("props",(0,t._)`{}`);return k!==void 0&&v(E,D,k),D}e.evaluatedPropsToName=g;function v(E,k,D){Object.keys(D).forEach(V=>E.assign((0,t._)`${k}${(0,t.getProperty)(V)}`,!0))}e.setEvaluated=v;const b={};function y(E,k){return E.scopeValue("func",{ref:k,code:b[k.code]||(b[k.code]=new r._Code(k.code))})}e.useFunc=y;var m;(function(E){E[E.Num=0]="Num",E[E.Str=1]="Str"})(m=e.Type||(e.Type={}));function x(E,k,D){if(E instanceof t.Name){const V=k===m.Num;return D?V?(0,t._)`"[" + ${E} + "]"`:(0,t._)`"['" + ${E} + "']"`:V?(0,t._)`"/" + ${E}`:(0,t._)`"/" + ${E}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return D?(0,t.getProperty)(E).toString():"/"+h(E)}e.getErrorPath=x;function A(E,k,D=E.opts.strictSchema){if(D){if(k=`strict mode: ${k}`,D===!0)throw new Error(k);E.self.logger.warn(k)}}e.checkStrictMode=A})(A0);const wN=En(A0),xN=Wt({__proto__:null,default:wN},[A0]),Ge=Qt(xN);var D0={};Object.defineProperty(D0,"__esModule",{value:!0});const cn=Ce,SN={data:new cn.Name("data"),valCxt:new cn.Name("valCxt"),instancePath:new cn.Name("instancePath"),parentData:new cn.Name("parentData"),parentDataProperty:new cn.Name("parentDataProperty"),rootData:new cn.Name("rootData"),dynamicAnchors:new cn.Name("dynamicAnchors"),vErrors:new cn.Name("vErrors"),errors:new cn.Name("errors"),this:new cn.Name("this"),self:new cn.Name("self"),scope:new cn.Name("scope"),json:new cn.Name("json"),jsonPos:new cn.Name("jsonPos"),jsonLen:new cn.Name("jsonLen"),jsonPart:new cn.Name("jsonPart")};var $N=D0.default=SN;const EN=Wt({__proto__:null,default:$N},[D0]),ho=Qt(EN);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=Ce,r=Ge,n=ho;e.keywordError={message:({keyword:v})=>(0,t.str)`must pass "${v}" keyword validation`},e.keyword$DataError={message:({keyword:v,schemaType:b})=>b?(0,t.str)`"${v}" keyword must be ${b} ($data)`:(0,t.str)`"${v}" keyword is invalid ($data)`};function i(v,b=e.keywordError,y,m){const{it:x}=v,{gen:A,compositeRule:E,allErrors:k}=x,D=h(v,b,y);m??(E||k)?c(A,D):l(x,(0,t._)`[${D}]`)}e.reportError=i;function o(v,b=e.keywordError,y){const{it:m}=v,{gen:x,compositeRule:A,allErrors:E}=m,k=h(v,b,y);c(x,k),A||E||l(m,n.default.vErrors)}e.reportExtraError=o;function s(v,b){v.assign(n.default.errors,b),v.if((0,t._)`${n.default.vErrors} !== null`,()=>v.if(b,()=>v.assign((0,t._)`${n.default.vErrors}.length`,b),()=>v.assign(n.default.vErrors,null)))}e.resetErrorsCount=s;function a({gen:v,keyword:b,schemaValue:y,data:m,errsCount:x,it:A}){if(x===void 0)throw new Error("ajv implementation error");const E=v.name("err");v.forRange("i",x,n.default.errors,k=>{v.const(E,(0,t._)`${n.default.vErrors}[${k}]`),v.if((0,t._)`${E}.instancePath === undefined`,()=>v.assign((0,t._)`${E}.instancePath`,(0,t.strConcat)(n.default.instancePath,A.errorPath))),v.assign((0,t._)`${E}.schemaPath`,(0,t.str)`${A.errSchemaPath}/${b}`),A.opts.verbose&&(v.assign((0,t._)`${E}.schema`,y),v.assign((0,t._)`${E}.data`,m))})}e.extendErrors=a;function c(v,b){const y=v.const("err",b);v.if((0,t._)`${n.default.vErrors} === null`,()=>v.assign(n.default.vErrors,(0,t._)`[${y}]`),(0,t._)`${n.default.vErrors}.push(${y})`),v.code((0,t._)`${n.default.errors}++`)}function l(v,b){const{gen:y,validateName:m,schemaEnv:x}=v;x.$async?y.throw((0,t._)`new ${v.ValidationError}(${b})`):(y.assign((0,t._)`${m}.errors`,b),y.return(!1))}const u={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function h(v,b,y){const{createErrors:m}=v.it;return m===!1?(0,t._)`{}`:f(v,b,y)}function f(v,b,y={}){const{gen:m,it:x}=v,A=[d(x,y),p(v,y)];return g(v,b,A),m.object(...A)}function d({errorPath:v},{instancePath:b}){const y=b?(0,t.str)`${v}${(0,r.getErrorPath)(b,r.Type.Str)}`:v;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,y)]}function p({keyword:v,it:{errSchemaPath:b}},{schemaPath:y,parentSchema:m}){let x=m?b:(0,t.str)`${b}/${v}`;return y&&(x=(0,t.str)`${x}${(0,r.getErrorPath)(y,r.Type.Str)}`),[u.schemaPath,x]}function g(v,{params:b,message:y},m){const{keyword:x,data:A,schemaValue:E,it:k}=v,{opts:D,propertyName:V,topSchemaRef:U,schemaPath:K}=k;m.push([u.keyword,x],[u.params,typeof b=="function"?b(v):b||(0,t._)`{}`]),D.messages&&m.push([u.message,typeof y=="function"?y(v):y]),D.verbose&&m.push([u.schema,E],[u.parentSchema,(0,t._)`${U}${K}`],[n.default.data,A]),V&&m.push([u.propertyName,V])}})(P0);const CN=En(P0),kN=Wt({__proto__:null,default:CN},[P0]),tc=Qt(kN);Object.defineProperty(Hs,"__esModule",{value:!0});var j2=Hs.boolOrEmptySchema=F2=Hs.topBoolOrEmptySchema=void 0;const PN=tc,TN=Ce,ON=ho,NN={message:"boolean schema is false"};function AN(e){const{gen:t,schema:r,validateName:n}=e;r===!1?M2(e,!1):typeof r=="object"&&r.$async===!0?t.return(ON.default.data):(t.assign((0,TN._)`${n}.errors`,null),t.return(!0))}var F2=Hs.topBoolOrEmptySchema=AN;function DN(e,t){const{gen:r,schema:n}=e;n===!1?(r.var(t,!1),M2(e)):r.var(t,!0)}j2=Hs.boolOrEmptySchema=DN;function M2(e,t){const{gen:r,data:n}=e,i={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,PN.reportError)(i,NN,void 0,t)}const RN=Wt({__proto__:null,get boolOrEmptySchema(){return j2},default:Hs,get topBoolOrEmptySchema(){return F2}},[Hs]),IN=Qt(RN);var R0={},qs={};Object.defineProperty(qs,"__esModule",{value:!0});var L2=qs.getRules=V2=qs.isJSONType=void 0;const jN=["string","number","integer","boolean","null","object","array"],FN=new Set(jN);function MN(e){return typeof e=="string"&&FN.has(e)}var V2=qs.isJSONType=MN;function LN(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}L2=qs.getRules=LN;const VN=Wt({__proto__:null,default:qs,get getRules(){return L2},get isJSONType(){return V2}},[qs]),U2=Qt(VN);var fo={};Object.defineProperty(fo,"__esModule",{value:!0});var z2=fo.shouldUseRule=H2=fo.shouldUseGroup=G2=fo.schemaHasRulesForType=void 0;function UN({schema:e,self:t},r){const n=t.RULES.types[r];return n&&n!==!0&&B2(e,n)}var G2=fo.schemaHasRulesForType=UN;function B2(e,t){return t.rules.some(r=>q2(e,r))}var H2=fo.shouldUseGroup=B2;function q2(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}z2=fo.shouldUseRule=q2;const zN=Wt({__proto__:null,default:fo,get schemaHasRulesForType(){return G2},get shouldUseGroup(){return H2},get shouldUseRule(){return z2}},[fo]),K2=Qt(zN);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;const t=U2,r=K2,n=tc,i=Ce,o=Ge;var s;(function(m){m[m.Correct=0]="Correct",m[m.Wrong=1]="Wrong"})(s=e.DataType||(e.DataType={}));function a(m){const x=c(m.type);if(x.includes("null")){if(m.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!x.length&&m.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');m.nullable===!0&&x.push("null")}return x}e.getSchemaTypes=a;function c(m){const x=Array.isArray(m)?m:m?[m]:[];if(x.every(t.isJSONType))return x;throw new Error("type must be JSONType or JSONType[]: "+x.join(","))}e.getJSONTypes=c;function l(m,x){const{gen:A,data:E,opts:k}=m,D=h(x,k.coerceTypes),V=x.length>0&&!(D.length===0&&x.length===1&&(0,r.schemaHasRulesForType)(m,x[0]));if(V){const U=g(x,E,k.strictNumbers,s.Wrong);A.if(U,()=>{D.length?f(m,x,D):b(m)})}return V}e.coerceAndCheckDataType=l;const u=new Set(["string","number","integer","boolean","null"]);function h(m,x){return x?m.filter(A=>u.has(A)||x==="array"&&A==="array"):[]}function f(m,x,A){const{gen:E,data:k,opts:D}=m,V=E.let("dataType",(0,i._)`typeof ${k}`),U=E.let("coerced",(0,i._)`undefined`);D.coerceTypes==="array"&&E.if((0,i._)`${V} == 'object' && Array.isArray(${k}) && ${k}.length == 1`,()=>E.assign(k,(0,i._)`${k}[0]`).assign(V,(0,i._)`typeof ${k}`).if(g(x,k,D.strictNumbers),()=>E.assign(U,k))),E.if((0,i._)`${U} !== undefined`);for(const Y of A)(u.has(Y)||Y==="array"&&D.coerceTypes==="array")&&K(Y);E.else(),b(m),E.endIf(),E.if((0,i._)`${U} !== undefined`,()=>{E.assign(k,U),d(m,U)});function K(Y){switch(Y){case"string":E.elseIf((0,i._)`${V} == "number" || ${V} == "boolean"`).assign(U,(0,i._)`"" + ${k}`).elseIf((0,i._)`${k} === null`).assign(U,(0,i._)`""`);return;case"number":E.elseIf((0,i._)`${V} == "boolean" || ${k} === null
|
|
47
|
-
|| (${V} == "string" && ${k} && ${k} == +${k})`).assign(U,(0,i._)`+${k}`);return;case"integer":E.elseIf((0,i._)`${V} === "boolean" || ${k} === null
|
|
48
|
-
|| (${V} === "string" && ${k} && ${k} == +${k} && !(${k} % 1))`).assign(U,(0,i._)`+${k}`);return;case"boolean":E.elseIf((0,i._)`${k} === "false" || ${k} === 0 || ${k} === null`).assign(U,!1).elseIf((0,i._)`${k} === "true" || ${k} === 1`).assign(U,!0);return;case"null":E.elseIf((0,i._)`${k} === "" || ${k} === 0 || ${k} === false`),E.assign(U,null);return;case"array":E.elseIf((0,i._)`${V} === "string" || ${V} === "number"
|
|
49
|
-
|| ${V} === "boolean" || ${k} === null`).assign(U,(0,i._)`[${k}]`)}}}function d({gen:m,parentData:x,parentDataProperty:A},E){m.if((0,i._)`${x} !== undefined`,()=>m.assign((0,i._)`${x}[${A}]`,E))}function p(m,x,A,E=s.Correct){const k=E===s.Correct?i.operators.EQ:i.operators.NEQ;let D;switch(m){case"null":return(0,i._)`${x} ${k} null`;case"array":D=(0,i._)`Array.isArray(${x})`;break;case"object":D=(0,i._)`${x} && typeof ${x} == "object" && !Array.isArray(${x})`;break;case"integer":D=V((0,i._)`!(${x} % 1) && !isNaN(${x})`);break;case"number":D=V();break;default:return(0,i._)`typeof ${x} ${k} ${m}`}return E===s.Correct?D:(0,i.not)(D);function V(U=i.nil){return(0,i.and)((0,i._)`typeof ${x} == "number"`,U,A?(0,i._)`isFinite(${x})`:i.nil)}}e.checkDataType=p;function g(m,x,A,E){if(m.length===1)return p(m[0],x,A,E);let k;const D=(0,o.toHash)(m);if(D.array&&D.object){const V=(0,i._)`typeof ${x} != "object"`;k=D.null?V:(0,i._)`!${x} || ${V}`,delete D.null,delete D.array,delete D.object}else k=i.nil;D.number&&delete D.integer;for(const V in D)k=(0,i.and)(k,p(V,x,A,E));return k}e.checkDataTypes=g;const v={message:({schema:m})=>`must be ${m}`,params:({schema:m,schemaValue:x})=>typeof m=="string"?(0,i._)`{type: ${m}}`:(0,i._)`{type: ${x}}`};function b(m){const x=y(m);(0,n.reportError)(x,v)}e.reportTypeError=b;function y(m){const{gen:x,data:A,schema:E}=m,k=(0,o.schemaRefOrVal)(m,E,"type");return{gen:x,keyword:"type",data:A,schema:E.type,schemaCode:k,schemaValue:k,parentSchema:E,params:{},it:m}}})(R0);const GN=En(R0),BN=Wt({__proto__:null,default:GN},[R0]),Zh=Qt(BN);var ec={};Object.defineProperty(ec,"__esModule",{value:!0});var Y2=ec.assignDefaults=void 0;const Ga=Ce,HN=Ge;function qN(e,t){const{properties:r,items:n}=e.schema;if(t==="object"&&r)for(const i in r)X2(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,o)=>X2(e,o,i.default))}Y2=ec.assignDefaults=qN;function X2(e,t,r){const{gen:n,compositeRule:i,data:o,opts:s}=e;if(r===void 0)return;const a=(0,Ga._)`${o}${(0,Ga.getProperty)(t)}`;if(i){(0,HN.checkStrictMode)(e,`default is ignored for: ${a}`);return}let c=(0,Ga._)`${a} === undefined`;s.useDefaults==="empty"&&(c=(0,Ga._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,Ga._)`${a} = ${(0,Ga.stringify)(r)}`)}const KN=Wt({__proto__:null,get assignDefaults(){return Y2},default:ec},[ec]),YN=Qt(KN);var pi={},We={};Object.defineProperty(We,"__esModule",{value:!0});var J2=We.validateUnion=uw=We.validateArray=cw=We.usePattern=lw=We.callValidateCode=aw=We.schemaProperties=sw=We.allSchemaProperties=iw=We.noPropertyInData=nw=We.propertyInData=rw=We.isOwnProperty=ew=We.hasPropFunc=Z2=We.reportMissingProp=Q2=We.checkMissingProp=W2=We.checkReportMissingProp=void 0;const fr=Ce,I0=Ge,ts=ho,XN=Ge;function JN(e,t){const{gen:r,data:n,it:i}=e;r.if(F0(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,fr._)`${t}`},!0),e.error()})}var W2=We.checkReportMissingProp=JN;function WN({gen:e,data:t,it:{opts:r}},n,i){return(0,fr.or)(...n.map(o=>(0,fr.and)(F0(e,t,o,r.ownProperties),(0,fr._)`${i} = ${o}`)))}var Q2=We.checkMissingProp=WN;function QN(e,t){e.setParams({missingProperty:t},!0),e.error()}var Z2=We.reportMissingProp=QN;function tw(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,fr._)`Object.prototype.hasOwnProperty`})}var ew=We.hasPropFunc=tw;function j0(e,t,r){return(0,fr._)`${tw(e)}.call(${t}, ${r})`}var rw=We.isOwnProperty=j0;function ZN(e,t,r,n){const i=(0,fr._)`${t}${(0,fr.getProperty)(r)} !== undefined`;return n?(0,fr._)`${i} && ${j0(e,t,r)}`:i}var nw=We.propertyInData=ZN;function F0(e,t,r,n){const i=(0,fr._)`${t}${(0,fr.getProperty)(r)} === undefined`;return n?(0,fr.or)(i,(0,fr.not)(j0(e,t,r))):i}var iw=We.noPropertyInData=F0;function ow(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}var sw=We.allSchemaProperties=ow;function tA(e,t){return ow(t).filter(r=>!(0,I0.alwaysValidSchema)(e,t[r]))}var aw=We.schemaProperties=tA;function eA({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:s},a,c,l){const u=l?(0,fr._)`${e}, ${t}, ${n}${i}`:t,h=[[ts.default.instancePath,(0,fr.strConcat)(ts.default.instancePath,o)],[ts.default.parentData,s.parentData],[ts.default.parentDataProperty,s.parentDataProperty],[ts.default.rootData,ts.default.rootData]];s.opts.dynamicRef&&h.push([ts.default.dynamicAnchors,ts.default.dynamicAnchors]);const f=(0,fr._)`${u}, ${r.object(...h)}`;return c!==fr.nil?(0,fr._)`${a}.call(${c}, ${f})`:(0,fr._)`${a}(${f})`}var lw=We.callValidateCode=eA;const rA=(0,fr._)`new RegExp`;function nA({gen:e,it:{opts:t}},r){const n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,o=i(r,n);return e.scopeValue("pattern",{key:o.toString(),ref:o,code:(0,fr._)`${i.code==="new RegExp"?rA:(0,XN.useFunc)(e,i)}(${r}, ${n})`})}var cw=We.usePattern=nA;function iA(e){const{gen:t,data:r,keyword:n,it:i}=e,o=t.name("valid");if(i.allErrors){const a=t.let("valid",!0);return s(()=>t.assign(a,!1)),a}return t.var(o,!0),s(()=>t.break()),o;function s(a){const c=t.const("len",(0,fr._)`${r}.length`);t.forRange("i",0,c,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:I0.Type.Num},o),t.if((0,fr.not)(o),a)})}}var uw=We.validateArray=iA;function oA(e){const{gen:t,schema:r,keyword:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(a=>(0,I0.alwaysValidSchema)(i,a))&&!i.opts.unevaluated)return;const o=t.let("valid",!1),s=t.name("_valid");t.block(()=>r.forEach((a,c)=>{const l=e.subschema({keyword:n,schemaProp:c,compositeRule:!0},s);t.assign(o,(0,fr._)`${o} || ${s}`),e.mergeValidEvaluated(l,s)||t.if((0,fr.not)(o))})),e.result(o,()=>e.reset(),()=>e.error(!0))}J2=We.validateUnion=oA;const sA=Wt({__proto__:null,get allSchemaProperties(){return sw},get callValidateCode(){return lw},get checkMissingProp(){return Q2},get checkReportMissingProp(){return W2},default:We,get hasPropFunc(){return ew},get isOwnProperty(){return rw},get noPropertyInData(){return iw},get propertyInData(){return nw},get reportMissingProp(){return Z2},get schemaProperties(){return aw},get usePattern(){return cw},get validateArray(){return uw},get validateUnion(){return J2}},[We]),mi=Qt(sA);Object.defineProperty(pi,"__esModule",{value:!0});var hw=pi.validateKeywordUsage=gw=pi.validSchemaType=fw=pi.funcKeywordCode=dw=pi.macroKeywordCode=void 0;const mn=Ce,Ks=ho,aA=mi,lA=tc;function cA(e,t){const{gen:r,keyword:n,schema:i,parentSchema:o,it:s}=e,a=t.macro.call(s.self,i,o,s),c=mw(r,n,a);s.opts.validateSchema!==!1&&s.self.validateSchema(a,!0);const l=r.name("valid");e.subschema({schema:a,schemaPath:mn.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}var dw=pi.macroKeywordCode=cA;function uA(e,t){var r;const{gen:n,keyword:i,schema:o,parentSchema:s,$data:a,it:c}=e;dA(c,t);const l=!a&&t.compile?t.compile.call(c.self,o,s,c):t.validate,u=mw(n,i,l),h=n.let("valid");e.block$data(h,f),e.ok((r=t.valid)!==null&&r!==void 0?r:h);function f(){if(t.errors===!1)g(),t.modifying&&pw(e),v(()=>e.error());else{const b=t.async?d():p();t.modifying&&pw(e),v(()=>hA(e,b))}}function d(){const b=n.let("ruleErrs",null);return n.try(()=>g((0,mn._)`await `),y=>n.assign(h,!1).if((0,mn._)`${y} instanceof ${c.ValidationError}`,()=>n.assign(b,(0,mn._)`${y}.errors`),()=>n.throw(y))),b}function p(){const b=(0,mn._)`${u}.errors`;return n.assign(b,null),g(mn.nil),b}function g(b=t.async?(0,mn._)`await `:mn.nil){const y=c.opts.passContext?Ks.default.this:Ks.default.self,m=!("compile"in t&&!a||t.schema===!1);n.assign(h,(0,mn._)`${b}${(0,aA.callValidateCode)(e,u,y,m)}`,t.modifying)}function v(b){var y;n.if((0,mn.not)((y=t.valid)!==null&&y!==void 0?y:h),b)}}var fw=pi.funcKeywordCode=uA;function pw(e){const{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,mn._)`${n.parentData}[${n.parentDataProperty}]`))}function hA(e,t){const{gen:r}=e;r.if((0,mn._)`Array.isArray(${t})`,()=>{r.assign(Ks.default.vErrors,(0,mn._)`${Ks.default.vErrors} === null ? ${t} : ${Ks.default.vErrors}.concat(${t})`).assign(Ks.default.errors,(0,mn._)`${Ks.default.vErrors}.length`),(0,lA.extendErrors)(e)},()=>e.error())}function dA({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function mw(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,mn.stringify)(r)})}function fA(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}var gw=pi.validSchemaType=fA;function pA({schema:e,opts:t,self:r,errSchemaPath:n},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");const s=i.dependencies;if(s?.some(a=>!Object.prototype.hasOwnProperty.call(e,a)))throw new Error(`parent schema must have dependencies of ${o}: ${s.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){const a=`keyword "${o}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(a);else throw new Error(a)}}hw=pi.validateKeywordUsage=pA;const mA=Wt({__proto__:null,default:pi,get funcKeywordCode(){return fw},get macroKeywordCode(){return dw},get validSchemaType(){return gw},get validateKeywordUsage(){return hw}},[pi]),gA=Qt(mA);var po={};Object.defineProperty(po,"__esModule",{value:!0});var vw=po.extendSubschemaMode=bw=po.extendSubschemaData=_w=po.getSubschema=void 0;const ji=Ce,yw=Ge;function vA(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:o,topSchemaRef:s}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){const a=e.schema[t];return r===void 0?{schema:a,schemaPath:(0,ji._)`${e.schemaPath}${(0,ji.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,ji._)`${e.schemaPath}${(0,ji.getProperty)(t)}${(0,ji.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,yw.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||o===void 0||s===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:s,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}var _w=po.getSubschema=vA;function yA(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:o,propertyName:s}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:a}=t;if(r!==void 0){const{errorPath:l,dataPathArr:u,opts:h}=t,f=a.let("data",(0,ji._)`${t.data}${(0,ji.getProperty)(r)}`,!0);c(f),e.errorPath=(0,ji.str)`${l}${(0,yw.getErrorPath)(r,n,h.jsPropertySyntax)}`,e.parentDataProperty=(0,ji._)`${r}`,e.dataPathArr=[...u,e.parentDataProperty]}if(i!==void 0){const l=i instanceof ji.Name?i:a.let("data",i,!0);c(l),s!==void 0&&(e.propertyName=s)}o&&(e.dataTypes=o);function c(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}}var bw=po.extendSubschemaData=yA;function _A(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:o}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),o!==void 0&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=r}vw=po.extendSubschemaMode=_A;const bA=Wt({__proto__:null,default:po,get extendSubschemaData(){return bw},get extendSubschemaMode(){return vw},get getSubschema(){return _w}},[po]),wA=Qt(bA);var gn={},ww=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(o=Object.keys(t),n=o.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;i--!==0;){var s=o[i];if(!e(t[s],r[s]))return!1}return!0}return t!==t&&r!==r};const xA=En(ww),SA=Wt({__proto__:null,default:xA},[ww]),xw=Qt(SA);var Sw={exports:{}},es=Sw.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},i=r.post||function(){};td(t,n,i,e,"",e)};es.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},es.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},es.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},es.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function td(e,t,r,n,i,o,s,a,c,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,o,s,a,c,l);for(var u in n){var h=n[u];if(Array.isArray(h)){if(u in es.arrayKeywords)for(var f=0;f<h.length;f++)td(e,t,r,h[f],i+"/"+u+"/"+f,o,i,u,n,f)}else if(u in es.propsKeywords){if(h&&typeof h=="object")for(var d in h)td(e,t,r,h[d],i+"/"+u+"/"+$A(d),o,i,u,n,d)}else(u in es.keywords||e.allKeys&&!(u in es.skipKeywords))&&td(e,t,r,h,i+"/"+u,o,i,u,n)}r(n,i,o,s,a,c,l)}}function $A(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}var $w=Sw.exports;const EA=En($w),CA=Wt({__proto__:null,default:EA},[$w]),kA=Qt(CA);Object.defineProperty(gn,"__esModule",{value:!0});var Ew=gn.getSchemaRefs=Dw=gn.resolveUrl=Aw=gn.normalizeId=Nw=gn._getFullPath=Tw=gn.getFullPath=Cw=gn.inlineRef=void 0;const PA=Ge,TA=xw,OA=kA,NA=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function AA(e,t=!0){return typeof e=="boolean"?!0:t===!0?!M0(e):t?kw(e)<=t:!1}var Cw=gn.inlineRef=AA;const DA=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function M0(e){for(const t in e){if(DA.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(M0)||typeof r=="object"&&M0(r))return!0}return!1}function kw(e){let t=0;for(const r in e)if(r==="$ref"||(t++,!NA.has(r)&&(typeof e[r]=="object"&&(0,PA.eachItem)(e[r],n=>t+=kw(n)),t===1/0)))return 1/0;return t}function Pw(e,t="",r){r!==!1&&(t=Ba(t));const n=e.parse(t);return Ow(e,n)}var Tw=gn.getFullPath=Pw;function Ow(e,t){return e.serialize(t).split("#")[0]+"#"}var Nw=gn._getFullPath=Ow;const RA=/#\/?$/;function Ba(e){return e?e.replace(RA,""):""}var Aw=gn.normalizeId=Ba;function IA(e,t,r){return r=Ba(r),e.resolve(t,r)}var Dw=gn.resolveUrl=IA;const jA=/^[a-z_][-a-z0-9._]*$/i;function FA(e,t){if(typeof e=="boolean")return{};const{schemaId:r,uriResolver:n}=this.opts,i=Ba(e[r]||t),o={"":i},s=Pw(n,i,!1),a={},c=new Set;return OA(e,{allKeys:!0},(h,f,d,p)=>{if(p===void 0)return;const g=s+f;let v=o[p];typeof h[r]=="string"&&(v=b.call(this,h[r])),y.call(this,h.$anchor),y.call(this,h.$dynamicAnchor),o[f]=v;function b(m){const x=this.opts.uriResolver.resolve;if(m=Ba(v?x(v,m):m),c.has(m))throw u(m);c.add(m);let A=this.refs[m];return typeof A=="string"&&(A=this.refs[A]),typeof A=="object"?l(h,A.schema,m):m!==Ba(g)&&(m[0]==="#"?(l(h,a[m],m),a[m]=h):this.refs[m]=g),m}function y(m){if(typeof m=="string"){if(!jA.test(m))throw new Error(`invalid anchor "${m}"`);b.call(this,`#${m}`)}}}),a;function l(h,f,d){if(f!==void 0&&!TA(h,f))throw u(d)}function u(h){return new Error(`reference "${h}" resolves to more than one schema`)}}Ew=gn.getSchemaRefs=FA;const MA=Wt({__proto__:null,get _getFullPath(){return Nw},default:gn,get getFullPath(){return Tw},get getSchemaRefs(){return Ew},get inlineRef(){return Cw},get normalizeId(){return Aw},get resolveUrl(){return Dw}},[gn]),ed=Qt(MA);Object.defineProperty(uo,"__esModule",{value:!0});var Rw=uo.getData=Xw=uo.KeywordCxt=Fw=uo.validateFunctionCode=void 0;const Iw=IN,jw=Zh,L0=K2,rd=Zh,LA=YN,rc=gA,V0=wA,ee=Ce,me=ho,VA=ed,mo=Ge,nc=tc;function UA(e){if(Uw(e)&&(zw(e),Vw(e))){BA(e);return}Mw(e,()=>(0,Iw.topBoolOrEmptySchema)(e))}var Fw=uo.validateFunctionCode=UA;function Mw({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},o){i.code.es5?e.func(t,(0,ee._)`${me.default.data}, ${me.default.valCxt}`,n.$async,()=>{e.code((0,ee._)`"use strict"; ${Lw(r,i)}`),GA(e,i),e.code(o)}):e.func(t,(0,ee._)`${me.default.data}, ${zA(i)}`,n.$async,()=>e.code(Lw(r,i)).code(o))}function zA(e){return(0,ee._)`{${me.default.instancePath}="", ${me.default.parentData}, ${me.default.parentDataProperty}, ${me.default.rootData}=${me.default.data}${e.dynamicRef?(0,ee._)`, ${me.default.dynamicAnchors}={}`:ee.nil}}={}`}function GA(e,t){e.if(me.default.valCxt,()=>{e.var(me.default.instancePath,(0,ee._)`${me.default.valCxt}.${me.default.instancePath}`),e.var(me.default.parentData,(0,ee._)`${me.default.valCxt}.${me.default.parentData}`),e.var(me.default.parentDataProperty,(0,ee._)`${me.default.valCxt}.${me.default.parentDataProperty}`),e.var(me.default.rootData,(0,ee._)`${me.default.valCxt}.${me.default.rootData}`),t.dynamicRef&&e.var(me.default.dynamicAnchors,(0,ee._)`${me.default.valCxt}.${me.default.dynamicAnchors}`)},()=>{e.var(me.default.instancePath,(0,ee._)`""`),e.var(me.default.parentData,(0,ee._)`undefined`),e.var(me.default.parentDataProperty,(0,ee._)`undefined`),e.var(me.default.rootData,me.default.data),t.dynamicRef&&e.var(me.default.dynamicAnchors,(0,ee._)`{}`)})}function BA(e){const{schema:t,opts:r,gen:n}=e;Mw(e,()=>{r.$comment&&t.$comment&&Bw(e),XA(e),n.let(me.default.vErrors,null),n.let(me.default.errors,0),r.unevaluated&&HA(e),Gw(e),QA(e)})}function HA(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,ee._)`${r}.evaluated`),t.if((0,ee._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,ee._)`${e.evaluated}.props`,(0,ee._)`undefined`)),t.if((0,ee._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,ee._)`${e.evaluated}.items`,(0,ee._)`undefined`))}function Lw(e,t){const r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,ee._)`/*# sourceURL=${r} */`:ee.nil}function qA(e,t){if(Uw(e)&&(zw(e),Vw(e))){KA(e,t);return}(0,Iw.boolOrEmptySchema)(e,t)}function Vw({schema:e,self:t}){if(typeof e=="boolean")return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function Uw(e){return typeof e.schema!="boolean"}function KA(e,t){const{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&Bw(e),JA(e),WA(e);const o=n.const("_errs",me.default.errors);Gw(e,o),n.var(t,(0,ee._)`${o} === ${me.default.errors}`)}function zw(e){(0,mo.checkUnknownRules)(e),YA(e)}function Gw(e,t){if(e.opts.jtd)return Hw(e,[],!1,t);const r=(0,jw.getSchemaTypes)(e.schema),n=(0,jw.coerceAndCheckDataType)(e,r);Hw(e,r,!n,t)}function YA(e){const{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,mo.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function XA(e){const{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,mo.checkStrictMode)(e,"default is ignored in the schema root")}function JA(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,VA.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function WA(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function Bw({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){const o=r.$comment;if(i.$comment===!0)e.code((0,ee._)`${me.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){const s=(0,ee.str)`${n}/$comment`,a=e.scopeValue("root",{ref:t.root});e.code((0,ee._)`${me.default.self}.opts.$comment(${o}, ${s}, ${a}.schema)`)}}function QA(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=e;r.$async?t.if((0,ee._)`${me.default.errors} === 0`,()=>t.return(me.default.data),()=>t.throw((0,ee._)`new ${i}(${me.default.vErrors})`)):(t.assign((0,ee._)`${n}.errors`,me.default.vErrors),o.unevaluated&&ZA(e),t.return((0,ee._)`${me.default.errors} === 0`))}function ZA({gen:e,evaluated:t,props:r,items:n}){r instanceof ee.Name&&e.assign((0,ee._)`${t}.props`,r),n instanceof ee.Name&&e.assign((0,ee._)`${t}.items`,n)}function Hw(e,t,r,n){const{gen:i,schema:o,data:s,allErrors:a,opts:c,self:l}=e,{RULES:u}=l;if(o.$ref&&(c.ignoreKeywordsWithRef||!(0,mo.schemaHasRulesButRef)(o,u))){i.block(()=>Jw(e,"$ref",u.all.$ref.definition));return}c.jtd||t9(e,t),i.block(()=>{for(const f of u.rules)h(f);h(u.post)});function h(f){(0,L0.shouldUseGroup)(o,f)&&(f.type?(i.if((0,rd.checkDataType)(f.type,s,c.strictNumbers)),qw(e,f),t.length===1&&t[0]===f.type&&r&&(i.else(),(0,rd.reportTypeError)(e)),i.endIf()):qw(e,f),a||i.if((0,ee._)`${me.default.errors} === ${n||0}`))}}function qw(e,t){const{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,LA.assignDefaults)(e,t.type),r.block(()=>{for(const o of t.rules)(0,L0.shouldUseRule)(n,o)&&Jw(e,o.keyword,o.definition,t.type)})}function t9(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(e9(e,t),e.opts.allowUnionTypes||r9(e,t),n9(e,e.dataTypes))}function e9(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{Kw(e.dataTypes,r)||U0(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),o9(e,t)}}function r9(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&U0(e,"use allowUnionTypes to allow union type keyword")}function n9(e,t){const r=e.self.RULES.all;for(const n in r){const i=r[n];if(typeof i=="object"&&(0,L0.shouldUseRule)(e.schema,i)){const{type:o}=i.definition;o.length&&!o.some(s=>i9(t,s))&&U0(e,`missing type "${o.join(",")}" for keyword "${n}"`)}}}function i9(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function Kw(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function o9(e,t){const r=[];for(const n of e.dataTypes)Kw(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function U0(e,t){const r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,mo.checkStrictMode)(e,t,e.opts.strictTypes)}let Yw=class{constructor(t,r,n){if((0,rc.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,mo.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",Ww(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,rc.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",me.default.errors))}result(t,r,n){this.failResult((0,ee.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,ee.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);const{schemaCode:r}=this;this.fail((0,ee._)`${r} !== undefined && (${(0,ee.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?nc.reportExtraError:nc.reportError)(this,this.def.error,r)}$dataError(){(0,nc.reportError)(this,this.def.$dataError||nc.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,nc.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=ee.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=ee.nil,r=ee.nil){if(!this.$data)return;const{gen:n,schemaCode:i,schemaType:o,def:s}=this;n.if((0,ee.or)((0,ee._)`${i} === undefined`,r)),t!==ee.nil&&n.assign(t,!0),(o.length||s.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==ee.nil&&n.assign(t,!1)),n.else()}invalid$data(){const{gen:t,schemaCode:r,schemaType:n,def:i,it:o}=this;return(0,ee.or)(s(),a());function s(){if(n.length){if(!(r instanceof ee.Name))throw new Error("ajv implementation error");const c=Array.isArray(n)?n:[n];return(0,ee._)`${(0,rd.checkDataTypes)(c,r,o.opts.strictNumbers,rd.DataType.Wrong)}`}return ee.nil}function a(){if(i.validateSchema){const c=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,ee._)`!${c}(${r})`}return ee.nil}}subschema(t,r){const n=(0,V0.getSubschema)(this.it,t);(0,V0.extendSubschemaData)(n,this.it,t),(0,V0.extendSubschemaMode)(n,t);const i={...this.it,...n,items:void 0,props:void 0};return qA(i,r),i}mergeEvaluated(t,r){const{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=mo.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=mo.mergeEvaluated.items(i,t.items,n.items,r)))}mergeValidEvaluated(t,r){const{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(r,()=>this.mergeEvaluated(t,ee.Name)),!0}};var Xw=uo.KeywordCxt=Yw;function Jw(e,t,r,n){const i=new Yw(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,rc.funcKeywordCode)(i,r):"macro"in r?(0,rc.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,rc.funcKeywordCode)(i,r)}const s9=/^\/(?:[^~]|~0|~1)*$/,a9=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Ww(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(e==="")return me.default.rootData;if(e[0]==="/"){if(!s9.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=me.default.rootData}else{const l=a9.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);const u=+l[1];if(i=l[2],i==="#"){if(u>=t)throw new Error(c("property/index",u));return n[t-u]}if(u>t)throw new Error(c("data",u));if(o=r[t-u],!i)return o}let s=o;const a=i.split("/");for(const l of a)l&&(o=(0,ee._)`${o}${(0,ee.getProperty)((0,mo.unescapeJsonPointer)(l))}`,s=(0,ee._)`${s} && ${o}`);return s;function c(l,u){return`Cannot access ${l} ${u} levels up, current level is ${t}`}}Rw=uo.getData=Ww;const l9=Wt({__proto__:null,get KeywordCxt(){return Xw},default:uo,get getData(){return Rw},get validateFunctionCode(){return Fw}},[uo]),ic=Qt(l9);var nd={},Qw;function z0(){if(Qw)return nd;Qw=1,Object.defineProperty(nd,"__esModule",{value:!0});class e extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return nd.default=e,nd}var G0={};Object.defineProperty(G0,"__esModule",{value:!0});const B0=ed;let c9=class extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,B0.resolveUrl)(t,r,n),this.missingSchema=(0,B0.normalizeId)((0,B0.getFullPath)(t,this.missingRef))}};var u9=G0.default=c9;const h9=Wt({__proto__:null,default:u9},[G0]),H0=Qt(h9);var Fn={};Object.defineProperty(Fn,"__esModule",{value:!0});var Zw=Fn.resolveSchema=ox=Fn.getCompilingSchema=nx=Fn.resolveRef=rx=Fn.compileSchema=ex=Fn.SchemaEnv=void 0;const gi=Ce,d9=z0(),Ys=ho,vi=ed,tx=Ge,f9=ic;let id=class{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,vi.normalizeId)(n?.[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n?.$async,this.refs={}}};var ex=Fn.SchemaEnv=id;function q0(e){const t=ix.call(this,e);if(t)return t;const r=(0,vi.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,s=new gi.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o});let a;e.$async&&(a=s.scopeValue("Error",{ref:d9.default,code:(0,gi._)`require("ajv/dist/runtime/validation_error").default`}));const c=s.scopeName("validate");e.validateName=c;const l={gen:s,allErrors:this.opts.allErrors,data:Ys.default.data,parentData:Ys.default.parentData,parentDataProperty:Ys.default.parentDataProperty,dataNames:[Ys.default.data],dataPathArr:[gi.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,gi.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:gi.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,gi._)`""`,opts:this.opts,self:this};let u;try{this._compilations.add(e),(0,f9.validateFunctionCode)(l),s.optimize(this.opts.code.optimize);const h=s.toString();u=`${s.scopeRefs(Ys.default.scope)}return ${h}`,this.opts.code.process&&(u=this.opts.code.process(u,e));const f=new Function(`${Ys.default.self}`,`${Ys.default.scope}`,u)(this,this.scope.get());if(this.scope.value(c,{ref:f}),f.errors=null,f.schema=e.schema,f.schemaEnv=e,e.$async&&(f.$async=!0),this.opts.code.source===!0&&(f.source={validateName:c,validateCode:h,scopeValues:s._values}),this.opts.unevaluated){const{props:d,items:p}=l;f.evaluated={props:d instanceof gi.Name?void 0:d,items:p instanceof gi.Name?void 0:p,dynamicProps:d instanceof gi.Name,dynamicItems:p instanceof gi.Name},f.source&&(f.source.evaluated=(0,gi.stringify)(f.evaluated))}return e.validate=f,e}catch(h){throw delete e.validate,delete e.validateName,u&&this.logger.error("Error compiling schema, function code:",u),h}finally{this._compilations.delete(e)}}var rx=Fn.compileSchema=q0;function p9(e,t,r){var n;r=(0,vi.resolveUrl)(this.opts.uriResolver,t,r);const i=e.refs[r];if(i)return i;let o=v9.call(this,e,r);if(o===void 0){const s=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:a}=this.opts;s&&(o=new id({schema:s,schemaId:a,root:e,baseId:t}))}if(o!==void 0)return e.refs[r]=m9.call(this,o)}var nx=Fn.resolveRef=p9;function m9(e){return(0,vi.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:q0.call(this,e)}function ix(e){for(const t of this._compilations)if(g9(t,e))return t}var ox=Fn.getCompilingSchema=ix;function g9(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function v9(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||od.call(this,e,t)}function od(e,t){const r=this.opts.uriResolver.parse(t),n=(0,vi._getFullPath)(this.opts.uriResolver,r);let i=(0,vi.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return K0.call(this,r,e);const o=(0,vi.normalizeId)(n),s=this.refs[o]||this.schemas[o];if(typeof s=="string"){const a=od.call(this,e,s);return typeof a?.schema!="object"?void 0:K0.call(this,r,a)}if(typeof s?.schema=="object"){if(s.validate||q0.call(this,s),o===(0,vi.normalizeId)(t)){const{schema:a}=s,{schemaId:c}=this.opts,l=a[c];return l&&(i=(0,vi.resolveUrl)(this.opts.uriResolver,i,l)),new id({schema:a,schemaId:c,root:e,baseId:i})}return K0.call(this,r,s)}}Zw=Fn.resolveSchema=od;const y9=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function K0(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(const a of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;const c=r[(0,tx.unescapeFragment)(a)];if(c===void 0)return;r=c;const l=typeof r=="object"&&r[this.opts.schemaId];!y9.has(a)&&l&&(t=(0,vi.resolveUrl)(this.opts.uriResolver,t,l))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,tx.schemaHasRulesButRef)(r,this.RULES)){const a=(0,vi.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=od.call(this,n,a)}const{schemaId:s}=this.opts;if(o=o||new id({schema:r,schemaId:s,root:n,baseId:t}),o.schema!==o.root.schema)return o}const _9=Wt({__proto__:null,get SchemaEnv(){return ex},get compileSchema(){return rx},default:Fn,get getCompilingSchema(){return ox},get resolveRef(){return nx},get resolveSchema(){return Zw}},[Fn]),Y0=Qt(_9),b9="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",w9="Meta-schema for $data reference (JSON AnySchema extension proposal)",x9="object",S9=["$data"],$9={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},E9=!1,C9={$id:b9,description:w9,type:x9,required:S9,properties:$9,additionalProperties:E9};var X0={},J0={exports:{}};/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */(function(e,t){(function(r,n){n(t)})(aN,function(r){function n(){for(var R=arguments.length,L=Array(R),z=0;z<R;z++)L[z]=arguments[z];if(L.length>1){L[0]=L[0].slice(0,-1);for(var Z=L.length-1,tt=1;tt<Z;++tt)L[tt]=L[tt].slice(1,-1);return L[Z]=L[Z].slice(1),L.join("")}else return L[0]}function i(R){return"(?:"+R+")"}function o(R){return R===void 0?"undefined":R===null?"null":Object.prototype.toString.call(R).split(" ").pop().split("]").shift().toLowerCase()}function s(R){return R.toUpperCase()}function a(R){return R!=null?R instanceof Array?R:typeof R.length!="number"||R.split||R.setInterval||R.call?[R]:Array.prototype.slice.call(R):[]}function c(R,L){var z=R;if(L)for(var Z in L)z[Z]=L[Z];return z}function l(R){var L="[A-Za-z]",z="[0-9]",Z=n(z,"[A-Fa-f]"),tt=i(i("%[EFef]"+Z+"%"+Z+Z+"%"+Z+Z)+"|"+i("%[89A-Fa-f]"+Z+"%"+Z+Z)+"|"+i("%"+Z+Z)),Ot="[\\:\\/\\?\\#\\[\\]\\@]",Tt="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",Ht=n(Ot,Tt),ve=R?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",te=R?"[\\uE000-\\uF8FF]":"[]",zt=n(L,z,"[\\-\\.\\_\\~]",ve);i(L+n(L,z,"[\\+\\-\\.]")+"*"),i(i(tt+"|"+n(zt,Tt,"[\\:]"))+"*");var qt=i(i("25[0-5]")+"|"+i("2[0-4]"+z)+"|"+i("1"+z+z)+"|"+i("0?[1-9]"+z)+"|0?0?"+z),le=i(qt+"\\."+qt+"\\."+qt+"\\."+qt),jt=i(Z+"{1,4}"),Gt=i(i(jt+"\\:"+jt)+"|"+le),ie=i(i(jt+"\\:")+"{6}"+Gt),Ue=i("\\:\\:"+i(jt+"\\:")+"{5}"+Gt),Ar=i(i(jt)+"?\\:\\:"+i(jt+"\\:")+"{4}"+Gt),Ee=i(i(i(jt+"\\:")+"{0,1}"+jt)+"?\\:\\:"+i(jt+"\\:")+"{3}"+Gt),Je=i(i(i(jt+"\\:")+"{0,2}"+jt)+"?\\:\\:"+i(jt+"\\:")+"{2}"+Gt),ar=i(i(i(jt+"\\:")+"{0,3}"+jt)+"?\\:\\:"+jt+"\\:"+Gt),ir=i(i(i(jt+"\\:")+"{0,4}"+jt)+"?\\:\\:"+Gt),Fe=i(i(i(jt+"\\:")+"{0,5}"+jt)+"?\\:\\:"+jt),xe=i(i(i(jt+"\\:")+"{0,6}"+jt)+"?\\:\\:"),Zt=i([ie,Ue,Ar,Ee,Je,ar,ir,Fe,xe].join("|")),lr=i(i(zt+"|"+tt)+"+");i("[vV]"+Z+"+\\."+n(zt,Tt,"[\\:]")+"+"),i(i(tt+"|"+n(zt,Tt))+"*");var fn=i(tt+"|"+n(zt,Tt,"[\\:\\@]"));return i(i(tt+"|"+n(zt,Tt,"[\\@]"))+"+"),i(i(fn+"|"+n("[\\/\\?]",te))+"*"),{NOT_SCHEME:new RegExp(n("[^]",L,z,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(n("[^\\%\\:]",zt,Tt),"g"),NOT_HOST:new RegExp(n("[^\\%\\[\\]\\:]",zt,Tt),"g"),NOT_PATH:new RegExp(n("[^\\%\\/\\:\\@]",zt,Tt),"g"),NOT_PATH_NOSCHEME:new RegExp(n("[^\\%\\/\\@]",zt,Tt),"g"),NOT_QUERY:new RegExp(n("[^\\%]",zt,Tt,"[\\:\\@\\/\\?]",te),"g"),NOT_FRAGMENT:new RegExp(n("[^\\%]",zt,Tt,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(n("[^]",zt,Tt),"g"),UNRESERVED:new RegExp(zt,"g"),OTHER_CHARS:new RegExp(n("[^\\%]",zt,Ht),"g"),PCT_ENCODED:new RegExp(tt,"g"),IPV4ADDRESS:new RegExp("^("+le+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Zt+")"+i(i("\\%25|\\%(?!"+Z+"{2})")+"("+lr+")")+"?\\]?$")}}var u=l(!1),h=l(!0),f=function(){function R(L,z){var Z=[],tt=!0,Ot=!1,Tt=void 0;try{for(var Ht=L[Symbol.iterator](),ve;!(tt=(ve=Ht.next()).done)&&(Z.push(ve.value),!(z&&Z.length===z));tt=!0);}catch(te){Ot=!0,Tt=te}finally{try{!tt&&Ht.return&&Ht.return()}finally{if(Ot)throw Tt}}return Z}return function(L,z){if(Array.isArray(L))return L;if(Symbol.iterator in Object(L))return R(L,z);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(R){if(Array.isArray(R)){for(var L=0,z=Array(R.length);L<R.length;L++)z[L]=R[L];return z}else return Array.from(R)},p=2147483647,g=36,v=1,b=26,y=38,m=700,x=72,A=128,E="-",k=/^xn--/,D=/[^\0-\x7E]/,V=/[\x2E\u3002\uFF0E\uFF61]/g,U={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},K=g-v,Y=Math.floor,it=String.fromCharCode;function nt(R){throw new RangeError(U[R])}function ft(R,L){for(var z=[],Z=R.length;Z--;)z[Z]=L(R[Z]);return z}function xt(R,L){var z=R.split("@"),Z="";z.length>1&&(Z=z[0]+"@",R=z[1]),R=R.replace(V,".");var tt=R.split("."),Ot=ft(tt,L).join(".");return Z+Ot}function _t(R){for(var L=[],z=0,Z=R.length;z<Z;){var tt=R.charCodeAt(z++);if(tt>=55296&&tt<=56319&&z<Z){var Ot=R.charCodeAt(z++);(Ot&64512)==56320?L.push(((tt&1023)<<10)+(Ot&1023)+65536):(L.push(tt),z--)}else L.push(tt)}return L}var yt=function(R){return String.fromCodePoint.apply(String,d(R))},at=function(R){return R-48<10?R-22:R-65<26?R-65:R-97<26?R-97:g},X=function(R,L){return R+22+75*(R<26)-((L!=0)<<5)},O=function(R,L,z){var Z=0;for(R=z?Y(R/m):R>>1,R+=Y(R/L);R>K*b>>1;Z+=g)R=Y(R/K);return Y(Z+(K+1)*R/(R+y))},C=function(R){var L=[],z=R.length,Z=0,tt=A,Ot=x,Tt=R.lastIndexOf(E);Tt<0&&(Tt=0);for(var Ht=0;Ht<Tt;++Ht)R.charCodeAt(Ht)>=128&&nt("not-basic"),L.push(R.charCodeAt(Ht));for(var ve=Tt>0?Tt+1:0;ve<z;){for(var te=Z,zt=1,qt=g;;qt+=g){ve>=z&&nt("invalid-input");var le=at(R.charCodeAt(ve++));(le>=g||le>Y((p-Z)/zt))&&nt("overflow"),Z+=le*zt;var jt=qt<=Ot?v:qt>=Ot+b?b:qt-Ot;if(le<jt)break;var Gt=g-jt;zt>Y(p/Gt)&&nt("overflow"),zt*=Gt}var ie=L.length+1;Ot=O(Z-te,ie,te==0),Y(Z/ie)>p-tt&&nt("overflow"),tt+=Y(Z/ie),Z%=ie,L.splice(Z++,0,tt)}return String.fromCodePoint.apply(String,L)},$=function(R){var L=[];R=_t(R);var z=R.length,Z=A,tt=0,Ot=x,Tt=!0,Ht=!1,ve=void 0;try{for(var te=R[Symbol.iterator](),zt;!(Tt=(zt=te.next()).done);Tt=!0){var qt=zt.value;qt<128&&L.push(it(qt))}}catch(Zr){Ht=!0,ve=Zr}finally{try{!Tt&&te.return&&te.return()}finally{if(Ht)throw ve}}var le=L.length,jt=le;for(le&&L.push(E);jt<z;){var Gt=p,ie=!0,Ue=!1,Ar=void 0;try{for(var Ee=R[Symbol.iterator](),Je;!(ie=(Je=Ee.next()).done);ie=!0){var ar=Je.value;ar>=Z&&ar<Gt&&(Gt=ar)}}catch(Zr){Ue=!0,Ar=Zr}finally{try{!ie&&Ee.return&&Ee.return()}finally{if(Ue)throw Ar}}var ir=jt+1;Gt-Z>Y((p-tt)/ir)&&nt("overflow"),tt+=(Gt-Z)*ir,Z=Gt;var Fe=!0,xe=!1,Zt=void 0;try{for(var lr=R[Symbol.iterator](),fn;!(Fe=(fn=lr.next()).done);Fe=!0){var Dn=fn.value;if(Dn<Z&&++tt>p&&nt("overflow"),Dn==Z){for(var br=tt,yr=g;;yr+=g){var Br=yr<=Ot?v:yr>=Ot+b?b:yr-Ot;if(br<Br)break;var si=br-Br,ai=g-Br;L.push(it(X(Br+si%ai,0))),br=Y(si/ai)}L.push(it(X(br,0))),Ot=O(tt,ir,jt==le),tt=0,++jt}}}catch(Zr){xe=!0,Zt=Zr}finally{try{!Fe&&lr.return&&lr.return()}finally{if(xe)throw Zt}}++tt,++Z}return L.join("")},_=function(R){return xt(R,function(L){return k.test(L)?C(L.slice(4).toLowerCase()):L})},P=function(R){return xt(R,function(L){return D.test(L)?"xn--"+$(L):L})},M={version:"2.1.0",ucs2:{decode:_t,encode:yt},decode:C,encode:$,toASCII:P,toUnicode:_},I={};function G(R){var L=R.charCodeAt(0),z=void 0;return L<16?z="%0"+L.toString(16).toUpperCase():L<128?z="%"+L.toString(16).toUpperCase():L<2048?z="%"+(L>>6|192).toString(16).toUpperCase()+"%"+(L&63|128).toString(16).toUpperCase():z="%"+(L>>12|224).toString(16).toUpperCase()+"%"+(L>>6&63|128).toString(16).toUpperCase()+"%"+(L&63|128).toString(16).toUpperCase(),z}function q(R){for(var L="",z=0,Z=R.length;z<Z;){var tt=parseInt(R.substr(z+1,2),16);if(tt<128)L+=String.fromCharCode(tt),z+=3;else if(tt>=194&&tt<224){if(Z-z>=6){var Ot=parseInt(R.substr(z+4,2),16);L+=String.fromCharCode((tt&31)<<6|Ot&63)}else L+=R.substr(z,6);z+=6}else if(tt>=224){if(Z-z>=9){var Tt=parseInt(R.substr(z+4,2),16),Ht=parseInt(R.substr(z+7,2),16);L+=String.fromCharCode((tt&15)<<12|(Tt&63)<<6|Ht&63)}else L+=R.substr(z,9);z+=9}else L+=R.substr(z,3),z+=3}return L}function et(R,L){function z(Z){var tt=q(Z);return tt.match(L.UNRESERVED)?tt:Z}return R.scheme&&(R.scheme=String(R.scheme).replace(L.PCT_ENCODED,z).toLowerCase().replace(L.NOT_SCHEME,"")),R.userinfo!==void 0&&(R.userinfo=String(R.userinfo).replace(L.PCT_ENCODED,z).replace(L.NOT_USERINFO,G).replace(L.PCT_ENCODED,s)),R.host!==void 0&&(R.host=String(R.host).replace(L.PCT_ENCODED,z).toLowerCase().replace(L.NOT_HOST,G).replace(L.PCT_ENCODED,s)),R.path!==void 0&&(R.path=String(R.path).replace(L.PCT_ENCODED,z).replace(R.scheme?L.NOT_PATH:L.NOT_PATH_NOSCHEME,G).replace(L.PCT_ENCODED,s)),R.query!==void 0&&(R.query=String(R.query).replace(L.PCT_ENCODED,z).replace(L.NOT_QUERY,G).replace(L.PCT_ENCODED,s)),R.fragment!==void 0&&(R.fragment=String(R.fragment).replace(L.PCT_ENCODED,z).replace(L.NOT_FRAGMENT,G).replace(L.PCT_ENCODED,s)),R}function st(R){return R.replace(/^0*(.*)/,"$1")||"0"}function mt(R,L){var z=R.match(L.IPV4ADDRESS)||[],Z=f(z,2),tt=Z[1];return tt?tt.split(".").map(st).join("."):R}function Lt(R,L){var z=R.match(L.IPV6ADDRESS)||[],Z=f(z,3),tt=Z[1],Ot=Z[2];if(tt){for(var Tt=tt.toLowerCase().split("::").reverse(),Ht=f(Tt,2),ve=Ht[0],te=Ht[1],zt=te?te.split(":").map(st):[],qt=ve.split(":").map(st),le=L.IPV4ADDRESS.test(qt[qt.length-1]),jt=le?7:8,Gt=qt.length-jt,ie=Array(jt),Ue=0;Ue<jt;++Ue)ie[Ue]=zt[Ue]||qt[Gt+Ue]||"";le&&(ie[jt-1]=mt(ie[jt-1],L));var Ar=ie.reduce(function(Fe,xe,Zt){if(!xe||xe==="0"){var lr=Fe[Fe.length-1];lr&&lr.index+lr.length===Zt?lr.length++:Fe.push({index:Zt,length:1})}return Fe},[]),Ee=Ar.sort(function(Fe,xe){return xe.length-Fe.length})[0],Je=void 0;if(Ee&&Ee.length>1){var ar=ie.slice(0,Ee.index),ir=ie.slice(Ee.index+Ee.length);Je=ar.join(":")+"::"+ir.join(":")}else Je=ie.join(":");return Ot&&(Je+="%"+Ot),Je}else return R}var J=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,Q="".match(/(){0}/)[1]===void 0;function ot(R){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z={},Z=L.iri!==!1?h:u;L.reference==="suffix"&&(R=(L.scheme?L.scheme+":":"")+"//"+R);var tt=R.match(J);if(tt){Q?(z.scheme=tt[1],z.userinfo=tt[3],z.host=tt[4],z.port=parseInt(tt[5],10),z.path=tt[6]||"",z.query=tt[7],z.fragment=tt[8],isNaN(z.port)&&(z.port=tt[5])):(z.scheme=tt[1]||void 0,z.userinfo=R.indexOf("@")!==-1?tt[3]:void 0,z.host=R.indexOf("//")!==-1?tt[4]:void 0,z.port=parseInt(tt[5],10),z.path=tt[6]||"",z.query=R.indexOf("?")!==-1?tt[7]:void 0,z.fragment=R.indexOf("#")!==-1?tt[8]:void 0,isNaN(z.port)&&(z.port=R.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?tt[4]:void 0)),z.host&&(z.host=Lt(mt(z.host,Z),Z)),z.scheme===void 0&&z.userinfo===void 0&&z.host===void 0&&z.port===void 0&&!z.path&&z.query===void 0?z.reference="same-document":z.scheme===void 0?z.reference="relative":z.fragment===void 0?z.reference="absolute":z.reference="uri",L.reference&&L.reference!=="suffix"&&L.reference!==z.reference&&(z.error=z.error||"URI is not a "+L.reference+" reference.");var Ot=I[(L.scheme||z.scheme||"").toLowerCase()];if(!L.unicodeSupport&&(!Ot||!Ot.unicodeSupport)){if(z.host&&(L.domainHost||Ot&&Ot.domainHost))try{z.host=M.toASCII(z.host.replace(Z.PCT_ENCODED,q).toLowerCase())}catch(Tt){z.error=z.error||"Host's domain name can not be converted to ASCII via punycode: "+Tt}et(z,u)}else et(z,Z);Ot&&Ot.parse&&Ot.parse(z,L)}else z.error=z.error||"URI can not be parsed.";return z}function lt(R,L){var z=L.iri!==!1?h:u,Z=[];return R.userinfo!==void 0&&(Z.push(R.userinfo),Z.push("@")),R.host!==void 0&&Z.push(Lt(mt(String(R.host),z),z).replace(z.IPV6ADDRESS,function(tt,Ot,Tt){return"["+Ot+(Tt?"%25"+Tt:"")+"]"})),(typeof R.port=="number"||typeof R.port=="string")&&(Z.push(":"),Z.push(String(R.port))),Z.length?Z.join(""):void 0}var ct=/^\.\.?\//,dt=/^\/\.(\/|$)/,$t=/^\/\.\.(\/|$)/,vt=/^\/?(?:.|\n)*?(?=\/|$)/;function bt(R){for(var L=[];R.length;)if(R.match(ct))R=R.replace(ct,"");else if(R.match(dt))R=R.replace(dt,"/");else if(R.match($t))R=R.replace($t,"/"),L.pop();else if(R==="."||R==="..")R="";else{var z=R.match(vt);if(z){var Z=z[0];R=R.slice(Z.length),L.push(Z)}else throw new Error("Unexpected dot segment condition")}return L.join("")}function ut(R){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z=L.iri?h:u,Z=[],tt=I[(L.scheme||R.scheme||"").toLowerCase()];if(tt&&tt.serialize&&tt.serialize(R,L),R.host&&!z.IPV6ADDRESS.test(R.host)&&(L.domainHost||tt&&tt.domainHost))try{R.host=L.iri?M.toUnicode(R.host):M.toASCII(R.host.replace(z.PCT_ENCODED,q).toLowerCase())}catch(Ht){R.error=R.error||"Host's domain name can not be converted to "+(L.iri?"Unicode":"ASCII")+" via punycode: "+Ht}et(R,z),L.reference!=="suffix"&&R.scheme&&(Z.push(R.scheme),Z.push(":"));var Ot=lt(R,L);if(Ot!==void 0&&(L.reference!=="suffix"&&Z.push("//"),Z.push(Ot),R.path&&R.path.charAt(0)!=="/"&&Z.push("/")),R.path!==void 0){var Tt=R.path;!L.absolutePath&&(!tt||!tt.absolutePath)&&(Tt=bt(Tt)),Ot===void 0&&(Tt=Tt.replace(/^\/\//,"/%2F")),Z.push(Tt)}return R.query!==void 0&&(Z.push("?"),Z.push(R.query)),R.fragment!==void 0&&(Z.push("#"),Z.push(R.fragment)),Z.join("")}function It(R,L){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Z=arguments[3],tt={};return Z||(R=ot(ut(R,z),z),L=ot(ut(L,z),z)),z=z||{},!z.tolerant&&L.scheme?(tt.scheme=L.scheme,tt.userinfo=L.userinfo,tt.host=L.host,tt.port=L.port,tt.path=bt(L.path||""),tt.query=L.query):(L.userinfo!==void 0||L.host!==void 0||L.port!==void 0?(tt.userinfo=L.userinfo,tt.host=L.host,tt.port=L.port,tt.path=bt(L.path||""),tt.query=L.query):(L.path?(L.path.charAt(0)==="/"?tt.path=bt(L.path):((R.userinfo!==void 0||R.host!==void 0||R.port!==void 0)&&!R.path?tt.path="/"+L.path:R.path?tt.path=R.path.slice(0,R.path.lastIndexOf("/")+1)+L.path:tt.path=L.path,tt.path=bt(tt.path)),tt.query=L.query):(tt.path=R.path,L.query!==void 0?tt.query=L.query:tt.query=R.query),tt.userinfo=R.userinfo,tt.host=R.host,tt.port=R.port),tt.scheme=R.scheme),tt.fragment=L.fragment,tt}function Vt(R,L,z){var Z=c({scheme:"null"},z);return ut(It(ot(R,Z),ot(L,Z),Z,!0),Z)}function Ut(R,L){return typeof R=="string"?R=ut(ot(R,L),L):o(R)==="object"&&(R=ot(ut(R,L),L)),R}function Kt(R,L,z){return typeof R=="string"?R=ut(ot(R,z),z):o(R)==="object"&&(R=ut(R,z)),typeof L=="string"?L=ut(ot(L,z),z):o(L)==="object"&&(L=ut(L,z)),R===L}function ne(R,L){return R&&R.toString().replace(!L||!L.iri?u.ESCAPE:h.ESCAPE,G)}function Yt(R,L){return R&&R.toString().replace(!L||!L.iri?u.PCT_ENCODED:h.PCT_ENCODED,q)}var fe={scheme:"http",domainHost:!0,parse:function(R,L){return R.host||(R.error=R.error||"HTTP URIs must have a host."),R},serialize:function(R,L){var z=String(R.scheme).toLowerCase()==="https";return(R.port===(z?443:80)||R.port==="")&&(R.port=void 0),R.path||(R.path="/"),R}},je={scheme:"https",domainHost:fe.domainHost,parse:fe.parse,serialize:fe.serialize};function nr(R){return typeof R.secure=="boolean"?R.secure:String(R.scheme).toLowerCase()==="wss"}var gr={scheme:"ws",domainHost:!0,parse:function(R,L){var z=R;return z.secure=nr(z),z.resourceName=(z.path||"/")+(z.query?"?"+z.query:""),z.path=void 0,z.query=void 0,z},serialize:function(R,L){if((R.port===(nr(R)?443:80)||R.port==="")&&(R.port=void 0),typeof R.secure=="boolean"&&(R.scheme=R.secure?"wss":"ws",R.secure=void 0),R.resourceName){var z=R.resourceName.split("?"),Z=f(z,2),tt=Z[0],Ot=Z[1];R.path=tt&&tt!=="/"?tt:void 0,R.query=Ot,R.resourceName=void 0}return R.fragment=void 0,R}},sr={scheme:"wss",domainHost:gr.domainHost,parse:gr.parse,serialize:gr.serialize},Mr={},an="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ue="[0-9A-Fa-f]",dr=i(i("%[EFef]"+ue+"%"+ue+ue+"%"+ue+ue)+"|"+i("%[89A-Fa-f]"+ue+"%"+ue+ue)+"|"+i("%"+ue+ue)),Lr="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",Pi="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",Bn=n(Pi,'[\\"\\\\]'),ni="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",dn=new RegExp(an,"g"),Xe=new RegExp(dr,"g"),$s=new RegExp(n("[^]",Lr,"[\\.]",'[\\"]',Bn),"g"),An=new RegExp(n("[^]",an,ni),"g"),Hn=An;function Qr(R){var L=q(R);return L.match(dn)?L:R}var ii={scheme:"mailto",parse:function(R,L){var z=R,Z=z.to=z.path?z.path.split(","):[];if(z.path=void 0,z.query){for(var tt=!1,Ot={},Tt=z.query.split("&"),Ht=0,ve=Tt.length;Ht<ve;++Ht){var te=Tt[Ht].split("=");switch(te[0]){case"to":for(var zt=te[1].split(","),qt=0,le=zt.length;qt<le;++qt)Z.push(zt[qt]);break;case"subject":z.subject=Yt(te[1],L);break;case"body":z.body=Yt(te[1],L);break;default:tt=!0,Ot[Yt(te[0],L)]=Yt(te[1],L);break}}tt&&(z.headers=Ot)}z.query=void 0;for(var jt=0,Gt=Z.length;jt<Gt;++jt){var ie=Z[jt].split("@");if(ie[0]=Yt(ie[0]),L.unicodeSupport)ie[1]=Yt(ie[1],L).toLowerCase();else try{ie[1]=M.toASCII(Yt(ie[1],L).toLowerCase())}catch(Ue){z.error=z.error||"Email address's domain name can not be converted to ASCII via punycode: "+Ue}Z[jt]=ie.join("@")}return z},serialize:function(R,L){var z=R,Z=a(R.to);if(Z){for(var tt=0,Ot=Z.length;tt<Ot;++tt){var Tt=String(Z[tt]),Ht=Tt.lastIndexOf("@"),ve=Tt.slice(0,Ht).replace(Xe,Qr).replace(Xe,s).replace($s,G),te=Tt.slice(Ht+1);try{te=L.iri?M.toUnicode(te):M.toASCII(Yt(te,L).toLowerCase())}catch(jt){z.error=z.error||"Email address's domain name can not be converted to "+(L.iri?"Unicode":"ASCII")+" via punycode: "+jt}Z[tt]=ve+"@"+te}z.path=Z.join(",")}var zt=R.headers=R.headers||{};R.subject&&(zt.subject=R.subject),R.body&&(zt.body=R.body);var qt=[];for(var le in zt)zt[le]!==Mr[le]&&qt.push(le.replace(Xe,Qr).replace(Xe,s).replace(An,G)+"="+zt[le].replace(Xe,Qr).replace(Xe,s).replace(Hn,G));return qt.length&&(z.query=qt.join("&")),z}},qn=/^([^\:]+)\:(.*)/,Sn={scheme:"urn",parse:function(R,L){var z=R.path&&R.path.match(qn),Z=R;if(z){var tt=L.scheme||Z.scheme||"urn",Ot=z[1].toLowerCase(),Tt=z[2],Ht=tt+":"+(L.nid||Ot),ve=I[Ht];Z.nid=Ot,Z.nss=Tt,Z.path=void 0,ve&&(Z=ve.parse(Z,L))}else Z.error=Z.error||"URN can not be parsed.";return Z},serialize:function(R,L){var z=L.scheme||R.scheme||"urn",Z=R.nid,tt=z+":"+(L.nid||Z),Ot=I[tt];Ot&&(R=Ot.serialize(R,L));var Tt=R,Ht=R.nss;return Tt.path=(Z||L.nid)+":"+Ht,Tt}},Ti=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,oi={scheme:"urn:uuid",parse:function(R,L){var z=R;return z.uuid=z.nss,z.nss=void 0,!L.tolerant&&(!z.uuid||!z.uuid.match(Ti))&&(z.error=z.error||"UUID is not valid."),z},serialize:function(R,L){var z=R;return z.nss=(R.uuid||"").toLowerCase(),z}};I[fe.scheme]=fe,I[je.scheme]=je,I[gr.scheme]=gr,I[sr.scheme]=sr,I[ii.scheme]=ii,I[Sn.scheme]=Sn,I[oi.scheme]=oi,r.SCHEMES=I,r.pctEncChar=G,r.pctDecChars=q,r.parse=ot,r.removeDotSegments=bt,r.serialize=ut,r.resolveComponents=It,r.resolve=Vt,r.normalize=Ut,r.equal=Kt,r.escapeComponent=ne,r.unescapeComponent=Yt,Object.defineProperty(r,"__esModule",{value:!0})})})(J0,J0.exports);var sx=J0.exports;const k9=En(sx),P9=Wt({__proto__:null,default:k9},[sx]),T9=Qt(P9);Object.defineProperty(X0,"__esModule",{value:!0});const ax=T9;ax.code='require("ajv/dist/runtime/uri").default';var O9=X0.default=ax;const N9=Wt({__proto__:null,default:O9},[X0]),A9=Qt(N9);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=ic;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=Ce;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=z0(),i=H0,o=U2,s=Y0,a=Ce,c=ed,l=Zh,u=Ge,h=C9,f=A9,d=(X,O)=>new RegExp(X,O);d.code="new RegExp";const p=["removeAdditional","useDefaults","coerceTypes"],g=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),v={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},b={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},y=200;function m(X){var O,C,$,_,P,M,I,G,q,et,st,mt,Lt,J,Q,ot,lt,ct,dt,$t,vt,bt,ut,It,Vt;const Ut=X.strict,Kt=(O=X.code)===null||O===void 0?void 0:O.optimize,ne=Kt===!0||Kt===void 0?1:Kt||0,Yt=($=(C=X.code)===null||C===void 0?void 0:C.regExp)!==null&&$!==void 0?$:d,fe=(_=X.uriResolver)!==null&&_!==void 0?_:f.default;return{strictSchema:(M=(P=X.strictSchema)!==null&&P!==void 0?P:Ut)!==null&&M!==void 0?M:!0,strictNumbers:(G=(I=X.strictNumbers)!==null&&I!==void 0?I:Ut)!==null&&G!==void 0?G:!0,strictTypes:(et=(q=X.strictTypes)!==null&&q!==void 0?q:Ut)!==null&&et!==void 0?et:"log",strictTuples:(mt=(st=X.strictTuples)!==null&&st!==void 0?st:Ut)!==null&&mt!==void 0?mt:"log",strictRequired:(J=(Lt=X.strictRequired)!==null&&Lt!==void 0?Lt:Ut)!==null&&J!==void 0?J:!1,code:X.code?{...X.code,optimize:ne,regExp:Yt}:{optimize:ne,regExp:Yt},loopRequired:(Q=X.loopRequired)!==null&&Q!==void 0?Q:y,loopEnum:(ot=X.loopEnum)!==null&&ot!==void 0?ot:y,meta:(lt=X.meta)!==null&<!==void 0?lt:!0,messages:(ct=X.messages)!==null&&ct!==void 0?ct:!0,inlineRefs:(dt=X.inlineRefs)!==null&&dt!==void 0?dt:!0,schemaId:($t=X.schemaId)!==null&&$t!==void 0?$t:"$id",addUsedSchema:(vt=X.addUsedSchema)!==null&&vt!==void 0?vt:!0,validateSchema:(bt=X.validateSchema)!==null&&bt!==void 0?bt:!0,validateFormats:(ut=X.validateFormats)!==null&&ut!==void 0?ut:!0,unicodeRegExp:(It=X.unicodeRegExp)!==null&&It!==void 0?It:!0,int32range:(Vt=X.int32range)!==null&&Vt!==void 0?Vt:!0,uriResolver:fe}}class x{constructor(O={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,O=this.opts={...O,...m(O)};const{es5:C,lines:$}=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:g,es5:C,lines:$}),this.logger=Y(O.logger);const _=O.validateFormats;O.validateFormats=!1,this.RULES=(0,o.getRules)(),A.call(this,v,O,"NOT SUPPORTED"),A.call(this,b,O,"DEPRECATED","warn"),this._metaOpts=U.call(this),O.formats&&D.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),O.keywords&&V.call(this,O.keywords),typeof O.meta=="object"&&this.addMetaSchema(O.meta),k.call(this),O.validateFormats=_}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:O,meta:C,schemaId:$}=this.opts;let _=h;$==="id"&&(_={...h},_.id=_.$id,delete _.$id),C&&O&&this.addMetaSchema(_,_[$],!1)}defaultMeta(){const{meta:O,schemaId:C}=this.opts;return this.opts.defaultMeta=typeof O=="object"?O[C]||O:void 0}validate(O,C){let $;if(typeof O=="string"){if($=this.getSchema(O),!$)throw new Error(`no schema with key or ref "${O}"`)}else $=this.compile(O);const _=$(C);return"$async"in $||(this.errors=$.errors),_}compile(O,C){const $=this._addSchema(O,C);return $.validate||this._compileSchemaEnv($)}compileAsync(O,C){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:$}=this.opts;return _.call(this,O,C);async function _(et,st){await P.call(this,et.$schema);const mt=this._addSchema(et,st);return mt.validate||M.call(this,mt)}async function P(et){et&&!this.getSchema(et)&&await _.call(this,{$ref:et},!0)}async function M(et){try{return this._compileSchemaEnv(et)}catch(st){if(!(st instanceof i.default))throw st;return I.call(this,st),await G.call(this,st.missingSchema),M.call(this,et)}}function I({missingSchema:et,missingRef:st}){if(this.refs[et])throw new Error(`AnySchema ${et} is loaded but ${st} cannot be resolved`)}async function G(et){const st=await q.call(this,et);this.refs[et]||await P.call(this,st.$schema),this.refs[et]||this.addSchema(st,et,C)}async function q(et){const st=this._loading[et];if(st)return st;try{return await(this._loading[et]=$(et))}finally{delete this._loading[et]}}}addSchema(O,C,$,_=this.opts.validateSchema){if(Array.isArray(O)){for(const M of O)this.addSchema(M,void 0,$,_);return this}let P;if(typeof O=="object"){const{schemaId:M}=this.opts;if(P=O[M],P!==void 0&&typeof P!="string")throw new Error(`schema ${M} must be string`)}return C=(0,c.normalizeId)(C||P),this._checkUnique(C),this.schemas[C]=this._addSchema(O,$,C,_,!0),this}addMetaSchema(O,C,$=this.opts.validateSchema){return this.addSchema(O,C,!0,$),this}validateSchema(O,C){if(typeof O=="boolean")return!0;let $;if($=O.$schema,$!==void 0&&typeof $!="string")throw new Error("$schema must be a string");if($=$||this.opts.defaultMeta||this.defaultMeta(),!$)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const _=this.validate($,O);if(!_&&C){const P="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(P);else throw new Error(P)}return _}getSchema(O){let C;for(;typeof(C=E.call(this,O))=="string";)O=C;if(C===void 0){const{schemaId:$}=this.opts,_=new s.SchemaEnv({schema:{},schemaId:$});if(C=s.resolveSchema.call(this,_,O),!C)return;this.refs[O]=C}return C.validate||this._compileSchemaEnv(C)}removeSchema(O){if(O instanceof RegExp)return this._removeAllSchemas(this.schemas,O),this._removeAllSchemas(this.refs,O),this;switch(typeof O){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const C=E.call(this,O);return typeof C=="object"&&this._cache.delete(C.schema),delete this.schemas[O],delete this.refs[O],this}case"object":{const C=O;this._cache.delete(C);let $=O[this.opts.schemaId];return $&&($=(0,c.normalizeId)($),delete this.schemas[$],delete this.refs[$]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(O){for(const C of O)this.addKeyword(C);return this}addKeyword(O,C){let $;if(typeof O=="string")$=O,typeof C=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),C.keyword=$);else if(typeof O=="object"&&C===void 0){if(C=O,$=C.keyword,Array.isArray($)&&!$.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(nt.call(this,$,C),!C)return(0,u.eachItem)($,P=>ft.call(this,P)),this;_t.call(this,C);const _={...C,type:(0,l.getJSONTypes)(C.type),schemaType:(0,l.getJSONTypes)(C.schemaType)};return(0,u.eachItem)($,_.type.length===0?P=>ft.call(this,P,_):P=>_.type.forEach(M=>ft.call(this,P,_,M))),this}getKeyword(O){const C=this.RULES.all[O];return typeof C=="object"?C.definition:!!C}removeKeyword(O){const{RULES:C}=this;delete C.keywords[O],delete C.all[O];for(const $ of C.rules){const _=$.rules.findIndex(P=>P.keyword===O);_>=0&&$.rules.splice(_,1)}return this}addFormat(O,C){return typeof C=="string"&&(C=new RegExp(C)),this.formats[O]=C,this}errorsText(O=this.errors,{separator:C=", ",dataVar:$="data"}={}){return!O||O.length===0?"No errors":O.map(_=>`${$}${_.instancePath} ${_.message}`).reduce((_,P)=>_+C+P)}$dataMetaSchema(O,C){const $=this.RULES.all;O=JSON.parse(JSON.stringify(O));for(const _ of C){const P=_.split("/").slice(1);let M=O;for(const I of P)M=M[I];for(const I in $){const G=$[I];if(typeof G!="object")continue;const{$data:q}=G.definition,et=M[I];q&&et&&(M[I]=at(et))}}return O}_removeAllSchemas(O,C){for(const $ in O){const _=O[$];(!C||C.test($))&&(typeof _=="string"?delete O[$]:_&&!_.meta&&(this._cache.delete(_.schema),delete O[$]))}}_addSchema(O,C,$,_=this.opts.validateSchema,P=this.opts.addUsedSchema){let M;const{schemaId:I}=this.opts;if(typeof O=="object")M=O[I];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof O!="boolean")throw new Error("schema must be object or boolean")}let G=this._cache.get(O);if(G!==void 0)return G;$=(0,c.normalizeId)(M||$);const q=c.getSchemaRefs.call(this,O,$);return G=new s.SchemaEnv({schema:O,schemaId:I,meta:C,baseId:$,localRefs:q}),this._cache.set(G.schema,G),P&&!$.startsWith("#")&&($&&this._checkUnique($),this.refs[$]=G),_&&this.validateSchema(O,!0),G}_checkUnique(O){if(this.schemas[O]||this.refs[O])throw new Error(`schema with key or id "${O}" already exists`)}_compileSchemaEnv(O){if(O.meta?this._compileMetaSchema(O):s.compileSchema.call(this,O),!O.validate)throw new Error("ajv implementation error");return O.validate}_compileMetaSchema(O){const C=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,O)}finally{this.opts=C}}}e.default=x,x.ValidationError=n.default,x.MissingRefError=i.default;function A(X,O,C,$="error"){for(const _ in X){const P=_;P in O&&this.logger[$](`${C}: option ${_}. ${X[P]}`)}}function E(X){return X=(0,c.normalizeId)(X),this.schemas[X]||this.refs[X]}function k(){const X=this.opts.schemas;if(X)if(Array.isArray(X))this.addSchema(X);else for(const O in X)this.addSchema(X[O],O)}function D(){for(const X in this.opts.formats){const O=this.opts.formats[X];O&&this.addFormat(X,O)}}function V(X){if(Array.isArray(X)){this.addVocabulary(X);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const O in X){const C=X[O];C.keyword||(C.keyword=O),this.addKeyword(C)}}function U(){const X={...this.opts};for(const O of p)delete X[O];return X}const K={log(){},warn(){},error(){}};function Y(X){if(X===!1)return K;if(X===void 0)return console;if(X.log&&X.warn&&X.error)return X;throw new Error("logger must implement log, warn and error methods")}const it=/^[a-z_$][a-z0-9_$:-]*$/i;function nt(X,O){const{RULES:C}=this;if((0,u.eachItem)(X,$=>{if(C.keywords[$])throw new Error(`Keyword ${$} is already defined`);if(!it.test($))throw new Error(`Keyword ${$} has invalid name`)}),!!O&&O.$data&&!("code"in O||"validate"in O))throw new Error('$data keyword must have "code" or "validate" function')}function ft(X,O,C){var $;const _=O?.post;if(C&&_)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:P}=this;let M=_?P.post:P.rules.find(({type:G})=>G===C);if(M||(M={type:C,rules:[]},P.rules.push(M)),P.keywords[X]=!0,!O)return;const I={keyword:X,definition:{...O,type:(0,l.getJSONTypes)(O.type),schemaType:(0,l.getJSONTypes)(O.schemaType)}};O.before?xt.call(this,M,I,O.before):M.rules.push(I),P.all[X]=I,($=O.implements)===null||$===void 0||$.forEach(G=>this.addKeyword(G))}function xt(X,O,C){const $=X.rules.findIndex(_=>_.keyword===C);$>=0?X.rules.splice($,0,O):(X.rules.push(O),this.logger.warn(`rule ${C} is not defined`))}function _t(X){let{metaSchema:O}=X;O!==void 0&&(X.$data&&this.opts.$data&&(O=at(O)),X.validateSchema=this.compile(O,!0))}const yt={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function at(X){return{anyOf:[X,yt]}}})(k0);const D9=En(k0),R9=Wt({__proto__:null,default:D9},[k0]),I9=Qt(R9);var W0={},Q0={},Z0={};Object.defineProperty(Z0,"__esModule",{value:!0});const j9={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};var F9=Z0.default=j9;const M9=Wt({__proto__:null,default:F9},[Z0]),L9=Qt(M9);var Xs={};Object.defineProperty(Xs,"__esModule",{value:!0});var lx=Xs.callRef=dx=Xs.getValidate=void 0;const V9=H0,cx=mi,Cn=Ce,Ha=ho,ux=Y0,sd=Ge,U9={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:o,validateName:s,opts:a,self:c}=n,{root:l}=o;if((r==="#"||r==="#/")&&i===l.baseId)return h();const u=ux.resolveRef.call(c,l,i,r);if(u===void 0)throw new V9.default(n.opts.uriResolver,i,r);if(u instanceof ux.SchemaEnv)return f(u);return d(u);function h(){if(o===l)return ad(e,s,o,o.$async);const p=t.scopeValue("root",{ref:l});return ad(e,(0,Cn._)`${p}.validate`,l,l.$async)}function f(p){const g=hx(e,p);ad(e,g,p,p.$async)}function d(p){const g=t.scopeValue("schema",a.code.source===!0?{ref:p,code:(0,Cn.stringify)(p)}:{ref:p}),v=t.name("valid"),b=e.subschema({schema:p,dataTypes:[],schemaPath:Cn.nil,topSchemaRef:g,errSchemaPath:r},v);e.mergeEvaluated(b),e.ok(v)}}};function hx(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Cn._)`${r.scopeValue("wrapper",{ref:t})}.validate`}var dx=Xs.getValidate=hx;function ad(e,t,r,n){const{gen:i,it:o}=e,{allErrors:s,schemaEnv:a,opts:c}=o,l=c.passContext?Ha.default.this:Cn.nil;n?u():h();function u(){if(!a.$async)throw new Error("async schema referenced by sync schema");const p=i.let("valid");i.try(()=>{i.code((0,Cn._)`await ${(0,cx.callValidateCode)(e,t,l)}`),d(t),s||i.assign(p,!0)},g=>{i.if((0,Cn._)`!(${g} instanceof ${o.ValidationError})`,()=>i.throw(g)),f(g),s||i.assign(p,!1)}),e.ok(p)}function h(){e.result((0,cx.callValidateCode)(e,t,l),()=>d(t),()=>f(t))}function f(p){const g=(0,Cn._)`${p}.errors`;i.assign(Ha.default.vErrors,(0,Cn._)`${Ha.default.vErrors} === null ? ${g} : ${Ha.default.vErrors}.concat(${g})`),i.assign(Ha.default.errors,(0,Cn._)`${Ha.default.vErrors}.length`)}function d(p){var g;if(!o.opts.unevaluated)return;const v=(g=r?.validate)===null||g===void 0?void 0:g.evaluated;if(o.props!==!0)if(v&&!v.dynamicProps)v.props!==void 0&&(o.props=sd.mergeEvaluated.props(i,v.props,o.props));else{const b=i.var("props",(0,Cn._)`${p}.evaluated.props`);o.props=sd.mergeEvaluated.props(i,b,o.props,Cn.Name)}if(o.items!==!0)if(v&&!v.dynamicItems)v.items!==void 0&&(o.items=sd.mergeEvaluated.items(i,v.items,o.items));else{const b=i.var("items",(0,Cn._)`${p}.evaluated.items`);o.items=sd.mergeEvaluated.items(i,b,o.items,Cn.Name)}}}lx=Xs.callRef=ad;var z9=Xs.default=U9;const G9=Wt({__proto__:null,get callRef(){return lx},default:z9,get getValidate(){return dx}},[Xs]),B9=Qt(G9);Object.defineProperty(Q0,"__esModule",{value:!0});const H9=L9,q9=B9,K9=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",H9.default,q9.default];var Y9=Q0.default=K9;const X9=Wt({__proto__:null,default:Y9},[Q0]),J9=Qt(X9);var tm={},em={};Object.defineProperty(em,"__esModule",{value:!0});const ld=Ce,rs=ld.operators,cd={maximum:{okStr:"<=",ok:rs.LTE,fail:rs.GT},minimum:{okStr:">=",ok:rs.GTE,fail:rs.LT},exclusiveMaximum:{okStr:"<",ok:rs.LT,fail:rs.GTE},exclusiveMinimum:{okStr:">",ok:rs.GT,fail:rs.LTE}},W9={message:({keyword:e,schemaCode:t})=>(0,ld.str)`must be ${cd[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,ld._)`{comparison: ${cd[e].okStr}, limit: ${t}}`},Q9={keyword:Object.keys(cd),type:"number",schemaType:"number",$data:!0,error:W9,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,ld._)`${r} ${cd[t].fail} ${n} || isNaN(${r})`)}};var Z9=em.default=Q9;const t7=Wt({__proto__:null,default:Z9},[em]),e7=Qt(t7);var rm={};Object.defineProperty(rm,"__esModule",{value:!0});const oc=Ce,r7={message:({schemaCode:e})=>(0,oc.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,oc._)`{multipleOf: ${e}}`},n7={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:r7,code(e){const{gen:t,data:r,schemaCode:n,it:i}=e,o=i.opts.multipleOfPrecision,s=t.let("res"),a=o?(0,oc._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${o}`:(0,oc._)`${s} !== parseInt(${s})`;e.fail$data((0,oc._)`(${n} === 0 || (${s} = ${r}/${n}, ${a}))`)}};var i7=rm.default=n7;const o7=Wt({__proto__:null,default:i7},[rm]),s7=Qt(o7);var nm={},im={};Object.defineProperty(im,"__esModule",{value:!0});function fx(e){const t=e.length;let r=0,n=0,i;for(;n<t;)r++,i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<t&&(i=e.charCodeAt(n),(i&64512)===56320&&n++);return r}var a7=im.default=fx;fx.code='require("ajv/dist/runtime/ucs2length").default';const l7=Wt({__proto__:null,default:a7},[im]),c7=Qt(l7);Object.defineProperty(nm,"__esModule",{value:!0});const Js=Ce,u7=Ge,h7=c7,d7={message({keyword:e,schemaCode:t}){const r=e==="maxLength"?"more":"fewer";return(0,Js.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,Js._)`{limit: ${e}}`},f7={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:d7,code(e){const{keyword:t,data:r,schemaCode:n,it:i}=e,o=t==="maxLength"?Js.operators.GT:Js.operators.LT,s=i.opts.unicode===!1?(0,Js._)`${r}.length`:(0,Js._)`${(0,u7.useFunc)(e.gen,h7.default)}(${r})`;e.fail$data((0,Js._)`${s} ${o} ${n}`)}};var p7=nm.default=f7;const m7=Wt({__proto__:null,default:p7},[nm]),g7=Qt(m7);var om={};Object.defineProperty(om,"__esModule",{value:!0});const v7=mi,ud=Ce,y7={message:({schemaCode:e})=>(0,ud.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,ud._)`{pattern: ${e}}`},_7={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:y7,code(e){const{data:t,$data:r,schema:n,schemaCode:i,it:o}=e,s=o.opts.unicodeRegExp?"u":"",a=r?(0,ud._)`(new RegExp(${i}, ${s}))`:(0,v7.usePattern)(e,n);e.fail$data((0,ud._)`!${a}.test(${t})`)}};var b7=om.default=_7;const w7=Wt({__proto__:null,default:b7},[om]),x7=Qt(w7);var sm={};Object.defineProperty(sm,"__esModule",{value:!0});const sc=Ce,S7={message({keyword:e,schemaCode:t}){const r=e==="maxProperties"?"more":"fewer";return(0,sc.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,sc._)`{limit: ${e}}`},$7={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:S7,code(e){const{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?sc.operators.GT:sc.operators.LT;e.fail$data((0,sc._)`Object.keys(${r}).length ${i} ${n}`)}};var E7=sm.default=$7;const C7=Wt({__proto__:null,default:E7},[sm]),k7=Qt(C7);var am={};Object.defineProperty(am,"__esModule",{value:!0});const ac=mi,lc=Ce,P7=Ge,T7={message:({params:{missingProperty:e}})=>(0,lc.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,lc._)`{missingProperty: ${e}}`},O7={keyword:"required",type:"object",schemaType:"array",$data:!0,error:T7,code(e){const{gen:t,schema:r,schemaCode:n,data:i,$data:o,it:s}=e,{opts:a}=s;if(!o&&r.length===0)return;const c=r.length>=a.loopRequired;if(s.allErrors?l():u(),a.strictRequired){const d=e.parentSchema.properties,{definedProperties:p}=e.it;for(const g of r)if(d?.[g]===void 0&&!p.has(g)){const v=s.schemaEnv.baseId+s.errSchemaPath,b=`required property "${g}" is not defined at "${v}" (strictRequired)`;(0,P7.checkStrictMode)(s,b,s.opts.strictRequired)}}function l(){if(c||o)e.block$data(lc.nil,h);else for(const d of r)(0,ac.checkReportMissingProp)(e,d)}function u(){const d=t.let("missing");if(c||o){const p=t.let("valid",!0);e.block$data(p,()=>f(d,p)),e.ok(p)}else t.if((0,ac.checkMissingProp)(e,r,d)),(0,ac.reportMissingProp)(e,d),t.else()}function h(){t.forOf("prop",n,d=>{e.setParams({missingProperty:d}),t.if((0,ac.noPropertyInData)(t,i,d,a.ownProperties),()=>e.error())})}function f(d,p){e.setParams({missingProperty:d}),t.forOf(d,n,()=>{t.assign(p,(0,ac.propertyInData)(t,i,d,a.ownProperties)),t.if((0,lc.not)(p),()=>{e.error(),t.break()})},lc.nil)}}};var N7=am.default=O7;const A7=Wt({__proto__:null,default:N7},[am]),D7=Qt(A7);var lm={};Object.defineProperty(lm,"__esModule",{value:!0});const cc=Ce,R7={message({keyword:e,schemaCode:t}){const r=e==="maxItems"?"more":"fewer";return(0,cc.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,cc._)`{limit: ${e}}`},I7={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:R7,code(e){const{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?cc.operators.GT:cc.operators.LT;e.fail$data((0,cc._)`${r}.length ${i} ${n}`)}};var j7=lm.default=I7;const F7=Wt({__proto__:null,default:j7},[lm]),M7=Qt(F7);var cm={},um={};Object.defineProperty(um,"__esModule",{value:!0});const px=xw;px.code='require("ajv/dist/runtime/equal").default';var L7=um.default=px;const V7=Wt({__proto__:null,default:L7},[um]),hm=Qt(V7);Object.defineProperty(cm,"__esModule",{value:!0});const dm=Zh,nn=Ce,U7=Ge,z7=hm,G7={message:({params:{i:e,j:t}})=>(0,nn.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,nn._)`{i: ${e}, j: ${t}}`},B7={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:G7,code(e){const{gen:t,data:r,$data:n,schema:i,parentSchema:o,schemaCode:s,it:a}=e;if(!n&&!i)return;const c=t.let("valid"),l=o.items?(0,dm.getSchemaTypes)(o.items):[];e.block$data(c,u,(0,nn._)`${s} === false`),e.ok(c);function u(){const p=t.let("i",(0,nn._)`${r}.length`),g=t.let("j");e.setParams({i:p,j:g}),t.assign(c,!0),t.if((0,nn._)`${p} > 1`,()=>(h()?f:d)(p,g))}function h(){return l.length>0&&!l.some(p=>p==="object"||p==="array")}function f(p,g){const v=t.name("item"),b=(0,dm.checkDataTypes)(l,v,a.opts.strictNumbers,dm.DataType.Wrong),y=t.const("indices",(0,nn._)`{}`);t.for((0,nn._)`;${p}--;`,()=>{t.let(v,(0,nn._)`${r}[${p}]`),t.if(b,(0,nn._)`continue`),l.length>1&&t.if((0,nn._)`typeof ${v} == "string"`,(0,nn._)`${v} += "_"`),t.if((0,nn._)`typeof ${y}[${v}] == "number"`,()=>{t.assign(g,(0,nn._)`${y}[${v}]`),e.error(),t.assign(c,!1).break()}).code((0,nn._)`${y}[${v}] = ${p}`)})}function d(p,g){const v=(0,U7.useFunc)(t,z7.default),b=t.name("outer");t.label(b).for((0,nn._)`;${p}--;`,()=>t.for((0,nn._)`${g} = ${p}; ${g}--;`,()=>t.if((0,nn._)`${v}(${r}[${p}], ${r}[${g}])`,()=>{e.error(),t.assign(c,!1).break(b)})))}}};var H7=cm.default=B7;const q7=Wt({__proto__:null,default:H7},[cm]),K7=Qt(q7);var fm={};Object.defineProperty(fm,"__esModule",{value:!0});const pm=Ce,Y7=Ge,X7=hm,J7={message:"must be equal to constant",params:({schemaCode:e})=>(0,pm._)`{allowedValue: ${e}}`},W7={keyword:"const",$data:!0,error:J7,code(e){const{gen:t,data:r,$data:n,schemaCode:i,schema:o}=e;n||o&&typeof o=="object"?e.fail$data((0,pm._)`!${(0,Y7.useFunc)(t,X7.default)}(${r}, ${i})`):e.fail((0,pm._)`${o} !== ${r}`)}};var Q7=fm.default=W7;const Z7=Wt({__proto__:null,default:Q7},[fm]),tD=Qt(Z7);var mm={};Object.defineProperty(mm,"__esModule",{value:!0});const uc=Ce,eD=Ge,rD=hm,nD={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,uc._)`{allowedValues: ${e}}`},iD={keyword:"enum",schemaType:"array",$data:!0,error:nD,code(e){const{gen:t,data:r,$data:n,schema:i,schemaCode:o,it:s}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");const a=i.length>=s.opts.loopEnum;let c;const l=()=>c??(c=(0,eD.useFunc)(t,rD.default));let u;if(a||n)u=t.let("valid"),e.block$data(u,h);else{if(!Array.isArray(i))throw new Error("ajv implementation error");const d=t.const("vSchema",o);u=(0,uc.or)(...i.map((p,g)=>f(d,g)))}e.pass(u);function h(){t.assign(u,!1),t.forOf("v",o,d=>t.if((0,uc._)`${l()}(${r}, ${d})`,()=>t.assign(u,!0).break()))}function f(d,p){const g=i[p];return typeof g=="object"&&g!==null?(0,uc._)`${l()}(${r}, ${d}[${p}])`:(0,uc._)`${r} === ${g}`}}};var oD=mm.default=iD;const sD=Wt({__proto__:null,default:oD},[mm]),aD=Qt(sD);Object.defineProperty(tm,"__esModule",{value:!0});const lD=e7,cD=s7,uD=g7,hD=x7,dD=k7,fD=D7,pD=M7,mD=K7,gD=tD,vD=aD,yD=[lD.default,cD.default,uD.default,hD.default,dD.default,fD.default,pD.default,mD.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},gD.default,vD.default];var _D=tm.default=yD;const bD=Wt({__proto__:null,default:_D},[tm]),wD=Qt(bD);var gm={},hc={};Object.defineProperty(hc,"__esModule",{value:!0});var mx=hc.validateAdditionalItems=void 0;const Ws=Ce,vm=Ge,xD={message:({params:{len:e}})=>(0,Ws.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Ws._)`{limit: ${e}}`},SD={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:xD,code(e){const{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,vm.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}gx(e,n)}};function gx(e,t){const{gen:r,schema:n,data:i,keyword:o,it:s}=e;s.items=!0;const a=r.const("len",(0,Ws._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Ws._)`${a} <= ${t.length}`);else if(typeof n=="object"&&!(0,vm.alwaysValidSchema)(s,n)){const l=r.var("valid",(0,Ws._)`${a} <= ${t.length}`);r.if((0,Ws.not)(l),()=>c(l)),e.ok(l)}function c(l){r.forRange("i",t.length,a,u=>{e.subschema({keyword:o,dataProp:u,dataPropType:vm.Type.Num},l),s.allErrors||r.if((0,Ws.not)(l),()=>r.break())})}}mx=hc.validateAdditionalItems=gx;var $D=hc.default=SD;const ED=Wt({__proto__:null,default:$D,get validateAdditionalItems(){return mx}},[hc]),vx=Qt(ED);var ym={},dc={};Object.defineProperty(dc,"__esModule",{value:!0});var yx=dc.validateTuple=void 0;const _x=Ce,hd=Ge,CD=mi,kD={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return bx(e,"additionalItems",t);r.items=!0,!(0,hd.alwaysValidSchema)(r,t)&&e.ok((0,CD.validateArray)(e))}};function bx(e,t,r=e.schema){const{gen:n,parentSchema:i,data:o,keyword:s,it:a}=e;u(i),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=hd.mergeEvaluated.items(n,r.length,a.items));const c=n.name("valid"),l=n.const("len",(0,_x._)`${o}.length`);r.forEach((h,f)=>{(0,hd.alwaysValidSchema)(a,h)||(n.if((0,_x._)`${l} > ${f}`,()=>e.subschema({keyword:s,schemaProp:f,dataProp:f},c)),e.ok(c))});function u(h){const{opts:f,errSchemaPath:d}=a,p=r.length,g=p===h.minItems&&(p===h.maxItems||h[t]===!1);if(f.strictTuples&&!g){const v=`"${s}" is ${p}-tuple, but minItems or maxItems/${t} are not specified or different at path "${d}"`;(0,hd.checkStrictMode)(a,v,f.strictTuples)}}}yx=dc.validateTuple=bx;var PD=dc.default=kD;const TD=Wt({__proto__:null,default:PD,get validateTuple(){return yx}},[dc]),wx=Qt(TD);Object.defineProperty(ym,"__esModule",{value:!0});const OD=wx,ND={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,OD.validateTuple)(e,"items")};var AD=ym.default=ND;const DD=Wt({__proto__:null,default:AD},[ym]),RD=Qt(DD);var _m={};Object.defineProperty(_m,"__esModule",{value:!0});const xx=Ce,ID=Ge,jD=mi,FD=vx,MD={message:({params:{len:e}})=>(0,xx.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,xx._)`{limit: ${e}}`},LD={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:MD,code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,ID.alwaysValidSchema)(n,t)&&(i?(0,FD.validateAdditionalItems)(e,i):e.ok((0,jD.validateArray)(e)))}};var VD=_m.default=LD;const UD=Wt({__proto__:null,default:VD},[_m]),zD=Qt(UD);var bm={};Object.defineProperty(bm,"__esModule",{value:!0});const Wn=Ce,dd=Ge,GD={message:({params:{min:e,max:t}})=>t===void 0?(0,Wn.str)`must contain at least ${e} valid item(s)`:(0,Wn.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,Wn._)`{minContains: ${e}}`:(0,Wn._)`{minContains: ${e}, maxContains: ${t}}`},BD={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:GD,code(e){const{gen:t,schema:r,parentSchema:n,data:i,it:o}=e;let s,a;const{minContains:c,maxContains:l}=n;o.opts.next?(s=c===void 0?1:c,a=l):s=1;const u=t.const("len",(0,Wn._)`${i}.length`);if(e.setParams({min:s,max:a}),a===void 0&&s===0){(0,dd.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&s>a){(0,dd.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,dd.alwaysValidSchema)(o,r)){let g=(0,Wn._)`${u} >= ${s}`;a!==void 0&&(g=(0,Wn._)`${g} && ${u} <= ${a}`),e.pass(g);return}o.items=!0;const h=t.name("valid");a===void 0&&s===1?d(h,()=>t.if(h,()=>t.break())):s===0?(t.let(h,!0),a!==void 0&&t.if((0,Wn._)`${i}.length > 0`,f)):(t.let(h,!1),f()),e.result(h,()=>e.reset());function f(){const g=t.name("_valid"),v=t.let("count",0);d(g,()=>t.if(g,()=>p(v)))}function d(g,v){t.forRange("i",0,u,b=>{e.subschema({keyword:"contains",dataProp:b,dataPropType:dd.Type.Num,compositeRule:!0},g),v()})}function p(g){t.code((0,Wn._)`${g}++`),a===void 0?t.if((0,Wn._)`${g} >= ${s}`,()=>t.assign(h,!0).break()):(t.if((0,Wn._)`${g} > ${a}`,()=>t.assign(h,!1).break()),s===1?t.assign(h,!0):t.if((0,Wn._)`${g} >= ${s}`,()=>t.assign(h,!0)))}}};var HD=bm.default=BD;const qD=Wt({__proto__:null,default:HD},[bm]),KD=Qt(qD);var wm={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Ce,r=Ge,n=mi;e.error={message:({params:{property:c,depsCount:l,deps:u}})=>{const h=l===1?"property":"properties";return(0,t.str)`must have ${h} ${u} when property ${c} is present`},params:({params:{property:c,depsCount:l,deps:u,missingProperty:h}})=>(0,t._)`{property: ${c},
|
|
50
|
-
missingProperty: ${h},
|
|
51
|
-
depsCount: ${l},
|
|
52
|
-
deps: ${u}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(c){const[l,u]=o(c);s(c,l),a(c,u)}};function o({schema:c}){const l={},u={};for(const h in c){if(h==="__proto__")continue;const f=Array.isArray(c[h])?l:u;f[h]=c[h]}return[l,u]}function s(c,l=c.schema){const{gen:u,data:h,it:f}=c;if(Object.keys(l).length===0)return;const d=u.let("missing");for(const p in l){const g=l[p];if(g.length===0)continue;const v=(0,n.propertyInData)(u,h,p,f.opts.ownProperties);c.setParams({property:p,depsCount:g.length,deps:g.join(", ")}),f.allErrors?u.if(v,()=>{for(const b of g)(0,n.checkReportMissingProp)(c,b)}):(u.if((0,t._)`${v} && (${(0,n.checkMissingProp)(c,g,d)})`),(0,n.reportMissingProp)(c,d),u.else())}}e.validatePropertyDeps=s;function a(c,l=c.schema){const{gen:u,data:h,keyword:f,it:d}=c,p=u.name("valid");for(const g in l)(0,r.alwaysValidSchema)(d,l[g])||(u.if((0,n.propertyInData)(u,h,g,d.opts.ownProperties),()=>{const v=c.subschema({keyword:f,schemaProp:g},p);c.mergeValidEvaluated(v,p)},()=>u.var(p,!0)),c.ok(p))}e.validateSchemaDeps=a,e.default=i})(wm);const YD=En(wm),XD=Wt({__proto__:null,default:YD},[wm]),JD=Qt(XD);var xm={};Object.defineProperty(xm,"__esModule",{value:!0});const Sx=Ce,WD=Ge,QD={message:"property name must be valid",params:({params:e})=>(0,Sx._)`{propertyName: ${e.propertyName}}`},ZD={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:QD,code(e){const{gen:t,schema:r,data:n,it:i}=e;if((0,WD.alwaysValidSchema)(i,r))return;const o=t.name("valid");t.forIn("key",n,s=>{e.setParams({propertyName:s}),e.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},o),t.if((0,Sx.not)(o),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(o)}};var tR=xm.default=ZD;const eR=Wt({__proto__:null,default:tR},[xm]),rR=Qt(eR);var Sm={};Object.defineProperty(Sm,"__esModule",{value:!0});const fd=mi,yi=Ce,nR=ho,pd=Ge,iR={message:"must NOT have additional properties",params:({params:e})=>(0,yi._)`{additionalProperty: ${e.additionalProperty}}`},oR={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:iR,code(e){const{gen:t,schema:r,parentSchema:n,data:i,errsCount:o,it:s}=e;if(!o)throw new Error("ajv implementation error");const{allErrors:a,opts:c}=s;if(s.props=!0,c.removeAdditional!=="all"&&(0,pd.alwaysValidSchema)(s,r))return;const l=(0,fd.allSchemaProperties)(n.properties),u=(0,fd.allSchemaProperties)(n.patternProperties);h(),e.ok((0,yi._)`${o} === ${nR.default.errors}`);function h(){t.forIn("key",i,v=>{!l.length&&!u.length?p(v):t.if(f(v),()=>p(v))})}function f(v){let b;if(l.length>8){const y=(0,pd.schemaRefOrVal)(s,n.properties,"properties");b=(0,fd.isOwnProperty)(t,y,v)}else l.length?b=(0,yi.or)(...l.map(y=>(0,yi._)`${v} === ${y}`)):b=yi.nil;return u.length&&(b=(0,yi.or)(b,...u.map(y=>(0,yi._)`${(0,fd.usePattern)(e,y)}.test(${v})`))),(0,yi.not)(b)}function d(v){t.code((0,yi._)`delete ${i}[${v}]`)}function p(v){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){d(v);return}if(r===!1){e.setParams({additionalProperty:v}),e.error(),a||t.break();return}if(typeof r=="object"&&!(0,pd.alwaysValidSchema)(s,r)){const b=t.name("valid");c.removeAdditional==="failing"?(g(v,b,!1),t.if((0,yi.not)(b),()=>{e.reset(),d(v)})):(g(v,b),a||t.if((0,yi.not)(b),()=>t.break()))}}function g(v,b,y){const m={keyword:"additionalProperties",dataProp:v,dataPropType:pd.Type.Str};y===!1&&Object.assign(m,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(m,b)}}};var sR=Sm.default=oR;const aR=Wt({__proto__:null,default:sR},[Sm]),$x=Qt(aR);var $m={};Object.defineProperty($m,"__esModule",{value:!0});const lR=ic,Ex=mi,Em=Ge,Cx=$x,cR={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:n,data:i,it:o}=e;o.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&Cx.default.code(new lR.KeywordCxt(o,Cx.default,"additionalProperties"));const s=(0,Ex.allSchemaProperties)(r);for(const h of s)o.definedProperties.add(h);o.opts.unevaluated&&s.length&&o.props!==!0&&(o.props=Em.mergeEvaluated.props(t,(0,Em.toHash)(s),o.props));const a=s.filter(h=>!(0,Em.alwaysValidSchema)(o,r[h]));if(a.length===0)return;const c=t.name("valid");for(const h of a)l(h)?u(h):(t.if((0,Ex.propertyInData)(t,i,h,o.opts.ownProperties)),u(h),o.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(h),e.ok(c);function l(h){return o.opts.useDefaults&&!o.compositeRule&&r[h].default!==void 0}function u(h){e.subschema({keyword:"properties",schemaProp:h,dataProp:h},c)}}};var uR=$m.default=cR;const hR=Wt({__proto__:null,default:uR},[$m]),dR=Qt(hR);var Cm={};Object.defineProperty(Cm,"__esModule",{value:!0});const kx=mi,md=Ce,Px=Ge,Tx=Ge,fR={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:n,parentSchema:i,it:o}=e,{opts:s}=o,a=(0,kx.allSchemaProperties)(r),c=a.filter(g=>(0,Px.alwaysValidSchema)(o,r[g]));if(a.length===0||c.length===a.length&&(!o.opts.unevaluated||o.props===!0))return;const l=s.strictSchema&&!s.allowMatchingProperties&&i.properties,u=t.name("valid");o.props!==!0&&!(o.props instanceof md.Name)&&(o.props=(0,Tx.evaluatedPropsToName)(t,o.props));const{props:h}=o;f();function f(){for(const g of a)l&&d(g),o.allErrors?p(g):(t.var(u,!0),p(g),t.if(u))}function d(g){for(const v in l)new RegExp(g).test(v)&&(0,Px.checkStrictMode)(o,`property ${v} matches pattern ${g} (use allowMatchingProperties)`)}function p(g){t.forIn("key",n,v=>{t.if((0,md._)`${(0,kx.usePattern)(e,g)}.test(${v})`,()=>{const b=c.includes(g);b||e.subschema({keyword:"patternProperties",schemaProp:g,dataProp:v,dataPropType:Tx.Type.Str},u),o.opts.unevaluated&&h!==!0?t.assign((0,md._)`${h}[${v}]`,!0):!b&&!o.allErrors&&t.if((0,md.not)(u),()=>t.break())})})}}};var pR=Cm.default=fR;const mR=Wt({__proto__:null,default:pR},[Cm]),gR=Qt(mR);var km={};Object.defineProperty(km,"__esModule",{value:!0});const vR=Ge,yR={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,vR.alwaysValidSchema)(n,r)){e.fail();return}const i=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};var _R=km.default=yR;const bR=Wt({__proto__:null,default:_R},[km]),wR=Qt(bR);var Pm={};Object.defineProperty(Pm,"__esModule",{value:!0});const xR=mi,SR={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:xR.validateUnion,error:{message:"must match a schema in anyOf"}};var $R=Pm.default=SR;const ER=Wt({__proto__:null,default:$R},[Pm]),CR=Qt(ER);var Tm={};Object.defineProperty(Tm,"__esModule",{value:!0});const gd=Ce,kR=Ge,PR={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,gd._)`{passingSchemas: ${e.passing}}`},TR={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:PR,code(e){const{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;const o=r,s=t.let("valid",!1),a=t.let("passing",null),c=t.name("_valid");e.setParams({passing:a}),t.block(l),e.result(s,()=>e.reset(),()=>e.error(!0));function l(){o.forEach((u,h)=>{let f;(0,kR.alwaysValidSchema)(i,u)?t.var(c,!0):f=e.subschema({keyword:"oneOf",schemaProp:h,compositeRule:!0},c),h>0&&t.if((0,gd._)`${c} && ${s}`).assign(s,!1).assign(a,(0,gd._)`[${a}, ${h}]`).else(),t.if(c,()=>{t.assign(s,!0),t.assign(a,h),f&&e.mergeEvaluated(f,gd.Name)})})}}};var OR=Tm.default=TR;const NR=Wt({__proto__:null,default:OR},[Tm]),AR=Qt(NR);var Om={};Object.defineProperty(Om,"__esModule",{value:!0});const DR=Ge,RR={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const i=t.name("valid");r.forEach((o,s)=>{if((0,DR.alwaysValidSchema)(n,o))return;const a=e.subschema({keyword:"allOf",schemaProp:s},i);e.ok(i),e.mergeEvaluated(a)})}};var IR=Om.default=RR;const jR=Wt({__proto__:null,default:IR},[Om]),FR=Qt(jR);var Nm={};Object.defineProperty(Nm,"__esModule",{value:!0});const vd=Ce,Ox=Ge,MR={message:({params:e})=>(0,vd.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,vd._)`{failingKeyword: ${e.ifClause}}`},LR={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:MR,code(e){const{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,Ox.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const i=Nx(n,"then"),o=Nx(n,"else");if(!i&&!o)return;const s=t.let("valid",!0),a=t.name("_valid");if(c(),e.reset(),i&&o){const u=t.let("ifClause");e.setParams({ifClause:u}),t.if(a,l("then",u),l("else",u))}else i?t.if(a,l("then")):t.if((0,vd.not)(a),l("else"));e.pass(s,()=>e.error(!0));function c(){const u=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);e.mergeEvaluated(u)}function l(u,h){return()=>{const f=e.subschema({keyword:u},a);t.assign(s,a),e.mergeValidEvaluated(f,s),h?t.assign(h,(0,vd._)`${u}`):e.setParams({ifClause:u})}}}};function Nx(e,t){const r=e.schema[t];return r!==void 0&&!(0,Ox.alwaysValidSchema)(e,r)}var VR=Nm.default=LR;const UR=Wt({__proto__:null,default:VR},[Nm]),zR=Qt(UR);var Am={};Object.defineProperty(Am,"__esModule",{value:!0});const GR=Ge,BR={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,GR.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};var HR=Am.default=BR;const qR=Wt({__proto__:null,default:HR},[Am]),KR=Qt(qR);Object.defineProperty(gm,"__esModule",{value:!0});const YR=vx,XR=RD,JR=wx,WR=zD,QR=KD,ZR=JD,tI=rR,eI=$x,rI=dR,nI=gR,iI=wR,oI=CR,sI=AR,aI=FR,lI=zR,cI=KR;function uI(e=!1){const t=[iI.default,oI.default,sI.default,aI.default,lI.default,cI.default,tI.default,eI.default,ZR.default,rI.default,nI.default];return e?t.push(XR.default,WR.default):t.push(YR.default,JR.default),t.push(QR.default),t}var hI=gm.default=uI;const dI=Wt({__proto__:null,default:hI},[gm]),fI=Qt(dI);var Dm={},Rm={};Object.defineProperty(Rm,"__esModule",{value:!0});const kr=Ce,pI={message:({schemaCode:e})=>(0,kr.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,kr._)`{format: ${e}}`},mI={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:pI,code(e,t){const{gen:r,data:n,$data:i,schema:o,schemaCode:s,it:a}=e,{opts:c,errSchemaPath:l,schemaEnv:u,self:h}=a;if(!c.validateFormats)return;i?f():d();function f(){const p=r.scopeValue("formats",{ref:h.formats,code:c.code.formats}),g=r.const("fDef",(0,kr._)`${p}[${s}]`),v=r.let("fType"),b=r.let("format");r.if((0,kr._)`typeof ${g} == "object" && !(${g} instanceof RegExp)`,()=>r.assign(v,(0,kr._)`${g}.type || "string"`).assign(b,(0,kr._)`${g}.validate`),()=>r.assign(v,(0,kr._)`"string"`).assign(b,g)),e.fail$data((0,kr.or)(y(),m()));function y(){return c.strictSchema===!1?kr.nil:(0,kr._)`${s} && !${b}`}function m(){const x=u.$async?(0,kr._)`(${g}.async ? await ${b}(${n}) : ${b}(${n}))`:(0,kr._)`${b}(${n})`,A=(0,kr._)`(typeof ${b} == "function" ? ${x} : ${b}.test(${n}))`;return(0,kr._)`${b} && ${b} !== true && ${v} === ${t} && !${A}`}}function d(){const p=h.formats[o];if(!p){y();return}if(p===!0)return;const[g,v,b]=m(p);g===t&&e.pass(x());function y(){if(c.strictSchema===!1){h.logger.warn(A());return}throw new Error(A());function A(){return`unknown format "${o}" ignored in schema at path "${l}"`}}function m(A){const E=A instanceof RegExp?(0,kr.regexpCode)(A):c.code.formats?(0,kr._)`${c.code.formats}${(0,kr.getProperty)(o)}`:void 0,k=r.scopeValue("formats",{key:o,ref:A,code:E});return typeof A=="object"&&!(A instanceof RegExp)?[A.type||"string",A.validate,(0,kr._)`${k}.validate`]:["string",A,k]}function x(){if(typeof p=="object"&&!(p instanceof RegExp)&&p.async){if(!u.$async)throw new Error("async format in sync schema");return(0,kr._)`await ${b}(${n})`}return typeof v=="function"?(0,kr._)`${b}(${n})`:(0,kr._)`${b}.test(${n})`}}}};var gI=Rm.default=mI;const vI=Wt({__proto__:null,default:gI},[Rm]),yI=Qt(vI);Object.defineProperty(Dm,"__esModule",{value:!0});const _I=yI,bI=[_I.default];var wI=Dm.default=bI;const xI=Wt({__proto__:null,default:wI},[Dm]),SI=Qt(xI);var Qs={};Object.defineProperty(Qs,"__esModule",{value:!0});var Ax=Qs.contentVocabulary=Dx=Qs.metadataVocabulary=void 0,Dx=Qs.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Ax=Qs.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];const $I=Wt({__proto__:null,get contentVocabulary(){return Ax},default:Qs,get metadataVocabulary(){return Dx}},[Qs]),EI=Qt($I);Object.defineProperty(W0,"__esModule",{value:!0});const CI=J9,kI=wD,PI=fI,TI=SI,Rx=EI,OI=[CI.default,kI.default,(0,PI.default)(),TI.default,Rx.metadataVocabulary,Rx.contentVocabulary];var NI=W0.default=OI;const AI=Wt({__proto__:null,default:NI},[W0]),DI=Qt(AI);var Im={},jm={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,function(t){t.Tag="tag",t.Mapping="mapping"}(e.DiscrError||(e.DiscrError={}))})(jm);const RI=En(jm),II=Wt({__proto__:null,default:RI},[jm]),jI=Qt(II);Object.defineProperty(Im,"__esModule",{value:!0});const qa=Ce,Fm=jI,Ix=Y0,FI=Ge,MI={message:({params:{discrError:e,tagName:t}})=>e===Fm.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,qa._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},LI={keyword:"discriminator",type:"object",schemaType:"object",error:MI,code(e){const{gen:t,data:r,schema:n,parentSchema:i,it:o}=e,{oneOf:s}=i;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");const a=n.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");const c=t.let("valid",!1),l=t.const("tag",(0,qa._)`${r}${(0,qa.getProperty)(a)}`);t.if((0,qa._)`typeof ${l} == "string"`,()=>u(),()=>e.error(!1,{discrError:Fm.DiscrError.Tag,tag:l,tagName:a})),e.ok(c);function u(){const d=f();t.if(!1);for(const p in d)t.elseIf((0,qa._)`${l} === ${p}`),t.assign(c,h(d[p]));t.else(),e.error(!1,{discrError:Fm.DiscrError.Mapping,tag:l,tagName:a}),t.endIf()}function h(d){const p=t.name("valid"),g=e.subschema({keyword:"oneOf",schemaProp:d},p);return e.mergeEvaluated(g,qa.Name),p}function f(){var d;const p={},g=b(i);let v=!0;for(let x=0;x<s.length;x++){let A=s[x];A?.$ref&&!(0,FI.schemaHasRulesButRef)(A,o.self.RULES)&&(A=Ix.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,A?.$ref),A instanceof Ix.SchemaEnv&&(A=A.schema));const E=(d=A?.properties)===null||d===void 0?void 0:d[a];if(typeof E!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);v=v&&(g||b(A)),y(E,x)}if(!v)throw new Error(`discriminator: "${a}" must be required`);return p;function b({required:x}){return Array.isArray(x)&&x.includes(a)}function y(x,A){if(x.const)m(x.const,A);else if(x.enum)for(const E of x.enum)m(E,A);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function m(x,A){if(typeof x!="string"||x in p)throw new Error(`discriminator: "${a}" values must be unique strings`);p[x]=A}}}};var VI=Im.default=LI;const UI=Wt({__proto__:null,default:VI},[Im]),zI=Qt(UI),GI="http://json-schema.org/draft-07/schema#",BI="http://json-schema.org/draft-07/schema#",HI="Core schema meta-schema",qI={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},KI=["object","boolean"],YI={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},XI={$schema:GI,$id:BI,title:HI,definitions:qI,type:KI,properties:YI,default:!0};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const r=I9,n=DI,i=zI,o=XI,s=["/properties"],a="http://json-schema.org/draft-07/schema";class c extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(p=>this.addVocabulary(p)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const p=this.opts.$data?this.$dataMetaSchema(o,s):o;this.addMetaSchema(p,a,!1),this.refs["http://json-schema.org/schema"]=a}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(a)?a:void 0)}}e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var l=ic;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var u=Ce;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var h=z0();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return h.default}});var f=H0;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(C0,C0.exports);var jx=C0.exports;const Fx=En(jx),JI=Wt({__proto__:null,default:Fx},[jx]);var Mm={exports:{}};const WI=Qt(JI);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=WI,n=Ce,i=Zl,o=ic,s=tc,a=ho,c="errorMessage",l=new r.Name("emUsed"),u={required:"missingProperty",dependencies:"property",dependentRequired:"property"},h=/\$\{[^}]+\}/,f=/\$\{([^}]+)\}/g,d=/^""\s*\+\s*|\s*\+\s*""$/g;function p(v){return{keyword:c,schemaType:["string","object"],post:!0,code(b){const{gen:y,data:m,schema:x,schemaValue:A,it:E}=b;if(E.createErrors===!1)return;const k=x,D=n.strConcat(a.default.instancePath,E.errorPath);y.if(r._`${a.default.errors} > 0`,()=>{if(typeof k=="object"){const[$,_]=U(k);_&&K(_),$&&Y($),it(V(k))}const C=typeof k=="string"?k:k._;C&&nt(C),v.keepErrors||ft()});function V({properties:C,items:$}){const _={};if(C){_.props={};for(const P in C)_.props[P]=[]}if($){_.items={};for(let P=0;P<$.length;P++)_.items[P]=[]}return _}function U(C){let $,_;for(const P in C){if(P==="properties"||P==="items")continue;const M=C[P];if(typeof M=="object"){$||($={});const I=$[P]={};for(const G in M)I[G]=[]}else _||(_={}),_[P]=[]}return[$,_]}function K(C){const $=y.const("emErrors",r.stringify(C)),_=y.const("templates",at(C,x));y.forOf("err",a.default.vErrors,G=>y.if(xt(G,$),()=>y.code(r._`${$}[${G}.keyword].push(${G})`).assign(r._`${G}.${l}`,!0)));const{singleError:P}=v;if(P){const G=y.let("message",r._`""`),q=y.let("paramsErrors",r._`[]`);M(et=>{y.if(G,()=>y.code(r._`${G} += ${typeof P=="string"?P:";"}`)),y.code(r._`${G} += ${I(et)}`),y.assign(q,r._`${q}.concat(${$}[${et}])`)}),s.reportError(b,{message:G,params:r._`{errors: ${q}}`})}else M(G=>s.reportError(b,{message:I(G),params:r._`{errors: ${$}[${G}]}`}));function M(G){y.forIn("key",$,q=>y.if(r._`${$}[${q}].length`,()=>G(q)))}function I(G){return r._`${G} in ${_} ? ${_}[${G}]() : ${A}[${G}]`}}function Y(C){const $=y.const("emErrors",r.stringify(C)),_=[];for(const q in C)_.push([q,at(C[q],x[q])]);const P=y.const("templates",y.object(..._)),M=y.scopeValue("obj",{ref:u,code:r.stringify(u)}),I=y.let("emPropParams"),G=y.let("emParamsErrors");y.forOf("err",a.default.vErrors,q=>y.if(xt(q,$),()=>{y.assign(I,r._`${M}[${q}.keyword]`),y.assign(G,r._`${$}[${q}.keyword][${q}.params[${I}]]`),y.if(G,()=>y.code(r._`${G}.push(${q})`).assign(r._`${q}.${l}`,!0))})),y.forIn("key",$,q=>y.forIn("keyProp",r._`${$}[${q}]`,et=>{y.assign(G,r._`${$}[${q}][${et}]`),y.if(r._`${G}.length`,()=>{const st=y.const("tmpl",r._`${P}[${q}] && ${P}[${q}][${et}]`);s.reportError(b,{message:r._`${st} ? ${st}() : ${A}[${q}][${et}]`,params:r._`{errors: ${G}}`})})}))}function it(C){const{props:$,items:_}=C;if(!$&&!_)return;const P=r._`typeof ${m} == "object"`,M=r._`Array.isArray(${m})`,I=y.let("emErrors");let G,q;const et=y.let("templates");$&&_?(G=y.let("emChildKwd"),y.if(P),y.if(M,()=>{st(_,x.items),y.assign(G,r.str`items`)},()=>{st($,x.properties),y.assign(G,r.str`properties`)}),q=r._`[${G}]`):_?(y.if(M),st(_,x.items),q=r._`.items`):$&&(y.if(n.and(P,n.not(M))),st($,x.properties),q=r._`.properties`),y.forOf("err",a.default.vErrors,mt=>_t(mt,I,Lt=>y.code(r._`${I}[${Lt}].push(${mt})`).assign(r._`${mt}.${l}`,!0))),y.forIn("key",I,mt=>y.if(r._`${I}[${mt}].length`,()=>{s.reportError(b,{message:r._`${mt} in ${et} ? ${et}[${mt}]() : ${A}${q}[${mt}]`,params:r._`{errors: ${I}[${mt}]}`}),y.assign(r._`${a.default.vErrors}[${a.default.errors}-1].instancePath`,r._`${D} + "/" + ${mt}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})),y.endIf();function st(mt,Lt){y.assign(I,r.stringify(mt)),y.assign(et,at(mt,Lt))}}function nt(C){const $=y.const("emErrs",r._`[]`);y.forOf("err",a.default.vErrors,_=>y.if(yt(_),()=>y.code(r._`${$}.push(${_})`).assign(r._`${_}.${l}`,!0))),y.if(r._`${$}.length`,()=>s.reportError(b,{message:X(C),params:r._`{errors: ${$}}`}))}function ft(){const C=y.const("emErrs",r._`[]`);y.forOf("err",a.default.vErrors,$=>y.if(r._`!${$}.${l}`,()=>y.code(r._`${C}.push(${$})`))),y.assign(a.default.vErrors,C).assign(a.default.errors,r._`${C}.length`)}function xt(C,$){return n.and(r._`${C}.keyword !== ${c}`,r._`!${C}.${l}`,r._`${C}.instancePath === ${D}`,r._`${C}.keyword in ${$}`,r._`${C}.schemaPath.indexOf(${E.errSchemaPath}) === 0`,r._`/^\\/[^\\/]*$/.test(${C}.schemaPath.slice(${E.errSchemaPath.length}))`)}function _t(C,$,_){y.if(n.and(r._`${C}.keyword !== ${c}`,r._`!${C}.${l}`,r._`${C}.instancePath.indexOf(${D}) === 0`),()=>{const P=y.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:r._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),M=y.const("emMatches",r._`${P}.exec(${C}.instancePath.slice(${D}.length))`),I=y.const("emChild",r._`${M} && ${M}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);y.if(r._`${I} !== undefined && ${I} in ${$}`,()=>_(I))})}function yt(C){return n.and(r._`${C}.keyword !== ${c}`,r._`!${C}.${l}`,n.or(r._`${C}.instancePath === ${D}`,n.and(r._`${C}.instancePath.indexOf(${D}) === 0`,r._`${C}.instancePath[${D}.length] === "/"`)),r._`${C}.schemaPath.indexOf(${E.errSchemaPath}) === 0`,r._`${C}.schemaPath[${E.errSchemaPath}.length] === "/"`)}function at(C,$){const _=[];for(const P in C){const M=$[P];h.test(M)&&_.push([P,O(M)])}return y.object(..._)}function X(C){return h.test(C)?new i._Code(i.safeStringify(C).replace(f,($,_)=>`" + JSON.stringify(${o.getData(_,E)}) + "`).replace(d,"")):r.stringify(C)}function O(C){return r._`function(){return ${X(C)}}`}},metaSchema:{anyOf:[{type:"string"},{type:"object",properties:{properties:{$ref:"#/$defs/stringMap"},items:{$ref:"#/$defs/stringList"},required:{$ref:"#/$defs/stringOrMap"},dependencies:{$ref:"#/$defs/stringOrMap"}},additionalProperties:{type:"string"}}],$defs:{stringMap:{type:"object",additionalProperties:{type:"string"}},stringOrMap:{anyOf:[{type:"string"},{$ref:"#/$defs/stringMap"}]},stringList:{type:"array",items:{type:"string"}}}}}}const g=(v,b={})=>{if(!v.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(v.opts.jsPropertySyntax)throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported");return v.addKeyword(p(b))};t.default=g,e.exports=g,e.exports.default=g})(Mm,Mm.exports);var QI=Mm.exports;const ZI=En(QI),tj=new Fx({allErrors:!0});ZI(tj);const fc=/^[a-z0-9]+(-[a-z0-9]+)*$/,yd=(e,t,r,n="")=>{const i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;n=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const a=i.pop(),c=i.pop(),l={provider:i.length>0?i[0]:n,prefix:c,name:a};return t&&!_d(l)?null:l}const o=i[0],s=o.split("-");if(s.length>1){const a={provider:n,prefix:s.shift(),name:s.join("-")};return t&&!_d(a)?null:a}if(r&&n===""){const a={provider:n,prefix:"",name:o};return t&&!_d(a,r)?null:a}return null},_d=(e,t)=>e?!!((e.provider===""||e.provider.match(fc))&&(t&&e.prefix===""||e.prefix.match(fc))&&e.name.match(fc)):!1,Mx=Object.freeze({left:0,top:0,width:16,height:16}),bd=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),wd=Object.freeze({...Mx,...bd}),Lm=Object.freeze({...wd,body:"",hidden:!1});function ej(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(r.rotate=n),r}function Lx(e,t){const r=ej(e,t);for(const n in Lm)n in bd?n in e&&!(n in r)&&(r[n]=bd[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function rj(e,t){const r=e.icons,n=e.aliases||Object.create(null),i=Object.create(null);function o(s){if(r[s])return i[s]=[];if(!(s in i)){i[s]=null;const a=n[s]&&n[s].parent,c=a&&o(a);c&&(i[s]=[a].concat(c))}return i[s]}return(t||Object.keys(r).concat(Object.keys(n))).forEach(o),i}function nj(e,t,r){const n=e.icons,i=e.aliases||Object.create(null);let o={};function s(a){o=Lx(n[a]||i[a],o)}return s(t),r.forEach(s),Lx(e,o)}function Vx(e,t){const r=[];if(typeof e!="object"||typeof e.icons!="object")return r;e.not_found instanceof Array&&e.not_found.forEach(i=>{t(i,null),r.push(i)});const n=rj(e);for(const i in n){const o=n[i];o&&(t(i,nj(e,i,o)),r.push(i))}return r}const ij={provider:"",aliases:{},not_found:{},...Mx};function Vm(e,t){for(const r in t)if(r in e&&typeof e[r]!=typeof t[r])return!1;return!0}function Ux(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!Vm(e,ij))return null;const r=t.icons;for(const i in r){const o=r[i];if(!i.match(fc)||typeof o.body!="string"||!Vm(o,Lm))return null}const n=t.aliases||Object.create(null);for(const i in n){const o=n[i],s=o.parent;if(!i.match(fc)||typeof s!="string"||!r[s]&&!n[s]||!Vm(o,Lm))return null}return t}const zx=Object.create(null);function oj(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Zs(e,t){const r=zx[e]||(zx[e]=Object.create(null));return r[t]||(r[t]=oj(e,t))}function Um(e,t){return Ux(t)?Vx(t,(r,n)=>{n?e.icons[r]=n:e.missing.add(r)}):[]}function sj(e,t,r){try{if(typeof r.body=="string")return e.icons[t]={...r},!0}catch{}return!1}let pc=!1;function Gx(e){return typeof e=="boolean"&&(pc=e),pc}function aj(e){const t=typeof e=="string"?yd(e,!0,pc):e;if(t){const r=Zs(t.provider,t.prefix),n=t.name;return r.icons[n]||(r.missing.has(n)?null:void 0)}}function lj(e,t){const r=yd(e,!0,pc);if(!r)return!1;const n=Zs(r.provider,r.prefix);return sj(n,r.name,t)}function cj(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),pc&&!t&&!e.prefix){let i=!1;return Ux(e)&&(e.prefix="",Vx(e,(o,s)=>{s&&lj(o,s)&&(i=!0)})),i}const r=e.prefix;if(!_d({provider:t,prefix:r,name:"a"}))return!1;const n=Zs(t,r);return!!Um(n,e)}const Bx=Object.freeze({width:null,height:null}),Hx=Object.freeze({...Bx,...bd}),uj=/(-?[0-9.]*[0-9]+[0-9.]*)/g,hj=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function qx(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const n=e.split(uj);if(n===null||!n.length)return e;const i=[];let o=n.shift(),s=hj.test(o);for(;;){if(s){const a=parseFloat(o);isNaN(a)?i.push(o):i.push(Math.ceil(a*t*r)/r)}else i.push(o);if(o=n.shift(),o===void 0)return i.join("");s=!s}}function dj(e,t="defs"){let r="";const n=e.indexOf("<"+t);for(;n>=0;){const i=e.indexOf(">",n),o=e.indexOf("</"+t);if(i===-1||o===-1)break;const s=e.indexOf(">",o);if(s===-1)break;r+=e.slice(i+1,o).trim(),e=e.slice(0,n).trim()+e.slice(s+1)}return{defs:r,content:e}}function fj(e,t){return e?"<defs>"+e+"</defs>"+t:t}function pj(e,t,r){const n=dj(e);return fj(n.defs,t+n.content+r)}const mj=e=>e==="unset"||e==="undefined"||e==="none";function gj(e,t){const r={...wd,...e},n={...Hx,...t},i={left:r.left,top:r.top,width:r.width,height:r.height};let o=r.body;[r,n].forEach(g=>{const v=[],b=g.hFlip,y=g.vFlip;let m=g.rotate;b?y?m+=2:(v.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),v.push("scale(-1 1)"),i.top=i.left=0):y&&(v.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),v.push("scale(1 -1)"),i.top=i.left=0);let x;switch(m<0&&(m-=Math.floor(m/4)*4),m=m%4,m){case 1:x=i.height/2+i.top,v.unshift("rotate(90 "+x.toString()+" "+x.toString()+")");break;case 2:v.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:x=i.width/2+i.left,v.unshift("rotate(-90 "+x.toString()+" "+x.toString()+")");break}m%2===1&&(i.left!==i.top&&(x=i.left,i.left=i.top,i.top=x),i.width!==i.height&&(x=i.width,i.width=i.height,i.height=x)),v.length&&(o=pj(o,'<g transform="'+v.join(" ")+'">',"</g>"))});const s=n.width,a=n.height,c=i.width,l=i.height;let u,h;s===null?(h=a===null?"1em":a==="auto"?l:a,u=qx(h,c/l)):(u=s==="auto"?c:s,h=a===null?qx(u,l/c):a==="auto"?l:a);const f={},d=(g,v)=>{mj(v)||(f[g]=v.toString())};d("width",u),d("height",h);const p=[i.left,i.top,c,l];return f.viewBox=p.join(" "),{attributes:f,viewBox:p,body:o}}const vj=/\sid="(\S+)"/g,yj="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let _j=0;function bj(e,t=yj){const r=[];let n;for(;n=vj.exec(e);)r.push(n[1]);if(!r.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return r.forEach(o=>{const s=typeof t=="function"?t(o):t+(_j++).toString(),a=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+s+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}const zm=Object.create(null);function wj(e,t){zm[e]=t}function Gm(e){return zm[e]||zm[""]}function Bm(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Hm=Object.create(null),mc=["https://api.simplesvg.com","https://api.unisvg.com"],xd=[];for(;mc.length>0;)mc.length===1||Math.random()>.5?xd.push(mc.shift()):xd.push(mc.pop());Hm[""]=Bm({resources:["https://api.iconify.design"].concat(xd)});function xj(e,t){const r=Bm(t);return r===null?!1:(Hm[e]=r,!0)}function qm(e){return Hm[e]}let Kx=(()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}})();function Sj(e,t){const r=qm(e);if(!r)return 0;let n;if(!r.maxURL)n=0;else{let i=0;r.resources.forEach(s=>{i=Math.max(i,s.length)});const o=t+".json?icons=";n=r.maxURL-i-r.path.length-o.length}return n}function $j(e){return e===404}const Ej=(e,t,r)=>{const n=[],i=Sj(e,t),o="icons";let s={type:o,provider:e,prefix:t,icons:[]},a=0;return r.forEach((c,l)=>{a+=c.length+1,a>=i&&l>0&&(n.push(s),s={type:o,provider:e,prefix:t,icons:[]},a=c.length),s.icons.push(c)}),n.push(s),n};function Cj(e){if(typeof e=="string"){const t=qm(e);if(t)return t.path}return"/"}const kj={prepare:Ej,send:(e,t,r)=>{if(!Kx){r("abort",424);return}let n=Cj(t.provider);switch(t.type){case"icons":{const o=t.prefix,a=t.icons.join(","),c=new URLSearchParams({icons:a});n+=o+".json?"+c.toString();break}case"custom":{const o=t.uri;n+=o.slice(0,1)==="/"?o.slice(1):o;break}default:r("abort",400);return}let i=503;Kx(e+n).then(o=>{const s=o.status;if(s!==200){setTimeout(()=>{r($j(s)?"abort":"next",s)});return}return i=501,o.json()}).then(o=>{if(typeof o!="object"||o===null){setTimeout(()=>{o===404?r("abort",o):r("next",i)});return}setTimeout(()=>{r("success",o)})}).catch(()=>{r("next",i)})}};function Pj(e){const t={loaded:[],missing:[],pending:[]},r=Object.create(null);e.sort((i,o)=>i.provider!==o.provider?i.provider.localeCompare(o.provider):i.prefix!==o.prefix?i.prefix.localeCompare(o.prefix):i.name.localeCompare(o.name));let n={provider:"",prefix:"",name:""};return e.forEach(i=>{if(n.name===i.name&&n.prefix===i.prefix&&n.provider===i.provider)return;n=i;const o=i.provider,s=i.prefix,a=i.name,c=r[o]||(r[o]=Object.create(null)),l=c[s]||(c[s]=Zs(o,s));let u;a in l.icons?u=t.loaded:s===""||l.missing.has(a)?u=t.missing:u=t.pending;const h={provider:o,prefix:s,name:a};u.push(h)}),t}function Yx(e,t){e.forEach(r=>{const n=r.loaderCallbacks;n&&(r.loaderCallbacks=n.filter(i=>i.id!==t))})}function Tj(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let r=!1;const n=e.provider,i=e.prefix;t.forEach(o=>{const s=o.icons,a=s.pending.length;s.pending=s.pending.filter(c=>{if(c.prefix!==i)return!0;const l=c.name;if(e.icons[l])s.loaded.push({provider:n,prefix:i,name:l});else if(e.missing.has(l))s.missing.push({provider:n,prefix:i,name:l});else return r=!0,!0;return!1}),s.pending.length!==a&&(r||Yx([e],o.id),o.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),o.abort))})}))}let Oj=0;function Nj(e,t,r){const n=Oj++,i=Yx.bind(null,r,n);if(!t.pending.length)return i;const o={id:n,icons:t,callback:e,abort:i};return r.forEach(s=>{(s.loaderCallbacks||(s.loaderCallbacks=[])).push(o)}),i}function Aj(e,t=!0,r=!1){const n=[];return e.forEach(i=>{const o=typeof i=="string"?yd(i,t,r):i;o&&n.push(o)}),n}var Dj={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Rj(e,t,r,n){const i=e.resources.length,o=e.random?Math.floor(Math.random()*i):e.index;let s;if(e.random){let E=e.resources.slice(0);for(s=[];E.length>1;){const k=Math.floor(Math.random()*E.length);s.push(E[k]),E=E.slice(0,k).concat(E.slice(k+1))}s=s.concat(E)}else s=e.resources.slice(o).concat(e.resources.slice(0,o));const a=Date.now();let c="pending",l=0,u,h=null,f=[],d=[];typeof n=="function"&&d.push(n);function p(){h&&(clearTimeout(h),h=null)}function g(){c==="pending"&&(c="aborted"),p(),f.forEach(E=>{E.status==="pending"&&(E.status="aborted")}),f=[]}function v(E,k){k&&(d=[]),typeof E=="function"&&d.push(E)}function b(){return{startTime:a,payload:t,status:c,queriesSent:l,queriesPending:f.length,subscribe:v,abort:g}}function y(){c="failed",d.forEach(E=>{E(void 0,u)})}function m(){f.forEach(E=>{E.status==="pending"&&(E.status="aborted")}),f=[]}function x(E,k,D){const V=k!=="success";switch(f=f.filter(U=>U!==E),c){case"pending":break;case"failed":if(V||!e.dataAfterTimeout)return;break;default:return}if(k==="abort"){u=D,y();return}if(V){u=D,f.length||(s.length?A():y());return}if(p(),m(),!e.random){const U=e.resources.indexOf(E.resource);U!==-1&&U!==e.index&&(e.index=U)}c="completed",d.forEach(U=>{U(D)})}function A(){if(c!=="pending")return;p();const E=s.shift();if(E===void 0){if(f.length){h=setTimeout(()=>{p(),c==="pending"&&(m(),y())},e.timeout);return}y();return}const k={status:"pending",resource:E,callback:(D,V)=>{x(k,D,V)}};f.push(k),l++,h=setTimeout(A,e.rotate),r(E,t,k.callback)}return setTimeout(A),b}function Xx(e){const t={...Dj,...e};let r=[];function n(){r=r.filter(a=>a().status==="pending")}function i(a,c,l){const u=Rj(t,a,c,(h,f)=>{n(),l&&l(h,f)});return r.push(u),u}function o(a){return r.find(c=>a(c))||null}return{query:i,find:o,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:n}}function Jx(){}const Km=Object.create(null);function Ij(e){if(!Km[e]){const t=qm(e);if(!t)return;const r=Xx(t),n={config:t,redundancy:r};Km[e]=n}return Km[e]}function jj(e,t,r){let n,i;if(typeof e=="string"){const o=Gm(e);if(!o)return r(void 0,424),Jx;i=o.send;const s=Ij(e);s&&(n=s.redundancy)}else{const o=Bm(e);if(o){n=Xx(o);const s=e.resources?e.resources[0]:"",a=Gm(s);a&&(i=a.send)}}return!n||!i?(r(void 0,424),Jx):n.query(t,i,r)().abort}const Wx="iconify2",gc="iconify",Qx=gc+"-count",Zx=gc+"-version",tS=36e5,Fj=168,Mj=50;function Ym(e,t){try{return e.getItem(t)}catch{}}function Xm(e,t,r){try{return e.setItem(t,r),!0}catch{}}function eS(e,t){try{e.removeItem(t)}catch{}}function Jm(e,t){return Xm(e,Qx,t.toString())}function Wm(e){return parseInt(Ym(e,Qx))||0}const Sd={local:!0,session:!0},rS={local:new Set,session:new Set};let Qm=!1;function Lj(e){Qm=e}let $d=typeof window>"u"?{}:window;function nS(e){const t=e+"Storage";try{if($d&&$d[t]&&typeof $d[t].length=="number")return $d[t]}catch{}Sd[e]=!1}function iS(e,t){const r=nS(e);if(!r)return;const n=Ym(r,Zx);if(n!==Wx){if(n){const a=Wm(r);for(let c=0;c<a;c++)eS(r,gc+c.toString())}Xm(r,Zx,Wx),Jm(r,0);return}const i=Math.floor(Date.now()/tS)-Fj,o=a=>{const c=gc+a.toString(),l=Ym(r,c);if(typeof l=="string"){try{const u=JSON.parse(l);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>i&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,a))return!0}catch{}eS(r,c)}};let s=Wm(r);for(let a=s-1;a>=0;a--)o(a)||(a===s-1?(s--,Jm(r,s)):rS[e].add(a))}function oS(){if(!Qm){Lj(!0);for(const e in Sd)iS(e,t=>{const r=t.data,n=t.provider,i=r.prefix,o=Zs(n,i);if(!Um(o,r).length)return!1;const s=r.lastModified||-1;return o.lastModifiedCached=o.lastModifiedCached?Math.min(o.lastModifiedCached,s):s,!0})}}function Vj(e,t){const r=e.lastModifiedCached;if(r&&r>=t)return r===t;if(e.lastModifiedCached=t,r)for(const n in Sd)iS(n,i=>{const o=i.data;return i.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===t});return!0}function Uj(e,t){Qm||oS();function r(n){let i;if(!Sd[n]||!(i=nS(n)))return;const o=rS[n];let s;if(o.size)o.delete(s=Array.from(o).shift());else if(s=Wm(i),s>=Mj||!Jm(i,s+1))return;const a={cached:Math.floor(Date.now()/tS),provider:e.provider,data:t};return Xm(i,gc+s.toString(),JSON.stringify(a))}t.lastModified&&!Vj(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),r("local")||r("session"))}function sS(){}function zj(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Tj(e)}))}function Gj(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:r,prefix:n}=e,i=e.iconsToLoad;delete e.iconsToLoad;let o;if(!i||!(o=Gm(r)))return;o.prepare(r,n,i).forEach(a=>{jj(r,a,c=>{if(typeof c!="object")a.icons.forEach(l=>{e.missing.add(l)});else try{const l=Um(e,c);if(!l.length)return;const u=e.pendingIcons;u&&l.forEach(h=>{u.delete(h)}),Uj(e,c)}catch(l){console.error(l)}zj(e)})})}))}const Bj=(e,t)=>{const r=Aj(e,!0,Gx()),n=Pj(r);if(!n.pending.length){let c=!0;return t&&setTimeout(()=>{c&&t(n.loaded,n.missing,n.pending,sS)}),()=>{c=!1}}const i=Object.create(null),o=[];let s,a;return n.pending.forEach(c=>{const{provider:l,prefix:u}=c;if(u===a&&l===s)return;s=l,a=u,o.push(Zs(l,u));const h=i[l]||(i[l]=Object.create(null));h[u]||(h[u]=[])}),n.pending.forEach(c=>{const{provider:l,prefix:u,name:h}=c,f=Zs(l,u),d=f.pendingIcons||(f.pendingIcons=new Set);d.has(h)||(d.add(h),i[l][u].push(h))}),o.forEach(c=>{const{provider:l,prefix:u}=c;i[l][u].length&&Gj(c,i[l][u])}),t?Nj(t,n,o):sS};function Hj(e,t){const r={...e};for(const n in t){const i=t[n],o=typeof i;n in Bx?(i===null||i&&(o==="string"||o==="number"))&&(r[n]=i):o===typeof r[n]&&(r[n]=n==="rotate"?i%4:i)}return r}const qj=/[\s,]+/;function Kj(e,t){t.split(qj).forEach(r=>{switch(r.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Yj(e,t=0){const r=e.replace(/^-?[0-9.]*/,"");function n(i){for(;i<0;)i+=4;return i%4}if(r===""){const i=parseInt(e);return isNaN(i)?0:n(i)}else if(r!==e){let i=0;switch(r){case"%":i=25;break;case"deg":i=90}if(i){let o=parseFloat(e.slice(0,e.length-r.length));return isNaN(o)?0:(o=o/i,o%1===0?n(o):0)}}return t}function Xj(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in t)r+=" "+n+'="'+t[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}function Jj(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Wj(e){return"data:image/svg+xml,"+Jj(e)}function Qj(e){return'url("'+Wj(e)+'")'}const aS={...Hx,inline:!1},Zj={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},tF={display:"inline-block"},Zm={backgroundColor:"currentColor"},lS={backgroundColor:"transparent"},cS={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},uS={webkitMask:Zm,mask:Zm,background:lS};for(const e in uS){const t=uS[e];for(const r in cS)t[e+r]=cS[r]}const Ed={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";Ed[e+"-flip"]=t,Ed[e.slice(0,1)+"-flip"]=t,Ed[e+"Flip"]=t});function hS(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const dS=(e,t)=>{const r=Hj(aS,t),n={...Zj},i=t.mode||"svg",o={},s=t.style,a=typeof s=="object"&&!(s instanceof Array)?s:{};for(let g in t){const v=t[g];if(v!==void 0)switch(g){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":r[g]=v===!0||v==="true"||v===1;break;case"flip":typeof v=="string"&&Kj(r,v);break;case"color":o.color=v;break;case"rotate":typeof v=="string"?r[g]=Yj(v):typeof v=="number"&&(r[g]=v);break;case"ariaHidden":case"aria-hidden":v!==!0&&v!=="true"&&delete n["aria-hidden"];break;default:{const b=Ed[g];b?(v===!0||v==="true"||v===1)&&(r[b]=!0):aS[g]===void 0&&(n[g]=v)}}}const c=gj(e,r),l=c.attributes;if(r.inline&&(o.verticalAlign="-0.125em"),i==="svg"){n.style={...o,...a},Object.assign(n,l);let g=0,v=t.id;return typeof v=="string"&&(v=v.replace(/-/g,"_")),n.innerHTML=bj(c.body,v?()=>v+"ID"+g++:"iconifyVue"),Ko("svg",n)}const{body:u,width:h,height:f}=e,d=i==="mask"||(i==="bg"?!1:u.indexOf("currentColor")!==-1),p=Xj(u,{...l,width:h+"",height:f+""});return n.style={...o,"--svg":Qj(p),width:hS(l.width),height:hS(l.height),...tF,...d?Zm:lS,...a},Ko("span",n)};if(Gx(!0),wj("",kj),typeof document<"u"&&typeof window<"u"){oS();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(n=>{try{(typeof n!="object"||n===null||n instanceof Array||typeof n.icons!="object"||typeof n.prefix!="string"||!cj(n))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let r in t){const n="IconifyProviders["+r+"] is invalid.";try{const i=t[r];if(typeof i!="object"||!i||i.resources===void 0)continue;xj(r,i)||console.error(n)}catch{console.error(n)}}}}const eF={...wd,body:""},fS=xr({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(e,t){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let r;if(typeof e!="string"||(r=yd(e,!1,!0))===null)return this.abortLoading(),null;const n=aj(r);if(!n)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",n!==null&&(this._loadingIcon={name:e,abort:Bj([r],()=>{this.counter++})})),null;this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e));const i=["iconify"];return r.prefix!==""&&i.push("iconify--"+r.prefix),r.provider!==""&&i.push("iconify--"+r.provider),{data:n,classes:i}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted||e.ssr?this.getIcon(e.icon,e.onLoad):null;if(!t)return dS(eF,e);let r=e;return t.classes&&(r={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),dS({...wd,...t.data},r)}});function se(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(n,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Xt(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(n,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const Cd=typeof window=="object"&&typeof document=="object";typeof process<"u"&&process.versions!=null&&process.versions.node!=null;const rF=e=>{let t=null;switch(e){case"bin":t=/^[0-1]+$/;break;case"oct":t=/^(0b)?[0-7]+$/i;break;case"hex":t=/^(0x)?[0-9a-fA-F]+$/i;break;case"int":t=/^[-+]?[0-9]+$/;break;case"number":t=/[-+]?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;break;case"email":t=/^[A-Za-z0-9_!#$%&'*+/=?`{|}~^.-]+@[A-Za-z0-9._-]+$/gm;break;case"ip":t=/^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/;break;case"base64-data":t=/^\s*data:(?:[a-z]+\/[a-z0-9-+.]+(?:;[a-z-]+=[a-z0-9-]+)?)?(?:;base64)?,([a-z0-9!$&',()*+;=\-._~:@/?%\s]*?)\s*$/i;break;case"var-name":t=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/;break;case"hex-color":t=/^#([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;break;case"chinese-name":t=/^(?:[\u4e00-\u9fa5·]{2,16})$/;break;case"chinese":t=new RegExp(String.raw`
|
|
53
|
-
[\u{FA0E}\u{FA0F}\u{FA11}\u{FA13}\u{FA14}\u{FA1F}\u{FA21}\u{FA23}\u{FA24}\u{FA27}-\u{FA29}]
|
|
54
|
-
|[\u{4E00}-\u{9FCC}]
|
|
55
|
-
|[\u{3400}-\u{4DB5}]
|
|
56
|
-
|[\u{20000}-\u{2A6D6}]
|
|
57
|
-
|[\u{2A700}-\u{2B734}]
|
|
58
|
-
|[\u{2B740}-\u{2B81D}]
|
|
59
|
-
|[\u{2B820}-\u{2CEAF}]
|
|
60
|
-
|[\u{2CEB0}-\u{2EBEF}]
|
|
61
|
-
`.replace(/\s+/g,""),"u");break;case"mime-image":t=/^image\//;break;case"mime-video":t=/^video\//;break;case"mime-audio":t=/^audio\//;break;case"mime-document-word":t=/^application\/(?:vnd\.openxmlformats-officedocument\.wordprocessingml\.document|msword|vnd\.ms-word\.document\.macroenabled\.12|vnd\.openxmlformats-officedocument\.wordprocessingml\.template|vnd\.ms-word\.template\.macroenabled\.12)$/;break;case"mime-document-excel":t=/^application\/(?:vnd\.openxmlformats-officedocument\.spreadsheetml\.sheet|vnd\.ms-excel|vnd\.ms-excel\.sheet\.macroenabled\.12|vnd\.openxmlformats-officedocument\.spreadsheetml\.template|vnd\.ms-excel\.template\.macroenabled\.12)$/;break;case"mime-document-ppt":t=/^application\/(?:vnd\.ms-powerpoint|vnd\.openxmlformats-officedocument\.presentationml\.presentation|vnd\.ms-powerpoint\.presentation\.macroenabled\.12|vnd\.openxmlformats-officedocument\.presentationml\.template|vnd\.ms-powerpoint\.template\.macroenabled\.12)$/;break;case"mime-document-json":t=/^application\/json$/;break;case"mime-document-xml":t=/^(?:application|text)\/(?:xml|xhtml\+xml)$/;break}return t};function nF(e){const t={matchIndex:-1,fullMatch:null,groupMatchs:[]};if(e){t.matchIndex=typeof e.index=="number"?e.index:-1;for(let r=0,n=e.length;r<n;r++)r==0?t.fullMatch=e[r]:t.groupMatchs.push(e[r])}return t}const pS=(e,t)=>{typeof e=="string"&&(e=rF(e)||new RegExp(e));const r=[],n=t.matchAll(e);for(const i of n)r.push(nF(i));return r};function iF(e){const t=typeof e;return t!=="object"?t:Object.prototype.toString.call(e).replace(/^\[object (\S+)\]$/,"$1").toLowerCase()}function oF(e){return iF(e)==="object"}function mS(e,t=new WeakMap){if(e==null)return e;if(e.constructor===Date)return new Date(e);if(e.constructor===RegExp)return new RegExp(e);if(typeof e!="object")return e;if(t.has(e))return t.get(e);const r=Object.getOwnPropertyDescriptors(e),n=Object.create(Object.getPrototypeOf(e),r);t.set(e,n);for(const i of Reflect.ownKeys(e))n[i]=oF(e[i])?mS(e[i],t):e[i];return n}function gS(e,t=12){return+e.toPrecision(t)}function vS(e,t){return function(){return e.apply(t,arguments)}}const{toString:sF}=Object.prototype,{getPrototypeOf:tg}=Object,kd=(e=>t=>{const r=sF.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Fi=e=>(e=e.toLowerCase(),t=>kd(t)===e),Pd=e=>t=>typeof t===e,{isArray:Ka}=Array,vc=Pd("undefined");function aF(e){return e!==null&&!vc(e)&&e.constructor!==null&&!vc(e.constructor)&&Qn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const yS=Fi("ArrayBuffer");function lF(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&yS(e.buffer),t}const cF=Pd("string"),Qn=Pd("function"),_S=Pd("number"),Td=e=>e!==null&&typeof e=="object",uF=e=>e===!0||e===!1,Od=e=>{if(kd(e)!=="object")return!1;const t=tg(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},hF=Fi("Date"),dF=Fi("File"),fF=Fi("Blob"),pF=Fi("FileList"),mF=e=>Td(e)&&Qn(e.pipe),gF=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Qn(e.append)&&((t=kd(e))==="formdata"||t==="object"&&Qn(e.toString)&&e.toString()==="[object FormData]"))},vF=Fi("URLSearchParams"),yF=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function yc(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Ka(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let a;for(n=0;n<s;n++)a=o[n],t.call(null,e[a],a,e)}}function bS(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,i;for(;n-- >0;)if(i=r[n],t===i.toLowerCase())return i;return null}const wS=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),xS=e=>!vc(e)&&e!==wS;function eg(){const{caseless:e}=xS(this)&&this||{},t={},r=(n,i)=>{const o=e&&bS(t,i)||i;Od(t[o])&&Od(n)?t[o]=eg(t[o],n):Od(n)?t[o]=eg({},n):Ka(n)?t[o]=n.slice():t[o]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&yc(arguments[n],r);return t}const _F=(e,t,r,{allOwnKeys:n}={})=>(yc(t,(i,o)=>{r&&Qn(i)?e[o]=vS(i,r):e[o]=i},{allOwnKeys:n}),e),bF=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),wF=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},xF=(e,t,r,n)=>{let i,o,s;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!n||n(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=r!==!1&&tg(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},SF=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},$F=e=>{if(!e)return null;if(Ka(e))return e;let t=e.length;if(!_S(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},EF=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&tg(Uint8Array)),CF=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const i=n.value;t.call(e,i[0],i[1])}},kF=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},PF=Fi("HTMLFormElement"),TF=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),SS=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),OF=Fi("RegExp"),$S=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};yc(r,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(n[o]=s||i)}),Object.defineProperties(e,n)},NF=e=>{$S(e,(t,r)=>{if(Qn(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Qn(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},AF=(e,t)=>{const r={},n=i=>{i.forEach(o=>{r[o]=!0})};return Ka(e)?n(e):n(String(e).split(t)),r},DF=()=>{},RF=(e,t)=>(e=+e,Number.isFinite(e)?e:t),rg="abcdefghijklmnopqrstuvwxyz",ES="0123456789",CS={DIGIT:ES,ALPHA:rg,ALPHA_DIGIT:rg+rg.toUpperCase()+ES},IF=(e=16,t=CS.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function jF(e){return!!(e&&Qn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const FF=e=>{const t=new Array(10),r=(n,i)=>{if(Td(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const o=Ka(n)?[]:{};return yc(n,(s,a)=>{const c=r(s,i+1);!vc(c)&&(o[a]=c)}),t[i]=void 0,o}}return n};return r(e,0)},MF=Fi("AsyncFunction"),LF=e=>e&&(Td(e)||Qn(e))&&Qn(e.then)&&Qn(e.catch),Pt={isArray:Ka,isArrayBuffer:yS,isBuffer:aF,isFormData:gF,isArrayBufferView:lF,isString:cF,isNumber:_S,isBoolean:uF,isObject:Td,isPlainObject:Od,isUndefined:vc,isDate:hF,isFile:dF,isBlob:fF,isRegExp:OF,isFunction:Qn,isStream:mF,isURLSearchParams:vF,isTypedArray:EF,isFileList:pF,forEach:yc,merge:eg,extend:_F,trim:yF,stripBOM:bF,inherits:wF,toFlatObject:xF,kindOf:kd,kindOfTest:Fi,endsWith:SF,toArray:$F,forEachEntry:CF,matchAll:kF,isHTMLForm:PF,hasOwnProperty:SS,hasOwnProp:SS,reduceDescriptors:$S,freezeMethods:NF,toObjectSet:AF,toCamelCase:TF,noop:DF,toFiniteNumber:RF,findKey:bS,global:wS,isContextDefined:xS,ALPHABET:CS,generateString:IF,isSpecCompliantForm:jF,toJSONObject:FF,isAsyncFn:MF,isThenable:LF};function Ve(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i)}Pt.inherits(Ve,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Pt.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const kS=Ve.prototype,PS={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{PS[e]={value:e}}),Object.defineProperties(Ve,PS),Object.defineProperty(kS,"isAxiosError",{value:!0}),Ve.from=(e,t,r,n,i,o)=>{const s=Object.create(kS);return Pt.toFlatObject(e,s,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),Ve.call(s,e.message,t,r,n,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const VF=null;function ng(e){return Pt.isPlainObject(e)||Pt.isArray(e)}function TS(e){return Pt.endsWith(e,"[]")?e.slice(0,-2):e}function OS(e,t,r){return e?e.concat(t).map(function(n,i){return n=TS(n),!r&&i?"["+n+"]":n}).join(r?".":""):t}function UF(e){return Pt.isArray(e)&&!e.some(ng)}const zF=Pt.toFlatObject(Pt,{},null,function(e){return/^is[A-Z]/.test(e)});function Nd(e,t,r){if(!Pt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=Pt.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,p){return!Pt.isUndefined(p[d])});const n=r.metaTokens,i=r.visitor||l,o=r.dots,s=r.indexes,a=(r.Blob||typeof Blob<"u"&&Blob)&&Pt.isSpecCompliantForm(t);if(!Pt.isFunction(i))throw new TypeError("visitor must be a function");function c(d){if(d===null)return"";if(Pt.isDate(d))return d.toISOString();if(!a&&Pt.isBlob(d))throw new Ve("Blob is not supported. Use a Buffer instead.");return Pt.isArrayBuffer(d)||Pt.isTypedArray(d)?a&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function l(d,p,g){let v=d;if(d&&!g&&typeof d=="object"){if(Pt.endsWith(p,"{}"))p=n?p:p.slice(0,-2),d=JSON.stringify(d);else if(Pt.isArray(d)&&UF(d)||(Pt.isFileList(d)||Pt.endsWith(p,"[]"))&&(v=Pt.toArray(d)))return p=TS(p),v.forEach(function(b,y){!(Pt.isUndefined(b)||b===null)&&t.append(s===!0?OS([p],y,o):s===null?p:p+"[]",c(b))}),!1}return ng(d)?!0:(t.append(OS(g,p,o),c(d)),!1)}const u=[],h=Object.assign(zF,{defaultVisitor:l,convertValue:c,isVisitable:ng});function f(d,p){if(!Pt.isUndefined(d)){if(u.indexOf(d)!==-1)throw Error("Circular reference detected in "+p.join("."));u.push(d),Pt.forEach(d,function(g,v){(!(Pt.isUndefined(g)||g===null)&&i.call(t,g,Pt.isString(v)?v.trim():v,p,h))===!0&&f(g,p?p.concat(v):[v])}),u.pop()}}if(!Pt.isObject(e))throw new TypeError("data must be an object");return f(e),t}function NS(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ig(e,t){this._pairs=[],e&&Nd(e,this,t)}const AS=ig.prototype;AS.append=function(e,t){this._pairs.push([e,t])},AS.toString=function(e){const t=e?function(r){return e.call(this,r,NS)}:NS;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function GF(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function DS(e,t,r){if(!t)return e;const n=r&&r.encode||GF,i=r&&r.serialize;let o;if(i?o=i(t,r):o=Pt.isURLSearchParams(t)?t.toString():new ig(t,r).toString(n),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class BF{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Pt.forEach(this.handlers,function(r){r!==null&&t(r)})}}const RS=BF,IS={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},HF=typeof URLSearchParams<"u"?URLSearchParams:ig,qF=typeof FormData<"u"?FormData:null,KF=typeof Blob<"u"?Blob:null,YF=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),XF=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Mi={isBrowser:!0,classes:{URLSearchParams:HF,FormData:qF,Blob:KF},isStandardBrowserEnv:YF,isStandardBrowserWebWorkerEnv:XF,protocols:["http","https","file","blob","url","data"]};function JF(e,t){return Nd(e,new Mi.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,o){return Mi.isNode&&Pt.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function WF(e){return Pt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function QF(e){const t={},r=Object.keys(e);let n;const i=r.length;let o;for(n=0;n<i;n++)o=r[n],t[o]=e[o];return t}function jS(e){function t(r,n,i,o){let s=r[o++];const a=Number.isFinite(+s),c=o>=r.length;return s=!s&&Pt.isArray(i)?i.length:s,c?(Pt.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!a):((!i[s]||!Pt.isObject(i[s]))&&(i[s]=[]),t(r,n,i[s],o)&&Pt.isArray(i[s])&&(i[s]=QF(i[s])),!a)}if(Pt.isFormData(e)&&Pt.isFunction(e.entries)){const r={};return Pt.forEachEntry(e,(n,i)=>{t(WF(n),i,r,0)}),r}return null}function ZF(e,t,r){if(Pt.isString(e))try{return(t||JSON.parse)(e),Pt.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const og={transitional:IS,adapter:["xhr","http"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=Pt.isObject(e);if(i&&Pt.isHTMLForm(e)&&(e=new FormData(e)),Pt.isFormData(e))return n&&n?JSON.stringify(jS(e)):e;if(Pt.isArrayBuffer(e)||Pt.isBuffer(e)||Pt.isStream(e)||Pt.isFile(e)||Pt.isBlob(e))return e;if(Pt.isArrayBufferView(e))return e.buffer;if(Pt.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return JF(e,this.formSerializer).toString();if((o=Pt.isFileList(e))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Nd(o?{"files[]":e}:e,s&&new s,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),ZF(e)):e}],transformResponse:[function(e){const t=this.transitional||og.transitional,r=t&&t.forcedJSONParsing,n=this.responseType==="json";if(e&&Pt.isString(e)&&(r&&!this.responseType||n)){const i=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(o){if(i)throw o.name==="SyntaxError"?Ve.from(o,Ve.ERR_BAD_RESPONSE,this,null,this.response):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Mi.classes.FormData,Blob:Mi.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Pt.forEach(["delete","get","head","post","put","patch"],e=>{og.headers[e]={}});const sg=og,tM=Pt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),eM=e=>{const t={};let r,n,i;return e&&e.split(`
|
|
62
|
-
`).forEach(function(o){i=o.indexOf(":"),r=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!r||t[r]&&tM[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},FS=Symbol("internals");function _c(e){return e&&String(e).trim().toLowerCase()}function Ad(e){return e===!1||e==null?e:Pt.isArray(e)?e.map(Ad):String(e)}function rM(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const nM=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ag(e,t,r,n,i){if(Pt.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!Pt.isString(t)){if(Pt.isString(n))return t.indexOf(n)!==-1;if(Pt.isRegExp(n))return n.test(t)}}function iM(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function oM(e,t){const r=Pt.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,o,s){return this[n].call(this,t,i,o,s)},configurable:!0})})}class Dd{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function o(a,c,l){const u=_c(c);if(!u)throw new Error("header name must be a non-empty string");const h=Pt.findKey(i,u);(!h||i[h]===void 0||l===!0||l===void 0&&i[h]!==!1)&&(i[h||c]=Ad(a))}const s=(a,c)=>Pt.forEach(a,(l,u)=>o(l,u,c));return Pt.isPlainObject(t)||t instanceof this.constructor?s(t,r):Pt.isString(t)&&(t=t.trim())&&!nM(t)?s(eM(t),r):t!=null&&o(r,t,n),this}get(t,r){if(t=_c(t),t){const n=Pt.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return rM(i);if(Pt.isFunction(r))return r.call(this,i,n);if(Pt.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=_c(t),t){const n=Pt.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||ag(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function o(s){if(s=_c(s),s){const a=Pt.findKey(n,s);a&&(!r||ag(n,n[a],a,r))&&(delete n[a],i=!0)}}return Pt.isArray(t)?t.forEach(o):o(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const o=r[n];(!t||ag(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const r=this,n={};return Pt.forEach(this,(i,o)=>{const s=Pt.findKey(n,o);if(s){r[s]=Ad(i),delete r[o];return}const a=t?iM(o):String(o).trim();a!==o&&delete r[o],r[a]=Ad(i),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return Pt.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&Pt.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
63
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(i=>n.set(i)),n}static accessor(t){const r=(this[FS]=this[FS]={accessors:{}}).accessors,n=this.prototype;function i(o){const s=_c(o);r[s]||(oM(n,o),r[s]=!0)}return Pt.isArray(t)?t.forEach(i):i(t),this}}Dd.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Pt.reduceDescriptors(Dd.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),Pt.freezeMethods(Dd);const go=Dd;function lg(e,t){const r=this||sg,n=t||r,i=go.from(n.headers);let o=n.data;return Pt.forEach(e,function(s){o=s.call(r,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function MS(e){return!!(e&&e.__CANCEL__)}function bc(e,t,r){Ve.call(this,e??"canceled",Ve.ERR_CANCELED,t,r),this.name="CanceledError"}Pt.inherits(bc,Ve,{__CANCEL__:!0});function sM(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Ve("Request failed with status code "+r.status,[Ve.ERR_BAD_REQUEST,Ve.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const aM=Mi.isStandardBrowserEnv?function(){return{write:function(e,t,r,n,i,o){const s=[];s.push(e+"="+encodeURIComponent(t)),Pt.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),Pt.isString(n)&&s.push("path="+n),Pt.isString(i)&&s.push("domain="+i),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function lM(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function cM(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function LS(e,t){return e&&!lM(t)?cM(e,t):t}const uM=Mi.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function n(i){let o=i;return e&&(t.setAttribute("href",o),o=t.href),t.setAttribute("href",o),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return r=n(window.location.href),function(i){const o=Pt.isString(i)?n(i):i;return o.protocol===r.protocol&&o.host===r.host}}():function(){return function(){return!0}}();function hM(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function dM(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(a){const c=Date.now(),l=n[o];s||(s=c),r[i]=a,n[i]=c;let u=o,h=0;for(;u!==i;)h+=r[u++],u=u%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-s<t)return;const f=l&&c-l;return f?Math.round(h*1e3/f):void 0}}function VS(e,t){let r=0;const n=dM(50,250);return i=>{const o=i.loaded,s=i.lengthComputable?i.total:void 0,a=o-r,c=n(a),l=o<=s;r=o;const u={loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&l?(s-o)/c:void 0,event:i};u[t?"download":"upload"]=!0,e(u)}}const fM=typeof XMLHttpRequest<"u",pM=fM&&function(e){return new Promise(function(t,r){let n=e.data;const i=go.from(e.headers).normalize(),o=e.responseType;let s;function a(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}let c;Pt.isFormData(n)&&(Mi.isStandardBrowserEnv||Mi.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.getContentType(/^\s*multipart\/form-data/)?Pt.isString(c=i.getContentType())&&i.setContentType(c.replace(/^\s*(multipart\/form-data);+/,"$1")):i.setContentType("multipart/form-data"));let l=new XMLHttpRequest;if(e.auth){const d=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(d+":"+p))}const u=LS(e.baseURL,e.url);l.open(e.method.toUpperCase(),DS(u,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function h(){if(!l)return;const d=go.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),p={data:!o||o==="text"||o==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:d,config:e,request:l};sM(function(g){t(g),a()},function(g){r(g),a()},p),l=null}if("onloadend"in l?l.onloadend=h:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(h)},l.onabort=function(){l&&(r(new Ve("Request aborted",Ve.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new Ve("Network Error",Ve.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let d=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const p=e.transitional||IS;e.timeoutErrorMessage&&(d=e.timeoutErrorMessage),r(new Ve(d,p.clarifyTimeoutError?Ve.ETIMEDOUT:Ve.ECONNABORTED,e,l)),l=null},Mi.isStandardBrowserEnv){const d=(e.withCredentials||uM(u))&&e.xsrfCookieName&&aM.read(e.xsrfCookieName);d&&i.set(e.xsrfHeaderName,d)}n===void 0&&i.setContentType(null),"setRequestHeader"in l&&Pt.forEach(i.toJSON(),function(d,p){l.setRequestHeader(p,d)}),Pt.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),o&&o!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",VS(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",VS(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=d=>{l&&(r(!d||d.type?new bc(null,e,l):d),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const f=hM(u);if(f&&Mi.protocols.indexOf(f)===-1){r(new Ve("Unsupported protocol "+f+":",Ve.ERR_BAD_REQUEST,e));return}l.send(n||null)})},cg={http:VF,xhr:pM};Pt.forEach(cg,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const US=e=>`- ${e}`,mM=e=>Pt.isFunction(e)||e===null||e===!1,zS={getAdapter:e=>{e=Pt.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let o=0;o<t;o++){r=e[o];let s;if(n=r,!mM(r)&&(n=cg[(s=String(r)).toLowerCase()],n===void 0))throw new Ve(`Unknown adapter '${s}'`);if(n)break;i[s||"#"+o]=n}if(!n){const o=Object.entries(i).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since :
|
|
64
|
-
`+o.map(US).join(`
|
|
65
|
-
`):" "+US(o[0]):"as no adapter specified";throw new Ve("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:cg};function ug(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new bc(null,e)}function GS(e){return ug(e),e.headers=go.from(e.headers),e.data=lg.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),zS.getAdapter(e.adapter||sg.adapter)(e).then(function(t){return ug(e),t.data=lg.call(e,e.transformResponse,t),t.headers=go.from(t.headers),t},function(t){return MS(t)||(ug(e),t&&t.response&&(t.response.data=lg.call(e,e.transformResponse,t.response),t.response.headers=go.from(t.response.headers))),Promise.reject(t)})}const BS=e=>e instanceof go?e.toJSON():e;function Ya(e,t){t=t||{};const r={};function n(l,u,h){return Pt.isPlainObject(l)&&Pt.isPlainObject(u)?Pt.merge.call({caseless:h},l,u):Pt.isPlainObject(u)?Pt.merge({},u):Pt.isArray(u)?u.slice():u}function i(l,u,h){if(Pt.isUndefined(u)){if(!Pt.isUndefined(l))return n(void 0,l,h)}else return n(l,u,h)}function o(l,u){if(!Pt.isUndefined(u))return n(void 0,u)}function s(l,u){if(Pt.isUndefined(u)){if(!Pt.isUndefined(l))return n(void 0,l)}else return n(void 0,u)}function a(l,u,h){if(h in t)return n(l,u);if(h in e)return n(void 0,l)}const c={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(l,u)=>i(BS(l),BS(u),!0)};return Pt.forEach(Object.keys(Object.assign({},e,t)),function(l){const u=c[l]||i,h=u(e[l],t[l],l);Pt.isUndefined(h)&&u!==a||(r[l]=h)}),r}const HS="1.5.1",hg={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{hg[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const qS={};hg.transitional=function(e,t,r){function n(i,o){return"[Axios v"+HS+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,s)=>{if(e===!1)throw new Ve(n(o," has been removed"+(t?" in "+t:"")),Ve.ERR_DEPRECATED);return t&&!qS[o]&&(qS[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,o,s):!0}};function gM(e,t,r){if(typeof e!="object")throw new Ve("options must be an object",Ve.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const o=n[i],s=t[o];if(s){const a=e[o],c=a===void 0||s(a,o,e);if(c!==!0)throw new Ve("option "+o+" must be "+c,Ve.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Ve("Unknown option "+o,Ve.ERR_BAD_OPTION)}}const dg={assertOptions:gM,validators:hg},ns=dg.validators;class Rd{constructor(t){this.defaults=t,this.interceptors={request:new RS,response:new RS}}request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Ya(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:o}=r;n!==void 0&&dg.assertOptions(n,{silentJSONParsing:ns.transitional(ns.boolean),forcedJSONParsing:ns.transitional(ns.boolean),clarifyTimeoutError:ns.transitional(ns.boolean)},!1),i!=null&&(Pt.isFunction(i)?r.paramsSerializer={serialize:i}:dg.assertOptions(i,{encode:ns.function,serialize:ns.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=o&&Pt.merge(o.common,o[r.method]);o&&Pt.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),r.headers=go.concat(s,o);const a=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(r)===!1||(c=c&&p.synchronous,a.unshift(p.fulfilled,p.rejected))});const l=[];this.interceptors.response.forEach(function(p){l.push(p.fulfilled,p.rejected)});let u,h=0,f;if(!c){const p=[GS.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,l),f=p.length,u=Promise.resolve(r);h<f;)u=u.then(p[h++],p[h++]);return u}f=a.length;let d=r;for(h=0;h<f;){const p=a[h++],g=a[h++];try{d=p(d)}catch(v){g.call(this,v);break}}try{u=GS.call(this,d)}catch(p){return Promise.reject(p)}for(h=0,f=l.length;h<f;)u=u.then(l[h++],l[h++]);return u}getUri(t){t=Ya(this.defaults,t);const r=LS(t.baseURL,t.url);return DS(r,t.params,t.paramsSerializer)}}Pt.forEach(["delete","get","head","options"],function(e){Rd.prototype[e]=function(t,r){return this.request(Ya(r||{},{method:e,url:t,data:(r||{}).data}))}}),Pt.forEach(["post","put","patch"],function(e){function t(r){return function(n,i,o){return this.request(Ya(o||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}Rd.prototype[e]=t(),Rd.prototype[e+"Form"]=t(!0)});const Id=Rd;class fg{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(i=>{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](i);n._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(a=>{n.subscribe(a),o=a}).then(i);return s.cancel=function(){n.unsubscribe(o)},s},t(function(i,o,s){n.reason||(n.reason=new bc(i,o,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new fg(function(r){t=r}),cancel:t}}}const vM=fg;function yM(e){return function(t){return e.apply(null,t)}}function _M(e){return Pt.isObject(e)&&e.isAxiosError===!0}const pg={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(pg).forEach(([e,t])=>{pg[t]=e});const bM=pg;function KS(e){const t=new Id(e),r=vS(Id.prototype.request,t);return Pt.extend(r,Id.prototype,t,{allOwnKeys:!0}),Pt.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return KS(Ya(e,n))},r}const Ur=KS(sg);Ur.Axios=Id,Ur.CanceledError=bc,Ur.CancelToken=vM,Ur.isCancel=MS,Ur.VERSION=HS,Ur.toFormData=Nd,Ur.AxiosError=Ve,Ur.Cancel=Ur.CanceledError,Ur.all=function(e){return Promise.all(e)},Ur.spread=yM,Ur.isAxiosError=_M,Ur.mergeConfig=Ya,Ur.AxiosHeaders=go,Ur.formToJSON=e=>jS(Pt.isHTMLForm(e)?new FormData(e):e),Ur.getAdapter=zS.getAdapter,Ur.HttpStatusCode=bM,Ur.default=Ur;var mg=function(e,t){return mg=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},mg(e,t)};function is(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");mg(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function gg(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function wc(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o}function xc(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function vo(e){return typeof e=="function"}function vg(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var yg=vg(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
|
|
66
|
-
`+t.map(function(r,n){return n+1+") "+r.toString()}).join(`
|
|
67
|
-
`):"",this.name="UnsubscriptionError",this.errors=t}});function jd(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Sc=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,i,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=gg(s),c=a.next();!c.done;c=a.next()){var l=c.value;l.remove(this)}}catch(g){t={error:g}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else s.remove(this);var u=this.initialTeardown;if(vo(u))try{u()}catch(g){o=g instanceof yg?g.errors:[g]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var f=gg(h),d=f.next();!d.done;d=f.next()){var p=d.value;try{JS(p)}catch(g){o=o??[],g instanceof yg?o=xc(xc([],wc(o)),wc(g.errors)):o.push(g)}}}catch(g){n={error:g}}finally{try{d&&!d.done&&(i=f.return)&&i.call(f)}finally{if(n)throw n.error}}}if(o)throw new yg(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)JS(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&jd(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&jd(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),YS=Sc.EMPTY;function XS(e){return e instanceof Sc||e&&"closed"in e&&vo(e.remove)&&vo(e.add)&&vo(e.unsubscribe)}function JS(e){vo(e)?e():e.unsubscribe()}var WS={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},wM={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,xc([e,t],wc(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function xM(e){wM.setTimeout(function(){throw e})}function QS(){}function Fd(e){e()}var _g=function(e){is(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,XS(r)&&r.add(n)):n.destination=CM,n}return t.create=function(r,n,i){return new wg(r,n,i)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Sc),SM=Function.prototype.bind;function bg(e,t){return SM.call(e,t)}var $M=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){Md(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){Md(n)}else Md(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Md(r)}},e}(),wg=function(e){is(t,e);function t(r,n,i){var o=e.call(this)||this,s;if(vo(r)||!r)s={next:r??void 0,error:n??void 0,complete:i??void 0};else{var a;o&&WS.useDeprecatedNextContext?(a=Object.create(r),a.unsubscribe=function(){return o.unsubscribe()},s={next:r.next&&bg(r.next,a),error:r.error&&bg(r.error,a),complete:r.complete&&bg(r.complete,a)}):s=r}return o.destination=new $M(s),o}return t}(_g);function Md(e){xM(e)}function EM(e){throw e}var CM={closed:!0,next:QS,error:EM,complete:QS},kM=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function PM(e){return e}function TM(e){return e.length===0?PM:e.length===1?e[0]:function(t){return e.reduce(function(r,n){return n(r)},t)}}var ZS=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var i=this,o=NM(t)?t:new wg(t,r,n);return Fd(function(){var s=i,a=s.operator,c=s.source;o.add(a?a.call(o,c):c?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=t$(r),new r(function(i,o){var s=new wg({next:function(a){try{t(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:i});n.subscribe(s)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[kM]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return TM(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=t$(t),new t(function(n,i){var o;r.subscribe(function(s){return o=s},function(s){return i(s)},function(){return n(o)})})},e.create=function(t){return new e(t)},e}();function t$(e){var t;return(t=e??WS.Promise)!==null&&t!==void 0?t:Promise}function OM(e){return e&&vo(e.next)&&vo(e.error)&&vo(e.complete)}function NM(e){return e&&e instanceof _g||OM(e)&&XS(e)}(function(e){is(t,e);function t(r,n,i,o,s,a){var c=e.call(this,r)||this;return c.onFinalize=s,c.shouldUnsubscribe=a,c._next=n?function(l){try{n(l)}catch(u){r.error(u)}}:e.prototype._next,c._error=o?function(l){try{o(l)}catch(u){r.error(u)}finally{this.unsubscribe()}}:e.prototype._error,c._complete=i?function(){try{i()}catch(l){r.error(l)}finally{this.unsubscribe()}}:e.prototype._complete,c}return t.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},t})(_g);var AM=vg(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),DM=function(e){is(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new e$(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new AM},t.prototype.next=function(r){var n=this;Fd(function(){var i,o;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var s=gg(n.currentObservers),a=s.next();!a.done;a=s.next()){var c=a.value;c.next(r)}}catch(l){i={error:l}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}})},t.prototype.error=function(r){var n=this;Fd(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var i=n.observers;i.length;)i.shift().error(r)}})},t.prototype.complete=function(){var r=this;Fd(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,i=this,o=i.hasError,s=i.isStopped,a=i.observers;return o||s?YS:(this.currentObservers=null,a.push(r),new Sc(function(){n.currentObservers=null,jd(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,i=n.hasError,o=n.thrownError,s=n.isStopped;i?r.error(o):s&&r.complete()},t.prototype.asObservable=function(){var r=new ZS;return r.source=this,r},t.create=function(r,n){return new e$(r,n)},t}(ZS),e$=function(e){is(t,e);function t(r,n){var i=e.call(this)||this;return i.destination=r,i.source=n,i}return t.prototype.next=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.next)===null||i===void 0||i.call(n,r)},t.prototype.error=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.error)===null||i===void 0||i.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,i;return(i=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&i!==void 0?i:YS},t}(DM),RM={now:function(){return Date.now()},delegate:void 0},IM=function(e){is(t,e);function t(r,n){return e.call(this)||this}return t.prototype.schedule=function(r,n){return this},t}(Sc),xg={setInterval:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=xg.delegate;return i?.setInterval?i.setInterval.apply(i,xc([e,t],wc(r))):setInterval.apply(void 0,xc([e,t],wc(r)))},clearInterval:function(e){return clearInterval(e)},delegate:void 0},jM=function(e){is(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.scheduler=r,i.work=n,i.pending=!1,i}return t.prototype.schedule=function(r,n){var i;if(n===void 0&&(n=0),this.closed)return this;this.state=r;var o=this.id,s=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(s,o,n)),this.pending=!0,this.delay=n,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(s,this.id,n),this},t.prototype.requestAsyncId=function(r,n,i){return i===void 0&&(i=0),xg.setInterval(r.flush.bind(r,this),i)},t.prototype.recycleAsyncId=function(r,n,i){if(i===void 0&&(i=0),i!=null&&this.delay===i&&this.pending===!1)return n;n!=null&&xg.clearInterval(n)},t.prototype.execute=function(r,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(r,n);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(r,n){var i=!1,o;try{this.work(r)}catch(s){i=!0,o=s||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o},t.prototype.unsubscribe=function(){if(!this.closed){var r=this,n=r.id,i=r.scheduler,o=i.actions;this.work=this.state=this.scheduler=null,this.pending=!1,jd(o,this),n!=null&&(this.id=this.recycleAsyncId(i,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(IM),r$=function(){function e(t,r){r===void 0&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(t,r,n){return r===void 0&&(r=0),new this.schedulerActionCtor(this,t).schedule(n,r)},e.now=RM.now,e}(),FM=function(e){is(t,e);function t(r,n){n===void 0&&(n=r$.now);var i=e.call(this,r,n)||this;return i.actions=[],i._active=!1,i}return t.prototype.flush=function(r){var n=this.actions;if(this._active){n.push(r);return}var i;this._active=!0;do if(i=r.execute(r.state,r.delay))break;while(r=n.shift());if(this._active=!1,i){for(;r=n.shift();)r.unsubscribe();throw i}},t}(r$);new FM(jM);function MM(e){switch(e.responseType){case"json":{if("response"in e)return e.response;var t=e;return JSON.parse(t.responseText)}case"document":return e.responseXML;case"text":default:{if("response"in e)return e.response;var t=e;return t.responseText}}}var n$=vg(function(e){return function(t,r,n){this.message=t,this.name="AjaxError",this.xhr=r,this.request=n,this.status=r.status,this.responseType=r.responseType;var i;try{i=MM(r)}catch{i=r.responseText}this.response=i}});(function(){function e(t,r){return n$.call(this,"ajax timeout",t,r),this.name="AjaxTimeoutError",this}return e.prototype=Object.create(n$.prototype),e})();var LM=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function kn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Jt(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var Sg={exports:{}},Xa=typeof Reflect=="object"?Reflect:null,i$=Xa&&typeof Xa.apply=="function"?Xa.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)},Ld;Xa&&typeof Xa.ownKeys=="function"?Ld=Xa.ownKeys:Object.getOwnPropertySymbols?Ld=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Ld=function(e){return Object.getOwnPropertyNames(e)};function VM(e){console&&console.warn&&console.warn(e)}var o$=Number.isNaN||function(e){return e!==e};function er(){er.init.call(this)}Sg.exports=er,Sg.exports.once=BM,er.EventEmitter=er,er.prototype._events=void 0,er.prototype._eventsCount=0,er.prototype._maxListeners=void 0;var s$=10;function Vd(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(er,"defaultMaxListeners",{enumerable:!0,get:function(){return s$},set:function(e){if(typeof e!="number"||e<0||o$(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s$=e}}),er.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},er.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||o$(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function a$(e){return e._maxListeners===void 0?er.defaultMaxListeners:e._maxListeners}er.prototype.getMaxListeners=function(){return a$(this)},er.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n=e==="error",i=this._events;if(i!==void 0)n=n&&i.error===void 0;else if(!n)return!1;if(n){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var a=i[e];if(a===void 0)return!1;if(typeof a=="function")i$(a,this,t);else for(var c=a.length,l=d$(a,c),r=0;r<c;++r)i$(l[r],this,t);return!0};function l$(e,t,r,n){var i,o,s;if(Vd(r),o=e._events,o===void 0?(o=e._events=Object.create(null),e._eventsCount=0):(o.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),s=o[t]),s===void 0)s=o[t]=r,++e._eventsCount;else if(typeof s=="function"?s=o[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),i=a$(e),i>0&&s.length>i&&!s.warned){s.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=e,a.type=t,a.count=s.length,VM(a)}return e}er.prototype.addListener=function(e,t){return l$(this,e,t,!1)},er.prototype.on=er.prototype.addListener,er.prototype.prependListener=function(e,t){return l$(this,e,t,!0)};function UM(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function c$(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=UM.bind(n);return i.listener=r,n.wrapFn=i,i}er.prototype.once=function(e,t){return Vd(t),this.on(e,c$(this,e,t)),this},er.prototype.prependOnceListener=function(e,t){return Vd(t),this.prependListener(e,c$(this,e,t)),this},er.prototype.removeListener=function(e,t){var r,n,i,o,s;if(Vd(t),n=this._events,n===void 0)return this;if(r=n[e],r===void 0)return this;if(r===t||r.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if(typeof r!="function"){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){s=r[o].listener,i=o;break}if(i<0)return this;i===0?r.shift():zM(r,i),r.length===1&&(n[e]=r[0]),n.removeListener!==void 0&&this.emit("removeListener",e,s||t)}return this},er.prototype.off=er.prototype.removeListener,er.prototype.removeAllListeners=function(e){var t,r,n;if(r=this._events,r===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete r[e]),this;if(arguments.length===0){var i=Object.keys(r),o;for(n=0;n<i.length;++n)o=i[n],o!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(t=r[e],typeof t=="function")this.removeListener(e,t);else if(t!==void 0)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this};function u$(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?GM(i):d$(i,i.length)}er.prototype.listeners=function(e){return u$(this,e,!0)},er.prototype.rawListeners=function(e){return u$(this,e,!1)},er.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):h$.call(e,t)},er.prototype.listenerCount=h$;function h$(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}er.prototype.eventNames=function(){return this._eventsCount>0?Ld(this._events):[]};function d$(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function zM(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function GM(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function BM(e,t){return new Promise(function(r,n){function i(s){e.removeListener(t,o),n(s)}function o(){typeof e.removeListener=="function"&&e.removeListener("error",i),r([].slice.call(arguments))}f$(e,t,o,{once:!0}),t!=="error"&&HM(e,i,{once:!0})})}function HM(e,t,r){typeof e.on=="function"&&f$(e,"error",t,r)}function f$(e,t,r,n){if(typeof e.on=="function")n.once?e.once(t,r):e.on(t,r);else if(typeof e.addEventListener=="function")e.addEventListener(t,function i(o){n.once&&e.removeEventListener(t,i),r(o)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}var qM=Sg.exports;class pnt extends qM.EventEmitter{constructor(){super()}on(t,r){return super.on(t,r)}addListener(t,r){return this.on(t,r)}prependListener(t,r){return super.prependListener(t,r)}once(t,r){return super.once(t,r)}prependOnceListener(t,r){return super.prependOnceListener(t,r)}removeListener(t,r){return super.removeListener(t,r)}off(t,r){return super.off(t,r)}removeAllListeners(t){return super.removeAllListeners(t)}emit(t,...r){return super.emit(t,...r)}listeners(t){return super.listeners(t)}rawListeners(t){return super.rawListeners(t)}listenerCount(t){return super.listenerCount(t)}}var p$=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function KM(e,t={}){var r=1,n=1;function i(at){var X=at.match(/\n/g);X&&(r+=X.length);var O=at.lastIndexOf(`
|
|
68
|
-
`);n=~O?at.length-O:n+at.length}function o(){var at={line:r,column:n};return function(X){return X.position=new s(at),p(),X}}function s(at){this.start=at,this.end={line:r,column:n},this.source=t.source}s.prototype.content=e;var a=[];function c(at){var X=new Error(t.source+":"+r+":"+n+": "+at);if(X.reason=at,X.filename=t.source,X.line=r,X.column=n,X.source=e,t.silent)a.push(X);else throw X}function l(){var at=f();return{type:"stylesheet",stylesheet:{source:t.source,rules:at,parsingErrors:a}}}function u(){return d(/^{\s*/)}function h(){return d(/^}/)}function f(){var at,X=[];for(p(),g(X);e.length&&e.charAt(0)!="}"&&(at=_t()||yt());)at!==!1&&(X.push(at),g(X));return X}function d(at){var X=at.exec(e);if(X){var O=X[0];return i(O),e=e.slice(O.length),X}}function p(){d(/^\s*/)}function g(at){var X;for(at=at||[];X=v();)X!==!1&&at.push(X);return at}function v(){var at=o();if(!(e.charAt(0)!="/"||e.charAt(1)!="*")){for(var X=2;e.charAt(X)!=""&&(e.charAt(X)!="*"||e.charAt(X+1)!="/");)++X;if(X+=2,e.charAt(X-1)==="")return c("End of comment missing");var O=e.slice(2,X-2);return n+=2,i(O),e=e.slice(X),n+=2,at({type:"comment",comment:O})}}function b(){var at=d(/^([^{]+)/);if(at)return yo(at[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(X){return X.replace(/,/g,"")}).split(/\s*(?![^(]*\)),\s*/).map(function(X){return X.replace(/\u200C/g,",")})}function y(){var at=o(),X=d(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(X){if(X=yo(X[0]),!d(/^:\s*/))return c("property missing ':'");var O=d(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),C=at({type:"declaration",property:X.replace(p$,""),value:O?yo(O[0]).replace(p$,""):""});return d(/^[;\s]*/),C}}function m(){var at=[];if(!u())return c("missing '{'");g(at);for(var X;X=y();)X!==!1&&(at.push(X),g(at));return h()?at:c("missing '}'")}function x(){for(var at,X=[],O=o();at=d(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)X.push(at[1]),d(/^,\s*/);if(X.length)return O({type:"keyframe",values:X,declarations:m()})}function A(){var at=o(),X=d(/^@([-\w]+)?keyframes\s*/);if(X){var O=X[1];if(X=d(/^([-\w]+)\s*/),!X)return c("@keyframes missing name");var C=X[1];if(!u())return c("@keyframes missing '{'");for(var $,_=g();$=x();)_.push($),_=_.concat(g());return h()?at({type:"keyframes",name:C,vendor:O,keyframes:_}):c("@keyframes missing '}'")}}function E(){var at=o(),X=d(/^@supports *([^{]+)/);if(X){var O=yo(X[1]);if(!u())return c("@supports missing '{'");var C=g().concat(f());return h()?at({type:"supports",supports:O,rules:C}):c("@supports missing '}'")}}function k(){var at=o(),X=d(/^@host\s*/);if(X){if(!u())return c("@host missing '{'");var O=g().concat(f());return h()?at({type:"host",rules:O}):c("@host missing '}'")}}function D(){var at=o(),X=d(/^@media *([^{]+)/);if(X){var O=yo(X[1]);if(!u())return c("@media missing '{'");var C=g().concat(f());return h()?at({type:"media",media:O,rules:C}):c("@media missing '}'")}}function V(){var at=o(),X=d(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(X)return at({type:"custom-media",name:yo(X[1]),media:yo(X[2])})}function U(){var at=o(),X=d(/^@page */);if(X){var O=b()||[];if(!u())return c("@page missing '{'");for(var C=g(),$;$=y();)C.push($),C=C.concat(g());return h()?at({type:"page",selectors:O,declarations:C}):c("@page missing '}'")}}function K(){var at=o(),X=d(/^@([-\w]+)?document *([^{]+)/);if(X){var O=yo(X[1]),C=yo(X[2]);if(!u())return c("@document missing '{'");var $=g().concat(f());return h()?at({type:"document",document:C,vendor:O,rules:$}):c("@document missing '}'")}}function Y(){var at=o(),X=d(/^@font-face\s*/);if(X){if(!u())return c("@font-face missing '{'");for(var O=g(),C;C=y();)O.push(C),O=O.concat(g());return h()?at({type:"font-face",declarations:O}):c("@font-face missing '}'")}}var it=xt("import"),nt=xt("charset"),ft=xt("namespace");function xt(at){var X=new RegExp("^@"+at+"\\s*([^;]+);");return function(){var O=o(),C=d(X);if(C){var $={type:at};return $[at]=C[1].trim(),O($)}}}function _t(){if(e[0]=="@")return A()||D()||V()||E()||it()||nt()||ft()||K()||U()||k()||Y()}function yt(){var at=o(),X=b();return X?(g(),at({type:"rule",selectors:X,declarations:m()})):c("selector missing")}return $g(l())}function yo(e){return e?e.replace(/^\s+|\s+$/g,""):""}function $g(e,t){var r=e&&typeof e.type=="string",n=r?e:t;for(var i in e){var o=e[i];Array.isArray(o)?o.forEach(function(s){$g(s,n)}):o&&typeof o=="object"&&$g(o,n)}return r&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}var Eg={exports:{}},Cg={},_o={},ta={},kg={},Pg={},Tg={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor(y){if(super(),!e.IDENTIFIER.test(y))throw new Error("CodeGen: name must be a valid identifier");this.str=y}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(y){super(),this._items=typeof y=="string"?[y]:y}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const y=this._items[0];return y===""||y==='""'}get str(){var y;return(y=this._str)!==null&&y!==void 0?y:this._str=this._items.reduce((m,x)=>`${m}${x}`,"")}get names(){var y;return(y=this._names)!==null&&y!==void 0?y:this._names=this._items.reduce((m,x)=>(x instanceof r&&(m[x.str]=(m[x.str]||0)+1),m),{})}}e._Code=n,e.nil=new n("");function i(b,...y){const m=[b[0]];let x=0;for(;x<y.length;)a(m,y[x]),m.push(b[++x]);return new n(m)}e._=i;const o=new n("+");function s(b,...y){const m=[d(b[0])];let x=0;for(;x<y.length;)m.push(o),a(m,y[x]),m.push(o,d(b[++x]));return c(m),new n(m)}e.str=s;function a(b,y){y instanceof n?b.push(...y._items):y instanceof r?b.push(y):b.push(h(y))}e.addCodeArg=a;function c(b){let y=1;for(;y<b.length-1;){if(b[y]===o){const m=l(b[y-1],b[y+1]);if(m!==void 0){b.splice(y-1,3,m);continue}b[y++]="+"}y++}}function l(b,y){if(y==='""')return b;if(b==='""')return y;if(typeof b=="string")return y instanceof r||b[b.length-1]!=='"'?void 0:typeof y!="string"?`${b.slice(0,-1)}${y}"`:y[0]==='"'?b.slice(0,-1)+y.slice(1):void 0;if(typeof y=="string"&&y[0]==='"'&&!(b instanceof r))return`"${b}${y.slice(1)}`}function u(b,y){return y.emptyStr()?b:b.emptyStr()?y:s`${b}${y}`}e.strConcat=u;function h(b){return typeof b=="number"||typeof b=="boolean"||b===null?b:d(Array.isArray(b)?b.join(","):b)}function f(b){return new n(d(b))}e.stringify=f;function d(b){return JSON.stringify(b).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=d;function p(b){return typeof b=="string"&&e.IDENTIFIER.test(b)?new n(`.${b}`):i`[${b}]`}e.getProperty=p;function g(b){if(typeof b=="string"&&e.IDENTIFIER.test(b))return new n(`${b}`);throw new Error(`CodeGen: invalid export name: ${b}, use explicit $id name mapping`)}e.getEsmExportName=g;function v(b){return new n(b.toString())}e.regexpCode=v})(Tg);const YM=kn(Tg),XM=Xt({__proto__:null,default:YM},[Tg]),$c=Jt(XM);var Og={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=$c;class r extends Error{constructor(l){super(`CodeGen: "code" for ${l} not defined`),this.value=l.value}}var n;(function(c){c[c.Started=0]="Started",c[c.Completed=1]="Completed"})(n=e.UsedValueState||(e.UsedValueState={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class i{constructor({prefixes:l,parent:u}={}){this._names={},this._prefixes=l,this._parent=u}toName(l){return l instanceof t.Name?l:this.name(l)}name(l){return new t.Name(this._newName(l))}_newName(l){const u=this._names[l]||this._nameGroup(l);return`${l}${u.index++}`}_nameGroup(l){var u,h;if(!((h=(u=this._parent)===null||u===void 0?void 0:u._prefixes)===null||h===void 0)&&h.has(l)||this._prefixes&&!this._prefixes.has(l))throw new Error(`CodeGen: prefix "${l}" is not allowed in this scope`);return this._names[l]={prefix:l,index:0}}}e.Scope=i;class o extends t.Name{constructor(l,u){super(u),this.prefix=l}setValue(l,{property:u,itemIndex:h}){this.value=l,this.scopePath=(0,t._)`.${new t.Name(u)}[${h}]`}}e.ValueScopeName=o;const s=(0,t._)`\n`;class a extends i{constructor(l){super(l),this._values={},this._scope=l.scope,this.opts={...l,_n:l.lines?s:t.nil}}get(){return this._scope}name(l){return new o(l,this._newName(l))}value(l,u){var h;if(u.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const f=this.toName(l),{prefix:d}=f,p=(h=u.key)!==null&&h!==void 0?h:u.ref;let g=this._values[d];if(g){const y=g.get(p);if(y)return y}else g=this._values[d]=new Map;g.set(p,f);const v=this._scope[d]||(this._scope[d]=[]),b=v.length;return v[b]=u.ref,f.setValue(u,{property:d,itemIndex:b}),f}getValue(l,u){const h=this._values[l];if(h)return h.get(u)}scopeRefs(l,u=this._values){return this._reduceValues(u,h=>{if(h.scopePath===void 0)throw new Error(`CodeGen: name "${h}" has no value`);return(0,t._)`${l}${h.scopePath}`})}scopeCode(l=this._values,u,h){return this._reduceValues(l,f=>{if(f.value===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return f.value.code},u,h)}_reduceValues(l,u,h={},f){let d=t.nil;for(const p in l){const g=l[p];if(!g)continue;const v=h[p]=h[p]||new Map;g.forEach(b=>{if(v.has(b))return;v.set(b,n.Started);let y=u(b);if(y){const m=this.opts.es5?e.varKinds.var:e.varKinds.const;d=(0,t._)`${d}${m} ${b} = ${y};${this.opts._n}`}else if(y=f?.(b))d=(0,t._)`${d}${y}${this.opts._n}`;else throw new r(b);v.set(b,n.Completed)})}return d}}e.ValueScope=a})(Og);const JM=kn(Og),WM=Xt({__proto__:null,default:JM},[Og]),m$=Jt(WM);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=$c,r=m$;var n=$c;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var i=m$;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class o{optimizeNodes(){return this}optimizeNames(_,P){return this}}class s extends o{constructor(_,P,M){super(),this.varKind=_,this.name=P,this.rhs=M}render({es5:_,_n:P}){const M=_?r.varKinds.var:this.varKind,I=this.rhs===void 0?"":` = ${this.rhs}`;return`${M} ${this.name}${I};`+P}optimizeNames(_,P){if(_[this.name.str])return this.rhs&&(this.rhs=nt(this.rhs,_,P)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class a extends o{constructor(_,P,M){super(),this.lhs=_,this.rhs=P,this.sideEffects=M}render({_n:_}){return`${this.lhs} = ${this.rhs};`+_}optimizeNames(_,P){if(!(this.lhs instanceof t.Name&&!_[this.lhs.str]&&!this.sideEffects))return this.rhs=nt(this.rhs,_,P),this}get names(){const _=this.lhs instanceof t.Name?{}:{...this.lhs.names};return it(_,this.rhs)}}class c extends a{constructor(_,P,M,I){super(_,M,I),this.op=P}render({_n:_}){return`${this.lhs} ${this.op}= ${this.rhs};`+_}}class l extends o{constructor(_){super(),this.label=_,this.names={}}render({_n:_}){return`${this.label}:`+_}}class u extends o{constructor(_){super(),this.label=_,this.names={}}render({_n:_}){return`break${this.label?` ${this.label}`:""};`+_}}class h extends o{constructor(_){super(),this.error=_}render({_n:_}){return`throw ${this.error};`+_}get names(){return this.error.names}}class f extends o{constructor(_){super(),this.code=_}render({_n:_}){return`${this.code};`+_}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(_,P){return this.code=nt(this.code,_,P),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class d extends o{constructor(_=[]){super(),this.nodes=_}render(_){return this.nodes.reduce((P,M)=>P+M.render(_),"")}optimizeNodes(){const{nodes:_}=this;let P=_.length;for(;P--;){const M=_[P].optimizeNodes();Array.isArray(M)?_.splice(P,1,...M):M?_[P]=M:_.splice(P,1)}return _.length>0?this:void 0}optimizeNames(_,P){const{nodes:M}=this;let I=M.length;for(;I--;){const G=M[I];G.optimizeNames(_,P)||(ft(_,G.names),M.splice(I,1))}return M.length>0?this:void 0}get names(){return this.nodes.reduce((_,P)=>Y(_,P.names),{})}}class p extends d{render(_){return"{"+_._n+super.render(_)+"}"+_._n}}class g extends d{}class v extends p{}v.kind="else";class b extends p{constructor(_,P){super(P),this.condition=_}render(_){let P=`if(${this.condition})`+super.render(_);return this.else&&(P+="else "+this.else.render(_)),P}optimizeNodes(){super.optimizeNodes();const _=this.condition;if(_===!0)return this.nodes;let P=this.else;if(P){const M=P.optimizeNodes();P=this.else=Array.isArray(M)?new v(M):M}if(P)return _===!1?P instanceof b?P:P.nodes:this.nodes.length?this:new b(xt(_),P instanceof b?[P]:P.nodes);if(!(_===!1||!this.nodes.length))return this}optimizeNames(_,P){var M;if(this.else=(M=this.else)===null||M===void 0?void 0:M.optimizeNames(_,P),!!(super.optimizeNames(_,P)||this.else))return this.condition=nt(this.condition,_,P),this}get names(){const _=super.names;return it(_,this.condition),this.else&&Y(_,this.else.names),_}}b.kind="if";class y extends p{}y.kind="for";class m extends y{constructor(_){super(),this.iteration=_}render(_){return`for(${this.iteration})`+super.render(_)}optimizeNames(_,P){if(super.optimizeNames(_,P))return this.iteration=nt(this.iteration,_,P),this}get names(){return Y(super.names,this.iteration.names)}}class x extends y{constructor(_,P,M,I){super(),this.varKind=_,this.name=P,this.from=M,this.to=I}render(_){const P=_.es5?r.varKinds.var:this.varKind,{name:M,from:I,to:G}=this;return`for(${P} ${M}=${I}; ${M}<${G}; ${M}++)`+super.render(_)}get names(){const _=it(super.names,this.from);return it(_,this.to)}}class A extends y{constructor(_,P,M,I){super(),this.loop=_,this.varKind=P,this.name=M,this.iterable=I}render(_){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(_)}optimizeNames(_,P){if(super.optimizeNames(_,P))return this.iterable=nt(this.iterable,_,P),this}get names(){return Y(super.names,this.iterable.names)}}class E extends p{constructor(_,P,M){super(),this.name=_,this.args=P,this.async=M}render(_){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(_)}}E.kind="func";class k extends d{render(_){return"return "+super.render(_)}}k.kind="return";class D extends p{render(_){let P="try"+super.render(_);return this.catch&&(P+=this.catch.render(_)),this.finally&&(P+=this.finally.render(_)),P}optimizeNodes(){var _,P;return super.optimizeNodes(),(_=this.catch)===null||_===void 0||_.optimizeNodes(),(P=this.finally)===null||P===void 0||P.optimizeNodes(),this}optimizeNames(_,P){var M,I;return super.optimizeNames(_,P),(M=this.catch)===null||M===void 0||M.optimizeNames(_,P),(I=this.finally)===null||I===void 0||I.optimizeNames(_,P),this}get names(){const _=super.names;return this.catch&&Y(_,this.catch.names),this.finally&&Y(_,this.finally.names),_}}class V extends p{constructor(_){super(),this.error=_}render(_){return`catch(${this.error})`+super.render(_)}}V.kind="catch";class U extends p{render(_){return"finally"+super.render(_)}}U.kind="finally";class K{constructor(_,P={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...P,_n:P.lines?`
|
|
69
|
-
`:""},this._extScope=_,this._scope=new r.Scope({parent:_}),this._nodes=[new g]}toString(){return this._root.render(this.opts)}name(_){return this._scope.name(_)}scopeName(_){return this._extScope.name(_)}scopeValue(_,P){const M=this._extScope.value(_,P);return(this._values[M.prefix]||(this._values[M.prefix]=new Set)).add(M),M}getScopeValue(_,P){return this._extScope.getValue(_,P)}scopeRefs(_){return this._extScope.scopeRefs(_,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(_,P,M,I){const G=this._scope.toName(P);return M!==void 0&&I&&(this._constants[G.str]=M),this._leafNode(new s(_,G,M)),G}const(_,P,M){return this._def(r.varKinds.const,_,P,M)}let(_,P,M){return this._def(r.varKinds.let,_,P,M)}var(_,P,M){return this._def(r.varKinds.var,_,P,M)}assign(_,P,M){return this._leafNode(new a(_,P,M))}add(_,P){return this._leafNode(new c(_,e.operators.ADD,P))}code(_){return typeof _=="function"?_():_!==t.nil&&this._leafNode(new f(_)),this}object(..._){const P=["{"];for(const[M,I]of _)P.length>1&&P.push(","),P.push(M),(M!==I||this.opts.es5)&&(P.push(":"),(0,t.addCodeArg)(P,I));return P.push("}"),new t._Code(P)}if(_,P,M){if(this._blockNode(new b(_)),P&&M)this.code(P).else().code(M).endIf();else if(P)this.code(P).endIf();else if(M)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(_){return this._elseNode(new b(_))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(b,v)}_for(_,P){return this._blockNode(_),P&&this.code(P).endFor(),this}for(_,P){return this._for(new m(_),P)}forRange(_,P,M,I,G=this.opts.es5?r.varKinds.var:r.varKinds.let){const q=this._scope.toName(_);return this._for(new x(G,q,P,M),()=>I(q))}forOf(_,P,M,I=r.varKinds.const){const G=this._scope.toName(_);if(this.opts.es5){const q=P instanceof t.Name?P:this.var("_arr",P);return this.forRange("_i",0,(0,t._)`${q}.length`,et=>{this.var(G,(0,t._)`${q}[${et}]`),M(G)})}return this._for(new A("of",I,G,P),()=>M(G))}forIn(_,P,M,I=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(_,(0,t._)`Object.keys(${P})`,M);const G=this._scope.toName(_);return this._for(new A("in",I,G,P),()=>M(G))}endFor(){return this._endBlockNode(y)}label(_){return this._leafNode(new l(_))}break(_){return this._leafNode(new u(_))}return(_){const P=new k;if(this._blockNode(P),this.code(_),P.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(k)}try(_,P,M){if(!P&&!M)throw new Error('CodeGen: "try" without "catch" and "finally"');const I=new D;if(this._blockNode(I),this.code(_),P){const G=this.name("e");this._currNode=I.catch=new V(G),P(G)}return M&&(this._currNode=I.finally=new U,this.code(M)),this._endBlockNode(V,U)}throw(_){return this._leafNode(new h(_))}block(_,P){return this._blockStarts.push(this._nodes.length),_&&this.code(_).endBlock(P),this}endBlock(_){const P=this._blockStarts.pop();if(P===void 0)throw new Error("CodeGen: not in self-balancing block");const M=this._nodes.length-P;if(M<0||_!==void 0&&M!==_)throw new Error(`CodeGen: wrong number of nodes: ${M} vs ${_} expected`);return this._nodes.length=P,this}func(_,P=t.nil,M,I){return this._blockNode(new E(_,P,M)),I&&this.code(I).endFunc(),this}endFunc(){return this._endBlockNode(E)}optimize(_=1){for(;_-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(_){return this._currNode.nodes.push(_),this}_blockNode(_){this._currNode.nodes.push(_),this._nodes.push(_)}_endBlockNode(_,P){const M=this._currNode;if(M instanceof _||P&&M instanceof P)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${P?`${_.kind}/${P.kind}`:_.kind}"`)}_elseNode(_){const P=this._currNode;if(!(P instanceof b))throw new Error('CodeGen: "else" without "if"');return this._currNode=P.else=_,this}get _root(){return this._nodes[0]}get _currNode(){const _=this._nodes;return _[_.length-1]}set _currNode(_){const P=this._nodes;P[P.length-1]=_}}e.CodeGen=K;function Y($,_){for(const P in _)$[P]=($[P]||0)+(_[P]||0);return $}function it($,_){return _ instanceof t._CodeOrName?Y($,_.names):$}function nt($,_,P){if($ instanceof t.Name)return M($);if(!I($))return $;return new t._Code($._items.reduce((G,q)=>(q instanceof t.Name&&(q=M(q)),q instanceof t._Code?G.push(...q._items):G.push(q),G),[]));function M(G){const q=P[G.str];return q===void 0||_[G.str]!==1?G:(delete _[G.str],q)}function I(G){return G instanceof t._Code&&G._items.some(q=>q instanceof t.Name&&_[q.str]===1&&P[q.str]!==void 0)}}function ft($,_){for(const P in _)$[P]=($[P]||0)-(_[P]||0)}function xt($){return typeof $=="boolean"||typeof $=="number"||$===null?!$:(0,t._)`!${C($)}`}e.not=xt;const _t=O(e.operators.AND);function yt(...$){return $.reduce(_t)}e.and=yt;const at=O(e.operators.OR);function X(...$){return $.reduce(at)}e.or=X;function O($){return(_,P)=>_===t.nil?P:P===t.nil?_:(0,t._)`${C(_)} ${$} ${C(P)}`}function C($){return $ instanceof t.Name?$:(0,t._)`(${$})`}})(Pg);const QM=kn(Pg),ZM=Xt({__proto__:null,default:QM},[Pg]),ke=Jt(ZM);var Ng={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;const t=ke,r=$c;function n(E){const k={};for(const D of E)k[D]=!0;return k}e.toHash=n;function i(E,k){return typeof k=="boolean"?k:Object.keys(k).length===0?!0:(o(E,k),!s(k,E.self.RULES.all))}e.alwaysValidSchema=i;function o(E,k=E.schema){const{opts:D,self:V}=E;if(!D.strictSchema||typeof k=="boolean")return;const U=V.RULES.keywords;for(const K in k)U[K]||A(E,`unknown keyword: "${K}"`)}e.checkUnknownRules=o;function s(E,k){if(typeof E=="boolean")return!E;for(const D in E)if(k[D])return!0;return!1}e.schemaHasRules=s;function a(E,k){if(typeof E=="boolean")return!E;for(const D in E)if(D!=="$ref"&&k.all[D])return!0;return!1}e.schemaHasRulesButRef=a;function c({topSchemaRef:E,schemaPath:k},D,V,U){if(!U){if(typeof D=="number"||typeof D=="boolean")return D;if(typeof D=="string")return(0,t._)`${D}`}return(0,t._)`${E}${k}${(0,t.getProperty)(V)}`}e.schemaRefOrVal=c;function l(E){return f(decodeURIComponent(E))}e.unescapeFragment=l;function u(E){return encodeURIComponent(h(E))}e.escapeFragment=u;function h(E){return typeof E=="number"?`${E}`:E.replace(/~/g,"~0").replace(/\//g,"~1")}e.escapeJsonPointer=h;function f(E){return E.replace(/~1/g,"/").replace(/~0/g,"~")}e.unescapeJsonPointer=f;function d(E,k){if(Array.isArray(E))for(const D of E)k(D);else k(E)}e.eachItem=d;function p({mergeNames:E,mergeToName:k,mergeValues:D,resultToName:V}){return(U,K,Y,it)=>{const nt=Y===void 0?K:Y instanceof t.Name?(K instanceof t.Name?E(U,K,Y):k(U,K,Y),Y):K instanceof t.Name?(k(U,Y,K),K):D(K,Y);return it===t.Name&&!(nt instanceof t.Name)?V(U,nt):nt}}e.mergeEvaluated={props:p({mergeNames:(E,k,D)=>E.if((0,t._)`${D} !== true && ${k} !== undefined`,()=>{E.if((0,t._)`${k} === true`,()=>E.assign(D,!0),()=>E.assign(D,(0,t._)`${D} || {}`).code((0,t._)`Object.assign(${D}, ${k})`))}),mergeToName:(E,k,D)=>E.if((0,t._)`${D} !== true`,()=>{k===!0?E.assign(D,!0):(E.assign(D,(0,t._)`${D} || {}`),v(E,D,k))}),mergeValues:(E,k)=>E===!0?!0:{...E,...k},resultToName:g}),items:p({mergeNames:(E,k,D)=>E.if((0,t._)`${D} !== true && ${k} !== undefined`,()=>E.assign(D,(0,t._)`${k} === true ? true : ${D} > ${k} ? ${D} : ${k}`)),mergeToName:(E,k,D)=>E.if((0,t._)`${D} !== true`,()=>E.assign(D,k===!0?!0:(0,t._)`${D} > ${k} ? ${D} : ${k}`)),mergeValues:(E,k)=>E===!0?!0:Math.max(E,k),resultToName:(E,k)=>E.var("items",k)})};function g(E,k){if(k===!0)return E.var("props",!0);const D=E.var("props",(0,t._)`{}`);return k!==void 0&&v(E,D,k),D}e.evaluatedPropsToName=g;function v(E,k,D){Object.keys(D).forEach(V=>E.assign((0,t._)`${k}${(0,t.getProperty)(V)}`,!0))}e.setEvaluated=v;const b={};function y(E,k){return E.scopeValue("func",{ref:k,code:b[k.code]||(b[k.code]=new r._Code(k.code))})}e.useFunc=y;var m;(function(E){E[E.Num=0]="Num",E[E.Str=1]="Str"})(m=e.Type||(e.Type={}));function x(E,k,D){if(E instanceof t.Name){const V=k===m.Num;return D?V?(0,t._)`"[" + ${E} + "]"`:(0,t._)`"['" + ${E} + "']"`:V?(0,t._)`"/" + ${E}`:(0,t._)`"/" + ${E}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return D?(0,t.getProperty)(E).toString():"/"+h(E)}e.getErrorPath=x;function A(E,k,D=E.opts.strictSchema){if(D){if(k=`strict mode: ${k}`,D===!0)throw new Error(k);E.self.logger.warn(k)}}e.checkStrictMode=A})(Ng);const tL=kn(Ng),eL=Xt({__proto__:null,default:tL},[Ng]),Be=Jt(eL);var Ag={};Object.defineProperty(Ag,"__esModule",{value:!0});const un=ke,rL={data:new un.Name("data"),valCxt:new un.Name("valCxt"),instancePath:new un.Name("instancePath"),parentData:new un.Name("parentData"),parentDataProperty:new un.Name("parentDataProperty"),rootData:new un.Name("rootData"),dynamicAnchors:new un.Name("dynamicAnchors"),vErrors:new un.Name("vErrors"),errors:new un.Name("errors"),this:new un.Name("this"),self:new un.Name("self"),scope:new un.Name("scope"),json:new un.Name("json"),jsonPos:new un.Name("jsonPos"),jsonLen:new un.Name("jsonLen"),jsonPart:new un.Name("jsonPart")};var nL=Ag.default=rL;const iL=Xt({__proto__:null,default:nL},[Ag]),bo=Jt(iL);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=ke,r=Be,n=bo;e.keywordError={message:({keyword:v})=>(0,t.str)`must pass "${v}" keyword validation`},e.keyword$DataError={message:({keyword:v,schemaType:b})=>b?(0,t.str)`"${v}" keyword must be ${b} ($data)`:(0,t.str)`"${v}" keyword is invalid ($data)`};function i(v,b=e.keywordError,y,m){const{it:x}=v,{gen:A,compositeRule:E,allErrors:k}=x,D=h(v,b,y);m??(E||k)?c(A,D):l(x,(0,t._)`[${D}]`)}e.reportError=i;function o(v,b=e.keywordError,y){const{it:m}=v,{gen:x,compositeRule:A,allErrors:E}=m,k=h(v,b,y);c(x,k),A||E||l(m,n.default.vErrors)}e.reportExtraError=o;function s(v,b){v.assign(n.default.errors,b),v.if((0,t._)`${n.default.vErrors} !== null`,()=>v.if(b,()=>v.assign((0,t._)`${n.default.vErrors}.length`,b),()=>v.assign(n.default.vErrors,null)))}e.resetErrorsCount=s;function a({gen:v,keyword:b,schemaValue:y,data:m,errsCount:x,it:A}){if(x===void 0)throw new Error("ajv implementation error");const E=v.name("err");v.forRange("i",x,n.default.errors,k=>{v.const(E,(0,t._)`${n.default.vErrors}[${k}]`),v.if((0,t._)`${E}.instancePath === undefined`,()=>v.assign((0,t._)`${E}.instancePath`,(0,t.strConcat)(n.default.instancePath,A.errorPath))),v.assign((0,t._)`${E}.schemaPath`,(0,t.str)`${A.errSchemaPath}/${b}`),A.opts.verbose&&(v.assign((0,t._)`${E}.schema`,y),v.assign((0,t._)`${E}.data`,m))})}e.extendErrors=a;function c(v,b){const y=v.const("err",b);v.if((0,t._)`${n.default.vErrors} === null`,()=>v.assign(n.default.vErrors,(0,t._)`[${y}]`),(0,t._)`${n.default.vErrors}.push(${y})`),v.code((0,t._)`${n.default.errors}++`)}function l(v,b){const{gen:y,validateName:m,schemaEnv:x}=v;x.$async?y.throw((0,t._)`new ${v.ValidationError}(${b})`):(y.assign((0,t._)`${m}.errors`,b),y.return(!1))}const u={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function h(v,b,y){const{createErrors:m}=v.it;return m===!1?(0,t._)`{}`:f(v,b,y)}function f(v,b,y={}){const{gen:m,it:x}=v,A=[d(x,y),p(v,y)];return g(v,b,A),m.object(...A)}function d({errorPath:v},{instancePath:b}){const y=b?(0,t.str)`${v}${(0,r.getErrorPath)(b,r.Type.Str)}`:v;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,y)]}function p({keyword:v,it:{errSchemaPath:b}},{schemaPath:y,parentSchema:m}){let x=m?b:(0,t.str)`${b}/${v}`;return y&&(x=(0,t.str)`${x}${(0,r.getErrorPath)(y,r.Type.Str)}`),[u.schemaPath,x]}function g(v,{params:b,message:y},m){const{keyword:x,data:A,schemaValue:E,it:k}=v,{opts:D,propertyName:V,topSchemaRef:U,schemaPath:K}=k;m.push([u.keyword,x],[u.params,typeof b=="function"?b(v):b||(0,t._)`{}`]),D.messages&&m.push([u.message,typeof y=="function"?y(v):y]),D.verbose&&m.push([u.schema,E],[u.parentSchema,(0,t._)`${U}${K}`],[n.default.data,A]),V&&m.push([u.propertyName,V])}})(kg);const oL=kn(kg),sL=Xt({__proto__:null,default:oL},[kg]),Ec=Jt(sL);Object.defineProperty(ta,"__esModule",{value:!0});var g$=ta.boolOrEmptySchema=v$=ta.topBoolOrEmptySchema=void 0;const aL=Ec,lL=ke,cL=bo,uL={message:"boolean schema is false"};function hL(e){const{gen:t,schema:r,validateName:n}=e;r===!1?y$(e,!1):typeof r=="object"&&r.$async===!0?t.return(cL.default.data):(t.assign((0,lL._)`${n}.errors`,null),t.return(!0))}var v$=ta.topBoolOrEmptySchema=hL;function dL(e,t){const{gen:r,schema:n}=e;n===!1?(r.var(t,!1),y$(e)):r.var(t,!0)}g$=ta.boolOrEmptySchema=dL;function y$(e,t){const{gen:r,data:n}=e,i={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,aL.reportError)(i,uL,void 0,t)}const fL=Xt({__proto__:null,get boolOrEmptySchema(){return g$},default:ta,get topBoolOrEmptySchema(){return v$}},[ta]),pL=Jt(fL);var Dg={},ea={};Object.defineProperty(ea,"__esModule",{value:!0});var _$=ea.getRules=b$=ea.isJSONType=void 0;const mL=["string","number","integer","boolean","null","object","array"],gL=new Set(mL);function vL(e){return typeof e=="string"&&gL.has(e)}var b$=ea.isJSONType=vL;function yL(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}_$=ea.getRules=yL;const _L=Xt({__proto__:null,default:ea,get getRules(){return _$},get isJSONType(){return b$}},[ea]),w$=Jt(_L);var wo={};Object.defineProperty(wo,"__esModule",{value:!0});var x$=wo.shouldUseRule=E$=wo.shouldUseGroup=S$=wo.schemaHasRulesForType=void 0;function bL({schema:e,self:t},r){const n=t.RULES.types[r];return n&&n!==!0&&$$(e,n)}var S$=wo.schemaHasRulesForType=bL;function $$(e,t){return t.rules.some(r=>C$(e,r))}var E$=wo.shouldUseGroup=$$;function C$(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}x$=wo.shouldUseRule=C$;const wL=Xt({__proto__:null,default:wo,get schemaHasRulesForType(){return S$},get shouldUseGroup(){return E$},get shouldUseRule(){return x$}},[wo]),k$=Jt(wL);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;const t=w$,r=k$,n=Ec,i=ke,o=Be;var s;(function(m){m[m.Correct=0]="Correct",m[m.Wrong=1]="Wrong"})(s=e.DataType||(e.DataType={}));function a(m){const x=c(m.type);if(x.includes("null")){if(m.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!x.length&&m.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');m.nullable===!0&&x.push("null")}return x}e.getSchemaTypes=a;function c(m){const x=Array.isArray(m)?m:m?[m]:[];if(x.every(t.isJSONType))return x;throw new Error("type must be JSONType or JSONType[]: "+x.join(","))}e.getJSONTypes=c;function l(m,x){const{gen:A,data:E,opts:k}=m,D=h(x,k.coerceTypes),V=x.length>0&&!(D.length===0&&x.length===1&&(0,r.schemaHasRulesForType)(m,x[0]));if(V){const U=g(x,E,k.strictNumbers,s.Wrong);A.if(U,()=>{D.length?f(m,x,D):b(m)})}return V}e.coerceAndCheckDataType=l;const u=new Set(["string","number","integer","boolean","null"]);function h(m,x){return x?m.filter(A=>u.has(A)||x==="array"&&A==="array"):[]}function f(m,x,A){const{gen:E,data:k,opts:D}=m,V=E.let("dataType",(0,i._)`typeof ${k}`),U=E.let("coerced",(0,i._)`undefined`);D.coerceTypes==="array"&&E.if((0,i._)`${V} == 'object' && Array.isArray(${k}) && ${k}.length == 1`,()=>E.assign(k,(0,i._)`${k}[0]`).assign(V,(0,i._)`typeof ${k}`).if(g(x,k,D.strictNumbers),()=>E.assign(U,k))),E.if((0,i._)`${U} !== undefined`);for(const Y of A)(u.has(Y)||Y==="array"&&D.coerceTypes==="array")&&K(Y);E.else(),b(m),E.endIf(),E.if((0,i._)`${U} !== undefined`,()=>{E.assign(k,U),d(m,U)});function K(Y){switch(Y){case"string":E.elseIf((0,i._)`${V} == "number" || ${V} == "boolean"`).assign(U,(0,i._)`"" + ${k}`).elseIf((0,i._)`${k} === null`).assign(U,(0,i._)`""`);return;case"number":E.elseIf((0,i._)`${V} == "boolean" || ${k} === null
|
|
70
|
-
|| (${V} == "string" && ${k} && ${k} == +${k})`).assign(U,(0,i._)`+${k}`);return;case"integer":E.elseIf((0,i._)`${V} === "boolean" || ${k} === null
|
|
71
|
-
|| (${V} === "string" && ${k} && ${k} == +${k} && !(${k} % 1))`).assign(U,(0,i._)`+${k}`);return;case"boolean":E.elseIf((0,i._)`${k} === "false" || ${k} === 0 || ${k} === null`).assign(U,!1).elseIf((0,i._)`${k} === "true" || ${k} === 1`).assign(U,!0);return;case"null":E.elseIf((0,i._)`${k} === "" || ${k} === 0 || ${k} === false`),E.assign(U,null);return;case"array":E.elseIf((0,i._)`${V} === "string" || ${V} === "number"
|
|
72
|
-
|| ${V} === "boolean" || ${k} === null`).assign(U,(0,i._)`[${k}]`)}}}function d({gen:m,parentData:x,parentDataProperty:A},E){m.if((0,i._)`${x} !== undefined`,()=>m.assign((0,i._)`${x}[${A}]`,E))}function p(m,x,A,E=s.Correct){const k=E===s.Correct?i.operators.EQ:i.operators.NEQ;let D;switch(m){case"null":return(0,i._)`${x} ${k} null`;case"array":D=(0,i._)`Array.isArray(${x})`;break;case"object":D=(0,i._)`${x} && typeof ${x} == "object" && !Array.isArray(${x})`;break;case"integer":D=V((0,i._)`!(${x} % 1) && !isNaN(${x})`);break;case"number":D=V();break;default:return(0,i._)`typeof ${x} ${k} ${m}`}return E===s.Correct?D:(0,i.not)(D);function V(U=i.nil){return(0,i.and)((0,i._)`typeof ${x} == "number"`,U,A?(0,i._)`isFinite(${x})`:i.nil)}}e.checkDataType=p;function g(m,x,A,E){if(m.length===1)return p(m[0],x,A,E);let k;const D=(0,o.toHash)(m);if(D.array&&D.object){const V=(0,i._)`typeof ${x} != "object"`;k=D.null?V:(0,i._)`!${x} || ${V}`,delete D.null,delete D.array,delete D.object}else k=i.nil;D.number&&delete D.integer;for(const V in D)k=(0,i.and)(k,p(V,x,A,E));return k}e.checkDataTypes=g;const v={message:({schema:m})=>`must be ${m}`,params:({schema:m,schemaValue:x})=>typeof m=="string"?(0,i._)`{type: ${m}}`:(0,i._)`{type: ${x}}`};function b(m){const x=y(m);(0,n.reportError)(x,v)}e.reportTypeError=b;function y(m){const{gen:x,data:A,schema:E}=m,k=(0,o.schemaRefOrVal)(m,E,"type");return{gen:x,keyword:"type",data:A,schema:E.type,schemaCode:k,schemaValue:k,parentSchema:E,params:{},it:m}}})(Dg);const xL=kn(Dg),SL=Xt({__proto__:null,default:xL},[Dg]),Ud=Jt(SL);var Cc={};Object.defineProperty(Cc,"__esModule",{value:!0});var P$=Cc.assignDefaults=void 0;const Ja=ke,$L=Be;function EL(e,t){const{properties:r,items:n}=e.schema;if(t==="object"&&r)for(const i in r)T$(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,o)=>T$(e,o,i.default))}P$=Cc.assignDefaults=EL;function T$(e,t,r){const{gen:n,compositeRule:i,data:o,opts:s}=e;if(r===void 0)return;const a=(0,Ja._)`${o}${(0,Ja.getProperty)(t)}`;if(i){(0,$L.checkStrictMode)(e,`default is ignored for: ${a}`);return}let c=(0,Ja._)`${a} === undefined`;s.useDefaults==="empty"&&(c=(0,Ja._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,Ja._)`${a} = ${(0,Ja.stringify)(r)}`)}const CL=Xt({__proto__:null,get assignDefaults(){return P$},default:Cc},[Cc]),kL=Jt(CL);var _i={},Qe={};Object.defineProperty(Qe,"__esModule",{value:!0});var O$=Qe.validateUnion=B$=Qe.validateArray=G$=Qe.usePattern=z$=Qe.callValidateCode=U$=Qe.schemaProperties=V$=Qe.allSchemaProperties=M$=Qe.noPropertyInData=F$=Qe.propertyInData=j$=Qe.isOwnProperty=I$=Qe.hasPropFunc=D$=Qe.reportMissingProp=A$=Qe.checkMissingProp=N$=Qe.checkReportMissingProp=void 0;const pr=ke,Rg=Be,os=bo,PL=Be;function TL(e,t){const{gen:r,data:n,it:i}=e;r.if(jg(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,pr._)`${t}`},!0),e.error()})}var N$=Qe.checkReportMissingProp=TL;function OL({gen:e,data:t,it:{opts:r}},n,i){return(0,pr.or)(...n.map(o=>(0,pr.and)(jg(e,t,o,r.ownProperties),(0,pr._)`${i} = ${o}`)))}var A$=Qe.checkMissingProp=OL;function NL(e,t){e.setParams({missingProperty:t},!0),e.error()}var D$=Qe.reportMissingProp=NL;function R$(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,pr._)`Object.prototype.hasOwnProperty`})}var I$=Qe.hasPropFunc=R$;function Ig(e,t,r){return(0,pr._)`${R$(e)}.call(${t}, ${r})`}var j$=Qe.isOwnProperty=Ig;function AL(e,t,r,n){const i=(0,pr._)`${t}${(0,pr.getProperty)(r)} !== undefined`;return n?(0,pr._)`${i} && ${Ig(e,t,r)}`:i}var F$=Qe.propertyInData=AL;function jg(e,t,r,n){const i=(0,pr._)`${t}${(0,pr.getProperty)(r)} === undefined`;return n?(0,pr.or)(i,(0,pr.not)(Ig(e,t,r))):i}var M$=Qe.noPropertyInData=jg;function L$(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}var V$=Qe.allSchemaProperties=L$;function DL(e,t){return L$(t).filter(r=>!(0,Rg.alwaysValidSchema)(e,t[r]))}var U$=Qe.schemaProperties=DL;function RL({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:s},a,c,l){const u=l?(0,pr._)`${e}, ${t}, ${n}${i}`:t,h=[[os.default.instancePath,(0,pr.strConcat)(os.default.instancePath,o)],[os.default.parentData,s.parentData],[os.default.parentDataProperty,s.parentDataProperty],[os.default.rootData,os.default.rootData]];s.opts.dynamicRef&&h.push([os.default.dynamicAnchors,os.default.dynamicAnchors]);const f=(0,pr._)`${u}, ${r.object(...h)}`;return c!==pr.nil?(0,pr._)`${a}.call(${c}, ${f})`:(0,pr._)`${a}(${f})`}var z$=Qe.callValidateCode=RL;const IL=(0,pr._)`new RegExp`;function jL({gen:e,it:{opts:t}},r){const n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,o=i(r,n);return e.scopeValue("pattern",{key:o.toString(),ref:o,code:(0,pr._)`${i.code==="new RegExp"?IL:(0,PL.useFunc)(e,i)}(${r}, ${n})`})}var G$=Qe.usePattern=jL;function FL(e){const{gen:t,data:r,keyword:n,it:i}=e,o=t.name("valid");if(i.allErrors){const a=t.let("valid",!0);return s(()=>t.assign(a,!1)),a}return t.var(o,!0),s(()=>t.break()),o;function s(a){const c=t.const("len",(0,pr._)`${r}.length`);t.forRange("i",0,c,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:Rg.Type.Num},o),t.if((0,pr.not)(o),a)})}}var B$=Qe.validateArray=FL;function ML(e){const{gen:t,schema:r,keyword:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(a=>(0,Rg.alwaysValidSchema)(i,a))&&!i.opts.unevaluated)return;const o=t.let("valid",!1),s=t.name("_valid");t.block(()=>r.forEach((a,c)=>{const l=e.subschema({keyword:n,schemaProp:c,compositeRule:!0},s);t.assign(o,(0,pr._)`${o} || ${s}`),e.mergeValidEvaluated(l,s)||t.if((0,pr.not)(o))})),e.result(o,()=>e.reset(),()=>e.error(!0))}O$=Qe.validateUnion=ML;const LL=Xt({__proto__:null,get allSchemaProperties(){return V$},get callValidateCode(){return z$},get checkMissingProp(){return A$},get checkReportMissingProp(){return N$},default:Qe,get hasPropFunc(){return I$},get isOwnProperty(){return j$},get noPropertyInData(){return M$},get propertyInData(){return F$},get reportMissingProp(){return D$},get schemaProperties(){return U$},get usePattern(){return G$},get validateArray(){return B$},get validateUnion(){return O$}},[Qe]),bi=Jt(LL);Object.defineProperty(_i,"__esModule",{value:!0});var H$=_i.validateKeywordUsage=J$=_i.validSchemaType=K$=_i.funcKeywordCode=q$=_i.macroKeywordCode=void 0;const vn=ke,ra=bo,VL=bi,UL=Ec;function zL(e,t){const{gen:r,keyword:n,schema:i,parentSchema:o,it:s}=e,a=t.macro.call(s.self,i,o,s),c=X$(r,n,a);s.opts.validateSchema!==!1&&s.self.validateSchema(a,!0);const l=r.name("valid");e.subschema({schema:a,schemaPath:vn.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}var q$=_i.macroKeywordCode=zL;function GL(e,t){var r;const{gen:n,keyword:i,schema:o,parentSchema:s,$data:a,it:c}=e;HL(c,t);const l=!a&&t.compile?t.compile.call(c.self,o,s,c):t.validate,u=X$(n,i,l),h=n.let("valid");e.block$data(h,f),e.ok((r=t.valid)!==null&&r!==void 0?r:h);function f(){if(t.errors===!1)g(),t.modifying&&Y$(e),v(()=>e.error());else{const b=t.async?d():p();t.modifying&&Y$(e),v(()=>BL(e,b))}}function d(){const b=n.let("ruleErrs",null);return n.try(()=>g((0,vn._)`await `),y=>n.assign(h,!1).if((0,vn._)`${y} instanceof ${c.ValidationError}`,()=>n.assign(b,(0,vn._)`${y}.errors`),()=>n.throw(y))),b}function p(){const b=(0,vn._)`${u}.errors`;return n.assign(b,null),g(vn.nil),b}function g(b=t.async?(0,vn._)`await `:vn.nil){const y=c.opts.passContext?ra.default.this:ra.default.self,m=!("compile"in t&&!a||t.schema===!1);n.assign(h,(0,vn._)`${b}${(0,VL.callValidateCode)(e,u,y,m)}`,t.modifying)}function v(b){var y;n.if((0,vn.not)((y=t.valid)!==null&&y!==void 0?y:h),b)}}var K$=_i.funcKeywordCode=GL;function Y$(e){const{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,vn._)`${n.parentData}[${n.parentDataProperty}]`))}function BL(e,t){const{gen:r}=e;r.if((0,vn._)`Array.isArray(${t})`,()=>{r.assign(ra.default.vErrors,(0,vn._)`${ra.default.vErrors} === null ? ${t} : ${ra.default.vErrors}.concat(${t})`).assign(ra.default.errors,(0,vn._)`${ra.default.vErrors}.length`),(0,UL.extendErrors)(e)},()=>e.error())}function HL({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function X$(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,vn.stringify)(r)})}function qL(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}var J$=_i.validSchemaType=qL;function KL({schema:e,opts:t,self:r,errSchemaPath:n},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");const s=i.dependencies;if(s?.some(a=>!Object.prototype.hasOwnProperty.call(e,a)))throw new Error(`parent schema must have dependencies of ${o}: ${s.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){const a=`keyword "${o}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(a);else throw new Error(a)}}H$=_i.validateKeywordUsage=KL;const YL=Xt({__proto__:null,default:_i,get funcKeywordCode(){return K$},get macroKeywordCode(){return q$},get validSchemaType(){return J$},get validateKeywordUsage(){return H$}},[_i]),XL=Jt(YL);var xo={};Object.defineProperty(xo,"__esModule",{value:!0});var W$=xo.extendSubschemaMode=t5=xo.extendSubschemaData=Z$=xo.getSubschema=void 0;const Li=ke,Q$=Be;function JL(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:o,topSchemaRef:s}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){const a=e.schema[t];return r===void 0?{schema:a,schemaPath:(0,Li._)`${e.schemaPath}${(0,Li.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,Li._)`${e.schemaPath}${(0,Li.getProperty)(t)}${(0,Li.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,Q$.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||o===void 0||s===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:s,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}var Z$=xo.getSubschema=JL;function WL(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:o,propertyName:s}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:a}=t;if(r!==void 0){const{errorPath:l,dataPathArr:u,opts:h}=t,f=a.let("data",(0,Li._)`${t.data}${(0,Li.getProperty)(r)}`,!0);c(f),e.errorPath=(0,Li.str)`${l}${(0,Q$.getErrorPath)(r,n,h.jsPropertySyntax)}`,e.parentDataProperty=(0,Li._)`${r}`,e.dataPathArr=[...u,e.parentDataProperty]}if(i!==void 0){const l=i instanceof Li.Name?i:a.let("data",i,!0);c(l),s!==void 0&&(e.propertyName=s)}o&&(e.dataTypes=o);function c(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}}var t5=xo.extendSubschemaData=WL;function QL(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:o}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),o!==void 0&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=r}W$=xo.extendSubschemaMode=QL;const ZL=Xt({__proto__:null,default:xo,get extendSubschemaData(){return t5},get extendSubschemaMode(){return W$},get getSubschema(){return Z$}},[xo]),tV=Jt(ZL);var yn={},e5=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(o=Object.keys(t),n=o.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;i--!==0;){var s=o[i];if(!e(t[s],r[s]))return!1}return!0}return t!==t&&r!==r};const eV=kn(e5),rV=Xt({__proto__:null,default:eV},[e5]),r5=Jt(rV);var n5={exports:{}},ss=n5.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},i=r.post||function(){};zd(t,n,i,e,"",e)};ss.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},ss.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},ss.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},ss.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function zd(e,t,r,n,i,o,s,a,c,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,o,s,a,c,l);for(var u in n){var h=n[u];if(Array.isArray(h)){if(u in ss.arrayKeywords)for(var f=0;f<h.length;f++)zd(e,t,r,h[f],i+"/"+u+"/"+f,o,i,u,n,f)}else if(u in ss.propsKeywords){if(h&&typeof h=="object")for(var d in h)zd(e,t,r,h[d],i+"/"+u+"/"+nV(d),o,i,u,n,d)}else(u in ss.keywords||e.allKeys&&!(u in ss.skipKeywords))&&zd(e,t,r,h,i+"/"+u,o,i,u,n)}r(n,i,o,s,a,c,l)}}function nV(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}var i5=n5.exports;const iV=kn(i5),oV=Xt({__proto__:null,default:iV},[i5]),sV=Jt(oV);Object.defineProperty(yn,"__esModule",{value:!0});var o5=yn.getSchemaRefs=f5=yn.resolveUrl=d5=yn.normalizeId=h5=yn._getFullPath=c5=yn.getFullPath=s5=yn.inlineRef=void 0;const aV=Be,lV=r5,cV=sV,uV=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function hV(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Fg(e):t?a5(e)<=t:!1}var s5=yn.inlineRef=hV;const dV=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Fg(e){for(const t in e){if(dV.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(Fg)||typeof r=="object"&&Fg(r))return!0}return!1}function a5(e){let t=0;for(const r in e)if(r==="$ref"||(t++,!uV.has(r)&&(typeof e[r]=="object"&&(0,aV.eachItem)(e[r],n=>t+=a5(n)),t===1/0)))return 1/0;return t}function l5(e,t="",r){r!==!1&&(t=Wa(t));const n=e.parse(t);return u5(e,n)}var c5=yn.getFullPath=l5;function u5(e,t){return e.serialize(t).split("#")[0]+"#"}var h5=yn._getFullPath=u5;const fV=/#\/?$/;function Wa(e){return e?e.replace(fV,""):""}var d5=yn.normalizeId=Wa;function pV(e,t,r){return r=Wa(r),e.resolve(t,r)}var f5=yn.resolveUrl=pV;const mV=/^[a-z_][-a-z0-9._]*$/i;function gV(e,t){if(typeof e=="boolean")return{};const{schemaId:r,uriResolver:n}=this.opts,i=Wa(e[r]||t),o={"":i},s=l5(n,i,!1),a={},c=new Set;return cV(e,{allKeys:!0},(h,f,d,p)=>{if(p===void 0)return;const g=s+f;let v=o[p];typeof h[r]=="string"&&(v=b.call(this,h[r])),y.call(this,h.$anchor),y.call(this,h.$dynamicAnchor),o[f]=v;function b(m){const x=this.opts.uriResolver.resolve;if(m=Wa(v?x(v,m):m),c.has(m))throw u(m);c.add(m);let A=this.refs[m];return typeof A=="string"&&(A=this.refs[A]),typeof A=="object"?l(h,A.schema,m):m!==Wa(g)&&(m[0]==="#"?(l(h,a[m],m),a[m]=h):this.refs[m]=g),m}function y(m){if(typeof m=="string"){if(!mV.test(m))throw new Error(`invalid anchor "${m}"`);b.call(this,`#${m}`)}}}),a;function l(h,f,d){if(f!==void 0&&!lV(h,f))throw u(d)}function u(h){return new Error(`reference "${h}" resolves to more than one schema`)}}o5=yn.getSchemaRefs=gV;const vV=Xt({__proto__:null,get _getFullPath(){return h5},default:yn,get getFullPath(){return c5},get getSchemaRefs(){return o5},get inlineRef(){return s5},get normalizeId(){return d5},get resolveUrl(){return f5}},[yn]),Gd=Jt(vV);Object.defineProperty(_o,"__esModule",{value:!0});var p5=_o.getData=T5=_o.KeywordCxt=v5=_o.validateFunctionCode=void 0;const m5=pL,g5=Ud,Mg=k$,Bd=Ud,yV=kL,kc=XL,Lg=tV,re=ke,ge=bo,_V=Gd,So=Be,Pc=Ec;function bV(e){if(w5(e)&&(x5(e),b5(e))){SV(e);return}y5(e,()=>(0,m5.topBoolOrEmptySchema)(e))}var v5=_o.validateFunctionCode=bV;function y5({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},o){i.code.es5?e.func(t,(0,re._)`${ge.default.data}, ${ge.default.valCxt}`,n.$async,()=>{e.code((0,re._)`"use strict"; ${_5(r,i)}`),xV(e,i),e.code(o)}):e.func(t,(0,re._)`${ge.default.data}, ${wV(i)}`,n.$async,()=>e.code(_5(r,i)).code(o))}function wV(e){return(0,re._)`{${ge.default.instancePath}="", ${ge.default.parentData}, ${ge.default.parentDataProperty}, ${ge.default.rootData}=${ge.default.data}${e.dynamicRef?(0,re._)`, ${ge.default.dynamicAnchors}={}`:re.nil}}={}`}function xV(e,t){e.if(ge.default.valCxt,()=>{e.var(ge.default.instancePath,(0,re._)`${ge.default.valCxt}.${ge.default.instancePath}`),e.var(ge.default.parentData,(0,re._)`${ge.default.valCxt}.${ge.default.parentData}`),e.var(ge.default.parentDataProperty,(0,re._)`${ge.default.valCxt}.${ge.default.parentDataProperty}`),e.var(ge.default.rootData,(0,re._)`${ge.default.valCxt}.${ge.default.rootData}`),t.dynamicRef&&e.var(ge.default.dynamicAnchors,(0,re._)`${ge.default.valCxt}.${ge.default.dynamicAnchors}`)},()=>{e.var(ge.default.instancePath,(0,re._)`""`),e.var(ge.default.parentData,(0,re._)`undefined`),e.var(ge.default.parentDataProperty,(0,re._)`undefined`),e.var(ge.default.rootData,ge.default.data),t.dynamicRef&&e.var(ge.default.dynamicAnchors,(0,re._)`{}`)})}function SV(e){const{schema:t,opts:r,gen:n}=e;y5(e,()=>{r.$comment&&t.$comment&&$5(e),PV(e),n.let(ge.default.vErrors,null),n.let(ge.default.errors,0),r.unevaluated&&$V(e),S5(e),NV(e)})}function $V(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,re._)`${r}.evaluated`),t.if((0,re._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,re._)`${e.evaluated}.props`,(0,re._)`undefined`)),t.if((0,re._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,re._)`${e.evaluated}.items`,(0,re._)`undefined`))}function _5(e,t){const r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,re._)`/*# sourceURL=${r} */`:re.nil}function EV(e,t){if(w5(e)&&(x5(e),b5(e))){CV(e,t);return}(0,m5.boolOrEmptySchema)(e,t)}function b5({schema:e,self:t}){if(typeof e=="boolean")return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function w5(e){return typeof e.schema!="boolean"}function CV(e,t){const{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&$5(e),TV(e),OV(e);const o=n.const("_errs",ge.default.errors);S5(e,o),n.var(t,(0,re._)`${o} === ${ge.default.errors}`)}function x5(e){(0,So.checkUnknownRules)(e),kV(e)}function S5(e,t){if(e.opts.jtd)return E5(e,[],!1,t);const r=(0,g5.getSchemaTypes)(e.schema),n=(0,g5.coerceAndCheckDataType)(e,r);E5(e,r,!n,t)}function kV(e){const{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,So.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function PV(e){const{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,So.checkStrictMode)(e,"default is ignored in the schema root")}function TV(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,_V.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function OV(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function $5({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){const o=r.$comment;if(i.$comment===!0)e.code((0,re._)`${ge.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){const s=(0,re.str)`${n}/$comment`,a=e.scopeValue("root",{ref:t.root});e.code((0,re._)`${ge.default.self}.opts.$comment(${o}, ${s}, ${a}.schema)`)}}function NV(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=e;r.$async?t.if((0,re._)`${ge.default.errors} === 0`,()=>t.return(ge.default.data),()=>t.throw((0,re._)`new ${i}(${ge.default.vErrors})`)):(t.assign((0,re._)`${n}.errors`,ge.default.vErrors),o.unevaluated&&AV(e),t.return((0,re._)`${ge.default.errors} === 0`))}function AV({gen:e,evaluated:t,props:r,items:n}){r instanceof re.Name&&e.assign((0,re._)`${t}.props`,r),n instanceof re.Name&&e.assign((0,re._)`${t}.items`,n)}function E5(e,t,r,n){const{gen:i,schema:o,data:s,allErrors:a,opts:c,self:l}=e,{RULES:u}=l;if(o.$ref&&(c.ignoreKeywordsWithRef||!(0,So.schemaHasRulesButRef)(o,u))){i.block(()=>O5(e,"$ref",u.all.$ref.definition));return}c.jtd||DV(e,t),i.block(()=>{for(const f of u.rules)h(f);h(u.post)});function h(f){(0,Mg.shouldUseGroup)(o,f)&&(f.type?(i.if((0,Bd.checkDataType)(f.type,s,c.strictNumbers)),C5(e,f),t.length===1&&t[0]===f.type&&r&&(i.else(),(0,Bd.reportTypeError)(e)),i.endIf()):C5(e,f),a||i.if((0,re._)`${ge.default.errors} === ${n||0}`))}}function C5(e,t){const{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,yV.assignDefaults)(e,t.type),r.block(()=>{for(const o of t.rules)(0,Mg.shouldUseRule)(n,o)&&O5(e,o.keyword,o.definition,t.type)})}function DV(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(RV(e,t),e.opts.allowUnionTypes||IV(e,t),jV(e,e.dataTypes))}function RV(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{k5(e.dataTypes,r)||Vg(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),MV(e,t)}}function IV(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Vg(e,"use allowUnionTypes to allow union type keyword")}function jV(e,t){const r=e.self.RULES.all;for(const n in r){const i=r[n];if(typeof i=="object"&&(0,Mg.shouldUseRule)(e.schema,i)){const{type:o}=i.definition;o.length&&!o.some(s=>FV(t,s))&&Vg(e,`missing type "${o.join(",")}" for keyword "${n}"`)}}}function FV(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function k5(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function MV(e,t){const r=[];for(const n of e.dataTypes)k5(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function Vg(e,t){const r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,So.checkStrictMode)(e,t,e.opts.strictTypes)}class P5{constructor(t,r,n){if((0,kc.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,So.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",N5(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,kc.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",ge.default.errors))}result(t,r,n){this.failResult((0,re.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,re.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);const{schemaCode:r}=this;this.fail((0,re._)`${r} !== undefined && (${(0,re.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?Pc.reportExtraError:Pc.reportError)(this,this.def.error,r)}$dataError(){(0,Pc.reportError)(this,this.def.$dataError||Pc.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Pc.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=re.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=re.nil,r=re.nil){if(!this.$data)return;const{gen:n,schemaCode:i,schemaType:o,def:s}=this;n.if((0,re.or)((0,re._)`${i} === undefined`,r)),t!==re.nil&&n.assign(t,!0),(o.length||s.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==re.nil&&n.assign(t,!1)),n.else()}invalid$data(){const{gen:t,schemaCode:r,schemaType:n,def:i,it:o}=this;return(0,re.or)(s(),a());function s(){if(n.length){if(!(r instanceof re.Name))throw new Error("ajv implementation error");const c=Array.isArray(n)?n:[n];return(0,re._)`${(0,Bd.checkDataTypes)(c,r,o.opts.strictNumbers,Bd.DataType.Wrong)}`}return re.nil}function a(){if(i.validateSchema){const c=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,re._)`!${c}(${r})`}return re.nil}}subschema(t,r){const n=(0,Lg.getSubschema)(this.it,t);(0,Lg.extendSubschemaData)(n,this.it,t),(0,Lg.extendSubschemaMode)(n,t);const i={...this.it,...n,items:void 0,props:void 0};return EV(i,r),i}mergeEvaluated(t,r){const{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=So.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=So.mergeEvaluated.items(i,t.items,n.items,r)))}mergeValidEvaluated(t,r){const{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(r,()=>this.mergeEvaluated(t,re.Name)),!0}}var T5=_o.KeywordCxt=P5;function O5(e,t,r,n){const i=new P5(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,kc.funcKeywordCode)(i,r):"macro"in r?(0,kc.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,kc.funcKeywordCode)(i,r)}const LV=/^\/(?:[^~]|~0|~1)*$/,VV=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function N5(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(e==="")return ge.default.rootData;if(e[0]==="/"){if(!LV.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=ge.default.rootData}else{const l=VV.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);const u=+l[1];if(i=l[2],i==="#"){if(u>=t)throw new Error(c("property/index",u));return n[t-u]}if(u>t)throw new Error(c("data",u));if(o=r[t-u],!i)return o}let s=o;const a=i.split("/");for(const l of a)l&&(o=(0,re._)`${o}${(0,re.getProperty)((0,So.unescapeJsonPointer)(l))}`,s=(0,re._)`${s} && ${o}`);return s;function c(l,u){return`Cannot access ${l} ${u} levels up, current level is ${t}`}}p5=_o.getData=N5;const UV=Xt({__proto__:null,get KeywordCxt(){return T5},default:_o,get getData(){return p5},get validateFunctionCode(){return v5}},[_o]),Tc=Jt(UV);var Ug={};Object.defineProperty(Ug,"__esModule",{value:!0});class zV extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}var GV=Ug.default=zV;const BV=Xt({__proto__:null,default:GV},[Ug]),zg=Jt(BV);var Gg={};Object.defineProperty(Gg,"__esModule",{value:!0});const Bg=Gd;class HV extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Bg.resolveUrl)(t,r,n),this.missingSchema=(0,Bg.normalizeId)((0,Bg.getFullPath)(t,this.missingRef))}}var qV=Gg.default=HV;const KV=Xt({__proto__:null,default:qV},[Gg]),Hg=Jt(KV);var Mn={};Object.defineProperty(Mn,"__esModule",{value:!0});var A5=Mn.resolveSchema=M5=Mn.getCompilingSchema=j5=Mn.resolveRef=I5=Mn.compileSchema=R5=Mn.SchemaEnv=void 0;const wi=ke,YV=zg,na=bo,xi=Gd,D5=Be,XV=Tc;class Hd{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,xi.normalizeId)(n?.[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n?.$async,this.refs={}}}var R5=Mn.SchemaEnv=Hd;function qg(e){const t=F5.call(this,e);if(t)return t;const r=(0,xi.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,s=new wi.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o});let a;e.$async&&(a=s.scopeValue("Error",{ref:YV.default,code:(0,wi._)`require("ajv/dist/runtime/validation_error").default`}));const c=s.scopeName("validate");e.validateName=c;const l={gen:s,allErrors:this.opts.allErrors,data:na.default.data,parentData:na.default.parentData,parentDataProperty:na.default.parentDataProperty,dataNames:[na.default.data],dataPathArr:[wi.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,wi.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:wi.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,wi._)`""`,opts:this.opts,self:this};let u;try{this._compilations.add(e),(0,XV.validateFunctionCode)(l),s.optimize(this.opts.code.optimize);const h=s.toString();u=`${s.scopeRefs(na.default.scope)}return ${h}`,this.opts.code.process&&(u=this.opts.code.process(u,e));const f=new Function(`${na.default.self}`,`${na.default.scope}`,u)(this,this.scope.get());if(this.scope.value(c,{ref:f}),f.errors=null,f.schema=e.schema,f.schemaEnv=e,e.$async&&(f.$async=!0),this.opts.code.source===!0&&(f.source={validateName:c,validateCode:h,scopeValues:s._values}),this.opts.unevaluated){const{props:d,items:p}=l;f.evaluated={props:d instanceof wi.Name?void 0:d,items:p instanceof wi.Name?void 0:p,dynamicProps:d instanceof wi.Name,dynamicItems:p instanceof wi.Name},f.source&&(f.source.evaluated=(0,wi.stringify)(f.evaluated))}return e.validate=f,e}catch(h){throw delete e.validate,delete e.validateName,u&&this.logger.error("Error compiling schema, function code:",u),h}finally{this._compilations.delete(e)}}var I5=Mn.compileSchema=qg;function JV(e,t,r){var n;r=(0,xi.resolveUrl)(this.opts.uriResolver,t,r);const i=e.refs[r];if(i)return i;let o=ZV.call(this,e,r);if(o===void 0){const s=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:a}=this.opts;s&&(o=new Hd({schema:s,schemaId:a,root:e,baseId:t}))}if(o!==void 0)return e.refs[r]=WV.call(this,o)}var j5=Mn.resolveRef=JV;function WV(e){return(0,xi.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:qg.call(this,e)}function F5(e){for(const t of this._compilations)if(QV(t,e))return t}var M5=Mn.getCompilingSchema=F5;function QV(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function ZV(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||qd.call(this,e,t)}function qd(e,t){const r=this.opts.uriResolver.parse(t),n=(0,xi._getFullPath)(this.opts.uriResolver,r);let i=(0,xi.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return Kg.call(this,r,e);const o=(0,xi.normalizeId)(n),s=this.refs[o]||this.schemas[o];if(typeof s=="string"){const a=qd.call(this,e,s);return typeof a?.schema!="object"?void 0:Kg.call(this,r,a)}if(typeof s?.schema=="object"){if(s.validate||qg.call(this,s),o===(0,xi.normalizeId)(t)){const{schema:a}=s,{schemaId:c}=this.opts,l=a[c];return l&&(i=(0,xi.resolveUrl)(this.opts.uriResolver,i,l)),new Hd({schema:a,schemaId:c,root:e,baseId:i})}return Kg.call(this,r,s)}}A5=Mn.resolveSchema=qd;const tU=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Kg(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(const a of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;const c=r[(0,D5.unescapeFragment)(a)];if(c===void 0)return;r=c;const l=typeof r=="object"&&r[this.opts.schemaId];!tU.has(a)&&l&&(t=(0,xi.resolveUrl)(this.opts.uriResolver,t,l))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,D5.schemaHasRulesButRef)(r,this.RULES)){const a=(0,xi.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=qd.call(this,n,a)}const{schemaId:s}=this.opts;if(o=o||new Hd({schema:r,schemaId:s,root:n,baseId:t}),o.schema!==o.root.schema)return o}const eU=Xt({__proto__:null,get SchemaEnv(){return R5},get compileSchema(){return I5},default:Mn,get getCompilingSchema(){return M5},get resolveRef(){return j5},get resolveSchema(){return A5}},[Mn]),Yg=Jt(eU),rU="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",nU="Meta-schema for $data reference (JSON AnySchema extension proposal)",iU="object",oU=["$data"],sU={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},aU=!1,lU={$id:rU,description:nU,type:iU,required:oU,properties:sU,additionalProperties:aU};var Xg={},Jg={exports:{}};/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */(function(e,t){(function(r,n){n(t)})(LM,function(r){function n(){for(var R=arguments.length,L=Array(R),z=0;z<R;z++)L[z]=arguments[z];if(L.length>1){L[0]=L[0].slice(0,-1);for(var Z=L.length-1,tt=1;tt<Z;++tt)L[tt]=L[tt].slice(1,-1);return L[Z]=L[Z].slice(1),L.join("")}else return L[0]}function i(R){return"(?:"+R+")"}function o(R){return R===void 0?"undefined":R===null?"null":Object.prototype.toString.call(R).split(" ").pop().split("]").shift().toLowerCase()}function s(R){return R.toUpperCase()}function a(R){return R!=null?R instanceof Array?R:typeof R.length!="number"||R.split||R.setInterval||R.call?[R]:Array.prototype.slice.call(R):[]}function c(R,L){var z=R;if(L)for(var Z in L)z[Z]=L[Z];return z}function l(R){var L="[A-Za-z]",z="[0-9]",Z=n(z,"[A-Fa-f]"),tt=i(i("%[EFef]"+Z+"%"+Z+Z+"%"+Z+Z)+"|"+i("%[89A-Fa-f]"+Z+"%"+Z+Z)+"|"+i("%"+Z+Z)),Ot="[\\:\\/\\?\\#\\[\\]\\@]",Tt="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",Ht=n(Ot,Tt),ve=R?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",te=R?"[\\uE000-\\uF8FF]":"[]",zt=n(L,z,"[\\-\\.\\_\\~]",ve);i(L+n(L,z,"[\\+\\-\\.]")+"*"),i(i(tt+"|"+n(zt,Tt,"[\\:]"))+"*");var qt=i(i("25[0-5]")+"|"+i("2[0-4]"+z)+"|"+i("1"+z+z)+"|"+i("0?[1-9]"+z)+"|0?0?"+z),le=i(qt+"\\."+qt+"\\."+qt+"\\."+qt),jt=i(Z+"{1,4}"),Gt=i(i(jt+"\\:"+jt)+"|"+le),ie=i(i(jt+"\\:")+"{6}"+Gt),Ue=i("\\:\\:"+i(jt+"\\:")+"{5}"+Gt),Ar=i(i(jt)+"?\\:\\:"+i(jt+"\\:")+"{4}"+Gt),Ee=i(i(i(jt+"\\:")+"{0,1}"+jt)+"?\\:\\:"+i(jt+"\\:")+"{3}"+Gt),Je=i(i(i(jt+"\\:")+"{0,2}"+jt)+"?\\:\\:"+i(jt+"\\:")+"{2}"+Gt),ar=i(i(i(jt+"\\:")+"{0,3}"+jt)+"?\\:\\:"+jt+"\\:"+Gt),ir=i(i(i(jt+"\\:")+"{0,4}"+jt)+"?\\:\\:"+Gt),Fe=i(i(i(jt+"\\:")+"{0,5}"+jt)+"?\\:\\:"+jt),xe=i(i(i(jt+"\\:")+"{0,6}"+jt)+"?\\:\\:"),Zt=i([ie,Ue,Ar,Ee,Je,ar,ir,Fe,xe].join("|")),lr=i(i(zt+"|"+tt)+"+");i("[vV]"+Z+"+\\."+n(zt,Tt,"[\\:]")+"+"),i(i(tt+"|"+n(zt,Tt))+"*");var fn=i(tt+"|"+n(zt,Tt,"[\\:\\@]"));return i(i(tt+"|"+n(zt,Tt,"[\\@]"))+"+"),i(i(fn+"|"+n("[\\/\\?]",te))+"*"),{NOT_SCHEME:new RegExp(n("[^]",L,z,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(n("[^\\%\\:]",zt,Tt),"g"),NOT_HOST:new RegExp(n("[^\\%\\[\\]\\:]",zt,Tt),"g"),NOT_PATH:new RegExp(n("[^\\%\\/\\:\\@]",zt,Tt),"g"),NOT_PATH_NOSCHEME:new RegExp(n("[^\\%\\/\\@]",zt,Tt),"g"),NOT_QUERY:new RegExp(n("[^\\%]",zt,Tt,"[\\:\\@\\/\\?]",te),"g"),NOT_FRAGMENT:new RegExp(n("[^\\%]",zt,Tt,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(n("[^]",zt,Tt),"g"),UNRESERVED:new RegExp(zt,"g"),OTHER_CHARS:new RegExp(n("[^\\%]",zt,Ht),"g"),PCT_ENCODED:new RegExp(tt,"g"),IPV4ADDRESS:new RegExp("^("+le+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Zt+")"+i(i("\\%25|\\%(?!"+Z+"{2})")+"("+lr+")")+"?\\]?$")}}var u=l(!1),h=l(!0),f=function(){function R(L,z){var Z=[],tt=!0,Ot=!1,Tt=void 0;try{for(var Ht=L[Symbol.iterator](),ve;!(tt=(ve=Ht.next()).done)&&(Z.push(ve.value),!(z&&Z.length===z));tt=!0);}catch(te){Ot=!0,Tt=te}finally{try{!tt&&Ht.return&&Ht.return()}finally{if(Ot)throw Tt}}return Z}return function(L,z){if(Array.isArray(L))return L;if(Symbol.iterator in Object(L))return R(L,z);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(R){if(Array.isArray(R)){for(var L=0,z=Array(R.length);L<R.length;L++)z[L]=R[L];return z}else return Array.from(R)},p=2147483647,g=36,v=1,b=26,y=38,m=700,x=72,A=128,E="-",k=/^xn--/,D=/[^\0-\x7E]/,V=/[\x2E\u3002\uFF0E\uFF61]/g,U={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},K=g-v,Y=Math.floor,it=String.fromCharCode;function nt(R){throw new RangeError(U[R])}function ft(R,L){for(var z=[],Z=R.length;Z--;)z[Z]=L(R[Z]);return z}function xt(R,L){var z=R.split("@"),Z="";z.length>1&&(Z=z[0]+"@",R=z[1]),R=R.replace(V,".");var tt=R.split("."),Ot=ft(tt,L).join(".");return Z+Ot}function _t(R){for(var L=[],z=0,Z=R.length;z<Z;){var tt=R.charCodeAt(z++);if(tt>=55296&&tt<=56319&&z<Z){var Ot=R.charCodeAt(z++);(Ot&64512)==56320?L.push(((tt&1023)<<10)+(Ot&1023)+65536):(L.push(tt),z--)}else L.push(tt)}return L}var yt=function(R){return String.fromCodePoint.apply(String,d(R))},at=function(R){return R-48<10?R-22:R-65<26?R-65:R-97<26?R-97:g},X=function(R,L){return R+22+75*(R<26)-((L!=0)<<5)},O=function(R,L,z){var Z=0;for(R=z?Y(R/m):R>>1,R+=Y(R/L);R>K*b>>1;Z+=g)R=Y(R/K);return Y(Z+(K+1)*R/(R+y))},C=function(R){var L=[],z=R.length,Z=0,tt=A,Ot=x,Tt=R.lastIndexOf(E);Tt<0&&(Tt=0);for(var Ht=0;Ht<Tt;++Ht)R.charCodeAt(Ht)>=128&&nt("not-basic"),L.push(R.charCodeAt(Ht));for(var ve=Tt>0?Tt+1:0;ve<z;){for(var te=Z,zt=1,qt=g;;qt+=g){ve>=z&&nt("invalid-input");var le=at(R.charCodeAt(ve++));(le>=g||le>Y((p-Z)/zt))&&nt("overflow"),Z+=le*zt;var jt=qt<=Ot?v:qt>=Ot+b?b:qt-Ot;if(le<jt)break;var Gt=g-jt;zt>Y(p/Gt)&&nt("overflow"),zt*=Gt}var ie=L.length+1;Ot=O(Z-te,ie,te==0),Y(Z/ie)>p-tt&&nt("overflow"),tt+=Y(Z/ie),Z%=ie,L.splice(Z++,0,tt)}return String.fromCodePoint.apply(String,L)},$=function(R){var L=[];R=_t(R);var z=R.length,Z=A,tt=0,Ot=x,Tt=!0,Ht=!1,ve=void 0;try{for(var te=R[Symbol.iterator](),zt;!(Tt=(zt=te.next()).done);Tt=!0){var qt=zt.value;qt<128&&L.push(it(qt))}}catch(Zr){Ht=!0,ve=Zr}finally{try{!Tt&&te.return&&te.return()}finally{if(Ht)throw ve}}var le=L.length,jt=le;for(le&&L.push(E);jt<z;){var Gt=p,ie=!0,Ue=!1,Ar=void 0;try{for(var Ee=R[Symbol.iterator](),Je;!(ie=(Je=Ee.next()).done);ie=!0){var ar=Je.value;ar>=Z&&ar<Gt&&(Gt=ar)}}catch(Zr){Ue=!0,Ar=Zr}finally{try{!ie&&Ee.return&&Ee.return()}finally{if(Ue)throw Ar}}var ir=jt+1;Gt-Z>Y((p-tt)/ir)&&nt("overflow"),tt+=(Gt-Z)*ir,Z=Gt;var Fe=!0,xe=!1,Zt=void 0;try{for(var lr=R[Symbol.iterator](),fn;!(Fe=(fn=lr.next()).done);Fe=!0){var Dn=fn.value;if(Dn<Z&&++tt>p&&nt("overflow"),Dn==Z){for(var br=tt,yr=g;;yr+=g){var Br=yr<=Ot?v:yr>=Ot+b?b:yr-Ot;if(br<Br)break;var si=br-Br,ai=g-Br;L.push(it(X(Br+si%ai,0))),br=Y(si/ai)}L.push(it(X(br,0))),Ot=O(tt,ir,jt==le),tt=0,++jt}}}catch(Zr){xe=!0,Zt=Zr}finally{try{!Fe&&lr.return&&lr.return()}finally{if(xe)throw Zt}}++tt,++Z}return L.join("")},_=function(R){return xt(R,function(L){return k.test(L)?C(L.slice(4).toLowerCase()):L})},P=function(R){return xt(R,function(L){return D.test(L)?"xn--"+$(L):L})},M={version:"2.1.0",ucs2:{decode:_t,encode:yt},decode:C,encode:$,toASCII:P,toUnicode:_},I={};function G(R){var L=R.charCodeAt(0),z=void 0;return L<16?z="%0"+L.toString(16).toUpperCase():L<128?z="%"+L.toString(16).toUpperCase():L<2048?z="%"+(L>>6|192).toString(16).toUpperCase()+"%"+(L&63|128).toString(16).toUpperCase():z="%"+(L>>12|224).toString(16).toUpperCase()+"%"+(L>>6&63|128).toString(16).toUpperCase()+"%"+(L&63|128).toString(16).toUpperCase(),z}function q(R){for(var L="",z=0,Z=R.length;z<Z;){var tt=parseInt(R.substr(z+1,2),16);if(tt<128)L+=String.fromCharCode(tt),z+=3;else if(tt>=194&&tt<224){if(Z-z>=6){var Ot=parseInt(R.substr(z+4,2),16);L+=String.fromCharCode((tt&31)<<6|Ot&63)}else L+=R.substr(z,6);z+=6}else if(tt>=224){if(Z-z>=9){var Tt=parseInt(R.substr(z+4,2),16),Ht=parseInt(R.substr(z+7,2),16);L+=String.fromCharCode((tt&15)<<12|(Tt&63)<<6|Ht&63)}else L+=R.substr(z,9);z+=9}else L+=R.substr(z,3),z+=3}return L}function et(R,L){function z(Z){var tt=q(Z);return tt.match(L.UNRESERVED)?tt:Z}return R.scheme&&(R.scheme=String(R.scheme).replace(L.PCT_ENCODED,z).toLowerCase().replace(L.NOT_SCHEME,"")),R.userinfo!==void 0&&(R.userinfo=String(R.userinfo).replace(L.PCT_ENCODED,z).replace(L.NOT_USERINFO,G).replace(L.PCT_ENCODED,s)),R.host!==void 0&&(R.host=String(R.host).replace(L.PCT_ENCODED,z).toLowerCase().replace(L.NOT_HOST,G).replace(L.PCT_ENCODED,s)),R.path!==void 0&&(R.path=String(R.path).replace(L.PCT_ENCODED,z).replace(R.scheme?L.NOT_PATH:L.NOT_PATH_NOSCHEME,G).replace(L.PCT_ENCODED,s)),R.query!==void 0&&(R.query=String(R.query).replace(L.PCT_ENCODED,z).replace(L.NOT_QUERY,G).replace(L.PCT_ENCODED,s)),R.fragment!==void 0&&(R.fragment=String(R.fragment).replace(L.PCT_ENCODED,z).replace(L.NOT_FRAGMENT,G).replace(L.PCT_ENCODED,s)),R}function st(R){return R.replace(/^0*(.*)/,"$1")||"0"}function mt(R,L){var z=R.match(L.IPV4ADDRESS)||[],Z=f(z,2),tt=Z[1];return tt?tt.split(".").map(st).join("."):R}function Lt(R,L){var z=R.match(L.IPV6ADDRESS)||[],Z=f(z,3),tt=Z[1],Ot=Z[2];if(tt){for(var Tt=tt.toLowerCase().split("::").reverse(),Ht=f(Tt,2),ve=Ht[0],te=Ht[1],zt=te?te.split(":").map(st):[],qt=ve.split(":").map(st),le=L.IPV4ADDRESS.test(qt[qt.length-1]),jt=le?7:8,Gt=qt.length-jt,ie=Array(jt),Ue=0;Ue<jt;++Ue)ie[Ue]=zt[Ue]||qt[Gt+Ue]||"";le&&(ie[jt-1]=mt(ie[jt-1],L));var Ar=ie.reduce(function(Fe,xe,Zt){if(!xe||xe==="0"){var lr=Fe[Fe.length-1];lr&&lr.index+lr.length===Zt?lr.length++:Fe.push({index:Zt,length:1})}return Fe},[]),Ee=Ar.sort(function(Fe,xe){return xe.length-Fe.length})[0],Je=void 0;if(Ee&&Ee.length>1){var ar=ie.slice(0,Ee.index),ir=ie.slice(Ee.index+Ee.length);Je=ar.join(":")+"::"+ir.join(":")}else Je=ie.join(":");return Ot&&(Je+="%"+Ot),Je}else return R}var J=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,Q="".match(/(){0}/)[1]===void 0;function ot(R){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z={},Z=L.iri!==!1?h:u;L.reference==="suffix"&&(R=(L.scheme?L.scheme+":":"")+"//"+R);var tt=R.match(J);if(tt){Q?(z.scheme=tt[1],z.userinfo=tt[3],z.host=tt[4],z.port=parseInt(tt[5],10),z.path=tt[6]||"",z.query=tt[7],z.fragment=tt[8],isNaN(z.port)&&(z.port=tt[5])):(z.scheme=tt[1]||void 0,z.userinfo=R.indexOf("@")!==-1?tt[3]:void 0,z.host=R.indexOf("//")!==-1?tt[4]:void 0,z.port=parseInt(tt[5],10),z.path=tt[6]||"",z.query=R.indexOf("?")!==-1?tt[7]:void 0,z.fragment=R.indexOf("#")!==-1?tt[8]:void 0,isNaN(z.port)&&(z.port=R.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?tt[4]:void 0)),z.host&&(z.host=Lt(mt(z.host,Z),Z)),z.scheme===void 0&&z.userinfo===void 0&&z.host===void 0&&z.port===void 0&&!z.path&&z.query===void 0?z.reference="same-document":z.scheme===void 0?z.reference="relative":z.fragment===void 0?z.reference="absolute":z.reference="uri",L.reference&&L.reference!=="suffix"&&L.reference!==z.reference&&(z.error=z.error||"URI is not a "+L.reference+" reference.");var Ot=I[(L.scheme||z.scheme||"").toLowerCase()];if(!L.unicodeSupport&&(!Ot||!Ot.unicodeSupport)){if(z.host&&(L.domainHost||Ot&&Ot.domainHost))try{z.host=M.toASCII(z.host.replace(Z.PCT_ENCODED,q).toLowerCase())}catch(Tt){z.error=z.error||"Host's domain name can not be converted to ASCII via punycode: "+Tt}et(z,u)}else et(z,Z);Ot&&Ot.parse&&Ot.parse(z,L)}else z.error=z.error||"URI can not be parsed.";return z}function lt(R,L){var z=L.iri!==!1?h:u,Z=[];return R.userinfo!==void 0&&(Z.push(R.userinfo),Z.push("@")),R.host!==void 0&&Z.push(Lt(mt(String(R.host),z),z).replace(z.IPV6ADDRESS,function(tt,Ot,Tt){return"["+Ot+(Tt?"%25"+Tt:"")+"]"})),(typeof R.port=="number"||typeof R.port=="string")&&(Z.push(":"),Z.push(String(R.port))),Z.length?Z.join(""):void 0}var ct=/^\.\.?\//,dt=/^\/\.(\/|$)/,$t=/^\/\.\.(\/|$)/,vt=/^\/?(?:.|\n)*?(?=\/|$)/;function bt(R){for(var L=[];R.length;)if(R.match(ct))R=R.replace(ct,"");else if(R.match(dt))R=R.replace(dt,"/");else if(R.match($t))R=R.replace($t,"/"),L.pop();else if(R==="."||R==="..")R="";else{var z=R.match(vt);if(z){var Z=z[0];R=R.slice(Z.length),L.push(Z)}else throw new Error("Unexpected dot segment condition")}return L.join("")}function ut(R){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z=L.iri?h:u,Z=[],tt=I[(L.scheme||R.scheme||"").toLowerCase()];if(tt&&tt.serialize&&tt.serialize(R,L),R.host&&!z.IPV6ADDRESS.test(R.host)&&(L.domainHost||tt&&tt.domainHost))try{R.host=L.iri?M.toUnicode(R.host):M.toASCII(R.host.replace(z.PCT_ENCODED,q).toLowerCase())}catch(Ht){R.error=R.error||"Host's domain name can not be converted to "+(L.iri?"Unicode":"ASCII")+" via punycode: "+Ht}et(R,z),L.reference!=="suffix"&&R.scheme&&(Z.push(R.scheme),Z.push(":"));var Ot=lt(R,L);if(Ot!==void 0&&(L.reference!=="suffix"&&Z.push("//"),Z.push(Ot),R.path&&R.path.charAt(0)!=="/"&&Z.push("/")),R.path!==void 0){var Tt=R.path;!L.absolutePath&&(!tt||!tt.absolutePath)&&(Tt=bt(Tt)),Ot===void 0&&(Tt=Tt.replace(/^\/\//,"/%2F")),Z.push(Tt)}return R.query!==void 0&&(Z.push("?"),Z.push(R.query)),R.fragment!==void 0&&(Z.push("#"),Z.push(R.fragment)),Z.join("")}function It(R,L){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Z=arguments[3],tt={};return Z||(R=ot(ut(R,z),z),L=ot(ut(L,z),z)),z=z||{},!z.tolerant&&L.scheme?(tt.scheme=L.scheme,tt.userinfo=L.userinfo,tt.host=L.host,tt.port=L.port,tt.path=bt(L.path||""),tt.query=L.query):(L.userinfo!==void 0||L.host!==void 0||L.port!==void 0?(tt.userinfo=L.userinfo,tt.host=L.host,tt.port=L.port,tt.path=bt(L.path||""),tt.query=L.query):(L.path?(L.path.charAt(0)==="/"?tt.path=bt(L.path):((R.userinfo!==void 0||R.host!==void 0||R.port!==void 0)&&!R.path?tt.path="/"+L.path:R.path?tt.path=R.path.slice(0,R.path.lastIndexOf("/")+1)+L.path:tt.path=L.path,tt.path=bt(tt.path)),tt.query=L.query):(tt.path=R.path,L.query!==void 0?tt.query=L.query:tt.query=R.query),tt.userinfo=R.userinfo,tt.host=R.host,tt.port=R.port),tt.scheme=R.scheme),tt.fragment=L.fragment,tt}function Vt(R,L,z){var Z=c({scheme:"null"},z);return ut(It(ot(R,Z),ot(L,Z),Z,!0),Z)}function Ut(R,L){return typeof R=="string"?R=ut(ot(R,L),L):o(R)==="object"&&(R=ot(ut(R,L),L)),R}function Kt(R,L,z){return typeof R=="string"?R=ut(ot(R,z),z):o(R)==="object"&&(R=ut(R,z)),typeof L=="string"?L=ut(ot(L,z),z):o(L)==="object"&&(L=ut(L,z)),R===L}function ne(R,L){return R&&R.toString().replace(!L||!L.iri?u.ESCAPE:h.ESCAPE,G)}function Yt(R,L){return R&&R.toString().replace(!L||!L.iri?u.PCT_ENCODED:h.PCT_ENCODED,q)}var fe={scheme:"http",domainHost:!0,parse:function(R,L){return R.host||(R.error=R.error||"HTTP URIs must have a host."),R},serialize:function(R,L){var z=String(R.scheme).toLowerCase()==="https";return(R.port===(z?443:80)||R.port==="")&&(R.port=void 0),R.path||(R.path="/"),R}},je={scheme:"https",domainHost:fe.domainHost,parse:fe.parse,serialize:fe.serialize};function nr(R){return typeof R.secure=="boolean"?R.secure:String(R.scheme).toLowerCase()==="wss"}var gr={scheme:"ws",domainHost:!0,parse:function(R,L){var z=R;return z.secure=nr(z),z.resourceName=(z.path||"/")+(z.query?"?"+z.query:""),z.path=void 0,z.query=void 0,z},serialize:function(R,L){if((R.port===(nr(R)?443:80)||R.port==="")&&(R.port=void 0),typeof R.secure=="boolean"&&(R.scheme=R.secure?"wss":"ws",R.secure=void 0),R.resourceName){var z=R.resourceName.split("?"),Z=f(z,2),tt=Z[0],Ot=Z[1];R.path=tt&&tt!=="/"?tt:void 0,R.query=Ot,R.resourceName=void 0}return R.fragment=void 0,R}},sr={scheme:"wss",domainHost:gr.domainHost,parse:gr.parse,serialize:gr.serialize},Mr={},an="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ue="[0-9A-Fa-f]",dr=i(i("%[EFef]"+ue+"%"+ue+ue+"%"+ue+ue)+"|"+i("%[89A-Fa-f]"+ue+"%"+ue+ue)+"|"+i("%"+ue+ue)),Lr="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",Pi="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",Bn=n(Pi,'[\\"\\\\]'),ni="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",dn=new RegExp(an,"g"),Xe=new RegExp(dr,"g"),$s=new RegExp(n("[^]",Lr,"[\\.]",'[\\"]',Bn),"g"),An=new RegExp(n("[^]",an,ni),"g"),Hn=An;function Qr(R){var L=q(R);return L.match(dn)?L:R}var ii={scheme:"mailto",parse:function(R,L){var z=R,Z=z.to=z.path?z.path.split(","):[];if(z.path=void 0,z.query){for(var tt=!1,Ot={},Tt=z.query.split("&"),Ht=0,ve=Tt.length;Ht<ve;++Ht){var te=Tt[Ht].split("=");switch(te[0]){case"to":for(var zt=te[1].split(","),qt=0,le=zt.length;qt<le;++qt)Z.push(zt[qt]);break;case"subject":z.subject=Yt(te[1],L);break;case"body":z.body=Yt(te[1],L);break;default:tt=!0,Ot[Yt(te[0],L)]=Yt(te[1],L);break}}tt&&(z.headers=Ot)}z.query=void 0;for(var jt=0,Gt=Z.length;jt<Gt;++jt){var ie=Z[jt].split("@");if(ie[0]=Yt(ie[0]),L.unicodeSupport)ie[1]=Yt(ie[1],L).toLowerCase();else try{ie[1]=M.toASCII(Yt(ie[1],L).toLowerCase())}catch(Ue){z.error=z.error||"Email address's domain name can not be converted to ASCII via punycode: "+Ue}Z[jt]=ie.join("@")}return z},serialize:function(R,L){var z=R,Z=a(R.to);if(Z){for(var tt=0,Ot=Z.length;tt<Ot;++tt){var Tt=String(Z[tt]),Ht=Tt.lastIndexOf("@"),ve=Tt.slice(0,Ht).replace(Xe,Qr).replace(Xe,s).replace($s,G),te=Tt.slice(Ht+1);try{te=L.iri?M.toUnicode(te):M.toASCII(Yt(te,L).toLowerCase())}catch(jt){z.error=z.error||"Email address's domain name can not be converted to "+(L.iri?"Unicode":"ASCII")+" via punycode: "+jt}Z[tt]=ve+"@"+te}z.path=Z.join(",")}var zt=R.headers=R.headers||{};R.subject&&(zt.subject=R.subject),R.body&&(zt.body=R.body);var qt=[];for(var le in zt)zt[le]!==Mr[le]&&qt.push(le.replace(Xe,Qr).replace(Xe,s).replace(An,G)+"="+zt[le].replace(Xe,Qr).replace(Xe,s).replace(Hn,G));return qt.length&&(z.query=qt.join("&")),z}},qn=/^([^\:]+)\:(.*)/,Sn={scheme:"urn",parse:function(R,L){var z=R.path&&R.path.match(qn),Z=R;if(z){var tt=L.scheme||Z.scheme||"urn",Ot=z[1].toLowerCase(),Tt=z[2],Ht=tt+":"+(L.nid||Ot),ve=I[Ht];Z.nid=Ot,Z.nss=Tt,Z.path=void 0,ve&&(Z=ve.parse(Z,L))}else Z.error=Z.error||"URN can not be parsed.";return Z},serialize:function(R,L){var z=L.scheme||R.scheme||"urn",Z=R.nid,tt=z+":"+(L.nid||Z),Ot=I[tt];Ot&&(R=Ot.serialize(R,L));var Tt=R,Ht=R.nss;return Tt.path=(Z||L.nid)+":"+Ht,Tt}},Ti=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,oi={scheme:"urn:uuid",parse:function(R,L){var z=R;return z.uuid=z.nss,z.nss=void 0,!L.tolerant&&(!z.uuid||!z.uuid.match(Ti))&&(z.error=z.error||"UUID is not valid."),z},serialize:function(R,L){var z=R;return z.nss=(R.uuid||"").toLowerCase(),z}};I[fe.scheme]=fe,I[je.scheme]=je,I[gr.scheme]=gr,I[sr.scheme]=sr,I[ii.scheme]=ii,I[Sn.scheme]=Sn,I[oi.scheme]=oi,r.SCHEMES=I,r.pctEncChar=G,r.pctDecChars=q,r.parse=ot,r.removeDotSegments=bt,r.serialize=ut,r.resolveComponents=It,r.resolve=Vt,r.normalize=Ut,r.equal=Kt,r.escapeComponent=ne,r.unescapeComponent=Yt,Object.defineProperty(r,"__esModule",{value:!0})})})(Jg,Jg.exports);var L5=Jg.exports;const cU=kn(L5),uU=Xt({__proto__:null,default:cU},[L5]),hU=Jt(uU);Object.defineProperty(Xg,"__esModule",{value:!0});const V5=hU;V5.code='require("ajv/dist/runtime/uri").default';var dU=Xg.default=V5;const fU=Xt({__proto__:null,default:dU},[Xg]),pU=Jt(fU);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=Tc;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=ke;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=zg,i=Hg,o=w$,s=Yg,a=ke,c=Gd,l=Ud,u=Be,h=lU,f=pU,d=(X,O)=>new RegExp(X,O);d.code="new RegExp";const p=["removeAdditional","useDefaults","coerceTypes"],g=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),v={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},b={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},y=200;function m(X){var O,C,$,_,P,M,I,G,q,et,st,mt,Lt,J,Q,ot,lt,ct,dt,$t,vt,bt,ut,It,Vt;const Ut=X.strict,Kt=(O=X.code)===null||O===void 0?void 0:O.optimize,ne=Kt===!0||Kt===void 0?1:Kt||0,Yt=($=(C=X.code)===null||C===void 0?void 0:C.regExp)!==null&&$!==void 0?$:d,fe=(_=X.uriResolver)!==null&&_!==void 0?_:f.default;return{strictSchema:(M=(P=X.strictSchema)!==null&&P!==void 0?P:Ut)!==null&&M!==void 0?M:!0,strictNumbers:(G=(I=X.strictNumbers)!==null&&I!==void 0?I:Ut)!==null&&G!==void 0?G:!0,strictTypes:(et=(q=X.strictTypes)!==null&&q!==void 0?q:Ut)!==null&&et!==void 0?et:"log",strictTuples:(mt=(st=X.strictTuples)!==null&&st!==void 0?st:Ut)!==null&&mt!==void 0?mt:"log",strictRequired:(J=(Lt=X.strictRequired)!==null&&Lt!==void 0?Lt:Ut)!==null&&J!==void 0?J:!1,code:X.code?{...X.code,optimize:ne,regExp:Yt}:{optimize:ne,regExp:Yt},loopRequired:(Q=X.loopRequired)!==null&&Q!==void 0?Q:y,loopEnum:(ot=X.loopEnum)!==null&&ot!==void 0?ot:y,meta:(lt=X.meta)!==null&<!==void 0?lt:!0,messages:(ct=X.messages)!==null&&ct!==void 0?ct:!0,inlineRefs:(dt=X.inlineRefs)!==null&&dt!==void 0?dt:!0,schemaId:($t=X.schemaId)!==null&&$t!==void 0?$t:"$id",addUsedSchema:(vt=X.addUsedSchema)!==null&&vt!==void 0?vt:!0,validateSchema:(bt=X.validateSchema)!==null&&bt!==void 0?bt:!0,validateFormats:(ut=X.validateFormats)!==null&&ut!==void 0?ut:!0,unicodeRegExp:(It=X.unicodeRegExp)!==null&&It!==void 0?It:!0,int32range:(Vt=X.int32range)!==null&&Vt!==void 0?Vt:!0,uriResolver:fe}}class x{constructor(O={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,O=this.opts={...O,...m(O)};const{es5:C,lines:$}=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:g,es5:C,lines:$}),this.logger=Y(O.logger);const _=O.validateFormats;O.validateFormats=!1,this.RULES=(0,o.getRules)(),A.call(this,v,O,"NOT SUPPORTED"),A.call(this,b,O,"DEPRECATED","warn"),this._metaOpts=U.call(this),O.formats&&D.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),O.keywords&&V.call(this,O.keywords),typeof O.meta=="object"&&this.addMetaSchema(O.meta),k.call(this),O.validateFormats=_}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:O,meta:C,schemaId:$}=this.opts;let _=h;$==="id"&&(_={...h},_.id=_.$id,delete _.$id),C&&O&&this.addMetaSchema(_,_[$],!1)}defaultMeta(){const{meta:O,schemaId:C}=this.opts;return this.opts.defaultMeta=typeof O=="object"?O[C]||O:void 0}validate(O,C){let $;if(typeof O=="string"){if($=this.getSchema(O),!$)throw new Error(`no schema with key or ref "${O}"`)}else $=this.compile(O);const _=$(C);return"$async"in $||(this.errors=$.errors),_}compile(O,C){const $=this._addSchema(O,C);return $.validate||this._compileSchemaEnv($)}compileAsync(O,C){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:$}=this.opts;return _.call(this,O,C);async function _(et,st){await P.call(this,et.$schema);const mt=this._addSchema(et,st);return mt.validate||M.call(this,mt)}async function P(et){et&&!this.getSchema(et)&&await _.call(this,{$ref:et},!0)}async function M(et){try{return this._compileSchemaEnv(et)}catch(st){if(!(st instanceof i.default))throw st;return I.call(this,st),await G.call(this,st.missingSchema),M.call(this,et)}}function I({missingSchema:et,missingRef:st}){if(this.refs[et])throw new Error(`AnySchema ${et} is loaded but ${st} cannot be resolved`)}async function G(et){const st=await q.call(this,et);this.refs[et]||await P.call(this,st.$schema),this.refs[et]||this.addSchema(st,et,C)}async function q(et){const st=this._loading[et];if(st)return st;try{return await(this._loading[et]=$(et))}finally{delete this._loading[et]}}}addSchema(O,C,$,_=this.opts.validateSchema){if(Array.isArray(O)){for(const M of O)this.addSchema(M,void 0,$,_);return this}let P;if(typeof O=="object"){const{schemaId:M}=this.opts;if(P=O[M],P!==void 0&&typeof P!="string")throw new Error(`schema ${M} must be string`)}return C=(0,c.normalizeId)(C||P),this._checkUnique(C),this.schemas[C]=this._addSchema(O,$,C,_,!0),this}addMetaSchema(O,C,$=this.opts.validateSchema){return this.addSchema(O,C,!0,$),this}validateSchema(O,C){if(typeof O=="boolean")return!0;let $;if($=O.$schema,$!==void 0&&typeof $!="string")throw new Error("$schema must be a string");if($=$||this.opts.defaultMeta||this.defaultMeta(),!$)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const _=this.validate($,O);if(!_&&C){const P="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(P);else throw new Error(P)}return _}getSchema(O){let C;for(;typeof(C=E.call(this,O))=="string";)O=C;if(C===void 0){const{schemaId:$}=this.opts,_=new s.SchemaEnv({schema:{},schemaId:$});if(C=s.resolveSchema.call(this,_,O),!C)return;this.refs[O]=C}return C.validate||this._compileSchemaEnv(C)}removeSchema(O){if(O instanceof RegExp)return this._removeAllSchemas(this.schemas,O),this._removeAllSchemas(this.refs,O),this;switch(typeof O){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const C=E.call(this,O);return typeof C=="object"&&this._cache.delete(C.schema),delete this.schemas[O],delete this.refs[O],this}case"object":{const C=O;this._cache.delete(C);let $=O[this.opts.schemaId];return $&&($=(0,c.normalizeId)($),delete this.schemas[$],delete this.refs[$]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(O){for(const C of O)this.addKeyword(C);return this}addKeyword(O,C){let $;if(typeof O=="string")$=O,typeof C=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),C.keyword=$);else if(typeof O=="object"&&C===void 0){if(C=O,$=C.keyword,Array.isArray($)&&!$.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(nt.call(this,$,C),!C)return(0,u.eachItem)($,P=>ft.call(this,P)),this;_t.call(this,C);const _={...C,type:(0,l.getJSONTypes)(C.type),schemaType:(0,l.getJSONTypes)(C.schemaType)};return(0,u.eachItem)($,_.type.length===0?P=>ft.call(this,P,_):P=>_.type.forEach(M=>ft.call(this,P,_,M))),this}getKeyword(O){const C=this.RULES.all[O];return typeof C=="object"?C.definition:!!C}removeKeyword(O){const{RULES:C}=this;delete C.keywords[O],delete C.all[O];for(const $ of C.rules){const _=$.rules.findIndex(P=>P.keyword===O);_>=0&&$.rules.splice(_,1)}return this}addFormat(O,C){return typeof C=="string"&&(C=new RegExp(C)),this.formats[O]=C,this}errorsText(O=this.errors,{separator:C=", ",dataVar:$="data"}={}){return!O||O.length===0?"No errors":O.map(_=>`${$}${_.instancePath} ${_.message}`).reduce((_,P)=>_+C+P)}$dataMetaSchema(O,C){const $=this.RULES.all;O=JSON.parse(JSON.stringify(O));for(const _ of C){const P=_.split("/").slice(1);let M=O;for(const I of P)M=M[I];for(const I in $){const G=$[I];if(typeof G!="object")continue;const{$data:q}=G.definition,et=M[I];q&&et&&(M[I]=at(et))}}return O}_removeAllSchemas(O,C){for(const $ in O){const _=O[$];(!C||C.test($))&&(typeof _=="string"?delete O[$]:_&&!_.meta&&(this._cache.delete(_.schema),delete O[$]))}}_addSchema(O,C,$,_=this.opts.validateSchema,P=this.opts.addUsedSchema){let M;const{schemaId:I}=this.opts;if(typeof O=="object")M=O[I];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof O!="boolean")throw new Error("schema must be object or boolean")}let G=this._cache.get(O);if(G!==void 0)return G;$=(0,c.normalizeId)(M||$);const q=c.getSchemaRefs.call(this,O,$);return G=new s.SchemaEnv({schema:O,schemaId:I,meta:C,baseId:$,localRefs:q}),this._cache.set(G.schema,G),P&&!$.startsWith("#")&&($&&this._checkUnique($),this.refs[$]=G),_&&this.validateSchema(O,!0),G}_checkUnique(O){if(this.schemas[O]||this.refs[O])throw new Error(`schema with key or id "${O}" already exists`)}_compileSchemaEnv(O){if(O.meta?this._compileMetaSchema(O):s.compileSchema.call(this,O),!O.validate)throw new Error("ajv implementation error");return O.validate}_compileMetaSchema(O){const C=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,O)}finally{this.opts=C}}}e.default=x,x.ValidationError=n.default,x.MissingRefError=i.default;function A(X,O,C,$="error"){for(const _ in X){const P=_;P in O&&this.logger[$](`${C}: option ${_}. ${X[P]}`)}}function E(X){return X=(0,c.normalizeId)(X),this.schemas[X]||this.refs[X]}function k(){const X=this.opts.schemas;if(X)if(Array.isArray(X))this.addSchema(X);else for(const O in X)this.addSchema(X[O],O)}function D(){for(const X in this.opts.formats){const O=this.opts.formats[X];O&&this.addFormat(X,O)}}function V(X){if(Array.isArray(X)){this.addVocabulary(X);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const O in X){const C=X[O];C.keyword||(C.keyword=O),this.addKeyword(C)}}function U(){const X={...this.opts};for(const O of p)delete X[O];return X}const K={log(){},warn(){},error(){}};function Y(X){if(X===!1)return K;if(X===void 0)return console;if(X.log&&X.warn&&X.error)return X;throw new Error("logger must implement log, warn and error methods")}const it=/^[a-z_$][a-z0-9_$:-]*$/i;function nt(X,O){const{RULES:C}=this;if((0,u.eachItem)(X,$=>{if(C.keywords[$])throw new Error(`Keyword ${$} is already defined`);if(!it.test($))throw new Error(`Keyword ${$} has invalid name`)}),!!O&&O.$data&&!("code"in O||"validate"in O))throw new Error('$data keyword must have "code" or "validate" function')}function ft(X,O,C){var $;const _=O?.post;if(C&&_)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:P}=this;let M=_?P.post:P.rules.find(({type:G})=>G===C);if(M||(M={type:C,rules:[]},P.rules.push(M)),P.keywords[X]=!0,!O)return;const I={keyword:X,definition:{...O,type:(0,l.getJSONTypes)(O.type),schemaType:(0,l.getJSONTypes)(O.schemaType)}};O.before?xt.call(this,M,I,O.before):M.rules.push(I),P.all[X]=I,($=O.implements)===null||$===void 0||$.forEach(G=>this.addKeyword(G))}function xt(X,O,C){const $=X.rules.findIndex(_=>_.keyword===C);$>=0?X.rules.splice($,0,O):(X.rules.push(O),this.logger.warn(`rule ${C} is not defined`))}function _t(X){let{metaSchema:O}=X;O!==void 0&&(X.$data&&this.opts.$data&&(O=at(O)),X.validateSchema=this.compile(O,!0))}const yt={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function at(X){return{anyOf:[X,yt]}}})(Cg);const mU=kn(Cg),gU=Xt({__proto__:null,default:mU},[Cg]),vU=Jt(gU);var Wg={},Qg={},Zg={};Object.defineProperty(Zg,"__esModule",{value:!0});const yU={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};var _U=Zg.default=yU;const bU=Xt({__proto__:null,default:_U},[Zg]),wU=Jt(bU);var ia={};Object.defineProperty(ia,"__esModule",{value:!0});var U5=ia.callRef=H5=ia.getValidate=void 0;const xU=Hg,z5=bi,Pn=ke,Qa=bo,G5=Yg,Kd=Be,SU={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:o,validateName:s,opts:a,self:c}=n,{root:l}=o;if((r==="#"||r==="#/")&&i===l.baseId)return h();const u=G5.resolveRef.call(c,l,i,r);if(u===void 0)throw new xU.default(n.opts.uriResolver,i,r);if(u instanceof G5.SchemaEnv)return f(u);return d(u);function h(){if(o===l)return Yd(e,s,o,o.$async);const p=t.scopeValue("root",{ref:l});return Yd(e,(0,Pn._)`${p}.validate`,l,l.$async)}function f(p){const g=B5(e,p);Yd(e,g,p,p.$async)}function d(p){const g=t.scopeValue("schema",a.code.source===!0?{ref:p,code:(0,Pn.stringify)(p)}:{ref:p}),v=t.name("valid"),b=e.subschema({schema:p,dataTypes:[],schemaPath:Pn.nil,topSchemaRef:g,errSchemaPath:r},v);e.mergeEvaluated(b),e.ok(v)}}};function B5(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Pn._)`${r.scopeValue("wrapper",{ref:t})}.validate`}var H5=ia.getValidate=B5;function Yd(e,t,r,n){const{gen:i,it:o}=e,{allErrors:s,schemaEnv:a,opts:c}=o,l=c.passContext?Qa.default.this:Pn.nil;n?u():h();function u(){if(!a.$async)throw new Error("async schema referenced by sync schema");const p=i.let("valid");i.try(()=>{i.code((0,Pn._)`await ${(0,z5.callValidateCode)(e,t,l)}`),d(t),s||i.assign(p,!0)},g=>{i.if((0,Pn._)`!(${g} instanceof ${o.ValidationError})`,()=>i.throw(g)),f(g),s||i.assign(p,!1)}),e.ok(p)}function h(){e.result((0,z5.callValidateCode)(e,t,l),()=>d(t),()=>f(t))}function f(p){const g=(0,Pn._)`${p}.errors`;i.assign(Qa.default.vErrors,(0,Pn._)`${Qa.default.vErrors} === null ? ${g} : ${Qa.default.vErrors}.concat(${g})`),i.assign(Qa.default.errors,(0,Pn._)`${Qa.default.vErrors}.length`)}function d(p){var g;if(!o.opts.unevaluated)return;const v=(g=r?.validate)===null||g===void 0?void 0:g.evaluated;if(o.props!==!0)if(v&&!v.dynamicProps)v.props!==void 0&&(o.props=Kd.mergeEvaluated.props(i,v.props,o.props));else{const b=i.var("props",(0,Pn._)`${p}.evaluated.props`);o.props=Kd.mergeEvaluated.props(i,b,o.props,Pn.Name)}if(o.items!==!0)if(v&&!v.dynamicItems)v.items!==void 0&&(o.items=Kd.mergeEvaluated.items(i,v.items,o.items));else{const b=i.var("items",(0,Pn._)`${p}.evaluated.items`);o.items=Kd.mergeEvaluated.items(i,b,o.items,Pn.Name)}}}U5=ia.callRef=Yd;var $U=ia.default=SU;const EU=Xt({__proto__:null,get callRef(){return U5},default:$U,get getValidate(){return H5}},[ia]),CU=Jt(EU);Object.defineProperty(Qg,"__esModule",{value:!0});const kU=wU,PU=CU,TU=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",kU.default,PU.default];var OU=Qg.default=TU;const NU=Xt({__proto__:null,default:OU},[Qg]),AU=Jt(NU);var tv={},ev={};Object.defineProperty(ev,"__esModule",{value:!0});const Xd=ke,as=Xd.operators,Jd={maximum:{okStr:"<=",ok:as.LTE,fail:as.GT},minimum:{okStr:">=",ok:as.GTE,fail:as.LT},exclusiveMaximum:{okStr:"<",ok:as.LT,fail:as.GTE},exclusiveMinimum:{okStr:">",ok:as.GT,fail:as.LTE}},DU={message:({keyword:e,schemaCode:t})=>(0,Xd.str)`must be ${Jd[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Xd._)`{comparison: ${Jd[e].okStr}, limit: ${t}}`},RU={keyword:Object.keys(Jd),type:"number",schemaType:"number",$data:!0,error:DU,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Xd._)`${r} ${Jd[t].fail} ${n} || isNaN(${r})`)}};var IU=ev.default=RU;const jU=Xt({__proto__:null,default:IU},[ev]),FU=Jt(jU);var rv={};Object.defineProperty(rv,"__esModule",{value:!0});const Oc=ke,MU={message:({schemaCode:e})=>(0,Oc.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Oc._)`{multipleOf: ${e}}`},LU={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:MU,code(e){const{gen:t,data:r,schemaCode:n,it:i}=e,o=i.opts.multipleOfPrecision,s=t.let("res"),a=o?(0,Oc._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${o}`:(0,Oc._)`${s} !== parseInt(${s})`;e.fail$data((0,Oc._)`(${n} === 0 || (${s} = ${r}/${n}, ${a}))`)}};var VU=rv.default=LU;const UU=Xt({__proto__:null,default:VU},[rv]),zU=Jt(UU);var nv={},iv={};Object.defineProperty(iv,"__esModule",{value:!0});function q5(e){const t=e.length;let r=0,n=0,i;for(;n<t;)r++,i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<t&&(i=e.charCodeAt(n),(i&64512)===56320&&n++);return r}var GU=iv.default=q5;q5.code='require("ajv/dist/runtime/ucs2length").default';const BU=Xt({__proto__:null,default:GU},[iv]),HU=Jt(BU);Object.defineProperty(nv,"__esModule",{value:!0});const oa=ke,qU=Be,KU=HU,YU={message({keyword:e,schemaCode:t}){const r=e==="maxLength"?"more":"fewer";return(0,oa.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,oa._)`{limit: ${e}}`},XU={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:YU,code(e){const{keyword:t,data:r,schemaCode:n,it:i}=e,o=t==="maxLength"?oa.operators.GT:oa.operators.LT,s=i.opts.unicode===!1?(0,oa._)`${r}.length`:(0,oa._)`${(0,qU.useFunc)(e.gen,KU.default)}(${r})`;e.fail$data((0,oa._)`${s} ${o} ${n}`)}};var JU=nv.default=XU;const WU=Xt({__proto__:null,default:JU},[nv]),QU=Jt(WU);var ov={};Object.defineProperty(ov,"__esModule",{value:!0});const ZU=bi,Wd=ke,tz={message:({schemaCode:e})=>(0,Wd.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,Wd._)`{pattern: ${e}}`},ez={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:tz,code(e){const{data:t,$data:r,schema:n,schemaCode:i,it:o}=e,s=o.opts.unicodeRegExp?"u":"",a=r?(0,Wd._)`(new RegExp(${i}, ${s}))`:(0,ZU.usePattern)(e,n);e.fail$data((0,Wd._)`!${a}.test(${t})`)}};var rz=ov.default=ez;const nz=Xt({__proto__:null,default:rz},[ov]),iz=Jt(nz);var sv={};Object.defineProperty(sv,"__esModule",{value:!0});const Nc=ke,oz={message({keyword:e,schemaCode:t}){const r=e==="maxProperties"?"more":"fewer";return(0,Nc.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,Nc._)`{limit: ${e}}`},sz={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:oz,code(e){const{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?Nc.operators.GT:Nc.operators.LT;e.fail$data((0,Nc._)`Object.keys(${r}).length ${i} ${n}`)}};var az=sv.default=sz;const lz=Xt({__proto__:null,default:az},[sv]),cz=Jt(lz);var av={};Object.defineProperty(av,"__esModule",{value:!0});const Ac=bi,Dc=ke,uz=Be,hz={message:({params:{missingProperty:e}})=>(0,Dc.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Dc._)`{missingProperty: ${e}}`},dz={keyword:"required",type:"object",schemaType:"array",$data:!0,error:hz,code(e){const{gen:t,schema:r,schemaCode:n,data:i,$data:o,it:s}=e,{opts:a}=s;if(!o&&r.length===0)return;const c=r.length>=a.loopRequired;if(s.allErrors?l():u(),a.strictRequired){const d=e.parentSchema.properties,{definedProperties:p}=e.it;for(const g of r)if(d?.[g]===void 0&&!p.has(g)){const v=s.schemaEnv.baseId+s.errSchemaPath,b=`required property "${g}" is not defined at "${v}" (strictRequired)`;(0,uz.checkStrictMode)(s,b,s.opts.strictRequired)}}function l(){if(c||o)e.block$data(Dc.nil,h);else for(const d of r)(0,Ac.checkReportMissingProp)(e,d)}function u(){const d=t.let("missing");if(c||o){const p=t.let("valid",!0);e.block$data(p,()=>f(d,p)),e.ok(p)}else t.if((0,Ac.checkMissingProp)(e,r,d)),(0,Ac.reportMissingProp)(e,d),t.else()}function h(){t.forOf("prop",n,d=>{e.setParams({missingProperty:d}),t.if((0,Ac.noPropertyInData)(t,i,d,a.ownProperties),()=>e.error())})}function f(d,p){e.setParams({missingProperty:d}),t.forOf(d,n,()=>{t.assign(p,(0,Ac.propertyInData)(t,i,d,a.ownProperties)),t.if((0,Dc.not)(p),()=>{e.error(),t.break()})},Dc.nil)}}};var fz=av.default=dz;const pz=Xt({__proto__:null,default:fz},[av]),mz=Jt(pz);var lv={};Object.defineProperty(lv,"__esModule",{value:!0});const Rc=ke,gz={message({keyword:e,schemaCode:t}){const r=e==="maxItems"?"more":"fewer";return(0,Rc.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,Rc._)`{limit: ${e}}`},vz={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:gz,code(e){const{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?Rc.operators.GT:Rc.operators.LT;e.fail$data((0,Rc._)`${r}.length ${i} ${n}`)}};var yz=lv.default=vz;const _z=Xt({__proto__:null,default:yz},[lv]),bz=Jt(_z);var cv={},uv={};Object.defineProperty(uv,"__esModule",{value:!0});const K5=r5;K5.code='require("ajv/dist/runtime/equal").default';var wz=uv.default=K5;const xz=Xt({__proto__:null,default:wz},[uv]),hv=Jt(xz);Object.defineProperty(cv,"__esModule",{value:!0});const dv=Ud,on=ke,Sz=Be,$z=hv,Ez={message:({params:{i:e,j:t}})=>(0,on.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,on._)`{i: ${e}, j: ${t}}`},Cz={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Ez,code(e){const{gen:t,data:r,$data:n,schema:i,parentSchema:o,schemaCode:s,it:a}=e;if(!n&&!i)return;const c=t.let("valid"),l=o.items?(0,dv.getSchemaTypes)(o.items):[];e.block$data(c,u,(0,on._)`${s} === false`),e.ok(c);function u(){const p=t.let("i",(0,on._)`${r}.length`),g=t.let("j");e.setParams({i:p,j:g}),t.assign(c,!0),t.if((0,on._)`${p} > 1`,()=>(h()?f:d)(p,g))}function h(){return l.length>0&&!l.some(p=>p==="object"||p==="array")}function f(p,g){const v=t.name("item"),b=(0,dv.checkDataTypes)(l,v,a.opts.strictNumbers,dv.DataType.Wrong),y=t.const("indices",(0,on._)`{}`);t.for((0,on._)`;${p}--;`,()=>{t.let(v,(0,on._)`${r}[${p}]`),t.if(b,(0,on._)`continue`),l.length>1&&t.if((0,on._)`typeof ${v} == "string"`,(0,on._)`${v} += "_"`),t.if((0,on._)`typeof ${y}[${v}] == "number"`,()=>{t.assign(g,(0,on._)`${y}[${v}]`),e.error(),t.assign(c,!1).break()}).code((0,on._)`${y}[${v}] = ${p}`)})}function d(p,g){const v=(0,Sz.useFunc)(t,$z.default),b=t.name("outer");t.label(b).for((0,on._)`;${p}--;`,()=>t.for((0,on._)`${g} = ${p}; ${g}--;`,()=>t.if((0,on._)`${v}(${r}[${p}], ${r}[${g}])`,()=>{e.error(),t.assign(c,!1).break(b)})))}}};var kz=cv.default=Cz;const Pz=Xt({__proto__:null,default:kz},[cv]),Tz=Jt(Pz);var fv={};Object.defineProperty(fv,"__esModule",{value:!0});const pv=ke,Oz=Be,Nz=hv,Az={message:"must be equal to constant",params:({schemaCode:e})=>(0,pv._)`{allowedValue: ${e}}`},Dz={keyword:"const",$data:!0,error:Az,code(e){const{gen:t,data:r,$data:n,schemaCode:i,schema:o}=e;n||o&&typeof o=="object"?e.fail$data((0,pv._)`!${(0,Oz.useFunc)(t,Nz.default)}(${r}, ${i})`):e.fail((0,pv._)`${o} !== ${r}`)}};var Rz=fv.default=Dz;const Iz=Xt({__proto__:null,default:Rz},[fv]),jz=Jt(Iz);var mv={};Object.defineProperty(mv,"__esModule",{value:!0});const Ic=ke,Fz=Be,Mz=hv,Lz={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Ic._)`{allowedValues: ${e}}`},Vz={keyword:"enum",schemaType:"array",$data:!0,error:Lz,code(e){const{gen:t,data:r,$data:n,schema:i,schemaCode:o,it:s}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");const a=i.length>=s.opts.loopEnum;let c;const l=()=>c??(c=(0,Fz.useFunc)(t,Mz.default));let u;if(a||n)u=t.let("valid"),e.block$data(u,h);else{if(!Array.isArray(i))throw new Error("ajv implementation error");const d=t.const("vSchema",o);u=(0,Ic.or)(...i.map((p,g)=>f(d,g)))}e.pass(u);function h(){t.assign(u,!1),t.forOf("v",o,d=>t.if((0,Ic._)`${l()}(${r}, ${d})`,()=>t.assign(u,!0).break()))}function f(d,p){const g=i[p];return typeof g=="object"&&g!==null?(0,Ic._)`${l()}(${r}, ${d}[${p}])`:(0,Ic._)`${r} === ${g}`}}};var Uz=mv.default=Vz;const zz=Xt({__proto__:null,default:Uz},[mv]),Gz=Jt(zz);Object.defineProperty(tv,"__esModule",{value:!0});const Bz=FU,Hz=zU,qz=QU,Kz=iz,Yz=cz,Xz=mz,Jz=bz,Wz=Tz,Qz=jz,Zz=Gz,tG=[Bz.default,Hz.default,qz.default,Kz.default,Yz.default,Xz.default,Jz.default,Wz.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Qz.default,Zz.default];var eG=tv.default=tG;const rG=Xt({__proto__:null,default:eG},[tv]),nG=Jt(rG);var gv={},jc={};Object.defineProperty(jc,"__esModule",{value:!0});var Y5=jc.validateAdditionalItems=void 0;const sa=ke,vv=Be,iG={message:({params:{len:e}})=>(0,sa.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,sa._)`{limit: ${e}}`},oG={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:iG,code(e){const{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,vv.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}X5(e,n)}};function X5(e,t){const{gen:r,schema:n,data:i,keyword:o,it:s}=e;s.items=!0;const a=r.const("len",(0,sa._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,sa._)`${a} <= ${t.length}`);else if(typeof n=="object"&&!(0,vv.alwaysValidSchema)(s,n)){const l=r.var("valid",(0,sa._)`${a} <= ${t.length}`);r.if((0,sa.not)(l),()=>c(l)),e.ok(l)}function c(l){r.forRange("i",t.length,a,u=>{e.subschema({keyword:o,dataProp:u,dataPropType:vv.Type.Num},l),s.allErrors||r.if((0,sa.not)(l),()=>r.break())})}}Y5=jc.validateAdditionalItems=X5;var sG=jc.default=oG;const aG=Xt({__proto__:null,default:sG,get validateAdditionalItems(){return Y5}},[jc]),J5=Jt(aG);var yv={},Fc={};Object.defineProperty(Fc,"__esModule",{value:!0});var W5=Fc.validateTuple=void 0;const Q5=ke,Qd=Be,lG=bi,cG={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return Z5(e,"additionalItems",t);r.items=!0,!(0,Qd.alwaysValidSchema)(r,t)&&e.ok((0,lG.validateArray)(e))}};function Z5(e,t,r=e.schema){const{gen:n,parentSchema:i,data:o,keyword:s,it:a}=e;u(i),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=Qd.mergeEvaluated.items(n,r.length,a.items));const c=n.name("valid"),l=n.const("len",(0,Q5._)`${o}.length`);r.forEach((h,f)=>{(0,Qd.alwaysValidSchema)(a,h)||(n.if((0,Q5._)`${l} > ${f}`,()=>e.subschema({keyword:s,schemaProp:f,dataProp:f},c)),e.ok(c))});function u(h){const{opts:f,errSchemaPath:d}=a,p=r.length,g=p===h.minItems&&(p===h.maxItems||h[t]===!1);if(f.strictTuples&&!g){const v=`"${s}" is ${p}-tuple, but minItems or maxItems/${t} are not specified or different at path "${d}"`;(0,Qd.checkStrictMode)(a,v,f.strictTuples)}}}W5=Fc.validateTuple=Z5;var uG=Fc.default=cG;const hG=Xt({__proto__:null,default:uG,get validateTuple(){return W5}},[Fc]),tE=Jt(hG);Object.defineProperty(yv,"__esModule",{value:!0});const dG=tE,fG={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,dG.validateTuple)(e,"items")};var pG=yv.default=fG;const mG=Xt({__proto__:null,default:pG},[yv]),gG=Jt(mG);var _v={};Object.defineProperty(_v,"__esModule",{value:!0});const eE=ke,vG=Be,yG=bi,_G=J5,bG={message:({params:{len:e}})=>(0,eE.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,eE._)`{limit: ${e}}`},wG={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:bG,code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,vG.alwaysValidSchema)(n,t)&&(i?(0,_G.validateAdditionalItems)(e,i):e.ok((0,yG.validateArray)(e)))}};var xG=_v.default=wG;const SG=Xt({__proto__:null,default:xG},[_v]),$G=Jt(SG);var bv={};Object.defineProperty(bv,"__esModule",{value:!0});const Zn=ke,Zd=Be,EG={message:({params:{min:e,max:t}})=>t===void 0?(0,Zn.str)`must contain at least ${e} valid item(s)`:(0,Zn.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,Zn._)`{minContains: ${e}}`:(0,Zn._)`{minContains: ${e}, maxContains: ${t}}`},CG={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:EG,code(e){const{gen:t,schema:r,parentSchema:n,data:i,it:o}=e;let s,a;const{minContains:c,maxContains:l}=n;o.opts.next?(s=c===void 0?1:c,a=l):s=1;const u=t.const("len",(0,Zn._)`${i}.length`);if(e.setParams({min:s,max:a}),a===void 0&&s===0){(0,Zd.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&s>a){(0,Zd.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Zd.alwaysValidSchema)(o,r)){let g=(0,Zn._)`${u} >= ${s}`;a!==void 0&&(g=(0,Zn._)`${g} && ${u} <= ${a}`),e.pass(g);return}o.items=!0;const h=t.name("valid");a===void 0&&s===1?d(h,()=>t.if(h,()=>t.break())):s===0?(t.let(h,!0),a!==void 0&&t.if((0,Zn._)`${i}.length > 0`,f)):(t.let(h,!1),f()),e.result(h,()=>e.reset());function f(){const g=t.name("_valid"),v=t.let("count",0);d(g,()=>t.if(g,()=>p(v)))}function d(g,v){t.forRange("i",0,u,b=>{e.subschema({keyword:"contains",dataProp:b,dataPropType:Zd.Type.Num,compositeRule:!0},g),v()})}function p(g){t.code((0,Zn._)`${g}++`),a===void 0?t.if((0,Zn._)`${g} >= ${s}`,()=>t.assign(h,!0).break()):(t.if((0,Zn._)`${g} > ${a}`,()=>t.assign(h,!1).break()),s===1?t.assign(h,!0):t.if((0,Zn._)`${g} >= ${s}`,()=>t.assign(h,!0)))}}};var kG=bv.default=CG;const PG=Xt({__proto__:null,default:kG},[bv]),TG=Jt(PG);var wv={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=ke,r=Be,n=bi;e.error={message:({params:{property:c,depsCount:l,deps:u}})=>{const h=l===1?"property":"properties";return(0,t.str)`must have ${h} ${u} when property ${c} is present`},params:({params:{property:c,depsCount:l,deps:u,missingProperty:h}})=>(0,t._)`{property: ${c},
|
|
73
|
-
missingProperty: ${h},
|
|
74
|
-
depsCount: ${l},
|
|
75
|
-
deps: ${u}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(c){const[l,u]=o(c);s(c,l),a(c,u)}};function o({schema:c}){const l={},u={};for(const h in c){if(h==="__proto__")continue;const f=Array.isArray(c[h])?l:u;f[h]=c[h]}return[l,u]}function s(c,l=c.schema){const{gen:u,data:h,it:f}=c;if(Object.keys(l).length===0)return;const d=u.let("missing");for(const p in l){const g=l[p];if(g.length===0)continue;const v=(0,n.propertyInData)(u,h,p,f.opts.ownProperties);c.setParams({property:p,depsCount:g.length,deps:g.join(", ")}),f.allErrors?u.if(v,()=>{for(const b of g)(0,n.checkReportMissingProp)(c,b)}):(u.if((0,t._)`${v} && (${(0,n.checkMissingProp)(c,g,d)})`),(0,n.reportMissingProp)(c,d),u.else())}}e.validatePropertyDeps=s;function a(c,l=c.schema){const{gen:u,data:h,keyword:f,it:d}=c,p=u.name("valid");for(const g in l)(0,r.alwaysValidSchema)(d,l[g])||(u.if((0,n.propertyInData)(u,h,g,d.opts.ownProperties),()=>{const v=c.subschema({keyword:f,schemaProp:g},p);c.mergeValidEvaluated(v,p)},()=>u.var(p,!0)),c.ok(p))}e.validateSchemaDeps=a,e.default=i})(wv);const OG=kn(wv),NG=Xt({__proto__:null,default:OG},[wv]),AG=Jt(NG);var xv={};Object.defineProperty(xv,"__esModule",{value:!0});const rE=ke,DG=Be,RG={message:"property name must be valid",params:({params:e})=>(0,rE._)`{propertyName: ${e.propertyName}}`},IG={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:RG,code(e){const{gen:t,schema:r,data:n,it:i}=e;if((0,DG.alwaysValidSchema)(i,r))return;const o=t.name("valid");t.forIn("key",n,s=>{e.setParams({propertyName:s}),e.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},o),t.if((0,rE.not)(o),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(o)}};var jG=xv.default=IG;const FG=Xt({__proto__:null,default:jG},[xv]),MG=Jt(FG);var Sv={};Object.defineProperty(Sv,"__esModule",{value:!0});const tf=bi,Si=ke,LG=bo,ef=Be,VG={message:"must NOT have additional properties",params:({params:e})=>(0,Si._)`{additionalProperty: ${e.additionalProperty}}`},UG={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:VG,code(e){const{gen:t,schema:r,parentSchema:n,data:i,errsCount:o,it:s}=e;if(!o)throw new Error("ajv implementation error");const{allErrors:a,opts:c}=s;if(s.props=!0,c.removeAdditional!=="all"&&(0,ef.alwaysValidSchema)(s,r))return;const l=(0,tf.allSchemaProperties)(n.properties),u=(0,tf.allSchemaProperties)(n.patternProperties);h(),e.ok((0,Si._)`${o} === ${LG.default.errors}`);function h(){t.forIn("key",i,v=>{!l.length&&!u.length?p(v):t.if(f(v),()=>p(v))})}function f(v){let b;if(l.length>8){const y=(0,ef.schemaRefOrVal)(s,n.properties,"properties");b=(0,tf.isOwnProperty)(t,y,v)}else l.length?b=(0,Si.or)(...l.map(y=>(0,Si._)`${v} === ${y}`)):b=Si.nil;return u.length&&(b=(0,Si.or)(b,...u.map(y=>(0,Si._)`${(0,tf.usePattern)(e,y)}.test(${v})`))),(0,Si.not)(b)}function d(v){t.code((0,Si._)`delete ${i}[${v}]`)}function p(v){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){d(v);return}if(r===!1){e.setParams({additionalProperty:v}),e.error(),a||t.break();return}if(typeof r=="object"&&!(0,ef.alwaysValidSchema)(s,r)){const b=t.name("valid");c.removeAdditional==="failing"?(g(v,b,!1),t.if((0,Si.not)(b),()=>{e.reset(),d(v)})):(g(v,b),a||t.if((0,Si.not)(b),()=>t.break()))}}function g(v,b,y){const m={keyword:"additionalProperties",dataProp:v,dataPropType:ef.Type.Str};y===!1&&Object.assign(m,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(m,b)}}};var zG=Sv.default=UG;const GG=Xt({__proto__:null,default:zG},[Sv]),nE=Jt(GG);var $v={};Object.defineProperty($v,"__esModule",{value:!0});const BG=Tc,iE=bi,Ev=Be,oE=nE,HG={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:n,data:i,it:o}=e;o.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&oE.default.code(new BG.KeywordCxt(o,oE.default,"additionalProperties"));const s=(0,iE.allSchemaProperties)(r);for(const h of s)o.definedProperties.add(h);o.opts.unevaluated&&s.length&&o.props!==!0&&(o.props=Ev.mergeEvaluated.props(t,(0,Ev.toHash)(s),o.props));const a=s.filter(h=>!(0,Ev.alwaysValidSchema)(o,r[h]));if(a.length===0)return;const c=t.name("valid");for(const h of a)l(h)?u(h):(t.if((0,iE.propertyInData)(t,i,h,o.opts.ownProperties)),u(h),o.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(h),e.ok(c);function l(h){return o.opts.useDefaults&&!o.compositeRule&&r[h].default!==void 0}function u(h){e.subschema({keyword:"properties",schemaProp:h,dataProp:h},c)}}};var qG=$v.default=HG;const KG=Xt({__proto__:null,default:qG},[$v]),YG=Jt(KG);var Cv={};Object.defineProperty(Cv,"__esModule",{value:!0});const sE=bi,rf=ke,aE=Be,lE=Be,XG={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:n,parentSchema:i,it:o}=e,{opts:s}=o,a=(0,sE.allSchemaProperties)(r),c=a.filter(g=>(0,aE.alwaysValidSchema)(o,r[g]));if(a.length===0||c.length===a.length&&(!o.opts.unevaluated||o.props===!0))return;const l=s.strictSchema&&!s.allowMatchingProperties&&i.properties,u=t.name("valid");o.props!==!0&&!(o.props instanceof rf.Name)&&(o.props=(0,lE.evaluatedPropsToName)(t,o.props));const{props:h}=o;f();function f(){for(const g of a)l&&d(g),o.allErrors?p(g):(t.var(u,!0),p(g),t.if(u))}function d(g){for(const v in l)new RegExp(g).test(v)&&(0,aE.checkStrictMode)(o,`property ${v} matches pattern ${g} (use allowMatchingProperties)`)}function p(g){t.forIn("key",n,v=>{t.if((0,rf._)`${(0,sE.usePattern)(e,g)}.test(${v})`,()=>{const b=c.includes(g);b||e.subschema({keyword:"patternProperties",schemaProp:g,dataProp:v,dataPropType:lE.Type.Str},u),o.opts.unevaluated&&h!==!0?t.assign((0,rf._)`${h}[${v}]`,!0):!b&&!o.allErrors&&t.if((0,rf.not)(u),()=>t.break())})})}}};var JG=Cv.default=XG;const WG=Xt({__proto__:null,default:JG},[Cv]),QG=Jt(WG);var kv={};Object.defineProperty(kv,"__esModule",{value:!0});const ZG=Be,tB={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,ZG.alwaysValidSchema)(n,r)){e.fail();return}const i=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};var eB=kv.default=tB;const rB=Xt({__proto__:null,default:eB},[kv]),nB=Jt(rB);var Pv={};Object.defineProperty(Pv,"__esModule",{value:!0});const iB=bi,oB={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:iB.validateUnion,error:{message:"must match a schema in anyOf"}};var sB=Pv.default=oB;const aB=Xt({__proto__:null,default:sB},[Pv]),lB=Jt(aB);var Tv={};Object.defineProperty(Tv,"__esModule",{value:!0});const nf=ke,cB=Be,uB={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,nf._)`{passingSchemas: ${e.passing}}`},hB={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:uB,code(e){const{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;const o=r,s=t.let("valid",!1),a=t.let("passing",null),c=t.name("_valid");e.setParams({passing:a}),t.block(l),e.result(s,()=>e.reset(),()=>e.error(!0));function l(){o.forEach((u,h)=>{let f;(0,cB.alwaysValidSchema)(i,u)?t.var(c,!0):f=e.subschema({keyword:"oneOf",schemaProp:h,compositeRule:!0},c),h>0&&t.if((0,nf._)`${c} && ${s}`).assign(s,!1).assign(a,(0,nf._)`[${a}, ${h}]`).else(),t.if(c,()=>{t.assign(s,!0),t.assign(a,h),f&&e.mergeEvaluated(f,nf.Name)})})}}};var dB=Tv.default=hB;const fB=Xt({__proto__:null,default:dB},[Tv]),pB=Jt(fB);var Ov={};Object.defineProperty(Ov,"__esModule",{value:!0});const mB=Be,gB={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const i=t.name("valid");r.forEach((o,s)=>{if((0,mB.alwaysValidSchema)(n,o))return;const a=e.subschema({keyword:"allOf",schemaProp:s},i);e.ok(i),e.mergeEvaluated(a)})}};var vB=Ov.default=gB;const yB=Xt({__proto__:null,default:vB},[Ov]),_B=Jt(yB);var Nv={};Object.defineProperty(Nv,"__esModule",{value:!0});const of=ke,cE=Be,bB={message:({params:e})=>(0,of.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,of._)`{failingKeyword: ${e.ifClause}}`},wB={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:bB,code(e){const{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,cE.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const i=uE(n,"then"),o=uE(n,"else");if(!i&&!o)return;const s=t.let("valid",!0),a=t.name("_valid");if(c(),e.reset(),i&&o){const u=t.let("ifClause");e.setParams({ifClause:u}),t.if(a,l("then",u),l("else",u))}else i?t.if(a,l("then")):t.if((0,of.not)(a),l("else"));e.pass(s,()=>e.error(!0));function c(){const u=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);e.mergeEvaluated(u)}function l(u,h){return()=>{const f=e.subschema({keyword:u},a);t.assign(s,a),e.mergeValidEvaluated(f,s),h?t.assign(h,(0,of._)`${u}`):e.setParams({ifClause:u})}}}};function uE(e,t){const r=e.schema[t];return r!==void 0&&!(0,cE.alwaysValidSchema)(e,r)}var xB=Nv.default=wB;const SB=Xt({__proto__:null,default:xB},[Nv]),$B=Jt(SB);var Av={};Object.defineProperty(Av,"__esModule",{value:!0});const EB=Be,CB={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,EB.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};var kB=Av.default=CB;const PB=Xt({__proto__:null,default:kB},[Av]),TB=Jt(PB);Object.defineProperty(gv,"__esModule",{value:!0});const OB=J5,NB=gG,AB=tE,DB=$G,RB=TG,IB=AG,jB=MG,FB=nE,MB=YG,LB=QG,VB=nB,UB=lB,zB=pB,GB=_B,BB=$B,HB=TB;function qB(e=!1){const t=[VB.default,UB.default,zB.default,GB.default,BB.default,HB.default,jB.default,FB.default,IB.default,MB.default,LB.default];return e?t.push(NB.default,DB.default):t.push(OB.default,AB.default),t.push(RB.default),t}var KB=gv.default=qB;const YB=Xt({__proto__:null,default:KB},[gv]),XB=Jt(YB);var Dv={},Rv={};Object.defineProperty(Rv,"__esModule",{value:!0});const Pr=ke,JB={message:({schemaCode:e})=>(0,Pr.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,Pr._)`{format: ${e}}`},WB={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:JB,code(e,t){const{gen:r,data:n,$data:i,schema:o,schemaCode:s,it:a}=e,{opts:c,errSchemaPath:l,schemaEnv:u,self:h}=a;if(!c.validateFormats)return;i?f():d();function f(){const p=r.scopeValue("formats",{ref:h.formats,code:c.code.formats}),g=r.const("fDef",(0,Pr._)`${p}[${s}]`),v=r.let("fType"),b=r.let("format");r.if((0,Pr._)`typeof ${g} == "object" && !(${g} instanceof RegExp)`,()=>r.assign(v,(0,Pr._)`${g}.type || "string"`).assign(b,(0,Pr._)`${g}.validate`),()=>r.assign(v,(0,Pr._)`"string"`).assign(b,g)),e.fail$data((0,Pr.or)(y(),m()));function y(){return c.strictSchema===!1?Pr.nil:(0,Pr._)`${s} && !${b}`}function m(){const x=u.$async?(0,Pr._)`(${g}.async ? await ${b}(${n}) : ${b}(${n}))`:(0,Pr._)`${b}(${n})`,A=(0,Pr._)`(typeof ${b} == "function" ? ${x} : ${b}.test(${n}))`;return(0,Pr._)`${b} && ${b} !== true && ${v} === ${t} && !${A}`}}function d(){const p=h.formats[o];if(!p){y();return}if(p===!0)return;const[g,v,b]=m(p);g===t&&e.pass(x());function y(){if(c.strictSchema===!1){h.logger.warn(A());return}throw new Error(A());function A(){return`unknown format "${o}" ignored in schema at path "${l}"`}}function m(A){const E=A instanceof RegExp?(0,Pr.regexpCode)(A):c.code.formats?(0,Pr._)`${c.code.formats}${(0,Pr.getProperty)(o)}`:void 0,k=r.scopeValue("formats",{key:o,ref:A,code:E});return typeof A=="object"&&!(A instanceof RegExp)?[A.type||"string",A.validate,(0,Pr._)`${k}.validate`]:["string",A,k]}function x(){if(typeof p=="object"&&!(p instanceof RegExp)&&p.async){if(!u.$async)throw new Error("async format in sync schema");return(0,Pr._)`await ${b}(${n})`}return typeof v=="function"?(0,Pr._)`${b}(${n})`:(0,Pr._)`${b}.test(${n})`}}}};var QB=Rv.default=WB;const ZB=Xt({__proto__:null,default:QB},[Rv]),tH=Jt(ZB);Object.defineProperty(Dv,"__esModule",{value:!0});const eH=tH,rH=[eH.default];var nH=Dv.default=rH;const iH=Xt({__proto__:null,default:nH},[Dv]),oH=Jt(iH);var aa={};Object.defineProperty(aa,"__esModule",{value:!0});var hE=aa.contentVocabulary=dE=aa.metadataVocabulary=void 0,dE=aa.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];hE=aa.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];const sH=Xt({__proto__:null,get contentVocabulary(){return hE},default:aa,get metadataVocabulary(){return dE}},[aa]),aH=Jt(sH);Object.defineProperty(Wg,"__esModule",{value:!0});const lH=AU,cH=nG,uH=XB,hH=oH,fE=aH,dH=[lH.default,cH.default,(0,uH.default)(),hH.default,fE.metadataVocabulary,fE.contentVocabulary];var fH=Wg.default=dH;const pH=Xt({__proto__:null,default:fH},[Wg]),mH=Jt(pH);var Iv={},jv={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,function(t){t.Tag="tag",t.Mapping="mapping"}(e.DiscrError||(e.DiscrError={}))})(jv);const gH=kn(jv),vH=Xt({__proto__:null,default:gH},[jv]),yH=Jt(vH);Object.defineProperty(Iv,"__esModule",{value:!0});const Za=ke,Fv=yH,pE=Yg,_H=Be,bH={message:({params:{discrError:e,tagName:t}})=>e===Fv.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,Za._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},wH={keyword:"discriminator",type:"object",schemaType:"object",error:bH,code(e){const{gen:t,data:r,schema:n,parentSchema:i,it:o}=e,{oneOf:s}=i;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");const a=n.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");const c=t.let("valid",!1),l=t.const("tag",(0,Za._)`${r}${(0,Za.getProperty)(a)}`);t.if((0,Za._)`typeof ${l} == "string"`,()=>u(),()=>e.error(!1,{discrError:Fv.DiscrError.Tag,tag:l,tagName:a})),e.ok(c);function u(){const d=f();t.if(!1);for(const p in d)t.elseIf((0,Za._)`${l} === ${p}`),t.assign(c,h(d[p]));t.else(),e.error(!1,{discrError:Fv.DiscrError.Mapping,tag:l,tagName:a}),t.endIf()}function h(d){const p=t.name("valid"),g=e.subschema({keyword:"oneOf",schemaProp:d},p);return e.mergeEvaluated(g,Za.Name),p}function f(){var d;const p={},g=b(i);let v=!0;for(let x=0;x<s.length;x++){let A=s[x];A?.$ref&&!(0,_H.schemaHasRulesButRef)(A,o.self.RULES)&&(A=pE.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,A?.$ref),A instanceof pE.SchemaEnv&&(A=A.schema));const E=(d=A?.properties)===null||d===void 0?void 0:d[a];if(typeof E!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);v=v&&(g||b(A)),y(E,x)}if(!v)throw new Error(`discriminator: "${a}" must be required`);return p;function b({required:x}){return Array.isArray(x)&&x.includes(a)}function y(x,A){if(x.const)m(x.const,A);else if(x.enum)for(const E of x.enum)m(E,A);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function m(x,A){if(typeof x!="string"||x in p)throw new Error(`discriminator: "${a}" values must be unique strings`);p[x]=A}}}};var xH=Iv.default=wH;const SH=Xt({__proto__:null,default:xH},[Iv]),$H=Jt(SH),EH="http://json-schema.org/draft-07/schema#",CH="http://json-schema.org/draft-07/schema#",kH="Core schema meta-schema",PH={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},TH=["object","boolean"],OH={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},NH={$schema:EH,$id:CH,title:kH,definitions:PH,type:TH,properties:OH,default:!0};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const r=vU,n=mH,i=$H,o=NH,s=["/properties"],a="http://json-schema.org/draft-07/schema";class c extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(p=>this.addVocabulary(p)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const p=this.opts.$data?this.$dataMetaSchema(o,s):o;this.addMetaSchema(p,a,!1),this.refs["http://json-schema.org/schema"]=a}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(a)?a:void 0)}}e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var l=Tc;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var u=ke;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var h=zg;Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return h.default}});var f=Hg;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(Eg,Eg.exports);var mE=Eg.exports;const gE=kn(mE),AH=Xt({__proto__:null,default:gE},[mE]);var Mv={exports:{}};const DH=Jt(AH);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=DH,n=ke,i=$c,o=Tc,s=Ec,a=bo,c="errorMessage",l=new r.Name("emUsed"),u={required:"missingProperty",dependencies:"property",dependentRequired:"property"},h=/\$\{[^}]+\}/,f=/\$\{([^}]+)\}/g,d=/^""\s*\+\s*|\s*\+\s*""$/g;function p(v){return{keyword:c,schemaType:["string","object"],post:!0,code(b){const{gen:y,data:m,schema:x,schemaValue:A,it:E}=b;if(E.createErrors===!1)return;const k=x,D=n.strConcat(a.default.instancePath,E.errorPath);y.if(r._`${a.default.errors} > 0`,()=>{if(typeof k=="object"){const[$,_]=U(k);_&&K(_),$&&Y($),it(V(k))}const C=typeof k=="string"?k:k._;C&&nt(C),v.keepErrors||ft()});function V({properties:C,items:$}){const _={};if(C){_.props={};for(const P in C)_.props[P]=[]}if($){_.items={};for(let P=0;P<$.length;P++)_.items[P]=[]}return _}function U(C){let $,_;for(const P in C){if(P==="properties"||P==="items")continue;const M=C[P];if(typeof M=="object"){$||($={});const I=$[P]={};for(const G in M)I[G]=[]}else _||(_={}),_[P]=[]}return[$,_]}function K(C){const $=y.const("emErrors",r.stringify(C)),_=y.const("templates",at(C,x));y.forOf("err",a.default.vErrors,G=>y.if(xt(G,$),()=>y.code(r._`${$}[${G}.keyword].push(${G})`).assign(r._`${G}.${l}`,!0)));const{singleError:P}=v;if(P){const G=y.let("message",r._`""`),q=y.let("paramsErrors",r._`[]`);M(et=>{y.if(G,()=>y.code(r._`${G} += ${typeof P=="string"?P:";"}`)),y.code(r._`${G} += ${I(et)}`),y.assign(q,r._`${q}.concat(${$}[${et}])`)}),s.reportError(b,{message:G,params:r._`{errors: ${q}}`})}else M(G=>s.reportError(b,{message:I(G),params:r._`{errors: ${$}[${G}]}`}));function M(G){y.forIn("key",$,q=>y.if(r._`${$}[${q}].length`,()=>G(q)))}function I(G){return r._`${G} in ${_} ? ${_}[${G}]() : ${A}[${G}]`}}function Y(C){const $=y.const("emErrors",r.stringify(C)),_=[];for(const q in C)_.push([q,at(C[q],x[q])]);const P=y.const("templates",y.object(..._)),M=y.scopeValue("obj",{ref:u,code:r.stringify(u)}),I=y.let("emPropParams"),G=y.let("emParamsErrors");y.forOf("err",a.default.vErrors,q=>y.if(xt(q,$),()=>{y.assign(I,r._`${M}[${q}.keyword]`),y.assign(G,r._`${$}[${q}.keyword][${q}.params[${I}]]`),y.if(G,()=>y.code(r._`${G}.push(${q})`).assign(r._`${q}.${l}`,!0))})),y.forIn("key",$,q=>y.forIn("keyProp",r._`${$}[${q}]`,et=>{y.assign(G,r._`${$}[${q}][${et}]`),y.if(r._`${G}.length`,()=>{const st=y.const("tmpl",r._`${P}[${q}] && ${P}[${q}][${et}]`);s.reportError(b,{message:r._`${st} ? ${st}() : ${A}[${q}][${et}]`,params:r._`{errors: ${G}}`})})}))}function it(C){const{props:$,items:_}=C;if(!$&&!_)return;const P=r._`typeof ${m} == "object"`,M=r._`Array.isArray(${m})`,I=y.let("emErrors");let G,q;const et=y.let("templates");$&&_?(G=y.let("emChildKwd"),y.if(P),y.if(M,()=>{st(_,x.items),y.assign(G,r.str`items`)},()=>{st($,x.properties),y.assign(G,r.str`properties`)}),q=r._`[${G}]`):_?(y.if(M),st(_,x.items),q=r._`.items`):$&&(y.if(n.and(P,n.not(M))),st($,x.properties),q=r._`.properties`),y.forOf("err",a.default.vErrors,mt=>_t(mt,I,Lt=>y.code(r._`${I}[${Lt}].push(${mt})`).assign(r._`${mt}.${l}`,!0))),y.forIn("key",I,mt=>y.if(r._`${I}[${mt}].length`,()=>{s.reportError(b,{message:r._`${mt} in ${et} ? ${et}[${mt}]() : ${A}${q}[${mt}]`,params:r._`{errors: ${I}[${mt}]}`}),y.assign(r._`${a.default.vErrors}[${a.default.errors}-1].instancePath`,r._`${D} + "/" + ${mt}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})),y.endIf();function st(mt,Lt){y.assign(I,r.stringify(mt)),y.assign(et,at(mt,Lt))}}function nt(C){const $=y.const("emErrs",r._`[]`);y.forOf("err",a.default.vErrors,_=>y.if(yt(_),()=>y.code(r._`${$}.push(${_})`).assign(r._`${_}.${l}`,!0))),y.if(r._`${$}.length`,()=>s.reportError(b,{message:X(C),params:r._`{errors: ${$}}`}))}function ft(){const C=y.const("emErrs",r._`[]`);y.forOf("err",a.default.vErrors,$=>y.if(r._`!${$}.${l}`,()=>y.code(r._`${C}.push(${$})`))),y.assign(a.default.vErrors,C).assign(a.default.errors,r._`${C}.length`)}function xt(C,$){return n.and(r._`${C}.keyword !== ${c}`,r._`!${C}.${l}`,r._`${C}.instancePath === ${D}`,r._`${C}.keyword in ${$}`,r._`${C}.schemaPath.indexOf(${E.errSchemaPath}) === 0`,r._`/^\\/[^\\/]*$/.test(${C}.schemaPath.slice(${E.errSchemaPath.length}))`)}function _t(C,$,_){y.if(n.and(r._`${C}.keyword !== ${c}`,r._`!${C}.${l}`,r._`${C}.instancePath.indexOf(${D}) === 0`),()=>{const P=y.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:r._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),M=y.const("emMatches",r._`${P}.exec(${C}.instancePath.slice(${D}.length))`),I=y.const("emChild",r._`${M} && ${M}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);y.if(r._`${I} !== undefined && ${I} in ${$}`,()=>_(I))})}function yt(C){return n.and(r._`${C}.keyword !== ${c}`,r._`!${C}.${l}`,n.or(r._`${C}.instancePath === ${D}`,n.and(r._`${C}.instancePath.indexOf(${D}) === 0`,r._`${C}.instancePath[${D}.length] === "/"`)),r._`${C}.schemaPath.indexOf(${E.errSchemaPath}) === 0`,r._`${C}.schemaPath[${E.errSchemaPath}.length] === "/"`)}function at(C,$){const _=[];for(const P in C){const M=$[P];h.test(M)&&_.push([P,O(M)])}return y.object(..._)}function X(C){return h.test(C)?new i._Code(i.safeStringify(C).replace(f,($,_)=>`" + JSON.stringify(${o.getData(_,E)}) + "`).replace(d,"")):r.stringify(C)}function O(C){return r._`function(){return ${X(C)}}`}},metaSchema:{anyOf:[{type:"string"},{type:"object",properties:{properties:{$ref:"#/$defs/stringMap"},items:{$ref:"#/$defs/stringList"},required:{$ref:"#/$defs/stringOrMap"},dependencies:{$ref:"#/$defs/stringOrMap"}},additionalProperties:{type:"string"}}],$defs:{stringMap:{type:"object",additionalProperties:{type:"string"}},stringOrMap:{anyOf:[{type:"string"},{$ref:"#/$defs/stringMap"}]},stringList:{type:"array",items:{type:"string"}}}}}}const g=(v,b={})=>{if(!v.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(v.opts.jsPropertySyntax)throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported");return v.addKeyword(p(b))};t.default=g,e.exports=g,e.exports.default=g})(Mv,Mv.exports);var RH=Mv.exports;const IH=kn(RH),jH=new gE({allErrors:!0});IH(jH);const vE=(e,t="image/svg+xml",r="utf-8")=>new Blob([e],{type:`${t};charset=${r}`}),FH=e=>new XMLSerializer().serializeToString(e),MH=(e,t="image/svg+xml",r="utf-8")=>vE(FH(e),t,r),yE=(e,t)=>{const r=document.createElement("a");r.style.visibility="hidden",document.body.appendChild(r),r.download=t,typeof e=="string"?r.href=e:r.href=window.URL.createObjectURL(e),r.click(),document.body.removeChild(r),window.URL.revokeObjectURL(r.href)};function _E(){return document.compatMode=="BackCompat"?document.body:document.documentElement}function bE(){const e=_E();return{scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight}}function LH(){const e=_E();return{clientTop:e.clientTop,clientLeft:e.clientLeft,clientWidth:e.clientWidth,clientHeight:e.clientHeight}}function VH(){const{clientWidth:e,clientHeight:t}=LH();return{width:window.innerWidth||e,height:window.innerHeight||t}}function UH(e){const{top:t,left:r}=e.getBoundingClientRect(),n=bE();return{x:r+n.scrollLeft,y:t+n.scrollTop}}function zH(e){if(e.pageX&&e.pageY)return{x:e.pageX,y:e.pageY};const t=bE();return{x:e.clientX+t.scrollLeft,y:e.clientY+t.scrollTop}}function wE(e,t){const r=zH(t),n=UH(e);return{x:r.x-n.x,y:r.y-n.y}}function GH(){const e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){const n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}const r=e.indexOf("Edge/");return r>0?parseInt(e.substring(r+5,e.indexOf(".",r)),10):-1}GH();function BH(e){var t=document.documentElement,r=window.top===window.self?window.devicePixelRatio:1;t.dataset.dpr=r;var n=100,i=function(){var o=Math.min(t.clientWidth,e);t.dataset.width=o,t.dataset.rem=n=Math.round(100*(o/e)),t.style.fontSize=n+"px"};i(),window.rem2px=function(o){return o=parseFloat(o),o*n},window.px2rem=function(o){return o=parseFloat(o),o/n},window.addEventListener&&window.addEventListener("orientationchange"in window?"orientationchange":"resize",i,!1)}class De{static onDocumentReady(t){function r(){document.readyState!=="loading"&&(t(),document.removeEventListener("DOMContentLoaded",r))}typeof document<"u"&&(document.addEventListener("DOMContentLoaded",r),r())}static getCSSVar(t){return getComputedStyle(document.documentElement).getPropertyValue(t)}static setCSSVar(t,r){document.documentElement.style.setProperty(t,r)}static dom=new Proxy({},{get(t,r){return function(n={},...i){const o=document.createElement(r);for(const s of Object.keys(n))o.setAttribute(s,n[s]);for(const s of i)typeof s=="string"?o.appendChild(document.createTextNode(s)):o.appendChild(s);return o}}});static compileTemplate(t){return t=t.replace(/<%=(.+?)%>/g,"`); \n echo( $1 ); \n echo(`").replace(/<%([\s\S]+?)%>/g,"`); \n $1 \n echo(`"),t="echo(`"+t+"`);",`(function parse(data){
|
|
40
|
+
`.replace(/\s+/g,""),"u");break;case"mime-image":e=/^image\//;break;case"mime-video":e=/^video\//;break;case"mime-audio":e=/^audio\//;break;case"mime-document-word":e=/^application\/(?:vnd\.openxmlformats-officedocument\.wordprocessingml\.document|msword|vnd\.ms-word\.document\.macroenabled\.12|vnd\.openxmlformats-officedocument\.wordprocessingml\.template|vnd\.ms-word\.template\.macroenabled\.12)$/;break;case"mime-document-excel":e=/^application\/(?:vnd\.openxmlformats-officedocument\.spreadsheetml\.sheet|vnd\.ms-excel|vnd\.ms-excel\.sheet\.macroenabled\.12|vnd\.openxmlformats-officedocument\.spreadsheetml\.template|vnd\.ms-excel\.template\.macroenabled\.12)$/;break;case"mime-document-ppt":e=/^application\/(?:vnd\.ms-powerpoint|vnd\.openxmlformats-officedocument\.presentationml\.presentation|vnd\.ms-powerpoint\.presentation\.macroenabled\.12|vnd\.openxmlformats-officedocument\.presentationml\.template|vnd\.ms-powerpoint\.template\.macroenabled\.12)$/;break;case"mime-document-json":e=/^application\/json$/;break;case"mime-document-xml":e=/^(?:application|text)\/(?:xml|xhtml\+xml)$/;break}return e};function ba(t){const e={matchIndex:-1,fullMatch:null,groupMatchs:[]};if(t){e.matchIndex=typeof t.index=="number"?t.index:-1;for(let o=0,n=t.length;o<n;o++)o==0?e.fullMatch=t[o]:e.groupMatchs.push(t[o])}return e}const Rd=(t,e)=>{typeof t=="string"&&(t=ya(t)||new RegExp(t));const o=e.match(t);return ba(o)},_a=(t,e)=>{typeof t=="string"&&(t=ya(t)||new RegExp(t));const o=[],n=e.matchAll(t);for(const i of n)o.push(ba(i));return o},jd=(t,e="")=>(t=t.replace(/\[data-v-[0-9a-zA-Z]*\]/g,e),t);function Po(t,e){const o=t.length,n=e.length;for(let s=0;s<n;s++)t[s]=e[s];let i=Math.max(0,o-n);for(;i>0;)t.pop(),i--}function xa(t,e=12){return+t.toPrecision(e)}function Fd(t,e){let o=+new Date,n;return function(...i){const s=+new Date;s-o<e?(clearTimeout(n),n=setTimeout(()=>{o=s,t.apply(this,i)},e)):(clearTimeout(n),o=s,t.apply(this,i))}}var wa={exports:{}},Qt=typeof Reflect=="object"?Reflect:null,Ea=Qt&&typeof Qt.apply=="function"?Qt.apply:function(e,o,n){return Function.prototype.apply.call(e,o,n)},En;Qt&&typeof Qt.ownKeys=="function"?En=Qt.ownKeys:Object.getOwnPropertySymbols?En=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:En=function(e){return Object.getOwnPropertyNames(e)};function zd(t){console&&console.warn&&console.warn(t)}var Ca=Number.isNaN||function(e){return e!==e};function ce(){ce.init.call(this)}wa.exports=ce,wa.exports.once=Ud,ce.EventEmitter=ce,ce.prototype._events=void 0,ce.prototype._eventsCount=0,ce.prototype._maxListeners=void 0;var ka=10;function Cn(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(ce,"defaultMaxListeners",{enumerable:!0,get:function(){return ka},set:function(t){if(typeof t!="number"||t<0||Ca(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");ka=t}}),ce.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},ce.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||Ca(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function Na(t){return t._maxListeners===void 0?ce.defaultMaxListeners:t._maxListeners}ce.prototype.getMaxListeners=function(){return Na(this)},ce.prototype.emit=function(e){for(var o=[],n=1;n<arguments.length;n++)o.push(arguments[n]);var i=e==="error",s=this._events;if(s!==void 0)i=i&&s.error===void 0;else if(!i)return!1;if(i){var r;if(o.length>0&&(r=o[0]),r instanceof Error)throw r;var a=new Error("Unhandled error."+(r?" ("+r.message+")":""));throw a.context=r,a}var l=s[e];if(l===void 0)return!1;if(typeof l=="function")Ea(l,this,o);else for(var c=l.length,d=Da(l,c),n=0;n<c;++n)Ea(d[n],this,o);return!0};function Oa(t,e,o,n){var i,s,r;if(Cn(o),s=t._events,s===void 0?(s=t._events=Object.create(null),t._eventsCount=0):(s.newListener!==void 0&&(t.emit("newListener",e,o.listener?o.listener:o),s=t._events),r=s[e]),r===void 0)r=s[e]=o,++t._eventsCount;else if(typeof r=="function"?r=s[e]=n?[o,r]:[r,o]:n?r.unshift(o):r.push(o),i=Na(t),i>0&&r.length>i&&!r.warned){r.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+r.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=t,a.type=e,a.count=r.length,zd(a)}return t}ce.prototype.addListener=function(e,o){return Oa(this,e,o,!1)},ce.prototype.on=ce.prototype.addListener,ce.prototype.prependListener=function(e,o){return Oa(this,e,o,!0)};function Hd(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Sa(t,e,o){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:o},i=Hd.bind(n);return i.listener=o,n.wrapFn=i,i}ce.prototype.once=function(e,o){return Cn(o),this.on(e,Sa(this,e,o)),this},ce.prototype.prependOnceListener=function(e,o){return Cn(o),this.prependListener(e,Sa(this,e,o)),this},ce.prototype.removeListener=function(e,o){var n,i,s,r,a;if(Cn(o),i=this._events,i===void 0)return this;if(n=i[e],n===void 0)return this;if(n===o||n.listener===o)--this._eventsCount===0?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||o));else if(typeof n!="function"){for(s=-1,r=n.length-1;r>=0;r--)if(n[r]===o||n[r].listener===o){a=n[r].listener,s=r;break}if(s<0)return this;s===0?n.shift():Bd(n,s),n.length===1&&(i[e]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",e,a||o)}return this},ce.prototype.off=ce.prototype.removeListener,ce.prototype.removeAllListeners=function(e){var o,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var s=Object.keys(n),r;for(i=0;i<s.length;++i)r=s[i],r!=="removeListener"&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(o=n[e],typeof o=="function")this.removeListener(e,o);else if(o!==void 0)for(i=o.length-1;i>=0;i--)this.removeListener(e,o[i]);return this};function $a(t,e,o){var n=t._events;if(n===void 0)return[];var i=n[e];return i===void 0?[]:typeof i=="function"?o?[i.listener||i]:[i]:o?Wd(i):Da(i,i.length)}ce.prototype.listeners=function(e){return $a(this,e,!0)},ce.prototype.rawListeners=function(e){return $a(this,e,!1)},ce.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):Ta.call(t,e)},ce.prototype.listenerCount=Ta;function Ta(t){var e=this._events;if(e!==void 0){var o=e[t];if(typeof o=="function")return 1;if(o!==void 0)return o.length}return 0}ce.prototype.eventNames=function(){return this._eventsCount>0?En(this._events):[]};function Da(t,e){for(var o=new Array(e),n=0;n<e;++n)o[n]=t[n];return o}function Bd(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}function Wd(t){for(var e=new Array(t.length),o=0;o<e.length;++o)e[o]=t[o].listener||t[o];return e}function Ud(t,e){return new Promise(function(o,n){function i(r){t.removeListener(e,s),n(r)}function s(){typeof t.removeListener=="function"&&t.removeListener("error",i),o([].slice.call(arguments))}Pa(t,e,s,{once:!0}),e!=="error"&&Gd(t,i,{once:!0})})}function Gd(t,e,o){typeof t.on=="function"&&Pa(t,"error",e,o)}function Pa(t,e,o,n){if(typeof t.on=="function")n.once?t.once(e,o):t.on(e,o);else if(typeof t.addEventListener=="function")t.addEventListener(e,function i(s){n.once&&t.removeEventListener(e,i),o(s)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t)}const Lo=/^[a-z0-9]+(-[a-z0-9]+)*$/,kn=(t,e,o,n="")=>{const i=t.split(":");if(t.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;n=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const a=i.pop(),l=i.pop(),c={provider:i.length>0?i[0]:n,prefix:l,name:a};return e&&!Nn(c)?null:c}const s=i[0],r=s.split("-");if(r.length>1){const a={provider:n,prefix:r.shift(),name:r.join("-")};return e&&!Nn(a)?null:a}if(o&&n===""){const a={provider:n,prefix:"",name:s};return e&&!Nn(a,o)?null:a}return null},Nn=(t,e)=>t?!!((t.provider===""||t.provider.match(Lo))&&(e&&t.prefix===""||t.prefix.match(Lo))&&t.name.match(Lo)):!1,La=Object.freeze({left:0,top:0,width:16,height:16}),On=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Sn=Object.freeze({...La,...On}),Ai=Object.freeze({...Sn,body:"",hidden:!1});function Kd(t,e){const o={};!t.hFlip!=!e.hFlip&&(o.hFlip=!0),!t.vFlip!=!e.vFlip&&(o.vFlip=!0);const n=((t.rotate||0)+(e.rotate||0))%4;return n&&(o.rotate=n),o}function Va(t,e){const o=Kd(t,e);for(const n in Ai)n in On?n in t&&!(n in o)&&(o[n]=On[n]):n in e?o[n]=e[n]:n in t&&(o[n]=t[n]);return o}function qd(t,e){const o=t.icons,n=t.aliases||Object.create(null),i=Object.create(null);function s(r){if(o[r])return i[r]=[];if(!(r in i)){i[r]=null;const a=n[r]&&n[r].parent,l=a&&s(a);l&&(i[r]=[a].concat(l))}return i[r]}return(e||Object.keys(o).concat(Object.keys(n))).forEach(s),i}function Yd(t,e,o){const n=t.icons,i=t.aliases||Object.create(null);let s={};function r(a){s=Va(n[a]||i[a],s)}return r(e),o.forEach(r),Va(t,s)}function Ia(t,e){const o=[];if(typeof t!="object"||typeof t.icons!="object")return o;t.not_found instanceof Array&&t.not_found.forEach(i=>{e(i,null),o.push(i)});const n=qd(t);for(const i in n){const s=n[i];s&&(e(i,Yd(t,i,s)),o.push(i))}return o}const Zd={provider:"",aliases:{},not_found:{},...La};function Ri(t,e){for(const o in e)if(o in t&&typeof t[o]!=typeof e[o])return!1;return!0}function Ma(t){if(typeof t!="object"||t===null)return null;const e=t;if(typeof e.prefix!="string"||!t.icons||typeof t.icons!="object"||!Ri(t,Zd))return null;const o=e.icons;for(const i in o){const s=o[i];if(!i.match(Lo)||typeof s.body!="string"||!Ri(s,Ai))return null}const n=e.aliases||Object.create(null);for(const i in n){const s=n[i],r=s.parent;if(!i.match(Lo)||typeof r!="string"||!o[r]&&!n[r]||!Ri(s,Ai))return null}return e}const Aa=Object.create(null);function Xd(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:new Set}}function Wt(t,e){const o=Aa[t]||(Aa[t]=Object.create(null));return o[e]||(o[e]=Xd(t,e))}function ji(t,e){return Ma(e)?Ia(e,(o,n)=>{n?t.icons[o]=n:t.missing.add(o)}):[]}function Jd(t,e,o){try{if(typeof o.body=="string")return t.icons[e]={...o},!0}catch{}return!1}let Vo=!1;function Ra(t){return typeof t=="boolean"&&(Vo=t),Vo}function Qd(t){const e=typeof t=="string"?kn(t,!0,Vo):t;if(e){const o=Wt(e.provider,e.prefix),n=e.name;return o.icons[n]||(o.missing.has(n)?null:void 0)}}function ef(t,e){const o=kn(t,!0,Vo);if(!o)return!1;const n=Wt(o.provider,o.prefix);return Jd(n,o.name,e)}function tf(t,e){if(typeof t!="object")return!1;if(typeof e!="string"&&(e=t.provider||""),Vo&&!e&&!t.prefix){let i=!1;return Ma(t)&&(t.prefix="",Ia(t,(s,r)=>{r&&ef(s,r)&&(i=!0)})),i}const o=t.prefix;if(!Nn({provider:e,prefix:o,name:"a"}))return!1;const n=Wt(e,o);return!!ji(n,t)}const ja=Object.freeze({width:null,height:null}),Fa=Object.freeze({...ja,...On}),of=/(-?[0-9.]*[0-9]+[0-9.]*)/g,nf=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function za(t,e,o){if(e===1)return t;if(o=o||100,typeof t=="number")return Math.ceil(t*e*o)/o;if(typeof t!="string")return t;const n=t.split(of);if(n===null||!n.length)return t;const i=[];let s=n.shift(),r=nf.test(s);for(;;){if(r){const a=parseFloat(s);isNaN(a)?i.push(s):i.push(Math.ceil(a*e*o)/o)}else i.push(s);if(s=n.shift(),s===void 0)return i.join("");r=!r}}function sf(t,e="defs"){let o="";const n=t.indexOf("<"+e);for(;n>=0;){const i=t.indexOf(">",n),s=t.indexOf("</"+e);if(i===-1||s===-1)break;const r=t.indexOf(">",s);if(r===-1)break;o+=t.slice(i+1,s).trim(),t=t.slice(0,n).trim()+t.slice(r+1)}return{defs:o,content:t}}function rf(t,e){return t?"<defs>"+t+"</defs>"+e:e}function af(t,e,o){const n=sf(t);return rf(n.defs,e+n.content+o)}const lf=t=>t==="unset"||t==="undefined"||t==="none";function cf(t,e){const o={...Sn,...t},n={...Fa,...e},i={left:o.left,top:o.top,width:o.width,height:o.height};let s=o.body;[o,n].forEach(y=>{const k=[],A=y.hFlip,$=y.vFlip;let z=y.rotate;A?$?z+=2:(k.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),k.push("scale(-1 1)"),i.top=i.left=0):$&&(k.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),k.push("scale(1 -1)"),i.top=i.left=0);let G;switch(z<0&&(z-=Math.floor(z/4)*4),z=z%4,z){case 1:G=i.height/2+i.top,k.unshift("rotate(90 "+G.toString()+" "+G.toString()+")");break;case 2:k.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:G=i.width/2+i.left,k.unshift("rotate(-90 "+G.toString()+" "+G.toString()+")");break}z%2===1&&(i.left!==i.top&&(G=i.left,i.left=i.top,i.top=G),i.width!==i.height&&(G=i.width,i.width=i.height,i.height=G)),k.length&&(s=af(s,'<g transform="'+k.join(" ")+'">',"</g>"))});const r=n.width,a=n.height,l=i.width,c=i.height;let d,f;r===null?(f=a===null?"1em":a==="auto"?c:a,d=za(f,l/c)):(d=r==="auto"?l:r,f=a===null?za(d,c/l):a==="auto"?c:a);const u={},v=(y,k)=>{lf(k)||(u[y]=k.toString())};v("width",d),v("height",f);const b=[i.left,i.top,l,c];return u.viewBox=b.join(" "),{attributes:u,viewBox:b,body:s}}const uf=/\sid="(\S+)"/g,df="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let ff=0;function pf(t,e=df){const o=[];let n;for(;n=uf.exec(t);)o.push(n[1]);if(!o.length)return t;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return o.forEach(s=>{const r=typeof e=="function"?e(s):e+(ff++).toString(),a=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+r+i+"$3")}),t=t.replace(new RegExp(i,"g"),""),t}const Fi=Object.create(null);function hf(t,e){Fi[t]=e}function zi(t){return Fi[t]||Fi[""]}function Hi(t){let e;if(typeof t.resources=="string")e=[t.resources];else if(e=t.resources,!(e instanceof Array)||!e.length)return null;return{resources:e,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}const Bi=Object.create(null),Io=["https://api.simplesvg.com","https://api.unisvg.com"],$n=[];for(;Io.length>0;)Io.length===1||Math.random()>.5?$n.push(Io.shift()):$n.push(Io.pop());Bi[""]=Hi({resources:["https://api.iconify.design"].concat($n)});function mf(t,e){const o=Hi(e);return o===null?!1:(Bi[t]=o,!0)}function Wi(t){return Bi[t]}let Ha=(()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}})();function vf(t,e){const o=Wi(t);if(!o)return 0;let n;if(!o.maxURL)n=0;else{let i=0;o.resources.forEach(r=>{i=Math.max(i,r.length)});const s=e+".json?icons=";n=o.maxURL-i-o.path.length-s.length}return n}function gf(t){return t===404}const yf=(t,e,o)=>{const n=[],i=vf(t,e),s="icons";let r={type:s,provider:t,prefix:e,icons:[]},a=0;return o.forEach((l,c)=>{a+=l.length+1,a>=i&&c>0&&(n.push(r),r={type:s,provider:t,prefix:e,icons:[]},a=l.length),r.icons.push(l)}),n.push(r),n};function bf(t){if(typeof t=="string"){const e=Wi(t);if(e)return e.path}return"/"}const _f={prepare:yf,send:(t,e,o)=>{if(!Ha){o("abort",424);return}let n=bf(e.provider);switch(e.type){case"icons":{const s=e.prefix,a=e.icons.join(","),l=new URLSearchParams({icons:a});n+=s+".json?"+l.toString();break}case"custom":{const s=e.uri;n+=s.slice(0,1)==="/"?s.slice(1):s;break}default:o("abort",400);return}let i=503;Ha(t+n).then(s=>{const r=s.status;if(r!==200){setTimeout(()=>{o(gf(r)?"abort":"next",r)});return}return i=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?o("abort",s):o("next",i)});return}setTimeout(()=>{o("success",s)})}).catch(()=>{o("next",i)})}};function xf(t){const e={loaded:[],missing:[],pending:[]},o=Object.create(null);t.sort((i,s)=>i.provider!==s.provider?i.provider.localeCompare(s.provider):i.prefix!==s.prefix?i.prefix.localeCompare(s.prefix):i.name.localeCompare(s.name));let n={provider:"",prefix:"",name:""};return t.forEach(i=>{if(n.name===i.name&&n.prefix===i.prefix&&n.provider===i.provider)return;n=i;const s=i.provider,r=i.prefix,a=i.name,l=o[s]||(o[s]=Object.create(null)),c=l[r]||(l[r]=Wt(s,r));let d;a in c.icons?d=e.loaded:r===""||c.missing.has(a)?d=e.missing:d=e.pending;const f={provider:s,prefix:r,name:a};d.push(f)}),e}function Ba(t,e){t.forEach(o=>{const n=o.loaderCallbacks;n&&(o.loaderCallbacks=n.filter(i=>i.id!==e))})}function wf(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const e=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!e.length)return;let o=!1;const n=t.provider,i=t.prefix;e.forEach(s=>{const r=s.icons,a=r.pending.length;r.pending=r.pending.filter(l=>{if(l.prefix!==i)return!0;const c=l.name;if(t.icons[c])r.loaded.push({provider:n,prefix:i,name:c});else if(t.missing.has(c))r.missing.push({provider:n,prefix:i,name:c});else return o=!0,!0;return!1}),r.pending.length!==a&&(o||Ba([t],s.id),s.callback(r.loaded.slice(0),r.missing.slice(0),r.pending.slice(0),s.abort))})}))}let Ef=0;function Cf(t,e,o){const n=Ef++,i=Ba.bind(null,o,n);if(!e.pending.length)return i;const s={id:n,icons:e,callback:t,abort:i};return o.forEach(r=>{(r.loaderCallbacks||(r.loaderCallbacks=[])).push(s)}),i}function kf(t,e=!0,o=!1){const n=[];return t.forEach(i=>{const s=typeof i=="string"?kn(i,e,o):i;s&&n.push(s)}),n}var Nf={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Of(t,e,o,n){const i=t.resources.length,s=t.random?Math.floor(Math.random()*i):t.index;let r;if(t.random){let M=t.resources.slice(0);for(r=[];M.length>1;){const I=Math.floor(Math.random()*M.length);r.push(M[I]),M=M.slice(0,I).concat(M.slice(I+1))}r=r.concat(M)}else r=t.resources.slice(s).concat(t.resources.slice(0,s));const a=Date.now();let l="pending",c=0,d,f=null,u=[],v=[];typeof n=="function"&&v.push(n);function b(){f&&(clearTimeout(f),f=null)}function y(){l==="pending"&&(l="aborted"),b(),u.forEach(M=>{M.status==="pending"&&(M.status="aborted")}),u=[]}function k(M,I){I&&(v=[]),typeof M=="function"&&v.push(M)}function A(){return{startTime:a,payload:e,status:l,queriesSent:c,queriesPending:u.length,subscribe:k,abort:y}}function $(){l="failed",v.forEach(M=>{M(void 0,d)})}function z(){u.forEach(M=>{M.status==="pending"&&(M.status="aborted")}),u=[]}function G(M,I,he){const ve=I!=="success";switch(u=u.filter(Te=>Te!==M),l){case"pending":break;case"failed":if(ve||!t.dataAfterTimeout)return;break;default:return}if(I==="abort"){d=he,$();return}if(ve){d=he,u.length||(r.length?ne():$());return}if(b(),z(),!t.random){const Te=t.resources.indexOf(M.resource);Te!==-1&&Te!==t.index&&(t.index=Te)}l="completed",v.forEach(Te=>{Te(he)})}function ne(){if(l!=="pending")return;b();const M=r.shift();if(M===void 0){if(u.length){f=setTimeout(()=>{b(),l==="pending"&&(z(),$())},t.timeout);return}$();return}const I={status:"pending",resource:M,callback:(he,ve)=>{G(I,he,ve)}};u.push(I),c++,f=setTimeout(ne,t.rotate),o(M,e,I.callback)}return setTimeout(ne),A}function Wa(t){const e={...Nf,...t};let o=[];function n(){o=o.filter(a=>a().status==="pending")}function i(a,l,c){const d=Of(e,a,l,(f,u)=>{n(),c&&c(f,u)});return o.push(d),d}function s(a){return o.find(l=>a(l))||null}return{query:i,find:s,setIndex:a=>{e.index=a},getIndex:()=>e.index,cleanup:n}}function Ua(){}const Ui=Object.create(null);function Sf(t){if(!Ui[t]){const e=Wi(t);if(!e)return;const o=Wa(e),n={config:e,redundancy:o};Ui[t]=n}return Ui[t]}function $f(t,e,o){let n,i;if(typeof t=="string"){const s=zi(t);if(!s)return o(void 0,424),Ua;i=s.send;const r=Sf(t);r&&(n=r.redundancy)}else{const s=Hi(t);if(s){n=Wa(s);const r=t.resources?t.resources[0]:"",a=zi(r);a&&(i=a.send)}}return!n||!i?(o(void 0,424),Ua):n.query(e,i,o)().abort}const Ga="iconify2",Mo="iconify",Ka=Mo+"-count",qa=Mo+"-version",Ya=36e5,Tf=168,Df=50;function Gi(t,e){try{return t.getItem(e)}catch{}}function Ki(t,e,o){try{return t.setItem(e,o),!0}catch{}}function Za(t,e){try{t.removeItem(e)}catch{}}function qi(t,e){return Ki(t,Ka,e.toString())}function Yi(t){return parseInt(Gi(t,Ka))||0}const Tn={local:!0,session:!0},Xa={local:new Set,session:new Set};let Zi=!1;function Pf(t){Zi=t}let Dn=typeof window>"u"?{}:window;function Ja(t){const e=t+"Storage";try{if(Dn&&Dn[e]&&typeof Dn[e].length=="number")return Dn[e]}catch{}Tn[t]=!1}function Qa(t,e){const o=Ja(t);if(!o)return;const n=Gi(o,qa);if(n!==Ga){if(n){const a=Yi(o);for(let l=0;l<a;l++)Za(o,Mo+l.toString())}Ki(o,qa,Ga),qi(o,0);return}const i=Math.floor(Date.now()/Ya)-Tf,s=a=>{const l=Mo+a.toString(),c=Gi(o,l);if(typeof c=="string"){try{const d=JSON.parse(c);if(typeof d=="object"&&typeof d.cached=="number"&&d.cached>i&&typeof d.provider=="string"&&typeof d.data=="object"&&typeof d.data.prefix=="string"&&e(d,a))return!0}catch{}Za(o,l)}};let r=Yi(o);for(let a=r-1;a>=0;a--)s(a)||(a===r-1?(r--,qi(o,r)):Xa[t].add(a))}function el(){if(!Zi){Pf(!0);for(const t in Tn)Qa(t,e=>{const o=e.data,n=e.provider,i=o.prefix,s=Wt(n,i);if(!ji(s,o).length)return!1;const r=o.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,r):r,!0})}}function Lf(t,e){const o=t.lastModifiedCached;if(o&&o>=e)return o===e;if(t.lastModifiedCached=e,o)for(const n in Tn)Qa(n,i=>{const s=i.data;return i.provider!==t.provider||s.prefix!==t.prefix||s.lastModified===e});return!0}function Vf(t,e){Zi||el();function o(n){let i;if(!Tn[n]||!(i=Ja(n)))return;const s=Xa[n];let r;if(s.size)s.delete(r=Array.from(s).shift());else if(r=Yi(i),r>=Df||!qi(i,r+1))return;const a={cached:Math.floor(Date.now()/Ya),provider:t.provider,data:e};return Ki(i,Mo+r.toString(),JSON.stringify(a))}e.lastModified&&!Lf(t,e.lastModified)||Object.keys(e.icons).length&&(e.not_found&&(e=Object.assign({},e),delete e.not_found),o("local")||o("session"))}function tl(){}function If(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,wf(t)}))}function Mf(t,e){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(e).sort():t.iconsToLoad=e,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:o,prefix:n}=t,i=t.iconsToLoad;delete t.iconsToLoad;let s;if(!i||!(s=zi(o)))return;s.prepare(o,n,i).forEach(a=>{$f(o,a,l=>{if(typeof l!="object")a.icons.forEach(c=>{t.missing.add(c)});else try{const c=ji(t,l);if(!c.length)return;const d=t.pendingIcons;d&&c.forEach(f=>{d.delete(f)}),Vf(t,l)}catch(c){console.error(c)}If(t)})})}))}const Af=(t,e)=>{const o=kf(t,!0,Ra()),n=xf(o);if(!n.pending.length){let l=!0;return e&&setTimeout(()=>{l&&e(n.loaded,n.missing,n.pending,tl)}),()=>{l=!1}}const i=Object.create(null),s=[];let r,a;return n.pending.forEach(l=>{const{provider:c,prefix:d}=l;if(d===a&&c===r)return;r=c,a=d,s.push(Wt(c,d));const f=i[c]||(i[c]=Object.create(null));f[d]||(f[d]=[])}),n.pending.forEach(l=>{const{provider:c,prefix:d,name:f}=l,u=Wt(c,d),v=u.pendingIcons||(u.pendingIcons=new Set);v.has(f)||(v.add(f),i[c][d].push(f))}),s.forEach(l=>{const{provider:c,prefix:d}=l;i[c][d].length&&Mf(l,i[c][d])}),e?Cf(e,n,s):tl};function Rf(t,e){const o={...t};for(const n in e){const i=e[n],s=typeof i;n in ja?(i===null||i&&(s==="string"||s==="number"))&&(o[n]=i):s===typeof o[n]&&(o[n]=n==="rotate"?i%4:i)}return o}const jf=/[\s,]+/;function Ff(t,e){e.split(jf).forEach(o=>{switch(o.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}function zf(t,e=0){const o=t.replace(/^-?[0-9.]*/,"");function n(i){for(;i<0;)i+=4;return i%4}if(o===""){const i=parseInt(t);return isNaN(i)?0:n(i)}else if(o!==t){let i=0;switch(o){case"%":i=25;break;case"deg":i=90}if(i){let s=parseFloat(t.slice(0,t.length-o.length));return isNaN(s)?0:(s=s/i,s%1===0?n(s):0)}}return e}function Hf(t,e){let o=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in e)o+=" "+n+'="'+e[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+o+">"+t+"</svg>"}function Bf(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Wf(t){return"data:image/svg+xml,"+Bf(t)}function Uf(t){return'url("'+Wf(t)+'")'}const ol={...Fa,inline:!1},Gf={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Kf={display:"inline-block"},Xi={backgroundColor:"currentColor"},nl={backgroundColor:"transparent"},il={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},sl={webkitMask:Xi,mask:Xi,background:nl};for(const t in sl){const e=sl[t];for(const o in il)e[t+o]=il[o]}const Pn={};["horizontal","vertical"].forEach(t=>{const e=t.slice(0,1)+"Flip";Pn[t+"-flip"]=e,Pn[t.slice(0,1)+"-flip"]=e,Pn[t+"Flip"]=e});function rl(t){return t+(t.match(/^[-0-9.]+$/)?"px":"")}const al=(t,e)=>{const o=Rf(ol,e),n={...Gf},i=e.mode||"svg",s={},r=e.style,a=typeof r=="object"&&!(r instanceof Array)?r:{};for(let y in e){const k=e[y];if(k!==void 0)switch(y){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":o[y]=k===!0||k==="true"||k===1;break;case"flip":typeof k=="string"&&Ff(o,k);break;case"color":s.color=k;break;case"rotate":typeof k=="string"?o[y]=zf(k):typeof k=="number"&&(o[y]=k);break;case"ariaHidden":case"aria-hidden":k!==!0&&k!=="true"&&delete n["aria-hidden"];break;default:{const A=Pn[y];A?(k===!0||k==="true"||k===1)&&(o[A]=!0):ol[y]===void 0&&(n[y]=k)}}}const l=cf(t,o),c=l.attributes;if(o.inline&&(s.verticalAlign="-0.125em"),i==="svg"){n.style={...s,...a},Object.assign(n,c);let y=0,k=e.id;return typeof k=="string"&&(k=k.replace(/-/g,"_")),n.innerHTML=pf(l.body,k?()=>k+"ID"+y++:"iconifyVue"),sa("svg",n)}const{body:d,width:f,height:u}=t,v=i==="mask"||(i==="bg"?!1:d.indexOf("currentColor")!==-1),b=Hf(d,{...c,width:f+"",height:u+""});return n.style={...s,"--svg":Uf(b),width:rl(c.width),height:rl(c.height),...Kf,...v?Xi:nl,...a},sa("span",n)};if(Ra(!0),hf("",_f),typeof document<"u"&&typeof window<"u"){el();const t=window;if(t.IconifyPreload!==void 0){const e=t.IconifyPreload,o="Invalid IconifyPreload syntax.";typeof e=="object"&&e!==null&&(e instanceof Array?e:[e]).forEach(n=>{try{(typeof n!="object"||n===null||n instanceof Array||typeof n.icons!="object"||typeof n.prefix!="string"||!tf(n))&&console.error(o)}catch{console.error(o)}})}if(t.IconifyProviders!==void 0){const e=t.IconifyProviders;if(typeof e=="object"&&e!==null)for(let o in e){const n="IconifyProviders["+o+"] is invalid.";try{const i=e[o];if(typeof i!="object"||!i||i.resources===void 0)continue;mf(o,i)||console.error(n)}catch{console.error(n)}}}}const qf={...Sn,body:""},ll=X({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(t,e){if(typeof t=="object"&&t!==null&&typeof t.body=="string")return this._name="",this.abortLoading(),{data:t};let o;if(typeof t!="string"||(o=kn(t,!1,!0))===null)return this.abortLoading(),null;const n=Qd(o);if(!n)return(!this._loadingIcon||this._loadingIcon.name!==t)&&(this.abortLoading(),this._name="",n!==null&&(this._loadingIcon={name:t,abort:Af([o],()=>{this.counter++})})),null;this.abortLoading(),this._name!==t&&(this._name=t,e&&e(t));const i=["iconify"];return o.prefix!==""&&i.push("iconify--"+o.prefix),o.provider!==""&&i.push("iconify--"+o.provider),{data:n,classes:i}}},render(){this.counter;const t=this.$attrs,e=this.iconMounted||t.ssr?this.getIcon(t.icon,t.onLoad):null;if(!e)return al(qf,t);let o=t;return e.classes&&(o={...t,class:(typeof t.class=="string"?t.class+" ":"")+e.classes.join(" ")}),al({...Sn,...e.data},o)}});function cl(){return document.compatMode=="BackCompat"?document.body:document.documentElement}function ul(){const t=cl();return{scrollTop:t.scrollTop,scrollLeft:t.scrollLeft,scrollWidth:t.scrollWidth,scrollHeight:t.scrollHeight}}function Yf(){const t=cl();return{clientTop:t.clientTop,clientLeft:t.clientLeft,clientWidth:t.clientWidth,clientHeight:t.clientHeight}}function Ji(){const{clientWidth:t,clientHeight:e}=Yf();return{width:t,height:e}}function Zf(t){const{top:e,left:o}=t.getBoundingClientRect(),n=ul();return{x:o+n.scrollLeft,y:e+n.scrollTop}}function Xf(t){if(t.pageX&&t.pageY)return{x:t.pageX,y:t.pageY};const e=ul();return{x:t.clientX+e.scrollLeft,y:t.clientY+e.scrollTop}}function ft(t,e){const o=Xf(e),n=Zf(t);return{x:o.x-n.x,y:o.y-n.y}}function dl(){return typeof window<"u"?window:typeof self<"u"?self:this||{}}function Jf(){const t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);if(t.indexOf("Trident/")>0){const i=t.indexOf("rv:");return parseInt(t.substring(i+3,t.indexOf(".",i)),10)}const n=t.indexOf("Edge/");return n>0?parseInt(t.substring(n+5,t.indexOf(".",n)),10):-1}const Qi=Jf()!==-1;(()=>{const t=dl();return!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL)})(),function(){if(!dl().OffscreenCanvas)return!1;var e=new OffscreenCanvas(1,1),o=e.getContext("2d");o.fillRect(0,0,1,1);var n=e.transferToImageBitmap();try{o.createPattern(n,"no-repeat")}catch{return!1}return!0}();function Qf(t){var e=document.documentElement,o=window.top===window.self?window.devicePixelRatio:1;e.dataset.dpr=o;var n=100,i=function(){var s=Math.min(e.clientWidth,t);e.dataset.width=s,e.dataset.rem=n=Math.round(100*(s/t)),e.style.fontSize=n+"px"};i(),window.rem2px=function(s){return s=parseFloat(s),s*n},window.px2rem=function(s){return s=parseFloat(s),s/n},window.addEventListener&&window.addEventListener("orientationchange"in window?"orientationchange":"resize",i,!1)}class q{static onDocumentReady(e){function o(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",o))}typeof document<"u"&&(document.addEventListener("DOMContentLoaded",o),o())}static getCSSVar(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}static setCSSVar(e,o){document.documentElement.style.setProperty(e,o)}static safeExec(e){const o=new Proxy(window,{get(n,i,s){if(typeof i=="string"&&["open","location","document"].includes(i))throw new Error(`禁止访问 key: ${i}`);return i==="window"?o:Reflect.get(n,i,s)},set(n,i,s,r){return Reflect.set(n,i,s,r)}});new Function("window",`with(window) { ${e} }`)(o,null)}static dom=new Proxy({},{get(e,o){return function(n={},...i){const s=document.createElement(o);for(const r of Object.keys(n))s.setAttribute(r,n[r]);for(const r of i)typeof r=="string"?s.appendChild(document.createTextNode(r)):s.appendChild(r);return s}}});static compileTemplate(e){return e=e.replace(/<%=(.+?)%>/g,"`); \n echo( $1 ); \n echo(`").replace(/<%([\s\S]+?)%>/g,"`); \n $1 \n echo(`"),e="echo(`"+e+"`);",`(function parse(data){
|
|
76
41
|
let output = "";
|
|
77
42
|
function echo(html){
|
|
78
43
|
output += html;
|
|
79
44
|
}
|
|
80
|
-
${
|
|
45
|
+
${e}
|
|
81
46
|
return output;
|
|
82
|
-
})`}static safeHtml(t,r="encode"){const n={"&":"&","<":"<",">":">",""":'"',"'":"'"};for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t=t.replace(new RegExp(r=="decode"?i:n[i],"g"),r=="decode"?n[i]:i));return t}static loadScript(t){const r=document.createElement("script");r.type="text/javascript",r.src=t,r.async=!1,document.body.appendChild(r),r.onload=()=>{},r.onerror=()=>{}}static loadStyle(t){const r=document.createElement("link");r.rel="stylesheet",r.href=t,document.head.insertBefore(r,document.head.childNodes[document.head.childNodes.length-1].nextSibling)}static waitForStyleSheetsLoaded=()=>new Promise(t=>{const r=Array.from(document.querySelectorAll("link[rel=stylesheet]"));let n=document.styleSheets.length??0;const i=()=>n>=r.length?(t(),!0):!1;i()||r.forEach(o=>{o.onload=()=>{n+=1,i()}})});static lazyloadImages(){const t=document.getElementsByTagName("img"),r=VH().height;let n=0;return()=>{for(let i=n;i<t.length;i++)t[i].getBoundingClientRect().top<r&&(t[i].src=t[i].getAttribute("data-src")??"",n=i+1)}}static iframePostMessage(t,r="http://test.com/localstorage.html"){const n=document.createElement("iframe");n.src=r,document.body.append(n),setTimeout(function(){n.contentWindow?.postMessage(t,r)},4e3),setTimeout(function(){n.remove()},6e3)}static getTextWidth=(t,r,n=400)=>{const i=document.createElement("span");i.style.visibility="hidden",i.style.padding="0",i.style.whiteSpace="nowrap",i.style.overflow="visible",i.style.fontSize=r>12?r+"px":"12px",i.style.fontWeight=n.toString(),i.innerText=t,document.body.appendChild(i);const o=i.offsetWidth;return document.body.removeChild(i),o};static getFixedWidthText=(t,r,n=12,i=400,o=!0)=>{let s="",a="",c="";if(!t||r<n||typeof t!="string")return s;const l=t.split(""),u=document.createElement("span");u.style.visibility="hidden",u.style.padding="0",u.style.whiteSpace="nowrap",u.style.overflow="visible",u.style.fontSize=n>12?n+"px":"12px",u.style.fontWeight=i.toString(),document.body.appendChild(u);for(let h=0,f=l.length;h<f;h++){const d=l[h];if(a=c,c+=d,s=c,u.innerText=c,u.offsetWidth>r){o?s=a+"...":s=a;break}}return document.body.removeChild(u),s};static getLocation(){return new Promise((t,r)=>{navigator.geolocation?navigator.geolocation.getCurrentPosition(n=>{t(n.coords)}):r("Geolocation is not supported by this browser")})}static vibrate(t=200){"vibrate"in navigator?window.navigator.vibrate(t):console.error("Your device is not support vibrate on this browser.")}static copyToClipboard=t=>navigator.clipboard.writeText(t);static getSelectedText=()=>window.getSelection()?.toString();static siblings=t=>Array.prototype.slice.call(t.parentNode?.children).filter(r=>r!==t);static isElementFocus=t=>t===document.activeElement;static isTabInView=()=>!document.hidden;static navigateBack=()=>history.back();static navigateBack2=()=>history.go(-1)}function $o(e,t=document){return new jr(e,t)}class jr{context;nodes;prefixs=["moz","o","ms","webkit"];constructor(t,r=document){if(this.context=r,typeof t=="string"?this.nodes=Array.from(this.context.querySelectorAll(t)):t instanceof HTMLElement?this.nodes=[t]:this.nodes=t,this.nodes.length===0)throw new Error(`can not find ${t}`);this.each((n,i)=>{n instanceof HTMLInputElement&&n.addEventListener("change",o=>{this.changeRadioChecked(o.currentTarget.value)}),n instanceof HTMLSelectElement&&n.addEventListener("change",o=>{this.changeSelectSelected(o.currentTarget.value)})})}get(t){return t<0&&(t=this.nodes.length+t),this.nodes[t]}concat(t){return new jr(this.nodes.concat(t.nodes),this.context)}then(t){return t(this)??this}each(t){return this.nodes.forEach((r,n)=>{t(r,n)}),this}_save(t,r,n){t._mQuery||(t._mQuery={}),Array.isArray(n)?(t._mQuery[r]=t._mQuery[r]??[],t._mQuery[r].push(...n)):n!=null?t._mQuery[r]=n:delete t._mQuery[r]}on(t,r,n){return this.nodes.forEach(i=>{this._save(i,"events",[{event:t,callback:r,options:n}]),i.addEventListener(t,r,n)}),this}off(t,r,n){return this.nodes.forEach(i=>{i.removeEventListener(t,r,n)}),this}dispatchEvent(t,r){let n;const i=["click","dblclick","mousedown","mouseup","mousemove"],o=["keydown","keyup","keypress"];return typeof t=="string"?i.includes(t)?n=new MouseEvent(t,r):o.includes(t)?n=new KeyboardEvent(t,r):n=new Event(t,r):n=t,this.nodes.forEach(s=>{s.dispatchEvent(n)}),this}change(){return this.dispatchEvent("change")}click(){return this.dispatchEvent("click")}static hasEvent(t,r){return"on"+r in t}static _fragment(t){const r=document.createElement("template");return r.innerHTML=t,r.content.childNodes.forEach(n=>{const i=jr._scriptConvert(n);i!=n&&r.content.replaceChild(i,n)}),r.content}static _scriptConvert(t){const r=n=>{const i=n.ownerDocument.createElement("script");i.text=n.text;const o=n.attributes;for(let s=0;s<o.length;s++)i.setAttribute(o[s].name,o[s].value);return i};return t.tagName=="SCRIPT"&&(t=r(t)),t.querySelectorAll&&t.querySelectorAll("script").forEach(n=>{n.parentNode?.replaceChild(r(n),n)}),t}static _fixProp(t){const r={cellpadding:"cellPadding",cellspacing:"cellSpacing",class:"className",colspan:"colSpan",contenteditable:"contentEditable",for:"htmlFor",frameborder:"frameBorder",maxlength:"maxLength",readonly:"readOnly",rowspan:"rowSpan",tabindex:"tabIndex",usemap:"useMap"};return r[t]?r[t]:t}static isSVG(t){return(t||document.documentElement).nodeName.toLowerCase()==="svg"}static createElement(t){return jr.isSVG()?document.createElementNS.call(document,"http://www.w3.org/2000/svg",t):document.createElement.call(document,t)}static createTextNode(t){return document.createTextNode.call(document,t)}static createDocumentFragment(){return document.createDocumentFragment.call(document)}_insert(t,r){const n=this.nodes.length;if(n<1)return this;const i=[];if(typeof r=="string")this.nodes.forEach(o=>{const s=jr._fragment(r);i.push(...s.children),o[t](s)});else if(r instanceof HTMLElement)this.each(o=>{const s=n===1?r:jr._fragment(r.outerHTML);i.push(...n===1?[r]:s.children),o[t](s)}),n>1&&r.remove();else if(r instanceof jr){const o=n==1;r.each(s=>{this.each(a=>{const c=o?s:s.cloneNode(!0);i.push(c),a[t](c),jr._scriptConvert(c)})}),o||r.remove()}return t=="replaceWith"&&(this.nodes=i),this}append(t){return this._insert("append",t)}prepend(t){return this._insert("prepend",t)}after(t){return this._insert("after",t)}before(t){return this._insert("before",t)}replace(t){return this._insert("replaceWith",t)}remove(){return this.nodes.forEach(t=>{t.remove()}),this}static removeChild(t){t.parentElement?.removeChild(t)}find(t){const r=[];return this.nodes.forEach(n=>{r.push(...Array.from(n.querySelectorAll(t)))}),new jr(r,this.context)}filter(t){const r=[];return this.nodes.forEach(n=>{(n===t||typeof t=="string"&&n.matches&&n.matches(t))&&r.push(n)}),new jr(r,this.context)}next(){const t=[];return this.nodes.forEach(r=>{const n=r.nextElementSibling;n&&t.push(n)}),new jr(t,this.context)}prev(){const t=[];return this.nodes.forEach(r=>{const n=r.previousElementSibling;n&&t.push(n)}),new jr(t,this.context)}closest(t){const r=[];return this.nodes.forEach(n=>{const i=n.closest(t);i&&r.push(i)}),new jr(r,this.context)}shadow(t){const r=[];this.nodes.forEach(i=>{i.shadowRoot&&r.push(i.shadowRoot)});const n=new jr(r,this.context);return t!==void 0?n.find(t):n}parent(t){return this.parents(t,!0)}parents(t,r=!1){const n=[],i=s=>{if(n.indexOf(s)==-1&&n.push(s),!r&&s.parentElement)return i(s.parentElement)};this.nodes.forEach(s=>{s.parentElement&&i(s.parentElement)});const o=new jr(n,this.context);return t!==void 0?o.filter(t):o}static getComputedStyle(t,r,n){let i;const o=t.style.getPropertyPriority(r);return"getComputedStyle"in window?(i=getComputedStyle.call(window,t,n),i=i.getPropertyValue(r)):i=t.style.getPropertyValue(r),i+(o?"!"+o:"")}css(t,r){if((t===void 0||typeof t=="string")&&r===void 0){const n=this.nodes[0].style;if(typeof t=="string"){const i=n.getPropertyPriority(t),o=n.getPropertyValue(t).trim();return o?o+(i?"!"+i:""):jr.getComputedStyle(this.nodes[0],t)}else{const i=Object.fromEntries(this.nodes[0].style.cssText.split(";").filter(o=>!!o).map(o=>o.split(":").map(s=>s.trim())));return Object.assign(i,getComputedStyle.call(window,this.nodes[0])),i}}else{let n={};return typeof t=="string"&&r!==void 0?n[t]=r:typeof t=="object"&&(n=t),this.nodes.forEach(i=>{Object.keys(n).forEach(o=>{const s=String(n[o]).toLowerCase().includes("!important")?"important":"";i.style.setProperty(o,String(n[o]).replace(/!important/i,""),s)})}),this}}addClass(t){return this.toggleClass(t,!0)}removeClass(t){return this.toggleClass(t,!1)}toggleClass(t,r){const n=t.split(/[,\s]+/);return this.nodes.forEach(i=>{n.forEach(o=>{if(o.trim()!==""){let s="toggle";r!==void 0&&(s=r?"add":"remove"),i.classList[s](o.trim())}})}),this}hasClass(t){const r=t.split(/[,\s]+/);let n=!1;return this.nodes.forEach(i=>{n=n||r.every(o=>Array.from(i.classList??[]).includes(o.trim()))}),n}attr(t,r){if(r===void 0&&typeof t=="string")return this.nodes[0].getAttribute(t);let n={};return typeof t=="object"?n=t:r!==void 0&&(n[t]=r),this.nodes.forEach(i=>{Object.entries(n).forEach(([o,s])=>{i.setAttribute(o,s)})}),this}removeAttr(t){const r=t.split(/[,\s]+/);return this.nodes.forEach(n=>{r.forEach(i=>{n.removeAttribute(i)})}),this}prop(t,r){if(r===void 0&&typeof t=="string")return this.nodes[0][t];{let n={};return typeof t=="object"?n=t:typeof t=="string"&&r!==void 0&&(n[t]=r),this.nodes.forEach(i=>{Object.entries(n).forEach(([o,s])=>{const a=jr._fixProp(o);i[a]=s,a=="innerHTML"&&jr._scriptConvert(i)})}),this}}removeProp(t){const r=t.split(/[,\s]+/);return this.nodes.forEach(n=>{r.forEach(i=>{delete n[jr._fixProp(i)]})}),this}changeSelectSelected(t){this.nodes.forEach(r=>{if(r instanceof HTMLSelectElement){const n=r.options;for(let i=0,o=n.length;i<o;i++)n[i].value==t?n[i].selected=!0:n[i].selected=!1}})}changeRadioChecked(t){this.nodes.forEach(r=>{r instanceof HTMLInputElement&&(r.value==t?r.checked=!0:r.checked=!1)})}data(t,r){if(typeof t=="string"&&t.indexOf("-")!=-1)throw new Error(`Key "${t}" contains "-" (dash). Dashes are not allowed in property names. Use camelCase instead.`);if((typeof t=="string"||t===void 0)&&r===void 0){const n=Object.assign({},this.nodes[0].dataset);return Object.keys(n).forEach(i=>{if(n[i]?.startsWith("[")||n[i]?.startsWith("{"))try{n[i]=JSON.parse(n[i]??"")}catch{}}),typeof t=="string"?n[t]:n}else{let n={};return typeof t=="object"?n=t:typeof t=="string"&&(n[t]=r),this.nodes.forEach(i=>{Object.entries(n).forEach(([o,s])=>{s!=null?i.dataset[o]=s instanceof Object?JSON.stringify(s):s:delete i.dataset[o]})}),this}}removeData(t){const r=t.split(/[,\s]+/);return this.nodes.forEach(n=>{r.forEach(i=>{delete n.dataset[i]})}),this}show(){return this.toggle(!0)}hide(){return this.toggle(!1)}toggle(t){return this.nodes.forEach(r=>{const n=r.style.display,i=getComputedStyle(r).display,o=n=="none"||i=="none";if(o&&(t===void 0||t===!0)){const s=r instanceof HTMLTableRowElement?"table-row":r instanceof HTMLTableCellElement?"table-cell":"block";r.style.display=r._mQuery?.prevDisplay??(n==i&&i!="none"?"":s),this._save(r,"prevDisplay",null)}!o&&(t==null||t===!1)&&(i!="none"&&this._save(r,"prevDisplay",i),r.style.setProperty("display","none"))})}empty(){return this.html("")}html(t){return t instanceof HTMLElement?this.empty().append(t.innerHTML):this.prop("innerHTML",t)}text(t){return this.prop("textContent",t)}val(t){return this.prop("value",t)}}function Lv(e){return e*Math.PI/180}function HH(e){return e*180/Math.PI}function qH(e,t,r,n){const i=e-r,o=t-n;return Math.sqrt(i*i+o*o)}function KH(e,t,r,n){const i=r-e,o=n-t;return Math.atan2(o,i)}function Vv(e){return e[0]*e[0]+e[1]*e[1]}function xE(e){const t=Math.sqrt(Vv(e));e[0]&&(e[0]/=t),e[1]&&(e[1]/=t)}class Mc{x;y;vx;vy;ax;ay;mass;constructor(t){this.x=t.x,this.y=t.y,this.vx=t?.vx||0,this.vy=t?.vy||0,this.ax=t?.ax||0,this.ay=t?.ay||0,this.mass=t?.mass||0}fromAngleAndLength(t,r){return new Mc({x:Math.cos(t)*r,y:Math.sin(t)*r})}distanceTo(t){return qH(this.x,this.y,t.x,t.y)}angleTo(t){return KH(this.x,this.y,t.x,t.y)}followTo(t,r=3){const n=this.angleTo(t),{x:i,y:o}=this.fromAngleAndLength(n,r);this.vx=i,this.vy=o,this.nextFrame()}followAccelerationTo(t,r=.05){const n=this.angleTo(t),{x:i,y:o}=this.fromAngleAndLength(n,r);this.ax=i,this.ay=o,this.nextFrame()}nextFrame(t){const r=t?.gravity??0,n=t?.friction??0;if(this.vx+=this.ax,this.vy+=this.ay,this.vy+=r,n>0){const i=Math.atan2(this.vy,this.vx);let o=Math.sqrt(this.vx*this.vx+this.vy*this.vy);o>n?o-=n:o=0,this.vx=Math.cos(i)*o,this.vy=Math.sin(i)*o}this.x+=this.vx,this.y+=this.vy}nextFrameEaseTo(t,r){const n=r?.gravity??0,i=r?.friction??1,o=r?.easing??.05,s=t.x-this.x,a=t.y-this.y;this.vx=s*o,this.vy=a*o,this.vy+=n,this.vx*=i,this.vy*=i,this.x+=this.vx,this.y+=this.vy}nextFrameSpringTo(t,r){const n=r?.gravity??0,i=r?.friction??.95,o=r?.spring??.03;(Array.isArray(t)?t:[t]).forEach(s=>{const a=s.x-this.x,c=s.y-this.y,l=a*o,u=c*o;this.vx+=l,this.vy+=u}),this.vy+=n,this.vx*=i,this.vy*=i,this.x+=this.vx,this.y+=this.vy}nextFrameSpringConnect(t,r){const n=r?.gravity??0,i=r?.friction??.95,o=r?.spring??.03,s=r?.springLength??100,a=this.angleTo(t);this.nextFrameSpringTo(new Mc({x:t.x-Math.cos(a)*s,y:t.y-Math.sin(a)*s}),{spring:o,friction:i,gravity:n})}}let YH=class extends Mc{width;height;constructor(e){super(e),this.width=e.width,this.height=e.height}eq(e){return this.x===e.x&&this.y===e.y&&this.width===e.width&&this.height===e.height}isIntersectRect(e){return!(this.x+this.width<e.x||e.x+e.width<this.x||this.y+this.height<e.y||e.y+e.height<this.y)}isContainPoint(e){return!(e.x<this.x||e.x>this.x+this.width||e.y<this.y||e.y>this.y+this.height)}toArray(){return[this.x,this.y,this.width,this.height]}clone(e){this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height}};class la extends Mc{radius;constructor(t){super(t),this.radius=t?.radius??0}toSVGPathData(){return[this.x,this.y]}toSVGPathD(){return`${this.x},${this.y}`}setX(t){this.x=t}setY(t){this.y=t}setXY(t,r){this.x=t,this.y=r}eq(t){return this.x===t.x&&this.y===t.y}midPointBtw(t){return new la({x:this.x+(t.x-this.x)/2,y:this.y+(t.y-this.y)/2})}toArray(){return[this.x,this.y]}clone(t){this.setXY(t.x,t.y)}getBounds(){return new YH({x:this.x-this.radius,y:this.y-this.radius,width:this.radius*2,height:this.radius*2})}nextFrameCollisionTo(t){const r=t.x-this.x,n=t.y-this.y;if(Math.sqrt(r*r+n*n)<this.radius+t.radius){const o=Math.atan2(n,r),s=Math.sin(o),a=Math.cos(o),c={x:0,y:0},l=i(r,n,s,a,!0),u=i(this.vx,this.vy,s,a,!0),h=i(t.vx,t.vy,s,a,!0),f=u.x-h.x;u.x=((this.mass-t.mass)*u.x+2*t.mass*h.x)/(this.mass+t.mass),h.x=f+u.x;const d=Math.abs(u.x)+Math.abs(h.x),p=this.radius+t.radius-Math.abs(c.x-l.x);c.x+=u.x/d*p,l.x+=h.x/d*p;const g=i(c.x,c.y,s,a,!1),v=i(l.x,l.y,s,a,!1);t.x=this.x+v.x,t.y=this.y+v.y,this.x=this.x+g.x,this.y=this.y+g.y;const b=i(u.x,u.y,s,a,!1),y=i(h.x,h.y,s,a,!1);this.vx=b.x,this.vy=b.y,t.vx=y.x,t.vy=y.y}function i(o,s,a,c,l=!1){return{x:l?o*c+s*a:o*c-s*a,y:l?s*c-o*a:s*c+o*a}}}nextFrameBounce(t){const r=t.left,n=t.top,i=t.right,o=t.bottom,s=t?.bounce??-1;this.x+this.radius>i?(this.x=i-this.radius,this.vx*=s):this.x-this.radius<r&&(this.x=r+this.radius,this.vx*=s),this.y+this.radius>o?(this.y=o-this.radius,this.vy*=s):this.y-this.radius<n&&(this.y=n+this.radius,this.vy*=s)}}var Uv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ln(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ae(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var XH={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
`;return function(){var H=new Error("get-stack-trace"),W=H&&H.stack?H.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",rt=t.console&&(t.console.warn||t.console.log);return rt&&rt.call(t.console,B,W),w.apply(this,arguments)}}var g;typeof Object.assign!="function"?g=function(w){if(w===i||w===null)throw new TypeError("Cannot convert undefined or null to object");for(var T=Object(w),F=1;F<arguments.length;F++){var B=arguments[F];if(B!==i&&B!==null)for(var H in B)B.hasOwnProperty(H)&&(T[H]=B[H])}return T}:g=Object.assign;var v=p(function(w,T,F){for(var B=Object.keys(T),H=0;H<B.length;)(!F||F&&w[B[H]]===i)&&(w[B[H]]=T[B[H]]),H++;return w},"extend","Use `assign`."),b=p(function(w,T){return v(w,T,!0)},"merge","Use `assign`.");function y(w,T,F){var B=T.prototype,H;H=w.prototype=Object.create(B),H.constructor=w,H._super=B,F&&g(H,F)}function m(w,T){return function(){return w.apply(T,arguments)}}function x(w,T){return typeof w==a?w.apply(T&&T[0]||i,T):w}function A(w,T){return w===i?T:w}function E(w,T,F){d(U(T),function(B){w.addEventListener(B,F,!1)})}function k(w,T,F){d(U(T),function(B){w.removeEventListener(B,F,!1)})}function D(w,T){for(;w;){if(w==T)return!0;w=w.parentNode}return!1}function V(w,T){return w.indexOf(T)>-1}function U(w){return w.trim().split(/\s+/g)}function K(w,T,F){if(w.indexOf&&!F)return w.indexOf(T);for(var B=0;B<w.length;){if(F&&w[B][F]==T||!F&&w[B]===T)return B;B++}return-1}function Y(w){return Array.prototype.slice.call(w,0)}function it(w,T,F){for(var B=[],H=[],W=0;W<w.length;){var rt=T?w[W][T]:w[W];K(H,rt)<0&&B.push(w[W]),H[W]=rt,W++}return F&&(T?B=B.sort(function(ht,St){return ht[T]>St[T]}):B=B.sort()),B}function nt(w,T){for(var F,B,H=T[0].toUpperCase()+T.slice(1),W=0;W<o.length;){if(F=o[W],B=F?F+H:T,B in w)return B;W++}return i}var ft=1;function xt(){return ft++}function _t(w){var T=w.ownerDocument||w;return T.defaultView||T.parentWindow||t}var yt=/mobile|tablet|ip(ad|hone|od)|android/i,at="ontouchstart"in t,X=nt(t,"PointerEvent")!==i,O=at&&yt.test(navigator.userAgent),C="touch",$="pen",_="mouse",P="kinect",M=25,I=1,G=2,q=4,et=8,st=1,mt=2,Lt=4,J=8,Q=16,ot=mt|Lt,lt=J|Q,ct=ot|lt,dt=["x","y"],$t=["clientX","clientY"];function vt(w,T){var F=this;this.manager=w,this.callback=T,this.element=w.element,this.target=w.options.inputTarget,this.domHandler=function(B){x(w.options.enable,[w])&&F.handler(B)},this.init()}vt.prototype={handler:function(){},init:function(){this.evEl&&E(this.element,this.evEl,this.domHandler),this.evTarget&&E(this.target,this.evTarget,this.domHandler),this.evWin&&E(_t(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&k(this.element,this.evEl,this.domHandler),this.evTarget&&k(this.target,this.evTarget,this.domHandler),this.evWin&&k(_t(this.element),this.evWin,this.domHandler)}};function bt(w){var T,F=w.options.inputClass;return F?T=F:X?T=dn:O?T=Sn:at?T=L:T=dr,new T(w,ut)}function ut(w,T,F){var B=F.pointers.length,H=F.changedPointers.length,W=T&I&&B-H===0,rt=T&(q|et)&&B-H===0;F.isFirst=!!W,F.isFinal=!!rt,W&&(w.session={}),F.eventType=T,It(w,F),w.emit("hammer.input",F),w.recognize(F),w.session.prevInput=F}function It(w,T){var F=w.session,B=T.pointers,H=B.length;F.firstInput||(F.firstInput=Kt(T)),H>1&&!F.firstMultiple?F.firstMultiple=Kt(T):H===1&&(F.firstMultiple=!1);var W=F.firstInput,rt=F.firstMultiple,ht=rt?rt.center:W.center,St=T.center=ne(B);T.timeStamp=u(),T.deltaTime=T.timeStamp-W.timeStamp,T.angle=nr(ht,St),T.distance=je(ht,St),Vt(F,T),T.offsetDirection=fe(T.deltaX,T.deltaY);var gt=Yt(T.deltaTime,T.deltaX,T.deltaY);T.overallVelocityX=gt.x,T.overallVelocityY=gt.y,T.overallVelocity=l(gt.x)>l(gt.y)?gt.x:gt.y,T.scale=rt?sr(rt.pointers,B):1,T.rotation=rt?gr(rt.pointers,B):0,T.maxPointers=F.prevInput?T.pointers.length>F.prevInput.maxPointers?T.pointers.length:F.prevInput.maxPointers:T.pointers.length,Ut(F,T);var pt=w.element;D(T.srcEvent.target,pt)&&(pt=T.srcEvent.target),T.target=pt}function Vt(w,T){var F=T.center,B=w.offsetDelta||{},H=w.prevDelta||{},W=w.prevInput||{};(T.eventType===I||W.eventType===q)&&(H=w.prevDelta={x:W.deltaX||0,y:W.deltaY||0},B=w.offsetDelta={x:F.x,y:F.y}),T.deltaX=H.x+(F.x-B.x),T.deltaY=H.y+(F.y-B.y)}function Ut(w,T){var F=w.lastInterval||T,B=T.timeStamp-F.timeStamp,H,W,rt,ht;if(T.eventType!=et&&(B>M||F.velocity===i)){var St=T.deltaX-F.deltaX,gt=T.deltaY-F.deltaY,pt=Yt(B,St,gt);W=pt.x,rt=pt.y,H=l(pt.x)>l(pt.y)?pt.x:pt.y,ht=fe(St,gt),w.lastInterval=T}else H=F.velocity,W=F.velocityX,rt=F.velocityY,ht=F.direction;T.velocity=H,T.velocityX=W,T.velocityY=rt,T.direction=ht}function Kt(w){for(var T=[],F=0;F<w.pointers.length;)T[F]={clientX:c(w.pointers[F].clientX),clientY:c(w.pointers[F].clientY)},F++;return{timeStamp:u(),pointers:T,center:ne(T),deltaX:w.deltaX,deltaY:w.deltaY}}function ne(w){var T=w.length;if(T===1)return{x:c(w[0].clientX),y:c(w[0].clientY)};for(var F=0,B=0,H=0;H<T;)F+=w[H].clientX,B+=w[H].clientY,H++;return{x:c(F/T),y:c(B/T)}}function Yt(w,T,F){return{x:T/w||0,y:F/w||0}}function fe(w,T){return w===T?st:l(w)>=l(T)?w<0?mt:Lt:T<0?J:Q}function je(w,T,F){F||(F=dt);var B=T[F[0]]-w[F[0]],H=T[F[1]]-w[F[1]];return Math.sqrt(B*B+H*H)}function nr(w,T,F){F||(F=dt);var B=T[F[0]]-w[F[0]],H=T[F[1]]-w[F[1]];return Math.atan2(H,B)*180/Math.PI}function gr(w,T){return nr(T[1],T[0],$t)+nr(w[1],w[0],$t)}function sr(w,T){return je(T[0],T[1],$t)/je(w[0],w[1],$t)}var Mr={mousedown:I,mousemove:G,mouseup:q},an="mousedown",ue="mousemove mouseup";function dr(){this.evEl=an,this.evWin=ue,this.pressed=!1,vt.apply(this,arguments)}y(dr,vt,{handler:function(w){var T=Mr[w.type];T&I&&w.button===0&&(this.pressed=!0),T&G&&w.which!==1&&(T=q),this.pressed&&(T&q&&(this.pressed=!1),this.callback(this.manager,T,{pointers:[w],changedPointers:[w],pointerType:_,srcEvent:w}))}});var Lr={pointerdown:I,pointermove:G,pointerup:q,pointercancel:et,pointerout:et},Pi={2:C,3:$,4:_,5:P},Bn="pointerdown",ni="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(Bn="MSPointerDown",ni="MSPointerMove MSPointerUp MSPointerCancel");function dn(){this.evEl=Bn,this.evWin=ni,vt.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}y(dn,vt,{handler:function(w){var T=this.store,F=!1,B=w.type.toLowerCase().replace("ms",""),H=Lr[B],W=Pi[w.pointerType]||w.pointerType,rt=W==C,ht=K(T,w.pointerId,"pointerId");H&I&&(w.button===0||rt)?ht<0&&(T.push(w),ht=T.length-1):H&(q|et)&&(F=!0),!(ht<0)&&(T[ht]=w,this.callback(this.manager,H,{pointers:T,changedPointers:[w],pointerType:W,srcEvent:w}),F&&T.splice(ht,1))}});var Xe={touchstart:I,touchmove:G,touchend:q,touchcancel:et},$s="touchstart",An="touchstart touchmove touchend touchcancel";function Hn(){this.evTarget=$s,this.evWin=An,this.started=!1,vt.apply(this,arguments)}y(Hn,vt,{handler:function(w){var T=Xe[w.type];if(T===I&&(this.started=!0),!!this.started){var F=Qr.call(this,w,T);T&(q|et)&&F[0].length-F[1].length===0&&(this.started=!1),this.callback(this.manager,T,{pointers:F[0],changedPointers:F[1],pointerType:C,srcEvent:w})}}});function Qr(w,T){var F=Y(w.touches),B=Y(w.changedTouches);return T&(q|et)&&(F=it(F.concat(B),"identifier",!0)),[F,B]}var ii={touchstart:I,touchmove:G,touchend:q,touchcancel:et},qn="touchstart touchmove touchend touchcancel";function Sn(){this.evTarget=qn,this.targetIds={},vt.apply(this,arguments)}y(Sn,vt,{handler:function(w){var T=ii[w.type],F=Ti.call(this,w,T);F&&this.callback(this.manager,T,{pointers:F[0],changedPointers:F[1],pointerType:C,srcEvent:w})}});function Ti(w,T){var F=Y(w.touches),B=this.targetIds;if(T&(I|G)&&F.length===1)return B[F[0].identifier]=!0,[F,F];var H,W,rt=Y(w.changedTouches),ht=[],St=this.target;if(W=F.filter(function(gt){return D(gt.target,St)}),T===I)for(H=0;H<W.length;)B[W[H].identifier]=!0,H++;for(H=0;H<rt.length;)B[rt[H].identifier]&&ht.push(rt[H]),T&(q|et)&&delete B[rt[H].identifier],H++;if(ht.length)return[it(W.concat(ht),"identifier",!0),ht]}var oi=2500,R=25;function L(){vt.apply(this,arguments);var w=m(this.handler,this);this.touch=new Sn(this.manager,w),this.mouse=new dr(this.manager,w),this.primaryTouch=null,this.lastTouches=[]}y(L,vt,{handler:function(w,T,F){var B=F.pointerType==C,H=F.pointerType==_;if(!(H&&F.sourceCapabilities&&F.sourceCapabilities.firesTouchEvents)){if(B)z.call(this,T,F);else if(H&&tt.call(this,F))return;this.callback(w,T,F)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function z(w,T){w&I?(this.primaryTouch=T.changedPointers[0].identifier,Z.call(this,T)):w&(q|et)&&Z.call(this,T)}function Z(w){var T=w.changedPointers[0];if(T.identifier===this.primaryTouch){var F={x:T.clientX,y:T.clientY};this.lastTouches.push(F);var B=this.lastTouches,H=function(){var W=B.indexOf(F);W>-1&&B.splice(W,1)};setTimeout(H,oi)}}function tt(w){for(var T=w.srcEvent.clientX,F=w.srcEvent.clientY,B=0;B<this.lastTouches.length;B++){var H=this.lastTouches[B],W=Math.abs(T-H.x),rt=Math.abs(F-H.y);if(W<=R&&rt<=R)return!0}return!1}var Ot=nt(s.style,"touchAction"),Tt=Ot!==i,Ht="compute",ve="auto",te="manipulation",zt="none",qt="pan-x",le="pan-y",jt=Ue();function Gt(w,T){this.manager=w,this.set(T)}Gt.prototype={set:function(w){w==Ht&&(w=this.compute()),Tt&&this.manager.element.style&&jt[w]&&(this.manager.element.style[Ot]=w),this.actions=w.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var w=[];return d(this.manager.recognizers,function(T){x(T.options.enable,[T])&&(w=w.concat(T.getTouchAction()))}),ie(w.join(" "))},preventDefaults:function(w){var T=w.srcEvent,F=w.offsetDirection;if(this.manager.session.prevented){T.preventDefault();return}var B=this.actions,H=V(B,zt)&&!jt[zt],W=V(B,le)&&!jt[le],rt=V(B,qt)&&!jt[qt];if(H){var ht=w.pointers.length===1,St=w.distance<2,gt=w.deltaTime<250;if(ht&&St&>)return}if(!(rt&&W)&&(H||W&&F&ot||rt&&F<))return this.preventSrc(T)},preventSrc:function(w){this.manager.session.prevented=!0,w.preventDefault()}};function ie(w){if(V(w,zt))return zt;var T=V(w,qt),F=V(w,le);return T&&F?zt:T||F?T?qt:le:V(w,te)?te:ve}function Ue(){if(!Tt)return!1;var w={},T=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(F){w[F]=T?t.CSS.supports("touch-action",F):!0}),w}var Ar=1,Ee=2,Je=4,ar=8,ir=ar,Fe=16,xe=32;function Zt(w){this.options=g({},this.defaults,w||{}),this.id=xt(),this.manager=null,this.options.enable=A(this.options.enable,!0),this.state=Ar,this.simultaneous={},this.requireFail=[]}Zt.prototype={defaults:{},set:function(w){return g(this.options,w),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(w){if(f(w,"recognizeWith",this))return this;var T=this.simultaneous;return w=Dn(w,this),T[w.id]||(T[w.id]=w,w.recognizeWith(this)),this},dropRecognizeWith:function(w){return f(w,"dropRecognizeWith",this)?this:(w=Dn(w,this),delete this.simultaneous[w.id],this)},requireFailure:function(w){if(f(w,"requireFailure",this))return this;var T=this.requireFail;return w=Dn(w,this),K(T,w)===-1&&(T.push(w),w.requireFailure(this)),this},dropRequireFailure:function(w){if(f(w,"dropRequireFailure",this))return this;w=Dn(w,this);var T=K(this.requireFail,w);return T>-1&&this.requireFail.splice(T,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(w){return!!this.simultaneous[w.id]},emit:function(w){var T=this,F=this.state;function B(H){T.manager.emit(H,w)}F<ar&&B(T.options.event+lr(F)),B(T.options.event),w.additionalEvent&&B(w.additionalEvent),F>=ar&&B(T.options.event+lr(F))},tryEmit:function(w){if(this.canEmit())return this.emit(w);this.state=xe},canEmit:function(){for(var w=0;w<this.requireFail.length;){if(!(this.requireFail[w].state&(xe|Ar)))return!1;w++}return!0},recognize:function(w){var T=g({},w);if(!x(this.options.enable,[this,T])){this.reset(),this.state=xe;return}this.state&(ir|Fe|xe)&&(this.state=Ar),this.state=this.process(T),this.state&(Ee|Je|ar|Fe)&&this.tryEmit(T)},process:function(w){},getTouchAction:function(){},reset:function(){}};function lr(w){return w&Fe?"cancel":w&ar?"end":w&Je?"move":w&Ee?"start":""}function fn(w){return w==Q?"down":w==J?"up":w==mt?"left":w==Lt?"right":""}function Dn(w,T){var F=T.manager;return F?F.get(w):w}function br(){Zt.apply(this,arguments)}y(br,Zt,{defaults:{pointers:1},attrTest:function(w){var T=this.options.pointers;return T===0||w.pointers.length===T},process:function(w){var T=this.state,F=w.eventType,B=T&(Ee|Je),H=this.attrTest(w);return B&&(F&et||!H)?T|Fe:B||H?F&q?T|ar:T&Ee?T|Je:Ee:xe}});function yr(){br.apply(this,arguments),this.pX=null,this.pY=null}y(yr,br,{defaults:{event:"pan",threshold:10,pointers:1,direction:ct},getTouchAction:function(){var w=this.options.direction,T=[];return w&ot&&T.push(le),w<&&T.push(qt),T},directionTest:function(w){var T=this.options,F=!0,B=w.distance,H=w.direction,W=w.deltaX,rt=w.deltaY;return H&T.direction||(T.direction&ot?(H=W===0?st:W<0?mt:Lt,F=W!=this.pX,B=Math.abs(w.deltaX)):(H=rt===0?st:rt<0?J:Q,F=rt!=this.pY,B=Math.abs(w.deltaY))),w.direction=H,F&&B>T.threshold&&H&T.direction},attrTest:function(w){return br.prototype.attrTest.call(this,w)&&(this.state&Ee||!(this.state&Ee)&&this.directionTest(w))},emit:function(w){this.pX=w.deltaX,this.pY=w.deltaY;var T=fn(w.direction);T&&(w.additionalEvent=this.options.event+T),this._super.emit.call(this,w)}});function Br(){br.apply(this,arguments)}y(Br,br,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[zt]},attrTest:function(w){return this._super.attrTest.call(this,w)&&(Math.abs(w.scale-1)>this.options.threshold||this.state&Ee)},emit:function(w){if(w.scale!==1){var T=w.scale<1?"in":"out";w.additionalEvent=this.options.event+T}this._super.emit.call(this,w)}});function si(){Zt.apply(this,arguments),this._timer=null,this._input=null}y(si,Zt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[ve]},process:function(w){var T=this.options,F=w.pointers.length===T.pointers,B=w.distance<T.threshold,H=w.deltaTime>T.time;if(this._input=w,!B||!F||w.eventType&(q|et)&&!H)this.reset();else if(w.eventType&I)this.reset(),this._timer=h(function(){this.state=ir,this.tryEmit()},T.time,this);else if(w.eventType&q)return ir;return xe},reset:function(){clearTimeout(this._timer)},emit:function(w){this.state===ir&&(w&&w.eventType&q?this.manager.emit(this.options.event+"up",w):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}});function ai(){br.apply(this,arguments)}y(ai,br,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[zt]},attrTest:function(w){return this._super.attrTest.call(this,w)&&(Math.abs(w.rotation)>this.options.threshold||this.state&Ee)}});function Zr(){br.apply(this,arguments)}y(Zr,br,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:ot|lt,pointers:1},getTouchAction:function(){return yr.prototype.getTouchAction.call(this)},attrTest:function(w){var T=this.options.direction,F;return T&(ot|lt)?F=w.overallVelocity:T&ot?F=w.overallVelocityX:T<&&(F=w.overallVelocityY),this._super.attrTest.call(this,w)&&T&w.offsetDirection&&w.distance>this.options.threshold&&w.maxPointers==this.options.pointers&&l(F)>this.options.velocity&&w.eventType&q},emit:function(w){var T=fn(w.offsetDirection);T&&this.manager.emit(this.options.event+T,w),this.manager.emit(this.options.event,w)}});function li(){Zt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}y(li,Zt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[te]},process:function(w){var T=this.options,F=w.pointers.length===T.pointers,B=w.distance<T.threshold,H=w.deltaTime<T.time;if(this.reset(),w.eventType&I&&this.count===0)return this.failTimeout();if(B&&H&&F){if(w.eventType!=q)return this.failTimeout();var W=this.pTime?w.timeStamp-this.pTime<T.interval:!0,rt=!this.pCenter||je(this.pCenter,w.center)<T.posThreshold;this.pTime=w.timeStamp,this.pCenter=w.center,!rt||!W?this.count=1:this.count+=1,this._input=w;var ht=this.count%T.taps;if(ht===0)return this.hasRequireFailures()?(this._timer=h(function(){this.state=ir,this.tryEmit()},T.interval,this),Ee):ir}return xe},failTimeout:function(){return this._timer=h(function(){this.state=xe},this.options.interval,this),xe},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==ir&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function ci(w,T){return T=T||{},T.recognizers=A(T.recognizers,ci.defaults.preset),new Na(w,T)}ci.VERSION="2.0.7",ci.defaults={domEvents:!1,touchAction:Ht,enable:!0,inputTarget:null,inputClass:null,preset:[[ai,{enable:!1}],[Br,{enable:!1},["rotate"]],[Zr,{direction:ot}],[yr,{direction:ot},["swipe"]],[li],[li,{event:"doubletap",taps:2},["tap"]],[si]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var Oa=1,Hr=2;function Na(w,T){this.options=g({},ci.defaults,T||{}),this.options.inputTarget=this.options.inputTarget||w,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=w,this.input=bt(this),this.touchAction=new Gt(this,this.options.touchAction),S(this,!0),d(this.options.recognizers,function(F){var B=this.add(new F[0](F[1]));F[2]&&B.recognizeWith(F[2]),F[3]&&B.requireFailure(F[3])},this)}Na.prototype={set:function(w){return g(this.options,w),w.touchAction&&this.touchAction.update(),w.inputTarget&&(this.input.destroy(),this.input.target=w.inputTarget,this.input.init()),this},stop:function(w){this.session.stopped=w?Hr:Oa},recognize:function(w){var T=this.session;if(!T.stopped){this.touchAction.preventDefaults(w);var F,B=this.recognizers,H=T.curRecognizer;(!H||H&&H.state&ir)&&(H=T.curRecognizer=null);for(var W=0;W<B.length;)F=B[W],T.stopped!==Hr&&(!H||F==H||F.canRecognizeWith(H))?F.recognize(w):F.reset(),!H&&F.state&(Ee|Je|ar)&&(H=T.curRecognizer=F),W++}},get:function(w){if(w instanceof Zt)return w;for(var T=this.recognizers,F=0;F<T.length;F++)if(T[F].options.event==w)return T[F];return null},add:function(w){if(f(w,"add",this))return this;var T=this.get(w.options.event);return T&&this.remove(T),this.recognizers.push(w),w.manager=this,this.touchAction.update(),w},remove:function(w){if(f(w,"remove",this))return this;if(w=this.get(w),w){var T=this.recognizers,F=K(T,w);F!==-1&&(T.splice(F,1),this.touchAction.update())}return this},on:function(w,T){if(w!==i&&T!==i){var F=this.handlers;return d(U(w),function(B){F[B]=F[B]||[],F[B].push(T)}),this}},off:function(w,T){if(w!==i){var F=this.handlers;return d(U(w),function(B){T?F[B]&&F[B].splice(K(F[B],T),1):delete F[B]}),this}},emit:function(w,T){this.options.domEvents&&N(w,T);var F=this.handlers[w]&&this.handlers[w].slice();if(!(!F||!F.length)){T.type=w,T.preventDefault=function(){T.srcEvent.preventDefault()};for(var B=0;B<F.length;)F[B](T),B++}},destroy:function(){this.element&&S(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function S(w,T){var F=w.element;if(F.style){var B;d(w.options.cssProps,function(H,W){B=nt(F.style,W),T?(w.oldCssProps[B]=F.style[B],F.style[B]=H):F.style[B]=w.oldCssProps[B]||""}),T||(w.oldCssProps={})}}function N(w,T){var F=r.createEvent("Event");F.initEvent(w,!0,!0),F.gesture=T,T.target.dispatchEvent(F)}g(ci,{INPUT_START:I,INPUT_MOVE:G,INPUT_END:q,INPUT_CANCEL:et,STATE_POSSIBLE:Ar,STATE_BEGAN:Ee,STATE_CHANGED:Je,STATE_ENDED:ar,STATE_RECOGNIZED:ir,STATE_CANCELLED:Fe,STATE_FAILED:xe,DIRECTION_NONE:st,DIRECTION_LEFT:mt,DIRECTION_RIGHT:Lt,DIRECTION_UP:J,DIRECTION_DOWN:Q,DIRECTION_HORIZONTAL:ot,DIRECTION_VERTICAL:lt,DIRECTION_ALL:ct,Manager:Na,Input:vt,TouchAction:Gt,TouchInput:Sn,MouseInput:dr,PointerEventInput:dn,TouchMouseInput:L,SingleTouchInput:Hn,Recognizer:Zt,AttrRecognizer:br,Tap:li,Pan:yr,Swipe:Zr,Pinch:Br,Rotate:ai,Press:si,on:E,off:k,each:d,merge:b,extend:v,assign:g,inherit:y,bindFn:m,prefixed:nt});var j=typeof t<"u"?t:typeof self<"u"?self:{};j.Hammer=ci,typeof i=="function"&&i.amd?i(function(){return ci}):e.exports?e.exports=ci:t[n]=ci})(window,document,"Hammer")})(XH);const SE=[1,0,0,1,0,0],$E=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];class _n{value;matrix3d;isEverTo3d=!1;_prev_rotatex=0;_prev_rotatey=0;constructor(t=SE){this.value=Array.from(t),this.matrix3d=this.toMatrix3D()}unit(){return this.value=Array.from(SE),this.matrix3d=this.toMatrix3D(),this}transformPoint(t,r,n=0,i=0){const o=t-n,s=r-i;return t=o*this.value[0]+s*this.value[2]+this.value[4],r=o*this.value[1]+s*this.value[3]+this.value[5],[t+n,r+i]}fromString(t){const r=pS("number",t);return r.length===6?r.forEach((n,i)=>{n.fullMatch&&(this.value[i]=parseFloat(n.fullMatch))}):this.unit(),this}toMatrix3D(t=this.matrix3d){const r=[this.value[0],this.value[1],0,0,this.value[2],this.value[3],0,0,0,0,1,0,this.value[4],this.value[5],0,1];return t?(t.value=r,t):new tl(r)}offset(t=0,r=0){return[t-this.value[4],r-this.value[5]]}clone(){return new _n(this.value)}multiply(t){const r=this.value;let n;t instanceof _n?n=t.value:n=t;const i=r[0]*n[0]+r[2]*n[1],o=r[1]*n[0]+r[3]*n[1],s=r[0]*n[2]+r[2]*n[3],a=r[1]*n[2]+r[3]*n[3],c=r[0]*n[4]+r[2]*n[5]+r[4],l=r[1]*n[4]+r[3]*n[5]+r[5];return r[0]=i,r[1]=o,r[2]=s,r[3]=a,r[4]=c,r[5]=l,this}inverse(){const t=new _n(this.value),r=t.value,n=1/(r[0]*r[3]-r[1]*r[2]),i=r[3]*n,o=-r[1]*n,s=-r[2]*n,a=r[0]*n,c=n*(r[2]*r[5]-r[3]*r[4]),l=n*(r[1]*r[4]-r[0]*r[5]);return r[0]=i,r[1]=o,r[2]=s,r[3]=a,r[4]=c,r[5]=l,t}translate(t,r){return this.matrix3d.translate(t,r,0),this.multiply([1,0,0,1,t,r])}translateTo(t,r){const n=this.offset(t,r);return this.translate(n[0],n[1])}translateX(t){return this.translate(t,0)}translateY(t){return this.translate(0,t)}translateZ(t){return this.isEverTo3d=!0,this.matrix3d.translate(0,0,t)}translate3d(t,r,n){return this.isEverTo3d=!0,this.matrix3d.translate(t,r,n)}rotate(t,r=0,n=0){const i=Lv(t),o=+Math.cos(i).toFixed(9),s=+Math.sin(i).toFixed(9);return this.multiply([o,s,-s,o,r,n]),this.translate(-r,-n),this}rotateX(t){return this._prev_rotatex=t,this.isEverTo3d=!0,this.matrix3d.rotate("x",t)}rotateXTo(t){return this.rotateX(t-this._prev_rotatex)}rotateY(t){return this._prev_rotatey=t,this.isEverTo3d=!0,this.matrix3d.rotate("y",t)}rotateYTo(t){return this.rotateY(t-this._prev_rotatey)}rotateZ(t){return this.isEverTo3d=!0,this.matrix3d.rotate("z",t)}rotate3d(t,r,n){return this.isEverTo3d=!0,this.matrix3d.rotate("x",t).rotate("y",r).rotate("z",n)}scale(t,r=t,n=0,i=0){return this.matrix3d.scale(t,r,1),this.translate(n,i),this.multiply([t,0,0,r,0,0]),this.translate(-n,-i),this}scaleTo(t,r=t){return this.scale(t/this.value[0],r/this.value[3]),this}scaleX(t){return this.scale(t,1)}scaleY(t){return this.scale(1,t)}scaleZ(t){return this.isEverTo3d=!0,this.matrix3d.scale(1,1,t)}scale3d(t,r,n){return this.isEverTo3d=!0,this.matrix3d.scale(t,r,n)}skew(t,r=0){const n=t*Math.PI/180,i=r*Math.PI/180,o=Math.tan(n),s=Math.tan(i);return this.multiply([1,s,o,1,0,0])}skewX(t){return this.skew(t,0)}skewY(t){return this.skew(0,t)}skewZ(t){return this}skew3d(t,r,n){return this}split(){const t={dx:0,dy:0,scalex:1,scaley:1,shear:1,rotate:0,isSimple:!0,isSuperSimple:!0,noRotation:!1};t.dx=this.value[4],t.dy=this.value[5];const r=[[this.value[0],this.value[2]],[this.value[1],this.value[3]]];t.scalex=Math.sqrt(Vv(r[0])),xE(r[0]),t.shear=r[0][0]*r[1][0]+r[0][1]*r[1][1],r[1]=[r[1][0]-r[0][0]*t.shear,r[1][1]-r[0][1]*t.shear],t.scaley=Math.sqrt(Vv(r[1])),xE(r[1]),t.shear/=t.scaley;const n=-r[0][1],i=r[1][1];return i<0?(t.rotate=HH(Math.acos(i)),n<0&&(t.rotate=360-t.rotate)):t.rotate=Lv(Math.asin(n)),t.isSimple=!+t.shear.toFixed(9)&&(t.scalex.toFixed(9)==t.scaley.toFixed(9)||!t.rotate),t.isSuperSimple=!+t.shear.toFixed(9)&&t.scalex.toFixed(9)==t.scaley.toFixed(9)&&!t.rotate,t.noRotation=!+t.shear.toFixed(9)&&!t.rotate,t}toTransformString(){const t=this.split();return t.isSimple?(t.scalex=+t.scalex.toFixed(4),t.scaley=+t.scaley.toFixed(4),t.rotate=+t.rotate.toFixed(4),(t.dx&&t.dy?"t"+[t.dx,t.dy]:"")+(t.scalex!=1||t.scaley!=1?"s"+[t.scalex,t.scaley,0,0]:"")+(t.rotate?"r"+[t.rotate,0,0]:"")):"matrix"+[this.value[0],this.value[1],this.value[2],this.value[3],this.value[4],this.value[5]]}toString(){return this.isEverTo3d?this.toMatrix3DString():`matrix(${this.value.map(t=>gS(t,6)).join(",")})`}toMatrix3DString(){return this.matrix3d.toString()}toFilter(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.value[0]+", M12="+this.value[2]+", M21="+this.value[1]+", M22="+this.value[3]+", Dx="+this.value[4]+", Dy="+this.value[5]+", sizingmethod='auto expand')"}}class tl{value;constructor(t=$E){this.value=Array.from(t)}unit(){return this.value=Array.from($E),this}fromString(t){const r=pS("number",t);return r.length===16?r.forEach((n,i)=>{n.fullMatch&&(this.value[i]=parseFloat(n.fullMatch))}):this.unit(),this}toMatrix(t){const r=[this.value[0],this.value[1],this.value[4],this.value[5],this.value[12],this.value[13]];return t?(t.value=r,t):new _n(r)}multiplyMatrix(t){const r=this.value[0],n=this.value[1],i=this.value[2],o=this.value[3],s=this.value[4],a=this.value[5],c=this.value[6],l=this.value[7],u=this.value[8],h=this.value[9],f=this.value[10],d=this.value[11],p=this.value[12],g=this.value[13],v=this.value[14],b=this.value[15],y=t.value[0],m=t.value[1],x=t.value[2],A=t.value[3],E=y*r+m*s+x*u+A*p,k=y*n+m*a+x*h+A*g,D=y*i+m*c+x*f+A*v,V=y*o+m*l+x*d+A*b;return new _n([E,k,D,V,0,0])}multiply(t){const r=new _n([t.value[0],t.value[1],t.value[2],t.value[3],0,0]),n=new _n([t.value[4],t.value[5],t.value[6],t.value[7],0,0]),i=new _n([t.value[8],t.value[9],t.value[10],t.value[11],0,0]),o=new _n([t.value[12],t.value[13],t.value[14],t.value[15],0,0]),s=this.multiplyMatrix(r),a=this.multiplyMatrix(n),c=this.multiplyMatrix(i),l=this.multiplyMatrix(o);return this.value[0]=s.value[0],this.value[1]=s.value[1],this.value[2]=s.value[2],this.value[3]=s.value[3],this.value[4]=a.value[0],this.value[5]=a.value[1],this.value[6]=a.value[2],this.value[7]=a.value[3],this.value[8]=c.value[0],this.value[9]=c.value[1],this.value[10]=c.value[2],this.value[11]=c.value[3],this.value[12]=l.value[0],this.value[13]=l.value[1],this.value[14]=l.value[2],this.value[15]=l.value[3],this}translate(t=0,r=0,n=0){return this.multiply(new tl([1,0,0,0,0,1,0,0,0,0,1,0,t,r,n,1]))}scale(t=1,r=1,n=1){return this.multiply(new tl([t,0,0,0,0,r,0,0,0,0,n,0,0,0,0,1]))}rotate(t,r){const n=Lv(r),i=Math.sin,o=Math.cos;let s;switch(t){case"x":s=[1,0,0,0,0,o(n),i(n),0,0,-i(n),o(n),0,0,0,0,1];break;case"y":s=[o(n),0,-i(n),0,0,1,0,0,i(n),0,o(n),0,0,0,0,1];break;case"z":s=[o(n),i(n),0,0,-i(n),o(n),0,0,0,0,1,0,0,0,0,1];break}return this.multiply(new tl(s))}toString(){return`matrix3d(${this.value.map(t=>gS(t,6)).join(",")})`}}function sf(e){const t=new _n;return e.replace(/([a-z0-9]+)\s*\(?\s*((-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)*[a-z%]*\s*,?\s*)+)\)?/gi,function(r,n,i){i.indexOf(",")>=0?i=i.split(/\s*,\s*/):i=i.split(/\s+/);const o=[];for(let s=0,a=i.length;s<a;s++)i[s].trim()&&o.push(parseFloat(""+i[s]));switch(n.toLowerCase()){case"t":case"translate":t.translate(o[0],o[1]);break;case"translatex":t.translateX(o[0]);break;case"translatey":t.translateY(o[0]);break;case"translatez":t.translateZ(o[0]);break;case"translate3d":t.translate3d(o[0],o[1],o[2]);break;case"r":case"rotate":t.rotate(o[0],o[1]??0,o[2]??0);break;case"rotatex":t.rotateX(o[0]);break;case"rotatey":t.rotateY(o[0]);break;case"rotatez":t.rotateZ(o[0]);break;case"rotate3d":t.rotate3d(o[0],o[1],o[2]);break;case"s":case"scale":t.scale(o[0],o[1]??o[0]);break;case"scalex":t.scaleX(o[0]);break;case"scaley":t.scaleY(o[0]);break;case"scalez":t.scaleZ(o[0]);break;case"scale3d":t.scale3d(o[0],o[1],o[2]);break;case"skew":t.skew(o[0],o[1]??0);break;case"skewx":t.skewX(o[0]);break;case"skewy":t.skewY(o[0]);break;case"skewz":t.skewZ(o[0]);break;case"skew3d":t.skew3d(o[0],o[1],o[2]);break;case"m":case"matrix":t.multiply([o[0],o[1],o[2],o[3],o[4],o[5]]);break;case"matrix3d":t.matrix3d.multiply(new tl(o));break}return""}),t}function JH(e){return typeof e!="string"?!1:(e=e.trim(),/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(e)&&/[\dz]$/i.test(e)&&e.length>4)}const zv={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},WH=/([astvzqmhlc])([^astvzqmhlc]*)/gi,QH=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function ZH(e){const t=e.match(QH);return t?t.map(Number):[]}function Gv(e){const t=[];return e.replace(WH,function(r,n,i){let o=n.toLowerCase();for(i=ZH(i),o=="m"&&i.length>2&&(t.push([n].concat(i.splice(0,2))),o="l",n=n=="m"?"l":"L");;){if(i.length==zv[o])return i.unshift(n),t.push(i);if(i.length<zv[o])throw new Error("malformed path data");t.push([n].concat(i.splice(0,zv[o])))}}),t}function Bv(e){var t=0,r=0,n=0,i=0;return e.map(function(o){o=o.slice();var s=o[0],a=s.toUpperCase();if(s!=a)switch(o[0]=a,s){case"a":o[6]+=n,o[7]+=i;break;case"v":o[1]+=i;break;case"h":o[1]+=n;break;default:for(var c=1;c<o.length;)o[c++]+=n,o[c++]+=i}switch(a){case"Z":n=t,i=r;break;case"H":n=o[1];break;case"V":i=o[1];break;case"M":n=t=o[1],i=r=o[2];break;default:n=o[o.length-2],i=o[o.length-1]}return o})}const Lc=Math.PI*2;function EE(e,t,r,n){const i=e*n-t*r<0?-1:1;let o=e*r+t*n;return o>1&&(o=1),o<-1&&(o=-1),i*Math.acos(o)}function tq(e,t,r,n,i,o,s,a,c,l){const u=l*(e-r)/2+c*(t-n)/2,h=-c*(e-r)/2+l*(t-n)/2,f=s*s,d=a*a,p=u*u,g=h*h;let v=f*d-f*g-d*p;v<0&&(v=0),v/=f*g+d*p,v=Math.sqrt(v)*(i===o?-1:1);const b=v*s/a*h,y=v*-a/s*u,m=l*b-c*y+(e+r)/2,x=c*b+l*y+(t+n)/2,A=(u-b)/s,E=(h-y)/a,k=(-u-b)/s,D=(-h-y)/a,V=EE(1,0,A,E);let U=EE(A,E,k,D);return o===0&&U>0&&(U-=Lc),o===1&&U<0&&(U+=Lc),[m,x,V,U]}function eq(e,t){const r=1.3333333333333333*Math.tan(t/4),n=Math.cos(e),i=Math.sin(e),o=Math.cos(e+t),s=Math.sin(e+t);return[n,i,n-i*r,i+n*r,o+s*r,s-o*r,o,s]}function rq(e,t,r,n,i,o,s,a,c){const l=Math.sin(c*Lc/360),u=Math.cos(c*Lc/360),h=u*(e-r)/2+l*(t-n)/2,f=-l*(e-r)/2+u*(t-n)/2;if(h===0&&f===0)return[];if(s===0||a===0)return[];s=Math.abs(s),a=Math.abs(a);const d=h*h/(s*s)+f*f/(a*a);d>1&&(s*=Math.sqrt(d),a*=Math.sqrt(d));const p=tq(e,t,r,n,i,o,s,a,l,u),g=[];let v=p[2],b=p[3];const y=Math.max(Math.ceil(Math.abs(b)/(Lc/4)),1);b/=y;for(let m=0;m<y;m++)g.push(eq(v,b)),v+=b;return g.map(m=>{for(let x=0;x<m.length;x+=2){let A=m[x+0],E=m[x+1];A*=s,E*=a;const k=u*A-l*E,D=l*A+u*E;m[x+0]=k+p[0],m[x+1]=D+p[1]}return m})}function Hv(e){for(var t,r=[],n=0,i=0,o=0,s=0,a=null,c=null,l=0,u=0,h=0,f=e.length;h<f;h++){var d=e[h],p=d[0];switch(p){case"M":o=d[1],s=d[2];break;case"A":var g=rq(l,u,d[6],d[7],d[4],d[5],d[1],d[2],d[3]);if(!g.length)continue;g=g.map(x=>{const[A,E,k,D,V,U,K,Y]=x;return{x1:k,y1:D,x2:V,y2:U,x:K,y:Y}});for(var v=0,b;v<g.length;v++)b=g[v],d=["C",b.x1,b.y1,b.x2,b.y2,b.x,b.y],v<g.length-1&&r.push(d);break;case"S":var y=l,m=u;(t=="C"||t=="S")&&(y+=y-n,m+=m-i),d=["C",y,m,d[1],d[2],d[3],d[4]];break;case"T":t=="Q"||t=="T"?(a=l*2-a,c=u*2-c):(a=l,c=u),d=CE(l,u,a,c,d[1],d[2]);break;case"Q":a=d[1],c=d[2],d=CE(l,u,d[1],d[2],d[3],d[4]);break;case"L":d=af(l,u,d[1],d[2]);break;case"H":d=af(l,u,d[1],u);break;case"V":d=af(l,u,l,d[1]);break;case"Z":d=af(l,u,o,s);break}t=p,l=d[d.length-2],u=d[d.length-1],d.length>4?(n=d[d.length-4],i=d[d.length-3]):(n=l,i=u),r.push(d)}return r}function af(e,t,r,n){return["C",e,t,r,n,r,n]}function CE(e,t,r,n,i,o){return["C",e/3+.6666666666666666*r,t/3+.6666666666666666*n,i/3+.6666666666666666*r,o/3+.6666666666666666*n,i,o]}const nq=e=>Array.isArray(e);function el(e){if(!(this instanceof el))return new el(e);this._path=nq(e)?e:Gv(e),this._path=Bv(this._path),this._path=oq(this._path),this._path=iq(this._path)}el.prototype.at=function(e,t){return this._walk(e,t).pos},el.prototype.length=function(){return this._walk(null).length},el.prototype._walk=function(e,t){let r=[0,0],n=[0,0,0],i=[0,0],o=0;for(let u=0;u<this._path.length;u++){let h=this._path[u];if(h[0]==="M"){if(r[0]=h[1],r[1]=h[2],e===0)return{length:o,pos:r}}else if(h[0]==="C"){n[0]=i[0]=r[0],n[1]=i[1]=r[1],n[2]=o;let f=100;for(let d=0;d<=f;d++){let p=d/f,g=s(h,p),v=a(h,p);if(o+=qv(r[0],r[1],g,v),r[0]=g,r[1]=v,typeof e=="number"&&o>=e){let b=(o-e)/(o-n[2]),y=[r[0]*(1-b)+n[0]*b,r[1]*(1-b)+n[1]*b];return{length:o,pos:y}}n[0]=r[0],n[1]=r[1],n[2]=o}}else if(h[0]==="Q"){n[0]=i[0]=r[0],n[1]=i[1]=r[1],n[2]=o;let f=100;for(let d=0;d<=f;d++){let p=d/f,g=c(h,p),v=l(h,p);if(o+=qv(r[0],r[1],g,v),r[0]=g,r[1]=v,typeof e=="number"&&o>=e){let b=(o-e)/(o-n[2]),y=[r[0]*(1-b)+n[0]*b,r[1]*(1-b)+n[1]*b];return{length:o,pos:y}}n[0]=r[0],n[1]=r[1],n[2]=o}}else if(h[0]==="L"){if(n[0]=r[0],n[1]=r[1],n[2]=o,o+=qv(r[0],r[1],h[1],h[2]),r[0]=h[1],r[1]=h[2],typeof e=="number"&&o>=e){let f=(o-e)/(o-n[2]),d=[r[0]*(1-f)+n[0]*f,r[1]*(1-f)+n[1]*f];return{length:o,pos:d}}n[0]=r[0],n[1]=r[1],n[2]=o}}return{length:o,pos:r};function s(u,h){return Math.pow(1-h,3)*i[0]+3*Math.pow(1-h,2)*h*u[1]+3*(1-h)*Math.pow(h,2)*u[3]+Math.pow(h,3)*u[5]}function a(u,h){return Math.pow(1-h,3)*i[1]+3*Math.pow(1-h,2)*h*u[2]+3*(1-h)*Math.pow(h,2)*u[4]+Math.pow(h,3)*u[6]}function c(u,h){return Math.pow(1-h,2)*i[0]+2*(1-h)*h*u[1]+Math.pow(h,2)*u[3]}function l(u,h){return Math.pow(1-h,2)*i[1]+2*(1-h)*h*u[2]+Math.pow(h,2)*u[4]}};function qv(e,t,r,n){let i=e-r,o=t-n;return Math.sqrt(i*i+o*o)}function iq(e){let t,r=0,n=0,i={S:{to:"C",x:3},T:{to:"Q",x:1}};for(let o=0,s=e.length;o<s;o++){let a=e[o],c=i[a[0]];c&&(a[0]=c.to,t&&(t[0]===c.to?(r=2*t[c.x+2]-t[c.x],n=2*t[c.x+3]-t[c.x+1]):(r=t[t.length-2],n=t[t.length-1])),a.splice(1,0,r,n)),t=a}return e}function oq(e){let t=[],r=["L",0,0],n;for(let i=0,o=e.length;i<o;i++){let s=e[i];switch(s[0]){case"M":r=["L",s[1],s[2]],t.push(s);break;case"Z":t.push(r);break;case"H":n=t[t.length-1]||["L",0,0],t.push(["L",s[1],n[n.length-1]]);break;case"V":n=t[t.length-1]||["L",0,0],t.push(["L",n[n.length-2],s[1]]);break;default:t.push(s)}}return t}const Kv=e=>{if(typeof e=="function"||Object(e)!==e)return e;const t=new e.constructor;for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=Kv(e[r]));return t};function Yv(e){const t=Yv.ps=Yv.ps||{};return t[e]?t[e].sleep=100:t[e]={sleep:100},setTimeout(()=>{for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&r!==e&&(t[r].sleep--,t[r].sleep||delete t[r])}),t[e]}function Vc(e,t,r,n){return e==null&&(e=t=r=n=0),t==null&&(t=e.y,r=e.width,n=e.height,e=e.x),{x:e,y:t,width:r,w:r,height:n,h:n,x2:e+r,y2:t+n,cx:e+r/2,cy:t+n/2,r1:Math.min(r,n)/2,r2:Math.max(r,n)/2,r0:Math.sqrt(r*r+n*n)/2,path:dq(e,t,r,n),vb:[e,t,r,n].join(" ")}}function kE(e,t,r,n,i,o,s,a,c){const l=1-c,u=l**3,h=l**2,f=c*c,d=f*c,p=u*e+h*3*c*r+l*3*c*c*i+d*s,g=u*t+h*3*c*n+l*3*c*c*o+d*a,v=e+2*c*(r-e)+f*(i-2*r+e),b=t+2*c*(n-t)+f*(o-2*n+t),y=r+2*c*(i-r)+f*(s-2*i+r),m=n+2*c*(o-n)+f*(a-2*o+n),x=l*e+c*r,A=l*t+c*n,E=l*i+c*s,k=l*o+c*a,D=90-Math.atan2(v-y,b-m)*180/Math.PI;return{x:p,y:g,m:{x:v,y:b},n:{x:y,y:m},start:{x,y:A},end:{x:E,y:k},alpha:D}}function PE(e,t,r,n,i,o,s,a){Array.isArray(e)||(e=[e,t,r,n,i,o,s,a]);const c=NE(...e);return Vc(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)}function sq(e,t,r){return t>=e.x&&t<=e.x+e.width&&r>=e.y&&r<=e.y+e.height}function aq(e,t){e=Vc(e),t=Vc(t);const{x:r,y:n,width:i,height:o}=e,{x:s,y:a,width:c,height:l}=t,u=r+i/2,h=n+o/2,f=s+c/2,d=a+l/2;return Math.abs(u-f)<=(i+c)/2||Math.abs(h-d)<=(o+l)/2}function TE(e,t,r,n,i){const o=-3*t+9*r-9*n+3*i,s=e*o+6*t-12*r+6*n;return e*s-3*t+3*r}function OE(e,t,r,n,i,o,s,a,c){c==null&&(c=1),c=Math.max(0,Math.min(c,1));const l=c/2,u=12,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472];let d=0;for(let p=0;p<u;p++){const g=l*h[p]+l,v=TE(g,e,r,i,s),b=TE(g,t,n,o,a),y=v*v+b*b;d+=f[p]*Math.sqrt(y)}return l*d}function lq(e,t,r,n,i,o,s,a){if(Math.max(e,r)<Math.min(i,s)||Math.min(e,r)>Math.max(i,s)||Math.max(t,n)<Math.min(o,a)||Math.min(t,n)>Math.max(o,a))return;const c=(e*n-t*r)*(i-s)-(e-r)*(i*a-o*s),l=(e*n-t*r)*(o-a)-(t-n)*(i*a-o*s),u=(e-r)*(o-a)-(t-n)*(i-s);if(!u)return;const h=c/u,f=l/u,d=Number(h.toFixed(2)),p=Number(f.toFixed(2));if(!(d<Number(Math.min(e,r).toFixed(2))||d>Number(Math.max(e,r).toFixed(2))||d<Number(Math.min(i,s).toFixed(2))||d>Number(Math.max(i,s).toFixed(2))||p<Number(Math.min(t,n).toFixed(2))||p>Number(Math.max(t,n).toFixed(2))||p<Number(Math.min(o,a).toFixed(2))||p>Number(Math.max(o,a).toFixed(2))))return{x:h,y:f}}function cq(e,t,r){const n=PE(e),i=PE(t);if(!aq(n,i))return r?0:[];const o=OE.apply(0,e),s=OE.apply(0,t),a=Math.ceil(o/8),c=Math.ceil(s/8),l=[],u=[],h={};let f=r?0:[];for(let d=0;d<a+1;d++){const p=kE.apply(0,e.concat(d/a));l.push({x:p.x,y:p.y,t:d/a})}for(let d=0;d<c+1;d++){const p=kE.apply(0,t.concat(d/c));u.push({x:p.x,y:p.y,t:d/c})}for(let d=0;d<a;d++)for(let p=0;p<c;p++){const g=l[d],v=l[d+1],b=u[p],y=u[p+1],m=Math.abs(v.x-g.x)<.001?"y":"x",x=Math.abs(y.x-b.x)<.001?"y":"x",A=lq(g.x,g.y,v.x,v.y,b.x,b.y,y.x,y.y);if(A&&h[A.x.toFixed(4)]!==A.y.toFixed(4)){h[A.x.toFixed(4)]=A.y.toFixed(4);const E=g.t+Math.abs((A[m]-g[m])/(v[m]-g[m]))*(v.t-g.t),k=b.t+Math.abs((A[x]-b[x])/(y[x]-b[x]))*(y.t-b.t);E>=0&&E<=1&&k>=0&&k<=1&&(r?f++:f.push({x:A.x,y:A.y,t1:E,t2:k}))}}return f}function uq(e,t,r){let n,i,o,s,a,c,l,u,h,f,d=r?0:[];for(let p=0,g=e.length;p<g;p++){const v=e[p];if(v[0]==="M")n=a=v[1],i=c=v[2];else{v[0]==="C"?(h=[n,i].concat(v.slice(1)),n=h[6],i=h[7]):(h=[n,i,n,i,a,c,a,c],n=a,i=c);for(let b=0,y=t.length;b<y;b++){const m=t[b];if(m[0]==="M")o=l=m[1],s=u=m[2];else{m[0]==="C"?(f=[o,s].concat(m.slice(1)),o=f[6],s=f[7]):(f=[o,s,o,s,l,u,l,u],o=l,s=u);const x=cq(h,f,r);if(r)d+=x;else{for(let A=0,E=x.length;A<E;A++)x[A].segment1=p,x[A].segment2=b,x[A].bez1=h,x[A].bez2=f;d=d.concat(x)}}}}}return d}function hq(e){const t=Yv(e);if(t.bbox)return Kv(t.bbox);if(!e)return Vc();let r=0,n=0,i=[],o=[],s=[];for(let f=0,d=e.length;f<d;f++)if(s=e[f],s[0]==="M")r=s[1],n=s[2],i.push(r),o.push(n);else{const p=NE(r,n,s[1],s[2],s[3],s[4],s[5],s[6]);i=i.concat(p.min.x,p.max.x),o=o.concat(p.min.y,p.max.y),r=s[5],n=s[6]}const a=Math.min.apply(0,i),c=Math.min.apply(0,o),l=Math.max.apply(0,i),u=Math.max.apply(0,o),h=Vc(a,c,l-a,u-c);return t.bbox=Kv(h),h}function dq(e,t,r,n,i){return i?[["M",Number(e)+Number(i),t],["l",r-i*2,0],["a",i,i,0,0,1,i,i],["l",0,n-i*2],["a",i,i,0,0,1,-i,i],["l",i*2-r,0],["a",i,i,0,0,1,-i,-i],["l",0,i*2-n],["a",i,i,0,0,1,i,-i],["z"]]:[["M",e,t],["l",r,0],["l",0,n],["l",-r,0],["z"]]}function NE(e,t,r,n,i,o,s,a){const c=[],l=[[],[]];let u,h,f,d,p,g,v,b;for(let A=0;A<2;++A){if(A===0?(h=6*e-12*r+6*i,u=-3*e+9*r-9*i+3*s,f=3*r-3*e):(h=6*t-12*n+6*o,u=-3*t+9*n-9*o+3*a,f=3*n-3*t),Math.abs(u)<1e-12){if(Math.abs(h)<1e-12)continue;d=-f/h,d>0&&d<1&&c.push(d);continue}v=h*h-4*f*u,b=Math.sqrt(v),!(v<0)&&(p=(-h+b)/(2*u),p>0&&p<1&&c.push(p),g=(-h-b)/(2*u),g>0&&g<1&&c.push(g))}let y=c.length,m;const x=y;for(;y--;)d=c[y],m=1-d,l[0][y]=m*m*m*e+3*m*m*d*r+3*m*d*d*i+d*d*d*s,l[1][y]=m*m*m*t+3*m*m*d*n+3*m*d*d*o+d*d*d*a;return l[0][x]=e,l[1][x]=t,l[0][x+1]=s,l[1][x+1]=a,l[0].length=l[1].length=x+2,{min:{x:Math.min.apply(0,l[0]),y:Math.min.apply(0,l[1])},max:{x:Math.max.apply(0,l[0]),y:Math.max.apply(0,l[1])}}}function fq(e,t,r){const n=hq(e);return!(!sq(n,t,r)||uq(e,Hv([["M",t,r],["H",n.x2+10]]),1)%2!==1)}const Xv=new Map;function AE(e){if(Xv.has(e))return Xv.get(e);const t=el(e);return Xv.set(e,t),t}function DE(e){const t=document.createElementNS("http://www.w3.org/2000/svg","path");return t.setAttribute("d",e),t}function pq(e,t){return Cd?DE(e).getTotalLength(t):AE(e).length()}function mq(e,t){if(Cd)return DE(e).getPointAtLength(t);{const r=AE(e),[n,i]=r.at(t);return{x:n,y:i}}}let ti=null;function gq(e,t,r){if(Cd){ti||(ti=document.createElement("canvas").getContext("2d"));const n=new Path2D(e);return ti.isPointInPath(n,t,r)}else return fq(e,t,r)}function vq(e,t,r,{lineWidth:n=1,lineCap:i="butt",lineJoin:o="miter"}){if(Cd){if(ti||(ti=document.createElement("canvas").getContext("2d")),ti.isPointInStroke){ti.save(),ti.lineWidth=n,ti.lineCap=i,ti.lineJoin=o;const s=new Path2D(e),a=ti.isPointInStroke(s,t,r);return ti.restore(),a}}else return null}function yq(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var RE={},IE={exports:{}},jE;function _q(){return jE||(jE=1,function(e){(function(t){var r="0.4.0",n="hasOwnProperty",i=/[\.\/]/,o="*",s=function(){},a=function(f,d){return f-d},c,l,u={n:{}},h=function(f,d){var p=l,g=Array.prototype.slice.call(arguments,2),v=h.listeners(f),b=0,y,m=[],x={},A=[];c=f,l=0;for(var E=0,k=v.length;E<k;E++)"zIndex"in v[E]&&(m.push(v[E].zIndex),v[E].zIndex<0&&(x[v[E].zIndex]=v[E]));for(m.sort(a);m[b]<0;)if(y=x[m[b++]],A.push(y.apply(d,g)),l)return l=p,A;for(E=0;E<k;E++)if(y=v[E],"zIndex"in y)if(y.zIndex==m[b]){if(A.push(y.apply(d,g)),l)return l=p,A;do if(b++,y=x[m[b]],y&&A.push(y.apply(d,g)),l)return l=p,A;while(y)}else x[y.zIndex]=y;else if(A.push(y.apply(d,g)),l)return l=p,A;return l=p,A.length?A:null};h.listeners=function(f){var d=f.split(i),p=u,g,v,b,y,m,x,A,E,k=[p],D=[];for(y=0,m=d.length;y<m;y++){for(E=[],x=0,A=k.length;x<A;x++)for(p=k[x].n,v=[p[d[y]],p[o]],b=2;b--;)g=v[b],g&&(E.push(g),D=D.concat(g.f||[]));k=E}return D},h.on=function(f,d){for(var p=f.split(i),g=u,v=0,b=p.length;v<b;v++)g=g.n,!g[p[v]]&&(g[p[v]]={n:{}}),g=g[p[v]];for(g.f=g.f||[],v=0,b=g.f.length;v<b;v++)if(g.f[v]==d)return s;return g.f.push(d),function(y){+y==+y&&(d.zIndex=+y)}},h.stop=function(){l=1},h.nt=function(f){return f?new RegExp("(?:\\.|\\/|^)"+f+"(?:\\.|\\/|$)").test(c):c},h.unbind=function(f,d){var p=f.split(i),g,v,b,y,m,x,A,E=[u];for(y=0,m=p.length;y<m;y++)for(x=0;x<E.length;x+=b.length-2){if(b=[x,1],g=E[x].n,p[y]!=o)g[p[y]]&&b.push(g[p[y]]);else for(v in g)g[n](v)&&b.push(g[v]);E.splice.apply(E,b)}for(y=0,m=E.length;y<m;y++)for(g=E[y];g.n;){if(d){if(g.f){for(x=0,A=g.f.length;x<A;x++)if(g.f[x]==d){g.f.splice(x,1);break}!g.f.length&&delete g.f}for(v in g.n)if(g.n[n](v)&&g.n[v].f){var k=g.n[v].f;for(x=0,A=k.length;x<A;x++)if(k[x]==d){k.splice(x,1);break}!k.length&&delete g.n[v].f}}else{delete g.f;for(v in g.n)g.n[n](v)&&g.n[v].f&&delete g.n[v].f}g=g.n}},h.once=function(f,d){var p=function(){d.apply(this,arguments),h.unbind(f,p)};return h.on(f,p)},h.version=r,h.toString=function(){return"You are running Eve "+r},e.exports?e.exports=h:t.eve=h})(Uv)}(IE)),IE.exports}(function(e){if(typeof yq=="function")var t=_q();(function(){function r(f){var d=function(p){d.parse(p)};return d.mode="text",d.type=String(f||"html").toLowerCase(),d.textchunk="",d.raw="",d.parse=c,d.on=s,d.event=o,d.end=i,d}function n(f,d,p){f==`
|
|
89
|
-
`&&this.event("newline"),h[this.mode].call(this,f,d,p)}function i(){n.call(this,"eof"),this.event("eof")}function o(f,d,p){typeof t=="function"&&t("elemental."+f+"."+d,null,d,p||"",this.raw);for(var g=this.events&&this.events[f],v=g&&g.length;v--;)try{this.events[f][v](d,p||"",this.raw)}catch{}this.raw=""}function s(f,d){this.events=this.events||{},this.events[f]=this.events[f]||[],this.events[f].push(d)}function a(f,d){return f&&(f.charAt?f.charAt(d):f[d])}function c(f){f=f||Object(f);for(var d=1,p=f.length+1,g,v,b=a(f,0);d<p;d++)g=v,v=b,b=a(f,d),this.raw+=v,n.call(this,v,b,g);this._beforeEnd=function(){n.call(this,"","",v)}}var l=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u2028\u2029\u202f\u205f\u3000]/,u=function(){for(var f in this.attr)this.attr.hasOwnProperty(f)&&this.event("attr",f,{value:this.attr[f],tagname:this.tagname,attr:this.attr})},h={text:function(f,d,p){switch(f){case"<":case"eof":this.nodename="",this.attr={},this.mode="tag name start",this.raw=this.raw.slice(0,-1),this.textchunk&&this.event("text",this.textchunk),this.raw+=f,this.textchunk="";break;default:this.textchunk+=f}},special:function(f,d,p){if(p=="!"&&f=="-"&&d=="-")this.mode="comment start";else{if(this.textchunk=="[CDATA"&&f=="["){this.mode="cdata",this.textchunk="";return}if(f==">"||f=="eof"){this.event("special",this.textchunk),this.mode="text",this.textchunk="";return}this.textchunk+=f}},cdata:function(f,d,p){p=="]"&&f=="]"&&d==">"?(this.mode="cdata end",this.textchunk=this.textchunk.slice(0,-1)):(f=="eof"&&h["cdata end"].call(this),this.textchunk+=f)},"cdata end":function(f,d,p){this.event("cdata",this.textchunk),this.textchunk="",this.mode="text"},"comment start":function(f,d,p){d==">"||f=="eof"?(this.event("comment",""),this.mode="comment instant end"):this.mode="comment"},"comment instant end":function(f,d,p){this.mode="text"},comment:function(f,d,p){f=="-"&&p=="-"&&d==">"?(this.mode="comment end",this.textchunk=this.textchunk.slice(0,-1)):f=="eof"?this.event("comment",this.textchunk):this.textchunk+=f},"comment end":function(f,d,p){this.event("comment",this.textchunk),this.textchunk="",this.mode="text"},declaration:function(f,d,p){f=="?"&&d==">"?this.mode="declaration end":(f=="eof"&&this.event("comment",this.textchunk),this.textchunk+=f)},"declaration end":function(f,d,p){this.event("comment",this.textchunk),this.textchunk="",this.mode="text"},"tag name start":function(f,d,p){if(f=="eof")this.event("text","<");else if(!l.test(f)){if(this.mode="tag name",f=="/"){this.mode="close tag name start";return}if(f=="!"){this.mode="special",this.textchunk="";return}if(f=="?"){this.mode="declaration";return}h[this.mode].call(this,f,d,p)}},"close tag name start":function(f,d,p){l.test(f)||(this.mode="close tag name",this.tagname="",this.nodename="",h[this.mode].call(this,f,d,p))},"close tag name":function(f,d,p){if(l.test(f))this.tagname=this.nodename;else switch(f){case">":this.event("/tag",this.tagname||this.nodename),this.mode="text";break;default:!this.tagname&&(this.nodename+=f)}},"tag name":function(f,d,p){if(l.test(f))this.tagname=this.nodename,this.nodename="",this.mode="attr start";else switch(f){case">":this.event("tag",this.nodename),this.mode="text";break;default:this.nodename+=f}},"attr start":function(f,d,p){l.test(f)||(this.mode="attr",this.nodename="",h[this.mode].call(this,f,d,p))},attr:function(f,d,p){if(l.test(f)||f=="=")this.attr[this.nodename]="",this.mode="attr value start";else switch(f){case">":this.nodename=="/"?(delete this.attr["/"],this.event("tag",this.tagname,this.attr),u.call(this),this.event("/tag",this.tagname,!0)):(this.nodename&&(this.attr[this.nodename]=""),this.event("tag",this.tagname,this.attr),u.call(this)),this.mode="text";break;default:this.nodename+=f}},"attr value start":function(f,d,p){if(!l.test(f)){if(this.mode="attr value",this.quote=!1,f=="'"||f=='"'){this.quote=f;return}h[this.mode].call(this,f,d,p)}},"attr value":function(f,d,p){if(l.test(f)&&!this.quote)this.mode="attr start";else if(f==">"&&!this.quote)this.event("tag",this.tagname,this.attr),this.mode="text";else switch(f){case'"':case"'":this.quote==f&&p!="\\"&&(this.mode="attr start");break;default:this.attr[this.nodename]+=f}}};r.version="0.2.1",e.elemental=r,e.eve=t})()})(RE);const FE=Ln(RE);function Jv(e,t,r,n,i,o){if(typeof i>"u"||typeof o>"u"){const s=e-r,a=t-n;return!s&&!a?0:(180+Math.atan2(-a,-s)*180/Math.PI+360)%360}else return Jv(e,t,i,o)-Jv(r,n,i,o)}const we=FE.eve,bq=FE.elemental,lf={cursor:1,cx:0,cy:0,fill:1,"fill-opacity":0,font:1,"font-family":1,"font-size":0,"font-style":1,"font-weight":1,height:0,"letter-spacing":0,opacity:0,r:0,rx:0,ry:0,src:1,stroke:1,"stroke-linecap":1,"stroke-linejoin":1,"stroke-miterlimit":0,"stroke-opacity":0,"stroke-width":0,"text-anchor":1,width:0,x:0,y:0};function Wv(e,t,r){for(var n=(e+"").split(";"),i=/^\s+|\s+$/g,o,s=0,a=n.length;s<a;s++){var c=n[s].split(":");o=c[0].replace(i,"").replace(/[A-Z]/g,function(l){return"-"+l.toLowerCase()}),(!r||o in r)&&(t[o]=c[1].replace(i,""),r&&!r[o]&&(t[o]=parseFloat(t[o])))}}function wq(e){const t=bq(),r=[],n=[],i={};let o,s,a;const c={};function l(u,h){return function(f,d){const p={type:h||u};r.push(p);for(let g in d)Object.prototype.hasOwnProperty.call(d,g)&&we("rappar."+u+".attr."+g,p,d[g],g);we("rappar."+u+".attrend",p,d)}}return we.on("rappar.polygon.attr.points",function(u){this.path="M"+u+"z",we.stop()}),we.on("rappar.image.attr.xlink:href",function(u){this.src=u,we.stop()}),we.on("rappar.path.attr.d",function(u){this.path=u,we.stop()}),we.on("rappar.*.attr.transform",function(u){this.transform=sf(u).toTransformString(),we.stop()}),we.on("rappar.*.attr.fill",function(u){var h=u.match(/url\(#([^)]+)\)/),f=this;h&&(h=h[1],i[h]?this.fill=i[h]:we.on("rappar.found."+h,function(d){f.fill=d}),we.stop())}),we.on("rappar.line.attrend",function(u){this.path="M"+[u.x1,u.y1,u.x2,u.y2]}),we.on("rappar.*.attrend",function(){for(var u=n.length;u--;)if(n[u]!=this){let f="",d="";for(var h in n[u])h=="transform"?f=n[u].transform:h=="class"&&c["."+n[u][h]]?d=c["."+n[u][h]].join(";")+";"+d:h=="id"&&c["#"+n[u][h]]?d=c["#"+n[u][h]].join(";")+";"+d:typeof this[h]>"u"&&(this[h]=n[u][h]);this.type&&(typeof this.transform>"u"?this.transform=f:this.transform+=f,typeof this.style>"u"?this.style=d:this.style=d+this.style,Wv(this.style,this,lf))}}),we.on("rappar.*.attr.style",function(u){var h=function(){Wv(u,this,lf),we.unbind("rappar.*.attrend",h)};we.on("rappar.*.attrend",h),we.stop()}),we.on("rappar.*.attr.*",function(u,h){h in lf&&(this[h]=lf[h]?u:parseFloat(u))}),we.on("elemental.tag.circle",l("circle")),we.on("elemental.tag.ellipse",l("ellipse")),we.on("elemental.tag.polygon",l("polygon","path")),we.on("elemental.tag.path",l("path")),we.on("elemental.tag.line",l("line","path")),we.on("elemental.tag.rect",l("rect")),we.on("elemental.tag.image",l("image")),we.on("elemental.tag.text",l("text")),we.on("elemental.text",function(u){try{const h=KM(u);for(let f of h.stylesheet.rules){for(let d of f.selectors)c[d]=[];for(let d of f.declarations)for(let p of f.selectors)c[p].push(`${d.property}:${d.value}`)}}catch{}}),we.on("elemental.tag.svg",function(u,h){let f=h.width||0,d=h.height||0;if(!f||!d){const p=h.viewBox.split(/\s+/gi);f=parseFloat(p[2])-parseFloat(p[0]),d=parseFloat(p[3])-parseFloat(p[1])}r.push({type:"viewbox",width:f,height:d})}),we.on("rappar.text.attrend",function(){o="",s=this,this["text-anchor"]=this["text-anchor"]||"start"}),we.on("elemental.text",function(u,h,f){s&&(o+=f)}),we.on("elemental./tag.text",function(){s.text=o,s=null}),we.on("elemental.tag.g",function(u,h){var f={};n.push(f);for(var d in h)Object.prototype.hasOwnProperty.call(h,d)&&(f[d]=h[d],we("rappar.g.attr."+d,f,h[d],d));we("rappar.g.attrend",f)}),we.on("elemental./tag.g",function(u,h){n.pop()}),we.on("elemental.tag.linearGradient",function(u,h){a={id:h.id,angle:+(360+Jv(h.x1,h.y1,h.x2,h.y2,h.x1+100,h.y1)).toFixed(2),stops:[]}}),we.on("elemental./tag.linearGradient",function(){for(var u=[a.angle],h,f=0,d=a.stops.length;f<d;f++)h=a.stops[f],f&&f!=d-1?u.push(h.color+":"+h.offset):u.push(h.color);i[a.id]=u.join("-"),we("rappar.found."+a.id,null,i[a.id])}),we.on("elemental.tag.radialGradient",function(u,h){a={id:h.id,stops:[]}}),we.on("elemental./tag.radialGradient",function(){for(var u=[],h,f=0,d=a.stops.length;f<d;f++)h=a.stops[f],f&&f!=d-1?u.push(h.color+":"+h.offset):u.push(h.color);i[a.id]="r"+u.join("-"),we("rappar.found."+a.id,null,i[a.id])}),we.on("elemental.tag.stop",function(u,h){var f={};h.style&&Wv(h.style,f),f.offset=f.offset||h.offset,f.color=f["stop-color"]||h["stop-color"],f.opacity=f["stop-opacity"]||h["stop-opacity"],~(f.offset+"").indexOf("%")?f.offset=parseFloat(f.offset):f.offset=parseFloat(f.offset)*100,f.offset=+f.offset.toFixed(2),a.stops.push(f)}),t(e),t.end(),r}const ME=xq("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32);function xq(e,t=10){const r={},n=e.split(",");for(let i=0;i<n.length;i+=2){const o="&"+n[i+1]+";",s=parseInt(n[i],t);r[o]="&#"+s+";"}return r["\\xa0"]=" ",r}function bn(e,t){const r=Object.keys(t);for(let n=0;n<r.length;n++)e=e.replace(new RegExp("{"+r[n]+"}","gi"),""+t[r[n]]);return e}function cf(e){let t,r;if(!e)throw new Error("cannot create a random attribute name for an undefined object");const n="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";t="";do for(t="",r=0;r<12;r++)t+=n[Math.floor(Math.random()*n.length)];while(e[t]);return t}function Sq(e){const t={left:"start",right:"end",center:"middle",start:"start",end:"end"};return t[e]||t.start}function $q(e){const t={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return t[e]||t.alphabetic}const Uc={strokeStyle:{svgAttr:"stroke",canvas:"#000000",svg:"none",apply:"stroke"},fillStyle:{svgAttr:"fill",canvas:"#000000",svg:null,apply:"fill"},lineCap:{svgAttr:"stroke-linecap",canvas:"butt",svg:"butt",apply:"stroke"},lineJoin:{svgAttr:"stroke-linejoin",canvas:"miter",svg:"miter",apply:"stroke"},miterLimit:{svgAttr:"stroke-miterlimit",canvas:10,svg:4,apply:"stroke"},lineWidth:{svgAttr:"stroke-width",canvas:1,svg:1,apply:"stroke"},globalAlpha:{svgAttr:"opacity",canvas:1,svg:1,apply:"fill stroke"},font:{canvas:"10px sans-serif"},shadowColor:{canvas:"#000000"},shadowOffsetX:{canvas:0},shadowOffsetY:{canvas:0},shadowBlur:{canvas:0},textAlign:{canvas:"start"},textBaseline:{canvas:"alphabetic"},lineDash:{svgAttr:"stroke-dasharray",canvas:[],svg:null,apply:"stroke"}};class Qv{__root;__ctx;constructor(t,r){this.__root=t,this.__ctx=r}addColorStop(t,r){const n=this.__ctx.__createElement("stop");if(n.setAttribute("offset",""+t),r.indexOf("rgba")!==-1){const i=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(r);i&&(n.setAttribute("stop-color",bn("rgb({r},{g},{b})",{r:i[1],g:i[2],b:i[3]})),n.setAttribute("stop-opacity",i[4]))}else n.setAttribute("stop-color",r);this.__root.appendChild(n)}}class LE{__root;__ctx;constructor(t,r){this.__root=t,this.__ctx=r}}class uf{__document=document;__canvas;__ctx;width;height;__styleStack;__groupStack;__rootSVG;__ids;__SVGdefs;__currentElement;__currentElementsToStyle=null;constructor({canvas:t,width:r=500,height:n=500,enableMirroring:i=!1}){this.enableMirroring=i,t?(this.__canvas=t,this.__ctx=t.getContext("2d"),this.width=t.width,this.height=t.height):(this.__canvas=this.__document.createElement("canvas"),this.__ctx=this.__canvas.getContext("2d"),this.width=r,this.height=n),this.__setDefaultStyles(),this.__styleStack=[this.__getStyleState()],this.__groupStack=[],this.__rootSVG=this.__document.createElementNS("http://www.w3.org/2000/svg","svg"),this.__rootSVG.setAttribute("version","1.1"),this.__rootSVG.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.__rootSVG.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),this.__rootSVG.setAttribute("width",""+this.width),this.__rootSVG.setAttribute("height",""+this.height),this.__ids={},this.__SVGdefs=this.__document.createElementNS("http://www.w3.org/2000/svg","defs"),this.__rootSVG.appendChild(this.__SVGdefs),this.__currentElement=this.__document.createElementNS("http://www.w3.org/2000/svg","g"),this.__rootSVG.appendChild(this.__currentElement)}__setDefaultStyles(){const t=Object.keys(Uc);for(let r=0,n=t.length;r<n;r++){const i=t[r];this[i]=Uc[i].canvas}}__getStyleState(){const t={},r=Object.keys(Uc);for(let n=0,i=r.length;n<i;n++){const o=r[n];t[o]=this[o]}return t}__applyStyleState(t){const r=Object.keys(t);for(let n=0,i=r.length;n<i;n++){const o=r[n];this[o]=t[o]}}__createElement(t,r={},n=!1){const i=this.__document.createElementNS("http://www.w3.org/2000/svg",t),o=Object.keys(r);n&&(i.setAttribute("fill","none"),i.setAttribute("stroke","none"));for(let s=0;s<o.length;s++){const a=o[s];i.setAttribute(a,r[a])}return i}__applyStyleToCurrentElement(t){let r=this.__currentElement;const n=this.__currentElementsToStyle;n&&(r.setAttribute(t,""),r=n.element,n.children.forEach(o=>{o.setAttribute(t,"")}));const i=Object.keys(Uc);for(let o=0;o<i.length;o++){const s=Uc[i[o]],a=this[i[o]];if(s.apply){if(a instanceof LE){if(a.__ctx)for(;a.__ctx.__SVGdefs.childNodes.length;){const c=a.__ctx.__SVGdefs.childNodes[0].getAttribute("id");this.__ids[c]=c,this.__SVGdefs.appendChild(a.__ctx.__SVGdefs.childNodes[0])}r.setAttribute(s.apply,bn("url(#{id})",{id:a.__root.getAttribute("id")}))}else if(a instanceof Qv)r.setAttribute(s.apply,bn("url(#{id})",{id:a.__root.getAttribute("id")}));else if(s.apply.indexOf(t)!==-1&&s.svg!==a)if((s.svgAttr==="stroke"||s.svgAttr==="fill")&&a.indexOf("rgba")!==-1){const c=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(a);r.setAttribute(s.svgAttr,bn("rgb({r},{g},{b})",{r:c[1],g:c[2],b:c[3]}));let l=parseFloat(c[4]);const u=this.globalAlpha;u!=null&&(l*=u),r.setAttribute(s.svgAttr+"-opacity",""+l)}else{let c=s.svgAttr;if(i[o]==="globalAlpha"&&(c=t+"-"+s.svgAttr,r.getAttribute(c)))continue;c&&r.setAttribute(c,a)}}}}__closestGroupOrSvg(t){return t=t||this.__currentElement,t.nodeName==="g"||t.nodeName==="svg"?t:this.__closestGroupOrSvg(t.parentNode)}getSerializedSvg(t){let r=new XMLSerializer().serializeToString(this.__rootSVG);if(/xmlns="http:\/\/www\.w3\.org\/2000\/svg".+xmlns="http:\/\/www\.w3\.org\/2000\/svg/gi.test(r)&&(r=r.replace('xmlns="http://www.w3.org/2000/svg','xmlns:xlink="http://www.w3.org/1999/xlink')),t){const n=Object.keys(ME);for(let i=0,o=n.length;i<o;i++){const s=n[i],a=ME[s],c=new RegExp(s,"gi");c.test(r)&&(r=r.replace(c,a))}}return r}getSvg(){return this.__rootSVG}save(){const t=this.__createElement("g"),r=this.__closestGroupOrSvg();this.__groupStack.push(r),r.appendChild(t),this.__currentElement=t,this.__styleStack.push(this.__getStyleState())}restore(){this.__currentElementsToStyle=null;const t=this.__groupStack.pop();t?this.__currentElement=t:this.__currentElement=this.__rootSVG.childNodes[1];const r=this.__styleStack.pop();r&&this.__applyStyleState(r)}__addTransform(t){const r=this.__closestGroupOrSvg();if(r.childNodes.length>0){this.__currentElement.nodeName==="path"&&(this.__currentElementsToStyle||(this.__currentElementsToStyle={element:r,children:[]}),this.__currentElementsToStyle.children.push(this.__currentElement),this.__applyCurrentDefaultPath());const i=this.__createElement("g");r.appendChild(i),this.__currentElement=i}let n=this.__currentElement.getAttribute("transform");n?n+=" ":n="",n+=t,this.__currentElement.setAttribute("transform",n)}scale(t,r){r===void 0&&(r=t),this.__addTransform(bn("scale({x},{y})",{x:t,y:r}))}rotate(t){const r=t*180/Math.PI;this.__addTransform(bn("rotate({angle},{cx},{cy})",{angle:r,cx:0,cy:0}))}translate(t,r){this.__addTransform(bn("translate({x},{y})",{x:t,y:r}))}transform(t,r,n,i,o,s){this.__addTransform(bn("matrix({a},{b},{c},{d},{e},{f})",{a:t,b:r,c:n,d:i,e:o,f:s}))}beginPath(){this.__currentDefaultPath="",this.__currentPosition={};const t=this.__createElement("path",{},!0);this.__closestGroupOrSvg().appendChild(t),this.__currentElement=t}__applyCurrentDefaultPath(){const t=this.__currentElement;t.nodeName==="path"?t.setAttribute("d",this.__currentDefaultPath):console.error("Attempted to apply path command to node",t.nodeName)}__addPathCommand(t){this.__currentDefaultPath+=" ",this.__currentDefaultPath+=t}moveTo(t,r){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.__currentPosition={x:t,y:r},this.__addPathCommand(bn("M {x} {y}",this.__currentPosition))}closePath(){this.__currentDefaultPath&&this.__addPathCommand("Z")}lineTo(t,r){this.__currentPosition={x:t,y:r},this.__currentDefaultPath.indexOf("M")>-1?this.__addPathCommand(bn("L {x} {y}",this.__currentPosition)):this.__addPathCommand(bn("M {x} {y}",this.__currentPosition))}bezierCurveTo(t,r,n,i,o,s){this.__currentPosition={x:o,y:s},this.__addPathCommand(bn("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:t,cp1y:r,cp2x:n,cp2y:i,x:o,y:s}))}quadraticCurveTo(t,r,n,i){this.__currentPosition={x:n,y:i},this.__addPathCommand(bn("Q {cpx} {cpy} {x} {y}",{cpx:t,cpy:r,x:n,y:i}))}normalize(t){const r=Math.sqrt(t[0]*t[0]+t[1]*t[1]);return[t[0]/r,t[1]/r]}arcTo(t,r,n,i,o){const s=this.__currentPosition&&this.__currentPosition.x,a=this.__currentPosition&&this.__currentPosition.y;if(typeof s>"u"||typeof a>"u")return;if(o<0)throw new Error("IndexSizeError: The radius provided ("+o+") is negative.");if(s===t&&a===r||t===n&&r===i||o===0){this.lineTo(t,r);return}const c=this.normalize([s-t,a-r]),l=this.normalize([n-t,i-r]);if(c[0]*l[1]===c[1]*l[0]){this.lineTo(t,r);return}const u=c[0]*l[0]+c[1]*l[1],h=Math.acos(Math.abs(u)),f=this.normalize([c[0]+l[0],c[1]+l[1]]),d=o/Math.sin(h/2),p=t+d*f[0],g=r+d*f[1],v=[-c[1],c[0]],b=[l[1],-l[0]],y=function(A){const E=A[0];return A[1]>=0?Math.acos(E):-Math.acos(E)},m=y(v),x=y(b);this.lineTo(p+v[0]*o,g+v[1]*o),this.arc(p,g,o,m,x)}stroke(){this.__currentElement.nodeName==="path"&&this.__currentElement.setAttribute("paint-order","fill stroke markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("stroke")}fill(){this.__currentElement.nodeName==="path"&&this.__currentElement.setAttribute("paint-order","stroke fill markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("fill")}rect(t,r,n,i){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.moveTo(t,r),this.lineTo(t+n,r),this.lineTo(t+n,r+i),this.lineTo(t,r+i),this.lineTo(t,r),this.closePath()}fillRect(t,r,n,i){const o=this.__createElement("rect",{x:t,y:r,width:n,height:i},!0);this.__closestGroupOrSvg().appendChild(o),this.__currentElement=o,this.__applyStyleToCurrentElement("fill")}strokeRect(t,r,n,i){const o=this.__createElement("rect",{x:t,y:r,width:n,height:i},!0);this.__closestGroupOrSvg().appendChild(o),this.__currentElement=o,this.__applyStyleToCurrentElement("stroke")}__clearCanvas(){const t=this.__closestGroupOrSvg().getAttribute("transform"),r=this.__rootSVG.childNodes[1],n=r.childNodes;for(let i=n.length-1;i>=0;i--)n[i]&&r.removeChild(n[i]);this.__currentElement=r,this.__groupStack=[],t&&this.__addTransform(t)}clearRect(t,r,n,i){if(t===0&&r===0&&n===this.width&&i===this.height){this.__clearCanvas();return}const o=this.__closestGroupOrSvg(),s=this.__createElement("rect",{x:t,y:r,width:n,height:i,fill:"#FFFFFF"},!0);o.appendChild(s)}createLinearGradient(t,r,n,i){const o=this.__createElement("linearGradient",{id:cf(this.__ids),x1:t+"px",x2:n+"px",y1:r+"px",y2:i+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(o),new Qv(o,this)}createRadialGradient(t,r,n,i,o,s){const a=this.__createElement("radialGradient",{id:cf(this.__ids),cx:i+"px",cy:o+"px",r:s+"px",fx:t+"px",fy:r+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(a),new Qv(a,this)}__parseFont(){const t=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:%|in|[cem]m|ex|p[CustomCanvasContext]))(?:\s*\/\s*(normal|[.\d]+(?:%|in|[cem]m|ex|p[CustomCanvasContext])))?\s*([-,'"\sa-z0-9]+?)\s*$/i.exec(this.font),r={style:t[1]||"normal",size:t[4]||"10px",family:t[6]||"sans-serif",weight:t[3]||"normal",decoration:t[2]||"normal",href:null};return this.__fontUnderline==="underline"&&(r.decoration="underline"),this.__fontHref&&(r.href=this.__fontHref),r}__wrapTextLink(t,r){if(t.href){const n=this.__createElement("a");return n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.href),n.appendChild(r),n}return r}__applyText(t,r,n,i){const o=this.__parseFont(),s=this.__closestGroupOrSvg(),a=this.__createElement("text",{"font-family":o.family,"font-size":o.size,"font-style":o.style,"font-weight":o.weight,"text-decoration":o.decoration,x:r,y:n,"text-anchor":Sq(this.textAlign),"dominant-baseline":$q(this.textBaseline)},!0);a.appendChild(this.__document.createTextNode(t)),this.__currentElement=a,this.__applyStyleToCurrentElement(i),s.appendChild(this.__wrapTextLink(o,a))}fillText(t,r,n){this.__applyText(t,r,n,"fill")}strokeText(t,r,n){this.__applyText(t,r,n,"stroke")}measureText(t){return this.__ctx.font=this.font,this.__ctx.measureText(t)}arc(t,r,n,i,o,s){if(i===o)return;i=i%(2*Math.PI),o=o%(2*Math.PI),i===o&&(o=(o+2*Math.PI-.001*(s?-1:1))%(2*Math.PI));const a=t+n*Math.cos(o),c=r+n*Math.sin(o),l=t+n*Math.cos(i),u=r+n*Math.sin(i),h=s?0:1;let f=0,d=o-i;d<0&&(d+=2*Math.PI),s?f=d>Math.PI?0:1:f=d>Math.PI?1:0,this.lineTo(l,u),this.__addPathCommand(bn("A {rx} {ry} {xAxisRotation} {largeArcFlag} {sweepFlag} {endX} {endY}",{rx:n,ry:n,xAxisRotation:0,largeArcFlag:f,sweepFlag:h,endX:a,endY:c})),this.__currentPosition={x:a,y:c}}clip(){const t=this.__closestGroupOrSvg(),r=this.__createElement("clipPath"),n=cf(this.__ids),i=this.__createElement("g");this.__applyCurrentDefaultPath(),t.removeChild(this.__currentElement),r.setAttribute("id",n),r.appendChild(this.__currentElement),this.__SVGdefs.appendChild(r),t.setAttribute("clip-path",bn("url(#{id})",{id:n})),t.appendChild(i),this.__currentElement=i}drawImage(...t){let r=t[0],n,i,o,s,a=0,c=0,l,u,h,f,d,p,g,v;if(t.length===3)n=t[1],i=t[2],l=r.width,u=r.height,o=l,s=u;else if(t.length===5)n=t[1],i=t[2],o=t[3],s=t[4],l=r.width,u=r.height;else if(t.length===9)a=t[1],c=t[2],l=t[3],u=t[4],n=t[5],i=t[6],o=t[7],s=t[8];else throw new Error("Invalid number of arguments passed to drawImage: "+arguments.length);const b=this.__closestGroupOrSvg();this.__currentElement;const y="translate("+n+", "+i+")";if(r instanceof uf){if(h=r.getSvg().cloneNode(!0),h.childNodes&&h.childNodes.length>1){for(f=h.childNodes[0];f.childNodes.length;)v=f.childNodes[0].getAttribute("id"),this.__ids[v]=v,this.__SVGdefs.appendChild(f.childNodes[0]);if(d=h.childNodes[1],d){const m=d.getAttribute("transform");let x;m?x=m+" "+y:x=y,d.setAttribute("transform",x),b.appendChild(d)}}}else(r.nodeName==="CANVAS"||r.nodeName==="IMG")&&(p=this.__createElement("image"),p.setAttribute("width",o),p.setAttribute("height",s),p.setAttribute("preserveAspectRatio","none"),(a||c||l!==r.width||u!==r.height)&&(g=this.__document.createElement("canvas"),g.width=o,g.height=s,g.getContext("2d")?.drawImage(r,a,c,l,u,0,0,o,s),r=g),p.setAttribute("transform",y),p.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r.nodeName==="CANVAS"?r.toDataURL():r.getAttribute("src")),b.appendChild(p))}createPattern(t,r){const n=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),i=cf(this.__ids);let o;return n.setAttribute("id",i),t.nodeName==="CANVAS"||t.nodeName==="IMG"?(o=this.__document.createElementNS("http://www.w3.org/2000/svg","image"),o.setAttribute("width",""+t.width),o.setAttribute("height",""+t.height),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.nodeName==="CANVAS"?t.toDataURL():t.getAttribute("src")),n.appendChild(o),this.__SVGdefs.appendChild(n)):t instanceof uf&&(n.setAttribute("width",""+t.width),n.setAttribute("height",""+t.height),n.appendChild(t.__rootSVG.childNodes[1]),this.__SVGdefs.appendChild(n)),new LE(n,this)}setLineDash(t){t&&t.length>0?this.lineDash=t.join(","):this.lineDash=null}drawFocusRing(){}createImageData(){}getImageData(){}putImageData(){}globalCompositeOperation(){}setTransform(){}}let VE=class EP{point;constructor(t){this.point=new la(t)}static fromSVGPathData(t){if(t.length<3)throw new Error("Line 参数个数错误");if(t[0].toUpperCase()!=="L")throw new Error("Line command 错误");return new EP({x:t[1],y:t[2]})}toSVGPathData(){return["L",this.point.x,this.point.y]}toSVGPathD(){return"L "+this.point.toSVGPathD()}},UE=class CP extends VE{rx;ry;xAxisRotate;largeArcFlag;sweepFlag;constructor(t){super(t),this.rx=t.rx,this.ry=t.ry,this.xAxisRotate=t?.xAxisRotate??0,this.largeArcFlag=t?.largeArcFlag??1,this.sweepFlag=t?.sweepFlag??1}static fromSVGPathData(t){if(t.length<8)throw new Error("Arc 参数个数错误");if(t[0].toUpperCase()!=="A")throw new Error("Arc command 错误");return new CP({x:t[6],y:t[7],rx:t[1],ry:t[2],xAxisRotate:t[3],largeArcFlag:t[4],sweepFlag:t[5]})}toSVGPathData(){return["A",this.rx,this.ry,this.xAxisRotate,this.largeArcFlag,this.sweepFlag,this.point.x,this.point.y]}toSVGPathD(){return`A ${this.rx},${this.ry} ${this.xAxisRotate} ${this.largeArcFlag},${this.sweepFlag} ${this.point.toSVGPathD()}`}};class zc extends VE{ctrlPoints=[];constructor(t){super(t),this.ctrlPoints.push(new la({x:t.c1x,y:t.c1y})),this.ctrlPoints.push(new la({x:t.c2x,y:t.c2y}))}static fromSVGPathData(t){if(t.length<7)throw new Error("CubicBezier 参数个数错误");if(t[0].toUpperCase()!=="C")throw new Error("CubicBezier command 错误");return new zc({c1x:t[1],c1y:t[2],c2x:t[3],c2y:t[4],x:t[5],y:t[6]})}toSVGPathData(){return["C",this.ctrlPoints[0].x,this.ctrlPoints[0].y,this.ctrlPoints[1].x,this.ctrlPoints[1].y,this.point.x,this.point.y]}toSVGPathD(){return`C ${this.ctrlPoints.map(t=>t.toSVGPathD()).join(" ")} ${this.point.toSVGPathD()}`}}class rl{startPoint;isClosed=!1;lines=[];normalizedLines=[];constructor(t){this.startPoint=t?.startPoint??null,this.isClosed=t?.isClosed??!1,t?.lines?.forEach(this.addLine),this.normalize()}setStartPoint(t,r){return this.startPoint=new la({x:t,y:r}),this}addLine(t){return this.lines.push(t),this}normalize(){let t=this.lines.reduce((n,i)=>(n+=i.toSVGPathD(),n),"");this.startPoint&&(t="M "+this.startPoint.toSVGPathD()+t),this.isClosed&&(t+="Z"),this.normalizedLines=[];const r=Hv(Bv(Gv(t)));for(let n=0,i=r.length;n<i;n++){const o=r[n];if(n==0&&o[0]=="M"){this.setStartPoint(o[1],o[2]);continue}if(n==i-1&&o[0]=="Z"){this.isClosed=!0;continue}this.normalizedLines.push(zc.fromSVGPathData(o))}return this}static fromSVGPathD(t,r){if(!JH(t))throw new Error("Not an SVG path!");const n=Hv(Bv(Gv(t)));return rl.fromSVGPathData(n,r)}static fromSVGPathData(t,r){const n=new rl;for(let o=0,s=t.length;o<s;o++){const a=t[o],c=a[0];if(o==0&&c=="M"){n.setStartPoint(a[1],a[2]);continue}if(o==s-1&&c=="Z"){n.isClosed=!0;continue}n.addLine(new zc({c1x:a[1],c1y:a[2],c2x:a[3],c2y:a[4],x:a[5],y:a[6]}))}n.normalize();const i=sf(r??"");return n.transform(i)}toSVGPathD(){let t="";this.startPoint&&(t+="M "+this.startPoint.toSVGPathD());for(let r=0,n=this.normalizedLines.length;r<n;r++)t+=this.normalizedLines[r].toSVGPathD();return this.isClosed&&(t+="Z"),t}toSVGPathData(){const t=[];this.startPoint&&t.push(["M",...this.startPoint.toSVGPathData()]);for(let r=0,n=this.normalizedLines.length;r<n;r++)t.push(this.normalizedLines[r].toSVGPathData());return this.isClosed&&t.push(["Z"]),t}toCanvas(t){const r=this.normalizedLines;r.length&&(this.startPoint&&(t.beginPath(),t.moveTo(this.startPoint.x,this.startPoint.y)),r.forEach(n=>{const[i,...o]=n.toSVGPathData();i==="M"?t.moveTo(o[0],o[1]):i==="Z"?t.closePath():t.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5])}),this.isClosed&&t.closePath())}get bounds(){let t=[0,0,0,0];if(this.normalizedLines.length){t=[1/0,1/0,-1/0,-1/0];for(let r=0,n=this.normalizedLines.length;r<n;r++){const i=this.normalizedLines[r],o=[...i.ctrlPoints,i.point];for(let s=0;s<o.length;s++){const a=o[s].x,c=o[s].y;a<t[0]&&(t[0]=a),c<t[1]&&(t[1]=c),a>t[2]&&(t[2]=a),c>t[3]&&(t[3]=c)}}}return t}get size(){const t=this.bounds;return[t[2]-t[0],t[3]-t[1]]}get center(){const[t,r,n,i]=this.bounds;return[(t+n)/2,(r+i)/2]}getTotalLength(){return pq(this.toSVGPathD())}getPointAtLength(t){return mq(this.toSVGPathD(),t)}isPointInPath(t,r){return gq(this.toSVGPathD(),t,r)}isPointInStroke(t,r,n={lineWidth:1,lineCap:"butt",lineJoin:"miter"}){return vq(this.toSVGPathD(),t,r,n)}transform(t){if(this.startPoint){const[r,n]=t.transformPoint(this.startPoint.x,this.startPoint.y);this.setStartPoint(r,n)}return this.normalizedLines=this.normalizedLines.map(r=>{const[n,...i]=r.toSVGPathData(),o=[n];for(let s=0,a=i.length;s<a;s+=2){const c=i[s],l=i[s+1],[u,h]=t.transformPoint(c,l);o.push(u,h)}return zc.fromSVGPathData(o)}),this}translate(t,r){const n=new _n().translate(t,r);return this.transform(n)}rotate(t,r=0,n=0){const i=new _n().rotate(t,r,n);return this.transform(i)}scale(t,r=t,n=0,i=0){const o=new _n().scale(t,r,n,i);return this.transform(o)}skew(t,r=0){const n=new _n().skew(t,r);return this.transform(n)}trim(){const[t,r]=this.bounds;return this.translate(-t,-r),this}static generateRosetta(t,r,n,i,o){if(o==0)throw new Error("no dividing by zero, please");const s=new rl;s.setStartPoint(t,r);const a=360/o;for(let c=0;c<o;c+=1){const l=a*c*Math.PI/180,u=t+2*n*Math.cos(l),h=r+2*n*Math.sin(l);s.addLine(new UE({x:u,y:h,rx:n,ry:i,xAxisRotate:a*c,largeArcFlag:1,sweepFlag:1})),s.addLine(new UE({x:t,y:r,rx:n,ry:i,xAxisRotate:a*c,largeArcFlag:1,sweepFlag:1}))}return s.normalize(),s}}var zE={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(window,function(){return function(r){var n={};function i(o){if(n[o])return n[o].exports;var s=n[o]={i:o,l:!1,exports:{}};return r[o].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=r,i.c=n,i.d=function(o,s,a){i.o(o,s)||Object.defineProperty(o,s,{enumerable:!0,get:a})},i.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},i.t=function(o,s){if(1&s&&(o=i(o)),8&s||4&s&&typeof o=="object"&&o&&o.__esModule)return o;var a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:o}),2&s&&typeof o!="string")for(var c in o)i.d(a,c,function(l){return o[l]}.bind(null,c));return a},i.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(s,"a",s),s},i.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)},i.p="",i(i.s=1)}([function(r,n,i){var o,s;o=[i(2)],(s=function(a){function c(S){if(c.is(S,"function"))return l?S():a.on("raphael.DOMload",S);if(c.is(S,at))return c._engine.create[y](c,S.splice(0,3+c.is(S[0],yt))).add(S);var N=Array.prototype.slice.call(arguments,0);if(c.is(N[N.length-1],"function")){var j=N.pop();return l?j.call(c._engine.create[y](c,N)):a.on("raphael.DOMload",function(){j.call(c._engine.create[y](c,N))})}return c._engine.create[y](c,arguments)}c.version="2.3.0",c.eve=a;var l,u,h=/[, ]+/,f={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},d=/\{(\d+)\}/g,p="hasOwnProperty",g={doc:document,win:window},v={was:Object.prototype[p].call(g.win,"Raphael"),is:g.win.Raphael},b=function(){this.ca=this.customAttributes={}},y="apply",m="concat",x="ontouchstart"in window||window.TouchEvent||window.DocumentTouch&&document instanceof DocumentTouch,A="",E=" ",k=String,D="split",V="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[D](E),U={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},K=k.prototype.toLowerCase,Y=Math,it=Y.max,nt=Y.min,ft=Y.abs,xt=Y.pow,_t=Y.PI,yt="number",at="array",X=Object.prototype.toString,O=(c._ISURL=/^url\(['"]?(.+?)['"]?\)$/i,/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i),C={NaN:1,Infinity:1,"-Infinity":1},$=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,_=Y.round,P=parseFloat,M=parseInt,I=k.prototype.toUpperCase,G=c._availableAttrs={"arrow-end":"none","arrow-start":"none",blur:0,"clip-rect":"0 0 1e9 1e9",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"http://raphaeljs.com/","letter-spacing":0,opacity:1,path:"M0,0",r:0,rx:0,ry:0,src:"",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,target:"_blank","text-anchor":"middle",title:"Raphael",transform:"",width:0,x:0,y:0,class:""},q=c._availableAnimAttrs={blur:yt,"clip-rect":"csv",cx:yt,cy:yt,fill:"colour","fill-opacity":yt,"font-size":yt,height:yt,opacity:yt,path:"path",r:yt,rx:yt,ry:yt,stroke:"colour","stroke-opacity":yt,"stroke-width":yt,transform:"transform",width:yt,x:yt,y:yt},et=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/,st={hs:1,rg:1},mt=/,?([achlmqrstvxz]),?/gi,Lt=/([achlmrqstvz])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,J=/([rstm])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,Q=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/gi,ot=(c._radial_gradient=/^r(?:\(([^,]+?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*([^\)]+?)\))?/,{}),lt=function(S,N){return P(S)-P(N)},ct=function(S){return S},dt=c._rectPath=function(S,N,j,w,T){return T?[["M",S+T,N],["l",j-2*T,0],["a",T,T,0,0,1,T,T],["l",0,w-2*T],["a",T,T,0,0,1,-T,T],["l",2*T-j,0],["a",T,T,0,0,1,-T,-T],["l",0,2*T-w],["a",T,T,0,0,1,T,-T],["z"]]:[["M",S,N],["l",j,0],["l",0,w],["l",-j,0],["z"]]},$t=function(S,N,j,w){return w==null&&(w=j),[["M",S,N],["m",0,-w],["a",j,w,0,1,1,0,2*w],["a",j,w,0,1,1,0,-2*w],["z"]]},vt=c._getPath={path:function(S){return S.attr("path")},circle:function(S){var N=S.attrs;return $t(N.cx,N.cy,N.r)},ellipse:function(S){var N=S.attrs;return $t(N.cx,N.cy,N.rx,N.ry)},rect:function(S){var N=S.attrs;return dt(N.x,N.y,N.width,N.height,N.r)},image:function(S){var N=S.attrs;return dt(N.x,N.y,N.width,N.height)},text:function(S){var N=S._getBBox();return dt(N.x,N.y,N.width,N.height)},set:function(S){var N=S._getBBox();return dt(N.x,N.y,N.width,N.height)}},bt=c.mapPath=function(S,N){if(!N)return S;var j,w,T,F,B,H,W;for(T=0,B=(S=Ti(S)).length;T<B;T++)for(F=1,H=(W=S[T]).length;F<H;F+=2)j=N.x(W[F],W[F+1]),w=N.y(W[F],W[F+1]),W[F]=j,W[F+1]=w;return S};if(c._g=g,c.type=g.win.SVGAngle||g.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML",c.type=="VML"){var ut,It=g.doc.createElement("div");if(It.innerHTML='<v:shape adj="1"/>',(ut=It.firstChild).style.behavior="url(#default#VML)",!ut||typeof ut.adj!="object")return c.type=A;It=null}function Vt(S){if(typeof S=="function"||Object(S)!==S)return S;var N=new S.constructor;for(var j in S)S[p](j)&&(N[j]=Vt(S[j]));return N}c.svg=!(c.vml=c.type=="VML"),c._Paper=b,c.fn=u=b.prototype=c.prototype,c._id=0,c.is=function(S,N){return(N=K.call(N))=="finite"?!C[p](+S):N=="array"?S instanceof Array:N=="null"&&S===null||N==typeof S&&S!==null||N=="object"&&S===Object(S)||N=="array"&&Array.isArray&&Array.isArray(S)||X.call(S).slice(8,-1).toLowerCase()==N},c.angle=function(S,N,j,w,T,F){if(T==null){var B=S-j,H=N-w;return B||H?(180+180*Y.atan2(-H,-B)/_t+360)%360:0}return c.angle(S,N,T,F)-c.angle(j,w,T,F)},c.rad=function(S){return S%360*_t/180},c.deg=function(S){return Math.round(180*S/_t%360*1e3)/1e3},c.snapTo=function(S,N,j){if(j=c.is(j,"finite")?j:10,c.is(S,at)){for(var w=S.length;w--;)if(ft(S[w]-N)<=j)return S[w]}else{var T=N%(S=+S);if(T<j)return N-T;if(T>S-j)return N-T+S}return N};var Ut,Kt;c.createUUID=(Ut=/[xy]/g,Kt=function(S){var N=16*Y.random()|0;return(S=="x"?N:3&N|8).toString(16)},function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Ut,Kt).toUpperCase()}),c.setWindow=function(S){a("raphael.setWindow",c,g.win,S),g.win=S,g.doc=g.win.document,c._engine.initWin&&c._engine.initWin(g.win)};var ne=function(S){if(c.vml){var N,j=/^\s+|\s+$/g;try{var w=new ActiveXObject("htmlfile");w.write("<body>"),w.close(),N=w.body}catch{N=createPopup().document.body}var T=N.createTextRange();ne=sr(function(B){try{N.style.color=k(B).replace(j,A);var H=T.queryCommandValue("ForeColor");return"#"+("000000"+(H=(255&H)<<16|65280&H|(16711680&H)>>>16).toString(16)).slice(-6)}catch{return"none"}})}else{var F=g.doc.createElement("i");F.title="Raphaël Colour Picker",F.style.display="none",g.doc.body.appendChild(F),ne=sr(function(B){return F.style.color=B,g.doc.defaultView.getComputedStyle(F,A).getPropertyValue("color")})}return ne(S)},Yt=function(){return"hsb("+[this.h,this.s,this.b]+")"},fe=function(){return"hsl("+[this.h,this.s,this.l]+")"},je=function(){return this.hex},nr=function(S,N,j){if(N==null&&c.is(S,"object")&&"r"in S&&"g"in S&&"b"in S&&(j=S.b,N=S.g,S=S.r),N==null&&c.is(S,"string")){var w=c.getRGB(S);S=w.r,N=w.g,j=w.b}return(S>1||N>1||j>1)&&(S/=255,N/=255,j/=255),[S,N,j]},gr=function(S,N,j,w){var T={r:S*=255,g:N*=255,b:j*=255,hex:c.rgb(S,N,j),toString:je};return c.is(w,"finite")&&(T.opacity=w),T};function sr(S,N,j){return function w(){var T=Array.prototype.slice.call(arguments,0),F=T.join("␀"),B=w.cache=w.cache||{},H=w.count=w.count||[];return B[p](F)?(function(W,rt){for(var ht=0,St=W.length;ht<St;ht++)if(W[ht]===rt)return W.push(W.splice(ht,1)[0])}(H,F),j?j(B[F]):B[F]):(H.length>=1e3&&delete B[H.shift()],H.push(F),B[F]=S[y](N,T),j?j(B[F]):B[F])}}c.color=function(S){var N;return c.is(S,"object")&&"h"in S&&"s"in S&&"b"in S?(N=c.hsb2rgb(S),S.r=N.r,S.g=N.g,S.b=N.b,S.hex=N.hex):c.is(S,"object")&&"h"in S&&"s"in S&&"l"in S?(N=c.hsl2rgb(S),S.r=N.r,S.g=N.g,S.b=N.b,S.hex=N.hex):(c.is(S,"string")&&(S=c.getRGB(S)),c.is(S,"object")&&"r"in S&&"g"in S&&"b"in S?(N=c.rgb2hsl(S),S.h=N.h,S.s=N.s,S.l=N.l,N=c.rgb2hsb(S),S.v=N.b):(S={hex:"none"}).r=S.g=S.b=S.h=S.s=S.v=S.l=-1),S.toString=je,S},c.hsb2rgb=function(S,N,j,w){var T,F,B,H,W;return this.is(S,"object")&&"h"in S&&"s"in S&&"b"in S&&(j=S.b,N=S.s,w=S.o,S=S.h),H=(W=j*N)*(1-ft((S=(S*=360)%360/60)%2-1)),T=F=B=j-W,gr(T+=[W,H,0,0,H,W][S=~~S],F+=[H,W,W,H,0,0][S],B+=[0,0,H,W,W,H][S],w)},c.hsl2rgb=function(S,N,j,w){var T,F,B,H,W;return this.is(S,"object")&&"h"in S&&"s"in S&&"l"in S&&(j=S.l,N=S.s,S=S.h),(S>1||N>1||j>1)&&(S/=360,N/=100,j/=100),H=(W=2*N*(j<.5?j:1-j))*(1-ft((S=(S*=360)%360/60)%2-1)),T=F=B=j-W/2,gr(T+=[W,H,0,0,H,W][S=~~S],F+=[H,W,W,H,0,0][S],B+=[0,0,H,W,W,H][S],w)},c.rgb2hsb=function(S,N,j){var w,T;return S=(j=nr(S,N,j))[0],N=j[1],j=j[2],{h:(((T=(w=it(S,N,j))-nt(S,N,j))==0?null:w==S?(N-j)/T:w==N?(j-S)/T+2:(S-N)/T+4)+360)%6*60/360,s:T==0?0:T/w,b:w,toString:Yt}},c.rgb2hsl=function(S,N,j){var w,T,F,B;return S=(j=nr(S,N,j))[0],N=j[1],j=j[2],w=((T=it(S,N,j))+(F=nt(S,N,j)))/2,{h:(((B=T-F)==0?null:T==S?(N-j)/B:T==N?(j-S)/B+2:(S-N)/B+4)+360)%6*60/360,s:B==0?0:w<.5?B/(2*w):B/(2-2*w),l:w,toString:fe}},c._path2string=function(){return this.join(",").replace(mt,"$1")},c._preload=function(S,N){var j=g.doc.createElement("img");j.style.cssText="position:absolute;left:-9999em;top:-9999em",j.onload=function(){N.call(this),this.onload=null,g.doc.body.removeChild(this)},j.onerror=function(){g.doc.body.removeChild(this)},g.doc.body.appendChild(j),j.src=S};function Mr(){return this.hex}function an(S,N){for(var j=[],w=0,T=S.length;T-2*!N>w;w+=2){var F=[{x:+S[w-2],y:+S[w-1]},{x:+S[w],y:+S[w+1]},{x:+S[w+2],y:+S[w+3]},{x:+S[w+4],y:+S[w+5]}];N?w?T-4==w?F[3]={x:+S[0],y:+S[1]}:T-2==w&&(F[2]={x:+S[0],y:+S[1]},F[3]={x:+S[2],y:+S[3]}):F[0]={x:+S[T-2],y:+S[T-1]}:T-4==w?F[3]=F[2]:w||(F[0]={x:+S[w],y:+S[w+1]}),j.push(["C",(-F[0].x+6*F[1].x+F[2].x)/6,(-F[0].y+6*F[1].y+F[2].y)/6,(F[1].x+6*F[2].x-F[3].x)/6,(F[1].y+6*F[2].y-F[3].y)/6,F[2].x,F[2].y])}return j}c.getRGB=sr(function(S){if(!S||(S=k(S)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:Mr};if(S=="none")return{r:-1,g:-1,b:-1,hex:"none",toString:Mr};!st[p](S.toLowerCase().substring(0,2))&&S.charAt()!="#"&&(S=ne(S));var N,j,w,T,F,B,H=S.match(O);return H?(H[2]&&(w=M(H[2].substring(5),16),j=M(H[2].substring(3,5),16),N=M(H[2].substring(1,3),16)),H[3]&&(w=M((F=H[3].charAt(3))+F,16),j=M((F=H[3].charAt(2))+F,16),N=M((F=H[3].charAt(1))+F,16)),H[4]&&(B=H[4][D](et),N=P(B[0]),B[0].slice(-1)=="%"&&(N*=2.55),j=P(B[1]),B[1].slice(-1)=="%"&&(j*=2.55),w=P(B[2]),B[2].slice(-1)=="%"&&(w*=2.55),H[1].toLowerCase().slice(0,4)=="rgba"&&(T=P(B[3])),B[3]&&B[3].slice(-1)=="%"&&(T/=100)),H[5]?(B=H[5][D](et),N=P(B[0]),B[0].slice(-1)=="%"&&(N*=2.55),j=P(B[1]),B[1].slice(-1)=="%"&&(j*=2.55),w=P(B[2]),B[2].slice(-1)=="%"&&(w*=2.55),(B[0].slice(-3)=="deg"||B[0].slice(-1)=="°")&&(N/=360),H[1].toLowerCase().slice(0,4)=="hsba"&&(T=P(B[3])),B[3]&&B[3].slice(-1)=="%"&&(T/=100),c.hsb2rgb(N,j,w,T)):H[6]?(B=H[6][D](et),N=P(B[0]),B[0].slice(-1)=="%"&&(N*=2.55),j=P(B[1]),B[1].slice(-1)=="%"&&(j*=2.55),w=P(B[2]),B[2].slice(-1)=="%"&&(w*=2.55),(B[0].slice(-3)=="deg"||B[0].slice(-1)=="°")&&(N/=360),H[1].toLowerCase().slice(0,4)=="hsla"&&(T=P(B[3])),B[3]&&B[3].slice(-1)=="%"&&(T/=100),c.hsl2rgb(N,j,w,T)):((H={r:N,g:j,b:w,toString:Mr}).hex="#"+(16777216|w|j<<8|N<<16).toString(16).slice(1),c.is(T,"finite")&&(H.opacity=T),H)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:Mr}},c),c.hsb=sr(function(S,N,j){return c.hsb2rgb(S,N,j).hex}),c.hsl=sr(function(S,N,j){return c.hsl2rgb(S,N,j).hex}),c.rgb=sr(function(S,N,j){function w(T){return T+.5|0}return"#"+(16777216|w(j)|w(N)<<8|w(S)<<16).toString(16).slice(1)}),c.getColor=function(S){var N=this.getColor.start=this.getColor.start||{h:0,s:1,b:S||.75},j=this.hsb2rgb(N.h,N.s,N.b);return N.h+=.075,N.h>1&&(N.h=0,N.s-=.2,N.s<=0&&(this.getColor.start={h:0,s:1,b:N.b})),j.hex},c.getColor.reset=function(){delete this.start},c.parsePathString=function(S){if(!S)return null;var N=ue(S);if(N.arr)return Xe(N.arr);var j={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},w=[];return c.is(S,at)&&c.is(S[0],at)&&(w=Xe(S)),w.length||k(S).replace(Lt,function(T,F,B){var H=[],W=F.toLowerCase();if(B.replace(Q,function(rt,ht){ht&&H.push(+ht)}),W=="m"&&H.length>2&&(w.push([F][m](H.splice(0,2))),W="l",F=F=="m"?"l":"L"),W=="r")w.push([F][m](H));else for(;H.length>=j[W]&&(w.push([F][m](H.splice(0,j[W]))),j[W]););}),w.toString=c._path2string,N.arr=Xe(w),w},c.parseTransformString=sr(function(S){if(!S)return null;var N=[];return c.is(S,at)&&c.is(S[0],at)&&(N=Xe(S)),N.length||k(S).replace(J,function(j,w,T){var F=[];K.call(w),T.replace(Q,function(B,H){H&&F.push(+H)}),N.push([w][m](F))}),N.toString=c._path2string,N},this,function(S){if(!S)return S;for(var N=[],j=0;j<S.length;j++){for(var w=[],T=0;T<S[j].length;T++)w.push(S[j][T]);N.push(w)}return N});var ue=function(S){var N=ue.ps=ue.ps||{};return N[S]?N[S].sleep=100:N[S]={sleep:100},setTimeout(function(){for(var j in N)N[p](j)&&j!=S&&(N[j].sleep--,!N[j].sleep&&delete N[j])}),N[S]};function dr(S,N,j,w,T){return S*(S*(-3*N+9*j-9*w+3*T)+6*N-12*j+6*w)-3*N+3*j}function Lr(S,N,j,w,T,F,B,H,W){W==null&&(W=1);for(var rt=(W=W>1?1:W<0?0:W)/2,ht=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],St=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],gt=0,pt=0;pt<12;pt++){var Et=rt*ht[pt]+rt,Nt=dr(Et,S,j,T,B),Ct=dr(Et,N,w,F,H),wt=Nt*Nt+Ct*Ct;gt+=St[pt]*Y.sqrt(wt)}return rt*gt}function Pi(S,N,j,w,T,F,B,H){if(!(it(S,j)<nt(T,B)||nt(S,j)>it(T,B)||it(N,w)<nt(F,H)||nt(N,w)>it(F,H))){var W=(S-j)*(F-H)-(N-w)*(T-B);if(W){var rt=((S*w-N*j)*(T-B)-(S-j)*(T*H-F*B))/W,ht=((S*w-N*j)*(F-H)-(N-w)*(T*H-F*B))/W,St=+rt.toFixed(2),gt=+ht.toFixed(2);if(!(St<+nt(S,j).toFixed(2)||St>+it(S,j).toFixed(2)||St<+nt(T,B).toFixed(2)||St>+it(T,B).toFixed(2)||gt<+nt(N,w).toFixed(2)||gt>+it(N,w).toFixed(2)||gt<+nt(F,H).toFixed(2)||gt>+it(F,H).toFixed(2)))return{x:rt,y:ht}}}}function Bn(S,N,j){var w=c.bezierBBox(S),T=c.bezierBBox(N);if(!c.isBBoxIntersect(w,T))return j?0:[];for(var F=Lr.apply(0,S),B=Lr.apply(0,N),H=it(~~(F/5),1),W=it(~~(B/5),1),rt=[],ht=[],St={},gt=j?0:[],pt=0;pt<H+1;pt++){var Et=c.findDotsAtSegment.apply(c,S.concat(pt/H));rt.push({x:Et.x,y:Et.y,t:pt/H})}for(pt=0;pt<W+1;pt++)Et=c.findDotsAtSegment.apply(c,N.concat(pt/W)),ht.push({x:Et.x,y:Et.y,t:pt/W});for(pt=0;pt<H;pt++)for(var Nt=0;Nt<W;Nt++){var Ct=rt[pt],wt=rt[pt+1],Bt=ht[Nt],At=ht[Nt+1],Ft=ft(wt.x-Ct.x)<.001?"y":"x",Dt=ft(At.x-Bt.x)<.001?"y":"x",_e=Pi(Ct.x,Ct.y,wt.x,wt.y,Bt.x,Bt.y,At.x,At.y);if(_e){if(St[_e.x.toFixed(4)]==_e.y.toFixed(4))continue;St[_e.x.toFixed(4)]=_e.y.toFixed(4);var he=Ct.t+ft((_e[Ft]-Ct[Ft])/(wt[Ft]-Ct[Ft]))*(wt.t-Ct.t),be=Bt.t+ft((_e[Dt]-Bt[Dt])/(At[Dt]-Bt[Dt]))*(At.t-Bt.t);he>=0&&he<=1.001&&be>=0&&be<=1.001&&(j?gt++:gt.push({x:_e.x,y:_e.y,t1:nt(he,1),t2:nt(be,1)}))}}return gt}function ni(S,N,j){S=c._path2curve(S),N=c._path2curve(N);for(var w,T,F,B,H,W,rt,ht,St,gt,pt=j?0:[],Et=0,Nt=S.length;Et<Nt;Et++){var Ct=S[Et];if(Ct[0]=="M")w=H=Ct[1],T=W=Ct[2];else{Ct[0]=="C"?(St=[w,T].concat(Ct.slice(1)),w=St[6],T=St[7]):(St=[w,T,w,T,H,W,H,W],w=H,T=W);for(var wt=0,Bt=N.length;wt<Bt;wt++){var At=N[wt];if(At[0]=="M")F=rt=At[1],B=ht=At[2];else{At[0]=="C"?(gt=[F,B].concat(At.slice(1)),F=gt[6],B=gt[7]):(gt=[F,B,F,B,rt,ht,rt,ht],F=rt,B=ht);var Ft=Bn(St,gt,j);if(j)pt+=Ft;else{for(var Dt=0,_e=Ft.length;Dt<_e;Dt++)Ft[Dt].segment1=Et,Ft[Dt].segment2=wt,Ft[Dt].bez1=St,Ft[Dt].bez2=gt;pt=pt.concat(Ft)}}}}}return pt}c.findDotsAtSegment=function(S,N,j,w,T,F,B,H,W){var rt=1-W,ht=xt(rt,3),St=xt(rt,2),gt=W*W,pt=gt*W,Et=ht*S+3*St*W*j+3*rt*W*W*T+pt*B,Nt=ht*N+3*St*W*w+3*rt*W*W*F+pt*H,Ct=S+2*W*(j-S)+gt*(T-2*j+S),wt=N+2*W*(w-N)+gt*(F-2*w+N),Bt=j+2*W*(T-j)+gt*(B-2*T+j),At=w+2*W*(F-w)+gt*(H-2*F+w),Ft=rt*S+W*j,Dt=rt*N+W*w,_e=rt*T+W*B,he=rt*F+W*H,be=90-180*Y.atan2(Ct-Bt,wt-At)/_t;return(Ct>Bt||wt<At)&&(be+=180),{x:Et,y:Nt,m:{x:Ct,y:wt},n:{x:Bt,y:At},start:{x:Ft,y:Dt},end:{x:_e,y:he},alpha:be}},c.bezierBBox=function(S,N,j,w,T,F,B,H){c.is(S,"array")||(S=[S,N,j,w,T,F,B,H]);var W=Sn.apply(null,S);return{x:W.min.x,y:W.min.y,x2:W.max.x,y2:W.max.y,width:W.max.x-W.min.x,height:W.max.y-W.min.y}},c.isPointInsideBBox=function(S,N,j){return N>=S.x&&N<=S.x2&&j>=S.y&&j<=S.y2},c.isBBoxIntersect=function(S,N){var j=c.isPointInsideBBox;return j(N,S.x,S.y)||j(N,S.x2,S.y)||j(N,S.x,S.y2)||j(N,S.x2,S.y2)||j(S,N.x,N.y)||j(S,N.x2,N.y)||j(S,N.x,N.y2)||j(S,N.x2,N.y2)||(S.x<N.x2&&S.x>N.x||N.x<S.x2&&N.x>S.x)&&(S.y<N.y2&&S.y>N.y||N.y<S.y2&&N.y>S.y)},c.pathIntersection=function(S,N){return ni(S,N)},c.pathIntersectionNumber=function(S,N){return ni(S,N,1)},c.isPointInsidePath=function(S,N,j){var w=c.pathBBox(S);return c.isPointInsideBBox(w,N,j)&&ni(S,[["M",N,j],["H",w.x2+10]],1)%2==1},c._removedFactory=function(S){return function(){a("raphael.log",null,"Raphaël: you are calling to method “"+S+"” of removed object",S)}};var dn=c.pathBBox=function(S){var N=ue(S);if(N.bbox)return Vt(N.bbox);if(!S)return{x:0,y:0,width:0,height:0,x2:0,y2:0};for(var j,w=0,T=0,F=[],B=[],H=0,W=(S=Ti(S)).length;H<W;H++)if((j=S[H])[0]=="M")w=j[1],T=j[2],F.push(w),B.push(T);else{var rt=Sn(w,T,j[1],j[2],j[3],j[4],j[5],j[6]);F=F[m](rt.min.x,rt.max.x),B=B[m](rt.min.y,rt.max.y),w=j[5],T=j[6]}var ht=nt[y](0,F),St=nt[y](0,B),gt=it[y](0,F),pt=it[y](0,B),Et=gt-ht,Nt=pt-St,Ct={x:ht,y:St,x2:gt,y2:pt,width:Et,height:Nt,cx:ht+Et/2,cy:St+Nt/2};return N.bbox=Vt(Ct),Ct},Xe=function(S){var N=Vt(S);return N.toString=c._path2string,N},$s=c._pathToRelative=function(S){var N=ue(S);if(N.rel)return Xe(N.rel);c.is(S,at)&&c.is(S&&S[0],at)||(S=c.parsePathString(S));var j=[],w=0,T=0,F=0,B=0,H=0;S[0][0]=="M"&&(F=w=S[0][1],B=T=S[0][2],H++,j.push(["M",w,T]));for(var W=H,rt=S.length;W<rt;W++){var ht=j[W]=[],St=S[W];if(St[0]!=K.call(St[0]))switch(ht[0]=K.call(St[0]),ht[0]){case"a":ht[1]=St[1],ht[2]=St[2],ht[3]=St[3],ht[4]=St[4],ht[5]=St[5],ht[6]=+(St[6]-w).toFixed(3),ht[7]=+(St[7]-T).toFixed(3);break;case"v":ht[1]=+(St[1]-T).toFixed(3);break;case"m":F=St[1],B=St[2];default:for(var gt=1,pt=St.length;gt<pt;gt++)ht[gt]=+(St[gt]-(gt%2?w:T)).toFixed(3)}else{ht=j[W]=[],St[0]=="m"&&(F=St[1]+w,B=St[2]+T);for(var Et=0,Nt=St.length;Et<Nt;Et++)j[W][Et]=St[Et]}var Ct=j[W].length;switch(j[W][0]){case"z":w=F,T=B;break;case"h":w+=+j[W][Ct-1];break;case"v":T+=+j[W][Ct-1];break;default:w+=+j[W][Ct-2],T+=+j[W][Ct-1]}}return j.toString=c._path2string,N.rel=Xe(j),j},An=c._pathToAbsolute=function(S){var N=ue(S);if(N.abs)return Xe(N.abs);if(c.is(S,at)&&c.is(S&&S[0],at)||(S=c.parsePathString(S)),!S||!S.length)return[["M",0,0]];var j=[],w=0,T=0,F=0,B=0,H=0;S[0][0]=="M"&&(F=w=+S[0][1],B=T=+S[0][2],H++,j[0]=["M",w,T]);for(var W,rt,ht=S.length==3&&S[0][0]=="M"&&S[1][0].toUpperCase()=="R"&&S[2][0].toUpperCase()=="Z",St=H,gt=S.length;St<gt;St++){if(j.push(W=[]),(rt=S[St])[0]!=I.call(rt[0]))switch(W[0]=I.call(rt[0]),W[0]){case"A":W[1]=rt[1],W[2]=rt[2],W[3]=rt[3],W[4]=rt[4],W[5]=rt[5],W[6]=+(rt[6]+w),W[7]=+(rt[7]+T);break;case"V":W[1]=+rt[1]+T;break;case"H":W[1]=+rt[1]+w;break;case"R":for(var pt=[w,T][m](rt.slice(1)),Et=2,Nt=pt.length;Et<Nt;Et++)pt[Et]=+pt[Et]+w,pt[++Et]=+pt[Et]+T;j.pop(),j=j[m](an(pt,ht));break;case"M":F=+rt[1]+w,B=+rt[2]+T;default:for(Et=1,Nt=rt.length;Et<Nt;Et++)W[Et]=+rt[Et]+(Et%2?w:T)}else if(rt[0]=="R")pt=[w,T][m](rt.slice(1)),j.pop(),j=j[m](an(pt,ht)),W=["R"][m](rt.slice(-2));else for(var Ct=0,wt=rt.length;Ct<wt;Ct++)W[Ct]=rt[Ct];switch(W[0]){case"Z":w=F,T=B;break;case"H":w=W[1];break;case"V":T=W[1];break;case"M":F=W[W.length-2],B=W[W.length-1];default:w=W[W.length-2],T=W[W.length-1]}}return j.toString=c._path2string,N.abs=Xe(j),j},Hn=function(S,N,j,w){return[S,N,j,w,j,w]},Qr=function(S,N,j,w,T,F){return[1/3*S+2/3*j,1/3*N+2/3*w,1/3*T+2/3*j,1/3*F+2/3*w,T,F]},ii=function(S,N,j,w,T,F,B,H,W,rt){var ht,St=120*_t/180,gt=_t/180*(+T||0),pt=[],Et=sr(function(xP,SP,ep){return{x:xP*Y.cos(ep)-SP*Y.sin(ep),y:xP*Y.sin(ep)+SP*Y.cos(ep)}});if(rt)he=rt[0],be=rt[1],Dt=rt[2],_e=rt[3];else{S=(ht=Et(S,N,-gt)).x,N=ht.y,H=(ht=Et(H,W,-gt)).x,W=ht.y;var Nt=(S-H)/2,Ct=(N-W)/2,wt=Nt*Nt/(j*j)+Ct*Ct/(w*w);wt>1&&(j*=wt=Y.sqrt(wt),w*=wt);var Bt=j*j,At=w*w,Ft=(F==B?-1:1)*Y.sqrt(ft((Bt*At-Bt*Ct*Ct-At*Nt*Nt)/(Bt*Ct*Ct+At*Nt*Nt))),Dt=Ft*j*Ct/w+(S+H)/2,_e=Ft*-w*Nt/j+(N+W)/2,he=Y.asin(((N-_e)/w).toFixed(9)),be=Y.asin(((W-_e)/w).toFixed(9));(he=S<Dt?_t-he:he)<0&&(he=2*_t+he),(be=H<Dt?_t-be:be)<0&&(be=2*_t+be),B&&he>be&&(he-=2*_t),!B&&be>he&&(be-=2*_t)}var _l=be-he;if(ft(_l)>St){var nh=be,Rn=H,Ji=W;be=he+St*(B&&be>he?1:-1),H=Dt+j*Y.cos(be),W=_e+w*Y.sin(be),pt=ii(H,W,j,w,T,0,B,Rn,Ji,[be,nh,Dt,_e])}_l=be-he;var bl=Y.cos(he),wl=Y.sin(he),Zf=Y.cos(be),Fo=Y.sin(be),Aa=Y.tan(_l/4),tp=4/3*j*Aa,vP=4/3*w*Aa,yP=[S,N],xl=[S+tp*wl,N-vP*bl],_P=[H+tp*Fo,W-vP*Zf],bP=[H,W];if(xl[0]=2*yP[0]-xl[0],xl[1]=2*yP[1]-xl[1],rt)return[xl,_P,bP][m](pt);for(var wP=[],Es=0,snt=(pt=[xl,_P,bP][m](pt).join()[D](",")).length;Es<snt;Es++)wP[Es]=Es%2?Et(pt[Es-1],pt[Es],gt).y:Et(pt[Es],pt[Es+1],gt).x;return wP},qn=function(S,N,j,w,T,F,B,H,W){var rt=1-W;return{x:xt(rt,3)*S+3*xt(rt,2)*W*j+3*rt*W*W*T+xt(W,3)*B,y:xt(rt,3)*N+3*xt(rt,2)*W*w+3*rt*W*W*F+xt(W,3)*H}},Sn=sr(function(S,N,j,w,T,F,B,H){var W,rt=T-2*j+S-(B-2*T+j),ht=2*(j-S)-2*(T-j),St=S-j,gt=(-ht+Y.sqrt(ht*ht-4*rt*St))/2/rt,pt=(-ht-Y.sqrt(ht*ht-4*rt*St))/2/rt,Et=[N,H],Nt=[S,B];return ft(gt)>"1e12"&&(gt=.5),ft(pt)>"1e12"&&(pt=.5),gt>0&><1&&(W=qn(S,N,j,w,T,F,B,H,gt),Nt.push(W.x),Et.push(W.y)),pt>0&&pt<1&&(W=qn(S,N,j,w,T,F,B,H,pt),Nt.push(W.x),Et.push(W.y)),rt=F-2*w+N-(H-2*F+w),St=N-w,gt=(-(ht=2*(w-N)-2*(F-w))+Y.sqrt(ht*ht-4*rt*St))/2/rt,pt=(-ht-Y.sqrt(ht*ht-4*rt*St))/2/rt,ft(gt)>"1e12"&&(gt=.5),ft(pt)>"1e12"&&(pt=.5),gt>0&><1&&(W=qn(S,N,j,w,T,F,B,H,gt),Nt.push(W.x),Et.push(W.y)),pt>0&&pt<1&&(W=qn(S,N,j,w,T,F,B,H,pt),Nt.push(W.x),Et.push(W.y)),{min:{x:nt[y](0,Nt),y:nt[y](0,Et)},max:{x:it[y](0,Nt),y:it[y](0,Et)}}}),Ti=c._path2curve=sr(function(S,N){var j=!N&&ue(S);if(!N&&j.curve)return Xe(j.curve);for(var w=An(S),T=N&&An(N),F={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},B={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},H=function(Ft,Dt,_e){var he,be;if(!Ft)return["C",Dt.x,Dt.y,Dt.x,Dt.y,Dt.x,Dt.y];switch(!(Ft[0]in{T:1,Q:1})&&(Dt.qx=Dt.qy=null),Ft[0]){case"M":Dt.X=Ft[1],Dt.Y=Ft[2];break;case"A":Ft=["C"][m](ii[y](0,[Dt.x,Dt.y][m](Ft.slice(1))));break;case"S":_e=="C"||_e=="S"?(he=2*Dt.x-Dt.bx,be=2*Dt.y-Dt.by):(he=Dt.x,be=Dt.y),Ft=["C",he,be][m](Ft.slice(1));break;case"T":_e=="Q"||_e=="T"?(Dt.qx=2*Dt.x-Dt.qx,Dt.qy=2*Dt.y-Dt.qy):(Dt.qx=Dt.x,Dt.qy=Dt.y),Ft=["C"][m](Qr(Dt.x,Dt.y,Dt.qx,Dt.qy,Ft[1],Ft[2]));break;case"Q":Dt.qx=Ft[1],Dt.qy=Ft[2],Ft=["C"][m](Qr(Dt.x,Dt.y,Ft[1],Ft[2],Ft[3],Ft[4]));break;case"L":Ft=["C"][m](Hn(Dt.x,Dt.y,Ft[1],Ft[2]));break;case"H":Ft=["C"][m](Hn(Dt.x,Dt.y,Ft[1],Dt.y));break;case"V":Ft=["C"][m](Hn(Dt.x,Dt.y,Dt.x,Ft[1]));break;case"Z":Ft=["C"][m](Hn(Dt.x,Dt.y,Dt.X,Dt.Y))}return Ft},W=function(Ft,Dt){if(Ft[Dt].length>7){Ft[Dt].shift();for(var _e=Ft[Dt];_e.length;)ht[Dt]="A",T&&(St[Dt]="A"),Ft.splice(Dt++,0,["C"][m](_e.splice(0,6)));Ft.splice(Dt,1),Nt=it(w.length,T&&T.length||0)}},rt=function(Ft,Dt,_e,he,be){Ft&&Dt&&Ft[be][0]=="M"&&Dt[be][0]!="M"&&(Dt.splice(be,0,["M",he.x,he.y]),_e.bx=0,_e.by=0,_e.x=Ft[be][1],_e.y=Ft[be][2],Nt=it(w.length,T&&T.length||0))},ht=[],St=[],gt="",pt="",Et=0,Nt=it(w.length,T&&T.length||0);Et<Nt;Et++){w[Et]&&(gt=w[Et][0]),gt!="C"&&(ht[Et]=gt,Et&&(pt=ht[Et-1])),w[Et]=H(w[Et],F,pt),ht[Et]!="A"&>=="C"&&(ht[Et]="C"),W(w,Et),T&&(T[Et]&&(gt=T[Et][0]),gt!="C"&&(St[Et]=gt,Et&&(pt=St[Et-1])),T[Et]=H(T[Et],B,pt),St[Et]!="A"&>=="C"&&(St[Et]="C"),W(T,Et)),rt(w,T,F,B,Et),rt(T,w,B,F,Et);var Ct=w[Et],wt=T&&T[Et],Bt=Ct.length,At=T&&wt.length;F.x=Ct[Bt-2],F.y=Ct[Bt-1],F.bx=P(Ct[Bt-4])||F.x,F.by=P(Ct[Bt-3])||F.y,B.bx=T&&(P(wt[At-4])||B.x),B.by=T&&(P(wt[At-3])||B.y),B.x=T&&wt[At-2],B.y=T&&wt[At-1]}return T||(j.curve=Xe(w)),T?[w,T]:w},null,Xe),oi=(c._parseDots=sr(function(S){for(var N=[],j=0,w=S.length;j<w;j++){var T={},F=S[j].match(/^([^:]*):?([\d\.]*)/);if(T.color=c.getRGB(F[1]),T.color.error)return null;T.opacity=T.color.opacity,T.color=T.color.hex,F[2]&&(T.offset=F[2]+"%"),N.push(T)}for(j=1,w=N.length-1;j<w;j++)if(!N[j].offset){for(var B=P(N[j-1].offset||0),H=0,W=j+1;W<w;W++)if(N[W].offset){H=N[W].offset;break}H||(H=100,W=w);for(var rt=((H=P(H))-B)/(W-j+1);j<W;j++)B+=rt,N[j].offset=B+"%"}return N}),c._tear=function(S,N){S==N.top&&(N.top=S.prev),S==N.bottom&&(N.bottom=S.next),S.next&&(S.next.prev=S.prev),S.prev&&(S.prev.next=S.next)}),R=(c._tofront=function(S,N){N.top!==S&&(oi(S,N),S.next=null,S.prev=N.top,N.top.next=S,N.top=S)},c._toback=function(S,N){N.bottom!==S&&(oi(S,N),S.next=N.bottom,S.prev=null,N.bottom.prev=S,N.bottom=S)},c._insertafter=function(S,N,j){oi(S,j),N==j.top&&(j.top=S),N.next&&(N.next.prev=S),S.next=N.next,S.prev=N,N.next=S},c._insertbefore=function(S,N,j){oi(S,j),N==j.bottom&&(j.bottom=S),N.prev&&(N.prev.next=S),S.prev=N.prev,N.prev=S,S.next=N},c.toMatrix=function(S,N){var j=dn(S),w={_:{transform:A},getBBox:function(){return j}};return L(w,N),w.matrix}),L=(c.transformPath=function(S,N){return bt(S,R(S,N))},c._extractTransform=function(S,N){if(N==null)return S._.transform;N=k(N).replace(/\.{3}|\u2026/g,S._.transform||A);var j,w,T=c.parseTransformString(N),F=0,B=1,H=1,W=S._,rt=new tt;if(W.transform=T||[],T)for(var ht=0,St=T.length;ht<St;ht++){var gt,pt,Et,Nt,Ct,wt=T[ht],Bt=wt.length,At=k(wt[0]).toLowerCase(),Ft=wt[0]!=At,Dt=Ft?rt.invert():0;At=="t"&&Bt==3?Ft?(gt=Dt.x(0,0),pt=Dt.y(0,0),Et=Dt.x(wt[1],wt[2]),Nt=Dt.y(wt[1],wt[2]),rt.translate(Et-gt,Nt-pt)):rt.translate(wt[1],wt[2]):At=="r"?Bt==2?(Ct=Ct||S.getBBox(1),rt.rotate(wt[1],Ct.x+Ct.width/2,Ct.y+Ct.height/2),F+=wt[1]):Bt==4&&(Ft?(Et=Dt.x(wt[2],wt[3]),Nt=Dt.y(wt[2],wt[3]),rt.rotate(wt[1],Et,Nt)):rt.rotate(wt[1],wt[2],wt[3]),F+=wt[1]):At=="s"?Bt==2||Bt==3?(Ct=Ct||S.getBBox(1),rt.scale(wt[1],wt[Bt-1],Ct.x+Ct.width/2,Ct.y+Ct.height/2),B*=wt[1],H*=wt[Bt-1]):Bt==5&&(Ft?(Et=Dt.x(wt[3],wt[4]),Nt=Dt.y(wt[3],wt[4]),rt.scale(wt[1],wt[2],Et,Nt)):rt.scale(wt[1],wt[2],wt[3],wt[4]),B*=wt[1],H*=wt[2]):At=="m"&&Bt==7&&rt.add(wt[1],wt[2],wt[3],wt[4],wt[5],wt[6]),W.dirtyT=1,S.matrix=rt}S.matrix=rt,W.sx=B,W.sy=H,W.deg=F,W.dx=j=rt.e,W.dy=w=rt.f,B==1&&H==1&&!F&&W.bbox?(W.bbox.x+=+j,W.bbox.y+=+w):W.dirtyT=1}),z=function(S){var N=S[0];switch(N.toLowerCase()){case"t":return[N,0,0];case"m":return[N,1,0,0,1,0,0];case"r":return S.length==4?[N,0,S[2],S[3]]:[N,0];case"s":return S.length==5?[N,1,1,S[3],S[4]]:S.length==3?[N,1,1]:[N,1]}},Z=c._equaliseTransform=function(S,N){N=k(N).replace(/\.{3}|\u2026/g,S),S=c.parseTransformString(S)||[],N=c.parseTransformString(N)||[];for(var j,w,T,F,B=it(S.length,N.length),H=[],W=[],rt=0;rt<B;rt++){if(T=S[rt]||z(N[rt]),F=N[rt]||z(T),T[0]!=F[0]||T[0].toLowerCase()=="r"&&(T[2]!=F[2]||T[3]!=F[3])||T[0].toLowerCase()=="s"&&(T[3]!=F[3]||T[4]!=F[4]))return;for(H[rt]=[],W[rt]=[],j=0,w=it(T.length,F.length);j<w;j++)j in T&&(H[rt][j]=T[j]),j in F&&(W[rt][j]=F[j])}return{from:H,to:W}};function tt(S,N,j,w,T,F){S!=null?(this.a=+S,this.b=+N,this.c=+j,this.d=+w,this.e=+T,this.f=+F):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}c._getContainer=function(S,N,j,w){var T;if((T=w!=null||c.is(S,"object")?S:g.doc.getElementById(S))!=null)return T.tagName?N==null?{container:T,width:T.style.pixelWidth||T.offsetWidth,height:T.style.pixelHeight||T.offsetHeight}:{container:T,width:N,height:j}:{container:1,x:S,y:N,width:j,height:w}},c.pathToRelative=$s,c._engine={},c.path2curve=Ti,c.matrix=function(S,N,j,w,T,F){return new tt(S,N,j,w,T,F)},function(S){function N(w){return w[0]*w[0]+w[1]*w[1]}function j(w){var T=Y.sqrt(N(w));w[0]&&(w[0]/=T),w[1]&&(w[1]/=T)}S.add=function(w,T,F,B,H,W){var rt,ht,St,gt,pt=[[],[],[]],Et=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],Nt=[[w,F,H],[T,B,W],[0,0,1]];for(w&&w instanceof tt&&(Nt=[[w.a,w.c,w.e],[w.b,w.d,w.f],[0,0,1]]),rt=0;rt<3;rt++)for(ht=0;ht<3;ht++){for(gt=0,St=0;St<3;St++)gt+=Et[rt][St]*Nt[St][ht];pt[rt][ht]=gt}this.a=pt[0][0],this.b=pt[1][0],this.c=pt[0][1],this.d=pt[1][1],this.e=pt[0][2],this.f=pt[1][2]},S.invert=function(){var w=this,T=w.a*w.d-w.b*w.c;return new tt(w.d/T,-w.b/T,-w.c/T,w.a/T,(w.c*w.f-w.d*w.e)/T,(w.b*w.e-w.a*w.f)/T)},S.clone=function(){return new tt(this.a,this.b,this.c,this.d,this.e,this.f)},S.translate=function(w,T){this.add(1,0,0,1,w,T)},S.scale=function(w,T,F,B){T==null&&(T=w),(F||B)&&this.add(1,0,0,1,F,B),this.add(w,0,0,T,0,0),(F||B)&&this.add(1,0,0,1,-F,-B)},S.rotate=function(w,T,F){w=c.rad(w),T=T||0,F=F||0;var B=+Y.cos(w).toFixed(9),H=+Y.sin(w).toFixed(9);this.add(B,H,-H,B,T,F),this.add(1,0,0,1,-T,-F)},S.x=function(w,T){return w*this.a+T*this.c+this.e},S.y=function(w,T){return w*this.b+T*this.d+this.f},S.get=function(w){return+this[k.fromCharCode(97+w)].toFixed(4)},S.toString=function(){return c.svg?"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")":[this.get(0),this.get(2),this.get(1),this.get(3),0,0].join()},S.toFilter=function(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.get(0)+", M12="+this.get(2)+", M21="+this.get(1)+", M22="+this.get(3)+", Dx="+this.get(4)+", Dy="+this.get(5)+", sizingmethod='auto expand')"},S.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},S.split=function(){var w={};w.dx=this.e,w.dy=this.f;var T=[[this.a,this.c],[this.b,this.d]];w.scalex=Y.sqrt(N(T[0])),j(T[0]),w.shear=T[0][0]*T[1][0]+T[0][1]*T[1][1],T[1]=[T[1][0]-T[0][0]*w.shear,T[1][1]-T[0][1]*w.shear],w.scaley=Y.sqrt(N(T[1])),j(T[1]),w.shear/=w.scaley;var F=-T[0][1],B=T[1][1];return B<0?(w.rotate=c.deg(Y.acos(B)),F<0&&(w.rotate=360-w.rotate)):w.rotate=c.deg(Y.asin(F)),w.isSimple=!(+w.shear.toFixed(9)||w.scalex.toFixed(9)!=w.scaley.toFixed(9)&&w.rotate),w.isSuperSimple=!+w.shear.toFixed(9)&&w.scalex.toFixed(9)==w.scaley.toFixed(9)&&!w.rotate,w.noRotation=!+w.shear.toFixed(9)&&!w.rotate,w},S.toTransformString=function(w){var T=w||this[D]();return T.isSimple?(T.scalex=+T.scalex.toFixed(4),T.scaley=+T.scaley.toFixed(4),T.rotate=+T.rotate.toFixed(4),(T.dx||T.dy?"t"+[T.dx,T.dy]:A)+(T.scalex!=1||T.scaley!=1?"s"+[T.scalex,T.scaley,0,0]:A)+(T.rotate?"r"+[T.rotate,0,0]:A)):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}}(tt.prototype);for(var Ot=function(){this.returnValue=!1},Tt=function(){return this.originalEvent.preventDefault()},Ht=function(){this.cancelBubble=!0},ve=function(){return this.originalEvent.stopPropagation()},te=function(S){var N=g.doc.documentElement.scrollTop||g.doc.body.scrollTop,j=g.doc.documentElement.scrollLeft||g.doc.body.scrollLeft;return{x:S.clientX+j,y:S.clientY+N}},zt=g.doc.addEventListener?function(S,N,j,w){var T=function(B){var H=te(B);return j.call(w,B,H.x,H.y)};if(S.addEventListener(N,T,!1),x&&U[N]){var F=function(B){for(var H=te(B),W=B,rt=0,ht=B.targetTouches&&B.targetTouches.length;rt<ht;rt++)if(B.targetTouches[rt].target==S){(B=B.targetTouches[rt]).originalEvent=W,B.preventDefault=Tt,B.stopPropagation=ve;break}return j.call(w,B,H.x,H.y)};S.addEventListener(U[N],F,!1)}return function(){return S.removeEventListener(N,T,!1),x&&U[N]&&S.removeEventListener(U[N],F,!1),!0}}:g.doc.attachEvent?function(S,N,j,w){var T=function(F){F=F||g.win.event;var B=g.doc.documentElement.scrollTop||g.doc.body.scrollTop,H=g.doc.documentElement.scrollLeft||g.doc.body.scrollLeft,W=F.clientX+H,rt=F.clientY+B;return F.preventDefault=F.preventDefault||Ot,F.stopPropagation=F.stopPropagation||Ht,j.call(w,F,W,rt)};return S.attachEvent("on"+N,T),function(){return S.detachEvent("on"+N,T),!0}}:void 0,qt=[],le=function(S){for(var N,j=S.clientX,w=S.clientY,T=g.doc.documentElement.scrollTop||g.doc.body.scrollTop,F=g.doc.documentElement.scrollLeft||g.doc.body.scrollLeft,B=qt.length;B--;){if(N=qt[B],x&&S.touches){for(var H,W=S.touches.length;W--;)if((H=S.touches[W]).identifier==N.el._drag.id){j=H.clientX,w=H.clientY,(S.originalEvent?S.originalEvent:S).preventDefault();break}}else S.preventDefault();var rt,ht=N.el.node,St=ht.nextSibling,gt=ht.parentNode,pt=ht.style.display;g.win.opera&>.removeChild(ht),ht.style.display="none",rt=N.el.paper.getElementByPoint(j,w),ht.style.display=pt,g.win.opera&&(St?gt.insertBefore(ht,St):gt.appendChild(ht)),rt&&a("raphael.drag.over."+N.el.id,N.el,rt),j+=F,w+=T,a("raphael.drag.move."+N.el.id,N.move_scope||N.el,j-N.el._drag.x,w-N.el._drag.y,j,w,S)}},jt=function(S){c.unmousemove(le).unmouseup(jt);for(var N,j=qt.length;j--;)(N=qt[j]).el._drag={},a("raphael.drag.end."+N.el.id,N.end_scope||N.start_scope||N.move_scope||N.el,S);qt=[]},Gt=c.el={},ie=V.length;ie--;)(function(S){c[S]=Gt[S]=function(N,j){return c.is(N,"function")&&(this.events=this.events||[],this.events.push({name:S,f:N,unbind:zt(this.shape||this.node||g.doc,S,N,j||this)})),this},c["un"+S]=Gt["un"+S]=function(N){for(var j=this.events||[],w=j.length;w--;)j[w].name!=S||!c.is(N,"undefined")&&j[w].f!=N||(j[w].unbind(),j.splice(w,1),!j.length&&delete this.events);return this}})(V[ie]);Gt.data=function(S,N){var j=ot[this.id]=ot[this.id]||{};if(arguments.length==0)return j;if(arguments.length==1){if(c.is(S,"object")){for(var w in S)S[p](w)&&this.data(w,S[w]);return this}return a("raphael.data.get."+this.id,this,j[S],S),j[S]}return j[S]=N,a("raphael.data.set."+this.id,this,N,S),this},Gt.removeData=function(S){return S==null?delete ot[this.id]:ot[this.id]&&delete ot[this.id][S],this},Gt.getData=function(){return Vt(ot[this.id]||{})},Gt.hover=function(S,N,j,w){return this.mouseover(S,j).mouseout(N,w||j)},Gt.unhover=function(S,N){return this.unmouseover(S).unmouseout(N)};var Ue=[];Gt.drag=function(S,N,j,w,T,F){function B(H){(H.originalEvent||H).preventDefault();var W=H.clientX,rt=H.clientY,ht=g.doc.documentElement.scrollTop||g.doc.body.scrollTop,St=g.doc.documentElement.scrollLeft||g.doc.body.scrollLeft;if(this._drag.id=H.identifier,x&&H.touches){for(var gt,pt=H.touches.length;pt--;)if(gt=H.touches[pt],this._drag.id=gt.identifier,gt.identifier==this._drag.id){W=gt.clientX,rt=gt.clientY;break}}this._drag.x=W+St,this._drag.y=rt+ht,!qt.length&&c.mousemove(le).mouseup(jt),qt.push({el:this,move_scope:w,start_scope:T,end_scope:F}),N&&a.on("raphael.drag.start."+this.id,N),S&&a.on("raphael.drag.move."+this.id,S),j&&a.on("raphael.drag.end."+this.id,j),a("raphael.drag.start."+this.id,T||w||this,this._drag.x,this._drag.y,H)}return this._drag={},Ue.push({el:this,start:B}),this.mousedown(B),this},Gt.onDragOver=function(S){S?a.on("raphael.drag.over."+this.id,S):a.unbind("raphael.drag.over."+this.id)},Gt.undrag=function(){for(var S=Ue.length;S--;)Ue[S].el==this&&(this.unmousedown(Ue[S].start),Ue.splice(S,1),a.unbind("raphael.drag.*."+this.id));!Ue.length&&c.unmousemove(le).unmouseup(jt),qt=[]},u.circle=function(S,N,j){var w=c._engine.circle(this,S||0,N||0,j||0);return this.__set__&&this.__set__.push(w),w},u.rect=function(S,N,j,w,T){var F=c._engine.rect(this,S||0,N||0,j||0,w||0,T||0);return this.__set__&&this.__set__.push(F),F},u.ellipse=function(S,N,j,w){var T=c._engine.ellipse(this,S||0,N||0,j||0,w||0);return this.__set__&&this.__set__.push(T),T},u.path=function(S){S&&!c.is(S,"string")&&!c.is(S[0],at)&&(S+=A);var N=c._engine.path(c.format[y](c,arguments),this);return this.__set__&&this.__set__.push(N),N},u.image=function(S,N,j,w,T){var F=c._engine.image(this,S||"about:blank",N||0,j||0,w||0,T||0);return this.__set__&&this.__set__.push(F),F},u.text=function(S,N,j){var w=c._engine.text(this,S||0,N||0,k(j));return this.__set__&&this.__set__.push(w),w},u.set=function(S){!c.is(S,"array")&&(S=Array.prototype.splice.call(arguments,0,arguments.length));var N=new Oa(S);return this.__set__&&this.__set__.push(N),N.paper=this,N.type="set",N},u.setStart=function(S){this.__set__=S||this.set()},u.setFinish=function(S){var N=this.__set__;return delete this.__set__,N},u.getSize=function(){var S=this.canvas.parentNode;return{width:S.offsetWidth,height:S.offsetHeight}},u.setSize=function(S,N){return c._engine.setSize.call(this,S,N)},u.setViewBox=function(S,N,j,w,T){return c._engine.setViewBox.call(this,S,N,j,w,T)},u.top=u.bottom=null,u.raphael=c;function Ar(){return this.x+E+this.y+E+this.width+" × "+this.height}u.getElementByPoint=function(S,N){var j,w,T,F,B,H,W,rt=this.canvas,ht=g.doc.elementFromPoint(S,N);if(g.win.opera&&ht.tagName=="svg"){var St=(w=(j=rt).getBoundingClientRect(),T=j.ownerDocument,F=T.body,B=T.documentElement,H=B.clientTop||F.clientTop||0,W=B.clientLeft||F.clientLeft||0,{y:w.top+(g.win.pageYOffset||B.scrollTop||F.scrollTop)-H,x:w.left+(g.win.pageXOffset||B.scrollLeft||F.scrollLeft)-W}),gt=rt.createSVGRect();gt.x=S-St.x,gt.y=N-St.y,gt.width=gt.height=1;var pt=rt.getIntersectionList(gt,null);pt.length&&(ht=pt[pt.length-1])}if(!ht)return null;for(;ht.parentNode&&ht!=rt.parentNode&&!ht.raphael;)ht=ht.parentNode;return ht==this.canvas.parentNode&&(ht=rt),ht=ht&&ht.raphael?this.getById(ht.raphaelid):null},u.getElementsByBBox=function(S){var N=this.set();return this.forEach(function(j){c.isBBoxIntersect(j.getBBox(),S)&&N.push(j)}),N},u.getById=function(S){for(var N=this.bottom;N;){if(N.id==S)return N;N=N.next}return null},u.forEach=function(S,N){for(var j=this.bottom;j;){if(S.call(N,j)===!1)return this;j=j.next}return this},u.getElementsByPoint=function(S,N){var j=this.set();return this.forEach(function(w){w.isPointInside(S,N)&&j.push(w)}),j},Gt.isPointInside=function(S,N){var j=this.realPath=vt[this.type](this);return this.attr("transform")&&this.attr("transform").length&&(j=c.transformPath(j,this.attr("transform"))),c.isPointInsidePath(j,S,N)},Gt.getBBox=function(S){if(this.removed)return{};var N=this._;return S?(!N.dirty&&N.bboxwt||(this.realPath=vt[this.type](this),N.bboxwt=dn(this.realPath),N.bboxwt.toString=Ar,N.dirty=0),N.bboxwt):((N.dirty||N.dirtyT||!N.bbox)&&(!N.dirty&&this.realPath||(N.bboxwt=0,this.realPath=vt[this.type](this)),N.bbox=dn(bt(this.realPath,this.matrix)),N.bbox.toString=Ar,N.dirty=N.dirtyT=0),N.bbox)},Gt.clone=function(){if(this.removed)return null;var S=this.paper[this.type]().attr(this.attr());return this.__set__&&this.__set__.push(S),S},Gt.glow=function(S){if(this.type=="text")return null;var N={width:((S=S||{}).width||10)+(+this.attr("stroke-width")||1),fill:S.fill||!1,opacity:S.opacity==null?.5:S.opacity,offsetx:S.offsetx||0,offsety:S.offsety||0,color:S.color||"#000"},j=N.width/2,w=this.paper,T=w.set(),F=this.realPath||vt[this.type](this);F=this.matrix?bt(F,this.matrix):F;for(var B=1;B<j+1;B++)T.push(w.path(F).attr({stroke:N.color,fill:N.fill?N.color:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(N.width/j*B).toFixed(3),opacity:+(N.opacity/j).toFixed(3)}));return T.insertBefore(this).translate(N.offsetx,N.offsety)};var Ee=function(S,N,j,w,T,F,B,H,W){return W==null?Lr(S,N,j,w,T,F,B,H):c.findDotsAtSegment(S,N,j,w,T,F,B,H,function(rt,ht,St,gt,pt,Et,Nt,Ct,wt){if(!(wt<0||Lr(rt,ht,St,gt,pt,Et,Nt,Ct)<wt)){var Bt,At=.5,Ft=1-At;for(Bt=Lr(rt,ht,St,gt,pt,Et,Nt,Ct,Ft);ft(Bt-wt)>.01;)Bt=Lr(rt,ht,St,gt,pt,Et,Nt,Ct,Ft+=(Bt<wt?1:-1)*(At/=2));return Ft}}(S,N,j,w,T,F,B,H,W))},Je=function(S,N){return function(j,w,T){for(var F,B,H,W,rt,ht="",St={},gt=0,pt=0,Et=(j=Ti(j)).length;pt<Et;pt++){if((H=j[pt])[0]=="M")F=+H[1],B=+H[2];else{if(gt+(W=Ee(F,B,H[1],H[2],H[3],H[4],H[5],H[6]))>w){if(N&&!St.start){if(ht+=["C"+(rt=Ee(F,B,H[1],H[2],H[3],H[4],H[5],H[6],w-gt)).start.x,rt.start.y,rt.m.x,rt.m.y,rt.x,rt.y],T)return ht;St.start=ht,ht=["M"+rt.x,rt.y+"C"+rt.n.x,rt.n.y,rt.end.x,rt.end.y,H[5],H[6]].join(),gt+=W,F=+H[5],B=+H[6];continue}if(!S&&!N)return{x:(rt=Ee(F,B,H[1],H[2],H[3],H[4],H[5],H[6],w-gt)).x,y:rt.y,alpha:rt.alpha}}gt+=W,F=+H[5],B=+H[6]}ht+=H.shift()+H}return St.end=ht,(rt=S?gt:N?St:c.findDotsAtSegment(F,B,H[0],H[1],H[2],H[3],H[4],H[5],1)).alpha&&(rt={x:rt.x,y:rt.y,alpha:rt.alpha}),rt}},ar=Je(1),ir=Je(),Fe=Je(0,1);c.getTotalLength=ar,c.getPointAtLength=ir,c.getSubpath=function(S,N,j){if(this.getTotalLength(S)-j<1e-6)return Fe(S,N).end;var w=Fe(S,j,1);return N?Fe(w,N).end:w},Gt.getTotalLength=function(){var S=this.getPath();if(S)return this.node.getTotalLength?this.node.getTotalLength():ar(S)},Gt.getPointAtLength=function(S){var N=this.getPath();if(N)return ir(N,S)},Gt.getPath=function(){var S,N=c._getPath[this.type];if(this.type!="text"&&this.type!="set")return N&&(S=N(this)),S},Gt.getSubpath=function(S,N){var j=this.getPath();if(j)return c.getSubpath(j,S,N)};var xe=c.easing_formulas={linear:function(S){return S},"<":function(S){return xt(S,1.7)},">":function(S){return xt(S,.48)},"<>":function(S){var N=.48-S/1.04,j=Y.sqrt(.1734+N*N),w=j-N,T=-j-N,F=xt(ft(w),1/3)*(w<0?-1:1)+xt(ft(T),1/3)*(T<0?-1:1)+.5;return 3*(1-F)*F*F+F*F*F},backIn:function(S){var N=1.70158;return S*S*((N+1)*S-N)},backOut:function(S){var N=1.70158;return(S-=1)*S*((N+1)*S+N)+1},elastic:function(S){return S==!!S?S:xt(2,-10*S)*Y.sin(2*_t*(S-.075)/.3)+1},bounce:function(S){var N=7.5625,j=2.75;return S<1/j?N*S*S:S<2/j?N*(S-=1.5/j)*S+.75:S<2.5/j?N*(S-=2.25/j)*S+.9375:N*(S-=2.625/j)*S+.984375}};xe.easeIn=xe["ease-in"]=xe["<"],xe.easeOut=xe["ease-out"]=xe[">"],xe.easeInOut=xe["ease-in-out"]=xe["<>"],xe["back-in"]=xe.backIn,xe["back-out"]=xe.backOut;var Zt=[],lr=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(S){setTimeout(S,16)},fn=function(){for(var S=+new Date,N=0;N<Zt.length;N++){var j=Zt[N];if(!j.el.removed&&!j.paused){var w,T,F=S-j.start,B=j.ms,H=j.easing,W=j.from,rt=j.diff,ht=j.to,St=(j.t,j.el),gt={},pt={};if(j.initstatus?(F=(j.initstatus*j.anim.top-j.prev)/(j.percent-j.prev)*B,j.status=j.initstatus,delete j.initstatus,j.stop&&Zt.splice(N--,1)):j.status=(j.prev+(j.percent-j.prev)*(F/B))/j.anim.top,!(F<0))if(F<B){var Et=H(F/B);for(var Nt in W)if(W[p](Nt)){switch(q[Nt]){case yt:w=+W[Nt]+Et*B*rt[Nt];break;case"colour":w="rgb("+[Dn(_(W[Nt].r+Et*B*rt[Nt].r)),Dn(_(W[Nt].g+Et*B*rt[Nt].g)),Dn(_(W[Nt].b+Et*B*rt[Nt].b))].join(",")+")";break;case"path":w=[];for(var Ct=0,wt=W[Nt].length;Ct<wt;Ct++){w[Ct]=[W[Nt][Ct][0]];for(var Bt=1,At=W[Nt][Ct].length;Bt<At;Bt++)w[Ct][Bt]=+W[Nt][Ct][Bt]+Et*B*rt[Nt][Ct][Bt];w[Ct]=w[Ct].join(E)}w=w.join(E);break;case"transform":if(rt[Nt].real)for(w=[],Ct=0,wt=W[Nt].length;Ct<wt;Ct++)for(w[Ct]=[W[Nt][Ct][0]],Bt=1,At=W[Nt][Ct].length;Bt<At;Bt++)w[Ct][Bt]=W[Nt][Ct][Bt]+Et*B*rt[Nt][Ct][Bt];else{var Ft=function(_e){return+W[Nt][_e]+Et*B*rt[Nt][_e]};w=[["m",Ft(0),Ft(1),Ft(2),Ft(3),Ft(4),Ft(5)]]}break;case"csv":if(Nt=="clip-rect")for(w=[],Ct=4;Ct--;)w[Ct]=+W[Nt][Ct]+Et*B*rt[Nt][Ct];break;default:var Dt=[][m](W[Nt]);for(w=[],Ct=St.paper.customAttributes[Nt].length;Ct--;)w[Ct]=+Dt[Ct]+Et*B*rt[Nt][Ct]}gt[Nt]=w}St.attr(gt),function(_e,he,be){setTimeout(function(){a("raphael.anim.frame."+_e,he,be)})}(St.id,St,j.anim)}else{if(function(_e,he,be){setTimeout(function(){a("raphael.anim.frame."+he.id,he,be),a("raphael.anim.finish."+he.id,he,be),c.is(_e,"function")&&_e.call(he)})}(j.callback,St,j.anim),St.attr(ht),Zt.splice(N--,1),j.repeat>1&&!j.next){for(T in ht)ht[p](T)&&(pt[T]=j.totalOrigin[T]);j.el.attr(pt),Br(j.anim,j.el,j.anim.percents[0],null,j.totalOrigin,j.repeat-1)}j.next&&!j.stop&&Br(j.anim,j.el,j.next,null,j.totalOrigin,j.repeat)}}}Zt.length&&lr(fn)},Dn=function(S){return S>255?255:S<0?0:S};function br(S,N,j,w,T,F){var B=3*N,H=3*(w-N)-B,W=1-B-H,rt=3*j,ht=3*(T-j)-rt,St=1-rt-ht;function gt(pt){return((W*pt+H)*pt+B)*pt}return function(pt,Et){var Nt=function(Ct,wt){var Bt,At,Ft,Dt,_e,he;for(Ft=Ct,he=0;he<8;he++){if(Dt=gt(Ft)-Ct,ft(Dt)<wt)return Ft;if(ft(_e=(3*W*Ft+2*H)*Ft+B)<1e-6)break;Ft-=Dt/_e}if(At=1,(Ft=Ct)<(Bt=0))return Bt;if(Ft>At)return At;for(;Bt<At;){if(Dt=gt(Ft),ft(Dt-Ct)<wt)return Ft;Ct>Dt?Bt=Ft:At=Ft,Ft=(At-Bt)/2+Bt}return Ft}(pt,Et);return((St*Nt+ht)*Nt+rt)*Nt}(S,1/(200*F))}function yr(S,N){var j=[],w={};if(this.ms=N,this.times=1,S){for(var T in S)S[p](T)&&(w[P(T)]=S[T],j.push(P(T)));j.sort(lt)}this.anim=w,this.top=j[j.length-1],this.percents=j}function Br(S,N,j,w,T,F){j=P(j);var B,H,W,rt,ht,St,gt=S.ms,pt={},Et={},Nt={};if(w)for(wt=0,Bt=Zt.length;wt<Bt;wt++){var Ct=Zt[wt];if(Ct.el.id==N.id&&Ct.anim==S){Ct.percent!=j?(Zt.splice(wt,1),W=1):H=Ct,N.attr(Ct.totalOrigin);break}}else w=+Et;for(var wt=0,Bt=S.percents.length;wt<Bt;wt++){if(S.percents[wt]==j||S.percents[wt]>w*S.top){j=S.percents[wt],ht=S.percents[wt-1]||0,gt=gt/S.top*(j-ht),rt=S.percents[wt+1],B=S.anim[j];break}w&&N.attr(S.anim[S.percents[wt]])}if(B){if(H)H.initstatus=w,H.start=new Date-H.ms*w;else{for(var At in B)if(B[p](At)&&(q[p](At)||N.paper.customAttributes[p](At)))switch(pt[At]=N.attr(At),pt[At]==null&&(pt[At]=G[At]),Et[At]=B[At],q[At]){case yt:Nt[At]=(Et[At]-pt[At])/gt;break;case"colour":pt[At]=c.getRGB(pt[At]);var Ft=c.getRGB(Et[At]);Nt[At]={r:(Ft.r-pt[At].r)/gt,g:(Ft.g-pt[At].g)/gt,b:(Ft.b-pt[At].b)/gt};break;case"path":var Dt=Ti(pt[At],Et[At]),_e=Dt[1];for(pt[At]=Dt[0],Nt[At]=[],wt=0,Bt=pt[At].length;wt<Bt;wt++){Nt[At][wt]=[0];for(var he=1,be=pt[At][wt].length;he<be;he++)Nt[At][wt][he]=(_e[wt][he]-pt[At][wt][he])/gt}break;case"transform":var _l=N._,nh=Z(_l[At],Et[At]);if(nh)for(pt[At]=nh.from,Et[At]=nh.to,Nt[At]=[],Nt[At].real=!0,wt=0,Bt=pt[At].length;wt<Bt;wt++)for(Nt[At][wt]=[pt[At][wt][0]],he=1,be=pt[At][wt].length;he<be;he++)Nt[At][wt][he]=(Et[At][wt][he]-pt[At][wt][he])/gt;else{var Rn=N.matrix||new tt,Ji={_:{transform:_l.transform},getBBox:function(){return N.getBBox(1)}};pt[At]=[Rn.a,Rn.b,Rn.c,Rn.d,Rn.e,Rn.f],L(Ji,Et[At]),Et[At]=Ji._.transform,Nt[At]=[(Ji.matrix.a-Rn.a)/gt,(Ji.matrix.b-Rn.b)/gt,(Ji.matrix.c-Rn.c)/gt,(Ji.matrix.d-Rn.d)/gt,(Ji.matrix.e-Rn.e)/gt,(Ji.matrix.f-Rn.f)/gt]}break;case"csv":var bl=k(B[At])[D](h),wl=k(pt[At])[D](h);if(At=="clip-rect")for(pt[At]=wl,Nt[At]=[],wt=wl.length;wt--;)Nt[At][wt]=(bl[wt]-pt[At][wt])/gt;Et[At]=bl;break;default:for(bl=[][m](B[At]),wl=[][m](pt[At]),Nt[At]=[],wt=N.paper.customAttributes[At].length;wt--;)Nt[At][wt]=((bl[wt]||0)-(wl[wt]||0))/gt}var Zf=B.easing,Fo=c.easing_formulas[Zf];if(!Fo)if((Fo=k(Zf).match($))&&Fo.length==5){var Aa=Fo;Fo=function(tp){return br(tp,+Aa[1],+Aa[2],+Aa[3],+Aa[4],gt)}}else Fo=ct;if(Ct={anim:S,percent:j,timestamp:St=B.start||S.start||+new Date,start:St+(S.del||0),status:0,initstatus:w||0,stop:!1,ms:gt,easing:Fo,from:pt,diff:Nt,to:Et,el:N,callback:B.callback,prev:ht,next:rt,repeat:F||S.times,origin:N.attr(),totalOrigin:T},Zt.push(Ct),w&&!H&&!W&&(Ct.stop=!0,Ct.start=new Date-gt*w,Zt.length==1))return fn();W&&(Ct.start=new Date-Ct.ms*w),Zt.length==1&&lr(fn)}a("raphael.anim.start."+N.id,N,S)}}function si(S){for(var N=0;N<Zt.length;N++)Zt[N].el.paper==S&&Zt.splice(N--,1)}Gt.animateWith=function(S,N,j,w,T,F){if(this.removed)return F&&F.call(this),this;var B=j instanceof yr?j:c.animation(j,w,T,F);Br(B,this,B.percents[0],null,this.attr());for(var H=0,W=Zt.length;H<W;H++)if(Zt[H].anim==N&&Zt[H].el==S){Zt[W-1].start=Zt[H].start;break}return this},Gt.onAnimation=function(S){return S?a.on("raphael.anim.frame."+this.id,S):a.unbind("raphael.anim.frame."+this.id),this},yr.prototype.delay=function(S){var N=new yr(this.anim,this.ms);return N.times=this.times,N.del=+S||0,N},yr.prototype.repeat=function(S){var N=new yr(this.anim,this.ms);return N.del=this.del,N.times=Y.floor(it(S,0))||1,N},c.animation=function(S,N,j,w){if(S instanceof yr)return S;!c.is(j,"function")&&j||(w=w||j||null,j=null),S=Object(S),N=+N||0;var T,F,B={};for(F in S)S[p](F)&&P(F)!=F&&P(F)+"%"!=F&&(T=!0,B[F]=S[F]);if(T)return j&&(B.easing=j),w&&(B.callback=w),new yr({100:B},N);if(w){var H=0;for(var W in S){var rt=M(W);S[p](W)&&rt>H&&(H=rt)}!S[H+="%"].callback&&(S[H].callback=w)}return new yr(S,N)},Gt.animate=function(S,N,j,w){if(this.removed)return w&&w.call(this),this;var T=S instanceof yr?S:c.animation(S,N,j,w);return Br(T,this,T.percents[0],null,this.attr()),this},Gt.setTime=function(S,N){return S&&N!=null&&this.status(S,nt(N,S.ms)/S.ms),this},Gt.status=function(S,N){var j,w,T=[],F=0;if(N!=null)return Br(S,this,-1,nt(N,1)),this;for(j=Zt.length;F<j;F++)if((w=Zt[F]).el.id==this.id&&(!S||w.anim==S)){if(S)return w.status;T.push({anim:w.anim,status:w.status})}return S?0:T},Gt.pause=function(S){for(var N=0;N<Zt.length;N++)Zt[N].el.id!=this.id||S&&Zt[N].anim!=S||a("raphael.anim.pause."+this.id,this,Zt[N].anim)!==!1&&(Zt[N].paused=!0);return this},Gt.resume=function(S){for(var N=0;N<Zt.length;N++)if(Zt[N].el.id==this.id&&(!S||Zt[N].anim==S)){var j=Zt[N];a("raphael.anim.resume."+this.id,this,j.anim)!==!1&&(delete j.paused,this.status(j.anim,j.status))}return this},Gt.stop=function(S){for(var N=0;N<Zt.length;N++)Zt[N].el.id!=this.id||S&&Zt[N].anim!=S||a("raphael.anim.stop."+this.id,this,Zt[N].anim)!==!1&&Zt.splice(N--,1);return this},a.on("raphael.remove",si),a.on("raphael.clear",si),Gt.toString=function(){return"Raphaël’s object"};var ai,Zr,li,ci,Oa=function(S){if(this.items=[],this.length=0,this.type="set",S)for(var N=0,j=S.length;N<j;N++)!S[N]||S[N].constructor!=Gt.constructor&&S[N].constructor!=Oa||(this[this.items.length]=this.items[this.items.length]=S[N],this.length++)},Hr=Oa.prototype;for(var Na in Hr.push=function(){for(var S,N,j=0,w=arguments.length;j<w;j++)!(S=arguments[j])||S.constructor!=Gt.constructor&&S.constructor!=Oa||(this[N=this.items.length]=this.items[N]=S,this.length++);return this},Hr.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},Hr.forEach=function(S,N){for(var j=0,w=this.items.length;j<w;j++)if(S.call(N,this.items[j],j)===!1)return this;return this},Gt)Gt[p](Na)&&(Hr[Na]=function(S){return function(){var N=arguments;return this.forEach(function(j){j[S][y](j,N)})}}(Na));return Hr.attr=function(S,N){if(S&&c.is(S,at)&&c.is(S[0],"object"))for(var j=0,w=S.length;j<w;j++)this.items[j].attr(S[j]);else for(var T=0,F=this.items.length;T<F;T++)this.items[T].attr(S,N);return this},Hr.clear=function(){for(;this.length;)this.pop()},Hr.splice=function(S,N,j){S=S<0?it(this.length+S,0):S,N=it(0,nt(this.length-S,N));var w,T=[],F=[],B=[];for(w=2;w<arguments.length;w++)B.push(arguments[w]);for(w=0;w<N;w++)F.push(this[S+w]);for(;w<this.length-S;w++)T.push(this[S+w]);var H=B.length;for(w=0;w<H+T.length;w++)this.items[S+w]=this[S+w]=w<H?B[w]:T[w-H];for(w=this.items.length=this.length-=N-H;this[w];)delete this[w++];return new Oa(F)},Hr.exclude=function(S){for(var N=0,j=this.length;N<j;N++)if(this[N]==S)return this.splice(N,1),!0},Hr.animate=function(S,N,j,w){(c.is(j,"function")||!j)&&(w=j||null);var T,F,B=this.items.length,H=B,W=this;if(!B)return this;w&&(F=function(){!--B&&w.call(W)}),j=c.is(j,"string")?j:F;var rt=c.animation(S,N,j,F);for(T=this.items[--H].animate(rt);H--;)this.items[H]&&!this.items[H].removed&&this.items[H].animateWith(T,rt,rt),this.items[H]&&!this.items[H].removed||B--;return this},Hr.insertAfter=function(S){for(var N=this.items.length;N--;)this.items[N].insertAfter(S);return this},Hr.getBBox=function(){for(var S=[],N=[],j=[],w=[],T=this.items.length;T--;)if(!this.items[T].removed){var F=this.items[T].getBBox();S.push(F.x),N.push(F.y),j.push(F.x+F.width),w.push(F.y+F.height)}return{x:S=nt[y](0,S),y:N=nt[y](0,N),x2:j=it[y](0,j),y2:w=it[y](0,w),width:j-S,height:w-N}},Hr.clone=function(S){S=this.paper.set();for(var N=0,j=this.items.length;N<j;N++)S.push(this.items[N].clone());return S},Hr.toString=function(){return"Raphaël‘s set"},Hr.glow=function(S){var N=this.paper.set();return this.forEach(function(j,w){var T=j.glow(S);T?.forEach(function(F,B){N.push(F)})}),N},Hr.isPointInside=function(S,N){var j=!1;return this.forEach(function(w){if(w.isPointInside(S,N))return j=!0,!1}),j},c.registerFont=function(S){if(!S.face)return S;this.fonts=this.fonts||{};var N={w:S.w,face:{},glyphs:{}},j=S.face["font-family"];for(var w in S.face)S.face[p](w)&&(N.face[w]=S.face[w]);if(this.fonts[j]?this.fonts[j].push(N):this.fonts[j]=[N],!S.svg){for(var T in N.face["units-per-em"]=M(S.face["units-per-em"],10),S.glyphs)if(S.glyphs[p](T)){var F=S.glyphs[T];if(N.glyphs[T]={w:F.w,k:{},d:F.d&&"M"+F.d.replace(/[mlcxtrv]/g,function(H){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[H]||"M"})+"z"},F.k)for(var B in F.k)F[p](B)&&(N.glyphs[T].k[B]=F.k[B])}}return S},u.getFont=function(S,N,j,w){if(w=w||"normal",j=j||"normal",N=+N||{normal:400,bold:700,lighter:300,bolder:800}[N]||400,c.fonts){var T,F=c.fonts[S];if(!F){var B=new RegExp("(^|\\s)"+S.replace(/[^\w\d\s+!~.:_-]/g,A)+"(\\s|$)","i");for(var H in c.fonts)if(c.fonts[p](H)&&B.test(H)){F=c.fonts[H];break}}if(F)for(var W=0,rt=F.length;W<rt&&((T=F[W]).face["font-weight"]!=N||T.face["font-style"]!=j&&T.face["font-style"]||T.face["font-stretch"]!=w);W++);return T}},u.print=function(S,N,j,w,T,F,B,H){F=F||"middle",B=it(nt(B||0,1),-1),H=it(nt(H||1,3),1);var W,rt=k(j)[D](A),ht=0,St=0,gt=A;if(c.is(w,"string")&&(w=this.getFont(w)),w){W=(T||16)/w.face["units-per-em"];for(var pt=w.face.bbox[D](h),Et=+pt[0],Nt=pt[3]-pt[1],Ct=0,wt=+pt[1]+(F=="baseline"?Nt+ +w.face.descent:Nt/2),Bt=0,At=rt.length;Bt<At;Bt++){if(rt[Bt]==`
|
|
90
|
-
`
|
|
91
|
-
|
|
92
|
-
`),G=[],q=0,et=I.length;q<et;q++)M=k("tspan"),q&&k(M,{dy:1.2*P,x:$.x}),M.appendChild(a._g.doc.createTextNode(I[q])),_.appendChild(M),G[q]=M}else for(q=0,et=(G=_.getElementsByTagName("tspan")).length;q<et;q++)q?k(G[q],{dy:1.2*P,x:$.x}):k(G[0],{dy:0});k(_,{x:$.x,y:$.y}),O._.dirty=1;var st=O._getBBox(),mt=$.y-(st.y+st.height/2);mt&&a.is(mt,"finite")&&k(G[0],{dy:mt})}},xt=function(O){return O.parentNode&&O.parentNode.tagName.toLowerCase()==="a"?O.parentNode:O},_t=function(O,C){this[0]=this.node=O,O.raphael=!0,this.id=("0000"+(Math.random()*Math.pow(36,5)<<0).toString(36)).slice(-5),O.raphaelid=this.id,this.matrix=a.matrix(),this.realPath=null,this.paper=C,this.attrs=this.attrs||{},this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1},!C.bottom&&(C.bottom=this),this.prev=C.top,C.top&&(C.top.next=this),C.top=this,this.next=null},yt=a.el;_t.prototype=yt,yt.constructor=_t,a._engine.path=function(O,C){var $=k("path");C.canvas&&C.canvas.appendChild($);var _=new _t($,C);return _.type="path",nt(_,{fill:"none",stroke:"#000",path:O}),_},yt.rotate=function(O,C,$){if(this.removed)return this;if((O=l(O).split(v)).length-1&&(C=u(O[1]),$=u(O[2])),O=u(O[0]),$==null&&(C=$),C==null||$==null){var _=this.getBBox(1);C=_.x+_.width/2,$=_.y+_.height/2}return this.transform(this._.transform.concat([["r",O,C,$]])),this},yt.scale=function(O,C,$,_){if(this.removed)return this;if((O=l(O).split(v)).length-1&&(C=u(O[1]),$=u(O[2]),_=u(O[3])),O=u(O[0]),C==null&&(C=O),_==null&&($=_),$==null||_==null)var P=this.getBBox(1);return $=$??P.x+P.width/2,_=_??P.y+P.height/2,this.transform(this._.transform.concat([["s",O,C,$,_]])),this},yt.translate=function(O,C){return this.removed?this:((O=l(O).split(v)).length-1&&(C=u(O[1])),O=u(O[0])||0,C=+C||0,this.transform(this._.transform.concat([["t",O,C]])),this)},yt.transform=function(O){var C=this._;if(O==null)return C.transform;if(a._extractTransform(this,O),this.clip&&k(this.clip,{transform:this.matrix.invert()}),this.pattern&&U(this),this.node&&k(this.node,{transform:this.matrix}),C.sx!=1||C.sy!=1){var $=this.attrs[c]("stroke-width")?this.attrs["stroke-width"]:1;this.attr({"stroke-width":$})}return this},yt.hide=function(){return this.removed||(this.node.style.display="none"),this},yt.show=function(){return this.removed||(this.node.style.display=""),this},yt.remove=function(){var O=xt(this.node);if(!this.removed&&O.parentNode){var C=this.paper;for(var $ in C.__set__&&C.__set__.exclude(this),b.unbind("raphael.*.*."+this.id),this.gradient&&C.defs.removeChild(this.gradient),a._tear(this,C),O.parentNode.removeChild(O),this.removeData(),this)this[$]=typeof this[$]=="function"?a._removedFactory($):null;this.removed=!0}},yt._getBBox=function(){if(this.node.style.display=="none"){this.show();var O=!0}var C,$=!1;this.paper.canvas.parentElement?C=this.paper.canvas.parentElement.style:this.paper.canvas.parentNode&&(C=this.paper.canvas.parentNode.style),C&&C.display=="none"&&($=!0,C.display="");var _={};try{_=this.node.getBBox()}catch{_={x:this.node.clientLeft,y:this.node.clientTop,width:this.node.clientWidth,height:this.node.clientHeight}}finally{_=_||{},$&&(C.display="none")}return O&&this.hide(),_},yt.attr=function(O,C){if(this.removed)return this;if(O==null){var $={};for(var _ in this.attrs)this.attrs[c](_)&&($[_]=this.attrs[_]);return $.gradient&&$.fill=="none"&&($.fill=$.gradient)&&delete $.gradient,$.transform=this._.transform,$}if(C==null&&a.is(O,"string")){if(O=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;if(O=="transform")return this._.transform;for(var P=O.split(v),M={},I=0,G=P.length;I<G;I++)(O=P[I])in this.attrs?M[O]=this.attrs[O]:a.is(this.paper.customAttributes[O],"function")?M[O]=this.paper.customAttributes[O].def:M[O]=a._availableAttrs[O];return G-1?M:M[P[0]]}if(C==null&&a.is(O,"array")){for(M={},I=0,G=O.length;I<G;I++)M[O[I]]=this.attr(O[I]);return M}if(C!=null){var q={};q[O]=C}else O!=null&&a.is(O,"object")&&(q=O);for(var et in q)b("raphael.attr."+et+"."+this.id,this,q[et]);for(et in this.paper.customAttributes)if(this.paper.customAttributes[c](et)&&q[c](et)&&a.is(this.paper.customAttributes[et],"function")){var st=this.paper.customAttributes[et].apply(this,[].concat(q[et]));for(var mt in this.attrs[et]=q[et],st)st[c](mt)&&(q[mt]=st[mt])}return nt(this,q),this},yt.toFront=function(){if(this.removed)return this;var O=xt(this.node);O.parentNode.appendChild(O);var C=this.paper;return C.top!=this&&a._tofront(this,C),this},yt.toBack=function(){if(this.removed)return this;var O=xt(this.node),C=O.parentNode;return C.insertBefore(O,C.firstChild),a._toback(this,this.paper),this.paper,this},yt.insertAfter=function(O){if(this.removed||!O)return this;var C=xt(this.node),$=xt(O.node||O[O.length-1].node);return $.nextSibling?$.parentNode.insertBefore(C,$.nextSibling):$.parentNode.appendChild(C),a._insertafter(this,O,this.paper),this},yt.insertBefore=function(O){if(this.removed||!O)return this;var C=xt(this.node),$=xt(O.node||O[0].node);return $.parentNode.insertBefore(C,$),a._insertbefore(this,O,this.paper),this},yt.blur=function(O){var C=this;if(+O!=0){var $=k("filter"),_=k("feGaussianBlur");C.attrs.blur=O,$.id=a.createUUID(),k(_,{stdDeviation:+O||1.5}),$.appendChild(_),C.paper.defs.appendChild($),C._blur=$,k(C.node,{filter:"url(#"+$.id+")"})}else C._blur&&(C._blur.parentNode.removeChild(C._blur),delete C._blur,delete C.attrs.blur),C.node.removeAttribute("filter");return C},a._engine.circle=function(O,C,$,_){var P=k("circle");O.canvas&&O.canvas.appendChild(P);var M=new _t(P,O);return M.attrs={cx:C,cy:$,r:_,fill:"none",stroke:"#000"},M.type="circle",k(P,M.attrs),M},a._engine.rect=function(O,C,$,_,P,M){var I=k("rect");O.canvas&&O.canvas.appendChild(I);var G=new _t(I,O);return G.attrs={x:C,y:$,width:_,height:P,rx:M||0,ry:M||0,fill:"none",stroke:"#000"},G.type="rect",k(I,G.attrs),G},a._engine.ellipse=function(O,C,$,_,P){var M=k("ellipse");O.canvas&&O.canvas.appendChild(M);var I=new _t(M,O);return I.attrs={cx:C,cy:$,rx:_,ry:P,fill:"none",stroke:"#000"},I.type="ellipse",k(M,I.attrs),I},a._engine.image=function(O,C,$,_,P,M){var I=k("image");k(I,{x:$,y:_,width:P,height:M,preserveAspectRatio:"none"}),I.setAttributeNS(x,"href",C),O.canvas&&O.canvas.appendChild(I);var G=new _t(I,O);return G.attrs={x:$,y:_,width:P,height:M,src:C},G.type="image",G},a._engine.text=function(O,C,$,_){var P=k("text");O.canvas&&O.canvas.appendChild(P);var M=new _t(P,O);return M.attrs={x:C,y:$,"text-anchor":"middle",text:_,"font-family":a._availableAttrs["font-family"],"font-size":a._availableAttrs["font-size"],stroke:"none",fill:"#000"},M.type="text",nt(M,M.attrs),M},a._engine.setSize=function(O,C){return this.width=O||this.width,this.height=C||this.height,this.canvas.setAttribute("width",this.width),this.canvas.setAttribute("height",this.height),this._viewBox&&this.setViewBox.apply(this,this._viewBox),this},a._engine.create=function(){var O=a._getContainer.apply(0,arguments),C=O&&O.container;if(!C)throw new Error("SVG container not found.");var $,_=O.x,P=O.y,M=O.width,I=O.height,G=k("svg"),q="overflow:hidden;";return _=_||0,P=P||0,k(G,{height:I=I||342,version:1.1,width:M=M||512,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),C==1?(G.style.cssText=q+"position:absolute;left:"+_+"px;top:"+P+"px",a._g.doc.body.appendChild(G),$=1):(G.style.cssText=q+"position:relative",C.firstChild?C.insertBefore(G,C.firstChild):C.appendChild(G)),(C=new a._Paper).width=M,C.height=I,C.canvas=G,C.clear(),C._left=C._top=0,$&&(C.renderfix=function(){}),C.renderfix(),C},a._engine.setViewBox=function(O,C,$,_,P){b("raphael.setViewBox",this,this._viewBox,[O,C,$,_,P]);var M,I,G=this.getSize(),q=d($/G.width,_/G.height),et=this.top,st=P?"xMidYMid meet":"xMinYMin";for(O==null?(this._vbSize&&(q=1),delete this._vbSize,M="0 0 "+this.width+m+this.height):(this._vbSize=q,M=O+m+C+m+$+m+_),k(this.canvas,{viewBox:M,preserveAspectRatio:st});q&&et;)I="stroke-width"in et.attrs?et.attrs["stroke-width"]:1,et.attr({"stroke-width":I}),et._.dirty=1,et._.dirtyT=1,et=et.prev;return this._viewBox=[O,C,$,_,!!P],this},a.prototype.renderfix=function(){var O,C=this.canvas,$=C.style;try{O=C.getScreenCTM()||C.createSVGMatrix()}catch{O=C.createSVGMatrix()}var _=-O.e%1,P=-O.f%1;(_||P)&&(_&&(this._left=(this._left+_)%1,$.left=this._left+"px"),P&&(this._top=(this._top+P)%1,$.top=this._top+"px"))},a.prototype.clear=function(){a.eve("raphael.clear",this);for(var O=this.canvas;O.firstChild;)O.removeChild(O.firstChild);this.bottom=this.top=null,(this.desc=k("desc")).appendChild(a._g.doc.createTextNode("Created with Raphaël "+a.version)),O.appendChild(this.desc),O.appendChild(this.defs=k("defs"))},a.prototype.remove=function(){for(var O in b("raphael.remove",this),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this)this[O]=typeof this[O]=="function"?a._removedFactory(O):null};var at=a.st;for(var X in yt)yt[c](X)&&!at[c](X)&&(at[X]=function(O){return function(){var C=arguments;return this.forEach(function($){$[O].apply($,C)})}}(X))}}.apply(n,o))===void 0||(r.exports=s)},function(r,n,i){var o,s;o=[i(0)],(s=function(a){if(!a||a.vml){var c="hasOwnProperty",l=String,u=parseFloat,h=Math,f=h.round,d=h.max,p=h.min,g=h.abs,v=/[, ]+/,b=a.eve,y=" ",m="",x={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},A=/([clmz]),?([^clmz]*)/gi,E=/ progid:\S+Blur\([^\)]+\)/g,k=/-?[^,\s-]+/g,D="position:absolute;left:0;top:0;width:1px;height:1px;behavior:url(#default#VML)",V=21600,U={path:1,rect:1,image:1},K={circle:1,ellipse:1},Y=function(C,$,_){var P=a.matrix();return P.rotate(-C,.5,.5),{dx:P.x($,_),dy:P.y($,_)}},it=function(C,$,_,P,M,I){var G=C._,q=C.matrix,et=G.fillpos,st=C.node,mt=st.style,Lt=1,J="",Q=V/$,ot=V/_;if(mt.visibility="hidden",$&&_){if(st.coordsize=g(Q)+y+g(ot),mt.rotation=I*($*_<0?-1:1),I){var lt=Y(I,P,M);P=lt.dx,M=lt.dy}if($<0&&(J+="x"),_<0&&(J+=" y")&&(Lt=-1),mt.flip=J,st.coordorigin=P*-Q+y+M*-ot,et||G.fillsize){var ct=st.getElementsByTagName("fill");ct=ct&&ct[0],st.removeChild(ct),et&&(lt=Y(I,q.x(et[0],et[1]),q.y(et[0],et[1])),ct.position=lt.dx*Lt+y+lt.dy*Lt),G.fillsize&&(ct.size=G.fillsize[0]*g($)+y+G.fillsize[1]*g(_)),st.appendChild(ct)}mt.visibility="visible"}};a.toString=function(){return`Your browser doesn’t support SVG. Falling down to VML.
|
|
93
|
-
You are running Raphaël `+this.version};var nt,ft=function(C,$,_){for(var P=l($).toLowerCase().split("-"),M=_?"end":"start",I=P.length,G="classic",q="medium",et="medium";I--;)switch(P[I]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":G=P[I];break;case"wide":case"narrow":et=P[I];break;case"long":case"short":q=P[I]}var st=C.node.getElementsByTagName("stroke")[0];st[M+"arrow"]=G,st[M+"arrowlength"]=q,st[M+"arrowwidth"]=et},xt=function(C,$){C.attrs=C.attrs||{};var _=C.node,P=C.attrs,M=_.style,I=U[C.type]&&($.x!=P.x||$.y!=P.y||$.width!=P.width||$.height!=P.height||$.cx!=P.cx||$.cy!=P.cy||$.rx!=P.rx||$.ry!=P.ry||$.r!=P.r),G=K[C.type]&&(P.cx!=$.cx||P.cy!=$.cy||P.r!=$.r||P.rx!=$.rx||P.ry!=$.ry),q=C;for(var et in $)$[c](et)&&(P[et]=$[et]);if(I&&(P.path=a._getPath[C.type](C),C._.dirty=1),$.href&&(_.href=$.href),$.title&&(_.title=$.title),$.target&&(_.target=$.target),$.cursor&&(M.cursor=$.cursor),"blur"in $&&C.blur($.blur),($.path&&C.type=="path"||I)&&(_.path=function(sr){var Mr=/[ahqstv]/gi,an=a._pathToAbsolute;if(l(sr).match(Mr)&&(an=a._path2curve),Mr=/[clmz]/g,an==a._pathToAbsolute&&!l(sr).match(Mr)){var ue=l(sr).replace(A,function($s,An,Hn){var Qr=[],ii=An.toLowerCase()=="m",qn=x[An];return Hn.replace(k,function(Sn){ii&&Qr.length==2&&(qn+=Qr+x[An=="m"?"l":"L"],Qr=[]),Qr.push(f(Sn*V))}),qn+Qr});return ue}var dr,Lr,Pi=an(sr);ue=[];for(var Bn=0,ni=Pi.length;Bn<ni;Bn++){dr=Pi[Bn],(Lr=Pi[Bn][0].toLowerCase())=="z"&&(Lr="x");for(var dn=1,Xe=dr.length;dn<Xe;dn++)Lr+=f(dr[dn]*V)+(dn!=Xe-1?",":m);ue.push(Lr)}return ue.join(y)}(~l(P.path).toLowerCase().indexOf("r")?a._pathToAbsolute(P.path):P.path),C._.dirty=1,C.type=="image"&&(C._.fillpos=[P.x,P.y],C._.fillsize=[P.width,P.height],it(C,1,1,0,0,0))),"transform"in $&&C.transform($.transform),G){var st=+P.cx,mt=+P.cy,Lt=+P.rx||+P.r||0,J=+P.ry||+P.r||0;_.path=a.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",f((st-Lt)*V),f((mt-J)*V),f((st+Lt)*V),f((mt+J)*V),f(st*V)),C._.dirty=1}if("clip-rect"in $){var Q=l($["clip-rect"]).split(v);if(Q.length==4){Q[2]=+Q[2]+ +Q[0],Q[3]=+Q[3]+ +Q[1];var ot=_.clipRect||a._g.doc.createElement("div"),lt=ot.style;lt.clip=a.format("rect({1}px {2}px {3}px {0}px)",Q),_.clipRect||(lt.position="absolute",lt.top=0,lt.left=0,lt.width=C.paper.width+"px",lt.height=C.paper.height+"px",_.parentNode.insertBefore(ot,_),ot.appendChild(_),_.clipRect=ot)}$["clip-rect"]||_.clipRect&&(_.clipRect.style.clip="auto")}if(C.textpath){var ct=C.textpath.style;$.font&&(ct.font=$.font),$["font-family"]&&(ct.fontFamily='"'+$["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,m)+'"'),$["font-size"]&&(ct.fontSize=$["font-size"]),$["font-weight"]&&(ct.fontWeight=$["font-weight"]),$["font-style"]&&(ct.fontStyle=$["font-style"])}if("arrow-start"in $&&ft(q,$["arrow-start"]),"arrow-end"in $&&ft(q,$["arrow-end"],1),$.opacity!=null||$.fill!=null||$.src!=null||$.stroke!=null||$["stroke-width"]!=null||$["stroke-opacity"]!=null||$["fill-opacity"]!=null||$["stroke-dasharray"]!=null||$["stroke-miterlimit"]!=null||$["stroke-linejoin"]!=null||$["stroke-linecap"]!=null){var dt=_.getElementsByTagName("fill");if(!(dt=dt&&dt[0])&&(dt=nt("fill")),C.type=="image"&&$.src&&(dt.src=$.src),$.fill&&(dt.on=!0),dt.on!=null&&$.fill!="none"&&$.fill!==null||(dt.on=!1),dt.on&&$.fill){var $t=l($.fill).match(a._ISURL);if($t){dt.parentNode==_&&_.removeChild(dt),dt.rotate=!0,dt.src=$t[1],dt.type="tile";var vt=C.getBBox(1);dt.position=vt.x+y+vt.y,C._.fillpos=[vt.x,vt.y],a._preload($t[1],function(){C._.fillsize=[this.offsetWidth,this.offsetHeight]})}else dt.color=a.getRGB($.fill).hex,dt.src=m,dt.type="solid",a.getRGB($.fill).error&&(q.type in{circle:1,ellipse:1}||l($.fill).charAt()!="r")&&_t(q,$.fill,dt)&&(P.fill="none",P.gradient=$.fill,dt.rotate=!1)}if("fill-opacity"in $||"opacity"in $){var bt=((+P["fill-opacity"]+1||2)-1)*((+P.opacity+1||2)-1)*((+a.getRGB($.fill).o+1||2)-1);bt=p(d(bt,0),1),dt.opacity=bt,dt.src&&(dt.color="none")}_.appendChild(dt);var ut=_.getElementsByTagName("stroke")&&_.getElementsByTagName("stroke")[0],It=!1;!ut&&(It=ut=nt("stroke")),($.stroke&&$.stroke!="none"||$["stroke-width"]||$["stroke-opacity"]!=null||$["stroke-dasharray"]||$["stroke-miterlimit"]||$["stroke-linejoin"]||$["stroke-linecap"])&&(ut.on=!0),($.stroke=="none"||$.stroke===null||ut.on==null||$.stroke==0||$["stroke-width"]==0)&&(ut.on=!1);var Vt=a.getRGB($.stroke);ut.on&&$.stroke&&(ut.color=Vt.hex),bt=((+P["stroke-opacity"]+1||2)-1)*((+P.opacity+1||2)-1)*((+Vt.o+1||2)-1);var Ut=.75*(u($["stroke-width"])||1);if(bt=p(d(bt,0),1),$["stroke-width"]==null&&(Ut=P["stroke-width"]),$["stroke-width"]&&(ut.weight=Ut),Ut&&Ut<1&&(bt*=Ut)&&(ut.weight=1),ut.opacity=bt,$["stroke-linejoin"]&&(ut.joinstyle=$["stroke-linejoin"]||"miter"),ut.miterlimit=$["stroke-miterlimit"]||8,$["stroke-linecap"]&&(ut.endcap=$["stroke-linecap"]=="butt"?"flat":$["stroke-linecap"]=="square"?"square":"round"),"stroke-dasharray"in $){var Kt={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};ut.dashstyle=Kt[c]($["stroke-dasharray"])?Kt[$["stroke-dasharray"]]:m}It&&_.appendChild(ut)}if(q.type=="text"){q.paper.canvas.style.display=m;var ne=q.paper.span,Yt=P.font&&P.font.match(/\d+(?:\.\d*)?(?=px)/);M=ne.style,P.font&&(M.font=P.font),P["font-family"]&&(M.fontFamily=P["font-family"]),P["font-weight"]&&(M.fontWeight=P["font-weight"]),P["font-style"]&&(M.fontStyle=P["font-style"]),Yt=u(P["font-size"]||Yt&&Yt[0])||10,M.fontSize=100*Yt+"px",q.textpath.string&&(ne.innerHTML=l(q.textpath.string).replace(/</g,"<").replace(/&/g,"&").replace(/\n/g,"<br>"));var fe=ne.getBoundingClientRect();q.W=P.w=(fe.right-fe.left)/100,q.H=P.h=(fe.bottom-fe.top)/100,q.X=P.x,q.Y=P.y+q.H/2,("x"in $||"y"in $)&&(q.path.v=a.format("m{0},{1}l{2},{1}",f(P.x*V),f(P.y*V),f(P.x*V)+1));for(var je=["x","y","text","font","font-family","font-weight","font-style","font-size"],nr=0,gr=je.length;nr<gr;nr++)if(je[nr]in $){q._.dirty=1;break}switch(P["text-anchor"]){case"start":q.textpath.style["v-text-align"]="left",q.bbx=q.W/2;break;case"end":q.textpath.style["v-text-align"]="right",q.bbx=-q.W/2;break;default:q.textpath.style["v-text-align"]="center",q.bbx=0}q.textpath.style["v-text-kern"]=!0}},_t=function(C,$,_){C.attrs=C.attrs||{},C.attrs;var P=Math.pow,M="linear",I=".5 .5";if(C.attrs.gradient=$,$=($=l($).replace(a._radial_gradient,function(Lt,J,Q){return M="radial",J&&Q&&(J=u(J),Q=u(Q),P(J-.5,2)+P(Q-.5,2)>.25&&(Q=h.sqrt(.25-P(J-.5,2))*(2*(Q>.5)-1)+.5),I=J+y+Q),m})).split(/\s*\-\s*/),M=="linear"){var G=$.shift();if(G=-u(G),isNaN(G))return null}var q=a._parseDots($);if(!q)return null;if(C=C.shape||C.node,q.length){C.removeChild(_),_.on=!0,_.method="none",_.color=q[0].color,_.color2=q[q.length-1].color;for(var et=[],st=0,mt=q.length;st<mt;st++)q[st].offset&&et.push(q[st].offset+y+q[st].color);_.colors=et.length?et.join():"0% "+_.color,M=="radial"?(_.type="gradientTitle",_.focus="100%",_.focussize="0 0",_.focusposition=I,_.angle=0):(_.type="gradient",_.angle=(270-G)%360),C.appendChild(_)}return 1},yt=function(C,$){this[0]=this.node=C,C.raphael=!0,this.id=a._oid++,C.raphaelid=this.id,this.X=0,this.Y=0,this.attrs={},this.paper=$,this.matrix=a.matrix(),this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1},!$.bottom&&($.bottom=this),this.prev=$.top,$.top&&($.top.next=this),$.top=this,this.next=null},at=a.el;yt.prototype=at,at.constructor=yt,at.transform=function(C){if(C==null)return this._.transform;var $,_=this.paper._viewBoxShift,P=_?"s"+[_.scale,_.scale]+"-1-1t"+[_.dx,_.dy]:m;_&&($=C=l(C).replace(/\.{3}|\u2026/g,this._.transform||m)),a._extractTransform(this,P+C);var M,I=this.matrix.clone(),G=this.skew,q=this.node,et=~l(this.attrs.fill).indexOf("-"),st=!l(this.attrs.fill).indexOf("url(");if(I.translate(1,1),st||et||this.type=="image")if(G.matrix="1 0 0 1",G.offset="0 0",M=I.split(),et&&M.noRotation||!M.isSimple){q.style.filter=I.toFilter();var mt=this.getBBox(),Lt=this.getBBox(1),J=mt.x-Lt.x,Q=mt.y-Lt.y;q.coordorigin=J*-V+y+Q*-V,it(this,1,1,J,Q,0)}else q.style.filter=m,it(this,M.scalex,M.scaley,M.dx,M.dy,M.rotate);else q.style.filter=m,G.matrix=l(I),G.offset=I.offset();return $!==null&&(this._.transform=$,a._extractTransform(this,$)),this},at.rotate=function(C,$,_){if(this.removed)return this;if(C!=null){if((C=l(C).split(v)).length-1&&($=u(C[1]),_=u(C[2])),C=u(C[0]),_==null&&($=_),$==null||_==null){var P=this.getBBox(1);$=P.x+P.width/2,_=P.y+P.height/2}return this._.dirtyT=1,this.transform(this._.transform.concat([["r",C,$,_]])),this}},at.translate=function(C,$){return this.removed?this:((C=l(C).split(v)).length-1&&($=u(C[1])),C=u(C[0])||0,$=+$||0,this._.bbox&&(this._.bbox.x+=C,this._.bbox.y+=$),this.transform(this._.transform.concat([["t",C,$]])),this)},at.scale=function(C,$,_,P){if(this.removed)return this;if((C=l(C).split(v)).length-1&&($=u(C[1]),_=u(C[2]),P=u(C[3]),isNaN(_)&&(_=null),isNaN(P)&&(P=null)),C=u(C[0]),$==null&&($=C),P==null&&(_=P),_==null||P==null)var M=this.getBBox(1);return _=_??M.x+M.width/2,P=P??M.y+M.height/2,this.transform(this._.transform.concat([["s",C,$,_,P]])),this._.dirtyT=1,this},at.hide=function(){return!this.removed&&(this.node.style.display="none"),this},at.show=function(){return!this.removed&&(this.node.style.display=m),this},at.auxGetBBox=a.el.getBBox,at.getBBox=function(){var C=this.auxGetBBox();if(this.paper&&this.paper._viewBoxShift){var $={},_=1/this.paper._viewBoxShift.scale;return $.x=C.x-this.paper._viewBoxShift.dx,$.x*=_,$.y=C.y-this.paper._viewBoxShift.dy,$.y*=_,$.width=C.width*_,$.height=C.height*_,$.x2=$.x+$.width,$.y2=$.y+$.height,$}return C},at._getBBox=function(){return this.removed?{}:{x:this.X+(this.bbx||0)-this.W/2,y:this.Y-this.H,width:this.W,height:this.H}},at.remove=function(){if(!this.removed&&this.node.parentNode){for(var C in this.paper.__set__&&this.paper.__set__.exclude(this),a.eve.unbind("raphael.*.*."+this.id),a._tear(this,this.paper),this.node.parentNode.removeChild(this.node),this.shape&&this.shape.parentNode.removeChild(this.shape),this)this[C]=typeof this[C]=="function"?a._removedFactory(C):null;this.removed=!0}},at.attr=function(C,$){if(this.removed)return this;if(C==null){var _={};for(var P in this.attrs)this.attrs[c](P)&&(_[P]=this.attrs[P]);return _.gradient&&_.fill=="none"&&(_.fill=_.gradient)&&delete _.gradient,_.transform=this._.transform,_}if($==null&&a.is(C,"string")){if(C=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;for(var M=C.split(v),I={},G=0,q=M.length;G<q;G++)(C=M[G])in this.attrs?I[C]=this.attrs[C]:a.is(this.paper.customAttributes[C],"function")?I[C]=this.paper.customAttributes[C].def:I[C]=a._availableAttrs[C];return q-1?I:I[M[0]]}if(this.attrs&&$==null&&a.is(C,"array")){for(I={},G=0,q=C.length;G<q;G++)I[C[G]]=this.attr(C[G]);return I}var et;for(var st in $!=null&&((et={})[C]=$),$==null&&a.is(C,"object")&&(et=C),et)b("raphael.attr."+st+"."+this.id,this,et[st]);if(et){for(st in this.paper.customAttributes)if(this.paper.customAttributes[c](st)&&et[c](st)&&a.is(this.paper.customAttributes[st],"function")){var mt=this.paper.customAttributes[st].apply(this,[].concat(et[st]));for(var Lt in this.attrs[st]=et[st],mt)mt[c](Lt)&&(et[Lt]=mt[Lt])}et.text&&this.type=="text"&&(this.textpath.string=et.text),xt(this,et)}return this},at.toFront=function(){return!this.removed&&this.node.parentNode.appendChild(this.node),this.paper&&this.paper.top!=this&&a._tofront(this,this.paper),this},at.toBack=function(){return this.removed?this:(this.node.parentNode.firstChild!=this.node&&(this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild),a._toback(this,this.paper)),this)},at.insertAfter=function(C){return this.removed?this:(C.constructor==a.st.constructor&&(C=C[C.length-1]),C.node.nextSibling?C.node.parentNode.insertBefore(this.node,C.node.nextSibling):C.node.parentNode.appendChild(this.node),a._insertafter(this,C,this.paper),this)},at.insertBefore=function(C){return this.removed?this:(C.constructor==a.st.constructor&&(C=C[0]),C.node.parentNode.insertBefore(this.node,C.node),a._insertbefore(this,C,this.paper),this)},at.blur=function(C){var $=this.node.runtimeStyle,_=$.filter;return _=_.replace(E,m),+C!=0?(this.attrs.blur=C,$.filter=_+y+" progid:DXImageTransform.Microsoft.Blur(pixelradius="+(+C||1.5)+")",$.margin=a.format("-{0}px 0 0 -{0}px",f(+C||1.5))):($.filter=_,$.margin=0,delete this.attrs.blur),this},a._engine.path=function(C,$){var _=nt("shape");_.style.cssText=D,_.coordsize=V+y+V,_.coordorigin=$.coordorigin;var P=new yt(_,$),M={fill:"none",stroke:"#000"};C&&(M.path=C),P.type="path",P.path=[],P.Path=m,xt(P,M),$.canvas&&$.canvas.appendChild(_);var I=nt("skew");return I.on=!0,_.appendChild(I),P.skew=I,P.transform(m),P},a._engine.rect=function(C,$,_,P,M,I){var G=a._rectPath($,_,P,M,I),q=C.path(G),et=q.attrs;return q.X=et.x=$,q.Y=et.y=_,q.W=et.width=P,q.H=et.height=M,et.r=I,et.path=G,q.type="rect",q},a._engine.ellipse=function(C,$,_,P,M){var I=C.path();return I.attrs,I.X=$-P,I.Y=_-M,I.W=2*P,I.H=2*M,I.type="ellipse",xt(I,{cx:$,cy:_,rx:P,ry:M}),I},a._engine.circle=function(C,$,_,P){var M=C.path();return M.attrs,M.X=$-P,M.Y=_-P,M.W=M.H=2*P,M.type="circle",xt(M,{cx:$,cy:_,r:P}),M},a._engine.image=function(C,$,_,P,M,I){var G=a._rectPath(_,P,M,I),q=C.path(G).attr({stroke:"none"}),et=q.attrs,st=q.node,mt=st.getElementsByTagName("fill")[0];return et.src=$,q.X=et.x=_,q.Y=et.y=P,q.W=et.width=M,q.H=et.height=I,et.path=G,q.type="image",mt.parentNode==st&&st.removeChild(mt),mt.rotate=!0,mt.src=$,mt.type="tile",q._.fillpos=[_,P],q._.fillsize=[M,I],st.appendChild(mt),it(q,1,1,0,0,0),q},a._engine.text=function(C,$,_,P){var M=nt("shape"),I=nt("path"),G=nt("textpath");$=$||0,_=_||0,P=P||"",I.v=a.format("m{0},{1}l{2},{1}",f($*V),f(_*V),f($*V)+1),I.textpathok=!0,G.string=l(P),G.on=!0,M.style.cssText=D,M.coordsize=V+y+V,M.coordorigin="0 0";var q=new yt(M,C),et={fill:"#000",stroke:"none",font:a._availableAttrs.font,text:P};q.shape=M,q.path=I,q.textpath=G,q.type="text",q.attrs.text=l(P),q.attrs.x=$,q.attrs.y=_,q.attrs.w=1,q.attrs.h=1,xt(q,et),M.appendChild(G),M.appendChild(I),C.canvas.appendChild(M);var st=nt("skew");return st.on=!0,M.appendChild(st),q.skew=st,q.transform(m),q},a._engine.setSize=function(C,$){var _=this.canvas.style;return this.width=C,this.height=$,C==+C&&(C+="px"),$==+$&&($+="px"),_.width=C,_.height=$,_.clip="rect(0 "+C+" "+$+" 0)",this._viewBox&&a._engine.setViewBox.apply(this,this._viewBox),this},a._engine.setViewBox=function(C,$,_,P,M){a.eve("raphael.setViewBox",this,this._viewBox,[C,$,_,P,M]);var I,G,q=this.getSize(),et=q.width,st=q.height;return M&&(_*(I=st/P)<et&&(C-=(et-_*I)/2/I),P*(G=et/_)<st&&($-=(st-P*G)/2/G)),this._viewBox=[C,$,_,P,!!M],this._viewBoxShift={dx:-C,dy:-$,scale:q},this.forEach(function(mt){mt.transform("...")}),this},a._engine.initWin=function(C){var $=C.document;$.styleSheets.length<31?$.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)"):$.styleSheets[0].addRule(".rvml","behavior:url(#default#VML)");try{!$.namespaces.rvml&&$.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),nt=function(_){return $.createElement("<rvml:"+_+' class="rvml">')}}catch{nt=function(_){return $.createElement("<"+_+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},a._engine.initWin(a._g.win),a._engine.create=function(){var C=a._getContainer.apply(0,arguments),$=C.container,_=C.height,P=C.width,M=C.x,I=C.y;if(!$)throw new Error("VML container not found.");var G=new a._Paper,q=G.canvas=a._g.doc.createElement("div"),et=q.style;return M=M||0,I=I||0,P=P||512,_=_||342,G.width=P,G.height=_,P==+P&&(P+="px"),_==+_&&(_+="px"),G.coordsize=216e5+y+216e5,G.coordorigin="0 0",G.span=a._g.doc.createElement("span"),G.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",q.appendChild(G.span),et.cssText=a.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",P,_),$==1?(a._g.doc.body.appendChild(q),et.left=M+"px",et.top=I+"px",et.position="absolute"):$.firstChild?$.insertBefore(q,$.firstChild):$.appendChild(q),G.renderfix=function(){},G},a.prototype.clear=function(){a.eve("raphael.clear",this),this.canvas.innerHTML=m,this.span=a._g.doc.createElement("span"),this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",this.canvas.appendChild(this.span),this.bottom=this.top=null},a.prototype.remove=function(){for(var C in a.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas),this)this[C]=typeof this[C]=="function"?a._removedFactory(C):null;return!0};var X=a.st;for(var O in at)at[c](O)&&!X[c](O)&&(X[O]=function(C){return function(){var $=arguments;return this.forEach(function(_){_[C].apply(_,$)})}}(O))}}.apply(n,o))===void 0||(r.exports=s)}])})})(zE);var Eq=zE.exports;const Tn=Ln(Eq);class hf{points;constructor(t=[]){this.points=t}toSVGPathData(){const t=[];for(let r=0,n=this.length;r<n;r++)t.push([r===0?"M":"L",this.points[r].x,this.points[r].y]);return t}toSVGPathD(){let t="";for(let r=0,n=this.length;r<n;r++)t+=(r===0?"M":"L")+this.points[r].x+","+this.points[r].y;return t}get length(){return this.points.length}addPoint(t){this.points.push(t)}getPoint(t){return this.points[t]}isContainPoint(t){const r=t.x,n=t.y,i=this.length;let o=!1;const s=2e-10;for(let a=0,c=i-1;a<i;c=a,a++){const l=this.points[a].x,u=this.points[a].y,h=this.points[c].x,f=this.points[c].y;if(l===r&&u===n||h===r&&f===n||n===u&&n===f)return!0;if(n>=u&&n<f||n<u&&n>=f){const d=(h-l)/(f-u),p=l+d*(n-u);if(p===r||Math.abs(p-r)<s)return!0;p>r&&(o=!o)}}return o}[Symbol.iterator](){let t=0;return{next:()=>({value:t>=this.length-1?this.points[++t]:void 0,done:t>=this.length})}}static generateInMultiplePoint(t,r,n,i,o=1){const s=new hf;for(let a=0;a<=o*n;a+=1){const c=Math.floor(a/o)/n*2*Math.PI,l=t+Math.cos(c)*i,u=r+Math.sin(c)*i;s.addPoint(new la({x:l,y:u}))}return s}}Tn.easing_formulas.swing=function(e){return e+Math.sin(e*Math.PI*2)/2},Tn.easing_formulas.may_cause_seizures=function(e){return e+.2*Math.random()-.1},Tn.fn.importSVG=function(e,t){const r=Cq.fromRawSVG(e);return r.toRaphael(this,(n,i)=>{r.save(),t&&t(n),i(),r.restore()}),this},Tn.fn.NPolygonPath=function(e,t,r,n,i=2){return{shape:this.path(hf.generateInMultiplePoint(e,t,r,n,i).toSVGPathD()),afterPath:hf.generateInMultiplePoint(e,t,r*i,n,1).toSVGPathD()}},Tn.fn.zoom=function(e=1){return this.setViewBox(0,0,this.width/e,this.height/e),this},Tn.fn.brickwall=function(e,t,r,n,i){for(var o=n/i,s=r/3,a={fill:"firebrick",stroke:"#CCC"},c=0;c<i;c+=1){var l=this.rect(0,0,s,o).attr(a),u=this.rect(0,0,2*s,o).attr(a);c%2?(l.transform("T"+e+","+(t+c*o)),u.transform("T"+(e+s)+","+(t+c*o))):(u.transform("T"+e+","+(t+c*o)),l.transform("T"+(e+2*s)+","+(t+c*o)))}},Tn.fn.rosetta=function(e,t,r,n,i){const o=rl.generateRosetta(e,t,r,n,i);return o.center,this.path(o.toSVGPathD())},Tn.fn.moon=function(e){e=e||{},e.r=typeof e.r=="number"?e.r:100,e.phase=typeof e.phase=="number"?e.phase:.25,e.x=typeof e.x=="number"?e.x:0,e.y=typeof e.y=="number"?e.y:0,this.circle(e.r+e.x,e.r+e.y,e.r).attr({"stroke-width":0,fill:"#999"});function t(n){n=typeof n=="number"?n:.25,n=Math.max(0,Math.min(1,n)),n=(n-.5)*2;let i="M"+e.r+",0";i+="a"+e.r+","+e.r+" 0 0,0 0,"+e.r*2;let o=n>0?0:1;return n=Math.abs(n),n=n||1e-4,e.inner_r=e.r/Math.pow(n,.5),i+="M"+e.r+","+e.r*2,i+="a"+e.inner_r+","+e.inner_r+" 0 0,"+o+" 0,"+e.r*-2,i}var r=this.path(t(e.phase)).attr({"stroke-width":0,stroke:"#999",fill:"#FF9"}).transform("T"+e.x+","+e.y);return{setPhase:function(n){r.attr("path",t(n))}}},Tn.fn.star=function(e,t,r){let n="M"+e+","+(t-r);for(var i=0;i<6;i+=1){const o=270+i*144,s=e+r*Math.cos(o*Math.PI/180),a=t+r*Math.sin(o*Math.PI/180);n+="L"+s+","+a}return this.path(n).attr("stroke-width",0).attr("fill","red")},Tn.fn.heart=function(e=150,t=300){let r="M"+e+","+t;return r+="l120,-175a50,50 0 0,0 -120,-75a50,50 0 0,0 -120,75l120,175",this.path(r).attr("stroke","red").attr("fill","pink")},Tn.el.redder=function(){const e=Tn.getRGB(this.attr("fill"));e.r+=51,this.attr("fill","rgb("+e.r+","+e.g+","+e.b+")")},Tn.installCustomAttributes=function(e){e.customAttributes.redness=function(t){const r=255*(1-t/100);return{fill:"rgb(255,"+r+", "+r+")"}},e.customAttributes.progress=function(t){const r=this.data("progresspath"),n=this.attr(),i={x:0,y:0},o=this.data("progresstrail");if(!r)return{transform:"t0,0"};Object.prototype.hasOwnProperty.call(n,"width")&&(i.x=-this.attr("width")/2,i.y=-this.attr("height")/2);const s=r.getTotalLength(),a=r.getPointAtLength(t*s);return o&&o.attr("path",r.getSubpath(0,t*s)),{transform:"t"+(a.x+i.x)+","+(a.y+i.y)+"r"+a.alpha}}};const GE=Tn;class ca{pgs=[];history=[];save(){this.history.push(mS(this.pgs))}restore(){const t=this.history.pop();t&&(this.pgs=t)}get size(){let t=0,r=0;return this.pgs.forEach(n=>{const i=n.pg;if(i){const[o,s,a,c]=i.bounds,[l,u]=i.size;t=Math.max(t,o,o+l,a),r=Math.max(r,s,s+u,c)}}),[Math.ceil(t),Math.ceil(r)]}static fromRawSVG(t){return ca.fromRawSVGUseRappar(t)}static fromRawSVGUseRappar(t){const r=new ca,n=wq(t);for(let i=0,o=n.length;i<o;i++){const s=n[i];if(s.type=="viewbox"&&s.width&&s.height)continue;const a={attrs:{}};for(const c in s)c==="type"||c==="path"||c==="transform"||(a.attrs[c]=s[c]);switch(s.type){case"path":a.d=s.path,a.pg=rl.fromSVGPathD(s.path,s.transform);break}r.pgs.push(a)}return r}toRaphael(t,r){let n;t instanceof HTMLElement?n=GE(HTMLElement):typeof t=="string"?n=GE(document.getElementById(t)):n=t;const[i,o]=this.size;n.setSize(i,o);const s=(a=!1)=>{for(let c=0,l=this.pgs.length;c<l;c++){const u=this.pgs[c];if(u.pg&&(u.raphaelPath?u.raphaelPath.attr("path",u.pg.toSVGPathD()):u.raphaelPath=n.path(u.pg.toSVGPathD()),u.raphaelPath.attr(u.attrs)),a&&r){const h=f=>{const{x:d,y:p}=wE(n.canvas,f),g=this.pgs.find(v=>v.raphaelPath?.isPointInside(d,p));g&&r?.(g,s)};u.raphaelPath?.unclick(h),u.raphaelPath?.click(h)}}};return s(!0),n}toCanvasOperation(t,r){let n;typeof t=="string"?n=document.getElementById(t):n=t;const[i,o]=this.size;n.width=i,n.height=o;const s=new kq(n),a=()=>{s.clearRect(0,0,i,o);for(let l=0,u=this.pgs.length;l<u;l++){const h=this.pgs[l];h.pg&&(s.save(),this.toCanvasAttrs(s,h.attrs),h.pg.toCanvas(s),h.attrs.stroke!=="none"&&s.stroke(),h.attrs.fill!=="none"&&s.fill(),s.restore())}};a();const c=l=>{const{x:u,y:h}=wE(s.canvas,l),f=this.pgs.find(d=>d.pg?.isPointInPath(u,h));f&&r?.(f,a)};return n.removeEventListener("click",c),n.addEventListener("click",c),s}toCanvasAttrs(t,r){for(const n in r){const i=r[n];switch(n){case"fill":t.fillStyle=String(i);break;case"stroke":t.strokeStyle=String(i);break;case"stroke-width":t.lineWidth=Number(i);break;case"stroke-linecap":t.lineCap=i;break;case"stroke-linejoin":t.lineJoin=i;break}}}static toDownloadSVGElement(t,r="shape"){yE(MH(t),`${r}.svg`)}toDownloadSVGElement(t,r="shape"){return ca.toDownloadSVGElement(t,r),this}static toDownloadSVGString(t,r="shape"){yE(vE(t),`${r}.svg`)}toDownloadSVGString(t,r="shape"){return ca.toDownloadSVGString(t,r),this}static getSVGDOM(t){if(t instanceof HTMLObjectElement||t instanceof HTMLIFrameElement)return t.contentDocument;if(t instanceof HTMLEmbedElement)return t.getSVGDocument()}}const Cq=ca;class kq{canvas;context;customContext;constructor(t){this.canvas=t,this.context=t.getContext("2d",{willReadFrequently:!0}),this.customContext=new uf({canvas:this.canvas,width:this.canvas.width,height:this.canvas.height})}set lineWidth(t){this.context.lineWidth=t,this.customContext.lineWidth=t}get lineWidth(){return this.context.lineWidth}set lineCap(t){this.context.lineCap=t,this.customContext.lineCap=t}get lineCap(){return this.context.lineCap}set lineJoin(t){this.context.lineJoin=t,this.customContext.lineCap=t}get lineJoin(){return this.context.lineJoin}set lineDashOffset(t){this.context.lineDashOffset=t,this.customContext.lineDashOffset=t}get lineDashOffset(){return this.context.lineDashOffset}set miterLimit(t){this.context.miterLimit=t,this.customContext.miterLimit=t}get miterLimit(){return this.context.miterLimit}set globalAlpha(t){this.context.globalAlpha=t,this.customContext.globalAlpha=t}get globalAlpha(){return this.context.globalAlpha}set fillStyle(t){typeof t=="string"||t instanceof CanvasGradient||t instanceof CanvasPattern?(this.context.fillStyle=t,this.customContext.fillStyle=t):(this.context.fillStyle=t.gradient,this.customContext.fillStyle=t.gradientCustom)}get fillStyle(){return this.context.fillStyle}set strokeStyle(t){typeof t=="string"||t instanceof CanvasGradient||t instanceof CanvasPattern?(this.context.strokeStyle=t,this.customContext.strokeStyle=t):(this.context.strokeStyle=t.gradient,this.customContext.strokeStyle=t.gradientCustom)}get strokeStyle(){return this.context.strokeStyle}set font(t){this.context.font=t,this.customContext.font=t}get font(){return this.context.font}fill(){return this.context.fill(),this.customContext.fill(),this}fillRect(t,r,n,i){return this.context.fillRect(t,r,n,i),this.customContext.fillRect(t,r,n,i),this}fillText(t,r,n,i){return this.context.fillText(t,r,n,i),this.customContext.fillText(t,r,n),this}setLineDash(t){return this.context.setLineDash(t),this.customContext.setLineDash(t),this}stroke(){return this.context.stroke(),this.customContext.stroke(),this}strokeText(t,r,n,i){return this.context.strokeText(t,r,n,i),this.customContext.strokeText(t,r,n),this}strokeRect(t,r,n,i){return this.context.strokeRect(t,r,n,i),this.customContext.strokeRect(t,r,n,i),this}clearRect(t=0,r=0,n=this.canvas.width,i=this.canvas.height){return this.context.clearRect(t,r,n,i),this.customContext.clearRect(t,r,n,i),this}save(){return this.context.save(),this.customContext.save(),this}restore(){return this.context.restore(),this.customContext.restore(),this}beginPath(){return this.context.beginPath(),this.customContext.beginPath(),this}closePath(){return this.context.closePath(),this.customContext.closePath(),this}moveTo(t,r){return this.context.moveTo(t,r),this.customContext.moveTo(t,r),this}lineTo(t,r){return this.context.lineTo(t,r),this.customContext.lineTo(t,r),this}arc(t,r,n,i,o,s){return this.context.arc(t,r,n,i,o,s),this.customContext.arc(t,r,n,i,o,s?-1:1),this}arcTo(t,r,n,i,o){return this.context.arcTo(t,r,n,i,o),this.customContext.arcTo(t,r,n,i,o),this}quadraticCurveTo(t,r,n,i){return this.context.quadraticCurveTo(t,r,n,i),this.customContext.quadraticCurveTo(t,r,n,i),this}bezierCurveTo(t,r,n,i,o,s){return this.context.bezierCurveTo(t,r,n,i,o,s),this.customContext.bezierCurveTo(t,r,n,i,o,s),this}rect(t,r,n,i){return this.context.rect(t,r,n,i),this.customContext.rect(t,r,n,i),this}translate(t,r){return this.context.translate(t,r),this.customContext.translate(t,r),this}rotate(t){return this.context.rotate(t),this.customContext.rotate(t),this}scale(t,r){return this.context.scale(t,r),this.customContext.scale(t,r),this}createLinearGradient(t,r,n,i,o){const s=this.context.createLinearGradient(t,r,n,i),a=this.customContext.createLinearGradient(t,r,n,i);return o&&Object.keys(o).forEach(c=>{const l=parseFloat(c);s.addColorStop(l,o[l]),a.addColorStop(l,o[l])}),{gradient:s,gradientCustom:a}}createRadialGradient(t,r,n,i,o,s,a){const c=this.context.createRadialGradient(t,r,n,i,o,s),l=this.customContext.createRadialGradient(t,r,n,i,o,s);return a&&Object.keys(a).forEach(u=>{const h=parseFloat(u);c.addColorStop(h,a[h]),l.addColorStop(h,a[h])}),{gradient:c,gradientCustom:l}}drawImage(t,r=0,n=0){return this.context.drawImage(t,r,n),this.customContext.drawImage(t,r,n),this}getImageData(t,r,n,i,o){return this.context.getImageData(t,r,n,i,o)}putImageData(t,r=0,n=0){return this.context.putImageData(t,r,n)}toRawSVG(){const t=this.customContext.getSerializedSvg(!0),r=this.customContext.getSvg();return{raw:t,element:r}}toSVGOperation(){const{raw:t}=this.toRawSVG();return ca.fromRawSVG(t)}}(function(){let e=0;window.requestAnimationFrame||(window.requestAnimationFrame=function(t){const r=new Date().getTime(),n=Math.max(0,16-(r-e)),i=window.setTimeout(function(){t(r+n)},n);return e=r+n,i}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)})})();const ye={colorPrimary:De.getCSSVar("--color-primary"),colorRed:De.getCSSVar("--color-red"),colorOrange:De.getCSSVar("--color-orange"),colorYellow:De.getCSSVar("--color-yellow"),colorGreen:De.getCSSVar("--color-green"),colorBlue:De.getCSSVar("--color-blue"),colorPurple:De.getCSSVar("--color-purple"),colorBlack:De.getCSSVar("--color-black"),colorGray0:De.getCSSVar("--color-gray-0"),colorGray3:De.getCSSVar("--color-gray-3"),colorGray6:De.getCSSVar("--color-gray-6"),colorGray9:De.getCSSVar("--color-gray-9"),colorGrayCC:De.getCSSVar("--color-gray-cc"),colorGrayDD:De.getCSSVar("--color-gray-dd"),colorGrayE6:De.getCSSVar("--color-gray-e6"),colorGrayEE:De.getCSSVar("--color-gray-ee"),colorGrayEF:De.getCSSVar("--color-gray-ef"),colorGrayF5:De.getCSSVar("--color-gray-f5"),colorGrayFF:De.getCSSVar("--color-gray-ff"),fontLineHeight:De.getCSSVar("--font-line-height"),fontSize32:De.getCSSVar("--font-size-32"),fontSize24:De.getCSSVar("--font-size-24"),fontSize18:De.getCSSVar("--font-size-18"),fontSize16:De.getCSSVar("--font-size-16"),fontSize14:De.getCSSVar("--font-size-14"),fontSize12:De.getCSSVar("--font-size-12"),fontSize11:De.getCSSVar("--font-size-11"),gap4:De.getCSSVar("--gap-4"),gap8:De.getCSSVar("--gap-8"),gap12:De.getCSSVar("--gap-12"),gap16:De.getCSSVar("--gap-16"),gap20:De.getCSSVar("--gap-20"),gap40:De.getCSSVar("--gap-40"),height44:De.getCSSVar("--height-44"),height32:De.getCSSVar("--height-32"),borderRadius:De.getCSSVar("--border-radius")},Pq=function(e){return e[0]==="#"&&(e=e.slice(1)),parseInt(e,16)},Tq=function(e,t=1){const r=e>>16&255,n=e>>8&255,i=e&255,o=t<0?0:t>1?1:t;return o===1?"rgb("+r+","+n+","+i+")":"rgba("+r+","+n+","+i+","+o+")"},BE=function(e,t=1){const r=Pq(e);return Tq(r,t)};function Eo(e,t){let r=parseInt(e.substring(1,3),16),n=parseInt(e.substring(3,5),16),i=parseInt(e.substring(5,7),16);r==0&&(r=32),n==0&&(n=32),i==0&&(i=32),r=r*(100+t)/100,n=n*(100+t)/100,i=i*(100+t)/100,r=r<255?r:255,n=n<255?n:255,i=i<255?i:255,r=Math.round(r),n=Math.round(n),i=Math.round(i);const o=r.toString(16).length==1?"0"+r.toString(16):r.toString(16),s=n.toString(16).length==1?"0"+n.toString(16):n.toString(16),a=i.toString(16).length==1?"0"+i.toString(16):i.toString(16);return"#"+o+s+a}var HE={exports:{}};(function(e){var t={};e.exports=t,t.parse=function(r,n){for(var i=t.bin.readUshort,o=t.bin.readUint,l=0,s={},a=new Uint8Array(r),c=a.length-4;o(a,c)!=101010256;)c--;var l=c;l+=4,l+=4;var u=i(a,l);l+=2,i(a,l),l+=2;var h=o(a,l);l+=4;var f=o(a,l);l+=4,l=f;for(var d=0;d<u;d++){o(a,l),l+=4,l+=4,l+=4,l+=4,o(a,l),l+=4;var h=o(a,l);l+=4;var p=o(a,l);l+=4;var g=i(a,l),v=i(a,l+2),b=i(a,l+4);l+=6,l+=8;var y=o(a,l);l+=4,l+=g+v+b,t._readLocal(a,y,s,h,p,n)}return s},t._readLocal=function(r,n,i,o,s,a){var c=t.bin.readUshort,l=t.bin.readUint;l(r,n),n+=4,c(r,n),n+=2,c(r,n),n+=2;var u=c(r,n);n+=2,l(r,n),n+=4,l(r,n),n+=4,n+=8;var h=c(r,n);n+=2;var f=c(r,n);n+=2;var d=t.bin.readUTF8(r,n,h);if(n+=h,n+=f,a){i[d]={size:s,csize:o};return}var p=new Uint8Array(r.buffer,n);if(u==0)i[d]=new Uint8Array(p.buffer.slice(n,n+o));else if(u==8){var g=new Uint8Array(s);t.inflateRaw(p,g),i[d]=g}else throw"unknown compression method: "+u},t.inflateRaw=function(r,n){return t.F.inflate(r,n)},t.inflate=function(r,n){return r[0],r[1],t.inflateRaw(new Uint8Array(r.buffer,r.byteOffset+2,r.length-6),n)},t.deflate=function(r,n){n==null&&(n={level:6});var i=0,o=new Uint8Array(50+Math.floor(r.length*1.1));o[i]=120,o[i+1]=156,i+=2,i=t.F.deflateRaw(r,o,i,n.level);var s=t.adler(r,0,r.length);return o[i+0]=s>>>24&255,o[i+1]=s>>>16&255,o[i+2]=s>>>8&255,o[i+3]=s>>>0&255,new Uint8Array(o.buffer,0,i+4)},t.deflateRaw=function(r,n){n==null&&(n={level:6});var i=new Uint8Array(50+Math.floor(r.length*1.1)),o=t.F.deflateRaw(r,i,o,n.level);return new Uint8Array(i.buffer,0,o)},t.encode=function(r,n){n==null&&(n=!1);var i=0,o=t.bin.writeUint,s=t.bin.writeUshort,a={};for(var c in r){var l=!t._noNeed(c)&&!n,u=r[c],h=t.crc.crc(u,0,u.length);a[c]={cpr:l,usize:u.length,crc:h,file:l?t.deflateRaw(u):u}}for(var c in a)i+=a[c].file.length+30+46+2*t.bin.sizeUTF8(c);i+=22;var f=new Uint8Array(i),d=0,p=[];for(var c in a){var g=a[c];p.push(d),d=t._writeHeader(f,d,c,g,0)}var v=0,b=d;for(var c in a){var g=a[c];p.push(d),d=t._writeHeader(f,d,c,g,1,p[v++])}var y=d-b;return o(f,d,101010256),d+=4,d+=4,s(f,d,v),d+=2,s(f,d,v),d+=2,o(f,d,y),d+=4,o(f,d,b),d+=4,d+=2,f.buffer},t._noNeed=function(r){var n=r.split(".").pop().toLowerCase();return"png,jpg,jpeg,zip".indexOf(n)!=-1},t._writeHeader=function(r,n,i,o,s,a){var c=t.bin.writeUint,l=t.bin.writeUshort,u=o.file;c(r,n,s==0?67324752:33639248),n+=4,s==1&&(n+=2),l(r,n,20),n+=2,l(r,n,0),n+=2,l(r,n,o.cpr?8:0),n+=2,c(r,n,0),n+=4,c(r,n,o.crc),n+=4,c(r,n,u.length),n+=4,c(r,n,o.usize),n+=4,l(r,n,t.bin.sizeUTF8(i)),n+=2,l(r,n,0),n+=2,s==1&&(n+=2,n+=2,n+=6,c(r,n,a),n+=4);var h=t.bin.writeUTF8(r,n,i);return n+=h,s==0&&(r.set(u,n),n+=u.length),n},t.crc={table:function(){for(var r=new Uint32Array(256),n=0;n<256;n++){for(var i=n,o=0;o<8;o++)i&1?i=3988292384^i>>>1:i=i>>>1;r[n]=i}return r}(),update:function(r,n,i,o){for(var s=0;s<o;s++)r=t.crc.table[(r^n[i+s])&255]^r>>>8;return r},crc:function(r,n,i){return t.crc.update(4294967295,r,n,i)^4294967295}},t.adler=function(r,n,i){for(var o=1,s=0,a=n,c=n+i;a<c;){for(var l=Math.min(a+5552,c);a<l;)o+=r[a++],s+=o;o=o%65521,s=s%65521}return s<<16|o},t.bin={readUshort:function(r,n){return r[n]|r[n+1]<<8},writeUshort:function(r,n,i){r[n]=i&255,r[n+1]=i>>8&255},readUint:function(r,n){return r[n+3]*16777216+(r[n+2]<<16|r[n+1]<<8|r[n])},writeUint:function(r,n,i){r[n]=i&255,r[n+1]=i>>8&255,r[n+2]=i>>16&255,r[n+3]=i>>24&255},readASCII:function(r,n,i){for(var o="",s=0;s<i;s++)o+=String.fromCharCode(r[n+s]);return o},writeASCII:function(r,n,i){for(var o=0;o<i.length;o++)r[n+o]=i.charCodeAt(o)},pad:function(r){return r.length<2?"0"+r:r},readUTF8:function(r,n,i){for(var o="",s,a=0;a<i;a++)o+="%"+t.bin.pad(r[n+a].toString(16));try{s=decodeURIComponent(o)}catch{return t.bin.readASCII(r,n,i)}return s},writeUTF8:function(r,n,i){for(var o=i.length,s=0,a=0;a<o;a++){var c=i.charCodeAt(a);if(!(c&4294967168))r[n+s]=c,s++;else if(!(c&4294965248))r[n+s]=192|c>>6,r[n+s+1]=128|c>>0&63,s+=2;else if(!(c&4294901760))r[n+s]=224|c>>12,r[n+s+1]=128|c>>6&63,r[n+s+2]=128|c>>0&63,s+=3;else if(!(c&4292870144))r[n+s]=240|c>>18,r[n+s+1]=128|c>>12&63,r[n+s+2]=128|c>>6&63,r[n+s+3]=128|c>>0&63,s+=4;else throw"e"}return s},sizeUTF8:function(r){for(var n=r.length,i=0,o=0;o<n;o++){var s=r.charCodeAt(o);if(!(s&4294967168))i++;else if(!(s&4294965248))i+=2;else if(!(s&4294901760))i+=3;else if(!(s&4292870144))i+=4;else throw"e"}return i}},t.F={},t.F.deflateRaw=function(r,n,i,o){var s=[[0,0,0,0,0],[4,4,8,4,0],[4,5,16,8,0],[4,6,16,16,0],[4,10,16,32,0],[8,16,32,32,0],[8,16,128,128,0],[8,32,128,256,0],[32,128,258,1024,1],[32,258,258,4096,1]],a=s[o],c=t.F.U,l=t.F._goodIndex;t.F._hash;var u=t.F._putsE,h=0,f=i<<3,d=0,p=r.length;if(o==0){for(;h<p;){var g=Math.min(65535,p-h);u(n,f,h+g==p?1:0),f=t.F._copyExact(r,h,g,n,f+8),h+=g}return f>>>3}var v=c.lits,b=c.strt,y=c.prev,m=0,x=0,A=0,E=0,k=0,D=0;for(p>2&&(D=t.F._hash(r,0),b[D]=0),h=0;h<p;h++){if(k=D,h+1<p-2){D=t.F._hash(r,h+1);var V=h+1&32767;y[V]=b[D],b[D]=V}if(d<=h){(m>14e3||x>26697)&&p-h>100&&(d<h&&(v[m]=h-d,m+=2,d=h),f=t.F._writeBlock(h==p-1||d==p?1:0,v,m,E,r,A,h-A,n,f),m=x=E=0,A=h);var U=0;h<p-2&&(U=t.F._bestMatch(r,h,y,k,Math.min(a[2],p-h),a[3]));var g=U>>>16,K=U&65535;if(U!=0){var g=U>>>16,K=U&65535,Y=l(g,c.of0);c.lhst[257+Y]++;var it=l(K,c.df0);c.dhst[it]++,E+=c.exb[Y]+c.dxb[it],v[m]=g<<23|h-d,v[m+1]=K<<16|Y<<8|it,m+=2,d=h+g}else c.lhst[r[h]]++;x++}}for((A!=h||r.length==0)&&(d<h&&(v[m]=h-d,m+=2,d=h),f=t.F._writeBlock(1,v,m,E,r,A,h-A,n,f),m=0,x=0,m=x=E=0,A=h);f&7;)f++;return f>>>3},t.F._bestMatch=function(r,n,i,o,s,a){var c=n&32767,l=i[c],u=c-l+32768&32767;if(l==c||o!=t.F._hash(r,n-u))return 0;for(var h=0,f=0,d=Math.min(32767,n);u<=d&&--a!=0&&l!=c;){if(h==0||r[n+h]==r[n+h-u]){var p=t.F._howLong(r,n,u);if(p>h){if(h=p,f=u,h>=s)break;u+2<p&&(p=u+2);for(var g=0,v=0;v<p-2;v++){var b=n-u+v+32768&32767,y=i[b],m=b-y+32768&32767;m>g&&(g=m,l=b)}}}c=l,l=i[c],u+=c-l+32768&32767}return h<<16|f},t.F._howLong=function(r,n,i){if(r[n]!=r[n-i]||r[n+1]!=r[n+1-i]||r[n+2]!=r[n+2-i])return 0;var o=n,s=Math.min(r.length,n+258);for(n+=3;n<s&&r[n]==r[n-i];)n++;return n-o},t.F._hash=function(r,n){return(r[n]<<8|r[n+1])+(r[n+2]<<4)&65535},t.saved=0,t.F._writeBlock=function(r,n,i,o,s,a,c,l,u){var h=t.F.U,f=t.F._putsF,d=t.F._putsE,p,g,v,b,y,m,x,A,E;h.lhst[256]++,p=t.F.getTrees(),g=p[0],v=p[1],b=p[2],y=p[3],m=p[4],x=p[5],A=p[6],E=p[7];var k=(u+3&7?8-(u+3&7):0)+32+(c<<3),D=o+t.F.contSize(h.fltree,h.lhst)+t.F.contSize(h.fdtree,h.dhst),V=o+t.F.contSize(h.ltree,h.lhst)+t.F.contSize(h.dtree,h.dhst);V+=14+3*x+t.F.contSize(h.itree,h.ihst)+(h.ihst[16]*2+h.ihst[17]*3+h.ihst[18]*7);for(var U=0;U<286;U++)h.lhst[U]=0;for(var U=0;U<30;U++)h.dhst[U]=0;for(var U=0;U<19;U++)h.ihst[U]=0;var K=k<D&&k<V?0:D<V?1:2;if(f(l,u,r),f(l,u+1,K),u+=3,K==0){for(;u&7;)u++;u=t.F._copyExact(s,a,c,l,u)}else{var Y,it;if(K==1&&(Y=h.fltree,it=h.fdtree),K==2){t.F.makeCodes(h.ltree,g),t.F.revCodes(h.ltree,g),t.F.makeCodes(h.dtree,v),t.F.revCodes(h.dtree,v),t.F.makeCodes(h.itree,b),t.F.revCodes(h.itree,b),Y=h.ltree,it=h.dtree,d(l,u,y-257),u+=5,d(l,u,m-1),u+=5,d(l,u,x-4),u+=4;for(var nt=0;nt<x;nt++)d(l,u+nt*3,h.itree[(h.ordr[nt]<<1)+1]);u+=3*x,u=t.F._codeTiny(A,h.itree,l,u),u=t.F._codeTiny(E,h.itree,l,u)}for(var ft=a,xt=0;xt<i;xt+=2){for(var _t=n[xt],yt=_t>>>23,at=ft+(_t&8388607);ft<at;)u=t.F._writeLit(s[ft++],Y,l,u);if(yt!=0){var X=n[xt+1],O=X>>16,C=X>>8&255,$=X&255;u=t.F._writeLit(257+C,Y,l,u),d(l,u,yt-h.of0[C]),u+=h.exb[C],u=t.F._writeLit($,it,l,u),f(l,u,O-h.df0[$]),u+=h.dxb[$],ft+=yt}}u=t.F._writeLit(256,Y,l,u)}return u},t.F._copyExact=function(r,n,i,o,s){var a=s>>>3;return o[a]=i,o[a+1]=i>>>8,o[a+2]=255-o[a],o[a+3]=255-o[a+1],a+=4,o.set(new Uint8Array(r.buffer,n,i),a),s+(i+4<<3)},t.F.getTrees=function(){for(var r=t.F.U,n=t.F._hufTree(r.lhst,r.ltree,15),i=t.F._hufTree(r.dhst,r.dtree,15),o=[],s=t.F._lenCodes(r.ltree,o),a=[],c=t.F._lenCodes(r.dtree,a),l=0;l<o.length;l+=2)r.ihst[o[l]]++;for(var l=0;l<a.length;l+=2)r.ihst[a[l]]++;for(var u=t.F._hufTree(r.ihst,r.itree,7),h=19;h>4&&r.itree[(r.ordr[h-1]<<1)+1]==0;)h--;return[n,i,u,s,c,h,o,a]},t.F.getSecond=function(r){for(var n=[],i=0;i<r.length;i+=2)n.push(r[i+1]);return n},t.F.nonZero=function(r){for(var n="",i=0;i<r.length;i+=2)r[i+1]!=0&&(n+=(i>>1)+",");return n},t.F.contSize=function(r,n){for(var i=0,o=0;o<n.length;o++)i+=n[o]*r[(o<<1)+1];return i},t.F._codeTiny=function(r,n,i,o){for(var s=0;s<r.length;s+=2){var a=r[s],c=r[s+1];o=t.F._writeLit(a,n,i,o);var l=a==16?2:a==17?3:7;a>15&&(t.F._putsE(i,o,c,l),o+=l)}return o},t.F._lenCodes=function(r,n){for(var i=r.length;i!=2&&r[i-1]==0;)i-=2;for(var o=0;o<i;o+=2){var s=r[o+1],a=o+3<i?r[o+3]:-1,c=o+5<i?r[o+5]:-1,l=o==0?-1:r[o-1];if(s==0&&a==s&&c==s){for(var u=o+5;u+2<i&&r[u+2]==s;)u+=2;var h=Math.min(u+1-o>>>1,138);h<11?n.push(17,h-3):n.push(18,h-11),o+=h*2-2}else if(s==l&&a==s&&c==s){for(var u=o+5;u+2<i&&r[u+2]==s;)u+=2;var h=Math.min(u+1-o>>>1,6);n.push(16,h-3),o+=h*2-2}else n.push(s,0)}return i>>>1},t.F._hufTree=function(r,n,i){var o=[],s=r.length,a=n.length,c=0;for(c=0;c<a;c+=2)n[c]=0,n[c+1]=0;for(c=0;c<s;c++)r[c]!=0&&o.push({lit:c,f:r[c]});var l=o.length,u=o.slice(0);if(l==0)return 0;if(l==1){var h=o[0].lit,u=h==0?1:0;return n[(h<<1)+1]=1,n[(u<<1)+1]=1,1}o.sort(function(y,m){return y.f-m.f});var f=o[0],d=o[1],p=0,g=1,v=2;for(o[0]={lit:-1,f:f.f+d.f,l:f,r:d,d:0};g!=l-1;)p!=g&&(v==l||o[p].f<o[v].f)?f=o[p++]:f=o[v++],p!=g&&(v==l||o[p].f<o[v].f)?d=o[p++]:d=o[v++],o[g++]={lit:-1,f:f.f+d.f,l:f,r:d};var b=t.F.setDepth(o[g-1],0);for(b>i&&(t.F.restrictDepth(u,i,b),b=i),c=0;c<l;c++)n[(u[c].lit<<1)+1]=u[c].d;return b},t.F.setDepth=function(r,n){return r.lit!=-1?(r.d=n,n):Math.max(t.F.setDepth(r.l,n+1),t.F.setDepth(r.r,n+1))},t.F.restrictDepth=function(r,n,i){var o=0,s=1<<i-n,a=0;for(r.sort(function(l,u){return u.d==l.d?l.f-u.f:u.d-l.d}),o=0;o<r.length&&r[o].d>n;o++){var c=r[o].d;r[o].d=n,a+=s-(1<<i-c)}for(a=a>>>i-n;a>0;){var c=r[o].d;c<n?(r[o].d++,a-=1<<n-c-1):o++}for(;o>=0;o--)r[o].d==n&&a<0&&(r[o].d--,a++);a!=0&&console.log("debt left")},t.F._goodIndex=function(r,n){var i=0;return n[i|16]<=r&&(i|=16),n[i|8]<=r&&(i|=8),n[i|4]<=r&&(i|=4),n[i|2]<=r&&(i|=2),n[i|1]<=r&&(i|=1),i},t.F._writeLit=function(r,n,i,o){return t.F._putsF(i,o,n[r<<1]),o+n[(r<<1)+1]},t.F.inflate=function(r,n){var i=Uint8Array;if(r[0]==3&&r[1]==0)return n||new i(0);var o=t.F,s=o._bitsF,a=o._bitsE,c=o._decodeTiny,l=o.makeCodes,u=o.codes2map,h=o._get17,f=o.U,d=n==null;d&&(n=new i(r.length>>>2<<3));for(var p=0,g=0,v=0,b=0,y=0,m=0,x=0,A=0,E=0,k,D;p==0;){if(p=s(r,E,1),g=s(r,E+1,2),E+=3,g==0){E&7&&(E+=8-(E&7));var V=(E>>>3)+4,U=r[V-4]|r[V-3]<<8;d&&(n=t.F._check(n,A+U)),n.set(new i(r.buffer,r.byteOffset+V,U),A),E=V+U<<3,A+=U;continue}if(d&&(n=t.F._check(n,A+131072)),g==1&&(k=f.flmap,D=f.fdmap,m=511,x=31),g==2){v=a(r,E,5)+257,b=a(r,E+5,5)+1,y=a(r,E+10,4)+4,E+=14;for(var K=0;K<38;K+=2)f.itree[K]=0,f.itree[K+1]=0;for(var Y=1,K=0;K<y;K++){var it=a(r,E+K*3,3);f.itree[(f.ordr[K]<<1)+1]=it,it>Y&&(Y=it)}E+=3*y,l(f.itree,Y),u(f.itree,Y,f.imap),k=f.lmap,D=f.dmap,E=c(f.imap,(1<<Y)-1,v+b,r,E,f.ttree);var nt=o._copyOut(f.ttree,0,v,f.ltree);m=(1<<nt)-1;var ft=o._copyOut(f.ttree,v,b,f.dtree);x=(1<<ft)-1,l(f.ltree,nt),u(f.ltree,nt,k),l(f.dtree,ft),u(f.dtree,ft,D)}for(;;){var xt=k[h(r,E)&m];E+=xt&15;var _t=xt>>>4;if(!(_t>>>8))n[A++]=_t;else{if(_t==256)break;var yt=A+_t-254;if(_t>264){var at=f.ldef[_t-257];yt=A+(at>>>3)+a(r,E,at&7),E+=at&7}var X=D[h(r,E)&x];E+=X&15;var O=X>>>4,C=f.ddef[O],$=(C>>>4)+s(r,E,C&15);for(E+=C&15,d&&(n=t.F._check(n,A+131072));A<yt;)n[A]=n[A++-$],n[A]=n[A++-$],n[A]=n[A++-$],n[A]=n[A++-$];A=yt}}}return n.length==A?n:n.slice(0,A)},t.F._check=function(r,n){var i=r.length;if(n<=i)return r;var o=new Uint8Array(Math.max(i<<1,n));return o.set(r,0),o},t.F._decodeTiny=function(r,n,i,o,s,a){for(var c=t.F._bitsE,l=t.F._get17,u=0;u<i;){var h=r[l(o,s)&n];s+=h&15;var f=h>>>4;if(f<=15)a[u]=f,u++;else{var d=0,p=0;f==16?(p=3+c(o,s,2),s+=2,d=a[u-1]):f==17?(p=3+c(o,s,3),s+=3):f==18&&(p=11+c(o,s,7),s+=7);for(var g=u+p;u<g;)a[u]=d,u++}}return s},t.F._copyOut=function(r,n,i,o){for(var s=0,a=0,c=o.length>>>1;a<i;){var l=r[a+n];o[a<<1]=0,o[(a<<1)+1]=l,l>s&&(s=l),a++}for(;a<c;)o[a<<1]=0,o[(a<<1)+1]=0,a++;return s},t.F.makeCodes=function(r,n){for(var i=t.F.U,o=r.length,s,a,c,h,l,u=i.bl_count,h=0;h<=n;h++)u[h]=0;for(h=1;h<o;h+=2)u[r[h]]++;var f=i.next_code;for(s=0,u[0]=0,a=1;a<=n;a++)s=s+u[a-1]<<1,f[a]=s;for(c=0;c<o;c+=2)l=r[c+1],l!=0&&(r[c]=f[l],f[l]++)},t.F.codes2map=function(r,n,i){for(var o=r.length,s=t.F.U,a=s.rev15,c=0;c<o;c+=2)if(r[c+1]!=0)for(var l=c>>1,u=r[c+1],h=l<<4|u,f=n-u,d=r[c]<<f,p=d+(1<<f);d!=p;){var g=a[d]>>>15-n;i[g]=h,d++}},t.F.revCodes=function(r,n){for(var i=t.F.U.rev15,o=15-n,s=0;s<r.length;s+=2){var a=r[s]<<n-r[s+1];r[s]=i[a]>>>o}},t.F._putsE=function(r,n,i){i=i<<(n&7);var o=n>>>3;r[o]|=i,r[o+1]|=i>>>8},t.F._putsF=function(r,n,i){i=i<<(n&7);var o=n>>>3;r[o]|=i,r[o+1]|=i>>>8,r[o+2]|=i>>>16},t.F._bitsE=function(r,n,i){return(r[n>>>3]|r[(n>>>3)+1]<<8)>>>(n&7)&(1<<i)-1},t.F._bitsF=function(r,n,i){return(r[n>>>3]|r[(n>>>3)+1]<<8|r[(n>>>3)+2]<<16)>>>(n&7)&(1<<i)-1},t.F._get17=function(r,n){return(r[n>>>3]|r[(n>>>3)+1]<<8|r[(n>>>3)+2]<<16)>>>(n&7)},t.F._get25=function(r,n){return(r[n>>>3]|r[(n>>>3)+1]<<8|r[(n>>>3)+2]<<16|r[(n>>>3)+3]<<24)>>>(n&7)},t.F.U=function(){var r=Uint16Array,n=Uint32Array;return{next_code:new r(16),bl_count:new r(16),ordr:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],of0:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],exb:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],ldef:new r(32),df0:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],dxb:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],ddef:new n(32),flmap:new r(512),fltree:[],fdmap:new r(32),fdtree:[],lmap:new r(32768),ltree:[],ttree:[],dmap:new r(32768),dtree:[],imap:new r(512),itree:[],rev15:new r(32768),lhst:new n(286),dhst:new n(30),ihst:new n(19),lits:new n(15e3),strt:new r(65536),prev:new r(32768)}}(),function(){for(var r=t.F.U,n=32768,i=0;i<n;i++){var o=i;o=(o&2863311530)>>>1|(o&1431655765)<<1,o=(o&3435973836)>>>2|(o&858993459)<<2,o=(o&4042322160)>>>4|(o&252645135)<<4,o=(o&4278255360)>>>8|(o&16711935)<<8,r.rev15[i]=(o>>>16|o<<16)>>>17}function s(a,c,l){for(;c--!=0;)a.push(0,l)}for(var i=0;i<32;i++)r.ldef[i]=r.of0[i]<<3|r.exb[i],r.ddef[i]=r.df0[i]<<4|r.dxb[i];s(r.fltree,144,8),s(r.fltree,112,9),s(r.fltree,24,7),s(r.fltree,8,8),t.F.makeCodes(r.fltree,9),t.F.codes2map(r.fltree,9,r.flmap),t.F.revCodes(r.fltree,9),s(r.fdtree,32,5),t.F.makeCodes(r.fdtree,5),t.F.codes2map(r.fdtree,5,r.fdmap),t.F.revCodes(r.fdtree,5),s(r.itree,19,0),s(r.ltree,286,0),s(r.dtree,30,0),s(r.ttree,320,0)}()})(HE);var Oq=HE.exports;const qE=Ln(Oq);/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const Nq=4,KE=0,YE=1,Aq=2;function nl(e){let t=e.length;for(;--t>=0;)e[t]=0}const Dq=0,XE=1,Rq=2,Iq=3,jq=258,Zv=29,Gc=256,Bc=Gc+1+Zv,il=30,t1=19,JE=2*Bc+1,ua=15,e1=16,Fq=7,r1=256,WE=16,QE=17,ZE=18,n1=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),df=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),Mq=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),t3=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Lq=512,Co=new Array((Bc+2)*2);nl(Co);const Hc=new Array(il*2);nl(Hc);const qc=new Array(Lq);nl(qc);const Kc=new Array(jq-Iq+1);nl(Kc);const i1=new Array(Zv);nl(i1);const ff=new Array(il);nl(ff);function o1(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}let e3,r3,n3;function s1(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const i3=e=>e<256?qc[e]:qc[256+(e>>>7)],Yc=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},On=(e,t,r)=>{e.bi_valid>e1-r?(e.bi_buf|=t<<e.bi_valid&65535,Yc(e,e.bi_buf),e.bi_buf=t>>e1-e.bi_valid,e.bi_valid+=r-e1):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)},Vi=(e,t,r)=>{On(e,r[t*2],r[t*2+1])},o3=(e,t)=>{let r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1},Vq=e=>{e.bi_valid===16?(Yc(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},Uq=(e,t)=>{const r=t.dyn_tree,n=t.max_code,i=t.stat_desc.static_tree,o=t.stat_desc.has_stree,s=t.stat_desc.extra_bits,a=t.stat_desc.extra_base,c=t.stat_desc.max_length;let l,u,h,f,d,p,g=0;for(f=0;f<=ua;f++)e.bl_count[f]=0;for(r[e.heap[e.heap_max]*2+1]=0,l=e.heap_max+1;l<JE;l++)u=e.heap[l],f=r[r[u*2+1]*2+1]+1,f>c&&(f=c,g++),r[u*2+1]=f,!(u>n)&&(e.bl_count[f]++,d=0,u>=a&&(d=s[u-a]),p=r[u*2],e.opt_len+=p*(f+d),o&&(e.static_len+=p*(i[u*2+1]+d)));if(g!==0){do{for(f=c-1;e.bl_count[f]===0;)f--;e.bl_count[f]--,e.bl_count[f+1]+=2,e.bl_count[c]--,g-=2}while(g>0);for(f=c;f!==0;f--)for(u=e.bl_count[f];u!==0;)h=e.heap[--l],!(h>n)&&(r[h*2+1]!==f&&(e.opt_len+=(f-r[h*2+1])*r[h*2],r[h*2+1]=f),u--)}},s3=(e,t,r)=>{const n=new Array(ua+1);let i=0,o,s;for(o=1;o<=ua;o++)i=i+r[o-1]<<1,n[o]=i;for(s=0;s<=t;s++){let a=e[s*2+1];a!==0&&(e[s*2]=o3(n[a]++,a))}},zq=()=>{let e,t,r,n,i;const o=new Array(ua+1);for(r=0,n=0;n<Zv-1;n++)for(i1[n]=r,e=0;e<1<<n1[n];e++)Kc[r++]=n;for(Kc[r-1]=n,i=0,n=0;n<16;n++)for(ff[n]=i,e=0;e<1<<df[n];e++)qc[i++]=n;for(i>>=7;n<il;n++)for(ff[n]=i<<7,e=0;e<1<<df[n]-7;e++)qc[256+i++]=n;for(t=0;t<=ua;t++)o[t]=0;for(e=0;e<=143;)Co[e*2+1]=8,e++,o[8]++;for(;e<=255;)Co[e*2+1]=9,e++,o[9]++;for(;e<=279;)Co[e*2+1]=7,e++,o[7]++;for(;e<=287;)Co[e*2+1]=8,e++,o[8]++;for(s3(Co,Bc+1,o),e=0;e<il;e++)Hc[e*2+1]=5,Hc[e*2]=o3(e,5);e3=new o1(Co,n1,Gc+1,Bc,ua),r3=new o1(Hc,df,0,il,ua),n3=new o1(new Array(0),Mq,0,t1,Fq)},a3=e=>{let t;for(t=0;t<Bc;t++)e.dyn_ltree[t*2]=0;for(t=0;t<il;t++)e.dyn_dtree[t*2]=0;for(t=0;t<t1;t++)e.bl_tree[t*2]=0;e.dyn_ltree[r1*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},l3=e=>{e.bi_valid>8?Yc(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},c3=(e,t,r,n)=>{const i=t*2,o=r*2;return e[i]<e[o]||e[i]===e[o]&&n[t]<=n[r]},a1=(e,t,r)=>{const n=e.heap[r];let i=r<<1;for(;i<=e.heap_len&&(i<e.heap_len&&c3(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!c3(t,n,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1;e.heap[r]=n},u3=(e,t,r)=>{let n,i,o=0,s,a;if(e.sym_next!==0)do n=e.pending_buf[e.sym_buf+o++]&255,n+=(e.pending_buf[e.sym_buf+o++]&255)<<8,i=e.pending_buf[e.sym_buf+o++],n===0?Vi(e,i,t):(s=Kc[i],Vi(e,s+Gc+1,t),a=n1[s],a!==0&&(i-=i1[s],On(e,i,a)),n--,s=i3(n),Vi(e,s,r),a=df[s],a!==0&&(n-=ff[s],On(e,n,a)));while(o<e.sym_next);Vi(e,r1,t)},l1=(e,t)=>{const r=t.dyn_tree,n=t.stat_desc.static_tree,i=t.stat_desc.has_stree,o=t.stat_desc.elems;let s,a,c=-1,l;for(e.heap_len=0,e.heap_max=JE,s=0;s<o;s++)r[s*2]!==0?(e.heap[++e.heap_len]=c=s,e.depth[s]=0):r[s*2+1]=0;for(;e.heap_len<2;)l=e.heap[++e.heap_len]=c<2?++c:0,r[l*2]=1,e.depth[l]=0,e.opt_len--,i&&(e.static_len-=n[l*2+1]);for(t.max_code=c,s=e.heap_len>>1;s>=1;s--)a1(e,r,s);l=o;do s=e.heap[1],e.heap[1]=e.heap[e.heap_len--],a1(e,r,1),a=e.heap[1],e.heap[--e.heap_max]=s,e.heap[--e.heap_max]=a,r[l*2]=r[s*2]+r[a*2],e.depth[l]=(e.depth[s]>=e.depth[a]?e.depth[s]:e.depth[a])+1,r[s*2+1]=r[a*2+1]=l,e.heap[1]=l++,a1(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],Uq(e,t),s3(r,c,e.bl_count)},h3=(e,t,r)=>{let n,i=-1,o,s=t[0*2+1],a=0,c=7,l=4;for(s===0&&(c=138,l=3),t[(r+1)*2+1]=65535,n=0;n<=r;n++)o=s,s=t[(n+1)*2+1],!(++a<c&&o===s)&&(a<l?e.bl_tree[o*2]+=a:o!==0?(o!==i&&e.bl_tree[o*2]++,e.bl_tree[WE*2]++):a<=10?e.bl_tree[QE*2]++:e.bl_tree[ZE*2]++,a=0,i=o,s===0?(c=138,l=3):o===s?(c=6,l=3):(c=7,l=4))},d3=(e,t,r)=>{let n,i=-1,o,s=t[0*2+1],a=0,c=7,l=4;for(s===0&&(c=138,l=3),n=0;n<=r;n++)if(o=s,s=t[(n+1)*2+1],!(++a<c&&o===s)){if(a<l)do Vi(e,o,e.bl_tree);while(--a!==0);else o!==0?(o!==i&&(Vi(e,o,e.bl_tree),a--),Vi(e,WE,e.bl_tree),On(e,a-3,2)):a<=10?(Vi(e,QE,e.bl_tree),On(e,a-3,3)):(Vi(e,ZE,e.bl_tree),On(e,a-11,7));a=0,i=o,s===0?(c=138,l=3):o===s?(c=6,l=3):(c=7,l=4)}},Gq=e=>{let t;for(h3(e,e.dyn_ltree,e.l_desc.max_code),h3(e,e.dyn_dtree,e.d_desc.max_code),l1(e,e.bl_desc),t=t1-1;t>=3&&e.bl_tree[t3[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},Bq=(e,t,r,n)=>{let i;for(On(e,t-257,5),On(e,r-1,5),On(e,n-4,4),i=0;i<n;i++)On(e,e.bl_tree[t3[i]*2+1],3);d3(e,e.dyn_ltree,t-1),d3(e,e.dyn_dtree,r-1)},Hq=e=>{let t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return KE;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return YE;for(r=32;r<Gc;r++)if(e.dyn_ltree[r*2]!==0)return YE;return KE};let f3=!1;const qq=e=>{f3||(zq(),f3=!0),e.l_desc=new s1(e.dyn_ltree,e3),e.d_desc=new s1(e.dyn_dtree,r3),e.bl_desc=new s1(e.bl_tree,n3),e.bi_buf=0,e.bi_valid=0,a3(e)},p3=(e,t,r,n)=>{On(e,(Dq<<1)+(n?1:0),3),l3(e),Yc(e,r),Yc(e,~r),r&&e.pending_buf.set(e.window.subarray(t,t+r),e.pending),e.pending+=r},Kq=e=>{On(e,XE<<1,3),Vi(e,r1,Co),Vq(e)},Yq=(e,t,r,n)=>{let i,o,s=0;e.level>0?(e.strm.data_type===Aq&&(e.strm.data_type=Hq(e)),l1(e,e.l_desc),l1(e,e.d_desc),s=Gq(e),i=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,o<=i&&(i=o)):i=o=r+5,r+4<=i&&t!==-1?p3(e,t,r,n):e.strategy===Nq||o===i?(On(e,(XE<<1)+(n?1:0),3),u3(e,Co,Hc)):(On(e,(Rq<<1)+(n?1:0),3),Bq(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),u3(e,e.dyn_ltree,e.dyn_dtree)),a3(e),n&&l3(e)},Xq=(e,t,r)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=r,t===0?e.dyn_ltree[r*2]++:(e.matches++,t--,e.dyn_ltree[(Kc[r]+Gc+1)*2]++,e.dyn_dtree[i3(t)*2]++),e.sym_next===e.sym_end);var Jq=qq,Wq=p3,Qq=Yq,Zq=Xq,tK=Kq,eK={_tr_init:Jq,_tr_stored_block:Wq,_tr_flush_block:Qq,_tr_tally:Zq,_tr_align:tK},Xc=(e,t,r,n)=>{let i=e&65535|0,o=e>>>16&65535|0,s=0;for(;r!==0;){s=r>2e3?2e3:r,r-=s;do i=i+t[n++]|0,o=o+i|0;while(--s);i%=65521,o%=65521}return i|o<<16|0};const rK=()=>{let e,t=[];for(var r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t},nK=new Uint32Array(rK());var Jr=(e,t,r,n)=>{const i=nK,o=n+r;e^=-1;for(let s=n;s<o;s++)e=e>>>8^i[(e^t[s])&255];return e^-1},ha={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},da={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:iK,_tr_stored_block:c1,_tr_flush_block:oK,_tr_tally:ls,_tr_align:sK}=eK,{Z_NO_FLUSH:cs,Z_PARTIAL_FLUSH:aK,Z_FULL_FLUSH:lK,Z_FINISH:ei,Z_BLOCK:m3,Z_OK:sn,Z_STREAM_END:g3,Z_STREAM_ERROR:Ui,Z_DATA_ERROR:cK,Z_BUF_ERROR:u1,Z_DEFAULT_COMPRESSION:uK,Z_FILTERED:hK,Z_HUFFMAN_ONLY:pf,Z_RLE:dK,Z_FIXED:fK,Z_DEFAULT_STRATEGY:pK,Z_UNKNOWN:mK,Z_DEFLATED:mf}=da,gK=9,vK=15,yK=8,_K=29,bK=256,h1=bK+1+_K,wK=30,xK=19,SK=2*h1+1,$K=15,Ie=3,us=258,zi=us+Ie+1,EK=32,ol=42,d1=57,f1=69,p1=73,m1=91,g1=103,fa=113,Jc=666,wn=1,sl=2,pa=3,al=4,CK=3,ma=(e,t)=>(e.msg=ha[t],t),v3=e=>e*2-(e>4?9:0),hs=e=>{let t=e.length;for(;--t>=0;)e[t]=0},kK=e=>{let t,r,n,i=e.w_size;t=e.hash_size,n=t;do r=e.head[--n],e.head[n]=r>=i?r-i:0;while(--t);t=i,n=t;do r=e.prev[--n],e.prev[n]=r>=i?r-i:0;while(--t)};let PK=(e,t,r)=>(t<<e.hash_shift^r)&e.hash_mask,ds=PK;const Vn=e=>{const t=e.state;let r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+r),e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,t.pending===0&&(t.pending_out=0))},Un=(e,t)=>{oK(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Vn(e.strm)},He=(e,t)=>{e.pending_buf[e.pending++]=t},Wc=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},v1=(e,t,r,n)=>{let i=e.avail_in;return i>n&&(i=n),i===0?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),r),e.state.wrap===1?e.adler=Xc(e.adler,t,i,r):e.state.wrap===2&&(e.adler=Jr(e.adler,t,i,r)),e.next_in+=i,e.total_in+=i,i)},y3=(e,t)=>{let r=e.max_chain_length,n=e.strstart,i,o,s=e.prev_length,a=e.nice_match;const c=e.strstart>e.w_size-zi?e.strstart-(e.w_size-zi):0,l=e.window,u=e.w_mask,h=e.prev,f=e.strstart+us;let d=l[n+s-1],p=l[n+s];e.prev_length>=e.good_match&&(r>>=2),a>e.lookahead&&(a=e.lookahead);do if(i=t,!(l[i+s]!==p||l[i+s-1]!==d||l[i]!==l[n]||l[++i]!==l[n+1])){n+=2,i++;do;while(l[++n]===l[++i]&&l[++n]===l[++i]&&l[++n]===l[++i]&&l[++n]===l[++i]&&l[++n]===l[++i]&&l[++n]===l[++i]&&l[++n]===l[++i]&&l[++n]===l[++i]&&n<f);if(o=us-(f-n),n=f-us,o>s){if(e.match_start=t,s=o,o>=a)break;d=l[n+s-1],p=l[n+s]}}while((t=h[t&u])>c&&--r!==0);return s<=e.lookahead?s:e.lookahead},ll=e=>{const t=e.w_size;let r,n,i;do{if(n=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-zi)&&(e.window.set(e.window.subarray(t,t+t-n),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),kK(e),n+=t),e.strm.avail_in===0)break;if(r=v1(e.strm,e.window,e.strstart+e.lookahead,n),e.lookahead+=r,e.lookahead+e.insert>=Ie)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=ds(e,e.ins_h,e.window[i+1]);e.insert&&(e.ins_h=ds(e,e.ins_h,e.window[i+Ie-1]),e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,!(e.lookahead+e.insert<Ie)););}while(e.lookahead<zi&&e.strm.avail_in!==0)},_3=(e,t)=>{let r=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,n,i,o,s=0,a=e.strm.avail_in;do{if(n=65535,o=e.bi_valid+42>>3,e.strm.avail_out<o||(o=e.strm.avail_out-o,i=e.strstart-e.block_start,n>i+e.strm.avail_in&&(n=i+e.strm.avail_in),n>o&&(n=o),n<r&&(n===0&&t!==ei||t===cs||n!==i+e.strm.avail_in)))break;s=t===ei&&n===i+e.strm.avail_in?1:0,c1(e,0,0,s),e.pending_buf[e.pending-4]=n,e.pending_buf[e.pending-3]=n>>8,e.pending_buf[e.pending-2]=~n,e.pending_buf[e.pending-1]=~n>>8,Vn(e.strm),i&&(i>n&&(i=n),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+i),e.strm.next_out),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i,e.block_start+=i,n-=i),n&&(v1(e.strm,e.strm.output,e.strm.next_out,n),e.strm.next_out+=n,e.strm.avail_out-=n,e.strm.total_out+=n)}while(s===0);return a-=e.strm.avail_in,a&&(a>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=a&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-a,e.strm.next_in),e.strstart),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),s?al:t!==cs&&t!==ei&&e.strm.avail_in===0&&e.strstart===e.block_start?sl:(o=e.window_size-e.strstart,e.strm.avail_in>o&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,o+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),o>e.strm.avail_in&&(o=e.strm.avail_in),o&&(v1(e.strm,e.window,e.strstart,o),e.strstart+=o,e.insert+=o>e.w_size-e.insert?e.w_size-e.insert:o),e.high_water<e.strstart&&(e.high_water=e.strstart),o=e.bi_valid+42>>3,o=e.pending_buf_size-o>65535?65535:e.pending_buf_size-o,r=o>e.w_size?e.w_size:o,i=e.strstart-e.block_start,(i>=r||(i||t===ei)&&t!==cs&&e.strm.avail_in===0&&i<=o)&&(n=i>o?o:i,s=t===ei&&e.strm.avail_in===0&&n===i?1:0,c1(e,e.block_start,n,s),e.block_start+=n,Vn(e.strm)),s?pa:wn)},y1=(e,t)=>{let r,n;for(;;){if(e.lookahead<zi){if(ll(e),e.lookahead<zi&&t===cs)return wn;if(e.lookahead===0)break}if(r=0,e.lookahead>=Ie&&(e.ins_h=ds(e,e.ins_h,e.window[e.strstart+Ie-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),r!==0&&e.strstart-r<=e.w_size-zi&&(e.match_length=y3(e,r)),e.match_length>=Ie)if(n=ls(e,e.strstart-e.match_start,e.match_length-Ie),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=Ie){e.match_length--;do e.strstart++,e.ins_h=ds(e,e.ins_h,e.window[e.strstart+Ie-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=ds(e,e.ins_h,e.window[e.strstart+1]);else n=ls(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(Un(e,!1),e.strm.avail_out===0))return wn}return e.insert=e.strstart<Ie-1?e.strstart:Ie-1,t===ei?(Un(e,!0),e.strm.avail_out===0?pa:al):e.sym_next&&(Un(e,!1),e.strm.avail_out===0)?wn:sl},cl=(e,t)=>{let r,n,i;for(;;){if(e.lookahead<zi){if(ll(e),e.lookahead<zi&&t===cs)return wn;if(e.lookahead===0)break}if(r=0,e.lookahead>=Ie&&(e.ins_h=ds(e,e.ins_h,e.window[e.strstart+Ie-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=Ie-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-zi&&(e.match_length=y3(e,r),e.match_length<=5&&(e.strategy===hK||e.match_length===Ie&&e.strstart-e.match_start>4096)&&(e.match_length=Ie-1)),e.prev_length>=Ie&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-Ie,n=ls(e,e.strstart-1-e.prev_match,e.prev_length-Ie),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=ds(e,e.ins_h,e.window[e.strstart+Ie-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=Ie-1,e.strstart++,n&&(Un(e,!1),e.strm.avail_out===0))return wn}else if(e.match_available){if(n=ls(e,0,e.window[e.strstart-1]),n&&Un(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return wn}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=ls(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<Ie-1?e.strstart:Ie-1,t===ei?(Un(e,!0),e.strm.avail_out===0?pa:al):e.sym_next&&(Un(e,!1),e.strm.avail_out===0)?wn:sl},TK=(e,t)=>{let r,n,i,o;const s=e.window;for(;;){if(e.lookahead<=us){if(ll(e),e.lookahead<=us&&t===cs)return wn;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=Ie&&e.strstart>0&&(i=e.strstart-1,n=s[i],n===s[++i]&&n===s[++i]&&n===s[++i])){o=e.strstart+us;do;while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&i<o);e.match_length=us-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=Ie?(r=ls(e,1,e.match_length-Ie),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=ls(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(Un(e,!1),e.strm.avail_out===0))return wn}return e.insert=0,t===ei?(Un(e,!0),e.strm.avail_out===0?pa:al):e.sym_next&&(Un(e,!1),e.strm.avail_out===0)?wn:sl},OK=(e,t)=>{let r;for(;;){if(e.lookahead===0&&(ll(e),e.lookahead===0)){if(t===cs)return wn;break}if(e.match_length=0,r=ls(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(Un(e,!1),e.strm.avail_out===0))return wn}return e.insert=0,t===ei?(Un(e,!0),e.strm.avail_out===0?pa:al):e.sym_next&&(Un(e,!1),e.strm.avail_out===0)?wn:sl};function Gi(e,t,r,n,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=i}const Qc=[new Gi(0,0,0,0,_3),new Gi(4,4,8,4,y1),new Gi(4,5,16,8,y1),new Gi(4,6,32,32,y1),new Gi(4,4,16,16,cl),new Gi(8,16,32,32,cl),new Gi(8,16,128,128,cl),new Gi(8,32,128,256,cl),new Gi(32,128,258,1024,cl),new Gi(32,258,258,4096,cl)],NK=e=>{e.window_size=2*e.w_size,hs(e.head),e.max_lazy_match=Qc[e.level].max_lazy,e.good_match=Qc[e.level].good_length,e.nice_match=Qc[e.level].nice_length,e.max_chain_length=Qc[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=Ie-1,e.match_available=0,e.ins_h=0};function AK(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=mf,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(SK*2),this.dyn_dtree=new Uint16Array((2*wK+1)*2),this.bl_tree=new Uint16Array((2*xK+1)*2),hs(this.dyn_ltree),hs(this.dyn_dtree),hs(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array($K+1),this.heap=new Uint16Array(2*h1+1),hs(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*h1+1),hs(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Zc=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==ol&&t.status!==d1&&t.status!==f1&&t.status!==p1&&t.status!==m1&&t.status!==g1&&t.status!==fa&&t.status!==Jc?1:0},b3=e=>{if(Zc(e))return ma(e,Ui);e.total_in=e.total_out=0,e.data_type=mK;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?d1:t.wrap?ol:fa,e.adler=t.wrap===2?0:1,t.last_flush=-2,iK(t),sn},w3=e=>{const t=b3(e);return t===sn&&NK(e.state),t},DK=(e,t)=>Zc(e)||e.state.wrap!==2?Ui:(e.state.gzhead=t,sn),x3=(e,t,r,n,i,o)=>{if(!e)return Ui;let s=1;if(t===uK&&(t=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),i<1||i>gK||r!==mf||n<8||n>15||t<0||t>9||o<0||o>fK||n===8&&s!==1)return ma(e,Ui);n===8&&(n=9);const a=new AK;return e.state=a,a.strm=e,a.status=ol,a.wrap=s,a.gzhead=null,a.w_bits=n,a.w_size=1<<a.w_bits,a.w_mask=a.w_size-1,a.hash_bits=i+7,a.hash_size=1<<a.hash_bits,a.hash_mask=a.hash_size-1,a.hash_shift=~~((a.hash_bits+Ie-1)/Ie),a.window=new Uint8Array(a.w_size*2),a.head=new Uint16Array(a.hash_size),a.prev=new Uint16Array(a.w_size),a.lit_bufsize=1<<i+6,a.pending_buf_size=a.lit_bufsize*4,a.pending_buf=new Uint8Array(a.pending_buf_size),a.sym_buf=a.lit_bufsize,a.sym_end=(a.lit_bufsize-1)*3,a.level=t,a.strategy=o,a.method=r,w3(e)},RK=(e,t)=>x3(e,t,mf,vK,yK,pK),IK=(e,t)=>{if(Zc(e)||t>m3||t<0)return e?ma(e,Ui):Ui;const r=e.state;if(!e.output||e.avail_in!==0&&!e.input||r.status===Jc&&t!==ei)return ma(e,e.avail_out===0?u1:Ui);const n=r.last_flush;if(r.last_flush=t,r.pending!==0){if(Vn(e),e.avail_out===0)return r.last_flush=-1,sn}else if(e.avail_in===0&&v3(t)<=v3(n)&&t!==ei)return ma(e,u1);if(r.status===Jc&&e.avail_in!==0)return ma(e,u1);if(r.status===ol&&r.wrap===0&&(r.status=fa),r.status===ol){let i=mf+(r.w_bits-8<<4)<<8,o=-1;if(r.strategy>=pf||r.level<2?o=0:r.level<6?o=1:r.level===6?o=2:o=3,i|=o<<6,r.strstart!==0&&(i|=EK),i+=31-i%31,Wc(r,i),r.strstart!==0&&(Wc(r,e.adler>>>16),Wc(r,e.adler&65535)),e.adler=1,r.status=fa,Vn(e),r.pending!==0)return r.last_flush=-1,sn}if(r.status===d1){if(e.adler=0,He(r,31),He(r,139),He(r,8),r.gzhead)He(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),He(r,r.gzhead.time&255),He(r,r.gzhead.time>>8&255),He(r,r.gzhead.time>>16&255),He(r,r.gzhead.time>>24&255),He(r,r.level===9?2:r.strategy>=pf||r.level<2?4:0),He(r,r.gzhead.os&255),r.gzhead.extra&&r.gzhead.extra.length&&(He(r,r.gzhead.extra.length&255),He(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=Jr(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=f1;else if(He(r,0),He(r,0),He(r,0),He(r,0),He(r,0),He(r,r.level===9?2:r.strategy>=pf||r.level<2?4:0),He(r,CK),r.status=fa,Vn(e),r.pending!==0)return r.last_flush=-1,sn}if(r.status===f1){if(r.gzhead.extra){let i=r.pending,o=(r.gzhead.extra.length&65535)-r.gzindex;for(;r.pending+o>r.pending_buf_size;){let a=r.pending_buf_size-r.pending;if(r.pending_buf.set(r.gzhead.extra.subarray(r.gzindex,r.gzindex+a),r.pending),r.pending=r.pending_buf_size,r.gzhead.hcrc&&r.pending>i&&(e.adler=Jr(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex+=a,Vn(e),r.pending!==0)return r.last_flush=-1,sn;i=0,o-=a}let s=new Uint8Array(r.gzhead.extra);r.pending_buf.set(s.subarray(r.gzindex,r.gzindex+o),r.pending),r.pending+=o,r.gzhead.hcrc&&r.pending>i&&(e.adler=Jr(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex=0}r.status=p1}if(r.status===p1){if(r.gzhead.name){let i=r.pending,o;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>i&&(e.adler=Jr(e.adler,r.pending_buf,r.pending-i,i)),Vn(e),r.pending!==0)return r.last_flush=-1,sn;i=0}r.gzindex<r.gzhead.name.length?o=r.gzhead.name.charCodeAt(r.gzindex++)&255:o=0,He(r,o)}while(o!==0);r.gzhead.hcrc&&r.pending>i&&(e.adler=Jr(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex=0}r.status=m1}if(r.status===m1){if(r.gzhead.comment){let i=r.pending,o;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>i&&(e.adler=Jr(e.adler,r.pending_buf,r.pending-i,i)),Vn(e),r.pending!==0)return r.last_flush=-1,sn;i=0}r.gzindex<r.gzhead.comment.length?o=r.gzhead.comment.charCodeAt(r.gzindex++)&255:o=0,He(r,o)}while(o!==0);r.gzhead.hcrc&&r.pending>i&&(e.adler=Jr(e.adler,r.pending_buf,r.pending-i,i))}r.status=g1}if(r.status===g1){if(r.gzhead.hcrc){if(r.pending+2>r.pending_buf_size&&(Vn(e),r.pending!==0))return r.last_flush=-1,sn;He(r,e.adler&255),He(r,e.adler>>8&255),e.adler=0}if(r.status=fa,Vn(e),r.pending!==0)return r.last_flush=-1,sn}if(e.avail_in!==0||r.lookahead!==0||t!==cs&&r.status!==Jc){let i=r.level===0?_3(r,t):r.strategy===pf?OK(r,t):r.strategy===dK?TK(r,t):Qc[r.level].func(r,t);if((i===pa||i===al)&&(r.status=Jc),i===wn||i===pa)return e.avail_out===0&&(r.last_flush=-1),sn;if(i===sl&&(t===aK?sK(r):t!==m3&&(c1(r,0,0,!1),t===lK&&(hs(r.head),r.lookahead===0&&(r.strstart=0,r.block_start=0,r.insert=0))),Vn(e),e.avail_out===0))return r.last_flush=-1,sn}return t!==ei?sn:r.wrap<=0?g3:(r.wrap===2?(He(r,e.adler&255),He(r,e.adler>>8&255),He(r,e.adler>>16&255),He(r,e.adler>>24&255),He(r,e.total_in&255),He(r,e.total_in>>8&255),He(r,e.total_in>>16&255),He(r,e.total_in>>24&255)):(Wc(r,e.adler>>>16),Wc(r,e.adler&65535)),Vn(e),r.wrap>0&&(r.wrap=-r.wrap),r.pending!==0?sn:g3)},jK=e=>{if(Zc(e))return Ui;const t=e.state.status;return e.state=null,t===fa?ma(e,cK):sn},FK=(e,t)=>{let r=t.length;if(Zc(e))return Ui;const n=e.state,i=n.wrap;if(i===2||i===1&&n.status!==ol||n.lookahead)return Ui;if(i===1&&(e.adler=Xc(e.adler,t,r,0)),n.wrap=0,r>=n.w_size){i===0&&(hs(n.head),n.strstart=0,n.block_start=0,n.insert=0);let c=new Uint8Array(n.w_size);c.set(t.subarray(r-n.w_size,r),0),t=c,r=n.w_size}const o=e.avail_in,s=e.next_in,a=e.input;for(e.avail_in=r,e.next_in=0,e.input=t,ll(n);n.lookahead>=Ie;){let c=n.strstart,l=n.lookahead-(Ie-1);do n.ins_h=ds(n,n.ins_h,n.window[c+Ie-1]),n.prev[c&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=c,c++;while(--l);n.strstart=c,n.lookahead=Ie-1,ll(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=Ie-1,n.match_available=0,e.next_in=s,e.input=a,e.avail_in=o,n.wrap=i,sn};var MK=RK,LK=x3,VK=w3,UK=b3,zK=DK,GK=IK,BK=jK,HK=FK,qK="pako deflate (from Nodeca project)",tu={deflateInit:MK,deflateInit2:LK,deflateReset:VK,deflateResetKeep:UK,deflateSetHeader:zK,deflate:GK,deflateEnd:BK,deflateSetDictionary:HK,deflateInfo:qK};const KK=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var YK=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const r=t.shift();if(r){if(typeof r!="object")throw new TypeError(r+"must be non-object");for(const n in r)KK(r,n)&&(e[n]=r[n])}}return e},XK=e=>{let t=0;for(let n=0,i=e.length;n<i;n++)t+=e[n].length;const r=new Uint8Array(t);for(let n=0,i=0,o=e.length;n<o;n++){let s=e[n];r.set(s,i),i+=s.length}return r},gf={assign:YK,flattenChunks:XK};let S3=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{S3=!1}const eu=new Uint8Array(256);for(let e=0;e<256;e++)eu[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;eu[254]=eu[254]=1;var JK=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,r,n,i,o,s=e.length,a=0;for(i=0;i<s;i++)r=e.charCodeAt(i),(r&64512)===55296&&i+1<s&&(n=e.charCodeAt(i+1),(n&64512)===56320&&(r=65536+(r-55296<<10)+(n-56320),i++)),a+=r<128?1:r<2048?2:r<65536?3:4;for(t=new Uint8Array(a),o=0,i=0;o<a;i++)r=e.charCodeAt(i),(r&64512)===55296&&i+1<s&&(n=e.charCodeAt(i+1),(n&64512)===56320&&(r=65536+(r-55296<<10)+(n-56320),i++)),r<128?t[o++]=r:r<2048?(t[o++]=192|r>>>6,t[o++]=128|r&63):r<65536?(t[o++]=224|r>>>12,t[o++]=128|r>>>6&63,t[o++]=128|r&63):(t[o++]=240|r>>>18,t[o++]=128|r>>>12&63,t[o++]=128|r>>>6&63,t[o++]=128|r&63);return t};const WK=(e,t)=>{if(t<65534&&e.subarray&&S3)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let r="";for(let n=0;n<t;n++)r+=String.fromCharCode(e[n]);return r};var QK=(e,t)=>{const r=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let n,i;const o=new Array(r*2);for(i=0,n=0;n<r;){let s=e[n++];if(s<128){o[i++]=s;continue}let a=eu[s];if(a>4){o[i++]=65533,n+=a-1;continue}for(s&=a===2?31:a===3?15:7;a>1&&n<r;)s=s<<6|e[n++]&63,a--;if(a>1){o[i++]=65533;continue}s<65536?o[i++]=s:(s-=65536,o[i++]=55296|s>>10&1023,o[i++]=56320|s&1023)}return WK(o,i)},ZK=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let r=t-1;for(;r>=0&&(e[r]&192)===128;)r--;return r<0||r===0?t:r+eu[e[r]]>t?r:t},ru={string2buf:JK,buf2string:QK,utf8border:ZK};function tY(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var $3=tY;const E3=Object.prototype.toString,{Z_NO_FLUSH:eY,Z_SYNC_FLUSH:rY,Z_FULL_FLUSH:nY,Z_FINISH:iY,Z_OK:vf,Z_STREAM_END:oY,Z_DEFAULT_COMPRESSION:sY,Z_DEFAULT_STRATEGY:aY,Z_DEFLATED:lY}=da;function nu(e){this.options=gf.assign({level:sY,method:lY,chunkSize:16384,windowBits:15,memLevel:8,strategy:aY},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new $3,this.strm.avail_out=0;let r=tu.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==vf)throw new Error(ha[r]);if(t.header&&tu.deflateSetHeader(this.strm,t.header),t.dictionary){let n;if(typeof t.dictionary=="string"?n=ru.string2buf(t.dictionary):E3.call(t.dictionary)==="[object ArrayBuffer]"?n=new Uint8Array(t.dictionary):n=t.dictionary,r=tu.deflateSetDictionary(this.strm,n),r!==vf)throw new Error(ha[r]);this._dict_set=!0}}nu.prototype.push=function(e,t){const r=this.strm,n=this.options.chunkSize;let i,o;if(this.ended)return!1;for(t===~~t?o=t:o=t===!0?iY:eY,typeof e=="string"?r.input=ru.string2buf(e):E3.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;;){if(r.avail_out===0&&(r.output=new Uint8Array(n),r.next_out=0,r.avail_out=n),(o===rY||o===nY)&&r.avail_out<=6){this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;continue}if(i=tu.deflate(r,o),i===oY)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),i=tu.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===vf;if(r.avail_out===0){this.onData(r.output);continue}if(o>0&&r.next_out>0){this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;continue}if(r.avail_in===0)break}return!0},nu.prototype.onData=function(e){this.chunks.push(e)},nu.prototype.onEnd=function(e){e===vf&&(this.result=gf.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function _1(e,t){const r=new nu(t);if(r.push(e,!0),r.err)throw r.msg||ha[r.err];return r.result}function cY(e,t){return t=t||{},t.raw=!0,_1(e,t)}function uY(e,t){return t=t||{},t.gzip=!0,_1(e,t)}var hY=nu,dY=_1,fY=cY,pY=uY,mY=da,gY={Deflate:hY,deflate:dY,deflateRaw:fY,gzip:pY,constants:mY};const yf=16209,vY=16191;var yY=function(e,t){let r,n,i,o,s,a,c,l,u,h,f,d,p,g,v,b,y,m,x,A,E,k,D,V;const U=e.state;r=e.next_in,D=e.input,n=r+(e.avail_in-5),i=e.next_out,V=e.output,o=i-(t-e.avail_out),s=i+(e.avail_out-257),a=U.dmax,c=U.wsize,l=U.whave,u=U.wnext,h=U.window,f=U.hold,d=U.bits,p=U.lencode,g=U.distcode,v=(1<<U.lenbits)-1,b=(1<<U.distbits)-1;t:do{d<15&&(f+=D[r++]<<d,d+=8,f+=D[r++]<<d,d+=8),y=p[f&v];e:for(;;){if(m=y>>>24,f>>>=m,d-=m,m=y>>>16&255,m===0)V[i++]=y&65535;else if(m&16){x=y&65535,m&=15,m&&(d<m&&(f+=D[r++]<<d,d+=8),x+=f&(1<<m)-1,f>>>=m,d-=m),d<15&&(f+=D[r++]<<d,d+=8,f+=D[r++]<<d,d+=8),y=g[f&b];r:for(;;){if(m=y>>>24,f>>>=m,d-=m,m=y>>>16&255,m&16){if(A=y&65535,m&=15,d<m&&(f+=D[r++]<<d,d+=8,d<m&&(f+=D[r++]<<d,d+=8)),A+=f&(1<<m)-1,A>a){e.msg="invalid distance too far back",U.mode=yf;break t}if(f>>>=m,d-=m,m=i-o,A>m){if(m=A-m,m>l&&U.sane){e.msg="invalid distance too far back",U.mode=yf;break t}if(E=0,k=h,u===0){if(E+=c-m,m<x){x-=m;do V[i++]=h[E++];while(--m);E=i-A,k=V}}else if(u<m){if(E+=c+u-m,m-=u,m<x){x-=m;do V[i++]=h[E++];while(--m);if(E=0,u<x){m=u,x-=m;do V[i++]=h[E++];while(--m);E=i-A,k=V}}}else if(E+=u-m,m<x){x-=m;do V[i++]=h[E++];while(--m);E=i-A,k=V}for(;x>2;)V[i++]=k[E++],V[i++]=k[E++],V[i++]=k[E++],x-=3;x&&(V[i++]=k[E++],x>1&&(V[i++]=k[E++]))}else{E=i-A;do V[i++]=V[E++],V[i++]=V[E++],V[i++]=V[E++],x-=3;while(x>2);x&&(V[i++]=V[E++],x>1&&(V[i++]=V[E++]))}}else if(m&64){e.msg="invalid distance code",U.mode=yf;break t}else{y=g[(y&65535)+(f&(1<<m)-1)];continue r}break}}else if(m&64)if(m&32){U.mode=vY;break t}else{e.msg="invalid literal/length code",U.mode=yf;break t}else{y=p[(y&65535)+(f&(1<<m)-1)];continue e}break}}while(r<n&&i<s);x=d>>3,r-=x,d-=x<<3,f&=(1<<d)-1,e.next_in=r,e.next_out=i,e.avail_in=r<n?5+(n-r):5-(r-n),e.avail_out=i<s?257+(s-i):257-(i-s),U.hold=f,U.bits=d};const ul=15,C3=852,k3=592,P3=0,b1=1,T3=2,_Y=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),bY=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),wY=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),xY=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var iu=(e,t,r,n,i,o,s,a)=>{const c=a.bits;let l=0,u=0,h=0,f=0,d=0,p=0,g=0,v=0,b=0,y=0,m,x,A,E,k,D=null,V;const U=new Uint16Array(ul+1),K=new Uint16Array(ul+1);let Y=null,it,nt,ft;for(l=0;l<=ul;l++)U[l]=0;for(u=0;u<n;u++)U[t[r+u]]++;for(d=c,f=ul;f>=1&&U[f]===0;f--);if(d>f&&(d=f),f===0)return i[o++]=1<<24|64<<16|0,i[o++]=1<<24|64<<16|0,a.bits=1,0;for(h=1;h<f&&U[h]===0;h++);for(d<h&&(d=h),v=1,l=1;l<=ul;l++)if(v<<=1,v-=U[l],v<0)return-1;if(v>0&&(e===P3||f!==1))return-1;for(K[1]=0,l=1;l<ul;l++)K[l+1]=K[l]+U[l];for(u=0;u<n;u++)t[r+u]!==0&&(s[K[t[r+u]]++]=u);if(e===P3?(D=Y=s,V=20):e===b1?(D=_Y,Y=bY,V=257):(D=wY,Y=xY,V=0),y=0,u=0,l=h,k=o,p=d,g=0,A=-1,b=1<<d,E=b-1,e===b1&&b>C3||e===T3&&b>k3)return 1;for(;;){it=l-g,s[u]+1<V?(nt=0,ft=s[u]):s[u]>=V?(nt=Y[s[u]-V],ft=D[s[u]-V]):(nt=32+64,ft=0),m=1<<l-g,x=1<<p,h=x;do x-=m,i[k+(y>>g)+x]=it<<24|nt<<16|ft|0;while(x!==0);for(m=1<<l-1;y&m;)m>>=1;if(m!==0?(y&=m-1,y+=m):y=0,u++,--U[l]===0){if(l===f)break;l=t[r+s[u]]}if(l>d&&(y&E)!==A){for(g===0&&(g=d),k+=h,p=l-g,v=1<<p;p+g<f&&(v-=U[p+g],!(v<=0));)p++,v<<=1;if(b+=1<<p,e===b1&&b>C3||e===T3&&b>k3)return 1;A=y&E,i[A]=d<<24|p<<16|k-o|0}}return y!==0&&(i[k+y]=l-g<<24|64<<16|0),a.bits=d,0};const SY=0,O3=1,N3=2,{Z_FINISH:A3,Z_BLOCK:$Y,Z_TREES:_f,Z_OK:ga,Z_STREAM_END:EY,Z_NEED_DICT:CY,Z_STREAM_ERROR:$i,Z_DATA_ERROR:D3,Z_MEM_ERROR:R3,Z_BUF_ERROR:kY,Z_DEFLATED:I3}=da,bf=16180,j3=16181,F3=16182,M3=16183,L3=16184,V3=16185,U3=16186,z3=16187,G3=16188,B3=16189,wf=16190,ko=16191,w1=16192,H3=16193,x1=16194,q3=16195,K3=16196,Y3=16197,X3=16198,xf=16199,Sf=16200,J3=16201,W3=16202,Q3=16203,Z3=16204,tC=16205,S1=16206,eC=16207,rC=16208,vr=16209,nC=16210,iC=16211,PY=852,TY=592,OY=15,NY=OY,oC=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function AY(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const va=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<bf||t.mode>iC?1:0},sC=e=>{if(va(e))return $i;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=bf,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(PY),t.distcode=t.distdyn=new Int32Array(TY),t.sane=1,t.back=-1,ga},aC=e=>{if(va(e))return $i;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,sC(e)},lC=(e,t)=>{let r;if(va(e))return $i;const n=e.state;return t<0?(r=0,t=-t):(r=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?$i:(n.window!==null&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,aC(e))},cC=(e,t)=>{if(!e)return $i;const r=new AY;e.state=r,r.strm=e,r.window=null,r.mode=bf;const n=lC(e,t);return n!==ga&&(e.state=null),n},DY=e=>cC(e,NY);let uC=!0,$1,E1;const RY=e=>{if(uC){$1=new Int32Array(512),E1=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(iu(O3,e.lens,0,288,$1,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;iu(N3,e.lens,0,32,E1,0,e.work,{bits:5}),uC=!1}e.lencode=$1,e.lenbits=9,e.distcode=E1,e.distbits=5},hC=(e,t,r,n)=>{let i;const o=e.state;return o.window===null&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new Uint8Array(o.wsize)),n>=o.wsize?(o.window.set(t.subarray(r-o.wsize,r),0),o.wnext=0,o.whave=o.wsize):(i=o.wsize-o.wnext,i>n&&(i=n),o.window.set(t.subarray(r-n,r-n+i),o.wnext),n-=i,n?(o.window.set(t.subarray(r-n,r),0),o.wnext=n,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0},IY=(e,t)=>{let r,n,i,o,s,a,c,l,u,h,f,d,p,g,v=0,b,y,m,x,A,E,k,D;const V=new Uint8Array(4);let U,K;const Y=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(va(e)||!e.output||!e.input&&e.avail_in!==0)return $i;r=e.state,r.mode===ko&&(r.mode=w1),s=e.next_out,i=e.output,c=e.avail_out,o=e.next_in,n=e.input,a=e.avail_in,l=r.hold,u=r.bits,h=a,f=c,D=ga;t:for(;;)switch(r.mode){case bf:if(r.wrap===0){r.mode=w1;break}for(;u<16;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}if(r.wrap&2&&l===35615){r.wbits===0&&(r.wbits=15),r.check=0,V[0]=l&255,V[1]=l>>>8&255,r.check=Jr(r.check,V,2,0),l=0,u=0,r.mode=j3;break}if(r.head&&(r.head.done=!1),!(r.wrap&1)||(((l&255)<<8)+(l>>8))%31){e.msg="incorrect header check",r.mode=vr;break}if((l&15)!==I3){e.msg="unknown compression method",r.mode=vr;break}if(l>>>=4,u-=4,k=(l&15)+8,r.wbits===0&&(r.wbits=k),k>15||k>r.wbits){e.msg="invalid window size",r.mode=vr;break}r.dmax=1<<r.wbits,r.flags=0,e.adler=r.check=1,r.mode=l&512?B3:ko,l=0,u=0;break;case j3:for(;u<16;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}if(r.flags=l,(r.flags&255)!==I3){e.msg="unknown compression method",r.mode=vr;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=vr;break}r.head&&(r.head.text=l>>8&1),r.flags&512&&r.wrap&4&&(V[0]=l&255,V[1]=l>>>8&255,r.check=Jr(r.check,V,2,0)),l=0,u=0,r.mode=F3;case F3:for(;u<32;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}r.head&&(r.head.time=l),r.flags&512&&r.wrap&4&&(V[0]=l&255,V[1]=l>>>8&255,V[2]=l>>>16&255,V[3]=l>>>24&255,r.check=Jr(r.check,V,4,0)),l=0,u=0,r.mode=M3;case M3:for(;u<16;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}r.head&&(r.head.xflags=l&255,r.head.os=l>>8),r.flags&512&&r.wrap&4&&(V[0]=l&255,V[1]=l>>>8&255,r.check=Jr(r.check,V,2,0)),l=0,u=0,r.mode=L3;case L3:if(r.flags&1024){for(;u<16;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}r.length=l,r.head&&(r.head.extra_len=l),r.flags&512&&r.wrap&4&&(V[0]=l&255,V[1]=l>>>8&255,r.check=Jr(r.check,V,2,0)),l=0,u=0}else r.head&&(r.head.extra=null);r.mode=V3;case V3:if(r.flags&1024&&(d=r.length,d>a&&(d=a),d&&(r.head&&(k=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(n.subarray(o,o+d),k)),r.flags&512&&r.wrap&4&&(r.check=Jr(r.check,n,d,o)),a-=d,o+=d,r.length-=d),r.length))break t;r.length=0,r.mode=U3;case U3:if(r.flags&2048){if(a===0)break t;d=0;do k=n[o+d++],r.head&&k&&r.length<65536&&(r.head.name+=String.fromCharCode(k));while(k&&d<a);if(r.flags&512&&r.wrap&4&&(r.check=Jr(r.check,n,d,o)),a-=d,o+=d,k)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=z3;case z3:if(r.flags&4096){if(a===0)break t;d=0;do k=n[o+d++],r.head&&k&&r.length<65536&&(r.head.comment+=String.fromCharCode(k));while(k&&d<a);if(r.flags&512&&r.wrap&4&&(r.check=Jr(r.check,n,d,o)),a-=d,o+=d,k)break t}else r.head&&(r.head.comment=null);r.mode=G3;case G3:if(r.flags&512){for(;u<16;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}if(r.wrap&4&&l!==(r.check&65535)){e.msg="header crc mismatch",r.mode=vr;break}l=0,u=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=ko;break;case B3:for(;u<32;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}e.adler=r.check=oC(l),l=0,u=0,r.mode=wf;case wf:if(r.havedict===0)return e.next_out=s,e.avail_out=c,e.next_in=o,e.avail_in=a,r.hold=l,r.bits=u,CY;e.adler=r.check=1,r.mode=ko;case ko:if(t===$Y||t===_f)break t;case w1:if(r.last){l>>>=u&7,u-=u&7,r.mode=S1;break}for(;u<3;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}switch(r.last=l&1,l>>>=1,u-=1,l&3){case 0:r.mode=H3;break;case 1:if(RY(r),r.mode=xf,t===_f){l>>>=2,u-=2;break t}break;case 2:r.mode=K3;break;case 3:e.msg="invalid block type",r.mode=vr}l>>>=2,u-=2;break;case H3:for(l>>>=u&7,u-=u&7;u<32;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}if((l&65535)!==(l>>>16^65535)){e.msg="invalid stored block lengths",r.mode=vr;break}if(r.length=l&65535,l=0,u=0,r.mode=x1,t===_f)break t;case x1:r.mode=q3;case q3:if(d=r.length,d){if(d>a&&(d=a),d>c&&(d=c),d===0)break t;i.set(n.subarray(o,o+d),s),a-=d,o+=d,c-=d,s+=d,r.length-=d;break}r.mode=ko;break;case K3:for(;u<14;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}if(r.nlen=(l&31)+257,l>>>=5,u-=5,r.ndist=(l&31)+1,l>>>=5,u-=5,r.ncode=(l&15)+4,l>>>=4,u-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=vr;break}r.have=0,r.mode=Y3;case Y3:for(;r.have<r.ncode;){for(;u<3;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}r.lens[Y[r.have++]]=l&7,l>>>=3,u-=3}for(;r.have<19;)r.lens[Y[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,U={bits:r.lenbits},D=iu(SY,r.lens,0,19,r.lencode,0,r.work,U),r.lenbits=U.bits,D){e.msg="invalid code lengths set",r.mode=vr;break}r.have=0,r.mode=X3;case X3:for(;r.have<r.nlen+r.ndist;){for(;v=r.lencode[l&(1<<r.lenbits)-1],b=v>>>24,y=v>>>16&255,m=v&65535,!(b<=u);){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}if(m<16)l>>>=b,u-=b,r.lens[r.have++]=m;else{if(m===16){for(K=b+2;u<K;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}if(l>>>=b,u-=b,r.have===0){e.msg="invalid bit length repeat",r.mode=vr;break}k=r.lens[r.have-1],d=3+(l&3),l>>>=2,u-=2}else if(m===17){for(K=b+3;u<K;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}l>>>=b,u-=b,k=0,d=3+(l&7),l>>>=3,u-=3}else{for(K=b+7;u<K;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}l>>>=b,u-=b,k=0,d=11+(l&127),l>>>=7,u-=7}if(r.have+d>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=vr;break}for(;d--;)r.lens[r.have++]=k}}if(r.mode===vr)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=vr;break}if(r.lenbits=9,U={bits:r.lenbits},D=iu(O3,r.lens,0,r.nlen,r.lencode,0,r.work,U),r.lenbits=U.bits,D){e.msg="invalid literal/lengths set",r.mode=vr;break}if(r.distbits=6,r.distcode=r.distdyn,U={bits:r.distbits},D=iu(N3,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,U),r.distbits=U.bits,D){e.msg="invalid distances set",r.mode=vr;break}if(r.mode=xf,t===_f)break t;case xf:r.mode=Sf;case Sf:if(a>=6&&c>=258){e.next_out=s,e.avail_out=c,e.next_in=o,e.avail_in=a,r.hold=l,r.bits=u,yY(e,f),s=e.next_out,i=e.output,c=e.avail_out,o=e.next_in,n=e.input,a=e.avail_in,l=r.hold,u=r.bits,r.mode===ko&&(r.back=-1);break}for(r.back=0;v=r.lencode[l&(1<<r.lenbits)-1],b=v>>>24,y=v>>>16&255,m=v&65535,!(b<=u);){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}if(y&&!(y&240)){for(x=b,A=y,E=m;v=r.lencode[E+((l&(1<<x+A)-1)>>x)],b=v>>>24,y=v>>>16&255,m=v&65535,!(x+b<=u);){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}l>>>=x,u-=x,r.back+=x}if(l>>>=b,u-=b,r.back+=b,r.length=m,y===0){r.mode=tC;break}if(y&32){r.back=-1,r.mode=ko;break}if(y&64){e.msg="invalid literal/length code",r.mode=vr;break}r.extra=y&15,r.mode=J3;case J3:if(r.extra){for(K=r.extra;u<K;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}r.length+=l&(1<<r.extra)-1,l>>>=r.extra,u-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=W3;case W3:for(;v=r.distcode[l&(1<<r.distbits)-1],b=v>>>24,y=v>>>16&255,m=v&65535,!(b<=u);){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}if(!(y&240)){for(x=b,A=y,E=m;v=r.distcode[E+((l&(1<<x+A)-1)>>x)],b=v>>>24,y=v>>>16&255,m=v&65535,!(x+b<=u);){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}l>>>=x,u-=x,r.back+=x}if(l>>>=b,u-=b,r.back+=b,y&64){e.msg="invalid distance code",r.mode=vr;break}r.offset=m,r.extra=y&15,r.mode=Q3;case Q3:if(r.extra){for(K=r.extra;u<K;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}r.offset+=l&(1<<r.extra)-1,l>>>=r.extra,u-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=vr;break}r.mode=Z3;case Z3:if(c===0)break t;if(d=f-c,r.offset>d){if(d=r.offset-d,d>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=vr;break}d>r.wnext?(d-=r.wnext,p=r.wsize-d):p=r.wnext-d,d>r.length&&(d=r.length),g=r.window}else g=i,p=s-r.offset,d=r.length;d>c&&(d=c),c-=d,r.length-=d;do i[s++]=g[p++];while(--d);r.length===0&&(r.mode=Sf);break;case tC:if(c===0)break t;i[s++]=r.length,c--,r.mode=Sf;break;case S1:if(r.wrap){for(;u<32;){if(a===0)break t;a--,l|=n[o++]<<u,u+=8}if(f-=c,e.total_out+=f,r.total+=f,r.wrap&4&&f&&(e.adler=r.check=r.flags?Jr(r.check,i,f,s-f):Xc(r.check,i,f,s-f)),f=c,r.wrap&4&&(r.flags?l:oC(l))!==r.check){e.msg="incorrect data check",r.mode=vr;break}l=0,u=0}r.mode=eC;case eC:if(r.wrap&&r.flags){for(;u<32;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}if(r.wrap&4&&l!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=vr;break}l=0,u=0}r.mode=rC;case rC:D=EY;break t;case vr:D=D3;break t;case nC:return R3;case iC:default:return $i}return e.next_out=s,e.avail_out=c,e.next_in=o,e.avail_in=a,r.hold=l,r.bits=u,(r.wsize||f!==e.avail_out&&r.mode<vr&&(r.mode<S1||t!==A3))&&hC(e,e.output,e.next_out,f-e.avail_out),h-=e.avail_in,f-=e.avail_out,e.total_in+=h,e.total_out+=f,r.total+=f,r.wrap&4&&f&&(e.adler=r.check=r.flags?Jr(r.check,i,f,e.next_out-f):Xc(r.check,i,f,e.next_out-f)),e.data_type=r.bits+(r.last?64:0)+(r.mode===ko?128:0)+(r.mode===xf||r.mode===x1?256:0),(h===0&&f===0||t===A3)&&D===ga&&(D=kY),D},jY=e=>{if(va(e))return $i;let t=e.state;return t.window&&(t.window=null),e.state=null,ga},FY=(e,t)=>{if(va(e))return $i;const r=e.state;return r.wrap&2?(r.head=t,t.done=!1,ga):$i},MY=(e,t)=>{const r=t.length;let n,i,o;return va(e)||(n=e.state,n.wrap!==0&&n.mode!==wf)?$i:n.mode===wf&&(i=1,i=Xc(i,t,r,0),i!==n.check)?D3:(o=hC(e,t,r,r),o?(n.mode=nC,R3):(n.havedict=1,ga))};var LY=aC,VY=lC,UY=sC,zY=DY,GY=cC,BY=IY,HY=jY,qY=FY,KY=MY,YY="pako inflate (from Nodeca project)",Po={inflateReset:LY,inflateReset2:VY,inflateResetKeep:UY,inflateInit:zY,inflateInit2:GY,inflate:BY,inflateEnd:HY,inflateGetHeader:qY,inflateSetDictionary:KY,inflateInfo:YY};function XY(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var JY=XY;const dC=Object.prototype.toString,{Z_NO_FLUSH:WY,Z_FINISH:QY,Z_OK:ou,Z_STREAM_END:C1,Z_NEED_DICT:k1,Z_STREAM_ERROR:ZY,Z_DATA_ERROR:fC,Z_MEM_ERROR:tX}=da;function su(e){this.options=gf.assign({chunkSize:65536,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new $3,this.strm.avail_out=0;let r=Po.inflateInit2(this.strm,t.windowBits);if(r!==ou)throw new Error(ha[r]);if(this.header=new JY,Po.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=ru.string2buf(t.dictionary):dC.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=Po.inflateSetDictionary(this.strm,t.dictionary),r!==ou)))throw new Error(ha[r])}su.prototype.push=function(e,t){const r=this.strm,n=this.options.chunkSize,i=this.options.dictionary;let o,s,a;if(this.ended)return!1;for(t===~~t?s=t:s=t===!0?QY:WY,dC.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;;){for(r.avail_out===0&&(r.output=new Uint8Array(n),r.next_out=0,r.avail_out=n),o=Po.inflate(r,s),o===k1&&i&&(o=Po.inflateSetDictionary(r,i),o===ou?o=Po.inflate(r,s):o===fC&&(o=k1));r.avail_in>0&&o===C1&&r.state.wrap>0&&e[r.next_in]!==0;)Po.inflateReset(r),o=Po.inflate(r,s);switch(o){case ZY:case fC:case k1:case tX:return this.onEnd(o),this.ended=!0,!1}if(a=r.avail_out,r.next_out&&(r.avail_out===0||o===C1))if(this.options.to==="string"){let c=ru.utf8border(r.output,r.next_out),l=r.next_out-c,u=ru.buf2string(r.output,c);r.next_out=l,r.avail_out=n-l,l&&r.output.set(r.output.subarray(c,c+l),0),this.onData(u)}else this.onData(r.output.length===r.next_out?r.output:r.output.subarray(0,r.next_out));if(!(o===ou&&a===0)){if(o===C1)return o=Po.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(r.avail_in===0)break}}return!0},su.prototype.onData=function(e){this.chunks.push(e)},su.prototype.onEnd=function(e){e===ou&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=gf.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function P1(e,t){const r=new su(t);if(r.push(e),r.err)throw r.msg||ha[r.err];return r.result}function eX(e,t){return t=t||{},t.raw=!0,P1(e,t)}var rX=su,nX=P1,iX=eX,oX=P1,sX=da,aX={Inflate:rX,inflate:nX,inflateRaw:iX,ungzip:oX,constants:sX};const{Deflate:lX,deflate:cX,deflateRaw:uX,gzip:hX}=gY,{Inflate:dX,inflate:fX,inflateRaw:pX,ungzip:mX}=aX;var gX=lX,vX=cX,yX=uX,_X=hX,bX=dX,wX=fX,xX=pX,SX=mX,$X=da,EX={Deflate:gX,deflate:vX,deflateRaw:yX,gzip:_X,Inflate:bX,inflate:wX,inflateRaw:xX,ungzip:SX,constants:$X};const Rt={};Rt.toRGBA8=function(e){const t=e.width,r=e.height;if(e.tabs.acTL===null)return[Rt.toRGBA8.decodeImage(e.data,t,r,e).buffer];const n=[];e.frames[0].data===null&&(e.frames[0].data=e.data);const i=t*r*4,o=new Uint8Array(i),s=new Uint8Array(i),a=new Uint8Array(i);for(let c=0;c<e.frames.length;c++){const l=e.frames[c],u=l.rect.x,h=l.rect.y,f=l.rect.width,d=l.rect.height,p=Rt.toRGBA8.decodeImage(l.data,f,d,e);if(c!==0)for(let g=0;g<i;g++)a[g]=o[g];if(l.blend===0?Rt._copyTile(p,f,d,o,t,r,u,h,0):l.blend===1&&Rt._copyTile(p,f,d,o,t,r,u,h,1),n.push(o.buffer.slice(0)),l.dispose===1)Rt._copyTile(s,f,d,o,t,r,u,h,0);else if(l.dispose===2)for(let g=0;g<i;g++)o[g]=a[g]}return n},Rt.toRGBA8.decodeImage=function(e,t,r,n){const i=t*r,o=Rt.decode._getBPP(n),s=Math.ceil(t*o/8),a=new Uint8Array(i*4),c=new Uint32Array(a.buffer),l=n.ctype,u=n.depth,h=Rt._bin.readUshort;if(l===6){const f=i<<2;if(u===8)for(let d=0;d<f;d+=4)a[d]=e[d],a[d+1]=e[d+1],a[d+2]=e[d+2],a[d+3]=e[d+3];if(u===16)for(let d=0;d<f;d++)a[d]=e[d<<1]}else if(l===2){const f=n.tabs.tRNS;if(f===null){if(u===8)for(let d=0;d<i;d++){const p=d*3;c[d]=-16777216|e[p+2]<<16|e[p+1]<<8|e[p]}if(u===16)for(let d=0;d<i;d++){const p=d*6;c[d]=-16777216|e[p+4]<<16|e[p+2]<<8|e[p]}}else{const d=f[0],p=f[1],g=f[2];if(u===8)for(let v=0;v<i;v++){const b=v<<2,y=v*3;c[v]=-16777216|e[y+2]<<16|e[y+1]<<8|e[y],e[y]===d&&e[y+1]===p&&e[y+2]===g&&(a[b+3]=0)}if(u===16)for(let v=0;v<i;v++){const b=v<<2,y=v*6;c[v]=-16777216|e[y+4]<<16|e[y+2]<<8|e[y],h(e,y)===d&&h(e,y+2)===p&&h(e,y+4)===g&&(a[b+3]=0)}}}else if(l===3){const f=n.tabs.PLTE,d=n.tabs.tRNS,p=d?d.length:0;if(u===1)for(let g=0;g<r;g++){const v=g*s,b=g*t;for(let y=0;y<t;y++){const m=b+y<<2,x=e[v+(y>>3)]>>7-((y&7)<<0)&1,A=3*x;a[m]=f[A],a[m+1]=f[A+1],a[m+2]=f[A+2],a[m+3]=x<p?d[x]:255}}if(u===2)for(let g=0;g<r;g++){const v=g*s,b=g*t;for(let y=0;y<t;y++){const m=b+y<<2,x=e[v+(y>>2)]>>6-((y&3)<<1)&3,A=3*x;a[m]=f[A],a[m+1]=f[A+1],a[m+2]=f[A+2],a[m+3]=x<p?d[x]:255}}if(u===4)for(let g=0;g<r;g++){const v=g*s,b=g*t;for(let y=0;y<t;y++){const m=b+y<<2,x=e[v+(y>>1)]>>4-((y&1)<<2)&15,A=3*x;a[m]=f[A],a[m+1]=f[A+1],a[m+2]=f[A+2],a[m+3]=x<p?d[x]:255}}if(u===8)for(let g=0;g<i;g++){const v=g<<2,b=e[g],y=3*b;a[v]=f[y],a[v+1]=f[y+1],a[v+2]=f[y+2],a[v+3]=b<p?d[b]:255}}else if(l===4){if(u===8)for(let f=0;f<i;f++){const d=f<<2,p=f<<1,g=e[p];a[d]=g,a[d+1]=g,a[d+2]=g,a[d+3]=e[p+1]}if(u===16)for(let f=0;f<i;f++){const d=f<<2,p=f<<2,g=e[p];a[d]=g,a[d+1]=g,a[d+2]=g,a[d+3]=e[p+2]}}else if(l===0){const f=n.tabs.tRNS?n.tabs.tRNS:-1;for(let d=0;d<r;d++){const p=d*s,g=d*t;if(u===1)for(let v=0;v<t;v++){const b=255*(e[p+(v>>>3)]>>>7-(v&7)&1),y=b===f*255?0:255;c[g+v]=y<<24|b<<16|b<<8|b}else if(u===2)for(let v=0;v<t;v++){const b=85*(e[p+(v>>>2)]>>>6-((v&3)<<1)&3),y=b===f*85?0:255;c[g+v]=y<<24|b<<16|b<<8|b}else if(u===4)for(let v=0;v<t;v++){const b=17*(e[p+(v>>>1)]>>>4-((v&1)<<2)&15),y=b===f*17?0:255;c[g+v]=y<<24|b<<16|b<<8|b}else if(u===8)for(let v=0;v<t;v++){const b=e[p+v],y=b===f?0:255;c[g+v]=y<<24|b<<16|b<<8|b}else if(u===16)for(let v=0;v<t;v++){const b=e[p+(v<<1)],y=h(e,p+(v<<1))===f?0:255;c[g+v]=y<<24|b<<16|b<<8|b}}}return a},Rt.decode=function(e){const t=new Uint8Array(e);let r=8;const n=Rt._bin,i=n.readUshort,o=n.readUint,s={tabs:{},frames:[]},a=new Uint8Array(t.length);let c=0,l,u=0;const h=[137,80,78,71,13,10,26,10];for(let f=0;f<8;f++)if(t[f]!==h[f])throw"The input is not a PNG file!";for(;r<t.length;){const f=n.readUint(t,r);r+=4;const d=n.readASCII(t,r,4);if(r+=4,d==="IHDR")Rt.decode._IHDR(t,r,s);else if(d==="CgBI")s.tabs[d]=t.slice(r,r+4);else if(d==="IDAT"){for(let p=0;p<f;p++)a[c+p]=t[r+p];c+=f}else if(d==="acTL")s.tabs[d]={num_frames:o(t,r),num_plays:o(t,r+4)},l=new Uint8Array(t.length);else if(d==="fcTL"){if(u!==0){const b=s.frames[s.frames.length-1];b.data=Rt.decode._decompress(s,l.slice(0,u),b.rect.width,b.rect.height),u=0}const p={x:o(t,r+12),y:o(t,r+16),width:o(t,r+4),height:o(t,r+8)};let g=i(t,r+22);g=i(t,r+20)/(g===0?100:g);const v={rect:p,delay:Math.round(g*1e3),dispose:t[r+24],blend:t[r+25]};s.frames.push(v)}else if(d==="fdAT"){for(let p=0;p<f-4;p++)l[u+p]=t[r+p+4];u+=f-4}else if(d==="pHYs")s.tabs[d]=[n.readUint(t,r),n.readUint(t,r+4),t[r+8]];else if(d==="cHRM"){s.tabs[d]=[];for(let p=0;p<8;p++)s.tabs[d].push(n.readUint(t,r+p*4))}else if(d==="tEXt"||d==="zTXt"){s.tabs[d]===null&&(s.tabs[d]={});const p=n.nextZero(t,r),g=n.readASCII(t,r,p-r);let v;const b=r+f-p-1;if(d==="tEXt")v=n.readASCII(t,p+1,b);else{const y=Rt.decode._inflate(t.slice(p+2,p+2+b));v=n.readUTF8(y,0,y.length)}s.tabs[d][g]=v}else if(d==="iTXt"){s.tabs[d]==null&&(s.tabs[d]={});let p=0,g=r;p=n.nextZero(t,g);const v=n.readASCII(t,g,p-g);g=p+1;const b=t[g];g+=2,p=n.nextZero(t,g),g=p+1,p=n.nextZero(t,g),g=p+1;let y;const m=f-(g-r);if(b===0)y=n.readUTF8(t,g,m);else{const x=Rt.decode._inflate(t.slice(g,g+m));y=n.readUTF8(x,0,x.length)}s.tabs[d][v]=y}else if(d==="PLTE")s.tabs[d]=n.readBytes(t,r,f);else if(d==="hIST"){const p=s.tabs.PLTE.length/3;s.tabs[d]=[];for(let g=0;g<p;g++)s.tabs[d].push(i(t,r+g*2))}else if(d==="tRNS")s.ctype===3?s.tabs[d]=n.readBytes(t,r,f):s.ctype===0?s.tabs[d]=i(t,r):s.ctype===2&&(s.tabs[d]=[i(t,r),i(t,r+2),i(t,r+4)]);else if(d==="gAMA")s.tabs[d]=n.readUint(t,r)/1e5;else if(d==="sRGB")s.tabs[d]=t[r];else if(d==="bKGD")s.ctype===0||s.ctype===4?s.tabs[d]=[i(t,r)]:s.ctype===2||s.ctype===6?s.tabs[d]=[i(t,r),i(t,r+2),i(t,r+4)]:s.ctype===3&&(s.tabs[d]=t[r]);else if(d==="IEND")break;r+=f,r+=4}if(u!==0){const f=s.frames[s.frames.length-1];f.data=Rt.decode._decompress(s,l.slice(0,u),f.rect.width,f.rect.height),u=0}return s.data=Rt.decode._decompress(s,a,s.width,s.height),delete s.compress,delete s.interlace,delete s.filter,s},Rt.decode._decompress=function(e,t,r,n){const i=Rt.decode._getBPP(e),o=Math.ceil(r*i/8),s=new Uint8Array((o+1+e.interlace)*n);return e.tabs.CgBI?t=Rt.inflateRaw(t,s):t=Rt.decode._inflate(t,s),e.interlace===0?t=Rt.decode._filterZero(t,e,0,r,n):e.interlace===1&&(t=Rt.decode._readInterlace(t,e)),t},Rt.decode._inflate=function(e,t){return Rt.inflateRaw(new Uint8Array(e.buffer,2,e.length-6),t)},Rt.inflateRaw=function(){const e={};return e.H={},e.H.N=function(t,r){const n=Uint8Array;let i=0,o=0,s=0,a=0,c=0,l=0,u=0,h=0,f=0,d,p;if(t[0]===3&&t[1]===0)return r||new n(0);const g=e.H,v=g.b,b=g.e,y=g.R,m=g.n,x=g.A,A=g.Z,E=g.m,k=r===null;for(k&&(r=new n(t.length>>>2<<3));i===0;){if(i=v(t,f,1),o=v(t,f+1,2),f+=3,o===0){f&7&&(f+=8-(f&7));const D=(f>>>3)+4,V=t[D-4]|t[D-3]<<8;k&&(r=e.H.W(r,h+V)),r.set(new n(t.buffer,t.byteOffset+D,V),h),f=D+V<<3,h+=V;continue}if(k&&(r=e.H.W(r,h+131072)),o===1&&(d=E.J,p=E.h,l=511,u=31),o===2){s=b(t,f,5)+257,a=b(t,f+5,5)+1,c=b(t,f+10,4)+4,f+=14;let D=1;for(let K=0;K<38;K+=2)E.Q[K]=0,E.Q[K+1]=0;for(let K=0;K<c;K++){const Y=b(t,f+K*3,3);E.Q[(E.X[K]<<1)+1]=Y,Y>D&&(D=Y)}f+=3*c,m(E.Q,D),x(E.Q,D,E.u),d=E.w,p=E.d,f=y(E.u,(1<<D)-1,s+a,t,f,E.v);const V=g.V(E.v,0,s,E.C);l=(1<<V)-1;const U=g.V(E.v,s,a,E.D);u=(1<<U)-1,m(E.C,V),x(E.C,V,d),m(E.D,U),x(E.D,U,p)}for(;;){const D=d[A(t,f)&l];f+=D&15;const V=D>>>4;if(!(V>>>8))r[h++]=V;else{if(V===256)break;{let U=h+V-254;if(V>264){const ft=E.q[V-257];U=h+(ft>>>3)+b(t,f,ft&7),f+=ft&7}const K=p[A(t,f)&u];f+=K&15;const Y=K>>>4,it=E.c[Y],nt=(it>>>4)+v(t,f,it&15);for(f+=it&15;h<U;)r[h]=r[h++-nt],r[h]=r[h++-nt],r[h]=r[h++-nt],r[h]=r[h++-nt];h=U}}}}return r.length===h?r:r.slice(0,h)},e.H.W=function(t,r){const n=t.length;if(r<=n)return t;const i=new Uint8Array(n<<1);return i.set(t,0),i},e.H.R=function(t,r,n,i,o,s){const a=e.H.e,c=e.H.Z;let l=0;for(;l<n;){const u=t[c(i,o)&r];o+=u&15;const h=u>>>4;if(h<=15)s[l]=h,l++;else{let f=0,d=0;h===16?(d=3+a(i,o,2),o+=2,f=s[l-1]):h===17?(d=3+a(i,o,3),o+=3):h===18&&(d=11+a(i,o,7),o+=7);const p=l+d;for(;l<p;)s[l]=f,l++}}return o},e.H.V=function(t,r,n,i){let o=0,s=0;const a=i.length>>>1;for(;s<n;){const c=t[s+r];i[s<<1]=0,i[(s<<1)+1]=c,c>o&&(o=c),s++}for(;s<a;)i[s<<1]=0,i[(s<<1)+1]=0,s++;return o},e.H.n=function(t,r){const n=e.H.m,i=t.length;let o,s,a,c,l;const u=n.j;for(let f=0;f<=r;f++)u[f]=0;for(c=1;c<i;c+=2)u[t[c]]++;const h=n.K;for(o=0,u[0]=0,s=1;s<=r;s++)o=o+u[s-1]<<1,h[s]=o;for(a=0;a<i;a+=2)l=t[a+1],l!==0&&(t[a]=h[l],h[l]++)},e.H.A=function(t,r,n){const i=t.length,o=e.H.m.r;for(let s=0;s<i;s+=2)if(t[s+1]!==0){const a=s>>1,c=t[s+1],l=a<<4|c,u=r-c;let h=t[s]<<u;const f=h+(1<<u);for(;h!==f;){const d=o[h]>>>15-r;n[d]=l,h++}}},e.H.l=function(t,r){const n=e.H.m.r,i=15-r;for(let o=0;o<t.length;o+=2){const s=t[o]<<r-t[o+1];t[o]=n[s]>>>i}},e.H.M=function(t,r,n){n=n<<(r&7);const i=r>>>3;t[i]|=n,t[i+1]|=n>>>8},e.H.I=function(t,r,n){n=n<<(r&7);const i=r>>>3;t[i]|=n,t[i+1]|=n>>>8,t[i+2]|=n>>>16},e.H.e=function(t,r,n){return(t[r>>>3]|t[(r>>>3)+1]<<8)>>>(r&7)&(1<<n)-1},e.H.b=function(t,r,n){return(t[r>>>3]|t[(r>>>3)+1]<<8|t[(r>>>3)+2]<<16)>>>(r&7)&(1<<n)-1},e.H.Z=function(t,r){return(t[r>>>3]|t[(r>>>3)+1]<<8|t[(r>>>3)+2]<<16)>>>(r&7)},e.H.i=function(t,r){return(t[r>>>3]|t[(r>>>3)+1]<<8|t[(r>>>3)+2]<<16|t[(r>>>3)+3]<<24)>>>(r&7)},e.H.m=function(){const t=Uint16Array,r=Uint32Array;return{K:new t(16),j:new t(16),X:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],T:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],q:new t(32),p:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],z:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],c:new r(32),J:new t(512),_:[],h:new t(32),$:[],w:new t(32768),C:[],v:[],d:new t(32768),D:[],u:new t(512),Q:[],r:new t(32768),s:new r(286),Y:new r(30),a:new r(19),t:new r(15e3),k:new t(65536),g:new t(32768)}}(),function(){const t=e.H.m,r=32768;for(let i=0;i<r;i++){let o=i;o=(o&2863311530)>>>1|(o&1431655765)<<1,o=(o&3435973836)>>>2|(o&858993459)<<2,o=(o&4042322160)>>>4|(o&252645135)<<4,o=(o&4278255360)>>>8|(o&16711935)<<8,t.r[i]=(o>>>16|o<<16)>>>17}function n(i,o,s){for(;o--!==0;)i.push(0,s)}for(let i=0;i<32;i++)t.q[i]=t.S[i]<<3|t.T[i],t.c[i]=t.p[i]<<4|t.z[i];n(t._,144,8),n(t._,112,9),n(t._,24,7),n(t._,8,8),e.H.n(t._,9),e.H.A(t._,9,t.J),e.H.l(t._,9),n(t.$,32,5),e.H.n(t.$,5),e.H.A(t.$,5,t.h),e.H.l(t.$,5),n(t.Q,19,0),n(t.C,286,0),n(t.D,30,0),n(t.v,320,0)}(),e.H.N}(),Rt.decode._readInterlace=function(e,t){const r=t.width,n=t.height,i=Rt.decode._getBPP(t),o=i>>3,s=Math.ceil(r*i/8),a=new Uint8Array(n*s);let c=0;const l=[0,0,4,0,2,0,1],u=[0,4,0,2,0,1,0],h=[8,8,8,4,4,2,2],f=[8,8,4,4,2,2,1];let d=0;for(;d<7;){const p=h[d],g=f[d];let v=0,b=0,y=l[d];for(;y<n;)y+=p,b++;let m=u[d];for(;m<r;)m+=g,v++;const x=Math.ceil(v*i/8);Rt.decode._filterZero(e,t,c,v,b);let A=0,E=l[d];for(;E<n;){let k=u[d],D=c+A*x<<3;for(;k<r;){if(i===1){let V=e[D>>3];V=V>>7-(D&7)&1,a[E*s+(k>>3)]|=V<<7-((k&7)<<0)}if(i===2){let V=e[D>>3];V=V>>6-(D&7)&3,a[E*s+(k>>2)]|=V<<6-((k&3)<<1)}if(i===4){let V=e[D>>3];V=V>>4-(D&7)&15,a[E*s+(k>>1)]|=V<<4-((k&1)<<2)}if(i>=8){const V=E*s+k*o;for(let U=0;U<o;U++)a[V+U]=e[(D>>3)+U]}D+=i,k+=g}A++,E+=p}v*b!==0&&(c+=b*(1+x)),d=d+1}return a},Rt.decode._getBPP=function(e){return[1,null,3,1,2,null,4][e.ctype]*e.depth},Rt.decode._filterZero=function(e,t,r,n,i){let o=Rt.decode._getBPP(t);const s=Math.ceil(n*o/8),a=Rt.decode._paeth;o=Math.ceil(o/8);let c=0,l=1,u=e[r],h=0;if(u>1&&(e[r]=[0,0,1][u-2]),u===3)for(h=o;h<s;h++)e[h+1]=e[h+1]+(e[h+1-o]>>>1)&255;for(let f=0;f<i;f++)if(c=r+f*s,l=c+f+1,u=e[l-1],h=0,u===0)for(;h<s;h++)e[c+h]=e[l+h];else if(u===1){for(;h<o;h++)e[c+h]=e[l+h];for(;h<s;h++)e[c+h]=e[l+h]+e[c+h-o]}else if(u===2)for(;h<s;h++)e[c+h]=e[l+h]+e[c+h-s];else if(u===3){for(;h<o;h++)e[c+h]=e[l+h]+(e[c+h-s]>>>1);for(;h<s;h++)e[c+h]=e[l+h]+(e[c+h-s]+e[c+h-o]>>>1)}else{for(;h<o;h++)e[c+h]=e[l+h]+a(0,e[c+h-s],0);for(;h<s;h++)e[c+h]=e[l+h]+a(e[c+h-o],e[c+h-s],e[c+h-o-s])}return e},Rt.decode._paeth=function(e,t,r){const n=e+t-r,i=n-e,o=n-t,s=n-r;return i*i<=o*o&&i*i<=s*s?e:o*o<=s*s?t:r},Rt.decode._IHDR=function(e,t,r){const n=Rt._bin;r.width=n.readUint(e,t),t+=4,r.height=n.readUint(e,t),t+=4,r.depth=e[t],t++,r.ctype=e[t],t++,r.compress=e[t],t++,r.filter=e[t],t++,r.interlace=e[t],t++},Rt._bin={nextZero:function(e,t){for(;e[t]!==0;)t++;return t},readUshort:function(e,t){return e[t]<<8|e[t+1]},writeUshort:function(e,t,r){e[t]=r>>8&255,e[t+1]=r&255},readUint:function(e,t){return e[t]*16777216+(e[t+1]<<16|e[t+2]<<8|e[t+3])},writeUint:function(e,t,r){e[t]=r>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=r&255},readASCII:function(e,t,r){let n="";for(let i=0;i<r;i++)n+=String.fromCharCode(e[t+i]);return n},writeASCII:function(e,t,r){for(let n=0;n<r.length;n++)e[t+n]=r.charCodeAt(n)},readBytes:function(e,t,r){const n=[];for(let i=0;i<r;i++)n.push(e[t+i]);return n},pad:function(e){return e.length<2?"0"+e:e},readUTF8:function(e,t,r){let n="",i;for(let o=0;o<r;o++)n+="%"+Rt._bin.pad(e[t+o].toString(16));try{i=decodeURIComponent(n)}catch{return Rt._bin.readASCII(e,t,r)}return i}},Rt._copyTile=function(e,t,r,n,i,o,s,a,c){const l=Math.min(t,i),u=Math.min(r,o);let h=0,f=0;for(let d=0;d<u;d++)for(let p=0;p<l;p++)if(s>=0&&a>=0?(h=d*t+p<<2,f=(a+d)*i+s+p<<2):(h=(-a+d)*t-s+p<<2,f=d*i+p<<2),c===0)n[f]=e[h],n[f+1]=e[h+1],n[f+2]=e[h+2],n[f+3]=e[h+3];else if(c===1){const g=e[h+3]*.00392156862745098,v=e[h]*g,b=e[h+1]*g,y=e[h+2]*g,m=n[f+3]*(1/255),x=n[f]*m,A=n[f+1]*m,E=n[f+2]*m,k=1-g,D=g+m*k,V=D===0?0:1/D;n[f+3]=255*D,n[f+0]=(v+x*k)*V,n[f+1]=(b+A*k)*V,n[f+2]=(y+E*k)*V}else if(c===2){const g=e[h+3],v=e[h],b=e[h+1],y=e[h+2],m=n[f+3],x=n[f],A=n[f+1],E=n[f+2];g===m&&v===x&&b===A&&y===E?(n[f]=0,n[f+1]=0,n[f+2]=0,n[f+3]=0):(n[f]=v,n[f+1]=b,n[f+2]=y,n[f+3]=g)}else if(c===3){const g=e[h+3],v=e[h],b=e[h+1],y=e[h+2],m=n[f+3],x=n[f],A=n[f+1],E=n[f+2];if(g===m&&v===x&&b===A&&y===E)continue;if(g<220&&m>20)return!1}return!0},Rt.encode=function(e,t,r,n,i,o,s){n===null&&(n=0),s===null&&(s=!1);const a=Rt.encode.compress(e,t,r,n,[!1,!1,!1,0,s]);return Rt.encode.compressPNG(a,-1),Rt.encode._main(a,t,r,i,o)},Rt.encodeLL=function(e,t,r,n,i,o,s,a){const c={ctype:0+(n===1?0:2)+(i===0?0:4),depth:o,frames:[]},l=(n+i)*o,u=l*t;for(let h=0;h<e.length;h++)c.frames.push({rect:{x:0,y:0,width:t,height:r},img:new Uint8Array(e[h]),blend:0,dispose:1,bpp:Math.ceil(l/8),bpl:Math.ceil(u/8)});return Rt.encode.compressPNG(c,0,!0),Rt.encode._main(c,t,r,s,a)},Rt.encode._main=function(e,t,r,n,i){i||(i={});const o=Rt.crc.crc,s=Rt._bin.writeUint,a=Rt._bin.writeUshort,c=Rt._bin.writeASCII;let l=8;const u=e.frames.length>1;let h=!1,f=8+(16+5+4)+(u?20:0);if(i.sRGB!==null&&i.sRGB!==void 0&&(f+=13),i.pHYs!==null&&i.pHYs!==void 0&&(f+=21),e.ctype===3){const v=e.plte.length;for(let b=0;b<v;b++)e.plte[b]>>>24!==255&&(h=!0);f+=8+v*3+4+(h?8+v*1+4:0)}for(let v=0;v<e.frames.length;v++){const b=e.frames[v];u&&(f+=38),f+=b.cimg.length+12,v!==0&&(f+=4)}f+=12;const d=new Uint8Array(f),p=[137,80,78,71,13,10,26,10];for(let v=0;v<8;v++)d[v]=p[v];if(s(d,l,13),l+=4,c(d,l,"IHDR"),l+=4,s(d,l,t),l+=4,s(d,l,r),l+=4,d[l]=e.depth,l++,d[l]=e.ctype,l++,d[l]=0,l++,d[l]=0,l++,d[l]=0,l++,s(d,l,o(d,l-17,17)),l+=4,i.sRGB!==null&&i.sRGB!==void 0&&(s(d,l,1),l+=4,c(d,l,"sRGB"),l+=4,d[l]=i.sRGB,l++,s(d,l,o(d,l-5,5)),l+=4),i.pHYs!==null&&i.pHYs!==void 0&&(s(d,l,9),l+=4,c(d,l,"pHYs"),l+=4,s(d,l,i.pHYs[0]),l+=4,s(d,l,i.pHYs[1]),l+=4,d[l]=i.pHYs[2],l++,s(d,l,o(d,l-13,13)),l+=4),u&&(s(d,l,8),l+=4,c(d,l,"acTL"),l+=4,s(d,l,e.frames.length),l+=4,s(d,l,i.loop!=null?i.loop:0),l+=4,s(d,l,o(d,l-12,12)),l+=4),e.ctype===3){const v=e.plte.length;s(d,l,v*3),l+=4,c(d,l,"PLTE"),l+=4;for(let b=0;b<v;b++){const y=b*3,m=e.plte[b],x=m&255,A=m>>>8&255,E=m>>>16&255;d[l+y+0]=x,d[l+y+1]=A,d[l+y+2]=E}if(l+=v*3,s(d,l,o(d,l-v*3-4,v*3+4)),l+=4,h){s(d,l,v),l+=4,c(d,l,"tRNS"),l+=4;for(let b=0;b<v;b++)d[l+b]=e.plte[b]>>>24&255;l+=v,s(d,l,o(d,l-v-4,v+4)),l+=4}}let g=0;for(let v=0;v<e.frames.length;v++){const b=e.frames[v];u&&(s(d,l,26),l+=4,c(d,l,"fcTL"),l+=4,s(d,l,g++),l+=4,s(d,l,b.rect.width),l+=4,s(d,l,b.rect.height),l+=4,s(d,l,b.rect.x),l+=4,s(d,l,b.rect.y),l+=4,a(d,l,n[v]),l+=2,a(d,l,1e3),l+=2,d[l]=b.dispose,l++,d[l]=b.blend,l++,s(d,l,o(d,l-30,30)),l+=4);const y=b.cimg,m=y.length;s(d,l,m+(v===0?0:4)),l+=4;const x=l;c(d,l,v===0?"IDAT":"fdAT"),l+=4,v!==0&&(s(d,l,g++),l+=4),d.set(y,l),l+=m,s(d,l,o(d,x,l-x)),l+=4}return s(d,l,0),l+=4,c(d,l,"IEND"),l+=4,s(d,l,o(d,l-4,4)),l+=4,d.buffer},Rt.encode.compressPNG=function(e,t,r){for(let n=0;n<e.frames.length;n++){const i=e.frames[n],o=i.rect.height,s=new Uint8Array(o*i.bpl+o);i.cimg=Rt.encode._filterZero(i.img,o,i.bpp,i.bpl,s,t,r)}},Rt.encode.compress=function(e,t,r,n,i){const o=i[0],s=i[1],a=i[2],c=i[3],l=i[4];let u=6,h=8,f=255;for(let m=0;m<e.length;m++){const x=new Uint8Array(e[m]),A=x.length;for(let E=0;E<A;E+=4)f&=x[E+3]}const d=f!==255,p=Rt.encode.framize(e,t,r,o,s,a),g={},v=[],b=[];if(n!==0){const m=[];for(let D=0;D<p.length;D++)m.push(p[D].img.buffer);const x=Rt.encode.concatRGBA(m),A=Rt.quantize(x,n);let E=0;const k=new Uint8Array(A.abuf);for(let D=0;D<p.length;D++){const V=p[D].img,U=V.length;b.push(new Uint8Array(A.inds.buffer,E>>2,U>>2));for(let K=0;K<U;K+=4)V[K]=k[E+K],V[K+1]=k[E+K+1],V[K+2]=k[E+K+2],V[K+3]=k[E+K+3];E+=U}for(let D=0;D<A.plte.length;D++)v.push(A.plte[D].est.rgba)}else for(let m=0;m<p.length;m++){const x=p[m],A=new Uint32Array(x.img.buffer),E=x.rect.width,k=A.length,D=new Uint8Array(k);b.push(D);for(let V=0;V<k;V++){const U=A[V];if(V!==0&&U===A[V-1])D[V]=D[V-1];else if(V>E&&U===A[V-E])D[V]=D[V-E];else{let K=g[U];if(K===null&&(g[U]=K=v.length,v.push(U),v.length>=300))break;D[V]=K}}}const y=v.length;y<=256&&l===!1&&(y<=2?h=1:y<=4?h=2:y<=16?h=4:h=8,h=Math.max(h,c));for(let m=0;m<p.length;m++){const x=p[m],A=x.rect.width,E=x.rect.height;let k=x.img,D=4*A,V=4;if(y<=256&&l===!1){D=Math.ceil(h*A/8);const U=new Uint8Array(D*E),K=b[m];for(let Y=0;Y<E;Y++){const it=Y*D,nt=Y*A;if(h===8)for(let ft=0;ft<A;ft++)U[it+ft]=K[nt+ft];else if(h===4)for(let ft=0;ft<A;ft++)U[it+(ft>>1)]|=K[nt+ft]<<4-(ft&1)*4;else if(h===2)for(let ft=0;ft<A;ft++)U[it+(ft>>2)]|=K[nt+ft]<<6-(ft&3)*2;else if(h===1)for(let ft=0;ft<A;ft++)U[it+(ft>>3)]|=K[nt+ft]<<7-(ft&7)*1}k=U,u=3,V=1}else if(d===!1&&p.length===1){const U=new Uint8Array(A*E*3),K=A*E;for(let Y=0;Y<K;Y++){const it=Y*3,nt=Y*4;U[it]=k[nt],U[it+1]=k[nt+1],U[it+2]=k[nt+2]}k=U,u=2,V=3,D=3*A}x.img=k,x.bpl=D,x.bpp=V}return{ctype:u,depth:h,plte:v,frames:p}},Rt.encode.framize=function(e,t,r,n,i,o){const s=[];for(let a=0;a<e.length;a++){const c=new Uint8Array(e[a]),l=new Uint32Array(c.buffer);let u,h=0,f=0,d=t,p=r,g=n?1:0;if(a!==0){const v=o||n||a===1||s[a-2].dispose!==0?1:2;let b=0,y=1e9;for(let x=0;x<v;x++){const A=new Uint32Array(e[a-1-x]);let E=t,k=r,D=-1,V=-1;for(let K=0;K<r;K++)for(let Y=0;Y<t;Y++){const it=K*t+Y;l[it]!==A[it]&&(Y<E&&(E=Y),Y>D&&(D=Y),K<k&&(k=K),K>V&&(V=K))}D===-1&&(E=k=D=V=0),i&&((E&1)===1&&E--,(k&1)===1&&k--);const U=(D-E+1)*(V-k+1);U<y&&(y=U,b=x,h=E,f=k,d=D-E+1,p=V-k+1)}const m=new Uint8Array(e[a-1-b]);b===1&&(s[a-1].dispose=2),u=new Uint8Array(d*p*4),Rt._copyTile(m,t,r,u,d,p,-h,-f,0),g=Rt._copyTile(c,t,r,u,d,p,-h,-f,3)?1:0,g===1?Rt.encode._prepareDiff(c,t,r,u,{x:h,y:f,width:d,height:p}):Rt._copyTile(c,t,r,u,d,p,-h,-f,0)}else u=c.slice(0);s.push({rect:{x:h,y:f,width:d,height:p},img:u,blend:g,dispose:0})}if(n)for(let a=0;a<s.length;a++){const c=s[a];if(c.blend===1)continue;const l=c.rect,u=s[a-1].rect,h=Math.min(l.x,u.x),f=Math.min(l.y,u.y),d=Math.max(l.x+l.width,u.x+u.width),p=Math.max(l.y+l.height,u.y+u.height),g={x:h,y:f,width:d-h,height:p-f};s[a-1].dispose=1,a-1!==0&&Rt.encode._updateFrame(e,t,r,s,a-1,g,i),Rt.encode._updateFrame(e,t,r,s,a,g,i)}return s},Rt.encode._updateFrame=function(e,t,r,n,i,o,s){const a=Uint8Array,c=Uint32Array,l=new a(e[i-1]),u=new c(e[i-1]),h=i+1<e.length?new a(e[i+1]):null,f=new a(e[i]),d=new c(f.buffer);let p=t,g=r,v=-1,b=-1;for(let m=0;m<o.height;m++)for(let x=0;x<o.width;x++){const A=o.x+x,E=o.y+m,k=E*t+A,D=d[k];D===0||n[i-1].dispose===0&&u[k]===D&&(h===null||h[k*4+3]!==0)||(A<p&&(p=A),A>v&&(v=A),E<g&&(g=E),E>b&&(b=E))}v===-1&&(p=g=v=b=0),s&&((p&1)===1&&p--,(g&1)===1&&g--),o={x:p,y:g,width:v-p+1,height:b-g+1};const y=n[i];y.rect=o,y.blend=1,y.img=new Uint8Array(o.width*o.height*4),n[i-1].dispose===0?(Rt._copyTile(l,t,r,y.img,o.width,o.height,-o.x,-o.y,0),Rt.encode._prepareDiff(f,t,r,y.img,o)):Rt._copyTile(f,t,r,y.img,o.width,o.height,-o.x,-o.y,0)},Rt.encode._prepareDiff=function(e,t,r,n,i){Rt._copyTile(e,t,r,n,i.width,i.height,-i.x,-i.y,2)},Rt.encode._filterZero=function(e,t,r,n,i,o,s){const a=[];let c=[0,1,2,3,4];o!==-1?c=[o]:(t*n>5e5||r===1)&&(c=[0]);let l;s&&(l={level:0});const u=i.length>1e7&&qE!=null?qE:EX;for(let d=0;d<c.length;d++){for(let p=0;p<t;p++)Rt.encode._filterLine(i,e,p,n,r,c[d]);a.push(u.deflate(i,l))}let h,f=1e9;for(let d=0;d<a.length;d++)a[d].length<f&&(h=d,f=a[d].length);return a[h]},Rt.encode._filterLine=function(e,t,r,n,i,o){const s=r*n;let a=s+r;const c=Rt.decode._paeth;if(e[a]=o,a++,o===0)if(n<500)for(let l=0;l<n;l++)e[a+l]=t[s+l];else e.set(new Uint8Array(t.buffer,s,n),a);else if(o===1){for(let l=0;l<i;l++)e[a+l]=t[s+l];for(let l=i;l<n;l++)e[a+l]=t[s+l]-t[s+l-i]+256&255}else if(r===0){for(let l=0;l<i;l++)e[a+l]=t[s+l];if(o===2)for(let l=i;l<n;l++)e[a+l]=t[s+l];if(o===3)for(let l=i;l<n;l++)e[a+l]=t[s+l]-(t[s+l-i]>>1)+256&255;if(o===4)for(let l=i;l<n;l++)e[a+l]=t[s+l]-c(t[s+l-i],0,0)+256&255}else{if(o===2)for(let l=0;l<n;l++)e[a+l]=t[s+l]+256-t[s+l-n]&255;if(o===3){for(let l=0;l<i;l++)e[a+l]=t[s+l]+256-(t[s+l-n]>>1)&255;for(let l=i;l<n;l++)e[a+l]=t[s+l]+256-(t[s+l-n]+t[s+l-i]>>1)&255}if(o===4){for(let l=0;l<i;l++)e[a+l]=t[s+l]+256-c(0,t[s+l-n],0)&255;for(let l=i;l<n;l++)e[a+l]=t[s+l]+256-c(t[s+l-i],t[s+l-n],t[s+l-i-n])&255}}},Rt.crc={table:function(){const e=new Uint32Array(256);for(let t=0;t<256;t++){let r=t;for(let n=0;n<8;n++)r&1?r=3988292384^r>>>1:r=r>>>1;e[t]=r}return e}(),update:function(e,t,r,n){for(let i=0;i<n;i++)e=Rt.crc.table[(e^t[r+i])&255]^e>>>8;return e},crc:function(e,t,r){return Rt.crc.update(4294967295,e,t,r)^4294967295}},Rt.quantize=function(e,t){const r=new Uint8Array(e),n=r.slice(0),i=new Uint32Array(n.buffer),o=Rt.quantize.getKDtree(n,t),s=o[0],a=o[1],c=Rt.quantize.planeDst,l=r,u=i,h=l.length,f=new Uint8Array(r.length>>2);let d;if(r.length<2e7)for(let p=0;p<h;p+=4){const g=l[p]*.00392156862745098,v=l[p+1]*(1/255),b=l[p+2]*(1/255),y=l[p+3]*(1/255);d=Rt.quantize.getNearest(s,g,v,b,y),f[p>>2]=d.ind,u[p>>2]=d.est.rgba}else for(let p=0;p<h;p+=4){const g=l[p]*.00392156862745098,v=l[p+1]*(1/255),b=l[p+2]*(1/255),y=l[p+3]*(1/255);for(d=s;d.left;)d=c(d.est,g,v,b,y)<=0?d.left:d.right;f[p>>2]=d.ind,u[p>>2]=d.est.rgba}return{abuf:n.buffer,inds:f,plte:a}},Rt.quantize.getKDtree=function(e,t,r){r===null&&(r=1e-4);const n=new Uint32Array(e.buffer),i={i0:0,i1:e.length,bst:null,est:null,tdst:0,left:null,right:null};i.bst=Rt.quantize.stats(e,i.i0,i.i1),i.est=Rt.quantize.estats(i.bst);const o=[i];for(;o.length<t;){let s=0,a=0;for(let f=0;f<o.length;f++)o[f].est.L>s&&(s=o[f].est.L,a=f);if(s<r)break;const c=o[a],l=Rt.quantize.splitPixels(e,n,c.i0,c.i1,c.est.e,c.est.eMq255);if(c.i0>=l||c.i1<=l){c.est.L=0;continue}const u={i0:c.i0,i1:l,bst:null,est:null,tdst:0,left:null,right:null};u.bst=Rt.quantize.stats(e,u.i0,u.i1),u.est=Rt.quantize.estats(u.bst);const h={i0:l,i1:c.i1,bst:null,est:null,tdst:0,left:null,right:null};h.bst={R:[],m:[],N:c.bst.N-u.bst.N};for(let f=0;f<16;f++)h.bst.R[f]=c.bst.R[f]-u.bst.R[f];for(let f=0;f<4;f++)h.bst.m[f]=c.bst.m[f]-u.bst.m[f];h.est=Rt.quantize.estats(h.bst),c.left=u,c.right=h,o[a]=u,o.push(h)}o.sort(function(s,a){return a.bst.N-s.bst.N});for(let s=0;s<o.length;s++)o[s].ind=s;return[i,o]},Rt.quantize.getNearest=function(e,t,r,n,i){if(e.left==null)return e.tdst=Rt.quantize.dist(e.est.q,t,r,n,i),e;const o=Rt.quantize.planeDst(e.est,t,r,n,i);let s=e.left,a=e.right;o>0&&(s=e.right,a=e.left);const c=Rt.quantize.getNearest(s,t,r,n,i);if(c.tdst<=o*o)return c;const l=Rt.quantize.getNearest(a,t,r,n,i);return l.tdst<c.tdst?l:c},Rt.quantize.planeDst=function(e,t,r,n,i){const o=e.e;return o[0]*t+o[1]*r+o[2]*n+o[3]*i-e.eMq},Rt.quantize.dist=function(e,t,r,n,i){const o=t-e[0],s=r-e[1],a=n-e[2],c=i-e[3];return o*o+s*s+a*a+c*c},Rt.quantize.splitPixels=function(e,t,r,n,i,o){const s=Rt.quantize.vecDot;for(n-=4;r<n;){for(;s(e,r,i)<=o;)r+=4;for(;s(e,n,i)>o;)n-=4;if(r>=n)break;const a=t[r>>2];t[r>>2]=t[n>>2],t[n>>2]=a,r+=4,n-=4}for(;s(e,r,i)>o;)r-=4;return r+4},Rt.quantize.vecDot=function(e,t,r){return e[t]*r[0]+e[t+1]*r[1]+e[t+2]*r[2]+e[t+3]*r[3]},Rt.quantize.stats=function(e,t,r){const n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],i=[0,0,0,0],o=r-t>>2;for(let s=t;s<r;s+=4){const a=e[s]*.00392156862745098,c=e[s+1]*(1/255),l=e[s+2]*(1/255),u=e[s+3]*(1/255);i[0]+=a,i[1]+=c,i[2]+=l,i[3]+=u,n[0]+=a*a,n[1]+=a*c,n[2]+=a*l,n[3]+=a*u,n[5]+=c*c,n[6]+=c*l,n[7]+=c*u,n[10]+=l*l,n[11]+=l*u,n[15]+=u*u}return n[4]=n[1],n[8]=n[2],n[9]=n[6],n[12]=n[3],n[13]=n[7],n[14]=n[11],{R:n,m:i,N:o}},Rt.quantize.estats=function(e){const t=e.R,r=e.m,n=e.N,i=r[0],o=r[1],s=r[2],a=r[3],c=n===0?0:1/n,l=[t[0]-i*i*c,t[1]-i*o*c,t[2]-i*s*c,t[3]-i*a*c,t[4]-o*i*c,t[5]-o*o*c,t[6]-o*s*c,t[7]-o*a*c,t[8]-s*i*c,t[9]-s*o*c,t[10]-s*s*c,t[11]-s*a*c,t[12]-a*i*c,t[13]-a*o*c,t[14]-a*s*c,t[15]-a*a*c],u=l,h=Rt.M4;let f=[Math.random(),Math.random(),Math.random(),Math.random()],d=0,p=0;if(n!==0)for(let b=0;b<16&&(f=h.multVec(u,f),p=Math.sqrt(h.dot(f,f)),f=h.sml(1/p,f),!(b!==0&&Math.abs(p-d)<1e-9));b++)d=p;const g=[i*c,o*c,s*c,a*c],v=h.dot(h.sml(255,g),f);return{Cov:l,q:g,e:f,L:d,eMq255:v,eMq:h.dot(f,g),rgba:(Math.round(255*g[3])<<24|Math.round(255*g[2])<<16|Math.round(255*g[1])<<8|Math.round(255*g[0])<<0)>>>0}},Rt.M4={multVec:function(e,t){return[e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3],e[4]*t[0]+e[5]*t[1]+e[6]*t[2]+e[7]*t[3],e[8]*t[0]+e[9]*t[1]+e[10]*t[2]+e[11]*t[3],e[12]*t[0]+e[13]*t[1]+e[14]*t[2]+e[15]*t[3]]},dot:function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]},sml:function(e,t){return[e*t[0],e*t[1],e*t[2],e*t[3]]}},Rt.encode.concatRGBA=function(e){let t=0;for(let i=0;i<e.length;i++)t+=e[i].byteLength;const r=new Uint8Array(t);let n=0;for(let i=0;i<e.length;i++){const o=new Uint8Array(e[i]),s=o.length;for(let a=0;a<s;a+=4){let c=o[a],l=o[a+1],u=o[a+2];const h=o[a+3];h===0&&(c=l=u=0),r[n+a]=c,r[n+a+1]=l,r[n+a+2]=u,r[n+a+3]=h}n+=s}return r.buffer};const Bi={glog:function(e){if(e<1)throw new Error("glog("+e+")");return Bi.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return Bi.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)};for(let e=0;e<8;e++)Bi.EXP_TABLE[e]=1<<e;for(let e=8;e<256;e++)Bi.EXP_TABLE[e]=Bi.EXP_TABLE[e-4]^Bi.EXP_TABLE[e-5]^Bi.EXP_TABLE[e-6]^Bi.EXP_TABLE[e-8];for(let e=0;e<255;e++)Bi.LOG_TABLE[Bi.EXP_TABLE[e]]=e;let au;typeof self>"u"&&typeof process<"u"&&process.hrtime?au=function(){const e=process.hrtime();return e[0]*1e3+e[1]/1e6}:typeof self<"u"&&self.performance!==void 0&&self.performance.now!==void 0?au=self.performance.now.bind(self.performance):Date.now!==void 0?au=Date.now:au=function(){return new Date().getTime()};const CX=au;let kX=class{_tweens={};_tweensAddedDuringUpdate={};getAll(){return Object.keys(this._tweens).map(e=>this._tweens[e])}removeAll(){this._tweens={}}add(e){this._tweens[e.getId()]=e,this._tweensAddedDuringUpdate[e.getId()]=e}remove(e){delete this._tweens[e.getId()],delete this._tweensAddedDuringUpdate[e.getId()]}update(e=CX(),t=!1){let r=Object.keys(this._tweens);if(r.length===0)return!1;for(;r.length>0;){this._tweensAddedDuringUpdate={};for(let n=0;n<r.length;n++){const i=this._tweens[r[n]],o=!t;i&&i.update(e,o)===!1&&!t&&delete this._tweens[r[n]]}r=Object.keys(this._tweensAddedDuringUpdate)}return!0}};const Hi=new kX;Hi.getAll.bind(Hi),Hi.removeAll.bind(Hi),Hi.add.bind(Hi),Hi.remove.bind(Hi),Hi.update.bind(Hi);function pC(e){switch(e){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-in-out":return[.42,0,.58,1];case"ease-out":return[0,0,.58,1]}}const PX={attributeName:["display"],values:[["block","block"]]},Nn={easeName:"linear",begin:0,dur:300,repeatCount:1,direction:"normal",fill:"freeze",keyTimes:[0,1]};class T1{currentAnimateName;objects=[];actions=[];constructor(){}hasObjects(){return this.objects.length>0}fromDOM(t){return Array.isArray(t)||(t=[t]),this.objects=[],t.forEach(r=>{const n=$o(r);this.objects.push({width:parseFloat(n.css("width")),height:parseFloat(n.css("height")),dom:n,el:r,originCSSObject:n.css()})}),this}toCSS(t,...r){if(!this.hasObjects())return;switch(this.currentAnimateName=t,this[t](...r),this.objects[0].dom?.parent().css({position:"relative",perspective:"1000px",overflow:"hidden"}),t){default:this.objects.forEach((o,s)=>{o.dom?.css({position:"absolute","z-index":String(1e3+s),"transform-style":"preserve-3d","backface-visibility":"hidden"})});break}let n=0;const i=()=>{this.actions.forEach((o,s)=>{const a=this.objects[o.objectIndex];let c=[],l=[];Array.isArray(o.attributeName)?(c=o.attributeName,l=o.values):o.attributeName&&(c=[o.attributeName],l=[o.values]);const u=o.keyTimes.length,h=sf(a.dom?.css("transform")??"");let f=o.begin;o.keyTimes.forEach((d,p)=>{const g={_matrix:h};c.forEach((v,b)=>{const y=l[b][o.direction=="reverse"?u-p-1:p];this._transformAttributeToCSSObjectUseMatrix(v,y,g)}),p==0?a.dom?.css(Object.assign(g,{transition:""})):(setTimeout(()=>{a.dom?.css(Object.assign(g,{transition:`all ${o.realKeyTimes[p]}ms cubic-bezier(${o.keySplines[p-1].join(",")})`}))},f),f+=o.realKeyTimes[p])}),setTimeout(()=>{o.fill==="remove"&&a.dom?.css(a.originCSSObject??{}),s==this.actions.length-1&&(typeof o.repeatCount=="number"&&++n<o.repeatCount||o.repeatCount=="infinite")&&requestAnimationFrame(()=>{this.currentAnimateName===t&&i()})},o.begin+o.dur)})};i()}_transformAttributeToCSSObjectUseMatrix(t,r,n={}){switch(t){case"translateTo":n._matrix.translateTo(r[0]??0,r[1]??0);break;case"translate":n._matrix.translate(r[0]??0,r[1]??0);break;case"rotate":n._matrix.rotate(r??0);break;case"rotateXTo":n._matrix.rotateXTo(r??0);break;case"rotateYTo":n._matrix.rotateYTo(r??0);break;case"scaleTo":typeof r=="number"?n._matrix.scaleTo(r??1):n._matrix.scaleTo(r[0]??1,r[1]??1);break;case"scale":typeof r=="number"?n._matrix.scale(r??1):n._matrix.scale(r[0]??1,r[1]??1);break;case"scaleX":n._matrix.scale(r??1,1);break;case"scaleY":n._matrix.scale(1,r??1);break;default:Object.assign(n,{[t]:`${r??""}`});break}return Object.assign(n,{transform:n._matrix.toString()}),n}_addAction(t,r=!1){return this.actions=r?[]:this.actions,Array.isArray(t)||(t=[t]),t.forEach(n=>{this.actions.push(Object.assign(n,{realKeyTimes:n.keyTimes.map(i=>n.dur*i)}))}),this}_addAnimate(t=PX,r=Nn,n=0,i=!1){const o=r.keyTimes??[0,1],s=[];return o.forEach((a,c)=>{c>0&&s.push(pC(r.easeName??"linear"))}),this._addAction({objectIndex:n,attributeName:t.attributeName,values:t.values,begin:r.begin??0,dur:r.dur??300,keyTimes:o,keySplines:s,repeatCount:r.repeatCount??1,direction:r.direction??"normal",fill:r.fill??"freeze"},i),this}_predefinedAnimate(t,r,n,i,o=Nn,s=this.objects.length-1){let a=!0,c=!1,l=!1,u=!1;const h=this.objects.length;s=(s+h)%h;const f=(s-1+h)%h,d=(s+1+h)%h,p=this.objects[s],g=this.objects[f],v=this.objects[d];if(g&&f!==s){const b=t(g);b&&(this._addAnimate(b,o,f,a),a=!1,c=!0)}if(p){const b=r(p);b&&(this._addAnimate(b,o,s,a),a=!1,l=!0)}if(v&&d!==s){const b=n(v);b&&(this._addAnimate(b,o,d,a),a=!1,u=!0)}this.objects.forEach((b,y)=>{if(!(y==f&&c||y==s&&l||y==d&&u)){const m=i(b);m&&(this._addAnimate(m,o,y,a),a=!1)}})}flip(t=Nn,r=this.objects.length-1){const n=r-1,i=this.objects[n],o=this.objects[r],s=sf(o.dom?.css("transform")??""),a=s.clone();i.dom?.show(),i.dom?.css("opacity","1");const c=i.el?.getBoundingClientRect();i.dom?.css("opacity","0"),o.dom?.show(),o.dom?.css("opacity","1");const l=o.el?.getBoundingClientRect(),u=i.dom?.css("background-color"),h=o.dom?.css("background-color");a.translate((c?.left??0)-(l?.left??0),(c?.top??0)-(l?.top??0)),a.scale((c?.width??1)/(l?.width??1),(c?.height??1)/(l?.height??1));const f={transform:a.toString(),transition:""};u&&Object.assign(f,{"background-color":u}),o.dom?.css(f);const d={transform:s.toString(),transition:`all ${t.dur}ms cubic-bezier(${pC(t.easeName??"linear").join(",")})`};h&&Object.assign(d,{"background-color":h}),setTimeout(()=>{o.dom?.css(d)},t.begin)}slideLeft(t=Nn,r=this.objects.length-1){this._predefinedAnimate(n=>({attributeName:["translateTo"],values:[[[0,0],[-n.width,0]]]}),n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[n.width,0],[0,0]]]}),n=>{},n=>({attributeName:["translateTo"],values:[[[-n.width,0],[-n.width,0]]]}),t,r)}slideRight(t=Nn,r=this.objects.length-1){this._predefinedAnimate(n=>{},n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[-n.width,0],[0,0]]]}),n=>({attributeName:["translateTo"],values:[[[0,0],[n.width,0]]]}),n=>({attributeName:["translateTo"],values:[[[n.width,0],[n.width,0]]]}),t,r)}slideDown(t=Nn,r=this.objects.length-1){this._predefinedAnimate(n=>({attributeName:["translateTo"],values:[[[0,0],[0,n.height]]]}),n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,-n.height],[0,0]]]}),n=>{},n=>({attributeName:["translateTo"],values:[[[0,n.height],[0,n.height]]]}),t,r)}slideUp(t=Nn,r=this.objects.length-1){this._predefinedAnimate(n=>({attributeName:["translateTo"],values:[[[0,0],[0,-n.height]]]}),n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,n.height],[0,0]]]}),n=>{},n=>({attributeName:["translateTo"],values:[[[0,-n.height],[0,-n.height]]]}),t,r)}flipLeft(t=Nn,r=this.objects.length-1){this._predefinedAnimate(n=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[0,180]]}),n=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[-180,0]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]]}),t,r)}flipRight(t=Nn,r=this.objects.length-1){this._predefinedAnimate(n=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[0,-180]]}),n=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[180,0]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]]}),t,r)}flipDown(t=Nn,r=this.objects.length-1){this._predefinedAnimate(n=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[0,-180]]}),n=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[180,0]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]]}),t,r)}flipUp(t=Nn,r=this.objects.length-1){this._predefinedAnimate(n=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[0,180]]}),n=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[-180,0]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]]}),t,r)}popIn(t=Nn,r=this.objects.length-1){this._predefinedAnimate(n=>{},n=>({attributeName:["translateTo","scaleTo","opacity"],values:[[[0,0],[0,0]],[.8,1],[0,1]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]]}),t,r)}popOut(t=Nn,r=this.objects.length-1){this._predefinedAnimate(n=>{},n=>({attributeName:["translateTo","scaleTo","opacity"],values:[[[0,0],[0,0]],[1,1.2],[1,0]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]]}),t,r)}rotate(t=Nn,r=this.objects.length-1){Object.assign(t,{keyTimes:[0,1]});const n=t.degree??360;this._predefinedAnimate(i=>{},i=>({attributeName:["opacity","rotate"],values:[[1,1],[0,n]]}),i=>{},i=>({attributeName:["opacity"],values:[[0,0]]}),t,r)}}var mC=null;if(navigator.mozGetUserMedia)window.webrtcDetectedBrowser="firefox",window.webrtcDetectedVersion=parseInt(navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1],10),RTCSessionDescription=mozRTCSessionDescription,RTCIceCandidate=mozRTCIceCandidate,window.getUserMedia=navigator.mozGetUserMedia.bind(navigator),navigator.getUserMedia=mC,window.createIceServer=function(e,t,r){var n=null,i=e.split(":");if(i[0].indexOf("stun")===0)n={url:e};else if(i[0].indexOf("turn")===0){var o=e.split("?");(o.length===1||o[1].indexOf("transport=udp")===0)&&(n={url:o[0],credential:r,username:t})}return n},window.createIceServers=function(e,t,r){for(var n=[],i=0;i<e.length;i++){var o=createIceServer(e[i],t,r);o!==null&&n.push(o)}return n},window.attachMediaStream=function(e,t){e.mozSrcObject=t,e.play()},window.reattachMediaStream=function(e,t){e.mozSrcObject=t.mozSrcObject,e.play()};else if(navigator.webkitGetUserMedia){window.webrtcDetectedBrowser="chrome";var gC=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);gC!==null?window.webrtcDetectedVersion=parseInt(gC[2],10):window.webrtcDetectedVersion=999,window.createIceServer=function(e,t,r){var n=null,i=e.split(":");return i[0].indexOf("stun")===0?n={url:e}:i[0].indexOf("turn")===0&&(n={url:e,credential:r,username:t}),n},window.createIceServers=function(e,t,r){for(var n=[],i=0;i<e.length;i++){var o=createIceServer(e[i],t,r);o!==null&&n.push(o)}return n},window.getUserMedia=navigator.webkitGetUserMedia.bind(navigator),navigator.getUserMedia=mC,window.attachMediaStream=function(e,t){typeof e.srcObject<"u"?e.srcObject=t:typeof e.mozSrcObject<"u"?e.mozSrcObject=t:typeof e.src<"u"&&(e.src=URL.createObjectURL(t))},window.reattachMediaStream=function(e,t){e.src=t.src}}var O1={exports:{}},lu={},N1={},A1={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e._registerNode=e.Konva=e.glob=void 0;const t=Math.PI/180;function r(){return typeof window<"u"&&({}.toString.call(window)==="[object Window]"||{}.toString.call(window)==="[object global]")}e.glob=typeof Uv<"u"?Uv:typeof window<"u"?window:typeof WorkerGlobalScope<"u"?self:{},e.Konva={_global:e.glob,version:"9.2.2",isBrowser:r(),isUnminified:/param/.test(function(i){}.toString()),dblClickWindow:400,getAngle(i){return e.Konva.angleDeg?i*t:i},enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,pixelRatio:typeof window<"u"&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging(){return e.Konva.DD.isDragging},isDragReady(){return!!e.Konva.DD.node},releaseCanvasOnDestroy:!0,document:e.glob.document,_injectGlobal(i){e.glob.Konva=i}};const n=i=>{e.Konva[i.prototype.getClassName()]=i};e._registerNode=n,e.Konva._injectGlobal(e.Konva)})(A1);const TX=Ln(A1),OX=se({__proto__:null,default:TX},[A1]),Ne=ae(OX);var D1={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Util=e.Transform=void 0;const t=Ne;class r{constructor(x=[1,0,0,1,0,0]){this.dirty=!1,this.m=x&&x.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new r(this.m)}copyInto(x){x.m[0]=this.m[0],x.m[1]=this.m[1],x.m[2]=this.m[2],x.m[3]=this.m[3],x.m[4]=this.m[4],x.m[5]=this.m[5]}point(x){var A=this.m;return{x:A[0]*x.x+A[2]*x.y+A[4],y:A[1]*x.x+A[3]*x.y+A[5]}}translate(x,A){return this.m[4]+=this.m[0]*x+this.m[2]*A,this.m[5]+=this.m[1]*x+this.m[3]*A,this}scale(x,A){return this.m[0]*=x,this.m[1]*=x,this.m[2]*=A,this.m[3]*=A,this}rotate(x){var A=Math.cos(x),E=Math.sin(x),k=this.m[0]*A+this.m[2]*E,D=this.m[1]*A+this.m[3]*E,V=this.m[0]*-E+this.m[2]*A,U=this.m[1]*-E+this.m[3]*A;return this.m[0]=k,this.m[1]=D,this.m[2]=V,this.m[3]=U,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(x,A){var E=this.m[0]+this.m[2]*A,k=this.m[1]+this.m[3]*A,D=this.m[2]+this.m[0]*x,V=this.m[3]+this.m[1]*x;return this.m[0]=E,this.m[1]=k,this.m[2]=D,this.m[3]=V,this}multiply(x){var A=this.m[0]*x.m[0]+this.m[2]*x.m[1],E=this.m[1]*x.m[0]+this.m[3]*x.m[1],k=this.m[0]*x.m[2]+this.m[2]*x.m[3],D=this.m[1]*x.m[2]+this.m[3]*x.m[3],V=this.m[0]*x.m[4]+this.m[2]*x.m[5]+this.m[4],U=this.m[1]*x.m[4]+this.m[3]*x.m[5]+this.m[5];return this.m[0]=A,this.m[1]=E,this.m[2]=k,this.m[3]=D,this.m[4]=V,this.m[5]=U,this}invert(){var x=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),A=this.m[3]*x,E=-this.m[1]*x,k=-this.m[2]*x,D=this.m[0]*x,V=x*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),U=x*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=A,this.m[1]=E,this.m[2]=k,this.m[3]=D,this.m[4]=V,this.m[5]=U,this}getMatrix(){return this.m}decompose(){var x=this.m[0],A=this.m[1],E=this.m[2],k=this.m[3],D=this.m[4],V=this.m[5],U=x*k-A*E;let K={x:D,y:V,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(x!=0||A!=0){var Y=Math.sqrt(x*x+A*A);K.rotation=A>0?Math.acos(x/Y):-Math.acos(x/Y),K.scaleX=Y,K.scaleY=U/Y,K.skewX=(x*E+A*k)/U,K.skewY=0}else if(E!=0||k!=0){var it=Math.sqrt(E*E+k*k);K.rotation=Math.PI/2-(k>0?Math.acos(-E/it):-Math.acos(E/it)),K.scaleX=U/it,K.scaleY=it,K.skewX=0,K.skewY=(x*E+A*k)/U}return K.rotation=e.Util._getRotation(K.rotation),K}}e.Transform=r;var n="[object Array]",i="[object Number]",o="[object String]",s="[object Boolean]",a=Math.PI/180,c=180/Math.PI,l="#",u="",h="0",f="Konva warning: ",d="Konva error: ",p="rgb(",g={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},v=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/,b=[];const y=typeof requestAnimationFrame<"u"&&requestAnimationFrame||function(m){setTimeout(m,60)};e.Util={_isElement(m){return!!(m&&m.nodeType==1)},_isFunction(m){return!!(m&&m.constructor&&m.call&&m.apply)},_isPlainObject(m){return!!m&&m.constructor===Object},_isArray(m){return Object.prototype.toString.call(m)===n},_isNumber(m){return Object.prototype.toString.call(m)===i&&!isNaN(m)&&isFinite(m)},_isString(m){return Object.prototype.toString.call(m)===o},_isBoolean(m){return Object.prototype.toString.call(m)===s},isObject(m){return m instanceof Object},isValidSelector(m){if(typeof m!="string")return!1;var x=m[0];return x==="#"||x==="."||x===x.toUpperCase()},_sign(m){return m===0||m>0?1:-1},requestAnimFrame(m){b.push(m),b.length===1&&y(function(){const x=b;b=[],x.forEach(function(A){A()})})},createCanvasElement(){var m=document.createElement("canvas");try{m.style=m.style||{}}catch{}return m},createImageElement(){return document.createElement("img")},_isInDocument(m){for(;m=m.parentNode;)if(m==document)return!0;return!1},_urlToImage(m,x){var A=e.Util.createImageElement();A.onload=function(){x(A)},A.src=m},_rgbToHex(m,x,A){return(16777216+(m<<16)+(x<<8)+A).toString(16).slice(1)},_hexToRgb(m){m=m.replace(l,u);var x=parseInt(m,16);return{r:x>>16&255,g:x>>8&255,b:x&255}},getRandomColor(){for(var m=(Math.random()*16777215<<0).toString(16);m.length<6;)m=h+m;return l+m},getRGB(m){var x;return m in g?(x=g[m],{r:x[0],g:x[1],b:x[2]}):m[0]===l?this._hexToRgb(m.substring(1)):m.substr(0,4)===p?(x=v.exec(m.replace(/ /g,"")),{r:parseInt(x[1],10),g:parseInt(x[2],10),b:parseInt(x[3],10)}):{r:0,g:0,b:0}},colorToRGBA(m){return m=m||"black",e.Util._namedColorToRBA(m)||e.Util._hex3ColorToRGBA(m)||e.Util._hex4ColorToRGBA(m)||e.Util._hex6ColorToRGBA(m)||e.Util._hex8ColorToRGBA(m)||e.Util._rgbColorToRGBA(m)||e.Util._rgbaColorToRGBA(m)||e.Util._hslColorToRGBA(m)},_namedColorToRBA(m){var x=g[m.toLowerCase()];return x?{r:x[0],g:x[1],b:x[2],a:1}:null},_rgbColorToRGBA(m){if(m.indexOf("rgb(")===0){m=m.match(/rgb\(([^)]+)\)/)[1];var x=m.split(/ *, */).map(Number);return{r:x[0],g:x[1],b:x[2],a:1}}},_rgbaColorToRGBA(m){if(m.indexOf("rgba(")===0){m=m.match(/rgba\(([^)]+)\)/)[1];var x=m.split(/ *, */).map((A,E)=>A.slice(-1)==="%"?E===3?parseInt(A)/100:parseInt(A)/100*255:Number(A));return{r:x[0],g:x[1],b:x[2],a:x[3]}}},_hex8ColorToRGBA(m){if(m[0]==="#"&&m.length===9)return{r:parseInt(m.slice(1,3),16),g:parseInt(m.slice(3,5),16),b:parseInt(m.slice(5,7),16),a:parseInt(m.slice(7,9),16)/255}},_hex6ColorToRGBA(m){if(m[0]==="#"&&m.length===7)return{r:parseInt(m.slice(1,3),16),g:parseInt(m.slice(3,5),16),b:parseInt(m.slice(5,7),16),a:1}},_hex4ColorToRGBA(m){if(m[0]==="#"&&m.length===5)return{r:parseInt(m[1]+m[1],16),g:parseInt(m[2]+m[2],16),b:parseInt(m[3]+m[3],16),a:parseInt(m[4]+m[4],16)/255}},_hex3ColorToRGBA(m){if(m[0]==="#"&&m.length===4)return{r:parseInt(m[1]+m[1],16),g:parseInt(m[2]+m[2],16),b:parseInt(m[3]+m[3],16),a:1}},_hslColorToRGBA(m){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(m)){const[x,...A]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(m),E=Number(A[0])/360,k=Number(A[1])/100,D=Number(A[2])/100;let V,U,K;if(k===0)return K=D*255,{r:Math.round(K),g:Math.round(K),b:Math.round(K),a:1};D<.5?V=D*(1+k):V=D+k-D*k;const Y=2*D-V,it=[0,0,0];for(let nt=0;nt<3;nt++)U=E+.3333333333333333*-(nt-1),U<0&&U++,U>1&&U--,6*U<1?K=Y+(V-Y)*6*U:2*U<1?K=V:3*U<2?K=Y+(V-Y)*(.6666666666666666-U)*6:K=Y,it[nt]=K*255;return{r:Math.round(it[0]),g:Math.round(it[1]),b:Math.round(it[2]),a:1}}},haveIntersection(m,x){return!(x.x>m.x+m.width||x.x+x.width<m.x||x.y>m.y+m.height||x.y+x.height<m.y)},cloneObject(m){var x={};for(var A in m)this._isPlainObject(m[A])?x[A]=this.cloneObject(m[A]):this._isArray(m[A])?x[A]=this.cloneArray(m[A]):x[A]=m[A];return x},cloneArray(m){return m.slice(0)},degToRad(m){return m*a},radToDeg(m){return m*c},_degToRad(m){return e.Util.warn("Util._degToRad is removed. Please use public Util.degToRad instead."),e.Util.degToRad(m)},_radToDeg(m){return e.Util.warn("Util._radToDeg is removed. Please use public Util.radToDeg instead."),e.Util.radToDeg(m)},_getRotation(m){return t.Konva.angleDeg?e.Util.radToDeg(m):m},_capitalize(m){return m.charAt(0).toUpperCase()+m.slice(1)},throw(m){throw new Error(d+m)},error(m){console.error(d+m)},warn(m){t.Konva.showWarnings&&console.warn(f+m)},each(m,x){for(var A in m)x(A,m[A])},_inRange(m,x,A){return x<=m&&m<A},_getProjectionToSegment(m,x,A,E,k,D){var V,U,K,Y=(m-A)*(m-A)+(x-E)*(x-E);if(Y==0)V=m,U=x,K=(k-A)*(k-A)+(D-E)*(D-E);else{var it=((k-m)*(A-m)+(D-x)*(E-x))/Y;it<0?(V=m,U=x,K=(m-k)*(m-k)+(x-D)*(x-D)):it>1?(V=A,U=E,K=(A-k)*(A-k)+(E-D)*(E-D)):(V=m+it*(A-m),U=x+it*(E-x),K=(V-k)*(V-k)+(U-D)*(U-D))}return[V,U,K]},_getProjectionToLine(m,x,A){var E=e.Util.cloneObject(m),k=Number.MAX_VALUE;return x.forEach(function(D,V){if(!(!A&&V===x.length-1)){var U=x[(V+1)%x.length],K=e.Util._getProjectionToSegment(D.x,D.y,U.x,U.y,m.x,m.y),Y=K[0],it=K[1],nt=K[2];nt<k&&(E.x=Y,E.y=it,k=nt)}}),E},_prepareArrayForTween(m,x,A){var E,k=[],D=[];if(m.length>x.length){var V=x;x=m,m=V}for(E=0;E<m.length;E+=2)k.push({x:m[E],y:m[E+1]});for(E=0;E<x.length;E+=2)D.push({x:x[E],y:x[E+1]});var U=[];return D.forEach(function(K){var Y=e.Util._getProjectionToLine(K,k,A);U.push(Y.x),U.push(Y.y)}),U},_prepareToStringify(m){var x;m.visitedByCircularReferenceRemoval=!0;for(var A in m)if(m.hasOwnProperty(A)&&m[A]&&typeof m[A]=="object"){if(x=Object.getOwnPropertyDescriptor(m,A),m[A].visitedByCircularReferenceRemoval||e.Util._isElement(m[A]))if(x.configurable)delete m[A];else return null;else if(e.Util._prepareToStringify(m[A])===null)if(x.configurable)delete m[A];else return null}return delete m.visitedByCircularReferenceRemoval,m},_assign(m,x){for(var A in x)m[A]=x[A];return m},_getFirstPointerId(m){return m.touches?m.changedTouches[0].identifier:m.pointerId||999},releaseCanvas(...m){t.Konva.releaseCanvasOnDestroy&&m.forEach(x=>{x.width=0,x.height=0})},drawRoundedRectPath(m,x,A,E){let k=0,D=0,V=0,U=0;typeof E=="number"?k=D=V=U=Math.min(E,x/2,A/2):(k=Math.min(E[0]||0,x/2,A/2),D=Math.min(E[1]||0,x/2,A/2),U=Math.min(E[2]||0,x/2,A/2),V=Math.min(E[3]||0,x/2,A/2)),m.moveTo(k,0),m.lineTo(x-D,0),m.arc(x-D,D,D,Math.PI*3/2,0,!1),m.lineTo(x,A-U),m.arc(x-U,A-U,U,0,Math.PI/2,!1),m.lineTo(V,A),m.arc(V,A-V,V,Math.PI/2,Math.PI,!1),m.lineTo(0,k),m.arc(k,k,k,Math.PI,Math.PI*3/2,!1)}}})(D1);const NX=Ln(D1),AX=se({__proto__:null,default:NX},[D1]),Sr=ae(AX);var cu={},R1={},mr={};Object.defineProperty(mr,"__esModule",{value:!0});var vC=mr.getComponentValidator=kC=mr.getBooleanValidator=CC=mr.getNumberArrayValidator=EC=mr.getFunctionValidator=$C=mr.getStringOrGradientValidator=SC=mr.getStringValidator=xC=mr.getNumberOrAutoValidator=wC=mr.getNumberOrArrayOfNumbersValidator=bC=mr.getNumberValidator=_C=mr.alphaComponent=yC=mr.RGBComponent=void 0;const To=Ne,$r=Sr;function Oo(e){return $r.Util._isString(e)?'"'+e+'"':Object.prototype.toString.call(e)==="[object Number]"||$r.Util._isBoolean(e)?e:Object.prototype.toString.call(e)}function DX(e){return e>255?255:e<0?0:Math.round(e)}var yC=mr.RGBComponent=DX;function RX(e){return e>1?1:e<1e-4?1e-4:e}var _C=mr.alphaComponent=RX;function IX(){if(To.Konva.isUnminified)return function(e,t){return $r.Util._isNumber(e)||$r.Util.warn(Oo(e)+' is a not valid value for "'+t+'" attribute. The value should be a number.'),e}}var bC=mr.getNumberValidator=IX;function jX(e){if(To.Konva.isUnminified)return function(t,r){let n=$r.Util._isNumber(t),i=$r.Util._isArray(t)&&t.length==e;return!n&&!i&&$r.Util.warn(Oo(t)+' is a not valid value for "'+r+'" attribute. The value should be a number or Array<number>('+e+")"),t}}var wC=mr.getNumberOrArrayOfNumbersValidator=jX;function FX(){if(To.Konva.isUnminified)return function(e,t){var r=$r.Util._isNumber(e),n=e==="auto";return r||n||$r.Util.warn(Oo(e)+' is a not valid value for "'+t+'" attribute. The value should be a number or "auto".'),e}}var xC=mr.getNumberOrAutoValidator=FX;function MX(){if(To.Konva.isUnminified)return function(e,t){return $r.Util._isString(e)||$r.Util.warn(Oo(e)+' is a not valid value for "'+t+'" attribute. The value should be a string.'),e}}var SC=mr.getStringValidator=MX;function LX(){if(To.Konva.isUnminified)return function(e,t){const r=$r.Util._isString(e),n=Object.prototype.toString.call(e)==="[object CanvasGradient]"||e&&e.addColorStop;return r||n||$r.Util.warn(Oo(e)+' is a not valid value for "'+t+'" attribute. The value should be a string or a native gradient.'),e}}var $C=mr.getStringOrGradientValidator=LX;function VX(){if(To.Konva.isUnminified)return function(e,t){return $r.Util._isFunction(e)||$r.Util.warn(Oo(e)+' is a not valid value for "'+t+'" attribute. The value should be a function.'),e}}var EC=mr.getFunctionValidator=VX;function UX(){if(To.Konva.isUnminified)return function(e,t){const r=Int8Array?Object.getPrototypeOf(Int8Array):null;return r&&e instanceof r||($r.Util._isArray(e)?e.forEach(function(n){$r.Util._isNumber(n)||$r.Util.warn('"'+t+'" attribute has non numeric element '+n+". Make sure that all elements are numbers.")}):$r.Util.warn(Oo(e)+' is a not valid value for "'+t+'" attribute. The value should be a array of numbers.')),e}}var CC=mr.getNumberArrayValidator=UX;function zX(){if(To.Konva.isUnminified)return function(e,t){var r=e===!0||e===!1;return r||$r.Util.warn(Oo(e)+' is a not valid value for "'+t+'" attribute. The value should be a boolean.'),e}}var kC=mr.getBooleanValidator=zX;function GX(e){if(To.Konva.isUnminified)return function(t,r){return t==null||$r.Util.isObject(t)||$r.Util.warn(Oo(t)+' is a not valid value for "'+r+'" attribute. The value should be an object with properties '+e),t}}vC=mr.getComponentValidator=GX;const BX=se({__proto__:null,get RGBComponent(){return yC},get alphaComponent(){return _C},default:mr,get getBooleanValidator(){return kC},get getComponentValidator(){return vC},get getFunctionValidator(){return EC},get getNumberArrayValidator(){return CC},get getNumberOrArrayOfNumbersValidator(){return wC},get getNumberOrAutoValidator(){return xC},get getNumberValidator(){return bC},get getStringOrGradientValidator(){return $C},get getStringValidator(){return SC}},[mr]),Ae=ae(BX);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Factory=void 0;const t=Sr,r=Ae;var n="get",i="set";e.Factory={addGetterSetter(o,s,a,c,l){e.Factory.addGetter(o,s,a),e.Factory.addSetter(o,s,c,l),e.Factory.addOverloadedGetterSetter(o,s)},addGetter(o,s,a){var c=n+t.Util._capitalize(s);o.prototype[c]=o.prototype[c]||function(){var l=this.attrs[s];return l===void 0?a:l}},addSetter(o,s,a,c){var l=i+t.Util._capitalize(s);o.prototype[l]||e.Factory.overWriteSetter(o,s,a,c)},overWriteSetter(o,s,a,c){var l=i+t.Util._capitalize(s);o.prototype[l]=function(u){return a&&u!==void 0&&u!==null&&(u=a.call(this,u,s)),this._setAttr(s,u),c&&c.call(this),this}},addComponentsGetterSetter(o,s,a,c,l){var u=a.length,h=t.Util._capitalize,f=n+h(s),d=i+h(s),p,g;o.prototype[f]=function(){var b={};for(p=0;p<u;p++)g=a[p],b[g]=this.getAttr(s+h(g));return b};var v=(0,r.getComponentValidator)(a);o.prototype[d]=function(b){var y=this.attrs[s],m;c&&(b=c.call(this,b)),v&&v.call(this,b,s);for(m in b)b.hasOwnProperty(m)&&this._setAttr(s+h(m),b[m]);return b||a.forEach(x=>{this._setAttr(s+h(x),void 0)}),this._fireChangeEvent(s,y,b),l&&l.call(this),this},e.Factory.addOverloadedGetterSetter(o,s)},addOverloadedGetterSetter(o,s){var a=t.Util._capitalize(s),c=i+a,l=n+a;o.prototype[s]=function(){return arguments.length?(this[c](arguments[0]),this):this[l]()}},addDeprecatedGetterSetter(o,s,a,c){t.Util.error("Adding deprecated "+s);var l=n+t.Util._capitalize(s),u=s+" property is deprecated and will be removed soon. Look at Konva change log for more information.";o.prototype[l]=function(){t.Util.error(u);var h=this.attrs[s];return h===void 0?a:h},e.Factory.addSetter(o,s,c,function(){t.Util.error(u)}),e.Factory.addOverloadedGetterSetter(o,s)},backCompat(o,s){t.Util.each(s,function(a,c){var l=o.prototype[c],u=n+t.Util._capitalize(a),h=i+t.Util._capitalize(a);function f(){l.apply(this,arguments),t.Util.error('"'+a+'" method is deprecated and will be removed soon. Use ""'+c+'" instead.')}o.prototype[a]=f,o.prototype[u]=f,o.prototype[h]=f})},afterSetFilter(){this._filterUpToDate=!1}}})(R1);const HX=Ln(R1),qX=se({__proto__:null,default:HX},[R1]),Pe=ae(qX);var No={},Ao={};Object.defineProperty(Ao,"__esModule",{value:!0});var PC=Ao.HitContext=DC=Ao.SceneContext=AC=Ao.Context=void 0;const TC=Sr,KX=Ne;function YX(e){var t=[],r=e.length,n=TC.Util,i,o;for(i=0;i<r;i++)o=e[i],n._isNumber(o)?o=Math.round(o*1e3)/1e3:n._isString(o)||(o=o+""),t.push(o);return t}var OC=",",XX="(",JX=")",WX="([",QX="])",ZX=";",tJ="()",eJ="=",NC=["arc","arcTo","beginPath","bezierCurveTo","clearRect","clip","closePath","createLinearGradient","createPattern","createRadialGradient","drawImage","ellipse","fill","fillText","getImageData","createImageData","lineTo","moveTo","putImageData","quadraticCurveTo","rect","restore","rotate","save","scale","setLineDash","setTransform","stroke","strokeText","transform","translate"],rJ=["fillStyle","strokeStyle","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","letterSpacing","lineCap","lineDashOffset","lineJoin","lineWidth","miterLimit","direction","font","textAlign","textBaseline","globalAlpha","globalCompositeOperation","imageSmoothingEnabled"];const nJ=100;class $f{constructor(t){this.canvas=t,KX.Konva.enableTrace&&(this.traceArr=[],this._enableTrace())}fillShape(t){t.fillEnabled()&&this._fill(t)}_fill(t){}strokeShape(t){t.hasStroke()&&this._stroke(t)}_stroke(t){}fillStrokeShape(t){t.attrs.fillAfterStrokeEnabled?(this.strokeShape(t),this.fillShape(t)):(this.fillShape(t),this.strokeShape(t))}getTrace(t,r){var n=this.traceArr,i=n.length,o="",s,a,c,l;for(s=0;s<i;s++)a=n[s],c=a.method,c?(l=a.args,o+=c,t?o+=tJ:TC.Util._isArray(l[0])?o+=WX+l.join(OC)+QX:(r&&(l=l.map(u=>typeof u=="number"?Math.floor(u):u)),o+=XX+l.join(OC)+JX)):(o+=a.property,t||(o+=eJ+a.val)),o+=ZX;return o}clearTrace(){this.traceArr=[]}_trace(t){var r=this.traceArr,n;r.push(t),n=r.length,n>=nJ&&r.shift()}reset(){var t=this.getCanvas().getPixelRatio();this.setTransform(1*t,0,0,1*t,0,0)}getCanvas(){return this.canvas}clear(t){var r=this.getCanvas();t?this.clearRect(t.x||0,t.y||0,t.width||0,t.height||0):this.clearRect(0,0,r.getWidth()/r.pixelRatio,r.getHeight()/r.pixelRatio)}_applyLineCap(t){const r=t.attrs.lineCap;r&&this.setAttr("lineCap",r)}_applyOpacity(t){var r=t.getAbsoluteOpacity();r!==1&&this.setAttr("globalAlpha",r)}_applyLineJoin(t){const r=t.attrs.lineJoin;r&&this.setAttr("lineJoin",r)}setAttr(t,r){this._context[t]=r}arc(t,r,n,i,o,s){this._context.arc(t,r,n,i,o,s)}arcTo(t,r,n,i,o){this._context.arcTo(t,r,n,i,o)}beginPath(){this._context.beginPath()}bezierCurveTo(t,r,n,i,o,s){this._context.bezierCurveTo(t,r,n,i,o,s)}clearRect(t,r,n,i){this._context.clearRect(t,r,n,i)}clip(...t){this._context.clip.apply(this._context,t)}closePath(){this._context.closePath()}createImageData(t,r){var n=arguments;if(n.length===2)return this._context.createImageData(t,r);if(n.length===1)return this._context.createImageData(t)}createLinearGradient(t,r,n,i){return this._context.createLinearGradient(t,r,n,i)}createPattern(t,r){return this._context.createPattern(t,r)}createRadialGradient(t,r,n,i,o,s){return this._context.createRadialGradient(t,r,n,i,o,s)}drawImage(t,r,n,i,o,s,a,c,l){var u=arguments,h=this._context;u.length===3?h.drawImage(t,r,n):u.length===5?h.drawImage(t,r,n,i,o):u.length===9&&h.drawImage(t,r,n,i,o,s,a,c,l)}ellipse(t,r,n,i,o,s,a,c){this._context.ellipse(t,r,n,i,o,s,a,c)}isPointInPath(t,r,n,i){return n?this._context.isPointInPath(n,t,r,i):this._context.isPointInPath(t,r,i)}fill(...t){this._context.fill.apply(this._context,t)}fillRect(t,r,n,i){this._context.fillRect(t,r,n,i)}strokeRect(t,r,n,i){this._context.strokeRect(t,r,n,i)}fillText(t,r,n,i){i?this._context.fillText(t,r,n,i):this._context.fillText(t,r,n)}measureText(t){return this._context.measureText(t)}getImageData(t,r,n,i){return this._context.getImageData(t,r,n,i)}lineTo(t,r){this._context.lineTo(t,r)}moveTo(t,r){this._context.moveTo(t,r)}rect(t,r,n,i){this._context.rect(t,r,n,i)}putImageData(t,r,n){this._context.putImageData(t,r,n)}quadraticCurveTo(t,r,n,i){this._context.quadraticCurveTo(t,r,n,i)}restore(){this._context.restore()}rotate(t){this._context.rotate(t)}save(){this._context.save()}scale(t,r){this._context.scale(t,r)}setLineDash(t){this._context.setLineDash?this._context.setLineDash(t):"mozDash"in this._context?this._context.mozDash=t:"webkitLineDash"in this._context&&(this._context.webkitLineDash=t)}getLineDash(){return this._context.getLineDash()}setTransform(t,r,n,i,o,s){this._context.setTransform(t,r,n,i,o,s)}stroke(t){t?this._context.stroke(t):this._context.stroke()}strokeText(t,r,n,i){this._context.strokeText(t,r,n,i)}transform(t,r,n,i,o,s){this._context.transform(t,r,n,i,o,s)}translate(t,r){this._context.translate(t,r)}_enableTrace(){var t=this,r=NC.length,n=this.setAttr,i,o,s=function(a){var c=t[a],l;t[a]=function(){return o=YX(Array.prototype.slice.call(arguments,0)),l=c.apply(t,arguments),t._trace({method:a,args:o}),l}};for(i=0;i<r;i++)s(NC[i]);t.setAttr=function(){n.apply(t,arguments);var a=arguments[0],c=arguments[1];(a==="shadowOffsetX"||a==="shadowOffsetY"||a==="shadowBlur")&&(c=c/this.canvas.getPixelRatio()),t._trace({property:a,val:c})}}_applyGlobalCompositeOperation(t){const r=t.attrs.globalCompositeOperation;var n=!r||r==="source-over";n||this.setAttr("globalCompositeOperation",r)}}var AC=Ao.Context=$f;rJ.forEach(function(e){Object.defineProperty($f.prototype,e,{get(){return this._context[e]},set(t){this._context[e]=t}})});class iJ extends $f{constructor(t,{willReadFrequently:r=!1}={}){super(t),this._context=t._canvas.getContext("2d",{willReadFrequently:r})}_fillColor(t){var r=t.fill();this.setAttr("fillStyle",r),t._fillFunc(this)}_fillPattern(t){this.setAttr("fillStyle",t._getFillPattern()),t._fillFunc(this)}_fillLinearGradient(t){var r=t._getLinearGradient();r&&(this.setAttr("fillStyle",r),t._fillFunc(this))}_fillRadialGradient(t){const r=t._getRadialGradient();r&&(this.setAttr("fillStyle",r),t._fillFunc(this))}_fill(t){const r=t.fill(),n=t.getFillPriority();if(r&&n==="color"){this._fillColor(t);return}const i=t.getFillPatternImage();if(i&&n==="pattern"){this._fillPattern(t);return}const o=t.getFillLinearGradientColorStops();if(o&&n==="linear-gradient"){this._fillLinearGradient(t);return}const s=t.getFillRadialGradientColorStops();if(s&&n==="radial-gradient"){this._fillRadialGradient(t);return}r?this._fillColor(t):i?this._fillPattern(t):o?this._fillLinearGradient(t):s&&this._fillRadialGradient(t)}_strokeLinearGradient(t){const r=t.getStrokeLinearGradientStartPoint(),n=t.getStrokeLinearGradientEndPoint(),i=t.getStrokeLinearGradientColorStops(),o=this.createLinearGradient(r.x,r.y,n.x,n.y);if(i){for(var s=0;s<i.length;s+=2)o.addColorStop(i[s],i[s+1]);this.setAttr("strokeStyle",o)}}_stroke(t){var r=t.dash(),n=t.getStrokeScaleEnabled();if(t.hasStroke()){if(!n){this.save();var i=this.getCanvas().getPixelRatio();this.setTransform(i,0,0,i,0,0)}this._applyLineCap(t),r&&t.dashEnabled()&&(this.setLineDash(r),this.setAttr("lineDashOffset",t.dashOffset())),this.setAttr("lineWidth",t.strokeWidth()),t.getShadowForStrokeEnabled()||this.setAttr("shadowColor","rgba(0,0,0,0)");var o=t.getStrokeLinearGradientColorStops();o?this._strokeLinearGradient(t):this.setAttr("strokeStyle",t.stroke()),t._strokeFunc(this),n||this.restore()}}_applyShadow(t){var r,n,i,o=(r=t.getShadowRGBA())!==null&&r!==void 0?r:"black",s=(n=t.getShadowBlur())!==null&&n!==void 0?n:5,a=(i=t.getShadowOffset())!==null&&i!==void 0?i:{x:0,y:0},c=t.getAbsoluteScale(),l=this.canvas.getPixelRatio(),u=c.x*l,h=c.y*l;this.setAttr("shadowColor",o),this.setAttr("shadowBlur",s*Math.min(Math.abs(u),Math.abs(h))),this.setAttr("shadowOffsetX",a.x*u),this.setAttr("shadowOffsetY",a.y*h)}}var DC=Ao.SceneContext=iJ;class oJ extends $f{constructor(t){super(t),this._context=t._canvas.getContext("2d",{willReadFrequently:!0})}_fill(t){this.save(),this.setAttr("fillStyle",t.colorKey),t._fillFuncHit(this),this.restore()}strokeShape(t){t.hasHitStroke()&&this._stroke(t)}_stroke(t){if(t.hasHitStroke()){const o=t.getStrokeScaleEnabled();if(!o){this.save();var r=this.getCanvas().getPixelRatio();this.setTransform(r,0,0,r,0,0)}this._applyLineCap(t);var n=t.hitStrokeWidth(),i=n==="auto"?t.strokeWidth():n;this.setAttr("lineWidth",i),this.setAttr("strokeStyle",t.colorKey),t._strokeFuncHit(this),o||this.restore()}}}PC=Ao.HitContext=oJ;const sJ=se({__proto__:null,get Context(){return AC},get HitContext(){return PC},get SceneContext(){return DC},default:Ao},[Ao]),RC=ae(sJ);Object.defineProperty(No,"__esModule",{value:!0});var IC=No.HitCanvas=LC=No.SceneCanvas=MC=No.Canvas=void 0;const Ef=Sr,jC=RC,FC=Ne,aJ=Pe,lJ=Ae;var Cf;function cJ(){if(Cf)return Cf;var e=Ef.Util.createCanvasElement(),t=e.getContext("2d");return Cf=function(){var r=FC.Konva._global.devicePixelRatio||1,n=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return r/n}(),Ef.Util.releaseCanvas(e),Cf}class kf{constructor(t){this.pixelRatio=1,this.width=0,this.height=0,this.isCache=!1;var r=t||{},n=r.pixelRatio||FC.Konva.pixelRatio||cJ();this.pixelRatio=n,this._canvas=Ef.Util.createCanvasElement(),this._canvas.style.padding="0",this._canvas.style.margin="0",this._canvas.style.border="0",this._canvas.style.background="transparent",this._canvas.style.position="absolute",this._canvas.style.top="0",this._canvas.style.left="0"}getContext(){return this.context}getPixelRatio(){return this.pixelRatio}setPixelRatio(t){var r=this.pixelRatio;this.pixelRatio=t,this.setSize(this.getWidth()/r,this.getHeight()/r)}setWidth(t){this.width=this._canvas.width=t*this.pixelRatio,this._canvas.style.width=t+"px";var r=this.pixelRatio,n=this.getContext()._context;n.scale(r,r)}setHeight(t){this.height=this._canvas.height=t*this.pixelRatio,this._canvas.style.height=t+"px";var r=this.pixelRatio,n=this.getContext()._context;n.scale(r,r)}getWidth(){return this.width}getHeight(){return this.height}setSize(t,r){this.setWidth(t||0),this.setHeight(r||0)}toDataURL(t,r){try{return this._canvas.toDataURL(t,r)}catch{try{return this._canvas.toDataURL()}catch(n){return Ef.Util.error("Unable to get data URL. "+n.message+" For more info read https://konvajs.org/docs/posts/Tainted_Canvas.html."),""}}}}var MC=No.Canvas=kf;aJ.Factory.addGetterSetter(kf,"pixelRatio",void 0,(0,lJ.getNumberValidator)());class uJ extends kf{constructor(t={width:0,height:0,willReadFrequently:!1}){super(t),this.context=new jC.SceneContext(this,{willReadFrequently:t.willReadFrequently}),this.setSize(t.width,t.height)}}var LC=No.SceneCanvas=uJ;class hJ extends kf{constructor(t={width:0,height:0}){super(t),this.hitCanvas=!0,this.context=new jC.HitContext(this),this.setSize(t.width,t.height)}}IC=No.HitCanvas=hJ;const dJ=se({__proto__:null,get Canvas(){return MC},get HitCanvas(){return IC},get SceneCanvas(){return LC},default:No},[No]),Pf=ae(dJ);var I1={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DD=void 0;const t=Ne,r=Sr;e.DD={get isDragging(){var n=!1;return e.DD._dragElements.forEach(i=>{i.dragStatus==="dragging"&&(n=!0)}),n},justDragged:!1,get node(){var n;return e.DD._dragElements.forEach(i=>{n=i.node}),n},_dragElements:new Map,_drag(n){const i=[];e.DD._dragElements.forEach((o,s)=>{const{node:a}=o,c=a.getStage();c.setPointersPositions(n),o.pointerId===void 0&&(o.pointerId=r.Util._getFirstPointerId(n));const l=c._changedPointerPositions.find(f=>f.id===o.pointerId);if(l){if(o.dragStatus!=="dragging"){var u=a.dragDistance(),h=Math.max(Math.abs(l.x-o.startPointerPos.x),Math.abs(l.y-o.startPointerPos.y));if(h<u||(a.startDrag({evt:n}),!a.isDragging()))return}a._setDragPosition(n,o),i.push(a)}}),i.forEach(o=>{o.fire("dragmove",{type:"dragmove",target:o,evt:n},!0)})},_endDragBefore(n){const i=[];e.DD._dragElements.forEach(o=>{const{node:s}=o,a=s.getStage();if(n&&a.setPointersPositions(n),!a._changedPointerPositions.find(l=>l.id===o.pointerId))return;(o.dragStatus==="dragging"||o.dragStatus==="stopped")&&(e.DD.justDragged=!0,t.Konva._mouseListenClick=!1,t.Konva._touchListenClick=!1,t.Konva._pointerListenClick=!1,o.dragStatus="stopped");const c=o.node.getLayer()||o.node instanceof t.Konva.Stage&&o.node;c&&i.indexOf(c)===-1&&i.push(c)}),i.forEach(o=>{o.draw()})},_endDragAfter(n){e.DD._dragElements.forEach((i,o)=>{i.dragStatus==="stopped"&&i.node.fire("dragend",{type:"dragend",target:i.node,evt:n},!0),i.dragStatus!=="dragging"&&e.DD._dragElements.delete(o)})}},t.Konva.isBrowser&&(window.addEventListener("mouseup",e.DD._endDragBefore,!0),window.addEventListener("touchend",e.DD._endDragBefore,!0),window.addEventListener("mousemove",e.DD._drag),window.addEventListener("touchmove",e.DD._drag),window.addEventListener("mouseup",e.DD._endDragAfter,!1),window.addEventListener("touchend",e.DD._endDragAfter,!1))})(I1);const fJ=Ln(I1),pJ=se({__proto__:null,default:fJ},[I1]),j1=ae(pJ);Object.defineProperty(cu,"__esModule",{value:!0});var VC=cu.Node=void 0;const Re=Sr,uu=Pe,Tf=Pf,ya=Ne,ri=j1,Tr=Ae;var Of="absoluteOpacity",Nf="allEventListeners",Do="absoluteTransform",UC="absoluteScale",_a="canvas",mJ="Change",gJ="children",vJ="konva",F1="listening",zC="mouseenter",GC="mouseleave",BC="set",HC="Shape",Af=" ",qC="stage",fs="transform",yJ="Stage",M1="visible",_J=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(Af);let bJ=1,Se=class Ay{constructor(t){this._id=bJ++,this.eventListeners={},this.attrs={},this.index=0,this._allEventListeners=null,this.parent=null,this._cache=new Map,this._attachedDepsListeners=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this._dragEventId=null,this._shouldFireChangeEvents=!1,this.setAttrs(t),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(t){(t===fs||t===Do)&&this._cache.get(t)?this._cache.get(t).dirty=!0:t?this._cache.delete(t):this._cache.clear()}_getCache(t,r){var n=this._cache.get(t),i=t===fs||t===Do,o=n===void 0||i&&n.dirty===!0;return o&&(n=r.call(this),this._cache.set(t,n)),n}_calculate(t,r,n){if(!this._attachedDepsListeners.get(t)){const i=r.map(o=>o+"Change.konva").join(Af);this.on(i,()=>{this._clearCache(t)}),this._attachedDepsListeners.set(t,!0)}return this._getCache(t,n)}_getCanvasCache(){return this._cache.get(_a)}_clearSelfAndDescendantCache(t){this._clearCache(t),t===Do&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(_a)){const{scene:t,filter:r,hit:n}=this._cache.get(_a);Re.Util.releaseCanvas(t,r,n),this._cache.delete(_a)}return this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(t){var r=t||{},n={};(r.x===void 0||r.y===void 0||r.width===void 0||r.height===void 0)&&(n=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()||void 0}));var i=Math.ceil(r.width||n.width),o=Math.ceil(r.height||n.height),s=r.pixelRatio,a=r.x===void 0?Math.floor(n.x):r.x,c=r.y===void 0?Math.floor(n.y):r.y,l=r.offset||0,u=r.drawBorder||!1,h=r.hitCanvasPixelRatio||1;if(!i||!o){Re.Util.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");return}i+=l*2+1,o+=l*2+1,a-=l,c-=l;var f=new Tf.SceneCanvas({pixelRatio:s,width:i,height:o}),d=new Tf.SceneCanvas({pixelRatio:s,width:0,height:0,willReadFrequently:!0}),p=new Tf.HitCanvas({pixelRatio:h,width:i,height:o}),g=f.getContext(),v=p.getContext();return p.isCache=!0,f.isCache=!0,this._cache.delete(_a),this._filterUpToDate=!1,r.imageSmoothingEnabled===!1&&(f.getContext()._context.imageSmoothingEnabled=!1,d.getContext()._context.imageSmoothingEnabled=!1),g.save(),v.save(),g.translate(-a,-c),v.translate(-a,-c),this._isUnderCache=!0,this._clearSelfAndDescendantCache(Of),this._clearSelfAndDescendantCache(UC),this.drawScene(f,this),this.drawHit(p,this),this._isUnderCache=!1,g.restore(),v.restore(),u&&(g.save(),g.beginPath(),g.rect(0,0,i,o),g.closePath(),g.setAttr("strokeStyle","red"),g.setAttr("lineWidth",5),g.stroke(),g.restore()),this._cache.set(_a,{scene:f,filter:d,hit:p,x:a,y:c}),this._requestDraw(),this}isCached(){return this._cache.has(_a)}getClientRect(t){throw new Error('abstract "getClientRect" method call')}_transformedRect(t,r){var n=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],i=1/0,o=1/0,s=-1/0,a=-1/0,c=this.getAbsoluteTransform(r);return n.forEach(function(l){var u=c.point(l);i===void 0&&(i=s=u.x,o=a=u.y),i=Math.min(i,u.x),o=Math.min(o,u.y),s=Math.max(s,u.x),a=Math.max(a,u.y)}),{x:i,y:o,width:s-i,height:a-o}}_drawCachedSceneCanvas(t){t.save(),t._applyOpacity(this),t._applyGlobalCompositeOperation(this);const r=this._getCanvasCache();t.translate(r.x,r.y);var n=this._getCachedSceneCanvas(),i=n.pixelRatio;t.drawImage(n._canvas,0,0,n.width/i,n.height/i),t.restore()}_drawCachedHitCanvas(t){var r=this._getCanvasCache(),n=r.hit;t.save(),t.translate(r.x,r.y),t.drawImage(n._canvas,0,0,n.width/n.pixelRatio,n.height/n.pixelRatio),t.restore()}_getCachedSceneCanvas(){var t=this.filters(),r=this._getCanvasCache(),n=r.scene,i=r.filter,o=i.getContext(),s,a,c,l;if(t){if(!this._filterUpToDate){var u=n.pixelRatio;i.setSize(n.width/n.pixelRatio,n.height/n.pixelRatio);try{for(s=t.length,o.clear(),o.drawImage(n._canvas,0,0,n.getWidth()/u,n.getHeight()/u),a=o.getImageData(0,0,i.getWidth(),i.getHeight()),c=0;c<s;c++){if(l=t[c],typeof l!="function"){Re.Util.error("Filter should be type of function, but got "+typeof l+" instead. Please check correct filters");continue}l.call(this,a),o.putImageData(a,0,0)}}catch(h){Re.Util.error("Unable to apply filter. "+h.message+" This post my help you https://konvajs.org/docs/posts/Tainted_Canvas.html.")}this._filterUpToDate=!0}return i}return n}on(t,r){if(this._cache&&this._cache.delete(Nf),arguments.length===3)return this._delegate.apply(this,arguments);var n=t.split(Af),i=n.length,o,s,a,c,l;for(o=0;o<i;o++)s=n[o],a=s.split("."),c=a[0],l=a[1]||"",this.eventListeners[c]||(this.eventListeners[c]=[]),this.eventListeners[c].push({name:l,handler:r});return this}off(t,r){var n=(t||"").split(Af),i=n.length,o,s,a,c,l,u;if(this._cache&&this._cache.delete(Nf),!t)for(s in this.eventListeners)this._off(s);for(o=0;o<i;o++)if(a=n[o],c=a.split("."),l=c[0],u=c[1],l)this.eventListeners[l]&&this._off(l,u,r);else for(s in this.eventListeners)this._off(s,u,r);return this}dispatchEvent(t){var r={target:this,type:t.type,evt:t};return this.fire(t.type,r),this}addEventListener(t,r){return this.on(t,function(n){r.call(this,n.evt)}),this}removeEventListener(t){return this.off(t),this}_delegate(t,r,n){var i=this;this.on(t,function(o){for(var s=o.target.findAncestors(r,!0,i),a=0;a<s.length;a++)o=Re.Util.cloneObject(o),o.currentTarget=s[a],n.call(s[a],o)})}remove(){return this.isDragging()&&this.stopDrag(),ri.DD._dragElements.delete(this._id),this._remove(),this}_clearCaches(){this._clearSelfAndDescendantCache(Do),this._clearSelfAndDescendantCache(Of),this._clearSelfAndDescendantCache(UC),this._clearSelfAndDescendantCache(qC),this._clearSelfAndDescendantCache(M1),this._clearSelfAndDescendantCache(F1)}_remove(){this._clearCaches();var t=this.getParent();t&&t.children&&(t.children.splice(this.index,1),t._setChildrenIndices(),this.parent=null)}destroy(){return this.remove(),this.clearCache(),this}getAttr(t){var r="get"+Re.Util._capitalize(t);return Re.Util._isFunction(this[r])?this[r]():this.attrs[t]}getAncestors(){for(var t=this.getParent(),r=[];t;)r.push(t),t=t.getParent();return r}getAttrs(){return this.attrs||{}}setAttrs(t){return this._batchTransformChanges(()=>{var r,n;if(!t)return this;for(r in t)r!==gJ&&(n=BC+Re.Util._capitalize(r),Re.Util._isFunction(this[n])?this[n](t[r]):this._setAttr(r,t[r]))}),this}isListening(){return this._getCache(F1,this._isListening)}_isListening(t){if(!this.listening())return!1;const r=this.getParent();return r&&r!==t&&this!==t?r._isListening(t):!0}isVisible(){return this._getCache(M1,this._isVisible)}_isVisible(t){if(!this.visible())return!1;const r=this.getParent();return r&&r!==t&&this!==t?r._isVisible(t):!0}shouldDrawHit(t,r=!1){if(t)return this._isVisible(t)&&this._isListening(t);var n=this.getLayer(),i=!1;ri.DD._dragElements.forEach(s=>{s.dragStatus==="dragging"&&(s.node.nodeType==="Stage"||s.node.getLayer()===n)&&(i=!0)});var o=!r&&!ya.Konva.hitOnDragEnabled&&i;return this.isListening()&&this.isVisible()&&!o}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){var t=this.getDepth(),r=this,n=0,i,o,s,a;function c(u){for(i=[],o=u.length,s=0;s<o;s++)a=u[s],n++,a.nodeType!==HC&&(i=i.concat(a.getChildren().slice())),a._id===r._id&&(s=o);i.length>0&&i[0].getDepth()<=t&&c(i)}const l=this.getStage();return r.nodeType!==yJ&&l&&c(l.getChildren()),n}getDepth(){for(var t=0,r=this.parent;r;)t++,r=r.parent;return t}_batchTransformChanges(t){this._batchingTransformChange=!0,t(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(fs),this._clearSelfAndDescendantCache(Do)),this._needClearTransformCache=!1}setPosition(t){return this._batchTransformChanges(()=>{this.x(t.x),this.y(t.y)}),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){const t=this.getStage();if(!t)return null;var r=t.getPointerPosition();if(!r)return null;var n=this.getAbsoluteTransform().copy();return n.invert(),n.point(r)}getAbsolutePosition(t){let r=!1,n=this.parent;for(;n;){if(n.isCached()){r=!0;break}n=n.parent}r&&!t&&(t=!0);var i=this.getAbsoluteTransform(t).getMatrix(),o=new Re.Transform,s=this.offset();return o.m=i.slice(),o.translate(s.x,s.y),o.getTranslation()}setAbsolutePosition(t){const{x:r,y:n,...i}=this._clearTransform();this.attrs.x=r,this.attrs.y=n,this._clearCache(fs);var o=this._getAbsoluteTransform().copy();return o.invert(),o.translate(t.x,t.y),t={x:this.attrs.x+o.getTranslation().x,y:this.attrs.y+o.getTranslation().y},this._setTransform(i),this.setPosition({x:t.x,y:t.y}),this._clearCache(fs),this._clearSelfAndDescendantCache(Do),this}_setTransform(t){var r;for(r in t)this.attrs[r]=t[r]}_clearTransform(){var t={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,t}move(t){var r=t.x,n=t.y,i=this.x(),o=this.y();return r!==void 0&&(i+=r),n!==void 0&&(o+=n),this.setPosition({x:i,y:o}),this}_eachAncestorReverse(t,r){var n=[],i=this.getParent(),o,s;if(!(r&&r._id===this._id)){for(n.unshift(this);i&&(!r||i._id!==r._id);)n.unshift(i),i=i.parent;for(o=n.length,s=0;s<o;s++)t(n[s])}}rotate(t){return this.rotation(this.rotation()+t),this}moveToTop(){if(!this.parent)return Re.Util.warn("Node has no parent. moveToTop function is ignored."),!1;var t=this.index,r=this.parent.getChildren().length;return t<r-1?(this.parent.children.splice(t,1),this.parent.children.push(this),this.parent._setChildrenIndices(),!0):!1}moveUp(){if(!this.parent)return Re.Util.warn("Node has no parent. moveUp function is ignored."),!1;var t=this.index,r=this.parent.getChildren().length;return t<r-1?(this.parent.children.splice(t,1),this.parent.children.splice(t+1,0,this),this.parent._setChildrenIndices(),!0):!1}moveDown(){if(!this.parent)return Re.Util.warn("Node has no parent. moveDown function is ignored."),!1;var t=this.index;return t>0?(this.parent.children.splice(t,1),this.parent.children.splice(t-1,0,this),this.parent._setChildrenIndices(),!0):!1}moveToBottom(){if(!this.parent)return Re.Util.warn("Node has no parent. moveToBottom function is ignored."),!1;var t=this.index;return t>0?(this.parent.children.splice(t,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0):!1}setZIndex(t){if(!this.parent)return Re.Util.warn("Node has no parent. zIndex parameter is ignored."),this;(t<0||t>=this.parent.children.length)&&Re.Util.warn("Unexpected value "+t+" for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to "+(this.parent.children.length-1)+".");var r=this.index;return this.parent.children.splice(r,1),this.parent.children.splice(t,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache(Of,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){var t=this.opacity(),r=this.getParent();return r&&!r._isUnderCache&&(t*=r.getAbsoluteOpacity()),t}moveTo(t){return this.getParent()!==t&&(this._remove(),t.add(this)),this}toObject(){var t={},r=this.getAttrs(),n,i,o,s,a;t.attrs={};for(n in r)i=r[n],a=Re.Util.isObject(i)&&!Re.Util._isPlainObject(i)&&!Re.Util._isArray(i),!a&&(o=typeof this[n]=="function"&&this[n],delete r[n],s=o?o.call(this):null,r[n]=i,s!==i&&(t.attrs[n]=i));return t.className=this.getClassName(),Re.Util._prepareToStringify(t)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(t,r,n){var i=[];r&&this._isMatch(t)&&i.push(this);for(var o=this.parent;o;){if(o===n)return i;o._isMatch(t)&&i.push(o),o=o.parent}return i}isAncestorOf(t){return!1}findAncestor(t,r,n){return this.findAncestors(t,r,n)[0]}_isMatch(t){if(!t)return!1;if(typeof t=="function")return t(this);var r=t.replace(/ /g,"").split(","),n=r.length,i,o;for(i=0;i<n;i++)if(o=r[i],Re.Util.isValidSelector(o)||(Re.Util.warn('Selector "'+o+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),Re.Util.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),Re.Util.warn("Konva is awesome, right?")),o.charAt(0)==="#"){if(this.id()===o.slice(1))return!0}else if(o.charAt(0)==="."){if(this.hasName(o.slice(1)))return!0}else if(this.className===o||this.nodeType===o)return!0;return!1}getLayer(){var t=this.getParent();return t?t.getLayer():null}getStage(){return this._getCache(qC,this._getStage)}_getStage(){var t=this.getParent();return t?t.getStage():null}fire(t,r={},n){return r.target=r.target||this,n?this._fireAndBubble(t,r):this._fire(t,r),this}getAbsoluteTransform(t){return t?this._getAbsoluteTransform(t):this._getCache(Do,this._getAbsoluteTransform)}_getAbsoluteTransform(t){var r;if(t)return r=new Re.Transform,this._eachAncestorReverse(function(i){var o=i.transformsEnabled();o==="all"?r.multiply(i.getTransform()):o==="position"&&r.translate(i.x()-i.offsetX(),i.y()-i.offsetY())},t),r;r=this._cache.get(Do)||new Re.Transform,this.parent?this.parent.getAbsoluteTransform().copyInto(r):r.reset();var n=this.transformsEnabled();if(n==="all")r.multiply(this.getTransform());else if(n==="position"){const i=this.attrs.x||0,o=this.attrs.y||0,s=this.attrs.offsetX||0,a=this.attrs.offsetY||0;r.translate(i-s,o-a)}return r.dirty=!1,r}getAbsoluteScale(t){for(var r=this;r;)r._isUnderCache&&(t=r),r=r.getParent();const n=this.getAbsoluteTransform(t).decompose();return{x:n.scaleX,y:n.scaleY}}getAbsoluteRotation(){return this.getAbsoluteTransform().decompose().rotation}getTransform(){return this._getCache(fs,this._getTransform)}_getTransform(){var t,r,n=this._cache.get(fs)||new Re.Transform;n.reset();var i=this.x(),o=this.y(),s=ya.Konva.getAngle(this.rotation()),a=(t=this.attrs.scaleX)!==null&&t!==void 0?t:1,c=(r=this.attrs.scaleY)!==null&&r!==void 0?r:1,l=this.attrs.skewX||0,u=this.attrs.skewY||0,h=this.attrs.offsetX||0,f=this.attrs.offsetY||0;return(i!==0||o!==0)&&n.translate(i,o),s!==0&&n.rotate(s),(l!==0||u!==0)&&n.skew(l,u),(a!==1||c!==1)&&n.scale(a,c),(h!==0||f!==0)&&n.translate(-1*h,-1*f),n.dirty=!1,n}clone(t){var r=Re.Util.cloneObject(this.attrs),n,i,o,s,a;for(n in t)r[n]=t[n];var c=new this.constructor(r);for(n in this.eventListeners)for(i=this.eventListeners[n],o=i.length,s=0;s<o;s++)a=i[s],a.name.indexOf(vJ)<0&&(c.eventListeners[n]||(c.eventListeners[n]=[]),c.eventListeners[n].push(a));return c}_toKonvaCanvas(t){t=t||{};var r=this.getClientRect(),n=this.getStage(),i=t.x!==void 0?t.x:Math.floor(r.x),o=t.y!==void 0?t.y:Math.floor(r.y),s=t.pixelRatio||1,a=new Tf.SceneCanvas({width:t.width||Math.ceil(r.width)||(n?n.width():0),height:t.height||Math.ceil(r.height)||(n?n.height():0),pixelRatio:s}),c=a.getContext();return t.imageSmoothingEnabled===!1&&(c._context.imageSmoothingEnabled=!1),c.save(),(i||o)&&c.translate(-1*i,-1*o),this.drawScene(a),c.restore(),a}toCanvas(t){return this._toKonvaCanvas(t)._canvas}toDataURL(t){t=t||{};var r=t.mimeType||null,n=t.quality||null,i=this._toKonvaCanvas(t).toDataURL(r,n);return t.callback&&t.callback(i),i}toImage(t){return new Promise((r,n)=>{try{const i=t?.callback;i&&delete t.callback,Re.Util._urlToImage(this.toDataURL(t),function(o){r(o),i?.(o)})}catch(i){n(i)}})}toBlob(t){return new Promise((r,n)=>{try{const i=t?.callback;i&&delete t.callback,this.toCanvas(t).toBlob(o=>{r(o),i?.(o)})}catch(i){n(i)}})}setSize(t){return this.width(t.width),this.height(t.height),this}getSize(){return{width:this.width(),height:this.height()}}getClassName(){return this.className||this.nodeType}getType(){return this.nodeType}getDragDistance(){return this.attrs.dragDistance!==void 0?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():ya.Konva.dragDistance}_off(t,r,n){var i=this.eventListeners[t],o,s,a;for(o=0;o<i.length;o++)if(s=i[o].name,a=i[o].handler,(s!=="konva"||r==="konva")&&(!r||s===r)&&(!n||n===a)){if(i.splice(o,1),i.length===0){delete this.eventListeners[t];break}o--}}_fireChangeEvent(t,r,n){this._fire(t+mJ,{oldVal:r,newVal:n})}addName(t){if(!this.hasName(t)){var r=this.name(),n=r?r+" "+t:t;this.name(n)}return this}hasName(t){if(!t)return!1;const r=this.name();if(!r)return!1;var n=(r||"").split(/\s/g);return n.indexOf(t)!==-1}removeName(t){var r=(this.name()||"").split(/\s/g),n=r.indexOf(t);return n!==-1&&(r.splice(n,1),this.name(r.join(" "))),this}setAttr(t,r){var n=this[BC+Re.Util._capitalize(t)];return Re.Util._isFunction(n)?n.call(this,r):this._setAttr(t,r),this}_requestDraw(){ya.Konva.autoDrawEnabled&&(this.getLayer()||this.getStage())?.batchDraw()}_setAttr(t,r){var n=this.attrs[t];n===r&&!Re.Util.isObject(r)||(r==null?delete this.attrs[t]:this.attrs[t]=r,this._shouldFireChangeEvents&&this._fireChangeEvent(t,n,r),this._requestDraw())}_setComponentAttr(t,r,n){var i;n!==void 0&&(i=this.attrs[t],i||(this.attrs[t]=this.getAttr(t)),this.attrs[t][r]=n,this._fireChangeEvent(t,i,n))}_fireAndBubble(t,r,n){r&&this.nodeType===HC&&(r.target=this);var i=(t===zC||t===GC)&&(n&&(this===n||this.isAncestorOf&&this.isAncestorOf(n))||this.nodeType==="Stage"&&!n);if(!i){this._fire(t,r);var o=(t===zC||t===GC)&&n&&n.isAncestorOf&&n.isAncestorOf(this)&&!n.isAncestorOf(this.parent);(r&&!r.cancelBubble||!r)&&this.parent&&this.parent.isListening()&&!o&&(n&&n.parent?this._fireAndBubble.call(this.parent,t,r,n):this._fireAndBubble.call(this.parent,t,r))}}_getProtoListeners(t){var r,n,i;const o=(r=this._cache.get(Nf))!==null&&r!==void 0?r:{};let s=o?.[t];if(s===void 0){s=[];let a=Object.getPrototypeOf(this);for(;a;){const c=(i=(n=a.eventListeners)===null||n===void 0?void 0:n[t])!==null&&i!==void 0?i:[];s.push(...c),a=Object.getPrototypeOf(a)}o[t]=s,this._cache.set(Nf,o)}return s}_fire(t,r){r=r||{},r.currentTarget=this,r.type=t;const n=this._getProtoListeners(t);if(n)for(var i=0;i<n.length;i++)n[i].handler.call(this,r);const o=this.eventListeners[t];if(o)for(var i=0;i<o.length;i++)o[i].handler.call(this,r)}draw(){return this.drawScene(),this.drawHit(),this}_createDragElement(t){var r=t?t.pointerId:void 0,n=this.getStage(),i=this.getAbsolutePosition();if(n){var o=n._getPointerById(r)||n._changedPointerPositions[0]||i;ri.DD._dragElements.set(this._id,{node:this,startPointerPos:o,offset:{x:o.x-i.x,y:o.y-i.y},dragStatus:"ready",pointerId:r})}}startDrag(t,r=!0){ri.DD._dragElements.has(this._id)||this._createDragElement(t);const n=ri.DD._dragElements.get(this._id);n.dragStatus="dragging",this.fire("dragstart",{type:"dragstart",target:this,evt:t&&t.evt},r)}_setDragPosition(t,r){const n=this.getStage()._getPointerById(r.pointerId);if(n){var i={x:n.x-r.offset.x,y:n.y-r.offset.y},o=this.dragBoundFunc();if(o!==void 0){const s=o.call(this,i,t);s?i=s:Re.Util.warn("dragBoundFunc did not return any value. That is unexpected behavior. You must return new absolute position from dragBoundFunc.")}(!this._lastPos||this._lastPos.x!==i.x||this._lastPos.y!==i.y)&&(this.setAbsolutePosition(i),this._requestDraw()),this._lastPos=i}}stopDrag(t){const r=ri.DD._dragElements.get(this._id);r&&(r.dragStatus="stopped"),ri.DD._endDragBefore(t),ri.DD._endDragAfter(t)}setDraggable(t){this._setAttr("draggable",t),this._dragChange()}isDragging(){const t=ri.DD._dragElements.get(this._id);return t?t.dragStatus==="dragging":!1}_listenDrag(){this._dragCleanup(),this.on("mousedown.konva touchstart.konva",function(t){var r=t.evt.button!==void 0,n=!r||ya.Konva.dragButtons.indexOf(t.evt.button)>=0;if(n&&!this.isDragging()){var i=!1;ri.DD._dragElements.forEach(o=>{this.isAncestorOf(o.node)&&(i=!0)}),i||this._createDragElement(t)}})}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{this._dragCleanup();var t=this.getStage();if(!t)return;const r=ri.DD._dragElements.get(this._id),n=r&&r.dragStatus==="dragging",i=r&&r.dragStatus==="ready";n?this.stopDrag():i&&ri.DD._dragElements.delete(this._id)}}_dragCleanup(){this.off("mousedown.konva"),this.off("touchstart.konva")}isClientRectOnScreen(t={x:0,y:0}){const r=this.getStage();if(!r)return!1;const n={x:-t.x,y:-t.y,width:r.width()+2*t.x,height:r.height()+2*t.y};return Re.Util.haveIntersection(n,this.getClientRect())}static create(t,r){return Re.Util._isString(t)&&(t=JSON.parse(t)),this._createNode(t,r)}static _createNode(t,r){var n=Ay.prototype.getClassName.call(t),i=t.children,o,s,a;r&&(t.attrs.container=r),ya.Konva[n]||(Re.Util.warn('Can not find a node with class name "'+n+'". Fallback to "Shape".'),n="Shape");const c=ya.Konva[n];if(o=new c(t.attrs),i)for(s=i.length,a=0;a<s;a++)o.add(Ay._createNode(i[a]));return o}};VC=cu.Node=Se,Se.prototype.nodeType="Node",Se.prototype._attrsAffectingSize=[],Se.prototype.eventListeners={},Se.prototype.on.call(Se.prototype,_J,function(){if(this._batchingTransformChange){this._needClearTransformCache=!0;return}this._clearCache(fs),this._clearSelfAndDescendantCache(Do)}),Se.prototype.on.call(Se.prototype,"visibleChange.konva",function(){this._clearSelfAndDescendantCache(M1)}),Se.prototype.on.call(Se.prototype,"listeningChange.konva",function(){this._clearSelfAndDescendantCache(F1)}),Se.prototype.on.call(Se.prototype,"opacityChange.konva",function(){this._clearSelfAndDescendantCache(Of)});const or=uu.Factory.addGetterSetter;or(Se,"zIndex"),or(Se,"absolutePosition"),or(Se,"position"),or(Se,"x",0,(0,Tr.getNumberValidator)()),or(Se,"y",0,(0,Tr.getNumberValidator)()),or(Se,"globalCompositeOperation","source-over",(0,Tr.getStringValidator)()),or(Se,"opacity",1,(0,Tr.getNumberValidator)()),or(Se,"name","",(0,Tr.getStringValidator)()),or(Se,"id","",(0,Tr.getStringValidator)()),or(Se,"rotation",0,(0,Tr.getNumberValidator)()),uu.Factory.addComponentsGetterSetter(Se,"scale",["x","y"]),or(Se,"scaleX",1,(0,Tr.getNumberValidator)()),or(Se,"scaleY",1,(0,Tr.getNumberValidator)()),uu.Factory.addComponentsGetterSetter(Se,"skew",["x","y"]),or(Se,"skewX",0,(0,Tr.getNumberValidator)()),or(Se,"skewY",0,(0,Tr.getNumberValidator)()),uu.Factory.addComponentsGetterSetter(Se,"offset",["x","y"]),or(Se,"offsetX",0,(0,Tr.getNumberValidator)()),or(Se,"offsetY",0,(0,Tr.getNumberValidator)()),or(Se,"dragDistance",null,(0,Tr.getNumberValidator)()),or(Se,"width",0,(0,Tr.getNumberValidator)()),or(Se,"height",0,(0,Tr.getNumberValidator)()),or(Se,"listening",!0,(0,Tr.getBooleanValidator)()),or(Se,"preventDefault",!0,(0,Tr.getBooleanValidator)()),or(Se,"filters",null,function(e){return this._filterUpToDate=!1,e}),or(Se,"visible",!0,(0,Tr.getBooleanValidator)()),or(Se,"transformsEnabled","all",(0,Tr.getStringValidator)()),or(Se,"size"),or(Se,"dragBoundFunc"),or(Se,"draggable",!1,(0,Tr.getBooleanValidator)()),uu.Factory.backCompat(Se,{rotateDeg:"rotate",setRotationDeg:"setRotation",getRotationDeg:"getRotation"});const wJ=se({__proto__:null,get Node(){return VC},default:cu},[cu]),Or=ae(wJ);var hu={};Object.defineProperty(hu,"__esModule",{value:!0});var KC=hu.Container=void 0;const hl=Pe,L1=Or,Df=Ae;class ba extends L1.Node{constructor(){super(...arguments),this.children=[]}getChildren(t){if(!t)return this.children||[];const r=this.children||[];var n=[];return r.forEach(function(i){t(i)&&n.push(i)}),n}hasChildren(){return this.getChildren().length>0}removeChildren(){return this.getChildren().forEach(t=>{t.parent=null,t.index=0,t.remove()}),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach(t=>{t.parent=null,t.index=0,t.destroy()}),this.children=[],this._requestDraw(),this}add(...t){if(t.length===0)return this;if(t.length>1){for(var r=0;r<t.length;r++)this.add(t[r]);return this}const n=t[0];return n.getParent()?(n.moveTo(this),this):(this._validateAdd(n),n.index=this.getChildren().length,n.parent=this,n._clearCaches(),this.getChildren().push(n),this._fire("add",{child:n}),this._requestDraw(),this)}destroy(){return this.hasChildren()&&this.destroyChildren(),super.destroy(),this}find(t){return this._generalFind(t,!1)}findOne(t){var r=this._generalFind(t,!0);return r.length>0?r[0]:void 0}_generalFind(t,r){var n=[];return this._descendants(i=>{const o=i._isMatch(t);return o&&n.push(i),!!(o&&r)}),n}_descendants(t){let r=!1;const n=this.getChildren();for(const i of n)if(r=t(i),r||i.hasChildren()&&(r=i._descendants(t),r))return!0;return!1}toObject(){var t=L1.Node.prototype.toObject.call(this);return t.children=[],this.getChildren().forEach(r=>{t.children.push(r.toObject())}),t}isAncestorOf(t){for(var r=t.getParent();r;){if(r._id===this._id)return!0;r=r.getParent()}return!1}clone(t){var r=L1.Node.prototype.clone.call(this,t);return this.getChildren().forEach(function(n){r.add(n.clone())}),r}getAllIntersections(t){var r=[];return this.find("Shape").forEach(n=>{n.isVisible()&&n.intersects(t)&&r.push(n)}),r}_clearSelfAndDescendantCache(t){var r;super._clearSelfAndDescendantCache(t),!this.isCached()&&((r=this.children)===null||r===void 0||r.forEach(function(n){n._clearSelfAndDescendantCache(t)}))}_setChildrenIndices(){var t;(t=this.children)===null||t===void 0||t.forEach(function(r,n){r.index=n}),this._requestDraw()}drawScene(t,r){var n=this.getLayer(),i=t||n&&n.getCanvas(),o=i&&i.getContext(),s=this._getCanvasCache(),a=s&&s.scene,c=i&&i.isCache;if(!this.isVisible()&&!c)return this;if(a){o.save();var l=this.getAbsoluteTransform(r).getMatrix();o.transform(l[0],l[1],l[2],l[3],l[4],l[5]),this._drawCachedSceneCanvas(o),o.restore()}else this._drawChildren("drawScene",i,r);return this}drawHit(t,r){if(!this.shouldDrawHit(r))return this;var n=this.getLayer(),i=t||n&&n.hitCanvas,o=i&&i.getContext(),s=this._getCanvasCache(),a=s&&s.hit;if(a){o.save();var c=this.getAbsoluteTransform(r).getMatrix();o.transform(c[0],c[1],c[2],c[3],c[4],c[5]),this._drawCachedHitCanvas(o),o.restore()}else this._drawChildren("drawHit",i,r);return this}_drawChildren(t,r,n){var i,o=r&&r.getContext(),s=this.clipWidth(),a=this.clipHeight(),c=this.clipFunc(),l=s&&a||c;const u=n===this;if(l){o.save();var h=this.getAbsoluteTransform(n),f=h.getMatrix();o.transform(f[0],f[1],f[2],f[3],f[4],f[5]),o.beginPath();let v;if(c)v=c.call(this,o,this);else{var d=this.clipX(),p=this.clipY();o.rect(d,p,s,a)}o.clip.apply(o,v),f=h.copy().invert().getMatrix(),o.transform(f[0],f[1],f[2],f[3],f[4],f[5])}var g=!u&&this.globalCompositeOperation()!=="source-over"&&t==="drawScene";g&&(o.save(),o._applyGlobalCompositeOperation(this)),(i=this.children)===null||i===void 0||i.forEach(function(v){v[t](r,n)}),g&&o.restore(),l&&o.restore()}getClientRect(t={}){var r,n=t.skipTransform,i=t.relativeTo,o,s,a,c,l={x:1/0,y:1/0,width:0,height:0},u=this;(r=this.children)===null||r===void 0||r.forEach(function(g){if(g.visible()){var v=g.getClientRect({relativeTo:u,skipShadow:t.skipShadow,skipStroke:t.skipStroke});v.width===0&&v.height===0||(o===void 0?(o=v.x,s=v.y,a=v.x+v.width,c=v.y+v.height):(o=Math.min(o,v.x),s=Math.min(s,v.y),a=Math.max(a,v.x+v.width),c=Math.max(c,v.y+v.height)))}});for(var h=this.find("Shape"),f=!1,d=0;d<h.length;d++){var p=h[d];if(p._isVisible(this)){f=!0;break}}return f&&o!==void 0?l={x:o,y:s,width:a-o,height:c-s}:l={x:0,y:0,width:0,height:0},n?l:this._transformedRect(l,i)}}KC=hu.Container=ba,hl.Factory.addComponentsGetterSetter(ba,"clip",["x","y","width","height"]),hl.Factory.addGetterSetter(ba,"clipX",void 0,(0,Df.getNumberValidator)()),hl.Factory.addGetterSetter(ba,"clipY",void 0,(0,Df.getNumberValidator)()),hl.Factory.addGetterSetter(ba,"clipWidth",void 0,(0,Df.getNumberValidator)()),hl.Factory.addGetterSetter(ba,"clipHeight",void 0,(0,Df.getNumberValidator)()),hl.Factory.addGetterSetter(ba,"clipFunc");const xJ=se({__proto__:null,get Container(){return KC},default:hu},[hu]),Rf=ae(xJ);var V1={},zn={};Object.defineProperty(zn,"__esModule",{value:!0});var YC=zn.releaseCapture=ZC=zn.setPointerCapture=QC=zn.hasPointerCapture=WC=zn.createEvent=JC=zn.getCapturedShape=void 0;const SJ=Ne,du=new Map,XC=SJ.Konva._global.PointerEvent!==void 0;function $J(e){return du.get(e)}var JC=zn.getCapturedShape=$J;function U1(e){return{evt:e,pointerId:e.pointerId}}var WC=zn.createEvent=U1;function EJ(e,t){return du.get(e)===t}var QC=zn.hasPointerCapture=EJ;function CJ(e,t){t4(e),t.getStage()&&(du.set(e,t),XC&&t._fire("gotpointercapture",U1(new PointerEvent("gotpointercapture"))))}var ZC=zn.setPointerCapture=CJ;function t4(e,t){const r=du.get(e);if(!r)return;const n=r.getStage();n&&n.content,du.delete(e),XC&&r._fire("lostpointercapture",U1(new PointerEvent("lostpointercapture")))}YC=zn.releaseCapture=t4;const kJ=se({__proto__:null,get createEvent(){return WC},default:zn,get getCapturedShape(){return JC},get hasPointerCapture(){return QC},get releaseCapture(){return YC},get setPointerCapture(){return ZC}},[zn]),e4=ae(kJ);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Stage=e.stages=void 0;const t=Sr,r=Pe,n=Rf,i=Ne,o=Pf,s=j1,a=Ne,c=e4;var l="Stage",u="string",h="px",f="mouseout",d="mouseleave",p="mouseover",g="mouseenter",v="mousemove",b="mousedown",y="mouseup",m="pointermove",x="pointerdown",A="pointerup",E="pointercancel",k="lostpointercapture",D="pointerout",V="pointerleave",U="pointerover",K="pointerenter",Y="contextmenu",it="touchstart",nt="touchend",ft="touchmove",xt="touchcancel",_t="wheel",yt=5,at=[[g,"_pointerenter"],[b,"_pointerdown"],[v,"_pointermove"],[y,"_pointerup"],[d,"_pointerleave"],[it,"_pointerdown"],[ft,"_pointermove"],[nt,"_pointerup"],[xt,"_pointercancel"],[p,"_pointerover"],[_t,"_wheel"],[Y,"_contextmenu"],[x,"_pointerdown"],[m,"_pointermove"],[A,"_pointerup"],[E,"_pointercancel"],[k,"_lostpointercapture"]];const X={mouse:{[D]:f,[V]:d,[U]:p,[K]:g,[m]:v,[x]:b,[A]:y,[E]:"mousecancel",pointerclick:"click",pointerdblclick:"dblclick"},touch:{[D]:"touchout",[V]:"touchleave",[U]:"touchover",[K]:"touchenter",[m]:ft,[x]:it,[A]:nt,[E]:xt,pointerclick:"tap",pointerdblclick:"dbltap"},pointer:{[D]:D,[V]:V,[U]:U,[K]:K,[m]:m,[x]:x,[A]:A,[E]:E,pointerclick:"pointerclick",pointerdblclick:"pointerdblclick"}},O=M=>M.indexOf("pointer")>=0?"pointer":M.indexOf("touch")>=0?"touch":"mouse",C=M=>{const I=O(M);if(I==="pointer")return i.Konva.pointerEventsEnabled&&X.pointer;if(I==="touch")return X.touch;if(I==="mouse")return X.mouse};function $(M={}){return(M.clipFunc||M.clipWidth||M.clipHeight)&&t.Util.warn("Stage does not support clipping. Please use clip for Layers or Groups."),M}const _="Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);";e.stages=[];class P extends n.Container{constructor(I){super($(I)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),e.stages.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",()=>{$(this.attrs)}),this._checkVisibility()}_validateAdd(I){const G=I.getType()==="Layer",q=I.getType()==="FastLayer";G||q||t.Util.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;const I=this.visible()?"":"none";this.content.style.display=I}setContainer(I){if(typeof I===u){if(I.charAt(0)==="."){var G=I.slice(1);I=document.getElementsByClassName(G)[0]}else{var q;I.charAt(0)!=="#"?q=I:q=I.slice(1),I=document.getElementById(q)}if(!I)throw"Can not find container in document with id "+q}return this._setAttr("container",I),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),I.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){var I=this.children,G=I.length,q;for(q=0;q<G;q++)I[q].clear();return this}clone(I){return I||(I={}),I.container=typeof document<"u"&&document.createElement("div"),n.Container.prototype.clone.call(this,I)}destroy(){super.destroy();var I=this.content;I&&t.Util._isInDocument(I)&&this.container().removeChild(I);var G=e.stages.indexOf(this);return G>-1&&e.stages.splice(G,1),t.Util.releaseCanvas(this.bufferCanvas._canvas,this.bufferHitCanvas._canvas),this}getPointerPosition(){const I=this._pointerPositions[0]||this._changedPointerPositions[0];return I?{x:I.x,y:I.y}:(t.Util.warn(_),null)}_getPointerById(I){return this._pointerPositions.find(G=>G.id===I)}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(I){I=I||{},I.x=I.x||0,I.y=I.y||0,I.width=I.width||this.width(),I.height=I.height||this.height();var G=new o.SceneCanvas({width:I.width,height:I.height,pixelRatio:I.pixelRatio||1}),q=G.getContext()._context,et=this.children;return(I.x||I.y)&&q.translate(-1*I.x,-1*I.y),et.forEach(function(st){if(st.isVisible()){var mt=st._toKonvaCanvas(I);q.drawImage(mt._canvas,I.x,I.y,mt.getWidth()/mt.getPixelRatio(),mt.getHeight()/mt.getPixelRatio())}}),G}getIntersection(I){if(!I)return null;var G=this.children,q=G.length,et=q-1,st;for(st=et;st>=0;st--){const mt=G[st].getIntersection(I);if(mt)return mt}return null}_resizeDOM(){var I=this.width(),G=this.height();this.content&&(this.content.style.width=I+h,this.content.style.height=G+h),this.bufferCanvas.setSize(I,G),this.bufferHitCanvas.setSize(I,G),this.children.forEach(q=>{q.setSize({width:I,height:G}),q.draw()})}add(I,...G){if(arguments.length>1){for(var q=0;q<arguments.length;q++)this.add(arguments[q]);return this}super.add(I);var et=this.children.length;return et>yt&&t.Util.warn("The stage has "+et+" layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."),I.setSize({width:this.width(),height:this.height()}),I.draw(),i.Konva.isBrowser&&this.content.appendChild(I.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(I){return c.hasPointerCapture(I,this)}setPointerCapture(I){c.setPointerCapture(I,this)}releaseCapture(I){c.releaseCapture(I,this)}getLayers(){return this.children}_bindContentEvents(){i.Konva.isBrowser&&at.forEach(([I,G])=>{this.content.addEventListener(I,q=>{this[G](q)},{passive:!1})})}_pointerenter(I){this.setPointersPositions(I);const G=C(I.type);G&&this._fire(G.pointerenter,{evt:I,target:this,currentTarget:this})}_pointerover(I){this.setPointersPositions(I);const G=C(I.type);G&&this._fire(G.pointerover,{evt:I,target:this,currentTarget:this})}_getTargetShape(I){let G=this[I+"targetShape"];return G&&!G.getStage()&&(G=null),G}_pointerleave(I){const G=C(I.type),q=O(I.type);if(G){this.setPointersPositions(I);var et=this._getTargetShape(q),st=!s.DD.isDragging||i.Konva.hitOnDragEnabled;et&&st?(et._fireAndBubble(G.pointerout,{evt:I}),et._fireAndBubble(G.pointerleave,{evt:I}),this._fire(G.pointerleave,{evt:I,target:this,currentTarget:this}),this[q+"targetShape"]=null):st&&(this._fire(G.pointerleave,{evt:I,target:this,currentTarget:this}),this._fire(G.pointerout,{evt:I,target:this,currentTarget:this})),this.pointerPos=null,this._pointerPositions=[]}}_pointerdown(I){const G=C(I.type),q=O(I.type);if(G){this.setPointersPositions(I);var et=!1;this._changedPointerPositions.forEach(st=>{var mt=this.getIntersection(st);if(s.DD.justDragged=!1,i.Konva["_"+q+"ListenClick"]=!0,!mt||!mt.isListening())return;i.Konva.capturePointerEventsEnabled&&mt.setPointerCapture(st.id),this[q+"ClickStartShape"]=mt,mt._fireAndBubble(G.pointerdown,{evt:I,pointerId:st.id}),et=!0;const Lt=I.type.indexOf("touch")>=0;mt.preventDefault()&&I.cancelable&&Lt&&I.preventDefault()}),et||this._fire(G.pointerdown,{evt:I,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}}_pointermove(I){const G=C(I.type),q=O(I.type);if(!G)return;s.DD.isDragging&&s.DD.node.preventDefault()&&I.cancelable&&I.preventDefault(),this.setPointersPositions(I);var et=!s.DD.isDragging||i.Konva.hitOnDragEnabled;if(!et)return;var st={};let mt=!1;var Lt=this._getTargetShape(q);this._changedPointerPositions.forEach(J=>{const Q=c.getCapturedShape(J.id)||this.getIntersection(J),ot=J.id,lt={evt:I,pointerId:ot};var ct=Lt!==Q;if(ct&&Lt&&(Lt._fireAndBubble(G.pointerout,{...lt},Q),Lt._fireAndBubble(G.pointerleave,{...lt},Q)),Q){if(st[Q._id])return;st[Q._id]=!0}Q&&Q.isListening()?(mt=!0,ct&&(Q._fireAndBubble(G.pointerover,{...lt},Lt),Q._fireAndBubble(G.pointerenter,{...lt},Lt),this[q+"targetShape"]=Q),Q._fireAndBubble(G.pointermove,{...lt})):Lt&&(this._fire(G.pointerover,{evt:I,target:this,currentTarget:this,pointerId:ot}),this[q+"targetShape"]=null)}),mt||this._fire(G.pointermove,{evt:I,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(I){const G=C(I.type),q=O(I.type);if(!G)return;this.setPointersPositions(I);const et=this[q+"ClickStartShape"],st=this[q+"ClickEndShape"];var mt={};let Lt=!1;this._changedPointerPositions.forEach(J=>{const Q=c.getCapturedShape(J.id)||this.getIntersection(J);if(Q){if(Q.releaseCapture(J.id),mt[Q._id])return;mt[Q._id]=!0}const ot=J.id,lt={evt:I,pointerId:ot};let ct=!1;i.Konva["_"+q+"InDblClickWindow"]?(ct=!0,clearTimeout(this[q+"DblTimeout"])):s.DD.justDragged||(i.Konva["_"+q+"InDblClickWindow"]=!0,clearTimeout(this[q+"DblTimeout"])),this[q+"DblTimeout"]=setTimeout(function(){i.Konva["_"+q+"InDblClickWindow"]=!1},i.Konva.dblClickWindow),Q&&Q.isListening()?(Lt=!0,this[q+"ClickEndShape"]=Q,Q._fireAndBubble(G.pointerup,{...lt}),i.Konva["_"+q+"ListenClick"]&&et&&et===Q&&(Q._fireAndBubble(G.pointerclick,{...lt}),ct&&st&&st===Q&&Q._fireAndBubble(G.pointerdblclick,{...lt}))):(this[q+"ClickEndShape"]=null,i.Konva["_"+q+"ListenClick"]&&this._fire(G.pointerclick,{evt:I,target:this,currentTarget:this,pointerId:ot}),ct&&this._fire(G.pointerdblclick,{evt:I,target:this,currentTarget:this,pointerId:ot}))}),Lt||this._fire(G.pointerup,{evt:I,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),i.Konva["_"+q+"ListenClick"]=!1,I.cancelable&&q!=="touch"&&I.preventDefault()}_contextmenu(I){this.setPointersPositions(I);var G=this.getIntersection(this.getPointerPosition());G&&G.isListening()?G._fireAndBubble(Y,{evt:I}):this._fire(Y,{evt:I,target:this,currentTarget:this})}_wheel(I){this.setPointersPositions(I);var G=this.getIntersection(this.getPointerPosition());G&&G.isListening()?G._fireAndBubble(_t,{evt:I}):this._fire(_t,{evt:I,target:this,currentTarget:this})}_pointercancel(I){this.setPointersPositions(I);const G=c.getCapturedShape(I.pointerId)||this.getIntersection(this.getPointerPosition());G&&G._fireAndBubble(A,c.createEvent(I)),c.releaseCapture(I.pointerId)}_lostpointercapture(I){c.releaseCapture(I.pointerId)}setPointersPositions(I){var G=this._getContentPosition(),q=null,et=null;I=I||window.event,I.touches!==void 0?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(I.touches,st=>{this._pointerPositions.push({id:st.identifier,x:(st.clientX-G.left)/G.scaleX,y:(st.clientY-G.top)/G.scaleY})}),Array.prototype.forEach.call(I.changedTouches||I.touches,st=>{this._changedPointerPositions.push({id:st.identifier,x:(st.clientX-G.left)/G.scaleX,y:(st.clientY-G.top)/G.scaleY})})):(q=(I.clientX-G.left)/G.scaleX,et=(I.clientY-G.top)/G.scaleY,this.pointerPos={x:q,y:et},this._pointerPositions=[{x:q,y:et,id:t.Util._getFirstPointerId(I)}],this._changedPointerPositions=[{x:q,y:et,id:t.Util._getFirstPointerId(I)}])}_setPointerPosition(I){t.Util.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(I)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};var I=this.content.getBoundingClientRect();return{top:I.top,left:I.left,scaleX:I.width/this.content.clientWidth||1,scaleY:I.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new o.SceneCanvas({width:this.width(),height:this.height()}),this.bufferHitCanvas=new o.HitCanvas({pixelRatio:1,width:this.width(),height:this.height()}),!!i.Konva.isBrowser){var I=this.container();if(!I)throw"Stage has no container. A container is required.";I.innerHTML="",this.content=document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),I.appendChild(this.content),this._resizeDOM()}}cache(){return t.Util.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this}clearCache(){return this}batchDraw(){return this.getChildren().forEach(function(I){I.batchDraw()}),this}}e.Stage=P,P.prototype.nodeType=l,(0,a._registerNode)(P),r.Factory.addGetterSetter(P,"container")})(V1);const PJ=Ln(V1),TJ=se({__proto__:null,default:PJ},[V1]),OJ=ae(TJ);var fu={},z1={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Shape=e.shapes=void 0;const t=Ne,r=Sr,n=Pe,i=Or,o=Ae,s=Ne,a=e4;var c="hasShadow",l="shadowRGBA",u="patternImage",h="linearGradient",f="radialGradient";let d;function p(){return d||(d=r.Util.createCanvasElement().getContext("2d"),d)}e.shapes={};function g(V){const U=this.attrs.fillRule;U?V.fill(U):V.fill()}function v(V){V.stroke()}function b(V){V.fill()}function y(V){V.stroke()}function m(){this._clearCache(c)}function x(){this._clearCache(l)}function A(){this._clearCache(u)}function E(){this._clearCache(h)}function k(){this._clearCache(f)}class D extends i.Node{constructor(U){super(U);let K;for(;K=r.Util.getRandomColor(),!(K&&!(K in e.shapes)););this.colorKey=K,e.shapes[K]=this}getContext(){return r.Util.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return r.Util.warn("shape.getCanvas() method is deprecated. Please do not use it."),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this._sceneFunc}getHitFunc(){return this.attrs.hitFunc||this._hitFunc}hasShadow(){return this._getCache(c,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&this.shadowOpacity()!==0&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache(u,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){var U=p();const K=U.createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(K&&K.setTransform){const Y=new r.Transform;Y.translate(this.fillPatternX(),this.fillPatternY()),Y.rotate(t.Konva.getAngle(this.fillPatternRotation())),Y.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),Y.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const it=Y.getMatrix(),nt=typeof DOMMatrix>"u"?{a:it[0],b:it[1],c:it[2],d:it[3],e:it[4],f:it[5]}:new DOMMatrix(it);K.setTransform(nt)}return K}}_getLinearGradient(){return this._getCache(h,this.__getLinearGradient)}__getLinearGradient(){var U=this.fillLinearGradientColorStops();if(U){for(var K=p(),Y=this.fillLinearGradientStartPoint(),it=this.fillLinearGradientEndPoint(),nt=K.createLinearGradient(Y.x,Y.y,it.x,it.y),ft=0;ft<U.length;ft+=2)nt.addColorStop(U[ft],U[ft+1]);return nt}}_getRadialGradient(){return this._getCache(f,this.__getRadialGradient)}__getRadialGradient(){var U=this.fillRadialGradientColorStops();if(U){for(var K=p(),Y=this.fillRadialGradientStartPoint(),it=this.fillRadialGradientEndPoint(),nt=K.createRadialGradient(Y.x,Y.y,this.fillRadialGradientStartRadius(),it.x,it.y,this.fillRadialGradientEndRadius()),ft=0;ft<U.length;ft+=2)nt.addColorStop(U[ft],U[ft+1]);return nt}}getShadowRGBA(){return this._getCache(l,this._getShadowRGBA)}_getShadowRGBA(){if(this.hasShadow()){var U=r.Util.colorToRGBA(this.shadowColor());if(U)return"rgba("+U.r+","+U.g+","+U.b+","+U.a*(this.shadowOpacity()||1)+")"}}hasFill(){return this._calculate("hasFill",["fillEnabled","fill","fillPatternImage","fillLinearGradientColorStops","fillRadialGradientColorStops"],()=>this.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops()))}hasStroke(){return this._calculate("hasStroke",["strokeEnabled","strokeWidth","stroke","strokeLinearGradientColorStops"],()=>this.strokeEnabled()&&this.strokeWidth()&&!!(this.stroke()||this.strokeLinearGradientColorStops()))}hasHitStroke(){const U=this.hitStrokeWidth();return U==="auto"?this.hasStroke():this.strokeEnabled()&&!!U}intersects(U){var K=this.getStage();if(!K)return!1;const Y=K.bufferHitCanvas;return Y.getContext().clear(),this.drawHit(Y,void 0,!0),Y.context.getImageData(Math.round(U.x),Math.round(U.y),1,1).data[3]>0}destroy(){return i.Node.prototype.destroy.call(this),delete e.shapes[this.colorKey],delete this.colorKey,this}_useBufferCanvas(U){var K;if(!this.getStage()||!(!((K=this.attrs.perfectDrawEnabled)!==null&&K!==void 0)||K))return!1;const Y=U||this.hasFill(),it=this.hasStroke(),nt=this.getAbsoluteOpacity()!==1;if(Y&&it&&nt)return!0;const ft=this.hasShadow(),xt=this.shadowForStrokeEnabled();return!!(Y&&it&&ft&&xt)}setStrokeHitEnabled(U){r.Util.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),U?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return this.hitStrokeWidth()!==0}getSelfRect(){var U=this.size();return{x:this._centroid?-U.width/2:0,y:this._centroid?-U.height/2:0,width:U.width,height:U.height}}getClientRect(U={}){const K=U.skipTransform,Y=U.relativeTo,it=this.getSelfRect(),nt=!U.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,ft=it.width+nt,xt=it.height+nt,_t=!U.skipShadow&&this.hasShadow(),yt=_t?this.shadowOffsetX():0,at=_t?this.shadowOffsetY():0,X=ft+Math.abs(yt),O=xt+Math.abs(at),C=_t&&this.shadowBlur()||0,$=X+C*2,_=O+C*2,P={width:$,height:_,x:-(nt/2+C)+Math.min(yt,0)+it.x,y:-(nt/2+C)+Math.min(at,0)+it.y};return K?P:this._transformedRect(P,Y)}drawScene(U,K){var Y=this.getLayer(),it=U||Y.getCanvas(),nt=it.getContext(),ft=this._getCanvasCache(),xt=this.getSceneFunc(),_t=this.hasShadow(),yt,at,X,O=it.isCache,C=K===this;if(!this.isVisible()&&!C)return this;if(ft){nt.save();var $=this.getAbsoluteTransform(K).getMatrix();return nt.transform($[0],$[1],$[2],$[3],$[4],$[5]),this._drawCachedSceneCanvas(nt),nt.restore(),this}if(!xt)return this;if(nt.save(),this._useBufferCanvas()&&!O){yt=this.getStage(),at=yt.bufferCanvas,X=at.getContext(),X.clear(),X.save(),X._applyLineJoin(this);var _=this.getAbsoluteTransform(K).getMatrix();X.transform(_[0],_[1],_[2],_[3],_[4],_[5]),xt.call(this,X,this),X.restore();var P=at.pixelRatio;_t&&nt._applyShadow(this),nt._applyOpacity(this),nt._applyGlobalCompositeOperation(this),nt.drawImage(at._canvas,0,0,at.width/P,at.height/P)}else{if(nt._applyLineJoin(this),!C){var _=this.getAbsoluteTransform(K).getMatrix();nt.transform(_[0],_[1],_[2],_[3],_[4],_[5]),nt._applyOpacity(this),nt._applyGlobalCompositeOperation(this)}_t&&nt._applyShadow(this),xt.call(this,nt,this)}return nt.restore(),this}drawHit(U,K,Y=!1){if(!this.shouldDrawHit(K,Y))return this;var it=this.getLayer(),nt=U||it.hitCanvas,ft=nt&&nt.getContext(),xt=this.hitFunc()||this.sceneFunc(),_t=this._getCanvasCache(),yt=_t&&_t.hit;if(this.colorKey||r.Util.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"),yt){ft.save();var at=this.getAbsoluteTransform(K).getMatrix();return ft.transform(at[0],at[1],at[2],at[3],at[4],at[5]),this._drawCachedHitCanvas(ft),ft.restore(),this}if(!xt)return this;if(ft.save(),ft._applyLineJoin(this),this!==K){var X=this.getAbsoluteTransform(K).getMatrix();ft.transform(X[0],X[1],X[2],X[3],X[4],X[5])}return xt.call(this,ft,this),ft.restore(),this}drawHitFromCache(U=0){var K=this._getCanvasCache(),Y=this._getCachedSceneCanvas(),it=K.hit,nt=it.getContext(),ft=it.getWidth(),xt=it.getHeight(),_t,yt,at,X,O,C;nt.clear(),nt.drawImage(Y._canvas,0,0,ft,xt);try{for(_t=nt.getImageData(0,0,ft,xt),yt=_t.data,at=yt.length,X=r.Util._hexToRgb(this.colorKey),O=0;O<at;O+=4)C=yt[O+3],C>U?(yt[O]=X.r,yt[O+1]=X.g,yt[O+2]=X.b,yt[O+3]=255):yt[O+3]=0;nt.putImageData(_t,0,0)}catch($){r.Util.error("Unable to draw hit graph from cached scene canvas. "+$.message)}return this}hasPointerCapture(U){return a.hasPointerCapture(U,this)}setPointerCapture(U){a.setPointerCapture(U,this)}releaseCapture(U){a.releaseCapture(U,this)}}e.Shape=D,D.prototype._fillFunc=g,D.prototype._strokeFunc=v,D.prototype._fillFuncHit=b,D.prototype._strokeFuncHit=y,D.prototype._centroid=!1,D.prototype.nodeType="Shape",(0,s._registerNode)(D),D.prototype.eventListeners={},D.prototype.on.call(D.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",m),D.prototype.on.call(D.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",x),D.prototype.on.call(D.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",A),D.prototype.on.call(D.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",E),D.prototype.on.call(D.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",k),n.Factory.addGetterSetter(D,"stroke",void 0,(0,o.getStringOrGradientValidator)()),n.Factory.addGetterSetter(D,"strokeWidth",2,(0,o.getNumberValidator)()),n.Factory.addGetterSetter(D,"fillAfterStrokeEnabled",!1),n.Factory.addGetterSetter(D,"hitStrokeWidth","auto",(0,o.getNumberOrAutoValidator)()),n.Factory.addGetterSetter(D,"strokeHitEnabled",!0,(0,o.getBooleanValidator)()),n.Factory.addGetterSetter(D,"perfectDrawEnabled",!0,(0,o.getBooleanValidator)()),n.Factory.addGetterSetter(D,"shadowForStrokeEnabled",!0,(0,o.getBooleanValidator)()),n.Factory.addGetterSetter(D,"lineJoin"),n.Factory.addGetterSetter(D,"lineCap"),n.Factory.addGetterSetter(D,"sceneFunc"),n.Factory.addGetterSetter(D,"hitFunc"),n.Factory.addGetterSetter(D,"dash"),n.Factory.addGetterSetter(D,"dashOffset",0,(0,o.getNumberValidator)()),n.Factory.addGetterSetter(D,"shadowColor",void 0,(0,o.getStringValidator)()),n.Factory.addGetterSetter(D,"shadowBlur",0,(0,o.getNumberValidator)()),n.Factory.addGetterSetter(D,"shadowOpacity",1,(0,o.getNumberValidator)()),n.Factory.addComponentsGetterSetter(D,"shadowOffset",["x","y"]),n.Factory.addGetterSetter(D,"shadowOffsetX",0,(0,o.getNumberValidator)()),n.Factory.addGetterSetter(D,"shadowOffsetY",0,(0,o.getNumberValidator)()),n.Factory.addGetterSetter(D,"fillPatternImage"),n.Factory.addGetterSetter(D,"fill",void 0,(0,o.getStringOrGradientValidator)()),n.Factory.addGetterSetter(D,"fillPatternX",0,(0,o.getNumberValidator)()),n.Factory.addGetterSetter(D,"fillPatternY",0,(0,o.getNumberValidator)()),n.Factory.addGetterSetter(D,"fillLinearGradientColorStops"),n.Factory.addGetterSetter(D,"strokeLinearGradientColorStops"),n.Factory.addGetterSetter(D,"fillRadialGradientStartRadius",0),n.Factory.addGetterSetter(D,"fillRadialGradientEndRadius",0),n.Factory.addGetterSetter(D,"fillRadialGradientColorStops"),n.Factory.addGetterSetter(D,"fillPatternRepeat","repeat"),n.Factory.addGetterSetter(D,"fillEnabled",!0),n.Factory.addGetterSetter(D,"strokeEnabled",!0),n.Factory.addGetterSetter(D,"shadowEnabled",!0),n.Factory.addGetterSetter(D,"dashEnabled",!0),n.Factory.addGetterSetter(D,"strokeScaleEnabled",!0),n.Factory.addGetterSetter(D,"fillPriority","color"),n.Factory.addComponentsGetterSetter(D,"fillPatternOffset",["x","y"]),n.Factory.addGetterSetter(D,"fillPatternOffsetX",0,(0,o.getNumberValidator)()),n.Factory.addGetterSetter(D,"fillPatternOffsetY",0,(0,o.getNumberValidator)()),n.Factory.addComponentsGetterSetter(D,"fillPatternScale",["x","y"]),n.Factory.addGetterSetter(D,"fillPatternScaleX",1,(0,o.getNumberValidator)()),n.Factory.addGetterSetter(D,"fillPatternScaleY",1,(0,o.getNumberValidator)()),n.Factory.addComponentsGetterSetter(D,"fillLinearGradientStartPoint",["x","y"]),n.Factory.addComponentsGetterSetter(D,"strokeLinearGradientStartPoint",["x","y"]),n.Factory.addGetterSetter(D,"fillLinearGradientStartPointX",0),n.Factory.addGetterSetter(D,"strokeLinearGradientStartPointX",0),n.Factory.addGetterSetter(D,"fillLinearGradientStartPointY",0),n.Factory.addGetterSetter(D,"strokeLinearGradientStartPointY",0),n.Factory.addComponentsGetterSetter(D,"fillLinearGradientEndPoint",["x","y"]),n.Factory.addComponentsGetterSetter(D,"strokeLinearGradientEndPoint",["x","y"]),n.Factory.addGetterSetter(D,"fillLinearGradientEndPointX",0),n.Factory.addGetterSetter(D,"strokeLinearGradientEndPointX",0),n.Factory.addGetterSetter(D,"fillLinearGradientEndPointY",0),n.Factory.addGetterSetter(D,"strokeLinearGradientEndPointY",0),n.Factory.addComponentsGetterSetter(D,"fillRadialGradientStartPoint",["x","y"]),n.Factory.addGetterSetter(D,"fillRadialGradientStartPointX",0),n.Factory.addGetterSetter(D,"fillRadialGradientStartPointY",0),n.Factory.addComponentsGetterSetter(D,"fillRadialGradientEndPoint",["x","y"]),n.Factory.addGetterSetter(D,"fillRadialGradientEndPointX",0),n.Factory.addGetterSetter(D,"fillRadialGradientEndPointY",0),n.Factory.addGetterSetter(D,"fillPatternRotation",0),n.Factory.addGetterSetter(D,"fillRule",void 0,(0,o.getStringValidator)()),n.Factory.backCompat(D,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"})})(z1);const NJ=Ln(z1),AJ=se({__proto__:null,default:NJ},[z1]),Wr=ae(AJ);Object.defineProperty(fu,"__esModule",{value:!0});var r4=fu.Layer=void 0;const Ro=Sr,G1=Rf,dl=Or,B1=Pe,n4=Pf,DJ=Ae,RJ=Wr,IJ=Ne;var jJ="#",FJ="beforeDraw",MJ="draw",i4=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],LJ=i4.length;class fl extends G1.Container{constructor(t){super(t),this.canvas=new n4.SceneCanvas,this.hitCanvas=new n4.HitCanvas({pixelRatio:1}),this._waitingForDraw=!1,this.on("visibleChange.konva",this._checkVisibility),this._checkVisibility(),this.on("imageSmoothingEnabledChange.konva",this._setSmoothEnabled),this._setSmoothEnabled()}createPNGStream(){return this.canvas._canvas.createPNGStream()}getCanvas(){return this.canvas}getNativeCanvasElement(){return this.canvas._canvas}getHitCanvas(){return this.hitCanvas}getContext(){return this.getCanvas().getContext()}clear(t){return this.getContext().clear(t),this.getHitCanvas().getContext().clear(t),this}setZIndex(t){super.setZIndex(t);var r=this.getStage();return r&&r.content&&(r.content.removeChild(this.getNativeCanvasElement()),t<r.children.length-1?r.content.insertBefore(this.getNativeCanvasElement(),r.children[t+1].getCanvas()._canvas):r.content.appendChild(this.getNativeCanvasElement())),this}moveToTop(){dl.Node.prototype.moveToTop.call(this);var t=this.getStage();return t&&t.content&&(t.content.removeChild(this.getNativeCanvasElement()),t.content.appendChild(this.getNativeCanvasElement())),!0}moveUp(){var t=dl.Node.prototype.moveUp.call(this);if(!t)return!1;var r=this.getStage();return!r||!r.content?!1:(r.content.removeChild(this.getNativeCanvasElement()),this.index<r.children.length-1?r.content.insertBefore(this.getNativeCanvasElement(),r.children[this.index+1].getCanvas()._canvas):r.content.appendChild(this.getNativeCanvasElement()),!0)}moveDown(){if(dl.Node.prototype.moveDown.call(this)){var t=this.getStage();if(t){var r=t.children;t.content&&(t.content.removeChild(this.getNativeCanvasElement()),t.content.insertBefore(this.getNativeCanvasElement(),r[this.index+1].getCanvas()._canvas))}return!0}return!1}moveToBottom(){if(dl.Node.prototype.moveToBottom.call(this)){var t=this.getStage();if(t){var r=t.children;t.content&&(t.content.removeChild(this.getNativeCanvasElement()),t.content.insertBefore(this.getNativeCanvasElement(),r[1].getCanvas()._canvas))}return!0}return!1}getLayer(){return this}remove(){var t=this.getNativeCanvasElement();return dl.Node.prototype.remove.call(this),t&&t.parentNode&&Ro.Util._isInDocument(t)&&t.parentNode.removeChild(t),this}getStage(){return this.parent}setSize({width:t,height:r}){return this.canvas.setSize(t,r),this.hitCanvas.setSize(t,r),this._setSmoothEnabled(),this}_validateAdd(t){var r=t.getType();r!=="Group"&&r!=="Shape"&&Ro.Util.throw("You may only add groups and shapes to a layer.")}_toKonvaCanvas(t){return t=t||{},t.width=t.width||this.getWidth(),t.height=t.height||this.getHeight(),t.x=t.x!==void 0?t.x:this.x(),t.y=t.y!==void 0?t.y:this.y(),dl.Node.prototype._toKonvaCanvas.call(this,t)}_checkVisibility(){this.visible()?this.canvas._canvas.style.display="block":this.canvas._canvas.style.display="none"}_setSmoothEnabled(){this.getContext()._context.imageSmoothingEnabled=this.imageSmoothingEnabled()}getWidth(){if(this.parent)return this.parent.width()}setWidth(){Ro.Util.warn('Can not change width of layer. Use "stage.width(value)" function instead.')}getHeight(){if(this.parent)return this.parent.height()}setHeight(){Ro.Util.warn('Can not change height of layer. Use "stage.height(value)" function instead.')}batchDraw(){return this._waitingForDraw||(this._waitingForDraw=!0,Ro.Util.requestAnimFrame(()=>{this.draw(),this._waitingForDraw=!1})),this}getIntersection(t){if(!this.isListening()||!this.isVisible())return null;for(var r=1,n=!1;;){for(let i=0;i<LJ;i++){const o=i4[i],s=this._getIntersection({x:t.x+o.x*r,y:t.y+o.y*r}),a=s.shape;if(a)return a;if(n=!!s.antialiased,!s.antialiased)break}if(n)r+=1;else return null}}_getIntersection(t){const r=this.hitCanvas.pixelRatio,n=this.hitCanvas.context.getImageData(Math.round(t.x*r),Math.round(t.y*r),1,1).data,i=n[3];if(i===255){const o=Ro.Util._rgbToHex(n[0],n[1],n[2]),s=RJ.shapes[jJ+o];return s?{shape:s}:{antialiased:!0}}else if(i>0)return{antialiased:!0};return{}}drawScene(t,r){var n=this.getLayer(),i=t||n&&n.getCanvas();return this._fire(FJ,{node:this}),this.clearBeforeDraw()&&i.getContext().clear(),G1.Container.prototype.drawScene.call(this,i,r),this._fire(MJ,{node:this}),this}drawHit(t,r){var n=this.getLayer(),i=t||n&&n.hitCanvas;return n&&n.clearBeforeDraw()&&n.getHitCanvas().getContext().clear(),G1.Container.prototype.drawHit.call(this,i,r),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(t){Ro.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(t)}getHitGraphEnabled(t){return Ro.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()}toggleHitCanvas(){if(!(!this.parent||!this.parent.content)){var t=this.parent,r=!!this.hitCanvas._canvas.parentNode;r?t.content.removeChild(this.hitCanvas._canvas):t.content.appendChild(this.hitCanvas._canvas)}}destroy(){return Ro.Util.releaseCanvas(this.getNativeCanvasElement(),this.getHitCanvas()._canvas),super.destroy()}}r4=fu.Layer=fl,fl.prototype.nodeType="Layer",(0,IJ._registerNode)(fl),B1.Factory.addGetterSetter(fl,"imageSmoothingEnabled",!0),B1.Factory.addGetterSetter(fl,"clearBeforeDraw",!0),B1.Factory.addGetterSetter(fl,"hitGraphEnabled",!0,(0,DJ.getBooleanValidator)());const VJ=se({__proto__:null,get Layer(){return r4},default:fu},[fu]),o4=ae(VJ);var pu={};Object.defineProperty(pu,"__esModule",{value:!0});var s4=pu.FastLayer=void 0;const UJ=Sr,zJ=o4,GJ=Ne;class H1 extends zJ.Layer{constructor(t){super(t),this.listening(!1),UJ.Util.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}}s4=pu.FastLayer=H1,H1.prototype.nodeType="FastLayer",(0,GJ._registerNode)(H1);const BJ=se({__proto__:null,get FastLayer(){return s4},default:pu},[pu]),HJ=ae(BJ);var mu={};Object.defineProperty(mu,"__esModule",{value:!0});var a4=mu.Group=void 0;const qJ=Sr,KJ=Rf,YJ=Ne;class q1 extends KJ.Container{_validateAdd(t){var r=t.getType();r!=="Group"&&r!=="Shape"&&qJ.Util.throw("You may only add groups and shapes to groups.")}}a4=mu.Group=q1,q1.prototype.nodeType="Group",(0,YJ._registerNode)(q1);const XJ=se({__proto__:null,get Group(){return a4},default:mu},[mu]),K1=ae(XJ);var gu={};Object.defineProperty(gu,"__esModule",{value:!0});var l4=gu.Animation=void 0;const Y1=Ne,c4=Sr,X1=function(){return Y1.glob.performance&&Y1.glob.performance.now?function(){return Y1.glob.performance.now()}:function(){return new Date().getTime()}}();class qi{constructor(t,r){this.id=qi.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:X1(),frameRate:0},this.func=t,this.setLayers(r)}setLayers(t){let r=[];return t&&(r=Array.isArray(t)?t:[t]),this.layers=r,this}getLayers(){return this.layers}addLayer(t){const r=this.layers,n=r.length;for(let i=0;i<n;i++)if(r[i]._id===t._id)return!1;return this.layers.push(t),!0}isRunning(){const t=qi.animations,r=t.length;for(let n=0;n<r;n++)if(t[n].id===this.id)return!0;return!1}start(){return this.stop(),this.frame.timeDiff=0,this.frame.lastTime=X1(),qi._addAnimation(this),this}stop(){return qi._removeAnimation(this),this}_updateFrameObject(t){this.frame.timeDiff=t-this.frame.lastTime,this.frame.lastTime=t,this.frame.time+=this.frame.timeDiff,this.frame.frameRate=1e3/this.frame.timeDiff}static _addAnimation(t){this.animations.push(t),this._handleAnimation()}static _removeAnimation(t){const r=t.id,n=this.animations,i=n.length;for(let o=0;o<i;o++)if(n[o].id===r){this.animations.splice(o,1);break}}static _runFrames(){const t={},r=this.animations;for(let n=0;n<r.length;n++){const i=r[n],o=i.layers,s=i.func;i._updateFrameObject(X1());const a=o.length;let c;if(s?c=s.call(i,i.frame)!==!1:c=!0,!!c)for(let l=0;l<a;l++){const u=o[l];u._id!==void 0&&(t[u._id]=u)}}for(let n in t)t.hasOwnProperty(n)&&t[n].batchDraw()}static _animationLoop(){const t=qi;t.animations.length?(t._runFrames(),c4.Util.requestAnimFrame(t._animationLoop)):t.animRunning=!1}static _handleAnimation(){this.animRunning||(this.animRunning=!0,c4.Util.requestAnimFrame(this._animationLoop))}}l4=gu.Animation=qi,qi.animations=[],qi.animIdCounter=0,qi.animRunning=!1;const JJ=se({__proto__:null,get Animation(){return l4},default:gu},[gu]),J1=ae(JJ);var W1={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Easings=e.Tween=void 0;const t=Sr,r=J1,n=Or,i=Ne;var o={node:1,duration:1,easing:1,onFinish:1,yoyo:1},s=1,a=2,c=3,l=0,u=["fill","stroke","shadowColor"];class h{constructor(p,g,v,b,y,m,x){this.prop=p,this.propFunc=g,this.begin=b,this._pos=b,this.duration=m,this._change=0,this.prevPos=0,this.yoyo=x,this._time=0,this._position=0,this._startTime=0,this._finish=0,this.func=v,this._change=y-this.begin,this.pause()}fire(p){var g=this[p];g&&g()}setTime(p){p>this.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():p<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=p,this.update())}getTime(){return this._time}setPosition(p){this.prevPos=this._pos,this.propFunc(p),this._pos=p}getPosition(p){return p===void 0&&(p=this._time),this.func(p,this.begin,this._change,this.duration)}play(){this.state=a,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=c,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(p){this.pause(),this._time=p,this.update(),this.fire("onSeek")}reset(){this.pause(),this._time=0,this.update(),this.fire("onReset")}finish(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")}update(){this.setPosition(this.getPosition(this._time)),this.fire("onUpdate")}onEnterFrame(){var p=this.getTimer()-this._startTime;this.state===a?this.setTime(p):this.state===c&&this.setTime(this.duration-p)}pause(){this.state=s,this.fire("onPause")}getTimer(){return new Date().getTime()}}class f{constructor(p){var g=this,v=p.node,b=v._id,y,m=p.easing||e.Easings.Linear,x=!!p.yoyo,A;typeof p.duration>"u"?y=.3:p.duration===0?y=.001:y=p.duration,this.node=v,this._id=l++;var E=v.getLayer()||(v instanceof i.Konva.Stage?v.getLayers():null);E||t.Util.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new r.Animation(function(){g.tween.onEnterFrame()},E),this.tween=new h(A,function(k){g._tweenFunc(k)},m,0,1,y*1e3,x),this._addListeners(),f.attrs[b]||(f.attrs[b]={}),f.attrs[b][this._id]||(f.attrs[b][this._id]={}),f.tweens[b]||(f.tweens[b]={});for(A in p)o[A]===void 0&&this._addAttr(A,p[A]);this.reset(),this.onFinish=p.onFinish,this.onReset=p.onReset,this.onUpdate=p.onUpdate}_addAttr(p,g){var v=this.node,b=v._id,y,m,x,A,E,k,D,V;if(x=f.tweens[b][p],x&&delete f.attrs[b][x][p],y=v.getAttr(p),t.Util._isArray(g))if(m=[],E=Math.max(g.length,y.length),p==="points"&&g.length!==y.length&&(g.length>y.length?(D=y,y=t.Util._prepareArrayForTween(y,g,v.closed())):(k=g,g=t.Util._prepareArrayForTween(g,y,v.closed()))),p.indexOf("fill")===0)for(A=0;A<E;A++)if(A%2===0)m.push(g[A]-y[A]);else{var U=t.Util.colorToRGBA(y[A]);V=t.Util.colorToRGBA(g[A]),y[A]=U,m.push({r:V.r-U.r,g:V.g-U.g,b:V.b-U.b,a:V.a-U.a})}else for(A=0;A<E;A++)m.push(g[A]-y[A]);else u.indexOf(p)!==-1?(y=t.Util.colorToRGBA(y),V=t.Util.colorToRGBA(g),m={r:V.r-y.r,g:V.g-y.g,b:V.b-y.b,a:V.a-y.a}):m=g-y;f.attrs[b][this._id][p]={start:y,diff:m,end:g,trueEnd:k,trueStart:D},f.tweens[b][p]=this._id}_tweenFunc(p){var g=this.node,v=f.attrs[g._id][this._id],b,y,m,x,A,E,k,D;for(b in v){if(y=v[b],m=y.start,x=y.diff,D=y.end,t.Util._isArray(m))if(A=[],k=Math.max(m.length,D.length),b.indexOf("fill")===0)for(E=0;E<k;E++)E%2===0?A.push((m[E]||0)+x[E]*p):A.push("rgba("+Math.round(m[E].r+x[E].r*p)+","+Math.round(m[E].g+x[E].g*p)+","+Math.round(m[E].b+x[E].b*p)+","+(m[E].a+x[E].a*p)+")");else for(E=0;E<k;E++)A.push((m[E]||0)+x[E]*p);else u.indexOf(b)!==-1?A="rgba("+Math.round(m.r+x.r*p)+","+Math.round(m.g+x.g*p)+","+Math.round(m.b+x.b*p)+","+(m.a+x.a*p)+")":A=m+x*p;g.setAttr(b,A)}}_addListeners(){this.tween.onPlay=()=>{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{var p=this.node,g=f.attrs[p._id][this._id];g.points&&g.points.trueEnd&&p.setAttr("points",g.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{var p=this.node,g=f.attrs[p._id][this._id];g.points&&g.points.trueStart&&p.points(g.points.trueStart),this.onReset&&this.onReset()},this.tween.onUpdate=()=>{this.onUpdate&&this.onUpdate.call(this)}}play(){return this.tween.play(),this}reverse(){return this.tween.reverse(),this}reset(){return this.tween.reset(),this}seek(p){return this.tween.seek(p*1e3),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){var p=this.node._id,g=this._id,v=f.tweens[p],b;this.pause();for(b in v)delete f.tweens[p][b];delete f.attrs[p][g]}}e.Tween=f,f.attrs={},f.tweens={},n.Node.prototype.to=function(d){var p=d.onFinish;d.node=this,d.onFinish=function(){this.destroy(),p&&p()};var g=new f(d);g.play()},e.Easings={BackEaseIn(d,p,g,v){var b=1.70158;return g*(d/=v)*d*((b+1)*d-b)+p},BackEaseOut(d,p,g,v){var b=1.70158;return g*((d=d/v-1)*d*((b+1)*d+b)+1)+p},BackEaseInOut(d,p,g,v){var b=1.70158;return(d/=v/2)<1?g/2*(d*d*(((b*=1.525)+1)*d-b))+p:g/2*((d-=2)*d*(((b*=1.525)+1)*d+b)+2)+p},ElasticEaseIn(d,p,g,v,b,y){var m=0;return d===0?p:(d/=v)===1?p+g:(y||(y=v*.3),!b||b<Math.abs(g)?(b=g,m=y/4):m=y/(2*Math.PI)*Math.asin(g/b),-(b*Math.pow(2,10*(d-=1))*Math.sin((d*v-m)*(2*Math.PI)/y))+p)},ElasticEaseOut(d,p,g,v,b,y){var m=0;return d===0?p:(d/=v)===1?p+g:(y||(y=v*.3),!b||b<Math.abs(g)?(b=g,m=y/4):m=y/(2*Math.PI)*Math.asin(g/b),b*Math.pow(2,-10*d)*Math.sin((d*v-m)*(2*Math.PI)/y)+g+p)},ElasticEaseInOut(d,p,g,v,b,y){var m=0;return d===0?p:(d/=v/2)===2?p+g:(y||(y=v*.44999999999999996),!b||b<Math.abs(g)?(b=g,m=y/4):m=y/(2*Math.PI)*Math.asin(g/b),d<1?-.5*(b*Math.pow(2,10*(d-=1))*Math.sin((d*v-m)*(2*Math.PI)/y))+p:b*Math.pow(2,-10*(d-=1))*Math.sin((d*v-m)*(2*Math.PI)/y)*.5+g+p)},BounceEaseOut(d,p,g,v){return(d/=v)<.36363636363636365?g*(7.5625*d*d)+p:d<.7272727272727273?g*(7.5625*(d-=.5454545454545454)*d+.75)+p:d<.9090909090909091?g*(7.5625*(d-=.8181818181818182)*d+.9375)+p:g*(7.5625*(d-=.9545454545454546)*d+.984375)+p},BounceEaseIn(d,p,g,v){return g-e.Easings.BounceEaseOut(v-d,0,g,v)+p},BounceEaseInOut(d,p,g,v){return d<v/2?e.Easings.BounceEaseIn(d*2,0,g,v)*.5+p:e.Easings.BounceEaseOut(d*2-v,0,g,v)*.5+g*.5+p},EaseIn(d,p,g,v){return g*(d/=v)*d+p},EaseOut(d,p,g,v){return-g*(d/=v)*(d-2)+p},EaseInOut(d,p,g,v){return(d/=v/2)<1?g/2*d*d+p:-g/2*(--d*(d-2)-1)+p},StrongEaseIn(d,p,g,v){return g*(d/=v)*d*d*d*d+p},StrongEaseOut(d,p,g,v){return g*((d=d/v-1)*d*d*d*d+1)+p},StrongEaseInOut(d,p,g,v){return(d/=v/2)<1?g/2*d*d*d*d*d+p:g/2*((d-=2)*d*d*d*d+2)+p},Linear(d,p,g,v){return g*d/v+p}}})(W1);const WJ=Ln(W1),QJ=se({__proto__:null,default:WJ},[W1]),ZJ=ae(QJ);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Konva=void 0;const t=Ne,r=Sr,n=Or,i=Rf,o=OJ,s=o4,a=HJ,c=K1,l=j1,u=Wr,h=J1,f=ZJ,d=RC,p=Pf;e.Konva=r.Util._assign(t.Konva,{Util:r.Util,Transform:r.Transform,Node:n.Node,Container:i.Container,Stage:o.Stage,stages:o.stages,Layer:s.Layer,FastLayer:a.FastLayer,Group:c.Group,DD:l.DD,Shape:u.Shape,shapes:u.shapes,Animation:h.Animation,Tween:f.Tween,Easings:f.Easings,Context:d.Context,Canvas:p.Canvas}),e.default=e.Konva})(N1);const tW=Ln(N1),eW=se({__proto__:null,default:tW},[N1]),rW=ae(eW);var vu={};Object.defineProperty(vu,"__esModule",{value:!0});var u4=vu.Arc=void 0;const If=Pe,nW=Wr,h4=Ne,jf=Ae,iW=Ne;class Io extends nW.Shape{_sceneFunc(t){var r=h4.Konva.getAngle(this.angle()),n=this.clockwise();t.beginPath(),t.arc(0,0,this.outerRadius(),0,r,n),t.arc(0,0,this.innerRadius(),r,0,!n),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}getSelfRect(){const t=this.innerRadius(),r=this.outerRadius(),n=this.clockwise(),i=h4.Konva.getAngle(n?360-this.angle():this.angle()),o=Math.cos(Math.min(i,Math.PI)),s=1,a=Math.sin(Math.min(Math.max(Math.PI,i),3*Math.PI/2)),c=Math.sin(Math.min(i,Math.PI/2)),l=o*(o>0?t:r),u=s*r,h=a*(a>0?t:r),f=c*(c>0?r:t);return{x:l,y:n?-1*f:h,width:u-l,height:f-h}}}u4=vu.Arc=Io,Io.prototype._centroid=!0,Io.prototype.className="Arc",Io.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,iW._registerNode)(Io),If.Factory.addGetterSetter(Io,"innerRadius",0,(0,jf.getNumberValidator)()),If.Factory.addGetterSetter(Io,"outerRadius",0,(0,jf.getNumberValidator)()),If.Factory.addGetterSetter(Io,"angle",0,(0,jf.getNumberValidator)()),If.Factory.addGetterSetter(Io,"clockwise",!1,(0,jf.getBooleanValidator)());const oW=se({__proto__:null,get Arc(){return u4},default:vu},[vu]),sW=ae(oW);var yu={},_u={};Object.defineProperty(_u,"__esModule",{value:!0});var d4=_u.Line=void 0;const Ff=Pe,aW=Wr,f4=Ae,lW=Ne;function Q1(e,t,r,n,i,o,s){var a=Math.sqrt(Math.pow(r-e,2)+Math.pow(n-t,2)),c=Math.sqrt(Math.pow(i-r,2)+Math.pow(o-n,2)),l=s*a/(a+c),u=s*c/(a+c),h=r-l*(i-e),f=n-l*(o-t),d=r+u*(i-e),p=n+u*(o-t);return[h,f,d,p]}function p4(e,t){var r=e.length,n=[],i,o;for(i=2;i<r-2;i+=2)o=Q1(e[i-2],e[i-1],e[i],e[i+1],e[i+2],e[i+3],t),!isNaN(o[0])&&(n.push(o[0]),n.push(o[1]),n.push(e[i]),n.push(e[i+1]),n.push(o[2]),n.push(o[3]));return n}class ps extends aW.Shape{constructor(t){super(t),this.on("pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva",function(){this._clearCache("tensionPoints")})}_sceneFunc(t){var r=this.points(),n=r.length,i=this.tension(),o=this.closed(),s=this.bezier(),a,c,l;if(n){if(t.beginPath(),t.moveTo(r[0],r[1]),i!==0&&n>4){for(a=this.getTensionPoints(),c=a.length,l=o?0:4,o||t.quadraticCurveTo(a[0],a[1],a[2],a[3]);l<c-2;)t.bezierCurveTo(a[l++],a[l++],a[l++],a[l++],a[l++],a[l++]);o||t.quadraticCurveTo(a[c-2],a[c-1],r[n-2],r[n-1])}else if(s)for(l=2;l<n;)t.bezierCurveTo(r[l++],r[l++],r[l++],r[l++],r[l++],r[l++]);else for(l=2;l<n;l+=2)t.lineTo(r[l],r[l+1]);o?(t.closePath(),t.fillStrokeShape(this)):t.strokeShape(this)}}getTensionPoints(){return this._getCache("tensionPoints",this._getTensionPoints)}_getTensionPoints(){return this.closed()?this._getTensionPointsClosed():p4(this.points(),this.tension())}_getTensionPointsClosed(){var t=this.points(),r=t.length,n=this.tension(),i=Q1(t[r-2],t[r-1],t[0],t[1],t[2],t[3],n),o=Q1(t[r-4],t[r-3],t[r-2],t[r-1],t[0],t[1],n),s=p4(t,n),a=[i[2],i[3]].concat(s).concat([o[0],o[1],t[r-2],t[r-1],o[2],o[3],i[0],i[1],t[0],t[1]]);return a}getWidth(){return this.getSelfRect().width}getHeight(){return this.getSelfRect().height}getSelfRect(){var t=this.points();if(t.length<4)return{x:t[0]||0,y:t[1]||0,width:0,height:0};this.tension()!==0?t=[t[0],t[1],...this._getTensionPoints(),t[t.length-2],t[t.length-1]]:t=this.points();for(var r=t[0],n=t[0],i=t[1],o=t[1],s,a,c=0;c<t.length/2;c++)s=t[c*2],a=t[c*2+1],r=Math.min(r,s),n=Math.max(n,s),i=Math.min(i,a),o=Math.max(o,a);return{x:r,y:i,width:n-r,height:o-i}}}d4=_u.Line=ps,ps.prototype.className="Line",ps.prototype._attrsAffectingSize=["points","bezier","tension"],(0,lW._registerNode)(ps),Ff.Factory.addGetterSetter(ps,"closed",!1),Ff.Factory.addGetterSetter(ps,"bezier",!1),Ff.Factory.addGetterSetter(ps,"tension",0,(0,f4.getNumberValidator)()),Ff.Factory.addGetterSetter(ps,"points",[],(0,f4.getNumberArrayValidator)());const cW=se({__proto__:null,get Line(){return d4},default:_u},[_u]),m4=ae(cW);var bu={},Z1={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.t2length=e.getQuadraticArcLength=e.getCubicArcLength=e.binomialCoefficients=e.cValues=e.tValues=void 0,e.tValues=[[],[],[-.5773502691896257,.5773502691896257],[0,-.7745966692414834,.7745966692414834],[-.33998104358485626,.33998104358485626,-.8611363115940526,.8611363115940526],[0,-.5384693101056831,.5384693101056831,-.906179845938664,.906179845938664],[.6612093864662645,-.6612093864662645,-.2386191860831969,.2386191860831969,-.932469514203152,.932469514203152],[0,.4058451513773972,-.4058451513773972,-.7415311855993945,.7415311855993945,-.9491079123427585,.9491079123427585],[-.1834346424956498,.1834346424956498,-.525532409916329,.525532409916329,-.7966664774136267,.7966664774136267,-.9602898564975363,.9602898564975363],[0,-.8360311073266358,.8360311073266358,-.9681602395076261,.9681602395076261,-.3242534234038089,.3242534234038089,-.6133714327005904,.6133714327005904],[-.14887433898163122,.14887433898163122,-.4333953941292472,.4333953941292472,-.6794095682990244,.6794095682990244,-.8650633666889845,.8650633666889845,-.9739065285171717,.9739065285171717],[0,-.26954315595234496,.26954315595234496,-.5190961292068118,.5190961292068118,-.7301520055740494,.7301520055740494,-.8870625997680953,.8870625997680953,-.978228658146057,.978228658146057],[-.1252334085114689,.1252334085114689,-.3678314989981802,.3678314989981802,-.5873179542866175,.5873179542866175,-.7699026741943047,.7699026741943047,-.9041172563704749,.9041172563704749,-.9815606342467192,.9815606342467192],[0,-.2304583159551348,.2304583159551348,-.44849275103644687,.44849275103644687,-.6423493394403402,.6423493394403402,-.8015780907333099,.8015780907333099,-.9175983992229779,.9175983992229779,-.9841830547185881,.9841830547185881],[-.10805494870734367,.10805494870734367,-.31911236892788974,.31911236892788974,-.5152486363581541,.5152486363581541,-.6872929048116855,.6872929048116855,-.827201315069765,.827201315069765,-.9284348836635735,.9284348836635735,-.9862838086968123,.9862838086968123],[0,-.20119409399743451,.20119409399743451,-.3941513470775634,.3941513470775634,-.5709721726085388,.5709721726085388,-.7244177313601701,.7244177313601701,-.8482065834104272,.8482065834104272,-.937273392400706,.937273392400706,-.9879925180204854,.9879925180204854],[-.09501250983763744,.09501250983763744,-.2816035507792589,.2816035507792589,-.45801677765722737,.45801677765722737,-.6178762444026438,.6178762444026438,-.755404408355003,.755404408355003,-.8656312023878318,.8656312023878318,-.9445750230732326,.9445750230732326,-.9894009349916499,.9894009349916499],[0,-.17848418149584785,.17848418149584785,-.3512317634538763,.3512317634538763,-.5126905370864769,.5126905370864769,-.6576711592166907,.6576711592166907,-.7815140038968014,.7815140038968014,-.8802391537269859,.8802391537269859,-.9506755217687678,.9506755217687678,-.9905754753144174,.9905754753144174],[-.0847750130417353,.0847750130417353,-.2518862256915055,.2518862256915055,-.41175116146284263,.41175116146284263,-.5597708310739475,.5597708310739475,-.6916870430603532,.6916870430603532,-.8037049589725231,.8037049589725231,-.8926024664975557,.8926024664975557,-.9558239495713977,.9558239495713977,-.9915651684209309,.9915651684209309],[0,-.16035864564022537,.16035864564022537,-.31656409996362983,.31656409996362983,-.46457074137596094,.46457074137596094,-.600545304661681,.600545304661681,-.7209661773352294,.7209661773352294,-.8227146565371428,.8227146565371428,-.9031559036148179,.9031559036148179,-.96020815213483,.96020815213483,-.9924068438435844,.9924068438435844],[-.07652652113349734,.07652652113349734,-.22778585114164507,.22778585114164507,-.37370608871541955,.37370608871541955,-.5108670019508271,.5108670019508271,-.636053680726515,.636053680726515,-.7463319064601508,.7463319064601508,-.8391169718222188,.8391169718222188,-.912234428251326,.912234428251326,-.9639719272779138,.9639719272779138,-.9931285991850949,.9931285991850949],[0,-.1455618541608951,.1455618541608951,-.2880213168024011,.2880213168024011,-.4243421202074388,.4243421202074388,-.5516188358872198,.5516188358872198,-.6671388041974123,.6671388041974123,-.7684399634756779,.7684399634756779,-.8533633645833173,.8533633645833173,-.9200993341504008,.9200993341504008,-.9672268385663063,.9672268385663063,-.9937521706203895,.9937521706203895],[-.06973927331972223,.06973927331972223,-.20786042668822127,.20786042668822127,-.34193582089208424,.34193582089208424,-.469355837986757,.469355837986757,-.5876404035069116,.5876404035069116,-.6944872631866827,.6944872631866827,-.7878168059792081,.7878168059792081,-.8658125777203002,.8658125777203002,-.926956772187174,.926956772187174,-.9700604978354287,.9700604978354287,-.9942945854823992,.9942945854823992],[0,-.1332568242984661,.1332568242984661,-.26413568097034495,.26413568097034495,-.3903010380302908,.3903010380302908,-.5095014778460075,.5095014778460075,-.6196098757636461,.6196098757636461,-.7186613631319502,.7186613631319502,-.8048884016188399,.8048884016188399,-.8767523582704416,.8767523582704416,-.9329710868260161,.9329710868260161,-.9725424712181152,.9725424712181152,-.9947693349975522,.9947693349975522],[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213]],e.cValues=[[],[],[1,1],[.8888888888888888,.5555555555555556,.5555555555555556],[.6521451548625461,.6521451548625461,.34785484513745385,.34785484513745385],[.5688888888888889,.47862867049936647,.47862867049936647,.23692688505618908,.23692688505618908],[.3607615730481386,.3607615730481386,.46791393457269104,.46791393457269104,.17132449237917036,.17132449237917036],[.4179591836734694,.3818300505051189,.3818300505051189,.27970539148927664,.27970539148927664,.1294849661688697,.1294849661688697],[.362683783378362,.362683783378362,.31370664587788727,.31370664587788727,.22238103445337448,.22238103445337448,.10122853629037626,.10122853629037626],[.3302393550012598,.1806481606948574,.1806481606948574,.08127438836157441,.08127438836157441,.31234707704000286,.31234707704000286,.26061069640293544,.26061069640293544],[.29552422471475287,.29552422471475287,.26926671930999635,.26926671930999635,.21908636251598204,.21908636251598204,.1494513491505806,.1494513491505806,.06667134430868814,.06667134430868814],[.2729250867779006,.26280454451024665,.26280454451024665,.23319376459199048,.23319376459199048,.18629021092773426,.18629021092773426,.1255803694649046,.1255803694649046,.05566856711617366,.05566856711617366],[.24914704581340277,.24914704581340277,.2334925365383548,.2334925365383548,.20316742672306592,.20316742672306592,.16007832854334622,.16007832854334622,.10693932599531843,.10693932599531843,.04717533638651183,.04717533638651183],[.2325515532308739,.22628318026289723,.22628318026289723,.2078160475368885,.2078160475368885,.17814598076194574,.17814598076194574,.13887351021978725,.13887351021978725,.09212149983772845,.09212149983772845,.04048400476531588,.04048400476531588],[.2152638534631578,.2152638534631578,.2051984637212956,.2051984637212956,.18553839747793782,.18553839747793782,.15720316715819355,.15720316715819355,.12151857068790319,.12151857068790319,.08015808715976021,.08015808715976021,.03511946033175186,.03511946033175186],[.2025782419255613,.19843148532711158,.19843148532711158,.1861610000155622,.1861610000155622,.16626920581699392,.16626920581699392,.13957067792615432,.13957067792615432,.10715922046717194,.10715922046717194,.07036604748810812,.07036604748810812,.03075324199611727,.03075324199611727],[.1894506104550685,.1894506104550685,.18260341504492358,.18260341504492358,.16915651939500254,.16915651939500254,.14959598881657674,.14959598881657674,.12462897125553388,.12462897125553388,.09515851168249279,.09515851168249279,.062253523938647894,.062253523938647894,.027152459411754096,.027152459411754096],[.17944647035620653,.17656270536699264,.17656270536699264,.16800410215645004,.16800410215645004,.15404576107681028,.15404576107681028,.13513636846852548,.13513636846852548,.11188384719340397,.11188384719340397,.08503614831717918,.08503614831717918,.0554595293739872,.0554595293739872,.02414830286854793,.02414830286854793],[.1691423829631436,.1691423829631436,.16427648374583273,.16427648374583273,.15468467512626524,.15468467512626524,.14064291467065065,.14064291467065065,.12255520671147846,.12255520671147846,.10094204410628717,.10094204410628717,.07642573025488905,.07642573025488905,.0497145488949698,.0497145488949698,.02161601352648331,.02161601352648331],[.1610544498487837,.15896884339395434,.15896884339395434,.15276604206585967,.15276604206585967,.1426067021736066,.1426067021736066,.12875396253933621,.12875396253933621,.11156664554733399,.11156664554733399,.09149002162245,.09149002162245,.06904454273764123,.06904454273764123,.0448142267656996,.0448142267656996,.019461788229726478,.019461788229726478],[.15275338713072584,.15275338713072584,.14917298647260374,.14917298647260374,.14209610931838204,.14209610931838204,.13168863844917664,.13168863844917664,.11819453196151841,.11819453196151841,.10193011981724044,.10193011981724044,.08327674157670475,.08327674157670475,.06267204833410907,.06267204833410907,.04060142980038694,.04060142980038694,.017614007139152118,.017614007139152118],[.14608113364969041,.14452440398997005,.14452440398997005,.13988739479107315,.13988739479107315,.13226893863333747,.13226893863333747,.12183141605372853,.12183141605372853,.10879729916714838,.10879729916714838,.09344442345603386,.09344442345603386,.0761001136283793,.0761001136283793,.057134425426857205,.057134425426857205,.036953789770852494,.036953789770852494,.016017228257774335,.016017228257774335],[.13925187285563198,.13925187285563198,.13654149834601517,.13654149834601517,.13117350478706238,.13117350478706238,.12325237681051242,.12325237681051242,.11293229608053922,.11293229608053922,.10041414444288096,.10041414444288096,.08594160621706773,.08594160621706773,.06979646842452049,.06979646842452049,.052293335152683286,.052293335152683286,.03377490158481415,.03377490158481415,.0146279952982722,.0146279952982722],[.13365457218610619,.1324620394046966,.1324620394046966,.12890572218808216,.12890572218808216,.12304908430672953,.12304908430672953,.11499664022241136,.11499664022241136,.10489209146454141,.10489209146454141,.09291576606003515,.09291576606003515,.07928141177671895,.07928141177671895,.06423242140852585,.06423242140852585,.04803767173108467,.04803767173108467,.030988005856979445,.030988005856979445,.013411859487141771,.013411859487141771],[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872]],e.binomialCoefficients=[[1],[1,1],[1,2,1],[1,3,3,1]];const t=(s,a,c)=>{let l,u,h;l=c/2,u=0;for(let f=0;f<20;f++)h=l*e.tValues[20][f]+l,u+=e.cValues[20][f]*n(s,a,h);return l*u};e.getCubicArcLength=t;const r=(s,a,c)=>{c===void 0&&(c=1);const l=s[0]-2*s[1]+s[2],u=a[0]-2*a[1]+a[2],h=2*s[1]-2*s[0],f=2*a[1]-2*a[0],d=4*(l*l+u*u),p=4*(l*h+u*f),g=h*h+f*f;if(d===0)return c*Math.sqrt(Math.pow(s[2]-s[0],2)+Math.pow(a[2]-a[0],2));const v=p/(2*d),b=g/d,y=c+v,m=b-v*v,x=y*y+m>0?Math.sqrt(y*y+m):0,A=v*v+m>0?Math.sqrt(v*v+m):0,E=v+Math.sqrt(v*v+m)!==0?m*Math.log(Math.abs((y+x)/(v+A))):0;return Math.sqrt(d)/2*(y*x-v*A+E)};e.getQuadraticArcLength=r;function n(s,a,c){const l=i(1,c,s),u=i(1,c,a),h=l*l+u*u;return Math.sqrt(h)}const i=(s,a,c)=>{const l=c.length-1;let u,h;if(l===0)return 0;if(s===0){h=0;for(let f=0;f<=l;f++)h+=e.binomialCoefficients[l][f]*Math.pow(1-a,l-f)*Math.pow(a,f)*c[f];return h}else{u=new Array(l);for(let f=0;f<l;f++)u[f]=l*(c[f+1]-c[f]);return i(s-1,a,u)}},o=(s,a,c)=>{let l=1,u=s/a,h=(s-c(u))/a,f=0;for(;l>.001;){const d=c(u+h),p=Math.abs(s-d)/a;if(p<l)l=p,u+=h;else{const g=c(u-h),v=Math.abs(s-g)/a;v<l?(l=v,u-=h):h/=2}if(f++,f>500)break}return u};e.t2length=o})(Z1);const uW=Ln(Z1),hW=se({__proto__:null,default:uW},[Z1]),dW=ae(hW);Object.defineProperty(bu,"__esModule",{value:!0});var g4=bu.Path=void 0;const fW=Pe,pW=Wr,mW=Ne,pl=dW;class zr extends pW.Shape{constructor(t){super(t),this.dataArray=[],this.pathLength=0,this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute()})}_readDataAttribute(){this.dataArray=zr.parsePathData(this.data()),this.pathLength=zr.getPathLength(this.dataArray)}_sceneFunc(t){var r=this.dataArray;t.beginPath();for(var n=!1,i=0;i<r.length;i++){var o=r[i].command,s=r[i].points;switch(o){case"L":t.lineTo(s[0],s[1]);break;case"M":t.moveTo(s[0],s[1]);break;case"C":t.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);break;case"Q":t.quadraticCurveTo(s[0],s[1],s[2],s[3]);break;case"A":var a=s[0],c=s[1],l=s[2],u=s[3],h=s[4],f=s[5],d=s[6],p=s[7],g=l>u?l:u,v=l>u?1:l/u,b=l>u?u/l:1;t.translate(a,c),t.rotate(d),t.scale(v,b),t.arc(0,0,g,h,h+f,1-p),t.scale(1/v,1/b),t.rotate(-d),t.translate(-a,-c);break;case"z":n=!0,t.closePath();break}}!n&&!this.hasFill()?t.strokeShape(this):t.fillStrokeShape(this)}getSelfRect(){var t=[];this.dataArray.forEach(function(l){if(l.command==="A"){var u=l.points[4],h=l.points[5],f=l.points[4]+h,d=Math.PI/180;if(Math.abs(u-f)<d&&(d=Math.abs(u-f)),h<0)for(let p=u-d;p>f;p-=d){const g=zr.getPointOnEllipticalArc(l.points[0],l.points[1],l.points[2],l.points[3],p,0);t.push(g.x,g.y)}else for(let p=u+d;p<f;p+=d){const g=zr.getPointOnEllipticalArc(l.points[0],l.points[1],l.points[2],l.points[3],p,0);t.push(g.x,g.y)}}else if(l.command==="C")for(let p=0;p<=1;p+=.01){const g=zr.getPointOnCubicBezier(p,l.start.x,l.start.y,l.points[0],l.points[1],l.points[2],l.points[3],l.points[4],l.points[5]);t.push(g.x,g.y)}else t=t.concat(l.points)});for(var r=t[0],n=t[0],i=t[1],o=t[1],s,a,c=0;c<t.length/2;c++)s=t[c*2],a=t[c*2+1],isNaN(s)||(r=Math.min(r,s),n=Math.max(n,s)),isNaN(a)||(i=Math.min(i,a),o=Math.max(o,a));return{x:r,y:i,width:n-r,height:o-i}}getLength(){return this.pathLength}getPointAtLength(t){return zr.getPointAtLengthOfDataArray(t,this.dataArray)}static getLineLength(t,r,n,i){return Math.sqrt((n-t)*(n-t)+(i-r)*(i-r))}static getPathLength(t){let r=0;for(var n=0;n<t.length;++n)r+=t[n].pathLength;return r}static getPointAtLengthOfDataArray(t,r){var n,i=0,o=r.length;if(!o)return null;for(;i<o&&t>r[i].pathLength;)t-=r[i].pathLength,++i;if(i===o)return n=r[i-1].points.slice(-2),{x:n[0],y:n[1]};if(t<.01)return n=r[i].points.slice(0,2),{x:n[0],y:n[1]};var s=r[i],a=s.points;switch(s.command){case"L":return zr.getPointOnLine(t,s.start.x,s.start.y,a[0],a[1]);case"C":return zr.getPointOnCubicBezier((0,pl.t2length)(t,zr.getPathLength(r),g=>(0,pl.getCubicArcLength)([s.start.x,a[0],a[2],a[4]],[s.start.y,a[1],a[3],a[5]],g)),s.start.x,s.start.y,a[0],a[1],a[2],a[3],a[4],a[5]);case"Q":return zr.getPointOnQuadraticBezier((0,pl.t2length)(t,zr.getPathLength(r),g=>(0,pl.getQuadraticArcLength)([s.start.x,a[0],a[2]],[s.start.y,a[1],a[3]],g)),s.start.x,s.start.y,a[0],a[1],a[2],a[3]);case"A":var c=a[0],l=a[1],u=a[2],h=a[3],f=a[4],d=a[5],p=a[6];return f+=d*t/s.pathLength,zr.getPointOnEllipticalArc(c,l,u,h,f,p)}return null}static getPointOnLine(t,r,n,i,o,s,a){s===void 0&&(s=r),a===void 0&&(a=n);var c=(o-n)/(i-r+1e-8),l=Math.sqrt(t*t/(1+c*c));i<r&&(l*=-1);var u=c*l,h;if(i===r)h={x:s,y:a+u};else if((a-n)/(s-r+1e-8)===c)h={x:s+l,y:a+u};else{var f,d,p=this.getLineLength(r,n,i,o),g=(s-r)*(i-r)+(a-n)*(o-n);g=g/(p*p),f=r+g*(i-r),d=n+g*(o-n);var v=this.getLineLength(s,a,f,d),b=Math.sqrt(t*t-v*v);l=Math.sqrt(b*b/(1+c*c)),i<r&&(l*=-1),u=c*l,h={x:f+l,y:d+u}}return h}static getPointOnCubicBezier(t,r,n,i,o,s,a,c,l){function u(v){return v*v*v}function h(v){return 3*v*v*(1-v)}function f(v){return 3*v*(1-v)*(1-v)}function d(v){return(1-v)*(1-v)*(1-v)}var p=c*u(t)+s*h(t)+i*f(t)+r*d(t),g=l*u(t)+a*h(t)+o*f(t)+n*d(t);return{x:p,y:g}}static getPointOnQuadraticBezier(t,r,n,i,o,s,a){function c(d){return d*d}function l(d){return 2*d*(1-d)}function u(d){return(1-d)*(1-d)}var h=s*c(t)+i*l(t)+r*u(t),f=a*c(t)+o*l(t)+n*u(t);return{x:h,y:f}}static getPointOnEllipticalArc(t,r,n,i,o,s){var a=Math.cos(s),c=Math.sin(s),l={x:n*Math.cos(o),y:i*Math.sin(o)};return{x:t+(l.x*a-l.y*c),y:r+(l.x*c+l.y*a)}}static parsePathData(t){if(!t)return[];var r=t,n=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];r=r.replace(new RegExp(" ","g"),",");for(var i=0;i<n.length;i++)r=r.replace(new RegExp(n[i],"g"),"|"+n[i]);var o=r.split("|"),s=[],a=[],c=0,l=0,u=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi,h;for(i=1;i<o.length;i++){var f=o[i],d=f.charAt(0);for(f=f.slice(1),a.length=0;h=u.exec(f);)a.push(h[0]);for(var p=[],g=0,v=a.length;g<v;g++){if(a[g]==="00"){p.push(0,0);continue}var b=parseFloat(a[g]);isNaN(b)?p.push(0):p.push(b)}for(;p.length>0&&!isNaN(p[0]);){var y="",m=[],x=c,A=l,E,k,D,V,U,K,Y,it,nt,ft;switch(d){case"l":c+=p.shift(),l+=p.shift(),y="L",m.push(c,l);break;case"L":c=p.shift(),l=p.shift(),m.push(c,l);break;case"m":var xt=p.shift(),_t=p.shift();if(c+=xt,l+=_t,y="M",s.length>2&&s[s.length-1].command==="z"){for(var yt=s.length-2;yt>=0;yt--)if(s[yt].command==="M"){c=s[yt].points[0]+xt,l=s[yt].points[1]+_t;break}}m.push(c,l),d="l";break;case"M":c=p.shift(),l=p.shift(),y="M",m.push(c,l),d="L";break;case"h":c+=p.shift(),y="L",m.push(c,l);break;case"H":c=p.shift(),y="L",m.push(c,l);break;case"v":l+=p.shift(),y="L",m.push(c,l);break;case"V":l=p.shift(),y="L",m.push(c,l);break;case"C":m.push(p.shift(),p.shift(),p.shift(),p.shift()),c=p.shift(),l=p.shift(),m.push(c,l);break;case"c":m.push(c+p.shift(),l+p.shift(),c+p.shift(),l+p.shift()),c+=p.shift(),l+=p.shift(),y="C",m.push(c,l);break;case"S":k=c,D=l,E=s[s.length-1],E.command==="C"&&(k=c+(c-E.points[2]),D=l+(l-E.points[3])),m.push(k,D,p.shift(),p.shift()),c=p.shift(),l=p.shift(),y="C",m.push(c,l);break;case"s":k=c,D=l,E=s[s.length-1],E.command==="C"&&(k=c+(c-E.points[2]),D=l+(l-E.points[3])),m.push(k,D,c+p.shift(),l+p.shift()),c+=p.shift(),l+=p.shift(),y="C",m.push(c,l);break;case"Q":m.push(p.shift(),p.shift()),c=p.shift(),l=p.shift(),m.push(c,l);break;case"q":m.push(c+p.shift(),l+p.shift()),c+=p.shift(),l+=p.shift(),y="Q",m.push(c,l);break;case"T":k=c,D=l,E=s[s.length-1],E.command==="Q"&&(k=c+(c-E.points[0]),D=l+(l-E.points[1])),c=p.shift(),l=p.shift(),y="Q",m.push(k,D,c,l);break;case"t":k=c,D=l,E=s[s.length-1],E.command==="Q"&&(k=c+(c-E.points[0]),D=l+(l-E.points[1])),c+=p.shift(),l+=p.shift(),y="Q",m.push(k,D,c,l);break;case"A":V=p.shift(),U=p.shift(),K=p.shift(),Y=p.shift(),it=p.shift(),nt=c,ft=l,c=p.shift(),l=p.shift(),y="A",m=this.convertEndpointToCenterParameterization(nt,ft,c,l,Y,it,V,U,K);break;case"a":V=p.shift(),U=p.shift(),K=p.shift(),Y=p.shift(),it=p.shift(),nt=c,ft=l,c+=p.shift(),l+=p.shift(),y="A",m=this.convertEndpointToCenterParameterization(nt,ft,c,l,Y,it,V,U,K);break}s.push({command:y||d,points:m,start:{x,y:A},pathLength:this.calcLength(x,A,y||d,m)})}(d==="z"||d==="Z")&&s.push({command:"z",points:[],start:void 0,pathLength:0})}return s}static calcLength(t,r,n,i){var o,s,a,c,l=zr;switch(n){case"L":return l.getLineLength(t,r,i[0],i[1]);case"C":return(0,pl.getCubicArcLength)([t,i[0],i[2],i[4]],[r,i[1],i[3],i[5]],1);case"Q":return(0,pl.getQuadraticArcLength)([t,i[0],i[2]],[r,i[1],i[3]],1);case"A":o=0;var u=i[4],h=i[5],f=i[4]+h,d=Math.PI/180;if(Math.abs(u-f)<d&&(d=Math.abs(u-f)),s=l.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],u,0),h<0)for(c=u-d;c>f;c-=d)a=l.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],c,0),o+=l.getLineLength(s.x,s.y,a.x,a.y),s=a;else for(c=u+d;c<f;c+=d)a=l.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],c,0),o+=l.getLineLength(s.x,s.y,a.x,a.y),s=a;return a=l.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],f,0),o+=l.getLineLength(s.x,s.y,a.x,a.y),o}return 0}static convertEndpointToCenterParameterization(t,r,n,i,o,s,a,c,l){var u=l*(Math.PI/180),h=Math.cos(u)*(t-n)/2+Math.sin(u)*(r-i)/2,f=-1*Math.sin(u)*(t-n)/2+Math.cos(u)*(r-i)/2,d=h*h/(a*a)+f*f/(c*c);d>1&&(a*=Math.sqrt(d),c*=Math.sqrt(d));var p=Math.sqrt((a*a*(c*c)-a*a*(f*f)-c*c*(h*h))/(a*a*(f*f)+c*c*(h*h)));o===s&&(p*=-1),isNaN(p)&&(p=0);var g=p*a*f/c,v=p*-c*h/a,b=(t+n)/2+Math.cos(u)*g-Math.sin(u)*v,y=(r+i)/2+Math.sin(u)*g+Math.cos(u)*v,m=function(U){return Math.sqrt(U[0]*U[0]+U[1]*U[1])},x=function(U,K){return(U[0]*K[0]+U[1]*K[1])/(m(U)*m(K))},A=function(U,K){return(U[0]*K[1]<U[1]*K[0]?-1:1)*Math.acos(x(U,K))},E=A([1,0],[(h-g)/a,(f-v)/c]),k=[(h-g)/a,(f-v)/c],D=[(-1*h-g)/a,(-1*f-v)/c],V=A(k,D);return x(k,D)<=-1&&(V=Math.PI),x(k,D)>=1&&(V=0),s===0&&V>0&&(V=V-2*Math.PI),s===1&&V<0&&(V=V+2*Math.PI),[b,y,a,c,E,V,u,s]}}g4=bu.Path=zr,zr.prototype.className="Path",zr.prototype._attrsAffectingSize=["data"],(0,mW._registerNode)(zr),fW.Factory.addGetterSetter(zr,"data");const gW=se({__proto__:null,get Path(){return g4},default:bu},[bu]),ty=ae(gW);Object.defineProperty(yu,"__esModule",{value:!0});var v4=yu.Arrow=void 0;const Mf=Pe,vW=m4,y4=Ae,yW=Ne,_4=ty;class wa extends vW.Line{_sceneFunc(t){super._sceneFunc(t);var r=Math.PI*2,n=this.points(),i=n,o=this.tension()!==0&&n.length>4;o&&(i=this.getTensionPoints());var s=this.pointerLength(),a=n.length,c,l;if(o){const f=[i[i.length-4],i[i.length-3],i[i.length-2],i[i.length-1],n[a-2],n[a-1]],d=_4.Path.calcLength(i[i.length-4],i[i.length-3],"C",f),p=_4.Path.getPointOnQuadraticBezier(Math.min(1,1-s/d),f[0],f[1],f[2],f[3],f[4],f[5]);c=n[a-2]-p.x,l=n[a-1]-p.y}else c=n[a-2]-n[a-4],l=n[a-1]-n[a-3];var u=(Math.atan2(l,c)+r)%r,h=this.pointerWidth();this.pointerAtEnding()&&(t.save(),t.beginPath(),t.translate(n[a-2],n[a-1]),t.rotate(u),t.moveTo(0,0),t.lineTo(-s,h/2),t.lineTo(-s,-h/2),t.closePath(),t.restore(),this.__fillStroke(t)),this.pointerAtBeginning()&&(t.save(),t.beginPath(),t.translate(n[0],n[1]),o?(c=(i[0]+i[2])/2-n[0],l=(i[1]+i[3])/2-n[1]):(c=n[2]-n[0],l=n[3]-n[1]),t.rotate((Math.atan2(-l,-c)+r)%r),t.moveTo(0,0),t.lineTo(-s,h/2),t.lineTo(-s,-h/2),t.closePath(),t.restore(),this.__fillStroke(t))}__fillStroke(t){var r=this.dashEnabled();r&&(this.attrs.dashEnabled=!1,t.setLineDash([])),t.fillStrokeShape(this),r&&(this.attrs.dashEnabled=!0)}getSelfRect(){const t=super.getSelfRect(),r=this.pointerWidth()/2;return{x:t.x-r,y:t.y-r,width:t.width+r*2,height:t.height+r*2}}}v4=yu.Arrow=wa,wa.prototype.className="Arrow",(0,yW._registerNode)(wa),Mf.Factory.addGetterSetter(wa,"pointerLength",10,(0,y4.getNumberValidator)()),Mf.Factory.addGetterSetter(wa,"pointerWidth",10,(0,y4.getNumberValidator)()),Mf.Factory.addGetterSetter(wa,"pointerAtBeginning",!1),Mf.Factory.addGetterSetter(wa,"pointerAtEnding",!0);const _W=se({__proto__:null,get Arrow(){return v4},default:yu},[yu]),bW=ae(_W);var wu={};Object.defineProperty(wu,"__esModule",{value:!0});var b4=wu.Circle=void 0;const wW=Pe,xW=Wr,SW=Ae,$W=Ne;class ml extends xW.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.attrs.radius||0,0,Math.PI*2,!1),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius()!==t/2&&this.radius(t/2)}setHeight(t){this.radius()!==t/2&&this.radius(t/2)}}b4=wu.Circle=ml,ml.prototype._centroid=!0,ml.prototype.className="Circle",ml.prototype._attrsAffectingSize=["radius"],(0,$W._registerNode)(ml),wW.Factory.addGetterSetter(ml,"radius",0,(0,SW.getNumberValidator)());const EW=se({__proto__:null,get Circle(){return b4},default:wu},[wu]),CW=ae(EW);var xu={};Object.defineProperty(xu,"__esModule",{value:!0});var w4=xu.Ellipse=void 0;const ey=Pe,kW=Wr,x4=Ae,PW=Ne;class ms extends kW.Shape{_sceneFunc(t){var r=this.radiusX(),n=this.radiusY();t.beginPath(),t.save(),r!==n&&t.scale(1,n/r),t.arc(0,0,r,0,Math.PI*2,!1),t.restore(),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radiusX()*2}getHeight(){return this.radiusY()*2}setWidth(t){this.radiusX(t/2)}setHeight(t){this.radiusY(t/2)}}w4=xu.Ellipse=ms,ms.prototype.className="Ellipse",ms.prototype._centroid=!0,ms.prototype._attrsAffectingSize=["radiusX","radiusY"],(0,PW._registerNode)(ms),ey.Factory.addComponentsGetterSetter(ms,"radius",["x","y"]),ey.Factory.addGetterSetter(ms,"radiusX",0,(0,x4.getNumberValidator)()),ey.Factory.addGetterSetter(ms,"radiusY",0,(0,x4.getNumberValidator)());const TW=se({__proto__:null,get Ellipse(){return w4},default:xu},[xu]),OW=ae(TW);var Su={};Object.defineProperty(Su,"__esModule",{value:!0});var S4=Su.Image=void 0;const ry=Sr,xa=Pe,NW=Wr,AW=Ne,$u=Ae;let Ki=class kP extends NW.Shape{constructor(t){super(t),this.on("imageChange.konva",()=>{this._setImageLoad()}),this._setImageLoad()}_setImageLoad(){const t=this.image();t&&t.complete||t&&t.readyState===4||t&&t.addEventListener&&t.addEventListener("load",()=>{this._requestDraw()})}_useBufferCanvas(){return super._useBufferCanvas(!0)}_sceneFunc(t){const r=this.getWidth(),n=this.getHeight(),i=this.cornerRadius(),o=this.attrs.image;let s;if(o){const a=this.attrs.cropWidth,c=this.attrs.cropHeight;a&&c?s=[o,this.cropX(),this.cropY(),a,c,0,0,r,n]:s=[o,0,0,r,n]}(this.hasFill()||this.hasStroke()||i)&&(t.beginPath(),i?ry.Util.drawRoundedRectPath(t,r,n,i):t.rect(0,0,r,n),t.closePath(),t.fillStrokeShape(this)),o&&(i&&t.clip(),t.drawImage.apply(t,s))}_hitFunc(t){var r=this.width(),n=this.height(),i=this.cornerRadius();t.beginPath(),i?ry.Util.drawRoundedRectPath(t,r,n,i):t.rect(0,0,r,n),t.closePath(),t.fillStrokeShape(this)}getWidth(){var t,r;return(t=this.attrs.width)!==null&&t!==void 0?t:(r=this.image())===null||r===void 0?void 0:r.width}getHeight(){var t,r;return(t=this.attrs.height)!==null&&t!==void 0?t:(r=this.image())===null||r===void 0?void 0:r.height}static fromURL(t,r,n=null){var i=ry.Util.createImageElement();i.onload=function(){var o=new kP({image:i});r(o)},i.onerror=n,i.crossOrigin="Anonymous",i.src=t}};S4=Su.Image=Ki,Ki.prototype.className="Image",(0,AW._registerNode)(Ki),xa.Factory.addGetterSetter(Ki,"cornerRadius",0,(0,$u.getNumberOrArrayOfNumbersValidator)(4)),xa.Factory.addGetterSetter(Ki,"image"),xa.Factory.addComponentsGetterSetter(Ki,"crop",["x","y","width","height"]),xa.Factory.addGetterSetter(Ki,"cropX",0,(0,$u.getNumberValidator)()),xa.Factory.addGetterSetter(Ki,"cropY",0,(0,$u.getNumberValidator)()),xa.Factory.addGetterSetter(Ki,"cropWidth",0,(0,$u.getNumberValidator)()),xa.Factory.addGetterSetter(Ki,"cropHeight",0,(0,$u.getNumberValidator)());const DW=se({__proto__:null,get Image(){return S4},default:Su},[Su]),RW=ae(DW);var Sa={};Object.defineProperty(Sa,"__esModule",{value:!0});var $4=Sa.Tag=k4=Sa.Label=void 0;const Lf=Pe,IW=Wr,jW=K1,ny=Ae,E4=Ne;var C4=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height","pointerDirection","pointerWidth","pointerHeight"],FW="Change.konva",MW="none",iy="up",oy="right",sy="down",ay="left",LW=C4.length;class ly extends jW.Group{constructor(t){super(t),this.on("add.konva",function(r){this._addListeners(r.child),this._sync()})}getText(){return this.find("Text")[0]}getTag(){return this.find("Tag")[0]}_addListeners(t){var r=this,n,i=function(){r._sync()};for(n=0;n<LW;n++)t.on(C4[n]+FW,i)}getWidth(){return this.getText().width()}getHeight(){return this.getText().height()}_sync(){var t=this.getText(),r=this.getTag(),n,i,o,s,a,c,l;if(t&&r){switch(n=t.width(),i=t.height(),o=r.pointerDirection(),s=r.pointerWidth(),l=r.pointerHeight(),a=0,c=0,o){case iy:a=n/2,c=-1*l;break;case oy:a=n+s,c=i/2;break;case sy:a=n/2,c=i+l;break;case ay:a=-1*s,c=i/2;break}r.setAttrs({x:-1*a,y:-1*c,width:n,height:i}),t.setAttrs({x:-1*a,y:-1*c})}}}var k4=Sa.Label=ly;ly.prototype.className="Label",(0,E4._registerNode)(ly);class $a extends IW.Shape{_sceneFunc(t){var r=this.width(),n=this.height(),i=this.pointerDirection(),o=this.pointerWidth(),s=this.pointerHeight(),a=this.cornerRadius();let c=0,l=0,u=0,h=0;typeof a=="number"?c=l=u=h=Math.min(a,r/2,n/2):(c=Math.min(a[0]||0,r/2,n/2),l=Math.min(a[1]||0,r/2,n/2),h=Math.min(a[2]||0,r/2,n/2),u=Math.min(a[3]||0,r/2,n/2)),t.beginPath(),t.moveTo(c,0),i===iy&&(t.lineTo((r-o)/2,0),t.lineTo(r/2,-1*s),t.lineTo((r+o)/2,0)),t.lineTo(r-l,0),t.arc(r-l,l,l,Math.PI*3/2,0,!1),i===oy&&(t.lineTo(r,(n-s)/2),t.lineTo(r+o,n/2),t.lineTo(r,(n+s)/2)),t.lineTo(r,n-h),t.arc(r-h,n-h,h,0,Math.PI/2,!1),i===sy&&(t.lineTo((r+o)/2,n),t.lineTo(r/2,n+s),t.lineTo((r-o)/2,n)),t.lineTo(u,n),t.arc(u,n-u,u,Math.PI/2,Math.PI,!1),i===ay&&(t.lineTo(0,(n+s)/2),t.lineTo(-1*o,n/2),t.lineTo(0,(n-s)/2)),t.lineTo(0,c),t.arc(c,c,c,Math.PI,Math.PI*3/2,!1),t.closePath(),t.fillStrokeShape(this)}getSelfRect(){var t=0,r=0,n=this.pointerWidth(),i=this.pointerHeight(),o=this.pointerDirection(),s=this.width(),a=this.height();return o===iy?(r-=i,a+=i):o===sy?a+=i:o===ay?(t-=n*1.5,s+=n):o===oy&&(s+=n*1.5),{x:t,y:r,width:s,height:a}}}$4=Sa.Tag=$a,$a.prototype.className="Tag",(0,E4._registerNode)($a),Lf.Factory.addGetterSetter($a,"pointerDirection",MW),Lf.Factory.addGetterSetter($a,"pointerWidth",0,(0,ny.getNumberValidator)()),Lf.Factory.addGetterSetter($a,"pointerHeight",0,(0,ny.getNumberValidator)()),Lf.Factory.addGetterSetter($a,"cornerRadius",0,(0,ny.getNumberOrArrayOfNumbersValidator)(4));const VW=se({__proto__:null,get Label(){return k4},get Tag(){return $4},default:Sa},[Sa]),UW=ae(VW);var Eu={};Object.defineProperty(Eu,"__esModule",{value:!0});var P4=Eu.Rect=void 0;const zW=Pe,GW=Wr,BW=Ne,HW=Sr,qW=Ae;class Vf extends GW.Shape{_sceneFunc(t){var r=this.cornerRadius(),n=this.width(),i=this.height();t.beginPath(),r?HW.Util.drawRoundedRectPath(t,n,i,r):t.rect(0,0,n,i),t.closePath(),t.fillStrokeShape(this)}}P4=Eu.Rect=Vf,Vf.prototype.className="Rect",(0,BW._registerNode)(Vf),zW.Factory.addGetterSetter(Vf,"cornerRadius",0,(0,qW.getNumberOrArrayOfNumbersValidator)(4));const KW=se({__proto__:null,get Rect(){return P4},default:Eu},[Eu]),T4=ae(KW);var Cu={};Object.defineProperty(Cu,"__esModule",{value:!0});var O4=Cu.RegularPolygon=void 0;const N4=Pe,YW=Wr,A4=Ae,XW=Ne;class Ea extends YW.Shape{_sceneFunc(t){const r=this._getPoints();t.beginPath(),t.moveTo(r[0].x,r[0].y);for(var n=1;n<r.length;n++)t.lineTo(r[n].x,r[n].y);t.closePath(),t.fillStrokeShape(this)}_getPoints(){const t=this.attrs.sides,r=this.attrs.radius||0,n=[];for(var i=0;i<t;i++)n.push({x:r*Math.sin(i*2*Math.PI/t),y:-1*r*Math.cos(i*2*Math.PI/t)});return n}getSelfRect(){const t=this._getPoints();var r=t[0].x,n=t[0].y,i=t[0].x,o=t[0].y;return t.forEach(s=>{r=Math.min(r,s.x),n=Math.max(n,s.x),i=Math.min(i,s.y),o=Math.max(o,s.y)}),{x:r,y:i,width:n-r,height:o-i}}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius(t/2)}setHeight(t){this.radius(t/2)}}O4=Cu.RegularPolygon=Ea,Ea.prototype.className="RegularPolygon",Ea.prototype._centroid=!0,Ea.prototype._attrsAffectingSize=["radius"],(0,XW._registerNode)(Ea),N4.Factory.addGetterSetter(Ea,"radius",0,(0,A4.getNumberValidator)()),N4.Factory.addGetterSetter(Ea,"sides",0,(0,A4.getNumberValidator)());const JW=se({__proto__:null,get RegularPolygon(){return O4},default:Cu},[Cu]),WW=ae(JW);var ku={};Object.defineProperty(ku,"__esModule",{value:!0});var D4=ku.Ring=void 0;const R4=Pe,QW=Wr,I4=Ae,ZW=Ne;var j4=Math.PI*2;class Ca extends QW.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.innerRadius(),0,j4,!1),t.moveTo(this.outerRadius(),0),t.arc(0,0,this.outerRadius(),j4,0,!0),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}}D4=ku.Ring=Ca,Ca.prototype.className="Ring",Ca.prototype._centroid=!0,Ca.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,ZW._registerNode)(Ca),R4.Factory.addGetterSetter(Ca,"innerRadius",0,(0,I4.getNumberValidator)()),R4.Factory.addGetterSetter(Ca,"outerRadius",0,(0,I4.getNumberValidator)());const tQ=se({__proto__:null,get Ring(){return D4},default:ku},[ku]),eQ=ae(tQ);var Pu={};Object.defineProperty(Pu,"__esModule",{value:!0});var F4=Pu.Sprite=void 0;const ka=Pe,rQ=Wr,nQ=J1,M4=Ae,iQ=Ne;class Yi extends rQ.Shape{constructor(t){super(t),this._updated=!0,this.anim=new nQ.Animation(()=>{var r=this._updated;return this._updated=!1,r}),this.on("animationChange.konva",function(){this.frameIndex(0)}),this.on("frameIndexChange.konva",function(){this._updated=!0}),this.on("frameRateChange.konva",function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())})}_sceneFunc(t){var r=this.animation(),n=this.frameIndex(),i=n*4,o=this.animations()[r],s=this.frameOffsets(),a=o[i+0],c=o[i+1],l=o[i+2],u=o[i+3],h=this.image();if((this.hasFill()||this.hasStroke())&&(t.beginPath(),t.rect(0,0,l,u),t.closePath(),t.fillStrokeShape(this)),h)if(s){var f=s[r],d=n*2;t.drawImage(h,a,c,l,u,f[d+0],f[d+1],l,u)}else t.drawImage(h,a,c,l,u,0,0,l,u)}_hitFunc(t){var r=this.animation(),n=this.frameIndex(),i=n*4,o=this.animations()[r],s=this.frameOffsets(),a=o[i+2],c=o[i+3];if(t.beginPath(),s){var l=s[r],u=n*2;t.rect(l[u+0],l[u+1],a,c)}else t.rect(0,0,a,c);t.closePath(),t.fillShape(this)}_useBufferCanvas(){return super._useBufferCanvas(!0)}_setInterval(){var t=this;this.interval=setInterval(function(){t._updateIndex()},1e3/this.frameRate())}start(){if(!this.isRunning()){var t=this.getLayer();this.anim.setLayers(t),this._setInterval(),this.anim.start()}}stop(){this.anim.stop(),clearInterval(this.interval)}isRunning(){return this.anim.isRunning()}_updateIndex(){var t=this.frameIndex(),r=this.animation(),n=this.animations(),i=n[r],o=i.length/4;t<o-1?this.frameIndex(t+1):this.frameIndex(0)}}F4=Pu.Sprite=Yi,Yi.prototype.className="Sprite",(0,iQ._registerNode)(Yi),ka.Factory.addGetterSetter(Yi,"animation"),ka.Factory.addGetterSetter(Yi,"animations"),ka.Factory.addGetterSetter(Yi,"frameOffsets"),ka.Factory.addGetterSetter(Yi,"image"),ka.Factory.addGetterSetter(Yi,"frameIndex",0,(0,M4.getNumberValidator)()),ka.Factory.addGetterSetter(Yi,"frameRate",17,(0,M4.getNumberValidator)()),ka.Factory.backCompat(Yi,{index:"frameIndex",getIndex:"getFrameIndex",setIndex:"setFrameIndex"});const oQ=se({__proto__:null,get Sprite(){return F4},default:Pu},[Pu]),sQ=ae(oQ);var Tu={};Object.defineProperty(Tu,"__esModule",{value:!0});var L4=Tu.Star=void 0;const cy=Pe,aQ=Wr,uy=Ae,lQ=Ne;class gs extends aQ.Shape{_sceneFunc(t){var r=this.innerRadius(),n=this.outerRadius(),i=this.numPoints();t.beginPath(),t.moveTo(0,0-n);for(var o=1;o<i*2;o++){var s=o%2===0?n:r,a=s*Math.sin(o*Math.PI/i),c=-1*s*Math.cos(o*Math.PI/i);t.lineTo(a,c)}t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}}L4=Tu.Star=gs,gs.prototype.className="Star",gs.prototype._centroid=!0,gs.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,lQ._registerNode)(gs),cy.Factory.addGetterSetter(gs,"numPoints",5,(0,uy.getNumberValidator)()),cy.Factory.addGetterSetter(gs,"innerRadius",0,(0,uy.getNumberValidator)()),cy.Factory.addGetterSetter(gs,"outerRadius",0,(0,uy.getNumberValidator)());const cQ=se({__proto__:null,get Star(){return L4},default:Tu},[Tu]),uQ=ae(cQ);var Pa={};Object.defineProperty(Pa,"__esModule",{value:!0});var V4=Pa.Text=z4=Pa.stringToArray=void 0;const hy=Sr,hn=Pe,hQ=Wr,vs=Ae,dQ=Ne;function U4(e){return Array.from(e)}var z4=Pa.stringToArray=U4,gl="auto",fQ="center",G4="inherit",Ou="justify",pQ="Change.konva",mQ="2d",B4="-",H4="left",gQ="text",vQ="Text",yQ="top",_Q="bottom",q4="middle",K4="normal",bQ="px ",Uf=" ",wQ="right",Y4="rtl",xQ="word",SQ="char",X4="none",dy="…",J4=["direction","fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],$Q=J4.length;function EQ(e){return e.split(",").map(t=>{t=t.trim();const r=t.indexOf(" ")>=0,n=t.indexOf('"')>=0||t.indexOf("'")>=0;return r&&!n&&(t=`"${t}"`),t}).join(", ")}var fy;function py(){return fy||(fy=hy.Util.createCanvasElement().getContext(mQ),fy)}function CQ(e){e.fillText(this._partialText,this._partialTextX,this._partialTextY)}function kQ(e){e.setAttr("miterLimit",2),e.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function PQ(e){return e=e||{},!e.fillLinearGradientColorStops&&!e.fillRadialGradientColorStops&&!e.fillPatternImage&&(e.fill=e.fill||"black"),e}class Er extends hQ.Shape{constructor(t){super(PQ(t)),this._partialTextX=0,this._partialTextY=0;for(var r=0;r<$Q;r++)this.on(J4[r]+pQ,this._setTextData);this._setTextData()}_sceneFunc(t){var r=this.textArr,n=r.length;if(this.text()){var i=this.padding(),o=this.fontSize(),s=this.lineHeight()*o,a=this.verticalAlign(),c=this.direction(),l=0,u=this.align(),h=this.getWidth(),f=this.letterSpacing(),d=this.fill(),p=this.textDecoration(),g=p.indexOf("underline")!==-1,v=p.indexOf("line-through")!==-1,b;c=c===G4?t.direction:c;var y=0,y=s/2,m=0,x=0;for(c===Y4&&t.setAttr("direction",c),t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",q4),t.setAttr("textAlign",H4),a===q4?l=(this.getHeight()-n*s-i*2)/2:a===_Q&&(l=this.getHeight()-n*s-i*2),t.translate(i,l+i),b=0;b<n;b++){var m=0,x=0,A=r[b],E=A.text,k=A.width,D=A.lastInParagraph,V,U,K;if(t.save(),u===wQ?m+=h-k-i*2:u===fQ&&(m+=(h-k-i*2)/2),g){t.save(),t.beginPath(),t.moveTo(m,y+x+Math.round(o/2)),V=E.split(" ").length-1,U=V===0,K=u===Ou&&!D?h-i*2:k,t.lineTo(m+Math.round(K),y+x+Math.round(o/2)),t.lineWidth=o/15;const _t=this._getLinearGradient();t.strokeStyle=_t||d,t.stroke(),t.restore()}if(v){t.save(),t.beginPath(),t.moveTo(m,y+x),V=E.split(" ").length-1,U=V===0,K=u===Ou&&D&&!U?h-i*2:k,t.lineTo(m+Math.round(K),y+x),t.lineWidth=o/15;const _t=this._getLinearGradient();t.strokeStyle=_t||d,t.stroke(),t.restore()}if(c!==Y4&&(f!==0||u===Ou)){V=E.split(" ").length-1;for(var Y=U4(E),it=0;it<Y.length;it++){var nt=Y[it];nt===" "&&!D&&u===Ou&&(m+=(h-i*2-k)/V),this._partialTextX=m,this._partialTextY=y+x,this._partialText=nt,t.fillStrokeShape(this),m+=this.measureSize(nt).width+f}}else f!==0&&t.setAttr("letterSpacing",`${f}px`),this._partialTextX=m,this._partialTextY=y+x,this._partialText=E,t.fillStrokeShape(this);t.restore(),n>1&&(y+=s)}}}_hitFunc(t){var r=this.getWidth(),n=this.getHeight();t.beginPath(),t.rect(0,0,r,n),t.closePath(),t.fillStrokeShape(this)}setText(t){var r=hy.Util._isString(t)?t:t==null?"":t+"";return this._setAttr(gQ,r),this}getWidth(){var t=this.attrs.width===gl||this.attrs.width===void 0;return t?this.getTextWidth()+this.padding()*2:this.attrs.width}getHeight(){var t=this.attrs.height===gl||this.attrs.height===void 0;return t?this.fontSize()*this.textArr.length*this.lineHeight()+this.padding()*2:this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return hy.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(t){var r=py(),n=this.fontSize(),i;return r.save(),r.font=this._getContextFont(),i=r.measureText(t),r.restore(),{width:i.width,height:n}}_getContextFont(){return this.fontStyle()+Uf+this.fontVariant()+Uf+(this.fontSize()+bQ)+EQ(this.fontFamily())}_addTextLine(t){this.align()===Ou&&(t=t.trim());var r=this._getTextWidth(t);return this.textArr.push({text:t,width:r,lastInParagraph:!1})}_getTextWidth(t){var r=this.letterSpacing(),n=t.length;return py().measureText(t).width+(n?r*(n-1):0)}_setTextData(){var t=this.text().split(`
|
|
94
|
-
`),r=+this.fontSize(),n=0,i=this.lineHeight()*r,o=this.attrs.width,s=this.attrs.height,a=o!==gl&&o!==void 0,c=s!==gl&&s!==void 0,l=this.padding(),u=o-l*2,h=s-l*2,f=0,d=this.wrap(),p=d!==X4,g=d!==SQ&&p,v=this.ellipsis();this.textArr=[],py().font=this._getContextFont();for(var b=v?this._getTextWidth(dy):0,y=0,m=t.length;y<m;++y){var x=t[y],A=this._getTextWidth(x);if(a&&A>u)for(;x.length>0;){for(var E=0,k=x.length,D="",V=0;E<k;){var U=E+k>>>1,K=x.slice(0,U+1),Y=this._getTextWidth(K)+b;Y<=u?(E=U+1,D=K,V=Y):k=U}if(D){if(g){var it,nt=x[D.length],ft=nt===Uf||nt===B4;ft&&V<=u?it=D.length:it=Math.max(D.lastIndexOf(Uf),D.lastIndexOf(B4))+1,it>0&&(E=it,D=D.slice(0,E),V=this._getTextWidth(D))}D=D.trimRight(),this._addTextLine(D),n=Math.max(n,V),f+=i;var xt=this._shouldHandleEllipsis(f);if(xt){this._tryToAddEllipsisToLastLine();break}if(x=x.slice(E),x=x.trimLeft(),x.length>0&&(A=this._getTextWidth(x),A<=u)){this._addTextLine(x),f+=i,n=Math.max(n,A);break}}else break}else this._addTextLine(x),f+=i,n=Math.max(n,A),this._shouldHandleEllipsis(f)&&y<m-1&&this._tryToAddEllipsisToLastLine();if(this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0),c&&f+i>h)break}this.textHeight=r,this.textWidth=n}_shouldHandleEllipsis(t){var r=+this.fontSize(),n=this.lineHeight()*r,i=this.attrs.height,o=i!==gl&&i!==void 0,s=this.padding(),a=i-s*2,c=this.wrap(),l=c!==X4;return!l||o&&t+n>a}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,r=t!==gl&&t!==void 0,n=this.padding(),i=t-n*2,o=this.ellipsis(),s=this.textArr[this.textArr.length-1];if(!(!s||!o)){if(r){var a=this._getTextWidth(s.text+dy)<i;a||(s.text=s.text.slice(0,s.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(s.text+dy)}}getStrokeScaleEnabled(){return!0}_useBufferCanvas(){const t=this.textDecoration().indexOf("underline")!==-1||this.textDecoration().indexOf("line-through")!==-1,r=this.hasShadow();return t&&r?!0:super._useBufferCanvas()}}V4=Pa.Text=Er,Er.prototype._fillFunc=CQ,Er.prototype._strokeFunc=kQ,Er.prototype.className=vQ,Er.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"],(0,dQ._registerNode)(Er),hn.Factory.overWriteSetter(Er,"width",(0,vs.getNumberOrAutoValidator)()),hn.Factory.overWriteSetter(Er,"height",(0,vs.getNumberOrAutoValidator)()),hn.Factory.addGetterSetter(Er,"direction",G4),hn.Factory.addGetterSetter(Er,"fontFamily","Arial"),hn.Factory.addGetterSetter(Er,"fontSize",12,(0,vs.getNumberValidator)()),hn.Factory.addGetterSetter(Er,"fontStyle",K4),hn.Factory.addGetterSetter(Er,"fontVariant",K4),hn.Factory.addGetterSetter(Er,"padding",0,(0,vs.getNumberValidator)()),hn.Factory.addGetterSetter(Er,"align",H4),hn.Factory.addGetterSetter(Er,"verticalAlign",yQ),hn.Factory.addGetterSetter(Er,"lineHeight",1,(0,vs.getNumberValidator)()),hn.Factory.addGetterSetter(Er,"wrap",xQ),hn.Factory.addGetterSetter(Er,"ellipsis",!1,(0,vs.getBooleanValidator)()),hn.Factory.addGetterSetter(Er,"letterSpacing",0,(0,vs.getNumberValidator)()),hn.Factory.addGetterSetter(Er,"text","",(0,vs.getStringValidator)()),hn.Factory.addGetterSetter(Er,"textDecoration","");const TQ=se({__proto__:null,get Text(){return V4},default:Pa,get stringToArray(){return z4}},[Pa]),W4=ae(TQ);var Nu={};Object.defineProperty(Nu,"__esModule",{value:!0});var Q4=Nu.TextPath=void 0;const my=Sr,Ei=Pe,OQ=Wr,Au=ty,gy=W4,Z4=Ae,NQ=Ne;var AQ="",tk="normal";function ek(e){e.fillText(this.partialText,0,0)}function rk(e){e.strokeText(this.partialText,0,0)}class Gr extends OQ.Shape{constructor(t){super(t),this.dummyCanvas=my.Util.createCanvasElement(),this.dataArray=[],this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute(),this._setTextData()}),this.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva fontFamilyChange.konva",this._setTextData),this._setTextData()}_getTextPathLength(){return Au.Path.getPathLength(this.dataArray)}_getPointAtLength(t){if(!this.attrs.data)return null;const r=this.pathLength;return t-1>r?null:Au.Path.getPointAtLengthOfDataArray(t,this.dataArray)}_readDataAttribute(){this.dataArray=Au.Path.parsePathData(this.attrs.data),this.pathLength=this._getTextPathLength()}_sceneFunc(t){t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",this.textBaseline()),t.setAttr("textAlign","left"),t.save();var r=this.textDecoration(),n=this.fill(),i=this.fontSize(),o=this.glyphInfo;r==="underline"&&t.beginPath();for(var s=0;s<o.length;s++){t.save();var a=o[s].p0;t.translate(a.x,a.y),t.rotate(o[s].rotation),this.partialText=o[s].text,t.fillStrokeShape(this),r==="underline"&&(s===0&&t.moveTo(0,i/2+1),t.lineTo(i,i/2+1)),t.restore()}r==="underline"&&(t.strokeStyle=n,t.lineWidth=i/20,t.stroke()),t.restore()}_hitFunc(t){t.beginPath();var r=this.glyphInfo;if(r.length>=1){var n=r[0].p0;t.moveTo(n.x,n.y)}for(var i=0;i<r.length;i++){var o=r[i].p1;t.lineTo(o.x,o.y)}t.setAttr("lineWidth",this.fontSize()),t.setAttr("strokeStyle",this.colorKey),t.stroke()}getTextWidth(){return this.textWidth}getTextHeight(){return my.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}setText(t){return gy.Text.prototype.setText.call(this,t)}_getContextFont(){return gy.Text.prototype._getContextFont.call(this)}_getTextSize(t){var r=this.dummyCanvas,n=r.getContext("2d");n.save(),n.font=this._getContextFont();var i=n.measureText(t);return n.restore(),{width:i.width,height:parseInt(`${this.fontSize()}`,10)}}_setTextData(){const{width:t,height:r}=this._getTextSize(this.attrs.text);if(this.textWidth=t,this.textHeight=r,this.glyphInfo=[],!this.attrs.data)return null;const n=this.letterSpacing(),i=this.align(),o=this.kerningFunc(),s=Math.max(this.textWidth+((this.attrs.text||"").length-1)*n,0);let a=0;i==="center"&&(a=Math.max(0,this.pathLength/2-s/2)),i==="right"&&(a=Math.max(0,this.pathLength-s));const c=(0,gy.stringToArray)(this.text());let l=a;for(var u=0;u<c.length;u++){const h=this._getPointAtLength(l);if(!h)return;let f=this._getTextSize(c[u]).width+n;if(c[u]===" "&&i==="justify"){const y=this.text().split(" ").length-1;f+=(this.pathLength-s)/y}const d=this._getPointAtLength(l+f);if(!d)return;const p=Au.Path.getLineLength(h.x,h.y,d.x,d.y);let g=0;if(o)try{g=o(c[u-1],c[u])*this.fontSize()}catch{g=0}h.x+=g,d.x+=g,this.textWidth+=g;const v=Au.Path.getPointOnLine(g+p/2,h.x,h.y,d.x,d.y),b=Math.atan2(d.y-h.y,d.x-h.x);this.glyphInfo.push({transposeX:v.x,transposeY:v.y,text:c[u],rotation:b,p0:h,p1:d}),l+=f}}getSelfRect(){if(!this.glyphInfo.length)return{x:0,y:0,width:0,height:0};var t=[];this.glyphInfo.forEach(function(u){t.push(u.p0.x),t.push(u.p0.y),t.push(u.p1.x),t.push(u.p1.y)});for(var r=t[0]||0,n=t[0]||0,i=t[1]||0,o=t[1]||0,s,a,c=0;c<t.length/2;c++)s=t[c*2],a=t[c*2+1],r=Math.min(r,s),n=Math.max(n,s),i=Math.min(i,a),o=Math.max(o,a);var l=this.fontSize();return{x:r-l/2,y:i-l/2,width:n-r+l,height:o-i+l}}destroy(){return my.Util.releaseCanvas(this.dummyCanvas),super.destroy()}}Q4=Nu.TextPath=Gr,Gr.prototype._fillFunc=ek,Gr.prototype._strokeFunc=rk,Gr.prototype._fillFuncHit=ek,Gr.prototype._strokeFuncHit=rk,Gr.prototype.className="TextPath",Gr.prototype._attrsAffectingSize=["text","fontSize","data"],(0,NQ._registerNode)(Gr),Ei.Factory.addGetterSetter(Gr,"data"),Ei.Factory.addGetterSetter(Gr,"fontFamily","Arial"),Ei.Factory.addGetterSetter(Gr,"fontSize",12,(0,Z4.getNumberValidator)()),Ei.Factory.addGetterSetter(Gr,"fontStyle",tk),Ei.Factory.addGetterSetter(Gr,"align","left"),Ei.Factory.addGetterSetter(Gr,"letterSpacing",0,(0,Z4.getNumberValidator)()),Ei.Factory.addGetterSetter(Gr,"textBaseline","middle"),Ei.Factory.addGetterSetter(Gr,"fontVariant",tk),Ei.Factory.addGetterSetter(Gr,"text",AQ),Ei.Factory.addGetterSetter(Gr,"textDecoration",null),Ei.Factory.addGetterSetter(Gr,"kerningFunc",null);const DQ=se({__proto__:null,get TextPath(){return Q4},default:Nu},[Nu]),RQ=ae(DQ);var Du={};Object.defineProperty(Du,"__esModule",{value:!0});var nk=Du.Transformer=void 0;const rr=Sr,Ye=Pe,ik=Or,IQ=Wr,jQ=T4,ok=K1,Ci=Ne,ys=Ae,FQ=Ne;var sk="tr-konva",MQ=["resizeEnabledChange","rotateAnchorOffsetChange","rotateEnabledChange","enabledAnchorsChange","anchorSizeChange","borderEnabledChange","borderStrokeChange","borderStrokeWidthChange","borderDashChange","anchorStrokeChange","anchorStrokeWidthChange","anchorFillChange","anchorCornerRadiusChange","ignoreStrokeChange","anchorStyleFuncChange"].map(e=>e+`.${sk}`).join(" "),ak="nodesRect",LQ=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange"],VQ={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135};const UQ="ontouchstart"in Ci.Konva._global;function zQ(e,t,r){if(e==="rotater")return r;t+=rr.Util.degToRad(VQ[e]||0);var n=(rr.Util.radToDeg(t)%360+360)%360;return rr.Util._inRange(n,337.5,360)||rr.Util._inRange(n,0,22.5)?"ns-resize":rr.Util._inRange(n,22.5,67.5)?"nesw-resize":rr.Util._inRange(n,67.5,112.5)?"ew-resize":rr.Util._inRange(n,112.5,157.5)?"nwse-resize":rr.Util._inRange(n,157.5,202.5)?"ns-resize":rr.Util._inRange(n,202.5,247.5)?"nesw-resize":rr.Util._inRange(n,247.5,292.5)?"ew-resize":rr.Util._inRange(n,292.5,337.5)?"nwse-resize":(rr.Util.error("Transformer has unknown angle for cursor detection: "+n),"pointer")}var zf=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"],lk=1e8;function GQ(e){return{x:e.x+e.width/2*Math.cos(e.rotation)+e.height/2*Math.sin(-e.rotation),y:e.y+e.height/2*Math.cos(e.rotation)+e.width/2*Math.sin(e.rotation)}}function ck(e,t,r){const n=r.x+(e.x-r.x)*Math.cos(t)-(e.y-r.y)*Math.sin(t),i=r.y+(e.x-r.x)*Math.sin(t)+(e.y-r.y)*Math.cos(t);return{...e,rotation:e.rotation+t,x:n,y:i}}function BQ(e,t){const r=GQ(e);return ck(e,t,r)}function HQ(e,t,r){let n=t;for(let i=0;i<e.length;i++){const o=Ci.Konva.getAngle(e[i]),s=Math.abs(o-t)%(Math.PI*2);Math.min(s,Math.PI*2-s)<r&&(n=o)}return n}class ze extends ok.Group{constructor(t){super(t),this._movingAnchorName=null,this._transforming=!1,this._createElements(),this._handleMouseMove=this._handleMouseMove.bind(this),this._handleMouseUp=this._handleMouseUp.bind(this),this.update=this.update.bind(this),this.on(MQ,this.update),this.getNode()&&this.update()}attachTo(t){return this.setNode(t),this}setNode(t){return rr.Util.warn("tr.setNode(shape), tr.node(shape) and tr.attachTo(shape) methods are deprecated. Please use tr.nodes(nodesArray) instead."),this.setNodes([t])}getNode(){return this._nodes&&this._nodes[0]}_getEventNamespace(){return sk+this._id}setNodes(t=[]){this._nodes&&this._nodes.length&&this.detach();const r=t.filter(i=>i.isAncestorOf(this)?(rr.Util.error("Konva.Transformer cannot be an a child of the node you are trying to attach"),!1):!0);this._nodes=t=r,t.length===1&&this.useSingleNodeRotation()?this.rotation(t[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach(i=>{const o=()=>{this.nodes().length===1&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),!this._transforming&&!this.isDragging()&&this.update()},s=i._attrsAffectingSize.map(a=>a+"Change."+this._getEventNamespace()).join(" ");i.on(s,o),i.on(LQ.map(a=>a+`.${this._getEventNamespace()}`).join(" "),o),i.on(`absoluteTransformChange.${this._getEventNamespace()}`,o),this._proxyDrag(i)}),this._resetTransformCache();var n=!!this.findOne(".top-left");return n&&this.update(),this}_proxyDrag(t){let r;t.on(`dragstart.${this._getEventNamespace()}`,n=>{r=t.getAbsolutePosition(),!this.isDragging()&&t!==this.findOne(".back")&&this.startDrag(n,!1)}),t.on(`dragmove.${this._getEventNamespace()}`,n=>{if(!r)return;const i=t.getAbsolutePosition(),o=i.x-r.x,s=i.y-r.y;this.nodes().forEach(a=>{if(a===t||a.isDragging())return;const c=a.getAbsolutePosition();a.setAbsolutePosition({x:c.x+o,y:c.y+s}),a.startDrag(n)}),r=null})}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach(t=>{t.off("."+this._getEventNamespace())}),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(ak),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(ak,this.__getNodeRect)}__getNodeShape(t,r=this.rotation(),n){var i=t.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),o=t.getAbsoluteScale(n),s=t.getAbsolutePosition(n),a=i.x*o.x-t.offsetX()*o.x,c=i.y*o.y-t.offsetY()*o.y;const l=(Ci.Konva.getAngle(t.getAbsoluteRotation())+Math.PI*2)%(Math.PI*2),u={x:s.x+a*Math.cos(l)+c*Math.sin(-l),y:s.y+c*Math.cos(l)+a*Math.sin(l),width:i.width*o.x,height:i.height*o.y,rotation:l};return ck(u,-Ci.Konva.getAngle(r),{x:0,y:0})}__getNodeRect(){var t=this.getNode();if(!t)return{x:-lk,y:-lk,width:0,height:0,rotation:0};const r=[];this.nodes().map(l=>{const u=l.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()});var h=[{x:u.x,y:u.y},{x:u.x+u.width,y:u.y},{x:u.x+u.width,y:u.y+u.height},{x:u.x,y:u.y+u.height}],f=l.getAbsoluteTransform();h.forEach(function(d){var p=f.point(d);r.push(p)})});const n=new rr.Transform;n.rotate(-Ci.Konva.getAngle(this.rotation()));var i=1/0,o=1/0,s=-1/0,a=-1/0;r.forEach(function(l){var u=n.point(l);i===void 0&&(i=s=u.x,o=a=u.y),i=Math.min(i,u.x),o=Math.min(o,u.y),s=Math.max(s,u.x),a=Math.max(a,u.y)}),n.invert();const c=n.point({x:i,y:o});return{x:c.x,y:c.y,width:s-i,height:a-o,rotation:Ci.Konva.getAngle(this.rotation())}}getX(){return this._getNodeRect().x}getY(){return this._getNodeRect().y}getWidth(){return this._getNodeRect().width}getHeight(){return this._getNodeRect().height}_createElements(){this._createBack(),zf.forEach(t=>{this._createAnchor(t)}),this._createAnchor("rotater")}_createAnchor(t){var r=new jQ.Rect({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:t+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:UQ?10:"auto"}),n=this;r.on("mousedown touchstart",function(i){n._handleMouseDown(i)}),r.on("dragstart",i=>{r.stopDrag(),i.cancelBubble=!0}),r.on("dragend",i=>{i.cancelBubble=!0}),r.on("mouseenter",()=>{var i=Ci.Konva.getAngle(this.rotation()),o=this.rotateAnchorCursor(),s=zQ(t,i,o);r.getStage().content&&(r.getStage().content.style.cursor=s),this._cursorChange=!0}),r.on("mouseout",()=>{r.getStage().content&&(r.getStage().content.style.cursor=""),this._cursorChange=!1}),this.add(r)}_createBack(){var t=new IQ.Shape({name:"back",width:0,height:0,draggable:!0,sceneFunc(r,n){var i=n.getParent(),o=i.padding();r.beginPath(),r.rect(-o,-o,n.width()+o*2,n.height()+o*2),r.moveTo(n.width()/2,-o),i.rotateEnabled()&&r.lineTo(n.width()/2,-i.rotateAnchorOffset()*rr.Util._sign(n.height())-o),r.fillStrokeShape(n)},hitFunc:(r,n)=>{if(this.shouldOverdrawWholeArea()){var i=this.padding();r.beginPath(),r.rect(-i,-i,n.width()+i*2,n.height()+i*2),r.fillStrokeShape(n)}}});this.add(t),this._proxyDrag(t),t.on("dragstart",r=>{r.cancelBubble=!0}),t.on("dragmove",r=>{r.cancelBubble=!0}),t.on("dragend",r=>{r.cancelBubble=!0}),this.on("dragmove",r=>{this.update()})}_handleMouseDown(t){this._movingAnchorName=t.target.name().split(" ")[0];var r=this._getNodeRect(),n=r.width,i=r.height,o=Math.sqrt(Math.pow(n,2)+Math.pow(i,2));this.sin=Math.abs(i/o),this.cos=Math.abs(n/o),typeof window<"u"&&(window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0)),this._transforming=!0;var s=t.target.getAbsolutePosition(),a=t.target.getStage().getPointerPosition();this._anchorDragOffset={x:a.x-s.x,y:a.y-s.y},this._fire("transformstart",{evt:t.evt,target:this.getNode()}),this._nodes.forEach(c=>{c._fire("transformstart",{evt:t.evt,target:c})})}_handleMouseMove(t){var r,n,i,o=this.findOne("."+this._movingAnchorName),s=o.getStage();s.setPointersPositions(t);const a=s.getPointerPosition();let c={x:a.x-this._anchorDragOffset.x,y:a.y-this._anchorDragOffset.y};const l=o.getAbsolutePosition();this.anchorDragBoundFunc()&&(c=this.anchorDragBoundFunc()(l,c,t)),o.setAbsolutePosition(c);const u=o.getAbsolutePosition();if(!(l.x===u.x&&l.y===u.y)){if(this._movingAnchorName==="rotater"){var h=this._getNodeRect();r=o.x()-h.width/2,n=-o.y()+h.height/2;let it=Math.atan2(-n,r)+Math.PI/2;h.height<0&&(it-=Math.PI);var f=Ci.Konva.getAngle(this.rotation());const nt=f+it,ft=Ci.Konva.getAngle(this.rotationSnapTolerance()),xt=HQ(this.rotationSnaps(),nt,ft)-h.rotation,_t=BQ(h,xt);this._fitNodesInto(_t,t);return}var d=this.shiftBehavior(),p;d==="inverted"?p=this.keepRatio()&&!t.shiftKey:d==="none"?p=this.keepRatio():p=this.keepRatio()||t.shiftKey;var m=this.centeredScaling()||t.altKey;if(this._movingAnchorName==="top-left"){if(p){var g=m?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),y:this.findOne(".bottom-right").y()};i=Math.sqrt(Math.pow(g.x-o.x(),2)+Math.pow(g.y-o.y(),2));var v=this.findOne(".top-left").x()>g.x?-1:1,b=this.findOne(".top-left").y()>g.y?-1:1;r=i*this.cos*v,n=i*this.sin*b,this.findOne(".top-left").x(g.x-r),this.findOne(".top-left").y(g.y-n)}}else if(this._movingAnchorName==="top-center")this.findOne(".top-left").y(o.y());else if(this._movingAnchorName==="top-right"){if(p){var g=m?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};i=Math.sqrt(Math.pow(o.x()-g.x,2)+Math.pow(g.y-o.y(),2));var v=this.findOne(".top-right").x()<g.x?-1:1,b=this.findOne(".top-right").y()>g.y?-1:1;r=i*this.cos*v,n=i*this.sin*b,this.findOne(".top-right").x(g.x+r),this.findOne(".top-right").y(g.y-n)}var y=o.position();this.findOne(".top-left").y(y.y),this.findOne(".bottom-right").x(y.x)}else if(this._movingAnchorName==="middle-left")this.findOne(".top-left").x(o.x());else if(this._movingAnchorName==="middle-right")this.findOne(".bottom-right").x(o.x());else if(this._movingAnchorName==="bottom-left"){if(p){var g=m?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};i=Math.sqrt(Math.pow(g.x-o.x(),2)+Math.pow(o.y()-g.y,2));var v=g.x<o.x()?-1:1,b=o.y()<g.y?-1:1;r=i*this.cos*v,n=i*this.sin*b,o.x(g.x-r),o.y(g.y+n)}y=o.position(),this.findOne(".top-left").x(y.x),this.findOne(".bottom-right").y(y.y)}else if(this._movingAnchorName==="bottom-center")this.findOne(".bottom-right").y(o.y());else if(this._movingAnchorName==="bottom-right"){if(p){var g=m?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-left").x(),y:this.findOne(".top-left").y()};i=Math.sqrt(Math.pow(o.x()-g.x,2)+Math.pow(o.y()-g.y,2));var v=this.findOne(".bottom-right").x()<g.x?-1:1,b=this.findOne(".bottom-right").y()<g.y?-1:1;r=i*this.cos*v,n=i*this.sin*b,this.findOne(".bottom-right").x(g.x+r),this.findOne(".bottom-right").y(g.y+n)}}else console.error(new Error("Wrong position argument of selection resizer: "+this._movingAnchorName));var m=this.centeredScaling()||t.altKey;if(m){var x=this.findOne(".top-left"),A=this.findOne(".bottom-right"),E=x.x(),k=x.y(),D=this.getWidth()-A.x(),V=this.getHeight()-A.y();A.move({x:-E,y:-k}),x.move({x:D,y:V})}var U=this.findOne(".top-left").getAbsolutePosition();r=U.x,n=U.y;var K=this.findOne(".bottom-right").x()-this.findOne(".top-left").x(),Y=this.findOne(".bottom-right").y()-this.findOne(".top-left").y();this._fitNodesInto({x:r,y:n,width:K,height:Y,rotation:Ci.Konva.getAngle(this.rotation())},t)}}_handleMouseUp(t){this._removeEvents(t)}getAbsoluteTransform(){return this.getTransform()}_removeEvents(t){if(this._transforming){this._transforming=!1,typeof window<"u"&&(window.removeEventListener("mousemove",this._handleMouseMove),window.removeEventListener("touchmove",this._handleMouseMove),window.removeEventListener("mouseup",this._handleMouseUp,!0),window.removeEventListener("touchend",this._handleMouseUp,!0));var r=this.getNode();this._fire("transformend",{evt:t,target:r}),r&&this._nodes.forEach(n=>{n._fire("transformend",{evt:t,target:n})}),this._movingAnchorName=null}}_fitNodesInto(t,r){var n=this._getNodeRect();const i=1;if(rr.Util._inRange(t.width,-this.padding()*2-i,i)){this.update();return}if(rr.Util._inRange(t.height,-this.padding()*2-i,i)){this.update();return}const o=this.flipEnabled();var s=new rr.Transform;if(s.rotate(Ci.Konva.getAngle(this.rotation())),this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("left")>=0){const h=s.point({x:-this.padding()*2,y:0});if(t.x+=h.x,t.y+=h.y,t.width+=this.padding()*2,this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=h.x,this._anchorDragOffset.y-=h.y,!o){this.update();return}}else if(this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("right")>=0){const h=s.point({x:this.padding()*2,y:0});if(this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=h.x,this._anchorDragOffset.y-=h.y,t.width+=this.padding()*2,!o){this.update();return}}if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("top")>=0){const h=s.point({x:0,y:-this.padding()*2});if(t.x+=h.x,t.y+=h.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=h.x,this._anchorDragOffset.y-=h.y,t.height+=this.padding()*2,!o){this.update();return}}else if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("bottom")>=0){const h=s.point({x:0,y:this.padding()*2});if(this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=h.x,this._anchorDragOffset.y-=h.y,t.height+=this.padding()*2,!o){this.update();return}}if(this.boundBoxFunc()){const h=this.boundBoxFunc()(n,t);h?t=h:rr.Util.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}const a=1e7,c=new rr.Transform;c.translate(n.x,n.y),c.rotate(n.rotation),c.scale(n.width/a,n.height/a);const l=new rr.Transform;l.translate(t.x,t.y),l.rotate(t.rotation),l.scale(t.width/a,t.height/a);const u=l.multiply(c.invert());this._nodes.forEach(h=>{var f;const d=h.getParent().getAbsoluteTransform(),p=h.getTransform().copy();p.translate(h.offsetX(),h.offsetY());const g=new rr.Transform;g.multiply(d.copy().invert()).multiply(u).multiply(d).multiply(p);const v=g.decompose();h.setAttrs(v),this._fire("transform",{evt:r,target:h}),h._fire("transform",{evt:r,target:h}),(f=h.getLayer())===null||f===void 0||f.batchDraw()}),this.rotation(rr.Util._getRotation(t.rotation)),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(t,r){this.findOne(t).setAttrs(r)}update(){var t,r=this._getNodeRect();this.rotation(rr.Util._getRotation(r.rotation));var n=r.width,i=r.height,o=this.enabledAnchors(),s=this.resizeEnabled(),a=this.padding(),c=this.anchorSize();const l=this.find("._anchor");l.forEach(h=>{h.setAttrs({width:c,height:c,offsetX:c/2,offsetY:c/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})}),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:c/2+a,offsetY:c/2+a,visible:s&&o.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:n/2,y:0,offsetY:c/2+a,visible:s&&o.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:n,y:0,offsetX:c/2-a,offsetY:c/2+a,visible:s&&o.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:i/2,offsetX:c/2+a,visible:s&&o.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:n,y:i/2,offsetX:c/2-a,visible:s&&o.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:i,offsetX:c/2+a,offsetY:c/2-a,visible:s&&o.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:n/2,y:i,offsetY:c/2-a,visible:s&&o.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:n,y:i,offsetX:c/2-a,offsetY:c/2-a,visible:s&&o.indexOf("bottom-right")>=0}),this._batchChangeChild(".rotater",{x:n/2,y:-this.rotateAnchorOffset()*rr.Util._sign(i)-a,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:n,height:i,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),x:0,y:0});const u=this.anchorStyleFunc();u&&l.forEach(h=>{u(h)}),(t=this.getLayer())===null||t===void 0||t.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();var t=this.findOne("."+this._movingAnchorName);t&&t.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=""),ok.Group.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return ik.Node.prototype.toObject.call(this)}clone(t){var r=ik.Node.prototype.clone.call(this,t);return r}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}}nk=Du.Transformer=ze;function qQ(e){return e instanceof Array||rr.Util.warn("enabledAnchors value should be an array"),e instanceof Array&&e.forEach(function(t){zf.indexOf(t)===-1&&rr.Util.warn("Unknown anchor name: "+t+". Available names are: "+zf.join(", "))}),e||[]}ze.prototype.className="Transformer",(0,FQ._registerNode)(ze),Ye.Factory.addGetterSetter(ze,"enabledAnchors",zf,qQ),Ye.Factory.addGetterSetter(ze,"flipEnabled",!0,(0,ys.getBooleanValidator)()),Ye.Factory.addGetterSetter(ze,"resizeEnabled",!0),Ye.Factory.addGetterSetter(ze,"anchorSize",10,(0,ys.getNumberValidator)()),Ye.Factory.addGetterSetter(ze,"rotateEnabled",!0),Ye.Factory.addGetterSetter(ze,"rotationSnaps",[]),Ye.Factory.addGetterSetter(ze,"rotateAnchorOffset",50,(0,ys.getNumberValidator)()),Ye.Factory.addGetterSetter(ze,"rotateAnchorCursor","crosshair"),Ye.Factory.addGetterSetter(ze,"rotationSnapTolerance",5,(0,ys.getNumberValidator)()),Ye.Factory.addGetterSetter(ze,"borderEnabled",!0),Ye.Factory.addGetterSetter(ze,"anchorStroke","rgb(0, 161, 255)"),Ye.Factory.addGetterSetter(ze,"anchorStrokeWidth",1,(0,ys.getNumberValidator)()),Ye.Factory.addGetterSetter(ze,"anchorFill","white"),Ye.Factory.addGetterSetter(ze,"anchorCornerRadius",0,(0,ys.getNumberValidator)()),Ye.Factory.addGetterSetter(ze,"borderStroke","rgb(0, 161, 255)"),Ye.Factory.addGetterSetter(ze,"borderStrokeWidth",1,(0,ys.getNumberValidator)()),Ye.Factory.addGetterSetter(ze,"borderDash"),Ye.Factory.addGetterSetter(ze,"keepRatio",!0),Ye.Factory.addGetterSetter(ze,"shiftBehavior","default"),Ye.Factory.addGetterSetter(ze,"centeredScaling",!1),Ye.Factory.addGetterSetter(ze,"ignoreStroke",!1),Ye.Factory.addGetterSetter(ze,"padding",0,(0,ys.getNumberValidator)()),Ye.Factory.addGetterSetter(ze,"node"),Ye.Factory.addGetterSetter(ze,"nodes"),Ye.Factory.addGetterSetter(ze,"boundBoxFunc"),Ye.Factory.addGetterSetter(ze,"anchorDragBoundFunc"),Ye.Factory.addGetterSetter(ze,"anchorStyleFunc"),Ye.Factory.addGetterSetter(ze,"shouldOverdrawWholeArea",!1),Ye.Factory.addGetterSetter(ze,"useSingleNodeRotation",!0),Ye.Factory.backCompat(ze,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"});const KQ=se({__proto__:null,get Transformer(){return nk},default:Du},[Du]),YQ=ae(KQ);var Ru={};Object.defineProperty(Ru,"__esModule",{value:!0});var uk=Ru.Wedge=void 0;const Gf=Pe,XQ=Wr,JQ=Ne,hk=Ae,WQ=Ne;class jo extends XQ.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.radius(),0,JQ.Konva.getAngle(this.angle()),this.clockwise()),t.lineTo(0,0),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius(t/2)}setHeight(t){this.radius(t/2)}}uk=Ru.Wedge=jo,jo.prototype.className="Wedge",jo.prototype._centroid=!0,jo.prototype._attrsAffectingSize=["radius"],(0,WQ._registerNode)(jo),Gf.Factory.addGetterSetter(jo,"radius",0,(0,hk.getNumberValidator)()),Gf.Factory.addGetterSetter(jo,"angle",0,(0,hk.getNumberValidator)()),Gf.Factory.addGetterSetter(jo,"clockwise",!1),Gf.Factory.backCompat(jo,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"});const QQ=se({__proto__:null,get Wedge(){return uk},default:Ru},[Ru]),ZQ=ae(QQ);var Iu={};Object.defineProperty(Iu,"__esModule",{value:!0});var dk=Iu.Blur=void 0;const fk=Pe,tZ=Or,eZ=Ae;function pk(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}var rZ=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],nZ=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function iZ(e,t){var r=e.data,n=e.width,i=e.height,o,s,a,c,l,u,h,f,d,p,g,v,b,y,m,x,A,E,k,D,V,U,K,Y,it=t+t+1,nt=n-1,ft=i-1,xt=t+1,_t=xt*(xt+1)/2,yt=new pk,at=null,X=yt,O=null,C=null,$=rZ[t],_=nZ[t];for(a=1;a<it;a++)X=X.next=new pk,a===xt&&(at=X);for(X.next=yt,h=u=0,s=0;s<i;s++){for(x=A=E=k=f=d=p=g=0,v=xt*(D=r[u]),b=xt*(V=r[u+1]),y=xt*(U=r[u+2]),m=xt*(K=r[u+3]),f+=_t*D,d+=_t*V,p+=_t*U,g+=_t*K,X=yt,a=0;a<xt;a++)X.r=D,X.g=V,X.b=U,X.a=K,X=X.next;for(a=1;a<xt;a++)c=u+((nt<a?nt:a)<<2),f+=(X.r=D=r[c])*(Y=xt-a),d+=(X.g=V=r[c+1])*Y,p+=(X.b=U=r[c+2])*Y,g+=(X.a=K=r[c+3])*Y,x+=D,A+=V,E+=U,k+=K,X=X.next;for(O=yt,C=at,o=0;o<n;o++)r[u+3]=K=g*$>>_,K!==0?(K=255/K,r[u]=(f*$>>_)*K,r[u+1]=(d*$>>_)*K,r[u+2]=(p*$>>_)*K):r[u]=r[u+1]=r[u+2]=0,f-=v,d-=b,p-=y,g-=m,v-=O.r,b-=O.g,y-=O.b,m-=O.a,c=h+((c=o+t+1)<nt?c:nt)<<2,x+=O.r=r[c],A+=O.g=r[c+1],E+=O.b=r[c+2],k+=O.a=r[c+3],f+=x,d+=A,p+=E,g+=k,O=O.next,v+=D=C.r,b+=V=C.g,y+=U=C.b,m+=K=C.a,x-=D,A-=V,E-=U,k-=K,C=C.next,u+=4;h+=n}for(o=0;o<n;o++){for(A=E=k=x=d=p=g=f=0,u=o<<2,v=xt*(D=r[u]),b=xt*(V=r[u+1]),y=xt*(U=r[u+2]),m=xt*(K=r[u+3]),f+=_t*D,d+=_t*V,p+=_t*U,g+=_t*K,X=yt,a=0;a<xt;a++)X.r=D,X.g=V,X.b=U,X.a=K,X=X.next;for(l=n,a=1;a<=t;a++)u=l+o<<2,f+=(X.r=D=r[u])*(Y=xt-a),d+=(X.g=V=r[u+1])*Y,p+=(X.b=U=r[u+2])*Y,g+=(X.a=K=r[u+3])*Y,x+=D,A+=V,E+=U,k+=K,X=X.next,a<ft&&(l+=n);for(u=o,O=yt,C=at,s=0;s<i;s++)c=u<<2,r[c+3]=K=g*$>>_,K>0?(K=255/K,r[c]=(f*$>>_)*K,r[c+1]=(d*$>>_)*K,r[c+2]=(p*$>>_)*K):r[c]=r[c+1]=r[c+2]=0,f-=v,d-=b,p-=y,g-=m,v-=O.r,b-=O.g,y-=O.b,m-=O.a,c=o+((c=s+xt)<ft?c:ft)*n<<2,f+=x+=O.r=r[c],d+=A+=O.g=r[c+1],p+=E+=O.b=r[c+2],g+=k+=O.a=r[c+3],O=O.next,v+=D=C.r,b+=V=C.g,y+=U=C.b,m+=K=C.a,x-=D,A-=V,E-=U,k-=K,C=C.next,u+=n}}const oZ=function(e){var t=Math.round(this.blurRadius());t>0&&iZ(e,t)};dk=Iu.Blur=oZ,fk.Factory.addGetterSetter(tZ.Node,"blurRadius",0,(0,eZ.getNumberValidator)(),fk.Factory.afterSetFilter);const sZ=se({__proto__:null,get Blur(){return dk},default:Iu},[Iu]),aZ=ae(sZ);var ju={};Object.defineProperty(ju,"__esModule",{value:!0});var mk=ju.Brighten=void 0;const gk=Pe,lZ=Or,cZ=Ae,uZ=function(e){var t=this.brightness()*255,r=e.data,n=r.length,i;for(i=0;i<n;i+=4)r[i]+=t,r[i+1]+=t,r[i+2]+=t};mk=ju.Brighten=uZ,gk.Factory.addGetterSetter(lZ.Node,"brightness",0,(0,cZ.getNumberValidator)(),gk.Factory.afterSetFilter);const hZ=se({__proto__:null,get Brighten(){return mk},default:ju},[ju]),dZ=ae(hZ);var Fu={};Object.defineProperty(Fu,"__esModule",{value:!0});var vk=Fu.Contrast=void 0;const yk=Pe,fZ=Or,pZ=Ae,mZ=function(e){var t=Math.pow((this.contrast()+100)/100,2),r=e.data,n=r.length,i=150,o=150,s=150,a;for(a=0;a<n;a+=4)i=r[a],o=r[a+1],s=r[a+2],i/=255,i-=.5,i*=t,i+=.5,i*=255,o/=255,o-=.5,o*=t,o+=.5,o*=255,s/=255,s-=.5,s*=t,s+=.5,s*=255,i=i<0?0:i>255?255:i,o=o<0?0:o>255?255:o,s=s<0?0:s>255?255:s,r[a]=i,r[a+1]=o,r[a+2]=s};vk=Fu.Contrast=mZ,yk.Factory.addGetterSetter(fZ.Node,"contrast",0,(0,pZ.getNumberValidator)(),yk.Factory.afterSetFilter);const gZ=se({__proto__:null,get Contrast(){return vk},default:Fu},[Fu]),vZ=ae(gZ);var Mu={};Object.defineProperty(Mu,"__esModule",{value:!0});var _k=Mu.Emboss=void 0;const _s=Pe,Bf=Or,yZ=Sr,bk=Ae,_Z=function(e){var t=this.embossStrength()*10,r=this.embossWhiteLevel()*255,n=this.embossDirection(),i=this.embossBlend(),o=0,s=0,a=e.data,c=e.width,l=e.height,u=c*4,h=l;switch(n){case"top-left":o=-1,s=-1;break;case"top":o=-1,s=0;break;case"top-right":o=-1,s=1;break;case"right":o=0,s=1;break;case"bottom-right":o=1,s=1;break;case"bottom":o=1,s=0;break;case"bottom-left":o=1,s=-1;break;case"left":o=0,s=-1;break;default:yZ.Util.error("Unknown emboss direction: "+n)}do{var f=(h-1)*u,d=o;h+d<1&&(d=0),h+d>l&&(d=0);var p=(h-1+d)*c*4,g=c;do{var v=f+(g-1)*4,b=s;g+b<1&&(b=0),g+b>c&&(b=0);var y=p+(g-1+b)*4,m=a[v]-a[y],x=a[v+1]-a[y+1],A=a[v+2]-a[y+2],E=m,k=E>0?E:-E,D=x>0?x:-x,V=A>0?A:-A;if(D>k&&(E=x),V>k&&(E=A),E*=t,i){var U=a[v]+E,K=a[v+1]+E,Y=a[v+2]+E;a[v]=U>255?255:U<0?0:U,a[v+1]=K>255?255:K<0?0:K,a[v+2]=Y>255?255:Y<0?0:Y}else{var it=r-E;it<0?it=0:it>255&&(it=255),a[v]=a[v+1]=a[v+2]=it}}while(--g)}while(--h)};_k=Mu.Emboss=_Z,_s.Factory.addGetterSetter(Bf.Node,"embossStrength",.5,(0,bk.getNumberValidator)(),_s.Factory.afterSetFilter),_s.Factory.addGetterSetter(Bf.Node,"embossWhiteLevel",.5,(0,bk.getNumberValidator)(),_s.Factory.afterSetFilter),_s.Factory.addGetterSetter(Bf.Node,"embossDirection","top-left",null,_s.Factory.afterSetFilter),_s.Factory.addGetterSetter(Bf.Node,"embossBlend",!1,null,_s.Factory.afterSetFilter);const bZ=se({__proto__:null,get Emboss(){return _k},default:Mu},[Mu]),wZ=ae(bZ);var Lu={};Object.defineProperty(Lu,"__esModule",{value:!0});var wk=Lu.Enhance=void 0;const xk=Pe,xZ=Or,SZ=Ae;function vy(e,t,r,n,i){var o=r-t,s=i-n,a;return o===0?n+s/2:s===0?n:(a=(e-t)/o,a=s*a+n,a)}const $Z=function(e){var t=e.data,r=t.length,n=t[0],i=n,o,s=t[1],a=s,c,l=t[2],u=l,h,f,d=this.enhance();if(d!==0){for(f=0;f<r;f+=4)o=t[f+0],o<n?n=o:o>i&&(i=o),c=t[f+1],c<s?s=c:c>a&&(a=c),h=t[f+2],h<l?l=h:h>u&&(u=h);i===n&&(i=255,n=0),a===s&&(a=255,s=0),u===l&&(u=255,l=0);var p,g,v,b,y,m,x,A,E;for(d>0?(g=i+d*(255-i),v=n-d*(n-0),y=a+d*(255-a),m=s-d*(s-0),A=u+d*(255-u),E=l-d*(l-0)):(p=(i+n)*.5,g=i+d*(i-p),v=n+d*(n-p),b=(a+s)*.5,y=a+d*(a-b),m=s+d*(s-b),x=(u+l)*.5,A=u+d*(u-x),E=l+d*(l-x)),f=0;f<r;f+=4)t[f+0]=vy(t[f+0],n,i,v,g),t[f+1]=vy(t[f+1],s,a,m,y),t[f+2]=vy(t[f+2],l,u,E,A)}};wk=Lu.Enhance=$Z,xk.Factory.addGetterSetter(xZ.Node,"enhance",0,(0,SZ.getNumberValidator)(),xk.Factory.afterSetFilter);const EZ=se({__proto__:null,get Enhance(){return wk},default:Lu},[Lu]),CZ=ae(EZ);var Vu={};Object.defineProperty(Vu,"__esModule",{value:!0});var Sk=Vu.Grayscale=void 0;const kZ=function(e){var t=e.data,r=t.length,n,i;for(n=0;n<r;n+=4)i=.34*t[n]+.5*t[n+1]+.16*t[n+2],t[n]=i,t[n+1]=i,t[n+2]=i};Sk=Vu.Grayscale=kZ;const PZ=se({__proto__:null,get Grayscale(){return Sk},default:Vu},[Vu]),TZ=ae(PZ);var Uu={};Object.defineProperty(Uu,"__esModule",{value:!0});var $k=Uu.HSL=void 0;const vl=Pe,yy=Or,_y=Ae;vl.Factory.addGetterSetter(yy.Node,"hue",0,(0,_y.getNumberValidator)(),vl.Factory.afterSetFilter),vl.Factory.addGetterSetter(yy.Node,"saturation",0,(0,_y.getNumberValidator)(),vl.Factory.afterSetFilter),vl.Factory.addGetterSetter(yy.Node,"luminance",0,(0,_y.getNumberValidator)(),vl.Factory.afterSetFilter);const OZ=function(e){var t=e.data,r=t.length,n=1,i=Math.pow(2,this.saturation()),o=Math.abs(this.hue()+360)%360,s=this.luminance()*127,a,c=n*i*Math.cos(o*Math.PI/180),l=n*i*Math.sin(o*Math.PI/180),u=.299*n+.701*c+.167*l,h=.587*n-.587*c+.33*l,f=.114*n-.114*c-.497*l,d=.299*n-.299*c-.328*l,p=.587*n+.413*c+.035*l,g=.114*n-.114*c+.293*l,v=.299*n-.3*c+1.25*l,b=.587*n-.586*c-1.05*l,y=.114*n+.886*c-.2*l,m,x,A,E;for(a=0;a<r;a+=4)m=t[a+0],x=t[a+1],A=t[a+2],E=t[a+3],t[a+0]=u*m+h*x+f*A+s,t[a+1]=d*m+p*x+g*A+s,t[a+2]=v*m+b*x+y*A+s,t[a+3]=E};$k=Uu.HSL=OZ;const NZ=se({__proto__:null,get HSL(){return $k},default:Uu},[Uu]),AZ=ae(NZ);var zu={};Object.defineProperty(zu,"__esModule",{value:!0});var Ek=zu.HSV=void 0;const yl=Pe,by=Or,wy=Ae,DZ=function(e){var t=e.data,r=t.length,n=Math.pow(2,this.value()),i=Math.pow(2,this.saturation()),o=Math.abs(this.hue()+360)%360,s,a=n*i*Math.cos(o*Math.PI/180),c=n*i*Math.sin(o*Math.PI/180),l=.299*n+.701*a+.167*c,u=.587*n-.587*a+.33*c,h=.114*n-.114*a-.497*c,f=.299*n-.299*a-.328*c,d=.587*n+.413*a+.035*c,p=.114*n-.114*a+.293*c,g=.299*n-.3*a+1.25*c,v=.587*n-.586*a-1.05*c,b=.114*n+.886*a-.2*c,y,m,x,A;for(s=0;s<r;s+=4)y=t[s+0],m=t[s+1],x=t[s+2],A=t[s+3],t[s+0]=l*y+u*m+h*x,t[s+1]=f*y+d*m+p*x,t[s+2]=g*y+v*m+b*x,t[s+3]=A};Ek=zu.HSV=DZ,yl.Factory.addGetterSetter(by.Node,"hue",0,(0,wy.getNumberValidator)(),yl.Factory.afterSetFilter),yl.Factory.addGetterSetter(by.Node,"saturation",0,(0,wy.getNumberValidator)(),yl.Factory.afterSetFilter),yl.Factory.addGetterSetter(by.Node,"value",0,(0,wy.getNumberValidator)(),yl.Factory.afterSetFilter);const RZ=se({__proto__:null,get HSV(){return Ek},default:zu},[zu]),IZ=ae(RZ);var Gu={};Object.defineProperty(Gu,"__esModule",{value:!0});var Ck=Gu.Invert=void 0;const jZ=function(e){var t=e.data,r=t.length,n;for(n=0;n<r;n+=4)t[n]=255-t[n],t[n+1]=255-t[n+1],t[n+2]=255-t[n+2]};Ck=Gu.Invert=jZ;const FZ=se({__proto__:null,get Invert(){return Ck},default:Gu},[Gu]),MZ=ae(FZ);var Bu={};Object.defineProperty(Bu,"__esModule",{value:!0});var kk=Bu.Kaleidoscope=void 0;const Hf=Pe,Pk=Or,Tk=Sr,Ok=Ae;var LZ=function(e,t,r){var n=e.data,i=t.data,o=e.width,s=e.height,a=r.polarCenterX||o/2,c=r.polarCenterY||s/2,l,u,h,f=0,d=0,p=0,g=0,v,b=Math.sqrt(a*a+c*c);u=o-a,h=s-c,v=Math.sqrt(u*u+h*h),b=v>b?v:b;var y=s,m=o,x,A,E=360/m*Math.PI/180,k,D;for(A=0;A<m;A+=1)for(k=Math.sin(A*E),D=Math.cos(A*E),x=0;x<y;x+=1)u=Math.floor(a+b*x/y*D),h=Math.floor(c+b*x/y*k),l=(h*o+u)*4,f=n[l+0],d=n[l+1],p=n[l+2],g=n[l+3],l=(A+x*o)*4,i[l+0]=f,i[l+1]=d,i[l+2]=p,i[l+3]=g},VZ=function(e,t,r){var n=e.data,i=t.data,o=e.width,s=e.height,a=r.polarCenterX||o/2,c=r.polarCenterY||s/2,l,u,h,f,d,p=0,g=0,v=0,b=0,y,m=Math.sqrt(a*a+c*c);u=o-a,h=s-c,y=Math.sqrt(u*u+h*h),m=y>m?y:m;var x=s,A=o,E,k,D=r.polarRotation||0,V,U;for(u=0;u<o;u+=1)for(h=0;h<s;h+=1)f=u-a,d=h-c,E=Math.sqrt(f*f+d*d)*x/m,k=(Math.atan2(d,f)*180/Math.PI+360+D)%360,k=k*A/360,V=Math.floor(k),U=Math.floor(E),l=(U*o+V)*4,p=n[l+0],g=n[l+1],v=n[l+2],b=n[l+3],l=(h*o+u)*4,i[l+0]=p,i[l+1]=g,i[l+2]=v,i[l+3]=b};const UZ=function(e){var t=e.width,r=e.height,n,i,o,s,a,c,l,u,h,f,d=Math.round(this.kaleidoscopePower()),p=Math.round(this.kaleidoscopeAngle()),g=Math.floor(t*(p%360)/360);if(!(d<1)){var v=Tk.Util.createCanvasElement();v.width=t,v.height=r;var b=v.getContext("2d").getImageData(0,0,t,r);Tk.Util.releaseCanvas(v),LZ(e,b,{polarCenterX:t/2,polarCenterY:r/2});for(var y=t/Math.pow(2,d);y<=8;)y=y*2,d-=1;y=Math.ceil(y);var m=y,x=0,A=m,E=1;for(g+y>t&&(x=m,A=0,E=-1),i=0;i<r;i+=1)for(n=x;n!==A;n+=E)o=Math.round(n+g)%t,h=(t*i+o)*4,a=b.data[h+0],c=b.data[h+1],l=b.data[h+2],u=b.data[h+3],f=(t*i+n)*4,b.data[f+0]=a,b.data[f+1]=c,b.data[f+2]=l,b.data[f+3]=u;for(i=0;i<r;i+=1)for(m=Math.floor(y),s=0;s<d;s+=1){for(n=0;n<m+1;n+=1)h=(t*i+n)*4,a=b.data[h+0],c=b.data[h+1],l=b.data[h+2],u=b.data[h+3],f=(t*i+m*2-n-1)*4,b.data[f+0]=a,b.data[f+1]=c,b.data[f+2]=l,b.data[f+3]=u;m*=2}VZ(b,e,{polarRotation:0})}};kk=Bu.Kaleidoscope=UZ,Hf.Factory.addGetterSetter(Pk.Node,"kaleidoscopePower",2,(0,Ok.getNumberValidator)(),Hf.Factory.afterSetFilter),Hf.Factory.addGetterSetter(Pk.Node,"kaleidoscopeAngle",0,(0,Ok.getNumberValidator)(),Hf.Factory.afterSetFilter);const zZ=se({__proto__:null,get Kaleidoscope(){return kk},default:Bu},[Bu]),GZ=ae(zZ);var Hu={};Object.defineProperty(Hu,"__esModule",{value:!0});var Nk=Hu.Mask=void 0;const Ak=Pe,BZ=Or,HZ=Ae;function qf(e,t,r){var n=(r*e.width+t)*4,i=[];return i.push(e.data[n++],e.data[n++],e.data[n++],e.data[n++]),i}function qu(e,t){return Math.sqrt(Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2))}function qZ(e){for(var t=[0,0,0],r=0;r<e.length;r++)t[0]+=e[r][0],t[1]+=e[r][1],t[2]+=e[r][2];return t[0]/=e.length,t[1]/=e.length,t[2]/=e.length,t}function KZ(e,t){var r=qf(e,0,0),n=qf(e,e.width-1,0),i=qf(e,0,e.height-1),o=qf(e,e.width-1,e.height-1),s=t||10;if(qu(r,n)<s&&qu(n,o)<s&&qu(o,i)<s&&qu(i,r)<s){for(var a=qZ([n,r,o,i]),c=[],l=0;l<e.width*e.height;l++){var u=qu(a,[e.data[l*4],e.data[l*4+1],e.data[l*4+2]]);c[l]=u<s?0:255}return c}}function YZ(e,t){for(var r=0;r<e.width*e.height;r++)e.data[4*r+3]=t[r]}function XZ(e,t,r){for(var n=[1,1,1,1,0,1,1,1,1],i=Math.round(Math.sqrt(n.length)),o=Math.floor(i/2),s=[],a=0;a<r;a++)for(var c=0;c<t;c++){for(var l=a*t+c,u=0,h=0;h<i;h++)for(var f=0;f<i;f++){var d=a+h-o,p=c+f-o;if(d>=0&&d<r&&p>=0&&p<t){var g=d*t+p,v=n[h*i+f];u+=e[g]*v}}s[l]=u===2040?255:0}return s}function JZ(e,t,r){for(var n=[1,1,1,1,1,1,1,1,1],i=Math.round(Math.sqrt(n.length)),o=Math.floor(i/2),s=[],a=0;a<r;a++)for(var c=0;c<t;c++){for(var l=a*t+c,u=0,h=0;h<i;h++)for(var f=0;f<i;f++){var d=a+h-o,p=c+f-o;if(d>=0&&d<r&&p>=0&&p<t){var g=d*t+p,v=n[h*i+f];u+=e[g]*v}}s[l]=u>=1020?255:0}return s}function WZ(e,t,r){for(var n=[.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111],i=Math.round(Math.sqrt(n.length)),o=Math.floor(i/2),s=[],a=0;a<r;a++)for(var c=0;c<t;c++){for(var l=a*t+c,u=0,h=0;h<i;h++)for(var f=0;f<i;f++){var d=a+h-o,p=c+f-o;if(d>=0&&d<r&&p>=0&&p<t){var g=d*t+p,v=n[h*i+f];u+=e[g]*v}}s[l]=u}return s}const QZ=function(e){var t=this.threshold(),r=KZ(e,t);return r&&(r=XZ(r,e.width,e.height),r=JZ(r,e.width,e.height),r=WZ(r,e.width,e.height),YZ(e,r)),e};Nk=Hu.Mask=QZ,Ak.Factory.addGetterSetter(BZ.Node,"threshold",0,(0,HZ.getNumberValidator)(),Ak.Factory.afterSetFilter);const ZZ=se({__proto__:null,get Mask(){return Nk},default:Hu},[Hu]),ttt=ae(ZZ);var Ku={};Object.defineProperty(Ku,"__esModule",{value:!0});var Dk=Ku.Noise=void 0;const Rk=Pe,ett=Or,rtt=Ae,ntt=function(e){var t=this.noise()*255,r=e.data,n=r.length,i=t/2,o;for(o=0;o<n;o+=4)r[o+0]+=i-2*i*Math.random(),r[o+1]+=i-2*i*Math.random(),r[o+2]+=i-2*i*Math.random()};Dk=Ku.Noise=ntt,Rk.Factory.addGetterSetter(ett.Node,"noise",.2,(0,rtt.getNumberValidator)(),Rk.Factory.afterSetFilter);const itt=se({__proto__:null,get Noise(){return Dk},default:Ku},[Ku]),ott=ae(itt);var Yu={};Object.defineProperty(Yu,"__esModule",{value:!0});var Ik=Yu.Pixelate=void 0;const jk=Pe,stt=Sr,att=Or,ltt=Ae,ctt=function(e){var t=Math.ceil(this.pixelSize()),r=e.width,n=e.height,i,o,s,a,c,l,u,h=Math.ceil(r/t),f=Math.ceil(n/t),d,p,g,v,b,y,m,x=e.data;if(t<=0){stt.Util.error("pixelSize value can not be <= 0");return}for(b=0;b<h;b+=1)for(y=0;y<f;y+=1){for(a=0,c=0,l=0,u=0,d=b*t,p=d+t,g=y*t,v=g+t,m=0,i=d;i<p;i+=1)if(!(i>=r))for(o=g;o<v;o+=1)o>=n||(s=(r*o+i)*4,a+=x[s+0],c+=x[s+1],l+=x[s+2],u+=x[s+3],m+=1);for(a=a/m,c=c/m,l=l/m,u=u/m,i=d;i<p;i+=1)if(!(i>=r))for(o=g;o<v;o+=1)o>=n||(s=(r*o+i)*4,x[s+0]=a,x[s+1]=c,x[s+2]=l,x[s+3]=u)}};Ik=Yu.Pixelate=ctt,jk.Factory.addGetterSetter(att.Node,"pixelSize",8,(0,ltt.getNumberValidator)(),jk.Factory.afterSetFilter);const utt=se({__proto__:null,get Pixelate(){return Ik},default:Yu},[Yu]),htt=ae(utt);var Xu={};Object.defineProperty(Xu,"__esModule",{value:!0});var Fk=Xu.Posterize=void 0;const Mk=Pe,dtt=Or,ftt=Ae,ptt=function(e){var t=Math.round(this.levels()*254)+1,r=e.data,n=r.length,i=255/t,o;for(o=0;o<n;o+=1)r[o]=Math.floor(r[o]/i)*i};Fk=Xu.Posterize=ptt,Mk.Factory.addGetterSetter(dtt.Node,"levels",.5,(0,ftt.getNumberValidator)(),Mk.Factory.afterSetFilter);const mtt=se({__proto__:null,get Posterize(){return Fk},default:Xu},[Xu]),gtt=ae(mtt);var Ju={};Object.defineProperty(Ju,"__esModule",{value:!0});var Lk=Ju.RGB=void 0;const Kf=Pe,xy=Or,vtt=Ae,ytt=function(e){var t=e.data,r=t.length,n=this.red(),i=this.green(),o=this.blue(),s,a;for(s=0;s<r;s+=4)a=(.34*t[s]+.5*t[s+1]+.16*t[s+2])/255,t[s]=a*n,t[s+1]=a*i,t[s+2]=a*o,t[s+3]=t[s+3]};Lk=Ju.RGB=ytt,Kf.Factory.addGetterSetter(xy.Node,"red",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),Kf.Factory.addGetterSetter(xy.Node,"green",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),Kf.Factory.addGetterSetter(xy.Node,"blue",0,vtt.RGBComponent,Kf.Factory.afterSetFilter);const _tt=se({__proto__:null,get RGB(){return Lk},default:Ju},[Ju]),btt=ae(_tt);var Wu={};Object.defineProperty(Wu,"__esModule",{value:!0});var Vk=Wu.RGBA=void 0;const Qu=Pe,Yf=Or,wtt=Ae,xtt=function(e){var t=e.data,r=t.length,n=this.red(),i=this.green(),o=this.blue(),s=this.alpha(),a,c;for(a=0;a<r;a+=4)c=1-s,t[a]=n*s+t[a]*c,t[a+1]=i*s+t[a+1]*c,t[a+2]=o*s+t[a+2]*c};Vk=Wu.RGBA=xtt,Qu.Factory.addGetterSetter(Yf.Node,"red",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),Qu.Factory.addGetterSetter(Yf.Node,"green",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),Qu.Factory.addGetterSetter(Yf.Node,"blue",0,wtt.RGBComponent,Qu.Factory.afterSetFilter),Qu.Factory.addGetterSetter(Yf.Node,"alpha",1,function(e){return this._filterUpToDate=!1,e>1?1:e<0?0:e});const Stt=se({__proto__:null,get RGBA(){return Vk},default:Wu},[Wu]),$tt=ae(Stt);var Zu={};Object.defineProperty(Zu,"__esModule",{value:!0});var Uk=Zu.Sepia=void 0;const Ett=function(e){var t=e.data,r=t.length,n,i,o,s;for(n=0;n<r;n+=4)i=t[n+0],o=t[n+1],s=t[n+2],t[n+0]=Math.min(255,i*.393+o*.769+s*.189),t[n+1]=Math.min(255,i*.349+o*.686+s*.168),t[n+2]=Math.min(255,i*.272+o*.534+s*.131)};Uk=Zu.Sepia=Ett;const Ctt=se({__proto__:null,get Sepia(){return Uk},default:Zu},[Zu]),ktt=ae(Ctt);var th={};Object.defineProperty(th,"__esModule",{value:!0});var zk=th.Solarize=void 0;const Ptt=function(e){var t=e.data,r=e.width,n=e.height,i=r*4,o=n;do{var s=(o-1)*i,a=r;do{var c=s+(a-1)*4,l=t[c],u=t[c+1],h=t[c+2];l>127&&(l=255-l),u>127&&(u=255-u),h>127&&(h=255-h),t[c]=l,t[c+1]=u,t[c+2]=h}while(--a)}while(--o)};zk=th.Solarize=Ptt;const Ttt=se({__proto__:null,get Solarize(){return zk},default:th},[th]),Ott=ae(Ttt);var eh={};Object.defineProperty(eh,"__esModule",{value:!0});var Gk=eh.Threshold=void 0;const Bk=Pe,Ntt=Or,Att=Ae,Dtt=function(e){var t=this.threshold()*255,r=e.data,n=r.length,i;for(i=0;i<n;i+=1)r[i]=r[i]<t?0:255};Gk=eh.Threshold=Dtt,Bk.Factory.addGetterSetter(Ntt.Node,"threshold",.5,(0,Att.getNumberValidator)(),Bk.Factory.afterSetFilter);const Rtt=se({__proto__:null,get Threshold(){return Gk},default:eh},[eh]),Itt=ae(Rtt);Object.defineProperty(lu,"__esModule",{value:!0});var Hk=lu.Konva=void 0;const qk=rW,jtt=sW,Ftt=bW,Mtt=CW,Ltt=OW,Vtt=RW,Kk=UW,Utt=m4,ztt=ty,Gtt=T4,Btt=WW,Htt=eQ,qtt=sQ,Ktt=uQ,Ytt=W4,Xtt=RQ,Jtt=YQ,Wtt=ZQ,Qtt=aZ,Ztt=dZ,tet=vZ,eet=wZ,ret=CZ,net=TZ,iet=AZ,oet=IZ,set=MZ,aet=GZ,cet=ttt,uet=ott,het=htt,det=gtt,fet=btt,pet=$tt,met=ktt,get=Ott,vet=Itt;Hk=lu.Konva=qk.Konva.Util._assign(qk.Konva,{Arc:jtt.Arc,Arrow:Ftt.Arrow,Circle:Mtt.Circle,Ellipse:Ltt.Ellipse,Image:Vtt.Image,Label:Kk.Label,Tag:Kk.Tag,Line:Utt.Line,Path:ztt.Path,Rect:Gtt.Rect,RegularPolygon:Btt.RegularPolygon,Ring:Htt.Ring,Sprite:qtt.Sprite,Star:Ktt.Star,Text:Ytt.Text,TextPath:Xtt.TextPath,Transformer:Jtt.Transformer,Wedge:Wtt.Wedge,Filters:{Blur:Qtt.Blur,Brighten:Ztt.Brighten,Contrast:tet.Contrast,Emboss:eet.Emboss,Enhance:ret.Enhance,Grayscale:net.Grayscale,HSL:iet.HSL,HSV:oet.HSV,Invert:set.Invert,Kaleidoscope:aet.Kaleidoscope,Mask:cet.Mask,Noise:uet.Noise,Pixelate:het.Pixelate,Posterize:det.Posterize,RGB:fet.RGB,RGBA:pet.RGBA,Sepia:met.Sepia,Solarize:get.Solarize,Threshold:vet.Threshold}});const yet=se({__proto__:null,get Konva(){return Hk},default:lu},[lu]),_et=ae(yet);var bet=O1.exports;Object.defineProperty(bet,"__esModule",{value:!0});const wet=_et;O1.exports=wet.Konva;var xet=O1.exports;const hr=Ln(xet),$et=hr.Ellipse.prototype.toObject;hr.Ellipse.prototype.toObject=function(){const e=$et.call(this);return{...e,attrs:{...e.attrs,strokeWidth:this.strokeWidth(),dash:this.dash()}}};const Eet=hr.Line.prototype.toObject;hr.Line.prototype.toObject=function(){const e=Eet.call(this);return{...e,attrs:{...e.attrs,x:this.getAbsolutePosition().x,y:this.getAbsolutePosition().y,strokeWidth:this.strokeWidth(),dash:this.dash()}}};const Cet=hr.Node.prototype.toObject,ket=function(){const e=Cet.call(this);return{...e,attrs:{...e.attrs,x:this.getAbsolutePosition().x,y:this.getAbsolutePosition().y,scaleX:this.getAbsoluteScale().x,scaleY:this.getAbsoluteScale().y,rotation:this.getAbsoluteRotation(),opacity:this.getAbsoluteOpacity()}}};hr.Node.prototype.toObject=ket;const Pet=hr.Node.prototype.remove;hr.Node.prototype.remove=function(){return Pet.call(this),this.fire("removed",{target:this}),this};const Tet=hr.Node.prototype.moveUp;hr.Node.prototype.moveUp=function(){const e=Tet.call(this);return e&&this.fire("move:up"),e};const Oet=hr.Node.prototype.moveDown;hr.Node.prototype.moveDown=function(){const e=Oet.call(this);return e&&this.fire("move:down"),e};const Net=hr.Node.prototype.moveToTop;hr.Node.prototype.moveToTop=function(){const e=Net.call(this);return e&&this.fire("move:top"),e};const Aet=hr.Node.prototype.moveToBottom;hr.Node.prototype.moveToBottom=function(){const e=Aet.call(this);return e&&this.fire("move:bottom"),e};const Det=hr.Node.prototype.moveTo;hr.Node.prototype.moveTo=function(e){const t=Det.call(this,e);return this.fire("move:to"),t};const Ret=hr.Rect.prototype.toObject;hr.Rect.prototype.toObject=function(){const e=Ret.call(this);return{...e,attrs:{...e.attrs,strokeWidth:this.strokeWidth(),dash:this.dash(),cornerRadius:this.cornerRadius()}}};const Iet=hr.RegularPolygon.prototype.toObject;hr.RegularPolygon.prototype.toObject=function(){const e=Iet.call(this);return{...e,attrs:{...e.attrs,strokeWidth:this.strokeWidth(),dash:this.dash()}}};const jet=hr.Text.prototype.toObject;hr.Text.prototype.toObject=function(){const e=jet.call(this);return{...e,attrs:{...e.attrs,strokeWidth:this.strokeWidth()}}};const Fet=hr.Image.prototype.toObject;hr.Image.prototype.toObject=function(){const e=Fet.call(this);return{...e,attrs:{...e.attrs,strokeWidth:this.strokeWidth(),dash:this.dash(),image:this.image()}}};var Met=Object.defineProperty,Let=Object.getOwnPropertyDescriptor,bs=(e,t,r,n)=>{for(var i=n>1?void 0:n?Let(t,r):t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=(n?s(t,r,i):s(i))||i);return n&&i&&Met(t,r,i),i};function ws(e,t,r){const n=r.value;return r.value=function(...i){if(this.enabled)return n.apply(this,i);console.log(`Method ${t} is disabled.`)},r}class xs{app;enabled;constructor(t,r){const{enabled:n}=r;this.app=t,this.enabled=n}alignLeft(t){const r=t.map(i=>i.getClientRect()),n=Math.min(...r.map(i=>i.x));this.app.update(...t.map((i,o)=>{const s=i.toObject(),a=r[o].x-n;return s.attrs={...s.attrs,x:s.attrs.x-a},s}))}alignRight(t){const r=t.map(i=>i.getClientRect()),n=Math.max(...r.map(i=>i.x+i.width));this.app.update(...t.map((i,o)=>{const s=i.toObject(),a=n-(r[o].x+r[o].width);return s.attrs={...s.attrs,x:s.attrs.x+a},s}))}alignTop(t){const r=t.map(i=>i.getClientRect()),n=Math.min(...r.map(i=>i.y));this.app.update(...t.map((i,o)=>{const s=i.toObject(),a=r[o].y-n;return s.attrs={...s.attrs,y:s.attrs.y-a},s}))}alignBottom(t){const r=t.map(i=>i.getClientRect()),n=Math.max(...r.map(i=>i.y+i.height));this.app.update(...t.map((i,o)=>{const s=i.toObject(),a=n-(r[o].y+r[o].height);return s.attrs={...s.attrs,y:s.attrs.y+a},s}))}alignCenterX(t){const r=t.map(i=>i.getClientRect()),n=r.reduce((i,o)=>i+(o.x+o.width/2),0)/r.length;this.app.update(...t.map((i,o)=>{const s=i.toObject(),a=n-(r[o].x+r[o].width/2);return s.attrs={...s.attrs,x:s.attrs.x+a},s}))}alignCenterY(t){const r=t.map(i=>i.getClientRect()),n=r.reduce((i,o)=>i+(o.y+o.height/2),0)/r.length;this.app.update(...t.map((i,o)=>{const s=i.toObject(),a=n-(r[o].y+r[o].height/2);return s.attrs={...s.attrs,y:s.attrs.y+a},s}))}dispersionX(t){t.map(r=>r.getClientRect().x+r.getClientRect().width/2).every((r,n,i)=>r===i[0])||this.distributeNodes(t,"x")}dispersionY(t){t.map(r=>r.getClientRect().y+r.getClientRect().height/2).every((r,n,i)=>r===i[0])||this.distributeNodes(t,"y")}distributeNodes(t,r){if(t.length<=2)return;t.sort((u,h)=>u.getClientRect()[r]-h.getClientRect()[r]);const n=t[0],i=t[t.length-1],o=n.getClientRect()[r]+(r==="x"?n.getClientRect().width:n.getClientRect().height),s=i.getClientRect()[r]-o,a=t.slice(1,-1).reduce((u,h)=>u+(r==="x"?h.getClientRect().width:h.getClientRect().height),0),c=Math.max((s-a)/(t.length-1),0);let l=o;this.app.update(...t.map((u,h)=>{const f=u.toObject();if(h===0||h===t.length-1)return f;const d=l+c;return f.attrs[r]=d-u.getClientRect()[r]+f.attrs[r],l=d+(r==="x"?u.getClientRect().width:u.getClientRect().height),f}))}}bs([ws],xs.prototype,"alignLeft",1),bs([ws],xs.prototype,"alignRight",1),bs([ws],xs.prototype,"alignTop",1),bs([ws],xs.prototype,"alignBottom",1),bs([ws],xs.prototype,"alignCenterX",1),bs([ws],xs.prototype,"alignCenterY",1),bs([ws],xs.prototype,"dispersionX",1),bs([ws],xs.prototype,"dispersionY",1);const Vet=xr({__name:"Icon.ce",props:{icon:{default:"mdi-light:home"},color:{default:ye.colorPrimary}},setup(e){const t=e;return(r,n)=>(Oe(),Rr("span",{class:"icon",style:Me(["color: "+r.color])},[_r($e(fS),{icon:t.icon,color:r.color},null,8,["icon","color"])],4))}}),Uet=`.icon[data-v-b2d9b612]{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;font-size:1em}
|
|
95
|
-
`,Gn=(e,t)=>{const r=e.__vccOpts||e;for(const[n,i]of t)r[n]=i;return r},Sy=Gn(Vet,[["styles",[Uet]],["__scopeId","data-v-b2d9b612"]]),zet=xr({__name:"Icon",props:{icon:{default:"mdi-light:home"},color:{default:ye.colorPrimary}},setup(e){const t=e;return(r,n)=>(Oe(),Rr("span",{class:"icon",style:Me(["color: "+r.color])},[_r($e(fS),{icon:t.icon,color:r.color},null,8,["icon","color"])],4))}}),ynt="",Xi=Gn(zet,[["__scopeId","data-v-8789b4ce"]]),Get=xr({__name:"Button.ce",props:{label:{},icon:{},isDisabled:{type:Boolean,default:!1},height:{default:ye.height44},iconPosition:{default:"right"},padding:{default:ye.gap12},fontSize:{default:ye.fontSize14},borderRadius:{default:ye.borderRadius},borderColor:{default:ye.colorPrimary},bgColor:{default:ye.colorPrimary},fontColor:{default:ye.colorGrayFF}},emits:["ceClick","click"],setup(e,{emit:t}){const r=e,n=t,i=de(r.borderColor),o=de(r.bgColor),s=de(r.fontColor),a=de(r.isDisabled?"0.6":"1"),c=de(r.isDisabled?"not-allowed":"pointer");let l=!1;const u=()=>{r.isDisabled||(l=!0,i.value=Eo(r.borderColor,10),o.value=Eo(r.bgColor,10))},h=()=>{r.isDisabled||(l=!1,i.value=r.borderColor,o.value=r.bgColor)},f=()=>{r.isDisabled||(i.value=Eo(r.borderColor,-10),o.value=Eo(r.bgColor,-10),setTimeout(()=>{l?u():h()},150),n("ceClick"),n("click"))};return(d,p)=>(Oe(),Rr("div",Yp({class:"button",style:[`opacity: ${a.value}`,`border: 1px solid ${i.value}`,`border-radius: ${r.borderRadius}`,`background-color: ${o.value}`,`color: ${s.value}`,`height: ${r.height}`,`line-height: ${r.height}`,`font-size: ${r.fontSize}`,`cursor: ${c.value}`]},d.$attrs,{onMouseover:u,onMouseleave:h,onClick:f}),[Ke("label",{class:"label truncate",style:Me({padding:"0 "+d.padding,cursor:c.value})},[Xn(d.$slots,"default",{},()=>[d.icon&&d.iconPosition==="right"?(Oe(),rn(Xi,{key:0,icon:d.icon,color:s.value,style:Me({marginRight:$e(ye).gap4,cursor:c.value})},null,8,["icon","color","style"])):Ir("",!0),Ke("span",{style:Me({cursor:c.value})},Qi(d.label),5),d.icon&&d.iconPosition==="left"?(Oe(),rn(Xi,{key:1,icon:d.icon,color:s.value,style:Me({marginLeft:$e(ye).gap4,cursor:c.value})},null,8,["icon","color","style"])):Ir("",!0)],!0)],4)],16))}}),$y=Gn(Get,[["styles",[`.button[data-v-911510bb]{box-sizing:border-box;display:inline-flex;justify-content:center;align-items:center;z-index:0}.label[data-v-911510bb]{display:inline-flex;justify-content:center;align-items:center}
|
|
96
|
-
`]],["__scopeId","data-v-
|
|
97
|
-
`]],["__scopeId","data-v-
|
|
98
|
-
`]],["__scopeId","data-v-
|
|
99
|
-
`]],["__scopeId","data-v-
|
|
100
|
-
`]],["__scopeId","data-v-
|
|
101
|
-
`]],["__scopeId","data-v-
|
|
102
|
-
`
|
|
103
|
-
`)].join(`
|
|
104
|
-
`));let d=oP((s=h.props)!=null?s:{},c,u),p=di(h,d,!0);for(let g in d)g.startsWith("on")&&(p.props||(p.props={}),p.props[g]=d[g]);return p}return Array.isArray(l)&&l.length===1?l[0]:l}return Ko(a,Object.assign({},c,u),{default:()=>l})}function iP(e){return e.flatMap(t=>t.type===Kr?iP(t.children):[t])}function oP(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let n of e)for(let i in n)i.startsWith("on")&&typeof n[i]=="function"?(r[i]!=null||(r[i]=[]),r[i].push(n[i])):t[i]=n[i];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(n=>[n,void 0])));for(let n in r)Object.assign(t,{[n](i,...o){let s=r[n];for(let a of s){if(i instanceof Event&&i.defaultPrevented)return;a(i,...o)}}});return t}function sP(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function Oy(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}function Drt(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var Ny=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Ny||{});let aP=xr({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:r}){return()=>{var n;let{features:i,...o}=e,s={"aria-hidden":(i&2)===2?!0:(n=o["aria-hidden"])!=null?n:void 0,hidden:(i&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(i&4)===4&&(i&2)!==2&&{display:"none"}}};return Ta({ourProps:s,theirProps:o,slot:{},attrs:r,slots:t,name:"Hidden"})}}}),lP=Symbol("Context");var rh=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(rh||{});function Rrt(){return Bo(lP,null)}function Irt(e){Ma(lP,e)}var Fr=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Fr||{});function jrt(e){throw new Error("Unexpected object: "+e)}var xn=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(xn||{});function Frt(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),i=n??-1;switch(e.focus){case 0:{for(let o=0;o<r.length;++o)if(!t.resolveDisabled(r[o],o,r))return o;return n}case 1:{i===-1&&(i=r.length);for(let o=i-1;o>=0;--o)if(!t.resolveDisabled(r[o],o,r))return o;return n}case 2:{for(let o=i+1;o<r.length;++o)if(!t.resolveDisabled(r[o],o,r))return o;return n}case 3:{for(let o=r.length-1;o>=0;--o)if(!t.resolveDisabled(r[o],o,r))return o;return n}case 4:{for(let o=0;o<r.length;++o)if(t.resolveId(r[o],o,r)===e.id)return o;return n}case 5:return null;default:jrt(e)}}function cP(e={},t=null,r=[]){for(let[n,i]of Object.entries(e))hP(r,uP(t,n),i);return r}function uP(e,t){return e?e+"["+t+"]":t}function hP(e,t,r){if(Array.isArray(r))for(let[n,i]of r.entries())hP(e,uP(t,n.toString()),i);else r instanceof Date?e.push([t,r.toISOString()]):typeof r=="boolean"?e.push([t,r?"1":"0"]):typeof r=="string"?e.push([t,r]):typeof r=="number"?e.push([t,`${r}`]):r==null?e.push([t,""]):cP(r,t,e)}function Mrt(e){var t,r;let n=(t=e?.form)!=null?t:e.closest("form");if(n){for(let i of n.elements)if(i!==e&&(i.tagName==="INPUT"&&i.type==="submit"||i.tagName==="BUTTON"&&i.type==="submit"||i.nodeName==="INPUT"&&i.type==="image")){i.click();return}(r=n.requestSubmit)==null||r.call(n)}}let Lrt=Symbol("DescriptionContext");function Vrt({slot:e=de({}),name:t="Description",props:r={}}={}){let n=de([]);function i(o){return n.value.push(o),()=>{let s=n.value.indexOf(o);s!==-1&&n.value.splice(s,1)}}return Ma(Lrt,{register:i,slot:e,name:t,props:r}),ur(()=>n.value.length>0?n.value.join(" "):void 0)}let dP=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function fP(e){var t,r;let n=(t=e.innerText)!=null?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return n;let o=!1;for(let a of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))a.remove(),o=!0;let s=o?(r=i.innerText)!=null?r:"":n;return dP.test(s)&&(s=s.replace(dP,"")),s}function Urt(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let r=e.getAttribute("aria-labelledby");if(r){let n=r.split(" ").map(i=>{let o=document.getElementById(i);if(o){let s=o.getAttribute("aria-label");return typeof s=="string"?s.trim():fP(o).trim()}return null}).filter(Boolean);if(n.length>0)return n.join(", ")}return fP(e).trim()}function zrt(e){let t=de(""),r=de("");return()=>{let n=Nr(e);if(!n)return"";let i=n.innerText;if(t.value===i)return r.value;let o=Urt(n).trim().toLowerCase();return t.value=i,r.value=o,o}}function Grt(e,t){return e===t}var Brt=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Brt||{}),Hrt=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Hrt||{}),qrt=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(qrt||{});function Krt(e){requestAnimationFrame(()=>requestAnimationFrame(e))}let pP=Symbol("ListboxContext");function Wf(e){let t=Bo(pP,null);if(t===null){let r=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Wf),r}return t}let Yrt=xr({name:"Listbox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>Grt},horizontal:{type:[Boolean],default:!1},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},multiple:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(e,{slots:t,attrs:r,emit:n}){let i=de(1),o=de(null),s=de(null),a=de(null),c=de([]),l=de(""),u=de(null),h=de(1);function f(m=x=>x){let x=u.value!==null?c.value[u.value]:null,A=Ert(m(c.value.slice()),k=>Nr(k.dataRef.domRef)),E=x?A.indexOf(x):null;return E===-1&&(E=null),{options:A,activeOptionIndex:E}}let d=ur(()=>e.multiple?1:0),[p,g]=Wk(ur(()=>e.modelValue),m=>n("update:modelValue",m),ur(()=>e.defaultValue)),v=ur(()=>p.value===void 0?ki(d.value,{1:[],0:void 0}):p.value),b={listboxState:i,value:v,mode:d,compare(m,x){if(typeof e.by=="string"){let A=e.by;return m?.[A]===x?.[A]}return e.by(m,x)},orientation:ur(()=>e.horizontal?"horizontal":"vertical"),labelRef:o,buttonRef:s,optionsRef:a,disabled:ur(()=>e.disabled),options:c,searchQuery:l,activeOptionIndex:u,activationTrigger:h,closeListbox(){e.disabled||i.value!==1&&(i.value=1,u.value=null)},openListbox(){e.disabled||i.value!==0&&(i.value=0)},goToOption(m,x,A){if(e.disabled||i.value===1)return;let E=f(),k=Frt(m===xn.Specific?{focus:xn.Specific,id:x}:{focus:m},{resolveItems:()=>E.options,resolveActiveIndex:()=>E.activeOptionIndex,resolveId:D=>D.id,resolveDisabled:D=>D.dataRef.disabled});l.value="",u.value=k,h.value=A??1,c.value=E.options},search(m){if(e.disabled||i.value===1)return;let x=l.value!==""?0:1;l.value+=m.toLowerCase();let A=(u.value!==null?c.value.slice(u.value+x).concat(c.value.slice(0,u.value+x)):c.value).find(k=>k.dataRef.textValue.startsWith(l.value)&&!k.dataRef.disabled),E=A?c.value.indexOf(A):-1;E===-1||E===u.value||(u.value=E,h.value=1)},clearSearch(){e.disabled||i.value!==1&&l.value!==""&&(l.value="")},registerOption(m,x){let A=f(E=>[...E,{id:m,dataRef:x}]);c.value=A.options,u.value=A.activeOptionIndex},unregisterOption(m){let x=f(A=>{let E=A.findIndex(k=>k.id===m);return E!==-1&&A.splice(E,1),A});c.value=x.options,u.value=x.activeOptionIndex,h.value=1},theirOnChange(m){e.disabled||g(m)},select(m){e.disabled||g(ki(d.value,{0:()=>m,1:()=>{let x=ce(b.value.value).slice(),A=ce(m),E=x.findIndex(k=>b.compare(A,ce(k)));return E===-1?x.push(A):x.splice(E,1),x}}))}};Ort([s,a],(m,x)=>{var A;b.closeListbox(),tP(x,ky.Loose)||(m.preventDefault(),(A=Nr(s))==null||A.focus())},ur(()=>i.value===0)),Ma(pP,b),Irt(ur(()=>ki(i.value,{0:rh.Open,1:rh.Closed})));let y=ur(()=>{var m;return(m=Nr(s))==null?void 0:m.closest("form")});return Ms(()=>{qr([y],()=>{if(!y.value||e.defaultValue===void 0)return;function m(){b.theirOnChange(e.defaultValue)}return y.value.addEventListener("reset",m),()=>{var x;(x=y.value)==null||x.removeEventListener("reset",m)}},{immediate:!0})}),()=>{let{name:m,modelValue:x,disabled:A,form:E,...k}=e,D={open:i.value===0,disabled:A,value:v.value};return Ko(Kr,[...m!=null&&v.value!=null?cP({[m]:v.value}).map(([V,U])=>Ko(aP,sP({features:Ny.Hidden,key:V,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:E,disabled:A,name:V,value:U}))):[],Ta({ourProps:{},theirProps:{...r,...Oy(k,["defaultValue","onUpdate:modelValue","horizontal","multiple","by"])},slot:D,slots:t,attrs:r,name:"Listbox"})])}}}),Xrt=xr({name:"ListboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:t,slots:r,expose:n}){var i;let o=(i=e.id)!=null?i:`headlessui-listbox-button-${Xf()}`,s=Wf("ListboxButton");n({el:s.buttonRef,$el:s.buttonRef});function a(h){switch(h.key){case Fr.Space:case Fr.Enter:case Fr.ArrowDown:h.preventDefault(),s.openListbox(),io(()=>{var f;(f=Nr(s.optionsRef))==null||f.focus({preventScroll:!0}),s.value.value||s.goToOption(xn.First)});break;case Fr.ArrowUp:h.preventDefault(),s.openListbox(),io(()=>{var f;(f=Nr(s.optionsRef))==null||f.focus({preventScroll:!0}),s.value.value||s.goToOption(xn.Last)});break}}function c(h){switch(h.key){case Fr.Space:h.preventDefault();break}}function l(h){s.disabled.value||(s.listboxState.value===0?(s.closeListbox(),io(()=>{var f;return(f=Nr(s.buttonRef))==null?void 0:f.focus({preventScroll:!0})})):(h.preventDefault(),s.openListbox(),Krt(()=>{var f;return(f=Nr(s.optionsRef))==null?void 0:f.focus({preventScroll:!0})})))}let u=rP(ur(()=>({as:e.as,type:t.type})),s.buttonRef);return()=>{var h,f;let d={open:s.listboxState.value===0,disabled:s.disabled.value,value:s.value.value},{...p}=e,g={ref:s.buttonRef,id:o,type:u.value,"aria-haspopup":"listbox","aria-controls":(h=Nr(s.optionsRef))==null?void 0:h.id,"aria-expanded":s.listboxState.value===0,"aria-labelledby":s.labelRef.value?[(f=Nr(s.labelRef))==null?void 0:f.id,o].join(" "):void 0,disabled:s.disabled.value===!0?!0:void 0,onKeydown:a,onKeyup:c,onClick:l};return Ta({ourProps:g,theirProps:p,slot:d,attrs:t,slots:r,name:"ListboxButton"})}}}),Jrt=xr({name:"ListboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:t,slots:r,expose:n}){var i;let o=(i=e.id)!=null?i:`headlessui-listbox-options-${Xf()}`,s=Wf("ListboxOptions"),a=de(null);n({el:s.optionsRef,$el:s.optionsRef});function c(h){switch(a.value&&clearTimeout(a.value),h.key){case Fr.Space:if(s.searchQuery.value!=="")return h.preventDefault(),h.stopPropagation(),s.search(h.key);case Fr.Enter:if(h.preventDefault(),h.stopPropagation(),s.activeOptionIndex.value!==null){let f=s.options.value[s.activeOptionIndex.value];s.select(f.dataRef.value)}s.mode.value===0&&(s.closeListbox(),io(()=>{var f;return(f=Nr(s.buttonRef))==null?void 0:f.focus({preventScroll:!0})}));break;case ki(s.orientation.value,{vertical:Fr.ArrowDown,horizontal:Fr.ArrowRight}):return h.preventDefault(),h.stopPropagation(),s.goToOption(xn.Next);case ki(s.orientation.value,{vertical:Fr.ArrowUp,horizontal:Fr.ArrowLeft}):return h.preventDefault(),h.stopPropagation(),s.goToOption(xn.Previous);case Fr.Home:case Fr.PageUp:return h.preventDefault(),h.stopPropagation(),s.goToOption(xn.First);case Fr.End:case Fr.PageDown:return h.preventDefault(),h.stopPropagation(),s.goToOption(xn.Last);case Fr.Escape:h.preventDefault(),h.stopPropagation(),s.closeListbox(),io(()=>{var f;return(f=Nr(s.buttonRef))==null?void 0:f.focus({preventScroll:!0})});break;case Fr.Tab:h.preventDefault(),h.stopPropagation();break;default:h.key.length===1&&(s.search(h.key),a.value=setTimeout(()=>s.clearSearch(),350));break}}let l=Rrt(),u=ur(()=>l!==null?(l.value&rh.Open)===rh.Open:s.listboxState.value===0);return()=>{var h,f;let d={open:s.listboxState.value===0},{...p}=e,g={"aria-activedescendant":s.activeOptionIndex.value===null||(h=s.options.value[s.activeOptionIndex.value])==null?void 0:h.id,"aria-multiselectable":s.mode.value===1?!0:void 0,"aria-labelledby":(f=Nr(s.buttonRef))==null?void 0:f.id,"aria-orientation":s.orientation.value,id:o,onKeydown:c,role:"listbox",tabIndex:0,ref:s.optionsRef};return Ta({ourProps:g,theirProps:p,slot:d,attrs:t,slots:r,features:Py.RenderStrategy|Py.Static,visible:u.value,name:"ListboxOptions"})}}}),Wrt=xr({name:"ListboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(e,{slots:t,attrs:r,expose:n}){var i;let o=(i=e.id)!=null?i:`headlessui-listbox-option-${Xf()}`,s=Wf("ListboxOption"),a=de(null);n({el:a,$el:a});let c=ur(()=>s.activeOptionIndex.value!==null?s.options.value[s.activeOptionIndex.value].id===o:!1),l=ur(()=>ki(s.mode.value,{0:()=>s.compare(ce(s.value.value),ce(e.value)),1:()=>ce(s.value.value).some(m=>s.compare(ce(m),ce(e.value)))})),u=ur(()=>ki(s.mode.value,{1:()=>{var m;let x=ce(s.value.value);return((m=s.options.value.find(A=>x.some(E=>s.compare(ce(E),ce(A.dataRef.value)))))==null?void 0:m.id)===o},0:()=>l.value})),h=zrt(a),f=ur(()=>({disabled:e.disabled,value:e.value,get textValue(){return h()},domRef:a}));Ms(()=>s.registerOption(o,f)),Ip(()=>s.unregisterOption(o)),Ms(()=>{qr([s.listboxState,l],()=>{s.listboxState.value===0&&l.value&&ki(s.mode.value,{1:()=>{u.value&&s.goToOption(xn.Specific,o)},0:()=>{s.goToOption(xn.Specific,o)}})},{immediate:!0})}),Sh(()=>{s.listboxState.value===0&&c.value&&s.activationTrigger.value!==0&&io(()=>{var m,x;return(x=(m=Nr(a))==null?void 0:m.scrollIntoView)==null?void 0:x.call(m,{block:"nearest"})})});function d(m){if(e.disabled)return m.preventDefault();s.select(e.value),s.mode.value===0&&(s.closeListbox(),io(()=>{var x;return(x=Nr(s.buttonRef))==null?void 0:x.focus({preventScroll:!0})}))}function p(){if(e.disabled)return s.goToOption(xn.Nothing);s.goToOption(xn.Specific,o)}let g=Nrt();function v(m){g.update(m)}function b(m){g.wasMoved(m)&&(e.disabled||c.value||s.goToOption(xn.Specific,o,0))}function y(m){g.wasMoved(m)&&(e.disabled||c.value&&s.goToOption(xn.Nothing))}return()=>{let{disabled:m}=e,x={active:c.value,selected:l.value,disabled:m},{value:A,disabled:E,...k}=e,D={id:o,ref:a,role:"option",tabIndex:m===!0?void 0:-1,"aria-disabled":m===!0?!0:void 0,"aria-selected":l.value,disabled:void 0,onClick:d,onFocus:p,onPointerenter:v,onMouseenter:v,onPointermove:b,onMousemove:b,onPointerleave:y,onMouseleave:y};return Ta({ourProps:D,theirProps:k,slot:x,attrs:r,slots:t,name:"ListboxOption"})}}}),Qrt=Symbol("LabelContext");function Zrt({slot:e={},name:t="Label",props:r={}}={}){let n=de([]);function i(o){return n.value.push(o),()=>{let s=n.value.indexOf(o);s!==-1&&n.value.splice(s,1)}}return Ma(Qrt,{register:i,slot:e,name:t,props:r}),ur(()=>n.value.length>0?n.value.join(" "):void 0)}let mP=Symbol("GroupContext"),tnt=xr({name:"SwitchGroup",props:{as:{type:[Object,String],default:"template"}},setup(e,{slots:t,attrs:r}){let n=de(null),i=Zrt({name:"SwitchLabel",props:{htmlFor:ur(()=>{var s;return(s=n.value)==null?void 0:s.id}),onClick(s){n.value&&(s.currentTarget.tagName==="LABEL"&&s.preventDefault(),n.value.click(),n.value.focus({preventScroll:!0}))}}}),o=Vrt({name:"SwitchDescription"});return Ma(mP,{switchRef:n,labelledby:i,describedby:o}),()=>Ta({theirProps:e,ourProps:{},slot:{},slots:t,attrs:r,name:"SwitchGroup"})}}),ent=xr({name:"Switch",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"button"},modelValue:{type:Boolean,default:void 0},defaultChecked:{type:Boolean,optional:!0},form:{type:String,optional:!0},name:{type:String,optional:!0},value:{type:String,optional:!0},id:{type:String,default:null},disabled:{type:Boolean,default:!1},tabIndex:{type:Number,default:0}},inheritAttrs:!1,setup(e,{emit:t,attrs:r,slots:n,expose:i}){var o;let s=(o=e.id)!=null?o:`headlessui-switch-${Xf()}`,a=Bo(mP,null),[c,l]=Wk(ur(()=>e.modelValue),y=>t("update:modelValue",y),ur(()=>e.defaultChecked));function u(){l(!c.value)}let h=de(null),f=a===null?h:a.switchRef,d=rP(ur(()=>({as:e.as,type:r.type})),f);i({el:f,$el:f});function p(y){y.preventDefault(),u()}function g(y){y.key===Fr.Space?(y.preventDefault(),u()):y.key===Fr.Enter&&Mrt(y.currentTarget)}function v(y){y.preventDefault()}let b=ur(()=>{var y,m;return(m=(y=Nr(f))==null?void 0:y.closest)==null?void 0:m.call(y,"form")});return Ms(()=>{qr([b],()=>{if(!b.value||e.defaultChecked===void 0)return;function y(){l(e.defaultChecked)}return b.value.addEventListener("reset",y),()=>{var m;(m=b.value)==null||m.removeEventListener("reset",y)}},{immediate:!0})}),()=>{let{name:y,value:m,form:x,tabIndex:A,...E}=e,k={checked:c.value},D={id:s,ref:f,role:"switch",type:d.value,tabIndex:A===-1?0:A,"aria-checked":c.value,"aria-labelledby":a?.labelledby.value,"aria-describedby":a?.describedby.value,onClick:p,onKeyup:g,onKeypress:v};return Ko(Kr,[y!=null&&c.value!=null?Ko(aP,sP({features:Ny.Hidden,as:"input",type:"checkbox",hidden:!0,readOnly:!0,checked:c.value,form:x,disabled:E.disabled,name:y,value:m})):null,Ta({ourProps:D,theirProps:{...r,...Oy(E,["modelValue","defaultChecked"])},slot:k,attrs:r,slots:n,name:"Switch"})])}}});const gP=Gn(xr({customOptions:{Icon:Xi,Button:Ss},__name:"SelectHeadlessUI.ce",props:{options:{},initIndex:{default:0},fontSize:{default:"14px"}},emits:["change"],setup(e,{emit:t}){const r=e,n=t,i=de(r.initIndex);return qr(i,function(){n("change",r.options[i.value])}),(o,s)=>(Oe(),rn($e(Yrt),{modelValue:i.value,"onUpdate:modelValue":s[0]||(s[0]=a=>i.value=a)},{default:jn(({open:a})=>[Ke("div",{class:"wrap",style:Me(["font-size:"+o.fontSize])},[_r($e(Xrt),{class:"button"},{default:jn(()=>[Xn(o.$slots,"button",{selectedIndex:i.value},()=>[_r(Ss,{icon:"carbon:chevron-sort",label:o.options[i.value],style:{width:"100%"}},null,8,["label"])],!0)]),_:3}),_r(Qp,{name:"transition"},{default:jn(()=>[KT(Ke("div",null,[_r($e(Jrt),{static:"",class:"options",style:Me({border:"1px solid "+$e(ye).colorGrayCC})},{default:jn(()=>[(Oe(!0),Rr(Kr,null,j_(o.options,(c,l)=>(Oe(),rn($e(Wrt),{as:"div",class:"option",key:l,value:l,style:Me({borderTop:(l==0?"0":"1px")+" solid "+$e(ye).colorGrayCC})},{default:jn(({active:u,selected:h})=>[Ke("div",{class:"option-inner",style:Me({backgroundColor:u?$e(ye).colorGrayF5:$e(ye).colorGrayFF})},[Xn(o.$slots,"default",{active:u,selected:h,item:c,index:l},()=>[h||l==i.value?(Oe(),rn(Xi,{key:0,icon:"mingcute:check-fill",class:"icon"})):Ir("",!0),Ke("span",null,Qi(c),1)],!0)],4)]),_:2},1032,["value","style"]))),128))]),_:3},8,["style"])],512),[[Pb,a]])]),_:2},1024)],4)]),_:3},8,["modelValue"]))}}),[["styles",[`.wrap[data-v-b36b399b]{display:inline-block;position:relative}.button[data-v-b36b399b]{position:relative;width:100%;border-width:0;display:flex;justify-content:center;padding:0}.options[data-v-b36b399b]{position:relative;width:100%;text-align:center;margin:0;padding:0;box-sizing:border-box}.option[data-v-b36b399b]{cursor:pointer}.option-inner[data-v-b36b399b]{padding:.5em 1em .5em 1.8em;display:flex;justify-content:flex-start;align-items:center;position:relative}.icon[data-v-b36b399b]{position:absolute;left:.5em;top:50%;transform:translateY(-50%)}
|
|
105
|
-
`]],["__scopeId","data-v-b36b399b"]]),rnt={class:"group"},nnt=Gn(xr({__name:"SwitchHeadlessUI.ce",props:{init:{type:Boolean,default:!1},name:{},width:{default:"52px"},height:{default:"32px"},padding:{default:"4px"}},emits:["change"],setup(e,{emit:t}){const r=e;function n(f){const d=kO("number",f);return{number:d.fullMatch?parseFloat(d.fullMatch):0,suffix:d.fullMatch?f.substring(d.matchIndex+d.fullMatch.length+1):""}}const i=n(r.width),o=n(r.height),s=n(r.padding),a=o.number-s.number*2+o.suffix,c=r.padding,l=i.number-n(c).number-n(a).number+i.suffix,u=t,h=de(r.init);return qr(h,function(){u("change",h.value)}),(f,d)=>(Oe(),rn($e(tnt),null,{default:jn(()=>[Ke("div",rnt,[_r($e(ent),{modelValue:h.value,"onUpdate:modelValue":d[0]||(d[0]=p=>h.value=p),name:f.name,style:Me(["padding: 0","margin: 0","border: 0","background-color: transparent"])},{default:jn(()=>[Ke("div",{class:"switch",style:Me(["width: "+r.width,"height: "+r.height,"background-color: "+(h.value?$e(ye).colorGrayEF:$e(ye).colorGrayF5)])},[Ke("span",{class:"round",style:Me(["width: "+a,"height: "+a,"background-color: "+(h.value?$e(ye).colorPrimary:$e(Eo)($e(ye).colorPrimary,30)),"transform: translate("+(h.value?l:$e(c))+", 0)"])},null,4)],4)]),_:1},8,["modelValue","name"])])]),_:1}))}}),[["styles",[`.group[data-v-dcd36d8a]{display:flex;align-items:center}.switch[data-v-dcd36d8a]{flex:0 0 auto;position:relative;display:inline-flex;align-items:center;flex-shrink:0;cursor:pointer;border-radius:9999px;box-sizing:border-box;transition:all .2s cubic-bezier(.4,0,.2,1)}.round[data-v-dcd36d8a]{pointer-events:none;display:inline-block;box-sizing:border-box;border-radius:9999px;transition:all .2s cubic-bezier(.4,0,.2,1)}
|
|
106
|
-
`]],["__scopeId","data-v-dcd36d8a"]]);function int(e,t="style.css"){for(let r of e){const n=document.querySelector(r)?.shadowRoot;if(n){const i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",t),n.appendChild(i)}}}const Qf=(e,t,r=!0)=>{let n=0,i=[...e.styles];for(let o in e.customOptions){const s=`[${e.customOptions[o].__scopeId}]`;i=[...t[n++].styles.map(a=>PO(a,s)),...i]}if(r)e.styles=i;else for(let o of e.styles){const s=document.createElement("style");s.innerHTML=o,document.head.insertBefore(s,document.head.childNodes[document.head.childNodes.length-1].nextSibling)}return e},ont=()=>{const e=Wo(Sy);customElements.define("yz-icon",e);const t=Wo($y);customElements.define("yz-button",t);const r=Wo(Het);customElements.define("yz-mobile-layout",r),Qf(Ey,[Sy,$y]);const n=Wo(Ey);customElements.define("yz-dialog",n),Qf(Jk,[Ey,trt]);const i=Wo(Jk);customElements.define("yz-dialog-loading",i);const o=Wo(prt);customElements.define("yz-select",o),Qf(gP,[Sy,$y]);const s=Wo(gP);customElements.define("yz-select-headlessui",s);const a=Wo(nnt);customElements.define("yz-switch-headlessui",a)};return Sl.install=ont,Sl.linkChildrenComponentsStyles=int,Sl.mergeChildComponentCSS=Qf,Object.defineProperty(Sl,Symbol.toStringTag,{value:"Module"}),Sl}({});
|
|
47
|
+
})`}static safeHtml(e,o="encode"){const n={"&":"&","<":"<",">":">",""":'"',"'":"'"};for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e=e.replace(new RegExp(o=="decode"?i:n[i],"g"),o=="decode"?n[i]:i));return e}static loadScript(e,o=()=>{},n=(i,s,r,a,l)=>{}){const i=document.createElement("script");i.type="text/javascript",i.src=e,i.async=!1,document.body.appendChild(i),i.onload=o,i.onerror=n}static loadStyle(e){const o=document.createElement("link");o.rel="stylesheet",o.href=e,document.head.insertBefore(o,document.head.childNodes[document.head.childNodes.length-1].nextSibling)}static waitForStyleSheetsLoaded=()=>new Promise(e=>{const o=Array.from(document.querySelectorAll("link[rel=stylesheet]"));let n=document.styleSheets.length??0;const i=()=>n>=o.length?(e(),!0):!1;i()||o.forEach(s=>{s.onload=()=>{n+=1,i()}})});static lazyloadImages(){const e=document.getElementsByTagName("img"),o=Ji().height;let n=0;return()=>{for(let i=n;i<e.length;i++)e[i].getBoundingClientRect().top<o&&(e[i].src=e[i].getAttribute("data-src")??"",n=i+1)}}static iframePostMessage(e,o="http://test.com/localstorage.html"){const n=document.createElement("iframe");n.src=o,document.body.append(n),setTimeout(function(){n.contentWindow?.postMessage(e,o)},4e3),setTimeout(function(){n.remove()},6e3)}static getTextWidth=(e,o,n=400)=>{const i=document.createElement("span");i.style.visibility="hidden",i.style.padding="0",i.style.whiteSpace="nowrap",i.style.overflow="visible",i.style.fontSize=o>12?o+"px":"12px",i.style.fontWeight=n.toString(),i.innerText=e,document.body.appendChild(i);const s=i.offsetWidth;return document.body.removeChild(i),s};static getFixedWidthText=(e,o,n=12,i=400,s=!0)=>{let r="",a="",l="";if(!e||o<n||typeof e!="string")return r;const c=e.split(""),d=document.createElement("span");d.style.visibility="hidden",d.style.padding="0",d.style.whiteSpace="nowrap",d.style.overflow="visible",d.style.fontSize=n>12?n+"px":"12px",d.style.fontWeight=i.toString(),document.body.appendChild(d);for(let f=0,u=c.length;f<u;f++){const v=c[f];if(a=l,l+=v,r=l,d.innerText=l,d.offsetWidth>o){s?r=a+"...":r=a;break}}return document.body.removeChild(d),r};static getLocation(){return new Promise((e,o)=>{navigator.geolocation?navigator.geolocation.getCurrentPosition(n=>{e(n.coords)}):o("Geolocation is not supported by this browser")})}static vibrate(e=200){"vibrate"in navigator?window.navigator.vibrate(e):console.error("Your device is not support vibrate on this browser.")}static copyToClipboard=e=>navigator.clipboard.writeText(e);static getSelectedText=()=>window.getSelection()?.toString();static siblings=e=>Array.prototype.slice.call(e.parentNode?.children).filter(o=>o!==e);static isElementFocus=e=>e===document.activeElement;static isTabInView=()=>!document.hidden;static navigateBack=()=>history.back();static navigateBack2=()=>history.go(-1);static addDebuggerOnBeforeUnload=()=>{window.addEventListener("beforeunload",()=>{debugger})}}function pt(t,e=document){return new xe(t,e)}class xe{context;nodes;prefixs=["moz","o","ms","webkit"];constructor(e,o=document){if(this.context=o,typeof e=="string"?this.nodes=Array.from(this.context.querySelectorAll(e)):e instanceof HTMLElement?this.nodes=[e]:this.nodes=e,this.nodes.length===0)throw new Error(`can not find ${e}`);this.each((n,i)=>{n instanceof HTMLInputElement&&n.addEventListener("change",s=>{this.changeRadioChecked(s.currentTarget.value)}),n instanceof HTMLSelectElement&&n.addEventListener("change",s=>{this.changeSelectSelected(s.currentTarget.value)})})}get(e){return e<0&&(e=this.nodes.length+e),this.nodes[e]}concat(e){return new xe(this.nodes.concat(e.nodes),this.context)}then(e){return e(this)??this}each(e){return this.nodes.forEach((o,n)=>{e(o,n)}),this}_save(e,o,n){e._mQuery||(e._mQuery={}),Array.isArray(n)?(e._mQuery[o]=e._mQuery[o]??[],e._mQuery[o].push(...n)):n!=null?e._mQuery[o]=n:delete e._mQuery[o]}on(e,o,n){return this.nodes.forEach(i=>{this._save(i,"events",[{event:e,callback:o,options:n}]),i.addEventListener(e,o,n)}),this}off(e,o,n){return this.nodes.forEach(i=>{i.removeEventListener(e,o,n)}),this}dispatchEvent(e,o){let n;const i=["click","dblclick","mousedown","mouseup","mousemove"],s=["keydown","keyup","keypress"];return typeof e=="string"?i.includes(e)?n=new MouseEvent(e,o):s.includes(e)?n=new KeyboardEvent(e,o):n=new Event(e,o):n=e,this.nodes.forEach(r=>{r.dispatchEvent(n)}),this}change(){return this.dispatchEvent("change")}click(){return this.dispatchEvent("click")}static hasEvent(e,o){return"on"+o in e}static _fragment(e){const o=document.createElement("template");return o.innerHTML=e,o.content.childNodes.forEach(n=>{const i=xe._scriptConvert(n);i!=n&&o.content.replaceChild(i,n)}),o.content}static _scriptConvert(e){const o=n=>{const s=n.ownerDocument.createElement("script");s.text=n.text;const r=n.attributes;for(let a=0;a<r.length;a++)s.setAttribute(r[a].name,r[a].value);return s};return e.tagName=="SCRIPT"&&(e=o(e)),e.querySelectorAll&&e.querySelectorAll("script").forEach(n=>{n.parentNode?.replaceChild(o(n),n)}),e}static _fixProp(e){const o={cellpadding:"cellPadding",cellspacing:"cellSpacing",class:"className",colspan:"colSpan",contenteditable:"contentEditable",for:"htmlFor",frameborder:"frameBorder",maxlength:"maxLength",readonly:"readOnly",rowspan:"rowSpan",tabindex:"tabIndex",usemap:"useMap"};return o[e]?o[e]:e}static isSVG(e){return(e||document.documentElement).nodeName.toLowerCase()==="svg"}static createElement(e){return xe.isSVG()?document.createElementNS.call(document,"http://www.w3.org/2000/svg",e):document.createElement.call(document,e)}static createTextNode(e){return document.createTextNode.call(document,e)}static createDocumentFragment(){return document.createDocumentFragment.call(document)}_insert(e,o){const n=this.nodes.length;if(n<1)return this;const i=[];if(typeof o=="string")this.nodes.forEach(s=>{const r=xe._fragment(o);i.push(...r.children),s[e](r)});else if(o instanceof HTMLElement)this.each(s=>{const r=n===1?o:xe._fragment(o.outerHTML);i.push(...n===1?[o]:r.children),s[e](r)}),n>1&&o.remove();else if(o instanceof xe){const s=n==1;o.each(r=>{this.each(a=>{const l=s?r:r.cloneNode(!0);i.push(l),a[e](l),xe._scriptConvert(l)})}),s||o.remove()}return e=="replaceWith"&&(this.nodes=i),this}append(e){return this._insert("append",e)}prepend(e){return this._insert("prepend",e)}after(e){return this._insert("after",e)}before(e){return this._insert("before",e)}replace(e){return this._insert("replaceWith",e)}remove(){return this.nodes.forEach(e=>{e.remove()}),this}static removeChild(e){e.parentElement?.removeChild(e)}find(e){const o=[];return this.nodes.forEach(n=>{o.push(...Array.from(n.querySelectorAll(e)))}),new xe(o,this.context)}filter(e){const o=[];return this.nodes.forEach(n=>{(n===e||typeof e=="string"&&n.matches&&n.matches(e))&&o.push(n)}),new xe(o,this.context)}next(){const e=[];return this.nodes.forEach(o=>{const n=o.nextElementSibling;n&&e.push(n)}),new xe(e,this.context)}prev(){const e=[];return this.nodes.forEach(o=>{const n=o.previousElementSibling;n&&e.push(n)}),new xe(e,this.context)}closest(e){const o=[];return this.nodes.forEach(n=>{const i=n.closest(e);i&&o.push(i)}),new xe(o,this.context)}shadow(e){const o=[];this.nodes.forEach(i=>{i.shadowRoot&&o.push(i.shadowRoot)});const n=new xe(o,this.context);return e!==void 0?n.find(e):n}parent(e){return this.parents(e,!0)}parents(e,o=!1){const n=[],i=r=>{if(n.indexOf(r)==-1&&n.push(r),!o&&r.parentElement)return i(r.parentElement)};this.nodes.forEach(r=>{r.parentElement&&i(r.parentElement)});const s=new xe(n,this.context);return e!==void 0?s.filter(e):s}static getComputedStyle(e,o,n){let i;const s=e.style.getPropertyPriority(o);return"getComputedStyle"in window?(i=getComputedStyle.call(window,e,n),i=i.getPropertyValue(o)):i=e.style.getPropertyValue(o),i+(s?"!"+s:"")}css(e,o){if((e===void 0||typeof e=="string")&&o===void 0){const n=this.nodes[0].style;if(typeof e=="string"){const i=n.getPropertyPriority(e),s=n.getPropertyValue(e).trim();return s?s+(i?"!"+i:""):xe.getComputedStyle(this.nodes[0],e)}else{const i=Object.fromEntries(this.nodes[0].style.cssText.split(";").filter(s=>!!s).map(s=>s.split(":").map(r=>r.trim())));return Object.assign(i,getComputedStyle.call(window,this.nodes[0])),i}}else{let n={};return typeof e=="string"&&o!==void 0?n[e]=o:typeof e=="object"&&(n=e),this.nodes.forEach(i=>{Object.keys(n).forEach(s=>{const r=String(n[s]).toLowerCase().includes("!important")?"important":"";i.style.setProperty(s,String(n[s]).replace(/!important/i,""),r)})}),this}}addClass(e){return this.toggleClass(e,!0)}removeClass(e){return this.toggleClass(e,!1)}toggleClass(e,o){const n=e.split(/[,\s]+/);return this.nodes.forEach(i=>{n.forEach(s=>{if(s.trim()!==""){let r="toggle";o!==void 0&&(r=o?"add":"remove"),i.classList[r](s.trim())}})}),this}hasClass(e){const o=e.split(/[,\s]+/);let n=!1;return this.nodes.forEach(i=>{n=n||o.every(s=>Array.from(i.classList??[]).includes(s.trim()))}),n}attr(e,o){if(o===void 0&&typeof e=="string")return this.nodes[0].getAttribute(e);let n={};return typeof e=="object"?n=e:o!==void 0&&(n[e]=o),this.nodes.forEach(i=>{Object.entries(n).forEach(([s,r])=>{i.setAttribute(s,r)})}),this}removeAttr(e){const o=e.split(/[,\s]+/);return this.nodes.forEach(n=>{o.forEach(i=>{n.removeAttribute(i)})}),this}prop(e,o){if(o===void 0&&typeof e=="string")return this.nodes[0][e];{let n={};return typeof e=="object"?n=e:typeof e=="string"&&o!==void 0&&(n[e]=o),this.nodes.forEach(i=>{Object.entries(n).forEach(([s,r])=>{const a=xe._fixProp(s);i[a]=r,a=="innerHTML"&&xe._scriptConvert(i)})}),this}}removeProp(e){const o=e.split(/[,\s]+/);return this.nodes.forEach(n=>{o.forEach(i=>{delete n[xe._fixProp(i)]})}),this}changeSelectSelected(e){this.nodes.forEach(o=>{if(o instanceof HTMLSelectElement){const n=o.options;for(let i=0,s=n.length;i<s;i++)n[i].value==e?n[i].selected=!0:n[i].selected=!1}})}changeRadioChecked(e){this.nodes.forEach(o=>{o instanceof HTMLInputElement&&(o.value==e?o.checked=!0:o.checked=!1)})}data(e,o){if(typeof e=="string"&&e.indexOf("-")!=-1)throw new Error(`Key "${e}" contains "-" (dash). Dashes are not allowed in property names. Use camelCase instead.`);if((typeof e=="string"||e===void 0)&&o===void 0){const n=Object.assign({},this.nodes[0].dataset);return Object.keys(n).forEach(i=>{if(n[i]?.startsWith("[")||n[i]?.startsWith("{"))try{n[i]=JSON.parse(n[i]??"")}catch{}}),typeof e=="string"?n[e]:n}else{let n={};return typeof e=="object"?n=e:typeof e=="string"&&(n[e]=o),this.nodes.forEach(i=>{Object.entries(n).forEach(([s,r])=>{r!=null?i.dataset[s]=r instanceof Object?JSON.stringify(r):r:delete i.dataset[s]})}),this}}removeData(e){const o=e.split(/[,\s]+/);return this.nodes.forEach(n=>{o.forEach(i=>{delete n.dataset[i]})}),this}show(){return this.toggle(!0)}hide(){return this.toggle(!1)}toggle(e){return this.nodes.forEach(o=>{const n=o.style.display,i=getComputedStyle(o).display,s=n=="none"||i=="none";if(s&&(e===void 0||e===!0)){const r=o instanceof HTMLTableRowElement?"table-row":o instanceof HTMLTableCellElement?"table-cell":"block";o.style.display=o._mQuery?.prevDisplay??(n==i&&i!="none"?"":r),this._save(o,"prevDisplay",null)}!s&&(e==null||e===!1)&&(i!="none"&&this._save(o,"prevDisplay",i),o.style.setProperty("display","none"))})}empty(){return this.html("")}html(e){return e instanceof HTMLElement?this.empty().append(e.innerHTML):this.prop("innerHTML",e)}text(e){return this.prop("textContent",e)}val(e){return this.prop("value",e)}}function es(t){return t*Math.PI/180}function fl(t){return t*180/Math.PI}function ep(t,e,o,n){const i=t-o,s=e-n;return Math.sqrt(i*i+s*s)}function pl(t,e,o,n){const i=o-t,s=n-e;return Math.atan2(s,i)}function ts(t){return t[0]*t[0]+t[1]*t[1]}function hl(t){const e=Math.sqrt(ts(t));t[0]&&(t[0]/=e),t[1]&&(t[1]/=e)}function tp(t,e,o,n,i=10){if(Math.abs(o-t)<i&&Math.abs(n-e)<i)return"no";const s=fl(pl(t,e,o,n));return s>=-135&&s<=-45?"up":s>45&&s<135?"down":s>=135&&s<=180||s>=-180&&s<-135?"left":s>=-45&&s<=45?"right":"no"}class Ao{x;y;vx;vy;ax;ay;mass;constructor(e){this.x=e.x,this.y=e.y,this.vx=e?.vx||0,this.vy=e?.vy||0,this.ax=e?.ax||0,this.ay=e?.ay||0,this.mass=e?.mass||0}fromAngleAndLength(e,o){return new Ao({x:Math.cos(e)*o,y:Math.sin(e)*o})}distanceTo(e){return ep(this.x,this.y,e.x,e.y)}angleTo(e){return pl(this.x,this.y,e.x,e.y)}followTo(e,o=3){const n=this.angleTo(e),{x:i,y:s}=this.fromAngleAndLength(n,o);this.vx=i,this.vy=s,this.nextFrame()}followAccelerationTo(e,o=.05){const n=this.angleTo(e),{x:i,y:s}=this.fromAngleAndLength(n,o);this.ax=i,this.ay=s,this.nextFrame()}nextFrame(e){const o=e?.gravity??0,n=e?.friction??0;if(this.vx+=this.ax,this.vy+=this.ay,this.vy+=o,n>0){const i=Math.atan2(this.vy,this.vx);let s=Math.sqrt(this.vx*this.vx+this.vy*this.vy);s>n?s-=n:s=0,this.vx=Math.cos(i)*s,this.vy=Math.sin(i)*s}this.x+=this.vx,this.y+=this.vy}nextFrameEaseTo(e,o){const n=o?.gravity??0,i=o?.friction??1,s=o?.easing??.05,r=e.x-this.x,a=e.y-this.y;this.vx=r*s,this.vy=a*s,this.vy+=n,this.vx*=i,this.vy*=i,this.x+=this.vx,this.y+=this.vy}nextFrameSpringTo(e,o){const n=o?.gravity??0,i=o?.friction??.95,s=o?.spring??.03;(Array.isArray(e)?e:[e]).forEach(a=>{const l=a.x-this.x,c=a.y-this.y,d=l*s,f=c*s;this.vx+=d,this.vy+=f}),this.vy+=n,this.vx*=i,this.vy*=i,this.x+=this.vx,this.y+=this.vy}nextFrameSpringConnect(e,o){const n=o?.gravity??0,i=o?.friction??.95,s=o?.spring??.03,r=o?.springLength??100,a=this.angleTo(e);this.nextFrameSpringTo(new Ao({x:e.x-Math.cos(a)*r,y:e.y-Math.sin(a)*r}),{spring:s,friction:i,gravity:n})}}class op extends Ao{width;height;constructor(e){super(e),this.width=e.width,this.height=e.height}eq(e){return this.x===e.x&&this.y===e.y&&this.width===e.width&&this.height===e.height}isIntersectRect(e){return!(this.x+this.width<e.x||e.x+e.width<this.x||this.y+this.height<e.y||e.y+e.height<this.y)}isContainPoint(e){return!(e.x<this.x||e.x>this.x+this.width||e.y<this.y||e.y>this.y+this.height)}toArray(){return[this.x,this.y,this.width,this.height]}clone(e){this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height}}class Ln extends Ao{radius;constructor(e){super(e),this.radius=e?.radius??0}toSVGPathData(){return[this.x,this.y]}toSVGPathD(){return`${this.x},${this.y}`}setX(e){this.x=e}setY(e){this.y=e}setXY(e,o){this.x=e,this.y=o}eq(e){return this.x===e.x&&this.y===e.y}midPointBtw(e){return new Ln({x:this.x+(e.x-this.x)/2,y:this.y+(e.y-this.y)/2})}toArray(){return[this.x,this.y]}clone(e){this.setXY(e.x,e.y)}getBounds(){return new op({x:this.x-this.radius,y:this.y-this.radius,width:this.radius*2,height:this.radius*2})}nextFrameCollisionTo(e){const o=e.x-this.x,n=e.y-this.y;if(Math.sqrt(o*o+n*n)<this.radius+e.radius){const r=Math.atan2(n,o),a=Math.sin(r),l=Math.cos(r),c={x:0,y:0},d=s(o,n,a,l,!0),f=s(this.vx,this.vy,a,l,!0),u=s(e.vx,e.vy,a,l,!0),v=f.x-u.x;f.x=((this.mass-e.mass)*f.x+2*e.mass*u.x)/(this.mass+e.mass),u.x=v+f.x;const b=Math.abs(f.x)+Math.abs(u.x),y=this.radius+e.radius-Math.abs(c.x-d.x);c.x+=f.x/b*y,d.x+=u.x/b*y;const k=s(c.x,c.y,a,l,!1),A=s(d.x,d.y,a,l,!1);e.x=this.x+A.x,e.y=this.y+A.y,this.x=this.x+k.x,this.y=this.y+k.y;const $=s(f.x,f.y,a,l,!1),z=s(u.x,u.y,a,l,!1);this.vx=$.x,this.vy=$.y,e.vx=z.x,e.vy=z.y}function s(r,a,l,c,d=!1){return{x:d?r*c+a*l:r*c-a*l,y:d?a*c-r*l:a*c+r*l}}}nextFrameBounce(e){const o=e.left,n=e.top,i=e.right,s=e.bottom,r=e?.bounce??-1;this.x+this.radius>i?(this.x=i-this.radius,this.vx*=r):this.x-this.radius<o&&(this.x=o+this.radius,this.vx*=r),this.y+this.radius>s?(this.y=s-this.radius,this.vy*=r):this.y-this.radius<n&&(this.y=n+this.radius,this.vy*=r)}}class os extends Ln{startPoint;startTime;slideDetectDuration=300;slideDetectDistance=10;directionDebounceDuration=100;getDirectionDebounce=e=>Fd((o,n,i,s)=>e(tp(o,n,i,s)),this.directionDebounceDuration);constructor(e={x:0,y:0}){super(e),this.startPoint=new Ln({x:this.x,y:this.y}),this.startTime=new Date}static isTouchEnabled(){return"ontouchstart"in window||navigator.maxTouchPoints>0}capture(e,o={}){return os.isTouchEnabled()?this.capturePointer(e,o):this.captureMouse(e,o)}captureMouse(e,o={}){const n=l=>{const c=ft(e,l);this.x=c.x,this.y=c.y,document.addEventListener("mousemove",a,!1),document.addEventListener("mouseup",i,!1),e.style.userSelect="none",e.style.webkitUserSelect="",this.startPoint.x=this.x,this.startPoint.y=this.y,this.startTime=new Date,o.start?.(this)},i=l=>{const c=ft(e,l);this.x=c.x,this.y=c.y,document.removeEventListener("mouseup",i,!1),document.removeEventListener("mousemove",a,!1),e.style.userSelect="",e.style.webkitUserSelect="",o.end?.(this)},s=this.getDirectionDebounce(l=>{new Date().getTime()-this.startTime.getTime()>this.slideDetectDuration||(l=="left"&&Math.abs(this.x-this.startPoint.x)>=this.slideDetectDistance?o.slideLeft?.(this.x-this.startPoint.x,this.y-this.startPoint.y):l=="right"&&Math.abs(this.x-this.startPoint.x)>=this.slideDetectDistance&&o.slideRight?.(this.x-this.startPoint.x,this.y-this.startPoint.y))}),r=l=>{!l.target||e==l.target||e.contains(l.target)||o.slideRight?.(this.x-this.startPoint.x,this.y-this.startPoint.y)},a=l=>{const c=ft(e,l);this.x=c.x,this.y=c.y,s(this.startPoint.x,this.startPoint.y,this.x,this.y),o.move?.(this)};return e.addEventListener("mousedown",n,!1),document.addEventListener("mousedown",r,!1),()=>{e.removeEventListener("mousedown",n,!1),document.removeEventListener("mousedown",r,!1)}}captureTouch(e,o={}){const n=l=>{l.preventDefault();const c=l.changedTouches[0],d=ft(e,c);this.x=d.x,this.y=d.y,this.startPoint.x=this.x,this.startPoint.y=this.y,this.startTime=new Date,o.start?.(this)},i=l=>{const c=l.changedTouches[0],d=ft(e,c);this.x=d.x,this.y=d.y,o.end?.(this)},s=this.getDirectionDebounce(l=>{new Date().getTime()-this.startTime.getTime()>this.slideDetectDuration||(l=="left"&&Math.abs(this.x-this.startPoint.x)>=this.slideDetectDistance?o.slideLeft?.(this.x-this.startPoint.x,this.y-this.startPoint.y):l=="right"&&Math.abs(this.x-this.startPoint.x)>=this.slideDetectDistance&&o.slideRight?.(this.x-this.startPoint.x,this.y-this.startPoint.y))}),r=l=>{!l.target||e==l.target||e.contains(l.target)||o.slideRight?.(this.x-this.startPoint.x,this.y-this.startPoint.y)},a=l=>{const c=l.changedTouches[0],d=ft(e,c);this.x=d.x,this.y=d.y,s(this.startPoint.x,this.startPoint.y,this.x,this.y),o.move?.(this)};return e.addEventListener("touchstart",n,!1),e.addEventListener("touchend",i,!1),e.addEventListener("touchcancel",i,!1),e.addEventListener("touchmove",a,!1),document.addEventListener("touchstart",r,!1),()=>{e.removeEventListener("touchstart",n,!1),e.removeEventListener("touchend",i,!1),e.removeEventListener("touchcancel",i,!1),e.removeEventListener("touchmove",a,!1),document.removeEventListener("touchstart",r,!1)}}capturePointer(e,o={}){const n=l=>{const c=ft(e,l);this.x=c.x,this.y=c.y,e.setPointerCapture(l.pointerId),e.style.userSelect="none",e.style.webkitUserSelect="",this.startPoint.x=this.x,this.startPoint.y=this.y,this.startTime=new Date,o.start?.(this)},i=l=>{const c=ft(e,l);this.x=c.x,this.y=c.y,e.style.userSelect="",e.style.webkitUserSelect="",o.end?.(this)},s=this.getDirectionDebounce(l=>{new Date().getTime()-this.startTime.getTime()>this.slideDetectDuration||(l=="left"&&Math.abs(this.x-this.startPoint.x)>=this.slideDetectDistance?o.slideLeft?.(this.x-this.startPoint.x,this.y-this.startPoint.y):l=="right"&&Math.abs(this.x-this.startPoint.x)>=this.slideDetectDistance&&o.slideRight?.(this.x-this.startPoint.x,this.y-this.startPoint.y))}),r=l=>{!l.target||e==l.target||e.contains(l.target)||o.slideRight?.(this.x-this.startPoint.x,this.y-this.startPoint.y)},a=l=>{const c=ft(e,l);this.x=c.x,this.y=c.y,s(this.startPoint.x,this.startPoint.y,this.x,this.y),o.move?.(this)};return e.addEventListener("pointerdown",n,!1),e.addEventListener("pointerup",i,!1),e.addEventListener("pointercancel",i,!1),e.addEventListener("pointermove",a,!1),document.addEventListener("pointerdown",r,!1),()=>{e.removeEventListener("pointerdown",n,!1),e.removeEventListener("pointerup",i,!1),e.removeEventListener("pointercancel",i,!1),e.removeEventListener("pointermove",a,!1),document.removeEventListener("pointerdown",r,!1)}}static clickEvent=typeof document<"u"&&document.ontouchstart?"touchstart":"click";static getMouseButton(e){if(document.implementation.hasFeature("MouseEvents","2.0"))return e.button;switch(e.button){case 0:case 1:case 3:case 5:case 7:return 0;case 2:case 6:return 2;case 4:return 1}}}const ml=[1,0,0,1,0,0],vl=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];class Ke{value;matrix3d;isEverTo3d=!1;_prev_rotatex=0;_prev_rotatey=0;constructor(e=ml){this.value=Array.from(e),this.matrix3d=this.toMatrix3D()}unit(){return this.value=Array.from(ml),this.matrix3d=this.toMatrix3D(),this}transformPoint(e,o,n=0,i=0){const s=e-n,r=o-i;return e=s*this.value[0]+r*this.value[2]+this.value[4],o=s*this.value[1]+r*this.value[3]+this.value[5],[e+n,o+i]}fromString(e){const o=_a("number",e);return o.length===6?o.forEach((n,i)=>{n.fullMatch&&(this.value[i]=parseFloat(n.fullMatch))}):this.unit(),this}toMatrix3D(e=this.matrix3d){const o=[this.value[0],this.value[1],0,0,this.value[2],this.value[3],0,0,0,0,1,0,this.value[4],this.value[5],0,1];return e?(e.value=o,e):new eo(o)}offset(e=0,o=0){return[e-this.value[4],o-this.value[5]]}clone(){return new Ke(this.value)}multiply(e){const o=this.value;let n;e instanceof Ke?n=e.value:n=e;const i=o[0]*n[0]+o[2]*n[1],s=o[1]*n[0]+o[3]*n[1],r=o[0]*n[2]+o[2]*n[3],a=o[1]*n[2]+o[3]*n[3],l=o[0]*n[4]+o[2]*n[5]+o[4],c=o[1]*n[4]+o[3]*n[5]+o[5];return o[0]=i,o[1]=s,o[2]=r,o[3]=a,o[4]=l,o[5]=c,this}inverse(){const e=new Ke(this.value),o=e.value,n=1/(o[0]*o[3]-o[1]*o[2]),i=o[3]*n,s=-o[1]*n,r=-o[2]*n,a=o[0]*n,l=n*(o[2]*o[5]-o[3]*o[4]),c=n*(o[1]*o[4]-o[0]*o[5]);return o[0]=i,o[1]=s,o[2]=r,o[3]=a,o[4]=l,o[5]=c,e}translate(e,o){return this.matrix3d.translate(e,o,0),this.multiply([1,0,0,1,e,o])}translateTo(e,o){const n=this.offset(e,o);return this.translate(n[0],n[1])}translateX(e){return this.translate(e,0)}translateY(e){return this.translate(0,e)}translateZ(e){return this.isEverTo3d=!0,this.matrix3d.translate(0,0,e)}translate3d(e,o,n){return this.isEverTo3d=!0,this.matrix3d.translate(e,o,n)}rotate(e,o=0,n=0){const i=es(e),s=+Math.cos(i).toFixed(9),r=+Math.sin(i).toFixed(9);return this.multiply([s,r,-r,s,o,n]),this.translate(-o,-n),this}rotateX(e){return this._prev_rotatex=e,this.isEverTo3d=!0,this.matrix3d.rotate("x",e)}rotateXTo(e){return this.rotateX(e-this._prev_rotatex)}rotateY(e){return this._prev_rotatey=e,this.isEverTo3d=!0,this.matrix3d.rotate("y",e)}rotateYTo(e){return this.rotateY(e-this._prev_rotatey)}rotateZ(e){return this.isEverTo3d=!0,this.matrix3d.rotate("z",e)}rotate3d(e,o,n){return this.isEverTo3d=!0,this.matrix3d.rotate("x",e).rotate("y",o).rotate("z",n)}scale(e,o=e,n=0,i=0){return this.matrix3d.scale(e,o,1),this.translate(n,i),this.multiply([e,0,0,o,0,0]),this.translate(-n,-i),this}scaleTo(e,o=e){return this.scale(e/this.value[0],o/this.value[3]),this}scaleX(e){return this.scale(e,1)}scaleY(e){return this.scale(1,e)}scaleZ(e){return this.isEverTo3d=!0,this.matrix3d.scale(1,1,e)}scale3d(e,o,n){return this.isEverTo3d=!0,this.matrix3d.scale(e,o,n)}skew(e,o=0){const n=e*Math.PI/180,i=o*Math.PI/180,s=Math.tan(n),r=Math.tan(i);return this.multiply([1,r,s,1,0,0])}skewX(e){return this.skew(e,0)}skewY(e){return this.skew(0,e)}skewZ(e){return this}skew3d(e,o,n){return this}split(){const e={dx:0,dy:0,scalex:1,scaley:1,shear:1,rotate:0,isSimple:!0,isSuperSimple:!0,noRotation:!1};e.dx=this.value[4],e.dy=this.value[5];const o=[[this.value[0],this.value[2]],[this.value[1],this.value[3]]];e.scalex=Math.sqrt(ts(o[0])),hl(o[0]),e.shear=o[0][0]*o[1][0]+o[0][1]*o[1][1],o[1]=[o[1][0]-o[0][0]*e.shear,o[1][1]-o[0][1]*e.shear],e.scaley=Math.sqrt(ts(o[1])),hl(o[1]),e.shear/=e.scaley;const n=-o[0][1],i=o[1][1];return i<0?(e.rotate=fl(Math.acos(i)),n<0&&(e.rotate=360-e.rotate)):e.rotate=es(Math.asin(n)),e.isSimple=!+e.shear.toFixed(9)&&(e.scalex.toFixed(9)==e.scaley.toFixed(9)||!e.rotate),e.isSuperSimple=!+e.shear.toFixed(9)&&e.scalex.toFixed(9)==e.scaley.toFixed(9)&&!e.rotate,e.noRotation=!+e.shear.toFixed(9)&&!e.rotate,e}toTransformString(){const e=this.split();return e.isSimple?(e.scalex=+e.scalex.toFixed(4),e.scaley=+e.scaley.toFixed(4),e.rotate=+e.rotate.toFixed(4),(e.dx&&e.dy?"t"+[e.dx,e.dy]:"")+(e.scalex!=1||e.scaley!=1?"s"+[e.scalex,e.scaley,0,0]:"")+(e.rotate?"r"+[e.rotate,0,0]:"")):"matrix"+[this.value[0],this.value[1],this.value[2],this.value[3],this.value[4],this.value[5]]}toString(){return this.isEverTo3d?this.toMatrix3DString():`matrix(${this.value.map(e=>xa(e,6)).join(",")})`}toMatrix3DString(){return this.matrix3d.toString()}toFilter(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.value[0]+", M12="+this.value[2]+", M21="+this.value[1]+", M22="+this.value[3]+", Dx="+this.value[4]+", Dy="+this.value[5]+", sizingmethod='auto expand')"}}class eo{value;constructor(e=vl){this.value=Array.from(e)}unit(){return this.value=Array.from(vl),this}fromString(e){const o=_a("number",e);return o.length===16?o.forEach((n,i)=>{n.fullMatch&&(this.value[i]=parseFloat(n.fullMatch))}):this.unit(),this}toMatrix(e){const o=[this.value[0],this.value[1],this.value[4],this.value[5],this.value[12],this.value[13]];return e?(e.value=o,e):new Ke(o)}multiplyMatrix(e){const o=this.value[0],n=this.value[1],i=this.value[2],s=this.value[3],r=this.value[4],a=this.value[5],l=this.value[6],c=this.value[7],d=this.value[8],f=this.value[9],u=this.value[10],v=this.value[11],b=this.value[12],y=this.value[13],k=this.value[14],A=this.value[15],$=e.value[0],z=e.value[1],G=e.value[2],ne=e.value[3],M=$*o+z*r+G*d+ne*b,I=$*n+z*a+G*f+ne*y,he=$*i+z*l+G*u+ne*k,ve=$*s+z*c+G*v+ne*A;return new Ke([M,I,he,ve,0,0])}multiply(e){const o=new Ke([e.value[0],e.value[1],e.value[2],e.value[3],0,0]),n=new Ke([e.value[4],e.value[5],e.value[6],e.value[7],0,0]),i=new Ke([e.value[8],e.value[9],e.value[10],e.value[11],0,0]),s=new Ke([e.value[12],e.value[13],e.value[14],e.value[15],0,0]),r=this.multiplyMatrix(o),a=this.multiplyMatrix(n),l=this.multiplyMatrix(i),c=this.multiplyMatrix(s);return this.value[0]=r.value[0],this.value[1]=r.value[1],this.value[2]=r.value[2],this.value[3]=r.value[3],this.value[4]=a.value[0],this.value[5]=a.value[1],this.value[6]=a.value[2],this.value[7]=a.value[3],this.value[8]=l.value[0],this.value[9]=l.value[1],this.value[10]=l.value[2],this.value[11]=l.value[3],this.value[12]=c.value[0],this.value[13]=c.value[1],this.value[14]=c.value[2],this.value[15]=c.value[3],this}translate(e=0,o=0,n=0){return this.multiply(new eo([1,0,0,0,0,1,0,0,0,0,1,0,e,o,n,1]))}scale(e=1,o=1,n=1){return this.multiply(new eo([e,0,0,0,0,o,0,0,0,0,n,0,0,0,0,1]))}rotate(e,o){const n=es(o),i=Math.sin,s=Math.cos;let r;switch(e){case"x":r=[1,0,0,0,0,s(n),i(n),0,0,-i(n),s(n),0,0,0,0,1];break;case"y":r=[s(n),0,-i(n),0,0,1,0,0,i(n),0,s(n),0,0,0,0,1];break;case"z":r=[s(n),i(n),0,0,-i(n),s(n),0,0,0,0,1,0,0,0,0,1];break}return this.multiply(new eo(r))}toString(){return`matrix3d(${this.value.map(e=>xa(e,6)).join(",")})`}}function gl(t){const e=new Ke;return t.replace(/([a-z0-9]+)\s*\(?\s*((-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)*[a-z%]*\s*,?\s*)+)\)?/gi,function(o,n,i){i.indexOf(",")>=0?i=i.split(/\s*,\s*/):i=i.split(/\s+/);const s=[];for(let r=0,a=i.length;r<a;r++)i[r].trim()&&s.push(parseFloat(""+i[r]));switch(n.toLowerCase()){case"t":case"translate":e.translate(s[0],s[1]);break;case"translatex":e.translateX(s[0]);break;case"translatey":e.translateY(s[0]);break;case"translatez":e.translateZ(s[0]);break;case"translate3d":e.translate3d(s[0],s[1],s[2]);break;case"r":case"rotate":e.rotate(s[0],s[1]??0,s[2]??0);break;case"rotatex":e.rotateX(s[0]);break;case"rotatey":e.rotateY(s[0]);break;case"rotatez":e.rotateZ(s[0]);break;case"rotate3d":e.rotate3d(s[0],s[1],s[2]);break;case"s":case"scale":e.scale(s[0],s[1]??s[0]);break;case"scalex":e.scaleX(s[0]);break;case"scaley":e.scaleY(s[0]);break;case"scalez":e.scaleZ(s[0]);break;case"scale3d":e.scale3d(s[0],s[1],s[2]);break;case"skew":e.skew(s[0],s[1]??0);break;case"skewx":e.skewX(s[0]);break;case"skewy":e.skewY(s[0]);break;case"skewz":e.skewZ(s[0]);break;case"skew3d":e.skew3d(s[0],s[1],s[2]);break;case"m":case"matrix":e.multiply([s[0],s[1],s[2],s[3],s[4],s[5]]);break;case"matrix3d":e.matrix3d.multiply(new eo(s));break}return""}),e}const V={safeAreaTop:q.getCSSVar("--safe-area-inset-top"),safeAreaRight:q.getCSSVar("--safe-area-inset-right"),safeAreaBottom:q.getCSSVar("--safe-area-inset-bottom"),safeAreaLeft:q.getCSSVar("--safe-area-inset-left"),colorPrimary:q.getCSSVar("--color-primary"),colorRed:q.getCSSVar("--color-red"),colorOrange:q.getCSSVar("--color-orange"),colorYellow:q.getCSSVar("--color-yellow"),colorGreen:q.getCSSVar("--color-green"),colorBlue:q.getCSSVar("--color-blue"),colorPurple:q.getCSSVar("--color-purple"),colorBlack:q.getCSSVar("--color-black"),colorGray0:q.getCSSVar("--color-gray-0"),colorGray3:q.getCSSVar("--color-gray-3"),colorGray6:q.getCSSVar("--color-gray-6"),colorGray9:q.getCSSVar("--color-gray-9"),colorGrayCC:q.getCSSVar("--color-gray-cc"),colorGrayDD:q.getCSSVar("--color-gray-dd"),colorGrayE6:q.getCSSVar("--color-gray-e6"),colorGrayEE:q.getCSSVar("--color-gray-ee"),colorGrayEF:q.getCSSVar("--color-gray-ef"),colorGrayF5:q.getCSSVar("--color-gray-f5"),colorGrayFF:q.getCSSVar("--color-gray-ff"),fontLineHeight:q.getCSSVar("--font-line-height"),fontSize32:q.getCSSVar("--font-size-32"),fontSize24:q.getCSSVar("--font-size-24"),fontSize20:q.getCSSVar("--font-size-20"),fontSize18:q.getCSSVar("--font-size-18"),fontSize16:q.getCSSVar("--font-size-16"),fontSize14:q.getCSSVar("--font-size-14"),fontSize12:q.getCSSVar("--font-size-12"),fontSize11:q.getCSSVar("--font-size-11"),gap4:q.getCSSVar("--gap-4"),gap8:q.getCSSVar("--gap-8"),gap12:q.getCSSVar("--gap-12"),gap16:q.getCSSVar("--gap-16"),gap20:q.getCSSVar("--gap-20"),gap40:q.getCSSVar("--gap-40"),height44:q.getCSSVar("--height-44"),height32:q.getCSSVar("--height-32"),borderRadius:q.getCSSVar("--border-radius")},np=function(t){return t[0]==="#"&&(t=t.slice(1)),parseInt(t,16)},ip=function(t,e=1){const o=t>>16&255,n=t>>8&255,i=t&255,s=e<0?0:e>1?1:e;return s===1?"rgb("+o+","+n+","+i+")":"rgba("+o+","+n+","+i+","+s+")"},yl=function(t,e=1){const o=np(t);return ip(o,e)};function ht(t,e){let o=parseInt(t.substring(1,3),16),n=parseInt(t.substring(3,5),16),i=parseInt(t.substring(5,7),16);o==0&&(o=32),n==0&&(n=32),i==0&&(i=32),o=o*(100+e)/100,n=n*(100+e)/100,i=i*(100+e)/100,o=o<255?o:255,n=n<255?n:255,i=i<255?i:255,o=Math.round(o),n=Math.round(n),i=Math.round(i);const s=o.toString(16).length==1?"0"+o.toString(16):o.toString(16),r=n.toString(16).length==1?"0"+n.toString(16):n.toString(16),a=i.toString(16).length==1?"0"+i.toString(16):i.toString(16);return"#"+s+r+a}function bl(t){switch(t){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-in-out":return[.42,0,.58,1];case"ease-out":return[0,0,.58,1]}}const sp={attributeName:["display"],values:[["block","block"]]},Me={easeName:"linear",begin:0,dur:300,repeatCount:1,direction:"normal",fill:"freeze",keyTimes:[0,1]};class ns{currentAnimateName;objects=[];actions=[];constructor(){}hasObjects(){return this.objects.length>0}fromDOM(e){return Array.isArray(e)||(e=[e]),this.objects=[],e.forEach(o=>{const n=pt(o);this.objects.push({width:parseFloat(n.css("width")),height:parseFloat(n.css("height")),dom:n,el:o,originCSSObject:n.css()})}),this}toCSS(e,...o){if(!this.hasObjects())return;switch(this.currentAnimateName=e,this[e](...o),this.objects[0].dom?.parent().css({position:"relative",perspective:"1000px",overflow:"hidden"}),e){default:this.objects.forEach((s,r)=>{s.dom?.css({position:"absolute","z-index":String(1e3+r),"transform-style":"preserve-3d","backface-visibility":"hidden"})});break}let n=0;const i=()=>{this.actions.forEach((s,r)=>{const a=this.objects[s.objectIndex];let l=[],c=[];Array.isArray(s.attributeName)?(l=s.attributeName,c=s.values):s.attributeName&&(l=[s.attributeName],c=[s.values]);const d=s.keyTimes.length,f=gl(a.dom?.css("transform")??"");let u=s.begin;s.keyTimes.forEach((v,b)=>{const y={_matrix:f};l.forEach((k,A)=>{const $=c[A][s.direction=="reverse"?d-b-1:b];this._transformAttributeToCSSObjectUseMatrix(k,$,y)}),b==0?a.dom?.css(Object.assign(y,{transition:""})):(setTimeout(()=>{a.dom?.css(Object.assign(y,{transition:`all ${s.realKeyTimes[b]}ms cubic-bezier(${s.keySplines[b-1].join(",")})`}))},u),u+=s.realKeyTimes[b])}),setTimeout(()=>{s.fill==="remove"&&a.dom?.css(a.originCSSObject??{}),r==this.actions.length-1&&(typeof s.repeatCount=="number"&&++n<s.repeatCount||s.repeatCount=="infinite")&&requestAnimationFrame(()=>{this.currentAnimateName===e&&i()})},s.begin+s.dur)})};i()}_transformAttributeToCSSObjectUseMatrix(e,o,n={}){switch(e){case"translateTo":n._matrix.translateTo(o[0]??0,o[1]??0);break;case"translate":n._matrix.translate(o[0]??0,o[1]??0);break;case"rotate":n._matrix.rotate(o??0);break;case"rotateXTo":n._matrix.rotateXTo(o??0);break;case"rotateYTo":n._matrix.rotateYTo(o??0);break;case"scaleTo":typeof o=="number"?n._matrix.scaleTo(o??1):n._matrix.scaleTo(o[0]??1,o[1]??1);break;case"scale":typeof o=="number"?n._matrix.scale(o??1):n._matrix.scale(o[0]??1,o[1]??1);break;case"scaleX":n._matrix.scale(o??1,1);break;case"scaleY":n._matrix.scale(1,o??1);break;default:Object.assign(n,{[e]:`${o??""}`});break}return Object.assign(n,{transform:n._matrix.toString()}),n}_addAction(e,o=!1){return this.actions=o?[]:this.actions,Array.isArray(e)||(e=[e]),e.forEach(n=>{this.actions.push(Object.assign(n,{realKeyTimes:n.keyTimes.map(i=>n.dur*i)}))}),this}_addAnimate(e=sp,o=Me,n=0,i=!1){const s=o.keyTimes??[0,1],r=[];return s.forEach((a,l)=>{l>0&&r.push(bl(o.easeName??"linear"))}),this._addAction({objectIndex:n,attributeName:e.attributeName,values:e.values,begin:o.begin??0,dur:o.dur??300,keyTimes:s,keySplines:r,repeatCount:o.repeatCount??1,direction:o.direction??"normal",fill:o.fill??"freeze"},i),this}_predefinedAnimate(e,o,n,i,s=Me,r=this.objects.length-1){let a=!0,l=!1,c=!1,d=!1;const f=this.objects.length;r=(r+f)%f;const u=(r-1+f)%f,v=(r+1+f)%f,b=this.objects[r],y=this.objects[u],k=this.objects[v];if(y&&u!==r){const A=e(y);A&&(this._addAnimate(A,s,u,a),a=!1,l=!0)}if(b){const A=o(b);A&&(this._addAnimate(A,s,r,a),a=!1,c=!0)}if(k&&v!==r){const A=n(k);A&&(this._addAnimate(A,s,v,a),a=!1,d=!0)}this.objects.forEach((A,$)=>{if(!($==u&&l||$==r&&c||$==v&&d)){const z=i(A);z&&(this._addAnimate(z,s,$,a),a=!1)}})}flip(e=Me,o=this.objects.length-1){const n=o-1,i=this.objects[n],s=this.objects[o],r=gl(s.dom?.css("transform")??""),a=r.clone();i.dom?.show(),i.dom?.css("opacity","1");const l=i.el?.getBoundingClientRect();i.dom?.css("opacity","0"),s.dom?.show(),s.dom?.css("opacity","1");const c=s.el?.getBoundingClientRect(),d=i.dom?.css("background-color"),f=s.dom?.css("background-color");a.translate((l?.left??0)-(c?.left??0),(l?.top??0)-(c?.top??0)),a.scale((l?.width??1)/(c?.width??1),(l?.height??1)/(c?.height??1));const u={transform:a.toString(),transition:""};d&&Object.assign(u,{"background-color":d}),s.dom?.css(u);const v={transform:r.toString(),transition:`all ${e.dur}ms cubic-bezier(${bl(e.easeName??"linear").join(",")})`};f&&Object.assign(v,{"background-color":f}),setTimeout(()=>{s.dom?.css(v)},e.begin)}slideLeft(e=Me,o=this.objects.length-1){this._predefinedAnimate(n=>({attributeName:["translateTo"],values:[[[0,0],[-n.width,0]]]}),n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[n.width,0],[0,0]]]}),n=>{},n=>({attributeName:["translateTo"],values:[[[-n.width,0],[-n.width,0]]]}),e,o)}slideRight(e=Me,o=this.objects.length-1){this._predefinedAnimate(n=>{},n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[-n.width,0],[0,0]]]}),n=>({attributeName:["translateTo"],values:[[[0,0],[n.width,0]]]}),n=>({attributeName:["translateTo"],values:[[[n.width,0],[n.width,0]]]}),e,o)}slideDown(e=Me,o=this.objects.length-1){this._predefinedAnimate(n=>({attributeName:["translateTo"],values:[[[0,0],[0,n.height]]]}),n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,-n.height],[0,0]]]}),n=>{},n=>({attributeName:["translateTo"],values:[[[0,n.height],[0,n.height]]]}),e,o)}slideUp(e=Me,o=this.objects.length-1){this._predefinedAnimate(n=>({attributeName:["translateTo"],values:[[[0,0],[0,-n.height]]]}),n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,n.height],[0,0]]]}),n=>{},n=>({attributeName:["translateTo"],values:[[[0,-n.height],[0,-n.height]]]}),e,o)}flipLeft(e=Me,o=this.objects.length-1){this._predefinedAnimate(n=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[0,180]]}),n=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[-180,0]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]]}),e,o)}flipRight(e=Me,o=this.objects.length-1){this._predefinedAnimate(n=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[0,-180]]}),n=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[180,0]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]]}),e,o)}flipDown(e=Me,o=this.objects.length-1){this._predefinedAnimate(n=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[0,-180]]}),n=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[180,0]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]]}),e,o)}flipUp(e=Me,o=this.objects.length-1){this._predefinedAnimate(n=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[0,180]]}),n=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[-180,0]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]]}),e,o)}popIn(e=Me,o=this.objects.length-1){this._predefinedAnimate(n=>{},n=>({attributeName:["translateTo","scaleTo","opacity"],values:[[[0,0],[0,0]],[.8,1],[0,1]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]]}),e,o)}popOut(e=Me,o=this.objects.length-1){this._predefinedAnimate(n=>{},n=>({attributeName:["translateTo","scaleTo","opacity"],values:[[[0,0],[0,0]],[1,1.2],[1,0]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]]}),e,o)}rotate(e=Me,o=this.objects.length-1){Object.assign(e,{keyTimes:[0,1]});const n=e.degree??360;this._predefinedAnimate(i=>{},i=>({attributeName:["opacity","rotate"],values:[[1,1],[0,n]]}),i=>{},i=>({attributeName:["opacity"],values:[[0,0]]}),e,o)}}class rp{map;constructor(e,o=120.619585,n=31.299379,i=18){this.map=new T.Map(e),this.map.centerAndZoom(new T.LngLat(o,n),i)}}const ap=X({__name:"Icon.ce",props:{icon:{default:"mdi-light:home"},color:{default:V.colorPrimary}},setup(t){const e=t;return(o,n)=>(D(),B("span",{class:"icon",style:R(["color: "+o.color])},[oe(le(ll),{icon:e.icon,color:o.color},null,8,["icon","color"])],4))}}),lp=`.icon[data-v-b2d9b612]{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;font-size:1em}
|
|
48
|
+
`,ee=(t,e)=>{const o=t.__vccOpts||t;for(const[n,i]of e)o[n]=i;return o},_l=ee(ap,[["styles",[lp]],["__scopeId","data-v-b2d9b612"]]),cp=X({__name:"Icon",props:{icon:{default:"mdi-light:home"},color:{default:V.colorPrimary}},setup(t){const e=t;return(o,n)=>(D(),B("span",{class:"icon",style:R(["color: "+o.color])},[oe(le(ll),{icon:e.icon,color:o.color},null,8,["icon","color"])],4))}}),ov="",et=ee(cp,[["__scopeId","data-v-8789b4ce"]]),is=ee(X({customOptions:{},inheritAttrs:!0,__name:"Button.ce",props:{label:{},icon:{},iconPosition:{default:"left"},isDisabled:{type:Boolean,default:!1},height:{default:"44px"},padding:{default:"20px"},fontSize:{default:"14px"},borderRadius:{default:"4px"},stylePattern:{default:"fullfilled"},borderColor:{},bgColor:{},fontColor:{}},emits:["ceClick","click"],setup(t,{expose:e,emit:o}){const n=t,i=o,s=L();let r,a;const l=L(n.borderColor),c=L(n.bgColor),d=L(n.fontColor);function f(){switch(n.stylePattern){case"outline":r=r??n.borderColor??V.colorPrimary,a=a??n.bgColor??V.colorGrayFF,l.value=l.value??V.colorPrimary,c.value=c.value??V.colorGrayFF,d.value=d.value??V.colorPrimary;break;default:r=r??n.borderColor??V.colorPrimary,a=a??n.bgColor??V.colorPrimary,l.value=l.value??V.colorPrimary,c.value=c.value??V.colorPrimary,d.value=d.value??V.colorGrayFF;break}}f();const u=L(n.isDisabled?"0.6":"1"),v=L(n.isDisabled?"not-allowed":"pointer");let b=!1;const y=()=>{n.isDisabled||(b=!0,l.value=ht(r,10),c.value=ht(a,10))},k=()=>{n.isDisabled||(b=!1,l.value=r,c.value=a)},A=()=>{n.isDisabled||(l.value=ht(r,-10),c.value=ht(a,-10),setTimeout(()=>{b?y():k()},150),i("ceClick"),i("click"))};return e({wrapper:s}),($,z)=>(D(),B("div",{ref_key:"wrapper",ref:s,class:"button",style:R([`opacity: ${u.value}`,`border: 1px solid ${l.value}`,`border-radius: ${n.borderRadius}`,`background-color: ${c.value}`,`color: ${d.value}`,`height: ${n.height}`,`line-height: ${n.height}`,`font-size: ${n.fontSize}`,`cursor: ${v.value}`]),onMouseover:y,onMouseleave:k,onClick:A},[h("label",{class:"label truncate",style:R({padding:"0 "+$.padding,cursor:v.value})},[ue($.$slots,"default",{},()=>[$.icon&&$.iconPosition==="left"?(D(),_e(et,{key:0,icon:$.icon,color:d.value,style:R({marginRight:le(V).gap4,cursor:v.value})},null,8,["icon","color","style"])):fe("",!0),h("span",{style:R({cursor:v.value})},Oe($.label),5),$.icon&&$.iconPosition==="right"?(D(),_e(et,{key:1,icon:$.icon,color:d.value,style:R({marginLeft:le(V).gap4,cursor:v.value})},null,8,["icon","color","style"])):fe("",!0)],!0)],4)],36))}}),[["styles",[`.button[data-v-18fca6ef]{box-sizing:border-box;display:inline-flex;justify-content:center;align-items:center;z-index:0}.label[data-v-18fca6ef]{display:inline-flex;justify-content:center;align-items:center}
|
|
49
|
+
`]],["__scopeId","data-v-18fca6ef"]]),sv="",up={id:"page"},dp=ee(X({__name:"MobileLayout.ce",props:{header:{type:Boolean,default:!0},footer:{type:Boolean,default:!0},left:{type:Boolean,default:!1},right:{type:Boolean,default:!1},designWidth:{default:750}},emits:["triggerHeader","triggerFooter","triggerLeft","triggerRight"],setup(t,{expose:e,emit:o}){const n=t;Qf(n.designWidth);const i=o,s=L(),r=L(),a=L(),l=L(),c=L("0");se(s,(M,I)=>{typeof M<"u"&&M!==I&&(c.value=pt(s.value).css("height"))});const d=L("0");se(r,(M,I)=>{typeof M<"u"&&M!==I&&(d.value=pt(r.value).css("height"))});const f=L("0");se(a,(M,I)=>{typeof M<"u"&&M!==I&&(f.value=pt(a.value).css("width"))});const u=L("0");se(l,(M,I)=>{typeof M<"u"&&M!==I&&(u.value=pt(l.value).css("width"))}),window.addEventListener("orientationchange"in window?"orientationchange":"resize",()=>{c.value=pt(s.value).css("height"),d.value=pt(r.value).css("height"),f.value=pt(a.value).css("width"),u.value=pt(l.value).css("width")},!1);const v=new ns;let b=L(n.header);const y=()=>{s.value&&(v.fromDOM([s.value]),v.toCSS("slideDown",{easeName:"ease-in",dur:150,direction:b.value?"reverse":"normal"}),b.value=!b.value,i("triggerHeader",b.value))};let k=L(n.footer);const A=()=>{r.value&&(v.fromDOM([r.value]),v.toCSS("slideUp",{easeName:"ease-in",dur:150,direction:k.value?"reverse":"normal"}),k.value=!k.value,i("triggerFooter",k.value))};let $=L(n.left);const z=()=>{a.value&&(v.fromDOM([a.value]),v.toCSS("slideRight",{easeName:"ease-in",dur:150,direction:$.value?"reverse":"normal"}),$.value=!$.value,i("triggerLeft",$.value))};let G=L(n.right);return e({triggerHeader:y,triggerFooter:A,triggerLeft:z,triggerRight:()=>{l.value&&(v.fromDOM([l.value]),v.toCSS("slideLeft",{easeName:"ease-in",dur:150,direction:G.value?"reverse":"normal"}),G.value=!G.value,i("triggerRight",G.value))}}),(M,I)=>(D(),B("div",up,[h("header",{id:"header",ref_key:"refHeader",ref:s,style:R({transform:M.header?"translate(0, 0)":`translate(0, -${c.value})`})},[ue(M.$slots,"header",{},void 0,!0)],4),h("div",{id:"main",style:R({paddingTop:le(b)?c.value:0,paddingBottom:le(k)?d.value:0})},[ue(M.$slots,"main",{},void 0,!0)],4),h("footer",{id:"footer",ref_key:"refFooter",ref:r,style:R({transform:M.footer?"translate(0, 0)":`translate(0, ${d.value})`})},[ue(M.$slots,"footer",{},void 0,!0)],4),h("div",{id:"left",ref_key:"refLeft",ref:a,style:R({transform:M.left?"translate(0, 0)":`translate(-${f.value}, 0)`})},[ue(M.$slots,"left",{},void 0,!0)],4),h("div",{id:"right",ref_key:"refRight",ref:l,style:R({transform:M.right?"translate(0, 0)":`translate(${u.value}, 0)`})},[ue(M.$slots,"right",{},void 0,!0)],4)]))}}),[["styles",[`#page[data-v-b1a4c34e]{width:100%;height:100%;position:relative;overflow:hidden;display:flex;flex-direction:column}#header[data-v-b1a4c34e]{position:absolute;left:0;top:0;z-index:200;width:100%}#footer[data-v-b1a4c34e]{position:absolute;left:0;bottom:0;z-index:200;width:100%}#main[data-v-b1a4c34e]{flex:1 1 auto;overflow-y:scroll;display:flex;flex-direction:column}#main[data-v-b1a4c34e]>:nth-child(1){flex:1 1 auto}#left[data-v-b1a4c34e]{position:absolute;left:0;top:0;z-index:200;height:100%}#right[data-v-b1a4c34e]{position:absolute;right:0;top:0;z-index:200;height:100%}
|
|
50
|
+
`]],["__scopeId","data-v-b1a4c34e"]]),fp={class:"content-fixed",style:{position:"fixed","z-index":"2001",inset:"0","overflow-y":"auto"}},pp={class:"content-relative",style:{position:"relative",width:"100%",height:"100%"}},hp=X({customOptions:{},inheritAttrs:!0,__name:"Overlay.ce",props:{visible:{type:Boolean},bgColor:{default:yl(V.colorGray0,.25)}},setup(t,{expose:e,emit:o}){const n=t;function i(s){s?(document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden"):(document.documentElement.style.overflow="",document.body.style.overflow="")}return se(()=>n.visible,()=>{i(n.visible)},{immediate:!0}),e({}),(s,r)=>s.visible?(D(),B("div",{key:0,class:"overlay",style:R([{position:"fixed","z-index":"2000",inset:"0"},["background-color: "+n.bgColor]])},[h("div",fp,[h("div",pp,[ue(s.$slots,"default",{},void 0,!0)])])],4)):fe("",!0)}}),ss=ee(hp,[["styles",[""]],["__scopeId","data-v-d5a65c1f"]]),mp={class:"content-fixed",style:{position:"fixed","z-index":"2001",inset:"0","overflow-y":"auto"}},vp={class:"content-relative",style:{position:"relative",width:"100%",height:"100%"}},gp=X({customOptions:{},inheritAttrs:!0,__name:"Overlay",props:{visible:{type:Boolean},bgColor:{default:yl(V.colorGray0,.25)}},setup(t,{expose:e,emit:o}){const n=t;function i(s){s?(document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden"):(document.documentElement.style.overflow="",document.body.style.overflow="")}return se(()=>n.visible,()=>{i(n.visible)},{immediate:!0}),e({}),(s,r)=>s.visible?(D(),B("div",{key:0,class:"overlay",style:R([{position:"fixed","z-index":"2000",inset:"0"},["background-color: "+n.bgColor]])},[h("div",mp,[h("div",vp,[ue(s.$slots,"default",{},void 0,!0)])])],4)):fe("",!0)}}),cv="",Ut=ee(gp,[["__scopeId","data-v-00083274"]]),to=ee(X({customOptions:{Overlay:Ut},inheritAttrs:!0,__name:"Pop.ce",props:{closeWhenClickOverlay:{type:Boolean,default:!0},directionFrom:{default:"bottom"},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close"],setup(t,{expose:e,emit:o}){const n=t,i=o,s=L();let r;const a=Fe({}),l=Fe({});se(()=>n.directionFrom,()=>{switch(n.directionFrom){case"absolute":r="",a.display="block";break;case"top":r="slideDown",a.display="block",l.width="100%",l.top="0",l.left="0";break;case"left":r="slideRight",a.display="block",l.height="100%",l.top="0",l.left="0";break;case"right":r="slideLeft",a.display="block",l.height="100%",l.top="0",l.right="0";break;case"bottom":r="slideUp",a.display="block",l.width="100%",l.bottom="0",l.left="0";break;case"center":default:r="popIn",a.display="flex",a.justifyContent="center",a.alignItems="center";break}},{immediate:!0});const c=new ns,d=(y=!0)=>{r&&(y?se(s,()=>{s.value&&(c.fromDOM(s.value),c.toCSS(r,{easeName:"ease",dur:n.openDurTime}))},{once:!0}):c.toCSS(r,{easeName:"ease",dur:n.closeDurTime,direction:"reverse"}))},f=L(!1);function u(y){y.target.contains(s.value)&&n.closeWhenClickOverlay&&b()}function v(){f.value=!0,d(!0),i("open")}function b(){d(!1),i("close"),setTimeout(()=>{f.value=!1},n.closeDurTime)}return e({open:v,close:b}),(y,k)=>(D(),_e(Ut,{visible:f.value},{default:Ce(()=>[h("div",{class:"pop-parent",style:R([{position:"relative",width:"100%",height:"100%"},a]),onClick:u},[h("div",{ref_key:"pop",ref:s,class:"pop",style:R([{position:"absolute"},l])},[ue(y.$slots,"default",{},void 0,!0)],4)],4)]),_:3},8,["visible"]))}}),[["styles",[""]],["__scopeId","data-v-4aaf6547"]]),yp=X({customOptions:{Overlay:Ut},inheritAttrs:!0,__name:"Pop",props:{closeWhenClickOverlay:{type:Boolean,default:!0},directionFrom:{default:"bottom"},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close"],setup(t,{expose:e,emit:o}){const n=t,i=o,s=L();let r;const a=Fe({}),l=Fe({});se(()=>n.directionFrom,()=>{switch(n.directionFrom){case"absolute":r="",a.display="block";break;case"top":r="slideDown",a.display="block",l.width="100%",l.top="0",l.left="0";break;case"left":r="slideRight",a.display="block",l.height="100%",l.top="0",l.left="0";break;case"right":r="slideLeft",a.display="block",l.height="100%",l.top="0",l.right="0";break;case"bottom":r="slideUp",a.display="block",l.width="100%",l.bottom="0",l.left="0";break;case"center":default:r="popIn",a.display="flex",a.justifyContent="center",a.alignItems="center";break}},{immediate:!0});const c=new ns,d=(y=!0)=>{r&&(y?se(s,()=>{s.value&&(c.fromDOM(s.value),c.toCSS(r,{easeName:"ease",dur:n.openDurTime}))},{once:!0}):c.toCSS(r,{easeName:"ease",dur:n.closeDurTime,direction:"reverse"}))},f=L(!1);function u(y){y.target.contains(s.value)&&n.closeWhenClickOverlay&&b()}function v(){f.value=!0,d(!0),i("open")}function b(){d(!1),i("close"),setTimeout(()=>{f.value=!1},n.closeDurTime)}return e({open:v,close:b}),(y,k)=>(D(),_e(Ut,{visible:f.value},{default:Ce(()=>[h("div",{class:"pop-parent",style:R([{position:"relative",width:"100%",height:"100%"},a]),onClick:u},[h("div",{ref_key:"pop",ref:s,class:"pop",style:R([{position:"absolute"},l])},[ue(y.$slots,"default",{},void 0,!0)],4)],4)]),_:3},8,["visible"]))}}),fv="",ze=ee(yp,[["__scopeId","data-v-0fad8ec7"]]),bp=X({customOptions:{},inheritAttrs:!0,__name:"Button",props:{label:{},icon:{},iconPosition:{default:"left"},isDisabled:{type:Boolean,default:!1},height:{default:"44px"},padding:{default:"20px"},fontSize:{default:"14px"},borderRadius:{default:"4px"},stylePattern:{default:"fullfilled"},borderColor:{},bgColor:{},fontColor:{}},emits:["ceClick","click"],setup(t,{expose:e,emit:o}){const n=t,i=o,s=L();let r,a;const l=L(n.borderColor),c=L(n.bgColor),d=L(n.fontColor);function f(){switch(n.stylePattern){case"outline":r=r??n.borderColor??V.colorPrimary,a=a??n.bgColor??V.colorGrayFF,l.value=l.value??V.colorPrimary,c.value=c.value??V.colorGrayFF,d.value=d.value??V.colorPrimary;break;default:r=r??n.borderColor??V.colorPrimary,a=a??n.bgColor??V.colorPrimary,l.value=l.value??V.colorPrimary,c.value=c.value??V.colorPrimary,d.value=d.value??V.colorGrayFF;break}}f();const u=L(n.isDisabled?"0.6":"1"),v=L(n.isDisabled?"not-allowed":"pointer");let b=!1;const y=()=>{n.isDisabled||(b=!0,l.value=ht(r,10),c.value=ht(a,10))},k=()=>{n.isDisabled||(b=!1,l.value=r,c.value=a)},A=()=>{n.isDisabled||(l.value=ht(r,-10),c.value=ht(a,-10),setTimeout(()=>{b?y():k()},150),i("ceClick"),i("click"))};return e({wrapper:s}),($,z)=>(D(),B("div",{ref_key:"wrapper",ref:s,class:"button",style:R([`opacity: ${u.value}`,`border: 1px solid ${l.value}`,`border-radius: ${n.borderRadius}`,`background-color: ${c.value}`,`color: ${d.value}`,`height: ${n.height}`,`line-height: ${n.height}`,`font-size: ${n.fontSize}`,`cursor: ${v.value}`]),onMouseover:y,onMouseleave:k,onClick:A},[h("label",{class:"label truncate",style:R({padding:"0 "+$.padding,cursor:v.value})},[ue($.$slots,"default",{},()=>[$.icon&&$.iconPosition==="left"?(D(),_e(et,{key:0,icon:$.icon,color:d.value,style:R({marginRight:le(V).gap4,cursor:v.value})},null,8,["icon","color","style"])):fe("",!0),h("span",{style:R({cursor:v.value})},Oe($.label),5),$.icon&&$.iconPosition==="right"?(D(),_e(et,{key:1,icon:$.icon,color:d.value,style:R({marginLeft:le(V).gap4,cursor:v.value})},null,8,["icon","color","style"])):fe("",!0)],!0)],4)],36))}}),pv="",He=ee(bp,[["__scopeId","data-v-bfabd99a"]]),_p={class:"dialog-wrap"},xp={class:"dialog"},wp={key:0,class:"title"},Ep={key:0,class:"title-inner truncate"},Cp={class:"custom-content"},kp={key:1,class:"btns"},rs=ee(X({customOptions:{Overlay:Ut,Pop:ze,Icon:et,Button:He},inheritAttrs:!0,__name:"Dialog.ce",props:{title:{default:"通知"},content:{default:"..."},showTitle:{type:Boolean,default:!0},showClose:{type:Boolean,default:!1},showCancel:{type:Boolean,default:!1},showConfirm:{type:Boolean,default:!0},closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close","cancel","confirm"],setup(t,{expose:e,emit:o}){const n=t,i=o,s=L();function r(){s.value.open(),i("open")}function a(){s.value.close(),i("close")}function l(){a(),i("cancel")}function c(){a(),i("confirm")}return e({open:r,close:a}),(d,f)=>(D(),_e(ze,{ref_key:"popRef",ref:s,directionFrom:"center",closeWhenClickOverlay:n.closeWhenClickOverlay,openDurTime:n.openDurTime,closeDurTime:n.closeDurTime},{default:Ce(()=>[h("div",_p,[h("div",xp,[d.showTitle||d.showClose?(D(),B("div",wp,[d.showTitle?(D(),B("div",Ep,Oe(d.title),1)):fe("",!0),d.showClose?(D(),_e(et,{key:1,class:"close",icon:"ic:baseline-close",color:le(V).colorGrayCC,onClick:a},null,8,["color"])):fe("",!0)])):fe("",!0),h("div",Cp,[ue(d.$slots,"default",{},()=>[dt(Oe(d.content),1)],!0)]),d.showCancel||d.showConfirm?(D(),B("div",kp,[d.showCancel?(D(),_e(He,{key:0,onClick:l,class:"btn",bgColor:le(V).colorGrayE6,borderColor:le(V).colorGrayE6,fontColor:le(V).colorGray3,borderRadius:"0"},{default:Ce(()=>[dt(" 取消 ")]),_:1},8,["bgColor","borderColor","fontColor"])):fe("",!0),d.showConfirm?(D(),_e(He,{key:1,onClick:c,class:"btn",borderRadius:"0"},{default:Ce(()=>[dt(" 确定 ")]),_:1})):fe("",!0)])):fe("",!0)])])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),[["styles",[`.dialog-wrap[data-v-98fe6558]{display:flex;justify-content:center;align-items:center}.dialog[data-v-98fe6558]{border-radius:8px;background-color:#fff;min-width:20em;max-width:50%;overflow:hidden}.title[data-v-98fe6558]{position:relative;font-size:20px;min-height:20px;margin-top:1em}.title-inner[data-v-98fe6558]{font-weight:700;min-height:20px;padding:0 2em;text-align:center}.close[data-v-98fe6558]{position:absolute;top:0;right:0;width:2em;height:100%;font-size:1.2em}.custom-content[data-v-98fe6558]{font-size:16px;padding:1em;word-break:break-all}.btns[data-v-98fe6558]{display:flex;justify-content:center}.btn[data-v-98fe6558]{flex:1 1 auto;border-radius:0}
|
|
51
|
+
`]],["__scopeId","data-v-98fe6558"]]),Np=X({__name:"SVGLoading.ce",props:{width:{default:"4em"},color:{default:V.colorPrimary}},setup(t){const e=t;return(o,n)=>(D(),B("svg",{viewBox:"25 25 50 50",style:R(["width: "+e.width])},[h("circle",{cx:"50",cy:"50",r:"20",style:R(["stroke: "+e.color])},null,4)],4))}}),Op=ee(Np,[["styles",[`svg[data-v-98779112]{transform-origin:center;animation:rotate-98779112 2s linear infinite}circle[data-v-98779112]{fill:none;stroke-width:3;stroke-dasharray:1,200;stroke-dashoffset:0;stroke-linecap:round;animation:dash-98779112 1.5s ease-in-out infinite}@keyframes rotate-98779112{to{transform:rotate(360deg)}}@keyframes dash-98779112{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,200;stroke-dashoffset:-35px}to{stroke-dashoffset:-125px}}
|
|
52
|
+
`]],["__scopeId","data-v-98779112"]]),Sp={class:"dialog-wrap"},$p={class:"dialog"},Tp={key:0,class:"title"},Dp={key:0,class:"title-inner truncate"},Pp={class:"custom-content"},Lp={key:1,class:"btns"},Vp=X({customOptions:{Overlay:Ut,Pop:ze,Icon:et,Button:He},inheritAttrs:!0,__name:"Dialog",props:{title:{default:"通知"},content:{default:"..."},showTitle:{type:Boolean,default:!0},showClose:{type:Boolean,default:!1},showCancel:{type:Boolean,default:!1},showConfirm:{type:Boolean,default:!0},closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close","cancel","confirm"],setup(t,{expose:e,emit:o}){const n=t,i=o,s=L();function r(){s.value.open(),i("open")}function a(){s.value.close(),i("close")}function l(){a(),i("cancel")}function c(){a(),i("confirm")}return e({open:r,close:a}),(d,f)=>(D(),_e(ze,{ref_key:"popRef",ref:s,directionFrom:"center",closeWhenClickOverlay:n.closeWhenClickOverlay,openDurTime:n.openDurTime,closeDurTime:n.closeDurTime},{default:Ce(()=>[h("div",Sp,[h("div",$p,[d.showTitle||d.showClose?(D(),B("div",Tp,[d.showTitle?(D(),B("div",Dp,Oe(d.title),1)):fe("",!0),d.showClose?(D(),_e(et,{key:1,class:"close",icon:"ic:baseline-close",color:le(V).colorGrayCC,onClick:a},null,8,["color"])):fe("",!0)])):fe("",!0),h("div",Pp,[ue(d.$slots,"default",{},()=>[dt(Oe(d.content),1)],!0)]),d.showCancel||d.showConfirm?(D(),B("div",Lp,[d.showCancel?(D(),_e(He,{key:0,onClick:l,class:"btn",bgColor:le(V).colorGrayE6,borderColor:le(V).colorGrayE6,fontColor:le(V).colorGray3,borderRadius:"0"},{default:Ce(()=>[dt(" 取消 ")]),_:1},8,["bgColor","borderColor","fontColor"])):fe("",!0),d.showConfirm?(D(),_e(He,{key:1,onClick:c,class:"btn",borderRadius:"0"},{default:Ce(()=>[dt(" 确定 ")]),_:1})):fe("",!0)])):fe("",!0)])])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),gv="",xl=ee(Vp,[["__scopeId","data-v-002ae342"]]),Ip=X({__name:"SVGLoading",props:{width:{default:"4em"},color:{default:V.colorPrimary}},setup(t){const e=t;return(o,n)=>(D(),B("svg",{viewBox:"25 25 50 50",style:R(["width: "+e.width])},[h("circle",{cx:"50",cy:"50",r:"20",style:R(["stroke: "+e.color])},null,4)],4))}}),yv="",wl=ee(Ip,[["__scopeId","data-v-29f8de14"]]),Mp={class:"loading"},Ap={class:"icon"},Rp={key:0,class:"content"},El=ee(X({customOptions:{Overlay:Ut,Pop:ze,Dialog:xl,SVGLoading:wl},inheritAttrs:!0,__name:"DialogLoading.ce",props:{content:{},closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close"],setup(t,{expose:e,emit:o}){const n=t,i=o,s=L();function r(){s.value.open(),i("open")}function a(){s.value.close(),i("close")}return e({open:r,close:a}),(l,c)=>(D(),_e(xl,{ref_key:"dialogRef",ref:s,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:n.closeWhenClickOverlay,openDurTime:n.openDurTime,closeDurTime:n.closeDurTime},{default:Ce(()=>[h("div",Mp,[h("div",Ap,[ue(l.$slots,"default",{},()=>[oe(wl)],!0)]),l.content?(D(),B("div",Rp,Oe(l.content),1)):fe("",!0)])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),[["styles",[`.loading[data-v-f95be0da]{display:flex;flex-direction:column;justify-content:center;align-items:center}.icon[data-v-f95be0da]{padding:2em 0}.content[data-v-f95be0da]{font-size:1em;margin-top:-1em;margin-bottom:1em}
|
|
53
|
+
`]],["__scopeId","data-v-f95be0da"]]),jp=["onClick","value"],Fp=ee(X({customOptions:{Icon:et,Button:He},__name:"Select.ce",props:{options:{},initIndex:{default:0},fontSize:{default:"14px"}},emits:["change"],setup(t,{emit:e}){const o=t,n=e,i=function(){return{"--select-option-bg-color":V.colorGrayFF,"--select-option-bg-color-hover":V.colorGrayF5}},s=L(!1),r=L(o.initIndex);se(r,function(){n("change",o.options[r.value])});function a(){s.value=!s.value}function l(c){r.value=c,s.value=!1}return(c,d)=>(D(),B("div",{class:"wrap",style:R(["font-size:"+c.fontSize])},[h("div",{onClick:a},[ue(c.$slots,"button",{selectedIndex:r.value},()=>[oe(He,{icon:"carbon:chevron-sort",iconPosition:"right",label:c.options[r.value],style:{width:"100%"}},null,8,["label"])],!0)]),hi(h("div",{class:"options",style:R({border:"1px solid "+le(V).colorGrayCC})},[(D(!0),B(be,null,Xt(c.options,(f,u)=>(D(),B("div",{onClick:v=>l(u),class:"option",key:u,value:u,style:R({borderTop:(u==0?"0":"1px")+" solid "+le(V).colorGrayCC})},[h("div",{class:"option-inner",style:i},[ue(c.$slots,"default",{item:f,index:u},()=>[h("span",null,Oe(f),1),u==r.value?(D(),_e(et,{key:0,icon:"mingcute:check-fill",class:"icon"})):fe("",!0)],!0)])],12,jp))),128))],4),[[xn,s.value]])],4))}}),[["styles",[`.wrap[data-v-fd1230c0]{display:inline-block;position:relative}.button[data-v-fd1230c0]{position:relative;width:100%;border-width:0;display:flex;justify-content:center;padding:0}.options[data-v-fd1230c0]{position:relative;width:100%;text-align:center;margin:0;padding:0;box-sizing:border-box}.option[data-v-fd1230c0]{cursor:pointer}.option-inner[data-v-fd1230c0]{padding:.5em 1em .5em .5em;display:flex;justify-content:center;align-items:center;position:relative;background-color:var(--select-option-bg-color)}.option-inner[data-v-fd1230c0]:hover{background-color:var(--select-option-bg-color-hover)}.icon[data-v-fd1230c0]{position:absolute;right:.5em;top:50%;transform:translateY(-50%)}
|
|
54
|
+
`]],["__scopeId","data-v-fd1230c0"]]),zp=X({__name:"Switch.ce",props:{init:{type:Boolean,default:!1},width:{default:"52px"},height:{default:"32px"},padding:{default:"4px"},colorPrimary:{default:V.colorPrimary},colorBgOn:{default:V.colorGrayEF},colorBgOff:{default:V.colorGrayF5}},emits:["change"],setup(t,{emit:e}){const o=t;function n(v){const b=Rd("number",v);return{number:b.fullMatch?parseFloat(b.fullMatch):0,suffix:b.fullMatch?v.substring(b.matchIndex+b.fullMatch.length+1):""}}const i=n(o.width),s=n(o.height),r=n(o.padding),a=s.number-r.number*2+s.suffix,l=o.padding,c=i.number-n(l).number-n(a).number+i.suffix,d=e,f=L(o.init);se(f,function(){d("change",f.value)});function u(){f.value=!f.value}return(v,b)=>(D(),B("div",{class:"switch",onClick:u,style:R(["width: "+o.width,"height: "+o.height,"background-color: "+(f.value?o.colorBgOn:o.colorBgOff)])},[h("span",{class:"round",style:R(["width: "+a,"height: "+a,"background-color: "+(f.value?o.colorPrimary:le(ht)(o.colorPrimary,30)),"transform: translate("+(f.value?c:le(l))+", 0)"])},null,4)],4))}}),Hp=ee(zp,[["styles",[`.switch[data-v-6bad62b2]{position:relative;display:inline-flex;align-items:center;flex-shrink:0;cursor:pointer;border-radius:9999px;box-sizing:border-box;transition:all .2s cubic-bezier(.4,0,.2,1)}.round[data-v-6bad62b2]{pointer-events:none;display:inline-block;box-sizing:border-box;border-radius:9999px;transition:all .2s cubic-bezier(.4,0,.2,1)}
|
|
55
|
+
`]],["__scopeId","data-v-6bad62b2"]]),Bp={class:"wrap"},Wp=["onClick"],Up=["stroke","fill"],Gp=["stroke","fill"],Kp=["stroke"],qp=X({customOptions:{},__name:"RadioGroup.ce",props:{options:{},initIndexs:{},isRounded:{type:Boolean,default:!0},isFullfilled:{type:Boolean,default:!1},colorPath:{default:V.colorPrimary},colorBg:{default:V.colorGrayFF},colorBorder:{default:V.colorGrayCC},fontSize:{default:V.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(t,{emit:e}){const o=t,n=e,i=L(o.colorPath),s=L(o.colorBg),r=L(o.colorBorder);o.isFullfilled&&(i.value=o.colorBg,s.value=o.colorPath,r.value=o.colorPath);let a=L(o.initIndexs??0);se(a,function(){n("change",o.options[a.value])});const l=function(c){a.value=c};return(c,d)=>(D(),B("div",Bp,[(D(!0),B(be,null,Xt(c.options,(f,u)=>(D(),B("span",{class:"item",key:u,onClick:v=>l(u),style:R(["margin-left:"+(u>0?o.itemPadding:0)])},[ue(c.$slots,"default",{label:f,index:u},()=>[(D(),B("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:R(["margin-right:"+o.labelPadding,"width:"+o.itemWidth])},[o.isRounded?fe("",!0):(D(),B("rect",{key:0,x:"0",y:"0",width:"22",height:"22",stroke:r.value,"strke-width":"1",fill:s.value,"fill-opacity":1},null,8,Up)),o.isRounded?(D(),B("circle",{key:1,cx:"12",cy:"12",r:"11",stroke:r.value,"strke-width":"1",fill:s.value,"fill-opacity":1},null,8,Gp)):fe("",!0),hi(h("path",{d:"M7 13l3 3 7-7",stroke:i.value,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Kp),[[xn,le(a)===u]])],4)),h("span",{style:R(["font-size:"+o.fontSize])},Oe(f),5)],!0)],12,Wp))),128))]))}}),Yp=ee(qp,[["styles",[`.wrap[data-v-9a00674d]{display:inline-block;position:relative}.item[data-v-9a00674d]{display:inline-flex;justify-content:flex-start;align-items:center;cursor:pointer}.icon[data-v-9a00674d]{flex:0 0 auto;box-sizing:border-box;display:inline-flex;justify-content:flex-start;align-items:center;transition:border-color .2s ease-in-out,background-color .2s ease-in-out}
|
|
56
|
+
`]],["__scopeId","data-v-9a00674d"]]),Zp={class:"wrap"},Xp=["onClick"],Jp=["stroke","fill"],Qp=["stroke","fill"],eh=["stroke"],th=X({customOptions:{},__name:"CheckboxGroup.ce",props:{options:{},initIndexs:{},isRounded:{type:Boolean,default:!1},isFullfilled:{type:Boolean,default:!1},colorPath:{default:V.colorPrimary},colorBg:{default:V.colorGrayFF},colorBorder:{default:V.colorGrayCC},fontSize:{default:V.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(t,{emit:e}){const o=t,n=e,i=L(o.colorPath),s=L(o.colorBg),r=L(o.colorBorder);o.isFullfilled&&(i.value=o.colorBg,s.value=o.colorPath,r.value=o.colorPath);let a=Fe(o.initIndexs??[0]);se(a,function(){n("change",a.map(c=>o.options[c]))});const l=function(c){const d=a.findIndex(f=>f===c);d>=0?a.splice(d,1):a.push(c)};return(c,d)=>(D(),B("div",Zp,[(D(!0),B(be,null,Xt(c.options,(f,u)=>(D(),B("span",{class:"item",key:u,onClick:v=>l(u),style:R(["margin-left:"+(u>0?o.itemPadding:0)])},[ue(c.$slots,"default",{label:f,index:u},()=>[(D(),B("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:R(["margin-right:"+o.labelPadding,"width:"+o.itemWidth])},[o.isRounded?fe("",!0):(D(),B("rect",{key:0,x:"0",y:"0",width:"22",height:"22",stroke:r.value,"strke-width":"1",fill:s.value,"fill-opacity":1},null,8,Jp)),o.isRounded?(D(),B("circle",{key:1,cx:"12",cy:"12",r:"11",stroke:r.value,"strke-width":"1",fill:s.value,"fill-opacity":1},null,8,Qp)):fe("",!0),hi(h("path",{d:"M7 13l3 3 7-7",stroke:i.value,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,eh),[[xn,le(a).findIndex(v=>v===u)>=0]])],4)),h("span",{style:R(["font-size:"+o.fontSize])},Oe(f),5)],!0)],12,Xp))),128))]))}}),oh=ee(th,[["styles",[`.wrap[data-v-f418d0bb]{display:inline-block;position:relative}.item[data-v-f418d0bb]{display:inline-flex;justify-content:flex-start;align-items:center;cursor:pointer}.icon[data-v-f418d0bb]{flex:0 0 auto;box-sizing:border-box;display:inline-flex;justify-content:flex-start;align-items:center;transition:border-color .2s ease-in-out,background-color .2s ease-in-out}
|
|
57
|
+
`]],["__scopeId","data-v-f418d0bb"]]),nh=(t=>(_o("data-v-b2152bcf"),t=t(),xo(),t))(()=>h("div",{style:{"background-color":"#ffffff"}},"popover-default-panel",-1)),as=ee(X({customOptions:{Pop:ze,Button:He},inheritAttrs:!0,__name:"Popover.ce",props:{gap:{default:10}},setup(t){const e=t,o=L(),n=L(),i=L(),s=Fe({left:"0",top:"0"});se(n,()=>{r()}),se(i,()=>{r()});function r(){if(!n.value||!i.value)return;const l=Ji(),c=n.value.getBoundingClientRect(),d=i.value.getBoundingClientRect(),f=d.width,u=d.height;let v=c.x+c.width+e.gap,b=c.y;v=Math.max(e.gap,Math.min(v,l.width-f-e.gap)),b=Math.max(e.gap,Math.min(b,l.height-u-e.gap)),s.left=`${v}px`,s.top=`${b}px`}function a(){o.value.open()}return(l,c)=>(D(),B(be,null,[h("div",{ref_key:"popoverButtonRef",ref:n,style:{display:"inline-block"},onClick:a},[ue(l.$slots,"button",{},()=>[oe(He,null,{default:Ce(()=>[dt("popover-default-button")]),_:1})],!0)],512),oe(ze,{ref_key:"popRef",ref:o,"direction-from":"absolute"},{default:Ce(()=>[h("div",{ref_key:"popoverPanelRef",ref:i,style:R([{display:"inline-block",position:"absolute"},s])},[ue(l.$slots,"panel",{},()=>[nh],!0)],4)]),_:3},512)],64))}}),[["styles",[""]],["__scopeId","data-v-b2152bcf"]]),ih=(t=>(_o("data-v-943bcc32"),t=t(),xo(),t))(()=>h("div",{style:{"background-color":"#ffffff"}},"popover-default-panel",-1)),sh=X({customOptions:{Pop:ze,Button:He},inheritAttrs:!0,__name:"Popover",props:{gap:{default:10}},setup(t){const e=t,o=L(),n=L(),i=L(),s=Fe({left:"0",top:"0"});se(n,()=>{r()}),se(i,()=>{r()});function r(){if(!n.value||!i.value)return;const l=Ji(),c=n.value.getBoundingClientRect(),d=i.value.getBoundingClientRect(),f=d.width,u=d.height;let v=c.x+c.width+e.gap,b=c.y;v=Math.max(e.gap,Math.min(v,l.width-f-e.gap)),b=Math.max(e.gap,Math.min(b,l.height-u-e.gap)),s.left=`${v}px`,s.top=`${b}px`}function a(){o.value.open()}return(l,c)=>(D(),B(be,null,[h("div",{ref_key:"popoverButtonRef",ref:n,style:{display:"inline-block"},onClick:a},[ue(l.$slots,"button",{},()=>[oe(He,null,{default:Ce(()=>[dt("popover-default-button")]),_:1})],!0)],512),oe(ze,{ref_key:"popRef",ref:o,"direction-from":"absolute"},{default:Ce(()=>[h("div",{ref_key:"popoverPanelRef",ref:i,style:R([{display:"inline-block",position:"absolute"},s])},[ue(l.$slots,"panel",{},()=>[ih],!0)],4)]),_:3},512)],64))}}),Tv="",Cl=ee(sh,[["__scopeId","data-v-943bcc32"]]),oo=(t,e=0,o=1)=>t>o?o:t<e?e:t,ke=(t,e=0,o=Math.pow(10,e))=>Math.round(o*t)/o,rh=t=>uh(ls(t)),ls=t=>(t[0]==="#"&&(t=t.substring(1)),t.length<6?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:t.length===4?ke(parseInt(t[3]+t[3],16)/255,2):1}:{r:parseInt(t.substring(0,2),16),g:parseInt(t.substring(2,4),16),b:parseInt(t.substring(4,6),16),a:t.length===8?ke(parseInt(t.substring(6,8),16)/255,2):1}),ah=t=>ch(lh(t)),kl=({h:t,s:e,v:o,a:n})=>{const i=(200-e)*o/100;return{h:ke(t),s:ke(i>0&&i<200?e*o/100/(i<=100?i:200-i)*100:0),l:ke(i/2),a:ke(n,2)}},cs=t=>{const{h:e,s:o,l:n}=kl(t);return`hsl(${e}, ${o}%, ${n}%)`},us=t=>{const{h:e,s:o,l:n,a:i}=kl(t);return`hsla(${e}, ${o}%, ${n}%, ${i})`},lh=({h:t,s:e,v:o,a:n})=>{t=t/360*6,e=e/100,o=o/100;const i=Math.floor(t),s=o*(1-e),r=o*(1-(t-i)*e),a=o*(1-(1-t+i)*e),l=i%6;return{r:ke([o,r,s,s,a,o][l]*255),g:ke([a,o,o,r,s,s][l]*255),b:ke([s,s,a,o,o,r][l]*255),a:ke(n,2)}},Vn=t=>{const e=t.toString(16);return e.length<2?"0"+e:e},ch=({r:t,g:e,b:o,a:n})=>{const i=n<1?Vn(ke(n*255)):"";return"#"+Vn(t)+Vn(e)+Vn(o)+i},uh=({r:t,g:e,b:o,a:n})=>{const i=Math.max(t,e,o),s=i-Math.min(t,e,o),r=s?i===t?(e-o)/s:i===e?2+(o-t)/s:4+(t-e)/s:0;return{h:ke(60*(r<0?r+6:r)),s:ke(i?s/i*100:0),v:ke(i/255*100),a:n}},Nl=(t,e)=>{if(t===e)return!0;for(const o in t)if(t[o]!==e[o])return!1;return!0},dh=(t,e)=>t.toLowerCase()===e.toLowerCase()?!0:Nl(ls(t),ls(e)),Ol={},Sl=t=>{let e=Ol[t];return e||(e=document.createElement("template"),e.innerHTML=t,Ol[t]=e),e},ds=(t,e,o)=>{t.dispatchEvent(new CustomEvent(e,{bubbles:!0,detail:o}))};let no=!1;const fs=t=>"touches"in t,fh=t=>no&&!fs(t)?!1:(no||(no=fs(t)),!0),$l=(t,e)=>{const o=fs(e)?e.touches[0]:e,n=t.el.getBoundingClientRect();ds(t.el,"move",t.getMove({x:oo((o.pageX-(n.left+window.pageXOffset))/n.width),y:oo((o.pageY-(n.top+window.pageYOffset))/n.height)}))},ph=(t,e)=>{const o=e.keyCode;o>40||t.xy&&o<37||o<33||(e.preventDefault(),ds(t.el,"move",t.getMove({x:o===39?.01:o===37?-.01:o===34?.05:o===33?-.05:o===35?1:o===36?-1:0,y:o===40?.01:o===38?-.01:0},!0)))};class ps{constructor(e,o,n,i){const s=Sl(`<div role="slider" tabindex="0" part="${o}" ${n}><div part="${o}-pointer"></div></div>`);e.appendChild(s.content.cloneNode(!0));const r=e.querySelector(`[part=${o}]`);r.addEventListener("mousedown",this),r.addEventListener("touchstart",this),r.addEventListener("keydown",this),this.el=r,this.xy=i,this.nodes=[r.firstChild,r]}set dragging(e){const o=e?document.addEventListener:document.removeEventListener;o(no?"touchmove":"mousemove",this),o(no?"touchend":"mouseup",this)}handleEvent(e){switch(e.type){case"mousedown":case"touchstart":if(e.preventDefault(),!fh(e)||!no&&e.button!=0)return;this.el.focus(),$l(this,e),this.dragging=!0;break;case"mousemove":case"touchmove":e.preventDefault(),$l(this,e);break;case"mouseup":case"touchend":this.dragging=!1;break;case"keydown":ph(this,e);break}}style(e){e.forEach((o,n)=>{for(const i in o)this.nodes[n].style.setProperty(i,o[i])})}}class hh extends ps{constructor(e){super(e,"hue",'aria-label="Hue" aria-valuemin="0" aria-valuemax="360"',!1)}update({h:e}){this.h=e,this.style([{left:`${e/360*100}%`,color:cs({h:e,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuenow",`${ke(e)}`)}getMove(e,o){return{h:o?oo(this.h+e.x*360,0,360):360*e.x}}}class mh extends ps{constructor(e){super(e,"saturation",'aria-label="Color"',!0)}update(e){this.hsva=e,this.style([{top:`${100-e.v}%`,left:`${e.s}%`,color:cs(e)},{"background-color":cs({h:e.h,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuetext",`Saturation ${ke(e.s)}%, Brightness ${ke(e.v)}%`)}getMove(e,o){return{s:o?oo(this.hsva.s+e.x*100,0,100):e.x*100,v:o?oo(this.hsva.v-e.y*100,0,100):Math.round(100-e.y*100)}}}const vh=':host{display:flex;flex-direction:column;position:relative;width:200px;height:200px;user-select:none;-webkit-user-select:none;cursor:default}:host([hidden]){display:none!important}[role=slider]{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;outline:0}[role=slider]:last-child{border-radius:0 0 8px 8px}[part$=pointer]{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;display:flex;place-content:center center;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}[part$=pointer]::after{content:"";width:100%;height:100%;border-radius:inherit;background-color:currentColor}[role=slider]:focus [part$=pointer]{transform:translate(-50%,-50%) scale(1.1)}',gh="[part=hue]{flex:0 0 24px;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}[part=hue-pointer]{top:50%;z-index:2}",yh="[part=saturation]{flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part=saturation-pointer]{z-index:3}",In=Symbol("same"),hs=Symbol("color"),Tl=Symbol("hsva"),ms=Symbol("update"),Dl=Symbol("parts"),Mn=Symbol("css"),An=Symbol("sliders");let bh=class extends HTMLElement{static get observedAttributes(){return["color"]}get[Mn](){return[vh,gh,yh]}get[An](){return[mh,hh]}get color(){return this[hs]}set color(e){if(!this[In](e)){const o=this.colorModel.toHsva(e);this[ms](o),this[hs]=e}}constructor(){super();const e=Sl(`<style>${this[Mn].join("")}</style>`),o=this.attachShadow({mode:"open"});o.appendChild(e.content.cloneNode(!0)),o.addEventListener("move",this),this[Dl]=this[An].map(n=>new n(o))}connectedCallback(){if(this.hasOwnProperty("color")){const e=this.color;delete this.color,this.color=e}else this.color||(this.color=this.colorModel.defaultColor)}attributeChangedCallback(e,o,n){const i=this.colorModel.fromAttr(n);this[In](i)||(this.color=i)}handleEvent(e){const o=this[Tl],n={...o,...e.detail};this[ms](n);let i;!Nl(n,o)&&!this[In](i=this.colorModel.fromHsva(n))&&(this[hs]=i,ds(this,"color-changed",{value:i}))}[In](e){return this.color&&this.colorModel.equal(e,this.color)}[ms](e){this[Tl]=e,this[Dl].forEach(o=>o.update(e))}};class _h extends ps{constructor(e){super(e,"alpha",'aria-label="Alpha" aria-valuemin="0" aria-valuemax="1"',!1)}update(e){this.hsva=e;const o=us({...e,a:0}),n=us({...e,a:1}),i=e.a*100;this.style([{left:`${i}%`,color:us(e)},{"--gradient":`linear-gradient(90deg, ${o}, ${n}`}]);const s=ke(i);this.el.setAttribute("aria-valuenow",`${s}`),this.el.setAttribute("aria-valuetext",`${s}%`)}getMove(e,o){return{a:o?oo(this.hsva.a+e.x):e.x}}}const xh=`[part=alpha]{flex:0 0 24px}[part=alpha]::after{display:block;content:"";position:absolute;top:0;left:0;right:0;bottom:0;border-radius:inherit;background-image:var(--gradient);box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part^=alpha]{background-color:#fff;background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><rect x="8" width="8" height="8"/><rect y="8" width="8" height="8"/></svg>')}[part=alpha-pointer]{top:50%}`;class wh extends bh{get[Mn](){return[...super[Mn],xh]}get[An](){return[...super[An],_h]}}const Eh={defaultColor:"#0001",toHsva:rh,fromHsva:ah,equal:dh,fromAttr:t=>t};class Ch extends wh{get colorModel(){return Eh}}class kh extends Ch{}customElements.define("hex-alpha-color-picker",kh);const Nh=X({customOptions:{Popover:Cl},__name:"ColorPicker.ce",props:{color:{default:V.colorPrimary}},emits:["change"],setup(t,{emit:e}){const o=t,n=e,i=L(o.color);se(i,(a,l)=>{a!==l&&n("change",a)});const s=L(),r=a=>{i.value=a.detail.value};return se(s,()=>{s.value&&(s.value.removeEventListener("color-changed",r),s.value.addEventListener("color-changed",r))}),(a,l)=>{const c=tu("hex-alpha-color-picker");return D(),_e(Cl,null,{button:Ce(()=>[ue(a.$slots,"default",{},()=>[h("span",{class:"button",style:R({backgroundColor:i.value})},null,4)],!0)]),panel:Ce(()=>[oe(c,{ref_key:"colorPickerRef",ref:s,color:i.value},null,8,["color"])]),_:3})}}}),Pl=ee(Nh,[["styles",[`.button[data-v-ccef37cf]{display:inline-block;vertical-align:middle;width:1em;height:1em;border-radius:.3em;cursor:pointer}
|
|
58
|
+
`]],["__scopeId","data-v-ccef37cf"]]),Oh=`.resize-observer[data-v-5beaa9ca]{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.resize-observer[data-v-5beaa9ca] object{display:block;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1}
|
|
59
|
+
`,Sh={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!0},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},mounted(){this.$nextTick(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",Qi&&this.$el.appendChild(t),t.data="about:blank",Qi||this.$el.appendChild(t)},beforeDestroy(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("resize",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Qi&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},$h={class:"resize-observer",tabindex:"-1"};function Th(t,e,o,n,i,s){return D(),B("div",$h)}const Dh=ee(Sh,[["render",Th],["styles",[Oh]],["__scopeId","data-v-5beaa9ca"]]),Ph=()=>{const t=L(window.innerWidth),e=L(window.innerHeight),o=n=>{t.value=n.target.innerWidth,e.value=n.target.innerHeight};return vi(()=>window.addEventListener("resize",o)),ln(()=>window.removeEventListener("resize",o)),{width:t,height:e}},Lh=X({__name:"MapTianditu.ce",props:{mapKey:{default:"8261564c2f1435b76dc5991adad737e6"},mapContainerID:{default:"mapTiandituDiv"},mapWidth:{},mapHeight:{},mapZoom:{default:18},mapCenterLng:{default:120.619585},mapCenterLat:{default:31.299379}},emits:["click"],setup(t,{expose:e,emit:o}){const n=t,{width:i,height:s}=Ph(),r=L(n.mapWidth??i.value+"px"),a=L(n.mapHeight??s.value+"px");return se(i,(l,c)=>{l!=c&&!n.mapWidth&&(r.value=l+"px")}),se(s,(l,c)=>{l!=c&&!n.mapHeight&&(a.value=l+"px")}),vi(()=>{q.loadScript(`http://api.tianditu.gov.cn/api?v=4.0&tk=${n.mapKey}`,()=>{new rp(n.mapContainerID,n.mapCenterLng,n.mapCenterLat,n.mapZoom)},l=>{console.log("error",l)})}),e({}),(l,c)=>(D(),B("div",$i({class:"mapDivWrap"},l.$attrs,{style:{position:"relative",width:r.value,height:a.value}}),[ue(l.$slots,"default",{width:r.value,height:a.value})],16))}}),Vh=["fill"],Ih=["fill"],Mh=X({__name:"SVGCheck.ce",props:{width:{default:"10px"},color:{default:V.colorPrimary}},setup(t){const e=t;return(o,n)=>(D(),B("svg",{style:R(["width: "+e.width]),viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[h("path",{d:"M0.153989 2.49994C-0.0513296 2.28468 -0.0513296 1.93567 0.153989 1.72041C0.359307 1.50514 0.692194 1.50514 0.897512 1.72041L3.12808 4.05902C3.3334 4.27428 3.3334 4.62329 3.12808 4.83855C2.92276 5.05382 2.58988 5.05382 2.38456 4.83855L0.153989 2.49994Z",fill:e.color},null,8,Vh),h("path",{d:"M6.10249 0.161447C6.30781 -0.0538159 6.64069 -0.0538157 6.84601 0.161447C7.05133 0.376711 7.05133 0.725721 6.84601 0.940984L3.12808 4.83855C2.92276 5.05382 2.58988 5.05382 2.38456 4.83855C2.17924 4.62329 2.17955 4.27439 2.38487 4.05913L6.10249 0.161447Z",fill:e.color},null,8,Ih)],4))}}),Ah=ee(Mh,[["styles",[`svg[data-v-8fe3f9fd]{transform-origin:center}
|
|
60
|
+
`]],["__scopeId","data-v-8fe3f9fd"]]),Rh=["fill"],jh=["fill"],Fh=X({__name:"SVGCheck",props:{width:{default:"10px"},color:{default:V.colorPrimary}},setup(t){const e=t;return(o,n)=>(D(),B("svg",{style:R(["width: "+e.width]),viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[h("path",{d:"M0.153989 2.49994C-0.0513296 2.28468 -0.0513296 1.93567 0.153989 1.72041C0.359307 1.50514 0.692194 1.50514 0.897512 1.72041L3.12808 4.05902C3.3334 4.27428 3.3334 4.62329 3.12808 4.83855C2.92276 5.05382 2.58988 5.05382 2.38456 4.83855L0.153989 2.49994Z",fill:e.color},null,8,Rh),h("path",{d:"M6.10249 0.161447C6.30781 -0.0538159 6.64069 -0.0538157 6.84601 0.161447C7.05133 0.376711 7.05133 0.725721 6.84601 0.940984L3.12808 4.83855C2.92276 5.05382 2.58988 5.05382 2.38456 4.83855C2.17924 4.62329 2.17955 4.27439 2.38487 4.05913L6.10249 0.161447Z",fill:e.color},null,8,jh)],4))}}),Lv="",Ll=ee(Fh,[["__scopeId","data-v-987aed3d"]]),vs=t=>(_o("data-v-85491020"),t=t(),xo(),t),zh=[vs(()=>h("path",{d:"M38,32.71a1.13,1.13,0,0,1-.8-.33L21.57,16.8a1.13,1.13,0,0,1,1.61-1.6L38.75,30.77a1.14,1.14,0,0,1-.8,1.94Z"},null,-1)),vs(()=>h("path",{d:"M22.38,32.71a1.17,1.17,0,0,1-.81-.33,1.15,1.15,0,0,1,0-1.61L37.15,15.2a1.13,1.13,0,1,1,1.6,1.6L23.18,32.38A1.13,1.13,0,0,1,22.38,32.71Z"},null,-1)),vs(()=>h("path",{d:"M18.68,3.79h-3.1l-15.64,20L15.33,43.45l.25.33H47.94v-40ZM3,23.79,16.73,6.3H45.3v35H16.73Z"},null,-1))],Hh=X({__name:"SVGCleanUp",props:{width:{default:"16px"},color:{default:V.colorPrimary}},setup(t){const e=t;return(o,n)=>(D(),B("svg",{style:R(["width: "+e.width]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},zh,4))}}),Av="",io=ee(Hh,[["__scopeId","data-v-85491020"]]),Bh=["data-unactive"],Wh=["data-unactive"],Uh=["data-unactive"],Gh=["data-unactive"],Kh=["data-unactive"],qh=["data-unactive"],Yh=["data-unactive"],Zh=["data-unactive"],Xh=["data-unactive"],Jh=["data-unactive"],Qh=["data-unactive"],em=["data-unactive"],tm=["data-unactive"],om=["data-unactive"],nm=["data-unactive"],im=["data-unactive"],sm=["data-unactive"],rm=X({customOptions:{Pop:ze,SVGCleanUp:io},__name:"PlateKeyboard",props:{initPlates:{default:()=>[]},completePlateLength:{default:7}},emits:["open","close","plates"],setup(t,{expose:e,emit:o}){const n=t,i=o,s=L(),r=L(0),a=Fe([]);function l(){a.length==0?r.value=0:a.length==1?r.value=1:r.value=2,a.length>=n.completePlateLength&&d()}se(()=>[...n.initPlates],()=>{Po(a,n.initPlates),l()},{immediate:!0});const c=()=>{s.value.open(),i("open")},d=()=>{s.value.close(),i("close")},f=()=>{a.pop(),l(),i("plates",a)},u=v=>{if(v.target.dataset.unactive||"")return;let y=v.target.dataset.number;y&&(a.push(y),l(),i("plates",a))};return e({open:c,close:d}),(v,b)=>(D(),_e(ze,{ref_key:"popRef",ref:s,directionFrom:"bottom",closeWhenClickOverlay:!1},{default:Ce(()=>[h("div",{class:"popup-plate",style:R({paddingBottom:le(V).safeAreaBottom})},[h("div",null,[h("div",{onClick:d},"关闭")]),h("div",{class:U(["step",r.value==0?"":"hide"])},[h("div",{class:"popitem",onClick:u,"data-number":"京"}," 京 "),h("div",{class:"popitem",onClick:u,"data-number":"沪"}," 沪 "),h("div",{class:"popitem",onClick:u,"data-number":"津"}," 津 "),h("div",{class:"popitem",onClick:u,"data-number":"渝"}," 渝 "),h("div",{class:"popitem",onClick:u,"data-number":"黑"}," 黑 "),h("div",{class:"popitem",onClick:u,"data-number":"吉"}," 吉 "),h("div",{class:"popitem",onClick:u,"data-number":"辽"}," 辽 "),h("div",{class:"popitem",onClick:u,"data-number":"蒙"}," 蒙 "),h("div",{class:"popitem",onClick:u,"data-number":"冀"}," 冀 "),h("div",{class:"popitem",onClick:u,"data-number":"新"}," 新 "),h("div",{class:"popitem",onClick:u,"data-number":"甘"}," 甘 "),h("div",{class:"popitem",onClick:u,"data-number":"青"}," 青 "),h("div",{class:"popitem",onClick:u,"data-number":"陕"}," 陕 "),h("div",{class:"popitem",onClick:u,"data-number":"宁"}," 宁 "),h("div",{class:"popitem",onClick:u,"data-number":"豫"}," 豫 "),h("div",{class:"popitem",onClick:u,"data-number":"鲁"}," 鲁 "),h("div",{class:"popitem",onClick:u,"data-number":"晋"}," 晋 "),h("div",{class:"popitem",onClick:u,"data-number":"皖"}," 皖 "),h("div",{class:"popitem",onClick:u,"data-number":"鄂"}," 鄂 "),h("div",{class:"popitem",onClick:u,"data-number":"湘"}," 湘 "),h("div",{class:"popitem",onClick:u,"data-number":"苏"}," 苏 "),h("div",{class:"popitem",onClick:u,"data-number":"川"}," 川 "),h("div",{class:"popitem",onClick:u,"data-number":"云"}," 云 "),h("div",{class:"popitem",onClick:u,"data-number":"桂"}," 桂 "),h("div",{class:"popitem",onClick:u,"data-number":"藏"}," 藏 "),h("div",{class:"popitem",onClick:u,"data-number":"浙"}," 浙 "),h("div",{class:"popitem",onClick:u,"data-number":"赣"}," 赣 "),h("div",{class:"popitem",onClick:u,"data-number":"粤"}," 粤 "),h("div",{class:"popitem",onClick:u,"data-number":"闽"}," 闽 "),h("div",{class:"popitem",onClick:u,"data-number":"琼"}," 琼 "),h("div",{class:"popitem",onClick:u,"data-number":"贵"}," 贵 "),h("div",{class:"popitem popitem-clear",onClick:f},[oe(io,{width:"16px"})])],2),h("div",{class:U(["step",r.value!=0?"":"hide"])},[h("div",{class:U(["popitem",r.value!=2?"unactive":""]),onClick:u,"data-number":"1","data-unactive":r.value!=2?"unactive":""}," 1 ",10,Bh),h("div",{class:U(["popitem",r.value!=2?"unactive":""]),onClick:u,"data-number":"2","data-unactive":r.value!=2?"unactive":""}," 2 ",10,Wh),h("div",{class:U(["popitem",r.value!=2?"unactive":""]),onClick:u,"data-number":"3","data-unactive":r.value!=2?"unactive":""}," 3 ",10,Uh),h("div",{class:U(["popitem",r.value!=2?"unactive":""]),onClick:u,"data-number":"4","data-unactive":r.value!=2?"unactive":""}," 4 ",10,Gh),h("div",{class:U(["popitem",r.value!=2?"unactive":""]),onClick:u,"data-number":"5","data-unactive":r.value!=2?"unactive":""}," 5 ",10,Kh),h("div",{class:U(["popitem",r.value!=2?"unactive":""]),onClick:u,"data-number":"6","data-unactive":r.value!=2?"unactive":""}," 6 ",10,qh),h("div",{class:U(["popitem",r.value!=2?"unactive":""]),onClick:u,"data-number":"7","data-unactive":r.value!=2?"unactive":""}," 7 ",10,Yh),h("div",{class:U(["popitem",r.value!=2?"unactive":""]),onClick:u,"data-number":"8","data-unactive":r.value!=2?"unactive":""}," 8 ",10,Zh),h("div",{class:U(["popitem",r.value!=2?"unactive":""]),onClick:u,"data-number":"9","data-unactive":r.value!=2?"unactive":""}," 9 ",10,Xh),h("div",{class:U(["popitem",r.value!=2?"unactive":""]),onClick:u,"data-number":"0","data-unactive":r.value!=2?"unactive":""}," 0 ",10,Jh),h("div",{class:"popitem",onClick:u,"data-number":"A"}," A "),h("div",{class:"popitem",onClick:u,"data-number":"B"}," B "),h("div",{class:"popitem",onClick:u,"data-number":"C"}," C "),h("div",{class:"popitem",onClick:u,"data-number":"D"}," D "),h("div",{class:"popitem",onClick:u,"data-number":"E"}," E "),h("div",{class:"popitem",onClick:u,"data-number":"F"}," F "),h("div",{class:"popitem",onClick:u,"data-number":"G"}," G "),h("div",{class:"popitem",onClick:u,"data-number":"H"}," H "),h("div",{class:"popitem",onClick:u,"data-number":"J"}," J "),h("div",{class:"popitem",onClick:u,"data-number":"K"}," K "),h("div",{class:"popitem",onClick:u,"data-number":"L"}," L "),h("div",{class:"popitem",onClick:u,"data-number":"M"}," M "),h("div",{class:"popitem",onClick:u,"data-number":"N"}," N "),h("div",{class:"popitem",onClick:u,"data-number":"P"}," P "),h("div",{class:"popitem",onClick:u,"data-number":"Q"}," Q "),h("div",{class:"popitem",onClick:u,"data-number":"R"}," R "),h("div",{class:"popitem",onClick:u,"data-number":"S"}," S "),h("div",{class:"popitem",onClick:u,"data-number":"T"}," T "),h("div",{class:"popitem",onClick:u,"data-number":"U"}," U "),h("div",{class:"popitem",onClick:u,"data-number":"V"}," V "),h("div",{class:"popitem",onClick:u,"data-number":"W"}," W "),h("div",{class:"popitem",onClick:u,"data-number":"X"}," X "),h("div",{class:"popitem",onClick:u,"data-number":"Y"}," Y "),h("div",{class:"popitem",onClick:u,"data-number":"Z"}," Z "),h("div",{class:U(["popitem",r.value!=2?"unactive":""]),onClick:u,"data-number":"港","data-unactive":r.value!=2?"unactive":""}," 港 ",10,Qh),h("div",{class:U(["popitem",r.value!=2?"unactive":""]),onClick:u,"data-number":"澳","data-unactive":r.value!=2?"unactive":""}," 澳 ",10,em),h("div",{class:U(["popitem",r.value!=2?"unactive":""]),onClick:u,"data-number":"学","data-unactive":r.value!=2?"unactive":""}," 学 ",10,tm),h("div",{class:U(["popitem",r.value!=2?"unactive":""]),onClick:u,"data-number":"警","data-unactive":r.value!=2?"unactive":""}," 警 ",10,om),h("div",{class:U(["popitem",r.value!=2?"unactive":""]),onClick:u,"data-number":"使","data-unactive":r.value!=2?"unactive":""}," 使 ",10,nm),h("div",{class:U(["popitem",r.value!=2?"unactive":""]),onClick:u,"data-number":"领","data-unactive":r.value!=2?"unactive":""}," 领 ",10,im),h("div",{class:U(["popitem",r.value!=2?"unactive":""]),onClick:u,"data-number":"挂","data-unactive":r.value!=2?"unactive":""}," 挂 ",10,sm),h("div",{class:"popitem popitem-clear",onClick:f},[oe(io,{width:"16px"})])],2)],4)]),_:1},512))}}),Rv="",Vl=ee(rm,[["__scopeId","data-v-6e8b6f81"]]),Rn=t=>(_o("data-v-17611eb2"),t=t(),xo(),t),am=Rn(()=>h("div",{class:"title"},"车牌颜色",-1)),lm={class:"plate-types"},cm=["onClick"],um=Rn(()=>h("div",{class:"title"},"车牌号码",-1)),dm={class:"plate-numbers"},fm=Rn(()=>h("div",{class:"dot"},"·",-1)),pm=["onClick"],hm=Rn(()=>h("div",{class:"info"},"请输入您真实有效的车牌号,便于正常使用系统功能。",-1)),Il=ee(X({customOptions:{SVGCheck:Ll,PlateKeyboard:Vl},__name:"PlateMobile.ce",props:{maxWidth:{default:"750px"}},emits:["clear","complete"],setup(t,{expose:e,emit:o}){const n=t,i=o,s=[{name:"蓝牌",style:"background-color: #0078f0;",completePlateLength:7},{name:"绿牌",style:"background-color: #00f08c;",completePlateLength:8},{name:"黄牌",style:"background-color: #fac800;",completePlateLength:7},{name:"黄绿",style:"background: linear-gradient(90deg, #fac800 51.5%, #00f08c 51.51%);",completePlateLength:8},{name:"黑牌",style:"background-color: #222222;",completePlateLength:7}],r=L(),a=L(0),l=Fe([]),c=L(-1),d=v=>{a.value=v,c.value<=s[v].completePlateLength&&l.length<s[v].completePlateLength?(c.value=l.length,r.value.open(),i("clear")):Po(l,l.slice(0,s[v].completePlateLength)),s[v].completePlateLength===l.length&&i("complete",s[a.value].name,l.join(""))},f=v=>{Po(l,l.slice(0,v)),c.value=Math.min(Math.max(0,c.value),v),r.value.open(),i("clear")},u=v=>{Po(l,v),c.value=l.length,l.length===s[a.value].completePlateLength&&i("complete",s[a.value].name,l.join(""))};return e({}),(v,b)=>(D(),B(be,null,[h("div",$i(v.$attrs,{class:"plate-mobile",style:{maxWidth:n.maxWidth}}),[am,h("div",lm,[(D(),B(be,null,Xt(s,(y,k)=>h("div",{key:k,class:U(k==a.value?"checked":""),onClick:A=>d(k)},[h("div",{style:R(y.style)},null,4),h("div",null,Oe(y.name),1),h("div",null,[oe(Ll,{color:"#ffffff",width:"0.14rem"})])],10,cm)),64))]),um,h("div",dm,[h("div",{onClick:b[0]||(b[0]=y=>f(0)),class:U(c.value==0?"current":"")},Oe(l[0]),3),h("div",{onClick:b[1]||(b[1]=y=>f(1)),class:U(c.value==1?"current":"")},Oe(l[1]),3),fm,(D(!0),B(be,null,Xt(s[a.value].completePlateLength-2,y=>(D(),B("div",{key:y,class:U(y+1==c.value?"current":""),onClick:k=>f(y+1)},Oe(l[y+1]),11,pm))),128))]),hm],16),oe(Vl,{ref_key:"plateKeyboardRef",ref:r,initPlates:l,completePlateLength:s[a.value].completePlateLength,onPlates:u},null,8,["initPlates","completePlateLength"])],64))}}),[["styles",[`.plate-mobile[data-v-17611eb2]{background-color:#fff;overflow:hidden;border-radius:.16rem;padding-bottom:.3rem;padding-left:.3rem;padding-right:.3rem}.title[data-v-17611eb2]{font-size:16px;line-height:1;color:#333;font-weight:700;text-align:center;margin-top:.4rem;margin-bottom:.2rem}.plate-types[data-v-17611eb2]{display:flex;justify-content:center}.plate-types>div[data-v-17611eb2]{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;width:1.2rem;height:.88rem;border-radius:.08rem;background-color:#f5f5f5;cursor:pointer;overflow:hidden}.plate-types>div>div[data-v-17611eb2]:nth-child(1){width:.28rem;height:.28rem;margin-bottom:.1rem;border-radius:50%;background-color:#0078f0}.plate-types>div:nth-child(2)>div[data-v-17611eb2]:nth-child(1){background-color:#00f08c}.plate-types>div:nth-child(3)>div[data-v-17611eb2]:nth-child(1){background-color:#fac800}.plate-types>div:nth-child(4)>div[data-v-17611eb2]:nth-child(1){background:linear-gradient(90deg,#fac800 51.5%,#00f08c 51.51%)}.plate-types>div:nth-child(5)>div[data-v-17611eb2]:nth-child(1){background-color:#222}.plate-types>div>div[data-v-17611eb2]:nth-child(2){color:#ccc;font-size:14px;line-height:1;font-weight:700}.plate-types>div>div[data-v-17611eb2]:nth-child(3){display:none;position:absolute;right:-.02rem;bottom:-.02rem;width:.32rem;height:.32rem;border-radius:.32rem 0 .08rem;background:#5a82f0}.plate-types>div>div:nth-child(3)>svg[data-v-17611eb2]{position:absolute;top:.12rem;left:.12rem}.plate-types>div+div[data-v-17611eb2]{margin-left:.1rem}.plate-types>div.checked[data-v-17611eb2]{border:1px solid #5a82f0}.plate-types>div.checked>div[data-v-17611eb2]:nth-child(2){color:#333}.plate-types>div.checked>div[data-v-17611eb2]:nth-child(3){display:block}.plate-numbers[data-v-17611eb2]{display:flex;justify-content:center;align-items:center}.plate-numbers>div[data-v-17611eb2]{flex:1;max-width:.8rem;height:.88rem;line-height:.88rem;border-radius:.08rem;font-size:.36rem;color:#333;text-align:center;border:1px solid #cccccc}.plate-numbers>div.current[data-v-17611eb2]{border:1px solid #5a82f0}.plate-numbers>div+div[data-v-17611eb2]{margin-left:.1rem}.plate-numbers>div.dot[data-v-17611eb2]{flex:0;border:0;padding:0 .05rem;color:#ccc;font-size:46px;margin-right:-.1rem;margin-left:0}.info[data-v-17611eb2]{font-size:12px;line-height:16px;font-weight:400;color:#999;text-align:center;padding:0 .1rem;margin-top:.4rem}
|
|
61
|
+
`]],["__scopeId","data-v-17611eb2"]]),gs=t=>(_o("data-v-7aebdea0"),t=t(),xo(),t),mm=[gs(()=>h("path",{d:"M38,32.71a1.13,1.13,0,0,1-.8-.33L21.57,16.8a1.13,1.13,0,0,1,1.61-1.6L38.75,30.77a1.14,1.14,0,0,1-.8,1.94Z"},null,-1)),gs(()=>h("path",{d:"M22.38,32.71a1.17,1.17,0,0,1-.81-.33,1.15,1.15,0,0,1,0-1.61L37.15,15.2a1.13,1.13,0,1,1,1.6,1.6L23.18,32.38A1.13,1.13,0,0,1,22.38,32.71Z"},null,-1)),gs(()=>h("path",{d:"M18.68,3.79h-3.1l-15.64,20L15.33,43.45l.25.33H47.94v-40ZM3,23.79,16.73,6.3H45.3v35H16.73Z"},null,-1))],vm=X({__name:"SVGCleanUp.ce",props:{width:{default:"16px"},color:{default:V.colorPrimary}},setup(t){const e=t;return(o,n)=>(D(),B("svg",{style:R(["width: "+e.width]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},mm,4))}}),gm=ee(vm,[["styles",[`svg[data-v-7aebdea0]{transform-origin:center}
|
|
62
|
+
`]],["__scopeId","data-v-7aebdea0"]]),ym=["data-unactive"],bm=["data-unactive"],_m=["data-unactive"],xm=["data-unactive"],wm=["data-unactive"],Em=["data-unactive"],Cm=["data-unactive"],km=["data-unactive"],Nm=["data-unactive"],Om=["data-unactive"],Sm=["data-unactive"],$m=["data-unactive"],Tm=["data-unactive"],Dm=["data-unactive"],Pm=["data-unactive"],Lm=["data-unactive"],Vm=["data-unactive"],ys=ee(X({customOptions:{Pop:ze,SVGCleanUp:io},__name:"PlateKeyboard.ce",props:{initPlates:{default:()=>[]},completePlateLength:{default:7}},emits:["open","close","plates"],setup(t,{expose:e,emit:o}){const n=t,i=o,s=L(),r=L(0),a=Fe([]);function l(){a.length==0?r.value=0:a.length==1?r.value=1:r.value=2,a.length>=n.completePlateLength&&d()}se(()=>[...n.initPlates],()=>{Po(a,n.initPlates),l()},{immediate:!0});const c=()=>{s.value.open(),i("open")},d=()=>{s.value.close(),i("close")},f=()=>{a.pop(),l(),i("plates",a)},u=v=>{if(v.target.dataset.unactive||"")return;let y=v.target.dataset.number;y&&(a.push(y),l(),i("plates",a))};return e({open:c,close:d}),(v,b)=>(D(),_e(ze,{ref_key:"popRef",ref:s,directionFrom:"bottom",closeWhenClickOverlay:!1},{default:Ce(()=>[h("div",{class:"popup-plate",style:R({paddingBottom:le(V).safeAreaBottom})},[h("div",null,[h("div",{onClick:d},"关闭")]),h("div",{class:U(["step",r.value==0?"":"hide"])},[h("div",{class:"popitem",onClick:u,"data-number":"京"}," 京 "),h("div",{class:"popitem",onClick:u,"data-number":"沪"}," 沪 "),h("div",{class:"popitem",onClick:u,"data-number":"津"}," 津 "),h("div",{class:"popitem",onClick:u,"data-number":"渝"}," 渝 "),h("div",{class:"popitem",onClick:u,"data-number":"黑"}," 黑 "),h("div",{class:"popitem",onClick:u,"data-number":"吉"}," 吉 "),h("div",{class:"popitem",onClick:u,"data-number":"辽"}," 辽 "),h("div",{class:"popitem",onClick:u,"data-number":"蒙"}," 蒙 "),h("div",{class:"popitem",onClick:u,"data-number":"冀"}," 冀 "),h("div",{class:"popitem",onClick:u,"data-number":"新"}," 新 "),h("div",{class:"popitem",onClick:u,"data-number":"甘"}," 甘 "),h("div",{class:"popitem",onClick:u,"data-number":"青"}," 青 "),h("div",{class:"popitem",onClick:u,"data-number":"陕"}," 陕 "),h("div",{class:"popitem",onClick:u,"data-number":"宁"}," 宁 "),h("div",{class:"popitem",onClick:u,"data-number":"豫"}," 豫 "),h("div",{class:"popitem",onClick:u,"data-number":"鲁"}," 鲁 "),h("div",{class:"popitem",onClick:u,"data-number":"晋"}," 晋 "),h("div",{class:"popitem",onClick:u,"data-number":"皖"}," 皖 "),h("div",{class:"popitem",onClick:u,"data-number":"鄂"}," 鄂 "),h("div",{class:"popitem",onClick:u,"data-number":"湘"}," 湘 "),h("div",{class:"popitem",onClick:u,"data-number":"苏"}," 苏 "),h("div",{class:"popitem",onClick:u,"data-number":"川"}," 川 "),h("div",{class:"popitem",onClick:u,"data-number":"云"}," 云 "),h("div",{class:"popitem",onClick:u,"data-number":"桂"}," 桂 "),h("div",{class:"popitem",onClick:u,"data-number":"藏"}," 藏 "),h("div",{class:"popitem",onClick:u,"data-number":"浙"}," 浙 "),h("div",{class:"popitem",onClick:u,"data-number":"赣"}," 赣 "),h("div",{class:"popitem",onClick:u,"data-number":"粤"}," 粤 "),h("div",{class:"popitem",onClick:u,"data-number":"闽"}," 闽 "),h("div",{class:"popitem",onClick:u,"data-number":"琼"}," 琼 "),h("div",{class:"popitem",onClick:u,"data-number":"贵"}," 贵 "),h("div",{class:"popitem popitem-clear",onClick:f},[oe(io,{width:"16px"})])],2),h("div",{class:U(["step",r.value!=0?"":"hide"])},[h("div",{class:U(["popitem",r.value!=2?"unactive":""]),onClick:u,"data-number":"1","data-unactive":r.value!=2?"unactive":""}," 1 ",10,ym),h("div",{class:U(["popitem",r.value!=2?"unactive":""]),onClick:u,"data-number":"2","data-unactive":r.value!=2?"unactive":""}," 2 ",10,bm),h("div",{class:U(["popitem",r.value!=2?"unactive":""]),onClick:u,"data-number":"3","data-unactive":r.value!=2?"unactive":""}," 3 ",10,_m),h("div",{class:U(["popitem",r.value!=2?"unactive":""]),onClick:u,"data-number":"4","data-unactive":r.value!=2?"unactive":""}," 4 ",10,xm),h("div",{class:U(["popitem",r.value!=2?"unactive":""]),onClick:u,"data-number":"5","data-unactive":r.value!=2?"unactive":""}," 5 ",10,wm),h("div",{class:U(["popitem",r.value!=2?"unactive":""]),onClick:u,"data-number":"6","data-unactive":r.value!=2?"unactive":""}," 6 ",10,Em),h("div",{class:U(["popitem",r.value!=2?"unactive":""]),onClick:u,"data-number":"7","data-unactive":r.value!=2?"unactive":""}," 7 ",10,Cm),h("div",{class:U(["popitem",r.value!=2?"unactive":""]),onClick:u,"data-number":"8","data-unactive":r.value!=2?"unactive":""}," 8 ",10,km),h("div",{class:U(["popitem",r.value!=2?"unactive":""]),onClick:u,"data-number":"9","data-unactive":r.value!=2?"unactive":""}," 9 ",10,Nm),h("div",{class:U(["popitem",r.value!=2?"unactive":""]),onClick:u,"data-number":"0","data-unactive":r.value!=2?"unactive":""}," 0 ",10,Om),h("div",{class:"popitem",onClick:u,"data-number":"A"}," A "),h("div",{class:"popitem",onClick:u,"data-number":"B"}," B "),h("div",{class:"popitem",onClick:u,"data-number":"C"}," C "),h("div",{class:"popitem",onClick:u,"data-number":"D"}," D "),h("div",{class:"popitem",onClick:u,"data-number":"E"}," E "),h("div",{class:"popitem",onClick:u,"data-number":"F"}," F "),h("div",{class:"popitem",onClick:u,"data-number":"G"}," G "),h("div",{class:"popitem",onClick:u,"data-number":"H"}," H "),h("div",{class:"popitem",onClick:u,"data-number":"J"}," J "),h("div",{class:"popitem",onClick:u,"data-number":"K"}," K "),h("div",{class:"popitem",onClick:u,"data-number":"L"}," L "),h("div",{class:"popitem",onClick:u,"data-number":"M"}," M "),h("div",{class:"popitem",onClick:u,"data-number":"N"}," N "),h("div",{class:"popitem",onClick:u,"data-number":"P"}," P "),h("div",{class:"popitem",onClick:u,"data-number":"Q"}," Q "),h("div",{class:"popitem",onClick:u,"data-number":"R"}," R "),h("div",{class:"popitem",onClick:u,"data-number":"S"}," S "),h("div",{class:"popitem",onClick:u,"data-number":"T"}," T "),h("div",{class:"popitem",onClick:u,"data-number":"U"}," U "),h("div",{class:"popitem",onClick:u,"data-number":"V"}," V "),h("div",{class:"popitem",onClick:u,"data-number":"W"}," W "),h("div",{class:"popitem",onClick:u,"data-number":"X"}," X "),h("div",{class:"popitem",onClick:u,"data-number":"Y"}," Y "),h("div",{class:"popitem",onClick:u,"data-number":"Z"}," Z "),h("div",{class:U(["popitem",r.value!=2?"unactive":""]),onClick:u,"data-number":"港","data-unactive":r.value!=2?"unactive":""}," 港 ",10,Sm),h("div",{class:U(["popitem",r.value!=2?"unactive":""]),onClick:u,"data-number":"澳","data-unactive":r.value!=2?"unactive":""}," 澳 ",10,$m),h("div",{class:U(["popitem",r.value!=2?"unactive":""]),onClick:u,"data-number":"学","data-unactive":r.value!=2?"unactive":""}," 学 ",10,Tm),h("div",{class:U(["popitem",r.value!=2?"unactive":""]),onClick:u,"data-number":"警","data-unactive":r.value!=2?"unactive":""}," 警 ",10,Dm),h("div",{class:U(["popitem",r.value!=2?"unactive":""]),onClick:u,"data-number":"使","data-unactive":r.value!=2?"unactive":""}," 使 ",10,Pm),h("div",{class:U(["popitem",r.value!=2?"unactive":""]),onClick:u,"data-number":"领","data-unactive":r.value!=2?"unactive":""}," 领 ",10,Lm),h("div",{class:U(["popitem",r.value!=2?"unactive":""]),onClick:u,"data-number":"挂","data-unactive":r.value!=2?"unactive":""}," 挂 ",10,Vm),h("div",{class:"popitem popitem-clear",onClick:f},[oe(io,{width:"16px"})])],2)],4)]),_:1},512))}}),[["styles",[`.popup-plate[data-v-c391106b]{box-sizing:border-box;width:100%;background-color:#ddd}.hide[data-v-c391106b]{display:none!important}.popup-plate>div[data-v-c391106b]:nth-child(1){display:flex;justify-content:flex-end;background-color:#fff;border-top:1px solid #e6e6e6}.popup-plate>div:nth-child(1)>div[data-v-c391106b]{flex:0 0 auto;padding:0 .3rem;color:#5a82f0;font-size:16px;line-height:2.6;cursor:pointer}.popup-plate>.step[data-v-c391106b]{display:flex;flex-wrap:wrap;justify-content:center;padding:.2rem .2rem .1rem}.popup-plate>.step>.popitem[data-v-c391106b]{flex:0 0 auto;width:1rem;padding:.2rem 0;border:1px solid #e6e6e6;border-radius:.08rem;margin-right:.1rem;margin-bottom:.1rem;font-size:16px;line-height:1;text-align:center;background-color:#fff;cursor:pointer}.popup-plate>.step>.popitem[data-v-c391106b]:not(.unactive):active{background-color:#eee}.popup-plate>.step>.popitem.unactive[data-v-c391106b]{color:#ccc}.popup-plate>.step>.popitem.popitem-clear[data-v-c391106b]{background-color:#eee;display:flex;justify-content:center;align-items:center}
|
|
63
|
+
`]],["__scopeId","data-v-c391106b"]]),Im=["width","height"],Mm=["fill"],Am=X({__name:"SVGDelete.ce",props:{width:{default:"16px"},height:{},color:{default:V.colorPrimary}},setup(t){const e=t;return(o,n)=>(D(),B("svg",{viewBox:"0 0 24 24",width:e.width,height:e.height??e.width,xmlns:"http://www.w3.org/2000/svg"},[h("path",{fill:e.color,d:"M7 21q-.825 0-1.412-.587T5 19V6H4V4h5V3h6v1h5v2h-1v13q0 .825-.587 1.413T17 21zM17 6H7v13h10zM9 17h2V8H9zm4 0h2V8h-2zM7 6v13z"},null,8,Mm)],8,Im))}}),Rm=ee(Am,[["styles",[`svg[data-v-8745630f]{transform-origin:center}
|
|
64
|
+
`]],["__scopeId","data-v-8745630f"]]),jm=["width","height"],Fm=["fill"],zm=X({__name:"SVGDelete",props:{width:{default:"16px"},height:{},color:{default:V.colorPrimary}},setup(t){const e=t;return(o,n)=>(D(),B("svg",{viewBox:"0 0 24 24",width:e.width,height:e.height??e.width,xmlns:"http://www.w3.org/2000/svg"},[h("path",{fill:e.color,d:"M7 21q-.825 0-1.412-.587T5 19V6H4V4h5V3h6v1h5v2h-1v13q0 .825-.587 1.413T17 21zM17 6H7v13h10zM9 17h2V8H9zm4 0h2V8h-2zM7 6v13z"},null,8,Fm)],8,jm))}}),qv="",Ml=ee(zm,[["__scopeId","data-v-4747d4a7"]]),Hm=X({customOptions:{SVGDelete:Ml},inheritAttrs:!0,__name:"SlideLeftItem.ce",props:{bgColor:{default:V.colorGrayFF},deleteColor:{default:V.colorRed},fontColor:{default:V.colorGrayFF},deleteWidth:{default:"44px"},transtionDuration:{default:"150ms"}},emits:["delete"],setup(t,{expose:e,emit:o}){const n=t,i=o,s=L(!1),r=()=>{i("delete"),s.value=!1},a=new os;let l;const c=L();return se(c,()=>{c.value&&(l=a.capture(c.value,{slideLeft:(d,f)=>{s.value=!0},slideRight:(d,f)=>{s.value=!1}}))}),ln(()=>{l?.()}),e({}),(d,f)=>(D(),B("div",{class:"parent",ref_key:"item",ref:c,style:R({backgroundColor:n.bgColor})},[h("div",{class:"content",style:R({transition:"all ease-in "+n.transtionDuration,transform:s.value?"translate(-"+n.deleteWidth+", 0)":"translate(0, 0)"})},[ue(d.$slots,"default",{},void 0,!0)],4),h("div",{class:"delete",onClick:r,style:R({backgroundColor:n.deleteColor,width:n.deleteWidth,transition:"all ease-in "+n.transtionDuration,transform:s.value?"translate(0, 0)":"translate("+n.deleteWidth+", 0)"})},[oe(Ml,{color:n.fontColor},null,8,["color"])],4)],4))}}),Al=ee(Hm,[["styles",[`.parent[data-v-ef5f6614]{position:relative;overflow:hidden;width:100%}.content[data-v-ef5f6614]{width:100%;height:100%}.delete[data-v-ef5f6614]{position:absolute;right:0;top:0;height:100%;display:flex;justify-content:center;align-items:center;cursor:pointer}
|
|
65
|
+
`]],["__scopeId","data-v-ef5f6614"]]),Bm={class:"parent"},Wm=ee(X({customOptions:{},inheritAttrs:!0,__name:"PlateDisplay.ce",props:{plate:{},plateType:{},displayType:{default:"chinese"},fontColor:{},fontSize:{}},setup(t,{expose:e,emit:o}){const n=t,i=[{name:"蓝牌",style:"background-color: #0078f0; color: #ffffff;"},{name:"绿牌",style:"background-color: #00f08c; color: #000000;"},{name:"黄牌",style:"background-color: #fac800; color: #000000;"},{name:"黄绿",style:"background: linear-gradient(90deg, #fac800 51.5%, #00f08c 51.51%); color: #000000;"},{name:"黑牌",style:"background-color: #222222; color: #ffffff;"},{name:"未知",style:"background-color: #cccccc; color: #ffffff;"}];function s(f){return f.length>2?f.substring(0,2)+"·"+f.substring(2):f}function r(f){const u=i.filter(v=>v.name===f);return u.length?u[0]:r("未知")}const a=s(n.plate),l=L(r(n.plateType));let c=n.fontColor,d=n.fontSize;switch(n.displayType){case"dot":c=c??"#999999",d=d??"14px";break;case"chinese":c=c??"#333333",d=d??"20px";break}return e({}),(f,u)=>(D(),B("div",Bm,[h("div",{class:U(["leading",n.displayType]),style:R(l.value.style)},Oe(l.value.name),7),h("div",{class:"text",style:R({color:le(c),"font-size":le(d)})},Oe(le(a)),5)]))}}),[["styles",[`.parent[data-v-14d35058]{display:flex;justify-content:center;align-items:center}.leading[data-v-14d35058]{box-sizing:border-box;font-size:12px;line-height:1;border-radius:2px}.leading.chinese[data-v-14d35058]{padding:4px}.leading.dot[data-v-14d35058]{font-size:0;width:14px;height:14px;border-radius:50%}.text[data-v-14d35058]{margin-left:5px;margin-right:5px;line-height:1}
|
|
66
|
+
`]],["__scopeId","data-v-14d35058"]]),Um=["onClick"],Gm=ee(X({customOptions:{},inheritAttrs:!0,__name:"TabsForCE.ce",props:{headers:{default:()=>[]},initIndex:{default:0}},emits:["changedIndex"],setup(t,{expose:e,emit:o}){const n=t,i=o,s=L(n.initIndex),r=L(),a=L(0),l=L(0),c=L(0),d=L([]),f=[],u=(y,k)=>{if(y){if(f.push({index:k,el:y}),f.length<n.headers.length)return;d.value=f}};se([r,d],()=>{v()});function v(){if(r.value&&d.value.length){const y=r.value.getBoundingClientRect(),k=d.value[s.value].el.getBoundingClientRect();a.value=k.x-y.x,l.value=k.y-y.y+k.height,c.value=k.width}}function b(y){s.value=y,i("changedIndex",y),v()}return e({}),(y,k)=>(D(),B("div",null,[h("div",{class:"header",ref_key:"headerRef",ref:r},[(D(!0),B(be,null,Xt(y.headers,(A,$)=>(D(),B("div",{key:A,class:U($==s.value?"active":""),onClick:z=>b($)},[h("div",{ref_for:!0,ref:z=>u(z,$)},Oe(A),513)],10,Um))),128)),h("div",{class:"indicator",style:R({top:l.value+"px",left:a.value+"px",width:c.value+"px",height:"2px"})},null,4)],512)]))}}),[["styles",[`.header[data-v-0f02d488]{position:relative;display:flex;font-size:14px;line-height:1;color:#999}.header .active[data-v-0f02d488]{color:#5a82f0}.header>div[data-v-0f02d488]{flex:1 1 auto;cursor:pointer;text-align:center;display:flex;justify-content:center;align-items:center;font-weight:700;background-color:#fff;position:relative}.header>div>div[data-v-0f02d488]{box-sizing:border-box;padding:7px 4px}.header>div.indicator[data-v-0f02d488]{display:inline-block;flex:0;position:absolute;background-color:#5a82f0;transition:all ease-out .2s}
|
|
67
|
+
`]],["__scopeId","data-v-0f02d488"]]);class Km extends HTMLElement{constructor(){super(),this.listenedMedia=[],this.reloadQueued=!1}connectedCallback(){this.video=this.querySelector("video"),this.bindMediaListeners()}disconnectedCallback(){this.unbindMediaListeners()}bindMediaListeners(){this.querySelectorAll("source").forEach(e=>{if(e.media){const o=()=>{(e.media===this.video.currentSrc||!this.previousSiblingIsPlaying(e,this.video.currentSrc)&&!this.reloadQueued)&&this.reloadVideo()};this.listenedMedia.push({media:e.media,handler:o}),window.matchMedia(e.media).addEventListener("change",o)}})}unbindMediaListeners(){this.listenedMedia.forEach(e=>{window.matchMedia(e.media).removeEventListener("change",e.handler)})}previousSiblingIsPlaying(e,o){const n=e;for(;e.previousElementSibling;)if(n.src===o)return!0;return!1}reloadVideo(){this.reloadQueued=!0;const e=this.video.currentTime,o=this.video.playState;this.video.load();const n=()=>{this.video.playState=o,this.video.currentTime=e.toString(),this.reloadQueued=!1,this.video.removeEventListener("loadeddata",n)};this.video.addEventListener("loadeddata",n)}}const qm=Km;function Ym(t,e="style.css"){for(let o of t){const n=document.querySelector(o)?.shadowRoot;if(n){const i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",e),n.appendChild(i)}}}const mt=(t,e,o=!0)=>{let n=0,i=[...t.styles];for(let s in t.customOptions){const r=`[${t.customOptions[s].__scopeId}]`;i=[...e[n++].styles.map(a=>jd(a,r)),...i]}if(o)t.styles=i;else for(let s of t.styles){const r=document.createElement("style");r.innerHTML=s,document.head.insertBefore(r,document.head.childNodes[document.head.childNodes.length-1].nextSibling)}return t},Zm=()=>{const t=Ee(_l);customElements.define("yz-icon",t);const e=Ee(is);customElements.define("yz-button",e);const o=Ee(dp);customElements.define("yz-mobile-layout",o),mt(to,[ss]);const n=Ee(to);customElements.define("yz-pop",n),mt(rs,[ss,to,_l,is]);const i=Ee(rs);customElements.define("yz-dialog",i),mt(El,[ss,to,rs,Op]);const s=Ee(El);customElements.define("yz-dialog-loading",s);const r=Ee(Fp);customElements.define("yz-select",r);const a=Ee(Hp);customElements.define("yz-switch",a);const l=Ee(Yp);customElements.define("yz-radiogroup",l);const c=Ee(oh);customElements.define("yz-checkboxgroup",c),mt(as,[to,is]);const d=Ee(as);customElements.define("yz-popover",d),mt(Pl,[as]);const f=Ee(Pl);customElements.define("yz-colorpicker",f);const u=Ee(Dh);customElements.define("yz-resize-observer",u);const v=Ee(Lh);customElements.define("yz-map-tianditu",v),mt(ys,[to,gm]);const b=Ee(ys);customElements.define("yz-plate-keyboard",b),mt(Il,[Ah,ys]);const y=Ee(Il);customElements.define("yz-plate-mobile",y),mt(Al,[Rm]);const k=Ee(Al);customElements.define("yz-slide-left-item",k);const A=Ee(Wm);customElements.define("yz-plate-display",A);const $=Ee(Gm);customElements.define("yz-tabs",$),customElements.define("yz-responsive-video",qm)};return lo.install=Zm,lo.linkChildrenComponentsStyles=Ym,lo.mergeChildComponentCSS=mt,Object.defineProperty(lo,Symbol.toStringTag,{value:"Module"}),lo}({});
|
|
107
68
|
//# sourceMappingURL=yz_custom_element.iife.js.map
|