@zyzgroup/core-vue 0.0.11 → 0.0.13

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.
Files changed (96) hide show
  1. package/README.md +0 -15
  2. package/ce/style.css +1 -1
  3. package/ce/yz_custom_element.iife.js +52 -77
  4. package/ce/yz_custom_element.iife.js.map +1 -1
  5. package/ce/yz_custom_element.js +16919 -41395
  6. package/ce/yz_custom_element.js.map +1 -1
  7. package/ce/yz_custom_element.umd.cjs +52 -77
  8. package/ce/yz_custom_element.umd.cjs.map +1 -1
  9. package/dist/style.css +1 -1
  10. package/dist/zyzgroup_core_vue.iife.js +43 -54
  11. package/dist/zyzgroup_core_vue.iife.js.map +1 -0
  12. package/dist/zyzgroup_core_vue.js +14985 -37902
  13. package/dist/zyzgroup_core_vue.js.map +1 -0
  14. package/dist/zyzgroup_core_vue.umd.cjs +43 -54
  15. package/dist/zyzgroup_core_vue.umd.cjs.map +1 -0
  16. package/package.json +5 -5
  17. package/types/components/AnimatePanel.ce.vue.d.ts +34 -0
  18. package/types/components/AnimatePanel.vue.d.ts +34 -0
  19. package/types/components/Button.ce.vue.d.ts +13 -15
  20. package/types/components/Button.vue.d.ts +13 -15
  21. package/types/components/CheckboxGroup.ce.vue.d.ts +79 -0
  22. package/types/components/CheckboxGroup.vue.d.ts +79 -0
  23. package/types/components/ColorPicker.ce.vue.d.ts +41 -0
  24. package/types/components/ColorPicker.vue.d.ts +41 -0
  25. package/types/components/Dialog.ce.vue.d.ts +12 -8
  26. package/types/components/Dialog.vue.d.ts +12 -8
  27. package/types/components/DialogLoading.ce.vue.d.ts +28 -7
  28. package/types/components/DialogLoading.vue.d.ts +28 -7
  29. package/types/components/EaseGraphDisplay.ce.vue.d.ts +71 -0
  30. package/types/components/EaseGraphDisplay.vue.d.ts +71 -0
  31. package/types/components/EaseGroupGraphDisplay.ce.vue.d.ts +55 -0
  32. package/types/components/EaseGroupGraphDisplay.vue.d.ts +55 -0
  33. package/types/components/FPSStats.ce.vue.d.ts +2 -0
  34. package/types/components/FPSStats.vue.d.ts +2 -0
  35. package/types/components/HandWritePanel.ce.vue.d.ts +61 -0
  36. package/types/components/HandWritePanel.vue.d.ts +61 -0
  37. package/types/components/InterpolationGraphDisplay.ce.vue.d.ts +54 -0
  38. package/types/components/InterpolationGraphDisplay.vue.d.ts +54 -0
  39. package/types/components/InterpolationGroupGraphDisplay.ce.vue.d.ts +45 -0
  40. package/types/components/InterpolationGroupGraphDisplay.vue.d.ts +45 -0
  41. package/types/components/MapTianditu.ce.vue.d.ts +67 -0
  42. package/types/components/MapTianditu.vue.d.ts +67 -0
  43. package/types/components/MobileLayout.ce.vue.d.ts +6 -36
  44. package/types/components/MobileLayout.vue.d.ts +6 -36
  45. package/types/components/Overlay.ce.vue.d.ts +45 -0
  46. package/types/components/Overlay.vue.d.ts +45 -0
  47. package/types/components/PlateDisplay.ce.vue.d.ts +37 -0
  48. package/types/components/PlateDisplay.vue.d.ts +37 -0
  49. package/types/components/PlateKeyboard.ce.vue.d.ts +45 -0
  50. package/types/components/PlateKeyboard.vue.d.ts +45 -0
  51. package/types/components/PlateMobile.ce.vue.d.ts +35 -0
  52. package/types/components/PlateMobile.vue.d.ts +35 -0
  53. package/types/components/Pop.ce.vue.d.ts +67 -0
  54. package/types/components/Pop.vue.d.ts +67 -0
  55. package/types/components/Popover.ce.vue.d.ts +42 -0
  56. package/types/components/Popover.vue.d.ts +42 -0
  57. package/types/components/PopoverHeadlessUI.ce.vue.d.ts +10 -0
  58. package/types/components/PopoverHeadlessUI.vue.d.ts +10 -0
  59. package/types/components/RadioGroup.ce.vue.d.ts +79 -0
  60. package/types/components/RadioGroup.vue.d.ts +79 -0
  61. package/types/components/ResizeObserver.ce.vue.d.ts +37 -0
  62. package/types/components/ResizeObserver.vue.d.ts +37 -0
  63. package/types/components/Select.ce.vue.d.ts +31 -4
  64. package/types/components/Select.vue.d.ts +31 -4
  65. package/types/components/SlideLeftItem.ce.vue.d.ts +60 -0
  66. package/types/components/SlideLeftItem.vue.d.ts +60 -0
  67. package/types/components/Switch.ce.vue.d.ts +63 -0
  68. package/types/components/Switch.vue.d.ts +63 -0
  69. package/types/components/Tab.ce.vue.d.ts +30 -0
  70. package/types/components/Tab.vue.d.ts +30 -0
  71. package/types/components/Tabs.ce.vue.d.ts +33 -0
  72. package/types/components/Tabs.vue.d.ts +33 -0
  73. package/types/components/TabsForCE.ce.vue.d.ts +38 -0
  74. package/types/components/TabsForCE.vue.d.ts +38 -0
  75. package/types/components/svg/SVGCheck.ce.vue.d.ts +34 -0
  76. package/types/components/svg/SVGCheck.vue.d.ts +34 -0
  77. package/types/components/svg/SVGCleanUp.ce.vue.d.ts +34 -0
  78. package/types/components/svg/SVGCleanUp.vue.d.ts +34 -0
  79. package/types/components/svg/SVGDelete.ce.vue.d.ts +36 -0
  80. package/types/components/svg/SVGDelete.vue.d.ts +36 -0
  81. package/types/components/svg/SVGFail.ce.vue.d.ts +36 -0
  82. package/types/components/svg/SVGFail.vue.d.ts +36 -0
  83. package/types/components/svg/SVGHome.ce.vue.d.ts +36 -0
  84. package/types/components/svg/SVGHome.vue.d.ts +36 -0
  85. package/types/components/svg/SVGPrompt.ce.vue.d.ts +36 -0
  86. package/types/components/svg/SVGPrompt.vue.d.ts +36 -0
  87. package/types/components/svg/SVGQuestion.ce.vue.d.ts +36 -0
  88. package/types/components/svg/SVGQuestion.vue.d.ts +36 -0
  89. package/types/components/svg/SVGReturn.ce.vue.d.ts +36 -0
  90. package/types/components/svg/SVGReturn.vue.d.ts +36 -0
  91. package/types/components/svg/SVGSuccess.vue.d.ts +36 -0
  92. package/types/components/svg/SVGWaiting.ce.vue.d.ts +36 -0
  93. package/types/components/svg/SVGWaiting.vue.d.ts +36 -0
  94. package/types/hooks/useWindowSize.d.ts +5 -0
  95. package/types/lib.d.ts +25 -5
  96. package/dist/vite.svg +0 -1
@@ -1,33 +1,34 @@
1
- (function(Yo,ji){typeof exports=="object"&&typeof module<"u"?ji(exports):typeof define=="function"&&define.amd?define(["exports"],ji):(Yo=typeof globalThis<"u"?globalThis:Yo||self,ji(Yo.YZCustomElement={}))})(this,function(Yo){"use strict";/**
1
+ (function(Wn,gn){typeof exports=="object"&&typeof module<"u"?gn(exports):typeof define=="function"&&define.amd?define(["exports"],gn):(Wn=typeof globalThis<"u"?globalThis:Wn||self,gn(Wn.YZCustomElement={}))})(this,function(Wn){"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 ji(e,t){const r=new Set(e.split(","));return t?n=>r.has(n.toLowerCase()):n=>r.has(n)}const nr={}.NODE_ENV!=="production"?Object.freeze({}):{},Ua={}.NODE_ENV!=="production"?Object.freeze([]):[],Nr=()=>{},BP=()=>!1,Al=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),mh=e=>e.startsWith("onUpdate:"),pr=Object.assign,dp=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},HP=Object.prototype.hasOwnProperty,De=(e,t)=>HP.call(e,t),ae=Array.isArray,js=e=>gh(e)==="[object Map]",Xy=e=>gh(e)==="[object Set]",ge=e=>typeof e=="function",Cr=e=>typeof e=="string",Fs=e=>typeof e=="symbol",Je=e=>e!==null&&typeof e=="object",fp=e=>(Je(e)||ge(e))&&ge(e.then)&&ge(e.catch),Wy=Object.prototype.toString,gh=e=>Wy.call(e),pp=e=>gh(e).slice(8,-1),Jy=e=>gh(e)==="[object Object]",mp=e=>Cr(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Dl=ji(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),qP=ji("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),vh=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},KP=/-(\w)/g,so=vh(e=>e.replace(KP,(t,r)=>r?r.toUpperCase():"")),YP=/\B([A-Z])/g,Vn=vh(e=>e.replace(YP,"-$1").toLowerCase()),yh=vh(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ms=vh(e=>e?`on${yh(e)}`:""),Xo=(e,t)=>!Object.is(e,t),Rl=(e,t)=>{for(let r=0;r<e.length;r++)e[r](t)},Qy=(e,t,r)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},XP=e=>{const t=parseFloat(e);return isNaN(t)?e:t},gp=e=>{const t=Cr(e)?Number(e):NaN;return isNaN(t)?e:t};let Zy;const vp=()=>Zy||(Zy=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Te(e){if(ae(e)){const t={};for(let r=0;r<e.length;r++){const n=e[r],i=Cr(n)?ZP(n):Te(n);if(i)for(const o in i)t[o]=i[o]}return t}else if(Cr(e)||Je(e))return e}const WP=/;(?![^(]*\))/g,JP=/:([^]+)/,QP=/\/\*[^]*?\*\//g;function ZP(e){const t={};return e.replace(QP,"").split(WP).forEach(r=>{if(r){const n=r.split(JP);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function yp(e){let t="";if(Cr(e))t=e;else if(ae(e))for(let r=0;r<e.length;r++){const n=yp(e[r]);n&&(t+=n+" ")}else if(Je(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}const tT=ji("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function t_(e){return!!e||e===""}const gi=e=>Cr(e)?e:e==null?"":ae(e)||Je(e)&&(e.toString===Wy||!ge(e.toString))?JSON.stringify(e,e_,2):String(e),e_=(e,t)=>t&&t.__v_isRef?e_(e,t.value):js(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,i],o)=>(r[_p(n,o)+" =>"]=i,r),{})}:Xy(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>_p(r))}:Fs(t)?_p(t):Je(t)&&!ae(t)&&!Jy(t)?String(t):t,_p=(e,t="")=>{var r;return Fs(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/**
5
+ **//*! #__NO_SIDE_EFFECTS__ */function gn(e,t){const n=new Set(e.split(","));return t?i=>n.has(i.toLowerCase()):i=>n.has(i)}const ce={}.NODE_ENV!=="production"?Object.freeze({}):{},Li={}.NODE_ENV!=="production"?Object.freeze([]):[],Ce=()=>{},mf=()=>!1,or=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Hr=e=>e.startsWith("onUpdate:"),ge=Object.assign,lo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},gf=Object.prototype.hasOwnProperty,ne=(e,t)=>gf.call(e,t),Rt=Array.isArray,ui=e=>Ur(e)==="[object Map]",al=e=>Ur(e)==="[object Set]",Gt=e=>typeof e=="function",_e=e=>typeof e=="string",hi=e=>typeof e=="symbol",ae=e=>e!==null&&typeof e=="object",co=e=>(ae(e)||Gt(e))&&Gt(e.then)&&Gt(e.catch),ll=Object.prototype.toString,Ur=e=>ll.call(e),uo=e=>Ur(e).slice(8,-1),cl=e=>Ur(e)==="[object Object]",ho=e=>_e(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ar=gn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),vf=gn("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Wr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},yf=/-(\w)/g,Qe=Wr(e=>e.replace(yf,(t,n)=>n?n.toUpperCase():"")),_f=/\B([A-Z])/g,Je=Wr(e=>e.replace(_f,"-$1").toLowerCase()),fi=Wr(e=>e.charAt(0).toUpperCase()+e.slice(1)),di=Wr(e=>e?`on${fi(e)}`:""),qn=(e,t)=>!Object.is(e,t),lr=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},ul=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},bf=e=>{const t=parseFloat(e);return isNaN(t)?e:t},hl=e=>{const t=_e(e)?Number(e):NaN;return isNaN(t)?e:t};let fl;const fo=()=>fl||(fl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Lt(e){if(Rt(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],r=_e(i)?Cf(i):Lt(i);if(r)for(const s in r)t[s]=r[s]}return t}else if(_e(e)||ae(e))return e}const xf=/;(?![^(]*\))/g,wf=/:([^]+)/,Ef=/\/\*[^]*?\*\//g;function Cf(e){const t={};return e.replace(Ef,"").split(xf).forEach(n=>{if(n){const i=n.split(wf);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function Ht(e){let t="";if(_e(e))t=e;else if(Rt(e))for(let n=0;n<e.length;n++){const i=Ht(e[n]);i&&(t+=i+" ")}else if(ae(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const kf=gn("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function dl(e){return!!e||e===""}const ke=e=>_e(e)?e:e==null?"":Rt(e)||ae(e)&&(e.toString===ll||!Gt(e.toString))?JSON.stringify(e,pl,2):String(e),pl=(e,t)=>t&&t.__v_isRef?pl(e,t.value):ui(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,r],s)=>(n[po(i,s)+" =>"]=r,n),{})}:al(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>po(n))}:hi(t)?po(t):ae(t)&&!Rt(t)&&!cl(t)?String(t):t,po=(e,t="")=>{var n;return hi(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
6
6
  * @vue/reactivity v3.4.25
7
7
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
8
  * @license MIT
9
- **/function Wo(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let vi;class eT{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=vi,!t&&vi&&(this.index=(vi.scopes||(vi.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const r=vi;try{return vi=this,t()}finally{vi=r}}else({}).NODE_ENV!=="production"&&Wo("cannot run an inactive effect scope.")}on(){vi=this}off(){vi=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 rT(e,t=vi){t&&t.active&&t.effects.push(e)}function nT(){return vi}let Ls;class bp{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,rT(this,i)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,ao();for(let t=0;t<this._depsLength;t++){const r=this.deps[t];if(r.computed&&(iT(r.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),lo()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Jo,r=Ls;try{return Jo=!0,Ls=this,this._runnings++,r_(this),this.fn()}finally{n_(this),this._runnings--,Ls=r,Jo=t}}stop(){var t;this.active&&(r_(this),n_(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function iT(e){return e.value}function r_(e){e._trackId++,e._depsLength=0}function n_(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)i_(e.deps[t],e);e.deps.length=e._depsLength}}function i_(e,t){const r=e.get(t);r!==void 0&&t._trackId!==r&&(e.delete(t),e.size===0&&e.cleanup())}let Jo=!0,wp=0;const o_=[];function ao(){o_.push(Jo),Jo=!1}function lo(){const e=o_.pop();Jo=e===void 0?!0:e}function xp(){wp++}function Sp(){for(wp--;!wp&&$p.length;)$p.shift()()}function s_(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&&i_(i,e),e.deps[e._depsLength++]=t):e._depsLength++,{}.NODE_ENV!=="production"&&((n=e.onTrack)==null||n.call(e,pr({effect:e},r)))}}const $p=[];function a_(e,t,r){var n;xp();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,pr({effect:i},r))),i.trigger(),(!i._runnings||i.allowRecurse)&&i._dirtyLevel!==2&&(i._shouldSchedule=!1,i.scheduler&&$p.push(i.scheduler)))}Sp()}const l_=(e,t)=>{const r=new Map;return r.cleanup=e,r.computed=t,r},Ep=new WeakMap,Vs=Symbol({}.NODE_ENV!=="production"?"iterate":""),Cp=Symbol({}.NODE_ENV!=="production"?"Map key iterate":"");function rn(e,t,r){if(Jo&&Ls){let n=Ep.get(e);n||Ep.set(e,n=new Map);let i=n.get(r);i||n.set(r,i=l_(()=>n.delete(r))),s_(Ls,i,{}.NODE_ENV!=="production"?{target:e,type:t,key:r}:void 0)}}function Fi(e,t,r,n,i,o){const s=Ep.get(e);if(!s)return;let a=[];if(t==="clear")a=[...s.values()];else if(r==="length"&&ae(e)){const c=Number(n);s.forEach((l,u)=>{(u==="length"||!Fs(u)&&u>=c)&&a.push(l)})}else switch(r!==void 0&&a.push(s.get(r)),t){case"add":ae(e)?mp(r)&&a.push(s.get("length")):(a.push(s.get(Vs)),js(e)&&a.push(s.get(Cp)));break;case"delete":ae(e)||(a.push(s.get(Vs)),js(e)&&a.push(s.get(Cp)));break;case"set":js(e)&&a.push(s.get(Vs));break}xp();for(const c of a)c&&a_(c,4,{}.NODE_ENV!=="production"?{target:e,type:t,key:r,newValue:n,oldValue:i,oldTarget:o}:void 0);Sp()}const oT=ji("__proto__,__v_isRef,__isVue"),c_=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Fs)),u_=sT();function sT(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const n=ee(this);for(let o=0,s=this.length;o<s;o++)rn(n,"get",o+"");const i=n[t](...r);return i===-1||i===!1?n[t](...r.map(ee)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...r){ao(),xp();const n=ee(this)[t].apply(this,r);return Sp(),lo(),n}}),e}function aT(e){Fs(e)||(e=String(e));const t=ee(this);return rn(t,"has",e),t.hasOwnProperty(e)}class h_{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?x_:w_:o?b_:__).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const s=ae(t);if(!i){if(s&&De(u_,r))return Reflect.get(u_,r,n);if(r==="hasOwnProperty")return aT}const a=Reflect.get(t,r,n);return(Fs(r)?c_.has(r):oT(r))||(i||rn(t,"get",r),o)?a:nn(a)?s&&mp(r)?a:a.value:Je(a)?i?S_(a):Pp(a):a}}class d_ extends h_{constructor(t=!1){super(!1,t)}set(t,r,n,i){let o=t[r];if(!this._isShallow){const c=Us(o);if(!zs(n)&&!Us(n)&&(o=ee(o),n=ee(n)),!ae(t)&&nn(o)&&!nn(n))return c?!1:(o.value=n,!0)}const s=ae(t)&&mp(r)?Number(r)<t.length:De(t,r),a=Reflect.set(t,r,n,i);return t===ee(i)&&(s?Xo(n,o)&&Fi(t,"set",r,n,o):Fi(t,"add",r,n)),a}deleteProperty(t,r){const n=De(t,r),i=t[r],o=Reflect.deleteProperty(t,r);return o&&n&&Fi(t,"delete",r,void 0,i),o}has(t,r){const n=Reflect.has(t,r);return(!Fs(r)||!c_.has(r))&&rn(t,"has",r),n}ownKeys(t){return rn(t,"iterate",ae(t)?"length":Vs),Reflect.ownKeys(t)}}class f_ extends h_{constructor(t=!1){super(!0,t)}set(t,r){return{}.NODE_ENV!=="production"&&Wo(`Set operation on key "${String(r)}" failed: target is readonly.`,t),!0}deleteProperty(t,r){return{}.NODE_ENV!=="production"&&Wo(`Delete operation on key "${String(r)}" failed: target is readonly.`,t),!0}}const lT=new d_,cT=new f_,uT=new d_(!0),hT=new f_(!0),kp=e=>e,_h=e=>Reflect.getPrototypeOf(e);function bh(e,t,r=!1,n=!1){e=e.__v_raw;const i=ee(e),o=ee(t);r||(Xo(t,o)&&rn(i,"get",t),rn(i,"get",o));const{has:s}=_h(i),a=n?kp:r?Op:Il;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 wh(e,t=!1){const r=this.__v_raw,n=ee(r),i=ee(e);return t||(Xo(e,i)&&rn(n,"has",e),rn(n,"has",i)),e===i?r.has(e):r.has(e)||r.has(i)}function xh(e,t=!1){return e=e.__v_raw,!t&&rn(ee(e),"iterate",Vs),Reflect.get(e,"size",e)}function p_(e){e=ee(e);const t=ee(this);return _h(t).has.call(t,e)||(t.add(e),Fi(t,"add",e,e)),this}function m_(e,t){t=ee(t);const r=ee(this),{has:n,get:i}=_h(r);let o=n.call(r,e);o?{}.NODE_ENV!=="production"&&y_(r,n,e):(e=ee(e),o=n.call(r,e));const s=i.call(r,e);return r.set(e,t),o?Xo(t,s)&&Fi(r,"set",e,t,s):Fi(r,"add",e,t),this}function g_(e){const t=ee(this),{has:r,get:n}=_h(t);let i=r.call(t,e);i?{}.NODE_ENV!=="production"&&y_(t,r,e):(e=ee(e),i=r.call(t,e));const o=n?n.call(t,e):void 0,s=t.delete(e);return i&&Fi(t,"delete",e,void 0,o),s}function v_(){const e=ee(this),t=e.size!==0,r={}.NODE_ENV!=="production"?js(e)?new Map(e):new Set(e):void 0,n=e.clear();return t&&Fi(e,"clear",void 0,void 0,r),n}function Sh(e,t){return function(n,i){const o=this,s=o.__v_raw,a=ee(s),c=t?kp:e?Op:Il;return!e&&rn(a,"iterate",Vs),s.forEach((l,u)=>n.call(i,c(l),c(u),o))}}function $h(e,t,r){return function(...n){const i=this.__v_raw,o=ee(i),s=js(o),a=e==="entries"||e===Symbol.iterator&&s,c=e==="keys"&&s,l=i[e](...n),u=r?kp:t?Op:Il;return!t&&rn(o,"iterate",c?Cp:Vs),{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 Qo(e){return function(...t){if({}.NODE_ENV!=="production"){const r=t[0]?`on key "${t[0]}" `:"";Wo(`${yh(e)} operation ${r}failed: target is readonly.`,ee(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function dT(){const e={get(o){return bh(this,o)},get size(){return xh(this)},has:wh,add:p_,set:m_,delete:g_,clear:v_,forEach:Sh(!1,!1)},t={get(o){return bh(this,o,!1,!0)},get size(){return xh(this)},has:wh,add:p_,set:m_,delete:g_,clear:v_,forEach:Sh(!1,!0)},r={get(o){return bh(this,o,!0)},get size(){return xh(this,!0)},has(o){return wh.call(this,o,!0)},add:Qo("add"),set:Qo("set"),delete:Qo("delete"),clear:Qo("clear"),forEach:Sh(!0,!1)},n={get(o){return bh(this,o,!0,!0)},get size(){return xh(this,!0)},has(o){return wh.call(this,o,!0)},add:Qo("add"),set:Qo("set"),delete:Qo("delete"),clear:Qo("clear"),forEach:Sh(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=$h(o,!1,!1),r[o]=$h(o,!0,!1),t[o]=$h(o,!1,!0),n[o]=$h(o,!0,!0)}),[e,r,t,n]}const[fT,pT,mT,gT]=dT();function Eh(e,t){const r=t?e?gT:mT:e?pT:fT;return(n,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(De(r,i)&&i in n?r:n,i,o)}const vT={get:Eh(!1,!1)},yT={get:Eh(!1,!0)},_T={get:Eh(!0,!1)},bT={get:Eh(!0,!0)};function y_(e,t,r){const n=ee(r);if(n!==r&&t.call(e,n)){const i=pp(e);Wo(`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 __=new WeakMap,b_=new WeakMap,w_=new WeakMap,x_=new WeakMap;function wT(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function xT(e){return e.__v_skip||!Object.isExtensible(e)?0:wT(pp(e))}function Pp(e){return Us(e)?e:Ch(e,!1,lT,vT,__)}function ST(e){return Ch(e,!1,uT,yT,b_)}function S_(e){return Ch(e,!0,cT,_T,w_)}function co(e){return Ch(e,!0,hT,bT,x_)}function Ch(e,t,r,n,i){if(!Je(e))return{}.NODE_ENV!=="production"&&Wo(`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=xT(e);if(s===0)return e;const a=new Proxy(e,s===2?n:r);return i.set(e,a),a}function za(e){return Us(e)?za(e.__v_raw):!!(e&&e.__v_isReactive)}function Us(e){return!!(e&&e.__v_isReadonly)}function zs(e){return!!(e&&e.__v_isShallow)}function Tp(e){return e?!!e.__v_raw:!1}function ee(e){const t=e&&e.__v_raw;return t?ee(t):e}function $T(e){return Object.isExtensible(e)&&Qy(e,"__v_skip",!0),e}const Il=e=>Je(e)?Pp(e):e,Op=e=>Je(e)?S_(e):e,ET="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 $_{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 bp(()=>t(this._value),()=>kh(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=ee(this);return(!t._cacheable||t.effect.dirty)&&Xo(t._value,t._value=t.effect.run())&&kh(t,4),E_(t),t.effect._dirtyLevel>=2&&({}.NODE_ENV!=="production"&&this._warnRecursive&&Wo(ET,`
9
+ **/function Yn(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let un;class Sf{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=un,!t&&un&&(this.index=(un.scopes||(un.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=un;try{return un=this,t()}finally{un=n}}else({}).NODE_ENV!=="production"&&Yn("cannot run an inactive effect scope.")}on(){un=this}off(){un=this.parent}stop(t){if(this._active){let n,i;for(n=0,i=this.effects.length;n<i;n++)this.effects[n].stop();for(n=0,i=this.cleanups.length;n<i;n++)this.cleanups[n]();if(this.scopes)for(n=0,i=this.scopes.length;n<i;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function Tf(e,t=un){t&&t.active&&t.effects.push(e)}function Nf(){return un}let pi;class mo{constructor(t,n,i,r){this.fn=t,this.trigger=n,this.scheduler=i,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,Tf(this,r)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,Sn();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(Of(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Tn()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Xn,n=pi;try{return Xn=!0,pi=this,this._runnings++,ml(this),this.fn()}finally{gl(this),this._runnings--,pi=n,Xn=t}}stop(){var t;this.active&&(ml(this),gl(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Of(e){return e.value}function ml(e){e._trackId++,e._depsLength=0}function gl(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)vl(e.deps[t],e);e.deps.length=e._depsLength}}function vl(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let Xn=!0,go=0;const yl=[];function Sn(){yl.push(Xn),Xn=!1}function Tn(){const e=yl.pop();Xn=e===void 0?!0:e}function vo(){go++}function yo(){for(go--;!go&&_o.length;)_o.shift()()}function _l(e,t,n){var i;if(t.get(e)!==e._trackId){t.set(e,e._trackId);const r=e.deps[e._depsLength];r!==t?(r&&vl(r,e),e.deps[e._depsLength++]=t):e._depsLength++,{}.NODE_ENV!=="production"&&((i=e.onTrack)==null||i.call(e,ge({effect:e},n)))}}const _o=[];function bl(e,t,n){var i;vo();for(const r of e.keys()){let s;r._dirtyLevel<t&&(s??(s=e.get(r)===r._trackId))&&(r._shouldSchedule||(r._shouldSchedule=r._dirtyLevel===0),r._dirtyLevel=t),r._shouldSchedule&&(s??(s=e.get(r)===r._trackId))&&({}.NODE_ENV!=="production"&&((i=r.onTrigger)==null||i.call(r,ge({effect:r},n))),r.trigger(),(!r._runnings||r.allowRecurse)&&r._dirtyLevel!==2&&(r._shouldSchedule=!1,r.scheduler&&_o.push(r.scheduler)))}yo()}const xl=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},bo=new WeakMap,mi=Symbol({}.NODE_ENV!=="production"?"iterate":""),xo=Symbol({}.NODE_ENV!=="production"?"Map key iterate":"");function Me(e,t,n){if(Xn&&pi){let i=bo.get(e);i||bo.set(e,i=new Map);let r=i.get(n);r||i.set(n,r=xl(()=>i.delete(n))),_l(pi,r,{}.NODE_ENV!=="production"?{target:e,type:t,key:n}:void 0)}}function vn(e,t,n,i,r,s){const o=bo.get(e);if(!o)return;let a=[];if(t==="clear")a=[...o.values()];else if(n==="length"&&Rt(e)){const l=Number(i);o.forEach((p,m)=>{(m==="length"||!hi(m)&&m>=l)&&a.push(p)})}else switch(n!==void 0&&a.push(o.get(n)),t){case"add":Rt(e)?ho(n)&&a.push(o.get("length")):(a.push(o.get(mi)),ui(e)&&a.push(o.get(xo)));break;case"delete":Rt(e)||(a.push(o.get(mi)),ui(e)&&a.push(o.get(xo)));break;case"set":ui(e)&&a.push(o.get(mi));break}vo();for(const l of a)l&&bl(l,4,{}.NODE_ENV!=="production"?{target:e,type:t,key:n,newValue:i,oldValue:r,oldTarget:s}:void 0);yo()}const Pf=gn("__proto__,__v_isRef,__isVue"),wl=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(hi)),El=If();function If(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const i=Qt(this);for(let s=0,o=this.length;s<o;s++)Me(i,"get",s+"");const r=i[t](...n);return r===-1||r===!1?i[t](...n.map(Qt)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Sn(),vo();const i=Qt(this)[t].apply(this,n);return yo(),Tn(),i}}),e}function Mf(e){hi(e)||(e=String(e));const t=Qt(this);return Me(t,"has",e),t.hasOwnProperty(e)}class Cl{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,i){const r=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return s;if(n==="__v_raw")return i===(r?s?Ll:Dl:s?Al:Ml).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const o=Rt(t);if(!r){if(o&&ne(El,n))return Reflect.get(El,n,i);if(n==="hasOwnProperty")return Mf}const a=Reflect.get(t,n,i);return(hi(n)?wl.has(n):Pf(n))||(r||Me(t,"get",n),s)?a:Ae(a)?o&&ho(n)?a:a.value:ae(a)?r?$l(a):tn(a):a}}class kl extends Cl{constructor(t=!1){super(!1,t)}set(t,n,i,r){let s=t[n];if(!this._isShallow){const l=gi(s);if(!vi(i)&&!gi(i)&&(s=Qt(s),i=Qt(i)),!Rt(t)&&Ae(s)&&!Ae(i))return l?!1:(s.value=i,!0)}const o=Rt(t)&&ho(n)?Number(n)<t.length:ne(t,n),a=Reflect.set(t,n,i,r);return t===Qt(r)&&(o?qn(i,s)&&vn(t,"set",n,i,s):vn(t,"add",n,i)),a}deleteProperty(t,n){const i=ne(t,n),r=t[n],s=Reflect.deleteProperty(t,n);return s&&i&&vn(t,"delete",n,void 0,r),s}has(t,n){const i=Reflect.has(t,n);return(!hi(n)||!wl.has(n))&&Me(t,"has",n),i}ownKeys(t){return Me(t,"iterate",Rt(t)?"length":mi),Reflect.ownKeys(t)}}class Sl extends Cl{constructor(t=!1){super(!0,t)}set(t,n){return{}.NODE_ENV!=="production"&&Yn(`Set operation on key "${String(n)}" failed: target is readonly.`,t),!0}deleteProperty(t,n){return{}.NODE_ENV!=="production"&&Yn(`Delete operation on key "${String(n)}" failed: target is readonly.`,t),!0}}const Af=new kl,Df=new Sl,Lf=new kl(!0),$f=new Sl(!0),wo=e=>e,qr=e=>Reflect.getPrototypeOf(e);function Yr(e,t,n=!1,i=!1){e=e.__v_raw;const r=Qt(e),s=Qt(t);n||(qn(t,s)&&Me(r,"get",t),Me(r,"get",s));const{has:o}=qr(r),a=i?wo:n?Co:cr;if(o.call(r,t))return a(e.get(t));if(o.call(r,s))return a(e.get(s));e!==r&&e.get(t)}function Xr(e,t=!1){const n=this.__v_raw,i=Qt(n),r=Qt(e);return t||(qn(e,r)&&Me(i,"has",e),Me(i,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Kr(e,t=!1){return e=e.__v_raw,!t&&Me(Qt(e),"iterate",mi),Reflect.get(e,"size",e)}function Tl(e){e=Qt(e);const t=Qt(this);return qr(t).has.call(t,e)||(t.add(e),vn(t,"add",e,e)),this}function Nl(e,t){t=Qt(t);const n=Qt(this),{has:i,get:r}=qr(n);let s=i.call(n,e);s?{}.NODE_ENV!=="production"&&Il(n,i,e):(e=Qt(e),s=i.call(n,e));const o=r.call(n,e);return n.set(e,t),s?qn(t,o)&&vn(n,"set",e,t,o):vn(n,"add",e,t),this}function Ol(e){const t=Qt(this),{has:n,get:i}=qr(t);let r=n.call(t,e);r?{}.NODE_ENV!=="production"&&Il(t,n,e):(e=Qt(e),r=n.call(t,e));const s=i?i.call(t,e):void 0,o=t.delete(e);return r&&vn(t,"delete",e,void 0,s),o}function Pl(){const e=Qt(this),t=e.size!==0,n={}.NODE_ENV!=="production"?ui(e)?new Map(e):new Set(e):void 0,i=e.clear();return t&&vn(e,"clear",void 0,void 0,n),i}function Zr(e,t){return function(i,r){const s=this,o=s.__v_raw,a=Qt(o),l=t?wo:e?Co:cr;return!e&&Me(a,"iterate",mi),o.forEach((p,m)=>i.call(r,l(p),l(m),s))}}function Qr(e,t,n){return function(...i){const r=this.__v_raw,s=Qt(r),o=ui(s),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,p=r[e](...i),m=n?wo:t?Co:cr;return!t&&Me(s,"iterate",l?xo:mi),{next(){const{value:g,done:d}=p.next();return d?{value:g,done:d}:{value:a?[m(g[0]),m(g[1])]:m(g),done:d}},[Symbol.iterator](){return this}}}}function Kn(e){return function(...t){if({}.NODE_ENV!=="production"){const n=t[0]?`on key "${t[0]}" `:"";Yn(`${fi(e)} operation ${n}failed: target is readonly.`,Qt(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function Rf(){const e={get(s){return Yr(this,s)},get size(){return Kr(this)},has:Xr,add:Tl,set:Nl,delete:Ol,clear:Pl,forEach:Zr(!1,!1)},t={get(s){return Yr(this,s,!1,!0)},get size(){return Kr(this)},has:Xr,add:Tl,set:Nl,delete:Ol,clear:Pl,forEach:Zr(!1,!0)},n={get(s){return Yr(this,s,!0)},get size(){return Kr(this,!0)},has(s){return Xr.call(this,s,!0)},add:Kn("add"),set:Kn("set"),delete:Kn("delete"),clear:Kn("clear"),forEach:Zr(!0,!1)},i={get(s){return Yr(this,s,!0,!0)},get size(){return Kr(this,!0)},has(s){return Xr.call(this,s,!0)},add:Kn("add"),set:Kn("set"),delete:Kn("delete"),clear:Kn("clear"),forEach:Zr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=Qr(s,!1,!1),n[s]=Qr(s,!0,!1),t[s]=Qr(s,!1,!0),i[s]=Qr(s,!0,!0)}),[e,n,t,i]}const[Vf,Ff,zf,jf]=Rf();function Jr(e,t){const n=t?e?jf:zf:e?Ff:Vf;return(i,r,s)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?i:Reflect.get(ne(n,r)&&r in i?n:i,r,s)}const Bf={get:Jr(!1,!1)},Gf={get:Jr(!1,!0)},Hf={get:Jr(!0,!1)},Uf={get:Jr(!0,!0)};function Il(e,t,n){const i=Qt(n);if(i!==n&&t.call(e,i)){const r=uo(e);Yn(`Reactive ${r} contains both the raw and reactive versions of the same object${r==="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 Ml=new WeakMap,Al=new WeakMap,Dl=new WeakMap,Ll=new WeakMap;function Wf(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function qf(e){return e.__v_skip||!Object.isExtensible(e)?0:Wf(uo(e))}function tn(e){return gi(e)?e:ts(e,!1,Af,Bf,Ml)}function Yf(e){return ts(e,!1,Lf,Gf,Al)}function $l(e){return ts(e,!0,Df,Hf,Dl)}function Nn(e){return ts(e,!0,$f,Uf,Ll)}function ts(e,t,n,i,r){if(!ae(e))return{}.NODE_ENV!=="production"&&Yn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const o=qf(e);if(o===0)return e;const a=new Proxy(e,o===2?i:n);return r.set(e,a),a}function $i(e){return gi(e)?$i(e.__v_raw):!!(e&&e.__v_isReactive)}function gi(e){return!!(e&&e.__v_isReadonly)}function vi(e){return!!(e&&e.__v_isShallow)}function Eo(e){return e?!!e.__v_raw:!1}function Qt(e){const t=e&&e.__v_raw;return t?Qt(t):e}function Xf(e){return Object.isExtensible(e)&&ul(e,"__v_skip",!0),e}const cr=e=>ae(e)?tn(e):e,Co=e=>ae(e)?$l(e):e,Kf="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 Rl{constructor(t,n,i,r){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new mo(()=>t(this._value),()=>es(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=i}get value(){const t=Qt(this);return(!t._cacheable||t.effect.dirty)&&qn(t._value,t._value=t.effect.run())&&es(t,4),Vl(t),t.effect._dirtyLevel>=2&&({}.NODE_ENV!=="production"&&this._warnRecursive&&Yn(Kf,`
10
10
 
11
- getter: `,this.getter),kh(t,2)),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function CT(e,t,r=!1){let n,i;const o=ge(e);o?(n=e,i={}.NODE_ENV!=="production"?()=>{Wo("Write operation failed: computed value is readonly")}:Nr):(n=e.get,i=e.set);const s=new $_(n,i,o||!i,r);return{}.NODE_ENV!=="production"&&t&&!r&&(s.effect.onTrack=t.onTrack,s.effect.onTrigger=t.onTrigger),s}function E_(e){var t;Jo&&Ls&&(e=ee(e),s_(Ls,(t=e.dep)!=null?t:e.dep=l_(()=>e.dep=void 0,e instanceof $_?e:void 0),{}.NODE_ENV!=="production"?{target:e,type:"get",key:"value"}:void 0))}function kh(e,t=4,r){e=ee(e);const n=e.dep;n&&a_(n,t,{}.NODE_ENV!=="production"?{target:e,type:"set",key:"value",newValue:r}:void 0)}function nn(e){return!!(e&&e.__v_isRef===!0)}function Zt(e){return kT(e,!1)}function kT(e,t){return nn(e)?e:new PT(e,t)}class PT{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:ee(t),this._value=r?t:Il(t)}get value(){return E_(this),this._value}set value(t){const r=this.__v_isShallow||zs(t)||Us(t);t=r?t:ee(t),Xo(t,this._rawValue)&&(this._rawValue=t,this._value=r?t:Il(t),kh(this,4,t))}}function xe(e){return nn(e)?e.value:e}const TT={get:(e,t,r)=>xe(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const i=e[t];return nn(i)&&!nn(r)?(i.value=r,!0):Reflect.set(e,t,r,n)}};function C_(e){return za(e)?e:new Proxy(e,TT)}/**
11
+ getter: `,this.getter),es(t,2)),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function Zf(e,t,n=!1){let i,r;const s=Gt(e);s?(i=e,r={}.NODE_ENV!=="production"?()=>{Yn("Write operation failed: computed value is readonly")}:Ce):(i=e.get,r=e.set);const o=new Rl(i,r,s||!r,n);return{}.NODE_ENV!=="production"&&t&&!n&&(o.effect.onTrack=t.onTrack,o.effect.onTrigger=t.onTrigger),o}function Vl(e){var t;Xn&&pi&&(e=Qt(e),_l(pi,(t=e.dep)!=null?t:e.dep=xl(()=>e.dep=void 0,e instanceof Rl?e:void 0),{}.NODE_ENV!=="production"?{target:e,type:"get",key:"value"}:void 0))}function es(e,t=4,n){e=Qt(e);const i=e.dep;i&&bl(i,t,{}.NODE_ENV!=="production"?{target:e,type:"set",key:"value",newValue:n}:void 0)}function Ae(e){return!!(e&&e.__v_isRef===!0)}function Ct(e){return Qf(e,!1)}function Qf(e,t){return Ae(e)?e:new Jf(e,t)}class Jf{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Qt(t),this._value=n?t:cr(t)}get value(){return Vl(this),this._value}set value(t){const n=this.__v_isShallow||vi(t)||gi(t);t=n?t:Qt(t),qn(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:cr(t),es(this,4,t))}}function he(e){return Ae(e)?e.value:e}const td={get:(e,t,n)=>he(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const r=e[t];return Ae(r)&&!Ae(n)?(r.value=n,!0):Reflect.set(e,t,n,i)}};function Fl(e){return $i(e)?e:new Proxy(e,td)}/**
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 Gs=[];function Ph(e){Gs.push(e)}function Th(){Gs.pop()}function Mt(e,...t){ao();const r=Gs.length?Gs[Gs.length-1].component:null,n=r&&r.appContext.config.warnHandler,i=OT();if(n)uo(n,r,11,[e+t.map(o=>{var s,a;return(a=(s=o.toString)==null?void 0:s.call(o))!=null?a:JSON.stringify(o)}).join(""),r&&r.proxy,i.map(({vnode:o})=>`at <${qh(r,o.type)}>`).join(`
16
- `),i]);else{const o=[`[Vue warn]: ${e}`,...t];i.length&&o.push(`
17
- `,...NT(i)),console.warn(...o)}lo()}function OT(){let e=Gs[Gs.length-1];if(!e)return[];const t=[];for(;e;){const r=t[0];r&&r.vnode===e?r.recurseCount++:t.push({vnode:e,recurseCount:0});const n=e.component&&e.component.parent;e=n&&n.vnode}return t}function NT(e){const t=[];return e.forEach((r,n)=>{t.push(...n===0?[]:[`
18
- `],...AT(r))}),t}function AT({vnode:e,recurseCount:t}){const r=t>0?`... (${t} recursive calls)`:"",n=e.component?e.component.parent==null:!1,i=` at <${qh(e.component,e.type,n)}`,o=">"+r;return e.props?[i,...DT(e.props),o]:[i+o]}function DT(e){const t=[],r=Object.keys(e);return r.slice(0,3).forEach(n=>{t.push(...k_(n,e[n]))}),r.length>3&&t.push(" ..."),t}function k_(e,t,r){return Cr(t)?(t=JSON.stringify(t),r?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?r?t:[`${e}=${t}`]:nn(t)?(t=k_(e,ee(t.value),!0),r?t:[`${e}=Ref<`,t,">"]):ge(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ee(t),r?t:[`${e}=`,t])}function RT(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 Np={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 uo(e,t,r,n){try{return n?e(...n):e()}catch(i){jl(i,t,r)}}function Zn(e,t,r,n){if(ge(e)){const i=uo(e,t,r,n);return i&&fp(i)&&i.catch(o=>{jl(o,t,r)}),i}if(ae(e)){const i=[];for(let o=0;o<e.length;o++)i.push(Zn(e[o],t,r,n));return i}else({}).NODE_ENV!=="production"&&Mt(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`)}function jl(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"?Np[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){ao(),uo(c,null,10,[e,s,a]),lo();return}}IT(e,r,i,n)}function IT(e,t,r,n=!0){if({}.NODE_ENV!=="production"){const i=Np[t];if(r&&Ph(r),Mt(`Unhandled error${i?` during execution of ${i}`:""}`),r&&Th(),n)throw e;console.error(e)}else console.error(e)}let Fl=!1,Ap=!1;const cn=[];let Mi=0;const Ga=[];let ho=null,Zo=0;const P_=Promise.resolve();let Dp=null;const jT=100;function fo(e){const t=Dp||P_;return e?t.then(this?e.bind(this):e):t}function FT(e){let t=Mi+1,r=cn.length;for(;t<r;){const n=t+r>>>1,i=cn[n],o=Ml(i);o<e||o===e&&i.pre?t=n+1:r=n}return t}function Oh(e){(!cn.length||!cn.includes(e,Fl&&e.allowRecurse?Mi+1:Mi))&&(e.id==null?cn.push(e):cn.splice(FT(e.id),0,e),T_())}function T_(){!Fl&&!Ap&&(Ap=!0,Dp=P_.then(D_))}function MT(e){const t=cn.indexOf(e);t>Mi&&cn.splice(t,1)}function O_(e){ae(e)?Ga.push(...e):(!ho||!ho.includes(e,e.allowRecurse?Zo+1:Zo))&&Ga.push(e),T_()}function N_(e,t,r=Fl?Mi+1:0){for({}.NODE_ENV!=="production"&&(t=t||new Map);r<cn.length;r++){const n=cn[r];if(n&&n.pre){if(e&&n.id!==e.uid||{}.NODE_ENV!=="production"&&Rp(t,n))continue;cn.splice(r,1),r--,n()}}}function A_(e){if(Ga.length){const t=[...new Set(Ga)].sort((r,n)=>Ml(r)-Ml(n));if(Ga.length=0,ho){ho.push(...t);return}for(ho=t,{}.NODE_ENV!=="production"&&(e=e||new Map),Zo=0;Zo<ho.length;Zo++)({}).NODE_ENV!=="production"&&Rp(e,ho[Zo])||ho[Zo]();ho=null,Zo=0}}const Ml=e=>e.id==null?1/0:e.id,LT=(e,t)=>{const r=Ml(e)-Ml(t);if(r===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return r};function D_(e){Ap=!1,Fl=!0,{}.NODE_ENV!=="production"&&(e=e||new Map),cn.sort(LT);const t={}.NODE_ENV!=="production"?r=>Rp(e,r):Nr;try{for(Mi=0;Mi<cn.length;Mi++){const r=cn[Mi];if(r&&r.active!==!1){if({}.NODE_ENV!=="production"&&t(r))continue;uo(r,null,14)}}}finally{Mi=0,cn.length=0,A_(e),Fl=!1,Dp=null,(cn.length||Ga.length)&&D_(e)}}function Rp(e,t){if(!e.has(t))e.set(t,1);else{const r=e.get(t);if(r>jT){const n=t.ownerInstance,i=n&&Db(n.type);return jl(`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 Bs=!1;const Ba=new Set;({}).NODE_ENV!=="production"&&(vp().__VUE_HMR_RUNTIME__={createRecord:Ip(R_),rerender:Ip(zT),reload:Ip(GT)});const Hs=new Map;function VT(e){const t=e.type.__hmrId;let r=Hs.get(t);r||(R_(t,e.type),r=Hs.get(t)),r.instances.add(e)}function UT(e){Hs.get(e.type.__hmrId).instances.delete(e)}function R_(e,t){return Hs.has(e)?!1:(Hs.set(e,{initialDef:Ll(t),instances:new Set}),!0)}function Ll(e){return Rb(e)?e.__vccOpts:e}function zT(e,t){const r=Hs.get(e);r&&(r.initialDef.render=t,[...r.instances].forEach(n=>{t&&(n.render=t,Ll(n.type).render=t),n.renderCache=[],Bs=!0,n.effect.dirty=!0,n.update(),Bs=!1}))}function GT(e,t){const r=Hs.get(e);if(!r)return;t=Ll(t),I_(r.initialDef,t);const n=[...r.instances];for(const i of n){const o=Ll(i.type);Ba.has(o)||(o!==r.initialDef&&I_(o,t),Ba.add(o)),i.appContext.propsCache.delete(i.type),i.appContext.emitsCache.delete(i.type),i.appContext.optionsCache.delete(i.type),i.ceReload?(Ba.add(o),i.ceReload(t.styles),Ba.delete(o)):i.parent?(i.parent.effect.dirty=!0,Oh(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.")}O_(()=>{for(const i of n)Ba.delete(Ll(i.type))})}function I_(e,t){pr(e,t);for(const r in e)r!=="__file"&&!(r in t)&&delete e[r]}function Ip(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 Li,Vl=[],jp=!1;function Ul(e,...t){Li?Li.emit(e,...t):jp||Vl.push({event:e,args:t})}function j_(e,t){var r,n;Li=e,Li?(Li.enabled=!0,Vl.forEach(({event:i,args:o})=>Li.emit(i,...o)),Vl=[]):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=>{j_(o,t)}),setTimeout(()=>{Li||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,jp=!0,Vl=[])},3e3)):(jp=!0,Vl=[])}function BT(e,t){Ul("app:init",e,t,{Fragment:kr,Text:Kl,Comment:Wr,Static:Uh})}function HT(e){Ul("app:unmount",e)}const qT=Fp("component:added"),F_=Fp("component:updated"),KT=Fp("component:removed"),YT=e=>{Li&&typeof Li.cleanupBuffer=="function"&&!Li.cleanupBuffer(e)&&KT(e)};/*! #__NO_SIDE_EFFECTS__ */function Fp(e){return t=>{Ul(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const XT=M_("perf:start"),WT=M_("perf:end");function M_(e){return(t,r,n)=>{Ul(e,t.appContext.app,t.uid,t,r,n)}}function JT(e,t,r){Ul("component:emit",e.appContext.app,e,t,r)}function QT(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||nr;if({}.NODE_ENV!=="production"){const{emitsOptions:u,propsOptions:[h]}=e;if(u)if(!(t in u))(!h||!(Ms(t)in h))&&Mt(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${Ms(t)}" prop.`);else{const f=u[t];ge(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]||nr;f&&(i=r.map(d=>Cr(d)?d.trim():d)),h&&(i=r.map(XP))}if({}.NODE_ENV!=="production"&&JT(e,t,i),{}.NODE_ENV!=="production"){const u=t.toLowerCase();u!==t&&n[Ms(u)]&&Mt(`Event "${u}" is emitted in component ${qh(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 "${Vn(t)}" instead of "${t}".`)}let a,c=n[a=Ms(t)]||n[a=Ms(so(t))];!c&&o&&(c=n[a=Ms(Vn(t))]),c&&Zn(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,Zn(l,e,6,i)}}function L_(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(!ge(e)){const c=l=>{const u=L_(l,t,!0);u&&(a=!0,pr(s,u))};!r&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!a?(Je(e)&&n.set(e,null),null):(ae(o)?o.forEach(c=>s[c]=null):pr(s,o),Je(e)&&n.set(e,s),s)}function Nh(e,t){return!e||!Al(t)?!1:(t=t.slice(2).replace(/Once$/,""),De(e,t[0].toLowerCase()+t.slice(1))||De(e,Vn(t))||De(e,t))}let Fr=null,V_=null;function Ah(e){const t=Fr;return Fr=e,V_=e&&e.type.__scopeId||null,t}function Mr(e,t=Fr,r){if(!t||e._n)return e;const n=(...i)=>{n._d&&xb(-1);const o=Ah(t);let s;try{s=e(...i)}finally{Ah(o),n._d&&xb(1)}return{}.NODE_ENV!=="production"&&F_(t),s};return n._n=!0,n._c=!0,n._d=!0,n}let Mp=!1;function Dh(){Mp=!0}function Lp(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=Ah(e);let _,y;({}).NODE_ENV!=="production"&&(Mp=!1);try{if(r.shapeFlag&4){const N=i||n,$={}.NODE_ENV!=="production"&&d.__isScriptSetup?new Proxy(N,{get(k,D,V){return Mt(`Property '${String(D)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(k,D,V)}}):N;_=bi(l.call($,N,u,{}.NODE_ENV!=="production"?co(h):h,d,f,p)),y=a}else{const N=t;({}).NODE_ENV!=="production"&&a===h&&Dh(),_=bi(N.length>1?N({}.NODE_ENV!=="production"?co(h):h,{}.NODE_ENV!=="production"?{get attrs(){return Dh(),a},slots:s,emit:c}:{attrs:a,slots:s,emit:c}):N({}.NODE_ENV!=="production"?co(h):h,null)),y=t.props?a:ZT(a)}}catch(N){Yl.length=0,jl(N,e,1),_=cr(Wr)}let m=_,x;if({}.NODE_ENV!=="production"&&_.patchFlag>0&&_.patchFlag&2048&&([m,x]=U_(_)),y&&g!==!1){const N=Object.keys(y),{shapeFlag:$}=m;if(N.length){if($&7)o&&N.some(mh)&&(y=t6(y,o)),m=_i(m,y);else if({}.NODE_ENV!=="production"&&!Mp&&m.type!==Wr){const k=Object.keys(a),D=[],V=[];for(let U=0,K=k.length;U<K;U++){const Y=k[U];Al(Y)?mh(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"&&!z_(m)&&Mt("Runtime directive used on component with non-element root node. The directives will not function as intended."),m=_i(m),m.dirs=m.dirs?m.dirs.concat(r.dirs):r.dirs),r.transition&&({}.NODE_ENV!=="production"&&!z_(m)&&Mt("Component inside <Transition> renders non-element root node that cannot be animated."),m.transition=r.transition),{}.NODE_ENV!=="production"&&x?x(m):_=m,Ah(v),_}const U_=e=>{const t=e.children,r=e.dynamicChildren,n=Vp(t,!1);if(n){if({}.NODE_ENV!=="production"&&n.patchFlag>0&&n.patchFlag&2048)return U_(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[bi(n),s]};function Vp(e,t=!0){let r;for(let n=0;n<e.length;n++){const i=e[n];if(Ka(i)){if(i.type!==Wr||i.children==="v-if"){if(r)return;if(r=i,{}.NODE_ENV!=="production"&&t&&r.patchFlag>0&&r.patchFlag&2048)return Vp(r.children)}}else return}return r}const ZT=e=>{let t;for(const r in e)(r==="class"||r==="style"||Al(r))&&((t||(t={}))[r]=e[r]);return t},t6=(e,t)=>{const r={};for(const n in e)(!mh(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r},z_=e=>e.shapeFlag&7||e.type===Wr;function e6(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)&&Bs||t.dirs||t.transition)return!0;if(r&&c>=0){if(c&1024)return!0;if(c&16)return n?G_(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]&&!Nh(l,f))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:n===s?!1:n?s?G_(n,s,l):!0:!!s;return!1}function G_(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]&&!Nh(r,o))return!0}return!1}function r6({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 n6=Symbol.for("v-ndc"),i6=e=>e.__isSuspense;function o6(e,t){t&&t.pendingBranch?ae(e)?t.effects.push(...e):t.effects.push(e):O_(e)}const s6=Symbol.for("v-scx"),a6=()=>{{const e=ei(s6);return e||{}.NODE_ENV!=="production"&&Mt("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function Ha(e,t){return Up(e,null,t)}const Rh={};function vr(e,t,r){return{}.NODE_ENV!=="production"&&!ge(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."),Up(e,t,r)}function Up(e,t,{immediate:r,deep:n,flush:i,once:o,onTrack:s,onTrigger:a}=nr){if(t&&o){const k=t;t=(...D)=>{k(...D),$()}}({}).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=Jr,u=k=>n===!0?k:qs(k,n===!1?1:void 0);let h,f=!1,d=!1;if(nn(e)?(h=()=>e.value,f=zs(e)):za(e)?(h=()=>u(e),f=!0):ae(e)?(d=!0,f=e.some(k=>za(k)||zs(k)),h=()=>e.map(k=>{if(nn(k))return k.value;if(za(k))return u(k);if(ge(k))return uo(k,l,2);({}).NODE_ENV!=="production"&&c(k)})):ge(e)?t?h=()=>uo(e,l,2):h=()=>(p&&p(),Zn(e,l,3,[g])):(h=Nr,{}.NODE_ENV!=="production"&&c(e)),t&&n){const k=h;h=()=>qs(k())}let p,g=k=>{p=x.onStop=()=>{uo(k,l,4),p=x.onStop=void 0}},v;if(Bh)if(g=Nr,t?r&&Zn(t,l,3,[h(),d?[]:void 0,g]):h(),i==="sync"){const k=a6();v=k.__watcherHandles||(k.__watcherHandles=[])}else return Nr;let _=d?new Array(e.length).fill(Rh):Rh;const y=()=>{if(!(!x.active||!x.dirty))if(t){const k=x.run();(n||f||(d?k.some((D,V)=>Xo(D,_[V])):Xo(k,_)))&&(p&&p(),Zn(t,l,3,[k,_===Rh?void 0:d&&_[0]===Rh?[]:_,g]),_=k)}else x.run()};y.allowRecurse=!!t;let m;i==="sync"?m=y:i==="post"?m=()=>Tn(y,l&&l.suspense):(y.pre=!0,l&&(y.id=l.uid),m=()=>Oh(y));const x=new bp(h,Nr,m),N=nT(),$=()=>{x.stop(),N&&dp(N.effects,x)};return{}.NODE_ENV!=="production"&&(x.onTrack=s,x.onTrigger=a),t?r?y():_=x.run():i==="post"?Tn(x.run.bind(x),l&&l.suspense):x.run(),v&&v.push($),$}function l6(e,t,r){const n=this.proxy,i=Cr(e)?e.includes(".")?B_(n,e):()=>n[e]:e.bind(n,n);let o;ge(t)?o=t:(o=t.handler,r=t);const s=Wl(this),a=Up(i,o.bind(n),r);return s(),a}function B_(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 qs(e,t,r=0,n){if(!Je(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),nn(e))qs(e.value,t,r,n);else if(ae(e))for(let i=0;i<e.length;i++)qs(e[i],t,r,n);else if(Xy(e)||js(e))e.forEach(i=>{qs(i,t,r,n)});else if(Jy(e))for(const i in e)qs(e[i],t,r,n);return e}function H_(e){qP(e)&&Mt("Do not use built-in directive ids as custom directive id: "+e)}function q_(e,t){if(Fr===null)return{}.NODE_ENV!=="production"&&Mt("withDirectives can only be used inside render functions."),e;const r=Hh(Fr)||Fr.proxy,n=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,s,a,c=nr]=t[i];o&&(ge(o)&&(o={mounted:o,updated:o}),o.deep&&qs(s),n.push({dir:o,instance:r,value:s,oldValue:void 0,arg:a,modifiers:c}))}return e}function Ks(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&&(ao(),Zn(c,r,8,[e.el,a,e,t]),lo())}}const ts=Symbol("_leaveCb"),Ih=Symbol("_enterCb");function c6(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Un(()=>{e.isMounted=!0}),Q_(()=>{e.isUnmounting=!0}),e}const ti=[Function,Array],K_={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ti,onEnter:ti,onAfterEnter:ti,onEnterCancelled:ti,onBeforeLeave:ti,onLeave:ti,onAfterLeave:ti,onLeaveCancelled:ti,onBeforeAppear:ti,onAppear:ti,onAfterAppear:ti,onAppearCancelled:ti},u6={name:"BaseTransition",props:K_,setup(e,{slots:t}){const r=kb(),n=c6();return()=>{const i=t.default&&W_(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!==Wr){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=ee(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 Gp(o);const c=X_(o);if(!c)return Gp(o);const l=zp(c,s,n,r);Bp(c,l);const u=r.subTree,h=u&&X_(u);if(h&&h.type!==Wr&&!Ws(c,h)){const f=zp(h,s,n,r);if(Bp(h,f),a==="out-in")return n.isLeaving=!0,f.afterLeave=()=>{n.isLeaving=!1,r.update.active!==!1&&(r.effect.dirty=!0,r.update())},Gp(o);a==="in-out"&&c.type!==Wr&&(f.delayLeave=(d,p,g)=>{const v=Y_(n,h);v[String(h.key)]=h,d[ts]=()=>{p(),d[ts]=void 0,delete l.delayedLeave},l.delayedLeave=g})}return o}}};function Y_(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 zp(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:_,onAppearCancelled:y}=t,m=String(e.key),x=Y_(r,e),N=(D,V)=>{D&&Zn(D,n,9,V)},$=(D,V)=>{const U=V[1];N(D,V),ae(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[ts]&&D[ts](!0);const U=x[m];U&&Ws(e,U)&&U.el[ts]&&U.el[ts](),N(V,[D])},enter(D){let V=c,U=l,K=u;if(!r.isMounted)if(i)V=v||c,U=_||l,K=y||u;else return;let Y=!1;const it=D[Ih]=nt=>{Y||(Y=!0,nt?N(K,[D]):N(U,[D]),k.delayedLeave&&k.delayedLeave(),D[Ih]=void 0)};V?$(V,[D,it]):it()},leave(D,V){const U=String(e.key);if(D[Ih]&&D[Ih](!0),r.isUnmounting)return V();N(h,[D]);let K=!1;const Y=D[ts]=it=>{K||(K=!0,V(),it?N(p,[D]):N(d,[D]),D[ts]=void 0,x[U]===e&&delete x[U])};x[U]=e,f?$(f,[D,Y]):Y()},clone(D){return zp(D,t,r,n)}};return k}function Gp(e){if(Gl(e))return e=_i(e),e.children=null,e}function X_(e){if(!Gl(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&&ge(r.default))return r.default()}}function Bp(e,t){e.shapeFlag&6&&e.component?Bp(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 W_(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(W_(s.children,t,a))):(t||s.type!==Wr)&&n.push(a!=null?_i(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 Xe(e,t){return ge(e)?(()=>pr({name:e.name},t,{setup:e}))():e}const zl=e=>!!e.type.__asyncLoader,Gl=e=>e.type.__isKeepAlive;function h6(e,t){J_(e,"a",t)}function d6(e,t){J_(e,"da",t)}function J_(e,t,r=Jr){const n=e.__wdc||(e.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(jh(t,n,r),r){let i=r.parent;for(;i&&i.parent;)Gl(i.parent.vnode)&&f6(n,t,r,i),i=i.parent}}function f6(e,t,r,n){const i=jh(t,e,n,!0);qa(()=>{dp(n[t],i)},r)}function jh(e,t,r=Jr,n=!1){if(r){const i=r[e]||(r[e]=[]),o=t.__weh||(t.__weh=(...s)=>{if(r.isUnmounted)return;ao();const a=Wl(r),c=Zn(t,r,e,s);return a(),lo(),c});return n?i.unshift(o):i.push(o),o}else if({}.NODE_ENV!=="production"){const i=Ms(Np[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 po=e=>(t,r=Jr)=>(!Bh||e==="sp")&&jh(e,(...n)=>t(...n),r),p6=po("bm"),Un=po("m"),m6=po("bu"),g6=po("u"),Q_=po("bum"),qa=po("um"),v6=po("sp"),y6=po("rtg"),_6=po("rtc");function b6(e,t=Jr){jh("ec",e,t)}function Fh(e,t,r,n){let i;const o=r&&r[n];if(ae(e)||Cr(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(Je(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 Pn(e,t,r={},n,i){if(Fr.isCE||Fr.parent&&zl(Fr.parent)&&Fr.parent.isCE)return t!=="default"&&(r.name=t),cr("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),Se();const s=o&&Z_(o(r)),a=Lr(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 Z_(e){return e.some(t=>Ka(t)?!(t.type===Wr||t.type===kr&&!Z_(t.children)):!0)?e:null}const Hp=e=>e?Tb(e)?Hh(e)||e.proxy:Hp(e.parent):null,Ys=pr(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>({}).NODE_ENV!=="production"?co(e.props):e.props,$attrs:e=>({}).NODE_ENV!=="production"?co(e.attrs):e.attrs,$slots:e=>({}).NODE_ENV!=="production"?co(e.slots):e.slots,$refs:e=>({}).NODE_ENV!=="production"?co(e.refs):e.refs,$parent:e=>Hp(e.parent),$root:e=>Hp(e.root),$emit:e=>e.emit,$options:e=>Xp(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Oh(e.update)}),$nextTick:e=>e.n||(e.n=fo.bind(e.proxy)),$watch:e=>l6.bind(e)}),qp=e=>e==="_"||e==="$",Kp=(e,t)=>e!==nr&&!e.__isScriptSetup&&De(e,t),tb={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(Kp(n,t))return s[t]=1,n[t];if(i!==nr&&De(i,t))return s[t]=2,i[t];if((l=e.propsOptions[0])&&De(l,t))return s[t]=3,o[t];if(r!==nr&&De(r,t))return s[t]=4,r[t];Yp&&(s[t]=0)}}const u=Ys[t];let h,f;if(u)return t==="$attrs"?(rn(e.attrs,"get",""),{}.NODE_ENV!=="production"&&Dh()):{}.NODE_ENV!=="production"&&t==="$slots"&&rn(e,"get",t),u(e);if((h=a.__cssModules)&&(h=h[t]))return h;if(r!==nr&&De(r,t))return s[t]=4,r[t];if(f=c.config.globalProperties,De(f,t))return f[t];({}).NODE_ENV!=="production"&&Fr&&(!Cr(t)||t.indexOf("__v")!==0)&&(i!==nr&&qp(t[0])&&De(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===Fr&&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 Kp(i,t)?(i[t]=r,!0):{}.NODE_ENV!=="production"&&i.__isScriptSetup&&De(i,t)?(Mt(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):n!==nr&&De(n,t)?(n[t]=r,!0):De(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!==nr&&De(e,s)||Kp(t,s)||(a=o[0])&&De(a,s)||De(n,s)||De(Ys,s)||De(i.config.globalProperties,s)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:De(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};({}).NODE_ENV!=="production"&&(tb.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 w6(e){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>e}),Object.keys(Ys).forEach(r=>{Object.defineProperty(t,r,{configurable:!0,enumerable:!1,get:()=>Ys[r](e),set:Nr})}),t}function x6(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:Nr})})}function S6(e){const{ctx:t,setupState:r}=e;Object.keys(ee(r)).forEach(n=>{if(!r.__isScriptSetup){if(qp(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:Nr})}})}function eb(e){return ae(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function $6(){const e=Object.create(null);return(t,r)=>{e[r]?Mt(`${t} property "${r}" is already defined in ${e[r]}.`):e[r]=t}}let Yp=!0;function E6(e){const t=Xp(e),r=e.proxy,n=e.ctx;Yp=!1,t.beforeCreate&&rb(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:_,beforeUnmount:y,destroyed:m,unmounted:x,render:N,renderTracked:$,renderTriggered:k,errorCaptured:D,serverPrefetch:V,expose:U,inheritAttrs:K,components:Y,directives:it,filters:nt}=t,ft={}.NODE_ENV!=="production"?$6():null;if({}.NODE_ENV!=="production"){const[_t]=e.propsOptions;if(_t)for(const yt in _t)ft("Props",yt)}if(l&&C6(l,n,ft),s)for(const _t in s){const yt=s[_t];ge(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"&&!ge(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"&&fp(_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>."),!Je(_t))({}).NODE_ENV!=="production"&&Mt("data() should return an object.");else if(e.data=Pp(_t),{}.NODE_ENV!=="production")for(const yt in _t)ft("Data",yt),qp(yt[0])||Object.defineProperty(n,yt,{configurable:!0,enumerable:!0,get:()=>_t[yt],set:Nr})}if(Yp=!0,o)for(const _t in o){const yt=o[_t],at=ge(yt)?yt.bind(r,r):ge(yt.get)?yt.get.bind(r,r):Nr;({}).NODE_ENV!=="production"&&at===Nr&&Mt(`Computed property "${_t}" has no getter.`);const X=!ge(yt)&&ge(yt.set)?yt.set.bind(r):{}.NODE_ENV!=="production"?()=>{Mt(`Write operation failed: computed property "${_t}" is readonly.`)}:Nr,O=pe({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)nb(a[_t],n,r,_t);if(c){const _t=ge(c)?c.call(r):c;Reflect.ownKeys(_t).forEach(yt=>{mo(yt,_t[yt])})}u&&rb(u,e,"c");function xt(_t,yt){ae(yt)?yt.forEach(at=>_t(at.bind(r))):yt&&_t(yt.bind(r))}if(xt(p6,h),xt(Un,f),xt(m6,d),xt(g6,p),xt(h6,g),xt(d6,v),xt(b6,D),xt(_6,$),xt(y6,k),xt(Q_,y),xt(qa,x),xt(v6,V),ae(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={});N&&e.render===Nr&&(e.render=N),K!=null&&(e.inheritAttrs=K),Y&&(e.components=Y),it&&(e.directives=it)}function C6(e,t,r=Nr){ae(e)&&(e=Wp(e));for(const n in e){const i=e[n];let o;Je(i)?"default"in i?o=ei(i.from||n,i.default,!0):o=ei(i.from||n):o=ei(i),nn(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 rb(e,t,r){Zn(ae(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function nb(e,t,r,n){const i=n.includes(".")?B_(r,n):()=>r[n];if(Cr(e)){const o=t[e];ge(o)?vr(i,o):{}.NODE_ENV!=="production"&&Mt(`Invalid watch handler specified by key "${e}"`,o)}else if(ge(e))vr(i,e.bind(r));else if(Je(e))if(ae(e))e.forEach(o=>nb(o,t,r,n));else{const o=ge(e.handler)?e.handler.bind(r):t[e.handler];ge(o)?vr(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 Xp(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=>Mh(c,l,s,!0)),Mh(c,t,s)),Je(t)&&o.set(t,c),c}function Mh(e,t,r,n=!1){const{mixins:i,extends:o}=t;o&&Mh(e,o,r,!0),i&&i.forEach(s=>Mh(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=k6[s]||r&&r[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const k6={data:ib,props:ob,emits:ob,methods:Bl,computed:Bl,beforeCreate:mn,created:mn,beforeMount:mn,mounted:mn,beforeUpdate:mn,updated:mn,beforeDestroy:mn,beforeUnmount:mn,destroyed:mn,unmounted:mn,activated:mn,deactivated:mn,errorCaptured:mn,serverPrefetch:mn,components:Bl,directives:Bl,watch:T6,provide:ib,inject:P6};function ib(e,t){return t?e?function(){return pr(ge(e)?e.call(this,this):e,ge(t)?t.call(this,this):t)}:t:e}function P6(e,t){return Bl(Wp(e),Wp(t))}function Wp(e){if(ae(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function mn(e,t){return e?[...new Set([].concat(e,t))]:t}function Bl(e,t){return e?pr(Object.create(null),e,t):t}function ob(e,t){return e?ae(e)&&ae(t)?[...new Set([...e,...t])]:pr(Object.create(null),eb(e),eb(t??{})):t}function T6(e,t){if(!e)return t;if(!t)return e;const r=pr(Object.create(null),e);for(const n in t)r[n]=mn(e[n],t[n]);return r}function sb(){return{app:null,config:{isNativeTag:BP,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 O6=0;function N6(e,t){return function(n,i=null){ge(n)||(n=pr({},n)),i!=null&&!Je(i)&&({}.NODE_ENV!=="production"&&Mt("root props passed to app.mount() must be an object."),i=null);const o=sb(),s=new WeakSet;let a=!1;const c=o.app={_uid:O6++,_component:n,_props:i,_container:null,_context:o,_instance:null,version:Ib,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&&ge(l.install)?(s.add(l),l.install(c,...u)):ge(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"&&o0(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"&&H_(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=cr(n,i);return f.appContext=o,h===!0?h="svg":h===!1&&(h=void 0),{}.NODE_ENV!=="production"&&(o.reload=()=>{e(_i(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,BT(c,Ib)),Hh(f.component)||f.component.proxy}},unmount(){a?(e(null,c._container),{}.NODE_ENV!=="production"&&(c._instance=null,HT(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=Hl;Hl=c;try{return l()}finally{Hl=u}}};return c}}let Hl=null;function mo(e,t){if(!Jr)({}).NODE_ENV!=="production"&&Mt("provide() can only be used inside setup().");else{let r=Jr.provides;const n=Jr.parent&&Jr.parent.provides;n===r&&(r=Jr.provides=Object.create(n)),r[e]=t}}function ei(e,t,r=!1){const n=Jr||Fr;if(n||Hl){const i=n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:Hl._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return r&&ge(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 ab={},lb=()=>Object.create(ab),cb=e=>Object.getPrototypeOf(e)===ab;function A6(e,t,r,n=!1){const i={},o=lb();e.propsDefaults=Object.create(null),ub(e,t,i,o);for(const s in e.propsOptions[0])s in i||(i[s]=void 0);({}).NODE_ENV!=="production"&&mb(t||{},i,e),r?e.props=n?i:ST(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function D6(e){for(;e;){if(e.type.__hmrId)return!0;e=e.parent}}function R6(e,t,r,n){const{props:i,attrs:o,vnode:{patchFlag:s}}=e,a=ee(i),[c]=e.propsOptions;let l=!1;if(!({}.NODE_ENV!=="production"&&D6(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(Nh(e.emitsOptions,f))continue;const d=t[f];if(c)if(De(o,f))d!==o[f]&&(o[f]=d,l=!0);else{const p=so(f);i[p]=Jp(c,a,p,d,e,!1)}else d!==o[f]&&(o[f]=d,l=!0)}}}else{ub(e,t,i,o)&&(l=!0);let u;for(const h in a)(!t||!De(t,h)&&((u=Vn(h))===h||!De(t,u)))&&(c?r&&(r[h]!==void 0||r[u]!==void 0)&&(i[h]=Jp(c,a,h,void 0,e,!0)):delete i[h]);if(o!==a)for(const h in o)(!t||!De(t,h))&&(delete o[h],l=!0)}l&&Fi(e.attrs,"set",""),{}.NODE_ENV!=="production"&&mb(t||{},i,e)}function ub(e,t,r,n){const[i,o]=e.propsOptions;let s=!1,a;if(t)for(let c in t){if(Dl(c))continue;const l=t[c];let u;i&&De(i,u=so(c))?!o||!o.includes(u)?r[u]=l:(a||(a={}))[u]=l:Nh(e.emitsOptions,c)||(!(c in n)||l!==n[c])&&(n[c]=l,s=!0)}if(o){const c=ee(r),l=a||nr;for(let u=0;u<o.length;u++){const h=o[u];r[h]=Jp(i,c,h,l[h],e,!De(l,h))}}return s}function Jp(e,t,r,n,i,o){const s=e[r];if(s!=null){const a=De(s,"default");if(a&&n===void 0){const c=s.default;if(s.type!==Function&&!s.skipFactory&&ge(c)){const{propsDefaults:l}=i;if(r in l)n=l[r];else{const u=Wl(i);n=l[r]=c.call(null,t),u()}}else n=c}s[0]&&(o&&!a?n=!1:s[1]&&(n===""||n===Vn(r))&&(n=!0))}return n}function hb(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(!ge(e)){const u=h=>{c=!0;const[f,d]=hb(h,t,!0);pr(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 Je(e)&&n.set(e,Ua),Ua;if(ae(o))for(let u=0;u<o.length;u++){({}).NODE_ENV!=="production"&&!Cr(o[u])&&Mt("props must be strings when using array syntax.",o[u]);const h=so(o[u]);db(h)&&(s[h]=nr)}else if(o){({}).NODE_ENV!=="production"&&!Je(o)&&Mt("invalid props options",o);for(const u in o){const h=so(u);if(db(h)){const f=o[u],d=s[h]=ae(f)||ge(f)?{type:f}:pr({},f);if(d){const p=pb(Boolean,d.type),g=pb(String,d.type);d[0]=p>-1,d[1]=g<0||p<g,(p>-1||De(d,"default"))&&a.push(h)}}}}const l=[s,a];return Je(e)&&n.set(e,l),l}function db(e){return e[0]!=="$"&&!Dl(e)?!0:({}.NODE_ENV!=="production"&&Mt(`Invalid prop name: "${e}" is a reserved property.`),!1)}function Qp(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function fb(e,t){return Qp(e)===Qp(t)}function pb(e,t){return ae(t)?t.findIndex(r=>fb(r,e)):ge(t)&&fb(t,e)?0:-1}function mb(e,t,r){const n=ee(t),i=r.propsOptions[0];for(const o in i){let s=i[o];s!=null&&I6(o,n[o],s,{}.NODE_ENV!=="production"?co(n):n,!De(e,o)&&!De(e,Vn(o)))}}function I6(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=ae(o)?o:[o],h=[];for(let f=0;f<u.length&&!l;f++){const{valid:d,expectedType:p}=F6(t,u[f]);h.push(p||""),l=d}if(!l){Mt(M6(e,t,h));return}}a&&!a(t,n)&&Mt('Invalid prop: custom validator check failed for prop "'+e+'".')}}const j6=ji("String,Number,Boolean,Function,Symbol,BigInt");function F6(e,t){let r;const n=Qp(t);if(j6(n)){const i=typeof e;r=i===n.toLowerCase(),!r&&i==="object"&&(r=e instanceof t)}else n==="Object"?r=Je(e):n==="Array"?r=ae(e):n==="null"?r=e===null:r=e instanceof t;return{valid:r,expectedType:n}}function M6(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(yh).join(" | ")}`;const i=r[0],o=pp(t),s=gb(t,i),a=gb(t,o);return r.length===1&&vb(i)&&!L6(i,o)&&(n+=` with value ${s}`),n+=`, got ${o} `,vb(o)&&(n+=`with value ${a}.`),n}function gb(e,t){return t==="String"?`"${e}"`:t==="Number"?`${Number(e)}`:`${e}`}function vb(e){return["string","number","boolean"].some(r=>e.toLowerCase()===r)}function L6(...e){return e.some(t=>t.toLowerCase()==="boolean")}const yb=e=>e[0]==="_"||e==="$stable",Zp=e=>ae(e)?e.map(bi):[bi(e)],V6=(e,t,r)=>{if(t._n)return t;const n=Mr((...i)=>({}.NODE_ENV!=="production"&&Jr&&(!r||r.root===Jr.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.`),Zp(t(...i))),r);return n._c=!1,n},_b=(e,t,r)=>{const n=e._ctx;for(const i in e){if(yb(i))continue;const o=e[i];if(ge(o))t[i]=V6(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=Zp(o);t[i]=()=>s}}},bb=(e,t)=>{({}).NODE_ENV!=="production"&&!Gl(e.vnode)&&Mt("Non-function value encountered for default slot. Prefer function slots for better performance.");const r=Zp(t);e.slots.default=()=>r},U6=(e,t)=>{const r=e.slots=lb();if(e.vnode.shapeFlag&32){const n=t._;n?(pr(r,t),Qy(r,"_",n)):_b(t,r)}else t&&bb(e,t)},z6=(e,t,r)=>{const{vnode:n,slots:i}=e;let o=!0,s=nr;if(n.shapeFlag&32){const a=t._;a?{}.NODE_ENV!=="production"&&Bs?(pr(i,t),Fi(e,"set","$slots")):r&&a===1?o=!1:(pr(i,t),!r&&a===1&&delete i._):(o=!t.$stable,_b(t,i)),s=t}else t&&(bb(e,t),s={default:1});if(o)for(const a in i)!yb(a)&&s[a]==null&&delete i[a]};function t0(e,t,r,n,i=!1){if(ae(e)){e.forEach((f,d)=>t0(f,t&&(ae(t)?t[d]:t),r,n,i));return}if(zl(n)&&!i)return;const o=n.shapeFlag&4?Hh(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===nr?a.refs={}:a.refs,h=a.setupState;if(l!=null&&l!==c&&(Cr(l)?(u[l]=null,De(h,l)&&(h[l]=null)):nn(l)&&(l.value=null)),ge(c))uo(c,a,12,[s,u]);else{const f=Cr(c),d=nn(c);if(f||d){const p=()=>{if(e.f){const g=f?De(h,c)?h[c]:u[c]:c.value;i?ae(g)&&dp(g,o):ae(g)?g.includes(o)||g.push(o):f?(u[c]=[o],De(h,c)&&(h[c]=u[c])):(c.value=[o],e.k&&(u[e.k]=c.value))}else f?(u[c]=s,De(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,Tn(p,r)):p()}else({}).NODE_ENV!=="production"&&Mt("Invalid template ref type:",c,`(${typeof c})`)}}let ql,es;function go(e,t){e.appContext.config.performance&&Lh()&&es.mark(`vue-${t}-${e.uid}`),{}.NODE_ENV!=="production"&&XT(e,t,Lh()?es.now():Date.now())}function vo(e,t){if(e.appContext.config.performance&&Lh()){const r=`vue-${t}-${e.uid}`,n=r+":end";es.mark(n),es.measure(`<${qh(e,e.type)}> ${t}`,r,n),es.clearMarks(r),es.clearMarks(n)}({}).NODE_ENV!=="production"&&WT(e,t,Lh()?es.now():Date.now())}function Lh(){return ql!==void 0||(typeof window<"u"&&window.performance?(ql=!0,es=window.performance):ql=!1),ql}function G6(){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 yi=[];function ns(e){yi.push(e)}function is(){yi.pop()}function wt(e,...t){Sn();const n=yi.length?yi[yi.length-1].component:null,i=n&&n.appContext.config.warnHandler,r=ed();if(i)On(i,n,11,[e+t.map(s=>{var o,a;return(a=(o=s.toString)==null?void 0:o.call(s))!=null?a:JSON.stringify(s)}).join(""),n&&n.proxy,r.map(({vnode:s})=>`at <${ws(n,s.type)}>`).join(`
16
+ `),r]);else{const s=[`[Vue warn]: ${e}`,...t];r.length&&s.push(`
17
+ `,...nd(r)),console.warn(...s)}Tn()}function ed(){let e=yi[yi.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const i=e.component&&e.component.parent;e=i&&i.vnode}return t}function nd(e){const t=[];return e.forEach((n,i)=>{t.push(...i===0?[]:[`
18
+ `],...id(n))}),t}function id({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",i=e.component?e.component.parent==null:!1,r=` at <${ws(e.component,e.type,i)}`,s=">"+n;return e.props?[r,...rd(e.props),s]:[r+s]}function rd(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(i=>{t.push(...zl(i,e[i]))}),n.length>3&&t.push(" ..."),t}function zl(e,t,n){return _e(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Ae(t)?(t=zl(e,Qt(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):Gt(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Qt(t),n?t:[`${e}=`,t])}const ko={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 On(e,t,n,i){try{return i?e(...i):e()}catch(r){ur(r,t,n)}}function hn(e,t,n,i){if(Gt(e)){const r=On(e,t,n,i);return r&&co(r)&&r.catch(s=>{ur(s,t,n)}),r}if(Rt(e)){const r=[];for(let s=0;s<e.length;s++)r.push(hn(e[s],t,n,i));return r}else({}).NODE_ENV!=="production"&&wt(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`)}function ur(e,t,n,i=!0){const r=t?t.vnode:null;if(t){let s=t.parent;const o=t.proxy,a={}.NODE_ENV!=="production"?ko[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const p=s.ec;if(p){for(let m=0;m<p.length;m++)if(p[m](e,o,a)===!1)return}s=s.parent}const l=t.appContext.config.errorHandler;if(l){Sn(),On(l,null,10,[e,o,a]),Tn();return}}sd(e,n,r,i)}function sd(e,t,n,i=!0){if({}.NODE_ENV!=="production"){const r=ko[t];if(n&&ns(n),wt(`Unhandled error${r?` during execution of ${r}`:""}`),n&&is(),i)throw e;console.error(e)}else console.error(e)}let hr=!1,So=!1;const Le=[];let yn=0;const Ri=[];let Pn=null,Zn=0;const jl=Promise.resolve();let To=null;const od=100;function Bl(e){const t=To||jl;return e?t.then(this?e.bind(this):e):t}function ad(e){let t=yn+1,n=Le.length;for(;t<n;){const i=t+n>>>1,r=Le[i],s=fr(r);s<e||s===e&&r.pre?t=i+1:n=i}return t}function rs(e){(!Le.length||!Le.includes(e,hr&&e.allowRecurse?yn+1:yn))&&(e.id==null?Le.push(e):Le.splice(ad(e.id),0,e),Gl())}function Gl(){!hr&&!So&&(So=!0,To=jl.then(ql))}function ld(e){const t=Le.indexOf(e);t>yn&&Le.splice(t,1)}function Hl(e){Rt(e)?Ri.push(...e):(!Pn||!Pn.includes(e,e.allowRecurse?Zn+1:Zn))&&Ri.push(e),Gl()}function Ul(e,t,n=hr?yn+1:0){for({}.NODE_ENV!=="production"&&(t=t||new Map);n<Le.length;n++){const i=Le[n];if(i&&i.pre){if(e&&i.id!==e.uid||{}.NODE_ENV!=="production"&&No(t,i))continue;Le.splice(n,1),n--,i()}}}function Wl(e){if(Ri.length){const t=[...new Set(Ri)].sort((n,i)=>fr(n)-fr(i));if(Ri.length=0,Pn){Pn.push(...t);return}for(Pn=t,{}.NODE_ENV!=="production"&&(e=e||new Map),Zn=0;Zn<Pn.length;Zn++)({}).NODE_ENV!=="production"&&No(e,Pn[Zn])||Pn[Zn]();Pn=null,Zn=0}}const fr=e=>e.id==null?1/0:e.id,cd=(e,t)=>{const n=fr(e)-fr(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function ql(e){So=!1,hr=!0,{}.NODE_ENV!=="production"&&(e=e||new Map),Le.sort(cd);const t={}.NODE_ENV!=="production"?n=>No(e,n):Ce;try{for(yn=0;yn<Le.length;yn++){const n=Le[yn];if(n&&n.active!==!1){if({}.NODE_ENV!=="production"&&t(n))continue;On(n,null,14)}}}finally{yn=0,Le.length=0,Wl(e),hr=!1,To=null,(Le.length||Ri.length)&&ql(e)}}function No(e,t){if(!e.has(t))e.set(t,1);else{const n=e.get(t);if(n>od){const i=t.ownerInstance,r=i&&ta(i.type);return ur(`Maximum recursive updates exceeded${r?` in component <${r}>`:""}. 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,n+1)}}let _i=!1;const Vi=new Set;({}).NODE_ENV!=="production"&&(fo().__VUE_HMR_RUNTIME__={createRecord:Oo(Yl),rerender:Oo(fd),reload:Oo(dd)});const bi=new Map;function ud(e){const t=e.type.__hmrId;let n=bi.get(t);n||(Yl(t,e.type),n=bi.get(t)),n.instances.add(e)}function hd(e){bi.get(e.type.__hmrId).instances.delete(e)}function Yl(e,t){return bi.has(e)?!1:(bi.set(e,{initialDef:dr(t),instances:new Set}),!0)}function dr(e){return jc(e)?e.__vccOpts:e}function fd(e,t){const n=bi.get(e);n&&(n.initialDef.render=t,[...n.instances].forEach(i=>{t&&(i.render=t,dr(i.type).render=t),i.renderCache=[],_i=!0,i.effect.dirty=!0,i.update(),_i=!1}))}function dd(e,t){const n=bi.get(e);if(!n)return;t=dr(t),Xl(n.initialDef,t);const i=[...n.instances];for(const r of i){const s=dr(r.type);Vi.has(s)||(s!==n.initialDef&&Xl(s,t),Vi.add(s)),r.appContext.propsCache.delete(r.type),r.appContext.emitsCache.delete(r.type),r.appContext.optionsCache.delete(r.type),r.ceReload?(Vi.add(s),r.ceReload(t.styles),Vi.delete(s)):r.parent?(r.parent.effect.dirty=!0,rs(r.parent.update)):r.appContext.reload?r.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}Hl(()=>{for(const r of i)Vi.delete(dr(r.type))})}function Xl(e,t){ge(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function Oo(e){return(t,n)=>{try{return e(t,n)}catch(i){console.error(i),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let _n,pr=[],Po=!1;function mr(e,...t){_n?_n.emit(e,...t):Po||pr.push({event:e,args:t})}function Kl(e,t){var n,i;_n=e,_n?(_n.enabled=!0,pr.forEach(({event:r,args:s})=>_n.emit(r,...s)),pr=[]):typeof window<"u"&&window.HTMLElement&&!((i=(n=window.navigator)==null?void 0:n.userAgent)!=null&&i.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(s=>{Kl(s,t)}),setTimeout(()=>{_n||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Po=!0,pr=[])},3e3)):(Po=!0,pr=[])}function pd(e,t){mr("app:init",e,t,{Fragment:ve,Text:wr,Comment:Ue,Static:vs})}function md(e){mr("app:unmount",e)}const gd=Io("component:added"),Zl=Io("component:updated"),vd=Io("component:removed"),yd=e=>{_n&&typeof _n.cleanupBuffer=="function"&&!_n.cleanupBuffer(e)&&vd(e)};/*! #__NO_SIDE_EFFECTS__ */function Io(e){return t=>{mr(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const _d=Ql("perf:start"),bd=Ql("perf:end");function Ql(e){return(t,n,i)=>{mr(e,t.appContext.app,t.uid,t,n,i)}}function xd(e,t,n){mr("component:emit",e.appContext.app,e,t,n)}function wd(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||ce;if({}.NODE_ENV!=="production"){const{emitsOptions:m,propsOptions:[g]}=e;if(m)if(!(t in m))(!g||!(di(t)in g))&&wt(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${di(t)}" prop.`);else{const d=m[t];Gt(d)&&(d(...n)||wt(`Invalid event arguments: event validation failed for event "${t}".`))}}let r=n;const s=t.startsWith("update:"),o=s&&t.slice(7);if(o&&o in i){const m=`${o==="modelValue"?"model":o}Modifiers`,{number:g,trim:d}=i[m]||ce;d&&(r=n.map(_=>_e(_)?_.trim():_)),g&&(r=n.map(bf))}if({}.NODE_ENV!=="production"&&xd(e,t,r),{}.NODE_ENV!=="production"){const m=t.toLowerCase();m!==t&&i[di(m)]&&wt(`Event "${m}" is emitted in component ${ws(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 "${Je(t)}" instead of "${t}".`)}let a,l=i[a=di(t)]||i[a=di(Qe(t))];!l&&s&&(l=i[a=di(Je(t))]),l&&hn(l,e,6,r);const p=i[a+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,hn(p,e,6,r)}}function Jl(e,t,n=!1){const i=t.emitsCache,r=i.get(e);if(r!==void 0)return r;const s=e.emits;let o={},a=!1;if(!Gt(e)){const l=p=>{const m=Jl(p,t,!0);m&&(a=!0,ge(o,m))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?(ae(e)&&i.set(e,null),null):(Rt(s)?s.forEach(l=>o[l]=null):ge(o,s),ae(e)&&i.set(e,o),o)}function ss(e,t){return!e||!or(t)?!1:(t=t.slice(2).replace(/Once$/,""),ne(e,t[0].toLowerCase()+t.slice(1))||ne(e,Je(t))||ne(e,t))}let Se=null,os=null;function as(e){const t=Se;return Se=e,os=e&&e.type.__scopeId||null,t}function gr(e){os=e}function vr(){os=null}function fe(e,t=Se,n){if(!t||e._n)return e;const i=(...r)=>{i._d&&Ic(-1);const s=as(t);let o;try{o=e(...r)}finally{as(s),i._d&&Ic(1)}return{}.NODE_ENV!=="production"&&Zl(t),o};return i._n=!0,i._c=!0,i._d=!0,i}let Mo=!1;function ls(){Mo=!0}function Ao(e){const{type:t,vnode:n,proxy:i,withProxy:r,propsOptions:[s],slots:o,attrs:a,emit:l,render:p,renderCache:m,props:g,data:d,setupState:_,ctx:N,inheritAttrs:C}=e,M=as(e);let z,P;({}).NODE_ENV!=="production"&&(Mo=!1);try{if(n.shapeFlag&4){const Y=r||i,J={}.NODE_ENV!=="production"&&_.__isScriptSetup?new Proxy(Y,{get(V,ht,_t){return wt(`Property '${String(ht)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(V,ht,_t)}}):Y;z=dn(p.call(J,Y,m,{}.NODE_ENV!=="production"?Nn(g):g,_,d,N)),P=a}else{const Y=t;({}).NODE_ENV!=="production"&&a===g&&ls(),z=dn(Y.length>1?Y({}.NODE_ENV!=="production"?Nn(g):g,{}.NODE_ENV!=="production"?{get attrs(){return ls(),a},slots:o,emit:l}:{attrs:a,slots:o,emit:l}):Y({}.NODE_ENV!=="production"?Nn(g):g,null)),P=t.props?a:Ed(a)}}catch(Y){Er.length=0,ur(Y,e,1),z=Jt(Ue)}let $=z,H;if({}.NODE_ENV!=="production"&&z.patchFlag>0&&z.patchFlag&2048&&([$,H]=tc(z)),P&&C!==!1){const Y=Object.keys(P),{shapeFlag:J}=$;if(Y.length){if(J&7)s&&Y.some(Hr)&&(P=Cd(P,s)),$=ti($,P);else if({}.NODE_ENV!=="production"&&!Mo&&$.type!==Ue){const V=Object.keys(a),ht=[],_t=[];for(let Pt=0,Et=V.length;Pt<Et;Pt++){const vt=V[Pt];or(vt)?Hr(vt)||ht.push(vt[2].toLowerCase()+vt.slice(3)):_t.push(vt)}_t.length&&wt(`Extraneous non-props attributes (${_t.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),ht.length&&wt(`Extraneous non-emits event listeners (${ht.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 n.dirs&&({}.NODE_ENV!=="production"&&!ec($)&&wt("Runtime directive used on component with non-element root node. The directives will not function as intended."),$=ti($),$.dirs=$.dirs?$.dirs.concat(n.dirs):n.dirs),n.transition&&({}.NODE_ENV!=="production"&&!ec($)&&wt("Component inside <Transition> renders non-element root node that cannot be animated."),$.transition=n.transition),{}.NODE_ENV!=="production"&&H?H($):z=$,as(M),z}const tc=e=>{const t=e.children,n=e.dynamicChildren,i=Do(t,!1);if(i){if({}.NODE_ENV!=="production"&&i.patchFlag>0&&i.patchFlag&2048)return tc(i)}else return[e,void 0];const r=t.indexOf(i),s=n?n.indexOf(i):-1,o=a=>{t[r]=a,n&&(s>-1?n[s]=a:a.patchFlag>0&&(e.dynamicChildren=[...n,a]))};return[dn(i),o]};function Do(e,t=!0){let n;for(let i=0;i<e.length;i++){const r=e[i];if(Fi(r)){if(r.type!==Ue||r.children==="v-if"){if(n)return;if(n=r,{}.NODE_ENV!=="production"&&t&&n.patchFlag>0&&n.patchFlag&2048)return Do(n.children)}}else return}return n}const Ed=e=>{let t;for(const n in e)(n==="class"||n==="style"||or(n))&&((t||(t={}))[n]=e[n]);return t},Cd=(e,t)=>{const n={};for(const i in e)(!Hr(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n},ec=e=>e.shapeFlag&7||e.type===Ue;function kd(e,t,n){const{props:i,children:r,component:s}=e,{props:o,children:a,patchFlag:l}=t,p=s.emitsOptions;if({}.NODE_ENV!=="production"&&(r||a)&&_i||t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return i?nc(i,o,p):!!o;if(l&8){const m=t.dynamicProps;for(let g=0;g<m.length;g++){const d=m[g];if(o[d]!==i[d]&&!ss(p,d))return!0}}}else return(r||a)&&(!a||!a.$stable)?!0:i===o?!1:i?o?nc(i,o,p):!0:!!o;return!1}function nc(e,t,n){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let r=0;r<i.length;r++){const s=i[r];if(t[s]!==e[s]&&!ss(n,s))return!0}return!1}function Sd({vnode:e,parent:t},n){for(;t;){const i=t.subTree;if(i.suspense&&i.suspense.activeBranch===e&&(i.el=e.el),i===e)(e=t.vnode).el=n,t=t.parent;else break}}const Lo="components";function Td(e,t){return Od(Lo,e,!0,t)||e}const Nd=Symbol.for("v-ndc");function Od(e,t,n=!0,i=!1){const r=Se||Oe;if(r){const s=r.type;if(e===Lo){const a=ta(s,!1);if(a&&(a===t||a===Qe(t)||a===fi(Qe(t))))return s}const o=ic(r[e]||s[e],t)||ic(r.appContext[e],t);if(!o&&i)return s;if({}.NODE_ENV!=="production"&&n&&!o){const a=e===Lo?`
19
+ If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`:"";wt(`Failed to resolve ${e.slice(0,-1)}: ${t}${a}`)}return o}else({}).NODE_ENV!=="production"&&wt(`resolve${fi(e.slice(0,-1))} can only be used in render() or setup().`)}function ic(e,t){return e&&(e[t]||e[Qe(t)]||e[fi(Qe(t))])}const Pd=e=>e.__isSuspense;function Id(e,t){t&&t.pendingBranch?Rt(e)?t.effects.push(...e):t.effects.push(e):Hl(e)}const Md=Symbol.for("v-scx"),Ad=()=>{{const e=ps(Md);return e||{}.NODE_ENV!=="production"&&wt("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}},cs={};function se(e,t,n){return{}.NODE_ENV!=="production"&&!Gt(t)&&wt("`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."),rc(e,t,n)}function rc(e,t,{immediate:n,deep:i,flush:r,once:s,onTrack:o,onTrigger:a}=ce){if(t&&s){const V=t;t=(...ht)=>{V(...ht),J()}}({}).NODE_ENV!=="production"&&i!==void 0&&typeof i=="number"&&wt('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&&(n!==void 0&&wt('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),i!==void 0&&wt('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),s!==void 0&&wt('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const l=V=>{wt("Invalid watch source: ",V,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},p=Oe,m=V=>i===!0?V:xi(V,i===!1?1:void 0);let g,d=!1,_=!1;if(Ae(e)?(g=()=>e.value,d=vi(e)):$i(e)?(g=()=>m(e),d=!0):Rt(e)?(_=!0,d=e.some(V=>$i(V)||vi(V)),g=()=>e.map(V=>{if(Ae(V))return V.value;if($i(V))return m(V);if(Gt(V))return On(V,p,2);({}).NODE_ENV!=="production"&&l(V)})):Gt(e)?t?g=()=>On(e,p,2):g=()=>(N&&N(),hn(e,p,3,[C])):(g=Ce,{}.NODE_ENV!=="production"&&l(e)),t&&i){const V=g;g=()=>xi(V())}let N,C=V=>{N=H.onStop=()=>{On(V,p,4),N=H.onStop=void 0}},M;if(bs)if(C=Ce,t?n&&hn(t,p,3,[g(),_?[]:void 0,C]):g(),r==="sync"){const V=Ad();M=V.__watcherHandles||(V.__watcherHandles=[])}else return Ce;let z=_?new Array(e.length).fill(cs):cs;const P=()=>{if(!(!H.active||!H.dirty))if(t){const V=H.run();(i||d||(_?V.some((ht,_t)=>qn(ht,z[_t])):qn(V,z)))&&(N&&N(),hn(t,p,3,[V,z===cs?void 0:_&&z[0]===cs?[]:z,C]),z=V)}else H.run()};P.allowRecurse=!!t;let $;r==="sync"?$=P:r==="post"?$=()=>He(P,p&&p.suspense):(P.pre=!0,p&&(P.id=p.uid),$=()=>rs(P));const H=new mo(g,Ce,$),Y=Nf(),J=()=>{H.stop(),Y&&lo(Y.effects,H)};return{}.NODE_ENV!=="production"&&(H.onTrack=o,H.onTrigger=a),t?n?P():z=H.run():r==="post"?He(H.run.bind(H),p&&p.suspense):H.run(),M&&M.push(J),J}function Dd(e,t,n){const i=this.proxy,r=_e(e)?e.includes(".")?sc(i,e):()=>i[e]:e.bind(i,i);let s;Gt(t)?s=t:(s=t.handler,n=t);const o=Sr(this),a=rc(r,s.bind(i),n);return o(),a}function sc(e,t){const n=t.split(".");return()=>{let i=e;for(let r=0;r<n.length&&i;r++)i=i[n[r]];return i}}function xi(e,t,n=0,i){if(!ae(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(i=i||new Set,i.has(e))return e;if(i.add(e),Ae(e))xi(e.value,t,n,i);else if(Rt(e))for(let r=0;r<e.length;r++)xi(e[r],t,n,i);else if(al(e)||ui(e))e.forEach(r=>{xi(r,t,n,i)});else if(cl(e))for(const r in e)xi(e[r],t,n,i);return e}function oc(e){vf(e)&&wt("Do not use built-in directive ids as custom directive id: "+e)}function $o(e,t){if(Se===null)return{}.NODE_ENV!=="production"&&wt("withDirectives can only be used inside render functions."),e;const n=xs(Se)||Se.proxy,i=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[s,o,a,l=ce]=t[r];s&&(Gt(s)&&(s={mounted:s,updated:s}),s.deep&&xi(o),i.push({dir:s,instance:n,value:o,oldValue:void 0,arg:a,modifiers:l}))}return e}function wi(e,t,n,i){const r=e.dirs,s=t&&t.dirs;for(let o=0;o<r.length;o++){const a=r[o];s&&(a.oldValue=s[o].value);let l=a.dir[i];l&&(Sn(),hn(l,n,8,[e.el,a,e,t]),Tn())}}/*! #__NO_SIDE_EFFECTS__ */function Kt(e,t){return Gt(e)?(()=>ge({name:e.name},t,{setup:e}))():e}const yr=e=>!!e.type.__asyncLoader,Ro=e=>e.type.__isKeepAlive;function Ld(e,t){ac(e,"a",t)}function $d(e,t){ac(e,"da",t)}function ac(e,t,n=Oe){const i=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(us(t,i,n),n){let r=n.parent;for(;r&&r.parent;)Ro(r.parent.vnode)&&Rd(i,t,n,r),r=r.parent}}function Rd(e,t,n,i){const r=us(t,e,i,!0);fs(()=>{lo(i[t],r)},n)}function us(e,t,n=Oe,i=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;Sn();const a=Sr(n),l=hn(t,n,e,o);return a(),Tn(),l});return i?r.unshift(s):r.push(s),s}else if({}.NODE_ENV!=="production"){const r=di(ko[e].replace(/ hook$/,""));wt(`${r} 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 In=e=>(t,n=Oe)=>(!bs||e==="sp")&&us(e,(...i)=>t(...i),n),Vd=In("bm"),hs=In("m"),Fd=In("bu"),zd=In("u"),jd=In("bum"),fs=In("um"),Bd=In("sp"),Gd=In("rtg"),Hd=In("rtc");function Ud(e,t=Oe){us("ec",e,t)}function Qn(e,t,n,i){let r;const s=n&&n[i];if(Rt(e)||_e(e)){r=new Array(e.length);for(let o=0,a=e.length;o<a;o++)r[o]=t(e[o],o,void 0,s&&s[o])}else if(typeof e=="number"){({}).NODE_ENV!=="production"&&!Number.isInteger(e)&&wt(`The v-for range expect an integer value but got ${e}.`),r=new Array(e);for(let o=0;o<e;o++)r[o]=t(o+1,o,void 0,s&&s[o])}else if(ae(e))if(e[Symbol.iterator])r=Array.from(e,(o,a)=>t(o,a,void 0,s&&s[a]));else{const o=Object.keys(e);r=new Array(o.length);for(let a=0,l=o.length;a<l;a++){const p=o[a];r[a]=t(e[p],p,a,s&&s[a])}}else r=[];return n&&(n[i]=r),r}function pe(e,t,n={},i,r){if(Se.isCE||Se.parent&&yr(Se.parent)&&Se.parent.isCE)return t!=="default"&&(n.name=t),Jt("slot",n,i&&i());let s=e[t];({}).NODE_ENV!=="production"&&s&&s.length>1&&(wt("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),xt();const o=s&&lc(s(n)),a=be(ve,{key:n.key||o&&o.key||`_${t}`},o||(i?i():[]),o&&e._===1?64:-2);return!r&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),s&&s._c&&(s._d=!0),a}function lc(e){return e.some(t=>Fi(t)?!(t.type===Ue||t.type===ve&&!lc(t.children)):!0)?e:null}const Vo=e=>e?Rc(e)?xs(e)||e.proxy:Vo(e.parent):null,Ei=ge(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>({}).NODE_ENV!=="production"?Nn(e.props):e.props,$attrs:e=>({}).NODE_ENV!=="production"?Nn(e.attrs):e.attrs,$slots:e=>({}).NODE_ENV!=="production"?Nn(e.slots):e.slots,$refs:e=>({}).NODE_ENV!=="production"?Nn(e.refs):e.refs,$parent:e=>Vo(e.parent),$root:e=>Vo(e.root),$emit:e=>e.emit,$options:e=>Bo(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,rs(e.update)}),$nextTick:e=>e.n||(e.n=Bl.bind(e.proxy)),$watch:e=>Dd.bind(e)}),Fo=e=>e==="_"||e==="$",zo=(e,t)=>e!==ce&&!e.__isScriptSetup&&ne(e,t),cc={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:i,data:r,props:s,accessCache:o,type:a,appContext:l}=e;if({}.NODE_ENV!=="production"&&t==="__isVue")return!0;let p;if(t[0]!=="$"){const _=o[t];if(_!==void 0)switch(_){case 1:return i[t];case 2:return r[t];case 4:return n[t];case 3:return s[t]}else{if(zo(i,t))return o[t]=1,i[t];if(r!==ce&&ne(r,t))return o[t]=2,r[t];if((p=e.propsOptions[0])&&ne(p,t))return o[t]=3,s[t];if(n!==ce&&ne(n,t))return o[t]=4,n[t];jo&&(o[t]=0)}}const m=Ei[t];let g,d;if(m)return t==="$attrs"?(Me(e.attrs,"get",""),{}.NODE_ENV!=="production"&&ls()):{}.NODE_ENV!=="production"&&t==="$slots"&&Me(e,"get",t),m(e);if((g=a.__cssModules)&&(g=g[t]))return g;if(n!==ce&&ne(n,t))return o[t]=4,n[t];if(d=l.config.globalProperties,ne(d,t))return d[t];({}).NODE_ENV!=="production"&&Se&&(!_e(t)||t.indexOf("__v")!==0)&&(r!==ce&&Fo(t[0])&&ne(r,t)?wt(`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===Se&&wt(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,n){const{data:i,setupState:r,ctx:s}=e;return zo(r,t)?(r[t]=n,!0):{}.NODE_ENV!=="production"&&r.__isScriptSetup&&ne(r,t)?(wt(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):i!==ce&&ne(i,t)?(i[t]=n,!0):ne(e.props,t)?({}.NODE_ENV!=="production"&&wt(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?({}.NODE_ENV!=="production"&&wt(`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(s,t,{enumerable:!0,configurable:!0,value:n}):s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:r,propsOptions:s}},o){let a;return!!n[o]||e!==ce&&ne(e,o)||zo(t,o)||(a=s[0])&&ne(a,o)||ne(i,o)||ne(Ei,o)||ne(r.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ne(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};({}).NODE_ENV!=="production"&&(cc.ownKeys=e=>(wt("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 Wd(e){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>e}),Object.keys(Ei).forEach(n=>{Object.defineProperty(t,n,{configurable:!0,enumerable:!1,get:()=>Ei[n](e),set:Ce})}),t}function qd(e){const{ctx:t,propsOptions:[n]}=e;n&&Object.keys(n).forEach(i=>{Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>e.props[i],set:Ce})})}function Yd(e){const{ctx:t,setupState:n}=e;Object.keys(Qt(n)).forEach(i=>{if(!n.__isScriptSetup){if(Fo(i[0])){wt(`setup() return property ${JSON.stringify(i)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>n[i],set:Ce})}})}function uc(e){return Rt(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Xd(){const e=Object.create(null);return(t,n)=>{e[n]?wt(`${t} property "${n}" is already defined in ${e[n]}.`):e[n]=t}}let jo=!0;function Kd(e){const t=Bo(e),n=e.proxy,i=e.ctx;jo=!1,t.beforeCreate&&hc(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:o,watch:a,provide:l,inject:p,created:m,beforeMount:g,mounted:d,beforeUpdate:_,updated:N,activated:C,deactivated:M,beforeDestroy:z,beforeUnmount:P,destroyed:$,unmounted:H,render:Y,renderTracked:J,renderTriggered:V,errorCaptured:ht,serverPrefetch:_t,expose:Pt,inheritAttrs:Et,components:vt,directives:It,filters:kt}=t,Ut={}.NODE_ENV!=="production"?Xd():null;if({}.NODE_ENV!=="production"){const[Ot]=e.propsOptions;if(Ot)for(const W in Ot)Ut("Props",W)}if(p&&Zd(p,i,Ut),o)for(const Ot in o){const W=o[Ot];Gt(W)?({}.NODE_ENV!=="production"?Object.defineProperty(i,Ot,{value:W.bind(n),configurable:!0,enumerable:!0,writable:!0}):i[Ot]=W.bind(n),{}.NODE_ENV!=="production"&&Ut("Methods",Ot)):{}.NODE_ENV!=="production"&&wt(`Method "${Ot}" has type "${typeof W}" in the component definition. Did you reference the function correctly?`)}if(r){({}).NODE_ENV!=="production"&&!Gt(r)&&wt("The data option must be a function. Plain object usage is no longer supported.");const Ot=r.call(n,n);if({}.NODE_ENV!=="production"&&co(Ot)&&wt("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!ae(Ot))({}).NODE_ENV!=="production"&&wt("data() should return an object.");else if(e.data=tn(Ot),{}.NODE_ENV!=="production")for(const W in Ot)Ut("Data",W),Fo(W[0])||Object.defineProperty(i,W,{configurable:!0,enumerable:!0,get:()=>Ot[W],set:Ce})}if(jo=!0,s)for(const Ot in s){const W=s[Ot],at=Gt(W)?W.bind(n,n):Gt(W.get)?W.get.bind(n,n):Ce;({}).NODE_ENV!=="production"&&at===Ce&&wt(`Computed property "${Ot}" has no getter.`);const mt=!Gt(W)&&Gt(W.set)?W.set.bind(n):{}.NODE_ENV!=="production"?()=>{wt(`Write operation failed: computed property "${Ot}" is readonly.`)}:Ce,S=$p({get:at,set:mt});Object.defineProperty(i,Ot,{enumerable:!0,configurable:!0,get:()=>S.value,set:w=>S.value=w}),{}.NODE_ENV!=="production"&&Ut("Computed",Ot)}if(a)for(const Ot in a)fc(a[Ot],i,n,Ot);if(l){const Ot=Gt(l)?l.call(n):l;Reflect.ownKeys(Ot).forEach(W=>{ip(W,Ot[W])})}m&&hc(m,e,"c");function jt(Ot,W){Rt(W)?W.forEach(at=>Ot(at.bind(n))):W&&Ot(W.bind(n))}if(jt(Vd,g),jt(hs,d),jt(Fd,_),jt(zd,N),jt(Ld,C),jt($d,M),jt(Ud,ht),jt(Hd,J),jt(Gd,V),jt(jd,P),jt(fs,H),jt(Bd,_t),Rt(Pt))if(Pt.length){const Ot=e.exposed||(e.exposed={});Pt.forEach(W=>{Object.defineProperty(Ot,W,{get:()=>n[W],set:at=>n[W]=at})})}else e.exposed||(e.exposed={});Y&&e.render===Ce&&(e.render=Y),Et!=null&&(e.inheritAttrs=Et),vt&&(e.components=vt),It&&(e.directives=It)}function Zd(e,t,n=Ce){Rt(e)&&(e=Go(e));for(const i in e){const r=e[i];let s;ae(r)?"default"in r?s=ps(r.from||i,r.default,!0):s=ps(r.from||i):s=ps(r),Ae(s)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>s.value,set:o=>s.value=o}):t[i]=s,{}.NODE_ENV!=="production"&&n("Inject",i)}}function hc(e,t,n){hn(Rt(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function fc(e,t,n,i){const r=i.includes(".")?sc(n,i):()=>n[i];if(_e(e)){const s=t[e];Gt(s)?se(r,s):{}.NODE_ENV!=="production"&&wt(`Invalid watch handler specified by key "${e}"`,s)}else if(Gt(e))se(r,e.bind(n));else if(ae(e))if(Rt(e))e.forEach(s=>fc(s,t,n,i));else{const s=Gt(e.handler)?e.handler.bind(n):t[e.handler];Gt(s)?se(r,s,e):{}.NODE_ENV!=="production"&&wt(`Invalid watch handler specified by key "${e.handler}"`,s)}else({}).NODE_ENV!=="production"&&wt(`Invalid watch option: "${i}"`,e)}function Bo(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:o}}=e.appContext,a=s.get(t);let l;return a?l=a:!r.length&&!n&&!i?l=t:(l={},r.length&&r.forEach(p=>ds(l,p,o,!0)),ds(l,t,o)),ae(t)&&s.set(t,l),l}function ds(e,t,n,i=!1){const{mixins:r,extends:s}=t;s&&ds(e,s,n,!0),r&&r.forEach(o=>ds(e,o,n,!0));for(const o in t)if(i&&o==="expose")({}).NODE_ENV!=="production"&&wt('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const a=Qd[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const Qd={data:dc,props:pc,emits:pc,methods:_r,computed:_r,beforeCreate:je,created:je,beforeMount:je,mounted:je,beforeUpdate:je,updated:je,beforeDestroy:je,beforeUnmount:je,destroyed:je,unmounted:je,activated:je,deactivated:je,errorCaptured:je,serverPrefetch:je,components:_r,directives:_r,watch:tp,provide:dc,inject:Jd};function dc(e,t){return t?e?function(){return ge(Gt(e)?e.call(this,this):e,Gt(t)?t.call(this,this):t)}:t:e}function Jd(e,t){return _r(Go(e),Go(t))}function Go(e){if(Rt(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function je(e,t){return e?[...new Set([].concat(e,t))]:t}function _r(e,t){return e?ge(Object.create(null),e,t):t}function pc(e,t){return e?Rt(e)&&Rt(t)?[...new Set([...e,...t])]:ge(Object.create(null),uc(e),uc(t??{})):t}function tp(e,t){if(!e)return t;if(!t)return e;const n=ge(Object.create(null),e);for(const i in t)n[i]=je(e[i],t[i]);return n}function mc(){return{app:null,config:{isNativeTag:mf,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 ep=0;function np(e,t){return function(i,r=null){Gt(i)||(i=ge({},i)),r!=null&&!ae(r)&&({}.NODE_ENV!=="production"&&wt("root props passed to app.mount() must be an object."),r=null);const s=mc(),o=new WeakSet;let a=!1;const l=s.app={_uid:ep++,_component:i,_props:r,_container:null,_context:s,_instance:null,version:Gc,get config(){return s.config},set config(p){({}).NODE_ENV!=="production"&&wt("app.config cannot be replaced. Modify individual options instead.")},use(p,...m){return o.has(p)?{}.NODE_ENV!=="production"&&wt("Plugin has already been applied to target app."):p&&Gt(p.install)?(o.add(p),p.install(l,...m)):Gt(p)?(o.add(p),p(l,...m)):{}.NODE_ENV!=="production"&&wt('A plugin must either be a function or an object with an "install" function.'),l},mixin(p){return s.mixins.includes(p)?{}.NODE_ENV!=="production"&&wt("Mixin has already been applied to target app"+(p.name?`: ${p.name}`:"")):s.mixins.push(p),l},component(p,m){return{}.NODE_ENV!=="production"&&Qo(p,s.config),m?({}.NODE_ENV!=="production"&&s.components[p]&&wt(`Component "${p}" has already been registered in target app.`),s.components[p]=m,l):s.components[p]},directive(p,m){return{}.NODE_ENV!=="production"&&oc(p),m?({}.NODE_ENV!=="production"&&s.directives[p]&&wt(`Directive "${p}" has already been registered in target app.`),s.directives[p]=m,l):s.directives[p]},mount(p,m,g){if(a)({}).NODE_ENV!=="production"&&wt("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"&&p.__vue_app__&&wt("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 d=Jt(i,r);return d.appContext=s,g===!0?g="svg":g===!1&&(g=void 0),{}.NODE_ENV!=="production"&&(s.reload=()=>{e(ti(d),p,g)}),m&&t?t(d,p):e(d,p,g),a=!0,l._container=p,p.__vue_app__=l,{}.NODE_ENV!=="production"&&(l._instance=d.component,pd(l,Gc)),xs(d.component)||d.component.proxy}},unmount(){a?(e(null,l._container),{}.NODE_ENV!=="production"&&(l._instance=null,md(l)),delete l._container.__vue_app__):{}.NODE_ENV!=="production"&&wt("Cannot unmount an app that is not mounted.")},provide(p,m){return{}.NODE_ENV!=="production"&&p in s.provides&&wt(`App already provides property with key "${String(p)}". It will be overwritten with the new value.`),s.provides[p]=m,l},runWithContext(p){const m=br;br=l;try{return p()}finally{br=m}}};return l}}let br=null;function ip(e,t){if(!Oe)({}).NODE_ENV!=="production"&&wt("provide() can only be used inside setup().");else{let n=Oe.provides;const i=Oe.parent&&Oe.parent.provides;i===n&&(n=Oe.provides=Object.create(i)),n[e]=t}}function ps(e,t,n=!1){const i=Oe||Se;if(i||br){const r=i?i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:br._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&Gt(t)?t.call(i&&i.proxy):t;({}).NODE_ENV!=="production"&&wt(`injection "${String(e)}" not found.`)}else({}).NODE_ENV!=="production"&&wt("inject() can only be used inside setup() or functional components.")}const gc={},vc=()=>Object.create(gc),yc=e=>Object.getPrototypeOf(e)===gc;function rp(e,t,n,i=!1){const r={},s=vc();e.propsDefaults=Object.create(null),_c(e,t,r,s);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);({}).NODE_ENV!=="production"&&Cc(t||{},r,e),n?e.props=i?r:Yf(r):e.type.props?e.props=r:e.props=s,e.attrs=s}function sp(e){for(;e;){if(e.type.__hmrId)return!0;e=e.parent}}function op(e,t,n,i){const{props:r,attrs:s,vnode:{patchFlag:o}}=e,a=Qt(r),[l]=e.propsOptions;let p=!1;if(!({}.NODE_ENV!=="production"&&sp(e))&&(i||o>0)&&!(o&16)){if(o&8){const m=e.vnode.dynamicProps;for(let g=0;g<m.length;g++){let d=m[g];if(ss(e.emitsOptions,d))continue;const _=t[d];if(l)if(ne(s,d))_!==s[d]&&(s[d]=_,p=!0);else{const N=Qe(d);r[N]=Ho(l,a,N,_,e,!1)}else _!==s[d]&&(s[d]=_,p=!0)}}}else{_c(e,t,r,s)&&(p=!0);let m;for(const g in a)(!t||!ne(t,g)&&((m=Je(g))===g||!ne(t,m)))&&(l?n&&(n[g]!==void 0||n[m]!==void 0)&&(r[g]=Ho(l,a,g,void 0,e,!0)):delete r[g]);if(s!==a)for(const g in s)(!t||!ne(t,g))&&(delete s[g],p=!0)}p&&vn(e.attrs,"set",""),{}.NODE_ENV!=="production"&&Cc(t||{},r,e)}function _c(e,t,n,i){const[r,s]=e.propsOptions;let o=!1,a;if(t)for(let l in t){if(ar(l))continue;const p=t[l];let m;r&&ne(r,m=Qe(l))?!s||!s.includes(m)?n[m]=p:(a||(a={}))[m]=p:ss(e.emitsOptions,l)||(!(l in i)||p!==i[l])&&(i[l]=p,o=!0)}if(s){const l=Qt(n),p=a||ce;for(let m=0;m<s.length;m++){const g=s[m];n[g]=Ho(r,l,g,p[g],e,!ne(p,g))}}return o}function Ho(e,t,n,i,r,s){const o=e[n];if(o!=null){const a=ne(o,"default");if(a&&i===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&Gt(l)){const{propsDefaults:p}=r;if(n in p)i=p[n];else{const m=Sr(r);i=p[n]=l.call(null,t),m()}}else i=l}o[0]&&(s&&!a?i=!1:o[1]&&(i===""||i===Je(n))&&(i=!0))}return i}function bc(e,t,n=!1){const i=t.propsCache,r=i.get(e);if(r)return r;const s=e.props,o={},a=[];let l=!1;if(!Gt(e)){const m=g=>{l=!0;const[d,_]=bc(g,t,!0);ge(o,d),_&&a.push(..._)};!n&&t.mixins.length&&t.mixins.forEach(m),e.extends&&m(e.extends),e.mixins&&e.mixins.forEach(m)}if(!s&&!l)return ae(e)&&i.set(e,Li),Li;if(Rt(s))for(let m=0;m<s.length;m++){({}).NODE_ENV!=="production"&&!_e(s[m])&&wt("props must be strings when using array syntax.",s[m]);const g=Qe(s[m]);xc(g)&&(o[g]=ce)}else if(s){({}).NODE_ENV!=="production"&&!ae(s)&&wt("invalid props options",s);for(const m in s){const g=Qe(m);if(xc(g)){const d=s[m],_=o[g]=Rt(d)||Gt(d)?{type:d}:ge({},d);if(_){const N=Ec(Boolean,_.type),C=Ec(String,_.type);_[0]=N>-1,_[1]=C<0||N<C,(N>-1||ne(_,"default"))&&a.push(g)}}}}const p=[o,a];return ae(e)&&i.set(e,p),p}function xc(e){return e[0]!=="$"&&!ar(e)?!0:({}.NODE_ENV!=="production"&&wt(`Invalid prop name: "${e}" is a reserved property.`),!1)}function Uo(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function wc(e,t){return Uo(e)===Uo(t)}function Ec(e,t){return Rt(t)?t.findIndex(n=>wc(n,e)):Gt(t)&&wc(t,e)?0:-1}function Cc(e,t,n){const i=Qt(t),r=n.propsOptions[0];for(const s in r){let o=r[s];o!=null&&ap(s,i[s],o,{}.NODE_ENV!=="production"?Nn(i):i,!ne(e,s)&&!ne(e,Je(s)))}}function ap(e,t,n,i,r){const{type:s,required:o,validator:a,skipCheck:l}=n;if(o&&r){wt('Missing required prop: "'+e+'"');return}if(!(t==null&&!o)){if(s!=null&&s!==!0&&!l){let p=!1;const m=Rt(s)?s:[s],g=[];for(let d=0;d<m.length&&!p;d++){const{valid:_,expectedType:N}=cp(t,m[d]);g.push(N||""),p=_}if(!p){wt(up(e,t,g));return}}a&&!a(t,i)&&wt('Invalid prop: custom validator check failed for prop "'+e+'".')}}const lp=gn("String,Number,Boolean,Function,Symbol,BigInt");function cp(e,t){let n;const i=Uo(t);if(lp(i)){const r=typeof e;n=r===i.toLowerCase(),!n&&r==="object"&&(n=e instanceof t)}else i==="Object"?n=ae(e):i==="Array"?n=Rt(e):i==="null"?n=e===null:n=e instanceof t;return{valid:n,expectedType:i}}function up(e,t,n){if(n.length===0)return`Prop type [] for prop "${e}" won't match anything. Did you mean to use type Array instead?`;let i=`Invalid prop: type check failed for prop "${e}". Expected ${n.map(fi).join(" | ")}`;const r=n[0],s=uo(t),o=kc(t,r),a=kc(t,s);return n.length===1&&Sc(r)&&!hp(r,s)&&(i+=` with value ${o}`),i+=`, got ${s} `,Sc(s)&&(i+=`with value ${a}.`),i}function kc(e,t){return t==="String"?`"${e}"`:t==="Number"?`${Number(e)}`:`${e}`}function Sc(e){return["string","number","boolean"].some(n=>e.toLowerCase()===n)}function hp(...e){return e.some(t=>t.toLowerCase()==="boolean")}const Tc=e=>e[0]==="_"||e==="$stable",Wo=e=>Rt(e)?e.map(dn):[dn(e)],fp=(e,t,n)=>{if(t._n)return t;const i=fe((...r)=>({}.NODE_ENV!=="production"&&Oe&&(!n||n.root===Oe.root)&&wt(`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.`),Wo(t(...r))),n);return i._c=!1,i},Nc=(e,t,n)=>{const i=e._ctx;for(const r in e){if(Tc(r))continue;const s=e[r];if(Gt(s))t[r]=fp(r,s,i);else if(s!=null){({}).NODE_ENV!=="production"&&wt(`Non-function value encountered for slot "${r}". Prefer function slots for better performance.`);const o=Wo(s);t[r]=()=>o}}},Oc=(e,t)=>{({}).NODE_ENV!=="production"&&!Ro(e.vnode)&&wt("Non-function value encountered for default slot. Prefer function slots for better performance.");const n=Wo(t);e.slots.default=()=>n},dp=(e,t)=>{const n=e.slots=vc();if(e.vnode.shapeFlag&32){const i=t._;i?(ge(n,t),ul(n,"_",i)):Nc(t,n)}else t&&Oc(e,t)},pp=(e,t,n)=>{const{vnode:i,slots:r}=e;let s=!0,o=ce;if(i.shapeFlag&32){const a=t._;a?{}.NODE_ENV!=="production"&&_i?(ge(r,t),vn(e,"set","$slots")):n&&a===1?s=!1:(ge(r,t),!n&&a===1&&delete r._):(s=!t.$stable,Nc(t,r)),o=t}else t&&(Oc(e,t),o={default:1});if(s)for(const a in r)!Tc(a)&&o[a]==null&&delete r[a]};function qo(e,t,n,i,r=!1){if(Rt(e)){e.forEach((d,_)=>qo(d,t&&(Rt(t)?t[_]:t),n,i,r));return}if(yr(i)&&!r)return;const s=i.shapeFlag&4?xs(i.component)||i.component.proxy:i.el,o=r?null:s,{i:a,r:l}=e;if({}.NODE_ENV!=="production"&&!a){wt("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");return}const p=t&&t.r,m=a.refs===ce?a.refs={}:a.refs,g=a.setupState;if(p!=null&&p!==l&&(_e(p)?(m[p]=null,ne(g,p)&&(g[p]=null)):Ae(p)&&(p.value=null)),Gt(l))On(l,a,12,[o,m]);else{const d=_e(l),_=Ae(l);if(d||_){const N=()=>{if(e.f){const C=d?ne(g,l)?g[l]:m[l]:l.value;r?Rt(C)&&lo(C,s):Rt(C)?C.includes(s)||C.push(s):d?(m[l]=[s],ne(g,l)&&(g[l]=m[l])):(l.value=[s],e.k&&(m[e.k]=l.value))}else d?(m[l]=o,ne(g,l)&&(g[l]=o)):_?(l.value=o,e.k&&(m[e.k]=o)):{}.NODE_ENV!=="production"&&wt("Invalid template ref type:",l,`(${typeof l})`)};o?(N.id=-1,He(N,n)):N()}else({}).NODE_ENV!=="production"&&wt("Invalid template ref type:",l,`(${typeof l})`)}}let xr,Jn;function Mn(e,t){e.appContext.config.performance&&ms()&&Jn.mark(`vue-${t}-${e.uid}`),{}.NODE_ENV!=="production"&&_d(e,t,ms()?Jn.now():Date.now())}function An(e,t){if(e.appContext.config.performance&&ms()){const n=`vue-${t}-${e.uid}`,i=n+":end";Jn.mark(i),Jn.measure(`<${ws(e,e.type)}> ${t}`,n,i),Jn.clearMarks(n),Jn.clearMarks(i)}({}).NODE_ENV!=="production"&&bd(e,t,ms()?Jn.now():Date.now())}function ms(){return xr!==void 0||(typeof window<"u"&&window.performance?(xr=!0,Jn=window.performance):xr=!1),xr}function mp(){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.
19
20
 
20
- For more details, see https://link.vuejs.org/feature-flags.`)}}const Tn=o6;function B6(e){return H6(e)}function H6(e,t){G6();const r=vp();r.__VUE__=!0,{}.NODE_ENV!=="production"&&j_(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=Nr,insertStaticContent:p}=e,g=(W,Q,ot,lt=null,ct=null,dt=null,$t=void 0,vt=null,bt={}.NODE_ENV!=="production"&&Bs?!1:!!Q.dynamicChildren)=>{if(W===Q)return;W&&!Ws(W,Q)&&(lt=G(W),E(W,ct,dt,!0),W=null),Q.patchFlag===-2&&(bt=!1,Q.dynamicChildren=null);const{type:ut,ref:It,shapeFlag:Vt}=Q;switch(ut){case Kl:v(W,Q,ot,lt);break;case Wr:_(W,Q,ot,lt);break;case Uh:W==null?y(Q,ot,lt,$t):{}.NODE_ENV!=="production"&&m(W,Q,ot,$t);break;case kr:it(W,Q,ot,lt,ct,dt,$t,vt,bt);break;default:Vt&1?$(W,Q,ot,lt,ct,dt,$t,vt,bt):Vt&6?nt(W,Q,ot,lt,ct,dt,$t,vt,bt):Vt&64||Vt&128?ut.process(W,Q,ot,lt,ct,dt,$t,vt,bt,st):{}.NODE_ENV!=="production"&&Mt("Invalid VNode type:",ut,`(${typeof ut})`)}It!=null&&ct&&t0(It,W&&W.ref,dt,Q||W,!Q)},v=(W,Q,ot,lt)=>{if(W==null)n(Q.el=a(Q.children),ot,lt);else{const ct=Q.el=W.el;Q.children!==W.children&&l(ct,Q.children)}},_=(W,Q,ot,lt)=>{W==null?n(Q.el=c(Q.children||""),ot,lt):Q.el=W.el},y=(W,Q,ot,lt)=>{[W.el,W.anchor]=p(W.children,Q,ot,lt,W.el,W.anchor)},m=(W,Q,ot,lt)=>{if(Q.children!==W.children){const ct=f(W.anchor);N(W),[Q.el,Q.anchor]=p(Q.children,ot,ct,lt)}else Q.el=W.el,Q.anchor=W.anchor},x=({el:W,anchor:Q},ot,lt)=>{let ct;for(;W&&W!==Q;)ct=f(W),n(W,ot,lt),W=ct;n(Q,ot,lt)},N=({el:W,anchor:Q})=>{let ot;for(;W&&W!==Q;)ot=f(W),i(W),W=ot;i(Q)},$=(W,Q,ot,lt,ct,dt,$t,vt,bt)=>{Q.type==="svg"?$t="svg":Q.type==="math"&&($t="mathml"),W==null?k(Q,ot,lt,ct,dt,$t,vt,bt):U(W,Q,ct,dt,$t,vt,bt)},k=(W,Q,ot,lt,ct,dt,$t,vt)=>{let bt,ut;const{props:It,shapeFlag:Vt,transition:Ut,dirs:Kt}=W;if(bt=W.el=s(W.type,dt,It&&It.is,It),Vt&8?u(bt,W.children):Vt&16&&V(W.children,bt,null,lt,ct,e0(W,dt),$t,vt),Kt&&Ks(W,null,lt,"created"),D(bt,W,W.scopeId,$t,lt),It){for(const Yt in It)Yt!=="value"&&!Dl(Yt)&&o(bt,Yt,null,It[Yt],dt,W.children,lt,ct,I);"value"in It&&o(bt,"value",null,It.value,dt),(ut=It.onVnodeBeforeMount)&&Vi(ut,lt,W)}({}).NODE_ENV!=="production"&&(Object.defineProperty(bt,"__vnode",{value:W,enumerable:!1}),Object.defineProperty(bt,"__vueParentComponent",{value:lt,enumerable:!1})),Kt&&Ks(W,null,lt,"beforeMount");const oe=q6(ct,Ut);oe&&Ut.beforeEnter(bt),n(bt,Q,ot),((ut=It&&It.onVnodeMounted)||oe||Kt)&&Tn(()=>{ut&&Vi(ut,lt,W),oe&&Ut.enter(bt),Kt&&Ks(W,null,lt,"mounted")},ct)},D=(W,Q,ot,lt,ct)=>{if(ot&&d(W,ot),lt)for(let dt=0;dt<lt.length;dt++)d(W,lt[dt]);if(ct){let dt=ct.subTree;if({}.NODE_ENV!=="production"&&dt.patchFlag>0&&dt.patchFlag&2048&&(dt=Vp(dt.children)||dt),Q===dt){const $t=ct.vnode;D(W,$t,$t.scopeId,$t.slotScopeIds,ct.parent)}}},V=(W,Q,ot,lt,ct,dt,$t,vt,bt=0)=>{for(let ut=bt;ut<W.length;ut++){const It=W[ut]=vt?rs(W[ut]):bi(W[ut]);g(null,It,Q,ot,lt,ct,dt,$t,vt)}},U=(W,Q,ot,lt,ct,dt,$t)=>{const vt=Q.el=W.el;let{patchFlag:bt,dynamicChildren:ut,dirs:It}=Q;bt|=W.patchFlag&16;const Vt=W.props||nr,Ut=Q.props||nr;let Kt;if(ot&&Xs(ot,!1),(Kt=Ut.onVnodeBeforeUpdate)&&Vi(Kt,ot,Q,W),It&&Ks(Q,W,ot,"beforeUpdate"),ot&&Xs(ot,!0),{}.NODE_ENV!=="production"&&Bs&&(bt=0,$t=!1,ut=null),ut?(K(W.dynamicChildren,ut,vt,ot,lt,e0(Q,ct),dt),{}.NODE_ENV!=="production"&&Vh(W,Q)):$t||at(W,Q,vt,null,ot,lt,e0(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 oe=Q.dynamicProps;for(let Yt=0;Yt<oe.length;Yt++){const me=oe[Yt],Ve=Vt[me],ar=Ut[me];(ar!==Ve||me==="value")&&o(vt,me,Ve,ar,ct,W.children,ot,lt,I)}}bt&1&&W.children!==Q.children&&u(vt,Q.children)}else!$t&&ut==null&&Y(vt,Q,Vt,Ut,ot,lt,ct);((Kt=Ut.onVnodeUpdated)||It)&&Tn(()=>{Kt&&Vi(Kt,ot,Q,W),It&&Ks(Q,W,ot,"updated")},lt)},K=(W,Q,ot,lt,ct,dt,$t)=>{for(let vt=0;vt<Q.length;vt++){const bt=W[vt],ut=Q[vt],It=bt.el&&(bt.type===kr||!Ws(bt,ut)||bt.shapeFlag&70)?h(bt.el):ot;g(bt,ut,It,null,lt,ct,dt,$t,!0)}},Y=(W,Q,ot,lt,ct,dt,$t)=>{if(ot!==lt){if(ot!==nr)for(const vt in ot)!Dl(vt)&&!(vt in lt)&&o(W,vt,ot[vt],null,$t,Q.children,ct,dt,I);for(const vt in lt){if(Dl(vt))continue;const bt=lt[vt],ut=ot[vt];bt!==ut&&vt!=="value"&&o(W,vt,ut,bt,$t,Q.children,ct,dt,I)}"value"in lt&&o(W,"value",ot.value,lt.value,$t)}},it=(W,Q,ot,lt,ct,dt,$t,vt,bt)=>{const ut=Q.el=W?W.el:a(""),It=Q.anchor=W?W.anchor:a("");let{patchFlag:Vt,dynamicChildren:Ut,slotScopeIds:Kt}=Q;({}).NODE_ENV!=="production"&&(Bs||Vt&2048)&&(Vt=0,bt=!1,Ut=null),Kt&&(vt=vt?vt.concat(Kt):Kt),W==null?(n(ut,ot,lt),n(It,ot,lt),V(Q.children||[],ot,It,ct,dt,$t,vt,bt)):Vt>0&&Vt&64&&Ut&&W.dynamicChildren?(K(W.dynamicChildren,Ut,ot,ct,dt,$t,vt),{}.NODE_ENV!=="production"?Vh(W,Q):(Q.key!=null||ct&&Q===ct.subTree)&&Vh(W,Q,!0)):at(W,Q,ot,It,ct,dt,$t,vt,bt)},nt=(W,Q,ot,lt,ct,dt,$t,vt,bt)=>{Q.slotScopeIds=vt,W==null?Q.shapeFlag&512?ct.ctx.activate(Q,ot,lt,$t,bt):ft(Q,ot,lt,ct,dt,$t,bt):xt(W,Q,bt)},ft=(W,Q,ot,lt,ct,dt,$t)=>{const vt=W.component=tO(W,lt,ct);if({}.NODE_ENV!=="production"&&vt.type.__hmrId&&VT(vt),{}.NODE_ENV!=="production"&&(Ph(W),go(vt,"mount")),Gl(W)&&(vt.ctx.renderer=st),{}.NODE_ENV!=="production"&&go(vt,"init"),rO(vt),{}.NODE_ENV!=="production"&&vo(vt,"init"),vt.asyncDep){if(ct&&ct.registerDep(vt,_t),!W.el){const bt=vt.subTree=cr(Wr);_(null,bt,Q,ot)}}else _t(vt,W,Q,ot,ct,dt,$t);({}).NODE_ENV!=="production"&&(Th(),vo(vt,"mount"))},xt=(W,Q,ot)=>{const lt=Q.component=W.component;if(e6(W,Q,ot))if(lt.asyncDep&&!lt.asyncResolved){({}).NODE_ENV!=="production"&&Ph(Q),yt(lt,Q,ot),{}.NODE_ENV!=="production"&&Th();return}else lt.next=Q,MT(lt.update),lt.effect.dirty=!0,lt.update();else Q.el=W.el,lt.vnode=Q},_t=(W,Q,ot,lt,ct,dt,$t)=>{const vt=()=>{if(W.isMounted){let{next:It,bu:Vt,u:Ut,parent:Kt,vnode:oe}=W;{const wr=wb(W);if(wr){It&&(It.el=oe.el,yt(W,It,$t)),wr.asyncDep.then(()=>{W.isUnmounted||vt()});return}}let Yt=It,me;({}).NODE_ENV!=="production"&&Ph(It||W.vnode),Xs(W,!1),It?(It.el=oe.el,yt(W,It,$t)):It=oe,Vt&&Rl(Vt),(me=It.props&&It.props.onVnodeBeforeUpdate)&&Vi(me,Kt,It,oe),Xs(W,!0),{}.NODE_ENV!=="production"&&go(W,"render");const Ve=Lp(W);({}).NODE_ENV!=="production"&&vo(W,"render");const ar=W.subTree;W.subTree=Ve,{}.NODE_ENV!=="production"&&go(W,"patch"),g(ar,Ve,h(ar.el),G(ar),W,ct,dt),{}.NODE_ENV!=="production"&&vo(W,"patch"),It.el=Ve.el,Yt===null&&r6(W,Ve.el),Ut&&Tn(Ut,ct),(me=It.props&&It.props.onVnodeUpdated)&&Tn(()=>Vi(me,Kt,It,oe),ct),{}.NODE_ENV!=="production"&&F_(W),{}.NODE_ENV!=="production"&&Th()}else{let It;const{el:Vt,props:Ut}=Q,{bm:Kt,m:oe,parent:Yt}=W,me=zl(Q);if(Xs(W,!1),Kt&&Rl(Kt),!me&&(It=Ut&&Ut.onVnodeBeforeMount)&&Vi(It,Yt,Q),Xs(W,!0),Vt&&Lt){const Ve=()=>{({}).NODE_ENV!=="production"&&go(W,"render"),W.subTree=Lp(W),{}.NODE_ENV!=="production"&&vo(W,"render"),{}.NODE_ENV!=="production"&&go(W,"hydrate"),Lt(Vt,W.subTree,W,ct,null),{}.NODE_ENV!=="production"&&vo(W,"hydrate")};me?Q.type.__asyncLoader().then(()=>!W.isUnmounted&&Ve()):Ve()}else{({}).NODE_ENV!=="production"&&go(W,"render");const Ve=W.subTree=Lp(W);({}).NODE_ENV!=="production"&&vo(W,"render"),{}.NODE_ENV!=="production"&&go(W,"patch"),g(null,Ve,ot,lt,W,ct,dt),{}.NODE_ENV!=="production"&&vo(W,"patch"),Q.el=Ve.el}if(oe&&Tn(oe,ct),!me&&(It=Ut&&Ut.onVnodeMounted)){const Ve=Q;Tn(()=>Vi(It,Yt,Ve),ct)}(Q.shapeFlag&256||Yt&&zl(Yt.vnode)&&Yt.vnode.shapeFlag&256)&&W.a&&Tn(W.a,ct),W.isMounted=!0,{}.NODE_ENV!=="production"&&qT(W),Q=ot=lt=null}},bt=W.effect=new bp(vt,Nr,()=>Oh(ut),W.scope),ut=W.update=()=>{bt.dirty&&bt.run()};ut.id=W.uid,Xs(W,!0),{}.NODE_ENV!=="production"&&(bt.onTrack=W.rtc?It=>Rl(W.rtc,It):void 0,bt.onTrigger=W.rtg?It=>Rl(W.rtg,It):void 0,ut.ownerInstance=W),ut()},yt=(W,Q,ot)=>{Q.component=W;const lt=W.vnode.props;W.vnode=Q,W.next=null,R6(W,Q.props,lt,ot),z6(W,Q.children,ot),ao(),N_(W),lo()},at=(W,Q,ot,lt,ct,dt,$t,vt,bt=!1)=>{const ut=W&&W.children,It=W?W.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=(W,Q,ot,lt,ct,dt,$t,vt,bt)=>{W=W||Ua,Q=Q||Ua;const ut=W.length,It=Q.length,Vt=Math.min(ut,It);let Ut;for(Ut=0;Ut<Vt;Ut++){const Kt=Q[Ut]=bt?rs(Q[Ut]):bi(Q[Ut]);g(W[Ut],Kt,ot,null,ct,dt,$t,vt,bt)}ut>It?I(W,ct,dt,!0,!1,Vt):V(Q,ot,lt,ct,dt,$t,vt,bt,Vt)},O=(W,Q,ot,lt,ct,dt,$t,vt,bt)=>{let ut=0;const It=Q.length;let Vt=W.length-1,Ut=It-1;for(;ut<=Vt&&ut<=Ut;){const Kt=W[ut],oe=Q[ut]=bt?rs(Q[ut]):bi(Q[ut]);if(Ws(Kt,oe))g(Kt,oe,ot,null,ct,dt,$t,vt,bt);else break;ut++}for(;ut<=Vt&&ut<=Ut;){const Kt=W[Vt],oe=Q[Ut]=bt?rs(Q[Ut]):bi(Q[Ut]);if(Ws(Kt,oe))g(Kt,oe,ot,null,ct,dt,$t,vt,bt);else break;Vt--,Ut--}if(ut>Vt){if(ut<=Ut){const Kt=Ut+1,oe=Kt<It?Q[Kt].el:lt;for(;ut<=Ut;)g(null,Q[ut]=bt?rs(Q[ut]):bi(Q[ut]),ot,oe,ct,dt,$t,vt,bt),ut++}}else if(ut>Ut)for(;ut<=Vt;)E(W[ut],ct,dt,!0),ut++;else{const Kt=ut,oe=ut,Yt=new Map;for(ut=oe;ut<=Ut;ut++){const he=Q[ut]=bt?rs(Q[ut]):bi(Q[ut]);he.key!=null&&({}.NODE_ENV!=="production"&&Yt.has(he.key)&&Mt("Duplicate keys found during update:",JSON.stringify(he.key),"Make sure keys are unique."),Yt.set(he.key,ut))}let me,Ve=0;const ar=Ut-oe+1;let wr=!1,hr=0;const zr=new Array(ar);for(ut=0;ut<ar;ut++)zr[ut]=0;for(ut=Kt;ut<=Vt;ut++){const he=W[ut];if(Ve>=ar){E(he,ct,dt,!0);continue}let gr;if(he.key!=null)gr=Yt.get(he.key);else for(me=oe;me<=Ut;me++)if(zr[me-oe]===0&&Ws(he,Q[me])){gr=me;break}gr===void 0?E(he,ct,dt,!0):(zr[gr-oe]=ut+1,gr>=hr?hr=gr:wr=!0,g(he,Q[gr],ot,null,ct,dt,$t,vt,bt),Ve++)}const ln=wr?K6(zr):Ua;for(me=ln.length-1,ut=ar-1;ut>=0;ut--){const he=oe+ut,gr=Q[he],Gr=he+1<It?Q[he+1].el:lt;zr[ut]===0?g(null,gr,ot,Gr,ct,dt,$t,vt,bt):wr&&(me<0||ut!==ln[me]?C(gr,ot,Gr,2):me--)}}},C=(W,Q,ot,lt,ct=null)=>{const{el:dt,type:$t,transition:vt,children:bt,shapeFlag:ut}=W;if(ut&6){C(W.component.subTree,Q,ot,lt);return}if(ut&128){W.suspense.move(Q,ot,lt);return}if(ut&64){$t.move(W,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(W.anchor,Q,ot);return}if($t===Uh){x(W,Q,ot);return}if(lt!==2&&ut&1&&vt)if(lt===0)vt.beforeEnter(dt),n(dt,Q,ot),Tn(()=>vt.enter(dt),ct);else{const{leave:Vt,delayLeave:Ut,afterLeave:Kt}=vt,oe=()=>n(dt,Q,ot),Yt=()=>{Vt(dt,()=>{oe(),Kt&&Kt()})};Ut?Ut(dt,oe,Yt):Yt()}else n(dt,Q,ot)},E=(W,Q,ot,lt=!1,ct=!1)=>{const{type:dt,props:$t,ref:vt,children:bt,dynamicChildren:ut,shapeFlag:It,patchFlag:Vt,dirs:Ut}=W;if(vt!=null&&t0(vt,null,ot,W,!0),It&256){Q.ctx.deactivate(W);return}const Kt=It&1&&Ut,oe=!zl(W);let Yt;if(oe&&(Yt=$t&&$t.onVnodeBeforeUnmount)&&Vi(Yt,Q,W),It&6)M(W.component,ot,lt);else{if(It&128){W.suspense.unmount(ot,lt);return}Kt&&Ks(W,null,Q,"beforeUnmount"),It&64?W.type.remove(W,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&&b(W)}(oe&&(Yt=$t&&$t.onVnodeUnmounted)||Kt)&&Tn(()=>{Yt&&Vi(Yt,Q,W),Kt&&Ks(W,null,Q,"unmounted")},ot)},b=W=>{const{type:Q,el:ot,anchor:lt,transition:ct}=W;if(Q===kr){({}).NODE_ENV!=="production"&&W.patchFlag>0&&W.patchFlag&2048&&ct&&!ct.persisted?W.children.forEach($t=>{$t.type===Wr?i($t.el):b($t)}):P(ot,lt);return}if(Q===Uh){N(W);return}const dt=()=>{i(ot),ct&&!ct.persisted&&ct.afterLeave&&ct.afterLeave()};if(W.shapeFlag&1&&ct&&!ct.persisted){const{leave:$t,delayLeave:vt}=ct,bt=()=>$t(ot,dt);vt?vt(W.el,dt,bt):bt()}else dt()},P=(W,Q)=>{let ot;for(;W!==Q;)ot=f(W),i(W),W=ot;i(Q)},M=(W,Q,ot)=>{({}).NODE_ENV!=="production"&&W.type.__hmrId&&UT(W);const{bum:lt,scope:ct,update:dt,subTree:$t,um:vt}=W;lt&&Rl(lt),ct.stop(),dt&&(dt.active=!1,E($t,W,Q,ot)),vt&&Tn(vt,Q),Tn(()=>{W.isUnmounted=!0},Q),Q&&Q.pendingBranch&&!Q.isUnmounted&&W.asyncDep&&!W.asyncResolved&&W.suspenseId===Q.pendingId&&(Q.deps--,Q.deps===0&&Q.resolve()),{}.NODE_ENV!=="production"&&YT(W)},I=(W,Q,ot,lt=!1,ct=!1,dt=0)=>{for(let $t=dt;$t<W.length;$t++)E(W[$t],Q,ot,lt,ct)},G=W=>W.shapeFlag&6?G(W.component.subTree):W.shapeFlag&128?W.suspense.next():f(W.anchor||W.el);let q=!1;const et=(W,Q,ot)=>{W==null?Q._vnode&&E(Q._vnode,null,null,!0):g(Q._vnode||null,W,Q,null,null,null,ot),q||(q=!0,N_(),A_(),q=!1),Q._vnode=W},st={p:g,um:E,m:C,r:b,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:N6(et,mt)}}function e0({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 Xs({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function q6(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Vh(e,t,r=!1){const n=e.children,i=t.children;if(ae(n)&&ae(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]=rs(i[o]),a.el=s.el),r||Vh(s,a)),a.type===Kl&&(a.el=s.el),{}.NODE_ENV!=="production"&&a.type===Wr&&!a.el&&(a.el=s.el)}}function K6(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 wb(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:wb(t)}const Y6=e=>e.__isTeleport,kr=Symbol.for("v-fgt"),Kl=Symbol.for("v-txt"),Wr=Symbol.for("v-cmt"),Uh=Symbol.for("v-stc"),Yl=[];let yi=null;function Se(e=!1){Yl.push(yi=e?null:[])}function X6(){Yl.pop(),yi=Yl[Yl.length-1]||null}let Xl=1;function xb(e){Xl+=e}function Sb(e){return e.dynamicChildren=Xl>0?yi||Ua:null,X6(),Xl>0&&yi&&yi.push(e),e}function xr(e,t,r,n,i,o){return Sb(qe(e,t,r,n,i,o,!0))}function Lr(e,t,r,n,i){return Sb(cr(e,t,r,n,i,!0))}function Ka(e){return e?e.__v_isVNode===!0:!1}function Ws(e,t){return{}.NODE_ENV!=="production"&&t.shapeFlag&6&&Ba.has(t.type)?(e.shapeFlag&=-257,t.shapeFlag&=-513,!1):e.type===t.type&&e.key===t.key}const W6=(...e)=>Eb(...e),$b=({key:e})=>e??null,zh=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Cr(e)||nn(e)||ge(e)?{i:Fr,r:e,k:t,f:!!r}:e:null);function qe(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&&$b(t),ref:t&&zh(t),scopeId:V_,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:Fr};return a?(r0(c,r),o&128&&e.normalize(c)):r&&(c.shapeFlag|=Cr(r)?8:16),{}.NODE_ENV!=="production"&&c.key!==c.key&&Mt("VNode created with invalid key (NaN). VNode type:",c.type),Xl>0&&!s&&yi&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&yi.push(c),c}const cr={}.NODE_ENV!=="production"?W6:Eb;function Eb(e,t=null,r=null,n=0,i=null,o=!1){if((!e||e===n6)&&({}.NODE_ENV!=="production"&&!e&&Mt(`Invalid vnode type when creating vnode: ${e}.`),e=Wr),Ka(e)){const a=_i(e,t,!0);return r&&r0(a,r),Xl>0&&!o&&yi&&(a.shapeFlag&6?yi[yi.indexOf(e)]=a:yi.push(a)),a.patchFlag|=-2,a}if(Rb(e)&&(e=e.__vccOpts),t){t=J6(t);let{class:a,style:c}=t;a&&!Cr(a)&&(t.class=yp(a)),Je(c)&&(Tp(c)&&!ae(c)&&(c=pr({},c)),t.style=Te(c))}const s=Cr(e)?1:i6(e)?128:Y6(e)?64:Je(e)?4:ge(e)?2:0;return{}.NODE_ENV!=="production"&&s&4&&Tp(e)&&(e=ee(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: `,e)),qe(e,t,r,n,i,s,o,!0)}function J6(e){return e?Tp(e)||cb(e)?pr({},e):e:null}function _i(e,t,r=!1){const{props:n,ref:i,patchFlag:o,children:s}=e,a=t?n0(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&$b(a),ref:t&&t.ref?r&&i?ae(i)?i.concat(zh(t)):[i,zh(t)]:zh(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:{}.NODE_ENV!=="production"&&o===-1&&ae(s)?s.map(Cb):s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==kr?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&_i(e.ssContent),ssFallback:e.ssFallback&&_i(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Cb(e){const t=_i(e);return ae(e.children)&&(t.children=e.children.map(Cb)),t}function yo(e=" ",t=0){return cr(Kl,null,e,t)}function Vr(e="",t=!1){return t?(Se(),Lr(Wr,null,e)):cr(Wr,null,e)}function bi(e){return e==null||typeof e=="boolean"?cr(Wr):ae(e)?cr(kr,null,e.slice()):typeof e=="object"?rs(e):cr(Kl,null,String(e))}function rs(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:_i(e)}function r0(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(ae(t))r=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),r0(e,i()),i._c&&(i._d=!0));return}else{r=32;const i=t._;!i&&!cb(t)?t._ctx=Fr:i===3&&Fr&&(Fr.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ge(t)?(t={default:t,_ctx:Fr},r=32):(t=String(t),n&64?(r=16,t=[yo(t)]):r=8);e.children=t,e.shapeFlag|=r}function n0(...e){const t={};for(let r=0;r<e.length;r++){const n=e[r];for(const i in n)if(i==="class")t.class!==n.class&&(t.class=yp([t.class,n.class]));else if(i==="style")t.style=Te([t.style,n.style]);else if(Al(i)){const o=t[i],s=n[i];s&&o!==s&&!(ae(o)&&o.includes(s))&&(t[i]=o?[].concat(o,s):s)}else i!==""&&(t[i]=n[i])}return t}function Vi(e,t,r,n=null){Zn(e,t,7,[r,n])}const Q6=sb();let Z6=0;function tO(e,t,r){const n=e.type,i=(t?t.appContext:e.appContext)||Q6,o={uid:Z6++,vnode:e,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new eT(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:hb(n,i),emitsOptions:L_(n,i),emit:null,emitted:null,propsDefaults:nr,inheritAttrs:n.inheritAttrs,ctx:nr,data:nr,props:nr,attrs:nr,slots:nr,refs:nr,setupState:nr,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:r,suspenseId:r?r.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"?o.ctx=w6(o):o.ctx={_:o},o.root=t?t.root:o,o.emit=QT.bind(null,o),e.ce&&e.ce(o),o}let Jr=null;const kb=()=>Jr||Fr;let Gh,i0;{const e=vp(),t=(r,n)=>{let i;return(i=e[r])||(i=e[r]=[]),i.push(n),o=>{i.length>1?i.forEach(s=>s(o)):i[0](o)}};Gh=t("__VUE_INSTANCE_SETTERS__",r=>Jr=r),i0=t("__VUE_SSR_SETTERS__",r=>Bh=r)}const Wl=e=>{const t=Jr;return Gh(e),e.scope.on(),()=>{e.scope.off(),Gh(t)}},Pb=()=>{Jr&&Jr.scope.off(),Gh(null)},eO=ji("slot,component");function o0(e,{isNativeTag:t}){(eO(e)||t(e))&&Mt("Do not use built-in or reserved HTML elements as component id: "+e)}function Tb(e){return e.vnode.shapeFlag&4}let Bh=!1;function rO(e,t=!1){t&&i0(t);const{props:r,children:n}=e.vnode,i=Tb(e);A6(e,r,i,t),U6(e,n);const o=i?nO(e,t):void 0;return t&&i0(!1),o}function nO(e,t){var r;const n=e.type;if({}.NODE_ENV!=="production"){if(n.name&&o0(n.name,e.appContext.config),n.components){const o=Object.keys(n.components);for(let s=0;s<o.length;s++)o0(o[s],e.appContext.config)}if(n.directives){const o=Object.keys(n.directives);for(let s=0;s<o.length;s++)H_(o[s])}n.compilerOptions&&iO()&&Mt('"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.')}e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,tb),{}.NODE_ENV!=="production"&&x6(e);const{setup:i}=n;if(i){const o=e.setupContext=i.length>1?sO(e):null,s=Wl(e);ao();const a=uo(i,e,0,[{}.NODE_ENV!=="production"?co(e.props):e.props,o]);if(lo(),s(),fp(a)){if(a.then(Pb,Pb),t)return a.then(c=>{Ob(e,c,t)}).catch(c=>{jl(c,e,0)});if(e.asyncDep=a,{}.NODE_ENV!=="production"&&!e.suspense){const c=(r=n.name)!=null?r:"Anonymous";Mt(`Component <${c}>: 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 Ob(e,a,t)}else Nb(e,t)}function Ob(e,t,r){ge(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Je(t)?({}.NODE_ENV!=="production"&&Ka(t)&&Mt("setup() should not return VNodes directly - return a render function instead."),{}.NODE_ENV!=="production"&&(e.devtoolsRawSetupState=t),e.setupState=C_(t),{}.NODE_ENV!=="production"&&S6(e)):{}.NODE_ENV!=="production"&&t!==void 0&&Mt(`setup() should return an object. Received: ${t===null?"null":typeof t}`),Nb(e,r)}let s0;const iO=()=>!s0;function Nb(e,t,r){const n=e.type;if(!e.render){if(!t&&s0&&!n.render){const i=n.template||Xp(e).template;if(i){({}).NODE_ENV!=="production"&&go(e,"compile");const{isCustomElement:o,compilerOptions:s}=e.appContext.config,{delimiters:a,compilerOptions:c}=n,l=pr(pr({isCustomElement:o,delimiters:a},s),c);n.render=s0(i,l),{}.NODE_ENV!=="production"&&vo(e,"compile")}}e.render=n.render||Nr}{const i=Wl(e);ao();try{E6(e)}finally{lo(),i()}}({}).NODE_ENV!=="production"&&!n.render&&e.render===Nr&&!t&&(n.template?Mt('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".'):Mt("Component is missing template or render function."))}const Ab={}.NODE_ENV!=="production"?{get(e,t){return Dh(),rn(e,"get",""),e[t]},set(){return Mt("setupContext.attrs is readonly."),!1},deleteProperty(){return Mt("setupContext.attrs is readonly."),!1}}:{get(e,t){return rn(e,"get",""),e[t]}};function oO(e){return e.slotsProxy||(e.slotsProxy=new Proxy(e.slots,{get(t,r){return rn(e,"get","$slots"),t[r]}}))}function sO(e){const t=r=>{if({}.NODE_ENV!=="production"&&(e.exposed&&Mt("expose() should be called only once per setup()."),r!=null)){let n=typeof r;n==="object"&&(ae(r)?n="array":nn(r)&&(n="ref")),n!=="object"&&Mt(`expose() should be passed a plain object, received ${n}.`)}e.exposed=r||{}};if({}.NODE_ENV!=="production"){let r;return Object.freeze({get attrs(){return r||(r=new Proxy(e.attrs,Ab))},get slots(){return oO(e)},get emit(){return(n,...i)=>e.emit(n,...i)},expose:t})}else return{attrs:new Proxy(e.attrs,Ab),slots:e.slots,emit:e.emit,expose:t}}function Hh(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(C_($T(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Ys)return Ys[r](e)},has(t,r){return r in t||r in Ys}}))}const aO=/(?:^|[-_])(\w)/g,lO=e=>e.replace(aO,t=>t.toUpperCase()).replace(/[-_]/g,"");function Db(e,t=!0){return ge(e)?e.displayName||e.name:e.name||t&&e.__name}function qh(e,t,r=!1){let n=Db(t);if(!n&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(n=i[1])}if(!n&&e&&e.parent){const i=o=>{for(const s in o)if(o[s]===t)return s};n=i(e.components||e.parent.type.components)||i(e.appContext.components)}return n?lO(n):r?"App":"Anonymous"}function Rb(e){return ge(e)&&"__vccOpts"in e}const pe=(e,t)=>{const r=CT(e,t,Bh);if({}.NODE_ENV!=="production"){const n=kb();n&&n.appContext.config.warnRecursiveComputed&&(r._warnRecursive=!0)}return r};function zn(e,t,r){const n=arguments.length;return n===2?Je(t)&&!ae(t)?Ka(t)?cr(e,null,[t]):cr(e,t):cr(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&Ka(r)&&(r=[r]),cr(e,t,r))}function cO(){if({}.NODE_ENV==="production"||typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#1677ff"},r={style:"color:#f5222d"},n={style:"color:#eb2f96"},i={header(h){return Je(h)?h.__isVue?["div",e,"VueInstance"]:nn(h)?["div",{},["span",e,u(h)],"<",a(h.value),">"]:za(h)?["div",{},["span",e,zs(h)?"ShallowReactive":"Reactive"],"<",a(h),`>${Us(h)?" (readonly)":""}`]:Us(h)?["div",{},["span",e,zs(h)?"ShallowReadonly":"Readonly"],"<",a(h),">"]:null:null},hasBody(h){return h&&h.__isVue},body(h){if(h&&h.__isVue)return["div",{},...o(h.$)]}};function o(h){const f=[];h.type.props&&h.props&&f.push(s("props",ee(h.props))),h.setupState!==nr&&f.push(s("setup",h.setupState)),h.data!==nr&&f.push(s("data",ee(h.data)));const d=c(h,"computed");d&&f.push(s("computed",d));const p=c(h,"inject");return p&&f.push(s("injected",p)),f.push(["div",{},["span",{style:n.style+";opacity:0.66"},"$ (internal): "],["object",{object:h}]]),f}function s(h,f){return f=pr({},f),Object.keys(f).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},h],["div",{style:"padding-left:1.25em"},...Object.keys(f).map(d=>["div",{},["span",n,d+": "],a(f[d],!1)])]]:["span",{}]}function a(h,f=!0){return typeof h=="number"?["span",t,h]:typeof h=="string"?["span",r,JSON.stringify(h)]:typeof h=="boolean"?["span",n,h]:Je(h)?["object",{object:f?ee(h):h}]:["span",r,String(h)]}function c(h,f){const d=h.type;if(ge(d))return;const p={};for(const g in h.ctx)l(d,g,f)&&(p[g]=h.ctx[g]);return p}function l(h,f,d){const p=h[d];if(ae(p)&&p.includes(f)||Je(p)&&f in p||h.extends&&l(h.extends,f,d)||h.mixins&&h.mixins.some(g=>l(g,f,d)))return!0}function u(h){return zs(h)?"ShallowRef":h.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(i):window.devtoolsFormatters=[i]}const Ib="3.4.25",Kh={}.NODE_ENV!=="production"?Mt:Nr;/**
21
+ For more details, see https://link.vuejs.org/feature-flags.`)}}const He=Id;function gp(e){return vp(e)}function vp(e,t){mp();const n=fo();n.__VUE__=!0,{}.NODE_ENV!=="production"&&Kl(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:i,remove:r,patchProp:s,createElement:o,createText:a,createComment:l,setText:p,setElementText:m,parentNode:g,nextSibling:d,setScopeId:_=Ce,insertStaticContent:N}=e,C=(O,D,B,X=null,Q=null,K=null,pt=void 0,nt=null,ft={}.NODE_ENV!=="production"&&_i?!1:!!D.dynamicChildren)=>{if(O===D)return;O&&!kr(O,D)&&(X=rt(O),x(O,Q,K,!0),O=null),D.patchFlag===-2&&(ft=!1,D.dynamicChildren=null);const{type:tt,ref:bt,shapeFlag:Tt}=D;switch(tt){case wr:M(O,D,B,X);break;case Ue:z(O,D,B,X);break;case vs:O==null?P(D,B,X,pt):{}.NODE_ENV!=="production"&&$(O,D,B,pt);break;case ve:It(O,D,B,X,Q,K,pt,nt,ft);break;default:Tt&1?J(O,D,B,X,Q,K,pt,nt,ft):Tt&6?kt(O,D,B,X,Q,K,pt,nt,ft):Tt&64||Tt&128?tt.process(O,D,B,X,Q,K,pt,nt,ft,yt):{}.NODE_ENV!=="production"&&wt("Invalid VNode type:",tt,`(${typeof tt})`)}bt!=null&&Q&&qo(bt,O&&O.ref,K,D||O,!D)},M=(O,D,B,X)=>{if(O==null)i(D.el=a(D.children),B,X);else{const Q=D.el=O.el;D.children!==O.children&&p(Q,D.children)}},z=(O,D,B,X)=>{O==null?i(D.el=l(D.children||""),B,X):D.el=O.el},P=(O,D,B,X)=>{[O.el,O.anchor]=N(O.children,D,B,X,O.el,O.anchor)},$=(O,D,B,X)=>{if(D.children!==O.children){const Q=d(O.anchor);Y(O),[D.el,D.anchor]=N(D.children,B,Q,X)}else D.el=O.el,D.anchor=O.anchor},H=({el:O,anchor:D},B,X)=>{let Q;for(;O&&O!==D;)Q=d(O),i(O,B,X),O=Q;i(D,B,X)},Y=({el:O,anchor:D})=>{let B;for(;O&&O!==D;)B=d(O),r(O),O=B;r(D)},J=(O,D,B,X,Q,K,pt,nt,ft)=>{D.type==="svg"?pt="svg":D.type==="math"&&(pt="mathml"),O==null?V(D,B,X,Q,K,pt,nt,ft):Pt(O,D,Q,K,pt,nt,ft)},V=(O,D,B,X,Q,K,pt,nt)=>{let ft,tt;const{props:bt,shapeFlag:Tt,transition:Mt,dirs:Vt}=O;if(ft=O.el=o(O.type,K,bt&&bt.is,bt),Tt&8?m(ft,O.children):Tt&16&&_t(O.children,ft,null,X,Q,Yo(O,K),pt,nt),Vt&&wi(O,null,X,"created"),ht(ft,O,O.scopeId,pt,X),bt){for(const ee in bt)ee!=="value"&&!ar(ee)&&s(ft,ee,null,bt[ee],K,O.children,X,Q,F);"value"in bt&&s(ft,"value",null,bt.value,K),(tt=bt.onVnodeBeforeMount)&&bn(tt,X,O)}({}).NODE_ENV!=="production"&&(Object.defineProperty(ft,"__vnode",{value:O,enumerable:!1}),Object.defineProperty(ft,"__vueParentComponent",{value:X,enumerable:!1})),Vt&&wi(O,null,X,"beforeMount");const Bt=yp(Q,Mt);Bt&&Mt.beforeEnter(ft),i(ft,D,B),((tt=bt&&bt.onVnodeMounted)||Bt||Vt)&&He(()=>{tt&&bn(tt,X,O),Bt&&Mt.enter(ft),Vt&&wi(O,null,X,"mounted")},Q)},ht=(O,D,B,X,Q)=>{if(B&&_(O,B),X)for(let K=0;K<X.length;K++)_(O,X[K]);if(Q){let K=Q.subTree;if({}.NODE_ENV!=="production"&&K.patchFlag>0&&K.patchFlag&2048&&(K=Do(K.children)||K),D===K){const pt=Q.vnode;ht(O,pt,pt.scopeId,pt.slotScopeIds,Q.parent)}}},_t=(O,D,B,X,Q,K,pt,nt,ft=0)=>{for(let tt=ft;tt<O.length;tt++){const bt=O[tt]=nt?ei(O[tt]):dn(O[tt]);C(null,bt,D,B,X,Q,K,pt,nt)}},Pt=(O,D,B,X,Q,K,pt)=>{const nt=D.el=O.el;let{patchFlag:ft,dynamicChildren:tt,dirs:bt}=D;ft|=O.patchFlag&16;const Tt=O.props||ce,Mt=D.props||ce;let Vt;if(B&&Ci(B,!1),(Vt=Mt.onVnodeBeforeUpdate)&&bn(Vt,B,D,O),bt&&wi(D,O,B,"beforeUpdate"),B&&Ci(B,!0),{}.NODE_ENV!=="production"&&_i&&(ft=0,pt=!1,tt=null),tt?(Et(O.dynamicChildren,tt,nt,B,X,Yo(D,Q),K),{}.NODE_ENV!=="production"&&gs(O,D)):pt||at(O,D,nt,null,B,X,Yo(D,Q),K,!1),ft>0){if(ft&16)vt(nt,D,Tt,Mt,B,X,Q);else if(ft&2&&Tt.class!==Mt.class&&s(nt,"class",null,Mt.class,Q),ft&4&&s(nt,"style",Tt.style,Mt.style,Q),ft&8){const Bt=D.dynamicProps;for(let ee=0;ee<Bt.length;ee++){const re=Bt[ee],le=Tt[re],we=Mt[re];(we!==le||re==="value")&&s(nt,re,le,we,Q,O.children,B,X,F)}}ft&1&&O.children!==D.children&&m(nt,D.children)}else!pt&&tt==null&&vt(nt,D,Tt,Mt,B,X,Q);((Vt=Mt.onVnodeUpdated)||bt)&&He(()=>{Vt&&bn(Vt,B,D,O),bt&&wi(D,O,B,"updated")},X)},Et=(O,D,B,X,Q,K,pt)=>{for(let nt=0;nt<D.length;nt++){const ft=O[nt],tt=D[nt],bt=ft.el&&(ft.type===ve||!kr(ft,tt)||ft.shapeFlag&70)?g(ft.el):B;C(ft,tt,bt,null,X,Q,K,pt,!0)}},vt=(O,D,B,X,Q,K,pt)=>{if(B!==X){if(B!==ce)for(const nt in B)!ar(nt)&&!(nt in X)&&s(O,nt,B[nt],null,pt,D.children,Q,K,F);for(const nt in X){if(ar(nt))continue;const ft=X[nt],tt=B[nt];ft!==tt&&nt!=="value"&&s(O,nt,tt,ft,pt,D.children,Q,K,F)}"value"in X&&s(O,"value",B.value,X.value,pt)}},It=(O,D,B,X,Q,K,pt,nt,ft)=>{const tt=D.el=O?O.el:a(""),bt=D.anchor=O?O.anchor:a("");let{patchFlag:Tt,dynamicChildren:Mt,slotScopeIds:Vt}=D;({}).NODE_ENV!=="production"&&(_i||Tt&2048)&&(Tt=0,ft=!1,Mt=null),Vt&&(nt=nt?nt.concat(Vt):Vt),O==null?(i(tt,B,X),i(bt,B,X),_t(D.children||[],B,bt,Q,K,pt,nt,ft)):Tt>0&&Tt&64&&Mt&&O.dynamicChildren?(Et(O.dynamicChildren,Mt,B,Q,K,pt,nt),{}.NODE_ENV!=="production"?gs(O,D):(D.key!=null||Q&&D===Q.subTree)&&gs(O,D,!0)):at(O,D,B,bt,Q,K,pt,nt,ft)},kt=(O,D,B,X,Q,K,pt,nt,ft)=>{D.slotScopeIds=nt,O==null?D.shapeFlag&512?Q.ctx.activate(D,B,X,pt,ft):Ut(D,B,X,Q,K,pt,ft):jt(O,D,ft)},Ut=(O,D,B,X,Q,K,pt)=>{const nt=O.component=Sp(O,X,Q);if({}.NODE_ENV!=="production"&&nt.type.__hmrId&&ud(nt),{}.NODE_ENV!=="production"&&(ns(O),Mn(nt,"mount")),Ro(O)&&(nt.ctx.renderer=yt),{}.NODE_ENV!=="production"&&Mn(nt,"init"),Op(nt),{}.NODE_ENV!=="production"&&An(nt,"init"),nt.asyncDep){if(Q&&Q.registerDep(nt,Ot),!O.el){const ft=nt.subTree=Jt(Ue);z(null,ft,D,B)}}else Ot(nt,O,D,B,Q,K,pt);({}).NODE_ENV!=="production"&&(is(),An(nt,"mount"))},jt=(O,D,B)=>{const X=D.component=O.component;if(kd(O,D,B))if(X.asyncDep&&!X.asyncResolved){({}).NODE_ENV!=="production"&&ns(D),W(X,D,B),{}.NODE_ENV!=="production"&&is();return}else X.next=D,ld(X.update),X.effect.dirty=!0,X.update();else D.el=O.el,X.vnode=D},Ot=(O,D,B,X,Q,K,pt)=>{const nt=()=>{if(O.isMounted){let{next:bt,bu:Tt,u:Mt,parent:Vt,vnode:Bt}=O;{const en=Pc(O);if(en){bt&&(bt.el=Bt.el,W(O,bt,pt)),en.asyncDep.then(()=>{O.isUnmounted||nt()});return}}let ee=bt,re;({}).NODE_ENV!=="production"&&ns(bt||O.vnode),Ci(O,!1),bt?(bt.el=Bt.el,W(O,bt,pt)):bt=Bt,Tt&&lr(Tt),(re=bt.props&&bt.props.onVnodeBeforeUpdate)&&bn(re,Vt,bt,Bt),Ci(O,!0),{}.NODE_ENV!=="production"&&Mn(O,"render");const le=Ao(O);({}).NODE_ENV!=="production"&&An(O,"render");const we=O.subTree;O.subTree=le,{}.NODE_ENV!=="production"&&Mn(O,"patch"),C(we,le,g(we.el),rt(we),O,Q,K),{}.NODE_ENV!=="production"&&An(O,"patch"),bt.el=le.el,ee===null&&Sd(O,le.el),Mt&&He(Mt,Q),(re=bt.props&&bt.props.onVnodeUpdated)&&He(()=>bn(re,Vt,bt,Bt),Q),{}.NODE_ENV!=="production"&&Zl(O),{}.NODE_ENV!=="production"&&is()}else{let bt;const{el:Tt,props:Mt}=D,{bm:Vt,m:Bt,parent:ee}=O,re=yr(D);if(Ci(O,!1),Vt&&lr(Vt),!re&&(bt=Mt&&Mt.onVnodeBeforeMount)&&bn(bt,ee,D),Ci(O,!0),Tt&&Ft){const le=()=>{({}).NODE_ENV!=="production"&&Mn(O,"render"),O.subTree=Ao(O),{}.NODE_ENV!=="production"&&An(O,"render"),{}.NODE_ENV!=="production"&&Mn(O,"hydrate"),Ft(Tt,O.subTree,O,Q,null),{}.NODE_ENV!=="production"&&An(O,"hydrate")};re?D.type.__asyncLoader().then(()=>!O.isUnmounted&&le()):le()}else{({}).NODE_ENV!=="production"&&Mn(O,"render");const le=O.subTree=Ao(O);({}).NODE_ENV!=="production"&&An(O,"render"),{}.NODE_ENV!=="production"&&Mn(O,"patch"),C(null,le,B,X,O,Q,K),{}.NODE_ENV!=="production"&&An(O,"patch"),D.el=le.el}if(Bt&&He(Bt,Q),!re&&(bt=Mt&&Mt.onVnodeMounted)){const le=D;He(()=>bn(bt,ee,le),Q)}(D.shapeFlag&256||ee&&yr(ee.vnode)&&ee.vnode.shapeFlag&256)&&O.a&&He(O.a,Q),O.isMounted=!0,{}.NODE_ENV!=="production"&&gd(O),D=B=X=null}},ft=O.effect=new mo(nt,Ce,()=>rs(tt),O.scope),tt=O.update=()=>{ft.dirty&&ft.run()};tt.id=O.uid,Ci(O,!0),{}.NODE_ENV!=="production"&&(ft.onTrack=O.rtc?bt=>lr(O.rtc,bt):void 0,ft.onTrigger=O.rtg?bt=>lr(O.rtg,bt):void 0,tt.ownerInstance=O),tt()},W=(O,D,B)=>{D.component=O;const X=O.vnode.props;O.vnode=D,O.next=null,op(O,D.props,X,B),pp(O,D.children,B),Sn(),Ul(O),Tn()},at=(O,D,B,X,Q,K,pt,nt,ft=!1)=>{const tt=O&&O.children,bt=O?O.shapeFlag:0,Tt=D.children,{patchFlag:Mt,shapeFlag:Vt}=D;if(Mt>0){if(Mt&128){S(tt,Tt,B,X,Q,K,pt,nt,ft);return}else if(Mt&256){mt(tt,Tt,B,X,Q,K,pt,nt,ft);return}}Vt&8?(bt&16&&F(tt,Q,K),Tt!==tt&&m(B,Tt)):bt&16?Vt&16?S(tt,Tt,B,X,Q,K,pt,nt,ft):F(tt,Q,K,!0):(bt&8&&m(B,""),Vt&16&&_t(Tt,B,X,Q,K,pt,nt,ft))},mt=(O,D,B,X,Q,K,pt,nt,ft)=>{O=O||Li,D=D||Li;const tt=O.length,bt=D.length,Tt=Math.min(tt,bt);let Mt;for(Mt=0;Mt<Tt;Mt++){const Vt=D[Mt]=ft?ei(D[Mt]):dn(D[Mt]);C(O[Mt],Vt,B,null,Q,K,pt,nt,ft)}tt>bt?F(O,Q,K,!0,!1,Tt):_t(D,B,X,Q,K,pt,nt,ft,Tt)},S=(O,D,B,X,Q,K,pt,nt,ft)=>{let tt=0;const bt=D.length;let Tt=O.length-1,Mt=bt-1;for(;tt<=Tt&&tt<=Mt;){const Vt=O[tt],Bt=D[tt]=ft?ei(D[tt]):dn(D[tt]);if(kr(Vt,Bt))C(Vt,Bt,B,null,Q,K,pt,nt,ft);else break;tt++}for(;tt<=Tt&&tt<=Mt;){const Vt=O[Tt],Bt=D[Mt]=ft?ei(D[Mt]):dn(D[Mt]);if(kr(Vt,Bt))C(Vt,Bt,B,null,Q,K,pt,nt,ft);else break;Tt--,Mt--}if(tt>Tt){if(tt<=Mt){const Vt=Mt+1,Bt=Vt<bt?D[Vt].el:X;for(;tt<=Mt;)C(null,D[tt]=ft?ei(D[tt]):dn(D[tt]),B,Bt,Q,K,pt,nt,ft),tt++}}else if(tt>Mt)for(;tt<=Tt;)x(O[tt],Q,K,!0),tt++;else{const Vt=tt,Bt=tt,ee=new Map;for(tt=Bt;tt<=Mt;tt++){const oe=D[tt]=ft?ei(D[tt]):dn(D[tt]);oe.key!=null&&({}.NODE_ENV!=="production"&&ee.has(oe.key)&&wt("Duplicate keys found during update:",JSON.stringify(oe.key),"Make sure keys are unique."),ee.set(oe.key,tt))}let re,le=0;const we=Mt-Bt+1;let en=!1,Te=0;const Re=new Array(we);for(tt=0;tt<we;tt++)Re[tt]=0;for(tt=Vt;tt<=Tt;tt++){const oe=O[tt];if(le>=we){x(oe,Q,K,!0);continue}let Ee;if(oe.key!=null)Ee=ee.get(oe.key);else for(re=Bt;re<=Mt;re++)if(Re[re-Bt]===0&&kr(oe,D[re])){Ee=re;break}Ee===void 0?x(oe,Q,K,!0):(Re[Ee-Bt]=tt+1,Ee>=Te?Te=Ee:en=!0,C(oe,D[Ee],B,null,Q,K,pt,nt,ft),le++)}const pn=en?_p(Re):Li;for(re=pn.length-1,tt=we-1;tt>=0;tt--){const oe=Bt+tt,Ee=D[oe],Ve=oe+1<bt?D[oe+1].el:X;Re[tt]===0?C(null,Ee,B,Ve,Q,K,pt,nt,ft):en&&(re<0||tt!==pn[re]?w(Ee,B,Ve,2):re--)}}},w=(O,D,B,X,Q=null)=>{const{el:K,type:pt,transition:nt,children:ft,shapeFlag:tt}=O;if(tt&6){w(O.component.subTree,D,B,X);return}if(tt&128){O.suspense.move(D,B,X);return}if(tt&64){pt.move(O,D,B,yt);return}if(pt===ve){i(K,D,B);for(let Tt=0;Tt<ft.length;Tt++)w(ft[Tt],D,B,X);i(O.anchor,D,B);return}if(pt===vs){H(O,D,B);return}if(X!==2&&tt&1&&nt)if(X===0)nt.beforeEnter(K),i(K,D,B),He(()=>nt.enter(K),Q);else{const{leave:Tt,delayLeave:Mt,afterLeave:Vt}=nt,Bt=()=>i(K,D,B),ee=()=>{Tt(K,()=>{Bt(),Vt&&Vt()})};Mt?Mt(K,Bt,ee):ee()}else i(K,D,B)},x=(O,D,B,X=!1,Q=!1)=>{const{type:K,props:pt,ref:nt,children:ft,dynamicChildren:tt,shapeFlag:bt,patchFlag:Tt,dirs:Mt}=O;if(nt!=null&&qo(nt,null,B,O,!0),bt&256){D.ctx.deactivate(O);return}const Vt=bt&1&&Mt,Bt=!yr(O);let ee;if(Bt&&(ee=pt&&pt.onVnodeBeforeUnmount)&&bn(ee,D,O),bt&6)j(O.component,B,X);else{if(bt&128){O.suspense.unmount(B,X);return}Vt&&wi(O,null,D,"beforeUnmount"),bt&64?O.type.remove(O,D,B,Q,yt,X):tt&&(K!==ve||Tt>0&&Tt&64)?F(tt,D,B,!1,!0):(K===ve&&Tt&384||!Q&&bt&16)&&F(ft,D,B),X&&I(O)}(Bt&&(ee=pt&&pt.onVnodeUnmounted)||Vt)&&He(()=>{ee&&bn(ee,D,O),Vt&&wi(O,null,D,"unmounted")},B)},I=O=>{const{type:D,el:B,anchor:X,transition:Q}=O;if(D===ve){({}).NODE_ENV!=="production"&&O.patchFlag>0&&O.patchFlag&2048&&Q&&!Q.persisted?O.children.forEach(pt=>{pt.type===Ue?r(pt.el):I(pt)}):R(B,X);return}if(D===vs){Y(O);return}const K=()=>{r(B),Q&&!Q.persisted&&Q.afterLeave&&Q.afterLeave()};if(O.shapeFlag&1&&Q&&!Q.persisted){const{leave:pt,delayLeave:nt}=Q,ft=()=>pt(B,K);nt?nt(O.el,K,ft):ft()}else K()},R=(O,D)=>{let B;for(;O!==D;)B=d(O),r(O),O=B;r(D)},j=(O,D,B)=>{({}).NODE_ENV!=="production"&&O.type.__hmrId&&hd(O);const{bum:X,scope:Q,update:K,subTree:pt,um:nt}=O;X&&lr(X),Q.stop(),K&&(K.active=!1,x(pt,O,D,B)),nt&&He(nt,D),He(()=>{O.isUnmounted=!0},D),D&&D.pendingBranch&&!D.isUnmounted&&O.asyncDep&&!O.asyncResolved&&O.suspenseId===D.pendingId&&(D.deps--,D.deps===0&&D.resolve()),{}.NODE_ENV!=="production"&&yd(O)},F=(O,D,B,X=!1,Q=!1,K=0)=>{for(let pt=K;pt<O.length;pt++)x(O[pt],D,B,X,Q)},rt=O=>O.shapeFlag&6?rt(O.component.subTree):O.shapeFlag&128?O.suspense.next():d(O.anchor||O.el);let G=!1;const st=(O,D,B)=>{O==null?D._vnode&&x(D._vnode,null,null,!0):C(D._vnode||null,O,D,null,null,null,B),G||(G=!0,Ul(),Wl(),G=!1),D._vnode=O},yt={p:C,um:x,m:w,r:I,mt:Ut,mc:_t,pc:at,pbc:Et,n:rt,o:e};let St,Ft;return t&&([St,Ft]=t(yt)),{render:st,hydrate:St,createApp:np(st,St)}}function Yo({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Ci({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function yp(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function gs(e,t,n=!1){const i=e.children,r=t.children;if(Rt(i)&&Rt(r))for(let s=0;s<i.length;s++){const o=i[s];let a=r[s];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=r[s]=ei(r[s]),a.el=o.el),n||gs(o,a)),a.type===wr&&(a.el=o.el),{}.NODE_ENV!=="production"&&a.type===Ue&&!a.el&&(a.el=o.el)}}function _p(e){const t=e.slice(),n=[0];let i,r,s,o,a;const l=e.length;for(i=0;i<l;i++){const p=e[i];if(p!==0){if(r=n[n.length-1],e[r]<p){t[i]=r,n.push(i);continue}for(s=0,o=n.length-1;s<o;)a=s+o>>1,e[n[a]]<p?s=a+1:o=a;p<e[n[s]]&&(s>0&&(t[i]=n[s-1]),n[s]=i)}}for(s=n.length,o=n[s-1];s-- >0;)n[s]=o,o=t[o];return n}function Pc(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Pc(t)}const bp=e=>e.__isTeleport,ve=Symbol.for("v-fgt"),wr=Symbol.for("v-txt"),Ue=Symbol.for("v-cmt"),vs=Symbol.for("v-stc"),Er=[];let fn=null;function xt(e=!1){Er.push(fn=e?null:[])}function xp(){Er.pop(),fn=Er[Er.length-1]||null}let Cr=1;function Ic(e){Cr+=e}function Mc(e){return e.dynamicChildren=Cr>0?fn||Li:null,xp(),Cr>0&&fn&&fn.push(e),e}function At(e,t,n,i,r,s){return Mc(A(e,t,n,i,r,s,!0))}function be(e,t,n,i,r){return Mc(Jt(e,t,n,i,r,!0))}function Fi(e){return e?e.__v_isVNode===!0:!1}function kr(e,t){return{}.NODE_ENV!=="production"&&t.shapeFlag&6&&Vi.has(t.type)?(e.shapeFlag&=-257,t.shapeFlag&=-513,!1):e.type===t.type&&e.key===t.key}const wp=(...e)=>Dc(...e),Ac=({key:e})=>e??null,ys=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?_e(e)||Ae(e)||Gt(e)?{i:Se,r:e,k:t,f:!!n}:e:null);function A(e,t=null,n=null,i=0,r=null,s=e===ve?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ac(t),ref:t&&ys(t),scopeId:os,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:i,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Se};return a?(Xo(l,n),s&128&&e.normalize(l)):n&&(l.shapeFlag|=_e(n)?8:16),{}.NODE_ENV!=="production"&&l.key!==l.key&&wt("VNode created with invalid key (NaN). VNode type:",l.type),Cr>0&&!o&&fn&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&fn.push(l),l}const Jt={}.NODE_ENV!=="production"?wp:Dc;function Dc(e,t=null,n=null,i=0,r=null,s=!1){if((!e||e===Nd)&&({}.NODE_ENV!=="production"&&!e&&wt(`Invalid vnode type when creating vnode: ${e}.`),e=Ue),Fi(e)){const a=ti(e,t,!0);return n&&Xo(a,n),Cr>0&&!s&&fn&&(a.shapeFlag&6?fn[fn.indexOf(e)]=a:fn.push(a)),a.patchFlag|=-2,a}if(jc(e)&&(e=e.__vccOpts),t){t=Ep(t);let{class:a,style:l}=t;a&&!_e(a)&&(t.class=Ht(a)),ae(l)&&(Eo(l)&&!Rt(l)&&(l=ge({},l)),t.style=Lt(l))}const o=_e(e)?1:Pd(e)?128:bp(e)?64:ae(e)?4:Gt(e)?2:0;return{}.NODE_ENV!=="production"&&o&4&&Eo(e)&&(e=Qt(e),wt("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: `,e)),A(e,t,n,i,r,o,s,!0)}function Ep(e){return e?Eo(e)||yc(e)?ge({},e):e:null}function ti(e,t,n=!1){const{props:i,ref:r,patchFlag:s,children:o}=e,a=t?Ko(i||{},t):i;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Ac(a),ref:t&&t.ref?n&&r?Rt(r)?r.concat(ys(t)):[r,ys(t)]:ys(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:{}.NODE_ENV!=="production"&&s===-1&&Rt(o)?o.map(Lc):o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ve?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ti(e.ssContent),ssFallback:e.ssFallback&&ti(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Lc(e){const t=ti(e);return Rt(e.children)&&(t.children=e.children.map(Lc)),t}function De(e=" ",t=0){return Jt(wr,null,e,t)}function de(e="",t=!1){return t?(xt(),be(Ue,null,e)):Jt(Ue,null,e)}function dn(e){return e==null||typeof e=="boolean"?Jt(Ue):Rt(e)?Jt(ve,null,e.slice()):typeof e=="object"?ei(e):Jt(wr,null,String(e))}function ei(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ti(e)}function Xo(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(Rt(t))n=16;else if(typeof t=="object")if(i&65){const r=t.default;r&&(r._c&&(r._d=!1),Xo(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!yc(t)?t._ctx=Se:r===3&&Se&&(Se.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Gt(t)?(t={default:t,_ctx:Se},n=32):(t=String(t),i&64?(n=16,t=[De(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ko(...e){const t={};for(let n=0;n<e.length;n++){const i=e[n];for(const r in i)if(r==="class")t.class!==i.class&&(t.class=Ht([t.class,i.class]));else if(r==="style")t.style=Lt([t.style,i.style]);else if(or(r)){const s=t[r],o=i[r];o&&s!==o&&!(Rt(s)&&s.includes(o))&&(t[r]=s?[].concat(s,o):o)}else r!==""&&(t[r]=i[r])}return t}function bn(e,t,n,i=null){hn(e,t,7,[n,i])}const Cp=mc();let kp=0;function Sp(e,t,n){const i=e.type,r=(t?t.appContext:e.appContext)||Cp,s={uid:kp++,vnode:e,type:i,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new Sf(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:bc(i,r),emitsOptions:Jl(i,r),emit:null,emitted:null,propsDefaults:ce,inheritAttrs:i.inheritAttrs,ctx:ce,data:ce,props:ce,attrs:ce,slots:ce,refs:ce,setupState:ce,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return{}.NODE_ENV!=="production"?s.ctx=Wd(s):s.ctx={_:s},s.root=t?t.root:s,s.emit=wd.bind(null,s),e.ce&&e.ce(s),s}let Oe=null;const Tp=()=>Oe||Se;let _s,Zo;{const e=fo(),t=(n,i)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(i),s=>{r.length>1?r.forEach(o=>o(s)):r[0](s)}};_s=t("__VUE_INSTANCE_SETTERS__",n=>Oe=n),Zo=t("__VUE_SSR_SETTERS__",n=>bs=n)}const Sr=e=>{const t=Oe;return _s(e),e.scope.on(),()=>{e.scope.off(),_s(t)}},$c=()=>{Oe&&Oe.scope.off(),_s(null)},Np=gn("slot,component");function Qo(e,{isNativeTag:t}){(Np(e)||t(e))&&wt("Do not use built-in or reserved HTML elements as component id: "+e)}function Rc(e){return e.vnode.shapeFlag&4}let bs=!1;function Op(e,t=!1){t&&Zo(t);const{props:n,children:i}=e.vnode,r=Rc(e);rp(e,n,r,t),dp(e,i);const s=r?Pp(e,t):void 0;return t&&Zo(!1),s}function Pp(e,t){var n;const i=e.type;if({}.NODE_ENV!=="production"){if(i.name&&Qo(i.name,e.appContext.config),i.components){const s=Object.keys(i.components);for(let o=0;o<s.length;o++)Qo(s[o],e.appContext.config)}if(i.directives){const s=Object.keys(i.directives);for(let o=0;o<s.length;o++)oc(s[o])}i.compilerOptions&&Ip()&&wt('"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.')}e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,cc),{}.NODE_ENV!=="production"&&qd(e);const{setup:r}=i;if(r){const s=e.setupContext=r.length>1?Ap(e):null,o=Sr(e);Sn();const a=On(r,e,0,[{}.NODE_ENV!=="production"?Nn(e.props):e.props,s]);if(Tn(),o(),co(a)){if(a.then($c,$c),t)return a.then(l=>{Vc(e,l,t)}).catch(l=>{ur(l,e,0)});if(e.asyncDep=a,{}.NODE_ENV!=="production"&&!e.suspense){const l=(n=i.name)!=null?n:"Anonymous";wt(`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 Vc(e,a,t)}else Fc(e,t)}function Vc(e,t,n){Gt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ae(t)?({}.NODE_ENV!=="production"&&Fi(t)&&wt("setup() should not return VNodes directly - return a render function instead."),{}.NODE_ENV!=="production"&&(e.devtoolsRawSetupState=t),e.setupState=Fl(t),{}.NODE_ENV!=="production"&&Yd(e)):{}.NODE_ENV!=="production"&&t!==void 0&&wt(`setup() should return an object. Received: ${t===null?"null":typeof t}`),Fc(e,n)}let Jo;const Ip=()=>!Jo;function Fc(e,t,n){const i=e.type;if(!e.render){if(!t&&Jo&&!i.render){const r=i.template||Bo(e).template;if(r){({}).NODE_ENV!=="production"&&Mn(e,"compile");const{isCustomElement:s,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:l}=i,p=ge(ge({isCustomElement:s,delimiters:a},o),l);i.render=Jo(r,p),{}.NODE_ENV!=="production"&&An(e,"compile")}}e.render=i.render||Ce}{const r=Sr(e);Sn();try{Kd(e)}finally{Tn(),r()}}({}).NODE_ENV!=="production"&&!i.render&&e.render===Ce&&!t&&(i.template?wt('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".'):wt("Component is missing template or render function."))}const zc={}.NODE_ENV!=="production"?{get(e,t){return ls(),Me(e,"get",""),e[t]},set(){return wt("setupContext.attrs is readonly."),!1},deleteProperty(){return wt("setupContext.attrs is readonly."),!1}}:{get(e,t){return Me(e,"get",""),e[t]}};function Mp(e){return e.slotsProxy||(e.slotsProxy=new Proxy(e.slots,{get(t,n){return Me(e,"get","$slots"),t[n]}}))}function Ap(e){const t=n=>{if({}.NODE_ENV!=="production"&&(e.exposed&&wt("expose() should be called only once per setup()."),n!=null)){let i=typeof n;i==="object"&&(Rt(n)?i="array":Ae(n)&&(i="ref")),i!=="object"&&wt(`expose() should be passed a plain object, received ${i}.`)}e.exposed=n||{}};if({}.NODE_ENV!=="production"){let n;return Object.freeze({get attrs(){return n||(n=new Proxy(e.attrs,zc))},get slots(){return Mp(e)},get emit(){return(i,...r)=>e.emit(i,...r)},expose:t})}else return{attrs:new Proxy(e.attrs,zc),slots:e.slots,emit:e.emit,expose:t}}function xs(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Fl(Xf(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ei)return Ei[n](e)},has(t,n){return n in t||n in Ei}}))}const Dp=/(?:^|[-_])(\w)/g,Lp=e=>e.replace(Dp,t=>t.toUpperCase()).replace(/[-_]/g,"");function ta(e,t=!0){return Gt(e)?e.displayName||e.name:e.name||t&&e.__name}function ws(e,t,n=!1){let i=ta(t);if(!i&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(i=r[1])}if(!i&&e&&e.parent){const r=s=>{for(const o in s)if(s[o]===t)return o};i=r(e.components||e.parent.type.components)||r(e.appContext.components)}return i?Lp(i):n?"App":"Anonymous"}function jc(e){return Gt(e)&&"__vccOpts"in e}const $p=(e,t)=>{const n=Zf(e,t,bs);if({}.NODE_ENV!=="production"){const i=Tp();i&&i.appContext.config.warnRecursiveComputed&&(n._warnRecursive=!0)}return n};function Bc(e,t,n){const i=arguments.length;return i===2?ae(t)&&!Rt(t)?Fi(t)?Jt(e,null,[t]):Jt(e,t):Jt(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&Fi(n)&&(n=[n]),Jt(e,t,n))}function Rp(){if({}.NODE_ENV==="production"||typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#1677ff"},n={style:"color:#f5222d"},i={style:"color:#eb2f96"},r={header(g){return ae(g)?g.__isVue?["div",e,"VueInstance"]:Ae(g)?["div",{},["span",e,m(g)],"<",a(g.value),">"]:$i(g)?["div",{},["span",e,vi(g)?"ShallowReactive":"Reactive"],"<",a(g),`>${gi(g)?" (readonly)":""}`]:gi(g)?["div",{},["span",e,vi(g)?"ShallowReadonly":"Readonly"],"<",a(g),">"]:null:null},hasBody(g){return g&&g.__isVue},body(g){if(g&&g.__isVue)return["div",{},...s(g.$)]}};function s(g){const d=[];g.type.props&&g.props&&d.push(o("props",Qt(g.props))),g.setupState!==ce&&d.push(o("setup",g.setupState)),g.data!==ce&&d.push(o("data",Qt(g.data)));const _=l(g,"computed");_&&d.push(o("computed",_));const N=l(g,"inject");return N&&d.push(o("injected",N)),d.push(["div",{},["span",{style:i.style+";opacity:0.66"},"$ (internal): "],["object",{object:g}]]),d}function o(g,d){return d=ge({},d),Object.keys(d).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},g],["div",{style:"padding-left:1.25em"},...Object.keys(d).map(_=>["div",{},["span",i,_+": "],a(d[_],!1)])]]:["span",{}]}function a(g,d=!0){return typeof g=="number"?["span",t,g]:typeof g=="string"?["span",n,JSON.stringify(g)]:typeof g=="boolean"?["span",i,g]:ae(g)?["object",{object:d?Qt(g):g}]:["span",n,String(g)]}function l(g,d){const _=g.type;if(Gt(_))return;const N={};for(const C in g.ctx)p(_,C,d)&&(N[C]=g.ctx[C]);return N}function p(g,d,_){const N=g[_];if(Rt(N)&&N.includes(d)||ae(N)&&d in N||g.extends&&p(g.extends,d,_)||g.mixins&&g.mixins.some(C=>p(C,d,_)))return!0}function m(g){return vi(g)?"ShallowRef":g.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(r):window.devtoolsFormatters=[r]}const Gc="3.4.25",Es={}.NODE_ENV!=="production"?wt:Ce;/**
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 uO="http://www.w3.org/2000/svg",hO="http://www.w3.org/1998/Math/MathML",ns=typeof document<"u"?document:null,jb=ns&&ns.createElement("template"),dO={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const i=t==="svg"?ns.createElementNS(uO,e):t==="mathml"?ns.createElementNS(hO,e):ns.createElement(e,r?{is:r}:void 0);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>ns.createTextNode(e),createComment:e=>ns.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ns.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,i,o){const s=r?r.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),r),!(i===o||!(i=i.nextSibling)););else{jb.innerHTML=n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e;const a=jb.content;if(n==="svg"||n==="mathml"){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}t.insertBefore(a,r)}return[s?s.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},is="transition",Jl="animation",Ql=Symbol("_vtc"),a0=(e,{slots:t})=>zn(u6,fO(e),t);a0.displayName="Transition";const Fb={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};a0.props=pr({},K_,Fb);const Js=(e,t=[])=>{ae(e)?e.forEach(r=>r(...t)):e&&e(...t)},Mb=e=>e?ae(e)?e.some(t=>t.length>1):e.length>1:!1;function fO(e){const t={};for(const Y in e)Y in Fb||(t[Y]=e[Y]);if(e.css===!1)return t;const{name:r="v",type:n,duration:i,enterFromClass:o=`${r}-enter-from`,enterActiveClass:s=`${r}-enter-active`,enterToClass:a=`${r}-enter-to`,appearFromClass:c=o,appearActiveClass:l=s,appearToClass:u=a,leaveFromClass:h=`${r}-leave-from`,leaveActiveClass:f=`${r}-leave-active`,leaveToClass:d=`${r}-leave-to`}=e,p=pO(i),g=p&&p[0],v=p&&p[1],{onBeforeEnter:_,onEnter:y,onEnterCancelled:m,onLeave:x,onLeaveCancelled:N,onBeforeAppear:$=_,onAppear:k=y,onAppearCancelled:D=m}=t,V=(Y,it,nt)=>{Qs(Y,it?u:a),Qs(Y,it?l:s),nt&&nt()},U=(Y,it)=>{Y._isLeaving=!1,Qs(Y,h),Qs(Y,d),Qs(Y,f),it&&it()},K=Y=>(it,nt)=>{const ft=Y?k:y,xt=()=>V(it,Y,nt);Js(ft,[it,xt]),Lb(()=>{Qs(it,Y?c:o),os(it,Y?u:a),Mb(ft)||Vb(it,n,g,xt)})};return pr(t,{onBeforeEnter(Y){Js(_,[Y]),os(Y,o),os(Y,s)},onBeforeAppear(Y){Js($,[Y]),os(Y,c),os(Y,l)},onEnter:K(!1),onAppear:K(!0),onLeave(Y,it){Y._isLeaving=!0;const nt=()=>U(Y,it);os(Y,h),os(Y,f),vO(),Lb(()=>{Y._isLeaving&&(Qs(Y,h),os(Y,d),Mb(x)||Vb(Y,n,v,nt))}),Js(x,[Y,nt])},onEnterCancelled(Y){V(Y,!1),Js(m,[Y])},onAppearCancelled(Y){V(Y,!0),Js(D,[Y])},onLeaveCancelled(Y){U(Y),Js(N,[Y])}})}function pO(e){if(e==null)return null;if(Je(e))return[l0(e.enter),l0(e.leave)];{const t=l0(e);return[t,t]}}function l0(e){const t=gp(e);return{}.NODE_ENV!=="production"&&RT(t,"<transition> explicit duration"),t}function os(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[Ql]||(e[Ql]=new Set)).add(t)}function Qs(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const r=e[Ql];r&&(r.delete(t),r.size||(e[Ql]=void 0))}function Lb(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let mO=0;function Vb(e,t,r,n){const i=e._endId=++mO,o=()=>{i===e._endId&&n()};if(r)return setTimeout(o,r);const{type:s,timeout:a,propCount:c}=gO(e,t);if(!s)return n();const l=s+"end";let u=0;const h=()=>{e.removeEventListener(l,f),o()},f=d=>{d.target===e&&++u>=c&&h()};setTimeout(()=>{u<c&&h()},a+1),e.addEventListener(l,f)}function gO(e,t){const r=window.getComputedStyle(e),n=p=>(r[p]||"").split(", "),i=n(`${is}Delay`),o=n(`${is}Duration`),s=Ub(i,o),a=n(`${Jl}Delay`),c=n(`${Jl}Duration`),l=Ub(a,c);let u=null,h=0,f=0;t===is?s>0&&(u=is,h=s,f=o.length):t===Jl?l>0&&(u=Jl,h=l,f=c.length):(h=Math.max(s,l),u=h>0?s>l?is:Jl:null,f=u?u===is?o.length:c.length:0);const d=u===is&&/\b(transform|all)(,|$)/.test(n(`${is}Property`).toString());return{type:u,timeout:h,propCount:f,hasTransform:d}}function Ub(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,n)=>zb(r)+zb(e[n])))}function zb(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function vO(){return document.body.offsetHeight}function yO(e,t,r){const n=e[Ql];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const Yh=Symbol("_vod"),Gb=Symbol("_vsh"),c0={beforeMount(e,{value:t},{transition:r}){e[Yh]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Zl(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),Zl(e,!0),n.enter(e)):n.leave(e,()=>{Zl(e,!1)}):Zl(e,t))},beforeUnmount(e,{value:t}){Zl(e,t)}};({}).NODE_ENV!=="production"&&(c0.name="show");function Zl(e,t){e.style.display=t?e[Yh]:"none",e[Gb]=!t}const _O=Symbol({}.NODE_ENV!=="production"?"CSS_VAR_TEXT":""),bO=/(^|;)\s*display\s*:/;function wO(e,t,r){const n=e.style,i=Cr(r);let o=!1;if(r&&!i){if(t)if(Cr(t))for(const s of t.split(";")){const a=s.slice(0,s.indexOf(":")).trim();r[a]==null&&Xh(n,a,"")}else for(const s in t)r[s]==null&&Xh(n,s,"");for(const s in r)s==="display"&&(o=!0),Xh(n,s,r[s])}else if(i){if(t!==r){const s=n[_O];s&&(r+=";"+s),n.cssText=r,o=bO.test(r)}}else t&&e.removeAttribute("style");Yh in e&&(e[Yh]=o?n.display:"",e[Gb]&&(n.display="none"))}const xO=/[^\\];\s*$/,Bb=/\s*!important$/;function Xh(e,t,r){if(ae(r))r.forEach(n=>Xh(e,t,n));else if(r==null&&(r=""),{}.NODE_ENV!=="production"&&xO.test(r)&&Kh(`Unexpected semicolon at the end of '${t}' style value: '${r}'`),t.startsWith("--"))e.setProperty(t,r);else{const n=SO(e,t);Bb.test(r)?e.setProperty(Vn(n),r.replace(Bb,""),"important"):e[n]=r}}const Hb=["Webkit","Moz","ms"],u0={};function SO(e,t){const r=u0[t];if(r)return r;let n=so(t);if(n!=="filter"&&n in e)return u0[t]=n;n=yh(n);for(let i=0;i<Hb.length;i++){const o=Hb[i]+n;if(o in e)return u0[t]=o}return t}const qb="http://www.w3.org/1999/xlink";function $O(e,t,r,n,i){if(n&&t.startsWith("xlink:"))r==null?e.removeAttributeNS(qb,t.slice(6,t.length)):e.setAttributeNS(qb,t,r);else{const o=tT(t);r==null||o&&!t_(r)?e.removeAttribute(t):e.setAttribute(t,o?"":r)}}function EO(e,t,r,n,i,o,s){if(t==="innerHTML"||t==="textContent"){n&&s(n,i,o),e[t]=r??"";return}const a=e.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){const l=a==="OPTION"?e.getAttribute("value")||"":e.value,u=r??"";(l!==u||!("_value"in e))&&(e.value=u),r==null&&e.removeAttribute(t),e._value=r;return}let c=!1;if(r===""||r==null){const l=typeof e[t];l==="boolean"?r=t_(r):r==null&&l==="string"?(r="",c=!0):l==="number"&&(r=0,c=!0)}try{e[t]=r}catch(l){({}).NODE_ENV!=="production"&&!c&&Kh(`Failed setting prop "${t}" on <${a.toLowerCase()}>: value ${r} is invalid.`,l)}c&&e.removeAttribute(t)}function CO(e,t,r,n){e.addEventListener(t,r,n)}function kO(e,t,r,n){e.removeEventListener(t,r,n)}const Kb=Symbol("_vei");function PO(e,t,r,n,i=null){const o=e[Kb]||(e[Kb]={}),s=o[t];if(n&&s)s.value={}.NODE_ENV!=="production"?Xb(n,t):n;else{const[a,c]=TO(t);if(n){const l=o[t]=AO({}.NODE_ENV!=="production"?Xb(n,t):n,i);CO(e,a,l,c)}else s&&(kO(e,a,s,c),o[t]=void 0)}}const Yb=/(?:Once|Passive|Capture)$/;function TO(e){let t;if(Yb.test(e)){t={};let n;for(;n=e.match(Yb);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Vn(e.slice(2)),t]}let h0=0;const OO=Promise.resolve(),NO=()=>h0||(OO.then(()=>h0=0),h0=Date.now());function AO(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;Zn(DO(n,r.value),t,5,[n])};return r.value=e,r.attached=NO(),r}function Xb(e,t){return ge(e)||ae(e)?e:(Kh(`Wrong type passed as event handler to ${t} - did you forget @ or : in front of your prop?
26
- Expected function or array of functions, received type ${typeof e}.`),Nr)}function DO(e,t){if(ae(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const Wb=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,RO=(e,t,r,n,i,o,s,a,c)=>{const l=i==="svg";t==="class"?yO(e,n,l):t==="style"?wO(e,r,n):Al(t)?mh(t)||PO(e,t,r,n,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):IO(e,t,n,l))?EO(e,t,n,o,s,a,c):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),$O(e,t,n,l))};function IO(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Wb(t)&&ge(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Wb(t)&&Cr(r)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function Ui(e,t){const r=Xe(e);class n extends d0{constructor(o){super(r,o,t)}}return n.def=r,n}const jO=typeof HTMLElement<"u"?HTMLElement:class{};class d0 extends jO{constructor(t,r={},n){super(),this._def=t,this._props=r,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&&Kh("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),fo(()=>{this._connected||(Qb(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 t=(n,i=!1)=>{const{props:o,styles:s}=n;let a;if(o&&!ae(o))for(const c in o){const l=o[c];(l===Number||l&&l.type===Number)&&(c in this._props&&(this._props[c]=gp(this._props[c])),(a||(a=Object.create(null)))[so(c)]=!0)}this._numberProps=a,i&&this._resolveProps(n),this._applyStyles(s),this._update()},r=this._def.__asyncLoader;r?r().then(n=>t(n,!0)):t(this._def)}_resolveProps(t){const{props:r}=t,n=ae(r)?r:Object.keys(r||{});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(so))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(o){this._setProp(i,o)}})}_setAttr(t){let r=this.hasAttribute(t)?this.getAttribute(t):void 0;const n=so(t);this._numberProps&&this._numberProps[n]&&(r=gp(r)),this._setProp(n,r,!1)}_getProp(t){return this._props[t]}_setProp(t,r,n=!0,i=!0){r!==this._props[t]&&(this._props[t]=r,i&&this._instance&&this._update(),n&&(r===!0?this.setAttribute(Vn(t),""):typeof r=="string"||typeof r=="number"?this.setAttribute(Vn(t),r+""):r||this.removeAttribute(Vn(t))))}_update(){Qb(this._createVNode(),this.shadowRoot)}_createVNode(){const t=cr(this._def,pr({},this._props));return this._instance||(t.ce=r=>{this._instance=r,r.isCE=!0,{}.NODE_ENV!=="production"&&(r.ceReload=o=>{this._styles&&(this._styles.forEach(s=>this.shadowRoot.removeChild(s)),this._styles.length=0),this._applyStyles(o),this._instance=null,this._update()});const n=(o,s)=>{this.dispatchEvent(new CustomEvent(o,{detail:s}))};r.emit=(o,...s)=>{n(o,s),Vn(o)!==o&&n(Vn(o),s)};let i=this;for(;i=i&&(i.parentNode||i.host);)if(i instanceof d0){r.parent=i._instance,r.provides=i._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(r=>{const n=document.createElement("style");n.textContent=r,this.shadowRoot.appendChild(n),{}.NODE_ENV!=="production"&&(this._styles||(this._styles=[])).push(n)})}}const FO=pr({patchProp:RO},dO);let Jb;function MO(){return Jb||(Jb=B6(FO))}const Qb=(...e)=>{MO().render(...e)};/**
26
+ **/const Vp="http://www.w3.org/2000/svg",Fp="http://www.w3.org/1998/Math/MathML",ni=typeof document<"u"?document:null,Hc=ni&&ni.createElement("template"),zp={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const r=t==="svg"?ni.createElementNS(Vp,e):t==="mathml"?ni.createElementNS(Fp,e):ni.createElement(e,n?{is:n}:void 0);return e==="select"&&i&&i.multiple!=null&&r.setAttribute("multiple",i.multiple),r},createText:e=>ni.createTextNode(e),createComment:e=>ni.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ni.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,r,s){const o=n?n.previousSibling:t.lastChild;if(r&&(r===s||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===s||!(r=r.nextSibling)););else{Hc.innerHTML=i==="svg"?`<svg>${e}</svg>`:i==="mathml"?`<math>${e}</math>`:e;const a=Hc.content;if(i==="svg"||i==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},jp=Symbol("_vtc");function Bp(e,t,n){const i=e[jp];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Cs=Symbol("_vod"),Uc=Symbol("_vsh"),ks={beforeMount(e,{value:t},{transition:n}){e[Cs]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Tr(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:i}){!t!=!n&&(i?t?(i.beforeEnter(e),Tr(e,!0),i.enter(e)):i.leave(e,()=>{Tr(e,!1)}):Tr(e,t))},beforeUnmount(e,{value:t}){Tr(e,t)}};({}).NODE_ENV!=="production"&&(ks.name="show");function Tr(e,t){e.style.display=t?e[Cs]:"none",e[Uc]=!t}const Gp=Symbol({}.NODE_ENV!=="production"?"CSS_VAR_TEXT":""),Hp=/(^|;)\s*display\s*:/;function Up(e,t,n){const i=e.style,r=_e(n);let s=!1;if(n&&!r){if(t)if(_e(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&Ss(i,a,"")}else for(const o in t)n[o]==null&&Ss(i,o,"");for(const o in n)o==="display"&&(s=!0),Ss(i,o,n[o])}else if(r){if(t!==n){const o=i[Gp];o&&(n+=";"+o),i.cssText=n,s=Hp.test(n)}}else t&&e.removeAttribute("style");Cs in e&&(e[Cs]=s?i.display:"",e[Uc]&&(i.display="none"))}const Wp=/[^\\];\s*$/,Wc=/\s*!important$/;function Ss(e,t,n){if(Rt(n))n.forEach(i=>Ss(e,t,i));else if(n==null&&(n=""),{}.NODE_ENV!=="production"&&Wp.test(n)&&Es(`Unexpected semicolon at the end of '${t}' style value: '${n}'`),t.startsWith("--"))e.setProperty(t,n);else{const i=qp(e,t);Wc.test(n)?e.setProperty(Je(i),n.replace(Wc,""),"important"):e[i]=n}}const qc=["Webkit","Moz","ms"],ea={};function qp(e,t){const n=ea[t];if(n)return n;let i=Qe(t);if(i!=="filter"&&i in e)return ea[t]=i;i=fi(i);for(let r=0;r<qc.length;r++){const s=qc[r]+i;if(s in e)return ea[t]=s}return t}const Yc="http://www.w3.org/1999/xlink";function Yp(e,t,n,i,r){if(i&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Yc,t.slice(6,t.length)):e.setAttributeNS(Yc,t,n);else{const s=kf(t);n==null||s&&!dl(n)?e.removeAttribute(t):e.setAttribute(t,s?"":n)}}function Xp(e,t,n,i,r,s,o){if(t==="innerHTML"||t==="textContent"){i&&o(i,r,s),e[t]=n??"";return}const a=e.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){const p=a==="OPTION"?e.getAttribute("value")||"":e.value,m=n??"";(p!==m||!("_value"in e))&&(e.value=m),n==null&&e.removeAttribute(t),e._value=n;return}let l=!1;if(n===""||n==null){const p=typeof e[t];p==="boolean"?n=dl(n):n==null&&p==="string"?(n="",l=!0):p==="number"&&(n=0,l=!0)}try{e[t]=n}catch(p){({}).NODE_ENV!=="production"&&!l&&Es(`Failed setting prop "${t}" on <${a.toLowerCase()}>: value ${n} is invalid.`,p)}l&&e.removeAttribute(t)}function Kp(e,t,n,i){e.addEventListener(t,n,i)}function Zp(e,t,n,i){e.removeEventListener(t,n,i)}const Xc=Symbol("_vei");function Qp(e,t,n,i,r=null){const s=e[Xc]||(e[Xc]={}),o=s[t];if(i&&o)o.value={}.NODE_ENV!=="production"?Zc(i,t):i;else{const[a,l]=Jp(t);if(i){const p=s[t]=nm({}.NODE_ENV!=="production"?Zc(i,t):i,r);Kp(e,a,p,l)}else o&&(Zp(e,a,o,l),s[t]=void 0)}}const Kc=/(?:Once|Passive|Capture)$/;function Jp(e){let t;if(Kc.test(e)){t={};let i;for(;i=e.match(Kc);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Je(e.slice(2)),t]}let na=0;const tm=Promise.resolve(),em=()=>na||(tm.then(()=>na=0),na=Date.now());function nm(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;hn(im(i,n.value),t,5,[i])};return n.value=e,n.attached=em(),n}function Zc(e,t){return Gt(e)||Rt(e)?e:(Es(`Wrong type passed as event handler to ${t} - did you forget @ or : in front of your prop?
27
+ Expected function or array of functions, received type ${typeof e}.`),Ce)}function im(e,t){if(Rt(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(i=>r=>!r._stopped&&i&&i(r))}else return t}const Qc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,rm=(e,t,n,i,r,s,o,a,l)=>{const p=r==="svg";t==="class"?Bp(e,i,p):t==="style"?Up(e,n,i):or(t)?Hr(t)||Qp(e,t,n,i,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):sm(e,t,i,p))?Xp(e,t,i,s,o,a,l):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),Yp(e,t,i,p))};function sm(e,t,n,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&Qc(t)&&Gt(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Qc(t)&&_e(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function me(e,t){const n=Kt(e);class i extends ia{constructor(s){super(n,s,t)}}return i.def=n,i}const om=typeof HTMLElement<"u"?HTMLElement:class{};class ia extends om{constructor(t,n={},i){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&i?i(this._createVNode(),this.shadowRoot):({}.NODE_ENV!=="production"&&this.shadowRoot&&Es("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),Bl(()=>{this._connected||(tu(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let i=0;i<this.attributes.length;i++)this._setAttr(this.attributes[i].name);this._ob=new MutationObserver(i=>{for(const r of i)this._setAttr(r.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(i,r=!1)=>{const{props:s,styles:o}=i;let a;if(s&&!Rt(s))for(const l in s){const p=s[l];(p===Number||p&&p.type===Number)&&(l in this._props&&(this._props[l]=hl(this._props[l])),(a||(a=Object.create(null)))[Qe(l)]=!0)}this._numberProps=a,r&&this._resolveProps(i),this._applyStyles(o),this._update()},n=this._def.__asyncLoader;n?n().then(i=>t(i,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,i=Rt(n)?n:Object.keys(n||{});for(const r of Object.keys(this))r[0]!=="_"&&i.includes(r)&&this._setProp(r,this[r],!0,!1);for(const r of i.map(Qe))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(s){this._setProp(r,s)}})}_setAttr(t){let n=this.hasAttribute(t)?this.getAttribute(t):void 0;const i=Qe(t);this._numberProps&&this._numberProps[i]&&(n=hl(n)),this._setProp(i,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,i=!0,r=!0){n!==this._props[t]&&(this._props[t]=n,r&&this._instance&&this._update(),i&&(n===!0?this.setAttribute(Je(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Je(t),n+""):n||this.removeAttribute(Je(t))))}_update(){tu(this._createVNode(),this.shadowRoot)}_createVNode(){const t=Jt(this._def,ge({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0,{}.NODE_ENV!=="production"&&(n.ceReload=s=>{this._styles&&(this._styles.forEach(o=>this.shadowRoot.removeChild(o)),this._styles.length=0),this._applyStyles(s),this._instance=null,this._update()});const i=(s,o)=>{this.dispatchEvent(new CustomEvent(s,{detail:o}))};n.emit=(s,...o)=>{i(s,o),Je(s)!==s&&i(Je(s),o)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof ia){n.parent=r._instance,n.provides=r._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const i=document.createElement("style");i.textContent=n,this.shadowRoot.appendChild(i),{}.NODE_ENV!=="production"&&(this._styles||(this._styles=[])).push(i)})}}const am=ge({patchProp:rm},zp);let Jc;function lm(){return Jc||(Jc=gp(am))}const tu=(...e)=>{lm().render(...e)};/**
27
28
  * vue v3.4.25
28
29
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
29
30
  * @license MIT
30
- **/function LO(){cO()}({}).NODE_ENV!=="production"&&LO();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"}))}typeof process<"u"&&process.versions!=null&&process.versions.node!=null;const VO=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`
31
+ **/function cm(){Rp()}({}).NODE_ENV!=="production"&&cm();const Ts=typeof window=="object"&&typeof document=="object";typeof process<"u"&&process.versions!=null&&process.versions.node!=null;const eu=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"phone-number":t=/^[+]?[(]?[0-9]{3}[)]?[-\s.]?[0-9]{3}[-\s.]?[0-9]{4,6}$/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`
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,74 +37,48 @@ Expected function or array of functions, received type ${typeof e}.`),Nr)}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 UO(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 zO=(e,t)=>{typeof e=="string"&&(e=VO(e)||new RegExp(e));const r=t.match(e);return UO(r)},GO=(e,t="")=>(e=e.replace(/\[data-v-[0-9a-zA-Z]*\]/g,t),e);function Zb(e,t){return function(){return e.apply(t,arguments)}}const{toString:BO}=Object.prototype,{getPrototypeOf:f0}=Object,Wh=(e=>t=>{const r=BO.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),zi=e=>(e=e.toLowerCase(),t=>Wh(t)===e),Jh=e=>t=>typeof t===e,{isArray:Ya}=Array,tc=Jh("undefined");function HO(e){return e!==null&&!tc(e)&&e.constructor!==null&&!tc(e.constructor)&&ri(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const t2=zi("ArrayBuffer");function qO(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&t2(e.buffer),t}const KO=Jh("string"),ri=Jh("function"),e2=Jh("number"),Qh=e=>e!==null&&typeof e=="object",YO=e=>e===!0||e===!1,Zh=e=>{if(Wh(e)!=="object")return!1;const t=f0(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},XO=zi("Date"),WO=zi("File"),JO=zi("Blob"),QO=zi("FileList"),ZO=e=>Qh(e)&&ri(e.pipe),t8=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ri(e.append)&&((t=Wh(e))==="formdata"||t==="object"&&ri(e.toString)&&e.toString()==="[object FormData]"))},e8=zi("URLSearchParams"),r8=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ec(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Ya(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 r2(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 n2=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),i2=e=>!tc(e)&&e!==n2;function p0(){const{caseless:e}=i2(this)&&this||{},t={},r=(n,i)=>{const o=e&&r2(t,i)||i;Zh(t[o])&&Zh(n)?t[o]=p0(t[o],n):Zh(n)?t[o]=p0({},n):Ya(n)?t[o]=n.slice():t[o]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&ec(arguments[n],r);return t}const n8=(e,t,r,{allOwnKeys:n}={})=>(ec(t,(i,o)=>{r&&ri(i)?e[o]=Zb(i,r):e[o]=i},{allOwnKeys:n}),e),i8=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),o8=(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)},s8=(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&&f0(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},a8=(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},l8=e=>{if(!e)return null;if(Ya(e))return e;let t=e.length;if(!e2(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},c8=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&f0(Uint8Array)),u8=(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])}},h8=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},d8=zi("HTMLFormElement"),f8=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),o2=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),p8=zi("RegExp"),s2=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};ec(r,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(n[o]=s||i)}),Object.defineProperties(e,n)},m8=e=>{s2(e,(t,r)=>{if(ri(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(ri(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+"'")})}})},g8=(e,t)=>{const r={},n=i=>{i.forEach(o=>{r[o]=!0})};return Ya(e)?n(e):n(String(e).split(t)),r},v8=()=>{},y8=(e,t)=>(e=+e,Number.isFinite(e)?e:t),m0="abcdefghijklmnopqrstuvwxyz",a2="0123456789",l2={DIGIT:a2,ALPHA:m0,ALPHA_DIGIT:m0+m0.toUpperCase()+a2},_8=(e=16,t=l2.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function b8(e){return!!(e&&ri(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const w8=e=>{const t=new Array(10),r=(n,i)=>{if(Qh(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const o=Ya(n)?[]:{};return ec(n,(s,a)=>{const c=r(s,i+1);!tc(c)&&(o[a]=c)}),t[i]=void 0,o}}return n};return r(e,0)},x8=zi("AsyncFunction"),S8=e=>e&&(Qh(e)||ri(e))&&ri(e.then)&&ri(e.catch),kt={isArray:Ya,isArrayBuffer:t2,isBuffer:HO,isFormData:t8,isArrayBufferView:qO,isString:KO,isNumber:e2,isBoolean:YO,isObject:Qh,isPlainObject:Zh,isUndefined:tc,isDate:XO,isFile:WO,isBlob:JO,isRegExp:p8,isFunction:ri,isStream:ZO,isURLSearchParams:e8,isTypedArray:c8,isFileList:QO,forEach:ec,merge:p0,extend:n8,trim:r8,stripBOM:i8,inherits:o8,toFlatObject:s8,kindOf:Wh,kindOfTest:zi,endsWith:a8,toArray:l8,forEachEntry:u8,matchAll:h8,isHTMLForm:d8,hasOwnProperty:o2,hasOwnProp:o2,reduceDescriptors:s2,freezeMethods:m8,toObjectSet:g8,toCamelCase:f8,noop:v8,toFiniteNumber:y8,findKey:r2,global:n2,isContextDefined:i2,ALPHABET:l2,generateString:_8,isSpecCompliantForm:b8,toJSONObject:w8,isAsyncFn:x8,isThenable:S8};function ze(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(ze,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 c2=ze.prototype,u2={};["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=>{u2[e]={value:e}}),Object.defineProperties(ze,u2),Object.defineProperty(c2,"isAxiosError",{value:!0}),ze.from=(e,t,r,n,i,o)=>{const s=Object.create(c2);return kt.toFlatObject(e,s,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),ze.call(s,e.message,t,r,n,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const $8=null;function g0(e){return kt.isPlainObject(e)||kt.isArray(e)}function h2(e){return kt.endsWith(e,"[]")?e.slice(0,-2):e}function d2(e,t,r){return e?e.concat(t).map(function(n,i){return n=h2(n),!r&&i?"["+n+"]":n}).join(r?".":""):t}function E8(e){return kt.isArray(e)&&!e.some(g0)}const C8=kt.toFlatObject(kt,{},null,function(e){return/^is[A-Z]/.test(e)});function td(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 ze("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)&&E8(d)||(kt.isFileList(d)||kt.endsWith(p,"[]"))&&(v=kt.toArray(d)))return p=h2(p),v.forEach(function(_,y){!(kt.isUndefined(_)||_===null)&&t.append(s===!0?d2([p],y,o):s===null?p:p+"[]",c(_))}),!1}return g0(d)?!0:(t.append(d2(g,p,o),c(d)),!1)}const u=[],h=Object.assign(C8,{defaultVisitor:l,convertValue:c,isVisitable:g0});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 f2(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function v0(e,t){this._pairs=[],e&&td(e,this,t)}const p2=v0.prototype;p2.append=function(e,t){this._pairs.push([e,t])},p2.toString=function(e){const t=e?function(r){return e.call(this,r,f2)}:f2;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function k8(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function m2(e,t,r){if(!t)return e;const n=r&&r.encode||k8,i=r&&r.serialize;let o;if(i?o=i(t,r):o=kt.isURLSearchParams(t)?t.toString():new v0(t,r).toString(n),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}const g2=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)})}},v2={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},P8=typeof URLSearchParams<"u"?URLSearchParams:v0,T8=typeof FormData<"u"?FormData:null,O8=typeof Blob<"u"?Blob:null,N8=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),A8=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Gi={isBrowser:!0,classes:{URLSearchParams:P8,FormData:T8,Blob:O8},isStandardBrowserEnv:N8,isStandardBrowserWebWorkerEnv:A8,protocols:["http","https","file","blob","url","data"]};function D8(e,t){return td(e,new Gi.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,o){return Gi.isNode&&kt.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function R8(e){return kt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function I8(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 y2(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]=I8(i[s])),!a)}if(kt.isFormData(e)&&kt.isFunction(e.entries)){const r={};return kt.forEachEntry(e,(n,i)=>{t(R8(n),i,r,0)}),r}return null}function j8(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 y0={transitional:v2,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(y2(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 D8(e,this.formSerializer).toString();if((o=kt.isFileList(e))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return td(o?{"files[]":e}:e,s&&new s,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),j8(e)):e}],transformResponse:[function(e){const t=this.transitional||y0.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"?ze.from(o,ze.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:Gi.classes.FormData,Blob:Gi.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=>{y0.headers[e]={}});const _0=y0,F8=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"]),M8=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]&&F8[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},_2=Symbol("internals");function rc(e){return e&&String(e).trim().toLowerCase()}function ed(e){return e===!1||e==null?e:kt.isArray(e)?e.map(ed):String(e)}function L8(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 V8=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function b0(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 U8(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function z8(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 rd=class{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function o(a,c,l){const u=rc(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]=ed(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())&&!V8(t)?s(M8(t),r):t!=null&&o(r,t,n),this}get(t,r){if(t=rc(t),t){const n=kt.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return L8(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=rc(t),t){const n=kt.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||b0(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function o(s){if(s=rc(s),s){const a=kt.findKey(n,s);a&&(!r||b0(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||b0(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]=ed(i),delete r[o];return}const a=t?U8(o):String(o).trim();a!==o&&delete r[o],r[a]=ed(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[_2]=this[_2]={accessors:{}}).accessors,n=this.prototype;function i(o){const s=rc(o);r[s]||(z8(n,o),r[s]=!0)}return kt.isArray(t)?t.forEach(i):i(t),this}};rd.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),kt.reduceDescriptors(rd.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),kt.freezeMethods(rd);const _o=rd;function w0(e,t){const r=this||_0,n=t||r,i=_o.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 b2(e){return!!(e&&e.__CANCEL__)}function nc(e,t,r){ze.call(this,e??"canceled",ze.ERR_CANCELED,t,r),this.name="CanceledError"}kt.inherits(nc,ze,{__CANCEL__:!0});function G8(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new ze("Request failed with status code "+r.status,[ze.ERR_BAD_REQUEST,ze.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const B8=Gi.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 H8(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function q8(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function w2(e,t){return e&&!H8(t)?q8(e,t):t}const K8=Gi.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 Y8(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function X8(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 x2(e,t){let r=0;const n=X8(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 W8=typeof XMLHttpRequest<"u",J8=W8&&function(e){return new Promise(function(t,r){let n=e.data;const i=_o.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)&&(Gi.isStandardBrowserEnv||Gi.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=w2(e.baseURL,e.url);l.open(e.method.toUpperCase(),m2(u,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function h(){if(!l)return;const d=_o.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};G8(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 ze("Request aborted",ze.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new ze("Network Error",ze.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||v2;e.timeoutErrorMessage&&(d=e.timeoutErrorMessage),r(new ze(d,p.clarifyTimeoutError?ze.ETIMEDOUT:ze.ECONNABORTED,e,l)),l=null},Gi.isStandardBrowserEnv){const d=(e.withCredentials||K8(u))&&e.xsrfCookieName&&B8.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",x2(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",x2(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=d=>{l&&(r(!d||d.type?new nc(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=Y8(u);if(f&&Gi.protocols.indexOf(f)===-1){r(new ze("Unsupported protocol "+f+":",ze.ERR_BAD_REQUEST,e));return}l.send(n||null)})},x0={http:$8,xhr:J8};kt.forEach(x0,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const S2=e=>`- ${e}`,Q8=e=>kt.isFunction(e)||e===null||e===!1,$2={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,!Q8(r)&&(n=x0[(s=String(r)).toLowerCase()],n===void 0))throw new ze(`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(S2).join(`
43
- `):" "+S2(o[0]):"as no adapter specified";throw new ze("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:x0};function S0(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new nc(null,e)}function E2(e){return S0(e),e.headers=_o.from(e.headers),e.data=w0.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),$2.getAdapter(e.adapter||_0.adapter)(e).then(function(t){return S0(e),t.data=w0.call(e,e.transformResponse,t),t.headers=_o.from(t.headers),t},function(t){return b2(t)||(S0(e),t&&t.response&&(t.response.data=w0.call(e,e.transformResponse,t.response),t.response.headers=_o.from(t.response.headers))),Promise.reject(t)})}const C2=e=>e instanceof _o?e.toJSON():e;function Xa(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(C2(l),C2(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 k2="1.5.1",$0={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{$0[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const P2={};$0.transitional=function(e,t,r){function n(i,o){return"[Axios v"+k2+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,s)=>{if(e===!1)throw new ze(n(o," has been removed"+(t?" in "+t:"")),ze.ERR_DEPRECATED);return t&&!P2[o]&&(P2[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 Z8(e,t,r){if(typeof e!="object")throw new ze("options must be an object",ze.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 ze("option "+o+" must be "+c,ze.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new ze("Unknown option "+o,ze.ERR_BAD_OPTION)}}const E0={assertOptions:Z8,validators:$0},ss=E0.validators;class nd{constructor(t){this.defaults=t,this.interceptors={request:new g2,response:new g2}}request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Xa(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:o}=r;n!==void 0&&E0.assertOptions(n,{silentJSONParsing:ss.transitional(ss.boolean),forcedJSONParsing:ss.transitional(ss.boolean),clarifyTimeoutError:ss.transitional(ss.boolean)},!1),i!=null&&(kt.isFunction(i)?r.paramsSerializer={serialize:i}:E0.assertOptions(i,{encode:ss.function,serialize:ss.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=_o.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=[E2.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=E2.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=Xa(this.defaults,t);const r=w2(t.baseURL,t.url);return m2(r,t.params,t.paramsSerializer)}}kt.forEach(["delete","get","head","options"],function(e){nd.prototype[e]=function(t,r){return this.request(Xa(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(Xa(o||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}nd.prototype[e]=t(),nd.prototype[e+"Form"]=t(!0)});const id=nd,tN=class VP{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 nc(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 VP(function(r){t=r}),cancel:t}}};function eN(e){return function(t){return e.apply(null,t)}}function rN(e){return kt.isObject(e)&&e.isAxiosError===!0}const C0={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(C0).forEach(([e,t])=>{C0[t]=e});const nN=C0;function T2(e){const t=new id(e),r=Zb(id.prototype.request,t);return kt.extend(r,id.prototype,t,{allOwnKeys:!0}),kt.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return T2(Xa(e,n))},r}const Br=T2(_0);Br.Axios=id,Br.CanceledError=nc,Br.CancelToken=tN,Br.isCancel=b2,Br.VERSION=k2,Br.toFormData=td,Br.AxiosError=ze,Br.Cancel=Br.CanceledError,Br.all=function(e){return Promise.all(e)},Br.spread=eN,Br.isAxiosError=rN,Br.mergeConfig=Xa,Br.AxiosHeaders=_o,Br.formToJSON=e=>y2(kt.isHTMLForm(e)?new FormData(e):e),Br.getAdapter=$2.getAdapter,Br.HttpStatusCode=nN,Br.default=Br;var k0=function(e,t){return k0=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])},k0(e,t)};function as(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");k0(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function P0(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 ic(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 oc(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 bo(e){return typeof e=="function"}function T0(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 O0=T0(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 od(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=P0(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(bo(u))try{u()}catch(g){o=g instanceof O0?g.errors:[g]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var f=P0(h),d=f.next();!d.done;d=f.next()){var p=d.value;try{A2(p)}catch(g){o=o??[],g instanceof O0?o=oc(oc([],ic(o)),ic(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 O0(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)A2(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)&&od(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&od(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),O2=sc.EMPTY;function N2(e){return e instanceof sc||e&&"closed"in e&&bo(e.remove)&&bo(e.add)&&bo(e.unsubscribe)}function A2(e){bo(e)?e():e.unsubscribe()}var D2={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},iN={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,oc([e,t],ic(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function oN(e){iN.setTimeout(function(){throw e})}function R2(){}function sd(e){e()}var N0=function(e){as(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,N2(r)&&r.add(n)):n.destination=cN,n}return t.create=function(r,n,i){return new D0(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),sN=Function.prototype.bind;function A0(e,t){return sN.call(e,t)}var aN=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){ad(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){ad(n)}else ad(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){ad(r)}},e}(),D0=function(e){as(t,e);function t(r,n,i){var o=e.call(this)||this,s;if(bo(r)||!r)s={next:r??void 0,error:n??void 0,complete:i??void 0};else{var a;o&&D2.useDeprecatedNextContext?(a=Object.create(r),a.unsubscribe=function(){return o.unsubscribe()},s={next:r.next&&A0(r.next,a),error:r.error&&A0(r.error,a),complete:r.complete&&A0(r.complete,a)}):s=r}return o.destination=new aN(s),o}return t}(N0);function ad(e){oN(e)}function lN(e){throw e}var cN={closed:!0,next:R2,error:lN,complete:R2},uN=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function hN(e){return e}function dN(e){return e.length===0?hN:e.length===1?e[0]:function(t){return e.reduce(function(r,n){return n(r)},t)}}var I2=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=pN(t)?t:new D0(t,r,n);return sd(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=j2(r),new r(function(i,o){var s=new D0({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[uN]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return dN(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=j2(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 j2(e){var t;return(t=e??D2.Promise)!==null&&t!==void 0?t:Promise}function fN(e){return e&&bo(e.next)&&bo(e.error)&&bo(e.complete)}function pN(e){return e&&e instanceof N0||fN(e)&&N2(e)}(function(e){as(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})(N0);var mN=T0(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),gN=function(e){as(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 F2(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new mN},t.prototype.next=function(r){var n=this;sd(function(){var i,o;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var s=P0(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;sd(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;sd(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?O2:(this.currentObservers=null,a.push(r),new sc(function(){n.currentObservers=null,od(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 I2;return r.source=this,r},t.create=function(r,n){return new F2(r,n)},t}(I2),F2=function(e){as(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:O2},t}(gN),vN={now:function(){return Date.now()},delegate:void 0},yN=function(e){as(t,e);function t(r,n){return e.call(this)||this}return t.prototype.schedule=function(r,n){return this},t}(sc),R0={setInterval:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=R0.delegate;return i?.setInterval?i.setInterval.apply(i,oc([e,t],ic(r))):setInterval.apply(void 0,oc([e,t],ic(r)))},clearInterval:function(e){return clearInterval(e)},delegate:void 0},_N=function(e){as(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),R0.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&&R0.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,od(o,this),n!=null&&(this.id=this.recycleAsyncId(i,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(yN),M2=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=vN.now,e}(),bN=function(e){as(t,e);function t(r,n){n===void 0&&(n=M2.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}(M2);new bN(_N);function wN(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 L2=T0(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=wN(r)}catch{i=r.responseText}this.response=i}});(function(){function e(t,r){return L2.call(this,"ajax timeout",t,r),this.name="AjaxTimeoutError",this}return e.prototype=Object.create(L2.prototype),e})();var xN=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function On(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Wt(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 I0={exports:{}},Wa=typeof Reflect=="object"?Reflect:null,V2=Wa&&typeof Wa.apply=="function"?Wa.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)},ld;Wa&&typeof Wa.ownKeys=="function"?ld=Wa.ownKeys:Object.getOwnPropertySymbols?ld=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:ld=function(e){return Object.getOwnPropertyNames(e)};function SN(e){console&&console.warn&&console.warn(e)}var U2=Number.isNaN||function(e){return e!==e};function ir(){ir.init.call(this)}I0.exports=ir,I0.exports.once=kN,ir.EventEmitter=ir,ir.prototype._events=void 0,ir.prototype._eventsCount=0,ir.prototype._maxListeners=void 0;var z2=10;function cd(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(ir,"defaultMaxListeners",{enumerable:!0,get:function(){return z2},set:function(e){if(typeof e!="number"||e<0||U2(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");z2=e}}),ir.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},ir.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||U2(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 G2(e){return e._maxListeners===void 0?ir.defaultMaxListeners:e._maxListeners}ir.prototype.getMaxListeners=function(){return G2(this)},ir.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")V2(a,this,t);else for(var c=a.length,l=Y2(a,c),r=0;r<c;++r)V2(l[r],this,t);return!0};function B2(e,t,r,n){var i,o,s;if(cd(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=G2(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,SN(a)}return e}ir.prototype.addListener=function(e,t){return B2(this,e,t,!1)},ir.prototype.on=ir.prototype.addListener,ir.prototype.prependListener=function(e,t){return B2(this,e,t,!0)};function $N(){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 H2(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=$N.bind(n);return i.listener=r,n.wrapFn=i,i}ir.prototype.once=function(e,t){return cd(t),this.on(e,H2(this,e,t)),this},ir.prototype.prependOnceListener=function(e,t){return cd(t),this.prependListener(e,H2(this,e,t)),this},ir.prototype.removeListener=function(e,t){var r,n,i,o,s;if(cd(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():EN(r,i),r.length===1&&(n[e]=r[0]),n.removeListener!==void 0&&this.emit("removeListener",e,s||t)}return this},ir.prototype.off=ir.prototype.removeListener,ir.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 q2(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?CN(i):Y2(i,i.length)}ir.prototype.listeners=function(e){return q2(this,e,!0)},ir.prototype.rawListeners=function(e){return q2(this,e,!1)},ir.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):K2.call(e,t)},ir.prototype.listenerCount=K2;function K2(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}ir.prototype.eventNames=function(){return this._eventsCount>0?ld(this._events):[]};function Y2(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function EN(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function CN(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function kN(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))}X2(e,t,o,{once:!0}),t!=="error"&&PN(e,i,{once:!0})})}function PN(e,t,r){typeof e.on=="function"&&X2(e,"error",t,r)}function X2(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 TN=I0.exports;let Hnt=class extends TN.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 j0={exports:{}},F0={},wo={},Zs={},M0={},L0={},V0={};(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(_,...y){const m=[_[0]];let x=0;for(;x<y.length;)a(m,y[x]),m.push(_[++x]);return new n(m)}e._=i;const o=new n("+");function s(_,...y){const m=[d(_[0])];let x=0;for(;x<y.length;)m.push(o),a(m,y[x]),m.push(o,d(_[++x]));return c(m),new n(m)}e.str=s;function a(_,y){y instanceof n?_.push(...y._items):y instanceof r?_.push(y):_.push(h(y))}e.addCodeArg=a;function c(_){let y=1;for(;y<_.length-1;){if(_[y]===o){const m=l(_[y-1],_[y+1]);if(m!==void 0){_.splice(y-1,3,m);continue}_[y++]="+"}y++}}function l(_,y){if(y==='""')return _;if(_==='""')return y;if(typeof _=="string")return y instanceof r||_[_.length-1]!=='"'?void 0:typeof y!="string"?`${_.slice(0,-1)}${y}"`:y[0]==='"'?_.slice(0,-1)+y.slice(1):void 0;if(typeof y=="string"&&y[0]==='"'&&!(_ instanceof r))return`"${_}${y.slice(1)}`}function u(_,y){return y.emptyStr()?_:_.emptyStr()?y:s`${_}${y}`}e.strConcat=u;function h(_){return typeof _=="number"||typeof _=="boolean"||_===null?_:d(Array.isArray(_)?_.join(","):_)}function f(_){return new n(d(_))}e.stringify=f;function d(_){return JSON.stringify(_).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=d;function p(_){return typeof _=="string"&&e.IDENTIFIER.test(_)?new n(`.${_}`):i`[${_}]`}e.getProperty=p;function g(_){if(typeof _=="string"&&e.IDENTIFIER.test(_))return new n(`${_}`);throw new Error(`CodeGen: invalid export name: ${_}, use explicit $id name mapping`)}e.getEsmExportName=g;function v(_){return new n(_.toString())}e.regexpCode=v})(V0);const ON=On(V0),NN=Xt({__proto__:null,default:ON},[V0]),ac=Wt(NN);var U0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=ac;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]=[]),_=v.length;return v[_]=u.ref,f.setValue(u,{property:d,itemIndex:_}),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(_=>{if(v.has(_))return;v.set(_,n.Started);let y=u(_);if(y){const m=this.opts.es5?e.varKinds.var:e.varKinds.const;d=(0,t._)`${d}${m} ${_} = ${y};${this.opts._n}`}else if(y=f?.(_))d=(0,t._)`${d}${y}${this.opts._n}`;else throw new r(_);v.set(_,n.Completed)})}return d}}e.ValueScope=a})(U0);const AN=On(U0),DN=Xt({__proto__:null,default:AN},[U0]),W2=Wt(DN);(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=ac,r=W2;var n=ac;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=W2;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(b,P){return this}}class s extends o{constructor(b,P,M){super(),this.varKind=b,this.name=P,this.rhs=M}render({es5:b,_n:P}){const M=b?r.varKinds.var:this.varKind,I=this.rhs===void 0?"":` = ${this.rhs}`;return`${M} ${this.name}${I};`+P}optimizeNames(b,P){if(b[this.name.str])return this.rhs&&(this.rhs=nt(this.rhs,b,P)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class a extends o{constructor(b,P,M){super(),this.lhs=b,this.rhs=P,this.sideEffects=M}render({_n:b}){return`${this.lhs} = ${this.rhs};`+b}optimizeNames(b,P){if(!(this.lhs instanceof t.Name&&!b[this.lhs.str]&&!this.sideEffects))return this.rhs=nt(this.rhs,b,P),this}get names(){const b=this.lhs instanceof t.Name?{}:{...this.lhs.names};return it(b,this.rhs)}}class c extends a{constructor(b,P,M,I){super(b,M,I),this.op=P}render({_n:b}){return`${this.lhs} ${this.op}= ${this.rhs};`+b}}class l extends o{constructor(b){super(),this.label=b,this.names={}}render({_n:b}){return`${this.label}:`+b}}class u extends o{constructor(b){super(),this.label=b,this.names={}}render({_n:b}){return`break${this.label?` ${this.label}`:""};`+b}}class h extends o{constructor(b){super(),this.error=b}render({_n:b}){return`throw ${this.error};`+b}get names(){return this.error.names}}class f extends o{constructor(b){super(),this.code=b}render({_n:b}){return`${this.code};`+b}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(b,P){return this.code=nt(this.code,b,P),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class d extends o{constructor(b=[]){super(),this.nodes=b}render(b){return this.nodes.reduce((P,M)=>P+M.render(b),"")}optimizeNodes(){const{nodes:b}=this;let P=b.length;for(;P--;){const M=b[P].optimizeNodes();Array.isArray(M)?b.splice(P,1,...M):M?b[P]=M:b.splice(P,1)}return b.length>0?this:void 0}optimizeNames(b,P){const{nodes:M}=this;let I=M.length;for(;I--;){const G=M[I];G.optimizeNames(b,P)||(ft(b,G.names),M.splice(I,1))}return M.length>0?this:void 0}get names(){return this.nodes.reduce((b,P)=>Y(b,P.names),{})}}class p extends d{render(b){return"{"+b._n+super.render(b)+"}"+b._n}}class g extends d{}class v extends p{}v.kind="else";class _ extends p{constructor(b,P){super(P),this.condition=b}render(b){let P=`if(${this.condition})`+super.render(b);return this.else&&(P+="else "+this.else.render(b)),P}optimizeNodes(){super.optimizeNodes();const b=this.condition;if(b===!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 b===!1?P instanceof _?P:P.nodes:this.nodes.length?this:new _(xt(b),P instanceof _?[P]:P.nodes);if(!(b===!1||!this.nodes.length))return this}optimizeNames(b,P){var M;if(this.else=(M=this.else)===null||M===void 0?void 0:M.optimizeNames(b,P),!!(super.optimizeNames(b,P)||this.else))return this.condition=nt(this.condition,b,P),this}get names(){const b=super.names;return it(b,this.condition),this.else&&Y(b,this.else.names),b}}_.kind="if";class y extends p{}y.kind="for";class m extends y{constructor(b){super(),this.iteration=b}render(b){return`for(${this.iteration})`+super.render(b)}optimizeNames(b,P){if(super.optimizeNames(b,P))return this.iteration=nt(this.iteration,b,P),this}get names(){return Y(super.names,this.iteration.names)}}class x extends y{constructor(b,P,M,I){super(),this.varKind=b,this.name=P,this.from=M,this.to=I}render(b){const P=b.es5?r.varKinds.var:this.varKind,{name:M,from:I,to:G}=this;return`for(${P} ${M}=${I}; ${M}<${G}; ${M}++)`+super.render(b)}get names(){const b=it(super.names,this.from);return it(b,this.to)}}class N extends y{constructor(b,P,M,I){super(),this.loop=b,this.varKind=P,this.name=M,this.iterable=I}render(b){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(b)}optimizeNames(b,P){if(super.optimizeNames(b,P))return this.iterable=nt(this.iterable,b,P),this}get names(){return Y(super.names,this.iterable.names)}}class $ extends p{constructor(b,P,M){super(),this.name=b,this.args=P,this.async=M}render(b){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(b)}}$.kind="func";class k extends d{render(b){return"return "+super.render(b)}}k.kind="return";class D extends p{render(b){let P="try"+super.render(b);return this.catch&&(P+=this.catch.render(b)),this.finally&&(P+=this.finally.render(b)),P}optimizeNodes(){var b,P;return super.optimizeNodes(),(b=this.catch)===null||b===void 0||b.optimizeNodes(),(P=this.finally)===null||P===void 0||P.optimizeNodes(),this}optimizeNames(b,P){var M,I;return super.optimizeNames(b,P),(M=this.catch)===null||M===void 0||M.optimizeNames(b,P),(I=this.finally)===null||I===void 0||I.optimizeNames(b,P),this}get names(){const b=super.names;return this.catch&&Y(b,this.catch.names),this.finally&&Y(b,this.finally.names),b}}class V extends p{constructor(b){super(),this.error=b}render(b){return`catch(${this.error})`+super.render(b)}}V.kind="catch";class U extends p{render(b){return"finally"+super.render(b)}}U.kind="finally";class K{constructor(b,P={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...P,_n:P.lines?`
46
- `:""},this._extScope=b,this._scope=new r.Scope({parent:b}),this._nodes=[new g]}toString(){return this._root.render(this.opts)}name(b){return this._scope.name(b)}scopeName(b){return this._extScope.name(b)}scopeValue(b,P){const M=this._extScope.value(b,P);return(this._values[M.prefix]||(this._values[M.prefix]=new Set)).add(M),M}getScopeValue(b,P){return this._extScope.getValue(b,P)}scopeRefs(b){return this._extScope.scopeRefs(b,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(b,P,M,I){const G=this._scope.toName(P);return M!==void 0&&I&&(this._constants[G.str]=M),this._leafNode(new s(b,G,M)),G}const(b,P,M){return this._def(r.varKinds.const,b,P,M)}let(b,P,M){return this._def(r.varKinds.let,b,P,M)}var(b,P,M){return this._def(r.varKinds.var,b,P,M)}assign(b,P,M){return this._leafNode(new a(b,P,M))}add(b,P){return this._leafNode(new c(b,e.operators.ADD,P))}code(b){return typeof b=="function"?b():b!==t.nil&&this._leafNode(new f(b)),this}object(...b){const P=["{"];for(const[M,I]of b)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(b,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(b){return this._elseNode(new _(b))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(_,v)}_for(b,P){return this._blockNode(b),P&&this.code(P).endFor(),this}for(b,P){return this._for(new m(b),P)}forRange(b,P,M,I,G=this.opts.es5?r.varKinds.var:r.varKinds.let){const q=this._scope.toName(b);return this._for(new x(G,q,P,M),()=>I(q))}forOf(b,P,M,I=r.varKinds.const){const G=this._scope.toName(b);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 N("of",I,G,P),()=>M(G))}forIn(b,P,M,I=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(b,(0,t._)`Object.keys(${P})`,M);const G=this._scope.toName(b);return this._for(new N("in",I,G,P),()=>M(G))}endFor(){return this._endBlockNode(y)}label(b){return this._leafNode(new l(b))}break(b){return this._leafNode(new u(b))}return(b){const P=new k;if(this._blockNode(P),this.code(b),P.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(k)}try(b,P,M){if(!P&&!M)throw new Error('CodeGen: "try" without "catch" and "finally"');const I=new D;if(this._blockNode(I),this.code(b),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(b){return this._leafNode(new h(b))}block(b,P){return this._blockStarts.push(this._nodes.length),b&&this.code(b).endBlock(P),this}endBlock(b){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||b!==void 0&&M!==b)throw new Error(`CodeGen: wrong number of nodes: ${M} vs ${b} expected`);return this._nodes.length=P,this}func(b,P=t.nil,M,I){return this._blockNode(new $(b,P,M)),I&&this.code(I).endFunc(),this}endFunc(){return this._endBlockNode($)}optimize(b=1){for(;b-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(b){return this._currNode.nodes.push(b),this}_blockNode(b){this._currNode.nodes.push(b),this._nodes.push(b)}_endBlockNode(b,P){const M=this._currNode;if(M instanceof b||P&&M instanceof P)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${P?`${b.kind}/${P.kind}`:b.kind}"`)}_elseNode(b){const P=this._currNode;if(!(P instanceof _))throw new Error('CodeGen: "else" without "if"');return this._currNode=P.else=b,this}get _root(){return this._nodes[0]}get _currNode(){const b=this._nodes;return b[b.length-1]}set _currNode(b){const P=this._nodes;P[P.length-1]=b}}e.CodeGen=K;function Y(E,b){for(const P in b)E[P]=(E[P]||0)+(b[P]||0);return E}function it(E,b){return b instanceof t._CodeOrName?Y(E,b.names):E}function nt(E,b,P){if(E instanceof t.Name)return M(E);if(!I(E))return E;return new t._Code(E._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||b[G.str]!==1?G:(delete b[G.str],q)}function I(G){return G instanceof t._Code&&G._items.some(q=>q instanceof t.Name&&b[q.str]===1&&P[q.str]!==void 0)}}function ft(E,b){for(const P in b)E[P]=(E[P]||0)-(b[P]||0)}function xt(E){return typeof E=="boolean"||typeof E=="number"||E===null?!E:(0,t._)`!${C(E)}`}e.not=xt;const _t=O(e.operators.AND);function yt(...E){return E.reduce(_t)}e.and=yt;const at=O(e.operators.OR);function X(...E){return E.reduce(at)}e.or=X;function O(E){return(b,P)=>b===t.nil?P:P===t.nil?b:(0,t._)`${C(b)} ${E} ${C(P)}`}function C(E){return E instanceof t.Name?E:(0,t._)`(${E})`}})(L0);const RN=On(L0),IN=Xt({__proto__:null,default:RN},[L0]),Oe=Wt(IN);var z0={};(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=Oe,r=ac;function n($){const k={};for(const D of $)k[D]=!0;return k}e.toHash=n;function i($,k){return typeof k=="boolean"?k:Object.keys(k).length===0?!0:(o($,k),!s(k,$.self.RULES.all))}e.alwaysValidSchema=i;function o($,k=$.schema){const{opts:D,self:V}=$;if(!D.strictSchema||typeof k=="boolean")return;const U=V.RULES.keywords;for(const K in k)U[K]||N($,`unknown keyword: "${K}"`)}e.checkUnknownRules=o;function s($,k){if(typeof $=="boolean")return!$;for(const D in $)if(k[D])return!0;return!1}e.schemaHasRules=s;function a($,k){if(typeof $=="boolean")return!$;for(const D in $)if(D!=="$ref"&&k.all[D])return!0;return!1}e.schemaHasRulesButRef=a;function c({topSchemaRef:$,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._)`${$}${k}${(0,t.getProperty)(V)}`}e.schemaRefOrVal=c;function l($){return f(decodeURIComponent($))}e.unescapeFragment=l;function u($){return encodeURIComponent(h($))}e.escapeFragment=u;function h($){return typeof $=="number"?`${$}`:$.replace(/~/g,"~0").replace(/\//g,"~1")}e.escapeJsonPointer=h;function f($){return $.replace(/~1/g,"/").replace(/~0/g,"~")}e.unescapeJsonPointer=f;function d($,k){if(Array.isArray($))for(const D of $)k(D);else k($)}e.eachItem=d;function p({mergeNames:$,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?$(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:($,k,D)=>$.if((0,t._)`${D} !== true && ${k} !== undefined`,()=>{$.if((0,t._)`${k} === true`,()=>$.assign(D,!0),()=>$.assign(D,(0,t._)`${D} || {}`).code((0,t._)`Object.assign(${D}, ${k})`))}),mergeToName:($,k,D)=>$.if((0,t._)`${D} !== true`,()=>{k===!0?$.assign(D,!0):($.assign(D,(0,t._)`${D} || {}`),v($,D,k))}),mergeValues:($,k)=>$===!0?!0:{...$,...k},resultToName:g}),items:p({mergeNames:($,k,D)=>$.if((0,t._)`${D} !== true && ${k} !== undefined`,()=>$.assign(D,(0,t._)`${k} === true ? true : ${D} > ${k} ? ${D} : ${k}`)),mergeToName:($,k,D)=>$.if((0,t._)`${D} !== true`,()=>$.assign(D,k===!0?!0:(0,t._)`${D} > ${k} ? ${D} : ${k}`)),mergeValues:($,k)=>$===!0?!0:Math.max($,k),resultToName:($,k)=>$.var("items",k)})};function g($,k){if(k===!0)return $.var("props",!0);const D=$.var("props",(0,t._)`{}`);return k!==void 0&&v($,D,k),D}e.evaluatedPropsToName=g;function v($,k,D){Object.keys(D).forEach(V=>$.assign((0,t._)`${k}${(0,t.getProperty)(V)}`,!0))}e.setEvaluated=v;const _={};function y($,k){return $.scopeValue("func",{ref:k,code:_[k.code]||(_[k.code]=new r._Code(k.code))})}e.useFunc=y;var m;(function($){$[$.Num=0]="Num",$[$.Str=1]="Str"})(m=e.Type||(e.Type={}));function x($,k,D){if($ instanceof t.Name){const V=k===m.Num;return D?V?(0,t._)`"[" + ${$} + "]"`:(0,t._)`"['" + ${$} + "']"`:V?(0,t._)`"/" + ${$}`:(0,t._)`"/" + ${$}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return D?(0,t.getProperty)($).toString():"/"+h($)}e.getErrorPath=x;function N($,k,D=$.opts.strictSchema){if(D){if(k=`strict mode: ${k}`,D===!0)throw new Error(k);$.self.logger.warn(k)}}e.checkStrictMode=N})(z0);const jN=On(z0),FN=Xt({__proto__:null,default:jN},[z0]),Ke=Wt(FN);var G0={};Object.defineProperty(G0,"__esModule",{value:!0});const un=Oe,MN={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 LN=G0.default=MN;const VN=Xt({__proto__:null,default:LN},[G0]),xo=Wt(VN);(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=Oe,r=Ke,n=xo;e.keywordError={message:({keyword:v})=>(0,t.str)`must pass "${v}" keyword validation`},e.keyword$DataError={message:({keyword:v,schemaType:_})=>_?(0,t.str)`"${v}" keyword must be ${_} ($data)`:(0,t.str)`"${v}" keyword is invalid ($data)`};function i(v,_=e.keywordError,y,m){const{it:x}=v,{gen:N,compositeRule:$,allErrors:k}=x,D=h(v,_,y);m??($||k)?c(N,D):l(x,(0,t._)`[${D}]`)}e.reportError=i;function o(v,_=e.keywordError,y){const{it:m}=v,{gen:x,compositeRule:N,allErrors:$}=m,k=h(v,_,y);c(x,k),N||$||l(m,n.default.vErrors)}e.reportExtraError=o;function s(v,_){v.assign(n.default.errors,_),v.if((0,t._)`${n.default.vErrors} !== null`,()=>v.if(_,()=>v.assign((0,t._)`${n.default.vErrors}.length`,_),()=>v.assign(n.default.vErrors,null)))}e.resetErrorsCount=s;function a({gen:v,keyword:_,schemaValue:y,data:m,errsCount:x,it:N}){if(x===void 0)throw new Error("ajv implementation error");const $=v.name("err");v.forRange("i",x,n.default.errors,k=>{v.const($,(0,t._)`${n.default.vErrors}[${k}]`),v.if((0,t._)`${$}.instancePath === undefined`,()=>v.assign((0,t._)`${$}.instancePath`,(0,t.strConcat)(n.default.instancePath,N.errorPath))),v.assign((0,t._)`${$}.schemaPath`,(0,t.str)`${N.errSchemaPath}/${_}`),N.opts.verbose&&(v.assign((0,t._)`${$}.schema`,y),v.assign((0,t._)`${$}.data`,m))})}e.extendErrors=a;function c(v,_){const y=v.const("err",_);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,_){const{gen:y,validateName:m,schemaEnv:x}=v;x.$async?y.throw((0,t._)`new ${v.ValidationError}(${_})`):(y.assign((0,t._)`${m}.errors`,_),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,_,y){const{createErrors:m}=v.it;return m===!1?(0,t._)`{}`:f(v,_,y)}function f(v,_,y={}){const{gen:m,it:x}=v,N=[d(x,y),p(v,y)];return g(v,_,N),m.object(...N)}function d({errorPath:v},{instancePath:_}){const y=_?(0,t.str)`${v}${(0,r.getErrorPath)(_,r.Type.Str)}`:v;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,y)]}function p({keyword:v,it:{errSchemaPath:_}},{schemaPath:y,parentSchema:m}){let x=m?_:(0,t.str)`${_}/${v}`;return y&&(x=(0,t.str)`${x}${(0,r.getErrorPath)(y,r.Type.Str)}`),[u.schemaPath,x]}function g(v,{params:_,message:y},m){const{keyword:x,data:N,schemaValue:$,it:k}=v,{opts:D,propertyName:V,topSchemaRef:U,schemaPath:K}=k;m.push([u.keyword,x],[u.params,typeof _=="function"?_(v):_||(0,t._)`{}`]),D.messages&&m.push([u.message,typeof y=="function"?y(v):y]),D.verbose&&m.push([u.schema,$],[u.parentSchema,(0,t._)`${U}${K}`],[n.default.data,N]),V&&m.push([u.propertyName,V])}})(M0);const UN=On(M0),zN=Xt({__proto__:null,default:UN},[M0]),lc=Wt(zN);Object.defineProperty(Zs,"__esModule",{value:!0});var J2=Zs.boolOrEmptySchema=Q2=Zs.topBoolOrEmptySchema=void 0;const GN=lc,BN=Oe,HN=xo,qN={message:"boolean schema is false"};function KN(e){const{gen:t,schema:r,validateName:n}=e;r===!1?Z2(e,!1):typeof r=="object"&&r.$async===!0?t.return(HN.default.data):(t.assign((0,BN._)`${n}.errors`,null),t.return(!0))}var Q2=Zs.topBoolOrEmptySchema=KN;function YN(e,t){const{gen:r,schema:n}=e;n===!1?(r.var(t,!1),Z2(e)):r.var(t,!0)}J2=Zs.boolOrEmptySchema=YN;function Z2(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,GN.reportError)(i,qN,void 0,t)}const XN=Xt({__proto__:null,get boolOrEmptySchema(){return J2},default:Zs,get topBoolOrEmptySchema(){return Q2}},[Zs]),WN=Wt(XN);var B0={},ta={};Object.defineProperty(ta,"__esModule",{value:!0});var tw=ta.getRules=ew=ta.isJSONType=void 0;const JN=["string","number","integer","boolean","null","object","array"],QN=new Set(JN);function ZN(e){return typeof e=="string"&&QN.has(e)}var ew=ta.isJSONType=ZN;function tA(){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:{}}}tw=ta.getRules=tA;const eA=Xt({__proto__:null,default:ta,get getRules(){return tw},get isJSONType(){return ew}},[ta]),rw=Wt(eA);var So={};Object.defineProperty(So,"__esModule",{value:!0});var nw=So.shouldUseRule=sw=So.shouldUseGroup=iw=So.schemaHasRulesForType=void 0;function rA({schema:e,self:t},r){const n=t.RULES.types[r];return n&&n!==!0&&ow(e,n)}var iw=So.schemaHasRulesForType=rA;function ow(e,t){return t.rules.some(r=>aw(e,r))}var sw=So.shouldUseGroup=ow;function aw(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))}nw=So.shouldUseRule=aw;const nA=Xt({__proto__:null,default:So,get schemaHasRulesForType(){return iw},get shouldUseGroup(){return sw},get shouldUseRule(){return nw}},[So]),lw=Wt(nA);(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=rw,r=lw,n=lc,i=Oe,o=Ke;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:N,data:$,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,$,k.strictNumbers,s.Wrong);N.if(U,()=>{D.length?f(m,x,D):_(m)})}return V}e.coerceAndCheckDataType=l;const u=new Set(["string","number","integer","boolean","null"]);function h(m,x){return x?m.filter(N=>u.has(N)||x==="array"&&N==="array"):[]}function f(m,x,N){const{gen:$,data:k,opts:D}=m,V=$.let("dataType",(0,i._)`typeof ${k}`),U=$.let("coerced",(0,i._)`undefined`);D.coerceTypes==="array"&&$.if((0,i._)`${V} == 'object' && Array.isArray(${k}) && ${k}.length == 1`,()=>$.assign(k,(0,i._)`${k}[0]`).assign(V,(0,i._)`typeof ${k}`).if(g(x,k,D.strictNumbers),()=>$.assign(U,k))),$.if((0,i._)`${U} !== undefined`);for(const Y of N)(u.has(Y)||Y==="array"&&D.coerceTypes==="array")&&K(Y);$.else(),_(m),$.endIf(),$.if((0,i._)`${U} !== undefined`,()=>{$.assign(k,U),d(m,U)});function K(Y){switch(Y){case"string":$.elseIf((0,i._)`${V} == "number" || ${V} == "boolean"`).assign(U,(0,i._)`"" + ${k}`).elseIf((0,i._)`${k} === null`).assign(U,(0,i._)`""`);return;case"number":$.elseIf((0,i._)`${V} == "boolean" || ${k} === null
47
- || (${V} == "string" && ${k} && ${k} == +${k})`).assign(U,(0,i._)`+${k}`);return;case"integer":$.elseIf((0,i._)`${V} === "boolean" || ${k} === null
48
- || (${V} === "string" && ${k} && ${k} == +${k} && !(${k} % 1))`).assign(U,(0,i._)`+${k}`);return;case"boolean":$.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":$.elseIf((0,i._)`${k} === "" || ${k} === 0 || ${k} === false`),$.assign(U,null);return;case"array":$.elseIf((0,i._)`${V} === "string" || ${V} === "number"
49
- || ${V} === "boolean" || ${k} === null`).assign(U,(0,i._)`[${k}]`)}}}function d({gen:m,parentData:x,parentDataProperty:N},$){m.if((0,i._)`${x} !== undefined`,()=>m.assign((0,i._)`${x}[${N}]`,$))}function p(m,x,N,$=s.Correct){const k=$===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 $===s.Correct?D:(0,i.not)(D);function V(U=i.nil){return(0,i.and)((0,i._)`typeof ${x} == "number"`,U,N?(0,i._)`isFinite(${x})`:i.nil)}}e.checkDataType=p;function g(m,x,N,$){if(m.length===1)return p(m[0],x,N,$);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,N,$));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 _(m){const x=y(m);(0,n.reportError)(x,v)}e.reportTypeError=_;function y(m){const{gen:x,data:N,schema:$}=m,k=(0,o.schemaRefOrVal)(m,$,"type");return{gen:x,keyword:"type",data:N,schema:$.type,schemaCode:k,schemaValue:k,parentSchema:$,params:{},it:m}}})(B0);const iA=On(B0),oA=Xt({__proto__:null,default:iA},[B0]),ud=Wt(oA);var cc={};Object.defineProperty(cc,"__esModule",{value:!0});var cw=cc.assignDefaults=void 0;const Ja=Oe,sA=Ke;function aA(e,t){const{properties:r,items:n}=e.schema;if(t==="object"&&r)for(const i in r)uw(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,o)=>uw(e,o,i.default))}cw=cc.assignDefaults=aA;function uw(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,sA.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 lA=Xt({__proto__:null,get assignDefaults(){return cw},default:cc},[cc]),cA=Wt(lA);var wi={},er={};Object.defineProperty(er,"__esModule",{value:!0});var hw=er.validateUnion=Ew=er.validateArray=$w=er.usePattern=Sw=er.callValidateCode=xw=er.schemaProperties=ww=er.allSchemaProperties=_w=er.noPropertyInData=yw=er.propertyInData=vw=er.isOwnProperty=gw=er.hasPropFunc=pw=er.reportMissingProp=fw=er.checkMissingProp=dw=er.checkReportMissingProp=void 0;const yr=Oe,H0=Ke,ls=xo,uA=Ke;function hA(e,t){const{gen:r,data:n,it:i}=e;r.if(K0(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,yr._)`${t}`},!0),e.error()})}var dw=er.checkReportMissingProp=hA;function dA({gen:e,data:t,it:{opts:r}},n,i){return(0,yr.or)(...n.map(o=>(0,yr.and)(K0(e,t,o,r.ownProperties),(0,yr._)`${i} = ${o}`)))}var fw=er.checkMissingProp=dA;function fA(e,t){e.setParams({missingProperty:t},!0),e.error()}var pw=er.reportMissingProp=fA;function mw(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,yr._)`Object.prototype.hasOwnProperty`})}var gw=er.hasPropFunc=mw;function q0(e,t,r){return(0,yr._)`${mw(e)}.call(${t}, ${r})`}var vw=er.isOwnProperty=q0;function pA(e,t,r,n){const i=(0,yr._)`${t}${(0,yr.getProperty)(r)} !== undefined`;return n?(0,yr._)`${i} && ${q0(e,t,r)}`:i}var yw=er.propertyInData=pA;function K0(e,t,r,n){const i=(0,yr._)`${t}${(0,yr.getProperty)(r)} === undefined`;return n?(0,yr.or)(i,(0,yr.not)(q0(e,t,r))):i}var _w=er.noPropertyInData=K0;function bw(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}var ww=er.allSchemaProperties=bw;function mA(e,t){return bw(t).filter(r=>!(0,H0.alwaysValidSchema)(e,t[r]))}var xw=er.schemaProperties=mA;function gA({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:s},a,c,l){const u=l?(0,yr._)`${e}, ${t}, ${n}${i}`:t,h=[[ls.default.instancePath,(0,yr.strConcat)(ls.default.instancePath,o)],[ls.default.parentData,s.parentData],[ls.default.parentDataProperty,s.parentDataProperty],[ls.default.rootData,ls.default.rootData]];s.opts.dynamicRef&&h.push([ls.default.dynamicAnchors,ls.default.dynamicAnchors]);const f=(0,yr._)`${u}, ${r.object(...h)}`;return c!==yr.nil?(0,yr._)`${a}.call(${c}, ${f})`:(0,yr._)`${a}(${f})`}var Sw=er.callValidateCode=gA;const vA=(0,yr._)`new RegExp`;function yA({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,yr._)`${i.code==="new RegExp"?vA:(0,uA.useFunc)(e,i)}(${r}, ${n})`})}var $w=er.usePattern=yA;function _A(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,yr._)`${r}.length`);t.forRange("i",0,c,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:H0.Type.Num},o),t.if((0,yr.not)(o),a)})}}var Ew=er.validateArray=_A;function bA(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,H0.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,yr._)`${o} || ${s}`),e.mergeValidEvaluated(l,s)||t.if((0,yr.not)(o))})),e.result(o,()=>e.reset(),()=>e.error(!0))}hw=er.validateUnion=bA;const wA=Xt({__proto__:null,get allSchemaProperties(){return ww},get callValidateCode(){return Sw},get checkMissingProp(){return fw},get checkReportMissingProp(){return dw},default:er,get hasPropFunc(){return gw},get isOwnProperty(){return vw},get noPropertyInData(){return _w},get propertyInData(){return yw},get reportMissingProp(){return pw},get schemaProperties(){return xw},get usePattern(){return $w},get validateArray(){return Ew},get validateUnion(){return hw}},[er]),xi=Wt(wA);Object.defineProperty(wi,"__esModule",{value:!0});var Cw=wi.validateKeywordUsage=Nw=wi.validSchemaType=Pw=wi.funcKeywordCode=kw=wi.macroKeywordCode=void 0;const gn=Oe,ea=xo,xA=xi,SA=lc;function $A(e,t){const{gen:r,keyword:n,schema:i,parentSchema:o,it:s}=e,a=t.macro.call(s.self,i,o,s),c=Ow(r,n,a);s.opts.validateSchema!==!1&&s.self.validateSchema(a,!0);const l=r.name("valid");e.subschema({schema:a,schemaPath:gn.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}var kw=wi.macroKeywordCode=$A;function EA(e,t){var r;const{gen:n,keyword:i,schema:o,parentSchema:s,$data:a,it:c}=e;kA(c,t);const l=!a&&t.compile?t.compile.call(c.self,o,s,c):t.validate,u=Ow(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&&Tw(e),v(()=>e.error());else{const _=t.async?d():p();t.modifying&&Tw(e),v(()=>CA(e,_))}}function d(){const _=n.let("ruleErrs",null);return n.try(()=>g((0,gn._)`await `),y=>n.assign(h,!1).if((0,gn._)`${y} instanceof ${c.ValidationError}`,()=>n.assign(_,(0,gn._)`${y}.errors`),()=>n.throw(y))),_}function p(){const _=(0,gn._)`${u}.errors`;return n.assign(_,null),g(gn.nil),_}function g(_=t.async?(0,gn._)`await `:gn.nil){const y=c.opts.passContext?ea.default.this:ea.default.self,m=!("compile"in t&&!a||t.schema===!1);n.assign(h,(0,gn._)`${_}${(0,xA.callValidateCode)(e,u,y,m)}`,t.modifying)}function v(_){var y;n.if((0,gn.not)((y=t.valid)!==null&&y!==void 0?y:h),_)}}var Pw=wi.funcKeywordCode=EA;function Tw(e){const{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,gn._)`${n.parentData}[${n.parentDataProperty}]`))}function CA(e,t){const{gen:r}=e;r.if((0,gn._)`Array.isArray(${t})`,()=>{r.assign(ea.default.vErrors,(0,gn._)`${ea.default.vErrors} === null ? ${t} : ${ea.default.vErrors}.concat(${t})`).assign(ea.default.errors,(0,gn._)`${ea.default.vErrors}.length`),(0,SA.extendErrors)(e)},()=>e.error())}function kA({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function Ow(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,gn.stringify)(r)})}function PA(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 Nw=wi.validSchemaType=PA;function TA({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)}}Cw=wi.validateKeywordUsage=TA;const OA=Xt({__proto__:null,default:wi,get funcKeywordCode(){return Pw},get macroKeywordCode(){return kw},get validSchemaType(){return Nw},get validateKeywordUsage(){return Cw}},[wi]),NA=Wt(OA);var $o={};Object.defineProperty($o,"__esModule",{value:!0});var Aw=$o.extendSubschemaMode=Iw=$o.extendSubschemaData=Rw=$o.getSubschema=void 0;const Bi=Oe,Dw=Ke;function AA(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,Bi._)`${e.schemaPath}${(0,Bi.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,Bi._)`${e.schemaPath}${(0,Bi.getProperty)(t)}${(0,Bi.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,Dw.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 Rw=$o.getSubschema=AA;function DA(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,Bi._)`${t.data}${(0,Bi.getProperty)(r)}`,!0);c(f),e.errorPath=(0,Bi.str)`${l}${(0,Dw.getErrorPath)(r,n,h.jsPropertySyntax)}`,e.parentDataProperty=(0,Bi._)`${r}`,e.dataPathArr=[...u,e.parentDataProperty]}if(i!==void 0){const l=i instanceof Bi.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 Iw=$o.extendSubschemaData=DA;function RA(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}Aw=$o.extendSubschemaMode=RA;const IA=Xt({__proto__:null,default:$o,get extendSubschemaData(){return Iw},get extendSubschemaMode(){return Aw},get getSubschema(){return Rw}},[$o]),jA=Wt(IA);var vn={},jw=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 FA=On(jw),MA=Xt({__proto__:null,default:FA},[jw]),Fw=Wt(MA);var Mw={exports:{}},cs=Mw.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(){};hd(t,n,i,e,"",e)};cs.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},cs.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},cs.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},cs.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 hd(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 cs.arrayKeywords)for(var f=0;f<h.length;f++)hd(e,t,r,h[f],i+"/"+u+"/"+f,o,i,u,n,f)}else if(u in cs.propsKeywords){if(h&&typeof h=="object")for(var d in h)hd(e,t,r,h[d],i+"/"+u+"/"+LA(d),o,i,u,n,d)}else(u in cs.keywords||e.allKeys&&!(u in cs.skipKeywords))&&hd(e,t,r,h,i+"/"+u,o,i,u,n)}r(n,i,o,s,a,c,l)}}function LA(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}var Lw=Mw.exports;const VA=On(Lw),UA=Xt({__proto__:null,default:VA},[Lw]),zA=Wt(UA);Object.defineProperty(vn,"__esModule",{value:!0});var Vw=vn.getSchemaRefs=Yw=vn.resolveUrl=Kw=vn.normalizeId=qw=vn._getFullPath=Bw=vn.getFullPath=Uw=vn.inlineRef=void 0;const GA=Ke,BA=Fw,HA=zA,qA=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function KA(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Y0(e):t?zw(e)<=t:!1}var Uw=vn.inlineRef=KA;const YA=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Y0(e){for(const t in e){if(YA.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(Y0)||typeof r=="object"&&Y0(r))return!0}return!1}function zw(e){let t=0;for(const r in e)if(r==="$ref"||(t++,!qA.has(r)&&(typeof e[r]=="object"&&(0,GA.eachItem)(e[r],n=>t+=zw(n)),t===1/0)))return 1/0;return t}function Gw(e,t="",r){r!==!1&&(t=Qa(t));const n=e.parse(t);return Hw(e,n)}var Bw=vn.getFullPath=Gw;function Hw(e,t){return e.serialize(t).split("#")[0]+"#"}var qw=vn._getFullPath=Hw;const XA=/#\/?$/;function Qa(e){return e?e.replace(XA,""):""}var Kw=vn.normalizeId=Qa;function WA(e,t,r){return r=Qa(r),e.resolve(t,r)}var Yw=vn.resolveUrl=WA;const JA=/^[a-z_][-a-z0-9._]*$/i;function QA(e,t){if(typeof e=="boolean")return{};const{schemaId:r,uriResolver:n}=this.opts,i=Qa(e[r]||t),o={"":i},s=Gw(n,i,!1),a={},c=new Set;return HA(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=_.call(this,h[r])),y.call(this,h.$anchor),y.call(this,h.$dynamicAnchor),o[f]=v;function _(m){const x=this.opts.uriResolver.resolve;if(m=Qa(v?x(v,m):m),c.has(m))throw u(m);c.add(m);let N=this.refs[m];return typeof N=="string"&&(N=this.refs[N]),typeof N=="object"?l(h,N.schema,m):m!==Qa(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}"`);_.call(this,`#${m}`)}}}),a;function l(h,f,d){if(f!==void 0&&!BA(h,f))throw u(d)}function u(h){return new Error(`reference "${h}" resolves to more than one schema`)}}Vw=vn.getSchemaRefs=QA;const ZA=Xt({__proto__:null,get _getFullPath(){return qw},default:vn,get getFullPath(){return Bw},get getSchemaRefs(){return Vw},get inlineRef(){return Uw},get normalizeId(){return Kw},get resolveUrl(){return Yw}},[vn]),dd=Wt(ZA);Object.defineProperty(wo,"__esModule",{value:!0});var Xw=wo.getData=ux=wo.KeywordCxt=Qw=wo.validateFunctionCode=void 0;const Ww=WN,Jw=ud,X0=lw,fd=ud,t9=cA,uc=NA,W0=jA,ne=Oe,ve=xo,e9=dd,Eo=Ke,hc=lc;function r9(e){if(rx(e)&&(nx(e),ex(e))){o9(e);return}Zw(e,()=>(0,Ww.topBoolOrEmptySchema)(e))}var Qw=wo.validateFunctionCode=r9;function Zw({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},o){i.code.es5?e.func(t,(0,ne._)`${ve.default.data}, ${ve.default.valCxt}`,n.$async,()=>{e.code((0,ne._)`"use strict"; ${tx(r,i)}`),i9(e,i),e.code(o)}):e.func(t,(0,ne._)`${ve.default.data}, ${n9(i)}`,n.$async,()=>e.code(tx(r,i)).code(o))}function n9(e){return(0,ne._)`{${ve.default.instancePath}="", ${ve.default.parentData}, ${ve.default.parentDataProperty}, ${ve.default.rootData}=${ve.default.data}${e.dynamicRef?(0,ne._)`, ${ve.default.dynamicAnchors}={}`:ne.nil}}={}`}function i9(e,t){e.if(ve.default.valCxt,()=>{e.var(ve.default.instancePath,(0,ne._)`${ve.default.valCxt}.${ve.default.instancePath}`),e.var(ve.default.parentData,(0,ne._)`${ve.default.valCxt}.${ve.default.parentData}`),e.var(ve.default.parentDataProperty,(0,ne._)`${ve.default.valCxt}.${ve.default.parentDataProperty}`),e.var(ve.default.rootData,(0,ne._)`${ve.default.valCxt}.${ve.default.rootData}`),t.dynamicRef&&e.var(ve.default.dynamicAnchors,(0,ne._)`${ve.default.valCxt}.${ve.default.dynamicAnchors}`)},()=>{e.var(ve.default.instancePath,(0,ne._)`""`),e.var(ve.default.parentData,(0,ne._)`undefined`),e.var(ve.default.parentDataProperty,(0,ne._)`undefined`),e.var(ve.default.rootData,ve.default.data),t.dynamicRef&&e.var(ve.default.dynamicAnchors,(0,ne._)`{}`)})}function o9(e){const{schema:t,opts:r,gen:n}=e;Zw(e,()=>{r.$comment&&t.$comment&&ox(e),u9(e),n.let(ve.default.vErrors,null),n.let(ve.default.errors,0),r.unevaluated&&s9(e),ix(e),f9(e)})}function s9(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,ne._)`${r}.evaluated`),t.if((0,ne._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,ne._)`${e.evaluated}.props`,(0,ne._)`undefined`)),t.if((0,ne._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,ne._)`${e.evaluated}.items`,(0,ne._)`undefined`))}function tx(e,t){const r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,ne._)`/*# sourceURL=${r} */`:ne.nil}function a9(e,t){if(rx(e)&&(nx(e),ex(e))){l9(e,t);return}(0,Ww.boolOrEmptySchema)(e,t)}function ex({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 rx(e){return typeof e.schema!="boolean"}function l9(e,t){const{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&ox(e),h9(e),d9(e);const o=n.const("_errs",ve.default.errors);ix(e,o),n.var(t,(0,ne._)`${o} === ${ve.default.errors}`)}function nx(e){(0,Eo.checkUnknownRules)(e),c9(e)}function ix(e,t){if(e.opts.jtd)return sx(e,[],!1,t);const r=(0,Jw.getSchemaTypes)(e.schema),n=(0,Jw.coerceAndCheckDataType)(e,r);sx(e,r,!n,t)}function c9(e){const{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Eo.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function u9(e){const{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Eo.checkStrictMode)(e,"default is ignored in the schema root")}function h9(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,e9.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function d9(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function ox({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){const o=r.$comment;if(i.$comment===!0)e.code((0,ne._)`${ve.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){const s=(0,ne.str)`${n}/$comment`,a=e.scopeValue("root",{ref:t.root});e.code((0,ne._)`${ve.default.self}.opts.$comment(${o}, ${s}, ${a}.schema)`)}}function f9(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=e;r.$async?t.if((0,ne._)`${ve.default.errors} === 0`,()=>t.return(ve.default.data),()=>t.throw((0,ne._)`new ${i}(${ve.default.vErrors})`)):(t.assign((0,ne._)`${n}.errors`,ve.default.vErrors),o.unevaluated&&p9(e),t.return((0,ne._)`${ve.default.errors} === 0`))}function p9({gen:e,evaluated:t,props:r,items:n}){r instanceof ne.Name&&e.assign((0,ne._)`${t}.props`,r),n instanceof ne.Name&&e.assign((0,ne._)`${t}.items`,n)}function sx(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,Eo.schemaHasRulesButRef)(o,u))){i.block(()=>hx(e,"$ref",u.all.$ref.definition));return}c.jtd||m9(e,t),i.block(()=>{for(const f of u.rules)h(f);h(u.post)});function h(f){(0,X0.shouldUseGroup)(o,f)&&(f.type?(i.if((0,fd.checkDataType)(f.type,s,c.strictNumbers)),ax(e,f),t.length===1&&t[0]===f.type&&r&&(i.else(),(0,fd.reportTypeError)(e)),i.endIf()):ax(e,f),a||i.if((0,ne._)`${ve.default.errors} === ${n||0}`))}}function ax(e,t){const{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,t9.assignDefaults)(e,t.type),r.block(()=>{for(const o of t.rules)(0,X0.shouldUseRule)(n,o)&&hx(e,o.keyword,o.definition,t.type)})}function m9(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(g9(e,t),e.opts.allowUnionTypes||v9(e,t),y9(e,e.dataTypes))}function g9(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{lx(e.dataTypes,r)||J0(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),b9(e,t)}}function v9(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&J0(e,"use allowUnionTypes to allow union type keyword")}function y9(e,t){const r=e.self.RULES.all;for(const n in r){const i=r[n];if(typeof i=="object"&&(0,X0.shouldUseRule)(e.schema,i)){const{type:o}=i.definition;o.length&&!o.some(s=>_9(t,s))&&J0(e,`missing type "${o.join(",")}" for keyword "${n}"`)}}}function _9(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function lx(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function b9(e,t){const r=[];for(const n of e.dataTypes)lx(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function J0(e,t){const r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Eo.checkStrictMode)(e,t,e.opts.strictTypes)}class cx{constructor(t,r,n){if((0,uc.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,Eo.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",dx(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,uc.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",ve.default.errors))}result(t,r,n){this.failResult((0,ne.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,ne.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,ne._)`${r} !== undefined && (${(0,ne.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?hc.reportExtraError:hc.reportError)(this,this.def.error,r)}$dataError(){(0,hc.reportError)(this,this.def.$dataError||hc.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,hc.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=ne.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=ne.nil,r=ne.nil){if(!this.$data)return;const{gen:n,schemaCode:i,schemaType:o,def:s}=this;n.if((0,ne.or)((0,ne._)`${i} === undefined`,r)),t!==ne.nil&&n.assign(t,!0),(o.length||s.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==ne.nil&&n.assign(t,!1)),n.else()}invalid$data(){const{gen:t,schemaCode:r,schemaType:n,def:i,it:o}=this;return(0,ne.or)(s(),a());function s(){if(n.length){if(!(r instanceof ne.Name))throw new Error("ajv implementation error");const c=Array.isArray(n)?n:[n];return(0,ne._)`${(0,fd.checkDataTypes)(c,r,o.opts.strictNumbers,fd.DataType.Wrong)}`}return ne.nil}function a(){if(i.validateSchema){const c=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,ne._)`!${c}(${r})`}return ne.nil}}subschema(t,r){const n=(0,W0.getSubschema)(this.it,t);(0,W0.extendSubschemaData)(n,this.it,t),(0,W0.extendSubschemaMode)(n,t);const i={...this.it,...n,items:void 0,props:void 0};return a9(i,r),i}mergeEvaluated(t,r){const{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Eo.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Eo.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,ne.Name)),!0}}var ux=wo.KeywordCxt=cx;function hx(e,t,r,n){const i=new cx(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,uc.funcKeywordCode)(i,r):"macro"in r?(0,uc.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,uc.funcKeywordCode)(i,r)}const w9=/^\/(?:[^~]|~0|~1)*$/,x9=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function dx(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(e==="")return ve.default.rootData;if(e[0]==="/"){if(!w9.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=ve.default.rootData}else{const l=x9.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,ne._)`${o}${(0,ne.getProperty)((0,Eo.unescapeJsonPointer)(l))}`,s=(0,ne._)`${s} && ${o}`);return s;function c(l,u){return`Cannot access ${l} ${u} levels up, current level is ${t}`}}Xw=wo.getData=dx;const S9=Xt({__proto__:null,get KeywordCxt(){return ux},default:wo,get getData(){return Xw},get validateFunctionCode(){return Qw}},[wo]),dc=Wt(S9);var Q0={};Object.defineProperty(Q0,"__esModule",{value:!0});let $9=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};var E9=Q0.default=$9;const C9=Xt({__proto__:null,default:E9},[Q0]),Z0=Wt(C9);var tm={};Object.defineProperty(tm,"__esModule",{value:!0});const em=dd;let k9=class extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,em.resolveUrl)(t,r,n),this.missingSchema=(0,em.normalizeId)((0,em.getFullPath)(t,this.missingRef))}};var P9=tm.default=k9;const T9=Xt({__proto__:null,default:P9},[tm]),rm=Wt(T9);var Gn={};Object.defineProperty(Gn,"__esModule",{value:!0});var fx=Gn.resolveSchema=_x=Gn.getCompilingSchema=vx=Gn.resolveRef=gx=Gn.compileSchema=mx=Gn.SchemaEnv=void 0;const Si=Oe,O9=Z0,ra=xo,$i=dd,px=Ke,N9=dc;let pd=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,$i.normalizeId)(n?.[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n?.$async,this.refs={}}};var mx=Gn.SchemaEnv=pd;function nm(e){const t=yx.call(this,e);if(t)return t;const r=(0,$i.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,s=new Si.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o});let a;e.$async&&(a=s.scopeValue("Error",{ref:O9.default,code:(0,Si._)`require("ajv/dist/runtime/validation_error").default`}));const c=s.scopeName("validate");e.validateName=c;const l={gen:s,allErrors:this.opts.allErrors,data:ra.default.data,parentData:ra.default.parentData,parentDataProperty:ra.default.parentDataProperty,dataNames:[ra.default.data],dataPathArr:[Si.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Si.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Si.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Si._)`""`,opts:this.opts,self:this};let u;try{this._compilations.add(e),(0,N9.validateFunctionCode)(l),s.optimize(this.opts.code.optimize);const h=s.toString();u=`${s.scopeRefs(ra.default.scope)}return ${h}`,this.opts.code.process&&(u=this.opts.code.process(u,e));const f=new Function(`${ra.default.self}`,`${ra.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 Si.Name?void 0:d,items:p instanceof Si.Name?void 0:p,dynamicProps:d instanceof Si.Name,dynamicItems:p instanceof Si.Name},f.source&&(f.source.evaluated=(0,Si.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 gx=Gn.compileSchema=nm;function A9(e,t,r){var n;r=(0,$i.resolveUrl)(this.opts.uriResolver,t,r);const i=e.refs[r];if(i)return i;let o=I9.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 pd({schema:s,schemaId:a,root:e,baseId:t}))}if(o!==void 0)return e.refs[r]=D9.call(this,o)}var vx=Gn.resolveRef=A9;function D9(e){return(0,$i.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:nm.call(this,e)}function yx(e){for(const t of this._compilations)if(R9(t,e))return t}var _x=Gn.getCompilingSchema=yx;function R9(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function I9(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||md.call(this,e,t)}function md(e,t){const r=this.opts.uriResolver.parse(t),n=(0,$i._getFullPath)(this.opts.uriResolver,r);let i=(0,$i.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return im.call(this,r,e);const o=(0,$i.normalizeId)(n),s=this.refs[o]||this.schemas[o];if(typeof s=="string"){const a=md.call(this,e,s);return typeof a?.schema!="object"?void 0:im.call(this,r,a)}if(typeof s?.schema=="object"){if(s.validate||nm.call(this,s),o===(0,$i.normalizeId)(t)){const{schema:a}=s,{schemaId:c}=this.opts,l=a[c];return l&&(i=(0,$i.resolveUrl)(this.opts.uriResolver,i,l)),new pd({schema:a,schemaId:c,root:e,baseId:i})}return im.call(this,r,s)}}fx=Gn.resolveSchema=md;const j9=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function im(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,px.unescapeFragment)(a)];if(c===void 0)return;r=c;const l=typeof r=="object"&&r[this.opts.schemaId];!j9.has(a)&&l&&(t=(0,$i.resolveUrl)(this.opts.uriResolver,t,l))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,px.schemaHasRulesButRef)(r,this.RULES)){const a=(0,$i.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=md.call(this,n,a)}const{schemaId:s}=this.opts;if(o=o||new pd({schema:r,schemaId:s,root:n,baseId:t}),o.schema!==o.root.schema)return o}const F9=Xt({__proto__:null,get SchemaEnv(){return mx},get compileSchema(){return gx},default:Gn,get getCompilingSchema(){return _x},get resolveRef(){return vx},get resolveSchema(){return fx}},[Gn]),om=Wt(F9),M9="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",L9="Meta-schema for $data reference (JSON AnySchema extension proposal)",V9="object",U9=["$data"],z9={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},G9=!1,B9={$id:M9,description:L9,type:V9,required:U9,properties:z9,additionalProperties:G9};var sm={},am={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)})(xN,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),_e=R?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",re=R?"[\\uE000-\\uF8FF]":"[]",zt=n(L,z,"[\\-\\.\\_\\~]",_e);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),ue=i(qt+"\\."+qt+"\\."+qt+"\\."+qt),jt=i(Z+"{1,4}"),Gt=i(i(jt+"\\:"+jt)+"|"+ue),se=i(i(jt+"\\:")+"{6}"+Gt),Be=i("\\:\\:"+i(jt+"\\:")+"{5}"+Gt),jr=i(i(jt)+"?\\:\\:"+i(jt+"\\:")+"{4}"+Gt),Pe=i(i(i(jt+"\\:")+"{0,1}"+jt)+"?\\:\\:"+i(jt+"\\:")+"{3}"+Gt),tr=i(i(i(jt+"\\:")+"{0,2}"+jt)+"?\\:\\:"+i(jt+"\\:")+"{2}"+Gt),dr=i(i(i(jt+"\\:")+"{0,3}"+jt)+"?\\:\\:"+jt+"\\:"+Gt),lr=i(i(i(jt+"\\:")+"{0,4}"+jt)+"?\\:\\:"+Gt),Ue=i(i(i(jt+"\\:")+"{0,5}"+jt)+"?\\:\\:"+jt),Ee=i(i(i(jt+"\\:")+"{0,6}"+jt)+"?\\:\\:"),te=i([se,Be,jr,Pe,tr,dr,lr,Ue,Ee].join("|")),fr=i(i(zt+"|"+tt)+"+");i("[vV]"+Z+"+\\."+n(zt,Tt,"[\\:]")+"+"),i(i(tt+"|"+n(zt,Tt))+"*");var pn=i(tt+"|"+n(zt,Tt,"[\\:\\@]"));return i(i(tt+"|"+n(zt,Tt,"[\\@]"))+"+"),i(i(pn+"|"+n("[\\/\\?]",re))+"*"),{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,"[\\:\\@\\/\\?]",re),"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("^("+ue+")$"),IPV6ADDRESS:new RegExp("^\\[?("+te+")"+i(i("\\%25|\\%(?!"+Z+"{2})")+"("+fr+")")+"?\\]?$")}}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](),_e;!(tt=(_e=Ht.next()).done)&&(Z.push(_e.value),!(z&&Z.length===z));tt=!0);}catch(re){Ot=!0,Tt=re}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,_=26,y=38,m=700,x=72,N=128,$="-",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*_>>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=N,Ot=x,Tt=R.lastIndexOf($);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 _e=Tt>0?Tt+1:0;_e<z;){for(var re=Z,zt=1,qt=g;;qt+=g){_e>=z&&nt("invalid-input");var ue=at(R.charCodeAt(_e++));(ue>=g||ue>Y((p-Z)/zt))&&nt("overflow"),Z+=ue*zt;var jt=qt<=Ot?v:qt>=Ot+_?_:qt-Ot;if(ue<jt)break;var Gt=g-jt;zt>Y(p/Gt)&&nt("overflow"),zt*=Gt}var se=L.length+1;Ot=O(Z-re,se,re==0),Y(Z/se)>p-tt&&nt("overflow"),tt+=Y(Z/se),Z%=se,L.splice(Z++,0,tt)}return String.fromCodePoint.apply(String,L)},E=function(R){var L=[];R=_t(R);var z=R.length,Z=N,tt=0,Ot=x,Tt=!0,Ht=!1,_e=void 0;try{for(var re=R[Symbol.iterator](),zt;!(Tt=(zt=re.next()).done);Tt=!0){var qt=zt.value;qt<128&&L.push(it(qt))}}catch(en){Ht=!0,_e=en}finally{try{!Tt&&re.return&&re.return()}finally{if(Ht)throw _e}}var ue=L.length,jt=ue;for(ue&&L.push($);jt<z;){var Gt=p,se=!0,Be=!1,jr=void 0;try{for(var Pe=R[Symbol.iterator](),tr;!(se=(tr=Pe.next()).done);se=!0){var dr=tr.value;dr>=Z&&dr<Gt&&(Gt=dr)}}catch(en){Be=!0,jr=en}finally{try{!se&&Pe.return&&Pe.return()}finally{if(Be)throw jr}}var lr=jt+1;Gt-Z>Y((p-tt)/lr)&&nt("overflow"),tt+=(Gt-Z)*lr,Z=Gt;var Ue=!0,Ee=!1,te=void 0;try{for(var fr=R[Symbol.iterator](),pn;!(Ue=(pn=fr.next()).done);Ue=!0){var Mn=pn.value;if(Mn<Z&&++tt>p&&nt("overflow"),Mn==Z){for(var Er=tt,$r=g;;$r+=g){var Yr=$r<=Ot?v:$r>=Ot+_?_:$r-Ot;if(Er<Yr)break;var di=Er-Yr,fi=g-Yr;L.push(it(X(Yr+di%fi,0))),Er=Y(di/fi)}L.push(it(X(Er,0))),Ot=O(tt,lr,jt==ue),tt=0,++jt}}}catch(en){Ee=!0,te=en}finally{try{!Ue&&fr.return&&fr.return()}finally{if(Ee)throw te}}++tt,++Z}return L.join("")},b=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--"+E(L):L})},M={version:"2.1.0",ucs2:{decode:_t,encode:yt},decode:C,encode:E,toASCII:P,toUnicode:b},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),_e=Ht[0],re=Ht[1],zt=re?re.split(":").map(st):[],qt=_e.split(":").map(st),ue=L.IPV4ADDRESS.test(qt[qt.length-1]),jt=ue?7:8,Gt=qt.length-jt,se=Array(jt),Be=0;Be<jt;++Be)se[Be]=zt[Be]||qt[Gt+Be]||"";ue&&(se[jt-1]=mt(se[jt-1],L));var jr=se.reduce(function(Ue,Ee,te){if(!Ee||Ee==="0"){var fr=Ue[Ue.length-1];fr&&fr.index+fr.length===te?fr.length++:Ue.push({index:te,length:1})}return Ue},[]),Pe=jr.sort(function(Ue,Ee){return Ee.length-Ue.length})[0],tr=void 0;if(Pe&&Pe.length>1){var dr=se.slice(0,Pe.index),lr=se.slice(Pe.index+Pe.length);tr=dr.join(":")+"::"+lr.join(":")}else tr=se.join(":");return Ot&&(tr+="%"+Ot),tr}else return R}var W=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\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(W);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 oe(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 me={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}},Ve={scheme:"https",domainHost:me.domainHost,parse:me.parse,serialize:me.serialize};function ar(R){return typeof R.secure=="boolean"?R.secure:String(R.scheme).toLowerCase()==="wss"}var wr={scheme:"ws",domainHost:!0,parse:function(R,L){var z=R;return z.secure=ar(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===(ar(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}},hr={scheme:"wss",domainHost:wr.domainHost,parse:wr.parse,serialize:wr.serialize},zr={},ln="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",he="[0-9A-Fa-f]",gr=i(i("%[EFef]"+he+"%"+he+he+"%"+he+he)+"|"+i("%[89A-Fa-f]"+he+"%"+he+he)+"|"+i("%"+he+he)),Gr="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",Ri="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",Wn=n(Ri,'[\\"\\\\]'),ci="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",fn=new RegExp(ln,"g"),Ze=new RegExp(gr,"g"),Rs=new RegExp(n("[^]",Gr,"[\\.]",'[\\"]',Wn),"g"),Fn=new RegExp(n("[^]",ln,ci),"g"),Jn=Fn;function tn(R){var L=q(R);return L.match(fn)?L:R}var ui={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,_e=Tt.length;Ht<_e;++Ht){var re=Tt[Ht].split("=");switch(re[0]){case"to":for(var zt=re[1].split(","),qt=0,ue=zt.length;qt<ue;++qt)Z.push(zt[qt]);break;case"subject":z.subject=Yt(re[1],L);break;case"body":z.body=Yt(re[1],L);break;default:tt=!0,Ot[Yt(re[0],L)]=Yt(re[1],L);break}}tt&&(z.headers=Ot)}z.query=void 0;for(var jt=0,Gt=Z.length;jt<Gt;++jt){var se=Z[jt].split("@");if(se[0]=Yt(se[0]),L.unicodeSupport)se[1]=Yt(se[1],L).toLowerCase();else try{se[1]=M.toASCII(Yt(se[1],L).toLowerCase())}catch(Be){z.error=z.error||"Email address's domain name can not be converted to ASCII via punycode: "+Be}Z[jt]=se.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("@"),_e=Tt.slice(0,Ht).replace(Ze,tn).replace(Ze,s).replace(Rs,G),re=Tt.slice(Ht+1);try{re=L.iri?M.toUnicode(re):M.toASCII(Yt(re,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]=_e+"@"+re}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 ue in zt)zt[ue]!==zr[ue]&&qt.push(ue.replace(Ze,tn).replace(Ze,s).replace(Fn,G)+"="+zt[ue].replace(Ze,tn).replace(Ze,s).replace(Jn,G));return qt.length&&(z.query=qt.join("&")),z}},Qn=/^([^\:]+)\:(.*)/,kn={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),_e=I[Ht];Z.nid=Ot,Z.nss=Tt,Z.path=void 0,_e&&(Z=_e.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}},Ii=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,hi={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(Ii))&&(z.error=z.error||"UUID is not valid."),z},serialize:function(R,L){var z=R;return z.nss=(R.uuid||"").toLowerCase(),z}};I[me.scheme]=me,I[Ve.scheme]=Ve,I[wr.scheme]=wr,I[hr.scheme]=hr,I[ui.scheme]=ui,I[kn.scheme]=kn,I[hi.scheme]=hi,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=oe,r.unescapeComponent=Yt,Object.defineProperty(r,"__esModule",{value:!0})})})(am,am.exports);var bx=am.exports;const H9=On(bx),q9=Xt({__proto__:null,default:H9},[bx]),K9=Wt(q9);Object.defineProperty(sm,"__esModule",{value:!0});const wx=K9;wx.code='require("ajv/dist/runtime/uri").default';var Y9=sm.default=wx;const X9=Xt({__proto__:null,default:Y9},[sm]),W9=Wt(X9);(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=dc;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=Oe;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=rm,o=rw,s=om,a=Oe,c=dd,l=ud,u=Ke,h=B9,f=W9,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."},_={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},y=200;function m(X){var O,C,E,b,P,M,I,G,q,et,st,mt,Lt,W,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,oe=Kt===!0||Kt===void 0?1:Kt||0,Yt=(E=(C=X.code)===null||C===void 0?void 0:C.regExp)!==null&&E!==void 0?E:d,me=(b=X.uriResolver)!==null&&b!==void 0?b: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:(W=(Lt=X.strictRequired)!==null&&Lt!==void 0?Lt:Ut)!==null&&W!==void 0?W:!1,code:X.code?{...X.code,optimize:oe,regExp:Yt}:{optimize:oe,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&&lt!==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:me}}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:E}=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:g,es5:C,lines:E}),this.logger=Y(O.logger);const b=O.validateFormats;O.validateFormats=!1,this.RULES=(0,o.getRules)(),N.call(this,v,O,"NOT SUPPORTED"),N.call(this,_,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=b}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:O,meta:C,schemaId:E}=this.opts;let b=h;E==="id"&&(b={...h},b.id=b.$id,delete b.$id),C&&O&&this.addMetaSchema(b,b[E],!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 E;if(typeof O=="string"){if(E=this.getSchema(O),!E)throw new Error(`no schema with key or ref "${O}"`)}else E=this.compile(O);const b=E(C);return"$async"in E||(this.errors=E.errors),b}compile(O,C){const E=this._addSchema(O,C);return E.validate||this._compileSchemaEnv(E)}compileAsync(O,C){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:E}=this.opts;return b.call(this,O,C);async function b(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 b.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]=E(et))}finally{delete this._loading[et]}}}addSchema(O,C,E,b=this.opts.validateSchema){if(Array.isArray(O)){for(const M of O)this.addSchema(M,void 0,E,b);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,E,C,b,!0),this}addMetaSchema(O,C,E=this.opts.validateSchema){return this.addSchema(O,C,!0,E),this}validateSchema(O,C){if(typeof O=="boolean")return!0;let E;if(E=O.$schema,E!==void 0&&typeof E!="string")throw new Error("$schema must be a string");if(E=E||this.opts.defaultMeta||this.defaultMeta(),!E)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const b=this.validate(E,O);if(!b&&C){const P="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(P);else throw new Error(P)}return b}getSchema(O){let C;for(;typeof(C=$.call(this,O))=="string";)O=C;if(C===void 0){const{schemaId:E}=this.opts,b=new s.SchemaEnv({schema:{},schemaId:E});if(C=s.resolveSchema.call(this,b,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=$.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 E=O[this.opts.schemaId];return E&&(E=(0,c.normalizeId)(E),delete this.schemas[E],delete this.refs[E]),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 E;if(typeof O=="string")E=O,typeof C=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),C.keyword=E);else if(typeof O=="object"&&C===void 0){if(C=O,E=C.keyword,Array.isArray(E)&&!E.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(nt.call(this,E,C),!C)return(0,u.eachItem)(E,P=>ft.call(this,P)),this;_t.call(this,C);const b={...C,type:(0,l.getJSONTypes)(C.type),schemaType:(0,l.getJSONTypes)(C.schemaType)};return(0,u.eachItem)(E,b.type.length===0?P=>ft.call(this,P,b):P=>b.type.forEach(M=>ft.call(this,P,b,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 E of C.rules){const b=E.rules.findIndex(P=>P.keyword===O);b>=0&&E.rules.splice(b,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:E="data"}={}){return!O||O.length===0?"No errors":O.map(b=>`${E}${b.instancePath} ${b.message}`).reduce((b,P)=>b+C+P)}$dataMetaSchema(O,C){const E=this.RULES.all;O=JSON.parse(JSON.stringify(O));for(const b of C){const P=b.split("/").slice(1);let M=O;for(const I of P)M=M[I];for(const I in E){const G=E[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 E in O){const b=O[E];(!C||C.test(E))&&(typeof b=="string"?delete O[E]:b&&!b.meta&&(this._cache.delete(b.schema),delete O[E]))}}_addSchema(O,C,E,b=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;E=(0,c.normalizeId)(M||E);const q=c.getSchemaRefs.call(this,O,E);return G=new s.SchemaEnv({schema:O,schemaId:I,meta:C,baseId:E,localRefs:q}),this._cache.set(G.schema,G),P&&!E.startsWith("#")&&(E&&this._checkUnique(E),this.refs[E]=G),b&&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 N(X,O,C,E="error"){for(const b in X){const P=b;P in O&&this.logger[E](`${C}: option ${b}. ${X[P]}`)}}function $(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,E=>{if(C.keywords[E])throw new Error(`Keyword ${E} is already defined`);if(!it.test(E))throw new Error(`Keyword ${E} 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 E;const b=O?.post;if(C&&b)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:P}=this;let M=b?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,(E=O.implements)===null||E===void 0||E.forEach(G=>this.addKeyword(G))}function xt(X,O,C){const E=X.rules.findIndex(b=>b.keyword===C);E>=0?X.rules.splice(E,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]}}})(F0);const J9=On(F0),Q9=Xt({__proto__:null,default:J9},[F0]),Z9=Wt(Q9);var lm={},cm={},um={};Object.defineProperty(um,"__esModule",{value:!0});const tD={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};var eD=um.default=tD;const rD=Xt({__proto__:null,default:eD},[um]),nD=Wt(rD);var na={};Object.defineProperty(na,"__esModule",{value:!0});var xx=na.callRef=Cx=na.getValidate=void 0;const iD=rm,Sx=xi,Nn=Oe,Za=xo,$x=om,gd=Ke,oD={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=$x.resolveRef.call(c,l,i,r);if(u===void 0)throw new iD.default(n.opts.uriResolver,i,r);if(u instanceof $x.SchemaEnv)return f(u);return d(u);function h(){if(o===l)return vd(e,s,o,o.$async);const p=t.scopeValue("root",{ref:l});return vd(e,(0,Nn._)`${p}.validate`,l,l.$async)}function f(p){const g=Ex(e,p);vd(e,g,p,p.$async)}function d(p){const g=t.scopeValue("schema",a.code.source===!0?{ref:p,code:(0,Nn.stringify)(p)}:{ref:p}),v=t.name("valid"),_=e.subschema({schema:p,dataTypes:[],schemaPath:Nn.nil,topSchemaRef:g,errSchemaPath:r},v);e.mergeEvaluated(_),e.ok(v)}}};function Ex(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Nn._)`${r.scopeValue("wrapper",{ref:t})}.validate`}var Cx=na.getValidate=Ex;function vd(e,t,r,n){const{gen:i,it:o}=e,{allErrors:s,schemaEnv:a,opts:c}=o,l=c.passContext?Za.default.this:Nn.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,Nn._)`await ${(0,Sx.callValidateCode)(e,t,l)}`),d(t),s||i.assign(p,!0)},g=>{i.if((0,Nn._)`!(${g} instanceof ${o.ValidationError})`,()=>i.throw(g)),f(g),s||i.assign(p,!1)}),e.ok(p)}function h(){e.result((0,Sx.callValidateCode)(e,t,l),()=>d(t),()=>f(t))}function f(p){const g=(0,Nn._)`${p}.errors`;i.assign(Za.default.vErrors,(0,Nn._)`${Za.default.vErrors} === null ? ${g} : ${Za.default.vErrors}.concat(${g})`),i.assign(Za.default.errors,(0,Nn._)`${Za.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=gd.mergeEvaluated.props(i,v.props,o.props));else{const _=i.var("props",(0,Nn._)`${p}.evaluated.props`);o.props=gd.mergeEvaluated.props(i,_,o.props,Nn.Name)}if(o.items!==!0)if(v&&!v.dynamicItems)v.items!==void 0&&(o.items=gd.mergeEvaluated.items(i,v.items,o.items));else{const _=i.var("items",(0,Nn._)`${p}.evaluated.items`);o.items=gd.mergeEvaluated.items(i,_,o.items,Nn.Name)}}}xx=na.callRef=vd;var sD=na.default=oD;const aD=Xt({__proto__:null,get callRef(){return xx},default:sD,get getValidate(){return Cx}},[na]),lD=Wt(aD);Object.defineProperty(cm,"__esModule",{value:!0});const cD=nD,uD=lD,hD=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",cD.default,uD.default];var dD=cm.default=hD;const fD=Xt({__proto__:null,default:dD},[cm]),pD=Wt(fD);var hm={},dm={};Object.defineProperty(dm,"__esModule",{value:!0});const yd=Oe,us=yd.operators,_d={maximum:{okStr:"<=",ok:us.LTE,fail:us.GT},minimum:{okStr:">=",ok:us.GTE,fail:us.LT},exclusiveMaximum:{okStr:"<",ok:us.LT,fail:us.GTE},exclusiveMinimum:{okStr:">",ok:us.GT,fail:us.LTE}},mD={message:({keyword:e,schemaCode:t})=>(0,yd.str)`must be ${_d[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,yd._)`{comparison: ${_d[e].okStr}, limit: ${t}}`},gD={keyword:Object.keys(_d),type:"number",schemaType:"number",$data:!0,error:mD,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,yd._)`${r} ${_d[t].fail} ${n} || isNaN(${r})`)}};var vD=dm.default=gD;const yD=Xt({__proto__:null,default:vD},[dm]),_D=Wt(yD);var fm={};Object.defineProperty(fm,"__esModule",{value:!0});const fc=Oe,bD={message:({schemaCode:e})=>(0,fc.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,fc._)`{multipleOf: ${e}}`},wD={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:bD,code(e){const{gen:t,data:r,schemaCode:n,it:i}=e,o=i.opts.multipleOfPrecision,s=t.let("res"),a=o?(0,fc._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${o}`:(0,fc._)`${s} !== parseInt(${s})`;e.fail$data((0,fc._)`(${n} === 0 || (${s} = ${r}/${n}, ${a}))`)}};var xD=fm.default=wD;const SD=Xt({__proto__:null,default:xD},[fm]),$D=Wt(SD);var pm={},mm={};Object.defineProperty(mm,"__esModule",{value:!0});function kx(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 ED=mm.default=kx;kx.code='require("ajv/dist/runtime/ucs2length").default';const CD=Xt({__proto__:null,default:ED},[mm]),kD=Wt(CD);Object.defineProperty(pm,"__esModule",{value:!0});const ia=Oe,PD=Ke,TD=kD,OD={message({keyword:e,schemaCode:t}){const r=e==="maxLength"?"more":"fewer";return(0,ia.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,ia._)`{limit: ${e}}`},ND={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:OD,code(e){const{keyword:t,data:r,schemaCode:n,it:i}=e,o=t==="maxLength"?ia.operators.GT:ia.operators.LT,s=i.opts.unicode===!1?(0,ia._)`${r}.length`:(0,ia._)`${(0,PD.useFunc)(e.gen,TD.default)}(${r})`;e.fail$data((0,ia._)`${s} ${o} ${n}`)}};var AD=pm.default=ND;const DD=Xt({__proto__:null,default:AD},[pm]),RD=Wt(DD);var gm={};Object.defineProperty(gm,"__esModule",{value:!0});const ID=xi,bd=Oe,jD={message:({schemaCode:e})=>(0,bd.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,bd._)`{pattern: ${e}}`},FD={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:jD,code(e){const{data:t,$data:r,schema:n,schemaCode:i,it:o}=e,s=o.opts.unicodeRegExp?"u":"",a=r?(0,bd._)`(new RegExp(${i}, ${s}))`:(0,ID.usePattern)(e,n);e.fail$data((0,bd._)`!${a}.test(${t})`)}};var MD=gm.default=FD;const LD=Xt({__proto__:null,default:MD},[gm]),VD=Wt(LD);var vm={};Object.defineProperty(vm,"__esModule",{value:!0});const pc=Oe,UD={message({keyword:e,schemaCode:t}){const r=e==="maxProperties"?"more":"fewer";return(0,pc.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,pc._)`{limit: ${e}}`},zD={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:UD,code(e){const{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?pc.operators.GT:pc.operators.LT;e.fail$data((0,pc._)`Object.keys(${r}).length ${i} ${n}`)}};var GD=vm.default=zD;const BD=Xt({__proto__:null,default:GD},[vm]),HD=Wt(BD);var ym={};Object.defineProperty(ym,"__esModule",{value:!0});const mc=xi,gc=Oe,qD=Ke,KD={message:({params:{missingProperty:e}})=>(0,gc.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,gc._)`{missingProperty: ${e}}`},YD={keyword:"required",type:"object",schemaType:"array",$data:!0,error:KD,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,_=`required property "${g}" is not defined at "${v}" (strictRequired)`;(0,qD.checkStrictMode)(s,_,s.opts.strictRequired)}}function l(){if(c||o)e.block$data(gc.nil,h);else for(const d of r)(0,mc.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,mc.checkMissingProp)(e,r,d)),(0,mc.reportMissingProp)(e,d),t.else()}function h(){t.forOf("prop",n,d=>{e.setParams({missingProperty:d}),t.if((0,mc.noPropertyInData)(t,i,d,a.ownProperties),()=>e.error())})}function f(d,p){e.setParams({missingProperty:d}),t.forOf(d,n,()=>{t.assign(p,(0,mc.propertyInData)(t,i,d,a.ownProperties)),t.if((0,gc.not)(p),()=>{e.error(),t.break()})},gc.nil)}}};var XD=ym.default=YD;const WD=Xt({__proto__:null,default:XD},[ym]),JD=Wt(WD);var _m={};Object.defineProperty(_m,"__esModule",{value:!0});const vc=Oe,QD={message({keyword:e,schemaCode:t}){const r=e==="maxItems"?"more":"fewer";return(0,vc.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,vc._)`{limit: ${e}}`},ZD={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:QD,code(e){const{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?vc.operators.GT:vc.operators.LT;e.fail$data((0,vc._)`${r}.length ${i} ${n}`)}};var t7=_m.default=ZD;const e7=Xt({__proto__:null,default:t7},[_m]),r7=Wt(e7);var bm={},wm={};Object.defineProperty(wm,"__esModule",{value:!0});const Px=Fw;Px.code='require("ajv/dist/runtime/equal").default';var n7=wm.default=Px;const i7=Xt({__proto__:null,default:n7},[wm]),xm=Wt(i7);Object.defineProperty(bm,"__esModule",{value:!0});const Sm=ud,on=Oe,o7=Ke,s7=xm,a7={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}}`},l7={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:a7,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,Sm.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"),_=(0,Sm.checkDataTypes)(l,v,a.opts.strictNumbers,Sm.DataType.Wrong),y=t.const("indices",(0,on._)`{}`);t.for((0,on._)`;${p}--;`,()=>{t.let(v,(0,on._)`${r}[${p}]`),t.if(_,(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,o7.useFunc)(t,s7.default),_=t.name("outer");t.label(_).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(_)})))}}};var c7=bm.default=l7;const u7=Xt({__proto__:null,default:c7},[bm]),h7=Wt(u7);var $m={};Object.defineProperty($m,"__esModule",{value:!0});const Em=Oe,d7=Ke,f7=xm,p7={message:"must be equal to constant",params:({schemaCode:e})=>(0,Em._)`{allowedValue: ${e}}`},m7={keyword:"const",$data:!0,error:p7,code(e){const{gen:t,data:r,$data:n,schemaCode:i,schema:o}=e;n||o&&typeof o=="object"?e.fail$data((0,Em._)`!${(0,d7.useFunc)(t,f7.default)}(${r}, ${i})`):e.fail((0,Em._)`${o} !== ${r}`)}};var g7=$m.default=m7;const v7=Xt({__proto__:null,default:g7},[$m]),y7=Wt(v7);var Cm={};Object.defineProperty(Cm,"__esModule",{value:!0});const yc=Oe,_7=Ke,b7=xm,w7={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,yc._)`{allowedValues: ${e}}`},x7={keyword:"enum",schemaType:"array",$data:!0,error:w7,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,_7.useFunc)(t,b7.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,yc.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,yc._)`${l()}(${r}, ${d})`,()=>t.assign(u,!0).break()))}function f(d,p){const g=i[p];return typeof g=="object"&&g!==null?(0,yc._)`${l()}(${r}, ${d}[${p}])`:(0,yc._)`${r} === ${g}`}}};var S7=Cm.default=x7;const $7=Xt({__proto__:null,default:S7},[Cm]),E7=Wt($7);Object.defineProperty(hm,"__esModule",{value:!0});const C7=_D,k7=$D,P7=RD,T7=VD,O7=HD,N7=JD,A7=r7,D7=h7,R7=y7,I7=E7,j7=[C7.default,k7.default,P7.default,T7.default,O7.default,N7.default,A7.default,D7.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},R7.default,I7.default];var F7=hm.default=j7;const M7=Xt({__proto__:null,default:F7},[hm]),L7=Wt(M7);var km={},_c={};Object.defineProperty(_c,"__esModule",{value:!0});var Tx=_c.validateAdditionalItems=void 0;const oa=Oe,Pm=Ke,V7={message:({params:{len:e}})=>(0,oa.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,oa._)`{limit: ${e}}`},U7={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:V7,code(e){const{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Pm.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}Ox(e,n)}};function Ox(e,t){const{gen:r,schema:n,data:i,keyword:o,it:s}=e;s.items=!0;const a=r.const("len",(0,oa._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,oa._)`${a} <= ${t.length}`);else if(typeof n=="object"&&!(0,Pm.alwaysValidSchema)(s,n)){const l=r.var("valid",(0,oa._)`${a} <= ${t.length}`);r.if((0,oa.not)(l),()=>c(l)),e.ok(l)}function c(l){r.forRange("i",t.length,a,u=>{e.subschema({keyword:o,dataProp:u,dataPropType:Pm.Type.Num},l),s.allErrors||r.if((0,oa.not)(l),()=>r.break())})}}Tx=_c.validateAdditionalItems=Ox;var z7=_c.default=U7;const G7=Xt({__proto__:null,default:z7,get validateAdditionalItems(){return Tx}},[_c]),Nx=Wt(G7);var Tm={},bc={};Object.defineProperty(bc,"__esModule",{value:!0});var Ax=bc.validateTuple=void 0;const Dx=Oe,wd=Ke,B7=xi,H7={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return Rx(e,"additionalItems",t);r.items=!0,!(0,wd.alwaysValidSchema)(r,t)&&e.ok((0,B7.validateArray)(e))}};function Rx(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=wd.mergeEvaluated.items(n,r.length,a.items));const c=n.name("valid"),l=n.const("len",(0,Dx._)`${o}.length`);r.forEach((h,f)=>{(0,wd.alwaysValidSchema)(a,h)||(n.if((0,Dx._)`${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,wd.checkStrictMode)(a,v,f.strictTuples)}}}Ax=bc.validateTuple=Rx;var q7=bc.default=H7;const K7=Xt({__proto__:null,default:q7,get validateTuple(){return Ax}},[bc]),Ix=Wt(K7);Object.defineProperty(Tm,"__esModule",{value:!0});const Y7=Ix,X7={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,Y7.validateTuple)(e,"items")};var W7=Tm.default=X7;const J7=Xt({__proto__:null,default:W7},[Tm]),Q7=Wt(J7);var Om={};Object.defineProperty(Om,"__esModule",{value:!0});const jx=Oe,Z7=Ke,tR=xi,eR=Nx,rR={message:({params:{len:e}})=>(0,jx.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,jx._)`{limit: ${e}}`},nR={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:rR,code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,Z7.alwaysValidSchema)(n,t)&&(i?(0,eR.validateAdditionalItems)(e,i):e.ok((0,tR.validateArray)(e)))}};var iR=Om.default=nR;const oR=Xt({__proto__:null,default:iR},[Om]),sR=Wt(oR);var Nm={};Object.defineProperty(Nm,"__esModule",{value:!0});const ni=Oe,xd=Ke,aR={message:({params:{min:e,max:t}})=>t===void 0?(0,ni.str)`must contain at least ${e} valid item(s)`:(0,ni.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,ni._)`{minContains: ${e}}`:(0,ni._)`{minContains: ${e}, maxContains: ${t}}`},lR={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:aR,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,ni._)`${i}.length`);if(e.setParams({min:s,max:a}),a===void 0&&s===0){(0,xd.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&s>a){(0,xd.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,xd.alwaysValidSchema)(o,r)){let g=(0,ni._)`${u} >= ${s}`;a!==void 0&&(g=(0,ni._)`${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,ni._)`${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,_=>{e.subschema({keyword:"contains",dataProp:_,dataPropType:xd.Type.Num,compositeRule:!0},g),v()})}function p(g){t.code((0,ni._)`${g}++`),a===void 0?t.if((0,ni._)`${g} >= ${s}`,()=>t.assign(h,!0).break()):(t.if((0,ni._)`${g} > ${a}`,()=>t.assign(h,!1).break()),s===1?t.assign(h,!0):t.if((0,ni._)`${g} >= ${s}`,()=>t.assign(h,!0)))}}};var cR=Nm.default=lR;const uR=Xt({__proto__:null,default:cR},[Nm]),hR=Wt(uR);var Am={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Oe,r=Ke,n=xi;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 _ of g)(0,n.checkReportMissingProp)(c,_)}):(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})(Am);const dR=On(Am),fR=Xt({__proto__:null,default:dR},[Am]),pR=Wt(fR);var Dm={};Object.defineProperty(Dm,"__esModule",{value:!0});const Fx=Oe,mR=Ke,gR={message:"property name must be valid",params:({params:e})=>(0,Fx._)`{propertyName: ${e.propertyName}}`},vR={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:gR,code(e){const{gen:t,schema:r,data:n,it:i}=e;if((0,mR.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,Fx.not)(o),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(o)}};var yR=Dm.default=vR;const _R=Xt({__proto__:null,default:yR},[Dm]),bR=Wt(_R);var Rm={};Object.defineProperty(Rm,"__esModule",{value:!0});const Sd=xi,Ei=Oe,wR=xo,$d=Ke,xR={message:"must NOT have additional properties",params:({params:e})=>(0,Ei._)`{additionalProperty: ${e.additionalProperty}}`},SR={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:xR,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,$d.alwaysValidSchema)(s,r))return;const l=(0,Sd.allSchemaProperties)(n.properties),u=(0,Sd.allSchemaProperties)(n.patternProperties);h(),e.ok((0,Ei._)`${o} === ${wR.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 _;if(l.length>8){const y=(0,$d.schemaRefOrVal)(s,n.properties,"properties");_=(0,Sd.isOwnProperty)(t,y,v)}else l.length?_=(0,Ei.or)(...l.map(y=>(0,Ei._)`${v} === ${y}`)):_=Ei.nil;return u.length&&(_=(0,Ei.or)(_,...u.map(y=>(0,Ei._)`${(0,Sd.usePattern)(e,y)}.test(${v})`))),(0,Ei.not)(_)}function d(v){t.code((0,Ei._)`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,$d.alwaysValidSchema)(s,r)){const _=t.name("valid");c.removeAdditional==="failing"?(g(v,_,!1),t.if((0,Ei.not)(_),()=>{e.reset(),d(v)})):(g(v,_),a||t.if((0,Ei.not)(_),()=>t.break()))}}function g(v,_,y){const m={keyword:"additionalProperties",dataProp:v,dataPropType:$d.Type.Str};y===!1&&Object.assign(m,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(m,_)}}};var $R=Rm.default=SR;const ER=Xt({__proto__:null,default:$R},[Rm]),Mx=Wt(ER);var Im={};Object.defineProperty(Im,"__esModule",{value:!0});const CR=dc,Lx=xi,jm=Ke,Vx=Mx,kR={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&&Vx.default.code(new CR.KeywordCxt(o,Vx.default,"additionalProperties"));const s=(0,Lx.allSchemaProperties)(r);for(const h of s)o.definedProperties.add(h);o.opts.unevaluated&&s.length&&o.props!==!0&&(o.props=jm.mergeEvaluated.props(t,(0,jm.toHash)(s),o.props));const a=s.filter(h=>!(0,jm.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,Lx.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 PR=Im.default=kR;const TR=Xt({__proto__:null,default:PR},[Im]),OR=Wt(TR);var Fm={};Object.defineProperty(Fm,"__esModule",{value:!0});const Ux=xi,Ed=Oe,zx=Ke,Gx=Ke,NR={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,Ux.allSchemaProperties)(r),c=a.filter(g=>(0,zx.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 Ed.Name)&&(o.props=(0,Gx.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,zx.checkStrictMode)(o,`property ${v} matches pattern ${g} (use allowMatchingProperties)`)}function p(g){t.forIn("key",n,v=>{t.if((0,Ed._)`${(0,Ux.usePattern)(e,g)}.test(${v})`,()=>{const _=c.includes(g);_||e.subschema({keyword:"patternProperties",schemaProp:g,dataProp:v,dataPropType:Gx.Type.Str},u),o.opts.unevaluated&&h!==!0?t.assign((0,Ed._)`${h}[${v}]`,!0):!_&&!o.allErrors&&t.if((0,Ed.not)(u),()=>t.break())})})}}};var AR=Fm.default=NR;const DR=Xt({__proto__:null,default:AR},[Fm]),RR=Wt(DR);var Mm={};Object.defineProperty(Mm,"__esModule",{value:!0});const IR=Ke,jR={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,IR.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 FR=Mm.default=jR;const MR=Xt({__proto__:null,default:FR},[Mm]),LR=Wt(MR);var Lm={};Object.defineProperty(Lm,"__esModule",{value:!0});const VR=xi,UR={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:VR.validateUnion,error:{message:"must match a schema in anyOf"}};var zR=Lm.default=UR;const GR=Xt({__proto__:null,default:zR},[Lm]),BR=Wt(GR);var Vm={};Object.defineProperty(Vm,"__esModule",{value:!0});const Cd=Oe,HR=Ke,qR={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Cd._)`{passingSchemas: ${e.passing}}`},KR={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:qR,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,HR.alwaysValidSchema)(i,u)?t.var(c,!0):f=e.subschema({keyword:"oneOf",schemaProp:h,compositeRule:!0},c),h>0&&t.if((0,Cd._)`${c} && ${s}`).assign(s,!1).assign(a,(0,Cd._)`[${a}, ${h}]`).else(),t.if(c,()=>{t.assign(s,!0),t.assign(a,h),f&&e.mergeEvaluated(f,Cd.Name)})})}}};var YR=Vm.default=KR;const XR=Xt({__proto__:null,default:YR},[Vm]),WR=Wt(XR);var Um={};Object.defineProperty(Um,"__esModule",{value:!0});const JR=Ke,QR={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,JR.alwaysValidSchema)(n,o))return;const a=e.subschema({keyword:"allOf",schemaProp:s},i);e.ok(i),e.mergeEvaluated(a)})}};var ZR=Um.default=QR;const tI=Xt({__proto__:null,default:ZR},[Um]),eI=Wt(tI);var zm={};Object.defineProperty(zm,"__esModule",{value:!0});const kd=Oe,Bx=Ke,rI={message:({params:e})=>(0,kd.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,kd._)`{failingKeyword: ${e.ifClause}}`},nI={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:rI,code(e){const{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,Bx.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const i=Hx(n,"then"),o=Hx(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,kd.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,kd._)`${u}`):e.setParams({ifClause:u})}}}};function Hx(e,t){const r=e.schema[t];return r!==void 0&&!(0,Bx.alwaysValidSchema)(e,r)}var iI=zm.default=nI;const oI=Xt({__proto__:null,default:iI},[zm]),sI=Wt(oI);var Gm={};Object.defineProperty(Gm,"__esModule",{value:!0});const aI=Ke,lI={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,aI.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};var cI=Gm.default=lI;const uI=Xt({__proto__:null,default:cI},[Gm]),hI=Wt(uI);Object.defineProperty(km,"__esModule",{value:!0});const dI=Nx,fI=Q7,pI=Ix,mI=sR,gI=hR,vI=pR,yI=bR,_I=Mx,bI=OR,wI=RR,xI=LR,SI=BR,$I=WR,EI=eI,CI=sI,kI=hI;function PI(e=!1){const t=[xI.default,SI.default,$I.default,EI.default,CI.default,kI.default,yI.default,_I.default,vI.default,bI.default,wI.default];return e?t.push(fI.default,mI.default):t.push(dI.default,pI.default),t.push(gI.default),t}var TI=km.default=PI;const OI=Xt({__proto__:null,default:TI},[km]),NI=Wt(OI);var Bm={},Hm={};Object.defineProperty(Hm,"__esModule",{value:!0});const Ar=Oe,AI={message:({schemaCode:e})=>(0,Ar.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,Ar._)`{format: ${e}}`},DI={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:AI,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,Ar._)`${p}[${s}]`),v=r.let("fType"),_=r.let("format");r.if((0,Ar._)`typeof ${g} == "object" && !(${g} instanceof RegExp)`,()=>r.assign(v,(0,Ar._)`${g}.type || "string"`).assign(_,(0,Ar._)`${g}.validate`),()=>r.assign(v,(0,Ar._)`"string"`).assign(_,g)),e.fail$data((0,Ar.or)(y(),m()));function y(){return c.strictSchema===!1?Ar.nil:(0,Ar._)`${s} && !${_}`}function m(){const x=u.$async?(0,Ar._)`(${g}.async ? await ${_}(${n}) : ${_}(${n}))`:(0,Ar._)`${_}(${n})`,N=(0,Ar._)`(typeof ${_} == "function" ? ${x} : ${_}.test(${n}))`;return(0,Ar._)`${_} && ${_} !== true && ${v} === ${t} && !${N}`}}function d(){const p=h.formats[o];if(!p){y();return}if(p===!0)return;const[g,v,_]=m(p);g===t&&e.pass(x());function y(){if(c.strictSchema===!1){h.logger.warn(N());return}throw new Error(N());function N(){return`unknown format "${o}" ignored in schema at path "${l}"`}}function m(N){const $=N instanceof RegExp?(0,Ar.regexpCode)(N):c.code.formats?(0,Ar._)`${c.code.formats}${(0,Ar.getProperty)(o)}`:void 0,k=r.scopeValue("formats",{key:o,ref:N,code:$});return typeof N=="object"&&!(N instanceof RegExp)?[N.type||"string",N.validate,(0,Ar._)`${k}.validate`]:["string",N,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,Ar._)`await ${_}(${n})`}return typeof v=="function"?(0,Ar._)`${_}(${n})`:(0,Ar._)`${_}.test(${n})`}}}};var RI=Hm.default=DI;const II=Xt({__proto__:null,default:RI},[Hm]),jI=Wt(II);Object.defineProperty(Bm,"__esModule",{value:!0});const FI=jI,MI=[FI.default];var LI=Bm.default=MI;const VI=Xt({__proto__:null,default:LI},[Bm]),UI=Wt(VI);var sa={};Object.defineProperty(sa,"__esModule",{value:!0});var qx=sa.contentVocabulary=Kx=sa.metadataVocabulary=void 0,Kx=sa.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];qx=sa.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];const zI=Xt({__proto__:null,get contentVocabulary(){return qx},default:sa,get metadataVocabulary(){return Kx}},[sa]),GI=Wt(zI);Object.defineProperty(lm,"__esModule",{value:!0});const BI=pD,HI=L7,qI=NI,KI=UI,Yx=GI,YI=[BI.default,HI.default,(0,qI.default)(),KI.default,Yx.metadataVocabulary,Yx.contentVocabulary];var XI=lm.default=YI;const WI=Xt({__proto__:null,default:XI},[lm]),JI=Wt(WI);var qm={},Km={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,function(t){t.Tag="tag",t.Mapping="mapping"}(e.DiscrError||(e.DiscrError={}))})(Km);const QI=On(Km),ZI=Xt({__proto__:null,default:QI},[Km]),tj=Wt(ZI);Object.defineProperty(qm,"__esModule",{value:!0});const tl=Oe,Ym=tj,Xx=om,ej=Ke,rj={message:({params:{discrError:e,tagName:t}})=>e===Ym.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,tl._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},nj={keyword:"discriminator",type:"object",schemaType:"object",error:rj,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,tl._)`${r}${(0,tl.getProperty)(a)}`);t.if((0,tl._)`typeof ${l} == "string"`,()=>u(),()=>e.error(!1,{discrError:Ym.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,tl._)`${l} === ${p}`),t.assign(c,h(d[p]));t.else(),e.error(!1,{discrError:Ym.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,tl.Name),p}function f(){var d;const p={},g=_(i);let v=!0;for(let x=0;x<s.length;x++){let N=s[x];N?.$ref&&!(0,ej.schemaHasRulesButRef)(N,o.self.RULES)&&(N=Xx.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,N?.$ref),N instanceof Xx.SchemaEnv&&(N=N.schema));const $=(d=N?.properties)===null||d===void 0?void 0:d[a];if(typeof $!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);v=v&&(g||_(N)),y($,x)}if(!v)throw new Error(`discriminator: "${a}" must be required`);return p;function _({required:x}){return Array.isArray(x)&&x.includes(a)}function y(x,N){if(x.const)m(x.const,N);else if(x.enum)for(const $ of x.enum)m($,N);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function m(x,N){if(typeof x!="string"||x in p)throw new Error(`discriminator: "${a}" values must be unique strings`);p[x]=N}}}};var ij=qm.default=nj;const oj=Xt({__proto__:null,default:ij},[qm]),sj=Wt(oj),aj="http://json-schema.org/draft-07/schema#",lj="http://json-schema.org/draft-07/schema#",cj="Core schema meta-schema",uj={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:[]}},hj=["object","boolean"],dj={$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:"#"}},fj={$schema:aj,$id:lj,title:cj,definitions:uj,type:hj,properties:dj,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=Z9,n=JI,i=sj,o=fj,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=dc;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var u=Oe;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=rm;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(j0,j0.exports);var Wx=j0.exports;const Jx=On(Wx),pj=Xt({__proto__:null,default:Jx},[Wx]);var Xm={exports:{}};const mj=Wt(pj);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=mj,n=Oe,i=ac,o=dc,s=lc,a=xo,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(_){const{gen:y,data:m,schema:x,schemaValue:N,it:$}=_;if($.createErrors===!1)return;const k=x,D=n.strConcat(a.default.instancePath,$.errorPath);y.if(r._`${a.default.errors} > 0`,()=>{if(typeof k=="object"){const[E,b]=U(k);b&&K(b),E&&Y(E),it(V(k))}const C=typeof k=="string"?k:k._;C&&nt(C),v.keepErrors||ft()});function V({properties:C,items:E}){const b={};if(C){b.props={};for(const P in C)b.props[P]=[]}if(E){b.items={};for(let P=0;P<E.length;P++)b.items[P]=[]}return b}function U(C){let E,b;for(const P in C){if(P==="properties"||P==="items")continue;const M=C[P];if(typeof M=="object"){E||(E={});const I=E[P]={};for(const G in M)I[G]=[]}else b||(b={}),b[P]=[]}return[E,b]}function K(C){const E=y.const("emErrors",r.stringify(C)),b=y.const("templates",at(C,x));y.forOf("err",a.default.vErrors,G=>y.if(xt(G,E),()=>y.code(r._`${E}[${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(${E}[${et}])`)}),s.reportError(_,{message:G,params:r._`{errors: ${q}}`})}else M(G=>s.reportError(_,{message:I(G),params:r._`{errors: ${E}[${G}]}`}));function M(G){y.forIn("key",E,q=>y.if(r._`${E}[${q}].length`,()=>G(q)))}function I(G){return r._`${G} in ${b} ? ${b}[${G}]() : ${N}[${G}]`}}function Y(C){const E=y.const("emErrors",r.stringify(C)),b=[];for(const q in C)b.push([q,at(C[q],x[q])]);const P=y.const("templates",y.object(...b)),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,E),()=>{y.assign(I,r._`${M}[${q}.keyword]`),y.assign(G,r._`${E}[${q}.keyword][${q}.params[${I}]]`),y.if(G,()=>y.code(r._`${G}.push(${q})`).assign(r._`${q}.${l}`,!0))})),y.forIn("key",E,q=>y.forIn("keyProp",r._`${E}[${q}]`,et=>{y.assign(G,r._`${E}[${q}][${et}]`),y.if(r._`${G}.length`,()=>{const st=y.const("tmpl",r._`${P}[${q}] && ${P}[${q}][${et}]`);s.reportError(_,{message:r._`${st} ? ${st}() : ${N}[${q}][${et}]`,params:r._`{errors: ${G}}`})})}))}function it(C){const{props:E,items:b}=C;if(!E&&!b)return;const P=r._`typeof ${m} == "object"`,M=r._`Array.isArray(${m})`,I=y.let("emErrors");let G,q;const et=y.let("templates");E&&b?(G=y.let("emChildKwd"),y.if(P),y.if(M,()=>{st(b,x.items),y.assign(G,r.str`items`)},()=>{st(E,x.properties),y.assign(G,r.str`properties`)}),q=r._`[${G}]`):b?(y.if(M),st(b,x.items),q=r._`.items`):E&&(y.if(n.and(P,n.not(M))),st(E,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(_,{message:r._`${mt} in ${et} ? ${et}[${mt}]() : ${N}${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 E=y.const("emErrs",r._`[]`);y.forOf("err",a.default.vErrors,b=>y.if(yt(b),()=>y.code(r._`${E}.push(${b})`).assign(r._`${b}.${l}`,!0))),y.if(r._`${E}.length`,()=>s.reportError(_,{message:X(C),params:r._`{errors: ${E}}`}))}function ft(){const C=y.const("emErrs",r._`[]`);y.forOf("err",a.default.vErrors,E=>y.if(r._`!${E}.${l}`,()=>y.code(r._`${C}.push(${E})`))),y.assign(a.default.vErrors,C).assign(a.default.errors,r._`${C}.length`)}function xt(C,E){return n.and(r._`${C}.keyword !== ${c}`,r._`!${C}.${l}`,r._`${C}.instancePath === ${D}`,r._`${C}.keyword in ${E}`,r._`${C}.schemaPath.indexOf(${$.errSchemaPath}) === 0`,r._`/^\\/[^\\/]*$/.test(${C}.schemaPath.slice(${$.errSchemaPath.length}))`)}function _t(C,E,b){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 ${E}`,()=>b(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(${$.errSchemaPath}) === 0`,r._`${C}.schemaPath[${$.errSchemaPath}.length] === "/"`)}function at(C,E){const b=[];for(const P in C){const M=E[P];h.test(M)&&b.push([P,O(M)])}return y.object(...b)}function X(C){return h.test(C)?new i._Code(i.safeStringify(C).replace(f,(E,b)=>`" + JSON.stringify(${o.getData(b,$)}) + "`).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,_={})=>{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(_))};t.default=g,e.exports=g,e.exports.default=g})(Xm,Xm.exports);var gj=Xm.exports;const vj=On(gj),yj=new Jx({allErrors:!0});vj(yj);const wc=/^[a-z0-9]+(-[a-z0-9]+)*$/,Pd=(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&&!Td(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&&!Td(a)?null:a}if(r&&n===""){const a={provider:n,prefix:"",name:o};return t&&!Td(a,r)?null:a}return null},Td=(e,t)=>e?!!((e.provider===""||e.provider.match(wc))&&(t&&e.prefix===""||e.prefix.match(wc))&&e.name.match(wc)):!1,Qx=Object.freeze({left:0,top:0,width:16,height:16}),Od=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Nd=Object.freeze({...Qx,...Od}),Wm=Object.freeze({...Nd,body:"",hidden:!1});function _j(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 Zx(e,t){const r=_j(e,t);for(const n in Wm)n in Od?n in e&&!(n in r)&&(r[n]=Od[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function bj(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 wj(e,t,r){const n=e.icons,i=e.aliases||Object.create(null);let o={};function s(a){o=Zx(n[a]||i[a],o)}return s(t),r.forEach(s),Zx(e,o)}function tS(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=bj(e);for(const i in n){const o=n[i];o&&(t(i,wj(e,i,o)),r.push(i))}return r}const xj={provider:"",aliases:{},not_found:{},...Qx};function Jm(e,t){for(const r in t)if(r in e&&typeof e[r]!=typeof t[r])return!1;return!0}function eS(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!Jm(e,xj))return null;const r=t.icons;for(const i in r){const o=r[i];if(!i.match(wc)||typeof o.body!="string"||!Jm(o,Wm))return null}const n=t.aliases||Object.create(null);for(const i in n){const o=n[i],s=o.parent;if(!i.match(wc)||typeof s!="string"||!r[s]&&!n[s]||!Jm(o,Wm))return null}return t}const rS=Object.create(null);function Sj(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function aa(e,t){const r=rS[e]||(rS[e]=Object.create(null));return r[t]||(r[t]=Sj(e,t))}function Qm(e,t){return eS(t)?tS(t,(r,n)=>{n?e.icons[r]=n:e.missing.add(r)}):[]}function $j(e,t,r){try{if(typeof r.body=="string")return e.icons[t]={...r},!0}catch{}return!1}let xc=!1;function nS(e){return typeof e=="boolean"&&(xc=e),xc}function Ej(e){const t=typeof e=="string"?Pd(e,!0,xc):e;if(t){const r=aa(t.provider,t.prefix),n=t.name;return r.icons[n]||(r.missing.has(n)?null:void 0)}}function Cj(e,t){const r=Pd(e,!0,xc);if(!r)return!1;const n=aa(r.provider,r.prefix);return $j(n,r.name,t)}function kj(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),xc&&!t&&!e.prefix){let i=!1;return eS(e)&&(e.prefix="",tS(e,(o,s)=>{s&&Cj(o,s)&&(i=!0)})),i}const r=e.prefix;if(!Td({provider:t,prefix:r,name:"a"}))return!1;const n=aa(t,r);return!!Qm(n,e)}const iS=Object.freeze({width:null,height:null}),oS=Object.freeze({...iS,...Od}),Pj=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Tj=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function sS(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(Pj);if(n===null||!n.length)return e;const i=[];let o=n.shift(),s=Tj.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 Oj(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 Nj(e,t){return e?"<defs>"+e+"</defs>"+t:t}function Aj(e,t,r){const n=Oj(e);return Nj(n.defs,t+n.content+r)}const Dj=e=>e==="unset"||e==="undefined"||e==="none";function Rj(e,t){const r={...Nd,...e},n={...oS,...t},i={left:r.left,top:r.top,width:r.width,height:r.height};let o=r.body;[r,n].forEach(g=>{const v=[],_=g.hFlip,y=g.vFlip;let m=g.rotate;_?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=Aj(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=sS(h,c/l)):(u=s==="auto"?c:s,h=a===null?sS(u,l/c):a==="auto"?l:a);const f={},d=(g,v)=>{Dj(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 Ij=/\sid="(\S+)"/g,jj="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Fj=0;function Mj(e,t=jj){const r=[];let n;for(;n=Ij.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+(Fj++).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 Lj(e,t){Zm[e]=t}function tg(e){return Zm[e]||Zm[""]}function eg(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 rg=Object.create(null),Sc=["https://api.simplesvg.com","https://api.unisvg.com"],Ad=[];for(;Sc.length>0;)Sc.length===1||Math.random()>.5?Ad.push(Sc.shift()):Ad.push(Sc.pop());rg[""]=eg({resources:["https://api.iconify.design"].concat(Ad)});function Vj(e,t){const r=eg(t);return r===null?!1:(rg[e]=r,!0)}function ng(e){return rg[e]}let aS=(()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}})();function Uj(e,t){const r=ng(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 zj(e){return e===404}const Gj=(e,t,r)=>{const n=[],i=Uj(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 Bj(e){if(typeof e=="string"){const t=ng(e);if(t)return t.path}return"/"}const Hj={prepare:Gj,send:(e,t,r)=>{if(!aS){r("abort",424);return}let n=Bj(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;aS(e+n).then(o=>{const s=o.status;if(s!==200){setTimeout(()=>{r(zj(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 qj(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]=aa(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 lS(e,t){e.forEach(r=>{const n=r.loaderCallbacks;n&&(r.loaderCallbacks=n.filter(i=>i.id!==t))})}function Kj(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||lS([e],o.id),o.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),o.abort))})}))}let Yj=0;function Xj(e,t,r){const n=Yj++,i=lS.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 Wj(e,t=!0,r=!1){const n=[];return e.forEach(i=>{const o=typeof i=="string"?Pd(i,t,r):i;o&&n.push(o)}),n}var Jj={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Qj(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.resources.slice(0);for(s=[];$.length>1;){const k=Math.floor(Math.random()*$.length);s.push($[k]),$=$.slice(0,k).concat($.slice(k+1))}s=s.concat($)}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($=>{$.status==="pending"&&($.status="aborted")}),f=[]}function v($,k){k&&(d=[]),typeof $=="function"&&d.push($)}function _(){return{startTime:a,payload:t,status:c,queriesSent:l,queriesPending:f.length,subscribe:v,abort:g}}function y(){c="failed",d.forEach($=>{$(void 0,u)})}function m(){f.forEach($=>{$.status==="pending"&&($.status="aborted")}),f=[]}function x($,k,D){const V=k!=="success";switch(f=f.filter(U=>U!==$),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?N():y());return}if(p(),m(),!e.random){const U=e.resources.indexOf($.resource);U!==-1&&U!==e.index&&(e.index=U)}c="completed",d.forEach(U=>{U(D)})}function N(){if(c!=="pending")return;p();const $=s.shift();if($===void 0){if(f.length){h=setTimeout(()=>{p(),c==="pending"&&(m(),y())},e.timeout);return}y();return}const k={status:"pending",resource:$,callback:(D,V)=>{x(k,D,V)}};f.push(k),l++,h=setTimeout(N,e.rotate),r($,t,k.callback)}return setTimeout(N),_}function cS(e){const t={...Jj,...e};let r=[];function n(){r=r.filter(a=>a().status==="pending")}function i(a,c,l){const u=Qj(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 uS(){}const ig=Object.create(null);function Zj(e){if(!ig[e]){const t=ng(e);if(!t)return;const r=cS(t),n={config:t,redundancy:r};ig[e]=n}return ig[e]}function tF(e,t,r){let n,i;if(typeof e=="string"){const o=tg(e);if(!o)return r(void 0,424),uS;i=o.send;const s=Zj(e);s&&(n=s.redundancy)}else{const o=eg(e);if(o){n=cS(o);const s=e.resources?e.resources[0]:"",a=tg(s);a&&(i=a.send)}}return!n||!i?(r(void 0,424),uS):n.query(t,i,r)().abort}const hS="iconify2",$c="iconify",dS=$c+"-count",fS=$c+"-version",pS=36e5,eF=168,rF=50;function og(e,t){try{return e.getItem(t)}catch{}}function sg(e,t,r){try{return e.setItem(t,r),!0}catch{}}function mS(e,t){try{e.removeItem(t)}catch{}}function ag(e,t){return sg(e,dS,t.toString())}function lg(e){return parseInt(og(e,dS))||0}const Dd={local:!0,session:!0},gS={local:new Set,session:new Set};let cg=!1;function nF(e){cg=e}let Rd=typeof window>"u"?{}:window;function vS(e){const t=e+"Storage";try{if(Rd&&Rd[t]&&typeof Rd[t].length=="number")return Rd[t]}catch{}Dd[e]=!1}function yS(e,t){const r=vS(e);if(!r)return;const n=og(r,fS);if(n!==hS){if(n){const a=lg(r);for(let c=0;c<a;c++)mS(r,$c+c.toString())}sg(r,fS,hS),ag(r,0);return}const i=Math.floor(Date.now()/pS)-eF,o=a=>{const c=$c+a.toString(),l=og(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{}mS(r,c)}};let s=lg(r);for(let a=s-1;a>=0;a--)o(a)||(a===s-1?(s--,ag(r,s)):gS[e].add(a))}function _S(){if(!cg){nF(!0);for(const e in Dd)yS(e,t=>{const r=t.data,n=t.provider,i=r.prefix,o=aa(n,i);if(!Qm(o,r).length)return!1;const s=r.lastModified||-1;return o.lastModifiedCached=o.lastModifiedCached?Math.min(o.lastModifiedCached,s):s,!0})}}function iF(e,t){const r=e.lastModifiedCached;if(r&&r>=t)return r===t;if(e.lastModifiedCached=t,r)for(const n in Dd)yS(n,i=>{const o=i.data;return i.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===t});return!0}function oF(e,t){cg||_S();function r(n){let i;if(!Dd[n]||!(i=vS(n)))return;const o=gS[n];let s;if(o.size)o.delete(s=Array.from(o).shift());else if(s=lg(i),s>=rF||!ag(i,s+1))return;const a={cached:Math.floor(Date.now()/pS),provider:e.provider,data:t};return sg(i,$c+s.toString(),JSON.stringify(a))}t.lastModified&&!iF(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),r("local")||r("session"))}function bS(){}function sF(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Kj(e)}))}function aF(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=tg(r)))return;o.prepare(r,n,i).forEach(a=>{tF(r,a,c=>{if(typeof c!="object")a.icons.forEach(l=>{e.missing.add(l)});else try{const l=Qm(e,c);if(!l.length)return;const u=e.pendingIcons;u&&l.forEach(h=>{u.delete(h)}),oF(e,c)}catch(l){console.error(l)}sF(e)})})}))}const lF=(e,t)=>{const r=Wj(e,!0,nS()),n=qj(r);if(!n.pending.length){let c=!0;return t&&setTimeout(()=>{c&&t(n.loaded,n.missing,n.pending,bS)}),()=>{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(aa(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=aa(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&&aF(c,i[l][u])}),t?Xj(t,n,o):bS};function cF(e,t){const r={...e};for(const n in t){const i=t[n],o=typeof i;n in iS?(i===null||i&&(o==="string"||o==="number"))&&(r[n]=i):o===typeof r[n]&&(r[n]=n==="rotate"?i%4:i)}return r}const uF=/[\s,]+/;function hF(e,t){t.split(uF).forEach(r=>{switch(r.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function dF(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 fF(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 pF(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function mF(e){return"data:image/svg+xml,"+pF(e)}function gF(e){return'url("'+mF(e)+'")'}const wS={...oS,inline:!1},vF={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},yF={display:"inline-block"},ug={backgroundColor:"currentColor"},xS={backgroundColor:"transparent"},SS={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},$S={webkitMask:ug,mask:ug,background:xS};for(const e in $S){const t=$S[e];for(const r in SS)t[e+r]=SS[r]}const Id={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";Id[e+"-flip"]=t,Id[e.slice(0,1)+"-flip"]=t,Id[e+"Flip"]=t});function ES(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const CS=(e,t)=>{const r=cF(wS,t),n={...vF},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"&&hF(r,v);break;case"color":o.color=v;break;case"rotate":typeof v=="string"?r[g]=dF(v):typeof v=="number"&&(r[g]=v);break;case"ariaHidden":case"aria-hidden":v!==!0&&v!=="true"&&delete n["aria-hidden"];break;default:{const _=Id[g];_?(v===!0||v==="true"||v===1)&&(r[_]=!0):wS[g]===void 0&&(n[g]=v)}}}const c=Rj(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=Mj(c.body,v?()=>v+"ID"+g++:"iconifyVue"),zn("svg",n)}const{body:u,width:h,height:f}=e,d=i==="mask"||(i==="bg"?!1:u.indexOf("currentColor")!==-1),p=fF(u,{...l,width:h+"",height:f+""});return n.style={...o,"--svg":gF(p),width:ES(l.width),height:ES(l.height),...yF,...d?ug:xS,...a},zn("span",n)};if(nS(!0),Lj("",Hj),typeof document<"u"&&typeof window<"u"){_S();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"||!kj(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;Vj(r,i)||console.error(n)}catch{console.error(n)}}}}const _F={...Nd,body:""},kS=Xe({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=Pd(e,!1,!0))===null)return this.abortLoading(),null;const n=Ej(r);if(!n)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",n!==null&&(this._loadingIcon={name:e,abort:lF([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 CS(_F,e);let r=e;return t.classes&&(r={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),CS({...Nd,...t.data},r)}});function le(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 Jt(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 jd=typeof window=="object"&&typeof document=="object";typeof process<"u"&&process.versions!=null&&process.versions.node!=null;const bF=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 wF(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=bF(e)||new RegExp(e));const r=[],n=t.matchAll(e);for(const i of n)r.push(wF(i));return r};function xF(e){const t=typeof e;return t!=="object"?t:Object.prototype.toString.call(e).replace(/^\[object (\S+)\]$/,"$1").toLowerCase()}function SF(e){return xF(e)==="object"}function TS(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]=SF(e[i])?TS(e[i],t):e[i];return n}function OS(e,t=12){return+e.toPrecision(t)}function NS(e,t){return function(){return e.apply(t,arguments)}}const{toString:$F}=Object.prototype,{getPrototypeOf:hg}=Object,Fd=(e=>t=>{const r=$F.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Hi=e=>(e=e.toLowerCase(),t=>Fd(t)===e),Md=e=>t=>typeof t===e,{isArray:el}=Array,Ec=Md("undefined");function EF(e){return e!==null&&!Ec(e)&&e.constructor!==null&&!Ec(e.constructor)&&ii(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const AS=Hi("ArrayBuffer");function CF(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&AS(e.buffer),t}const kF=Md("string"),ii=Md("function"),DS=Md("number"),Ld=e=>e!==null&&typeof e=="object",PF=e=>e===!0||e===!1,Vd=e=>{if(Fd(e)!=="object")return!1;const t=hg(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},TF=Hi("Date"),OF=Hi("File"),NF=Hi("Blob"),AF=Hi("FileList"),DF=e=>Ld(e)&&ii(e.pipe),RF=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ii(e.append)&&((t=Fd(e))==="formdata"||t==="object"&&ii(e.toString)&&e.toString()==="[object FormData]"))},IF=Hi("URLSearchParams"),jF=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Cc(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),el(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 RS(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 IS=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),jS=e=>!Ec(e)&&e!==IS;function dg(){const{caseless:e}=jS(this)&&this||{},t={},r=(n,i)=>{const o=e&&RS(t,i)||i;Vd(t[o])&&Vd(n)?t[o]=dg(t[o],n):Vd(n)?t[o]=dg({},n):el(n)?t[o]=n.slice():t[o]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&Cc(arguments[n],r);return t}const FF=(e,t,r,{allOwnKeys:n}={})=>(Cc(t,(i,o)=>{r&&ii(i)?e[o]=NS(i,r):e[o]=i},{allOwnKeys:n}),e),MF=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),LF=(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)},VF=(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&&hg(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},UF=(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},zF=e=>{if(!e)return null;if(el(e))return e;let t=e.length;if(!DS(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},GF=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&hg(Uint8Array)),BF=(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])}},HF=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},qF=Hi("HTMLFormElement"),KF=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),FS=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),YF=Hi("RegExp"),MS=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Cc(r,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(n[o]=s||i)}),Object.defineProperties(e,n)},XF=e=>{MS(e,(t,r)=>{if(ii(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(ii(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+"'")})}})},WF=(e,t)=>{const r={},n=i=>{i.forEach(o=>{r[o]=!0})};return el(e)?n(e):n(String(e).split(t)),r},JF=()=>{},QF=(e,t)=>(e=+e,Number.isFinite(e)?e:t),fg="abcdefghijklmnopqrstuvwxyz",LS="0123456789",VS={DIGIT:LS,ALPHA:fg,ALPHA_DIGIT:fg+fg.toUpperCase()+LS},ZF=(e=16,t=VS.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function tM(e){return!!(e&&ii(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const eM=e=>{const t=new Array(10),r=(n,i)=>{if(Ld(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const o=el(n)?[]:{};return Cc(n,(s,a)=>{const c=r(s,i+1);!Ec(c)&&(o[a]=c)}),t[i]=void 0,o}}return n};return r(e,0)},rM=Hi("AsyncFunction"),nM=e=>e&&(Ld(e)||ii(e))&&ii(e.then)&&ii(e.catch),Pt={isArray:el,isArrayBuffer:AS,isBuffer:EF,isFormData:RF,isArrayBufferView:CF,isString:kF,isNumber:DS,isBoolean:PF,isObject:Ld,isPlainObject:Vd,isUndefined:Ec,isDate:TF,isFile:OF,isBlob:NF,isRegExp:YF,isFunction:ii,isStream:DF,isURLSearchParams:IF,isTypedArray:GF,isFileList:AF,forEach:Cc,merge:dg,extend:FF,trim:jF,stripBOM:MF,inherits:LF,toFlatObject:VF,kindOf:Fd,kindOfTest:Hi,endsWith:UF,toArray:zF,forEachEntry:BF,matchAll:HF,isHTMLForm:qF,hasOwnProperty:FS,hasOwnProp:FS,reduceDescriptors:MS,freezeMethods:XF,toObjectSet:WF,toCamelCase:KF,noop:JF,toFiniteNumber:QF,findKey:RS,global:IS,isContextDefined:jS,ALPHABET:VS,generateString:ZF,isSpecCompliantForm:tM,toJSONObject:eM,isAsyncFn:rM,isThenable:nM};function Ge(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(Ge,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 US=Ge.prototype,zS={};["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=>{zS[e]={value:e}}),Object.defineProperties(Ge,zS),Object.defineProperty(US,"isAxiosError",{value:!0}),Ge.from=(e,t,r,n,i,o)=>{const s=Object.create(US);return Pt.toFlatObject(e,s,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),Ge.call(s,e.message,t,r,n,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const iM=null;function pg(e){return Pt.isPlainObject(e)||Pt.isArray(e)}function GS(e){return Pt.endsWith(e,"[]")?e.slice(0,-2):e}function BS(e,t,r){return e?e.concat(t).map(function(n,i){return n=GS(n),!r&&i?"["+n+"]":n}).join(r?".":""):t}function oM(e){return Pt.isArray(e)&&!e.some(pg)}const sM=Pt.toFlatObject(Pt,{},null,function(e){return/^is[A-Z]/.test(e)});function Ud(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 Ge("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)&&oM(d)||(Pt.isFileList(d)||Pt.endsWith(p,"[]"))&&(v=Pt.toArray(d)))return p=GS(p),v.forEach(function(_,y){!(Pt.isUndefined(_)||_===null)&&t.append(s===!0?BS([p],y,o):s===null?p:p+"[]",c(_))}),!1}return pg(d)?!0:(t.append(BS(g,p,o),c(d)),!1)}const u=[],h=Object.assign(sM,{defaultVisitor:l,convertValue:c,isVisitable:pg});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 HS(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function mg(e,t){this._pairs=[],e&&Ud(e,this,t)}const qS=mg.prototype;qS.append=function(e,t){this._pairs.push([e,t])},qS.toString=function(e){const t=e?function(r){return e.call(this,r,HS)}:HS;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function aM(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function KS(e,t,r){if(!t)return e;const n=r&&r.encode||aM,i=r&&r.serialize;let o;if(i?o=i(t,r):o=Pt.isURLSearchParams(t)?t.toString():new mg(t,r).toString(n),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class lM{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 YS=lM,XS={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},cM=typeof URLSearchParams<"u"?URLSearchParams:mg,uM=typeof FormData<"u"?FormData:null,hM=typeof Blob<"u"?Blob:null,dM=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),fM=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),qi={isBrowser:!0,classes:{URLSearchParams:cM,FormData:uM,Blob:hM},isStandardBrowserEnv:dM,isStandardBrowserWebWorkerEnv:fM,protocols:["http","https","file","blob","url","data"]};function pM(e,t){return Ud(e,new qi.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,o){return qi.isNode&&Pt.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function mM(e){return Pt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function gM(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 WS(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]=gM(i[s])),!a)}if(Pt.isFormData(e)&&Pt.isFunction(e.entries)){const r={};return Pt.forEachEntry(e,(n,i)=>{t(mM(n),i,r,0)}),r}return null}function vM(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 gg={transitional:XS,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(WS(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 pM(e,this.formSerializer).toString();if((o=Pt.isFileList(e))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Ud(o?{"files[]":e}:e,s&&new s,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),vM(e)):e}],transformResponse:[function(e){const t=this.transitional||gg.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"?Ge.from(o,Ge.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:qi.classes.FormData,Blob:qi.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=>{gg.headers[e]={}});const vg=gg,yM=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"]),_M=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]&&yM[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},JS=Symbol("internals");function kc(e){return e&&String(e).trim().toLowerCase()}function zd(e){return e===!1||e==null?e:Pt.isArray(e)?e.map(zd):String(e)}function bM(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 wM=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function yg(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 xM(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function SM(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 Gd{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function o(a,c,l){const u=kc(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]=zd(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())&&!wM(t)?s(_M(t),r):t!=null&&o(r,t,n),this}get(t,r){if(t=kc(t),t){const n=Pt.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return bM(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=kc(t),t){const n=Pt.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||yg(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function o(s){if(s=kc(s),s){const a=Pt.findKey(n,s);a&&(!r||yg(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||yg(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]=zd(i),delete r[o];return}const a=t?xM(o):String(o).trim();a!==o&&delete r[o],r[a]=zd(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[JS]=this[JS]={accessors:{}}).accessors,n=this.prototype;function i(o){const s=kc(o);r[s]||(SM(n,o),r[s]=!0)}return Pt.isArray(t)?t.forEach(i):i(t),this}}Gd.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Pt.reduceDescriptors(Gd.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),Pt.freezeMethods(Gd);const Co=Gd;function _g(e,t){const r=this||vg,n=t||r,i=Co.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 QS(e){return!!(e&&e.__CANCEL__)}function Pc(e,t,r){Ge.call(this,e??"canceled",Ge.ERR_CANCELED,t,r),this.name="CanceledError"}Pt.inherits(Pc,Ge,{__CANCEL__:!0});function $M(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Ge("Request failed with status code "+r.status,[Ge.ERR_BAD_REQUEST,Ge.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const EM=qi.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 CM(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function kM(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function ZS(e,t){return e&&!CM(t)?kM(e,t):t}const PM=qi.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 TM(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function OM(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 t$(e,t){let r=0;const n=OM(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 NM=typeof XMLHttpRequest<"u",AM=NM&&function(e){return new Promise(function(t,r){let n=e.data;const i=Co.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)&&(qi.isStandardBrowserEnv||qi.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=ZS(e.baseURL,e.url);l.open(e.method.toUpperCase(),KS(u,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function h(){if(!l)return;const d=Co.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};$M(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 Ge("Request aborted",Ge.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new Ge("Network Error",Ge.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||XS;e.timeoutErrorMessage&&(d=e.timeoutErrorMessage),r(new Ge(d,p.clarifyTimeoutError?Ge.ETIMEDOUT:Ge.ECONNABORTED,e,l)),l=null},qi.isStandardBrowserEnv){const d=(e.withCredentials||PM(u))&&e.xsrfCookieName&&EM.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",t$(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",t$(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=d=>{l&&(r(!d||d.type?new Pc(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=TM(u);if(f&&qi.protocols.indexOf(f)===-1){r(new Ge("Unsupported protocol "+f+":",Ge.ERR_BAD_REQUEST,e));return}l.send(n||null)})},bg={http:iM,xhr:AM};Pt.forEach(bg,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const e$=e=>`- ${e}`,DM=e=>Pt.isFunction(e)||e===null||e===!1,r$={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,!DM(r)&&(n=bg[(s=String(r)).toLowerCase()],n===void 0))throw new Ge(`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(e$).join(`
65
- `):" "+e$(o[0]):"as no adapter specified";throw new Ge("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:bg};function wg(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Pc(null,e)}function n$(e){return wg(e),e.headers=Co.from(e.headers),e.data=_g.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),r$.getAdapter(e.adapter||vg.adapter)(e).then(function(t){return wg(e),t.data=_g.call(e,e.transformResponse,t),t.headers=Co.from(t.headers),t},function(t){return QS(t)||(wg(e),t&&t.response&&(t.response.data=_g.call(e,e.transformResponse,t.response),t.response.headers=Co.from(t.response.headers))),Promise.reject(t)})}const i$=e=>e instanceof Co?e.toJSON():e;function rl(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(i$(l),i$(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 o$="1.5.1",xg={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{xg[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const s$={};xg.transitional=function(e,t,r){function n(i,o){return"[Axios v"+o$+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,s)=>{if(e===!1)throw new Ge(n(o," has been removed"+(t?" in "+t:"")),Ge.ERR_DEPRECATED);return t&&!s$[o]&&(s$[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 RM(e,t,r){if(typeof e!="object")throw new Ge("options must be an object",Ge.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 Ge("option "+o+" must be "+c,Ge.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Ge("Unknown option "+o,Ge.ERR_BAD_OPTION)}}const Sg={assertOptions:RM,validators:xg},hs=Sg.validators;class Bd{constructor(t){this.defaults=t,this.interceptors={request:new YS,response:new YS}}request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=rl(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:o}=r;n!==void 0&&Sg.assertOptions(n,{silentJSONParsing:hs.transitional(hs.boolean),forcedJSONParsing:hs.transitional(hs.boolean),clarifyTimeoutError:hs.transitional(hs.boolean)},!1),i!=null&&(Pt.isFunction(i)?r.paramsSerializer={serialize:i}:Sg.assertOptions(i,{encode:hs.function,serialize:hs.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=Co.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=[n$.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=n$.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=rl(this.defaults,t);const r=ZS(t.baseURL,t.url);return KS(r,t.params,t.paramsSerializer)}}Pt.forEach(["delete","get","head","options"],function(e){Bd.prototype[e]=function(t,r){return this.request(rl(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(rl(o||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}Bd.prototype[e]=t(),Bd.prototype[e+"Form"]=t(!0)});const Hd=Bd;class $g{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 Pc(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 $g(function(r){t=r}),cancel:t}}}const IM=$g;function jM(e){return function(t){return e.apply(null,t)}}function FM(e){return Pt.isObject(e)&&e.isAxiosError===!0}const Eg={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(Eg).forEach(([e,t])=>{Eg[t]=e});const MM=Eg;function a$(e){const t=new Hd(e),r=NS(Hd.prototype.request,t);return Pt.extend(r,Hd.prototype,t,{allOwnKeys:!0}),Pt.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return a$(rl(e,n))},r}const Hr=a$(vg);Hr.Axios=Hd,Hr.CanceledError=Pc,Hr.CancelToken=IM,Hr.isCancel=QS,Hr.VERSION=o$,Hr.toFormData=Ud,Hr.AxiosError=Ge,Hr.Cancel=Hr.CanceledError,Hr.all=function(e){return Promise.all(e)},Hr.spread=jM,Hr.isAxiosError=FM,Hr.mergeConfig=rl,Hr.AxiosHeaders=Co,Hr.formToJSON=e=>WS(Pt.isHTMLForm(e)?new FormData(e):e),Hr.getAdapter=r$.getAdapter,Hr.HttpStatusCode=MM,Hr.default=Hr;var Cg=function(e,t){return Cg=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])},Cg(e,t)};function ds(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Cg(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function kg(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 Tc(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 Oc(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 ko(e){return typeof e=="function"}function Pg(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 Tg=Pg(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 qd(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Nc=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=kg(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(ko(u))try{u()}catch(g){o=g instanceof Tg?g.errors:[g]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var f=kg(h),d=f.next();!d.done;d=f.next()){var p=d.value;try{u$(p)}catch(g){o=o??[],g instanceof Tg?o=Oc(Oc([],Tc(o)),Tc(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 Tg(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)u$(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)&&qd(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&qd(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),l$=Nc.EMPTY;function c$(e){return e instanceof Nc||e&&"closed"in e&&ko(e.remove)&&ko(e.add)&&ko(e.unsubscribe)}function u$(e){ko(e)?e():e.unsubscribe()}var h$={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},LM={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,Oc([e,t],Tc(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function VM(e){LM.setTimeout(function(){throw e})}function d$(){}function Kd(e){e()}var Og=function(e){ds(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,c$(r)&&r.add(n)):n.destination=BM,n}return t.create=function(r,n,i){return new Ag(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}(Nc),UM=Function.prototype.bind;function Ng(e,t){return UM.call(e,t)}var zM=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){Yd(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){Yd(n)}else Yd(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Yd(r)}},e}(),Ag=function(e){ds(t,e);function t(r,n,i){var o=e.call(this)||this,s;if(ko(r)||!r)s={next:r??void 0,error:n??void 0,complete:i??void 0};else{var a;o&&h$.useDeprecatedNextContext?(a=Object.create(r),a.unsubscribe=function(){return o.unsubscribe()},s={next:r.next&&Ng(r.next,a),error:r.error&&Ng(r.error,a),complete:r.complete&&Ng(r.complete,a)}):s=r}return o.destination=new zM(s),o}return t}(Og);function Yd(e){VM(e)}function GM(e){throw e}var BM={closed:!0,next:d$,error:GM,complete:d$},HM=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function qM(e){return e}function KM(e){return e.length===0?qM:e.length===1?e[0]:function(t){return e.reduce(function(r,n){return n(r)},t)}}var f$=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=XM(t)?t:new Ag(t,r,n);return Kd(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=p$(r),new r(function(i,o){var s=new Ag({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[HM]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return KM(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=p$(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 p$(e){var t;return(t=e??h$.Promise)!==null&&t!==void 0?t:Promise}function YM(e){return e&&ko(e.next)&&ko(e.error)&&ko(e.complete)}function XM(e){return e&&e instanceof Og||YM(e)&&c$(e)}(function(e){ds(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})(Og);var WM=Pg(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),JM=function(e){ds(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 m$(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new WM},t.prototype.next=function(r){var n=this;Kd(function(){var i,o;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var s=kg(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;Kd(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;Kd(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?l$:(this.currentObservers=null,a.push(r),new Nc(function(){n.currentObservers=null,qd(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 f$;return r.source=this,r},t.create=function(r,n){return new m$(r,n)},t}(f$),m$=function(e){ds(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:l$},t}(JM),QM={now:function(){return Date.now()},delegate:void 0},ZM=function(e){ds(t,e);function t(r,n){return e.call(this)||this}return t.prototype.schedule=function(r,n){return this},t}(Nc),Dg={setInterval:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=Dg.delegate;return i?.setInterval?i.setInterval.apply(i,Oc([e,t],Tc(r))):setInterval.apply(void 0,Oc([e,t],Tc(r)))},clearInterval:function(e){return clearInterval(e)},delegate:void 0},tL=function(e){ds(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),Dg.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&&Dg.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,qd(o,this),n!=null&&(this.id=this.recycleAsyncId(i,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(ZM),g$=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=QM.now,e}(),eL=function(e){ds(t,e);function t(r,n){n===void 0&&(n=g$.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}(g$);new eL(tL);function rL(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 v$=Pg(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=rL(r)}catch{i=r.responseText}this.response=i}});(function(){function e(t,r){return v$.call(this,"ajax timeout",t,r),this.name="AjaxTimeoutError",this}return e.prototype=Object.create(v$.prototype),e})();var nL=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function An(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 Rg={exports:{}},nl=typeof Reflect=="object"?Reflect:null,y$=nl&&typeof nl.apply=="function"?nl.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)},Xd;nl&&typeof nl.ownKeys=="function"?Xd=nl.ownKeys:Object.getOwnPropertySymbols?Xd=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Xd=function(e){return Object.getOwnPropertyNames(e)};function iL(e){console&&console.warn&&console.warn(e)}var _$=Number.isNaN||function(e){return e!==e};function or(){or.init.call(this)}Rg.exports=or,Rg.exports.once=lL,or.EventEmitter=or,or.prototype._events=void 0,or.prototype._eventsCount=0,or.prototype._maxListeners=void 0;var b$=10;function Wd(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(or,"defaultMaxListeners",{enumerable:!0,get:function(){return b$},set:function(e){if(typeof e!="number"||e<0||_$(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");b$=e}}),or.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},or.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||_$(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 w$(e){return e._maxListeners===void 0?or.defaultMaxListeners:e._maxListeners}or.prototype.getMaxListeners=function(){return w$(this)},or.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")y$(a,this,t);else for(var c=a.length,l=C$(a,c),r=0;r<c;++r)y$(l[r],this,t);return!0};function x$(e,t,r,n){var i,o,s;if(Wd(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=w$(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,iL(a)}return e}or.prototype.addListener=function(e,t){return x$(this,e,t,!1)},or.prototype.on=or.prototype.addListener,or.prototype.prependListener=function(e,t){return x$(this,e,t,!0)};function oL(){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 S$(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=oL.bind(n);return i.listener=r,n.wrapFn=i,i}or.prototype.once=function(e,t){return Wd(t),this.on(e,S$(this,e,t)),this},or.prototype.prependOnceListener=function(e,t){return Wd(t),this.prependListener(e,S$(this,e,t)),this},or.prototype.removeListener=function(e,t){var r,n,i,o,s;if(Wd(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():sL(r,i),r.length===1&&(n[e]=r[0]),n.removeListener!==void 0&&this.emit("removeListener",e,s||t)}return this},or.prototype.off=or.prototype.removeListener,or.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 $$(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?aL(i):C$(i,i.length)}or.prototype.listeners=function(e){return $$(this,e,!0)},or.prototype.rawListeners=function(e){return $$(this,e,!1)},or.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):E$.call(e,t)},or.prototype.listenerCount=E$;function E$(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}or.prototype.eventNames=function(){return this._eventsCount>0?Xd(this._events):[]};function C$(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function sL(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function aL(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function lL(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))}k$(e,t,o,{once:!0}),t!=="error"&&cL(e,i,{once:!0})})}function cL(e,t,r){typeof e.on=="function"&&k$(e,"error",t,r)}function k$(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 uL=Rg.exports;class Ynt extends uL.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 hL(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 _(){var at=d(/^([^{]+)/);if(at)return Po(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=Po(X[0]),!d(/^:\s*/))return c("property missing ':'");var O=d(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),C=at({type:"declaration",property:X.replace(P$,""),value:O?Po(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 N(){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 E,b=g();E=x();)b.push(E),b=b.concat(g());return h()?at({type:"keyframes",name:C,vendor:O,keyframes:b}):c("@keyframes missing '}'")}}function $(){var at=o(),X=d(/^@supports *([^{]+)/);if(X){var O=Po(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=Po(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:Po(X[1]),media:Po(X[2])})}function U(){var at=o(),X=d(/^@page */);if(X){var O=_()||[];if(!u())return c("@page missing '{'");for(var C=g(),E;E=y();)C.push(E),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=Po(X[1]),C=Po(X[2]);if(!u())return c("@document missing '{'");var E=g().concat(f());return h()?at({type:"document",document:C,vendor:O,rules:E}):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 E={type:at};return E[at]=C[1].trim(),O(E)}}}function _t(){if(e[0]=="@")return N()||D()||V()||$()||it()||nt()||ft()||K()||U()||k()||Y()}function yt(){var at=o(),X=_();return X?(g(),at({type:"rule",selectors:X,declarations:m()})):c("selector missing")}return Ig(l())}function Po(e){return e?e.replace(/^\s+|\s+$/g,""):""}function Ig(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){Ig(s,n)}):o&&typeof o=="object"&&Ig(o,n)}return r&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}var jg={exports:{}},Fg={},To={},la={},Mg={},Lg={},Vg={};(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(_,...y){const m=[_[0]];let x=0;for(;x<y.length;)a(m,y[x]),m.push(_[++x]);return new n(m)}e._=i;const o=new n("+");function s(_,...y){const m=[d(_[0])];let x=0;for(;x<y.length;)m.push(o),a(m,y[x]),m.push(o,d(_[++x]));return c(m),new n(m)}e.str=s;function a(_,y){y instanceof n?_.push(...y._items):y instanceof r?_.push(y):_.push(h(y))}e.addCodeArg=a;function c(_){let y=1;for(;y<_.length-1;){if(_[y]===o){const m=l(_[y-1],_[y+1]);if(m!==void 0){_.splice(y-1,3,m);continue}_[y++]="+"}y++}}function l(_,y){if(y==='""')return _;if(_==='""')return y;if(typeof _=="string")return y instanceof r||_[_.length-1]!=='"'?void 0:typeof y!="string"?`${_.slice(0,-1)}${y}"`:y[0]==='"'?_.slice(0,-1)+y.slice(1):void 0;if(typeof y=="string"&&y[0]==='"'&&!(_ instanceof r))return`"${_}${y.slice(1)}`}function u(_,y){return y.emptyStr()?_:_.emptyStr()?y:s`${_}${y}`}e.strConcat=u;function h(_){return typeof _=="number"||typeof _=="boolean"||_===null?_:d(Array.isArray(_)?_.join(","):_)}function f(_){return new n(d(_))}e.stringify=f;function d(_){return JSON.stringify(_).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=d;function p(_){return typeof _=="string"&&e.IDENTIFIER.test(_)?new n(`.${_}`):i`[${_}]`}e.getProperty=p;function g(_){if(typeof _=="string"&&e.IDENTIFIER.test(_))return new n(`${_}`);throw new Error(`CodeGen: invalid export name: ${_}, use explicit $id name mapping`)}e.getEsmExportName=g;function v(_){return new n(_.toString())}e.regexpCode=v})(Vg);const dL=An(Vg),fL=Jt({__proto__:null,default:dL},[Vg]),Ac=Qt(fL);var Ug={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Ac;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]=[]),_=v.length;return v[_]=u.ref,f.setValue(u,{property:d,itemIndex:_}),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(_=>{if(v.has(_))return;v.set(_,n.Started);let y=u(_);if(y){const m=this.opts.es5?e.varKinds.var:e.varKinds.const;d=(0,t._)`${d}${m} ${_} = ${y};${this.opts._n}`}else if(y=f?.(_))d=(0,t._)`${d}${y}${this.opts._n}`;else throw new r(_);v.set(_,n.Completed)})}return d}}e.ValueScope=a})(Ug);const pL=An(Ug),mL=Jt({__proto__:null,default:pL},[Ug]),T$=Qt(mL);(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=Ac,r=T$;var n=Ac;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=T$;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(b,P){return this}}class s extends o{constructor(b,P,M){super(),this.varKind=b,this.name=P,this.rhs=M}render({es5:b,_n:P}){const M=b?r.varKinds.var:this.varKind,I=this.rhs===void 0?"":` = ${this.rhs}`;return`${M} ${this.name}${I};`+P}optimizeNames(b,P){if(b[this.name.str])return this.rhs&&(this.rhs=nt(this.rhs,b,P)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class a extends o{constructor(b,P,M){super(),this.lhs=b,this.rhs=P,this.sideEffects=M}render({_n:b}){return`${this.lhs} = ${this.rhs};`+b}optimizeNames(b,P){if(!(this.lhs instanceof t.Name&&!b[this.lhs.str]&&!this.sideEffects))return this.rhs=nt(this.rhs,b,P),this}get names(){const b=this.lhs instanceof t.Name?{}:{...this.lhs.names};return it(b,this.rhs)}}class c extends a{constructor(b,P,M,I){super(b,M,I),this.op=P}render({_n:b}){return`${this.lhs} ${this.op}= ${this.rhs};`+b}}class l extends o{constructor(b){super(),this.label=b,this.names={}}render({_n:b}){return`${this.label}:`+b}}class u extends o{constructor(b){super(),this.label=b,this.names={}}render({_n:b}){return`break${this.label?` ${this.label}`:""};`+b}}class h extends o{constructor(b){super(),this.error=b}render({_n:b}){return`throw ${this.error};`+b}get names(){return this.error.names}}class f extends o{constructor(b){super(),this.code=b}render({_n:b}){return`${this.code};`+b}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(b,P){return this.code=nt(this.code,b,P),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class d extends o{constructor(b=[]){super(),this.nodes=b}render(b){return this.nodes.reduce((P,M)=>P+M.render(b),"")}optimizeNodes(){const{nodes:b}=this;let P=b.length;for(;P--;){const M=b[P].optimizeNodes();Array.isArray(M)?b.splice(P,1,...M):M?b[P]=M:b.splice(P,1)}return b.length>0?this:void 0}optimizeNames(b,P){const{nodes:M}=this;let I=M.length;for(;I--;){const G=M[I];G.optimizeNames(b,P)||(ft(b,G.names),M.splice(I,1))}return M.length>0?this:void 0}get names(){return this.nodes.reduce((b,P)=>Y(b,P.names),{})}}class p extends d{render(b){return"{"+b._n+super.render(b)+"}"+b._n}}class g extends d{}class v extends p{}v.kind="else";class _ extends p{constructor(b,P){super(P),this.condition=b}render(b){let P=`if(${this.condition})`+super.render(b);return this.else&&(P+="else "+this.else.render(b)),P}optimizeNodes(){super.optimizeNodes();const b=this.condition;if(b===!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 b===!1?P instanceof _?P:P.nodes:this.nodes.length?this:new _(xt(b),P instanceof _?[P]:P.nodes);if(!(b===!1||!this.nodes.length))return this}optimizeNames(b,P){var M;if(this.else=(M=this.else)===null||M===void 0?void 0:M.optimizeNames(b,P),!!(super.optimizeNames(b,P)||this.else))return this.condition=nt(this.condition,b,P),this}get names(){const b=super.names;return it(b,this.condition),this.else&&Y(b,this.else.names),b}}_.kind="if";class y extends p{}y.kind="for";class m extends y{constructor(b){super(),this.iteration=b}render(b){return`for(${this.iteration})`+super.render(b)}optimizeNames(b,P){if(super.optimizeNames(b,P))return this.iteration=nt(this.iteration,b,P),this}get names(){return Y(super.names,this.iteration.names)}}class x extends y{constructor(b,P,M,I){super(),this.varKind=b,this.name=P,this.from=M,this.to=I}render(b){const P=b.es5?r.varKinds.var:this.varKind,{name:M,from:I,to:G}=this;return`for(${P} ${M}=${I}; ${M}<${G}; ${M}++)`+super.render(b)}get names(){const b=it(super.names,this.from);return it(b,this.to)}}class N extends y{constructor(b,P,M,I){super(),this.loop=b,this.varKind=P,this.name=M,this.iterable=I}render(b){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(b)}optimizeNames(b,P){if(super.optimizeNames(b,P))return this.iterable=nt(this.iterable,b,P),this}get names(){return Y(super.names,this.iterable.names)}}class $ extends p{constructor(b,P,M){super(),this.name=b,this.args=P,this.async=M}render(b){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(b)}}$.kind="func";class k extends d{render(b){return"return "+super.render(b)}}k.kind="return";class D extends p{render(b){let P="try"+super.render(b);return this.catch&&(P+=this.catch.render(b)),this.finally&&(P+=this.finally.render(b)),P}optimizeNodes(){var b,P;return super.optimizeNodes(),(b=this.catch)===null||b===void 0||b.optimizeNodes(),(P=this.finally)===null||P===void 0||P.optimizeNodes(),this}optimizeNames(b,P){var M,I;return super.optimizeNames(b,P),(M=this.catch)===null||M===void 0||M.optimizeNames(b,P),(I=this.finally)===null||I===void 0||I.optimizeNames(b,P),this}get names(){const b=super.names;return this.catch&&Y(b,this.catch.names),this.finally&&Y(b,this.finally.names),b}}class V extends p{constructor(b){super(),this.error=b}render(b){return`catch(${this.error})`+super.render(b)}}V.kind="catch";class U extends p{render(b){return"finally"+super.render(b)}}U.kind="finally";class K{constructor(b,P={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...P,_n:P.lines?`
69
- `:""},this._extScope=b,this._scope=new r.Scope({parent:b}),this._nodes=[new g]}toString(){return this._root.render(this.opts)}name(b){return this._scope.name(b)}scopeName(b){return this._extScope.name(b)}scopeValue(b,P){const M=this._extScope.value(b,P);return(this._values[M.prefix]||(this._values[M.prefix]=new Set)).add(M),M}getScopeValue(b,P){return this._extScope.getValue(b,P)}scopeRefs(b){return this._extScope.scopeRefs(b,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(b,P,M,I){const G=this._scope.toName(P);return M!==void 0&&I&&(this._constants[G.str]=M),this._leafNode(new s(b,G,M)),G}const(b,P,M){return this._def(r.varKinds.const,b,P,M)}let(b,P,M){return this._def(r.varKinds.let,b,P,M)}var(b,P,M){return this._def(r.varKinds.var,b,P,M)}assign(b,P,M){return this._leafNode(new a(b,P,M))}add(b,P){return this._leafNode(new c(b,e.operators.ADD,P))}code(b){return typeof b=="function"?b():b!==t.nil&&this._leafNode(new f(b)),this}object(...b){const P=["{"];for(const[M,I]of b)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(b,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(b){return this._elseNode(new _(b))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(_,v)}_for(b,P){return this._blockNode(b),P&&this.code(P).endFor(),this}for(b,P){return this._for(new m(b),P)}forRange(b,P,M,I,G=this.opts.es5?r.varKinds.var:r.varKinds.let){const q=this._scope.toName(b);return this._for(new x(G,q,P,M),()=>I(q))}forOf(b,P,M,I=r.varKinds.const){const G=this._scope.toName(b);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 N("of",I,G,P),()=>M(G))}forIn(b,P,M,I=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(b,(0,t._)`Object.keys(${P})`,M);const G=this._scope.toName(b);return this._for(new N("in",I,G,P),()=>M(G))}endFor(){return this._endBlockNode(y)}label(b){return this._leafNode(new l(b))}break(b){return this._leafNode(new u(b))}return(b){const P=new k;if(this._blockNode(P),this.code(b),P.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(k)}try(b,P,M){if(!P&&!M)throw new Error('CodeGen: "try" without "catch" and "finally"');const I=new D;if(this._blockNode(I),this.code(b),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(b){return this._leafNode(new h(b))}block(b,P){return this._blockStarts.push(this._nodes.length),b&&this.code(b).endBlock(P),this}endBlock(b){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||b!==void 0&&M!==b)throw new Error(`CodeGen: wrong number of nodes: ${M} vs ${b} expected`);return this._nodes.length=P,this}func(b,P=t.nil,M,I){return this._blockNode(new $(b,P,M)),I&&this.code(I).endFunc(),this}endFunc(){return this._endBlockNode($)}optimize(b=1){for(;b-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(b){return this._currNode.nodes.push(b),this}_blockNode(b){this._currNode.nodes.push(b),this._nodes.push(b)}_endBlockNode(b,P){const M=this._currNode;if(M instanceof b||P&&M instanceof P)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${P?`${b.kind}/${P.kind}`:b.kind}"`)}_elseNode(b){const P=this._currNode;if(!(P instanceof _))throw new Error('CodeGen: "else" without "if"');return this._currNode=P.else=b,this}get _root(){return this._nodes[0]}get _currNode(){const b=this._nodes;return b[b.length-1]}set _currNode(b){const P=this._nodes;P[P.length-1]=b}}e.CodeGen=K;function Y(E,b){for(const P in b)E[P]=(E[P]||0)+(b[P]||0);return E}function it(E,b){return b instanceof t._CodeOrName?Y(E,b.names):E}function nt(E,b,P){if(E instanceof t.Name)return M(E);if(!I(E))return E;return new t._Code(E._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||b[G.str]!==1?G:(delete b[G.str],q)}function I(G){return G instanceof t._Code&&G._items.some(q=>q instanceof t.Name&&b[q.str]===1&&P[q.str]!==void 0)}}function ft(E,b){for(const P in b)E[P]=(E[P]||0)-(b[P]||0)}function xt(E){return typeof E=="boolean"||typeof E=="number"||E===null?!E:(0,t._)`!${C(E)}`}e.not=xt;const _t=O(e.operators.AND);function yt(...E){return E.reduce(_t)}e.and=yt;const at=O(e.operators.OR);function X(...E){return E.reduce(at)}e.or=X;function O(E){return(b,P)=>b===t.nil?P:P===t.nil?b:(0,t._)`${C(b)} ${E} ${C(P)}`}function C(E){return E instanceof t.Name?E:(0,t._)`(${E})`}})(Lg);const gL=An(Lg),vL=Jt({__proto__:null,default:gL},[Lg]),Ne=Qt(vL);var zg={};(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=Ne,r=Ac;function n($){const k={};for(const D of $)k[D]=!0;return k}e.toHash=n;function i($,k){return typeof k=="boolean"?k:Object.keys(k).length===0?!0:(o($,k),!s(k,$.self.RULES.all))}e.alwaysValidSchema=i;function o($,k=$.schema){const{opts:D,self:V}=$;if(!D.strictSchema||typeof k=="boolean")return;const U=V.RULES.keywords;for(const K in k)U[K]||N($,`unknown keyword: "${K}"`)}e.checkUnknownRules=o;function s($,k){if(typeof $=="boolean")return!$;for(const D in $)if(k[D])return!0;return!1}e.schemaHasRules=s;function a($,k){if(typeof $=="boolean")return!$;for(const D in $)if(D!=="$ref"&&k.all[D])return!0;return!1}e.schemaHasRulesButRef=a;function c({topSchemaRef:$,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._)`${$}${k}${(0,t.getProperty)(V)}`}e.schemaRefOrVal=c;function l($){return f(decodeURIComponent($))}e.unescapeFragment=l;function u($){return encodeURIComponent(h($))}e.escapeFragment=u;function h($){return typeof $=="number"?`${$}`:$.replace(/~/g,"~0").replace(/\//g,"~1")}e.escapeJsonPointer=h;function f($){return $.replace(/~1/g,"/").replace(/~0/g,"~")}e.unescapeJsonPointer=f;function d($,k){if(Array.isArray($))for(const D of $)k(D);else k($)}e.eachItem=d;function p({mergeNames:$,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?$(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:($,k,D)=>$.if((0,t._)`${D} !== true && ${k} !== undefined`,()=>{$.if((0,t._)`${k} === true`,()=>$.assign(D,!0),()=>$.assign(D,(0,t._)`${D} || {}`).code((0,t._)`Object.assign(${D}, ${k})`))}),mergeToName:($,k,D)=>$.if((0,t._)`${D} !== true`,()=>{k===!0?$.assign(D,!0):($.assign(D,(0,t._)`${D} || {}`),v($,D,k))}),mergeValues:($,k)=>$===!0?!0:{...$,...k},resultToName:g}),items:p({mergeNames:($,k,D)=>$.if((0,t._)`${D} !== true && ${k} !== undefined`,()=>$.assign(D,(0,t._)`${k} === true ? true : ${D} > ${k} ? ${D} : ${k}`)),mergeToName:($,k,D)=>$.if((0,t._)`${D} !== true`,()=>$.assign(D,k===!0?!0:(0,t._)`${D} > ${k} ? ${D} : ${k}`)),mergeValues:($,k)=>$===!0?!0:Math.max($,k),resultToName:($,k)=>$.var("items",k)})};function g($,k){if(k===!0)return $.var("props",!0);const D=$.var("props",(0,t._)`{}`);return k!==void 0&&v($,D,k),D}e.evaluatedPropsToName=g;function v($,k,D){Object.keys(D).forEach(V=>$.assign((0,t._)`${k}${(0,t.getProperty)(V)}`,!0))}e.setEvaluated=v;const _={};function y($,k){return $.scopeValue("func",{ref:k,code:_[k.code]||(_[k.code]=new r._Code(k.code))})}e.useFunc=y;var m;(function($){$[$.Num=0]="Num",$[$.Str=1]="Str"})(m=e.Type||(e.Type={}));function x($,k,D){if($ instanceof t.Name){const V=k===m.Num;return D?V?(0,t._)`"[" + ${$} + "]"`:(0,t._)`"['" + ${$} + "']"`:V?(0,t._)`"/" + ${$}`:(0,t._)`"/" + ${$}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return D?(0,t.getProperty)($).toString():"/"+h($)}e.getErrorPath=x;function N($,k,D=$.opts.strictSchema){if(D){if(k=`strict mode: ${k}`,D===!0)throw new Error(k);$.self.logger.warn(k)}}e.checkStrictMode=N})(zg);const yL=An(zg),_L=Jt({__proto__:null,default:yL},[zg]),Ye=Qt(_L);var Gg={};Object.defineProperty(Gg,"__esModule",{value:!0});const hn=Ne,bL={data:new hn.Name("data"),valCxt:new hn.Name("valCxt"),instancePath:new hn.Name("instancePath"),parentData:new hn.Name("parentData"),parentDataProperty:new hn.Name("parentDataProperty"),rootData:new hn.Name("rootData"),dynamicAnchors:new hn.Name("dynamicAnchors"),vErrors:new hn.Name("vErrors"),errors:new hn.Name("errors"),this:new hn.Name("this"),self:new hn.Name("self"),scope:new hn.Name("scope"),json:new hn.Name("json"),jsonPos:new hn.Name("jsonPos"),jsonLen:new hn.Name("jsonLen"),jsonPart:new hn.Name("jsonPart")};var wL=Gg.default=bL;const xL=Jt({__proto__:null,default:wL},[Gg]),Oo=Qt(xL);(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=Ne,r=Ye,n=Oo;e.keywordError={message:({keyword:v})=>(0,t.str)`must pass "${v}" keyword validation`},e.keyword$DataError={message:({keyword:v,schemaType:_})=>_?(0,t.str)`"${v}" keyword must be ${_} ($data)`:(0,t.str)`"${v}" keyword is invalid ($data)`};function i(v,_=e.keywordError,y,m){const{it:x}=v,{gen:N,compositeRule:$,allErrors:k}=x,D=h(v,_,y);m??($||k)?c(N,D):l(x,(0,t._)`[${D}]`)}e.reportError=i;function o(v,_=e.keywordError,y){const{it:m}=v,{gen:x,compositeRule:N,allErrors:$}=m,k=h(v,_,y);c(x,k),N||$||l(m,n.default.vErrors)}e.reportExtraError=o;function s(v,_){v.assign(n.default.errors,_),v.if((0,t._)`${n.default.vErrors} !== null`,()=>v.if(_,()=>v.assign((0,t._)`${n.default.vErrors}.length`,_),()=>v.assign(n.default.vErrors,null)))}e.resetErrorsCount=s;function a({gen:v,keyword:_,schemaValue:y,data:m,errsCount:x,it:N}){if(x===void 0)throw new Error("ajv implementation error");const $=v.name("err");v.forRange("i",x,n.default.errors,k=>{v.const($,(0,t._)`${n.default.vErrors}[${k}]`),v.if((0,t._)`${$}.instancePath === undefined`,()=>v.assign((0,t._)`${$}.instancePath`,(0,t.strConcat)(n.default.instancePath,N.errorPath))),v.assign((0,t._)`${$}.schemaPath`,(0,t.str)`${N.errSchemaPath}/${_}`),N.opts.verbose&&(v.assign((0,t._)`${$}.schema`,y),v.assign((0,t._)`${$}.data`,m))})}e.extendErrors=a;function c(v,_){const y=v.const("err",_);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,_){const{gen:y,validateName:m,schemaEnv:x}=v;x.$async?y.throw((0,t._)`new ${v.ValidationError}(${_})`):(y.assign((0,t._)`${m}.errors`,_),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,_,y){const{createErrors:m}=v.it;return m===!1?(0,t._)`{}`:f(v,_,y)}function f(v,_,y={}){const{gen:m,it:x}=v,N=[d(x,y),p(v,y)];return g(v,_,N),m.object(...N)}function d({errorPath:v},{instancePath:_}){const y=_?(0,t.str)`${v}${(0,r.getErrorPath)(_,r.Type.Str)}`:v;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,y)]}function p({keyword:v,it:{errSchemaPath:_}},{schemaPath:y,parentSchema:m}){let x=m?_:(0,t.str)`${_}/${v}`;return y&&(x=(0,t.str)`${x}${(0,r.getErrorPath)(y,r.Type.Str)}`),[u.schemaPath,x]}function g(v,{params:_,message:y},m){const{keyword:x,data:N,schemaValue:$,it:k}=v,{opts:D,propertyName:V,topSchemaRef:U,schemaPath:K}=k;m.push([u.keyword,x],[u.params,typeof _=="function"?_(v):_||(0,t._)`{}`]),D.messages&&m.push([u.message,typeof y=="function"?y(v):y]),D.verbose&&m.push([u.schema,$],[u.parentSchema,(0,t._)`${U}${K}`],[n.default.data,N]),V&&m.push([u.propertyName,V])}})(Mg);const SL=An(Mg),$L=Jt({__proto__:null,default:SL},[Mg]),Dc=Qt($L);Object.defineProperty(la,"__esModule",{value:!0});var O$=la.boolOrEmptySchema=N$=la.topBoolOrEmptySchema=void 0;const EL=Dc,CL=Ne,kL=Oo,PL={message:"boolean schema is false"};function TL(e){const{gen:t,schema:r,validateName:n}=e;r===!1?A$(e,!1):typeof r=="object"&&r.$async===!0?t.return(kL.default.data):(t.assign((0,CL._)`${n}.errors`,null),t.return(!0))}var N$=la.topBoolOrEmptySchema=TL;function OL(e,t){const{gen:r,schema:n}=e;n===!1?(r.var(t,!1),A$(e)):r.var(t,!0)}O$=la.boolOrEmptySchema=OL;function A$(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,EL.reportError)(i,PL,void 0,t)}const NL=Jt({__proto__:null,get boolOrEmptySchema(){return O$},default:la,get topBoolOrEmptySchema(){return N$}},[la]),AL=Qt(NL);var Bg={},ca={};Object.defineProperty(ca,"__esModule",{value:!0});var D$=ca.getRules=R$=ca.isJSONType=void 0;const DL=["string","number","integer","boolean","null","object","array"],RL=new Set(DL);function IL(e){return typeof e=="string"&&RL.has(e)}var R$=ca.isJSONType=IL;function jL(){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:{}}}D$=ca.getRules=jL;const FL=Jt({__proto__:null,default:ca,get getRules(){return D$},get isJSONType(){return R$}},[ca]),I$=Qt(FL);var No={};Object.defineProperty(No,"__esModule",{value:!0});var j$=No.shouldUseRule=L$=No.shouldUseGroup=F$=No.schemaHasRulesForType=void 0;function ML({schema:e,self:t},r){const n=t.RULES.types[r];return n&&n!==!0&&M$(e,n)}var F$=No.schemaHasRulesForType=ML;function M$(e,t){return t.rules.some(r=>V$(e,r))}var L$=No.shouldUseGroup=M$;function V$(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))}j$=No.shouldUseRule=V$;const LL=Jt({__proto__:null,default:No,get schemaHasRulesForType(){return F$},get shouldUseGroup(){return L$},get shouldUseRule(){return j$}},[No]),U$=Qt(LL);(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=I$,r=U$,n=Dc,i=Ne,o=Ye;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:N,data:$,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,$,k.strictNumbers,s.Wrong);N.if(U,()=>{D.length?f(m,x,D):_(m)})}return V}e.coerceAndCheckDataType=l;const u=new Set(["string","number","integer","boolean","null"]);function h(m,x){return x?m.filter(N=>u.has(N)||x==="array"&&N==="array"):[]}function f(m,x,N){const{gen:$,data:k,opts:D}=m,V=$.let("dataType",(0,i._)`typeof ${k}`),U=$.let("coerced",(0,i._)`undefined`);D.coerceTypes==="array"&&$.if((0,i._)`${V} == 'object' && Array.isArray(${k}) && ${k}.length == 1`,()=>$.assign(k,(0,i._)`${k}[0]`).assign(V,(0,i._)`typeof ${k}`).if(g(x,k,D.strictNumbers),()=>$.assign(U,k))),$.if((0,i._)`${U} !== undefined`);for(const Y of N)(u.has(Y)||Y==="array"&&D.coerceTypes==="array")&&K(Y);$.else(),_(m),$.endIf(),$.if((0,i._)`${U} !== undefined`,()=>{$.assign(k,U),d(m,U)});function K(Y){switch(Y){case"string":$.elseIf((0,i._)`${V} == "number" || ${V} == "boolean"`).assign(U,(0,i._)`"" + ${k}`).elseIf((0,i._)`${k} === null`).assign(U,(0,i._)`""`);return;case"number":$.elseIf((0,i._)`${V} == "boolean" || ${k} === null
70
- || (${V} == "string" && ${k} && ${k} == +${k})`).assign(U,(0,i._)`+${k}`);return;case"integer":$.elseIf((0,i._)`${V} === "boolean" || ${k} === null
71
- || (${V} === "string" && ${k} && ${k} == +${k} && !(${k} % 1))`).assign(U,(0,i._)`+${k}`);return;case"boolean":$.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":$.elseIf((0,i._)`${k} === "" || ${k} === 0 || ${k} === false`),$.assign(U,null);return;case"array":$.elseIf((0,i._)`${V} === "string" || ${V} === "number"
72
- || ${V} === "boolean" || ${k} === null`).assign(U,(0,i._)`[${k}]`)}}}function d({gen:m,parentData:x,parentDataProperty:N},$){m.if((0,i._)`${x} !== undefined`,()=>m.assign((0,i._)`${x}[${N}]`,$))}function p(m,x,N,$=s.Correct){const k=$===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 $===s.Correct?D:(0,i.not)(D);function V(U=i.nil){return(0,i.and)((0,i._)`typeof ${x} == "number"`,U,N?(0,i._)`isFinite(${x})`:i.nil)}}e.checkDataType=p;function g(m,x,N,$){if(m.length===1)return p(m[0],x,N,$);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,N,$));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 _(m){const x=y(m);(0,n.reportError)(x,v)}e.reportTypeError=_;function y(m){const{gen:x,data:N,schema:$}=m,k=(0,o.schemaRefOrVal)(m,$,"type");return{gen:x,keyword:"type",data:N,schema:$.type,schemaCode:k,schemaValue:k,parentSchema:$,params:{},it:m}}})(Bg);const VL=An(Bg),UL=Jt({__proto__:null,default:VL},[Bg]),Jd=Qt(UL);var Rc={};Object.defineProperty(Rc,"__esModule",{value:!0});var z$=Rc.assignDefaults=void 0;const il=Ne,zL=Ye;function GL(e,t){const{properties:r,items:n}=e.schema;if(t==="object"&&r)for(const i in r)G$(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,o)=>G$(e,o,i.default))}z$=Rc.assignDefaults=GL;function G$(e,t,r){const{gen:n,compositeRule:i,data:o,opts:s}=e;if(r===void 0)return;const a=(0,il._)`${o}${(0,il.getProperty)(t)}`;if(i){(0,zL.checkStrictMode)(e,`default is ignored for: ${a}`);return}let c=(0,il._)`${a} === undefined`;s.useDefaults==="empty"&&(c=(0,il._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,il._)`${a} = ${(0,il.stringify)(r)}`)}const BL=Jt({__proto__:null,get assignDefaults(){return z$},default:Rc},[Rc]),HL=Qt(BL);var Ci={},rr={};Object.defineProperty(rr,"__esModule",{value:!0});var B$=rr.validateUnion=i5=rr.validateArray=n5=rr.usePattern=r5=rr.callValidateCode=e5=rr.schemaProperties=t5=rr.allSchemaProperties=Q$=rr.noPropertyInData=J$=rr.propertyInData=W$=rr.isOwnProperty=X$=rr.hasPropFunc=K$=rr.reportMissingProp=q$=rr.checkMissingProp=H$=rr.checkReportMissingProp=void 0;const _r=Ne,Hg=Ye,fs=Oo,qL=Ye;function KL(e,t){const{gen:r,data:n,it:i}=e;r.if(Kg(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,_r._)`${t}`},!0),e.error()})}var H$=rr.checkReportMissingProp=KL;function YL({gen:e,data:t,it:{opts:r}},n,i){return(0,_r.or)(...n.map(o=>(0,_r.and)(Kg(e,t,o,r.ownProperties),(0,_r._)`${i} = ${o}`)))}var q$=rr.checkMissingProp=YL;function XL(e,t){e.setParams({missingProperty:t},!0),e.error()}var K$=rr.reportMissingProp=XL;function Y$(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,_r._)`Object.prototype.hasOwnProperty`})}var X$=rr.hasPropFunc=Y$;function qg(e,t,r){return(0,_r._)`${Y$(e)}.call(${t}, ${r})`}var W$=rr.isOwnProperty=qg;function WL(e,t,r,n){const i=(0,_r._)`${t}${(0,_r.getProperty)(r)} !== undefined`;return n?(0,_r._)`${i} && ${qg(e,t,r)}`:i}var J$=rr.propertyInData=WL;function Kg(e,t,r,n){const i=(0,_r._)`${t}${(0,_r.getProperty)(r)} === undefined`;return n?(0,_r.or)(i,(0,_r.not)(qg(e,t,r))):i}var Q$=rr.noPropertyInData=Kg;function Z$(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}var t5=rr.allSchemaProperties=Z$;function JL(e,t){return Z$(t).filter(r=>!(0,Hg.alwaysValidSchema)(e,t[r]))}var e5=rr.schemaProperties=JL;function QL({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:s},a,c,l){const u=l?(0,_r._)`${e}, ${t}, ${n}${i}`:t,h=[[fs.default.instancePath,(0,_r.strConcat)(fs.default.instancePath,o)],[fs.default.parentData,s.parentData],[fs.default.parentDataProperty,s.parentDataProperty],[fs.default.rootData,fs.default.rootData]];s.opts.dynamicRef&&h.push([fs.default.dynamicAnchors,fs.default.dynamicAnchors]);const f=(0,_r._)`${u}, ${r.object(...h)}`;return c!==_r.nil?(0,_r._)`${a}.call(${c}, ${f})`:(0,_r._)`${a}(${f})`}var r5=rr.callValidateCode=QL;const ZL=(0,_r._)`new RegExp`;function tV({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,_r._)`${i.code==="new RegExp"?ZL:(0,qL.useFunc)(e,i)}(${r}, ${n})`})}var n5=rr.usePattern=tV;function eV(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,_r._)`${r}.length`);t.forRange("i",0,c,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:Hg.Type.Num},o),t.if((0,_r.not)(o),a)})}}var i5=rr.validateArray=eV;function rV(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,Hg.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,_r._)`${o} || ${s}`),e.mergeValidEvaluated(l,s)||t.if((0,_r.not)(o))})),e.result(o,()=>e.reset(),()=>e.error(!0))}B$=rr.validateUnion=rV;const nV=Jt({__proto__:null,get allSchemaProperties(){return t5},get callValidateCode(){return r5},get checkMissingProp(){return q$},get checkReportMissingProp(){return H$},default:rr,get hasPropFunc(){return X$},get isOwnProperty(){return W$},get noPropertyInData(){return Q$},get propertyInData(){return J$},get reportMissingProp(){return K$},get schemaProperties(){return e5},get usePattern(){return n5},get validateArray(){return i5},get validateUnion(){return B$}},[rr]),ki=Qt(nV);Object.defineProperty(Ci,"__esModule",{value:!0});var o5=Ci.validateKeywordUsage=u5=Ci.validSchemaType=a5=Ci.funcKeywordCode=s5=Ci.macroKeywordCode=void 0;const yn=Ne,ua=Oo,iV=ki,oV=Dc;function sV(e,t){const{gen:r,keyword:n,schema:i,parentSchema:o,it:s}=e,a=t.macro.call(s.self,i,o,s),c=c5(r,n,a);s.opts.validateSchema!==!1&&s.self.validateSchema(a,!0);const l=r.name("valid");e.subschema({schema:a,schemaPath:yn.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}var s5=Ci.macroKeywordCode=sV;function aV(e,t){var r;const{gen:n,keyword:i,schema:o,parentSchema:s,$data:a,it:c}=e;cV(c,t);const l=!a&&t.compile?t.compile.call(c.self,o,s,c):t.validate,u=c5(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&&l5(e),v(()=>e.error());else{const _=t.async?d():p();t.modifying&&l5(e),v(()=>lV(e,_))}}function d(){const _=n.let("ruleErrs",null);return n.try(()=>g((0,yn._)`await `),y=>n.assign(h,!1).if((0,yn._)`${y} instanceof ${c.ValidationError}`,()=>n.assign(_,(0,yn._)`${y}.errors`),()=>n.throw(y))),_}function p(){const _=(0,yn._)`${u}.errors`;return n.assign(_,null),g(yn.nil),_}function g(_=t.async?(0,yn._)`await `:yn.nil){const y=c.opts.passContext?ua.default.this:ua.default.self,m=!("compile"in t&&!a||t.schema===!1);n.assign(h,(0,yn._)`${_}${(0,iV.callValidateCode)(e,u,y,m)}`,t.modifying)}function v(_){var y;n.if((0,yn.not)((y=t.valid)!==null&&y!==void 0?y:h),_)}}var a5=Ci.funcKeywordCode=aV;function l5(e){const{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,yn._)`${n.parentData}[${n.parentDataProperty}]`))}function lV(e,t){const{gen:r}=e;r.if((0,yn._)`Array.isArray(${t})`,()=>{r.assign(ua.default.vErrors,(0,yn._)`${ua.default.vErrors} === null ? ${t} : ${ua.default.vErrors}.concat(${t})`).assign(ua.default.errors,(0,yn._)`${ua.default.vErrors}.length`),(0,oV.extendErrors)(e)},()=>e.error())}function cV({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function c5(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,yn.stringify)(r)})}function uV(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 u5=Ci.validSchemaType=uV;function hV({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)}}o5=Ci.validateKeywordUsage=hV;const dV=Jt({__proto__:null,default:Ci,get funcKeywordCode(){return a5},get macroKeywordCode(){return s5},get validSchemaType(){return u5},get validateKeywordUsage(){return o5}},[Ci]),fV=Qt(dV);var Ao={};Object.defineProperty(Ao,"__esModule",{value:!0});var h5=Ao.extendSubschemaMode=p5=Ao.extendSubschemaData=f5=Ao.getSubschema=void 0;const Ki=Ne,d5=Ye;function pV(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,Ki._)`${e.schemaPath}${(0,Ki.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,Ki._)`${e.schemaPath}${(0,Ki.getProperty)(t)}${(0,Ki.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,d5.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 f5=Ao.getSubschema=pV;function mV(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,Ki._)`${t.data}${(0,Ki.getProperty)(r)}`,!0);c(f),e.errorPath=(0,Ki.str)`${l}${(0,d5.getErrorPath)(r,n,h.jsPropertySyntax)}`,e.parentDataProperty=(0,Ki._)`${r}`,e.dataPathArr=[...u,e.parentDataProperty]}if(i!==void 0){const l=i instanceof Ki.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 p5=Ao.extendSubschemaData=mV;function gV(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}h5=Ao.extendSubschemaMode=gV;const vV=Jt({__proto__:null,default:Ao,get extendSubschemaData(){return p5},get extendSubschemaMode(){return h5},get getSubschema(){return f5}},[Ao]),yV=Qt(vV);var _n={},m5=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 _V=An(m5),bV=Jt({__proto__:null,default:_V},[m5]),g5=Qt(bV);var v5={exports:{}},ps=v5.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(){};Qd(t,n,i,e,"",e)};ps.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},ps.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},ps.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},ps.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 Qd(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 ps.arrayKeywords)for(var f=0;f<h.length;f++)Qd(e,t,r,h[f],i+"/"+u+"/"+f,o,i,u,n,f)}else if(u in ps.propsKeywords){if(h&&typeof h=="object")for(var d in h)Qd(e,t,r,h[d],i+"/"+u+"/"+wV(d),o,i,u,n,d)}else(u in ps.keywords||e.allKeys&&!(u in ps.skipKeywords))&&Qd(e,t,r,h,i+"/"+u,o,i,u,n)}r(n,i,o,s,a,c,l)}}function wV(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}var y5=v5.exports;const xV=An(y5),SV=Jt({__proto__:null,default:xV},[y5]),$V=Qt(SV);Object.defineProperty(_n,"__esModule",{value:!0});var _5=_n.getSchemaRefs=k5=_n.resolveUrl=C5=_n.normalizeId=E5=_n._getFullPath=S5=_n.getFullPath=b5=_n.inlineRef=void 0;const EV=Ye,CV=g5,kV=$V,PV=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function TV(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Yg(e):t?w5(e)<=t:!1}var b5=_n.inlineRef=TV;const OV=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Yg(e){for(const t in e){if(OV.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(Yg)||typeof r=="object"&&Yg(r))return!0}return!1}function w5(e){let t=0;for(const r in e)if(r==="$ref"||(t++,!PV.has(r)&&(typeof e[r]=="object"&&(0,EV.eachItem)(e[r],n=>t+=w5(n)),t===1/0)))return 1/0;return t}function x5(e,t="",r){r!==!1&&(t=ol(t));const n=e.parse(t);return $5(e,n)}var S5=_n.getFullPath=x5;function $5(e,t){return e.serialize(t).split("#")[0]+"#"}var E5=_n._getFullPath=$5;const NV=/#\/?$/;function ol(e){return e?e.replace(NV,""):""}var C5=_n.normalizeId=ol;function AV(e,t,r){return r=ol(r),e.resolve(t,r)}var k5=_n.resolveUrl=AV;const DV=/^[a-z_][-a-z0-9._]*$/i;function RV(e,t){if(typeof e=="boolean")return{};const{schemaId:r,uriResolver:n}=this.opts,i=ol(e[r]||t),o={"":i},s=x5(n,i,!1),a={},c=new Set;return kV(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=_.call(this,h[r])),y.call(this,h.$anchor),y.call(this,h.$dynamicAnchor),o[f]=v;function _(m){const x=this.opts.uriResolver.resolve;if(m=ol(v?x(v,m):m),c.has(m))throw u(m);c.add(m);let N=this.refs[m];return typeof N=="string"&&(N=this.refs[N]),typeof N=="object"?l(h,N.schema,m):m!==ol(g)&&(m[0]==="#"?(l(h,a[m],m),a[m]=h):this.refs[m]=g),m}function y(m){if(typeof m=="string"){if(!DV.test(m))throw new Error(`invalid anchor "${m}"`);_.call(this,`#${m}`)}}}),a;function l(h,f,d){if(f!==void 0&&!CV(h,f))throw u(d)}function u(h){return new Error(`reference "${h}" resolves to more than one schema`)}}_5=_n.getSchemaRefs=RV;const IV=Jt({__proto__:null,get _getFullPath(){return E5},default:_n,get getFullPath(){return S5},get getSchemaRefs(){return _5},get inlineRef(){return b5},get normalizeId(){return C5},get resolveUrl(){return k5}},[_n]),Zd=Qt(IV);Object.defineProperty(To,"__esModule",{value:!0});var P5=To.getData=G5=To.KeywordCxt=N5=To.validateFunctionCode=void 0;const T5=AL,O5=Jd,Xg=U$,tf=Jd,jV=HL,Ic=fV,Wg=yV,ie=Ne,ye=Oo,FV=Zd,Do=Ye,jc=Dc;function MV(e){if(I5(e)&&(j5(e),R5(e))){UV(e);return}A5(e,()=>(0,T5.topBoolOrEmptySchema)(e))}var N5=To.validateFunctionCode=MV;function A5({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},o){i.code.es5?e.func(t,(0,ie._)`${ye.default.data}, ${ye.default.valCxt}`,n.$async,()=>{e.code((0,ie._)`"use strict"; ${D5(r,i)}`),VV(e,i),e.code(o)}):e.func(t,(0,ie._)`${ye.default.data}, ${LV(i)}`,n.$async,()=>e.code(D5(r,i)).code(o))}function LV(e){return(0,ie._)`{${ye.default.instancePath}="", ${ye.default.parentData}, ${ye.default.parentDataProperty}, ${ye.default.rootData}=${ye.default.data}${e.dynamicRef?(0,ie._)`, ${ye.default.dynamicAnchors}={}`:ie.nil}}={}`}function VV(e,t){e.if(ye.default.valCxt,()=>{e.var(ye.default.instancePath,(0,ie._)`${ye.default.valCxt}.${ye.default.instancePath}`),e.var(ye.default.parentData,(0,ie._)`${ye.default.valCxt}.${ye.default.parentData}`),e.var(ye.default.parentDataProperty,(0,ie._)`${ye.default.valCxt}.${ye.default.parentDataProperty}`),e.var(ye.default.rootData,(0,ie._)`${ye.default.valCxt}.${ye.default.rootData}`),t.dynamicRef&&e.var(ye.default.dynamicAnchors,(0,ie._)`${ye.default.valCxt}.${ye.default.dynamicAnchors}`)},()=>{e.var(ye.default.instancePath,(0,ie._)`""`),e.var(ye.default.parentData,(0,ie._)`undefined`),e.var(ye.default.parentDataProperty,(0,ie._)`undefined`),e.var(ye.default.rootData,ye.default.data),t.dynamicRef&&e.var(ye.default.dynamicAnchors,(0,ie._)`{}`)})}function UV(e){const{schema:t,opts:r,gen:n}=e;A5(e,()=>{r.$comment&&t.$comment&&M5(e),qV(e),n.let(ye.default.vErrors,null),n.let(ye.default.errors,0),r.unevaluated&&zV(e),F5(e),XV(e)})}function zV(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,ie._)`${r}.evaluated`),t.if((0,ie._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,ie._)`${e.evaluated}.props`,(0,ie._)`undefined`)),t.if((0,ie._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,ie._)`${e.evaluated}.items`,(0,ie._)`undefined`))}function D5(e,t){const r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,ie._)`/*# sourceURL=${r} */`:ie.nil}function GV(e,t){if(I5(e)&&(j5(e),R5(e))){BV(e,t);return}(0,T5.boolOrEmptySchema)(e,t)}function R5({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 I5(e){return typeof e.schema!="boolean"}function BV(e,t){const{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&M5(e),KV(e),YV(e);const o=n.const("_errs",ye.default.errors);F5(e,o),n.var(t,(0,ie._)`${o} === ${ye.default.errors}`)}function j5(e){(0,Do.checkUnknownRules)(e),HV(e)}function F5(e,t){if(e.opts.jtd)return L5(e,[],!1,t);const r=(0,O5.getSchemaTypes)(e.schema),n=(0,O5.coerceAndCheckDataType)(e,r);L5(e,r,!n,t)}function HV(e){const{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Do.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function qV(e){const{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Do.checkStrictMode)(e,"default is ignored in the schema root")}function KV(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,FV.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function YV(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function M5({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){const o=r.$comment;if(i.$comment===!0)e.code((0,ie._)`${ye.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){const s=(0,ie.str)`${n}/$comment`,a=e.scopeValue("root",{ref:t.root});e.code((0,ie._)`${ye.default.self}.opts.$comment(${o}, ${s}, ${a}.schema)`)}}function XV(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=e;r.$async?t.if((0,ie._)`${ye.default.errors} === 0`,()=>t.return(ye.default.data),()=>t.throw((0,ie._)`new ${i}(${ye.default.vErrors})`)):(t.assign((0,ie._)`${n}.errors`,ye.default.vErrors),o.unevaluated&&WV(e),t.return((0,ie._)`${ye.default.errors} === 0`))}function WV({gen:e,evaluated:t,props:r,items:n}){r instanceof ie.Name&&e.assign((0,ie._)`${t}.props`,r),n instanceof ie.Name&&e.assign((0,ie._)`${t}.items`,n)}function L5(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,Do.schemaHasRulesButRef)(o,u))){i.block(()=>B5(e,"$ref",u.all.$ref.definition));return}c.jtd||JV(e,t),i.block(()=>{for(const f of u.rules)h(f);h(u.post)});function h(f){(0,Xg.shouldUseGroup)(o,f)&&(f.type?(i.if((0,tf.checkDataType)(f.type,s,c.strictNumbers)),V5(e,f),t.length===1&&t[0]===f.type&&r&&(i.else(),(0,tf.reportTypeError)(e)),i.endIf()):V5(e,f),a||i.if((0,ie._)`${ye.default.errors} === ${n||0}`))}}function V5(e,t){const{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,jV.assignDefaults)(e,t.type),r.block(()=>{for(const o of t.rules)(0,Xg.shouldUseRule)(n,o)&&B5(e,o.keyword,o.definition,t.type)})}function JV(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(QV(e,t),e.opts.allowUnionTypes||ZV(e,t),tU(e,e.dataTypes))}function QV(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{U5(e.dataTypes,r)||Jg(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),rU(e,t)}}function ZV(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Jg(e,"use allowUnionTypes to allow union type keyword")}function tU(e,t){const r=e.self.RULES.all;for(const n in r){const i=r[n];if(typeof i=="object"&&(0,Xg.shouldUseRule)(e.schema,i)){const{type:o}=i.definition;o.length&&!o.some(s=>eU(t,s))&&Jg(e,`missing type "${o.join(",")}" for keyword "${n}"`)}}}function eU(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function U5(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function rU(e,t){const r=[];for(const n of e.dataTypes)U5(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function Jg(e,t){const r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Do.checkStrictMode)(e,t,e.opts.strictTypes)}class z5{constructor(t,r,n){if((0,Ic.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,Do.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",H5(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Ic.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",ye.default.errors))}result(t,r,n){this.failResult((0,ie.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,ie.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,ie._)`${r} !== undefined && (${(0,ie.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?jc.reportExtraError:jc.reportError)(this,this.def.error,r)}$dataError(){(0,jc.reportError)(this,this.def.$dataError||jc.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,jc.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=ie.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=ie.nil,r=ie.nil){if(!this.$data)return;const{gen:n,schemaCode:i,schemaType:o,def:s}=this;n.if((0,ie.or)((0,ie._)`${i} === undefined`,r)),t!==ie.nil&&n.assign(t,!0),(o.length||s.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==ie.nil&&n.assign(t,!1)),n.else()}invalid$data(){const{gen:t,schemaCode:r,schemaType:n,def:i,it:o}=this;return(0,ie.or)(s(),a());function s(){if(n.length){if(!(r instanceof ie.Name))throw new Error("ajv implementation error");const c=Array.isArray(n)?n:[n];return(0,ie._)`${(0,tf.checkDataTypes)(c,r,o.opts.strictNumbers,tf.DataType.Wrong)}`}return ie.nil}function a(){if(i.validateSchema){const c=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,ie._)`!${c}(${r})`}return ie.nil}}subschema(t,r){const n=(0,Wg.getSubschema)(this.it,t);(0,Wg.extendSubschemaData)(n,this.it,t),(0,Wg.extendSubschemaMode)(n,t);const i={...this.it,...n,items:void 0,props:void 0};return GV(i,r),i}mergeEvaluated(t,r){const{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Do.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Do.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,ie.Name)),!0}}var G5=To.KeywordCxt=z5;function B5(e,t,r,n){const i=new z5(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,Ic.funcKeywordCode)(i,r):"macro"in r?(0,Ic.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,Ic.funcKeywordCode)(i,r)}const nU=/^\/(?:[^~]|~0|~1)*$/,iU=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function H5(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(e==="")return ye.default.rootData;if(e[0]==="/"){if(!nU.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=ye.default.rootData}else{const l=iU.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,ie._)`${o}${(0,ie.getProperty)((0,Do.unescapeJsonPointer)(l))}`,s=(0,ie._)`${s} && ${o}`);return s;function c(l,u){return`Cannot access ${l} ${u} levels up, current level is ${t}`}}P5=To.getData=H5;const oU=Jt({__proto__:null,get KeywordCxt(){return G5},default:To,get getData(){return P5},get validateFunctionCode(){return N5}},[To]),Fc=Qt(oU);var Qg={};Object.defineProperty(Qg,"__esModule",{value:!0});class sU extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}var aU=Qg.default=sU;const lU=Jt({__proto__:null,default:aU},[Qg]),Zg=Qt(lU);var tv={};Object.defineProperty(tv,"__esModule",{value:!0});const ev=Zd;class cU extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,ev.resolveUrl)(t,r,n),this.missingSchema=(0,ev.normalizeId)((0,ev.getFullPath)(t,this.missingRef))}}var uU=tv.default=cU;const hU=Jt({__proto__:null,default:uU},[tv]),rv=Qt(hU);var Bn={};Object.defineProperty(Bn,"__esModule",{value:!0});var q5=Bn.resolveSchema=Q5=Bn.getCompilingSchema=W5=Bn.resolveRef=X5=Bn.compileSchema=Y5=Bn.SchemaEnv=void 0;const Pi=Ne,dU=Zg,ha=Oo,Ti=Zd,K5=Ye,fU=Fc;class ef{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,Ti.normalizeId)(n?.[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n?.$async,this.refs={}}}var Y5=Bn.SchemaEnv=ef;function nv(e){const t=J5.call(this,e);if(t)return t;const r=(0,Ti.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,s=new Pi.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o});let a;e.$async&&(a=s.scopeValue("Error",{ref:dU.default,code:(0,Pi._)`require("ajv/dist/runtime/validation_error").default`}));const c=s.scopeName("validate");e.validateName=c;const l={gen:s,allErrors:this.opts.allErrors,data:ha.default.data,parentData:ha.default.parentData,parentDataProperty:ha.default.parentDataProperty,dataNames:[ha.default.data],dataPathArr:[Pi.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Pi.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Pi.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Pi._)`""`,opts:this.opts,self:this};let u;try{this._compilations.add(e),(0,fU.validateFunctionCode)(l),s.optimize(this.opts.code.optimize);const h=s.toString();u=`${s.scopeRefs(ha.default.scope)}return ${h}`,this.opts.code.process&&(u=this.opts.code.process(u,e));const f=new Function(`${ha.default.self}`,`${ha.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 Pi.Name?void 0:d,items:p instanceof Pi.Name?void 0:p,dynamicProps:d instanceof Pi.Name,dynamicItems:p instanceof Pi.Name},f.source&&(f.source.evaluated=(0,Pi.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 X5=Bn.compileSchema=nv;function pU(e,t,r){var n;r=(0,Ti.resolveUrl)(this.opts.uriResolver,t,r);const i=e.refs[r];if(i)return i;let o=vU.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 ef({schema:s,schemaId:a,root:e,baseId:t}))}if(o!==void 0)return e.refs[r]=mU.call(this,o)}var W5=Bn.resolveRef=pU;function mU(e){return(0,Ti.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:nv.call(this,e)}function J5(e){for(const t of this._compilations)if(gU(t,e))return t}var Q5=Bn.getCompilingSchema=J5;function gU(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function vU(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||rf.call(this,e,t)}function rf(e,t){const r=this.opts.uriResolver.parse(t),n=(0,Ti._getFullPath)(this.opts.uriResolver,r);let i=(0,Ti.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return iv.call(this,r,e);const o=(0,Ti.normalizeId)(n),s=this.refs[o]||this.schemas[o];if(typeof s=="string"){const a=rf.call(this,e,s);return typeof a?.schema!="object"?void 0:iv.call(this,r,a)}if(typeof s?.schema=="object"){if(s.validate||nv.call(this,s),o===(0,Ti.normalizeId)(t)){const{schema:a}=s,{schemaId:c}=this.opts,l=a[c];return l&&(i=(0,Ti.resolveUrl)(this.opts.uriResolver,i,l)),new ef({schema:a,schemaId:c,root:e,baseId:i})}return iv.call(this,r,s)}}q5=Bn.resolveSchema=rf;const yU=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function iv(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,K5.unescapeFragment)(a)];if(c===void 0)return;r=c;const l=typeof r=="object"&&r[this.opts.schemaId];!yU.has(a)&&l&&(t=(0,Ti.resolveUrl)(this.opts.uriResolver,t,l))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,K5.schemaHasRulesButRef)(r,this.RULES)){const a=(0,Ti.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=rf.call(this,n,a)}const{schemaId:s}=this.opts;if(o=o||new ef({schema:r,schemaId:s,root:n,baseId:t}),o.schema!==o.root.schema)return o}const _U=Jt({__proto__:null,get SchemaEnv(){return Y5},get compileSchema(){return X5},default:Bn,get getCompilingSchema(){return Q5},get resolveRef(){return W5},get resolveSchema(){return q5}},[Bn]),ov=Qt(_U),bU="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",wU="Meta-schema for $data reference (JSON AnySchema extension proposal)",xU="object",SU=["$data"],$U={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},EU=!1,CU={$id:bU,description:wU,type:xU,required:SU,properties:$U,additionalProperties:EU};var sv={},av={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)})(nL,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),_e=R?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",re=R?"[\\uE000-\\uF8FF]":"[]",zt=n(L,z,"[\\-\\.\\_\\~]",_e);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),ue=i(qt+"\\."+qt+"\\."+qt+"\\."+qt),jt=i(Z+"{1,4}"),Gt=i(i(jt+"\\:"+jt)+"|"+ue),se=i(i(jt+"\\:")+"{6}"+Gt),Be=i("\\:\\:"+i(jt+"\\:")+"{5}"+Gt),jr=i(i(jt)+"?\\:\\:"+i(jt+"\\:")+"{4}"+Gt),Pe=i(i(i(jt+"\\:")+"{0,1}"+jt)+"?\\:\\:"+i(jt+"\\:")+"{3}"+Gt),tr=i(i(i(jt+"\\:")+"{0,2}"+jt)+"?\\:\\:"+i(jt+"\\:")+"{2}"+Gt),dr=i(i(i(jt+"\\:")+"{0,3}"+jt)+"?\\:\\:"+jt+"\\:"+Gt),lr=i(i(i(jt+"\\:")+"{0,4}"+jt)+"?\\:\\:"+Gt),Ue=i(i(i(jt+"\\:")+"{0,5}"+jt)+"?\\:\\:"+jt),Ee=i(i(i(jt+"\\:")+"{0,6}"+jt)+"?\\:\\:"),te=i([se,Be,jr,Pe,tr,dr,lr,Ue,Ee].join("|")),fr=i(i(zt+"|"+tt)+"+");i("[vV]"+Z+"+\\."+n(zt,Tt,"[\\:]")+"+"),i(i(tt+"|"+n(zt,Tt))+"*");var pn=i(tt+"|"+n(zt,Tt,"[\\:\\@]"));return i(i(tt+"|"+n(zt,Tt,"[\\@]"))+"+"),i(i(pn+"|"+n("[\\/\\?]",re))+"*"),{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,"[\\:\\@\\/\\?]",re),"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("^("+ue+")$"),IPV6ADDRESS:new RegExp("^\\[?("+te+")"+i(i("\\%25|\\%(?!"+Z+"{2})")+"("+fr+")")+"?\\]?$")}}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](),_e;!(tt=(_e=Ht.next()).done)&&(Z.push(_e.value),!(z&&Z.length===z));tt=!0);}catch(re){Ot=!0,Tt=re}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,_=26,y=38,m=700,x=72,N=128,$="-",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*_>>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=N,Ot=x,Tt=R.lastIndexOf($);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 _e=Tt>0?Tt+1:0;_e<z;){for(var re=Z,zt=1,qt=g;;qt+=g){_e>=z&&nt("invalid-input");var ue=at(R.charCodeAt(_e++));(ue>=g||ue>Y((p-Z)/zt))&&nt("overflow"),Z+=ue*zt;var jt=qt<=Ot?v:qt>=Ot+_?_:qt-Ot;if(ue<jt)break;var Gt=g-jt;zt>Y(p/Gt)&&nt("overflow"),zt*=Gt}var se=L.length+1;Ot=O(Z-re,se,re==0),Y(Z/se)>p-tt&&nt("overflow"),tt+=Y(Z/se),Z%=se,L.splice(Z++,0,tt)}return String.fromCodePoint.apply(String,L)},E=function(R){var L=[];R=_t(R);var z=R.length,Z=N,tt=0,Ot=x,Tt=!0,Ht=!1,_e=void 0;try{for(var re=R[Symbol.iterator](),zt;!(Tt=(zt=re.next()).done);Tt=!0){var qt=zt.value;qt<128&&L.push(it(qt))}}catch(en){Ht=!0,_e=en}finally{try{!Tt&&re.return&&re.return()}finally{if(Ht)throw _e}}var ue=L.length,jt=ue;for(ue&&L.push($);jt<z;){var Gt=p,se=!0,Be=!1,jr=void 0;try{for(var Pe=R[Symbol.iterator](),tr;!(se=(tr=Pe.next()).done);se=!0){var dr=tr.value;dr>=Z&&dr<Gt&&(Gt=dr)}}catch(en){Be=!0,jr=en}finally{try{!se&&Pe.return&&Pe.return()}finally{if(Be)throw jr}}var lr=jt+1;Gt-Z>Y((p-tt)/lr)&&nt("overflow"),tt+=(Gt-Z)*lr,Z=Gt;var Ue=!0,Ee=!1,te=void 0;try{for(var fr=R[Symbol.iterator](),pn;!(Ue=(pn=fr.next()).done);Ue=!0){var Mn=pn.value;if(Mn<Z&&++tt>p&&nt("overflow"),Mn==Z){for(var Er=tt,$r=g;;$r+=g){var Yr=$r<=Ot?v:$r>=Ot+_?_:$r-Ot;if(Er<Yr)break;var di=Er-Yr,fi=g-Yr;L.push(it(X(Yr+di%fi,0))),Er=Y(di/fi)}L.push(it(X(Er,0))),Ot=O(tt,lr,jt==ue),tt=0,++jt}}}catch(en){Ee=!0,te=en}finally{try{!Ue&&fr.return&&fr.return()}finally{if(Ee)throw te}}++tt,++Z}return L.join("")},b=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--"+E(L):L})},M={version:"2.1.0",ucs2:{decode:_t,encode:yt},decode:C,encode:E,toASCII:P,toUnicode:b},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),_e=Ht[0],re=Ht[1],zt=re?re.split(":").map(st):[],qt=_e.split(":").map(st),ue=L.IPV4ADDRESS.test(qt[qt.length-1]),jt=ue?7:8,Gt=qt.length-jt,se=Array(jt),Be=0;Be<jt;++Be)se[Be]=zt[Be]||qt[Gt+Be]||"";ue&&(se[jt-1]=mt(se[jt-1],L));var jr=se.reduce(function(Ue,Ee,te){if(!Ee||Ee==="0"){var fr=Ue[Ue.length-1];fr&&fr.index+fr.length===te?fr.length++:Ue.push({index:te,length:1})}return Ue},[]),Pe=jr.sort(function(Ue,Ee){return Ee.length-Ue.length})[0],tr=void 0;if(Pe&&Pe.length>1){var dr=se.slice(0,Pe.index),lr=se.slice(Pe.index+Pe.length);tr=dr.join(":")+"::"+lr.join(":")}else tr=se.join(":");return Ot&&(tr+="%"+Ot),tr}else return R}var W=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\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(W);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 oe(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 me={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}},Ve={scheme:"https",domainHost:me.domainHost,parse:me.parse,serialize:me.serialize};function ar(R){return typeof R.secure=="boolean"?R.secure:String(R.scheme).toLowerCase()==="wss"}var wr={scheme:"ws",domainHost:!0,parse:function(R,L){var z=R;return z.secure=ar(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===(ar(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}},hr={scheme:"wss",domainHost:wr.domainHost,parse:wr.parse,serialize:wr.serialize},zr={},ln="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",he="[0-9A-Fa-f]",gr=i(i("%[EFef]"+he+"%"+he+he+"%"+he+he)+"|"+i("%[89A-Fa-f]"+he+"%"+he+he)+"|"+i("%"+he+he)),Gr="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",Ri="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",Wn=n(Ri,'[\\"\\\\]'),ci="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",fn=new RegExp(ln,"g"),Ze=new RegExp(gr,"g"),Rs=new RegExp(n("[^]",Gr,"[\\.]",'[\\"]',Wn),"g"),Fn=new RegExp(n("[^]",ln,ci),"g"),Jn=Fn;function tn(R){var L=q(R);return L.match(fn)?L:R}var ui={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,_e=Tt.length;Ht<_e;++Ht){var re=Tt[Ht].split("=");switch(re[0]){case"to":for(var zt=re[1].split(","),qt=0,ue=zt.length;qt<ue;++qt)Z.push(zt[qt]);break;case"subject":z.subject=Yt(re[1],L);break;case"body":z.body=Yt(re[1],L);break;default:tt=!0,Ot[Yt(re[0],L)]=Yt(re[1],L);break}}tt&&(z.headers=Ot)}z.query=void 0;for(var jt=0,Gt=Z.length;jt<Gt;++jt){var se=Z[jt].split("@");if(se[0]=Yt(se[0]),L.unicodeSupport)se[1]=Yt(se[1],L).toLowerCase();else try{se[1]=M.toASCII(Yt(se[1],L).toLowerCase())}catch(Be){z.error=z.error||"Email address's domain name can not be converted to ASCII via punycode: "+Be}Z[jt]=se.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("@"),_e=Tt.slice(0,Ht).replace(Ze,tn).replace(Ze,s).replace(Rs,G),re=Tt.slice(Ht+1);try{re=L.iri?M.toUnicode(re):M.toASCII(Yt(re,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]=_e+"@"+re}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 ue in zt)zt[ue]!==zr[ue]&&qt.push(ue.replace(Ze,tn).replace(Ze,s).replace(Fn,G)+"="+zt[ue].replace(Ze,tn).replace(Ze,s).replace(Jn,G));return qt.length&&(z.query=qt.join("&")),z}},Qn=/^([^\:]+)\:(.*)/,kn={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),_e=I[Ht];Z.nid=Ot,Z.nss=Tt,Z.path=void 0,_e&&(Z=_e.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}},Ii=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,hi={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(Ii))&&(z.error=z.error||"UUID is not valid."),z},serialize:function(R,L){var z=R;return z.nss=(R.uuid||"").toLowerCase(),z}};I[me.scheme]=me,I[Ve.scheme]=Ve,I[wr.scheme]=wr,I[hr.scheme]=hr,I[ui.scheme]=ui,I[kn.scheme]=kn,I[hi.scheme]=hi,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=oe,r.unescapeComponent=Yt,Object.defineProperty(r,"__esModule",{value:!0})})})(av,av.exports);var Z5=av.exports;const kU=An(Z5),PU=Jt({__proto__:null,default:kU},[Z5]),TU=Qt(PU);Object.defineProperty(sv,"__esModule",{value:!0});const tE=TU;tE.code='require("ajv/dist/runtime/uri").default';var OU=sv.default=tE;const NU=Jt({__proto__:null,default:OU},[sv]),AU=Qt(NU);(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=Fc;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=Ne;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=rv,o=I$,s=ov,a=Ne,c=Zd,l=Jd,u=Ye,h=CU,f=AU,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."},_={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},y=200;function m(X){var O,C,E,b,P,M,I,G,q,et,st,mt,Lt,W,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,oe=Kt===!0||Kt===void 0?1:Kt||0,Yt=(E=(C=X.code)===null||C===void 0?void 0:C.regExp)!==null&&E!==void 0?E:d,me=(b=X.uriResolver)!==null&&b!==void 0?b: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:(W=(Lt=X.strictRequired)!==null&&Lt!==void 0?Lt:Ut)!==null&&W!==void 0?W:!1,code:X.code?{...X.code,optimize:oe,regExp:Yt}:{optimize:oe,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&&lt!==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:me}}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:E}=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:g,es5:C,lines:E}),this.logger=Y(O.logger);const b=O.validateFormats;O.validateFormats=!1,this.RULES=(0,o.getRules)(),N.call(this,v,O,"NOT SUPPORTED"),N.call(this,_,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=b}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:O,meta:C,schemaId:E}=this.opts;let b=h;E==="id"&&(b={...h},b.id=b.$id,delete b.$id),C&&O&&this.addMetaSchema(b,b[E],!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 E;if(typeof O=="string"){if(E=this.getSchema(O),!E)throw new Error(`no schema with key or ref "${O}"`)}else E=this.compile(O);const b=E(C);return"$async"in E||(this.errors=E.errors),b}compile(O,C){const E=this._addSchema(O,C);return E.validate||this._compileSchemaEnv(E)}compileAsync(O,C){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:E}=this.opts;return b.call(this,O,C);async function b(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 b.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]=E(et))}finally{delete this._loading[et]}}}addSchema(O,C,E,b=this.opts.validateSchema){if(Array.isArray(O)){for(const M of O)this.addSchema(M,void 0,E,b);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,E,C,b,!0),this}addMetaSchema(O,C,E=this.opts.validateSchema){return this.addSchema(O,C,!0,E),this}validateSchema(O,C){if(typeof O=="boolean")return!0;let E;if(E=O.$schema,E!==void 0&&typeof E!="string")throw new Error("$schema must be a string");if(E=E||this.opts.defaultMeta||this.defaultMeta(),!E)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const b=this.validate(E,O);if(!b&&C){const P="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(P);else throw new Error(P)}return b}getSchema(O){let C;for(;typeof(C=$.call(this,O))=="string";)O=C;if(C===void 0){const{schemaId:E}=this.opts,b=new s.SchemaEnv({schema:{},schemaId:E});if(C=s.resolveSchema.call(this,b,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=$.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 E=O[this.opts.schemaId];return E&&(E=(0,c.normalizeId)(E),delete this.schemas[E],delete this.refs[E]),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 E;if(typeof O=="string")E=O,typeof C=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),C.keyword=E);else if(typeof O=="object"&&C===void 0){if(C=O,E=C.keyword,Array.isArray(E)&&!E.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(nt.call(this,E,C),!C)return(0,u.eachItem)(E,P=>ft.call(this,P)),this;_t.call(this,C);const b={...C,type:(0,l.getJSONTypes)(C.type),schemaType:(0,l.getJSONTypes)(C.schemaType)};return(0,u.eachItem)(E,b.type.length===0?P=>ft.call(this,P,b):P=>b.type.forEach(M=>ft.call(this,P,b,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 E of C.rules){const b=E.rules.findIndex(P=>P.keyword===O);b>=0&&E.rules.splice(b,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:E="data"}={}){return!O||O.length===0?"No errors":O.map(b=>`${E}${b.instancePath} ${b.message}`).reduce((b,P)=>b+C+P)}$dataMetaSchema(O,C){const E=this.RULES.all;O=JSON.parse(JSON.stringify(O));for(const b of C){const P=b.split("/").slice(1);let M=O;for(const I of P)M=M[I];for(const I in E){const G=E[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 E in O){const b=O[E];(!C||C.test(E))&&(typeof b=="string"?delete O[E]:b&&!b.meta&&(this._cache.delete(b.schema),delete O[E]))}}_addSchema(O,C,E,b=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;E=(0,c.normalizeId)(M||E);const q=c.getSchemaRefs.call(this,O,E);return G=new s.SchemaEnv({schema:O,schemaId:I,meta:C,baseId:E,localRefs:q}),this._cache.set(G.schema,G),P&&!E.startsWith("#")&&(E&&this._checkUnique(E),this.refs[E]=G),b&&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 N(X,O,C,E="error"){for(const b in X){const P=b;P in O&&this.logger[E](`${C}: option ${b}. ${X[P]}`)}}function $(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,E=>{if(C.keywords[E])throw new Error(`Keyword ${E} is already defined`);if(!it.test(E))throw new Error(`Keyword ${E} 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 E;const b=O?.post;if(C&&b)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:P}=this;let M=b?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,(E=O.implements)===null||E===void 0||E.forEach(G=>this.addKeyword(G))}function xt(X,O,C){const E=X.rules.findIndex(b=>b.keyword===C);E>=0?X.rules.splice(E,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]}}})(Fg);const DU=An(Fg),RU=Jt({__proto__:null,default:DU},[Fg]),IU=Qt(RU);var lv={},cv={},uv={};Object.defineProperty(uv,"__esModule",{value:!0});const jU={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};var FU=uv.default=jU;const MU=Jt({__proto__:null,default:FU},[uv]),LU=Qt(MU);var da={};Object.defineProperty(da,"__esModule",{value:!0});var eE=da.callRef=oE=da.getValidate=void 0;const VU=rv,rE=ki,Dn=Ne,sl=Oo,nE=ov,nf=Ye,UU={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=nE.resolveRef.call(c,l,i,r);if(u===void 0)throw new VU.default(n.opts.uriResolver,i,r);if(u instanceof nE.SchemaEnv)return f(u);return d(u);function h(){if(o===l)return of(e,s,o,o.$async);const p=t.scopeValue("root",{ref:l});return of(e,(0,Dn._)`${p}.validate`,l,l.$async)}function f(p){const g=iE(e,p);of(e,g,p,p.$async)}function d(p){const g=t.scopeValue("schema",a.code.source===!0?{ref:p,code:(0,Dn.stringify)(p)}:{ref:p}),v=t.name("valid"),_=e.subschema({schema:p,dataTypes:[],schemaPath:Dn.nil,topSchemaRef:g,errSchemaPath:r},v);e.mergeEvaluated(_),e.ok(v)}}};function iE(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Dn._)`${r.scopeValue("wrapper",{ref:t})}.validate`}var oE=da.getValidate=iE;function of(e,t,r,n){const{gen:i,it:o}=e,{allErrors:s,schemaEnv:a,opts:c}=o,l=c.passContext?sl.default.this:Dn.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,Dn._)`await ${(0,rE.callValidateCode)(e,t,l)}`),d(t),s||i.assign(p,!0)},g=>{i.if((0,Dn._)`!(${g} instanceof ${o.ValidationError})`,()=>i.throw(g)),f(g),s||i.assign(p,!1)}),e.ok(p)}function h(){e.result((0,rE.callValidateCode)(e,t,l),()=>d(t),()=>f(t))}function f(p){const g=(0,Dn._)`${p}.errors`;i.assign(sl.default.vErrors,(0,Dn._)`${sl.default.vErrors} === null ? ${g} : ${sl.default.vErrors}.concat(${g})`),i.assign(sl.default.errors,(0,Dn._)`${sl.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=nf.mergeEvaluated.props(i,v.props,o.props));else{const _=i.var("props",(0,Dn._)`${p}.evaluated.props`);o.props=nf.mergeEvaluated.props(i,_,o.props,Dn.Name)}if(o.items!==!0)if(v&&!v.dynamicItems)v.items!==void 0&&(o.items=nf.mergeEvaluated.items(i,v.items,o.items));else{const _=i.var("items",(0,Dn._)`${p}.evaluated.items`);o.items=nf.mergeEvaluated.items(i,_,o.items,Dn.Name)}}}eE=da.callRef=of;var zU=da.default=UU;const GU=Jt({__proto__:null,get callRef(){return eE},default:zU,get getValidate(){return oE}},[da]),BU=Qt(GU);Object.defineProperty(cv,"__esModule",{value:!0});const HU=LU,qU=BU,KU=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",HU.default,qU.default];var YU=cv.default=KU;const XU=Jt({__proto__:null,default:YU},[cv]),WU=Qt(XU);var hv={},dv={};Object.defineProperty(dv,"__esModule",{value:!0});const sf=Ne,ms=sf.operators,af={maximum:{okStr:"<=",ok:ms.LTE,fail:ms.GT},minimum:{okStr:">=",ok:ms.GTE,fail:ms.LT},exclusiveMaximum:{okStr:"<",ok:ms.LT,fail:ms.GTE},exclusiveMinimum:{okStr:">",ok:ms.GT,fail:ms.LTE}},JU={message:({keyword:e,schemaCode:t})=>(0,sf.str)`must be ${af[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,sf._)`{comparison: ${af[e].okStr}, limit: ${t}}`},QU={keyword:Object.keys(af),type:"number",schemaType:"number",$data:!0,error:JU,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,sf._)`${r} ${af[t].fail} ${n} || isNaN(${r})`)}};var ZU=dv.default=QU;const tz=Jt({__proto__:null,default:ZU},[dv]),ez=Qt(tz);var fv={};Object.defineProperty(fv,"__esModule",{value:!0});const Mc=Ne,rz={message:({schemaCode:e})=>(0,Mc.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Mc._)`{multipleOf: ${e}}`},nz={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:rz,code(e){const{gen:t,data:r,schemaCode:n,it:i}=e,o=i.opts.multipleOfPrecision,s=t.let("res"),a=o?(0,Mc._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${o}`:(0,Mc._)`${s} !== parseInt(${s})`;e.fail$data((0,Mc._)`(${n} === 0 || (${s} = ${r}/${n}, ${a}))`)}};var iz=fv.default=nz;const oz=Jt({__proto__:null,default:iz},[fv]),sz=Qt(oz);var pv={},mv={};Object.defineProperty(mv,"__esModule",{value:!0});function sE(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 az=mv.default=sE;sE.code='require("ajv/dist/runtime/ucs2length").default';const lz=Jt({__proto__:null,default:az},[mv]),cz=Qt(lz);Object.defineProperty(pv,"__esModule",{value:!0});const fa=Ne,uz=Ye,hz=cz,dz={message({keyword:e,schemaCode:t}){const r=e==="maxLength"?"more":"fewer";return(0,fa.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,fa._)`{limit: ${e}}`},fz={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:dz,code(e){const{keyword:t,data:r,schemaCode:n,it:i}=e,o=t==="maxLength"?fa.operators.GT:fa.operators.LT,s=i.opts.unicode===!1?(0,fa._)`${r}.length`:(0,fa._)`${(0,uz.useFunc)(e.gen,hz.default)}(${r})`;e.fail$data((0,fa._)`${s} ${o} ${n}`)}};var pz=pv.default=fz;const mz=Jt({__proto__:null,default:pz},[pv]),gz=Qt(mz);var gv={};Object.defineProperty(gv,"__esModule",{value:!0});const vz=ki,lf=Ne,yz={message:({schemaCode:e})=>(0,lf.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,lf._)`{pattern: ${e}}`},_z={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:yz,code(e){const{data:t,$data:r,schema:n,schemaCode:i,it:o}=e,s=o.opts.unicodeRegExp?"u":"",a=r?(0,lf._)`(new RegExp(${i}, ${s}))`:(0,vz.usePattern)(e,n);e.fail$data((0,lf._)`!${a}.test(${t})`)}};var bz=gv.default=_z;const wz=Jt({__proto__:null,default:bz},[gv]),xz=Qt(wz);var vv={};Object.defineProperty(vv,"__esModule",{value:!0});const Lc=Ne,Sz={message({keyword:e,schemaCode:t}){const r=e==="maxProperties"?"more":"fewer";return(0,Lc.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,Lc._)`{limit: ${e}}`},$z={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Sz,code(e){const{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?Lc.operators.GT:Lc.operators.LT;e.fail$data((0,Lc._)`Object.keys(${r}).length ${i} ${n}`)}};var Ez=vv.default=$z;const Cz=Jt({__proto__:null,default:Ez},[vv]),kz=Qt(Cz);var yv={};Object.defineProperty(yv,"__esModule",{value:!0});const Vc=ki,Uc=Ne,Pz=Ye,Tz={message:({params:{missingProperty:e}})=>(0,Uc.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Uc._)`{missingProperty: ${e}}`},Oz={keyword:"required",type:"object",schemaType:"array",$data:!0,error:Tz,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,_=`required property "${g}" is not defined at "${v}" (strictRequired)`;(0,Pz.checkStrictMode)(s,_,s.opts.strictRequired)}}function l(){if(c||o)e.block$data(Uc.nil,h);else for(const d of r)(0,Vc.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,Vc.checkMissingProp)(e,r,d)),(0,Vc.reportMissingProp)(e,d),t.else()}function h(){t.forOf("prop",n,d=>{e.setParams({missingProperty:d}),t.if((0,Vc.noPropertyInData)(t,i,d,a.ownProperties),()=>e.error())})}function f(d,p){e.setParams({missingProperty:d}),t.forOf(d,n,()=>{t.assign(p,(0,Vc.propertyInData)(t,i,d,a.ownProperties)),t.if((0,Uc.not)(p),()=>{e.error(),t.break()})},Uc.nil)}}};var Nz=yv.default=Oz;const Az=Jt({__proto__:null,default:Nz},[yv]),Dz=Qt(Az);var _v={};Object.defineProperty(_v,"__esModule",{value:!0});const zc=Ne,Rz={message({keyword:e,schemaCode:t}){const r=e==="maxItems"?"more":"fewer";return(0,zc.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,zc._)`{limit: ${e}}`},Iz={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Rz,code(e){const{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?zc.operators.GT:zc.operators.LT;e.fail$data((0,zc._)`${r}.length ${i} ${n}`)}};var jz=_v.default=Iz;const Fz=Jt({__proto__:null,default:jz},[_v]),Mz=Qt(Fz);var bv={},wv={};Object.defineProperty(wv,"__esModule",{value:!0});const aE=g5;aE.code='require("ajv/dist/runtime/equal").default';var Lz=wv.default=aE;const Vz=Jt({__proto__:null,default:Lz},[wv]),xv=Qt(Vz);Object.defineProperty(bv,"__esModule",{value:!0});const Sv=Jd,sn=Ne,Uz=Ye,zz=xv,Gz={message:({params:{i:e,j:t}})=>(0,sn.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,sn._)`{i: ${e}, j: ${t}}`},Bz={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Gz,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,Sv.getSchemaTypes)(o.items):[];e.block$data(c,u,(0,sn._)`${s} === false`),e.ok(c);function u(){const p=t.let("i",(0,sn._)`${r}.length`),g=t.let("j");e.setParams({i:p,j:g}),t.assign(c,!0),t.if((0,sn._)`${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"),_=(0,Sv.checkDataTypes)(l,v,a.opts.strictNumbers,Sv.DataType.Wrong),y=t.const("indices",(0,sn._)`{}`);t.for((0,sn._)`;${p}--;`,()=>{t.let(v,(0,sn._)`${r}[${p}]`),t.if(_,(0,sn._)`continue`),l.length>1&&t.if((0,sn._)`typeof ${v} == "string"`,(0,sn._)`${v} += "_"`),t.if((0,sn._)`typeof ${y}[${v}] == "number"`,()=>{t.assign(g,(0,sn._)`${y}[${v}]`),e.error(),t.assign(c,!1).break()}).code((0,sn._)`${y}[${v}] = ${p}`)})}function d(p,g){const v=(0,Uz.useFunc)(t,zz.default),_=t.name("outer");t.label(_).for((0,sn._)`;${p}--;`,()=>t.for((0,sn._)`${g} = ${p}; ${g}--;`,()=>t.if((0,sn._)`${v}(${r}[${p}], ${r}[${g}])`,()=>{e.error(),t.assign(c,!1).break(_)})))}}};var Hz=bv.default=Bz;const qz=Jt({__proto__:null,default:Hz},[bv]),Kz=Qt(qz);var $v={};Object.defineProperty($v,"__esModule",{value:!0});const Ev=Ne,Yz=Ye,Xz=xv,Wz={message:"must be equal to constant",params:({schemaCode:e})=>(0,Ev._)`{allowedValue: ${e}}`},Jz={keyword:"const",$data:!0,error:Wz,code(e){const{gen:t,data:r,$data:n,schemaCode:i,schema:o}=e;n||o&&typeof o=="object"?e.fail$data((0,Ev._)`!${(0,Yz.useFunc)(t,Xz.default)}(${r}, ${i})`):e.fail((0,Ev._)`${o} !== ${r}`)}};var Qz=$v.default=Jz;const Zz=Jt({__proto__:null,default:Qz},[$v]),tG=Qt(Zz);var Cv={};Object.defineProperty(Cv,"__esModule",{value:!0});const Gc=Ne,eG=Ye,rG=xv,nG={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Gc._)`{allowedValues: ${e}}`},iG={keyword:"enum",schemaType:"array",$data:!0,error:nG,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,eG.useFunc)(t,rG.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,Gc.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,Gc._)`${l()}(${r}, ${d})`,()=>t.assign(u,!0).break()))}function f(d,p){const g=i[p];return typeof g=="object"&&g!==null?(0,Gc._)`${l()}(${r}, ${d}[${p}])`:(0,Gc._)`${r} === ${g}`}}};var oG=Cv.default=iG;const sG=Jt({__proto__:null,default:oG},[Cv]),aG=Qt(sG);Object.defineProperty(hv,"__esModule",{value:!0});const lG=ez,cG=sz,uG=gz,hG=xz,dG=kz,fG=Dz,pG=Mz,mG=Kz,gG=tG,vG=aG,yG=[lG.default,cG.default,uG.default,hG.default,dG.default,fG.default,pG.default,mG.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},gG.default,vG.default];var _G=hv.default=yG;const bG=Jt({__proto__:null,default:_G},[hv]),wG=Qt(bG);var kv={},Bc={};Object.defineProperty(Bc,"__esModule",{value:!0});var lE=Bc.validateAdditionalItems=void 0;const pa=Ne,Pv=Ye,xG={message:({params:{len:e}})=>(0,pa.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,pa._)`{limit: ${e}}`},SG={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:xG,code(e){const{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Pv.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}cE(e,n)}};function cE(e,t){const{gen:r,schema:n,data:i,keyword:o,it:s}=e;s.items=!0;const a=r.const("len",(0,pa._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,pa._)`${a} <= ${t.length}`);else if(typeof n=="object"&&!(0,Pv.alwaysValidSchema)(s,n)){const l=r.var("valid",(0,pa._)`${a} <= ${t.length}`);r.if((0,pa.not)(l),()=>c(l)),e.ok(l)}function c(l){r.forRange("i",t.length,a,u=>{e.subschema({keyword:o,dataProp:u,dataPropType:Pv.Type.Num},l),s.allErrors||r.if((0,pa.not)(l),()=>r.break())})}}lE=Bc.validateAdditionalItems=cE;var $G=Bc.default=SG;const EG=Jt({__proto__:null,default:$G,get validateAdditionalItems(){return lE}},[Bc]),uE=Qt(EG);var Tv={},Hc={};Object.defineProperty(Hc,"__esModule",{value:!0});var hE=Hc.validateTuple=void 0;const dE=Ne,cf=Ye,CG=ki,kG={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return fE(e,"additionalItems",t);r.items=!0,!(0,cf.alwaysValidSchema)(r,t)&&e.ok((0,CG.validateArray)(e))}};function fE(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=cf.mergeEvaluated.items(n,r.length,a.items));const c=n.name("valid"),l=n.const("len",(0,dE._)`${o}.length`);r.forEach((h,f)=>{(0,cf.alwaysValidSchema)(a,h)||(n.if((0,dE._)`${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,cf.checkStrictMode)(a,v,f.strictTuples)}}}hE=Hc.validateTuple=fE;var PG=Hc.default=kG;const TG=Jt({__proto__:null,default:PG,get validateTuple(){return hE}},[Hc]),pE=Qt(TG);Object.defineProperty(Tv,"__esModule",{value:!0});const OG=pE,NG={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,OG.validateTuple)(e,"items")};var AG=Tv.default=NG;const DG=Jt({__proto__:null,default:AG},[Tv]),RG=Qt(DG);var Ov={};Object.defineProperty(Ov,"__esModule",{value:!0});const mE=Ne,IG=Ye,jG=ki,FG=uE,MG={message:({params:{len:e}})=>(0,mE.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,mE._)`{limit: ${e}}`},LG={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:MG,code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,IG.alwaysValidSchema)(n,t)&&(i?(0,FG.validateAdditionalItems)(e,i):e.ok((0,jG.validateArray)(e)))}};var VG=Ov.default=LG;const UG=Jt({__proto__:null,default:VG},[Ov]),zG=Qt(UG);var Nv={};Object.defineProperty(Nv,"__esModule",{value:!0});const oi=Ne,uf=Ye,GG={message:({params:{min:e,max:t}})=>t===void 0?(0,oi.str)`must contain at least ${e} valid item(s)`:(0,oi.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,oi._)`{minContains: ${e}}`:(0,oi._)`{minContains: ${e}, maxContains: ${t}}`},BG={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:GG,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,oi._)`${i}.length`);if(e.setParams({min:s,max:a}),a===void 0&&s===0){(0,uf.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&s>a){(0,uf.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,uf.alwaysValidSchema)(o,r)){let g=(0,oi._)`${u} >= ${s}`;a!==void 0&&(g=(0,oi._)`${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,oi._)`${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,_=>{e.subschema({keyword:"contains",dataProp:_,dataPropType:uf.Type.Num,compositeRule:!0},g),v()})}function p(g){t.code((0,oi._)`${g}++`),a===void 0?t.if((0,oi._)`${g} >= ${s}`,()=>t.assign(h,!0).break()):(t.if((0,oi._)`${g} > ${a}`,()=>t.assign(h,!1).break()),s===1?t.assign(h,!0):t.if((0,oi._)`${g} >= ${s}`,()=>t.assign(h,!0)))}}};var HG=Nv.default=BG;const qG=Jt({__proto__:null,default:HG},[Nv]),KG=Qt(qG);var Av={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Ne,r=Ye,n=ki;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 _ of g)(0,n.checkReportMissingProp)(c,_)}):(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})(Av);const YG=An(Av),XG=Jt({__proto__:null,default:YG},[Av]),WG=Qt(XG);var Dv={};Object.defineProperty(Dv,"__esModule",{value:!0});const gE=Ne,JG=Ye,QG={message:"property name must be valid",params:({params:e})=>(0,gE._)`{propertyName: ${e.propertyName}}`},ZG={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:QG,code(e){const{gen:t,schema:r,data:n,it:i}=e;if((0,JG.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,gE.not)(o),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(o)}};var tB=Dv.default=ZG;const eB=Jt({__proto__:null,default:tB},[Dv]),rB=Qt(eB);var Rv={};Object.defineProperty(Rv,"__esModule",{value:!0});const hf=ki,Oi=Ne,nB=Oo,df=Ye,iB={message:"must NOT have additional properties",params:({params:e})=>(0,Oi._)`{additionalProperty: ${e.additionalProperty}}`},oB={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:iB,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,df.alwaysValidSchema)(s,r))return;const l=(0,hf.allSchemaProperties)(n.properties),u=(0,hf.allSchemaProperties)(n.patternProperties);h(),e.ok((0,Oi._)`${o} === ${nB.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 _;if(l.length>8){const y=(0,df.schemaRefOrVal)(s,n.properties,"properties");_=(0,hf.isOwnProperty)(t,y,v)}else l.length?_=(0,Oi.or)(...l.map(y=>(0,Oi._)`${v} === ${y}`)):_=Oi.nil;return u.length&&(_=(0,Oi.or)(_,...u.map(y=>(0,Oi._)`${(0,hf.usePattern)(e,y)}.test(${v})`))),(0,Oi.not)(_)}function d(v){t.code((0,Oi._)`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,df.alwaysValidSchema)(s,r)){const _=t.name("valid");c.removeAdditional==="failing"?(g(v,_,!1),t.if((0,Oi.not)(_),()=>{e.reset(),d(v)})):(g(v,_),a||t.if((0,Oi.not)(_),()=>t.break()))}}function g(v,_,y){const m={keyword:"additionalProperties",dataProp:v,dataPropType:df.Type.Str};y===!1&&Object.assign(m,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(m,_)}}};var sB=Rv.default=oB;const aB=Jt({__proto__:null,default:sB},[Rv]),vE=Qt(aB);var Iv={};Object.defineProperty(Iv,"__esModule",{value:!0});const lB=Fc,yE=ki,jv=Ye,_E=vE,cB={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&&_E.default.code(new lB.KeywordCxt(o,_E.default,"additionalProperties"));const s=(0,yE.allSchemaProperties)(r);for(const h of s)o.definedProperties.add(h);o.opts.unevaluated&&s.length&&o.props!==!0&&(o.props=jv.mergeEvaluated.props(t,(0,jv.toHash)(s),o.props));const a=s.filter(h=>!(0,jv.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,yE.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 uB=Iv.default=cB;const hB=Jt({__proto__:null,default:uB},[Iv]),dB=Qt(hB);var Fv={};Object.defineProperty(Fv,"__esModule",{value:!0});const bE=ki,ff=Ne,wE=Ye,xE=Ye,fB={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,bE.allSchemaProperties)(r),c=a.filter(g=>(0,wE.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 ff.Name)&&(o.props=(0,xE.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,wE.checkStrictMode)(o,`property ${v} matches pattern ${g} (use allowMatchingProperties)`)}function p(g){t.forIn("key",n,v=>{t.if((0,ff._)`${(0,bE.usePattern)(e,g)}.test(${v})`,()=>{const _=c.includes(g);_||e.subschema({keyword:"patternProperties",schemaProp:g,dataProp:v,dataPropType:xE.Type.Str},u),o.opts.unevaluated&&h!==!0?t.assign((0,ff._)`${h}[${v}]`,!0):!_&&!o.allErrors&&t.if((0,ff.not)(u),()=>t.break())})})}}};var pB=Fv.default=fB;const mB=Jt({__proto__:null,default:pB},[Fv]),gB=Qt(mB);var Mv={};Object.defineProperty(Mv,"__esModule",{value:!0});const vB=Ye,yB={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,vB.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 _B=Mv.default=yB;const bB=Jt({__proto__:null,default:_B},[Mv]),wB=Qt(bB);var Lv={};Object.defineProperty(Lv,"__esModule",{value:!0});const xB=ki,SB={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:xB.validateUnion,error:{message:"must match a schema in anyOf"}};var $B=Lv.default=SB;const EB=Jt({__proto__:null,default:$B},[Lv]),CB=Qt(EB);var Vv={};Object.defineProperty(Vv,"__esModule",{value:!0});const pf=Ne,kB=Ye,PB={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,pf._)`{passingSchemas: ${e.passing}}`},TB={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:PB,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,kB.alwaysValidSchema)(i,u)?t.var(c,!0):f=e.subschema({keyword:"oneOf",schemaProp:h,compositeRule:!0},c),h>0&&t.if((0,pf._)`${c} && ${s}`).assign(s,!1).assign(a,(0,pf._)`[${a}, ${h}]`).else(),t.if(c,()=>{t.assign(s,!0),t.assign(a,h),f&&e.mergeEvaluated(f,pf.Name)})})}}};var OB=Vv.default=TB;const NB=Jt({__proto__:null,default:OB},[Vv]),AB=Qt(NB);var Uv={};Object.defineProperty(Uv,"__esModule",{value:!0});const DB=Ye,RB={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,DB.alwaysValidSchema)(n,o))return;const a=e.subschema({keyword:"allOf",schemaProp:s},i);e.ok(i),e.mergeEvaluated(a)})}};var IB=Uv.default=RB;const jB=Jt({__proto__:null,default:IB},[Uv]),FB=Qt(jB);var zv={};Object.defineProperty(zv,"__esModule",{value:!0});const mf=Ne,SE=Ye,MB={message:({params:e})=>(0,mf.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,mf._)`{failingKeyword: ${e.ifClause}}`},LB={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:MB,code(e){const{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,SE.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const i=$E(n,"then"),o=$E(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,mf.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,mf._)`${u}`):e.setParams({ifClause:u})}}}};function $E(e,t){const r=e.schema[t];return r!==void 0&&!(0,SE.alwaysValidSchema)(e,r)}var VB=zv.default=LB;const UB=Jt({__proto__:null,default:VB},[zv]),zB=Qt(UB);var Gv={};Object.defineProperty(Gv,"__esModule",{value:!0});const GB=Ye,BB={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,GB.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};var HB=Gv.default=BB;const qB=Jt({__proto__:null,default:HB},[Gv]),KB=Qt(qB);Object.defineProperty(kv,"__esModule",{value:!0});const YB=uE,XB=RG,WB=pE,JB=zG,QB=KG,ZB=WG,tH=rB,eH=vE,rH=dB,nH=gB,iH=wB,oH=CB,sH=AB,aH=FB,lH=zB,cH=KB;function uH(e=!1){const t=[iH.default,oH.default,sH.default,aH.default,lH.default,cH.default,tH.default,eH.default,ZB.default,rH.default,nH.default];return e?t.push(XB.default,JB.default):t.push(YB.default,WB.default),t.push(QB.default),t}var hH=kv.default=uH;const dH=Jt({__proto__:null,default:hH},[kv]),fH=Qt(dH);var Bv={},Hv={};Object.defineProperty(Hv,"__esModule",{value:!0});const Dr=Ne,pH={message:({schemaCode:e})=>(0,Dr.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,Dr._)`{format: ${e}}`},mH={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:pH,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,Dr._)`${p}[${s}]`),v=r.let("fType"),_=r.let("format");r.if((0,Dr._)`typeof ${g} == "object" && !(${g} instanceof RegExp)`,()=>r.assign(v,(0,Dr._)`${g}.type || "string"`).assign(_,(0,Dr._)`${g}.validate`),()=>r.assign(v,(0,Dr._)`"string"`).assign(_,g)),e.fail$data((0,Dr.or)(y(),m()));function y(){return c.strictSchema===!1?Dr.nil:(0,Dr._)`${s} && !${_}`}function m(){const x=u.$async?(0,Dr._)`(${g}.async ? await ${_}(${n}) : ${_}(${n}))`:(0,Dr._)`${_}(${n})`,N=(0,Dr._)`(typeof ${_} == "function" ? ${x} : ${_}.test(${n}))`;return(0,Dr._)`${_} && ${_} !== true && ${v} === ${t} && !${N}`}}function d(){const p=h.formats[o];if(!p){y();return}if(p===!0)return;const[g,v,_]=m(p);g===t&&e.pass(x());function y(){if(c.strictSchema===!1){h.logger.warn(N());return}throw new Error(N());function N(){return`unknown format "${o}" ignored in schema at path "${l}"`}}function m(N){const $=N instanceof RegExp?(0,Dr.regexpCode)(N):c.code.formats?(0,Dr._)`${c.code.formats}${(0,Dr.getProperty)(o)}`:void 0,k=r.scopeValue("formats",{key:o,ref:N,code:$});return typeof N=="object"&&!(N instanceof RegExp)?[N.type||"string",N.validate,(0,Dr._)`${k}.validate`]:["string",N,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,Dr._)`await ${_}(${n})`}return typeof v=="function"?(0,Dr._)`${_}(${n})`:(0,Dr._)`${_}.test(${n})`}}}};var gH=Hv.default=mH;const vH=Jt({__proto__:null,default:gH},[Hv]),yH=Qt(vH);Object.defineProperty(Bv,"__esModule",{value:!0});const _H=yH,bH=[_H.default];var wH=Bv.default=bH;const xH=Jt({__proto__:null,default:wH},[Bv]),SH=Qt(xH);var ma={};Object.defineProperty(ma,"__esModule",{value:!0});var EE=ma.contentVocabulary=CE=ma.metadataVocabulary=void 0,CE=ma.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];EE=ma.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];const $H=Jt({__proto__:null,get contentVocabulary(){return EE},default:ma,get metadataVocabulary(){return CE}},[ma]),EH=Qt($H);Object.defineProperty(lv,"__esModule",{value:!0});const CH=WU,kH=wG,PH=fH,TH=SH,kE=EH,OH=[CH.default,kH.default,(0,PH.default)(),TH.default,kE.metadataVocabulary,kE.contentVocabulary];var NH=lv.default=OH;const AH=Jt({__proto__:null,default:NH},[lv]),DH=Qt(AH);var qv={},Kv={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,function(t){t.Tag="tag",t.Mapping="mapping"}(e.DiscrError||(e.DiscrError={}))})(Kv);const RH=An(Kv),IH=Jt({__proto__:null,default:RH},[Kv]),jH=Qt(IH);Object.defineProperty(qv,"__esModule",{value:!0});const al=Ne,Yv=jH,PE=ov,FH=Ye,MH={message:({params:{discrError:e,tagName:t}})=>e===Yv.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,al._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},LH={keyword:"discriminator",type:"object",schemaType:"object",error:MH,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,al._)`${r}${(0,al.getProperty)(a)}`);t.if((0,al._)`typeof ${l} == "string"`,()=>u(),()=>e.error(!1,{discrError:Yv.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,al._)`${l} === ${p}`),t.assign(c,h(d[p]));t.else(),e.error(!1,{discrError:Yv.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,al.Name),p}function f(){var d;const p={},g=_(i);let v=!0;for(let x=0;x<s.length;x++){let N=s[x];N?.$ref&&!(0,FH.schemaHasRulesButRef)(N,o.self.RULES)&&(N=PE.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,N?.$ref),N instanceof PE.SchemaEnv&&(N=N.schema));const $=(d=N?.properties)===null||d===void 0?void 0:d[a];if(typeof $!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);v=v&&(g||_(N)),y($,x)}if(!v)throw new Error(`discriminator: "${a}" must be required`);return p;function _({required:x}){return Array.isArray(x)&&x.includes(a)}function y(x,N){if(x.const)m(x.const,N);else if(x.enum)for(const $ of x.enum)m($,N);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function m(x,N){if(typeof x!="string"||x in p)throw new Error(`discriminator: "${a}" values must be unique strings`);p[x]=N}}}};var VH=qv.default=LH;const UH=Jt({__proto__:null,default:VH},[qv]),zH=Qt(UH),GH="http://json-schema.org/draft-07/schema#",BH="http://json-schema.org/draft-07/schema#",HH="Core schema meta-schema",qH={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:[]}},KH=["object","boolean"],YH={$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:"#"}},XH={$schema:GH,$id:BH,title:HH,definitions:qH,type:KH,properties:YH,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=IU,n=DH,i=zH,o=XH,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=Fc;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var u=Ne;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=rv;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(jg,jg.exports);var TE=jg.exports;const OE=An(TE),WH=Jt({__proto__:null,default:OE},[TE]);var Xv={exports:{}};const JH=Qt(WH);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=JH,n=Ne,i=Ac,o=Fc,s=Dc,a=Oo,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(_){const{gen:y,data:m,schema:x,schemaValue:N,it:$}=_;if($.createErrors===!1)return;const k=x,D=n.strConcat(a.default.instancePath,$.errorPath);y.if(r._`${a.default.errors} > 0`,()=>{if(typeof k=="object"){const[E,b]=U(k);b&&K(b),E&&Y(E),it(V(k))}const C=typeof k=="string"?k:k._;C&&nt(C),v.keepErrors||ft()});function V({properties:C,items:E}){const b={};if(C){b.props={};for(const P in C)b.props[P]=[]}if(E){b.items={};for(let P=0;P<E.length;P++)b.items[P]=[]}return b}function U(C){let E,b;for(const P in C){if(P==="properties"||P==="items")continue;const M=C[P];if(typeof M=="object"){E||(E={});const I=E[P]={};for(const G in M)I[G]=[]}else b||(b={}),b[P]=[]}return[E,b]}function K(C){const E=y.const("emErrors",r.stringify(C)),b=y.const("templates",at(C,x));y.forOf("err",a.default.vErrors,G=>y.if(xt(G,E),()=>y.code(r._`${E}[${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(${E}[${et}])`)}),s.reportError(_,{message:G,params:r._`{errors: ${q}}`})}else M(G=>s.reportError(_,{message:I(G),params:r._`{errors: ${E}[${G}]}`}));function M(G){y.forIn("key",E,q=>y.if(r._`${E}[${q}].length`,()=>G(q)))}function I(G){return r._`${G} in ${b} ? ${b}[${G}]() : ${N}[${G}]`}}function Y(C){const E=y.const("emErrors",r.stringify(C)),b=[];for(const q in C)b.push([q,at(C[q],x[q])]);const P=y.const("templates",y.object(...b)),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,E),()=>{y.assign(I,r._`${M}[${q}.keyword]`),y.assign(G,r._`${E}[${q}.keyword][${q}.params[${I}]]`),y.if(G,()=>y.code(r._`${G}.push(${q})`).assign(r._`${q}.${l}`,!0))})),y.forIn("key",E,q=>y.forIn("keyProp",r._`${E}[${q}]`,et=>{y.assign(G,r._`${E}[${q}][${et}]`),y.if(r._`${G}.length`,()=>{const st=y.const("tmpl",r._`${P}[${q}] && ${P}[${q}][${et}]`);s.reportError(_,{message:r._`${st} ? ${st}() : ${N}[${q}][${et}]`,params:r._`{errors: ${G}}`})})}))}function it(C){const{props:E,items:b}=C;if(!E&&!b)return;const P=r._`typeof ${m} == "object"`,M=r._`Array.isArray(${m})`,I=y.let("emErrors");let G,q;const et=y.let("templates");E&&b?(G=y.let("emChildKwd"),y.if(P),y.if(M,()=>{st(b,x.items),y.assign(G,r.str`items`)},()=>{st(E,x.properties),y.assign(G,r.str`properties`)}),q=r._`[${G}]`):b?(y.if(M),st(b,x.items),q=r._`.items`):E&&(y.if(n.and(P,n.not(M))),st(E,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(_,{message:r._`${mt} in ${et} ? ${et}[${mt}]() : ${N}${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 E=y.const("emErrs",r._`[]`);y.forOf("err",a.default.vErrors,b=>y.if(yt(b),()=>y.code(r._`${E}.push(${b})`).assign(r._`${b}.${l}`,!0))),y.if(r._`${E}.length`,()=>s.reportError(_,{message:X(C),params:r._`{errors: ${E}}`}))}function ft(){const C=y.const("emErrs",r._`[]`);y.forOf("err",a.default.vErrors,E=>y.if(r._`!${E}.${l}`,()=>y.code(r._`${C}.push(${E})`))),y.assign(a.default.vErrors,C).assign(a.default.errors,r._`${C}.length`)}function xt(C,E){return n.and(r._`${C}.keyword !== ${c}`,r._`!${C}.${l}`,r._`${C}.instancePath === ${D}`,r._`${C}.keyword in ${E}`,r._`${C}.schemaPath.indexOf(${$.errSchemaPath}) === 0`,r._`/^\\/[^\\/]*$/.test(${C}.schemaPath.slice(${$.errSchemaPath.length}))`)}function _t(C,E,b){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 ${E}`,()=>b(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(${$.errSchemaPath}) === 0`,r._`${C}.schemaPath[${$.errSchemaPath}.length] === "/"`)}function at(C,E){const b=[];for(const P in C){const M=E[P];h.test(M)&&b.push([P,O(M)])}return y.object(...b)}function X(C){return h.test(C)?new i._Code(i.safeStringify(C).replace(f,(E,b)=>`" + JSON.stringify(${o.getData(b,$)}) + "`).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,_={})=>{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(_))};t.default=g,e.exports=g,e.exports.default=g})(Xv,Xv.exports);var QH=Xv.exports;const ZH=An(QH),tq=new OE({allErrors:!0});ZH(tq);const NE=(e,t="image/svg+xml",r="utf-8")=>new Blob([e],{type:`${t};charset=${r}`}),eq=e=>new XMLSerializer().serializeToString(e),rq=(e,t="image/svg+xml",r="utf-8")=>NE(eq(e),t,r),AE=(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 DE(){return document.compatMode=="BackCompat"?document.body:document.documentElement}function RE(){const e=DE();return{scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight}}function nq(){const e=DE();return{clientTop:e.clientTop,clientLeft:e.clientLeft,clientWidth:e.clientWidth,clientHeight:e.clientHeight}}function iq(){const{clientWidth:e,clientHeight:t}=nq();return{width:window.innerWidth||e,height:window.innerHeight||t}}function oq(e){const{top:t,left:r}=e.getBoundingClientRect(),n=RE();return{x:r+n.scrollLeft,y:t+n.scrollTop}}function sq(e){if(e.pageX&&e.pageY)return{x:e.pageX,y:e.pageY};const t=RE();return{x:e.clientX+t.scrollLeft,y:e.clientY+t.scrollTop}}function IE(e,t){const r=sq(t),n=oq(e);return{x:r.x-n.x,y:r.y-n.y}}function aq(){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}aq();function lq(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 je{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":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 nu(e){const t={matchIndex:-1,fullMatch:null,groupMatchs:[]};if(e){t.matchIndex=typeof e.index=="number"?e.index:-1;for(let n=0,i=e.length;n<i;n++)n==0?t.fullMatch=e[n]:t.groupMatchs.push(e[n])}return t}const um=(e,t)=>{typeof e=="string"&&(e=eu(e)||new RegExp(e));const n=t.match(e);return nu(n)},iu=(e,t)=>{typeof e=="string"&&(e=eu(e)||new RegExp(e));const n=[],i=t.matchAll(e);for(const r of i)n.push(nu(r));return n};function ru(e){return e.replace(/(^\w|[_-]\w)/g,function(t){return t.slice(-1).toUpperCase()})}const hm=(e,t="")=>(e=e.replace(/\[data-v-[0-9a-zA-Z]*\]/g,t),e);function fm(e){const t=typeof e;return t!=="object"?t:Object.prototype.toString.call(e).replace(/^\[object (\S+)\]$/,"$1").toLowerCase()}function dm(e){return fm(e)==="object"}function su(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 n=Object.getOwnPropertyDescriptors(e),i=Object.create(Object.getPrototypeOf(e),n);t.set(e,i);for(const r of Reflect.ownKeys(e))i[r]=dm(e[r])?su(e[r],t):e[r];return i}function Nr(e,t){const n=e.length,i=t.length;for(let s=0;s<i;s++)e[s]=t[s];let r=Math.max(0,n-i);for(;r>0;)e.pop(),r--}function ou(e,t=12){return+e.toPrecision(t)}class au{queue=[];results=[];rs;controller;concurrency;activeTaskCount=0;constructor(t=1){this.concurrency=t,this.rs=new ReadableStream({start:async n=>{this.controller=n}})}get readableStream(){return this.rs}addTask(t){Array.isArray(t)?this.queue.push(...t):this.queue.push(t),this.activeTaskCount<this.concurrency&&this.queue.length>0&&this.runTasks()}async runTasks(){for(;this.activeTaskCount<this.concurrency&&this.queue.length>0;){const t=this.queue.splice(0,this.concurrency-this.activeTaskCount);this.activeTaskCount+=t.length;const n=await Promise.allSettled(t.map(i=>i()));this.results.push(...n),n.forEach(i=>{i.status=="fulfilled"?this.controller?.enqueue(i.value):i.status=="rejected"&&this.controller?.enqueue(new Error(i.reason))}),this.activeTaskCount-=n.length}}}var pm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ra(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lu={exports:{}},zi=typeof Reflect=="object"?Reflect:null,cu=zi&&typeof zi.apply=="function"?zi.apply:function(t,n,i){return Function.prototype.apply.call(t,n,i)},Ns;zi&&typeof zi.ownKeys=="function"?Ns=zi.ownKeys:Object.getOwnPropertySymbols?Ns=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Ns=function(t){return Object.getOwnPropertyNames(t)};function mm(e){console&&console.warn&&console.warn(e)}var uu=Number.isNaN||function(t){return t!==t};function ue(){ue.init.call(this)}lu.exports=ue,lu.exports.once=_m,ue.EventEmitter=ue,ue.prototype._events=void 0,ue.prototype._eventsCount=0,ue.prototype._maxListeners=void 0;var hu=10;function Os(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(ue,"defaultMaxListeners",{enumerable:!0,get:function(){return hu},set:function(e){if(typeof e!="number"||e<0||uu(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");hu=e}}),ue.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},ue.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||uu(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function fu(e){return e._maxListeners===void 0?ue.defaultMaxListeners:e._maxListeners}ue.prototype.getMaxListeners=function(){return fu(this)},ue.prototype.emit=function(t){for(var n=[],i=1;i<arguments.length;i++)n.push(arguments[i]);var r=t==="error",s=this._events;if(s!==void 0)r=r&&s.error===void 0;else if(!r)return!1;if(r){var o;if(n.length>0&&(o=n[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var l=s[t];if(l===void 0)return!1;if(typeof l=="function")cu(l,this,n);else for(var p=l.length,m=vu(l,p),i=0;i<p;++i)cu(m[i],this,n);return!0};function du(e,t,n,i){var r,s,o;if(Os(n),s=e._events,s===void 0?(s=e._events=Object.create(null),e._eventsCount=0):(s.newListener!==void 0&&(e.emit("newListener",t,n.listener?n.listener:n),s=e._events),o=s[t]),o===void 0)o=s[t]=n,++e._eventsCount;else if(typeof o=="function"?o=s[t]=i?[n,o]:[o,n]:i?o.unshift(n):o.push(n),r=fu(e),r>0&&o.length>r&&!o.warned){o.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=e,a.type=t,a.count=o.length,mm(a)}return e}ue.prototype.addListener=function(t,n){return du(this,t,n,!1)},ue.prototype.on=ue.prototype.addListener,ue.prototype.prependListener=function(t,n){return du(this,t,n,!0)};function gm(){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 pu(e,t,n){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=gm.bind(i);return r.listener=n,i.wrapFn=r,r}ue.prototype.once=function(t,n){return Os(n),this.on(t,pu(this,t,n)),this},ue.prototype.prependOnceListener=function(t,n){return Os(n),this.prependListener(t,pu(this,t,n)),this},ue.prototype.removeListener=function(t,n){var i,r,s,o,a;if(Os(n),r=this._events,r===void 0)return this;if(i=r[t],i===void 0)return this;if(i===n||i.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,i.listener||n));else if(typeof i!="function"){for(s=-1,o=i.length-1;o>=0;o--)if(i[o]===n||i[o].listener===n){a=i[o].listener,s=o;break}if(s<0)return this;s===0?i.shift():vm(i,s),i.length===1&&(r[t]=i[0]),r.removeListener!==void 0&&this.emit("removeListener",t,a||n)}return this},ue.prototype.off=ue.prototype.removeListener,ue.prototype.removeAllListeners=function(t){var n,i,r;if(i=this._events,i===void 0)return this;if(i.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):i[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete i[t]),this;if(arguments.length===0){var s=Object.keys(i),o;for(r=0;r<s.length;++r)o=s[r],o!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(n=i[t],typeof n=="function")this.removeListener(t,n);else if(n!==void 0)for(r=n.length-1;r>=0;r--)this.removeListener(t,n[r]);return this};function mu(e,t,n){var i=e._events;if(i===void 0)return[];var r=i[t];return r===void 0?[]:typeof r=="function"?n?[r.listener||r]:[r]:n?ym(r):vu(r,r.length)}ue.prototype.listeners=function(t){return mu(this,t,!0)},ue.prototype.rawListeners=function(t){return mu(this,t,!1)},ue.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):gu.call(e,t)},ue.prototype.listenerCount=gu;function gu(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}ue.prototype.eventNames=function(){return this._eventsCount>0?Ns(this._events):[]};function vu(e,t){for(var n=new Array(t),i=0;i<t;++i)n[i]=e[i];return n}function vm(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function ym(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function _m(e,t){return new Promise(function(n,i){function r(o){e.removeListener(t,s),i(o)}function s(){typeof e.removeListener=="function"&&e.removeListener("error",r),n([].slice.call(arguments))}yu(e,t,s,{once:!0}),t!=="error"&&bm(e,r,{once:!0})})}function bm(e,t,n){typeof e.on=="function"&&yu(e,"error",t,n)}function yu(e,t,n,i){if(typeof e.on=="function")i.once?e.once(t,n):e.on(t,n);else if(typeof e.addEventListener=="function")e.addEventListener(t,function r(s){i.once&&e.removeEventListener(t,r),n(s)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}class xm{events;constructor(){this.events={}}on(t,n){this.events[t]||(this.events[t]=[]),this.events[t].push(n)}addListener(t,n){this.on(t,n)}prependListener(t,n){this.events[t]||(this.events[t]=[]),this.events[t].unshift(n)}removeListener(t,n){this.events[t]&&(this.events[t]=this.events[t].filter(i=>i!==n))}off(t,n){this.removeListener(t,n)}removeAllListeners(t){t?this.events[t]=[]:this.events={}}emit(t,...n){this.events[t]&&this.events[t].forEach(i=>{Reflect.apply(i,this,n)})}once(t,n){const r=(()=>{let s=!1;return(...o)=>{s||(s=!0,Reflect.apply(n,this,o),this.off(t,r))}})();this.on(t,r)}}var _u=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function wm(e,t={}){var n=1,i=1;function r(at){var mt=at.match(/\n/g);mt&&(n+=mt.length);var S=at.lastIndexOf(`
41
+ `);i=~S?at.length-S:i+at.length}function s(){var at={line:n,column:i};return function(mt){return mt.position=new o(at),N(),mt}}function o(at){this.start=at,this.end={line:n,column:i},this.source=t.source}o.prototype.content=e;var a=[];function l(at){var mt=new Error(t.source+":"+n+":"+i+": "+at);if(mt.reason=at,mt.filename=t.source,mt.line=n,mt.column=i,mt.source=e,t.silent)a.push(mt);else throw mt}function p(){var at=d();return{type:"stylesheet",stylesheet:{source:t.source,rules:at,parsingErrors:a}}}function m(){return _(/^{\s*/)}function g(){return _(/^}/)}function d(){var at,mt=[];for(N(),C(mt);e.length&&e.charAt(0)!="}"&&(at=Ot()||W());)at!==!1&&(mt.push(at),C(mt));return mt}function _(at){var mt=at.exec(e);if(mt){var S=mt[0];return r(S),e=e.slice(S.length),mt}}function N(){_(/^\s*/)}function C(at){var mt;for(at=at||[];mt=M();)mt!==!1&&at.push(mt);return at}function M(){var at=s();if(!(e.charAt(0)!="/"||e.charAt(1)!="*")){for(var mt=2;e.charAt(mt)!=""&&(e.charAt(mt)!="*"||e.charAt(mt+1)!="/");)++mt;if(mt+=2,e.charAt(mt-1)==="")return l("End of comment missing");var S=e.slice(2,mt-2);return i+=2,r(S),e=e.slice(mt),i+=2,at({type:"comment",comment:S})}}function z(){var at=_(/^([^{]+)/);if(at)return Dn(at[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(mt){return mt.replace(/,/g,"‌")}).split(/\s*(?![^(]*\)),\s*/).map(function(mt){return mt.replace(/\u200C/g,",")})}function P(){var at=s(),mt=_(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(mt){if(mt=Dn(mt[0]),!_(/^:\s*/))return l("property missing ':'");var S=_(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),w=at({type:"declaration",property:mt.replace(_u,""),value:S?Dn(S[0]).replace(_u,""):""});return _(/^[;\s]*/),w}}function $(){var at=[];if(!m())return l("missing '{'");C(at);for(var mt;mt=P();)mt!==!1&&(at.push(mt),C(at));return g()?at:l("missing '}'")}function H(){for(var at,mt=[],S=s();at=_(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)mt.push(at[1]),_(/^,\s*/);if(mt.length)return S({type:"keyframe",values:mt,declarations:$()})}function Y(){var at=s(),mt=_(/^@([-\w]+)?keyframes\s*/);if(mt){var S=mt[1];if(mt=_(/^([-\w]+)\s*/),!mt)return l("@keyframes missing name");var w=mt[1];if(!m())return l("@keyframes missing '{'");for(var x,I=C();x=H();)I.push(x),I=I.concat(C());return g()?at({type:"keyframes",name:w,vendor:S,keyframes:I}):l("@keyframes missing '}'")}}function J(){var at=s(),mt=_(/^@supports *([^{]+)/);if(mt){var S=Dn(mt[1]);if(!m())return l("@supports missing '{'");var w=C().concat(d());return g()?at({type:"supports",supports:S,rules:w}):l("@supports missing '}'")}}function V(){var at=s(),mt=_(/^@host\s*/);if(mt){if(!m())return l("@host missing '{'");var S=C().concat(d());return g()?at({type:"host",rules:S}):l("@host missing '}'")}}function ht(){var at=s(),mt=_(/^@media *([^{]+)/);if(mt){var S=Dn(mt[1]);if(!m())return l("@media missing '{'");var w=C().concat(d());return g()?at({type:"media",media:S,rules:w}):l("@media missing '}'")}}function _t(){var at=s(),mt=_(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(mt)return at({type:"custom-media",name:Dn(mt[1]),media:Dn(mt[2])})}function Pt(){var at=s(),mt=_(/^@page */);if(mt){var S=z()||[];if(!m())return l("@page missing '{'");for(var w=C(),x;x=P();)w.push(x),w=w.concat(C());return g()?at({type:"page",selectors:S,declarations:w}):l("@page missing '}'")}}function Et(){var at=s(),mt=_(/^@([-\w]+)?document *([^{]+)/);if(mt){var S=Dn(mt[1]),w=Dn(mt[2]);if(!m())return l("@document missing '{'");var x=C().concat(d());return g()?at({type:"document",document:w,vendor:S,rules:x}):l("@document missing '}'")}}function vt(){var at=s(),mt=_(/^@font-face\s*/);if(mt){if(!m())return l("@font-face missing '{'");for(var S=C(),w;w=P();)S.push(w),S=S.concat(C());return g()?at({type:"font-face",declarations:S}):l("@font-face missing '}'")}}var It=jt("import"),kt=jt("charset"),Ut=jt("namespace");function jt(at){var mt=new RegExp("^@"+at+"\\s*([^;]+);");return function(){var S=s(),w=_(mt);if(w){var x={type:at};return x[at]=w[1].trim(),S(x)}}}function Ot(){if(e[0]=="@")return Y()||ht()||_t()||J()||It()||kt()||Ut()||Et()||Pt()||V()||vt()}function W(){var at=s(),mt=z();return mt?(C(),at({type:"rule",selectors:mt,declarations:$()})):l("selector missing")}return sa(p())}function Dn(e){return e?e.replace(/^\s+|\s+$/g,""):""}function sa(e,t){var n=e&&typeof e.type=="string",i=n?e:t;for(var r in e){var s=e[r];Array.isArray(s)?s.forEach(function(o){sa(o,i)}):s&&typeof s=="object"&&sa(s,i)}return n&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}const Or=/^[a-z0-9]+(-[a-z0-9]+)*$/,Ps=(e,t,n,i="")=>{const r=e.split(":");if(e.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;i=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const a=r.pop(),l=r.pop(),p={provider:r.length>0?r[0]:i,prefix:l,name:a};return t&&!Is(p)?null:p}const s=r[0],o=s.split("-");if(o.length>1){const a={provider:i,prefix:o.shift(),name:o.join("-")};return t&&!Is(a)?null:a}if(n&&i===""){const a={provider:i,prefix:"",name:s};return t&&!Is(a,n)?null:a}return null},Is=(e,t)=>e?!!((e.provider===""||e.provider.match(Or))&&(t&&e.prefix===""||e.prefix.match(Or))&&e.name.match(Or)):!1,bu=Object.freeze({left:0,top:0,width:16,height:16}),Ms=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),As=Object.freeze({...bu,...Ms}),oa=Object.freeze({...As,body:"",hidden:!1});function Em(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const i=((e.rotate||0)+(t.rotate||0))%4;return i&&(n.rotate=i),n}function xu(e,t){const n=Em(e,t);for(const i in oa)i in Ms?i in e&&!(i in n)&&(n[i]=Ms[i]):i in t?n[i]=t[i]:i in e&&(n[i]=e[i]);return n}function Cm(e,t){const n=e.icons,i=e.aliases||Object.create(null),r=Object.create(null);function s(o){if(n[o])return r[o]=[];if(!(o in r)){r[o]=null;const a=i[o]&&i[o].parent,l=a&&s(a);l&&(r[o]=[a].concat(l))}return r[o]}return(t||Object.keys(n).concat(Object.keys(i))).forEach(s),r}function km(e,t,n){const i=e.icons,r=e.aliases||Object.create(null);let s={};function o(a){s=xu(i[a]||r[a],s)}return o(t),n.forEach(o),xu(e,s)}function wu(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(r=>{t(r,null),n.push(r)});const i=Cm(e);for(const r in i){const s=i[r];s&&(t(r,km(e,r,s)),n.push(r))}return n}const Sm={provider:"",aliases:{},not_found:{},...bu};function aa(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Eu(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!aa(e,Sm))return null;const n=t.icons;for(const r in n){const s=n[r];if(!r.match(Or)||typeof s.body!="string"||!aa(s,oa))return null}const i=t.aliases||Object.create(null);for(const r in i){const s=i[r],o=s.parent;if(!r.match(Or)||typeof o!="string"||!n[o]&&!i[o]||!aa(s,oa))return null}return t}const Cu=Object.create(null);function Tm(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function ki(e,t){const n=Cu[e]||(Cu[e]=Object.create(null));return n[t]||(n[t]=Tm(e,t))}function la(e,t){return Eu(t)?wu(t,(n,i)=>{i?e.icons[n]=i:e.missing.add(n)}):[]}function Nm(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let Pr=!1;function ku(e){return typeof e=="boolean"&&(Pr=e),Pr}function Om(e){const t=typeof e=="string"?Ps(e,!0,Pr):e;if(t){const n=ki(t.provider,t.prefix),i=t.name;return n.icons[i]||(n.missing.has(i)?null:void 0)}}function Pm(e,t){const n=Ps(e,!0,Pr);if(!n)return!1;const i=ki(n.provider,n.prefix);return Nm(i,n.name,t)}function Im(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Pr&&!t&&!e.prefix){let r=!1;return Eu(e)&&(e.prefix="",wu(e,(s,o)=>{o&&Pm(s,o)&&(r=!0)})),r}const n=e.prefix;if(!Is({provider:t,prefix:n,name:"a"}))return!1;const i=ki(t,n);return!!la(i,e)}const Su=Object.freeze({width:null,height:null}),Tu=Object.freeze({...Su,...Ms}),Mm=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Am=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Nu(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const i=e.split(Mm);if(i===null||!i.length)return e;const r=[];let s=i.shift(),o=Am.test(s);for(;;){if(o){const a=parseFloat(s);isNaN(a)?r.push(s):r.push(Math.ceil(a*t*n)/n)}else r.push(s);if(s=i.shift(),s===void 0)return r.join("");o=!o}}function Dm(e,t="defs"){let n="";const i=e.indexOf("<"+t);for(;i>=0;){const r=e.indexOf(">",i),s=e.indexOf("</"+t);if(r===-1||s===-1)break;const o=e.indexOf(">",s);if(o===-1)break;n+=e.slice(r+1,s).trim(),e=e.slice(0,i).trim()+e.slice(o+1)}return{defs:n,content:e}}function Lm(e,t){return e?"<defs>"+e+"</defs>"+t:t}function $m(e,t,n){const i=Dm(e);return Lm(i.defs,t+i.content+n)}const Rm=e=>e==="unset"||e==="undefined"||e==="none";function Vm(e,t){const n={...As,...e},i={...Tu,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,i].forEach(C=>{const M=[],z=C.hFlip,P=C.vFlip;let $=C.rotate;z?P?$+=2:(M.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),M.push("scale(-1 1)"),r.top=r.left=0):P&&(M.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),M.push("scale(1 -1)"),r.top=r.left=0);let H;switch($<0&&($-=Math.floor($/4)*4),$=$%4,$){case 1:H=r.height/2+r.top,M.unshift("rotate(90 "+H.toString()+" "+H.toString()+")");break;case 2:M.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:H=r.width/2+r.left,M.unshift("rotate(-90 "+H.toString()+" "+H.toString()+")");break}$%2===1&&(r.left!==r.top&&(H=r.left,r.left=r.top,r.top=H),r.width!==r.height&&(H=r.width,r.width=r.height,r.height=H)),M.length&&(s=$m(s,'<g transform="'+M.join(" ")+'">',"</g>"))});const o=i.width,a=i.height,l=r.width,p=r.height;let m,g;o===null?(g=a===null?"1em":a==="auto"?p:a,m=Nu(g,l/p)):(m=o==="auto"?l:o,g=a===null?Nu(m,p/l):a==="auto"?p:a);const d={},_=(C,M)=>{Rm(M)||(d[C]=M.toString())};_("width",m),_("height",g);const N=[r.left,r.top,l,p];return d.viewBox=N.join(" "),{attributes:d,viewBox:N,body:s}}const Fm=/\sid="(\S+)"/g,zm="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let jm=0;function Bm(e,t=zm){const n=[];let i;for(;i=Fm.exec(e);)n.push(i[1]);if(!n.length)return e;const r="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const o=typeof t=="function"?t(s):t+(jm++).toString(),a=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+o+r+"$3")}),e=e.replace(new RegExp(r,"g"),""),e}const ca=Object.create(null);function Gm(e,t){ca[e]=t}function ua(e){return ca[e]||ca[""]}function ha(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 fa=Object.create(null),Ir=["https://api.simplesvg.com","https://api.unisvg.com"],Ds=[];for(;Ir.length>0;)Ir.length===1||Math.random()>.5?Ds.push(Ir.shift()):Ds.push(Ir.pop());fa[""]=ha({resources:["https://api.iconify.design"].concat(Ds)});function Hm(e,t){const n=ha(t);return n===null?!1:(fa[e]=n,!0)}function da(e){return fa[e]}let Ou=(()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}})();function Um(e,t){const n=da(e);if(!n)return 0;let i;if(!n.maxURL)i=0;else{let r=0;n.resources.forEach(o=>{r=Math.max(r,o.length)});const s=t+".json?icons=";i=n.maxURL-r-n.path.length-s.length}return i}function Wm(e){return e===404}const qm=(e,t,n)=>{const i=[],r=Um(e,t),s="icons";let o={type:s,provider:e,prefix:t,icons:[]},a=0;return n.forEach((l,p)=>{a+=l.length+1,a>=r&&p>0&&(i.push(o),o={type:s,provider:e,prefix:t,icons:[]},a=l.length),o.icons.push(l)}),i.push(o),i};function Ym(e){if(typeof e=="string"){const t=da(e);if(t)return t.path}return"/"}const Xm={prepare:qm,send:(e,t,n)=>{if(!Ou){n("abort",424);return}let i=Ym(t.provider);switch(t.type){case"icons":{const s=t.prefix,a=t.icons.join(","),l=new URLSearchParams({icons:a});i+=s+".json?"+l.toString();break}case"custom":{const s=t.uri;i+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let r=503;Ou(e+i).then(s=>{const o=s.status;if(o!==200){setTimeout(()=>{n(Wm(o)?"abort":"next",o)});return}return r=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",r)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",r)})}};function Km(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((r,s)=>r.provider!==s.provider?r.provider.localeCompare(s.provider):r.prefix!==s.prefix?r.prefix.localeCompare(s.prefix):r.name.localeCompare(s.name));let i={provider:"",prefix:"",name:""};return e.forEach(r=>{if(i.name===r.name&&i.prefix===r.prefix&&i.provider===r.provider)return;i=r;const s=r.provider,o=r.prefix,a=r.name,l=n[s]||(n[s]=Object.create(null)),p=l[o]||(l[o]=ki(s,o));let m;a in p.icons?m=t.loaded:o===""||p.missing.has(a)?m=t.missing:m=t.pending;const g={provider:s,prefix:o,name:a};m.push(g)}),t}function Pu(e,t){e.forEach(n=>{const i=n.loaderCallbacks;i&&(n.loaderCallbacks=i.filter(r=>r.id!==t))})}function Zm(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const i=e.provider,r=e.prefix;t.forEach(s=>{const o=s.icons,a=o.pending.length;o.pending=o.pending.filter(l=>{if(l.prefix!==r)return!0;const p=l.name;if(e.icons[p])o.loaded.push({provider:i,prefix:r,name:p});else if(e.missing.has(p))o.missing.push({provider:i,prefix:r,name:p});else return n=!0,!0;return!1}),o.pending.length!==a&&(n||Pu([e],s.id),s.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),s.abort))})}))}let Qm=0;function Jm(e,t,n){const i=Qm++,r=Pu.bind(null,n,i);if(!t.pending.length)return r;const s={id:i,icons:t,callback:e,abort:r};return n.forEach(o=>{(o.loaderCallbacks||(o.loaderCallbacks=[])).push(s)}),r}function t0(e,t=!0,n=!1){const i=[];return e.forEach(r=>{const s=typeof r=="string"?Ps(r,t,n):r;s&&i.push(s)}),i}var e0={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function n0(e,t,n,i){const r=e.resources.length,s=e.random?Math.floor(Math.random()*r):e.index;let o;if(e.random){let J=e.resources.slice(0);for(o=[];J.length>1;){const V=Math.floor(Math.random()*J.length);o.push(J[V]),J=J.slice(0,V).concat(J.slice(V+1))}o=o.concat(J)}else o=e.resources.slice(s).concat(e.resources.slice(0,s));const a=Date.now();let l="pending",p=0,m,g=null,d=[],_=[];typeof i=="function"&&_.push(i);function N(){g&&(clearTimeout(g),g=null)}function C(){l==="pending"&&(l="aborted"),N(),d.forEach(J=>{J.status==="pending"&&(J.status="aborted")}),d=[]}function M(J,V){V&&(_=[]),typeof J=="function"&&_.push(J)}function z(){return{startTime:a,payload:t,status:l,queriesSent:p,queriesPending:d.length,subscribe:M,abort:C}}function P(){l="failed",_.forEach(J=>{J(void 0,m)})}function $(){d.forEach(J=>{J.status==="pending"&&(J.status="aborted")}),d=[]}function H(J,V,ht){const _t=V!=="success";switch(d=d.filter(Pt=>Pt!==J),l){case"pending":break;case"failed":if(_t||!e.dataAfterTimeout)return;break;default:return}if(V==="abort"){m=ht,P();return}if(_t){m=ht,d.length||(o.length?Y():P());return}if(N(),$(),!e.random){const Pt=e.resources.indexOf(J.resource);Pt!==-1&&Pt!==e.index&&(e.index=Pt)}l="completed",_.forEach(Pt=>{Pt(ht)})}function Y(){if(l!=="pending")return;N();const J=o.shift();if(J===void 0){if(d.length){g=setTimeout(()=>{N(),l==="pending"&&($(),P())},e.timeout);return}P();return}const V={status:"pending",resource:J,callback:(ht,_t)=>{H(V,ht,_t)}};d.push(V),p++,g=setTimeout(Y,e.rotate),n(J,t,V.callback)}return setTimeout(Y),z}function Iu(e){const t={...e0,...e};let n=[];function i(){n=n.filter(a=>a().status==="pending")}function r(a,l,p){const m=n0(t,a,l,(g,d)=>{i(),p&&p(g,d)});return n.push(m),m}function s(a){return n.find(l=>a(l))||null}return{query:r,find:s,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:i}}function Mu(){}const pa=Object.create(null);function i0(e){if(!pa[e]){const t=da(e);if(!t)return;const n=Iu(t),i={config:t,redundancy:n};pa[e]=i}return pa[e]}function r0(e,t,n){let i,r;if(typeof e=="string"){const s=ua(e);if(!s)return n(void 0,424),Mu;r=s.send;const o=i0(e);o&&(i=o.redundancy)}else{const s=ha(e);if(s){i=Iu(s);const o=e.resources?e.resources[0]:"",a=ua(o);a&&(r=a.send)}}return!i||!r?(n(void 0,424),Mu):i.query(t,r,n)().abort}const Au="iconify2",Mr="iconify",Du=Mr+"-count",Lu=Mr+"-version",$u=36e5,s0=168,o0=50;function ma(e,t){try{return e.getItem(t)}catch{}}function ga(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Ru(e,t){try{e.removeItem(t)}catch{}}function va(e,t){return ga(e,Du,t.toString())}function ya(e){return parseInt(ma(e,Du))||0}const Ls={local:!0,session:!0},Vu={local:new Set,session:new Set};let _a=!1;function a0(e){_a=e}let $s=typeof window>"u"?{}:window;function Fu(e){const t=e+"Storage";try{if($s&&$s[t]&&typeof $s[t].length=="number")return $s[t]}catch{}Ls[e]=!1}function zu(e,t){const n=Fu(e);if(!n)return;const i=ma(n,Lu);if(i!==Au){if(i){const a=ya(n);for(let l=0;l<a;l++)Ru(n,Mr+l.toString())}ga(n,Lu,Au),va(n,0);return}const r=Math.floor(Date.now()/$u)-s0,s=a=>{const l=Mr+a.toString(),p=ma(n,l);if(typeof p=="string"){try{const m=JSON.parse(p);if(typeof m=="object"&&typeof m.cached=="number"&&m.cached>r&&typeof m.provider=="string"&&typeof m.data=="object"&&typeof m.data.prefix=="string"&&t(m,a))return!0}catch{}Ru(n,l)}};let o=ya(n);for(let a=o-1;a>=0;a--)s(a)||(a===o-1?(o--,va(n,o)):Vu[e].add(a))}function ju(){if(!_a){a0(!0);for(const e in Ls)zu(e,t=>{const n=t.data,i=t.provider,r=n.prefix,s=ki(i,r);if(!la(s,n).length)return!1;const o=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,o):o,!0})}}function l0(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const i in Ls)zu(i,r=>{const s=r.data;return r.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function c0(e,t){_a||ju();function n(i){let r;if(!Ls[i]||!(r=Fu(i)))return;const s=Vu[i];let o;if(s.size)s.delete(o=Array.from(s).shift());else if(o=ya(r),o>=o0||!va(r,o+1))return;const a={cached:Math.floor(Date.now()/$u),provider:e.provider,data:t};return ga(r,Mr+o.toString(),JSON.stringify(a))}t.lastModified&&!l0(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Bu(){}function u0(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Zm(e)}))}function h0(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:i}=e,r=e.iconsToLoad;delete e.iconsToLoad;let s;if(!r||!(s=ua(n)))return;s.prepare(n,i,r).forEach(a=>{r0(n,a,l=>{if(typeof l!="object")a.icons.forEach(p=>{e.missing.add(p)});else try{const p=la(e,l);if(!p.length)return;const m=e.pendingIcons;m&&p.forEach(g=>{m.delete(g)}),c0(e,l)}catch(p){console.error(p)}u0(e)})})}))}const f0=(e,t)=>{const n=t0(e,!0,ku()),i=Km(n);if(!i.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(i.loaded,i.missing,i.pending,Bu)}),()=>{l=!1}}const r=Object.create(null),s=[];let o,a;return i.pending.forEach(l=>{const{provider:p,prefix:m}=l;if(m===a&&p===o)return;o=p,a=m,s.push(ki(p,m));const g=r[p]||(r[p]=Object.create(null));g[m]||(g[m]=[])}),i.pending.forEach(l=>{const{provider:p,prefix:m,name:g}=l,d=ki(p,m),_=d.pendingIcons||(d.pendingIcons=new Set);_.has(g)||(_.add(g),r[p][m].push(g))}),s.forEach(l=>{const{provider:p,prefix:m}=l;r[p][m].length&&h0(l,r[p][m])}),t?Jm(t,i,s):Bu};function d0(e,t){const n={...e};for(const i in t){const r=t[i],s=typeof r;i in Su?(r===null||r&&(s==="string"||s==="number"))&&(n[i]=r):s===typeof n[i]&&(n[i]=i==="rotate"?r%4:r)}return n}const p0=/[\s,]+/;function m0(e,t){t.split(p0).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function g0(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function i(r){for(;r<0;)r+=4;return r%4}if(n===""){const r=parseInt(e);return isNaN(r)?0:i(r)}else if(n!==e){let r=0;switch(n){case"%":r=25;break;case"deg":r=90}if(r){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/r,s%1===0?i(s):0)}}return t}function v0(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const i in t)n+=" "+i+'="'+t[i]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function y0(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function _0(e){return"data:image/svg+xml,"+y0(e)}function b0(e){return'url("'+_0(e)+'")'}const Gu={...Tu,inline:!1},x0={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},w0={display:"inline-block"},ba={backgroundColor:"currentColor"},Hu={backgroundColor:"transparent"},Uu={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Wu={webkitMask:ba,mask:ba,background:Hu};for(const e in Wu){const t=Wu[e];for(const n in Uu)t[e+n]=Uu[n]}const Rs={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";Rs[e+"-flip"]=t,Rs[e.slice(0,1)+"-flip"]=t,Rs[e+"Flip"]=t});function qu(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Yu=(e,t)=>{const n=d0(Gu,t),i={...x0},r=t.mode||"svg",s={},o=t.style,a=typeof o=="object"&&!(o instanceof Array)?o:{};for(let C in t){const M=t[C];if(M!==void 0)switch(C){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[C]=M===!0||M==="true"||M===1;break;case"flip":typeof M=="string"&&m0(n,M);break;case"color":s.color=M;break;case"rotate":typeof M=="string"?n[C]=g0(M):typeof M=="number"&&(n[C]=M);break;case"ariaHidden":case"aria-hidden":M!==!0&&M!=="true"&&delete i["aria-hidden"];break;default:{const z=Rs[C];z?(M===!0||M==="true"||M===1)&&(n[z]=!0):Gu[C]===void 0&&(i[C]=M)}}}const l=Vm(e,n),p=l.attributes;if(n.inline&&(s.verticalAlign="-0.125em"),r==="svg"){i.style={...s,...a},Object.assign(i,p);let C=0,M=t.id;return typeof M=="string"&&(M=M.replace(/-/g,"_")),i.innerHTML=Bm(l.body,M?()=>M+"ID"+C++:"iconifyVue"),Bc("svg",i)}const{body:m,width:g,height:d}=e,_=r==="mask"||(r==="bg"?!1:m.indexOf("currentColor")!==-1),N=v0(m,{...p,width:g+"",height:d+""});return i.style={...s,"--svg":b0(N),width:qu(p.width),height:qu(p.height),...w0,..._?ba:Hu,...a},Bc("span",i)};if(ku(!0),Gm("",Xm),typeof document<"u"&&typeof window<"u"){ju();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(i=>{try{(typeof i!="object"||i===null||i instanceof Array||typeof i.icons!="object"||typeof i.prefix!="string"||!Im(i))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const i="IconifyProviders["+n+"] is invalid.";try{const r=t[n];if(typeof r!="object"||!r||r.resources===void 0)continue;Hm(n,r)||console.error(i)}catch{console.error(i)}}}}const E0={...As,body:""},Xu=Kt({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 n;if(typeof e!="string"||(n=Ps(e,!1,!0))===null)return this.abortLoading(),null;const i=Om(n);if(!i)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",i!==null&&(this._loadingIcon={name:e,abort:f0([n],()=>{this.counter++})})),null;this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e));const r=["iconify"];return n.prefix!==""&&r.push("iconify--"+n.prefix),n.provider!==""&&r.push("iconify--"+n.provider),{data:i,classes:r}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted||e.ssr?this.getIcon(e.icon,e.onLoad):null;if(!t)return Yu(E0,e);let n=e;return t.classes&&(n={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),Yu({...As,...t.data},n)}}),Ku=(e,t="image/svg+xml",n="utf-8")=>new Blob([e],{type:`${t};charset=${n}`}),C0=e=>new XMLSerializer().serializeToString(e),k0=(e,t="image/svg+xml",n="utf-8")=>Ku(C0(e),t,n),Zu=(e,t)=>{const n=document.createElement("a");n.style.visibility="hidden",document.body.appendChild(n),n.download=t,typeof e=="string"?n.href=e:n.href=window.URL.createObjectURL(e),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(n.href)};function Qu(){return document.compatMode=="BackCompat"?document.body:document.documentElement}function Ju(){const e=Qu();return{scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight}}function S0(){const e=Qu();return{clientTop:e.clientTop,clientLeft:e.clientLeft,clientWidth:e.clientWidth,clientHeight:e.clientHeight}}function xa(){const{clientWidth:e,clientHeight:t}=S0();return{width:e,height:t}}function T0(e){const{top:t,left:n}=e.getBoundingClientRect(),i=Ju();return{x:n+i.scrollLeft,y:t+i.scrollTop}}function N0(e){if("center"in e)return e.center;if(e.pageX&&e.pageY)return{x:e.pageX,y:e.pageY};const t=Ju();return{x:e.clientX+t.scrollLeft,y:e.clientY+t.scrollTop}}function wa(e,t){const n=N0(t),i=T0(e);return{x:n.x-i.x,y:n.y-i.y}}function th(){return typeof window<"u"?window:typeof self<"u"?self:this||{}}const O0=()=>{const e=navigator.userAgent.toLowerCase();let t="Unknown";return/mac/i.test(e)?t="macOS":/win/i.test(e)?t="Windows":/android/i.test(e)?t="Android":/iphone|ipad|ipod/i.test(e)?t="iOS":/linux/i.test(e)?t="Linux":/bsd/i.test(e)&&(t="BSD"),t.toLowerCase()};function P0(){return O0()==="macos"}function I0(){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 r=e.indexOf("rv:");return parseInt(e.substring(r+3,e.indexOf(".",r)),10)}const i=e.indexOf("Edge/");return i>0?parseInt(e.substring(i+5,e.indexOf(".",i)),10):-1}const Ea=I0()!==-1;(()=>{const e=th();return!!(e.Worker&&e.Blob&&e.Promise&&e.OffscreenCanvas&&e.OffscreenCanvasRenderingContext2D&&e.HTMLCanvasElement&&e.HTMLCanvasElement.prototype.transferControlToOffscreen&&e.URL&&e.URL.createObjectURL)})(),function(){if(!th().OffscreenCanvas)return!1;var t=new OffscreenCanvas(1,1),n=t.getContext("2d");n.fillRect(0,0,1,1);var i=t.transferToImageBitmap();try{n.createPattern(i,"no-repeat")}catch{return!1}return!0}();function M0(e){var t=document.documentElement,n=window.top===window.self?window.devicePixelRatio:1;t.dataset.dpr=n;var i=100,r=function(){var s=Math.min(t.clientWidth,e);t.dataset.width=s,t.dataset.rem=i=Math.round(100*(s/e)),t.style.fontSize=i+"px"};r(),window.rem2px=function(s){return s=parseFloat(s),s*i},window.px2rem=function(s){return s=parseFloat(s),s/i},window.addEventListener&&window.addEventListener("orientationchange"in window?"orientationchange":"resize",r,!1)}var eh={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22
42
+ * http://hammerjs.github.io/
43
+ *
44
+ * Copyright (c) 2016 Jorik Tangelder;
45
+ * Licensed under the MIT license */(function(e){(function(t,n,i,r){var s=["","webkit","Moz","MS","ms","o"],o=n.createElement("div"),a="function",l=Math.round,p=Math.abs,m=Date.now;function g(c,h,y){return setTimeout($(c,y),h)}function d(c,h,y){return Array.isArray(c)?(_(c,y[h],y),!0):!1}function _(c,h,y){var b;if(c)if(c.forEach)c.forEach(h,y);else if(c.length!==r)for(b=0;b<c.length;)h.call(y,c[b],b,c),b++;else for(b in c)c.hasOwnProperty(b)&&h.call(y,c[b],b,c)}function N(c,h,y){var b="DEPRECATED METHOD: "+h+`
46
+ `+y+` AT
47
+ `;return function(){var E=new Error("get-stack-trace"),k=E&&E.stack?E.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",L=t.console&&(t.console.warn||t.console.log);return L&&L.call(t.console,b,k),c.apply(this,arguments)}}var C;typeof Object.assign!="function"?C=function(h){if(h===r||h===null)throw new TypeError("Cannot convert undefined or null to object");for(var y=Object(h),b=1;b<arguments.length;b++){var E=arguments[b];if(E!==r&&E!==null)for(var k in E)E.hasOwnProperty(k)&&(y[k]=E[k])}return y}:C=Object.assign;var M=N(function(h,y,b){for(var E=Object.keys(y),k=0;k<E.length;)(!b||b&&h[E[k]]===r)&&(h[E[k]]=y[E[k]]),k++;return h},"extend","Use `assign`."),z=N(function(h,y){return M(h,y,!0)},"merge","Use `assign`.");function P(c,h,y){var b=h.prototype,E;E=c.prototype=Object.create(b),E.constructor=c,E._super=b,y&&C(E,y)}function $(c,h){return function(){return c.apply(h,arguments)}}function H(c,h){return typeof c==a?c.apply(h&&h[0]||r,h):c}function Y(c,h){return c===r?h:c}function J(c,h,y){_(Pt(h),function(b){c.addEventListener(b,y,!1)})}function V(c,h,y){_(Pt(h),function(b){c.removeEventListener(b,y,!1)})}function ht(c,h){for(;c;){if(c==h)return!0;c=c.parentNode}return!1}function _t(c,h){return c.indexOf(h)>-1}function Pt(c){return c.trim().split(/\s+/g)}function Et(c,h,y){if(c.indexOf&&!y)return c.indexOf(h);for(var b=0;b<c.length;){if(y&&c[b][y]==h||!y&&c[b]===h)return b;b++}return-1}function vt(c){return Array.prototype.slice.call(c,0)}function It(c,h,y){for(var b=[],E=[],k=0;k<c.length;){var L=h?c[k][h]:c[k];Et(E,L)<0&&b.push(c[k]),E[k]=L,k++}return y&&(h?b=b.sort(function(it,Z){return it[h]>Z[h]}):b=b.sort()),b}function kt(c,h){for(var y,b,E=h[0].toUpperCase()+h.slice(1),k=0;k<s.length;){if(y=s[k],b=y?y+E:h,b in c)return b;k++}return r}var Ut=1;function jt(){return Ut++}function Ot(c){var h=c.ownerDocument||c;return h.defaultView||h.parentWindow||t}var W=/mobile|tablet|ip(ad|hone|od)|android/i,at="ontouchstart"in t,mt=kt(t,"PointerEvent")!==r,S=at&&W.test(navigator.userAgent),w="touch",x="pen",I="mouse",R="kinect",j=25,F=1,rt=2,G=4,st=8,yt=1,St=2,Ft=4,O=8,D=16,B=St|Ft,X=O|D,Q=B|X,K=["x","y"],pt=["clientX","clientY"];function nt(c,h){var y=this;this.manager=c,this.callback=h,this.element=c.element,this.target=c.options.inputTarget,this.domHandler=function(b){H(c.options.enable,[c])&&y.handler(b)},this.init()}nt.prototype={handler:function(){},init:function(){this.evEl&&J(this.element,this.evEl,this.domHandler),this.evTarget&&J(this.target,this.evTarget,this.domHandler),this.evWin&&J(Ot(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&V(this.element,this.evEl,this.domHandler),this.evTarget&&V(this.target,this.evTarget,this.domHandler),this.evWin&&V(Ot(this.element),this.evWin,this.domHandler)}};function ft(c){var h,y=c.options.inputClass;return y?h=y:mt?h=on:S?h=Fn:at?h=Ki:h=Ee,new h(c,tt)}function tt(c,h,y){var b=y.pointers.length,E=y.changedPointers.length,k=h&F&&b-E===0,L=h&(G|st)&&b-E===0;y.isFirst=!!k,y.isFinal=!!L,k&&(c.session={}),y.eventType=h,bt(c,y),c.emit("hammer.input",y),c.recognize(y),c.session.prevInput=y}function bt(c,h){var y=c.session,b=h.pointers,E=b.length;y.firstInput||(y.firstInput=Vt(h)),E>1&&!y.firstMultiple?y.firstMultiple=Vt(h):E===1&&(y.firstMultiple=!1);var k=y.firstInput,L=y.firstMultiple,U=L?L.center:k.center,it=h.center=Bt(b);h.timeStamp=m(),h.deltaTime=h.timeStamp-k.timeStamp,h.angle=we(U,it),h.distance=le(U,it),Tt(y,h),h.offsetDirection=re(h.deltaX,h.deltaY);var Z=ee(h.deltaTime,h.deltaX,h.deltaY);h.overallVelocityX=Z.x,h.overallVelocityY=Z.y,h.overallVelocity=p(Z.x)>p(Z.y)?Z.x:Z.y,h.scale=L?Te(L.pointers,b):1,h.rotation=L?en(L.pointers,b):0,h.maxPointers=y.prevInput?h.pointers.length>y.prevInput.maxPointers?h.pointers.length:y.prevInput.maxPointers:h.pointers.length,Mt(y,h);var q=c.element;ht(h.srcEvent.target,q)&&(q=h.srcEvent.target),h.target=q}function Tt(c,h){var y=h.center,b=c.offsetDelta||{},E=c.prevDelta||{},k=c.prevInput||{};(h.eventType===F||k.eventType===G)&&(E=c.prevDelta={x:k.deltaX||0,y:k.deltaY||0},b=c.offsetDelta={x:y.x,y:y.y}),h.deltaX=E.x+(y.x-b.x),h.deltaY=E.y+(y.y-b.y)}function Mt(c,h){var y=c.lastInterval||h,b=h.timeStamp-y.timeStamp,E,k,L,U;if(h.eventType!=st&&(b>j||y.velocity===r)){var it=h.deltaX-y.deltaX,Z=h.deltaY-y.deltaY,q=ee(b,it,Z);k=q.x,L=q.y,E=p(q.x)>p(q.y)?q.x:q.y,U=re(it,Z),c.lastInterval=h}else E=y.velocity,k=y.velocityX,L=y.velocityY,U=y.direction;h.velocity=E,h.velocityX=k,h.velocityY=L,h.direction=U}function Vt(c){for(var h=[],y=0;y<c.pointers.length;)h[y]={clientX:l(c.pointers[y].clientX),clientY:l(c.pointers[y].clientY)},y++;return{timeStamp:m(),pointers:h,center:Bt(h),deltaX:c.deltaX,deltaY:c.deltaY}}function Bt(c){var h=c.length;if(h===1)return{x:l(c[0].clientX),y:l(c[0].clientY)};for(var y=0,b=0,E=0;E<h;)y+=c[E].clientX,b+=c[E].clientY,E++;return{x:l(y/h),y:l(b/h)}}function ee(c,h,y){return{x:h/c||0,y:y/c||0}}function re(c,h){return c===h?yt:p(c)>=p(h)?c<0?St:Ft:h<0?O:D}function le(c,h,y){y||(y=K);var b=h[y[0]]-c[y[0]],E=h[y[1]]-c[y[1]];return Math.sqrt(b*b+E*E)}function we(c,h,y){y||(y=K);var b=h[y[0]]-c[y[0]],E=h[y[1]]-c[y[1]];return Math.atan2(E,b)*180/Math.PI}function en(c,h){return we(h[1],h[0],pt)+we(c[1],c[0],pt)}function Te(c,h){return le(h[0],h[1],pt)/le(c[0],c[1],pt)}var Re={mousedown:F,mousemove:rt,mouseup:G},pn="mousedown",oe="mousemove mouseup";function Ee(){this.evEl=pn,this.evWin=oe,this.pressed=!1,nt.apply(this,arguments)}P(Ee,nt,{handler:function(h){var y=Re[h.type];y&F&&h.button===0&&(this.pressed=!0),y&rt&&h.which!==1&&(y=G),this.pressed&&(y&G&&(this.pressed=!1),this.callback(this.manager,y,{pointers:[h],changedPointers:[h],pointerType:I,srcEvent:h}))}});var Ve={pointerdown:F,pointermove:rt,pointerup:G,pointercancel:st,pointerout:st},Oi={2:w,3:x,4:I,5:R},$n="pointerdown",ri="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&($n="MSPointerDown",ri="MSPointerMove MSPointerUp MSPointerCancel");function on(){this.evEl=$n,this.evWin=ri,nt.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}P(on,nt,{handler:function(h){var y=this.store,b=!1,E=h.type.toLowerCase().replace("ms",""),k=Ve[E],L=Oi[h.pointerType]||h.pointerType,U=L==w,it=Et(y,h.pointerId,"pointerId");k&F&&(h.button===0||U)?it<0&&(y.push(h),it=y.length-1):k&(G|st)&&(b=!0),!(it<0)&&(y[it]=h,this.callback(this.manager,k,{pointers:y,changedPointers:[h],pointerType:L,srcEvent:h}),b&&y.splice(it,1))}});var Fe={touchstart:F,touchmove:rt,touchend:G,touchcancel:st},Ks="touchstart",si="touchstart touchmove touchend touchcancel";function Rn(){this.evTarget=Ks,this.evWin=si,this.started=!1,nt.apply(this,arguments)}P(Rn,nt,{handler:function(h){var y=Fe[h.type];if(y===F&&(this.started=!0),!!this.started){var b=En.call(this,h,y);y&(G|st)&&b[0].length-b[1].length===0&&(this.started=!1),this.callback(this.manager,y,{pointers:b[0],changedPointers:b[1],pointerType:w,srcEvent:h})}}});function En(c,h){var y=vt(c.touches),b=vt(c.changedTouches);return h&(G|st)&&(y=It(y.concat(b),"identifier",!0)),[y,b]}var Yi={touchstart:F,touchmove:rt,touchend:G,touchcancel:st},Vn="touchstart touchmove touchend touchcancel";function Fn(){this.evTarget=Vn,this.targetIds={},nt.apply(this,arguments)}P(Fn,nt,{handler:function(h){var y=Yi[h.type],b=Pi.call(this,h,y);b&&this.callback(this.manager,y,{pointers:b[0],changedPointers:b[1],pointerType:w,srcEvent:h})}});function Pi(c,h){var y=vt(c.touches),b=this.targetIds;if(h&(F|rt)&&y.length===1)return b[y[0].identifier]=!0,[y,y];var E,k,L=vt(c.changedTouches),U=[],it=this.target;if(k=y.filter(function(Z){return ht(Z.target,it)}),h===F)for(E=0;E<k.length;)b[k[E].identifier]=!0,E++;for(E=0;E<L.length;)b[L[E].identifier]&&U.push(L[E]),h&(G|st)&&delete b[L[E].identifier],E++;if(U.length)return[It(k.concat(U),"identifier",!0),U]}var Xi=2500,Zs=25;function Ki(){nt.apply(this,arguments);var c=$(this.handler,this);this.touch=new Fn(this.manager,c),this.mouse=new Ee(this.manager,c),this.primaryTouch=null,this.lastTouches=[]}P(Ki,nt,{handler:function(h,y,b){var E=b.pointerType==w,k=b.pointerType==I;if(!(k&&b.sourceCapabilities&&b.sourceCapabilities.firesTouchEvents)){if(E)Qs.call(this,y,b);else if(k&&zn.call(this,b))return;this.callback(h,y,b)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function Qs(c,h){c&F?(this.primaryTouch=h.changedPointers[0].identifier,Js.call(this,h)):c&(G|st)&&Js.call(this,h)}function Js(c){var h=c.changedPointers[0];if(h.identifier===this.primaryTouch){var y={x:h.clientX,y:h.clientY};this.lastTouches.push(y);var b=this.lastTouches,E=function(){var k=b.indexOf(y);k>-1&&b.splice(k,1)};setTimeout(E,Xi)}}function zn(c){for(var h=c.srcEvent.clientX,y=c.srcEvent.clientY,b=0;b<this.lastTouches.length;b++){var E=this.lastTouches[b],k=Math.abs(h-E.x),L=Math.abs(y-E.y);if(k<=Zs&&L<=Zs)return!0}return!1}var to=kt(o.style,"touchAction"),eo=to!==r,no="compute",io="auto",Zi="manipulation",jn="none",Xe="pan-x",Bn="pan-y",oi=ai();function ie(c,h){this.manager=c,this.set(h)}ie.prototype={set:function(c){c==no&&(c=this.compute()),eo&&this.manager.element.style&&oi[c]&&(this.manager.element.style[to]=c),this.actions=c.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var c=[];return _(this.manager.recognizers,function(h){H(h.options.enable,[h])&&(c=c.concat(h.getTouchAction()))}),ro(c.join(" "))},preventDefaults:function(c){var h=c.srcEvent,y=c.offsetDirection;if(this.manager.session.prevented){h.preventDefault();return}var b=this.actions,E=_t(b,jn)&&!oi[jn],k=_t(b,Bn)&&!oi[Bn],L=_t(b,Xe)&&!oi[Xe];if(E){var U=c.pointers.length===1,it=c.distance<2,Z=c.deltaTime<250;if(U&&it&&Z)return}if(!(L&&k)&&(E||k&&y&B||L&&y&X))return this.preventSrc(h)},preventSrc:function(c){this.manager.session.prevented=!0,c.preventDefault()}};function ro(c){if(_t(c,jn))return jn;var h=_t(c,Xe),y=_t(c,Bn);return h&&y?jn:h||y?h?Xe:Bn:_t(c,Zi)?Zi:io}function ai(){if(!eo)return!1;var c={},h=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(y){c[y]=h?t.CSS.supports("touch-action",y):!0}),c}var Ii=1,ze=2,Cn=4,mn=8,an=mn,Gn=16,ye=32;function Wt(c){this.options=C({},this.defaults,c||{}),this.id=jt(),this.manager=null,this.options.enable=Y(this.options.enable,!0),this.state=Ii,this.simultaneous={},this.requireFail=[]}Wt.prototype={defaults:{},set:function(c){return C(this.options,c),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(c){if(d(c,"recognizeWith",this))return this;var h=this.simultaneous;return c=li(c,this),h[c.id]||(h[c.id]=c,c.recognizeWith(this)),this},dropRecognizeWith:function(c){return d(c,"dropRecognizeWith",this)?this:(c=li(c,this),delete this.simultaneous[c.id],this)},requireFailure:function(c){if(d(c,"requireFailure",this))return this;var h=this.requireFail;return c=li(c,this),Et(h,c)===-1&&(h.push(c),c.requireFailure(this)),this},dropRequireFailure:function(c){if(d(c,"dropRequireFailure",this))return this;c=li(c,this);var h=Et(this.requireFail,c);return h>-1&&this.requireFail.splice(h,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(c){return!!this.simultaneous[c.id]},emit:function(c){var h=this,y=this.state;function b(E){h.manager.emit(E,c)}y<mn&&b(h.options.event+Br(y)),b(h.options.event),c.additionalEvent&&b(c.additionalEvent),y>=mn&&b(h.options.event+Br(y))},tryEmit:function(c){if(this.canEmit())return this.emit(c);this.state=ye},canEmit:function(){for(var c=0;c<this.requireFail.length;){if(!(this.requireFail[c].state&(ye|Ii)))return!1;c++}return!0},recognize:function(c){var h=C({},c);if(!H(this.options.enable,[this,h])){this.reset(),this.state=ye;return}this.state&(an|Gn|ye)&&(this.state=Ii),this.state=this.process(h),this.state&(ze|Cn|mn|Gn)&&this.tryEmit(h)},process:function(c){},getTouchAction:function(){},reset:function(){}};function Br(c){return c&Gn?"cancel":c&mn?"end":c&Cn?"move":c&ze?"start":""}function Qi(c){return c==D?"down":c==O?"up":c==St?"left":c==Ft?"right":""}function li(c,h){var y=h.manager;return y?y.get(c):c}function nn(){Wt.apply(this,arguments)}P(nn,Wt,{defaults:{pointers:1},attrTest:function(c){var h=this.options.pointers;return h===0||c.pointers.length===h},process:function(c){var h=this.state,y=c.eventType,b=h&(ze|Cn),E=this.attrTest(c);return b&&(y&st||!E)?h|Gn:b||E?y&G?h|mn:h&ze?h|Cn:ze:ye}});function Ke(){nn.apply(this,arguments),this.pX=null,this.pY=null}P(Ke,nn,{defaults:{event:"pan",threshold:10,pointers:1,direction:Q},getTouchAction:function(){var c=this.options.direction,h=[];return c&B&&h.push(Bn),c&X&&h.push(Xe),h},directionTest:function(c){var h=this.options,y=!0,b=c.distance,E=c.direction,k=c.deltaX,L=c.deltaY;return E&h.direction||(h.direction&B?(E=k===0?yt:k<0?St:Ft,y=k!=this.pX,b=Math.abs(c.deltaX)):(E=L===0?yt:L<0?O:D,y=L!=this.pY,b=Math.abs(c.deltaY))),c.direction=E,y&&b>h.threshold&&E&h.direction},attrTest:function(c){return nn.prototype.attrTest.call(this,c)&&(this.state&ze||!(this.state&ze)&&this.directionTest(c))},emit:function(c){this.pX=c.deltaX,this.pY=c.deltaY;var h=Qi(c.direction);h&&(c.additionalEvent=this.options.event+h),this._super.emit.call(this,c)}});function Hn(){nn.apply(this,arguments)}P(Hn,nn,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[jn]},attrTest:function(c){return this._super.attrTest.call(this,c)&&(Math.abs(c.scale-1)>this.options.threshold||this.state&ze)},emit:function(c){if(c.scale!==1){var h=c.scale<1?"in":"out";c.additionalEvent=this.options.event+h}this._super.emit.call(this,c)}});function Ji(){Wt.apply(this,arguments),this._timer=null,this._input=null}P(Ji,Wt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[io]},process:function(c){var h=this.options,y=c.pointers.length===h.pointers,b=c.distance<h.threshold,E=c.deltaTime>h.time;if(this._input=c,!b||!y||c.eventType&(G|st)&&!E)this.reset();else if(c.eventType&F)this.reset(),this._timer=g(function(){this.state=an,this.tryEmit()},h.time,this);else if(c.eventType&G)return an;return ye},reset:function(){clearTimeout(this._timer)},emit:function(c){this.state===an&&(c&&c.eventType&G?this.manager.emit(this.options.event+"up",c):(this._input.timeStamp=m(),this.manager.emit(this.options.event,this._input)))}});function tr(){nn.apply(this,arguments)}P(tr,nn,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[jn]},attrTest:function(c){return this._super.attrTest.call(this,c)&&(Math.abs(c.rotation)>this.options.threshold||this.state&ze)}});function er(){nn.apply(this,arguments)}P(er,nn,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:B|X,pointers:1},getTouchAction:function(){return Ke.prototype.getTouchAction.call(this)},attrTest:function(c){var h=this.options.direction,y;return h&(B|X)?y=c.overallVelocity:h&B?y=c.overallVelocityX:h&X&&(y=c.overallVelocityY),this._super.attrTest.call(this,c)&&h&c.offsetDirection&&c.distance>this.options.threshold&&c.maxPointers==this.options.pointers&&p(y)>this.options.velocity&&c.eventType&G},emit:function(c){var h=Qi(c.offsetDirection);h&&this.manager.emit(this.options.event+h,c),this.manager.emit(this.options.event,c)}});function ln(){Wt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}P(ln,Wt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Zi]},process:function(c){var h=this.options,y=c.pointers.length===h.pointers,b=c.distance<h.threshold,E=c.deltaTime<h.time;if(this.reset(),c.eventType&F&&this.count===0)return this.failTimeout();if(b&&E&&y){if(c.eventType!=G)return this.failTimeout();var k=this.pTime?c.timeStamp-this.pTime<h.interval:!0,L=!this.pCenter||le(this.pCenter,c.center)<h.posThreshold;this.pTime=c.timeStamp,this.pCenter=c.center,!L||!k?this.count=1:this.count+=1,this._input=c;var U=this.count%h.taps;if(U===0)return this.hasRequireFailures()?(this._timer=g(function(){this.state=an,this.tryEmit()},h.interval,this),ze):an}return ye},failTimeout:function(){return this._timer=g(function(){this.state=ye},this.options.interval,this),ye},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==an&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function cn(c,h){return h=h||{},h.recognizers=Y(h.recognizers,cn.defaults.preset),new Ai(c,h)}cn.VERSION="2.0.7",cn.defaults={domEvents:!1,touchAction:no,enable:!0,inputTarget:null,inputClass:null,preset:[[tr,{enable:!1}],[Hn,{enable:!1},["rotate"]],[er,{direction:B}],[Ke,{direction:B},["swipe"]],[ln],[ln,{event:"doubletap",taps:2},["tap"]],[Ji]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var Mi=1,Pe=2;function Ai(c,h){this.options=C({},cn.defaults,h||{}),this.options.inputTarget=this.options.inputTarget||c,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=c,this.input=ft(this),this.touchAction=new ie(this,this.options.touchAction),u(this,!0),_(this.options.recognizers,function(y){var b=this.add(new y[0](y[1]));y[2]&&b.recognizeWith(y[2]),y[3]&&b.requireFailure(y[3])},this)}Ai.prototype={set:function(c){return C(this.options,c),c.touchAction&&this.touchAction.update(),c.inputTarget&&(this.input.destroy(),this.input.target=c.inputTarget,this.input.init()),this},stop:function(c){this.session.stopped=c?Pe:Mi},recognize:function(c){var h=this.session;if(!h.stopped){this.touchAction.preventDefaults(c);var y,b=this.recognizers,E=h.curRecognizer;(!E||E&&E.state&an)&&(E=h.curRecognizer=null);for(var k=0;k<b.length;)y=b[k],h.stopped!==Pe&&(!E||y==E||y.canRecognizeWith(E))?y.recognize(c):y.reset(),!E&&y.state&(ze|Cn|mn)&&(E=h.curRecognizer=y),k++}},get:function(c){if(c instanceof Wt)return c;for(var h=this.recognizers,y=0;y<h.length;y++)if(h[y].options.event==c)return h[y];return null},add:function(c){if(d(c,"add",this))return this;var h=this.get(c.options.event);return h&&this.remove(h),this.recognizers.push(c),c.manager=this,this.touchAction.update(),c},remove:function(c){if(d(c,"remove",this))return this;if(c=this.get(c),c){var h=this.recognizers,y=Et(h,c);y!==-1&&(h.splice(y,1),this.touchAction.update())}return this},on:function(c,h){if(c!==r&&h!==r){var y=this.handlers;return _(Pt(c),function(b){y[b]=y[b]||[],y[b].push(h)}),this}},off:function(c,h){if(c!==r){var y=this.handlers;return _(Pt(c),function(b){h?y[b]&&y[b].splice(Et(y[b],h),1):delete y[b]}),this}},emit:function(c,h){this.options.domEvents&&f(c,h);var y=this.handlers[c]&&this.handlers[c].slice();if(!(!y||!y.length)){h.type=c,h.preventDefault=function(){h.srcEvent.preventDefault()};for(var b=0;b<y.length;)y[b](h),b++}},destroy:function(){this.element&&u(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function u(c,h){var y=c.element;if(y.style){var b;_(c.options.cssProps,function(E,k){b=kt(y.style,k),h?(c.oldCssProps[b]=y.style[b],y.style[b]=E):y.style[b]=c.oldCssProps[b]||""}),h||(c.oldCssProps={})}}function f(c,h){var y=n.createEvent("Event");y.initEvent(c,!0,!0),y.gesture=h,h.target.dispatchEvent(y)}C(cn,{INPUT_START:F,INPUT_MOVE:rt,INPUT_END:G,INPUT_CANCEL:st,STATE_POSSIBLE:Ii,STATE_BEGAN:ze,STATE_CHANGED:Cn,STATE_ENDED:mn,STATE_RECOGNIZED:an,STATE_CANCELLED:Gn,STATE_FAILED:ye,DIRECTION_NONE:yt,DIRECTION_LEFT:St,DIRECTION_RIGHT:Ft,DIRECTION_UP:O,DIRECTION_DOWN:D,DIRECTION_HORIZONTAL:B,DIRECTION_VERTICAL:X,DIRECTION_ALL:Q,Manager:Ai,Input:nt,TouchAction:ie,TouchInput:Fn,MouseInput:Ee,PointerEventInput:on,TouchMouseInput:Ki,SingleTouchInput:Rn,Recognizer:Wt,AttrRecognizer:nn,Tap:ln,Pan:Ke,Swipe:er,Pinch:Hn,Rotate:tr,Press:Ji,on:J,off:V,each:_,merge:z,extend:M,assign:C,inherit:P,bindFn:$,prefixed:kt});var v=typeof t<"u"?t:typeof self<"u"?self:{};v.Hammer=cn,typeof r=="function"&&r.amd?r(function(){return cn}):e.exports?e.exports=cn:t[i]=cn})(window,document,"Hammer")})(eh);var A0=eh.exports;const D0=ra(A0);function Ca(e){return e*Math.PI/180}function L0(e){return e*180/Math.PI}function $0(e,t,n,i){const r=e-n,s=t-i;return Math.sqrt(r*r+s*s)}function R0(e,t,n,i){const r=n-e,s=i-t;return Math.atan2(s,r)}function nh(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}}function ka(e,t){return Math.sqrt(e*e+t*t)}function ih(e,t){const n=ka(e,t);return{x:e/=n,y:t/=n}}class Vs{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}distanceTo(t){return $0(this.x,this.y,t.x,t.y)}angleTo(t){return R0(this.x,this.y,t.x,t.y)}velocityTo(t){return{vx:t.x-this.x,vy:t.y-this.y}}followTo(t,n=3){const i=this.angleTo(t),{x:r,y:s}=nh(i,n);this.vx=r,this.vy=s,this.nextFrame()}followAccelerationTo(t,n=.05){const i=this.angleTo(t),{x:r,y:s}=nh(i,n);this.ax=r,this.ay=s,this.nextFrame()}nextFrame(t){const n=t?.gravity??0,i=t?.friction??0;if(this.vx+=this.ax,this.vy+=this.ay,this.vy+=n,i>0){const r=Math.atan2(this.vy,this.vx);let s=Math.sqrt(this.vx*this.vx+this.vy*this.vy);s>i?s-=i:s=0,this.vx=Math.cos(r)*s,this.vy=Math.sin(r)*s}this.x+=this.vx,this.y+=this.vy}nextFrameEaseTo(t,n){const i=n?.gravity??0,r=n?.friction??1,s=n?.easing??.05,o=t.x-this.x,a=t.y-this.y;this.vx=o*s,this.vy=a*s,this.vy+=i,this.vx*=r,this.vy*=r,this.x+=this.vx,this.y+=this.vy}nextFrameSpringTo(t,n){const i=n?.gravity??0,r=n?.friction??.95,s=n?.spring??.03;(Array.isArray(t)?t:[t]).forEach(a=>{const l=a.x-this.x,p=a.y-this.y,m=l*s,g=p*s;this.vx+=m,this.vy+=g}),this.vy+=i,this.vx*=r,this.vy*=r,this.x+=this.vx,this.y+=this.vy}nextFrameSpringConnect(t,n){const i=n?.gravity??0,r=n?.friction??.95,s=n?.spring??.03,o=n?.springLength??100,a=this.angleTo(t);this.nextFrameSpringTo(new Vs({x:t.x-Math.cos(a)*o,y:t.y-Math.sin(a)*o}),{spring:s,friction:r,gravity:i})}}class V0 extends Vs{width;height;constructor(t){super(t),this.width=t.width,this.height=t.height}eq(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height}isIntersectRect(t){return!(this.x+this.width<t.x||t.x+t.width<this.x||this.y+this.height<t.y||t.y+t.height<this.y)}isContainPoint(t){return!(t.x<this.x||t.x>this.x+this.width||t.y<this.y||t.y>this.y+this.height)}toArray(){return[this.x,this.y,this.width,this.height]}clone(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height}}class ii extends Vs{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,n){this.x=t,this.y=n}eq(t){return this.x===t.x&&this.y===t.y}midPointBtw(t){return new ii({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 V0({x:this.x-this.radius,y:this.y-this.radius,width:this.radius*2,height:this.radius*2})}nextFrameCollisionTo(t){const n=t.x-this.x,i=t.y-this.y;if(Math.sqrt(n*n+i*i)<this.radius+t.radius){const o=Math.atan2(i,n),a=Math.sin(o),l=Math.cos(o),p={x:0,y:0},m=s(n,i,a,l,!0),g=s(this.vx,this.vy,a,l,!0),d=s(t.vx,t.vy,a,l,!0),_=g.x-d.x;g.x=((this.mass-t.mass)*g.x+2*t.mass*d.x)/(this.mass+t.mass),d.x=_+g.x;const N=Math.abs(g.x)+Math.abs(d.x),C=this.radius+t.radius-Math.abs(p.x-m.x);p.x+=g.x/N*C,m.x+=d.x/N*C;const M=s(p.x,p.y,a,l,!1),z=s(m.x,m.y,a,l,!1);t.x=this.x+z.x,t.y=this.y+z.y,this.x=this.x+M.x,this.y=this.y+M.y;const P=s(g.x,g.y,a,l,!1),$=s(d.x,d.y,a,l,!1);this.vx=P.x,this.vy=P.y,t.vx=$.x,t.vy=$.y}function s(o,a,l,p,m=!1){return{x:m?o*p+a*l:o*p-a*l,y:m?a*p-o*l:a*p+o*l}}}nextFrameBounce(t){const n=t.left,i=t.top,r=t.right,s=t.bottom,o=t?.bounce??-1;this.x+this.radius>r?(this.x=r-this.radius,this.vx*=o):this.x-this.radius<n&&(this.x=n+this.radius,this.vx*=o),this.y+this.radius>s?(this.y=s-this.radius,this.vy*=o):this.y-this.radius<i&&(this.y=i+this.radius,this.vy*=o)}}class F0{constructor(){}static getFormatKeyNames(t){const n=P0(),i=[];return t.ctrl&&i.push(n?"Cmd":"Ctrl"),t.shift&&i.push("Shift"),t.alt&&i.push("Alt"),typeof t.key=="string"?i.push(ru(t.key)):Array.isArray(t.key)&&(t.key.map(r=>ru(r)),i.push(...t.key)),i}static matchKeyScheme(t,n){const i=t.ctrl??!1,r=t.shift??!1,s=t.alt??!1;if(t.exact)return(i===n.metaKey||i===n.ctrlKey)&&r===n.shiftKey&&s===n.altKey;const o=[];return i&&o.push(i===n.metaKey||i===n.ctrlKey),r&&o.push(r===n.shiftKey),s&&o.push(s===n.altKey),o.every(a=>a)}static on(t,n){if(t?.key===void 0||t?.key===null)return n;const i=t?.target??window;let r=!1;const s=this.getFormatKeyNames(t),o=a=>{if(a.stopPropagation(),!r&&a.key!=="Control"&&a.key!=="Meta"&&a.key!=="Shift"&&a.key!=="Option"&&a.key!=="Alt"&&s.find(l=>l.toLowerCase()===a.key.toLowerCase())&&this.matchKeyScheme(t,a)){a.preventDefault();const l=n(a);if(typeof l!="function")return;const p=m=>{m.preventDefault(),l(m),i.removeEventListener("keyup",p)};i.addEventListener("keyup",p)}};return n.title=t?.title??"",n.formatedKeyNames=s,n.pause=()=>r=!0,n.restart=()=>r=!1,n.removeListener=()=>i.removeEventListener("keydown",o),i.addEventListener("keydown",o),n}}const rh=z0("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 z0(e,t=10){const n={},i=e.split(",");for(let r=0;r<i.length;r+=2){const s="&"+i[r+1]+";",o=parseInt(i[r],t);n[s]="&#"+o+";"}return n["\\xa0"]="&#160;",n}function Be(e,t){const n=Object.keys(t);for(let i=0;i<n.length;i++)e=e.replace(new RegExp("{"+n[i]+"}","gi"),""+t[n[i]]);return e}function Fs(e){let t,n;if(!e)throw new Error("cannot create a random attribute name for an undefined object");const i="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";t="";do for(t="",n=0;n<12;n++)t+=i[Math.floor(Math.random()*i.length)];while(e[t]);return t}function j0(e){const t={left:"start",right:"end",center:"middle",start:"start",end:"end"};return t[e]||t.start}function B0(e){const t={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return t[e]||t.alphabetic}const Ar={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 Sa{__root;__ctx;constructor(t,n){this.__root=t,this.__ctx=n}addColorStop(t,n){const i=this.__ctx.__createElement("stop");if(i.setAttribute("offset",""+t),n.indexOf("rgba")!==-1){const s=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(n);s&&(i.setAttribute("stop-color",Be("rgb({r},{g},{b})",{r:s[1],g:s[2],b:s[3]})),i.setAttribute("stop-opacity",s[4]))}else i.setAttribute("stop-color",n);this.__root.appendChild(i)}}class sh{__root;__ctx;constructor(t,n){this.__root=t,this.__ctx=n}}class zs{__document=document;__canvas;__ctx;width;height;__styleStack;__groupStack;__rootSVG;__ids;__SVGdefs;__currentElement;__currentElementsToStyle=null;constructor({canvas:t,width:n=500,height:i=500,enableMirroring:r=!1}){this.enableMirroring=r,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=n,this.height=i),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(Ar);for(let n=0,i=t.length;n<i;n++){const r=t[n];this[r]=Ar[r].canvas}}__getStyleState(){const t={},n=Object.keys(Ar);for(let i=0,r=n.length;i<r;i++){const s=n[i];t[s]=this[s]}return t}__applyStyleState(t){const n=Object.keys(t);for(let i=0,r=n.length;i<r;i++){const s=n[i];this[s]=t[s]}}__createElement(t,n={},i=!1){const r=this.__document.createElementNS("http://www.w3.org/2000/svg",t),s=Object.keys(n);i&&(r.setAttribute("fill","none"),r.setAttribute("stroke","none"));for(let o=0;o<s.length;o++){const a=s[o];r.setAttribute(a,n[a])}return r}__applyStyleToCurrentElement(t){let n=this.__currentElement;const i=this.__currentElementsToStyle;i&&(n.setAttribute(t,""),n=i.element,i.children.forEach(s=>{s.setAttribute(t,"")}));const r=Object.keys(Ar);for(let s=0;s<r.length;s++){const o=Ar[r[s]],a=this[r[s]];if(o.apply){if(a instanceof sh){if(a.__ctx)for(;a.__ctx.__SVGdefs.childNodes.length;){const l=a.__ctx.__SVGdefs.childNodes[0].getAttribute("id");this.__ids[l]=l,this.__SVGdefs.appendChild(a.__ctx.__SVGdefs.childNodes[0])}n.setAttribute(o.apply,Be("url(#{id})",{id:a.__root.getAttribute("id")}))}else if(a instanceof Sa)n.setAttribute(o.apply,Be("url(#{id})",{id:a.__root.getAttribute("id")}));else if(o.apply.indexOf(t)!==-1&&o.svg!==a)if((o.svgAttr==="stroke"||o.svgAttr==="fill")&&a.indexOf("rgba")!==-1){const p=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(a);n.setAttribute(o.svgAttr,Be("rgb({r},{g},{b})",{r:p[1],g:p[2],b:p[3]}));let m=parseFloat(p[4]);const g=this.globalAlpha;g!=null&&(m*=g),n.setAttribute(o.svgAttr+"-opacity",""+m)}else{let l=o.svgAttr;if(r[s]==="globalAlpha"&&(l=t+"-"+o.svgAttr,n.getAttribute(l)))continue;l&&n.setAttribute(l,a)}}}}__closestGroupOrSvg(t){return t=t||this.__currentElement,t.nodeName==="g"||t.nodeName==="svg"?t:this.__closestGroupOrSvg(t.parentNode)}getSerializedSvg(t){let n=new XMLSerializer().serializeToString(this.__rootSVG);if(/xmlns="http:\/\/www\.w3\.org\/2000\/svg".+xmlns="http:\/\/www\.w3\.org\/2000\/svg/gi.test(n)&&(n=n.replace('xmlns="http://www.w3.org/2000/svg','xmlns:xlink="http://www.w3.org/1999/xlink')),t){const r=Object.keys(rh);for(let s=0,o=r.length;s<o;s++){const a=r[s],l=rh[a],p=new RegExp(a,"gi");p.test(n)&&(n=n.replace(p,l))}}return n}getSvg(){return this.__rootSVG}save(){const t=this.__createElement("g"),n=this.__closestGroupOrSvg();this.__groupStack.push(n),n.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 n=this.__styleStack.pop();n&&this.__applyStyleState(n)}__addTransform(t){const n=this.__closestGroupOrSvg();if(n.childNodes.length>0){this.__currentElement.nodeName==="path"&&(this.__currentElementsToStyle||(this.__currentElementsToStyle={element:n,children:[]}),this.__currentElementsToStyle.children.push(this.__currentElement),this.__applyCurrentDefaultPath());const r=this.__createElement("g");n.appendChild(r),this.__currentElement=r}let i=this.__currentElement.getAttribute("transform");i?i+=" ":i="",i+=t,this.__currentElement.setAttribute("transform",i)}scale(t,n){n===void 0&&(n=t),this.__addTransform(Be("scale({x},{y})",{x:t,y:n}))}rotate(t){const n=t*180/Math.PI;this.__addTransform(Be("rotate({angle},{cx},{cy})",{angle:n,cx:0,cy:0}))}translate(t,n){this.__addTransform(Be("translate({x},{y})",{x:t,y:n}))}transform(t,n,i,r,s,o){this.__addTransform(Be("matrix({a},{b},{c},{d},{e},{f})",{a:t,b:n,c:i,d:r,e:s,f:o}))}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,n){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.__currentPosition={x:t,y:n},this.__addPathCommand(Be("M {x} {y}",this.__currentPosition))}closePath(){this.__currentDefaultPath&&this.__addPathCommand("Z")}lineTo(t,n){this.__currentPosition={x:t,y:n},this.__currentDefaultPath.indexOf("M")>-1?this.__addPathCommand(Be("L {x} {y}",this.__currentPosition)):this.__addPathCommand(Be("M {x} {y}",this.__currentPosition))}bezierCurveTo(t,n,i,r,s,o){this.__currentPosition={x:s,y:o},this.__addPathCommand(Be("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:t,cp1y:n,cp2x:i,cp2y:r,x:s,y:o}))}quadraticCurveTo(t,n,i,r){this.__currentPosition={x:i,y:r},this.__addPathCommand(Be("Q {cpx} {cpy} {x} {y}",{cpx:t,cpy:n,x:i,y:r}))}normalize(t){const n=Math.sqrt(t[0]*t[0]+t[1]*t[1]);return[t[0]/n,t[1]/n]}arcTo(t,n,i,r,s){const o=this.__currentPosition&&this.__currentPosition.x,a=this.__currentPosition&&this.__currentPosition.y;if(typeof o>"u"||typeof a>"u")return;if(s<0)throw new Error("IndexSizeError: The radius provided ("+s+") is negative.");if(o===t&&a===n||t===i&&n===r||s===0){this.lineTo(t,n);return}const l=this.normalize([o-t,a-n]),p=this.normalize([i-t,r-n]);if(l[0]*p[1]===l[1]*p[0]){this.lineTo(t,n);return}const m=l[0]*p[0]+l[1]*p[1],g=Math.acos(Math.abs(m)),d=this.normalize([l[0]+p[0],l[1]+p[1]]),_=s/Math.sin(g/2),N=t+_*d[0],C=n+_*d[1],M=[-l[1],l[0]],z=[p[1],-p[0]],P=function(Y){const J=Y[0];return Y[1]>=0?Math.acos(J):-Math.acos(J)},$=P(M),H=P(z);this.lineTo(N+M[0]*s,C+M[1]*s),this.arc(N,C,s,$,H)}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,n,i,r){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.moveTo(t,n),this.lineTo(t+i,n),this.lineTo(t+i,n+r),this.lineTo(t,n+r),this.lineTo(t,n),this.closePath()}fillRect(t,n,i,r){const s=this.__createElement("rect",{x:t,y:n,width:i,height:r},!0);this.__closestGroupOrSvg().appendChild(s),this.__currentElement=s,this.__applyStyleToCurrentElement("fill")}strokeRect(t,n,i,r){const s=this.__createElement("rect",{x:t,y:n,width:i,height:r},!0);this.__closestGroupOrSvg().appendChild(s),this.__currentElement=s,this.__applyStyleToCurrentElement("stroke")}__clearCanvas(){const n=this.__closestGroupOrSvg().getAttribute("transform"),i=this.__rootSVG.childNodes[1],r=i.childNodes;for(let s=r.length-1;s>=0;s--)r[s]&&i.removeChild(r[s]);this.__currentElement=i,this.__groupStack=[],n&&this.__addTransform(n)}clearRect(t,n,i,r){if(t===0&&n===0&&i===this.width&&r===this.height){this.__clearCanvas();return}const s=this.__closestGroupOrSvg(),o=this.__createElement("rect",{x:t,y:n,width:i,height:r,fill:"#FFFFFF"},!0);s.appendChild(o)}createLinearGradient(t,n,i,r){const s=this.__createElement("linearGradient",{id:Fs(this.__ids),x1:t+"px",x2:i+"px",y1:n+"px",y2:r+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(s),new Sa(s,this)}createRadialGradient(t,n,i,r,s,o){const a=this.__createElement("radialGradient",{id:Fs(this.__ids),cx:r+"px",cy:s+"px",r:o+"px",fx:t+"px",fy:n+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(a),new Sa(a,this)}__parseFont(){const n=/^\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),i={style:n[1]||"normal",size:n[4]||"10px",family:n[6]||"sans-serif",weight:n[3]||"normal",decoration:n[2]||"normal",href:null};return this.__fontUnderline==="underline"&&(i.decoration="underline"),this.__fontHref&&(i.href=this.__fontHref),i}__wrapTextLink(t,n){if(t.href){const i=this.__createElement("a");return i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.href),i.appendChild(n),i}return n}__applyText(t,n,i,r){const s=this.__parseFont(),o=this.__closestGroupOrSvg(),a=this.__createElement("text",{"font-family":s.family,"font-size":s.size,"font-style":s.style,"font-weight":s.weight,"text-decoration":s.decoration,x:n,y:i,"text-anchor":j0(this.textAlign),"dominant-baseline":B0(this.textBaseline)},!0);a.appendChild(this.__document.createTextNode(t)),this.__currentElement=a,this.__applyStyleToCurrentElement(r),o.appendChild(this.__wrapTextLink(s,a))}fillText(t,n,i){this.__applyText(t,n,i,"fill")}strokeText(t,n,i){this.__applyText(t,n,i,"stroke")}measureText(t){return this.__ctx.font=this.font,this.__ctx.measureText(t)}arc(t,n,i,r,s,o){if(r===s)return;r=r%(2*Math.PI),s=s%(2*Math.PI),r===s&&(s=(s+2*Math.PI-.001*(o?-1:1))%(2*Math.PI));const a=t+i*Math.cos(s),l=n+i*Math.sin(s),p=t+i*Math.cos(r),m=n+i*Math.sin(r),g=o?0:1;let d=0,_=s-r;_<0&&(_+=2*Math.PI),o?d=_>Math.PI?0:1:d=_>Math.PI?1:0,this.lineTo(p,m),this.__addPathCommand(Be("A {rx} {ry} {xAxisRotation} {largeArcFlag} {sweepFlag} {endX} {endY}",{rx:i,ry:i,xAxisRotation:0,largeArcFlag:d,sweepFlag:g,endX:a,endY:l})),this.__currentPosition={x:a,y:l}}clip(){const t=this.__closestGroupOrSvg(),n=this.__createElement("clipPath"),i=Fs(this.__ids),r=this.__createElement("g");this.__applyCurrentDefaultPath(),t.removeChild(this.__currentElement),n.setAttribute("id",i),n.appendChild(this.__currentElement),this.__SVGdefs.appendChild(n),t.setAttribute("clip-path",Be("url(#{id})",{id:i})),t.appendChild(r),this.__currentElement=r}drawImage(...t){let n=t[0],i,r,s,o,a=0,l=0,p,m,g,d,_,N,C,M;if(t.length===3)i=t[1],r=t[2],p=n.width,m=n.height,s=p,o=m;else if(t.length===5)i=t[1],r=t[2],s=t[3],o=t[4],p=n.width,m=n.height;else if(t.length===9)a=t[1],l=t[2],p=t[3],m=t[4],i=t[5],r=t[6],s=t[7],o=t[8];else throw new Error("Invalid number of arguments passed to drawImage: "+arguments.length);const z=this.__closestGroupOrSvg();this.__currentElement;const P="translate("+i+", "+r+")";if(n instanceof zs){if(g=n.getSvg().cloneNode(!0),g.childNodes&&g.childNodes.length>1){for(d=g.childNodes[0];d.childNodes.length;)M=d.childNodes[0].getAttribute("id"),this.__ids[M]=M,this.__SVGdefs.appendChild(d.childNodes[0]);if(_=g.childNodes[1],_){const $=_.getAttribute("transform");let H;$?H=$+" "+P:H=P,_.setAttribute("transform",H),z.appendChild(_)}}}else(n.nodeName==="CANVAS"||n.nodeName==="IMG")&&(N=this.__createElement("image"),N.setAttribute("width",s),N.setAttribute("height",o),N.setAttribute("preserveAspectRatio","none"),(a||l||p!==n.width||m!==n.height)&&(C=this.__document.createElement("canvas"),C.width=s,C.height=o,C.getContext("2d")?.drawImage(n,a,l,p,m,0,0,s,o),n=C),N.setAttribute("transform",P),N.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n.nodeName==="CANVAS"?n.toDataURL():n.getAttribute("src")),z.appendChild(N))}createPattern(t,n){const i=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),r=Fs(this.__ids);let s;return i.setAttribute("id",r),t.nodeName==="CANVAS"||t.nodeName==="IMG"?(s=this.__document.createElementNS("http://www.w3.org/2000/svg","image"),s.setAttribute("width",""+t.width),s.setAttribute("height",""+t.height),s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.nodeName==="CANVAS"?t.toDataURL():t.getAttribute("src")),i.appendChild(s),this.__SVGdefs.appendChild(i)):t instanceof zs&&(i.setAttribute("width",""+t.width),i.setAttribute("height",""+t.height),i.appendChild(t.__rootSVG.childNodes[1]),this.__SVGdefs.appendChild(i)),new sh(i,this)}setLineDash(t){t&&t.length>0?this.lineDash=t.join(","):this.lineDash=null}drawFocusRing(){}createImageData(){}getImageData(){}putImageData(){}globalCompositeOperation(){}setTransform(){}}function G0(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 oh={},Ta={exports:{}},ah;function H0(){return ah||(ah=1,function(e){(function(t){var n="0.4.0",i="hasOwnProperty",r=/[\.\/]/,s="*",o=function(){},a=function(d,_){return d-_},l,p,m={n:{}},g=function(d,_){var N=p,C=Array.prototype.slice.call(arguments,2),M=g.listeners(d),z=0,P,$=[],H={},Y=[];l=d,p=0;for(var J=0,V=M.length;J<V;J++)"zIndex"in M[J]&&($.push(M[J].zIndex),M[J].zIndex<0&&(H[M[J].zIndex]=M[J]));for($.sort(a);$[z]<0;)if(P=H[$[z++]],Y.push(P.apply(_,C)),p)return p=N,Y;for(J=0;J<V;J++)if(P=M[J],"zIndex"in P)if(P.zIndex==$[z]){if(Y.push(P.apply(_,C)),p)return p=N,Y;do if(z++,P=H[$[z]],P&&Y.push(P.apply(_,C)),p)return p=N,Y;while(P)}else H[P.zIndex]=P;else if(Y.push(P.apply(_,C)),p)return p=N,Y;return p=N,Y.length?Y:null};g.listeners=function(d){var _=d.split(r),N=m,C,M,z,P,$,H,Y,J,V=[N],ht=[];for(P=0,$=_.length;P<$;P++){for(J=[],H=0,Y=V.length;H<Y;H++)for(N=V[H].n,M=[N[_[P]],N[s]],z=2;z--;)C=M[z],C&&(J.push(C),ht=ht.concat(C.f||[]));V=J}return ht},g.on=function(d,_){for(var N=d.split(r),C=m,M=0,z=N.length;M<z;M++)C=C.n,!C[N[M]]&&(C[N[M]]={n:{}}),C=C[N[M]];for(C.f=C.f||[],M=0,z=C.f.length;M<z;M++)if(C.f[M]==_)return o;return C.f.push(_),function(P){+P==+P&&(_.zIndex=+P)}},g.stop=function(){p=1},g.nt=function(d){return d?new RegExp("(?:\\.|\\/|^)"+d+"(?:\\.|\\/|$)").test(l):l},g.unbind=function(d,_){var N=d.split(r),C,M,z,P,$,H,Y,J=[m];for(P=0,$=N.length;P<$;P++)for(H=0;H<J.length;H+=z.length-2){if(z=[H,1],C=J[H].n,N[P]!=s)C[N[P]]&&z.push(C[N[P]]);else for(M in C)C[i](M)&&z.push(C[M]);J.splice.apply(J,z)}for(P=0,$=J.length;P<$;P++)for(C=J[P];C.n;){if(_){if(C.f){for(H=0,Y=C.f.length;H<Y;H++)if(C.f[H]==_){C.f.splice(H,1);break}!C.f.length&&delete C.f}for(M in C.n)if(C.n[i](M)&&C.n[M].f){var V=C.n[M].f;for(H=0,Y=V.length;H<Y;H++)if(V[H]==_){V.splice(H,1);break}!V.length&&delete C.n[M].f}}else{delete C.f;for(M in C.n)C.n[i](M)&&C.n[M].f&&delete C.n[M].f}C=C.n}},g.once=function(d,_){var N=function(){_.apply(this,arguments),g.unbind(d,N)};return g.on(d,N)},g.version=n,g.toString=function(){return"You are running Eve "+n},e.exports?e.exports=g:t.eve=g})(pm)}(Ta)),Ta.exports}(function(e){if(typeof G0=="function")var t=H0();(function(){function n(d){var _=function(N){_.parse(N)};return _.mode="text",_.type=String(d||"html").toLowerCase(),_.textchunk="",_.raw="",_.parse=l,_.on=o,_.event=s,_.end=r,_}function i(d,_,N){d==`
48
+ `&&this.event("newline"),g[this.mode].call(this,d,_,N)}function r(){i.call(this,"eof"),this.event("eof")}function s(d,_,N){typeof t=="function"&&t("elemental."+d+"."+_,null,_,N||"",this.raw);for(var C=this.events&&this.events[d],M=C&&C.length;M--;)try{this.events[d][M](_,N||"",this.raw)}catch{}this.raw=""}function o(d,_){this.events=this.events||{},this.events[d]=this.events[d]||[],this.events[d].push(_)}function a(d,_){return d&&(d.charAt?d.charAt(_):d[_])}function l(d){d=d||Object(d);for(var _=1,N=d.length+1,C,M,z=a(d,0);_<N;_++)C=M,M=z,z=a(d,_),this.raw+=M,i.call(this,M,z,C);this._beforeEnd=function(){i.call(this,"","",M)}}var p=/[\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]/,m=function(){for(var d in this.attr)this.attr.hasOwnProperty(d)&&this.event("attr",d,{value:this.attr[d],tagname:this.tagname,attr:this.attr})},g={text:function(d,_,N){switch(d){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+=d,this.textchunk="";break;default:this.textchunk+=d}},special:function(d,_,N){if(N=="!"&&d=="-"&&_=="-")this.mode="comment start";else{if(this.textchunk=="[CDATA"&&d=="["){this.mode="cdata",this.textchunk="";return}if(d==">"||d=="eof"){this.event("special",this.textchunk),this.mode="text",this.textchunk="";return}this.textchunk+=d}},cdata:function(d,_,N){N=="]"&&d=="]"&&_==">"?(this.mode="cdata end",this.textchunk=this.textchunk.slice(0,-1)):(d=="eof"&&g["cdata end"].call(this),this.textchunk+=d)},"cdata end":function(d,_,N){this.event("cdata",this.textchunk),this.textchunk="",this.mode="text"},"comment start":function(d,_,N){_==">"||d=="eof"?(this.event("comment",""),this.mode="comment instant end"):this.mode="comment"},"comment instant end":function(d,_,N){this.mode="text"},comment:function(d,_,N){d=="-"&&N=="-"&&_==">"?(this.mode="comment end",this.textchunk=this.textchunk.slice(0,-1)):d=="eof"?this.event("comment",this.textchunk):this.textchunk+=d},"comment end":function(d,_,N){this.event("comment",this.textchunk),this.textchunk="",this.mode="text"},declaration:function(d,_,N){d=="?"&&_==">"?this.mode="declaration end":(d=="eof"&&this.event("comment",this.textchunk),this.textchunk+=d)},"declaration end":function(d,_,N){this.event("comment",this.textchunk),this.textchunk="",this.mode="text"},"tag name start":function(d,_,N){if(d=="eof")this.event("text","<");else if(!p.test(d)){if(this.mode="tag name",d=="/"){this.mode="close tag name start";return}if(d=="!"){this.mode="special",this.textchunk="";return}if(d=="?"){this.mode="declaration";return}g[this.mode].call(this,d,_,N)}},"close tag name start":function(d,_,N){p.test(d)||(this.mode="close tag name",this.tagname="",this.nodename="",g[this.mode].call(this,d,_,N))},"close tag name":function(d,_,N){if(p.test(d))this.tagname=this.nodename;else switch(d){case">":this.event("/tag",this.tagname||this.nodename),this.mode="text";break;default:!this.tagname&&(this.nodename+=d)}},"tag name":function(d,_,N){if(p.test(d))this.tagname=this.nodename,this.nodename="",this.mode="attr start";else switch(d){case">":this.event("tag",this.nodename),this.mode="text";break;default:this.nodename+=d}},"attr start":function(d,_,N){p.test(d)||(this.mode="attr",this.nodename="",g[this.mode].call(this,d,_,N))},attr:function(d,_,N){if(p.test(d)||d=="=")this.attr[this.nodename]="",this.mode="attr value start";else switch(d){case">":this.nodename=="/"?(delete this.attr["/"],this.event("tag",this.tagname,this.attr),m.call(this),this.event("/tag",this.tagname,!0)):(this.nodename&&(this.attr[this.nodename]=""),this.event("tag",this.tagname,this.attr),m.call(this)),this.mode="text";break;default:this.nodename+=d}},"attr value start":function(d,_,N){if(!p.test(d)){if(this.mode="attr value",this.quote=!1,d=="'"||d=='"'){this.quote=d;return}g[this.mode].call(this,d,_,N)}},"attr value":function(d,_,N){if(p.test(d)&&!this.quote)this.mode="attr start";else if(d==">"&&!this.quote)this.event("tag",this.tagname,this.attr),this.mode="text";else switch(d){case'"':case"'":this.quote==d&&N!="\\"&&(this.mode="attr start");break;default:this.attr[this.nodename]+=d}}};n.version="0.2.1",e.elemental=n,e.eve=t})()})(oh);const lh=ra(oh),ch=[1,0,0,1,0,0],uh=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];class Ge{value;matrix3d;isEverTo3d=!1;_prev_rotatex=0;_prev_rotatey=0;constructor(t=ch){this.value=Array.from(t),this.matrix3d=this.toMatrix3D()}unit(){return this.value=Array.from(ch),this.matrix3d=this.toMatrix3D(),this}transformPoint(t,n,i=0,r=0){const s=t-i,o=n-r;return t=s*this.value[0]+o*this.value[2]+this.value[4],n=s*this.value[1]+o*this.value[3]+this.value[5],[t+i,n+r]}fromString(t){const n=iu("number",t);return n.length===6?n.forEach((i,r)=>{i.fullMatch&&(this.value[r]=parseFloat(i.fullMatch))}):this.unit(),this}toMatrix3D(t=this.matrix3d){const n=[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=n,t):new ji(n)}offset(t=0,n=0){return[t-this.value[4],n-this.value[5]]}clone(){return new Ge(this.value)}multiply(t){const n=this.value;let i;t instanceof Ge?i=t.value:i=t;const r=n[0]*i[0]+n[2]*i[1],s=n[1]*i[0]+n[3]*i[1],o=n[0]*i[2]+n[2]*i[3],a=n[1]*i[2]+n[3]*i[3],l=n[0]*i[4]+n[2]*i[5]+n[4],p=n[1]*i[4]+n[3]*i[5]+n[5];return n[0]=r,n[1]=s,n[2]=o,n[3]=a,n[4]=l,n[5]=p,this}inverse(){const t=new Ge(this.value),n=t.value,i=1/(n[0]*n[3]-n[1]*n[2]),r=n[3]*i,s=-n[1]*i,o=-n[2]*i,a=n[0]*i,l=i*(n[2]*n[5]-n[3]*n[4]),p=i*(n[1]*n[4]-n[0]*n[5]);return n[0]=r,n[1]=s,n[2]=o,n[3]=a,n[4]=l,n[5]=p,t}translate(t,n){return this.matrix3d.translate(t,n,0),this.multiply([1,0,0,1,t,n])}translateTo(t,n){const i=this.offset(t,n);return this.translate(i[0],i[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,n,i){return this.isEverTo3d=!0,this.matrix3d.translate(t,n,i)}rotate(t,n=0,i=0){const r=Ca(t),s=+Math.cos(r).toFixed(9),o=+Math.sin(r).toFixed(9);return this.multiply([s,o,-o,s,n,i]),this.translate(-n,-i),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,n,i){return this.isEverTo3d=!0,this.matrix3d.rotate("x",t).rotate("y",n).rotate("z",i)}scale(t,n=t,i=0,r=0){return this.matrix3d.scale(t,n,1),this.translate(i,r),this.multiply([t,0,0,n,0,0]),this.translate(-i,-r),this}scaleTo(t,n=t){return this.scale(t/this.value[0],n/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,n,i){return this.isEverTo3d=!0,this.matrix3d.scale(t,n,i)}skew(t,n=0){const i=t*Math.PI/180,r=n*Math.PI/180,s=Math.tan(i),o=Math.tan(r);return this.multiply([1,o,s,1,0,0])}skewX(t){return this.skew(t,0)}skewY(t){return this.skew(0,t)}skewZ(t){return this}skew3d(t,n,i){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 n=[[this.value[0],this.value[2]],[this.value[1],this.value[3]]];t.scalex=ka(n[0][0],n[0][1]);let i=ih(n[0][0],n[0][1]);n[0][0]=i.x,n[0][1]=i.y,t.shear=n[0][0]*n[1][0]+n[0][1]*n[1][1],n[1]=[n[1][0]-n[0][0]*t.shear,n[1][1]-n[0][1]*t.shear],t.scaley=ka(n[1][0],n[1][1]),i=ih(n[1][0],n[1][1]),n[1][0]=i.x,n[1][1]=i.y,t.shear/=t.scaley;const r=-n[0][1],s=n[1][1];return s<0?(t.rotate=L0(Math.acos(s)),r<0&&(t.rotate=360-t.rotate)):t.rotate=Ca(Math.asin(r)),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=>ou(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 ji{value;constructor(t=uh){this.value=Array.from(t)}unit(){return this.value=Array.from(uh),this}fromString(t){const n=iu("number",t);return n.length===16?n.forEach((i,r)=>{i.fullMatch&&(this.value[r]=parseFloat(i.fullMatch))}):this.unit(),this}toMatrix(t){const n=[this.value[0],this.value[1],this.value[4],this.value[5],this.value[12],this.value[13]];return t?(t.value=n,t):new Ge(n)}multiplyMatrix(t){const n=this.value[0],i=this.value[1],r=this.value[2],s=this.value[3],o=this.value[4],a=this.value[5],l=this.value[6],p=this.value[7],m=this.value[8],g=this.value[9],d=this.value[10],_=this.value[11],N=this.value[12],C=this.value[13],M=this.value[14],z=this.value[15],P=t.value[0],$=t.value[1],H=t.value[2],Y=t.value[3],J=P*n+$*o+H*m+Y*N,V=P*i+$*a+H*g+Y*C,ht=P*r+$*l+H*d+Y*M,_t=P*s+$*p+H*_+Y*z;return new Ge([J,V,ht,_t,0,0])}multiply(t){const n=new Ge([t.value[0],t.value[1],t.value[2],t.value[3],0,0]),i=new Ge([t.value[4],t.value[5],t.value[6],t.value[7],0,0]),r=new Ge([t.value[8],t.value[9],t.value[10],t.value[11],0,0]),s=new Ge([t.value[12],t.value[13],t.value[14],t.value[15],0,0]),o=this.multiplyMatrix(n),a=this.multiplyMatrix(i),l=this.multiplyMatrix(r),p=this.multiplyMatrix(s);return this.value[0]=o.value[0],this.value[1]=o.value[1],this.value[2]=o.value[2],this.value[3]=o.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]=p.value[0],this.value[13]=p.value[1],this.value[14]=p.value[2],this.value[15]=p.value[3],this}translate(t=0,n=0,i=0){return this.multiply(new ji([1,0,0,0,0,1,0,0,0,0,1,0,t,n,i,1]))}scale(t=1,n=1,i=1){return this.multiply(new ji([t,0,0,0,0,n,0,0,0,0,i,0,0,0,0,1]))}rotate(t,n){const i=Ca(n),r=Math.sin,s=Math.cos;let o;switch(t){case"x":o=[1,0,0,0,0,s(i),r(i),0,0,-r(i),s(i),0,0,0,0,1];break;case"y":o=[s(i),0,-r(i),0,0,1,0,0,r(i),0,s(i),0,0,0,0,1];break;case"z":o=[s(i),r(i),0,0,-r(i),s(i),0,0,0,0,1,0,0,0,0,1];break}return this.multiply(new ji(o))}toString(){return`matrix3d(${this.value.map(t=>ou(t,6)).join(",")})`}}function js(e){const t=new Ge;return e.replace(/([a-z0-9]+)\s*\(?\s*((-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)*[a-z%]*\s*,?\s*)+)\)?/gi,function(n,i,r){r.indexOf(",")>=0?r=r.split(/\s*,\s*/):r=r.split(/\s+/);const s=[];for(let o=0,a=r.length;o<a;o++)r[o].trim()&&s.push(parseFloat(""+r[o]));switch(i.toLowerCase()){case"t":case"translate":t.translate(s[0],s[1]);break;case"translatex":t.translateX(s[0]);break;case"translatey":t.translateY(s[0]);break;case"translatez":t.translateZ(s[0]);break;case"translate3d":t.translate3d(s[0],s[1],s[2]);break;case"r":case"rotate":t.rotate(s[0],s[1]??0,s[2]??0);break;case"rotatex":t.rotateX(s[0]);break;case"rotatey":t.rotateY(s[0]);break;case"rotatez":t.rotateZ(s[0]);break;case"rotate3d":t.rotate3d(s[0],s[1],s[2]);break;case"s":case"scale":t.scale(s[0],s[1]??s[0]);break;case"scalex":t.scaleX(s[0]);break;case"scaley":t.scaleY(s[0]);break;case"scalez":t.scaleZ(s[0]);break;case"scale3d":t.scale3d(s[0],s[1],s[2]);break;case"skew":t.skew(s[0],s[1]??0);break;case"skewx":t.skewX(s[0]);break;case"skewy":t.skewY(s[0]);break;case"skewz":t.skewZ(s[0]);break;case"skew3d":t.skew3d(s[0],s[1],s[2]);break;case"m":case"matrix":t.multiply([s[0],s[1],s[2],s[3],s[4],s[5]]);break;case"matrix3d":t.matrix3d.multiply(new ji(s));break}return""}),t}function Na(e,t,n,i,r,s){if(typeof r>"u"||typeof s>"u"){const o=e-n,a=t-i;return!o&&!a?0:(180+Math.atan2(-a,-o)*180/Math.PI+360)%360}else return Na(e,t,r,s)-Na(n,i,r,s)}const Xt=lh.eve,U0=lh.elemental,Bs={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 Oa(e,t,n){for(var i=(e+"").split(";"),r=/^\s+|\s+$/g,s,o=0,a=i.length;o<a;o++){var l=i[o].split(":");s=l[0].replace(r,"").replace(/[A-Z]/g,function(p){return"-"+p.toLowerCase()}),(!n||s in n)&&(t[s]=l[1].replace(r,""),n&&!n[s]&&(t[s]=parseFloat(t[s])))}}function W0(e){const t=U0(),n=[],i=[],r={};let s,o,a;const l={};function p(m,g){return function(d,_){const N={type:g||m};n.push(N);for(let C in _)Object.prototype.hasOwnProperty.call(_,C)&&Xt("rappar."+m+".attr."+C,N,_[C],C);Xt("rappar."+m+".attrend",N,_)}}return Xt.on("rappar.polygon.attr.points",function(m){this.path="M"+m+"z",Xt.stop()}),Xt.on("rappar.image.attr.xlink:href",function(m){this.src=m,Xt.stop()}),Xt.on("rappar.path.attr.d",function(m){this.path=m,Xt.stop()}),Xt.on("rappar.*.attr.transform",function(m){this.transform=js(m).toTransformString(),Xt.stop()}),Xt.on("rappar.*.attr.fill",function(m){var g=m.match(/url\(#([^)]+)\)/),d=this;g&&(g=g[1],r[g]?this.fill=r[g]:Xt.on("rappar.found."+g,function(_){d.fill=_}),Xt.stop())}),Xt.on("rappar.line.attrend",function(m){this.path="M"+[m.x1,m.y1,m.x2,m.y2]}),Xt.on("rappar.*.attrend",function(){for(var m=i.length;m--;)if(i[m]!=this){let d="",_="";for(var g in i[m])g=="transform"?d=i[m].transform:g=="class"&&l["."+i[m][g]]?_=l["."+i[m][g]].join(";")+";"+_:g=="id"&&l["#"+i[m][g]]?_=l["#"+i[m][g]].join(";")+";"+_:typeof this[g]>"u"&&(this[g]=i[m][g]);this.type&&(typeof this.transform>"u"?this.transform=d:this.transform+=d,typeof this.style>"u"?this.style=_:this.style=_+this.style,Oa(this.style,this,Bs))}}),Xt.on("rappar.*.attr.style",function(m){var g=function(){Oa(m,this,Bs),Xt.unbind("rappar.*.attrend",g)};Xt.on("rappar.*.attrend",g),Xt.stop()}),Xt.on("rappar.*.attr.*",function(m,g){g in Bs&&(this[g]=Bs[g]?m:parseFloat(m))}),Xt.on("elemental.tag.circle",p("circle")),Xt.on("elemental.tag.ellipse",p("ellipse")),Xt.on("elemental.tag.polygon",p("polygon","path")),Xt.on("elemental.tag.path",p("path")),Xt.on("elemental.tag.line",p("line","path")),Xt.on("elemental.tag.rect",p("rect")),Xt.on("elemental.tag.image",p("image")),Xt.on("elemental.tag.text",p("text")),Xt.on("elemental.text",function(m){try{const g=wm(m);for(let d of g.stylesheet.rules){for(let _ of d.selectors)l[_]=[];for(let _ of d.declarations)for(let N of d.selectors)l[N].push(`${_.property}:${_.value}`)}}catch{}}),Xt.on("elemental.tag.svg",function(m,g){let d=g.width||0,_=g.height||0;if(!d||!_){const N=g.viewBox.split(/\s+/gi);d=parseFloat(N[2])-parseFloat(N[0]),_=parseFloat(N[3])-parseFloat(N[1])}n.push({type:"viewbox",width:d,height:_})}),Xt.on("rappar.text.attrend",function(){s="",o=this,this["text-anchor"]=this["text-anchor"]||"start"}),Xt.on("elemental.text",function(m,g,d){o&&(s+=d)}),Xt.on("elemental./tag.text",function(){o.text=s,o=null}),Xt.on("elemental.tag.g",function(m,g){var d={};i.push(d);for(var _ in g)Object.prototype.hasOwnProperty.call(g,_)&&(d[_]=g[_],Xt("rappar.g.attr."+_,d,g[_],_));Xt("rappar.g.attrend",d)}),Xt.on("elemental./tag.g",function(m,g){i.pop()}),Xt.on("elemental.tag.linearGradient",function(m,g){a={id:g.id,angle:+(360+Na(g.x1,g.y1,g.x2,g.y2,g.x1+100,g.y1)).toFixed(2),stops:[]}}),Xt.on("elemental./tag.linearGradient",function(){for(var m=[a.angle],g,d=0,_=a.stops.length;d<_;d++)g=a.stops[d],d&&d!=_-1?m.push(g.color+":"+g.offset):m.push(g.color);r[a.id]=m.join("-"),Xt("rappar.found."+a.id,null,r[a.id])}),Xt.on("elemental.tag.radialGradient",function(m,g){a={id:g.id,stops:[]}}),Xt.on("elemental./tag.radialGradient",function(){for(var m=[],g,d=0,_=a.stops.length;d<_;d++)g=a.stops[d],d&&d!=_-1?m.push(g.color+":"+g.offset):m.push(g.color);r[a.id]="r"+m.join("-"),Xt("rappar.found."+a.id,null,r[a.id])}),Xt.on("elemental.tag.stop",function(m,g){var d={};g.style&&Oa(g.style,d),d.offset=d.offset||g.offset,d.color=d["stop-color"]||g["stop-color"],d.opacity=d["stop-opacity"]||g["stop-opacity"],~(d.offset+"").indexOf("%")?d.offset=parseFloat(d.offset):d.offset=parseFloat(d.offset)*100,d.offset=+d.offset.toFixed(2),a.stops.push(d)}),t(e),t.end(),n}function q0(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 Pa={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},Y0=/([astvzqmhlc])([^astvzqmhlc]*)/gi,X0=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function K0(e){const t=e.match(X0);return t?t.map(Number):[]}function Ia(e){const t=[];return e.replace(Y0,function(n,i,r){let s=i.toLowerCase();for(r=K0(r),s=="m"&&r.length>2&&(t.push([i].concat(r.splice(0,2))),s="l",i=i=="m"?"l":"L");;){if(r.length==Pa[s])return r.unshift(i),t.push(r);if(r.length<Pa[s])throw new Error("malformed path data");t.push([i].concat(r.splice(0,Pa[s])))}}),t}function Ma(e){var t=0,n=0,i=0,r=0;return e.map(function(s){s=s.slice();var o=s[0],a=o.toUpperCase();if(o!=a)switch(s[0]=a,o){case"a":s[6]+=i,s[7]+=r;break;case"v":s[1]+=r;break;case"h":s[1]+=i;break;default:for(var l=1;l<s.length;)s[l++]+=i,s[l++]+=r}switch(a){case"Z":i=t,r=n;break;case"H":i=s[1];break;case"V":r=s[1];break;case"M":i=t=s[1],r=n=s[2];break;default:i=s[s.length-2],r=s[s.length-1]}return s})}const Dr=Math.PI*2;function hh(e,t,n,i){const r=e*i-t*n<0?-1:1;let s=e*n+t*i;return s>1&&(s=1),s<-1&&(s=-1),r*Math.acos(s)}function Z0(e,t,n,i,r,s,o,a,l,p){const m=p*(e-n)/2+l*(t-i)/2,g=-l*(e-n)/2+p*(t-i)/2,d=o*o,_=a*a,N=m*m,C=g*g;let M=d*_-d*C-_*N;M<0&&(M=0),M/=d*C+_*N,M=Math.sqrt(M)*(r===s?-1:1);const z=M*o/a*g,P=M*-a/o*m,$=p*z-l*P+(e+n)/2,H=l*z+p*P+(t+i)/2,Y=(m-z)/o,J=(g-P)/a,V=(-m-z)/o,ht=(-g-P)/a,_t=hh(1,0,Y,J);let Pt=hh(Y,J,V,ht);return s===0&&Pt>0&&(Pt-=Dr),s===1&&Pt<0&&(Pt+=Dr),[$,H,_t,Pt]}function Q0(e,t){const n=1.3333333333333333*Math.tan(t/4),i=Math.cos(e),r=Math.sin(e),s=Math.cos(e+t),o=Math.sin(e+t);return[i,r,i-r*n,r+i*n,s+o*n,o-s*n,s,o]}function J0(e,t,n,i,r,s,o,a,l){const p=Math.sin(l*Dr/360),m=Math.cos(l*Dr/360),g=m*(e-n)/2+p*(t-i)/2,d=-p*(e-n)/2+m*(t-i)/2;if(g===0&&d===0)return[];if(o===0||a===0)return[];o=Math.abs(o),a=Math.abs(a);const _=g*g/(o*o)+d*d/(a*a);_>1&&(o*=Math.sqrt(_),a*=Math.sqrt(_));const N=Z0(e,t,n,i,r,s,o,a,p,m),C=[];let M=N[2],z=N[3];const P=Math.max(Math.ceil(Math.abs(z)/(Dr/4)),1);z/=P;for(let $=0;$<P;$++)C.push(Q0(M,z)),M+=z;return C.map($=>{for(let H=0;H<$.length;H+=2){let Y=$[H+0],J=$[H+1];Y*=o,J*=a;const V=m*Y-p*J,ht=p*Y+m*J;$[H+0]=V+N[0],$[H+1]=ht+N[1]}return $})}function Aa(e){for(var t,n=[],i=0,r=0,s=0,o=0,a=null,l=null,p=0,m=0,g=0,d=e.length;g<d;g++){var _=e[g],N=_[0];switch(N){case"M":s=_[1],o=_[2];break;case"A":var C=J0(p,m,_[6],_[7],_[4],_[5],_[1],_[2],_[3]);if(!C.length)continue;C=C.map(H=>{const[Y,J,V,ht,_t,Pt,Et,vt]=H;return{x1:V,y1:ht,x2:_t,y2:Pt,x:Et,y:vt}});for(var M=0,z;M<C.length;M++)z=C[M],_=["C",z.x1,z.y1,z.x2,z.y2,z.x,z.y],M<C.length-1&&n.push(_);break;case"S":var P=p,$=m;(t=="C"||t=="S")&&(P+=P-i,$+=$-r),_=["C",P,$,_[1],_[2],_[3],_[4]];break;case"T":t=="Q"||t=="T"?(a=p*2-a,l=m*2-l):(a=p,l=m),_=fh(p,m,a,l,_[1],_[2]);break;case"Q":a=_[1],l=_[2],_=fh(p,m,_[1],_[2],_[3],_[4]);break;case"L":_=Gs(p,m,_[1],_[2]);break;case"H":_=Gs(p,m,_[1],m);break;case"V":_=Gs(p,m,p,_[1]);break;case"Z":_=Gs(p,m,s,o);break}t=N,p=_[_.length-2],m=_[_.length-1],_.length>4?(i=_[_.length-4],r=_[_.length-3]):(i=p,r=m),n.push(_)}return n}function Gs(e,t,n,i){return["C",e,t,n,i,n,i]}function fh(e,t,n,i,r,s){return["C",e/3+2/3*n,t/3+2/3*i,r/3+2/3*n,s/3+2/3*i,r,s]}const tg=e=>Array.isArray(e);function Bi(e){if(!(this instanceof Bi))return new Bi(e);this._path=tg(e)?e:Ia(e),this._path=Ma(this._path),this._path=ng(this._path),this._path=eg(this._path)}Bi.prototype.at=function(e,t){return this._walk(e,t).pos},Bi.prototype.length=function(){return this._walk(null).length},Bi.prototype._walk=function(e,t){let n=[0,0],i=[0,0,0],r=[0,0],s=0;for(let m=0;m<this._path.length;m++){let g=this._path[m];if(g[0]==="M"){if(n[0]=g[1],n[1]=g[2],e===0)return{length:s,pos:n}}else if(g[0]==="C"){i[0]=r[0]=n[0],i[1]=r[1]=n[1],i[2]=s;let d=100;for(let _=0;_<=d;_++){let N=_/d,C=o(g,N),M=a(g,N);if(s+=Da(n[0],n[1],C,M),n[0]=C,n[1]=M,typeof e=="number"&&s>=e){let z=(s-e)/(s-i[2]),P=[n[0]*(1-z)+i[0]*z,n[1]*(1-z)+i[1]*z];return{length:s,pos:P}}i[0]=n[0],i[1]=n[1],i[2]=s}}else if(g[0]==="Q"){i[0]=r[0]=n[0],i[1]=r[1]=n[1],i[2]=s;let d=100;for(let _=0;_<=d;_++){let N=_/d,C=l(g,N),M=p(g,N);if(s+=Da(n[0],n[1],C,M),n[0]=C,n[1]=M,typeof e=="number"&&s>=e){let z=(s-e)/(s-i[2]),P=[n[0]*(1-z)+i[0]*z,n[1]*(1-z)+i[1]*z];return{length:s,pos:P}}i[0]=n[0],i[1]=n[1],i[2]=s}}else if(g[0]==="L"){if(i[0]=n[0],i[1]=n[1],i[2]=s,s+=Da(n[0],n[1],g[1],g[2]),n[0]=g[1],n[1]=g[2],typeof e=="number"&&s>=e){let d=(s-e)/(s-i[2]),_=[n[0]*(1-d)+i[0]*d,n[1]*(1-d)+i[1]*d];return{length:s,pos:_}}i[0]=n[0],i[1]=n[1],i[2]=s}}return{length:s,pos:n};function o(m,g){return Math.pow(1-g,3)*r[0]+3*Math.pow(1-g,2)*g*m[1]+3*(1-g)*Math.pow(g,2)*m[3]+Math.pow(g,3)*m[5]}function a(m,g){return Math.pow(1-g,3)*r[1]+3*Math.pow(1-g,2)*g*m[2]+3*(1-g)*Math.pow(g,2)*m[4]+Math.pow(g,3)*m[6]}function l(m,g){return Math.pow(1-g,2)*r[0]+2*(1-g)*g*m[1]+Math.pow(g,2)*m[3]}function p(m,g){return Math.pow(1-g,2)*r[1]+2*(1-g)*g*m[2]+Math.pow(g,2)*m[4]}};function Da(e,t,n,i){let r=e-n,s=t-i;return Math.sqrt(r*r+s*s)}function eg(e){let t,n=0,i=0,r={S:{to:"C",x:3},T:{to:"Q",x:1}};for(let s=0,o=e.length;s<o;s++){let a=e[s],l=r[a[0]];l&&(a[0]=l.to,t&&(t[0]===l.to?(n=2*t[l.x+2]-t[l.x],i=2*t[l.x+3]-t[l.x+1]):(n=t[t.length-2],i=t[t.length-1])),a.splice(1,0,n,i)),t=a}return e}function ng(e){let t=[],n=["L",0,0],i;for(let r=0,s=e.length;r<s;r++){let o=e[r];switch(o[0]){case"M":n=["L",o[1],o[2]],t.push(o);break;case"Z":t.push(n);break;case"H":i=t[t.length-1]||["L",0,0],t.push(["L",o[1],i[i.length-1]]);break;case"V":i=t[t.length-1]||["L",0,0],t.push(["L",i[i.length-2],o[1]]);break;default:t.push(o)}}return t}const La=e=>{if(typeof e=="function"||Object(e)!==e)return e;const t=new e.constructor;for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=La(e[n]));return t};function $a(e){const t=$a.ps=$a.ps||{};return t[e]?t[e].sleep=100:t[e]={sleep:100},setTimeout(()=>{for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&n!==e&&(t[n].sleep--,t[n].sleep||delete t[n])}),t[e]}function Lr(e,t,n,i){return e==null&&(e=t=n=i=0),t==null&&(t=e.y,n=e.width,i=e.height,e=e.x),{x:e,y:t,width:n,w:n,height:i,h:i,x2:e+n,y2:t+i,cx:e+n/2,cy:t+i/2,r1:Math.min(n,i)/2,r2:Math.max(n,i)/2,r0:Math.sqrt(n*n+i*i)/2,path:cg(e,t,n,i),vb:[e,t,n,i].join(" ")}}function dh(e,t,n,i,r,s,o,a,l){const p=1-l,m=p**3,g=p**2,d=l*l,_=d*l,N=m*e+g*3*l*n+p*3*l*l*r+_*o,C=m*t+g*3*l*i+p*3*l*l*s+_*a,M=e+2*l*(n-e)+d*(r-2*n+e),z=t+2*l*(i-t)+d*(s-2*i+t),P=n+2*l*(r-n)+d*(o-2*r+n),$=i+2*l*(s-i)+d*(a-2*s+i),H=p*e+l*n,Y=p*t+l*i,J=p*r+l*o,V=p*s+l*a,ht=90-Math.atan2(M-P,z-$)*180/Math.PI;return{x:N,y:C,m:{x:M,y:z},n:{x:P,y:$},start:{x:H,y:Y},end:{x:J,y:V},alpha:ht}}function ph(e,t,n,i,r,s,o,a){Array.isArray(e)||(e=[e,t,n,i,r,s,o,a]);const l=vh(...e);return Lr(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)}function ig(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height}function rg(e,t){e=Lr(e),t=Lr(t);const{x:n,y:i,width:r,height:s}=e,{x:o,y:a,width:l,height:p}=t,m=n+r/2,g=i+s/2,d=o+l/2,_=a+p/2;return Math.abs(m-d)<=(r+l)/2||Math.abs(g-_)<=(s+p)/2}function mh(e,t,n,i,r){const s=-3*t+9*n-9*i+3*r,o=e*s+6*t-12*n+6*i;return e*o-3*t+3*n}function gh(e,t,n,i,r,s,o,a,l){l==null&&(l=1),l=Math.max(0,Math.min(l,1));const p=l/2,m=12,g=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],d=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472];let _=0;for(let N=0;N<m;N++){const C=p*g[N]+p,M=mh(C,e,n,r,o),z=mh(C,t,i,s,a),P=M*M+z*z;_+=d[N]*Math.sqrt(P)}return p*_}function sg(e,t,n,i,r,s,o,a){if(Math.max(e,n)<Math.min(r,o)||Math.min(e,n)>Math.max(r,o)||Math.max(t,i)<Math.min(s,a)||Math.min(t,i)>Math.max(s,a))return;const l=(e*i-t*n)*(r-o)-(e-n)*(r*a-s*o),p=(e*i-t*n)*(s-a)-(t-i)*(r*a-s*o),m=(e-n)*(s-a)-(t-i)*(r-o);if(!m)return;const g=l/m,d=p/m,_=Number(g.toFixed(2)),N=Number(d.toFixed(2));if(!(_<Number(Math.min(e,n).toFixed(2))||_>Number(Math.max(e,n).toFixed(2))||_<Number(Math.min(r,o).toFixed(2))||_>Number(Math.max(r,o).toFixed(2))||N<Number(Math.min(t,i).toFixed(2))||N>Number(Math.max(t,i).toFixed(2))||N<Number(Math.min(s,a).toFixed(2))||N>Number(Math.max(s,a).toFixed(2))))return{x:g,y:d}}function og(e,t,n){const i=ph(e),r=ph(t);if(!rg(i,r))return n?0:[];const s=gh.apply(0,e),o=gh.apply(0,t),a=Math.ceil(s/8),l=Math.ceil(o/8),p=[],m=[],g={};let d=n?0:[];for(let _=0;_<a+1;_++){const N=dh.apply(0,e.concat(_/a));p.push({x:N.x,y:N.y,t:_/a})}for(let _=0;_<l+1;_++){const N=dh.apply(0,t.concat(_/l));m.push({x:N.x,y:N.y,t:_/l})}for(let _=0;_<a;_++)for(let N=0;N<l;N++){const C=p[_],M=p[_+1],z=m[N],P=m[N+1],$=Math.abs(M.x-C.x)<.001?"y":"x",H=Math.abs(P.x-z.x)<.001?"y":"x",Y=sg(C.x,C.y,M.x,M.y,z.x,z.y,P.x,P.y);if(Y&&g[Y.x.toFixed(4)]!==Y.y.toFixed(4)){g[Y.x.toFixed(4)]=Y.y.toFixed(4);const J=C.t+Math.abs((Y[$]-C[$])/(M[$]-C[$]))*(M.t-C.t),V=z.t+Math.abs((Y[H]-z[H])/(P[H]-z[H]))*(P.t-z.t);J>=0&&J<=1&&V>=0&&V<=1&&(n?d++:d.push({x:Y.x,y:Y.y,t1:J,t2:V}))}}return d}function ag(e,t,n){let i,r,s,o,a,l,p,m,g,d,_=n?0:[];for(let N=0,C=e.length;N<C;N++){const M=e[N];if(M[0]==="M")i=a=M[1],r=l=M[2];else{M[0]==="C"?(g=[i,r].concat(M.slice(1)),i=g[6],r=g[7]):(g=[i,r,i,r,a,l,a,l],i=a,r=l);for(let z=0,P=t.length;z<P;z++){const $=t[z];if($[0]==="M")s=p=$[1],o=m=$[2];else{$[0]==="C"?(d=[s,o].concat($.slice(1)),s=d[6],o=d[7]):(d=[s,o,s,o,p,m,p,m],s=p,o=m);const H=og(g,d,n);if(n)_+=H;else{for(let Y=0,J=H.length;Y<J;Y++)H[Y].segment1=N,H[Y].segment2=z,H[Y].bez1=g,H[Y].bez2=d;_=_.concat(H)}}}}}return _}function lg(e){const t=$a(e);if(t.bbox)return La(t.bbox);if(!e)return Lr();let n=0,i=0,r=[],s=[],o=[];for(let d=0,_=e.length;d<_;d++)if(o=e[d],o[0]==="M")n=o[1],i=o[2],r.push(n),s.push(i);else{const N=vh(n,i,o[1],o[2],o[3],o[4],o[5],o[6]);r=r.concat(N.min.x,N.max.x),s=s.concat(N.min.y,N.max.y),n=o[5],i=o[6]}const a=Math.min.apply(0,r),l=Math.min.apply(0,s),p=Math.max.apply(0,r),m=Math.max.apply(0,s),g=Lr(a,l,p-a,m-l);return t.bbox=La(g),g}function cg(e,t,n,i,r){return r?[["M",Number(e)+Number(r),t],["l",n-r*2,0],["a",r,r,0,0,1,r,r],["l",0,i-r*2],["a",r,r,0,0,1,-r,r],["l",r*2-n,0],["a",r,r,0,0,1,-r,-r],["l",0,r*2-i],["a",r,r,0,0,1,r,-r],["z"]]:[["M",e,t],["l",n,0],["l",0,i],["l",-n,0],["z"]]}function vh(e,t,n,i,r,s,o,a){const l=[],p=[[],[]];let m,g,d,_,N,C,M,z;for(let Y=0;Y<2;++Y){if(Y===0?(g=6*e-12*n+6*r,m=-3*e+9*n-9*r+3*o,d=3*n-3*e):(g=6*t-12*i+6*s,m=-3*t+9*i-9*s+3*a,d=3*i-3*t),Math.abs(m)<1e-12){if(Math.abs(g)<1e-12)continue;_=-d/g,_>0&&_<1&&l.push(_);continue}M=g*g-4*d*m,z=Math.sqrt(M),!(M<0)&&(N=(-g+z)/(2*m),N>0&&N<1&&l.push(N),C=(-g-z)/(2*m),C>0&&C<1&&l.push(C))}let P=l.length,$;const H=P;for(;P--;)_=l[P],$=1-_,p[0][P]=$*$*$*e+3*$*$*_*n+3*$*_*_*r+_*_*_*o,p[1][P]=$*$*$*t+3*$*$*_*i+3*$*_*_*s+_*_*_*a;return p[0][H]=e,p[1][H]=t,p[0][H+1]=o,p[1][H+1]=a,p[0].length=p[1].length=H+2,{min:{x:Math.min.apply(0,p[0]),y:Math.min.apply(0,p[1])},max:{x:Math.max.apply(0,p[0]),y:Math.max.apply(0,p[1])}}}function ug(e,t,n){const i=lg(e);return!(!ig(i,t,n)||ag(e,Aa([["M",t,n],["H",i.x2+10]]),1)%2!==1)}const Ra=new Map;function yh(e){if(Ra.has(e))return Ra.get(e);const t=Bi(e);return Ra.set(e,t),t}function _h(e){const t=document.createElementNS("http://www.w3.org/2000/svg","path");return t.setAttribute("d",e),t}function hg(e,t){return Ts?_h(e).getTotalLength(t):yh(e).length()}function fg(e,t){if(Ts)return _h(e).getPointAtLength(t);{const n=yh(e),[i,r]=n.at(t);return{x:i,y:r}}}let rn=null;function dg(e,t,n){if(Ts){rn||(rn=document.createElement("canvas").getContext("2d"));const i=new Path2D(e);return rn.isPointInPath(i,t,n)}else return ug(e,t,n)}function pg(e,t,n,{lineWidth:i=1,lineCap:r="butt",lineJoin:s="miter"}){if(Ts){if(rn||(rn=document.createElement("canvas").getContext("2d")),rn.isPointInStroke){rn.save(),rn.lineWidth=i,rn.lineCap=r,rn.lineJoin=s;const o=new Path2D(e),a=rn.isPointInStroke(o,t,n);return rn.restore(),a}}else return null}class Va{point;constructor(t){this.point=new ii(t)}static fromSVGPathData(t){if(t.length<3)throw new Error("Line 参数个数错误");if(t[0].toUpperCase()!=="L")throw new Error("Line command 错误");return new Va({x:t[1],y:t[2]})}toSVGPathData(){return["L",this.point.x,this.point.y]}toSVGPathD(){return"L "+this.point.toSVGPathD()}}const bh=Va;class Fa extends bh{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 Fa({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()}`}}const xh=Fa;class za extends bh{ctrlPoints=[];constructor(t){super(t),this.ctrlPoints.push(new ii({x:t.c1x,y:t.c1y})),this.ctrlPoints.push(new ii({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 za({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()}`}}const ja=za;class $r{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,n){return this.startPoint=new ii({x:t,y:n}),this}addLine(t){return this.lines.push(t),this}normalize(){let t=this.lines.reduce((i,r)=>(i+=r.toSVGPathD(),i),"");this.startPoint&&(t="M "+this.startPoint.toSVGPathD()+t),this.isClosed&&(t+="Z"),this.normalizedLines=[];const n=Aa(Ma(Ia(t)));for(let i=0,r=n.length;i<r;i++){const s=n[i];if(i==0&&s[0]=="M"){this.setStartPoint(s[1],s[2]);continue}if(i==r-1&&s[0]=="Z"){this.isClosed=!0;continue}this.normalizedLines.push(ja.fromSVGPathData(s))}return this}static fromSVGPathD(t,n){if(!q0(t))throw new Error("Not an SVG path!");const i=Aa(Ma(Ia(t)));return $r.fromSVGPathData(i,n)}static fromSVGPathData(t,n){const i=new $r;for(let s=0,o=t.length;s<o;s++){const a=t[s],l=a[0];if(s==0&&l=="M"){i.setStartPoint(a[1],a[2]);continue}if(s==o-1&&l=="Z"){i.isClosed=!0;continue}i.addLine(new ja({c1x:a[1],c1y:a[2],c2x:a[3],c2y:a[4],x:a[5],y:a[6]}))}i.normalize();const r=js(n??"");return i.transform(r)}toSVGPathD(){let t="";this.startPoint&&(t+="M "+this.startPoint.toSVGPathD());for(let n=0,i=this.normalizedLines.length;n<i;n++)t+=this.normalizedLines[n].toSVGPathD();return this.isClosed&&(t+="Z"),t}toSVGPathData(){const t=[];this.startPoint&&t.push(["M",...this.startPoint.toSVGPathData()]);for(let n=0,i=this.normalizedLines.length;n<i;n++)t.push(this.normalizedLines[n].toSVGPathData());return this.isClosed&&t.push(["Z"]),t}toCanvas(t){const n=this.normalizedLines;n.length&&(this.startPoint&&(t.beginPath(),t.moveTo(this.startPoint.x,this.startPoint.y)),n.forEach(i=>{const[r,...s]=i.toSVGPathData();r==="M"?t.moveTo(s[0],s[1]):r==="Z"?t.closePath():t.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[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 n=0,i=this.normalizedLines.length;n<i;n++){const r=this.normalizedLines[n],s=[...r.ctrlPoints,r.point];for(let o=0;o<s.length;o++){const a=s[o].x,l=s[o].y;a<t[0]&&(t[0]=a),l<t[1]&&(t[1]=l),a>t[2]&&(t[2]=a),l>t[3]&&(t[3]=l)}}}return t}get size(){const t=this.bounds;return[t[2]-t[0],t[3]-t[1]]}get center(){const[t,n,i,r]=this.bounds;return[(t+i)/2,(n+r)/2]}getTotalLength(){return hg(this.toSVGPathD())}getPointAtLength(t){return fg(this.toSVGPathD(),t)}isPointInPath(t,n){return dg(this.toSVGPathD(),t,n)}isPointInStroke(t,n,i={lineWidth:1,lineCap:"butt",lineJoin:"miter"}){return pg(this.toSVGPathD(),t,n,i)}transform(t){if(this.startPoint){const[n,i]=t.transformPoint(this.startPoint.x,this.startPoint.y);this.setStartPoint(n,i)}return this.normalizedLines=this.normalizedLines.map(n=>{const[i,...r]=n.toSVGPathData(),s=[i];for(let o=0,a=r.length;o<a;o+=2){const l=r[o],p=r[o+1],[m,g]=t.transformPoint(l,p);s.push(m,g)}return ja.fromSVGPathData(s)}),this}translate(t,n){const i=new Ge().translate(t,n);return this.transform(i)}rotate(t,n=0,i=0){const r=new Ge().rotate(t,n,i);return this.transform(r)}scale(t,n=t,i=0,r=0){const s=new Ge().scale(t,n,i,r);return this.transform(s)}skew(t,n=0){const i=new Ge().skew(t,n);return this.transform(i)}trim(){const[t,n]=this.bounds;return this.translate(-t,-n),this}static generateRosetta(t,n,i,r,s){if(s==0)throw new Error("no dividing by zero, please");const o=new $r;o.setStartPoint(t,n);const a=360/s;for(let l=0;l<s;l+=1){const p=a*l*Math.PI/180,m=t+2*i*Math.cos(p),g=n+2*i*Math.sin(p);o.addLine(new xh({x:m,y:g,rx:i,ry:r,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1})),o.addLine(new xh({x:t,y:n,rx:i,ry:r,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1}))}return o.normalize(),o}}const wh=$r;var Eh={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(window,function(){return function(n){var i={};function r(s){if(i[s])return i[s].exports;var o=i[s]={i:s,l:!1,exports:{}};return n[s].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=n,r.c=i,r.d=function(s,o,a){r.o(s,o)||Object.defineProperty(s,o,{enumerable:!0,get:a})},r.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},r.t=function(s,o){if(1&o&&(s=r(s)),8&o||4&o&&typeof s=="object"&&s&&s.__esModule)return s;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:s}),2&o&&typeof s!="string")for(var l in s)r.d(a,l,function(p){return s[p]}.bind(null,l));return a},r.n=function(s){var o=s&&s.__esModule?function(){return s.default}:function(){return s};return r.d(o,"a",o),o},r.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)},r.p="",r(r.s=1)}([function(n,i,r){var s,o;s=[r(2)],(o=function(a){function l(u){if(l.is(u,"function"))return p?u():a.on("raphael.DOMload",u);if(l.is(u,at))return l._engine.create[P](l,u.splice(0,3+l.is(u[0],W))).add(u);var f=Array.prototype.slice.call(arguments,0);if(l.is(f[f.length-1],"function")){var v=f.pop();return p?v.call(l._engine.create[P](l,f)):a.on("raphael.DOMload",function(){v.call(l._engine.create[P](l,f))})}return l._engine.create[P](l,arguments)}l.version="2.3.0",l.eve=a;var p,m,g=/[, ]+/,d={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},_=/\{(\d+)\}/g,N="hasOwnProperty",C={doc:document,win:window},M={was:Object.prototype[N].call(C.win,"Raphael"),is:C.win.Raphael},z=function(){this.ca=this.customAttributes={}},P="apply",$="concat",H="ontouchstart"in window||window.TouchEvent||window.DocumentTouch&&document instanceof DocumentTouch,Y="",J=" ",V=String,ht="split",_t="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[ht](J),Pt={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},Et=V.prototype.toLowerCase,vt=Math,It=vt.max,kt=vt.min,Ut=vt.abs,jt=vt.pow,Ot=vt.PI,W="number",at="array",mt=Object.prototype.toString,S=(l._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),w={NaN:1,Infinity:1,"-Infinity":1},x=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,I=vt.round,R=parseFloat,j=parseInt,F=V.prototype.toUpperCase,rt=l._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:""},G=l._availableAnimAttrs={blur:W,"clip-rect":"csv",cx:W,cy:W,fill:"colour","fill-opacity":W,"font-size":W,height:W,opacity:W,path:"path",r:W,rx:W,ry:W,stroke:"colour","stroke-opacity":W,"stroke-width":W,transform:"transform",width:W,x:W,y:W},st=/[\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]*/,yt={hs:1,rg:1},St=/,?([achlmqrstvxz]),?/gi,Ft=/([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,O=/([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,D=/(-?\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,B=(l._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]*([^\)]+?)\))?/,{}),X=function(u,f){return R(u)-R(f)},Q=function(u){return u},K=l._rectPath=function(u,f,v,c,h){return h?[["M",u+h,f],["l",v-2*h,0],["a",h,h,0,0,1,h,h],["l",0,c-2*h],["a",h,h,0,0,1,-h,h],["l",2*h-v,0],["a",h,h,0,0,1,-h,-h],["l",0,2*h-c],["a",h,h,0,0,1,h,-h],["z"]]:[["M",u,f],["l",v,0],["l",0,c],["l",-v,0],["z"]]},pt=function(u,f,v,c){return c==null&&(c=v),[["M",u,f],["m",0,-c],["a",v,c,0,1,1,0,2*c],["a",v,c,0,1,1,0,-2*c],["z"]]},nt=l._getPath={path:function(u){return u.attr("path")},circle:function(u){var f=u.attrs;return pt(f.cx,f.cy,f.r)},ellipse:function(u){var f=u.attrs;return pt(f.cx,f.cy,f.rx,f.ry)},rect:function(u){var f=u.attrs;return K(f.x,f.y,f.width,f.height,f.r)},image:function(u){var f=u.attrs;return K(f.x,f.y,f.width,f.height)},text:function(u){var f=u._getBBox();return K(f.x,f.y,f.width,f.height)},set:function(u){var f=u._getBBox();return K(f.x,f.y,f.width,f.height)}},ft=l.mapPath=function(u,f){if(!f)return u;var v,c,h,y,b,E,k;for(h=0,b=(u=Pi(u)).length;h<b;h++)for(y=1,E=(k=u[h]).length;y<E;y+=2)v=f.x(k[y],k[y+1]),c=f.y(k[y],k[y+1]),k[y]=v,k[y+1]=c;return u};if(l._g=C,l.type=C.win.SVGAngle||C.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML",l.type=="VML"){var tt,bt=C.doc.createElement("div");if(bt.innerHTML='<v:shape adj="1"/>',(tt=bt.firstChild).style.behavior="url(#default#VML)",!tt||typeof tt.adj!="object")return l.type=Y;bt=null}function Tt(u){if(typeof u=="function"||Object(u)!==u)return u;var f=new u.constructor;for(var v in u)u[N](v)&&(f[v]=Tt(u[v]));return f}l.svg=!(l.vml=l.type=="VML"),l._Paper=z,l.fn=m=z.prototype=l.prototype,l._id=0,l.is=function(u,f){return(f=Et.call(f))=="finite"?!w[N](+u):f=="array"?u instanceof Array:f=="null"&&u===null||f==typeof u&&u!==null||f=="object"&&u===Object(u)||f=="array"&&Array.isArray&&Array.isArray(u)||mt.call(u).slice(8,-1).toLowerCase()==f},l.angle=function(u,f,v,c,h,y){if(h==null){var b=u-v,E=f-c;return b||E?(180+180*vt.atan2(-E,-b)/Ot+360)%360:0}return l.angle(u,f,h,y)-l.angle(v,c,h,y)},l.rad=function(u){return u%360*Ot/180},l.deg=function(u){return Math.round(180*u/Ot%360*1e3)/1e3},l.snapTo=function(u,f,v){if(v=l.is(v,"finite")?v:10,l.is(u,at)){for(var c=u.length;c--;)if(Ut(u[c]-f)<=v)return u[c]}else{var h=f%(u=+u);if(h<v)return f-h;if(h>u-v)return f-h+u}return f};var Mt,Vt;l.createUUID=(Mt=/[xy]/g,Vt=function(u){var f=16*vt.random()|0;return(u=="x"?f:3&f|8).toString(16)},function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Mt,Vt).toUpperCase()}),l.setWindow=function(u){a("raphael.setWindow",l,C.win,u),C.win=u,C.doc=C.win.document,l._engine.initWin&&l._engine.initWin(C.win)};var Bt=function(u){if(l.vml){var f,v=/^\s+|\s+$/g;try{var c=new ActiveXObject("htmlfile");c.write("<body>"),c.close(),f=c.body}catch{f=createPopup().document.body}var h=f.createTextRange();Bt=Te(function(b){try{f.style.color=V(b).replace(v,Y);var E=h.queryCommandValue("ForeColor");return"#"+("000000"+(E=(255&E)<<16|65280&E|(16711680&E)>>>16).toString(16)).slice(-6)}catch{return"none"}})}else{var y=C.doc.createElement("i");y.title="Raphaël Colour Picker",y.style.display="none",C.doc.body.appendChild(y),Bt=Te(function(b){return y.style.color=b,C.doc.defaultView.getComputedStyle(y,Y).getPropertyValue("color")})}return Bt(u)},ee=function(){return"hsb("+[this.h,this.s,this.b]+")"},re=function(){return"hsl("+[this.h,this.s,this.l]+")"},le=function(){return this.hex},we=function(u,f,v){if(f==null&&l.is(u,"object")&&"r"in u&&"g"in u&&"b"in u&&(v=u.b,f=u.g,u=u.r),f==null&&l.is(u,"string")){var c=l.getRGB(u);u=c.r,f=c.g,v=c.b}return(u>1||f>1||v>1)&&(u/=255,f/=255,v/=255),[u,f,v]},en=function(u,f,v,c){var h={r:u*=255,g:f*=255,b:v*=255,hex:l.rgb(u,f,v),toString:le};return l.is(c,"finite")&&(h.opacity=c),h};function Te(u,f,v){return function c(){var h=Array.prototype.slice.call(arguments,0),y=h.join("␀"),b=c.cache=c.cache||{},E=c.count=c.count||[];return b[N](y)?(function(k,L){for(var U=0,it=k.length;U<it;U++)if(k[U]===L)return k.push(k.splice(U,1)[0])}(E,y),v?v(b[y]):b[y]):(E.length>=1e3&&delete b[E.shift()],E.push(y),b[y]=u[P](f,h),v?v(b[y]):b[y])}}l.color=function(u){var f;return l.is(u,"object")&&"h"in u&&"s"in u&&"b"in u?(f=l.hsb2rgb(u),u.r=f.r,u.g=f.g,u.b=f.b,u.hex=f.hex):l.is(u,"object")&&"h"in u&&"s"in u&&"l"in u?(f=l.hsl2rgb(u),u.r=f.r,u.g=f.g,u.b=f.b,u.hex=f.hex):(l.is(u,"string")&&(u=l.getRGB(u)),l.is(u,"object")&&"r"in u&&"g"in u&&"b"in u?(f=l.rgb2hsl(u),u.h=f.h,u.s=f.s,u.l=f.l,f=l.rgb2hsb(u),u.v=f.b):(u={hex:"none"}).r=u.g=u.b=u.h=u.s=u.v=u.l=-1),u.toString=le,u},l.hsb2rgb=function(u,f,v,c){var h,y,b,E,k;return this.is(u,"object")&&"h"in u&&"s"in u&&"b"in u&&(v=u.b,f=u.s,c=u.o,u=u.h),E=(k=v*f)*(1-Ut((u=(u*=360)%360/60)%2-1)),h=y=b=v-k,en(h+=[k,E,0,0,E,k][u=~~u],y+=[E,k,k,E,0,0][u],b+=[0,0,E,k,k,E][u],c)},l.hsl2rgb=function(u,f,v,c){var h,y,b,E,k;return this.is(u,"object")&&"h"in u&&"s"in u&&"l"in u&&(v=u.l,f=u.s,u=u.h),(u>1||f>1||v>1)&&(u/=360,f/=100,v/=100),E=(k=2*f*(v<.5?v:1-v))*(1-Ut((u=(u*=360)%360/60)%2-1)),h=y=b=v-k/2,en(h+=[k,E,0,0,E,k][u=~~u],y+=[E,k,k,E,0,0][u],b+=[0,0,E,k,k,E][u],c)},l.rgb2hsb=function(u,f,v){var c,h;return u=(v=we(u,f,v))[0],f=v[1],v=v[2],{h:(((h=(c=It(u,f,v))-kt(u,f,v))==0?null:c==u?(f-v)/h:c==f?(v-u)/h+2:(u-f)/h+4)+360)%6*60/360,s:h==0?0:h/c,b:c,toString:ee}},l.rgb2hsl=function(u,f,v){var c,h,y,b;return u=(v=we(u,f,v))[0],f=v[1],v=v[2],c=((h=It(u,f,v))+(y=kt(u,f,v)))/2,{h:(((b=h-y)==0?null:h==u?(f-v)/b:h==f?(v-u)/b+2:(u-f)/b+4)+360)%6*60/360,s:b==0?0:c<.5?b/(2*c):b/(2-2*c),l:c,toString:re}},l._path2string=function(){return this.join(",").replace(St,"$1")},l._preload=function(u,f){var v=C.doc.createElement("img");v.style.cssText="position:absolute;left:-9999em;top:-9999em",v.onload=function(){f.call(this),this.onload=null,C.doc.body.removeChild(this)},v.onerror=function(){C.doc.body.removeChild(this)},C.doc.body.appendChild(v),v.src=u};function Re(){return this.hex}function pn(u,f){for(var v=[],c=0,h=u.length;h-2*!f>c;c+=2){var y=[{x:+u[c-2],y:+u[c-1]},{x:+u[c],y:+u[c+1]},{x:+u[c+2],y:+u[c+3]},{x:+u[c+4],y:+u[c+5]}];f?c?h-4==c?y[3]={x:+u[0],y:+u[1]}:h-2==c&&(y[2]={x:+u[0],y:+u[1]},y[3]={x:+u[2],y:+u[3]}):y[0]={x:+u[h-2],y:+u[h-1]}:h-4==c?y[3]=y[2]:c||(y[0]={x:+u[c],y:+u[c+1]}),v.push(["C",(-y[0].x+6*y[1].x+y[2].x)/6,(-y[0].y+6*y[1].y+y[2].y)/6,(y[1].x+6*y[2].x-y[3].x)/6,(y[1].y+6*y[2].y-y[3].y)/6,y[2].x,y[2].y])}return v}l.getRGB=Te(function(u){if(!u||(u=V(u)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:Re};if(u=="none")return{r:-1,g:-1,b:-1,hex:"none",toString:Re};!yt[N](u.toLowerCase().substring(0,2))&&u.charAt()!="#"&&(u=Bt(u));var f,v,c,h,y,b,E=u.match(S);return E?(E[2]&&(c=j(E[2].substring(5),16),v=j(E[2].substring(3,5),16),f=j(E[2].substring(1,3),16)),E[3]&&(c=j((y=E[3].charAt(3))+y,16),v=j((y=E[3].charAt(2))+y,16),f=j((y=E[3].charAt(1))+y,16)),E[4]&&(b=E[4][ht](st),f=R(b[0]),b[0].slice(-1)=="%"&&(f*=2.55),v=R(b[1]),b[1].slice(-1)=="%"&&(v*=2.55),c=R(b[2]),b[2].slice(-1)=="%"&&(c*=2.55),E[1].toLowerCase().slice(0,4)=="rgba"&&(h=R(b[3])),b[3]&&b[3].slice(-1)=="%"&&(h/=100)),E[5]?(b=E[5][ht](st),f=R(b[0]),b[0].slice(-1)=="%"&&(f*=2.55),v=R(b[1]),b[1].slice(-1)=="%"&&(v*=2.55),c=R(b[2]),b[2].slice(-1)=="%"&&(c*=2.55),(b[0].slice(-3)=="deg"||b[0].slice(-1)=="°")&&(f/=360),E[1].toLowerCase().slice(0,4)=="hsba"&&(h=R(b[3])),b[3]&&b[3].slice(-1)=="%"&&(h/=100),l.hsb2rgb(f,v,c,h)):E[6]?(b=E[6][ht](st),f=R(b[0]),b[0].slice(-1)=="%"&&(f*=2.55),v=R(b[1]),b[1].slice(-1)=="%"&&(v*=2.55),c=R(b[2]),b[2].slice(-1)=="%"&&(c*=2.55),(b[0].slice(-3)=="deg"||b[0].slice(-1)=="°")&&(f/=360),E[1].toLowerCase().slice(0,4)=="hsla"&&(h=R(b[3])),b[3]&&b[3].slice(-1)=="%"&&(h/=100),l.hsl2rgb(f,v,c,h)):((E={r:f,g:v,b:c,toString:Re}).hex="#"+(16777216|c|v<<8|f<<16).toString(16).slice(1),l.is(h,"finite")&&(E.opacity=h),E)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:Re}},l),l.hsb=Te(function(u,f,v){return l.hsb2rgb(u,f,v).hex}),l.hsl=Te(function(u,f,v){return l.hsl2rgb(u,f,v).hex}),l.rgb=Te(function(u,f,v){function c(h){return h+.5|0}return"#"+(16777216|c(v)|c(f)<<8|c(u)<<16).toString(16).slice(1)}),l.getColor=function(u){var f=this.getColor.start=this.getColor.start||{h:0,s:1,b:u||.75},v=this.hsb2rgb(f.h,f.s,f.b);return f.h+=.075,f.h>1&&(f.h=0,f.s-=.2,f.s<=0&&(this.getColor.start={h:0,s:1,b:f.b})),v.hex},l.getColor.reset=function(){delete this.start},l.parsePathString=function(u){if(!u)return null;var f=oe(u);if(f.arr)return Fe(f.arr);var v={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},c=[];return l.is(u,at)&&l.is(u[0],at)&&(c=Fe(u)),c.length||V(u).replace(Ft,function(h,y,b){var E=[],k=y.toLowerCase();if(b.replace(D,function(L,U){U&&E.push(+U)}),k=="m"&&E.length>2&&(c.push([y][$](E.splice(0,2))),k="l",y=y=="m"?"l":"L"),k=="r")c.push([y][$](E));else for(;E.length>=v[k]&&(c.push([y][$](E.splice(0,v[k]))),v[k]););}),c.toString=l._path2string,f.arr=Fe(c),c},l.parseTransformString=Te(function(u){if(!u)return null;var f=[];return l.is(u,at)&&l.is(u[0],at)&&(f=Fe(u)),f.length||V(u).replace(O,function(v,c,h){var y=[];Et.call(c),h.replace(D,function(b,E){E&&y.push(+E)}),f.push([c][$](y))}),f.toString=l._path2string,f},this,function(u){if(!u)return u;for(var f=[],v=0;v<u.length;v++){for(var c=[],h=0;h<u[v].length;h++)c.push(u[v][h]);f.push(c)}return f});var oe=function(u){var f=oe.ps=oe.ps||{};return f[u]?f[u].sleep=100:f[u]={sleep:100},setTimeout(function(){for(var v in f)f[N](v)&&v!=u&&(f[v].sleep--,!f[v].sleep&&delete f[v])}),f[u]};function Ee(u,f,v,c,h){return u*(u*(-3*f+9*v-9*c+3*h)+6*f-12*v+6*c)-3*f+3*v}function Ve(u,f,v,c,h,y,b,E,k){k==null&&(k=1);for(var L=(k=k>1?1:k<0?0:k)/2,U=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],it=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],Z=0,q=0;q<12;q++){var ot=L*U[q]+L,ct=Ee(ot,u,v,h,b),lt=Ee(ot,f,c,y,E),et=ct*ct+lt*lt;Z+=it[q]*vt.sqrt(et)}return L*Z}function Oi(u,f,v,c,h,y,b,E){if(!(It(u,v)<kt(h,b)||kt(u,v)>It(h,b)||It(f,c)<kt(y,E)||kt(f,c)>It(y,E))){var k=(u-v)*(y-E)-(f-c)*(h-b);if(k){var L=((u*c-f*v)*(h-b)-(u-v)*(h*E-y*b))/k,U=((u*c-f*v)*(y-E)-(f-c)*(h*E-y*b))/k,it=+L.toFixed(2),Z=+U.toFixed(2);if(!(it<+kt(u,v).toFixed(2)||it>+It(u,v).toFixed(2)||it<+kt(h,b).toFixed(2)||it>+It(h,b).toFixed(2)||Z<+kt(f,c).toFixed(2)||Z>+It(f,c).toFixed(2)||Z<+kt(y,E).toFixed(2)||Z>+It(y,E).toFixed(2)))return{x:L,y:U}}}}function $n(u,f,v){var c=l.bezierBBox(u),h=l.bezierBBox(f);if(!l.isBBoxIntersect(c,h))return v?0:[];for(var y=Ve.apply(0,u),b=Ve.apply(0,f),E=It(~~(y/5),1),k=It(~~(b/5),1),L=[],U=[],it={},Z=v?0:[],q=0;q<E+1;q++){var ot=l.findDotsAtSegment.apply(l,u.concat(q/E));L.push({x:ot.x,y:ot.y,t:q/E})}for(q=0;q<k+1;q++)ot=l.findDotsAtSegment.apply(l,f.concat(q/k)),U.push({x:ot.x,y:ot.y,t:q/k});for(q=0;q<E;q++)for(var ct=0;ct<k;ct++){var lt=L[q],et=L[q+1],Nt=U[ct],ut=U[ct+1],gt=Ut(et.x-lt.x)<.001?"y":"x",dt=Ut(ut.x-Nt.x)<.001?"y":"x",qt=Oi(lt.x,lt.y,et.x,et.y,Nt.x,Nt.y,ut.x,ut.y);if(qt){if(it[qt.x.toFixed(4)]==qt.y.toFixed(4))continue;it[qt.x.toFixed(4)]=qt.y.toFixed(4);var zt=lt.t+Ut((qt[gt]-lt[gt])/(et[gt]-lt[gt]))*(et.t-lt.t),Yt=Nt.t+Ut((qt[dt]-Nt[dt])/(ut[dt]-Nt[dt]))*(ut.t-Nt.t);zt>=0&&zt<=1.001&&Yt>=0&&Yt<=1.001&&(v?Z++:Z.push({x:qt.x,y:qt.y,t1:kt(zt,1),t2:kt(Yt,1)}))}}return Z}function ri(u,f,v){u=l._path2curve(u),f=l._path2curve(f);for(var c,h,y,b,E,k,L,U,it,Z,q=v?0:[],ot=0,ct=u.length;ot<ct;ot++){var lt=u[ot];if(lt[0]=="M")c=E=lt[1],h=k=lt[2];else{lt[0]=="C"?(it=[c,h].concat(lt.slice(1)),c=it[6],h=it[7]):(it=[c,h,c,h,E,k,E,k],c=E,h=k);for(var et=0,Nt=f.length;et<Nt;et++){var ut=f[et];if(ut[0]=="M")y=L=ut[1],b=U=ut[2];else{ut[0]=="C"?(Z=[y,b].concat(ut.slice(1)),y=Z[6],b=Z[7]):(Z=[y,b,y,b,L,U,L,U],y=L,b=U);var gt=$n(it,Z,v);if(v)q+=gt;else{for(var dt=0,qt=gt.length;dt<qt;dt++)gt[dt].segment1=ot,gt[dt].segment2=et,gt[dt].bez1=it,gt[dt].bez2=Z;q=q.concat(gt)}}}}}return q}l.findDotsAtSegment=function(u,f,v,c,h,y,b,E,k){var L=1-k,U=jt(L,3),it=jt(L,2),Z=k*k,q=Z*k,ot=U*u+3*it*k*v+3*L*k*k*h+q*b,ct=U*f+3*it*k*c+3*L*k*k*y+q*E,lt=u+2*k*(v-u)+Z*(h-2*v+u),et=f+2*k*(c-f)+Z*(y-2*c+f),Nt=v+2*k*(h-v)+Z*(b-2*h+v),ut=c+2*k*(y-c)+Z*(E-2*y+c),gt=L*u+k*v,dt=L*f+k*c,qt=L*h+k*b,zt=L*y+k*E,Yt=90-180*vt.atan2(lt-Nt,et-ut)/Ot;return(lt>Nt||et<ut)&&(Yt+=180),{x:ot,y:ct,m:{x:lt,y:et},n:{x:Nt,y:ut},start:{x:gt,y:dt},end:{x:qt,y:zt},alpha:Yt}},l.bezierBBox=function(u,f,v,c,h,y,b,E){l.is(u,"array")||(u=[u,f,v,c,h,y,b,E]);var k=Fn.apply(null,u);return{x:k.min.x,y:k.min.y,x2:k.max.x,y2:k.max.y,width:k.max.x-k.min.x,height:k.max.y-k.min.y}},l.isPointInsideBBox=function(u,f,v){return f>=u.x&&f<=u.x2&&v>=u.y&&v<=u.y2},l.isBBoxIntersect=function(u,f){var v=l.isPointInsideBBox;return v(f,u.x,u.y)||v(f,u.x2,u.y)||v(f,u.x,u.y2)||v(f,u.x2,u.y2)||v(u,f.x,f.y)||v(u,f.x2,f.y)||v(u,f.x,f.y2)||v(u,f.x2,f.y2)||(u.x<f.x2&&u.x>f.x||f.x<u.x2&&f.x>u.x)&&(u.y<f.y2&&u.y>f.y||f.y<u.y2&&f.y>u.y)},l.pathIntersection=function(u,f){return ri(u,f)},l.pathIntersectionNumber=function(u,f){return ri(u,f,1)},l.isPointInsidePath=function(u,f,v){var c=l.pathBBox(u);return l.isPointInsideBBox(c,f,v)&&ri(u,[["M",f,v],["H",c.x2+10]],1)%2==1},l._removedFactory=function(u){return function(){a("raphael.log",null,"Raphaël: you are calling to method “"+u+"” of removed object",u)}};var on=l.pathBBox=function(u){var f=oe(u);if(f.bbox)return Tt(f.bbox);if(!u)return{x:0,y:0,width:0,height:0,x2:0,y2:0};for(var v,c=0,h=0,y=[],b=[],E=0,k=(u=Pi(u)).length;E<k;E++)if((v=u[E])[0]=="M")c=v[1],h=v[2],y.push(c),b.push(h);else{var L=Fn(c,h,v[1],v[2],v[3],v[4],v[5],v[6]);y=y[$](L.min.x,L.max.x),b=b[$](L.min.y,L.max.y),c=v[5],h=v[6]}var U=kt[P](0,y),it=kt[P](0,b),Z=It[P](0,y),q=It[P](0,b),ot=Z-U,ct=q-it,lt={x:U,y:it,x2:Z,y2:q,width:ot,height:ct,cx:U+ot/2,cy:it+ct/2};return f.bbox=Tt(lt),lt},Fe=function(u){var f=Tt(u);return f.toString=l._path2string,f},Ks=l._pathToRelative=function(u){var f=oe(u);if(f.rel)return Fe(f.rel);l.is(u,at)&&l.is(u&&u[0],at)||(u=l.parsePathString(u));var v=[],c=0,h=0,y=0,b=0,E=0;u[0][0]=="M"&&(y=c=u[0][1],b=h=u[0][2],E++,v.push(["M",c,h]));for(var k=E,L=u.length;k<L;k++){var U=v[k]=[],it=u[k];if(it[0]!=Et.call(it[0]))switch(U[0]=Et.call(it[0]),U[0]){case"a":U[1]=it[1],U[2]=it[2],U[3]=it[3],U[4]=it[4],U[5]=it[5],U[6]=+(it[6]-c).toFixed(3),U[7]=+(it[7]-h).toFixed(3);break;case"v":U[1]=+(it[1]-h).toFixed(3);break;case"m":y=it[1],b=it[2];default:for(var Z=1,q=it.length;Z<q;Z++)U[Z]=+(it[Z]-(Z%2?c:h)).toFixed(3)}else{U=v[k]=[],it[0]=="m"&&(y=it[1]+c,b=it[2]+h);for(var ot=0,ct=it.length;ot<ct;ot++)v[k][ot]=it[ot]}var lt=v[k].length;switch(v[k][0]){case"z":c=y,h=b;break;case"h":c+=+v[k][lt-1];break;case"v":h+=+v[k][lt-1];break;default:c+=+v[k][lt-2],h+=+v[k][lt-1]}}return v.toString=l._path2string,f.rel=Fe(v),v},si=l._pathToAbsolute=function(u){var f=oe(u);if(f.abs)return Fe(f.abs);if(l.is(u,at)&&l.is(u&&u[0],at)||(u=l.parsePathString(u)),!u||!u.length)return[["M",0,0]];var v=[],c=0,h=0,y=0,b=0,E=0;u[0][0]=="M"&&(y=c=+u[0][1],b=h=+u[0][2],E++,v[0]=["M",c,h]);for(var k,L,U=u.length==3&&u[0][0]=="M"&&u[1][0].toUpperCase()=="R"&&u[2][0].toUpperCase()=="Z",it=E,Z=u.length;it<Z;it++){if(v.push(k=[]),(L=u[it])[0]!=F.call(L[0]))switch(k[0]=F.call(L[0]),k[0]){case"A":k[1]=L[1],k[2]=L[2],k[3]=L[3],k[4]=L[4],k[5]=L[5],k[6]=+(L[6]+c),k[7]=+(L[7]+h);break;case"V":k[1]=+L[1]+h;break;case"H":k[1]=+L[1]+c;break;case"R":for(var q=[c,h][$](L.slice(1)),ot=2,ct=q.length;ot<ct;ot++)q[ot]=+q[ot]+c,q[++ot]=+q[ot]+h;v.pop(),v=v[$](pn(q,U));break;case"M":y=+L[1]+c,b=+L[2]+h;default:for(ot=1,ct=L.length;ot<ct;ot++)k[ot]=+L[ot]+(ot%2?c:h)}else if(L[0]=="R")q=[c,h][$](L.slice(1)),v.pop(),v=v[$](pn(q,U)),k=["R"][$](L.slice(-2));else for(var lt=0,et=L.length;lt<et;lt++)k[lt]=L[lt];switch(k[0]){case"Z":c=y,h=b;break;case"H":c=k[1];break;case"V":h=k[1];break;case"M":y=k[k.length-2],b=k[k.length-1];default:c=k[k.length-2],h=k[k.length-1]}}return v.toString=l._path2string,f.abs=Fe(v),v},Rn=function(u,f,v,c){return[u,f,v,c,v,c]},En=function(u,f,v,c,h,y){return[1/3*u+2/3*v,1/3*f+2/3*c,1/3*h+2/3*v,1/3*y+2/3*c,h,y]},Yi=function(u,f,v,c,h,y,b,E,k,L){var U,it=120*Ot/180,Z=Ot/180*(+h||0),q=[],ot=Te(function(df,pf,ao){return{x:df*vt.cos(ao)-pf*vt.sin(ao),y:df*vt.sin(ao)+pf*vt.cos(ao)}});if(L)zt=L[0],Yt=L[1],dt=L[2],qt=L[3];else{u=(U=ot(u,f,-Z)).x,f=U.y,E=(U=ot(E,k,-Z)).x,k=U.y;var ct=(u-E)/2,lt=(f-k)/2,et=ct*ct/(v*v)+lt*lt/(c*c);et>1&&(v*=et=vt.sqrt(et),c*=et);var Nt=v*v,ut=c*c,gt=(y==b?-1:1)*vt.sqrt(Ut((Nt*ut-Nt*lt*lt-ut*ct*ct)/(Nt*lt*lt+ut*ct*ct))),dt=gt*v*lt/c+(u+E)/2,qt=gt*-c*ct/v+(f+k)/2,zt=vt.asin(((f-qt)/c).toFixed(9)),Yt=vt.asin(((k-qt)/c).toFixed(9));(zt=u<dt?Ot-zt:zt)<0&&(zt=2*Ot+zt),(Yt=E<dt?Ot-Yt:Yt)<0&&(Yt=2*Ot+Yt),b&&zt>Yt&&(zt-=2*Ot),!b&&Yt>zt&&(Yt-=2*Ot)}var nr=Yt-zt;if(Ut(nr)>it){var Gr=Yt,Ze=E,kn=k;Yt=zt+it*(b&&Yt>zt?1:-1),E=dt+v*vt.cos(Yt),k=qt+c*vt.sin(Yt),q=Yi(E,k,v,c,h,0,b,Ze,kn,[Yt,Gr,dt,qt])}nr=Yt-zt;var ir=vt.cos(zt),rr=vt.sin(zt),so=vt.cos(Yt),Un=vt.sin(Yt),Di=vt.tan(nr/4),oo=4/3*v*Di,lf=4/3*c*Di,cf=[u,f],sr=[u+oo*rr,f-lf*ir],uf=[E+oo*Un,k-lf*so],hf=[E,k];if(sr[0]=2*cf[0]-sr[0],sr[1]=2*cf[1]-sr[1],L)return[sr,uf,hf][$](q);for(var ff=[],ci=0,L_=(q=[sr,uf,hf][$](q).join()[ht](",")).length;ci<L_;ci++)ff[ci]=ci%2?ot(q[ci-1],q[ci],Z).y:ot(q[ci],q[ci+1],Z).x;return ff},Vn=function(u,f,v,c,h,y,b,E,k){var L=1-k;return{x:jt(L,3)*u+3*jt(L,2)*k*v+3*L*k*k*h+jt(k,3)*b,y:jt(L,3)*f+3*jt(L,2)*k*c+3*L*k*k*y+jt(k,3)*E}},Fn=Te(function(u,f,v,c,h,y,b,E){var k,L=h-2*v+u-(b-2*h+v),U=2*(v-u)-2*(h-v),it=u-v,Z=(-U+vt.sqrt(U*U-4*L*it))/2/L,q=(-U-vt.sqrt(U*U-4*L*it))/2/L,ot=[f,E],ct=[u,b];return Ut(Z)>"1e12"&&(Z=.5),Ut(q)>"1e12"&&(q=.5),Z>0&&Z<1&&(k=Vn(u,f,v,c,h,y,b,E,Z),ct.push(k.x),ot.push(k.y)),q>0&&q<1&&(k=Vn(u,f,v,c,h,y,b,E,q),ct.push(k.x),ot.push(k.y)),L=y-2*c+f-(E-2*y+c),it=f-c,Z=(-(U=2*(c-f)-2*(y-c))+vt.sqrt(U*U-4*L*it))/2/L,q=(-U-vt.sqrt(U*U-4*L*it))/2/L,Ut(Z)>"1e12"&&(Z=.5),Ut(q)>"1e12"&&(q=.5),Z>0&&Z<1&&(k=Vn(u,f,v,c,h,y,b,E,Z),ct.push(k.x),ot.push(k.y)),q>0&&q<1&&(k=Vn(u,f,v,c,h,y,b,E,q),ct.push(k.x),ot.push(k.y)),{min:{x:kt[P](0,ct),y:kt[P](0,ot)},max:{x:It[P](0,ct),y:It[P](0,ot)}}}),Pi=l._path2curve=Te(function(u,f){var v=!f&&oe(u);if(!f&&v.curve)return Fe(v.curve);for(var c=si(u),h=f&&si(f),y={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},E=function(gt,dt,qt){var zt,Yt;if(!gt)return["C",dt.x,dt.y,dt.x,dt.y,dt.x,dt.y];switch(!(gt[0]in{T:1,Q:1})&&(dt.qx=dt.qy=null),gt[0]){case"M":dt.X=gt[1],dt.Y=gt[2];break;case"A":gt=["C"][$](Yi[P](0,[dt.x,dt.y][$](gt.slice(1))));break;case"S":qt=="C"||qt=="S"?(zt=2*dt.x-dt.bx,Yt=2*dt.y-dt.by):(zt=dt.x,Yt=dt.y),gt=["C",zt,Yt][$](gt.slice(1));break;case"T":qt=="Q"||qt=="T"?(dt.qx=2*dt.x-dt.qx,dt.qy=2*dt.y-dt.qy):(dt.qx=dt.x,dt.qy=dt.y),gt=["C"][$](En(dt.x,dt.y,dt.qx,dt.qy,gt[1],gt[2]));break;case"Q":dt.qx=gt[1],dt.qy=gt[2],gt=["C"][$](En(dt.x,dt.y,gt[1],gt[2],gt[3],gt[4]));break;case"L":gt=["C"][$](Rn(dt.x,dt.y,gt[1],gt[2]));break;case"H":gt=["C"][$](Rn(dt.x,dt.y,gt[1],dt.y));break;case"V":gt=["C"][$](Rn(dt.x,dt.y,dt.x,gt[1]));break;case"Z":gt=["C"][$](Rn(dt.x,dt.y,dt.X,dt.Y))}return gt},k=function(gt,dt){if(gt[dt].length>7){gt[dt].shift();for(var qt=gt[dt];qt.length;)U[dt]="A",h&&(it[dt]="A"),gt.splice(dt++,0,["C"][$](qt.splice(0,6)));gt.splice(dt,1),ct=It(c.length,h&&h.length||0)}},L=function(gt,dt,qt,zt,Yt){gt&&dt&&gt[Yt][0]=="M"&&dt[Yt][0]!="M"&&(dt.splice(Yt,0,["M",zt.x,zt.y]),qt.bx=0,qt.by=0,qt.x=gt[Yt][1],qt.y=gt[Yt][2],ct=It(c.length,h&&h.length||0))},U=[],it=[],Z="",q="",ot=0,ct=It(c.length,h&&h.length||0);ot<ct;ot++){c[ot]&&(Z=c[ot][0]),Z!="C"&&(U[ot]=Z,ot&&(q=U[ot-1])),c[ot]=E(c[ot],y,q),U[ot]!="A"&&Z=="C"&&(U[ot]="C"),k(c,ot),h&&(h[ot]&&(Z=h[ot][0]),Z!="C"&&(it[ot]=Z,ot&&(q=it[ot-1])),h[ot]=E(h[ot],b,q),it[ot]!="A"&&Z=="C"&&(it[ot]="C"),k(h,ot)),L(c,h,y,b,ot),L(h,c,b,y,ot);var lt=c[ot],et=h&&h[ot],Nt=lt.length,ut=h&&et.length;y.x=lt[Nt-2],y.y=lt[Nt-1],y.bx=R(lt[Nt-4])||y.x,y.by=R(lt[Nt-3])||y.y,b.bx=h&&(R(et[ut-4])||b.x),b.by=h&&(R(et[ut-3])||b.y),b.x=h&&et[ut-2],b.y=h&&et[ut-1]}return h||(v.curve=Fe(c)),h?[c,h]:c},null,Fe),Xi=(l._parseDots=Te(function(u){for(var f=[],v=0,c=u.length;v<c;v++){var h={},y=u[v].match(/^([^:]*):?([\d\.]*)/);if(h.color=l.getRGB(y[1]),h.color.error)return null;h.opacity=h.color.opacity,h.color=h.color.hex,y[2]&&(h.offset=y[2]+"%"),f.push(h)}for(v=1,c=f.length-1;v<c;v++)if(!f[v].offset){for(var b=R(f[v-1].offset||0),E=0,k=v+1;k<c;k++)if(f[k].offset){E=f[k].offset;break}E||(E=100,k=c);for(var L=((E=R(E))-b)/(k-v+1);v<k;v++)b+=L,f[v].offset=b+"%"}return f}),l._tear=function(u,f){u==f.top&&(f.top=u.prev),u==f.bottom&&(f.bottom=u.next),u.next&&(u.next.prev=u.prev),u.prev&&(u.prev.next=u.next)}),Zs=(l._tofront=function(u,f){f.top!==u&&(Xi(u,f),u.next=null,u.prev=f.top,f.top.next=u,f.top=u)},l._toback=function(u,f){f.bottom!==u&&(Xi(u,f),u.next=f.bottom,u.prev=null,f.bottom.prev=u,f.bottom=u)},l._insertafter=function(u,f,v){Xi(u,v),f==v.top&&(v.top=u),f.next&&(f.next.prev=u),u.next=f.next,u.prev=f,f.next=u},l._insertbefore=function(u,f,v){Xi(u,v),f==v.bottom&&(v.bottom=u),f.prev&&(f.prev.next=u),u.prev=f.prev,f.prev=u,u.next=f},l.toMatrix=function(u,f){var v=on(u),c={_:{transform:Y},getBBox:function(){return v}};return Ki(c,f),c.matrix}),Ki=(l.transformPath=function(u,f){return ft(u,Zs(u,f))},l._extractTransform=function(u,f){if(f==null)return u._.transform;f=V(f).replace(/\.{3}|\u2026/g,u._.transform||Y);var v,c,h=l.parseTransformString(f),y=0,b=1,E=1,k=u._,L=new zn;if(k.transform=h||[],h)for(var U=0,it=h.length;U<it;U++){var Z,q,ot,ct,lt,et=h[U],Nt=et.length,ut=V(et[0]).toLowerCase(),gt=et[0]!=ut,dt=gt?L.invert():0;ut=="t"&&Nt==3?gt?(Z=dt.x(0,0),q=dt.y(0,0),ot=dt.x(et[1],et[2]),ct=dt.y(et[1],et[2]),L.translate(ot-Z,ct-q)):L.translate(et[1],et[2]):ut=="r"?Nt==2?(lt=lt||u.getBBox(1),L.rotate(et[1],lt.x+lt.width/2,lt.y+lt.height/2),y+=et[1]):Nt==4&&(gt?(ot=dt.x(et[2],et[3]),ct=dt.y(et[2],et[3]),L.rotate(et[1],ot,ct)):L.rotate(et[1],et[2],et[3]),y+=et[1]):ut=="s"?Nt==2||Nt==3?(lt=lt||u.getBBox(1),L.scale(et[1],et[Nt-1],lt.x+lt.width/2,lt.y+lt.height/2),b*=et[1],E*=et[Nt-1]):Nt==5&&(gt?(ot=dt.x(et[3],et[4]),ct=dt.y(et[3],et[4]),L.scale(et[1],et[2],ot,ct)):L.scale(et[1],et[2],et[3],et[4]),b*=et[1],E*=et[2]):ut=="m"&&Nt==7&&L.add(et[1],et[2],et[3],et[4],et[5],et[6]),k.dirtyT=1,u.matrix=L}u.matrix=L,k.sx=b,k.sy=E,k.deg=y,k.dx=v=L.e,k.dy=c=L.f,b==1&&E==1&&!y&&k.bbox?(k.bbox.x+=+v,k.bbox.y+=+c):k.dirtyT=1}),Qs=function(u){var f=u[0];switch(f.toLowerCase()){case"t":return[f,0,0];case"m":return[f,1,0,0,1,0,0];case"r":return u.length==4?[f,0,u[2],u[3]]:[f,0];case"s":return u.length==5?[f,1,1,u[3],u[4]]:u.length==3?[f,1,1]:[f,1]}},Js=l._equaliseTransform=function(u,f){f=V(f).replace(/\.{3}|\u2026/g,u),u=l.parseTransformString(u)||[],f=l.parseTransformString(f)||[];for(var v,c,h,y,b=It(u.length,f.length),E=[],k=[],L=0;L<b;L++){if(h=u[L]||Qs(f[L]),y=f[L]||Qs(h),h[0]!=y[0]||h[0].toLowerCase()=="r"&&(h[2]!=y[2]||h[3]!=y[3])||h[0].toLowerCase()=="s"&&(h[3]!=y[3]||h[4]!=y[4]))return;for(E[L]=[],k[L]=[],v=0,c=It(h.length,y.length);v<c;v++)v in h&&(E[L][v]=h[v]),v in y&&(k[L][v]=y[v])}return{from:E,to:k}};function zn(u,f,v,c,h,y){u!=null?(this.a=+u,this.b=+f,this.c=+v,this.d=+c,this.e=+h,this.f=+y):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}l._getContainer=function(u,f,v,c){var h;if((h=c!=null||l.is(u,"object")?u:C.doc.getElementById(u))!=null)return h.tagName?f==null?{container:h,width:h.style.pixelWidth||h.offsetWidth,height:h.style.pixelHeight||h.offsetHeight}:{container:h,width:f,height:v}:{container:1,x:u,y:f,width:v,height:c}},l.pathToRelative=Ks,l._engine={},l.path2curve=Pi,l.matrix=function(u,f,v,c,h,y){return new zn(u,f,v,c,h,y)},function(u){function f(c){return c[0]*c[0]+c[1]*c[1]}function v(c){var h=vt.sqrt(f(c));c[0]&&(c[0]/=h),c[1]&&(c[1]/=h)}u.add=function(c,h,y,b,E,k){var L,U,it,Z,q=[[],[],[]],ot=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],ct=[[c,y,E],[h,b,k],[0,0,1]];for(c&&c instanceof zn&&(ct=[[c.a,c.c,c.e],[c.b,c.d,c.f],[0,0,1]]),L=0;L<3;L++)for(U=0;U<3;U++){for(Z=0,it=0;it<3;it++)Z+=ot[L][it]*ct[it][U];q[L][U]=Z}this.a=q[0][0],this.b=q[1][0],this.c=q[0][1],this.d=q[1][1],this.e=q[0][2],this.f=q[1][2]},u.invert=function(){var c=this,h=c.a*c.d-c.b*c.c;return new zn(c.d/h,-c.b/h,-c.c/h,c.a/h,(c.c*c.f-c.d*c.e)/h,(c.b*c.e-c.a*c.f)/h)},u.clone=function(){return new zn(this.a,this.b,this.c,this.d,this.e,this.f)},u.translate=function(c,h){this.add(1,0,0,1,c,h)},u.scale=function(c,h,y,b){h==null&&(h=c),(y||b)&&this.add(1,0,0,1,y,b),this.add(c,0,0,h,0,0),(y||b)&&this.add(1,0,0,1,-y,-b)},u.rotate=function(c,h,y){c=l.rad(c),h=h||0,y=y||0;var b=+vt.cos(c).toFixed(9),E=+vt.sin(c).toFixed(9);this.add(b,E,-E,b,h,y),this.add(1,0,0,1,-h,-y)},u.x=function(c,h){return c*this.a+h*this.c+this.e},u.y=function(c,h){return c*this.b+h*this.d+this.f},u.get=function(c){return+this[V.fromCharCode(97+c)].toFixed(4)},u.toString=function(){return l.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()},u.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')"},u.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},u.split=function(){var c={};c.dx=this.e,c.dy=this.f;var h=[[this.a,this.c],[this.b,this.d]];c.scalex=vt.sqrt(f(h[0])),v(h[0]),c.shear=h[0][0]*h[1][0]+h[0][1]*h[1][1],h[1]=[h[1][0]-h[0][0]*c.shear,h[1][1]-h[0][1]*c.shear],c.scaley=vt.sqrt(f(h[1])),v(h[1]),c.shear/=c.scaley;var y=-h[0][1],b=h[1][1];return b<0?(c.rotate=l.deg(vt.acos(b)),y<0&&(c.rotate=360-c.rotate)):c.rotate=l.deg(vt.asin(y)),c.isSimple=!(+c.shear.toFixed(9)||c.scalex.toFixed(9)!=c.scaley.toFixed(9)&&c.rotate),c.isSuperSimple=!+c.shear.toFixed(9)&&c.scalex.toFixed(9)==c.scaley.toFixed(9)&&!c.rotate,c.noRotation=!+c.shear.toFixed(9)&&!c.rotate,c},u.toTransformString=function(c){var h=c||this[ht]();return h.isSimple?(h.scalex=+h.scalex.toFixed(4),h.scaley=+h.scaley.toFixed(4),h.rotate=+h.rotate.toFixed(4),(h.dx||h.dy?"t"+[h.dx,h.dy]:Y)+(h.scalex!=1||h.scaley!=1?"s"+[h.scalex,h.scaley,0,0]:Y)+(h.rotate?"r"+[h.rotate,0,0]:Y)):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}}(zn.prototype);for(var to=function(){this.returnValue=!1},eo=function(){return this.originalEvent.preventDefault()},no=function(){this.cancelBubble=!0},io=function(){return this.originalEvent.stopPropagation()},Zi=function(u){var f=C.doc.documentElement.scrollTop||C.doc.body.scrollTop,v=C.doc.documentElement.scrollLeft||C.doc.body.scrollLeft;return{x:u.clientX+v,y:u.clientY+f}},jn=C.doc.addEventListener?function(u,f,v,c){var h=function(b){var E=Zi(b);return v.call(c,b,E.x,E.y)};if(u.addEventListener(f,h,!1),H&&Pt[f]){var y=function(b){for(var E=Zi(b),k=b,L=0,U=b.targetTouches&&b.targetTouches.length;L<U;L++)if(b.targetTouches[L].target==u){(b=b.targetTouches[L]).originalEvent=k,b.preventDefault=eo,b.stopPropagation=io;break}return v.call(c,b,E.x,E.y)};u.addEventListener(Pt[f],y,!1)}return function(){return u.removeEventListener(f,h,!1),H&&Pt[f]&&u.removeEventListener(Pt[f],y,!1),!0}}:C.doc.attachEvent?function(u,f,v,c){var h=function(y){y=y||C.win.event;var b=C.doc.documentElement.scrollTop||C.doc.body.scrollTop,E=C.doc.documentElement.scrollLeft||C.doc.body.scrollLeft,k=y.clientX+E,L=y.clientY+b;return y.preventDefault=y.preventDefault||to,y.stopPropagation=y.stopPropagation||no,v.call(c,y,k,L)};return u.attachEvent("on"+f,h),function(){return u.detachEvent("on"+f,h),!0}}:void 0,Xe=[],Bn=function(u){for(var f,v=u.clientX,c=u.clientY,h=C.doc.documentElement.scrollTop||C.doc.body.scrollTop,y=C.doc.documentElement.scrollLeft||C.doc.body.scrollLeft,b=Xe.length;b--;){if(f=Xe[b],H&&u.touches){for(var E,k=u.touches.length;k--;)if((E=u.touches[k]).identifier==f.el._drag.id){v=E.clientX,c=E.clientY,(u.originalEvent?u.originalEvent:u).preventDefault();break}}else u.preventDefault();var L,U=f.el.node,it=U.nextSibling,Z=U.parentNode,q=U.style.display;C.win.opera&&Z.removeChild(U),U.style.display="none",L=f.el.paper.getElementByPoint(v,c),U.style.display=q,C.win.opera&&(it?Z.insertBefore(U,it):Z.appendChild(U)),L&&a("raphael.drag.over."+f.el.id,f.el,L),v+=y,c+=h,a("raphael.drag.move."+f.el.id,f.move_scope||f.el,v-f.el._drag.x,c-f.el._drag.y,v,c,u)}},oi=function(u){l.unmousemove(Bn).unmouseup(oi);for(var f,v=Xe.length;v--;)(f=Xe[v]).el._drag={},a("raphael.drag.end."+f.el.id,f.end_scope||f.start_scope||f.move_scope||f.el,u);Xe=[]},ie=l.el={},ro=_t.length;ro--;)(function(u){l[u]=ie[u]=function(f,v){return l.is(f,"function")&&(this.events=this.events||[],this.events.push({name:u,f,unbind:jn(this.shape||this.node||C.doc,u,f,v||this)})),this},l["un"+u]=ie["un"+u]=function(f){for(var v=this.events||[],c=v.length;c--;)v[c].name!=u||!l.is(f,"undefined")&&v[c].f!=f||(v[c].unbind(),v.splice(c,1),!v.length&&delete this.events);return this}})(_t[ro]);ie.data=function(u,f){var v=B[this.id]=B[this.id]||{};if(arguments.length==0)return v;if(arguments.length==1){if(l.is(u,"object")){for(var c in u)u[N](c)&&this.data(c,u[c]);return this}return a("raphael.data.get."+this.id,this,v[u],u),v[u]}return v[u]=f,a("raphael.data.set."+this.id,this,f,u),this},ie.removeData=function(u){return u==null?delete B[this.id]:B[this.id]&&delete B[this.id][u],this},ie.getData=function(){return Tt(B[this.id]||{})},ie.hover=function(u,f,v,c){return this.mouseover(u,v).mouseout(f,c||v)},ie.unhover=function(u,f){return this.unmouseover(u).unmouseout(f)};var ai=[];ie.drag=function(u,f,v,c,h,y){function b(E){(E.originalEvent||E).preventDefault();var k=E.clientX,L=E.clientY,U=C.doc.documentElement.scrollTop||C.doc.body.scrollTop,it=C.doc.documentElement.scrollLeft||C.doc.body.scrollLeft;if(this._drag.id=E.identifier,H&&E.touches){for(var Z,q=E.touches.length;q--;)if(Z=E.touches[q],this._drag.id=Z.identifier,Z.identifier==this._drag.id){k=Z.clientX,L=Z.clientY;break}}this._drag.x=k+it,this._drag.y=L+U,!Xe.length&&l.mousemove(Bn).mouseup(oi),Xe.push({el:this,move_scope:c,start_scope:h,end_scope:y}),f&&a.on("raphael.drag.start."+this.id,f),u&&a.on("raphael.drag.move."+this.id,u),v&&a.on("raphael.drag.end."+this.id,v),a("raphael.drag.start."+this.id,h||c||this,this._drag.x,this._drag.y,E)}return this._drag={},ai.push({el:this,start:b}),this.mousedown(b),this},ie.onDragOver=function(u){u?a.on("raphael.drag.over."+this.id,u):a.unbind("raphael.drag.over."+this.id)},ie.undrag=function(){for(var u=ai.length;u--;)ai[u].el==this&&(this.unmousedown(ai[u].start),ai.splice(u,1),a.unbind("raphael.drag.*."+this.id));!ai.length&&l.unmousemove(Bn).unmouseup(oi),Xe=[]},m.circle=function(u,f,v){var c=l._engine.circle(this,u||0,f||0,v||0);return this.__set__&&this.__set__.push(c),c},m.rect=function(u,f,v,c,h){var y=l._engine.rect(this,u||0,f||0,v||0,c||0,h||0);return this.__set__&&this.__set__.push(y),y},m.ellipse=function(u,f,v,c){var h=l._engine.ellipse(this,u||0,f||0,v||0,c||0);return this.__set__&&this.__set__.push(h),h},m.path=function(u){u&&!l.is(u,"string")&&!l.is(u[0],at)&&(u+=Y);var f=l._engine.path(l.format[P](l,arguments),this);return this.__set__&&this.__set__.push(f),f},m.image=function(u,f,v,c,h){var y=l._engine.image(this,u||"about:blank",f||0,v||0,c||0,h||0);return this.__set__&&this.__set__.push(y),y},m.text=function(u,f,v){var c=l._engine.text(this,u||0,f||0,V(v));return this.__set__&&this.__set__.push(c),c},m.set=function(u){!l.is(u,"array")&&(u=Array.prototype.splice.call(arguments,0,arguments.length));var f=new Mi(u);return this.__set__&&this.__set__.push(f),f.paper=this,f.type="set",f},m.setStart=function(u){this.__set__=u||this.set()},m.setFinish=function(u){var f=this.__set__;return delete this.__set__,f},m.getSize=function(){var u=this.canvas.parentNode;return{width:u.offsetWidth,height:u.offsetHeight}},m.setSize=function(u,f){return l._engine.setSize.call(this,u,f)},m.setViewBox=function(u,f,v,c,h){return l._engine.setViewBox.call(this,u,f,v,c,h)},m.top=m.bottom=null,m.raphael=l;function Ii(){return this.x+J+this.y+J+this.width+" × "+this.height}m.getElementByPoint=function(u,f){var v,c,h,y,b,E,k,L=this.canvas,U=C.doc.elementFromPoint(u,f);if(C.win.opera&&U.tagName=="svg"){var it=(c=(v=L).getBoundingClientRect(),h=v.ownerDocument,y=h.body,b=h.documentElement,E=b.clientTop||y.clientTop||0,k=b.clientLeft||y.clientLeft||0,{y:c.top+(C.win.pageYOffset||b.scrollTop||y.scrollTop)-E,x:c.left+(C.win.pageXOffset||b.scrollLeft||y.scrollLeft)-k}),Z=L.createSVGRect();Z.x=u-it.x,Z.y=f-it.y,Z.width=Z.height=1;var q=L.getIntersectionList(Z,null);q.length&&(U=q[q.length-1])}if(!U)return null;for(;U.parentNode&&U!=L.parentNode&&!U.raphael;)U=U.parentNode;return U==this.canvas.parentNode&&(U=L),U=U&&U.raphael?this.getById(U.raphaelid):null},m.getElementsByBBox=function(u){var f=this.set();return this.forEach(function(v){l.isBBoxIntersect(v.getBBox(),u)&&f.push(v)}),f},m.getById=function(u){for(var f=this.bottom;f;){if(f.id==u)return f;f=f.next}return null},m.forEach=function(u,f){for(var v=this.bottom;v;){if(u.call(f,v)===!1)return this;v=v.next}return this},m.getElementsByPoint=function(u,f){var v=this.set();return this.forEach(function(c){c.isPointInside(u,f)&&v.push(c)}),v},ie.isPointInside=function(u,f){var v=this.realPath=nt[this.type](this);return this.attr("transform")&&this.attr("transform").length&&(v=l.transformPath(v,this.attr("transform"))),l.isPointInsidePath(v,u,f)},ie.getBBox=function(u){if(this.removed)return{};var f=this._;return u?(!f.dirty&&f.bboxwt||(this.realPath=nt[this.type](this),f.bboxwt=on(this.realPath),f.bboxwt.toString=Ii,f.dirty=0),f.bboxwt):((f.dirty||f.dirtyT||!f.bbox)&&(!f.dirty&&this.realPath||(f.bboxwt=0,this.realPath=nt[this.type](this)),f.bbox=on(ft(this.realPath,this.matrix)),f.bbox.toString=Ii,f.dirty=f.dirtyT=0),f.bbox)},ie.clone=function(){if(this.removed)return null;var u=this.paper[this.type]().attr(this.attr());return this.__set__&&this.__set__.push(u),u},ie.glow=function(u){if(this.type=="text")return null;var f={width:((u=u||{}).width||10)+(+this.attr("stroke-width")||1),fill:u.fill||!1,opacity:u.opacity==null?.5:u.opacity,offsetx:u.offsetx||0,offsety:u.offsety||0,color:u.color||"#000"},v=f.width/2,c=this.paper,h=c.set(),y=this.realPath||nt[this.type](this);y=this.matrix?ft(y,this.matrix):y;for(var b=1;b<v+1;b++)h.push(c.path(y).attr({stroke:f.color,fill:f.fill?f.color:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(f.width/v*b).toFixed(3),opacity:+(f.opacity/v).toFixed(3)}));return h.insertBefore(this).translate(f.offsetx,f.offsety)};var ze=function(u,f,v,c,h,y,b,E,k){return k==null?Ve(u,f,v,c,h,y,b,E):l.findDotsAtSegment(u,f,v,c,h,y,b,E,function(L,U,it,Z,q,ot,ct,lt,et){if(!(et<0||Ve(L,U,it,Z,q,ot,ct,lt)<et)){var Nt,ut=.5,gt=1-ut;for(Nt=Ve(L,U,it,Z,q,ot,ct,lt,gt);Ut(Nt-et)>.01;)Nt=Ve(L,U,it,Z,q,ot,ct,lt,gt+=(Nt<et?1:-1)*(ut/=2));return gt}}(u,f,v,c,h,y,b,E,k))},Cn=function(u,f){return function(v,c,h){for(var y,b,E,k,L,U="",it={},Z=0,q=0,ot=(v=Pi(v)).length;q<ot;q++){if((E=v[q])[0]=="M")y=+E[1],b=+E[2];else{if(Z+(k=ze(y,b,E[1],E[2],E[3],E[4],E[5],E[6]))>c){if(f&&!it.start){if(U+=["C"+(L=ze(y,b,E[1],E[2],E[3],E[4],E[5],E[6],c-Z)).start.x,L.start.y,L.m.x,L.m.y,L.x,L.y],h)return U;it.start=U,U=["M"+L.x,L.y+"C"+L.n.x,L.n.y,L.end.x,L.end.y,E[5],E[6]].join(),Z+=k,y=+E[5],b=+E[6];continue}if(!u&&!f)return{x:(L=ze(y,b,E[1],E[2],E[3],E[4],E[5],E[6],c-Z)).x,y:L.y,alpha:L.alpha}}Z+=k,y=+E[5],b=+E[6]}U+=E.shift()+E}return it.end=U,(L=u?Z:f?it:l.findDotsAtSegment(y,b,E[0],E[1],E[2],E[3],E[4],E[5],1)).alpha&&(L={x:L.x,y:L.y,alpha:L.alpha}),L}},mn=Cn(1),an=Cn(),Gn=Cn(0,1);l.getTotalLength=mn,l.getPointAtLength=an,l.getSubpath=function(u,f,v){if(this.getTotalLength(u)-v<1e-6)return Gn(u,f).end;var c=Gn(u,v,1);return f?Gn(c,f).end:c},ie.getTotalLength=function(){var u=this.getPath();if(u)return this.node.getTotalLength?this.node.getTotalLength():mn(u)},ie.getPointAtLength=function(u){var f=this.getPath();if(f)return an(f,u)},ie.getPath=function(){var u,f=l._getPath[this.type];if(this.type!="text"&&this.type!="set")return f&&(u=f(this)),u},ie.getSubpath=function(u,f){var v=this.getPath();if(v)return l.getSubpath(v,u,f)};var ye=l.easing_formulas={linear:function(u){return u},"<":function(u){return jt(u,1.7)},">":function(u){return jt(u,.48)},"<>":function(u){var f=.48-u/1.04,v=vt.sqrt(.1734+f*f),c=v-f,h=-v-f,y=jt(Ut(c),1/3)*(c<0?-1:1)+jt(Ut(h),1/3)*(h<0?-1:1)+.5;return 3*(1-y)*y*y+y*y*y},backIn:function(u){var f=1.70158;return u*u*((f+1)*u-f)},backOut:function(u){var f=1.70158;return(u-=1)*u*((f+1)*u+f)+1},elastic:function(u){return u==!!u?u:jt(2,-10*u)*vt.sin(2*Ot*(u-.075)/.3)+1},bounce:function(u){var f=7.5625,v=2.75;return u<1/v?f*u*u:u<2/v?f*(u-=1.5/v)*u+.75:u<2.5/v?f*(u-=2.25/v)*u+.9375:f*(u-=2.625/v)*u+.984375}};ye.easeIn=ye["ease-in"]=ye["<"],ye.easeOut=ye["ease-out"]=ye[">"],ye.easeInOut=ye["ease-in-out"]=ye["<>"],ye["back-in"]=ye.backIn,ye["back-out"]=ye.backOut;var Wt=[],Br=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(u){setTimeout(u,16)},Qi=function(){for(var u=+new Date,f=0;f<Wt.length;f++){var v=Wt[f];if(!v.el.removed&&!v.paused){var c,h,y=u-v.start,b=v.ms,E=v.easing,k=v.from,L=v.diff,U=v.to,it=(v.t,v.el),Z={},q={};if(v.initstatus?(y=(v.initstatus*v.anim.top-v.prev)/(v.percent-v.prev)*b,v.status=v.initstatus,delete v.initstatus,v.stop&&Wt.splice(f--,1)):v.status=(v.prev+(v.percent-v.prev)*(y/b))/v.anim.top,!(y<0))if(y<b){var ot=E(y/b);for(var ct in k)if(k[N](ct)){switch(G[ct]){case W:c=+k[ct]+ot*b*L[ct];break;case"colour":c="rgb("+[li(I(k[ct].r+ot*b*L[ct].r)),li(I(k[ct].g+ot*b*L[ct].g)),li(I(k[ct].b+ot*b*L[ct].b))].join(",")+")";break;case"path":c=[];for(var lt=0,et=k[ct].length;lt<et;lt++){c[lt]=[k[ct][lt][0]];for(var Nt=1,ut=k[ct][lt].length;Nt<ut;Nt++)c[lt][Nt]=+k[ct][lt][Nt]+ot*b*L[ct][lt][Nt];c[lt]=c[lt].join(J)}c=c.join(J);break;case"transform":if(L[ct].real)for(c=[],lt=0,et=k[ct].length;lt<et;lt++)for(c[lt]=[k[ct][lt][0]],Nt=1,ut=k[ct][lt].length;Nt<ut;Nt++)c[lt][Nt]=k[ct][lt][Nt]+ot*b*L[ct][lt][Nt];else{var gt=function(qt){return+k[ct][qt]+ot*b*L[ct][qt]};c=[["m",gt(0),gt(1),gt(2),gt(3),gt(4),gt(5)]]}break;case"csv":if(ct=="clip-rect")for(c=[],lt=4;lt--;)c[lt]=+k[ct][lt]+ot*b*L[ct][lt];break;default:var dt=[][$](k[ct]);for(c=[],lt=it.paper.customAttributes[ct].length;lt--;)c[lt]=+dt[lt]+ot*b*L[ct][lt]}Z[ct]=c}it.attr(Z),function(qt,zt,Yt){setTimeout(function(){a("raphael.anim.frame."+qt,zt,Yt)})}(it.id,it,v.anim)}else{if(function(qt,zt,Yt){setTimeout(function(){a("raphael.anim.frame."+zt.id,zt,Yt),a("raphael.anim.finish."+zt.id,zt,Yt),l.is(qt,"function")&&qt.call(zt)})}(v.callback,it,v.anim),it.attr(U),Wt.splice(f--,1),v.repeat>1&&!v.next){for(h in U)U[N](h)&&(q[h]=v.totalOrigin[h]);v.el.attr(q),Hn(v.anim,v.el,v.anim.percents[0],null,v.totalOrigin,v.repeat-1)}v.next&&!v.stop&&Hn(v.anim,v.el,v.next,null,v.totalOrigin,v.repeat)}}}Wt.length&&Br(Qi)},li=function(u){return u>255?255:u<0?0:u};function nn(u,f,v,c,h,y){var b=3*f,E=3*(c-f)-b,k=1-b-E,L=3*v,U=3*(h-v)-L,it=1-L-U;function Z(q){return((k*q+E)*q+b)*q}return function(q,ot){var ct=function(lt,et){var Nt,ut,gt,dt,qt,zt;for(gt=lt,zt=0;zt<8;zt++){if(dt=Z(gt)-lt,Ut(dt)<et)return gt;if(Ut(qt=(3*k*gt+2*E)*gt+b)<1e-6)break;gt-=dt/qt}if(ut=1,(gt=lt)<(Nt=0))return Nt;if(gt>ut)return ut;for(;Nt<ut;){if(dt=Z(gt),Ut(dt-lt)<et)return gt;lt>dt?Nt=gt:ut=gt,gt=(ut-Nt)/2+Nt}return gt}(q,ot);return((it*ct+U)*ct+L)*ct}(u,1/(200*y))}function Ke(u,f){var v=[],c={};if(this.ms=f,this.times=1,u){for(var h in u)u[N](h)&&(c[R(h)]=u[h],v.push(R(h)));v.sort(X)}this.anim=c,this.top=v[v.length-1],this.percents=v}function Hn(u,f,v,c,h,y){v=R(v);var b,E,k,L,U,it,Z=u.ms,q={},ot={},ct={};if(c)for(et=0,Nt=Wt.length;et<Nt;et++){var lt=Wt[et];if(lt.el.id==f.id&&lt.anim==u){lt.percent!=v?(Wt.splice(et,1),k=1):E=lt,f.attr(lt.totalOrigin);break}}else c=+ot;for(var et=0,Nt=u.percents.length;et<Nt;et++){if(u.percents[et]==v||u.percents[et]>c*u.top){v=u.percents[et],U=u.percents[et-1]||0,Z=Z/u.top*(v-U),L=u.percents[et+1],b=u.anim[v];break}c&&f.attr(u.anim[u.percents[et]])}if(b){if(E)E.initstatus=c,E.start=new Date-E.ms*c;else{for(var ut in b)if(b[N](ut)&&(G[N](ut)||f.paper.customAttributes[N](ut)))switch(q[ut]=f.attr(ut),q[ut]==null&&(q[ut]=rt[ut]),ot[ut]=b[ut],G[ut]){case W:ct[ut]=(ot[ut]-q[ut])/Z;break;case"colour":q[ut]=l.getRGB(q[ut]);var gt=l.getRGB(ot[ut]);ct[ut]={r:(gt.r-q[ut].r)/Z,g:(gt.g-q[ut].g)/Z,b:(gt.b-q[ut].b)/Z};break;case"path":var dt=Pi(q[ut],ot[ut]),qt=dt[1];for(q[ut]=dt[0],ct[ut]=[],et=0,Nt=q[ut].length;et<Nt;et++){ct[ut][et]=[0];for(var zt=1,Yt=q[ut][et].length;zt<Yt;zt++)ct[ut][et][zt]=(qt[et][zt]-q[ut][et][zt])/Z}break;case"transform":var nr=f._,Gr=Js(nr[ut],ot[ut]);if(Gr)for(q[ut]=Gr.from,ot[ut]=Gr.to,ct[ut]=[],ct[ut].real=!0,et=0,Nt=q[ut].length;et<Nt;et++)for(ct[ut][et]=[q[ut][et][0]],zt=1,Yt=q[ut][et].length;zt<Yt;zt++)ct[ut][et][zt]=(ot[ut][et][zt]-q[ut][et][zt])/Z;else{var Ze=f.matrix||new zn,kn={_:{transform:nr.transform},getBBox:function(){return f.getBBox(1)}};q[ut]=[Ze.a,Ze.b,Ze.c,Ze.d,Ze.e,Ze.f],Ki(kn,ot[ut]),ot[ut]=kn._.transform,ct[ut]=[(kn.matrix.a-Ze.a)/Z,(kn.matrix.b-Ze.b)/Z,(kn.matrix.c-Ze.c)/Z,(kn.matrix.d-Ze.d)/Z,(kn.matrix.e-Ze.e)/Z,(kn.matrix.f-Ze.f)/Z]}break;case"csv":var ir=V(b[ut])[ht](g),rr=V(q[ut])[ht](g);if(ut=="clip-rect")for(q[ut]=rr,ct[ut]=[],et=rr.length;et--;)ct[ut][et]=(ir[et]-q[ut][et])/Z;ot[ut]=ir;break;default:for(ir=[][$](b[ut]),rr=[][$](q[ut]),ct[ut]=[],et=f.paper.customAttributes[ut].length;et--;)ct[ut][et]=((ir[et]||0)-(rr[et]||0))/Z}var so=b.easing,Un=l.easing_formulas[so];if(!Un)if((Un=V(so).match(x))&&Un.length==5){var Di=Un;Un=function(oo){return nn(oo,+Di[1],+Di[2],+Di[3],+Di[4],Z)}}else Un=Q;if(lt={anim:u,percent:v,timestamp:it=b.start||u.start||+new Date,start:it+(u.del||0),status:0,initstatus:c||0,stop:!1,ms:Z,easing:Un,from:q,diff:ct,to:ot,el:f,callback:b.callback,prev:U,next:L,repeat:y||u.times,origin:f.attr(),totalOrigin:h},Wt.push(lt),c&&!E&&!k&&(lt.stop=!0,lt.start=new Date-Z*c,Wt.length==1))return Qi();k&&(lt.start=new Date-lt.ms*c),Wt.length==1&&Br(Qi)}a("raphael.anim.start."+f.id,f,u)}}function Ji(u){for(var f=0;f<Wt.length;f++)Wt[f].el.paper==u&&Wt.splice(f--,1)}ie.animateWith=function(u,f,v,c,h,y){if(this.removed)return y&&y.call(this),this;var b=v instanceof Ke?v:l.animation(v,c,h,y);Hn(b,this,b.percents[0],null,this.attr());for(var E=0,k=Wt.length;E<k;E++)if(Wt[E].anim==f&&Wt[E].el==u){Wt[k-1].start=Wt[E].start;break}return this},ie.onAnimation=function(u){return u?a.on("raphael.anim.frame."+this.id,u):a.unbind("raphael.anim.frame."+this.id),this},Ke.prototype.delay=function(u){var f=new Ke(this.anim,this.ms);return f.times=this.times,f.del=+u||0,f},Ke.prototype.repeat=function(u){var f=new Ke(this.anim,this.ms);return f.del=this.del,f.times=vt.floor(It(u,0))||1,f},l.animation=function(u,f,v,c){if(u instanceof Ke)return u;!l.is(v,"function")&&v||(c=c||v||null,v=null),u=Object(u),f=+f||0;var h,y,b={};for(y in u)u[N](y)&&R(y)!=y&&R(y)+"%"!=y&&(h=!0,b[y]=u[y]);if(h)return v&&(b.easing=v),c&&(b.callback=c),new Ke({100:b},f);if(c){var E=0;for(var k in u){var L=j(k);u[N](k)&&L>E&&(E=L)}!u[E+="%"].callback&&(u[E].callback=c)}return new Ke(u,f)},ie.animate=function(u,f,v,c){if(this.removed)return c&&c.call(this),this;var h=u instanceof Ke?u:l.animation(u,f,v,c);return Hn(h,this,h.percents[0],null,this.attr()),this},ie.setTime=function(u,f){return u&&f!=null&&this.status(u,kt(f,u.ms)/u.ms),this},ie.status=function(u,f){var v,c,h=[],y=0;if(f!=null)return Hn(u,this,-1,kt(f,1)),this;for(v=Wt.length;y<v;y++)if((c=Wt[y]).el.id==this.id&&(!u||c.anim==u)){if(u)return c.status;h.push({anim:c.anim,status:c.status})}return u?0:h},ie.pause=function(u){for(var f=0;f<Wt.length;f++)Wt[f].el.id!=this.id||u&&Wt[f].anim!=u||a("raphael.anim.pause."+this.id,this,Wt[f].anim)!==!1&&(Wt[f].paused=!0);return this},ie.resume=function(u){for(var f=0;f<Wt.length;f++)if(Wt[f].el.id==this.id&&(!u||Wt[f].anim==u)){var v=Wt[f];a("raphael.anim.resume."+this.id,this,v.anim)!==!1&&(delete v.paused,this.status(v.anim,v.status))}return this},ie.stop=function(u){for(var f=0;f<Wt.length;f++)Wt[f].el.id!=this.id||u&&Wt[f].anim!=u||a("raphael.anim.stop."+this.id,this,Wt[f].anim)!==!1&&Wt.splice(f--,1);return this},a.on("raphael.remove",Ji),a.on("raphael.clear",Ji),ie.toString=function(){return"Raphaël’s object"};var tr,er,ln,cn,Mi=function(u){if(this.items=[],this.length=0,this.type="set",u)for(var f=0,v=u.length;f<v;f++)!u[f]||u[f].constructor!=ie.constructor&&u[f].constructor!=Mi||(this[this.items.length]=this.items[this.items.length]=u[f],this.length++)},Pe=Mi.prototype;for(var Ai in Pe.push=function(){for(var u,f,v=0,c=arguments.length;v<c;v++)!(u=arguments[v])||u.constructor!=ie.constructor&&u.constructor!=Mi||(this[f=this.items.length]=this.items[f]=u,this.length++);return this},Pe.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},Pe.forEach=function(u,f){for(var v=0,c=this.items.length;v<c;v++)if(u.call(f,this.items[v],v)===!1)return this;return this},ie)ie[N](Ai)&&(Pe[Ai]=function(u){return function(){var f=arguments;return this.forEach(function(v){v[u][P](v,f)})}}(Ai));return Pe.attr=function(u,f){if(u&&l.is(u,at)&&l.is(u[0],"object"))for(var v=0,c=u.length;v<c;v++)this.items[v].attr(u[v]);else for(var h=0,y=this.items.length;h<y;h++)this.items[h].attr(u,f);return this},Pe.clear=function(){for(;this.length;)this.pop()},Pe.splice=function(u,f,v){u=u<0?It(this.length+u,0):u,f=It(0,kt(this.length-u,f));var c,h=[],y=[],b=[];for(c=2;c<arguments.length;c++)b.push(arguments[c]);for(c=0;c<f;c++)y.push(this[u+c]);for(;c<this.length-u;c++)h.push(this[u+c]);var E=b.length;for(c=0;c<E+h.length;c++)this.items[u+c]=this[u+c]=c<E?b[c]:h[c-E];for(c=this.items.length=this.length-=f-E;this[c];)delete this[c++];return new Mi(y)},Pe.exclude=function(u){for(var f=0,v=this.length;f<v;f++)if(this[f]==u)return this.splice(f,1),!0},Pe.animate=function(u,f,v,c){(l.is(v,"function")||!v)&&(c=v||null);var h,y,b=this.items.length,E=b,k=this;if(!b)return this;c&&(y=function(){!--b&&c.call(k)}),v=l.is(v,"string")?v:y;var L=l.animation(u,f,v,y);for(h=this.items[--E].animate(L);E--;)this.items[E]&&!this.items[E].removed&&this.items[E].animateWith(h,L,L),this.items[E]&&!this.items[E].removed||b--;return this},Pe.insertAfter=function(u){for(var f=this.items.length;f--;)this.items[f].insertAfter(u);return this},Pe.getBBox=function(){for(var u=[],f=[],v=[],c=[],h=this.items.length;h--;)if(!this.items[h].removed){var y=this.items[h].getBBox();u.push(y.x),f.push(y.y),v.push(y.x+y.width),c.push(y.y+y.height)}return{x:u=kt[P](0,u),y:f=kt[P](0,f),x2:v=It[P](0,v),y2:c=It[P](0,c),width:v-u,height:c-f}},Pe.clone=function(u){u=this.paper.set();for(var f=0,v=this.items.length;f<v;f++)u.push(this.items[f].clone());return u},Pe.toString=function(){return"Raphaël‘s set"},Pe.glow=function(u){var f=this.paper.set();return this.forEach(function(v,c){var h=v.glow(u);h?.forEach(function(y,b){f.push(y)})}),f},Pe.isPointInside=function(u,f){var v=!1;return this.forEach(function(c){if(c.isPointInside(u,f))return v=!0,!1}),v},l.registerFont=function(u){if(!u.face)return u;this.fonts=this.fonts||{};var f={w:u.w,face:{},glyphs:{}},v=u.face["font-family"];for(var c in u.face)u.face[N](c)&&(f.face[c]=u.face[c]);if(this.fonts[v]?this.fonts[v].push(f):this.fonts[v]=[f],!u.svg){for(var h in f.face["units-per-em"]=j(u.face["units-per-em"],10),u.glyphs)if(u.glyphs[N](h)){var y=u.glyphs[h];if(f.glyphs[h]={w:y.w,k:{},d:y.d&&"M"+y.d.replace(/[mlcxtrv]/g,function(E){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[E]||"M"})+"z"},y.k)for(var b in y.k)y[N](b)&&(f.glyphs[h].k[b]=y.k[b])}}return u},m.getFont=function(u,f,v,c){if(c=c||"normal",v=v||"normal",f=+f||{normal:400,bold:700,lighter:300,bolder:800}[f]||400,l.fonts){var h,y=l.fonts[u];if(!y){var b=new RegExp("(^|\\s)"+u.replace(/[^\w\d\s+!~.:_-]/g,Y)+"(\\s|$)","i");for(var E in l.fonts)if(l.fonts[N](E)&&b.test(E)){y=l.fonts[E];break}}if(y)for(var k=0,L=y.length;k<L&&((h=y[k]).face["font-weight"]!=f||h.face["font-style"]!=v&&h.face["font-style"]||h.face["font-stretch"]!=c);k++);return h}},m.print=function(u,f,v,c,h,y,b,E){y=y||"middle",b=It(kt(b||0,1),-1),E=It(kt(E||1,3),1);var k,L=V(v)[ht](Y),U=0,it=0,Z=Y;if(l.is(c,"string")&&(c=this.getFont(c)),c){k=(h||16)/c.face["units-per-em"];for(var q=c.face.bbox[ht](g),ot=+q[0],ct=q[3]-q[1],lt=0,et=+q[1]+(y=="baseline"?ct+ +c.face.descent:ct/2),Nt=0,ut=L.length;Nt<ut;Nt++){if(L[Nt]==`
49
+ `)U=0,dt=0,it=0,lt+=ct*E;else{var gt=it&&c.glyphs[L[Nt-1]]||{},dt=c.glyphs[L[Nt]];U+=it?(gt.w||c.w)+(gt.k&&gt.k[L[Nt]]||0)+c.w*b:0,it=1}dt&&dt.d&&(Z+=l.transformPath(dt.d,["t",U*k,lt*k,"s",k,k,ot,et,"t",(u-ot)/k,(f-et)/k]))}}return this.path(Z).attr({fill:"#000",stroke:"none"})},m.add=function(u){if(l.is(u,"array"))for(var f,v=this.set(),c=0,h=u.length;c<h;c++)f=u[c]||{},d[N](f.type)&&v.push(this[f.type]().attr(f));return v},l.format=function(u,f){var v=l.is(f,at)?[0][$](f):arguments;return u&&l.is(u,"string")&&v.length-1&&(u=u.replace(_,function(c,h){return v[++h]==null?Y:v[h]})),u||Y},l.fullfill=(tr=/\{([^\}]+)\}/g,er=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,function(u,f){return String(u).replace(tr,function(v,c){return function(h,y,b){var E=b;return y.replace(er,function(k,L,U,it,Z){L=L||it,E&&(L in E&&(E=E[L]),typeof E=="function"&&Z&&(E=E()))}),E=(E==null||E==b?h:E)+""}(v,c,f)})}),l.ninja=function(){if(M.was)C.win.Raphael=M.is;else{window.Raphael=void 0;try{delete window.Raphael}catch{}}return l},l.st=Pe,a.on("raphael.DOMload",function(){p=!0}),(ln=document).readyState==null&&ln.addEventListener&&(ln.addEventListener("DOMContentLoaded",cn=function(){ln.removeEventListener("DOMContentLoaded",cn,!1),ln.readyState="complete"},!1),ln.readyState="loading"),function u(){/in/.test(ln.readyState)?setTimeout(u,9):l.eve("raphael.DOMload")}(),l}.apply(i,s))===void 0||(n.exports=o)},function(n,i,r){var s,o;s=[r(0),r(3),r(4)],(o=function(a){return a}.apply(i,s))===void 0||(n.exports=o)},function(n,i,r){var s,o,a,l,p,m,g,d,_,N,C,M,z,P;l="hasOwnProperty",p=/[\.\/]/,m=/\s*,\s*/,g=function($,H){return $-H},d={n:{}},_=function(){for(var $=0,H=this.length;$<H;$++)if(this[$]!==void 0)return this[$]},N=function(){for(var $=this.length;--$;)if(this[$]!==void 0)return this[$]},C=Object.prototype.toString,M=String,z=Array.isArray||function($){return $ instanceof Array||C.call($)=="[object Array]"},(P=function($,H){var Y,J=a,V=Array.prototype.slice.call(arguments,2),ht=P.listeners($),_t=0,Pt=[],Et={},vt=[],It=o;vt.firstDefined=_,vt.lastDefined=N,o=$,a=0;for(var kt=0,Ut=ht.length;kt<Ut;kt++)"zIndex"in ht[kt]&&(Pt.push(ht[kt].zIndex),ht[kt].zIndex<0&&(Et[ht[kt].zIndex]=ht[kt]));for(Pt.sort(g);Pt[_t]<0;)if(Y=Et[Pt[_t++]],vt.push(Y.apply(H,V)),a)return a=J,vt;for(kt=0;kt<Ut;kt++)if("zIndex"in(Y=ht[kt]))if(Y.zIndex==Pt[_t]){if(vt.push(Y.apply(H,V)),a)break;do if((Y=Et[Pt[++_t]])&&vt.push(Y.apply(H,V)),a)break;while(Y)}else Et[Y.zIndex]=Y;else if(vt.push(Y.apply(H,V)),a)break;return a=J,o=It,vt})._events=d,P.listeners=function($){var H,Y,J,V,ht,_t,Pt,Et,vt=z($)?$:$.split(p),It=d,kt=[It],Ut=[];for(V=0,ht=vt.length;V<ht;V++){for(Et=[],_t=0,Pt=kt.length;_t<Pt;_t++)for(Y=[(It=kt[_t].n)[vt[V]],It["*"]],J=2;J--;)(H=Y[J])&&(Et.push(H),Ut=Ut.concat(H.f||[]));kt=Et}return Ut},P.separator=function($){$?($="["+($=M($).replace(/(?=[\.\^\]\[\-])/g,"\\"))+"]",p=new RegExp($)):p=/[\.\/]/},P.on=function($,H){if(typeof H!="function")return function(){};for(var Y=z($)?z($[0])?$:[$]:M($).split(m),J=0,V=Y.length;J<V;J++)(function(ht){for(var _t,Pt=z(ht)?ht:M(ht).split(p),Et=d,vt=0,It=Pt.length;vt<It;vt++)Et=(Et=Et.n).hasOwnProperty(Pt[vt])&&Et[Pt[vt]]||(Et[Pt[vt]]={n:{}});for(Et.f=Et.f||[],vt=0,It=Et.f.length;vt<It;vt++)if(Et.f[vt]==H){_t=!0;break}!_t&&Et.f.push(H)})(Y[J]);return function(ht){+ht==+ht&&(H.zIndex=+ht)}},P.f=function($){var H=[].slice.call(arguments,1);return function(){P.apply(null,[$,null].concat(H).concat([].slice.call(arguments,0)))}},P.stop=function(){a=1},P.nt=function($){var H=z(o)?o.join("."):o;return $?new RegExp("(?:\\.|\\/|^)"+$+"(?:\\.|\\/|$)").test(H):H},P.nts=function(){return z(o)?o:o.split(p)},P.off=P.unbind=function($,H){if($){var Y=z($)?z($[0])?$:[$]:M($).split(m);if(Y.length>1)for(var J=0,V=Y.length;J<V;J++)P.off(Y[J],H);else{Y=z($)?$:M($).split(p);var ht,_t,Pt,Et,vt,It=[d];for(J=0,V=Y.length;J<V;J++)for(Et=0;Et<It.length;Et+=Pt.length-2){if(Pt=[Et,1],ht=It[Et].n,Y[J]!="*")ht[Y[J]]&&Pt.push(ht[Y[J]]);else for(_t in ht)ht[l](_t)&&Pt.push(ht[_t]);It.splice.apply(It,Pt)}for(J=0,V=It.length;J<V;J++)for(ht=It[J];ht.n;){if(H){if(ht.f){for(Et=0,vt=ht.f.length;Et<vt;Et++)if(ht.f[Et]==H){ht.f.splice(Et,1);break}!ht.f.length&&delete ht.f}for(_t in ht.n)if(ht.n[l](_t)&&ht.n[_t].f){var kt=ht.n[_t].f;for(Et=0,vt=kt.length;Et<vt;Et++)if(kt[Et]==H){kt.splice(Et,1);break}!kt.length&&delete ht.n[_t].f}}else for(_t in delete ht.f,ht.n)ht.n[l](_t)&&ht.n[_t].f&&delete ht.n[_t].f;ht=ht.n}}}else P._events=d={n:{}}},P.once=function($,H){var Y=function(){return P.off($,Y),H.apply(this,arguments)};return P.on($,Y)},P.version="0.5.0",P.toString=function(){return"You are running Eve 0.5.0"},n.exports?n.exports=P:(s=function(){return P}.apply(i,[]))===void 0||(n.exports=s)},function(n,i,r){var s,o;s=[r(0)],(o=function(a){if(!a||a.svg){var l="hasOwnProperty",p=String,m=parseFloat,g=parseInt,d=Math,_=d.max,N=d.abs,C=d.pow,M=/[, ]+/,z=a.eve,P="",$=" ",H="http://www.w3.org/1999/xlink",Y={block:"M5,0 0,2.5 5,5z",classic:"M5,0 0,2.5 5,5 3.5,3 3.5,2z",diamond:"M2.5,0 5,2.5 2.5,5 0,2.5z",open:"M6,1 1,3.5 6,6",oval:"M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z"},J={};a.toString=function(){return`Your browser supports SVG.
50
+ You are running Raphaël `+this.version};var V=function(S,w){if(w)for(var x in typeof S=="string"&&(S=V(S)),w)w[l](x)&&(x.substring(0,6)=="xlink:"?S.setAttributeNS(H,x.substring(6),p(w[x])):S.setAttribute(x,p(w[x])));else(S=a._g.doc.createElementNS("http://www.w3.org/2000/svg",S)).style&&(S.style.webkitTapHighlightColor="rgba(0,0,0,0)");return S},ht=function(S,w){var x="linear",I=S.id+w,R=.5,j=.5,F=S.node,rt=S.paper,G=F.style,st=a._g.doc.getElementById(I);if(!st){if(w=(w=p(w).replace(a._radial_gradient,function(X,Q,K){if(x="radial",Q&&K){R=m(Q);var pt=2*((j=m(K))>.5)-1;C(R-.5,2)+C(j-.5,2)>.25&&(j=d.sqrt(.25-C(R-.5,2))*pt+.5)&&j!=.5&&(j=j.toFixed(5)-1e-5*pt)}return P})).split(/\s*\-\s*/),x=="linear"){var yt=w.shift();if(yt=-m(yt),isNaN(yt))return null;var St=[0,0,d.cos(a.rad(yt)),d.sin(a.rad(yt))],Ft=1/(_(N(St[2]),N(St[3]))||1);St[2]*=Ft,St[3]*=Ft,St[2]<0&&(St[0]=-St[2],St[2]=0),St[3]<0&&(St[1]=-St[3],St[3]=0)}var O=a._parseDots(w);if(!O)return null;if(I=I.replace(/[\(\)\s,\xb0#]/g,"_"),S.gradient&&I!=S.gradient.id&&(rt.defs.removeChild(S.gradient),delete S.gradient),!S.gradient){st=V(x+"Gradient",{id:I}),S.gradient=st,V(st,x=="radial"?{fx:R,fy:j}:{x1:St[0],y1:St[1],x2:St[2],y2:St[3],gradientTransform:S.matrix.invert()}),rt.defs.appendChild(st);for(var D=0,B=O.length;D<B;D++)st.appendChild(V("stop",{offset:O[D].offset?O[D].offset:D?"100%":"0%","stop-color":O[D].color||"#fff","stop-opacity":isFinite(O[D].opacity)?O[D].opacity:1}))}}return V(F,{fill:_t(I),opacity:1,"fill-opacity":1}),G.fill=P,G.opacity=1,G.fillOpacity=1,1},_t=function(S){if((w=document.documentMode)&&(w===9||w===10))return"url('#"+S+"')";var w,x=document.location;return"url('"+(x.protocol+"//"+x.host+x.pathname+x.search)+"#"+S+"')"},Pt=function(S){var w=S.getBBox(1);V(S.pattern,{patternTransform:S.matrix.invert()+" translate("+w.x+","+w.y+")"})},Et=function(S,w,x){if(S.type=="path"){for(var I,R,j,F,rt,G=p(w).toLowerCase().split("-"),st=S.paper,yt=x?"end":"start",St=S.node,Ft=S.attrs,O=Ft["stroke-width"],D=G.length,B="classic",X=3,Q=3,K=5;D--;)switch(G[D]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":B=G[D];break;case"wide":Q=5;break;case"narrow":Q=2;break;case"long":X=5;break;case"short":X=2}if(B=="open"?(X+=2,Q+=2,K+=2,j=1,F=x?4:1,rt={fill:"none",stroke:Ft.stroke}):(F=j=X/2,rt={fill:Ft.stroke,stroke:"none"}),S._.arrows?x?(S._.arrows.endPath&&J[S._.arrows.endPath]--,S._.arrows.endMarker&&J[S._.arrows.endMarker]--):(S._.arrows.startPath&&J[S._.arrows.startPath]--,S._.arrows.startMarker&&J[S._.arrows.startMarker]--):S._.arrows={},B!="none"){var pt="raphael-marker-"+B,nt="raphael-marker-"+yt+B+X+Q+"-obj"+S.id;a._g.doc.getElementById(pt)?J[pt]++:(st.defs.appendChild(V(V("path"),{"stroke-linecap":"round",d:Y[B],id:pt})),J[pt]=1);var ft,tt=a._g.doc.getElementById(nt);tt?(J[nt]++,ft=tt.getElementsByTagName("use")[0]):(tt=V(V("marker"),{id:nt,markerHeight:Q,markerWidth:X,orient:"auto",refX:F,refY:Q/2}),ft=V(V("use"),{"xlink:href":"#"+pt,transform:(x?"rotate(180 "+X/2+" "+Q/2+") ":P)+"scale("+X/K+","+Q/K+")","stroke-width":(1/((X/K+Q/K)/2)).toFixed(4)}),tt.appendChild(ft),st.defs.appendChild(tt),J[nt]=1),V(ft,rt);var bt=j*(B!="diamond"&&B!="oval");x?(I=S._.arrows.startdx*O||0,R=a.getTotalLength(Ft.path)-bt*O):(I=bt*O,R=a.getTotalLength(Ft.path)-(S._.arrows.enddx*O||0)),(rt={})["marker-"+yt]="url(#"+nt+")",(R||I)&&(rt.d=a.getSubpath(Ft.path,I,R)),V(St,rt),S._.arrows[yt+"Path"]=pt,S._.arrows[yt+"Marker"]=nt,S._.arrows[yt+"dx"]=bt,S._.arrows[yt+"Type"]=B,S._.arrows[yt+"String"]=w}else x?(I=S._.arrows.startdx*O||0,R=a.getTotalLength(Ft.path)-I):(I=0,R=a.getTotalLength(Ft.path)-(S._.arrows.enddx*O||0)),S._.arrows[yt+"Path"]&&V(St,{d:a.getSubpath(Ft.path,I,R)}),delete S._.arrows[yt+"Path"],delete S._.arrows[yt+"Marker"],delete S._.arrows[yt+"dx"],delete S._.arrows[yt+"Type"],delete S._.arrows[yt+"String"];for(rt in J)if(J[l](rt)&&!J[rt]){var Tt=a._g.doc.getElementById(rt);Tt&&Tt.parentNode.removeChild(Tt)}}},vt={"-":[3,1],".":[1,1],"-.":[3,1,1,1],"-..":[3,1,1,1,1,1],". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},It=function(S,w,x){if(w=vt[p(w).toLowerCase()]){for(var I=S.attrs["stroke-width"]||"1",R={round:I,square:I,butt:0}[S.attrs["stroke-linecap"]||x["stroke-linecap"]]||0,j=[],F=w.length;F--;)j[F]=w[F]*I+(F%2?1:-1)*R;V(S.node,{"stroke-dasharray":j.join(",")})}else V(S.node,{"stroke-dasharray":"none"})},kt=function(S,w){var x=S.node,I=S.attrs,R=x.style.visibility;for(var j in x.style.visibility="hidden",w)if(w[l](j)){if(!a._availableAttrs[l](j))continue;var F=w[j];switch(I[j]=F,j){case"blur":S.blur(F);break;case"title":var rt=x.getElementsByTagName("title");if(rt.length&&(rt=rt[0]))rt.firstChild.nodeValue=F;else{rt=V("title");var G=a._g.doc.createTextNode(F);rt.appendChild(G),x.appendChild(rt)}break;case"href":case"target":var st=x.parentNode;if(st.tagName.toLowerCase()!="a"){var yt=V("a");st.insertBefore(yt,x),yt.appendChild(x),st=yt}j=="target"?st.setAttributeNS(H,"show",F=="blank"?"new":F):st.setAttributeNS(H,j,F);break;case"cursor":x.style.cursor=F;break;case"transform":S.transform(F);break;case"arrow-start":Et(S,F);break;case"arrow-end":Et(S,F,1);break;case"clip-rect":var St=p(F).split(M);if(St.length==4){S.clip&&S.clip.parentNode.parentNode.removeChild(S.clip.parentNode);var Ft=V("clipPath"),O=V("rect");Ft.id=a.createUUID(),V(O,{x:St[0],y:St[1],width:St[2],height:St[3]}),Ft.appendChild(O),S.paper.defs.appendChild(Ft),V(x,{"clip-path":"url(#"+Ft.id+")"}),S.clip=O}if(!F){var D=x.getAttribute("clip-path");if(D){var B=a._g.doc.getElementById(D.replace(/(^url\(#|\)$)/g,P));B&&B.parentNode.removeChild(B),V(x,{"clip-path":P}),delete S.clip}}break;case"path":S.type=="path"&&(V(x,{d:F?I.path=a._pathToAbsolute(F):"M0,0"}),S._.dirty=1,S._.arrows&&("startString"in S._.arrows&&Et(S,S._.arrows.startString),"endString"in S._.arrows&&Et(S,S._.arrows.endString,1)));break;case"width":if(x.setAttribute(j,F),S._.dirty=1,!I.fx)break;j="x",F=I.x;case"x":I.fx&&(F=-I.x-(I.width||0));case"rx":if(j=="rx"&&S.type=="rect")break;case"cx":x.setAttribute(j,F),S.pattern&&Pt(S),S._.dirty=1;break;case"height":if(x.setAttribute(j,F),S._.dirty=1,!I.fy)break;j="y",F=I.y;case"y":I.fy&&(F=-I.y-(I.height||0));case"ry":if(j=="ry"&&S.type=="rect")break;case"cy":x.setAttribute(j,F),S.pattern&&Pt(S),S._.dirty=1;break;case"r":S.type=="rect"?V(x,{rx:F,ry:F}):x.setAttribute(j,F),S._.dirty=1;break;case"src":S.type=="image"&&x.setAttributeNS(H,"href",F);break;case"stroke-width":S._.sx==1&&S._.sy==1||(F/=_(N(S._.sx),N(S._.sy))||1),x.setAttribute(j,F),I["stroke-dasharray"]&&It(S,I["stroke-dasharray"],w),S._.arrows&&("startString"in S._.arrows&&Et(S,S._.arrows.startString),"endString"in S._.arrows&&Et(S,S._.arrows.endString,1));break;case"stroke-dasharray":It(S,F,w);break;case"fill":var X=p(F).match(a._ISURL);if(X){Ft=V("pattern");var Q=V("image");Ft.id=a.createUUID(),V(Ft,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1}),V(Q,{x:0,y:0,"xlink:href":X[1]}),Ft.appendChild(Q),function(tt){a._preload(X[1],function(){var bt=this.offsetWidth,Tt=this.offsetHeight;V(tt,{width:bt,height:Tt}),V(Q,{width:bt,height:Tt})})}(Ft),S.paper.defs.appendChild(Ft),V(x,{fill:"url(#"+Ft.id+")"}),S.pattern=Ft,S.pattern&&Pt(S);break}var K=a.getRGB(F);if(K.error){if((S.type=="circle"||S.type=="ellipse"||p(F).charAt()!="r")&&ht(S,F)){if("opacity"in I||"fill-opacity"in I){var pt=a._g.doc.getElementById(x.getAttribute("fill").replace(/^url\(#|\)$/g,P));if(pt){var nt=pt.getElementsByTagName("stop");V(nt[nt.length-1],{"stop-opacity":("opacity"in I?I.opacity:1)*("fill-opacity"in I?I["fill-opacity"]:1)})}}I.gradient=F,I.fill="none";break}}else delete w.gradient,delete I.gradient,!a.is(I.opacity,"undefined")&&a.is(w.opacity,"undefined")&&V(x,{opacity:I.opacity}),!a.is(I["fill-opacity"],"undefined")&&a.is(w["fill-opacity"],"undefined")&&V(x,{"fill-opacity":I["fill-opacity"]});K[l]("opacity")&&V(x,{"fill-opacity":K.opacity>1?K.opacity/100:K.opacity});case"stroke":K=a.getRGB(F),x.setAttribute(j,K.hex),j=="stroke"&&K[l]("opacity")&&V(x,{"stroke-opacity":K.opacity>1?K.opacity/100:K.opacity}),j=="stroke"&&S._.arrows&&("startString"in S._.arrows&&Et(S,S._.arrows.startString),"endString"in S._.arrows&&Et(S,S._.arrows.endString,1));break;case"gradient":(S.type=="circle"||S.type=="ellipse"||p(F).charAt()!="r")&&ht(S,F);break;case"opacity":I.gradient&&!I[l]("stroke-opacity")&&V(x,{"stroke-opacity":F>1?F/100:F});case"fill-opacity":if(I.gradient){(pt=a._g.doc.getElementById(x.getAttribute("fill").replace(/^url\(#|\)$/g,P)))&&(nt=pt.getElementsByTagName("stop"),V(nt[nt.length-1],{"stop-opacity":F}));break}default:j=="font-size"&&(F=g(F,10)+"px");var ft=j.replace(/(\-.)/g,function(tt){return tt.substring(1).toUpperCase()});x.style[ft]=F,S._.dirty=1,x.setAttribute(j,F)}}Ut(S,w),x.style.visibility=R},Ut=function(S,w){if(S.type=="text"&&(w[l]("text")||w[l]("font")||w[l]("font-size")||w[l]("x")||w[l]("y"))){var x=S.attrs,I=S.node,R=I.firstChild?g(a._g.doc.defaultView.getComputedStyle(I.firstChild,P).getPropertyValue("font-size"),10):10;if(w[l]("text")){for(x.text=w.text;I.firstChild;)I.removeChild(I.firstChild);for(var j,F=p(w.text).split(`
51
+ `),rt=[],G=0,st=F.length;G<st;G++)j=V("tspan"),G&&V(j,{dy:1.2*R,x:x.x}),j.appendChild(a._g.doc.createTextNode(F[G])),I.appendChild(j),rt[G]=j}else for(G=0,st=(rt=I.getElementsByTagName("tspan")).length;G<st;G++)G?V(rt[G],{dy:1.2*R,x:x.x}):V(rt[0],{dy:0});V(I,{x:x.x,y:x.y}),S._.dirty=1;var yt=S._getBBox(),St=x.y-(yt.y+yt.height/2);St&&a.is(St,"finite")&&V(rt[0],{dy:St})}},jt=function(S){return S.parentNode&&S.parentNode.tagName.toLowerCase()==="a"?S.parentNode:S},Ot=function(S,w){this[0]=this.node=S,S.raphael=!0,this.id=("0000"+(Math.random()*Math.pow(36,5)<<0).toString(36)).slice(-5),S.raphaelid=this.id,this.matrix=a.matrix(),this.realPath=null,this.paper=w,this.attrs=this.attrs||{},this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1},!w.bottom&&(w.bottom=this),this.prev=w.top,w.top&&(w.top.next=this),w.top=this,this.next=null},W=a.el;Ot.prototype=W,W.constructor=Ot,a._engine.path=function(S,w){var x=V("path");w.canvas&&w.canvas.appendChild(x);var I=new Ot(x,w);return I.type="path",kt(I,{fill:"none",stroke:"#000",path:S}),I},W.rotate=function(S,w,x){if(this.removed)return this;if((S=p(S).split(M)).length-1&&(w=m(S[1]),x=m(S[2])),S=m(S[0]),x==null&&(w=x),w==null||x==null){var I=this.getBBox(1);w=I.x+I.width/2,x=I.y+I.height/2}return this.transform(this._.transform.concat([["r",S,w,x]])),this},W.scale=function(S,w,x,I){if(this.removed)return this;if((S=p(S).split(M)).length-1&&(w=m(S[1]),x=m(S[2]),I=m(S[3])),S=m(S[0]),w==null&&(w=S),I==null&&(x=I),x==null||I==null)var R=this.getBBox(1);return x=x??R.x+R.width/2,I=I??R.y+R.height/2,this.transform(this._.transform.concat([["s",S,w,x,I]])),this},W.translate=function(S,w){return this.removed?this:((S=p(S).split(M)).length-1&&(w=m(S[1])),S=m(S[0])||0,w=+w||0,this.transform(this._.transform.concat([["t",S,w]])),this)},W.transform=function(S){var w=this._;if(S==null)return w.transform;if(a._extractTransform(this,S),this.clip&&V(this.clip,{transform:this.matrix.invert()}),this.pattern&&Pt(this),this.node&&V(this.node,{transform:this.matrix}),w.sx!=1||w.sy!=1){var x=this.attrs[l]("stroke-width")?this.attrs["stroke-width"]:1;this.attr({"stroke-width":x})}return this},W.hide=function(){return this.removed||(this.node.style.display="none"),this},W.show=function(){return this.removed||(this.node.style.display=""),this},W.remove=function(){var S=jt(this.node);if(!this.removed&&S.parentNode){var w=this.paper;for(var x in w.__set__&&w.__set__.exclude(this),z.unbind("raphael.*.*."+this.id),this.gradient&&w.defs.removeChild(this.gradient),a._tear(this,w),S.parentNode.removeChild(S),this.removeData(),this)this[x]=typeof this[x]=="function"?a._removedFactory(x):null;this.removed=!0}},W._getBBox=function(){if(this.node.style.display=="none"){this.show();var S=!0}var w,x=!1;this.paper.canvas.parentElement?w=this.paper.canvas.parentElement.style:this.paper.canvas.parentNode&&(w=this.paper.canvas.parentNode.style),w&&w.display=="none"&&(x=!0,w.display="");var I={};try{I=this.node.getBBox()}catch{I={x:this.node.clientLeft,y:this.node.clientTop,width:this.node.clientWidth,height:this.node.clientHeight}}finally{I=I||{},x&&(w.display="none")}return S&&this.hide(),I},W.attr=function(S,w){if(this.removed)return this;if(S==null){var x={};for(var I in this.attrs)this.attrs[l](I)&&(x[I]=this.attrs[I]);return x.gradient&&x.fill=="none"&&(x.fill=x.gradient)&&delete x.gradient,x.transform=this._.transform,x}if(w==null&&a.is(S,"string")){if(S=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;if(S=="transform")return this._.transform;for(var R=S.split(M),j={},F=0,rt=R.length;F<rt;F++)(S=R[F])in this.attrs?j[S]=this.attrs[S]:a.is(this.paper.customAttributes[S],"function")?j[S]=this.paper.customAttributes[S].def:j[S]=a._availableAttrs[S];return rt-1?j:j[R[0]]}if(w==null&&a.is(S,"array")){for(j={},F=0,rt=S.length;F<rt;F++)j[S[F]]=this.attr(S[F]);return j}if(w!=null){var G={};G[S]=w}else S!=null&&a.is(S,"object")&&(G=S);for(var st in G)z("raphael.attr."+st+"."+this.id,this,G[st]);for(st in this.paper.customAttributes)if(this.paper.customAttributes[l](st)&&G[l](st)&&a.is(this.paper.customAttributes[st],"function")){var yt=this.paper.customAttributes[st].apply(this,[].concat(G[st]));for(var St in this.attrs[st]=G[st],yt)yt[l](St)&&(G[St]=yt[St])}return kt(this,G),this},W.toFront=function(){if(this.removed)return this;var S=jt(this.node);S.parentNode.appendChild(S);var w=this.paper;return w.top!=this&&a._tofront(this,w),this},W.toBack=function(){if(this.removed)return this;var S=jt(this.node),w=S.parentNode;return w.insertBefore(S,w.firstChild),a._toback(this,this.paper),this.paper,this},W.insertAfter=function(S){if(this.removed||!S)return this;var w=jt(this.node),x=jt(S.node||S[S.length-1].node);return x.nextSibling?x.parentNode.insertBefore(w,x.nextSibling):x.parentNode.appendChild(w),a._insertafter(this,S,this.paper),this},W.insertBefore=function(S){if(this.removed||!S)return this;var w=jt(this.node),x=jt(S.node||S[0].node);return x.parentNode.insertBefore(w,x),a._insertbefore(this,S,this.paper),this},W.blur=function(S){var w=this;if(+S!=0){var x=V("filter"),I=V("feGaussianBlur");w.attrs.blur=S,x.id=a.createUUID(),V(I,{stdDeviation:+S||1.5}),x.appendChild(I),w.paper.defs.appendChild(x),w._blur=x,V(w.node,{filter:"url(#"+x.id+")"})}else w._blur&&(w._blur.parentNode.removeChild(w._blur),delete w._blur,delete w.attrs.blur),w.node.removeAttribute("filter");return w},a._engine.circle=function(S,w,x,I){var R=V("circle");S.canvas&&S.canvas.appendChild(R);var j=new Ot(R,S);return j.attrs={cx:w,cy:x,r:I,fill:"none",stroke:"#000"},j.type="circle",V(R,j.attrs),j},a._engine.rect=function(S,w,x,I,R,j){var F=V("rect");S.canvas&&S.canvas.appendChild(F);var rt=new Ot(F,S);return rt.attrs={x:w,y:x,width:I,height:R,rx:j||0,ry:j||0,fill:"none",stroke:"#000"},rt.type="rect",V(F,rt.attrs),rt},a._engine.ellipse=function(S,w,x,I,R){var j=V("ellipse");S.canvas&&S.canvas.appendChild(j);var F=new Ot(j,S);return F.attrs={cx:w,cy:x,rx:I,ry:R,fill:"none",stroke:"#000"},F.type="ellipse",V(j,F.attrs),F},a._engine.image=function(S,w,x,I,R,j){var F=V("image");V(F,{x,y:I,width:R,height:j,preserveAspectRatio:"none"}),F.setAttributeNS(H,"href",w),S.canvas&&S.canvas.appendChild(F);var rt=new Ot(F,S);return rt.attrs={x,y:I,width:R,height:j,src:w},rt.type="image",rt},a._engine.text=function(S,w,x,I){var R=V("text");S.canvas&&S.canvas.appendChild(R);var j=new Ot(R,S);return j.attrs={x:w,y:x,"text-anchor":"middle",text:I,"font-family":a._availableAttrs["font-family"],"font-size":a._availableAttrs["font-size"],stroke:"none",fill:"#000"},j.type="text",kt(j,j.attrs),j},a._engine.setSize=function(S,w){return this.width=S||this.width,this.height=w||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 S=a._getContainer.apply(0,arguments),w=S&&S.container;if(!w)throw new Error("SVG container not found.");var x,I=S.x,R=S.y,j=S.width,F=S.height,rt=V("svg"),G="overflow:hidden;";return I=I||0,R=R||0,V(rt,{height:F=F||342,version:1.1,width:j=j||512,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),w==1?(rt.style.cssText=G+"position:absolute;left:"+I+"px;top:"+R+"px",a._g.doc.body.appendChild(rt),x=1):(rt.style.cssText=G+"position:relative",w.firstChild?w.insertBefore(rt,w.firstChild):w.appendChild(rt)),(w=new a._Paper).width=j,w.height=F,w.canvas=rt,w.clear(),w._left=w._top=0,x&&(w.renderfix=function(){}),w.renderfix(),w},a._engine.setViewBox=function(S,w,x,I,R){z("raphael.setViewBox",this,this._viewBox,[S,w,x,I,R]);var j,F,rt=this.getSize(),G=_(x/rt.width,I/rt.height),st=this.top,yt=R?"xMidYMid meet":"xMinYMin";for(S==null?(this._vbSize&&(G=1),delete this._vbSize,j="0 0 "+this.width+$+this.height):(this._vbSize=G,j=S+$+w+$+x+$+I),V(this.canvas,{viewBox:j,preserveAspectRatio:yt});G&&st;)F="stroke-width"in st.attrs?st.attrs["stroke-width"]:1,st.attr({"stroke-width":F}),st._.dirty=1,st._.dirtyT=1,st=st.prev;return this._viewBox=[S,w,x,I,!!R],this},a.prototype.renderfix=function(){var S,w=this.canvas,x=w.style;try{S=w.getScreenCTM()||w.createSVGMatrix()}catch{S=w.createSVGMatrix()}var I=-S.e%1,R=-S.f%1;(I||R)&&(I&&(this._left=(this._left+I)%1,x.left=this._left+"px"),R&&(this._top=(this._top+R)%1,x.top=this._top+"px"))},a.prototype.clear=function(){a.eve("raphael.clear",this);for(var S=this.canvas;S.firstChild;)S.removeChild(S.firstChild);this.bottom=this.top=null,(this.desc=V("desc")).appendChild(a._g.doc.createTextNode("Created with Raphaël "+a.version)),S.appendChild(this.desc),S.appendChild(this.defs=V("defs"))},a.prototype.remove=function(){for(var S in z("raphael.remove",this),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this)this[S]=typeof this[S]=="function"?a._removedFactory(S):null};var at=a.st;for(var mt in W)W[l](mt)&&!at[l](mt)&&(at[mt]=function(S){return function(){var w=arguments;return this.forEach(function(x){x[S].apply(x,w)})}}(mt))}}.apply(i,s))===void 0||(n.exports=o)},function(n,i,r){var s,o;s=[r(0)],(o=function(a){if(!a||a.vml){var l="hasOwnProperty",p=String,m=parseFloat,g=Math,d=g.round,_=g.max,N=g.min,C=g.abs,M=/[, ]+/,z=a.eve,P=" ",$="",H={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},Y=/([clmz]),?([^clmz]*)/gi,J=/ progid:\S+Blur\([^\)]+\)/g,V=/-?[^,\s-]+/g,ht="position:absolute;left:0;top:0;width:1px;height:1px;behavior:url(#default#VML)",_t=21600,Pt={path:1,rect:1,image:1},Et={circle:1,ellipse:1},vt=function(w,x,I){var R=a.matrix();return R.rotate(-w,.5,.5),{dx:R.x(x,I),dy:R.y(x,I)}},It=function(w,x,I,R,j,F){var rt=w._,G=w.matrix,st=rt.fillpos,yt=w.node,St=yt.style,Ft=1,O="",D=_t/x,B=_t/I;if(St.visibility="hidden",x&&I){if(yt.coordsize=C(D)+P+C(B),St.rotation=F*(x*I<0?-1:1),F){var X=vt(F,R,j);R=X.dx,j=X.dy}if(x<0&&(O+="x"),I<0&&(O+=" y")&&(Ft=-1),St.flip=O,yt.coordorigin=R*-D+P+j*-B,st||rt.fillsize){var Q=yt.getElementsByTagName("fill");Q=Q&&Q[0],yt.removeChild(Q),st&&(X=vt(F,G.x(st[0],st[1]),G.y(st[0],st[1])),Q.position=X.dx*Ft+P+X.dy*Ft),rt.fillsize&&(Q.size=rt.fillsize[0]*C(x)+P+rt.fillsize[1]*C(I)),yt.appendChild(Q)}St.visibility="visible"}};a.toString=function(){return`Your browser doesn’t support SVG. Falling down to VML.
52
+ You are running Raphaël `+this.version};var kt,Ut=function(w,x,I){for(var R=p(x).toLowerCase().split("-"),j=I?"end":"start",F=R.length,rt="classic",G="medium",st="medium";F--;)switch(R[F]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":rt=R[F];break;case"wide":case"narrow":st=R[F];break;case"long":case"short":G=R[F]}var yt=w.node.getElementsByTagName("stroke")[0];yt[j+"arrow"]=rt,yt[j+"arrowlength"]=G,yt[j+"arrowwidth"]=st},jt=function(w,x){w.attrs=w.attrs||{};var I=w.node,R=w.attrs,j=I.style,F=Pt[w.type]&&(x.x!=R.x||x.y!=R.y||x.width!=R.width||x.height!=R.height||x.cx!=R.cx||x.cy!=R.cy||x.rx!=R.rx||x.ry!=R.ry||x.r!=R.r),rt=Et[w.type]&&(R.cx!=x.cx||R.cy!=x.cy||R.r!=x.r||R.rx!=x.rx||R.ry!=x.ry),G=w;for(var st in x)x[l](st)&&(R[st]=x[st]);if(F&&(R.path=a._getPath[w.type](w),w._.dirty=1),x.href&&(I.href=x.href),x.title&&(I.title=x.title),x.target&&(I.target=x.target),x.cursor&&(j.cursor=x.cursor),"blur"in x&&w.blur(x.blur),(x.path&&w.type=="path"||F)&&(I.path=function(Te){var Re=/[ahqstv]/gi,pn=a._pathToAbsolute;if(p(Te).match(Re)&&(pn=a._path2curve),Re=/[clmz]/g,pn==a._pathToAbsolute&&!p(Te).match(Re)){var oe=p(Te).replace(Y,function(Ks,si,Rn){var En=[],Yi=si.toLowerCase()=="m",Vn=H[si];return Rn.replace(V,function(Fn){Yi&&En.length==2&&(Vn+=En+H[si=="m"?"l":"L"],En=[]),En.push(d(Fn*_t))}),Vn+En});return oe}var Ee,Ve,Oi=pn(Te);oe=[];for(var $n=0,ri=Oi.length;$n<ri;$n++){Ee=Oi[$n],(Ve=Oi[$n][0].toLowerCase())=="z"&&(Ve="x");for(var on=1,Fe=Ee.length;on<Fe;on++)Ve+=d(Ee[on]*_t)+(on!=Fe-1?",":$);oe.push(Ve)}return oe.join(P)}(~p(R.path).toLowerCase().indexOf("r")?a._pathToAbsolute(R.path):R.path),w._.dirty=1,w.type=="image"&&(w._.fillpos=[R.x,R.y],w._.fillsize=[R.width,R.height],It(w,1,1,0,0,0))),"transform"in x&&w.transform(x.transform),rt){var yt=+R.cx,St=+R.cy,Ft=+R.rx||+R.r||0,O=+R.ry||+R.r||0;I.path=a.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",d((yt-Ft)*_t),d((St-O)*_t),d((yt+Ft)*_t),d((St+O)*_t),d(yt*_t)),w._.dirty=1}if("clip-rect"in x){var D=p(x["clip-rect"]).split(M);if(D.length==4){D[2]=+D[2]+ +D[0],D[3]=+D[3]+ +D[1];var B=I.clipRect||a._g.doc.createElement("div"),X=B.style;X.clip=a.format("rect({1}px {2}px {3}px {0}px)",D),I.clipRect||(X.position="absolute",X.top=0,X.left=0,X.width=w.paper.width+"px",X.height=w.paper.height+"px",I.parentNode.insertBefore(B,I),B.appendChild(I),I.clipRect=B)}x["clip-rect"]||I.clipRect&&(I.clipRect.style.clip="auto")}if(w.textpath){var Q=w.textpath.style;x.font&&(Q.font=x.font),x["font-family"]&&(Q.fontFamily='"'+x["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,$)+'"'),x["font-size"]&&(Q.fontSize=x["font-size"]),x["font-weight"]&&(Q.fontWeight=x["font-weight"]),x["font-style"]&&(Q.fontStyle=x["font-style"])}if("arrow-start"in x&&Ut(G,x["arrow-start"]),"arrow-end"in x&&Ut(G,x["arrow-end"],1),x.opacity!=null||x.fill!=null||x.src!=null||x.stroke!=null||x["stroke-width"]!=null||x["stroke-opacity"]!=null||x["fill-opacity"]!=null||x["stroke-dasharray"]!=null||x["stroke-miterlimit"]!=null||x["stroke-linejoin"]!=null||x["stroke-linecap"]!=null){var K=I.getElementsByTagName("fill");if(!(K=K&&K[0])&&(K=kt("fill")),w.type=="image"&&x.src&&(K.src=x.src),x.fill&&(K.on=!0),K.on!=null&&x.fill!="none"&&x.fill!==null||(K.on=!1),K.on&&x.fill){var pt=p(x.fill).match(a._ISURL);if(pt){K.parentNode==I&&I.removeChild(K),K.rotate=!0,K.src=pt[1],K.type="tile";var nt=w.getBBox(1);K.position=nt.x+P+nt.y,w._.fillpos=[nt.x,nt.y],a._preload(pt[1],function(){w._.fillsize=[this.offsetWidth,this.offsetHeight]})}else K.color=a.getRGB(x.fill).hex,K.src=$,K.type="solid",a.getRGB(x.fill).error&&(G.type in{circle:1,ellipse:1}||p(x.fill).charAt()!="r")&&Ot(G,x.fill,K)&&(R.fill="none",R.gradient=x.fill,K.rotate=!1)}if("fill-opacity"in x||"opacity"in x){var ft=((+R["fill-opacity"]+1||2)-1)*((+R.opacity+1||2)-1)*((+a.getRGB(x.fill).o+1||2)-1);ft=N(_(ft,0),1),K.opacity=ft,K.src&&(K.color="none")}I.appendChild(K);var tt=I.getElementsByTagName("stroke")&&I.getElementsByTagName("stroke")[0],bt=!1;!tt&&(bt=tt=kt("stroke")),(x.stroke&&x.stroke!="none"||x["stroke-width"]||x["stroke-opacity"]!=null||x["stroke-dasharray"]||x["stroke-miterlimit"]||x["stroke-linejoin"]||x["stroke-linecap"])&&(tt.on=!0),(x.stroke=="none"||x.stroke===null||tt.on==null||x.stroke==0||x["stroke-width"]==0)&&(tt.on=!1);var Tt=a.getRGB(x.stroke);tt.on&&x.stroke&&(tt.color=Tt.hex),ft=((+R["stroke-opacity"]+1||2)-1)*((+R.opacity+1||2)-1)*((+Tt.o+1||2)-1);var Mt=.75*(m(x["stroke-width"])||1);if(ft=N(_(ft,0),1),x["stroke-width"]==null&&(Mt=R["stroke-width"]),x["stroke-width"]&&(tt.weight=Mt),Mt&&Mt<1&&(ft*=Mt)&&(tt.weight=1),tt.opacity=ft,x["stroke-linejoin"]&&(tt.joinstyle=x["stroke-linejoin"]||"miter"),tt.miterlimit=x["stroke-miterlimit"]||8,x["stroke-linecap"]&&(tt.endcap=x["stroke-linecap"]=="butt"?"flat":x["stroke-linecap"]=="square"?"square":"round"),"stroke-dasharray"in x){var Vt={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};tt.dashstyle=Vt[l](x["stroke-dasharray"])?Vt[x["stroke-dasharray"]]:$}bt&&I.appendChild(tt)}if(G.type=="text"){G.paper.canvas.style.display=$;var Bt=G.paper.span,ee=R.font&&R.font.match(/\d+(?:\.\d*)?(?=px)/);j=Bt.style,R.font&&(j.font=R.font),R["font-family"]&&(j.fontFamily=R["font-family"]),R["font-weight"]&&(j.fontWeight=R["font-weight"]),R["font-style"]&&(j.fontStyle=R["font-style"]),ee=m(R["font-size"]||ee&&ee[0])||10,j.fontSize=100*ee+"px",G.textpath.string&&(Bt.innerHTML=p(G.textpath.string).replace(/</g,"&#60;").replace(/&/g,"&#38;").replace(/\n/g,"<br>"));var re=Bt.getBoundingClientRect();G.W=R.w=(re.right-re.left)/100,G.H=R.h=(re.bottom-re.top)/100,G.X=R.x,G.Y=R.y+G.H/2,("x"in x||"y"in x)&&(G.path.v=a.format("m{0},{1}l{2},{1}",d(R.x*_t),d(R.y*_t),d(R.x*_t)+1));for(var le=["x","y","text","font","font-family","font-weight","font-style","font-size"],we=0,en=le.length;we<en;we++)if(le[we]in x){G._.dirty=1;break}switch(R["text-anchor"]){case"start":G.textpath.style["v-text-align"]="left",G.bbx=G.W/2;break;case"end":G.textpath.style["v-text-align"]="right",G.bbx=-G.W/2;break;default:G.textpath.style["v-text-align"]="center",G.bbx=0}G.textpath.style["v-text-kern"]=!0}},Ot=function(w,x,I){w.attrs=w.attrs||{},w.attrs;var R=Math.pow,j="linear",F=".5 .5";if(w.attrs.gradient=x,x=(x=p(x).replace(a._radial_gradient,function(Ft,O,D){return j="radial",O&&D&&(O=m(O),D=m(D),R(O-.5,2)+R(D-.5,2)>.25&&(D=g.sqrt(.25-R(O-.5,2))*(2*(D>.5)-1)+.5),F=O+P+D),$})).split(/\s*\-\s*/),j=="linear"){var rt=x.shift();if(rt=-m(rt),isNaN(rt))return null}var G=a._parseDots(x);if(!G)return null;if(w=w.shape||w.node,G.length){w.removeChild(I),I.on=!0,I.method="none",I.color=G[0].color,I.color2=G[G.length-1].color;for(var st=[],yt=0,St=G.length;yt<St;yt++)G[yt].offset&&st.push(G[yt].offset+P+G[yt].color);I.colors=st.length?st.join():"0% "+I.color,j=="radial"?(I.type="gradientTitle",I.focus="100%",I.focussize="0 0",I.focusposition=F,I.angle=0):(I.type="gradient",I.angle=(270-rt)%360),w.appendChild(I)}return 1},W=function(w,x){this[0]=this.node=w,w.raphael=!0,this.id=a._oid++,w.raphaelid=this.id,this.X=0,this.Y=0,this.attrs={},this.paper=x,this.matrix=a.matrix(),this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1},!x.bottom&&(x.bottom=this),this.prev=x.top,x.top&&(x.top.next=this),x.top=this,this.next=null},at=a.el;W.prototype=at,at.constructor=W,at.transform=function(w){if(w==null)return this._.transform;var x,I=this.paper._viewBoxShift,R=I?"s"+[I.scale,I.scale]+"-1-1t"+[I.dx,I.dy]:$;I&&(x=w=p(w).replace(/\.{3}|\u2026/g,this._.transform||$)),a._extractTransform(this,R+w);var j,F=this.matrix.clone(),rt=this.skew,G=this.node,st=~p(this.attrs.fill).indexOf("-"),yt=!p(this.attrs.fill).indexOf("url(");if(F.translate(1,1),yt||st||this.type=="image")if(rt.matrix="1 0 0 1",rt.offset="0 0",j=F.split(),st&&j.noRotation||!j.isSimple){G.style.filter=F.toFilter();var St=this.getBBox(),Ft=this.getBBox(1),O=St.x-Ft.x,D=St.y-Ft.y;G.coordorigin=O*-_t+P+D*-_t,It(this,1,1,O,D,0)}else G.style.filter=$,It(this,j.scalex,j.scaley,j.dx,j.dy,j.rotate);else G.style.filter=$,rt.matrix=p(F),rt.offset=F.offset();return x!==null&&(this._.transform=x,a._extractTransform(this,x)),this},at.rotate=function(w,x,I){if(this.removed)return this;if(w!=null){if((w=p(w).split(M)).length-1&&(x=m(w[1]),I=m(w[2])),w=m(w[0]),I==null&&(x=I),x==null||I==null){var R=this.getBBox(1);x=R.x+R.width/2,I=R.y+R.height/2}return this._.dirtyT=1,this.transform(this._.transform.concat([["r",w,x,I]])),this}},at.translate=function(w,x){return this.removed?this:((w=p(w).split(M)).length-1&&(x=m(w[1])),w=m(w[0])||0,x=+x||0,this._.bbox&&(this._.bbox.x+=w,this._.bbox.y+=x),this.transform(this._.transform.concat([["t",w,x]])),this)},at.scale=function(w,x,I,R){if(this.removed)return this;if((w=p(w).split(M)).length-1&&(x=m(w[1]),I=m(w[2]),R=m(w[3]),isNaN(I)&&(I=null),isNaN(R)&&(R=null)),w=m(w[0]),x==null&&(x=w),R==null&&(I=R),I==null||R==null)var j=this.getBBox(1);return I=I??j.x+j.width/2,R=R??j.y+j.height/2,this.transform(this._.transform.concat([["s",w,x,I,R]])),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=$),this},at.auxGetBBox=a.el.getBBox,at.getBBox=function(){var w=this.auxGetBBox();if(this.paper&&this.paper._viewBoxShift){var x={},I=1/this.paper._viewBoxShift.scale;return x.x=w.x-this.paper._viewBoxShift.dx,x.x*=I,x.y=w.y-this.paper._viewBoxShift.dy,x.y*=I,x.width=w.width*I,x.height=w.height*I,x.x2=x.x+x.width,x.y2=x.y+x.height,x}return w},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 w 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[w]=typeof this[w]=="function"?a._removedFactory(w):null;this.removed=!0}},at.attr=function(w,x){if(this.removed)return this;if(w==null){var I={};for(var R in this.attrs)this.attrs[l](R)&&(I[R]=this.attrs[R]);return I.gradient&&I.fill=="none"&&(I.fill=I.gradient)&&delete I.gradient,I.transform=this._.transform,I}if(x==null&&a.is(w,"string")){if(w=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;for(var j=w.split(M),F={},rt=0,G=j.length;rt<G;rt++)(w=j[rt])in this.attrs?F[w]=this.attrs[w]:a.is(this.paper.customAttributes[w],"function")?F[w]=this.paper.customAttributes[w].def:F[w]=a._availableAttrs[w];return G-1?F:F[j[0]]}if(this.attrs&&x==null&&a.is(w,"array")){for(F={},rt=0,G=w.length;rt<G;rt++)F[w[rt]]=this.attr(w[rt]);return F}var st;for(var yt in x!=null&&((st={})[w]=x),x==null&&a.is(w,"object")&&(st=w),st)z("raphael.attr."+yt+"."+this.id,this,st[yt]);if(st){for(yt in this.paper.customAttributes)if(this.paper.customAttributes[l](yt)&&st[l](yt)&&a.is(this.paper.customAttributes[yt],"function")){var St=this.paper.customAttributes[yt].apply(this,[].concat(st[yt]));for(var Ft in this.attrs[yt]=st[yt],St)St[l](Ft)&&(st[Ft]=St[Ft])}st.text&&this.type=="text"&&(this.textpath.string=st.text),jt(this,st)}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(w){return this.removed?this:(w.constructor==a.st.constructor&&(w=w[w.length-1]),w.node.nextSibling?w.node.parentNode.insertBefore(this.node,w.node.nextSibling):w.node.parentNode.appendChild(this.node),a._insertafter(this,w,this.paper),this)},at.insertBefore=function(w){return this.removed?this:(w.constructor==a.st.constructor&&(w=w[0]),w.node.parentNode.insertBefore(this.node,w.node),a._insertbefore(this,w,this.paper),this)},at.blur=function(w){var x=this.node.runtimeStyle,I=x.filter;return I=I.replace(J,$),+w!=0?(this.attrs.blur=w,x.filter=I+P+" progid:DXImageTransform.Microsoft.Blur(pixelradius="+(+w||1.5)+")",x.margin=a.format("-{0}px 0 0 -{0}px",d(+w||1.5))):(x.filter=I,x.margin=0,delete this.attrs.blur),this},a._engine.path=function(w,x){var I=kt("shape");I.style.cssText=ht,I.coordsize=_t+P+_t,I.coordorigin=x.coordorigin;var R=new W(I,x),j={fill:"none",stroke:"#000"};w&&(j.path=w),R.type="path",R.path=[],R.Path=$,jt(R,j),x.canvas&&x.canvas.appendChild(I);var F=kt("skew");return F.on=!0,I.appendChild(F),R.skew=F,R.transform($),R},a._engine.rect=function(w,x,I,R,j,F){var rt=a._rectPath(x,I,R,j,F),G=w.path(rt),st=G.attrs;return G.X=st.x=x,G.Y=st.y=I,G.W=st.width=R,G.H=st.height=j,st.r=F,st.path=rt,G.type="rect",G},a._engine.ellipse=function(w,x,I,R,j){var F=w.path();return F.attrs,F.X=x-R,F.Y=I-j,F.W=2*R,F.H=2*j,F.type="ellipse",jt(F,{cx:x,cy:I,rx:R,ry:j}),F},a._engine.circle=function(w,x,I,R){var j=w.path();return j.attrs,j.X=x-R,j.Y=I-R,j.W=j.H=2*R,j.type="circle",jt(j,{cx:x,cy:I,r:R}),j},a._engine.image=function(w,x,I,R,j,F){var rt=a._rectPath(I,R,j,F),G=w.path(rt).attr({stroke:"none"}),st=G.attrs,yt=G.node,St=yt.getElementsByTagName("fill")[0];return st.src=x,G.X=st.x=I,G.Y=st.y=R,G.W=st.width=j,G.H=st.height=F,st.path=rt,G.type="image",St.parentNode==yt&&yt.removeChild(St),St.rotate=!0,St.src=x,St.type="tile",G._.fillpos=[I,R],G._.fillsize=[j,F],yt.appendChild(St),It(G,1,1,0,0,0),G},a._engine.text=function(w,x,I,R){var j=kt("shape"),F=kt("path"),rt=kt("textpath");x=x||0,I=I||0,R=R||"",F.v=a.format("m{0},{1}l{2},{1}",d(x*_t),d(I*_t),d(x*_t)+1),F.textpathok=!0,rt.string=p(R),rt.on=!0,j.style.cssText=ht,j.coordsize=_t+P+_t,j.coordorigin="0 0";var G=new W(j,w),st={fill:"#000",stroke:"none",font:a._availableAttrs.font,text:R};G.shape=j,G.path=F,G.textpath=rt,G.type="text",G.attrs.text=p(R),G.attrs.x=x,G.attrs.y=I,G.attrs.w=1,G.attrs.h=1,jt(G,st),j.appendChild(rt),j.appendChild(F),w.canvas.appendChild(j);var yt=kt("skew");return yt.on=!0,j.appendChild(yt),G.skew=yt,G.transform($),G},a._engine.setSize=function(w,x){var I=this.canvas.style;return this.width=w,this.height=x,w==+w&&(w+="px"),x==+x&&(x+="px"),I.width=w,I.height=x,I.clip="rect(0 "+w+" "+x+" 0)",this._viewBox&&a._engine.setViewBox.apply(this,this._viewBox),this},a._engine.setViewBox=function(w,x,I,R,j){a.eve("raphael.setViewBox",this,this._viewBox,[w,x,I,R,j]);var F,rt,G=this.getSize(),st=G.width,yt=G.height;return j&&(I*(F=yt/R)<st&&(w-=(st-I*F)/2/F),R*(rt=st/I)<yt&&(x-=(yt-R*rt)/2/rt)),this._viewBox=[w,x,I,R,!!j],this._viewBoxShift={dx:-w,dy:-x,scale:G},this.forEach(function(St){St.transform("...")}),this},a._engine.initWin=function(w){var x=w.document;x.styleSheets.length<31?x.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)"):x.styleSheets[0].addRule(".rvml","behavior:url(#default#VML)");try{!x.namespaces.rvml&&x.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),kt=function(I){return x.createElement("<rvml:"+I+' class="rvml">')}}catch{kt=function(R){return x.createElement("<"+R+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},a._engine.initWin(a._g.win),a._engine.create=function(){var w=a._getContainer.apply(0,arguments),x=w.container,I=w.height,R=w.width,j=w.x,F=w.y;if(!x)throw new Error("VML container not found.");var rt=new a._Paper,G=rt.canvas=a._g.doc.createElement("div"),st=G.style;return j=j||0,F=F||0,R=R||512,I=I||342,rt.width=R,rt.height=I,R==+R&&(R+="px"),I==+I&&(I+="px"),rt.coordsize=216e5+P+216e5,rt.coordorigin="0 0",rt.span=a._g.doc.createElement("span"),rt.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",G.appendChild(rt.span),st.cssText=a.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",R,I),x==1?(a._g.doc.body.appendChild(G),st.left=j+"px",st.top=F+"px",st.position="absolute"):x.firstChild?x.insertBefore(G,x.firstChild):x.appendChild(G),rt.renderfix=function(){},rt},a.prototype.clear=function(){a.eve("raphael.clear",this),this.canvas.innerHTML=$,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 w in a.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas),this)this[w]=typeof this[w]=="function"?a._removedFactory(w):null;return!0};var mt=a.st;for(var S in at)at[l](S)&&!mt[l](S)&&(mt[S]=function(w){return function(){var x=arguments;return this.forEach(function(I){I[w].apply(I,x)})}}(S))}}.apply(i,s))===void 0||(n.exports=o)}])})})(Eh);var mg=Eh.exports;const We=ra(mg);class Ba{points;constructor(t=[]){this.points=t}toSVGPathData(){const t=[];for(let n=0,i=this.length;n<i;n++)t.push([n===0?"M":"L",this.points[n].x,this.points[n].y]);return t}toSVGPathD(){let t="";for(let n=0,i=this.length;n<i;n++)t+=(n===0?"M":"L")+this.points[n].x+","+this.points[n].y;return t}get length(){return this.points.length}addPoint(t){this.points.push(t)}getPoint(t){return this.points[t]}isContainPoint(t){const n=t.x,i=t.y,r=this.length;let s=!1;const o=2e-10;for(let a=0,l=r-1;a<r;l=a,a++){const p=this.points[a].x,m=this.points[a].y,g=this.points[l].x,d=this.points[l].y;if(p===n&&m===i||g===n&&d===i||i===m&&i===d)return!0;if(i>=m&&i<d||i<m&&i>=d){const _=(g-p)/(d-m),N=p+_*(i-m);if(N===n||Math.abs(N-n)<o)return!0;N>n&&(s=!s)}}return s}[Symbol.iterator](){let t=0;return{next:()=>({value:t>=this.length-1?this.points[++t]:void 0,done:t>=this.length})}}static generateInMultiplePoint(t,n,i,r,s=1){const o=new Ba;for(let a=0;a<=s*i;a+=1){const l=Math.floor(a/s)/i*2*Math.PI,p=t+Math.cos(l)*r,m=n+Math.sin(l)*r;o.addPoint(new ii({x:p,y:m}))}return o}}const Ch=Ba;We.easing_formulas.swing=function(e){return e+Math.sin(e*Math.PI*2)/2},We.easing_formulas.may_cause_seizures=function(e){return e+.2*Math.random()-.1},We.fn.importSVG=function(e,t){const n=Si.fromRawSVG(e);return n.toRaphael(this,(i,r)=>{n.save(),t&&t(i),r(),n.restore()}),this},We.fn.NPolygonPath=function(e,t,n,i,r=2){return{shape:this.path(Ch.generateInMultiplePoint(e,t,n,i,r).toSVGPathD()),afterPath:Ch.generateInMultiplePoint(e,t,n*r,i,1).toSVGPathD()}},We.fn.zoom=function(e=1){return this.setViewBox(0,0,this.width/e,this.height/e),this},We.fn.brickwall=function(e,t,n,i,r){for(var s=i/r,o=n/3,a={fill:"firebrick",stroke:"#CCC"},l=0;l<r;l+=1){var p=this.rect(0,0,o,s).attr(a),m=this.rect(0,0,2*o,s).attr(a);l%2?(p.transform("T"+e+","+(t+l*s)),m.transform("T"+(e+o)+","+(t+l*s))):(m.transform("T"+e+","+(t+l*s)),p.transform("T"+(e+2*o)+","+(t+l*s)))}},We.fn.rosetta=function(e,t,n,i,r){const s=wh.generateRosetta(e,t,n,i,r);return s.center,this.path(s.toSVGPathD())},We.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(i){i=typeof i=="number"?i:.25,i=Math.max(0,Math.min(1,i)),i=(i-.5)*2;let r="M"+e.r+",0";r+="a"+e.r+","+e.r+" 0 0,0 0,"+e.r*2;let s=i>0?0:1;return i=Math.abs(i),i=i||1e-4,e.inner_r=e.r/Math.pow(i,.5),r+="M"+e.r+","+e.r*2,r+="a"+e.inner_r+","+e.inner_r+" 0 0,"+s+" 0,"+e.r*-2,r}var n=this.path(t(e.phase)).attr({"stroke-width":0,stroke:"#999",fill:"#FF9"}).transform("T"+e.x+","+e.y);return{setPhase:function(i){n.attr("path",t(i))}}},We.fn.star=function(e,t,n){let i="M"+e+","+(t-n);for(var r=0;r<6;r+=1){const s=270+r*144,o=e+n*Math.cos(s*Math.PI/180),a=t+n*Math.sin(s*Math.PI/180);i+="L"+o+","+a}return this.path(i).attr("stroke-width",0).attr("fill","red")},We.fn.heart=function(e=150,t=300){let n="M"+e+","+t;return n+="l120,-175a50,50 0 0,0 -120,-75a50,50 0 0,0 -120,75l120,175",this.path(n).attr("stroke","red").attr("fill","pink")},We.el.redder=function(){const e=We.getRGB(this.attr("fill"));e.r+=51,this.attr("fill","rgb("+e.r+","+e.g+","+e.b+")")},We.installCustomAttributes=function(e){e.customAttributes.redness=function(t){const n=255*(1-t/100);return{fill:"rgb(255,"+n+", "+n+")"}},e.customAttributes.progress=function(t){const n=this.data("progresspath"),i=this.attr(),r={x:0,y:0},s=this.data("progresstrail");if(!n)return{transform:"t0,0"};Object.prototype.hasOwnProperty.call(i,"width")&&(r.x=-this.attr("width")/2,r.y=-this.attr("height")/2);const o=n.getTotalLength(),a=n.getPointAtLength(t*o);return s&&s.attr("path",n.getSubpath(0,t*o)),{transform:"t"+(a.x+r.x)+","+(a.y+r.y)+"r"+a.alpha}}};const kh=We;class Si{pgs=[];history=[];save(){this.history.push(su(this.pgs))}restore(){const t=this.history.pop();t&&(this.pgs=t)}get size(){let t=0,n=0;return this.pgs.forEach(i=>{const r=i.pg;if(r){const[s,o,a,l]=r.bounds,[p,m]=r.size;t=Math.max(t,s,s+p,a),n=Math.max(n,o,o+m,l)}}),[Math.ceil(t),Math.ceil(n)]}static fromRawSVG(t){return Si.fromRawSVGUseRappar(t)}static fromRawSVGUseRappar(t){const n=new Si,i=W0(t);for(let r=0,s=i.length;r<s;r++){const o=i[r];if(o.type=="viewbox"&&o.width&&o.height)continue;const a={attrs:{}};for(const l in o)l==="type"||l==="path"||l==="transform"||(a.attrs[l]=o[l]);switch(o.type){case"path":a.d=o.path,a.pg=wh.fromSVGPathD(o.path,o.transform);break}n.pgs.push(a)}return n}toRaphael(t,n){let i;t instanceof HTMLElement?i=kh(HTMLElement):typeof t=="string"?i=kh(document.getElementById(t)):i=t;const[r,s]=this.size;i.setSize(r,s);const o=(a=!1)=>{for(let l=0,p=this.pgs.length;l<p;l++){const m=this.pgs[l];if(m.pg&&(m.raphaelPath?m.raphaelPath.attr("path",m.pg.toSVGPathD()):m.raphaelPath=i.path(m.pg.toSVGPathD()),m.raphaelPath.attr(m.attrs)),a&&n){const g=d=>{const{x:_,y:N}=wa(i.canvas,d),C=this.pgs.find(M=>M.raphaelPath?.isPointInside(_,N));C&&n?.(C,o)};m.raphaelPath?.unclick(g),m.raphaelPath?.click(g)}}};return o(!0),i}toCanvasOperation(t,n){let i;typeof t=="string"?i=document.getElementById(t):i=t;const[r,s]=this.size;i.width=r,i.height=s;const o=new Gi(i),a=()=>{o.clearRect(0,0,r,s);for(let p=0,m=this.pgs.length;p<m;p++){const g=this.pgs[p];g.pg&&(o.save(),this.toCanvasAttrs(o,g.attrs),g.pg.toCanvas(o),g.attrs.stroke!=="none"&&o.stroke(),g.attrs.fill!=="none"&&o.fill(),o.restore())}};a();const l=p=>{const{x:m,y:g}=wa(o.canvas,p),d=this.pgs.find(_=>_.pg?.isPointInPath(m,g));d&&n?.(d,a)};return i.removeEventListener("click",l),i.addEventListener("click",l),o}toCanvasAttrs(t,n){for(const i in n){const r=n[i];switch(i){case"fill":t.fillStyle=String(r);break;case"stroke":t.strokeStyle=String(r);break;case"stroke-width":t.lineWidth=Number(r);break;case"stroke-linecap":t.lineCap=r;break;case"stroke-linejoin":t.lineJoin=r;break}}}static toDownloadSVGElement(t,n="shape"){Zu(k0(t),`${n}.svg`)}toDownloadSVGElement(t,n="shape"){return Si.toDownloadSVGElement(t,n),this}static toDownloadSVGString(t,n="shape"){Zu(Ku(t),`${n}.svg`)}toDownloadSVGString(t,n="shape"){return Si.toDownloadSVGString(t,n),this}static getSVGDOM(t){if(t instanceof HTMLObjectElement||t instanceof HTMLIFrameElement)return t.contentDocument;if(t instanceof HTMLEmbedElement)return t.getSVGDocument()}}class Gi{canvas;context;customContext;constructor(t){this.canvas=t,this.context=t.getContext("2d",{willReadFrequently:!0}),this.customContext=new zs({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,n,i,r){return this.context.fillRect(t,n,i,r),this.customContext.fillRect(t,n,i,r),this}fillText(t,n,i,r){return this.context.fillText(t,n,i,r),this.customContext.fillText(t,n,i),this}setLineDash(t){return this.context.setLineDash(t),this.customContext.setLineDash(t),this}stroke(){return this.context.stroke(),this.customContext.stroke(),this}strokeText(t,n,i,r){return this.context.strokeText(t,n,i,r),this.customContext.strokeText(t,n,i),this}strokeRect(t,n,i,r){return this.context.strokeRect(t,n,i,r),this.customContext.strokeRect(t,n,i,r),this}clearRect(t=0,n=0,i=this.canvas.width,r=this.canvas.height){return this.context.clearRect(t,n,i,r),this.customContext.clearRect(t,n,i,r),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}isPointInPath(t,n){return this.context.isPointInPath(t,n)}moveTo(t,n){return this.context.moveTo(t,n),this.customContext.moveTo(t,n),this}lineTo(t,n){return this.context.lineTo(t,n),this.customContext.lineTo(t,n),this}arc(t,n,i,r,s,o){return this.context.arc(t,n,i,r,s,o),this.customContext.arc(t,n,i,r,s,o?-1:1),this}arcTo(t,n,i,r,s){return this.context.arcTo(t,n,i,r,s),this.customContext.arcTo(t,n,i,r,s),this}quadraticCurveTo(t,n,i,r){return this.context.quadraticCurveTo(t,n,i,r),this.customContext.quadraticCurveTo(t,n,i,r),this}bezierCurveTo(t,n,i,r,s,o){return this.context.bezierCurveTo(t,n,i,r,s,o),this.customContext.bezierCurveTo(t,n,i,r,s,o),this}rect(t,n,i,r){return this.context.rect(t,n,i,r),this.customContext.rect(t,n,i,r),this}translate(t,n){return this.context.translate(t,n),this.customContext.translate(t,n),this}rotate(t){return this.context.rotate(t),this.customContext.rotate(t),this}scale(t,n){return this.context.scale(t,n),this.customContext.scale(t,n),this}createLinearGradient(t,n,i,r,s){const o=this.context.createLinearGradient(t,n,i,r),a=this.customContext.createLinearGradient(t,n,i,r);return s&&Object.keys(s).forEach(l=>{const p=parseFloat(l);o.addColorStop(p,s[p]),a.addColorStop(p,s[p])}),{gradient:o,gradientCustom:a}}createRadialGradient(t,n,i,r,s,o,a){const l=this.context.createRadialGradient(t,n,i,r,s,o),p=this.customContext.createRadialGradient(t,n,i,r,s,o);return a&&Object.keys(a).forEach(m=>{const g=parseFloat(m);l.addColorStop(g,a[g]),p.addColorStop(g,a[g])}),{gradient:l,gradientCustom:p}}drawImage(t,n=0,i=0){return this.context.drawImage(t,n,i),this.customContext.drawImage(t,n,i),this}getImageData(t,n,i,r,s){return this.context.getImageData(t,n,i,r,s)}putImageData(t,n=0,i=0){return this.context.putImageData(t,n,i)}toRawSVG(){const t=this.customContext.getSerializedSvg(!0),n=this.customContext.getSvg();return{raw:t,element:n}}toSVGOperation(){const{raw:t}=this.toRawSVG();return Si.fromRawSVG(t)}}class Sh extends xm{container;hammer;mousePoint;ctx;removeEventListeners=[];constructor(t=document.documentElement){super(),this.container=t,this.hammer=new D0(this.container),this.mousePoint=new ii({x:0,y:0}),this.container instanceof HTMLCanvasElement&&(this.ctx=new Gi(this.container)),this.restart()}restart(){this.destroy(),this.removeEventListeners=[this.initEventListeners()],this.on("pointerMove",this.setMousePoint),this.addRemoveWhenDestroy(()=>{this.off("pointerMove",this.setMousePoint)})}destroy(){this.removeEventListeners.forEach(t=>t())}addRemoveWhenDestroy(t){this.removeEventListeners.push(t)}setMousePoint(t){const n=wa(this.container,t);this.mousePoint.x=n.x,this.mousePoint.y=n.y}initEventListeners(){const t=new ResizeObserver(W=>{const{width:at,height:mt}=W[0].contentRect;this.emit("resize",at,mt)}),n=W=>{this.emit("mouseDown",W),this.container.style.userSelect="none"},i=W=>{this.emit("mouseUp",W),this.container.style.userSelect=""},r=W=>{this.emit("mouseMove",W)},s=W=>{this.emit("mouseOver",W)},o=W=>{this.emit("mouseOut",W),this.container.style.userSelect=""},a=W=>{this.emit("mouseClick",W)},l=W=>{this.emit("mouseDoubleClick",W)},p=W=>{this.emit("mouseWheel",W)},m=W=>{this.emit("mouseContextMenu",W)},g=W=>{this.emit("touchStart",W),this.container.style.userSelect="none"},d=W=>{this.emit("touchEnd",W),this.container.style.userSelect=""},_=W=>{this.emit("touchCancel",W),this.container.style.userSelect=""},N=W=>{this.emit("touchMove",W)},C=W=>{this.emit("pointerDown",W),this.container.style.userSelect="none"},M=W=>{this.emit("pointerUp",W),this.container.style.userSelect=""},z=W=>{this.emit("pointerCancel",W),this.container.style.userSelect=""},P=W=>{this.emit("pointerMove",W)},$=W=>{this.emit("pan",W)},H=W=>{this.emit("panStart",W),this.container.style.userSelect="none"},Y=W=>{this.emit("panMove",W)},J=W=>{this.emit("panEnd",W),this.container.style.userSelect=""},V=W=>{this.emit("panCancel",W),this.container.style.userSelect=""},ht=W=>{this.emit("panLeft",W)},_t=W=>{this.emit("panRight",W)},Pt=W=>{this.emit("panUp",W),this.container.style.userSelect=""},Et=W=>{this.emit("panDown",W),this.container.style.userSelect="none"},vt=W=>{this.emit("pinch",W)},It=W=>{this.emit("press",W)},kt=W=>{this.emit("rotate",W)},Ut=W=>{this.emit("swipe",W)},jt=W=>{this.emit("tap",W)},Ot=W=>{!W.target||this.container==W.target||this.container.contains(W.target)||this.emit("tapOutSide",W)};return t.observe(this.container),this.container.addEventListener("mousedown",n),this.container.addEventListener("mouseup",i),this.container.addEventListener("mousemove",r),this.container.addEventListener("mouseover",s),this.container.addEventListener("mouseout",o),this.container.addEventListener("click",a),this.container.addEventListener("dblclick",l),this.container.addEventListener("wheel",p),this.container.addEventListener("contextmenu",m),this.container.addEventListener("touchstart",g),this.container.addEventListener("touchend",d),this.container.addEventListener("touchcancel",_),this.container.addEventListener("touchmove",N),this.container.addEventListener("pointerdown",C),this.container.addEventListener("pointerup",M),this.container.addEventListener("pointercancel",z),this.container.addEventListener("pointermove",P),this.hammer.on("pan",$),this.hammer.on("panstart",H),this.hammer.on("panmove",Y),this.hammer.on("panend",J),this.hammer.on("pancancel",V),this.hammer.on("panleft",ht),this.hammer.on("panright",_t),this.hammer.on("panup",Pt),this.hammer.on("pandown",Et),this.hammer.on("pinch",vt),this.hammer.on("press",It),this.hammer.on("rotate",kt),this.hammer.on("swipe",Ut),this.hammer.on("tap",jt),document.addEventListener("pointerdown",Ot,!1),()=>{t.unobserve(this.container),this.container.removeEventListener("mousedown",n),this.container.removeEventListener("mouseup",i),this.container.removeEventListener("mousemove",r),this.container.removeEventListener("mouseover",s),this.container.removeEventListener("mouseout",o),this.container.removeEventListener("click",a),this.container.removeEventListener("dblclick",l),this.container.removeEventListener("wheel",p),this.container.removeEventListener("contextmenu",m),this.container.removeEventListener("touchstart",g),this.container.removeEventListener("touchend",d),this.container.removeEventListener("touchcancel",_),this.container.removeEventListener("touchmove",N),this.container.removeEventListener("pointerdown",C),this.container.removeEventListener("pointerup",M),this.container.removeEventListener("pointercancel",z),this.container.removeEventListener("pointermove",P),this.hammer.off("pan",$),this.hammer.off("panstart",H),this.hammer.off("panmove",Y),this.hammer.off("panend",J),this.hammer.off("pancancel",V),this.hammer.off("panleft",ht),this.hammer.off("panright",_t),this.hammer.off("panup",Pt),this.hammer.off("pandown",Et),this.hammer.off("pinch",vt),this.hammer.off("press",It),this.hammer.off("rotate",kt),this.hammer.off("swipe",Ut),this.hammer.off("tap",jt),document.removeEventListener("pointerdown",Ot,!1),document.removeEventListener("touchstart",Ot,!1),document.removeEventListener("mousedown",Ot,!1)}}registerKeyDown(t,n,i){const r=F0.on(t,s=>(n(s,r.formatedKeyNames,r.pause,r.restart),i));r.removeListener&&this.addRemoveWhenDestroy(r.removeListener)}drawMouseMoveLine(t,n){if(!this.ctx)return;let i=!1;switch(t){case"brush":const r=(n&&n.brushSize)??10,s=(n&&n.brushDensity)??50,o=(n&&n.brushColor)??"#000000",a=this.ctx.getImageData(0,0,this.ctx.canvas.width,this.ctx.canvas.height),l=a.data,p=Th(o);this.captureMove({start:()=>{i=!0},end:()=>{i=!1},move:()=>{if(i){for(let m=0;m<s;m++){const g=Math.random()*Math.PI*2,d=Math.random()*r,_=this.mousePoint.x+Math.cos(g)*d|0,N=this.mousePoint.y+Math.sin(g)*d|0,C=(_+N*a.width)*4;l[C]=p>>16&255,l[C+1]=p>>8&255,l[C+2]=p&255,l[C+3]=255}this.ctx.putImageData(a)}}});break;case"line":default:this.captureMove({start:m=>{i=!0,this.ctx.beginPath(),this.setMousePoint(m),this.ctx.moveTo(this.mousePoint.x,this.mousePoint.y)},end:()=>{i=!1,this.ctx.closePath()},move:()=>{i&&(this.ctx.lineTo(this.mousePoint.x,this.mousePoint.y),this.ctx.stroke())}})}}static isTouchEnabled(){return"ontouchstart"in window||navigator.maxTouchPoints>0}captureMove(t){return this.captureMoveUsePointer(t)}captureMoveUseMouse(t){const n=s=>{document.addEventListener("mousemove",r,!1),document.addEventListener("mouseup",i,!1),this.container.style.userSelect="none",t?.start?.(s)},i=s=>{document.removeEventListener("mousemove",r,!1),document.removeEventListener("mouseup",i,!1),this.container.style.userSelect="",t?.end?.(s)},r=s=>{t?.move?.(s)};this.on("mouseDown",n),this.addRemoveWhenDestroy(()=>{this.off("mouseDown",n)})}captureMoveUseTouch(t){const n=s=>{s.preventDefault(),t?.start?.(s)},i=s=>{t?.end?.(s)},r=s=>{t?.move?.(s)};this.on("touchStart",n),this.on("touchEnd",i),this.on("touchCancel",i),this.on("touchMove",r),this.addRemoveWhenDestroy(()=>{this.off("touchStart",n),this.off("touchEnd",i),this.off("touchCancel",i),this.off("touchMove",r)})}captureMoveUsePointer(t){const n=s=>{this.container.setPointerCapture(s.pointerId),this.container.style.userSelect="none",t?.start?.(s)},i=s=>{this.container.style.userSelect="",t?.end?.(s)},r=s=>{t?.move?.(s)};this.on("pointerDown",n),this.on("pointerUp",i),this.on("pointerCancel",i),this.on("pointerMove",r),this.addRemoveWhenDestroy(()=>{this.off("pointerDown",n),this.off("pointerUp",i),this.off("pointerCancel",i),this.off("pointerMove",r)})}static getMouseButton(t){if(document.implementation.hasFeature("MouseEvents","2.0"))return t.button;switch(t.button){case 0:case 1:case 3:case 5:case 7:return 0;case 2:case 6:return 2;case 4:return 1}}}class Zt{static onDocumentReady(t){function n(){document.readyState!=="loading"&&(t(),document.removeEventListener("DOMContentLoaded",n))}typeof document<"u"&&(document.addEventListener("DOMContentLoaded",n),n())}static getCSSVar(t){return getComputedStyle(document.documentElement).getPropertyValue(t)}static setCSSVar(t,n){document.documentElement.style.setProperty(t,n)}static safeExec(t){const n=new Proxy(window,{get(i,r,s){if(typeof r=="string"&&["open","location","document"].includes(r))throw new Error(`禁止访问 key: ${r}`);return r==="window"?n:Reflect.get(i,r,s)},set(i,r,s,o){return Reflect.set(i,r,s,o)}});new Function("window",`with(window) { ${t} }`)(n,null)}static dom=new Proxy({},{get(t,n){return function(i={},...r){const s=document.createElement(n);for(const o of Object.keys(i))s.setAttribute(o,i[o]);for(const o of r)typeof o=="string"?s.appendChild(document.createTextNode(o)):s.appendChild(o);return s}}});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){
76
53
  let output = "";
77
54
  function echo(html){
78
55
  output += html;
79
56
  }
80
57
  ${t}
81
58
  return output;
82
- })`}static safeHtml(t,r="encode"){const n={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"};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=iq().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 Ro(e,t=document){return new Ur(e,t)}class Ur{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 Ur(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=Ur._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 Ur.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=Ur._fragment(r);i.push(...s.children),o[t](s)});else if(r instanceof HTMLElement)this.each(o=>{const s=n===1?r:Ur._fragment(r.outerHTML);i.push(...n===1?[r]:s.children),o[t](s)}),n>1&&r.remove();else if(r instanceof Ur){const o=n==1;r.each(s=>{this.each(a=>{const c=o?s:s.cloneNode(!0);i.push(c),a[t](c),Ur._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 Ur(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 Ur(r,this.context)}next(){const t=[];return this.nodes.forEach(r=>{const n=r.nextElementSibling;n&&t.push(n)}),new Ur(t,this.context)}prev(){const t=[];return this.nodes.forEach(r=>{const n=r.previousElementSibling;n&&t.push(n)}),new Ur(t,this.context)}closest(t){const r=[];return this.nodes.forEach(n=>{const i=n.closest(t);i&&r.push(i)}),new Ur(r,this.context)}shadow(t){const r=[];this.nodes.forEach(i=>{i.shadowRoot&&r.push(i.shadowRoot)});const n=new Ur(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 Ur(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:""):Ur.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=Ur._fixProp(o);i[a]=s,a=="innerHTML"&&Ur._scriptConvert(i)})}),this}}removeProp(t){const r=t.split(/[,\s]+/);return this.nodes.forEach(n=>{r.forEach(i=>{delete n[Ur._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 Wv(e){return e*Math.PI/180}function cq(e){return e*180/Math.PI}function uq(e,t,r,n){const i=e-r,o=t-n;return Math.sqrt(i*i+o*o)}function hq(e,t,r,n){const i=r-e,o=n-t;return Math.atan2(o,i)}function Jv(e){return e[0]*e[0]+e[1]*e[1]}function jE(e){const t=Math.sqrt(Jv(e));e[0]&&(e[0]/=t),e[1]&&(e[1]/=t)}class qc{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 qc({x:Math.cos(t)*r,y:Math.sin(t)*r})}distanceTo(t){return uq(this.x,this.y,t.x,t.y)}angleTo(t){return hq(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 qc({x:t.x-Math.cos(a)*s,y:t.y-Math.sin(a)*s}),{spring:o,friction:i,gravity:n})}}let dq=class extends qc{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 ga extends qc{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 ga({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 dq({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 _=i(u.x,u.y,s,a,!1),y=i(h.x,h.y,s,a,!1);this.vx=_.x,this.vy=_.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 Qv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Hn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ce(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 fq={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22
83
- * http://hammerjs.github.io/
84
- *
85
- * Copyright (c) 2016 Jorik Tangelder;
86
- * Licensed under the MIT license */(function(e){(function(t,r,n,i){var o=["","webkit","Moz","MS","ms","o"],s=r.createElement("div"),a="function",c=Math.round,l=Math.abs,u=Date.now;function h(w,T,F){return setTimeout(m(w,F),T)}function f(w,T,F){return Array.isArray(w)?(d(w,F[T],F),!0):!1}function d(w,T,F){var B;if(w)if(w.forEach)w.forEach(T,F);else if(w.length!==i)for(B=0;B<w.length;)T.call(F,w[B],B,w),B++;else for(B in w)w.hasOwnProperty(B)&&T.call(F,w[B],B,w)}function p(w,T,F){var B="DEPRECATED METHOD: "+T+`
87
- `+F+` AT
88
- `;return function(){var H=new Error("get-stack-trace"),J=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,J),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`."),_=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 N(w,T){return w===i?T:w}function $(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=[],J=0;J<w.length;){var rt=T?w[J][T]:w[J];K(H,rt)<0&&B.push(w[J]),H[J]=rt,J++}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),J=0;J<o.length;){if(F=o[J],B=F?F+H:T,B in w)return B;J++}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",E="pen",b="mouse",P="kinect",M=25,I=1,G=2,q=4,et=8,st=1,mt=2,Lt=4,W=8,Q=16,ot=mt|Lt,lt=W|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&&$(this.element,this.evEl,this.domHandler),this.evTarget&&$(this.target,this.evTarget,this.domHandler),this.evWin&&$(_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=fn:O?T=kn:at?T=L:T=gr,new T(w,ut)}function ut(w,T,F){var B=F.pointers.length,H=F.changedPointers.length,J=T&I&&B-H===0,rt=T&(q|et)&&B-H===0;F.isFirst=!!J,F.isFinal=!!rt,J&&(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 J=F.firstInput,rt=F.firstMultiple,ht=rt?rt.center:J.center,St=T.center=oe(B);T.timeStamp=u(),T.deltaTime=T.timeStamp-J.timeStamp,T.angle=ar(ht,St),T.distance=Ve(ht,St),Vt(F,T),T.offsetDirection=me(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?hr(rt.pointers,B):1,T.rotation=rt?wr(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||{},J=w.prevInput||{};(T.eventType===I||J.eventType===q)&&(H=w.prevDelta={x:J.deltaX||0,y:J.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,J,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);J=pt.x,rt=pt.y,H=l(pt.x)>l(pt.y)?pt.x:pt.y,ht=me(St,gt),w.lastInterval=T}else H=F.velocity,J=F.velocityX,rt=F.velocityY,ht=F.direction;T.velocity=H,T.velocityX=J,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:oe(T),deltaX:w.deltaX,deltaY:w.deltaY}}function oe(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 me(w,T){return w===T?st:l(w)>=l(T)?w<0?mt:Lt:T<0?W:Q}function Ve(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 ar(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 wr(w,T){return ar(T[1],T[0],$t)+ar(w[1],w[0],$t)}function hr(w,T){return Ve(T[0],T[1],$t)/Ve(w[0],w[1],$t)}var zr={mousedown:I,mousemove:G,mouseup:q},ln="mousedown",he="mousemove mouseup";function gr(){this.evEl=ln,this.evWin=he,this.pressed=!1,vt.apply(this,arguments)}y(gr,vt,{handler:function(w){var T=zr[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:b,srcEvent:w}))}});var Gr={pointerdown:I,pointermove:G,pointerup:q,pointercancel:et,pointerout:et},Ri={2:C,3:E,4:b,5:P},Wn="pointerdown",ci="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(Wn="MSPointerDown",ci="MSPointerMove MSPointerUp MSPointerCancel");function fn(){this.evEl=Wn,this.evWin=ci,vt.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}y(fn,vt,{handler:function(w){var T=this.store,F=!1,B=w.type.toLowerCase().replace("ms",""),H=Gr[B],J=Ri[w.pointerType]||w.pointerType,rt=J==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:J,srcEvent:w}),F&&T.splice(ht,1))}});var Ze={touchstart:I,touchmove:G,touchend:q,touchcancel:et},Rs="touchstart",Fn="touchstart touchmove touchend touchcancel";function Jn(){this.evTarget=Rs,this.evWin=Fn,this.started=!1,vt.apply(this,arguments)}y(Jn,vt,{handler:function(w){var T=Ze[w.type];if(T===I&&(this.started=!0),!!this.started){var F=tn.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 tn(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 ui={touchstart:I,touchmove:G,touchend:q,touchcancel:et},Qn="touchstart touchmove touchend touchcancel";function kn(){this.evTarget=Qn,this.targetIds={},vt.apply(this,arguments)}y(kn,vt,{handler:function(w){var T=ui[w.type],F=Ii.call(this,w,T);F&&this.callback(this.manager,T,{pointers:F[0],changedPointers:F[1],pointerType:C,srcEvent:w})}});function Ii(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,J,rt=Y(w.changedTouches),ht=[],St=this.target;if(J=F.filter(function(gt){return D(gt.target,St)}),T===I)for(H=0;H<J.length;)B[J[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(J.concat(ht),"identifier",!0),ht]}var hi=2500,R=25;function L(){vt.apply(this,arguments);var w=m(this.handler,this);this.touch=new kn(this.manager,w),this.mouse=new gr(this.manager,w),this.primaryTouch=null,this.lastTouches=[]}y(L,vt,{handler:function(w,T,F){var B=F.pointerType==C,H=F.pointerType==b;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 J=B.indexOf(F);J>-1&&B.splice(J,1)};setTimeout(H,hi)}}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],J=Math.abs(T-H.x),rt=Math.abs(F-H.y);if(J<=R&&rt<=R)return!0}return!1}var Ot=nt(s.style,"touchAction"),Tt=Ot!==i,Ht="compute",_e="auto",re="manipulation",zt="none",qt="pan-x",ue="pan-y",jt=Be();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()))}),se(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],J=V(B,ue)&&!jt[ue],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&&gt)return}if(!(rt&&J)&&(H||J&&F&ot||rt&&F&lt))return this.preventSrc(T)},preventSrc:function(w){this.manager.session.prevented=!0,w.preventDefault()}};function se(w){if(V(w,zt))return zt;var T=V(w,qt),F=V(w,ue);return T&&F?zt:T||F?T?qt:ue:V(w,re)?re:_e}function Be(){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 jr=1,Pe=2,tr=4,dr=8,lr=dr,Ue=16,Ee=32;function te(w){this.options=g({},this.defaults,w||{}),this.id=xt(),this.manager=null,this.options.enable=N(this.options.enable,!0),this.state=jr,this.simultaneous={},this.requireFail=[]}te.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=Mn(w,this),T[w.id]||(T[w.id]=w,w.recognizeWith(this)),this},dropRecognizeWith:function(w){return f(w,"dropRecognizeWith",this)?this:(w=Mn(w,this),delete this.simultaneous[w.id],this)},requireFailure:function(w){if(f(w,"requireFailure",this))return this;var T=this.requireFail;return w=Mn(w,this),K(T,w)===-1&&(T.push(w),w.requireFailure(this)),this},dropRequireFailure:function(w){if(f(w,"dropRequireFailure",this))return this;w=Mn(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<dr&&B(T.options.event+fr(F)),B(T.options.event),w.additionalEvent&&B(w.additionalEvent),F>=dr&&B(T.options.event+fr(F))},tryEmit:function(w){if(this.canEmit())return this.emit(w);this.state=Ee},canEmit:function(){for(var w=0;w<this.requireFail.length;){if(!(this.requireFail[w].state&(Ee|jr)))return!1;w++}return!0},recognize:function(w){var T=g({},w);if(!x(this.options.enable,[this,T])){this.reset(),this.state=Ee;return}this.state&(lr|Ue|Ee)&&(this.state=jr),this.state=this.process(T),this.state&(Pe|tr|dr|Ue)&&this.tryEmit(T)},process:function(w){},getTouchAction:function(){},reset:function(){}};function fr(w){return w&Ue?"cancel":w&dr?"end":w&tr?"move":w&Pe?"start":""}function pn(w){return w==Q?"down":w==W?"up":w==mt?"left":w==Lt?"right":""}function Mn(w,T){var F=T.manager;return F?F.get(w):w}function Er(){te.apply(this,arguments)}y(Er,te,{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&(Pe|tr),H=this.attrTest(w);return B&&(F&et||!H)?T|Ue:B||H?F&q?T|dr:T&Pe?T|tr:Pe:Ee}});function $r(){Er.apply(this,arguments),this.pX=null,this.pY=null}y($r,Er,{defaults:{event:"pan",threshold:10,pointers:1,direction:ct},getTouchAction:function(){var w=this.options.direction,T=[];return w&ot&&T.push(ue),w&lt&&T.push(qt),T},directionTest:function(w){var T=this.options,F=!0,B=w.distance,H=w.direction,J=w.deltaX,rt=w.deltaY;return H&T.direction||(T.direction&ot?(H=J===0?st:J<0?mt:Lt,F=J!=this.pX,B=Math.abs(w.deltaX)):(H=rt===0?st:rt<0?W:Q,F=rt!=this.pY,B=Math.abs(w.deltaY))),w.direction=H,F&&B>T.threshold&&H&T.direction},attrTest:function(w){return Er.prototype.attrTest.call(this,w)&&(this.state&Pe||!(this.state&Pe)&&this.directionTest(w))},emit:function(w){this.pX=w.deltaX,this.pY=w.deltaY;var T=pn(w.direction);T&&(w.additionalEvent=this.options.event+T),this._super.emit.call(this,w)}});function Yr(){Er.apply(this,arguments)}y(Yr,Er,{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&Pe)},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 di(){te.apply(this,arguments),this._timer=null,this._input=null}y(di,te,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[_e]},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=lr,this.tryEmit()},T.time,this);else if(w.eventType&q)return lr;return Ee},reset:function(){clearTimeout(this._timer)},emit:function(w){this.state===lr&&(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 fi(){Er.apply(this,arguments)}y(fi,Er,{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&Pe)}});function en(){Er.apply(this,arguments)}y(en,Er,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:ot|lt,pointers:1},getTouchAction:function(){return $r.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&lt&&(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=pn(w.offsetDirection);T&&this.manager.emit(this.options.event+T,w),this.manager.emit(this.options.event,w)}});function pi(){te.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}y(pi,te,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[re]},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 J=this.pTime?w.timeStamp-this.pTime<T.interval:!0,rt=!this.pCenter||Ve(this.pCenter,w.center)<T.posThreshold;this.pTime=w.timeStamp,this.pCenter=w.center,!rt||!J?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=lr,this.tryEmit()},T.interval,this),Pe):lr}return Ee},failTimeout:function(){return this._timer=h(function(){this.state=Ee},this.options.interval,this),Ee},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==lr&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function mi(w,T){return T=T||{},T.recognizers=N(T.recognizers,mi.defaults.preset),new La(w,T)}mi.VERSION="2.0.7",mi.defaults={domEvents:!1,touchAction:Ht,enable:!0,inputTarget:null,inputClass:null,preset:[[fi,{enable:!1}],[Yr,{enable:!1},["rotate"]],[en,{direction:ot}],[$r,{direction:ot},["swipe"]],[pi],[pi,{event:"doubletap",taps:2},["tap"]],[di]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var Ma=1,Xr=2;function La(w,T){this.options=g({},mi.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)}La.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?Xr:Ma},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&lr)&&(H=T.curRecognizer=null);for(var J=0;J<B.length;)F=B[J],T.stopped!==Xr&&(!H||F==H||F.canRecognizeWith(H))?F.recognize(w):F.reset(),!H&&F.state&(Pe|tr|dr)&&(H=T.curRecognizer=F),J++}},get:function(w){if(w instanceof te)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&&A(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,J){B=nt(F.style,J),T?(w.oldCssProps[B]=F.style[B],F.style[B]=H):F.style[B]=w.oldCssProps[B]||""}),T||(w.oldCssProps={})}}function A(w,T){var F=r.createEvent("Event");F.initEvent(w,!0,!0),F.gesture=T,T.target.dispatchEvent(F)}g(mi,{INPUT_START:I,INPUT_MOVE:G,INPUT_END:q,INPUT_CANCEL:et,STATE_POSSIBLE:jr,STATE_BEGAN:Pe,STATE_CHANGED:tr,STATE_ENDED:dr,STATE_RECOGNIZED:lr,STATE_CANCELLED:Ue,STATE_FAILED:Ee,DIRECTION_NONE:st,DIRECTION_LEFT:mt,DIRECTION_RIGHT:Lt,DIRECTION_UP:W,DIRECTION_DOWN:Q,DIRECTION_HORIZONTAL:ot,DIRECTION_VERTICAL:lt,DIRECTION_ALL:ct,Manager:La,Input:vt,TouchAction:Gt,TouchInput:kn,MouseInput:gr,PointerEventInput:fn,TouchMouseInput:L,SingleTouchInput:Jn,Recognizer:te,AttrRecognizer:Er,Tap:pi,Pan:$r,Swipe:en,Pinch:Yr,Rotate:fi,Press:di,on:$,off:k,each:d,merge:_,extend:v,assign:g,inherit:y,bindFn:m,prefixed:nt});var j=typeof t<"u"?t:typeof self<"u"?self:{};j.Hammer=mi,typeof i=="function"&&i.amd?i(function(){return mi}):e.exports?e.exports=mi:t[n]=mi})(window,document,"Hammer")})(fq);const FE=[1,0,0,1,0,0],ME=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];class bn{value;matrix3d;isEverTo3d=!1;_prev_rotatex=0;_prev_rotatey=0;constructor(t=FE){this.value=Array.from(t),this.matrix3d=this.toMatrix3D()}unit(){return this.value=Array.from(FE),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 ll(r)}offset(t=0,r=0){return[t-this.value[4],r-this.value[5]]}clone(){return new bn(this.value)}multiply(t){const r=this.value;let n;t instanceof bn?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 bn(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=Wv(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(Jv(r[0])),jE(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(Jv(r[1])),jE(r[1]),t.shear/=t.scaley;const n=-r[0][1],i=r[1][1];return i<0?(t.rotate=cq(Math.acos(i)),n<0&&(t.rotate=360-t.rotate)):t.rotate=Wv(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=>OS(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 ll{value;constructor(t=ME){this.value=Array.from(t)}unit(){return this.value=Array.from(ME),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 bn(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],_=this.value[15],y=t.value[0],m=t.value[1],x=t.value[2],N=t.value[3],$=y*r+m*s+x*u+N*p,k=y*n+m*a+x*h+N*g,D=y*i+m*c+x*f+N*v,V=y*o+m*l+x*d+N*_;return new bn([$,k,D,V,0,0])}multiply(t){const r=new bn([t.value[0],t.value[1],t.value[2],t.value[3],0,0]),n=new bn([t.value[4],t.value[5],t.value[6],t.value[7],0,0]),i=new bn([t.value[8],t.value[9],t.value[10],t.value[11],0,0]),o=new bn([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 ll([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 ll([t,0,0,0,0,r,0,0,0,0,n,0,0,0,0,1]))}rotate(t,r){const n=Wv(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 ll(s))}toString(){return`matrix3d(${this.value.map(t=>OS(t,6)).join(",")})`}}function gf(e){const t=new bn;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 ll(o));break}return""}),t}function pq(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},mq=/([astvzqmhlc])([^astvzqmhlc]*)/gi,gq=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function vq(e){const t=e.match(gq);return t?t.map(Number):[]}function t1(e){const t=[];return e.replace(mq,function(r,n,i){let o=n.toLowerCase();for(i=vq(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 e1(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 Kc=Math.PI*2;function LE(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 yq(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 _=v*s/a*h,y=v*-a/s*u,m=l*_-c*y+(e+r)/2,x=c*_+l*y+(t+n)/2,N=(u-_)/s,$=(h-y)/a,k=(-u-_)/s,D=(-h-y)/a,V=LE(1,0,N,$);let U=LE(N,$,k,D);return o===0&&U>0&&(U-=Kc),o===1&&U<0&&(U+=Kc),[m,x,V,U]}function _q(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 bq(e,t,r,n,i,o,s,a,c){const l=Math.sin(c*Kc/360),u=Math.cos(c*Kc/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=yq(e,t,r,n,i,o,s,a,l,u),g=[];let v=p[2],_=p[3];const y=Math.max(Math.ceil(Math.abs(_)/(Kc/4)),1);_/=y;for(let m=0;m<y;m++)g.push(_q(v,_)),v+=_;return g.map(m=>{for(let x=0;x<m.length;x+=2){let N=m[x+0],$=m[x+1];N*=s,$*=a;const k=u*N-l*$,D=l*N+u*$;m[x+0]=k+p[0],m[x+1]=D+p[1]}return m})}function r1(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=bq(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[N,$,k,D,V,U,K,Y]=x;return{x1:k,y1:D,x2:V,y2:U,x:K,y:Y}});for(var v=0,_;v<g.length;v++)_=g[v],d=["C",_.x1,_.y1,_.x2,_.y2,_.x,_.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=VE(l,u,a,c,d[1],d[2]);break;case"Q":a=d[1],c=d[2],d=VE(l,u,d[1],d[2],d[3],d[4]);break;case"L":d=vf(l,u,d[1],d[2]);break;case"H":d=vf(l,u,d[1],u);break;case"V":d=vf(l,u,l,d[1]);break;case"Z":d=vf(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 vf(e,t,r,n){return["C",e,t,r,n,r,n]}function VE(e,t,r,n,i,o){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,o/3+2/3*n,i,o]}const wq=e=>Array.isArray(e);function cl(e){if(!(this instanceof cl))return new cl(e);this._path=wq(e)?e:t1(e),this._path=e1(this._path),this._path=Sq(this._path),this._path=xq(this._path)}cl.prototype.at=function(e,t){return this._walk(e,t).pos},cl.prototype.length=function(){return this._walk(null).length},cl.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+=n1(r[0],r[1],g,v),r[0]=g,r[1]=v,typeof e=="number"&&o>=e){let _=(o-e)/(o-n[2]),y=[r[0]*(1-_)+n[0]*_,r[1]*(1-_)+n[1]*_];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+=n1(r[0],r[1],g,v),r[0]=g,r[1]=v,typeof e=="number"&&o>=e){let _=(o-e)/(o-n[2]),y=[r[0]*(1-_)+n[0]*_,r[1]*(1-_)+n[1]*_];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+=n1(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 n1(e,t,r,n){let i=e-r,o=t-n;return Math.sqrt(i*i+o*o)}function xq(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 Sq(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 i1=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]=i1(e[r]));return t};function o1(e){const t=o1.ps=o1.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 Yc(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:Oq(e,t,r,n),vb:[e,t,r,n].join(" ")}}function UE(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),_=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,N=l*t+c*n,$=l*i+c*s,k=l*o+c*a,D=90-Math.atan2(v-y,_-m)*180/Math.PI;return{x:p,y:g,m:{x:v,y:_},n:{x:y,y:m},start:{x,y:N},end:{x:$,y:k},alpha:D}}function zE(e,t,r,n,i,o,s,a){Array.isArray(e)||(e=[e,t,r,n,i,o,s,a]);const c=HE(...e);return Yc(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)}function $q(e,t,r){return t>=e.x&&t<=e.x+e.width&&r>=e.y&&r<=e.y+e.height}function Eq(e,t){e=Yc(e),t=Yc(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 GE(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 BE(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=GE(g,e,r,i,s),_=GE(g,t,n,o,a),y=v*v+_*_;d+=f[p]*Math.sqrt(y)}return l*d}function Cq(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 kq(e,t,r){const n=zE(e),i=zE(t);if(!Eq(n,i))return r?0:[];const o=BE.apply(0,e),s=BE.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=UE.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=UE.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],_=u[p],y=u[p+1],m=Math.abs(v.x-g.x)<.001?"y":"x",x=Math.abs(y.x-_.x)<.001?"y":"x",N=Cq(g.x,g.y,v.x,v.y,_.x,_.y,y.x,y.y);if(N&&h[N.x.toFixed(4)]!==N.y.toFixed(4)){h[N.x.toFixed(4)]=N.y.toFixed(4);const $=g.t+Math.abs((N[m]-g[m])/(v[m]-g[m]))*(v.t-g.t),k=_.t+Math.abs((N[x]-_[x])/(y[x]-_[x]))*(y.t-_.t);$>=0&&$<=1&&k>=0&&k<=1&&(r?f++:f.push({x:N.x,y:N.y,t1:$,t2:k}))}}return f}function Pq(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 _=0,y=t.length;_<y;_++){const m=t[_];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=kq(h,f,r);if(r)d+=x;else{for(let N=0,$=x.length;N<$;N++)x[N].segment1=p,x[N].segment2=_,x[N].bez1=h,x[N].bez2=f;d=d.concat(x)}}}}}return d}function Tq(e){const t=o1(e);if(t.bbox)return i1(t.bbox);if(!e)return Yc();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=HE(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=Yc(a,c,l-a,u-c);return t.bbox=i1(h),h}function Oq(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 HE(e,t,r,n,i,o,s,a){const c=[],l=[[],[]];let u,h,f,d,p,g,v,_;for(let N=0;N<2;++N){if(N===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,_=Math.sqrt(v),!(v<0)&&(p=(-h+_)/(2*u),p>0&&p<1&&c.push(p),g=(-h-_)/(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 Nq(e,t,r){const n=Tq(e);return!(!$q(n,t,r)||Pq(e,r1([["M",t,r],["H",n.x2+10]]),1)%2!==1)}const s1=new Map;function qE(e){if(s1.has(e))return s1.get(e);const t=cl(e);return s1.set(e,t),t}function KE(e){const t=document.createElementNS("http://www.w3.org/2000/svg","path");return t.setAttribute("d",e),t}function Aq(e,t){return jd?KE(e).getTotalLength(t):qE(e).length()}function Dq(e,t){if(jd)return KE(e).getPointAtLength(t);{const r=qE(e),[n,i]=r.at(t);return{x:n,y:i}}}let si=null;function Rq(e,t,r){if(jd){si||(si=document.createElement("canvas").getContext("2d"));const n=new Path2D(e);return si.isPointInPath(n,t,r)}else return Nq(e,t,r)}function Iq(e,t,r,{lineWidth:n=1,lineCap:i="butt",lineJoin:o="miter"}){if(jd){if(si||(si=document.createElement("canvas").getContext("2d")),si.isPointInStroke){si.save(),si.lineWidth=n,si.lineCap=i,si.lineJoin=o;const s=new Path2D(e),a=si.isPointInStroke(s,t,r);return si.restore(),a}}else return null}function jq(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 YE={},XE={exports:{}},WE;function Fq(){return WE||(WE=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),_=0,y,m=[],x={},N=[];c=f,l=0;for(var $=0,k=v.length;$<k;$++)"zIndex"in v[$]&&(m.push(v[$].zIndex),v[$].zIndex<0&&(x[v[$].zIndex]=v[$]));for(m.sort(a);m[_]<0;)if(y=x[m[_++]],N.push(y.apply(d,g)),l)return l=p,N;for($=0;$<k;$++)if(y=v[$],"zIndex"in y)if(y.zIndex==m[_]){if(N.push(y.apply(d,g)),l)return l=p,N;do if(_++,y=x[m[_]],y&&N.push(y.apply(d,g)),l)return l=p,N;while(y)}else x[y.zIndex]=y;else if(N.push(y.apply(d,g)),l)return l=p,N;return l=p,N.length?N:null};h.listeners=function(f){var d=f.split(i),p=u,g,v,_,y,m,x,N,$,k=[p],D=[];for(y=0,m=d.length;y<m;y++){for($=[],x=0,N=k.length;x<N;x++)for(p=k[x].n,v=[p[d[y]],p[o]],_=2;_--;)g=v[_],g&&($.push(g),D=D.concat(g.f||[]));k=$}return D},h.on=function(f,d){for(var p=f.split(i),g=u,v=0,_=p.length;v<_;v++)g=g.n,!g[p[v]]&&(g[p[v]]={n:{}}),g=g[p[v]];for(g.f=g.f||[],v=0,_=g.f.length;v<_;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,_,y,m,x,N,$=[u];for(y=0,m=p.length;y<m;y++)for(x=0;x<$.length;x+=_.length-2){if(_=[x,1],g=$[x].n,p[y]!=o)g[p[y]]&&_.push(g[p[y]]);else for(v in g)g[n](v)&&_.push(g[v]);$.splice.apply($,_)}for(y=0,m=$.length;y<m;y++)for(g=$[y];g.n;){if(d){if(g.f){for(x=0,N=g.f.length;x<N;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,N=k.length;x<N;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})(Qv)}(XE)),XE.exports}(function(e){if(typeof jq=="function")var t=Fq();(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,_=a(f,0);d<p;d++)g=v,v=_,_=a(f,d),this.raw+=v,n.call(this,v,_,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})()})(YE);const JE=Hn(YE);function a1(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 a1(e,t,i,o)-a1(r,n,i,o)}const $e=JE.eve,Mq=JE.elemental,yf={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 l1(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 Lq(e){const t=Mq(),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)&&$e("rappar."+u+".attr."+g,p,d[g],g);$e("rappar."+u+".attrend",p,d)}}return $e.on("rappar.polygon.attr.points",function(u){this.path="M"+u+"z",$e.stop()}),$e.on("rappar.image.attr.xlink:href",function(u){this.src=u,$e.stop()}),$e.on("rappar.path.attr.d",function(u){this.path=u,$e.stop()}),$e.on("rappar.*.attr.transform",function(u){this.transform=gf(u).toTransformString(),$e.stop()}),$e.on("rappar.*.attr.fill",function(u){var h=u.match(/url\(#([^)]+)\)/),f=this;h&&(h=h[1],i[h]?this.fill=i[h]:$e.on("rappar.found."+h,function(d){f.fill=d}),$e.stop())}),$e.on("rappar.line.attrend",function(u){this.path="M"+[u.x1,u.y1,u.x2,u.y2]}),$e.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,l1(this.style,this,yf))}}),$e.on("rappar.*.attr.style",function(u){var h=function(){l1(u,this,yf),$e.unbind("rappar.*.attrend",h)};$e.on("rappar.*.attrend",h),$e.stop()}),$e.on("rappar.*.attr.*",function(u,h){h in yf&&(this[h]=yf[h]?u:parseFloat(u))}),$e.on("elemental.tag.circle",l("circle")),$e.on("elemental.tag.ellipse",l("ellipse")),$e.on("elemental.tag.polygon",l("polygon","path")),$e.on("elemental.tag.path",l("path")),$e.on("elemental.tag.line",l("line","path")),$e.on("elemental.tag.rect",l("rect")),$e.on("elemental.tag.image",l("image")),$e.on("elemental.tag.text",l("text")),$e.on("elemental.text",function(u){try{const h=hL(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{}}),$e.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})}),$e.on("rappar.text.attrend",function(){o="",s=this,this["text-anchor"]=this["text-anchor"]||"start"}),$e.on("elemental.text",function(u,h,f){s&&(o+=f)}),$e.on("elemental./tag.text",function(){s.text=o,s=null}),$e.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],$e("rappar.g.attr."+d,f,h[d],d));$e("rappar.g.attrend",f)}),$e.on("elemental./tag.g",function(u,h){n.pop()}),$e.on("elemental.tag.linearGradient",function(u,h){a={id:h.id,angle:+(360+a1(h.x1,h.y1,h.x2,h.y2,h.x1+100,h.y1)).toFixed(2),stops:[]}}),$e.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("-"),$e("rappar.found."+a.id,null,i[a.id])}),$e.on("elemental.tag.radialGradient",function(u,h){a={id:h.id,stops:[]}}),$e.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("-"),$e("rappar.found."+a.id,null,i[a.id])}),$e.on("elemental.tag.stop",function(u,h){var f={};h.style&&l1(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 QE=Vq("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 Vq(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"]="&#160;",r}function wn(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 _f(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 Uq(e){const t={left:"start",right:"end",center:"middle",start:"start",end:"end"};return t[e]||t.start}function zq(e){const t={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return t[e]||t.alphabetic}const Xc={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 c1{__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",wn("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 ZE{__root;__ctx;constructor(t,r){this.__root=t,this.__ctx=r}}class bf{__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(Xc);for(let r=0,n=t.length;r<n;r++){const i=t[r];this[i]=Xc[i].canvas}}__getStyleState(){const t={},r=Object.keys(Xc);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(Xc);for(let o=0;o<i.length;o++){const s=Xc[i[o]],a=this[i[o]];if(s.apply){if(a instanceof ZE){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,wn("url(#{id})",{id:a.__root.getAttribute("id")}))}else if(a instanceof c1)r.setAttribute(s.apply,wn("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,wn("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(QE);for(let i=0,o=n.length;i<o;i++){const s=n[i],a=QE[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(wn("scale({x},{y})",{x:t,y:r}))}rotate(t){const r=t*180/Math.PI;this.__addTransform(wn("rotate({angle},{cx},{cy})",{angle:r,cx:0,cy:0}))}translate(t,r){this.__addTransform(wn("translate({x},{y})",{x:t,y:r}))}transform(t,r,n,i,o,s){this.__addTransform(wn("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(wn("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(wn("L {x} {y}",this.__currentPosition)):this.__addPathCommand(wn("M {x} {y}",this.__currentPosition))}bezierCurveTo(t,r,n,i,o,s){this.__currentPosition={x:o,y:s},this.__addPathCommand(wn("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(wn("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]],_=[l[1],-l[0]],y=function(N){const $=N[0];return N[1]>=0?Math.acos($):-Math.acos($)},m=y(v),x=y(_);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:_f(this.__ids),x1:t+"px",x2:n+"px",y1:r+"px",y2:i+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(o),new c1(o,this)}createRadialGradient(t,r,n,i,o,s){const a=this.__createElement("radialGradient",{id:_f(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 c1(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":Uq(this.textAlign),"dominant-baseline":zq(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(wn("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=_f(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",wn("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 _=this.__closestGroupOrSvg();this.__currentElement;const y="translate("+n+", "+i+")";if(r instanceof bf){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),_.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")),_.appendChild(p))}createPattern(t,r){const n=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),i=_f(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 bf&&(n.setAttribute("width",""+t.width),n.setAttribute("height",""+t.height),n.appendChild(t.__rootSVG.childNodes[1]),this.__SVGdefs.appendChild(n)),new ZE(n,this)}setLineDash(t){t&&t.length>0?this.lineDash=t.join(","):this.lineDash=null}drawFocusRing(){}createImageData(){}getImageData(){}putImageData(){}globalCompositeOperation(){}setTransform(){}}let t3=class UP{point;constructor(t){this.point=new ga(t)}static fromSVGPathData(t){if(t.length<3)throw new Error("Line 参数个数错误");if(t[0].toUpperCase()!=="L")throw new Error("Line command 错误");return new UP({x:t[1],y:t[2]})}toSVGPathData(){return["L",this.point.x,this.point.y]}toSVGPathD(){return"L "+this.point.toSVGPathD()}},e3=class zP extends t3{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 zP({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 Wc extends t3{ctrlPoints=[];constructor(t){super(t),this.ctrlPoints.push(new ga({x:t.c1x,y:t.c1y})),this.ctrlPoints.push(new ga({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 Wc({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 ul{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 ga({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=r1(e1(t1(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(Wc.fromSVGPathData(o))}return this}static fromSVGPathD(t,r){if(!pq(t))throw new Error("Not an SVG path!");const n=r1(e1(t1(t)));return ul.fromSVGPathData(n,r)}static fromSVGPathData(t,r){const n=new ul;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 Wc({c1x:a[1],c1y:a[2],c2x:a[3],c2y:a[4],x:a[5],y:a[6]}))}n.normalize();const i=gf(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 Aq(this.toSVGPathD())}getPointAtLength(t){return Dq(this.toSVGPathD(),t)}isPointInPath(t,r){return Rq(this.toSVGPathD(),t,r)}isPointInStroke(t,r,n={lineWidth:1,lineCap:"butt",lineJoin:"miter"}){return Iq(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 Wc.fromSVGPathData(o)}),this}translate(t,r){const n=new bn().translate(t,r);return this.transform(n)}rotate(t,r=0,n=0){const i=new bn().rotate(t,r,n);return this.transform(i)}scale(t,r=t,n=0,i=0){const o=new bn().scale(t,r,n,i);return this.transform(o)}skew(t,r=0){const n=new bn().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 ul;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 e3({x:u,y:h,rx:n,ry:i,xAxisRotate:a*c,largeArcFlag:1,sweepFlag:1})),s.addLine(new e3({x:t,y:r,rx:n,ry:i,xAxisRotate:a*c,largeArcFlag:1,sweepFlag:1}))}return s.normalize(),s}}var r3={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 A=Array.prototype.slice.call(arguments,0);if(c.is(A[A.length-1],"function")){var j=A.pop();return l?j.call(c._engine.create[y](c,A)):a.on("raphael.DOMload",function(){j.call(c._engine.create[y](c,A))})}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},_=function(){this.ca=this.customAttributes={}},y="apply",m="concat",x="ontouchstart"in window||window.TouchEvent||window.DocumentTouch&&document instanceof DocumentTouch,N="",$=" ",k=String,D="split",V="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[D]($),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},E=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,b=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,W=/([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,A){return P(S)-P(A)},ct=function(S){return S},dt=c._rectPath=function(S,A,j,w,T){return T?[["M",S+T,A],["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,A],["l",j,0],["l",0,w],["l",-j,0],["z"]]},$t=function(S,A,j,w){return w==null&&(w=j),[["M",S,A],["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 A=S.attrs;return $t(A.cx,A.cy,A.r)},ellipse:function(S){var A=S.attrs;return $t(A.cx,A.cy,A.rx,A.ry)},rect:function(S){var A=S.attrs;return dt(A.x,A.y,A.width,A.height,A.r)},image:function(S){var A=S.attrs;return dt(A.x,A.y,A.width,A.height)},text:function(S){var A=S._getBBox();return dt(A.x,A.y,A.width,A.height)},set:function(S){var A=S._getBBox();return dt(A.x,A.y,A.width,A.height)}},bt=c.mapPath=function(S,A){if(!A)return S;var j,w,T,F,B,H,J;for(T=0,B=(S=Ii(S)).length;T<B;T++)for(F=1,H=(J=S[T]).length;F<H;F+=2)j=A.x(J[F],J[F+1]),w=A.y(J[F],J[F+1]),J[F]=j,J[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=N;It=null}function Vt(S){if(typeof S=="function"||Object(S)!==S)return S;var A=new S.constructor;for(var j in S)S[p](j)&&(A[j]=Vt(S[j]));return A}c.svg=!(c.vml=c.type=="VML"),c._Paper=_,c.fn=u=_.prototype=c.prototype,c._id=0,c.is=function(S,A){return(A=K.call(A))=="finite"?!C[p](+S):A=="array"?S instanceof Array:A=="null"&&S===null||A==typeof S&&S!==null||A=="object"&&S===Object(S)||A=="array"&&Array.isArray&&Array.isArray(S)||X.call(S).slice(8,-1).toLowerCase()==A},c.angle=function(S,A,j,w,T,F){if(T==null){var B=S-j,H=A-w;return B||H?(180+180*Y.atan2(-H,-B)/_t+360)%360:0}return c.angle(S,A,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,A,j){if(j=c.is(j,"finite")?j:10,c.is(S,at)){for(var w=S.length;w--;)if(ft(S[w]-A)<=j)return S[w]}else{var T=A%(S=+S);if(T<j)return A-T;if(T>S-j)return A-T+S}return A};var Ut,Kt;c.createUUID=(Ut=/[xy]/g,Kt=function(S){var A=16*Y.random()|0;return(S=="x"?A:3&A|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 oe=function(S){if(c.vml){var A,j=/^\s+|\s+$/g;try{var w=new ActiveXObject("htmlfile");w.write("<body>"),w.close(),A=w.body}catch{A=createPopup().document.body}var T=A.createTextRange();oe=hr(function(B){try{A.style.color=k(B).replace(j,N);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),oe=hr(function(B){return F.style.color=B,g.doc.defaultView.getComputedStyle(F,N).getPropertyValue("color")})}return oe(S)},Yt=function(){return"hsb("+[this.h,this.s,this.b]+")"},me=function(){return"hsl("+[this.h,this.s,this.l]+")"},Ve=function(){return this.hex},ar=function(S,A,j){if(A==null&&c.is(S,"object")&&"r"in S&&"g"in S&&"b"in S&&(j=S.b,A=S.g,S=S.r),A==null&&c.is(S,"string")){var w=c.getRGB(S);S=w.r,A=w.g,j=w.b}return(S>1||A>1||j>1)&&(S/=255,A/=255,j/=255),[S,A,j]},wr=function(S,A,j,w){var T={r:S*=255,g:A*=255,b:j*=255,hex:c.rgb(S,A,j),toString:Ve};return c.is(w,"finite")&&(T.opacity=w),T};function hr(S,A,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(J,rt){for(var ht=0,St=J.length;ht<St;ht++)if(J[ht]===rt)return J.push(J.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](A,T),j?j(B[F]):B[F])}}c.color=function(S){var A;return c.is(S,"object")&&"h"in S&&"s"in S&&"b"in S?(A=c.hsb2rgb(S),S.r=A.r,S.g=A.g,S.b=A.b,S.hex=A.hex):c.is(S,"object")&&"h"in S&&"s"in S&&"l"in S?(A=c.hsl2rgb(S),S.r=A.r,S.g=A.g,S.b=A.b,S.hex=A.hex):(c.is(S,"string")&&(S=c.getRGB(S)),c.is(S,"object")&&"r"in S&&"g"in S&&"b"in S?(A=c.rgb2hsl(S),S.h=A.h,S.s=A.s,S.l=A.l,A=c.rgb2hsb(S),S.v=A.b):(S={hex:"none"}).r=S.g=S.b=S.h=S.s=S.v=S.l=-1),S.toString=Ve,S},c.hsb2rgb=function(S,A,j,w){var T,F,B,H,J;return this.is(S,"object")&&"h"in S&&"s"in S&&"b"in S&&(j=S.b,A=S.s,w=S.o,S=S.h),H=(J=j*A)*(1-ft((S=(S*=360)%360/60)%2-1)),T=F=B=j-J,wr(T+=[J,H,0,0,H,J][S=~~S],F+=[H,J,J,H,0,0][S],B+=[0,0,H,J,J,H][S],w)},c.hsl2rgb=function(S,A,j,w){var T,F,B,H,J;return this.is(S,"object")&&"h"in S&&"s"in S&&"l"in S&&(j=S.l,A=S.s,S=S.h),(S>1||A>1||j>1)&&(S/=360,A/=100,j/=100),H=(J=2*A*(j<.5?j:1-j))*(1-ft((S=(S*=360)%360/60)%2-1)),T=F=B=j-J/2,wr(T+=[J,H,0,0,H,J][S=~~S],F+=[H,J,J,H,0,0][S],B+=[0,0,H,J,J,H][S],w)},c.rgb2hsb=function(S,A,j){var w,T;return S=(j=ar(S,A,j))[0],A=j[1],j=j[2],{h:(((T=(w=it(S,A,j))-nt(S,A,j))==0?null:w==S?(A-j)/T:w==A?(j-S)/T+2:(S-A)/T+4)+360)%6*60/360,s:T==0?0:T/w,b:w,toString:Yt}},c.rgb2hsl=function(S,A,j){var w,T,F,B;return S=(j=ar(S,A,j))[0],A=j[1],j=j[2],w=((T=it(S,A,j))+(F=nt(S,A,j)))/2,{h:(((B=T-F)==0?null:T==S?(A-j)/B:T==A?(j-S)/B+2:(S-A)/B+4)+360)%6*60/360,s:B==0?0:w<.5?B/(2*w):B/(2-2*w),l:w,toString:me}},c._path2string=function(){return this.join(",").replace(mt,"$1")},c._preload=function(S,A){var j=g.doc.createElement("img");j.style.cssText="position:absolute;left:-9999em;top:-9999em",j.onload=function(){A.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 zr(){return this.hex}function ln(S,A){for(var j=[],w=0,T=S.length;T-2*!A>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]}];A?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=hr(function(S){if(!S||(S=k(S)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:zr};if(S=="none")return{r:-1,g:-1,b:-1,hex:"none",toString:zr};!st[p](S.toLowerCase().substring(0,2))&&S.charAt()!="#"&&(S=oe(S));var A,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),A=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),A=M((F=H[3].charAt(1))+F,16)),H[4]&&(B=H[4][D](et),A=P(B[0]),B[0].slice(-1)=="%"&&(A*=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),A=P(B[0]),B[0].slice(-1)=="%"&&(A*=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)=="°")&&(A/=360),H[1].toLowerCase().slice(0,4)=="hsba"&&(T=P(B[3])),B[3]&&B[3].slice(-1)=="%"&&(T/=100),c.hsb2rgb(A,j,w,T)):H[6]?(B=H[6][D](et),A=P(B[0]),B[0].slice(-1)=="%"&&(A*=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)=="°")&&(A/=360),H[1].toLowerCase().slice(0,4)=="hsla"&&(T=P(B[3])),B[3]&&B[3].slice(-1)=="%"&&(T/=100),c.hsl2rgb(A,j,w,T)):((H={r:A,g:j,b:w,toString:zr}).hex="#"+(16777216|w|j<<8|A<<16).toString(16).slice(1),c.is(T,"finite")&&(H.opacity=T),H)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:zr}},c),c.hsb=hr(function(S,A,j){return c.hsb2rgb(S,A,j).hex}),c.hsl=hr(function(S,A,j){return c.hsl2rgb(S,A,j).hex}),c.rgb=hr(function(S,A,j){function w(T){return T+.5|0}return"#"+(16777216|w(j)|w(A)<<8|w(S)<<16).toString(16).slice(1)}),c.getColor=function(S){var A=this.getColor.start=this.getColor.start||{h:0,s:1,b:S||.75},j=this.hsb2rgb(A.h,A.s,A.b);return A.h+=.075,A.h>1&&(A.h=0,A.s-=.2,A.s<=0&&(this.getColor.start={h:0,s:1,b:A.b})),j.hex},c.getColor.reset=function(){delete this.start},c.parsePathString=function(S){if(!S)return null;var A=he(S);if(A.arr)return Ze(A.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=Ze(S)),w.length||k(S).replace(Lt,function(T,F,B){var H=[],J=F.toLowerCase();if(B.replace(Q,function(rt,ht){ht&&H.push(+ht)}),J=="m"&&H.length>2&&(w.push([F][m](H.splice(0,2))),J="l",F=F=="m"?"l":"L"),J=="r")w.push([F][m](H));else for(;H.length>=j[J]&&(w.push([F][m](H.splice(0,j[J]))),j[J]););}),w.toString=c._path2string,A.arr=Ze(w),w},c.parseTransformString=hr(function(S){if(!S)return null;var A=[];return c.is(S,at)&&c.is(S[0],at)&&(A=Ze(S)),A.length||k(S).replace(W,function(j,w,T){var F=[];K.call(w),T.replace(Q,function(B,H){H&&F.push(+H)}),A.push([w][m](F))}),A.toString=c._path2string,A},this,function(S){if(!S)return S;for(var A=[],j=0;j<S.length;j++){for(var w=[],T=0;T<S[j].length;T++)w.push(S[j][T]);A.push(w)}return A});var he=function(S){var A=he.ps=he.ps||{};return A[S]?A[S].sleep=100:A[S]={sleep:100},setTimeout(function(){for(var j in A)A[p](j)&&j!=S&&(A[j].sleep--,!A[j].sleep&&delete A[j])}),A[S]};function gr(S,A,j,w,T){return S*(S*(-3*A+9*j-9*w+3*T)+6*A-12*j+6*w)-3*A+3*j}function Gr(S,A,j,w,T,F,B,H,J){J==null&&(J=1);for(var rt=(J=J>1?1:J<0?0:J)/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=gr(Et,S,j,T,B),Ct=gr(Et,A,w,F,H),wt=Nt*Nt+Ct*Ct;gt+=St[pt]*Y.sqrt(wt)}return rt*gt}function Ri(S,A,j,w,T,F,B,H){if(!(it(S,j)<nt(T,B)||nt(S,j)>it(T,B)||it(A,w)<nt(F,H)||nt(A,w)>it(F,H))){var J=(S-j)*(F-H)-(A-w)*(T-B);if(J){var rt=((S*w-A*j)*(T-B)-(S-j)*(T*H-F*B))/J,ht=((S*w-A*j)*(F-H)-(A-w)*(T*H-F*B))/J,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(A,w).toFixed(2)||gt>+it(A,w).toFixed(2)||gt<+nt(F,H).toFixed(2)||gt>+it(F,H).toFixed(2)))return{x:rt,y:ht}}}}function Wn(S,A,j){var w=c.bezierBBox(S),T=c.bezierBBox(A);if(!c.isBBoxIntersect(w,T))return j?0:[];for(var F=Gr.apply(0,S),B=Gr.apply(0,A),H=it(~~(F/5),1),J=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<J+1;pt++)Et=c.findDotsAtSegment.apply(c,A.concat(pt/J)),ht.push({x:Et.x,y:Et.y,t:pt/J});for(pt=0;pt<H;pt++)for(var Nt=0;Nt<J;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",be=Ri(Ct.x,Ct.y,wt.x,wt.y,Bt.x,Bt.y,At.x,At.y);if(be){if(St[be.x.toFixed(4)]==be.y.toFixed(4))continue;St[be.x.toFixed(4)]=be.y.toFixed(4);var de=Ct.t+ft((be[Ft]-Ct[Ft])/(wt[Ft]-Ct[Ft]))*(wt.t-Ct.t),we=Bt.t+ft((be[Dt]-Bt[Dt])/(At[Dt]-Bt[Dt]))*(At.t-Bt.t);de>=0&&de<=1.001&&we>=0&&we<=1.001&&(j?gt++:gt.push({x:be.x,y:be.y,t1:nt(de,1),t2:nt(we,1)}))}}return gt}function ci(S,A,j){S=c._path2curve(S),A=c._path2curve(A);for(var w,T,F,B,H,J,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=J=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,J,H,J],w=H,T=J);for(var wt=0,Bt=A.length;wt<Bt;wt++){var At=A[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=Wn(St,gt,j);if(j)pt+=Ft;else{for(var Dt=0,be=Ft.length;Dt<be;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,A,j,w,T,F,B,H,J){var rt=1-J,ht=xt(rt,3),St=xt(rt,2),gt=J*J,pt=gt*J,Et=ht*S+3*St*J*j+3*rt*J*J*T+pt*B,Nt=ht*A+3*St*J*w+3*rt*J*J*F+pt*H,Ct=S+2*J*(j-S)+gt*(T-2*j+S),wt=A+2*J*(w-A)+gt*(F-2*w+A),Bt=j+2*J*(T-j)+gt*(B-2*T+j),At=w+2*J*(F-w)+gt*(H-2*F+w),Ft=rt*S+J*j,Dt=rt*A+J*w,be=rt*T+J*B,de=rt*F+J*H,we=90-180*Y.atan2(Ct-Bt,wt-At)/_t;return(Ct>Bt||wt<At)&&(we+=180),{x:Et,y:Nt,m:{x:Ct,y:wt},n:{x:Bt,y:At},start:{x:Ft,y:Dt},end:{x:be,y:de},alpha:we}},c.bezierBBox=function(S,A,j,w,T,F,B,H){c.is(S,"array")||(S=[S,A,j,w,T,F,B,H]);var J=kn.apply(null,S);return{x:J.min.x,y:J.min.y,x2:J.max.x,y2:J.max.y,width:J.max.x-J.min.x,height:J.max.y-J.min.y}},c.isPointInsideBBox=function(S,A,j){return A>=S.x&&A<=S.x2&&j>=S.y&&j<=S.y2},c.isBBoxIntersect=function(S,A){var j=c.isPointInsideBBox;return j(A,S.x,S.y)||j(A,S.x2,S.y)||j(A,S.x,S.y2)||j(A,S.x2,S.y2)||j(S,A.x,A.y)||j(S,A.x2,A.y)||j(S,A.x,A.y2)||j(S,A.x2,A.y2)||(S.x<A.x2&&S.x>A.x||A.x<S.x2&&A.x>S.x)&&(S.y<A.y2&&S.y>A.y||A.y<S.y2&&A.y>S.y)},c.pathIntersection=function(S,A){return ci(S,A)},c.pathIntersectionNumber=function(S,A){return ci(S,A,1)},c.isPointInsidePath=function(S,A,j){var w=c.pathBBox(S);return c.isPointInsideBBox(w,A,j)&&ci(S,[["M",A,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 fn=c.pathBBox=function(S){var A=he(S);if(A.bbox)return Vt(A.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,J=(S=Ii(S)).length;H<J;H++)if((j=S[H])[0]=="M")w=j[1],T=j[2],F.push(w),B.push(T);else{var rt=kn(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 A.bbox=Vt(Ct),Ct},Ze=function(S){var A=Vt(S);return A.toString=c._path2string,A},Rs=c._pathToRelative=function(S){var A=he(S);if(A.rel)return Ze(A.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 J=H,rt=S.length;J<rt;J++){var ht=j[J]=[],St=S[J];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[J]=[],St[0]=="m"&&(F=St[1]+w,B=St[2]+T);for(var Et=0,Nt=St.length;Et<Nt;Et++)j[J][Et]=St[Et]}var Ct=j[J].length;switch(j[J][0]){case"z":w=F,T=B;break;case"h":w+=+j[J][Ct-1];break;case"v":T+=+j[J][Ct-1];break;default:w+=+j[J][Ct-2],T+=+j[J][Ct-1]}}return j.toString=c._path2string,A.rel=Ze(j),j},Fn=c._pathToAbsolute=function(S){var A=he(S);if(A.abs)return Ze(A.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 J,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(J=[]),(rt=S[St])[0]!=I.call(rt[0]))switch(J[0]=I.call(rt[0]),J[0]){case"A":J[1]=rt[1],J[2]=rt[2],J[3]=rt[3],J[4]=rt[4],J[5]=rt[5],J[6]=+(rt[6]+w),J[7]=+(rt[7]+T);break;case"V":J[1]=+rt[1]+T;break;case"H":J[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](ln(pt,ht));break;case"M":F=+rt[1]+w,B=+rt[2]+T;default:for(Et=1,Nt=rt.length;Et<Nt;Et++)J[Et]=+rt[Et]+(Et%2?w:T)}else if(rt[0]=="R")pt=[w,T][m](rt.slice(1)),j.pop(),j=j[m](ln(pt,ht)),J=["R"][m](rt.slice(-2));else for(var Ct=0,wt=rt.length;Ct<wt;Ct++)J[Ct]=rt[Ct];switch(J[0]){case"Z":w=F,T=B;break;case"H":w=J[1];break;case"V":T=J[1];break;case"M":F=J[J.length-2],B=J[J.length-1];default:w=J[J.length-2],T=J[J.length-1]}}return j.toString=c._path2string,A.abs=Ze(j),j},Jn=function(S,A,j,w){return[S,A,j,w,j,w]},tn=function(S,A,j,w,T,F){return[1/3*S+2/3*j,1/3*A+2/3*w,1/3*T+2/3*j,1/3*F+2/3*w,T,F]},ui=function(S,A,j,w,T,F,B,H,J,rt){var ht,St=120*_t/180,gt=_t/180*(+T||0),pt=[],Et=hr(function(MP,LP,hp){return{x:MP*Y.cos(hp)-LP*Y.sin(hp),y:MP*Y.sin(hp)+LP*Y.cos(hp)}});if(rt)de=rt[0],we=rt[1],Dt=rt[2],be=rt[3];else{S=(ht=Et(S,A,-gt)).x,A=ht.y,H=(ht=Et(H,J,-gt)).x,J=ht.y;var Nt=(S-H)/2,Ct=(A-J)/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,be=Ft*-w*Nt/j+(A+J)/2,de=Y.asin(((A-be)/w).toFixed(9)),we=Y.asin(((J-be)/w).toFixed(9));(de=S<Dt?_t-de:de)<0&&(de=2*_t+de),(we=H<Dt?_t-we:we)<0&&(we=2*_t+we),B&&de>we&&(de-=2*_t),!B&&we>de&&(we-=2*_t)}var Pl=we-de;if(ft(Pl)>St){var ph=we,Ln=H,oo=J;we=de+St*(B&&we>de?1:-1),H=Dt+j*Y.cos(we),J=be+w*Y.sin(we),pt=ui(H,J,j,w,T,0,B,Ln,oo,[we,ph,Dt,be])}Pl=we-de;var Tl=Y.cos(de),Ol=Y.sin(de),cp=Y.cos(we),Ko=Y.sin(we),Va=Y.tan(Pl/4),up=4/3*j*Va,DP=4/3*w*Va,RP=[S,A],Nl=[S+up*Ol,A-DP*Tl],IP=[H+up*Ko,J-DP*cp],jP=[H,J];if(Nl[0]=2*RP[0]-Nl[0],Nl[1]=2*RP[1]-Nl[1],rt)return[Nl,IP,jP][m](pt);for(var FP=[],Is=0,Vnt=(pt=[Nl,IP,jP][m](pt).join()[D](",")).length;Is<Vnt;Is++)FP[Is]=Is%2?Et(pt[Is-1],pt[Is],gt).y:Et(pt[Is],pt[Is+1],gt).x;return FP},Qn=function(S,A,j,w,T,F,B,H,J){var rt=1-J;return{x:xt(rt,3)*S+3*xt(rt,2)*J*j+3*rt*J*J*T+xt(J,3)*B,y:xt(rt,3)*A+3*xt(rt,2)*J*w+3*rt*J*J*F+xt(J,3)*H}},kn=hr(function(S,A,j,w,T,F,B,H){var J,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=[A,H],Nt=[S,B];return ft(gt)>"1e12"&&(gt=.5),ft(pt)>"1e12"&&(pt=.5),gt>0&&gt<1&&(J=Qn(S,A,j,w,T,F,B,H,gt),Nt.push(J.x),Et.push(J.y)),pt>0&&pt<1&&(J=Qn(S,A,j,w,T,F,B,H,pt),Nt.push(J.x),Et.push(J.y)),rt=F-2*w+A-(H-2*F+w),St=A-w,gt=(-(ht=2*(w-A)-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&&gt<1&&(J=Qn(S,A,j,w,T,F,B,H,gt),Nt.push(J.x),Et.push(J.y)),pt>0&&pt<1&&(J=Qn(S,A,j,w,T,F,B,H,pt),Nt.push(J.x),Et.push(J.y)),{min:{x:nt[y](0,Nt),y:nt[y](0,Et)},max:{x:it[y](0,Nt),y:it[y](0,Et)}}}),Ii=c._path2curve=hr(function(S,A){var j=!A&&he(S);if(!A&&j.curve)return Ze(j.curve);for(var w=Fn(S),T=A&&Fn(A),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,be){var de,we;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](ui[y](0,[Dt.x,Dt.y][m](Ft.slice(1))));break;case"S":be=="C"||be=="S"?(de=2*Dt.x-Dt.bx,we=2*Dt.y-Dt.by):(de=Dt.x,we=Dt.y),Ft=["C",de,we][m](Ft.slice(1));break;case"T":be=="Q"||be=="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](tn(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](tn(Dt.x,Dt.y,Ft[1],Ft[2],Ft[3],Ft[4]));break;case"L":Ft=["C"][m](Jn(Dt.x,Dt.y,Ft[1],Ft[2]));break;case"H":Ft=["C"][m](Jn(Dt.x,Dt.y,Ft[1],Dt.y));break;case"V":Ft=["C"][m](Jn(Dt.x,Dt.y,Dt.x,Ft[1]));break;case"Z":Ft=["C"][m](Jn(Dt.x,Dt.y,Dt.X,Dt.Y))}return Ft},J=function(Ft,Dt){if(Ft[Dt].length>7){Ft[Dt].shift();for(var be=Ft[Dt];be.length;)ht[Dt]="A",T&&(St[Dt]="A"),Ft.splice(Dt++,0,["C"][m](be.splice(0,6)));Ft.splice(Dt,1),Nt=it(w.length,T&&T.length||0)}},rt=function(Ft,Dt,be,de,we){Ft&&Dt&&Ft[we][0]=="M"&&Dt[we][0]!="M"&&(Dt.splice(we,0,["M",de.x,de.y]),be.bx=0,be.by=0,be.x=Ft[we][1],be.y=Ft[we][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"&&gt=="C"&&(ht[Et]="C"),J(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"&&gt=="C"&&(St[Et]="C"),J(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=Ze(w)),T?[w,T]:w},null,Ze),hi=(c._parseDots=hr(function(S){for(var A=[],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]+"%"),A.push(T)}for(j=1,w=A.length-1;j<w;j++)if(!A[j].offset){for(var B=P(A[j-1].offset||0),H=0,J=j+1;J<w;J++)if(A[J].offset){H=A[J].offset;break}H||(H=100,J=w);for(var rt=((H=P(H))-B)/(J-j+1);j<J;j++)B+=rt,A[j].offset=B+"%"}return A}),c._tear=function(S,A){S==A.top&&(A.top=S.prev),S==A.bottom&&(A.bottom=S.next),S.next&&(S.next.prev=S.prev),S.prev&&(S.prev.next=S.next)}),R=(c._tofront=function(S,A){A.top!==S&&(hi(S,A),S.next=null,S.prev=A.top,A.top.next=S,A.top=S)},c._toback=function(S,A){A.bottom!==S&&(hi(S,A),S.next=A.bottom,S.prev=null,A.bottom.prev=S,A.bottom=S)},c._insertafter=function(S,A,j){hi(S,j),A==j.top&&(j.top=S),A.next&&(A.next.prev=S),S.next=A.next,S.prev=A,A.next=S},c._insertbefore=function(S,A,j){hi(S,j),A==j.bottom&&(j.bottom=S),A.prev&&(A.prev.next=S),S.prev=A.prev,A.prev=S,S.next=A},c.toMatrix=function(S,A){var j=fn(S),w={_:{transform:N},getBBox:function(){return j}};return L(w,A),w.matrix}),L=(c.transformPath=function(S,A){return bt(S,R(S,A))},c._extractTransform=function(S,A){if(A==null)return S._.transform;A=k(A).replace(/\.{3}|\u2026/g,S._.transform||N);var j,w,T=c.parseTransformString(A),F=0,B=1,H=1,J=S._,rt=new tt;if(J.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]),J.dirtyT=1,S.matrix=rt}S.matrix=rt,J.sx=B,J.sy=H,J.deg=F,J.dx=j=rt.e,J.dy=w=rt.f,B==1&&H==1&&!F&&J.bbox?(J.bbox.x+=+j,J.bbox.y+=+w):J.dirtyT=1}),z=function(S){var A=S[0];switch(A.toLowerCase()){case"t":return[A,0,0];case"m":return[A,1,0,0,1,0,0];case"r":return S.length==4?[A,0,S[2],S[3]]:[A,0];case"s":return S.length==5?[A,1,1,S[3],S[4]]:S.length==3?[A,1,1]:[A,1]}},Z=c._equaliseTransform=function(S,A){A=k(A).replace(/\.{3}|\u2026/g,S),S=c.parseTransformString(S)||[],A=c.parseTransformString(A)||[];for(var j,w,T,F,B=it(S.length,A.length),H=[],J=[],rt=0;rt<B;rt++){if(T=S[rt]||z(A[rt]),F=A[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]=[],J[rt]=[],j=0,w=it(T.length,F.length);j<w;j++)j in T&&(H[rt][j]=T[j]),j in F&&(J[rt][j]=F[j])}return{from:H,to:J}};function tt(S,A,j,w,T,F){S!=null?(this.a=+S,this.b=+A,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,A,j,w){var T;if((T=w!=null||c.is(S,"object")?S:g.doc.getElementById(S))!=null)return T.tagName?A==null?{container:T,width:T.style.pixelWidth||T.offsetWidth,height:T.style.pixelHeight||T.offsetHeight}:{container:T,width:A,height:j}:{container:1,x:S,y:A,width:j,height:w}},c.pathToRelative=Rs,c._engine={},c.path2curve=Ii,c.matrix=function(S,A,j,w,T,F){return new tt(S,A,j,w,T,F)},function(S){function A(w){return w[0]*w[0]+w[1]*w[1]}function j(w){var T=Y.sqrt(A(w));w[0]&&(w[0]/=T),w[1]&&(w[1]/=T)}S.add=function(w,T,F,B,H,J){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,J],[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(A(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(A(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]:N)+(T.scalex!=1||T.scaley!=1?"s"+[T.scalex,T.scaley,0,0]:N)+(T.rotate?"r"+[T.rotate,0,0]:N)):"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},_e=function(){return this.originalEvent.stopPropagation()},re=function(S){var A=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+A}},zt=g.doc.addEventListener?function(S,A,j,w){var T=function(B){var H=re(B);return j.call(w,B,H.x,H.y)};if(S.addEventListener(A,T,!1),x&&U[A]){var F=function(B){for(var H=re(B),J=B,rt=0,ht=B.targetTouches&&B.targetTouches.length;rt<ht;rt++)if(B.targetTouches[rt].target==S){(B=B.targetTouches[rt]).originalEvent=J,B.preventDefault=Tt,B.stopPropagation=_e;break}return j.call(w,B,H.x,H.y)};S.addEventListener(U[A],F,!1)}return function(){return S.removeEventListener(A,T,!1),x&&U[A]&&S.removeEventListener(U[A],F,!1),!0}}:g.doc.attachEvent?function(S,A,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,J=F.clientX+H,rt=F.clientY+B;return F.preventDefault=F.preventDefault||Ot,F.stopPropagation=F.stopPropagation||Ht,j.call(w,F,J,rt)};return S.attachEvent("on"+A,T),function(){return S.detachEvent("on"+A,T),!0}}:void 0,qt=[],ue=function(S){for(var A,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(A=qt[B],x&&S.touches){for(var H,J=S.touches.length;J--;)if((H=S.touches[J]).identifier==A.el._drag.id){j=H.clientX,w=H.clientY,(S.originalEvent?S.originalEvent:S).preventDefault();break}}else S.preventDefault();var rt,ht=A.el.node,St=ht.nextSibling,gt=ht.parentNode,pt=ht.style.display;g.win.opera&&gt.removeChild(ht),ht.style.display="none",rt=A.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."+A.el.id,A.el,rt),j+=F,w+=T,a("raphael.drag.move."+A.el.id,A.move_scope||A.el,j-A.el._drag.x,w-A.el._drag.y,j,w,S)}},jt=function(S){c.unmousemove(ue).unmouseup(jt);for(var A,j=qt.length;j--;)(A=qt[j]).el._drag={},a("raphael.drag.end."+A.el.id,A.end_scope||A.start_scope||A.move_scope||A.el,S);qt=[]},Gt=c.el={},se=V.length;se--;)(function(S){c[S]=Gt[S]=function(A,j){return c.is(A,"function")&&(this.events=this.events||[],this.events.push({name:S,f:A,unbind:zt(this.shape||this.node||g.doc,S,A,j||this)})),this},c["un"+S]=Gt["un"+S]=function(A){for(var j=this.events||[],w=j.length;w--;)j[w].name!=S||!c.is(A,"undefined")&&j[w].f!=A||(j[w].unbind(),j.splice(w,1),!j.length&&delete this.events);return this}})(V[se]);Gt.data=function(S,A){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]=A,a("raphael.data.set."+this.id,this,A,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,A,j,w){return this.mouseover(S,j).mouseout(A,w||j)},Gt.unhover=function(S,A){return this.unmouseover(S).unmouseout(A)};var Be=[];Gt.drag=function(S,A,j,w,T,F){function B(H){(H.originalEvent||H).preventDefault();var J=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){J=gt.clientX,rt=gt.clientY;break}}this._drag.x=J+St,this._drag.y=rt+ht,!qt.length&&c.mousemove(ue).mouseup(jt),qt.push({el:this,move_scope:w,start_scope:T,end_scope:F}),A&&a.on("raphael.drag.start."+this.id,A),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={},Be.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=Be.length;S--;)Be[S].el==this&&(this.unmousedown(Be[S].start),Be.splice(S,1),a.unbind("raphael.drag.*."+this.id));!Be.length&&c.unmousemove(ue).unmouseup(jt),qt=[]},u.circle=function(S,A,j){var w=c._engine.circle(this,S||0,A||0,j||0);return this.__set__&&this.__set__.push(w),w},u.rect=function(S,A,j,w,T){var F=c._engine.rect(this,S||0,A||0,j||0,w||0,T||0);return this.__set__&&this.__set__.push(F),F},u.ellipse=function(S,A,j,w){var T=c._engine.ellipse(this,S||0,A||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+=N);var A=c._engine.path(c.format[y](c,arguments),this);return this.__set__&&this.__set__.push(A),A},u.image=function(S,A,j,w,T){var F=c._engine.image(this,S||"about:blank",A||0,j||0,w||0,T||0);return this.__set__&&this.__set__.push(F),F},u.text=function(S,A,j){var w=c._engine.text(this,S||0,A||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 A=new Ma(S);return this.__set__&&this.__set__.push(A),A.paper=this,A.type="set",A},u.setStart=function(S){this.__set__=S||this.set()},u.setFinish=function(S){var A=this.__set__;return delete this.__set__,A},u.getSize=function(){var S=this.canvas.parentNode;return{width:S.offsetWidth,height:S.offsetHeight}},u.setSize=function(S,A){return c._engine.setSize.call(this,S,A)},u.setViewBox=function(S,A,j,w,T){return c._engine.setViewBox.call(this,S,A,j,w,T)},u.top=u.bottom=null,u.raphael=c;function jr(){return this.x+$+this.y+$+this.width+" × "+this.height}u.getElementByPoint=function(S,A){var j,w,T,F,B,H,J,rt=this.canvas,ht=g.doc.elementFromPoint(S,A);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,J=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)-J}),gt=rt.createSVGRect();gt.x=S-St.x,gt.y=A-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 A=this.set();return this.forEach(function(j){c.isBBoxIntersect(j.getBBox(),S)&&A.push(j)}),A},u.getById=function(S){for(var A=this.bottom;A;){if(A.id==S)return A;A=A.next}return null},u.forEach=function(S,A){for(var j=this.bottom;j;){if(S.call(A,j)===!1)return this;j=j.next}return this},u.getElementsByPoint=function(S,A){var j=this.set();return this.forEach(function(w){w.isPointInside(S,A)&&j.push(w)}),j},Gt.isPointInside=function(S,A){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,A)},Gt.getBBox=function(S){if(this.removed)return{};var A=this._;return S?(!A.dirty&&A.bboxwt||(this.realPath=vt[this.type](this),A.bboxwt=fn(this.realPath),A.bboxwt.toString=jr,A.dirty=0),A.bboxwt):((A.dirty||A.dirtyT||!A.bbox)&&(!A.dirty&&this.realPath||(A.bboxwt=0,this.realPath=vt[this.type](this)),A.bbox=fn(bt(this.realPath,this.matrix)),A.bbox.toString=jr,A.dirty=A.dirtyT=0),A.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 A={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=A.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:A.color,fill:A.fill?A.color:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(A.width/j*B).toFixed(3),opacity:+(A.opacity/j).toFixed(3)}));return T.insertBefore(this).translate(A.offsetx,A.offsety)};var Pe=function(S,A,j,w,T,F,B,H,J){return J==null?Gr(S,A,j,w,T,F,B,H):c.findDotsAtSegment(S,A,j,w,T,F,B,H,function(rt,ht,St,gt,pt,Et,Nt,Ct,wt){if(!(wt<0||Gr(rt,ht,St,gt,pt,Et,Nt,Ct)<wt)){var Bt,At=.5,Ft=1-At;for(Bt=Gr(rt,ht,St,gt,pt,Et,Nt,Ct,Ft);ft(Bt-wt)>.01;)Bt=Gr(rt,ht,St,gt,pt,Et,Nt,Ct,Ft+=(Bt<wt?1:-1)*(At/=2));return Ft}}(S,A,j,w,T,F,B,H,J))},tr=function(S,A){return function(j,w,T){for(var F,B,H,J,rt,ht="",St={},gt=0,pt=0,Et=(j=Ii(j)).length;pt<Et;pt++){if((H=j[pt])[0]=="M")F=+H[1],B=+H[2];else{if(gt+(J=Pe(F,B,H[1],H[2],H[3],H[4],H[5],H[6]))>w){if(A&&!St.start){if(ht+=["C"+(rt=Pe(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+=J,F=+H[5],B=+H[6];continue}if(!S&&!A)return{x:(rt=Pe(F,B,H[1],H[2],H[3],H[4],H[5],H[6],w-gt)).x,y:rt.y,alpha:rt.alpha}}gt+=J,F=+H[5],B=+H[6]}ht+=H.shift()+H}return St.end=ht,(rt=S?gt:A?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}},dr=tr(1),lr=tr(),Ue=tr(0,1);c.getTotalLength=dr,c.getPointAtLength=lr,c.getSubpath=function(S,A,j){if(this.getTotalLength(S)-j<1e-6)return Ue(S,A).end;var w=Ue(S,j,1);return A?Ue(w,A).end:w},Gt.getTotalLength=function(){var S=this.getPath();if(S)return this.node.getTotalLength?this.node.getTotalLength():dr(S)},Gt.getPointAtLength=function(S){var A=this.getPath();if(A)return lr(A,S)},Gt.getPath=function(){var S,A=c._getPath[this.type];if(this.type!="text"&&this.type!="set")return A&&(S=A(this)),S},Gt.getSubpath=function(S,A){var j=this.getPath();if(j)return c.getSubpath(j,S,A)};var Ee=c.easing_formulas={linear:function(S){return S},"<":function(S){return xt(S,1.7)},">":function(S){return xt(S,.48)},"<>":function(S){var A=.48-S/1.04,j=Y.sqrt(.1734+A*A),w=j-A,T=-j-A,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 A=1.70158;return S*S*((A+1)*S-A)},backOut:function(S){var A=1.70158;return(S-=1)*S*((A+1)*S+A)+1},elastic:function(S){return S==!!S?S:xt(2,-10*S)*Y.sin(2*_t*(S-.075)/.3)+1},bounce:function(S){var A=7.5625,j=2.75;return S<1/j?A*S*S:S<2/j?A*(S-=1.5/j)*S+.75:S<2.5/j?A*(S-=2.25/j)*S+.9375:A*(S-=2.625/j)*S+.984375}};Ee.easeIn=Ee["ease-in"]=Ee["<"],Ee.easeOut=Ee["ease-out"]=Ee[">"],Ee.easeInOut=Ee["ease-in-out"]=Ee["<>"],Ee["back-in"]=Ee.backIn,Ee["back-out"]=Ee.backOut;var te=[],fr=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(S){setTimeout(S,16)},pn=function(){for(var S=+new Date,A=0;A<te.length;A++){var j=te[A];if(!j.el.removed&&!j.paused){var w,T,F=S-j.start,B=j.ms,H=j.easing,J=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&&te.splice(A--,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 J)if(J[p](Nt)){switch(q[Nt]){case yt:w=+J[Nt]+Et*B*rt[Nt];break;case"colour":w="rgb("+[Mn(b(J[Nt].r+Et*B*rt[Nt].r)),Mn(b(J[Nt].g+Et*B*rt[Nt].g)),Mn(b(J[Nt].b+Et*B*rt[Nt].b))].join(",")+")";break;case"path":w=[];for(var Ct=0,wt=J[Nt].length;Ct<wt;Ct++){w[Ct]=[J[Nt][Ct][0]];for(var Bt=1,At=J[Nt][Ct].length;Bt<At;Bt++)w[Ct][Bt]=+J[Nt][Ct][Bt]+Et*B*rt[Nt][Ct][Bt];w[Ct]=w[Ct].join($)}w=w.join($);break;case"transform":if(rt[Nt].real)for(w=[],Ct=0,wt=J[Nt].length;Ct<wt;Ct++)for(w[Ct]=[J[Nt][Ct][0]],Bt=1,At=J[Nt][Ct].length;Bt<At;Bt++)w[Ct][Bt]=J[Nt][Ct][Bt]+Et*B*rt[Nt][Ct][Bt];else{var Ft=function(be){return+J[Nt][be]+Et*B*rt[Nt][be]};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]=+J[Nt][Ct]+Et*B*rt[Nt][Ct];break;default:var Dt=[][m](J[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(be,de,we){setTimeout(function(){a("raphael.anim.frame."+be,de,we)})}(St.id,St,j.anim)}else{if(function(be,de,we){setTimeout(function(){a("raphael.anim.frame."+de.id,de,we),a("raphael.anim.finish."+de.id,de,we),c.is(be,"function")&&be.call(de)})}(j.callback,St,j.anim),St.attr(ht),te.splice(A--,1),j.repeat>1&&!j.next){for(T in ht)ht[p](T)&&(pt[T]=j.totalOrigin[T]);j.el.attr(pt),Yr(j.anim,j.el,j.anim.percents[0],null,j.totalOrigin,j.repeat-1)}j.next&&!j.stop&&Yr(j.anim,j.el,j.next,null,j.totalOrigin,j.repeat)}}}te.length&&fr(pn)},Mn=function(S){return S>255?255:S<0?0:S};function Er(S,A,j,w,T,F){var B=3*A,H=3*(w-A)-B,J=1-B-H,rt=3*j,ht=3*(T-j)-rt,St=1-rt-ht;function gt(pt){return((J*pt+H)*pt+B)*pt}return function(pt,Et){var Nt=function(Ct,wt){var Bt,At,Ft,Dt,be,de;for(Ft=Ct,de=0;de<8;de++){if(Dt=gt(Ft)-Ct,ft(Dt)<wt)return Ft;if(ft(be=(3*J*Ft+2*H)*Ft+B)<1e-6)break;Ft-=Dt/be}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 $r(S,A){var j=[],w={};if(this.ms=A,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 Yr(S,A,j,w,T,F){j=P(j);var B,H,J,rt,ht,St,gt=S.ms,pt={},Et={},Nt={};if(w)for(wt=0,Bt=te.length;wt<Bt;wt++){var Ct=te[wt];if(Ct.el.id==A.id&&Ct.anim==S){Ct.percent!=j?(te.splice(wt,1),J=1):H=Ct,A.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&&A.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)||A.paper.customAttributes[p](At)))switch(pt[At]=A.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=Ii(pt[At],Et[At]),be=Dt[1];for(pt[At]=Dt[0],Nt[At]=[],wt=0,Bt=pt[At].length;wt<Bt;wt++){Nt[At][wt]=[0];for(var de=1,we=pt[At][wt].length;de<we;de++)Nt[At][wt][de]=(be[wt][de]-pt[At][wt][de])/gt}break;case"transform":var Pl=A._,ph=Z(Pl[At],Et[At]);if(ph)for(pt[At]=ph.from,Et[At]=ph.to,Nt[At]=[],Nt[At].real=!0,wt=0,Bt=pt[At].length;wt<Bt;wt++)for(Nt[At][wt]=[pt[At][wt][0]],de=1,we=pt[At][wt].length;de<we;de++)Nt[At][wt][de]=(Et[At][wt][de]-pt[At][wt][de])/gt;else{var Ln=A.matrix||new tt,oo={_:{transform:Pl.transform},getBBox:function(){return A.getBBox(1)}};pt[At]=[Ln.a,Ln.b,Ln.c,Ln.d,Ln.e,Ln.f],L(oo,Et[At]),Et[At]=oo._.transform,Nt[At]=[(oo.matrix.a-Ln.a)/gt,(oo.matrix.b-Ln.b)/gt,(oo.matrix.c-Ln.c)/gt,(oo.matrix.d-Ln.d)/gt,(oo.matrix.e-Ln.e)/gt,(oo.matrix.f-Ln.f)/gt]}break;case"csv":var Tl=k(B[At])[D](h),Ol=k(pt[At])[D](h);if(At=="clip-rect")for(pt[At]=Ol,Nt[At]=[],wt=Ol.length;wt--;)Nt[At][wt]=(Tl[wt]-pt[At][wt])/gt;Et[At]=Tl;break;default:for(Tl=[][m](B[At]),Ol=[][m](pt[At]),Nt[At]=[],wt=A.paper.customAttributes[At].length;wt--;)Nt[At][wt]=((Tl[wt]||0)-(Ol[wt]||0))/gt}var cp=B.easing,Ko=c.easing_formulas[cp];if(!Ko)if((Ko=k(cp).match(E))&&Ko.length==5){var Va=Ko;Ko=function(up){return Er(up,+Va[1],+Va[2],+Va[3],+Va[4],gt)}}else Ko=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:Ko,from:pt,diff:Nt,to:Et,el:A,callback:B.callback,prev:ht,next:rt,repeat:F||S.times,origin:A.attr(),totalOrigin:T},te.push(Ct),w&&!H&&!J&&(Ct.stop=!0,Ct.start=new Date-gt*w,te.length==1))return pn();J&&(Ct.start=new Date-Ct.ms*w),te.length==1&&fr(pn)}a("raphael.anim.start."+A.id,A,S)}}function di(S){for(var A=0;A<te.length;A++)te[A].el.paper==S&&te.splice(A--,1)}Gt.animateWith=function(S,A,j,w,T,F){if(this.removed)return F&&F.call(this),this;var B=j instanceof $r?j:c.animation(j,w,T,F);Yr(B,this,B.percents[0],null,this.attr());for(var H=0,J=te.length;H<J;H++)if(te[H].anim==A&&te[H].el==S){te[J-1].start=te[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},$r.prototype.delay=function(S){var A=new $r(this.anim,this.ms);return A.times=this.times,A.del=+S||0,A},$r.prototype.repeat=function(S){var A=new $r(this.anim,this.ms);return A.del=this.del,A.times=Y.floor(it(S,0))||1,A},c.animation=function(S,A,j,w){if(S instanceof $r)return S;!c.is(j,"function")&&j||(w=w||j||null,j=null),S=Object(S),A=+A||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 $r({100:B},A);if(w){var H=0;for(var J in S){var rt=M(J);S[p](J)&&rt>H&&(H=rt)}!S[H+="%"].callback&&(S[H].callback=w)}return new $r(S,A)},Gt.animate=function(S,A,j,w){if(this.removed)return w&&w.call(this),this;var T=S instanceof $r?S:c.animation(S,A,j,w);return Yr(T,this,T.percents[0],null,this.attr()),this},Gt.setTime=function(S,A){return S&&A!=null&&this.status(S,nt(A,S.ms)/S.ms),this},Gt.status=function(S,A){var j,w,T=[],F=0;if(A!=null)return Yr(S,this,-1,nt(A,1)),this;for(j=te.length;F<j;F++)if((w=te[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 A=0;A<te.length;A++)te[A].el.id!=this.id||S&&te[A].anim!=S||a("raphael.anim.pause."+this.id,this,te[A].anim)!==!1&&(te[A].paused=!0);return this},Gt.resume=function(S){for(var A=0;A<te.length;A++)if(te[A].el.id==this.id&&(!S||te[A].anim==S)){var j=te[A];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 A=0;A<te.length;A++)te[A].el.id!=this.id||S&&te[A].anim!=S||a("raphael.anim.stop."+this.id,this,te[A].anim)!==!1&&te.splice(A--,1);return this},a.on("raphael.remove",di),a.on("raphael.clear",di),Gt.toString=function(){return"Raphaël’s object"};var fi,en,pi,mi,Ma=function(S){if(this.items=[],this.length=0,this.type="set",S)for(var A=0,j=S.length;A<j;A++)!S[A]||S[A].constructor!=Gt.constructor&&S[A].constructor!=Ma||(this[this.items.length]=this.items[this.items.length]=S[A],this.length++)},Xr=Ma.prototype;for(var La in Xr.push=function(){for(var S,A,j=0,w=arguments.length;j<w;j++)!(S=arguments[j])||S.constructor!=Gt.constructor&&S.constructor!=Ma||(this[A=this.items.length]=this.items[A]=S,this.length++);return this},Xr.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},Xr.forEach=function(S,A){for(var j=0,w=this.items.length;j<w;j++)if(S.call(A,this.items[j],j)===!1)return this;return this},Gt)Gt[p](La)&&(Xr[La]=function(S){return function(){var A=arguments;return this.forEach(function(j){j[S][y](j,A)})}}(La));return Xr.attr=function(S,A){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,A);return this},Xr.clear=function(){for(;this.length;)this.pop()},Xr.splice=function(S,A,j){S=S<0?it(this.length+S,0):S,A=it(0,nt(this.length-S,A));var w,T=[],F=[],B=[];for(w=2;w<arguments.length;w++)B.push(arguments[w]);for(w=0;w<A;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-=A-H;this[w];)delete this[w++];return new Ma(F)},Xr.exclude=function(S){for(var A=0,j=this.length;A<j;A++)if(this[A]==S)return this.splice(A,1),!0},Xr.animate=function(S,A,j,w){(c.is(j,"function")||!j)&&(w=j||null);var T,F,B=this.items.length,H=B,J=this;if(!B)return this;w&&(F=function(){!--B&&w.call(J)}),j=c.is(j,"string")?j:F;var rt=c.animation(S,A,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},Xr.insertAfter=function(S){for(var A=this.items.length;A--;)this.items[A].insertAfter(S);return this},Xr.getBBox=function(){for(var S=[],A=[],j=[],w=[],T=this.items.length;T--;)if(!this.items[T].removed){var F=this.items[T].getBBox();S.push(F.x),A.push(F.y),j.push(F.x+F.width),w.push(F.y+F.height)}return{x:S=nt[y](0,S),y:A=nt[y](0,A),x2:j=it[y](0,j),y2:w=it[y](0,w),width:j-S,height:w-A}},Xr.clone=function(S){S=this.paper.set();for(var A=0,j=this.items.length;A<j;A++)S.push(this.items[A].clone());return S},Xr.toString=function(){return"Raphaël‘s set"},Xr.glow=function(S){var A=this.paper.set();return this.forEach(function(j,w){var T=j.glow(S);T?.forEach(function(F,B){A.push(F)})}),A},Xr.isPointInside=function(S,A){var j=!1;return this.forEach(function(w){if(w.isPointInside(S,A))return j=!0,!1}),j},c.registerFont=function(S){if(!S.face)return S;this.fonts=this.fonts||{};var A={w:S.w,face:{},glyphs:{}},j=S.face["font-family"];for(var w in S.face)S.face[p](w)&&(A.face[w]=S.face[w]);if(this.fonts[j]?this.fonts[j].push(A):this.fonts[j]=[A],!S.svg){for(var T in A.face["units-per-em"]=M(S.face["units-per-em"],10),S.glyphs)if(S.glyphs[p](T)){var F=S.glyphs[T];if(A.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)&&(A.glyphs[T].k[B]=F.k[B])}}return S},u.getFont=function(S,A,j,w){if(w=w||"normal",j=j||"normal",A=+A||{normal:400,bold:700,lighter:300,bolder:800}[A]||400,c.fonts){var T,F=c.fonts[S];if(!F){var B=new RegExp("(^|\\s)"+S.replace(/[^\w\d\s+!~.:_-]/g,N)+"(\\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 J=0,rt=F.length;J<rt&&((T=F[J]).face["font-weight"]!=A||T.face["font-style"]!=j&&T.face["font-style"]||T.face["font-stretch"]!=w);J++);return T}},u.print=function(S,A,j,w,T,F,B,H){F=F||"middle",B=it(nt(B||0,1),-1),H=it(nt(H||1,3),1);var J,rt=k(j)[D](N),ht=0,St=0,gt=N;if(c.is(w,"string")&&(w=this.getFont(w)),w){J=(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
- `)ht=0,Dt=0,St=0,Ct+=Nt*H;else{var Ft=St&&w.glyphs[rt[Bt-1]]||{},Dt=w.glyphs[rt[Bt]];ht+=St?(Ft.w||w.w)+(Ft.k&&Ft.k[rt[Bt]]||0)+w.w*B:0,St=1}Dt&&Dt.d&&(gt+=c.transformPath(Dt.d,["t",ht*J,Ct*J,"s",J,J,Et,wt,"t",(S-Et)/J,(A-wt)/J]))}}return this.path(gt).attr({fill:"#000",stroke:"none"})},u.add=function(S){if(c.is(S,"array"))for(var A,j=this.set(),w=0,T=S.length;w<T;w++)A=S[w]||{},f[p](A.type)&&j.push(this[A.type]().attr(A));return j},c.format=function(S,A){var j=c.is(A,at)?[0][m](A):arguments;return S&&c.is(S,"string")&&j.length-1&&(S=S.replace(d,function(w,T){return j[++T]==null?N:j[T]})),S||N},c.fullfill=(fi=/\{([^\}]+)\}/g,en=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,function(S,A){return String(S).replace(fi,function(j,w){return function(T,F,B){var H=B;return F.replace(en,function(J,rt,ht,St,gt){rt=rt||St,H&&(rt in H&&(H=H[rt]),typeof H=="function"&&gt&&(H=H()))}),H=(H==null||H==B?T:H)+""}(j,w,A)})}),c.ninja=function(){if(v.was)g.win.Raphael=v.is;else{window.Raphael=void 0;try{delete window.Raphael}catch{}}return c},c.st=Xr,a.on("raphael.DOMload",function(){l=!0}),(pi=document).readyState==null&&pi.addEventListener&&(pi.addEventListener("DOMContentLoaded",mi=function(){pi.removeEventListener("DOMContentLoaded",mi,!1),pi.readyState="complete"},!1),pi.readyState="loading"),function S(){/in/.test(pi.readyState)?setTimeout(S,9):c.eve("raphael.DOMload")}(),c}.apply(n,o))===void 0||(r.exports=s)},function(r,n,i){var o,s;o=[i(0),i(3),i(4)],(s=function(a){return a}.apply(n,o))===void 0||(r.exports=s)},function(r,n,i){var o,s,a,c,l,u,h,f,d,p,g,v,_,y;c="hasOwnProperty",l=/[\.\/]/,u=/\s*,\s*/,h=function(m,x){return m-x},f={n:{}},d=function(){for(var m=0,x=this.length;m<x;m++)if(this[m]!==void 0)return this[m]},p=function(){for(var m=this.length;--m;)if(this[m]!==void 0)return this[m]},g=Object.prototype.toString,v=String,_=Array.isArray||function(m){return m instanceof Array||g.call(m)=="[object Array]"},(y=function(m,x){var N,$=a,k=Array.prototype.slice.call(arguments,2),D=y.listeners(m),V=0,U=[],K={},Y=[],it=s;Y.firstDefined=d,Y.lastDefined=p,s=m,a=0;for(var nt=0,ft=D.length;nt<ft;nt++)"zIndex"in D[nt]&&(U.push(D[nt].zIndex),D[nt].zIndex<0&&(K[D[nt].zIndex]=D[nt]));for(U.sort(h);U[V]<0;)if(N=K[U[V++]],Y.push(N.apply(x,k)),a)return a=$,Y;for(nt=0;nt<ft;nt++)if("zIndex"in(N=D[nt]))if(N.zIndex==U[V]){if(Y.push(N.apply(x,k)),a)break;do if((N=K[U[++V]])&&Y.push(N.apply(x,k)),a)break;while(N)}else K[N.zIndex]=N;else if(Y.push(N.apply(x,k)),a)break;return a=$,s=it,Y})._events=f,y.listeners=function(m){var x,N,$,k,D,V,U,K,Y=_(m)?m:m.split(l),it=f,nt=[it],ft=[];for(k=0,D=Y.length;k<D;k++){for(K=[],V=0,U=nt.length;V<U;V++)for(N=[(it=nt[V].n)[Y[k]],it["*"]],$=2;$--;)(x=N[$])&&(K.push(x),ft=ft.concat(x.f||[]));nt=K}return ft},y.separator=function(m){m?(m="["+(m=v(m).replace(/(?=[\.\^\]\[\-])/g,"\\"))+"]",l=new RegExp(m)):l=/[\.\/]/},y.on=function(m,x){if(typeof x!="function")return function(){};for(var N=_(m)?_(m[0])?m:[m]:v(m).split(u),$=0,k=N.length;$<k;$++)(function(D){for(var V,U=_(D)?D:v(D).split(l),K=f,Y=0,it=U.length;Y<it;Y++)K=(K=K.n).hasOwnProperty(U[Y])&&K[U[Y]]||(K[U[Y]]={n:{}});for(K.f=K.f||[],Y=0,it=K.f.length;Y<it;Y++)if(K.f[Y]==x){V=!0;break}!V&&K.f.push(x)})(N[$]);return function(D){+D==+D&&(x.zIndex=+D)}},y.f=function(m){var x=[].slice.call(arguments,1);return function(){y.apply(null,[m,null].concat(x).concat([].slice.call(arguments,0)))}},y.stop=function(){a=1},y.nt=function(m){var x=_(s)?s.join("."):s;return m?new RegExp("(?:\\.|\\/|^)"+m+"(?:\\.|\\/|$)").test(x):x},y.nts=function(){return _(s)?s:s.split(l)},y.off=y.unbind=function(m,x){if(m){var N=_(m)?_(m[0])?m:[m]:v(m).split(u);if(N.length>1)for(var $=0,k=N.length;$<k;$++)y.off(N[$],x);else{N=_(m)?m:v(m).split(l);var D,V,U,K,Y,it=[f];for($=0,k=N.length;$<k;$++)for(K=0;K<it.length;K+=U.length-2){if(U=[K,1],D=it[K].n,N[$]!="*")D[N[$]]&&U.push(D[N[$]]);else for(V in D)D[c](V)&&U.push(D[V]);it.splice.apply(it,U)}for($=0,k=it.length;$<k;$++)for(D=it[$];D.n;){if(x){if(D.f){for(K=0,Y=D.f.length;K<Y;K++)if(D.f[K]==x){D.f.splice(K,1);break}!D.f.length&&delete D.f}for(V in D.n)if(D.n[c](V)&&D.n[V].f){var nt=D.n[V].f;for(K=0,Y=nt.length;K<Y;K++)if(nt[K]==x){nt.splice(K,1);break}!nt.length&&delete D.n[V].f}}else for(V in delete D.f,D.n)D.n[c](V)&&D.n[V].f&&delete D.n[V].f;D=D.n}}}else y._events=f={n:{}}},y.once=function(m,x){var N=function(){return y.off(m,N),x.apply(this,arguments)};return y.on(m,N)},y.version="0.5.0",y.toString=function(){return"You are running Eve 0.5.0"},r.exports?r.exports=y:(o=function(){return y}.apply(n,[]))===void 0||(r.exports=o)},function(r,n,i){var o,s;o=[i(0)],(s=function(a){if(!a||a.svg){var c="hasOwnProperty",l=String,u=parseFloat,h=parseInt,f=Math,d=f.max,p=f.abs,g=f.pow,v=/[, ]+/,_=a.eve,y="",m=" ",x="http://www.w3.org/1999/xlink",N={block:"M5,0 0,2.5 5,5z",classic:"M5,0 0,2.5 5,5 3.5,3 3.5,2z",diamond:"M2.5,0 5,2.5 2.5,5 0,2.5z",open:"M6,1 1,3.5 6,6",oval:"M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z"},$={};a.toString=function(){return`Your browser supports SVG.
91
- You are running Raphaël `+this.version};var k=function(O,C){if(C)for(var E in typeof O=="string"&&(O=k(O)),C)C[c](E)&&(E.substring(0,6)=="xlink:"?O.setAttributeNS(x,E.substring(6),l(C[E])):O.setAttribute(E,l(C[E])));else(O=a._g.doc.createElementNS("http://www.w3.org/2000/svg",O)).style&&(O.style.webkitTapHighlightColor="rgba(0,0,0,0)");return O},D=function(O,C){var E="linear",b=O.id+C,P=.5,M=.5,I=O.node,G=O.paper,q=I.style,et=a._g.doc.getElementById(b);if(!et){if(C=(C=l(C).replace(a._radial_gradient,function(lt,ct,dt){if(E="radial",ct&&dt){P=u(ct);var $t=2*((M=u(dt))>.5)-1;g(P-.5,2)+g(M-.5,2)>.25&&(M=f.sqrt(.25-g(P-.5,2))*$t+.5)&&M!=.5&&(M=M.toFixed(5)-1e-5*$t)}return y})).split(/\s*\-\s*/),E=="linear"){var st=C.shift();if(st=-u(st),isNaN(st))return null;var mt=[0,0,f.cos(a.rad(st)),f.sin(a.rad(st))],Lt=1/(d(p(mt[2]),p(mt[3]))||1);mt[2]*=Lt,mt[3]*=Lt,mt[2]<0&&(mt[0]=-mt[2],mt[2]=0),mt[3]<0&&(mt[1]=-mt[3],mt[3]=0)}var W=a._parseDots(C);if(!W)return null;if(b=b.replace(/[\(\)\s,\xb0#]/g,"_"),O.gradient&&b!=O.gradient.id&&(G.defs.removeChild(O.gradient),delete O.gradient),!O.gradient){et=k(E+"Gradient",{id:b}),O.gradient=et,k(et,E=="radial"?{fx:P,fy:M}:{x1:mt[0],y1:mt[1],x2:mt[2],y2:mt[3],gradientTransform:O.matrix.invert()}),G.defs.appendChild(et);for(var Q=0,ot=W.length;Q<ot;Q++)et.appendChild(k("stop",{offset:W[Q].offset?W[Q].offset:Q?"100%":"0%","stop-color":W[Q].color||"#fff","stop-opacity":isFinite(W[Q].opacity)?W[Q].opacity:1}))}}return k(I,{fill:V(b),opacity:1,"fill-opacity":1}),q.fill=y,q.opacity=1,q.fillOpacity=1,1},V=function(O){if((C=document.documentMode)&&(C===9||C===10))return"url('#"+O+"')";var C,E=document.location;return"url('"+(E.protocol+"//"+E.host+E.pathname+E.search)+"#"+O+"')"},U=function(O){var C=O.getBBox(1);k(O.pattern,{patternTransform:O.matrix.invert()+" translate("+C.x+","+C.y+")"})},K=function(O,C,E){if(O.type=="path"){for(var b,P,M,I,G,q=l(C).toLowerCase().split("-"),et=O.paper,st=E?"end":"start",mt=O.node,Lt=O.attrs,W=Lt["stroke-width"],Q=q.length,ot="classic",lt=3,ct=3,dt=5;Q--;)switch(q[Q]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":ot=q[Q];break;case"wide":ct=5;break;case"narrow":ct=2;break;case"long":lt=5;break;case"short":lt=2}if(ot=="open"?(lt+=2,ct+=2,dt+=2,M=1,I=E?4:1,G={fill:"none",stroke:Lt.stroke}):(I=M=lt/2,G={fill:Lt.stroke,stroke:"none"}),O._.arrows?E?(O._.arrows.endPath&&$[O._.arrows.endPath]--,O._.arrows.endMarker&&$[O._.arrows.endMarker]--):(O._.arrows.startPath&&$[O._.arrows.startPath]--,O._.arrows.startMarker&&$[O._.arrows.startMarker]--):O._.arrows={},ot!="none"){var $t="raphael-marker-"+ot,vt="raphael-marker-"+st+ot+lt+ct+"-obj"+O.id;a._g.doc.getElementById($t)?$[$t]++:(et.defs.appendChild(k(k("path"),{"stroke-linecap":"round",d:N[ot],id:$t})),$[$t]=1);var bt,ut=a._g.doc.getElementById(vt);ut?($[vt]++,bt=ut.getElementsByTagName("use")[0]):(ut=k(k("marker"),{id:vt,markerHeight:ct,markerWidth:lt,orient:"auto",refX:I,refY:ct/2}),bt=k(k("use"),{"xlink:href":"#"+$t,transform:(E?"rotate(180 "+lt/2+" "+ct/2+") ":y)+"scale("+lt/dt+","+ct/dt+")","stroke-width":(1/((lt/dt+ct/dt)/2)).toFixed(4)}),ut.appendChild(bt),et.defs.appendChild(ut),$[vt]=1),k(bt,G);var It=M*(ot!="diamond"&&ot!="oval");E?(b=O._.arrows.startdx*W||0,P=a.getTotalLength(Lt.path)-It*W):(b=It*W,P=a.getTotalLength(Lt.path)-(O._.arrows.enddx*W||0)),(G={})["marker-"+st]="url(#"+vt+")",(P||b)&&(G.d=a.getSubpath(Lt.path,b,P)),k(mt,G),O._.arrows[st+"Path"]=$t,O._.arrows[st+"Marker"]=vt,O._.arrows[st+"dx"]=It,O._.arrows[st+"Type"]=ot,O._.arrows[st+"String"]=C}else E?(b=O._.arrows.startdx*W||0,P=a.getTotalLength(Lt.path)-b):(b=0,P=a.getTotalLength(Lt.path)-(O._.arrows.enddx*W||0)),O._.arrows[st+"Path"]&&k(mt,{d:a.getSubpath(Lt.path,b,P)}),delete O._.arrows[st+"Path"],delete O._.arrows[st+"Marker"],delete O._.arrows[st+"dx"],delete O._.arrows[st+"Type"],delete O._.arrows[st+"String"];for(G in $)if($[c](G)&&!$[G]){var Vt=a._g.doc.getElementById(G);Vt&&Vt.parentNode.removeChild(Vt)}}},Y={"-":[3,1],".":[1,1],"-.":[3,1,1,1],"-..":[3,1,1,1,1,1],". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},it=function(O,C,E){if(C=Y[l(C).toLowerCase()]){for(var b=O.attrs["stroke-width"]||"1",P={round:b,square:b,butt:0}[O.attrs["stroke-linecap"]||E["stroke-linecap"]]||0,M=[],I=C.length;I--;)M[I]=C[I]*b+(I%2?1:-1)*P;k(O.node,{"stroke-dasharray":M.join(",")})}else k(O.node,{"stroke-dasharray":"none"})},nt=function(O,C){var E=O.node,b=O.attrs,P=E.style.visibility;for(var M in E.style.visibility="hidden",C)if(C[c](M)){if(!a._availableAttrs[c](M))continue;var I=C[M];switch(b[M]=I,M){case"blur":O.blur(I);break;case"title":var G=E.getElementsByTagName("title");if(G.length&&(G=G[0]))G.firstChild.nodeValue=I;else{G=k("title");var q=a._g.doc.createTextNode(I);G.appendChild(q),E.appendChild(G)}break;case"href":case"target":var et=E.parentNode;if(et.tagName.toLowerCase()!="a"){var st=k("a");et.insertBefore(st,E),st.appendChild(E),et=st}M=="target"?et.setAttributeNS(x,"show",I=="blank"?"new":I):et.setAttributeNS(x,M,I);break;case"cursor":E.style.cursor=I;break;case"transform":O.transform(I);break;case"arrow-start":K(O,I);break;case"arrow-end":K(O,I,1);break;case"clip-rect":var mt=l(I).split(v);if(mt.length==4){O.clip&&O.clip.parentNode.parentNode.removeChild(O.clip.parentNode);var Lt=k("clipPath"),W=k("rect");Lt.id=a.createUUID(),k(W,{x:mt[0],y:mt[1],width:mt[2],height:mt[3]}),Lt.appendChild(W),O.paper.defs.appendChild(Lt),k(E,{"clip-path":"url(#"+Lt.id+")"}),O.clip=W}if(!I){var Q=E.getAttribute("clip-path");if(Q){var ot=a._g.doc.getElementById(Q.replace(/(^url\(#|\)$)/g,y));ot&&ot.parentNode.removeChild(ot),k(E,{"clip-path":y}),delete O.clip}}break;case"path":O.type=="path"&&(k(E,{d:I?b.path=a._pathToAbsolute(I):"M0,0"}),O._.dirty=1,O._.arrows&&("startString"in O._.arrows&&K(O,O._.arrows.startString),"endString"in O._.arrows&&K(O,O._.arrows.endString,1)));break;case"width":if(E.setAttribute(M,I),O._.dirty=1,!b.fx)break;M="x",I=b.x;case"x":b.fx&&(I=-b.x-(b.width||0));case"rx":if(M=="rx"&&O.type=="rect")break;case"cx":E.setAttribute(M,I),O.pattern&&U(O),O._.dirty=1;break;case"height":if(E.setAttribute(M,I),O._.dirty=1,!b.fy)break;M="y",I=b.y;case"y":b.fy&&(I=-b.y-(b.height||0));case"ry":if(M=="ry"&&O.type=="rect")break;case"cy":E.setAttribute(M,I),O.pattern&&U(O),O._.dirty=1;break;case"r":O.type=="rect"?k(E,{rx:I,ry:I}):E.setAttribute(M,I),O._.dirty=1;break;case"src":O.type=="image"&&E.setAttributeNS(x,"href",I);break;case"stroke-width":O._.sx==1&&O._.sy==1||(I/=d(p(O._.sx),p(O._.sy))||1),E.setAttribute(M,I),b["stroke-dasharray"]&&it(O,b["stroke-dasharray"],C),O._.arrows&&("startString"in O._.arrows&&K(O,O._.arrows.startString),"endString"in O._.arrows&&K(O,O._.arrows.endString,1));break;case"stroke-dasharray":it(O,I,C);break;case"fill":var lt=l(I).match(a._ISURL);if(lt){Lt=k("pattern");var ct=k("image");Lt.id=a.createUUID(),k(Lt,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1}),k(ct,{x:0,y:0,"xlink:href":lt[1]}),Lt.appendChild(ct),function(ut){a._preload(lt[1],function(){var It=this.offsetWidth,Vt=this.offsetHeight;k(ut,{width:It,height:Vt}),k(ct,{width:It,height:Vt})})}(Lt),O.paper.defs.appendChild(Lt),k(E,{fill:"url(#"+Lt.id+")"}),O.pattern=Lt,O.pattern&&U(O);break}var dt=a.getRGB(I);if(dt.error){if((O.type=="circle"||O.type=="ellipse"||l(I).charAt()!="r")&&D(O,I)){if("opacity"in b||"fill-opacity"in b){var $t=a._g.doc.getElementById(E.getAttribute("fill").replace(/^url\(#|\)$/g,y));if($t){var vt=$t.getElementsByTagName("stop");k(vt[vt.length-1],{"stop-opacity":("opacity"in b?b.opacity:1)*("fill-opacity"in b?b["fill-opacity"]:1)})}}b.gradient=I,b.fill="none";break}}else delete C.gradient,delete b.gradient,!a.is(b.opacity,"undefined")&&a.is(C.opacity,"undefined")&&k(E,{opacity:b.opacity}),!a.is(b["fill-opacity"],"undefined")&&a.is(C["fill-opacity"],"undefined")&&k(E,{"fill-opacity":b["fill-opacity"]});dt[c]("opacity")&&k(E,{"fill-opacity":dt.opacity>1?dt.opacity/100:dt.opacity});case"stroke":dt=a.getRGB(I),E.setAttribute(M,dt.hex),M=="stroke"&&dt[c]("opacity")&&k(E,{"stroke-opacity":dt.opacity>1?dt.opacity/100:dt.opacity}),M=="stroke"&&O._.arrows&&("startString"in O._.arrows&&K(O,O._.arrows.startString),"endString"in O._.arrows&&K(O,O._.arrows.endString,1));break;case"gradient":(O.type=="circle"||O.type=="ellipse"||l(I).charAt()!="r")&&D(O,I);break;case"opacity":b.gradient&&!b[c]("stroke-opacity")&&k(E,{"stroke-opacity":I>1?I/100:I});case"fill-opacity":if(b.gradient){($t=a._g.doc.getElementById(E.getAttribute("fill").replace(/^url\(#|\)$/g,y)))&&(vt=$t.getElementsByTagName("stop"),k(vt[vt.length-1],{"stop-opacity":I}));break}default:M=="font-size"&&(I=h(I,10)+"px");var bt=M.replace(/(\-.)/g,function(ut){return ut.substring(1).toUpperCase()});E.style[bt]=I,O._.dirty=1,E.setAttribute(M,I)}}ft(O,C),E.style.visibility=P},ft=function(O,C){if(O.type=="text"&&(C[c]("text")||C[c]("font")||C[c]("font-size")||C[c]("x")||C[c]("y"))){var E=O.attrs,b=O.node,P=b.firstChild?h(a._g.doc.defaultView.getComputedStyle(b.firstChild,y).getPropertyValue("font-size"),10):10;if(C[c]("text")){for(E.text=C.text;b.firstChild;)b.removeChild(b.firstChild);for(var M,I=l(C.text).split(`
92
- `),G=[],q=0,et=I.length;q<et;q++)M=k("tspan"),q&&k(M,{dy:1.2*P,x:E.x}),M.appendChild(a._g.doc.createTextNode(I[q])),b.appendChild(M),G[q]=M}else for(q=0,et=(G=b.getElementsByTagName("tspan")).length;q<et;q++)q?k(G[q],{dy:1.2*P,x:E.x}):k(G[0],{dy:0});k(b,{x:E.x,y:E.y}),O._.dirty=1;var st=O._getBBox(),mt=E.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 E=k("path");C.canvas&&C.canvas.appendChild(E);var b=new _t(E,C);return b.type="path",nt(b,{fill:"none",stroke:"#000",path:O}),b},yt.rotate=function(O,C,E){if(this.removed)return this;if((O=l(O).split(v)).length-1&&(C=u(O[1]),E=u(O[2])),O=u(O[0]),E==null&&(C=E),C==null||E==null){var b=this.getBBox(1);C=b.x+b.width/2,E=b.y+b.height/2}return this.transform(this._.transform.concat([["r",O,C,E]])),this},yt.scale=function(O,C,E,b){if(this.removed)return this;if((O=l(O).split(v)).length-1&&(C=u(O[1]),E=u(O[2]),b=u(O[3])),O=u(O[0]),C==null&&(C=O),b==null&&(E=b),E==null||b==null)var P=this.getBBox(1);return E=E??P.x+P.width/2,b=b??P.y+P.height/2,this.transform(this._.transform.concat([["s",O,C,E,b]])),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 E=this.attrs[c]("stroke-width")?this.attrs["stroke-width"]:1;this.attr({"stroke-width":E})}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 E in C.__set__&&C.__set__.exclude(this),_.unbind("raphael.*.*."+this.id),this.gradient&&C.defs.removeChild(this.gradient),a._tear(this,C),O.parentNode.removeChild(O),this.removeData(),this)this[E]=typeof this[E]=="function"?a._removedFactory(E):null;this.removed=!0}},yt._getBBox=function(){if(this.node.style.display=="none"){this.show();var O=!0}var C,E=!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"&&(E=!0,C.display="");var b={};try{b=this.node.getBBox()}catch{b={x:this.node.clientLeft,y:this.node.clientTop,width:this.node.clientWidth,height:this.node.clientHeight}}finally{b=b||{},E&&(C.display="none")}return O&&this.hide(),b},yt.attr=function(O,C){if(this.removed)return this;if(O==null){var E={};for(var b in this.attrs)this.attrs[c](b)&&(E[b]=this.attrs[b]);return E.gradient&&E.fill=="none"&&(E.fill=E.gradient)&&delete E.gradient,E.transform=this._.transform,E}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)_("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),E=xt(O.node||O[O.length-1].node);return E.nextSibling?E.parentNode.insertBefore(C,E.nextSibling):E.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),E=xt(O.node||O[0].node);return E.parentNode.insertBefore(C,E),a._insertbefore(this,O,this.paper),this},yt.blur=function(O){var C=this;if(+O!=0){var E=k("filter"),b=k("feGaussianBlur");C.attrs.blur=O,E.id=a.createUUID(),k(b,{stdDeviation:+O||1.5}),E.appendChild(b),C.paper.defs.appendChild(E),C._blur=E,k(C.node,{filter:"url(#"+E.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,E,b){var P=k("circle");O.canvas&&O.canvas.appendChild(P);var M=new _t(P,O);return M.attrs={cx:C,cy:E,r:b,fill:"none",stroke:"#000"},M.type="circle",k(P,M.attrs),M},a._engine.rect=function(O,C,E,b,P,M){var I=k("rect");O.canvas&&O.canvas.appendChild(I);var G=new _t(I,O);return G.attrs={x:C,y:E,width:b,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,E,b,P){var M=k("ellipse");O.canvas&&O.canvas.appendChild(M);var I=new _t(M,O);return I.attrs={cx:C,cy:E,rx:b,ry:P,fill:"none",stroke:"#000"},I.type="ellipse",k(M,I.attrs),I},a._engine.image=function(O,C,E,b,P,M){var I=k("image");k(I,{x:E,y:b,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:E,y:b,width:P,height:M,src:C},G.type="image",G},a._engine.text=function(O,C,E,b){var P=k("text");O.canvas&&O.canvas.appendChild(P);var M=new _t(P,O);return M.attrs={x:C,y:E,"text-anchor":"middle",text:b,"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 E,b=O.x,P=O.y,M=O.width,I=O.height,G=k("svg"),q="overflow:hidden;";return b=b||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:"+b+"px;top:"+P+"px",a._g.doc.body.appendChild(G),E=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,E&&(C.renderfix=function(){}),C.renderfix(),C},a._engine.setViewBox=function(O,C,E,b,P){_("raphael.setViewBox",this,this._viewBox,[O,C,E,b,P]);var M,I,G=this.getSize(),q=d(E/G.width,b/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+E+m+b),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,E,b,!!P],this},a.prototype.renderfix=function(){var O,C=this.canvas,E=C.style;try{O=C.getScreenCTM()||C.createSVGMatrix()}catch{O=C.createSVGMatrix()}var b=-O.e%1,P=-O.f%1;(b||P)&&(b&&(this._left=(this._left+b)%1,E.left=this._left+"px"),P&&(this._top=(this._top+P)%1,E.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 _("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(E){E[O].apply(E,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=/[, ]+/,_=a.eve,y=" ",m="",x={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},N=/([clmz]),?([^clmz]*)/gi,$=/ 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,E,b){var P=a.matrix();return P.rotate(-C,.5,.5),{dx:P.x(E,b),dy:P.y(E,b)}},it=function(C,E,b,P,M,I){var G=C._,q=C.matrix,et=G.fillpos,st=C.node,mt=st.style,Lt=1,W="",Q=V/E,ot=V/b;if(mt.visibility="hidden",E&&b){if(st.coordsize=g(Q)+y+g(ot),mt.rotation=I*(E*b<0?-1:1),I){var lt=Y(I,P,M);P=lt.dx,M=lt.dy}if(E<0&&(W+="x"),b<0&&(W+=" y")&&(Lt=-1),mt.flip=W,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(E)+y+G.fillsize[1]*g(b)),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,E,b){for(var P=l(E).toLowerCase().split("-"),M=b?"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,E){C.attrs=C.attrs||{};var b=C.node,P=C.attrs,M=b.style,I=U[C.type]&&(E.x!=P.x||E.y!=P.y||E.width!=P.width||E.height!=P.height||E.cx!=P.cx||E.cy!=P.cy||E.rx!=P.rx||E.ry!=P.ry||E.r!=P.r),G=K[C.type]&&(P.cx!=E.cx||P.cy!=E.cy||P.r!=E.r||P.rx!=E.rx||P.ry!=E.ry),q=C;for(var et in E)E[c](et)&&(P[et]=E[et]);if(I&&(P.path=a._getPath[C.type](C),C._.dirty=1),E.href&&(b.href=E.href),E.title&&(b.title=E.title),E.target&&(b.target=E.target),E.cursor&&(M.cursor=E.cursor),"blur"in E&&C.blur(E.blur),(E.path&&C.type=="path"||I)&&(b.path=function(hr){var zr=/[ahqstv]/gi,ln=a._pathToAbsolute;if(l(hr).match(zr)&&(ln=a._path2curve),zr=/[clmz]/g,ln==a._pathToAbsolute&&!l(hr).match(zr)){var he=l(hr).replace(N,function(Rs,Fn,Jn){var tn=[],ui=Fn.toLowerCase()=="m",Qn=x[Fn];return Jn.replace(k,function(kn){ui&&tn.length==2&&(Qn+=tn+x[Fn=="m"?"l":"L"],tn=[]),tn.push(f(kn*V))}),Qn+tn});return he}var gr,Gr,Ri=ln(hr);he=[];for(var Wn=0,ci=Ri.length;Wn<ci;Wn++){gr=Ri[Wn],(Gr=Ri[Wn][0].toLowerCase())=="z"&&(Gr="x");for(var fn=1,Ze=gr.length;fn<Ze;fn++)Gr+=f(gr[fn]*V)+(fn!=Ze-1?",":m);he.push(Gr)}return he.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 E&&C.transform(E.transform),G){var st=+P.cx,mt=+P.cy,Lt=+P.rx||+P.r||0,W=+P.ry||+P.r||0;b.path=a.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",f((st-Lt)*V),f((mt-W)*V),f((st+Lt)*V),f((mt+W)*V),f(st*V)),C._.dirty=1}if("clip-rect"in E){var Q=l(E["clip-rect"]).split(v);if(Q.length==4){Q[2]=+Q[2]+ +Q[0],Q[3]=+Q[3]+ +Q[1];var ot=b.clipRect||a._g.doc.createElement("div"),lt=ot.style;lt.clip=a.format("rect({1}px {2}px {3}px {0}px)",Q),b.clipRect||(lt.position="absolute",lt.top=0,lt.left=0,lt.width=C.paper.width+"px",lt.height=C.paper.height+"px",b.parentNode.insertBefore(ot,b),ot.appendChild(b),b.clipRect=ot)}E["clip-rect"]||b.clipRect&&(b.clipRect.style.clip="auto")}if(C.textpath){var ct=C.textpath.style;E.font&&(ct.font=E.font),E["font-family"]&&(ct.fontFamily='"'+E["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,m)+'"'),E["font-size"]&&(ct.fontSize=E["font-size"]),E["font-weight"]&&(ct.fontWeight=E["font-weight"]),E["font-style"]&&(ct.fontStyle=E["font-style"])}if("arrow-start"in E&&ft(q,E["arrow-start"]),"arrow-end"in E&&ft(q,E["arrow-end"],1),E.opacity!=null||E.fill!=null||E.src!=null||E.stroke!=null||E["stroke-width"]!=null||E["stroke-opacity"]!=null||E["fill-opacity"]!=null||E["stroke-dasharray"]!=null||E["stroke-miterlimit"]!=null||E["stroke-linejoin"]!=null||E["stroke-linecap"]!=null){var dt=b.getElementsByTagName("fill");if(!(dt=dt&&dt[0])&&(dt=nt("fill")),C.type=="image"&&E.src&&(dt.src=E.src),E.fill&&(dt.on=!0),dt.on!=null&&E.fill!="none"&&E.fill!==null||(dt.on=!1),dt.on&&E.fill){var $t=l(E.fill).match(a._ISURL);if($t){dt.parentNode==b&&b.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(E.fill).hex,dt.src=m,dt.type="solid",a.getRGB(E.fill).error&&(q.type in{circle:1,ellipse:1}||l(E.fill).charAt()!="r")&&_t(q,E.fill,dt)&&(P.fill="none",P.gradient=E.fill,dt.rotate=!1)}if("fill-opacity"in E||"opacity"in E){var bt=((+P["fill-opacity"]+1||2)-1)*((+P.opacity+1||2)-1)*((+a.getRGB(E.fill).o+1||2)-1);bt=p(d(bt,0),1),dt.opacity=bt,dt.src&&(dt.color="none")}b.appendChild(dt);var ut=b.getElementsByTagName("stroke")&&b.getElementsByTagName("stroke")[0],It=!1;!ut&&(It=ut=nt("stroke")),(E.stroke&&E.stroke!="none"||E["stroke-width"]||E["stroke-opacity"]!=null||E["stroke-dasharray"]||E["stroke-miterlimit"]||E["stroke-linejoin"]||E["stroke-linecap"])&&(ut.on=!0),(E.stroke=="none"||E.stroke===null||ut.on==null||E.stroke==0||E["stroke-width"]==0)&&(ut.on=!1);var Vt=a.getRGB(E.stroke);ut.on&&E.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(E["stroke-width"])||1);if(bt=p(d(bt,0),1),E["stroke-width"]==null&&(Ut=P["stroke-width"]),E["stroke-width"]&&(ut.weight=Ut),Ut&&Ut<1&&(bt*=Ut)&&(ut.weight=1),ut.opacity=bt,E["stroke-linejoin"]&&(ut.joinstyle=E["stroke-linejoin"]||"miter"),ut.miterlimit=E["stroke-miterlimit"]||8,E["stroke-linecap"]&&(ut.endcap=E["stroke-linecap"]=="butt"?"flat":E["stroke-linecap"]=="square"?"square":"round"),"stroke-dasharray"in E){var Kt={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};ut.dashstyle=Kt[c](E["stroke-dasharray"])?Kt[E["stroke-dasharray"]]:m}It&&b.appendChild(ut)}if(q.type=="text"){q.paper.canvas.style.display=m;var oe=q.paper.span,Yt=P.font&&P.font.match(/\d+(?:\.\d*)?(?=px)/);M=oe.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&&(oe.innerHTML=l(q.textpath.string).replace(/</g,"&#60;").replace(/&/g,"&#38;").replace(/\n/g,"<br>"));var me=oe.getBoundingClientRect();q.W=P.w=(me.right-me.left)/100,q.H=P.h=(me.bottom-me.top)/100,q.X=P.x,q.Y=P.y+q.H/2,("x"in E||"y"in E)&&(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 Ve=["x","y","text","font","font-family","font-weight","font-style","font-size"],ar=0,wr=Ve.length;ar<wr;ar++)if(Ve[ar]in E){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,E,b){C.attrs=C.attrs||{},C.attrs;var P=Math.pow,M="linear",I=".5 .5";if(C.attrs.gradient=E,E=(E=l(E).replace(a._radial_gradient,function(Lt,W,Q){return M="radial",W&&Q&&(W=u(W),Q=u(Q),P(W-.5,2)+P(Q-.5,2)>.25&&(Q=h.sqrt(.25-P(W-.5,2))*(2*(Q>.5)-1)+.5),I=W+y+Q),m})).split(/\s*\-\s*/),M=="linear"){var G=E.shift();if(G=-u(G),isNaN(G))return null}var q=a._parseDots(E);if(!q)return null;if(C=C.shape||C.node,q.length){C.removeChild(b),b.on=!0,b.method="none",b.color=q[0].color,b.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);b.colors=et.length?et.join():"0% "+b.color,M=="radial"?(b.type="gradientTitle",b.focus="100%",b.focussize="0 0",b.focusposition=I,b.angle=0):(b.type="gradient",b.angle=(270-G)%360),C.appendChild(b)}return 1},yt=function(C,E){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=E,this.matrix=a.matrix(),this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1},!E.bottom&&(E.bottom=this),this.prev=E.top,E.top&&(E.top.next=this),E.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 E,b=this.paper._viewBoxShift,P=b?"s"+[b.scale,b.scale]+"-1-1t"+[b.dx,b.dy]:m;b&&(E=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),W=mt.x-Lt.x,Q=mt.y-Lt.y;q.coordorigin=W*-V+y+Q*-V,it(this,1,1,W,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 E!==null&&(this._.transform=E,a._extractTransform(this,E)),this},at.rotate=function(C,E,b){if(this.removed)return this;if(C!=null){if((C=l(C).split(v)).length-1&&(E=u(C[1]),b=u(C[2])),C=u(C[0]),b==null&&(E=b),E==null||b==null){var P=this.getBBox(1);E=P.x+P.width/2,b=P.y+P.height/2}return this._.dirtyT=1,this.transform(this._.transform.concat([["r",C,E,b]])),this}},at.translate=function(C,E){return this.removed?this:((C=l(C).split(v)).length-1&&(E=u(C[1])),C=u(C[0])||0,E=+E||0,this._.bbox&&(this._.bbox.x+=C,this._.bbox.y+=E),this.transform(this._.transform.concat([["t",C,E]])),this)},at.scale=function(C,E,b,P){if(this.removed)return this;if((C=l(C).split(v)).length-1&&(E=u(C[1]),b=u(C[2]),P=u(C[3]),isNaN(b)&&(b=null),isNaN(P)&&(P=null)),C=u(C[0]),E==null&&(E=C),P==null&&(b=P),b==null||P==null)var M=this.getBBox(1);return b=b??M.x+M.width/2,P=P??M.y+M.height/2,this.transform(this._.transform.concat([["s",C,E,b,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 E={},b=1/this.paper._viewBoxShift.scale;return E.x=C.x-this.paper._viewBoxShift.dx,E.x*=b,E.y=C.y-this.paper._viewBoxShift.dy,E.y*=b,E.width=C.width*b,E.height=C.height*b,E.x2=E.x+E.width,E.y2=E.y+E.height,E}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,E){if(this.removed)return this;if(C==null){var b={};for(var P in this.attrs)this.attrs[c](P)&&(b[P]=this.attrs[P]);return b.gradient&&b.fill=="none"&&(b.fill=b.gradient)&&delete b.gradient,b.transform=this._.transform,b}if(E==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&&E==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 E!=null&&((et={})[C]=E),E==null&&a.is(C,"object")&&(et=C),et)_("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 E=this.node.runtimeStyle,b=E.filter;return b=b.replace($,m),+C!=0?(this.attrs.blur=C,E.filter=b+y+" progid:DXImageTransform.Microsoft.Blur(pixelradius="+(+C||1.5)+")",E.margin=a.format("-{0}px 0 0 -{0}px",f(+C||1.5))):(E.filter=b,E.margin=0,delete this.attrs.blur),this},a._engine.path=function(C,E){var b=nt("shape");b.style.cssText=D,b.coordsize=V+y+V,b.coordorigin=E.coordorigin;var P=new yt(b,E),M={fill:"none",stroke:"#000"};C&&(M.path=C),P.type="path",P.path=[],P.Path=m,xt(P,M),E.canvas&&E.canvas.appendChild(b);var I=nt("skew");return I.on=!0,b.appendChild(I),P.skew=I,P.transform(m),P},a._engine.rect=function(C,E,b,P,M,I){var G=a._rectPath(E,b,P,M,I),q=C.path(G),et=q.attrs;return q.X=et.x=E,q.Y=et.y=b,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,E,b,P,M){var I=C.path();return I.attrs,I.X=E-P,I.Y=b-M,I.W=2*P,I.H=2*M,I.type="ellipse",xt(I,{cx:E,cy:b,rx:P,ry:M}),I},a._engine.circle=function(C,E,b,P){var M=C.path();return M.attrs,M.X=E-P,M.Y=b-P,M.W=M.H=2*P,M.type="circle",xt(M,{cx:E,cy:b,r:P}),M},a._engine.image=function(C,E,b,P,M,I){var G=a._rectPath(b,P,M,I),q=C.path(G).attr({stroke:"none"}),et=q.attrs,st=q.node,mt=st.getElementsByTagName("fill")[0];return et.src=E,q.X=et.x=b,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=E,mt.type="tile",q._.fillpos=[b,P],q._.fillsize=[M,I],st.appendChild(mt),it(q,1,1,0,0,0),q},a._engine.text=function(C,E,b,P){var M=nt("shape"),I=nt("path"),G=nt("textpath");E=E||0,b=b||0,P=P||"",I.v=a.format("m{0},{1}l{2},{1}",f(E*V),f(b*V),f(E*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=E,q.attrs.y=b,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,E){var b=this.canvas.style;return this.width=C,this.height=E,C==+C&&(C+="px"),E==+E&&(E+="px"),b.width=C,b.height=E,b.clip="rect(0 "+C+" "+E+" 0)",this._viewBox&&a._engine.setViewBox.apply(this,this._viewBox),this},a._engine.setViewBox=function(C,E,b,P,M){a.eve("raphael.setViewBox",this,this._viewBox,[C,E,b,P,M]);var I,G,q=this.getSize(),et=q.width,st=q.height;return M&&(b*(I=st/P)<et&&(C-=(et-b*I)/2/I),P*(G=et/b)<st&&(E-=(st-P*G)/2/G)),this._viewBox=[C,E,b,P,!!M],this._viewBoxShift={dx:-C,dy:-E,scale:q},this.forEach(function(mt){mt.transform("...")}),this},a._engine.initWin=function(C){var E=C.document;E.styleSheets.length<31?E.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)"):E.styleSheets[0].addRule(".rvml","behavior:url(#default#VML)");try{!E.namespaces.rvml&&E.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),nt=function(b){return E.createElement("<rvml:"+b+' class="rvml">')}}catch{nt=function(b){return E.createElement("<"+b+' 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),E=C.container,b=C.height,P=C.width,M=C.x,I=C.y;if(!E)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,b=b||342,G.width=P,G.height=b,P==+P&&(P+="px"),b==+b&&(b+="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,b),E==1?(a._g.doc.body.appendChild(q),et.left=M+"px",et.top=I+"px",et.position="absolute"):E.firstChild?E.insertBefore(q,E.firstChild):E.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 E=arguments;return this.forEach(function(b){b[C].apply(b,E)})}}(O))}}.apply(n,o))===void 0||(r.exports=s)}])})})(r3);var Gq=r3.exports;const Rn=Hn(Gq);class wf{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 wf;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 ga({x:l,y:u}))}return s}}Rn.easing_formulas.swing=function(e){return e+Math.sin(e*Math.PI*2)/2},Rn.easing_formulas.may_cause_seizures=function(e){return e+.2*Math.random()-.1},Rn.fn.importSVG=function(e,t){const r=Bq.fromRawSVG(e);return r.toRaphael(this,(n,i)=>{r.save(),t&&t(n),i(),r.restore()}),this},Rn.fn.NPolygonPath=function(e,t,r,n,i=2){return{shape:this.path(wf.generateInMultiplePoint(e,t,r,n,i).toSVGPathD()),afterPath:wf.generateInMultiplePoint(e,t,r*i,n,1).toSVGPathD()}},Rn.fn.zoom=function(e=1){return this.setViewBox(0,0,this.width/e,this.height/e),this},Rn.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)))}},Rn.fn.rosetta=function(e,t,r,n,i){const o=ul.generateRosetta(e,t,r,n,i);return o.center,this.path(o.toSVGPathD())},Rn.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))}}},Rn.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")},Rn.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")},Rn.el.redder=function(){const e=Rn.getRGB(this.attr("fill"));e.r+=51,this.attr("fill","rgb("+e.r+","+e.g+","+e.b+")")},Rn.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 n3=Rn;class va{pgs=[];history=[];save(){this.history.push(TS(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 va.fromRawSVGUseRappar(t)}static fromRawSVGUseRappar(t){const r=new va,n=Lq(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=ul.fromSVGPathD(s.path,s.transform);break}r.pgs.push(a)}return r}toRaphael(t,r){let n;t instanceof HTMLElement?n=n3(HTMLElement):typeof t=="string"?n=n3(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}=IE(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 Hq(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}=IE(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"){AE(rq(t),`${r}.svg`)}toDownloadSVGElement(t,r="shape"){return va.toDownloadSVGElement(t,r),this}static toDownloadSVGString(t,r="shape"){AE(NE(t),`${r}.svg`)}toDownloadSVGString(t,r="shape"){return va.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 Bq=va;class Hq{canvas;context;customContext;constructor(t){this.canvas=t,this.context=t.getContext("2d",{willReadFrequently:!0}),this.customContext=new bf({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 va.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 fe={colorPrimary:je.getCSSVar("--color-primary"),colorRed:je.getCSSVar("--color-red"),colorOrange:je.getCSSVar("--color-orange"),colorYellow:je.getCSSVar("--color-yellow"),colorGreen:je.getCSSVar("--color-green"),colorBlue:je.getCSSVar("--color-blue"),colorPurple:je.getCSSVar("--color-purple"),colorBlack:je.getCSSVar("--color-black"),colorGray0:je.getCSSVar("--color-gray-0"),colorGray3:je.getCSSVar("--color-gray-3"),colorGray6:je.getCSSVar("--color-gray-6"),colorGray9:je.getCSSVar("--color-gray-9"),colorGrayCC:je.getCSSVar("--color-gray-cc"),colorGrayDD:je.getCSSVar("--color-gray-dd"),colorGrayE6:je.getCSSVar("--color-gray-e6"),colorGrayEE:je.getCSSVar("--color-gray-ee"),colorGrayEF:je.getCSSVar("--color-gray-ef"),colorGrayF5:je.getCSSVar("--color-gray-f5"),colorGrayFF:je.getCSSVar("--color-gray-ff"),fontLineHeight:je.getCSSVar("--font-line-height"),fontSize32:je.getCSSVar("--font-size-32"),fontSize24:je.getCSSVar("--font-size-24"),fontSize18:je.getCSSVar("--font-size-18"),fontSize16:je.getCSSVar("--font-size-16"),fontSize14:je.getCSSVar("--font-size-14"),fontSize12:je.getCSSVar("--font-size-12"),fontSize11:je.getCSSVar("--font-size-11"),gap4:je.getCSSVar("--gap-4"),gap8:je.getCSSVar("--gap-8"),gap12:je.getCSSVar("--gap-12"),gap16:je.getCSSVar("--gap-16"),gap20:je.getCSSVar("--gap-20"),gap40:je.getCSSVar("--gap-40"),height44:je.getCSSVar("--height-44"),height32:je.getCSSVar("--height-32"),borderRadius:je.getCSSVar("--border-radius")},qq=function(e){return e[0]==="#"&&(e=e.slice(1)),parseInt(e,16)},Kq=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+")"},i3=function(e,t=1){const r=qq(e);return Kq(r,t)};function Io(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 o3={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),_=i(a,l+4);l+=6,l+=8;var y=o(a,l);l+=4,l+=g+v+_,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,_=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-_;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,_),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]*(256*256*256)+(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&4294967295-128+1))r[n+s]=c,s++;else if(!(c&4294967295-2048+1))r[n+s]=192|c>>6,r[n+s+1]=128|c>>0&63,s+=2;else if(!(c&4294967295-65536+1))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&4294967295-(1<<21)+1))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&4294967295-128+1))i++;else if(!(s&4294967295-2048+1))i+=2;else if(!(s&4294967295-65536+1))i+=3;else if(!(s&4294967295-(1<<21)+1))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,_=c.strt,y=c.prev,m=0,x=0,N=0,$=0,k=0,D=0;for(p>2&&(D=t.F._hash(r,0),_[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]=_[D],_[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,$,r,N,h-N,n,f),m=x=$=0,N=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]++,$+=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((N!=h||r.length==0)&&(d<h&&(v[m]=h-d,m+=2,d=h),f=t.F._writeBlock(1,v,m,$,r,N,h-N,n,f),m=0,x=0,m=x=$=0,N=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 _=n-u+v+32768&32767,y=i[_],m=_-y+32768&32767;m>g&&(g=m,l=_)}}}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,_,y,m,x,N,$;h.lhst[256]++,p=t.F.getTrees(),g=p[0],v=p[1],_=p[2],y=p[3],m=p[4],x=p[5],N=p[6],$=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,_),t.F.revCodes(h.itree,_),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(N,h.itree,l,u),u=t.F._codeTiny($,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&(1<<23)-1);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,E=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(E,it,l,u),f(l,u,O-h.df0[E]),u+=h.dxb[E],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 _=t.F.setDepth(o[g-1],0);for(_>i&&(t.F.restrictDepth(u,i,_),_=i),c=0;c<l;c++)n[(u[c].lit<<1)+1]=u[c].d;return _},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,_=0,y=0,m=0,x=0,N=0,$=0,k,D;p==0;){if(p=s(r,$,1),g=s(r,$+1,2),$+=3,g==0){$&7&&($+=8-($&7));var V=($>>>3)+4,U=r[V-4]|r[V-3]<<8;d&&(n=t.F._check(n,N+U)),n.set(new i(r.buffer,r.byteOffset+V,U),N),$=V+U<<3,N+=U;continue}if(d&&(n=t.F._check(n,N+(1<<17))),g==1&&(k=f.flmap,D=f.fdmap,m=512-1,x=32-1),g==2){v=a(r,$,5)+257,_=a(r,$+5,5)+1,y=a(r,$+10,4)+4,$+=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,$+K*3,3);f.itree[(f.ordr[K]<<1)+1]=it,it>Y&&(Y=it)}$+=3*y,l(f.itree,Y),u(f.itree,Y,f.imap),k=f.lmap,D=f.dmap,$=c(f.imap,(1<<Y)-1,v+_,r,$,f.ttree);var nt=o._copyOut(f.ttree,0,v,f.ltree);m=(1<<nt)-1;var ft=o._copyOut(f.ttree,v,_,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,$)&m];$+=xt&15;var _t=xt>>>4;if(!(_t>>>8))n[N++]=_t;else{if(_t==256)break;var yt=N+_t-254;if(_t>264){var at=f.ldef[_t-257];yt=N+(at>>>3)+a(r,$,at&7),$+=at&7}var X=D[h(r,$)&x];$+=X&15;var O=X>>>4,C=f.ddef[O],E=(C>>>4)+s(r,$,C&15);for($+=C&15,d&&(n=t.F._check(n,N+(1<<17)));N<yt;)n[N]=n[N++-E],n[N]=n[N++-E],n[N]=n[N++-E],n[N]=n[N++-E];N=yt}}}return n.length==N?n:n.slice(0,N)},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,255-143,9),s(r.fltree,279-255,7),s(r.fltree,287-279,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)}()})(o3);var Yq=o3.exports;const s3=Hn(Yq);/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const Xq=4,a3=0,l3=1,Wq=2;function hl(e){let t=e.length;for(;--t>=0;)e[t]=0}const Jq=0,c3=1,Qq=2,Zq=3,tK=258,u1=29,Jc=256,Qc=Jc+1+u1,dl=30,h1=19,u3=2*Qc+1,ya=15,d1=16,eK=7,f1=256,h3=16,d3=17,f3=18,p1=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]),xf=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]),rK=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),p3=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),nK=512,jo=new Array((Qc+2)*2);hl(jo);const Zc=new Array(dl*2);hl(Zc);const tu=new Array(nK);hl(tu);const eu=new Array(tK-Zq+1);hl(eu);const m1=new Array(u1);hl(m1);const Sf=new Array(dl);hl(Sf);function g1(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 m3,g3,v3;function v1(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const y3=e=>e<256?tu[e]:tu[256+(e>>>7)],ru=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},In=(e,t,r)=>{e.bi_valid>d1-r?(e.bi_buf|=t<<e.bi_valid&65535,ru(e,e.bi_buf),e.bi_buf=t>>d1-e.bi_valid,e.bi_valid+=r-d1):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)},Yi=(e,t,r)=>{In(e,r[t*2],r[t*2+1])},_3=(e,t)=>{let r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1},iK=e=>{e.bi_valid===16?(ru(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)},oK=(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<=ya;f++)e.bl_count[f]=0;for(r[e.heap[e.heap_max]*2+1]=0,l=e.heap_max+1;l<u3;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--)}},b3=(e,t,r)=>{const n=new Array(ya+1);let i=0,o,s;for(o=1;o<=ya;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]=_3(n[a]++,a))}},sK=()=>{let e,t,r,n,i;const o=new Array(ya+1);for(r=0,n=0;n<u1-1;n++)for(m1[n]=r,e=0;e<1<<p1[n];e++)eu[r++]=n;for(eu[r-1]=n,i=0,n=0;n<16;n++)for(Sf[n]=i,e=0;e<1<<xf[n];e++)tu[i++]=n;for(i>>=7;n<dl;n++)for(Sf[n]=i<<7,e=0;e<1<<xf[n]-7;e++)tu[256+i++]=n;for(t=0;t<=ya;t++)o[t]=0;for(e=0;e<=143;)jo[e*2+1]=8,e++,o[8]++;for(;e<=255;)jo[e*2+1]=9,e++,o[9]++;for(;e<=279;)jo[e*2+1]=7,e++,o[7]++;for(;e<=287;)jo[e*2+1]=8,e++,o[8]++;for(b3(jo,Qc+1,o),e=0;e<dl;e++)Zc[e*2+1]=5,Zc[e*2]=_3(e,5);m3=new g1(jo,p1,Jc+1,Qc,ya),g3=new g1(Zc,xf,0,dl,ya),v3=new g1(new Array(0),rK,0,h1,eK)},w3=e=>{let t;for(t=0;t<Qc;t++)e.dyn_ltree[t*2]=0;for(t=0;t<dl;t++)e.dyn_dtree[t*2]=0;for(t=0;t<h1;t++)e.bl_tree[t*2]=0;e.dyn_ltree[f1*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},x3=e=>{e.bi_valid>8?ru(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},S3=(e,t,r,n)=>{const i=t*2,o=r*2;return e[i]<e[o]||e[i]===e[o]&&n[t]<=n[r]},y1=(e,t,r)=>{const n=e.heap[r];let i=r<<1;for(;i<=e.heap_len&&(i<e.heap_len&&S3(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!S3(t,n,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1;e.heap[r]=n},$3=(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?Yi(e,i,t):(s=eu[i],Yi(e,s+Jc+1,t),a=p1[s],a!==0&&(i-=m1[s],In(e,i,a)),n--,s=y3(n),Yi(e,s,r),a=xf[s],a!==0&&(n-=Sf[s],In(e,n,a)));while(o<e.sym_next);Yi(e,f1,t)},_1=(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=u3,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--)y1(e,r,s);l=o;do s=e.heap[1],e.heap[1]=e.heap[e.heap_len--],y1(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++,y1(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],oK(e,t),b3(r,c,e.bl_count)},E3=(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[h3*2]++):a<=10?e.bl_tree[d3*2]++:e.bl_tree[f3*2]++,a=0,i=o,s===0?(c=138,l=3):o===s?(c=6,l=3):(c=7,l=4))},C3=(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 Yi(e,o,e.bl_tree);while(--a!==0);else o!==0?(o!==i&&(Yi(e,o,e.bl_tree),a--),Yi(e,h3,e.bl_tree),In(e,a-3,2)):a<=10?(Yi(e,d3,e.bl_tree),In(e,a-3,3)):(Yi(e,f3,e.bl_tree),In(e,a-11,7));a=0,i=o,s===0?(c=138,l=3):o===s?(c=6,l=3):(c=7,l=4)}},aK=e=>{let t;for(E3(e,e.dyn_ltree,e.l_desc.max_code),E3(e,e.dyn_dtree,e.d_desc.max_code),_1(e,e.bl_desc),t=h1-1;t>=3&&e.bl_tree[p3[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},lK=(e,t,r,n)=>{let i;for(In(e,t-257,5),In(e,r-1,5),In(e,n-4,4),i=0;i<n;i++)In(e,e.bl_tree[p3[i]*2+1],3);C3(e,e.dyn_ltree,t-1),C3(e,e.dyn_dtree,r-1)},cK=e=>{let t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return a3;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return l3;for(r=32;r<Jc;r++)if(e.dyn_ltree[r*2]!==0)return l3;return a3};let k3=!1;const uK=e=>{k3||(sK(),k3=!0),e.l_desc=new v1(e.dyn_ltree,m3),e.d_desc=new v1(e.dyn_dtree,g3),e.bl_desc=new v1(e.bl_tree,v3),e.bi_buf=0,e.bi_valid=0,w3(e)},P3=(e,t,r,n)=>{In(e,(Jq<<1)+(n?1:0),3),x3(e),ru(e,r),ru(e,~r),r&&e.pending_buf.set(e.window.subarray(t,t+r),e.pending),e.pending+=r},hK=e=>{In(e,c3<<1,3),Yi(e,f1,jo),iK(e)},dK=(e,t,r,n)=>{let i,o,s=0;e.level>0?(e.strm.data_type===Wq&&(e.strm.data_type=cK(e)),_1(e,e.l_desc),_1(e,e.d_desc),s=aK(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===Xq||o===i?(In(e,(c3<<1)+(n?1:0),3),$3(e,jo,Zc)):(In(e,(Qq<<1)+(n?1:0),3),lK(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),$3(e,e.dyn_ltree,e.dyn_dtree)),w3(e),n&&x3(e)},fK=(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[(eu[r]+Jc+1)*2]++,e.dyn_dtree[y3(t)*2]++),e.sym_next===e.sym_end);var pK=uK,mK=P3,gK=dK,vK=fK,yK=hK,_K={_tr_init:pK,_tr_stored_block:mK,_tr_flush_block:gK,_tr_tally:vK,_tr_align:yK},nu=(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 bK=()=>{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},wK=new Uint32Array(bK());var Qr=(e,t,r,n)=>{const i=wK,o=n+r;e^=-1;for(let s=n;s<o;s++)e=e>>>8^i[(e^t[s])&255];return e^-1},_a={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"},ba={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:xK,_tr_stored_block:b1,_tr_flush_block:SK,_tr_tally:gs,_tr_align:$K}=_K,{Z_NO_FLUSH:vs,Z_PARTIAL_FLUSH:EK,Z_FULL_FLUSH:CK,Z_FINISH:ai,Z_BLOCK:T3,Z_OK:an,Z_STREAM_END:O3,Z_STREAM_ERROR:Xi,Z_DATA_ERROR:kK,Z_BUF_ERROR:w1,Z_DEFAULT_COMPRESSION:PK,Z_FILTERED:TK,Z_HUFFMAN_ONLY:$f,Z_RLE:OK,Z_FIXED:NK,Z_DEFAULT_STRATEGY:AK,Z_UNKNOWN:DK,Z_DEFLATED:Ef}=ba,RK=9,IK=15,jK=8,FK=29,MK=256,x1=MK+1+FK,LK=30,VK=19,UK=2*x1+1,zK=15,Le=3,ys=258,Wi=ys+Le+1,GK=32,fl=42,S1=57,$1=69,E1=73,C1=91,k1=103,wa=113,iu=666,xn=1,pl=2,xa=3,ml=4,BK=3,Sa=(e,t)=>(e.msg=_a[t],t),N3=e=>e*2-(e>4?9:0),_s=e=>{let t=e.length;for(;--t>=0;)e[t]=0},HK=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 qK=(e,t,r)=>(t<<e.hash_shift^r)&e.hash_mask,bs=qK;const qn=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))},Kn=(e,t)=>{SK(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,qn(e.strm)},We=(e,t)=>{e.pending_buf[e.pending++]=t},ou=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},P1=(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=nu(e.adler,t,i,r):e.state.wrap===2&&(e.adler=Qr(e.adler,t,i,r)),e.next_in+=i,e.total_in+=i,i)},A3=(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-Wi?e.strstart-(e.w_size-Wi):0,l=e.window,u=e.w_mask,h=e.prev,f=e.strstart+ys;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=ys-(f-n),n=f-ys,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},gl=e=>{const t=e.w_size;let r,n,i;do{if(n=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-Wi)&&(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),HK(e),n+=t),e.strm.avail_in===0)break;if(r=P1(e.strm,e.window,e.strstart+e.lookahead,n),e.lookahead+=r,e.lookahead+e.insert>=Le)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=bs(e,e.ins_h,e.window[i+1]);e.insert&&(e.ins_h=bs(e,e.ins_h,e.window[i+Le-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<Le)););}while(e.lookahead<Wi&&e.strm.avail_in!==0)},D3=(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!==ai||t===vs||n!==i+e.strm.avail_in)))break;s=t===ai&&n===i+e.strm.avail_in?1:0,b1(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,qn(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&&(P1(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?ml:t!==vs&&t!==ai&&e.strm.avail_in===0&&e.strstart===e.block_start?pl:(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&&(P1(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===ai)&&t!==vs&&e.strm.avail_in===0&&i<=o)&&(n=i>o?o:i,s=t===ai&&e.strm.avail_in===0&&n===i?1:0,b1(e,e.block_start,n,s),e.block_start+=n,qn(e.strm)),s?xa:xn)},T1=(e,t)=>{let r,n;for(;;){if(e.lookahead<Wi){if(gl(e),e.lookahead<Wi&&t===vs)return xn;if(e.lookahead===0)break}if(r=0,e.lookahead>=Le&&(e.ins_h=bs(e,e.ins_h,e.window[e.strstart+Le-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-Wi&&(e.match_length=A3(e,r)),e.match_length>=Le)if(n=gs(e,e.strstart-e.match_start,e.match_length-Le),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=Le){e.match_length--;do e.strstart++,e.ins_h=bs(e,e.ins_h,e.window[e.strstart+Le-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=bs(e,e.ins_h,e.window[e.strstart+1]);else n=gs(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(Kn(e,!1),e.strm.avail_out===0))return xn}return e.insert=e.strstart<Le-1?e.strstart:Le-1,t===ai?(Kn(e,!0),e.strm.avail_out===0?xa:ml):e.sym_next&&(Kn(e,!1),e.strm.avail_out===0)?xn:pl},vl=(e,t)=>{let r,n,i;for(;;){if(e.lookahead<Wi){if(gl(e),e.lookahead<Wi&&t===vs)return xn;if(e.lookahead===0)break}if(r=0,e.lookahead>=Le&&(e.ins_h=bs(e,e.ins_h,e.window[e.strstart+Le-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=Le-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-Wi&&(e.match_length=A3(e,r),e.match_length<=5&&(e.strategy===TK||e.match_length===Le&&e.strstart-e.match_start>4096)&&(e.match_length=Le-1)),e.prev_length>=Le&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-Le,n=gs(e,e.strstart-1-e.prev_match,e.prev_length-Le),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=bs(e,e.ins_h,e.window[e.strstart+Le-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=Le-1,e.strstart++,n&&(Kn(e,!1),e.strm.avail_out===0))return xn}else if(e.match_available){if(n=gs(e,0,e.window[e.strstart-1]),n&&Kn(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return xn}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=gs(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<Le-1?e.strstart:Le-1,t===ai?(Kn(e,!0),e.strm.avail_out===0?xa:ml):e.sym_next&&(Kn(e,!1),e.strm.avail_out===0)?xn:pl},KK=(e,t)=>{let r,n,i,o;const s=e.window;for(;;){if(e.lookahead<=ys){if(gl(e),e.lookahead<=ys&&t===vs)return xn;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=Le&&e.strstart>0&&(i=e.strstart-1,n=s[i],n===s[++i]&&n===s[++i]&&n===s[++i])){o=e.strstart+ys;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=ys-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=Le?(r=gs(e,1,e.match_length-Le),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=gs(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(Kn(e,!1),e.strm.avail_out===0))return xn}return e.insert=0,t===ai?(Kn(e,!0),e.strm.avail_out===0?xa:ml):e.sym_next&&(Kn(e,!1),e.strm.avail_out===0)?xn:pl},YK=(e,t)=>{let r;for(;;){if(e.lookahead===0&&(gl(e),e.lookahead===0)){if(t===vs)return xn;break}if(e.match_length=0,r=gs(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(Kn(e,!1),e.strm.avail_out===0))return xn}return e.insert=0,t===ai?(Kn(e,!0),e.strm.avail_out===0?xa:ml):e.sym_next&&(Kn(e,!1),e.strm.avail_out===0)?xn:pl};function Ji(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 su=[new Ji(0,0,0,0,D3),new Ji(4,4,8,4,T1),new Ji(4,5,16,8,T1),new Ji(4,6,32,32,T1),new Ji(4,4,16,16,vl),new Ji(8,16,32,32,vl),new Ji(8,16,128,128,vl),new Ji(8,32,128,256,vl),new Ji(32,128,258,1024,vl),new Ji(32,258,258,4096,vl)],XK=e=>{e.window_size=2*e.w_size,_s(e.head),e.max_lazy_match=su[e.level].max_lazy,e.good_match=su[e.level].good_length,e.nice_match=su[e.level].nice_length,e.max_chain_length=su[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=Le-1,e.match_available=0,e.ins_h=0};function WK(){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=Ef,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(UK*2),this.dyn_dtree=new Uint16Array((2*LK+1)*2),this.bl_tree=new Uint16Array((2*VK+1)*2),_s(this.dyn_ltree),_s(this.dyn_dtree),_s(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(zK+1),this.heap=new Uint16Array(2*x1+1),_s(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*x1+1),_s(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 au=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==fl&&t.status!==S1&&t.status!==$1&&t.status!==E1&&t.status!==C1&&t.status!==k1&&t.status!==wa&&t.status!==iu?1:0},R3=e=>{if(au(e))return Sa(e,Xi);e.total_in=e.total_out=0,e.data_type=DK;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?S1:t.wrap?fl:wa,e.adler=t.wrap===2?0:1,t.last_flush=-2,xK(t),an},I3=e=>{const t=R3(e);return t===an&&XK(e.state),t},JK=(e,t)=>au(e)||e.state.wrap!==2?Xi:(e.state.gzhead=t,an),j3=(e,t,r,n,i,o)=>{if(!e)return Xi;let s=1;if(t===PK&&(t=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),i<1||i>RK||r!==Ef||n<8||n>15||t<0||t>9||o<0||o>NK||n===8&&s!==1)return Sa(e,Xi);n===8&&(n=9);const a=new WK;return e.state=a,a.strm=e,a.status=fl,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+Le-1)/Le),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,I3(e)},QK=(e,t)=>j3(e,t,Ef,IK,jK,AK),ZK=(e,t)=>{if(au(e)||t>T3||t<0)return e?Sa(e,Xi):Xi;const r=e.state;if(!e.output||e.avail_in!==0&&!e.input||r.status===iu&&t!==ai)return Sa(e,e.avail_out===0?w1:Xi);const n=r.last_flush;if(r.last_flush=t,r.pending!==0){if(qn(e),e.avail_out===0)return r.last_flush=-1,an}else if(e.avail_in===0&&N3(t)<=N3(n)&&t!==ai)return Sa(e,w1);if(r.status===iu&&e.avail_in!==0)return Sa(e,w1);if(r.status===fl&&r.wrap===0&&(r.status=wa),r.status===fl){let i=Ef+(r.w_bits-8<<4)<<8,o=-1;if(r.strategy>=$f||r.level<2?o=0:r.level<6?o=1:r.level===6?o=2:o=3,i|=o<<6,r.strstart!==0&&(i|=GK),i+=31-i%31,ou(r,i),r.strstart!==0&&(ou(r,e.adler>>>16),ou(r,e.adler&65535)),e.adler=1,r.status=wa,qn(e),r.pending!==0)return r.last_flush=-1,an}if(r.status===S1){if(e.adler=0,We(r,31),We(r,139),We(r,8),r.gzhead)We(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)),We(r,r.gzhead.time&255),We(r,r.gzhead.time>>8&255),We(r,r.gzhead.time>>16&255),We(r,r.gzhead.time>>24&255),We(r,r.level===9?2:r.strategy>=$f||r.level<2?4:0),We(r,r.gzhead.os&255),r.gzhead.extra&&r.gzhead.extra.length&&(We(r,r.gzhead.extra.length&255),We(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=Qr(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=$1;else if(We(r,0),We(r,0),We(r,0),We(r,0),We(r,0),We(r,r.level===9?2:r.strategy>=$f||r.level<2?4:0),We(r,BK),r.status=wa,qn(e),r.pending!==0)return r.last_flush=-1,an}if(r.status===$1){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=Qr(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex+=a,qn(e),r.pending!==0)return r.last_flush=-1,an;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=Qr(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex=0}r.status=E1}if(r.status===E1){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=Qr(e.adler,r.pending_buf,r.pending-i,i)),qn(e),r.pending!==0)return r.last_flush=-1,an;i=0}r.gzindex<r.gzhead.name.length?o=r.gzhead.name.charCodeAt(r.gzindex++)&255:o=0,We(r,o)}while(o!==0);r.gzhead.hcrc&&r.pending>i&&(e.adler=Qr(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex=0}r.status=C1}if(r.status===C1){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=Qr(e.adler,r.pending_buf,r.pending-i,i)),qn(e),r.pending!==0)return r.last_flush=-1,an;i=0}r.gzindex<r.gzhead.comment.length?o=r.gzhead.comment.charCodeAt(r.gzindex++)&255:o=0,We(r,o)}while(o!==0);r.gzhead.hcrc&&r.pending>i&&(e.adler=Qr(e.adler,r.pending_buf,r.pending-i,i))}r.status=k1}if(r.status===k1){if(r.gzhead.hcrc){if(r.pending+2>r.pending_buf_size&&(qn(e),r.pending!==0))return r.last_flush=-1,an;We(r,e.adler&255),We(r,e.adler>>8&255),e.adler=0}if(r.status=wa,qn(e),r.pending!==0)return r.last_flush=-1,an}if(e.avail_in!==0||r.lookahead!==0||t!==vs&&r.status!==iu){let i=r.level===0?D3(r,t):r.strategy===$f?YK(r,t):r.strategy===OK?KK(r,t):su[r.level].func(r,t);if((i===xa||i===ml)&&(r.status=iu),i===xn||i===xa)return e.avail_out===0&&(r.last_flush=-1),an;if(i===pl&&(t===EK?$K(r):t!==T3&&(b1(r,0,0,!1),t===CK&&(_s(r.head),r.lookahead===0&&(r.strstart=0,r.block_start=0,r.insert=0))),qn(e),e.avail_out===0))return r.last_flush=-1,an}return t!==ai?an:r.wrap<=0?O3:(r.wrap===2?(We(r,e.adler&255),We(r,e.adler>>8&255),We(r,e.adler>>16&255),We(r,e.adler>>24&255),We(r,e.total_in&255),We(r,e.total_in>>8&255),We(r,e.total_in>>16&255),We(r,e.total_in>>24&255)):(ou(r,e.adler>>>16),ou(r,e.adler&65535)),qn(e),r.wrap>0&&(r.wrap=-r.wrap),r.pending!==0?an:O3)},tY=e=>{if(au(e))return Xi;const t=e.state.status;return e.state=null,t===wa?Sa(e,kK):an},eY=(e,t)=>{let r=t.length;if(au(e))return Xi;const n=e.state,i=n.wrap;if(i===2||i===1&&n.status!==fl||n.lookahead)return Xi;if(i===1&&(e.adler=nu(e.adler,t,r,0)),n.wrap=0,r>=n.w_size){i===0&&(_s(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,gl(n);n.lookahead>=Le;){let c=n.strstart,l=n.lookahead-(Le-1);do n.ins_h=bs(n,n.ins_h,n.window[c+Le-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=Le-1,gl(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=Le-1,n.match_available=0,e.next_in=s,e.input=a,e.avail_in=o,n.wrap=i,an};var rY=QK,nY=j3,iY=I3,oY=R3,sY=JK,aY=ZK,lY=tY,cY=eY,uY="pako deflate (from Nodeca project)",lu={deflateInit:rY,deflateInit2:nY,deflateReset:iY,deflateResetKeep:oY,deflateSetHeader:sY,deflate:aY,deflateEnd:lY,deflateSetDictionary:cY,deflateInfo:uY};const hY=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var dY=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)hY(r,n)&&(e[n]=r[n])}}return e},fY=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},Cf={assign:dY,flattenChunks:fY};let F3=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{F3=!1}const cu=new Uint8Array(256);for(let e=0;e<256;e++)cu[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;cu[254]=cu[254]=1;var pY=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 mY=(e,t)=>{if(t<65534&&e.subarray&&F3)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 gY=(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=cu[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 mY(o,i)},vY=(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+cu[e[r]]>t?r:t},uu={string2buf:pY,buf2string:gY,utf8border:vY};function yY(){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 M3=yY;const L3=Object.prototype.toString,{Z_NO_FLUSH:_Y,Z_SYNC_FLUSH:bY,Z_FULL_FLUSH:wY,Z_FINISH:xY,Z_OK:kf,Z_STREAM_END:SY,Z_DEFAULT_COMPRESSION:$Y,Z_DEFAULT_STRATEGY:EY,Z_DEFLATED:CY}=ba;function hu(e){this.options=Cf.assign({level:$Y,method:CY,chunkSize:16384,windowBits:15,memLevel:8,strategy:EY},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 M3,this.strm.avail_out=0;let r=lu.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==kf)throw new Error(_a[r]);if(t.header&&lu.deflateSetHeader(this.strm,t.header),t.dictionary){let n;if(typeof t.dictionary=="string"?n=uu.string2buf(t.dictionary):L3.call(t.dictionary)==="[object ArrayBuffer]"?n=new Uint8Array(t.dictionary):n=t.dictionary,r=lu.deflateSetDictionary(this.strm,n),r!==kf)throw new Error(_a[r]);this._dict_set=!0}}hu.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?xY:_Y,typeof e=="string"?r.input=uu.string2buf(e):L3.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===bY||o===wY)&&r.avail_out<=6){this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;continue}if(i=lu.deflate(r,o),i===SY)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),i=lu.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===kf;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},hu.prototype.onData=function(e){this.chunks.push(e)},hu.prototype.onEnd=function(e){e===kf&&(this.result=Cf.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function O1(e,t){const r=new hu(t);if(r.push(e,!0),r.err)throw r.msg||_a[r.err];return r.result}function kY(e,t){return t=t||{},t.raw=!0,O1(e,t)}function PY(e,t){return t=t||{},t.gzip=!0,O1(e,t)}var TY=hu,OY=O1,NY=kY,AY=PY,DY=ba,RY={Deflate:TY,deflate:OY,deflateRaw:NY,gzip:AY,constants:DY};const Pf=16209,IY=16191;var jY=function(e,t){let r,n,i,o,s,a,c,l,u,h,f,d,p,g,v,_,y,m,x,N,$,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,_=(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&_];r:for(;;){if(m=y>>>24,f>>>=m,d-=m,m=y>>>16&255,m&16){if(N=y&65535,m&=15,d<m&&(f+=D[r++]<<d,d+=8,d<m&&(f+=D[r++]<<d,d+=8)),N+=f&(1<<m)-1,N>a){e.msg="invalid distance too far back",U.mode=Pf;break t}if(f>>>=m,d-=m,m=i-o,N>m){if(m=N-m,m>l&&U.sane){e.msg="invalid distance too far back",U.mode=Pf;break t}if($=0,k=h,u===0){if($+=c-m,m<x){x-=m;do V[i++]=h[$++];while(--m);$=i-N,k=V}}else if(u<m){if($+=c+u-m,m-=u,m<x){x-=m;do V[i++]=h[$++];while(--m);if($=0,u<x){m=u,x-=m;do V[i++]=h[$++];while(--m);$=i-N,k=V}}}else if($+=u-m,m<x){x-=m;do V[i++]=h[$++];while(--m);$=i-N,k=V}for(;x>2;)V[i++]=k[$++],V[i++]=k[$++],V[i++]=k[$++],x-=3;x&&(V[i++]=k[$++],x>1&&(V[i++]=k[$++]))}else{$=i-N;do V[i++]=V[$++],V[i++]=V[$++],V[i++]=V[$++],x-=3;while(x>2);x&&(V[i++]=V[$++],x>1&&(V[i++]=V[$++]))}}else if(m&64){e.msg="invalid distance code",U.mode=Pf;break t}else{y=g[(y&65535)+(f&(1<<m)-1)];continue r}break}}else if(m&64)if(m&32){U.mode=IY;break t}else{e.msg="invalid literal/length code",U.mode=Pf;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 yl=15,V3=852,U3=592,z3=0,N1=1,G3=2,FY=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]),MY=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]),LY=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]),VY=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 du=(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,_=0,y=0,m,x,N,$,k,D=null,V;const U=new Uint16Array(yl+1),K=new Uint16Array(yl+1);let Y=null,it,nt,ft;for(l=0;l<=yl;l++)U[l]=0;for(u=0;u<n;u++)U[t[r+u]]++;for(d=c,f=yl;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<=yl;l++)if(v<<=1,v-=U[l],v<0)return-1;if(v>0&&(e===z3||f!==1))return-1;for(K[1]=0,l=1;l<yl;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===z3?(D=Y=s,V=20):e===N1?(D=FY,Y=MY,V=257):(D=LY,Y=VY,V=0),y=0,u=0,l=h,k=o,p=d,g=0,N=-1,_=1<<d,$=_-1,e===N1&&_>V3||e===G3&&_>U3)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&$)!==N){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(_+=1<<p,e===N1&&_>V3||e===G3&&_>U3)return 1;N=y&$,i[N]=d<<24|p<<16|k-o|0}}return y!==0&&(i[k+y]=l-g<<24|64<<16|0),a.bits=d,0};const UY=0,B3=1,H3=2,{Z_FINISH:q3,Z_BLOCK:zY,Z_TREES:Tf,Z_OK:$a,Z_STREAM_END:GY,Z_NEED_DICT:BY,Z_STREAM_ERROR:Ni,Z_DATA_ERROR:K3,Z_MEM_ERROR:Y3,Z_BUF_ERROR:HY,Z_DEFLATED:X3}=ba,Of=16180,W3=16181,J3=16182,Q3=16183,Z3=16184,tC=16185,eC=16186,rC=16187,nC=16188,iC=16189,Nf=16190,Fo=16191,A1=16192,oC=16193,D1=16194,sC=16195,aC=16196,lC=16197,cC=16198,Af=16199,Df=16200,uC=16201,hC=16202,dC=16203,fC=16204,pC=16205,R1=16206,mC=16207,gC=16208,Sr=16209,vC=16210,yC=16211,qY=852,KY=592,YY=15,XY=YY,_C=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function WY(){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 Ea=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<Of||t.mode>yC?1:0},bC=e=>{if(Ea(e))return Ni;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=Of,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(qY),t.distcode=t.distdyn=new Int32Array(KY),t.sane=1,t.back=-1,$a},wC=e=>{if(Ea(e))return Ni;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,bC(e)},xC=(e,t)=>{let r;if(Ea(e))return Ni;const n=e.state;return t<0?(r=0,t=-t):(r=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?Ni:(n.window!==null&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,wC(e))},SC=(e,t)=>{if(!e)return Ni;const r=new WY;e.state=r,r.strm=e,r.window=null,r.mode=Of;const n=xC(e,t);return n!==$a&&(e.state=null),n},JY=e=>SC(e,XY);let $C=!0,I1,j1;const QY=e=>{if($C){I1=new Int32Array(512),j1=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(du(B3,e.lens,0,288,I1,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;du(H3,e.lens,0,32,j1,0,e.work,{bits:5}),$C=!1}e.lencode=I1,e.lenbits=9,e.distcode=j1,e.distbits=5},EC=(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},ZY=(e,t)=>{let r,n,i,o,s,a,c,l,u,h,f,d,p,g,v=0,_,y,m,x,N,$,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(Ea(e)||!e.output||!e.input&&e.avail_in!==0)return Ni;r=e.state,r.mode===Fo&&(r.mode=A1),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=$a;t:for(;;)switch(r.mode){case Of:if(r.wrap===0){r.mode=A1;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=Qr(r.check,V,2,0),l=0,u=0,r.mode=W3;break}if(r.head&&(r.head.done=!1),!(r.wrap&1)||(((l&255)<<8)+(l>>8))%31){e.msg="incorrect header check",r.mode=Sr;break}if((l&15)!==X3){e.msg="unknown compression method",r.mode=Sr;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=Sr;break}r.dmax=1<<r.wbits,r.flags=0,e.adler=r.check=1,r.mode=l&512?iC:Fo,l=0,u=0;break;case W3:for(;u<16;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}if(r.flags=l,(r.flags&255)!==X3){e.msg="unknown compression method",r.mode=Sr;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=Sr;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=Qr(r.check,V,2,0)),l=0,u=0,r.mode=J3;case J3: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=Qr(r.check,V,4,0)),l=0,u=0,r.mode=Q3;case Q3: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=Qr(r.check,V,2,0)),l=0,u=0,r.mode=Z3;case Z3: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=Qr(r.check,V,2,0)),l=0,u=0}else r.head&&(r.head.extra=null);r.mode=tC;case tC: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=Qr(r.check,n,d,o)),a-=d,o+=d,r.length-=d),r.length))break t;r.length=0,r.mode=eC;case eC: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=Qr(r.check,n,d,o)),a-=d,o+=d,k)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=rC;case rC: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=Qr(r.check,n,d,o)),a-=d,o+=d,k)break t}else r.head&&(r.head.comment=null);r.mode=nC;case nC: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=Sr;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=Fo;break;case iC:for(;u<32;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}e.adler=r.check=_C(l),l=0,u=0,r.mode=Nf;case Nf: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,BY;e.adler=r.check=1,r.mode=Fo;case Fo:if(t===zY||t===Tf)break t;case A1:if(r.last){l>>>=u&7,u-=u&7,r.mode=R1;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=oC;break;case 1:if(QY(r),r.mode=Af,t===Tf){l>>>=2,u-=2;break t}break;case 2:r.mode=aC;break;case 3:e.msg="invalid block type",r.mode=Sr}l>>>=2,u-=2;break;case oC: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=Sr;break}if(r.length=l&65535,l=0,u=0,r.mode=D1,t===Tf)break t;case D1:r.mode=sC;case sC: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=Fo;break;case aC: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=Sr;break}r.have=0,r.mode=lC;case lC: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=du(UY,r.lens,0,19,r.lencode,0,r.work,U),r.lenbits=U.bits,D){e.msg="invalid code lengths set",r.mode=Sr;break}r.have=0,r.mode=cC;case cC:for(;r.have<r.nlen+r.ndist;){for(;v=r.lencode[l&(1<<r.lenbits)-1],_=v>>>24,y=v>>>16&255,m=v&65535,!(_<=u);){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}if(m<16)l>>>=_,u-=_,r.lens[r.have++]=m;else{if(m===16){for(K=_+2;u<K;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}if(l>>>=_,u-=_,r.have===0){e.msg="invalid bit length repeat",r.mode=Sr;break}k=r.lens[r.have-1],d=3+(l&3),l>>>=2,u-=2}else if(m===17){for(K=_+3;u<K;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}l>>>=_,u-=_,k=0,d=3+(l&7),l>>>=3,u-=3}else{for(K=_+7;u<K;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}l>>>=_,u-=_,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=Sr;break}for(;d--;)r.lens[r.have++]=k}}if(r.mode===Sr)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=Sr;break}if(r.lenbits=9,U={bits:r.lenbits},D=du(B3,r.lens,0,r.nlen,r.lencode,0,r.work,U),r.lenbits=U.bits,D){e.msg="invalid literal/lengths set",r.mode=Sr;break}if(r.distbits=6,r.distcode=r.distdyn,U={bits:r.distbits},D=du(H3,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,U),r.distbits=U.bits,D){e.msg="invalid distances set",r.mode=Sr;break}if(r.mode=Af,t===Tf)break t;case Af:r.mode=Df;case Df: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,jY(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===Fo&&(r.back=-1);break}for(r.back=0;v=r.lencode[l&(1<<r.lenbits)-1],_=v>>>24,y=v>>>16&255,m=v&65535,!(_<=u);){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}if(y&&!(y&240)){for(x=_,N=y,$=m;v=r.lencode[$+((l&(1<<x+N)-1)>>x)],_=v>>>24,y=v>>>16&255,m=v&65535,!(x+_<=u);){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}l>>>=x,u-=x,r.back+=x}if(l>>>=_,u-=_,r.back+=_,r.length=m,y===0){r.mode=pC;break}if(y&32){r.back=-1,r.mode=Fo;break}if(y&64){e.msg="invalid literal/length code",r.mode=Sr;break}r.extra=y&15,r.mode=uC;case uC: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=hC;case hC:for(;v=r.distcode[l&(1<<r.distbits)-1],_=v>>>24,y=v>>>16&255,m=v&65535,!(_<=u);){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}if(!(y&240)){for(x=_,N=y,$=m;v=r.distcode[$+((l&(1<<x+N)-1)>>x)],_=v>>>24,y=v>>>16&255,m=v&65535,!(x+_<=u);){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}l>>>=x,u-=x,r.back+=x}if(l>>>=_,u-=_,r.back+=_,y&64){e.msg="invalid distance code",r.mode=Sr;break}r.offset=m,r.extra=y&15,r.mode=dC;case dC: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=Sr;break}r.mode=fC;case fC: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=Sr;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=Df);break;case pC:if(c===0)break t;i[s++]=r.length,c--,r.mode=Df;break;case R1: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?Qr(r.check,i,f,s-f):nu(r.check,i,f,s-f)),f=c,r.wrap&4&&(r.flags?l:_C(l))!==r.check){e.msg="incorrect data check",r.mode=Sr;break}l=0,u=0}r.mode=mC;case mC: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=Sr;break}l=0,u=0}r.mode=gC;case gC:D=GY;break t;case Sr:D=K3;break t;case vC:return Y3;case yC:default:return Ni}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<Sr&&(r.mode<R1||t!==q3))&&EC(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?Qr(r.check,i,f,e.next_out-f):nu(r.check,i,f,e.next_out-f)),e.data_type=r.bits+(r.last?64:0)+(r.mode===Fo?128:0)+(r.mode===Af||r.mode===D1?256:0),(h===0&&f===0||t===q3)&&D===$a&&(D=HY),D},tX=e=>{if(Ea(e))return Ni;let t=e.state;return t.window&&(t.window=null),e.state=null,$a},eX=(e,t)=>{if(Ea(e))return Ni;const r=e.state;return r.wrap&2?(r.head=t,t.done=!1,$a):Ni},rX=(e,t)=>{const r=t.length;let n,i,o;return Ea(e)||(n=e.state,n.wrap!==0&&n.mode!==Nf)?Ni:n.mode===Nf&&(i=1,i=nu(i,t,r,0),i!==n.check)?K3:(o=EC(e,t,r,r),o?(n.mode=vC,Y3):(n.havedict=1,$a))};var nX=wC,iX=xC,oX=bC,sX=JY,aX=SC,lX=ZY,cX=tX,uX=eX,hX=rX,dX="pako inflate (from Nodeca project)",Mo={inflateReset:nX,inflateReset2:iX,inflateResetKeep:oX,inflateInit:sX,inflateInit2:aX,inflate:lX,inflateEnd:cX,inflateGetHeader:uX,inflateSetDictionary:hX,inflateInfo:dX};function fX(){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 pX=fX;const CC=Object.prototype.toString,{Z_NO_FLUSH:mX,Z_FINISH:gX,Z_OK:fu,Z_STREAM_END:F1,Z_NEED_DICT:M1,Z_STREAM_ERROR:vX,Z_DATA_ERROR:kC,Z_MEM_ERROR:yX}=ba;function pu(e){this.options=Cf.assign({chunkSize:1024*64,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 M3,this.strm.avail_out=0;let r=Mo.inflateInit2(this.strm,t.windowBits);if(r!==fu)throw new Error(_a[r]);if(this.header=new pX,Mo.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=uu.string2buf(t.dictionary):CC.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=Mo.inflateSetDictionary(this.strm,t.dictionary),r!==fu)))throw new Error(_a[r])}pu.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?gX:mX,CC.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=Mo.inflate(r,s),o===M1&&i&&(o=Mo.inflateSetDictionary(r,i),o===fu?o=Mo.inflate(r,s):o===kC&&(o=M1));r.avail_in>0&&o===F1&&r.state.wrap>0&&e[r.next_in]!==0;)Mo.inflateReset(r),o=Mo.inflate(r,s);switch(o){case vX:case kC:case M1:case yX:return this.onEnd(o),this.ended=!0,!1}if(a=r.avail_out,r.next_out&&(r.avail_out===0||o===F1))if(this.options.to==="string"){let c=uu.utf8border(r.output,r.next_out),l=r.next_out-c,u=uu.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===fu&&a===0)){if(o===F1)return o=Mo.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(r.avail_in===0)break}}return!0},pu.prototype.onData=function(e){this.chunks.push(e)},pu.prototype.onEnd=function(e){e===fu&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Cf.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function L1(e,t){const r=new pu(t);if(r.push(e),r.err)throw r.msg||_a[r.err];return r.result}function _X(e,t){return t=t||{},t.raw=!0,L1(e,t)}var bX=pu,wX=L1,xX=_X,SX=L1,$X=ba,EX={Inflate:bX,inflate:wX,inflateRaw:xX,ungzip:SX,constants:$X};const{Deflate:CX,deflate:kX,deflateRaw:PX,gzip:TX}=RY,{Inflate:OX,inflate:NX,inflateRaw:AX,ungzip:DX}=EX;var RX=CX,IX=kX,jX=PX,FX=TX,MX=OX,LX=NX,VX=AX,UX=DX,zX=ba,GX={Deflate:RX,deflate:IX,deflateRaw:jX,gzip:FX,Inflate:MX,inflate:LX,inflateRaw:VX,ungzip:UX,constants:zX};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]=255<<24|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]=255<<24|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 _=v<<2,y=v*3;c[v]=255<<24|e[y+2]<<16|e[y+1]<<8|e[y],e[y]===d&&e[y+1]===p&&e[y+2]===g&&(a[_+3]=0)}if(u===16)for(let v=0;v<i;v++){const _=v<<2,y=v*6;c[v]=255<<24|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[_+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,_=g*t;for(let y=0;y<t;y++){const m=_+y<<2,x=e[v+(y>>3)]>>7-((y&7)<<0)&1,N=3*x;a[m]=f[N],a[m+1]=f[N+1],a[m+2]=f[N+2],a[m+3]=x<p?d[x]:255}}if(u===2)for(let g=0;g<r;g++){const v=g*s,_=g*t;for(let y=0;y<t;y++){const m=_+y<<2,x=e[v+(y>>2)]>>6-((y&3)<<1)&3,N=3*x;a[m]=f[N],a[m+1]=f[N+1],a[m+2]=f[N+2],a[m+3]=x<p?d[x]:255}}if(u===4)for(let g=0;g<r;g++){const v=g*s,_=g*t;for(let y=0;y<t;y++){const m=_+y<<2,x=e[v+(y>>1)]>>4-((y&1)<<2)&15,N=3*x;a[m]=f[N],a[m+1]=f[N+1],a[m+2]=f[N+2],a[m+3]=x<p?d[x]:255}}if(u===8)for(let g=0;g<i;g++){const v=g<<2,_=e[g],y=3*_;a[v]=f[y],a[v+1]=f[y+1],a[v+2]=f[y+2],a[v+3]=_<p?d[_]: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 _=255*(e[p+(v>>>3)]>>>7-(v&7)&1),y=_===f*255?0:255;c[g+v]=y<<24|_<<16|_<<8|_}else if(u===2)for(let v=0;v<t;v++){const _=85*(e[p+(v>>>2)]>>>6-((v&3)<<1)&3),y=_===f*85?0:255;c[g+v]=y<<24|_<<16|_<<8|_}else if(u===4)for(let v=0;v<t;v++){const _=17*(e[p+(v>>>1)]>>>4-((v&1)<<2)&15),y=_===f*17?0:255;c[g+v]=y<<24|_<<16|_<<8|_}else if(u===8)for(let v=0;v<t;v++){const _=e[p+v],y=_===f?0:255;c[g+v]=y<<24|_<<16|_<<8|_}else if(u===16)for(let v=0;v<t;v++){const _=e[p+(v<<1)],y=h(e,p+(v<<1))===f?0:255;c[g+v]=y<<24|_<<16|_<<8|_}}}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 _=s.frames[s.frames.length-1];_.data=Rt.decode._decompress(s,l.slice(0,u),_.rect.width,_.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 _=r+f-p-1;if(d==="tEXt")v=n.readASCII(t,p+1,_);else{const y=Rt.decode._inflate(t.slice(p+2,p+2+_));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 _=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(_===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,_=g.e,y=g.R,m=g.n,x=g.A,N=g.Z,$=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+(1<<17))),o===1&&(d=$.J,p=$.h,l=512-1,u=32-1),o===2){s=_(t,f,5)+257,a=_(t,f+5,5)+1,c=_(t,f+10,4)+4,f+=14;let D=1;for(let K=0;K<38;K+=2)$.Q[K]=0,$.Q[K+1]=0;for(let K=0;K<c;K++){const Y=_(t,f+K*3,3);$.Q[($.X[K]<<1)+1]=Y,Y>D&&(D=Y)}f+=3*c,m($.Q,D),x($.Q,D,$.u),d=$.w,p=$.d,f=y($.u,(1<<D)-1,s+a,t,f,$.v);const V=g.V($.v,0,s,$.C);l=(1<<V)-1;const U=g.V($.v,s,a,$.D);u=(1<<U)-1,m($.C,V),x($.C,V,d),m($.D,U),x($.D,U,p)}for(;;){const D=d[N(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=$.q[V-257];U=h+(ft>>>3)+_(t,f,ft&7),f+=ft&7}const K=p[N(t,f)&u];f+=K&15;const Y=K>>>4,it=$.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._,255-143,9),n(t._,279-255,7),n(t._,287-279,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,_=0,y=l[d];for(;y<n;)y+=p,_++;let m=u[d];for(;m<r;)m+=g,v++;const x=Math.ceil(v*i/8);Rt.decode._filterZero(e,t,c,v,_);let N=0,$=l[d];for(;$<n;){let k=u[d],D=c+N*x<<3;for(;k<r;){if(i===1){let V=e[D>>3];V=V>>7-(D&7)&1,a[$*s+(k>>3)]|=V<<7-((k&7)<<0)}if(i===2){let V=e[D>>3];V=V>>6-(D&7)&3,a[$*s+(k>>2)]|=V<<6-((k&3)<<1)}if(i===4){let V=e[D>>3];V=V>>4-(D&7)&15,a[$*s+(k>>1)]|=V<<4-((k&1)<<2)}if(i>=8){const V=$*s+k*o;for(let U=0;U<o;U++)a[V+U]=e[(D>>3)+U]}D+=i,k+=g}N++,$+=p}v*_!==0&&(c+=_*(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]*(256*256*256)+(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,_=e[h+1]*g,y=e[h+2]*g,m=n[f+3]*(1/255),x=n[f]*m,N=n[f+1]*m,$=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]=(_+N*k)*V,n[f+2]=(y+$*k)*V}else if(c===2){const g=e[h+3],v=e[h],_=e[h+1],y=e[h+2],m=n[f+3],x=n[f],N=n[f+1],$=n[f+2];g===m&&v===x&&_===N&&y===$?(n[f]=0,n[f+1]=0,n[f+2]=0,n[f+3]=0):(n[f]=v,n[f+1]=_,n[f+2]=y,n[f+3]=g)}else if(c===3){const g=e[h+3],v=e[h],_=e[h+1],y=e[h+2],m=n[f+3],x=n[f],N=n[f+1],$=n[f+2];if(g===m&&v===x&&_===N&&y===$)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+=8+1+4),i.pHYs!==null&&i.pHYs!==void 0&&(f+=8+9+4),e.ctype===3){const v=e.plte.length;for(let _=0;_<v;_++)e.plte[_]>>>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 _=e.frames[v];u&&(f+=38),f+=_.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 _=0;_<v;_++){const y=_*3,m=e.plte[_],x=m&255,N=m>>>8&255,$=m>>>16&255;d[l+y+0]=x,d[l+y+1]=N,d[l+y+2]=$}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 _=0;_<v;_++)d[l+_]=e.plte[_]>>>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 _=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,_.rect.width),l+=4,s(d,l,_.rect.height),l+=4,s(d,l,_.rect.x),l+=4,s(d,l,_.rect.y),l+=4,a(d,l,n[v]),l+=2,a(d,l,1e3),l+=2,d[l]=_.dispose,l++,d[l]=_.blend,l++,s(d,l,o(d,l-30,30)),l+=4);const y=_.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]),N=x.length;for(let $=0;$<N;$+=4)f&=x[$+3]}const d=f!==255,p=Rt.encode.framize(e,t,r,o,s,a),g={},v=[],_=[];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),N=Rt.quantize(x,n);let $=0;const k=new Uint8Array(N.abuf);for(let D=0;D<p.length;D++){const V=p[D].img,U=V.length;_.push(new Uint8Array(N.inds.buffer,$>>2,U>>2));for(let K=0;K<U;K+=4)V[K]=k[$+K],V[K+1]=k[$+K+1],V[K+2]=k[$+K+2],V[K+3]=k[$+K+3];$+=U}for(let D=0;D<N.plte.length;D++)v.push(N.plte[D].est.rgba)}else for(let m=0;m<p.length;m++){const x=p[m],N=new Uint32Array(x.img.buffer),$=x.rect.width,k=N.length,D=new Uint8Array(k);_.push(D);for(let V=0;V<k;V++){const U=N[V];if(V!==0&&U===N[V-1])D[V]=D[V-1];else if(V>$&&U===N[V-$])D[V]=D[V-$];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],N=x.rect.width,$=x.rect.height;let k=x.img,D=4*N,V=4;if(y<=256&&l===!1){D=Math.ceil(h*N/8);const U=new Uint8Array(D*$),K=_[m];for(let Y=0;Y<$;Y++){const it=Y*D,nt=Y*N;if(h===8)for(let ft=0;ft<N;ft++)U[it+ft]=K[nt+ft];else if(h===4)for(let ft=0;ft<N;ft++)U[it+(ft>>1)]|=K[nt+ft]<<4-(ft&1)*4;else if(h===2)for(let ft=0;ft<N;ft++)U[it+(ft>>2)]|=K[nt+ft]<<6-(ft&3)*2;else if(h===1)for(let ft=0;ft<N;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(N*$*3),K=N*$;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*N}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 _=0,y=1e9;for(let x=0;x<v;x++){const N=new Uint32Array(e[a-1-x]);let $=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]!==N[it]&&(Y<$&&($=Y),Y>D&&(D=Y),K<k&&(k=K),K>V&&(V=K))}D===-1&&($=k=D=V=0),i&&(($&1)===1&&$--,(k&1)===1&&k--);const U=(D-$+1)*(V-k+1);U<y&&(y=U,_=x,h=$,f=k,d=D-$+1,p=V-k+1)}const m=new Uint8Array(e[a-1-_]);_===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,_=-1;for(let m=0;m<o.height;m++)for(let x=0;x<o.width;x++){const N=o.x+x,$=o.y+m,k=$*t+N,D=d[k];D===0||n[i-1].dispose===0&&u[k]===D&&(h===null||h[k*4+3]!==0)||(N<p&&(p=N),N>v&&(v=N),$<g&&(g=$),$>_&&(_=$))}v===-1&&(p=g=v=_=0),s&&((p&1)===1&&p--,(g&1)===1&&g--),o={x:p,y:g,width:v-p+1,height:_-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&&s3!=null?s3:GX;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),_=l[p+2]*(1/255),y=l[p+3]*(1/255);d=Rt.quantize.getNearest(s,g,v,_,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),_=l[p+2]*(1/255),y=l[p+3]*(1/255);for(d=s;d.left;)d=c(d.est,g,v,_,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 _=0;_<16&&(f=h.multVec(u,f),p=Math.sqrt(h.dot(f,f)),f=h.sml(1/p,f),!(_!==0&&Math.abs(p-d)<1e-9));_++)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 Qi={glog:function(e){if(e<1)throw new Error("glog("+e+")");return Qi.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return Qi.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)};for(let e=0;e<8;e++)Qi.EXP_TABLE[e]=1<<e;for(let e=8;e<256;e++)Qi.EXP_TABLE[e]=Qi.EXP_TABLE[e-4]^Qi.EXP_TABLE[e-5]^Qi.EXP_TABLE[e-6]^Qi.EXP_TABLE[e-8];for(let e=0;e<255;e++)Qi.LOG_TABLE[Qi.EXP_TABLE[e]]=e;let mu;typeof self>"u"&&typeof process<"u"&&process.hrtime?mu=function(){const e=process.hrtime();return e[0]*1e3+e[1]/1e6}:typeof self<"u"&&self.performance!==void 0&&self.performance.now!==void 0?mu=self.performance.now.bind(self.performance):Date.now!==void 0?mu=Date.now:mu=function(){return new Date().getTime()};const BX=mu;let HX=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=BX(),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 Zi=new HX;Zi.getAll.bind(Zi),Zi.removeAll.bind(Zi),Zi.add.bind(Zi),Zi.remove.bind(Zi),Zi.update.bind(Zi);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 qX={attributeName:["display"],values:[["block","block"]]},jn={easeName:"linear",begin:0,dur:300,repeatCount:1,direction:"normal",fill:"freeze",keyTimes:[0,1]};class V1{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=Ro(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=gf(a.dom?.css("transform")??"");let f=o.begin;o.keyTimes.forEach((d,p)=>{const g={_matrix:h};c.forEach((v,_)=>{const y=l[_][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=qX,r=jn,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=jn,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 _=t(g);_&&(this._addAnimate(_,o,f,a),a=!1,c=!0)}if(p){const _=r(p);_&&(this._addAnimate(_,o,s,a),a=!1,l=!0)}if(v&&d!==s){const _=n(v);_&&(this._addAnimate(_,o,d,a),a=!1,u=!0)}this.objects.forEach((_,y)=>{if(!(y==f&&c||y==s&&l||y==d&&u)){const m=i(_);m&&(this._addAnimate(m,o,y,a),a=!1)}})}flip(t=jn,r=this.objects.length-1){const n=r-1,i=this.objects[n],o=this.objects[r],s=gf(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=jn,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=jn,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=jn,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=jn,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=jn,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=jn,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=jn,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=jn,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=jn,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=jn,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=jn,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 TC=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=TC,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 OC=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);OC!==null?window.webrtcDetectedVersion=parseInt(OC[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=TC,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 U1={exports:{}},gu={},z1={},G1={};(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 Qv<"u"?Qv: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)})(G1);const KX=Hn(G1),YX=le({__proto__:null,default:KX},[G1]),Re=ce(YX);var B1={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Util=e.Transform=void 0;const t=Re;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 N=this.m;return{x:N[0]*x.x+N[2]*x.y+N[4],y:N[1]*x.x+N[3]*x.y+N[5]}}translate(x,N){return this.m[4]+=this.m[0]*x+this.m[2]*N,this.m[5]+=this.m[1]*x+this.m[3]*N,this}scale(x,N){return this.m[0]*=x,this.m[1]*=x,this.m[2]*=N,this.m[3]*=N,this}rotate(x){var N=Math.cos(x),$=Math.sin(x),k=this.m[0]*N+this.m[2]*$,D=this.m[1]*N+this.m[3]*$,V=this.m[0]*-$+this.m[2]*N,U=this.m[1]*-$+this.m[3]*N;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,N){var $=this.m[0]+this.m[2]*N,k=this.m[1]+this.m[3]*N,D=this.m[2]+this.m[0]*x,V=this.m[3]+this.m[1]*x;return this.m[0]=$,this.m[1]=k,this.m[2]=D,this.m[3]=V,this}multiply(x){var N=this.m[0]*x.m[0]+this.m[2]*x.m[1],$=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]=N,this.m[1]=$,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]),N=this.m[3]*x,$=-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]=N,this.m[1]=$,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],N=this.m[1],$=this.m[2],k=this.m[3],D=this.m[4],V=this.m[5],U=x*k-N*$;let K={x:D,y:V,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(x!=0||N!=0){var Y=Math.sqrt(x*x+N*N);K.rotation=N>0?Math.acos(x/Y):-Math.acos(x/Y),K.scaleX=Y,K.scaleY=U/Y,K.skewX=(x*$+N*k)/U,K.skewY=0}else if($!=0||k!=0){var it=Math.sqrt($*$+k*k);K.rotation=Math.PI/2-(k>0?Math.acos(-$/it):-Math.acos($/it)),K.scaleX=U/it,K.scaleY=it,K.skewX=0,K.skewY=(x*$+N*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})\)/,_=[];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){_.push(m),_.length===1&&y(function(){const x=_;_=[],x.forEach(function(N){N()})})},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 N=e.Util.createImageElement();N.onload=function(){x(N)},N.src=m},_rgbToHex(m,x,N){return((1<<24)+(m<<16)+(x<<8)+N).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((N,$)=>N.slice(-1)==="%"?$===3?parseInt(N)/100:parseInt(N)/100*255:Number(N));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,...N]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(m),$=Number(N[0])/360,k=Number(N[1])/100,D=Number(N[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=$+1/3*-(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)*(2/3-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 N in m)this._isPlainObject(m[N])?x[N]=this.cloneObject(m[N]):this._isArray(m[N])?x[N]=this.cloneArray(m[N]):x[N]=m[N];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 N in m)x(N,m[N])},_inRange(m,x,N){return x<=m&&m<N},_getProjectionToSegment(m,x,N,$,k,D){var V,U,K,Y=(m-N)*(m-N)+(x-$)*(x-$);if(Y==0)V=m,U=x,K=(k-N)*(k-N)+(D-$)*(D-$);else{var it=((k-m)*(N-m)+(D-x)*($-x))/Y;it<0?(V=m,U=x,K=(m-k)*(m-k)+(x-D)*(x-D)):it>1?(V=N,U=$,K=(N-k)*(N-k)+($-D)*($-D)):(V=m+it*(N-m),U=x+it*($-x),K=(V-k)*(V-k)+(U-D)*(U-D))}return[V,U,K]},_getProjectionToLine(m,x,N){var $=e.Util.cloneObject(m),k=Number.MAX_VALUE;return x.forEach(function(D,V){if(!(!N&&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&&($.x=Y,$.y=it,k=nt)}}),$},_prepareArrayForTween(m,x,N){var $,k=[],D=[];if(m.length>x.length){var V=x;x=m,m=V}for($=0;$<m.length;$+=2)k.push({x:m[$],y:m[$+1]});for($=0;$<x.length;$+=2)D.push({x:x[$],y:x[$+1]});var U=[];return D.forEach(function(K){var Y=e.Util._getProjectionToLine(K,k,N);U.push(Y.x),U.push(Y.y)}),U},_prepareToStringify(m){var x;m.visitedByCircularReferenceRemoval=!0;for(var N in m)if(m.hasOwnProperty(N)&&m[N]&&typeof m[N]=="object"){if(x=Object.getOwnPropertyDescriptor(m,N),m[N].visitedByCircularReferenceRemoval||e.Util._isElement(m[N]))if(x.configurable)delete m[N];else return null;else if(e.Util._prepareToStringify(m[N])===null)if(x.configurable)delete m[N];else return null}return delete m.visitedByCircularReferenceRemoval,m},_assign(m,x){for(var N in x)m[N]=x[N];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,N,$){let k=0,D=0,V=0,U=0;typeof $=="number"?k=D=V=U=Math.min($,x/2,N/2):(k=Math.min($[0]||0,x/2,N/2),D=Math.min($[1]||0,x/2,N/2),U=Math.min($[2]||0,x/2,N/2),V=Math.min($[3]||0,x/2,N/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,N-U),m.arc(x-U,N-U,U,0,Math.PI/2,!1),m.lineTo(V,N),m.arc(V,N-V,V,Math.PI/2,Math.PI,!1),m.lineTo(0,k),m.arc(k,k,k,Math.PI,Math.PI*3/2,!1)}}})(B1);const XX=Hn(B1),WX=le({__proto__:null,default:XX},[B1]),Pr=ce(WX);var vu={},H1={},br={};Object.defineProperty(br,"__esModule",{value:!0});var NC=br.getComponentValidator=UC=br.getBooleanValidator=VC=br.getNumberArrayValidator=LC=br.getFunctionValidator=MC=br.getStringOrGradientValidator=FC=br.getStringValidator=jC=br.getNumberOrAutoValidator=IC=br.getNumberOrArrayOfNumbersValidator=RC=br.getNumberValidator=DC=br.alphaComponent=AC=br.RGBComponent=void 0;const Lo=Re,Tr=Pr;function Vo(e){return Tr.Util._isString(e)?'"'+e+'"':Object.prototype.toString.call(e)==="[object Number]"||Tr.Util._isBoolean(e)?e:Object.prototype.toString.call(e)}function JX(e){return e>255?255:e<0?0:Math.round(e)}var AC=br.RGBComponent=JX;function QX(e){return e>1?1:e<1e-4?1e-4:e}var DC=br.alphaComponent=QX;function ZX(){if(Lo.Konva.isUnminified)return function(e,t){return Tr.Util._isNumber(e)||Tr.Util.warn(Vo(e)+' is a not valid value for "'+t+'" attribute. The value should be a number.'),e}}var RC=br.getNumberValidator=ZX;function tW(e){if(Lo.Konva.isUnminified)return function(t,r){let n=Tr.Util._isNumber(t),i=Tr.Util._isArray(t)&&t.length==e;return!n&&!i&&Tr.Util.warn(Vo(t)+' is a not valid value for "'+r+'" attribute. The value should be a number or Array<number>('+e+")"),t}}var IC=br.getNumberOrArrayOfNumbersValidator=tW;function eW(){if(Lo.Konva.isUnminified)return function(e,t){var r=Tr.Util._isNumber(e),n=e==="auto";return r||n||Tr.Util.warn(Vo(e)+' is a not valid value for "'+t+'" attribute. The value should be a number or "auto".'),e}}var jC=br.getNumberOrAutoValidator=eW;function rW(){if(Lo.Konva.isUnminified)return function(e,t){return Tr.Util._isString(e)||Tr.Util.warn(Vo(e)+' is a not valid value for "'+t+'" attribute. The value should be a string.'),e}}var FC=br.getStringValidator=rW;function nW(){if(Lo.Konva.isUnminified)return function(e,t){const r=Tr.Util._isString(e),n=Object.prototype.toString.call(e)==="[object CanvasGradient]"||e&&e.addColorStop;return r||n||Tr.Util.warn(Vo(e)+' is a not valid value for "'+t+'" attribute. The value should be a string or a native gradient.'),e}}var MC=br.getStringOrGradientValidator=nW;function iW(){if(Lo.Konva.isUnminified)return function(e,t){return Tr.Util._isFunction(e)||Tr.Util.warn(Vo(e)+' is a not valid value for "'+t+'" attribute. The value should be a function.'),e}}var LC=br.getFunctionValidator=iW;function oW(){if(Lo.Konva.isUnminified)return function(e,t){const r=Int8Array?Object.getPrototypeOf(Int8Array):null;return r&&e instanceof r||(Tr.Util._isArray(e)?e.forEach(function(n){Tr.Util._isNumber(n)||Tr.Util.warn('"'+t+'" attribute has non numeric element '+n+". Make sure that all elements are numbers.")}):Tr.Util.warn(Vo(e)+' is a not valid value for "'+t+'" attribute. The value should be a array of numbers.')),e}}var VC=br.getNumberArrayValidator=oW;function sW(){if(Lo.Konva.isUnminified)return function(e,t){var r=e===!0||e===!1;return r||Tr.Util.warn(Vo(e)+' is a not valid value for "'+t+'" attribute. The value should be a boolean.'),e}}var UC=br.getBooleanValidator=sW;function aW(e){if(Lo.Konva.isUnminified)return function(t,r){return t==null||Tr.Util.isObject(t)||Tr.Util.warn(Vo(t)+' is a not valid value for "'+r+'" attribute. The value should be an object with properties '+e),t}}NC=br.getComponentValidator=aW;const lW=le({__proto__:null,get RGBComponent(){return AC},get alphaComponent(){return DC},default:br,get getBooleanValidator(){return UC},get getComponentValidator(){return NC},get getFunctionValidator(){return LC},get getNumberArrayValidator(){return VC},get getNumberOrArrayOfNumbersValidator(){return IC},get getNumberOrAutoValidator(){return jC},get getNumberValidator(){return RC},get getStringOrGradientValidator(){return MC},get getStringValidator(){return FC}},[br]),Ie=ce(lW);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Factory=void 0;const t=Pr,r=Ie;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 _={};for(p=0;p<u;p++)g=a[p],_[g]=this.getAttr(s+h(g));return _};var v=(0,r.getComponentValidator)(a);o.prototype[d]=function(_){var y=this.attrs[s],m;c&&(_=c.call(this,_)),v&&v.call(this,_,s);for(m in _)_.hasOwnProperty(m)&&this._setAttr(s+h(m),_[m]);return _||a.forEach(x=>{this._setAttr(s+h(x),void 0)}),this._fireChangeEvent(s,y,_),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}}})(H1);const cW=Hn(H1),uW=le({__proto__:null,default:cW},[H1]),Ae=ce(uW);var Uo={},zo={};Object.defineProperty(zo,"__esModule",{value:!0});var zC=zo.HitContext=KC=zo.SceneContext=qC=zo.Context=void 0;const GC=Pr,hW=Re;function dW(e){var t=[],r=e.length,n=GC.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 BC=",",fW="(",pW=")",mW="([",gW="])",vW=";",yW="()",_W="=",HC=["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"],bW=["fillStyle","strokeStyle","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","letterSpacing","lineCap","lineDashOffset","lineJoin","lineWidth","miterLimit","direction","font","textAlign","textBaseline","globalAlpha","globalCompositeOperation","imageSmoothingEnabled"];const wW=100;class Rf{constructor(t){this.canvas=t,hW.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+=yW:GC.Util._isArray(l[0])?o+=mW+l.join(BC)+gW:(r&&(l=l.map(u=>typeof u=="number"?Math.floor(u):u)),o+=fW+l.join(BC)+pW)):(o+=a.property,t||(o+=_W+a.val)),o+=vW;return o}clearTrace(){this.traceArr=[]}_trace(t){var r=this.traceArr,n;r.push(t),n=r.length,n>=wW&&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=HC.length,n=this.setAttr,i,o,s=function(a){var c=t[a],l;t[a]=function(){return o=dW(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(HC[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 qC=zo.Context=Rf;bW.forEach(function(e){Object.defineProperty(Rf.prototype,e,{get(){return this._context[e]},set(t){this._context[e]=t}})});class xW extends Rf{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 KC=zo.SceneContext=xW;class SW extends Rf{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()}}}zC=zo.HitContext=SW;const $W=le({__proto__:null,get Context(){return qC},get HitContext(){return zC},get SceneContext(){return KC},default:zo},[zo]),YC=ce($W);Object.defineProperty(Uo,"__esModule",{value:!0});var XC=Uo.HitCanvas=ZC=Uo.SceneCanvas=QC=Uo.Canvas=void 0;const If=Pr,WC=YC,JC=Re,EW=Ae,CW=Ie;var jf;function kW(){if(jf)return jf;var e=If.Util.createCanvasElement(),t=e.getContext("2d");return jf=function(){var r=JC.Konva._global.devicePixelRatio||1,n=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return r/n}(),If.Util.releaseCanvas(e),jf}class Ff{constructor(t){this.pixelRatio=1,this.width=0,this.height=0,this.isCache=!1;var r=t||{},n=r.pixelRatio||JC.Konva.pixelRatio||kW();this.pixelRatio=n,this._canvas=If.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 If.Util.error("Unable to get data URL. "+n.message+" For more info read https://konvajs.org/docs/posts/Tainted_Canvas.html."),""}}}}var QC=Uo.Canvas=Ff;EW.Factory.addGetterSetter(Ff,"pixelRatio",void 0,(0,CW.getNumberValidator)());class PW extends Ff{constructor(t={width:0,height:0,willReadFrequently:!1}){super(t),this.context=new WC.SceneContext(this,{willReadFrequently:t.willReadFrequently}),this.setSize(t.width,t.height)}}var ZC=Uo.SceneCanvas=PW;class TW extends Ff{constructor(t={width:0,height:0}){super(t),this.hitCanvas=!0,this.context=new WC.HitContext(this),this.setSize(t.width,t.height)}}XC=Uo.HitCanvas=TW;const OW=le({__proto__:null,get Canvas(){return QC},get HitCanvas(){return XC},get SceneCanvas(){return ZC},default:Uo},[Uo]),Mf=ce(OW);var q1={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DD=void 0;const t=Re,r=Pr;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))})(q1);const NW=Hn(q1),AW=le({__proto__:null,default:NW},[q1]),K1=ce(AW);Object.defineProperty(vu,"__esModule",{value:!0});var t4=vu.Node=void 0;const Fe=Pr,yu=Ae,Lf=Mf,Ca=Re,li=K1,Rr=Ie;var Vf="absoluteOpacity",Uf="allEventListeners",Go="absoluteTransform",e4="absoluteScale",ka="canvas",DW="Change",RW="children",IW="konva",Y1="listening",r4="mouseenter",n4="mouseleave",i4="set",o4="Shape",zf=" ",s4="stage",ws="transform",jW="Stage",X1="visible",FW=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(zf);let MW=1,Ce=class Yy{constructor(t){this._id=MW++,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===ws||t===Go)&&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===ws||t===Go,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(zf);this.on(i,()=>{this._clearCache(t)}),this._attachedDepsListeners.set(t,!0)}return this._getCache(t,n)}_getCanvasCache(){return this._cache.get(ka)}_clearSelfAndDescendantCache(t){this._clearCache(t),t===Go&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(ka)){const{scene:t,filter:r,hit:n}=this._cache.get(ka);Fe.Util.releaseCanvas(t,r,n),this._cache.delete(ka)}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){Fe.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 Lf.SceneCanvas({pixelRatio:s,width:i,height:o}),d=new Lf.SceneCanvas({pixelRatio:s,width:0,height:0,willReadFrequently:!0}),p=new Lf.HitCanvas({pixelRatio:h,width:i,height:o}),g=f.getContext(),v=p.getContext();return p.isCache=!0,f.isCache=!0,this._cache.delete(ka),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(Vf),this._clearSelfAndDescendantCache(e4),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(ka,{scene:f,filter:d,hit:p,x:a,y:c}),this._requestDraw(),this}isCached(){return this._cache.has(ka)}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"){Fe.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){Fe.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(Uf),arguments.length===3)return this._delegate.apply(this,arguments);var n=t.split(zf),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(zf),i=n.length,o,s,a,c,l,u;if(this._cache&&this._cache.delete(Uf),!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=Fe.Util.cloneObject(o),o.currentTarget=s[a],n.call(s[a],o)})}remove(){return this.isDragging()&&this.stopDrag(),li.DD._dragElements.delete(this._id),this._remove(),this}_clearCaches(){this._clearSelfAndDescendantCache(Go),this._clearSelfAndDescendantCache(Vf),this._clearSelfAndDescendantCache(e4),this._clearSelfAndDescendantCache(s4),this._clearSelfAndDescendantCache(X1),this._clearSelfAndDescendantCache(Y1)}_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"+Fe.Util._capitalize(t);return Fe.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!==RW&&(n=i4+Fe.Util._capitalize(r),Fe.Util._isFunction(this[n])?this[n](t[r]):this._setAttr(r,t[r]))}),this}isListening(){return this._getCache(Y1,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(X1,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;li.DD._dragElements.forEach(s=>{s.dragStatus==="dragging"&&(s.node.nodeType==="Stage"||s.node.getLayer()===n)&&(i=!0)});var o=!r&&!Ca.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!==o4&&(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!==jW&&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(ws),this._clearSelfAndDescendantCache(Go)),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 Fe.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(ws);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(ws),this._clearSelfAndDescendantCache(Go),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 Fe.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 Fe.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 Fe.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 Fe.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 Fe.Util.warn("Node has no parent. zIndex parameter is ignored."),this;(t<0||t>=this.parent.children.length)&&Fe.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(Vf,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=Fe.Util.isObject(i)&&!Fe.Util._isPlainObject(i)&&!Fe.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(),Fe.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],Fe.Util.isValidSelector(o)||(Fe.Util.warn('Selector "'+o+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),Fe.Util.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),Fe.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(s4,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(Go,this._getAbsoluteTransform)}_getAbsoluteTransform(t){var r;if(t)return r=new Fe.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(Go)||new Fe.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(ws,this._getTransform)}_getTransform(){var t,r,n=this._cache.get(ws)||new Fe.Transform;n.reset();var i=this.x(),o=this.y(),s=Ca.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=Fe.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(IW)<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 Lf.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,Fe.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():Ca.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+DW,{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[i4+Fe.Util._capitalize(t)];return Fe.Util._isFunction(n)?n.call(this,r):this._setAttr(t,r),this}_requestDraw(){Ca.Konva.autoDrawEnabled&&(this.getLayer()||this.getStage())?.batchDraw()}_setAttr(t,r){var n=this.attrs[t];n===r&&!Fe.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===o4&&(r.target=this);var i=(t===r4||t===n4)&&(n&&(this===n||this.isAncestorOf&&this.isAncestorOf(n))||this.nodeType==="Stage"&&!n);if(!i){this._fire(t,r);var o=(t===r4||t===n4)&&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(Uf))!==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(Uf,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;li.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){li.DD._dragElements.has(this._id)||this._createDragElement(t);const n=li.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:Fe.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=li.DD._dragElements.get(this._id);r&&(r.dragStatus="stopped"),li.DD._endDragBefore(t),li.DD._endDragAfter(t)}setDraggable(t){this._setAttr("draggable",t),this._dragChange()}isDragging(){const t=li.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||Ca.Konva.dragButtons.indexOf(t.evt.button)>=0;if(n&&!this.isDragging()){var i=!1;li.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=li.DD._dragElements.get(this._id),n=r&&r.dragStatus==="dragging",i=r&&r.dragStatus==="ready";n?this.stopDrag():i&&li.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 Fe.Util.haveIntersection(n,this.getClientRect())}static create(t,r){return Fe.Util._isString(t)&&(t=JSON.parse(t)),this._createNode(t,r)}static _createNode(t,r){var n=Yy.prototype.getClassName.call(t),i=t.children,o,s,a;r&&(t.attrs.container=r),Ca.Konva[n]||(Fe.Util.warn('Can not find a node with class name "'+n+'". Fallback to "Shape".'),n="Shape");const c=Ca.Konva[n];if(o=new c(t.attrs),i)for(s=i.length,a=0;a<s;a++)o.add(Yy._createNode(i[a]));return o}};t4=vu.Node=Ce,Ce.prototype.nodeType="Node",Ce.prototype._attrsAffectingSize=[],Ce.prototype.eventListeners={},Ce.prototype.on.call(Ce.prototype,FW,function(){if(this._batchingTransformChange){this._needClearTransformCache=!0;return}this._clearCache(ws),this._clearSelfAndDescendantCache(Go)}),Ce.prototype.on.call(Ce.prototype,"visibleChange.konva",function(){this._clearSelfAndDescendantCache(X1)}),Ce.prototype.on.call(Ce.prototype,"listeningChange.konva",function(){this._clearSelfAndDescendantCache(Y1)}),Ce.prototype.on.call(Ce.prototype,"opacityChange.konva",function(){this._clearSelfAndDescendantCache(Vf)});const ur=yu.Factory.addGetterSetter;ur(Ce,"zIndex"),ur(Ce,"absolutePosition"),ur(Ce,"position"),ur(Ce,"x",0,(0,Rr.getNumberValidator)()),ur(Ce,"y",0,(0,Rr.getNumberValidator)()),ur(Ce,"globalCompositeOperation","source-over",(0,Rr.getStringValidator)()),ur(Ce,"opacity",1,(0,Rr.getNumberValidator)()),ur(Ce,"name","",(0,Rr.getStringValidator)()),ur(Ce,"id","",(0,Rr.getStringValidator)()),ur(Ce,"rotation",0,(0,Rr.getNumberValidator)()),yu.Factory.addComponentsGetterSetter(Ce,"scale",["x","y"]),ur(Ce,"scaleX",1,(0,Rr.getNumberValidator)()),ur(Ce,"scaleY",1,(0,Rr.getNumberValidator)()),yu.Factory.addComponentsGetterSetter(Ce,"skew",["x","y"]),ur(Ce,"skewX",0,(0,Rr.getNumberValidator)()),ur(Ce,"skewY",0,(0,Rr.getNumberValidator)()),yu.Factory.addComponentsGetterSetter(Ce,"offset",["x","y"]),ur(Ce,"offsetX",0,(0,Rr.getNumberValidator)()),ur(Ce,"offsetY",0,(0,Rr.getNumberValidator)()),ur(Ce,"dragDistance",null,(0,Rr.getNumberValidator)()),ur(Ce,"width",0,(0,Rr.getNumberValidator)()),ur(Ce,"height",0,(0,Rr.getNumberValidator)()),ur(Ce,"listening",!0,(0,Rr.getBooleanValidator)()),ur(Ce,"preventDefault",!0,(0,Rr.getBooleanValidator)()),ur(Ce,"filters",null,function(e){return this._filterUpToDate=!1,e}),ur(Ce,"visible",!0,(0,Rr.getBooleanValidator)()),ur(Ce,"transformsEnabled","all",(0,Rr.getStringValidator)()),ur(Ce,"size"),ur(Ce,"dragBoundFunc"),ur(Ce,"draggable",!1,(0,Rr.getBooleanValidator)()),yu.Factory.backCompat(Ce,{rotateDeg:"rotate",setRotationDeg:"setRotation",getRotationDeg:"getRotation"});const LW=le({__proto__:null,get Node(){return t4},default:vu},[vu]),Ir=ce(LW);var _u={};Object.defineProperty(_u,"__esModule",{value:!0});var a4=_u.Container=void 0;const _l=Ae,W1=Ir,Gf=Ie;class Pa extends W1.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=W1.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=W1.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)}}a4=_u.Container=Pa,_l.Factory.addComponentsGetterSetter(Pa,"clip",["x","y","width","height"]),_l.Factory.addGetterSetter(Pa,"clipX",void 0,(0,Gf.getNumberValidator)()),_l.Factory.addGetterSetter(Pa,"clipY",void 0,(0,Gf.getNumberValidator)()),_l.Factory.addGetterSetter(Pa,"clipWidth",void 0,(0,Gf.getNumberValidator)()),_l.Factory.addGetterSetter(Pa,"clipHeight",void 0,(0,Gf.getNumberValidator)()),_l.Factory.addGetterSetter(Pa,"clipFunc");const VW=le({__proto__:null,get Container(){return a4},default:_u},[_u]),Bf=ce(VW);var J1={},Yn={};Object.defineProperty(Yn,"__esModule",{value:!0});var l4=Yn.releaseCapture=f4=Yn.setPointerCapture=d4=Yn.hasPointerCapture=h4=Yn.createEvent=u4=Yn.getCapturedShape=void 0;const UW=Re,bu=new Map,c4=UW.Konva._global.PointerEvent!==void 0;function zW(e){return bu.get(e)}var u4=Yn.getCapturedShape=zW;function Q1(e){return{evt:e,pointerId:e.pointerId}}var h4=Yn.createEvent=Q1;function GW(e,t){return bu.get(e)===t}var d4=Yn.hasPointerCapture=GW;function BW(e,t){p4(e),t.getStage()&&(bu.set(e,t),c4&&t._fire("gotpointercapture",Q1(new PointerEvent("gotpointercapture"))))}var f4=Yn.setPointerCapture=BW;function p4(e,t){const r=bu.get(e);if(!r)return;const n=r.getStage();n&&n.content,bu.delete(e),c4&&r._fire("lostpointercapture",Q1(new PointerEvent("lostpointercapture")))}l4=Yn.releaseCapture=p4;const HW=le({__proto__:null,get createEvent(){return h4},default:Yn,get getCapturedShape(){return u4},get hasPointerCapture(){return d4},get releaseCapture(){return l4},get setPointerCapture(){return f4}},[Yn]),m4=ce(HW);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Stage=e.stages=void 0;const t=Pr,r=Ae,n=Bf,i=Re,o=Mf,s=K1,a=Re,c=m4;var l="Stage",u="string",h="px",f="mouseout",d="mouseleave",p="mouseover",g="mouseenter",v="mousemove",_="mousedown",y="mouseup",m="pointermove",x="pointerdown",N="pointerup",$="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"],[_,"_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"],[N,"_pointerup"],[$,"_pointercancel"],[k,"_lostpointercapture"]];const X={mouse:{[D]:f,[V]:d,[U]:p,[K]:g,[m]:v,[x]:_,[N]:y,[$]:"mousecancel",pointerclick:"click",pointerdblclick:"dblclick"},touch:{[D]:"touchout",[V]:"touchleave",[U]:"touchover",[K]:"touchenter",[m]:ft,[x]:it,[N]:nt,[$]:xt,pointerclick:"tap",pointerdblclick:"dbltap"},pointer:{[D]:D,[V]:V,[U]:U,[K]:K,[m]:m,[x]:x,[N]:N,[$]:$,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 E(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 b="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(E(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",()=>{E(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(b),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(W=>{const Q=c.getCapturedShape(W.id)||this.getIntersection(W),ot=W.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(W=>{const Q=c.getCapturedShape(W.id)||this.getIntersection(W);if(Q){if(Q.releaseCapture(W.id),mt[Q._id])return;mt[Q._id]=!0}const ot=W.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(N,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")})(J1);const qW=Hn(J1),KW=le({__proto__:null,default:qW},[J1]),YW=ce(KW);var wu={},Z1={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Shape=e.shapes=void 0;const t=Re,r=Pr,n=Ae,i=Ir,o=Ie,s=Re,a=m4;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 _(V){V.fill()}function y(V){V.stroke()}function m(){this._clearCache(c)}function x(){this._clearCache(l)}function N(){this._clearCache(u)}function $(){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,E=X+C*2,b=O+C*2,P={width:E,height:b,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 E=this.getAbsoluteTransform(K).getMatrix();return nt.transform(E[0],E[1],E[2],E[3],E[4],E[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 b=this.getAbsoluteTransform(K).getMatrix();X.transform(b[0],b[1],b[2],b[3],b[4],b[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 b=this.getAbsoluteTransform(K).getMatrix();nt.transform(b[0],b[1],b[2],b[3],b[4],b[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(E){r.Util.error("Unable to draw hit graph from cached scene canvas. "+E.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=_,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",N),D.prototype.on.call(D.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",$),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 XW=Hn(Z1),WW=le({__proto__:null,default:XW},[Z1]),Zr=ce(WW);Object.defineProperty(wu,"__esModule",{value:!0});var g4=wu.Layer=void 0;const Bo=Pr,ty=Bf,bl=Ir,ey=Ae,v4=Mf,JW=Ie,QW=Zr,ZW=Re;var tJ="#",eJ="beforeDraw",rJ="draw",y4=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],nJ=y4.length;class wl extends ty.Container{constructor(t){super(t),this.canvas=new v4.SceneCanvas,this.hitCanvas=new v4.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(){bl.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=bl.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(bl.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(bl.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 bl.Node.prototype.remove.call(this),t&&t.parentNode&&Bo.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"&&Bo.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(),bl.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(){Bo.Util.warn('Can not change width of layer. Use "stage.width(value)" function instead.')}getHeight(){if(this.parent)return this.parent.height()}setHeight(){Bo.Util.warn('Can not change height of layer. Use "stage.height(value)" function instead.')}batchDraw(){return this._waitingForDraw||(this._waitingForDraw=!0,Bo.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<nJ;i++){const o=y4[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=Bo.Util._rgbToHex(n[0],n[1],n[2]),s=QW.shapes[tJ+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(eJ,{node:this}),this.clearBeforeDraw()&&i.getContext().clear(),ty.Container.prototype.drawScene.call(this,i,r),this._fire(rJ,{node:this}),this}drawHit(t,r){var n=this.getLayer(),i=t||n&&n.hitCanvas;return n&&n.clearBeforeDraw()&&n.getHitCanvas().getContext().clear(),ty.Container.prototype.drawHit.call(this,i,r),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(t){Bo.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(t)}getHitGraphEnabled(t){return Bo.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 Bo.Util.releaseCanvas(this.getNativeCanvasElement(),this.getHitCanvas()._canvas),super.destroy()}}g4=wu.Layer=wl,wl.prototype.nodeType="Layer",(0,ZW._registerNode)(wl),ey.Factory.addGetterSetter(wl,"imageSmoothingEnabled",!0),ey.Factory.addGetterSetter(wl,"clearBeforeDraw",!0),ey.Factory.addGetterSetter(wl,"hitGraphEnabled",!0,(0,JW.getBooleanValidator)());const iJ=le({__proto__:null,get Layer(){return g4},default:wu},[wu]),_4=ce(iJ);var xu={};Object.defineProperty(xu,"__esModule",{value:!0});var b4=xu.FastLayer=void 0;const oJ=Pr,sJ=_4,aJ=Re;class ry extends sJ.Layer{constructor(t){super(t),this.listening(!1),oJ.Util.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}}b4=xu.FastLayer=ry,ry.prototype.nodeType="FastLayer",(0,aJ._registerNode)(ry);const lJ=le({__proto__:null,get FastLayer(){return b4},default:xu},[xu]),cJ=ce(lJ);var Su={};Object.defineProperty(Su,"__esModule",{value:!0});var w4=Su.Group=void 0;const uJ=Pr,hJ=Bf,dJ=Re;class ny extends hJ.Container{_validateAdd(t){var r=t.getType();r!=="Group"&&r!=="Shape"&&uJ.Util.throw("You may only add groups and shapes to groups.")}}w4=Su.Group=ny,ny.prototype.nodeType="Group",(0,dJ._registerNode)(ny);const fJ=le({__proto__:null,get Group(){return w4},default:Su},[Su]),iy=ce(fJ);var $u={};Object.defineProperty($u,"__esModule",{value:!0});var x4=$u.Animation=void 0;const oy=Re,S4=Pr,sy=function(){return oy.glob.performance&&oy.glob.performance.now?function(){return oy.glob.performance.now()}:function(){return new Date().getTime()}}();class to{constructor(t,r){this.id=to.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:sy(),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=to.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=sy(),to._addAnimation(this),this}stop(){return to._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(sy());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=to;t.animations.length?(t._runFrames(),S4.Util.requestAnimFrame(t._animationLoop)):t.animRunning=!1}static _handleAnimation(){this.animRunning||(this.animRunning=!0,S4.Util.requestAnimFrame(this._animationLoop))}}x4=$u.Animation=to,to.animations=[],to.animIdCounter=0,to.animRunning=!1;const pJ=le({__proto__:null,get Animation(){return x4},default:$u},[$u]),ay=ce(pJ);var ly={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Easings=e.Tween=void 0;const t=Pr,r=ay,n=Ir,i=Re;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,_,y,m,x){this.prop=p,this.propFunc=g,this.begin=_,this._pos=_,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,_=v._id,y,m=p.easing||e.Easings.Linear,x=!!p.yoyo,N;typeof p.duration>"u"?y=.3:p.duration===0?y=.001:y=p.duration,this.node=v,this._id=l++;var $=v.getLayer()||(v instanceof i.Konva.Stage?v.getLayers():null);$||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()},$),this.tween=new h(N,function(k){g._tweenFunc(k)},m,0,1,y*1e3,x),this._addListeners(),f.attrs[_]||(f.attrs[_]={}),f.attrs[_][this._id]||(f.attrs[_][this._id]={}),f.tweens[_]||(f.tweens[_]={});for(N in p)o[N]===void 0&&this._addAttr(N,p[N]);this.reset(),this.onFinish=p.onFinish,this.onReset=p.onReset,this.onUpdate=p.onUpdate}_addAttr(p,g){var v=this.node,_=v._id,y,m,x,N,$,k,D,V;if(x=f.tweens[_][p],x&&delete f.attrs[_][x][p],y=v.getAttr(p),t.Util._isArray(g))if(m=[],$=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(N=0;N<$;N++)if(N%2===0)m.push(g[N]-y[N]);else{var U=t.Util.colorToRGBA(y[N]);V=t.Util.colorToRGBA(g[N]),y[N]=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(N=0;N<$;N++)m.push(g[N]-y[N]);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[_][this._id][p]={start:y,diff:m,end:g,trueEnd:k,trueStart:D},f.tweens[_][p]=this._id}_tweenFunc(p){var g=this.node,v=f.attrs[g._id][this._id],_,y,m,x,N,$,k,D;for(_ in v){if(y=v[_],m=y.start,x=y.diff,D=y.end,t.Util._isArray(m))if(N=[],k=Math.max(m.length,D.length),_.indexOf("fill")===0)for($=0;$<k;$++)$%2===0?N.push((m[$]||0)+x[$]*p):N.push("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)+")");else for($=0;$<k;$++)N.push((m[$]||0)+x[$]*p);else u.indexOf(_)!==-1?N="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)+")":N=m+x*p;g.setAttr(_,N)}}_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],_;this.pause();for(_ in v)delete f.tweens[p][_];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 _=1.70158;return g*(d/=v)*d*((_+1)*d-_)+p},BackEaseOut(d,p,g,v){var _=1.70158;return g*((d=d/v-1)*d*((_+1)*d+_)+1)+p},BackEaseInOut(d,p,g,v){var _=1.70158;return(d/=v/2)<1?g/2*(d*d*(((_*=1.525)+1)*d-_))+p:g/2*((d-=2)*d*(((_*=1.525)+1)*d+_)+2)+p},ElasticEaseIn(d,p,g,v,_,y){var m=0;return d===0?p:(d/=v)===1?p+g:(y||(y=v*.3),!_||_<Math.abs(g)?(_=g,m=y/4):m=y/(2*Math.PI)*Math.asin(g/_),-(_*Math.pow(2,10*(d-=1))*Math.sin((d*v-m)*(2*Math.PI)/y))+p)},ElasticEaseOut(d,p,g,v,_,y){var m=0;return d===0?p:(d/=v)===1?p+g:(y||(y=v*.3),!_||_<Math.abs(g)?(_=g,m=y/4):m=y/(2*Math.PI)*Math.asin(g/_),_*Math.pow(2,-10*d)*Math.sin((d*v-m)*(2*Math.PI)/y)+g+p)},ElasticEaseInOut(d,p,g,v,_,y){var m=0;return d===0?p:(d/=v/2)===2?p+g:(y||(y=v*(.3*1.5)),!_||_<Math.abs(g)?(_=g,m=y/4):m=y/(2*Math.PI)*Math.asin(g/_),d<1?-.5*(_*Math.pow(2,10*(d-=1))*Math.sin((d*v-m)*(2*Math.PI)/y))+p:_*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)<1/2.75?g*(7.5625*d*d)+p:d<2/2.75?g*(7.5625*(d-=1.5/2.75)*d+.75)+p:d<2.5/2.75?g*(7.5625*(d-=2.25/2.75)*d+.9375)+p:g*(7.5625*(d-=2.625/2.75)*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}}})(ly);const mJ=Hn(ly),gJ=le({__proto__:null,default:mJ},[ly]),vJ=ce(gJ);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Konva=void 0;const t=Re,r=Pr,n=Ir,i=Bf,o=YW,s=_4,a=cJ,c=iy,l=K1,u=Zr,h=ay,f=vJ,d=YC,p=Mf;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})(z1);const yJ=Hn(z1),_J=le({__proto__:null,default:yJ},[z1]),bJ=ce(_J);var Eu={};Object.defineProperty(Eu,"__esModule",{value:!0});var $4=Eu.Arc=void 0;const Hf=Ae,wJ=Zr,E4=Re,qf=Ie,xJ=Re;class Ho extends wJ.Shape{_sceneFunc(t){var r=E4.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=E4.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}}}$4=Eu.Arc=Ho,Ho.prototype._centroid=!0,Ho.prototype.className="Arc",Ho.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,xJ._registerNode)(Ho),Hf.Factory.addGetterSetter(Ho,"innerRadius",0,(0,qf.getNumberValidator)()),Hf.Factory.addGetterSetter(Ho,"outerRadius",0,(0,qf.getNumberValidator)()),Hf.Factory.addGetterSetter(Ho,"angle",0,(0,qf.getNumberValidator)()),Hf.Factory.addGetterSetter(Ho,"clockwise",!1,(0,qf.getBooleanValidator)());const SJ=le({__proto__:null,get Arc(){return $4},default:Eu},[Eu]),$J=ce(SJ);var Cu={},ku={};Object.defineProperty(ku,"__esModule",{value:!0});var C4=ku.Line=void 0;const Kf=Ae,EJ=Zr,k4=Ie,CJ=Re;function cy(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=cy(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 xs extends EJ.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=cy(t[r-2],t[r-1],t[0],t[1],t[2],t[3],n),o=cy(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}}}C4=ku.Line=xs,xs.prototype.className="Line",xs.prototype._attrsAffectingSize=["points","bezier","tension"],(0,CJ._registerNode)(xs),Kf.Factory.addGetterSetter(xs,"closed",!1),Kf.Factory.addGetterSetter(xs,"bezier",!1),Kf.Factory.addGetterSetter(xs,"tension",0,(0,k4.getNumberValidator)()),Kf.Factory.addGetterSetter(xs,"points",[],(0,k4.getNumberArrayValidator)());const kJ=le({__proto__:null,get Line(){return C4},default:ku},[ku]),T4=ce(kJ);var Pu={},uy={};(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),_=g/d,y=c+v,m=_-v*v,x=y*y+m>0?Math.sqrt(y*y+m):0,N=v*v+m>0?Math.sqrt(v*v+m):0,$=v+Math.sqrt(v*v+m)!==0?m*Math.log(Math.abs((y+x)/(v+N))):0;return Math.sqrt(d)/2*(y*x-v*N+$)};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})(uy);const PJ=Hn(uy),TJ=le({__proto__:null,default:PJ},[uy]),OJ=ce(TJ);Object.defineProperty(Pu,"__esModule",{value:!0});var O4=Pu.Path=void 0;const NJ=Ae,AJ=Zr,DJ=Re,xl=OJ;class qr extends AJ.Shape{constructor(t){super(t),this.dataArray=[],this.pathLength=0,this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute()})}_readDataAttribute(){this.dataArray=qr.parsePathData(this.data()),this.pathLength=qr.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,_=l>u?u/l:1;t.translate(a,c),t.rotate(d),t.scale(v,_),t.arc(0,0,g,h,h+f,1-p),t.scale(1/v,1/_),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=qr.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=qr.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=qr.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 qr.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 qr.getPointOnLine(t,s.start.x,s.start.y,a[0],a[1]);case"C":return qr.getPointOnCubicBezier((0,xl.t2length)(t,qr.getPathLength(r),g=>(0,xl.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 qr.getPointOnQuadraticBezier((0,xl.t2length)(t,qr.getPathLength(r),g=>(0,xl.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,qr.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),_=Math.sqrt(t*t-v*v);l=Math.sqrt(_*_/(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 _=parseFloat(a[g]);isNaN(_)?p.push(0):p.push(_)}for(;p.length>0&&!isNaN(p[0]);){var y="",m=[],x=c,N=l,$,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,$=s[s.length-1],$.command==="C"&&(k=c+(c-$.points[2]),D=l+(l-$.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,$=s[s.length-1],$.command==="C"&&(k=c+(c-$.points[2]),D=l+(l-$.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,$=s[s.length-1],$.command==="Q"&&(k=c+(c-$.points[0]),D=l+(l-$.points[1])),c=p.shift(),l=p.shift(),y="Q",m.push(k,D,c,l);break;case"t":k=c,D=l,$=s[s.length-1],$.command==="Q"&&(k=c+(c-$.points[0]),D=l+(l-$.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:N},pathLength:this.calcLength(x,N,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=qr;switch(n){case"L":return l.getLineLength(t,r,i[0],i[1]);case"C":return(0,xl.getCubicArcLength)([t,i[0],i[2],i[4]],[r,i[1],i[3],i[5]],1);case"Q":return(0,xl.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,_=(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))},N=function(U,K){return(U[0]*K[1]<U[1]*K[0]?-1:1)*Math.acos(x(U,K))},$=N([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=N(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),[_,y,a,c,$,V,u,s]}}O4=Pu.Path=qr,qr.prototype.className="Path",qr.prototype._attrsAffectingSize=["data"],(0,DJ._registerNode)(qr),NJ.Factory.addGetterSetter(qr,"data");const RJ=le({__proto__:null,get Path(){return O4},default:Pu},[Pu]),hy=ce(RJ);Object.defineProperty(Cu,"__esModule",{value:!0});var N4=Cu.Arrow=void 0;const Yf=Ae,IJ=T4,A4=Ie,jJ=Re,D4=hy;class Ta extends IJ.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=D4.Path.calcLength(i[i.length-4],i[i.length-3],"C",f),p=D4.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}}}N4=Cu.Arrow=Ta,Ta.prototype.className="Arrow",(0,jJ._registerNode)(Ta),Yf.Factory.addGetterSetter(Ta,"pointerLength",10,(0,A4.getNumberValidator)()),Yf.Factory.addGetterSetter(Ta,"pointerWidth",10,(0,A4.getNumberValidator)()),Yf.Factory.addGetterSetter(Ta,"pointerAtBeginning",!1),Yf.Factory.addGetterSetter(Ta,"pointerAtEnding",!0);const FJ=le({__proto__:null,get Arrow(){return N4},default:Cu},[Cu]),MJ=ce(FJ);var Tu={};Object.defineProperty(Tu,"__esModule",{value:!0});var R4=Tu.Circle=void 0;const LJ=Ae,VJ=Zr,UJ=Ie,zJ=Re;class Sl extends VJ.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)}}R4=Tu.Circle=Sl,Sl.prototype._centroid=!0,Sl.prototype.className="Circle",Sl.prototype._attrsAffectingSize=["radius"],(0,zJ._registerNode)(Sl),LJ.Factory.addGetterSetter(Sl,"radius",0,(0,UJ.getNumberValidator)());const GJ=le({__proto__:null,get Circle(){return R4},default:Tu},[Tu]),BJ=ce(GJ);var Ou={};Object.defineProperty(Ou,"__esModule",{value:!0});var I4=Ou.Ellipse=void 0;const dy=Ae,HJ=Zr,j4=Ie,qJ=Re;class Ss extends HJ.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)}}I4=Ou.Ellipse=Ss,Ss.prototype.className="Ellipse",Ss.prototype._centroid=!0,Ss.prototype._attrsAffectingSize=["radiusX","radiusY"],(0,qJ._registerNode)(Ss),dy.Factory.addComponentsGetterSetter(Ss,"radius",["x","y"]),dy.Factory.addGetterSetter(Ss,"radiusX",0,(0,j4.getNumberValidator)()),dy.Factory.addGetterSetter(Ss,"radiusY",0,(0,j4.getNumberValidator)());const KJ=le({__proto__:null,get Ellipse(){return I4},default:Ou},[Ou]),YJ=ce(KJ);var Nu={};Object.defineProperty(Nu,"__esModule",{value:!0});var F4=Nu.Image=void 0;const fy=Pr,Oa=Ae,XJ=Zr,WJ=Re,Au=Ie;let eo=class GP extends XJ.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?fy.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?fy.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=fy.Util.createImageElement();i.onload=function(){var o=new GP({image:i});r(o)},i.onerror=n,i.crossOrigin="Anonymous",i.src=t}};F4=Nu.Image=eo,eo.prototype.className="Image",(0,WJ._registerNode)(eo),Oa.Factory.addGetterSetter(eo,"cornerRadius",0,(0,Au.getNumberOrArrayOfNumbersValidator)(4)),Oa.Factory.addGetterSetter(eo,"image"),Oa.Factory.addComponentsGetterSetter(eo,"crop",["x","y","width","height"]),Oa.Factory.addGetterSetter(eo,"cropX",0,(0,Au.getNumberValidator)()),Oa.Factory.addGetterSetter(eo,"cropY",0,(0,Au.getNumberValidator)()),Oa.Factory.addGetterSetter(eo,"cropWidth",0,(0,Au.getNumberValidator)()),Oa.Factory.addGetterSetter(eo,"cropHeight",0,(0,Au.getNumberValidator)());const JJ=le({__proto__:null,get Image(){return F4},default:Nu},[Nu]),QJ=ce(JJ);var Na={};Object.defineProperty(Na,"__esModule",{value:!0});var M4=Na.Tag=U4=Na.Label=void 0;const Xf=Ae,ZJ=Zr,tQ=iy,py=Ie,L4=Re;var V4=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height","pointerDirection","pointerWidth","pointerHeight"],eQ="Change.konva",rQ="none",my="up",gy="right",vy="down",yy="left",nQ=V4.length;class _y extends tQ.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<nQ;n++)t.on(V4[n]+eQ,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 my:a=n/2,c=-1*l;break;case gy:a=n+s,c=i/2;break;case vy:a=n/2,c=i+l;break;case yy: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 U4=Na.Label=_y;_y.prototype.className="Label",(0,L4._registerNode)(_y);class Aa extends ZJ.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===my&&(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===gy&&(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===vy&&(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===yy&&(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===my?(r-=i,a+=i):o===vy?a+=i:o===yy?(t-=n*1.5,s+=n):o===gy&&(s+=n*1.5),{x:t,y:r,width:s,height:a}}}M4=Na.Tag=Aa,Aa.prototype.className="Tag",(0,L4._registerNode)(Aa),Xf.Factory.addGetterSetter(Aa,"pointerDirection",rQ),Xf.Factory.addGetterSetter(Aa,"pointerWidth",0,(0,py.getNumberValidator)()),Xf.Factory.addGetterSetter(Aa,"pointerHeight",0,(0,py.getNumberValidator)()),Xf.Factory.addGetterSetter(Aa,"cornerRadius",0,(0,py.getNumberOrArrayOfNumbersValidator)(4));const iQ=le({__proto__:null,get Label(){return U4},get Tag(){return M4},default:Na},[Na]),oQ=ce(iQ);var Du={};Object.defineProperty(Du,"__esModule",{value:!0});var z4=Du.Rect=void 0;const sQ=Ae,aQ=Zr,lQ=Re,cQ=Pr,uQ=Ie;class Wf extends aQ.Shape{_sceneFunc(t){var r=this.cornerRadius(),n=this.width(),i=this.height();t.beginPath(),r?cQ.Util.drawRoundedRectPath(t,n,i,r):t.rect(0,0,n,i),t.closePath(),t.fillStrokeShape(this)}}z4=Du.Rect=Wf,Wf.prototype.className="Rect",(0,lQ._registerNode)(Wf),sQ.Factory.addGetterSetter(Wf,"cornerRadius",0,(0,uQ.getNumberOrArrayOfNumbersValidator)(4));const hQ=le({__proto__:null,get Rect(){return z4},default:Du},[Du]),G4=ce(hQ);var Ru={};Object.defineProperty(Ru,"__esModule",{value:!0});var B4=Ru.RegularPolygon=void 0;const H4=Ae,dQ=Zr,q4=Ie,fQ=Re;class Da extends dQ.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)}}B4=Ru.RegularPolygon=Da,Da.prototype.className="RegularPolygon",Da.prototype._centroid=!0,Da.prototype._attrsAffectingSize=["radius"],(0,fQ._registerNode)(Da),H4.Factory.addGetterSetter(Da,"radius",0,(0,q4.getNumberValidator)()),H4.Factory.addGetterSetter(Da,"sides",0,(0,q4.getNumberValidator)());const pQ=le({__proto__:null,get RegularPolygon(){return B4},default:Ru},[Ru]),mQ=ce(pQ);var Iu={};Object.defineProperty(Iu,"__esModule",{value:!0});var K4=Iu.Ring=void 0;const Y4=Ae,gQ=Zr,X4=Ie,vQ=Re;var W4=Math.PI*2;class Ra extends gQ.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.innerRadius(),0,W4,!1),t.moveTo(this.outerRadius(),0),t.arc(0,0,this.outerRadius(),W4,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)}}K4=Iu.Ring=Ra,Ra.prototype.className="Ring",Ra.prototype._centroid=!0,Ra.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,vQ._registerNode)(Ra),Y4.Factory.addGetterSetter(Ra,"innerRadius",0,(0,X4.getNumberValidator)()),Y4.Factory.addGetterSetter(Ra,"outerRadius",0,(0,X4.getNumberValidator)());const yQ=le({__proto__:null,get Ring(){return K4},default:Iu},[Iu]),_Q=ce(yQ);var ju={};Object.defineProperty(ju,"__esModule",{value:!0});var J4=ju.Sprite=void 0;const Ia=Ae,bQ=Zr,wQ=ay,Q4=Ie,xQ=Re;class ro extends bQ.Shape{constructor(t){super(t),this._updated=!0,this.anim=new wQ.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)}}J4=ju.Sprite=ro,ro.prototype.className="Sprite",(0,xQ._registerNode)(ro),Ia.Factory.addGetterSetter(ro,"animation"),Ia.Factory.addGetterSetter(ro,"animations"),Ia.Factory.addGetterSetter(ro,"frameOffsets"),Ia.Factory.addGetterSetter(ro,"image"),Ia.Factory.addGetterSetter(ro,"frameIndex",0,(0,Q4.getNumberValidator)()),Ia.Factory.addGetterSetter(ro,"frameRate",17,(0,Q4.getNumberValidator)()),Ia.Factory.backCompat(ro,{index:"frameIndex",getIndex:"getFrameIndex",setIndex:"setFrameIndex"});const SQ=le({__proto__:null,get Sprite(){return J4},default:ju},[ju]),$Q=ce(SQ);var Fu={};Object.defineProperty(Fu,"__esModule",{value:!0});var Z4=Fu.Star=void 0;const by=Ae,EQ=Zr,wy=Ie,CQ=Re;class $s extends EQ.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)}}Z4=Fu.Star=$s,$s.prototype.className="Star",$s.prototype._centroid=!0,$s.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,CQ._registerNode)($s),by.Factory.addGetterSetter($s,"numPoints",5,(0,wy.getNumberValidator)()),by.Factory.addGetterSetter($s,"innerRadius",0,(0,wy.getNumberValidator)()),by.Factory.addGetterSetter($s,"outerRadius",0,(0,wy.getNumberValidator)());const kQ=le({__proto__:null,get Star(){return Z4},default:Fu},[Fu]),PQ=ce(kQ);var ja={};Object.defineProperty(ja,"__esModule",{value:!0});var tk=ja.Text=rk=ja.stringToArray=void 0;const xy=Pr,dn=Ae,TQ=Zr,Es=Ie,OQ=Re;function ek(e){return Array.from(e)}var rk=ja.stringToArray=ek,$l="auto",NQ="center",nk="inherit",Mu="justify",AQ="Change.konva",DQ="2d",ik="-",ok="left",RQ="text",IQ="Text",jQ="top",FQ="bottom",sk="middle",ak="normal",MQ="px ",Jf=" ",LQ="right",lk="rtl",VQ="word",UQ="char",ck="none",Sy="…",uk=["direction","fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],zQ=uk.length;function GQ(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 $y;function Ey(){return $y||($y=xy.Util.createCanvasElement().getContext(DQ),$y)}function BQ(e){e.fillText(this._partialText,this._partialTextX,this._partialTextY)}function HQ(e){e.setAttr("miterLimit",2),e.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function qQ(e){return e=e||{},!e.fillLinearGradientColorStops&&!e.fillRadialGradientColorStops&&!e.fillPatternImage&&(e.fill=e.fill||"black"),e}class Or extends TQ.Shape{constructor(t){super(qQ(t)),this._partialTextX=0,this._partialTextY=0;for(var r=0;r<zQ;r++)this.on(uk[r]+AQ,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,_;c=c===nk?t.direction:c;var y=0,y=s/2,m=0,x=0;for(c===lk&&t.setAttr("direction",c),t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",sk),t.setAttr("textAlign",ok),a===sk?l=(this.getHeight()-n*s-i*2)/2:a===FQ&&(l=this.getHeight()-n*s-i*2),t.translate(i,l+i),_=0;_<n;_++){var m=0,x=0,N=r[_],$=N.text,k=N.width,D=N.lastInParagraph,V,U,K;if(t.save(),u===LQ?m+=h-k-i*2:u===NQ&&(m+=(h-k-i*2)/2),g){t.save(),t.beginPath(),t.moveTo(m,y+x+Math.round(o/2)),V=$.split(" ").length-1,U=V===0,K=u===Mu&&!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=$.split(" ").length-1,U=V===0,K=u===Mu&&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!==lk&&(f!==0||u===Mu)){V=$.split(" ").length-1;for(var Y=ek($),it=0;it<Y.length;it++){var nt=Y[it];nt===" "&&!D&&u===Mu&&(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=$,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=xy.Util._isString(t)?t:t==null?"":t+"";return this._setAttr(RQ,r),this}getWidth(){var t=this.attrs.width===$l||this.attrs.width===void 0;return t?this.getTextWidth()+this.padding()*2:this.attrs.width}getHeight(){var t=this.attrs.height===$l||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 xy.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=Ey(),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()+Jf+this.fontVariant()+Jf+(this.fontSize()+MQ)+GQ(this.fontFamily())}_addTextLine(t){this.align()===Mu&&(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 Ey().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!==$l&&o!==void 0,c=s!==$l&&s!==void 0,l=this.padding(),u=o-l*2,h=s-l*2,f=0,d=this.wrap(),p=d!==ck,g=d!==UQ&&p,v=this.ellipsis();this.textArr=[],Ey().font=this._getContextFont();for(var _=v?this._getTextWidth(Sy):0,y=0,m=t.length;y<m;++y){var x=t[y],N=this._getTextWidth(x);if(a&&N>u)for(;x.length>0;){for(var $=0,k=x.length,D="",V=0;$<k;){var U=$+k>>>1,K=x.slice(0,U+1),Y=this._getTextWidth(K)+_;Y<=u?($=U+1,D=K,V=Y):k=U}if(D){if(g){var it,nt=x[D.length],ft=nt===Jf||nt===ik;ft&&V<=u?it=D.length:it=Math.max(D.lastIndexOf(Jf),D.lastIndexOf(ik))+1,it>0&&($=it,D=D.slice(0,$),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($),x=x.trimLeft(),x.length>0&&(N=this._getTextWidth(x),N<=u)){this._addTextLine(x),f+=i,n=Math.max(n,N);break}}else break}else this._addTextLine(x),f+=i,n=Math.max(n,N),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!==$l&&i!==void 0,s=this.padding(),a=i-s*2,c=this.wrap(),l=c!==ck;return!l||o&&t+n>a}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,r=t!==$l&&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+Sy)<i;a||(s.text=s.text.slice(0,s.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(s.text+Sy)}}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()}}tk=ja.Text=Or,Or.prototype._fillFunc=BQ,Or.prototype._strokeFunc=HQ,Or.prototype.className=IQ,Or.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"],(0,OQ._registerNode)(Or),dn.Factory.overWriteSetter(Or,"width",(0,Es.getNumberOrAutoValidator)()),dn.Factory.overWriteSetter(Or,"height",(0,Es.getNumberOrAutoValidator)()),dn.Factory.addGetterSetter(Or,"direction",nk),dn.Factory.addGetterSetter(Or,"fontFamily","Arial"),dn.Factory.addGetterSetter(Or,"fontSize",12,(0,Es.getNumberValidator)()),dn.Factory.addGetterSetter(Or,"fontStyle",ak),dn.Factory.addGetterSetter(Or,"fontVariant",ak),dn.Factory.addGetterSetter(Or,"padding",0,(0,Es.getNumberValidator)()),dn.Factory.addGetterSetter(Or,"align",ok),dn.Factory.addGetterSetter(Or,"verticalAlign",jQ),dn.Factory.addGetterSetter(Or,"lineHeight",1,(0,Es.getNumberValidator)()),dn.Factory.addGetterSetter(Or,"wrap",VQ),dn.Factory.addGetterSetter(Or,"ellipsis",!1,(0,Es.getBooleanValidator)()),dn.Factory.addGetterSetter(Or,"letterSpacing",0,(0,Es.getNumberValidator)()),dn.Factory.addGetterSetter(Or,"text","",(0,Es.getStringValidator)()),dn.Factory.addGetterSetter(Or,"textDecoration","");const KQ=le({__proto__:null,get Text(){return tk},default:ja,get stringToArray(){return rk}},[ja]),hk=ce(KQ);var Lu={};Object.defineProperty(Lu,"__esModule",{value:!0});var dk=Lu.TextPath=void 0;const Cy=Pr,Ai=Ae,YQ=Zr,Vu=hy,ky=hk,fk=Ie,XQ=Re;var WQ="",pk="normal";function mk(e){e.fillText(this.partialText,0,0)}function gk(e){e.strokeText(this.partialText,0,0)}class Kr extends YQ.Shape{constructor(t){super(t),this.dummyCanvas=Cy.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 Vu.Path.getPathLength(this.dataArray)}_getPointAtLength(t){if(!this.attrs.data)return null;const r=this.pathLength;return t-1>r?null:Vu.Path.getPointAtLengthOfDataArray(t,this.dataArray)}_readDataAttribute(){this.dataArray=Vu.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 Cy.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 ky.Text.prototype.setText.call(this,t)}_getContextFont(){return ky.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,ky.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=Vu.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=Vu.Path.getPointOnLine(g+p/2,h.x,h.y,d.x,d.y),_=Math.atan2(d.y-h.y,d.x-h.x);this.glyphInfo.push({transposeX:v.x,transposeY:v.y,text:c[u],rotation:_,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 Cy.Util.releaseCanvas(this.dummyCanvas),super.destroy()}}dk=Lu.TextPath=Kr,Kr.prototype._fillFunc=mk,Kr.prototype._strokeFunc=gk,Kr.prototype._fillFuncHit=mk,Kr.prototype._strokeFuncHit=gk,Kr.prototype.className="TextPath",Kr.prototype._attrsAffectingSize=["text","fontSize","data"],(0,XQ._registerNode)(Kr),Ai.Factory.addGetterSetter(Kr,"data"),Ai.Factory.addGetterSetter(Kr,"fontFamily","Arial"),Ai.Factory.addGetterSetter(Kr,"fontSize",12,(0,fk.getNumberValidator)()),Ai.Factory.addGetterSetter(Kr,"fontStyle",pk),Ai.Factory.addGetterSetter(Kr,"align","left"),Ai.Factory.addGetterSetter(Kr,"letterSpacing",0,(0,fk.getNumberValidator)()),Ai.Factory.addGetterSetter(Kr,"textBaseline","middle"),Ai.Factory.addGetterSetter(Kr,"fontVariant",pk),Ai.Factory.addGetterSetter(Kr,"text",WQ),Ai.Factory.addGetterSetter(Kr,"textDecoration",null),Ai.Factory.addGetterSetter(Kr,"kerningFunc",null);const JQ=le({__proto__:null,get TextPath(){return dk},default:Lu},[Lu]),QQ=ce(JQ);var Uu={};Object.defineProperty(Uu,"__esModule",{value:!0});var vk=Uu.Transformer=void 0;const sr=Pr,Qe=Ae,yk=Ir,ZQ=Zr,tZ=G4,_k=iy,Di=Re,Cs=Ie,eZ=Re;var bk="tr-konva",rZ=["resizeEnabledChange","rotateAnchorOffsetChange","rotateEnabledChange","enabledAnchorsChange","anchorSizeChange","borderEnabledChange","borderStrokeChange","borderStrokeWidthChange","borderDashChange","anchorStrokeChange","anchorStrokeWidthChange","anchorFillChange","anchorCornerRadiusChange","ignoreStrokeChange","anchorStyleFuncChange"].map(e=>e+`.${bk}`).join(" "),wk="nodesRect",nZ=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange"],iZ={"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 oZ="ontouchstart"in Di.Konva._global;function sZ(e,t,r){if(e==="rotater")return r;t+=sr.Util.degToRad(iZ[e]||0);var n=(sr.Util.radToDeg(t)%360+360)%360;return sr.Util._inRange(n,315+22.5,360)||sr.Util._inRange(n,0,22.5)?"ns-resize":sr.Util._inRange(n,45-22.5,45+22.5)?"nesw-resize":sr.Util._inRange(n,90-22.5,90+22.5)?"ew-resize":sr.Util._inRange(n,135-22.5,135+22.5)?"nwse-resize":sr.Util._inRange(n,180-22.5,180+22.5)?"ns-resize":sr.Util._inRange(n,225-22.5,225+22.5)?"nesw-resize":sr.Util._inRange(n,270-22.5,270+22.5)?"ew-resize":sr.Util._inRange(n,315-22.5,315+22.5)?"nwse-resize":(sr.Util.error("Transformer has unknown angle for cursor detection: "+n),"pointer")}var Qf=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"],xk=1e8;function aZ(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 Sk(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 lZ(e,t){const r=aZ(e);return Sk(e,t,r)}function cZ(e,t,r){let n=t;for(let i=0;i<e.length;i++){const o=Di.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 He extends _k.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(rZ,this.update),this.getNode()&&this.update()}attachTo(t){return this.setNode(t),this}setNode(t){return sr.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 bk+this._id}setNodes(t=[]){this._nodes&&this._nodes.length&&this.detach();const r=t.filter(i=>i.isAncestorOf(this)?(sr.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(nZ.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(wk),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(wk,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=(Di.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 Sk(u,-Di.Konva.getAngle(r),{x:0,y:0})}__getNodeRect(){var t=this.getNode();if(!t)return{x:-xk,y:-xk,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 sr.Transform;n.rotate(-Di.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:Di.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(),Qf.forEach(t=>{this._createAnchor(t)}),this._createAnchor("rotater")}_createAnchor(t){var r=new tZ.Rect({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:t+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:oZ?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=Di.Konva.getAngle(this.rotation()),o=this.rotateAnchorCursor(),s=sZ(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 ZQ.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()*sr.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=Di.Konva.getAngle(this.rotation());const nt=f+it,ft=Di.Konva.getAngle(this.rotationSnapTolerance()),xt=cZ(this.rotationSnaps(),nt,ft)-h.rotation,_t=lZ(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,_=this.findOne(".top-left").y()>g.y?-1:1;r=i*this.cos*v,n=i*this.sin*_,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,_=this.findOne(".top-right").y()>g.y?-1:1;r=i*this.cos*v,n=i*this.sin*_,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,_=o.y()<g.y?-1:1;r=i*this.cos*v,n=i*this.sin*_,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,_=this.findOne(".bottom-right").y()<g.y?-1:1;r=i*this.cos*v,n=i*this.sin*_,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"),N=this.findOne(".bottom-right"),$=x.x(),k=x.y(),D=this.getWidth()-N.x(),V=this.getHeight()-N.y();N.move({x:-$,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:Di.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(sr.Util._inRange(t.width,-this.padding()*2-i,i)){this.update();return}if(sr.Util._inRange(t.height,-this.padding()*2-i,i)){this.update();return}const o=this.flipEnabled();var s=new sr.Transform;if(s.rotate(Di.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:sr.Util.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}const a=1e7,c=new sr.Transform;c.translate(n.x,n.y),c.rotate(n.rotation),c.scale(n.width/a,n.height/a);const l=new sr.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 sr.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(sr.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(sr.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()*sr.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=""),_k.Group.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return yk.Node.prototype.toObject.call(this)}clone(t){var r=yk.Node.prototype.clone.call(this,t);return r}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}}vk=Uu.Transformer=He;function uZ(e){return e instanceof Array||sr.Util.warn("enabledAnchors value should be an array"),e instanceof Array&&e.forEach(function(t){Qf.indexOf(t)===-1&&sr.Util.warn("Unknown anchor name: "+t+". Available names are: "+Qf.join(", "))}),e||[]}He.prototype.className="Transformer",(0,eZ._registerNode)(He),Qe.Factory.addGetterSetter(He,"enabledAnchors",Qf,uZ),Qe.Factory.addGetterSetter(He,"flipEnabled",!0,(0,Cs.getBooleanValidator)()),Qe.Factory.addGetterSetter(He,"resizeEnabled",!0),Qe.Factory.addGetterSetter(He,"anchorSize",10,(0,Cs.getNumberValidator)()),Qe.Factory.addGetterSetter(He,"rotateEnabled",!0),Qe.Factory.addGetterSetter(He,"rotationSnaps",[]),Qe.Factory.addGetterSetter(He,"rotateAnchorOffset",50,(0,Cs.getNumberValidator)()),Qe.Factory.addGetterSetter(He,"rotateAnchorCursor","crosshair"),Qe.Factory.addGetterSetter(He,"rotationSnapTolerance",5,(0,Cs.getNumberValidator)()),Qe.Factory.addGetterSetter(He,"borderEnabled",!0),Qe.Factory.addGetterSetter(He,"anchorStroke","rgb(0, 161, 255)"),Qe.Factory.addGetterSetter(He,"anchorStrokeWidth",1,(0,Cs.getNumberValidator)()),Qe.Factory.addGetterSetter(He,"anchorFill","white"),Qe.Factory.addGetterSetter(He,"anchorCornerRadius",0,(0,Cs.getNumberValidator)()),Qe.Factory.addGetterSetter(He,"borderStroke","rgb(0, 161, 255)"),Qe.Factory.addGetterSetter(He,"borderStrokeWidth",1,(0,Cs.getNumberValidator)()),Qe.Factory.addGetterSetter(He,"borderDash"),Qe.Factory.addGetterSetter(He,"keepRatio",!0),Qe.Factory.addGetterSetter(He,"shiftBehavior","default"),Qe.Factory.addGetterSetter(He,"centeredScaling",!1),Qe.Factory.addGetterSetter(He,"ignoreStroke",!1),Qe.Factory.addGetterSetter(He,"padding",0,(0,Cs.getNumberValidator)()),Qe.Factory.addGetterSetter(He,"node"),Qe.Factory.addGetterSetter(He,"nodes"),Qe.Factory.addGetterSetter(He,"boundBoxFunc"),Qe.Factory.addGetterSetter(He,"anchorDragBoundFunc"),Qe.Factory.addGetterSetter(He,"anchorStyleFunc"),Qe.Factory.addGetterSetter(He,"shouldOverdrawWholeArea",!1),Qe.Factory.addGetterSetter(He,"useSingleNodeRotation",!0),Qe.Factory.backCompat(He,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"});const hZ=le({__proto__:null,get Transformer(){return vk},default:Uu},[Uu]),dZ=ce(hZ);var zu={};Object.defineProperty(zu,"__esModule",{value:!0});var $k=zu.Wedge=void 0;const Zf=Ae,fZ=Zr,pZ=Re,Ek=Ie,mZ=Re;class qo extends fZ.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.radius(),0,pZ.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)}}$k=zu.Wedge=qo,qo.prototype.className="Wedge",qo.prototype._centroid=!0,qo.prototype._attrsAffectingSize=["radius"],(0,mZ._registerNode)(qo),Zf.Factory.addGetterSetter(qo,"radius",0,(0,Ek.getNumberValidator)()),Zf.Factory.addGetterSetter(qo,"angle",0,(0,Ek.getNumberValidator)()),Zf.Factory.addGetterSetter(qo,"clockwise",!1),Zf.Factory.backCompat(qo,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"});const gZ=le({__proto__:null,get Wedge(){return $k},default:zu},[zu]),vZ=ce(gZ);var Gu={};Object.defineProperty(Gu,"__esModule",{value:!0});var Ck=Gu.Blur=void 0;const kk=Ae,yZ=Ir,_Z=Ie;function Pk(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}var bZ=[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],wZ=[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 xZ(e,t){var r=e.data,n=e.width,i=e.height,o,s,a,c,l,u,h,f,d,p,g,v,_,y,m,x,N,$,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,E=bZ[t],b=wZ[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=N=$=k=f=d=p=g=0,v=xt*(D=r[u]),_=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,N+=V,$+=U,k+=K,X=X.next;for(O=yt,C=at,o=0;o<n;o++)r[u+3]=K=g*E>>b,K!==0?(K=255/K,r[u]=(f*E>>b)*K,r[u+1]=(d*E>>b)*K,r[u+2]=(p*E>>b)*K):r[u]=r[u+1]=r[u+2]=0,f-=v,d-=_,p-=y,g-=m,v-=O.r,_-=O.g,y-=O.b,m-=O.a,c=h+((c=o+t+1)<nt?c:nt)<<2,x+=O.r=r[c],N+=O.g=r[c+1],$+=O.b=r[c+2],k+=O.a=r[c+3],f+=x,d+=N,p+=$,g+=k,O=O.next,v+=D=C.r,_+=V=C.g,y+=U=C.b,m+=K=C.a,x-=D,N-=V,$-=U,k-=K,C=C.next,u+=4;h+=n}for(o=0;o<n;o++){for(N=$=k=x=d=p=g=f=0,u=o<<2,v=xt*(D=r[u]),_=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,N+=V,$+=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*E>>b,K>0?(K=255/K,r[c]=(f*E>>b)*K,r[c+1]=(d*E>>b)*K,r[c+2]=(p*E>>b)*K):r[c]=r[c+1]=r[c+2]=0,f-=v,d-=_,p-=y,g-=m,v-=O.r,_-=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+=N+=O.g=r[c+1],p+=$+=O.b=r[c+2],g+=k+=O.a=r[c+3],O=O.next,v+=D=C.r,_+=V=C.g,y+=U=C.b,m+=K=C.a,x-=D,N-=V,$-=U,k-=K,C=C.next,u+=n}}const SZ=function(e){var t=Math.round(this.blurRadius());t>0&&xZ(e,t)};Ck=Gu.Blur=SZ,kk.Factory.addGetterSetter(yZ.Node,"blurRadius",0,(0,_Z.getNumberValidator)(),kk.Factory.afterSetFilter);const $Z=le({__proto__:null,get Blur(){return Ck},default:Gu},[Gu]),EZ=ce($Z);var Bu={};Object.defineProperty(Bu,"__esModule",{value:!0});var Tk=Bu.Brighten=void 0;const Ok=Ae,CZ=Ir,kZ=Ie,PZ=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};Tk=Bu.Brighten=PZ,Ok.Factory.addGetterSetter(CZ.Node,"brightness",0,(0,kZ.getNumberValidator)(),Ok.Factory.afterSetFilter);const TZ=le({__proto__:null,get Brighten(){return Tk},default:Bu},[Bu]),OZ=ce(TZ);var Hu={};Object.defineProperty(Hu,"__esModule",{value:!0});var Nk=Hu.Contrast=void 0;const Ak=Ae,NZ=Ir,AZ=Ie,DZ=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};Nk=Hu.Contrast=DZ,Ak.Factory.addGetterSetter(NZ.Node,"contrast",0,(0,AZ.getNumberValidator)(),Ak.Factory.afterSetFilter);const RZ=le({__proto__:null,get Contrast(){return Nk},default:Hu},[Hu]),IZ=ce(RZ);var qu={};Object.defineProperty(qu,"__esModule",{value:!0});var Dk=qu.Emboss=void 0;const ks=Ae,tp=Ir,jZ=Pr,Rk=Ie,FZ=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:jZ.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,_=s;g+_<1&&(_=0),g+_>c&&(_=0);var y=p+(g-1+_)*4,m=a[v]-a[y],x=a[v+1]-a[y+1],N=a[v+2]-a[y+2],$=m,k=$>0?$:-$,D=x>0?x:-x,V=N>0?N:-N;if(D>k&&($=x),V>k&&($=N),$*=t,i){var U=a[v]+$,K=a[v+1]+$,Y=a[v+2]+$;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-$;it<0?it=0:it>255&&(it=255),a[v]=a[v+1]=a[v+2]=it}}while(--g)}while(--h)};Dk=qu.Emboss=FZ,ks.Factory.addGetterSetter(tp.Node,"embossStrength",.5,(0,Rk.getNumberValidator)(),ks.Factory.afterSetFilter),ks.Factory.addGetterSetter(tp.Node,"embossWhiteLevel",.5,(0,Rk.getNumberValidator)(),ks.Factory.afterSetFilter),ks.Factory.addGetterSetter(tp.Node,"embossDirection","top-left",null,ks.Factory.afterSetFilter),ks.Factory.addGetterSetter(tp.Node,"embossBlend",!1,null,ks.Factory.afterSetFilter);const MZ=le({__proto__:null,get Emboss(){return Dk},default:qu},[qu]),LZ=ce(MZ);var Ku={};Object.defineProperty(Ku,"__esModule",{value:!0});var Ik=Ku.Enhance=void 0;const jk=Ae,VZ=Ir,UZ=Ie;function Py(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 zZ=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,_,y,m,x,N,$;for(d>0?(g=i+d*(255-i),v=n-d*(n-0),y=a+d*(255-a),m=s-d*(s-0),N=u+d*(255-u),$=l-d*(l-0)):(p=(i+n)*.5,g=i+d*(i-p),v=n+d*(n-p),_=(a+s)*.5,y=a+d*(a-_),m=s+d*(s-_),x=(u+l)*.5,N=u+d*(u-x),$=l+d*(l-x)),f=0;f<r;f+=4)t[f+0]=Py(t[f+0],n,i,v,g),t[f+1]=Py(t[f+1],s,a,m,y),t[f+2]=Py(t[f+2],l,u,$,N)}};Ik=Ku.Enhance=zZ,jk.Factory.addGetterSetter(VZ.Node,"enhance",0,(0,UZ.getNumberValidator)(),jk.Factory.afterSetFilter);const GZ=le({__proto__:null,get Enhance(){return Ik},default:Ku},[Ku]),BZ=ce(GZ);var Yu={};Object.defineProperty(Yu,"__esModule",{value:!0});var Fk=Yu.Grayscale=void 0;const HZ=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};Fk=Yu.Grayscale=HZ;const qZ=le({__proto__:null,get Grayscale(){return Fk},default:Yu},[Yu]),KZ=ce(qZ);var Xu={};Object.defineProperty(Xu,"__esModule",{value:!0});var Mk=Xu.HSL=void 0;const El=Ae,Ty=Ir,Oy=Ie;El.Factory.addGetterSetter(Ty.Node,"hue",0,(0,Oy.getNumberValidator)(),El.Factory.afterSetFilter),El.Factory.addGetterSetter(Ty.Node,"saturation",0,(0,Oy.getNumberValidator)(),El.Factory.afterSetFilter),El.Factory.addGetterSetter(Ty.Node,"luminance",0,(0,Oy.getNumberValidator)(),El.Factory.afterSetFilter);const YZ=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,_=.587*n-.586*c-1.05*l,y=.114*n+.886*c-.2*l,m,x,N,$;for(a=0;a<r;a+=4)m=t[a+0],x=t[a+1],N=t[a+2],$=t[a+3],t[a+0]=u*m+h*x+f*N+s,t[a+1]=d*m+p*x+g*N+s,t[a+2]=v*m+_*x+y*N+s,t[a+3]=$};Mk=Xu.HSL=YZ;const XZ=le({__proto__:null,get HSL(){return Mk},default:Xu},[Xu]),WZ=ce(XZ);var Wu={};Object.defineProperty(Wu,"__esModule",{value:!0});var Lk=Wu.HSV=void 0;const Cl=Ae,Ny=Ir,Ay=Ie,JZ=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,_=.114*n+.886*a-.2*c,y,m,x,N;for(s=0;s<r;s+=4)y=t[s+0],m=t[s+1],x=t[s+2],N=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+_*x,t[s+3]=N};Lk=Wu.HSV=JZ,Cl.Factory.addGetterSetter(Ny.Node,"hue",0,(0,Ay.getNumberValidator)(),Cl.Factory.afterSetFilter),Cl.Factory.addGetterSetter(Ny.Node,"saturation",0,(0,Ay.getNumberValidator)(),Cl.Factory.afterSetFilter),Cl.Factory.addGetterSetter(Ny.Node,"value",0,(0,Ay.getNumberValidator)(),Cl.Factory.afterSetFilter);const QZ=le({__proto__:null,get HSV(){return Lk},default:Wu},[Wu]),ZZ=ce(QZ);var Ju={};Object.defineProperty(Ju,"__esModule",{value:!0});var Vk=Ju.Invert=void 0;const ttt=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]};Vk=Ju.Invert=ttt;const ett=le({__proto__:null,get Invert(){return Vk},default:Ju},[Ju]),rtt=ce(ett);var Qu={};Object.defineProperty(Qu,"__esModule",{value:!0});var Uk=Qu.Kaleidoscope=void 0;const ep=Ae,zk=Ir,Gk=Pr,Bk=Ie;var ntt=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,_=Math.sqrt(a*a+c*c);u=o-a,h=s-c,v=Math.sqrt(u*u+h*h),_=v>_?v:_;var y=s,m=o,x,N,$=360/m*Math.PI/180,k,D;for(N=0;N<m;N+=1)for(k=Math.sin(N*$),D=Math.cos(N*$),x=0;x<y;x+=1)u=Math.floor(a+_*x/y*D),h=Math.floor(c+_*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=(N+x*o)*4,i[l+0]=f,i[l+1]=d,i[l+2]=p,i[l+3]=g},itt=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,_=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,N=o,$,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,$=Math.sqrt(f*f+d*d)*x/m,k=(Math.atan2(d,f)*180/Math.PI+360+D)%360,k=k*N/360,V=Math.floor(k),U=Math.floor($),l=(U*o+V)*4,p=n[l+0],g=n[l+1],v=n[l+2],_=n[l+3],l=(h*o+u)*4,i[l+0]=p,i[l+1]=g,i[l+2]=v,i[l+3]=_};const ott=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=Gk.Util.createCanvasElement();v.width=t,v.height=r;var _=v.getContext("2d").getImageData(0,0,t,r);Gk.Util.releaseCanvas(v),ntt(e,_,{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,N=m,$=1;for(g+y>t&&(x=m,N=0,$=-1),i=0;i<r;i+=1)for(n=x;n!==N;n+=$)o=Math.round(n+g)%t,h=(t*i+o)*4,a=_.data[h+0],c=_.data[h+1],l=_.data[h+2],u=_.data[h+3],f=(t*i+n)*4,_.data[f+0]=a,_.data[f+1]=c,_.data[f+2]=l,_.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=_.data[h+0],c=_.data[h+1],l=_.data[h+2],u=_.data[h+3],f=(t*i+m*2-n-1)*4,_.data[f+0]=a,_.data[f+1]=c,_.data[f+2]=l,_.data[f+3]=u;m*=2}itt(_,e,{polarRotation:0})}};Uk=Qu.Kaleidoscope=ott,ep.Factory.addGetterSetter(zk.Node,"kaleidoscopePower",2,(0,Bk.getNumberValidator)(),ep.Factory.afterSetFilter),ep.Factory.addGetterSetter(zk.Node,"kaleidoscopeAngle",0,(0,Bk.getNumberValidator)(),ep.Factory.afterSetFilter);const stt=le({__proto__:null,get Kaleidoscope(){return Uk},default:Qu},[Qu]),att=ce(stt);var Zu={};Object.defineProperty(Zu,"__esModule",{value:!0});var Hk=Zu.Mask=void 0;const qk=Ae,ltt=Ir,ctt=Ie;function rp(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 th(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 utt(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 htt(e,t){var r=rp(e,0,0),n=rp(e,e.width-1,0),i=rp(e,0,e.height-1),o=rp(e,e.width-1,e.height-1),s=t||10;if(th(r,n)<s&&th(n,o)<s&&th(o,i)<s&&th(i,r)<s){for(var a=utt([n,r,o,i]),c=[],l=0;l<e.width*e.height;l++){var u=th(a,[e.data[l*4],e.data[l*4+1],e.data[l*4+2]]);c[l]=u<s?0:255}return c}}function dtt(e,t){for(var r=0;r<e.width*e.height;r++)e.data[4*r+3]=t[r]}function ftt(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===255*8?255:0}return s}function ptt(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>=255*4?255:0}return s}function mtt(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 gtt=function(e){var t=this.threshold(),r=htt(e,t);return r&&(r=ftt(r,e.width,e.height),r=ptt(r,e.width,e.height),r=mtt(r,e.width,e.height),dtt(e,r)),e};Hk=Zu.Mask=gtt,qk.Factory.addGetterSetter(ltt.Node,"threshold",0,(0,ctt.getNumberValidator)(),qk.Factory.afterSetFilter);const vtt=le({__proto__:null,get Mask(){return Hk},default:Zu},[Zu]),ytt=ce(vtt);var eh={};Object.defineProperty(eh,"__esModule",{value:!0});var Kk=eh.Noise=void 0;const Yk=Ae,_tt=Ir,btt=Ie,wtt=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()};Kk=eh.Noise=wtt,Yk.Factory.addGetterSetter(_tt.Node,"noise",.2,(0,btt.getNumberValidator)(),Yk.Factory.afterSetFilter);const xtt=le({__proto__:null,get Noise(){return Kk},default:eh},[eh]),Stt=ce(xtt);var rh={};Object.defineProperty(rh,"__esModule",{value:!0});var Xk=rh.Pixelate=void 0;const Wk=Ae,$tt=Pr,Ett=Ir,Ctt=Ie,ktt=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,_,y,m,x=e.data;if(t<=0){$tt.Util.error("pixelSize value can not be <= 0");return}for(_=0;_<h;_+=1)for(y=0;y<f;y+=1){for(a=0,c=0,l=0,u=0,d=_*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)}};Xk=rh.Pixelate=ktt,Wk.Factory.addGetterSetter(Ett.Node,"pixelSize",8,(0,Ctt.getNumberValidator)(),Wk.Factory.afterSetFilter);const Ptt=le({__proto__:null,get Pixelate(){return Xk},default:rh},[rh]),Ttt=ce(Ptt);var nh={};Object.defineProperty(nh,"__esModule",{value:!0});var Jk=nh.Posterize=void 0;const Qk=Ae,Ott=Ir,Ntt=Ie,Att=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};Jk=nh.Posterize=Att,Qk.Factory.addGetterSetter(Ott.Node,"levels",.5,(0,Ntt.getNumberValidator)(),Qk.Factory.afterSetFilter);const Dtt=le({__proto__:null,get Posterize(){return Jk},default:nh},[nh]),Rtt=ce(Dtt);var ih={};Object.defineProperty(ih,"__esModule",{value:!0});var Zk=ih.RGB=void 0;const np=Ae,Dy=Ir,Itt=Ie,jtt=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]};Zk=ih.RGB=jtt,np.Factory.addGetterSetter(Dy.Node,"red",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),np.Factory.addGetterSetter(Dy.Node,"green",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),np.Factory.addGetterSetter(Dy.Node,"blue",0,Itt.RGBComponent,np.Factory.afterSetFilter);const Ftt=le({__proto__:null,get RGB(){return Zk},default:ih},[ih]),Mtt=ce(Ftt);var oh={};Object.defineProperty(oh,"__esModule",{value:!0});var tP=oh.RGBA=void 0;const sh=Ae,ip=Ir,Ltt=Ie,Vtt=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};tP=oh.RGBA=Vtt,sh.Factory.addGetterSetter(ip.Node,"red",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),sh.Factory.addGetterSetter(ip.Node,"green",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),sh.Factory.addGetterSetter(ip.Node,"blue",0,Ltt.RGBComponent,sh.Factory.afterSetFilter),sh.Factory.addGetterSetter(ip.Node,"alpha",1,function(e){return this._filterUpToDate=!1,e>1?1:e<0?0:e});const Utt=le({__proto__:null,get RGBA(){return tP},default:oh},[oh]),ztt=ce(Utt);var ah={};Object.defineProperty(ah,"__esModule",{value:!0});var eP=ah.Sepia=void 0;const Gtt=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)};eP=ah.Sepia=Gtt;const Btt=le({__proto__:null,get Sepia(){return eP},default:ah},[ah]),Htt=ce(Btt);var lh={};Object.defineProperty(lh,"__esModule",{value:!0});var rP=lh.Solarize=void 0;const qtt=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)};rP=lh.Solarize=qtt;const Ktt=le({__proto__:null,get Solarize(){return rP},default:lh},[lh]),Ytt=ce(Ktt);var ch={};Object.defineProperty(ch,"__esModule",{value:!0});var nP=ch.Threshold=void 0;const iP=Ae,Xtt=Ir,Wtt=Ie,Jtt=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};nP=ch.Threshold=Jtt,iP.Factory.addGetterSetter(Xtt.Node,"threshold",.5,(0,Wtt.getNumberValidator)(),iP.Factory.afterSetFilter);const Qtt=le({__proto__:null,get Threshold(){return nP},default:ch},[ch]),Ztt=ce(Qtt);Object.defineProperty(gu,"__esModule",{value:!0});var oP=gu.Konva=void 0;const sP=bJ,tet=$J,eet=MJ,ret=BJ,net=YJ,iet=QJ,aP=oQ,oet=T4,set=hy,aet=G4,cet=mQ,uet=_Q,het=$Q,det=PQ,fet=hk,pet=QQ,met=dZ,get=vZ,vet=EZ,yet=OZ,_et=IZ,bet=LZ,wet=BZ,xet=KZ,$et=WZ,Eet=ZZ,Cet=rtt,ket=att,Pet=ytt,Tet=Stt,Oet=Ttt,Net=Rtt,Aet=Mtt,Det=ztt,Ret=Htt,Iet=Ytt,jet=Ztt;oP=gu.Konva=sP.Konva.Util._assign(sP.Konva,{Arc:tet.Arc,Arrow:eet.Arrow,Circle:ret.Circle,Ellipse:net.Ellipse,Image:iet.Image,Label:aP.Label,Tag:aP.Tag,Line:oet.Line,Path:set.Path,Rect:aet.Rect,RegularPolygon:cet.RegularPolygon,Ring:uet.Ring,Sprite:het.Sprite,Star:det.Star,Text:fet.Text,TextPath:pet.TextPath,Transformer:met.Transformer,Wedge:get.Wedge,Filters:{Blur:vet.Blur,Brighten:yet.Brighten,Contrast:_et.Contrast,Emboss:bet.Emboss,Enhance:wet.Enhance,Grayscale:xet.Grayscale,HSL:$et.HSL,HSV:Eet.HSV,Invert:Cet.Invert,Kaleidoscope:ket.Kaleidoscope,Mask:Pet.Mask,Noise:Tet.Noise,Pixelate:Oet.Pixelate,Posterize:Net.Posterize,RGB:Aet.RGB,RGBA:Det.RGBA,Sepia:Ret.Sepia,Solarize:Iet.Solarize,Threshold:jet.Threshold}});const Fet=le({__proto__:null,get Konva(){return oP},default:gu},[gu]),Met=ce(Fet);var Let=U1.exports;Object.defineProperty(Let,"__esModule",{value:!0});const Vet=Met;U1.exports=Vet.Konva;var Uet=U1.exports;const mr=Hn(Uet),zet=mr.Ellipse.prototype.toObject;mr.Ellipse.prototype.toObject=function(){const e=zet.call(this);return{...e,attrs:{...e.attrs,strokeWidth:this.strokeWidth(),dash:this.dash()}}};const Get=mr.Line.prototype.toObject;mr.Line.prototype.toObject=function(){const e=Get.call(this);return{...e,attrs:{...e.attrs,x:this.getAbsolutePosition().x,y:this.getAbsolutePosition().y,strokeWidth:this.strokeWidth(),dash:this.dash()}}};const Bet=mr.Node.prototype.toObject,Het=function(){const e=Bet.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()}}};mr.Node.prototype.toObject=Het;const qet=mr.Node.prototype.remove;mr.Node.prototype.remove=function(){return qet.call(this),this.fire("removed",{target:this}),this};const Ket=mr.Node.prototype.moveUp;mr.Node.prototype.moveUp=function(){const e=Ket.call(this);return e&&this.fire("move:up"),e};const Yet=mr.Node.prototype.moveDown;mr.Node.prototype.moveDown=function(){const e=Yet.call(this);return e&&this.fire("move:down"),e};const Xet=mr.Node.prototype.moveToTop;mr.Node.prototype.moveToTop=function(){const e=Xet.call(this);return e&&this.fire("move:top"),e};const Wet=mr.Node.prototype.moveToBottom;mr.Node.prototype.moveToBottom=function(){const e=Wet.call(this);return e&&this.fire("move:bottom"),e};const Jet=mr.Node.prototype.moveTo;mr.Node.prototype.moveTo=function(e){const t=Jet.call(this,e);return this.fire("move:to"),t};const Qet=mr.Rect.prototype.toObject;mr.Rect.prototype.toObject=function(){const e=Qet.call(this);return{...e,attrs:{...e.attrs,strokeWidth:this.strokeWidth(),dash:this.dash(),cornerRadius:this.cornerRadius()}}};const Zet=mr.RegularPolygon.prototype.toObject;mr.RegularPolygon.prototype.toObject=function(){const e=Zet.call(this);return{...e,attrs:{...e.attrs,strokeWidth:this.strokeWidth(),dash:this.dash()}}};const trt=mr.Text.prototype.toObject;mr.Text.prototype.toObject=function(){const e=trt.call(this);return{...e,attrs:{...e.attrs,strokeWidth:this.strokeWidth()}}};const ert=mr.Image.prototype.toObject;mr.Image.prototype.toObject=function(){const e=ert.call(this);return{...e,attrs:{...e.attrs,strokeWidth:this.strokeWidth(),dash:this.dash(),image:this.image()}}};var rrt=Object.defineProperty,nrt=Object.getOwnPropertyDescriptor,Ps=(e,t,r,n)=>{for(var i=n>1?void 0:n?nrt(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&&rrt(t,r,i),i};function Ts(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 Os{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}))}}Ps([Ts],Os.prototype,"alignLeft",1),Ps([Ts],Os.prototype,"alignRight",1),Ps([Ts],Os.prototype,"alignTop",1),Ps([Ts],Os.prototype,"alignBottom",1),Ps([Ts],Os.prototype,"alignCenterX",1),Ps([Ts],Os.prototype,"alignCenterY",1),Ps([Ts],Os.prototype,"dispersionX",1),Ps([Ts],Os.prototype,"dispersionY",1);const irt=Xe({__name:"Icon.ce",props:{icon:{default:"mdi-light:home"},color:{default:fe.colorPrimary}},setup(e){const t=e;return(r,n)=>(Se(),xr("span",{class:"icon",style:Te(["color: "+r.color])},[cr(xe(kS),{icon:t.icon,color:r.color},null,8,["icon","color"])],4))}}),ort=`.icon[data-v-b2d9b612]{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;font-size:1em}
95
- `,Sn=(e,t)=>{const r=e.__vccOpts||e;for(const[n,i]of t)r[n]=i;return r},Ry=Sn(irt,[["styles",[ort]],["__scopeId","data-v-b2d9b612"]]),srt=Xe({__name:"Icon",props:{icon:{default:"mdi-light:home"},color:{default:fe.colorPrimary}},setup(e){const t=e;return(r,n)=>(Se(),xr("span",{class:"icon",style:Te(["color: "+r.color])},[cr(xe(kS),{icon:t.icon,color:r.color},null,8,["icon","color"])],4))}}),Qnt="",no=Sn(srt,[["__scopeId","data-v-8789b4ce"]]),art=Xe({__name:"Button.ce",props:{label:{},icon:{},isDisabled:{type:Boolean,default:!1},height:{default:fe.height44},iconPosition:{default:"right"},padding:{default:fe.gap12},fontSize:{default:fe.fontSize14},borderRadius:{default:fe.borderRadius},borderColor:{default:fe.colorPrimary},bgColor:{default:fe.colorPrimary},fontColor:{default:fe.colorGrayFF}},emits:["ceClick","click"],setup(e,{emit:t}){const r=e,n=t,i=Zt(r.borderColor);vr(()=>r.borderColor,()=>{i.value=r.borderColor});const o=Zt(r.bgColor);vr(()=>r.bgColor,()=>{o.value=r.bgColor});const s=Zt(r.isDisabled?"0.6":"1"),a=Zt(r.isDisabled?"not-allowed":"pointer");let c=!1;const l=()=>{r.isDisabled||(c=!0,i.value=Io(r.borderColor,10),o.value=Io(r.bgColor,10))},u=()=>{r.isDisabled||(c=!1,i.value=r.borderColor,o.value=r.bgColor)},h=()=>{r.isDisabled||(i.value=Io(r.borderColor,-10),o.value=Io(r.bgColor,-10),setTimeout(()=>{c?l():u()},150),n("ceClick"),n("click"))};return(f,d)=>(Se(),xr("div",n0({class:"button",style:[`opacity: ${s.value}`,`border: 1px solid ${i.value}`,`border-radius: ${r.borderRadius}`,`background-color: ${o.value}`,`color: ${f.fontColor}`,`height: ${r.height}`,`line-height: ${r.height}`,`font-size: ${r.fontSize}`,`cursor: ${a.value}`]},f.$attrs,{onMouseover:l,onMouseleave:u,onClick:h}),[qe("label",{class:"label truncate",style:Te({padding:"0 "+f.padding,cursor:a.value})},[Pn(f.$slots,"default",{},()=>[f.icon&&f.iconPosition==="right"?(Se(),Lr(no,{key:0,icon:f.icon,color:f.fontColor,style:Te({marginRight:xe(fe).gap4,cursor:a.value})},null,8,["icon","color","style"])):Vr("",!0),qe("span",{style:Te({cursor:a.value})},gi(f.label),5),f.icon&&f.iconPosition==="left"?(Se(),Lr(no,{key:1,icon:f.icon,color:f.fontColor,style:Te({marginLeft:xe(fe).gap4,cursor:a.value})},null,8,["icon","color","style"])):Vr("",!0)],!0)],4)],16))}}),op=Sn(art,[["styles",[`.button[data-v-def0360f]{box-sizing:border-box;display:inline-flex;justify-content:center;align-items:center;z-index:0}.label[data-v-def0360f]{display:inline-flex;justify-content:center;align-items:center}
96
- `]],["__scopeId","data-v-def0360f"]]),tit="",lrt={id:"page"},crt=Sn(Xe({__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(e,{expose:t,emit:r}){const n=e;lq(n.designWidth);const i=r,o=Zt(),s=Zt(),a=Zt(),c=Zt(),l=Zt("0");vr(o,($,k)=>{typeof $<"u"&&$!==k&&(l.value=Ro(o.value).css("height"))});const u=Zt("0");vr(s,($,k)=>{typeof $<"u"&&$!==k&&(u.value=Ro(s.value).css("height"))});const h=Zt("0");vr(a,($,k)=>{typeof $<"u"&&$!==k&&(h.value=Ro(a.value).css("width"))});const f=Zt("0");vr(c,($,k)=>{typeof $<"u"&&$!==k&&(f.value=Ro(c.value).css("width"))}),window.addEventListener("orientationchange"in window?"orientationchange":"resize",()=>{l.value=Ro(o.value).css("height"),u.value=Ro(s.value).css("height"),h.value=Ro(a.value).css("width"),f.value=Ro(c.value).css("width")},!1);const d=new V1;let p=Zt(n.header);const g=()=>{o.value&&(d.fromDOM([o.value]),d.toCSS("slideDown",{easeName:"ease-in",dur:150,direction:p.value?"reverse":"normal"}),p.value=!p.value,i("triggerHeader",p.value))};let v=Zt(n.footer);const _=()=>{s.value&&(d.fromDOM([s.value]),d.toCSS("slideUp",{easeName:"ease-in",dur:150,direction:v.value?"reverse":"normal"}),v.value=!v.value,i("triggerFooter",v.value))};let y=Zt(n.left);const m=()=>{a.value&&(d.fromDOM([a.value]),d.toCSS("slideRight",{easeName:"ease-in",dur:150,direction:y.value?"reverse":"normal"}),y.value=!y.value,i("triggerLeft",y.value))};let x=Zt(n.right);return t({triggerHeader:g,triggerFooter:_,triggerLeft:m,triggerRight:()=>{c.value&&(d.fromDOM([c.value]),d.toCSS("slideLeft",{easeName:"ease-in",dur:150,direction:x.value?"reverse":"normal"}),x.value=!x.value,i("triggerRight",x.value))}}),($,k)=>(Se(),xr("div",lrt,[qe("header",{id:"header",ref_key:"refHeader",ref:o,style:Te({transform:$.header?"translate(0, 0)":`translate(0, -${l.value})`})},[Pn($.$slots,"header",{},void 0,!0)],4),qe("div",{id:"main",style:Te({paddingTop:xe(p)?l.value:0,paddingBottom:xe(v)?u.value:0})},[Pn($.$slots,"main",{},void 0,!0)],4),qe("footer",{id:"footer",ref_key:"refFooter",ref:s,style:Te({transform:$.footer?"translate(0, 0)":`translate(0, ${u.value})`})},[Pn($.$slots,"footer",{},void 0,!0)],4),qe("div",{id:"left",ref_key:"refLeft",ref:a,style:Te({transform:$.left?"translate(0, 0)":`translate(-${h.value}, 0)`})},[Pn($.$slots,"left",{},void 0,!0)],4),qe("div",{id:"right",ref_key:"refRight",ref:c,style:Te({transform:$.right?"translate(0, 0)":`translate(${f.value}, 0)`})},[Pn($.$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%}
97
- `]],["__scopeId","data-v-b1a4c34e"]]),urt=Xe({__name:"Button",props:{label:{},icon:{},isDisabled:{type:Boolean,default:!1},height:{default:fe.height44},iconPosition:{default:"right"},padding:{default:fe.gap12},fontSize:{default:fe.fontSize14},borderRadius:{default:fe.borderRadius},borderColor:{default:fe.colorPrimary},bgColor:{default:fe.colorPrimary},fontColor:{default:fe.colorGrayFF}},emits:["ceClick","click"],setup(e,{emit:t}){const r=e,n=t,i=Zt(r.borderColor);vr(()=>r.borderColor,()=>{i.value=r.borderColor});const o=Zt(r.bgColor);vr(()=>r.bgColor,()=>{o.value=r.bgColor});const s=Zt(r.isDisabled?"0.6":"1"),a=Zt(r.isDisabled?"not-allowed":"pointer");let c=!1;const l=()=>{r.isDisabled||(c=!0,i.value=Io(r.borderColor,10),o.value=Io(r.bgColor,10))},u=()=>{r.isDisabled||(c=!1,i.value=r.borderColor,o.value=r.bgColor)},h=()=>{r.isDisabled||(i.value=Io(r.borderColor,-10),o.value=Io(r.bgColor,-10),setTimeout(()=>{c?l():u()},150),n("ceClick"),n("click"))};return(f,d)=>(Se(),xr("div",n0({class:"button",style:[`opacity: ${s.value}`,`border: 1px solid ${i.value}`,`border-radius: ${r.borderRadius}`,`background-color: ${o.value}`,`color: ${f.fontColor}`,`height: ${r.height}`,`line-height: ${r.height}`,`font-size: ${r.fontSize}`,`cursor: ${a.value}`]},f.$attrs,{onMouseover:l,onMouseleave:u,onClick:h}),[qe("label",{class:"label truncate",style:Te({padding:"0 "+f.padding,cursor:a.value})},[Pn(f.$slots,"default",{},()=>[f.icon&&f.iconPosition==="right"?(Se(),Lr(no,{key:0,icon:f.icon,color:f.fontColor,style:Te({marginRight:xe(fe).gap4,cursor:a.value})},null,8,["icon","color","style"])):Vr("",!0),qe("span",{style:Te({cursor:a.value})},gi(f.label),5),f.icon&&f.iconPosition==="left"?(Se(),Lr(no,{key:1,icon:f.icon,color:f.fontColor,style:Te({marginLeft:xe(fe).gap4,cursor:a.value})},null,8,["icon","color","style"])):Vr("",!0)],!0)],4)],16))}}),nit="",io=Sn(urt,[["__scopeId","data-v-b5ee00bb"]]),hrt={class:"content"},drt={class:"content-inner"},frt={key:0,class:"title"},prt={key:0,class:"title-inner truncate"},mrt={class:"custom-content"},grt={key:1,class:"btns"},Iy=Sn(Xe({customOptions:{Icon:no,Button:io},__name:"Dialog.ce",props:{open:{type:Boolean,default:!1},title:{default:"通知"},content:{default:"..."},showTitle:{type:Boolean,default:!0},showClose:{type:Boolean,default:!1},showCancel:{type:Boolean,default:!1},showConfirm:{type:Boolean,default:!0},openDurTime:{default:300},closeDurTime:{default:150}},emits:["close","cancel","confirm"],setup(e,{expose:t,emit:r}){const n=e,i=r,o=Zt(),s=new V1,a=(f=!0)=>{f?vr(o,()=>{o.value&&(s.fromDOM(o.value),s.toCSS("popIn",{easeName:"ease",dur:n.openDurTime}))},{once:!0}):s.toCSS("popIn",{easeName:"ease",dur:n.closeDurTime,direction:"reverse"})},c=Zt();vr(c,(f,d)=>{f!==d&&a(c.value)}),vr(()=>n.open,()=>{(n.open===!0||n.open===!1)&&(c.value=n.open)},{immediate:!0});function l(){a(!1),setTimeout(()=>{c.value=!1,i("close")},n.closeDurTime)}function u(){l(),i("cancel")}function h(){l(),i("confirm")}return t({close:l}),(f,d)=>c.value?(Se(),xr("div",{key:0,class:"overlay",style:Te(["background-color: "+xe(i3)(xe(fe).colorGray0,.25)])},[qe("div",hrt,[qe("div",drt,[qe("div",{ref_key:"dialog",ref:o,class:"panel",style:Te(["background-color: "+xe(fe).colorGrayFF,"opacity: 0"])},[f.showTitle||f.showClose?(Se(),xr("div",frt,[f.showTitle?(Se(),xr("div",prt,gi(f.title),1)):Vr("",!0),f.showClose?(Se(),Lr(no,{key:1,class:"close",icon:"ic:baseline-close",color:xe(fe).colorGrayCC,onClick:l},null,8,["color"])):Vr("",!0)])):Vr("",!0),qe("div",mrt,[Pn(f.$slots,"default",{},()=>[yo(gi(f.content),1)],!0)]),f.showCancel||f.showConfirm?(Se(),xr("div",grt,[f.showCancel?(Se(),Lr(io,{key:0,onClick:u,class:"btn",bgColor:xe(fe).colorGrayE6,borderColor:xe(fe).colorGrayE6,fontColor:xe(fe).colorGray3,borderRadius:"0"},{default:Mr(()=>[yo(" 取消 ")]),_:1},8,["bgColor","borderColor","fontColor"])):Vr("",!0),f.showConfirm?(Se(),Lr(io,{key:1,onClick:h,class:"btn",borderRadius:"0"},{default:Mr(()=>[yo(" 确定 ")]),_:1})):Vr("",!0)])):Vr("",!0)],4)])])],4)):Vr("",!0)}}),[["styles",[`.overlay[data-v-470cfb8b]{position:fixed;z-index:2000;inset:0}.content[data-v-470cfb8b]{position:fixed;z-index:2001;inset:0;overflow-y:auto}.content-inner[data-v-470cfb8b]{display:flex;min-height:100%;align-items:center;justify-content:center;text-align:center}.panel[data-v-470cfb8b]{border-radius:1em;vertical-align:middle;min-width:20em;max-width:50%;overflow:hidden}.title[data-v-470cfb8b]{position:relative;font-size:20px;min-height:20px;margin-top:1em}.title-inner[data-v-470cfb8b]{font-weight:700;min-height:20px;padding:0 2em}.close[data-v-470cfb8b]{position:absolute;top:0;right:0;width:2em;height:100%;font-size:1.2em}.custom-content[data-v-470cfb8b]{font-size:16px;padding:1em;word-break:break-all}.btns[data-v-470cfb8b]{display:flex;justify-content:center}.btn[data-v-470cfb8b]{flex:1 1 auto;border-radius:0}
98
- `]],["__scopeId","data-v-470cfb8b"]]),vrt=Xe({__name:"SVGLoading.ce",props:{width:{default:"4em"},color:{default:fe.colorPrimary}},setup(e){const t=e;return(r,n)=>(Se(),xr("svg",{viewBox:"25 25 50 50",style:Te(["width: "+t.width])},[qe("circle",{cx:"50",cy:"50",r:"20",style:Te(["stroke: "+t.color])},null,4)],4))}}),yrt=Sn(vrt,[["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}}
99
- `]],["__scopeId","data-v-98779112"]]),_rt={class:"content"},brt={class:"content-inner"},wrt={key:0,class:"title"},xrt={key:0,class:"title-inner truncate"},Srt={class:"custom-content"},$rt={key:1,class:"btns"},Ert=Xe({customOptions:{Icon:no,Button:io},__name:"Dialog",props:{open:{type:Boolean,default:!1},title:{default:"通知"},content:{default:"..."},showTitle:{type:Boolean,default:!0},showClose:{type:Boolean,default:!1},showCancel:{type:Boolean,default:!1},showConfirm:{type:Boolean,default:!0},openDurTime:{default:300},closeDurTime:{default:150}},emits:["close","cancel","confirm"],setup(e,{expose:t,emit:r}){const n=e,i=r,o=Zt(),s=new V1,a=(f=!0)=>{f?vr(o,()=>{o.value&&(s.fromDOM(o.value),s.toCSS("popIn",{easeName:"ease",dur:n.openDurTime}))},{once:!0}):s.toCSS("popIn",{easeName:"ease",dur:n.closeDurTime,direction:"reverse"})},c=Zt();vr(c,(f,d)=>{f!==d&&a(c.value)}),vr(()=>n.open,()=>{(n.open===!0||n.open===!1)&&(c.value=n.open)},{immediate:!0});function l(){a(!1),setTimeout(()=>{c.value=!1,i("close")},n.closeDurTime)}function u(){l(),i("cancel")}function h(){l(),i("confirm")}return t({close:l}),(f,d)=>c.value?(Se(),xr("div",{key:0,class:"overlay",style:Te(["background-color: "+xe(i3)(xe(fe).colorGray0,.25)])},[qe("div",_rt,[qe("div",brt,[qe("div",{ref_key:"dialog",ref:o,class:"panel",style:Te(["background-color: "+xe(fe).colorGrayFF,"opacity: 0"])},[f.showTitle||f.showClose?(Se(),xr("div",wrt,[f.showTitle?(Se(),xr("div",xrt,gi(f.title),1)):Vr("",!0),f.showClose?(Se(),Lr(no,{key:1,class:"close",icon:"ic:baseline-close",color:xe(fe).colorGrayCC,onClick:l},null,8,["color"])):Vr("",!0)])):Vr("",!0),qe("div",Srt,[Pn(f.$slots,"default",{},()=>[yo(gi(f.content),1)],!0)]),f.showCancel||f.showConfirm?(Se(),xr("div",$rt,[f.showCancel?(Se(),Lr(io,{key:0,onClick:u,class:"btn",bgColor:xe(fe).colorGrayE6,borderColor:xe(fe).colorGrayE6,fontColor:xe(fe).colorGray3,borderRadius:"0"},{default:Mr(()=>[yo(" 取消 ")]),_:1},8,["bgColor","borderColor","fontColor"])):Vr("",!0),f.showConfirm?(Se(),Lr(io,{key:1,onClick:h,class:"btn",borderRadius:"0"},{default:Mr(()=>[yo(" 确定 ")]),_:1})):Vr("",!0)])):Vr("",!0)],4)])])],4)):Vr("",!0)}}),ait="",lP=Sn(Ert,[["__scopeId","data-v-23e93400"]]),Crt=Xe({__name:"SVGLoading",props:{width:{default:"4em"},color:{default:fe.colorPrimary}},setup(e){const t=e;return(r,n)=>(Se(),xr("svg",{viewBox:"25 25 50 50",style:Te(["width: "+t.width])},[qe("circle",{cx:"50",cy:"50",r:"20",style:Te(["stroke: "+t.color])},null,4)],4))}}),lit="",cP=Sn(Crt,[["__scopeId","data-v-29f8de14"]]),krt={class:"loading"},Prt={class:"icon"},Trt={key:0,class:"content"},uP=Sn(Xe({customOptions:{Dialog:lP,SVGLoading:cP},__name:"DialogLoading.ce",props:{open:{type:Boolean,default:!1},content:{}},setup(e){const t=e;return(r,n)=>(Se(),Lr(lP,{open:t.open,showConfirm:!1,showTitle:!1},{default:Mr(()=>[qe("div",krt,[qe("div",Prt,[Pn(r.$slots,"default",{},()=>[cr(cP)],!0)]),r.content?(Se(),xr("div",Trt,gi(r.content),1)):Vr("",!0)])]),_:3},8,["open"]))}}),[["styles",[`.loading[data-v-2ff32c4d]{display:flex;flex-direction:column;justify-content:center;align-items:center}.icon[data-v-2ff32c4d]{padding:2em 0}.content[data-v-2ff32c4d]{font-size:1em;margin-top:-1em;margin-bottom:1em}
100
- `]],["__scopeId","data-v-2ff32c4d"]]),Ort=["value"],Nrt=["value"],Art=Sn(Xe({__name:"Select.ce",props:{options:{},initIndex:{default:0}},emits:["change"],setup(e,{emit:t}){const r=e,n=t,i=Zt(r.initIndex),o=a=>{i.value=parseInt(a.target.value),n("change",r.options[i.value])},s=a=>{a.target.style.borderColor=fe.colorPrimary};return(a,c)=>(Se(),xr("select",{value:i.value,onChange:o,onFocus:s,class:"select",style:Te({border:"1px solid "+xe(fe).colorGrayCC,fontSize:xe(fe).fontSize14})},[(Se(!0),xr(kr,null,Fh(a.options,(l,u)=>(Se(),xr("option",{key:u,value:u},gi(l),9,Nrt))),128))],44,Ort))}}),[["styles",[`.select[data-v-c22c23d2]{display:inline-block;vertical-align:middle;line-height:1.4;padding:.2em .5em;border-radius:.2em;cursor:pointer}
101
- `]],["__scopeId","data-v-c22c23d2"]]);function jy(e,t,r){let n=Zt(r?.value),i=pe(()=>e.value!==void 0);return[pe(()=>i.value?e.value:n.value),function(o){return i.value||(n.value=o),t?.(o)}]}let Drt=Symbol("headlessui.useid"),Rrt=0;function Ns(){return ei(Drt,()=>`${++Rrt}`)()}function ke(e){var t;if(e==null||e.value==null)return null;let r=(t=e.value.$el)!=null?t:e.value;return r instanceof Node?r:null}function $n(e,t,...r){if(e in t){let i=t[e];return typeof i=="function"?i(...r):i}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,$n),n}var Irt=Object.defineProperty,jrt=(e,t,r)=>t in e?Irt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,hP=(e,t,r)=>(jrt(e,typeof t!="symbol"?t+"":t,r),r);let Frt=class{constructor(){hP(this,"current",this.detect()),hP(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},Fy=new Frt;function kl(e){if(Fy.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=ke(e);if(t)return t.ownerDocument}return document}let My=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var En=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(En||{}),Fa=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Fa||{}),Mrt=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Mrt||{});function Lrt(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(My)).sort((t,r)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(r.tabIndex||Number.MAX_SAFE_INTEGER)))}var Ly=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Ly||{});function dP(e,t=0){var r;return e===((r=kl(e))==null?void 0:r.body)?!1:$n(t,{0(){return e.matches(My)},1(){let n=e;for(;n!==null;){if(n.matches(My))return!0;n=n.parentElement}return!1}})}var Vrt=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Vrt||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));let Urt=["textarea","input"].join(",");function zrt(e){var t,r;return(r=(t=e?.matches)==null?void 0:t.call(e,Urt))!=null?r:!1}function As(e,t=r=>r){return e.slice().sort((r,n)=>{let i=t(r),o=t(n);if(i===null||o===null)return 0;let s=i.compareDocumentPosition(o);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Ds(e,t,{sorted:r=!0,relativeTo:n=null,skipElements:i=[]}={}){var o;let s=(o=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e?.ownerDocument)!=null?o:document,a=Array.isArray(e)?r?As(e):e:Lrt(e);i.length>0&&a.length>1&&(a=a.filter(p=>!i.includes(p))),n=n??s.activeElement;let c=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,a.indexOf(n))-1;if(t&4)return Math.max(0,a.indexOf(n))+1;if(t&8)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=t&32?{preventScroll:!0}:{},h=0,f=a.length,d;do{if(h>=f||h+f<=0)return 0;let p=l+h;if(t&16)p=(p+f)%f;else{if(p<0)return 3;if(p>=f)return 1}d=a[p],d?.focus(u),h+=c}while(d!==s.activeElement);return t&6&&zrt(d)&&d.select(),2}function Grt(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Brt(){return/Android/gi.test(window.navigator.userAgent)}function Hrt(){return Grt()||Brt()}function sp(e,t,r){Fy.isServer||Ha(n=>{document.addEventListener(e,t,r),n(()=>document.removeEventListener(e,t,r))})}function qrt(e,t,r){Fy.isServer||Ha(n=>{window.addEventListener(e,t,r),n(()=>window.removeEventListener(e,t,r))})}function Krt(e,t,r=pe(()=>!0)){function n(o,s){if(!r.value||o.defaultPrevented)return;let a=s(o);if(a===null||!a.getRootNode().contains(a))return;let c=function l(u){return typeof u=="function"?l(u()):Array.isArray(u)||u instanceof Set?u:[u]}(e);for(let l of c){if(l===null)continue;let u=l instanceof HTMLElement?l:ke(l);if(u!=null&&u.contains(a)||o.composed&&o.composedPath().includes(u))return}return!dP(a,Ly.Loose)&&a.tabIndex!==-1&&o.preventDefault(),t(o,a)}let i=Zt(null);sp("pointerdown",o=>{var s,a;r.value&&(i.value=((a=(s=o.composedPath)==null?void 0:s.call(o))==null?void 0:a[0])||o.target)},!0),sp("mousedown",o=>{var s,a;r.value&&(i.value=((a=(s=o.composedPath)==null?void 0:s.call(o))==null?void 0:a[0])||o.target)},!0),sp("click",o=>{Hrt()||i.value&&(n(o,()=>i.value),i.value=null)},!0),sp("touchend",o=>n(o,()=>o.target instanceof HTMLElement?o.target:null),!0),qrt("blur",o=>n(o,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function fP(e,t){if(e)return e;let r=t??"button";if(typeof r=="string"&&r.toLowerCase()==="button")return"button"}function Vy(e,t){let r=Zt(fP(e.value.type,e.value.as));return Un(()=>{r.value=fP(e.value.type,e.value.as)}),Ha(()=>{var n;r.value||ke(t)&&ke(t)instanceof HTMLButtonElement&&!((n=ke(t))!=null&&n.hasAttribute("type"))&&(r.value="button")}),r}function pP(e){return[e.screenX,e.screenY]}function Yrt(){let e=Zt([-1,-1]);return{wasMoved(t){let r=pP(t);return e.value[0]===r[0]&&e.value[1]===r[1]?!1:(e.value=r,!0)},update(t){e.value=pP(t)}}}function Xrt({container:e,accept:t,walk:r,enabled:n}){Ha(()=>{let i=e.value;if(!i||n!==void 0&&!n.value)return;let o=kl(e);if(!o)return;let s=Object.assign(c=>t(c),{acceptNode:t}),a=o.createTreeWalker(i,NodeFilter.SHOW_ELEMENT,s,!1);for(;a.nextNode();)r(a.currentNode)})}var Uy=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Uy||{}),Wrt=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Wrt||{});function Xn({visible:e=!0,features:t=0,ourProps:r,theirProps:n,...i}){var o;let s=gP(n,r),a=Object.assign(i,{props:s});if(e||t&2&&s.static)return zy(a);if(t&1){let c=(o=s.unmount)==null||o?0:1;return $n(c,{0(){return null},1(){return zy({...i,props:{...s,hidden:!0,style:{display:"none"}}})}})}return zy(a)}function zy({props:e,attrs:t,slots:r,slot:n,name:i}){var o,s;let{as:a,...c}=uh(e,["unmount","static"]),l=(o=r.default)==null?void 0:o.call(r,n),u={};if(n){let h=!1,f=[];for(let[d,p]of Object.entries(n))typeof p=="boolean"&&(h=!0),p===!0&&f.push(d);h&&(u["data-headlessui-state"]=f.join(" "))}if(a==="template"){if(l=mP(l??[]),Object.keys(c).length>0||Object.keys(t).length>0){let[h,...f]=l??[];if(!Jrt(h)||f.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${i} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(c).concat(Object.keys(t)).map(g=>g.trim()).filter((g,v,_)=>_.indexOf(g)===v).sort((g,v)=>g.localeCompare(v)).map(g=>` - ${g}`).join(`
102
- `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(g=>` - ${g}`).join(`
103
- `)].join(`
104
- `));let d=gP((s=h.props)!=null?s:{},c,u),p=_i(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 zn(a,Object.assign({},c,u),{default:()=>l})}function mP(e){return e.flatMap(t=>t.type===kr?mP(t.children):[t])}function gP(...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 Gy(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function uh(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}function Jrt(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var hh=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(hh||{});let ap=Xe({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 Xn({ourProps:s,theirProps:o,slot:{},attrs:r,slots:t,name:"Hidden"})}}}),vP=Symbol("Context");var dh=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(dh||{});function Qrt(){return ei(vP,null)}function Zrt(e){mo(vP,e)}var Me=(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))(Me||{});function tnt(e){throw new Error("Unexpected object: "+e)}var Cn=(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))(Cn||{});function ent(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:tnt(e)}}function rnt(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function By(e={},t=null,r=[]){for(let[n,i]of Object.entries(e))_P(r,yP(t,n),i);return r}function yP(e,t){return e?e+"["+t+"]":t}function _P(e,t,r){if(Array.isArray(r))for(let[n,i]of r.entries())_P(e,yP(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,""]):By(r,t,e)}function bP(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 nnt=Symbol("DescriptionContext");function Hy({slot:e=Zt({}),name:t="Description",props:r={}}={}){let n=Zt([]);function i(o){return n.value.push(o),()=>{let s=n.value.indexOf(o);s!==-1&&n.value.splice(s,1)}}return mo(nnt,{register:i,slot:e,name:t,props:r}),pe(()=>n.value.length>0?n.value.join(" "):void 0)}let wP=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function xP(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 wP.test(s)&&(s=s.replace(wP,"")),s}function int(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():xP(o).trim()}return null}).filter(Boolean);if(n.length>0)return n.join(", ")}return xP(e).trim()}function ont(e){let t=Zt(""),r=Zt("");return()=>{let n=ke(e);if(!n)return"";let i=n.innerText;if(t.value===i)return r.value;let o=int(n).trim().toLowerCase();return t.value=i,r.value=o,o}}function snt(e,t){return e===t}var ant=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ant||{}),lnt=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(lnt||{}),cnt=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(cnt||{});function unt(e){requestAnimationFrame(()=>requestAnimationFrame(e))}let SP=Symbol("ListboxContext");function lp(e){let t=ei(SP,null);if(t===null){let r=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,lp),r}return t}let hnt=Xe({name:"Listbox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>snt},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=Zt(1),o=Zt(null),s=Zt(null),a=Zt(null),c=Zt([]),l=Zt(""),u=Zt(null),h=Zt(1);function f(m=x=>x){let x=u.value!==null?c.value[u.value]:null,N=As(m(c.value.slice()),k=>ke(k.dataRef.domRef)),$=x?N.indexOf(x):null;return $===-1&&($=null),{options:N,activeOptionIndex:$}}let d=pe(()=>e.multiple?1:0),[p,g]=jy(pe(()=>e.modelValue),m=>n("update:modelValue",m),pe(()=>e.defaultValue)),v=pe(()=>p.value===void 0?$n(d.value,{1:[],0:void 0}):p.value),_={listboxState:i,value:v,mode:d,compare(m,x){if(typeof e.by=="string"){let N=e.by;return m?.[N]===x?.[N]}return e.by(m,x)},orientation:pe(()=>e.horizontal?"horizontal":"vertical"),labelRef:o,buttonRef:s,optionsRef:a,disabled:pe(()=>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,N){if(e.disabled||i.value===1)return;let $=f(),k=ent(m===Cn.Specific?{focus:Cn.Specific,id:x}:{focus:m},{resolveItems:()=>$.options,resolveActiveIndex:()=>$.activeOptionIndex,resolveId:D=>D.id,resolveDisabled:D=>D.dataRef.disabled});l.value="",u.value=k,h.value=N??1,c.value=$.options},search(m){if(e.disabled||i.value===1)return;let x=l.value!==""?0:1;l.value+=m.toLowerCase();let N=(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),$=N?c.value.indexOf(N):-1;$===-1||$===u.value||(u.value=$,h.value=1)},clearSearch(){e.disabled||i.value!==1&&l.value!==""&&(l.value="")},registerOption(m,x){let N=f($=>[...$,{id:m,dataRef:x}]);c.value=N.options,u.value=N.activeOptionIndex},unregisterOption(m){let x=f(N=>{let $=N.findIndex(k=>k.id===m);return $!==-1&&N.splice($,1),N});c.value=x.options,u.value=x.activeOptionIndex,h.value=1},theirOnChange(m){e.disabled||g(m)},select(m){e.disabled||g($n(d.value,{0:()=>m,1:()=>{let x=ee(_.value.value).slice(),N=ee(m),$=x.findIndex(k=>_.compare(N,ee(k)));return $===-1?x.push(N):x.splice($,1),x}}))}};Krt([s,a],(m,x)=>{var N;_.closeListbox(),dP(x,Ly.Loose)||(m.preventDefault(),(N=ke(s))==null||N.focus())},pe(()=>i.value===0)),mo(SP,_),Zrt(pe(()=>$n(i.value,{0:dh.Open,1:dh.Closed})));let y=pe(()=>{var m;return(m=ke(s))==null?void 0:m.closest("form")});return Un(()=>{vr([y],()=>{if(!y.value||e.defaultValue===void 0)return;function m(){_.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:N,form:$,...k}=e,D={open:i.value===0,disabled:N,value:v.value};return zn(kr,[...m!=null&&v.value!=null?By({[m]:v.value}).map(([V,U])=>zn(ap,Gy({features:hh.Hidden,key:V,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:$,disabled:N,name:V,value:U}))):[],Xn({ourProps:{},theirProps:{...r,...uh(k,["defaultValue","onUpdate:modelValue","horizontal","multiple","by"])},slot:D,slots:t,attrs:r,name:"Listbox"})])}}}),dnt=Xe({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-${Ns()}`,s=lp("ListboxButton");n({el:s.buttonRef,$el:s.buttonRef});function a(h){switch(h.key){case Me.Space:case Me.Enter:case Me.ArrowDown:h.preventDefault(),s.openListbox(),fo(()=>{var f;(f=ke(s.optionsRef))==null||f.focus({preventScroll:!0}),s.value.value||s.goToOption(Cn.First)});break;case Me.ArrowUp:h.preventDefault(),s.openListbox(),fo(()=>{var f;(f=ke(s.optionsRef))==null||f.focus({preventScroll:!0}),s.value.value||s.goToOption(Cn.Last)});break}}function c(h){switch(h.key){case Me.Space:h.preventDefault();break}}function l(h){s.disabled.value||(s.listboxState.value===0?(s.closeListbox(),fo(()=>{var f;return(f=ke(s.buttonRef))==null?void 0:f.focus({preventScroll:!0})})):(h.preventDefault(),s.openListbox(),unt(()=>{var f;return(f=ke(s.optionsRef))==null?void 0:f.focus({preventScroll:!0})})))}let u=Vy(pe(()=>({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=ke(s.optionsRef))==null?void 0:h.id,"aria-expanded":s.listboxState.value===0,"aria-labelledby":s.labelRef.value?[(f=ke(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 Xn({ourProps:g,theirProps:p,slot:d,attrs:t,slots:r,name:"ListboxButton"})}}}),fnt=Xe({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-${Ns()}`,s=lp("ListboxOptions"),a=Zt(null);n({el:s.optionsRef,$el:s.optionsRef});function c(h){switch(a.value&&clearTimeout(a.value),h.key){case Me.Space:if(s.searchQuery.value!=="")return h.preventDefault(),h.stopPropagation(),s.search(h.key);case Me.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(),fo(()=>{var f;return(f=ke(s.buttonRef))==null?void 0:f.focus({preventScroll:!0})}));break;case $n(s.orientation.value,{vertical:Me.ArrowDown,horizontal:Me.ArrowRight}):return h.preventDefault(),h.stopPropagation(),s.goToOption(Cn.Next);case $n(s.orientation.value,{vertical:Me.ArrowUp,horizontal:Me.ArrowLeft}):return h.preventDefault(),h.stopPropagation(),s.goToOption(Cn.Previous);case Me.Home:case Me.PageUp:return h.preventDefault(),h.stopPropagation(),s.goToOption(Cn.First);case Me.End:case Me.PageDown:return h.preventDefault(),h.stopPropagation(),s.goToOption(Cn.Last);case Me.Escape:h.preventDefault(),h.stopPropagation(),s.closeListbox(),fo(()=>{var f;return(f=ke(s.buttonRef))==null?void 0:f.focus({preventScroll:!0})});break;case Me.Tab:h.preventDefault(),h.stopPropagation();break;default:h.key.length===1&&(s.search(h.key),a.value=setTimeout(()=>s.clearSearch(),350));break}}let l=Qrt(),u=pe(()=>l!==null?(l.value&dh.Open)===dh.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=ke(s.buttonRef))==null?void 0:f.id,"aria-orientation":s.orientation.value,id:o,onKeydown:c,role:"listbox",tabIndex:0,ref:s.optionsRef};return Xn({ourProps:g,theirProps:p,slot:d,attrs:t,slots:r,features:Uy.RenderStrategy|Uy.Static,visible:u.value,name:"ListboxOptions"})}}}),pnt=Xe({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-${Ns()}`,s=lp("ListboxOption"),a=Zt(null);n({el:a,$el:a});let c=pe(()=>s.activeOptionIndex.value!==null?s.options.value[s.activeOptionIndex.value].id===o:!1),l=pe(()=>$n(s.mode.value,{0:()=>s.compare(ee(s.value.value),ee(e.value)),1:()=>ee(s.value.value).some(m=>s.compare(ee(m),ee(e.value)))})),u=pe(()=>$n(s.mode.value,{1:()=>{var m;let x=ee(s.value.value);return((m=s.options.value.find(N=>x.some($=>s.compare(ee($),ee(N.dataRef.value)))))==null?void 0:m.id)===o},0:()=>l.value})),h=ont(a),f=pe(()=>({disabled:e.disabled,value:e.value,get textValue(){return h()},domRef:a}));Un(()=>s.registerOption(o,f)),qa(()=>s.unregisterOption(o)),Un(()=>{vr([s.listboxState,l],()=>{s.listboxState.value===0&&l.value&&$n(s.mode.value,{1:()=>{u.value&&s.goToOption(Cn.Specific,o)},0:()=>{s.goToOption(Cn.Specific,o)}})},{immediate:!0})}),Ha(()=>{s.listboxState.value===0&&c.value&&s.activationTrigger.value!==0&&fo(()=>{var m,x;return(x=(m=ke(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(),fo(()=>{var x;return(x=ke(s.buttonRef))==null?void 0:x.focus({preventScroll:!0})}))}function p(){if(e.disabled)return s.goToOption(Cn.Nothing);s.goToOption(Cn.Specific,o)}let g=Yrt();function v(m){g.update(m)}function _(m){g.wasMoved(m)&&(e.disabled||c.value||s.goToOption(Cn.Specific,o,0))}function y(m){g.wasMoved(m)&&(e.disabled||c.value&&s.goToOption(Cn.Nothing))}return()=>{let{disabled:m}=e,x={active:c.value,selected:l.value,disabled:m},{value:N,disabled:$,...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:_,onMousemove:_,onPointerleave:y,onMouseleave:y};return Xn({ourProps:D,theirProps:k,slot:x,attrs:r,slots:t,name:"ListboxOption"})}}}),$P=Symbol("LabelContext");function EP(){let e=ei($P,null);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,EP),t}return e}function qy({slot:e={},name:t="Label",props:r={}}={}){let n=Zt([]);function i(o){return n.value.push(o),()=>{let s=n.value.indexOf(o);s!==-1&&n.value.splice(s,1)}}return mo($P,{register:i,slot:e,name:t,props:r}),pe(()=>n.value.length>0?n.value.join(" "):void 0)}let mnt=Xe({name:"Label",props:{as:{type:[Object,String],default:"label"},passive:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(e,{slots:t,attrs:r}){var n;let i=(n=e.id)!=null?n:`headlessui-label-${Ns()}`,o=EP();return Un(()=>qa(o.register(i))),()=>{let{name:s="Label",slot:a={},props:c={}}=o,{passive:l,...u}=e,h={...Object.entries(c).reduce((f,[d,p])=>Object.assign(f,{[d]:xe(p)}),{}),id:i};return l&&(delete h.onClick,delete h.htmlFor,delete u.onClick),Xn({ourProps:h,theirProps:u,slot:a,attrs:r,slots:t,name:s})}}});function gnt(e,t){return e===t}let CP=Symbol("RadioGroupContext");function kP(e){let t=ei(CP,null);if(t===null){let r=new Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,kP),r}return t}let vnt=Xe({name:"RadioGroup",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"div"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>gnt},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},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{emit:t,attrs:r,slots:n,expose:i}){var o;let s=(o=e.id)!=null?o:`headlessui-radiogroup-${Ns()}`,a=Zt(null),c=Zt([]),l=qy({name:"RadioGroupLabel"}),u=Hy({name:"RadioGroupDescription"});i({el:a,$el:a});let[h,f]=jy(pe(()=>e.modelValue),v=>t("update:modelValue",v),pe(()=>e.defaultValue)),d={options:c,value:h,disabled:pe(()=>e.disabled),firstOption:pe(()=>c.value.find(v=>!v.propsRef.disabled)),containsCheckedOption:pe(()=>c.value.some(v=>d.compare(ee(v.propsRef.value),ee(e.modelValue)))),compare(v,_){if(typeof e.by=="string"){let y=e.by;return v?.[y]===_?.[y]}return e.by(v,_)},change(v){var _;if(e.disabled||d.compare(ee(h.value),ee(v)))return!1;let y=(_=c.value.find(m=>d.compare(ee(m.propsRef.value),ee(v))))==null?void 0:_.propsRef;return y!=null&&y.disabled?!1:(f(v),!0)},registerOption(v){c.value.push(v),c.value=As(c.value,_=>_.element)},unregisterOption(v){let _=c.value.findIndex(y=>y.id===v);_!==-1&&c.value.splice(_,1)}};mo(CP,d),Xrt({container:pe(()=>ke(a)),accept(v){return v.getAttribute("role")==="radio"?NodeFilter.FILTER_REJECT:v.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(v){v.setAttribute("role","none")}});function p(v){if(!a.value||!a.value.contains(v.target))return;let _=c.value.filter(y=>y.propsRef.disabled===!1).map(y=>y.element);switch(v.key){case Me.Enter:bP(v.currentTarget);break;case Me.ArrowLeft:case Me.ArrowUp:if(v.preventDefault(),v.stopPropagation(),Ds(_,En.Previous|En.WrapAround)===Fa.Success){let y=c.value.find(m=>{var x;return m.element===((x=kl(a))==null?void 0:x.activeElement)});y&&d.change(y.propsRef.value)}break;case Me.ArrowRight:case Me.ArrowDown:if(v.preventDefault(),v.stopPropagation(),Ds(_,En.Next|En.WrapAround)===Fa.Success){let y=c.value.find(m=>{var x;return m.element===((x=kl(m.element))==null?void 0:x.activeElement)});y&&d.change(y.propsRef.value)}break;case Me.Space:{v.preventDefault(),v.stopPropagation();let y=c.value.find(m=>{var x;return m.element===((x=kl(m.element))==null?void 0:x.activeElement)});y&&d.change(y.propsRef.value)}break}}let g=pe(()=>{var v;return(v=ke(a))==null?void 0:v.closest("form")});return Un(()=>{vr([g],()=>{if(!g.value||e.defaultValue===void 0)return;function v(){d.change(e.defaultValue)}return g.value.addEventListener("reset",v),()=>{var _;(_=g.value)==null||_.removeEventListener("reset",v)}},{immediate:!0})}),()=>{let{disabled:v,name:_,form:y,...m}=e,x={ref:a,id:s,role:"radiogroup","aria-labelledby":l.value,"aria-describedby":u.value,onKeydown:p};return zn(kr,[..._!=null&&h.value!=null?By({[_]:h.value}).map(([N,$])=>zn(ap,Gy({features:hh.Hidden,key:N,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:y,disabled:v,name:N,value:$}))):[],Xn({ourProps:x,theirProps:{...r,...uh(m,["modelValue","defaultValue","by"])},slot:{},attrs:r,slots:n,name:"RadioGroup"})])}}});var ynt=(e=>(e[e.Empty=1]="Empty",e[e.Active=2]="Active",e))(ynt||{});let _nt=Xe({name:"RadioGroupOption",props:{as:{type:[Object,String],default:"div"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(e,{attrs:t,slots:r,expose:n}){var i;let o=(i=e.id)!=null?i:`headlessui-radiogroup-option-${Ns()}`,s=kP("RadioGroupOption"),a=qy({name:"RadioGroupLabel"}),c=Hy({name:"RadioGroupDescription"}),l=Zt(null),u=pe(()=>({value:e.value,disabled:e.disabled})),h=Zt(1);n({el:l,$el:l});let f=pe(()=>ke(l));Un(()=>s.registerOption({id:o,element:f,propsRef:u})),qa(()=>s.unregisterOption(o));let d=pe(()=>{var x;return((x=s.firstOption.value)==null?void 0:x.id)===o}),p=pe(()=>s.disabled.value||e.disabled),g=pe(()=>s.compare(ee(s.value.value),ee(e.value))),v=pe(()=>p.value?-1:g.value||!s.containsCheckedOption.value&&d.value?0:-1);function _(){var x;s.change(e.value)&&(h.value|=2,(x=ke(l))==null||x.focus())}function y(){h.value|=2}function m(){h.value&=-3}return()=>{let{value:x,disabled:N,...$}=e,k={checked:g.value,disabled:p.value,active:!!(h.value&2)},D={id:o,ref:l,role:"radio","aria-checked":g.value?"true":"false","aria-labelledby":a.value,"aria-describedby":c.value,"aria-disabled":p.value?!0:void 0,tabIndex:v.value,onClick:p.value?void 0:_,onFocus:p.value?void 0:y,onBlur:p.value?void 0:m};return Xn({ourProps:D,theirProps:$,slot:k,attrs:t,slots:r,name:"RadioGroupOption"})}}}),bnt=mnt,PP=Symbol("GroupContext"),wnt=Xe({name:"SwitchGroup",props:{as:{type:[Object,String],default:"template"}},setup(e,{slots:t,attrs:r}){let n=Zt(null),i=qy({name:"SwitchLabel",props:{htmlFor:pe(()=>{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=Hy({name:"SwitchDescription"});return mo(PP,{switchRef:n,labelledby:i,describedby:o}),()=>Xn({theirProps:e,ourProps:{},slot:{},slots:t,attrs:r,name:"SwitchGroup"})}}),xnt=Xe({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-${Ns()}`,a=ei(PP,null),[c,l]=jy(pe(()=>e.modelValue),y=>t("update:modelValue",y),pe(()=>e.defaultChecked));function u(){l(!c.value)}let h=Zt(null),f=a===null?h:a.switchRef,d=Vy(pe(()=>({as:e.as,type:r.type})),f);i({el:f,$el:f});function p(y){y.preventDefault(),u()}function g(y){y.key===Me.Space?(y.preventDefault(),u()):y.key===Me.Enter&&bP(y.currentTarget)}function v(y){y.preventDefault()}let _=pe(()=>{var y,m;return(m=(y=ke(f))==null?void 0:y.closest)==null?void 0:m.call(y,"form")});return Un(()=>{vr([_],()=>{if(!_.value||e.defaultChecked===void 0)return;function y(){l(e.defaultChecked)}return _.value.addEventListener("reset",y),()=>{var m;(m=_.value)==null||m.removeEventListener("reset",y)}},{immediate:!0})}),()=>{let{name:y,value:m,form:x,tabIndex:N,...$}=e,k={checked:c.value},D={id:s,ref:f,role:"switch",type:d.value,tabIndex:N===-1?0:N,"aria-checked":c.value,"aria-labelledby":a?.labelledby.value,"aria-describedby":a?.describedby.value,onClick:p,onKeyup:g,onKeypress:v};return zn(kr,[y!=null&&c.value!=null?zn(ap,Gy({features:hh.Hidden,as:"input",type:"checkbox",hidden:!0,readOnly:!0,checked:c.value,form:x,disabled:$.disabled,name:y,value:m})):null,Xn({ourProps:D,theirProps:{...r,...uh($,["modelValue","defaultChecked"])},slot:k,attrs:r,slots:n,name:"Switch"})])}}}),Snt=Xe({props:{onFocus:{type:Function,required:!0}},setup(e){let t=Zt(!0);return()=>t.value?zn(ap,{as:"button",type:"button",features:hh.Focusable,onFocus(r){r.preventDefault();let n,i=50;function o(){var s;if(i--<=0){n&&cancelAnimationFrame(n);return}if((s=e.onFocus)!=null&&s.call(e)){t.value=!1,cancelAnimationFrame(n);return}n=requestAnimationFrame(o)}n=requestAnimationFrame(o)}}):null}});var $nt=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))($nt||{}),Ent=(e=>(e[e.Less=-1]="Less",e[e.Equal=0]="Equal",e[e.Greater=1]="Greater",e))(Ent||{});let TP=Symbol("TabsContext");function Ky(e){let t=ei(TP,null);if(t===null){let r=new Error(`<${e} /> is missing a parent <TabGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Ky),r}return t}let OP=Symbol("TabsSSRContext"),Cnt=Xe({name:"TabGroup",emits:{change:e=>!0},props:{as:{type:[Object,String],default:"template"},selectedIndex:{type:[Number],default:null},defaultIndex:{type:[Number],default:0},vertical:{type:[Boolean],default:!1},manual:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(e,{slots:t,attrs:r,emit:n}){var i;let o=Zt((i=e.selectedIndex)!=null?i:e.defaultIndex),s=Zt([]),a=Zt([]),c=pe(()=>e.selectedIndex!==null),l=pe(()=>c.value?e.selectedIndex:o.value);function u(g){var v;let _=As(h.tabs.value,ke),y=As(h.panels.value,ke),m=_.filter(x=>{var N;return!((N=ke(x))!=null&&N.hasAttribute("disabled"))});if(g<0||g>_.length-1){let x=$n(o.value===null?0:Math.sign(g-o.value),{[-1]:()=>1,0:()=>$n(Math.sign(g),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0}),N=$n(x,{0:()=>_.indexOf(m[0]),1:()=>_.indexOf(m[m.length-1])});N!==-1&&(o.value=N),h.tabs.value=_,h.panels.value=y}else{let x=_.slice(0,g),N=[..._.slice(g),...x].find(k=>m.includes(k));if(!N)return;let $=(v=_.indexOf(N))!=null?v:h.selectedIndex.value;$===-1&&($=h.selectedIndex.value),o.value=$,h.tabs.value=_,h.panels.value=y}}let h={selectedIndex:pe(()=>{var g,v;return(v=(g=o.value)!=null?g:e.defaultIndex)!=null?v:null}),orientation:pe(()=>e.vertical?"vertical":"horizontal"),activation:pe(()=>e.manual?"manual":"auto"),tabs:s,panels:a,setSelectedIndex(g){l.value!==g&&n("change",g),c.value||u(g)},registerTab(g){var v;if(s.value.includes(g))return;let _=s.value[o.value];if(s.value.push(g),s.value=As(s.value,ke),!c.value){let y=(v=s.value.indexOf(_))!=null?v:o.value;y!==-1&&(o.value=y)}},unregisterTab(g){let v=s.value.indexOf(g);v!==-1&&s.value.splice(v,1)},registerPanel(g){a.value.includes(g)||(a.value.push(g),a.value=As(a.value,ke))},unregisterPanel(g){let v=a.value.indexOf(g);v!==-1&&a.value.splice(v,1)}};mo(TP,h);let f=Zt({tabs:[],panels:[]}),d=Zt(!1);Un(()=>{d.value=!0}),mo(OP,pe(()=>d.value?null:f.value));let p=pe(()=>e.selectedIndex);return Un(()=>{vr([p],()=>{var g;return u((g=e.selectedIndex)!=null?g:e.defaultIndex)},{immediate:!0})}),Ha(()=>{if(!c.value||l.value==null||h.tabs.value.length<=0)return;let g=As(h.tabs.value,ke);g.some((v,_)=>ke(h.tabs.value[_])!==ke(v))&&h.setSelectedIndex(g.findIndex(v=>ke(v)===ke(h.tabs.value[l.value])))}),()=>{let g={selectedIndex:o.value};return zn(kr,[s.value.length<=0&&zn(Snt,{onFocus:()=>{for(let v of s.value){let _=ke(v);if(_?.tabIndex===0)return _.focus(),!0}return!1}}),Xn({theirProps:{...r,...uh(e,["selectedIndex","defaultIndex","manual","vertical","onChange"])},ourProps:{},slot:g,slots:t,attrs:r,name:"TabGroup"})])}}}),knt=Xe({name:"TabList",props:{as:{type:[Object,String],default:"div"}},setup(e,{attrs:t,slots:r}){let n=Ky("TabList");return()=>{let i={selectedIndex:n.selectedIndex.value},o={role:"tablist","aria-orientation":n.orientation.value};return Xn({ourProps:o,theirProps:e,slot:i,attrs:t,slots:r,name:"TabList"})}}}),Pnt=Xe({name:"Tab",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(e,{attrs:t,slots:r,expose:n}){var i;let o=(i=e.id)!=null?i:`headlessui-tabs-tab-${Ns()}`,s=Ky("Tab"),a=Zt(null);n({el:a,$el:a}),Un(()=>s.registerTab(a)),qa(()=>s.unregisterTab(a));let c=ei(OP),l=pe(()=>{if(c.value){let y=c.value.tabs.indexOf(o);return y===-1?c.value.tabs.push(o)-1:y}return-1}),u=pe(()=>{let y=s.tabs.value.indexOf(a);return y===-1?l.value:y}),h=pe(()=>u.value===s.selectedIndex.value);function f(y){var m;let x=y();if(x===Fa.Success&&s.activation.value==="auto"){let N=(m=kl(a))==null?void 0:m.activeElement,$=s.tabs.value.findIndex(k=>ke(k)===N);$!==-1&&s.setSelectedIndex($)}return x}function d(y){let m=s.tabs.value.map(x=>ke(x)).filter(Boolean);if(y.key===Me.Space||y.key===Me.Enter){y.preventDefault(),y.stopPropagation(),s.setSelectedIndex(u.value);return}switch(y.key){case Me.Home:case Me.PageUp:return y.preventDefault(),y.stopPropagation(),f(()=>Ds(m,En.First));case Me.End:case Me.PageDown:return y.preventDefault(),y.stopPropagation(),f(()=>Ds(m,En.Last))}if(f(()=>$n(s.orientation.value,{vertical(){return y.key===Me.ArrowUp?Ds(m,En.Previous|En.WrapAround):y.key===Me.ArrowDown?Ds(m,En.Next|En.WrapAround):Fa.Error},horizontal(){return y.key===Me.ArrowLeft?Ds(m,En.Previous|En.WrapAround):y.key===Me.ArrowRight?Ds(m,En.Next|En.WrapAround):Fa.Error}}))===Fa.Success)return y.preventDefault()}let p=Zt(!1);function g(){var y;p.value||(p.value=!0,!e.disabled&&((y=ke(a))==null||y.focus({preventScroll:!0}),s.setSelectedIndex(u.value),rnt(()=>{p.value=!1})))}function v(y){y.preventDefault()}let _=Vy(pe(()=>({as:e.as,type:t.type})),a);return()=>{var y,m;let x={selected:h.value,disabled:(y=e.disabled)!=null?y:!1},{...N}=e,$={ref:a,onKeydown:d,onMousedown:v,onClick:g,id:o,role:"tab",type:_.value,"aria-controls":(m=ke(s.panels.value[u.value]))==null?void 0:m.id,"aria-selected":h.value,tabIndex:h.value?0:-1,disabled:e.disabled?!0:void 0};return Xn({ourProps:$,theirProps:N,slot:x,attrs:t,slots:r,name:"Tab"})}}});const NP=Sn(Xe({customOptions:{Icon:no,Button:io},__name:"SelectHeadlessUI.ce",props:{options:{},initIndex:{default:0},fontSize:{default:"14px"}},emits:["change"],setup(e,{emit:t}){const r=e,n=t,i=Zt(r.initIndex);return vr(i,function(){n("change",r.options[i.value])}),(o,s)=>(Se(),Lr(xe(hnt),{modelValue:i.value,"onUpdate:modelValue":s[0]||(s[0]=a=>i.value=a)},{default:Mr(({open:a})=>[qe("div",{class:"wrap",style:Te(["font-size:"+o.fontSize])},[cr(xe(dnt),{class:"button"},{default:Mr(()=>[Pn(o.$slots,"button",{selectedIndex:i.value},()=>[cr(io,{icon:"carbon:chevron-sort",label:o.options[i.value],style:{width:"100%"}},null,8,["label"])],!0)]),_:3}),cr(a0,{name:"transition"},{default:Mr(()=>[q_(qe("div",null,[cr(xe(fnt),{static:"",class:"options",style:Te({border:"1px solid "+xe(fe).colorGrayCC})},{default:Mr(()=>[(Se(!0),xr(kr,null,Fh(o.options,(c,l)=>(Se(),Lr(xe(pnt),{as:"div",class:"option",key:l,value:l,style:Te({borderTop:(l==0?"0":"1px")+" solid "+xe(fe).colorGrayCC})},{default:Mr(({active:u,selected:h})=>[qe("div",{class:"option-inner",style:Te({backgroundColor:u?xe(fe).colorGrayF5:xe(fe).colorGrayFF})},[Pn(o.$slots,"default",{active:u,selected:h,item:c,index:l},()=>[h||l==i.value?(Se(),Lr(no,{key:0,icon:"mingcute:check-fill",class:"icon"})):Vr("",!0),qe("span",null,gi(c),1)],!0)],4)]),_:2},1032,["value","style"]))),128))]),_:3},8,["style"])],512),[[c0,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"]]),Tnt={class:"group"},Ont=Xe({__name:"SwitchHeadlessUI.ce",props:{init:{type:Boolean,default:!1},name:{},width:{default:"52px"},height:{default:"32px"},padding:{default:"4px"},colorPrimary:{default:fe.colorPrimary},colorBgOn:{default:fe.colorGrayEF},colorBgOff:{default:fe.colorGrayF5}},emits:["change"],setup(e,{emit:t}){const r=e;function n(f){const d=zO("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=Zt(r.init);return vr(h,function(){u("change",h.value)}),(f,d)=>(Se(),Lr(xe(wnt),null,{default:Mr(()=>[qe("div",Tnt,[cr(xe(xnt),{modelValue:h.value,"onUpdate:modelValue":d[0]||(d[0]=p=>h.value=p),name:f.name,style:Te(["padding: 0","margin: 0","border: 0","background-color: transparent"])},{default:Mr(()=>[qe("div",{class:"switch",style:Te(["width: "+r.width,"height: "+r.height,"background-color: "+(h.value?r.colorBgOn:r.colorBgOff)])},[qe("span",{class:"round",style:Te(["width: "+a,"height: "+a,"background-color: "+(h.value?r.colorPrimary:xe(Io)(r.colorPrimary,30)),"transform: translate("+(h.value?l:xe(c))+", 0)"])},null,4)],4)]),_:1},8,["modelValue","name"])])]),_:1}))}}),Nnt=Sn(Ont,[["styles",[`.group[data-v-54b96b56]{display:flex;align-items:center}.switch[data-v-54b96b56]{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-54b96b56]{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-54b96b56"]]),Ant=["fill"],Dnt=["stroke"],Rnt=Xe({customOptions:{},__name:"RadioGroupHeadlessUI.ce",props:{options:{},initIndex:{default:0},colorPrimary:{default:fe.colorPrimary},colorBg:{default:fe.colorGrayEE},fontSize:{default:fe.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(e,{emit:t}){const r=e,n=t,i=Zt(r.initIndex);return vr(i,function(){n("change",r.options[i.value])}),(o,s)=>(Se(),Lr(xe(vnt),{modelValue:i.value,"onUpdate:modelValue":s[0]||(s[0]=a=>i.value=a),as:"div",class:"wrap"},{default:Mr(()=>[(Se(!0),xr(kr,null,Fh(o.options,(a,c)=>(Se(),Lr(xe(_nt),{as:"span",class:"item",key:c,value:c,style:Te(["margin-left:"+(c>0?r.itemPadding:0)])},{default:Mr(({active:l,checked:u})=>[Pn(o.$slots,"default",{label:a,index:c,active:l,checked:u},()=>[(Se(),xr("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:Te(["margin-right:"+r.labelPadding,"width:"+r.itemWidth])},[qe("circle",{cx:"12",cy:"12",r:"12",fill:r.colorBg,"fill-opacity":"0.8"},null,8,Ant),q_(qe("path",{d:"M7 13l3 3 7-7",stroke:r.colorPrimary,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Dnt),[[c0,u||i.value==c]])],4)),cr(xe(bnt),{as:"span",style:Te(["font-size:"+r.fontSize])},{default:Mr(()=>[yo(gi(a),1)]),_:2},1032,["style"])],!0)]),_:2},1032,["value","style"]))),128))]),_:3},8,["modelValue"]))}}),Int=Sn(Rnt,[["styles",[`.wrap[data-v-b51df39f]{display:inline-block;position:relative}.item[data-v-b51df39f]{display:inline-flex;justify-content:flex-start;align-items:center;cursor:pointer}.icon[data-v-b51df39f]{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}
107
- `]],["__scopeId","data-v-b51df39f"]]),jnt={class:"wrap"},Fnt=Xe({customOptions:{Button:io},__name:"TabHeadlessUI.ce",props:{tabs:{},initIndex:{default:0},tabMinWidth:{default:"10em"},colorPrimary:{default:fe.colorPrimary},colorBgOff:{default:fe.colorGrayF5},colorFontOn:{default:fe.colorGrayFF},colorFontOff:{default:fe.colorGray3}},emits:["change"],setup(e,{emit:t}){const r=e,n=t,i=Zt(r.initIndex);function o(s){i.value=s,n("change",s)}return(s,a)=>(Se(),xr("div",jnt,[cr(xe(Cnt),{selectedIndex:i.value,onChange:o},{default:Mr(()=>[cr(xe(knt),{class:"tablist"},{default:Mr(()=>[(Se(!0),xr(kr,null,Fh(s.tabs,c=>(Se(),Lr(xe(Pnt),{as:"div",key:c,class:"tab"},{default:Mr(({selected:l})=>[Pn(s.$slots,`${c}-tab`,{selected:l},()=>[cr(io,{borderColor:l?r.colorPrimary:r.colorBgOff,bgColor:l?r.colorPrimary:r.colorBgOff,fontColor:l?r.colorFontOn:r.colorFontOff,borderRadius:"0",style:Te(["min-width:"+r.tabMinWidth])},{default:Mr(()=>[yo(gi(c),1)]),_:2},1032,["borderColor","bgColor","fontColor","style"])],!0)]),_:2},1024))),128))]),_:3})]),_:3},8,["selectedIndex"])]))}}),AP=Sn(Fnt,[["styles",[`.wrap[data-v-e5246637]{width:100%}.tablist[data-v-e5246637],.tab[data-v-e5246637]{display:flex;justify-content:flex-start}
108
- `]],["__scopeId","data-v-e5246637"]]);function Mnt(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 fh=(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=>GO(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},Lnt=()=>{const e=Ui(Ry);customElements.define("yz-icon",e);const t=Ui(op);customElements.define("yz-button",t);const r=Ui(crt);customElements.define("yz-mobile-layout",r),fh(Iy,[Ry,op]);const n=Ui(Iy);customElements.define("yz-dialog",n),fh(uP,[Iy,yrt]);const i=Ui(uP);customElements.define("yz-dialog-loading",i);const o=Ui(Art);customElements.define("yz-select",o),fh(NP,[Ry,op]);const s=Ui(NP);customElements.define("yz-select-headlessui",s);const a=Ui(Nnt);customElements.define("yz-switch-headlessui",a);const c=Ui(Int);customElements.define("yz-radiogroup-headlessui",c),fh(AP,[op]);const l=Ui(AP);customElements.define("yz-tab-headlessui",l)};Yo.install=Lnt,Yo.linkChildrenComponentsStyles=Mnt,Yo.mergeChildComponentCSS=fh,Object.defineProperty(Yo,Symbol.toStringTag,{value:"Module"})});
59
+ })`}static safeHtml(t,n="encode"){const i={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"};for(const r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t=t.replace(new RegExp(n=="decode"?r:i[r],"g"),n=="decode"?i[r]:r));return t}static loadScript(t,n=()=>{},i=(r,s,o,a,l)=>{}){const r=document.createElement("script");r.type="text/javascript",r.src=t,r.async=!1,document.body.appendChild(r),r.onload=n,r.onerror=i}static loadStyle(t){const n=document.createElement("link");n.rel="stylesheet",n.href=t,document.head.insertBefore(n,document.head.childNodes[document.head.childNodes.length-1].nextSibling)}static waitForStyleSheetsLoaded=()=>new Promise(t=>{const n=Array.from(document.querySelectorAll("link[rel=stylesheet]"));let i=document.styleSheets.length??0;const r=()=>i>=n.length?(t(),!0):!1;r()||n.forEach(s=>{s.onload=()=>{i+=1,r()}})});static lazyloadImages(){const t=document.getElementsByTagName("img"),n=xa().height;let i=0;return()=>{for(let r=i;r<t.length;r++)t[r].getBoundingClientRect().top<n&&(t[r].src=t[r].getAttribute("data-src")??"",i=r+1)}}static iframePostMessage(t,n="http://test.com/localstorage.html"){const i=document.createElement("iframe");i.src=n,document.body.append(i),setTimeout(function(){i.contentWindow?.postMessage(t,n)},4e3),setTimeout(function(){i.remove()},6e3)}static getTextWidth=(t,n,i=400)=>{const r=document.createElement("span");r.style.visibility="hidden",r.style.padding="0",r.style.whiteSpace="nowrap",r.style.overflow="visible",r.style.fontSize=n>12?n+"px":"12px",r.style.fontWeight=i.toString(),r.innerText=t,document.body.appendChild(r);const s=r.offsetWidth;return document.body.removeChild(r),s};static getFixedWidthText=(t,n,i=12,r=400,s=!0)=>{let o="",a="",l="";if(!t||n<i||typeof t!="string")return o;const p=t.split(""),m=document.createElement("span");m.style.visibility="hidden",m.style.padding="0",m.style.whiteSpace="nowrap",m.style.overflow="visible",m.style.fontSize=i>12?i+"px":"12px",m.style.fontWeight=r.toString(),document.body.appendChild(m);for(let g=0,d=p.length;g<d;g++){const _=p[g];if(a=l,l+=_,o=l,m.innerText=l,m.offsetWidth>n){s?o=a+"...":o=a;break}}return document.body.removeChild(m),o};static getLocation(){return new Promise((t,n)=>{navigator.geolocation?navigator.geolocation.getCurrentPosition(i=>{t(i.coords)}):n("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(n=>n!==t);static isElementFocus=t=>t===document.activeElement;static isTabInView=()=>!document.hidden;static navigateBack=()=>history.back();static navigateBack2=()=>history.go(-1);static addDebuggerOnBeforeUnload=()=>{window.addEventListener("beforeunload",()=>{debugger})}}function gg(e,t=document){return new Ne(e,t)}class Ne{context;nodes;prefixs=["moz","o","ms","webkit"];constructor(t,n=document){if(this.context=n,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((i,r)=>{i instanceof HTMLInputElement&&i.addEventListener("change",s=>{this.changeRadioChecked(s.currentTarget.value)}),i instanceof HTMLSelectElement&&i.addEventListener("change",s=>{this.changeSelectSelected(s.currentTarget.value)})})}get(t){return t<0&&(t=this.nodes.length+t),this.nodes[t]}concat(t){return new Ne(this.nodes.concat(t.nodes),this.context)}then(t){return t(this)??this}each(t){return this.nodes.forEach((n,i)=>{t(n,i)}),this}_save(t,n,i){t._mQuery||(t._mQuery={}),Array.isArray(i)?(t._mQuery[n]=t._mQuery[n]??[],t._mQuery[n].push(...i)):i!=null?t._mQuery[n]=i:delete t._mQuery[n]}on(t,n,i){return this.nodes.forEach(r=>{this._save(r,"events",[{event:t,callback:n,options:i}]),r.addEventListener(t,n,i)}),this}off(t,n,i){return this.nodes.forEach(r=>{r.removeEventListener(t,n,i)}),this}dispatchEvent(t,n){let i;const r=["click","dblclick","mousedown","mouseup","mousemove"],s=["keydown","keyup","keypress"];return typeof t=="string"?r.includes(t)?i=new MouseEvent(t,n):s.includes(t)?i=new KeyboardEvent(t,n):i=new Event(t,n):i=t,this.nodes.forEach(o=>{o.dispatchEvent(i)}),this}change(){return this.dispatchEvent("change")}click(){return this.dispatchEvent("click")}static hasEvent(t,n){return"on"+n in t}static _fragment(t){const n=document.createElement("template");return n.innerHTML=t,n.content.childNodes.forEach(i=>{const r=Ne._scriptConvert(i);r!=i&&n.content.replaceChild(r,i)}),n.content}static _scriptConvert(t){const n=i=>{const s=i.ownerDocument.createElement("script");s.text=i.text;const o=i.attributes;for(let a=0;a<o.length;a++)s.setAttribute(o[a].name,o[a].value);return s};return t.tagName=="SCRIPT"&&(t=n(t)),t.querySelectorAll&&t.querySelectorAll("script").forEach(i=>{i.parentNode?.replaceChild(n(i),i)}),t}static _fixProp(t){const n={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 n[t]?n[t]:t}static isSVG(t){return(t||document.documentElement).nodeName.toLowerCase()==="svg"}static createElement(t){return Ne.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,n){const i=this.nodes.length;if(i<1)return this;const r=[];if(typeof n=="string")this.nodes.forEach(s=>{const o=Ne._fragment(n);r.push(...o.children),s[t](o)});else if(n instanceof HTMLElement)this.each(s=>{const o=i===1?n:Ne._fragment(n.outerHTML);r.push(...i===1?[n]:o.children),s[t](o)}),i>1&&n.remove();else if(n instanceof Ne){const s=i==1;n.each(o=>{this.each(a=>{const l=s?o:o.cloneNode(!0);r.push(l),a[t](l),Ne._scriptConvert(l)})}),s||n.remove()}return t=="replaceWith"&&(this.nodes=r),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 n=[];return this.nodes.forEach(i=>{n.push(...Array.from(i.querySelectorAll(t)))}),new Ne(n,this.context)}filter(t){const n=[];return this.nodes.forEach(i=>{(i===t||typeof t=="string"&&i.matches&&i.matches(t))&&n.push(i)}),new Ne(n,this.context)}next(){const t=[];return this.nodes.forEach(n=>{const i=n.nextElementSibling;i&&t.push(i)}),new Ne(t,this.context)}prev(){const t=[];return this.nodes.forEach(n=>{const i=n.previousElementSibling;i&&t.push(i)}),new Ne(t,this.context)}closest(t){const n=[];return this.nodes.forEach(i=>{const r=i.closest(t);r&&n.push(r)}),new Ne(n,this.context)}shadow(t){const n=[];this.nodes.forEach(r=>{r.shadowRoot&&n.push(r.shadowRoot)});const i=new Ne(n,this.context);return t!==void 0?i.find(t):i}parent(t){return this.parents(t,!0)}parents(t,n=!1){const i=[],r=o=>{if(i.indexOf(o)==-1&&i.push(o),!n&&o.parentElement)return r(o.parentElement)};this.nodes.forEach(o=>{o.parentElement&&r(o.parentElement)});const s=new Ne(i,this.context);return t!==void 0?s.filter(t):s}static getComputedStyle(t,n,i){let r;const s=t.style.getPropertyPriority(n);return"getComputedStyle"in window?(r=getComputedStyle.call(window,t,i),r=r.getPropertyValue(n)):r=t.style.getPropertyValue(n),r+(s?"!"+s:"")}css(t,n){if((t===void 0||typeof t=="string")&&n===void 0){const i=this.nodes[0].style;if(typeof t=="string"){const r=i.getPropertyPriority(t),s=i.getPropertyValue(t).trim();return s?s+(r?"!"+r:""):Ne.getComputedStyle(this.nodes[0],t)}else{const r=Object.fromEntries(this.nodes[0].style.cssText.split(";").filter(s=>!!s).map(s=>s.split(":").map(o=>o.trim())));return Object.assign(r,getComputedStyle.call(window,this.nodes[0])),r}}else{let i={};return typeof t=="string"&&n!==void 0?i[t]=n:typeof t=="object"&&(i=t),this.nodes.forEach(r=>{Object.keys(i).forEach(s=>{const o=String(i[s]).toLowerCase().includes("!important")?"important":"";r.style.setProperty(s,String(i[s]).replace(/!important/i,""),o)})}),this}}addClass(t){return this.toggleClass(t,!0)}removeClass(t){return this.toggleClass(t,!1)}toggleClass(t,n){const i=t.split(/[,\s]+/);return this.nodes.forEach(r=>{i.forEach(s=>{if(s.trim()!==""){let o="toggle";n!==void 0&&(o=n?"add":"remove"),r.classList[o](s.trim())}})}),this}hasClass(t){const n=t.split(/[,\s]+/);let i=!1;return this.nodes.forEach(r=>{i=i||n.every(s=>Array.from(r.classList??[]).includes(s.trim()))}),i}attr(t,n){if(n===void 0&&typeof t=="string")return this.nodes[0].getAttribute(t);let i={};return typeof t=="object"?i=t:n!==void 0&&(i[t]=n),this.nodes.forEach(r=>{Object.entries(i).forEach(([s,o])=>{r.setAttribute(s,o)})}),this}removeAttr(t){const n=t.split(/[,\s]+/);return this.nodes.forEach(i=>{n.forEach(r=>{i.removeAttribute(r)})}),this}prop(t,n){if(n===void 0&&typeof t=="string")return this.nodes[0][t];{let i={};return typeof t=="object"?i=t:typeof t=="string"&&n!==void 0&&(i[t]=n),this.nodes.forEach(r=>{Object.entries(i).forEach(([s,o])=>{const a=Ne._fixProp(s);r[a]=o,a=="innerHTML"&&Ne._scriptConvert(r)})}),this}}removeProp(t){const n=t.split(/[,\s]+/);return this.nodes.forEach(i=>{n.forEach(r=>{delete i[Ne._fixProp(r)]})}),this}changeSelectSelected(t){this.nodes.forEach(n=>{if(n instanceof HTMLSelectElement){const i=n.options;for(let r=0,s=i.length;r<s;r++)i[r].value==t?i[r].selected=!0:i[r].selected=!1}})}changeRadioChecked(t){this.nodes.forEach(n=>{n instanceof HTMLInputElement&&(n.value==t?n.checked=!0:n.checked=!1)})}data(t,n){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)&&n===void 0){const i=Object.assign({},this.nodes[0].dataset);return Object.keys(i).forEach(r=>{if(i[r]?.startsWith("[")||i[r]?.startsWith("{"))try{i[r]=JSON.parse(i[r]??"")}catch{}}),typeof t=="string"?i[t]:i}else{let i={};return typeof t=="object"?i=t:typeof t=="string"&&(i[t]=n),this.nodes.forEach(r=>{Object.entries(i).forEach(([s,o])=>{o!=null?r.dataset[s]=o instanceof Object?JSON.stringify(o):o:delete r.dataset[s]})}),this}}removeData(t){const n=t.split(/[,\s]+/);return this.nodes.forEach(i=>{n.forEach(r=>{delete i.dataset[r]})}),this}show(){return this.toggle(!0)}hide(){return this.toggle(!1)}toggle(t){return this.nodes.forEach(n=>{const i=n.style.display,r=getComputedStyle(n).display,s=i=="none"||r=="none";if(s&&(t===void 0||t===!0)){const o=n instanceof HTMLTableRowElement?"table-row":n instanceof HTMLTableCellElement?"table-cell":"block";n.style.display=n._mQuery?.prevDisplay??(i==r&&r!="none"?"":o),this._save(n,"prevDisplay",null)}!s&&(t==null||t===!1)&&(r!="none"&&this._save(n,"prevDisplay",r),n.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)}}const Dt={safeAreaTop:Zt.getCSSVar("--safe-area-inset-top"),safeAreaRight:Zt.getCSSVar("--safe-area-inset-right"),safeAreaBottom:Zt.getCSSVar("--safe-area-inset-bottom"),safeAreaLeft:Zt.getCSSVar("--safe-area-inset-left"),colorPrimary:Zt.getCSSVar("--color-primary"),colorRed:Zt.getCSSVar("--color-red"),colorOrange:Zt.getCSSVar("--color-orange"),colorYellow:Zt.getCSSVar("--color-yellow"),colorGreen:Zt.getCSSVar("--color-green"),colorBlue:Zt.getCSSVar("--color-blue"),colorPurple:Zt.getCSSVar("--color-purple"),colorBlack:Zt.getCSSVar("--color-black"),colorGray0:Zt.getCSSVar("--color-gray-0"),colorGray3:Zt.getCSSVar("--color-gray-3"),colorGray6:Zt.getCSSVar("--color-gray-6"),colorGray9:Zt.getCSSVar("--color-gray-9"),colorGrayCC:Zt.getCSSVar("--color-gray-cc"),colorGrayDD:Zt.getCSSVar("--color-gray-dd"),colorGrayE6:Zt.getCSSVar("--color-gray-e6"),colorGrayEE:Zt.getCSSVar("--color-gray-ee"),colorGrayEF:Zt.getCSSVar("--color-gray-ef"),colorGrayF5:Zt.getCSSVar("--color-gray-f5"),colorGrayFF:Zt.getCSSVar("--color-gray-ff"),fontLineHeight:Zt.getCSSVar("--font-line-height"),fontSize32:Zt.getCSSVar("--font-size-32"),fontSize24:Zt.getCSSVar("--font-size-24"),fontSize20:Zt.getCSSVar("--font-size-20"),fontSize18:Zt.getCSSVar("--font-size-18"),fontSize16:Zt.getCSSVar("--font-size-16"),fontSize14:Zt.getCSSVar("--font-size-14"),fontSize12:Zt.getCSSVar("--font-size-12"),fontSize11:Zt.getCSSVar("--font-size-11"),gap4:Zt.getCSSVar("--gap-4"),gap8:Zt.getCSSVar("--gap-8"),gap12:Zt.getCSSVar("--gap-12"),gap16:Zt.getCSSVar("--gap-16"),gap20:Zt.getCSSVar("--gap-20"),gap40:Zt.getCSSVar("--gap-40"),height44:Zt.getCSSVar("--height-44"),height32:Zt.getCSSVar("--height-32"),borderRadius:Zt.getCSSVar("--border-radius")},Th=function(e){return e[0]==="#"&&(e=e.slice(1)),parseInt(e,16)},vg=function(e,t=1){const n=e>>16&255,i=e>>8&255,r=e&255,s=t<0?0:t>1?1:t;return s===1?"rgb("+n+","+i+","+r+")":"rgba("+n+","+i+","+r+","+s+")"},Nh=function(e,t=1){const n=Th(e);return vg(n,t)};function Ln(e,t){let n=parseInt(e.substring(1,3),16),i=parseInt(e.substring(3,5),16),r=parseInt(e.substring(5,7),16);n==0&&(n=32),i==0&&(i=32),r==0&&(r=32),n=n*(100+t)/100,i=i*(100+t)/100,r=r*(100+t)/100,n=n<255?n:255,i=i<255?i:255,r=r<255?r:255,n=Math.round(n),i=Math.round(i),r=Math.round(r);const s=n.toString(16).length==1?"0"+n.toString(16):n.toString(16),o=i.toString(16).length==1?"0"+i.toString(16):i.toString(16),a=r.toString(16).length==1?"0"+r.toString(16):r.toString(16);return"#"+s+o+a}(function(){let e=0;window.requestAnimationFrame||(window.requestAnimationFrame=function(t){const n=new Date().getTime(),i=Math.max(0,16-(n-e)),r=window.setTimeout(function(){t(n+i)},i);return e=n+i,r}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)})})();const yg=e=>{let t=window.requestAnimationFrame(function n(i){t=window.requestAnimationFrame(n),e(i,t)});return()=>window.cancelAnimationFrame(t)};class _g{id=0;renders={};cancelFn;constructor(){}get length(){let t=0;for(let n in this.renders)t++;return t}register(t){const n=this.id++;this.renders[n]=t,this.run()}run(){this.cancelFn||(this.cancelFn=yg((t,n)=>{const i=[];for(let r in this.renders)this.renders[r](t)===!1&&i.push(parseInt(r));for(let r of i)delete this.renders[r];this.length||this.stop()}))}stop(){this.cancelFn&&(this.cancelFn(),this.cancelFn=void 0)}}const Oh=new _g;let Rr;typeof self>"u"&&typeof process<"u"&&process.hrtime?Rr=function(){const e=process.hrtime();return e[0]*1e3+e[1]/1e6}:typeof self<"u"&&self.performance!==void 0&&self.performance.now!==void 0?Rr=self.performance.now.bind(self.performance):Date.now!==void 0?Rr=Date.now:Rr=function(){return new Date().getTime()};const Hi=Rr;class Vr{static _nextId=0;static nextId(){return Vr._nextId++}}const Hs={Linear:{None:function(e){return e}},Ease:{In:function(e){return Math.pow(e,1.7)}},Quadratic:{In:function(e){return e*e},Out:function(e){return e*(2-e)},InOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)}},Cubic:{In:function(e){return e*e*e},Out:function(e){return--e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)}},Quartic:{In:function(e){return e*e*e*e},Out:function(e){return 1- --e*e*e*e},InOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)}},Quintic:{In:function(e){return e*e*e*e*e},Out:function(e){return--e*e*e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)}},Sinusoidal:{In:function(e){return 1-Math.sin((1-e)*Math.PI/2)},Out:function(e){return Math.sin(e*Math.PI/2)},InOut:function(e){return .5*(1-Math.sin(Math.PI*(.5-e)))}},Exponential:{In:function(e){return e===0?0:Math.pow(1024,e-1)},Out:function(e){return e===1?1:1-Math.pow(2,-10*e)},InOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)}},Circular:{In:function(e){return 1-Math.sqrt(1-e*e)},Out:function(e){return Math.sqrt(1- --e*e)},InOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)}},Elastic:{In:function(e){return e===0?0:e===1?1:-Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI)},Out:function(e){return e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e-.1)*5*Math.PI)+1},InOut:function(e){return e===0?0:e===1?1:(e*=2,e<1?-.5*Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI):.5*Math.pow(2,-10*(e-1))*Math.sin((e-1.1)*5*Math.PI)+1)}},Back:{In:function(e){return e===1?1:e*e*((1.70158+1)*e-1.70158)},Out:function(e){return e===0?0:--e*e*((1.70158+1)*e+1.70158)+1},InOut:function(e){const t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)}},Bounce:{In:function(e){return 1-Hs.Bounce.Out(1-e)},Out:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},InOut:function(e){return e<.5?Hs.Bounce.In(e*2)*.5:Hs.Bounce.Out(e*2-1)*.5+.5}},generatePow:function(e=4){return e=e<Number.EPSILON?Number.EPSILON:e,e=e>1e4?1e4:e,{In:function(t){return t**e},Out:function(t){return 1-(1-t)**e},InOut:function(t){return t<.5?(t*2)**e/2:(1-(2-t*2)**e)/2+.5}}},random:function(e){return Math.random()},createStep:function(e){return function(t){return Math.floor(t*e)/e}},createNoisyEasing:function(e,t=.1){const n=1-t;return function(i){return t*Math.random()+n*e(i)}}},Ga=Hs,Fr={Utils:{Linear:function(e,t,n){return(t-e)*n+e},Factorial:function(){const e=[1];return function(t){let n=1;if(e[t])return e[t];for(let i=t;i>1;i--)n*=i;return e[t]=n,n}}(),Bernstein:function(e,t){const n=Fr.Utils.Factorial;return n(e)/n(t)/n(e-t)},CatmullRom:function(e,t,n,i,r){const s=(n-e)*.5,o=(i-t)*.5,a=r*r,l=r*a;return(2*t-2*n+s+o)*l+(-3*t+3*n-2*s-o)*a+s*r+t}},Linear:function(e,t){const n=e.length-1,i=n*t,r=Math.floor(i),s=Fr.Utils.Linear;return t<0?s(e[0],e[1],i):t>1?s(e[n],e[n-1],n-i):s(e[r],e[r+1>n?n:r+1],i-r)},Bezier:function(e,t){let n=0;const i=e.length-1,r=Math.pow,s=Fr.Utils.Bernstein;for(let o=0;o<=i;o++)n+=r(1-t,i-o)*r(t,o)*e[o]*s(i,o);return n},CatmullRom:function(e,t){const n=e.length-1;let i=n*t,r=Math.floor(i);const s=Fr.Utils.CatmullRom;return e[0]===e[n]?(t<0&&(r=Math.floor(i=n*(1+t))),s(e[(r-1+n)%n],e[r],e[(r+1)%n],e[(r+2)%n],i-r)):t<0?e[0]-(s(e[0],e[0],e[1],e[1],-i)-e[0]):t>1?e[n]-(s(e[n],e[n],e[n-1],e[n-1],i-n)-e[n]):s(e[r?r-1:0],e[r],e[n<r+1?n:r+1],e[n<r+2?n:r+2],i-r)}},Ha=Fr;class Ph{_tweens={};_tweensAddedDuringUpdate={};getAll(){return Object.keys(this._tweens).map(t=>this._tweens[t])}removeAll(){this._tweens={}}add(t){this._tweens[t.getId()]=t,this._tweensAddedDuringUpdate[t.getId()]=t}remove(t){delete this._tweens[t.getId()],delete this._tweensAddedDuringUpdate[t.getId()]}update(t=Hi(),n=!1){let i=Object.keys(this._tweens);if(i.length===0)return!1;for(;i.length>0;){this._tweensAddedDuringUpdate={};for(let r=0;r<i.length;r++){const s=this._tweens[i[r]],o=!n;s&&s.update(t,o)===!1&&!n&&delete this._tweens[i[r]]}i=Object.keys(this._tweensAddedDuringUpdate)}return!0}}const sn=new Ph;class bg{constructor(t,n=sn){this._object=t,this._group=n}_id=Vr.nextId();_isPlaying=!1;_startTime=0;_delayTime=0;_durationTime=1e3;_isPaused=!1;_pauseStartTime=0;_initialRepeat=0;_repeat=0;_repeatDelayTime;_yoyo=!1;_reversed=!1;_valuesStart={};_valuesEnd={};_valuesStartRepeat={};_easingFunction=Ga.Linear.None;_interpolationFunction=Ha.Linear;_chainedTweens=[];_isChainStopped=!1;_onStartCallback;_onStartCallbackFired=!1;_onEveryStartCallback;_onEveryStartCallbackFired=!1;_onUpdateCallback;_onRepeatCallback;_onCompleteCallback;_onStopCallback;_goToEnd=!1;getId(){return this._id}isPlaying(){return this._isPlaying}isPaused(){return this._isPaused}to(t,n){return this._valuesEnd=Object.create(t),n!==void 0&&(this._durationTime=n),this}duration(t=1e3){return this._durationTime=t,this}start(t=Hi()){if(this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(const n in this._valuesStartRepeat)this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n]}return this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=t,this._startTime+=this._delayTime,this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat),this}_setupProperties(t,n,i,r){for(const s in i){const o=t[s],a=Array.isArray(o),l=a?"array":typeof o,p=!a&&Array.isArray(i[s]);if(!(l==="undefined"||l==="function")){if(p){let m=i[s];if(m.length===0)continue;m=m.map(this._handleRelativeValue.bind(this,o)),i[s]=[o].concat(m)}if((l==="object"||a)&&o&&!p){n[s]=a?[]:{};for(const m in o)n[s][m]=o[m];r[s]=a?[]:{},this._setupProperties(o,n[s],i[s],r[s])}else typeof n[s]>"u"&&(n[s]=o),a||(n[s]*=1),p?r[s]=i[s].slice().reverse():r[s]=n[s]||0}}}stop(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._group&&this._group.remove(this),this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this}end(){return this._goToEnd=!0,this.update(1/0),this}pause(t=Hi()){return this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStartTime=t,this._group&&this._group.remove(this),this)}resume(t=Hi()){return!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=t-this._pauseStartTime,this._pauseStartTime=0,this._group&&this._group.add(this),this)}stopChainedTweens(){for(let t=0,n=this._chainedTweens.length;t<n;t++)this._chainedTweens[t].stop();return this}group(t=sn){return this._group=t,this}delay(t=0){return this._delayTime=t,this}repeat(t=0){return this._initialRepeat=t,this._repeat=t,this}repeatDelay(t){return this._repeatDelayTime=t,this}yoyo(t=!1){return this._yoyo=t,this}easing(t=Ga.Linear.None){return this._easingFunction=t,this}interpolation(t=Ha.Linear){return this._interpolationFunction=t,this}chain(...t){return this._chainedTweens=t,this}onStart(t){return this._onStartCallback=t,this}onEveryStart(t){return this._onEveryStartCallback=t,this}onUpdate(t){return this._onUpdateCallback=t,this}onRepeat(t){return this._onRepeatCallback=t,this}onComplete(t){return this._onCompleteCallback=t,this}onStop(t){return this._onStopCallback=t,this}update(t=Hi(),n=!0){if(this._isPaused)return!0;let i,r;const s=this._startTime+this._durationTime;if(!this._goToEnd&&!this._isPlaying){if(t>s)return!1;n&&this.start(t)}if(this._goToEnd=!1,t<this._startTime)return!0;this._onStartCallbackFired===!1&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),this._onEveryStartCallbackFired===!1&&(this._onEveryStartCallback&&this._onEveryStartCallback(this._object),this._onEveryStartCallbackFired=!0),r=(t-this._startTime)/this._durationTime,r=this._durationTime===0||r>1?1:r;const o=this._easingFunction(r);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,o),this._onUpdateCallback&&this._onUpdateCallback(this._object,r),r===1)if(this._repeat>0){isFinite(this._repeat)&&this._repeat--;for(i in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[i]=="string"&&(this._valuesStartRepeat[i]=this._valuesStartRepeat[i]+parseFloat(this._valuesEnd[i])),this._yoyo&&this._swapEndStartRepeatValues(i),this._valuesStart[i]=this._valuesStartRepeat[i];return this._yoyo&&(this._reversed=!this._reversed),this._repeatDelayTime!==void 0?this._startTime=t+this._repeatDelayTime:this._startTime=t+this._delayTime,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1,!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(let a=0,l=this._chainedTweens.length;a<l;a++)this._chainedTweens[a].start(this._startTime+this._durationTime);return this._isPlaying=!1,!1}return!0}_updateProperties(t,n,i,r){for(const s in i){if(n[s]===void 0)continue;const o=n[s]||0;let a=i[s];const l=Array.isArray(t[s]),p=Array.isArray(a);!l&&p?t[s]=this._interpolationFunction(a,r):typeof a=="object"&&a?this._updateProperties(t[s],o,a,r):(a=this._handleRelativeValue(o,a),typeof a=="number"&&(t[s]=o+(a-o)*r))}}_handleRelativeValue(t,n){return typeof n!="string"?n:n.charAt(0)==="+"||n.charAt(0)==="-"?t+parseFloat(n):parseFloat(n)}_swapEndStartRepeatValues(t){const n=this._valuesStartRepeat[t],i=this._valuesEnd[t];typeof i=="string"?this._valuesStartRepeat[t]=this._valuesStartRepeat[t]+parseFloat(i):this._valuesStartRepeat[t]=i,this._valuesEnd[t]=n}}const xg=bg,wg=Vr.nextId,Eg=sn.getAll.bind(sn),Cg=sn.removeAll.bind(sn),kg=sn.add.bind(sn),Sg=sn.remove.bind(sn),Tg=sn.update.bind(sn),$t={now:Hi,Sequence:Vr,Easing:Ga,Interpolation:Ha,Group:Ph,Tween:xg,nextId:wg,getAll:Eg,removeAll:Cg,add:kg,remove:Sg,update:Tg};function Ih(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 Ng={attributeName:["display"],values:[["block","block"]]},qe={easeName:"linear",begin:0,dur:300,repeatCount:1,direction:"normal",fill:"freeze",keyTimes:[0,1]};class xn{currentAnimateName;objects=[];actions=[];constructor(){}static toTween(t,n,i){const r=i?.onUpdate??(()=>{}),s=i?.duration??1e3,o=i?.delay??0,a=i?.easeFunction??$t.Easing.Linear.None,l=i?.repeat??0,p=i?.yoyo??!1,m=new $t.Tween(t).to(n,s).delay(o).easing(a).repeat(l).yoyo(p).onUpdate(function(g,d){r(g,d)});return i?.interpolationFunction&&m.interpolation(i.interpolationFunction),{tween:m,startAuto:()=>{m.start(),Oh.register(()=>m.update())}}}hasObjects(){return this.objects.length>0}fromDOM(t){return Array.isArray(t)||(t=[t]),this.objects=[],t.forEach(n=>{const i=gg(n);this.objects.push({width:parseFloat(i.css("width")),height:parseFloat(i.css("height")),dom:i,el:n,originCSSObject:i.css()})}),this}toCSS(t,...n){if(!this.hasObjects())return;switch(this.currentAnimateName=t,this[t](...n),this.objects[0].dom?.parent().css({position:"relative",perspective:"1000px",overflow:"hidden"}),t){default:this.objects.forEach((s,o)=>{s.dom?.css({position:"absolute","z-index":String(1e3+o),"transform-style":"preserve-3d","backface-visibility":"hidden"})});break}let i=0;const r=()=>{this.actions.forEach((s,o)=>{const a=this.objects[s.objectIndex];let l=[],p=[];Array.isArray(s.attributeName)?(l=s.attributeName,p=s.values):s.attributeName&&(l=[s.attributeName],p=[s.values]);const m=s.keyTimes.length,g=js(a.dom?.css("transform")??"");let d=s.begin;s.keyTimes.forEach((_,N)=>{const C={_matrix:g};l.forEach((M,z)=>{const P=p[z][s.direction=="reverse"?m-N-1:N];this._transformAttributeToCSSObjectUseMatrix(M,P,C)}),N==0?a.dom?.css(Object.assign(C,{transition:""})):(setTimeout(()=>{a.dom?.css(Object.assign(C,{transition:`all ${s.realKeyTimes[N]}ms cubic-bezier(${s.keySplines[N-1].join(",")})`}))},d),d+=s.realKeyTimes[N])}),setTimeout(()=>{s.fill==="remove"&&a.dom?.css(a.originCSSObject??{}),o==this.actions.length-1&&(typeof s.repeatCount=="number"&&++i<s.repeatCount||s.repeatCount=="infinite")&&requestAnimationFrame(()=>{this.currentAnimateName===t&&r()})},s.begin+s.dur)})};r()}_transformAttributeToCSSObjectUseMatrix(t,n,i={}){switch(t){case"translateTo":i._matrix.translateTo(n[0]??0,n[1]??0);break;case"translate":i._matrix.translate(n[0]??0,n[1]??0);break;case"rotate":i._matrix.rotate(n??0);break;case"rotateXTo":i._matrix.rotateXTo(n??0);break;case"rotateYTo":i._matrix.rotateYTo(n??0);break;case"scaleTo":typeof n=="number"?i._matrix.scaleTo(n??1):i._matrix.scaleTo(n[0]??1,n[1]??1);break;case"scale":typeof n=="number"?i._matrix.scale(n??1):i._matrix.scale(n[0]??1,n[1]??1);break;case"scaleX":i._matrix.scale(n??1,1);break;case"scaleY":i._matrix.scale(1,n??1);break;default:Object.assign(i,{[t]:`${n??""}`});break}return Object.assign(i,{transform:i._matrix.toString()}),i}_addAction(t,n=!1){return this.actions=n?[]:this.actions,Array.isArray(t)||(t=[t]),t.forEach(i=>{this.actions.push(Object.assign(i,{realKeyTimes:i.keyTimes.map(r=>i.dur*r)}))}),this}_addAnimate(t=Ng,n=qe,i=0,r=!1){const s=n.keyTimes??[0,1],o=[];return s.forEach((a,l)=>{l>0&&o.push(Ih(n.easeName??"linear"))}),this._addAction({objectIndex:i,attributeName:t.attributeName,values:t.values,begin:n.begin??0,dur:n.dur??300,keyTimes:s,keySplines:o,repeatCount:n.repeatCount??1,direction:n.direction??"normal",fill:n.fill??"freeze"},r),this}_predefinedAnimate(t,n,i,r,s=qe,o=this.objects.length-1){let a=!0,l=!1,p=!1,m=!1;const g=this.objects.length;o=(o+g)%g;const d=(o-1+g)%g,_=(o+1+g)%g,N=this.objects[o],C=this.objects[d],M=this.objects[_];if(C&&d!==o){const z=t(C);z&&(this._addAnimate(z,s,d,a),a=!1,l=!0)}if(N){const z=n(N);z&&(this._addAnimate(z,s,o,a),a=!1,p=!0)}if(M&&_!==o){const z=i(M);z&&(this._addAnimate(z,s,_,a),a=!1,m=!0)}this.objects.forEach((z,P)=>{if(!(P==d&&l||P==o&&p||P==_&&m)){const $=r(z);$&&(this._addAnimate($,s,P,a),a=!1)}})}flip(t=qe,n=this.objects.length-1){const i=n-1,r=this.objects[i],s=this.objects[n],o=js(s.dom?.css("transform")??""),a=o.clone();r.dom?.show(),r.dom?.css("opacity","1");const l=r.el?.getBoundingClientRect();r.dom?.css("opacity","0"),s.dom?.show(),s.dom?.css("opacity","1");const p=s.el?.getBoundingClientRect(),m=r.dom?.css("background-color"),g=s.dom?.css("background-color");a.translate((l?.left??0)-(p?.left??0),(l?.top??0)-(p?.top??0)),a.scale((l?.width??1)/(p?.width??1),(l?.height??1)/(p?.height??1));const d={transform:a.toString(),transition:""};m&&Object.assign(d,{"background-color":m}),s.dom?.css(d);const _={transform:o.toString(),transition:`all ${t.dur}ms cubic-bezier(${Ih(t.easeName??"linear").join(",")})`};g&&Object.assign(_,{"background-color":g}),setTimeout(()=>{s.dom?.css(_)},t.begin)}slideLeft(t=qe,n=this.objects.length-1){this._predefinedAnimate(i=>({attributeName:["translateTo"],values:[[[0,0],[-i.width,0]]]}),i=>({attributeName:["opacity","translateTo"],values:[[1,1],[[i.width,0],[0,0]]]}),i=>{},i=>({attributeName:["translateTo"],values:[[[-i.width,0],[-i.width,0]]]}),t,n)}slideRight(t=qe,n=this.objects.length-1){this._predefinedAnimate(i=>{},i=>({attributeName:["opacity","translateTo"],values:[[1,1],[[-i.width,0],[0,0]]]}),i=>({attributeName:["translateTo"],values:[[[0,0],[i.width,0]]]}),i=>({attributeName:["translateTo"],values:[[[i.width,0],[i.width,0]]]}),t,n)}slideDown(t=qe,n=this.objects.length-1){this._predefinedAnimate(i=>({attributeName:["translateTo"],values:[[[0,0],[0,i.height]]]}),i=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,-i.height],[0,0]]]}),i=>{},i=>({attributeName:["translateTo"],values:[[[0,i.height],[0,i.height]]]}),t,n)}slideUp(t=qe,n=this.objects.length-1){this._predefinedAnimate(i=>({attributeName:["translateTo"],values:[[[0,0],[0,-i.height]]]}),i=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,i.height],[0,0]]]}),i=>{},i=>({attributeName:["translateTo"],values:[[[0,-i.height],[0,-i.height]]]}),t,n)}flipLeft(t=qe,n=this.objects.length-1){this._predefinedAnimate(i=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[0,180]]}),i=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[-180,0]]}),i=>{},i=>({attributeName:["opacity"],values:[[0,0]]}),t,n)}flipRight(t=qe,n=this.objects.length-1){this._predefinedAnimate(i=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[0,-180]]}),i=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[180,0]]}),i=>{},i=>({attributeName:["opacity"],values:[[0,0]]}),t,n)}flipDown(t=qe,n=this.objects.length-1){this._predefinedAnimate(i=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[0,-180]]}),i=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[180,0]]}),i=>{},i=>({attributeName:["opacity"],values:[[0,0]]}),t,n)}flipUp(t=qe,n=this.objects.length-1){this._predefinedAnimate(i=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[0,180]]}),i=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[-180,0]]}),i=>{},i=>({attributeName:["opacity"],values:[[0,0]]}),t,n)}popIn(t=qe,n=this.objects.length-1){this._predefinedAnimate(i=>{},i=>({attributeName:["translateTo","scaleTo","opacity"],values:[[[0,0],[0,0]],[.8,1],[0,1]]}),i=>{},i=>({attributeName:["opacity"],values:[[0,0]]}),t,n)}popOut(t=qe,n=this.objects.length-1){this._predefinedAnimate(i=>{},i=>({attributeName:["translateTo","scaleTo","opacity"],values:[[[0,0],[0,0]],[1,1.2],[1,0]]}),i=>{},i=>({attributeName:["opacity"],values:[[0,0]]}),t,n)}rotate(t=qe,n=this.objects.length-1){Object.assign(t,{keyTimes:[0,1]});const i=t.degree??360;this._predefinedAnimate(r=>{},r=>({attributeName:["opacity","rotate"],values:[[1,1],[0,i]]}),r=>{},r=>({attributeName:["opacity"],values:[[0,0]]}),t,n)}}class Og{map;constructor(t,n=120.619585,i=31.299379,r=18){this.map=new T.Map(t),this.map.centerAndZoom(new T.LngLat(n,i),r)}}const Pg=Kt({__name:"Icon.ce",props:{icon:{default:"mdi-light:home"},color:{default:Dt.colorPrimary}},setup(e){const t=e;return(n,i)=>(xt(),At("span",{class:"icon",style:Lt(["color: "+n.color])},[Jt(he(Xu),{icon:t.icon,color:n.color},null,8,["icon","color"])],4))}}),Ig=`.icon[data-v-b2d9b612]{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;font-size:1em}
60
+ `,te=(e,t)=>{const n=e.__vccOpts||e;for(const[i,r]of t)n[i]=r;return n},Mh=te(Pg,[["styles",[Ig]],["__scopeId","data-v-b2d9b612"]]),Mg=Kt({__name:"Icon",props:{icon:{default:"mdi-light:home"},color:{default:Dt.colorPrimary}},setup(e){const t=e;return(n,i)=>(xt(),At("span",{class:"icon",style:Lt(["color: "+n.color])},[Jt(he(Xu),{icon:t.icon,color:n.color},null,8,["icon","color"])],4))}}),z_="",wn=te(Mg,[["__scopeId","data-v-8789b4ce"]]),zr=te(Kt({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(e,{expose:t,emit:n}){const i=e,r=n,s=Ct(),o=Ct(i.borderColor),a=Ct(i.bgColor),l=Ct(i.fontColor),p=Ct(i.borderColor),m=Ct(i.bgColor);function g(P){switch(P){case"outline":o.value=i.borderColor??Dt.colorPrimary,a.value=i.bgColor??Dt.colorGrayFF,l.value=i.fontColor??Dt.colorPrimary,p.value=o.value,m.value=a.value;break;default:o.value=i.borderColor??Dt.colorPrimary,a.value=i.bgColor??Dt.colorPrimary,l.value=i.fontColor??Dt.colorGrayFF,p.value=o.value,m.value=a.value;break}}se(()=>i.stylePattern,()=>{g(i.stylePattern)},{immediate:!0});const d=Ct(i.isDisabled?"0.6":"1"),_=Ct(i.isDisabled?"not-allowed":"pointer");let N=!1;const C=()=>{i.isDisabled||(N=!0,o.value=Ln(p.value,10),a.value=Ln(m.value,10))},M=()=>{i.isDisabled||(N=!1,o.value=p.value,a.value=m.value)},z=()=>{i.isDisabled||(o.value=Ln(p.value,-10),a.value=Ln(m.value,-10),setTimeout(()=>{N?C():M()},150),r("ceClick"),r("click"))};return t({wrapper:s}),(P,$)=>(xt(),At("div",{ref_key:"wrapper",ref:s,class:"button",style:Lt([`opacity: ${d.value}`,`border: 1px solid ${o.value}`,`background-color: ${a.value}`,`color: ${l.value}`,`border-radius: ${i.borderRadius}`,`height: ${i.height}`,`line-height: ${i.height}`,`font-size: ${i.fontSize}`,`cursor: ${_.value}`]),onMouseover:C,onMouseleave:M,onClick:z},[A("label",{class:"label truncate",style:Lt({padding:"0 "+P.padding,cursor:_.value})},[pe(P.$slots,"default",{},()=>[P.icon&&P.iconPosition==="left"?(xt(),be(wn,{key:0,icon:P.icon,color:l.value,style:Lt({marginRight:he(Dt).gap4,cursor:_.value})},null,8,["icon","color","style"])):de("",!0),A("span",{style:Lt({cursor:_.value})},ke(P.label),5),P.icon&&P.iconPosition==="right"?(xt(),be(wn,{key:1,icon:P.icon,color:l.value,style:Lt({marginLeft:he(Dt).gap4,cursor:_.value})},null,8,["icon","color","style"])):de("",!0)],!0)],4)],36))}}),[["styles",[`.button[data-v-6d5475a7]{box-sizing:border-box;display:inline-flex;justify-content:center;align-items:center;z-index:0}.label[data-v-6d5475a7]{display:inline-flex;justify-content:center;align-items:center}
61
+ `]],["__scopeId","data-v-6d5475a7"]]),G_="",Ag={class:"content-relative",style:{position:"relative",width:"100%",height:"100%"}},Dg=Kt({customOptions:{},inheritAttrs:!0,__name:"Overlay",props:{visible:{type:Boolean},bgColor:{default:Nh(Dt.colorGray0,.25)},isGlobal:{type:Boolean,default:!0}},setup(e,{expose:t,emit:n}){const i=e;function r(s){s?(document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden"):(document.documentElement.style.overflow="",document.body.style.overflow="")}return se(()=>i.visible,()=>{r(i.visible)},{immediate:!0}),t({}),(s,o)=>i.visible?(xt(),At("div",{key:0,class:"overlay",style:Lt([{"z-index":"2000",inset:"0"},[`position: ${i.isGlobal?"fixed":"absolute"};`,"background-color: "+i.bgColor]])},[A("div",{class:"content-fixed",style:Lt([{"z-index":"2001",inset:"0","overflow-y":"auto"},[`position: ${i.isGlobal?"fixed":"absolute"};`]])},[A("div",Ag,[pe(s.$slots,"default",{},void 0,!0)])],4)],4)):de("",!0)}}),H_="",Ti=te(Dg,[["__scopeId","data-v-f08aab15"]]),Lg=Kt({customOptions:{Overlay:Ti},inheritAttrs:!0,__name:"Pop",props:{closeWhenClickOverlay:{type:Boolean,default:!0},directionFrom:{default:"bottom"},openDurTime:{default:200},closeDurTime:{default:150},isGlobal:{type:Boolean,default:!0}},emits:["open","close"],setup(e,{expose:t,emit:n}){const i=e,r=n,s=Ct();let o;const a=tn({}),l=tn({});se(()=>i.directionFrom,()=>{switch(i.directionFrom){case"absolute":o="",a.display="block";break;case"top":o="slideDown",a.display="block",l.width="100%",l.top="0",l.left="0";break;case"left":o="slideRight",a.display="block",l.height="100%",l.top="0",l.left="0";break;case"right":o="slideLeft",a.display="block",l.height="100%",l.top="0",l.right="0";break;case"bottom":o="slideUp",a.display="block",l.width="100%",l.bottom="0",l.left="0";break;case"center":default:o="popIn",a.display="flex",a.justifyContent="center",a.alignItems="center";break}},{immediate:!0});const p=new xn,m=(C=!0)=>{o&&(C?se(s,()=>{s.value&&(p.fromDOM(s.value),p.toCSS(o,{easeName:"ease",dur:i.openDurTime}))},{once:!0}):p.toCSS(o,{easeName:"ease",dur:i.closeDurTime,direction:"reverse"}))},g=Ct(!1);function d(C){C.target.contains(s.value)&&i.closeWhenClickOverlay&&N()}function _(){g.value=!0,m(!0),r("open")}function N(){m(!1),r("close"),setTimeout(()=>{g.value=!1},i.closeDurTime)}return t({open:_,close:N}),(C,M)=>(xt(),be(Ti,{visible:g.value,isGlobal:i.isGlobal},{default:fe(()=>[A("div",{class:"pop-parent",style:Lt([{position:"relative",width:"100%",height:"100%"},a]),onClick:d},[A("div",{ref_key:"pop",ref:s,class:"pop",style:Lt([{position:"absolute"},l])},[pe(C.$slots,"default",{},void 0,!0)],4)],4)]),_:3},8,["visible","isGlobal"]))}}),U_="",$e=te(Lg,[["__scopeId","data-v-88fef783"]]),$g={id:"page"},Rg={id:"main"},Vg={style:{height:"100%","background-color":"#ffffff"}},Fg={style:{height:"100%","background-color":"#ffffff"}},Ah=te(Kt({customOptions:{Pop:$e},inheritAttrs:!0,__name:"MobileLayout.ce",props:{designWidth:{default:750}},setup(e,{expose:t,emit:n}){M0(e.designWidth);const r=Ct(),s=Ct(),o=Ct(),a=Ct();return t({openLeft:()=>{r.value?.open()},closeLeft:()=>{r.value?.close()},openRight:()=>{s.value?.open()},closeRight:()=>{s.value?.close()}}),(d,_)=>(xt(),At("div",$g,[A("header",{id:"header",ref_key:"refHeader",ref:o},[pe(d.$slots,"header",{},void 0,!0)],512),A("div",Rg,[A("div",null,[pe(d.$slots,"main",{},void 0,!0)])]),A("footer",{id:"footer",ref_key:"refFooter",ref:a},[pe(d.$slots,"footer",{},void 0,!0)],512),Jt($e,{ref_key:"popLeftRef",ref:r,"direction-from":"left",isGlobal:!1},{default:fe(()=>[A("div",Vg,[pe(d.$slots,"left",{},void 0,!0)])]),_:3},512),Jt($e,{ref_key:"popRightRef",ref:s,"direction-from":"right",isGlobal:!1},{default:fe(()=>[A("div",Fg,[pe(d.$slots,"right",{},void 0,!0)])]),_:3},512)]))}}),[["styles",[`#page[data-v-7331747c]{width:100%;height:100%;position:relative;overflow:hidden;display:flex;flex-direction:column}#main[data-v-7331747c]{flex:1 1 auto;width:100%;overflow-y:scroll;display:flex;flex-direction:column}#main>div[data-v-7331747c]{flex:1 1 auto;width:100%}#main>div[data-v-7331747c]>:nth-child(1){min-height:100%}#header[data-v-7331747c],#footer[data-v-7331747c]{flex:0 0 auto}
62
+ `]],["__scopeId","data-v-7331747c"]]),zg={class:"content-relative",style:{position:"relative",width:"100%",height:"100%"}},jg=Kt({customOptions:{},inheritAttrs:!0,__name:"Overlay.ce",props:{visible:{type:Boolean},bgColor:{default:Nh(Dt.colorGray0,.25)},isGlobal:{type:Boolean,default:!0}},setup(e,{expose:t,emit:n}){const i=e;function r(s){s?(document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden"):(document.documentElement.style.overflow="",document.body.style.overflow="")}return se(()=>i.visible,()=>{r(i.visible)},{immediate:!0}),t({}),(s,o)=>i.visible?(xt(),At("div",{key:0,class:"overlay",style:Lt([{"z-index":"2000",inset:"0"},[`position: ${i.isGlobal?"fixed":"absolute"};`,"background-color: "+i.bgColor]])},[A("div",{class:"content-fixed",style:Lt([{"z-index":"2001",inset:"0","overflow-y":"auto"},[`position: ${i.isGlobal?"fixed":"absolute"};`]])},[A("div",zg,[pe(s.$slots,"default",{},void 0,!0)])],4)],4)):de("",!0)}}),Ua=te(jg,[["styles",[""]],["__scopeId","data-v-a2310476"]]),Ni=te(Kt({customOptions:{Overlay:Ti},inheritAttrs:!0,__name:"Pop.ce",props:{closeWhenClickOverlay:{type:Boolean,default:!0},directionFrom:{default:"bottom"},openDurTime:{default:200},closeDurTime:{default:150},isGlobal:{type:Boolean,default:!0}},emits:["open","close"],setup(e,{expose:t,emit:n}){const i=e,r=n,s=Ct();let o;const a=tn({}),l=tn({});se(()=>i.directionFrom,()=>{switch(i.directionFrom){case"absolute":o="",a.display="block";break;case"top":o="slideDown",a.display="block",l.width="100%",l.top="0",l.left="0";break;case"left":o="slideRight",a.display="block",l.height="100%",l.top="0",l.left="0";break;case"right":o="slideLeft",a.display="block",l.height="100%",l.top="0",l.right="0";break;case"bottom":o="slideUp",a.display="block",l.width="100%",l.bottom="0",l.left="0";break;case"center":default:o="popIn",a.display="flex",a.justifyContent="center",a.alignItems="center";break}},{immediate:!0});const p=new xn,m=(C=!0)=>{o&&(C?se(s,()=>{s.value&&(p.fromDOM(s.value),p.toCSS(o,{easeName:"ease",dur:i.openDurTime}))},{once:!0}):p.toCSS(o,{easeName:"ease",dur:i.closeDurTime,direction:"reverse"}))},g=Ct(!1);function d(C){C.target.contains(s.value)&&i.closeWhenClickOverlay&&N()}function _(){g.value=!0,m(!0),r("open")}function N(){m(!1),r("close"),setTimeout(()=>{g.value=!1},i.closeDurTime)}return t({open:_,close:N}),(C,M)=>(xt(),be(Ti,{visible:g.value,isGlobal:i.isGlobal},{default:fe(()=>[A("div",{class:"pop-parent",style:Lt([{position:"relative",width:"100%",height:"100%"},a]),onClick:d},[A("div",{ref_key:"pop",ref:s,class:"pop",style:Lt([{position:"absolute"},l])},[pe(C.$slots,"default",{},void 0,!0)],4)],4)]),_:3},8,["visible","isGlobal"]))}}),[["styles",[""]],["__scopeId","data-v-2a84faee"]]),Bg=Kt({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(e,{expose:t,emit:n}){const i=e,r=n,s=Ct(),o=Ct(i.borderColor),a=Ct(i.bgColor),l=Ct(i.fontColor),p=Ct(i.borderColor),m=Ct(i.bgColor);function g(P){switch(P){case"outline":o.value=i.borderColor??Dt.colorPrimary,a.value=i.bgColor??Dt.colorGrayFF,l.value=i.fontColor??Dt.colorPrimary,p.value=o.value,m.value=a.value;break;default:o.value=i.borderColor??Dt.colorPrimary,a.value=i.bgColor??Dt.colorPrimary,l.value=i.fontColor??Dt.colorGrayFF,p.value=o.value,m.value=a.value;break}}se(()=>i.stylePattern,()=>{g(i.stylePattern)},{immediate:!0});const d=Ct(i.isDisabled?"0.6":"1"),_=Ct(i.isDisabled?"not-allowed":"pointer");let N=!1;const C=()=>{i.isDisabled||(N=!0,o.value=Ln(p.value,10),a.value=Ln(m.value,10))},M=()=>{i.isDisabled||(N=!1,o.value=p.value,a.value=m.value)},z=()=>{i.isDisabled||(o.value=Ln(p.value,-10),a.value=Ln(m.value,-10),setTimeout(()=>{N?C():M()},150),r("ceClick"),r("click"))};return t({wrapper:s}),(P,$)=>(xt(),At("div",{ref_key:"wrapper",ref:s,class:"button",style:Lt([`opacity: ${d.value}`,`border: 1px solid ${o.value}`,`background-color: ${a.value}`,`color: ${l.value}`,`border-radius: ${i.borderRadius}`,`height: ${i.height}`,`line-height: ${i.height}`,`font-size: ${i.fontSize}`,`cursor: ${_.value}`]),onMouseover:C,onMouseleave:M,onClick:z},[A("label",{class:"label truncate",style:Lt({padding:"0 "+P.padding,cursor:_.value})},[pe(P.$slots,"default",{},()=>[P.icon&&P.iconPosition==="left"?(xt(),be(wn,{key:0,icon:P.icon,color:l.value,style:Lt({marginRight:he(Dt).gap4,cursor:_.value})},null,8,["icon","color","style"])):de("",!0),A("span",{style:Lt({cursor:_.value})},ke(P.label),5),P.icon&&P.iconPosition==="right"?(xt(),be(wn,{key:1,icon:P.icon,color:l.value,style:Lt({marginLeft:he(Dt).gap4,cursor:_.value})},null,8,["icon","color","style"])):de("",!0)],!0)],4)],36))}}),Z_="",xe=te(Bg,[["__scopeId","data-v-f3d3c7ec"]]),Gg={class:"dialog-wrap"},Hg={class:"dialog"},Ug={key:0,class:"title"},Wg={key:0,class:"title-inner truncate"},qg={class:"custom-content"},Yg={key:1,class:"btns"},Wa=te(Kt({customOptions:{Overlay:Ti,Pop:$e,Icon:wn,Button:xe},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(e,{expose:t,emit:n}){const i=e,r=n,s=Ct();function o(){s.value.open(),r("open")}function a(){s.value.close(),r("close")}function l(){a(),r("cancel")}function p(){a(),r("confirm")}return t({open:o,close:a}),(m,g)=>(xt(),be($e,{ref_key:"popRef",ref:s,directionFrom:"center",closeWhenClickOverlay:i.closeWhenClickOverlay,openDurTime:i.openDurTime,closeDurTime:i.closeDurTime},{default:fe(()=>[A("div",Gg,[A("div",Hg,[m.showTitle||m.showClose?(xt(),At("div",Ug,[m.showTitle?(xt(),At("div",Wg,ke(m.title),1)):de("",!0),m.showClose?(xt(),be(wn,{key:1,class:"close",icon:"ic:baseline-close",color:he(Dt).colorGrayCC,onClick:a},null,8,["color"])):de("",!0)])):de("",!0),A("div",qg,[pe(m.$slots,"default",{},()=>[De(ke(m.content),1)],!0)]),m.showCancel||m.showConfirm?(xt(),At("div",Yg,[m.showCancel?(xt(),be(xe,{key:0,onClick:l,class:"btn",bgColor:he(Dt).colorGrayE6,borderColor:he(Dt).colorGrayE6,fontColor:he(Dt).colorGray3,borderRadius:"0"},{default:fe(()=>[De(" 取消 ")]),_:1},8,["bgColor","borderColor","fontColor"])):de("",!0),m.showConfirm?(xt(),be(xe,{key:1,onClick:p,class:"btn",borderRadius:"0"},{default:fe(()=>[De(" 确定 ")]),_:1})):de("",!0)])):de("",!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}
63
+ `]],["__scopeId","data-v-98fe6558"]]),Xg=Kt({__name:"SVGLoading.ce",props:{width:{default:"4em"},color:{default:Dt.colorPrimary}},setup(e){const t=e;return(n,i)=>(xt(),At("svg",{viewBox:"25 25 50 50",style:Lt(["width: "+t.width])},[A("circle",{cx:"50",cy:"50",r:"20",style:Lt(["stroke: "+t.color])},null,4)],4))}}),Kg=te(Xg,[["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}}
64
+ `]],["__scopeId","data-v-98779112"]]),Zg={class:"dialog-wrap"},Qg={class:"dialog"},Jg={key:0,class:"title"},tv={key:0,class:"title-inner truncate"},ev={class:"custom-content"},nv={key:1,class:"btns"},iv=Kt({customOptions:{Overlay:Ti,Pop:$e,Icon:wn,Button:xe},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(e,{expose:t,emit:n}){const i=e,r=n,s=Ct();function o(){s.value.open(),r("open")}function a(){s.value.close(),r("close")}function l(){a(),r("cancel")}function p(){a(),r("confirm")}return t({open:o,close:a}),(m,g)=>(xt(),be($e,{ref_key:"popRef",ref:s,directionFrom:"center",closeWhenClickOverlay:i.closeWhenClickOverlay,openDurTime:i.openDurTime,closeDurTime:i.closeDurTime},{default:fe(()=>[A("div",Zg,[A("div",Qg,[m.showTitle||m.showClose?(xt(),At("div",Jg,[m.showTitle?(xt(),At("div",tv,ke(m.title),1)):de("",!0),m.showClose?(xt(),be(wn,{key:1,class:"close",icon:"ic:baseline-close",color:he(Dt).colorGrayCC,onClick:a},null,8,["color"])):de("",!0)])):de("",!0),A("div",ev,[pe(m.$slots,"default",{},()=>[De(ke(m.content),1)],!0)]),m.showCancel||m.showConfirm?(xt(),At("div",nv,[m.showCancel?(xt(),be(xe,{key:0,onClick:l,class:"btn",bgColor:he(Dt).colorGrayE6,borderColor:he(Dt).colorGrayE6,fontColor:he(Dt).colorGray3,borderRadius:"0"},{default:fe(()=>[De(" 取消 ")]),_:1},8,["bgColor","borderColor","fontColor"])):de("",!0),m.showConfirm?(xt(),be(xe,{key:1,onClick:p,class:"btn",borderRadius:"0"},{default:fe(()=>[De(" 确定 ")]),_:1})):de("",!0)])):de("",!0)])])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),e1="",Dh=te(iv,[["__scopeId","data-v-002ae342"]]),rv=Kt({__name:"SVGLoading",props:{width:{default:"4em"},color:{default:Dt.colorPrimary}},setup(e){const t=e;return(n,i)=>(xt(),At("svg",{viewBox:"25 25 50 50",style:Lt(["width: "+t.width])},[A("circle",{cx:"50",cy:"50",r:"20",style:Lt(["stroke: "+t.color])},null,4)],4))}}),n1="",Lh=te(rv,[["__scopeId","data-v-29f8de14"]]),sv={class:"loading"},ov={class:"icon"},av={key:0,class:"content"},$h=te(Kt({customOptions:{Overlay:Ti,Pop:$e,Dialog:Dh,SVGLoading:Lh},inheritAttrs:!0,__name:"DialogLoading.ce",props:{content:{},closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close"],setup(e,{expose:t,emit:n}){const i=e,r=n,s=Ct();function o(){s.value.open(),r("open")}function a(){s.value.close(),r("close")}return t({open:o,close:a}),(l,p)=>(xt(),be(Dh,{ref_key:"dialogRef",ref:s,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:i.closeWhenClickOverlay,openDurTime:i.openDurTime,closeDurTime:i.closeDurTime},{default:fe(()=>[A("div",sv,[A("div",ov,[pe(l.$slots,"default",{},()=>[Jt(Lh)],!0)]),l.content?(xt(),At("div",av,ke(l.content),1)):de("",!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}
65
+ `]],["__scopeId","data-v-f95be0da"]]),lv=["onClick","value"],cv=te(Kt({customOptions:{Icon:wn,Button:xe},__name:"Select.ce",props:{options:{},initIndex:{default:0},fontSize:{default:"14px"}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,r=function(){return{"--select-option-bg-color":Dt.colorGrayFF,"--select-option-bg-color-hover":Dt.colorGrayF5}},s=Ct(!1),o=Ct(n.initIndex);se(o,function(){i("change",n.options[o.value])});function a(){s.value=!s.value}function l(p){o.value=p,s.value=!1}return(p,m)=>(xt(),At("div",{class:"wrap",style:Lt(["font-size:"+p.fontSize])},[A("div",{onClick:a},[pe(p.$slots,"button",{selectedIndex:o.value},()=>[Jt(xe,{icon:"carbon:chevron-sort",iconPosition:"right",label:p.options[o.value],style:{width:"100%"}},null,8,["label"])],!0)]),$o(A("div",{class:"options",style:Lt({border:"1px solid "+he(Dt).colorGrayCC})},[(xt(!0),At(ve,null,Qn(p.options,(g,d)=>(xt(),At("div",{onClick:_=>l(d),class:"option",key:d,value:d,style:Lt({borderTop:(d==0?"0":"1px")+" solid "+he(Dt).colorGrayCC})},[A("div",{class:"option-inner",style:r},[pe(p.$slots,"default",{item:g,index:d},()=>[A("span",null,ke(g),1),d==o.value?(xt(),be(wn,{key:0,icon:"mingcute:check-fill",class:"icon"})):de("",!0)],!0)])],12,lv))),128))],4),[[ks,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%)}
66
+ `]],["__scopeId","data-v-fd1230c0"]]),uv=Kt({__name:"Switch.ce",props:{init:{type:Boolean,default:!1},width:{default:"52px"},height:{default:"32px"},padding:{default:"4px"},colorPrimary:{default:Dt.colorPrimary},colorBgOn:{default:Dt.colorGrayEF},colorBgOff:{default:Dt.colorGrayF5}},emits:["change"],setup(e,{emit:t}){const n=e;function i(_){const N=um("number",_);return{number:N.fullMatch?parseFloat(N.fullMatch):0,suffix:N.fullMatch?_.substring(N.matchIndex+N.fullMatch.length+1):""}}const r=i(n.width),s=i(n.height),o=i(n.padding),a=s.number-o.number*2+s.suffix,l=n.padding,p=r.number-i(l).number-i(a).number+r.suffix,m=t,g=Ct(n.init);se(g,function(){m("change",g.value)});function d(){g.value=!g.value}return(_,N)=>(xt(),At("div",{class:"switch",onClick:d,style:Lt(["width: "+n.width,"height: "+n.height,"background-color: "+(g.value?n.colorBgOn:n.colorBgOff)])},[A("span",{class:"round",style:Lt(["width: "+a,"height: "+a,"background-color: "+(g.value?n.colorPrimary:he(Ln)(n.colorPrimary,30)),"transform: translate("+(g.value?p:he(l))+", 0)"])},null,4)],4))}}),hv=te(uv,[["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)}
67
+ `]],["__scopeId","data-v-6bad62b2"]]),fv={class:"wrap"},dv=["onClick"],pv=["stroke","fill"],mv=["stroke","fill"],gv=["stroke"],vv=Kt({customOptions:{},__name:"RadioGroup.ce",props:{options:{},initIndexs:{},isRounded:{type:Boolean,default:!0},isFullfilled:{type:Boolean,default:!1},colorPath:{default:Dt.colorPrimary},colorBg:{default:Dt.colorGrayFF},colorBorder:{default:Dt.colorGrayCC},fontSize:{default:Dt.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,r=Ct(n.colorPath),s=Ct(n.colorBg),o=Ct(n.colorBorder);n.isFullfilled&&(r.value=n.colorBg,s.value=n.colorPath,o.value=n.colorPath);let a=Ct(n.initIndexs??0);se(a,function(){i("change",n.options[a.value])});const l=function(p){a.value=p};return(p,m)=>(xt(),At("div",fv,[(xt(!0),At(ve,null,Qn(p.options,(g,d)=>(xt(),At("span",{class:"item",key:d,onClick:_=>l(d),style:Lt(["margin-left:"+(d>0?n.itemPadding:0)])},[pe(p.$slots,"default",{label:g,index:d},()=>[(xt(),At("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:Lt(["margin-right:"+n.labelPadding,"width:"+n.itemWidth])},[n.isRounded?de("",!0):(xt(),At("rect",{key:0,x:"0",y:"0",width:"22",height:"22",stroke:o.value,"strke-width":"1",fill:s.value,"fill-opacity":1},null,8,pv)),n.isRounded?(xt(),At("circle",{key:1,cx:"12",cy:"12",r:"11",stroke:o.value,"strke-width":"1",fill:s.value,"fill-opacity":1},null,8,mv)):de("",!0),$o(A("path",{d:"M7 13l3 3 7-7",stroke:r.value,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,gv),[[ks,he(a)===d]])],4)),A("span",{style:Lt(["font-size:"+n.fontSize])},ke(g),5)],!0)],12,dv))),128))]))}}),yv=te(vv,[["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}
68
+ `]],["__scopeId","data-v-9a00674d"]]),_v={class:"wrap"},bv=["onClick"],xv=["stroke","fill"],wv=["stroke","fill"],Ev=["stroke"],Cv=Kt({customOptions:{},__name:"CheckboxGroup.ce",props:{options:{},initIndexs:{},isRounded:{type:Boolean,default:!1},isFullfilled:{type:Boolean,default:!1},colorPath:{default:Dt.colorPrimary},colorBg:{default:Dt.colorGrayFF},colorBorder:{default:Dt.colorGrayCC},fontSize:{default:Dt.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,r=Ct(n.colorPath),s=Ct(n.colorBg),o=Ct(n.colorBorder);n.isFullfilled&&(r.value=n.colorBg,s.value=n.colorPath,o.value=n.colorPath);let a=tn(n.initIndexs??[0]);se(a,function(){i("change",a.map(p=>n.options[p]))});const l=function(p){const m=a.findIndex(g=>g===p);m>=0?a.splice(m,1):a.push(p)};return(p,m)=>(xt(),At("div",_v,[(xt(!0),At(ve,null,Qn(p.options,(g,d)=>(xt(),At("span",{class:"item",key:d,onClick:_=>l(d),style:Lt(["margin-left:"+(d>0?n.itemPadding:0)])},[pe(p.$slots,"default",{label:g,index:d},()=>[(xt(),At("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:Lt(["margin-right:"+n.labelPadding,"width:"+n.itemWidth])},[n.isRounded?de("",!0):(xt(),At("rect",{key:0,x:"0",y:"0",width:"22",height:"22",stroke:o.value,"strke-width":"1",fill:s.value,"fill-opacity":1},null,8,xv)),n.isRounded?(xt(),At("circle",{key:1,cx:"12",cy:"12",r:"11",stroke:o.value,"strke-width":"1",fill:s.value,"fill-opacity":1},null,8,wv)):de("",!0),$o(A("path",{d:"M7 13l3 3 7-7",stroke:r.value,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Ev),[[ks,he(a).findIndex(_=>_===d)>=0]])],4)),A("span",{style:Lt(["font-size:"+n.fontSize])},ke(g),5)],!0)],12,bv))),128))]))}}),kv=te(Cv,[["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}
69
+ `]],["__scopeId","data-v-f418d0bb"]]),Sv=(e=>(gr("data-v-8d198707"),e=e(),vr(),e))(()=>A("div",{style:{"background-color":"#ffffff"}},"popover-default-panel",-1)),qa=te(Kt({customOptions:{Pop:$e,Button:xe},inheritAttrs:!0,__name:"Popover.ce",props:{gap:{default:10},isGlobal:{type:Boolean,default:!0}},setup(e){const t=e,n=Ct(),i=Ct(),r=Ct(),s=tn({left:"0",top:"0"});se(i,()=>{o()}),se(r,()=>{o()});function o(){if(!i.value||!r.value)return;const l=xa(),p=i.value.getBoundingClientRect(),m=r.value.getBoundingClientRect(),g=m.width,d=m.height;let _=p.x+p.width+t.gap,N=p.y;_=Math.max(t.gap,Math.min(_,l.width-g-t.gap)),N=Math.max(t.gap,Math.min(N,l.height-d-t.gap)),s.left=`${_}px`,s.top=`${N}px`}function a(){n.value.open()}return(l,p)=>(xt(),At(ve,null,[A("div",{ref_key:"popoverButtonRef",ref:i,style:{display:"inline-block"},onClick:a},[pe(l.$slots,"button",{},()=>[Jt(xe,null,{default:fe(()=>[De("popover-default-button")]),_:1})],!0)],512),Jt($e,{ref_key:"popRef",ref:n,"direction-from":"absolute",isGlobal:t.isGlobal},{default:fe(()=>[A("div",{ref_key:"popoverPanelRef",ref:r,style:Lt([{display:"inline-block",position:"absolute"},s])},[pe(l.$slots,"panel",{},()=>[Sv],!0)],4)]),_:3},8,["isGlobal"])],64))}}),[["styles",[""]],["__scopeId","data-v-8d198707"]]),Tv=(e=>(gr("data-v-d02782ac"),e=e(),vr(),e))(()=>A("div",{style:{"background-color":"#ffffff"}},"popover-default-panel",-1)),Nv=Kt({customOptions:{Pop:$e,Button:xe},inheritAttrs:!0,__name:"Popover",props:{gap:{default:10},isGlobal:{type:Boolean,default:!0}},setup(e){const t=e,n=Ct(),i=Ct(),r=Ct(),s=tn({left:"0",top:"0"});se(i,()=>{o()}),se(r,()=>{o()});function o(){if(!i.value||!r.value)return;const l=xa(),p=i.value.getBoundingClientRect(),m=r.value.getBoundingClientRect(),g=m.width,d=m.height;let _=p.x+p.width+t.gap,N=p.y;_=Math.max(t.gap,Math.min(_,l.width-g-t.gap)),N=Math.max(t.gap,Math.min(N,l.height-d-t.gap)),s.left=`${_}px`,s.top=`${N}px`}function a(){n.value.open()}return(l,p)=>(xt(),At(ve,null,[A("div",{ref_key:"popoverButtonRef",ref:i,style:{display:"inline-block"},onClick:a},[pe(l.$slots,"button",{},()=>[Jt(xe,null,{default:fe(()=>[De("popover-default-button")]),_:1})],!0)],512),Jt($e,{ref_key:"popRef",ref:n,"direction-from":"absolute",isGlobal:t.isGlobal},{default:fe(()=>[A("div",{ref_key:"popoverPanelRef",ref:r,style:Lt([{display:"inline-block",position:"absolute"},s])},[pe(l.$slots,"panel",{},()=>[Tv],!0)],4)]),_:3},8,["isGlobal"])],64))}}),p1="",Rh=te(Nv,[["__scopeId","data-v-d02782ac"]]),Ui=(e,t=0,n=1)=>e>n?n:e<t?t:e,Ie=(e,t=0,n=Math.pow(10,t))=>Math.round(n*e)/n,Ov=e=>Av(Ya(e)),Ya=e=>(e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?Ie(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?Ie(parseInt(e.substring(6,8),16)/255,2):1}),Pv=e=>Mv(Iv(e)),Vh=({h:e,s:t,v:n,a:i})=>{const r=(200-t)*n/100;return{h:Ie(e),s:Ie(r>0&&r<200?t*n/100/(r<=100?r:200-r)*100:0),l:Ie(r/2),a:Ie(i,2)}},Xa=e=>{const{h:t,s:n,l:i}=Vh(e);return`hsl(${t}, ${n}%, ${i}%)`},Ka=e=>{const{h:t,s:n,l:i,a:r}=Vh(e);return`hsla(${t}, ${n}%, ${i}%, ${r})`},Iv=({h:e,s:t,v:n,a:i})=>{e=e/360*6,t=t/100,n=n/100;const r=Math.floor(e),s=n*(1-t),o=n*(1-(e-r)*t),a=n*(1-(1-e+r)*t),l=r%6;return{r:Ie([n,o,s,s,a,n][l]*255),g:Ie([a,n,n,o,s,s][l]*255),b:Ie([s,s,a,n,n,o][l]*255),a:Ie(i,2)}},Us=e=>{const t=e.toString(16);return t.length<2?"0"+t:t},Mv=({r:e,g:t,b:n,a:i})=>{const r=i<1?Us(Ie(i*255)):"";return"#"+Us(e)+Us(t)+Us(n)+r},Av=({r:e,g:t,b:n,a:i})=>{const r=Math.max(e,t,n),s=r-Math.min(e,t,n),o=s?r===e?(t-n)/s:r===t?2+(n-e)/s:4+(e-t)/s:0;return{h:Ie(60*(o<0?o+6:o)),s:Ie(r?s/r*100:0),v:Ie(r/255*100),a:i}},Fh=(e,t)=>{if(e===t)return!0;for(const n in e)if(e[n]!==t[n])return!1;return!0},Dv=(e,t)=>e.toLowerCase()===t.toLowerCase()?!0:Fh(Ya(e),Ya(t)),zh={},jh=e=>{let t=zh[e];return t||(t=document.createElement("template"),t.innerHTML=e,zh[e]=t),t},Za=(e,t,n)=>{e.dispatchEvent(new CustomEvent(t,{bubbles:!0,detail:n}))};let Wi=!1;const Qa=e=>"touches"in e,Lv=e=>Wi&&!Qa(e)?!1:(Wi||(Wi=Qa(e)),!0),Bh=(e,t)=>{const n=Qa(t)?t.touches[0]:t,i=e.el.getBoundingClientRect();Za(e.el,"move",e.getMove({x:Ui((n.pageX-(i.left+window.pageXOffset))/i.width),y:Ui((n.pageY-(i.top+window.pageYOffset))/i.height)}))},$v=(e,t)=>{const n=t.keyCode;n>40||e.xy&&n<37||n<33||(t.preventDefault(),Za(e.el,"move",e.getMove({x:n===39?.01:n===37?-.01:n===34?.05:n===33?-.05:n===35?1:n===36?-1:0,y:n===40?.01:n===38?-.01:0},!0)))};class Ja{constructor(t,n,i,r){const s=jh(`<div role="slider" tabindex="0" part="${n}" ${i}><div part="${n}-pointer"></div></div>`);t.appendChild(s.content.cloneNode(!0));const o=t.querySelector(`[part=${n}]`);o.addEventListener("mousedown",this),o.addEventListener("touchstart",this),o.addEventListener("keydown",this),this.el=o,this.xy=r,this.nodes=[o.firstChild,o]}set dragging(t){const n=t?document.addEventListener:document.removeEventListener;n(Wi?"touchmove":"mousemove",this),n(Wi?"touchend":"mouseup",this)}handleEvent(t){switch(t.type){case"mousedown":case"touchstart":if(t.preventDefault(),!Lv(t)||!Wi&&t.button!=0)return;this.el.focus(),Bh(this,t),this.dragging=!0;break;case"mousemove":case"touchmove":t.preventDefault(),Bh(this,t);break;case"mouseup":case"touchend":this.dragging=!1;break;case"keydown":$v(this,t);break}}style(t){t.forEach((n,i)=>{for(const r in n)this.nodes[i].style.setProperty(r,n[r])})}}class Rv extends Ja{constructor(t){super(t,"hue",'aria-label="Hue" aria-valuemin="0" aria-valuemax="360"',!1)}update({h:t}){this.h=t,this.style([{left:`${t/360*100}%`,color:Xa({h:t,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuenow",`${Ie(t)}`)}getMove(t,n){return{h:n?Ui(this.h+t.x*360,0,360):360*t.x}}}class Vv extends Ja{constructor(t){super(t,"saturation",'aria-label="Color"',!0)}update(t){this.hsva=t,this.style([{top:`${100-t.v}%`,left:`${t.s}%`,color:Xa(t)},{"background-color":Xa({h:t.h,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuetext",`Saturation ${Ie(t.s)}%, Brightness ${Ie(t.v)}%`)}getMove(t,n){return{s:n?Ui(this.hsva.s+t.x*100,0,100):t.x*100,v:n?Ui(this.hsva.v-t.y*100,0,100):Math.round(100-t.y*100)}}}const Fv=':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)}',zv="[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}",jv="[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}",Ws=Symbol("same"),tl=Symbol("color"),Gh=Symbol("hsva"),el=Symbol("update"),Hh=Symbol("parts"),qs=Symbol("css"),Ys=Symbol("sliders");let Bv=class extends HTMLElement{static get observedAttributes(){return["color"]}get[qs](){return[Fv,zv,jv]}get[Ys](){return[Vv,Rv]}get color(){return this[tl]}set color(t){if(!this[Ws](t)){const n=this.colorModel.toHsva(t);this[el](n),this[tl]=t}}constructor(){super();const t=jh(`<style>${this[qs].join("")}</style>`),n=this.attachShadow({mode:"open"});n.appendChild(t.content.cloneNode(!0)),n.addEventListener("move",this),this[Hh]=this[Ys].map(i=>new i(n))}connectedCallback(){if(this.hasOwnProperty("color")){const t=this.color;delete this.color,this.color=t}else this.color||(this.color=this.colorModel.defaultColor)}attributeChangedCallback(t,n,i){const r=this.colorModel.fromAttr(i);this[Ws](r)||(this.color=r)}handleEvent(t){const n=this[Gh],i={...n,...t.detail};this[el](i);let r;!Fh(i,n)&&!this[Ws](r=this.colorModel.fromHsva(i))&&(this[tl]=r,Za(this,"color-changed",{value:r}))}[Ws](t){return this.color&&this.colorModel.equal(t,this.color)}[el](t){this[Gh]=t,this[Hh].forEach(n=>n.update(t))}};class Gv extends Ja{constructor(t){super(t,"alpha",'aria-label="Alpha" aria-valuemin="0" aria-valuemax="1"',!1)}update(t){this.hsva=t;const n=Ka({...t,a:0}),i=Ka({...t,a:1}),r=t.a*100;this.style([{left:`${r}%`,color:Ka(t)},{"--gradient":`linear-gradient(90deg, ${n}, ${i}`}]);const s=Ie(r);this.el.setAttribute("aria-valuenow",`${s}`),this.el.setAttribute("aria-valuetext",`${s}%`)}getMove(t,n){return{a:n?Ui(this.hsva.a+t.x):t.x}}}const Hv=`[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 Uv extends Bv{get[qs](){return[...super[qs],Hv]}get[Ys](){return[...super[Ys],Gv]}}const Wv={defaultColor:"#0001",toHsva:Ov,fromHsva:Pv,equal:Dv,fromAttr:e=>e};class qv extends Uv{get colorModel(){return Wv}}class Yv extends qv{}customElements.define("hex-alpha-color-picker",Yv);const Xv=Kt({customOptions:{Popover:Rh},__name:"ColorPicker.ce",props:{color:{default:Dt.colorPrimary}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,r=Ct(n.color);se(r,(a,l)=>{a!==l&&i("change",a)});const s=Ct(),o=a=>{r.value=a.detail.value};return se(s,()=>{s.value&&(s.value.removeEventListener("color-changed",o),s.value.addEventListener("color-changed",o))}),(a,l)=>{const p=Td("hex-alpha-color-picker");return xt(),be(Rh,null,{button:fe(()=>[pe(a.$slots,"default",{},()=>[A("span",{class:"button",style:Lt({backgroundColor:r.value})},null,4)],!0)]),panel:fe(()=>[Jt(p,{ref_key:"colorPickerRef",ref:s,color:r.value},null,8,["color"])]),_:3})}}}),Uh=te(Xv,[["styles",[`.button[data-v-ccef37cf]{display:inline-block;vertical-align:middle;width:1em;height:1em;border-radius:.3em;cursor:pointer}
70
+ `]],["__scopeId","data-v-ccef37cf"]]),Kv=`.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}
71
+ `,Zv={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 e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Ea&&this.$el.appendChild(e),e.data="about:blank",Ea||this.$el.appendChild(e)},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&&(!Ea&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},Qv={class:"resize-observer",tabindex:"-1"};function Jv(e,t,n,i,r,s){return xt(),At("div",Qv)}const ty=te(Zv,[["render",Jv],["styles",[Kv]],["__scopeId","data-v-5beaa9ca"]]),ey=()=>{const e=Ct(window.innerWidth),t=Ct(window.innerHeight),n=i=>{e.value=i.target.innerWidth,t.value=i.target.innerHeight};return hs(()=>window.addEventListener("resize",n)),fs(()=>window.removeEventListener("resize",n)),{width:e,height:t}},ny=Kt({__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(e,{expose:t,emit:n}){const i=e,{width:r,height:s}=ey(),o=Ct(i.mapWidth??r.value+"px"),a=Ct(i.mapHeight??s.value+"px");return se(r,(l,p)=>{l!=p&&!i.mapWidth&&(o.value=l+"px")}),se(s,(l,p)=>{l!=p&&!i.mapHeight&&(a.value=l+"px")}),hs(()=>{Zt.loadScript(`http://api.tianditu.gov.cn/api?v=4.0&tk=${i.mapKey}`,()=>{new Og(i.mapContainerID,i.mapCenterLng,i.mapCenterLat,i.mapZoom)},l=>{console.log("error",l)})}),t({}),(l,p)=>(xt(),At("div",Ko({class:"mapDivWrap"},l.$attrs,{style:{position:"relative",width:o.value,height:a.value}}),[pe(l.$slots,"default",{width:o.value,height:a.value})],16))}}),iy=["fill"],ry=["fill"],sy=Kt({__name:"SVGCheck.ce",props:{width:{default:"10px"},color:{default:Dt.colorPrimary}},setup(e){const t=e;return(n,i)=>(xt(),At("svg",{style:Lt(["width: "+t.width]),viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[A("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:t.color},null,8,iy),A("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:t.color},null,8,ry)],4))}}),oy=te(sy,[["styles",[`svg[data-v-8fe3f9fd]{transform-origin:center}
72
+ `]],["__scopeId","data-v-8fe3f9fd"]]),ay=["fill"],ly=["fill"],cy=Kt({__name:"SVGCheck",props:{width:{default:"10px"},color:{default:Dt.colorPrimary}},setup(e){const t=e;return(n,i)=>(xt(),At("svg",{style:Lt(["width: "+t.width]),viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[A("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:t.color},null,8,ay),A("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:t.color},null,8,ly)],4))}}),v1="",Wh=te(cy,[["__scopeId","data-v-987aed3d"]]),nl=e=>(gr("data-v-85491020"),e=e(),vr(),e),uy=[nl(()=>A("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)),nl(()=>A("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)),nl(()=>A("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))],hy=Kt({__name:"SVGCleanUp",props:{width:{default:"16px"},color:{default:Dt.colorPrimary}},setup(e){const t=e;return(n,i)=>(xt(),At("svg",{style:Lt(["width: "+t.width]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},uy,4))}}),x1="",qi=te(hy,[["__scopeId","data-v-85491020"]]),fy=["data-unactive"],dy=["data-unactive"],py=["data-unactive"],my=["data-unactive"],gy=["data-unactive"],vy=["data-unactive"],yy=["data-unactive"],_y=["data-unactive"],by=["data-unactive"],xy=["data-unactive"],wy=["data-unactive"],Ey=["data-unactive"],Cy=["data-unactive"],ky=["data-unactive"],Sy=["data-unactive"],Ty=["data-unactive"],Ny=["data-unactive"],Oy=Kt({customOptions:{Pop:$e,SVGCleanUp:qi},__name:"PlateKeyboard",props:{initPlates:{default:()=>[]},completePlateLength:{default:7}},emits:["open","close","plates"],setup(e,{expose:t,emit:n}){const i=e,r=n,s=Ct(),o=Ct(0),a=tn([]);function l(){a.length==0?o.value=0:a.length==1?o.value=1:o.value=2,a.length>=i.completePlateLength&&m()}se(()=>[...i.initPlates],()=>{Nr(a,i.initPlates),l()},{immediate:!0});const p=()=>{s.value.open(),r("open")},m=()=>{s.value.close(),r("close")},g=()=>{a.pop(),l(),r("plates",a)},d=_=>{if(_.target.dataset.unactive||"")return;let C=_.target.dataset.number;C&&(a.push(C),l(),r("plates",a))};return t({open:p,close:m}),(_,N)=>(xt(),be($e,{ref_key:"popRef",ref:s,directionFrom:"bottom",closeWhenClickOverlay:!1},{default:fe(()=>[A("div",{class:"popup-plate",style:Lt({paddingBottom:he(Dt).safeAreaBottom})},[A("div",null,[A("div",{onClick:m},"关闭")]),A("div",{class:Ht(["step",o.value==0?"":"hide"])},[A("div",{class:"popitem",onClick:d,"data-number":"京"}," 京 "),A("div",{class:"popitem",onClick:d,"data-number":"沪"}," 沪 "),A("div",{class:"popitem",onClick:d,"data-number":"津"}," 津 "),A("div",{class:"popitem",onClick:d,"data-number":"渝"}," 渝 "),A("div",{class:"popitem",onClick:d,"data-number":"黑"}," 黑 "),A("div",{class:"popitem",onClick:d,"data-number":"吉"}," 吉 "),A("div",{class:"popitem",onClick:d,"data-number":"辽"}," 辽 "),A("div",{class:"popitem",onClick:d,"data-number":"蒙"}," 蒙 "),A("div",{class:"popitem",onClick:d,"data-number":"冀"}," 冀 "),A("div",{class:"popitem",onClick:d,"data-number":"新"}," 新 "),A("div",{class:"popitem",onClick:d,"data-number":"甘"}," 甘 "),A("div",{class:"popitem",onClick:d,"data-number":"青"}," 青 "),A("div",{class:"popitem",onClick:d,"data-number":"陕"}," 陕 "),A("div",{class:"popitem",onClick:d,"data-number":"宁"}," 宁 "),A("div",{class:"popitem",onClick:d,"data-number":"豫"}," 豫 "),A("div",{class:"popitem",onClick:d,"data-number":"鲁"}," 鲁 "),A("div",{class:"popitem",onClick:d,"data-number":"晋"}," 晋 "),A("div",{class:"popitem",onClick:d,"data-number":"皖"}," 皖 "),A("div",{class:"popitem",onClick:d,"data-number":"鄂"}," 鄂 "),A("div",{class:"popitem",onClick:d,"data-number":"湘"}," 湘 "),A("div",{class:"popitem",onClick:d,"data-number":"苏"}," 苏 "),A("div",{class:"popitem",onClick:d,"data-number":"川"}," 川 "),A("div",{class:"popitem",onClick:d,"data-number":"云"}," 云 "),A("div",{class:"popitem",onClick:d,"data-number":"桂"}," 桂 "),A("div",{class:"popitem",onClick:d,"data-number":"藏"}," 藏 "),A("div",{class:"popitem",onClick:d,"data-number":"浙"}," 浙 "),A("div",{class:"popitem",onClick:d,"data-number":"赣"}," 赣 "),A("div",{class:"popitem",onClick:d,"data-number":"粤"}," 粤 "),A("div",{class:"popitem",onClick:d,"data-number":"闽"}," 闽 "),A("div",{class:"popitem",onClick:d,"data-number":"琼"}," 琼 "),A("div",{class:"popitem",onClick:d,"data-number":"贵"}," 贵 "),A("div",{class:"popitem popitem-clear",onClick:g},[Jt(qi,{width:"16px"})])],2),A("div",{class:Ht(["step",o.value!=0?"":"hide"])},[A("div",{class:Ht(["popitem",o.value!=2?"unactive":""]),onClick:d,"data-number":"1","data-unactive":o.value!=2?"unactive":""}," 1 ",10,fy),A("div",{class:Ht(["popitem",o.value!=2?"unactive":""]),onClick:d,"data-number":"2","data-unactive":o.value!=2?"unactive":""}," 2 ",10,dy),A("div",{class:Ht(["popitem",o.value!=2?"unactive":""]),onClick:d,"data-number":"3","data-unactive":o.value!=2?"unactive":""}," 3 ",10,py),A("div",{class:Ht(["popitem",o.value!=2?"unactive":""]),onClick:d,"data-number":"4","data-unactive":o.value!=2?"unactive":""}," 4 ",10,my),A("div",{class:Ht(["popitem",o.value!=2?"unactive":""]),onClick:d,"data-number":"5","data-unactive":o.value!=2?"unactive":""}," 5 ",10,gy),A("div",{class:Ht(["popitem",o.value!=2?"unactive":""]),onClick:d,"data-number":"6","data-unactive":o.value!=2?"unactive":""}," 6 ",10,vy),A("div",{class:Ht(["popitem",o.value!=2?"unactive":""]),onClick:d,"data-number":"7","data-unactive":o.value!=2?"unactive":""}," 7 ",10,yy),A("div",{class:Ht(["popitem",o.value!=2?"unactive":""]),onClick:d,"data-number":"8","data-unactive":o.value!=2?"unactive":""}," 8 ",10,_y),A("div",{class:Ht(["popitem",o.value!=2?"unactive":""]),onClick:d,"data-number":"9","data-unactive":o.value!=2?"unactive":""}," 9 ",10,by),A("div",{class:Ht(["popitem",o.value!=2?"unactive":""]),onClick:d,"data-number":"0","data-unactive":o.value!=2?"unactive":""}," 0 ",10,xy),A("div",{class:"popitem",onClick:d,"data-number":"A"}," A "),A("div",{class:"popitem",onClick:d,"data-number":"B"}," B "),A("div",{class:"popitem",onClick:d,"data-number":"C"}," C "),A("div",{class:"popitem",onClick:d,"data-number":"D"}," D "),A("div",{class:"popitem",onClick:d,"data-number":"E"}," E "),A("div",{class:"popitem",onClick:d,"data-number":"F"}," F "),A("div",{class:"popitem",onClick:d,"data-number":"G"}," G "),A("div",{class:"popitem",onClick:d,"data-number":"H"}," H "),A("div",{class:"popitem",onClick:d,"data-number":"J"}," J "),A("div",{class:"popitem",onClick:d,"data-number":"K"}," K "),A("div",{class:"popitem",onClick:d,"data-number":"L"}," L "),A("div",{class:"popitem",onClick:d,"data-number":"M"}," M "),A("div",{class:"popitem",onClick:d,"data-number":"N"}," N "),A("div",{class:"popitem",onClick:d,"data-number":"P"}," P "),A("div",{class:"popitem",onClick:d,"data-number":"Q"}," Q "),A("div",{class:"popitem",onClick:d,"data-number":"R"}," R "),A("div",{class:"popitem",onClick:d,"data-number":"S"}," S "),A("div",{class:"popitem",onClick:d,"data-number":"T"}," T "),A("div",{class:"popitem",onClick:d,"data-number":"U"}," U "),A("div",{class:"popitem",onClick:d,"data-number":"V"}," V "),A("div",{class:"popitem",onClick:d,"data-number":"W"}," W "),A("div",{class:"popitem",onClick:d,"data-number":"X"}," X "),A("div",{class:"popitem",onClick:d,"data-number":"Y"}," Y "),A("div",{class:"popitem",onClick:d,"data-number":"Z"}," Z "),A("div",{class:Ht(["popitem",o.value!=2?"unactive":""]),onClick:d,"data-number":"港","data-unactive":o.value!=2?"unactive":""}," 港 ",10,wy),A("div",{class:Ht(["popitem",o.value!=2?"unactive":""]),onClick:d,"data-number":"澳","data-unactive":o.value!=2?"unactive":""}," 澳 ",10,Ey),A("div",{class:Ht(["popitem",o.value!=2?"unactive":""]),onClick:d,"data-number":"学","data-unactive":o.value!=2?"unactive":""}," 学 ",10,Cy),A("div",{class:Ht(["popitem",o.value!=2?"unactive":""]),onClick:d,"data-number":"警","data-unactive":o.value!=2?"unactive":""}," 警 ",10,ky),A("div",{class:Ht(["popitem",o.value!=2?"unactive":""]),onClick:d,"data-number":"使","data-unactive":o.value!=2?"unactive":""}," 使 ",10,Sy),A("div",{class:Ht(["popitem",o.value!=2?"unactive":""]),onClick:d,"data-number":"领","data-unactive":o.value!=2?"unactive":""}," 领 ",10,Ty),A("div",{class:Ht(["popitem",o.value!=2?"unactive":""]),onClick:d,"data-number":"挂","data-unactive":o.value!=2?"unactive":""}," 挂 ",10,Ny),A("div",{class:"popitem popitem-clear",onClick:g},[Jt(qi,{width:"16px"})])],2)],4)]),_:1},512))}}),w1="",qh=te(Oy,[["__scopeId","data-v-6e8b6f81"]]),Xs=e=>(gr("data-v-17611eb2"),e=e(),vr(),e),Py=Xs(()=>A("div",{class:"title"},"车牌颜色",-1)),Iy={class:"plate-types"},My=["onClick"],Ay=Xs(()=>A("div",{class:"title"},"车牌号码",-1)),Dy={class:"plate-numbers"},Ly=Xs(()=>A("div",{class:"dot"},"·",-1)),$y=["onClick"],Ry=Xs(()=>A("div",{class:"info"},"请输入您真实有效的车牌号,便于正常使用系统功能。",-1)),Yh=te(Kt({customOptions:{SVGCheck:Wh,PlateKeyboard:qh},__name:"PlateMobile.ce",props:{maxWidth:{default:"750px"}},emits:["clear","complete"],setup(e,{expose:t,emit:n}){const i=e,r=n,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}],o=Ct(),a=Ct(0),l=tn([]),p=Ct(-1),m=_=>{a.value=_,p.value<=s[_].completePlateLength&&l.length<s[_].completePlateLength?(p.value=l.length,o.value.open(),r("clear")):Nr(l,l.slice(0,s[_].completePlateLength)),s[_].completePlateLength===l.length&&r("complete",s[a.value].name,l.join(""))},g=_=>{Nr(l,l.slice(0,_)),p.value=Math.min(Math.max(0,p.value),_),o.value.open(),r("clear")},d=_=>{Nr(l,_),p.value=l.length,l.length===s[a.value].completePlateLength&&r("complete",s[a.value].name,l.join(""))};return t({}),(_,N)=>(xt(),At(ve,null,[A("div",Ko(_.$attrs,{class:"plate-mobile",style:{maxWidth:i.maxWidth}}),[Py,A("div",Iy,[(xt(),At(ve,null,Qn(s,(C,M)=>A("div",{key:M,class:Ht(M==a.value?"checked":""),onClick:z=>m(M)},[A("div",{style:Lt(C.style)},null,4),A("div",null,ke(C.name),1),A("div",null,[Jt(Wh,{color:"#ffffff",width:"0.14rem"})])],10,My)),64))]),Ay,A("div",Dy,[A("div",{onClick:N[0]||(N[0]=C=>g(0)),class:Ht(p.value==0?"current":"")},ke(l[0]),3),A("div",{onClick:N[1]||(N[1]=C=>g(1)),class:Ht(p.value==1?"current":"")},ke(l[1]),3),Ly,(xt(!0),At(ve,null,Qn(s[a.value].completePlateLength-2,C=>(xt(),At("div",{key:C,class:Ht(C+1==p.value?"current":""),onClick:M=>g(C+1)},ke(l[C+1]),11,$y))),128))]),Ry],16),Jt(qh,{ref_key:"plateKeyboardRef",ref:o,initPlates:l,completePlateLength:s[a.value].completePlateLength,onPlates:d},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}
73
+ `]],["__scopeId","data-v-17611eb2"]]),il=e=>(gr("data-v-7aebdea0"),e=e(),vr(),e),Vy=[il(()=>A("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)),il(()=>A("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)),il(()=>A("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))],Fy=Kt({__name:"SVGCleanUp.ce",props:{width:{default:"16px"},color:{default:Dt.colorPrimary}},setup(e){const t=e;return(n,i)=>(xt(),At("svg",{style:Lt(["width: "+t.width]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},Vy,4))}}),zy=te(Fy,[["styles",[`svg[data-v-7aebdea0]{transform-origin:center}
74
+ `]],["__scopeId","data-v-7aebdea0"]]),jy=["data-unactive"],By=["data-unactive"],Gy=["data-unactive"],Hy=["data-unactive"],Uy=["data-unactive"],Wy=["data-unactive"],qy=["data-unactive"],Yy=["data-unactive"],Xy=["data-unactive"],Ky=["data-unactive"],Zy=["data-unactive"],Qy=["data-unactive"],Jy=["data-unactive"],t_=["data-unactive"],e_=["data-unactive"],n_=["data-unactive"],i_=["data-unactive"],rl=te(Kt({customOptions:{Pop:$e,SVGCleanUp:qi},__name:"PlateKeyboard.ce",props:{initPlates:{default:()=>[]},completePlateLength:{default:7}},emits:["open","close","plates"],setup(e,{expose:t,emit:n}){const i=e,r=n,s=Ct(),o=Ct(0),a=tn([]);function l(){a.length==0?o.value=0:a.length==1?o.value=1:o.value=2,a.length>=i.completePlateLength&&m()}se(()=>[...i.initPlates],()=>{Nr(a,i.initPlates),l()},{immediate:!0});const p=()=>{s.value.open(),r("open")},m=()=>{s.value.close(),r("close")},g=()=>{a.pop(),l(),r("plates",a)},d=_=>{if(_.target.dataset.unactive||"")return;let C=_.target.dataset.number;C&&(a.push(C),l(),r("plates",a))};return t({open:p,close:m}),(_,N)=>(xt(),be($e,{ref_key:"popRef",ref:s,directionFrom:"bottom",closeWhenClickOverlay:!1},{default:fe(()=>[A("div",{class:"popup-plate",style:Lt({paddingBottom:he(Dt).safeAreaBottom})},[A("div",null,[A("div",{onClick:m},"关闭")]),A("div",{class:Ht(["step",o.value==0?"":"hide"])},[A("div",{class:"popitem",onClick:d,"data-number":"京"}," "),A("div",{class:"popitem",onClick:d,"data-number":"沪"}," 沪 "),A("div",{class:"popitem",onClick:d,"data-number":"津"}," 津 "),A("div",{class:"popitem",onClick:d,"data-number":"渝"}," 渝 "),A("div",{class:"popitem",onClick:d,"data-number":"黑"}," 黑 "),A("div",{class:"popitem",onClick:d,"data-number":"吉"}," 吉 "),A("div",{class:"popitem",onClick:d,"data-number":"辽"}," 辽 "),A("div",{class:"popitem",onClick:d,"data-number":"蒙"}," "),A("div",{class:"popitem",onClick:d,"data-number":"冀"}," 冀 "),A("div",{class:"popitem",onClick:d,"data-number":"新"},""),A("div",{class:"popitem",onClick:d,"data-number":"甘"}," 甘 "),A("div",{class:"popitem",onClick:d,"data-number":"青"}," 青 "),A("div",{class:"popitem",onClick:d,"data-number":"陕"},""),A("div",{class:"popitem",onClick:d,"data-number":"宁"}," 宁 "),A("div",{class:"popitem",onClick:d,"data-number":"豫"}," 豫 "),A("div",{class:"popitem",onClick:d,"data-number":"鲁"}," 鲁 "),A("div",{class:"popitem",onClick:d,"data-number":"晋"}," 晋 "),A("div",{class:"popitem",onClick:d,"data-number":"皖"}," 皖 "),A("div",{class:"popitem",onClick:d,"data-number":"鄂"}," 鄂 "),A("div",{class:"popitem",onClick:d,"data-number":"湘"},""),A("div",{class:"popitem",onClick:d,"data-number":"苏"},""),A("div",{class:"popitem",onClick:d,"data-number":"川"}," 川 "),A("div",{class:"popitem",onClick:d,"data-number":"云"}," 云 "),A("div",{class:"popitem",onClick:d,"data-number":"桂"}," 桂 "),A("div",{class:"popitem",onClick:d,"data-number":"藏"}," 藏 "),A("div",{class:"popitem",onClick:d,"data-number":"浙"}," 浙 "),A("div",{class:"popitem",onClick:d,"data-number":"赣"}," 赣 "),A("div",{class:"popitem",onClick:d,"data-number":"粤"}," 粤 "),A("div",{class:"popitem",onClick:d,"data-number":"闽"}," 闽 "),A("div",{class:"popitem",onClick:d,"data-number":"琼"}," 琼 "),A("div",{class:"popitem",onClick:d,"data-number":"贵"}," 贵 "),A("div",{class:"popitem popitem-clear",onClick:g},[Jt(qi,{width:"16px"})])],2),A("div",{class:Ht(["step",o.value!=0?"":"hide"])},[A("div",{class:Ht(["popitem",o.value!=2?"unactive":""]),onClick:d,"data-number":"1","data-unactive":o.value!=2?"unactive":""}," 1 ",10,jy),A("div",{class:Ht(["popitem",o.value!=2?"unactive":""]),onClick:d,"data-number":"2","data-unactive":o.value!=2?"unactive":""}," 2 ",10,By),A("div",{class:Ht(["popitem",o.value!=2?"unactive":""]),onClick:d,"data-number":"3","data-unactive":o.value!=2?"unactive":""}," 3 ",10,Gy),A("div",{class:Ht(["popitem",o.value!=2?"unactive":""]),onClick:d,"data-number":"4","data-unactive":o.value!=2?"unactive":""}," 4 ",10,Hy),A("div",{class:Ht(["popitem",o.value!=2?"unactive":""]),onClick:d,"data-number":"5","data-unactive":o.value!=2?"unactive":""}," 5 ",10,Uy),A("div",{class:Ht(["popitem",o.value!=2?"unactive":""]),onClick:d,"data-number":"6","data-unactive":o.value!=2?"unactive":""}," 6 ",10,Wy),A("div",{class:Ht(["popitem",o.value!=2?"unactive":""]),onClick:d,"data-number":"7","data-unactive":o.value!=2?"unactive":""}," 7 ",10,qy),A("div",{class:Ht(["popitem",o.value!=2?"unactive":""]),onClick:d,"data-number":"8","data-unactive":o.value!=2?"unactive":""}," 8 ",10,Yy),A("div",{class:Ht(["popitem",o.value!=2?"unactive":""]),onClick:d,"data-number":"9","data-unactive":o.value!=2?"unactive":""}," 9 ",10,Xy),A("div",{class:Ht(["popitem",o.value!=2?"unactive":""]),onClick:d,"data-number":"0","data-unactive":o.value!=2?"unactive":""}," 0 ",10,Ky),A("div",{class:"popitem",onClick:d,"data-number":"A"}," A "),A("div",{class:"popitem",onClick:d,"data-number":"B"}," B "),A("div",{class:"popitem",onClick:d,"data-number":"C"}," C "),A("div",{class:"popitem",onClick:d,"data-number":"D"}," D "),A("div",{class:"popitem",onClick:d,"data-number":"E"}," E "),A("div",{class:"popitem",onClick:d,"data-number":"F"}," F "),A("div",{class:"popitem",onClick:d,"data-number":"G"}," G "),A("div",{class:"popitem",onClick:d,"data-number":"H"}," H "),A("div",{class:"popitem",onClick:d,"data-number":"J"}," J "),A("div",{class:"popitem",onClick:d,"data-number":"K"}," K "),A("div",{class:"popitem",onClick:d,"data-number":"L"}," L "),A("div",{class:"popitem",onClick:d,"data-number":"M"}," M "),A("div",{class:"popitem",onClick:d,"data-number":"N"}," N "),A("div",{class:"popitem",onClick:d,"data-number":"P"}," P "),A("div",{class:"popitem",onClick:d,"data-number":"Q"}," Q "),A("div",{class:"popitem",onClick:d,"data-number":"R"}," R "),A("div",{class:"popitem",onClick:d,"data-number":"S"}," S "),A("div",{class:"popitem",onClick:d,"data-number":"T"}," T "),A("div",{class:"popitem",onClick:d,"data-number":"U"}," U "),A("div",{class:"popitem",onClick:d,"data-number":"V"}," V "),A("div",{class:"popitem",onClick:d,"data-number":"W"}," W "),A("div",{class:"popitem",onClick:d,"data-number":"X"}," X "),A("div",{class:"popitem",onClick:d,"data-number":"Y"}," Y "),A("div",{class:"popitem",onClick:d,"data-number":"Z"}," Z "),A("div",{class:Ht(["popitem",o.value!=2?"unactive":""]),onClick:d,"data-number":"港","data-unactive":o.value!=2?"unactive":""}," 港 ",10,Zy),A("div",{class:Ht(["popitem",o.value!=2?"unactive":""]),onClick:d,"data-number":"澳","data-unactive":o.value!=2?"unactive":""}," 澳 ",10,Qy),A("div",{class:Ht(["popitem",o.value!=2?"unactive":""]),onClick:d,"data-number":"学","data-unactive":o.value!=2?"unactive":""}," 学 ",10,Jy),A("div",{class:Ht(["popitem",o.value!=2?"unactive":""]),onClick:d,"data-number":"警","data-unactive":o.value!=2?"unactive":""}," 警 ",10,t_),A("div",{class:Ht(["popitem",o.value!=2?"unactive":""]),onClick:d,"data-number":"使","data-unactive":o.value!=2?"unactive":""}," 使 ",10,e_),A("div",{class:Ht(["popitem",o.value!=2?"unactive":""]),onClick:d,"data-number":"","data-unactive":o.value!=2?"unactive":""}," 领 ",10,n_),A("div",{class:Ht(["popitem",o.value!=2?"unactive":""]),onClick:d,"data-number":"挂","data-unactive":o.value!=2?"unactive":""}," 挂 ",10,i_),A("div",{class:"popitem popitem-clear",onClick:g},[Jt(qi,{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}
75
+ `]],["__scopeId","data-v-c391106b"]]),r_=["width","height"],s_=["fill"],o_=Kt({__name:"SVGDelete.ce",props:{width:{default:"16px"},height:{},color:{default:Dt.colorPrimary}},setup(e){const t=e;return(n,i)=>(xt(),At("svg",{viewBox:"0 0 24 24",width:t.width,height:t.height??t.width,xmlns:"http://www.w3.org/2000/svg"},[A("path",{fill:t.color,d:"M7 21q-.825 0-1.412-.587T5 19V6H4V4h5V3h6v1h5v2h-1v13q0 .825-.587 1.413T17 21zM17 6H7v13h10zM9 17h2V8H9zm4 0h2V8h-2zM7 6v13z"},null,8,s_)],8,r_))}}),a_=te(o_,[["styles",[`svg[data-v-8745630f]{transform-origin:center}
76
+ `]],["__scopeId","data-v-8745630f"]]),l_=["width","height"],c_=["fill"],u_=Kt({__name:"SVGDelete",props:{width:{default:"16px"},height:{},color:{default:Dt.colorPrimary}},setup(e){const t=e;return(n,i)=>(xt(),At("svg",{viewBox:"0 0 24 24",width:t.width,height:t.height??t.width,xmlns:"http://www.w3.org/2000/svg"},[A("path",{fill:t.color,d:"M7 21q-.825 0-1.412-.587T5 19V6H4V4h5V3h6v1h5v2h-1v13q0 .825-.587 1.413T17 21zM17 6H7v13h10zM9 17h2V8H9zm4 0h2V8h-2zM7 6v13z"},null,8,c_)],8,l_))}}),M1="",Xh=te(u_,[["__scopeId","data-v-4747d4a7"]]),h_=Kt({customOptions:{SVGDelete:Xh},inheritAttrs:!0,__name:"SlideLeftItem.ce",props:{bgColor:{default:Dt.colorGrayFF},deleteColor:{default:Dt.colorRed},fontColor:{default:Dt.colorGrayFF},deleteWidth:{default:"44px"},transtionDuration:{default:"150ms"}},emits:["delete"],setup(e,{expose:t,emit:n}){const i=e,r=n,s=Ct(!1),o=()=>{r("delete"),s.value=!1};let a;const l=Ct();return se(l,()=>{l.value&&(a=new Sh(l.value),a.on("panLeft",()=>{s.value=!0}),a.on("panRight",()=>{s.value=!1}),a.on("tapOutSide",()=>{s.value=!1}))}),fs(()=>{a?.destroy()}),t({}),(p,m)=>(xt(),At("div",{class:"parent",ref_key:"item",ref:l,style:Lt({backgroundColor:i.bgColor})},[A("div",{class:"content",style:Lt({transition:"all ease-in "+i.transtionDuration,transform:s.value?"translate(-"+i.deleteWidth+", 0)":"translate(0, 0)"})},[pe(p.$slots,"default",{},void 0,!0)],4),A("div",{class:"delete",onClick:o,style:Lt({backgroundColor:i.deleteColor,width:i.deleteWidth,transition:"all ease-in "+i.transtionDuration,transform:s.value?"translate(0, 0)":"translate("+i.deleteWidth+", 0)"})},[Jt(Xh,{color:i.fontColor},null,8,["color"])],4)],4))}}),Kh=te(h_,[["styles",[`.parent[data-v-155fa7cc]{position:relative;overflow:hidden;width:100%}.content[data-v-155fa7cc]{width:100%;height:100%}.delete[data-v-155fa7cc]{position:absolute;right:0;top:0;height:100%;display:flex;justify-content:center;align-items:center;cursor:pointer}
77
+ `]],["__scopeId","data-v-155fa7cc"]]),f_={class:"parent"},d_=te(Kt({customOptions:{},inheritAttrs:!0,__name:"PlateDisplay.ce",props:{plate:{},plateType:{},displayType:{default:"chinese"},fontColor:{},fontSize:{}},setup(e,{expose:t,emit:n}){const i=e,r=[{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(g){return g.length>2?g.substring(0,2)+"·"+g.substring(2):g}function o(g){const d=r.filter(_=>_.name===g);return d.length?d[0]:o("未知")}const a=s(i.plate),l=Ct(o(i.plateType));let p=i.fontColor,m=i.fontSize;switch(i.displayType){case"dot":p=p??"#999999",m=m??"14px";break;case"chinese":p=p??"#333333",m=m??"20px";break}return t({}),(g,d)=>(xt(),At("div",f_,[A("div",{class:Ht(["leading",i.displayType]),style:Lt(l.value.style)},ke(l.value.name),7),A("div",{class:"text",style:Lt({color:he(p),"font-size":he(m)})},ke(he(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}
78
+ `]],["__scopeId","data-v-14d35058"]]),p_=["onClick"],m_=te(Kt({customOptions:{},inheritAttrs:!0,__name:"TabsForCE.ce",props:{headers:{default:()=>[]},initIndex:{default:0}},emits:["changedIndex"],setup(e,{expose:t,emit:n}){const i=e,r=n,s=Ct(i.initIndex),o=Ct(),a=Ct(0),l=Ct(0),p=Ct(0),m=Ct([]),g=[],d=(C,M)=>{if(C){if(g.push({index:M,el:C}),g.length<i.headers.length)return;m.value=g}};se([o,m],()=>{_()});function _(){if(o.value&&m.value.length){const C=o.value.getBoundingClientRect(),M=m.value[s.value].el.getBoundingClientRect();a.value=M.x-C.x,l.value=M.y-C.y+M.height,p.value=M.width}}function N(C){s.value=C,r("changedIndex",C),_()}return t({}),(C,M)=>(xt(),At("div",null,[A("div",{class:"header",ref_key:"headerRef",ref:o},[(xt(!0),At(ve,null,Qn(C.headers,(z,P)=>(xt(),At("div",{key:z,class:Ht(P==s.value?"active":""),onClick:$=>N(P)},[A("div",{ref_for:!0,ref:$=>d($,P)},ke(z),513)],10,p_))),128)),A("div",{class:"indicator",style:Lt({top:l.value+"px",left:a.value+"px",width:p.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}
79
+ `]],["__scopeId","data-v-0f02d488"]]);var jr=function(){var e=0,t=document.createElement("div");t.style.cssText="position:fixed;top:0;right:0;cursor:pointer;opacity:0.9;z-index:10000",t.addEventListener("click",function(m){m.preventDefault(),i(++e%t.children.length)},!1);function n(m){return t.appendChild(m.dom),m}function i(m){for(var g=0;g<t.children.length;g++)t.children[g].style.display=g===m?"block":"none";e=m}var r=(performance||Date).now(),s=r,o=0,a=n(new jr.Panel("FPS","#0ff","#002")),l=n(new jr.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var p=n(new jr.Panel("MB","#f08","#201"));return i(0),{REVISION:16,dom:t,addPanel:n,showPanel:i,begin:function(){r=(performance||Date).now()},end:function(){o++;var m=(performance||Date).now();if(l.update(m-r,200),m>s+1e3&&(a.update(o*1e3/(m-s),100),s=m,o=0,p)){var g=performance.memory;p.update(g.usedJSHeapSize/1048576,g.jsHeapSizeLimit/1048576)}return m},update:function(){r=this.end()},domElement:t,setMode:i}};jr.Panel=function(e,t,n){var i=1/0,r=0,s=Math.round,o=s(window.devicePixelRatio||1),a=80*o,l=48*o,p=3*o,m=2*o,g=3*o,d=15*o,_=74*o,N=30*o,C=document.createElement("canvas");C.width=a,C.height=l,C.style.cssText="width:80px;height:48px";var M=C.getContext("2d");return M.font="bold "+9*o+"px Helvetica,Arial,sans-serif",M.textBaseline="top",M.fillStyle=n,M.fillRect(0,0,a,l),M.fillStyle=t,M.fillText(e,p,m),M.fillRect(g,d,_,N),M.fillStyle=n,M.globalAlpha=.9,M.fillRect(g,d,_,N),{dom:C,update:function(z,P){i=Math.min(i,z),r=Math.max(r,z),M.fillStyle=n,M.globalAlpha=1,M.fillRect(0,0,a,d),M.fillStyle=t,M.fillText(s(z)+" "+e+" ("+s(i)+"-"+s(r)+")",p,m),M.drawImage(C,g+o,d,_-o,N,g,d,_-o,N),M.fillRect(g+_-o,d,o,N),M.fillStyle=n,M.globalAlpha=.9,M.fillRect(g+_-o,d,o,s((1-z/P)*N))}}};const g_=Object.assign({customOptions:{},inheritAttrs:!0},{__name:"FPSStats.ce",setup(e,{expose:t}){const n=Ct();return hs(()=>{const i=new jr,r=i.domElement.style;r.margin="1em",n.value.appendChild(i.domElement),Oh.register(()=>(i.update(),!0))}),t({}),(i,r)=>(xt(),At("div",{ref_key:"containerRef",ref:n},null,512))}}),v_={class:"ease-graph"},y_=["width","height"],sl=te(Kt({customOptions:{Button:xe},inheritAttrs:!0,__name:"EaseGraphDisplay.ce",props:{easeName:{},easeFunction:{},canvasWidth:{default:180},canvasHeight:{default:100},graphHorizontalGap:{default:5},graphVerticalGap:{default:20},easeDuration:{default:2e3},isSelected:{type:Boolean,default:!1}},emits:["onMounted","onStart","onCompleted","onSelected"],setup(e,{expose:t,emit:n}){const i=e,r=n;let s;const o=Ct();se(o,()=>{o.value&&(s=new Gi(o.value),a(),r("onMounted",i.easeName))});const a=()=>{s.fillStyle="rgb(250,250,250)",s.fillRect(0,0,i.canvasWidth,i.canvasHeight),s.lineWidth=.5,s.strokeStyle="rgb(230,230,230)",s.beginPath(),s.moveTo(0,i.graphVerticalGap),s.lineTo(i.canvasWidth,i.graphVerticalGap),s.moveTo(0,i.canvasHeight-i.graphVerticalGap),s.lineTo(i.canvasWidth,i.canvasHeight-i.graphVerticalGap),s.closePath(),s.stroke(),s.lineWidth=2,s.strokeStyle="rgb(255,127,127)"};let l=!1;const p=()=>{if(!s||l)return;l=!0,r("onStart",i.easeName),a();const g={x:i.graphHorizontalGap,y:i.canvasHeight-i.graphVerticalGap},d={x:i.graphHorizontalGap,y:i.canvasHeight-i.graphVerticalGap};xn.toTween(g,{x:i.canvasWidth-i.graphHorizontalGap},{duration:i.easeDuration,easeFunction:$t.Easing.Linear.None}).startAuto(),xn.toTween(g,{y:i.graphVerticalGap},{duration:i.easeDuration,easeFunction:i.easeFunction,onUpdate:()=>{s.beginPath(),s.moveTo(d.x,d.y),s.lineTo(g.x,g.y),s.closePath(),s.stroke(),d.x=g.x,d.y=g.y}}).startAuto(),setTimeout(()=>{r("onCompleted",i.easeName),l=!1},i.easeDuration)},m=()=>{r("onSelected",i.easeName,i.easeFunction)};return t({start:p}),(g,d)=>(xt(),At("div",v_,[A("div",null,"缓动:"+ke(g.easeName),1),A("div",null,[Jt(xe,{stylePattern:"outline",height:"32px",padding:"10px",onClick:p},{default:fe(()=>[De(" 开始 ")]),_:1}),Jt(xe,{stylePattern:i.isSelected?"fullfilled":"outline",height:"32px",padding:"10px",onClick:m},{default:fe(()=>[De(" 选择 ")]),_:1},8,["stylePattern"])]),A("canvas",{ref_key:"canvasRef",ref:o,width:g.canvasWidth,height:g.canvasHeight},null,8,y_)]))}}),[["styles",[`.ease-graph[data-v-0f645937]{display:inline-block}.ease-graph>div[data-v-0f645937]:nth-child(1){margin-top:10px;font-size:14px}.ease-graph>div[data-v-0f645937]:nth-child(2){margin-bottom:10px}.ease-graph>div:nth-child(2)>div+div[data-v-0f645937]{margin-left:10px}
80
+ `]],["__scopeId","data-v-0f645937"]]),__={class:"ease-graph"},b_=["width","height"],x_=Kt({customOptions:{Button:xe},inheritAttrs:!0,__name:"EaseGraphDisplay",props:{easeName:{},easeFunction:{},canvasWidth:{default:180},canvasHeight:{default:100},graphHorizontalGap:{default:5},graphVerticalGap:{default:20},easeDuration:{default:2e3},isSelected:{type:Boolean,default:!1}},emits:["onMounted","onStart","onCompleted","onSelected"],setup(e,{expose:t,emit:n}){const i=e,r=n;let s;const o=Ct();se(o,()=>{o.value&&(s=new Gi(o.value),a(),r("onMounted",i.easeName))});const a=()=>{s.fillStyle="rgb(250,250,250)",s.fillRect(0,0,i.canvasWidth,i.canvasHeight),s.lineWidth=.5,s.strokeStyle="rgb(230,230,230)",s.beginPath(),s.moveTo(0,i.graphVerticalGap),s.lineTo(i.canvasWidth,i.graphVerticalGap),s.moveTo(0,i.canvasHeight-i.graphVerticalGap),s.lineTo(i.canvasWidth,i.canvasHeight-i.graphVerticalGap),s.closePath(),s.stroke(),s.lineWidth=2,s.strokeStyle="rgb(255,127,127)"};let l=!1;const p=()=>{if(!s||l)return;l=!0,r("onStart",i.easeName),a();const g={x:i.graphHorizontalGap,y:i.canvasHeight-i.graphVerticalGap},d={x:i.graphHorizontalGap,y:i.canvasHeight-i.graphVerticalGap};xn.toTween(g,{x:i.canvasWidth-i.graphHorizontalGap},{duration:i.easeDuration,easeFunction:$t.Easing.Linear.None}).startAuto(),xn.toTween(g,{y:i.graphVerticalGap},{duration:i.easeDuration,easeFunction:i.easeFunction,onUpdate:()=>{s.beginPath(),s.moveTo(d.x,d.y),s.lineTo(g.x,g.y),s.closePath(),s.stroke(),d.x=g.x,d.y=g.y}}).startAuto(),setTimeout(()=>{r("onCompleted",i.easeName),l=!1},i.easeDuration)},m=()=>{r("onSelected",i.easeName,i.easeFunction)};return t({start:p}),(g,d)=>(xt(),At("div",__,[A("div",null,"缓动:"+ke(g.easeName),1),A("div",null,[Jt(xe,{stylePattern:"outline",height:"32px",padding:"10px",onClick:p},{default:fe(()=>[De(" 开始 ")]),_:1}),Jt(xe,{stylePattern:i.isSelected?"fullfilled":"outline",height:"32px",padding:"10px",onClick:m},{default:fe(()=>[De(" 选择 ")]),_:1},8,["stylePattern"])]),A("canvas",{ref_key:"canvasRef",ref:o,width:g.canvasWidth,height:g.canvasHeight},null,8,b_)]))}}),j1="",Zh=te(x_,[["__scopeId","data-v-1f39c8d3"]]),w_={class:"ease-graph-wrap"},E_={key:0,class:"ease-group-gap"},Qh=2e3,Jh=te(Kt({customOptions:{EaseGraphDisplay:Zh},inheritAttrs:!0,__name:"EaseGroupGraphDisplay.ce",props:{easeList:{default:()=>[{easeName:"Linear",easeFunction:$t.Easing.Linear.None},{easeName:"gap"},{easeName:"QuadraticIn",easeFunction:$t.Easing.Quadratic.In},{easeName:"QuadraticOut",easeFunction:$t.Easing.Quadratic.Out},{easeName:"QuadraticInOut",easeFunction:$t.Easing.Quadratic.InOut},{easeName:"gap"},{easeName:"CubicIn",easeFunction:$t.Easing.Cubic.In},{easeName:"CubicOut",easeFunction:$t.Easing.Cubic.Out},{easeName:"CubicInOut",easeFunction:$t.Easing.Cubic.InOut},{easeName:"gap"},{easeName:"QuarticIn",easeFunction:$t.Easing.Quartic.In},{easeName:"QuarticOut",easeFunction:$t.Easing.Quartic.Out},{easeName:"QuarticInOut",easeFunction:$t.Easing.Quartic.InOut},{easeName:"gap"},{easeName:"QuinticIn",easeFunction:$t.Easing.Quintic.In},{easeName:"QuinticOut",easeFunction:$t.Easing.Quintic.Out},{easeName:"QuinticInOut",easeFunction:$t.Easing.Quintic.InOut},{easeName:"gap"},{easeName:"SinusoidalIn",easeFunction:$t.Easing.Sinusoidal.In},{easeName:"SinusoidalOut",easeFunction:$t.Easing.Sinusoidal.Out},{easeName:"SinusoidalInOut",easeFunction:$t.Easing.Sinusoidal.InOut},{easeName:"gap"},{easeName:"ExponentialIn",easeFunction:$t.Easing.Exponential.In},{easeName:"ExponentialOut",easeFunction:$t.Easing.Exponential.Out},{easeName:"ExponentialInOut",easeFunction:$t.Easing.Exponential.InOut},{easeName:"gap"},{easeName:"CircularIn",easeFunction:$t.Easing.Circular.In},{easeName:"CircularOut",easeFunction:$t.Easing.Circular.Out},{easeName:"CircularInOut",easeFunction:$t.Easing.Circular.InOut},{easeName:"gap"},{easeName:"ElasticIn",easeFunction:$t.Easing.Elastic.In},{easeName:"ElasticOut",easeFunction:$t.Easing.Elastic.Out},{easeName:"ElasticInOut",easeFunction:$t.Easing.Elastic.InOut},{easeName:"gap"},{easeName:"BackIn",easeFunction:$t.Easing.Back.In},{easeName:"BackOut",easeFunction:$t.Easing.Back.Out},{easeName:"BackInOut",easeFunction:$t.Easing.Back.InOut},{easeName:"gap"},{easeName:"BounceIn",easeFunction:$t.Easing.Bounce.In},{easeName:"BounceOut",easeFunction:$t.Easing.Bounce.Out},{easeName:"BounceInOut",easeFunction:$t.Easing.Bounce.InOut},{easeName:"gap"},{easeName:"generatePow(10)In",easeFunction:$t.Easing.generatePow(10).In},{easeName:"generatePow(10)Out",easeFunction:$t.Easing.generatePow(10).Out},{easeName:"generatePow(10)InOut",easeFunction:$t.Easing.generatePow(10).InOut},{easeName:"gap"},{easeName:"4 steps",easeFunction:$t.Easing.createStep(4)},{easeName:"8 steps",easeFunction:$t.Easing.createStep(8)},{easeName:"12 steps",easeFunction:$t.Easing.createStep(12)},{easeName:"16 steps",easeFunction:$t.Easing.createStep(16)},{easeName:"gap"},{easeName:"Noisy Exponential.InOut",easeFunction:$t.Easing.createNoisyEasing($t.Easing.Exponential.InOut,.1)},{easeName:"Noisy Elastic.InOut",easeFunction:$t.Easing.createNoisyEasing($t.Easing.Elastic.InOut,.2)},{easeName:"Noisy Circular.InOut",easeFunction:$t.Easing.createNoisyEasing($t.Easing.Circular.InOut,.1)}]}},emits:["selectedEaseFunction"],setup(e,{expose:t,emit:n}){const i=e,r=n,s={};function o(g,d){g&&(s[d]=g)}const a=new au(10);function l(g){a.addTask(()=>(s[g].start(),new Promise(d=>{setTimeout(()=>{d()},Qh)})))}const p=Ct("");function m(g,d){p.value=g,r("selectedEaseFunction",d)}return t({}),(g,d)=>(xt(),At("div",null,[(xt(!0),At(ve,null,Qn(i.easeList,_=>(xt(),At(ve,{key:_.easeName},[A("div",w_,[_.easeFunction?(xt(),be(Zh,{key:0,easeName:_.easeName,easeFunction:_.easeFunction,easeDuration:Qh,isSelected:p.value==_.easeName,onOnMounted:l,onOnSelected:m,ref_for:!0,ref:N=>o(N,_.easeName)},null,8,["easeName","easeFunction","isSelected"])):de("",!0)]),_.easeFunction?de("",!0):(xt(),At("div",E_))],64))),128))]))}}),[["styles",[`.ease-graph-wrap[data-v-3381c4e1]{display:inline-block;margin-right:10px}.ease-group-gap[data-v-3381c4e1]{margin:10px}
81
+ `]],["__scopeId","data-v-3381c4e1"]]),C_={class:"interpolation-graph"},k_=["width","height"],tf=1/6,ef=5/6,ol=te(Kt({customOptions:{Button:xe},inheritAttrs:!0,__name:"InterpolationGraphDisplay.ce",props:{interpolationName:{},interpolationFunction:{},canvasWidth:{default:240},canvasHeight:{default:160},easeDuration:{default:2e3}},emits:["onMounted","onStart","onCompleted"],setup(e,{expose:t,emit:n}){const i=e,r=n;let s;const o=Ct();se(o,()=>{o.value&&(s=new Gi(o.value),_(),r("onMounted",i.interpolationName))});const a=i.canvasWidth*tf,l=i.canvasHeight/2,p=[i.canvasWidth*ef,i.canvasWidth/2],m=[i.canvasHeight*tf,i.canvasHeight*ef],g=[...p,a],d=[...m,l],_=()=>{s.fillStyle="rgb(250,250,250)",s.fillRect(0,0,i.canvasWidth,i.canvasHeight),s.fillStyle="rgb(200,200,200)",s.fillRect(a-3,l-3,6,6),s.fillRect(p[p.length-1]-3,m[m.length-1]-3,6,6);for(var M=0;M<p.length;M++)s.fillRect(p[M]-2,m[M]-2,4,4)};let N=!1;const C=()=>{if(!s||N)return;N=!0,r("onStart",i.interpolationName),_();const M={x:a,y:l,old:{x:a,y:l}};xn.toTween(M,{x:p,y:m},{duration:i.easeDuration,easeFunction:$t.Easing.Linear.None,interpolationFunction:i.interpolationFunction,onUpdate:P=>{s.lineWidth=2,s.strokeStyle="rgba(255,127,127,0.9)",s.beginPath(),s.moveTo(P.old.x,P.old.y),s.lineTo(P.x,P.y),s.closePath(),s.stroke(),P.old.x=P.x,P.old.y=P.y}}).startAuto();const z={x:a,y:l,old:{x:a,y:l}};xn.toTween(z,{x:g,y:d},{duration:i.easeDuration,easeFunction:$t.Easing.Linear.None,interpolationFunction:i.interpolationFunction,onUpdate:P=>{s.lineWidth=2,s.strokeStyle="rgba(255,127,127,0.5)",s.beginPath(),s.moveTo(P.old.x,P.old.y),s.lineTo(P.x,P.y),s.closePath(),s.stroke(),P.old.x=P.x,P.old.y=P.y}}).startAuto(),setTimeout(()=>{r("onCompleted",i.interpolationName),N=!1},i.easeDuration)};return t({start:C}),(M,z)=>(xt(),At("div",C_,[A("div",null,[De(" 插值:"+ke(M.interpolationName)+" ",1),Jt(xe,{stylePattern:"outline",height:"32px",onClick:C},{default:fe(()=>[De(" 开始 ")]),_:1})]),A("canvas",{ref_key:"canvasRef",ref:o,width:M.canvasWidth,height:M.canvasHeight},null,8,k_)]))}}),[["styles",[`.interpolation-graph[data-v-56071a65]{display:inline-block}.interpolation-graph>div[data-v-56071a65]:nth-child(1){margin-top:10px;margin-bottom:10px;font-size:14px}
82
+ `]],["__scopeId","data-v-56071a65"]]),S_={class:"interpolation-graph"},T_=["width","height"],nf=1/6,rf=5/6,N_=Kt({customOptions:{Button:xe},inheritAttrs:!0,__name:"InterpolationGraphDisplay",props:{interpolationName:{},interpolationFunction:{},canvasWidth:{default:240},canvasHeight:{default:160},easeDuration:{default:2e3}},emits:["onMounted","onStart","onCompleted"],setup(e,{expose:t,emit:n}){const i=e,r=n;let s;const o=Ct();se(o,()=>{o.value&&(s=new Gi(o.value),_(),r("onMounted",i.interpolationName))});const a=i.canvasWidth*nf,l=i.canvasHeight/2,p=[i.canvasWidth*rf,i.canvasWidth/2],m=[i.canvasHeight*nf,i.canvasHeight*rf],g=[...p,a],d=[...m,l],_=()=>{s.fillStyle="rgb(250,250,250)",s.fillRect(0,0,i.canvasWidth,i.canvasHeight),s.fillStyle="rgb(200,200,200)",s.fillRect(a-3,l-3,6,6),s.fillRect(p[p.length-1]-3,m[m.length-1]-3,6,6);for(var M=0;M<p.length;M++)s.fillRect(p[M]-2,m[M]-2,4,4)};let N=!1;const C=()=>{if(!s||N)return;N=!0,r("onStart",i.interpolationName),_();const M={x:a,y:l,old:{x:a,y:l}};xn.toTween(M,{x:p,y:m},{duration:i.easeDuration,easeFunction:$t.Easing.Linear.None,interpolationFunction:i.interpolationFunction,onUpdate:P=>{s.lineWidth=2,s.strokeStyle="rgba(255,127,127,0.9)",s.beginPath(),s.moveTo(P.old.x,P.old.y),s.lineTo(P.x,P.y),s.closePath(),s.stroke(),P.old.x=P.x,P.old.y=P.y}}).startAuto();const z={x:a,y:l,old:{x:a,y:l}};xn.toTween(z,{x:g,y:d},{duration:i.easeDuration,easeFunction:$t.Easing.Linear.None,interpolationFunction:i.interpolationFunction,onUpdate:P=>{s.lineWidth=2,s.strokeStyle="rgba(255,127,127,0.5)",s.beginPath(),s.moveTo(P.old.x,P.old.y),s.lineTo(P.x,P.y),s.closePath(),s.stroke(),P.old.x=P.x,P.old.y=P.y}}).startAuto(),setTimeout(()=>{r("onCompleted",i.interpolationName),N=!1},i.easeDuration)};return t({start:C}),(M,z)=>(xt(),At("div",S_,[A("div",null,[De(" 插值:"+ke(M.interpolationName)+" ",1),Jt(xe,{stylePattern:"outline",height:"32px",onClick:C},{default:fe(()=>[De(" 开始 ")]),_:1})]),A("canvas",{ref_key:"canvasRef",ref:o,width:M.canvasWidth,height:M.canvasHeight},null,8,T_)]))}}),W1="",sf=te(N_,[["__scopeId","data-v-5e4289c7"]]),of=2e3,af=te(Kt({customOptions:{InterpolationGraphDisplay:sf},inheritAttrs:!0,__name:"InterpolationGroupGraphDisplay.ce",props:{interpolationList:{default:()=>[{interpolationName:"Linear",interpolationFunction:$t.Interpolation.Linear},{interpolationName:"Bezier",interpolationFunction:$t.Interpolation.Bezier},{interpolationName:"CatmullRom",interpolationFunction:$t.Interpolation.CatmullRom}]}},setup(e,{expose:t,emit:n}){const i=e,r={};function s(l,p){l&&(r[p]=l)}const o=new au(1);function a(l){o.addTask(()=>(r[l].start(),new Promise(p=>{setTimeout(()=>{p()},of)})))}return t({}),(l,p)=>(xt(),At("div",null,[(xt(!0),At(ve,null,Qn(i.interpolationList,m=>(xt(),At("div",{key:m.interpolationName,class:"interpolation-graph-wrap"},[Jt(sf,{interpolationName:m.interpolationName,interpolationFunction:m.interpolationFunction,easeDuration:of,onOnMounted:a,ref_for:!0,ref:g=>s(g,m.interpolationName)},null,8,["interpolationName","interpolationFunction"])]))),128))]))}}),[["styles",[`.interpolation-graph-wrap[data-v-e0ab5945]{display:inline-block;margin-right:10px}
83
+ `]],["__scopeId","data-v-e0ab5945"]]),O_=["width","height"],P_=Kt({customOptions:{},inheritAttrs:!0,__name:"HandWritePanel.ce",props:{canvasWidth:{default:"400"},canvasHeight:{default:"300"},borderColor:{default:"#000000"},brushSize:{default:4},brushDensity:{default:200},brushColor:{default:"#000000"},downloadFileName:{default:"手写图片"}},setup(e,{expose:t,emit:n}){const i=e;let r=()=>{};const s=Ct();return se(s,()=>{if(!s.value)return;const o=new Sh(s.value);o.ctx.strokeStyle=i.brushColor,o.ctx.lineWidth=i.brushSize,o.drawMouseMoveLine("line"),r=()=>{o.ctx.toSVGOperation().toDownloadSVGString(o.ctx.toRawSVG().raw,i.downloadFileName)}}),t({download:()=>r()}),(o,a)=>(xt(),At("canvas",{ref_key:"panelRef",ref:s,width:i.canvasWidth,height:i.canvasHeight,style:Lt([`border: 1px solid ${o.borderColor}`])},null,12,O_))}});class I_ 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(t=>{if(t.media){const n=()=>{(t.media===this.video.currentSrc||!this.previousSiblingIsPlaying(t,this.video.currentSrc)&&!this.reloadQueued)&&this.reloadVideo()};this.listenedMedia.push({media:t.media,handler:n}),window.matchMedia(t.media).addEventListener("change",n)}})}unbindMediaListeners(){this.listenedMedia.forEach(t=>{window.matchMedia(t.media).removeEventListener("change",t.handler)})}previousSiblingIsPlaying(t,n){const i=t;for(;t.previousElementSibling;)if(i.src===n)return!0;return!1}reloadVideo(){this.reloadQueued=!0;const t=this.video.currentTime,n=this.video.playState;this.video.load();const i=()=>{this.video.playState=n,this.video.currentTime=t.toString(),this.reloadQueued=!1,this.video.removeEventListener("loadeddata",i)};this.video.addEventListener("loadeddata",i)}}const M_=I_;function A_(e,t="style.css"){for(let n of e){const i=document.querySelector(n)?.shadowRoot;if(i){const r=document.createElement("link");r.setAttribute("rel","stylesheet"),r.setAttribute("href",t),i.appendChild(r)}}}const Ye=(e,t,n=!0)=>{let i=0,r=[...e.styles];for(let s in e.customOptions){const o=`[${e.customOptions[s].__scopeId}]`;r=[...t[i++].styles.map(a=>hm(a,o)),...r]}if(n)e.styles=r;else for(let s of e.styles){const o=document.createElement("style");o.innerHTML=s,document.head.insertBefore(o,document.head.childNodes[document.head.childNodes.length-1].nextSibling)}return e},D_=()=>{const e=me(Mh);customElements.define("yz-icon",e);const t=me(zr);customElements.define("yz-button",t),Ye(Ah,[Ni]);const n=me(Ah);customElements.define("yz-mobile-layout",n),Ye(Ni,[Ua]);const i=me(Ni);customElements.define("yz-pop",i),Ye(Wa,[Ua,Ni,Mh,zr]);const r=me(Wa);customElements.define("yz-dialog",r),Ye($h,[Ua,Ni,Wa,Kg]);const s=me($h);customElements.define("yz-dialog-loading",s);const o=me(cv);customElements.define("yz-select",o);const a=me(hv);customElements.define("yz-switch",a);const l=me(yv);customElements.define("yz-radiogroup",l);const p=me(kv);customElements.define("yz-checkboxgroup",p),Ye(qa,[Ni,zr]);const m=me(qa);customElements.define("yz-popover",m),Ye(Uh,[qa]);const g=me(Uh);customElements.define("yz-colorpicker",g);const d=me(ty);customElements.define("yz-resize-observer",d);const _=me(ny);customElements.define("yz-map-tianditu",_),Ye(rl,[Ni,zy]);const N=me(rl);customElements.define("yz-plate-keyboard",N),Ye(Yh,[oy,rl]);const C=me(Yh);customElements.define("yz-plate-mobile",C),Ye(Kh,[a_]);const M=me(Kh);customElements.define("yz-slide-left-item",M);const z=me(d_);customElements.define("yz-plate-display",z);const P=me(m_);customElements.define("yz-tabs",P);const $=me(g_);customElements.define("yz-fps-stats",$),Ye(sl,[zr]);const H=me(sl);customElements.define("yz-ease-graph-display",H),Ye(Jh,[sl]);const Y=me(Jh);customElements.define("yz-ease-group-graph-display",Y),Ye(ol,[zr]);const J=me(ol);customElements.define("yz-interpolation-graph-display",J),Ye(af,[ol]);const V=me(af);customElements.define("yz-interpolation-group-graph-display",V),customElements.define("yz-hand-write-panel",me(P_)),customElements.define("yz-responsive-video",M_)};Wn.install=D_,Wn.linkChildrenComponentsStyles=A_,Wn.mergeChildComponentCSS=Ye,Object.defineProperty(Wn,Symbol.toStringTag,{value:"Module"})});
109
84
  //# sourceMappingURL=yz_custom_element.umd.cjs.map